"use strict";this.default_kevlar_base=this.default_kevlar_base||{};(function(_){var window=this;
try{
_._F_toggles_initialize=function(F){(typeof globalThis!=="undefined"?globalThis:typeof self!=="undefined"?self:this)._F_toggles=F||[]};
(0,_._F_toggles_initialize)([0x100000, ]);
/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
/*

 Copyright Google LLC
 SPDX-License-Identifier: Apache-2.0
*/
/*


 Copyright (c) 2015-2018 Google, Inc., Netflix, Inc., Microsoft Corp. and contributors
 Licensed under the Apache License, Version 2.0 (the "License");
 you may not use this file except in compliance with the License.
 You may obtain a copy of the License at
     http://www.apache.org/licenses/LICENSE-2.0
 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and
 limitations under the License.
*/
/*

 Copyright Google LLC All Rights Reserved.

 Use of this source code is governed by an MIT-style license that can be
 found in the LICENSE file at https://angular.dev/license
*/
/*

 Copyright 2017 Google LLC
 SPDX-License-Identifier: BSD-3-Clause
*/
/*
 SPDX-License-Identifier: Apache-2.0
*/
/*

 (The MIT License)

 Copyright (C) 2014 by Vitaly Puzrin

 Permission is hereby granted, free of charge, to any person obtaining a copy
 of this software and associated documentation files (the "Software"), to deal
 in the Software without restriction, including without limitation the rights
 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 copies of the Software, and to permit persons to whom the Software is
 furnished to do so, subject to the following conditions:

 The above copyright notice and this permission notice shall be included in
 all copies or substantial portions of the Software.

 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 THE SOFTWARE.

 -----------------------------------------------------------------------------
 Ported from zlib, which is under the following license
 https://github.com/madler/zlib/blob/master/zlib.h

 zlib.h -- interface of the 'zlib' general purpose compression library
   version 1.2.8, April 28th, 2013
   Copyright (C) 1995-2013 Jean-loup Gailly and Mark Adler
   This software is provided 'as-is', without any express or implied
   warranty.  In no event will the authors be held liable for any damages
   arising from the use of this software.
   Permission is granted to anyone to use this software for any purpose,
   including commercial applications, and to alter it and redistribute it
   freely, subject to the following restrictions:
   1. The origin of this software must not be misrepresented; you must not
      claim that you wrote the original software. If you use this software
      in a product, an acknowledgment in the product documentation would be
      appreciated but is not required.
   2. Altered source versions must be plainly marked as such, and must not be
      misrepresented as being the original software.
   3. This notice may not be removed or altered from any source distribution.
   Jean-loup Gailly        Mark Adler
   jloup@gzip.org          madler@alumni.caltech.edu
   The data format used by the zlib library is described by RFCs (Request for
   Comments) 1950 to 1952 in the files http://tools.ietf.org/html/rfc1950
   (zlib format), rfc1951 (deflate format) and rfc1952 (gzip format).
*/
/*

Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
/*
 Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
 This code may only be used under the BSD style license found at
 http://polymer.github.io/LICENSE.txt The complete set of authors may be found
 at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
 be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
 Google as part of the polymer project is also subject to an additional IP
 rights grant found at http://polymer.github.io/PATENTS.txt
*/
/*

Copyright (c) 2019 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
/*

 Copyright (c) Felix Böhm
 All rights reserved.

 Redistribution and use in source and binary forms, with or without
 modification, are permitted provided that the following conditions are met:

 Redistributions of source code must retain the above copyright notice, this
 list of conditions and the following disclaimer.

 Redistributions in binary form must reproduce the above copyright notice,
 this list of conditions and the following disclaimer in the documentation
 and/or other materials provided with the distribution.

 THIS IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
 EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
 DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
 FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
 SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
 CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
 LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 OUT OF THE USE OF THIS, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
/*

 The bulk of this code derives from https://github.com/dmoscrop/fold-case
 But in addition to case-folding, we also normalize whitespace.

 fold-case is Copyright Mathias Bynens <https://mathiasbynens.be/>

 Permission is hereby granted, free of charge, to any person obtaining
 a copy of this software and associated documentation files (the
 "Software"), to deal in the Software without restriction, including
 without limitation the rights to use, copy, modify, merge, publish,
 distribute, sublicense, and/or sell copies of the Software, and to
 permit persons to whom the Software is furnished to do so, subject to
 the following conditions:

 The above copyright notice and this permission notice shall be
 included in all copies or substantial portions of the Software.

 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
 NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
 LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
 OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
/*

 Copyright (c) 2014, John MacFarlane

 All rights reserved.

 Redistribution and use in source and binary forms, with or without
 modification, are permitted provided that the following conditions are met:

     * Redistributions of source code must retain the above copyright
       notice, this list of conditions and the following disclaimer.

     * Redistributions in binary form must reproduce the above
       copyright notice, this list of conditions and the following
       disclaimer in the documentation and/or other materials provided
       with the distribution.

 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
 "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
 A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
 OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
 SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
 LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
/*

Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
/*


 The MIT License (MIT)

 Copyright (c) 2015-present Dan Abramov

 Permission is hereby granted, free of charge, to any person obtaining a copy
 of this software and associated documentation files (the "Software"), to deal
 in the Software without restriction, including without limitation the rights
 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 copies of the Software, and to permit persons to whom the Software is
 furnished to do so, subject to the following conditions:

 The above copyright notice and this permission notice shall be included in all
 copies or substantial portions of the Software.

 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 SOFTWARE.
*/
/*

 The MIT License (MIT)

 Copyright (c) 2016 Denis Rul

 Permission is hereby granted, free of charge, to any person obtaining a copy
 of this software and associated documentation files (the "Software"), to deal
 in the Software without restriction, including without limitation the rights
 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 copies of the Software, and to permit persons to whom the Software is
 furnished to do so, subject to the following conditions:

 The above copyright notice and this permission notice shall be included in
 all copies or substantial portions of the Software.

 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 SOFTWARE.
*/
/*

 Copyright 2020 Google LLC
 SPDX-License-Identifier: BSD-3-Clause
*/
/*

 Copyright 2018 Google LLC
 SPDX-License-Identifier: BSD-3-Clause
*/
/*

 Copyright Google Inc. All Rights Reserved.

 Use of this source code is governed by an MIT-style license that can be
 found in the LICENSE file at https://angular.io/license
*/
/*

Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
part of the polymer project is also subject to an additional IP rights grant
found at http://polymer.github.io/PATENTS.txt
*/
/*

Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
part of the polymer project is also subject to an additional IP rights grant
found at http://polymer.github.io/PATENTS.txt
SPDX-License-Identifier: BSD-3-Clause
*/
/*

Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
var WG,FYn,dwb,dI,ek,NIo,kW,Ar,sY,ZS,VkY,UwR,Xe,erS,Mkr,an,zre,ISW,cre,eH,kRY,ArR,LYW,Zbe,XGk,kB,qU,PO,Ja,aSr,ai,fSS,fT,nT,oi,bbG,wc,SH,nWW,rrG,TIe,WT,GRn,hP,YYI,Vx,oWW,Uq,wGS,pGS,WXe,JP,EBn,huY,dUI,Ncr,VHo,HT,mwI,$K,KYo,FXW,zuo,C_S,BcS,nN,vBW,I_Y,cab,DUr,kzr,AaW,qew,pN,XOR,P_r,a_o,l_G,nBn,KN,du,yao,oBI,Uf,Gze,SeS,wOG,ez,upW,RK,xUo,z2,tW,C2,gu,Bk,KXG,pOw,mUY,xR,FgR,WgW,EKn,dFo,h6o,XG,Nwo,V$o,ck,R6o,e6w,aK,gKb,CKk,bL,DFo,QOo,xFo,k8w,APW,XTW,qqG,iL,T2,PKW,auk,fuW,nKw,Tww,pTe,Wpo,URG,VK,eWY,gRR,Mi,QK,
zy,Cu,Bp,Lu,$w,X3,IeY,bi,DRG,AWe,Gy,Yw,Lpo,ui,pu,m7,Ku,$Rr,Z2Y,XkR,H2I,PLI,JWw,aee,feR,O2b,leY,dG,h1,nRb,yWr,jKS,rWY,i2e,TuS,Q0,G2S,zT,t1,CL,Bw,IS,wkb,cw,Sfo,W7k,k9,EwR,hNb,dik,s0,NUk,V9r,LL,ql,eNb,ZV,QIY,zNR,XL,CiR,t9e,BUI,vwr,IdW,cyG,J1,Dio,xir,aS,kyk,AyG,fL,O0,bO,lO,sIr,qWk,L7r,nL,Zub,Xpe,HuR,jJ,rG,TT,oS,Y9,wG,uO,PiS,Jyw,adS,fdR,OuI,buo,ldR,nwI,yyo,jIo,iuR,pL,ryn,TUk,Fn,owo,Ep,hN,Gyb,u3o,SWe,ppY,K7w,Fvo,WvI,NGY,VJw,Uln,RXI,eXG,MJw,g9r,COo,Up,BGr,v9W,IVY,c1n,Dlk,xlr,A1S,OLb,bLY,lVY,y1e,jSG,CC,iLo,
BE,Y0k,wwY,uLW,S0Y,pwn,mlw,Kvo,FBk,kd,Edr,o9o,h2Y,dpo,Nnr,VUY,UpG,R2Y,e2o,MUw,gdb,tUe,z2r,vdR,C5I,BnW,DpR,xpY,kOw,IyY,slW,cNR,qpn,l5,$po,nC,jU,ZCY,HCW,P5o,fyk,odG,bCw,OCr,ndr,jlb,lyW,unk,YpY,Spo,pEn,mpo,KBr,Fjo,EjG,WjG,hAw,dTo,Nle,VSe,RAY,MSr,gjS,QTe,tSW,zAW,q2n,wn,$TR,Xbe,Hro,Pgo,JvG,aqW,Oro,brr,lqb,E2,hv,njS,Tlr,U2,RT,wbY,ugr,N$Y,teG,z3,vpo,npW,bdo,lnb,IT,yzR,jyR,rzY,T$R,opk,Gir,Yio,wXr,uOW,pXI,m6Y,F0r,K6e,haY,Zq,Pb,Non,VuR,UOr,RaY,eak,Mun,QWr,tuS,zar,T3,G3,sWR,wl,SS,ZWY,pr,XQo,HWb,FO,J8o,P0b,iWY,
r8b,oFG,wQI,uke,pQo,mOb,K0I,WeS,hxY,d0R,N6,Rxo,gCr,QAk,zxY,t5w,Cdo,M5w,U0G,V5e,Ui,NVS,BVk,IJk,D0I,AcG,x0n,M6,Lek,$0R,ZUI,XZo,HUr,tz,PdG,aJY,JcR,fJk,bUk,Iy,oCW,YJR,udG,pZY,m0r,FFw,Az,Ld,si,d1W,Ken,NeW,Zn,eoS,PX,Jz,Qre,CYr,v7k,Ipn,cHo,ay,D1b,x1k,kXG,srW,LFw,qmo,$1n,X0b,Oi,HMb,PYk,lu,r$,fpr,OMo,bMI,oy,yHI,jrW,rHr,Kd,uHr,Smr,p0R,m1k,KFI,h8,NO,Vn,UG,Eto,eu,hyr,dyw,N3n,Vhk,Ryr,eyo,UyR,go,Mhn,thr,Qn,zyS,CfS,gto,B3o,t8,I0k,cVI,Dyr,xyn,AVR,k5G,s_W,$yY,LRW,Xcr,Onb,l0e,yVb,inY,otb,T3e,rVY,G5e,wcn,SBW,uAb,pcI,
KRn,Frr,LW,dQG,Z4,UQw,Vnw,R_r,HQ,PQ,e_Y,J8,Mne,QLr,tnI,vOW,ctG,Imw,m0,DQr,z_b,$Qo,ZXe,Xsw,hc,HXW,Jto,OXW,nOr,lmk,rtk,TTI,oOo,GnY,wsr,KrR,uVI,psI,mQY,F1Y,W1r,hvI,Exr,N8G,dWr,CU,VrY,RvG,evb,zvW,sJ,LU,trn,CIG,q0,cRR,HZ,PZ,Jc,ARr,aA,qgY,bd,$WS,Zgr,XfY,HgG,yy,PIn,aUr,fUR,bgw,nxw,igb,T8e,ud,oxe,GMb,Ygo,wfW,ufr,SgW,pfn,mWo,me,WsY,EbW,hsY,dcb,NWe,V7Y,Ucr,Rso,eso,M7b,gbk,QjG,zsS,VA,Lse,qTY,Um,Rr,eQ,$co,ZYn,X5e,HYo,Psr,JFG,a2W,nbo,yFG,jjo,iYG,rFb,CM,Ir,c0,Dp,AH,sm,LM,obo,$7,YTk,Zp,w5Y,ujo,XH,STI,p5Y,mcI,Une,
e0n,tFo,IsI,vrY,R0w,cEI,krG,bVw,ZVr,iVW,HVo,jxY,rEY,Om,orI,lY,Y_I,wzI,S_G,pze,mne,FJY,jQ,Eub,hnk,dzr,N2Y,VRo,Uzo,Rnr,WJY,gun,Qor,znb,re,cge,DzS,IPW,kBe,Agn,LJr,qhY,soR,aPr,Ofb,lPn,ygY,Wc,GBR,ouW,pBo,KJo,FVk,WVI,E3b,hzo,d3o,My,zzr,C1G,g3k,MaY,tan,Vao,v3r,Zzw,D3S,x3R,kKo,n3W,j4G,lGY,YOo,bzb,NQr,GKb,cTW,$3o,yTW,BQY,RzY,U3b,ezY,Q4I,Ozr,$t,RKY,Miw,gTn,Quo,zKR,k4W,Xeo,HKr,yi,Jmo,OKb,ymw,nTY,iKk,rmr,G4Y,oTo,Y6W,S6k,uPI,pn,pek,mro,FAY,K_W,mR,VcS,NYW,djI,Mcn,UjY,gYG,epG,Q3S,FV,zpr,vYo,CzG,BYw,cbG,DjW,k_r,
dT,LAG,AbY,qdn,HQY,PzY,fRW,bQw,RL,en,j3I,iQW,MQ,gT,rbw,QQ,zn,TYr,tt,oYr,CX,G_I,YdY,vs,wrY,uEY,SdI,prk,mjb,F9k,KAw,EVR,NkY,dYr,Vbe,UYe,W9G,Rww,gVe,Mbk,hwY,Q6Y,zwr,kO,tbG,BkY,CJr,vVW,I1r,DYI,cGr,xYR,sR,AGe,s6W,ktk,q8n,Zxo,XSe,a1k,bxY,ixI,Gtw,LX,uFW,S8w,qQ,pSY,Hs,Ps,hMw,Zm,fX,dvw,N9n,UvW,RMR,Mmn,Q$W,zMW,tmr,CAR,I6G,ADn,xvk,vaW,s$W,Lcb,nX,kce,qQo,iM,$vS,ZIG,XHY,HIY,f6e,PAr,a6Y,nao,yDb,oab,T9Y,wHn,FEG,WEw,h9W,NXe,VXW,R9b,e9b,MXY,QVe,z9e,tXk,vPo,xBe,kFY,IBw,sVG,qZb,LEI,AUW,$Br,X6r,Hkn,Pvr,JUr,aBY,Ff,Wf,
d8,VO,bkr,lBI,yUR,rUo,Ug,Rk,TXr,er,YZS,w6b,uRI,g8,FNo,dab,V2o,Uae,RDo,eDR,M2Y,zDG,zM,t2e,viI,tR,IEr,xar,kAI,AfY,DaI,XYe,JfR,Hcb,aEY,bcY,nib,jZo,oio,THS,ucn,cf,SVS,pYG,DU,mak,xx,KNb,FZS,WZr,h4o,Ecr,dSb,NaR,VPk,USe,tPk,Baw,I9W,vcY,gcb,e4Y,DSw,kHI,$Sn,Zve,Pkn,l9w,ykI,qW,jYS,rko,Tao,GHb,Sno,mSw,FxS,Wxe,EUY,htr,Rte,doR,QdY,zto,CGR,Xf,vUS,IZR,chr,DoW,xoY,k0o,Aho,Lxw,qsk,ak,ZPo,XIG,JhI,fg,PGo,fZR,nUY,bI,yhr,jdo,iPY,oUo,G0o,rhr,wIS,mon,Kxk,FTb,TM,WTe,NsR,Vjb,w8,emY,UDW,Rmo,gAw,zmI,tjk,IaW,xDG,DDG,cJG,kUr,
ssn,LTR,PxY,qDY,JJS,O3r,aao,i3G,oAb,YDG,uhe,dGb,V3o,UGn,gZI,zHr,qc,ls,cCY,ACk,kGe,LKk,qje,Z$r,$GS,Xyk,H$e,nY,CCr,DGY,seS,xGo,OT,us,aok,O$w,yCe,jeo,i$Y,rCY,TrY,oZe,GGo,ms,YjG,KY,wye,uUw,Sjk,pyb,E_,mGG,WMG,hiI,dHo,g4o,zin,tCe,Cnw,v4o,I5W,gR,DHb,xHr,kar,ABR,s7I,LMY,$Hb,XDw,PnS,JBb,n4b,bBo,yBo,rBI,TpR,Ix,o4Y,Gak,Yww,Swe,mHS,pDo,Fye,E5k,kr,ddY,NNY,hRo,VMo,Udn,eRG,iHr,jqG,rjo,RRI,TNn,o5Y,GNe,YPr,wiW,uxn,SPr,piG,mdY,W4k,F4R,EJr,dCn,hLG,AE,NZr,RLb,zLG,Vtw,ttY,CEr,BZe,vJn,L4G,$Cr,Zio,HiY,PEb,O_,Oio,y7r,iio,
lC,Ghw,oJk,Yak,jF,wPS,uWI,Sar,mCw,K4r,F8k,W8I,hIo,dIo,tlS,Mle,Q0Y,BLG,Cpr,vQn,ITb,DIS,kYo,s0I,qXY,boe,y5b,ior,r5o,TLY,oQW,GYS,wtR,ubr,mIR,K8Y,Foo,Woe,EEG,hBY,dXr,N_e,RBR,Qvr,FC,WB,Eh,hg,zBb,Vc,Cak,svW,Hyk,ZyY,YkY,w2W,uBr,vEe,AlG,DXW,Skb,p2o,mXR,qkI,F2G,EgR,d4e,U4o,RJn,Io,CDI,tBI,cqo,kfY,s9n,qze,$4w,H7o,JqG,PDw,O7S,lWb,ogW,rqG,yqS,T5o,j9n,Gfk,Szr,HB,Ntr,Ezr,Ueo,RPr,MVe,gzr,Jg,Qmr,CUW,Btw,vzo,INY,q9S,LCY,jR,Yu,aNG,fNW,ub,OOb,bOn,lNo,nzR,yAS,jme,iOS,rAR,Ttr,ozr,G$o,Y9Y,wNW,uwr,S9R,SR,pNb,mek,KCS,FmY,
WmY,EfY,hZI,duo,N7Y,Vgw,Uue,RZe,mJ,Mgr,QGG,tge,vfb,Due,xuw,k9r,sGr,qLY,$ue,Z1o,H1n,fje,JLY,O1r,b1R,lje,jGG,G9Y,YLo,uJI,I4,p3r,Bm,KmS,FOb,cm,WOr,Eow,h7W,dMb,x3,R7k,Mdo,C6k,tdo,voo,ICe,ZG,cMS,DMI,kdk,sto,LOk,$MR,Zpb,AMo,X$W,fCY,noI,yMY,Xm,jtw,ipI,YcS,rMS,ooo,GdG,KOG,utW,F3R,E6r,d_r,Nqn,V6I,U_o,RQk,eQo,g6k,Q8o,zQY,t6n,CrR,v6Y,cnW,kDw,qNG,XhY,Prr,fMS,b1,OSY,bSY,lMk,n6e,ynI,iSr,rnY,TqG,o6Y,GDR,YNG,whk,uIe,SNo,phb,m_r,Fqr,K3k,hUw,NDY,y9,Vyk,eUk,RUr,i1,QzS,zUe,vhR,D2G,Ibb,BDo,A3o,kpw,Zje,szY,Y3,qKY,Ojr,
P4r,J3r,abY,fbY,bjI,nhk,lbY,wQ,u1,GpR,jzG,ohR,TDS,ijn,r3G,usY,pJR,KqI,m2w,h5o,E8R,V_W,U5G,e5n,M_Y,R5o,g8k,z5W,QJY,Cmw,IHr,hm,cik,D5k,AiI,Z8S,fHR,Nr,b8R,jJG,o8o,T4W,i8k,riR,Mr,SbS,YbW,wuo,puo,Klr,m5o,ESo,hfn,Njb,V4w,Uxo,Rfn,efr,gSY,QRr,kT,t4r,s6,Cto,cIo,DxY,ZA,xxo,AIr,JIR,au,$xe,PtY,ZsI,XqW,bsb,lOr,Osr,nSI,yII,Tjn,jRG,oSe,GZo,O6,wqo,uXR,SvG,Yvb,mxo,pqb,bH,Eqe,eVk,Mqr,gqG,Q1Y,zVw,tqb,I$Y,Bmo,vqb,CTY,D7w,Aeb,qxe,$7w,Xjo,iH,HRI,PTo,JeS,f$I,ORk,bRY,l$k,nqr,yer,iRG,wh,reY,Glb,oqS,wjr,YxI,u5b,Sxw,pjG,uH,
KIS,MEY,RYY,zYr,tEo,Dbo,xbo,kjr,Adk,sco,LUI,Z_n,Xvr,H_k,PRR,fLr,O_I,b_n,lLe,nDo,ydR,jcr,i_R,rdI,TEW,oDR,YtI,wve,uuR,pvw,KUn,WHY,NSr,dgY,hOb,EsG,UgW,ROS,CQ,eOI,MZS,gsY,QFY,Cek,zOY,BSS,tZr,vso,cr,Icr,cwG,Dgn,xgG,kQY,qyo,$gn,ZaI,Per,Hao,X9k,sd,Jww,acn,fcb,Oab,baY,lcI,ywY,jFr,iaI,rwn,GQR,osr,p9o,TSY,qj,mge,Yyw,SyI,Wbr,h$Y,R$n,V1k,UJw,NMk,dJk,a3,e$o,g_e,QQr,z$Y,t1k,ClS,Od,bz,DJY,v_S,BMG,IrR,PlR,XFb,c$b,Zhb,n_o,y$o,jQR,mA,ihn,r$o,TMn,Y4n,uyw,pFr,KbY,Fio,WiG,NzI,dhG,VGe,Rgk,NY,g2o,QCw,zgW,tGb,U8,R6,v2n,
Dho,qUo,MY,HJG,Pyn,JOY,ahW,fhG,bJo,n2Y,lhI,yOG,jCe,rOe,TzI,o2o,G1Y,YUo,waY,Cx,mhY,u7b,BS,FQR,Kio,WQS,R3R,e3I,Nxo,dfW,UfG,VKI,tKr,C$Y,Bxk,cS,vyr,IgS,c4k,DfY,xfY,sPW,kuo,A4o,LQW,$fr,XCY,P$n,agW,OGo,y4W,jPn,iGo,r4W,Txb,xV,GuG,oye,kV,Y$n,uio,S$e,pCR,mfY,hEY,d9b,NJr,VWo,U9Y,REr,eEw,Z1,gXk,QDY,zER,C3I,tWY,BJb,IQS,cpb,D9Y,kIb,Apo,x9o,X7Y,Jpk,aQY,fQe,OZo,lQe,bZY,nXn,rpb,TJR,oXe,GIn,w7I,YEo,SEY,WSn,FSW,h8r,dZS,N0Y,MvY,g$Y,QMk,z8W,Ifk,v$e,B0o,xZo,AuY,kPI,sMW,Gt,LSS,qSY,PcI,HAb,Juo,afb,OAo,bAn,yur,jMe,iAY,ruw,
T0k,o$k,GPr,YSR,wAw,uZR,SSe,pAb,KSS,mZR,FdG,Wdr,Emo,h1o,dEW,NFk,VxR,UEY,e1n,MxY,R1G,FY,z1b,Cwk,BFb,vmr,I3I,DEo,xEY,$Eb,ZeY,a3Y,Oew,beI,yso,jUk,iew,rsY,TFI,omr,Yon,w4I,SoY,mEY,FzI,dqb,E0e,WzR,hSS,Nfr,RSn,VNG,Uqr,MNw,zSW,tNo,CQn,v0S,IxW,cSW,xqr,ASo,Dqn,shG,Lzw,qCI,$qk,ZDr,HDe,PQI,JSI,axo,ODo,fxe,bDn,lxo,n0o,ySe,jhr,iDY,rSe,Tfn,YCY,w1Y,o0r,Gsk,p1w,Fwk,WwS,QXY,RCk,gHb,zCY,MYr,zc,tYr,ChS,vHR,DLR,cQe,xLb,kvr,tD,BH,sXY,LwG,cH,D6,XLY,qHS,$Ln,JQS,O5b,liG,nHo,yQS,jXn,i5e,TOY,oHG,Gvk,YHw,wLk,uKr,SHw,AD,pLo,
mLW,LI,KwY,FWG,WWI,EnW,hbo,dAe,Z6,XY,NiY,V0k,HH,UAe,Rbo,ebI,M0S,QfS,zbI,CXe,DAS,c6G,Iwo,xAr,kmo,Z6o,LWW,quo,sfW,$Ab,JD,J6I,awY,fwo,O6o,b6G,nnS,r6Y,jfY,a$,y6G,wVG,Suo,pVr,mAY,KWk,F5r,hjb,dtS,Utr,Rjk,ejY,MAr,Qpk,zjS,tAn,CNo,vGk,Itw,c9r,xtr,kVe,spk,L5Y,Hln,J9R,PNk,ftG,y9b,jpr,ilr,r9Y,yg,iA,jm,TBo,oGY,GVw,YlY,wlr,Slr,plw,mto,K5k,WuG,hkW,dso,NyS,r9,Vsn,RkG,ekb,QBI,zkk,Tc,o$,Byr,tsr,vew,Dso,IKW,xse,Sm,Aob,sBo,$sn,Xnn,pI,Pqe,JoS,aKk,fKw,O4n,b4b,lKI,yob,TyY,oeb,wnW,Gbr,Y3n,uqb,S3S,FDR,pno,Kuo,WDn,EMr,hqe,
VDr,UkI,RqW,eqS,MDo,Bbe,CFG,kgR,LDG,VT,qAb,ZrY,$kR,ZFb,HFG,JxR,alo,jbW,iFk,gX,rxW,Tbw,oMe,Ggr,YAS,uvr,pWr,wWo,SAS,Fhw,KDS,ELe,hlr,dVY,NdY,VoY,UVn,Rlr,elo,zlI,Bdb,toG,vLY,IXS,c0R,tU,DVw,xVr,B6,A0o,koI,s5k,Lhb,$Vr,ZES,HEo,PWS,J0n,aXn,fXW,lXI,j5w,Tdo,r0W,oLn,Gor,u1I,NPW,KhW,UNe,RGk,MLR,g1S,zGG,BPY,IFY,v1Y,DNS,xNb,kEr,AKI,sww,LtY,$No,HmY,P8Y,JKo,aFR,bme,OmW,jwo,imI,rKI,TPk,o1o,GEW,w8n,aV,S1r,lv,mNI,Far,WaY,Vwr,Rhr,Qao,twr,CPY,vvr,I7W,cYw,x8o,AYo,sar,$8o,XoR,JYR,PPS,Htk,TF,f7o,a7b,Otw,btY,l7I,nvW,yYS,
jaS,ito,TAS,ovb,Gwk,woI,pow,Y5G,uTr,m8b,KaW,F$o,W$o,hen,dKR,QNn,zeo,tpR,C7r,BKn,cZY,pk,L$W,q7R,$KW,Z9Y,Xxb,mE,Kk,oT,lkW,WY,nNW,rZe,oNw,TKY,EV,G7k,Y7w,oRb;_.Fe=function(F,W){if(Error.captureStackTrace)Error.captureStackTrace(this,_.Fe);else{var E=Error().stack;E&&(this.stack=E)}F&&(this.message=String(F));W!==void 0&&(this.cause=W)};
WG=function(){throw Error("B");};
FYn=function(F,W){W=String.fromCharCode.apply(null,W);return F==null?W:F+W};
dwb=function(F){var W=!1;W=W===void 0?!1:W;if(WYe){if(W&&(EWG?!F.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(F)))throw Error("C");F=(hrW||(hrW=new TextEncoder)).encode(F)}else{for(var E=0,h=new Uint8Array(3*F.length),d=0;d<F.length;d++){var V=F.charCodeAt(d);if(V<128)h[E++]=V;else{if(V<2048)h[E++]=V>>6|192;else{if(V>=55296&&V<=57343){if(V<=56319&&d<F.length){var R=F.charCodeAt(++d);if(R>=56320&&R<=57343){V=(V-55296)*1024+R-56320+65536;h[E++]=V>>18|
240;h[E++]=V>>12&63|128;h[E++]=V>>6&63|128;h[E++]=V&63|128;continue}else d--}if(W)throw Error("C");V=65533}h[E++]=V>>12|224;h[E++]=V>>6&63|128}h[E++]=V&63|128}}F=E===h.length?h:h.subarray(0,E)}return F};
dI=function(F){_.EY.setTimeout(function(){throw F;},0)};
_.Vo=function(F,W){return F.lastIndexOf(W,0)==0};
ek=function(F,W){var E=F.length-W.length;return E>=0&&F.indexOf(W,E)==E};
_.Mw=function(F){return/^[\s\xa0]*$/.test(F)};
_.gI=function(F,W){return F.indexOf(W)!=-1};
_.zR=function(F,W){return _.gI(F.toLowerCase(),W.toLowerCase())};
_.Cb=function(F,W){var E=0;F=tr(String(F)).split(".");W=tr(String(W)).split(".");for(var h=Math.max(F.length,W.length),d=0;E==0&&d<h;d++){var V=F[d]||"",R=W[d]||"";do{V=/(\d*)(\D*)(.*)/.exec(V)||["","","",""];R=/(\d*)(\D*)(.*)/.exec(R)||["","","",""];if(V[0].length==0&&R[0].length==0)break;E=NIo(V[1].length==0?0:parseInt(V[1],10),R[1].length==0?0:parseInt(R[1],10))||NIo(V[2].length==0,R[2].length==0)||NIo(V[2],R[2]);V=V[3];R=R[3]}while(E==0)}return E};
NIo=function(F,W){return F<W?-1:F>W?1:0};
_.BG=function(){var F=_.EY.navigator;return F&&(F=F.userAgent)?F:""};
kW=function(F){if(!vG||!cG)return!1;for(var W=0;W<cG.brands.length;W++){var E=cG.brands[W].brand;if(E&&_.gI(E,F))return!0}return!1};
Ar=function(F){return _.gI(_.BG(),F)};
sY=function(){return vG?!!cG&&cG.brands.length>0:!1};
ZS=function(){return sY()?!1:Ar("Opera")};
VkY=function(){return sY()?!1:Ar("Trident")||Ar("MSIE")};
UwR=function(){return sY()?kW("Microsoft Edge"):Ar("Edg/")};
Xe=function(){return Ar("Firefox")||Ar("FxiOS")};
_.PG=function(){return Ar("Safari")&&!(_.HG()||(sY()?0:Ar("Coast"))||ZS()||(sY()?0:Ar("Edge"))||UwR()||(sY()?kW("Opera"):Ar("OPR"))||Xe()||Ar("Silk")||Ar("Android"))};
_.HG=function(){return sY()?kW("Chromium"):(Ar("Chrome")||Ar("CriOS"))&&!(sY()?0:Ar("Edge"))||Ar("Silk")};
_.Rrr=function(){return Ar("Android")&&!(_.HG()||Xe()||ZS()||Ar("Silk"))};
erS=function(F){var W={};F.forEach(function(E){W[E[0]]=E[1]});
return function(E){return W[E.find(function(h){return h in W})]||""}};
Mkr=function(F){var W=_.BG();if(F==="Internet Explorer"){if(VkY())if((F=/rv: *([\d\.]*)/.exec(W))&&F[1])W=F[1];else{F="";var E=/MSIE +([\d\.]+)/.exec(W);if(E&&E[1])if(W=/Trident\/(\d.\d)/.exec(W),E[1]=="7.0")if(W&&W[1])switch(W[1]){case "4.0":F="8.0";break;case "5.0":F="9.0";break;case "6.0":F="10.0";break;case "7.0":F="11.0"}else F="7.0";else F=E[1];W=F}else W="";return W}var h=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");E=[];for(var d;d=h.exec(W);)E.push([d[1],d[2],d[3]||void 0]);
W=erS(E);switch(F){case "Opera":if(ZS())return W(["Version","Opera"]);if(sY()?kW("Opera"):Ar("OPR"))return W(["OPR"]);break;case "Microsoft Edge":if(sY()?0:Ar("Edge"))return W(["Edge"]);if(UwR())return W(["Edg"]);break;case "Chromium":if(_.HG())return W(["Chrome","CriOS","HeadlessChrome"])}return F==="Firefox"&&Xe()||F==="Safari"&&_.PG()||F==="Android Browser"&&_.Rrr()||F==="Silk"&&Ar("Silk")?(W=E[2])&&W[1]||"":""};
_.gWb=function(F){if(sY()&&F!=="Silk"){var W=cG.brands.find(function(E){return E.brand===F});
if(!W||!W.version)return NaN;W=W.version.split(".")}else{W=Mkr(F);if(W==="")return NaN;W=W.split(".")}return W.length===0?NaN:Number(W[0])};
an=function(){return vG?!!cG&&!!cG.platform:!1};
_.Qne=function(){return an()?cG.platform==="Android":Ar("Android")};
zre=function(){return Ar("iPhone")&&!Ar("iPod")&&!Ar("iPad")};
_.OY=function(){return zre()||Ar("iPad")||Ar("iPod")};
_.tkS=function(){return an()?cG.platform==="macOS":Ar("Macintosh")};
_.Cor=function(){return an()?cG.platform==="Windows":Ar("Windows")};
_.BIo=function(){return an()?cG.platform==="Chrome OS":Ar("CrOS")};
_.lo=function(F){return F[F.length-1]};
_.yo=function(F,W,E){W=_.vWS(F,W,E);return W<0?null:typeof F==="string"?F.charAt(W):F[W]};
_.vWS=function(F,W,E){for(var h=F.length,d=typeof F==="string"?F.split(""):F,V=0;V<h;V++)if(V in d&&W.call(E,d[V],V,F))return V;return-1};
ISW=function(F){for(var W=_.io,E=typeof F==="string"?F.split(""):F,h=F.length-1;h>=0;h--)if(h in E&&W.call(void 0,E[h],h,F))return h;return-1};
_.on=function(F,W){return _.TR(F,W)>=0};
_.GR=function(F,W){_.on(F,W)||F.push(W)};
_.mY=function(F,W){W=_.TR(F,W);var E;(E=W>=0)&&_.YW(F,W);return E};
_.YW=function(F,W){Array.prototype.splice.call(F,W,1)};
_.Kb=function(F){var W=F.length;if(W>0){for(var E=Array(W),h=0;h<W;h++)E[h]=F[h];return E}return[]};
_.ha=function(F,W){for(var E=1;E<arguments.length;E++){var h=arguments[E];if(_.Ee(h)){var d=F.length||0,V=h.length||0;F.length=d+V;for(var R=0;R<V;R++)F[d+R]=h[R]}else F.push(h)}};
_.Dwk=function(F,W,E,h){Array.prototype.splice.apply(F,cre(arguments,1))};
cre=function(F,W,E){return arguments.length<=2?Array.prototype.slice.call(F,W):Array.prototype.slice.call(F,W,E)};
eH=function(F,W){W=W||F;for(var E=0,h=0,d={};h<F.length;){var V=F[h++],R=_.NU(V)?"o"+_.Ue(V):(typeof V).charAt(0)+V;Object.prototype.hasOwnProperty.call(d,R)||(d[R]=!0,W[E++]=V)}W.length=E};
_.xwW=function(F,W,E){E=E||_.QM;for(var h=0,d=F.length,V;h<d;){var R=h+(d-h>>>1);var M=E(W,F[R]);M>0?h=R+1:(d=R,V=!M)}return V?h:-h-1};
_.zz=function(F,W,E){if(!_.Ee(F)||!_.Ee(W)||F.length!=W.length)return!1;var h=F.length;E=E||kRY;for(var d=0;d<h;d++)if(!E(F[d],W[d]))return!1;return!0};
_.QM=function(F,W){return F>W?1:F<W?-1:0};
kRY=function(F,W){return F===W};
ArR=function(F,W,E){W=Array.prototype.splice.call(F,W,1);Array.prototype.splice.call(F,E,0,W[0])};
LYW=function(F){return snn[F]||""};
Zbe=function(F){if(!qYY)return _.CT(F);F=$wo.test(F)?F.replace($wo,LYW):F;F=atob(F);for(var W=new Uint8Array(F.length),E=0;E<F.length;E++)W[E]=F.charCodeAt(E);return W};
XGk=function(F,W){F.__closure__error__context__984382||(F.__closure__error__context__984382={});F.__closure__error__context__984382.severity=W};
_.D_=function(F){F=Error(F);XGk(F,"warning");return F};
kB=function(F,W){if(F!=null){var E;var h=(E=HbY)!=null?E:HbY={};E=h[F]||0;E>=W||(h[F]=E+1,F=Error(),XGk(F,"incident"),dI(F))}};
qU=function(F,W,E){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(E===void 0?0:E)&&Symbol.for&&F?Symbol.for(F):F!=null?Symbol(F):Symbol():W};
PO=function(F,W){$B||_.Xp in F||Poe(F,JrY);F[_.Xp]|=W};
Ja=function(F,W){$B||_.Xp in F||Poe(F,JrY);F[_.Xp]=W};
aSr=function(F){if(4&F)return 512&F?512:1024&F?1024:0};
ai=function(F){PO(F,34);return F};
fSS=function(F){PO(F,32);return F};
fT=function(){return typeof BigInt==="function"};
nT=function(F,W){return W===void 0?F.copyOnWrite!==Oe&&!!(2&(F.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.Xp]|0)):!!(2&W)&&F.copyOnWrite!==Oe};
_.Tz=function(F,W){if(F!=null)if(typeof F==="string")F=F?new yM(F,jH):_.rc();else if(F.constructor!==yM)if(ObS&&F!=null&&F instanceof Uint8Array)F=F.length?new yM(new Uint8Array(F),jH):_.rc();else{if(!W)throw Error();F=void 0}return F};
oi=function(F,W){if(typeof W!=="number"||W<0||W>=F.length)throw Error();};
bbG=function(F,W,E){W=W&128?0:-1;var h=F.length,d;if(d=!!h)d=F[h-1],d=d!=null&&typeof d==="object"&&d.constructor===Object;for(var V=h+(d?-1:0),R=0;R<V;R++)E(R-W,F[R]);if(d){F=F[h-1];for(var M in F)!isNaN(M)&&E(+M,F[M])}};
wc=function(F){return F&128?Gz:void 0};
SH=function(F){F.isGuard_doNotManuallySetPrettyPlease=!0;return F};
nWW=function(){var F=lSr;return SH(function(W){for(var E in F)if(W===F[E]&&!/^[0-9]+$/.test(E))return!0;return!1})};
_.mX=function(F){var W=F;if(yre(W)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(W))throw Error(String(W));}else if(jnI(W)&&!Number.isSafeInteger(W))throw Error(String(W));return pT?BigInt(F):F=ibk(F)?F?"1":"0":yre(F)?F.trim()||"0":String(F)};
rrG=function(F,W){if(F.length>W.length)return!1;if(F.length<W.length||F===W)return!0;for(var E=0;E<F.length;E++){var h=F[E],d=W[E];if(h>d)return!1;if(h<d)return!0}};
TIe=function(F){var W=F>>>0;KT=W;F6=(F-W)/4294967296>>>0};
WT=function(F){if(F<0){TIe(-F);var W=_.U(oWW(KT,F6));F=W.next().value;W=W.next().value;KT=F>>>0;F6=W>>>0}else TIe(F)};
GRn=function(F,W){var E=W*4294967296+(F>>>0);return Number.isSafeInteger(E)?E:_.Eq(F,W)};
hP=function(F,W){var E=W&2147483648;E&&(F=~F+1>>>0,W=~W>>>0,F==0&&(W=W+1>>>0));F=GRn(F,W);return typeof F==="number"?E?-F:F:E?"-"+F:F};
_.Eq=function(F,W){W>>>=0;F>>>=0;if(W<=2097151)var E=""+(4294967296*W+F);else fT()?E=""+(BigInt(W)<<BigInt(32)|BigInt(F)):(E=(F>>>24|W<<8)&16777215,W=W>>16&65535,F=(F&16777215)+E*6777216+W*6710656,E+=W*8147497,W*=2,F>=1E7&&(E+=F/1E7>>>0,F%=1E7),E>=1E7&&(W+=E/1E7>>>0,E%=1E7),E=W+YYI(E)+YYI(F));return E};
YYI=function(F){F=String(F);return"0000000".slice(F.length)+F};
_.dw=function(F,W){W&2147483648?fT()?F=""+(BigInt(W|0)<<BigInt(32)|BigInt(F>>>0)):(W=_.U(oWW(F,W)),F=W.next().value,W=W.next().value,F="-"+_.Eq(F,W)):F=_.Eq(F,W);return F};
Vx=function(F){if(F.length<16)WT(Number(F));else if(fT())F=BigInt(F),KT=Number(F&BigInt(4294967295))>>>0,F6=Number(F>>BigInt(32)&BigInt(4294967295));else{var W=+(F[0]==="-");F6=KT=0;for(var E=F.length,h=W,d=(E-W)%6+W;d<=E;h=d,d+=6)h=Number(F.slice(h,d)),F6*=1E6,KT=KT*1E6+h,KT>=4294967296&&(F6+=Math.trunc(KT/4294967296),F6>>>=0,KT>>>=0);W&&(W=_.U(oWW(KT,F6)),F=W.next().value,W=W.next().value,KT=F,F6=W)}};
oWW=function(F,W){W=~W;F?F=~F+1:W+=1;return[F,W]};
Uq=function(F){return Array.prototype.slice.call(F)};
_.RO=function(F,W){throw Error(W===void 0?"unexpected value "+F+"!":W);};
_.e$=function(F){if(F!=null&&typeof F!=="number")throw Error("I`"+typeof F+"`"+F);return F};
_.gw=function(F){if(F==null||typeof F==="number")return F;if(F==="NaN"||F==="Infinity"||F==="-Infinity")return Number(F)};
wGS=function(F){if(F!=null&&typeof F!=="boolean")throw Error("J`"+_.CN(F)+"`"+F);return F};
_.uen=function(F){if(F==null||typeof F==="boolean")return F;if(typeof F==="number")return!!F};
_.cT=function(F){switch(typeof F){case "bigint":return!0;case "number":return vT(F);case "string":return SYY.test(F);default:return!1}};
_.xK=function(F){if(!vT(F))throw _.D_("enum");return F|0};
_.kK=function(F){return F==null?F:vT(F)?F|0:void 0};
pGS=function(F){if(typeof F!=="number")throw _.D_("int32");if(!vT(F))throw _.D_("int32");return F|0};
_.sq=function(F){return F==null?F:pGS(F)};
_.LN=function(F){if(F==null)return F;if(typeof F==="string"&&F)F=+F;else if(typeof F!=="number")return;return vT(F)?F|0:void 0};
_.qF=function(F){if(F==null)return F;if(typeof F==="string"&&F)F=+F;else if(typeof F!=="number")return;return vT(F)?F>>>0:void 0};
WXe=function(F){var W=0;W=W===void 0?0:W;if(!_.cT(F))throw _.D_("int64");var E=typeof F;switch(W){case 512:switch(E){case "string":return $K(F);case "bigint":return String(Zu(64,F));default:return mwI(F)}case 1024:switch(E){case "string":return KYo(F);case "bigint":return _.mX(Zu(64,F));default:return FXW(F)}case 0:switch(E){case "string":return $K(F);case "bigint":return _.mX(Zu(64,F));default:return HT(F)}default:return _.RO(W,"Unknown format requested type for int64")}};
JP=function(F){return F==null?F:WXe(F)};
EBn=function(F){if(F[0]==="-")return!1;var W=F.length;return W<20?!0:W===20&&Number(F.substring(0,6))<184467};
huY=function(F){var W=F.length;return F[0]==="-"?W<20?!0:W===20&&Number(F.substring(0,7))>-922337:W<19?!0:W===19&&Number(F.substring(0,6))<922337};
dUI=function(F){if(F<0){WT(F);var W=_.Eq(KT,F6);F=Number(W);return aO(F)?F:W}W=String(F);if(EBn(W))return W;WT(F);return GRn(KT,F6)};
Ncr=function(F){if(huY(F))return F;Vx(F);return _.dw(KT,F6)};
VHo=function(F){if(EBn(F))return F;Vx(F);return _.Eq(KT,F6)};
HT=function(F){F=fN(F);aO(F)||(WT(F),F=hP(KT,F6));return F};
_.UUR=function(F){F=fN(F);return F>=0&&aO(F)?F:dUI(F)};
mwI=function(F){F=fN(F);if(aO(F))F=String(F);else{var W=String(F);huY(W)?F=W:(WT(F),F=_.dw(KT,F6))}return F};
_.Rub=function(F){F=fN(F);if(F>=0&&aO(F))F=String(F);else{var W=String(F);EBn(W)?F=W:(WT(F),F=_.Eq(KT,F6))}return F};
$K=function(F){var W=fN(Number(F));if(aO(W))return String(W);W=F.indexOf(".");W!==-1&&(F=F.substring(0,W));return Ncr(F)};
KYo=function(F){var W=fN(Number(F));if(aO(W))return _.mX(W);W=F.indexOf(".");W!==-1&&(F=F.substring(0,W));return fT()?_.mX(Zu(64,BigInt(F))):_.mX(Ncr(F))};
FXW=function(F){return aO(F)?_.mX(HT(F)):_.mX(mwI(F))};
_.euW=function(F){return aO(F)?_.mX(_.UUR(F)):_.mX(_.Rub(F))};
_.MHG=function(F){var W=fN(Number(F));if(aO(W)&&W>=0)return String(W);W=F.indexOf(".");W!==-1&&(F=F.substring(0,W));return VHo(F)};
_.gBI=function(F){var W=fN(Number(F));if(aO(W)&&W>=0)return _.mX(W);W=F.indexOf(".");W!==-1&&(F=F.substring(0,W));return fT()?_.mX((0,_.Oq)(64,BigInt(F))):_.mX(VHo(F))};
_.QiW=function(F){if(F==null)return F;if(typeof F==="bigint")return bK(F)?F=Number(F):(F=Zu(64,F),F=bK(F)?Number(F):String(F)),F;if(_.cT(F))return typeof F==="number"?HT(F):$K(F)};
zuo=function(F,W){W=W===void 0?!1:W;var E=typeof F;if(F==null)return F;if(E==="bigint")return String(Zu(64,F));if(_.cT(F))return E==="string"?$K(F):W?mwI(F):HT(F)};
_.tHe=function(F){var W=typeof F;if(F==null)return F;if(W==="bigint")return _.mX(Zu(64,F));if(_.cT(F))return W==="string"?KYo(F):FXW(F)};
C_S=function(F){if(F==null)return F;var W=typeof F;if(W==="bigint")return String(Zu(64,F));if(_.cT(F)){if(W==="string")return $K(F);if(W==="number")return HT(F)}};
BcS=function(F){if(F==null)return F;var W=typeof F;if(W==="bigint")return String((0,_.Oq)(64,F));if(_.cT(F)){if(W==="string")return _.MHG(F);if(W==="number")return _.UUR(F)}};
_.lK=function(F){if(typeof F!=="string")throw Error();return F};
nN=function(F){if(F!=null&&typeof F!=="string")throw Error();return F};
_.yx=function(F){return F==null||typeof F==="string"?F:void 0};
vBW=function(F,W,E,h){if(F!=null&&F[rw]===T8)return F;if(!Array.isArray(F))return E?h&2?((F=W[oO])||(F=new W,ai(F.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows),F=W[oO]=F),W=F):W=new W:W=void 0,W;E=F[_.Xp]|0;h=E|h&32|h&2;h!==E&&Ja(F,h);return new W(F)};
I_Y=function(F,W,E){F=W?pGS(F):_.LN(F);return F==null?E?0:void 0:F|0};
cab=function(F){return F};
DUr=function(F){return F};
kzr=function(F,W,E,h,d,V){F=vBW(F,h,E,V);d&&(F=xUo(F));return F};
AaW=function(F){return[F,this.get(F)]};
qew=function(){return siI||(siI=new G8(ai([]),void 0,void 0,void 0,LXI))};
pN=function(F){var W=ww(uK);return W?F[W]:void 0};
XOR=function(F,W){var E=E===void 0?!1:E;if(ww($Ur)&&ww(uK)&&void 0===$Ur){var h=F.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,d=h[uK];if(!d)return;if(d=d.reviveUnknownFields)try{d(h,W,ZTk);return}catch(V){dI(V)}}E&&(F=F.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,(E=ww(uK))&&E in F&&(F=F[E])&&delete F[W])};
P_r=function(F,W){var E=ww(uK),h;$B&&E&&((h=F[E])==null?void 0:h[W])!=null&&kB(HTG,3)};
a_o=function(F,W){W<100||kB(Jar,1)};
l_G=function(F,W,E,h){var d=h!==void 0;h=!!h;var V=ww(uK),R;!d&&$B&&V&&(R=F[V])&&mg(R,a_o);V=[];var M=F.length;R=4294967295;var g=!1,t=!!(W&64),C=t?W&128?0:-1:void 0;if(!(W&1)){var B=M&&F[M-1];B!=null&&typeof B==="object"&&B.constructor===Object?(M--,R=M):B=void 0;if(t&&!(W&128)&&!d){g=!0;var I;R=((I=f_o)!=null?I:cab)(R-C,C,F,B)+C}}W=void 0;for(I=0;I<M;I++){var x=F[I];if(x!=null&&(x=E(x,h))!=null)if(t&&I>=R){var A=I-C,X=void 0;((X=W)!=null?X:W={})[A]=x}else V[I]=x}if(B)for(var P in B)M=B[P],M!=null&&
(M=E(M,h))!=null&&(I=+P,x=void 0,t&&!Number.isNaN(I)&&(x=I+C)<R?V[x]=M:(I=void 0,((I=W)!=null?I:W={})[P]=M));W&&(g?V.push(W):V[R]=W);d&&ww(uK)&&(F=pN(F))&&F instanceof OTR&&(V[uK]=bTY(F));return V};
nBn=function(F){F[0]=KN(F[0]);F[1]=KN(F[1]);return F};
KN=function(F){switch(typeof F){case "number":return Number.isFinite(F)?F:""+F;case "bigint":return bK(F)?Number(F):""+F;case "boolean":return F?1:0;case "object":if(Array.isArray(F)){var W=F[_.Xp]|0;return F.length===0&&W&1?void 0:l_G(F,W,KN)}if(F!=null&&F[rw]===T8)return yao(F);if(F instanceof yM){W=F.JSC$6716_value_;if(W==null)F="";else if(typeof W==="string")F=W;else{if(qYY){for(var E="",h=0,d=W.length-10240;h<d;)E+=String.fromCharCode.apply(null,W.subarray(h,h+=10240));E+=String.fromCharCode.apply(null,
h?W.subarray(h):W);W=btoa(E)}else W=_.FG(W);F=F.JSC$6716_value_=W}return F}if(F instanceof G8)return F=F.size!==0?Array.from(Wk.prototype.entries.call(F),nBn):void 0,F;return}return F};
du=function(F,W){if(W){f_o=W==null||W===cab||W[jik]!==iTo?cab:W;try{return yao(F)}finally{f_o=void 0}}return yao(F)};
yao=function(F){F=F.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return l_G(F,F[_.Xp]|0,KN)};
oBI=function(F){switch(typeof F){case "boolean":return rak||(rak=[0,void 0,!0]);case "number":return F>0?void 0:F===0?Tcr||(Tcr=[0,void 0]):[-F,void 0];case "string":return[0,F];case "object":return F}};
Uf=function(F,W,E){return F=_.NR(F,W[0],W[1],E?1:2)};
_.NR=function(F,W,E,h){h=h===void 0?0:h;if(F==null){var d=32;E?(F=[E],d|=128):F=[];W&&(d=d&-8380417|(W&1023)<<13)}else{if(!Array.isArray(F))throw Error("L");d=F[_.Xp]|0;2048&d&&!(2&d)&&Gze();if(d&256)throw Error("N");if(d&64)return h!==0||d&2048||Ja(F,d|2048),F;if(E&&(d|=128,E!==F[0]))throw Error("O");a:{E=F;d|=64;var V=E.length;if(V){var R=V-1,M=E[R];if(M!=null&&typeof M==="object"&&M.constructor===Object){W=d&128?0:-1;R-=W;if(R>=1024)throw Error("Q");for(var g in M)V=+g,V<R&&(E[V+W]=M[g],delete M[g]);
d=d&-8380417|(R&1023)<<13;break a}}if(W){g=Math.max(W,V-(d&128?0:-1));if(g>1024)throw Error("R");d=d&-8380417|(g&1023)<<13}}}d|=64;h===0&&(d|=2048);Ja(F,d);return F};
Gze=function(){kB(Yer,5)};
SeS=function(F,W){if(typeof F!=="object")return F;if(Array.isArray(F)){var E=F[_.Xp]|0;return F.length===0&&E&1?void 0:wOG(F,E,W)}if(F!=null&&F[rw]===T8)return upW(F);if(F instanceof G8){W=F.arrayState;if(W&2)return F;if(!F.size)return;E=ai(Array.from(Wk.prototype.entries.call(F)));if(F.valueCtor)for(F=0;F<E.length;F++){var h=E[F],d=h[1];d==null||typeof d!=="object"?d=void 0:d!=null&&d[rw]===T8?d=upW(d):Array.isArray(d)?d=wOG(d,d[_.Xp]|0,!!(W&32)):d=void 0;h[1]=d}return E}if(F instanceof yM)return F};
wOG=function(F,W,E){if(W&2)return F;!E||4096&W||16&W?F=RK(F,W,!1,E&&!(W&16)):(PO(F,34),W&4&&Object.freeze(F));return F};
ez=function(F,W,E){F=new F.constructor(W);E&&(F.copyOnWrite=Oe);F.noLegacyNull=Oe;return F};
upW=function(F){var W=F.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,E=W[_.Xp]|0;return nT(F,E)?F:gu(F,W,E)?ez(F,W):RK(W,E)};
RK=function(F,W,E,h){h!=null||(h=!!(34&W));F=l_G(F,W,SeS,h);h=32;E&&(h|=2);W=W&8380609|h;Ja(F,W);return F};
xUo=function(F){var W=F.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,E=W[_.Xp]|0;return nT(F,E)?gu(F,W,E)?ez(F,W,!0):new F.constructor(RK(W,E,!1)):F};
z2=function(F){if(F.copyOnWrite!==Oe)return!1;var W=F.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;W=RK(W,W[_.Xp]|0);PO(W,2048);F.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=W;F.copyOnWrite=void 0;F.noLegacyNull=void 0;return!0};
tW=function(F){if(!z2(F)&&nT(F,F.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.Xp]|0))throw Error();};
C2=function(F,W){W===void 0&&(W=F[_.Xp]|0);W&32&&!(W&4096)&&Ja(F,W|4096)};
gu=function(F,W,E){return E&2?!0:E&32&&!(E&4096)?(Ja(W,E|2),F.copyOnWrite=Oe,!0):!1};
Bk=function(F,W,E,h,d){var V=E+(d?0:-1),R=F.length-1;if(R>=1+(d?0:-1)&&V>=R){var M=F[R];if(M!=null&&typeof M==="object"&&M.constructor===Object)return M[E]=h,W}if(V<=R)return F[V]=h,W;if(h!==void 0){var g;R=((g=W)!=null?g:W=F[_.Xp]|0)>>13&1023||536870912;E>=R?h!=null&&(V={},F[R+(d?0:-1)]=(V[E]=h,V)):F[V]=h}return W};
_.De=function(F,W,E,h,d){var V=F.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,R=V[_.Xp]|0;h=nT(F,R)?1:h;d=!!d||h===3;h===2&&z2(F)&&(V=F.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,R=V[_.Xp]|0);F=pOw(V,W);var M=F===IK?7:F[_.Xp]|0,g=mUY(M,R);var t=4&g?!1:!0;if(t){4&g&&(F=Uq(F),M=0,g=ck(g,R),R=Bk(V,R,W,F));for(var C=0,B=0;C<F.length;C++){var I=E(F[C]);I!=null&&(F[B++]=I)}B<C&&(F.length=B);E=(g|4)&-513;g=E&=-1025;g&=-4097}g!==M&&(Ja(F,g),2&g&&Object.freeze(F));return F=KXG(F,g,V,
R,W,h,t,d)};
KXG=function(F,W,E,h,d,V,R,M){var g=W;V===1||(V!==4?0:2&W||!(16&W)&&32&h)?xR(W)||(W|=!F.length||R&&!(4096&W)||32&h&&!(4096&W||16&W)?2:256,W!==g&&Ja(F,W),Object.freeze(F)):(V===2&&xR(W)&&(F=Uq(F),g=0,W=ck(W,h),h=Bk(E,h,d,F)),xR(W)||(M||(W|=16),W!==g&&Ja(F,W)));2&W||!(4096&W||16&W)||C2(E,h);return F};
pOw=function(F,W,E){F=AW(F,W,E);return Array.isArray(F)?F:IK};
mUY=function(F,W){2&W&&(F|=2);return F|1};
xR=function(F){return!!(2&F)&&!!(4&F)||!!(256&F)};
FgR=function(F){return _.Tz(F,!0)};
WgW=function(F,W){var E=F.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,h=E[_.Xp]|0;a:{var d=h;h=nT(F,h);!h&&z2(F)&&(E=F.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,d=E[_.Xp]|0);var V=AW(E,W);F=!1;if(V==null){if(h){W=qew();break a}V=[]}else if(V.constructor===G8)if(V.arrayState&2&&!h)V=Array.from(Wk.prototype.entries.call(V));else{W=V;break a}else Array.isArray(V)?F=!!((V[_.Xp]|0)&2):V=[];if(h){if(!V.length){W=qew();break a}F||(F=!0,ai(V))}else if(F){F=!1;h=V;h=Uq(h);for(V=0;V<
h.length;V++){var R=h[V]=Uq(h[V]);Array.isArray(R[1])&&(R[1]=ai(R[1]))}V=h}!F&&d&32&&fSS(V);h=new G8(V,void 0,I_Y,I_Y);d=Bk(E,d,W,h);F||C2(E,d);W=h}return W};
_.sf=function(F,W,E,h){tW(F);var d=F.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,V=d[_.Xp]|0;if(E==null)return Bk(d,V,W),F;var R=E===IK?7:E[_.Xp]|0,M=R,g=xR(R),t=g||Object.isFrozen(E);g||(R=0);t||(E=Uq(E),M=0,R=ck(R,V),t=!1);R|=5;var C;g=(C=aSr(R))!=null?C:0;for(C=0;C<E.length;C++){var B=E[C],I=h(B,g);Object.is(B,I)||(t&&(E=Uq(E),M=0,R=ck(R,V),t=!1),E[C]=I)}R!==M&&(t&&(E=Uq(E),R=ck(R,V)),Ja(E,R));Bk(d,V,W,E);return F};
_.L2=function(F,W,E,h,d){tW(F);var V=F.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;Bk(V,V[_.Xp]|0,W,(h==="0"?Number(E)===0:E===h)?void 0:E,d);return F};
_.$R=function(F,W,E){if(W&2)throw Error();var h=wc(W),d=pOw(F,E,h),V=d===IK?7:d[_.Xp]|0,R=mUY(V,W);if(2&R||xR(R)||16&R)d=Uq(d),V=0,R=ck(R,W),Bk(F,W,E,d,h);R&=-13;R!==V&&Ja(d,R);return d};
EKn=function(F){if($B){var W;return(W=F[Ze])!=null?W:F[Ze]=new Map}if(Ze in F)return F[Ze];W=new Map;Object.defineProperty(F,Ze,{value:W});return W};
dFo=function(F,W,E,h,d){var V=EKn(F),R=h6o(V,F,W,E,d);R!==h&&(R&&(W=Bk(F,W,R,void 0,d)),V.set(E,h));return W};
h6o=function(F,W,E,h,d){var V=F.get(h);if(V!=null)return V;for(var R=V=0;R<h.length;R++){var M=h[R];AW(W,M,d)!=null&&(V!==0&&(E=Bk(W,E,V,void 0,d)),V=M)}F.set(h,V);return V};
XG=function(F,W,E,h,d){var V=!1;h=AW(F,h,d,function(R){var M=vBW(R,E,!1,W);V=M!==R&&M!=null;return M});
if(h!=null)return V&&!nT(h)&&C2(F,W),h};
Nwo=function(F,W,E,h,d,V,R,M){var g=nT(F,E);V=g?1:V;R=!!R||V===3;g=M&&!g;(V===2||g)&&z2(F)&&(W=F.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,E=W[_.Xp]|0);F=pOw(W,d);var t=F===IK?7:F[_.Xp]|0,C=mUY(t,E);if(M=!(4&C)){var B=F,I=E,x=!!(2&C);x&&(I|=2);for(var A=!x,X=!0,P=0,b=0;P<B.length;P++){var l=vBW(B[P],h,!1,I);if(l instanceof h){if(!x){var w=nT(l);A&&(A=!w);X&&(X=w)}B[b++]=l}}b<P&&(B.length=b);C|=4;C=X?C&-4097:C|4096;C=A?C|8:C&-9}C!==t&&(Ja(F,C),2&C&&Object.freeze(F));if(g&&!(8&C||!F.length&&
(V===1||(V!==4?0:2&C||!(16&C)&&32&E)))){xR(C)&&(F=Uq(F),C=ck(C,E),E=Bk(W,E,d,F));h=F;g=C;for(t=0;t<h.length;t++)B=h[t],C=xUo(B),B!==C&&(h[t]=C);g|=8;C=g=h.length?g|4096:g&-4097;Ja(F,C)}return F=KXG(F,C,W,E,d,V,M,R)};
V$o=function(F){F==null&&(F=void 0);return F};
ck=function(F,W){return F=(2&W?F|2:F&-3)&-273};
_.UFe=function(F,W,E,h,d){tW(F);W=_.De(F,W,d,2,!0);var V;d=(V=aSr(W===IK?7:W[_.Xp]|0))!=null?V:0;W.push(E(h,d));return F};
R6o=function(F,W,E,h,d,V,R){tW(F);var M=F.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;F=Nwo(F,M,M[_.Xp]|0,E,W,2,!0);if(V&&R)d!=null||(d=F.length-1),oi(F,d),F.splice(d,V),F.length||(F[_.Xp]&=-4097);else{if(V){if(typeof d!=="number"||d<0||d>F.length)throw Error();}else h=h!=null?h:new E;d!=void 0?F.splice(d,V,h):F.push(h);d=E=F===IK?7:F[_.Xp]|0;(h=nT(h))?(E&=-9,F.length===1&&(E&=-4097)):E|=4096;E!==d&&Ja(F,E);h||C2(M)}};
e6w=function(F,W){if(typeof F==="string")return new Hk(Zbe(F),W);if(Array.isArray(F))return new Hk(new Uint8Array(F),W);if(F.constructor===Uint8Array)return new Hk(F,!1);if(F.constructor===ArrayBuffer)return F=new Uint8Array(F),new Hk(F,!1);if(F.constructor===yM)return W=Pk(F)||new Uint8Array(0),new Hk(W,!0,F);if(F instanceof Uint8Array)return F=F.constructor===Uint8Array?F:new Uint8Array(F.buffer,F.byteOffset,F.byteLength),new Hk(F,!1);throw Error();};
aK=function(){var F=function(){throw Error();};
Object.setPrototypeOf(F,F.prototype);return F};
gKb=function(F,W){var E=E===void 0?M$G:E;return new Of(F,W,E)};
CKk=function(F,W,E,h,d){W=QOo(W,h);W!=null&&(E=_.z6Y(F,E),d(W,F),_.t$R(F,E))};
bL=function(F,W,E,h){var d=h[F];if(d)return d;d={};d.binaryFields=h;d.messageMetadata=oBI(h[0]);var V=h[1],R=1;V&&V.constructor===Object&&(d.extensions=V,V=h[++R],typeof V==="function"&&(d.isMessageSet=!0,Bwn!=null||(Bwn=V),vKR!=null||(vKR=h[R+1]),V=h[R+=2]));for(var M={};V&&Array.isArray(V)&&V.length&&typeof V[0]==="number"&&V[0]>0;){for(var g=0;g<V.length;g++)M[V[g]]=V;V=h[++R]}for(g=1;V!==void 0;){typeof V==="number"&&(g+=V,V=h[++R]);var t=void 0;if(V instanceof Of)var C=V;else C=Iun,R--;V=void 0;
if((V=C)==null?0:V.$$isMsg){V=h[++R];t=h;var B=R;typeof V==="function"&&(V=V(),t[B]=V);t=V}V=h[++R];B=g+1;typeof V==="number"&&V<0&&(B-=V,V=h[++R]);for(;g<B;g++){var I=M[g];t?E(d,g,C,t,I):W(d,g,C,I)}}return h[F]=d};
DFo=function(F){return Array.isArray(F)?F[0]instanceof Of?F:[cPR,F]:[F,void 0]};
QOo=function(F,W){if(F instanceof _.n2)return F.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;if(Array.isArray(F))return Uf(F,W,!1)};
xFo=function(F,W,E,h){var d=E.$$binaryReaderFn;F[W]=h?function(V,R,M){return d(V,R,M,h)}:d};
k8w=function(F,W,E,h,d){var V=E.$$binaryReaderFn,R,M;F[W]=function(g,t,C){return V(g,t,C,M||(M=bL(yl,xFo,k8w,h).messageMetadata),R||(R=APW(h)),d)}};
APW=function(F){var W=F[sOr];if(W!=null)return W;var E=bL(yl,xFo,k8w,F);W=E.isMessageSet?function(h,d){return Bwn(h,d,E)}:function(h,d){for(;LgY(d)&&d.nextWireType_!=4;){var V=d.nextField_,R=E[V];
if(R==null){var M=E.extensions;M&&(M=M[V])&&(M=qqG(M),M!=null&&(R=E[V]=M))}if(R==null||!R(d,h,V)){M=d;R=M.fieldCursor_;jz(M);if(M.discardUnknownFields)var g=void 0;else{var t=M.decoder_.cursor_-R;M.decoder_.cursor_=R;g=$FW(M.decoder_,t)}t=M=R=void 0;var C=h;g&&((R=(M=(t=C[uK])!=null?t:C[uK]=new OTR)[V])!=null?R:M[V]=[]).push(g)}}if(h=pN(h))h.reviveUnknownFields=E.binaryFields[ZNk];return!0};
F[sOr]=W;F[ZNk]=XTW.bind(F);return W};
XTW=function(F,W,E,h){var d=this[yl],V=this[sOr],R=Uf(void 0,d.messageMetadata,!1),M=pN(F);if(M){var g=!1,t=d.extensions;if(t){d=function(A,X,P){if(P.length!==0)if(t[X])for(A=_.U(P),X=A.next();!X.done;X=A.next()){X=HNG(X.value);try{g=!0,V(R,X)}finally{X.free()}}else h==null||h(F,X,P)};
if(W==null)mg(M,d);else if(M!=null){var C=M[W];C&&d(M,W,C)}if(g){var B=F[_.Xp]|0;if(B&2&&B&2048&&(E==null||!E.reviveIntoImmutable))throw Error();var I=wc(B),x=function(A,X){if(AW(F,A,I)!=null)switch(E==null?void 0:E.resolutionBehavior){case 1:return;default:throw Error();}X!=null&&(B=Bk(F,B,A,X,I));delete M[A]};
W==null?bbG(R,R[_.Xp]|0,function(A,X){x(A,X)}):x(W,AW(R,W,I))}}}};
qqG=function(F){F=DFo(F);var W=F[0].$$binaryReaderFn;if(F=F[1]){var E=APW(F),h=bL(yl,xFo,k8w,F).messageMetadata;return function(d,V,R){return W(d,V,R,h,E)}}return W};
iL=function(F,W,E){F[W]=E.$$binaryWriterFn};
T2=function(F,W,E,h){var d,V,R=E.$$binaryWriterFn;F[W]=function(M,g,t){return R(M,g,t,V||(V=bL(ru,iL,T2,h).messageMetadata),d||(d=PKW(h)))}};
PKW=function(F){var W=F[JPr];if(!W){var E=bL(ru,iL,T2,F);W=function(h,d){return auk(h,d,E)};
F[JPr]=W}return W};
auk=function(F,W,E){bbG(F,F[_.Xp]|0,function(h,d){if(d!=null){var V=fuW(E,h);V?V(W,d,h):h<500||kB(ONk,3)}});
(F=pN(F))&&mg(F,function(h,d,V){oK(W,W.encoder_.end());for(h=0;h<V.length;h++)oK(W,Pk(V[h])||new Uint8Array(0))})};
fuW=function(F,W){var E=F[W];if(E)return E;if(E=F.extensions)if(E=E[W]){E=DFo(E);var h=E[0].$$binaryWriterFn;if(E=E[1]){var d=PKW(E),V=bL(ru,iL,T2,E).messageMetadata;E=F.isMessageSet?vKR(V,d):function(R,M,g){return h(R,M,g,V,d)}}else E=h;
return F[W]=E}};
_.bNk=function(F,W,E){if(Array.isArray(W)){var h=W[_.Xp]|0;if(h&4)return W;for(var d=0,V=0;d<W.length;d++){var R=F(W[d]);R!=null&&(W[V++]=R)}V<d&&(W.length=V);E&&(Ja(W,(h|5)&-1537),h&2&&Object.freeze(W));return W}};
_.G2=function(F,W,E){return new Of(F,W,E)};
_.luS=function(F,W,E){return new Of(F,W,E)};
_.YR=function(F,W,E){Bk(F,F[_.Xp]|0,W,E,wc(F[_.Xp]|0))};
nKw=function(F,W,E){W=_.gw(W);W!=null&&(_.uL(F,E,1),F=F.encoder_,E=Sz||(Sz=new DataView(new ArrayBuffer(8))),E.setFloat64(0,+W,!0),KT=E.getUint32(0,!0),F6=E.getUint32(4,!0),_.p2(F,KT),_.p2(F,F6))};
_.mp=function(F,W,E){W=C_S(W);if(W!=null){switch(typeof W){case "string":yPo(W)}if(W!=null)switch(_.uL(F,E,0),typeof W){case "number":F=F.encoder_;WT(W);jOr(F,KT,F6);break;case "bigint":E=BigInt.asUintN(64,W);E=new iNo(Number(E&BigInt(4294967295)),Number(E>>BigInt(32)));jOr(F.encoder_,E.JSC$6768_lo,E.JSC$6768_hi);break;default:E=yPo(W),jOr(F.encoder_,E.JSC$6768_lo,E.JSC$6768_hi)}}};
Tww=function(F,W,E){W=_.LN(W);W!=null&&W!=null&&(_.uL(F,E,0),_.rPe(F.encoder_,W))};
_.Yqo=function(F,W,E){G8e(F,E,BcS(W))};
_.wTo=function(F,W,E){W=_.uen(W);W!=null&&(_.uL(F,E,0),F.encoder_.JSC$6770_buffer_.push(W?1:0))};
_.Sqr=function(F,W,E){W=_.yx(W);W!=null&&u6Y(F,E,dwb(W))};
pTe=function(F,W,E,h,d){W=QOo(W,h);W!=null&&(E=_.z6Y(F,E),d(W,F),_.t$R(F,E))};
_.mFI=function(F,W,E){W=W==null||typeof W=="string"||W instanceof yM?W:void 0;W!=null&&u6Y(F,E,e6w(W,!0).buffer)};
_.Kgo=function(F,W,E){W=_.LN(W);W!=null&&(W=parseInt(W,10),_.uL(F,E,0),_.rPe(F.encoder_,W))};
_.K2=function(F,W){return function(E,h){var d={treatNewDataAsImmutable:!0};h&&Object.assign(d,h);E=HNG(E,void 0,void 0,d);try{var V=new F,R=V.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;APW(W)(R,E);var M=V}finally{E.free()}return M}};
_.F3=function(F){return function(W){return Fpe(W,F)}};
Wpo=function(F){return function(){return Fpe(this,F)}};
_.ERY=function(F){return SH(function(W){return W instanceof F&&!nT(W)})};
_.Wp=function(F){return function(W){return hWR(F,W)}};
URG=function(F,W){return dRo({child:F,origin:W||"https://gamesnacks.com",channelName:"gspc",receiveMessageConstructor:Nun,getPayloadCase:function(E){return E.getPayloadCase()},
createInitMessage:function(E){var h=new EW,d=new VzY;E=_.hy(d,1,E);return _.dU(h,5,Ni,E)}})};
VK=function(F){return{valueOf:F}.valueOf()};
eWY=function(){var F=null;if(!RWI)return F;try{var W=function(E){return E};
F=RWI.createPolicy("goog#html",{createHTML:W,createScript:W,createScriptURL:W})}catch(E){}return F};
gRR=function(){Mzr===void 0&&(Mzr=eWY());return Mzr};
_.RI=function(F){var W=gRR();F=W?W.createScriptURL(F):F;return new UW(F)};
_.e9=function(F){if(F instanceof UW)return F.privateDoNotAccessOrElseWrappedResourceUrl;throw Error("da");};
Mi=function(F){return F.toString().indexOf("`")===-1};
QK=function(F){return new _.gU(QKo,F)};
zy=function(F){return F instanceof _.gU};
_.ty=function(F){if(zy(F))return F.privateDoNotAccessOrElseWrappedUrl;throw Error("da");};
Cu=function(F){return new zWS(function(W){return W.substr(0,F.length+1).toLowerCase()===F+":"})};
Bp=function(F,W){W=W===void 0?tzb:W;if(zy(F))return F;for(var E=0;E<W.length;++E){var h=W[E];if(h instanceof zWS&&h.isValid(F))return QK(F)}};
_.II=function(F,W){W=W===void 0?tzb:W;return Bp(F,W)||vp};
_.cp=function(F){var W=window;if(typeof MediaSource!=="undefined"&&F instanceof MediaSource||typeof W.ManagedMediaSource!=="undefined"&&F instanceof W.ManagedMediaSource)return QK(URL.createObjectURL(F));W=F.type;W.toLowerCase()==="application/octet-stream"?W=!0:(W=W.match(/^([^;]+)(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i),W=(W==null?void 0:W.length)===2&&(/^image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon|heic|heif|avif|x-ms-bmp)$/i.test(W[1])||/^video\/(?:3gpp|avi|mpeg|mpg|mp4|ogg|webm|x-flv|x-matroska|quicktime|x-ms-wmv)$/i.test(W[1])||
/^audio\/(?:3gpp2|3gpp|aac|amr|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)$/i.test(W[1])||/^font\/[\w-]+$/i.test(W[1])));if(!W)throw Error("da");return QK(URL.createObjectURL(F))};
_.xw=function(F){for(var W=_.Dd.apply(1,arguments),E=[F[0]],h=0;h<W.length;h++)E.push(String(W[h])),E.push(F[h+1]);return QK(E.join(""))};
_.Buo=function(F){if(!CLw){a:{var W=document.createElement("a");try{W.href=F}catch(E){F=void 0;break a}F=W.protocol;F=F===":"||F===""?"https:":F}return F}try{W=new URL(F)}catch(E){return"https:"}return W.protocol};
_.Ay=function(F){F instanceof _.gU?F=_.ty(F):F=vRY.test(F)?F:void 0;return F};
Lu=function(F,W){W=_.Ay(W);W!==void 0&&(F.href=W)};
$w=function(F){var W=gRR();F=W?W.createHTML(F):F;return new qi(F)};
X3=function(F){if(F instanceof qi)return F.privateDoNotAccessOrElseWrappedHtml;throw Error("da");};
_.Hp=function(F,W){F.src=_.e9(W).toString()};
IeY=function(F,W){F.setAttribute("sandbox","");for(var E=0;E<W.length;E++)F.sandbox.supports&&!F.sandbox.supports(W[E])||F.sandbox.add(W[E])};
_.cWo=function(F,W,E){F.removeAttribute("srcdoc");switch(W){case 0:if(E instanceof UW)throw new Pp("TrustedResourceUrl",0);IeY(F,[]);W=_.Ay(E);W!==void 0&&(F.src=W);break;case 1:if(!(E instanceof UW))throw new Pp(typeof E,1);IeY(F,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));_.Hp(F,E);break;case 2:if(E instanceof UW)throw new Pp("TrustedResourceUrl",2);IeY(F,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));
W=_.Ay(E);W!==void 0&&(F.src=W);break;default:_.RO(W)}};
_.Jy=function(F,W,E,h){W=_.Ay(W);return W!==void 0?F.open(W,E,h):null};
_.aI=function(F){F=F===void 0?document:F;var W,E;F=(E=(W=F).querySelector)==null?void 0:E.call(W,"script[nonce]");return F==null?"":F.nonce||F.getAttribute("nonce")||""};
_.OW=function(F){var W=gRR();F=W?W.createScript(F):F;return new _.fu(F)};
bi=function(F){if(F instanceof _.fu)return F.privateDoNotAccessOrElseWrappedScript;throw Error("da");};
DRG=function(F){var W=_.aI(F.ownerDocument);W&&F.setAttribute("nonce",W)};
_.li=function(F,W){F.textContent=bi(W);DRG(F)};
_.nu=function(F,W){F.src=_.e9(W);DRG(F)};
_.yK=function(F,W){if(F.nodeType===1&&/^(script|style)$/i.test(F.tagName))throw Error("da");F.innerHTML=X3(W)};
_.j9=function(F,W,E,h){if(F.length===0)throw Error("da");F=F.map(function(V){if(V instanceof xRY)V=V.privateDoNotAccessOrElseWrappedAttributePrefix;else throw Error("da");return V});
var d=E.toLowerCase();if(F.every(function(V){return d.indexOf(V)!==0}))throw Error("ea`"+E);
W.setAttribute(E,h)};
_.ii=function(F,W,E){if(W instanceof UW)F.href=_.e9(W).toString(),F.rel=E;else{if(k2Y.indexOf(E)===-1)throw Error("fa`"+E);W=_.Ay(W);W!==void 0&&(F.href=W,F.rel=E)}};
AWe=function(F){return"function"==typeof _.rU&&F instanceof _.rU};
_.sKr=function(F){if(AWe(F))return F.privateDoNotAccessOrElseWrappedStyleSheet;throw Error("da");};
_.Ty=function(F,W){W=_.Ay(W);W!==void 0&&(F.href=W)};
Gy=function(F,W){F&&(W=F.indexOf(W),0<=W&&F.splice(W,1))};
Yw=function(F){return typeof F==="function"};
Lpo=function(F){return F instanceof wU||F&&"closed"in F&&Yw(F.remove)&&Yw(F.add)&&Yw(F.unsubscribe)};
ui=function(){};
pu=function(F){qfY(function(){throw F;})};
m7=function(F){return F};
Ku=function(){return $Rr(_.Dd.apply(0,arguments))};
$Rr=function(F){return F.length===0?m7:F.length===1?F[0]:function(W){return F.reduce(function(E,h){return h(E)},W)}};
Z2Y=function(F){var W;return(W=F!=null?F:void 0)!=null?W:Promise};
XkR=function(F,W){return new FL(function(E){var h=0;return W.schedule(function(){h===F.length?E.complete():(E.next(F[h++]),E.closed||this.schedule())})})};
H2I=function(F,W){if(!F)throw Error("ga");return new FL(function(E){var h=new wU;h.add(W.schedule(function(){var d=F[Symbol.asyncIterator]();h.add(W.schedule(function(){var V=this;d.next().then(function(R){R.done?E.complete():(E.next(R.value),V.schedule())})}))}));
return h})};
PLI=function(F,W,E){W=W.schedule(function(){try{E.call(this)}catch(h){F.error(h)}},0);
F.add(W)};
JWw=function(F,W){return new FL(function(E){var h;E.add(W.schedule(function(){h=F[Ww]();PLI(E,W,function(){var d=h.next(),V=d.value;d.done?E.complete():(E.next(V),this.schedule())})}));
return function(){var d;return Yw((d=h)==null?void 0:d.return)&&h.return()}})};
aee=function(F,W){return new FL(function(E){var h=new wU;h.add(W.schedule(function(){var d=F[E0]();h.add(d.subscribe({next:function(V){h.add(W.schedule(function(){return E.next(V)}))},
error:function(V){h.add(W.schedule(function(){return E.error(V)}))},
complete:function(){h.add(W.schedule(function(){return E.complete()}))}}))}));
return h})};
feR=function(F,W){return new FL(function(E){return W.schedule(function(){return F.then(function(h){E.add(W.schedule(function(){E.next(h);E.add(W.schedule(function(){return E.complete()}))}))},function(h){E.add(W.schedule(function(){return E.error(h)}))})})})};
O2b=function(F){return new TypeError("ha`"+(F!==null&&typeof F==="object"?"an invalid object":"'"+F+"'"))};
leY=function(F,W){if(F!=null){if(Yw(F[E0]))return aee(F,W);if(b2r(F))return XkR(F,W);if(Yw(F==null?void 0:F.then))return feR(F,W);if(Symbol.asyncIterator&&Yw(F==null?void 0:F[Symbol.asyncIterator]))return H2I(F,W);if(Yw(F==null?void 0:F[Ww]))return JWw(F,W)}throw O2b(F);};
dG=function(F,W){return W?leY(F,W):h1(F)};
h1=function(F){if(F instanceof FL)return F;if(F!=null){if(Yw(F[E0]))return nRb(F);if(b2r(F))return yWr(F);if(Yw(F==null?void 0:F.then))return jKS(F);if(Symbol.asyncIterator&&Yw(F==null?void 0:F[Symbol.asyncIterator]))return i2e(F);if(Yw(F==null?void 0:F[Ww]))return rWY(F)}throw O2b(F);};
nRb=function(F){return new FL(function(W){var E=F[E0]();if(Yw(E.subscribe))return E.subscribe(W);throw new TypeError("ia");})};
yWr=function(F){return new FL(function(W){for(var E=0;E<F.length&&!W.closed;E++)W.next(F[E]);W.complete()})};
jKS=function(F){return new FL(function(W){F.then(function(E){W.closed||(W.next(E),W.complete())},function(E){return W.error(E)}).then(null,pu)})};
rWY=function(F){return new FL(function(W){for(var E=F[Ww]();!W.closed;){var h=E.next(),d=h.value;h.done?W.complete():W.next(d)}return function(){return Yw(E==null?void 0:E.return)&&E.return()}})};
i2e=function(F){return new FL(function(W){TuS(F,W).catch(function(E){return W.error(E)})})};
TuS=function(F,W){var E,h,d,V,R,M;return _.e(function(g){switch(g.nextAddress){case 1:_.Nl(g,2,3);var t=F[Symbol.asyncIterator];V=t!==void 0?t.call(F):new oRb(_.U(F));case 5:return _.Q(g,V.next(),8);case 8:h=g.yieldResult;if(h.done){g.jumpTo(3);break}R=h.value;W.next(R);g.jumpTo(5);break;case 3:_.V0(g);_.U0(g,9);if(!h||h.done||!(d=V.return)){g.jumpTo(9);break}return _.Q(g,d.call(V),9);case 9:_.V0(g,0,0,1);if(E)throw E.error;_.eJ(g,10,1);break;case 10:_.eJ(g,4);break;case 2:M=_.Ml(g);E={error:M};g.jumpTo(3);
break;case 4:W.complete(),_.gG(g)}})};
Q0=function(F,W){return W?XkR(F,W):yWr(F)};
G2S=function(F){return Yw(F[F.length-1])?F.pop():void 0};
zT=function(F){var W=F[F.length-1];return W&&Yw(W.schedule)?F.pop():void 0};
t1=function(){var F=_.Dd.apply(0,arguments),W=zT(F);return W?XkR(F,W):Q0(F)};
CL=function(F){var W=Yw(F)?F:function(){return F};
return new FL(function(E){return E.error(W())})};
Bw=function(F){return function(W){if(Yw(W==null?void 0:W.lift))return W.lift(function(E){try{return F(E,this)}catch(h){this.error(h)}});
throw new TypeError("ja");}};
IS=function(){return Bw(function(F,W){var E=null;F._refCount++;var h=new vw(W,void 0,void 0,void 0,function(){if(!F||F._refCount<=0||0<--F._refCount)E=null;else{var d=F._connection,V=E;E=null;!d||V&&d!==V||d.unsubscribe();W.unsubscribe()}});
F.subscribe(h);h.closed||(E=F.connect())})};
wkb=function(){var F=Yfr;var W=W===void 0?0:W;return Bw(function(E,h){h.add(F.schedule(function(){return E.subscribe(h)},W))})};
cw=function(F){return Bw(function(W,E){var h=0;W.subscribe(new vw(E,function(d){E.next(F.call(void 0,d,h++))}))})};
Sfo=function(F){return cw(function(W){return uGR(W)?F.apply(null,_.x9(W)):F(W)})};
W7k=function(F){if(F.length===1){var W=F[0];if(pke(W))return{args:W,keys:null};if(W&&typeof W==="object"&&mRI(W)===Kpr)return F=F7w(W),{args:F.map(function(E){return W[E]}),
keys:F}}return{args:F,keys:null}};
k9=function(){var F=_.Dd.apply(0,arguments),W=zT(F),E=G2S(F);F=W7k(F);var h=F.args,d=F.keys;if(h.length===0)return dG([],W);W=new FL(EwR(h,W,d?function(V){for(var R={},M=0;M<V.length;M++)R[d[M]]=V[M];return R}:m7));
return E?W.pipe(Sfo(E)):W};
EwR=function(F,W,E){E=E===void 0?m7:E;return function(h){hNb(W,function(){for(var d=F.length,V=Array(d),R=d,M=F.map(function(){return!1}),g=!0,t={i$jscomp$260:0};t.i$jscomp$260<d;t={i$jscomp$260:t.i$jscomp$260},t.i$jscomp$260++)hNb(W,function(C){return function(){dG(F[C.i$jscomp$260],W).subscribe(new A1(h,function(B){V[C.i$jscomp$260]=B;
g&&(M[C.i$jscomp$260]=!0,g=!M.every(m7));g||h.next(E(V.slice()))},function(){return--R===0}))}}(t),h)},h)}};
hNb=function(F,W,E){F?E.add(F.schedule(W)):W()};
dik=function(F,W,E,h){var d=[],V=0,R=0,M=!1,g=function(t){V++;h1(E(t,R++)).subscribe(new vw(W,function(C){W.next(C)},void 0,function(){V--;
for(var C={};d.length&&V<h;C={bufferedValue:void 0})C.bufferedValue=d.shift(),g(C.bufferedValue);!M||d.length||V||W.complete()}))};
F.subscribe(new vw(W,function(t){return V<h?g(t):d.push(t)},void 0,function(){M=!0;
!M||d.length||V||W.complete()}));
return function(){d=null}};
s0=function(F,W){var E=E===void 0?Infinity:E;if(Yw(W))return s0(function(h,d){return cw(function(V,R){return W(h,V,d,R)})(h1(F(h,d)))},E);
typeof W==="number"&&(E=W);return Bw(function(h,d){return dik(h,d,F,E)})};
NUk=function(F){F=F===void 0?Infinity:F;return s0(m7,F)};
V9r=function(){var F=_.Dd.apply(0,arguments);return NUk(1)(Q0(F,zT(F)))};
LL=function(F){return new FL(function(W){h1(F()).subscribe(W)})};
ql=function(F,W,E){if(Yw(E)){var h=E;E=void 0}if(h)return ql(F,W,E).pipe(Sfo(h));h=_.U(Yw(F.addEventListener)&&Yw(F.removeEventListener)?UiY.map(function(R){return function(M){return F[R](W,M,E)}}):Yw(F.addListener)&&Yw(F.removeListener)?RNR.map(eNb(F,W)):Yw(F.on)&&Yw(F.off)?M9R.map(eNb(F,W)):[]);
var d=h.next().value,V=h.next().value;return!d&&b2r(F)?s0(function(R){return ql(R,W,E)})(Q0(F)):new FL(function(R){if(!d)throw new TypeError("ka");
var M=function(){var g=_.Dd.apply(0,arguments);return R.next(1<g.length?g:g[0])};
d(M);return function(){return V(M)}})};
eNb=function(F,W){return function(E){return function(h){return F[E](W,h)}}};
ZV=function(){var F=_.Dd.apply(0,arguments),W=zT(F);var E=typeof F[F.length-1]==="number"?F.pop():Infinity;return F.length?F.length===1?h1(F[0]):NUk(E)(Q0(F,W)):$9};
QIY=function(F){return F.length===1&&gwk(F[0])?F[0]:F};
zNR=function(){var F=QIY(_.Dd.apply(0,arguments));return Bw(function(W,E){var h=[W].concat(_.x9(F)),d=function(){if(!E.closed)if(h.length>0){try{var V=h1(h.shift())}catch(M){d();return}var R=new vw(E,void 0,ui,ui);E.add(V.subscribe(R));R.add(d)}else E.complete()};
d()})};
XL=function(F){return Bw(function(W,E){var h=0;W.subscribe(new vw(E,function(d){return F.call(void 0,d,h++)&&E.next(d)}))})};
CiR=function(){var F=_.Dd.apply(0,arguments);F=QIY(F);return F.length===1?h1(F[0]):new FL(t9e(F))};
t9e=function(F){return function(W){for(var E=[],h={i$jscomp$263:0};E&&!W.closed&&h.i$jscomp$263<F.length;h={i$jscomp$263:h.i$jscomp$263},h.i$jscomp$263++)E.push(h1(F[h.i$jscomp$263]).subscribe(new vw(W,function(d){return function(V){if(E){for(var R=0;R<E.length;R++)R!==d.i$jscomp$263&&E[R].unsubscribe();E=null}W.next(V)}}(h))))}};
BUI=function(){var F=_.Dd.apply(0,arguments),W=G2S(F),E=QIY(F);return E.length?new FL(function(h){var d=E.map(function(){return[]}),V=E.map(function(){return!1});
h.add(function(){d=V=null});
for(var R={sourceIndex$jscomp$1:0};!h.closed&&R.sourceIndex$jscomp$1<E.length;R={sourceIndex$jscomp$1:R.sourceIndex$jscomp$1},R.sourceIndex$jscomp$1++)h1(E[R.sourceIndex$jscomp$1]).subscribe(new vw(h,function(M){return function(g){d[M.sourceIndex$jscomp$1].push(g);d.every(function(t){return t.length})&&(g=d.map(function(t){return t.shift()}),h.next(W?W.apply(null,_.x9(g)):g),d.some(function(t,C){return!t.length&&V[C]})&&h.complete())}}(R),void 0,function(M){return function(){V[M.sourceIndex$jscomp$1]=
!0;
!d[M.sourceIndex$jscomp$1].length&&h.complete()}}(R)));
return function(){d=V=null}}):$9};
vwr=function(F){var W,E,h;return!!F&&typeof F.active==="boolean"&&typeof((W=F.clock)==null?void 0:W.now)==="function"&&((E=F.clock)==null?void 0:E.timeline)!==void 0&&!((h=F.lastMeasurement)==null||!h.timestamp)&&typeof F.equivalentTo==="function"&&typeof F.extrapolateToNow==="function"&&typeof F.extrapolateToTime==="function"&&typeof F.map==="function"&&typeof F.joinWith==="function"};
IdW=function(F){function W(E){return typeof E==="boolean"||typeof E==="string"||typeof E==="number"||E===void 0||E===null}
return W(F)?!0:Array.isArray(F)?F.every(W):typeof F==="object"?Object.keys(F).every(function(E){return typeof E==="string"})&&Object.values(F).every(function(E){return Array.isArray(E)?E.every(W):W(E)}):!1};
cyG=function(F){if(IdW(F))return F;if(vwr(F))return{lastMeasurement:{value:cyG(F.lastMeasurement.value),timestamp:Hw(F.lastMeasurement.timestamp,new Pw(0,F.lastMeasurement.timestamp.timeline))},active:F.active};try{return JSON.parse(JSON.stringify(F))}catch(W){}return String(F)};
J1=function(F,W){return function(E){return new FL(function(h){return E.subscribe(function(d){F.timeExecution(W,function(){h.next(d)})()},function(d){F.timeExecution(W,function(){h.error(d)})()},function(){F.timeExecution(W,function(){h.complete()})()})})}};
Dio=function(F,W){var E=!1;return new FL(function(h){var d=F.setTimeout(function(){E=!0;h.next(!0);h.complete()},W);
return function(){E||F.clearTimeout(d)}})};
xir=function(F){F=F.global;if(F.fetchLater)return F.fetchLater.bind(F)};
aS=function(F){return Bw(function(W,E){var h=null,d=!1,V;h=W.subscribe(new vw(E,void 0,function(R){V=h1(F(R,aS(F)(W)));h?(h.unsubscribe(),h=null,V.subscribe(E)):d=!0}));
d&&(h.unsubscribe(),h=null,V.subscribe(E))})};
kyk=function(F,W,E){return function(h,d){var V=E,R=W,M=0;h.subscribe(new vw(d,function(g){var t=M++;R=V?F(R,g,t):(V=!0,g);d.next(R)},void 0,void 0))}};
AyG=function(F){F=F===void 0?null:F;return Bw(function(W,E){var h=!1;W.subscribe(new vw(E,function(d){h=!0;E.next(d)},void 0,function(){h||E.next(F);
E.complete()}))})};
fL=function(){return Bw(function(F,W){F.subscribe(new vw(W,ui))})};
O0=function(F){return Bw(function(W,E){W.subscribe(new vw(E,function(){return E.next(F)}))})};
bO=function(F){return F<=0?function(){return $9}:Bw(function(W,E){var h=0;
W.subscribe(new vw(E,function(d){++h<=F&&(E.next(d),F<=h&&E.complete())}))})};
lO=function(F){var W=W===void 0?m7:W;var E;F=(E=F)!=null?E:sIr;return Bw(function(h,d){var V,R=!0;h.subscribe(new vw(d,function(M){var g=W(M);if(R||!F(V,g))R=!1,V=g,d.next(M)}))})};
sIr=function(F,W){return F===W};
qWk=function(F){F=F===void 0?L7r:F;return Bw(function(W,E){var h=!1;W.subscribe(new vw(E,function(d){h=!0;E.next(d)},void 0,function(){return h?E.complete():E.error(F())}))})};
L7r=function(){return new $io};
nL=function(){var F=_.Dd.apply(0,arguments);return function(W){return V9r(W,t1.apply(null,_.x9(F)))}};
Zub=function(F){return Bw(function(W,E){var h=0;W.subscribe(new vw(E,function(d){F.call(void 0,d,h++,W)||(E.next(!1),E.complete())},void 0,function(){E.next(!0);
E.complete()}))})};
Xpe=function(){return Bw(function(F,W){var E=[];F.subscribe(new vw(W,function(h){E.push(h);1<E.length&&E.shift()},void 0,function(){for(var h=_.U(E),d=h.next();!d.done;d=h.next())W.next(d.value);
W.complete()},function(){E=null}))})};
HuR=function(F,W){var E=arguments.length>=2;return function(h){return h.pipe(F?XL(function(d,V){return F(d,V,h)}):m7,Xpe(),E?AyG(W):qWk(function(){return new $io}))}};
jJ=function(F){var W=Yw(F)?F:function(){return F};
return Yw()?Bw(function(E,h){var d=W();(void 0)(d).subscribe(h).add(E.subscribe(d))}):function(E){var h=new y0(E,W);
Yw(E==null?void 0:E.lift)&&(h.lift=E.lift);h.source=E;h.subjectFactory=W;return h}};
rG=function(F){var W=new iO(F,void 0,void 0);return function(E){return jJ(function(){return W})(E)}};
TT=function(F,W){return Bw(kyk(F,W,arguments.length>=2))};
oS=function(){var F=_.Dd.apply(0,arguments),W=zT(F);return Bw(function(E,h){(W?V9r(F,E,W):V9r(F,E)).subscribe(h)})};
Y9=function(F){return Bw(function(W,E){var h=null,d=0,V=!1;W.subscribe(new vw(E,function(R){var M;(M=h)==null||M.unsubscribe();M=d++;h1(F(R,M)).subscribe(h=new vw(E,function(g){return E.next(g)},void 0,function(){h=null;
V&&!h&&E.complete()}))},void 0,function(){(V=!0,!h)&&E.complete()}))})};
wG=function(F,W){W=W===void 0?!1:W;return Bw(function(E,h){var d=0;E.subscribe(new vw(h,function(V){var R=F(V,d++);(R||W)&&h.next(V);!R&&h.complete()}))})};
uO=function(F,W,E){var h=Yw(F)||W||E?{next:F,error:W,complete:E}:F;return h?Bw(function(d,V){d.subscribe(new vw(V,function(R){var M;(M=h.next)==null||M.call(h,R);V.next(R)},function(R){var M;
(M=h.error)==null||M.call(h,R);V.error(R)},function(){var R;
(R=h.complete)==null||R.call(h);V.complete()}))}):m7};
PiS=function(){var F=_.Dd.apply(0,arguments),W=G2S(F);return Bw(function(E,h){for(var d=F.length,V=Array(d),R=F.map(function(){return!1}),M=!1,g={i$jscomp$273:0};g.i$jscomp$273<d;g={i$jscomp$273:g.i$jscomp$273},g.i$jscomp$273++)h1(F[g.i$jscomp$273]).subscribe(new vw(h,function(t){return function(C){V[t.i$jscomp$273]=C;
M||R[t.i$jscomp$273]||(R[t.i$jscomp$273]=!0,(M=R.every(m7))&&(R=null))}}(g),void 0,ui));
E.subscribe(new vw(h,function(t){M&&(t=[t].concat(_.x9(V)),h.next(W?W.apply(null,_.x9(t)):t))}))})};
Jyw=function(F){var W=[],E=0,h;for(h in F)W[E++]=h;return W};
adS=function(F,W){for(var E in F)if(F[E]==W)return!0;return!1};
fdR=function(F,W,E){for(var h in F)if(W.call(E,F[h],h,F))return h};
OuI=function(F){if(!F||typeof F!=="object")return F;if(typeof F.clone==="function")return F.clone();if(typeof Map!=="undefined"&&F instanceof Map)return new Map(F);if(typeof Set!=="undefined"&&F instanceof Set)return new Set(F);if(F instanceof Date)return new Date(F.getTime());var W=Array.isArray(F)?[]:typeof ArrayBuffer!=="function"||typeof ArrayBuffer.isView!=="function"||!ArrayBuffer.isView(F)||F instanceof DataView?{}:new F.constructor(F.length),E;for(E in F)W[E]=OuI(F[E]);return W};
buo=function(F){var W=arguments.length;if(W==1&&Array.isArray(arguments[0]))return buo.apply(null,arguments[0]);if(W%2)throw Error("oa");for(var E={},h=0;h<W;h+=2)E[arguments[h]]=arguments[h+1];return E};
ldR=function(F){var W=arguments.length;if(W==1&&Array.isArray(arguments[0]))return ldR.apply(null,arguments[0]);for(var E={},h=0;h<W;h++)E[arguments[h]]=!0;return E};
_.SJ=function(F){return new xRY(F[0].toLowerCase())};
nwI=function(F){try{return new URL(F,window.document.baseURI)}catch(W){return new URL("about:invalid")}};
yyo=function(F,W){var E=W.createRange();E.selectNode(W.body);F=$w(F);return E.createContextualFragment(X3(F))};
jIo=function(F){F=F.nodeName;return typeof F==="string"?F:"FORM"};
iuR=function(F){F=F.nodeType;return F===1||typeof F!=="number"};
pL=function(F,W,E){F.setAttribute(W,E)};
ryn=function(F){return F.parts.map(function(W){var E=W.descriptor;return""+W.url+(E?" "+E:"")}).join(" , ")};
_.mv=function(F){var W=_.Dd.apply(1,arguments);if(W.length===0)return _.RI(F[0]);for(var E=F[0],h=0;h<W.length;h++)E+=encodeURIComponent(W[h])+F[h+1];return _.RI(E)};
_.KL=function(F,W){F=_.e9(F).toString();var E=F.split(/[?#]/),h=/[?]/.test(F)?"?"+E[1]:"";return TUk(E[0],h,/[#]/.test(F)?"#"+(h?E[2]:E[1]):"",W)};
TUk=function(F,W,E,h){function d(R,M){R!=null&&(Array.isArray(R)?R.forEach(function(g){return d(g,M)}):(W+=V+encodeURIComponent(M)+"="+encodeURIComponent(R),V="&"))}
var V=W.length?"&":"?";h.constructor===Object&&(h=Object.entries(h));Array.isArray(h)?h.forEach(function(R){return d(R[1],R[0])}):h.forEach(d);
return _.RI(F+W+E)};
Fn=function(F,W,E,h){this.top=F;this.right=W;this.bottom=E;this.left=h};
owo=function(F){F=F.global;if(F.PendingGetBeacon)return F.PendingGetBeacon};
Ep=function(F){return function(W){return W.pipe(Gyb(F,jJ(new WE)))}};
hN=function(F){return function(W){return W.pipe(Gyb(F,rG(1)))}};
Gyb=function(F,W){function E(h){return new FL(function(d){return h.subscribe(function(V){dn(F,function(){return void d.next(V)},3)},function(V){dn(F,function(){return void d.error(V)},3)},function(){dn(F,function(){return void d.complete()},3)})})}
return Ku(E,wkb(),W,IS(),E)};
u3o=function(F){var W=YWn(F);return W===null?new VJ(null):W.pipe(cw(function(E){E=E.serialize();if(wpS)E=_.EY.btoa(E);else{for(var h=[],d=0,V=0;V<E.length;V++){var R=E.charCodeAt(V);R>255&&(h[d++]=R&255,R>>=8);h[d++]=R}E=_.FG(h)}return E}),bO(1),hN(F.queue))};
SWe=function(F){var W=W===void 0?{}:W;if(typeof Event==="function")return new Event(F,W);if(typeof document!=="undefined"){var E=document.createEvent("CustomEvent");E.initCustomEvent(F,W.bubbles||!1,W.cancelable||!1,W.detail);return E}throw Error();};
ppY=function(F){return typeof F==="string"?document.getElementById(F):F};
K7w=function(F){var W=!1;W=W===void 0?!1:W;if(F.tagName==="IMG"){if(F.complete&&(!F.naturalWidth||!F.naturalHeight))return!0;var E;if(W&&((E=F.style)==null?void 0:E.display)==="none")return!0}var h,d;return miS.test((h=F.getAttribute("width"))!=null?h:"")&&miS.test((d=F.getAttribute("height"))!=null?d:"")};
Fvo=function(F,W){if(F.tagName==="IMG")return F.naturalWidth&&F.naturalHeight?!0:!1;try{if(F.readyState)var E=F.readyState;else{var h,d;E=(h=F.contentWindow)==null?void 0:(d=h.document)==null?void 0:d.readyState}return E==="complete"}catch(V){return W===void 0?!1:W}};
WvI=function(F){F||(F=function(W,E,h){W.addEventListener(E,h)});
return F};
NGY=function(F,W){var E=E9R();E=E===void 0?new hXY:E;if(F=ppY(F)){var h=WvI(h);for(var d=!1,V=function(P){d||(d=!0,W(P))},R,M=2,g=0;g<dlG.length;++g)if(dlG[g]===F.tagName){M=3;
R=[F];break}R||(R=F.querySelectorAll(dlG.join(",")));var t=0,C=0,B=!0,I=F=!1;g={};for(var x=0;x<R.length;g={isImg:void 0},x++){var A=R[x];if(!K7w(A))if(g.isImg=A.tagName==="IMG",Fvo(A,E.crossDomainLoadedDefault))F=!0,g.isImg&&(B=!0);else{t++;var X=function(P){return function(b){t--;!t&&B&&V(M);P.isImg&&(b=b&&b.type==="error",C--,b||(B=!0),!C&&I&&B&&V(M))}}(g);
h(A,"load",X);g.isImg&&(C++,h(A,"error",X))}}C===0&&(B=!0);R=null;R=_.EY.document.readyState==="complete";if(t===0&&!F&&R)M=5;else if(t||!F){h(_.EY,"load",function(){!E.pendingImagesBlockLoad||!C&&B?V(4):I=!0});
return}V(M)}};
VJw=function(F,W,E){if(F)for(var h=0;F!=null&&h<500&&!E(F);++h)F=W(F)};
Uln=function(F,W){VJw(F,function(E){try{return E===E.parent?null:E.parent}catch(h){}return null},W)};
RXI=function(F,W){if(F.tagName=="IFRAME")W(F);else{F=F.querySelectorAll("IFRAME");for(var E=0;E<F.length&&!W(F[E]);++E);}};
eXG=function(F){return(F=F.ownerDocument)&&(F.parentWindow||F.defaultView)||null};
MJw=function(F,W,E){try{var h=JSON.parse(E.data)}catch(R){}if(typeof h==="object"&&h&&h.type==="creativeLoad"){var d=eXG(F);if(E.source&&d){var V;Uln(E.source,function(R){try{if(R.parent===d)return V=R,!0}catch(M){}});
V&&RXI(F,function(R){if(R.contentWindow===V)return W(h),!0})}}};
g9r=function(F){return typeof F==="string"?document.getElementById(F):F};
COo=function(){var F={};return F[0]=_.mv(QSo,"current"),F[1]=_.mv(zXe),F[2]=_.mv(tJY),F};
Up=function(F,W){return F.left===W.left&&F.top===W.top&&F.width===W.width&&F.height===W.height};
BGr=function(F,W){return{left:Math.max(F.left,W.left),top:Math.max(F.top,W.top),width:Math.max(0,Math.min(F.left+F.width,W.left+W.width)-Math.max(F.left,W.left)),height:Math.max(0,Math.min(F.top+F.height,W.top+W.height)-Math.max(F.top,W.top))}};
v9W=function(F,W){return{left:Math.round(F.left+W.x),top:Math.round(F.top+W.y),width:F.width,height:F.height}};
IVY=function(F,W,E){if(F&&W!==null&&W!=W.top){if(!W.top)return new _.Rl(-12245933,-12245933);W=W.top}try{return(E===void 0?0:E)?(new _.Rl(W.innerWidth,W.innerHeight)).round():_.eU(W).round()}catch(h){return new _.Rl(-12245933,-12245933)}};
c1n=function(F,W,E){try{if(F){if(!W.top)return new Fn(-12245933,-12245933,-12245933,-12245933);W=W.top}var h=IVY(F,W,E),d=h.height,V=h.width;if(V===-12245933)return new Fn(V,V,V,V);var R=Mp(gn(W.document)),M=R.x,g=R.y;return new Fn(g,M+V,g+d,M)}catch(t){return new Fn(-12245933,-12245933,-12245933,-12245933)}};
Dlk=function(F){var W;return(W=F.google_tag_data)!=null?W:F.google_tag_data={}};
xlr=function(F){var W,E;return typeof((W=F.navigator)==null?void 0:(E=W.userAgentData)==null?void 0:E.getHighEntropyValues)==="function"};
A1S=function(F){if(!xlr(F))return null;var W=Dlk(F);if(W.uach_promise)return W.uach_promise;F=F.navigator.userAgentData.getHighEntropyValues(kTR).then(function(E){W.uach!=null||(W.uach=E);return E});
return W.uach_promise=F};
OLb=function(F){var W;return sSY(Lvr(q0R($lo(ZLI(Xwk(HLY(POb(J1G(new aVr,F.architecture||""),F.bitness||""),F.mobile||!1),F.model||""),F.platform||""),F.platformVersion||""),F.uaFullVersion||""),((W=F.fullVersionList)==null?void 0:W.map(function(E){var h=new fVr;h=_.QJ(h,1,E.brand);return _.QJ(h,2,E.version)}))||[]),F.wow64||!1)};
bLY=function(F){var W,E;return(E=(W=A1S(F))==null?void 0:W.then(function(h){return OLb(h)}))!=null?E:null};
lVY=function(F,W){return new FL(function(E){var h=!1,d=Array(W.length);d.fill(void 0);var V=new Set,R=new Set,M=function(B,I){F.running?(d[I]=B,V.add(I),h||(h=!0,dn(F,function(){h=!1;E.next(_.Kb(d))},1))):E.error(new zO(I))},g=function(B,I){R.add(I);
V.add(I);dn(F,function(){E.error(B)},1)},t=function(B){R.add(B);
dn(F,function(){R.size===W.length&&E.complete()},1)},C=W.map(function(B,I){return B.subscribe(function(x){return void M(x,I)},function(x){return void g(x,I)},function(){return void t(I)})});
return function(){C.forEach(function(B){return void B.unsubscribe()})}})};
y1e=function(F,W,E){function h(){if(W.debugChannel){var P=W.debugChannel,b=P.next;var l={creativeId:W.debugNames.getName(E),requiredSignals:d,signals:Object.assign({},V),hasPrematurelyCompleted:R,errorMessage:M,erroredSignalKey:g};l={specMajor:2,specMinor:0,specPatch:0,timestamp:Hw(W.timeProvider.now(),new Pw(0,W.timeProvider.timeline)),instanceId:W.debugNames.getName(W.symbol),creativeState:l};b.call(P,l)}}
for(var d=Object.keys(F),V={},R=!1,M=null,g=null,t={},C=new Set,B=[],I=[],x=_.U(d),A=x.next(),X={};!A.done;X={key$jscomp$374:void 0},A=x.next())X.key$jscomp$374=A.value,A=F[X.key$jscomp$374],A instanceof VJ?(t[X.key$jscomp$374]=A.value,C.add(X.key$jscomp$374),W.debugChannel&&(V[String(X.key$jscomp$374)]=cyG(A.value))):(A=A.pipe(lO(function(P,b){return vwr(P)||vwr(b)?!1:P===b}),cw(function(P){return function(b){W.debugChannel&&(V[String(P.key$jscomp$374)]=cyG(b),h());
var l={};return l[P.key$jscomp$374]=b,l}}(X)),aS(function(P){return function(b){if(b instanceof zO)throw new n9Y(String(P.key$jscomp$374));
throw b;}}(X)),uO(function(P){return function(){C.add(P.key$jscomp$374)}}(X),function(P){return function(b){g=String(P.key$jscomp$374);
M=String(b);h()}}(X),function(P){return function(){C.has(P.key$jscomp$374)||(R=!0,h())}}(X))),I.push(X.key$jscomp$374),B.push(A));
(F=Object.keys(V).length>0)&&h();x=lVY(W.queue,B).pipe(aS(function(P){if(P instanceof zO)throw new tN(String(I[P.inputObservableIndex]));throw P;}),cw(function(P){return Object.freeze(Object.assign.apply(Object,[{},
t].concat(_.x9(P))))}));
return(B=B.length>0)&&F?ZV(t1(Object.freeze(t)),x):B?x:t1(Object.freeze(t))};
jSG=function(F,W,E,h,d){return F.performanceMonitor.timeExecution.bind(F.performanceMonitor)(733,function(){var V={};try{return W.pipe(aS(function(R){h(Object.assign({},V,{error:R}));return $9}),s0(function(R){try{var M=E(F,R)}catch(t){return h(Object.assign({},V,{error:t instanceof Error?t:String(t)})),$9}var g={};
return y1e(M,F,R.symbol).pipe(uO(function(t){g=t}),rG(1),IS()).pipe(d,aS(function(t){h(Object.assign({},g,{error:t}));
return $9}),nL(void 0),cw(function(){return!0}))})).pipe(TT(function(R){return R+1},0),aS(function(R){h(Object.assign({},V,{error:R}));
return $9}))}catch(R){return h(Object.assign({},V,{error:R})),$9}})()};
CC=function(F){var W=new Map;if(typeof F!=="object"||F===null)return W;Object.values(F).forEach(function(E){E&&typeof E.extrapolateToNow==="function"&&(W.has(E.clock.timeline)||W.set(E.clock.timeline,E.clock.now()))});
return W};
iLo=function(F,W){return typeof F==="string"?encodeURIComponent(F):typeof F==="number"?String(F):Array.isArray(F)?F.map(function(E){return iLo(E,W)}).join(","):F instanceof Pw?F.toString():F&&typeof F.extrapolateToNow==="function"?iLo(F.extrapolateUsingTimestampMap(W).value,W):F===!0?"1":F===!1?"0":F===void 0||F===null?null:F instanceof r1I?TGe(F):[F.top,
F.left,F.top+F.height,F.left+F.width].join()};
BE=function(F,W){F=Object.entries(F).map(function(E){var h=_.U(E);E=h.next().value;h=h.next().value;h=iLo(h,W);return h===null?"":E+"="+h}).filter(function(E){return E!==""});
return F.length?F.join("&"):""};
Y0k=function(F,W){var E=o9o,h=GTY;W=W===void 0?.01:W;return function(d){W>0&&Math.random()<=W&&(F.global.HTMLFencedFrameElement&&F.global.fence&&typeof F.global.fence.reportEvent==="function"&&F.global.fence.reportEvent({eventType:"active-view-error",eventData:"",destination:["buyer"]}),d=Object.assign({},d,{errorMessage:d.error instanceof Error&&d.error.message?d.error.message:String(d.error),errorStack:d.error instanceof Error&&d.error.stack?String(d.error.stack):null,errorName:d.error instanceof
Error&&d.error.name?String(d.error.name):null,errorContext:String(F.performanceMonitor.timedFunctionContext),errorEscapedQueryId:d.escapedQueryId}),E(Object.assign({},d,{payloadMapper:function(){return function(V){try{return h(Object.assign({},V))}catch(R){return{}}}}(),
urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=error&bin=17"]}),CC(d)).forEach(function(V){F.beaconFactory.makeBeacon(V).sendNow()}))}};
wwY=function(){var F=_.Dd.apply(0,arguments);return function(W){var E=W.pipe(rG(1),IS());W=F.map(function(h){return E.pipe(h,nL(!0))});
return k9(W).pipe(bO(1),fL())}};
uLW=function(){var F=_.Dd.apply(0,arguments);return function(W){var E=W.pipe(rG(1),IS());W=F.map(function(h){return E.pipe(h,nL(!0))});
return ZV.apply(null,_.x9(W)).pipe(bO(1),fL())}};
S0Y=function(F,W){return function(E){var h=E.pipe(rG(1),IS());E=h.pipe(F,nL(!0));h=h.pipe(Ku(W,rG(),IS()),nL(!0));E=k9([E,h]);return CiR(E,h).pipe(bO(1),fL())}};
pwn=function(F,W,E){E(!0)};
mlw=function(F,W){return Ku(Y9(function(E){var h=F(E),d=W(E),V={};return h&&d&&V?new FL(function(R){d(h,V,function(M){R.next(Object.assign({},E,{canEmit:M}));R.complete()});
return function(){}}):Il}),XL(function(E){return E.canEmit}))};
Kvo=function(F){var W={attributes:!0,childList:!0,characterData:!0,subtree:!0};return function(E){return E.pipe(Y9(function(h){return new FL(function(d){function V(){M.disconnect();g.unsubscribe()}
var R=F.MutationObserver;if(R&&h.ref!==void 0){var M=new R(function(t){d.next(t)});
M.observe(h.ref,W);var g=h.JSC$7265_released.subscribe(V);return V}})}))}};
FBk=function(F){if(F.measurementDeferralState===3)return null;if(F.timeOnScreenReason!==void 0){var W=F.creativeFound===!1?"n":null;if(W!==null)return W}return F.geometricMeasurementErrors instanceof cE?"msf":F.contextValidationErrors instanceof Dy?"c":F.contextVisibilityKnown===!1?"pv":F.geometricMeasurementErrors||F.contextValidationErrors?"x":null};
kd=function(F,W){return F.replace(WBo,function(E,h){try{var d=_.xd.get(W,h);if(d==null||d.toString()==null)return E;d=d.toString();if(d==""||!_.Mw(d==null?"":String(d)))return encodeURIComponent(d).replace(/%2C/g,",")}catch(V){}return E})};
Edr=function(F,W){var E=Object.assign({},F),h=F.userAgentClientHints;E=(delete E.userAgentClientHints,E);E=F.payloadMapper(E);var d=BE(E,W);return _.AN(F.urlPrefixes,function(V){var R="";typeof h==="string"&&(R="&"+BE({uach:h},W));var M={};return kd(V,(M.VIEWABILITY=d,M))+R})};
o9o=function(F,W){var E=F.payloadMapper(F),h=BE(E,W);return h?_.AN(F.urlPrefixes,function(d){d=d.indexOf("?")>=0?d:d+"?";d="?&".indexOf(d.slice(-1))>=0?d:d+"&";return d+h}):F.urlPrefixes};
h2Y=function(){return Ku(XL(function(F){return F!==void 0}),cw(function(F){return F}))};
dpo=function(F){return Ku(cw(function(){return!0}),oS(!1),hN(F))};
Nnr=function(F){return F.length<=0?$9:k9(F.map(function(W){var E=0;return W.pipe(cw(function(h){return{index:E++,value:h}}))})).pipe(XL(function(W){return W.every(function(E){return E.index===W[0].index})}),cw(function(W){return W.map(function(E){return E.value})}))};
VUY=function(F,W){F.currentState&&(F.previousState=F.currentState);F.currentState=W;F.previousState&&F.previousState.value?(W=Math.max(0,Hw(W.timestamp,F.previousState.timestamp)),F.totalTime+=W,F.consecutiveTime+=W):F.consecutiveTime=0;return F};
UpG=function(){return Ku(TT(VUY,{totalTime:0,consecutiveTime:0}),cw(function(F){return F.totalTime}))};
R2Y=function(){return Ku(TT(VUY,{totalTime:0,consecutiveTime:0}),cw(function(F){return F.consecutiveTime}))};
e2o=function(F,W){return function(E){return Nnr(W.map(function(h){return E.pipe(F(h))}))}};
MUw=function(){var F;return Ku(uO(function(W){return void(F=W.timestamp)}),R2Y(),cw(function(W){return{timestamp:F,
value:Math.round(W)}}))};
gdb=function(F,W){return Up(F.topWindowViewportExternalGeometry,W.topWindowViewportExternalGeometry)&&Up(F.elementGeometry,W.elementGeometry)&&Up(F.exposedViewportLocalGeometry,W.exposedViewportLocalGeometry)&&Up(F.intersectionGeometry,W.intersectionGeometry)&&F.elementGeometrySourceName===W.elementGeometrySourceName&&F.measurementRequests===W.measurementRequests&&F.viewportGeometrySourceName===W.viewportGeometrySourceName&&F.viewportLocalAppOffset.x===W.viewportLocalAppOffset.x&&F.viewportLocalAppOffset.y===
W.viewportLocalAppOffset.y};
tUe=function(F,W){return function(E){return function(h){var d=h.pipe(jJ(new WE),IS());h=E.element.pipe(lO());d=d.pipe(cw(function(V){return V.value}));
return k9([h,d,W]).pipe(cw(function(V){var R=_.U(V);V=R.next().value;var M=R.next().value;R=R.next().value;if(V.ref===void 0)var g={top:0,left:0,width:0,height:0};else{g=V.ref.getBoundingClientRect();var t=V.ref,C=F.global,B=new _.sp(0,0),I=LC(_.qp(t));if($d(I,"parent")){do{if(I==C)var x=_.Zy(t);else x=QlY(t),x=new _.sp(x.left,x.top);B.x+=x.x;B.y+=x.y}while(I&&I!=C&&I!=I.parent&&(t=I.frameElement)&&(I=I.parent))}g={top:B.y,left:B.x,width:g.width,height:g.height}}g=v9W(g,M.viewportLocalAppOffset);
C=BGr(g,M.exposedViewportLocalGeometry);B=F.timeProvider.now();I=Object;t=I.assign;if(R!==2||F.inCrossDomainIframe||C.width<=0||C.height<=0)var A=!1;else try{var X=F.document.elementFromPoint(C.left+C.width/2,C.top+C.height/2);A=X?!z2r(X,V):!1}catch(P){A=!1}return{timestamp:B,value:t.call(I,{},M,{elementGeometrySourceName:"geo",intersectionGeometry:A?Xn.intersectionGeometry:C,elementGeometry:g})}}),Ep(F.queue))}}};
z2r=function(F,W,E){E=E===void 0?0:E;return F.ref===void 0||W.ref===void 0?!1:F.ref===W.ref||_.HE(W.ref,function(h){return h===F.ref})?!0:W.ref.ownerDocument&&W.ref.ownerDocument.defaultView&&W.ref.ownerDocument.defaultView===W.ref.ownerDocument.defaultView.top?!1:E<10&&W.ref.ownerDocument&&W.ref.ownerDocument.defaultView&&W.ref.ownerDocument.defaultView.frameElement?z2r(F,new PE(W.ref.ownerDocument.defaultView.frameElement),E+1):!0};
vdR=function(F){return function(W){return W.pipe(F.ResizeObserver?C5I(F):BnW(F),rG(1),IS())}};
C5I=function(F){return function(W){return W.pipe(Y9(function(E){var h=F.ResizeObserver;if(!h||E.ref===void 0)return t1(Xn.elementGeometry);var d=(new FL(function(V){function R(){E.ref!==void 0&&M.unobserve(E.ref);M.disconnect();g.unsubscribe()}
if(E.ref===void 0)return V.complete(),function(){};
var M=new h(function(t){t.forEach(function(C){V.next(C)})});
M.observe(E.ref);var g=E.JSC$7265_released.subscribe(R);return R})).pipe(J1(F.performanceMonitor,736),cw(function(V){return V.contentRect}));
return ZV(t1(E.ref.getBoundingClientRect()),d)}),lO(Up))}};
BnW=function(F){return function(W){var E=W.pipe(Kvo(F)),h=F.onResize;E=ZV(W.pipe(cw(function(){return SWe("resize")})),E,h);
return k9(W,E).pipe(J1(F.performanceMonitor,737),cw(function(d){d=_.U(d).next().value;return d.ref===void 0?void 0:d.ref.getBoundingClientRect()}),h2Y(),lO(Up))}};
DpR=function(F,W){var E=IyY(F,W).pipe(rG(1),IS());return function(h){return function(d){d=d.pipe(Y9(function(V){return V.element}),lO());
return k9([E,d]).pipe(Y9(function(V){var R=_.U(V);V=R.next().value;R=R.next().value;return cNR(F,V.intersectionObserver,vdR(F),V.observations,h,V.flushRecords,R)}),Ep(F.queue))}}};
xpY=function(F){return cw(function(W){return W.value.viewportGeometrySourceName!=="nio"?W:Object.assign({},W,{value:Object.assign({},W.value,{exposedViewportLocalGeometry:JN(F,!0),topWindowViewportExternalGeometry:JN(F,!0)})})})};
kOw=function(F,W){return t1(W).pipe(F,cw(function(){return W}))};
IyY=function(F,W){return F.timeProvider.timeline!==ANn?CL(new cE(2)):F.MutationObserver?typeof IntersectionObserver==="undefined"?CL(new cE(0)):(new FL(function(E){var h=new WE,d=new al(h.next.bind(h),{threshold:[].concat(_.x9(W))});E.next({observations:h.pipe(J1(F.performanceMonitor,735)),intersectionObserver:d,flushRecords:function(V){V=d.takeRecords(V);V.length>0&&h.next(V)}})})).pipe(bO(1),rG(1),IS()):CL(new cE(1))};
slW=function(F){return leY(F.sort(function(W,E){return W.time-E.time}),Yfr)};
cNR=function(F,W,E,h,d,V,R){return new FL(function(M){function g(){A||(A=!0,R.ref!==void 0&&W.unobserve(d,R.ref),C.unsubscribe(),x.unsubscribe(),I.unsubscribe(),X.unsubscribe())}
if(R.ref!==void 0){LBk(W,d);W.observe(d,R.ref);var t=new fC({timestamp:F.timeProvider.now(),value:Object.assign({},Xn,{viewportGeometrySourceName:"nio",elementGeometrySourceName:"nio"})}),C=h.pipe(s0(function(P){return slW(P)}),XL(function(P){return P.target===R.ref}),cw(function(P){return{timestamp:new Pw(P.time,ANn),
value:{viewportGeometrySourceName:"nio",exposedViewportLocalGeometry:P.rootBounds||Op,topWindowViewportExternalGeometry:P.rootBounds||JN(F,!0),measurementRequests:B,elementGeometrySourceName:"nio",intersectionGeometry:P.intersectionRect,elementGeometry:P.boundingClientRect,viewportLocalAppOffset:{x:0,y:0},isIntersecting:P.isIntersecting,isV2Visible:P.isVisible}}}),jJ(t),IS()).subscribe(M),B=new WE,I=B.subscribe(function(){V(d);
M.next({timestamp:F.timeProvider.now(),value:t.value.value});R.ref!==void 0&&(W.unobserve(d,R.ref),W.observe(d,R.ref))}),x=kOw(E,R).subscribe(function(){B.next()}),A=!1,X=R.JSC$7265_released.subscribe(function(){return g()});
return g}})};
qpn=function(F,W){var E=F.getOnBackgrounded().pipe(cw(function(){return"b"}));
return CiR(W,E).pipe(bO(1),hN(F.queue))};
l5=function(F){return function(W){var E;return W.pipe(uO(function(h){return void(E=h.timestamp)}),cw(function(h){return h.value}),F,cw(function(h){return{timestamp:E,
value:h}}))}};
$po=function(F){return F.intersectionGeometry.width*F.intersectionGeometry.height/(F.elementGeometry.width*F.elementGeometry.height)};
nC=function(F,W,E){E=E===void 0?function(h,d){return h===d}:E;
return F.timestamp.equals(W.timestamp)&&E(F.value,W.value)};
jU=function(F,W){return W.pipe(cw(function(E){return new yJ(F.timeProvider,{timestamp:F.timeProvider.now(),value:E})}))};
ZCY=function(F){return function(W){return W.pipe(PiS(F),cw(function(E){var h=_.U(E);E=h.next().value;h=h.next().value;var d=E.value;return{timestamp:E.timestamp,value:d>=1?!0:d<=0?!1:d>=h}}))}};
HCW=function(){return Ku(XL(function(F,W){return W>0}),XER,oS(-1),lO())};
P5o=function(F,W,E){return F?k9([W,E]).pipe(XL(function(h){var d=_.U(h);h=d.next().value;d=d.next().value;return h.timestamp.equals(d.timestamp)}),cw(function(h){var d=_.U(h);
h=d.next().value;d=d.next().value;return h.value>d.value?h:d})):W};
fyk=function(F){return function(W){var E=W.pipe(JNo),h=W.pipe(ayG);return F instanceof FL?F.pipe(Y9(function(d){return P5o(d,E,h)})):P5o(F.value,E,h)}};
odG=function(F,W,E,h){var d=h.geometryIsOccluded,V=h.exposureThreshold,R=h.wasLargeAdAtRender,M=h.allowLargeAdThreshold,g=h.largeAdExposureThreshold,t=h.mayUseViewportShareExposure,C=h.hasMeasurementStarted;h=h.useIntersectionObserverV2;W=OCr(F,E,W);E=bCw(F,E);h=lyW(W,h);var B=ndr(F,d,t,W),I=B.pipe(cw(function(hr){return hr.value}),lO(),hN(F),TT(function(hr,p){return Math.max(hr,p)},0)),x=B.pipe(cw(function(hr){return hr.value}),HCW(),hN(F)),A=W.pipe(yNk,cw(function(hr){return hr.value}),bO(2),lO(),
hN(F));
R=jlb(F,W,R,M);var X=R.pipe(oS(!1),lO(),cw(function(hr){return hr?g:V}));
M=B.pipe(ZCY(X),lO(),hN(F));var P=k9([M,W]).pipe(XL(function(hr){var p=_.U(hr);hr=p.next().value;p=p.next().value;return hr.timestamp.equals(p.timestamp)}),cw(function(hr){var p=_.U(hr);
hr=p.next().value;p=p.next().value;return{visible:hr.value,geometry:p.value.elementGeometry}}),TT(function(hr,p){return!p.visible&&hr.visible?hr:p},{visible:!1,
geometry:Op}),cw(function(hr){return hr.geometry}),oS(Op),hN(F),lO(Up));
t=t instanceof FL?t.pipe(lO(),O0()):Il;X=k9([t,X]).pipe(O0());var b=W.pipe(XL(function(hr){return hr.value.viewportGeometrySourceName!=="ns"&&hr.value.elementGeometrySourceName!=="ns"}),TT(function(hr){return hr+1},0),oS(0),hN(F)),l=E.pipe(O0(!0),oS(!1),hN(F));
l=k9([C,l]).pipe(cw(function(hr){var p=_.U(hr);hr=p.next().value;p=p.next().value;return hr&&!p}),hN(F));
var w=W.pipe(iCI,lO()),G=w.pipe(cw(function(hr){return hr.value}),TT(function(hr,p){return Math.max(hr,p)},0),lO(),hN(F));
F=w.pipe(cw(function(hr){return hr.value}),HCW(),hN(F));
return{shouldResetExposureSignals:t,shouldResetViewabilitySignals:X,geometrySignals:{readyGeometryWithDefault:W,measurementStrategy:W.pipe(rNo),creativePosition:P.pipe(lO(Up)),visible:M.pipe(lO(nC)),timestampedExposure:B.pipe(lO(nC)),maximumExposure:I,minimumExposure:x,browserSize:W.pipe(Tnw,lO(_.zz)),timestampedScreenShare:w,maxScreenShare:G,minScreenShare:F,geometricMeasurementErrors:E,measurementRequests:W.pipe(cw(function(hr){return hr.value.measurementRequests})),
isLargeAd:R,geometryIsOccluded:d,hasMeasurementStarted:C,geometryMeasurable:l,validMeasurementCount:b,loadTimeExposure:A,v2VisibilityBitVector:h}}};
bCw=function(F,W){return W.pipe(XL(function(){return!1}),cw(function(E){return E}),aS(function(E){return i5(new VJ(E),F)}))};
OCr=function(F,W,E){return W.pipe(zNR(Il),hN(F)).pipe(lO(function(h,d){return nC(h,d,gdb)}),oS({timestamp:E.now(),
value:Xn}),hN(F))};
ndr=function(F,W,E,h){E=h.pipe(fyk(E),l5(cw(function(d){return Math.round(d*100)/100})),hN(F));
return W instanceof VJ?E:k9([E,W]).pipe(cw(function(d){var V=_.U(d);d=V.next().value;V=V.next().value;return{timestamp:V.timestamp.maximum(d.timestamp),value:V.value?0:d.value}}),lO(nC),hN(F))};
jlb=function(F,W,E,h){W=[W.pipe(cw(function(d){return d.value.elementGeometry.width*d.value.elementGeometry.height>=242500}))];
E instanceof FL&&W.push(E.pipe(cw(function(d){return!!d})));
E=k9(W);return h?E.pipe(cw(function(d){return d.some(function(V){return V})}),oS(!1),lO(),hN(F)):i5(new VJ(!1),F)};
lyW=function(F,W){F=k9([F,W]).pipe(cw(function(d){var V=_.U(d);d=V.next().value;if(V.next().value&&d.value.isIntersecting)return d.value.isV2Visible}),lO());
var E=F.pipe(cw(function(d){return d===void 0?!0:d}),TT(function(d,V){return d||!V},!1)),h=F.pipe(TT(function(d,V){return V===void 0?d:V?!1:d!=null?d:!0},void 0),cw(function(d){return!!d}));
return k9([W,BUI(F,E,h)]).pipe(cw(function(d){var V=_.U(d);d=V.next().value;var R=_.U(V.next().value);V=R.next().value;var M=R.next().value;R=R.next().value;var g=0;if(!d)return 0;if(V===void 0)return 16;V&&(g|=1);V||(g|=2);M&&(g|=4);R&&(g|=8);return g}))};
unk=function(F,W,E,h,d){var V=rn.timeThresholdMs;var R=R===void 0?new GOR(W,h):R;return(new FL(function(M){var g=E.pipe(oS(void 0),Y9(function(){return YpY(d)})).pipe(cw(function(t){var C=t.value;
t=t.timestamp;var B=C.visible;C=C.consecutiveViewTime;var I=C>=V;I||!B?TO(R):(t=Math.max(0,Hw(W.now(),t)),wEr(R,Math.max(0,V-C-t)));return I}),TT(function(t,C){return C||t},!1),lO()).subscribe(M);
return function(){R.dispose();g.unsubscribe()}})).pipe(wG(function(M){return!M},!0),hN(F))};
YpY=function(F){return Nnr([F,F.pipe(MUw())]).pipe(cw(function(W){var E=_.U(W);W=E.next().value;E=E.next().value;return{timestamp:W.timestamp,value:{visible:W.value,consecutiveViewTime:E.value}}}),lO(function(W,E){return nC(W,E,function(h,d){return h.consecutiveViewTime===d.consecutiveViewTime&&h.visible===d.visible})}))};
Spo=function(){return Ku(R2Y(),TT(function(F,W){return Math.max(F,W)},0),cw(function(F){return Math.round(F)}))};
pEn=function(F){return Ku(ZCY(t1(F)),Spo())};
mpo=function(F,W){return W instanceof FL?W.pipe(Y9(function(E){return(E=E?15:null)?CL(new cE(E)):F})):(W=W.value?15:null)?CL(new cE(W)):F};
KBr=function(F){var W=new cE(13);if(F.length<1)return{chain:$9,capturedErrors:$9};var E=new WE,h=F[0];return{chain:F.slice(1).reduce(function(d,V){return d.pipe(aS(function(R){E.next(R);return V}))},h).pipe(aS(function(d){E.next(d);
return CL(W)}),jJ(new WE),IS()),
capturedErrors:E}};
Fjo=function(F,W){var E=F.pipe(jJ(new WE),IS());return Y9(function(h){return E.pipe(W(h))})};
EjG=function(F,W){if(F.inCrossDomainIframe)return CL(new cE(6));var E=new WE;return ZV(t1({}),W,E).pipe(cw(function(){return{timestamp:F.timeProvider.now(),value:{viewportGeometrySourceName:"geo",exposedViewportLocalGeometry:WjG(F),topWindowViewportExternalGeometry:JN(F,!0),measurementRequests:E,viewportLocalAppOffset:{x:0,y:0}}}}),Ep(F.queue))};
WjG=function(F){var W=JN(F,!1);if(!F.inIframe||!ol(F.global.parent)||F.global.parent===F.global)return W;var E=new GO(F.global.parent,F.debugChannel);E.beaconFactory=F.beaconFactory;E=WjG(E);F=F.global.frameElement.getBoundingClientRect();return BGr(v9W(BGr(E,F),{x:W.left-F.left,y:W.top-F.top}),W)};
hAw=function(F){if(F.prerendering)return 3;var W;return(W={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[F.visibilityState||F.webkitVisibilityState||F.mozVisibilityState||""])!=null?W:0};
dTo=function(F){return F.document.JSC$7276_onVisibilityChange.pipe(cw(function(W){return W==="visible"}),lO(),hN(F.queue))};
Nle=function(F,W,E){var h;return W.pipe(lO(),Y9(function(d){return E.pipe(cw(function(){if(!h){h=!0;try{d.next()}finally{h=!1}}return!0}))}),oS(!1),hN(F.queue))};
VSe=function(F){return Ku(l5(cw(function(W){return W>=1?!0:W<=0?!1:W>=F})),UpG(),cw(function(W){return Math.round(W)}))};
RAY=function(F,W,E,h,d){var V=UTY;if(V.length>1)for(var R=0;R<V.length-1;R++)if(V[R]<V[R+1])throw Error();R=d.pipe(oS(void 0),Y9(function(){return E.pipe(MUw())}),lO(),hN(F));
d=d.pipe(oS(void 0),Y9(function(){return E.pipe(Spo())}),lO(),hN(F));
return{totalMeasurementTime:h.pipe(oS(void 0),Y9(function(){return W.pipe(cw(function(M){return{timestamp:M.timestamp,value:!0}}),UpG())}),lO(),hN(F)),
totalUnviewedTime:h.pipe(oS(void 0),Y9(function(){return W.pipe(cw(function(M){return{timestamp:M.timestamp,value:M.value===0}}),UpG())}),lO(),hN(F)),
maxTimeOnScreen:h.pipe(oS(void 0),Y9(function(){return W.pipe(e2o(pEn,V))}),lO(_.zz),hN(F)),
timeOnScreen:h.pipe(oS(void 0),Y9(function(){return W.pipe(e2o(VSe,V),cw(function(M){return M.map(function(g,t){return t>0?g-M[t-1]:g})}))}),lO(_.zz),hN(F)),
maxConsecutiveViewTime:d,consecutiveViewTime:R.pipe(lO(nC),hN(F))}};
MSr=function(F){var W=!0;W=W===void 0?!1:W;return Ku(Y9(function(E){return eAG(F.document,E,W)}),hN(F.queue))};
gjS=function(F,W,E){var h=E.pipe(cw(function(d){return{value:d,timestamp:F.timeProvider.now()}}),lO(nC));
return W instanceof FL?W.pipe(lO(),Y9(function(d){return d?i5(new VJ({value:!1,timestamp:F.timeProvider.now()}),F.queue):h})):W.value===!1?h:new VJ(!1)};
QTe=function(F,W,E,h,d,V,R){var M=rn;W=W instanceof FL?W.pipe(oS(!1),lO()):W;var g=!F.isMobile();E=gjS(F,E,h);F=R.measurableCreative.pipe(dpo(F.queue));return Object.assign({},M,{geometryIsOccluded:E,wasLargeAdAtRender:d,allowLargeAdThreshold:g,mayUseViewportShareExposure:W,hasMeasurementStarted:F,useIntersectionObserverV2:V})};
tSW=function(F,W,E,h,d,V){var R=1;V=V===void 0?!0:V;R=R===void 0?.01:R;var M=M===void 0?F.timeProvider.intervalObservable(100).pipe(hN(F.queue)):M;return F.performanceMonitor.timeExecution(916,function(){return zAW(F,W.pipe(Ep(F.queue)),E.pipe(Ep(F.queue)),h,d,V,R,M)})()};
zAW=function(F,W,E,h,d,V,R,M){var g=dTo(F).pipe(cw(function(C){return!C})),t=new Cgb(F,[new BlS(F,UTY),
new vjY(F,M)]);M=wwY(Iqo,cve);return jSG(F,W,function(C,B){var I=i5(new VJ(B.element),C.queue).pipe(MSr(C),hN(C.queue)),x={loadedElement:I,shouldMeasure:I.pipe(O0(!0)),measurableCreative:I.pipe(cw(function(hr){var p=p===void 0?Symbol():p;return Object.freeze({symbol:p,element:i5(new VJ(hr),C.queue)})})),
creativeSearchResult:i5(new VJ("mue"),C.queue)},A=new VJ(!1),X=new VJ(!1),P=new VJ(17),b=new VJ(!1),l=new VJ(!1),w=i5(Yd,C.queue);A=t.buildGeometrySource(x,{inApp:A,useV2:!1,requestSource:i5(P,C.queue)}).geometrySource;x=QTe(C,b,X,g,l,w,x);X=odG(C.queue,C.timeProvider,A,x);x=X.geometrySignals;b=X.shouldResetViewabilitySignals;X=RAY(C.queue,x.timestampedExposure,x.visible,X.shouldResetExposureSignals,b);b=unk(C.queue,C.timeProvider,b,x.measurementRequests,x.visible);l=E.pipe(XL(function(hr){return hr===
B.element.ref}),cw(function(){return"ur"}));
w=Dio(C.timeProvider,d).pipe(O0("t"));l=qpn(C,ZV(l,w));w=Nle(C,x.measurementRequests,l.pipe(XL(function(hr){return hr!==null})));
A=l.pipe(XL(function(hr){return hr!==null}),cw(function(){return hAw(C.global.document)===1}));
var G=DTW(C.document);return Object.assign({},{beaconFactory:new VJ(C.beaconFactory),context:new VJ(C),inferredPingId:new VJ("lidar2"),timeOnScreenPingId:new VJ("lidartos"),binaryContext:new VJ(17),binaryVersion:new VJ(h),requestSource:P,contextValidationErrors:new VJ(C.validate()?null:new Dy),contextVisibilityKnown:new VJ(G),payloadMapper:new VJ(GTY),endOfSessionReason:l,timeOnScreenReason:l,requestMeasurementOnEndOfSession:w,hasImpressionFired:xTI,crossDomainIframeState:new VJ(C.inCrossDomainIframe?
1:void 0),inStatefulBeaconExperiment:Yd,inFetchLaterBeaconExperiment:Yd,isTurtlex:Yd,turtlexReportEventData:new VJ(""),reportFencedFrameEvent:Il,isViewableAttributionEnabled:Yd,inViewableAttributionExperiment:new VJ(0),fetchBeaconFactory:Il,supportsPendingBeacon:Yd,supportsFetchLater:Yd,emit:new VJ(pwn),beginToRenderEvent:new VJ(Symbol()),activeViewUnmeasurableEvent:new VJ(Symbol()),activeViewViewableEvent:new VJ(Symbol()),creativeFound:xTI,immediateUrlPrefixes:new VJ(B.immediateUrls),timeOnScreenUrlPrefixes:new VJ(B.timeOnScreenUrls),
cpmavUrls:Il,viewableRelayUrls:Il,measurementDeferralState:new VJ(2),urlSerializer:new VJ(Edr),viewUrlSerializer:new VJ(k3I),isCreativeLoaded:I.pipe(dpo(C.queue)),pageVisible:g.pipe(cw(function(hr){return!hr})),
eosPageVisible:A,timestampedExposureHistory:x.timestampedExposure.pipe(TT(function(hr,p){hr.push(p);return hr},[]))},x,{viewable:jU(C,b),
maxTimeOnScreen:jU(C,X.maxTimeOnScreen),timeOnScreen:jU(C,X.timeOnScreen),maxConsecutiveViewTime:jU(C,X.maxConsecutiveViewTime),consecutiveViewTime:X.consecutiveViewTime.pipe(cw(function(hr){return new yJ(C.timeProvider,hr)})),
totalMeasurementTime:jU(C,X.totalMeasurementTime),totalUnviewedTime:jU(C,X.totalUnviewedTime),userAgentClientHints:u3o(C),clientOrderPingCounter:new VJ(new r1I)})},Y0k(F,R),uLW(V?S0Y(M,Avo):S0Y(M,sTR),Ljk))};
q2n=function(F){var W=_.Dd.apply(1,arguments).filter(Boolean).join("&");if(!W)return F;var E=F.match(/[?&]adurl=/);return E?F.slice(0,E.index+1)+W+"&"+F.slice(E.index+1):F+(F.indexOf("?")<0?"?":"&")+W};
wn=function(F,W){return W?"&"+F+"="+encodeURIComponent(W):""};
$TR=function(){try{var F,W;return!!((F=window)==null?0:(W=F.top)==null?0:W.location.href)&&!1}catch(E){return!0}};
_.u5=function(F){F&&typeof F.dispose=="function"&&F.dispose()};
_.pC=function(F){for(var W=0,E=arguments.length;W<E;++W){var h=arguments[W];_.Ee(h)?_.pC.apply(null,h):_.u5(h)}};
Xbe=function(){var F=ZrY();F=F===void 0?"bevasrsg":F;return new Promise(function(W){var E=window===window.top?window:$TR()?window:window.top,h=E[F],d;((d=h)==null?0:d.bevasrs)?W(new mB(h.bevasrs)):(h||(h={},h=(h.nqfbel=[],h),E[F]=h),h.nqfbel.push(function(V){W(new mB(V))}))})};
Hro=function(F){var W={c:F.sY,e:F.xMt,mc:F.uUD,me:F.ykg};F.sT&&(W.co={c:F.sT.uNU,a:F.sT.kuk,s:F.sT.aZF});return W};
Pgo=function(F){var W,E,h={sY:F.c,xMt:F.e,uUD:(W=F.mc)!=null?W:!1,ykg:(E=F.me)!=null?E:!1};F.co&&(h.sT={uNU:F.co.c,kuk:F.co.a,aZF:F.co.s});return h};
JvG=function(F){return function(){var W;return _.e(function(E){if(E.nextAddress==1)return _.Q(E,F(),2);W=E.yieldResult;return E.return({f:function(){return W.tym()},
c:function(h){return W.fqe(h)},
m:function(h){return W.nQ(Pgo(h))},
mws:function(h){return W.ey(Pgo(h))}})})}};
aqW=function(F,W){var E=ZrY();E=E===void 0?"bevasrsg":E;W={s:function(V){var R;return F.snapshot(Object.assign({},V.c&&{sY:V.c},V.s&&{xFP:V.s},{cfb:(R=V.p)!=null?R:!0}))},
e:function(V){var R;return void((R=F.eRs)==null?void 0:R.call(F,V))},
c:function(V,R){return F.xjw(V,R)},
p:F.yrg,l:function(){return F.uK3()},
wpc:W?JvG(W):void 0};var h=window===window.top?window:$TR()?window:window.top,d=h[E];if(d){d.bevasrs=W;if(d.nqfbel!==void 0)for(E=_.U(d.nqfbel),h=E.next();!h.done;h=E.next())h=h.value,h(W);d.nqfbel=void 0}else d={},d=(d.bevasrs=W,d.nqfbel=void 0,d),h[E]=d};
Oro=function(F){var W=W===void 0?49:W;var E=[];_.KC(F,fqY,6,_.Fg()).forEach(function(h){_.Wb(h,2)<=W&&E.push(_.Wb(h,1))});
return E};
brr=function(F){var W=W===void 0?49:W;var E=[];_.KC(F,fqY,6,_.Fg()).forEach(function(h){_.Wb(h,2)>W&&E.push(_.Wb(h,1))});
return E};
lqb=function(F){F.then(function(){},function(){})};
E2=function(F){return{fieldType:1,fieldName:F}};
hv=function(F){return{fieldType:2,fieldName:F}};
_.dl=function(F){return{fieldType:3,fieldName:F}};
njS=function(){function F(){d[0]=1732584193;d[1]=4023233417;d[2]=2562383102;d[3]=271733878;d[4]=3285377520;C=t=0}
function W(B){for(var I=R,x=0;x<64;x+=4)I[x/4]=B[x]<<24|B[x+1]<<16|B[x+2]<<8|B[x+3];for(x=16;x<80;x++)B=I[x-3]^I[x-8]^I[x-14]^I[x-16],I[x]=(B<<1|B>>>31)&4294967295;B=d[0];var A=d[1],X=d[2],P=d[3],b=d[4];for(x=0;x<80;x++){if(x<40)if(x<20){var l=P^A&(X^P);var w=1518500249}else l=A^X^P,w=1859775393;else x<60?(l=A&X|P&(A|X),w=2400959708):(l=A^X^P,w=3395469782);l=((B<<5|B>>>27)&4294967295)+l+b+w+I[x]&4294967295;b=P;P=X;X=(A<<30|A>>>2)&4294967295;A=B;B=l}d[0]=d[0]+B&4294967295;d[1]=d[1]+A&4294967295;d[2]=
d[2]+X&4294967295;d[3]=d[3]+P&4294967295;d[4]=d[4]+b&4294967295}
function E(B,I){if(typeof B==="string"){B=unescape(encodeURIComponent(B));for(var x=[],A=0,X=B.length;A<X;++A)x.push(B.charCodeAt(A));B=x}I||(I=B.length);x=0;if(t==0)for(;x+64<I;)W(B.slice(x,x+64)),x+=64,C+=64;for(;x<I;)if(V[t++]=B[x++],C++,t==64)for(t=0,W(V);x+64<I;)W(B.slice(x,x+64)),x+=64,C+=64}
function h(){var B=[],I=C*8;t<56?E(M,56-t):E(M,64-(t-56));for(var x=63;x>=56;x--)V[x]=I&255,I>>>=8;W(V);for(x=I=0;x<5;x++)for(var A=24;A>=0;A-=8)B[I++]=d[x]>>A&255;return B}
for(var d=[],V=[],R=[],M=[128],g=1;g<64;++g)M[g]=0;var t,C;F();return{reset:F,update:E,digest:h,digestString:function(){for(var B=h(),I="",x=0;x<B.length;x++)I+="0123456789ABCDEF".charAt(Math.floor(B[x]/16))+"0123456789ABCDEF".charAt(B[x]%16);return I}}};
Tlr=function(F,W){W=W===void 0?yvY:W;if(!jTY){var E;F=(E=F.navigator)==null?void 0:E.userAgentData;if(!F||typeof F.getHighEntropyValues!=="function"||F.brands&&typeof F.brands.map!=="function")return Promise.reject(Error("ya"));irk((F.brands||[]).map(function(d){var V=new rve;V=_.QJ(V,1,d.brand);return _.QJ(V,2,d.version)}));
typeof F.mobile==="boolean"&&_.NT(V$,2,F.mobile);jTY=F.getHighEntropyValues(W)}var h=new Set(W);return jTY.then(function(d){var V=V$.clone();h.has("platform")&&_.QJ(V,3,d.platform);h.has("platformVersion")&&_.QJ(V,4,d.platformVersion);h.has("architecture")&&_.QJ(V,5,d.architecture);h.has("model")&&_.QJ(V,6,d.model);h.has("uaFullVersion")&&_.QJ(V,7,d.uaFullVersion);return V.serialize()}).catch(function(){return V$.serialize()})};
U2=function(F,W,E,h){this.initialValue_=F;this.maxValue_=W;this.currBaseValue_=this.currValue_=F;this.randomFactor_=E||0;this.backoffFactor_=h||2};
RT=function(F){this.src=F;this.listeners={};this.typeCount_=0};
wbY=function(){for(var F;F=ojY.remove();){try{F.fn.call(F.scope)}catch(W){dI(W)}G3n.put(F)}Y2Y=!1};
_.eS=function(F){switch(F){case 200:return 0;case 400:return 3;case 401:return 16;case 403:return 7;case 404:return 5;case 409:return 10;case 412:return 9;case 429:return 8;case 499:return 1;case 500:return 2;case 501:return 12;case 503:return 14;case 504:return 4;default:return 2}};
ugr=function(F){switch(F){case 0:return"OK";case 1:return"CANCELLED";case 2:return"UNKNOWN";case 3:return"INVALID_ARGUMENT";case 4:return"DEADLINE_EXCEEDED";case 5:return"NOT_FOUND";case 6:return"ALREADY_EXISTS";case 7:return"PERMISSION_DENIED";case 16:return"UNAUTHENTICATED";case 8:return"RESOURCE_EXHAUSTED";case 9:return"FAILED_PRECONDITION";case 10:return"ABORTED";case 11:return"OUT_OF_RANGE";case 12:return"UNIMPLEMENTED";case 13:return"INTERNAL";case 14:return"UNAVAILABLE";case 15:return"DATA_LOSS";
default:return""}};
_.S2R=function(){};
N$Y=function(F){return{eC1:new pbr(F),errorCount:new mTn(F),eventCount:new Kjw(F),pyp:new F6e(F),rp3:new W6b(F),qQT:new Epr(F),bY1:new hFo(F),iIX:new d6I(F)}};
teG=function(F,W,E,h){F=VeY(U6n(RFr(new _.MT(1828,"0"),F),new eFk));W.length&&Mek(F,gpY(new Qyk,W));h!==void 0&&(F.destinationUrl=h);var d=new zFr(1828,"","",!1,"",F.build());_.gl(d,F);var V=new Q$({flush:function(R){try{d.flush(R)}catch(M){E(M)}}});
V.addOnDisposeCallback(function(){setTimeout(function(){try{V.snapshotAndFlush()}finally{d.dispose()}})});
V.invocationLimit=1E5;V.flushInterval=3E4;V.JSC$7692_flushTimer.setInterval(3E4);return V};
z3=function(){var F,W,E;return(E=(F=globalThis.performance)==null?void 0:(W=F.now)==null?void 0:W.call(F))!=null?E:Date.now()};
vpo=function(F,W,E){if(F.disable)return new CuY;W=W?Oro(W):[];if(E)return E.adf(W),E.share();F={vM:F.vM,exP:F.jzt,aWI:F.kO7,destinationUrl:F.destinationUrl,x6u:F.x6u,cq:F.cq};E=W;E=E===void 0?[]:E;return new B$o(F,E)};
_.Inn=function(F){if(!F)return null;F=_.tv(F,4);return F===null||F===void 0?null:_.RI(F)};
npW=function(F,W){return W?bdo(W):F?lnb(F):Promise.resolve()};
bdo=function(F){return new Promise(function(W,E){var h=_.Cr("SCRIPT"),d=_.Inn(F);_.nu(h,d);h.onload=function(){_.Bb(h);W()};
h.onerror=function(){_.Bb(h);E(Error("Ja"))};
(vb("HEAD")[0]||document.documentElement).appendChild(h)})};
lnb=function(F){return new Promise(function(W){var E=_.Cr("SCRIPT");if(F){var h=_.tv(F,6);h=h===null||h===void 0?null:_.OW(h)}else h=null;_.li(E,h);(vb("HEAD")[0]||document.documentElement).appendChild(E);_.Bb(E);W()})};
IT=function(F,W,E){var h,d=new Promise(function(V){h=setTimeout(V,W)});
return Promise.race([F.finally(function(){return void clearTimeout(h)}),
d.then(E)])};
yzR=function(F,W){try{return globalThis.sessionStorage.setItem(F,W),!0}catch(E){return!1}};
jyR=function(F,W,E,h){W=W===void 0?0:W;E=E===void 0?F.length:E;var d=0;for(h&&(d=jyR(h));W<E;W++)h=typeof F==="string"?F.charCodeAt(W):F[W],d=idb(31,d)+h|0;return d};
rzY=function(F,W){return[jyR(F,0,F.length>>1,W),jyR(F,F.length>>1)]};
T$R=function(F){var W=_.U(rzY(F,cb));F=W.next().value;W=W.next().value;return F.toString(16)+W.toString(16)};
opk=function(F,W){var E=rzY(W);F=new Uint32Array(F.buffer);W=F[0];var h=_.U(E);E=h.next().value;h=h.next().value;for(var d=1;d<F.length;d+=2){for(var V=W,R=d,M=E,g=h,t=0;t<22;t++)R=R>>>8|R<<24,R+=V|0,R^=M+38293,V=V<<3|V>>>29,V^=R,g=g>>>8|g<<24,g+=M|0,g^=t+38293,M=M<<3|M>>>29,M^=g;V=[V,R];F[d]^=V[0];d+1<F.length&&(F[d+1]^=V[1])}};
Gir=function(F,W,E,h,d){var V=(4-(cb.length+E.length)%4)%4,R=new Uint8Array(4+V+cb.length+4+E.length),M=new DataView(R.buffer),g=0;M.setUint32(g,Math.random()*4294967295);g=g+4+V;R.set(cb,g);g+=cb.length;M.setUint32(g,d);R.set(E,g+4);opk(R,h);return F.insert(W,function(t){return void globalThis.sessionStorage.removeItem(t)})?yzR(W,_.FG(R))?"s":"t":"i"};
Yio=function(F,W){var E=globalThis.sessionStorage.getItem(F);if(!E)return["m"];try{var h=_.CT(E);opk(h,W)}catch(d){return globalThis.sessionStorage.removeItem(F),["c"]}for(W=4;W<7&&h[W]===0;)W++;for(E=0;E<cb.length;E++)if(h[W++]!==cb[E])return globalThis.sessionStorage.removeItem(F),["d"];E=(new DataView(h.buffer)).getUint32(W);return Math.floor(Date.now()/1E3)>=E?(globalThis.sessionStorage.removeItem(F),["e"]):["a",new Uint8Array(h.buffer,W+4)]};
wXr=function(F){return globalThis.TextEncoder?(new TextEncoder).encode(F):_.Dq(F)};
uOW=function(F){var W=F,E;return function(){if(W){var h=W;W=void 0;E=h.apply(this,arguments)}return E}};
pXI=function(F){return SH(function(W){if(W instanceof F)return!0;var E,h,d=W==null?void 0:(E=W.ownerDocument)==null?void 0:(h=E.defaultView)==null?void 0:h[F.name];return Sie(d)&&W instanceof d})};
_.Av=function(F,W,E){_.xj.call(this);this.JSC$7905_listener_=F;this.JSC$7905_interval_=W||0;this.handler_=E;this.callback_=(0,_.kj)(this.JSC$7907_doAction_,this)};
_.s2=function(F){F=m6Y(F);return _.RI(F)};
m6Y=function(F){return F===null?"null":F===void 0?"undefined":F};
F0r=function(F){if(F&&F.focus)if(F!==document.activeElement)F.focus();else return K6e(function(){return _.e(function(W){document.activeElement&&document.activeElement.blur();return W.return(K6e(function(){F.focus()}))})})};
_.W0S=function(F){var W=W===void 0?5:W;setTimeout(function(){var E;return _.e(function(h){h.nextAddress==1&&(E=document.activeElement);if(h.nextAddress!=5)return(document.activeElement===E||document.activeElement===document.body)&&W>=0&&F?_.Q(h,F0r(F),5):h.jumpTo(0);if(document.activeElement===F)return h.return();F=F.parentElement;--W;return h.jumpTo(2)})},15)};
K6e=function(F){return new Promise(function(W){requestAnimationFrame(function(){W(F())})})};
haY=function(F){if(_.Lr)F(_.Lr);else{var W;((W=EFR)!=null?W:EFR=[]).push(F)}};
Zq=function(){!_.Lr&&_.qT&&_.dOo(_.qT());return _.Lr};
_.dOo=function(F){_.Lr=F;var W;(W=EFR)==null||W.forEach(haY);EFR=void 0};
_.Xg=function(F){_.Lr&&_.Lr.beforeLoadModuleCode(F)};
_.Hb=function(){_.Lr&&_.Lr.JSC$8856_setLoaded()};
Pb=function(F){return bK(F)?Number(F):String(F)};
Non=function(F){this.action=F;this.wfv=!1};
VuR=function(F,W){Non.call(this,"set-drive-options");this.appId=F;this.appOrigin=W};
UOr=function(F){Non.call(this,"visibility");this.visible=F};
RaY=function(F,W,E){Jv.call(this,F,W,E)};
eak=function(F){aT.call(this,F)};
Mun=function(F){F=F&&F.getWindow()||window;return F.gadgets&&F.gadgets.rpc};
QWr=function(F,W){var E=W&&W.getWindow()||window;if(Mun(W))F();else if(gFS)gFS.push(F);else var h=gFS=[F],d=E.setInterval(function(){if(Mun(W)){E.clearInterval(d);for(var V=0;V<h.length;V++)h[V]();gFS=null}},100)};
tuS=function(F,W){var E=new fr(F);_.gl(W,E);var h={passive:!1};W.listen(E,"mousewheel",function(d){return void zar(F,d)},h).listen(F,"scroll",function(d){return void zar(F,d)},h)};
zar=function(F,W){var E;a:{for(E=W.target;E;){if(E.nodeType==1){var h=_.O2(E,"overflowY");if(h=="auto"||h=="scroll")break a}E=E.parentNode}E=null}if(!E||!_.bg(F,E)||E.scrollHeight==E.clientHeight||W.deltaY>0&&Math.abs(E.scrollTop-(E.scrollHeight-E.clientHeight))<=1||W.deltaY<0&&E.scrollTop==0)W.preventDefault(),W.stopPropagation()};
T3=function(F,W,E,h,d,V,R,M,g){M=M===void 0?!1:M;g=g===void 0?!1:g;Jv.call(this,void 0,void 0,void 0);Jv.call(this,V?V+" picker modal-dialog":"picker modal-dialog",!0,E);_.lg(F,"protocol");this.iframeManager_=new C0o;this.targetId_=nr();this.rpcToken_=nr();F=_.y$(F);_.jS(F,"hostId");E=_.jS(F,"parent");this.useGapi_=!g&&!0||(E==null?void 0:E.includes("onepick.corp.google.com"));M&&_.ig(F,"fv2","true");this.setUrl(F.toString());this.preferredDialogWidth_=h;this.preferredDialogHeight_=d;h!==void 0||
d!==void 0?h=!0:(h=_.jS(_.y$(F.toString()),"hostId"),Bob||(Bob=new Set("DocVerse fusiontables geo geowiki gm gmail-gadget gws hotpot jointly presentations pwa sites templates trix trix-copy-sheet webstore".split(" "))),h=!Bob.has(h));this.autoSizeDialog_=h;this.JSC$8095_gadgetsDomHelper_=R||this.JSC$8046_dom_;W&&(R=this.JSC$8095_gadgetsDomHelper_,W=_.jS(_.y$(this.JSC$8097_url_),"grugl")=="true"?vFr:I4Y,Mun(R)||(R=R||gn(document),h=R.createElement("SCRIPT"),_.nu(h,W),h.type="text/javascript",R.JSC$7231_document_.body.appendChild(h)));
F=F.toString();W=null;R=F.indexOf("/picker?");R>-1?W=F.substring(0,R+8-1):ek(F,"/picker")&&(W=F);W&&this.setRelayUrl(W+"/resources/rpc_relay.html");this.escapeToCancel_=!1;this.buttons_=null;this.buttonEl_&&(this.buttons_?(F=this.buttons_,F.JSC$8080_element_=this.buttonEl_,F.render()):_.yK(this.buttonEl_,c8Y),_.rl(this.buttonEl_,!!this.buttons_))};
_.A8k=function(F){var W=W===void 0?DOw:W;var E=_.Ue(F),h=function(V){V=_.U(V);V.next();V=oT(V);return W(E,V)},d=function(V){var R=_.U(V);
V=R.next().value;R=oT(R);return F.apply(V,R)};
return function(){var V=_.Dd.apply(0,arguments),R=this||_.EY,M=xOr.get(R);M||(M={},xOr.set(R,M));return kkY(M,[this].concat(_.x9(V)),d,h)}};
G3=function(F){var W={};F=F.replace(/\r/g,"").split("\n");for(var E=0;E<F.length;E++){var h=F[E],d=h.indexOf(":");d<0||(W[h.substring(0,d)]=h.substring(d+2,h.length))}return W};
sWR=function(F,W,E){E=E===void 0?function(){}:E;
W=_.U(W);for(var h=W.next();!h.done;h=W.next()){var d=_.U(h.value);h=d.next().value;d=d.next().value;if(h instanceof Array&&h.includes(F)||h===F)return d()}return E()};
wl=function(F,W,E){E=E===void 0?function(){}:E;
return F?W():E()};
_.qGk=function(F){var W;return((W=L0r.documentOverride)!=null?W:F).__wizdispatcher};
SS=function(F){var W=ug;ug=F;return W};
ZWY=function(F,W){var E;if((E=F)==null?0:E.isDisposed)throw Error("nb`"+String(F.debugName));for(;F!==void 0;){E=F;if(E.retrieve)return E.retrieve(W,{optional:!0});F=F.parent}return $OG};
pr=function(F){return{"\u0275prov":{providedIn:"root",token:Symbol(F),factory:void 0,value:void 0}}};
XQo=function(F){var W=SS(F);F={};return F[Symbol.dispose]=function(){SS(W)},F};
HWb=function(F,W){F.disposables||(F.disposables=[]);F.disposables.push(W)};
FO=function(F){var W=ug;W&&!W.isDisposed&&(HWb(W,F),F.parent=W)};
J8o=function(F){if(F.disposables){for(var W=_.U(F.disposables),E=W.next();!E.done;E=W.next())E=E.value,typeof E==="function"?E():P0b(E);F.disposables.length=0}};
P0b=function(F){if(!F.isDisposed){F.isDisposed=!0;var W;(W=F[Symbol.dispose])==null||W.call(F);delete F.parent;J8o(F)}};
iWY=function(F){var W={retrieve:function(E){switch(E.\u0275prov.token){case a4o.\u0275prov.token:var h=F.asyncDeps;break;case f4W.\u0275prov.token:h=F.rootElement;break;case OWb.\u0275prov.token:h=F.modelRootElement;break;case bWG.\u0275prov.token:h=F.appContext;break;case l4o.\u0275prov.token:h=F.rendererData;break;case nFY.\u0275prov.token:h=F.injectingConstructor;break;case y8Y.\u0275prov.token:h=F.dispatcher}if(h)E=h;else a:{for(h=W.parent;h;){var d=h;if(d.retrieve){E=d.retrieve(E);break a}h=
h.parent}h=E.\u0275prov.token;d=jWY[h];d!==void 0?E=d:(d=E.\u0275prov.providedIn,E.\u0275prov.factory?(E=E.\u0275prov.factory(),h&&d==="root"&&(jWY[h]=E)):E=$OG)}return E}};
FO(W);return W};
r8b=function(F){if(typeof document!=="undefined"&&document&&document.getElementById&&(F=document.getElementById(F))){var W=F.tagName.toUpperCase();if(W=="SCRIPT"||W=="LINK")return F}return null};
oFG=function(F,W){if((F=F===void 0?"":F)&&W)throw Error("ub");var E="";var h=_.EY._F_jsUrl;(F=W||r8b(F))&&(E=F.src?F.src:F.getAttribute("href"));if(h&&E){if(h!=E)throw Error("vb`"+h+"`"+E);E=h}else E=h||E;if(!Tor(E))throw Error("wb");return E};
wQI=function(){if(!Gkw){Gkw=!0;try{var F=oFG(_.EY._F_jsUrl?"":"base-js")}catch(h){return}var W=YGW(WX(F)),E=Object.keys(W);E.length!==0&&haY(function(h){for(var d=_.U(E),V=d.next();!V.done;V=d.next()){V=V.value;for(var R=_.U(Object.keys(W[V])),M=R.next();!M.done;M=R.next())h.addExtraEdge(V,M.value)}})}};
uke=function(F,W,E){var h;return F&&W?F+"__"+W:(h=F!=null?F:W)!=null?h:E};
pQo=function(){var F=Object.assign({},SGS);Object.getOwnPropertyNames(SGS).forEach(function(W){Ei[W]!==void 0&&(F[W]=Ei[W])});
return F};
mOb=function(F,W){if(Ei.enablePerformanceTiming){var E,h;(h=(E=performance).mark)==null||h.call(E,F+"Start__"+W)}};
K0I=function(F,W){if(Ei.enablePerformanceTiming){var E,h;(h=(E=performance).measure)==null||h.call(E,F+"__"+W,F+"Start__"+W)}};
WeS=function(F,W){var E=Object.create(Feo);E.debugName=W;!ug||FO(E);W=SS(E);try{F(E)}finally{SS(W)}return function(){return void P0b(E)}};
hxY=function(F){return hz(F)&&ECo in F};
d0R=function(F,W){return Object.is(F,W)};
N6=function(F){var W=d$;d$=F;return W};
Rxo=function(F){if(Ve)throw Error("da");if(d$!==null){var W=d$.nextProducerIndex++;NVS(d$);W<d$.producerNode.length&&d$.producerNode[W]!==F&&Ui(d$)&&V5e(d$.producerNode[W],d$.producerIndexOfThis[W]);d$.producerNode[W]!==F&&(d$.producerNode[W]=F,d$.producerIndexOfThis[W]=Ui(d$)?U0G(F,d$,W):0);d$.producerLastReadVersion[W]=F.version}};
gCr=function(F){if(!Ui(F)||F.dirty)if(F.dirty||F.lastCleanEpoch!==exo)(F.producerMustRecompute(F)||M5w(F))&&F.producerRecomputeValue(F),F.dirty=!1,F.lastCleanEpoch=exo};
QAk=function(F){if(F.liveConsumerNode!==void 0){var W=Ve;Ve=!0;try{for(var E=_.U(F.liveConsumerNode),h=E.next();!h.done;h=E.next()){var d=h.value;d.dirty||(F=void 0,d.dirty=!0,QAk(d),(F=d.consumerMarkedDirty)==null||F.call(d,d))}}finally{Ve=W}}};
zxY=function(){var F;return((F=d$)==null?void 0:F.consumerAllowSignalWrites)!==!1};
t5w=function(F){F&&(F.nextProducerIndex=0);return N6(F)};
Cdo=function(F,W){N6(W);if(F&&F.producerNode!==void 0&&F.producerIndexOfThis!==void 0&&F.producerLastReadVersion!==void 0){if(Ui(F))for(W=F.nextProducerIndex;W<F.producerNode.length;W++)V5e(F.producerNode[W],F.producerIndexOfThis[W]);for(;F.producerNode.length>F.nextProducerIndex;)F.producerNode.pop(),F.producerLastReadVersion.pop(),F.producerIndexOfThis.pop()}};
M5w=function(F){NVS(F);for(var W=0;W<F.producerNode.length;W++){var E=F.producerNode[W],h=F.producerLastReadVersion[W];if(h!==E.version)return!0;gCr(E);if(h!==E.version)return!0}return!1};
U0G=function(F,W,E){BVk(F);if(F.liveConsumerNode.length===0&&F.producerNode!==void 0)for(var h=0;h<F.producerNode.length;h++)F.producerIndexOfThis[h]=U0G(F.producerNode[h],F,h);F.liveConsumerIndexOfThis.push(E);return F.liveConsumerNode.push(W)-1};
V5e=function(F,W){BVk(F);if(F.liveConsumerNode.length===1&&F.producerNode!==void 0)for(var E=0;E<F.producerNode.length;E++)V5e(F.producerNode[E],F.producerIndexOfThis[E]);E=F.liveConsumerNode.length-1;F.liveConsumerNode[W]=F.liveConsumerNode[E];F.liveConsumerIndexOfThis[W]=F.liveConsumerIndexOfThis[E];F.liveConsumerNode.length--;F.liveConsumerIndexOfThis.length--;W<F.liveConsumerNode.length&&(E=F.liveConsumerIndexOfThis[W],F=F.liveConsumerNode[W],NVS(F),F.producerIndexOfThis[E]=W)};
Ui=function(F){var W,E;return F.consumerIsAlwaysLive||((E=F==null?void 0:(W=F.liveConsumerNode)==null?void 0:W.length)!=null?E:0)>0};
NVS=function(F){F.producerNode!=null||(F.producerNode=[]);F.producerIndexOfThis!=null||(F.producerIndexOfThis=[]);F.producerLastReadVersion!=null||(F.producerLastReadVersion=[])};
BVk=function(F){F.liveConsumerNode!=null||(F.liveConsumerNode=[]);F.liveConsumerIndexOfThis!=null||(F.liveConsumerIndexOfThis=[])};
IJk=function(F){var W=Object.create(vCY);W.computation=F;F=function(){gCr(W);Rxo(W);if(W.value===Ry)throw W.error;return W.value};
F[ee]=W;return F};
D0I=function(F,W){var E=Object.create(ccG);E.value=F;W!==void 0&&(E.equal=W);F=function(){Rxo(E);return E.value};
F[ee]=E;return F};
AcG=function(F,W){F=D0I(F,W);var E=F[ee];return[F,function(h){return x0n(E,h)},
function(h){zxY()||kCo(E);x0n(E,h(E.value))}]};
x0n=function(F,W){zxY()||kCo(F);if(!F.equal(F.value,W)){F.value=W;F.version++;exo++;QAk(F);var E;(E=sAS)==null||E(F)}};
M6=function(F){var W=N6(null);try{return F()}finally{N6(W)}};
_.g$=function(F,W,E){E=E===void 0?"":E;F=AcG(F,W==null?void 0:W.equals);var h=F[0],d=h[ee];d.debugName=uke(W==null?void 0:W.debugName,E,"[signal]");if(!Ei.enablePerformanceTiming)return F;var V=F[1],R=F[2];return[h,function(M){Lek(function(){return void V(M)},d)},
function(M){Lek(function(){return void R(M)},d)}]};
Lek=function(F,W){mOb("signalSet",W.debugName);try{F()}finally{K0I("signalSet",W.debugName)}};
$0R=function(F,W){var E=_.U(_.g$(F,void 0,"cPpJzc"));F=E.next().value;E=E.next().value;F[qJW]=E;F[Qe]=W;return F};
ZUI=function(F){return!!F&&typeof F==="object"&&Object.getPrototypeOf(F)===Object.prototype};
XZo=function(F){return typeof F==="function"&&qJW in F&&typeof F[qJW]==="function"};
HUr=function(F,W){Object.defineProperty(F,Qe,{get:function(){return W}})};
tz=function(F,W){if(zi(F)){var E=F.map(function(V){return tz(V,W)});
HUr(E,W);return E}if(ZUI(F)){E={};F=_.U(Object.entries(F));for(var h=F.next();!h.done;h=F.next()){var d=_.U(h.value);h=d.next().value;d=d.next().value;E[h]=tz(d,W)}HUr(E,W);return E}return $0R(F,W)};
PdG=function(F){if(zi(F))return F.map(function(d){return PdG(d)});
if(ZUI(F)){var W={};F=_.U(Object.entries(F));for(var E=F.next();!E.done;E=F.next()){var h=_.U(E.value);E=h.next().value;h=h.next().value;W[E]=PdG(h)}return W}return XZo(F)?F():F};
aJY=function(){var F={height:0,width:0};if(!ZUI(F))throw Error("Ib");var W=Symbol("Jb");return[tz(F,W),function(E,h){if(E[Qe]===W)if(typeof h==="function"){var d=[].concat(_.x9(PdG(E)));h=h(d)||d;JcR(E,[].concat(_.x9(h)))}else JcR(E,h);else throw Error("Kb");}]};
JcR=function(F,W){if(XZo(F))F[qJW](W);else if(zi(F)&&zi(W))W=tz(W,F[Qe]),F.length=0,F.push.apply(F,_.x9(W));else if((ZUI(F)||zi(F))&&(zi(W)||typeof W==="object"&&W!==null)){W=_.U(Object.entries(W));for(var E=W.next();!E.done;E=W.next()){var h=_.U(E.value);E=h.next().value;h=h.next().value;var d=F,V=d[E];Object.hasOwn(F,E)?JcR(V,h):d[E]=tz(h,F[Qe])}}else throw Error("Lb");};
fJk=function(F){return Object.create(Object.assign({},BX,F))};
bUk=function(){var F;return(F=OUe)!=null?F:OUe=fJk({consumerAllowSignalWrites:!0})};
_.vX=function(F,W,E){E=E===void 0?"":E;F=IJk(F);var h=F[ee];h.debugName=uke(W==null?void 0:W.debugName,E,"[computed]");(W==null?void 0:W.equals)!=null&&(h.equal=W.equals);return F};
Iy=function(F){var W=N6(lJW);try{F()}finally{N6(W)}};
oCW=function(F){if(!F.isDisposed)switch(F.effectType){case nCY:ycW.schedule(F);break;case jAY:iUb.schedule(F);break;case rcW:TVe.schedule(F);break;default:_.RO(F.effectType)}};
YJR=function(F){GCW.push(F);return function(){var W=GCW.indexOf(F);W!==-1&&GCW.splice(W,1)}};
udG=function(){if(cX>0)ycW.flush();else for(var F=_.U(wZn),W=F.next();!W.done;W=F.next())W.value.flush()};
pZY=function(F){for(var W=_.U(F),E=W.next();!E.done;E=W.next()){var h=E.value;for(E=[h];h.parent!==void 0;)h=h.parent,SJG(h)&&F.has(h)&&E.push(h);for(;E.length>0;){h=E.pop();try{h.run()}finally{F.delete(h)}}}};
m0r=function(F){cX--;if(F){F=_.U(wZn);for(var W=F.next();!W.done;W=F.next())W.value.clear()}else cX>0||udG()};
FFw=function(F){var W=F.component;var E=F.debugInstance;F=F.fn;var h=Ken(W);xp={name:E?h+" ("+E+")":h,isReactive:W.componentType!==kp,parent:xp};W=F();xp=xp.parent;return W};
Az=function(){var F=xp;return F?F.isReactive:!1};
Ld=function(F,W){var E=xp;W&&(xp=W);try{return F()}catch(V){F=V;si(F,xp);if(F!==WFY){E7n=xp;W=[];for(var h=ug;h;){var d=void 0;W.push((d=h.debugName)!=null?d:"[context]");d=void 0;h=(d=h.parent)!=null?d:null}hoR=W.reverse()}WFY=F;throw F;}finally{xp=E}};
si=function(F,W){try{var E=d1W(W===void 0?null:W);if(E&&!F.componentStack&&(F.componentStack=E,Ei.enableComponentStacksInErrorMessages)){var h=F.message+"\n\nComponent stack: "+E;F.stack&&(F.stack=F.stack.replace(F.message,h));F.message=h}}catch(d){}};
d1W=function(F){if(hz(F)&&F.name!==void 0&&F.isReactive!==void 0&&F.parent!==void 0||F===null){for(var W=0,E="";W<20&&F;)E+=F.name+" > ",F=F.parent,W++;F=E.slice(0,-3)}else if(Ei.enableContextBasedComponentStacks){a:{for(F=F===void 0?ug:F;F;){if(hxY(F))break a;W=void 0;F=(W=F.parent)!=null?W:null}F=null}F=F.getComponentStack().slice(0,20).join(" > ")}else F="";return F};
Ken=function(F){return F.debugName||F.name||"[component]"};
NeW=function(F,W,E){W=Object.create(W);W.effectFn=F;E&&(W.debugName=E);FO(W);Ei.enableContextBasedComponentStacks||(W.componentStack=xp);return W};
_.q6=function(F,W){F=NeW(F,VQG,W);oCW(F)};
_.$p=function(F){var W=ug;if(W){var E=Ei.enableContextBasedComponentStacks?void 0:xp;HWb(W,function(){var h=N6(bUk());try{Ei.enableContextBasedComponentStacks?F():Ld(function(){return void F()},E)}catch(d){throw Ei.enableContextBasedComponentStacks&&si(d),d;
}finally{N6(h)}})}};
Zn=function(F,W){var E={};(W===void 0||W)&&FO(E);W=SS(E);try{F(E)}finally{SS(W)}return function(){return void P0b(E)}};
_.XO=function(F){return typeof F==="function"?F():(F==null?0:F[U1w])?F.get():F};
_.HX=function(F,W){F=NeW(F,RoY,W);oCW(F)};
eoS=function(F){if(ug)throw Error("rb");Zn(F,!1)};
PX=function(F,W){F=SS(F);try{return M6(W)}finally{SS(F)}};
Jz=function(F,W,E){E=E===void 0?3:E;var h=d1W(E7n),d,V;var R=(V=(d=hoR)==null?void 0:d.slice())!=null?V:[];W={componentStack:h,contextTrace:R,errorSeverity:E,featureFlags:pQo(),tagName:W};return[F,W]};
Qre=function(F,W,E){if(Object.hasOwnProperty.call(MQY,F)&&(F=MQY[F],Object.hasOwnProperty.call(F,W)&&(F=F[W],F instanceof Array))){for(var h=null,d=!1,V=0,R=F.length;V<R;++V){var M=F[V],g=M.contingentAttribute;if(!g)return M.contract;h===null&&(h={});g=Object.hasOwnProperty.call(h,g)?h[g]:h[g]=E(g);if(g===M.requiredValue)return M.contract;g==null&&(d=!0)}if(d)return null}W=g7o[W];return typeof W==="number"?W:null};
CYr=function(F,W,E){var h=null;(F=zok[F])&&(h=F[W]);return typeof h!=="number"&&((F=zok["*"])&&(h=F[W]),typeof h!=="number")?!1:!0===tQr[h][String(E).toLowerCase()]};
v7k=function(F,W){W=Qre(F.toLowerCase(),W,function(){var h;(h=Ei.handleError)==null||h.call.apply(h,[Ei].concat(_.x9(Jz(Error("Qb"),F.toLowerCase()))))});
if(W===null)return null;var E;return(E=BeY[W])!=null?E:null};
Ipn=function(F,W,E){if(E===null||E===void 0)return E;F=v7k(F,W);return F===null?E:F(W,E)};
cHo=function(){};
ay=function(F,W){for(;F.length>W;)F.pop()};
D1b=function(F){F=Array(F);ay(F,0);return F};
x1k=function(F,W,E){if(E==null)F.removeAttribute(W);else{var h;(h=W.lastIndexOf("xml:",0)===0?"http://www.w3.org/XML/1998/namespace":W.lastIndexOf("xlink:",0)===0?"http://www.w3.org/1999/xlink":null)?F.setAttributeNS(h,W,E):F.setAttribute(W,E)}};
kXG=function(F,W,E){F[W]=E};
srW=function(F,W,E){F=F.style;if(typeof E==="string")F.cssText=E;else{F.cssText="";for(var h in E)if(AHY.call(E,h)){W=F;var d=h,V=E[h];d.indexOf("-")>=0?W.setProperty(d,V):W[d]=V}}};
LFw=function(F,W,E){var h=typeof E;h==="object"||h==="function"?F[W]=E:x1k(F,W,E)};
qmo=function(){var F=new cHo;F[fd.default]=LFw;F.style=srW;return F};
$1n=function(F,W,E,h){(h[W]||h[fd.default])(F,W,E)};
X0b=function(F,W,E){W=new ZMo(W,E);return F.__incrementalDOMData=W};
Oi=function(F,W){if(F.__incrementalDOMData)return F.__incrementalDOMData;var E=F.nodeType===1?F.localName:F.nodeName,h=F.nodeType===1?F.getAttribute("key"):null;W=X0b(F,E,F.nodeType===1?h||W:null);if(F.nodeType===1&&(F=F.attributes,E=F.length)){h=W._attrsArr||(W._attrsArr=D1b(E*2));for(var d=0,V=0;d<E;d+=1,V+=2){var R=F[d],M=R.value;h[V]=R.name;h[V+1]=M}}return W};
HMb=function(F,W,E,h,d){return W==E&&h==d};
PYk=function(F){for(var W=bu,E=lu();E!==F;){var h=E.nextSibling;W.removeChild(E);nd.deleted.push(E);E=h}};
lu=function(){return iu?iu.nextSibling:bu.firstChild};
r$=function(){iu=lu()};
fpr=function(F,W,E){r$();var h;a:{if(h=iu){do{var d=h,V=F,R=W,M=Oi(d,R);if(JHI(d,V,M.nameOrCtor,R,M.key))break a}while(W&&(h=h.nextSibling))}h=null}h||(F==="#text"?(E=Ti.createTextNode(""),X0b(E,"#text",null),F=E):(h=Ti,d=bu,typeof F==="function"?h=new F:h=(d=F==="svg"?"http://www.w3.org/2000/svg":F==="math"?"http://www.w3.org/1998/Math/MathML":d==null||Oi(d).nameOrCtor==="foreignObject"?null:d.namespaceURI)?h.createElementNS(d,F):h.createElement(F),X0b(h,F,W),F=h,E&&F.setAttribute("nonce",E)),nd.created.push(F),
h=F);E=h;if(E!==iu){if(apo.indexOf(E)>=0)for(F=bu,W=E.nextSibling,h=iu;h!==null&&h!==E;)d=h.nextSibling,F.insertBefore(h,W),h=d;else bu.insertBefore(E,iu);iu=E}};
OMo=function(F,W,E){fpr(F,W,E);bu=iu;iu=null;return bu};
bMI=function(){PYk(null);iu=bu;bu=bu.parentNode};
oy=function(){iu=bu.lastChild};
yHI=function(F,W){W=W===void 0?{}:W;var E=W.matches===void 0?HMb:W.matches;return function(h,d,V){var R=nd,M=Ti,g=apo,t=Gi,C=uu,B=iu,I=bu,x=JHI;Ti=h.ownerDocument;nd=new lpW(h);JHI=E;Gi=[];uu=[];iu=null;var A=bu=h.parentNode,X,P=n7Y.call(h);if((X=P.nodeType===11||P.nodeType===9?P.activeElement:null)&&h.contains(X)){for(P=[];X!==A;)P.push(X),X=X.parentNode||(A?X.host:null);A=P}else A=[];apo=A;try{return F(h,d,V)}finally{h=nd,Se&&h.deleted.length>0&&Se(h.deleted),Ti=M,nd=R,JHI=x,Gi=t,uu=C,iu=B,bu=I,
apo=g}}};
jrW=function(F,W,E,h){pd.push($1n);pd.push(F);pd.push(W);pd.push(E);pd.push(h)};
rHr=function(F,W,E){var h=uu;W=W._attrsArr||(W._attrsArr=D1b(h.length));for(var d=!W.length||!1,V=0;V<h.length;V+=2){var R=h[V];if(d)W[V]=R;else if(W[V]!==R)break;var M=h[V+1];if(d||W[V+1]!==M)W[V+1]=M,jrW(F,R,M,E)}if(V<h.length||V<W.length){for(V=d=V;V<W.length;V+=2)m6[W[V]]=W[V+1];for(V=d;V<h.length;V+=2)d=h[V],R=h[V+1],m6[d]!==R&&jrW(F,d,R,E),W[V]=d,W[V+1]=R,delete m6[d];ay(W,h.length);for(var g in m6)jrW(F,g,void 0,E),delete m6[g]}F=iMo;iMo=E=pd.length;for(g=F;g<E;g+=5)(0,pd[g])(pd[g+1],pd[g+
2],pd[g+3],pd[g+4]);iMo=F;ay(pd,F);ay(h,0)};
Kd=function(F){fpr("#text",null);var W=iu;var E=Oi(W);if(E.text!==F){E=E.text=F;for(var h=1;h<arguments.length;h+=1)E=(0,arguments[h])(E);W.data!==E&&(W.data=E)}};
uHr=function(F,W,E){if(E===!1&&TeR.has(W))x1k(F,W,null);else if(W!=="idomKey"&&W!=="skip"&&W!=="skipchildren"&&W!=="children"&&W!=="el"){if(W.startsWith("on"))if(W[2]===":"){if(E===void 0||E===null){var h;(h=Ei.handleError)==null||h.call.apply(h,[Ei].concat(_.x9(Jz(Error("Wb`"+W),F.tagName))));F[W]=void 0;return}if(typeof E!=="object"||E===null)throw Error("Xb`"+W+"`"+typeof E);if(typeof E.getFn!=="function")throw Error("Yb`"+W+"`"+Object.keys(E));var d=E.getFn(0),V=W.slice(3);if((h=Az())&&F["on"+
V]===void 0)F.addEventListener(V,d),_.$p(function(){return void F.removeEventListener(V,d)});
else if(h||!o7e.includes(V))F["on"+V]=d}else{GXk(F,W,E);return}else if(W.startsWith("data-")&&typeof E==="string")try{E=Ymn(E)}catch(R){E="zSoyz"}typeof E!=="function"||F._disposeEffects!=null?(Ei.enableAttributeSanitization&&(E=Ipn(F.tagName,W,E)),W==="style"?w0R(F,W,E):W.startsWith("prop:")?(W=W.slice(5),F[W]=E):GXk(F,W,E)):(F._signalProps||(F._signalProps=[]),F._signalValues||(F._signalValues=[]),F._signalProps.push(W))}};
Smr=function(F,W,E){E=(E===void 0?{}:E).isReactive;if(W==null?0:W.el){var h=W.el;if(typeof h==="function")h(F);else{var d;(d=h.onRender)==null||d.call(h,F);F._disposeRef||(F._disposeRef=function(){var V;(V=h.onUnmount)==null||V.call(h);delete F._disposeRef},E&&_.$p(function(){var V;
return void((V=F._disposeRef)==null?void 0:V.call(F))}))}}};
p0R=function(F){return hz(F)&&Fk in F};
m1k=function(F){return p0R(F)?F[Fk].flattened:F};
KFI=function(F,W){var E=_.Dd.apply(2,arguments),h;W=(h=W)!=null?h:{};h={};return h.type=F,h.props=W,h.children=E,h[WQ]=!0,h};
_.EG=function(F){return F.children};
h8=function(F){var W=FRw!==KFI;FRw=F?WRo:KFI;return W};
NO=function(F){return _.NU(F)?"nodeType"in F:!1};
Vn=function(){return document.createTextNode("")};
UG=function(F){F=document.createTextNode(String(F));F._isSignalTextNode=!0;return F};
Eto=function(F){var W=document.createElement("div");if(!(F instanceof qi)){if(F.contentKind!==RW)throw Error("Ub");F=$w(F.toString())}_.yK(W,F);F=_.U(W.childNodes);for(var E=F.next();!E.done;E=F.next())E.value._isSafeOrSanitizedHtmlNode=!0;return W};
eu=function(F){F=typeof F;return F==="string"||F==="number"||F==="boolean"};
hyr=function(F){return F instanceof UW||zy(F)||"function"==typeof _.rU&&F instanceof _.rU||!1};
dyw=function(F,W){var E=F.parentElement;if(!E)return W;E.replaceChild(W,F);return W};
N3n=function(F,W){var E=F[0].parentElement;if(E)if(F[0].previousSibling||F[F.length-1].nextSibling){E.insertBefore(W,F[0]);for(var h=F.length-1;h>=0;h--)E.removeChild(F[h])}else E.textContent="",E.appendChild(W);return W};
Vhk=function(F,W){if(F[0].parentElement)for(var E=F[0].parentElement,h=W.length,d=F.length,V=h,R=0,M=0,g=F[d-1].nextSibling,t=null;R<d||M<V;)if(F[R]===W[M])R++,M++;else{for(;F[d-1]===W[V-1];)d--,V--;if(d===R)for(var C=V<h?M?W[M-1].nextSibling:W[V-M]:g;M<V;){var B=W[M++];E.insertBefore(B,C)}else if(V===M)for(;R<d;)C=F[R],t&&t.has(C)||E.removeChild(C),R++;else if(F[R]===W[V-1]&&W[M]===F[d-1])C=F[--d].nextSibling,E.insertBefore(W[M++],F[R++].nextSibling),E.insertBefore(W[--V],C),F[d]=W[V];else{if(!t)for(t=
new Map,C=M;C<V;)t.set(W[C],C++);C=t.get(F[R]);if(C==null)E.removeChild(F[R]),R++;else if(M<C&&C<V){B=R;for(var I=1,x=void 0;++B<d&&B<V&&(x=t.get(F[B]))!=null&&x===C+I;)I++;if(I>C-M)for(B=F[R];M<C;)E.insertBefore(W[M++],B);else E.replaceChild(W[M++],F[R++])}else R++}}return W};
Ryr=function(F){if(Array.isArray(F)){if(F.length>1)throw Error("gc`"+F.length+"`"+F.map(UyR).join(", "));F=F[0]}if(F==null)return null;if(!(F instanceof _.fu)){var W,E;if((W=window)==null?0:(E=W.trustedTypes)==null?0:E.isScript(F))throw Error("fc");if(String(F).trim().length===0)return null;throw Error("hc`"+UyR(F));}return F};
eyo=function(F){if(Array.isArray(F)){if(F.length>1)throw Error("ic`"+F.length+"`"+F.map(UyR).join(", "));F=F[0]}if(F==null)return null;if(!AWe(F)){if(String(F).trim().length===0)return null;throw Error("jc`"+UyR(F));}return F};
UyR=function(F){return"("+typeof F+") "+(F!=null&&typeof F==="object"?F.constructor.name:typeof F)+" "+F};
go=function(F,W){function E(){d=!1;W.isControlFlowComponent&&cX++;var V=h[0],R=h[Fk].flattened,M=h8(!0);try{var g=F(),t=Mhn(V,g,h);Array.isArray(t)||(h[Fk].flattened=[t]);var C=h[Fk].flattened;if(R&&(!Array.isArray(R)||R.length!==0)){var B=Array.isArray(R)?R[0]:R,I=B[MO],x=B._disposeEffects;B._disposeEffects=void 0;B=Array.isArray(C)?C[0]:C;B[MO]=I;B[MO]&&(B[MO].numNodes=B===C?1:C.length);B._disposeEffects=x}h[0]=t;W.isControlFlowComponent&&m0r(!1)}catch(A){throw W.isControlFlowComponent&&m0r(!0),
A;}finally{h8(M)}}
W=W===void 0?{}:W;var h=gto(),d=!0;_.HX(function(){(Q_S==null?0:Q_S.logger)&&!d?Q_S.logger.logGraft(h[0],E):E()},W.debugName);
return h};
Mhn=function(F,W,E){for(;typeof W==="function";)W=W();if(W!=null&&W[WQ]){var h,d,V;(V=Ei.handleError)==null||V.call.apply(V,[Ei].concat(_.x9(Jz(Error("kc`"+((h=W.type)==null?void 0:h.TAG_NAME)),(d=W.type)==null?void 0:d.TAG_NAME))))}if(F==null)return W==null?Vn():eu(W)?UG(W):hyr(W)?UG(W.toString()):NO(W)?W:W.length===0?Vn():zyS(W,E);if(NO(F)){if(W==null)return dyw(F,Vn());if(eu(W))return thr(F,W);if(hyr(W))return thr(F,W.toString());if(NO(W))return dyw(F,W);if(W.length===0)return dyw(F,Vn());W=zyS(W,
E);Vhk([F],E[Fk].flattened);return W}F=Qn(F);if(W==null)return N3n(F,Vn());if(eu(W))return N3n(F,UG(W));if(hyr(W))return N3n(F,UG(W.toString()));if(NO(W))return Vhk(F,[W])[0];if(W.length===0)return N3n(F,Vn());W=zyS(W,E);Vhk(F,E[Fk].flattened);return W};
thr=function(F,W){F.nodeType===Node.TEXT_NODE?F.textContent!==String(W)&&(F.textContent=String(W)):F=dyw(F,UG(W));return F};
Qn=function(F,W,E){return CfS(F,W!=null?W:[],E===void 0?!1:E)};
zyS=function(F,W){var E=Qn(F,void 0,!0);if(E.length===0)return Vn();W[Fk].flattened=E;return F};
CfS=function(F,W,E,h,d){W=W===void 0?[]:W;E=E===void 0?!1:E;d=d===void 0?-1:d;if(F==null)return W;if(F instanceof zk)return F=F.render(),CfS(F,W,E,h,d);if(NO(W)&&W.nodeType===Node.ELEMENT_NODE)switch(W.tagName){case "SCRIPT":E=Ryr(F);E!==null&&_.li(W,E);return;case "STYLE":E=eyo(F);E!==null&&(W.textContent=_.sKr(E));return}eu(F)&&(F=UG(F),h&&E&&(h[d]=F));if(F!=null&&F.contentKind===RW||F instanceof qi){E=Eto(F);E=Array.from(E.childNodes);E=_.U(E);for(F=E.next();!F.done;F=E.next())B3o(W,F.value);return W}hyr(F)&&
(F=UG(F.toString()),h&&E&&(h[d]=F));if(NO(F))return B3o(W,F);if(Array.isArray(F)){for(var V=0;V<F.length;V++)CfS(F[V],W,E,F,V);return W}if(typeof F==="function"){F=go(F,{debugName:"qmF2ne"})[0];if(Array.isArray(F)){E=_.U(F);for(F=E.next();!F.done;F=E.next())B3o(W,F.value);return W}h&&E&&(h[d]=F);return B3o(W,F)}if(F!=null&&F[WQ]){h=h8(!0);d=FRw;try{V=d.apply(null,[F.type,F.props].concat(_.x9(F.children)))}finally{h8(h)}return CfS(V,W,E)}var R;(R=Ei.handleError)==null||R.call.apply(R,[Ei].concat(_.x9(Jz(Error("lc")))));
return W};
gto=function(F){var W={};W=Object.assign([],(W[Fk]={flattened:[]},W));if(!F)return W;W[0]=zyS(F,W);return W};
B3o=function(F,W){Array.isArray(F)?F.push(W):F.appendChild(W);return F};
t8=function(F){if(!Ei.enableLazyTsx)return F;if(Array.isArray(F)){for(var W=0;W<F.length;W++)F[W]=t8(F[W]);return F}return F instanceof zk?(F=F.render(),t8(F)):F};
I0k=function(F,W){var E,h,d=Ken(F),V=function(x){h=x;x=h8(!0);var A=N6(CW);mOb("render",d);try{E=t8(F(W))}finally{K0I("render",d),N6(A),h8(x)}};
V=Ei.enableContextPerComponent?WeS(V,d):Zn(V,Ei.alwaysTrackContexts||!!ug);hxY(h);if(!W.renderedFromIdom){var R=SS(h);try{return vtn(F,W,E),E}finally{SS(R)}}!p0R(E)&&Array.isArray(E)&&(E=gto(E));var M=m1k(E);R=Array.isArray(M)?M[0]:M;var g=!1;if(R){var t,C=(t=W==null?void 0:W.idomKey)!=null?t:F;t=M!==R;R._disposeEffects=V;var B=R[MO]||{},I=p0R(E)?E:B.sourceDynamicRange;Object.assign(B,{key:C,numNodes:t?M.length:1,context:h,higherOrder:!!R[MO],sourceDynamicRange:I});R[MO]=B}else g=!0;(function(){var x=
SS(h);try{vtn(F,W,M)}finally{SS(x)}})();
g&&V();return E};
cVI=function(F){var W={},E;for(E in F)W={prev$jscomp$23:void 0,next$jscomp$32:void 0},W.prev$jscomp$23=vQ[E],W.next$jscomp$32=F[E],vQ[E]=function(h){return function(){var d=_.Dd.apply(0,arguments);h.prev$jscomp$23.apply(null,_.x9(d));h.next$jscomp$32.apply(null,_.x9(d))}}(W)};
Dyr=function(){if(Az())throw Error("mc");return IW};
xyn=function(F,W){if(!F.__unmounted&&W){F.__unmounted=!0;try{F.didUnmount()}catch(d){var E,h;(h=Ei.handleError)==null||h.call.apply(h,[Ei].concat(_.x9(Jz(d,(E=F.JSC$8170___type)==null?void 0:E.TAG_NAME))))}vQ.didUnmount(F);F.el=null;W.__instance&&delete W.__instance}};
AVR=function(F,W,E){F._signalProps!=null&&F._disposeEffects==null&&((E===void 0?0:E)?F._disposeEffects=Zn(function(){return void k5G(F,W)},Ei.alwaysTrackContexts||!!ug):k5G(F,W))};
k5G=function(F,W){_.HX(function(){for(var E=F._signalProps,h=F._signalValues,d=0;d<E.length;d++){var V=E[d],R=W[V]();h[d]!==R&&(h[d]=R,uHr(F,V,R))}},"e3YVbb")};
s_W=function(F,W,E){var h,d=[];F._disposeEffects=Zn(function(){_.HX(function(){var V=E();if(V===null||V===void 0)V="";if(eu(V)||V===null)h!=null||(h=document.createTextNode("")),h.parentNode!==F&&(h._isSignalTextNode=!0,F.insertBefore(h,W)),h.textContent=String(V);else if(V!=null&&V.contentKind===RW||V instanceof qi){for(var R=d.length>0?d[d.length-1].nextSibling:W,M=_.U(d),g=M.next();!g.done;g=M.next())F.removeChild(g.value);V=Eto(V);d=Array.from(V.childNodes);V=_.U(d);for(M=V.next();!M.done;M=V.next())F.insertBefore(M.value,
R)}else throw g=(M=(R=xp)==null?void 0:R.name)!=null?M:"unknown",Error("bc`"+g+"`"+typeof V);},"VvDgC")},Ei.alwaysTrackContexts||!!ug)};
$yY=function(F,W){var E=_.Dd.apply(2,arguments);W!=null||(W={});return!Ei.enableLazyTsx||xp!=null&&!Az()?LRW(F,W,E):new qBr(F,W,E)};
LRW=function(F,W,E){if(F===_.EG)return E;if(typeof F==="function"){xp&&!Az()&&(W.renderedFromIdom=!0);var h=function(){var V=Znw(F,W,E);if(V)return V;E.length>0&&(W.children=E.length===1?E[0]:E);if(F.componentType===kp){var R;WeS(function(){var M=W;if(F.componentType!==kp)R=!1;else{M||(M={});var g=new cQ(M,F),t=N6(CW);try{var C=g.render(M)}finally{N6(t)}C instanceof HTMLElement?(C.__instance=g,g.el=C,g.JSC$8170___type=F,F.TAG_NAME=C.tagName.toLowerCase(),vQ.didPatch(g),R=C):R=C}},F.name);
if(R)return R}return I0k(F,W)};
return Ei.enableContextBasedComponentStacks?h():FFw({component:F,debugInstance:W.debugInstance,fn:h})}h=Xcr(F,W);for(var d in W)uHr(h,d,W[d]);AVR(h,W);Qn(E,h);Smr(h,W,{isReactive:!0});HnI(h,W);return h};
Xcr=function(F,W){F=(PfW.has(F.toLowerCase())?0:JVY.has(F.startsWith("svg:")?F.replace("svg:",""):F))?document.createElementNS("http://www.w3.org/2000/svg",F.startsWith("svg:")?F.replace("svg:",""):F):a0Y(F,W)||document.createElement(F);F[f0r]=!0;return F};
Onb=function(F){if(F){var W;(W=F._disposeRef)==null||W.call(F);var E;(E=F._disposeEffects)==null||E.call(F);F.__instance&&F.__instance instanceof D4&&(W=F.__instance,xyn(W,F),W instanceof cQ&&W.disposeEffects());for(W=0;W<F.childNodes.length;W++)Onb(F.childNodes[W])}};
l0e=function(F){bnW.push(F)===1&&requestAnimationFrame(function(){setTimeout(function(){var W=[].concat(_.x9(bnW));bnW=[];W=_.U(W);for(var E=W.next();!E.done;E=W.next()){E=E.value;try{for(var h=0;h<E.length;h++)Onb(E[h])}catch(d){h=E=void 0,(h=(E=Ei).handleError)==null||h.call.apply(h,[E].concat(_.x9(Jz(d))))}}})})};
_.z=function(F,W){return FRw.apply(null,[F,W].concat(_.x9(_.Dd.apply(2,arguments))))};
yVb=function(){var F=document.body.firstElementChild;window.ng||F.__ngContext__||(F.__ngContext__={},F.setAttribute("ng-version","0.0.0-PLACEHOLDER"),window.ng=ntW)};
_.v=function(F){var W=F.cond;if(W===void 0)return F.else&&F.else();var E=_.vX(function(){return!!W()},void 0,"y0Xknf"),h=function(){var d=W();
if(!d){var V;(V=Ei.handleError)==null||V.call.apply(V,[Ei].concat(_.x9(Jz(j_k.nonNullableCondIsNull()))))}return d};
return go(function(){var d=E(),V;Zn(function(){var R=N6(CW);try{V=t8(d?F.then(h):F.else&&F.else())}finally{N6(R)}},!0);
return V},{debugName:F.debugInstance,
isControlFlowComponent:!0})};
inY=function(F){return _.v(F)};
_.xF=function(F){return F.keyBy==="INDEX"?rVY(F):T3e(F)};
otb=function(F){F=_.U(F);for(var W=F.next();!W.done;W=F.next()){var E=void 0;(E=W.value)==null||E()}};
T3e=function(F){var W=F.keyBy===void 0||F.keyBy==="REFERENCE",E=W?function(C){return C}:F.keyBy,h=[],d=[],V=[],R=[],M=[],g=[],t=!0;
_.$p(function(){otb(R)});
return go(function(){var C=F.each(),B=C.length;if(B===0){if(h.length===0&&!t)return V;otb(R);h=C;d=[];for(C=0;C<h.length;C++)d.push(E(h[C]));V=[];R=[];M=[];g=[];F.fallback&&(R[0]=G5e(function(){V[0]=t8(F.fallback())}));
t=!1;return V}for(var I=new YBw,x=h.length-1;x>=0;x--)I.push(d[x],x);x=Array(B);for(var A=Array(B),X=Array(B),P=Array(B),b=Array(W?0:B),l={i$jscomp$485:0};l.i$jscomp$485<B;l={i$jscomp$485:l.i$jscomp$485,item$jscomp$103:void 0,key$jscomp$523:void 0},l.i$jscomp$485++){l.item$jscomp$103=C[l.i$jscomp$485];l.key$jscomp$523=E(l.item$jscomp$103);var w=I.pop(l.key$jscomp$523);w!=null?(X[l.i$jscomp$485]=V[w],A[l.i$jscomp$485]=d[w],x[l.i$jscomp$485]=R[w],P[l.i$jscomp$485]=M[w],W||(b[l.i$jscomp$485]=g[w]),Iy(function(G){return function(){P[G.i$jscomp$485](G.i$jscomp$485);
if(!W)b[G.i$jscomp$485](G.item$jscomp$103)}}(l)),delete R[w]):x[l.i$jscomp$485]=G5e(function(G){return function(){var hr=_.U(_.g$(G.i$jscomp$485,void 0,"g4fKif")),p=hr.next().value;
hr=hr.next().value;P[G.i$jscomp$485]=hr;A[G.i$jscomp$485]=G.key$jscomp$523;if(W)X[G.i$jscomp$485]=t8(F.children(G.item$jscomp$103,p));else{var UY=_.U(_.g$(G.item$jscomp$103,void 0,"Ile0Kc"));hr=UY.next().value;UY=UY.next().value;b[G.i$jscomp$485]=UY;X[G.i$jscomp$485]=t8(F.children(hr,p))}}}(l))}otb(R);
h=C;d=A;V=X;R=x;M=P;g=b;t=!1;return X},{debugName:F.debugInstance,
isControlFlowComponent:!0})};
rVY=function(F){var W=[],E=[],h=[],d=[],V=!1;_.$p(function(){for(var R=_.U(d),M=R.next();!M.done;M=R.next())M=M.value,M()});
return go(function(){var R=F.each();V&&R.length>0&&(d.pop()(),W.pop(),V=!1);for(var M=Array(R.length),g={i$jscomp$486:0};g.i$jscomp$486<R.length;g={i$jscomp$486:g.i$jscomp$486},g.i$jscomp$486++)if(g.i$jscomp$486<W.length)W[g.i$jscomp$486]!==R[g.i$jscomp$486]&&(Iy(function(C){return function(){return void E[C.i$jscomp$486](R[C.i$jscomp$486])}}(g)),W[g.i$jscomp$486]=R[g.i$jscomp$486]),M[g.i$jscomp$486]=h[g.i$jscomp$486];
else{var t=G5e(function(C){return function(){W[C.i$jscomp$486]=R[C.i$jscomp$486];var B=_.U(_.g$(R[C.i$jscomp$486],void 0,"QVJXFd")),I=B.next().value;B=B.next().value;E[C.i$jscomp$486]=B;M[C.i$jscomp$486]=t8(F.children(I,C.i$jscomp$486))}}(g));
d[g.i$jscomp$486]=t}for(;W.length>R.length;)W.pop(),d.pop()(),E.pop();R.length===0&&!V&&F.fallback&&(g=G5e(function(){M[0]=t8(F.fallback())}),d[0]=g,V=!0);
return h=M},{debugName:F.debugInstance,
isControlFlowComponent:!0})};
G5e=function(F){var W=ug;return Zn(function(E){var h=N6(CW);try{E.parent=W,F(E)}finally{N6(h)}},!1)};
_.kF=function(F){return F};
_.A8=function(F){return{isDefault:!0,children:F.children}};
_.sG=function(F){var W=wcn(F),E=_.vX(function(){return uAb(W)},void 0,"BHmkEe");
return go(function(){var h=E(),d;Zn(function(){var V=N6(CW);try{d=t8(h())}finally{N6(V)}});
return d},{debugName:F.debugInstance,
isControlFlowComponent:!0})};
wcn=function(F){F=F.children;return Array.isArray(F)?F:[F]};
SBW=function(F){var W=F.props;F=F.getChildren()[0];return W.when?{when:W.when,children:F}:{isDefault:!0,children:F}};
uAb=function(F){var W=function(){return null};
F=_.U(F);for(var E=F.next();!E.done;E=F.next())if(E=E.value,E!=null&&E[WQ]&&(E=E.type===_.A8?{isDefault:!0,children:E.children[0]}:{when:E.props.when,children:E.children[0]}),E instanceof zk&&(E=SBW(E)),E.isDefault)W=E.children;else if(E.when())return E.children;return W};
pcI=function(F){var W=null,E;return{value:null,onRender:function(h){if(E&&h!==E){var d;(d=W)==null||d();E._disposeRef=void 0}E=h;W=F(h)||null},
onUnmount:function(){var h;(h=W)==null||h();W=null}}};
KRn=function(F){var W=Dyr();if(W==null)throw myr.PRIMITIVE_INVALID_HOOK_CALL();var E=W.hookCounter++;W.hooks||(W.hooks=[]);var h=W.hooks;h[E]||(h[E]={key:F,host:W});if(F!==h[E].key){if(W.JSC$8170___type){var d;F=(d=W.JSC$8170___type)==null?void 0:d.name}else F=W instanceof cQ?Ken(W.functionComponent):"<"+W.el.tagName.toLowerCase()+">";throw myr.OUT_OF_ORDER_HOOK_CALL(F);}return h[E]};
Frr=function(F,W){return!F||F.length!==(W==null?void 0:W.length)||F.some(function(E,h){return E!==W[h]})};
LW=function(F,W){var E=KRn("onChange"),h=Dyr();Frr(E.deps,W)&&(E.deps=W,E.pendingEffect=F,h.__syncEffects||(h.__syncEffects=[]),h.__syncEffects.push(E))};
dQG=function(F,W){var E;W!=null?E=W:E=_.qGk(document).getAppContext();E.get(Wre).JSC$25353_getEventTarget().dispatchEvent(new EOe(h_o,F,RW))};
_.qO=function(F,W){var E=E===void 0?{enableDevtools:!1}:E;var h=function(){var V=N6(CW);try{return Zn(function(){var R=_.qGk(_.qp(F)),M;var g=iWY({rootElement:{value:F},appContext:E.appContext||(R==null?void 0:(M=R.getOptionalAppContext)==null?void 0:M.call(R)),dispatcher:R});R=SS(g);g=h8(!0);cX++;try{Qn(W(),F),m0r(!1)}catch(t){throw m0r(!0),t;}finally{h8(g),SS(R)}},!1)}catch(R){throw Ei.enableContextBasedComponentStacks&&si(R),R;
}finally{N6(V)}},d=Ei.enableContextBasedComponentStacks?h():Ld(h);
F[NTb]=!0;E.legacyTriggerSoyRendererEvents&&dQG(F,E.appContext);return function(){F.textContent="";d();F[NTb]=!1}};
_.$F=function(F){if(SJG(d$)){var W;(W=Ei.handleError)==null||W.call.apply(W,[Ei].concat(_.x9(Jz(Error("ac")))))}var E=ug,h=Ei.enableContextBasedComponentStacks?void 0:xp;Promise.resolve().then(function(){if(E&&!E.isDisposed){var d=SS(E);try{Ei.enableContextBasedComponentStacks?F():Ld(function(){return void F()},h)}catch(V){throw Ei.enableContextBasedComponentStacks&&si(V),V;
}finally{SS(d)}}})};
Z4=function(F,W){LW(function(){return M6(F)},W)};
_.Xk=function(F){Az()?_.$F(function(){M6(F)}):LW(function(){return M6(F)},[])};
UQw=function(F){var W=[].concat(_.x9(F));F.length=0;F=_.U(W);for(W=F.next();!W.done;W=F.next()){W=W.value;Vnw(W);var E=W.pendingEffect;W.pendingEffect=null;if(E=E==null?void 0:E())W.pendingCleanup=E}};
Vnw=function(F){var W=F.pendingCleanup;F.pendingCleanup=null;W==null||W()};
R_r=function(F,W){if(Az())return F();var E=KRn("useMemoInternal");Frr(E.deps,W)&&(E.deps=W,E.value=F());return E.value};
HQ=function(F,W){return R_r(F,W)};
PQ=function(F){return R_r(F,[])};
e_Y=function(){var F=_.Dd.apply(0,arguments),W=PQ(function(){return F.map(function(E){return _.g$(E,void 0,"lnSD0c")})});
Z4(function(){for(var E=0;E<F.length;E++)(0,W[E][1])(F[E])},F);
return W.map(function(E){return _.U(E).next().value})};
J8=function(F){return PQ(function(){return{value:F}})};
_.aW=function(F,W){if(!F)return null;F=Object.keys(F);F=_.U(F);for(var E=F.next();!E.done;E=F.next()){E=E.value;var h=E.toLowerCase();if(h.indexOf(W,h.length-W.length)>-1)return E}return null};
_.OG=function(){var F=arguments,W=_.fW;F.length>1?W[F[0]]=F[1]:F.length===1&&Object.assign(W,F[0])};
_.b0=function(F,W){return F in _.fW?_.fW[F]:W};
_.l0=function(F,W){return!!_.b0(F,W)};
Mne=function(F){var W=_.fW.EXPERIMENT_FLAGS;return W?W[F]:void 0};
QLr=function(F){gOn.forEach(function(W){return W(F)})};
_.yn=function(F){return F&&window.yterr?function(){try{return F.apply(this,arguments)}catch(W){_.nW(W)}}:F};
_.nW=function(F){var W=_.ju("yt.logging.errors.log");W?W(F,"ERROR",void 0,void 0,void 0,void 0,void 0):(W=_.b0("ERRORS",[]),W.push([F,"ERROR",void 0,void 0,void 0,void 0,void 0]),_.OG("ERRORS",W));QLr(F)};
_.i0=function(F,W,E,h,d){var V=_.ju("yt.logging.errors.log");V?V(F,"WARNING",W,E,h,void 0,d):(V=_.b0("ERRORS",[]),V.push([F,"WARNING",W,E,h,void 0,d]),_.OG("ERRORS",V))};
tnI=function(F,W){W=F.split(W);for(var E={},h=0,d=W.length;h<d;h++){var V=W[h].split("=");if(V.length===1&&V[0]||V.length===2)try{var R=z_b(V[0]||""),M=z_b(V[1]||"");if(R in E){var g=E[R];Array.isArray(g)?_.ha(g,M):E[R]=[g,M]}else E[R]=M}catch(I){var t=I,C=V[0],B=String(tnI);t.args=[{key:C,value:V[1],query:F,method:CMo===B?"unchanged":B}];BTb.hasOwnProperty(C)||_.i0(t)}}return E};
vOW=function(F){var W=[];_.xd.forEach(F,function(E,h){var d=_.ro(h);_.Tk(Array.isArray(E)?E:[E],function(V){V==""?W.push(d):W.push(d+"="+_.ro(V))})});
return W.join("&")};
_.oW=function(F){F.charAt(0)==="?"&&(F=F.substring(1));return tnI(F,"&")};
_.Gk=function(F){return F.indexOf("?")!==-1?(F=(F||"").split("#")[0],F=F.split("?",2),_.oW(F.length>1?F[1]:F[0])):{}};
_.YF=function(F,W){return Imw(F,W||{},!0)};
ctG=function(F,W){return Imw(F,W||{},!1)};
Imw=function(F,W,E){var h=F.split("#",2);F=h[0];h=h.length>1?"#"+h[1]:"";var d=F.split("?",2);F=d[0];d=_.oW(d[1]||"");for(var V in W)if(E||!_.xd.containsKey(d,V))d[V]=W[V];return _.wo(F,d)+h};
m0=function(F){if(!W)var W=window.location.href;var E=_.u0(F)[1]||null,h=_.Su(F);return E&&h?pW(F,W):h?_.Su(W)===h&&(Number(_.u0(W)[4]||null)||null)===(Number(_.u0(F)[4]||null)||null):!0};
_.xQY=function(F){F=DQr(F);return F===null?!1:F[0]==="com"&&F[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
DQr=function(F){F=_.Su(F);return F!==null?F.split(".").reverse():null};
z_b=function(F){return F&&F.match(knI)?F:KW(F)};
_.Fd=function(F){return new Atr(F)};
_.WZ=function(){sLR||(sLR=new LrS);return sLR};
$Qo=function(F){var W=_.EJ,E,h;_.e(function(d){E=_.WZ();return(h=E.resolve(_.Fd(W)))?(F(h),d.return(Promise.resolve(h))):d.return(E.resolve(new qRI(W)).then(function(V){F(V);return V}))})};
_.c=function(F){F=hc(F);return typeof F==="string"&&F==="false"?!1:!!F};
_.dV=function(F,W){F=hc(F);return F===void 0&&W!==void 0?W:Number(F||0)};
ZXe=function(F){F=hc(F);return Array.isArray(F)?_.AN(F,function(W){return Number(W||0)}):[Number(F||0)]};
_.N0=function(F){F=hc(F);return F!==void 0?String(F):""};
_.Vy=function(F){F=hc(F);return Array.isArray(F)?_.AN(F,function(W){return String(W||"")}):[String(F||"")]};
Xsw=function(){return _.b0("EXPERIMENTS_TOKEN","")};
hc=function(F){return _.b0("EXPERIMENT_FLAGS",{})[F]};
HXW=function(){for(var F=[],W=_.b0("EXPERIMENTS_FORCED_FLAGS",{}),E=_.U(Object.keys(W)),h=E.next();!h.done;h=E.next())h=h.value,F.push({key:h,value:String(W[h])});E=_.b0("EXPERIMENT_FLAGS",{});h=_.U(Object.keys(E));for(var d=h.next();!d.done;d=h.next())d=d.value,d.startsWith("force_")&&W[d]===void 0&&F.push({key:d,value:String(E[d])});return F};
Jto=function(){if(!PMo)return null;var F=PMo();return"open"in F?F:null};
_.amI=function(F){switch(_.UJ(F)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
_.UJ=function(F){return F&&"status"in F?F.status:-1};
_.RA=function(F,W){typeof F==="function"&&(F=_.yn(F));return window.setTimeout(F,W)};
_.e5=function(F,W){typeof F==="function"&&(F=_.yn(F));return window.setInterval(F,W)};
_.M0=function(F){window.clearTimeout(F)};
OXW=function(F){F=_.Gk(F);for(var W=_.U(fmo),E=W.next();!E.done;E=W.next())if(F[E.value]!==void 0)return!0;return!1};
nOr=function(F,W,E,h,d,V,R,M){E=E===void 0?"GET":E;h=h===void 0?"":h;M=M===void 0?!1:M;var g=Jto();if(!g)return null;var t=function(){(g&&"readyState"in g?g.readyState:0)===4&&W&&_.yn(W)(g)};
"onloadend"in g?g.addEventListener("loadend",t,!1):g.onreadystatechange=t;_.c("debug_forward_web_query_parameters")&&(F=bXb(F,window.location.search));g.open(E,F,!0);V&&(g.responseType=V);R&&(g.withCredentials=!0);E=E==="POST"&&(window.FormData===void 0||!(h instanceof FormData));if(d=lmk(F,d))for(var C in d)g.setRequestHeader(C,d[C]),"content-type"===C.toLowerCase()&&(E=!1);E&&g.setRequestHeader("Content-Type","application/x-www-form-urlencoded");if(M&&"setAttributionReporting"in XMLHttpRequest.prototype){F=
{eventSourceEligible:!0,triggerEligible:!1};try{g.setAttributionReporting(F)}catch(B){_.i0(B)}}g.send(h);return g};
lmk=function(F,W){W=W===void 0?{}:W;var E=m0(F),h=_.b0("INNERTUBE_CLIENT_NAME"),d=_.c("web_ajax_ignore_global_headers_if_set"),V;for(V in yte){var R=_.b0(yte[V]),M=V==="X-Goog-AuthUser"||V==="X-Goog-PageId";V!=="X-Goog-Visitor-Id"||R||(R=_.b0("VISITOR_DATA"));var g;if(!(g=!R)){if(!(g=E||(_.Su(F)?!1:!0))){g=F;var t;if(t=_.c("add_auth_headers_to_remarketing_google_dot_com_ping")&&V==="Authorization"&&(h==="TVHTML5"||h==="TVHTML5_UNPLUGGED"||h==="TVHTML5_SIMPLY"))t=DQr(g),t=t===null?!1:t[1]==="google"?
!0:t[2]==="google"?t[0]==="au"&&t[1]==="com"?!0:t[0]==="uk"&&t[1]==="co"?!0:!1:!1;t&&(g=_.gV(g)||"",g=g.split("/"),g="/"+(g.length>1?g[1]:""),t=g==="/pagead");g=t?!0:!1}g=!g}g||d&&W[V]!==void 0||h==="TVHTML5_UNPLUGGED"&&M||(W[V]=R)}"X-Goog-EOM-Visitor-Id"in W&&"X-Goog-Visitor-Id"in W&&delete W["X-Goog-Visitor-Id"];if(E||!_.Su(F))W["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(E||!_.Su(F)){try{var C=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(B){}C&&(W["X-YouTube-Time-Zone"]=
C)}document.location.hostname.endsWith("youtubeeducation.com")||!E&&_.Su(F)||(W["X-YouTube-Ad-Signals"]=vOW(jLo()));return W};
_.iXY=function(F,W){var E=_.Su(F);_.c("debug_handle_relative_url_for_query_forward_killswitch")||!E&&m0(F)&&(E=document.location.hostname);var h=_.gV(F);h=(E=E&&(E.endsWith("youtube.com")||E.endsWith("youtube-nocookie.com")))&&h&&h.startsWith("/api/");if(!E||h)return F;var d=_.oW(W),V={};_.Tk(fmo,function(R){d[R]&&(V[R]=d[R])});
return ctG(F,V)};
rtk=function(F,W){W.method="POST";W.postParams||(W.postParams={});return _.Qy(F,W)};
TTI=function(F,W){var E=_.b0("XSRF_FIELD_NAME"),h;W.headers&&(h=W.headers["Content-Type"]);return!W.excludeXsrf&&(!_.Su(F)||W.withCredentials||_.Su(F)===document.location.hostname)&&W.method==="POST"&&(!h||h==="application/x-www-form-urlencoded")&&!(W.postParams&&W.postParams[E])};
_.Qy=function(F,W){var E=W.format||"JSON";F=oOo(F,W);var h=GnY(F,W),d=!1,V=YRY(F,function(g){if(!d){d=!0;M&&_.M0(M);var t=_.amI(g),C=null,B=400<=g.status&&g.status<500,I=500<=g.status&&g.status<600;if(t||B||I)C=wsr(F,E,g,W.convertToSafeHtml);t&&(t=uVI(E,g,C));C=C||{};B=W.context||_.EY;t?W.onSuccess&&W.onSuccess.call(B,g,C):W.onError&&W.onError.call(B,g,C);W.onFinish&&W.onFinish.call(B,g,C)}},W.method,h,W.headers,W.responseType,W.withCredentials);
h=W.timeout||0;if(W.onTimeout&&h>0){var R=W.onTimeout;var M=_.RA(function(){d||(d=!0,V.abort(),_.M0(M),R.call(W.context||_.EY,V))},h)}return V};
oOo=function(F,W){W.includeDomain&&(F=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+F);var E=_.b0("XSRF_FIELD_NAME");if(W=W.urlParams)W[E]&&delete W[E],F=_.YF(F,W);return F};
GnY=function(F,W){var E=_.b0("XSRF_FIELD_NAME"),h=_.b0("XSRF_TOKEN"),d=W.postBody||"",V=W.postParams;TTI(F,W)&&(V||(V={}),V[E]=h);(_.c("ajax_parse_query_data_only_when_filled")&&V&&Object.keys(V).length>0||V)&&typeof d==="string"&&(d=_.oW(d),_.xd.extend(d,V),d=W.postBodyFormat&&W.postBodyFormat==="JSON"?JSON.stringify(d):_.zC(d));V=d||V&&!_.xd.isEmpty(V);!SRb&&V&&W.method!=="POST"&&(SRb=!0,_.nW(Error("Gc")));return d};
wsr=function(F,W,E,h){var d=null;switch(W){case "JSON":try{var V=E.responseText}catch(R){throw h=Error("Hc"),h.params=F,_.i0(h),R;}F=E.getResponseHeader("Content-Type")||"";V&&F.indexOf("json")>=0&&(V.substring(0,5)===")]}'\n"&&(V=V.substring(5)),d=JSON.parse(V));break;case "XML":if(F=(F=E.responseXML)?psI(F):null)d={},_.Tk(F.getElementsByTagName("*"),function(R){d[R.tagName]=mQY(R)})}h&&KrR(d);
return d};
KrR=function(F){if(_.NU(F))for(var W in F)W==="html_content"||ek(W,"_html")?F[W]=$w(F[W]):KrR(F[W])};
uVI=function(F,W,E){if(W&&W.status===204)return!0;switch(F){case "JSON":return!!E;case "XML":return Number(E&&E.return_code)===0;case "RAW":return!0;default:return!!E}};
psI=function(F){return F?(F=("responseXML"in F?F.responseXML:F).getElementsByTagName("root"))&&F.length>0?F[0]:null:null};
mQY=function(F){var W="";_.Tk(F.childNodes,function(E){W+=E.nodeValue});
return W};
F1Y=function(F){if(F.name==="JavaException")return!0;F=F.stack;return F.includes("chrome://")||F.includes("chrome-extension://")||F.includes("moz-extension://")};
W1r=function(F){if(!F.stack)return!0;var W=!F.stack.includes("\n");return W&&F.stack.includes("ErrorType: ")||W&&F.stack.includes("Anonymous function (Unknown script")||F.stack.toLowerCase()==="not available"?!0:!1};
_.tc=function(F){_.xj.call(this);this.JSC$8348_key_=1;this.pendingKeys_=[];this.publishDepth_=0;this.subscriptions_=[];this.topics_={};this.async_=!!F};
hvI=function(F,W){var E=F.length,h=0,d=function(){return F.charCodeAt(h++)};
do{var V=Exr(d);if(V===Infinity)break;var R=V>>3;switch(V&7){case 0:V=Exr(d);if(R===W)return V;break;case 1:if(R===W)return;h+=8;break;case 2:V=Exr(d);if(R===W)return F.substr(h,V);h+=V;break;case 5:if(R===W)return;h+=4;break;default:return}}while(h<E)};
Exr=function(F){var W=F(),E=W&127;if(W<128)return E;W=F();E|=(W&127)<<7;if(W<128)return E;W=F();E|=(W&127)<<14;if(W<128)return E;W=F();return W<128?E|(W&127)<<21:Infinity};
N8G=function(F,W,E,h){if(F)if(Array.isArray(F)){var d=h;for(h=0;h<F.length&&!(F[h]&&(d+=dWr(h,F[h],W,E),d>500));h++);h=d}else if(typeof F==="object")for(d in F){if(F[d]){var V=d;var R=F[d],M=W,g=E;V=typeof R!=="string"||V!=="clickTrackingParams"&&V!=="trackingParams"?0:(R=hvI(atob(R.replace(/-/g,"+").replace(/_/g,"/")),2))?dWr(V+".ve",R,M,g):0;h+=V;h+=dWr(d,F[d],W,E);if(h>500)break}}else E[W]=CU(F),h+=E[W].length;else E[W]=CU(F),h+=E[W].length;return h};
dWr=function(F,W,E,h){E+="."+F;F=CU(W);h[E]=F;return E.length+F.length};
CU=function(F){try{return(typeof F==="string"?F:String(JSON.stringify(F))).substr(0,500)}catch(W){return"unable to serialize "+typeof F+" ("+W.message+")"}};
VrY=function(F){switch(F){case "DESKTOP":return 1;case "UNKNOWN_PLATFORM":return 0;case "TV":return 2;case "GAME_CONSOLE":return 3;case "MOBILE":return 4;case "TABLET":return 5}};
_.vZ=function(F,W,E,h,d){_.BZ.set(F,W,{maxAge:E,path:"/",domain:h===void 0?"youtube.com":h,secure:d===void 0?!1:d})};
_.UWe=function(F,W,E){_.BZ.remove(F,W===void 0?"/":W,E===void 0?"youtube.com":E)};
_.IA=function(){if(_.c("embeds_web_enable_cookie_detection_fix")){if(!_.EY.navigator.cookieEnabled)return!1}else if(!_.BZ.isEnabled())return!1;if(!_.BZ.isEmpty())return!0;_.c("embeds_web_enable_cookie_detection_fix")?_.BZ.set("TESTCOOKIESENABLED","1",{maxAge:60,sameSite:"none",secure:!0}):_.BZ.set("TESTCOOKIESENABLED","1",{maxAge:60});if(_.BZ.get("TESTCOOKIESENABLED")!=="1")return!1;_.BZ.remove("TESTCOOKIESENABLED");return!0};
RvG=function(){var F=_.EY.navigator;return F?F.connection:void 0};
evb=function(){if(typeof Intl!=="undefined")try{return(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(F){}};
_.gxb=function(){var F=RvG();if(F){var W=Mrw[F.type||"unknown"]||"CONN_UNKNOWN";F=Mrw[F.effectiveType||"unknown"]||"CONN_UNKNOWN";W==="CONN_CELLULAR_UNKNOWN"&&F!=="CONN_UNKNOWN"&&(W=F);if(W!=="CONN_UNKNOWN")return W;if(F!=="CONN_UNKNOWN")return F}};
zvW=function(){var F=RvG();if(F!=null&&F.effectiveType)return QkR.hasOwnProperty(F.effectiveType)?QkR[F.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"};
_.DJ=function(){try{return _.cZ(),!0}catch(F){return!1}};
_.cZ=function(F){if(_.b0("DATASYNC_ID")!==void 0)return _.b0("DATASYNC_ID");throw new _.xC("Datasync ID not set",F===void 0?"unknown":F);};
_.kC=function(F){this.mechanism=F};
sJ=function(F){this.mechanism=F};
LU=function(F){this.storage_=F;this.cachedIsStorageAvailable_=null};
trn=function(){var F=null;try{F=_.EY.localStorage||null}catch(W){}LU.call(this,F)};
CIG=function(){var F=null;try{F=_.EY.sessionStorage||null}catch(W){}LU.call(this,F)};
q0=function(F,W){this.mechanism_=F;this.JSC$8450_prefix_=W+"::"};
_.B8w=function(F){var W=new trn;return W.isAvailable()?F?new q0(W,F):W:null};
_.vxo=function(F){var W=new CIG;return W.isAvailable()?F?new q0(W,F):W:null};
cRR=function(){var F;return(F=IUY())==null?void 0:F.get("LAST_RESULT_ENTRY_KEY",!0)};
_.Xd=function(F){DWR||(_.$C?_.$C.logError(F):(_.ZJ.push({type:"ERROR",payload:F}),_.ZJ.length>10&&_.ZJ.shift()))};
HZ=function(F,W){DWR||(_.$C?_.$C.logEvent(F,W):(_.ZJ.push({type:"EVENT",eventType:F,payload:W}),_.ZJ.length>10&&_.ZJ.shift()))};
PZ=function(F){if(F.indexOf(":")>=0)throw Error("Oc");};
Jc=function(F){return F.substr(0,F.indexOf(":"))||F};
ARr=function(){return(xWw||kMr)&&aA("applewebkit")&&!aA("version")&&(!aA("safari")||aA("gsa/"))};
aA=function(F){var W=_.BG();return W?W.toLowerCase().indexOf(F)>=0:!1};
qgY=function(F,W,E,h){W=Jc(W);var d=F instanceof Error?F:Error("Pc`"+F);if(d instanceof fU)return d;F={objectStoreNames:E,dbName:W,dbVersion:h};if(d.name==="QuotaExceededError")return new fU("QUOTA_EXCEEDED",F);if(_.OJ&&d.name==="UnknownError")return new fU("QUOTA_MAYBE_EXCEEDED",F);if(d instanceof skY)return new fU("MISSING_INDEX",Object.assign({},F,{objectStore:d.objectStore,index:d.index}));if(d.name==="InvalidStateError"&&L1R.some(function(V){return d.message.includes(V)}))return new fU("EXECUTE_TRANSACTION_ON_CLOSED_DB",
F);
if(d.name==="AbortError")return new fU("UNKNOWN_ABORT",F,d.message);d.args=[Object.assign({},F,{name:"IdbError",originalName:d.name})];d.level="WARNING";return d};
bd=function(F,W,E){var h=cRR();return new fU("IDB_NOT_SUPPORTED",{context:{caller:F,publicName:W,version:E,hasSucceededOnce:h==null?void 0:h.hasSucceededOnce}})};
$WS=function(F){if(!F)throw Error();throw F;};
Zgr=function(F){return F};
XfY=function(F,W,E){var h=function(){try{F.removeEventListener("success",d),F.removeEventListener("error",V)}catch(R){}},d=function(){W(F.result);
h()},V=function(){E(F.error);
h()};
F.addEventListener("success",d);F.addEventListener("error",V)};
HgG=function(F){return new Promise(function(W,E){XfY(F,W,E)})};
yy=function(F){return new ld(new nU(function(W,E){XfY(F,W,E)}))};
PIn=function(F,W){return new ld(new nU(function(E,h){var d=function(){var V=F?W(F):null;V?V.then(function(R){F=R;d()},h):E()};
d()}))};
aUr=function(F,W,E){return new Promise(function(h,d){var V=W!==void 0?self.indexedDB.open(F,W):self.indexedDB.open(F);var R=E.blocked,M=E.blocking,g=E.terminated,t=E.upgrade,C=E.closed,B,I=function(){B||(B=new j5(V.result,{closed:C}));return B};
V.addEventListener("upgradeneeded",function(x){try{if(x.newVersion===null)throw Error("Uc");if(V.transaction===null)throw Error("Vc");x.dataLoss&&x.dataLoss!=="none"&&HZ("IDB_DATA_CORRUPTED",{reason:x.dataLossMessage||"unknown reason",dbName:Jc(F)});var A=I(),X=new JRS(V.transaction);t&&t(A,function(P){return x.oldVersion<P&&x.newVersion>=P},X);
X.done.catch(function(P){d(P)})}catch(P){d(P)}});
V.addEventListener("success",function(){var x=V.result;M&&x.addEventListener("versionchange",function(){M(I())});
x.addEventListener("close",function(){HZ("IDB_UNEXPECTEDLY_CLOSED",{dbName:Jc(F),dbVersion:x.version});g&&g()});
h(I())});
V.addEventListener("error",function(){d(V.error)});
R&&V.addEventListener("blocked",function(){R()})})};
fUR=function(F,W,E){E=E===void 0?{}:E;return aUr(F,W,E)};
_.rV=function(F,W){W=W===void 0?{}:W;var E,h,d,V;return _.e(function(R){if(R.nextAddress==1)return _.Nl(R,2),E=self.indexedDB.deleteDatabase(F),h=W,(d=h.blocked)&&E.addEventListener("blocked",function(){d()}),_.Q(R,HgG(E),4);
if(R.nextAddress!=2)return _.id(R,0);V=_.Ml(R);throw qgY(V,F,"",-1);})};
bgw=function(F,W){var E;return _.e(function(h){if(h.nextAddress==1)return _.Q(h,_.TC(OgW,W),2);E=h.yieldResult;return h.return(_.oA(E,["databases"],{enableRetries:!0,mode:"readwrite"},function(d){var V=d.objectStore("databases");return V.get(F.actualName).then(function(R){if(R?F.actualName!==R.actualName||F.publicName!==R.publicName||F.userIdentifier!==R.userIdentifier:1)return V.put(F).then(function(){})})}))})};
_.GC=function(F,W){var E;return _.e(function(h){if(h.nextAddress==1)return F?_.Q(h,_.TC(OgW,W),2):h.return();E=h.yieldResult;return h.return(E.delete("databases",F))})};
_.lUI=function(F,W){var E,h;return _.e(function(d){return d.nextAddress==1?(E=[],_.Q(d,_.TC(OgW,W),2)):d.nextAddress!=3?(h=d.yieldResult,_.Q(d,_.oA(h,["databases"],{enableRetries:!0,mode:"readonly"},function(V){E.length=0;return YC(V.objectStore("databases"),{},function(R){F(R.getValue())&&E.push(R.getValue());return R.continue()})}),3)):d.return(E)})};
nxw=function(F,W){return _.lUI(function(E){return E.publicName===F&&E.userIdentifier!==void 0},W)};
igb=function(){var F,W,E,h;return _.e(function(d){switch(d.nextAddress){case 1:F=cRR();if((W=F)==null?0:W.hasSucceededOnce)return d.return(!0);var V;if(V=yRS)V=/WebKit\/([0-9]+)/.exec(_.BG()),V=!!(V&&parseInt(V[1],10)>=600);V&&(V=/WebKit\/([0-9]+)/.exec(_.BG()),V=!(V&&parseInt(V[1],10)>=602));if(V||wV)return d.return(!1);try{if(E=self,!(E.indexedDB&&E.IDBIndex&&E.IDBKeyRange&&E.IDBObjectStore))return d.return(!1)}catch(R){return d.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return d.return(!1);
_.Nl(d,2);h={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};return _.Q(d,bgw(h,jke),4);case 4:return _.Q(d,_.GC("yt-idb-test-do-not-use",jke),5);case 5:return d.return(!0);case 2:return _.Ml(d),d.return(!1)}})};
T8e=function(){if(rRr!==void 0)return rRr;DWR=!0;return rRr=igb().then(function(F){DWR=!1;var W;if((W=IUY())!=null&&W.expiringStorage_){var E;W={hasSucceededOnce:((E=cRR())==null?void 0:E.hasSucceededOnce)||F};var h;(h=IUY())==null||h.set("LAST_RESULT_ENTRY_KEY",W,2592E3,!0)}return F})};
ud=function(){return _.ju("ytglobal.idbToken_")||void 0};
_.pU=function(){var F=ud();return F?Promise.resolve(F):T8e().then(function(W){(W=W?jke:void 0)&&_.S5("ytglobal.idbToken_",W);return W})};
oxe=function(F){if(!_.DJ())throw F=new fU("AUTH_INVALID",{dbName:F}),_.Xd(F),F;var W=_.cZ();return{actualName:F+":"+W,publicName:F,userIdentifier:W}};
GMb=function(F,W,E,h){var d,V,R,M,g,t;return _.e(function(C){switch(C.nextAddress){case 1:return V=(d=Error().stack)!=null?d:"",_.Q(C,_.pU(),2);case 2:R=C.yieldResult;if(!R)throw M=bd("openDbImpl",F,W),_.c("ytidb_async_stack_killswitch")||(M.stack=M.stack+"\n"+V.substring(V.indexOf("\n")+1)),_.Xd(M),M;PZ(F);g=E?{actualName:F,publicName:F,userIdentifier:void 0}:oxe(F);_.Nl(C,3);return _.Q(C,bgw(g,R),5);case 5:return _.Q(C,fUR(g.actualName,W,h),6);case 6:return C.return(C.yieldResult);case 3:return t=
_.Ml(C),_.Nl(C,7),_.Q(C,_.GC(g.actualName,R),9);case 9:_.id(C,8);break;case 7:_.Ml(C);case 8:throw t;}})};
Ygo=function(F,W,E){E=E===void 0?{}:E;return GMb(F,W,!1,E)};
wfW=function(F,W,E){E=E===void 0?{}:E;return GMb(F,W,!0,E)};
ufr=function(F,W){W=W===void 0?{}:W;var E,h;return _.e(function(d){if(d.nextAddress==1)return _.Q(d,_.pU(),2);if(d.nextAddress!=3){E=d.yieldResult;if(!E)return d.return();PZ(F);h=oxe(F);return _.Q(d,_.rV(h.actualName,W),3)}return _.Q(d,_.GC(h.actualName,E),0)})};
SgW=function(F,W,E){F=F.map(function(h){return _.e(function(d){return d.nextAddress==1?_.Q(d,_.rV(h.actualName,W),2):_.Q(d,_.GC(h.actualName,E),0)})});
return Promise.all(F).then(function(){})};
pfn=function(F){var W=W===void 0?{}:W;var E,h;return _.e(function(d){if(d.nextAddress==1)return _.Q(d,_.pU(),2);if(d.nextAddress!=3){E=d.yieldResult;if(!E)return d.return();PZ(F);return _.Q(d,nxw(F,E),3)}h=d.yieldResult;return _.Q(d,SgW(h,W,E),0)})};
mWo=function(F,W){W=W===void 0?{}:W;var E;return _.e(function(h){if(h.nextAddress==1)return _.Q(h,_.pU(),2);if(h.nextAddress!=3){E=h.yieldResult;if(!E)return h.return();PZ(F);return _.Q(h,_.rV(F,W),3)}return _.Q(h,_.GC(F,E),0)})};
me=function(F,W){return K1k(F,W)};
WsY=function(F){return _.TC(Fse(),F)};
EbW=function(F,W,E,h){var d,V,R;return _.e(function(M){switch(M.nextAddress){case 1:return d={config:F,hashData:W,timestamp:h!==void 0?h:(0,_.KU)()},_.Q(M,WsY(E),2);case 2:return V=M.yieldResult,_.Q(M,V.clear("hotConfigStore"),3);case 3:return _.Q(M,V.put("hotConfigStore",d),4);case 4:return R=M.yieldResult,M.return(R)}})};
hsY=function(F,W,E,h,d){var V,R,M;return _.e(function(g){switch(g.nextAddress){case 1:return V={config:F,hashData:W,configData:E,timestamp:d!==void 0?d:(0,_.KU)()},_.Q(g,WsY(h),2);case 2:return R=g.yieldResult,_.Q(g,R.clear("coldConfigStore"),3);case 3:return _.Q(g,R.put("coldConfigStore",V),4);case 4:return M=g.yieldResult,g.return(M)}})};
dcb=function(F){var W,E;return _.e(function(h){return h.nextAddress==1?_.Q(h,WsY(F),2):h.nextAddress!=3?(W=h.yieldResult,E=void 0,_.Q(h,_.oA(W,["coldConfigStore"],{mode:"readwrite",enableRetries:!0},function(d){return _.FH(d.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(V){E=V.getValue()})}),3)):h.return(E)})};
NWe=function(F){var W,E;return _.e(function(h){return h.nextAddress==1?_.Q(h,WsY(F),2):h.nextAddress!=3?(W=h.yieldResult,E=void 0,_.Q(h,_.oA(W,["hotConfigStore"],{mode:"readwrite",enableRetries:!0},function(d){return _.FH(d.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(V){E=V.getValue()})}),3)):h.return(E)})};
V7Y=function(){return _.e(function(F){return _.Q(F,pfn("ytGcfConfig"),0)})};
Ucr=function(){return"INNERTUBE_API_KEY"in _.fW&&"INNERTUBE_API_VERSION"in _.fW};
_.W0=function(){return{innertubeApiKey:_.b0("INNERTUBE_API_KEY"),innertubeApiVersion:_.b0("INNERTUBE_API_VERSION"),innertubeContextClientConfigInfo:_.b0("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),innertubeContextClientName:_.b0("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),innertubeContextClientNameFieldNumber:_.b0("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:_.b0("INNERTUBE_CONTEXT_CLIENT_VERSION"),innertubeContextHostLanguage:_.b0("INNERTUBE_CONTEXT_HL"),innertubeContextGeoLocation:_.b0("INNERTUBE_CONTEXT_GL"),
innertubeHostOverride:_.b0("INNERTUBE_HOST_OVERRIDE")||"",innertubeUseThirdPartyAuth:_.l0("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),innertubeOmitApiKeyWhenAuthHeaderIsPresent:_.l0("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1),appInstallData:_.b0("SERIALIZED_CLIENT_CONFIG_DATA")}};
_.t7Y=function(F){var W={client:{hl:F.innertubeContextHostLanguage,gl:F.innertubeContextGeoLocation,clientName:F.innertubeContextClientName,clientVersion:F.innertubeContextClientVersion,configInfo:F.innertubeContextClientConfigInfo}};navigator.userAgent&&(W.client.userAgent=String(navigator.userAgent));var E=_.EY.devicePixelRatio;E&&E!=1&&(W.client.screenDensityFloat=String(E));E=Xsw();E!==""&&(W.client.experimentsToken=E);E=HXW();E.length>0&&(W.request={internalExperimentFlags:E});Rso(F,void 0,W);
eso(void 0,W);M7b(void 0,W);gbk(F,void 0,W);QjG(void 0,W);_.c("start_client_gcf")&&zsS(void 0,W);_.b0("DELEGATED_SESSION_ID")&&!_.c("pageid_as_header_web")&&(W.user={onBehalfOfUser:_.b0("DELEGATED_SESSION_ID")});!_.c("fill_delegate_context_in_gel_killswitch")&&(F=_.b0("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(W.user=Object.assign({},W.user,{serializedDelegationContext:F}));F=_.b0("INNERTUBE_CONTEXT");var h;if(_.c("enable_persistent_device_token")&&(F==null?0:(h=F.client)==null?0:h.rolloutToken)){var d;
W.client.rolloutToken=F==null?void 0:(d=F.client)==null?void 0:d.rolloutToken}h=Object;d=h.assign;F=W.client;E={};for(var V=_.U(Object.entries(_.oW(_.b0("DEVICE","")))),R=V.next();!R.done;R=V.next()){var M=_.U(R.value);R=M.next().value;M=M.next().value;R==="cbrand"?E.deviceMake=M:R==="cmodel"?E.deviceModel=M:R==="cbr"?E.browserName=M:R==="cbrver"?E.browserVersion=M:R==="cos"?E.osName=M:R==="cosver"?E.osVersion=M:R==="cplatform"&&(E.platform=M)}W.client=d.call(h,F,E);return W};
Rso=function(F,W,E){F=F.innertubeContextClientName;if(F==="WEB"||F==="MWEB"||F===1||F===2)if(W){E=_.Em(W,Csn,96)||new Csn;var h=BWo();h=Object.keys(vbr).indexOf(h);h=h===-1?null:h;h!==null&&_.hH(E,3,h);_.hy(W,96,E)}else E&&(E.client.mainAppWebInfo=(h=E.client.mainAppWebInfo)!=null?h:{},E.client.mainAppWebInfo.webDisplayMode=BWo())};
eso=function(F,W){var E=_.ju("yt.embedded_player.embed_url");E&&(F?(W=_.Em(F,I2G,7)||new I2G,_.QJ(W,4,E),_.hy(F,7,W)):W&&(W.thirdParty={embedUrl:E}))};
M7b=function(F,W){var E;if(_.c("web_log_memory_total_kbytes")&&((E=_.EY.navigator)==null?0:E.deviceMemory)){var h;E=(h=_.EY.navigator)==null?void 0:h.deviceMemory;F?_.de(F,95,JP(E*1E6)):W&&(W.client.memoryTotalKbytes=""+E*1E6)}};
gbk=function(F,W,E){if(F.appInstallData)if(W){var h;E=(h=_.Em(W,N1,62))!=null?h:new N1;_.QJ(E,6,F.appInstallData);_.hy(W,62,E)}else E&&(E.client.configInfo=E.client.configInfo||{},E.client.configInfo.appInstallData=F.appInstallData)};
QjG=function(F,W){var E=_.gxb();E&&(F?_.hH(F,61,cFG[E]):W&&(W.client.connectionType=E));_.c("web_log_effective_connection_type")&&(E=zvW())&&(F?_.hH(F,94,DcS[E]):W&&(W.client.effectiveConnectionType=E))};
_.AFG=function(F,W,E){E=E===void 0?{}:E;var h={};_.b0("EOM_VISITOR_DATA")?h={"X-Goog-EOM-Visitor-Id":_.b0("EOM_VISITOR_DATA")}:h={"X-Goog-Visitor-Id":E.visitorData||_.b0("VISITOR_DATA","")};if(W&&W.includes("www.youtube-nocookie.com"))return h;W=E.authorization||_.b0("AUTHORIZATION");W||(F?W="Bearer "+_.ju("gapi.auth.getToken")().access_token:(xcR.instance||(xcR.instance=new xcR),F=kJw(),_.c("pageid_as_header_web")||delete F["X-Goog-PageId"],h=Object.assign({},h,F)));W&&(h.Authorization=W);return h};
zsS=function(F,W){var E=sjY();if(E){var h=E.coldConfigData,d=E.coldHashData;E=E.hotHashData;if(F){var V;W=(V=_.Em(F,N1,62))!=null?V:new N1;h=_.QJ(W,1,h);_.QJ(h,3,d).setHotHashData(E);_.hy(F,62,W)}else W&&(W.client.configInfo=W.client.configInfo||{},h&&(W.client.configInfo.coldConfigData=h),d&&(W.client.configInfo.coldHashData=d),E&&(W.client.configInfo.hotHashData=E))}};
VA=function(F){for(var W=F.length;--W>=0;)F[W]=0};
Lse=function(F,W,E,h,d){this.static_tree=F;this.extra_bits=W;this.extra_base=E;this.elems=h;this.max_length=d;this.has_stree=F&&F.length};
qTY=function(F,W){this.dyn_tree=F;this.max_code=0;this.stat_desc=W};
Um=function(F,W){F.pending_buf[F.pending++]=W&255;F.pending_buf[F.pending++]=W>>>8&255};
Rr=function(F,W,E){F.bi_valid>16-E?(F.bi_buf|=W<<F.bi_valid&65535,Um(F,F.bi_buf),F.bi_buf=W>>16-F.bi_valid,F.bi_valid+=E-16):(F.bi_buf|=W<<F.bi_valid&65535,F.bi_valid+=E)};
eQ=function(F,W,E){Rr(F,E[W*2],E[W*2+1])};
$co=function(F,W){var E=0;do E|=F&1,F>>>=1,E<<=1;while(--W>0);return E>>>1};
ZYn=function(F,W,E){var h=Array(16),d=0,V;for(V=1;V<=15;V++)h[V]=d=d+E[V-1]<<1;for(E=0;E<=W;E++)d=F[E*2+1],d!==0&&(F[E*2]=$co(h[d]++,d))};
X5e=function(F){var W;for(W=0;W<286;W++)F.dyn_ltree[W*2]=0;for(W=0;W<30;W++)F.dyn_dtree[W*2]=0;for(W=0;W<19;W++)F.bl_tree[W*2]=0;F.dyn_ltree[512]=1;F.opt_len=F.static_len=0;F.last_lit=F.matches=0};
HYo=function(F){F.bi_valid>8?Um(F,F.bi_buf):F.bi_valid>0&&(F.pending_buf[F.pending++]=F.bi_buf);F.bi_buf=0;F.bi_valid=0};
Psr=function(F,W,E){HYo(F);Um(F,E);Um(F,~E);M1.arraySet(F.pending_buf,F.window,W,E,F.pending);F.pending+=E};
JFG=function(F,W,E,h){var d=W*2,V=E*2;return F[d]<F[V]||F[d]===F[V]&&h[W]<=h[E]};
a2W=function(F,W,E){for(var h=F.heap[E],d=E<<1;d<=F.heap_len;){d<F.heap_len&&JFG(W,F.heap[d+1],F.heap[d],F.depth)&&d++;if(JFG(W,h,F.heap[d],F.depth))break;F.heap[E]=F.heap[d];E=d;d<<=1}F.heap[E]=h};
nbo=function(F,W,E){var h=0;if(F.last_lit!==0){do{var d=F.pending_buf[F.d_buf+h*2]<<8|F.pending_buf[F.d_buf+h*2+1];var V=F.pending_buf[F.l_buf+h];h++;if(d===0)eQ(F,V,W);else{var R=ge[V];eQ(F,R+256+1,W);var M=f2o[R];M!==0&&(V-=OYo[R],Rr(F,V,M));d--;R=d<256?tH[d]:tH[256+(d>>>7)];eQ(F,R,E);M=bYI[R];M!==0&&(d-=l2o[R],Rr(F,d,M))}}while(h<F.last_lit)}eQ(F,256,W)};
yFG=function(F,W){var E=W.dyn_tree,h=W.stat_desc.static_tree,d=W.stat_desc.has_stree,V=W.stat_desc.elems,R,M=-1;F.heap_len=0;F.heap_max=573;for(R=0;R<V;R++)E[R*2]!==0?(F.heap[++F.heap_len]=M=R,F.depth[R]=0):E[R*2+1]=0;for(;F.heap_len<2;){var g=F.heap[++F.heap_len]=M<2?++M:0;E[g*2]=1;F.depth[g]=0;F.opt_len--;d&&(F.static_len-=h[g*2+1])}W.max_code=M;for(R=F.heap_len>>1;R>=1;R--)a2W(F,E,R);g=V;do R=F.heap[1],F.heap[1]=F.heap[F.heap_len--],a2W(F,E,1),h=F.heap[1],F.heap[--F.heap_max]=R,F.heap[--F.heap_max]=
h,E[g*2]=E[R*2]+E[h*2],F.depth[g]=(F.depth[R]>=F.depth[h]?F.depth[R]:F.depth[h])+1,E[R*2+1]=E[h*2+1]=g,F.heap[1]=g++,a2W(F,E,1);while(F.heap_len>=2);F.heap[--F.heap_max]=F.heap[1];R=W.dyn_tree;g=W.max_code;h=W.stat_desc.static_tree;d=W.stat_desc.has_stree;V=W.stat_desc.extra_bits;var t=W.stat_desc.extra_base,C=W.stat_desc.max_length,B,I=0;for(B=0;B<=15;B++)F.bl_count[B]=0;R[F.heap[F.heap_max]*2+1]=0;for(W=F.heap_max+1;W<573;W++){var x=F.heap[W];B=R[R[x*2+1]*2+1]+1;B>C&&(B=C,I++);R[x*2+1]=B;if(!(x>
g)){F.bl_count[B]++;var A=0;x>=t&&(A=V[x-t]);var X=R[x*2];F.opt_len+=X*(B+A);d&&(F.static_len+=X*(h[x*2+1]+A))}}if(I!==0){do{for(B=C-1;F.bl_count[B]===0;)B--;F.bl_count[B]--;F.bl_count[B+1]+=2;F.bl_count[C]--;I-=2}while(I>0);for(B=C;B!==0;B--)for(x=F.bl_count[B];x!==0;)h=F.heap[--W],h>g||(R[h*2+1]!==B&&(F.opt_len+=(B-R[h*2+1])*R[h*2],R[h*2+1]=B),x--)}ZYn(E,M,F.bl_count)};
jjo=function(F,W,E){var h,d=-1,V=W[1],R=0,M=7,g=4;V===0&&(M=138,g=3);W[(E+1)*2+1]=65535;for(h=0;h<=E;h++){var t=V;V=W[(h+1)*2+1];++R<M&&t===V||(R<g?F.bl_tree[t*2]+=R:t!==0?(t!==d&&F.bl_tree[t*2]++,F.bl_tree[32]++):R<=10?F.bl_tree[34]++:F.bl_tree[36]++,R=0,d=t,V===0?(M=138,g=3):t===V?(M=6,g=3):(M=7,g=4))}};
iYG=function(F,W,E){var h,d=-1,V=W[1],R=0,M=7,g=4;V===0&&(M=138,g=3);for(h=0;h<=E;h++){var t=V;V=W[(h+1)*2+1];if(!(++R<M&&t===V)){if(R<g){do eQ(F,t,F.bl_tree);while(--R!==0)}else t!==0?(t!==d&&(eQ(F,t,F.bl_tree),R--),eQ(F,16,F.bl_tree),Rr(F,R-3,2)):R<=10?(eQ(F,17,F.bl_tree),Rr(F,R-3,3)):(eQ(F,18,F.bl_tree),Rr(F,R-11,7));R=0;d=t;V===0?(M=138,g=3):t===V?(M=6,g=3):(M=7,g=4)}}};
rFb=function(F){var W=4093624447,E;for(E=0;E<=31;E++,W>>>=1)if(W&1&&F.dyn_ltree[E*2]!==0)return 0;if(F.dyn_ltree[18]!==0||F.dyn_ltree[20]!==0||F.dyn_ltree[26]!==0)return 1;for(E=32;E<256;E++)if(F.dyn_ltree[E*2]!==0)return 1;return 0};
CM=function(F,W,E){F.pending_buf[F.d_buf+F.last_lit*2]=W>>>8&255;F.pending_buf[F.d_buf+F.last_lit*2+1]=W&255;F.pending_buf[F.l_buf+F.last_lit]=E&255;F.last_lit++;W===0?F.dyn_ltree[E*2]++:(F.matches++,W--,F.dyn_ltree[(ge[E]+256+1)*2]++,F.dyn_dtree[(W<256?tH[W]:tH[256+(W>>>7)])*2]++);return F.last_lit===F.lit_bufsize-1};
Ir=function(F,W){F.msg=B0[W];return W};
c0=function(F){for(var W=F.length;--W>=0;)F[W]=0};
Dp=function(F){var W=F.state,E=W.pending;E>F.avail_out&&(E=F.avail_out);E!==0&&(M1.arraySet(F.output,W.pending_buf,W.pending_out,E,F.next_out),F.next_out+=E,W.pending_out+=E,F.total_out+=E,F.avail_out-=E,W.pending-=E,W.pending===0&&(W.pending_out=0))};
AH=function(F,W){var E=F.block_start>=0?F.block_start:-1,h=F.strstart-F.block_start,d=0;if(F.level>0){F.strm.data_type===2&&(F.strm.data_type=rFb(F));yFG(F,F.l_desc);yFG(F,F.d_desc);jjo(F,F.dyn_ltree,F.l_desc.max_code);jjo(F,F.dyn_dtree,F.d_desc.max_code);yFG(F,F.bl_desc);for(d=18;d>=3&&F.bl_tree[TWW[d]*2+1]===0;d--);F.opt_len+=3*(d+1)+5+5+4;var V=F.opt_len+3+7>>>3;var R=F.static_len+3+7>>>3;R<=V&&(V=R)}else V=R=h+5;if(h+4<=V&&E!==-1)Rr(F,W?1:0,3),Psr(F,E,h);else if(F.strategy===4||R===V)Rr(F,2+(W?
1:0),3),nbo(F,x7,k7);else{Rr(F,4+(W?1:0),3);E=F.l_desc.max_code+1;h=F.d_desc.max_code+1;d+=1;Rr(F,E-257,5);Rr(F,h-1,5);Rr(F,d-4,4);for(V=0;V<d;V++)Rr(F,F.bl_tree[TWW[V]*2+1],3);iYG(F,F.dyn_ltree,E-1);iYG(F,F.dyn_dtree,h-1);nbo(F,F.dyn_ltree,F.dyn_dtree)}X5e(F);W&&HYo(F);F.block_start=F.strstart;Dp(F.strm)};
sm=function(F,W){F.pending_buf[F.pending++]=W};
LM=function(F,W){F.pending_buf[F.pending++]=W>>>8&255;F.pending_buf[F.pending++]=W&255};
obo=function(F,W){var E=F.max_chain_length,h=F.strstart,d=F.prev_length,V=F.nice_match,R=F.strstart>F.w_size-262?F.strstart-(F.w_size-262):0,M=F.window,g=F.w_mask,t=F.prev,C=F.strstart+258,B=M[h+d-1],I=M[h+d];F.prev_length>=F.good_match&&(E>>=2);V>F.lookahead&&(V=F.lookahead);do{var x=W;if(M[x+d]===I&&M[x+d-1]===B&&M[x]===M[h]&&M[++x]===M[h+1]){h+=2;for(x++;M[++h]===M[++x]&&M[++h]===M[++x]&&M[++h]===M[++x]&&M[++h]===M[++x]&&M[++h]===M[++x]&&M[++h]===M[++x]&&M[++h]===M[++x]&&M[++h]===M[++x]&&h<C;);
x=258-(C-h);h=C-258;if(x>d){F.match_start=W;d=x;if(x>=V)break;B=M[h+d-1];I=M[h+d]}}}while((W=t[W&g])>R&&--E!==0);return d<=F.lookahead?d:F.lookahead};
$7=function(F){var W=F.w_size,E;do{var h=F.window_size-F.lookahead-F.strstart;if(F.strstart>=W+(W-262)){M1.arraySet(F.window,F.window,W,W,0);F.match_start-=W;F.strstart-=W;F.block_start-=W;var d=E=F.hash_size;do{var V=F.head[--d];F.head[d]=V>=W?V-W:0}while(--E);d=E=W;do V=F.prev[--d],F.prev[d]=V>=W?V-W:0;while(--E);h+=W}if(F.strm.avail_in===0)break;d=F.strm;E=F.window;V=F.strstart+F.lookahead;var R=d.avail_in;R>h&&(R=h);R===0?E=0:(d.avail_in-=R,M1.arraySet(E,d.input,d.next_in,R,V),d.state.wrap===
1?d.adler=GJw(d.adler,E,R,V):d.state.wrap===2&&(d.adler=q1(d.adler,E,R,V)),d.next_in+=R,d.total_in+=R,E=R);F.lookahead+=E;if(F.lookahead+F.insert>=3)for(h=F.strstart-F.insert,F.ins_h=F.window[h],F.ins_h=(F.ins_h<<F.hash_shift^F.window[h+1])&F.hash_mask;F.insert&&!(F.ins_h=(F.ins_h<<F.hash_shift^F.window[h+3-1])&F.hash_mask,F.prev[h&F.w_mask]=F.head[F.ins_h],F.head[F.ins_h]=h,h++,F.insert--,F.lookahead+F.insert<3););}while(F.lookahead<262&&F.strm.avail_in!==0)};
YTk=function(F,W){for(var E;;){if(F.lookahead<262){$7(F);if(F.lookahead<262&&W===0)return 1;if(F.lookahead===0)break}E=0;F.lookahead>=3&&(F.ins_h=(F.ins_h<<F.hash_shift^F.window[F.strstart+3-1])&F.hash_mask,E=F.prev[F.strstart&F.w_mask]=F.head[F.ins_h],F.head[F.ins_h]=F.strstart);E!==0&&F.strstart-E<=F.w_size-262&&(F.match_length=obo(F,E));if(F.match_length>=3)if(E=CM(F,F.strstart-F.match_start,F.match_length-3),F.lookahead-=F.match_length,F.match_length<=F.max_lazy_match&&F.lookahead>=3){F.match_length--;
do F.strstart++,F.ins_h=(F.ins_h<<F.hash_shift^F.window[F.strstart+3-1])&F.hash_mask,F.prev[F.strstart&F.w_mask]=F.head[F.ins_h],F.head[F.ins_h]=F.strstart;while(--F.match_length!==0);F.strstart++}else F.strstart+=F.match_length,F.match_length=0,F.ins_h=F.window[F.strstart],F.ins_h=(F.ins_h<<F.hash_shift^F.window[F.strstart+1])&F.hash_mask;else E=CM(F,0,F.window[F.strstart]),F.lookahead--,F.strstart++;if(E&&(AH(F,!1),F.strm.avail_out===0))return 1}F.insert=F.strstart<2?F.strstart:2;return W===4?(AH(F,
!0),F.strm.avail_out===0?3:4):F.last_lit&&(AH(F,!1),F.strm.avail_out===0)?1:2};
Zp=function(F,W){for(var E,h;;){if(F.lookahead<262){$7(F);if(F.lookahead<262&&W===0)return 1;if(F.lookahead===0)break}E=0;F.lookahead>=3&&(F.ins_h=(F.ins_h<<F.hash_shift^F.window[F.strstart+3-1])&F.hash_mask,E=F.prev[F.strstart&F.w_mask]=F.head[F.ins_h],F.head[F.ins_h]=F.strstart);F.prev_length=F.match_length;F.prev_match=F.match_start;F.match_length=2;E!==0&&F.prev_length<F.max_lazy_match&&F.strstart-E<=F.w_size-262&&(F.match_length=obo(F,E),F.match_length<=5&&(F.strategy===1||F.match_length===3&&
F.strstart-F.match_start>4096)&&(F.match_length=2));if(F.prev_length>=3&&F.match_length<=F.prev_length){h=F.strstart+F.lookahead-3;E=CM(F,F.strstart-1-F.prev_match,F.prev_length-3);F.lookahead-=F.prev_length-1;F.prev_length-=2;do++F.strstart<=h&&(F.ins_h=(F.ins_h<<F.hash_shift^F.window[F.strstart+3-1])&F.hash_mask,F.prev[F.strstart&F.w_mask]=F.head[F.ins_h],F.head[F.ins_h]=F.strstart);while(--F.prev_length!==0);F.match_available=0;F.match_length=2;F.strstart++;if(E&&(AH(F,!1),F.strm.avail_out===0))return 1}else if(F.match_available){if((E=
CM(F,0,F.window[F.strstart-1]))&&AH(F,!1),F.strstart++,F.lookahead--,F.strm.avail_out===0)return 1}else F.match_available=1,F.strstart++,F.lookahead--}F.match_available&&(CM(F,0,F.window[F.strstart-1]),F.match_available=0);F.insert=F.strstart<2?F.strstart:2;return W===4?(AH(F,!0),F.strm.avail_out===0?3:4):F.last_lit&&(AH(F,!1),F.strm.avail_out===0)?1:2};
w5Y=function(F,W){for(var E,h,d,V=F.window;;){if(F.lookahead<=258){$7(F);if(F.lookahead<=258&&W===0)return 1;if(F.lookahead===0)break}F.match_length=0;if(F.lookahead>=3&&F.strstart>0&&(h=F.strstart-1,E=V[h],E===V[++h]&&E===V[++h]&&E===V[++h])){for(d=F.strstart+258;E===V[++h]&&E===V[++h]&&E===V[++h]&&E===V[++h]&&E===V[++h]&&E===V[++h]&&E===V[++h]&&E===V[++h]&&h<d;);F.match_length=258-(d-h);F.match_length>F.lookahead&&(F.match_length=F.lookahead)}F.match_length>=3?(E=CM(F,1,F.match_length-3),F.lookahead-=
F.match_length,F.strstart+=F.match_length,F.match_length=0):(E=CM(F,0,F.window[F.strstart]),F.lookahead--,F.strstart++);if(E&&(AH(F,!1),F.strm.avail_out===0))return 1}F.insert=0;return W===4?(AH(F,!0),F.strm.avail_out===0?3:4):F.last_lit&&(AH(F,!1),F.strm.avail_out===0)?1:2};
ujo=function(F,W){for(var E;;){if(F.lookahead===0&&($7(F),F.lookahead===0)){if(W===0)return 1;break}F.match_length=0;E=CM(F,0,F.window[F.strstart]);F.lookahead--;F.strstart++;if(E&&(AH(F,!1),F.strm.avail_out===0))return 1}F.insert=0;return W===4?(AH(F,!0),F.strm.avail_out===0?3:4):F.last_lit&&(AH(F,!1),F.strm.avail_out===0)?1:2};
XH=function(F,W,E,h,d){this.good_length=F;this.max_lazy=W;this.nice_length=E;this.max_chain=h;this.func=d};
STI=function(){this.strm=null;this.status=0;this.pending_buf=null;this.wrap=this.pending=this.pending_out=this.pending_buf_size=0;this.gzhead=null;this.gzindex=0;this.method=8;this.last_flush=-1;this.w_mask=this.w_bits=this.w_size=0;this.window=null;this.window_size=0;this.head=this.prev=null;this.nice_match=this.good_match=this.strategy=this.level=this.max_lazy_match=this.max_chain_length=this.prev_length=this.lookahead=this.match_start=this.strstart=this.match_available=this.prev_match=this.match_length=
this.block_start=this.hash_shift=this.hash_mask=this.hash_bits=this.hash_size=this.ins_h=0;this.dyn_ltree=new M1.Buf16(1146);this.dyn_dtree=new M1.Buf16(122);this.bl_tree=new M1.Buf16(78);c0(this.dyn_ltree);c0(this.dyn_dtree);c0(this.bl_tree);this.bl_desc=this.d_desc=this.l_desc=null;this.bl_count=new M1.Buf16(16);this.heap=new M1.Buf16(573);c0(this.heap);this.heap_max=this.heap_len=0;this.depth=new M1.Buf16(573);c0(this.depth);this.bi_valid=this.bi_buf=this.insert=this.matches=this.static_len=this.opt_len=
this.d_buf=this.last_lit=this.lit_bufsize=this.l_buf=0};
p5Y=function(F,W){if(!F||!F.state||W>5||W<0)return F?Ir(F,-2):-2;var E=F.state;if(!F.output||!F.input&&F.avail_in!==0||E.status===666&&W!==4)return Ir(F,F.avail_out===0?-5:-2);E.strm=F;var h=E.last_flush;E.last_flush=W;if(E.status===42)if(E.wrap===2)F.adler=0,sm(E,31),sm(E,139),sm(E,8),E.gzhead?(sm(E,(E.gzhead.text?1:0)+(E.gzhead.hcrc?2:0)+(E.gzhead.extra?4:0)+(E.gzhead.name?8:0)+(E.gzhead.comment?16:0)),sm(E,E.gzhead.time&255),sm(E,E.gzhead.time>>8&255),sm(E,E.gzhead.time>>16&255),sm(E,E.gzhead.time>>
24&255),sm(E,E.level===9?2:E.strategy>=2||E.level<2?4:0),sm(E,E.gzhead.os&255),E.gzhead.extra&&E.gzhead.extra.length&&(sm(E,E.gzhead.extra.length&255),sm(E,E.gzhead.extra.length>>8&255)),E.gzhead.hcrc&&(F.adler=q1(F.adler,E.pending_buf,E.pending,0)),E.gzindex=0,E.status=69):(sm(E,0),sm(E,0),sm(E,0),sm(E,0),sm(E,0),sm(E,E.level===9?2:E.strategy>=2||E.level<2?4:0),sm(E,3),E.status=113);else{var d=8+(E.w_bits-8<<4)<<8;d|=(E.strategy>=2||E.level<2?0:E.level<6?1:E.level===6?2:3)<<6;E.strstart!==0&&(d|=
32);E.status=113;LM(E,d+(31-d%31));E.strstart!==0&&(LM(E,F.adler>>>16),LM(E,F.adler&65535));F.adler=1}if(E.status===69)if(E.gzhead.extra){for(d=E.pending;E.gzindex<(E.gzhead.extra.length&65535)&&(E.pending!==E.pending_buf_size||(E.gzhead.hcrc&&E.pending>d&&(F.adler=q1(F.adler,E.pending_buf,E.pending-d,d)),Dp(F),d=E.pending,E.pending!==E.pending_buf_size));)sm(E,E.gzhead.extra[E.gzindex]&255),E.gzindex++;E.gzhead.hcrc&&E.pending>d&&(F.adler=q1(F.adler,E.pending_buf,E.pending-d,d));E.gzindex===E.gzhead.extra.length&&
(E.gzindex=0,E.status=73)}else E.status=73;if(E.status===73)if(E.gzhead.name){d=E.pending;do{if(E.pending===E.pending_buf_size&&(E.gzhead.hcrc&&E.pending>d&&(F.adler=q1(F.adler,E.pending_buf,E.pending-d,d)),Dp(F),d=E.pending,E.pending===E.pending_buf_size)){var V=1;break}V=E.gzindex<E.gzhead.name.length?E.gzhead.name.charCodeAt(E.gzindex++)&255:0;sm(E,V)}while(V!==0);E.gzhead.hcrc&&E.pending>d&&(F.adler=q1(F.adler,E.pending_buf,E.pending-d,d));V===0&&(E.gzindex=0,E.status=91)}else E.status=91;if(E.status===
91)if(E.gzhead.comment){d=E.pending;do{if(E.pending===E.pending_buf_size&&(E.gzhead.hcrc&&E.pending>d&&(F.adler=q1(F.adler,E.pending_buf,E.pending-d,d)),Dp(F),d=E.pending,E.pending===E.pending_buf_size)){V=1;break}V=E.gzindex<E.gzhead.comment.length?E.gzhead.comment.charCodeAt(E.gzindex++)&255:0;sm(E,V)}while(V!==0);E.gzhead.hcrc&&E.pending>d&&(F.adler=q1(F.adler,E.pending_buf,E.pending-d,d));V===0&&(E.status=103)}else E.status=103;E.status===103&&(E.gzhead.hcrc?(E.pending+2>E.pending_buf_size&&Dp(F),
E.pending+2<=E.pending_buf_size&&(sm(E,F.adler&255),sm(E,F.adler>>8&255),F.adler=0,E.status=113)):E.status=113);if(E.pending!==0){if(Dp(F),F.avail_out===0)return E.last_flush=-1,0}else if(F.avail_in===0&&(W<<1)-(W>4?9:0)<=(h<<1)-(h>4?9:0)&&W!==4)return Ir(F,-5);if(E.status===666&&F.avail_in!==0)return Ir(F,-5);if(F.avail_in!==0||E.lookahead!==0||W!==0&&E.status!==666){h=E.strategy===2?ujo(E,W):E.strategy===3?w5Y(E,W):H0[E.level].func(E,W);if(h===3||h===4)E.status=666;if(h===1||h===3)return F.avail_out===
0&&(E.last_flush=-1),0;if(h===2&&(W===1?(Rr(E,2,3),eQ(E,256,x7),E.bi_valid===16?(Um(E,E.bi_buf),E.bi_buf=0,E.bi_valid=0):E.bi_valid>=8&&(E.pending_buf[E.pending++]=E.bi_buf&255,E.bi_buf>>=8,E.bi_valid-=8)):W!==5&&(Rr(E,0,3),Psr(E,0,0),W===3&&(c0(E.head),E.lookahead===0&&(E.strstart=0,E.block_start=0,E.insert=0))),Dp(F),F.avail_out===0))return E.last_flush=-1,0}if(W!==4)return 0;if(E.wrap<=0)return 1;E.wrap===2?(sm(E,F.adler&255),sm(E,F.adler>>8&255),sm(E,F.adler>>16&255),sm(E,F.adler>>24&255),sm(E,
F.total_in&255),sm(E,F.total_in>>8&255),sm(E,F.total_in>>16&255),sm(E,F.total_in>>24&255)):(LM(E,F.adler>>>16),LM(E,F.adler&65535));Dp(F);E.wrap>0&&(E.wrap=-E.wrap);return E.pending!==0?0:1};
mcI=function(F){if(!(this instanceof mcI))return new mcI(F);F=this.options=M1.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},F||{});F.raw&&F.windowBits>0?F.windowBits=-F.windowBits:F.gzip&&F.windowBits>0&&F.windowBits<16&&(F.windowBits+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.strm=new KsR;this.strm.avail_out=0;var W=this.strm;var E=F.level,h=F.method,d=F.windowBits,V=F.memLevel,R=F.strategy;if(W){var M=1;E===-1&&(E=6);d<0?(M=0,d=-d):d>15&&
(M=2,d-=16);if(V<1||V>9||h!==8||d<8||d>15||E<0||E>9||R<0||R>4)W=Ir(W,-2);else{d===8&&(d=9);var g=new STI;W.state=g;g.strm=W;g.wrap=M;g.gzhead=null;g.w_bits=d;g.w_size=1<<g.w_bits;g.w_mask=g.w_size-1;g.hash_bits=V+7;g.hash_size=1<<g.hash_bits;g.hash_mask=g.hash_size-1;g.hash_shift=~~((g.hash_bits+3-1)/3);g.window=new M1.Buf8(g.w_size*2);g.head=new M1.Buf16(g.hash_size);g.prev=new M1.Buf16(g.w_size);g.lit_bufsize=1<<V+6;g.pending_buf_size=g.lit_bufsize*4;g.pending_buf=new M1.Buf8(g.pending_buf_size);
g.d_buf=g.lit_bufsize;g.l_buf=3*g.lit_bufsize;g.level=E;g.strategy=R;g.method=h;if(W&&W.state){W.total_in=W.total_out=0;W.data_type=2;E=W.state;E.pending=0;E.pending_out=0;E.wrap<0&&(E.wrap=-E.wrap);E.status=E.wrap?42:113;W.adler=E.wrap===2?0:1;E.last_flush=0;if(!Ffn){h=Array(16);for(V=R=0;V<28;V++)for(OYo[V]=R,d=0;d<1<<f2o[V];d++)ge[R++]=V;ge[R-1]=V;for(V=R=0;V<16;V++)for(l2o[V]=R,d=0;d<1<<bYI[V];d++)tH[R++]=V;for(R>>=7;V<30;V++)for(l2o[V]=R<<7,d=0;d<1<<bYI[V]-7;d++)tH[256+R++]=V;for(d=0;d<=15;d++)h[d]=
0;for(d=0;d<=143;)x7[d*2+1]=8,d++,h[8]++;for(;d<=255;)x7[d*2+1]=9,d++,h[9]++;for(;d<=279;)x7[d*2+1]=7,d++,h[7]++;for(;d<=287;)x7[d*2+1]=8,d++,h[8]++;ZYn(x7,287,h);for(d=0;d<30;d++)k7[d*2+1]=5,k7[d*2]=$co(d,5);WfY=new Lse(x7,f2o,257,286,15);Err=new Lse(k7,bYI,0,30,15);h0G=new Lse([],dnY,0,19,7);Ffn=!0}E.l_desc=new qTY(E.dyn_ltree,WfY);E.d_desc=new qTY(E.dyn_dtree,Err);E.bl_desc=new qTY(E.bl_tree,h0G);E.bi_buf=0;E.bi_valid=0;X5e(E);E=0}else E=Ir(W,-2);E===0&&(W=W.state,W.window_size=2*W.w_size,c0(W.head),
W.max_lazy_match=H0[W.level].max_lazy,W.good_match=H0[W.level].good_length,W.nice_match=H0[W.level].nice_length,W.max_chain_length=H0[W.level].max_chain,W.strstart=0,W.block_start=0,W.lookahead=0,W.insert=0,W.match_length=W.prev_length=2,W.match_available=0,W.ins_h=0);W=E}}else W=-2;if(W!==0)throw Error(B0[W]);F.header&&(W=this.strm)&&W.state&&W.state.wrap===2&&(W.state.gzhead=F.header);if(F.dictionary){var t;typeof F.dictionary==="string"?t=NRS(F.dictionary):VFY.call(F.dictionary)==="[object ArrayBuffer]"?
t=new Uint8Array(F.dictionary):t=F.dictionary;F=this.strm;V=t;R=V.length;if(F&&F.state)if(t=F.state,W=t.wrap,W===2||W===1&&t.status!==42||t.lookahead)W=-2;else{W===1&&(F.adler=GJw(F.adler,V,R,0));t.wrap=0;R>=t.w_size&&(W===0&&(c0(t.head),t.strstart=0,t.block_start=0,t.insert=0),E=new M1.Buf8(t.w_size),M1.arraySet(E,V,R-t.w_size,t.w_size,0),V=E,R=t.w_size);E=F.avail_in;h=F.next_in;d=F.input;F.avail_in=R;F.next_in=0;F.input=V;for($7(t);t.lookahead>=3;){V=t.strstart;R=t.lookahead-2;do t.ins_h=(t.ins_h<<
t.hash_shift^t.window[V+3-1])&t.hash_mask,t.prev[V&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=V,V++;while(--R);t.strstart=V;t.lookahead=2;$7(t)}t.strstart+=t.lookahead;t.block_start=t.strstart;t.insert=t.lookahead;t.lookahead=0;t.match_length=t.prev_length=2;t.match_available=0;F.next_in=h;F.input=d;F.avail_in=E;t.wrap=W;W=0}else W=-2;if(W!==0)throw Error(B0[W]);this._dict_set=!0}};
Une=function(F,W){W=W||{};W.gzip=!0;W=new mcI(W);W.push(F,!0);if(W.err)throw W.msg||B0[W.err];return W.result};
e0n=function(F,W){var E=R0w();E&&E.publish.call(E,F.toString(),F,W)};
tFo=function(F,W,E){var h=R0w();if(!h)return 0;var d=h.subscribe(F.toString(),function(V,R){var M=_.ju("ytPubsub2Pubsub2SkipSubKey");M&&M==d||(M=function(){if(MFo[d])try{if(R&&F instanceof grn&&F!=V)try{var g=F.dataClass,t=R;if(!t.args||!t.version)throw Error("Xc");try{if(!g.version_){var C=new g;g.version_=C.version}var B=g.version_}catch(I){}if(!B||t.version!=B)throw Error("Yc");try{R=Reflect.construct(g,_.Kb(t.args))}catch(I){throw I.message="yt.pubsub2.Data.deserialize(): "+I.message,I;}}catch(I){throw I.message=
"yt.pubsub2.pubsub2 cross-binary conversion error for "+F.toString()+": "+I.message,I;}W.call(E||window,R)}catch(I){_.nW(I)}},Qxr[F.toString()]?_.ju("yt.scheduler.instance")?_.P0.addLowPriorityJob(M):_.RA(M,0):M())});
MFo[d]=!0;z0w[F.toString()]||(z0w[F.toString()]=[]);z0w[F.toString()].push(d);return d};
IsI=function(){var F=CCr,W=tFo(BRw,function(E){F.apply(void 0,arguments);vrY(W)});
return W};
vrY=function(F){var W=R0w();W&&(typeof F==="number"&&(F=[F]),_.Tk(F,function(E){W.unsubscribeByKey(E);delete MFo[E]}))};
R0w=function(){return _.ju("ytPubsub2Pubsub2Instance")};
cEI=function(F,W,E){E=E===void 0?{sampleRate:.1}:E;Math.random()<Math.min(.02,E.sampleRate/100)&&e0n("meta_logging_csi_event",{timerName:F,timelineData:W})};
_.Dnr=function(F){return F?(F=F.privateDoNotAccessOrElseSafeScriptWrappedValue)?_.OW(F):null:null};
_.JH=function(F){return F?(F=F.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue)?_.RI(F):null:null};
krG=function(){xno||(xno=_.JH(_.b0("WORKER_SERIALIZATION_URL")));return xno||void 0};
_.sxI=function(){var F=krG();AEw||F===void 0||(AEw=new Worker(_.e9(F),void 0));return AEw};
_.Lfo=function(){return typeof Worker==="function"&&krG()?!0:!1};
_.Xze=function(){if(_.Lfo()&&!q_W){var F=function(E){E=E.data;if(E.op==="gzippedGelBatch"){var h=$nR.get(E.key);h&&(ZVr(E.gzippedBatch,h.latencyPayload,h.url,h.options,h.sendFn),$nR.delete(E.key))}},W=_.sxI();
W&&(W.addEventListener("message",F),W.onerror=function(){$nR.clear()},q_W=!0)}};
bVw=function(F,W,E,h,d){d=d===void 0?!1:d;var V={startTime:(0,_.KU)(),ticks:{},infos:{}};if(ar)try{var R=HVo(W);if(R!=null&&(R>PCW||R<JER))h(F,E);else{if(_.c("gzip_gel_with_worker")&&(_.c("initial_gzip_use_main_thread")&&!asG||!_.c("initial_gzip_use_main_thread"))){q_W||_.Xze();var M=_.sxI();if(M&&!d){$nR.set(fsY,{latencyPayload:V,url:F,options:E,sendFn:h});M.postMessage({op:"gelBatchToGzip",serializedBatch:W,key:fsY});fsY++;return}}var g=Une(OVo(W));ZVr(g,V,F,E,h)}}catch(t){_.i0(t),h(F,E)}else h(F,
E)};
ZVr=function(F,W,E,h,d){asG=!1;var V=(0,_.KU)();W.ticks.gelc=V;fM++;_.c("disable_compression_due_to_performance_degredation")&&V-W.startTime>=lsb&&(nrn++,_.c("abandon_compression_after_N_slow_zips")?fM===_.dV("compression_disable_point")&&nrn>yEW&&(ar=!1):ar=!1);jxY(W);h.headers||(h.headers={});h.headers["Content-Encoding"]="gzip";h.postBody=F;h.postParams=void 0;d(E,h)};
iVW=function(F){var W=W===void 0?!1:W;var E=E===void 0?!1:E;var h=(0,_.KU)(),d={startTime:h,ticks:{},infos:{}},V=W?_.ju("yt.logging.gzipForFetch",!1):!0;if(ar&&V){if(!F.body)return F;try{var R=E?F.body:typeof F.body==="string"?F.body:JSON.stringify(F.body);V=R;if(!E&&typeof R==="string"){var M=HVo(R);if(M!=null&&(M>PCW||M<JER))return F;E=W?{level:1}:void 0;V=Une(OVo(R),E);var g=(0,_.KU)();d.ticks.gelc=g;if(W){fM++;if((_.c("disable_compression_due_to_performance_degredation")||_.c("disable_compression_due_to_performance_degradation_lr"))&&
g-h>=lsb)if(nrn++,_.c("abandon_compression_after_N_slow_zips")||_.c("abandon_compression_after_N_slow_zips_lr")){W=nrn/fM;var t=yEW/_.dV("compression_disable_point");fM>0&&fM%_.dV("compression_disable_point")===0&&W>=t&&(ar=!1)}else ar=!1;jxY(d)}}F.headers=Object.assign({},{"Content-Encoding":"gzip"},F.headers||{});F.body=V;return F}catch(C){return _.i0(C),F}}else return F};
HVo=function(F){try{return(new Blob(F.split(""))).size}catch(W){return _.i0(W),null}};
jxY=function(F){_.c("gel_compression_csi_killswitch")||!_.c("log_gel_compression_latency")&&!_.c("log_gel_compression_latency_lr")||cEI("gel_compression",F,{sampleRate:.1})};
rEY=function(){this.blockSize=-1};
Om=function(){this.blockSize=-1;this.blockSize=64;this.chain_=[];this.buf_=[];this.W_=[];this.pad_=[];this.pad_[0]=128;for(var F=1;F<this.blockSize;++F)this.pad_[F]=0;this.total_=this.inbuf_=0;this.reset()};
orI=function(F){F=Object.assign({},F);delete F.Authorization;var W=TRb();if(W){var E=new Om;E.update(_.b0("INNERTUBE_API_KEY"));E.update(W);F.hash=_.FG(E.digest(),3)}return F};
lY=function(){GrS||(GrS=new _.bY("yt.innertube"));return GrS};
Y_I=function(F,W,E,h){if(h)return null;h=lY().get("nextId",!0)||1;var d=lY().get("requests",!0)||{};d[h]={method:F,request:W,authState:orI(E),requestTime:Math.round((0,_.KU)())};lY().set("nextId",h+1,86400,!0);lY().set("requests",d,86400,!0);return h};
wzI=function(F){var W=lY().get("requests",!0)||{};delete W[F];lY().set("requests",W,86400,!0)};
S_G=function(F){var W=lY().get("requests",!0);if(W){for(var E in W){var h=W[E];if(!(Math.round((0,_.KU)())-h.requestTime<6E4)){var d=h.authState,V=orI(_.AFG(!1));_.xd.equals(d,V)&&(d=h.request,"requestTimeMs"in d&&(d.requestTimeMs=Math.round((0,_.KU)())),uDo(F,h.method,d,{}));delete W[E]}}lY().set("requests",W,86400,!0)}};
pze=function(F){var W;return(F=F==null?void 0:(W=F.error)==null?void 0:W.code)&&F>=400&&F<=599?!1:!0};
mne=function(F){var W;F=F==null?void 0:(W=F.error)==null?void 0:W.code;return!(F!==400&&F!==415)};
FJY=function(){if(Kfr)return Kfr();var F={};Kfr=me("LogsDatabaseV2",{objectStores:(F.LogsRequestsStore={addedAtVersion:2},F),shared:!1,upgrade:function(W,E,h){E(2)&&nM(W,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});E(3);E(5)&&(h=h.objectStore("LogsRequestsStore"),h.JSC$8509_wrapped.indexNames.contains("newRequest")&&h.JSC$8509_wrapped.deleteIndex("newRequest"),yA(h,"newRequestV2",["status","interface","timestamp"]));E(7)&&W.JSC$8494_wrapped.objectStoreNames.contains("sapisid")&&W.JSC$8494_wrapped.deleteObjectStore("sapisid");
E(9)&&W.JSC$8494_wrapped.objectStoreNames.contains("SWHealthLog")&&W.JSC$8494_wrapped.deleteObjectStore("SWHealthLog")},
version:9});return Kfr()};
jQ=function(F){return _.TC(FJY(),F)};
Eub=function(F,W){var E,h,d,V;return _.e(function(R){if(R.nextAddress==1)return E={startTime:(0,_.KU)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},_.Q(R,jQ(W),2);if(R.nextAddress!=3)return h=R.yieldResult,d=Object.assign({},F,{options:JSON.parse(JSON.stringify(F.options)),interface:_.b0("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),_.Q(R,h.put("LogsRequestsStore",d),3);V=R.yieldResult;E.ticks.tc=(0,_.KU)();WJY(E);return R.return(V)})};
hnk=function(F,W){var E,h,d,V,R,M,g,t;return _.e(function(C){if(C.nextAddress==1)return E={startTime:(0,_.KU)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},_.Q(C,jQ(W),2);if(C.nextAddress!=3)return h=C.yieldResult,d=_.b0("INNERTUBE_CONTEXT_CLIENT_NAME",0),V=[F,d,0],R=[F,d,(0,_.KU)()],M=IDBKeyRange.bound(V,R),g="prev",_.c("use_fifo_for_networkless")&&(g="next"),t=void 0,_.Q(C,_.oA(h,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(B){return _.FH(B.objectStore("LogsRequestsStore").index("newRequestV2"),
{query:M,direction:g},function(I){I.getValue()&&(t=I.getValue(),F==="NEW"&&(t.status="QUEUED",I.update(t)))})}),3);
E.ticks.tc=(0,_.KU)();WJY(E);return C.return(t)})};
dzr=function(F,W){var E;return _.e(function(h){if(h.nextAddress==1)return _.Q(h,jQ(W),2);E=h.yieldResult;return h.return(_.oA(E,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(d){var V=d.objectStore("LogsRequestsStore");return V.get(F).then(function(R){if(R)return R.status="QUEUED",V.put(R).then(function(){return R})})}))})};
N2Y=function(F,W,E,h){E=E===void 0?!0:E;var d;return _.e(function(V){if(V.nextAddress==1)return _.Q(V,jQ(W),2);d=V.yieldResult;return V.return(_.oA(d,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(R){var M=R.objectStore("LogsRequestsStore");return M.get(F).then(function(g){return g?(g.status="NEW",E&&(g.sendCount+=1),h!==void 0&&(g.options.compress=h),M.put(g).then(function(){return g})):ld.resolve(void 0)})}))})};
VRo=function(F,W){var E;return _.e(function(h){if(h.nextAddress==1)return _.Q(h,jQ(W),2);E=h.yieldResult;return h.return(E.delete("LogsRequestsStore",F))})};
Uzo=function(F){var W,E;return _.e(function(h){if(h.nextAddress==1)return _.Q(h,jQ(F),2);W=h.yieldResult;E=(0,_.KU)()-2592E6;return _.Q(h,_.oA(W,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(d){return YC(d.objectStore("LogsRequestsStore"),{},function(V){if(V.getValue().timestamp<=E)return V.delete().then(function(){return V.continue()})})}),0)})};
Rnr=function(){_.e(function(F){return _.Q(F,pfn("LogsDatabaseV2"),0)})};
WJY=function(F){_.c("nwl_csi_killswitch")||cEI("networkless_performance",F,{sampleRate:1})};
_.MRb=function(F){return _.TC(enr(),F)};
gun=function(F){var W,E;_.e(function(h){if(h.nextAddress==1)return _.Q(h,_.MRb(F),2);W=h.yieldResult;E=(0,_.KU)()-2592E6;return _.Q(h,_.oA(W,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(d){return YC(d.objectStore("SWHealthLog"),{},function(V){if(V.getValue().timestamp<=E)return V.delete().then(function(){return V.continue()})})}),0)})};
Qor=function(F){var W;return _.e(function(E){if(E.nextAddress==1)return _.Q(E,_.MRb(F),2);W=E.yieldResult;return _.Q(E,W.clear("SWHealthLog"),0)})};
_.iY=function(F,W,E,h,d,V,R){d=d===void 0?"":d;V=V===void 0?!1:V;R=R===void 0?!1:R;if(F)if(E&&!aA("cobalt"))_.i0(new _.xC("Legacy referrer-scrubbed ping detected")),F&&znb(F,void 0,{scrubReferrer:!0});else if(d)nOr(F,W,"POST",d,h);else if(_.b0("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||h||R)nOr(F,W,"GET","",h,void 0,V,R);else{b:{try{c:{var M=new tRR({url:F});if(M.urlParamValues_.dsh==="1")var g=null;else{var t=M.urlParamValues_.ae;if(t==="1"){var C=M.urlParamValues_.adurl;if(C)try{g={version:3,directUrl:decodeURIComponent(C),
asyncUrl:q2n(M.JSC$7381_url_,"act=1","ri=1",Cbb(M))};break c}catch(A){}}g=t==="2"?{version:4,directUrl:q2n(M.JSC$7381_url_,"dct=1","suid="+M.suid_,""),asyncUrl:q2n(M.JSC$7381_url_,"act=1","ri=1","suid="+M.suid_)}:null}}if(g){var B=_.gV(F);var I=!(!B||!B.endsWith("/aclk")||_.lg(F,"ri")!=="1");break b}}catch(A){}I=!1}if(I){b:{try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(F,"")){var x=!0;break b}}catch(A){}x=!1}x?(W&&W(),E=!0):E=!1}else E=!1;E||znb(F,W)}};
znb=function(F,W,E){E=E===void 0?{}:E;var h=new Image,d=""+B2o++;vur[d]=h;h.onload=h.onerror=function(){W&&vur[d]&&W();delete vur[d]};
E.scrubReferrer&&(h.referrerPolicy="no-referrer");h.src=F};
re=function(F,W){IPW(F,W==="ATTRIBUTION_SRC_MODE_XHR_OPTION")};
cge=function(F){var W;return((W=document.featurePolicy)==null?0:W.allowedFeatures().includes("attribution-reporting"))?F+"&nis=6":F+"&nis=5"};
DzS=function(F){if(!F)return!1;try{var W;if(((W=_.oW(F))==null?void 0:W.asm)==="4")return!0}catch(E){_.nW(E)}return!1};
IPW=function(F,W){W?(F=cge(F),_.iY(F,void 0,void 0,void 0,"",!0,!0)):_.iY(F)};
kBe=function(){xzI||(xzI=new _.bY("yt.offline"));return xzI};
Agn=function(F){if(_.c("offline_error_handling")){var W=kBe().get("errors",!0)||{};W[F.message]={name:F.name,stack:F.stack};F.level&&(W[F.message].level=F.level);kBe().set("errors",W,2592E3,!0)}};
LJr=function(F,W,E,h){h=h===void 0?!1:h;W=_.c("web_fp_via_jspb")?Object.assign({},W):W;_.c("use_cfr_monitor")&&soR(F,W);if(_.c("use_request_time_ms_header"))W.headers&&m0(F)&&(W.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.KU)())));else{var d;if((d=W.postParams)==null?0:d.requestTimeMs)W.postParams.requestTimeMs=Math.round((0,_.KU)())}E&&Object.keys(W).length===0?_.iY(F):W.compress?W.postBody?(typeof W.postBody!=="string"&&(W.postBody=JSON.stringify(W.postBody)),bVw(F,W.postBody,
W,_.Qy,h)):bVw(F,JSON.stringify(W.postParams),W,rtk,h):_.Qy(F,W)};
qhY=function(F,W){_.c("use_event_time_ms_header")&&m0(F)&&(W.headers||(W.headers={}),W.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,_.KU)())));return W};
_.ZfY=function(){$zW||($zW=new _.TX({logOfflineErrors:!0,enablePolling:!0}));return $zW};
soR=function(F,W){var E=W.onError?W.onError:function(){};
W.onError=function(d,V){or().requestComplete(F,!1);E(d,V)};
var h=W.onSuccess?W.onSuccess:function(){};
W.onSuccess=function(d,V){or().requestComplete(F,!0);h(d,V)}};
_.XBY=function(){return _.Su(document.location.toString())!=="www.youtube-nocookie.com"};
_.JgY=function(){return _.ju("ytNetworklessLoggingInitializationOptions")?_.Hfo.isNwlInitialized:_.Pbk};
aPr=function(F,W){if(_.c("polymer_on_demand_shady_dom")){var E;var h=(E=F.__shady_native_firstElementChild)!=null?E:F.firstElementChild}else h=F.firstElementChild;for(;h;){if(F=W(h)?h:aPr(h,W))return F;h=h.nextElementSibling}return null};
Ofb=function(){var F=document;if("visibilityState"in F)return F.visibilityState;var W=fPr+"VisibilityState";if(W in F)return F[W]};
_.bfo=function(F,W){var E;GX(F,function(h){E=W[h];return!!E});
return E};
_.SQ=function(F){var W=lPn(F);W?W.focus():_.Y7(F)};
lPn=function(F){return(F=aPr(F,function(W){return _.pM(W)?nuS(W)&&!!W.offsetParent:!1}))?F:null};
_.Y7=function(F,W){F.hasAttribute("tabindex")||F.setAttribute("tabindex","-1");F.focus(W)};
ygY=function(F,W,E,h){h=h===void 0?{}:h;F.addEventListener&&(W!="mouseenter"||"onmouseenter"in document?W!="mouseleave"||"onmouseenter"in document?W=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(W="MozMousePixelScroll"):W="mouseout":W="mouseover");return _.xd.findKey(mF,function(d){var V=typeof d[4]==="boolean"&&d[4]==!!h,R=_.NU(d[4])&&_.NU(h)&&_.xd.equals(d[4],h);return!!d.length&&d[0]==F&&d[1]==W&&d[2]==E&&(V||R)})};
_.FA=function(F,W,E,h){h=h===void 0?{}:h;if(!F||!F.addEventListener&&!F.attachEvent)return"";var d=ygY(F,W,E,h);if(d)return d;d=++jor.count+"";var V=!(W!="mouseenter"&&W!="mouseleave"||!F.addEventListener||"onmouseenter"in document);var R=V?function(M){M=new KM(M);if(!_.HE(M.relatedTarget,function(g){return g==F},!0))return M.currentTarget=F,M.type=W,E.call(F,M)}:function(M){M=new KM(M);
M.currentTarget=F;return E.call(F,M)};
R=_.yn(R);F.addEventListener?(W=="mouseenter"&&V?W="mouseover":W=="mouseleave"&&V?W="mouseout":W=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(W="MozMousePixelScroll"),ifn()||typeof h==="boolean"?F.addEventListener(W,R,h):F.addEventListener(W,R,!!h.capture)):F.attachEvent("on"+W,R);mF[d]=[F,W,E,R,h];return d};
_.T2I=function(F,W,E){var h=h===void 0?{}:h;var d=_.FA(F,W,function(){_.rgk(d);E.apply(F,arguments)},h)};
_.rgk=function(F){F&&(typeof F=="string"&&(F=[F]),_.Tk(F,function(W){if(W in mF){var E=mF[W],h=E[0],d=E[1],V=E[3];E=E[4];h.removeEventListener?ifn()||typeof E==="boolean"?h.removeEventListener(d,V,E):h.removeEventListener(d,V,!!E.capture):h.detachEvent&&h.detachEvent("on"+d,V);delete mF[W]}}))};
Wc=function(F){this.callback_=F;this.position_=null;this.previousTime_=0;this.previousPosition_=null;this.previousVelocity_=0;this.cycles_=[];for(F=0;F<4;F++)this.cycles_.push(0);this.index_=0;this.mouseListenerKey_=_.FA(window,"mousemove",(0,_.kj)(this.onMouseMove_,this));this.timerId_=_.e5((0,_.kj)(this.checkPosition_,this),25)};
GBR=function(){var F={};var W=F.preferMobileEvents===void 0?!1:F.preferMobileEvents;F=F.enableScrollEventListener===void 0?!0:F.enableScrollEventListener;if(_.ju("_lact",window)==null){var E=parseInt(_.b0("LACT"),10);E=isFinite(E)?Date.now()-Math.max(E,0):-1;_.S5("_lact",E,window);_.S5("_fact",E,window);E==-1&&_.EB();_.FA(document,"keydown",_.EB);_.FA(document,"keyup",_.EB);_.FA(document,"mousedown",_.EB);_.FA(document,"mouseup",_.EB);W?_.FA(window,"touchmove",function(){ouW("touchmove",200)},{passive:!0}):
(_.FA(window,"resize",function(){ouW("resize",200)}),F&&_.FA(window,"scroll",function(){ouW("scroll",200)}));
new Wc(function(){ouW("mouse",100)});
_.FA(document,"touchstart",_.EB,{passive:!0});_.FA(document,"touchend",_.EB,{passive:!0})}};
ouW=function(F,W){Yhw[F]||(Yhw[F]=!0,_.P0.addLowPriorityJob(function(){_.EB();Yhw[F]=!1},W))};
_.EB=function(){_.ju("_lact",window)==null&&GBR();var F=Date.now();_.S5("_lact",F,window);_.ju("_fact",window)==-1&&_.S5("_fact",F,window);(F=_.ju("ytglobal.ytUtilActivityCallback_"))&&F()};
_.hV=function(){var F=_.ju("_lact",window);return F==null?-1:Math.max(Date.now()-F,0)};
_.UB=function(F,W,E){var h=_.d3();if(h&&W){var d=h.subscribe(F,function(){var V=arguments,R=function(){Ny[d]&&W.apply&&typeof W.apply=="function"&&W.apply(E||window,V)};
try{_.wBo[F]?R():_.RA(R,0)}catch(M){_.nW(M)}},E);
Ny[d]=!0;Vi[F]||(Vi[F]=[]);Vi[F].push(d);return d}return 0};
_.uCY=function(F){var W=_.d3();W&&(typeof F==="number"?F=[F]:typeof F==="string"&&(F=[parseInt(F,10)]),_.Tk(F,function(E){W.unsubscribeByKey(E);delete Ny[E]}))};
_.Shk=function(F,W){var E=_.d3();E&&E.publish.apply(E,arguments)};
_.mzR=function(F){var W=_.d3();if(W)if(W.clear(F),F)pBo(F);else for(var E in Vi)pBo(E)};
_.d3=function(){return _.EY.ytPubsubPubsubInstance};
pBo=function(F){Vi[F]&&(F=Vi[F],_.Tk(F,function(W){Ny[W]&&delete Ny[W]}),F.length=0)};
KJo=function(){var F,W;return"h5vcc"in R_&&((F=R_.h5vcc.traceEvent)==null?0:F.traceBegin)&&((W=R_.h5vcc.traceEvent)==null?0:W.traceEnd)?1:"performance"in R_&&R_.performance.mark&&R_.performance.measure?2:0};
FVk=function(F){var W=KJo();switch(W){case 1:R_.h5vcc.traceEvent.traceBegin("YTLR",F);break;case 2:R_.performance.mark(F+"-start");break;case 0:break;default:_.RO(W,"unknown trace type")}};
WVI=function(F){var W=KJo();switch(W){case 1:R_.h5vcc.traceEvent.traceEnd("YTLR",F);break;case 2:W=F+"-start";var E=F+"-end";R_.performance.mark(E);R_.performance.measure(F,W,E);break;case 0:break;default:_.RO(W,"unknown trace type")}};
E3b=function(F){var W,E;(E=(W=window).onerror)==null||E.call(W,F.message,"",0,0,F)};
hzo=function(F){if(_.c("web_lifecycle_error_handling_killswitch"))return F();try{return F()}catch(W){E3b(W)}};
d3o=function(F){return[F.auth===void 0?"undefined":F.auth,F.isJspb===void 0?"undefined":F.isJspb,F.cttAuthInfo===void 0?"undefined":F.cttAuthInfo,F.tier===void 0?"undefined":F.tier].join("/")};
_.D=function(F,W){if(F)return F[W.name]};
My=function(){var F=_.ju("yt.logging.ims");F||(F=new eh,_.S5("yt.logging.ims",F));return F};
zzr=function(F,W){if(F.endpoint==="log_event"){NQr(F);var E=Vao(F),h=U3b(F.payload)||"",d=RzY(h),V=200;if(d){if(d.enabled===!1&&!_.c("web_payload_policy_disabled_killswitch"))return;V=ezY(d.tier);if(V===400){MaY(F,W);return}}g3[E]=!0;E={cttAuthInfo:E,isJspb:!1,tier:V};My().storePayload(E,F.payload);g3k(W,!1,E,Q4I(h))}};
C1G=function(F,W,E){if(W.endpoint==="log_event"){NQr(void 0,W);var h=Vao(W,!0),d=RzY(F),V=200;if(d){if(d.enabled===!1&&!_.c("web_payload_policy_disabled_killswitch"))return;V=ezY(d.tier);if(V===400){tan(F,W,E);return}}g3[h]=!0;h={cttAuthInfo:h,isJspb:!0,tier:V};My().storePayload(h,du(W.payload));g3k(E,!0,h,Q4I(F))}};
g3k=function(F,W,E,h){W=W===void 0?!1:W;h=h===void 0?!1:h;F&&(Qi=new F);F=_.dV("tvhtml5_logging_max_batch_ads_fork")||_.dV("tvhtml5_logging_max_batch")||_.dV("web_logging_max_batch")||100;var d=(0,_.KU)(),V=BQY(W,E.tier),R=V.lastDebounceQueueFromLogTimeMs;h&&(V.useVideoStatsEndPoint=!0);h=0;E&&(h=My().getSequenceCount(E));var M=function(){v3r({writeThenSend:!0},W,E.tier)};
h>=1E3?M():h>=F?IGY||(IGY=cTW(function(){M();IGY=void 0},0)):d-R>=10&&(D3S(W,E.tier),V.lastDebounceQueueFromLogTimeMs=d)};
MaY=function(F,W){if(F.endpoint==="log_event"){_.c("more_accurate_gel_parser")&&My().storePayload({isJspb:!1},F.payload);NQr(F);var E=Vao(F),h=new Map;h.set(E,[F.payload]);var d=U3b(F.payload)||"";W&&(Qi=new W);return new _.z5(function(V,R){Qi&&Qi.isReady()?x3R(h,Qi,V,R,{bypassNetworkless:!0},!0,Q4I(d)):V()})}};
tan=function(F,W,E){if(W.endpoint==="log_event"){NQr(void 0,W);var h=Vao(W,!0),d=new Map;d.set(h,[du(W.payload)]);E&&(Qi=new E);return new _.z5(function(V){Qi&&Qi.isReady()?kKo(d,Qi,V,{bypassNetworkless:!0},!0,Q4I(F)):V()})}};
Vao=function(F,W){var E="";if(F.dangerousLogToVisitorSession)E="visitorOnlyApprovedKey";else if(F.cttAuthInfo){if(W===void 0?0:W){W=F.cttAuthInfo.token;E=F.cttAuthInfo;var h=new ATG;E.videoId?h.setVideoId(E.videoId):E.playlistId&&tV(h,2,s4b,nN(E.playlistId));LVe[W]=h}else W=F.cttAuthInfo,E={},W.videoId?E.videoId=W.videoId:W.playlistId&&(E.playlistId=W.playlistId),qOw[F.cttAuthInfo.token]=E;E=F.cttAuthInfo.token}return E};
v3r=function(F,W,E){F=F===void 0?{}:F;W=W===void 0?!1:W;new _.z5(function(h,d){var V=BQY(W,E),R=V.useVideoStatsEndPoint;V.useVideoStatsEndPoint=!1;$3o(V.queueTimer);$3o(V.queueMaxTimer);V.queueMaxTimer=0;Qi&&Qi.isReady()?E===void 0&&_.c("enable_web_tiered_gel")?Zzw(h,d,F,W,300,R):Zzw(h,d,F,W,E,R):(D3S(W,E),h())})};
Zzw=function(F,W,E,h,d,V){var R=Qi;E=E===void 0?{}:E;h=h===void 0?!1:h;d=d===void 0?200:d;V=V===void 0?!1:V;var M=new Map,g=new Map,t={isJspb:h,cttAuthInfo:void 0,tier:d},C={isJspb:h,cttAuthInfo:void 0};if(h){W=_.U(Object.keys(g3));for(d=W.next();!d.done;d=W.next())d=d.value,g=_.c("enable_web_tiered_gel")?My().smartExtractMatchingEntries({keys:[t,C],sizeLimit:1E3}):My().extractMatchingEntries({isJspb:!0,cttAuthInfo:d}),g.length>0&&M.set(d,g),(_.c("web_fp_via_jspb_and_json")&&E.writeThenSend||!_.c("web_fp_via_jspb_and_json"))&&
delete g3[d];kKo(M,R,F,E,!1,V)}else{M=_.U(Object.keys(g3));for(t=M.next();!t.done;t=M.next())t=t.value,C=_.c("enable_web_tiered_gel")?My().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:t,tier:d},{isJspb:!1,cttAuthInfo:t}],sizeLimit:1E3}):My().extractMatchingEntries({isJspb:!1,cttAuthInfo:t}),C.length>0&&g.set(t,C),(_.c("web_fp_via_jspb_and_json")&&E.writeThenSend||!_.c("web_fp_via_jspb_and_json"))&&delete g3[t];x3R(g,R,F,W,E,!1,V)}};
D3S=function(F,W){F=F===void 0?!1:F;W=W===void 0?200:W;var E=function(){v3r({writeThenSend:!0},F,W)},h=BQY(F,W),d=h===Xmb||h===Hzr?5E3:P1o;
_.c("web_gel_timeout_cap")&&!h.queueMaxTimer&&(d=cTW(function(){E()},d),h.queueMaxTimer=d);
$3o(h.queueTimer);d=_.b0("LOGGING_BATCH_TIMEOUT",_.dV("web_gel_debounce_ms",1E4));_.c("shorten_initial_gel_batch_timeout")&&JTo&&(d=aGS);d=cTW(function(){_.dV("gel_min_batch_size")>0?My().getSequenceCount({cttAuthInfo:void 0,isJspb:F,tier:W})>=fGY&&E():E()},d);
h.queueTimer=d};
x3R=function(F,W,E,h,d,V,R){d=d===void 0?{}:d;var M=Math.round((0,_.KU)()),g=F.size,t=Ozr(R);F=_.U(F);var C=F.next();for(R={};!C.done;R={networkFailures:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,onSuccess$jscomp$3:void 0,onError$jscomp$5:void 0},C=F.next()){var B=_.U(C.value);C=B.next().value;B=B.next().value;R.batchRequest=_.xd.unsafeClone({context:_.t7Y(W.config_||_.W0())});if(!_.Ee(B)&&!_.c("throw_err_when_logevent_malformed_killswitch")){h();break}R.batchRequest.events=B;
(B=qOw[C])&&bzb(R.batchRequest,C,B);delete qOw[C];R.dangerousLogToVisitorSession=C==="visitorOnlyApprovedKey";lGY(R.batchRequest,M,R.dangerousLogToVisitorSession);n3W(d);R.onSuccess$jscomp$3=function(I){_.c("start_client_gcf")&&_.P0.addLowPriorityJob(function(){return _.e(function(x){return _.Q(x,yTW(I),0)})});
g--;g||E()};
R.networkFailures=0;R.onError$jscomp$5=function(I){return function(){I.networkFailures++;if(d.bypassNetworkless&&I.networkFailures===1)try{uDo(W,t,I.batchRequest,j4G({writeThenSend:!0},I.dangerousLogToVisitorSession,I.onSuccess$jscomp$3,I.onError$jscomp$5,V)),JTo=!1}catch(x){_.nW(x),h()}g--;g||E()}}(R);
try{uDo(W,t,R.batchRequest,j4G(d,R.dangerousLogToVisitorSession,R.onSuccess$jscomp$3,R.onError$jscomp$5,V)),JTo=!1}catch(I){_.nW(I),h()}}};
kKo=function(F,W,E,h,d,V){h=h===void 0?{}:h;var R=Math.round((0,_.KU)()),M={value:F.size},g=new Map([].concat(_.x9(F)));g=_.U(g);for(var t=g.next();!t.done;t=g.next()){var C=_.U(t.value).next().value,B=F.get(C);t=new izY;var I=W.config_||_.W0(),x=new Cn,A=new rTo;_.QJ(A,1,I.innertubeContextHostLanguage);_.QJ(A,2,I.innertubeContextGeoLocation);_.hH(A,16,I.innertubeContextClientNameFieldNumber);_.QJ(A,17,I.innertubeContextClientVersion);if(I.innertubeContextClientConfigInfo){var X=I.innertubeContextClientConfigInfo,
P=new N1;X.coldConfigData&&_.QJ(P,1,X.coldConfigData);X.appInstallData&&_.QJ(P,6,X.appInstallData);X.coldHashData&&_.QJ(P,3,X.coldHashData);X.hotHashData&&P.setHotHashData(X.hotHashData);_.hy(A,62,P)}(X=_.EY.devicePixelRatio)&&X!=1&&_.de(A,65,_.e$(X));X=Xsw();X!==""&&_.QJ(A,54,X);X=HXW();if(X.length>0){P=new TQr;for(var b=0;b<X.length;b++){var l=new Bc;l.setKey(X[b].key);tV(l,2,o3R,nN(X[b].value));vc(P,15,Bc,l)}_.hy(x,5,P)}Rso(I,A);eso(x);M7b(A);gbk(I,A);QjG(A);_.c("start_client_gcf")&&zsS(A);_.b0("DELEGATED_SESSION_ID")&&
!_.c("pageid_as_header_web")&&(I=new I_,_.QJ(I,3,_.b0("DELEGATED_SESSION_ID")));!_.c("fill_delegate_context_in_gel_killswitch")&&(X=_.b0("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(P=_.Em(x,I_,3)||new I_,I=x,X=_.QJ(P,18,X),_.hy(I,3,X));I=A;X=_.U(Object.entries(_.oW(_.b0("DEVICE",""))));for(P=X.next();!P.done;P=X.next())b=_.U(P.value),P=b.next().value,b=b.next().value,P==="cbrand"?_.QJ(I,12,b):P==="cmodel"?_.QJ(I,13,b):P==="cbr"?_.QJ(I,87,b):P==="cbrver"?_.QJ(I,88,b):P==="cos"?_.QJ(I,18,
b):P==="cosver"?_.QJ(I,19,b):P==="cplatform"&&_.hH(I,42,VrY(b));x.setClient(A);_.hy(t,1,x);if(A=LVe[C])a:{if(_.tv(A,cc(A,s4b,1)))x=1;else if(A.getPlaylistId())x=2;else break a;_.hy(t,4,A);A=t.getContext()||new Cn;I=_.Em(A,I_,3)||new I_;X=new D0;X.setToken(C);_.hH(X,1,x);vc(I,12,D0,X);_.hy(A,3,I)}delete LVe[C];C=C==="visitorOnlyApprovedKey";GKb()||_.kt(t,2,R);!C&&(x=_.b0("EVENT_ID"))&&(A=YOo(),I=new wmI,_.QJ(I,1,x),_.kt(I,2,A),_.hy(t,5,I));n3W(h);if(_.c("jspb_serialize_with_worker")&&(x=_.sxI())&&
h.writeThenSend){_.umb.set(SOW,{client:W,resolve:E,networklessOptions:h,isIsolated:d,useVSSEndpoint:V,dangerousLogToVisitorSession:C,requestsOutstanding:M});x.postMessage({op:"gelBatchToSerialize",batchRequest:du(t),clientEvents:B,key:SOW});SOW++;break}if(B){x=[];for(A=0;A<B.length;A++)try{x.push(new AV(B[A]))}catch(w){_.nW(new _.xC("Transport failed to deserialize "+String(B[A])))}B=x}else B=[];B=_.U(B);for(x=B.next();!x.done;x=B.next())vc(t,3,AV,x.value);B={startTime:(0,_.KU)(),ticks:{},infos:{}};
t=t.serialize();B.ticks.geljspc=(0,_.KU)();_.c("log_jspb_serialize_latency")&&cEI("gel_jspb_serialize",B,{sampleRate:.1});_.pme(t,W,E,h,d,V,C,M)}};
_.pme=function(F,W,E,h,d,V,R,M){h=h===void 0?{}:h;M=M===void 0?{value:0}:M;V=Ozr(V);h=j4G(h,R,function(g){_.c("start_client_gcf")&&_.P0.addLowPriorityJob(function(){return _.e(function(t){return _.Q(t,yTW(g),0)})});
M.value--;M.value||E()},function(){M.value--;
M.value||E()},d);
h.headers["Content-Type"]="application/json+protobuf";h.postBodyFormat="JSPB";h.postBody=F;uDo(W,V,"",h);JTo=!1};
n3W=function(F){_.c("always_send_and_write")&&(F.writeThenSend=!1)};
j4G=function(F,W,E,h,d){F={retry:!0,onSuccess:E,onError:h,networklessOptions:F,dangerousLogToVisitorSession:W,bypassMonitoring:!!d,headers:{},postBodyFormat:"",postBody:"",compress:_.c("compress_gel")||_.c("compress_gel_lr")};GKb()&&(F.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.KU)())));return F};
lGY=function(F,W,E){GKb()||(F.requestTimeMs=String(W));_.c("unsplit_gel_payloads_in_logs")&&(F.unsplitGelPayloadsInLogs=!0);!E&&(W=_.b0("EVENT_ID"))&&(E=YOo(),F.serializedClientEventId={serializedEventId:W,clientCounter:String(E)})};
YOo=function(){var F=_.b0("BATCH_CLIENT_COUNTER")||0;F||(F=Math.floor(Math.random()*65535/2));F++;F>65535&&(F=1);_.OG("BATCH_CLIENT_COUNTER",F);return F};
bzb=function(F,W,E){if(E.videoId)var h="VIDEO";else if(E.playlistId)h="PLAYLIST";else return;F.credentialTransferTokenTargetId=E;F.context=F.context||{};F.context.user=F.context.user||{};F.context.user.credentialTransferTokens=[{token:W,scope:h}]};
NQr=function(F,W){var E=_.N0("il_payload_scraping")==="enable_il_payload_scraping";if(!_.ju("yt.logging.transport.enableScrapingForTest"))if(E)m3Y=[],_.S5("yt.logging.transport.enableScrapingForTest",!0),_.S5("yt.logging.transport.scrapedPayloadsForTesting",m3Y),_.S5("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),_.S5("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"),
_.S5("yt.logging.transport.scrapeClientEvent",!0);else return;E=_.ju("yt.logging.transport.scrapedPayloadsForTesting");var h=_.ju("yt.logging.transport.payloadToScrape");W&&(W=_.ju("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(W.payload)())&&E.push(W);W=_.ju("yt.logging.transport.scrapeClientEvent");if(h&&h.length>=1)for(var d=0;d<h.length;d++)if(F&&F.payload[h[d]])if(W)E.push(F.payload);else{var V=void 0;E.push(((V=F)==null?void 0:V.payload)[h[d]])}_.S5("yt.logging.transport.scrapedPayloadsForTesting",
E)};
GKb=function(){return _.c("use_request_time_ms_header")||_.c("lr_use_request_time_ms_header")};
cTW=function(F,W){return _.c("transport_use_scheduler")===!1?_.RA(F,W):_.c("logging_avoid_blocking_during_navigation")||_.c("lr_logging_avoid_blocking_during_navigation")?_.sB(_.P0,function(){if(_.KVo().currentState==="none")F();else{var E={};_.KVo().install((E.none={callback:F},E))}},W):_.sB(_.P0,F,W)};
$3o=function(F){_.c("transport_use_scheduler")?_.P0.cancelJob(F):_.M0(F)};
yTW=function(F){var W,E,h,d,V,R,M,g,t,C;return _.e(function(B){return B.nextAddress==1?(h=(W=F)==null?void 0:(E=W.responseContext)==null?void 0:E.globalConfigGroup,d=_.D(h,F_k),R=(V=h)==null?void 0:V.hotHashData,M=_.D(h,W_n),t=(g=h)==null?void 0:g.coldHashData,(C=_.WZ().resolve(_.Fd(Ln)))?R?d?_.Q(B,ETo(C,R,d),2):_.Q(B,ETo(C,R),2):B.jumpTo(2):B.return()):t?M?_.Q(B,hKI(C,t,M),0):_.Q(B,hKI(C,t),0):B.jumpTo(0)})};
BQY=function(F,W){W=W===void 0?200:W;return F?W===300?Xmb:drr:W===300?Hzr:NhS};
RzY=function(F){if(_.c("enable_web_tiered_gel")){F=ViR[F||""];var W,E,h,d=_.WZ().resolve(_.Fd(Ln))==null?void 0:(W=UrY())==null?void 0:(E=W.loggingHotConfig)==null?void 0:(h=E.eventLoggingConfig)==null?void 0:h.payloadPolicies;if(d)for(W=0;W<d.length;W++)if(d[W].payloadNumber===F)return d[W]}};
U3b=function(F){F=Object.keys(F);F=_.U(F);for(var W=F.next();!W.done;W=F.next())if(W=W.value,ViR[W])return W};
ezY=function(F){switch(F){case "DELAYED_EVENT_TIER_UNSPECIFIED":return 0;case "DELAYED_EVENT_TIER_DEFAULT":return 100;case "DELAYED_EVENT_TIER_DISPATCH_TO_EMPTY":return 200;case "DELAYED_EVENT_TIER_FAST":return 300;case "DELAYED_EVENT_TIER_IMMEDIATE":return 400;default:return 200}};
Q4I=function(F){return F==="gelDebuggingEvent"};
Ozr=function(F){return(F===void 0?0:F)&&_.c("vss_through_gel_video_stats")?"video_stats":"log_event"};
$t=function(F,W,E,h){h=h===void 0?{}:h;var d={},V=Math.round(h.timestamp||(0,_.KU)());d.eventTimeMs=V<Number.MAX_SAFE_INTEGER?V:0;d[F]=W;F=_.hV();d.context={lastActivityMs:String(h.timestamp||!isFinite(F)?-1:F)};h.sequenceGroup&&!_.c("web_gel_sequence_info_killswitch")&&(F=d.context,W=h.sequenceGroup,W={index:RKY(W),groupKey:W},F.sequence=W,h.endOfSequence&&delete qy[h.sequenceGroup]);(h.sendIsolatedPayload?MaY:zzr)({endpoint:"log_event",payload:d,cttAuthInfo:h.cttAuthInfo,dangerousLogToVisitorSession:h.dangerousLogToVisitorSession},
E)};
RKY=function(F){qy[F]=F in qy?qy[F]+1:0;return qy[F]};
_.Pc=function(F,W,E){E=E===void 0?{}:E;var h=Z0;_.l0("ytLoggingEventsDefaultDisabled",!1)&&Z0===Z0&&(h=null);$t(F,W,h,E)};
_.JV=function(){if(_.c("web_fp_via_jspb")){var F=!0;F=F===void 0?!1:F;var W=eKr;eKr=[];if(W){W=_.U(W);for(var E=W.next();!E.done;E=W.next())E=E.value,F?$t(E.payloadName,E.payload,Z0,E.options):_.Pc(E.payloadName,E.payload,E.options)}v3r(void 0,!0);if(!_.c("web_fp_via_jspb_and_json"))return}v3r(void 0,!1)};
Miw=function(F,W){var E;if((E=W)==null?0:E.componentStack)return W;if(F=F.componentStack)W||(W={}),W.componentStack=F;return W};
gTn=function(){_.Tk(_.b0("ERRORS")||[],function(F){_.a_.apply(null,F)});
_.OG("ERRORS",[])};
_.fn=function(F){_.a_(F)};
_.OB=function(F){_.a_(F,"WARNING")};
Quo=function(F){F instanceof Error?_.a_(F):(F=_.NU(F)?JSON.stringify(F):String(F),F=new _.xC(F),F.name="RejectedPromiseError",_.OB(F))};
zKR=function(F,W,E,h,d,V){W=W===void 0?"Unknown file":W;E=E===void 0?0:E;var R=!1,M=Mne("log_window_onerror_fraction");if(M&&Math.random()<M)R=!0;else{M=document.getElementsByTagName("script");for(var g=0,t=M.length;g<t;g++)if(M[g].src.indexOf("/debug-")>0){R=!0;break}}R&&(R=!1,d?R=!0:(typeof F==="string"?M=F:ErrorEvent&&F instanceof ErrorEvent?(R=!0,M=F.message,W=F.filename,E=F.lineno,h=F.colno):(M="Unknown error",W="Unknown file",E=0),d=new _.xC(M),d.name="UnhandledWindowError",d.message=M,d.fileName=
W,d.lineNumber=E,isNaN(h)?delete d.columnNumber:d.columnNumber=h),_.c("wiz_enable_component_stack_propagation_killswitch")||(V=Miw(d,V)),V&&_.bf(d,V),R?_.a_(d):_.OB(d))};
_.a_=function(F,W,E,h,d,V,R,M){V=V===void 0?{}:V;V.name=E||_.b0("INNERTUBE_CONTEXT_CLIENT_NAME",1);V.version=h||_.b0("INNERTUBE_CONTEXT_CLIENT_VERSION");E=V;W=W===void 0?"ERROR":W;R=R===void 0?!1:R;W=W===void 0?"ERROR":W;R=R===void 0?!1:R;if(F&&(F.hasOwnProperty("level")&&F.level&&(W=F.level),_.c("console_log_js_exceptions")&&(h=[],h.push("Name: "+F.name),h.push("Message: "+F.message),F.hasOwnProperty("params")&&h.push("Error Params: "+JSON.stringify(F.params)),F.hasOwnProperty("args")&&h.push("Error args: "+
JSON.stringify(F.args)),h.push("File name: "+F.fileName),h.push("Stacktrace: "+F.stack),h=h.join("\n"),window.console.log(h,F)),!(tiY>=5))){h=[];d=_.U(CHe);for(V=d.next();!V.done;V=d.next()){V=V.value;try{V()&&h.push(V())}catch(P){}}h=[].concat(_.x9(Bhe),_.x9(h));var g=vTG(F);d=g.message||"Unknown Error";V=g.name||"UnknownError";var t=g.stack||F.stacktrace||"Not available";if(t.startsWith(V+": "+d)){var C=t.split("\n");C.shift();t=C.join("\n")}C=g.lineNumber||"Not available";g=g.fileName||"Not available";
var B=0;if(F.hasOwnProperty("args")&&F.args&&F.args.length)for(var I=0;I<F.args.length&&!(B=N8G(F.args[I],"params."+I,E,B),B>=500);I++);else if(F.hasOwnProperty("params")&&F.params){var x=F.params;if(typeof F.params==="object")for(I in x){if(x[I]){var A="params."+I,X=CU(x[I]);E[A]=X;B+=A.length+X.length;if(B>500)break}}else E.params=CU(x)}if(h.length)for(I=0;I<h.length&&!(B=N8G(h[I],"params.context."+I,E,B),B>=500);I++);navigator.vendor&&!E.hasOwnProperty("vendor")&&(E["device.vendor"]=navigator.vendor);
I={message:d,name:V,lineNumber:C,fileName:g,stack:t,params:E,sampleWeight:1};E=Number(F.columnNumber);isNaN(E)||(I.lineNumber=I.lineNumber+":"+E);if(F.level==="IGNORED")F=0;else a:{F=IAe();E=_.U(F.messageWeights);for(h=E.next();!h.done;h=E.next())if(h=h.value,I.message&&I.message.match(h.messageRegExp)){F=h.weight;break a}F=_.U(F.callbackWeights);for(E=F.next();!E.done;E=F.next())if(E=E.value,E.callback(I)){F=E.weight;break a}F=1}I.sampleWeight=F;F=_.U(cmR);for(E=F.next();!E.done;E=F.next())if(E=
E.value,E.patternsForType[I.name])for(d=_.U(E.patternsForType[I.name]),h=d.next();!h.done;h=d.next())if(V=h.value,h=I.message.match(V.regexp)){I.params["params.error.original"]=h[0];d=V.groups;V={};for(C=0;C<d.length;C++)V[d[C]]=h[C+1],I.params["params.error."+d[C]]=h[C+1];I.message=E.messageFn(V);break}I.params||(I.params={});F=IAe();I.params["params.errorServiceSignature"]="msg="+F.messageWeights.length+"&cb="+F.callbackWeights.length;I.params["params.serviceWorker"]="false";_.EY.document&&_.EY.document.querySelectorAll&&
(I.params["params.fscripts"]=String(document.querySelectorAll("script:not([nonce])").length));(new lf(DrG,"sample")).constructor!==lf&&(I.params["params.fconst"]="true");window.yterr&&typeof window.yterr==="function"&&window.yterr(I);if(I.sampleWeight!==0&&!xrb.has(I.message)){if(R&&_.c("web_enable_error_204"))k4W(W===void 0?"ERROR":W,I);else{W=W===void 0?"ERROR":W;W==="ERROR"?(Amb.publish("handleError",I),_.c("record_app_crashed_web")&&L_w===0&&I.sampleWeight===1&&(L_w++,R={appCrashType:"APP_CRASH_TYPE_BREAKPAD"},
_.c("report_client_error_with_app_crash_ks")||(R.systemHealth={crashData:{clientError:{logMessage:{message:I.message}}}}),_.Pc("appCrashed",R)),q6o++):W==="WARNING"&&Amb.publish("handleWarning",I);if(_.c("kevlar_gel_error_routing")){R=W;M=M===void 0?{}:M;b:{F=_.U($rr);for(E=F.next();!E.done;E=F.next())if(aA(E.value.toLowerCase())){F=!0;break b}F=!1}if(F)M=void 0;else{E={stackTrace:I.stack};I.fileName&&(E.filename=I.fileName);F=I.lineNumber&&I.lineNumber.split?I.lineNumber.split(":"):[];F.length!==
0&&(F.length!==1||isNaN(Number(F[0]))?F.length!==2||isNaN(Number(F[0]))||isNaN(Number(F[1]))||(E.lineNumber=Number(F[0]),E.columnNumber=Number(F[1])):E.lineNumber=Number(F[0]));F={level:"ERROR_LEVEL_UNKNOWN",message:I.message,errorClassName:I.name,sampleWeight:I.sampleWeight};R==="ERROR"?F.level="ERROR_LEVEL_ERROR":R==="WARNING"&&(F.level="ERROR_LEVEL_WARNNING");E={isObfuscated:!0,browserStackInfo:E};M.pageUrl=window.location.href;M.kvPairs=[];_.b0("FEXP_EXPERIMENTS")&&(M.experimentIds=_.b0("FEXP_EXPERIMENTS"));
h=_.b0("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");if(!Mne("web_disable_gel_stp_ecatcher_killswitch")&&h)for(d=_.U(Object.keys(h)),V=d.next();!V.done;V=d.next())V=V.value,M.kvPairs.push({key:V,value:String(h[V])});if(h=I.params)for(d=_.U(Object.keys(h)),V=d.next();!V.done;V=d.next())V=V.value,M.kvPairs.push({key:"client."+V,value:String(h[V])});h=_.b0("SERVER_NAME");d=_.b0("SERVER_VERSION");h&&d&&(M.kvPairs.push({key:"server.name",value:h}),M.kvPairs.push({key:"server.version",value:d}));M={errorMetadata:M,
stackTrace:E,logMessage:F}}M&&(_.Pc("clientError",M),(R==="ERROR"||_.c("errors_flush_gel_always_killswitch"))&&_.JV())}_.c("suppress_error_204_logging")||k4W(W,I)}try{xrb.add(I.message)}catch(P){}tiY++}}};
k4W=function(F,W){var E=W.params||{};F={urlParams:{a:"logerror",t:"jserror",type:W.name,msg:W.message.substr(0,250),line:W.lineNumber,level:F,"client.name":E.name},postParams:{url:_.b0("PAGE_NAME",window.location.href),file:W.fileName},method:"POST"};E.version&&(F["client.version"]=E.version);if(F.postParams){W.stack&&(F.postParams.stack=W.stack);W=_.U(Object.keys(E));for(var h=W.next();!h.done;h=W.next())h=h.value,F.postParams["client."+h]=E[h];if(E=_.b0("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"))for(W=
_.U(Object.keys(E)),h=W.next();!h.done;h=W.next())h=h.value,F.postParams[h]=E[h];(E=_.b0("LAVA_VERSION"))&&(F.postParams["lava.version"]=E);E=_.b0("SERVER_NAME");W=_.b0("SERVER_VERSION");E&&W&&(F.postParams["server.name"]=E,F.postParams["server.version"]=W)}_.Qy(_.b0("ECATCHER_REPORT_HOST","")+"/error_204",F)};
_.ZKG=function(F,W){W=W===void 0?"ERROR":W;var E=E===void 0?{}:E;var h=_.ju("ytbin.polymer.shared.lib.tampering.info");h&&(h=h())&&(E["params.tamperingInfo"]=h.sort().join(","));_.a_(F,W,void 0,void 0,!0,E)};
_.bf=function(F){var W=_.Dd.apply(1,arguments);F.args||(F.args=[]);Array.isArray(F.args)&&F.args.push.apply(F.args,_.x9(W))};
Xeo=function(F){F.level="IGNORED"};
HKr=function(F,W){Bhe.push(F);W();Bhe.pop()};
yi=function(F,W){for(var E in W)W.hasOwnProperty(E)&&(F=_.nn(F,E,W[E]));return F};
_.PHo=function(F,W,E){E=E===void 0?!1:E;if(!F)return null;if(F.adInfoDialogEndpoint||F.backstageImageUploadEndpoint||F.confirmDialogEndpoint||F.clientActionEndpoint||F.createBackstagePostDialogEndpoint||F.createCommentReplyDialogEndpoint||F.flowEndpoint||F.guideBuilderEndpoint||F.liveChatDialogEndpoint||F.modalEndpoint||F.openPopupAction||F.shareEndpoint||F.shareEntityEndpoint||F.showLiveChatItemEndpoint||F.subscriptionManagerEndpoint||F.unlimitedCreateFamilyEndpoint||F.unlimitedFamilyFlowEndpoint||
F.updateCommentDialogEndpoint||F.updateCommentReplyDialogEndpoint||F.userFeedbackEndpoint||F.videoEditorEndpoint||F.ypcCancelSurveyEndpoint)return W=_.dV("polymer_report_client_url_requested_rate"),!E&&Math.random()<W&&_.OB(new _.xC("urlForEndpoint used on client endpoint",F)),null;var h=_.dV("polymer_report_missing_web_navigation_endpoint_rate");if(F.liveChatEndpoint||F.liveChatReplayEndpoint)h=0;if(!F.commandMetadata&&!F.clickTrackingParams&&Math.random()<h){var d={},V;for(V in F)d[V]="1";_.OB(new _.xC("Missing navigation data",
d))}d="";if(F.commandMetadata&&F.commandMetadata.webCommandMetadata&&F.commandMetadata.webCommandMetadata.url)d=F.commandMetadata.webCommandMetadata.url;else if(F.searchEndpoint)Math.random()<h&&_.OB(new _.xC("Should not manually handle search",F)),d="/results?search_query="+encodeURIComponent(F.searchEndpoint.query).replace(/%20/g,"+"),F.searchEndpoint.params&&(d+="&sp="+F.searchEndpoint.params);else if(F.watchEndpoint)Math.random()<h&&_.OB(new _.xC("Should not manually handle watch",F)),d="/watch?v="+
F.watchEndpoint.videoId,F.watchEndpoint.playlistId&&(d+="&list="+F.watchEndpoint.playlistId),F.watchEndpoint.index&&(d+="&index="+F.watchEndpoint.index),F.watchEndpoint.startTimeSeconds&&(d+="&t="+F.watchEndpoint.startTimeSeconds);else if(F.browseEndpoint)h=F.browseEndpoint.browseId,(V=F.browseEndpoint.canonicalBaseUrl)?d=V:h&&(d=h.substr(0,2),d=d==="FE"?h==="FEwhat_to_watch"?"/":h==="FEmy_videos"?"/my_videos":"/feed/"+h.substr(2):d==="VL"?"/playlist?list="+h.substr(2):"/channel/"+h),d&&F.browseEndpoint.query&&
(d=yi(d+"/search",{query:F.browseEndpoint.query})),d&&F.browseEndpoint.params&&(d=yi(d,{params:F.browseEndpoint.params}));else{if(F.urlEndpoint)return F.urlEndpoint.url;F.signInEndpoint?(d="https://accounts.google.com/ServiceLogin",h={},_.xd.extend(h,W||{},{"continue":window.location.href.split("#")[0],action_handle_signin:!0,passive:!0}),W=h):F.uploadEndpoint?d="//www.youtube.com/upload":F.liveChatEndpoint?(d=F.liveChatEndpoint,h=_.xd.clone(d),_.NU(d.continuation)&&(V=Object.keys(d.continuation)[0],
h.continuation=d.continuation[V].continuation),d=yi("/youtubei/v1/live_chat/get_live_chat",h)):F.liveChatReplayEndpoint?(d=_.xd.clone(F.liveChatReplayEndpoint),d.currentPlayerState&&(_.xd.extend(d,d.currentPlayerState),delete d.currentPlayerState),d=yi("/youtubei/v1/live_chat/get_live_chat_replay",d)):F.liveChatItemContextMenuEndpoint?d=yi("/youtubei/v1/live_chat/get_item_context_menu",F.liveChatItemContextMenuEndpoint):F.liveChatPurchaseMessageEndpoint?d=yi("/youtubei/v1/live_chat/get_live_chat_message_buy_flow",
F.liveChatPurchaseMessageEndpoint):F.openSuperStickerBuyFlowCommand?d=yi("/youtubei/v1/live_chat/get_live_chat_super_sticker_buy_flow",F.openSuperStickerBuyFlowCommand):F.videoEditEndpoint?d=yi("/edit",{video_id:F.videoEditEndpoint.videoId}):F.liveDashboardEndpoint?d=F.liveDashboardEndpoint.videoId?yi("/live_dashboard",{v:F.liveDashboardEndpoint.videoId}):"/live_dashboard":F.signalNavigationEndpoint&&F.signalNavigationEndpoint.signal&&F.signalNavigationEndpoint.signal==="WEBCAM"?d="/webcam":F.getPdgBuyFlowCommand&&
(d=yi(F.getPdgBuyFlowCommand.buyflowApiPath,{params:F.getPdgBuyFlowCommand.params}))}return d||E?yi(d,W||{}):(_.OB(new _.xC("Error: Can't construct url for endpoint","keys:"+Object.keys(F).sort().join(","),F)),null)};
Jmo=function(F){if(F){if(F.browseEndpoint)return!!F.browseEndpoint.nofollow;if(F.watchEndpoint)return!!F.watchEndpoint.nofollow;if(F.urlEndpoint)return!!F.urlEndpoint.nofollow}return!1};
_.fAb=function(F,W){var E=W+F,h=aAY.get(E);if(h)return h;F=W+"-"+F.replace(/([A-Z])/g,"-$1").toLowerCase();aAY.set(E,F);return F};
OKb=function(F){var W=_.aW(F,"action")||_.aW(F,"command")||_.aW(F,"endpoint");if(!W)return null;W=_.fAb(W,"yt");_.D(F,_.jh)&&(W+="-"+_.D(F,_.jh).signal.toLowerCase().replace(/_/g,"-"));return W};
ymw=function(F){try{var W=Object.keys(F)}catch(d){return[]}for(var E=0;E<W.length;E++){var h=W[E];if(bKG.test(h)||lAb.test(h))return nTY(F[h])}return[]};
nTY=function(F){return F.command?[F.command]:F.onExecutionAction?[F.onExecutionAction]:F.onResponseReceivedCommand?[F.onResponseReceivedCommand]:F.updateFlowCommand?[F.updateFlowCommand]:F.clientActions?F.clientActions:F.action?[F.action]:F.actions||F.commands||F.onResponseReceivedActions||F.onResponseReceivedCommands||F.onResponseReceivedEndpoints||[]};
iKk=function(F,W){W=W===void 0?!1:W;var E=_.WZ().resolve(_.Fd(r3));E||(E=new juY,_.WZ().addProvider({provide:r3,useValue:E}));return E&&F&&!_.xd.isEmpty(F)?E.getUrl(F,W):""};
rmr=function(F,W,E){E=E===void 0?"":E;if(W){F.data=W;var h=iKk(W);h?(Lu(F,h),Jmo(W)||!m0(h)?F.rel="nofollow":F.removeAttribute("rel"),_.D(W,_.T5)&&_.D(W,_.T5).target==="TARGET_NEW_WINDOW"?F.target="_blank":E?F.target=E:F.removeAttribute("target")):(F.removeAttribute("href"),F.removeAttribute("rel"),F.removeAttribute("target"))}};
_.w3=function(F,W){var E=ug;if(Az())Thr(F,function(){var V=_.Dd.apply(0,arguments);PX(E,function(){W.apply(null,_.x9(V))})});
else{var h=_.o_.getInstance(),d=J8(W);LW(function(){d.value=W});
_.Xk(function(){var V={},R=_.G5(h,(V[F]=function(){var M=_.Dd.apply(0,arguments);PX(E,function(){d.value.apply(d,_.x9(M))})},V));
return function(){var M={};_.Yt(h,(M[F]="",M),R)}})}};
_.uf=function(F){return Az()?oTo(F):G4Y(F)};
_.Sh=function(F){return Az()?oTo(F):G4Y(F)};
G4Y=function(F){return PQ(function(){return oTo(F)})};
oTo=function(F){var W=pcI(function(E){W.value&&W.value===E||(W.__count=W.__count?W.__count+1:1);W.value=E;var h=function(){var d=N6(null);try{return F==null?void 0:F(E)}finally{N6(d)}}();
return function(){h==null||h();W.value=null}});
return W};
Y6W=function(F){var W=ug,E=Ei.enableContextBasedComponentStacks?void 0:xp;return{getFn:function(){return function(h){if(!W.isDisposed){var d=function(){return M6(function(){return F(h)})};
if(Ei.enableContextBasedComponentStacks)try{var V=d()}catch(R){throw Ei.enableContextBasedComponentStacks&&si(R),R;}else V=Ld(d,E);V!==!0&&h.stopPropagation()}}}}};
S6k=function(F,W){if(Az())wek(F,function(h){var d=N6(null);try{W(h)}finally{N6(d)}});
else{var E=J8(W);LW(function(){E.value=W});
_.Xk(function(){var h=F.value;if(h){var d=function(V){E.value(V)};
h.addEventListener("yt-service-request-sent",d,void 0);return function(){h?h.removeEventListener("yt-service-request-sent",d,void 0):uPI(F)}}uPI(F)})}};
uPI=function(F){var W;(W=Ei.handleError)==null||W.call.apply(W,[Ei].concat(_.x9(Jz(myr.LOG_NULL_EL_REF_VALUE(),F.__expectedTagName,2))))};
pn=function(F){if(typeof F.children==="function")return F.children(),null;F=_.U(F.children);for(var W=F.next();!W.done;W=F.next())W=W.value,W();return null};
pek=function(F){var W;return((W=F.prototype)==null?void 0:W.render)===void 0};
mro=function(F){F=F.items.map(F.children);return F.length>0&&typeof F[0]==="string"?F.join(""):F};
FAY=function(F,W,E){E=E===void 0?!1:E;if(Ei.enableContextBasedComponentStacks)try{K_W(F,W,E)}catch(h){throw si(h),h;}else Ld(function(){return K_W(F,W,E)})};
K_W=function(F,W,E){E=((E===void 0?0:E)?WAR:EYS)(F,function(){mR(W)});
return E===null?F:E};
mR=function(F){if(F!==void 0&&F!==null)if(F instanceof zk)for(var W=bu;lu()!=null&&f0r in lu()&&W.contains(lu());)r$();else if(Array.isArray(F))for(W=_.U(F),F=W.next();!F.done;F=W.next())mR(F.value);else if(F instanceof UW||"function"==typeof _.rU&&F instanceof _.rU)Kd(F.toString());else if(NO(F)){if(lu()!==F){var E,h;W=(h=(E=xp)==null?void 0:E.name)!=null?h:"unknown";throw Error("ec`"+F.tagName+"`"+W);}r$()}else if(F!=null&&F.contentKind===RW||F instanceof qi)for(W=Eto(F),W=Array.from(W.childNodes),
W=_.U(W),F=W.next();!F.done;F=W.next())bu.appendChild(F.value),r$();else if(zy(F)&&(F=F.toString()),E=typeof F,E==="boolean"||E==="number"||E==="string")Kd(F);else if(typeof F==="function"){W=bu;var d=lu();d&&(d._isSignalTextNode||d._isSafeOrSanitizedHtmlNode)||s_W(W,d,F);r$()}else if(F.type===mro)mR(F.type(Object.assign({},F.props,{children:F.children[0]})));else{vQ.beforeVisit(F);if(typeof F.type==="string"){a:{F.__open||OMo(F.type,F.props.idomKey);d=bu;for(W in F.props)if(F.props[W]!==hpY){var V=
F.props[W];E=uu;E.push(W);E.push(V)}W=Ei.attributes;W=W===void 0?Kn:W;V=bu;E=Oi(V);rHr(V,E,W);AVR(d,F.props,!0);if((F.props.skip||F.props.skipchildren)&&bu.hasChildNodes())oy();else{if(F.type==="style"&&eyo(F.children)===null){oy();W=void 0;break a}mR(F.children)}bMI();F.__open&&(F.__open=!1);Smr(d,F.props);W=d}return W}if(F.type===_.EG)mR(F.children);else if(!djI(F)){W=F;try{NYW(W)}catch(R){F=R,(V=Ei.handleError)==null||V.call.apply(V,[Ei].concat(_.x9(Jz(F,(d=W.type)==null?void 0:d.TAG_NAME))))}W.__open&&
(bMI(),W.__open=!1)}}};
VcS=function(F,W){var E;pek(F)?E=new cQ(W,F):E=new F(W);E.JSC$8170___type=F;E.__updateContext={nextState:E.state,isForced:!1};return E};
NYW=function(F){var W=F.type,E=W.TAG_NAME;if(W===pn)F.props.children=F.children,W(F.props);else{F.children.length>0&&(F.props.children=F.children);var h;(h=F.props).idomKey||(h.idomKey=W);if(E){var d=OMo(E,F.props.idomKey);F.__open=!0;var V=d.__instance}V||(V=VcS(W,F.props),V.props=null,d&&(d.__instance=V,V.el=d));var R;E=((R=V.__updateContext)!=null?R:{nextState:V.state,isForced:!1}).nextState;V.__updateContext=void 0;W.getDerivedStateFromProps&&(E=W.getDerivedStateFromProps(F.props,E));V.props=
F.props;V.state=E;R=function(){var M=V;vQ.beforeRender(M);var g=M.render(M.props);vQ.afterRender(M,g);g?(M.props.idomKey&&(g.props.idomKey=M.props.idomKey),M=g):M=void 0;if(g=M)if(g.__open=F.__open,M=mR(g),F.__open=g.__open,!W.TAG_NAME)if(M)W.TAG_NAME=M.tagName.toLowerCase(),M.__instance=V,V.el=M;else{var t;if((t=V.hooks)==null?0:t.length){var C;(C=Ei.handleError)==null||C.call.apply(C,[Ei].concat(_.x9(Jz(Error("kd")))))}}V.didPatch();vQ.didPatch(V)};
(E=V.functionComponent)?FFw({component:E,debugInstance:V.props.debugInstance,fn:R}):R()}};
djI=function(F){var W=F.type;if(!pek(W)||W===pn||W.componentType===kp)return!1;F.props.children=F.children.length>1?F.children:F.children[0];var E,h=(E=F.props.idomKey)!=null?E:F.type,d;if(lu()&&((d=lu()[MO])==null?void 0:d.key)===h){var V=lu(),R=V[MO];if(!R)throw Error("dc`"+V.tagName);var M;(M=R.updateSignalsFromIdomProps)==null||M.call(R,F.props);UjY(R);return!0}if(Rpk.has(W.name))throw M=W.name,W=(R=(V=xp)==null?void 0:V.name)!=null?R:"unknown",Error("cc`"+M+"`"+W);Znw(F.type,F.props,F.children);
F.props.renderedFromIdom=!0;(M=FFw({component:F.type,debugInstance:F.props.debugInstance,fn:function(){return I0k(F.type,F.props)}}))&&epG(M);
return!0};
Mcn=function(F){for(var W=0;W<Qn(F).length;W++)r$()};
UjY=function(F){var W=gYG();if(W)Mcn(W);else for(var E=0;E<F.numNodes;E++)(W=gYG())?Mcn(W):r$()};
gYG=function(){var F;return(F=lu()[MO])==null?void 0:F.sourceDynamicRange};
epG=function(F){F=m1k(F);F=Array.isArray(F)?F:[F];F=_.U(F);for(var W=F.next();!W.done;W=F.next())bu.insertBefore(W.value,lu()),r$()};
Q3S=function(F){var W=Dyr(),E=PQ(function(){return{value:typeof F==="function"?F():F}});
return[E.value,function(h){if(IW!==null){var d;(d=Ei.handleError)==null||d.call.apply(d,[Ei].concat(_.x9(Jz(Error("ld")))))}E.value=typeof h==="function"?h(E.value):h;W.__updateContext={nextState:W.state,isForced:!0};h=SS(W.effectContext);d=h8(!1);try{if(W.el){var V,R={},M=(R.props=W.props,R.type=W.JSC$8170___type,R.children=(V=W.props.children)!=null?V:[],R[WQ]=!0,R);try{FAY(W.el,M,!0)}catch(C){var g,t;(t=Ei.handleError)==null||t.call.apply(t,[Ei].concat(_.x9(Jz(C,(g=W.JSC$8170___type)==null?void 0:
g.TAG_NAME))))}}}finally{h8(d),SS(h)}}]};
FV=function(F,W){var E=ug,h=function(d){PX(E,function(){W(d)})};
window.addEventListener(F,h,void 0);_.$p(function(){window.removeEventListener(F,h,void 0)})};
_.ER=function(F,W){var E=ug;_.Xk(function(){var h,d=(h=W.observer)!=null?h:_.WZ().resolve(Ws);if(h=F.value){var V=zpr(h),R=[];W.showOption&&R.push(d.observe(h,function(){PX(E,function(){W.visibilityCallback(!0)})},W.showOption));
W.hideOption&&R.push(d.observe(h,function(){PX(E,function(){W.visibilityCallback(!1)})},W.hideOption));
W.prescanOption&&W.prescanCallback&&R.push(d.observe(h,function(){PX(E,function(){W.prescanCallback()})},W.prescanOption));
var M;V.visibilityMonitorKeys=((M=V.visibilityMonitorKeys)!=null?M:[]).concat(R)}})};
zpr=function(F){var W;return(W=F.polymerController)!=null?W:F};
_.ht=function(F){F.componentType=kp};
vYo=function(F,W){var E=tcr;return _.z(_.EG,null,wl(Ei.enableLazyTsx,function(){return _.z(CzG,{id:E,value:F,children:W})},function(){var h=BYw(E,F);
FO(h);h=SS(h);try{return W()}finally{SS(h)}}))};
CzG=function(F){var W=F.children;F=BYw(F.id,F.value);FO(F);F=SS(F);try{return _.z(_.EG,null,t8(W()))}finally{SS(F)}};
BYw=function(F,W){return Object.assign(Object.create(IRS),{id:F,contextValue:W})};
cbG=function(F){var W,E=ug;_.HX(function(){var h=SS(E),d=h8(!W);try{if(W)FAY(W,F.children(),!0);else if(W=t8(F.children()),!(W instanceof Element))throw Error("md");}finally{h8(d),SS(h)}});
return W};
DjW=function(F){var W,E=Zn(function(){var h=h8(!0);try{W=Qn(F())}finally{h8(h)}},!1);
return[W,E]};
k_r=function(F){F=F.buf.charCodeAt(F.pos++);return xjo[F]};
dT=function(F){var W=0,E=0;do{var h=k_r(F);W|=(h&31)<<E;E+=5}while(h&32);return W<0?W+4294967296:W};
LAG=function(F,W,E){AbY(F,W);F[W][s3b].unshift(E)};
AbY=function(F,W){if(!F[W]||!F[W][s3b]){var E=F[W],h=E?[E]:[];F[W]=function(){for(var d=_.U(h),V=d.next();!V.done;V=d.next())V.value.apply(this,arguments)};
F[W][s3b]=h}};
qdn=function(F){if(!F)return[];var W=[];F=_.U(F);for(var E=F.next();!E.done;E=F.next())E=E.value,Array.isArray(E)?W.push.apply(W,_.x9(qdn(E))):W.push(E);return W};
_.VQ=function(F,W){if(F&&$jG.test(F)||F==="//")return F;if(ZQb===void 0){ZQb=!1;try{var E=new URL("b","http://a");E.pathname="c%20d";ZQb=E.href==="http://a/c%20d"}catch(h){}}W||(W=document.baseURI||window.location.href);if(ZQb)try{return(new URL(F,W)).href}catch(h){return F}NQ||(NQ=document.implementation.createHTMLDocument("temp"),NQ.base=NQ.createElement("base"),NQ.head.appendChild(NQ.base),NQ.anchor=NQ.createElement("a"),NQ.body.appendChild(NQ.anchor));NQ.base.href=W;NQ.anchor.href=F;return NQ.anchor.href||
F};
HQY=function(F,W){return F.replace(Xrn,function(E,h,d,V){return h+"'"+_.VQ(d.replace(/["']/g,""),W)+"'"+V})};
PzY=function(F){return F.substring(0,F.lastIndexOf("/")+1)};
fRW=function(){Jbo=!1;for(var F=UR.length,W=0;W<F;W++){var E=UR[W];if(E)try{E()}catch(h){setTimeout(function(){throw h;})}}UR.splice(0,F);
aRY+=F};
_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry=function(F){console.log("["+F.is+"]: registered")};
bQw=function(F){OQn.push(F)};
RL=function(F){return lRn[F]||(lRn[F]=F.indexOf("-")<0?F:F.replace(nYn,function(W){return W[1].toUpperCase()}))};
en=function(F){return lRn[F]||(lRn[F]=F.replace(ybY,"-$1").toLowerCase())};
j3I=function(F,W){var E=W.parentInfo&&j3I(F,W.parentInfo);if(E)for(F=E.firstChild,E=0;F;F=F.nextSibling){if(W.parentIndex===E++)return F}else return F};
iQW=function(F,W){F=F._methodHost||F;return function(E){if(F[W])F[W](E,E.detail);else console.warn("listener method `"+W+"` not defined")}};
MQ=function(F){return F.indexOf(".")>=0};
gT=function(F){var W=F.indexOf(".");return W===-1?F:F.slice(0,W)};
rbw=function(F,W){return F.indexOf(W+".")===0};
QQ=function(F,W){return W.indexOf(F+".")===0};
zn=function(F,W,E){return W+E.slice(F.length)};
TYr=function(F,W){return F===W||rbw(F,W)||QQ(F,W)};
tt=function(F){if(Array.isArray(F)){for(var W=[],E=0;E<F.length;E++)for(var h=F[E].toString().split("."),d=0;d<h.length;d++)W.push(h[d]);return W.join(".")}return F};
oYr=function(F){return Array.isArray(F)?tt(F).split("."):F.toString().split(".")};
CX=function(F,W,E){W=oYr(W);for(var h=0;h<W.length;h++){if(!F)return;F=F[W[h]]}E&&(E.path=W.join("."));return F};
G_I=function(F,W,E){var h=oYr(W),d=h[h.length-1];if(h.length>1){for(W=0;W<h.length-1;W++)if(F=F[h[W]],!F)return;F[d]=E}else F[W]=E;return h.join(".")};
YdY=function(F,W,E){var h=F[W];if(!h)h=F[W]={};else if(!F.hasOwnProperty(W)&&(h=F[W]=Object.create(F[W]),E))for(var d in h)for(F=h[d],W=h[d]=Array(F.length),E=0;E<F.length;E++)W[E]=F[E];return h};
vs=function(F,W,E,h,d,V){if(W){var R=!1,M=Bs++,g;for(g in E){var t=d?gT(g):g;if(t=W[t])for(var C=0,B=t.length,I=void 0;C<B&&(I=t[C]);C++)I.info&&I.info.lastRun===M||d&&!wrY(g,I.trigger)||(I.info&&(I.info.lastRun=M),I.fn(F,g,E,h,I.info,d,V),R=!0)}return R}return!1};
wrY=function(F,W){if(W){var E=W.name;return E==F||!(!W.structured||!rbw(E,F))||!(!W.wildcard||!QQ(E,F))}return!0};
uEY=function(F,W,E,h,d){W=typeof d.method==="string"?F[d.method]:d.method;E=d.property;W?W.call(F,F.__data[E],h[E]):d.dynamicFn||console.warn("observer method `"+d.method+"` not defined")};
SdI=function(F,W,E,h){E={value:E,queueProperty:!0};h&&(E.path=h);(0,_.IL)(F).dispatchEvent(new CustomEvent(W,{detail:E}))};
prk=function(F,W,E,h,d,V){V=(h=(V?gT(W):W)!=W?W:null)?CX(F,h):F.__data[W];h&&V===void 0&&(V=E[W]);SdI(F,d.eventName,V,h)};
mjb=function(F,W,E,h,d){E=F.__data[W];cs&&(E=cs(E,d.attrName,"attribute",F));F._propertyToAttribute(W,d.attrName,E)};
F9k=function(F){var W=F.constructor.__orderedComputedDeps;if(!W){W=new Map;for(var E=F.__computeEffects,h=KAw(F),d=h.counts,V=h.ready,R=h.total;h=V.shift();)W.set(h,W.size),(h=E[h])&&h.forEach(function(M){M=M.info.methodInfo;--R;--d[M]===0&&V.push(M)});
R!==0&&console.warn("Computed graph for "+F.localName+" incomplete; circular?");F.constructor.__orderedComputedDeps=W}return W};
KAw=function(F){var W=F.__computeInfo,E={};F=F.__computeEffects;var h=[],d=0,V;for(V in W){var R=W[V];d+=E[V]=R.args.filter(function(g){return!g.literal}).length+(R.dynamicFn?1:0)}for(var M in F)W[M]||h.push(M);
return{counts:E,ready:h,total:d}};
EVR=function(F,W,E,h,d){W=W9G(F,W,E,h,d);if(W===Dm)return!1;d=d.methodInfo;if(F.__dataHasAccessor&&F.__dataHasAccessor[d])return F._setPendingProperty(d,W,!0);F[d]=W;return!1};
NkY=function(F,W,E,h,d,V,R){E.bindings=E.bindings||[];h={kind:h,target:d,parts:V,literal:R,isCompound:V.length!==1};E.bindings.push(h);h.target&&h.kind!="attribute"&&h.kind!="text"&&!h.isCompound&&h.parts[0].mode==="{"&&(E=h.parts[0],V=E.negate,h.listenerEvent=E.event||en(d)+"-changed",h.listenerNegate=V);d=W.nodeInfoList.length;for(E=0;E<h.parts.length;E++){var M=h.parts[E];M.compoundIndex=E;V=F;R=W;var g=h,t=M,C=d;if(!t.literal)if(g.kind==="attribute"&&g.target[0]==="-")console.warn("Cannot set attribute "+
g.target+' because "-" is not a valid attribute starting character');else for(M=t.dependencies,g={index:C,binding:g,part:t,evaluator:V},t=0;t<M.length;t++)C=M[t],typeof C=="string"&&(C=hwY(C),C.wildcard=!0),V._addTemplatePropertyEffect(R,C.rootProperty,{fn:dYr,info:g,trigger:C})}};
dYr=function(F,W,E,h,d,V,R){R=R[d.index];var M=d.binding,g=d.part;V&&g.source&&W.length>g.source.length&&M.kind=="property"&&!M.isCompound&&R.__isPropertyEffectsClient&&R.__dataHasAccessor&&R.__dataHasAccessor[M.target]?(E=E[W],W=zn(g.source,M.target,W),R._setPendingPropertyOrPath(W,E,!1,!0)&&F._enqueueClient(R)):(W=d.evaluator._evaluateBinding(F,g,W,E,h,V),W!==Dm&&(M.isCompound&&(E=R.__dataCompoundStorage[M.target],E[g.compoundIndex]=W,W=E.join("")),M.kind==="attribute"||M.target!=="textContent"&&
(M.target!=="value"||R.localName!=="input"&&R.localName!=="textarea")||(W=W==void 0?"":W),g=W,cs&&(g=cs(g,M.target,M.kind,R)),M.kind=="attribute"?F._valueToNodeAttribute(R,g,M.target):(M=M.target,R.__isPropertyEffectsClient&&R.__dataHasAccessor&&R.__dataHasAccessor[M]?R.__readOnly&&R.__readOnly[M]||R._setPendingProperty(M,g)&&F._enqueueClient(R):F._setUnmanagedPropertyToNode(R,M,g))))};
Vbe=function(F,W,E){if(E.listenerEvent){var h=E.parts[0];F.addEventListener(E.listenerEvent,function(d){var V=E.target,R=h.source,M=h.negate,g=d.detail,t=g&&g.path;t?(R=zn(V,R,t),d=g&&g.value):d=d.currentTarget[V];W.__readOnly&&W.__readOnly[R]||!W._setPendingPropertyOrPath(R,M?!d:d,!0,!!t)||g&&g.queueProperty||W._invalidateProperties()})}};
UYe=function(F,W,E,h,d,V){V=W.static||V&&(typeof V!=="object"||V[W.methodName]);d={methodName:W.methodName,args:W.args,methodInfo:d,dynamicFn:V};for(var R=0,M=void 0;R<W.args.length&&(M=W.args[R]);R++)M.literal||F._addPropertyEffect(M.rootProperty,E,{fn:h,info:d,trigger:M});V&&F._addPropertyEffect(W.methodName,E,{fn:h,info:d});return d};
W9G=function(F,W,E,h,d){h=F._methodHost||F;var V=h[d.methodName];if(V)return F=F._marshalArgs(d.args,W,E),F===Dm?Dm:V.apply(h,F);d.dynamicFn||console.warn("method `"+d.methodName+"` not defined")};
Rww=function(F){for(var W="",E=0;E<F.length;E++)W+=F[E].literal||"";return W};
gVe=function(F){if(F=F.match(/([^\s]+?)\(([\s\S]*)\)/)){var W={methodName:F[1],static:!0,args:ewb};return F[2].trim()?Mbk(F[2].replace(/\\,/g,"&comma;").split(","),W):W}return null};
Mbk=function(F,W){W.args=F.map(function(E){E=hwY(E);E.literal||(W.static=!1);return E},this);
return W};
hwY=function(F){F=F.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1");var W={name:F,value:"",literal:!1},E=F[0];E==="-"&&(E=F[1]);E>="0"&&E<="9"&&(E="#");switch(E){case "'":case '"':W.value=F.slice(1,-1);W.literal=!0;break;case "#":W.value=Number(F),W.literal=!0}W.literal||(W.rootProperty=gT(F),W.structured=MQ(F),W.structured&&(W.wildcard=F.slice(-2)==".*",W.wildcard&&(W.name=F.slice(0,-2))));return W};
Q6Y=function(F,W,E){F=CX(F,E);F===void 0&&(F=W[E]);return F};
zwr=function(F,W,E,h){h={indexSplices:h};xO&&!F._overrideLegacyUndefined&&(W.splices=h);F.notifyPath(E+".splices",h);F.notifyPath(E+".length",W.length);xO&&!F._overrideLegacyUndefined&&(h.indexSplices=[])};
kO=function(F,W,E,h,d,V){zwr(F,W,E,[{index:h,addedCount:d,removed:V,object:W,type:"splice"}])};
tbG=function(F){F=HQY((F.body?F.body:F).textContent,F.baseURI);var W=document.createElement("style");W.textContent=F;return W};
BkY=function(F){F=F.trim().split(/\s+/);for(var W=[],E=0;E<F.length;E++)W.push.apply(W,_.x9(CJr(F[E])));return W};
CJr=function(F){var W=At.import(F);if(!W)return console.warn("Could not find style data in module named",F),[];if(W._styles===void 0){F=[];F.push.apply(F,_.x9(_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(W)));var E=W.querySelector("template");E&&F.push.apply(F,_.x9(vVW(E,W.assetpath)));W._styles=F}return W._styles};
vVW=function(F,W){if(!F._styles){for(var E=[],h=F.content.querySelectorAll("style"),d=0;d<h.length;d++){var V=h[d],R=V.getAttribute("include");R&&E.push.apply(E,_.x9(BkY(R).filter(function(M,g,t){return t.indexOf(M)===g})));
W&&(V.textContent=HQY(V.textContent,W));E.push(V)}F._styles=E}return F._styles};
I1r=function(F){return(F=At.import(F))?_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(F):[]};
_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(F){var W=[];F=F.querySelectorAll("link[rel=import][type~=css]");for(var E=0;E<F.length;E++){var h=F[E];if(h.import){var d=h.import;if((h=h.hasAttribute("shady-unscoped"))&&!d._unscopedStyle){var V=tbG(d);V.setAttribute("shady-unscoped","");d._unscopedStyle=V}else d._style||(d._style=tbG(d));W.push(h?d._unscopedStyle:d._style)}}return W};
DYI=function(F){F=F.trim().split(/\s+/);for(var W="",E=0;E<F.length;E++)W+=cGr(F[E]);return W};
cGr=function(F){var W=At.import(F);if(W&&W._cssText===void 0){var E=_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(W),h=W.querySelector("template");h&&(E+=xYR(h,W.assetpath));W._cssText=E||null}W||console.warn("Could not find style data in module named",F);return W&&W._cssText||""};
xYR=function(F,W){var E="";F=vVW(F,W);for(W=0;W<F.length;W++){var h=F[W];h.parentNode&&h.parentNode.removeChild(h);E+=h.textContent}return E};
_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(F){var W="";F=_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(F);for(var E=0;E<F.length;E++)W+=F[E].textContent;return W};
sR=function(F,W){return{index:F,removed:[],addedCount:W}};
AGe=function(F,W,E,h){var d=0,V=0,R=0,M=0,g=Math.min(W-d,h-V);if(d==0&&V==0)a:{for(R=0;R<g;R++)if(F[R]!==E[R])break a;R=g}if(W==F.length&&h==E.length){M=F.length;for(var t=E.length,C=0;C<g-R&&ktk(F[--M],E[--t]);)C++;M=C}d+=R;V+=R;W-=M;h-=M;if(W-d==0&&h-V==0)return[];if(d==W){for(W=sR(d,0);V<h;)W.removed.push(E[V++]);return[W]}if(V==h)return[sR(d,W-d)];g=d;R=V;h=h-R+1;M=W-g+1;W=Array(h);for(t=0;t<h;t++)W[t]=Array(M),W[t][0]=t;for(t=0;t<M;t++)W[0][t]=t;for(t=1;t<h;t++)for(C=1;C<M;C++)if(F[g+C-1]===
E[R+t-1])W[t][C]=W[t-1][C-1];else{var B=W[t-1][C]+1,I=W[t][C-1]+1;W[t][C]=B<I?B:I}g=W.length-1;R=W[0].length-1;h=W[g][R];for(F=[];g>0||R>0;)g==0?(F.push(2),R--):R==0?(F.push(3),g--):(M=W[g-1][R-1],t=W[g-1][R],C=W[g][R-1],B=t<C?t<M?t:M:C<M?C:M,B==M?(M==h?F.push(0):(F.push(1),h=M),g--,R--):B==t?(F.push(3),g--,h=t):(F.push(2),R--,h=C));F.reverse();W=void 0;g=[];for(R=0;R<F.length;R++)switch(F[R]){case 0:W&&(g.push(W),W=void 0);d++;V++;break;case 1:W||(W=sR(d,0));W.addedCount++;d++;W.removed.push(E[V]);
V++;break;case 2:W||(W=sR(d,0));W.addedCount++;d++;break;case 3:W||(W=sR(d,0)),W.removed.push(E[V]),V++}W&&g.push(W);return g};
s6W=function(F,W){return AGe(F,F.length,W,W.length)};
ktk=function(F,W){return F===W};
q8n=function(F){if(F instanceof L9o)return F.value;throw Error("Dd`"+F);};
Zxo=function(F,W){for(var E in W)E===null?F.style.removeProperty(E):F.style.setProperty(E,W[E])};
XSe=function(F,W){return(F=window.getComputedStyle(F).getPropertyValue(W))?F.trim():""};
a1k=function(F){requestAnimationFrame(function(){HxI?HxI(F):(PJr||(PJr=new Promise(function(W){JGo=W}),document.readyState==="complete"?JGo():document.addEventListener("readystatechange",function(){document.readyState==="complete"&&JGo()})),PJr.then(function(){F&&F()}))})};
bxY=function(F){f1Y=F&&F.shimcssproperties?!1:OxR||!(navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)||!window.CSS||!CSS.supports||!CSS.supports("box-shadow","0 0 0 var(--foo)"))};
ixI=function(F){if(!(l1W.indexOf(F)>-1)&&F!=="touchend"&&nVI&&yGn&&j6o)return{passive:!0}};
Gtw=function(F){for(var W=rGW?["click"]:l1W,E=0,h;E<W.length;E++)h=W[E],F?(TkY.length=0,document.addEventListener(h,oVW,!0)):document.removeEventListener(h,oVW,!0)};
LX=function(F){var W=F.type;return l1W.indexOf(W)>-1?W==="mousemove"?(W=F.buttons===void 0?1:F.buttons,F instanceof window.MouseEvent&&!Y8W&&(W=wSk[F.which]||0),!!(W&1)):(F.button===void 0?0:F.button)===0:!1};
uFW=function(F){if(F.type==="click"){if(F.detail===0)return!0;var W=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(F);if(!W.nodeType||W.nodeType!==Node.ELEMENT_NODE)return!0;W=W.getBoundingClientRect();var E=F.pageX;F=F.pageY;return!(E>=W.left&&E<=W.right&&F>=W.top&&F<=W.bottom)}return!1};
S8w=function(F,W,E){F.movefn=W;F.upfn=E;document.addEventListener("mousemove",W);document.addEventListener("mouseup",E)};
qQ=function(F){document.removeEventListener("mousemove",F.movefn);document.removeEventListener("mouseup",F.upfn);F.movefn=null;F.upfn=null};
pSY=function(F,W){for(var E=document.elementFromPoint(F,W),h=E;h&&h.shadowRoot&&!window.ShadyDOM;){var d=h;h=h.shadowRoot.elementFromPoint(F,W);if(d===h)break;h&&(E=h)}return E};
_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(F){var W=mYY(F);return W.length>0?W[0]:F.target};
_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(F){var W=F.type,E=F.currentTarget.__polymerGestures;if(E&&(E=E[W])){if(!F.__polymerGesturesHandled&&(F.__polymerGesturesHandled={},W.slice(0,5)==="touch")){var h=F.changedTouches[0];W==="touchstart"&&F.touches.length===1&&(K9I=h.identifier);if(K9I!==h.identifier)return;nVI||(W==="touchstart"||W==="touchmove")&&_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(F)}h=
F.__polymerGesturesHandled;if(!h.skip){for(var d=0,V;d<$O.length;d++)V=$O[d],E[V.name]&&!h[V.name]&&V.flow&&V.flow.start.indexOf(F.type)>-1&&V.reset&&V.reset();for(d=0;d<$O.length;d++)V=$O[d],E[V.name]&&!h[V.name]&&(h[V.name]=!0,V[W](F))}}};
_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(F){var W=F.changedTouches[0],E=F.type;if(E==="touchstart")FcR=W.clientX,WcI=W.clientY,Eab=!1;else if(E==="touchmove"&&!Eab){Eab=!0;E="auto";for(var h=mYY(F),d=0,V;d<h.length;d++)if(V=h[d],V.__polymerGesturesTouchAction){E=V.__polymerGesturesTouchAction;break}h=!1;d=Math.abs(FcR-W.clientX);W=Math.abs(WcI-W.clientY);F.cancelable&&(E==="none"?h=!0:E==="pan-x"?h=W>d:E==="pan-y"&&(h=d>W));h?F.preventDefault():
Zm("track")}};
Hs=function(F,W,E){return XV[W]?(_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(F,W,E),!0):!1};
Ps=function(F,W,E){return XV[W]?(_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(F,W,E),!0):!1};
_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(F,W,E){var h=XV[W],d=h.deps,V=h.name,R=F.__polymerGestures;R||(F.__polymerGestures=R={});for(var M=0,g,t;M<d.length;M++)g=d[M],rGW&&l1W.indexOf(g)>-1&&g!=="click"||((t=R[g])||(R[g]=t={_count:0}),t._count===0&&F.addEventListener(g,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,ixI(g)),t[V]=(t[V]||0)+1,t._count=(t._count||0)+1);F.addEventListener(W,E);h.touchAction&&_.Jt(F,h.touchAction)};
_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(F,W,E){var h=XV[W],d=h.deps;h=h.name;var V=F.__polymerGestures;if(V)for(var R=0,M,g;R<d.length;R++)M=d[R],(g=V[M])&&g[h]&&(g[h]=(g[h]||1)-1,g._count=(g._count||1)-1,g._count===0&&F.removeEventListener(M,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,ixI(M)));F.removeEventListener(W,E)};
hMw=function(F){$O.push(F);for(var W=0;W<F.emits.length;W++)XV[F.emits[W]]=F};
_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(F){for(var W=0,E;W<$O.length;W++){E=$O[W];for(var h=0,d;h<E.emits.length;h++)if(d=E.emits[h],d===F)return E}return null};
_.Jt=function(F,W){nVI&&F instanceof HTMLElement&&aL.run(function(){F.style.touchAction=W});
F.__polymerGesturesTouchAction=W};
_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(F,W,E){W=new Event(W,{bubbles:!0,cancelable:!0,composed:!0});W.detail=E;(0,_.IL)(F).dispatchEvent(W);W.defaultPrevented&&(F=E.preventer||E.sourceEvent)&&F.preventDefault&&F.preventDefault()};
Zm=function(F){F=_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(F);F.info&&(F.info.prevent=!0)};
fX=function(F,W,E,h){W&&_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(W,F,{x:E.clientX,y:E.clientY,sourceEvent:E,preventer:h,prevent:function(d){return Zm(d)}})};
dvw=function(F,W,E){if(F.prevent)return!1;if(F.started)return!0;E=Math.abs(F.y-E);return Math.abs(F.x-W)>=5||E>=5};
N9n=function(F,W,E){if(W){var h=F.moves[F.moves.length-2],d=F.moves[F.moves.length-1],V=d.x-F.x,R=d.y-F.y,M=0;if(h){var g=d.x-h.x;M=d.y-h.y}_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(W,"track",{state:F.state,x:E.clientX,y:E.clientY,dx:V,dy:R,ddx:g,ddy:M,sourceEvent:E,hover:function(){return pSY(E.clientX,E.clientY)}})}};
UvW=function(F,W,E){var h=Math.abs(W.clientX-F.x),d=Math.abs(W.clientY-F.y),V=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(E||W);!V||Vmb[V.localName]&&V.hasAttribute("disabled")||!(isNaN(h)||isNaN(d)||h<=25&&d<=25||uFW(W))||F.prevent||_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(V,"tap",{x:W.clientX,y:W.clientY,sourceEvent:W,preventer:E})};
RMR=function(F,W,E,h,d){var V;d&&(V=typeof E==="object"&&E!==null)&&(h=F.__dataTemp[W]);h=h!==E&&(h===h||E===E);V&&h&&(F.__dataTemp[W]=E);return h};
Mmn=function(){if(OR&&!bM){if(!eMI){eMI=!0;var F=document.createElement("style");F.textContent="dom-bind,dom-if,dom-repeat{display:none;}";document.head.appendChild(F)}return!0}return!1};
Q$W=function(){return gaW};
zMW=function(F,W){gaW=F;Object.setPrototypeOf(F,W.prototype);new W;gaW=null};
tmr=function(F,W){for(var E=0;E<W.length;E++){var h=W[E];if(!!F!=!!h.__hideTemplateChildren__)if(h.nodeType===Node.TEXT_NODE)F?(h.__polymerTextContent__=h.textContent,h.textContent=""):h.textContent=h.__polymerTextContent__;else if(h.localName==="slot")if(F)h.__polymerReplaced__=document.createComment("hidden-slot"),(0,_.IL)((0,_.IL)(h).parentNode).replaceChild(h.__polymerReplaced__,h);else{var d=h.__polymerReplaced__;d&&(0,_.IL)((0,_.IL)(d).parentNode).replaceChild(h,d)}else h.style&&(F?(h.__polymerDisplay__=
h.style.display,h.style.display="none"):h.style.display=h.__polymerDisplay__);h.__hideTemplateChildren__=F;h._showHideChildren&&h._showHideChildren(F)}};
CAR=function(F){return(F=F.__dataHost)&&F._methodHost||F};
I6G=function(F,W,E){var h=E.mutableData?B9R:lM;nX.mixin&&(h=nX.mixin(h));var d=function(){return h.apply(this,arguments)||this};
_.k(d,h);d.prototype.__templatizeOptions=E;d.prototype._bindTemplate(F);vaW(d,F,W,E);return d};
ADn=function(F,W,E,h){var d=E.forwardHostProp;if(d&&W.hasHostProps){var V=F.localName=="template",R=W.templatizeTemplateClass;if(!R){if(V){var M=E.mutableData?cDY:Dvr;R=function(){return M.apply(this,arguments)||this};
_.k(R,M);R=W.templatizeTemplateClass=R}else{var g=F.constructor;R=function(){return g.apply(this,arguments)||this};
_.k(R,g);R=W.templatizeTemplateClass=R}var t=W.hostProps,C;for(C in t)R.prototype._addPropertyEffect("_host_"+C,R.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:xvk(d)}),R.prototype._createNotifyingProperty("_host_"+C);yQ&&h&&kce(W,E,h)}F.__dataProto&&Object.assign(F.__data,F.__dataProto);if(V)zMW(F,R),F.__dataTemp={},F.__dataPending=null,F.__dataOld=null,F._enableProperties();else{Object.setPrototypeOf(F,R.prototype);W=W.hostProps;for(var B in W)B="_host_"+B,B in F&&(W=F[B],delete F[B],F.__data[B]=
W)}}};
xvk=function(F){return function(W,E,h){F.call(W.__templatizeOwner,E.substring(6),h[E])}};
vaW=function(F,W,E,h){var d=E.hostProps||{},V;for(V in h.instanceProps){delete d[V];var R=h.notifyInstanceProp;R&&F.prototype._addPropertyEffect(V,F.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:s$W(R)})}if(h.forwardHostProp&&W.__dataHost)for(var M in d)E.hasHostProps||(E.hasHostProps=!0),F.prototype._addPropertyEffect(M,F.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:Lcb()})};
s$W=function(F){return function(W,E,h){F.call(W.__templatizeOwner,W,E,h[E])}};
Lcb=function(){return function(F,W,E){F.__dataHost._setPendingPropertyOrPath("_host_"+W,E[W],!0,!0)}};
nX=function(F,W,E){if(jn&&!CAR(F))throw Error("Jd");E=E||{};if(F.__templatizeOwner)throw Error("Kd");F.__templatizeOwner=W;var h=(W?W.constructor:lM)._parseTemplate(F),d=h.templatizeInstanceClass;d||(d=I6G(F,h,E),h.templatizeInstanceClass=d);var V=CAR(F);ADn(F,h,E,V);E=function(){return d.apply(this,arguments)||this};
_.k(E,d);E.prototype._methodHost=V;E.prototype.__dataHost=F;E.prototype.__templatizeOwner=W;E.prototype.__hostProps=h.hostProps;return E};
kce=function(F,W,E){E=E.constructor._properties;F=F.propertyEffects;W=W.instanceProps;for(var h in F)if(!(E[h]||W&&W[h]))for(var d=F[h],V=0;V<d.length;V++){var R=d[V].info.part;if(!R.signature||!R.signature.static){console.warn("Property '"+h+"' used in template but not declared in 'properties'; attribute will not be observed.");break}}};
qQo=function(F,W){for(var E;W;)if(E=W.__dataHost?W:W.__templatizeInstance)if(E.__dataHost!=F)W=E.__dataHost;else return E;else W=(0,_.IL)(W).parentNode;return null};
iM=function(F){return F.localName==="slot"};
$vS=function(){for(var F=rT.prototype,W="cloneNode appendChild insertBefore removeChild replaceChild setAttribute removeAttribute querySelector querySelectorAll attachShadow".split(" "),E={},h=0;h<W.length;E={method$jscomp$32:void 0},h++)E.method$jscomp$32=W[h],F[E.method$jscomp$32]=function(d){return function(){return this.node[d.method$jscomp$32].apply(this.node,arguments)}}(E)};
ZIG=function(F,W){for(var E={},h=0;h<W.length;E={name$jscomp$378:void 0},h++)E.name$jscomp$378=W[h],Object.defineProperty(F,E.name$jscomp$378,{get:function(d){return function(){return this.node[d.name$jscomp$378]}}(E),
configurable:!0})};
XHY=function(){for(var F=rT.prototype,W=["textContent","innerHTML","className"],E={},h=0;h<W.length;E={name$jscomp$379:void 0},h++)E.name$jscomp$379=W[h],Object.defineProperty(F,E.name$jscomp$379,{get:function(d){return function(){return this.node[d.name$jscomp$379]}}(E),
set:function(d){return function(V){this.node[d.name$jscomp$379]=V}}(E),
configurable:!0})};
HIY=function(){Tn=document.documentElement.getAttribute("dir");Tn=document.documentElement.getAttribute("dir");for(var F=0;F<oL.length;F++){var W=oL[F];W.__autoDirOptOut||W.setAttribute("dir",Tn)}};
f6e=function(){Gn=!0;requestAnimationFrame(function(){Gn=!1;PAr(JDk);setTimeout(function(){for(var F=0,W=YO.length;F<W;F++)a6Y(YO.shift())})})};
PAr=function(F){for(;F.length;)a6Y(F.shift())};
a6Y=function(F){var W=F[0],E=F[1];F=F[2];try{E.apply(W,F)}catch(h){setTimeout(function(){throw h;})}};
_.OIo=function(F,W,E){Gn||f6e();JDk.push([F,W,E])};
_.wT=function(F,W,E){Gn||f6e();YO.push([F,W,E])};
nao=function(F,W){W=W===void 0?!1:W;if(!bIk||!l6n||!bIk.handlesDynamicScoping)return null;var E=l6n.ScopingShim;if(!E)return null;var h=E.scopeForNode(F),d=(0,_.IL)(F).getRootNode(),V=function(R){if((0,_.IL)(R).getRootNode()===d){var M=Array.from(bIk.nativeMethods.querySelectorAll.call(R,"*"));M.push(R);for(R=0;R<M.length;R++){var g=M[R];if((0,_.IL)(g).getRootNode()===d){var t=E.currentScopeForNode(g);t!==h&&(t!==""&&E.unscopeNode(g,t),E.scopeNode(g,h))}}}};
V(F);return W?(W=new MutationObserver(function(R){for(var M=0;M<R.length;M++)for(var g=R[M],t=0;t<g.addedNodes.length;t++){var C=g.addedNodes[t];C.nodeType===Node.ELEMENT_NODE&&V(C)}}),W.observe(F,{childList:!0,
subtree:!0}),W):null};
yDb=function(){document.body.removeAttribute("unresolved")};
oab=function(F){var W=F=F.replace(j$o,"").replace(iIb,""),E=new rDG;E.start=0;E.end=W.length;for(var h=E,d=0,V=W.length;d<V;d++)if(W[d]==="{"){h.rules||(h.rules=[]);var R=h,M=R.rules[R.rules.length-1]||null;h=new rDG;h.start=d+1;h.parent=R;h.previous=M;R.rules.push(h)}else W[d]==="}"&&(h.end=d+1,h=h.parent||E);return T9Y(E,F)};
T9Y=function(F,W){var E=W.substring(F.start,F.end-1);F.parsedCssText=F.cssText=E.trim();F.parent&&(E=W.substring(F.previous?F.previous.end:F.parent.start,F.start-1),E=_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(E),E=E.replace(Gcn," "),E=E.substring(E.lastIndexOf(";")+1),E=F.parsedSelector=F.selector=E.trim(),F.atRule=E.indexOf("@")===0,F.atRule?E.indexOf("@media")===0?F.type=4:E.match(YQo)&&(F.type=7,F.keyframesName=F.selector.split(Gcn).pop()):E.indexOf("--")===
0?F.type=1E3:F.type=1);if(E=F.rules)for(var h=0,d=E.length,V=void 0;h<d&&(V=E[h]);h++)T9Y(V,W);return F};
_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(F){return F.replace(/\\([0-9a-f]{1,6})\s/gi,function(){for(var W=arguments[1],E=6-W.length;E--;)W="0"+W;return"\\"+W})};
wHn=function(F,W,E){E=E===void 0?"":E;var h="";if(F.cssText||F.rules){var d=F.rules;if(d&&!_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(d))for(var V=0,R=d.length,M=void 0;V<R&&(M=d[V]);V++)h=wHn(M,W,h);else W?W=F.cssText:(W=F.cssText,W=W.replace(uYo,"").replace(SQr,""),W=W.replace(pHI,"").replace(mvo,"")),(h=W.trim())&&(h="  "+h+"\n")}h&&(F.selector&&(E+=F.selector+" {\n"),E+=h,F.selector&&(E+="}\n\n"));return E};
_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(F){F=F[0];return!!F&&!!F.selector&&F.selector.indexOf("--")===0};
FEG=function(F){if(F=Kce[F])F._applyShimCurrentVersion=F._applyShimCurrentVersion||0,F._applyShimValidatingVersion=F._applyShimValidatingVersion||0,F._applyShimNextVersion=(F._applyShimNextVersion||0)+1};
WEw=function(F){return F._applyShimCurrentVersion===F._applyShimNextVersion};
h9W=function(F){F._applyShimValidatingVersion=F._applyShimNextVersion;F._validating||(F._validating=!0,EPn.then(function(){F._applyShimCurrentVersion=F._applyShimNextVersion;F._validating=!1}))};
NXe=function(F){if(!F)return"";typeof F==="string"&&(F=oab(F));return wHn(F,dBe)};
VXW=function(F){!F.__cssRules&&F.textContent&&(F.__cssRules=oab(F.textContent));return F.__cssRules||null};
R9b=function(F,W,E,h){if(F){var d=!1,V=F.type;if(h&&V===4){var R=F.selector.match(UBR);R&&(window.matchMedia(R[1]).matches||(d=!0))}V===1?W(F):E&&V===7?E(F):V===1E3&&(d=!0);if((F=F.rules)&&!d)for(d=0,V=F.length,R=void 0;d<V&&(R=F[d]);d++)R9b(R,W,E,h)}};
e9b=function(F,W){var E=F.indexOf("var(");if(E===-1)return W(F,"","","");a:{var h=0;var d=E+3;for(var V=F.length;d<V;d++)if(F[d]==="(")h++;else if(F[d]===")"&&--h===0)break a;d=-1}h=F.substring(E+4,d);E=F.substring(0,E);F=e9b(F.substring(d+1),W);V=h.indexOf(",");if(V===-1)return W(E,h.trim(),"",F);d=h.substring(0,V).trim();h=h.substring(V+1).trim();return W(E,d,h,F)};
MXY=function(F){if(uM!==void 0)return uM;if(F.__cssBuild===void 0){var W=F.getAttribute("css-build");if(W)F.__cssBuild=W;else{a:{W=F.localName==="template"?F.content.firstChild:F.firstChild;if(W instanceof Comment&&(W=W.textContent.trim().split(":"),W[0]==="css-build")){W=W[1];break a}W=""}if(W!==""){var E=F.localName==="template"?F.content.firstChild:F.firstChild;E.parentNode.removeChild(E)}F.__cssBuild=W}}return F.__cssBuild||""};
QVe=function(F,W,E,h){for(var d=W._noAccessors,V=Object.getOwnPropertyNames(W),R=0;R<V.length;R++){var M=V[R];if(!(M in h))if(d)F[M]=W[M];else{var g=Object.getOwnPropertyDescriptor(W,M);g&&(g.configurable=!0,Object.defineProperty(F,M,g))}}for(var t in gPo)W[t]&&(E[t]=E[t]||[],E[t].push(W[t]))};
z9e=function(F,W,E){W=W||[];for(var h=F.length-1;h>=0;h--){var d=F[h];d?Array.isArray(d)?z9e(d,W):W.indexOf(d)<0&&(!E||E.indexOf(d)<0)&&W.unshift(d):console.warn("behavior is null, check for missing or 404 import")}return W};
tXk=function(F,W){for(var E in W){var h=F[E],d=W[E];F[E]=!("value"in d)&&h&&"value"in h?Object.assign({value:h.value},d):d}};
vPo=function(F,W,E){var h={},d=function(){return W.apply(this,arguments)||this};
_.k(d,W);d._finalizeClass=function(){if(this.hasOwnProperty("generatedFrom")){if(R)for(var g=0,t;g<R.length;g++)t=R[g],t.properties&&this.createProperties(t.properties),t.observers&&this.createObservers(t.observers,t.properties);F.properties&&this.createProperties(F.properties);F.observers&&this.createObservers(F.observers,F.properties);this._prepareTemplate()}else W._finalizeClass.call(this)};
d.prototype.created=function(){W.prototype.created.call(this);var g=h.created;if(g)for(var t=0;t<g.length;t++)g[t].call(this)};
d.prototype._registered=function(){var g=d.prototype;if(!g.hasOwnProperty("__hasRegisterFinished")){g.__hasRegisterFinished=!0;W.prototype._registered.call(this);OR&&M(g);g=Object.getPrototypeOf(this);var t=h.beforeRegister;if(t)for(var C=0;C<t.length;C++)t[C].call(g);if(t=h.registered)for(C=0;C<t.length;C++)t[C].call(g)}};
d.prototype._applyListeners=function(){W.prototype._applyListeners.call(this);var g=h.listeners;if(g)for(var t=0;t<g.length;t++){var C=g[t];if(C)for(var B in C)this._addMethodEventListenerToNode(this,B,C[B])}};
d.prototype._ensureAttributes=function(){var g=h.hostAttributes;if(g)for(var t=g.length-1;t>=0;t--){var C=g[t],B;for(B in C)this._ensureAttribute(B,C[B])}W.prototype._ensureAttributes.call(this)};
d.prototype.ready=function(){W.prototype.ready.call(this);var g=h.ready;if(g)for(var t=0;t<g.length;t++)g[t].call(this)};
d.prototype.attached=function(){W.prototype.attached.call(this);var g=h.attached;if(g)for(var t=0;t<g.length;t++)g[t].call(this)};
d.prototype.detached=function(){W.prototype.detached.call(this);var g=h.detached;if(g)for(var t=0;t<g.length;t++)g[t].call(this)};
d.prototype.attributeChanged=function(g,t,C){W.prototype.attributeChanged.call(this);var B=h.attributeChanged;if(B)for(var I=0;I<B.length;I++)B[I].call(this,g,t,C)};
_.Sn.Object.defineProperties(d,{properties:{configurable:!0,enumerable:!0,get:function(){var g={};if(R)for(var t=0;t<R.length;t++)tXk(g,R[t].properties);tXk(g,F.properties);return g}},
observers:{configurable:!0,enumerable:!0,get:function(){var g=[];if(R)for(var t=0,C;t<R.length;t++)C=R[t],C.observers&&(g=g.concat(C.observers));F.observers&&(g=g.concat(F.observers));return g}}});
if(E){Array.isArray(E)||(E=[E]);var V=W.prototype.behaviors;var R=z9e(E,null,V);d.prototype.behaviors=V?V.concat(E):R}var M=function(g){if(R)for(var t=R,C=0;C<t.length;C++)QVe(g,t[C],h,Cvo);QVe(g,F,h,BXb)};
OR||M(d.prototype);d.generatedFrom=F;return d};
xBe=function(F){var W=typeof F!=="string"?F:{is:F,notifyObserversOnUndefined:!0};W.fastInit===void 0&&(W.fastInit=!0);return function(E){if(!W.disableInheritanceCheck&&Object.getPrototypeOf(E.prototype).constructor!==_.pX)throw Error("Od");var h=E.prototype;h.is=W.is;LAG(h,"created",function(){this.hostElement=this;this.polymerController=this});
IBw(h,E,W.fastInit);W.notifyObserversOnUndefined&&(h._overrideLegacyUndefined=!0);if(cUR)for(var d=_.U(Object.getOwnPropertyNames(h)),V=d.next();!V.done;V=d.next()){V=V.value;var R=Object.getOwnPropertyDescriptor(h,V);R.enumerable===!1&&(R.enumerable=!0,Object.defineProperty(h,V,R))}if("template"in E)var M=function(){return E.template};
else W.template!==void 0&&(M=W.template);if(M!==void 0){var g;Object.defineProperty(h,"_template",{get:function(){g===void 0&&(g=M());return g},
set:function(t){g=t},
configurable:!0,enumerable:!0})}Polymer(h);E[DBw]=h}};
kFY=function(F){F=F===void 0?{}:F;F.fastInit===void 0&&(F.fastInit=!0);return function(W){if(!F.disableInheritanceCheck&&Object.getPrototypeOf(W.prototype).constructor!==mr)throw Error("Pd");IBw(W.prototype,W,F.fastInit)}};
IBw=function(F,W,E){E=E===void 0?!1:E;AUW(W);E?LAG(F,"created",function(){this.disableEnforceFastDefaultValuesCheck||sVG(W,this)}):LAG(F,"ready",function(){for(var h={},d=_.U(qdn(this.behaviors)),V=d.next();!V.done;V=d.next())V=V.value,V.properties&&Object.assign(h,LEI(this,V.properties));
Object.assign(h,LEI(this,this.properties));sVG(W,this);d=_.U(Object.keys(h));for(V=d.next();!V.done;V=d.next())V=V.value,this[V]=h[V]})};
sVG=function(F,W){if(cUR){F=new F;for(var E=_.U(Object.getOwnPropertyNames(F)),h=E.next();!h.done;h=E.next())h=h.value,W[h]=F[h];for(E=W;E&&E!==Object.prototype;E=Object.getPrototypeOf(E)){h=_.U(Object.getOwnPropertyNames(E));for(var d=h.next();!d.done;d=h.next())d=d.value,F.hasOwnProperty(d)||Object.defineProperty(F,d,qZb(W,d))}}else F.apply(W)};
qZb=function(F,W){return{get:function(){var E=F[W];return E instanceof Function?E.bind(F):E},
set:function(E){F[W]=E}}};
LEI=function(F,W){if(!W)return{};for(var E={},h=_.U(Object.keys(W)),d=h.next();!d.done;d=h.next())if(d=d.value,!W[d].readOnly){var V=F[d];V!==void 0&&(E[d]=V)}return E};
AUW=function(F){var W=new F;F=F.prototype.properties||{};for(var E=_.U(Object.keys(F)),h=E.next();!h.done;h=E.next())if(h=h.value,W.hasOwnProperty(h)){var d=F[h];typeof d==="function"&&(F[h]=d={type:d});W[h]!=null&&d.type===Object&&(d.type=$Br(W[h].constructor))}};
$Br=function(F){for(var W=_.U(ZkR),E=W.next();!E.done;E=W.next())if(E=E.value,F===E)return E;return Object};
X6r=function(F){return function(W,E){W.behaviors=W.behaviors||[];W.behaviors.push(F||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?Reflect.getMetadata("design:type",W,E).prototype:void 0));Object.defineProperty(W,E,{get:function(){return this},
enumerable:!0,configurable:!0})}};
Hkn=function(F){F=F===void 0?{}:F;return function(W,E){W.properties=W.properties||{};F.type||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?F.type=$Br(Reflect.getMetadata("design:type",W,E)):F.type=String);var h=F,d=W.properties[E];W.properties[E]=d?Object.assign({},d,h):h}};
Pvr=function(F){return function(W,E){W.listeners=W.listeners||{};W.listeners[F]=E}};
JUr=function(){var F=_.Dd.apply(0,arguments);if(F.length===0)throw Error("Qd");return function(W,E){W.observers=W.observers||[];W.observers.push(E+"("+F.join(",")+")")}};
aBY=function(){var F=_.Dd.apply(0,arguments);return function(W,E,h){var d=Object.getOwnPropertyDescriptor(W,E).get,V="__compute__"+E;Object.defineProperty(W,V,{value:d,enumerable:!0});W.properties=W.properties||{};d=W.properties[E];d||(d={},W.properties[E]=d);d.computed=V+"("+F.join(",")+")";h.get=void 0}};
_.KX=function(F,W,E){_.xj.call(this);this.JSC$9122_id_=null;this.usingListeners_=!1;this.JSC$9122_listener_=F;this.handler_=E;this.JSC$9122_win_=W||window;this.callback_=(0,_.kj)(this.JSC$9124_doAction_,this)};
Ff=function(F){this.range_=F};
Wf=function(F){this.range_=F};
d8=function(F,W,E){_.xj.call(this);this.constrainScroll_=!1;this.horizontalScrolling_=!0;this.containerNode_=F;this.scrollTimer_=new _.Eg(50);this.JSC$9201_eventHandler_=new _.hR(this);this.scrollDelta_=new _.sp;this.containerIsActuallyContent_=F.tagName==="BODY"||F.tagName==="HTML";this.containerBounds_=fBk(F);this.containerIsActuallyContent_&&(F=_.eU(),this.containerBounds_.height=F.height,this.containerBounds_.width=F.width);this.margin_=W||0;if(W){if(W=this.containerBounds_.clone(),F=this.margin_){var h=
Math.min(F,W.height*.25);W.top+=h;W.height-=2*h;F=Math.min(F,W.width*.25);W.left+=F;W.width-=2*F}}else W=this.containerBounds_;this.scrollBounds_=W;E||this.JSC$9201_eventHandler_.listen(_.qp(this.containerNode_),"mousemove",this.JSC$9203_onMouseMove);this.JSC$9201_eventHandler_.listen(this.scrollTimer_,"tick",this.JSC$9203_onTick_)};
_.NW=function(F){this.mechanism=F};
VO=function(F,W){this.JSC$9299_key_=F;this.JSC$9299_value_=W};
bkr=function(F){if(F>=55296&&F<=57343||F>1114111)return"\ufffd";F in Okk&&(F=Okk[F]);var W="";F>65535&&(F-=65536,W+=String.fromCharCode(F>>>10&1023|55296),F=56320|F&1023);return W+=String.fromCharCode(F)};
lBI=function(F,W){return F<W?1:-1};
yUR=function(){return function(F){return F.charAt(1)==="#"?F.charAt(2)==="X"||F.charAt(2)==="x"?bkr(parseInt(F.substr(3),16)):bkr(parseInt(F.substr(2),10)):nPk[F.slice(1,-1)]}};
rUo=function(F){return F.slice(1,F.length-1).trim().replace(jVS,function(W){return ikG[W]||" "})};
Ug=function(F){return F===32||F===9};
Rk=function(F,W){return W<F.length?F.charCodeAt(W):-1};
TXr=function(F){for(;F;){if(F._lastLineBlank)return!0;var W=F.type;if(W==="list"||W==="item")F=F._lastChild;else break}return!1};
er=function(F){if(oPo.test(F)){var W=1,E=0,h=0;for(F[E]=="|"&&E++;E<F.length;){switch(F[E]){case "|":h=1;break;case " ":break;case "\t":break;default:h&&(h=0,W++)}E++}return GFn.test(F)?-W:W}return 0};
YZS=function(F){return F=="table"||F=="row"||F=="cell"};
w6b=function(){return new MW("document",[[1,1],[0,0]])};
uRI=function(){};
g8=function(){var F={safe:!1};F=F||{};F.softbreak=F.softbreak||"\n";this.disableTags=0;this.lastOut="\n";this.options=F};
FNo=function(F,W){var E="";if(F)if(F=F.toLowerCase(),F===" "||SZY.test(F))E="space";else if(p6r.test(F))E="esc";else if(F.length==1){if(!W||mBR.test(F))E=F}else E=KEe.test(F)?F.replace("arrow",""):F=="multiply"?"*":F;return E};
dab=function(F,W){var E=F.hasModifiers;if(W.key)E=FNo(W.key,E);else if(W.detail&&W.detail.key)E=FNo(W.detail.key,E);else{E=W.keyIdentifier;var h="";E&&(E in WNk?h=WNk[E]:EiG.test(E)?(E=parseInt(E.replace("U+","0x"),16),h=String.fromCharCode(E).toLowerCase()):h=E.toLowerCase());(E=h)||(E=W.keyCode,h="",Number(E)&&(E>=65&&E<=90?h=String.fromCharCode(32+E):E>=112&&E<=123?h="f"+(E-112+1):E>=48&&E<=57?h=String(E-48):E>=96&&E<=105?h=String(E-96):h=hDS[E]),E=h);E=E||""}return E===F.key&&(!F.hasModifiers||
!!W.shiftKey===!!F.shiftKey&&!!W.ctrlKey===!!F.ctrlKey&&!!W.altKey===!!F.altKey&&!!W.metaKey===!!F.metaKey)};
V2o=function(F){return F.length===1?{combo:F,key:F,event:"keydown"}:F.split("+").reduce(function(W,E){var h=E.split(":");E=h[0];h=h[1];E in NHn?(W[NHn[E]]=!0,W.hasModifiers=!0):(W.key=E,W.event=h||"keydown");return W},{combo:F.split(":").shift()})};
Uae=function(F){return F.trim().split(" ").map(function(W){return V2o(W)})};
RDo=function(F,W){if(F&&F.fn){var E=F.fn;F.fn=function(){try{E.apply(this,arguments)}catch(h){if(h instanceof QO)console.warn("Argument '"+h.arg+"'"+(W?" for method '"+W+"'":"")+" was undefined. Ensure it has a default value, or else ensure the method handles the argument being undefined.");else throw h;}}}return F};
eDR=function(){var F=_.Dd.apply(0,arguments);return F.length===0?function(W){return W}:F.length===1?F[0]:F.reduce(function(W,E){return function(){return W(E.apply(null,_.x9(_.Dd.apply(0,arguments))))}})};
M2Y=function(){var F=_.Dd.apply(0,arguments);return function(W){return function(E,h){E=W(E,h);var d=function(){throw Error("Ae");},V={getState:E.getState,
dispatch:function(R){return d.apply(null,[R].concat(_.x9(_.Dd.apply(1,arguments))))}};
h=F.map(function(R){return R(V)});
d=eDR.apply(null,_.x9(h))(E.dispatch);return Object.assign({},E,{dispatch:d})}}};
zDG=function(F){Object.keys(F).forEach(function(W){var E=F[W];if(typeof E(void 0,{type:gib})==="undefined")throw Error("Be`"+W);if(typeof E(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION"+QZe()})==="undefined")throw Error("Ce`"+W+"`"+gib);})};
zM=function(F){for(var W=Object.keys(F),E={},h=0;h<W.length;h++){var d=W[h];typeof F[d]==="function"&&(E[d]=F[d])}var V=Object.keys(E);try{zDG(E)}catch(M){var R=M}return function(M,g){M=M===void 0?{}:M;if(R)throw R;for(var t=!1,C={},B=0;B<V.length;B++){var I=V[B],x=M[I],A=(0,E[I])(x,g);if(typeof A==="undefined")throw M=g&&g.type,Error("De`"+(M?'"'+String(M)+'"':"(unknown type)")+"`"+I);C[I]=A;t=t||A!==x}return(t=t||V.length!==Object.keys(M).length)?C:M}};
t2e=function(F,W,E){function h(){if(C)throw Error("Ee");return M}
function d(x){if(typeof x!=="function")throw Error("Fe`"+typeof x);if(C)throw Error("Ge");var A=!0;t===g&&(t=g.slice());t.push(x);return function(){if(A){if(C)throw Error("He");A=!1;t===g&&(t=g.slice());var X=t.indexOf(x);t.splice(X,1);g=null}}}
function V(x){if(typeof x!=="object"||x===null)var A=!1;else{for(A=x;Object.getPrototypeOf(A)!==null;)A=Object.getPrototypeOf(A);A=Object.getPrototypeOf(x)===A}if(!A)throw Error("Ie`"+typeof x);if(typeof x.type==="undefined")throw Error("Je");if(C)throw Error("Ke");try{C=!0,M=R(M,x)}finally{C=!1}A=g=t;for(var X=0;X<A.length;X++)(0,A[X])();return x}
if(typeof W==="function"&&typeof E==="function"||typeof E==="function"&&typeof arguments[3]==="function")throw Error("Le");typeof W==="function"&&typeof E==="undefined"&&(E=W,W=void 0);if(typeof E!=="undefined"){if(typeof E!=="function")throw Error("Me`"+typeof E);return E(t2e)(F,W)}if(typeof F!=="function")throw Error("Ne`"+typeof F);var R=F,M=W,g=[],t=g,C=!1;V({type:gib});var B={},I=(B.dispatch=V,B.subscribe=d,B.getState=h,B.replaceReducer=function(x){if(typeof x!=="function")throw Error("Oe`"+
typeof x);R=x;V({type:CjW});return I},B[BHe]=function(){var x={};
return x.subscribe=function(A){function X(){A.next&&A.next(h())}
if(typeof A!=="object"||A===null)throw new TypeError("Pe`"+typeof A);X();return{unsubscribe:d(X)}},x[BHe]=function(){return this},x},B);
return I};
viI=function(F){function W(){d&&(d=!1,F());V&&h()}
function E(){requestAnimationFrame(W)}
function h(){var M=Date.now();if(d){if(M-R<2)return;V=!0}else d=!0,V=!1,setTimeout(E,20);R=M}
var d=!1,V=!1,R=0;return h};
tR=function(F){return typeof F==="number"?F:parseFloat(F)||0};
IEr=function(F){return _.Dd.apply(1,arguments).reduce(function(W,E){return W+tR(F["border-"+E+"-width"])},0)};
_.L=function(F,W){W=X3($w(W));F.innerHTML=W};
xar=function(F){var W=cfn;W||(W=DaI(),W=cfn=_.xd.transpose(W));W=W[F];return typeof W==="string"?W:_.Cg(F)};
kAI=function(F){F=String(F).toLowerCase();var W=DaI()[F];return typeof W==="string"?W:_.Bf(F)};
AfY=function(F){F=F.toLowerCase();F=DaI()[F];return typeof F==="string"?F:null};
DaI=function(){if(!sZo){for(var F=Object.assign({},LNn),W=_.U(qVG),E=W.next();!E.done;E=W.next())E=E.value,F[E.toLowerCase()]=E;sZo=F}return sZo};
XYe=function(F,W){var E=window.customElements;return E&&E.get(F)||$aI[F]===!0?2:W.name==="HTMLUnknownElement"?1:W.name==="HTMLElement"&&ZcI.test(F)?3:0};
JfR=function(F,W){switch(W){case "innerHTML":return Hcb(F)===1?2:null;case "textContent":return F=Hcb(F),F===1||F===6?1:null;default:var E,h;return(h=(E=Pjk[F.localName])==null?void 0:E[W])!=null?h:null}};
Hcb=function(F){var W=F.localName,E=XYe(W,F.constructor);switch(E){case 0:case 1:return aEY(W,F);case 3:case 2:return 1;default:_.RO(E,"got an unknown element classification")}};
aEY=function(F,W){var E=Object.hasOwnProperty.call(fEY,F)?fEY[F]:null;return E!==null?E:Object.hasOwnProperty.call(OcR,F)&&W instanceof SVGElement?OcR[F]:null};
bcY=function(F,W){return W};
nib=function(F){return(F=F.split(lER,2))?{url:F[0],metadata:F[1]}:null};
jZo=function(F){var W=String(F.url).replace(yfb,encodeURIComponent);if(F=F.metadata){yfb.lastIndex=0;if(yfb.test(F))return null;W+=" "+F}return W};
oio=function(F){function W(t){var C=t.localName;if(!t.getAttribute("is")&&XYe(C,t.constructor)===2){var B;return(B=g)!=null?B:g=document.createElement("polyresinuncustomized")}(t=M[C])||(t=M[C]=document.createElement(C));return t}
var E=F.reportHandler||void 0,h=F.safeTypesBridge||icI,d=/^$/;if(F=F.allowedIdentifierPrefixes){F=_.U(F);for(var V=F.next();!V.done;V=F.next())d=new RegExp(d.source+"|^"+_.rfo(V.value))}E&&E(!1,"initResin",null);var R=THS(d,h,E),M={},g=null;return function(t,C,B){var I=t.nodeType;if(I!==Node.ELEMENT_NODE){if(I===Node.TEXT_NODE){C=t.parentElement;B=!C;if(C&&C.nodeType===Node.ELEMENT_NODE){I=C.localName;var x=XYe(I,C.constructor);switch(x){case 0:case 1:C=aEY(I,C);B=C===1||C===6;break;case 3:case 2:B=
!0;break;default:_.RO(x,"got an unknown element classification")}}if(B)return function(b){return""+h(b,"STRING",b)}}return function(b){if(!b&&b!==document.all)return b;
E&&E(!0,"Failed to sanitize "+(t.parentElement&&t.parentElement.nodeName)+" #text node to value "+b,t.parentElement);return vf}}var A=t.localName;
I=W(t);var X=null;switch(B){case "attribute":if(kAI(C)in I)break;return function(b){return b};
case "property":if(C in I){X=JfR(I,C);break}if((x=AfY(C))&&x in I)break;return function(b){return b};
default:_.RO(B,"got an unknown resin type, expected either 'property' or 'attribute'")}var P=B==="attribute"?C.toLowerCase():xar(C);X||(X=Qre(A,P,function(b){var l=t.getAttribute(b);return!l||/[\[\{]/.test(b)?null:l}));
return function(b){var l=Ik,w=null;if(!b&&b!==document.all)return b;if(X!=null){var G=R[X],hr=G.safeType;w=G.safeReplacement;hr&&(l=h(b,hr,Ik));l===Ik&&(G.filterString?(l=String(h(b,"STRING",b)),l=G.filterString(A,P,l)):G.filterRaw&&(l=G.filterRaw(A,P,b,t)),l===w&&(l=Ik))}l===Ik&&(l=w||vf,E&&E(!0,"Failed to sanitize attribute of <"+A+">: <"+A+" "+P+'="'+b+'">',t));return l}}};
THS=function(F,W,E){return[,{filterRaw:function(h,d,V){return V},
filterString:void 0,safeReplacement:void 0,safeType:void 0},{filterRaw:void 0,filterString:void 0,safeReplacement:void 0,safeType:"HTML"},{filterRaw:void 0,filterString:void 0,safeReplacement:GAY,safeType:"URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:GAY,safeType:"RESOURCE_URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:vf,safeType:"STYLE"},,{filterRaw:void 0,filterString:void 0,safeReplacement:YVY,safeType:"JAVASCRIPT"},{filterRaw:void 0,filterString:function(h,d,V){V=
String(V).toLowerCase();return CYr(h,d,V)?V:vf},
safeReplacement:vf,safeType:void 0},,{filterRaw:void 0,filterString:function(h,d,V){return F.test(V)?V:vf},
safeReplacement:vf,safeType:"CONSTANT"},{filterRaw:function(h,d,V,R){if(typeof V==="string")var M=(M=V.match(wYG))?M.map(nib).filter(Boolean):[];else if(Array.isArray(V))M=V;else return GAY;var g=M;M=[];var t=[],C={};if(Array.isArray(g))for(var B=0,I=g.length;B<I;++B){var x=g[B],A=x&&x.url;if(A){var X=W(A,"URL",C);if(X){var P=X!==C;(P?M:t).push({url:P?X:A,metadata:x.metadata})}}}else t.push(g);g=t.length?JSON.stringify(t):null;t=Ik;if(M.length){if(!Array.isArray(M))throw Error();t=M.map(jZo).filter(Boolean).join(" , ")||
Ik}g&&E&&E(!0,"Failed to sanitize attribute value of <"+h+">: <"+h+" "+d+'="'+V+'">: '+g,R);return t===Ik?GAY:t},
filterString:void 0,safeReplacement:void 0,safeType:void 0}]};
ucn=function(F){var W=oio(F);return function(E,h,d,V){return V||V===document.all?W(E,h,d)(V):V}};
cf=function(F,W){function E(){function d(M,g,t){for(g=Reflect.getMetadata("parameters",M)||[];g.length<=t;)g.push(null);g[t]=g[t]||[];g[t].push(R);Reflect.defineMetadata(g,M);return M}
var V=_.Dd.apply(0,arguments);if(this instanceof E)return h.apply(this,V),this;var R=new (Function.prototype.bind.apply(E,[null].concat(_.x9(V))));d.annotation=R;return d}
var h=SVS(W);E.prototype.toString=function(){return"@"+F};
return E.annotationCls=E};
SVS=function(F){return function(){var W=_.Dd.apply(0,arguments),E=this;F.forEach(function(h,d){d=W[d];if(Array.isArray(h))E[h[0]]=d&&d!==void 0?d:h[1];else for(var V in h)E[V]=d&&d[V]!==void 0?d[V]:h[V]})}};
pYG=function(F){return F!==void 0&&F!==null};
DU=function(F){if(typeof F==="string")return F;if(F===void 0||F===null)return""+F;if(F.overriddenName)return F.overriddenName;if(F.name)return F.name;F=F.toString();var W=F.indexOf("\n");return W===-1?F:F.substring(0,W)};
mak=function(F){F.__forward_ref__=mak;F.toString=function(){return DU(this())};
return F};
xx=function(F){return typeof F==="function"&&F.hasOwnProperty("__forward_ref__")&&F.__forward_ref__===mak?F():F};
KNb=function(F){return F?F.map(function(W){return new (Function.prototype.bind.apply(W.type.annotationCls,[null].concat(_.x9(W.args?W.args:[]))))}):[]};
FZS=function(F){for(var W=[],E=0;E<F.length;++E){if(W.indexOf(F[E])>-1){W.push(F[E]);break}W.push(F[E])}return W};
WZr=function(F){return F.length>1?" ("+FZS(F.slice().reverse()).map(function(W){return DU(W.token)}).join(" -> ")+")":""};
h4o=function(F,W,E,h){if(h){var d=Error("We``"+(h instanceof Error?h.message:h));d.ngOriginalError=h}else d=Error();d.addKey=Ecr;d.keys=[W];d.injectors=[F];d.constructResolvingMessage=E;d.message=d.constructResolvingMessage();d.ngOriginalError=h;return d};
Ecr=function(F,W){this.injectors.push(F);this.keys.push(W);this.message=this.constructResolvingMessage()};
dSb=function(F,W){return h4o(F,W,function(){return"No provider for "+DU(this.keys[0].token)+"!"+WZr(this.keys)})};
NaR=function(F,W){return h4o(F,W,function(){return"Cannot instantiate cyclic dependency!"+WZr(this.keys)})};
VPk=function(F,W,E){return h4o(F,E,function(){var h=DU(this.keys[0].token);return this.ngOriginalError.message+": Error during instantiation of "+h+"!"+WZr(this.keys)+"."},W)};
USe=function(F,W){for(var E=[],h=0,d=W.length;h<d;h++){var V=W[h];V&&V.length!=0?E.push(V.map(DU).join(" ")):E.push("?")}return Error("$e`"+DU(F)+"`"+E.join(", ")+"`"+DU(F))};
tPk=function(F){var W=void 0,E=void 0;if(F&&F.useClass!==void 0){W=F.useClass;var h=xx(F.useClass);var d=R4w.factory(h);h=e4Y(h)}else F&&F.useExisting!==void 0?(d=function(V){return V},h=[MPY(AR.get(xx(F.useExisting)))]):F&&F.useFactory!==void 0?(d=F.useFactory,h=gcb(F.useFactory,F.deps)):(E=F.useValue,d=function(){return F.useValue},h=QYr);
return new z4Y(d,h,W,E)};
Baw=function(F){return new Cko(AR.get(xx(F.provide)),[tPk(F)],F.multi)};
I9W=function(F){F=vcY(F,[]).map(Baw);for(var W=new Map,E=0;E<F.length;E++){var h=F[E],d=W.get(h.key.id);if(d){if(h.multiProvider!==d.multiProvider)throw Error("bf`"+d+"`"+h);if(h.multiProvider)for(var V=0;V<h.resolvedFactories.length;V++)d.resolvedFactories.push(h.resolvedFactories[V]);else W.set(h.key.id,h)}else d=void 0,h.multiProvider?d=new Cko(h.key,h.resolvedFactories.slice(),h.multiProvider):d=h,W.set(h.key.id,d)}return Array.from(W.values())};
vcY=function(F,W){F.forEach(function(E){if(E instanceof cko)W.push({provide:E,useClass:E});else if(E&&typeof E=="object"&&E.provide!==void 0)W.push(E);else if(E instanceof Array)vcY(E,W);else throw Error("Ze`"+E);});
return W};
gcb=function(F,W){if(W){var E=W.map(function(h){return[h]});
return W.map(function(h){return DSw(F,h,E)})}return e4Y(F)};
e4Y=function(F){var W=R4w.parameters(F);if(!W)return[];if(W.some(function(E){return E==null}))throw USe(F,W);
return W.map(function(E){return DSw(F,E,W)})};
DSw=function(F,W,E){var h=null,d=!1;if(!Array.isArray(W))return W instanceof xSk?kHI(W.token,d,null):kHI(W,d,null);for(var V=null,R=0;R<W.length;++R){var M=W[R];if(M instanceof cko)h=M;else if(M instanceof xSk)h=M.token;else if(M instanceof Akr)d=!0;else if(M instanceof sYk||M instanceof LZR)V=M}h=xx(h);if(h!=null)return kHI(h,d,V);throw USe(F,E);};
kHI=function(F,W,E){return new qnr(AR.get(xx(F)),W,E)};
$Sn=function(F,W){for(var E=Array(F.providers.length),h=0;h<F.providers.length;++h){var d=h;if(h<0||h>=F.providers.length)throw Error("af`"+h);E[d]=W(F.providers[h])}return E};
Zve=function(F){return typeof F==="function"&&R4w.parameters(F).every(function(W){return!!W})};
Pkn=function(F){var W=XKW;HvS.get(F)||HvS.set(F,new W);return HvS.get(F)};
_._hasCachedLockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(F){return _._lockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(F)>-1};
_._hasCachedUnlockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(F){return _._unlockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(F)>-1};
_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(F,W){var E,h;if(F.contains(W))return!0;F=_.sg(F).querySelectorAll("content,slot");for(E=0;E<F.length;++E){var d=_.sg(F[E]).getDistributedNodes();for(h=0;h<d.length;++h)if(d[h].nodeType===Node.ELEMENT_NODE&&_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(d[h],W))return!0}return!1};
_._scrollInteractionHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(F){F.cancelable&&_._shouldPreventScrolling$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(F)&&F.preventDefault();F.targetTouches&&(F=F.targetTouches[0],Jkn=F.pageX,a9I=F.pageY)};
_._lockScrollInteractions$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(){_._boundScrollHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=_._boundScrollHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager||_._scrollInteractionHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.bind(void 0);
for(var F=0,W=Lg.length;F<W;F++)document.addEventListener(Lg[F],_._boundScrollHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager,{capture:!0,passive:!1})};
_._unlockScrollInteractions$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(){for(var F=0,W=Lg.length;F<W;F++)document.removeEventListener(Lg[F],_._boundScrollHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager,{capture:!0,passive:!1})};
_._shouldPreventScrolling$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(F){var W=_.sg(F).rootTarget;F.type!=="touchmove"&&f9r!==W&&(f9r=W,Ovo=_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(_.sg(F).path));if(!Ovo.length)return!0;if(F.type==="touchstart")return!1;F=_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(F);
return!_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(Ovo,F.deltaX,F.deltaY)};
_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(F){for(var W=[],E=F.indexOf(bvo),h=0;h<=E;h++)if(F[h].nodeType===Node.ELEMENT_NODE){var d=F[h],V=d.style;V.overflow!=="scroll"&&V.overflow!=="auto"&&(V=window.getComputedStyle(d));V.overflow!=="scroll"&&V.overflow!=="auto"||W.push(d)}return W};
_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(F,W,E){if(W||E)for(var h=Math.abs(E)>=Math.abs(W),d=0;d<F.length;d++){var V=F[d];if(h?E<0?V.scrollTop>0:V.scrollTop<V.scrollHeight-V.clientHeight:W<0?V.scrollLeft>0:V.scrollLeft<V.scrollWidth-V.clientWidth)return V}};
_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(F){var W={deltaX:F.deltaX,deltaY:F.deltaY};"deltaX"in F||("wheelDeltaX"in F&&"wheelDeltaY"in F?(W.deltaX=-F.wheelDeltaX,W.deltaY=-F.wheelDeltaY):"wheelDelta"in F?(W.deltaX=0,W.deltaY=-F.wheelDelta):"axis"in F?(W.deltaX=F.axis===1?F.detail:0,W.deltaY=F.axis===2?F.detail:0):F.targetTouches&&(F=F.targetTouches[0],W.deltaX=Jkn-F.pageX,W.deltaY=a9I-F.pageY));return W};
l9w=function(F){this.element=F;this.width=this.boundingRect.width;this.height=this.boundingRect.height;this.size=Math.max(this.width,this.height)};
ykI=function(F){this.element=F;this.color=window.getComputedStyle(F).color;this.wave=document.createElement("div");this.waveContainer=document.createElement("div");this.wave.style.backgroundColor=this.color;this.wave.classList.add("wave");this.waveContainer.classList.add("wave-container");_.sg(this.waveContainer).appendChild(this.wave);nco(this)};
qW=function(F,W){for(var E in F)if(E.toLowerCase()===W.toLowerCase())return F[E]};
jYS=function(F,W){for(var E in F)if(E.toLowerCase()===W.toLowerCase()){delete F[E];break}};
rko=function(F){F=_.xd.clone(F);for(var W=0;W<ivS.length;++W){var E=ivS[W],h=qW(F,E);h&&(F["X-Goog-Upload-Header-"+E]=h,jYS(F,E))}return F};
Tao=function(F){F=_.xd.clone(F);jYS(F,"X-Goog-Upload-Status")};
GHb=function(F){return ock.some(function(W){return W.test(F)})};
Sno=function(F,W){var E;var h=(E=F.formContent)==null?void 0:E.locale;E=h==null?void 0:h.split("-")[0];h=h&&Ynr.includes(h)?h:E&&Ynr.includes(E)?E:void 0;h=(h!=null?h:"en").replaceAll("-","_").toLowerCase();var d;F=((d=F.initializationData)==null?0:d.useNightlyRelease)?"nightly":"live";var V;return(W==null?0:(V=W.getEnableAlohaBinarySplit)==null?0:V.call(W))?_.mv(wKo,F):_.mv(u0b,F,h)};
mSw=function(F,W,E,h){if(pKI)return pKI;var d=Sno(F,h);return pKI=W.feedbackV2GlobalObject?Promise.resolve(W.feedbackV2GlobalObject):new Promise(function(V,R){var M=_.Cr("SCRIPT");_.nu(M,d);M.onload=function(){W.feedbackV2GlobalObject?V(W.feedbackV2GlobalObject):R(Error("ef"))};
M.onerror=function(){R(Error("ff`"+d.toString()))};
E.body.appendChild(M)})};
FxS=function(F,W,E,h){if(KZY)return KZY;var d=Sno(F,h);return KZY=W.feedbackV2GlobalObject?Promise.resolve(W.feedbackV2GlobalObject):new Promise(function(V,R){var M=_.Cr("SCRIPT");_.nu(M,d);M.onload=function(){W.feedbackV2GlobalObject?V(W.feedbackV2GlobalObject):R(Error("ef"))};
M.onerror=function(){R(Error("ff`"+d.toString()))};
E.body.appendChild(M)})};
Wxe=function(F,W,E,h,d){d=d===void 0?!0:d;var V,R,M,g,t;return _.e(function(C){switch(C.nextAddress){case 1:return V=Date.now(),_.Q(C,mSw(F,E,h,W),2);case 2:R=C.yieldResult;if(!(d||((g=F.initializationData)==null?0:g.useNightlyRelease)||((t=F.initializationData)==null?0:t.isLocalServer))){M=R.initializeFeedbackClient(F,V,W);C.jumpTo(3);break}return _.Q(C,R.initializeFeedbackClientAsync(F,V,W),4);case 4:M=C.yieldResult;case 3:return M.initiateAloha(),C.return(M)}})};
EUY=function(F,W,E,h){var d,V,R;return _.e(function(M){if(M.nextAddress==1)return d=Date.now(),_.Q(M,FxS(F,E,h.document,W),2);if(M.nextAddress!=3)return V=M.yieldResult,_.Q(M,V.initializeFeedbackClientAsync(F,d,W,h),3);R=M.yieldResult;R.initiateAloha();return M.return(R)})};
htr=function(F,W,E){var h=!0;h=h===void 0?!0:h;var d,V,R,M,g,t,C,B,I,x;return _.e(function(A){d=E||_.EY;if((V=W)==null?0:(M=(R=V).getEnableAlohaBinarySplit)==null?0:M.call(R)){g=d;if(g.isFormOpened)throw t=Error("gf"),t.name="DuplicateFormError",t;g.isFormOpened=!0;F.callbacks=F.callbacks||{};C=F.callbacks.onClose||function(){};
F.callbacks.onClose=function(X){g.isFormOpened=!1;C(X)};
try{return A.return(EUY(F,W,g,d))}catch(X){throw g.isFormOpened=!1,X;}}else{B=d;if(B.isFormOpened)throw I=Error("gf"),I.name="DuplicateFormError",I;B.isFormOpened=!0;F.callbacks=F.callbacks||{};x=F.callbacks.onClose||function(){};
F.callbacks.onClose=function(X){B.isFormOpened=!1;x(X)};
try{return A.return(Wxe(F,W,B,d.document,h))}catch(X){throw B.isFormOpened=!1,X;}}_.gG(A)})};
Rte=function(F,W){return _.e(function(E){return E.return(new Promise(function(h){var d=doR(W!=null?W:"")+"/aloha_form_properties?productId="+F;NvS(d,function(V){V=V.target;var R=null;try{var M=JSON,g=M.stringify;if(V.JSC$7701_xhr_){var t=V.JSC$7701_xhr_.responseText;t.indexOf(")]}'\n")==0&&(t=t.substring(5));var C=(0,_.$x)(t)}else C=void 0;R=hWR(Vfr,g.call(M,C))}catch(B){g=new Vfr,C=Uow(),C=_.ZU(C,13,!1),C=_.ZU(C,14,!0),C=_.ZU(C,15,!0),C=_.ZU(C,20,!1),R=_.hy(g,1,C)}h(R)},"GET","",{},2E3,!0)}))})};
doR=function(F){return GHb(F)?F:"https://www.google.com/tools/feedback"};
QdY=function(F){F=F.match(new RegExp(etW,"gi"))||[];F=_.U(F);for(var W=F.next();!W.done;W=F.next()){W=W.value;a:{var E=_.U(Mfw);for(var h=E.next();!h.done;h=E.next())if(h.value.test(W)){E=!1;break a}E=!0}if(!E)a:{E=_.U(gUI);for(h=E.next();!h.done;h=E.next())if(h.value.test(W)){E=!0;break a}E=!1}if(E)return!0}return!1};
zto=function(F){switch(F){case "canary":return"CLIENT_CANARY_STATE_CANARY";case "control":return"CLIENT_CANARY_STATE_CONTROL";case "none":return"CLIENT_CANARY_STATE_NONE";default:return"CLIENT_CANARY_STATE_UNKNOWN"}};
CGR=function(F){if(window.crypto&&window.crypto.getRandomValues)try{var W=Array(F),E=new Uint8Array(F);window.crypto.getRandomValues(E);for(var h=0;h<W.length;h++)W[h]=E[h];return W}catch(V){}W=Array(F);for(E=0;E<F;E++){h=Date.now();for(var d=0;d<h%23;d++)W[E]=Math.random();W[E]=Math.floor(Math.random()*256)}if(tfw)for(E=1,h=0;h<tfw.length;h++)W[E%F]^=W[(E-1)%F]/4^tfw.charCodeAt(h),E++;return W};
Xf=function(F){F=CGR(F);for(var W=[],E=0;E<F.length;E++)W.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(F[E]&63));return W.join("")};
vUS=function(F){F&&_.Pc("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:Bvb,clientScreenNonce:F})};
IZR=function(F){return _.b0("client-screen-nonce-store",{})[F===void 0?0:F]};
chr=function(F,W){W=W===void 0?0:W;var E=_.b0("client-screen-nonce-store");E||(E={},_.OG("client-screen-nonce-store",E));E[W]=F};
DoW=function(F){F=F===void 0?0:F;return F===0?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+F};
xoY=function(F){return _.b0(DoW(F===void 0?0:F))};
_.Pf=function(F){return(F=xoY(F===void 0?0:F))?new _.Hf({veType:F,youtubeData:void 0,jspbYoutubeData:void 0}):null};
k0o=function(){var F=_.b0("csn-to-ctt-auth-info");F||(F={},_.OG("csn-to-ctt-auth-info",F));return F};
Aho=function(){return Object.values(_.b0("client-screen-nonce-store",{})).filter(function(F){return F!==void 0})};
_.JR=function(F){F=IZR(F===void 0?0:F);if(!F&&!_.l0("USE_CSN_FALLBACK",!0))return null;F||(F="UNDEFINED_CSN");return F?F:null};
Lxw=function(F){for(var W=_.U(Object.values(sdr)),E=W.next();!E.done;E=W.next())if(_.JR(E.value)===F)return!0;return!1};
qsk=function(F,W,E){var h=k0o();(E=_.JR(E))&&delete h[E];W&&(h[F]=W)};
ak=function(F){return k0o()[F]};
_.$ob=function(F,W,E,h){E=E===void 0?0:E;if(F!==IZR(E)||W!==_.b0(DoW(E)))if(qsk(F,h,E),chr(F,E),_.OG(DoW(E),W),W=function(){setTimeout(function(){vUS(F)},0)},"requestAnimationFrame"in window)try{window.requestAnimationFrame(W)}catch(d){W()}else W()};
ZPo=function(F,W){W=W===void 0?"":W;var E=[],h;for(h in F)if(F.hasOwnProperty(h)){var d=W!==""?W+"."+h:h;typeof F[h]==="object"?E.push.apply(E,_.x9(ZPo(F[h],d))):E.push([d,F[h]])}E.sort();return E};
_.HPR=function(F){var W=_.Dd.apply(1,arguments);if(!fg(F)||W.some(function(h){return!fg(h)}))throw Error("hf");
W=_.U(W);for(var E=W.next();!E.done;E=W.next())XIG(F,E.value)};
XIG=function(F,W){for(var E in W)if(fg(W[E])){if(E in F&&!fg(F[E]))throw Error("jf");E in F||(F[E]={});XIG(F[E],W[E])}else if(PGo(W[E])){if(E in F&&!PGo(F[E]))throw Error("kf");E in F||(F[E]=[]);JhI(F[E],W[E])}else F[E]=W[E];return F};
JhI=function(F,W){W=_.U(W);for(var E=W.next();!E.done;E=W.next())E=E.value,fg(E)?F.push(XIG({},E)):PGo(E)?F.push(JhI([],E)):F.push(E);return F};
fg=function(F){return typeof F==="object"&&!Array.isArray(F)};
PGo=function(F){return typeof F==="object"&&Array.isArray(F)};
fZR=function(F){for(var W=_.U(Object.entries(aZo)),E=W.next();!E.done;E=W.next())if(E=_.U(E.value),E.next(),E=E.next().value,E==="SLI_STATUS_"+F)return E;return"SLI_STATUS_UNKNOWN"};
_.Og=function(F,W,E,h){return OPW(F,W,function(){return new _.bPY(F,W,E,h)})};
_.lZr=function(){return _.Og("SLI_NAME_YOUTUBE_WEB_APP_BOOTS","APP_BOOTS",12E4,"TIMEOUT")};
nUY=function(){return _.Og("SLI_NAME_YOUTUBE_WEB_NETWORK_REQUEST","NETWORK_REQUEST",12E4,"TIMEOUT")};
bI=function(){return _.Og("SLI_NAME_YOUTUBE_WEB_WARM_PAGE_NAVIGATION","WARM_PAGE_NAVIGATION",12E4,"TIMEOUT")};
yhr=function(){return _.Og("SLI_NAME_YOUTUBE_WEB_YT_INITIAL_DATA_PRESENT","YT_INITIAL_DATA_LOADED",6E4,"FAILURE")};
jdo=function(){return _.Og("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_ONE_MINUTE","STFE_GREATER_THAN_ONE_MINUTE",6E4,"SUCCESS")};
iPY=function(){return _.Og("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_TEN_MINUTES","STFE_GREATER_THAN_TEN_MINUTES",6E5,"SUCCESS")};
oUo=function(F){F&&(F.dataset?F.dataset[rhr()]="true":_.j9([_.SJ(Tvo)],F,"data-loaded","true".toString()))};
G0o=function(F){return F?F.dataset?F.dataset[rhr()]:F.getAttribute("data-loaded"):null};
rhr=function(){return Ysr.loaded||(Ysr.loaded="loaded".replace(/\-([a-z])/g,function(F,W){return W.toUpperCase()}))};
_.lI=function(F,W,E){wIS(F,W,E===void 0?null:E)};
_.SsG=function(F,W){F&&W&&(F=""+_.Ue(W),(F=u8R[F])&&_.uCY(F))};
wIS=function(F,W,E){E=E===void 0?null:E;var h=_.pIW(F),d=document.getElementById(h),V=d&&G0o(d),R=d&&!V;V?W&&W():(W&&(V=_.UB(h,W),W=""+_.Ue(W),u8R[W]=V),R||(d=mon(F,h,function(){G0o(d)||(oUo(d),_.Shk(h),_.RA(function(){_.mzR(h)},0))},E)))};
mon=function(F,W,E,h){h=h===void 0?null:h;var d=_.Cr("SCRIPT");d.id=W;d.onload=function(){E&&setTimeout(E,0)};
d.onreadystatechange=function(){switch(d.readyState){case "loaded":case "complete":d.onload()}};
h&&d.setAttribute("nonce",h);_.nu(d,_.s2(F));F=document.getElementsByTagName("head")[0]||document.body;F.insertBefore(d,F.firstChild);return d};
_.pIW=function(F){var W=document.createElement("a");Lu(W,F);return"js-"+yO(W.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
Kxk=function(F){var W=_.b0("INNERTUBE_HOST_OVERRIDE");W&&(F=String(W)+String(_.jr(F)));return F};
FTb=function(F){var W={};_.c("json_condensed_response")&&(W.prettyPrint="false");return F=ctG(F,W)};
_.iI=function(F){return m0(F)?"same-origin":"include"};
_.r8=function(F){return m0(F)?"same-origin":"cors"};
TM=function(F,W,E){E=E===void 0?{}:E;F={method:W===void 0?"POST":W,mode:_.r8(F),credentials:_.iI(F)};W={};for(var h=_.U(Object.keys(E)),d=h.next();!d.done;d=h.next())d=d.value,E[d]&&(W[d]=E[d]);Object.keys(W).length>0&&(F.headers=W);return F};
_.ok=function(F,W){W=W===void 0?{}:W;return"service:"+F+"/"+Object.keys(W).sort().map(function(E){return E+":"+W[E]}).join("/")};
WTe=function(F){var W,E,h,d;F=(W=_.D(F,_.GM))==null?void 0:(E=W.watchEndpointSupportedOnesieConfig)==null?void 0:(h=E.html5PlaybackOnesieConfig)==null?void 0:(d=h.commonConfig)==null?void 0:d.url;if(!F)return[];W=new _.Yx(F);return W.JSC$7936_domain_?["https://"+W.JSC$7936_domain_+"/generate_204"]:[]};
_.dDR=function(){return EAn()||ARr()||hmY&&aA("version/")?!0:_.b0("EOM_VISITOR_DATA")?!1:!0};
NsR=function(F){var W=F.docid||F.video_id||F.videoId||F.id;if(W)return W;W=F.raw_player_response;W||(F=F.player_response)&&(W=JSON.parse(F));return W&&W.videoDetails&&W.videoDetails.videoId||null};
Vjb=function(F){return F.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()};
w8=function(F){return!isNaN(Number(F))&&!_.Mw(F)};
_.Sr=function(F,W,E,h){h=h===void 0?!0:h;var d=_.b0("VALID_SESSION_TEMPDATA_DOMAINS",[]),V=_.Su(window.location.href);V&&d.push(V);V=_.Su(F);if(_.on(d,V)||!V&&_.Vo(F,"/"))if(d=document.createElement("a"),Lu(d,F),F=d.href)if(F=_.jr(F),F=_.uI(F))h&&!W.csn&&(W.itct||W.ved)&&(W=Object.assign({csn:_.JR()},W)),E?(E=parseInt(E,10),isFinite(E)&&E>0&&UDW(F,W,E)):UDW(F,W)};
emY=function(F){var W=_.b0("VALID_SESSION_TEMPDATA_DOMAINS",[]),E=_.Su(window.location.href);E&&W.push(E);E=_.Su(F);if(!(_.on(W,E)||!E&&_.Vo(F,"/")))return null;F=_.jr(F);(F=_.uI(F))?(F=Rmo(F),F=(F=_.BZ.get(F,void 0)||null)?_.oW(F):{}):F=null;return F};
UDW=function(F,W,E){F=Rmo(F);W=W?_.zC(W):"";E=E||5;_.dDR()&&_.vZ(F,W,E)};
Rmo=function(F){for(var W=_.U(MjG),E=W.next();!E.done;E=W.next())F=_.pg(F,E.value);return"ST-"+yO(F).toString(36)};
gAw=function(F,W){F.commandMetadata&&_.D(F.commandMetadata,_.m1)&&_.D(F.commandMetadata,_.m1).url&&(F=_.Gk(_.D(F.commandMetadata,_.m1).url).adurl)&&_.xQY(F)&&_.Sr(_.jr(F),{encoded_ad_playback_context:W})};
_.QsY=function(F){if(F.requestFullscreen)F=F.requestFullscreen(void 0);else if(F.webkitRequestFullscreen)F=F.webkitRequestFullscreen();else if(F.mozRequestFullScreen)F=F.mozRequestFullScreen();else if(F.msRequestFullscreen)F=F.msRequestFullscreen();else if(F.webkitEnterFullscreen)F=F.webkitEnterFullscreen();else return Promise.reject(Error("tf"));return F instanceof Promise?F:Promise.resolve()};
_.Fj=function(F){var W;_.bfo(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)?_.Kg()==F&&(W=document):W=F;if(W&&(F=_.bfo(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],W))){F.call(W)instanceof Promise||Promise.resolve();return}Promise.resolve()};
_.Kg=function(){var F=F===void 0?!1:F;var W=_.bfo(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(F)for(;W&&W.shadowRoot;)W=W.shadowRoot.fullscreenElement;return W?W:null};
_.W5=function(F,W){W=W===void 0?!0:W;F.addEventListener("wheel",zmI);F.overscrollConfig={cooldown:W}};
_.ET=function(F){F.overscrollConfig=void 0;F.removeEventListener("wheel",zmI)};
zmI=function(F){var W=F.deltaY,E=F.target,h=null;if(window.Polymer&&window.Polymer.Element){if(E=F.path||F.composedPath&&F.composedPath()){E=_.U(E);for(var d=E.next();!d.done&&(d=d.value,!tjk(d,W));d=E.next())if(d.overscrollConfig){h=d;break}}}else for(;E&&!tjk(E,W);){if(E.overscrollConfig){h=E;break}E=E.parentElement}h&&(W=h.overscrollConfig,W.cooldown?(h=F.deltaY,E=W.lastDeltaY||0,W.lastDeltaY=h,d=W.lastStopped||0,E&&d&&E>0==h>0?Math.abs(E)>=Math.abs(h)?(h=d+1200,E=!1):(h=d+600,E=!0):(h=Date.now()+
600,E=!0),h>Date.now()&&(F.preventDefault(),E&&(W.lastStopped=Date.now()))):F.preventDefault())};
tjk=function(F,W){return W<0&&F.scrollTop>0||W>0&&F.scrollTop<F.scrollHeight-F.clientHeight-1?(F=getComputedStyle(F).overflowY,F=="auto"||F=="scroll"):!1};
_.hF=function(F,W,E,h){h||(h={bubbles:!0,cancelable:!1,composed:!0});E!==null&&E!==void 0&&(h.detail=E);var d=new CustomEvent(W,h);_.c("untrack_fire_custom_event_killswitch")?F.dispatchEvent(d):M6(function(){return void F.dispatchEvent(d)});
return d};
_.dW=function(F,W,E,h){W=new Cxr(W,!(h===void 0||!h),E);_.hF(F,"yt-action",W);return W.returnValue};
_.Nc=function(F,W,E){return _.dW(F,W,E,!0)};
_.V7=function(F,W,E){return _.dW(F,W,E)[0]};
_.Rj=function(F,W,E,h){W&&W.length&&W.forEach(function(d){var V=OKb(d);V&&(_.c("handle_service_request_actions")&&d.commandMetadata&&d.commandMetadata.webCommandMetadata&&d.commandMetadata.webCommandMetadata.sendPost?_.UT(E?E:F,[d]):_.Nc(F,V,[d,E,h]))})};
_.UT=function(F,W){var E=[F];W&&E.push.apply(E,W);W=_.dW(F,"yt-service-request",E);return W.length>0&&(W=W[0],_.hF(F,"yt-service-request-sent",W),W&&W.ajaxPromise)?(W.ajaxPromise.then(function(h){_.hF(F,"yt-service-request-completed",h)},function(h){_.hF(F,"yt-service-request-error",{error:h,
params:E})},F),W.ajaxPromise):_.e7()};
_.gW=function(F,W){if(_.c("handle_service_request_actions"))_.Rj(W,F,W);else{F=_.U(F);for(var E=F.next();!E.done;E=F.next()){E=E.value;var h=void 0;((h=_.D(E,_.Mc))==null?0:h.commands)?_.gW(_.D(E,_.Mc).commands,W):(h=void 0,((h=_.D(E,_.Q7))==null?0:h.actions)?_.gW(_.D(E,_.Q7).actions,W):(h=void 0,((h=_.D(E.commandMetadata,_.m1))==null?0:h.sendPost)?_.UT(W,[E]):_.Rj(W,[E],W)))}}};
_.vAo=function(F,W,E){W=W===void 0?{}:W;typeof W==="function"&&(W={callback:W});E||W._c&&W._c.jsl&&W._c.jsl.h||_.xd.extend(W,{_c:{jsl:{h:_.b0("GAPI_HINT_PARAMS")}}});(W.gapiHintOverride||_.b0("GAPI_HINT_OVERRIDE"))&&(E=_.Gk(document.location.href).gapi_jsh)&&_.xd.extend(W,{_c:{jsl:{h:E}}});Bsb(F,W)};
_.CY=function(F,W,E){W=W===void 0?{}:W;F=(F=F in zJ?zJ[F]:E)||"";E={};for(var h in W){E={key$jscomp$788:E.key$jscomp$788};E.key$jscomp$788=h;var d=function(V){return function(){return String(W[V.key$jscomp$788])}}(E);
F=F.replace(new RegExp("\\$\\{"+E.key$jscomp$788+"\\}","gi"),d);F=F.replace(new RegExp("\\$"+E.key$jscomp$788,"gi"),d)}return F};
_.B5=function(F,W){return IaW(F in zJ?zJ[F]:{},W)};
IaW=function(F,W){var E=_.b0("I18N_PLURAL_RULES");E||(E=function(h){return h==1?"one":"other"});
return(F=F["case"+W]||F[E(W)])?F.replace("#",W.toString()):W+""};
xDG=function(F){var W=cJG(F),E=document.getElementById(W),h=E&&G0o(E);h||E&&!h||(E=DDG(F,W,function(){if(!G0o(E)){oUo(E);_.Shk(W);var d=_.v5(_.mzR,W);_.RA(d,0)}}))};
DDG=function(F,W,E){var h=document.createElement("link");h.id=W;h.onload=function(){E&&setTimeout(E,0)};
F=_.s2(F);_.ii(h,F,"stylesheet");(document.getElementsByTagName("head")[0]||document.body).appendChild(h);return h};
cJG=function(F){var W=_.Cr("A");Lu(W,QK(F));return"css-"+yO(W.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
_.AJr=function(F){var W=kUr();F!==W&&(W=_.Ij(),!_.c("web_autonav_allow_off_by_default")&&F||_.c5(0,141,!0),_.c5(0,140,!F),W.save())};
kUr=function(){var F=_.Ij();return _.c("web_autonav_allow_off_by_default")&&!F.getFlag(141)&&_.b0("AUTONAV_OFF_BY_DEFAULT")?!1:!F.getFlag(140)};
ssn=function(F,W){var E,h;F=((E=F.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(h=E.videoAuthorizationToken)==null?void 0:h.credentialTransferTokens)||[];for(E=0;E<F.length;++E)if(F[E].scope===W)return F[E].token||void 0};
LTR=function(F){for(var W=0,E=0;E<F.length;E++)W=W*31+F.charCodeAt(E),E<F.length-1&&(W%=0x800000000000);return W%1E5};
_.D2=function(F){return _.ju("ytcsi."+(F||"")+"data_")||qDY(F)};
_.$DS=function(F){F=_.D2(F);F.metadata||(F.metadata={});return F.metadata};
_.Z3r=function(F){F=_.D2(F);F.tick||(F.tick={});return F.tick};
_.XMr=function(F){F=_.D2(F);if(F.gel){var W=F.gel;W.gelInfos||(W.gelInfos={});W.gelTicks||(W.gelTicks={})}else F.gel={gelTicks:{},gelInfos:{}};return F.gel};
_.H3n=function(F){F=_.XMr(F);F.gelInfos||(F.gelInfos={});return F.gelInfos};
PxY=function(F){var W=_.D2(F).nonce;W||(W=Xf(16),_.D2(F).nonce=W);return W};
qDY=function(F){var W={tick:{},info:{}};_.S5("ytcsi."+(F||"")+"data_",W);return W};
JJS=function(){var F=_.ju("ytcsi.debug");F||(F=[],_.S5("ytcsi.debug",F),_.S5("ytcsi.reference",{}));return F};
_.far=function(F){F=F||"";var W=aao();if(W[F])return W[F];var E=JJS(),h={timerName:F,info:{},tick:{},span:{},jspbInfo:[]};E.push(h);return W[F]=h};
O3r=function(F){F=F||"";var W=aao();W[F]&&delete W[F];var E=JJS(),h={timerName:F,info:{},tick:{},span:{},jspbInfo:[]};E.push(h);W[F]=h};
aao=function(){var F=_.ju("ytcsi.reference");if(F)return F;JJS();return _.ju("ytcsi.reference")};
_.laY=function(F){return b3r[F]||"LATENCY_ACTION_UNKNOWN"};
i3G=function(F,W,E){E=E===void 0?{}:E;var h=!1;_.l0("ytLoggingEventsDefaultDisabled",!1)&&(h=!0);h=h?null:Z0;E=E===void 0?{}:E;var d=Math.round(E.timestamp||(0,_.KU)());_.kt(W,1,d<Number.MAX_SAFE_INTEGER?d:0);d=new nAo;if(E.lact)_.kt(d,1,isFinite(E.lact)?E.lact:-1);else if(E.timestamp)_.kt(d,1,-1);else{var V=_.hV();_.kt(d,1,isFinite(V)?V:-1)}if(E.sequenceGroup&&!_.c("web_gel_sequence_info_killswitch")){V=E.sequenceGroup;var R=RKY(V),M=new yJY;_.kt(M,2,R);_.QJ(M,1,V);_.hy(d,3,M);E.endOfSequence&&delete jsG[E.sequenceGroup]}_.hy(W,
33,d);(E.sendIsolatedPayload?tan:C1G)(F,{endpoint:"log_event",payload:W,cttAuthInfo:E.cttAuthInfo,dangerousLogToVisitorSession:E.dangerousLogToVisitorSession},h)};
_.kb=function(){return(_.c("csi_use_time_origin")||_.c("csi_use_time_origin_tvhtml5"))&&_.xb.timeOrigin?Math.floor(_.xb.timeOrigin):_.xb.timing.navigationStart};
_.rJR=function(F,W){_.AF("_start",F,W)};
_.sT=function(F,W){if(!_.c("web_csi_action_sampling_enabled")||!_.D2(W).actionDisabled){var E=_.far(W||"");_.HPR(E.info,F);F.loadType&&(E=F.loadType,_.$DS(W).loadType=E);_.HPR(_.H3n(W),F);E=PxY(W);W=_.D2(W).cttAuthInfo;Tsb().info(F,E,W)}};
oAb=function(){var F,W,E,h;return((h=_.WZ().resolve(_.Fd(Ln))==null?void 0:(F=UrY())==null?void 0:(W=F.loggingHotConfig)==null?void 0:(E=W.csiConfig)==null?void 0:E.debugTicks)!=null?h:[]).map(function(d){return Object.values(d)[0]})};
_.AF=function(F,W,E){if(!_.c("web_csi_action_sampling_enabled")||!_.D2(E).actionDisabled){var h=PxY(E),d;if(d=_.c("web_csi_debug_sample_enabled")&&h){(_.WZ().resolve(_.Fd(Ln))==null?0:UrY())&&!GUS&&(GUS=!0,_.AF("gcfl",(0,_.KU)(),E));var V,R,M;d=(_.WZ().resolve(_.Fd(Ln))==null?void 0:(V=UrY())==null?void 0:(R=V.loggingHotConfig)==null?void 0:(M=R.csiConfig)==null?void 0:M.debugSampleWeight)||0;if(V=d!==0)b:{V=oAb();if(V.length>0)for(R=0;R<V.length;R++)if(F===V[R]){V=!0;break b}V=!1}V?(d=LTR(h)%d!==
0,_.D2(E).debugTicksExcludedLogged||(V={},V.debugTicksExcluded=d,_.sT(V,E)),_.D2(E).debugTicksExcludedLogged=!0):d=!1}if(!d){F[0]!=="_"&&YDG(F,E,W);d=_.far(E||"");d.tick[F]=W||(0,_.KU)();if(d.callback&&d.callback[F])for(d=_.U(d.callback[F]),V=d.next();!V.done;V=d.next())V=V.value,V();d=_.XMr(E);d.gelTicks&&(d.gelTicks[F]=!0);V=_.Z3r(E);d=W||(0,_.KU)();_.c("log_repeated_ytcsi_ticks")?F in V||(V[F]=d):V[F]=d;V=_.D2(E).cttAuthInfo;F==="_start"?Tsb().baseline(h,W,V):Tsb().tick(F,h,W,V);_.wMY(E);return d}}};
YDG=function(F,W,E){if(_.xb.mark)if(F.startsWith("mark_")||(F="mark_"+F),W&&(F+=" ("+W+")"),E===void 0||_.c("web_csi_disable_alt_time_performance_mark"))_.xb.mark(F);else{E=_.c("csi_use_performance_navigation_timing")?E-_.xb.timeOrigin:E-(_.xb.timeOrigin||_.xb.timing.navigationStart);try{_.xb.mark(F,{startTime:E})}catch(h){}}};
uhe=function(){var F,W=(F=_.xb.getEntriesByType)==null?void 0:F.call(_.xb,"mark");W&&W.forEach(function(E){if(E.name.startsWith("mark_")){var h;(h=_.xb.clearMarks)==null||h.call(_.xb,E.name)}})};
_.SDY=function(){switch(Ofb()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
_.pMo=function(F){var W={},E=function(V,R,M){R=R.match("_rid")?R.split("_rid")[0]:R;typeof M==="number"&&(M=JSON.stringify(M));V.requestIds?V.requestIds.push({endpoint:R,id:M}):V.requestIds=[{endpoint:R,id:M}]};
F=_.U(Object.entries(F));for(var h=F.next();!h.done;h=F.next()){var d=_.U(h.value);h=d.next().value;d=d.next().value;switch(h){case "GetBrowse_rid":E(W,h,d);break;case "GetGuide_rid":E(W,h,d);break;case "GetHome_rid":E(W,h,d);break;case "GetPlayer_rid":E(W,h,d);break;case "GetSearch_rid":E(W,h,d);break;case "GetSettings_rid":E(W,h,d);break;case "GetTrending_rid":E(W,h,d);break;case "GetWatchNext_rid":E(W,h,d);break;case "yt_red":W.isRedSubscriber=!!d;break;case "yt_ad":W.isMonetized=!!d}}return W};
_.mDe=function(F){var W=_.LY("aft",F);if(W)return W;W=_.b0((F||"")+"TIMING_AFT_KEYS",["ol"]);for(var E=W.length,h=0;h<E;h++){var d=_.LY(W[h],F);if(d)return d}return NaN};
_.KTw=function(F,W){_.S5("ytglobal.timing"+(W||"")+"ready_",F)};
_.LY=function(F,W){if(F=_.Z3r(W)[F])return typeof F==="number"?F:F[F.length-1]};
_.wMY=function(F){var W=_.LY("_start",F),E=_.mDe(F),h=!FKn;W&&E&&h&&(e0n(WKY,new EZo(Math.round(E-W),F)),FKn=!0)};
dGb=function(F){qDY(F);hHY();uhe();F||(_.b0("TIMING_ACTION")&&_.OG("PREVIOUS_ACTION",_.b0("TIMING_ACTION")),_.OG("TIMING_ACTION",""))};
_.Nre=function(F){F=F===void 0?{}:F;_.yn(function(){qc();O3r();dGb();_.KTw(!1);F.cttAuthInfo&&(_.D2().cttAuthInfo=F.cttAuthInfo);_.OG("TIMING_AFT_KEYS",[]);F.isHot?_.$b({loadType:"hot"}):_.$b({loadType:"warm"});_.OG("TIMING_ACTION","");delete _.b0("TIMING_INFO",{}).yt_lt;_.yn(_.rJR)(F.startTime,void 0)})()};
_.Z2=function(F,W,E,h){W=W===void 0?{}:W;_.yn(function(){var d=E?E:F;V3o(d);var V=W.sampleRate;if(!_.c("web_csi_action_sampling_enabled")||V===void 0||V<=1)V=!1;else{var R=PxY(d);V=LTR(R)%V!==0}V&&(_.D2(d).actionDisabled=!0);_.far(d||"").info.actionType=F;W.cttAuthInfo&&(_.D2(d).cttAuthInfo=W.cttAuthInfo);_.OG(d+"TIMING_ACTION",F);_.yn(_.rJR)(W.startTime,d);V={actionType:h||_.laY(F)};W.logPreviousAction&&(V.previousAction=_.laY(_.b0("TIMING_ACTION")));(R=_.JR())&&R!=="UNDEFINED_CSN"&&(V.clientScreenNonce=
R);_.$b(V,d);_.KTw(!0,d)})()};
V3o=function(F){_.yn(function(){qc(F);O3r(F);dGb(F)})()};
UGn=function(){_.yn(function(){var F=[],W;for(W in _.ju("ytcsi.".slice(0,-1)))W.endsWith("data_")&&F.push(W.slice(0,-5));F=_.U(F);for(W=F.next();!W.done;W=F.next())V3o(W.value);qc()})()};
_.eHe=function(F){return _.yn(function(){return _.RHr("_start",F)})()};
_.$b=function(F,W,E){_.yn(_.sT)(F,W,E===void 0?!1:E)};
_.P5=function(F,W,E){return _.yn(_.AF)(F,W,E)};
_.RHr=function(F,W){return _.yn(function(){var E=_.Z3r(W);return F in E})()};
gZI=function(F){if(!_.c("universal_csi_network_ticks"))return"";F=_.gV(F)||"";for(var W=Object.keys(M3o),E=0;E<W.length;E++){var h=W[E];if(F.includes(h))return h}return""};
zHr=function(F){if(!_.c("universal_csi_network_ticks"))return function(){};
var W=M3o[F];return W?(_.JF(W),function(){var E=_.c("universal_csi_network_ticks")?(E=Qew[F])?_.JF(E):!1:!1;return E}):function(){}};
_.JF=function(F,W,E){return _.yn(function(){if(_.RHr(F,E))return!1;_.P5(F,W,E);return!0})()};
_.aj=function(F,W,E){_.yn(function(){if(!_.eHe(E)||_.RHr(F,E))return!1;_.P5(F,W,E);return!0})()};
_.fY=function(F){return _.yn(_.LY)(F,void 0)};
qc=function(F){_.eHe(F)&&_.P5("aa",void 0,F)};
_.IoR=function(F,W,E,h,d,V,R,M,g){var t=t3n();M=new _.Hf({veType:W,youtubeData:V,jspbYoutubeData:M});V=OT({},t);d&&(V.cttAuthInfo=d);d={csn:t,pageVe:M.getAsJson()};_.c("expectation_logging")&&g&&g.screenCreatedLoggingExpectations&&(d.screenCreatedLoggingExpectations=g.screenCreatedLoggingExpectations);E&&E.visualElement?(d.implicitGesture={parentCsn:E.clientScreenNonce,gesturedVe:E.visualElement.getAsJson()},R&&(d.implicitGesture.gestureType=R)):E&&_.OB(new _.xC("newScreen() parent element does not have a VE - rootVe",
W));h&&(d.cloneCsn=h);F?$t("screenCreated",d,F,V):_.Pc("screenCreated",d,V);e0n(BRw,new CVG(t));bs.clear();Bre.clear();vZr.clear();return t};
ls=function(F,W,E,h,d){cCY(F,W,E,[h],d===void 0?!1:d)};
cCY=function(F,W,E,h,d){d=d===void 0?!1:d;for(var V=OT({cttAuthInfo:ak(W)||void 0},W),R=_.U(h),M=R.next();!M.done;M=R.next()){M=M.value;var g=M.getAsJson();(_.xd.isEmpty(g)||!g.trackingParams&&!g.veType)&&_.OB(Error("uf"));if(_.c("no_client_ve_attach_unless_shown")){var t=DGY(M,W);if(g.veType&&!Bre.has(t)&&!vZr.has(t)&&!d){if(!_.c("il_attach_cache_limit")||bs.size<1E3){bs.set(t,[F,W,E,M]);return}_.c("il_attach_cache_limit")&&bs.size>1E3&&_.OB(new _.xC("IL Attach cache exceeded limit"))}M=DGY(E,W);
bs.has(M)?xGo(E,W):vZr.set(M,!0)}}h=h.filter(function(C){C.csn!==W?(C.csn=W,C=!0):C=!1;return C});
E={csn:W,parentVe:E.getAsJson(),childVes:_.AN(h,function(C){return C.getAsJson()})};
W==="UNDEFINED_CSN"?nY("visualElementAttached",V,E):F?$t("visualElementAttached",E,F,V):_.Pc("visualElementAttached",E,V)};
ACk=function(F,W,E,h,d){kGe(F,W,E,d)};
kGe=function(F,W,E,h){seS(E,W);var d=OT({cttAuthInfo:ak(W)||void 0},W);E={csn:W,ve:E.getAsJson(),eventType:1};h&&(E.clientData=h);W==="UNDEFINED_CSN"?nY("visualElementShown",d,E):F?$t("visualElementShown",E,F,d):_.Pc("visualElementShown",E,d)};
LKk=function(F,W,E,h){seS(E,W);var d=OT({cttAuthInfo:ak(W)||void 0},W);E={csn:W,ve:E.getAsJson(),eventType:4};h&&(E.clientData=h);W==="UNDEFINED_CSN"?nY("visualElementShown",d,E):F?$t("visualElementShown",E,F,d):_.Pc("visualElementShown",E,d)};
qje=function(F,W,E,h,d){var V=(h=h===void 0?!1:h)?16:8;h=OT({cttAuthInfo:ak(W)||void 0,endOfSequence:h},W);E={csn:W,ve:E.getAsJson(),eventType:V};d&&(E.clientData=d);W==="UNDEFINED_CSN"?nY("visualElementHidden",h,E):F?$t("visualElementHidden",E,F,h):_.Pc("visualElementHidden",E,h)};
Z$r=function(F,W,E,h,d){$GS(F,W,E,void 0,h,d)};
$GS=function(F,W,E,h,d){seS(E,W);h=h||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var V=OT({cttAuthInfo:ak(W)||void 0},W);E={csn:W,ve:E.getAsJson(),gestureType:h};d&&(E.clientData=d);W==="UNDEFINED_CSN"?nY("visualElementGestured",V,E):F?$t("visualElementGestured",E,F,V):_.Pc("visualElementGestured",E,V)};
Xyk=function(F,W,E,h){var d=OT({cttAuthInfo:ak(W)||void 0},W);E={csn:W,ve:E.getAsJson(),clientData:h};W==="UNDEFINED_CSN"?nY("visualElementStateChanged",d,E):F?$t("visualElementStateChanged",E,F,d):_.Pc("visualElementStateChanged",E,d)};
H$e=function(){var F=CGR(16);for(var W=[],E=0;E<F.length;E++)W.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(F[E]&63));return W.join("")};
nY=function(F,W,E){PVY.push({payloadName:F,payload:E,jspbPayload:void 0,options:W});JCe||(JCe=IsI())};
CCr=function(F){if(PVY){for(var W=_.U(PVY),E=W.next();!E.done;E=W.next())E=E.value,E.payload&&(E.payload.csn=F.csn,_.Pc(E.payloadName,E.payload,E.options));PVY.length=0}JCe=0};
DGY=function(F,W){return""+F.getAsJson().veType+F.getAsJson().veCounter+W};
seS=function(F,W){if(_.c("no_client_ve_attach_unless_shown")){var E=DGY(F,W);Bre.set(E,!0);xGo(F,W)}};
xGo=function(F,W){F=DGY(F,W);bs.has(F)&&(W=bs.get(F)||[],ls(W[0],W[1],W[2],W[3],!0),bs.delete(F))};
OT=function(F,W){_.c("log_sequence_info_on_gel_web")&&(F.sequenceGroup=W);return F};
_.y7=function(F,W,E){_.yn(ls)(void 0,F,W,E)};
_.j7=function(F,W,E){_.yn(cCY)(void 0,F,W,E)};
_.is=function(F,W){_.yn(ACk)(void 0,F,W,void 0,void 0,void 0)};
_.rW=function(F,W,E){_.yn(function(){_.Tk(W,function(h){LKk(void 0,F,h,E)})})()};
_.TJ=function(F,W,E,h){_.yn(function(){_.Tk(W,function(d){qje(void 0,F,d,E,h)})})()};
_.oj=function(F,W,E){_.yn(Z$r)(void 0,F,W,E,void 0)};
_.GJ=function(F,W,E,h){_.yn($GS)(void 0,F,W,E,h,void 0)};
_.Yb=function(F,W,E){_.yn(Xyk)(void 0,F,W,E,void 0)};
us=function(F){return wW.get(F)};
aok=function(F,W){wW.set(F,W)};
O$w=function(){return"10000000-1000-4000-8000-100000000000".replace(/[018]/g,function(F){return(+F^crypto.getRandomValues(new Uint8Array(1))[0]&15>>+F/4).toString(16)})};
yCe=function(F,W){W=W===void 0?{}:W;if(S7&&S7.sample(F,W)){var E=b$n++,h,d;F=new loo(F,W,performance.now(),E,nZe,(d=(h=pY)==null?void 0:h.traceId)!=null?d:E);if(pY){var V;(V=pY).children||(V.children=[]);pY.children.push(F)}E=_.U(S7.spanProcessors);for(h=E.next();!h.done;h=E.next())V=d=void 0,(V=(d=h.value).onSpanStart)==null||V.call(d,F);return pY=F}};
jeo=function(F){var W;return(W=S7)==null?void 0:W.sample(F,void 0)};
i$Y=function(F){nZe=O$w();S7=F};
rCY=function(F,W,E){if(!F)return W(E);var h=void 0;try{return W(E)}catch(d){throw h="error",d;}finally{F==null||F.close(h)}};
TrY=function(F,W){var E=Object.keys(F);F=new _.xC("[Command Handler] "+W,{filteredCommandNames:E,originalCommand:F});_.a_(F)};
oZe=function(F,W){TrY(F,W+" was called but not set")};
GGo=function(F){return function(){return new F}};
ms=function(F){return function(){return _.WZ().resolve(F)}};
YjG=function(F,W){var E=_.D(F,_.jh);if(E&&(E=W[E.signal]))return E();F=_.U(Object.keys(F));for(E=F.next();!E.done;E=F.next())if(E=E.value,W[E]&&(E=W[E]))return E()};
KY=function(F,W,E,h){return{browseEndpoint:{browseId:F},commandMetadata:{webCommandMetadata:{url:W,rootVe:E,webPageType:h===void 0?"WEB_PAGE_TYPE_BROWSE":h}}}};
wye=function(F,W,E){var h=W=W===void 0?0:W;E=E===void 0?0:E;var d=E-h;return _.FD(F,"PPSV",void 0,void 0,(d>600?0:d<60||E<=0||h/E>.9)?0:W)};
_.FD=function(F,W,E,h,d){var V="/watch?v="+F;F={videoId:F};W&&(F.playlistId=W,V+="&list="+W);h&&(V+="&pp="+h);d&&(F.startTimeSeconds=d,V+="&t="+d+"s");W={watchEndpoint:F,commandMetadata:{webCommandMetadata:{url:V,rootVe:3832,webPageType:"WEB_PAGE_TYPE_WATCH"}}};E&&(W.clickTrackingParams=E);h&&(_.D(W,_.GM).playerParams=h);return W};
uUw=function(F){return{browseEndpoint:{browseId:"VL"+F},commandMetadata:{webCommandMetadata:{url:"/playlist?list="+F,rootVe:5754,webPageType:"WEB_PAGE_TYPE_PLAYLIST"}}}};
Sjk=function(F){if(F){var W;if(F){var E=(W=_.D(F.commandMetadata,_.m1))==null?void 0:W.url;W=!(!E||E==="/service_ajax")}else W=!1;if(W)return F;var h;if(F=(h=_.D(F,_.Mc))==null?void 0:h.commands)for(h=_.U(F),F=h.next();!F.done;F=h.next())if(F=Sjk(F.value))return F}};
_.Wz=function(F){return{runs:[{text:F}]}};
pyb=function(F,W){return F&&W?{runs:[{text:F,navigationEndpoint:W}]}:void 0};
E_=function(F){return F?_.Wz(F):void 0};
_.hE=function(F){return F?{simpleText:F}:void 0};
_.dR=function(F){var W=F.type;F=F.payload;W={type:W};F!==void 0&&(W.payload=F);return W};
mGG=function(F,W,E){for(var h=Object.assign({},F),d=_.U(Object.keys(W)),V=d.next();!V.done;V=d.next()){V=V.value;var R=F[V],M=W[V];if(M===void 0)delete h[V];else if(R===void 0)h[V]=M;else if(Array.isArray(M)&&Array.isArray(R))h[V]=E?[].concat(_.x9(R),_.x9(M)):M;else if(!Array.isArray(M)&&_.NU(M)&&!Array.isArray(R)&&_.NU(R))h[V]=mGG(R,M,E);else if(typeof M===typeof R)h[V]=M;else return W=new _.xC("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:V,originalValue:R,updateValue:M}),
_.a_(W),F}return h};
WMG=function(F){if(!F.length)return"";try{if(KKb)return KKb.decode(F);if("FetchInternal"in window)return FetchInternal.decodeFromUTF8(F)}catch(R){}for(var W=0,E=[],h=F.length;W<h;){for(var d=0;d<1024&&W<h;){var V=F[W++];if(V<128)FMY[d++]=V;else{if(V<224)V=(V&31)<<6|F[W++]&63;else if(V<240)V=(V&15)<<12|(F[W++]&63)<<6|F[W++]&63;else{if(d+1===1024){--W;break}V=(V&7)<<18|(F[W++]&63)<<12|(F[W++]&63)<<6|F[W++]&63;V-=65536;FMY[d++]=55296|V>>10;V=56320|V&1023}FMY[d++]=V}}V=String.fromCharCode.apply(String,
FMY);d<1024&&(V=V.substring(0,d));E.push(V)}return E.join("")};
hiI=function(F,W){var E;if((E=E4R)==null?0:E.encodeInto)return W=E4R.encodeInto(F,W),W.read<F.length?F.length*4:W.written;for(var h=E=0;h<F.length;h++){var d=F.charCodeAt(h);d<128?W[E++]=d:(d<2048?W[E++]=d>>6|192:((d&64512)===55296&&h+1<F.length&&(F.charCodeAt(h+1)&64512)===56320?(d=65536+((d&1023)<<10)+(F.charCodeAt(++h)&1023),W[E++]=d>>18|240,W[E++]=d>>12&63|128):W[E++]=d>>12|224,W[E++]=d>>6&63|128),W[E++]=d&63|128)}return E};
dHo=function(F,W){F=new Uint8Array(F);W&&F.set(W);return F};
_.Vz=function(F){F=new Npo(new VCW([_.CT(decodeURIComponent(F))]));if(UHr(F,2)){var W=Nn(F);var E=F.pos;var h=F.arrayView;E=E===void 0?0:E;var d=W===void 0?-1:W;E=E===void 0?0:E;d=d===void 0?-1:d;if(h.totalLength&&d){d<0&&(d=h.totalLength-E);h.focus(E);if(!(E-h.arrayPos+d<=h.arrays[h.arrayIdx].length)){var V=h.arrayIdx,R=h.arrayPos;h.focus(E+d-1);R=new Uint8Array(h.arrayPos+h.arrays[h.arrayIdx].length-R);for(var M=0,g=V;g<=h.arrayIdx;g++)R.set(h.arrays[g],M),M+=h.arrays[g].length;h.arrays.splice(V,
h.arrayIdx-V+1,R);h.arrayIdx=0;h.arrayPos=0;h.focus(E)}V=h.arrays[h.arrayIdx];h=new DataView(V.buffer,V.byteOffset+E-h.arrayPos,d)}else h=new DataView(new ArrayBuffer(0));h=new Uint8Array(h.buffer,h.byteOffset,h.byteLength);F.pos+=W;W=h}else W=void 0;W=W?WMG(W):void 0;F=UHr(F,4)?Nn(F):void 0;h=Rik[F];if(typeof h==="undefined")throw F=new _.xC("Failed to recognize field number",{name:"EntityKeyHelperError",fieldNumber:F}),_.a_(F),F;return{entityTypeFieldNumber:F,entityType:h,entityId:W}};
_.eF=function(F,W,E){E=E===void 0?0:E;var h=new eib;if(E4R)F=E4R.encode(F);else{var d=new Uint8Array(Math.ceil(F.length*1.2)),V=hiI(F,d);d.length<V&&(d=new Uint8Array(V),V=hiI(F,d));d.length>V&&(d=d.subarray(0,V));F=d}F!==void 0&&(U_(h,18),d=F.length,U_(h,d),Rx(h,d),h.buf.set(F,h.pos),h.pos+=d);F=MCR[W];if(typeof F==="undefined")throw E=new _.xC("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:W}),_.a_(E),E;F!==void 0&&(U_(h,32),U_(h,F));U_(h,40);U_(h,1);W=new Uint8Array(h.buf.buffer,
h.buf.byteOffset,h.pos);return encodeURIComponent(_.FG(W,E))};
g4o=function(F){F=F.key||F.id;if(!F)throw Error("yf");return F};
zin=function(F,W){F=F===void 0?{}:F;return Q7W(F,W)};
tCe=function(F,W,E,h){if(h===void 0)return h=Object.assign({},F[W]||{}),E=(delete h[E],h),h={},Object.assign({},F,(h[W]=E,h));var d={},V={};return Object.assign({},F,(V[W]=Object.assign({},F[W],(d[E]=h,d)),V))};
Cnw=function(F,W,E,h,d){var V=F[W];if(V==null||!V[E])return F;h=mGG(V[E],h,d==="REPEATED_FIELDS_MERGE_OPTION_APPEND");d={};V={};return Object.assign({},F,(V[W]=Object.assign({},F[W],(d[E]=h,d)),V))};
_.Mn=function(F,W,E){return F[W]?F[W][E]||null:null};
v4o=function(){if(Bpb)return Bpb();var F={};Bpb=me("PersistentEntityStoreDb",{objectStores:(F.EntityStore={addedAtVersion:1},F.EntityAssociationStore={addedAtVersion:2},F),shared:!1,upgrade:function(W,E){E(1)&&yA(nM(W,"EntityStore",{keyPath:"key"}),"entityType","entityType");E(2)&&(W=nM(W,"EntityAssociationStore",{keyPath:["parentEntityKey","childEntityKey"]}),yA(W,"byParentEntityKey","parentEntityKey"),yA(W,"byChildEntityKey","childEntityKey"))},
version:3});return Bpb()};
I5W=function(F){return _.TC(v4o(),F)};
gR=function(F){return window.Int32Array?new Int32Array(F):Array(F)};
DHb=function(F){return _.TC(cBw(),F)};
xHr=function(F){return new Qz("WRONG_DATA_TYPE",{encoderVersion:F})};
kar=function(F){return F instanceof Error?new Qz("UNKNOWN_ENCODE_ERROR",{originalMessage:F.message}):new Qz("UNKNOWN_ENCODE_ERROR")};
ABR=function(F){return F instanceof Error?new Qz("UNKNOWN_DECODE_ERROR",{originalMessage:F.message}):new Qz("UNKNOWN_DECODE_ERROR")};
s7I=function(F,W){F=F instanceof Qz?F:W(F);_.a_(F);throw F;};
LMY=function(F){F=(new TextEncoder).encode(F).subarray(0,16);var W=new Uint8Array(16);W.set(F);return W};
$Hb=function(F){var W=qwb[F];if(W)return W;_.OB(new _.xC("Entity model not found.",{entityType:F}))};
_.zr=function(){ZBo||(ZBo=XDw());return ZBo};
XDw=function(){var F,W,E;return _.e(function(h){if(h.nextAddress==1)return _.Nl(h,2),_.Q(h,_.pU(),4);if(h.nextAddress!=2){F=h.yieldResult;if(!F||!_.DJ()||typeof _.EY.BroadcastChannel==="undefined")return h.return();W=new HBY;return h.return(new tE(F,W))}E=_.Ml(h);E instanceof Error&&_.a_(E);return h.return()})};
_.CV=function(F,W){var E;return _.e(function(h){if(h.nextAddress==1){E=F.mutations;if(!E||E.length<=0)return h.return();W&&W.dispatch(_.dR({type:"ENTITY_LOADED",payload:E}));return _.Q(h,PnS(E),2)}E.length=0;_.gG(h)})};
PnS=function(F){var W;return _.e(function(E){return E.nextAddress==1?_.Q(E,_.zr(),2):(W=E.yieldResult)?_.Q(E,_.Bz(W,"readwrite",function(h){for(var d={},V=_.U(F),R=V.next(),M={};!R.done;M={mutation$jscomp$4:void 0,mutationEntityType$jscomp$3:void 0},R=V.next())M.mutation$jscomp$4=R.value,M.mutation$jscomp$4.entityKey&&JBb(M.mutation$jscomp$4)&&(M.mutationEntityType$jscomp$3=(0,_.xd.getAnyKey)(M.mutation$jscomp$4.payload),R=void 0,M.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_REPLACE"&&(R=function(g){return function(){return _.a5I(h,
g.mutation$jscomp$4.payload[g.mutationEntityType$jscomp$3],g.mutationEntityType$jscomp$3)}}(M)),M.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_DELETE"&&(R=function(g){return function(){return f5o(h,g.mutation$jscomp$4.entityKey)}}(M)),M.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_UPDATE"&&(R=function(g){return function(){return OBr(h,g.mutation$jscomp$4.entityKey,g.mutation$jscomp$4.payload[g.mutationEntityType$jscomp$3],g.mutationEntityType$jscomp$3)}}(M)),R&&(d[M.mutation$jscomp$4.entityKey]=
d[M.mutation$jscomp$4.entityKey]?d[M.mutation$jscomp$4.entityKey].then(R):R()));
return ld.all(Object.values(d))}),0):E.return()})};
JBb=function(F){var W;F=(W=F.options)==null?void 0:W.persistenceOption;return F==="ENTITY_PERSISTENCE_OPTION_PERSIST"||F==="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST"};
n4b=function(F,W){var E,h;_.e(function(d){if(d.nextAddress==1)return _.Q(d,_.zr(),2);if(d.nextAddress!=3)return(E=d.yieldResult)?_.Q(d,_.Bz(E,"readonly",function(V){var R={},M=Object.keys(W).map(function(g){var t=W[g]?[].concat(_.x9(W[g])):[];return bBo(V,g,t,R)});
return ld.all(M).then(function(){return R})}),3):d.return();
h=d.yieldResult;Object.keys(h).length>0&&F.dispatch(l5k(h));_.gG(d)})};
bBo=function(F,W,E,h){return vz(F,W,E).then(function(d){h[W]=yBo(E,d)})};
yBo=function(F,W){if(W.length!==F.length)throw Error("Bf");return W.reduce(function(E,h,d){E[F[d]]=h;return E},{})};
rBI=function(F){var W=F.filter(function(d){var V;return(d==null?void 0:(V=d.transferEntity)==null?void 0:V.transferState)==="TRANSFER_STATE_COMPLETE"}).length,E=F.filter(function(d){var V;
return(d==null?void 0:(V=d.transferEntity)==null?void 0:V.transferState)==="TRANSFER_STATE_FAILED"}).length,h=F.filter(function(d){var V;
return(d==null?void 0:(V=d.transferEntity)==null?void 0:V.transferState)&&j7o.includes(d.transferEntity.transferState)});
if(!(W||h!=null&&h.length))return 0;W=_.iBY(h)+W;F=F.length-E;return F===0?0:Math.round(W*100/F)/100};
_.iBY=function(F){var W=[];W=W.concat.apply(W,_.x9(F.filter(function(V){return V.streamEntity}).map(function(V){var R=Object.assign({},V.streamEntity),M,g=(M=V.transferEntity)==null?void 0:M.transferState;
R.streamsProgress=R.streamsProgress||[];R.streamsProgress=R.streamsProgress.map(function(t){var C=Object.assign({},t);C.numBytesDownloaded=g==="TRANSFER_STATE_COMPLETE"?t.numTotalBytes:t.numBytesDownloaded;return C});
return R}).map(function(V){return V.streamsProgress})));
var E=F=0;W=_.U(W);for(var h=W.next();!h.done;h=W.next()){var d=h.value;h=Number(d.numBytesDownloaded);d=Number(d.numTotalBytes);E+=isNaN(h)?0:h;F+=isNaN(d)?0:d}return F===0?0:Math.round(E*100/F)/100};
TpR=function(F){if(!F||!F.expirationTimestamp||!F.action)return!1;var W=(0,_.KU)()/1E3;return Number(F.expirationTimestamp)>=W};
Ix=function(F){return F&&F.expirationTimestamp&&F.action?TpR(F)&&F.action==="OFFLINE_VIDEO_POLICY_ACTION_OK":!1};
_.cz=function(F){return["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"].includes(F||"TRANSFER_STATE_UNKNOWN")};
o4Y=function(F){var W=new eib;if(F!==void 0){var E=Math.ceil(Math.log2(F.length*4+2)/7);E=E===void 0?2:E;U_(W,10);W.submessagePosStack.push(W.pos);W.submessagePosStack.push(E);W.pos+=E;Rx(W,F.length*1.2);E=hiI(F,W.buf.subarray(W.pos));W.pos+E>W.buf.length&&(Rx(W,E),E=hiI(F,W.buf.subarray(W.pos)));W.pos+=E;F=W.submessagePosStack.pop();E=W.submessagePosStack.pop();for(var h=W.pos-E-F;F--;){var d=F?128:0;W.view.setUint8(E++,h&127|d);h>>=7}}W=new Uint8Array(W.buf.buffer,W.buf.byteOffset,W.pos);return(new TextDecoder("utf-8")).decode(W)};
_.Ds=function(F){var W=0;F=_.U(F);for(var E=F.next(),h={};!E.done;h={transferState$jscomp$3:void 0},E=F.next()){var d=E.value,V=void 0;E=(V=d.streamEntity)!=null?V:{};V=void 0;h.transferState$jscomp$3=(V=d.transferEntity)==null?void 0:V.transferState;V=d=void 0;((d=E)==null?0:(V=d.streamsProgress)==null?0:V.length)&&E.streamsProgress.forEach(function(R){return function(M){M=Number(R.transferState$jscomp$3==="TRANSFER_STATE_COMPLETE"?M.numTotalBytes:M.numBytesDownloaded);isFinite(M)&&(W+=M)}}(h))}return W};
Gak=function(F){return F.some(function(W){var E;if(!(W==null?0:(E=W.transferEntity)==null?0:E.transferState)){var h;return!(W==null?0:(h=W.policyEntity)==null?0:h.action)||W.policyEntity.action==="OFFLINE_VIDEO_POLICY_ACTION_OK"}return j7o.includes(W.transferEntity.transferState)})};
Yww=function(F,W){if(!W)return!1;if(_.c("of_pb_en_po_ks"))return!0;var E;F=(E=_.Mn(F,"offlineVideoPolicy",_.eF(W,"offlineVideoPolicy")))!=null?E:void 0;return!!F&&Ix(F)};
_.u4R=function(F){var W=["TRANSFER_STATE_COMPLETE"];W=W===void 0?wDw:W;return F.filter(function(E){var h,d;return W.includes((d=(h=E.transferEntity)==null?void 0:h.transferState)!=null?d:"TRANSFER_STATE_UNKNOWN")})};
Swe=function(F,W){if(W){var E,h=(E=_.Mn(F,"playbackData",_.eF(W,"playbackData")))!=null?E:null,d;E=(d=_.Mn(F,"transfer",_.eF(W,"transfer")))!=null?d:null;var V;d=(V=_.Mn(F,"offlineVideoStreams",_.eF(W,"offlineVideoStreams")))!=null?V:null;var R;F=(R=_.Mn(F,"offlineVideoPolicy",_.eF(W,"offlineVideoPolicy")))!=null?R:null;if(h||E||d||F)return{playbackDataEntity:h,transferEntity:E,streamEntity:d,policyEntity:F}}};
_.xr=function(F){var W=F.playbackData;if(!W)return[];var E=[];W=_.U(Object.keys(W));for(var h=W.next();!h.done;h=W.next()){var d=h.value;if(!pDo(F,_.Vz(d).entityId)&&(h=Swe(F,_.Vz(d).entityId))){var V=void 0,R=void 0;d=(R=Number((V=_.Mn(F,"playbackData",d))==null?void 0:V.streamDownloadTimestampSeconds))!=null?R:(0,_.KU)();E.push({entity:h,streamDownloadTimestamp:d})}}return E.sort(function(M,g){var t=M.streamDownloadTimestamp,C=g.streamDownloadTimestamp;return C===t?M.entity.streamEntity&&!g.entity.streamEntity?
1:-1:C-t}).map(function(M){return M.entity})};
mHS=function(F){return _.u4R(_.xr(F))};
_.KMY=function(F){return _.xr(F).filter(function(W){var E;if(((E=W.policyEntity)==null?0:E.action)&&W.policyEntity.action!=="OFFLINE_VIDEO_POLICY_ACTION_OK")return!1;var h;if((h=W.transferEntity)==null?0:h.transferState){var d;return j7o.includes((d=W.transferEntity)==null?void 0:d.transferState)}return!0})};
pDo=function(F,W){var E;return((E=_.Mn(F,"downloadStatusEntity",_.eF(W,"downloadStatusEntity")))==null?void 0:E.downloadState)==="DOWNLOAD_STATE_USER_DELETED"?!0:!1};
Fye=function(F){var W;if(F==null?0:(W=F.playbackDataEntity)==null?0:W.key)return _.Vz(F.playbackDataEntity.key).entityId;var E;if(F==null?0:(E=F.transferEntity)==null?0:E.key)return _.Vz(F.transferEntity.key).entityId;var h;if(F==null?0:(h=F.streamEntity)==null?0:h.key)return _.Vz(F.streamEntity.key).entityId;var d;if(F==null?0:(d=F.policyEntity)==null?0:d.key)return _.Vz(F.policyEntity.key).entityId};
E5k=function(F){var W=new Set,E;F=(E=F.mainDownloadsListEntity)==null?void 0:E[Wyo];var h;if(!(F==null?0:(h=F.downloads)==null?0:h.length))return W;var d;F==null||(d=F.downloads)==null||d.forEach(function(V){(V==null?0:V.videoItem)&&W.add(V.videoItem)});
return W};
kr=function(F,W){if(W){var E=_.Mn(F,"mainVideoEntity",_.eF(W,"mainVideoEntity")),h=_.Mn(F,"downloadStatusEntity",_.eF(W,"downloadStatusEntity")),d=_.Mn(F,"ytMainChannelEntity",_.eF(W,"ytMainChannelEntity")),V={playbackDataEntity:null,transferEntity:null,streamEntity:null,policyEntity:null};F=Swe(F,W);h=(h==null?void 0:h.downloadState)==="DOWNLOAD_STATE_PENDING_DOWNLOAD"||!_.c("woffle_render_failed_download_state_ks")&&(h==null?void 0:h.downloadState)==="DOWNLOAD_STATE_FAILED";!F&&h&&(F=V);if(F&&E&&
d)return Object.assign({},{videoEntity:E,channelEntity:d},F)}};
ddY=function(F,W){return hRo(F,W)==="TRANSFER_STATE_COMPLETE"&&Yww(F,W)};
NNY=function(F,W){if(!W)return!1;var E;F=(E=_.Mn(F,"playbackData",_.eF(W,"playbackData")))!=null?E:void 0;return!!F&&!!F.playerResponseJson};
hRo=function(F,W){if(!W)return"TRANSFER_STATE_UNKNOWN";var E=_.Mn(F,"transfer",_.eF(W,"transfer"));if(E){var h;return(h=E.transferState)!=null?h:"TRANSFER_STATE_UNKNOWN"}E=_.Mn(F,"offlineOrchestrationActionWrapperEntity",_.eF(W,"offlineOrchestrationActionWrapperEntity"));F=_.Mn(F,"mainVideoEntity",_.eF(W,"mainVideoEntity"));return E||F?"TRANSFER_STATE_TRANSFER_IN_QUEUE":"TRANSFER_STATE_UNKNOWN"};
VMo=function(F,W){if(!W)return"TRANSFER_STATE_UNKNOWN";if(F=_.Mn(F,"transfer",_.eF(W,"transfer"))){var E;return(E=F.transferState)!=null?E:"TRANSFER_STATE_UNKNOWN"}return"TRANSFER_STATE_UNKNOWN"};
Udn=function(F,W){return W&&(F=_.Mn(F,"videoPlaybackPositionEntity",_.eF(W,"videoPlaybackPositionEntity")),F==null?0:F.lastPlaybackPositionSeconds)?Number(F.lastPlaybackPositionSeconds):0};
eRG=function(F,W){return RRI(F).some(function(E){var h;return(E==null?void 0:(h=E.mainPlaylistEntity)==null?void 0:h.playlistId)===W})};
iHr=function(F,W,E){var h=jqG(F,W);if(!h.length)return[];W=[];h=_.U(h);for(var d=h.next();!d.done;d=h.next()){d=d.value;var V=kr(F,d);E&&hRo(F,d)!=="TRANSFER_STATE_COMPLETE"||V&&W.push(V)}return W};
jqG=function(F,W){if(!W)return[];var E=_.eF(W,"mainPlaylistEntity"),h;W=(h=F.mainPlaylistEntity)==null?void 0:h[E];h=[];if(W==null||!W.videos)return h;W=_.U(W.videos);for(E=W.next();!E.done;E=W.next()){E=E.value;var d=void 0,V=void 0,R=void 0,M=(d=F)==null?void 0:(V=d.mainPlaylistVideoEntity)==null?void 0:(R=V[E])==null?void 0:R.video;M&&(E=_.Vz(M).entityId)&&h.push(E)}return h};
rjo=function(F,W){if(W){var E=_.Mn(F,"mainPlaylistEntity",_.eF(W,"mainPlaylistEntity")),h=_.Mn(F,"mainPlaylistDownloadStateEntity",_.eF(W,"mainPlaylistDownloadStateEntity"));F=_.Mn(F,"ytMainChannelEntity",_.eF(W,"ytMainChannelEntity"));if(h&&E)return Object.assign({},{mainPlaylistEntity:E,mainPlaylistDownloadStateEntity:h},!!F&&{channelEntity:F})}};
RRI=function(F){return TNn(F).sort(function(W,E){return E.addedTimestampMillis-W.addedTimestampMillis}).map(function(W){return W.downloadedPlaylistEntities})};
TNn=function(F){var W=F.mainPlaylistDownloadStateEntity,E=[];if(!W)return E;for(var h=_.U(Object.keys(W)),d=h.next();!d.done;d=h.next()){var V=d.value;d=rjo(F,_.Vz(V).entityId);var R=void 0;V=Number((R=W[V])==null?void 0:R.addedTimestampMillis);R=isNaN(V)?(0,_.KU)():V;d!==void 0&&E.push({downloadedPlaylistEntities:d,addedTimestampMillis:R})}return E};
o5Y=function(F){var W,E=(W=F.mainPlaylistVideoEntity)!=null?W:{};return new Set(RRI(F).reduce(function(h,d){h=h===void 0?[]:h;var V,R;d==null||(V=d.mainPlaylistEntity)==null||(R=V.videos)==null||R.forEach(function(M){var g;(M=(g=E[M])==null?void 0:g.video)&&h.push(M)});
return h},[]))};
GNe=function(F){return"downloadedMusicPlaylistEntities"in F};
YPr=function(F){return"mainPlaylistEntity"in F&&"mainPlaylistDownloadStateEntity"in F};
wiW=function(F){return"videoEntity"in F&&"channelEntity"in F};
uxn=function(F){var W=F.musicPlaylistDownloadMetadataEntity,E=[];if(!W)return E;for(var h=_.U(Object.keys(W)),d=h.next();!d.done;d=h.next()){d=d.value;a:{var V=F,R=_.Vz(d).entityId;if(R){var M=_.Mn(V,"musicPlaylist",_.eF(R,"musicPlaylist"));V=_.Mn(V,"musicPlaylistDownloadMetadataEntity",_.eF(R,"musicPlaylistDownloadMetadataEntity"));if(M&&V){M={musicPlaylistEntity:M,musicPlaylistDownloadStateEntity:V};break a}}M=void 0}V=void 0;d=Number((V=W[d])==null?void 0:V.addedTimestampMillis);d=isNaN(d)?(0,_.KU)():
d;M!==void 0&&E.push({downloadedMusicPlaylistEntities:M,addedTimestampMillis:d})}return E};
SPr=function(F){var W=new Set;F=_.U(F);for(var E=F.next();!E.done;E=F.next())if(E=E.value,"musicPlaylistEntity"in E&&"musicPlaylistDownloadStateEntity"in E){E=_.U(E.musicPlaylistEntity.tracks);for(var h=E.next();!h.done;h=E.next())W.add(h.value)}return W};
piG=function(F,W){if(W){var E=_.Mn(F,"musicTrack",_.eF(W,"musicTrack")),h=_.Mn(F,"musicArtist",_.eF(W,"musicArtist"))||{};if((F=Swe(F,W))&&E&&h)return Object.assign({},{musicTrackEntity:E,musicArtistEntity:h},F)}};
mdY=function(F){var W=F.musicTrackDownloadMetadataEntity,E=[];if(!W)return[];W=_.U(Object.keys(W));for(var h=W.next();!h.done;h=W.next()){var d=h.value;h=piG(F,_.Vz(d).entityId);var V=void 0;d=Number((V=_.Mn(F,"musicTrackDownloadMetadataEntity",d))==null?void 0:V.addedTimestampMillis);V=isNaN(d)?(0,_.KU)():d;h!==void 0&&E.push({downloadedMusicEntities:h,addedTimestampMillis:V})}return E};
W4k=function(F,W){if(!W)return[];if(Object.values(KyI).includes(W))return F4R(F,W);W=_.eF(W,"musicPlaylist");var E;F=(E=F.musicPlaylist)==null?void 0:E[W];E=[];if(F==null||!F.tracks)return E;F=_.U(F.tracks);for(W=F.next();!W.done;W=F.next())(W=_.Vz(W.value).entityId)&&E.push(W);return E};
F4R=function(F,W){var E=new Set,h=uxn(F).map(function(V){return V.downloadedMusicPlaylistEntities});
h=SPr(h);h=_.U(h);for(var d=h.next();!d.done;d=h.next())(d=_.Vz(d.value).entityId)&&E.add(d);return EJr(F).downloadedMusicEntities.filter(function(V){var R;if((R=V.musicTrackEntity)!=null&&R.videoId){V=V.musicTrackEntity;if(R=W==="PPOM"?!0:!E.has(V.videoId))b:switch(V=V.musicVideoType,W){case "PPSE":R=V==="MUSIC_VIDEO_TYPE_PODCAST_EPISODE";break b;default:R=V!=="MUSIC_VIDEO_TYPE_PODCAST_EPISODE"}V=R}else V=!1;return V}).map(function(V){var R;
return(R=V.musicTrackEntity)==null?void 0:R.videoId})};
EJr=function(F){var W=mdY(F).sort(function(E,h){return h.addedTimestampMillis-E.addedTimestampMillis}).map(function(E){return"downloadedMusicEntities"in E?E.downloadedMusicEntities:GNe(E)?E.downloadedMusicPlaylistEntities:{}});
F=uxn(F).sort(function(E,h){return h.addedTimestampMillis-E.addedTimestampMillis}).map(function(E){return"downloadedMusicEntities"in E?E.downloadedMusicEntities:GNe(E)?E.downloadedMusicPlaylistEntities:{}});
return{downloadedMusicEntities:W,downloadedMusicPlaylistEntities:F}};
dCn=function(F,W){W=_.b0("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?W4k(F,W):jqG(F,W);if(!W.length)return"TRANSFER_STATE_UNKNOWN";W=W.map(function(E){return VMo(F,E)});
return hLG(W)};
hLG=function(F){var W=new Set(F);if(W.has("TRANSFER_STATE_FAILED")&&W.size===1)return"TRANSFER_STATE_FAILED";W.delete("TRANSFER_STATE_FAILED");if(W.has("TRANSFER_STATE_UNKNOWN")&&W.size===1)return"TRANSFER_STATE_PRE_TRANSFER";W.delete("TRANSFER_STATE_UNKNOWN");if(W.has("TRANSFER_STATE_PRE_TRANSFER")&&W.size===1||W.size===0)return"TRANSFER_STATE_PRE_TRANSFER";F=W.has("TRANSFER_STATE_TRANSFERRING");W=W.has("TRANSFER_STATE_TRANSFER_IN_QUEUE");return F||W?"TRANSFER_STATE_TRANSFERRING":"TRANSFER_STATE_COMPLETE"};
AE=function(F){var W=F.mainVideoDownloadStateEntity,E=[];if(!W)return[];W=_.U(Object.keys(W));for(var h=W.next();!h.done;h=W.next()){var d=h.value;if(!pDo(F,_.Vz(d).entityId)){h=kr(F,_.Vz(d).entityId);var V=void 0,R=void 0;d=(R=Number((V=_.Mn(F,"mainVideoDownloadStateEntity",d))==null?void 0:V.addedTimestampMillis))!=null?R:(0,_.KU)();h!==void 0&&E.push({downloadedVideoEntities:h,addedTimestampMillis:d})}}return E};
NZr=function(F){return AE(F).sort(function(W,E){return E.addedTimestampMillis-W.addedTimestampMillis}).map(function(W){return W.downloadedVideoEntities})};
_.UCb=function(F){var W=o5Y(F),E=_.LV(F),h=E5k(F),d=AE(F).filter(function(R){var M,g;if((R==null?void 0:(M=R.downloadedVideoEntities)==null?void 0:(g=M.transferEntity)==null?void 0:g.transferState)!=="TRANSFER_STATE_COMPLETE")return!1;var t,C;R=R==null?void 0:(t=R.downloadedVideoEntities)==null?void 0:(C=t.videoEntity)==null?void 0:C.key;return _.c("kevlar_use_library_entity")?R&&(h.has(R)||E[R]):R&&!W.has(R)}),V=TNn(F).filter(function(R){return dCn(F,R.downloadedPlaylistEntities.mainPlaylistEntity.playlistId)===
"TRANSFER_STATE_COMPLETE"});
return[].concat(_.x9(d),_.x9(V)).sort(function(R,M){return M.addedTimestampMillis-R.addedTimestampMillis}).map(function(R){return Vtw(R)})};
RLb=function(F,W){if(W&&Yww(F,W)){var E,h,d=(h=(E=_.Mn(F,"playbackData",_.eF(W,"playbackData")))!=null?E:void 0)==null?void 0:h.playerResponseJson;if(d){try{var V=JSON.parse(d);var R=_.Mn(F,"transfer",_.eF(W,"transfer")),M=Udn(F,W);M&&(V=Object.assign({},V,{playerConfig:Object.assign({},V.playerConfig,{playbackStartConfig:{startPosition:{streamTimeMillis:""+M*1E3}}})}));V.cotn=R==null?void 0:R.cotn}catch(g){}return V}}};
_.gJS=function(F){var W,E,h;F=(h=(E=((W=F.downloadsPageViewConfigurationEntity)!=null?W:{})[eLe])==null?void 0:E.smartDownloadsOptInBannerVisibility)!=null?h:{};var d;return(d=_.D(F,MtS))!=null?d:{}};
_.LV=function(F){var W,E,h;F=(h=(E=((W=F.mainDownloadsListEntity)!=null?W:{})[_.QHe])==null?void 0:E.downloads)!=null?h:[];W={};E=_.U(F);for(h=E.next();!h.done;h=E.next())F=void 0,W[(F=h.value.videoItem)!=null?F:""]=!0;return W};
zLG=function(F){var W=_.LV(F);if(Object.keys(W).length===0)return!1;var E=F.mainVideoEntity;if(!E)return!0;E=_.U(Object.keys(E));for(var h=E.next();!h.done;h=E.next()){h=h.value;var d=_.Vz(h).entityId;if(W[h]&&!pDo(F,d))return!1}return!0};
_.qn=function(F){var W=_.LV(F);return AE(F).sort(function(E,h){return E.addedTimestampMillis-h.addedTimestampMillis}).map(function(E){return E.downloadedVideoEntities}).filter(function(E){var h;
return(E=E==null?void 0:(h=E.videoEntity)==null?void 0:h.key)&&!!W[E]})};
Vtw=function(F){return"downloadedVideoEntities"in F?F.downloadedVideoEntities:"downloadedPlaylistEntities"in F?F.downloadedPlaylistEntities:{}};
ttY=function(F){var W=_.LV(F),E=o5Y(F),h=AE(F).filter(function(d){var V,R;return(d=d==null?void 0:(V=d.downloadedVideoEntities)==null?void 0:(R=V.videoEntity)==null?void 0:R.key)&&!W[d]&&!E.has(d)});
F=TNn(F);return[].concat(_.x9(h),_.x9(F)).sort(function(d,V){return V.addedTimestampMillis-d.addedTimestampMillis}).map(function(d){return Vtw(d)})};
_.$r=function(F){if(!_.c("kevlar_use_library_entity"))return ttY(F);var W=AE(F).filter(function(h){var d,V;if(d=h=h==null?void 0:(d=h.downloadedVideoEntities)==null?void 0:(V=d.videoEntity)==null?void 0:V.key){var R,M,g;d=((M=(R=F.mainDownloadsListEntity)==null?void 0:R[Wyo])==null?0:(g=M.downloads)==null?0:g.length)?E5k(F).has(h):!1}return d}),E=TNn(F);
return[].concat(_.x9(W),_.x9(E)).sort(function(h,d){return d.addedTimestampMillis-h.addedTimestampMillis}).map(function(h){return Vtw(h)})};
CEr=function(F){var W=_.LV(F),E=o5Y(F);return NZr(F).filter(function(h){var d;return(h=h==null?void 0:(d=h.videoEntity)==null?void 0:d.key)&&!W[h]&&!E.has(h)})};
BZe=function(F){if(!_.c("kevlar_use_library_entity"))return CEr(F);var W=_.LV(F),E=E5k(F);return NZr(F).filter(function(h){var d;return(h=h==null?void 0:(d=h.videoEntity)==null?void 0:d.key)&&!W[h]&&E.has(h)})};
vJn=function(F,W){W=_.eF(W,"settingEntity");var E,h,d;return!!((d=(h=((E=F.settingEntity)!=null?E:{})[W])==null?void 0:h.settingOptionValue)!=null?d:{}).boolValue};
_.Zs=function(F){var W=_.qn(F);if(Gak(W))return 0;var E=[];W=_.U(W);for(var h=W.next();!h.done;h=W.next()){h=h.value;var d=void 0,V=void 0;if((d=h)==null?0:(V=d.videoEntity)==null?0:V.key)d=_.Vz(h.videoEntity.key).entityId,h=F,d=_.eF(d,"mainVideoDownloadStateEntity"),h=_.Mn(h,"mainVideoDownloadStateEntity",d),(h=Number(h==null?void 0:h.addedTimestampMillis))&&E.push(h)}return Math.max.apply(Math,_.x9(E))};
_.XD=function(F){return F.ui.richGridMiniMode};
_.Hz=function(F){return F.ui.richGridItemsPerRow};
_.IIR=function(F){return F.ui.richGridSlimItemsPerRow};
_.c7I=function(F){return F.ui.guideIsExpanded};
_.Pz=function(F){return F.ui.miniplayerIsActive};
_.DCe=function(F){return F.ui.singleOptionSurveyIsActive};
_.JE=function(F){return F.ui.currentPageType==="WEB_PAGE_TYPE_WATCH"};
_.xCo=function(F){return F.ui.currentPageType==="WEB_PAGE_TYPE_SHORTS"};
_.khY=function(F){return F.ui.inlinePreviewIsActive};
_.A7o=function(F){return F.ui.inlinePreviewIsEnabled};
_.sHe=function(F){return F.ui.miniplayerPlaybackState};
L4G=function(F){return F.ui.isOnline};
_.qak=function(F){return F.ui.frostedGlassMode};
_.ax=function(F,W){return hRo(F.entities,W)};
_.fV=function(F,W){return dCn(F.entities,W)};
$Cr=function(F,W){var E;if(W){var h;F=(h=_.Mn(F.entities,"offlineVideoPolicy",_.eF(W,"offlineVideoPolicy")))==null?void 0:h.action}else F=void 0;return(E=F)!=null?E:"OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN"};
Zio=function(F,W){var E;W?(F=_.Mn(F.entities,"offlineVideoPolicy",_.eF(W,"offlineVideoPolicy")),F=Number(F==null?void 0:F.expirationTimestamp)):F=void 0;return(E=F)!=null?E:0};
_.XPr=function(F){return _.xr(F.entities).length};
HiY=function(F,W){return kr(F.entities,W)};
PEb=function(F,W){return rjo(F.entities,W)};
O_=function(F,W){return(F=kr(F.entities,W))?_.iBY([F]):0};
_.J7w=function(F,W){var E=_.b0("INNERTUBE_CLIENT_NAME")==="WEB_REMIX";if(E){var h=F.entities;var d=W4k(h,W);if(d.length){var V=[];d=_.U(d);for(var R=d.next();!R.done;R=d.next())(R=piG(h,R.value))&&V.push(R);h=V}else h=[]}else h=iHr(F.entities,W);var M;if(E){var g=F.entities;W?(W=_.eF(W,"musicPlaylist"),g=(M=g.musicPlaylist)==null?void 0:M[W],M=g!=null&&g.tracks?g.tracks.length:0):M=0}else M=F.entities,W?(W=_.eF(W,"mainPlaylistEntity"),M=(g=M.mainPlaylistEntity)==null?void 0:g[W],M=M!=null&&M.videos?
M.videos.length:0):M=0;return h.length!==M?0:h?rBI(h):0};
_.aIG=function(F){return F.download.isLeaderTab};
_.fIb=function(F,W,E){if(!W&&E){var h=F.entities;if(E){var d=o4Y(E),V,R;W=(R=(V=_.Mn(h,"offlineabilityEntity",_.eF(d,"offlineabilityEntity")))==null?void 0:V.addToOfflineButtonState)!=null?R:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"}else W="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"}else V=F.entities,W?(R=o4Y(W),W=(d=(h=_.Mn(V,"offlineabilityEntity",_.eF(R,"offlineabilityEntity")))==null?void 0:h.addToOfflineButtonState)!=null?d:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"):W="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";
return W};
Oio=function(F,W){F=F.entities;if(W){W=o4Y(W);var E,h;W=(h=(E=_.Mn(F,"offlineabilityEntity",_.eF(W,"offlineabilityEntity")))==null?void 0:E.addToOfflineButtonState)!=null?h:"ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN"}else W="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";return W};
_.bik=function(F){var W=F.entities;F=L4G(F);var E=vJn(W,"SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED");if(!_.c("kevlar_modern_downloads_page")&&E)var h=!1;else{var d,V;W=(V=(d=((h=W.downloadsPageViewConfigurationEntity)!=null?h:{})[eLe])==null?void 0:d.smartDownloadsOptInBannerVisibility)!=null?V:{};h=F?!!W.visibleWithConnection:!!W.visibleWithoutConnection}return h};
_.lIR=function(F){return vJn(F.entities,"SMART_DOWNLOADS_ENABLED")};
_.nJr=function(F){return zLG(F.entities)};
y7r=function(F){return _.qn(F.entities).every(function(W){var E;return(W==null?void 0:(E=W.transferEntity)==null?void 0:E.transferState)&&!j7o.includes(W.transferEntity.transferState)})};
_.jHr=function(F,W){return pDo(F.entities,W)};
iio=function(F,W){if(W){var E,h;F=(h=(E=_.Mn(F.entities,"downloadStatusEntity",_.eF(W,"downloadStatusEntity")))==null?void 0:E.downloadState)!=null?h:"DOWNLOAD_STATE_UNKNOWN"}else F="DOWNLOAD_STATE_UNKNOWN";return F};
lC=function(F,W){return Udn(F.entities,W)};
Ghw=function(F){F=_.r7e(F);var W=F.hours===void 0?0:F.hours,E=F.minutes===void 0?0:F.minutes,h=F.seconds===void 0?0:F.seconds,d=W>0;F=[];d&&(W=_.TZo(W),F.push(W));W=d;W=W===void 0?!1:W;E=(["af","be","lt"].includes(_.nV)||W)&&E<10?oJk().format(E):(new Intl.NumberFormat("en-u-nu-latn")).format(E);F.push(E);E=oJk().format(h);F.push(E);E=":";"da fi id si sr sr-Latn".split(" ").includes(_.nV)&&(E=".");return F.join(E)};
_.r7e=function(F){var W=F.hours||0,E=F.minutes||0,h=F.seconds||0;W=h+E*60+W*3600+(F.days||0)*86400+(F.weeks||0)*604800+(F.months||0)*2629800+(F.years||0)*31557600;if(W<=0)return{hours:0,minutes:0,seconds:0};F=W;W=Math.floor(F/3600);F%=3600;E=Math.floor(F/60);h=Math.floor(F%60);return{hours:W,minutes:E,seconds:h}};
_.TZo=function(F){F=(new Intl.NumberFormat("en-u-nu-latn")).format(F);var W=["fr"],E="az bs ca da de el es eu gl hr id is it km lo mk nl pt-BR ro sl sr sr-Latn tr vi".split(" ");return"af be bg cs et fi fr-CA hu hy ka kk ky lt lv no pl pt-PT ru sk sq sv uk uz".split(" ").includes(_.nV)?F.replace(",","\u00a0"):W.includes(_.nV)?F.replace(",","\u202f"):E.includes(_.nV)?F.replace(",","."):F};
oJk=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})};
Yak=function(F){try{return(new _.yz(5)).format(F)}catch(W){}};
jF=function(F){return{thumbnailOverlayDownloadingRenderer:{state:F}}};
wPS=function(F){if(F=Yak(F))return{thumbnailOverlaySidePanelRenderer:{text:_.Wz(F),icon:{iconType:"PLAYLISTS"}}}};
uWI=function(){var F=_.CY("PLAY_ALL",void 0,"Play all");return{thumbnailOverlayHoverTextRenderer:{text:_.Wz(F),icon:{iconType:"PLAY_ALL"}}}};
Sar=function(F){F=_.iC(F,2);return _.nV!=="ru"&&_.nV!=="es_419"&&_.nV!=="es-419"&&_.nV!=="es"&&_.nV!=="es_US"&&_.nV!=="es-US"&&_.nV!=="fr"&&_.nV!=="pl"&&_.nV!=="it"&&_.nV!=="nl"&&_.nV!=="uk"&&_.nV!=="fr_CA"&&_.nV!=="fr-CA"||F===""?F:F[0].toLocaleUpperCase()+F.substring(1)};
mCw=function(F){return function(W){var E=F(),h=_.iC(W,E.dateFormat);W=_.iC(W,E.timeFormat);var d=pPo.DATETIMEFORMATS[E.joinerStyle];d=d.replace(/'(?!')/g,"");d=d.replace("{0}",W);d=d.replace("{1}",h);return E.capitalize(d)}};
K4r=function(F){return F?typeof F.seconds==="string"&&(F.nanos===void 0||typeof F.nanos==="number"):!1};
F8k=function(F){return new Date(Number(F.seconds)*1E3+(F.nanos||0)*1E-6)};
_.iC=function(F,W){if(typeof F.getTime==="function")F={date:F};else if(K4r(F))F={date:F8k(F)};else if(typeof K4r(F.timestamp)&&typeof F.i18nInternalSecondsEastOfUtc==="number")F={date:F8k(F.timestamp),timeZone:rR(-F.i18nInternalSecondsEastOfUtc/60)};else throw Error("Cf`"+JSON.stringify(F));var E=F;F=E.date;E=E.timeZone;W=W8I(W).format(F,E);_.nV==="zh-TW"&&(F=E?Number(W8I("H").format(F,E)):F.getHours(),W=F<5?W.replace("\u4e0a\u5348","\u51cc\u6668"):F<8?W.replace("\u4e0a\u5348","\u65e9\u4e0a"):F<12?
W.replace("\u4e0a\u5348","\u4e0a\u5348"):F<13?W.replace("\u4e0b\u5348","\u4e2d\u5348"):F<19?W.replace("\u4e0b\u5348","\u4e0b\u5348"):W.replace("\u4e0b\u5348","\u665a\u4e0a"));return W};
W8I=function(F){if(EQr.has(F))return EQr.get(F);var W=hIo(F);W=dIo(W);NLb!==!0&&(NLb=!0);Vlk=!0;Vlk=!1;W=new Tr(W,pPo);EQr.set(F,W);return W};
hIo=function(F){return(new Tr(F,pPo)).patternParts_.map(function(W){return W.type===0?"'"+W.text+"'":W.text}).join("")};
dIo=function(F){return _.nV==="en"||_.nV==="es_US"||_.nV==="es-US"?F:F.replace(/(?:a\s?)?([hK]+)([:.]mm)(?:\s?a)?/g,function(W,E,h){return"H".repeat(E.length)+h})};
tlS=function(F,W){UIG||(_.ox=_.RIr,UIG=new eIb);var E=UIG;a:if(F=Mle(F),W=Mle(W||new Date),F>W)E=F.getTime()-W.getTime()>6048E5?_.iC(F,1):gQY(F);else{for(var h=0;Q0Y(F,12*(h+1))<W;)++h;if(h>0)E=E.format(-h,0);else{for(h=0;Q0Y(F,h+1)<W;)++h;if(h>0)E=E.format(-h,2);else{F=W.getTime()-F.getTime();W=_.U(zIw);for(h=W.next();!h.done;h=W.next()){h=h.value;var d=h.unit,V=Math.floor(F/h.unitDuration);if(V>=(h.threshold===void 0?1:h.threshold)){E=E.format(-V,d);break a}}E=E.format(-0,7)}}}return E};
Mle=function(F){if(typeof F.getTime==="function")return F;if(K4r(F))return F8k(F);throw Error("Df`"+JSON.stringify(F));};
Q0Y=function(F,W){for(var E=0,h;;++E)if(h=new Date(F.getFullYear(),F.getMonth()+W,F.getDate()-E,F.getHours(),F.getMinutes(),F.getSeconds()),h.getMonth()===(F.getMonth()+W)%12)return h};
_.Gr=function(F){return{runs:[{text:F}]}};
_.Yr=function(F){if(F&&F.simpleText)return F.simpleText;var W="";if(F&&F.runs)for(var E=0;E<F.runs.length;E++)F.runs[E].text&&(W+=F.runs[E].text);return W};
BLG=function(F,W,E,h){return F.videoEntity&&!F.policyEntity&&E!=="DOWNLOAD_STATE_FAILED"?[jF("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:Ix(F.policyEntity)&&W!=="TRANSFER_STATE_FAILED"&&W!=="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"?W==="TRANSFER_STATE_PAUSED_BY_USER"?[jF("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER")]:_.cz(W)?[jF("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:F.videoEntity.lengthSeconds?Cpr(F.videoEntity.lengthSeconds,h):[]:
[jF("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED")]};
Cpr=function(F,W){var E=[{thumbnailOverlayTimeStatusRenderer:{text:_.Wz(Ghw({seconds:F})),style:"DEFAULT"}}];W&&(F=W<=0||F<=0?0:W>=F?100:Math.ceil(W*100/F),F>0&&E.push({thumbnailOverlayResumePlaybackRenderer:{percentDurationWatched:F}}));return E};
vQn=function(F,W,E,h,d){if(W==="TRANSFER_STATE_UNKNOWN"||!F)return{};if(_.cz(W)||W==="TRANSFER_STATE_PRE_TRANSFER")var V=[jF("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")];else{var R,M;if(W==="TRANSFER_STATE_COMPLETE"&&((R=F.mainPlaylistEntity)==null?0:(M=R.videos)==null?0:M.length)){if(_.c("web_modern_collections_v2")){var g;var t=(V=F.mainPlaylistEntity)==null?void 0:(g=V.videos)==null?void 0:g.length;V=(V=Yak(t))?{thumbnailOverlayBottomPanelRenderer:{text:_.Wz(V),icon:{iconType:"PLAYLISTS"}}}:
void 0}else{var C;V=wPS((t=F.mainPlaylistEntity)==null?void 0:(C=t.videos)==null?void 0:C.length)}var B;V=[uWI(),Object.assign({},(B=V)!=null?B:{})]}else V=[]}B=V;a:if(W==="TRANSFER_STATE_PRE_TRANSFER")E=E_(_.CY("PREPARING_TO_DOWNLOAD",void 0,"Preparing to download..."));else if(W==="TRANSFER_STATE_TRANSFER_IN_QUEUE")E=E_(_.CY("WAITING_TO_DOWNLOAD"));else if(_.cz(W))E=Math.floor(E*100).toString(),E=E_(_.CY("DOWNLOADING_PERCENT",{percent:E},"Downloading... "+E+"%"));else{if(h&&(_.c("playlist_is_offline_selector_killswitch")&&
(d=_.WZ().resolve(_.TX).isNetworkAvailable()),d)){E=pyb(_.CY("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),uUw(h));break a}E=void 0}W=W==="TRANSFER_STATE_COMPLETE"?[{metadataBadgeRenderer:{label:_.CY("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]:[];return Object.assign({},B.length?{thumbnailOverlays:B}:{},E?{viewPlaylistText:E}:{viewPlaylistText:_.Gr("")},W.length?{badges:W}:{})};
ITb=function(F,W,E,h,d,V){if(W==="TRANSFER_STATE_UNKNOWN"||!F)return{};if(h==="DOWNLOAD_STATE_USER_DELETED")return{shortViewCountText:void 0,publishedTimeText:void 0,badges:void 0,thumbnailOverlays:void 0};var R=BLG(F,W,h);if(F.videoEntity&&!F.policyEntity&&h!=="DOWNLOAD_STATE_FAILED"){var M=_.CY("WAITING_TO_DOWNLOAD");if(M)return{shortViewCountText:_.Gr(M),publishedTimeText:void 0,thumbnailOverlays:R}}if(!Ix(F.policyEntity)){V=F.policyEntity&&!TpR(F.policyEntity)?_.CY("DOWNLOAD_EXPIRED",{},"Download expired"):
_.CY("TRANSFER_FAILED",{},"Download failed");var g;if((g=F.policyEntity)==null?0:g.shortMessageForDisabledAction)V=F.policyEntity.shortMessageForDisabledAction;return{shortViewCountText:E_(V),publishedTimeText:void 0,thumbnailOverlays:R}}if(W==="TRANSFER_STATE_PAUSED_BY_USER")return{shortViewCountText:_.Gr(_.CY("DOWNLOAD_PAUSED",{},"Download paused")),publishedTimeText:void 0,thumbnailOverlays:R};if(W==="TRANSFER_STATE_FAILED"||W==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH")return{shortViewCountText:_.Gr(_.CY("TRANSFER_FAILED",
{},"Download failed")),publishedTimeText:void 0,thumbnailOverlays:R};if(W==="TRANSFER_STATE_TRANSFER_IN_QUEUE"&&(g=_.CY("WAITING_TO_DOWNLOAD"),h==="DOWNLOAD_STATE_PAUSED"&&(g=_.CY("DOWNLOAD_PAUSED",{},"Download paused")),g))return{shortViewCountText:_.Gr(g),publishedTimeText:void 0,thumbnailOverlays:R};if(_.cz(W))return F=Math.floor(E*100).toString(),{shortViewCountText:_.Gr(_.CY("DOWNLOADING_PERCENT",{percent:F},"Downloading... "+F+"%")),publishedTimeText:void 0,thumbnailOverlays:R};W=void 0;F.videoEntity.publishedTimestampMillis&&
(W=new Date,d&&(W=new Date(d)),W=E_(tlS(new Date(Number(F.videoEntity.publishedTimestampMillis)),W)));d=[];_.c("kevlar_woffle_badge_killswitch")||(d=[{metadataBadgeRenderer:{label:_.CY("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]);var t;F=E_((t=F.videoEntity.localizedStrings)==null?void 0:t.viewCount);return Object.assign({},V?{shortViewCountText:void 0}:{shortViewCountText:F},V?{}:{publishedTimeText:W},{badges:d,thumbnailOverlays:R})};
DIS=function(F,W){F=F===void 0?c5G:F;switch(W.type){case "SET_COLLAB_INVITE_LINK":return{playlistId:W.payload.playlistId,inviteLinkURL:W.payload.inviteLinkUrl};default:return F}};
kYo=function(F,W){F=F===void 0?xIG:F;switch(W.type){case "SET_CURRENT_FORM_ID":return W=W.payload.formId,F.currentFormId===W?F:{currentFormId:W,commandsMap:{}};case "SET_COMMAND_FOR_GROUP_ID":var E=W.payload;W=E.groupId;E=E.command;if(F.currentFormId){var h=Object.assign({},F.commandsMap);h[W]=E;F=Object.assign({},F,{commandsMap:h})}return F;case "RESET_COMMAND_MAP":return Object.assign({},F,{commandsMap:{}});default:return F}};
s0I=function(F,W){F=F===void 0?A5o:F;switch(W.type){case "SET_GUIDE_IS_EXPANDED":return Object.assign({},F,{guideIsExpanded:W.payload});case "SET_SCROLL_AT_TOP":return Object.assign({},F,{scrollAtTop:W.payload});case "SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT":return Object.assign({},F,{guideIsVisibleButNotPersistent:W.payload});case "SET_MINIPLAYER_IS_ACTIVE":return Object.assign({},F,{miniplayerIsActive:W.payload});case "SET_SINGLE_OPTION_SURVEY_IS_ACTIVE":return Object.assign({},F,{singleOptionSurveyIsActive:W.payload});
case "SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX":return Object.assign({},F,{slimlineSurveyRatingSelectedIndex:W.payload});case "SET_RICH_GRID_MINI_MODE":return Object.assign({},F,{richGridMiniMode:W.payload});case "SET_RICH_GRID_ITEMS_PER_ROW":return Object.assign({},F,{richGridItemsPerRow:W.payload});case "SET_RICH_GRID_SLIM_ITEMS_PER_ROW":return Object.assign({},F,{richGridSlimItemsPerRow:W.payload});case "SET_RICH_GRID_CONTAINER_WIDTH":return Object.assign({},F,{richGridContainerWidth:W.payload});
case "SET_RICH_GRID_STYLE":return Object.assign({},F,{richGridStyle:W.payload});case "SET_CURRENT_PAGE_TYPE":return Object.assign({},F,{currentPageType:W.payload});case "SET_INLINE_PREVIEW_IS_ACTIVE":return Object.assign({},F,{inlinePreviewIsActive:W.payload});case "SET_INLINE_PREVIEW_IS_ENABLED":return Object.assign({},F,{inlinePreviewIsEnabled:W.payload});case "SET_DARK_MODE_IS_ENABLED":return Object.assign({},F,{darkModeIsEnabled:W.payload});case "SET_MINIPLAYER_PLAYBACK_STATE":return Object.assign({},
F,{miniplayerPlaybackState:W.payload});case "SET_TAB_GESTURES_IS_ACTIVE":return Object.assign({},F,{tabGesturesIsActive:W.payload});case "SET_ONLINE_STATUS":return Object.assign({},F,{isOnline:W.payload});case "SET_CHIP_BAR_IS_STICKY":return Object.assign({},F,{chipBarIsSticky:W.payload});case "SET_FROSTED_GLASS_MODE":return Object.assign({},F,{frostedGlassMode:W.payload});default:return F}};
qXY=function(F,W){F=F===void 0?L8W:F;switch(W.type){case "SET_TRANSCRIPTION_STATE":return Object.assign({},F,{transcription:W.payload});case "SET_OVERLAY_STATE":return Object.assign({},F,{overlay:W.payload});case "RESET_VOICE_SEARCH_STATE":return{};default:return F}};
boe=function(){return zM(Object.assign({},{continuation:$Ir,entities:zin,download:Zoe,reportChannelAbuse:Xtk,share:HoY,talkToRecs:PpS,ui:s0I,voiceSearch:qXY,watch:J5R,ypc:aTW,shorts:fTb,radioButtonGroup:kYo,collabInviteLink:DIS},Oon))};
y5b=function(){return _.c("web_player_entities_middleware")?new wR(boe(),[lTo,nQY]):new wR(boe(),[lTo])};
_.uC=function(){j0o||(j0o=y5b());return j0o};
ior=function(F,W,E){if(F.length)return{titleText:_.Wz(W!=null?W:_.CY("DOWNLOADS",void 0,"Downloads")),contents:F.map(function(h){var d=h.videoEntity;h={videoId:d.videoId,title:E_(d.title),shortBylineText:E_(h.channelEntity.title),thumbnail:d.thumbnail};var V=d.videoId?lC(_.uC().getState(),d.videoId):0;d.videoId&&E?h.navigationEndpoint=_.FD(d.videoId,E,void 0,void 0,V):d.videoId&&(h.navigationEndpoint=wye(d.videoId,V,d.lengthSeconds));d.lengthSeconds&&(h.thumbnailOverlays=Cpr(d.lengthSeconds,V));return{playlistPanelVideoRenderer:h}}),
totalVideos:F.length}};
r5o=function(F){return(F=(0,_.xd.getValueByKeys)(F,"playlistId"))?{playlistId:F}:null};
TLY=function(){return{}};
oQW=function(F,W){return new _.z5(function(E,h){F.then(function(d){if(d){if(d=W(d))return E(d);h()}},h)})};
GYS=function(F){var W,E,h,d=(W=F.contents)==null?void 0:(E=W.twoColumnWatchNextResults)==null?void 0:(h=E.autoplay)==null?void 0:h.autoplay,V,R,M;W=(V=F.contents)==null?void 0:(R=V.twoColumnWatchNextResults)==null?void 0:(M=R.playlist)==null?void 0:M.playlist;return d&&W&&W.playlistId?{rawResponse:F,autoplayRenderer:d,playlistPanelRenderer:W,playlistId:W.playlistId}:null};
wtR=function(F){var W=W===void 0?"UNKNOWN_INTERFACE":W;if(F.length===1)return F[0];var E=YXr[W];if(E){E=new RegExp(E);for(var h=_.U(F),d=h.next();!d.done;d=h.next())if(d=d.value,E.exec(d))return d}var V=[];Object.entries(YXr).forEach(function(R){var M=_.U(R);R=M.next().value;M=M.next().value;W!==R&&V.push(M)});
E=new RegExp(V.join("|"));F.sort(function(R,M){return R.length-M.length});
h=_.U(F);for(d=h.next();!d.done;d=h.next())if(d=d.value,!E.exec(d))return d;return F[0]};
_.SF=function(F){return"/youtubei/v1/"+wtR(F)};
_.pV=function(F){return{openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:F}}}}};
_.mf=function(F){return _.pV(_.Gr(F))};
ubr=function(F,W){var E={mode:"NORMAL"};F&&(E.autoplayVideo=F.navigationEndpoint,E.nextButtonVideo=F.navigationEndpoint);W&&(E.previousButtonVideo=W.navigationEndpoint);return E};
mIR=function(F,W,E){if(!E||!E.sets)return{sets:[ubr(F,W)]};var h=E.sets.find(function(R){return R.mode==="NORMAL"}),d=(0,_.xd.unsafeClone)(E);
if(!h)return d.sets.push(ubr(F,W)),d;if(!F)return E;h=_.xd.getValueByKeys.apply(null,[h].concat(_.x9(SXY)));var V=_.xd.getValueByKeys.apply(null,[F].concat(_.x9(ptW)));if(h===V)return E;d.sets=d.sets.filter(function(R){return R.mode!=="NORMAL"});
d.sets.push(ubr(F,W));return d};
K8Y=function(F){return!!F.playlistPanelVideoRenderer&&!F.playlistPanelVideoRenderer.unplayableText};
Foo=function(F){return!!F.playlistPanelVideoRenderer&&!!F.playlistPanelVideoRenderer.title};
Woe=function(F,W){if(W.contents&&!(F>=W.contents.length)&&(F=W.contents.slice(F).find(K8Y)))return F.playlistPanelVideoRenderer};
EEG=function(F,W){if(W.contents)return(W=W.contents.find(function(E){return!!E.playlistPanelVideoRenderer&&E.playlistPanelVideoRenderer.videoId===F}))?W.playlistPanelVideoRenderer:void 0};
hBY=function(F,W){return W.contents?W.contents.findIndex(function(E){return!!E.playlistPanelVideoRenderer&&E.playlistPanelVideoRenderer.videoId===F}):-1};
dXr=function(F,W){return W.contents?W.contents.findIndex(function(E){return!!E.playlistPanelVideoRenderer&&E.playlistPanelVideoRenderer.playlistSetVideoId===F}):-1};
N_e=function(F,W){F.contents&&W!==-1&&F.contents.splice(W,1).length===1&&F.totalVideos!==void 0&&(--F.totalVideos,delete F.videoCountText)};
_.V8Y=function(F){var W=[];if(!F||!F.contents)return W;F=_.U(F.contents);for(var E=F.next();!E.done;E=F.next())E=E.value,E.playlistPanelVideoRenderer&&E.playlistPanelVideoRenderer.videoId&&W.push(E.playlistPanelVideoRenderer.videoId);return W};
_.UXG=function(F){if(F&&F.contents)return(F=F.contents.find(function(W){return!!W.playlistPanelVideoRenderer&&!!W.playlistPanelVideoRenderer.selected})||F.contents[F.currentIndex])?F.playlistPanelVideoRenderer:void 0};
RBR=function(F,W,E,h,d,V,R){d=d===void 0?!1:d;V=V===void 0?!1:V;R=R===void 0?!1:R;if(F.contents&&F.contents.length!==0){h&&(F.contents=F.contents.filter(h));h=F.contents.length;for(var M=0;M<h;M++){var g=F.contents[M].playlistPanelVideoRenderer;g&&(M===W?(V&&delete g.menu,g.indexText=_.Gr("\u25b6")):d||F.isInfinite||g.indexText===void 0?delete g.indexText:g.indexText=_.Gr((M+1+E).toString()))}F.currentIndex=W+E;R&&(delete F.videoCountText,F.totalVideos=h)}};
_.KV=function(F){F=eBb(F);if(F){var W=F.length;var E=-6%W;E<0&&(E=W+E);F=F.slice(W-E)+F.slice(0,W-E)}else F="";E="";for(W=0;W<F.length&&F[W]!==M8Y;W++)E+=F[W];return E};
_.gEY=function(F,W){var E=document.body;W=W===void 0?function(M){return M}:W;
var h,d=null;F=_.U(F);for(h=F.next();!h.done;h=F.next()){var V=h.value;h=document.createElement("div");d||(d=h);var R=V[0];V=V[1];R&&(h.id=W(R));if(V)for(R=_.U(V),V=R.next();!V.done;V=R.next())h.classList.add(W(V.value));E.appendChild(h);E=h}return[d,E]};
Qvr=function(F,W){for(var E="",h=0;h<W;h++)E+=F.charAt(Math.floor(Math.random()*F.length));return E};
FC=function(F){return Qvr("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_",F)};
WB=function(F){return Qvr("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",F)};
Eh=function(F){return Qvr("0123456789",F)};
hg=function(){var F=performance.now(),W=new Date;var E="2."+W.getFullYear()+String(W.getMonth()+1).padStart(2,"0")+String(W.getDate()).padStart(2,"0");for(var h,d=Math.floor(Math.random()*11)+15,V=[],R=0;R<d;R++)V.push(Math.floor(Math.random()*26476865)+24547720);h=V.join(",");var M=FC(10),g=FC(100),t=FC(102),C=FC(106),B=FC(108),I=FC(11),x=FC(1140),A=FC(123),X=FC(14),P=FC(16),b=FC(1900),l=FC(23),w=FC(26),G=FC(34),hr=FC(397),p=FC(44),UY=FC(5),xW=FC(72),qw=FC(74),Lb=FC(75),jk=FC(88),Jr=FC(91),nb="rr5---sn-q4fl6ns7 rr4---sn-q4fl6nd6 rr5---sn-aigl6n6s rr4---sn-q4fl6nzy rr5---sn-ntqe6nee rr1---sn-q4fl6n6z rr2---sn-q4fl6nz7 rr2---sn-hgn7rn7y rr4---sn-ntqe6n7r rr1---sn-5hnekn7s rr3---sn-ntq7yner rr2---sn-5hne6n6e rr2---sn-q4fl6nsk rr3---sn-t0a7ln7d rr2---sn-q4fl6nz6 rr2---sn-ntqe6n76 rr1---sn-hgn7ynek rr1---sn-aigl6nzl rr5---sn-q4fl6nd6 rr1---sn-q4fzen7y".split(" ");
var bo=nb[Math.floor(Math.random()*nb.length)];var uo=(new Date("2010-01-01")).getTime();var b_=(new Date(uo+Math.random()*((new Date).getTime()-uo))).toISOString().split("T")[0];for(var BO,dc=[],VM=0;VM<4;VM++)dc.push(Math.floor(Math.random()*100));BO=dc.join(".");var Z_=Number(Eh(5)),MU=Number(Eh(6)),Ef=Number(Eh(7)),kR=Number(Eh(9)),Rn=Eh(1),se=Eh(10),l_=Eh(16),j$=Eh(19),HO=Eh(2),YB=Eh(20),GT=Eh(21),vO=Eh(3),wI=Eh(4),Aa=Eh(5),MF=Eh(6),LT=Eh(7),Du=Eh(8),MR=Eh(9);var QA=Qvr("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_/+",
27352);var iK=[WB(5),WB(5),WB(5)].join("%2C"),DV=[Eh(3),Eh(5),Eh(5)].join("%2C"),xt=WB(0),i_=WB(1),AP=WB(10),YK=WB(108),S$=WB(11),zX=WB(12),Np=WB(13),Ac=WB(14),Cd=WB(15),S9=WB(16),tF=WB(17),DS=WB(18),fb=WB(19),rI=WB(2),Ii=WB(20),NF=WB(22),JW=WB(23),Qx=WB(24),xB=WB(266),cO=WB(3),z8=WB(30),qR=WB(34),Ri=WB(35),kw=WB(36),ye=WB(4),lL=WB(40),Yj=WB(43),b5=WB(47),s_=WB(5),SU=WB(6),Sk=WB(7),BT=WB(75),PT=WB(8),f2=WB(80),Zd=WB(9),Vl="https://www."+WB(12)+".com",je={},sV={},o3={},oKw={},k6={},Tm={},of={responseContext:{serviceTrackingParams:[{service:"GFEEDBACK",
params:[{key:"ipcc",value:"0"},{key:"is_viewed_live",value:"False"},{key:"is_alc_surface",value:"false"},{key:"premium_membership",value:"non_member"},{key:"has_unlimited_entitlement",value:"False"},{key:"has_alc_entitlement",value:"false"},{key:"logged_in",value:"1"},{key:"e",value:h}]},{service:"CSI",params:[{key:"yt_ad",value:"1"},{key:"c",value:"WEB"},{key:"cver",value:E},{key:"yt_li",value:"1"},{key:"GetPlayer_rid",value:"0x"+WB(16).toLowerCase()}]},{service:"GUIDED_HELP",params:[{key:"logged_in",
value:"1"}]},{service:"ECATCHER",params:[{key:"client.version",value:E},{key:"client.name",value:"WEB"},{key:"client.fexp",value:h}]}],maxAgeSeconds:0,mainAppWebResponseContext:{datasyncId:GT+"||",loggedOut:!1,trackingParam:"kx_fmPxh"+WB(73)},webResponseContextExtensionData:{hasDecorated:!0}},playabilityStatus:{status:"OK",playableInEmbed:!0,offlineability:{buttonRenderer:{serviceEndpoint:{clickTrackingParams:lL,ypcGetOfflineUpsellEndpoint:{params:f2}},trackingParams:Ri+"="}},miniplayer:{miniplayerRenderer:{playbackMode:"PLAYBACK_MODE_ALLOW"}},
contextParams:"Q0FFU0FnZ0M="},streamingData:{expiresInSeconds:"21540",formats:[{itag:18,url:"https://"+bo+".googlevideo.com/videoplayback?expire="+se+"&ei="+l+"&ip="+BO+"&id=o-AF"+Yj+"&itag=18&source=youtube&requiressl=yes&mh=X6&mm="+DV+"&mn="+iK+"&ms="+iK+"&mv="+i_+"&mvi="+Rn+"&pl="+HO+"&initcwndbps="+LT+"&siu="+Rn+"&spc="+p+"&vprv="+Rn+"&svpuc="+Rn+"&mime=video%2Fmp4&ns="+Qx+"&cnr="+HO+"&ratebypass=yes&dur="+Du+"&lmt="+l_+"&mt="+se+"&fvip=3&c=WEB&txp="+LT+"&n="+P+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+
B+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+B,mimeType:'video/mp4; codecs="avc1.42001E, mp4a.40.2"',bitrate:MU,width:640,height:360,lastModified:l_,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:LT,audioSampleRate:"44100",audioChannels:2},{itag:22,url:"https://"+bo+".googlevideo.com/videoplayback?expire="+se+"&ei="+l+"&ip="+BO+"&id=o-AF"+Yj+"&itag=22&source=youtube&requiressl=yes&mh=X6&mm="+DV+"&mn="+
iK+"&ms="+iK+"&mv="+i_+"&mvi="+Rn+"&pl="+HO+"&initcwndbps="+LT+"&siu="+Rn+"&spc="+p+"&vprv="+Rn+"&svpuc="+Rn+"&mime=video%2Fmp4&ns="+Qx+"&cnr="+HO+"&ratebypass=yes&dur="+Du+"&lmt="+l_+"&mt="+se+"&fvip=3&c=WEB&txp="+LT+"&n="+P+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+YK+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+B,mimeType:'video/mp4; codecs="avc1.64001F, mp4a.40.2"',bitrate:MU,width:1280,
height:720,lastModified:l_,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:LT,audioSampleRate:"44100",audioChannels:2}],adaptiveFormats:[{itag:137,url:"https://"+bo+".googlevideo.com/videoplayback?expire="+se+"&ei="+l+"&ip="+BO+"&id=o-AF"+Yj+"&itag=137&aitags=133%2C134%2C135%2C136%2C137%2C160%2C242%2C243%2C244%2C247%2C248%2C278%2C394%2C395%2C396%2C397%2C398%2C399&source=youtube&requiressl=yes&mh=X6&mm="+DV+"&mn="+iK+"&ms="+
iK+"&mv="+i_+"&mvi="+Rn+"&pl="+HO+"&initcwndbps="+LT+"&siu="+Rn+"&spc="+p+"&vprv="+Rn+"&svpuc="+Rn+"&mime=video%2Fmp4&ns="+Qx+"&gir="+cO+"&clen="+MR+"&dur="+Du+"&lmt="+l_+"&mt="+se+"&fvip=3&keepalive="+cO+"&c=WEB&txp="+LT+"&n="+S9+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+g+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+B,mimeType:'video/mp4; codecs="avc1.640028"',bitrate:Ef,width:1920,height:1080,
initRange:{start:"0",end:"740"},indexRange:{start:vO,end:wI},lastModified:l_,contentLength:MR,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:Ef,approxDurationMs:LT},{itag:248,url:"https://"+bo+".googlevideo.com/videoplayback?expire="+se+"&ei="+l+"&ip="+BO+"&id=o-AF"+Yj+"&itag=248&aitags=133%2C134%2C135%2C136%2C137%2C160%2C242%2C243%2C244%2C247%2C248%2C278%2C394%2C395%2C396%2C397%2C398%2C399&source=youtube&requiressl=yes&mh=X6&mm="+DV+"&mn="+iK+"&ms="+iK+"&mv="+
i_+"&mvi="+Rn+"&pl="+HO+"&initcwndbps="+LT+"&siu="+Rn+"&spc="+p+"&vprv="+Rn+"&svpuc="+Rn+"&mime=video%2Fwebm&ns="+Qx+"&gir="+cO+"&clen="+MR+"&dur="+Du+"&lmt="+l_+"&mt="+se+"&fvip=3&keepalive="+cO+"&c=WEB&txp="+LT+"&n="+S9+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+C+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+B,mimeType:'video/webm; codecs="vp9"',bitrate:Ef,width:1920,height:1080,initRange:{start:"0",
end:"220"},indexRange:{start:vO,end:wI},lastModified:l_,contentLength:MR,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:Ef,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:LT},{itag:399,url:"https://"+bo+".googlevideo.com/videoplayback?expire="+se+"&ei="+l+"&ip="+BO+"&id=o-AF"+Yj+"&itag=399&aitags=133%2C134%2C135%2C136%2C137%2C160%2C242%2C243%2C244%2C247%2C248%2C278%2C394%2C395%2C396%2C397%2C398%2C399&source=youtube&requiressl=yes&mh=X6&mm="+
DV+"&mn="+iK+"&ms="+iK+"&mv="+i_+"&mvi="+Rn+"&pl="+HO+"&initcwndbps="+LT+"&siu="+Rn+"&spc="+p+"&vprv="+Rn+"&svpuc="+Rn+"&mime=video%2Fmp4&ns="+Qx+"&gir="+cO+"&clen="+MR+"&dur="+Du+"&lmt="+l_+"&mt="+se+"&fvip=3&keepalive="+cO+"&c=WEB&txp="+LT+"&n="+S9+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+g+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+B,mimeType:'video/mp4; codecs="av01.0.08M.08"',bitrate:Ef,
width:1920,height:1080,initRange:{start:"0",end:"699"},indexRange:{start:vO,end:wI},lastModified:l_,contentLength:MR,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:Ef,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:LT},{itag:136,url:"https://"+bo+".googlevideo.com/videoplayback?expire="+se+"&ei="+l+"&ip="+BO+"&id=o-AF"+Yj+"&itag=136&aitags=133%2C134%2C135%2C136%2C137%2C160%2C242%2C243%2C244%2C247%2C248%2C278%2C394%2C395%2C396%2C397%2C398%2C399&source=youtube&requiressl=yes&mh=X6&mm="+
DV+"&mn="+iK+"&ms="+iK+"&mv="+i_+"&mvi="+Rn+"&pl="+HO+"&initcwndbps="+LT+"&siu="+Rn+"&spc="+p+"&vprv="+Rn+"&svpuc="+Rn+"&mime=video%2Fmp4&ns="+Qx+"&gir="+cO+"&clen="+MR+"&dur="+Du+"&lmt="+l_+"&mt="+se+"&fvip=3&keepalive="+cO+"&c=WEB&txp="+LT+"&n="+S9+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+B+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+B,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:Ef,
width:1280,height:720,initRange:{start:"0",end:"738"},indexRange:{start:vO,end:wI},lastModified:l_,contentLength:MR,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:MU,approxDurationMs:LT},{itag:247,url:"https://"+bo+".googlevideo.com/videoplayback?expire="+se+"&ei="+l+"&ip="+BO+"&id=o-AF"+Yj+"&itag=247&aitags=133%2C134%2C135%2C136%2C137%2C160%2C242%2C243%2C244%2C247%2C248%2C278%2C394%2C395%2C396%2C397%2C398%2C399&source=youtube&requiressl=yes&mh=X6&mm="+DV+"&mn="+
iK+"&ms="+iK+"&mv="+i_+"&mvi="+Rn+"&pl="+HO+"&initcwndbps="+LT+"&siu="+Rn+"&spc="+p+"&vprv="+Rn+"&svpuc="+Rn+"&mime=video%2Fwebm&ns="+Qx+"&gir="+cO+"&clen="+MR+"&dur="+Du+"&lmt="+l_+"&mt="+se+"&fvip=3&keepalive="+cO+"&c=WEB&txp="+LT+"&n="+S9+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+B+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+B,mimeType:'video/webm; codecs="vp9"',bitrate:Ef,width:1280,
height:720,initRange:{start:"0",end:"219"},indexRange:{start:vO,end:wI},lastModified:l_,contentLength:MR,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:MU,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:LT},{itag:398,url:"https://"+bo+".googlevideo.com/videoplayback?expire="+se+"&ei="+l+"&ip="+BO+"&id=o-AF"+Yj+"&itag=398&aitags=133%2C134%2C135%2C136%2C137%2C160%2C242%2C243%2C244%2C247%2C248%2C278%2C394%2C395%2C396%2C397%2C398%2C399&source=youtube&requiressl=yes&mh=X6&mm="+
DV+"&mn="+iK+"&ms="+iK+"&mv="+i_+"&mvi="+Rn+"&pl="+HO+"&initcwndbps="+LT+"&siu="+Rn+"&spc="+p+"&vprv="+Rn+"&svpuc="+Rn+"&mime=video%2Fmp4&ns="+Qx+"&gir="+cO+"&clen="+MR+"&dur="+Du+"&lmt="+l_+"&mt="+se+"&fvip=3&keepalive="+cO+"&c=WEB&txp="+LT+"&n="+S9+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+B+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+B,mimeType:'video/mp4; codecs="av01.0.05M.08"',bitrate:Ef,
width:1280,height:720,initRange:{start:"0",end:"699"},indexRange:{start:vO,end:wI},lastModified:l_,contentLength:MR,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:MU,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:LT},{itag:135,url:"https://"+bo+".googlevideo.com/videoplayback?expire="+se+"&ei="+l+"&ip="+BO+"&id=o-AF"+Yj+"&itag=135&aitags=133%2C134%2C135%2C136%2C137%2C160%2C242%2C243%2C244%2C247%2C248%2C278%2C394%2C395%2C396%2C397%2C398%2C399&source=youtube&requiressl=yes&mh=X6&mm="+
DV+"&mn="+iK+"&ms="+iK+"&mv="+i_+"&mvi="+Rn+"&pl="+HO+"&initcwndbps="+LT+"&siu="+Rn+"&spc="+p+"&vprv="+Rn+"&svpuc="+Rn+"&mime=video%2Fmp4&ns="+Qx+"&gir="+cO+"&clen="+Du+"&dur="+Du+"&lmt="+l_+"&mt="+se+"&fvip=3&keepalive="+cO+"&c=WEB&txp="+LT+"&n="+S9+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+B+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+B,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:MU,
width:854,height:480,initRange:{start:"0",end:"738"},indexRange:{start:vO,end:wI},lastModified:l_,contentLength:Du,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:MU,approxDurationMs:LT},{itag:244,url:"https://"+bo+".googlevideo.com/videoplayback?expire="+se+"&ei="+l+"&ip="+BO+"&id=o-AF"+Yj+"&itag=244&aitags=133%2C134%2C135%2C136%2C137%2C160%2C242%2C243%2C244%2C247%2C248%2C278%2C394%2C395%2C396%2C397%2C398%2C399&source=youtube&requiressl=yes&mh=X6&mm="+DV+"&mn="+
iK+"&ms="+iK+"&mv="+i_+"&mvi="+Rn+"&pl="+HO+"&initcwndbps="+LT+"&siu="+Rn+"&spc="+p+"&vprv="+Rn+"&svpuc="+Rn+"&mime=video%2Fwebm&ns="+Qx+"&gir="+cO+"&clen="+Du+"&dur="+Du+"&lmt="+l_+"&mt="+se+"&fvip=3&keepalive="+cO+"&c=WEB&txp="+LT+"&n="+S9+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+YK+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+B,mimeType:'video/webm; codecs="vp9"',bitrate:MU,width:854,
height:480,initRange:{start:"0",end:"219"},indexRange:{start:vO,end:wI},lastModified:l_,contentLength:Du,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:MU,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:LT},{itag:397,url:"https://"+bo+".googlevideo.com/videoplayback?expire="+se+"&ei="+l+"&ip="+BO+"&id=o-AF"+Yj+"&itag=397&aitags=133%2C134%2C135%2C136%2C137%2C160%2C242%2C243%2C244%2C247%2C248%2C278%2C394%2C395%2C396%2C397%2C398%2C399&source=youtube&requiressl=yes&mh=X6&mm="+
DV+"&mn="+iK+"&ms="+iK+"&mv="+i_+"&mvi="+Rn+"&pl="+HO+"&initcwndbps="+LT+"&siu="+Rn+"&spc="+p+"&vprv="+Rn+"&svpuc="+Rn+"&mime=video%2Fmp4&ns="+Qx+"&gir="+cO+"&clen="+Du+"&dur="+Du+"&lmt="+l_+"&mt="+se+"&fvip=3&keepalive="+cO+"&c=WEB&txp="+LT+"&n="+S9+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+g+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+B,mimeType:'video/mp4; codecs="av01.0.04M.08"',bitrate:MU,
width:854,height:480,initRange:{start:"0",end:"699"},indexRange:{start:vO,end:wI},lastModified:l_,contentLength:Du,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:MU,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:LT},{itag:134,url:"https://"+bo+".googlevideo.com/videoplayback?expire="+se+"&ei="+l+"&ip="+BO+"&id=o-AF"+Yj+"&itag=134&aitags=133%2C134%2C135%2C136%2C137%2C160%2C242%2C243%2C244%2C247%2C248%2C278%2C394%2C395%2C396%2C397%2C398%2C399&source=youtube&requiressl=yes&mh=X6&mm="+
DV+"&mn="+iK+"&ms="+iK+"&mv="+i_+"&mvi="+Rn+"&pl="+HO+"&initcwndbps="+LT+"&siu="+Rn+"&spc="+p+"&vprv="+Rn+"&svpuc="+Rn+"&mime=video%2Fmp4&ns="+Qx+"&gir="+cO+"&clen="+Du+"&dur="+Du+"&lmt="+l_+"&mt="+se+"&fvip=3&keepalive="+cO+"&c=WEB&txp="+LT+"&n="+S9+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+B+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+B,mimeType:'video/mp4; codecs="avc1.4d401e"',bitrate:MU,
width:640,height:360,initRange:{start:"0",end:"738"},indexRange:{start:vO,end:wI},lastModified:l_,contentLength:Du,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:MU,highReplication:!0,approxDurationMs:LT},{itag:243,url:"https://"+bo+".googlevideo.com/videoplayback?expire="+se+"&ei="+l+"&ip="+BO+"&id=o-AF"+Yj+"&itag=243&aitags=133%2C134%2C135%2C136%2C137%2C160%2C242%2C243%2C244%2C247%2C248%2C278%2C394%2C395%2C396%2C397%2C398%2C399&source=youtube&requiressl=yes&mh=X6&mm="+
DV+"&mn="+iK+"&ms="+iK+"&mv="+i_+"&mvi="+Rn+"&pl="+HO+"&initcwndbps="+LT+"&siu="+Rn+"&spc="+p+"&vprv="+Rn+"&svpuc="+Rn+"&mime=video%2Fwebm&ns="+Qx+"&gir="+cO+"&clen="+Du+"&dur="+Du+"&lmt="+l_+"&mt="+se+"&fvip=3&keepalive="+cO+"&c=WEB&txp="+LT+"&n="+S9+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+C+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+B,mimeType:'video/webm; codecs="vp9"',bitrate:MU,
width:640,height:360,initRange:{start:"0",end:"219"},indexRange:{start:vO,end:wI},lastModified:l_,contentLength:Du,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:MU,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:LT},{itag:396,url:"https://"+bo+".googlevideo.com/videoplayback?expire="+se+"&ei="+l+"&ip="+BO+"&id=o-AF"+Yj+"&itag=396&aitags=133%2C134%2C135%2C136%2C137%2C160%2C242%2C243%2C244%2C247%2C248%2C278%2C394%2C395%2C396%2C397%2C398%2C399&source=youtube&requiressl=yes&mh=X6&mm="+
DV+"&mn="+iK+"&ms="+iK+"&mv="+i_+"&mvi="+Rn+"&pl="+HO+"&initcwndbps="+LT+"&siu="+Rn+"&spc="+p+"&vprv="+Rn+"&svpuc="+Rn+"&mime=video%2Fmp4&ns="+Qx+"&gir="+cO+"&clen="+Du+"&dur="+Du+"&lmt="+l_+"&mt="+se+"&fvip=3&keepalive="+cO+"&c=WEB&txp="+LT+"&n="+S9+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+B+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+B,mimeType:'video/mp4; codecs="av01.0.01M.08"',bitrate:MU,
width:640,height:360,initRange:{start:"0",end:"699"},indexRange:{start:vO,end:wI},lastModified:l_,contentLength:Du,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:MU,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:LT},{itag:133,url:"https://"+bo+".googlevideo.com/videoplayback?expire="+se+"&ei="+l+"&ip="+BO+"&id=o-AF"+Yj+"&itag=133&aitags=133%2C134%2C135%2C136%2C137%2C160%2C242%2C243%2C244%2C247%2C248%2C278%2C394%2C395%2C396%2C397%2C398%2C399&source=youtube&requiressl=yes&mh=X6&mm="+
DV+"&mn="+iK+"&ms="+iK+"&mv="+i_+"&mvi="+Rn+"&pl="+HO+"&initcwndbps="+LT+"&siu="+Rn+"&spc="+p+"&vprv="+Rn+"&svpuc="+Rn+"&mime=video%2Fmp4&ns="+Qx+"&gir="+cO+"&clen="+Du+"&dur="+Du+"&lmt="+l_+"&mt="+se+"&fvip=3&keepalive="+cO+"&c=WEB&txp="+LT+"&n="+S9+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+B+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+B,mimeType:'video/mp4; codecs="avc1.4d4015"',bitrate:MU,
width:426,height:240,initRange:{start:"0",end:"738"},indexRange:{start:vO,end:wI},lastModified:l_,contentLength:Du,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:MU,approxDurationMs:LT},{itag:242,url:"https://"+bo+".googlevideo.com/videoplayback?expire="+se+"&ei="+l+"&ip="+BO+"&id=o-AF"+Yj+"&itag=242&aitags=133%2C134%2C135%2C136%2C137%2C160%2C242%2C243%2C244%2C247%2C248%2C278%2C394%2C395%2C396%2C397%2C398%2C399&source=youtube&requiressl=yes&mh=X6&mm="+DV+"&mn="+
iK+"&ms="+iK+"&mv="+i_+"&mvi="+Rn+"&pl="+HO+"&initcwndbps="+LT+"&siu="+Rn+"&spc="+p+"&vprv="+Rn+"&svpuc="+Rn+"&mime=video%2Fwebm&ns="+Qx+"&gir="+cO+"&clen="+Du+"&dur="+Du+"&lmt="+l_+"&mt="+se+"&fvip=3&keepalive="+cO+"&c=WEB&txp="+LT+"&n="+S9+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+B+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+B,mimeType:'video/webm; codecs="vp9"',bitrate:MU,width:426,
height:240,initRange:{start:"0",end:"218"},indexRange:{start:vO,end:wI},lastModified:l_,contentLength:Du,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:MU,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:LT},{itag:395,url:"https://"+bo+".googlevideo.com/videoplayback?expire="+se+"&ei="+l+"&ip="+BO+"&id=o-AF"+Yj+"&itag=395&aitags=133%2C134%2C135%2C136%2C137%2C160%2C242%2C243%2C244%2C247%2C248%2C278%2C394%2C395%2C396%2C397%2C398%2C399&source=youtube&requiressl=yes&mh=X6&mm="+
DV+"&mn="+iK+"&ms="+iK+"&mv="+i_+"&mvi="+Rn+"&pl="+HO+"&initcwndbps="+LT+"&siu="+Rn+"&spc="+p+"&vprv="+Rn+"&svpuc="+Rn+"&mime=video%2Fmp4&ns="+Qx+"&gir="+cO+"&clen="+Du+"&dur="+Du+"&lmt="+l_+"&mt="+se+"&fvip=3&keepalive="+cO+"&c=WEB&txp="+LT+"&n="+S9+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+B+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+B,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:MU,
width:426,height:240,initRange:{start:"0",end:"699"},indexRange:{start:vO,end:wI},lastModified:l_,contentLength:Du,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:MU,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:LT},{itag:160,url:"https://"+bo+".googlevideo.com/videoplayback?expire="+se+"&ei="+l+"&ip="+BO+"&id=o-AF"+Yj+"&itag=160&aitags=133%2C134%2C135%2C136%2C137%2C160%2C242%2C243%2C244%2C247%2C248%2C278%2C394%2C395%2C396%2C397%2C398%2C399&source=youtube&requiressl=yes&mh=X6&mm="+
DV+"&mn="+iK+"&ms="+iK+"&mv="+i_+"&mvi="+Rn+"&pl="+HO+"&initcwndbps="+LT+"&siu="+Rn+"&spc="+p+"&vprv="+Rn+"&svpuc="+Rn+"&mime=video%2Fmp4&ns="+Qx+"&gir="+cO+"&clen="+Du+"&dur="+Du+"&lmt="+l_+"&mt="+se+"&fvip=3&keepalive="+cO+"&c=WEB&txp="+LT+"&n="+S9+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+C+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+B,mimeType:'video/mp4; codecs="avc1.4d400c"',bitrate:MU,
width:256,height:144,initRange:{start:"0",end:"737"},indexRange:{start:vO,end:wI},lastModified:l_,contentLength:Du,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:Z_,approxDurationMs:LT},{itag:278,url:"https://"+bo+".googlevideo.com/videoplayback?expire="+se+"&ei="+l+"&ip="+BO+"&id=o-AF"+Yj+"&itag=278&aitags=133%2C134%2C135%2C136%2C137%2C160%2C242%2C243%2C244%2C247%2C248%2C278%2C394%2C395%2C396%2C397%2C398%2C399&source=youtube&requiressl=yes&mh=X6&mm="+DV+"&mn="+
iK+"&ms="+iK+"&mv="+i_+"&mvi="+Rn+"&pl="+HO+"&initcwndbps="+LT+"&siu="+Rn+"&spc="+p+"&vprv="+Rn+"&svpuc="+Rn+"&mime=video%2Fwebm&ns="+Qx+"&gir="+cO+"&clen="+Du+"&dur="+Du+"&lmt="+l_+"&mt="+se+"&fvip=3&keepalive="+cO+"&c=WEB&txp="+LT+"&n="+S9+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+B+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+B,mimeType:'video/webm; codecs="vp9"',bitrate:MU,width:256,
height:144,initRange:{start:"0",end:"218"},indexRange:{start:vO,end:wI},lastModified:l_,contentLength:Du,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:Z_,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:LT},{itag:394,url:"https://"+bo+".googlevideo.com/videoplayback?expire="+se+"&ei="+l+"&ip="+BO+"&id=o-AF"+Yj+"&itag=394&aitags=133%2C134%2C135%2C136%2C137%2C160%2C242%2C243%2C244%2C247%2C248%2C278%2C394%2C395%2C396%2C397%2C398%2C399&source=youtube&requiressl=yes&mh=X6&mm="+
DV+"&mn="+iK+"&ms="+iK+"&mv="+i_+"&mvi="+Rn+"&pl="+HO+"&initcwndbps="+LT+"&siu="+Rn+"&spc="+p+"&vprv="+Rn+"&svpuc="+Rn+"&mime=video%2Fmp4&ns="+Qx+"&gir="+cO+"&clen="+Du+"&dur="+Du+"&lmt="+l_+"&mt="+se+"&fvip=3&keepalive="+cO+"&c=WEB&txp="+LT+"&n="+S9+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+g+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+B,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:Z_,
width:256,height:144,initRange:{start:"0",end:"699"},indexRange:{start:vO,end:wI},lastModified:l_,contentLength:Du,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:Z_,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:LT},{itag:140,url:"https://"+bo+".googlevideo.com/videoplayback?expire="+se+"&ei="+l+"&ip="+BO+"&id=o-AF"+Yj+"&itag=140&source=youtube&requiressl=yes&mh=X6&mm="+
DV+"&mn="+iK+"&ms="+iK+"&mv="+i_+"&mvi="+Rn+"&pl="+HO+"&initcwndbps="+LT+"&siu="+Rn+"&spc="+p+"&vprv="+Rn+"&svpuc="+Rn+"&mime=audio%2Fmp4&ns="+Qx+"&gir="+cO+"&clen="+Du+"&dur="+Du+"&lmt="+l_+"&mt="+se+"&fvip=3&keepalive="+cO+"&c=WEB&txp="+LT+"&n="+S9+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+C+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+B,mimeType:'audio/mp4; codecs="mp4a.40.2"',bitrate:MU,
initRange:{start:"0",end:"631"},indexRange:{start:vO,end:wI},lastModified:l_,contentLength:Du,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:MU,highReplication:!0,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:LT,audioSampleRate:"44100",audioChannels:2,loudnessDb:-3.7800007},{itag:249,url:"https://"+bo+".googlevideo.com/videoplayback?expire="+se+"&ei="+l+"&ip="+BO+"&id=o-AF"+Yj+"&itag=249&source=youtube&requiressl=yes&mh=X6&mm="+DV+"&mn="+iK+"&ms="+iK+"&mv="+i_+"&mvi="+Rn+"&pl="+
HO+"&initcwndbps="+LT+"&siu="+Rn+"&spc="+p+"&vprv="+Rn+"&svpuc="+Rn+"&mime=audio%2Fwebm&ns="+Qx+"&gir="+cO+"&clen="+LT+"&dur="+Du+"&lmt="+l_+"&mt="+se+"&fvip=3&keepalive="+cO+"&c=WEB&txp="+LT+"&n="+S9+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+C+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+B,mimeType:'audio/webm; codecs="opus"',bitrate:Z_,initRange:{start:"0",end:"265"},indexRange:{start:vO,
end:wI},lastModified:l_,contentLength:LT,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:Z_,audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:LT,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:250,url:"https://"+bo+".googlevideo.com/videoplayback?expire="+se+"&ei="+l+"&ip="+BO+"&id=o-AF"+Yj+"&itag=250&source=youtube&requiressl=yes&mh=X6&mm="+DV+"&mn="+iK+"&ms="+iK+"&mv="+i_+"&mvi="+Rn+"&pl="+HO+"&initcwndbps="+LT+"&siu="+Rn+"&spc="+p+"&vprv="+Rn+"&svpuc="+Rn+"&mime=audio%2Fwebm&ns="+
Qx+"&gir="+cO+"&clen="+LT+"&dur="+Du+"&lmt="+l_+"&mt="+se+"&fvip=3&keepalive="+cO+"&c=WEB&txp="+LT+"&n="+S9+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+C+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+B,mimeType:'audio/webm; codecs="opus"',bitrate:Z_,initRange:{start:"0",end:"265"},indexRange:{start:vO,end:wI},lastModified:l_,contentLength:LT,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:Z_,
audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:LT,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:251,url:"https://"+bo+".googlevideo.com/videoplayback?expire="+se+"&ei="+l+"&ip="+BO+"&id=o-AF"+Yj+"&itag=251&source=youtube&requiressl=yes&mh=X6&mm="+DV+"&mn="+iK+"&ms="+iK+"&mv="+i_+"&mvi="+Rn+"&pl="+HO+"&initcwndbps="+LT+"&siu="+Rn+"&spc="+p+"&vprv="+Rn+"&svpuc="+Rn+"&mime=audio%2Fwebm&ns="+Qx+"&gir="+cO+"&clen="+Du+"&dur="+Du+"&lmt="+l_+"&mt="+se+"&fvip=3&keepalive="+cO+"&c=WEB&txp="+
LT+"&n="+S9+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+g+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+B,mimeType:'audio/webm; codecs="opus"',bitrate:MU,initRange:{start:"0",end:"265"},indexRange:{start:vO,end:wI},lastModified:l_,contentLength:Du,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:MU,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:LT,audioSampleRate:"48000",audioChannels:2,
loudnessDb:-3.7800007}]},playerAds:[{playerLegacyDesktopWatchAdsRenderer:{playerAdParams:{showContentThumbnail:!0,enabledEngageTypes:"3,6,4,5,17,1"},gutParams:{tag:"\\4061\\ytpwmpu"},showCompanion:!0,showInstream:!0,useGut:!0}}],playbackTracking:{videostatsPlaybackUrl:{baseUrl:"https://s.youtube.com/api/stats/playback?cl="+MR+"&docid="+I+"&ei="+l+"&feature="+M+"&fexp="+xt+"&ns="+rI+"&plid="+P+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+i_+"&el="+AP+"&len="+wI+"&of="+NF+
"&uga="+HO+"&vm="+xB},videostatsDelayplayUrl:{baseUrl:"https://s.youtube.com/api/stats/delayplay?cl="+MR+"&docid="+I+"&ei="+l+"&feature="+M+"&fexp="+xt+"&ns="+rI+"&plid="+P+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+i_+"&el="+AP+"&len="+wI+"&of="+NF+"&uga="+HO+"&vm="+xB},videostatsWatchtimeUrl:{baseUrl:"https://s.youtube.com/api/stats/watchtime?cl="+MR+"&docid="+I+"&ei="+l+"&feature="+M+"&fexp="+xt+"&ns="+rI+"&plid="+P+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+
i_+"&el="+AP+"&len="+wI+"&of="+NF+"&uga="+HO+"&vm="+xB},ptrackingUrl:{baseUrl:"https://www.youtube.com/ptracking?ei="+l+"&m="+jk+"&oid="+NF+"&plid="+P+"&pltype="+Sk+"&ptchn="+NF+"&ptk="+X+"&video_id="+I},qoeUrl:{baseUrl:"https://s.youtube.com/api/stats/qoe?cl="+MR+"&docid="+I+"&ei="+l+"&event="+Ac+"&feature="+M+"&fexp="+xt+"&ns="+rI+"&plid="+P+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+i_},atrUrl:{baseUrl:"https://s.youtube.com/api/stats/atr?docid="+I+"&ei="+l+"&feature="+
M+"&len="+wI+"&ns="+rI+"&plid="+P+"&ver="+Rn,elapsedMediaTimeSeconds:5},videostatsScheduledFlushWalltimeSeconds:[10,20,30],videostatsDefaultFlushIntervalSeconds:40},captions:{playerCaptionsTracklistRenderer:{captionTracks:[{baseUrl:"https://www.youtube.com/api/timedtext?v="+I+"&caps="+cO+"&opi="+MR+"&xoaf="+Rn+"&hl="+rI+"&ip="+BO+"&ipbits="+Rn+"&expire="+se+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+BO+"&key="+cO+"&lang="+UY,name:{simpleText:tF},vssId:".en-US",languageCode:"en-US",isTranslatable:!0,
trackName:""},{baseUrl:"https://www.youtube.com/api/timedtext?v="+I+"&caps="+cO+"&opi="+MR+"&xoaf="+Rn+"&hl="+rI+"&ip="+BO+"&ipbits="+Rn+"&expire="+se+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+BO+"&key="+cO+"&kind="+cO+"&lang="+rI,name:{simpleText:Sk},vssId:"a.it",languageCode:"it",kind:"asr",isTranslatable:!0,trackName:""}],audioTracks:[{captionTrackIndices:[0,1],defaultCaptionTrackIndex:0,visibility:"UNKNOWN",hasDefaultTrack:!0,captionsInitialState:"CAPTIONS_INITIAL_STATE_OFF_RECOMMENDED"}],
translationLanguages:[{languageCode:"af",languageName:{simpleText:"Afrikaans"}},{languageCode:"ak",languageName:{simpleText:"Akan"}},{languageCode:"sq",languageName:{simpleText:"Albanian"}},{languageCode:"am",languageName:{simpleText:"Amharic"}},{languageCode:"ar",languageName:{simpleText:"Arabic"}},{languageCode:"hy",languageName:{simpleText:"Armenian"}},{languageCode:"as",languageName:{simpleText:"Assamese"}},{languageCode:"ay",languageName:{simpleText:"Aymara"}},{languageCode:"az",languageName:{simpleText:"Azerbaijani"}},
{languageCode:"bn",languageName:{simpleText:"Bangla"}},{languageCode:"eu",languageName:{simpleText:"Basque"}},{languageCode:"be",languageName:{simpleText:"Belarusian"}},{languageCode:"bho",languageName:{simpleText:"Bhojpuri"}},{languageCode:"bs",languageName:{simpleText:"Bosnian"}},{languageCode:"bg",languageName:{simpleText:"Bulgarian"}},{languageCode:"my",languageName:{simpleText:"Burmese"}},{languageCode:"ca",languageName:{simpleText:"Catalan"}},{languageCode:"ceb",languageName:{simpleText:"Cebuano"}},
{languageCode:"zh-Hans",languageName:{simpleText:"Chinese (Simplified)"}},{languageCode:"zh-Hant",languageName:{simpleText:"Chinese (Traditional)"}},{languageCode:"co",languageName:{simpleText:"Corsican"}},{languageCode:"hr",languageName:{simpleText:"Croatian"}},{languageCode:"cs",languageName:{simpleText:"Czech"}},{languageCode:"da",languageName:{simpleText:"Danish"}},{languageCode:"dv",languageName:{simpleText:"Divehi"}},{languageCode:"nl",languageName:{simpleText:"Dutch"}},{languageCode:"en",languageName:{simpleText:"English"}},
{languageCode:"eo",languageName:{simpleText:"Esperanto"}},{languageCode:"et",languageName:{simpleText:"Estonian"}},{languageCode:"ee",languageName:{simpleText:"Ewe"}},{languageCode:"fil",languageName:{simpleText:"Filipino"}},{languageCode:"fi",languageName:{simpleText:"Finnish"}},{languageCode:"fr",languageName:{simpleText:"French"}},{languageCode:"gl",languageName:{simpleText:"Galician"}},{languageCode:"lg",languageName:{simpleText:"Ganda"}},{languageCode:"ka",languageName:{simpleText:"Georgian"}},
{languageCode:"de",languageName:{simpleText:"German"}},{languageCode:"el",languageName:{simpleText:"Greek"}},{languageCode:"gn",languageName:{simpleText:"Guarani"}},{languageCode:"gu",languageName:{simpleText:"Gujarati"}},{languageCode:"ht",languageName:{simpleText:"Haitian Creole"}},{languageCode:"ha",languageName:{simpleText:"Hausa"}},{languageCode:"haw",languageName:{simpleText:"Hawaiian"}},{languageCode:"iw",languageName:{simpleText:"Hebrew"}},{languageCode:"hi",languageName:{simpleText:"Hindi"}},
{languageCode:"hmn",languageName:{simpleText:"Hmong"}},{languageCode:"hu",languageName:{simpleText:"Hungarian"}},{languageCode:"is",languageName:{simpleText:"Icelandic"}},{languageCode:"ig",languageName:{simpleText:"Igbo"}},{languageCode:"id",languageName:{simpleText:"Indonesian"}},{languageCode:"ga",languageName:{simpleText:"Irish"}},{languageCode:"it",languageName:{simpleText:"Italian"}},{languageCode:"ja",languageName:{simpleText:"Japanese"}},{languageCode:"jv",languageName:{simpleText:"Javanese"}},
{languageCode:"kn",languageName:{simpleText:"Kannada"}},{languageCode:"kk",languageName:{simpleText:"Kazakh"}},{languageCode:"km",languageName:{simpleText:"Khmer"}},{languageCode:"rw",languageName:{simpleText:"Kinyarwanda"}},{languageCode:"ko",languageName:{simpleText:"Korean"}},{languageCode:"kri",languageName:{simpleText:"Krio"}},{languageCode:"ku",languageName:{simpleText:"Kurdish"}},{languageCode:"ky",languageName:{simpleText:"Kyrgyz"}},{languageCode:"lo",languageName:{simpleText:"Lao"}},{languageCode:"la",
languageName:{simpleText:"Latin"}},{languageCode:"lv",languageName:{simpleText:"Latvian"}},{languageCode:"ln",languageName:{simpleText:"Lingala"}},{languageCode:"lt",languageName:{simpleText:"Lithuanian"}},{languageCode:"lb",languageName:{simpleText:"Luxembourgish"}},{languageCode:"mk",languageName:{simpleText:"Macedonian"}},{languageCode:"mg",languageName:{simpleText:"Malagasy"}},{languageCode:"ms",languageName:{simpleText:"Malay"}},{languageCode:"ml",languageName:{simpleText:"Malayalam"}},{languageCode:"mt",
languageName:{simpleText:"Maltese"}},{languageCode:"mi",languageName:{simpleText:"Maori"}},{languageCode:"mr",languageName:{simpleText:"Marathi"}},{languageCode:"mn",languageName:{simpleText:"Mongolian"}},{languageCode:"ne",languageName:{simpleText:"Nepali"}},{languageCode:"nso",languageName:{simpleText:"Northern Sotho"}},{languageCode:"no",languageName:{simpleText:"Norwegian"}},{languageCode:"ny",languageName:{simpleText:"Nyanja"}},{languageCode:"or",languageName:{simpleText:"Odia"}},{languageCode:"om",
languageName:{simpleText:"Oromo"}},{languageCode:"ps",languageName:{simpleText:"Pashto"}},{languageCode:"fa",languageName:{simpleText:"Persian"}},{languageCode:"pl",languageName:{simpleText:"Polish"}},{languageCode:"pt",languageName:{simpleText:"Portuguese"}},{languageCode:"pa",languageName:{simpleText:"Punjabi"}},{languageCode:"qu",languageName:{simpleText:"Quechua"}},{languageCode:"ro",languageName:{simpleText:"Romanian"}},{languageCode:"ru",languageName:{simpleText:"Russian"}},{languageCode:"sm",
languageName:{simpleText:"Samoan"}},{languageCode:"sa",languageName:{simpleText:"Sanskrit"}},{languageCode:"gd",languageName:{simpleText:"Scottish Gaelic"}},{languageCode:"sr",languageName:{simpleText:"Serbian"}},{languageCode:"sn",languageName:{simpleText:"Shona"}},{languageCode:"sd",languageName:{simpleText:"Sindhi"}},{languageCode:"si",languageName:{simpleText:"Sinhala"}},{languageCode:"sk",languageName:{simpleText:"Slovak"}},{languageCode:"sl",languageName:{simpleText:"Slovenian"}},{languageCode:"so",
languageName:{simpleText:"Somali"}},{languageCode:"st",languageName:{simpleText:"Southern Sotho"}},{languageCode:"es",languageName:{simpleText:"Spanish"}},{languageCode:"su",languageName:{simpleText:"Sundanese"}},{languageCode:"sw",languageName:{simpleText:"Swahili"}},{languageCode:"sv",languageName:{simpleText:"Swedish"}},{languageCode:"tg",languageName:{simpleText:"Tajik"}},{languageCode:"ta",languageName:{simpleText:"Tamil"}},{languageCode:"tt",languageName:{simpleText:"Tatar"}},{languageCode:"te",
languageName:{simpleText:"Telugu"}},{languageCode:"th",languageName:{simpleText:"Thai"}},{languageCode:"ti",languageName:{simpleText:"Tigrinya"}},{languageCode:"ts",languageName:{simpleText:"Tsonga"}},{languageCode:"tr",languageName:{simpleText:"Turkish"}},{languageCode:"tk",languageName:{simpleText:"Turkmen"}},{languageCode:"uk",languageName:{simpleText:"Ukrainian"}},{languageCode:"ur",languageName:{simpleText:"Urdu"}},{languageCode:"ug",languageName:{simpleText:"Uyghur"}},{languageCode:"uz",languageName:{simpleText:"Uzbek"}},
{languageCode:"vi",languageName:{simpleText:"Vietnamese"}},{languageCode:"cy",languageName:{simpleText:"Welsh"}},{languageCode:"fy",languageName:{simpleText:"Western Frisian"}},{languageCode:"xh",languageName:{simpleText:"Xhosa"}},{languageCode:"yi",languageName:{simpleText:"Yiddish"}},{languageCode:"yo",languageName:{simpleText:"Yoruba"}},{languageCode:"zu",languageName:{simpleText:"Zulu"}}],defaultAudioTrackIndex:0}},videoDetails:{videoId:S$,title:Cd,lengthSeconds:"1155",keywords:[Ii,Ac,Sk,SU],
channelId:Qx,isOwnerViewing:!1,shortDescription:Np,isCrawlable:!0,thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+I+"/hqdefault.jpg?sqp=-oaymwE"+kw+"G&rs="+qR,width:168,height:94},{url:"https://i.ytimg.com/vi/"+I+"/hqdefault.jpg?sqp=-oaymwE"+kw+"G&rs="+qR,width:196,height:110},{url:"https://i.ytimg.com/vi/"+I+"/hqdefault.jpg?sqp=-oaymwE"+kw+"G&rs="+G,width:246,height:138},{url:"https://i.ytimg.com/vi/"+I+"/hqdefault.jpg?sqp=-oaymwE"+kw+"G&rs="+G,width:336,height:188},{url:"https://i.ytimg.com/vi/"+
I+"/maxresdefault.jpg",width:1920,height:1080}]},allowRatings:!0,viewCount:LT,author:Np,isPrivate:!1,isUnpluggedCorpus:!1,isLiveContent:!1},annotations:[{playerAnnotationsExpandedRenderer:{featuredChannel:{startTimeMs:"0",endTimeMs:LT,watermark:{thumbnails:[{url:"https://i.ytimg.com/an/"+NF+"/featured_channel.jpg?v="+PT,width:40,height:40}]},trackingParams:Ri+"=",navigationEndpoint:{clickTrackingParams:lL,commandMetadata:{webCommandMetadata:{url:"/channel/"+Qx,webPageType:"WEB_PAGE_TYPE_CHANNEL",
rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:Qx}},channelName:Np,subscribeButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:S9}]},subscribed:!1,enabled:!0,type:"FREE",channelId:Qx,showPreferences:!1,subscribedButtonText:{runs:[{text:Sk}]},unsubscribedButtonText:{runs:[{text:S$}]},trackingParams:Ri+"=",unsubscribeButtonText:{runs:[{text:ye}]},serviceEndpoints:[{clickTrackingParams:lL,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},
subscribeEndpoint:{channelIds:[Qx],params:PT}},{clickTrackingParams:lL,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:lL,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:Ri+"=",dialogMessages:[{runs:[{text:s_},{text:Cd},{text:Ii}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:DS}]},serviceEndpoint:{clickTrackingParams:lL,commandMetadata:{webCommandMetadata:{sendPost:!0,
apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[Qx],params:PT}},accessibility:{label:fb},trackingParams:Ri+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:Cd}]},accessibility:{label:Zd},trackingParams:Ri+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:tF}},unsubscribeAccessibility:{accessibilityData:{label:zX}}}}},allowSwipeDismiss:!0,annotationId:"632ce843-0000-20d6-ace4-3c286d423086"}}],
playerConfig:{audioConfig:{loudnessDb:-3.7800007,perceptualLoudnessDb:-17.78,enablePerFormatLoudness:!0},streamSelectionConfig:{maxBitrate:Du},mediaCommonConfig:{dynamicReadaheadConfig:{maxReadAheadMediaTimeMs:12E4,minReadAheadMediaTimeMs:15E3,readAheadGrowthRateMs:1E3}},webPlayerConfig:{useCobaltTvosDash:!0,webPlayerActionsPorting:{getSharePanelCommand:{clickTrackingParams:lL,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/share/get_web_player_share_panel"}},webPlayerShareEntityServiceEndpoint:{serializedShareEntity:"CgtndjNsdkt5X1dENA%3D%3D"}},
subscribeCommand:{clickTrackingParams:lL,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[Qx],params:PT}},unsubscribeCommand:{clickTrackingParams:lL,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[Qx],params:PT}},addToWatchLaterCommand:{clickTrackingParams:lL,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},
playlistEditEndpoint:{playlistId:"WL",actions:[{addedVideoId:S$,action:"ACTION_ADD_VIDEO"}]}},removeFromWatchLaterCommand:{clickTrackingParams:lL,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},playlistEditEndpoint:{playlistId:"WL",actions:[{action:"ACTION_REMOVE_VIDEO_BY_VIDEO_ID",removedVideoId:S$}]}}}}},storyboards:{playerStoryboardSpecRenderer:{spec:"https://i.ytimg.com/sb/"+I+"/storyboard3_L$L/$N.jpg?sqp=-oaymwE"+kw+"G",recommendedLevel:2}},microformat:{playerMicroformatRenderer:{thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+
I+"/maxresdefault.jpg",width:1280,height:720}]},embed:{iframeUrl:"https://www.youtube.com/embed/"+S$,width:1280,height:720},title:{simpleText:Zd},description:{simpleText:Cd},lengthSeconds:"1156",ownerProfileUrl:"http://www.youtube.com/@"+PT,externalChannelId:Qx,isFamilySafe:!0,availableCountries:"AD AE AF AG AI AL AM AO AQ AR AS AT AU AW AX AZ BA BB BD BE BF BG BH BI BJ BL BM BN BO BQ BR BS BT BV BW BY BZ CA CC CD CF CG CH CI CK CL CM CN CO CR CU CV CW CX CY CZ DE DJ DK DM DO DZ EC EE EG EH ER ES ET FI FJ FK FM FO FR GA GB GD GE GF GG GH GI GL GM GN GP GQ GR GS GT GU GW GY HK HM HN HR HT HU ID IE IL IM IN IO IQ IR IS IT JE JM JO JP KE KG KH KI KM KN KP KR KW KY KZ LA LB LC LI LK LR LS LT LU LV LY MA MC MD ME MF MG MH MK ML MM MN MO MP MQ MR MS MT MU MV MW MX MY MZ NA NC NE NF NG NI NL NO NP NR NU NZ OM PA PE PF PG PH PK PL PM PN PR PS PT PW PY QA RE RO RS RU RW SA SB SC SD SE SG SH SI SJ SK SL SM SN SO SR SS ST SV SX SY SZ TC TD TF TG TH TJ TK TL TM TN TO TR TT TV TW TZ UA UG UM US UY UZ VA VC VE VG VI VN VU WF WS YE YT ZA ZM ZW".split(" "),
isUnlisted:!1,hasYpcMetadata:!1,viewCount:LT,category:"Travel & Events",publishDate:b_,ownerChannelName:Np,uploadDate:b_}},cards:{cardCollectionRenderer:{cards:[{cardRenderer:{teaser:{simpleCardTeaserRenderer:{message:{simpleText:Zd},trackingParams:Ri+"=",prominent:!0,logVisibilityUpdates:!0,onTapCommand:{clickTrackingParams:lL,changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-error-corrections",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}}}},cueRanges:[{startCardActiveMs:"0",
endCardActiveMs:"5000",teaserDurationMs:"6000",iconAfterTeaserMs:"5000"}],trackingParams:Ri+"="}}],headerText:{simpleText:Zd},icon:{infoCardIconRenderer:{trackingParams:Ri+"="}},closeButton:{infoCardIconRenderer:{trackingParams:Ri+"="}},trackingParams:Ri+"=",allowTeaserDismiss:!0,logIconVisibilityUpdates:!0}},trackingParams:Ri+"=",attestation:{playerAttestationRenderer:{challenge:"a=6&a2=1&b=fTFKUEAUxxmXFgD-AByAUN6WwsY&c=1696917232&d=1&e="+S$+"&c1a=1&c6a=1&c6b=1&x4=1&hh=mbNf63Xfb0v-wi6-05i_8N3EUGCwK7F0b4rqZoUv9mY",
botguardData:{program:QA,interpreterSafeUrl:(je.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="//www.google.com/js/th/"+z8+".js",je),serverEnvironment:1}}},videoQualityPromoSupportedRenderers:{videoQualityPromoRenderer:{triggerCriteria:{connectionWhitelist:["WIFI"],joinLatencySeconds:15,rebufferTimeSeconds:10,watchTimeWindowSeconds:180,refractorySeconds:2592E3},text:{runs:[{text:SU},{text:s_,bold:!0}]},endpoint:{clickTrackingParams:lL,commandMetadata:{webCommandMetadata:{url:"https://www.google.com/get/videoqualityreport/",
webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.google.com/get/videoqualityreport/",target:"TARGET_NEW_WINDOW"}},trackingParams:Ri+"=",snackbar:{notificationActionRenderer:{responseText:{runs:[{text:fb}]},actionButton:{buttonRenderer:{text:{runs:[{text:S9}]},navigationEndpoint:{clickTrackingParams:lL,commandMetadata:{webCommandMetadata:{url:"https://www.google.com/get/videoqualityreport/?v="+I,webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.google.com/get/videoqualityreport/?v="+
I,target:"TARGET_NEW_WINDOW"}},trackingParams:Ri+"="}},trackingParams:Ri+"="}}}},endscreen:{endscreenRenderer:{elements:[{endscreenElementRenderer:{style:"CHANNEL",image:{thumbnails:[{url:"https://yt3.ggpht.com/"+xW+"=s250-c-k-c0x00ffffff-no-rj",width:250,height:250},{url:"https://yt3.ggpht.com/"+xW+"=s400-c-k-c0x00ffffff-no-rj",width:400,height:400}]},icon:{thumbnails:[{url:"https://www.gstatic.com/youtube/img/annotations/youtube.png"}]},left:.030214407,width:.15438597,top:.37587035,aspectRatio:1,
startMs:LT,endMs:LT,title:{accessibility:{accessibilityData:{label:SU}},simpleText:Cd},metadata:{simpleText:Cd},callToAction:{simpleText:S9},dismiss:{simpleText:Sk},endpoint:{clickTrackingParams:lL,commandMetadata:{webCommandMetadata:{url:"/channel/"+Qx,webPageType:"WEB_PAGE_TYPE_CHANNEL",rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:Qx}},hovercardButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:S$}]},subscribed:!1,enabled:!0,type:"FREE",channelId:Qx,showPreferences:!1,
subscribedButtonText:{runs:[{text:tF}]},unsubscribedButtonText:{runs:[{text:Ac}]},trackingParams:Ri+"=",unsubscribeButtonText:{runs:[{text:S$}]},serviceEndpoints:[{clickTrackingParams:lL,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[Qx],params:PT}},{clickTrackingParams:lL,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:lL,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:Ri+
"=",dialogMessages:[{runs:[{text:Zd},{text:S$},{text:s_}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:fb}]},serviceEndpoint:{clickTrackingParams:lL,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[Qx],params:PT}},accessibility:{label:PT},trackingParams:Ri+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:S$}]},
accessibility:{label:zX},trackingParams:Ri+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:DS}},unsubscribeAccessibility:{accessibilityData:{label:Ac}}}},trackingParams:Ri+"=",isSubscribe:!0,id:YB}},{endscreenElementRenderer:{style:"VIDEO",image:{thumbnails:[{url:"https://i.ytimg.com/vi/"+I+"/hqdefault.jpg?sqp=-oaymwE"+kw+"G&rs="+G,width:168,height:94},{url:"https://i.ytimg.com/vi/"+I+"/hqdefault.jpg?sqp=-oaymwE"+kw+"G&rs="+qR,width:196,height:110},
{url:"https://i.ytimg.com/vi/"+I+"/hqdefault.jpg?sqp=-oaymwE"+kw+"G&rs="+G,width:246,height:138},{url:"https://i.ytimg.com/vi/"+I+"/hqdefault.jpg?sqp=-oaymwE"+kw+"G&rs="+G,width:336,height:188},{url:"https://i.ytimg.com/vi/"+I+"/maxresdefault.jpg",width:1920,height:1080}]},left:.654386,width:.322807,top:.32769307,aspectRatio:1.7777778,startMs:LT,endMs:LT,title:{accessibility:{accessibilityData:{label:S$}},simpleText:Cd},metadata:{simpleText:S$},endpoint:{clickTrackingParams:lL,commandMetadata:{webCommandMetadata:{url:"/watch?v="+
S$,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832},interactionLoggingCommandMetadata:{loggingExpectations:{screenCreatedLoggingExpectations:{expectedParentScreens:[{screenVeType:3832}]}}}},watchEndpoint:{videoId:S$,watchEndpointSupportedOnesieConfig:{html5PlaybackOnesieConfig:{commonConfig:{url:"https://"+bo+".googlevideo.com/videoplayback?source=youtube&oeis="+Rn+"&c=WEB&oad="+wI+"&ovd="+wI+"&oaad="+Aa+"&oavd="+Aa+"&ocs="+vO+"&oewis="+Rn+"&oputc="+Rn+"&ofpcc="+Rn+"&siu="+Rn+"&msp="+Rn+"&odepv="+Rn+
"&id=o-AF"+Yj+"&ip="+BO+"&initcwndbps="+LT+"&mt="+se+"&oweuc="+xt}}}}},trackingParams:Ri+"=",id:YB,thumbnailOverlays:[{thumbnailOverlayTimeStatusRenderer:{text:{accessibility:{accessibilityData:{label:S$}},simpleText:Ac},style:"DEFAULT"}}]}}],startMs:LT,trackingParams:Ri+"="}},adPlacements:[{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_START",adTimeOffset:{offsetStartMilliseconds:Rn,offsetEndMilliseconds:Aa},hideCueRangeMarker:!0}},renderer:{linearAdSequenceRenderer:{linearAds:[{instreamVideoAdRenderer:{skipOffsetMilliseconds:5E3,
pings:{impressionPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackimp/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+MR+";dc_trk_cid="+MR+";dc_dbm_token="+B+";ord="+se+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Rn+";dc_rui="+Rn+";dc_exteid="+YB+";dc_av="+vO+";dc_sk="+Rn+";dc_ctype="+HO+";dc_ref=http://www.youtube.com/video/"+S$+";dc_pubid="+Rn+";dc_btype=23?gclid="+Jr+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+
x+"____________"+A+"AxAA&sigh="+S$+"&cid="+w+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+Rn+"&ns="+Rn+"&event="+Rn+"&device="+Rn+"&content_v="+I+"&el="+AP+"&ei="+l+"&devicever="+E+"&bti="+LT+"&format="+MF+"&break_type="+Rn+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+Rn+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+BO+"&slot_pos="+Rn+"&slot_len="+Rn+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+DV+"&ad_len="+Aa+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+
S$+"&aqi="+l+"&ad_rmp="+Rn+"&sli="+Rn}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+x+"____________"+A+"AxAA&sigh="+I+"&cid="+w+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+x+"____________"+A+"AxAA&sigh="+I+"&cid="+w+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Rn+";dc_exteid="+YB+";met="+Rn+";ecn"+Rn+"="+Rn+
";etm1="+Rn+";eid1="+HO+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+x+"____________"+A+"AxAA&sigh="+I+"&cid="+w+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Rn+";dc_exteid="+YB+";met="+Rn+";ecn"+Rn+"="+Rn+";etm1="+Rn+";eid1="+MF+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
x+"____________"+A+"AxAA&sigh="+I+"&cid="+w+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Rn+";dc_exteid="+YB+";met="+Rn+";ecn"+Rn+"="+Rn+";etm1="+Rn+";eid1="+HO+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+x+"____________"+A+"AxAA&sigh="+I+"&cid="+w+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+x+"____________"+A+"AxAA&sigh="+I+"&cid="+w+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Rn+";dc_exteid="+YB+";met="+Rn+";ecn"+Rn+"="+Rn+";etm1="+Rn+";eid1="+HO+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+x+"____________"+A+"AxAA&sigh="+I+"&cid="+w+
"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Rn+";dc_exteid="+YB+";met="+Rn+";ecn"+Rn+"="+Rn+";etm1="+Rn+";eid1="+LT+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+x+"____________"+A+"AxAA&sigh="+I+"&cid="+w+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
x+"____________"+A+"AxAA&sigh="+I+"&cid="+w+"&label=video_skip_shown&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]",offsetMilliseconds:5E3},{baseUrl:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+x+"____________"+A+"AxAA&ase=2&num="+Rn+"&cid="+w+"&ad_cpn=%5BAD_CPN%5D&sig="+G+"&adurl="+Vl+"&ctype="+vO+"&ms=[CLICK_MS]&label=video_10s_engaged_view&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=",offsetMilliseconds:1E4,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
x+"____________"+A+"AxAA&ase=2&num="+Rn+"&cid="+w+"&ad_cpn=%5BAD_CPN%5D&sig="+G+"&adurl="+Vl+"&label=video_engaged_view&ctype="+vO+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Rn+";dc_exteid="+YB+";met="+Rn+";ecn"+Rn+"="+Rn+";etm1="+Rn+";eid1="+MF+";?",offsetMilliseconds:15E3}],clickthroughPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
MR+";dc_trk_cid="+MR+";dc_dbm_token="+B+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Rn+";ord="+MR+";dc_rui="+Rn+";dc_exteid="+j$+";dc_av="+Rn+";dc_sk="+Rn+";dc_ctype="+HO+";dc_pubid="+Rn+";dc_btype=3?gclid="+Jr+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}],fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+x+"____________"+A+"AxAA&sigh="+I+"&cid="+w+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Rn+";dc_exteid="+YB+";met="+Rn+";ecn"+Rn+"="+Rn+";etm1="+Rn+";eid1="+HO+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+t+"&sig="+JW+"&ad_cpn=[AD_CPN]&id="+SU+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+SU+"&dc_pubid="+Rn+"&dc_exteid="+YB+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+x+"____________"+A+"AxAA&sigh="+I+"&cid="+w+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+t+"&sig="+JW+"&ad_cpn=[AD_CPN]&id="+SU+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+Rn},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+SU+"&avm="+Rn+"&dc_pubid="+Rn+"&dc_exteid="+
YB+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+x+"____________"+A+"AxAA&sigh="+I+"&cid="+w+"&label=video_abandon&ad_mt=[AD_MT]&ad_tos=[AD_TOS]&ad_wat=[AD_WAT]&final=[FINAL]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Rn+";dc_exteid="+YB+";met="+Rn+";ecn"+Rn+"="+Rn+";etm1="+Rn+";eid1="+HO+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+
t+"&sig="+JW+"&ad_cpn=[AD_CPN]&id="+SU+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+Rn},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+SU+"&dc_pubid="+Rn+"&dc_exteid="+YB+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Rn+";dc_exteid="+YB+";met="+Rn+";ecn"+Rn+"="+Rn+";etm1="+Rn+";eid1="+HO+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
Rn+";dc_exteid="+YB+";met="+Rn+";ecn"+Rn+"="+Rn+";etm1="+Rn+";eid1="+MF+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Rn+";dc_exteid="+YB+";met="+Rn+";ecn"+Rn+"="+Rn+";etm1="+Rn+";eid1="+HO+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Rn+";dc_exteid="+YB+";met="+Rn+";ecn"+Rn+"="+Rn+";etm1="+Rn+";eid1="+MF+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+x+"____________"+A+"AxAA&sigh="+I+"&cid="+w+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Rn+";dc_exteid="+YB+";met="+Rn+";ecn"+Rn+"="+Rn+";etm1="+Rn+";eid1="+HO+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:lL,
commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+x+"____________"+A+"AxAA&ase=2&num="+Rn+"&cid="+w+"&ad_cpn=%5BAD_CPN%5D&sig="+G+"&adurl="+Vl+"&label=video_click_to_advertiser_site&ctype="+vO+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+x+"____________"+A+"AxAA&ase=2&num="+Rn+"&cid="+w+"&ad_cpn=%5BAD_CPN%5D&sig="+G+"&adurl="+Vl+"&label=video_click_to_advertiser_site&ctype="+
vO+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},csiParameters:[{key:"ad_at",value:"15_2_1"}],playerVars:"suppress_creator_endscreen=1&is_trueview_action=1&length_seconds=15",playerOverlay:{instreamAdPlayerOverlayRenderer:{skipOrPreviewRenderer:{skipAdRenderer:{preskipRenderer:{adPreviewRenderer:{thumbnail:{thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+I+"/mqdefault.jpg",width:320,height:180}]},trackingParams:Ri+"="},trackingParams:Ri+
"=",templatedCountdown:{templatedAdText:{text:AP,isTemplated:!0,trackingParams:Ri+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:DS,isTemplated:!1,trackingParams:Ri+"="},trackingParams:Ri+"="}},trackingParams:Ri+"=",skipOffsetMilliseconds:5E3}},trackingParams:Ri+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:Zd},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:lL,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
x+"____________"+A+"AxAA&ase=2&num="+Rn+"&cid="+w+"&ad_cpn=%5BAD_CPN%5D&sig="+G+"&adurl="+Vl+"&label=video_click_to_advertiser_site&ctype="+vO+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+x+"____________"+A+"AxAA&ase=2&num="+Rn+"&cid="+w+"&ad_cpn=%5BAD_CPN%5D&sig="+G+"&adurl="+Vl+"&label=video_click_to_advertiser_site&ctype="+vO+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:Ri+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:Sk,isTemplated:!1,trackingParams:Ri+"="},trackingParams:Ri+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:Zd,isTemplated:!0,trackingParams:Ri+"="}},trackingParams:Ri+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:lL,openPopupAction:{popup:{aboutThisAdRenderer:{url:(sV.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+b+"&hl="+rI+"&origin=www.youtube.com&ata_theme="+ye,sV),trackingParams:Ri+"="}},popupType:"DIALOG"}},icon:{iconType:"INFO_OUTLINE"},trackingParams:Ri+"="}},hoverText:{runs:[{text:s_}]},trackingParams:Ri+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+b5+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:Ri+"="},headline:{text:AP,isTemplated:!1,trackingParams:Ri+"="},description:{text:Sk,
trackingParams:Ri+"="},actionButton:{buttonRenderer:{text:{simpleText:ye},navigationEndpoint:{clickTrackingParams:lL,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+MR+";dc_trk_cid="+MR+";dc_dbm_token="+B+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Rn+";ord="+MR+";dc_rui="+Rn+";dc_exteid="+YB+";dc_av="+Rn+";dc_sk="+Rn+";dc_ctype="+HO+";dc_pubid="+Rn+";dc_btype=3?gclid="+Jr+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
x+"____________"+A+"AxAA&ase=2&num="+Rn+"&cid="+w+"&ad_cpn=%5BAD_CPN%5D&sig="+G+"&adurl="+Vl+"&label=video_click_to_advertiser_site&ctype="+vO+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+x+"____________"+A+"AxAA&ase=2&num="+Rn+"&cid="+w+"&ad_cpn=%5BAD_CPN%5D&sig="+G+"&adurl="+Vl+"&label=video_click_to_advertiser_site&ctype="+vO+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:Ri+"="}},startMs:Rn,trackingParams:Ri+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:s_},elementId:AP}},elementId:Sk,trackingParams:Ri+"=",legacyInfoCardVastExtension:SU,sodarExtensionData:{siub:SU,bgub:Cd,scs:SU,bgp:Np},externalVideoId:S$,adLayoutLoggingData:{serializedAdServingDataEntry:S$},layoutId:"ZI7I3u4qvI4LVKlq"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+b5+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:Ri+"="},
headline:{text:Sk,isTemplated:!1,trackingParams:Ri+"="},description:{text:AP,isTemplated:!1,trackingParams:Ri+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:AP},navigationEndpoint:{clickTrackingParams:lL,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+MR+";dc_trk_cid="+MR+";dc_dbm_token="+B+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Rn+";ord="+MR+";dc_rui="+Rn+";dc_exteid="+
YB+";dc_av="+Rn+";dc_sk="+Rn+";dc_ctype="+HO+";dc_pubid="+Rn+";dc_btype=3?gclid="+Jr+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+x+"____________"+A+"AxAA&ase=2&num="+Rn+"&cid="+w+"&ad_cpn=%5BAD_CPN%5D&sig="+G+"&adurl="+Vl+"&label=video_click_to_advertiser_site&ctype="+vO+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+x+"____________"+A+"AxAA&ase=2&num="+
Rn+"&cid="+w+"&ad_cpn=%5BAD_CPN%5D&sig="+G+"&adurl="+Vl+"&label=video_click_to_advertiser_site&ctype="+vO+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Ri+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:Ri+"="}},navigationEndpoint:{clickTrackingParams:lL,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+MR+";dc_trk_cid="+
MR+";dc_dbm_token="+B+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Rn+";ord="+MR+";dc_rui="+Rn+";dc_exteid="+YB+";dc_av="+Rn+";dc_sk="+Rn+";dc_ctype="+HO+";dc_pubid="+Rn+";dc_btype=3?gclid="+Jr+"&ase=2"},{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+x+"____________"+A+"AxAA&sigh="+I+"&cid="+w+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+x+"____________"+
A+"AxAA&ase=2&num="+Rn+"&cid="+w+"&ad_cpn=%5BAD_CPN%5D&sig="+G+"&adurl="+Vl+"&label=video_click_to_advertiser_site&ctype="+vO+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+x+"____________"+A+"AxAA&ase=2&num="+Rn+"&cid="+w+"&ad_cpn=%5BAD_CPN%5D&sig="+G+"&adurl="+Vl+"&label=video_click_to_advertiser_site&ctype="+vO+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:Ri+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:Ri+"="},abandonCommands:{commands:[{clickTrackingParams:lL,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+x+"____________"+A+"AxAA&sigh="+I+"&cid="+w+"&label=video_abandon&ad_mt=[AD_MT]&ad_tos=[AD_TOS]&ad_wat=[AD_WAT]&final=[FINAL]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Rn+";dc_exteid="+YB+";met="+Rn+";ecn"+
Rn+"="+Rn+";etm1="+Rn+";eid1="+HO+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:lL,commandExecutorCommand:{commands:[{clickTrackingParams:lL,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+x+"____________"+A+"AxAA&sigh="+I+"&cid="+w+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},skipButton:{skipButtonRenderer:{message:{text:Zd,isTemplated:!1,trackingParams:Ri+
"="},trackingParams:Ri+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:Ii},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+x+"____________"+A+"AxAA&sigh="+I+"&cid="+w+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Rn+";dc_exteid="+YB+";met="+Rn+";ecn"+Rn+"="+Rn+";etm1="+Rn+";eid1="+LT+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],layoutId:"1ID7Gdwk2vV7OZ1A"}},
{instreamVideoAdRenderer:{skipOffsetMilliseconds:5E3,pings:{impressionPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackimp/N1957659.127733GOOGLE-YOUTUBE/B29940965.366940103;dc_trk_aid="+MR+";dc_trk_cid="+MR+";ord="+se+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Rn+";dc_rui="+Rn+";dc_exteid="+YB+";dc_av="+vO+";dc_sk="+Rn+";dc_ctype="+HO+";dc_ref=http://www.youtube.com/video/"+S$+";dc_pubid="+Rn+";dc_btype=23?gclid="+Jr+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},
{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+x+"____________"+A+"AxAA&sigh="+S$+"&cid="+w+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+Rn+"&ns="+Rn+"&event="+Rn+"&device="+Rn+"&content_v="+I+"&el="+AP+"&ei="+l+"&devicever="+E+"&bti="+LT+"&format="+MF+"&break_type="+Rn+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+Rn+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+BO+"&slot_pos="+Rn+"&slot_len="+Rn+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+
DV+"&ad_len="+Aa+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+S$+"&aqi="+l+"&ad_rmp="+Rn+"&sli="+Rn}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+x+"____________"+A+"AxAA&sigh="+S$+"&cid="+w+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+x+"____________"+A+"AxAA&sigh="+S$+"&cid="+w+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
Rn+";dc_exteid="+YB+";met="+Rn+";ecn"+Rn+"="+Rn+";etm1="+Rn+";eid1="+HO+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+x+"____________"+A+"AxAA&sigh="+S$+"&cid="+w+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Rn+";dc_exteid="+YB+";met="+Rn+";ecn"+Rn+"="+Rn+";etm1="+Rn+";eid1="+MF+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+x+"____________"+A+"AxAA&sigh="+S$+"&cid="+w+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Rn+";dc_exteid="+YB+";met="+Rn+";ecn"+Rn+"="+Rn+";etm1="+Rn+";eid1="+HO+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+x+"____________"+A+"AxAA&sigh="+S$+"&cid="+
w+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+x+"____________"+A+"AxAA&sigh="+S$+"&cid="+w+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Rn+";dc_exteid="+YB+";met="+Rn+";ecn"+Rn+"="+Rn+";etm1="+Rn+";eid1="+HO+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
x+"____________"+A+"AxAA&sigh="+S$+"&cid="+w+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Rn+";dc_exteid="+YB+";met="+Rn+";ecn"+Rn+"="+Rn+";etm1="+Rn+";eid1="+LT+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+x+"____________"+A+"AxAA&sigh="+S$+"&cid="+w+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+x+"____________"+A+"AxAA&sigh="+S$+"&cid="+w+"&label=video_skip_shown&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]",offsetMilliseconds:5E3},{baseUrl:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+x+"____________"+A+"AxAA&ase=2&num="+Rn+"&cid="+w+"&ad_cpn=%5BAD_CPN%5D&sig="+G+"&adurl="+Vl+"&ctype="+vO+"&ms=[CLICK_MS]&label=video_10s_engaged_view&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=",offsetMilliseconds:1E4,
attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+x+"____________"+A+"AxAA&ase=2&num="+Rn+"&cid="+w+"&ad_cpn=%5BAD_CPN%5D&sig="+G+"&adurl="+Vl+"&label=video_engaged_view&ctype="+vO+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Rn+";dc_exteid="+YB+";met="+Rn+";ecn"+Rn+"="+Rn+";etm1="+Rn+";eid1="+MF+";?",offsetMilliseconds:15E3}],
fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+x+"____________"+A+"AxAA&sigh="+S$+"&cid="+w+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Rn+";dc_exteid="+YB+";met="+Rn+";ecn"+Rn+"="+Rn+";etm1="+Rn+";eid1="+HO+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+t+"&sig="+JW+"&ad_cpn=[AD_CPN]&id="+
SU+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+SU+"&dc_pubid="+Rn+"&dc_exteid="+YB+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+x+"____________"+A+"AxAA&sigh="+S$+"&cid="+w+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+t+
"&sig="+JW+"&ad_cpn=[AD_CPN]&id="+SU+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+Rn},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+SU+"&avm="+Rn+"&dc_pubid="+Rn+"&dc_exteid="+YB+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+x+"____________"+A+"AxAA&sigh="+S$+"&cid="+w+"&label=video_abandon&ad_mt=[AD_MT]&ad_tos=[AD_TOS]&ad_wat=[AD_WAT]&final=[FINAL]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Rn+";dc_exteid="+YB+";met="+Rn+";ecn"+Rn+"="+Rn+";etm1="+Rn+";eid1="+HO+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+t+"&sig="+JW+"&ad_cpn=[AD_CPN]&id="+SU+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+Rn},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+SU+"&dc_pubid="+Rn+"&dc_exteid="+YB+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Rn+";dc_exteid="+YB+";met="+Rn+";ecn"+Rn+"="+Rn+";etm1="+Rn+";eid1="+HO+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Rn+";dc_exteid="+YB+";met="+Rn+";ecn"+Rn+"="+Rn+";etm1="+Rn+";eid1="+MF+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
Rn+";dc_exteid="+YB+";met="+Rn+";ecn"+Rn+"="+Rn+";etm1="+Rn+";eid1="+HO+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Rn+";dc_exteid="+YB+";met="+Rn+";ecn"+Rn+"="+Rn+";etm1="+Rn+";eid1="+MF+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+x+"____________"+A+"AxAA&sigh="+S$+"&cid="+w+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Rn+";dc_exteid="+YB+";met="+Rn+";ecn"+Rn+"="+Rn+";etm1="+Rn+";eid1="+HO+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:lL,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+x+"____________"+A+"AxAA&ase=2&num="+Rn+"&cid="+w+"&ad_cpn=%5BAD_CPN%5D&sig="+G+"&adurl="+Vl+"&label=video_click_to_advertiser_site&ctype="+
vO+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+x+"____________"+A+"AxAA&ase=2&num="+Rn+"&cid="+w+"&ad_cpn=%5BAD_CPN%5D&sig="+G+"&adurl="+Vl+"&label=video_click_to_advertiser_site&ctype="+vO+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},csiParameters:[{key:"ad_at",value:"15_2_1"}],playerVars:"suppress_creator_endscreen=1&is_trueview_action=1&length_seconds=15",
playerOverlay:{instreamAdPlayerOverlayRenderer:{skipOrPreviewRenderer:{skipAdRenderer:{preskipRenderer:{adPreviewRenderer:{thumbnail:{thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+I+"/mqdefault.jpg",width:320,height:180}]},trackingParams:Ri+"="},trackingParams:Ri+"=",templatedCountdown:{templatedAdText:{text:s_,isTemplated:!0,trackingParams:Ri+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:fb,isTemplated:!1,trackingParams:Ri+"="},trackingParams:Ri+"="}},
trackingParams:Ri+"=",skipOffsetMilliseconds:5E3}},trackingParams:Ri+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:S9},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:lL,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+x+"____________"+A+"AxAA&ase=2&num="+Rn+"&cid="+w+"&ad_cpn=%5BAD_CPN%5D&sig="+G+"&adurl="+Vl+"&label=video_click_to_advertiser_site&ctype="+vO+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+x+"____________"+A+"AxAA&ase=2&num="+Rn+"&cid="+w+"&ad_cpn=%5BAD_CPN%5D&sig="+G+"&adurl="+Vl+"&label=video_click_to_advertiser_site&ctype="+vO+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Ri+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:DS,isTemplated:!1,trackingParams:Ri+"="},trackingParams:Ri+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:AP,
isTemplated:!0,trackingParams:Ri+"="}},trackingParams:Ri+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:lL,openPopupAction:{popup:{aboutThisAdRenderer:{url:(o3.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+b+"&hl="+rI+"&origin=www.youtube.com&ata_theme="+ye,o3),trackingParams:Ri+"="}},popupType:"DIALOG"}},
icon:{iconType:"INFO_OUTLINE"},trackingParams:Ri+"="}},hoverText:{runs:[{text:PT}]},trackingParams:Ri+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+qw+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:Ri+"="},headline:{text:tF,isTemplated:!1,trackingParams:Ri+"="},description:{text:Zd,trackingParams:Ri+"="},actionButton:{buttonRenderer:{text:{simpleText:ye},navigationEndpoint:{clickTrackingParams:lL,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
x+"____________"+A+"AxAA&ase=2&num="+Rn+"&cid="+w+"&ad_cpn=%5BAD_CPN%5D&sig="+G+"&adurl="+Vl+"&label=video_click_to_advertiser_site&ctype="+vO+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+x+"____________"+A+"AxAA&ase=2&num="+Rn+"&cid="+w+"&ad_cpn=%5BAD_CPN%5D&sig="+G+"&adurl="+Vl+"&label=video_click_to_advertiser_site&ctype="+vO+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:Ri+"="}},startMs:Rn,trackingParams:Ri+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:Cd},elementId:Np}},elementId:s_,trackingParams:Ri+"=",legacyInfoCardVastExtension:Ii,sodarExtensionData:{siub:fb,bgub:S9,scs:Sk,bgp:s_},externalVideoId:S$,adLayoutLoggingData:{serializedAdServingDataEntry:s_},layoutId:"OTH1kH5dWmSpUnNw"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+qw+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:Ri+"="},headline:{text:Ii,
isTemplated:!1,trackingParams:Ri+"="},description:{text:s_,isTemplated:!1,trackingParams:Ri+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:Sk},navigationEndpoint:{clickTrackingParams:lL,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+x+"____________"+A+"AxAA&ase=2&num="+Rn+"&cid="+w+"&ad_cpn=%5BAD_CPN%5D&sig="+G+"&adurl="+Vl+"&label=video_click_to_advertiser_site&ctype="+vO+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+x+"____________"+A+"AxAA&ase=2&num="+Rn+"&cid="+w+"&ad_cpn=%5BAD_CPN%5D&sig="+G+"&adurl="+Vl+"&label=video_click_to_advertiser_site&ctype="+vO+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Ri+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:Ri+"="}},navigationEndpoint:{clickTrackingParams:lL,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
x+"____________"+A+"AxAA&sigh="+S$+"&cid="+w+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+x+"____________"+A+"AxAA&ase=2&num="+Rn+"&cid="+w+"&ad_cpn=%5BAD_CPN%5D&sig="+G+"&adurl="+Vl+"&label=video_click_to_advertiser_site&ctype="+vO+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+x+"____________"+A+"AxAA&ase=2&num="+
Rn+"&cid="+w+"&ad_cpn=%5BAD_CPN%5D&sig="+G+"&adurl="+Vl+"&label=video_click_to_advertiser_site&ctype="+vO+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Ri+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:Ri+"="},abandonCommands:{commands:[{clickTrackingParams:lL,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+x+"____________"+A+"AxAA&sigh="+S$+"&cid="+w+"&label=video_abandon&ad_mt=[AD_MT]&ad_tos=[AD_TOS]&ad_wat=[AD_WAT]&final=[FINAL]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Rn+";dc_exteid="+YB+";met="+Rn+";ecn"+Rn+"="+Rn+";etm1="+Rn+";eid1="+HO+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:lL,commandExecutorCommand:{commands:[{clickTrackingParams:lL,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+x+"____________"+A+"AxAA&sigh="+S$+"&cid="+w+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},
skipButton:{skipButtonRenderer:{message:{text:Np,isTemplated:!1,trackingParams:Ri+"="},trackingParams:Ri+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:Np},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+x+"____________"+A+"AxAA&sigh="+S$+"&cid="+w+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Rn+";dc_exteid="+YB+";met="+Rn+";ecn"+Rn+"="+Rn+";etm1="+Rn+";eid1="+
LT+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],layoutId:"x0nw3inGkAJNdtYU"}}],adLayoutMetadata:{layoutId:"kaF8SbSZynKvp81K",layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",adLayoutLoggingData:{serializedAdServingDataEntry:ye}}}},adSlotLoggingData:{serializedSlotAdServingDataEntry:fb}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:Aa,offsetEndMilliseconds:MF},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",
getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+l+"&m_pos="+HO+"&token=ALHj"+hr+"&index="+Rn+"&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver="+E+"&m_pos_ms="+Aa}},adSlotLoggingData:{serializedSlotAdServingDataEntry:S9}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",
adTimeOffset:{offsetStartMilliseconds:MF,offsetEndMilliseconds:MF},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+l+"&m_pos="+vO+"&token=ALHj"+hr+"&index="+Rn+"&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver="+
E+"&m_pos_ms="+MF}},adSlotLoggingData:{serializedSlotAdServingDataEntry:DS}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:MF,offsetEndMilliseconds:MF},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+l+"&m_pos="+vO+"&token=ALHj"+hr+"&index="+Rn+"&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver="+
E+"&m_pos_ms="+MF}},adSlotLoggingData:{serializedSlotAdServingDataEntry:zX}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:MF,offsetEndMilliseconds:MF},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+l+"&m_pos="+vO+"&token=ALHj"+hr+"&index="+Rn+"&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver="+
E+"&m_pos_ms="+MF}},adSlotLoggingData:{serializedSlotAdServingDataEntry:tF}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:MF,offsetEndMilliseconds:HO},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+l+"&m_pos="+vO+"&token=ALHj"+hr+"&index="+Rn+"&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver="+
E+"&m_pos_ms="+MF}},adSlotLoggingData:{serializedSlotAdServingDataEntry:tF}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_END",adTimeOffset:{offsetStartMilliseconds:HO,offsetEndMilliseconds:HO},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+l+"&m_pos="+HO+"&token=ALHj"+hr+"&index="+Rn+"&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver="+
E+"&m_pos_ms="+HO}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Ii}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:PT,isTemplated:!1,trackingParams:Ri+"="},description:{text:ye,isTemplated:!1,trackingParams:Ri+"="},actionButton:{buttonRenderer:{text:{simpleText:fb},navigationEndpoint:{clickTrackingParams:lL,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
MR+";dc_trk_cid="+MR+";dc_dbm_token="+B+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Rn+";ord="+MR+";dc_rui="+Rn+";dc_exteid="+YB+";dc_av="+Rn+";dc_sk="+Rn+";dc_ctype="+HO+";dc_pubid="+Rn+";dc_btype=3?gclid="+Jr+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+x+"____________"+A+"AxAA&ase=2&num="+Rn+"&cid="+w+"&ad_cpn=%5BAD_CPN%5D&sig="+G+"&adurl="+Vl+"&label=video_click_to_advertiser_site&ctype="+vO+"&ms=[CLICK_MS]",
webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+x+"____________"+A+"AxAA&ase=2&num="+Rn+"&cid="+w+"&ad_cpn=%5BAD_CPN%5D&sig="+G+"&adurl="+Vl+"&label=video_click_to_advertiser_site&ctype="+vO+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Ri+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+b5+"=s88-c-k-c0x00ffffff-no-rj",width:48,
height:48}]},trackingParams:Ri+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+Lb+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:Ri+"="},navigationEndpoint:{clickTrackingParams:lL,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+MR+";dc_trk_cid="+MR+";dc_dbm_token="+B+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Rn+";ord="+MR+
";dc_rui="+Rn+";dc_exteid="+YB+";dc_av="+Rn+";dc_sk="+Rn+";dc_ctype="+HO+";dc_pubid="+Rn+";dc_btype=3?gclid="+Jr+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+x+"____________"+A+"AxAA&ase=2&num="+Rn+"&cid="+w+"&ad_cpn=%5BAD_CPN%5D&sig="+G+"&adurl="+Vl+"&label=video_click_to_advertiser_site&ctype="+vO+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
x+"____________"+A+"AxAA&ase=2&num="+Rn+"&cid="+w+"&ad_cpn=%5BAD_CPN%5D&sig="+G+"&adurl="+Vl+"&label=video_click_to_advertiser_site&ctype="+vO+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Ri+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:lL,openPopupAction:{popup:{aboutThisAdRenderer:{url:(oKw.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+b+"&hl="+rI+"&origin=www.youtube.com&ata_theme="+ye,oKw),trackingParams:Ri+"="}},popupType:"DIALOG"}},trackingParams:Ri+"="}},hoverText:{runs:[{text:S9}]},trackingParams:Ri+"="}},adVideoId:S$,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+x+"____________"+A+"AxAA&sigh="+I+"&cid="+w+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:S9},associatedCompositePlayerBytesLayoutId:S9}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:S$}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:SU,isTemplated:!1,trackingParams:Ri+"="},description:{text:Ac,isTemplated:!1,trackingParams:Ri+"="},actionButton:{buttonRenderer:{text:{simpleText:S$},navigationEndpoint:{clickTrackingParams:lL,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+x+"____________"+
A+"AxAA&ase=2&num="+Rn+"&cid="+w+"&ad_cpn=%5BAD_CPN%5D&sig="+G+"&adurl="+Vl+"&label=video_click_to_advertiser_site&ctype="+vO+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+x+"____________"+A+"AxAA&ase=2&num="+Rn+"&cid="+w+"&ad_cpn=%5BAD_CPN%5D&sig="+G+"&adurl="+Vl+"&label=video_click_to_advertiser_site&ctype="+vO+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:Ri+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+qw+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:Ri+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+BT+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:Ri+"="},navigationEndpoint:{clickTrackingParams:lL,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+x+"____________"+A+"AxAA&ase=2&num="+
Rn+"&cid="+w+"&ad_cpn=%5BAD_CPN%5D&sig="+G+"&adurl="+Vl+"&label=video_click_to_advertiser_site&ctype="+vO+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+x+"____________"+A+"AxAA&ase=2&num="+Rn+"&cid="+w+"&ad_cpn=%5BAD_CPN%5D&sig="+G+"&adurl="+Vl+"&label=video_click_to_advertiser_site&ctype="+vO+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Ri+
"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:lL,openPopupAction:{popup:{aboutThisAdRenderer:{url:(k6.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+b+"&hl="+rI+"&origin=www.youtube.com&ata_theme="+ye,k6),trackingParams:Ri+"="}},popupType:"DIALOG"}},trackingParams:Ri+"="}},
hoverText:{runs:[{text:PT}]},trackingParams:Ri+"="}},adVideoId:S$,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+x+"____________"+A+"AxAA&sigh="+S$+"&cid="+w+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:Sk},associatedCompositePlayerBytesLayoutId:S9}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Ac}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:AP,
isTemplated:!1,trackingParams:Ri+"="},description:{text:SU,isTemplated:!1,trackingParams:Ri+"="},actionButton:{buttonRenderer:{text:{simpleText:Zd},navigationEndpoint:{clickTrackingParams:lL,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+MR+";dc_trk_cid="+MR+";dc_dbm_token="+B+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Rn+";ord="+MR+";dc_rui="+Rn+";dc_exteid="+YB+";dc_av="+Rn+";dc_sk="+Rn+";dc_ctype="+
HO+";dc_pubid="+Rn+";dc_btype=3?gclid="+Jr+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+x+"____________"+A+"AxAA&ase=2&num="+Rn+"&cid="+w+"&ad_cpn=%5BAD_CPN%5D&sig="+G+"&adurl="+Vl+"&label=video_click_to_advertiser_site&ctype="+vO+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+x+"____________"+A+"AxAA&ase=2&num="+Rn+"&cid="+w+"&ad_cpn=%5BAD_CPN%5D&sig="+
G+"&adurl="+Vl+"&label=video_click_to_advertiser_site&ctype="+vO+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Ri+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+b5+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:Ri+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+Lb+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:Ri+
"="},navigationEndpoint:{clickTrackingParams:lL,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+MR+";dc_trk_cid="+MR+";dc_dbm_token="+B+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Rn+";ord="+MR+";dc_rui="+Rn+";dc_exteid="+YB+";dc_av="+Rn+";dc_sk="+Rn+";dc_ctype="+HO+";dc_pubid="+Rn+";dc_btype=3?gclid="+Jr+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
x+"____________"+A+"AxAA&ase=2&num="+Rn+"&cid="+w+"&ad_cpn=%5BAD_CPN%5D&sig="+G+"&adurl="+Vl+"&label=video_click_to_advertiser_site&ctype="+vO+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+x+"____________"+A+"AxAA&ase=2&num="+Rn+"&cid="+w+"&ad_cpn=%5BAD_CPN%5D&sig="+G+"&adurl="+Vl+"&label=video_click_to_advertiser_site&ctype="+vO+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:Ri+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:lL,openPopupAction:{popup:{aboutThisAdRenderer:{url:(Tm.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+b+"&hl="+rI+"&origin=www.youtube.com&ata_theme="+ye,Tm),trackingParams:Ri+"="}},popupType:"DIALOG"}},trackingParams:Ri+
"="}},hoverText:{runs:[{text:ye}]},trackingParams:Ri+"="}},adVideoId:S$,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+x+"____________"+A+"AxAA&sigh="+I+"&cid="+w+"&label=video_companion_reshow_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:Cd},isContentVideoCompanion:!0,associatedCompositePlayerBytesLayoutId:S9}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Sk}}}],adBreakHeartbeatParams:"Q0FBJTNE",frameworkUpdates:{entityBatchUpdate:{mutations:[{entityKey:z8,
type:"ENTITY_MUTATION_TYPE_REPLACE",payload:{offlineabilityEntity:{key:z8,command:{innertubeCommand:{clickTrackingParams:lL,ypcGetOfflineUpsellEndpoint:{params:f2}}},addToOfflineButtonState:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED",contentCheckOk:!1,racyCheckOk:!1,loggingDirectives:{trackingParams:Ri+"=",visibility:{types:"4"},enableDisplayloggerExperiment:!0}}}}],timestamp:{seconds:se,nanos:kR}}}},$Yo=JSON.stringify(of),Gm=performance.now()-F;return{objectRepresentation:of,jsonRepresentation:$Yo,generationTime:Gm}};
zBb=function(F,W){if(F===W)return!0;if(!F||!W||typeof F!==typeof W)return!1;if(F instanceof Array&&W instanceof Array){if(F.length!==W.length)return!1;for(var E=0;E<F.length;E++)if(!zBb(F[E],W[E]))return!1;return!0}if(typeof F==="object"&&typeof W==="object"&&F&&W){for(E in F)if(!(E in W&&zBb(F[E],W[E])))return!1;for(var h in W)if(!(h in F))return!1;return!0}return!1};
_.Nz=function(){if(!d2){d2=new Q$(new t8e);var F=_.dV("client_streamz_web_flush_count",-1);F!==-1&&(d2.invocationLimit=F)}return d2};
Vc=function(F,W,E,h){if(F===W)return!0;if(Array.isArray(F)&&Array.isArray(W)){if(F.length!==W.length)return!1;for(var d=0;d<F.length;d++)if(!Vc(F[d],W[d],E,h))return!1;return!0}if(F instanceof Set||W instanceof Set){if(F instanceof Set&&W instanceof Set){if(F.size!==W.size)return!1;h=_.U(F.values());for(d=h.next();!d.done;d=h.next())if(!W.has(d.value))return!1;return!0}return!1}if(F instanceof Function){if(h)return!0;F.name===""&&_.a_(Error("Hf"),"ERROR");return!1}if(F instanceof Date&&W instanceof
Date)return F.getTime()===W.getTime();if(F instanceof Object&&W instanceof Object){if(Cak(F)&&Cak(W))try{return F.equals(W)}catch(R){_.a_(Error("If`"+R),"ERROR")}d=Object.getOwnPropertyNames(F).filter(function(R){return E?F[R]!==void 0:!0});
var V=Object.getOwnPropertyNames(W).filter(function(R){return E?W[R]!==void 0:!0});
if(d.length!==V.length)return!1;d=_.U(d);for(V=d.next();!V.done;V=d.next())if(V=V.value,!Vc(F[V],W[V],E,h))return!1;return!0}return!1};
Cak=function(F){F=Object.getPrototypeOf(F).equals;return F instanceof Function&&F.length===1};
_.IzR=function(){return _.e(function(F){if(F.nextAddress==1)return B_n!==2?F.jumpTo(2):_.Q(F,vEe(),3);F.nextAddress!=2&&(B_n=F.yieldResult);return F.return(B_n)})};
_.xXn=function(){return _.e(function(F){if(F.nextAddress==1)return _.c("ab_pl_man")?clo!==2?F.jumpTo(2):_.Q(F,DXW(),3):F.return(1);F.nextAddress!=2&&(clo=F.yieldResult);return F.return(clo)})};
svW=function(){return _.e(function(F){if(F.nextAddress==1)return _.c("ab_fk_sk_cl")?kSo!==2?F.jumpTo(2):_.Q(F,AlG(),3):F.return(1);F.nextAddress!=2&&(kSo=F.yieldResult);return F.return(kSo)})};
_.$XS=function(){return _.e(function(F){if(F.nextAddress==1)return _.c("ab_det_apb_b")?LoY!==2?F.jumpTo(2):_.Q(F,qkI(),3):F.return(1);F.nextAddress!=2&&(LoY=F.yieldResult);return F.return(LoY)})};
Hyk=function(){var F;return _.e(function(W){if(W.nextAddress==1)return _.Q(W,Promise.all([_.IzR(),_.$XS(),_.xXn(),svW()]),2);if(W.nextAddress!=3)return ZyY()?W.return(!0):_.Q(W,_.X2I(),3);F=W.yieldResult;return W.return(F===0)})};
ZyY=function(){var F=!1,W=function(E,h){Pao.increment(h,E);E===0&&(F=!0)};
W(_.Jln(),"j.s_");W(B_n,"f.i_");W(LoY,"a.b_");W(clo,"p.m_");W(kSo,"i.f_");azn===2&&(azn=_.fzn(_.gEY(OyG)));W(azn,"e.h_");_.c("ks_det_gpbl")||W(_.byG(),"p.i_");_.c("ks_get_o_pp")||W(_.lzR(),"g.o_");_.c("ab_deg_unex_thr")||W(_.nEY(),"a.o_");W(ylr,"s.t_");_.c("ab_det_sc_inj_enf")&&W(_.jvr(),"s.i_");W(iyw,"d.p_");W(_.rlW(_.Uh),"o.p_");W(_.T_n()===0?0:_.oEr(),"o.a_");return _.c("debug_sk_em_precheck")?!0:F};
YkY=function(){var F=[].concat(_.x9(GSY));try{var W=hg();F.push({jsonRepresentation:W.jsonRepresentation,objectRepresentation:W.objectRepresentation})}catch(E){F=[].concat(_.x9(GSY))}return F};
w2W=function(){var F=["adPlacements","adSlots"];try{return F.filter(function(){return!0}).length!==F.length?0:1}catch(W){return 0}};
_.lzR=function(){if(w2W()===0)return 0;var F=hg(),W=F.objectRepresentation,E=(0,_.xd.unsafeClone)(W),h=[];if(W&&typeof W==="object")for(var d in W)h.push(d);else return 4;F=F.objectRepresentation.adPlacements;if(!(F&&F.length>0))return 4;try{if(!zBb(h,Object.getOwnPropertyNames(W)))return 0}catch(V){return 0}return zBb(E,W)?1:0};
_.rlW=function(F){var W=Object.getOwnPropertyNames(Object.prototype);F=_.U(F);for(var E=F.next();!E.done;E=F.next()){E=_.KV(E.value);for(var h=_.U(W),d=h.next();!d.done;d=h.next())if(E===d.value)return 0}return 1};
uBr=function(F){var W=_.KV(F[1]);if(F[0]===null)return W;F=F[0];for(var E={},h=0;h<F.length;h++){var d=_.KV(F[h]);if(h===0)E[d]=W;else{var V={};V[d]=E;E=V}}return E};
_.T_n=function(){for(var F=_.Ro,W=0;W<F.length;W++){var E=uBr(F[W]),h=[];h.push(E);if(h.length===0)return 0}return 1};
_.oEr=function(){for(var F=_.Ro,W={},E=0;E<F.length;W={a3u:void 0},E++){var h=[uBr(F[E])];W.a3u=[];h.forEach(function(d){return function(V){d.a3u[d.a3u.length]=V}}(W));
if(W.a3u.length===0)return 0}return 1};
_.Jln=function(){for(var F=_.U(YkY()),W=F.next();!W.done;W=F.next()){var E=W.value;W=E.jsonRepresentation;E=E.objectRepresentation;try{var h=JSON.parse(W);if(!Vc(h,E,!1,!1))return 0}catch(d){return 0}}return 1};
_.jvr=function(){try{var F=_.Vy("ab_det_sc_inj_val");F.length===1&&F[0]===""&&(F=['json=JSON.parse(text);for(k of["playerAds","adPlacements","adSlots"])']);for(var W=document.querySelectorAll("script"),E=_.U(W),h=E.next();!h.done;h=E.next())for(var d=h.value,V=_.U(F),R=V.next();!R.done;R=V.next()){var M=R.value;W=void 0;if((W=d.textContent)==null?0:W.includes(M))return 0}}catch(g){return 4}return 1};
_.X2I=function(){var F,W,E,h,d,V,R;return _.e(function(M){switch(M.nextAddress){case 1:_.Nl(M,2),F=_.U(GSY),W=F.next();case 4:if(W.done)return M.return(1);h=E=W.value;d=h.jsonRepresentation;V=h.objectRepresentation;return _.Q(M,(new Response(d,{status:200})).json(),7);case 7:R=M.yieldResult;if(!Vc(R,V,!1,!1))return M.return(0);W=F.next();M.jumpTo(4);break;case 2:return _.Ml(M),M.return(4)}})};
_.nEY=function(){try{btoa("abc")}catch(F){return 0}return 1};
vEe=function(){var F,W,E,h,d,V,R,M,g,t,C;return _.e(function(B){switch(B.nextAddress){case 1:_.Nl(B,2),F=_.U(YkY()),W=F.next();case 4:if(W.done)return B.return(1);h=E=W.value;d=h.jsonRepresentation;V=h.objectRepresentation;R=btoa(d);M="data:application/json;base64,"+R;g=new Request(M);Object.defineProperty(g,"url",{get:function(){return"https://www.youtube.com/youtubei/v1/player?key=AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8&prettyPrint=false"}});
Object.defineProperty(g,"method",{get:function(){return"POST"}});
Object.defineProperty(g,"bodyUsed",{get:function(){return!0}});
Object.defineProperty(g,"mode",{get:function(){return"same-origin"}});
Object.defineProperty(g,"body",{get:function(){return new ReadableStream}});
return _.Q(B,fetch(g),7);case 7:return t=B.yieldResult,_.Q(B,t.json(),8);case 8:C=B.yieldResult;if(!Vc(C,V,!1,!1))return B.return(0);W=F.next();B.jumpTo(4);break;case 2:return _.Ml(B),B.return(4)}})};
_.fzn=function(F){var W=_.U(F);F=W.next().value;W=W.next().value;try{var E=document.createElement("div");document.body.appendChild(E);var h=getComputedStyle(E).display;document.body.removeChild(E);if(h==="none")return 4;var d=getComputedStyle(W).display==="none"?0:1;document.body.removeChild(F);return d}catch(V){return 4}};
AlG=function(){var F,W,E;return _.e(function(h){F=new _.eR;W=document.createElement("button");W.classList.add("ytp-ad-skip-button");W.style.opacity="0";W.style.height="0px";W.style.width="0px";W.style.padding="0px";W.style.border="none";E=function(){W.parentElement&&W.parentElement.removeChild(W)};
W.onclick=function(){F.resolve(0);E()};
document.body.appendChild(W);setTimeout(function(){E();F.resolve(1)},50);
return h.return(F.promise)})};
DXW=function(){var F,W,E,h,d,V,R;return _.e(function(M){F=new _.eR;W=document.createElement("ytd-player");try{document.body.prepend(W)}catch(g){return M.return(4)}E=function(){W.parentElement&&W.parentElement.removeChild(W)};
W.getElementsByTagName("div").length>0?h=W.getElementsByTagName("div")[0]:(h=document.createElement("div"),W.appendChild(h));d=document.createElement("div");h.appendChild(d);V=document.createElement("video");R=new Blob([new Uint8Array([26,69,223,163,159,66,134,129,1,66,247,129,1,66,242,129,4,66,243,129,8,66,130,132,119,101,98,109,66,135,129,4,66,133,129,2,24,83,128,103,1,255,255,255,255,255,255,255,21,73,169,102,153,42,215,177,131,15,66,64,77,128,134,67,104,114,111,109,101,87,65,134,67,104,114,111,
109,101,22,84,174,107,169,174,167,215,129,1,115,197,135,207,96,156,234,24,157,175,131,129,1,85,238,129,1,134,133,86,95,86,80,56,224,138,176,129,1,186,129,1,83,192,129,1,31,67,182,117,1,255,255,255,255,255,255,255,231,129,0,160,204,161,162,129,0,0,0,16,2,0,157,1,42,1,0,1,0,11,199,8,133,133,136,153,132,136,63,130,0,12,13,96,0,254,229,106,0,117,161,165,166,163,238,129,1,165,158,16,2,0,157,1,42,1,0,1,0,11,199,8,133,133,136,153,132,136,63,130,0,12,13,96,0,254,232,120,0,160,187,161,152,129,3,233,0,177,
1,0,47,17,252,0,24,0,48,63,244,12,0,0,0,254,229,106,0,117,161,155,166,153,238,129,1,165,148,177,1,0,47,17,252,0,24,0,48,63,244,12,0,0,0,254,232,120,0,251,129,0,160,188,161,152,129,7,208,0,177,1,0,47,17,252,0,24,0,48,63,244,12,0,0,0,254,229,106,0,117,161,155,166,153,238,129,1,165,148,177,1,0,47,17,252,0,24,0,48,63,244,12,0,0,0,254,232,120,0,251,130,3,233])],{type:"video/webm"});V.src=_.ty(_.cp(R));V.ontimeupdate=function(){E();F.resolve(0)};
d.appendChild(V);V.classList.add("html5-main-video");setTimeout(function(){d.classList.add("ad-interrupting")},200);
setTimeout(function(){E();F.resolve(1)},5E3);
return M.return(F.promise)})};
Skb=function(F,W){var E,h;return _.e(function(d){switch(d.nextAddress){case 1:E=[],h=0;case 2:if(!(h<3)){d.jumpTo(4);break}return _.Q(d,fetch(F,{cache:"no-store",method:W}).then(function(V){E.push(V.status)}).catch(function(){E.push(-1)}),3);
case 3:h++;d.jumpTo(2);break;case 4:return d.return(E)}})};
p2o=function(F){return F.domainLookupStart===0&&F.domainLookupEnd===0&&F.connectStart===0&&F.connectEnd===0};
mXR=function(F,W,E){E=E===void 0?"GET":E;var h,d,V,R,M,g,t,C,B,I;return _.e(function(x){if(x.nextAddress==1)return _.Q(x,Promise.all([Skb(F,E),Skb(W,E)]),2);h=x.yieldResult;d=_.U(h);V=d.next().value;R=d.next().value;M=V;g=R;if(Math.min.apply(Math,_.x9(g))!==Math.max.apply(Math,_.x9(g))||Math.min.apply(Math,_.x9(M))!==Math.max.apply(Math,_.x9(M)))return x.return(2);if(Math.min.apply(Math,_.x9(g))===Math.min.apply(Math,_.x9(M)))return x.return(1);C=(t=performance.getEntriesByName(F))==null?void 0:t[0];
I=(B=performance.getEntriesByName(W))==null?void 0:B[0];return C&&I?p2o(I)?x.return(1):p2o(C)?x.return(0):x.return(1):x.return(2)})};
qkI=function(){var F;return _.e(function(W){var E=[];var h;var d,V,R;(d=h=(d=hg().objectRepresentation.streamingData)==null?void 0:(V=d.formats)==null?void 0:(R=V[0])==null?void 0:R.url)&&d&&!h.match(/&pfa=|yt_premiere_broadcast|yt_live_broadcast/)?(d=d.replace("initcwndbps","ctier=L&initcwndbps"),d=d.replace("%2Crequiressl%2C","%2Crequiressl%2Cctier%2C"),h={testUrl:d,baseUrl:h,method:"GET"}):h=void 0;h&&E.push(h);_.c("ab_net_tp_e")&&E.push({testUrl:_.EY.location.origin+"/ad_companion",baseUrl:_.EY.location.origin+
"/generate_204",method:"OPTIONS"});if(_.c("ad_net_pb_ab")){var M;b:{h=/api\/stats\/ads/;var g,t,C,B;d=(M=hg().objectRepresentation.adPlacements)==null?void 0:(g=M[0])==null?void 0:(t=g.adPlacementRenderer)==null?void 0:(C=t.renderer)==null?void 0:(B=C.linearAdSequenceRenderer)==null?void 0:B.linearAds;if(d!=null&&d.length&&(M=_.D(d[0],Kok))&&(M=M.pings,M!=null&&M.impressionPings))for(g=[].concat(_.x9(M.impressionPings)),M.progressPings&&(g=[].concat(_.x9(g),_.x9(M.progressPings))),M=_.U(g),g=M.next();!g.done;g=
M.next())if(g=g.value,g.baseUrl&&h.test(g.baseUrl)){M=g.baseUrl.replace("https://www.youtube.com","");break b}M=void 0}M&&E.push({testUrl:_.EY.location.origin+M,baseUrl:_.EY.location.origin+"/feed/download",method:"GET"})}if(_.c("ad_net_pb_pbp")){var I;b:{M=/api\/stats\/qoe/;if(g=hg().objectRepresentation.playbackTracking){t=[];t.push(g==null?void 0:(I=g.videostatsPlaybackUrl)==null?void 0:I.baseUrl);var x;t.push(g==null?void 0:(x=g.videostatsDelayplayUrl)==null?void 0:x.baseUrl);var A;t.push(g==
null?void 0:(A=g.videostatsWatchtimeUrl)==null?void 0:A.baseUrl);var X;t.push(g==null?void 0:(X=g.ptrackingUrl)==null?void 0:X.baseUrl);var P;t.push(g==null?void 0:(P=g.qoeUrl)==null?void 0:P.baseUrl);var b;t.push(g==null?void 0:(b=g.atrUrl)==null?void 0:b.baseUrl);I=_.U(t);for(x=I.next();!x.done;x=I.next())if((x=x.value)&&M.test(x)){I=x.replace("https://www.youtube.com","").replace("https://s.youtube.com","");break b}}I=void 0}I&&E.push({testUrl:_.EY.location.origin+I,baseUrl:_.EY.location.origin+
"/feed/download",method:"GET"})}E=E.length!==0?E[Math.floor(Math.random()*E.length)]:void 0;return(F=E)?W.return(mXR(F.testUrl,F.baseUrl,F.method)):W.return(4)})};
_.byG=function(){if(_.EY.i9k===void 0||_.EY.i9k===null||typeof _.EY.i9k!=="function")return 2;try{return _.EY.i9k()===!0?0:1}catch(F){return 0}};
F2G=function(F){switch(F){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:_.RO(F,"unknown result type")}};
_.W2Y=function(F,W){var E=Number(_.b0("CATSTAT",0));if(W.pvi===void 0)return E;W=W.pvi;F=F2G(F);return E&~(3<<W)|F<<W};
EgR=function(F){var W,E;if((F=(W=F.auxiliaryUi)==null?void 0:(E=W.messageRenderers)==null?void 0:E.bkaEnforcementMessageViewModel)&&F.displayType==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER")return F};
d4e=function(){for(var F=_.U(Object.values(_.hJb)),W=F.next();!W.done;W=F.next())W=W.value,W.isAsync&&W.pvi&&_.OG("CATSTAT",_.W2Y(2,W))};
_.zB=function(F,W){F=_.Mz("FLOW_EVENT_NAMESPACE_ADBLOCK_ENFORCEMENT",F);(W===void 0?0:W)?_.N5n(F,"FLOW_TYPE_ADBLOCK_ENFORCEMENT"):_.g2(_.Qc(),F,"FLOW_TYPE_ADBLOCK_ENFORCEMENT")};
U4o=function(){if(!VBo){if(Polymer.Base){var F=Polymer.Base.createdCallback;Polymer.Base.createdCallback=function(){try{F.apply(this,arguments)}catch(B){_.nW(B)}};
var W=Polymer.Base.attachedCallback;Polymer.Base.attachedCallback=function(){try{W.apply(this,arguments)}catch(B){_.nW(B)}};
var E=Polymer.Base.detachedCallback;Polymer.Base.detachedCallback=function(){try{E.apply(this,arguments)}catch(B){_.nW(B)}};
var h=Polymer.Base.attributeChangedCallback;Polymer.Base.attributeChangedCallback=function(){try{h.apply(this,arguments)}catch(B){_.nW(B)}};
var d=Polymer.Base._listen,V=new WeakMap;Polymer.Base._listen=function(B,I,x){var A=function(){try{x.apply(this,arguments)}catch(X){_.nW(X)}};
V.set(x,A);d.call(this,B,I,A)};
var R=Polymer.Base._unlisten;Polymer.Base._unlisten=function(B,I,x){R.call(this,B,I,V.get(x))}}if(Polymer.Async){var M=Polymer.Async,g=M._atEndOfMicrotask;
M._atEndOfMicrotask=function(){try{g.apply(M,arguments)}catch(B){_.nW(B)}}}if(Polymer.RenderStatus){var t=Polymer.RenderStatus,C=t.afterNextRender;
t.afterNextRender=function(B,I,x){C.call(t,B,function(){try{I.apply(this,arguments)}catch(A){_.nW(A)}},x)}}VBo=!0}};
_.tg=function(F){var W=F?_.gV(F):"";if(W){if(W.indexOf("/channel/UCrpQ4p1Ql_hG8rKXIKM1MOQ")===0)return"fashion";if(W.indexOf("/channel/UC4R8DWoMoI7CAwX8_LjQHig")===0)return"live";if(W.indexOf("/channel/UCEgdi0XIXXZ-qJOFPf4JSKw")===0)return"sports";if(W.indexOf("/channel/UCYfdidRxbB8Qhf0Nx7ioOYw")===0)return"news";if(W.indexOf("/channel/UCtFRv9O2AHqOZjjynzrv-xg")===0)return"learning";if(W.indexOf("/channel/UC-9-kyTW8ZkZNDHQJ6FgpwQ")===0)return"music";W=W.toLowerCase();if(W==="/")return"home";if(W===
"/channel_memberships")return"channel-memberships-shopfront";if(W.indexOf("/feed/trending")===0)return"trending";if(W.indexOf("/feed/explore")===0)return"explore";if(W.indexOf("/live")===0)return"live";if(W.indexOf("/results")===0)return"search";if(W.indexOf("/sports")===0)return"sports";if(W.indexOf("/fashion")===0||W.indexOf("/feed/fashion_destination")===0)return"fashion";if(/^\/(news)|(feed\/news_destination)|(@news)(\/.*)?$/.test(W))return"news";if(/^\/(learning)|(@learning)(\/.*)?$/.test(W))return"learning";
if(W.indexOf("/channel/")===0||W.indexOf("/user/")===0||W.indexOf("/gaming")===0||W.indexOf("/post/")===0)return"channel";if(RJn(F))return"show";if(W==="/playlist"||W.indexOf("/playlist/")===0||W==="/view_play_list"||W.indexOf("/view_play_list/")===0||W.indexOf("/show/")===0)return"playlist";if(W==="/feed/history"||W.indexOf("/feed/history/")===0)return"history";if(W==="/new")return"labs";if(W==="/feed/subscriptions")return"subscriptions";if(W.indexOf("/feed/subscriptions/")===0)return"filteredsubscriptions";
if(W==="/history_controls")return"standalone";if(W.indexOf("/account")===0||W==="/gaia_link")return"WEB_PAGE_TYPE_SETTINGS";if(W.indexOf("/paid_memberships")===0||W.indexOf("/refund")===0||W.indexOf("/purchases")===0||W.indexOf("/feed/purchases")===0)return"memberships-and-purchases";if(W.indexOf("/product")===0)return"yts-products";if(W.indexOf("/premium")===0||W.indexOf("/musicpremium")===0)return W.indexOf("/premium/offers")===0||W.indexOf("/musicpremium/offers")===0?"ypc-offers":"red";if(W===
"/cart/checkout"||W==="/cart")return"ypc-checkout";if(W.indexOf("/feed/downloads")===0||W.indexOf("/redeem")===0||W.indexOf("/reporthistory")===0)return"browse";if(W.indexOf("/hashtag")===0)return"hashtag-landing-page";if(W.indexOf("/handle")===0)return"handle";if(W.indexOf("/source")===0)return"audio-pivot";if(W.search(RegExp("^/playables/(?!saved)."))===0)return"mini_app";if(W.indexOf("/playables")===0)return"playables";if(W.indexOf("/create/live/join")===0)return"open-in-app";if(W.indexOf("/shorts")===
0)return"shorts";if(W.indexOf("/feed/channels")===0)return"subscriptions-channels";(W=F?_.gV(F):"")&&W.indexOf("/watch")===0&&_.c("web_watch_enable_learning_journey")?(F=_.Gk(F),F=!!F.list&&F.list.indexOf("LJPP")===0):F=!1;if(F)return"learning_journey_watch"}};
_.Cf=function(F){var W,E;(F=(E=_.D(F==null?void 0:F.commandMetadata,_.m1))==null?void 0:E.url)&&(W=_.tg(F));return W};
RJn=function(F){var W=F?_.gV(F):"";if(!W)return!1;W=W.toLowerCase();return W.indexOf("/show/")===0||W.indexOf("/playlist")===0&&(F=_.Gk(F),F.list&&F.list.indexOf("EL")===0)?!0:!1};
Io=function(F){var W="unknown",E;var h=((E=_.D(F==null?void 0:F.commandMetadata,_.m1))==null?void 0:E.webPageType)||"";h?(E=h.toLowerCase(),E.startsWith("web_page_type_")&&(E=E.slice(14))):E=h;E&&eJe[E.toUpperCase()]?W=eJe[E.toUpperCase()]:_.D(F,_.BB)||_.D(F,MBY)?W="browse":_.D(F,_.vB)?W="search":_.D(F,_.GM)&&(W="watch");W==="watch"&&_.Cf(F||null)==="learning_journey_watch"&&(W="learning_journey_watch");W==="unknown"&&_.OB(Error("Kf`"+JSON.stringify({clickTrackingParams:F==null?void 0:F.clickTrackingParams,
commandMetadata:F==null?void 0:F.commandMetadata,allEndpointKeys:Object.keys(F||[])})));return W};
_.cB=function(F){if(!_.ggS||F)_.ggS=_.eU();return _.ggS};
_.Q9R=function(F){return!!_.D(F,_.GM)||!!_.D(F,_.DP)&&_.c("kevlar_enable_shorts_prefetch")};
_.zJR=function(F,W){F=_.D(F,_.GM)||_.D(F,_.DP);return"v"+F.videoId+(F.playlistId?"-pl"+F.playlistId:"")+(W?"-an1":"")+(F.params?"-pr"+F.params:"")};
CDI=function(F){var W=_.dV("web_pbj_log_warning_rate",0);W=W>0&&Math.random()<W;if(!_.D(F,_.DP))return W&&_.OB(Error("Nf")),!1;var E;return _.c("shorts_controller_retrieve_seedless_sequence_v2")&&((E=_.D(F,_.DP))==null?void 0:E.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?!0:tBI(F)?!0:(W&&_.OB(Error("Of")),!1)};
tBI=function(F){var W=(_.D(F,_.GM)||_.D(F,_.DP)).videoId;if(!W||!B5Y.test(W))return!1;var E;return(F=(E=_.D(F.commandMetadata,_.m1))==null?void 0:E.url)&&(F.includes(W)||F.startsWith("/clip"))?!0:!1};
_.IWS=function(){var F=_.Ij();return F.getFlag(192)?F.getFlag(190):!(_.c("web_watch_cinematics_disabled_by_default")||_.c("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&vgY())};
_.xu=function(F,W,E){var h={};h.currentUrl=W;h.vis=F.vis!==void 0?F.vis:0;h.splay=!1;W=_.Ij();h.autoCaptionsDefaultOn=W.getFlag(66);W.getFlag(141)?W.getFlag(140)?h.autonavState="STATE_OFF":h.autonavState="STATE_ON":h.autonavState="STATE_NONE";h.html5Preference="HTML5_PREF_WANTS";isNaN(_.b0("STS"))||(h.signatureTimestamp=_.b0("STS"));F.autonav&&(h.autoplay=!0,h.autonav=!0);F.mutedAutoplay&&(h.autoplay=!0,h.mutedAutoplay=!0);F.inlinePlayback&&(h.autoplay=!0,h.autonav=!1,h.isInlineUnmutedPlayback=!!F.inlineUnmuted);
h.referer=E;h.lactMilliseconds=F.lact!==void 0?F.lact.toString():"-1";_.c("enable_unknown_lact_fix_on_html5")&&h.lactMilliseconds==="-1"&&_.OB(new _.xC("Unknown LACT is set in playbackContext.",{"lact in tempData":F.lact||"undefined",autonav:F.autonav||"undefined"}));F={};W.getFlag(194)&&(F.hasShownAmbientMode=!0);W.getFlag(192)&&(F.hasToggledOffAmbientMode=!0);_.IWS()&&(F.watchAmbientModeEnabled=!0);h.watchAmbientModeContext=F;return h};
cqo=function(F){var W={},E=F.pbis||0;E&&(W.playbackBeginsInSeconds=E);F.prefetch_reason&&F.prefetch_reason==="hc_pbis"&&(W.prefetchReason="PREFETCH_REASON_HINT_CONFIG_PLAYBACK_BEGINS_IN_SECONDS");return W};
_.D4r=function(F){var W=new ku(_.b0("ONE_PICK_URL",""));W.urlParamMap_.set("hostId",F);(F=_.b0("GAPI_LOCALE"))&&W.urlParamMap_.set("hl",F);(F=_.b0("SESSION_INDEX"))&&W.urlParamMap_.set("authuser",F);(F=_.b0("DELEGATED_SESSION_ID"))&&W.urlParamMap_.set("groupId",F);return W};
kfY=function(){var F=_.WZ(),W=F.resolve(_.Ag);F=F.resolve(_.sh);return new x4o(W,F)};
s9n=function(F){if(window.IntersectionObserver)return new AqS(F,400);throw new TypeError("Vf");};
qze=function(){var F=Hammer.TouchAction,W=F.prototype.preventDefaults;F.prototype.preventDefaults=function(E){var h=this.actions.indexOf("pan-down")>-1;if(!h)return W.call(this,E);if(!L2r){var d=E.srcEvent;E=E.direction;var V;if((V=this.manager)==null?0:V.session.prevented)d.preventDefault();else if(h&&E&Hammer.DIRECTION_DOWN)return this.preventSrc(d)}}};
$4w=function(F){if(!F||F.size===0)return Hammer.DIRECTION_ALL;if(F.size===2){if(F.has("up")&&F.has("down"))return Hammer.DIRECTION_VERTICAL;if(F.has("right")&&F.has("left"))return Hammer.DIRECTION_HORIZONTAL}if(F.size===1){if(F.has("up"))return Hammer.DIRECTION_UP;if(F.has("down"))return Hammer.DIRECTION_DOWN;if(F.has("right"))return Hammer.DIRECTION_RIGHT;if(F.has("left"))return Hammer.DIRECTION_LEFT}return Hammer.DIRECTION_ALL};
_.XUY=function(){return Z7k?Promise.resolve(Z7k):new Promise(function(F,W){var E=self.indexedDB.open("swpushnotificationsdb");E.onerror=W;E.onsuccess=function(){var h=E.result;if(h.objectStoreNames.contains("swpushnotificationsstore"))Z7k=h,F(Z7k);else return self.indexedDB.deleteDatabase("swpushnotificationsdb"),_.XUY()};
E.onupgradeneeded=H7o})};
H7o=function(F){F=F.target.result;F.objectStoreNames.contains("swpushnotificationsstore")&&F.deleteObjectStore("swpushnotificationsstore");F.createObjectStore("swpushnotificationsstore",{keyPath:"key"})};
JqG=function(F){var W=PDw(),E;return _.e(function(h){switch(h.nextAddress){case 1:return _.Nl(h,2),_.Q(h,F.match(W,{cacheName:"yt-appshell-assets"}),4);case 4:E=h.yieldResult;_.id(h,3);break;case 2:_.Ml(h);case 3:return h.return(E)}})};
PDw=function(){var F=typeof ServiceWorkerGlobalScope!=="undefined"&&self instanceof ServiceWorkerGlobalScope?aWI.registration.scope:fWr;F.endsWith("/")&&(F=F.slice(0,-1));return F+"/app_shell_home"};
O7S=function(F){F.map(function(W){return W.source}).join("|")};
_.b7w=function(F){return _.e(function(W){return W.return(JqG(F))})};
lWb=function(){var F=window.caches,W;return _.e(function(E){if(E.nextAddress==1)return _.Q(E,_.b7w(F),2);W=E.yieldResult;return E.return(!!W)})};
ogW=function(){_.e(function(F){if(F.nextAddress==1){if(nge)return F.jumpTo(0);nge=!0;if(_.c("enable_system_health_primes_monitoring"))return _.e5(yqS,3E4),j9n(),F.return();if(!(Math.random()<_.dV("web_system_health_fraction")))return F.jumpTo(0);i7n={heightPixels:screen.height,widthPixels:screen.width};Lf&&!isNaN(Lf.jsHeapSizeLimit)&&(i7n.memoryTotalKbytes=String(Math.round(Lf.jsHeapSizeLimit/1E3)));window.devicePixelRatio&&(i7n.devicePixelRatio=window.devicePixelRatio);return _.Q(F,rqG(),4)}_.e5(yqS,
3E4);return _.Q(F,T5o(),0)})};
rqG=function(){return _.e(function(F){if(F.nextAddress==1)return qz.intersectionObserverPresent="IntersectionObserver"in window,qz.serviceWorkerPresent="serviceWorker"in navigator,qz.webSharePresent="share"in navigator,qz.fullScreenApiPresent="exitFullscreen"in document||"webkitExitFullscreen"in document,qz.cacheStoragePresent="caches"in window,qz.storageEstimatePresent="storage"in navigator&&"estimate"in navigator.storage,qz.storagePersistPresent="storage"in navigator&&"persist"in navigator.storage,
qz.webkitTemporaryStoragePresent="webkitTemporaryStorage"in $u&&$u.webkitTemporaryStorage&&"queryUsageAndQuota"in $u.webkitTemporaryStorage,qz.promiseRejectionEventPresent=typeof PromiseRejectionEvent!=="undefined",_.Q(F,T8e(),2);qz.indexedDbPresent=F.yieldResult;qz.subtleCryptoPresent="crypto"in window&&"subtle"in window.crypto&&"importKey"in window.crypto.subtle;qz.broadcastChannelPresent="BroadcastChannel"in window;qz.webLocksApiPresent="locks"in navigator;window.matchMedia&&window.matchMedia("(color-gamut)").matches&&
(qz.supportsP3Color=window.matchMedia("(color-gamut: p3)").matches,qz.supportsRec2020Color=window.matchMedia("(color-gamut: rec2020)").matches);_.gG(F)})};
yqS=function(){var F=9E4+Math.random()*2E3;_.hV()>F||(_.c("enable_system_health_primes_monitoring")?j9n():T5o())};
T5o=function(){var F;return _.e(function(W){if(W.nextAddress==1)return _.Q(W,Gfk(),2);F=W.yieldResult;_.Pc("systemHealthCaptured",F);_.gG(W)})};
j9n=function(){var F={metric:{}},W=Yzw();W.networkEvents.length&&(F.metric.networkEvents=wUr(W));_.Pc("systemHealthCaptured",F)};
Gfk=function(){var F,W,E,h,d,V,R,M,g,t;return _.e(function(C){switch(C.nextAddress){case 1:F={viewportHeightPixels:Math.max(document.documentElement?document.documentElement.clientHeight||0:0,window.innerHeight||0),viewportWidthPixels:Math.max(document.documentElement?document.documentElement.clientWidth||0:0,window.innerWidth||0)};W=window.screen;_.c("enable_is_extended_monitoring")&&W&&"isExtended"in W&&(F.isExtended=!!W.isExtended);E={metric:{staticContext:i7n,dynamicContext:F,webMetric:uMG,webApiSupport:qz}};
if(h=_.JR())E.csn=h;Lf&&(E.metric.webMetric.currentHeapKbytes=Math.round(Lf.usedJSHeapSize/1E3));window.matchMedia&&(E.metric.dynamicContext.hasHoverSupport=window.matchMedia("(any-hover: hover)").matches,E.metric.dynamicContext.hasFinePointer=window.matchMedia("(any-pointer: fine)").matches,E.metric.dynamicContext.hasCoarsePointer=window.matchMedia("(any-pointer: coarse)").matches);if(!("getBattery"in $u&&typeof $u.getBattery==="function")){C.jumpTo(2);break}return _.Q(C,$u.getBattery(),3);case 3:if(d=
C.yieldResult)E.metric.dynamicContext.chargingStatus=d.charging?"CHARGING_AC":"CHARGING_INACTIVE";case 2:"onLine"in navigator&&(E.metric.dynamicContext.networkCoarseState=navigator.onLine?0:2);if(qz.storageEstimatePresent)return _.Q(C,navigator.storage.estimate(),8);if(!qz.webkitTemporaryStoragePresent){C.jumpTo(5);break}return _.Q(C,Szr(),7);case 7:V=C.yieldResult;C.jumpTo(5);break;case 8:V=C.yieldResult;case 5:return E.metric.dynamicContext.deviceStorageQuotaMbytes=((R=V)==null?0:R.quota)?String(Math.round(V.quota/
1048576/10)*10):"-1",E.metric.dynamicContext.deviceStorageUsageMbytes=((M=V)==null?0:M.usage)?String(Math.round(V.usage/1048576/10)*10):"-1",g=E.metric.dynamicContext,_.Q(C,lWb(),9);case 9:return g.hasAppShell=C.yieldResult,t=Yzw(),t.networkEvents.length&&(E.metric.networkEvents=wUr(t)),C.return(E)}})};
Szr=function(){return new Promise(function(F){var W;qz.webkitTemporaryStoragePresent&&(W=$u.webkitTemporaryStorage)!=null&&W.queryUsageAndQuota?$u.webkitTemporaryStorage.queryUsageAndQuota(function(E,h){F({usage:E,quota:h})}):F(void 0)})};
_.ZP=function(F){F&=16777215;F=[(F&16711680)>>16,(F&65280)>>8,F&255];return pUo(F[0],F[1],F[2])};
_.XC=function(F){F=[(F&16711680)>>>16,(F&65280)>>>8,F&255,(F&4278190080)>>>24];var W=_.m4G(F,function(E){return E==(E&255)});
F[3]=(F[3]/255).toFixed(3);if(!W)throw Error("Wf`"+F.join(","));return"rgba("+F.join(",")+")"};
_.K2k=function(F){return[(F&16711680)>>>16,(F&65280)>>>8,F&255]};
_.FCw=function(F){F=F.map(function(W){W/=255;return W<=.03928?W/12.92:Math.pow((W+.05)/1.05,2.4)});
return F[0]*.2126+F[1]*.7152+F[2]*.0722};
HB=function(F,W){F=_.K2k(F);return"rgba("+F[0]+", "+F[1]+", "+F[2]+", "+W+")"};
_.WCS=function(){try{return!!self.localStorage}catch(F){return!1}};
Ntr=function(){if(Ezr())_.OB(Error("Xf"));else{var F=document.createElement("iframe");F.style.display="none";var W=W===void 0?window.location.href:W;var E=_.JH(_.b0("PERSIST_IDENTITY_IFRAME_URL"));W=E?E:(new URL(W)).host.indexOf("studio")===0?_.mv(hPo,"persist_identity"):_.mv(deo,"persist_identity");_.cWo(F,1,W);F.id="persist_identity";var h;(h=document.body)==null||h.appendChild(F)}};
Ezr=function(){var F=VVe;F||(F=document.querySelector("#persist_identity"));return F};
Ueo=function(){var F=!1;try{F=!!window.sessionStorage.getItem("session_logininfo")}catch(W){F=!0}return(_.b0("INNERTUBE_CLIENT_NAME")==="WEB"||_.b0("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&F};
RPr=function(F,W){if(!Ueo())return!1;W||(W=_.b0("LOGIN_INFO"));return W?(F.session_logininfo=W,!0):!1};
MVe=function(F,W){F=F===void 0?!1:F;if((W===void 0||!W)&&ePw!=="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN")if(window.sessionStorage.getItem("from_switch_account"))window.sessionStorage.removeItem("from_switch_account");else if(_.l0("LOG_STICKINESS",!1)){W=_.JR();var E=_.Pf(),h={identityStickinessData:{initialState:ePw}};W&&E&&_.Yb(W,E,h)}if(W=Ezr())if(E=W.src?(new URL(W.src)).origin:"*",F){var d;(d=W.contentWindow)==null||d.postMessage({action:"clear"},E)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>=
2)&&(F=window.sessionStorage.getItem("session_logininfo"))){var V;(V=W.contentWindow)==null||V.postMessage({loginInfo:F},E)}};
_.PB=function(F){F=F===void 0?!0:F;try{window.sessionStorage.removeItem("stickiness_reload"),window.sessionStorage.removeItem("session_logininfo"),_.OG("LOGIN_INFO",""),F&&window.sessionStorage.setItem("from_switch_account","1"),MVe(!0,F)}catch(W){}};
gzr=function(F){F&&(F.startsWith("https://accounts.google.com/AddSession")?_.PB():F.startsWith("https://accounts.google.com/ServiceLogin")?_.PB():F.startsWith("https://myaccount.google.com")&&_.y$(F).getPath().endsWith("/youtubeoptions")&&_.PB())};
Jg=function(F,W){gzr(F);if(_.l0("LOGGED_IN",!0)&&Ueo()){var E=emY(F);E==null&&(E={});RPr(E,W)&&_.Sr(F,E)}};
Qmr=function(){function F(W){for(W=W.target;W&&W.nodeName!=="A";)if(W=W.parentNode,!(W&&W instanceof HTMLElement))return;if(W&&!W.hasAttribute("download")&&W.getAttribute("rel")!=="external"&&W.href)return W.href}
document.addEventListener("mousedown",function(W){W.button!==0&&(W=F(W))&&Jg(W)});
document.addEventListener("click",function(W){(W=F(W))&&Jg(W)})};
CUW=function(){var F=new zPk;try{if(_.l0("LOGGED_IN",!0)){try{window.sessionStorage.setItem("canUseSessionStorage","true"),window.sessionStorage.removeItem("canUseSessionStorage")}catch(M){F.increment(5,!1);return}if(_.b0("LOGIN_INFO")){var W=tVr?tVr:window.location;_.b0("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"&&Ntr();var E=emY(W.href);E==null&&(E={});var h=E.session_logininfo,d=Number(window.sessionStorage.getItem("stickiness_reload")),V=h===_.b0("LOGIN_INFO");if(!window.sessionStorage.getItem("session_logininfo")||
d>=2||V)d>=2?F.increment(2,V):V?F.increment(7,V):window.sessionStorage.getItem("session_logininfo")||(F.increment(3,V),ePw="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_NEW_TAB"),window.sessionStorage.setItem("session_logininfo",_.b0("LOGIN_INFO")),window.sessionStorage.removeItem("stickiness_reload");else if(window.sessionStorage.getItem("session_logininfo"))if(_.b0("LOGIN_INFO")===window.sessionStorage.getItem("session_logininfo"))F.increment(4,V),window.sessionStorage.removeItem("stickiness_reload");
else if(d<2){window.sessionStorage.setItem("stickiness_reload",String(d+1));var R=W.href;R=_.pg(R,"sttick");Jg(R,window.sessionStorage.getItem("session_logininfo"));R=_.YF(R,{sttick:d});F.increment(d,V);_.Ty(W,R)}}else F.increment(6,!1)}else _.PB(!1)}catch(M){}};
_.ao=function(F,W,E,h,d){W=W===void 0?{}:W;E=E===void 0?"":E;h=h===void 0?window:h;F=_.wo(F,W);Jg(F);E=_.II(F+E,d);_.Ty(h.location,E)};
Btw=function(F){if(F.urlEndpoint){if(F=_.Gk(F.urlEndpoint.url),F.adurl)return KW(F.adurl)}else if(F.watchEndpoint)return"//www.youtube.com/watch?v="+F.watchEndpoint.videoId;return null};
vzo=function(F){if(!F||!F.reportingPings)return null;var W={};F.reportingPings.forEach(function(E){E.pingType in W?W[E.pingType].push(E.url):W[E.pingType]=[E.url]});
return{adpings:vOW(W)}};
_.Oh=function(F){F=F===void 0?!1:F;var W=_.Ij(),E="USER_INTERFACE_THEME_LIGHT";W.getFlag(165)?E="USER_INTERFACE_THEME_DARK":W.getFlag(174)?E="USER_INTERFACE_THEME_LIGHT":_.ff()&&(E="USER_INTERFACE_THEME_DARK");return F?E:INY()||E};
_.cAk=function(){return!_.c("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches};
_.ff=function(){return _.cAk()&&window.matchMedia("(prefers-color-scheme: dark)").matches};
_.bb=function(){var F=_.Ij();return _.cAk()&&!F.getFlag(165)&&!F.getFlag(174)};
INY=function(){var F=F===void 0?window.location.href:F;if(_.c("kevlar_disable_theme_param"))return null;var W=_.gV(F);if(_.DeR(W))return"USER_INTERFACE_THEME_DARK";try{var E=_.Gk(F).theme;return xeI.get(E)||null}catch(h){}return null};
_.DeR=function(F){return _.c("enable_dark_theme_only_on_shorts")?!(F==null||!F.startsWith("/shorts/")):!1};
_.smo=function(F,W,E,h,d){W=W===void 0?!1:W;E=E===void 0?!1:E;var V=_.b0("INNERTUBE_CONTEXT");if(!V)return _.a_(Error("ag")),{};V=(0,_.xd.unsafeClone)(V);_.c("web_no_tracking_params_in_shell_killswitch")||delete V.clickTracking;V.client||(V.client={});var R=V.client;R.clientName==="MWEB"&&R.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(R.clientFormFactor=_.b0("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");R.screenWidthPoints=window.innerWidth;R.screenHeightPoints=window.innerHeight;R.screenPixelDensity=
Math.round(window.devicePixelRatio||1);R.screenDensityFloat=window.devicePixelRatio||1;R.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());R.userInterfaceTheme=_.Oh();if(!W){var M=_.gxb();M&&(R.connectionType=M);_.c("web_log_effective_connection_type")&&(M=zvW())&&(V.client.effectiveConnectionType=M)}var g;if(_.c("web_log_memory_total_kbytes")&&((g=_.EY.navigator)==null?0:g.deviceMemory)){var t;g=(t=_.EY.navigator)==null?void 0:t.deviceMemory;V.client.memoryTotalKbytes=""+g*1E6}W&&h&&!_.c("web_it_context_set_original_url_ks")&&
(R.originalUrl=k$R(_.EY.location.href,h).toString());_.c("web_gcf_hashes_innertube")&&(M=sjY())&&(t=M.coldConfigData,g=M.coldHashData,M=M.hotHashData,V.client.configInfo=V.client.configInfo||{},t&&(V.client.configInfo.coldConfigData=t),g&&(V.client.configInfo.coldHashData=g),M&&(V.client.configInfo.hotHashData=M));t=_.Gk(_.EY.location.href);!_.c("web_populate_internal_geo_killswitch")&&t.internalcountrycode&&(R.internalGeo=t.internalcountrycode);!_.c("web_populate_client_screen_killswitch")&&d&&(R.clientScreen=
d);R.clientName==="MWEB"||R.clientName==="WEB"?(R.mainAppWebInfo={graftUrl:h||_.EY.location.href},_.c("kevlar_woffle")&&_.lb.instance&&(h=_.lb.instance,R.mainAppWebInfo.pwaInstallabilityStatus=!h.appInstalledEventFired&&h.deferredInstallPrompt?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":"PWA_INSTALLABILITY_STATUS_UNKNOWN"),R.mainAppWebInfo.webDisplayMode=BWo(),R.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):R.clientName==="TVHTML5"&&(!_.c("web_lr_app_quality_killswitch")&&
(h=_.b0("LIVING_ROOM_APP_QUALITY"))&&(R.tvAppInfo=Object.assign(R.tvAppInfo||{},{appQuality:h})),h=_.b0("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(R.tvAppInfo=Object.assign(R.tvAppInfo||{},{certificationScope:h}));!_.c("web_populate_time_zone_itc_killswitch")&&(h=evb())&&(R.timeZone=h);(h=Xsw())?R.experimentsToken=h:delete R.experimentsToken;R=HXW();h=_.AAY();h=(0,_.xd.getValues)(h.tokenJars);V.request=Object.assign({},V.request,{internalExperimentFlags:R,consistencyTokenJars:h});!_.c("web_prequest_context_killswitch")&&
(R=_.b0("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(V.request.externalPrequestContext=R);h=_.Ij();R=h.getFlag(58);h=h.get("gsml","");V.user=Object.assign({},V.user);R&&(V.user.enableSafetyMode=R);h&&(V.user.lockedSafetyMode=!0);_.c("warm_op_csn_cleanup")?E&&(W=_.JR())&&(V.clientScreenNonce=W):!W&&(W=_.JR())&&(V.clientScreenNonce=W);F&&(V.clickTracking={clickTrackingParams:F});if(F=_.ju("yt.mdx.remote.remoteClient_"))V.remoteClient=F;_.nf.getInstance().setLocationOnInnerTubeContext(V);try{var C=jLo(),
B=C.bid;delete C.bid;V.adSignalsInfo={params:[],bid:B};for(var I=_.U(Object.entries(C)),x=I.next();!x.done;x=I.next()){var A=_.U(x.value),X=A.next().value,P=A.next().value;C=X;B=P;F=void 0;(F=V.adSignalsInfo.params)==null||F.push({key:C,value:""+B})}var b,l;if(((b=V.client)==null?void 0:b.clientName)==="TVHTML5"||((l=V.client)==null?void 0:l.clientName)==="TVHTML5_UNPLUGGED"){var w=_.b0("INNERTUBE_CONTEXT");w.adSignalsInfo&&(V.adSignalsInfo.advertisingId=w.adSignalsInfo.advertisingId,V.adSignalsInfo.advertisingIdSignalType=
"DEVICE_ID_TYPE_CONNECTED_TV_IFA",V.adSignalsInfo.limitAdTracking=w.adSignalsInfo.limitAdTracking)}}catch(G){_.a_(G)}return V};
_.yc=function(){return{isShellLoad:_.l0("IS_SHELL_LOAD",!1)}};
q9S=function(){navigator.serviceWorker.getRegistrations().then(function(F){F.forEach(LCY)})};
LCY=function(F){F&&_.$ek(ZOS,F.scope)};
_.$ek=function(F,W){W={scope:W||_.N0("service_worker_scope")||"/"};return navigator.serviceWorker.register(_.e9(F),W)};
jR=function(F,W,E,h){if(W&&W.serializedYpcCujLoggingParams){if(E){var d={};d.transactionErrorType=E;h&&(d.errorMessage=h);W.ypcCujLoggingClientPayload={ypcAcquisitionCujLoggingClientPayload:{ypcAcquisitionDebugLoggingParams:d}}}E={};E.ypcCujContext=W;F=_.Mz("FLOW_EVENT_NAMESPACE_YPC_ACQUISITION",F,E);_.g2(_.Qc(),F,"FLOW_TYPE_YPC_ACQUISITION")}};
_.XNr=function(F,W,E,h){var d={};d.serializedTransactionFlowLoggingParams=W;E&&(d.errorType=E);h&&(d.errorMessage=h);_.Pc(F,d);_.JV()};
_.HOI=function(F){F&&_.XNr("transactionFlowStarted",F)};
_.PUr=function(F){F&&_.XNr("transactionFlowCancelled",F)};
_.ib=function(F,W,E){W&&_.XNr("transactionFlowFailed",W,F,E)};
_.r2=function(){this.megabloxUrl_=null};
_.TB=function(F){try{var W=JAY==null?void 0:JAY.composedPath(F)}catch(E){W=F.composedPath?F.composedPath():[]}return W&&W.length>0?W:F.composedPath?F.composedPath():[]};
_.oo=function(F){return _.TB(F)[0]};
_.GB=function(F){if(!(F instanceof Element))return null;F=F.classList?Array.from(F.classList):void 0;if(!F)return null;var W=F.indexOf("style-scope");return W>-1&&W+1<F.length?F[W+1]:null};
Yu=function(F){if(!(F instanceof HTMLElement))return null;var W=F&&(F.$$||F.polymerController)?F.tagName.toLowerCase():null;return W?W:_.GB(F)};
aNG=function(F,W){return F.replace(/[^a-z]*[^\s]+/g,function(E){return E+".style-scope."+W})};
fNW=function(F,W){return W?F.split(",").map(function(E){return aNG(E.trim(),W)}).join(", "):F};
_.w2=function(F){var W,E,h,d;return(d=(h=(E=(W=F.root)!=null?W:F.shadowRoot)!=null?E:F.__shady_native_shadowRoot)!=null?h:F.__shady_shadowRoot)!=null?d:F};
ub=function(F){return F instanceof ShadowRoot?ShadowRoot:F instanceof DocumentFragment?DocumentFragment:F instanceof Document?Document:HTMLElement};
OOb=function(F){var W,E,h;return(h=(E=(W=F.parentElement)!=null?W:F.__shady_native_parentElement)!=null?E:F.__shady_parentElement)!=null?h:null};
bOn=function(F){var W,E,h;return(h=(E=(W=F.parentNode)!=null?W:F.__shady_native_parentNode)!=null?E:F.__shady_parentNode)!=null?h:null};
lNo=function(F){var W,E,h;return(h=(E=(W=F.__shady_parentNode)!=null?W:F.__shady_native_parentNode)!=null?E:F.parentNode)!=null?h:null};
nzR=function(F){var W,E;return(E=(W=bOn(F))!=null?W:F.host)!=null?E:null};
yAS=function(F){var W,E,h;return(h=(E=(W=F.nextSibling)!=null?W:F.__shady_native_nextSibling)!=null?E:F.__shady_nextSibling)!=null?h:null};
jme=function(F){var W,E,h;return(h=(E=(W=F.previousSibling)!=null?W:F.__shady_native_previousSibling)!=null?E:F.__shady_previousSibling)!=null?h:null};
iOS=function(F){var W,E,h;return(h=(E=(W=F.nextElementSibling)!=null?W:F.__shady_native_nextElementSibling)!=null?E:F.__shady_nextElementSibling)!=null?h:null};
rAR=function(F){var W,E,h;return(h=(E=(W=F.previousElementSibling)!=null?W:F.__shady_native_previousElementSibling)!=null?E:F.__shady_previousElementSibling)!=null?h:null};
Ttr=function(F){var W,E,h;return new Set([].concat(_.x9((W=F.children)!=null?W:[]),_.x9((E=F.__shady_native_children)!=null?E:[]),_.x9((h=F.__shady_children)!=null?h:[])))};
ozr=function(F){var W,E,h;return new Set([].concat(_.x9((W=F.childNodes)!=null?W:[]),_.x9((E=F.__shady_native_childNodes)!=null?E:[]),_.x9((h=F.__shady_childNodes)!=null?h:[])))};
G$o=function(F){if(!F)return null;var W=_.GB(F);if(!W){var E;return(E=Node.prototype.getRootNode)==null?void 0:E.call(F)}W=W.toUpperCase();for(F=OOb(F);F&&F.tagName!==W;)F=OOb(F);return F?_.w2(F):null};
Y9Y=function(F){for(;F&&!(F instanceof HTMLElement);)F=nzR(F);return F};
wNW=function(F){var W=Y9Y(F);return F===W?_.GB(F):W?Yu(W):null};
uwr=function(F){return(F=Y9Y(F))?Yu(F):null};
S9R=function(F){if(F instanceof Comment)return!1;if(F instanceof Text){var W,E;if(((E=(W=F.textContent)==null?void 0:W.trim())!=null?E:"")==="")return!1}return!0};
SR=function(F,W,E){var h=W(F);for(E=E===void 0?uwr(F):E;h&&(wNW(h)!==E||!S9R(h));)F=h,h=W(F);return h};
pNb=function(F,W,E){if(!W)return null;F=uwr(F);return wNW(W)===F&&S9R(W)?W:SR(W,E,F)};
mek=function(F){return SR(F,lNo,_.GB(F))};
KCS=function(F){return SR(F,iOS)};
FmY=function(F){return SR(F,yAS)};
WmY=function(F){return SR(F,rAR)};
EfY=function(F){return SR(F,jme)};
hZI=function(F){return pNb(F,F.firstChild||F.__shady_native_firstChild||F.__shady_firstChild||null,yAS)};
duo=function(F){var W,E,h;var d=(h=(E=(W=F.firstElementChild)!=null?W:F.__shady_native_firstElementChild)!=null?E:F.__shady_firstElementChild)!=null?h:null;return pNb(F,d,iOS)};
N7Y=function(F){var W,E,h;var d=(h=(E=(W=F.lastChild)!=null?W:F.__shady_native_lastChild)!=null?E:F.__shady_lastChild)!=null?h:null;return pNb(F,d,jme)};
Vgw=function(F){var W,E,h;var d=(h=(E=(W=F.lastElementChild)!=null?W:F.__shady_native_lastElementChild)!=null?E:F.__shady_lastElementChild)!=null?h:null;return pNb(F,d,rAR)};
Uue=function(F){var W=uwr(F);return Array.from(ozr(F)).filter(function(E){return wNW(E)===W})};
RZe=function(F){var W=Yu(F);return Array.from(Ttr(F)).filter(function(E){return _.GB(E)===W})};
_.pf=function(F,W,E){if(F instanceof HTMLElement&&_.GB(F)===E){var h=Array.from(F.classList).indexOf("style-scope");if(h===-1)F.classList.add("style-scope"),F.classList.add(W);else if(!(h+1>=F.classList.length)){h=F.classList[h+1];var d,V;F==null||(d=F.classList)==null||(V=d.replace)==null||V.call(d,h,W)}}if(F instanceof HTMLElement||F instanceof DocumentFragment)for(d=_.U(Ttr(F)),V=d.next();!V.done;V=d.next())_.pf(V.value,W,E);return F};
mJ=function(F,W){if(F instanceof HTMLElement&&_.GB(F)===W){var E=Array.from(F.classList).indexOf("style-scope");E===-1||E+1>=F.classList.length||F.classList.remove("style-scope",F.classList[E+1])}if(F instanceof HTMLElement||F instanceof DocumentFragment){E=_.U(F.children);for(var h=E.next();!h.done;h=E.next())mJ(h.value,W)}return F};
_.eZb=function(F,W){return ub(F).prototype.appendChild.call(F,W)};
Mgr=function(F,W){if(F===W)return!0;F=ozr(F);return Array.from(F).some(function(E){return Mgr(E,W)})};
_.Z=function(F,W){if(F instanceof Kf)return F;(W==null?0:W.ignoreOwnerDocument)&&!Object.getOwnPropertyDescriptor(F,"ownerDocument")&&Object.defineProperty(F,"ownerDocument",{get:function(){return window.document}});
return new Kf(F)};
QGG=function(){var F=Kf.prototype,W=[].concat(_.x9(gfG?[]:["getRootNode"]),["setAttribute","removeAttribute"]);W=_.U(W);for(var E=W.next(),h={};!E.done;h={method$jscomp$50:void 0},E=W.next())h.method$jscomp$50=E.value,F[h.method$jscomp$50]=function(d){return function(){return this.host[d.method$jscomp$50].apply(this.host,arguments)}}(h)};
tge=function(){var F=Kf.prototype,W=[].concat(_.x9(gfG?[]:"cloneNode contains appendChild insertBefore removeChild replaceChild".split(" ")),_.x9(zZo?[]:["querySelector","querySelectorAll"]));W=_.U(W);for(var E=W.next(),h={};!E.done;h={method$jscomp$51:void 0},E=W.next())h.method$jscomp$51=E.value,F[h.method$jscomp$51]=function(d){return function(){return this.root[d.method$jscomp$51].apply(this.root,arguments)}}(h)};
vfb=function(){var F=Kf.prototype,W=[].concat(_.x9(CZe?[]:["nextSibling","previousSibling","nextElementSibling","previousElementSibling"]),_.x9(B7R?[]:["parentNode"]));W=_.U(W);for(var E=W.next(),h={};!E.done;h={prop$jscomp$62:void 0},E=W.next())h.prop$jscomp$62=E.value,Object.defineProperty(F,h.prop$jscomp$62,{get:function(d){return function(){return this.host[d.prop$jscomp$62]}}(h),
configurable:!0})};
Due=function(){var F=Kf.prototype,W=["activeElement"].concat(_.x9(CZe?[]:["firstChild","firstElementChild","lastElementChild","childNodes"]),_.x9(Ijr?[]:["children"]),_.x9(cLw?[]:["lastChild"]));W=_.U(W);for(var E=W.next(),h={};!E.done;h={prop$jscomp$63:void 0},E=W.next())h.prop$jscomp$63=E.value,Object.defineProperty(F,h.prop$jscomp$63,{get:function(d){return function(){return this.root[d.prop$jscomp$63]}}(h),
configurable:!0})};
xuw=function(){for(var F=Kf.prototype,W=_.U(["innerHTML","textContent"]),E=W.next(),h={};!E.done;h={prop$jscomp$64:void 0},E=W.next())h.prop$jscomp$64=E.value,Object.defineProperty(F,h.prop$jscomp$64,{get:function(d){return function(){return this.root[d.prop$jscomp$64]}}(h),
set:function(d){return function(V){this.root[d.prop$jscomp$64]=V}}(h),
configurable:!0})};
k9r=function(F){var W=Kf.prototype;F=_.U(Object.entries(F));for(var E=F.next(),h={};!E.done;h={fn$jscomp$361:void 0},E=F.next()){var d=_.U(E.value);E=d.next().value;d=d.next().value;h.fn$jscomp$361=d;W[E]=function(V){return function(){return V.fn$jscomp$361.apply(null,[this.host.node||this.host].concat(_.x9(arguments)))}}(h)}};
sGr=function(){for(var F=Kf.prototype,W=_.U(Object.entries(ALn)),E=W.next(),h={};!E.done;h={fn$jscomp$362:void 0},E=W.next()){var d=_.U(E.value);E=d.next().value;d=d.next().value;h.fn$jscomp$362=d;Object.defineProperty(F,E,{get:function(V){return function(){return V.fn$jscomp$362.apply(null,[this.host.node||this.host].concat(_.x9(arguments)))}}(h),
configurable:!0})}};
_.Fm=function(F){return F instanceof Lmr||F instanceof Document?F:new Lmr(F)};
qLY=function(){for(var F=Lmr.prototype,W=_.U("setAttribute removeAttribute cloneNode contains appendChild insertBefore getRootNode removeChild replaceChild querySelector querySelectorAll".split(" ")),E=W.next(),h={};!E.done;h={method$jscomp$52:void 0},E=W.next())h.method$jscomp$52=E.value,F[h.method$jscomp$52]=function(d){return function(){return HTMLElement.prototype[d.method$jscomp$52].call.apply(HTMLElement.prototype[d.method$jscomp$52],[this.node].concat(_.x9(arguments)))}}(h)};
$ue=function(){for(var F=Lmr.prototype,W=_.U("firstChild lastChild firstElementChild lastElementChild childNodes children parentNode nextSibling previousSibling nextElementSibling previousElementSibling classList innerHTML textContent".split(" ")),E=W.next(),h={};!E.done;h={prop$jscomp$65:void 0},E=W.next())h.prop$jscomp$65=E.value,Object.defineProperty(F,h.prop$jscomp$65,{get:function(d){return function(){var V;return(V=this.node["__shady_native_"+d.prop$jscomp$65])!=null?V:this.node[d.prop$jscomp$65]}}(h),
configurable:!0})};
_.Wm=function(F,W,E){E===void 0&&(E=!F.classList.contains(W));E?F.classList.add(W):F.classList.remove(W)};
_.EO=function(F,W,E){E===void 0&&(E=!F.hasAttribute(W));if(W==="class")throw Error("eg");E?_.Fm(F).setAttribute(W,""):_.Fm(F).removeAttribute(W)};
Z1o=function(F){return(F.localName!=="slot"?[]:(0,_.N3)(F).assignedNodes({flatten:!0})).filter(function(W){return W.nodeType===Node.ELEMENT_NODE})};
_.X3Y=function(F){return(F=_.Z(F).querySelector("slot"))&&F.localName==="slot"?Z1o(F):[]};
_.V9=function(F,W){window.ShadyCSS&&window.ShadyCSS.styleSubtree(F,W)};
H1n=function(F,W){var E=W.bind(F);return function(h){E(h,h.detail)}};
_.UO=function(F,W){var E=PZe.get(F);E||(E=new WeakMap,PZe.set(F,E));if(E.has(W))return E.get(W);if(_.c("web_fi_listen_disable_bound_fn_helper")){var h=W.bind(F);F=function(d){h(d,d==null?void 0:d.detail)}}else F=H1n(F,W);
E.set(W,F);return F};
fje=function(F,W){JLY(F);F.created[ajr].push(W)};
JLY=function(F){if(!F.created||!F.created[ajr]){var W=F.created,E=W?[W]:[];F.created=function(){for(var h=_.U(E),d=h.next();!d.done;d=h.next())d.value.apply(this)};
F.created[ajr]=E}};
O1r=function(F){return function(){var W=_.Dd.apply(0,arguments);return function(E,h,d){F.apply(null,_.x9(W))(E,h,d)}}};
b1R=function(){return function(){var F=_.Dd.apply(0,arguments);return function(W,E,h){X6r.apply(null,_.x9(F))(W,E,h)}}};
_.J=function(F){return b1R()(F)};
_.a=function(){return O1r(aBY).apply(null,_.x9(_.Dd.apply(0,arguments)))};
_.R4=function(F){return _.c("pbcm_fi_listen_decorators")?lje(F):O1r(Pvr)(F)};
lje=function(F){return function(W,E){fje(W,function(){var h=this[E],d=_.c("web_fi_listen_disable_bound_fn_helper")?function(V){h(V,V.detail)}.bind(this):H1n(this,h);
nfo.has(F)?Hs(this.hostElement,F,d):this.hostElement.addEventListener(F,d)})}};
_.ea=function(){return O1r(JUr).apply(null,_.x9(_.Dd.apply(0,arguments)))};
_.O=function(F){F=F===void 0?{}:F;return O1r(Hkn)(F)};
_.M3=function(F){if(F.hostElement&&F!==F.hostElement){var W=_.sg(F.hostElement);W=F.renderIdom?W:W.shadowRoot}W||(F=F.root,W=F instanceof Node?_.sg(F):null);return W};
_.gQ=function(F){return yLS?jGG(F):function(W,E){Object.defineProperty(W,E,{get:function(){var h;return(h=_.M3(this))==null?void 0:h.querySelector(F)},
enumerable:!0,configurable:!0})}};
jGG=function(F){return function(W,E){Object.defineProperty(W,E,{get:function(){var h,d=(h=_.Z(this.hostElement))==null?void 0:h.querySelector(F);if(d)return d;var V;h=(V=this.is)!=null?V:"yt-undefined-target";i1r!=null||(i1r=Date.now());(yO(h)+i1r)%100>_.dV("pbcm_fi_query_decorators_fallback_logging_pct")||(rLY!=null||(rLY=new T7R),ofY.has(h)||(ofY.add(h),rLY.increment(h)));var R;return(R=_.M3(this))==null?void 0:R.querySelector(F)},
enumerable:!0,configurable:!0})}};
_.Q9=function(F){return yLS?G9Y(F):function(W,E){Object.defineProperty(W,E,{get:function(){var h;return(h=_.M3(this))==null?void 0:h.querySelectorAll(F)},
enumerable:!0,configurable:!0})}};
G9Y=function(F){return function(W,E){Object.defineProperty(W,E,{get:function(){var h,d=(h=_.Z(this.hostElement))==null?void 0:h.querySelectorAll(F);if(d==null?0:d.length)return d;var V;return(V=_.M3(this))==null?void 0:V.querySelectorAll(F)},
enumerable:!0,configurable:!0})}};
YLo=function(F){return function(W){if(![_.pX,_.n].includes(Object.getPrototypeOf(W.prototype).constructor))throw Error("fg");xBe(Object.assign({},typeof F!=="string"?F:{is:F,notifyObserversOnUndefined:!0},{disableInheritanceCheck:!0,disableEnforceFastDefaultValuesCheck:!0}))(W)}};
_.tT=function(){var F=F===void 0?{}:F;return function(W){if(![mr,_.zK].includes(Object.getPrototypeOf(W.prototype).constructor))throw Error("gg");kFY(Object.assign({},F,{disableInheritanceCheck:!0}))(W)}};
uJI=function(F,W){w3w[F]!=null||(w3w[F]=new Set);w3w[F].add(W)};
_.Cz=function(){var F=_.ea.apply(null,_.x9(_.Dd.apply(0,arguments)));return function(W,E){uJI(W.is,E);F(W,E)}};
I4=function(F,W,E){if(Bm(F)&&!SLo.has(W)){W=W.replace(/^JSC\$[\d]+_/,"");W=W.replace(/\.\d+(\.|$)/g,function(V,R){return".#"+R});
vm[F]!=null||(vm[F]={});var h,d;(h=vm[F])[d=W]!=null||(h[d]=new Set);vm[F][W].has(E)||(vm[F][W].add(E),_.Pc("polymerPropertyAccessEvent",{componentName:F,propertyName:W,accessType:E}))}};
p3r=function(){return _.c("polymer_property_access_logging_debug")||_.c("polymer_enable_property_access_logging")};
Bm=function(F){if(_.c("polymer_property_access_logging_debug"))return!0;if(!_.c("polymer_enable_property_access_logging"))return!1;mun||(mun=Date.now());return(yO(F)+mun)%100<_.dV("polymer_property_access_logging_percent")};
KmS=function(F,W){return Bm(W)&&F.hostElement.loggingStatus?new Proxy(F,{get:function(E,h,d){if(E.hostElement.loggingStatus.bypassProxyController)return E[h];E.hostElement.loggingStatus.isExternalGet=!0;var V=E[h];E.hostElement.loggingStatus.isExternalGet=!1;if(V instanceof Function)return function(){var R=_.Dd.apply(0,arguments);try{return E.hostElement.loggingStatus.currentExternalCall=h,I4(W,h,"PROPERTY_ACCESS_CALL_EXTERNAL_CONTROLLER"),V.apply(this===d?E:this,R)}finally{E.hostElement.loggingStatus.currentExternalCall=
void 0}};
I4(W,h,"PROPERTY_ACCESS_GET_EXTERNAL_CONTROLLER");return V},
set:function(E,h,d){if(E.hostElement.loggingStatus.bypassProxyController)return E[h]=d,!0;E.hostElement.loggingStatus.isRendererStamper?I4(W,h,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE"):E.hostElement.loggingStatus.isDeclarativeExternal||I4(W,h,"PROPERTY_ACCESS_SET_EXTERNAL_CONTROLLER_IMPERATIVE");try{E.hostElement.loggingStatus.currentExternalSet=h,E[h]=d}finally{E.hostElement.loggingStatus.currentExternalSet=void 0}return!0}}):F};
FOb=function(F,W){F&&F.loggingStatus&&!F.loggingStatus.isDeclarativeExternal&&!F.loggingStatus.isExternalGet&&F.loggingStatus.currentExternalSet!==W&&I4(F.tagName.toLowerCase(),W,"PROPERTY_ACCESS_GET_INTERNAL")};
cm=function(F,W,E){F&&(E||F.loggingStatus&&!F.loggingStatus.isInitializing&&!F.loggingStatus.isDefiningPropertyAccessor&&F.loggingStatus.currentExternalSet!==W)&&I4(F.tagName.toLowerCase(),W,"PROPERTY_ACCESS_SET_INTERNAL")};
WOr=function(){return{_definePropertyAccessor:function(F,W){var E=this,h=E.hostElement.loggingStatus;h&&(h.isDefiningPropertyAccessor=!0);var d=E[F];d!==void 0&&(E.__data?E._setPendingProperty(F,d):(E.__dataProto!=null||(E.__dataProto={}),E.__dataProto[F]=d));h&&(h.isDefiningPropertyAccessor=!1);Object.defineProperty(this,F,{get:function(){FOb(E.hostElement,F);return this.__data[F]},
set:function(V){W||this._setPendingProperty(F,V,!0)&&this._invalidateProperties()}})},
created:function(){var F=this._setPendingProperty.bind(this);this._setPendingProperty=function(W,E,h){cm(this.hostElement,W);return F.apply(this,[W,E,h])}}}};
Eow=function(F){p3r()&&_.J(DG.prototype)(F.prototype,"__templateBindingLoggingBehavior")};
h7W=function(F,W){if(W.resolvedFactories.length!==F.resolvedFactories.length)return!0;W=_.U(W.resolvedFactories.entries());for(var E=W.next();!E.done;E=W.next()){var h=_.U(E.value);E=h.next().value;h=h.next().value;if(h.providerClass){if(h.providerClass!==F.resolvedFactories[E].providerClass)return!0}else if(h.providerValue){if(h.providerValue!==F.resolvedFactories[E].providerValue)return!0}else if(h.factory!==F.resolvedFactories[E].factory)return!0}return!1};
dMb=function(F,W){F=_.U(F);for(var E=F.next();!E.done;E=F.next())if(E=E.value,E.constructor===Array)dMb(E,W);else{var h=W;h.has(E)||(E.inject&&h.add(E),E.behaviors&&dMb(E.behaviors,h))}};
x3=function(F,W){var E=F[W];F[W]=function(){var h=_.Dd.apply(0,arguments);this.initializeInjection&&this.initializeInjection();if(E)return E.apply(this,h)}};
R7k=function(){_.k3.Class=function(E,h){E=N1R(E,h);x3(E.prototype,"created");return E};
x3(AT.prototype,"_initializeProperties");x3(_.sO.prototype,"_initializeProperties");if(Vdb)x3(UMY,"created");else{var F=function(){x3(customElements.get("tp-yt-iron-list").prototype,"_initializeProperties")};
if(customElements.get("tp-yt-iron-list"))F();else{var W=customElements.define;customElements.define=function(E,h,d){W.call(customElements,E,h,d);E==="tp-yt-iron-list"&&(F(),customElements.define=W)}}}};
Mdo=function(F,W){F.prototype.behaviors=F.prototype.behaviors||[];F.prototype.behaviors.unshift(e7R.InjectBehavior);F.prototype.provide=W};
_.$3=function(F){return function(W){if(!F.disableElementRegistration){F.noInjection||Mdo(W,F.providers);var E=W.prototype;E.__templateHelpers||X6r(Lz.prototype)(E,"__templateHelpers");E=F.is;goe||(goe=Date.now());(yO(E)+goe)%100<_.dV("polymer_log_prop_change_observer_percent")&&X6r(q3.prototype)(W.prototype,"__propertyObserverObserver");W.prototype.behaviors=W.prototype.behaviors||[];W.prototype.behaviors.unshift(_.QtR.YtHostElementBehavior);Eow(W);YLo({is:F.is,notifyObserversOnUndefined:F.notifyObserversOnUndefined!==
!1,fastInit:F.fastInit,template:F.template,disableEnforceFastDefaultValuesCheck:!0})(W)}}};
_.y=function(F){return _.$3({is:F.is,template:F.template,disableElementRegistration:F.disableElementRegistration,cssBuildOptOut:F.cssBuildOptOut,notifyObserversOnUndefined:!1,noInjection:!0})};
C6k=function(F,W){if(z7k){F=new F;for(var E=_.U(Object.getOwnPropertyNames(F)),h=E.next();!h.done;h=E.next())h=h.value,W[h]=F[h];for(E=W;E&&E!==Object.prototype;E=Object.getPrototypeOf(E)){h=_.U(Object.getOwnPropertyNames(E));for(var d=h.next();!d.done;d=h.next())d=d.value,F.hasOwnProperty(d)||Object.defineProperty(F,d,tdo(W,d))}}else F.apply(W)};
tdo=function(F,W){return{get:function(){var E=F[W];return E instanceof Function?E.bind(F):E},
set:function(E){F[W]=E}}};
voo=function(F,W){for(var E=F._noAccessors,h=_.U(Object.getOwnPropertyNames(F)),d=h.next();!d.done;d=h.next())if(d=d.value,!B1W.has(d))if(E)W[d]=F[d];else{var V=Object.getOwnPropertyDescriptor(F,d);V&&(V.configurable=!0,Object.defineProperty(W,d,V))}};
ICe=function(F,W,E){return function(h){if(E){var d=E();h.model=d}if(F[W])F[W](h,h.detail)}};
ZG=function(F){var W=[];if(typeof F==="string")F.length>0&&W.push.apply(W,_.x9(F.split(".")));else{F=_.U(F);for(var E=F.next();!E.done;E=F.next())E=E.value,typeof E==="string"?W.push.apply(W,_.x9(E.split("."))):W.push(E)}return W};
cMS=function(F,W){if(W[W.length-1]!=="*"&&W[W.length-1]!=="splices"){for(var E=0;E<W.length;E++){if(!F)return;F=F[W[E]]}return F}};
DMI=function(F,W){if(F.length>W.length)return!1;for(var E=0;E<F.length;E++)if(F[E]!==W[E])return!1;return!0};
kdk=function(F,W,E){if(W.type==="compute"){var h=W.getter.bind(E);var d=W.args}else h=function(){return E[W.method.methodName].apply(E,_.x9(_.Dd.apply(0,arguments)))},d=W.method.args;
xMk(F,W.propertyKey,h,d,W.value)};
sto=function(F,W){if(W.readOnly){var E=Object.getOwnPropertyDescriptor(F.model,W.propertyKey);Object.defineProperty(F.model,W.propertyKey,{get:E.get,set:function(){}});
F.model[AMo(W.propertyKey)]=E.set}};
LOk=function(F,W,E){if(E){var h=W.propertyKey,d=W.selector;W=[{type:"path",path:"reduxPropertiesRecomputeTrigger"}].concat(_.x9(W.selectorArgs.map(function(V){return{type:"path",path:V}})));
xMk(F,h,function(V){var R=_.Dd.apply(1,arguments);return d.apply(null,[E.getState()].concat(_.x9(R)))},W)}};
$MR=function(F,W,E){var h=_.Cg(W.propertyKey)+"-changed";qck(F,function(d){var V={value:d.value,queueProperty:!0};d.path.split(".").length>1&&(V.path=d.path);E.dispatchEvent(new CustomEvent(h,{detail:V}))},[{type:"wildcard",
path:W.propertyKey}])};
Zpb=function(F,W,E){qck(F,function(){E[W.method.methodName].apply(E,_.x9(_.Dd.apply(0,arguments)))},W.method.args)};
AMo=function(F){return"_set"+(F.charAt(0).toUpperCase()+F.slice(1))};
X$W=function(){var F,W=Zn(function(E){F=E},!1);
return[F,W]};
fCY=function(F){F=F.trim().replace(Hpr,",").replace(P6Y,"$1");var W=F[0];W==="-"&&(W=F[1]);if(W>="0"&&W<="9")return{type:"literal",value:Number(F)};if(W==="'"||W==='"')return{type:"literal",value:F.slice(1,-1)};if(W=F.match(JMW)){W=W[1];var E=aCo[W];if(E)return{type:E,path:F.slice(0,-(W.length+1))}}return{type:"path",path:F}};
noI=function(F){var W=F.match(Opw);if(W)return F={methodName:W[1],args:bpr},W[2].trim()&&(W=W[2].replace(lCk,"&comma;").split(","),F.args=W.map(fCY)),F};
yMY=function(F,W,E,h){h=h===void 0?!1:h;W=_.Cg(W);var d=cs;d&&(E=d(E,W,"attribute",F));Xm(F,E,W,h)};
Xm=function(F,W,E,h){W=jtw(W,h===void 0?!1:h);W===void 0?F.removeAttribute(E):F.setAttribute(E,W)};
jtw=function(F,W){switch(typeof F){case "object":case "function":if(F instanceof Date)return F.toString();if(F){if((W===void 0?0:W)&&!_.c("polymer_reflect_objects_as_boolean_killswitch"))return F?"":void 0;W=window.trustedTypes?window.trustedTypes.isHTML(F)||window.trustedTypes.isScript(F)||window.trustedTypes.isScriptURL(F):void 0;if(W)return F;try{return JSON.stringify(F)}catch(E){_.OB(Error("Cg`"+F))}}break;case "boolean":return F?"":void 0;default:return F!==null&&F!==void 0?F.toString():void 0}};
ipI=function(F){if(F===void 0)throw Error("Dg");return F};
YcS=function(F,W,E,h){var d=rMS(h);if(d.length){h=E;var V="property";T1G.test(E)?V="attribute":E[E.length-1]==="$"&&(E=E.slice(0,-1),V="attribute");var R=ooo(d);R&&V==="attribute"&&(E==="class"&&F.hasAttribute("class")&&(R+=" "+F.getAttribute(E)),Xm(F,R,E));V==="attribute"&&h==="disable-upgrade$"&&F.setAttribute("disable-upgrade","");F.localName==="input"&&h==="value"&&F.setAttribute("value","");F.removeAttribute(h);V==="property"&&(E=_.Bf(E));W=ipI(W);GdG(W,V,E,d);return!0}return E.slice(0,3)===
"on-"?(F.removeAttribute(E),(V=W).events!=null||(V.events=[]),W.events.push({name:E.slice(3),value:h}),!0):E==="id"?(W.id=h,!0):!1};
rMS=function(F){for(var W=[],E=0,h;(h=w$R.exec(F))!==null;){h.index>E&&W.push({type:"literal",value:F.slice(E,h.index)});var d=h[1][0];E=!!h[2];h=h[3].trim();if(d==="{")throw Error("Eg");(d=noI(h))?W.push({type:"method",negate:E,signature:d}):W.push({type:"path",negate:E,path:h});E=w$R.lastIndex}E&&E<F.length&&(F=F.substring(E))&&W.push({type:"literal",value:F});return W};
ooo=function(F){for(var W="",E=0;E<F.length;E++){var h=F[E];h.type==="literal"&&(W+=h.value)}return W};
GdG=function(F,W,E,h){F.bindings!=null||(F.bindings=[]);F.bindings.push({kind:W,target:E,parts:h})};
KOG=function(F,W,E){var h=!1;if(F.localName==="template"){h=E;var d=W.stripWhitespace;d=utW(F,d===void 0?!1:d);var V=F.content.ownerDocument.createDocumentFragment();d.content=V;V.appendChild(F.content);h&&(h.templateInfo=d);h=!0}else F.localName==="slot"&&(W.hasInsertionPoint=!0);if(F.firstChild&&(d=E,F.localName!=="script"&&F.localName!=="style")){V=0;for(var R=F.firstChild;R;){var M=R;if(M.localName==="template"){var g=M.getAttribute("is");if((R=g==="dom-if")||g==="dom-repeat"){M.removeAttribute("is");
g=M.ownerDocument.createElement("ps-"+g);M.parentNode.replaceChild(g,M);g.appendChild(M);var t=Array.from(M.attributes);t=_.U(t);for(var C=t.next();!C.done;C=t.next())C=C.value,R?Scb.has(C.name)&&Xm(g,C.value,C.name):p$k.has(C.name)?Xm(g,C.value,C.name):mMr.has(C.name),M.removeAttribute(C.name);R=g}else R=M}if(R.nodeType===Node.TEXT_NODE){M=void 0;g=F;for(t=R;((M=t.nextSibling)==null?void 0:M.nodeType)===Node.TEXT_NODE;)C=void 0,(C=t).textContent!=null||(C.textContent=""),t.nextSibling.textContent&&
(t.textContent+=t.nextSibling.textContent),g.removeChild(t.nextSibling);if(W.stripWhitespace&&R.textContent&&!R.textContent.trim()){F.removeChild(R);R=R.nextSibling;continue}}KOG(R,W,{parentIndex:V,parentInfo:d});R.parentNode&&V++;R=R.nextSibling}}var B;if((B=F.hasAttributes)==null?0:B.call(F)){B=E=ipI(E);d=!1;V=Array.from(F.attributes);V=_.U(V);for(M=V.next();!M.done;M=V.next())M=M.value,d=YcS(F,B,M.name,M.value)||d;h=d||h}F.nodeType===Node.TEXT_NODE&&(B=rMS(F.textContent),B.length&&(F.textContent=
ooo(B)||" ",E=ipI(E),GdG(E,"text","textContent",B),h=!0));E&&h&&(E.infoIndex=W.nodeInfoList.push(E)-1)};
utW=function(F,W){W={nodeInfoList:[],stripWhitespace:(W===void 0?!1:W)||F.hasAttribute("strip-whitespace")};KOG(F.content,W);return W};
F3R=function(F){Object.assign(F,{_disposeEffects:void 0,_signalProps:void 0,_signalValues:void 0})};
E6r=function(F,W,E){W.signalCache!=null||(W.signalCache={});var h=W.signalCache[E];if(!h){var d=E.split("."),V,R;h=_.c("web_polysi_immutable_root_fix_killswitch")?!((V=F.options)==null?0:(R=V.immutableProps)==null?0:R.has(d[0])):!W3G(F,d[0]);if(d.length>1&&h){var M=F.getPathMutationSignal(d);h=function(){var g=PX(F.owner,function(){return F.getWithPath([d[0]])}),t,C=(t=M())==null?void 0:t.value;
return{rootWasDefined:g!==void 0,value:C}}}else h=function(){var g=F.getWithPath(d);
return{rootWasDefined:g!==void 0,value:g}};
W.signalCache[E]=h}return h()};
d_r=function(F,W,E,h,d){W=W.parts.map(function(R,M){if(R.type==="literal"){E.partWasDefined!=null||(E.partWasDefined=[]);var g;(g=E.partWasDefined)[M]||(g[M]=R.value!==void 0);return R.value}var t;if(R.type==="method"){var C,B=(C=(t=E.partWasDefined)==null?void 0:t[M])!=null?C:!1;B||(B=R.signature.args.every(function(A){return A.type==="literal"}));
var I=!1,x=!0;t=R.signature.args.map(function(A){if(A.type==="literal")return A.value;if(A.type!=="path")throw Error("Fg`"+A.type);var X=E6r(F,E,A.path);A=X.value;X=X.rootWasDefined;I||(I=X);x&&(x=X);return A});
B||(B=d===1?x:I);E.partWasDefined!=null||(E.partWasDefined={});E.partWasDefined[M]=B;if(!B)return;t=(M=E6r(F,E,R.signature.methodName).value)&&typeof M==="function"?M.apply(h,t):void 0}else C=E6r(F,E,R.path),t=C.value,E.partWasDefined!=null||(E.partWasDefined={}),(B=E.partWasDefined)[M]||(B[M]=t!==void 0||C.rootWasDefined);R.negate&&(t=!t);return t});
if(W.length===1){var V;return((V=E.partWasDefined)==null?0:V[0])?W[0]:hQo}return W.join("")};
Nqn=function(F){return typeof F==="object"&&!!F&&"notifyPath"in F&&"canNotifyPath"in F};
V6I=function(F){return typeof F==="object"&&!!F&&"notifyPath"in F};
U_o=function(F){return"polymerController"in F};
RQk=function(F,W){W=""+ZG(W)[0];if(Nqn(F))return F.canNotifyPath(W);if(U_o(F)&&Nqn(F.polymerController))return F.polymerController.canNotifyPath(W);if(V6I(F)){var E;return!((E=F.properties)==null||!E[W])}if(U_o(F)&&V6I(F.polymerController)){var h;return!((h=F.polymerController.properties)==null||!h[W])}return!1};
eQo=function(F,W,E){Nqn(F)||V6I(F)?F.notifyPath(W,E):U_o(F)&&(Nqn(F.polymerController)||V6I(F.polymerController))&&F.polymerController.notifyPath(W,E)};
g6k=function(F,W,E){if(E!==hQo){F.kind==="attribute"||F.target!=="textContent"&&(F.target!=="value"||W.localName!=="input"&&W.localName!=="textarea")||(E=E===void 0?"":E);var h,d=(h=M6k.Polymer)==null?void 0:h.sanitizeDOMValue;d&&(E=d(E,F.target,F.kind,W));if(F.kind==="attribute"){F=F.target;if(F==="class"||F==="name"||F==="slot")W=(0,_.N3)(W);Xm(W,E,F)}else if(F=F.target,E!==W[F]||typeof E==="object")W.loggingStatus&&(W.loggingStatus.isDeclarativeExternal=!0,I4(W.localName,F,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE")),
W[F]=E,W.loggingStatus&&(W.loggingStatus.isDeclarativeExternal=!1)}};
Q8o=function(F,W,E,h){var d=W.parts[0];if(W.parts.length!==1||d.type!=="path"||!RQk(E,W.target))return!1;var V=_.U(d.path.split(".")),R=V.next().value,M=oT(V);if(!_.c("web_polysi_immutable_root_fix_killswitch")&&W3G(F,R))return!1;h.signalCache!=null||(h.signalCache={});V=h.signalCache[d.path];var g;V=(g=V)==null?void 0:g().value;if((V==null?void 0:V.path)!==void 0){h=ZG(V.path);var t=ZG(d.path);h=[W.target].concat(_.x9(h.slice(t.length-1)));eQo(E,h,d.negate?!V.value:V.value);return!0}var C=Hm(F,R);
var B=C.getChangeRecordSignal(M),I=!1;V=function(){if(!I){var A=PX(F.owner,function(){return C.getWithPath([])});
I||(I=A!==void 0)}return{value:B(),rootWasDefined:I}};
h.signalCache[d.path]=V;h.partWasDefined!=null||(h.partWasDefined={});V=V();(t=h.partWasDefined)[0]||(t[0]=V.rootWasDefined);var x=PX(F.owner,function(){return C.getWithPath(M)});
h.partWasDefined[0]&&PX(F.owner,function(){return void g6k(W,E,d.negate?!x:x)});
return!0};
zQY=function(F,W,E,h,d,V){if(!Q8o(F,W,E,h)){var R=d_r(F,W,h,d,V);PX(F.owner,function(){return void g6k(W,E,R)})}};
t6n=function(F,W,E,h,d,V){E=_.U(E);for(var R=E.next(),M={};!R.done;M={infoIndex:void 0},R=E.next()){R=R.value;var g=R.bindings;M.infoIndex=R.infoIndex;R=R.parentInfo;if(g){g=_.U(g);for(var t=g.next(),C={};!t.done;C={b$jscomp$254:void 0,bindingCtx$jscomp$4:void 0},t=g.next()){C.b$jscomp$254=t.value;if(M.infoIndex===void 0)throw Error("Gg");C.bindingCtx$jscomp$4={};F.effect(function(B,I){return function(){d&&!d()||zQY(F,B.b$jscomp$254,W[I.infoIndex],B.bindingCtx$jscomp$4,h,V)}}(C,M))}}R&&t6n(F,W,[R],
h,d,V)}};
CrR=function(F,W){F=(W.parentInfo?CrR(F,W.parentInfo):F).firstChild;for(var E=0;F;F=F.nextSibling)if(W.parentIndex===E++)return F;throw Error("Hg");};
v6Y=function(F,W,E,h){F=document.importNode(F.content,!0);F.__noInsertionPoint=!(h==null?0:h.hasInsertionPoint);for(var d=Array(W.length),V={},R=0;R<W.length;R++){var M=W[R],g=CrR(F,M);d[R]=g;M.id&&(V[M.id]=g);if(M.templateInfo){var t=g.parentElement;t&&(t.templateInfo=M.templateInfo,t.parentSignalProxy=E,t.eventListenerHost=h.eventListenerHost,t.stampingEnabled=h.enabledSignal)}t=void 0;if((t=M.events)==null?0:t.length)for(t=0;t<M.events.length;t++){var C=M.events[t];BqI(h.eventListenerHost,g,C.name,
C.value,h.getModel)}}t6n(E,d,W,h.thisCtx,h.enabledSignal,h.methodInvocationRequirement);return{root:F,nodes:d,nodesById:V}};
cnW=function(F,W){F=F();var E;(E=IMW.ShadyCSS)==null||E.prepareTemplate(F,W);W=utW(F);return{template:F,nodeInfoList:W.nodeInfoList,hasInsertionPoint:W.hasInsertionPoint}};
kDw=function(){D_Y=!1;for(var F=Pm.length,W=0;W<F;W++){var E=Pm[W];if(E)try{E()}catch(h){Promise.resolve().then(function(){throw h;})}}Pm.splice(0,F);
x_n+=F};
qNG=function(F){D_Y||(D_Y=!0,Ano.textContent=(s8I++).toString());Pm.push(F);return L3o++};
_.fz=function(F,W,E){JT++;F=W?new $_r(JT,F,W,E):new ZSR(JT,F);a4.set(JT,F);return JT};
XhY=function(F){(F=a4.get(F))&&F.cancel()};
Prr=function(F,W){F=HSn.get(F);return F?(W=F.get(W))?W:null:null};
_.OO=function(F,W,E,h){var d=Prr(F,W);if(!d){d=new JnY;var V=HSn.get(F);V||(V=new Map,HSn.set(F,V));V.set(W,d)}F=E.bind(F);d.run(F,h,void 0)};
_.aMk=function(F,W){var E;(E=Prr(F,W))==null||E.cancel()};
fMS=function(F){var W;(W=Prr(F,"doRender"))==null||W.flush()};
b1=function(F){var W;return(W=F.hostElement)!=null?W:F};
OSY=function(F){var W=F.indexOf(".");return W===-1?F:F.slice(0,W)};
bSY=function(F,W,E,h,d,V){V=(d=(h=V?OSY(W):W)?W:null)?F.get(d):F.__data[W];d&&V===void 0&&(V=E[W]);_.hF(F.hostElement,Vjb(h)+"-changed",{value:V,queueProperty:!0,path:d!=null?d:void 0},{bubbles:!1,composed:!1})};
lMk=function(F,W){F.__isReflecting=!0;yMY(F.hostElement,W,F.__data[W]);F.__isReflecting=!1};
n6e=function(F){if(F._onIronRequestResizeNotifications){var W=F._onIronRequestResizeNotifications.bind(F);F._onIronRequestResizeNotifications=function(E){_.oo(E)!==F.hostElement&&W(E)}}F._ariaActiveAttributeChanged&&(F._ariaActiveAttributeChanged=F._ariaActiveAttributeChanged.bind(F.hostElement));
F._activeChanged&&(F._activeChanged=function(E){F.toggles?Xm(F.hostElement,E?"true":"false",F.ariaActiveAttribute):F.hostElement.removeAttribute(F.ariaActiveAttribute);F._changedButtonState()});
F._asyncClick&&(F._asyncClick=function(){_.fz(function(){F.hostElement.click()},1)});
!F.keyEventTarget||F.keyEventTarget instanceof EventTarget||(F.keyEventTarget=b1(F.keyEventTarget));F._disabledChanged&&(F._disabledChanged=F._disabledChanged.bind(F.hostElement));F._observeItems&&(F._observeItems=function(E){var h=b1(E);return _.sg(h).observeNodes(function(d){F._updateItems();F._updateSelected();_.hF(h,"iron-items-changed",d,{bubbles:!1,cancelable:!1})})});
F._updateItems&&F._updateItems===_.l1._updateItems&&(F._updateItems=function(){var E=_.sg(F.hostElement).queryDistributedElements(F.selectable||"*");E=Array.prototype.filter.call(E,F._bindFilterItem);F._setItems(E)});
F._computeKeyboardClass&&(F._computeKeyboardClass=function(E){_.Wm(F.hostElement,"keyboard-focus",E)});
F.ensureRipple&&(F.ensureRipple=function(E){if(F.hasRipple&&!F.hasRipple()){if(!F._createRipple)return;F._ripple=F._createRipple();F._ripple.noink=F.noink;var h=F._rippleContainer||F.hostElement;h&&_.Z(h).appendChild(F._ripple)}var d;if(E&&((d=F._ripple)==null?0:d.uiDownAction)){h=_.Z(F._rippleContainer||F.hostElement);var V;d=(V=E.composedPath())==null?void 0:V[0];h.contains(d)&&F._ripple.uiDownAction(E)}});
F._updateMultiselectable&&(F._updateMultiselectable=function(E){E?F.hostElement.setAttribute("aria-multiselectable","true"):F.hostElement.removeAttribute("aria-multiselectable")})};
ynI=function(F,W,E){E=_.U(E);for(var h=E.next();!h.done;h=E.next())C6k(h.value.constructor,F);C6k(W.constructor,F)};
iSr=function(F,W){F=_.U(F);for(var E=F.next();!E.done;E=F.next())if(E=E.value,E.type==="signal"){var h=E.propertyKey;if(W.hasOwnProperty(h)&&W[h]!=null&&E.attributeType===Object){a:{h=W[h].constructor;for(var d=_.U(j8W),V=d.next();!V.done;V=d.next())if(V=V.value,h===V){h=V;break a}h=Object}E.attributeType=h}}};
rnY=function(){};
TqG=function(F){var W;return(W=F.hostElement)!=null?W:F};
o6Y=function(){throw Error("Lg");};
GDR=function(F,W){F.constructor.prototype.useSignals=!0;var E=new F.constructor;ynI(E,F,W.behaviors);iSr(W.reactiveSchemas,E);E={};for(var h=_.U(W.reactiveSchemas),d=h.next();!d.done;d=h.next())d=d.value,d.type==="signal"&&(E[d.propertyKey]=d.attributeType);var V={copyPropertiesToProto:o6Y,didRegister:!1,typesForSignals:E},R=["disable-upgrade"].concat(_.x9(W.observedAttributes)),M=function(g){nz.call(this,F,W,V,g)};
_.k(M,nz);_.Sn.Object.defineProperties(M,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return R}}});
V.copyPropertiesToProto=function(){for(var g=0;g<W.behaviors.length;g++)voo(W.behaviors[g],M.prototype);voo(F,M.prototype)};
W.legacyOptimizations||V.copyPropertiesToProto();M.prototype.is=F.is;return M};
YNG=function(F,W){if(Object.getPrototypeOf(W.prototype).constructor!==_.n)throw Error("Mg");W.prototype.is=F.is;return GDR(W.prototype,F)};
whk=function(F){return F.type==="compute"||F.type==="computeWithMethod"};
uIe=function(F){for(var W=F.reactiveSchemas.filter(whk),E=new Map,h=new Map,d=new Map,V=_.U(W),R=V.next();!R.done;R=V.next())R=R.value,E.set(R.propertyKey,R),h.set(R.propertyKey,[]),d.set(R.propertyKey,0);V=0;W=_.U(W);for(R=W.next();!R.done;R=W.next()){R=R.value;for(var M=_.U(R.type==="computeWithMethod"?R.method.args:R.args),g=M.next();!g.done;g=M.next())g=g.value,g.type!=="literal"&&(g=g.path.split(".")[0],h.has(g)&&(h.get(g).push(R.propertyKey),d.set(R.propertyKey,d.get(R.propertyKey)+1),V++))}R=
[].concat(_.x9(h.keys())).filter(function(t){return d.get(t)===0});
for(W=[];R.length;)for(M=R.shift(),W.push(E.get(M)),M=_.U(h.get(M)),g=M.next();!g.done;g=M.next())g=g.value,d.set(g,d.get(g)-1),V--,d.get(g)===0&&R.push(g);E=F.reactiveSchemas.filter(function(t){return!whk(t)});
F.reactiveSchemas=[].concat(_.x9(E),_.x9(W))};
SNo=function(F,W){if(W.properties)for(var E=_.U(Object.entries(W.properties)),h=E.next();!h.done;h=E.next()){var d=_.U(h.value);h=d.next().value;d=d.next().value;F.properties[h]=typeof d==="function"?{type:d}:d}W.observers&&F.observers.push.apply(F.observers,_.x9(W.observers));W.disabledPolySiReactions&&F.disabledPolySiReactions.push.apply(F.disabledPolySiReactions,_.x9(W.disabledPolySiReactions))};
phb=function(F,W){for(var E=W.length-1;E>=0;E--){var h=W[E];Array.isArray(h)?phb(F,h):F.indexOf(h)<0&&F.unshift(h)}};
m_r=function(F,W){F.reactiveSchemas=F.reactiveSchemas.filter(function(E){return E.type==="observe"&&W.includes(E.method.methodName)||whk(E)&&W.includes(E.propertyKey)?!1:!0})};
Fqr=function(F,W){var E=W.prototype,h,d,V={is:F.is,reactiveSchemas:[],observedAttributes:[],behaviors:[e7R.InjectBehavior,Lz.prototype],disableElementRegistration:F.disableElementRegistration,provide:(h=F.providers)!=null?h:[],reactivityMode:F.reactivityMode,signalProperties:(d=E.signalProperties)!=null?d:[]};"template"in W?V.templateGetter=function(){return W.template}:F.getTemplate&&(V.templateGetter=F.getTemplate);
E.behaviors&&phb(V.behaviors,E.behaviors);K3k(V,W);return V};
K3k=function(F,W){for(var E=W.prototype,h={properties:{},observers:[],disabledPolySiReactions:[]},d=_.U(F.behaviors),V=d.next();!V.done;V=d.next())SNo(h,V.value);SNo(h,E);if(F.signalProperties)for(E=_.U(F.signalProperties),d=E.next();!d.done;d=E.next())delete h.properties[d.value];E=_.U(Object.entries(h.properties));for(d=E.next();!d.done;d=E.next()){V=_.U(d.value);d=V.next().value;V=V.next().value;var R=void 0;if((R=F.signalProperties)==null||!R.includes(d)){R=void 0;var M=F,g=V.type;if(!g)if(window.Reflect!==
void 0&&window.Reflect.getMetadata!==void 0)a:{g=Reflect.getMetadata("design:type",W,d);for(var t=_.U(Wqo),C=t.next();!C.done;C=t.next())if(C=C.value,g===C){g=C;break a}g=Object}else g=String;V.computed||V.selector||(M.reactiveSchemas.push({type:"signal",propertyKey:d,value:V.value,attributeType:g,readOnly:V.readOnly}),M.observedAttributes.push(_.Cg(d)));V.reflectToAttribute&&M.reactiveSchemas.push({type:"reflect",propertyKey:d});if(V.computed){g=noI(V.computed);if(!g)throw Error("Ng");M.reactiveSchemas.push({type:"computeWithMethod",
propertyKey:d,method:g,value:V.value})}V.observer&&M.reactiveSchemas.push({type:"observe",method:{methodName:V.observer,args:[{type:"path",path:d}]}});V.notify&&M.reactiveSchemas.push({type:"notify",propertyKey:d});V.selector&&M.reactiveSchemas.push({type:"redux",propertyKey:d,selector:V.selector,selectorArgs:(R=V.selectorArgs)!=null?R:[]})}}Ehr&&uIe(F);W=_.U(h.observers);for(d=W.next();!d.done;d=W.next())E=F,d=d.value,(V=noI(d))?E.reactiveSchemas.push({type:"observe",method:V}):console.log('Warning: unable to parse observe declaration: "'+
d+'"');m_r(F,h.disabledPolySiReactions)};
hUw=function(F,W){for(var E=0;E<W.length;E++){var h=W[E],d=void 0;(d=h).showHideApi!=null||(d.showHideApi={});d=void 0;!!F!==!((d=h.showHideApi)==null||!d.hideTemplateChildren)&&(h.nodeType===Node.TEXT_NODE?F?(h.showHideApi.polymerTextContent=h.textContent,h.textContent=""):(d=void 0,h.textContent=(d=h.showHideApi.polymerTextContent)!=null?d:null):h instanceof Element&&h.localName==="slot"?F?(h.showHideApi.polymerReplaced=document.createComment("hidden-slot"),(0,_.N3)((0,_.N3)(h).parentNode).replaceChild(h.showHideApi.polymerReplaced,
h)):(d=h.showHideApi.polymerReplaced)&&(0,_.N3)((0,_.N3)(d).parentNode).replaceChild(h,d):h instanceof HTMLElement&&h.style&&(F?(h.showHideApi.polymerDisplay=h.style.display,h.style.display="none"):h.style.display=h.showHideApi.polymerDisplay));h.showHideApi.hideTemplateChildren=F;h.showHideChildren&&h.showHideChildren(F)}};
NDY=function(){if(!d2e){var F=document.createElement("style");F.innerText="ps-dom-if,ps-dom-repeat{display:none;}";document.head.appendChild(F);d2e=!0}};
y9=function(){return _.c("disable_hidden_dom_if_using_stamper")||_.c("creator_disable_hidden_dom_if_using_stamper")};
Vyk=function(F,W){var E=_.ja().getState();return W?F.apply(null,[E].concat(_.x9(W))):F(E)};
eUk=function(){if(U2w)return U2w;var F=_.U(_.g$(0,void 0,"Nl6eIe")),W=F.next().value;F.next();var E=F.next().value;_.ja().subscribe(function(){RUr(E)});
return U2w=W};
RUr=function(F){_.c("delay_redux_signal_update_killswitch")?F(function(W){return W+1}):Myo||(Myo=!0,Promise.resolve().then(function(){F(function(W){return W+1});
Myo=!1}))};
_.ja=function(){return ghG.getAppStore()};
i1=function(F,W){return ghG.getSelectFn()(F,W)};
_.rQ=function(F){ghG.getDispatchFn()(F)};
QzS=function(F,W){var E={},h;for(h in F)E[h]=W(F[h],h);return E};
_.TK=function(F,W){return function(){var E;return(E=_.XO(F))!=null?E:W}};
_.o4=function(F,W){var E=Object.assign({},F),h;for(h in W)W.hasOwnProperty(h)&&(E[h]=_.TK(F[h],W[h]));return E};
zUe=function(F,W,E){F instanceof Element&&(E.debugName||(E.debugName="<"+F.tagName.toLowerCase()+(F.tagName.includes("-")?">":"."+F.className+">")),_.c("ytwiz_enable_debug_component_props")&&(F.debugProps||(F.debugProps=QzS(W,function(h){return function(){return h()}}))))};
_.GK=function(F,W){var E=function(h){var d={stack:[],error:void 0,hasError:!1};try{var V=tyW={};var R=C4Y(d,yCe("component()")),M;if(((M=E)==null?0:M.idomCompat)&&h.renderedFromIdom){R==null||R.attr("idomCompat",!0);var g,t=typeof E.idomCompat==="object"?(g=E)==null?void 0:g.idomCompat.callbacks:{},C=_.U(BDo(h,t,E.debugName)),B=C.next().value;C.next();var I=C.next().value,x=vhR(F,B);V.privateValue=x;tyW=void 0;zUe(x,B,E);R==null||R.attr("debugName",E.debugName);var A=m1k(x),X=Array.isArray(A)?A[0]:
A;X[MO]||(X[MO]={});X[MO].updateSignalsFromIdomProps=I;return x}var P=QzS(h,Ibb);var b=vhR(F,P);V.privateValue=b;tyW=void 0;zUe(b,P,E);R==null||R.attr("debugName",E.debugName);return b}catch(l){d.error=l,d.hasError=!0}finally{c3e(d)}};
E.debugName=W===void 0?"":W;return E};
vhR=function(F,W){F=F(W);return t8(F)};
D2G=function(F,W){F[W]||(F=new _.xC("IDOM interop setter undefined. Key:",W),_.a_(F))};
Ibb=function(F,W){return W==="children"||W==="ref"||typeof F==="function"||F===void 0?F:function(){return _.XO(F)}};
BDo=function(F,W,E){var h={},d={},V={},R={},M;for(M in F){R={key$jscomp$886:R.key$jscomp$886};R.key$jscomp$886=M;var g=F[R.key$jscomp$886];if(R.key$jscomp$886==="children"||R.key$jscomp$886==="ref")h[R.key$jscomp$886]=g;else if(typeof g==="function")R.key$jscomp$886 in W||g.length>0?(V[R.key$jscomp$886]=g,h[R.key$jscomp$886]=function(C){return function(){return V[C.key$jscomp$886].apply(V,_.x9(_.Dd.apply(0,arguments)))}}(R)):h[R.key$jscomp$886]=g;
else if(!(F[R.key$jscomp$886]===void 0&&R.key$jscomp$886 in W)){var t=_.U(_.g$(F[R.key$jscomp$886],{debugName:"__cwis:"+E+":"+R.key$jscomp$886},"cEBU8c"));g=t.next().value;t=t.next().value;h[R.key$jscomp$886]=g;d[R.key$jscomp$886]=t}}return[h,d,function(C){var B={},I;for(I in C)B={key$jscomp$887:B.key$jscomp$887,val$jscomp$117:void 0},B.key$jscomp$887=I,B.val$jscomp$117=C[B.key$jscomp$887],B.key$jscomp$887!=="children"&&B.key$jscomp$887!=="ref"&&(typeof B.val$jscomp$117==="function"?B.key$jscomp$887 in
W?V[B.key$jscomp$887]=B.val$jscomp$117:B.val$jscomp$117.length>0&&(V[B.key$jscomp$887]=B.val$jscomp$117,_.OB(new _.xC("Callback detected that was not set in the idomCompat callbacks map. Key:",B.key$jscomp$887))):B.key$jscomp$887 in W&&B.val$jscomp$117===void 0||(D2G(d,B.key$jscomp$887),Iy(function(x){return function(){d[x.key$jscomp$887](x.val$jscomp$117)}}(B))))}]};
A3o=function(F,W,E){var h=vPo(F.prototype,x2Y,F.prototype.behaviors);h.prototype.is=W;h.prototype.localName=W;E&&kpw(h,E);return function(d){d&&(h.prototype.hostElement=d);var V=new h;V.root=V;V.hostElement=d;return V}};
kpw=function(F,W){var E;Object.defineProperty(F.prototype,"_template",{get:function(){E===void 0&&(E=W());return E},
set:function(h){E=h},
configurable:!0,enumerable:!0})};
Zje=function(F,W,E,h){function d(){if(!x){for(var A=new Set,X=_.U(C),P=X.next();!P.done;P=X.next()){P=P.value;for(var b=_.U(Object.getOwnPropertyNames(P)),l=b.next();!l.done;l=b.next()){l=l.value;var w=void 0,G=(w=Object.getOwnPropertyDescriptor(P,l))==null?void 0:w.value;G&&G instanceof Function&&!Y3(l)&&(!M[l]||_.c("polymer_forward_method_killswitch"))&&A.add(l)}}X=_.U(Object.entries(Object.getOwnPropertyDescriptors(F.prototype)));for(P=X.next();!P.done;P=X.next())b=_.U(P.value),P=b.next().value,
b=b.next().value,b.value instanceof Function&&!Y3(P)&&A.add(P);x=A}return x}
szY(F,W,h==null?void 0:h.providers);IBw(F.prototype,F,!0);var V=A3o(F,W,E),R,M=(R=F.prototype.properties)!=null?R:{},g,t,C=(t=(g=F.prototype.behaviors)==null?void 0:g.flat(Infinity))!=null?t:[];E=_.U(C);for(R=E.next();!R.done;R=E.next())M=Object.assign({},R.value.properties,M);var B=[].concat(_.x9(Lqn),_.x9(Object.keys(M).map(function(A){return _.Cg(A)}))),I=!1,x;
return{ctor:function(A,X){var P=V(A),b,l;A=[].concat(_.x9((b=h==null?void 0:h.allowedProps)!=null?b:[]),_.x9((l=h==null?void 0:h.allowedPropsFromBehaviors)!=null?l:[]));P.allowedProps=A.length>0?A:void 0;b={};l=_.U(B);for(A=l.next();!A.done;A=l.next())A=A.value,b[A]=_.Bf(A);P.__dataAttributes=b;var w=P.ready.bind(P);P.ready=function(){X.beforeReady();w();if(Bm(W)&&!I){var G=P.__templateInfo;if(G==null?0:G.hostProps){G=_.U(Object.keys(G.hostProps));for(var hr=G.next();!hr.done;hr=G.next())I4(W,hr.value,
"PROPERTY_ACCESS_GET_INTERNAL")}I=!0}};
P._overrideLegacyUndefined=!0;return P},
props:M,observedAttributes:B,getInitialMethods:d,getPropsToForwardBeforeRegister:function(){for(var A=[],X=new Set,P=_.U(Object.keys(M)),b=P.next();!b.done;b=P.next())b=b.value,A.push([b,M[b].readOnly]),X.add(b);P=d();b=_.U(Object.keys(Object.getOwnPropertyDescriptors(F.prototype)));for(var l=b.next();!l.done;l=b.next())l=l.value,!qKY(l)||P.has(l)||X.has(l)||(A.push([l,!1]),X.add(l));X=_.U($2r);for(P=X.next();!P.done;P=X.next())A.push([P.value,!0]);return A},
getPropsToForwardBeforeReady:function(A){for(var X=[],P=_.U(Object.entries(A)),b=P.next();!b.done;b=P.next()){var l=_.U(b.value);b=l.next().value;l=l.next().value;if(qKY(b)&&!(l instanceof Function)&&(X.push([b,!1]),Bm(W))){var w=l=void 0;(w=(l=A)._createPropertyAccessor)==null||w.call(l,b)}}return X},
shouldForwardProp:qKY,shouldLog:Bm}};
szY=function(F,W,E){Mdo(F,E);F.prototype.behaviors.unshift(XJr);if(p3r()){if(Bm(W)){var h;(h=F.prototype).behaviors!=null||(h.behaviors=[]);F.prototype.behaviors.unshift(WOr())}Eow(F)}_.J(Lz.prototype)(F.prototype,"__templateHelpers")};
Y3=function(F){return Hjr.has(F)||F.startsWith("__compute__")};
qKY=function(F){return!Y3(F)&&!F.startsWith("_")&&!F.endsWith("_")};
Ojr=function(F,W){function E(){var I=g();I=_.U(I);for(var x=I.next();!x.done;x=I.next()){var A=_.U(x.value);x=A.next().value;A=A.next().value;P4r(B.prototype,x,A)}h=!0}
var h=!1,d=F.ctor,V=F.getInitialMethods,R=F.observedAttributes,M=F.getPropsToForwardBeforeReady,g=F.getPropsToForwardBeforeRegister,t=F.shouldForwardProp,C=F.shouldLog,B=function(){var I=HTMLElement.call(this)||this;I.didForwardDynamicProps=!1;I.loggingStatus={};h||E();I.inst=d(I,{beforeReady:function(){I.didForwardDynamicProps||(I.forwardDynamicProps(),I.didForwardDynamicProps=!0)}});
I.controllerProxy=KmS(I.inst,W);I.forwardMethods();return I};
_.k(B,HTMLElement);B.prototype.forwardMethods=function(){for(var I=this,x=_.U(this.inst.getExtraMethodsToForward()),A=x.next(),X={};!A.done;X={method$jscomp$62:void 0},A=x.next()){var P=_.U(A.value);A=P.next().value;P=P.next().value;X.method$jscomp$62=P;this[A]=function(b){return function(){return b.method$jscomp$62.call.apply(b.method$jscomp$62,[I.inst].concat(_.x9(_.Dd.apply(0,arguments))))}}(X)}x=_.U(V());
for(X=x.next();!X.done;X=x.next())X=X.value,t(X)&&J3r(this,X),C(W)&&!Y3(X)&&abY(this.inst,X)};
B.prototype.forwardDynamicProps=function(){var I=M(this.inst);I=_.U(I);for(var x=I.next();!x.done;x=I.next()){var A=_.U(x.value);x=A.next().value;A=A.next().value;P4r(this,x,A);C(W)&&!Y3(x)&&fbY(this.inst,x)}};
B.prototype.connectedCallback=function(){this.inst.connectedCallback();this.inst.isConnected=!0};
B.prototype.disconnectedCallback=function(){this.inst.disconnectedCallback();this.inst.isConnected=!1};
B.prototype.attributeChangedCallback=function(I,x,A){this.inst.attributeChangedCallbackWrapper(I,x,A)};
_.Sn.Object.defineProperties(B.prototype,{is:{configurable:!0,enumerable:!0,get:function(){return W}},
polymerController:{configurable:!0,enumerable:!0,get:function(){return this.controllerProxy}}});
_.Sn.Object.defineProperties(B,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return R}}});
customElements.define(W,B)};
P4r=function(F,W,E){F.hasOwnProperty(W)||Object.defineProperty(F,W,{get:function(){var h,d=((h=F.is)!=null?h:F.tagName).toLowerCase();if(this.polymerController)return this.loggingStatus.isDeclarativeExternal||I4(d,W,"PROPERTY_ACCESS_GET_EXTERNAL"),this.loggingStatus.isExternalGet=!0,this.loggingStatus.bypassProxyController=!0,h=this.polymerController[W],this.loggingStatus.isExternalGet=!1,this.loggingStatus.bypassProxyController=!1,h},
set:function(h){if(!E){var d,V=((d=F.is)!=null?d:F.tagName).toLowerCase();this.polymerController&&(this.loggingStatus.isDeclarativeExternal||I4(V,W,"PROPERTY_ACCESS_SET_EXTERNAL_IMPERATIVE"),this.loggingStatus.currentExternalSet=W,this.loggingStatus.bypassProxyController=!0,this.polymerController[W]!==h&&(d={},this.polymerController.setProperties((d[W]=h,d)),this.loggingStatus.currentExternalSet=void 0,this.loggingStatus.bypassProxyController=!1))}}})};
J3r=function(F,W,E){var h=F.polymerController;F[W]=function(){var d=_.Dd.apply(0,arguments);F.loggingStatus.currentExternalCall=W;F.loggingStatus.bypassProxyController=!0;var V,R=((V=F.is)!=null?V:F.tagName).toLowerCase();I4(R,W,"PROPERTY_ACCESS_CALL_EXTERNAL");var M;V=(M=E!=null?E:h[W])==null?void 0:M.call.apply(M,[h].concat(_.x9(d)));F.loggingStatus.currentExternalCall=void 0;F.loggingStatus.bypassProxyController=!1;return V}};
abY=function(F,W){var E=F.hostElement,h=F[W];F[W]=function(){var d=_.Dd.apply(0,arguments);if(E.loggingStatus.currentExternalCall!==W){var V,R=((V=E.is)!=null?V:E.tagName).toLowerCase();I4(R,W,"PROPERTY_ACCESS_CALL_INTERNAL")}return h==null?void 0:h.apply(F,d)}};
fbY=function(F,W){var E=Object.getOwnPropertyDescriptor(F,W);E&&!E.get&&Object.defineProperty(F,W,{get:function(){FOb(F.hostElement,W);return E.value},
set:function(h){cm(F.hostElement,W);E.value=h}})};
bjI=function(F){return _.c("poly_si_dom_repeat_detached_fix_killswitch")||F.tagName!=="PS-DOM-REPEAT"?F.tagName==="DOM-REPEAT":!0};
nhk=function(F,W){var E=lbY(F);F instanceof Element&&E.unshift(F);F=_.U(E.filter(bjI));for(var h=F.next();!h.done;h=F.next()){var d=void 0;h=_.U((d=h.value.__instances)!=null?d:[]);for(d=h.next();!d.done;d=h.next())if(d=d.value,d.root){d=Array.from(d.root.children);d=_.U(d);for(var V=d.next();!V.done;V=d.next())E.push.apply(E,_.x9(nhk(V.value,W)))}}return E.filter(function(R){return R.usePatchedLifecycles&&R.lifecycleIsConnected===W})};
lbY=function(F){var W=null;F instanceof Element?W=Element.prototype.querySelectorAll:F instanceof DocumentFragment&&(W=DocumentFragment.prototype.querySelectorAll);return W?Array.from(W.call(F,"*")):[]};
wQ=function(F){M6(function(){for(var W=_.U(nhk(F,!1)),E=W.next();!E.done;E=W.next()){E=E.value;E.lifecycleIsConnected=!0;try{var h=void 0,d=void 0,V=void 0,R=void 0;(h=(R=E.polymerController)!=null?R:E)==null||(V=(d=h).connectedCallback)==null||V.call(d)}catch(M){_.a_(M)}}})};
u1=function(F){M6(function(){for(var W=_.U(nhk(F,!0)),E=W.next();!E.done;E=W.next()){E=E.value;E.lifecycleIsConnected=!1;try{var h=void 0,d=void 0,V=void 0,R=void 0;(h=(R=E.polymerController)!=null?R:E)==null||(V=(d=h).disconnectedCallback)==null||V.call(d)}catch(M){_.a_(M)}}})};
GpR=function(){if(!y3I){y3I=!0;var F=[Node];Sa&&F.push(Sa.Wrapper);var W=Node.prototype.insertBefore,E=Node.prototype.removeChild;F=_.U(F);for(var h=F.next(),d={};!h.done;d={nativeInsertBefore:void 0,nativeAppendChild:void 0,nativeRemoveChild:void 0,nativeReplaceChild:void 0},h=F.next())h=h.value,d.nativeInsertBefore=h.prototype.insertBefore,h.prototype.insertBefore=function(R){return function(M,g){if(M instanceof DocumentFragment){var t=Array.from(M.children);M=R.nativeInsertBefore.call(this,M,g);
if(this.isConnected&&R.nativeInsertBefore===W)for(g=_.U(t),t=g.next();!t.done;t=g.next())wQ(t.value);return M}t=M instanceof Element&&M.isConnected;g=R.nativeInsertBefore.call(this,M,g);t&&u1(M);this.isConnected&&wQ(M);return g}}(d),d.nativeAppendChild=h.prototype.appendChild,h.prototype.appendChild=function(R){return function(M){if(M instanceof DocumentFragment){var g=Array.from(M.children);
M=R.nativeAppendChild.call(this,M);if(this.isConnected){g=_.U(g);for(var t=g.next();!t.done;t=g.next())wQ(t.value)}return M}g=M instanceof Element&&M.isConnected;t=R.nativeAppendChild.call(this,M);g&&u1(M);this.isConnected&&wQ(M);return t}}(d),d.nativeRemoveChild=h.prototype.removeChild,h.prototype.removeChild=function(R){return function(M){var g=M instanceof Element&&M.isConnected,t=R.nativeRemoveChild.call(this,M);
g&&E===R.nativeRemoveChild&&u1(M);return t}}(d),d.nativeReplaceChild=h.prototype.replaceChild,h.prototype.replaceChild=function(R){return function(M,g){if(M instanceof DocumentFragment){var t=Array.from(M.children);
M=R.nativeReplaceChild.call(this,M,g);if(this.isConnected)for(u1(g),g=_.U(t),t=g.next();!t.done;t=g.next())wQ(t.value);return M}t=M instanceof Element&&M.isConnected;var C=this.isConnected,B=R.nativeReplaceChild.call(this,M,g);C&&u1(g);t&&u1(M);C&&wQ(M);return B}}(d);
F=[Element];Sa&&F.push(Sa.Wrapper);F=_.U(F);h=F.next();for(d={};!h.done;d={nativeReplaceWith:void 0,nativeRemove:void 0,nativeInsertAdjacentElement:void 0,nativeSetAttribute:void 0,nativeRemoveAttribute:void 0,nativeToggleAttribute:void 0},h=F.next())h=h.value,h.prototype.before=jzG(h.prototype.before),h.prototype.after=jzG(h.prototype.after),d.nativeReplaceWith=h.prototype.replaceWith,h.prototype.replaceWith=function(R){return function(){var M=_.Dd.apply(0,arguments),g=_.U(ijn(M)),t=g.next().value,
C=g.next().value;g=this.isConnected;R.nativeReplaceWith.apply(this,M);M=_.U(C);for(C=M.next();!C.done;C=M.next())u1(C.value);if(g)for(u1(this),t=_.U(t),g=t.next();!g.done;g=t.next())g=g.value,g instanceof Element&&wQ(g)}}(d),d.nativeRemove=h.prototype.remove,h.prototype.remove=function(R){return function(){var M=this.isConnected;
R.nativeRemove.call(this);M&&u1(this)}}(d),d.nativeInsertAdjacentElement=h.prototype.insertAdjacentElement,h.prototype.insertAdjacentElement=function(R){return function(M,g){var t=g.isConnected;
M=R.nativeInsertAdjacentElement.call(this,M,g);t&&u1(g);M.isConnected&&wQ(M);return M}}(d),d.nativeSetAttribute=h.prototype.setAttribute,h.prototype.setAttribute=function(R){return function(M,g){var t=r3G(this);
if(!t.usePatchedLifecycles)return R.nativeSetAttribute.call(this,M,g);var C=this.getAttribute(M);R.nativeSetAttribute.call(this,M,g);g=this.getAttribute(M);TDS(t,M,C,g)}}(d),d.nativeRemoveAttribute=h.prototype.removeAttribute,h.prototype.removeAttribute=function(R){return function(M){var g=r3G(this);
if(!g.usePatchedLifecycles)return R.nativeRemoveAttribute.call(this,M);var t=this.getAttribute(M);R.nativeRemoveAttribute.call(this,M);t!==null&&TDS(g,M,t,null)}}(d),d.nativeToggleAttribute=h.prototype.toggleAttribute,h.prototype.toggleAttribute=function(R){return function(M,g){var t=r3G(this);
if(!this.usePatchedLifecycles)return R.nativeToggleAttribute.call(this,M,g);var C=this.getAttribute(M),B=C!==null;g=R.nativeToggleAttribute.call(this,M,g);g!==B&&TDS(t,M,C,g?"":null);return g}}(d);
F=[Document,DocumentFragment,Element,ShadowRoot];Sa&&F.push(Sa.Wrapper);F=_.U(F);for(d=F.next();!d.done;d=F.next())d=d.value,d.prototype.prepend=jzG(d.prototype.prepend),d.prototype.append=jzG(d.prototype.append);(Sa==null?void 0:Sa.noPatch)===!0&&ohR();document.readyState==="complete"?wQ(document.body):document.addEventListener("readystatechange",function(){document.readyState==="complete"&&wQ(document.body)});
var V=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerText");V&&V.get&&V.set&&Object.defineProperty(HTMLElement.prototype,"innerText",{enumerable:V.enumerable,configurable:!0,get:V.get,set:function(R){R||u1(this);V.set.call(this,R);return R}})}};
jzG=function(F){return function(){var W=_.Dd.apply(0,arguments),E=_.U(ijn(W)),h=E.next().value;E=E.next().value;F.apply(this,W);W=_.U(E);for(E=W.next();!E.done;E=W.next())u1(E.value);if(this.isConnected)for(h=_.U(h),W=h.next();!W.done;W=h.next())W=W.value,W instanceof Element&&wQ(W)}};
ohR=function(){for(var F=_.U(YKo),W=F.next();!W.done;W=F.next()){W=W.value.prototype;for(var E=_.U(wJo),h=E.next();!h.done;h=E.next()){h=h.value;var d=Object.getOwnPropertyDescriptor(W,h);d&&Object.defineProperty(W,"__shady_native_"+h,d)}}};
TDS=function(F,W,E,h){var d,V;if((d=F.polymerController)==null?0:(V=d.observedAttributes)==null?0:V.includes(W))if(F=F.polymerController,F.attributeChangedCallbackWrapper)F.attributeChangedCallbackWrapper.call(F,W,E,h);else{var R;(R=F.attributeChangedCallback)==null||R.call(F,W,E,h)}};
ijn=function(F){var W=[],E=[];F=_.U(F);for(var h=F.next();!h.done;h=F.next())h=h.value,h instanceof Element&&h.isConnected&&E.push(h),h instanceof DocumentFragment?W.push.apply(W,_.x9(Array.from(h.children))):W.push(h);return[W,E]};
r3G=function(F){return!(F instanceof Element)&&F.node instanceof Element?F.node:F};
usY=function(F,W){var E=W?["children"].concat(_.x9(W)):["children"];W=[];E=_.U(E);for(var h=E.next();!h.done;h=E.next()){var d=h.value;if(F.hasOwnProperty(d)){h=F[d];h=typeof h==="function"?h():h;h=t8(Array.isArray(h)?h:[h]).flat();if(d!=="children"){d=Vjb(d);for(var V=_.U(h),R=V.next();!R.done;R=V.next())R=R.value,R instanceof Element&&R.setAttribute("slot",d)}W.push(h)}}W.length===0?F=[]:(F=t8(_.z("div",null,W)),F=Array.from(F.childNodes));return F};
pJR=function(F,W,E){var h={};_.HX(function(){var d={},V;for(V in W)if(W.hasOwnProperty(V)){var R=void 0,M=void 0;if(!(((R=E.slotProps)==null?0:R.includes(V))||V==="children"||((M=E.callbackProps)==null?0:M.includes(V))||V==="ref")&&(R=_.XO(W[V]),h[V]!==R)){h[V]=R;M=void 0;var g=(M=F.hostElement)!=null?M:F;SKn.has(V)&&(g[V]=R);d[V]=R}}Iy(function(){if(F.setProperties)F.setProperties(d);else for(var t=_.U(Object.entries(d)),C=t.next();!C.done;C=t.next()){var B=_.U(C.value);C=B.next().value;B=B.next().value;
F[C]=B}})})};
KqI=function(F,W,E,h){var d=usY(E,h.slotProps),V=_.c("web_wcw_disable_slot_host_shady_dom_wrap")?F:(0,_.N3)(F);d=_.U(d);for(var R=d.next();!R.done;R=d.next())V.appendChild(R.value);pJR(W,E,h);h=_.U(h.callbackProps||[]);d=h.next();for(V={};!d.done;V={kebabEventName:void 0,eventListener:void 0},d=h.next())R=d=d.value,String(d).substring(0,2)==="on"&&E[R]?(V.kebabEventName=Vjb(String(d).substring(2)),V.eventListener=E[R],F.addEventListener(V.kebabEventName,V.eventListener),_.$p(function(C){return function(){F.removeEventListener(C.kebabEventName,
C.eventListener)}}(V))):W[R]=E[R];
if(E.ref){E=_.U(m2w(E.ref));var M=E.next().value,g=E.next().value,t=W.attached.bind(W);W.attached=function(){M(F);t()};
_.$p(function(){g()})}};
m2w=function(F){if(typeof F==="function"){var W;return[function(E){W=F(E)},
function(){var E;(E=W)==null||E()}]}if(!F.onRender||!F.onUnmount)throw Error("Rg");
return[F.onRender,F.onUnmount]};
h5o=function(F,W,E,h,d){h=h===void 0?{}:h;var V=Flo,R=!1;V?(R=!0,Flo=void 0):(Wlb=W,V=document.createElement(W),Wlb=void 0);var M=V;M.usePatchedLifecycles=!0;M.lifecycleIsConnected=!1;V.loggingStatus={};var g=E8R(F,W,V,h,d);_.$p(function(){M.lifecycleIsConnected&&(M.lifecycleIsConnected=!1,g.disconnectedCallback())});
R||KqI(V,g,E,h);return V};
E8R=function(F,W,E,h,d){d=d===void 0?Zje:d;d5Y[W]!=null||(d5Y[W]=d(F,W,h==null?void 0:h.getTemplate,h));var V=d5Y[W],R=V.ctor;d=V.getInitialMethods;var M=V.getPropsToForwardBeforeReady;F=V.getPropsToForwardBeforeRegister;h=V.shouldForwardProp;var g=V.observedAttributes,t=V.shouldLog,C=R(E,{beforeReady:function(){var B=C;B._takeAttributes?B._takeAttributes():B.setPropertiesFromInitialAttributeValues&&B.setPropertiesFromInitialAttributeValues();B=_.U(M(E.polymerController));for(var I=B.next();!I.done;I=
B.next()){var x=_.U(I.value);I=x.next().value;x=x.next().value;P4r(E,I,x);t(W)&&!Y3(I)&&fbY(E.polymerController,I)}E.polymerController=KmS(C,W)}});
E.polymerController=C;E.polymerController.observedAttributes=g;V=_.U(C.getExtraMethodsToForward());for(R=V.next();!R.done;R=V.next())g=_.U(R.value),R=g.next().value,g=g.next().value,J3r(E,R,g);d=_.U(d());for(V=d.next();!V.done;V=d.next())V=V.value,h(V)&&J3r(E,V),t(W)&&!Y3(V)&&abY(C,V);F=_.U(F());for(h=F.next();!h.done;h=F.next())d=_.U(h.value),h=d.next().value,d=d.next().value,P4r(E,h,d);return C};
V_W=function(F,W){return pz===W?(F.isInert=!0,pz="",!0):N4e===W?(F.isInert=!0,N4e="",!0):!1};
U5G=function(F){var W=mV;mV=F;return W};
e5n=function(F){if(Kz.has(F))N4e=F;else if(FP.has(F)&&mV&&R5o(mV)===F){var W;(W=mV)._numRenders!=null||(W._numRenders=0);mV._numRenders++;if(mV._numRenders>1)throw Error("Sg");return mV}};
M_Y=function(F){Kz.has(R5o(F))?N4e=R5o(F):FP.has(R5o(F))&&mV!==F&&(F._isInert=!0)};
R5o=function(F){var W;return(W=F==null?void 0:F.tagName.toLowerCase())!=null?W:""};
g8k=function(F,W){if(F.componentType===kp)throw Error("Tg");FP.add(W);var E=function(){var h=HTMLElement.call(this)||this;h.is=W;if(Wlb===W)return h.isInert=!0,h;h.createElement();return h};
_.k(E,HTMLElement);E.prototype.createElement=function(){if(!this.isInert){Flo=this;var h=_.U(DjW(function(){return _.z(F,null)})).next().value;
Flo=void 0;F3R(this);return h}};
customElements.define(W,E)};
z5W=function(F,W,E,h,d){F.prototype.is=W;(h==null?0:h.useSink)?QJY(F,W,E,h,d):(E=Zje(F,W,E,h),Ojr(E,W));return F};
QJY=function(F,W,E,h,d){GpR();var V=_.GK(function(R){return h5o(F,W,R,Object.assign({},h,{getTemplate:E}),d)},"a");
g8k(V,W);return V};
Cmw=function(F){return!t_e.has(F)};
IHr=function(F,W,E,h){function d(){if(!B){for(var I=new Set(B4k),x=_.U(V.behaviors),A=x.next();!A.done;A=x.next()){A=A.value;for(var X=_.U(Object.getOwnPropertyNames(A)),P=X.next();!P.done;P=X.next()){P=P.value;var b=void 0,l=(b=Object.getOwnPropertyDescriptor(A,P))==null?void 0:b.value;l&&l instanceof Function&&(!t[P]||_.c("polymer_forward_method_killswitch"))&&I.add(P)}}x=_.U(Object.entries(Object.getOwnPropertyDescriptors(F.prototype)));for(A=x.next();!A.done;A=x.next())X=_.U(A.value),A=X.next().value,
X=X.next().value,X.value instanceof Function&&I.add(A);B=I}return B}
var V=Fqr({is:W,disableElementRegistration:!1,getTemplate:E,providers:h==null?void 0:h.providers,reactivityMode:h==null?void 0:h.reactivityMode},F);if((h==null?0:h.allowedProps)||(h==null?0:h.allowedPropsFromBehaviors)){var R,M;V.allowedProps=[].concat(_.x9((R=h.allowedProps)!=null?R:[]),_.x9((M=h.allowedPropsFromBehaviors)!=null?M:[]))}var g=YNG(V,F);W=g.observedAttributes;var t={};E=_.U(V.reactiveSchemas);for(h=E.next();!h.done;h=E.next())if(h=h.value,h.type==="signal")t[h.propertyKey]={readOnly:h.readOnly},
h.readOnly&&(t[AMo(h.propertyKey)]={readOnly:!0});else if(h.type==="compute"||h.type==="computeWithMethod"||h.type==="redux")t[h.propertyKey]={readOnly:!0};var C=V.reactiveSchemas.length,B;return{ctor:function(I,x){I=new g(I);I.beforeReady=x.beforeReady;return I},
props:t,observedAttributes:W,getInitialMethods:d,getPropsToForwardBeforeRegister:function(){for(var I=[],x=new Set,A=_.U(v8G),X=A.next();!X.done;X=A.next())X=X.value,I.push([X,X!=="observers"&&X!=="properties"]),x.add(X);A=_.U(Object.keys(t));for(X=A.next();!X.done;X=A.next())X=X.value,I.push([X,t[X].readOnly]),x.add(X);A=d();X=_.U(Object.keys(Object.getOwnPropertyDescriptors(F.prototype)));for(var P=X.next();!P.done;P=X.next())P=P.value,!Cmw(P)||A.has(P)||x.has(P)||(I.push([P,!1]),x.add(P));I.push(["allowedProps",
!0]);return I},
getPropsToForwardBeforeReady:function(I){var x=[];I=_.U(Object.keys(I));for(var A=I.next();!A.done;A=I.next()){A=A.value;var X=d();Cmw(A)&&!X.has(A)&&x.push([A,!1])}I=_.U(V.reactiveSchemas.slice(C));for(A=I.next();!A.done;A=I.next())A=A.value,A.type!=="compute"&&A.type!=="computeWithMethod"&&A.type!=="redux"&&A.type!=="signal"||x.push([A.propertyKey,A.type==="signal"?A.readOnly:!0]);return x},
shouldForwardProp:Cmw,shouldLog:Bm}};
_.r=function(F,W,E,h){var d,V,R=(V=(d=h)==null?void 0:d.mode)!=null?V:0;h!=null||(h={});var M;(M=h).reactivityMode!=null||(M.reactivityMode=0);R===1&&_.Vy("creator_poly_si_disable_list").includes(W)&&(R=2);return R===1?z5W(F,W,E,Object.assign({},h,{useSink:!0}),IHr):z5W(F,W,E,Object.assign({},h,{useSink:R===2}))};
_.We=function(){return function(F,W,E,h){var d,V,R=(V=(d=h)==null?void 0:d.mode)!=null?V:2;h!=null||(h={});var M;(M=h).reactivityMode!=null||(M.reactivityMode=0);if(R===0)throw Error("Ug`"+R);return QJY(F,W,E,h,R===1?IHr:void 0)}};
_.E6=function(F){return _.c("creator_poly_si_killswitch")?!1:_.c("force_all_poly_si_batches")&&(F==="poly_si_all_on_test_check"||F==="creator_poly_si_batch_050"?0:F)||document.documentElement.hasAttribute("use-signals")?!0:!F||_.c(F+"_holdback_enabled")&&_.c("kevlar_polysi_holdback")?!1:_.c(F)};
hm=function(F){return F?F.icon?F.icon.iconType.toLowerCase():F.customThumbnail?"member":"":""};
cik=function(F){if(!F)return"";F=_.U(F);for(var W=F.next();!W.done;W=F.next())if((W=W.value)&&W.liveChatAuthorBadgeRenderer&&(W=hm(W.liveChatAuthorBadgeRenderer))&&W!=="verified")return W;return""};
D5k=function(F,W){if(!F)return null;var E;return((E=F.find(function(h){return h&&h.liveChatAuthorBadgeRenderer?hm(h.liveChatAuthorBadgeRenderer)===W:!1}))==null?void 0:E.liveChatAuthorBadgeRenderer)||null};
_.qbn=function(F){var W=getComputedStyle(document.querySelector("yt-live-chat-renderer")).backgroundColor;F=x5I(F);W=x5I(W);var E=kWS(F.hex);W=kWS(W.hex);var h=W[0]/255;var d=W[1]/255,V=W[2]/255,R=Math.max(h,d,V),M=Math.min(h,d,V),g=0,t=0,C=.5*(R+M);R!=M&&(R==h?g=60*(d-V)/(R-M):R==d?g=60*(V-h)/(R-M)+120:R==V&&(g=60*(h-d)/(R-M)+240),t=0<C&&C<=.5?(R-M)/(2*C):(R-M)/(2-2*C));h=[Math.round(g+360)%360,t,C];E=AiI(E,W);for(F=sJe(F.hex);E<4.5;){F=h[2]>=.5?F.darker((4.5-E)/2):F.brighter((4.5-E)/2);E=F.toString();
d=LlW(E);if(!d.length)throw Error("Sd`"+E);E=d;E=AiI(E,W)}return F.hex()};
AiI=function(F,W){F=_.FCw(F);W=_.FCw(W);return(Math.max(F,W)+.05)/(Math.min(F,W)+.05)};
_.dh=function(F){return"#"+("000000"+(F&16777215).toString(16)).slice(-6)};
_.$5I=function(F){for(var W=0,E=0;E<F.length;E++)W=F.charCodeAt(E)+((W<<5)-W);F="#";for(E=0;E<3;E++)F+=("00"+(W>>E*8&255).toString(16)).slice(-2);return F};
Z8S=function(F){F=(F||"").split(":");F.length===1&&F.unshift("yt-icons");F[1]=F[1].toLowerCase();return F};
fHR=function(F,W){var E=(W=W===void 0?!1:W)?Xuo:H8I,h=W?Pmk:JiG;F.getIconNames().forEach(function(d){d=W?d:d.substring(d.indexOf(":")+1);F.name==="yt-icons"?aHk.add(d):d.includes("-filled")?E.add(d):h.add(d)})};
Nr=function(F,W,E,h){E=E===void 0?!1:E;h=h===void 0?!1:h;var d,V,R;return _.e(function(M){if(M.nextAddress==1)return _.Q(M,O8r,2);if(h)return M.return(aHk.has(F));d=E?Xuo:H8I;V=E?Pmk:JiG;return W?(R=F.includes("-filled")?F:F.concat("-filled"),M.return(d.has(R))):M.return(V.has(F))})};
_.n8W=function(F){if(b8R(F))return F;var W=F=F.toLowerCase();(F=lHe.get(F))&&(W=F);return W};
_.Vd=function(F){if(b8R(F))return F.toString();var W=yib.get(F);if(W)return W;W=F.toLowerCase();var E="yt-icons",h=W.replace(/_/g,"-");switch(F){case "MY_CHANNEL":W="account_circle";break;case "ADD_TO_LIBRARY":W="add";break;case "ALERT_WARN_RED":W="warning";break;case "ARTIST":case "ARTIST_ANALYTICS":W="person_music";break;case "BLOCK_USER":W="block";break;case "CAPTIONS":W="closed_caption";break;case "CLOSED_CAPTION":E="av";W="closed-caption";break;case "COLLECTION":E="maps";W="layers";break;case "CONTACT":E=
"icons";W="business";break;case "CREATOR_STUDIO_ERROR_ON_LOAD":case "CREATOR_STUDIO_ERROR_ON_LOAD_V2":case "CREATOR_STUDIO_NO_COMMENTS":case "CREATOR_STUDIO_NO_HELD_COMMENTS":case "CREATOR_STUDIO_NO_HELD_COMMENTS_V2":case "CREATOR_STUDIO_NO_SEARCH_MATCH":case "CREATOR_STUDIO_NO_SEARCH_MATCH_V2":E="ytcp-icons";W=h.split("creator-studio-")[1];break;case "DISMISSAL":W="close";break;case "DO_NOT_DISTURB":W="block";break;case "DOGFOOD":E="icons";W="pets";break;case "DRAFT":W="paper_corner_folded";break;
case "EMPTY_LIKE":W="like_outline";break;case "EXIT_APP":W="exit_to_app";break;case "EXPAND_MORE":case "EXPAND_LESS":W=h;break;case "GAMES":E="ytg";W="my-games";break;case "GO_TO_PAGE":W="arrow-forward";break;case "GROUP":E="social";break;case "HIDE":W="not_interested";break;case "INPUT_COMPONENT":E="icons";W="settings-input-component";break;case "KIDS_BLOCK":W="block";break;case "MEMBERSHIP_LIMITED_PRE_PURCHASE":case "MEMBERSHIP_OFFER":E="ytg";W="membership-pre-purchase";break;case "MEMBERSHIP_LIMITED_POST_PURCHASE":E=
"ytg";W="membership-post-purchase";break;case "MULTIVIEW":W="screen_multi_view";break;case "MY_LOCATION":E="maps";W=h;break;case "NOTIFICATIONS_INBOX":W="NOTIFICATIONS";break;case "NEXT":W="chevron_right";break;case "OFFLINE":W="power-settings-new";break;case "PAUSE":E="miniplayer";break;case "PAYMENT":E="icons";break;case "PHONE_DOWNLOAD":W="phone_download";break;case "PREMIUM_STANDALONE":E="yt-logos";W="premium_standalone";break;case "PREMIUM_STANDALONE_CAIRO":E="yt-logos";W="premium_standalone_cairo";
break;case "QUESTION_ANSWER":W="question_answer";break;case "REDEEM":E="icons";W="redeem";break;case "REMOVE":case "REMOVE_FROM_HISTORY":case "REMOVE_FROM_PLAYLIST":W="remove-circle-outline";break;case "SAVE_PLAYLIST":case "LIBRARY_ADD":W="library_add";break;case "SCHOOL":E="yt-sys-icons";W="creator_academy";break;case "SETTINGS_LIGHT":W="settings_applications";break;case "SETTINGS_MATERIAL":W="settings";break;case "SEARCH_HISTORY":W="watch_history";break;case "SHOPPING_BAG":W="bag";break;case "SOCIAL":case "PEOPLE":E=
"yt-icons";W="people";break;case "STAFF_PICK":E="ytg";W="spotlight";break;case "START_DVR":W="add";break;case "STOP_DVR":E="av";W="stop";break;case "TAB_LIKED":W="like";break;case "TAB_INBOX":W="mail";break;case "TERMS_OF_SERVICE":E="icons";W="description";break;case "TRENDING":W="fire";break;case "UNBLOCK_USER":W="remove";break;case "UNPLUGGED_DARK_THEME":E="image";W="brightness-3";break;case "UNPLUGGED_LIVE_GUIDE":case "LIVE":W="live";break;case "UNPLUGGED_SPORTS":E="ytu";W="visibility-off";break;
case "VIDEOS":E="av";W="play-circle-filled";break;case "YOUTUBE":E="yt-logos";W="lozenge";break;case "YOUTUBE_RED_LOGO":case "YOUTUBE_PREMIUM_LOGO":E="yt-logos-ext";W="yt-logo-red-updated";break;case "YOUTUBE_LOGO":E="yt-logos-ext";W="yt-logo-updated";break;case "OFFLINE_NO_CONTENT":E="offline-no-content";break;case "SHORTS_COMMENT":case "SHORTS_DISLIKE":case "SHORTS_LIKE":case "SHORTS_SHARE":E="shorts";W=h;break;case "OUTLINE_YOUTUBE_IMPROVE_TV":E="yt-sys-icons";W="youtube_improve_tv";break;case "OUTLINE_BAG":E=
"yt-sys-icons";W="bag";break;case "QUEUE_PLAY_LAST":E="yt-sys-icons";W="list_queue_last";break;case "SLASH_CIRCLE_LEFT":W="slash_circle_left";break;case "SPEED_1_POINT_2X":W="1_point_2x";break;case "SPEED_1_POINT_5X":W="1_point_5x";break;case "SPEED_1_POINT_8X":W="1_point_8x";break;case "SPEED_POINT_2X":W="point_2x";break;case "SPEED_POINT_5X":W="point_5x";break;case "SPEED_POINT_8X":W="point_8x";break;case "SPEED_1X":W="1x";break;case "SPEED_2X":W="2x";break;case "OUTLINE_CLOCK_HALF_CIRCLE":E="yt-sys-icons";
W="clock_half_circle";break;case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16":case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16":E="yt-sys-icons";W="youtube_shorts_no_triangle-filled";break;case "PLAYABLES_LOGO":E="yt-sys-icons",W="tic_tac_toe"}W=E+":"+W;yib.set(F,W);return W};
b8R=function(F){var W;_.c("kevlar_use_wil_icons")?W=!!_.WZ().resolve(_.U6).resolveIcon({iconName:F.toString()}):W=!1;return W};
_.ei=function(F,W,E,h){E=E===void 0?{}:E;h=h===void 0?!1:h;E===null&&(E={});var d=_.Vy("kevlar_command_handler_command_banlist");d=_.U(d);for(var V=d.next();!V.done;V=d.next())if(V=F?F.hasOwnProperty(V.value):void 0,V)return!1;d=_.D(F.commandMetadata,_.m1);return h&&d!=null&&d.url?!1:!W.disableCommandHandlerOverride&&_.Ru.instance?(h=_.Ru.instance,E.form||(E.form={element:W}),E.form.element||(E.form.element=W),!E.clickedVisualElement&&W.visualElement&&(E.clickedVisualElement=W.visualElement),h.resolveCommand(F,
E),!0):!1};
jJG=function(F,W){F=Mr(F);for(var E=_.U(F.visibilityMonitorKeys||[]),h=E.next();!h.done;h=E.next())W.unobserveByKey(h.value);F.visibilityMonitorKeys=void 0};
o8o=function(F,W){if(_.JR()){if(_.c("kevlar_vimio_use_shared_monitor"))i8k(F,W.data);else if(!i8k(F,W.data))return;var E=W.data,h=riR(E);if(_.c("enable_client_ve_spec_logging"))jJG(F,W.observer);else{var d=Mr(F);d.trackedParams&&d.trackedParams!==h&&jJG(F,W.observer)}d=Mr(F);!E||d.data&&d.data===E||(d.data=E);T4W(F,W);d.trackedParams=h}};
T4W=function(F,W){var E=W.observer;if(!E&&_.c("web_skip_missing_vimio_observer")){var h,d;_.OB(new _.xC("VisibilityObserver is not defined.",F.tagName,F.trackedParams,(h=W.data)==null?void 0:h.trackingParams,(d=W.data)==null?void 0:d.loggingDirectives))}else{var V=W.layer,R=W.visibilityCallback||function(){},M=W.prescanCallback,g=Mr(F);
h=[];W.showOption&&h.push(E.observe(F,function(){W.skipLogging&&W.skipLogging()||_.gh().reportShown(g,void 0,V);R(!0)},W.showOption));
W.hideOption&&h.push(E.observe(F,function(){_.gh().reportHidden(g,void 0,V);R(!1)},W.hideOption));
W.prescanOption&&M&&h.push(E.observe(F,function(){M()},W.prescanOption));
g.visibilityMonitorKeys=h}};
i8k=function(F,W){F=Mr(F);if(F.visualElement&&!W)return!0;if(!W)return!1;var E=!1;if(_.c("enable_client_ve_spec_logging")){var h,d;E=!!((h=W.loggingDirectives)==null?0:(d=h.clientVeSpec)==null?0:d.uiType)}h=riR(W);if(!h&&!E)return!1;_.c("mweb_component_visibility_logging")&&(F.veContainer||(F.veContainer={}),F.veContainer.trackingParams=h);if(F.trackedParams&&F.trackedParams===h)return!1;var V;if(_.c("enable_client_ve_spec_logging")&&((V=F.visualElement)==null?0:V.isClientVe())){var R;V=(R=F.visualElement)==
null?void 0:R.getAsJspb();var M,g,t,C;if(_.Wb(V,2)===((M=W.loggingDirectives)==null?void 0:(g=M.clientVeSpec)==null?void 0:g.uiType)&&_.Wb(V,3,-1)===((t=W.loggingDirectives)==null?void 0:(C=t.clientVeSpec)==null?void 0:C.elementIndex))return!1}if(_.c("enable_client_ve_spec_logging")){var B,I;!F.visualElement&&((B=W.loggingDirectives)==null?0:(I=B.clientVeSpec)==null?0:I.uiType)&&(M=W.loggingDirectives.clientVeSpec,W=M.uiType,R=M.elementIndex,M=M.clientYoutubeData,F.visualElement=_.Qd(_.z4(),{veType:W,
elementIndex:R,clientYouTubeData:M}))}return!0};
riR=function(F){if(F==null?0:F.rendererContext){var W=_.D(F.rendererContext,_.GWR);if(W==null?0:W.loggingDirectives)return W.loggingDirectives.trackingParams}return(F==null?0:F.loggingDirectives)?F.loggingDirectives.trackingParams:F==null?void 0:F.trackingParams};
Mr=function(F){var W;return(W=F.polymerController)!=null?W:F};
SbS=function(F){_.gh();if(_.yn(tm().JSC$10373_elementShouldLogGesture).bind(tm())(F,4)){YbW(F);var W=wuo(F);uro.set(F,W)}};
YbW=function(F){uro.has(F)&&(uro.get(F).cancel("untrack hover element"),uro.delete(F))};
wuo=function(F){var W,E=[],h=!1,d=new _.z5(function(V,R){CK(F,"mouseenter",_.yn(function(){var M,g,t;return _.e(function(C){if(C.nextAddress==1)return W=(0,_.KU)(),M=puo(F),E.push(M),g=m5o(F,function(){h=!0;R(Error("Vg"))}),_.Q(C,M,2);
if(C.nextAddress!=3)return g&&Be(g),t=Klr(F),E.push(t),_.Q(C,t,3);V();_.gG(C)})}))});
d.then(function(){var V=(0,_.KU)()-W;V=Math.round(V);if(!(500>V||6E5<=V)){var R=F.getScreenLayer?F.getScreenLayer():void 0;R=_.JR(R)||"";var M=FnG(_.gh(),F);_.GJ(R,F.visualElement?F.visualElement:_.ve(M),"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{hoverData:{durationHoveredMs:V}})}SbS(F)},function(){Iu&&(Iu(),Iu=null);
h&&(YbW(F),SbS(F))});
return d};
puo=function(F){var W;return(new _.z5(function(E,h){Iu=function(){h(Error("Wg"))};
W=_.P0.debounce(_.yn(function(){Be(d);E()}),1,100);
var d=_.ce(F,"mousemove",W)})).thenCatch(function(){var E=_.P0.cancelDebouncedJobMap.get(W);
E&&_.P0.cancelJob(E)})};
Klr=function(F){var W;return(new _.z5(function(E,h){Iu=function(){h(Error("Xg"))};
W=CK(F,"mouseleave",_.yn(function(){E()}))})).thenCatch(function(){Be(W)})};
m5o=function(F,W){return CK(F,"mouseleave",_.yn(W))};
ESo=function(F){WnY&&_.DA.cancel(WnY);WnY=_.DA.run(function(){_.hF(F,"yt-visibility-refresh");WnY=0})};
hfn=function(F){F=Number(F);return"rgba("+[F>>16&255,F>>8&255,F&255,(F>>24&255)/255].join()+")"};
Njb=function(F){if(!F)return!1;if(_.D(F,_.dxw))return!0;var W;if(F=(W=_.D(F,_.Mc))==null?void 0:W.commands)for(W=_.U(F),F=W.next();!F.done;F=W.next())if(_.D(F.value,_.dxw))return!0;return!1};
V4w=function(F){var W=!0;W=W===void 0?!0:W;if(!F.useSignals&&!F.experimentalPropertiesChanged||_.c("experimental_templating_behavior_nopatch_killswitch")){var E=F._propertiesChanged;F._propertiesChanged=function(h,d,V){W?F.debounceRender():F.doRender();E&&E.call(F,h,d,V)}}};
Uxo=function(F,W){if(F.useSignals||F.experimentalPropertiesChanged)if(_.c("experimental_templating_behavior_nopatch_killswitch"))F.experimentalPropertiesChanged=function(){};
else return;var E=new Set,h=[F].concat(_.x9(F.behaviors));h=_.U(h);for(var d=h.next();!d.done;d=h.next()){d=d.value;for(var V in d.properties)E.has(V)||(F._addPropertyEffect(V,"function",W),E.add(V))}};
Rfn=function(){var F=Polymer.Element,W=F._prepareTemplate;F._prepareTemplate=function(){W.call(this);var E=this.prototype;if(E.experimentalTemplatingInUse&&E.experimentalTemplatingInUse()&&E.switchTemplateAtRegistration&&this.template!==void 0)if(typeof this.template==="string")_.a_(Error("Yg"));else{E=this.template.content.childNodes;for(var h=E.length-1;h>=0;h--){var d=E[h];d.nodeName!=="STYLE"&&d.nodeName!=="LINK"&&d.nodeName!=="SCRIPT"&&d.nodeName!=="#comment"&&d.remove()}}}};
efr=function(F){var W=!0;W=W===void 0?!0:W;Rfn();var E=F.ready;F.ready=function(){this._template=null;E.call(this)};
Uxo(F,W?F.debounceRender:F.doRender)};
gSY=function(F,W,E){if(E===null||E===void 0)return E;var h=Qre(F.tagName.toLowerCase(),W,function(){throw Error("Qb");});
if(h===null)return E;h=M4Y[h];var d;if((d=h.isUnwrappable)==null?0:d.call(h,E)){if(h.unwrap)return h.unwrap(E);throw Error("ah");}return h.filterString?h.filterString(F.tagName,W,String(E)):E};
QRr=function(F,W,E){var h=W[W.length-1]!=="$",d=gSY(F,W,E);if(h)if(typeof d==="function"&&W.startsWith("reactiveon")&&W===W.toLowerCase()){var V=ug;kXG(F,W.slice(8),function(R){PX(V,function(){d(R)})})}else F[W]=d;
else E=d==null?null:String(d),x1k(F,W.slice(0,-1),E)};
kT=function(F){zfr.length===0&&requestAnimationFrame(function(){setTimeout(function(){var W=zfr.slice();zfr.length=0;W=_.U(W);for(var E=W.next();!E.done;E=W.next()){E=E.value;try{E()}catch(h){_.xT(h)}}})});
zfr.push(F)};
t4r=function(F){if(F){var W=F.component;if(W){var E;W==null||(E=W.events)==null||E.publish("DISCONNECTED");var h;W==null||(h=W.onDisconnected)==null||h.call(W)}var d,V;(d=F.__spec)==null||(V=d.didUnmount)==null||V.call(d);for(W=0;W<F.childNodes.length;W++)t4r(F.childNodes[W])}};
s6=function(F,W,E){var h=W&&W.key,d=Gi;d[0]=F;d[1]=h;d[2]=void 0;for(var V in W)W.hasOwnProperty(V)&&(F=W[V],h=uu,h.push(V),h.push(F));W=Gi;a:{if(V=Gi[2])for(F=0;F<V.length;F+=2)if(V[F]==="nonce"){V=V[F+1];break a}V=""}V=OMo(W[0],W[1],V);F=Oi(V);h=W[2];if(!F.staticsApplied&&(F.staticsApplied=!0,h&&h.length))if((d=F._attrsArr)&&d.length){for(d=0;d<h.length;d+=2)Am[h[d]]=d+1;d=F._attrsArr||(F._attrsArr=D1b(0));for(var R=0,M=0;M<d.length;M+=2){var g=d[M],t=d[M+1],C=Am[g];C?h[C]===t&&delete Am[g]:(d[R]=
g,d[R+1]=t,R+=2)}ay(d,R);for(var B in Am)$1n(V,B,h[Am[B]],Kn),delete Am[B]}else for(B=0;B<h.length;B+=2)$1n(V,h[B],h[B+1],Kn);rHr(V,F,Kn);ay(W,0);E&&E(bu);bMI()};
Cto=function(F){var W=F.toString().toLowerCase();return function(E,h){s6(W,E,h)}};
_.LK=function(F,W,E){E===void 0?delete F[W.name]:F[W.name]=E};
_.qr=function(F){var W={androidIncludeFontPadding:!1},E=0,h=[],d=[],V=[];if(F.simpleText)return W.content=F.simpleText,W;if(F.runs===void 0)return W.content="",W;F=_.U(F.runs);for(var R=F.next();!R.done;R=F.next()){R=R.value;var M=R.text,g=void 0,t=(g=M)==null?void 0:g.length;if(M&&t){h.push(M);if(R.bold||R.italics||R.strikethrough||R.underline||R.textColor!=null&&R.textColor!==0||R.deemphasize){M=d;g=M.push;var C={startIndex:E,length:t};R.bold&&(C.weightLabel="FONT_WEIGHT_MEDIUM");R.italics&&(C.italic=
!0);R.strikethrough&&(C.strikethrough="LINE_STYLE_SINGLE");R.underline&&(C.underline="LINE_STYLE_SINGLE");R.textColor!=null&&R.textColor!==0?document.documentElement.hasAttribute("dark")?C.fontColor=R.darkModeTextColor||R.textColor:C.fontColor=R.textColor:R.deemphasize&&(document.documentElement.hasAttribute("dark")?C.fontColor=parseInt("ff"+Bjk("#aaa").substring(1),16):C.fontColor=parseInt("ff"+Bjk("#606060").substring(1),16));g.call(M,C)}R.navigationEndpoint&&(M=V,g=M.push,C={startIndex:E,length:t,
onTap:{innertubeCommand:R.navigationEndpoint}},R.loggingDirectives&&_.LK(C,vSb,R.loggingDirectives),g.call(M,C));E+=t}}W.content=h.join("");W.styleRuns=d.length?d:void 0;W.commandRuns=V.length?V:void 0;return W};
cIo=function(F){if(F==null||!F.runs)return!0;F=_.U(F.runs);for(var W=F.next();!W.done;W=F.next())if(W=W.value,W.bracket||W.errorUnderline||W.deemphasize||_.D(W,$T)||_.D(W,IOY))return!1;return!0};
DxY=function(F,W){return function(E){var h=W.unit;if(h!==E)throw Error("dh`"+F+"`"+h+"`"+E);return W}};
ZA=function(F){if(!((F==null?0:F.value)&&(F==null?0:F.unit)))return"";switch(F.unit){case "DIMENSION_UNIT_FRACTION":var W="%";break;default:W="px"}F=F.value;W==="%"&&(F*=100);return""+F+W};
xxo=function(F){try{return F()}catch(W){_.OB(W)}};
_.He=function(F){var W=_.D(F,_.XP);if(W)return W;if((W=_.D(F,kZo))&&W.commands)return AIr(W.commands);if((W=_.D(F,sRk))&&W.commands)return AIr(W.commands);if((F=_.D(F,Lnw))&&F.identifier&&F.command&&(qvn||(qvn=[]),!qvn.includes(F.identifier)))return qvn.push(F.identifier),_.D(F.command,_.XP)};
AIr=function(F){if(F.length!==0){var W=[];F=_.U(F);for(var E=F.next();!E.done;E=F.next())(E=_.He(E.value))&&W.push(E);return{commandExecutorCommand:{commands:W}}}};
_.Jm=function(F){var W=F.defaultTarget,E=F.elementConfig,h=F.elementsCommand,d=F.skipOnClick,V=F.forceNewState,R=F.additionalCommandArgs,M=F.innertubeCommand||_.He(h);if(M){F={};var g=$xe(M);h=g.navigatingCommand;g=g.href;h&&g?(F.href$=g,ZsI(F,h,g,W),_.c("web_atagconfig_pointerdown")&&XqW(F,h),V&&(F["force-new-state$"]=!0)):(F.role$="button",F.href$="javascript:void(0);");_.D(M,Hse)&&(F["aria-haspopup$"]=!0);d||(F.onclick=function(t){if(PtY(t)){var C=Object.assign({},{form:{element:t.target,event:t}},
R);t.preventDefault();_.Pe(M,C)}});
return Object.assign({},E,F)}};
JIR=function(F){if(F.length){if(F.length===1)return F[0];var W={};_.LK(W,_.Mc,{commands:F});return W}};
au=function(F){return F&&F.href$!=="javascript:void(0);"};
$xe=function(F){var W,E=((W=_.D(F,_.Mc))==null?void 0:W.commands)||[F];F=_.U(E);for(W=F.next();!W.done;W=F.next()){W=W.value;var h=void 0,d=void 0;E=(d=_.D((h=W)==null?void 0:h.commandMetadata,_.m1))==null?void 0:d.url;_.c("web_remove_web_navigation_endpoint_data")||(h=void 0,E=E||((h=_.D(W,aOS))==null?void 0:h.url));if(E&&E!=="/service_ajax"){if(h=Bp(E,fOW))return F=_.ty(h),{navigatingCommand:W,href:F};_.OB(new _.xC("AttributedString URL could not be sanitized",E))}}return{}};
PtY=function(F){return F.button!==void 0?F.button===0&&!(F.shiftKey||F.altKey||F.metaKey||F.ctrlKey):!(F.shiftKey||F.altKey||F.metaKey||F.ctrlKey)};
ZsI=function(F,W,E,h){E=!m0(E);var d,V,R;if((d=_.D(W,_.BB))!=null&&d.nofollow||(V=_.D(W,_.GM))!=null&&V.nofollow||(R=_.D(W,_.T5))!=null&&R.nofollow||E)F.rel$="nofollow";var M;W=((M=_.D(W,_.T5))==null?void 0:M.target)==="TARGET_NEW_WINDOW"?"_blank":h===void 0?"":h;F.target$=W};
XqW=function(F,W){W.clickTrackingParams&&(F.params={itct:W.clickTrackingParams});F.onpointerdown=function(E){Osr(E)};
F._data=W};
bsb=function(F){(F.loggingUrls||[]).forEach(function(W){re(W.baseUrl,W.attributionSrcMode)})};
lOr=function(F){F.currentTarget._data&&bsb(F.currentTarget._data)};
Osr=function(F){var W=F.currentTarget;F=xxo(function(){return W.href});
var E=W.params;F&&_.Sr(F,E||{},8,!0)};
nSI=function(F,W){if(W=_.D(W,_.T5))(W==null?void 0:W.target)==="TARGET_NEW_WINDOW"&&(F.target="_blank"),W.nofollow&&(F.rel="nofollow")};
yII=function(F){F=_.D(F==null?void 0:F.commandMetadata,_.m1);return(F==null?0:F.url)?F.url:null};
_.fK=function(F,W){(F=_.He(F))&&_.Pe(F,W)};
_.Pe=function(F,W){$Qo(function(E){W?E.resolveCommand(F,W):E.resolveCommand(F)})};
Tjn=function(F,W){var E=["yt-core-attributed-string__link"];W!=null&&W.noLinkColor||((W==null?0:W.isOverlay)?E.push("yt-core-attributed-string__link--overlay-call-to-action-color"):E.push("yt-core-attributed-string__link--call-to-action-color"),(W==null?0:W.linkInheritColor)&&E.push("yt-core-attributed-string--link-inherit-color"));E={className:E.join(" "),tabindex$:"0"};var h=F.onTap||F.onLongPress;if(!h)return E;var d=jRG(F);d&&(E["aria-label$"]=d);W=_.Jm({elementsCommand:h,elementConfig:E,skipOnClick:!(W==
null||!W.skipOnClick),forceNewState:!0});F.onLongPress&&(h=new isG(function(){var V=_.He(F.onLongPress);V&&_.WZ().resolve(_.EJ).resolveCommand(V)}),W&&rIS(h,W));
return W||E};
jRG=function(F){var W,E;return(W=F.onTapOptions)==null?void 0:(E=W.accessibilityInfo)==null?void 0:E.accessibilityLabel};
oSe=function(F){var W=F;F<=16777215&&(W+=parseInt("ff000000",16));return _.XC(W)};
GZo=function(F){var W=F.isDarkTheme;var E=F.extension;F=F.runColor;var h=void 0;if(E=E==null?void 0:E.colorMap){W=W?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";E=_.U(E);for(var d=E.next();!d.done;d=E.next())if(d=d.value,W===d.key){h=d.value;break}}h==null&&F&&(h=F);if(h)return oSe(h)};
O6=function(F){var W=F.config;var E=F.image;var h=F.imageConfig;var d=F.imageWrapperConfig;var V=F.run;var R=F.tag;var M=F.textLength;var g=F.startIndex===void 0?0:F.startIndex;F=F.length;g===void 0&&(g=0);V={run:V,startIndex:g,endIndex:F!==void 0?g+F:M,tag:R};E&&(V.image=E);h&&(V.imageConfig=h);d&&(V.imageWrapperConfig=d);W&&(V.config=W);return V};
wqo=function(F,W){var E=[];E.push("yt-core-attributed-string");(W==null?0:W.className)&&E.push(W==null?void 0:W.className);(W==null?0:W.ellipsisTruncate)?E.push("yt-core-attributed-string--ellipsis-truncate"):(W==null?0:W.noWrap)?E.push("yt-core-attributed-string--white-space-no-wrap"):(W==null?0:W.noPreWrap)||E.push("yt-core-attributed-string--white-space-pre-wrap");(W==null?0:W.linkInheritColor)&&E.push("yt-core-attributed-string--link-inherit-color");F.alignment&&E.push(Yvb(F.alignment));F.lineBreakMode&&
E.push("yt-core-attributed-string--word-wrapping");return E.join(" ")};
uXR=function(F){if(F.weight)return F.weight;switch(F.weightLabel){case "FONT_WEIGHT_THIN":return 100;case "FONT_WEIGHT_EXTRA_LIGHT":return 200;case "FONT_WEIGHT_LIGHT":return 300;case "FONT_WEIGHT_MEDIUM":return 500;case "FONT_WEIGHT_SEMI_BOLD":return 600;case "FONT_WEIGHT_BOLD":return 700;case "FONT_WEIGHT_EXTRA_BOLD":return 800;case "FONT_WEIGHT_BLACK":return 900;default:return 400}};
SvG=function(F){switch(F){case "LINE_STYLE_DOT":return"yt-core-attributed-string--line-style-dot";case "LINE_STYLE_NONE":return"yt-core-attributed-string--line-style-none";default:return"yt-core-attributed-string--line-style-single"}};
Yvb=function(F){switch(F){case "TEXT_ALIGNMENT_LEFT":return"yt-core-attributed-string--text-alignment-left";case "TEXT_ALIGNMENT_RIGHT":return"yt-core-attributed-string--text-alignment-right";case "TEXT_ALIGNMENT_CENTER":return"yt-core-attributed-string--text-alignment-center";case "TEXT_ALIGNMENT_JUSTIFIED":return"yt-core-attributed-string--text-alignment-justified";case "TEXT_ALIGNMENT_LAYOUT_START":return"yt-core-attributed-string--text-alignment-layout-start";default:return"yt-core-attributed-string--text-alignment-unknown"}};
mxo=function(F,W,E){var h=W;F.content&&E&&(E=F.content.indexOf("\n"),E!==-1&&(h=Math.min(W,E)));if(!F.content||F.content.length<=h)W=F;else if(F.attachmentRuns||F.commandRuns||F.decorationRuns||F.styleRuns||F.paragraphStyleRuns){W=bH(F.content,h);E=h;var d=F.attachmentRuns;if(d){var V=[];d=_.U(d);for(var R=d.next();!R.done;R=d.next())R=Object.assign({},R.value),R.startIndex===void 0||R.startIndex>=E||(R.length||(R.length=0),R.length+R.startIndex>E&&(R.length=E-R.startIndex),V.push(R));E=V}else E=
void 0;V=pqb(h,F.commandRuns);d=h;var M=F.decorationRuns;if(M){R=[];M=_.U(M);for(var g=M.next();!g.done;g=M.next()){g=g.value;var t=_.D(g.textDecorator,lH);if(t&&t.startIndex!==void 0&&!(t.startIndex>=d)){g=Object.assign({},g,{textDecorator:{highlightTextDecorator:Object.assign({},t)}});t=_.D(g.textDecorator,lH);if(!t.length||t.length+t.startIndex>d)t.length=d-t.startIndex;R.push(g)}}d=R}else d=void 0;R=pqb(h,F.styleRuns);if(M=F.paragraphStyleRuns)for(F=[],M=_.U(M),g=M.next();!g.done;g=M.next()){var C=
g.value;g=Object.assign({},C);if(!(g.startIndex===void 0||g.startIndex>=h)){if(!g.length||g.length+g.startIndex>h)g.length=h-g.startIndex;t=[];var B=void 0,I=void 0;if((B=C)==null?0:(I=B.listGroup)==null?0:I.listItems)for(C=_.U(C.listGroup.listItems),B=C.next();!B.done;B=C.next())if(B=Object.assign({},B.value),!(B.startIndex===void 0||B.startIndex>=h)){if(!B.length||B.length+B.startIndex>h)B.length=h-B.startIndex;t.push(B)}t.length>0&&(g.listGroup||(g.listGroup={}),g.listGroup=Object.assign({},g.listGroup,
{listItems:t}));F.push(g)}}else F=void 0;W={content:W,attachmentRuns:E,commandRuns:V,decorationRuns:d,styleRuns:R,paragraphStyleRuns:F}}else W=Object.assign({},F,{content:bH(F.content,h)});return W};
pqb=function(F,W){if(W){var E=[];W=_.U(W);for(var h=W.next();!h.done;h=W.next())if(h=Object.assign({},h.value),!(h.startIndex===void 0||h.startIndex>=F)){if(!h.length||h.length+h.startIndex>F)h.length=F-h.startIndex;E.push(h)}return E}};
bH=function(F,W){var E=W,h;if(h=E>0)h=F.charCodeAt(E-1),h=h>=55296&&h<=56319;h&&(E=F.charCodeAt(E),h=E>=56320&&E<=57343);h&&--W;return F.substring(0,W)};
Eqe=function(F,W,E){E=E===void 0?Knb:E;if(F){var h=_.WZ().resolve(Ws);h||_.c("mweb_no_observer_killswitch")?o8o(F,{data:W,observer:h,visibilityCallback:E,hideOption:FIS,showOption:WIr,layer:F.layer}):_.OB(new _.xC("Warning: monitorVisibility called with null observer",F.tagName,W==null?void 0:W.loggingDirectives,W==null?void 0:W.trackingParams))}else _.OB(new _.xC("Warning: monitorVisibility called with null element",W==null?void 0:W.loggingDirectives,W==null?void 0:W.trackingParams,W==null?void 0:
W.rendererContext))};
eVk=function(F,W){var E=[],h=F.content.length,d,V=(d=_.WZ().resolve(_.Fd(_.nK)))==null?void 0:d();if(F.paragraphStyleRuns){d=_.U(F.paragraphStyleRuns);for(var R=d.next();!R.done;R=d.next()){var M=E.push,g=M.apply;var t=void 0;R=R.value;if((t=R.listGroup)!=null&&t.listItems){t=[];b:switch(R.listGroup.listType){case "LIST_TYPE_BULLET":var C="ul";break b;default:C="span"}t.push(O6({run:R,textLength:h,tag:C,config:{className:"yt-core-attributed-string__list-group"},startIndex:R.startIndex,length:R.length}));
C=_.U(R.listGroup.listItems);for(var B=C.next();!B.done;B=C.next()){B=B.value;b:switch(R.listGroup.listType){case "LIST_TYPE_BULLET":var I="li";break b;default:I="span"}t.push(O6({run:R,textLength:h,tag:I,startIndex:B.startIndex,length:B.length}))}R=t}else R=[];g.call(M,E,_.x9(R))}}if(F.styleRuns&&(W==null||!W.noStyleRuns))for(d=_.U(F.styleRuns),M=d.next();!M.done;M=d.next()){M=M.value;g=GZo({extension:_.D(M.styleRunExtensions,hVn),isDarkTheme:V===void 0?!1:V,runColor:M.fontColor});t=[];g&&t.push("yt-core-attributed-string--link-inherit-color");
M.italic&&t.push("yt-core-attributed-string--italicized");M.underline&&M.strikethrough?t.push("yt-core-attributed-string--underline-strikethrough",SvG(M.underline)):M.underline?t.push("yt-core-attributed-string--underlined",SvG(M.underline)):M.strikethrough&&t.push("yt-core-attributed-string--strikethrough",SvG(M.strikethrough));if(M.baselineOffset){a:switch(M.baselineOffset){case "BASELINE_OFFSET_SUBSCRIPT":R="yt-core-attributed-string--baseline-offset-subscript";break a;case "BASELINE_OFFSET_SUPERSCRIPT":R=
"yt-core-attributed-string--baseline-offset-superscript";break a;default:R="yt-core-attributed-string--baseline-offset-unknown"}t.push(R)}R=t.join(" ");t=M;C={};if(t.weight||t.weightLabel)C.fontWeight=uXR(t).toString();g&&(C.color=g);E.push(O6({run:M,textLength:h,tag:"span",config:{className:R,style:C},startIndex:M.startIndex,length:M.length}))}if(F.decorationRuns)for(d=_.U(F.decorationRuns),M=d.next();!M.done;M=d.next())M=M.value,g={},M.textDecorator&&(C=M.textDecorator,R=V===void 0?!1:V,B=[],t=
_.D(C,lH),C=_.D(C,d7o),t?(C=B,B=C.concat,I=[],(R=GZo({extension:_.D(t.highlightTextDecoratorExtensions,Nmb),isDarkTheme:R,runColor:t.backgroundColor}))&&I.push("background-color: "+R+";"),t.backgroundCornerRadius!==void 0&&I.push("border-radius: "+t.backgroundCornerRadius+"px;"),t.leftPadding!==void 0&&I.push("padding-left: "+t.leftPadding+"px;"),t.rightPadding!==void 0&&I.push("padding-right: "+t.rightPadding+"px;"),t.topPadding!==void 0&&I.push("padding-top: "+t.topPadding+"px;"),t.bottomPadding!==
void 0&&I.push("padding-bottom: "+t.bottomPadding+"px;"),B=B.call(C,I)):C&&(t=B,B=t.concat,R=R?"#2ba640":"#107516",R=C.color?oSe(C.color):R,R=["padding: 2px;","border-top: solid "+R+" 2px;","border-bottom: solid "+R+" 2px;","background: linear-gradient(135deg, "+R+" 3px, rgba(0, 0, 0, 0) 3px),\n      linear-gradient(315deg, "+R+" 3px, rgba(0, 0, 0, 0) 3px);"],B=B.call(t,R)),R=B.join(" "),g.style$=R,R=M.textDecorator,t=[],C=_.D(R,d7o),_.D(R,lH)?t.push("yt-core-attributed-string--highlight-text-decorator"):
C&&t.push("yt-core-attributed-string--bracket-text-decorator"),R=t.join(" "),g.className=R,g.dir="auto"),R=_.D(M.textDecorator,lH),t=_.D(M.textDecorator,d7o),C=_.D(M.textDecorator,lH),B=_.D(M.textDecorator,d7o),E.push(O6({run:M,textLength:h,tag:"span",config:g,startIndex:(R==null?void 0:R.startIndex)||(t==null?void 0:t.startIndex)||0,length:(C==null?void 0:C.length)||(B==null?void 0:B.length)||0}));if(F.commandRuns&&(W==null||!W.noEndpoints))for(V=_.U(F.commandRuns),d=V.next();!d.done;d=V.next())d=
d.value,M=Tjn(d,W),E.push(O6({run:d,textLength:h,tag:"a",config:M,startIndex:d.startIndex,length:d.length}));if(F.attachmentRuns)for(F=_.U(F.attachmentRuns),V=F.next();!V.done;V=F.next()){V=V.value;g=M=void 0;d={className:"yt-core-attributed-string--inline-block-mod"};if((g=V.element)==null?0:g.properties){g=(M=V.element)==null?void 0:M.properties;M=[];g=_.D(g,Vqr);if(g==null?0:g.margin)g=g.margin,g.left&&M.push("margin-left: "+ZA(g.left)+";"),g.right&&M.push("margin-right: "+ZA(g.right)+";"),g.top&&
M.push("margin-top: "+ZA(g.top)+";"),g.bottom&&M.push("margin-bottom: "+ZA(g.bottom)+";");M=M.length!==0?M.join(" "):void 0;d.style$=M}R=void 0;M={alt:"",preserveHeight:!0,preserveWidth:!0};g=["yt-core-attributed-string__image-element"];if(V.alignment){a:switch(V.alignment){case "ALIGNMENT_BASELINE":t="yt-core-attributed-string__image-element--image-alignment-baseline";break a;case "ALIGNMENT_VERTICAL_CENTER":t="yt-core-attributed-string__image-element--image-alignment-vertical-center";break a;default:t=
"yt-core-attributed-string__image-element--image-alignment-bottom"}g.push(t)}if((R=V.element)==null?0:R.properties)R=[],t=_.D(V.element.properties,Vqr),(t==null?0:t.height)&&R.push("height: "+ZA(t.height)+";"),(t==null?0:t.width)&&R.push("width: "+ZA(t.width)+";"),R=R.length!==0?R.join(" "):void 0,M.style$=R,t=void 0,R=((t=_.D(V.element.properties,U7Y))==null?void 0:t.label)||"",M.alt=R;M.className=g.join(" ");g=void 0;C=t=void 0;R=((C=V.element)==null?0:C.type)?(t=_.D(V.element.type,RVY))==null?
void 0:t.image:void 0;E.push(O6({run:V,textLength:h,tag:"img",image:R,imageConfig:M,imageWrapperConfig:d,startIndex:V.startIndex,length:(g=V.length)!=null?g:0}))}if(W==null?0:W.headerRuns)for(W=_.U(W.headerRuns),F=W.next();!F.done;F=W.next())if(F=F.value,F.headerMapping&&["ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3"].includes(F.headerMapping)){a:{switch(F.headerMapping){case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1":V=
"yt-core-attributed-string--heading-1";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2":V="yt-core-attributed-string--heading-2";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3":V="yt-core-attributed-string--heading-3";break a}V=void 0}E.push(O6({run:F,textLength:h,tag:"span",config:V?{className:V}:void 0,startIndex:F.startIndex,length:F.length}))}return E};
_.yd=function(F){return(F==null?void 0:F.content)!==void 0};
Mqr=function(F){return _.yd(F)?F:_.qr(F)};
gqG=function(F){return F.image!==void 0&&F.imageConfig!==void 0};
Q1Y=function(F,W){if(W==null?0:W.userInput)for(F=_.U(F),W=F.next();!W.done;W=F.next())if(W=W.value,W.tag!=="a"&&W.tag!=="li"){var E=void 0;(E=W).config||(E.config={});W.config.dir=W.tag==="ul"?_.WZ().resolve(_.ji):"auto"}};
zVw=function(F){return function(W){var E=F.run;(E.onTap!==void 0||E.onLongPress!==void 0)&&_.D(E,vSb)&&Eqe(W,{loggingDirectives:_.D(E,vSb)})}};
tqb=function(F){return function(W){for(var E in F)(Kn[E]||Kn[fd["default"]])(W,E,F[E])}};
I$Y=function(F,W){CTY(W);var E={data:null,start:0,end:F.length,parts:[]};W=_.U(W);for(var h=W.next();!h.done;h=W.next())h=h.value,Bmo(E,h.startIndex,h.endIndex,h);vqb(F,E);return E};
Bmo=function(F,W,E,h){for(var d=_.U(F.parts),V=d.next();!V.done;V=d.next()){V=V.value;if(typeof V==="string")throw Error("fh");if(V.start<=W&&E<=V.end){Bmo(V,W,E,h);return}}F.parts.push({data:h,parts:[],start:W,end:E})};
vqb=function(F,W){for(var E=W.parts.length;E>=0;E--){var h=W.parts[E],d=W.parts[E-1],V=E===W.parts.length?W.end:h.start;d=E===0?W.start:d.end;V!==d&&W.parts.splice(E,0,F.slice(d,V));h&&vqb(F,h)}};
CTY=function(F){F.sort(function(W,E){if(W.startIndex<E.startIndex)return-1;if(E.startIndex<W.startIndex)return 1;W=W.endIndex-W.startIndex;E=E.endIndex-E.startIndex;return W>E?-1:E>W?1:0})};
_.ceR=function(F){var W=F.thumbnails;if(W){F={sources:[]};W=_.U(W);for(var E=W.next();!E.done;E=W.next()){E=E.value;var h={};h.url=E.url;h.width=E.width;h.height=E.height;F.sources.push(h)}return F}};
D7w=function(F,W,E,h){if(!W)return F.length>=1?F[F.length-1]:null;if(h)for(var d=_.U(F),V=d.next();!V.done;V=d.next()){V=V.value;var R=void 0,M=(R=V.url)==null?void 0:R.indexOf(h);if(M!==void 0&&M>=0)return V}h=_.U(F);for(d=h.next();!d.done;d=h.next())if(d=d.value,d.width&&d.height&&(E&&d.width>=W||!E&&d.height>=W))return d;for(W=F.length-1;W>=0;W--)if(E&&F[W].width||!E&&F[W].height)return F[W];return F[0]};
_.x7b=function(F){var W;return(F=(W=F.sources)==null?void 0:W[0])?F.width/F.height:0};
_.klR=function(F){if(F.sources){F=_.U(F.sources);for(var W=F.next();!W.done;W=F.next()){W=W.value;var E=void 0;if((E=W.clientResource)==null?0:E.imageName)return W}}};
Aeb=function(F){var W;if((W=F.clientResource)!=null&&W.imageColor)return _.XC(F.clientResource.imageColor)};
_.LIn=function(F,W,E,h,d,V,R){if(!W||W.length===0||W[0].clientResource)return null;if(E&&W[0].url)return W[0].url;h===void 0&&(h=!0);if(h){var M;F=s1I*(d||(F==null?void 0:(M=F.getBoundingClientRect())==null?void 0:M.width)||0)}else{var g;F=s1I*(V||(F==null?void 0:(g=F.getBoundingClientRect())==null?void 0:g.height)||0)}W=D7w(W,F,h,R);return(W==null?0:W.url)?W.url:(W==null?0:W.imageData)?W.imageData:null};
qxe=function(F,W,E){E=E?[E]:[];F.opacity&&E.push("opacity: "+F.opacity+";");W&&F.placeholderColor?(F=_.XC(F.placeholderColor),E.push("background-color: "+F+";")):E.push("background-color: transparent;");return E.join(" ")};
$7w=function(F,W,E,h,d){var V=["yt-core-image"];W&&V.push(W);E||V.push("yt-core-image--fill-parent-height");h||V.push("yt-core-image--fill-parent-width");switch(F.contentMode){case "CONTENT_MODE_SCALE_ASPECT_FIT":V.push("yt-core-image--content-mode-scale-aspect-fit");break;case "CONTENT_MODE_SCALE_ASPECT_FILL":V.push("yt-core-image--content-mode-scale-aspect-fill");break;case "CONTENT_MODE_CENTER":V.push("yt-core-image--content-mode-center");break;default:V.push("yt-core-image--content-mode-scale-to-fill")}F.flipForRtlLayout&&
V.push("yt-core-image--flip-rtl");switch(d){case "TOP_START":var R;V.push(((R=document.body)==null?void 0:R.getAttribute("dir"))==="rtl"?"yt-core-image--object-position-top-right":"yt-core-image--object-position-top-left")}return V.join(" ")};
Xjo=function(F){var W;if(F==null?0:(W=F.clientResource)==null?0:W.imageName){var E;F=(E=F.clientResource)==null?void 0:E.imageName;a:{switch(F){case "yt_premium_wordmark_header_light":case "yt_premium_wordmark_header_dark":E="yt-logos-ext:yt-logo-red-updated";break a;case "yt_wordmark_header_light":case "yt_wordmark_header_dark":E="yt-logos-ext:yt-logo-updated";break a}E=void 0}return E||ZRo.get(F)||F}};
iH=function(F){return _.c("mweb_wiz_skip_render")?HRI(F):PTo(F)};
HRI=function(F){return function(W){var E=OMo("wink-root");oy();bMI();FAY(E,_.z(F,W))}};
PTo=function(F){var W=W===void 0?!1:W;return function(E){if(!W||!_.c("mweb_skip_keto_to_c3_if_no_data")||E.data!==void 0){var h=h8(!1);try{var d=E.children;_.c("mweb_render_outside_patch_killswitch")||bu?d?mR(_.z(F,E,d)):mR(_.z(F,E)):_.OB(new _.xC("ketoToC3 called outside of a patch",{tagName:F.TAG_NAME}))}finally{h8(h)}}}};
JeS=function(){return window.matchMedia&&window.matchMedia("(orientation: landscape)").matches};
f$I=function(F,W){F.onViewportEntered=W;a$w.observe(F)};
ORk=function(){var F={rootMargin:"10%",threshold:.01};_.c("mweb_enable_set_io_root_to_null_safari")?F.root=null:_.c("mweb_enable_set_io_root_to_body_safari")&&(F.root=document.body);return new IntersectionObserver(function(W,E){W.filter(function(h){return h.intersectionRect.height>0}).forEach(function(h){h=h.target;
if(!_.c("mweb_enable_only_update_image_when_connected")||h.isConnected!==!1){var d;(d=h.onViewportEntered)==null||d.call(h);E.unobserve(h)}})},F)};
bRY=function(F,W,E,h,d){function V(){if(h){var M=h.loadedClass,g=h.notifyOnUnloaded;M&&_.rh(F,M);g&&F.dispatchEvent(new Event("image-unloaded",{bubbles:!0,composed:!0}))}}
function R(){var M=E(W,F);M&&F.getAttribute("src")!==M&&(_.c("mweb_enable_only_update_image_when_connected")&&F.isConnected===!1||M===F.src||(F.src=M),V())}
d=d===void 0?!0:d;F.removeAttribute("src");V();W&&(d?f$I(F,R):R())};
l$k=function(F,W,E){if(!W)return!1;W=E(W,F);E=F.getAttribute("src");return W&&W===E&&F.complete};
nqr=function(F,W){for(var E in W)E==="className"?F.className=W[E]:(Kn[E]||Kn[fd.default])(F,E,W[E])};
yer=function(F,W,E,h){iH(_.T4)({contentMode:W.contentMode,loadedClass:W.loadedClass,isPreloaded:W.isPreloaded,notifyOnLoaded:W.notifyOnLoaded,notifyOnUnloaded:W.notifyOnUnloaded,preferredThumbnail:W.preferredThumbnail,preserveHeight:W.preserveHeight,preserveWidth:W.preserveWidth,objectPosition:W.objectPosition,targetWidth:W.targetWidth,targetHeight:W.targetHeight,shouldShowPlaceholder:W.shouldShowPlaceholder,useWidth:W.useWidth,alt:W.alt,className:W.className,onerror:W.onerror,onload:W.onload,style$:W.style$,
color:W.color,width:W.width,height:W.height,"aria-hidden$":W["aria-hidden$"],draggable:W.draggable,"data-disabled$":W["data-disabled$"],data:F,callback:E,renderLazy:h===void 0?!0:h,hideOn404:!1})};
iRG=function(F,W,E){E=E===void 0?!1:E;var h=F.sources!==void 0?F:_.ceR(F);if(h){var d=W.onload;W.onload=function(g){var t=g.target;E&&t.naturalWidth===120||_.ou(t,"yt-core-image--loaded");W.notifyOnLoaded&&t.dispatchEvent(new Event("image-loaded",{bubbles:!0,composed:!0}));d==null||d(g)};
W.targetWidth&&W.preserveWidth&&(W.width=W.targetWidth);W.targetHeight&&W.preserveHeight&&(W.height=W.targetHeight);var V=_.klR(h),R=V&&Xjo(V);if(R)return(F=Aeb(V))&&(W.color=F),{type:"icon",iconName:R,config:Object.assign({},W,W.alt?{}:{"aria-hidden$":"true"},{"aria-label$":W.alt,role:"img"})};if(F.sources===void 0){W.alt=F.accessibility&&F.accessibility.accessibilityData&&F.accessibility.accessibilityData.label||W.alt;W.style$=qxe(F,W.shouldShowPlaceholder,W.style$);var M;W.isPreloaded=!((M=_.D(F,
j1r))==null||!M.isPreloaded)}W.contentMode&&!h.contentMode&&(h.contentMode=W.contentMode);W.className=$7w(h,W.className,W.preserveHeight,W.preserveWidth,W.objectPosition);W.loadedClass="yt-core-image--loaded";return{type:"image",image:h,config:W}}};
_.G4=function(){var F=_.Dd.apply(0,arguments);return _.Sh(function(W){var E=F.map(function(h){return h(W)});
return function(){return void E.forEach(function(h){return void(h==null?void 0:h())})}})};
wh=function(F,W){var E=W==null?void 0:W.initial;return _.vX(function(){_.XO(!0);return E=F(E)},{equals:W==null?void 0:W.isEqual},"rSlKsc")};
reY=function(F,W){if(F===W)return!0;if(F===void 0||W===void 0)return!1;var E,h,d,V,R,M,g,t;return F.content===W.content&&((E=F.styleRuns)==null?void 0:E.length)===((h=W.styleRuns)==null?void 0:h.length)&&((d=F.commandRuns)==null?void 0:d.length)===((V=W.commandRuns)==null?void 0:V.length)&&((R=F.attachmentRuns)==null?void 0:R.length)===((M=W.attachmentRuns)==null?void 0:M.length)&&((g=F.decorationRuns)==null?void 0:g.length)===((t=W.decorationRuns)==null?void 0:t.length)};
Glb=function(F,W){if(F){var E=Mqr(F);if(E!=null&&E.content)if(_.c("attr_string_reactive"))iH(TmI)({text:F,config:W});else{var h=!(W==null||!W.ariaLabel)||!(E.commandRuns&&E.commandRuns.length!==0||E.paragraphStyleRuns&&E.paragraphStyleRuns.length!==0);F=h?W==null?void 0:W.ariaLabel:null;h=h?"text":null;s6("span",{className:wqo(E,W),dir$:(W==null?0:W.userInput)?"auto":void 0,"aria-label$":F,role$:h},function(){if(E.styleRuns||E.commandRuns||E.attachmentRuns||E.decorationRuns){var d=eVk(E,W);Q1Y(d,
W);d=I$Y(E.content,d);d=_.U(d.parts);for(var V=d.next();!V.done;V=d.next())oqS(V.value)}else Kd(E.content)})}}};
oqS=function(F){typeof F==="string"?Kd(F):gqG(F.data)?s6("span",F.data.imageWrapperConfig,function(){yer(F.data.image,F.data.imageConfig)}):s6(F.data.tag,F.data.config,function(W){zVw(F.data)(W);
W=_.U(F.parts);for(var E=W.next();!E.done;E=W.next())oqS(E.value)})};
wjr=function(F){return F.parts.map(YxI)};
YxI=function(F){if(typeof F==="string")return F;F=gqG(F.data)?_.z("span",{el:_.G4(tqb(F.data.imageWrapperConfig))},_.z(_.T4,Object.assign({},{data:F.data.image},F.data.imageConfig))):_.z(F.data.tag,{el:_.G4(zVw(F.data),tqb(F.data.config))},F.parts.map(YxI));return t8(F)};
u5b=function(F,W){return F===W?!0:F===void 0||W===void 0?!1:F.noStyleRuns===W.noStyleRuns&&F.noLinkColor===W.noLinkColor&&F.noEndpoints===W.noEndpoints&&F.headerRuns===W.headerRuns&&F.isOverlay===W.isOverlay&&F.linkInheritColor===W.linkInheritColor&&F.userInput===W.userInput};
Sxw=function(F){return function(){var W,E,h,d,V,R,M,g,t,C,B,I,x,A;return{ariaLabel:(W=F.ariaLabel)==null?void 0:W.call(F),className:(E=F.className)==null?void 0:E.call(F),ellipsisTruncate:(h=F.ellipsisTruncate)==null?void 0:h.call(F),isOverlay:(d=F.isOverlay)==null?void 0:d.call(F),linkInheritColor:(V=F.linkInheritColor)==null?void 0:V.call(F),noEndpoints:(R=F.noEndpoints)==null?void 0:R.call(F),noStyleRuns:(M=F.noStyleRuns)==null?void 0:M.call(F),noLinkColor:(g=F.noLinkColor)==null?void 0:g.call(F),
noPreWrap:(t=F.noPreWrap)==null?void 0:t.call(F),noWrap:(C=F.noWrap)==null?void 0:C.call(F),skipOnClick:(B=F.skipOnClick)==null?void 0:B.call(F),stopPropagation:(I=F.stopPropagation)==null?void 0:I.call(F),userInput:(x=F.userInput)==null?void 0:x.call(F),headerRuns:(A=F.headerRuns)==null?void 0:A.call(F)}}};
pjG=function(F){return F.value===""||F.value==="true"?!0:F.value==="false"?!1:isNaN(Number(F.value))?F.value:Number(F.value)};
uH=function(F,W){F=new m7n(F,W);_.a_(F);throw F;};
KIS=function(F,W,E){var h=U5G(F);F._numRenders=0;try{var d=DjW(function(){return _.z(W,Object.assign({},E))})}catch(R){var V=function(M){M.args||(M.args=[]);
M.args.push("Error in web component wrapper");M.args.push(F.tagName.toLowerCase());return M};
_.fn(R instanceof Error?V(R):new m7n("Wiz rendering error",F.tagName.toLowerCase()));throw R;}finally{U5G(h)}return d};
_.pK=function(F,W,E){function h(C){var B={};C=_.U(C);for(var I=C.next();!I.done;I=C.next()){I=I.value;var x=void 0,A=void 0,X=void 0,P=_.Bf((X=(A=(x=I).getAttribute)==null?void 0:A.call(x,"slot"))!=null?X:"children");if(x=B[P])x.push(I);else if(P in V||P==="children")B[P]=[I]}C=_.U(Object.keys(B));P=C.next();for(I={};!P.done;I={content$jscomp$55:void 0},P=C.next())P=P.value,P!=="children"&&(I.content$jscomp$55=B[P],B[P]=function(b){return function(){return b.content$jscomp$55}}(I));
return B}
E=E===void 0?{}:E;F.componentType!==kp||uH("Components must be marked reactive to be used from web component wrapper.",W);Kz.has(W)&&uH("Do not register a Wiz component to be rendered with boththe deprecated wrapper and the signals based wrapper.",W);var d,V=(d=E.props)!=null?d:{};FP.add(W);var R=FUo();d=function(){var C=R.apply(this,arguments)||this;C.rawProps={};C.queuingRender=!1;C.dispose=function(){};
C.isWebComponentWrapper=!0;C.isReparenting=!1;C.hasRendered=!1;return C};
_.k(d,R);d.prototype.render=function(){this.hasRendered=!0;for(var C=_.U([].concat(_.x9(this.attributes))),B=C.next();!B.done;B=C.next())B=B.value,B.name!=="slot"&&this.removeAttribute(B.name);C=Object.assign({},this.componentProps,this.slotProps);B=_.U(KIS(this,F,C));C=B.next().value;B=B.next().value;!(C[0]instanceof Element)||C.length>1?uH("Wrapped Wiz components must return a single root element.",W):(C=C[0].tagName.toLowerCase(),C!==W&&uH("Wrapped Wiz components must have the same host tag name as the web component. Expected tag '"+
(C+" !== '"+W),W),this.dispose=B)};
d.prototype.setUpProps=function(){for(var C=this.rawProps,B=this.attributes,I=_.U(Object.keys(V)),x=I.next();!x.done;x=I.next()){x=x.value;var A=void 0;((A=this)==null?0:A[x])&&this[x]!==WUG&&C[x]===void 0&&(C[x]=this[x],(A=Object.getOwnPropertyDescriptor(this.constructor.prototype,x))&&Object.defineProperty(this,x,A))}I=_.U(B);for(x=I.next();!x.done;x=I.next()){A=x.value;x=_.Bf(A.name);var X=x==="class"&&!B.getNamedItem("class-name");if(x in V||X)A=pjG(A),x!=="class"||C.className?C[x]=A:C.className=
A}B={};for(var P in V)V[P]!==_.Si&&V[P]!==EDo&&(C[P]instanceof Function&&uH("Function props must be configured as STATIC, not SIGNAL.",W),x=_.U(_.g$(C[P],void 0,"Ri8MSe")),I=x.next().value,x=x.next().value,B[P]=x,C[P]=I);C=_.U([C,B]);this.componentProps=C.next().value;this.setters=C.next().value;this.slotProps=h(this.childNodes)};
d.prototype.connectedCallback=function(){pz===W&&(this._isInert=!0);this._isInert||(this.isReparenting?this.isReparenting=!1:(this.queuingRender="data"in V&&!this.rawProps.data&&!this.getAttribute("data"),this.hasRendered||this.queuingRender||this.setUpProps(),this.queuingRender||this.render()))};
d.prototype.disconnectedCallback=function(){if(!this._isInert){var C;a:{if(_.hYG)for(C=this;C;){if(_.dbY.has(C)){C=!0;break a}C=C.parentElement}C=!1}if(C)this.isReparenting=!0;else{this.dispose();if(!this.queuingRender){C=_.U([].concat(_.x9(this.attributes)));for(var B=C.next();!B.done;B=C.next())B=B.value,B.name!=="slot"&&this.removeAttribute(B.name)}this.innerText="";F3R(this)}}};
d.prototype._setPendingPropertyOrPath=function(){};
d.prototype.notifyPath=function(){};
_.Sn.Object.defineProperties(d.prototype,{__isPropertyEffectsClient:{configurable:!0,enumerable:!0,get:function(){return!1}},
__dataHasAccessor:{configurable:!0,enumerable:!0,get:function(){}}});
for(var M=_.U(Object.keys(V)),g=M.next(),t={};!g.done;t={prop$jscomp$103:void 0},g=M.next())t.prop$jscomp$103=g.value,g=void 0,((g=E.legacyPolymer)==null?0:g.forwardHostProps)&&SKn.has(t.prop$jscomp$103)||Object.defineProperty(d.prototype,t.prop$jscomp$103,{set:function(C){return function(B){var I=this;this._isInert||(this.setters?Iy(function(){var x,A;return void((A=(x=I.setters)[C.prop$jscomp$103])==null?void 0:A.call(x,B))}):(this.rawProps[C.prop$jscomp$103]=B,this.queuingRender&&C.prop$jscomp$103===
"data"&&B!=null&&(this.queuingRender=!1,this.setUpProps(),this.render())))}}(t),
get:NEI.has(t.prop$jscomp$103)?void 0:function(){return WUG}});
customElements.define(W,d)};
_.VEW=function(F,W){return(F=_.m_(F,W))?_.ty(_.II(F)):null};
_.KK=function(F){if(F=_.m_(F,Number.MAX_VALUE,void 0,"width"))return _.II(F)};
_.m_=function(F,W,E,h){h=h===void 0?"width":h;if(!F||!F.length)return null;if(_.c("kevlar_tuner_should_always_use_device_pixel_ratio")){var d=window.devicePixelRatio;_.c("kevlar_tuner_should_clamp_device_pixel_ratio")?d=Math.min(d,_.dV("kevlar_tuner_clamp_device_pixel_ratio")):_.c("kevlar_tuner_should_use_thumbnail_factor")&&(d=_.dV("kevlar_tuner_thumbnail_factor"));UbY=d}else UbY||(UbY=window.devicePixelRatio);d=UbY;_.c("kevlar_tuner_should_always_use_device_pixel_ratio")?W*=d:d>1&&(W*=d);if(_.c("kevlar_tuner_min_thumbnail_quality"))return F[0].url||
null;d=F.length;if(_.c("kevlar_tuner_max_thumbnail_quality"))return F[d-1].url||null;if(E)for(var V=0;V<d;V++)if(F[V].url.indexOf(E)>=0)return F[V].url||null;for(E=0;E<d;E++)if(F[E][h]>=W)return F[E].url||null;for(W=d-1;W>0;W--)if(F[W][h])return F[W].url||null;return F[0].url||null};
MEY=function(){FE.size?setTimeout(function(){Wr(RYY)},0):eYw=0};
RYY=function(){var F=(0,_.KU)(),W=null,E=!1;FE.forEach(function(d){d.loaded=!0;d.loadTime=F;d.pendingPaint=!1;var V=gDo.get(d);V&&V.resolve(F);W=d;E||!d.ftlEligible&&d.tagName!=="YT-THUMBNAIL-VIEW-MODEL"||(E=!0)});
var h;((h=W)==null?0:h.markDirty)&&W.markDirty();FE.clear();eYw=0;E&&QcR(F)};
zYr=function(F){FE.add(F);F.pendingPaint=!0;eYw||(eYw=_.Ed(_.P0,MEY))};
tEo=function(F){F.loaded=!1;F.loadTime=Infinity;var W=gDo.get(F);W&&(W.reject(Error("lh")),gDo.delete(F));F.pendingPaint&&(FE.delete(F),F.pendingPaint=!1)};
_.CRr=function(F){var W=F.indexOf(":");return W===-1?{originalName:F}:{originalName:F.substring(0,W),datasyncId:F.substring(W+1)}};
_.vDS=function(){return _.e(function(F){if(BER!==void 0)return F.return(BER);BER=new Promise(function(W){var E;return _.e(function(h){switch(h.nextAddress){case 1:return _.Nl(h,2),_.Q(h,_.hb.open("test-only"),4);case 4:return _.Q(h,_.hb.delete("test-only"),5);case 5:_.id(h,3);break;case 2:if(E=_.Ml(h),E instanceof Error&&E.name==="SecurityError")return W(!1),h.return();case 3:W("caches"in window),_.gG(h)}})});
return F.return(BER)})};
Dbo=function(){return _.e(function(F){if(F.nextAddress==1)return _.Q(F,_.vDS(),2);if(!F.yieldResult)return F.return(void 0);ILw||(ILw=new cdo);return F.return(ILw)})};
xbo=function(F){var W,E,h,d;return _.e(function(V){switch(V.nextAddress){case 1:return _.Q(V,Dbo(),2);case 2:W=V.yieldResult;if(!W)throw Error("nh");return _.Q(V,W.open("yt-player-local-img"),3);case 3:return E=V.yieldResult,_.Q(V,E.match(F),4);case 4:h=V.yieldResult;if(!h)throw Error("oh");return _.Q(V,h.blob(),5);case 5:return d=V.yieldResult,V.return(d)}})};
kjr=function(F,W){for(var E in F)if(F.hasOwnProperty(E)&&W[E])return E;return null};
Adk=function(F){return"stamp"+F.replace("-","_")+"_"};
sco=function(F){var W=F.match(/\[\[([\w\.]+)\]\]/);if(W&&W.length>1)return W[1];_.a_(Error("qh`"+F));return null};
LUI=function(F){return F===void 0?_.l0("REUSE_COMPONENTS",!1):F||!1};
Z_n=function(F,W,E){E&&(W.is?(qtR.has(W)&&(F=qtR.get(W),E=F.listener,delete W[F.property],E.type==="element"&&W.removeEventListener(E.eventName,E.handler),qtR.delete(W)),$bG(W)):W.__proto__==HTMLElement.prototype&&(W=new _.xC("Rendererstamper removed a non custom element","Stamper: "+F+" element: "+(W&&W.nodeName)),_.OB(W)))};
Xvr=function(F,W,E,h){var d=W.node?W.node:W;_.Z(E).parentNode===d&&(W.removeChild(E),Z_n(F,E,h));if(F=dY.get(E))dY.delete(E),_.P0.cancelJob(F);E.hidden=!1};
H_k=function(F,W,E,h){if(W&&W.children&&(E=W.children[E]))if(_.l0("DEFERRED_DETACH"))for(;E&&!dY.has(E);){var d=F,V=W,R=E,M=h;R.hidden=!0;d=_.sB(_.P0,Xvr.bind(null,d,V,R,M),0);dY.set(R,d);E=E.nextElementSibling}else for(;(R=W.lastElementChild)&&(W.removeChild(R),Z_n(F,R,h),R!=E););};
PRR=function(F){var W=_.uf();_.Xk(function(){for(var E=_.U(F.slotContent),h=E.next();!h.done;h=E.next())W.value.appendChild(h.value)});
return _.z("__slot-el",{el:W,skip:!0})};
_.Nj=function(F,W,E){E=E===void 0?JdR:E;Kz.add(W);var h;(h=E).propNames!=null||(h.propNames=[]);var d=new Set(E.propNames),V=FUo();h=function(){var t=V.call(this)||this;t.props={};t.isUpdating=!1;t.hasAttached=!1;t.isInert=!1;t.updateQueued=!1;t.initialClasses=[];V_W(t,W);return t};
_.k(h,V);h.prototype.forwardKebabCaseProp=function(t,C){t=_.Bf(t);if(d.has(t)||t==="children")this.props[t]=C};
h.prototype.afterFirstPatch=function(){this.isUpdating=!0;for(var t=_.U(this.initialClasses),C=t.next();!C.done;C=t.next())(C=C.value)&&this.classList.add(C);this.initialClasses.length>0&&(this.initialClasses.length=0);this.isUpdating=!1};
h.prototype.handleSlottedContent=function(){for(var t=new Map,C=_.U(this.children),B=C.next();!B.done;B=C.next()){B=B.value;var I=void 0,x=(I=B.getAttribute("slot"))!=null?I:"children";(I=t.get(x))?I.push(B):t.set(x,[B]);if(!B.getAttribute("key")){var A=void 0,X=void 0;B.setAttribute("key",x+"_"+((X=(A=I)==null?void 0:A.length)!=null?X:0))}}t=_.U(t);for(C=t.next();!C.done;C=t.next())B=_.U(C.value),C=B.next().value,B=B.next().value,this.forwardKebabCaseProp(C,_.z(PRR,{slotContent:B}))};
h.prototype.connectedCallback=function(){var t=this;if(!V_W(this,W)&&!this.isInert)if(this.hasAttached)this.enqueueUpdate();else{for(var C=_.U(this.attributes),B=C.next();!B.done;B=C.next())B=B.value,this.forwardKebabCaseProp(B.name,pjG(B));this.handleSlottedContent();E.synchronous?(this.update(),this.afterFirstPatch()):this.enqueueUpdate().then(function(){t.afterFirstPatch()});
this.hasAttached=!0}};
h.prototype.attributeChangedCallback=function(t,C,B){this.isInert||this.isUpdating||this.isConnected||t!=="class"||this.initialClasses.push.apply(this.initialClasses,_.x9(B.split(" ")))};
h.prototype.disconnectedCallback=function(){Onb(this)};
h.prototype.update=function(){if(!this.isInert){this.isUpdating=!0;try{var t,C;FAY(this,_.z(F,Object.assign({},this.props,{idomKey:(C=(t=this.__incrementalDOMData)==null?void 0:t.key)!=null?C:W})),!0)}catch(I){var B=I instanceof Error?I:new _.xC("Wiz rendering error");B.args||(B.args=[]);B.args.push("Error in deprecated web component wrapper");B.args.push(W.toLowerCase());_.a_(B);throw I;}finally{this.updateQueued=this.isUpdating=!1}}};
h.prototype.enqueueUpdate=function(){var t=this;return _.e(function(C){if(E.synchronous)return t.update(),C.return();if(t.updateQueued)return C.return();t.updateQueued=!0;return C.return(Promise.resolve().then(function(){t.update()}))})};
h.prototype.notifyPath=function(){E.enableUnsafeRenderOnNotifyPath&&this.enqueueUpdate()};
_.Sn.Object.defineProperties(h,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["class"]}}});
for(var R=_.U(E.propNames),M=R.next(),g={};!M.done;g={prop$jscomp$105:void 0},M=R.next())g.prop$jscomp$105=M.value,Object.defineProperty(h.prototype,g.prop$jscomp$105,{set:function(t){return function(C){this.isInert||C===this.props[t.prop$jscomp$105]||(this.props[t.prop$jscomp$105]=C,this.hasAttached&&!this.isUpdating&&this.enqueueUpdate())}}(g)});
customElements.define(W,h)};
_.aLY=function(F,W){return _.Mn(F.entities,"markersEngagementPanelSyncEntity",W)};
fLr=function(F,W){return _.Mn(F.entities,"fantasyWinProbabilityEntity",W)};
O_I=function(F,W){return _.Mn(F.entities,"fantasyTeamEntity",W)};
b_n=function(F,W){return _.Mn(F.entities,"fantasyPlayerEntity",W)};
lLe=function(F,W){return _.Mn(F.entities,"booleanEntity",W)};
nDo=function(F,W){return _.Mn(F.entities,"qrCodeEntity",W)};
ydR=function(F){return _.Mn(F.entities,"likeButtonAnimationEntity","EhxsaWtlX2J1dHRvbl9hbmltYXRpb25fZW50aXR5ILcEKAE%3D")};
jcr=function(){if(Vt)return Vt;if(window.lottie)return Vt=Promise.resolve(window.lottie);var F=_.JH(_.b0("LOTTIE_URL"));return F?Vt=new Promise(function(W,E){var h=document.createElement("script");h.addEventListener("load",function(){W(lottie)});
h.addEventListener("error",function(d){var V="Lottie library failed to load.";d?d.message&&(V+=" Original description: "+d.message,_.bf(d,V)):d=Error(V);_.OB(d);E(d)});
h.setAttribute("async","");_.nu(h,F);document.head.appendChild(h)}):Promise.reject(Error("rh"))};
i_R=function(){return Vt?Vt:jcr()};
rdI=function(){var F=ydR(_.uC().getState());if(F&&F.animationStyle)switch(F.animationStyle){case "ANIMATED_LIKE_ICON_ANIMATION_STYLE_VALENTINE25_DELHI":return Ud.get("LIKE_VALENTINES25_HEART");case "ANIMATED_LIKE_ICON_ANIMATION_STYLE_VALENTINE25_BROKEN_HEART_DELHI":return Ud.get("LIKE_VALENTINES25_BROKEN_HEART");case "ANIMATED_LIKE_ICON_ANIMATION_STYLE_YOUTUBE_BIRTHDAY_DELHI":return Ud.get("LIKE_YOUTUBE_20TH_BIRTHDAY")}};
TEW=function(F){if(F)switch(F){case "yt-icons:like":case "LIKE":case "LIKE_SELECTED":if(_.c("kevlar_use_wil_icons"))return(F=rdI())?F:Ud.get("LIKE")}};
oDR=function(F){var W=TEW(F);if(W)return W;switch(F){case "FACE_FILLED_HAPPY":case "FACE_OUTLINED_HAPPY":return Ud.get("FACE_HAPPY");case "FACE_FILLED_MEH":case "FACE_OUTLINED_MEH":return Ud.get("FACE_MEH");case "FACE_FILLED_SAD":case "FACE_OUTLINED_SAD":return Ud.get("FACE_SAD");case "FACE_FILLED_UNHAPPY":case "FACE_OUTLINED_UNHAPPY":return Ud.get("FACE_UNHAPPY");case "FACE_FILLED_VERY_HAPPY":case "FACE_OUTLINED_VERY_HAPPY":return Ud.get("FACE_VERY_HAPPY");case "NOTIFICATIONS_NONE":return Ud.get("NOTIFICATION_BELL")}};
YtI=function(F,W){if(!F||GjS)W=!1;else{if(F.closest){var E=!!TEW(W);E=_.b0("ID_TOKEN")&&E?!!F.closest("segmented-like-dislike-button-view-model"):!1}else E=!1;if(!E)if(F.closest)if(E=!_.b0("ID_TOKEN"),F=F.closest("ytd-subscription-notification-toggle-button-renderer-next"),E||!F)E=!1;else{var h;E=((h=F.data)==null?void 0:h.targetId)==="notification-bell"&&W!=="EXPAND_MORE"}else E=!1;W=E}return W};
wve=function(F){var W,E;return _.e(function(h){switch(h.nextAddress){case 1:return _.Nl(h,2),_.Q(h,fetch(F),4);case 4:return W=h.yieldResult,_.Q(h,W.json(),5);case 5:return h.return(h.yieldResult);case 2:E=_.Ml(h),_.OB(E),_.gG(h)}})};
uuR=function(F,W){var E,h,d;return _.e(function(V){if(V.nextAddress==1)return(E=W?F.pathDarkTheme:F.path)?_.Q(V,Promise.all([wve(E),jcr()]),2):V.return();h=V.yieldResult;d=h[0];R3.set(E,d);_.gG(V)})};
_.ec=function(){var F=_.Dd.apply(0,arguments);return function(){for(var W="",E=_.U(F),h=E.next();!h.done;h=E.next())if(h=h.value,typeof h==="function"&&(h=h()),h)if(typeof h==="string")W+=" "+h;else for(var d in h)if(h.hasOwnProperty(d)){var V=h[d];typeof V==="function"&&(V=V());V&&(W+=" "+d)}W=W.trim()||void 0;return _.XO(W)}};
_.Mj=function(F){var W;var E=F.data;var h=F.className;var d=F.animationName;var V=F.animationRef;var R=(W=F.elRefForInterop)||_.uf(),M;_.$p(function(){var C;return void((C=M)==null?void 0:C.destroy())});
var g;_.q6(function(){var C=_.XO(d);if(C!==g){g=C;var B=Object.assign({},{animationName:C,animationRef:_.XO(V)},_.XO(E));try{_.WZ().resolve(Str)().then(function(A){var X;(X=M)==null||X.destroy();X=B.animationRef;var P=B.listeners;A=A.loadAnimation(Object.assign({},{container:R.value},B.animationConfig));X&&(X.lottieEl=A);if(P)for(X=_.U(Object.entries(P)),P=X.next();!P.done;P=X.next()){var b=_.U(P.value);P=b.next().value;(b=b.next().value)&&A.addEventListener(P,b)}M=A})}catch(A){C=A;
var I="LottieComponent error.";C.message&&(I+=" Original description: "+C.message);_.bf(C,I);_.OB(C);var x;((x=B.listeners)==null?0:x.error)&&B.listeners.error(C)}}});
var t=_.ec("ytLottieComponentHost",h);return _.z(inY,{cond:function(){return!W},
then:function(){return _.z("lottie-component",{class:t,el:R})}})};
pvw=function(F){var W=_.uf(),E=_.U(e_Y(F.data.animationConfig.name||"",F.className)),h=E.next().value;E=E.next().value;var d=PQ(function(){return F.data.animationRef});
Z4(function(){F.data.animationRef&&(F.data.animationRef.lottieEl=d==null?void 0:d.lottieEl)},[F.data.animationRef]);
return _.z("lottie-component",{skip:!0,class:_.ec(E,"ytLottieComponentHost"),el:W},_.z(_.Mj,{data:F.data,animationRef:d,animationName:h,elRefForInterop:W}))};
KUn=function(F,W,E,h){function d(R,M){if(W.value===M&&F!=null&&F.value){for(;F.value.firstChild;)F.value.removeChild(F.value.firstChild);F.value.classList.add("yt-spec-icon-shape");R(F.value,h)}}
E=_.mbr(_.WZ().resolve(_.U6),E);if(typeof E==="function")W.value=null,d(E,null);else{var V=new _.z5(E.then,E);W.value=V;V.then(function(R){d(R,V)})}};
WHY=function(F,W){var E=document.createElement("div"),h=_.qO(E,function(){return _.z(_.v,{cond:F,then:function(d){return _.z(FHY,{data:d,options:W})}})});
return[E,h]};
_.gY=function(){for(var F=[],W=_.U(_.Dd.apply(0,arguments)),E=W.next();!E.done;E=W.next())if(E=E.value)if(typeof E==="string")F.push(E);else{E=_.U(Object.entries(E));for(var h=E.next();!h.done;h=E.next()){var d=_.U(h.value);h=d.next().value;(d=d.next().value)&&F.push(h)}}return F.join(" ")};
NSr=function(F){var W=_.uf(),E=J8(),h=w8(F.character)||w8(F.previousCharacter);LW(function(){if(F.marginMultiplier){var d;(d=E.value)==null||d.cancel();h?(d=F.previousCharacter?Number(F.previousCharacter)+10:F.rollUp?0:30,F.shouldAnimate||(d-=EsG(F,d))):(d=F.rollUp?0:2,F.shouldAnimate||(d-=F.rollUp?-1:1));W.value.style.marginTop="-"+d*F.marginMultiplier+"px";F.shouldAnimate?E.value=hOb(W.value,F,d,h):W.value.style.display=F.character?"":"none"}});
return _.z("animated-rolling-character",{el:W,class:"animated-rolling-character-wiz"},wl(h,function(){for(var d=[],V=1;V<30;V++)d.push(_.z("div",null,V%10));return _.z(_.EG,null,_.z("div",null,"\u00a0"),d,_.z("div",null,"\u00a0"))},function(){return dgY(F.character)}))};
dgY=function(F){return _.z(_.EG,null,_.z("div",null,"\u00a0"),_.z(_.EG,null,wl(!F||_.Mw(F),function(){return _.z("div",null,"\u00a0")},function(){return _.z("div",null,F)})),_.z("div",null,"\u00a0"))};
hOb=function(F,W,E,h){E=new Animation(new KeyframeEffect(F,[{transform:"translateY(0px)"},{transform:"translateY("+(h?EsG(W,E):W.rollUp?-1:1)*W.marginMultiplier+"px)"}],VZr),document.timeline);W.character?(F.style.display="",E.onfinish=null):E.onfinish=function(){F.style.display="none"};
E.play();return E};
EsG=function(F,W){var E=Number(F.character)+10;if(F.previousCharacter)if(F.character){var h=Number(F.character),d=Number(F.previousCharacter);F=F.rollUp?d<h?E:E+10:d<h?E-10:E}else F=F.rollUp?30:0;else F=F.character==="0"?E:F.rollUp?E-10:E+10;return W-F};
_.Qt=function(F,W){return function(E){var h={},d;for(d in E){var V=void 0,R=void 0;((V=W)==null?0:(R=V.callbacks)==null?0:R[d])||(h[d]=E[d])}return _.z(cbG,null,function(){for(var M in h)E[M]=_.XO(h[M]);E.disableReactiveLogging=!0;return _.z(F,Object.assign({},E))})}};
_.z_=function(F){var W=J8(),E=J8();Z4(function(){W.value=F.numberText;E.value=F.numberValue},[F.numberText]);
var h=F.fontSizeMultiplier?F.heightPx*F.fontSizeMultiplier:F.heightPx,d=HQ(function(){if(F.numberText){var R=F.numberText;var M=F.forceRollUp||!E.value||!F.numberValue||E.value<F.numberValue;var g=!!F.shouldAnimate,t=W.value,C=[],B=0,I=0,x=(t?t.replace(/\D/g,"").length:0)-(R?R.replace(/\D/g,"").length:0);t=t?t.split(/(\d)/).filter(Boolean):[];for(R=R.split(/(\d)/).filter(Boolean);x<0;){var A=R[I];C.push({character:A,rollUp:M,marginMultiplier:h,shouldAnimate:g});I++;w8(A)&&x++}for(;B<x;)A=t[B],C.push({previousCharacter:A,
rollUp:M,marginMultiplier:h,shouldAnimate:g}),B++,w8(A)||x++;for(;I<R.length;)x=R[I],A=t[B],w8(x)===w8(A)?(I++,B++):w8(x)?(B++,x=void 0):w8(A)&&(I++,A=void 0),C.push({character:x,previousCharacter:A,rollUp:M,marginMultiplier:h,shouldAnimate:g});M=C}else M=[];return M},[F.numberText]),V=F.numberText?["height: "+h+"px;",
"line-height: "+F.heightPx+"px;"].join(" "):"";return _.z("yt-animated-rolling-number",{class:"animated-rolling-number-wiz",style:V,dir:"ltr","aria-hidden":"true"},d.map(function(R){return _.z(NSr,Object.assign({},R))}))};
UgW=function(F){var W=F.nodeName;if(F.id)return W+="#"+F.id;if(F.classList)for(var E=_.U(F.classList),h=E.next();!h.done;h=E.next())W+="."+h.value;F.parentElement&&(W=UgW(F.parentElement)+" > "+W);return W};
ROS=function(F){return function(W){var E=yCe("event",{type:W.type});E&&W.target&&E.attr("nodepath",UgW(W.target));return rCY(E,F,W)}};
_.tb=function(F){F&&jeo("event")&&(F=ROS(F));return Y6W(function(W){var E,h=(E=F)==null?void 0:E(W);return typeof h==="boolean"?h:!0})};
CQ=function(F){return function(){return F()?F():void 0}};
eOI=function(F){return new KeyframeEffect(F,[{offset:0,opacity:.1,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"},{offset:1,opacity:0}],{duration:400})};
MZS=function(F){return new KeyframeEffect(F,[{offset:0,opacity:.2,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"},{offset:1,opacity:0}],{duration:400})};
gsY=function(F){var W=_.U(_.g$(F,void 0,"Clci1e")),E=W.next().value,h=W.next().value;E.current=F;return[E,function(d){return void h(E.current=d)}]};
_.Br=function(F){var W=wh(function(){return gsY(F())},{isEqual:function(E,h){return E[0].current===h[0].current}});
return[function(){return W()[0]()},
function(E){return void W()[1](E)}]};
_.vr=function(F){return function(){var W="",E;for(E in F){for(var h=F[E];typeof h==="function";)h=h();h!==void 0&&h!==null&&(W+="; "+E+": "+h)}return W.length>0?_.XO(W.slice(2)):_.XO()}};
QFY=function(F){switch(F){case 2:return"yt-spec-touch-feedback-shape--touch-response-inverse";case 3:return"yt-spec-touch-feedback-shape--overlay-touch-response";case 4:return"yt-spec-touch-feedback-shape--overlay-touch-response-inverse";default:return"yt-spec-touch-feedback-shape--touch-response"}};
Cek=function(F,W,E,h,d,V){var R=zOY(F),M=R.disabled,g=R.iconPosition,t=R.style,C=R.focused,B=function(){return!!A()&&g()==="icon-only"},I=function(){return!!A()&&g()==="icon-only-40"},x=function(){return!!A()&&g()==="icon-with-label"},A=function(){return!!W||!(h==null||!h())};
return{type:function(){return t()==="call-to-action-inverse"?"text":t()==="overlay-dark"&&F().type!=="filled"&&F().type!=="tonal"?"tonal":F().type},
shouldFocus:function(){return(C()||(V==null?void 0:V()))&&!M()},
hasIconLeading:function(){return!!A()&&g()==="leading"},
hasIconTrailing:function(){return!!A()&&g()==="trailing"},
hasIconLeadingTrailing:function(){return!!A()&&!!(E||d!=null&&d())&&g()==="leading-trailing"},
hasIconOnly:B,hasIconOnly40:I,hasIconWithLabel:x,iconButton:function(){return B()||I()||x()},
visiblyDisabled:function(){return(M()?"disabled":F().state)==="disabled"||M()},
overrideSmallSizeIcon:function(){return tZr(F(),A())},
iconToRender:W?W:function(){return _.z(_.I3,{icon:h,size:function(){return cr(F(),!0)},
active:function(){return F().toggled}})},
secondaryIconToRender:E?E:function(){return _.z(_.I3,{icon:d,size:function(){return cr(F(),!0)},
active:function(){return F().toggled}})}}};
zOY=function(F){return{size:function(){return F().size},
style:function(){return F().style},
focused:function(){return F().focused},
disabled:function(){return F().disabled},
onTap:function(W){var E,h;return(h=(E=F()).onTap)==null?void 0:h.call(E,W)},
alignByText:function(){return F().alignByText},
aTagConfig:function(){return F().aTagConfig},
customColors:function(){return F().customColors},
segmentedPosition:function(){return F().segmentedPosition},
toggled:function(){return F().toggled},
toggleable:function(){return F().toggleable},
accessibilityLabel:function(){return F().accessibilityLabel},
onToggle:function(W){var E,h;return(h=(E=F()).onToggle)==null?void 0:h.call(E,W)},
iconPosition:function(){return F().iconPosition},
oneOffCustomTextWrap:function(){return F().oneOffCustomTextWrap},
disableTextEllipsis:function(){return F().disableTextEllipsis},
disableBackdropFilter:function(){return F().disableBackdropFilter},
tooltipText:function(){return F().tooltipText},
ariaHidden:function(){return F().ariaHidden},
tabIndex:function(){return F().tabIndex},
buttonText:function(){return F().buttonText},
formattedButtonText:function(){return F().formattedButtonText},
animatedTextProps:function(){return F().animatedTextProps}}};
BSS=function(F){return F.style==="overlay-dark"?4:F.style==="overlay"?F.type==="filled"?4:3:F.type==="filled"||F.style==="call-to-action-inverse"||F.style==="mono-inverse"?2:1};
tZr=function(F,W){W=(F.iconPosition==="icon-only"||F.iconPosition==="icon-only-40"||F.iconPosition==="icon-with-label")&&W;return!F.segmentedPosition&&W&&F.size==="S"};
vso=function(){return!_.c("web_disable_backdrop_filter")};
cr=function(F,W){switch(F.size){case "XS":return 16;case "S":return tZr(F,W)?24:16;default:return 24}};
Icr=function(F){switch(F){case "filled":return"yt-spec-button-shape-next--filled";case "outline":return"yt-spec-button-shape-next--outline";case "tonal":return"yt-spec-button-shape-next--tonal";default:return"yt-spec-button-shape-next--text"}};
cwG=function(F){switch(F){case "call-to-action":return"yt-spec-button-shape-next--call-to-action";case "call-to-action-overlay":return"yt-spec-button-shape-next--call-to-action-overlay";case "mono":return"yt-spec-button-shape-next--mono";case "overlay":return"yt-spec-button-shape-next--overlay";case "overlay-dark":return"yt-spec-button-shape-next--overlay-dark";case "call-to-action-inverse":return"yt-spec-button-shape-next--call-to-action-inverse";case "mono-inverse":return"yt-spec-button-shape-next--mono-inverse";
case "brand-gradient":return"yt-spec-button-shape-next--brand-gradient";case "gen-ai-gradient":return"yt-spec-button-shape-next--gen-ai-gradient";default:return"yt-spec-button-shape-next--mono"}};
Dgn=function(F){switch(F){case "XS":return"yt-spec-button-shape-next--size-xs";case "S":return"yt-spec-button-shape-next--size-s";case "L":return"yt-spec-button-shape-next--size-l";case "XL":return"yt-spec-button-shape-next--size-xl";default:return"yt-spec-button-shape-next--size-m"}};
xgG=function(F){if(F.style==="overlay-dark"&&F.type==="tonal")return"drop-shadow(0px 1px 4px rgba(0, 0, 0, 0.3))"};
kQY=function(F){if(!F)return{};var W=F.color,E=F.backgroundColor;F=F.borderColor;var h="";W&&(h+="color: "+W+";");E&&(h+="background-color: "+E+";");F&&(h+="border-color: "+F+";");return{style:h}};
qyo=function(F,W,E){var h=F.buttonText,d=F.formattedButtonText,V=F.formattedButtonTextLegacy,R=F.animatedTextProps,M=F.style,g=F.size,t=F.focused,C=F.disabled,B=F.onTap,I=F.alignByText,x=F.aTagConfig,A=F.customColors,X=F.segmentedPosition,P=F.toggled,b=F.toggleable,l=F.accessibilityLabel,w=F.onToggle,G=F.iconPosition,hr=F.oneOffCustomTextWrap,p=F.disableTextEllipsis,UY=F.disableBackdropFilter,xW=F.tooltipText,qw=F.ariaHidden,Lb=F.tabIndex,jk=F.state,Jr=F.type;M==="call-to-action-inverse"&&(Jr="text");
M==="overlay-dark"&&Jr!=="filled"&&Jr!=="tonal"&&(Jr="tonal");var nb=!!W&&G==="leading",bo=!!W&&G==="trailing",uo=!!W&&!!E&&G==="leading-trailing",b_=!!W&&G==="icon-only",BO=!!W&&G==="icon-only-40",dc=!!W&&G==="icon-with-label",VM=b_||BO||dc;C&&(jk="disabled");var Z_=jk==="disabled"||C;jk=tZr(F,!!W);var MU={},Ef=(MU["yt-spec-button-shape-next"]=!0,MU[Icr(Jr)]=!0,MU[cwG(M)]=!Z_,MU["yt-spec-button-shape-next--disabled"]=!!Z_,MU[Dgn(g)]=!0,MU["yt-spec-button-shape-next--focused"]=!!t&&!C,MU["yt-spec-button-shape-next--icon-trailing"]=
bo,MU["yt-spec-button-shape-next--icon-leading"]=nb,MU["yt-spec-button-shape-next--icon-leading-trailing"]=uo,MU["yt-spec-button-shape-next--icon-leading-trailing-no-text"]=uo&&!(h||d),MU["yt-spec-button-shape-next--icon-button"]=b_||dc,MU["yt-spec-button-shape-next--icon-only-default"]=BO,MU["yt-spec-button-shape-next--align-by-text"]=!!I,MU["yt-spec-button-shape-next--segmented-start"]=X==="start",MU["yt-spec-button-shape-next--segmented-end"]=X==="end",MU["yt-spec-button-shape-next--override-small-size-icon"]=
jk,MU["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=!!hr,MU["yt-spec-button-shape-next--disable-text-ellipsis"]=!!p,MU["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=!UY&&vso(),MU),kR=function(){if(R)iH(_.z_)(R);else if(V)V(G==="icon-with-label"||hr?{lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",textAlignment:"TEXT_ALIGNMENT_CENTER"}:{});else if(d){var YB=G==="icon-with-label"||hr;Glb(Object.assign({},d,YB?{lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}:
{}),{noLinkColor:!0,noWrap:!YB})}else h&&Kd(h)},Rn=function(YB){B==null||B(YB);
b&&(w==null||w(YB))},se=x?Awk:sFr,l_=x?"aria-current$":"aria-pressed$",j$=function(){W&&(nb||uo||VM)&&function(){DR({className:"yt-spec-button-shape-next__icon",
"aria-hidden$":!0},function(){W()})}();
(h||d||V||R)&&!VM&&function(){DR({className:"yt-spec-button-shape-next__button-text-content"},function(){kR()})}();
bo&&function(){DR({className:"yt-spec-button-shape-next__icon"},function(){W()})}();
uo&&function(){DR({className:"yt-spec-button-shape-next__secondary-icon"},function(){E()})}();
C||iH(_.xY)({model:{color:BSS(F)}})},HO=function(){var YB={};
se(Object.assign({},(YB.className=_.gY(Ef),YB.onclick=x?void 0:Rn,YB.disabled=C,YB["aria-disabled$"]=Z_,YB.style=C&&x?"pointer-events:none":void 0,YB[l_]=b?!!P:void 0,YB["aria-label$"]=l,YB.title$=xW!=null?xW:"",YB["aria-hidden$"]=qw,YB.tabindex$=Lb,YB),x,kQY(A)),function(){j$()})};
dc?(g={},M=(g["yt-spec-button-shape-with-label"]=!0,g["yt-spec-button-shape-with-label--is-overlay"]=M==="overlay"||M==="overlay-dark",g),LHI({className:_.gY(M)},function(){HO();DR({"aria-hidden$":!0,className:"yt-spec-button-shape-with-label__label"},kR)})):HO()};
$gn=function(F,W){if(!ug){var E;eoS(function(){return E=vYo(F,W)});
return E}return vYo(F,W)};
ZaI=function(){var F=ZWY(ug||void 0,tcr);return F===$OG||(F==null?void 0:F.name)==="\u0275NotFound"?void 0:F};
Per=function(F){var W=F.data;var E=F.icon;var h=F.secondaryIcon;var d=F.iconName;var V=F.secondaryIconName;ZaI();var R=W.size;F=W.style;var M=W.focused,g=W.disabled,t=W.onTap,C=W.alignByText,B=W.aTagConfig,I=W.customColors,x=W.segmentedPosition,A=W.toggled,X=W.toggleable,P=W.accessibilityLabel,b=W.onToggle,l=W.iconPosition,w=W.oneOffCustomTextWrap,G=W.disableTextEllipsis,hr=W.disableBackdropFilter,p=W.tooltipText,UY=W.ariaHidden,xW=W.tabIndex,qw=!!E||!!d,Lb=E,jk=h;if(d){var Jr=cr(W,!0);Lb=function(){return _.z(_.I3,
{icon:d,size:Jr,active:W.toggled})}}if(V){var nb=cr(W,!0);
jk=function(){return _.z(_.I3,{icon:V,size:nb,active:W.toggled})}}var bo=W.state;
E=W.type;F==="call-to-action-inverse"&&(E="text");F==="overlay-dark"&&E!=="filled"&&E!=="tonal"&&(E="tonal");var uo=qw&&l==="leading",b_=qw&&l==="trailing",BO=qw&&(!!h||!!V)&&l==="leading-trailing";h=qw&&l==="icon-only";var dc=qw&&l==="icon-only-40";l=qw&&l==="icon-with-label";var VM=h||dc||l;g&&(bo="disabled");var Z_=bo==="disabled"||g;qw=tZr(W,qw);bo={};var MU=_.gY((bo["yt-spec-button-shape-next"]=!0,bo[Icr(E)]=!0,bo[cwG(F)]=!Z_,bo["yt-spec-button-shape-next--disabled"]=!!Z_,bo[Dgn(R)]=!0,bo["yt-spec-button-shape-next--focused"]=
!!M&&!g,bo["yt-spec-button-shape-next--icon-trailing"]=b_,bo["yt-spec-button-shape-next--icon-leading"]=uo,bo["yt-spec-button-shape-next--icon-leading-trailing"]=BO,bo["yt-spec-button-shape-next--icon-leading-trailing-no-text"]=BO&&!(W.buttonText||W.formattedButtonText),bo["yt-spec-button-shape-next--icon-button"]=h||l,bo["yt-spec-button-shape-next--icon-only-default"]=dc,bo["yt-spec-button-shape-next--align-by-text"]=!!C,bo["yt-spec-button-shape-next--segmented-start"]=x==="start",bo["yt-spec-button-shape-next--segmented-end"]=
x==="end",bo["yt-spec-button-shape-next--override-small-size-icon"]=qw,bo["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=!!w,bo["yt-spec-button-shape-next--disable-text-ellipsis"]=!!G,bo["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=!hr&&vso(),bo)),Ef=_.tb(function(kR){t==null||t(kR);X&&(b==null||b(kR))});
R=function(){return B?_.z(_.kY,{aTagConfig:B,disabled:g,className:MU,style:kQY(I).style,title:p!=null?p:"",ariaLabel:P,ariaCurrent:X&&A},_.z(_.EG,null,X9k(W,uo,BO,b_,VM,Lb,jk))):_.z("button",{"on:click":Ef,class:MU,title:p!=null?p:"",style:g&&B?"pointer-events:none":kQY(I).style,disabled:g,"aria-pressed":X?!!A:void 0,"aria-label":P?P:void 0,"aria-disabled":Z_,"aria-hidden":UY,tabindex:xW},_.z(_.EG,null,X9k(W,uo,BO,b_,VM,Lb,jk)))};
M={};F=(M["yt-spec-button-shape-with-label"]=!0,M["yt-spec-button-shape-with-label--is-overlay"]=F==="overlay"||F==="overlay-dark",M);return _.z("yt-button-shape",{class:"yt-spec-button-shape-next__button-shape-wiz-class"},l?_.z("label",{class:_.gY(F)},R(),_.z("div",{class:"yt-spec-button-shape-with-label__label","aria-hidden":!0},Hao(W))):R())};
Hao=function(F){var W=F.formattedButtonText,E=F.animatedTextProps,h=F.buttonText,d=F.oneOffCustomTextWrap;F=F.iconPosition;return E?_.z(_.z_,{numberText:E.numberText,numberValue:E.numberValue,heightPx:E.heightPx,fontSizeMultiplier:E.fontSizeMultiplier,shouldAnimate:E.shouldAnimate,forceRollUp:E.forceRollUp}):W?(E=F==="icon-with-label"||d,_.z(_.Ab,{text:Object.assign({},W,E?{lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}:{}),noLinkColor:!0,noWrap:!E})):h};
X9k=function(F,W,E,h,d,V,R){return _.z(_.EG,null,wl(V&&(W||E||d),function(){return _.z(_.EG,null,_.z("div",{class:"yt-spec-button-shape-next__icon","aria-hidden":"true"},V==null?void 0:V()))}),wl((F.buttonText||F.formattedButtonText||F.animatedTextProps)&&!d,function(){return _.z(_.EG,null,_.z("div",{class:"yt-spec-button-shape-next__button-text-content"},Hao(F)))}),wl(h,function(){return _.z(_.EG,null,_.z("div",{class:"yt-spec-button-shape-next__icon"},V==null?void 0:V()))}),wl(E,function(){return _.z(_.EG,
null,_.z("div",{class:"yt-spec-button-shape-next__secondary-icon"},R==null?void 0:R()))}),wl(!F.disabled&&!0,function(){return _.z(_.xY,{model:{color:BSS(F)}})}))};
sd=function(F,W){_.Pe(F,Object.assign({},W,{forceClickLogging:!0}))};
Jww=function(F,W,E,h){var d=void 0;return function(V){var R=_.He(E?F==null?void 0:F.onDisabledTap:F==null?void 0:F.onTap);if(R){var M;d=(M=d)!=null?M:W==null?void 0:W.value;if(R)if(_.c("web_button_vm_click_client_ve_killswitch"))sd(R,Object.assign({},{form:{element:d,event:V}},void 0));else{var g;M=R==null?void 0:R.clickTrackingParams;var t,C=F==null?void 0:(g=F.loggingDirectives)==null?void 0:(t=g.clientVeSpec)==null?void 0:t.uiType;g=C&&!M?_.LQ(C):void 0;sd(R,Object.assign({},{form:{element:d,event:V}},
{clickedVisualElement:g}))}}h&&h(V)}};
acn=function(F){switch(F){case "BUTTON_VIEW_MODEL_STYLE_CTA":return"call-to-action";case "BUTTON_VIEW_MODEL_STYLE_MONO":case "BUTTON_VIEW_MODEL_STYLE_BRAND":return"mono";case "BUTTON_VIEW_MODEL_STYLE_OVERLAY":return"overlay";case "BUTTON_VIEW_MODEL_STYLE_OVERLAY_DARK":return"overlay-dark";case "BUTTON_VIEW_MODEL_STYLE_BRAND_GRADIENT":return"brand-gradient";case "BUTTON_VIEW_MODEL_STYLE_BRAND_AI":return"gen-ai-gradient";default:return"mono"}};
fcb=function(F){switch(F){case "BUTTON_VIEW_MODEL_TYPE_FILLED":return"filled";case "BUTTON_VIEW_MODEL_TYPE_OUTLINE":return"outline";case "BUTTON_VIEW_MODEL_TYPE_TEXT":return"text";case "BUTTON_VIEW_MODEL_TYPE_TONAL":return"tonal";default:return"text"}};
Oab=function(F){switch(F){case "BUTTON_VIEW_MODEL_STATE_ACTIVE":return"active";case "BUTTON_VIEW_MODEL_STATE_INACTIVE":return"disabled";case "BUTTON_VIEW_MODEL_STATE_DISABLED":return"disabled";default:return"active"}};
baY=function(F){switch(F){case "BUTTON_VIEW_MODEL_SIZE_XSMALL":return"XS";case "BUTTON_VIEW_MODEL_SIZE_COMPACT":return"S";case "BUTTON_VIEW_MODEL_SIZE_DEFAULT":return"M";case "BUTTON_VIEW_MODEL_SIZE_LARGE":return"L";case "BUTTON_VIEW_MODEL_SIZE_XLARGE":return"XL";default:return"M"}};
lcI=function(F,W){return _.Mn(F.entities,"engagementToolbarStateEntityPayload",W)};
ywY=function(F){(F=_.ve(F))&&_.nsR(F)};
_.nsR=function(F){var W=_.JR();W&&_.is(W,F)};
jFr=function(F,W,E){_.dW(F,"yt-open-popup-action",[W,E||F])};
iaI=function(F,W){var E=_.aW(F,"endpoint"),h=_.aW(F,"action");return(E=h?h:E)&&W&&(E=W.navigationEndpointPopupMap[E])&&(F=_.ju(E,F),(E=_.aW(F,"renderer"))&&W.supportedPopups.hasOwnProperty(E))?{openPopupAction:{popupType:W.popupTypeMap[E],popup:F}}:null};
rwn=function(F,W,E,h){if(h){var d;E=E==null?void 0:(d=E.data)==null?void 0:d.contents;(d=E instanceof Array&&E.length?E[0]:E)&&(E=_.aW(d,"renderer"))&&h.supportedPopups.hasOwnProperty(E)&&(W.stopPropagation(),jFr(F,{openPopupAction:{popupType:h.popupTypeMap[E],popup:d}}))}};
GQR=function(F,W,E,h){h=h===void 0?!1:h;var d=TSY(W);if(d){d.href&&Jg(d.href);var V=W.button;V=V!==void 0?V===0&&!qj(W):!qj(W);d.data&&V&&osr(F,d,W,E,h)}};
osr=function(F,W,E,h,d){d=d===void 0?!1:d;var V=_.dV("pbj_navigate_limit",-1)===0;Yyw(W);_.WZ().resolve(_.Fd(r3));var R=W.data;if(Object.keys(R).length!==0)if(!_.c("unplugged_web_disable_actions_for_cec_endpoint")&&_.D(R,_.Mc))_.c("endpoint_behavior_command_executor_fix_killswitch")||(E.preventDefault(),E.stopPropagation()),_.Rj(F,[R],F);else if(h=iaI(R,h))R.loggingUrls&&R.loggingUrls.forEach(function(g){g.baseUrl&&_.iY(g.baseUrl)}),E.preventDefault(),E.stopPropagation(),jFr(F,h,W);
else{var M=w9o(0,W.data,E);if(F=W.getForm)F=F(),M.tempData=M.tempData||{},M.tempData=Object.assign({},M.tempData,F);F=_.TB(E);if(h=F.find(function(g){return!!g.visualElement}))M.createScreenConfig=M.createScreenConfig||{},M.createScreenConfig.clickedVisualElement=h.visualElement;
if(!V)if(E.preventDefault(),E.stopPropagation(),_.D(R,_.u9k)&&!d&&_.Ru.instance)_.Ru.instance.resolveCommand(R,M);else if(_.c("kevlar_command_handler_formatted_string")&&!d&&_.Ru.instance&&SyI(R))d=F.find(function(g){return!!g.is})||E.target,E={form:Object.assign({},M,{event:E,
element:d,originatingNode:W})},_.Ru.instance.resolveCommand(R,E);else{R=_.TB(E);E=[];for(d=0;d<R.length;d++)(V=R[d].is)&&E.push(V);HKr({parents:E.join(","),text:W.innerText},function(){_.hF(W,"yt-navigate",M)})}}};
p9o=function(F){if(F=TSY(F))Yyw(F),gzr(F.href)};
TSY=function(F){F=_.TB(F);for(var W,E=0;E<F.length;E++)if(W=F[E],W.tagName==="A"&&W.classList.contains("yt-simple-endpoint")){if(!W.data)break;return W}return null};
qj=function(F){return F.shiftKey||F.altKey||F.metaKey||F.ctrlKey};
mge=function(F,W){var E={itct:W.clickTrackingParams};_.c("kevlar_client_side_screens")&&(!_.D(W,_.DP)||_.c("kevlar_exclude_endpoint_killswitch"))&&(E.endpoint=JSON.stringify(W));_.c("enable_unknown_lact_fix_on_html5")&&_.WZ().resolve(_.Fd(_.$Y))&&(E.lact=_.hV());RPr(E);_.Sr(F,E)};
Yyw=function(F){F.href&&Object.keys(F.data).length!==0&&mge(F.href,F.data)};
SyI=function(F){for(var W=_.U(KHY),E=W.next();!E.done;E=W.next())if(F[E.value])return!1;return!0};
_.ZR=function(F,W){if(W){var E={};FbR.forEach(function(h){h=Wbr(W,h,"--yt-lightsource-");Object.assign(E,h)});
E_k.forEach(function(h){h=Wbr(W,h,"--yt-basic-");Object.assign(E,h)});
_.V9(F,E)}};
Wbr=function(F,W,E){var h={};h[E+_.Cg(W)]=F&&F[W]?_.XC(F[W]):"";return h};
_.Hr=function(F,W,E){XE[F]||(XE[F]={});XE[F][W]=E};
_.Pr=function(F){XE[F]||(XE[F]={});return XE[F]};
h$Y=function(F){if(!F)return{};var W=F.foregroundTitleColor,E=F.backgroundColor;F=F.borderColor;var h="text";F?h="outline":E&&(h="filled");return{type:h,customColors:{color:W?_.XC(W):void 0,backgroundColor:E?_.XC(E):void 0,borderColor:F?_.XC(F):void 0}}};
R$n=function(F){var W=F.renderer;var E=F.element;var h=F.commandController;var d=F.onTapCallback;var V=F.skipCommandHandling;var R=F.overrides;var M=F.forceIcon;var g=F.forceModernIconButton;var t=F.forceDisabled;var C=F.isSubscribe===void 0?!1:F.isSubscribe;var B=F.isPressed===void 0?!1:F.isPressed;var I=F.useButtonSize===void 0?!1:F.useButtonSize;F=dJk(W);C&&(F.style="mono",F.type="filled");M=!W.icon||!M&&W.text?W.icon?W.iconPosition==="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT"?"trailing":"leading":
void 0:g?"icon-only":"icon-only-40";M==="icon-only-40"&&(F.type="text");var x;g=Object;C=g.assign;I=NMk(W,I);B=!!W.isSelected||!_.c("web_propagate_is_pressed_killswitch")&&!!B;var A=W.isSelected!==void 0;t=t===void 0?W.isDisabled:t;var X=W.text?_.qr(W.text):void 0;var P,b,l,w=((P=W.accessibilityData)==null?void 0:(b=P.accessibilityData)==null?void 0:b.label)||((l=W.accessibility)==null?void 0:l.label);P=w?w:_.Yr(W.text);E=V1k(W,E,h,d,V);h=UJw(W);h!=null&&h.length?(h=_.Jm({innertubeCommand:JIR(h),
forceNewState:!0}),h=au(h)?h:void 0):h=void 0;return C.call(g,{},F,I,{iconPosition:M},R,{focused:!1,toggled:B,toggleable:A,disabled:t,formattedButtonText:X,accessibilityLabel:P,onTap:E,aTagConfig:h},h$Y((x=W.colorData)==null?void 0:x.basicColorPaletteData),{oneOffCustomTextWrap:W.oneOffCustomTextWrap})};
V1k=function(F,W,E,h,d){return function(V){var R=UJw(F);h(R,V);if(!d){R=_.U(R);for(var M=R.next();!M.done;M=R.next())sd(M.value,{form:{element:W,event:V},commandController:E})}}};
UJw=function(F){var W=[];F.command&&W.push(F.command);F.serviceEndpoint&&W.push(F.serviceEndpoint);F.navigationEndpoint&&W.push(F.navigationEndpoint);return W};
NMk=function(F,W){if(W)switch(F.size){case "SIZE_SMALL":return{size:"S"};case "SIZE_LARGE":return{size:"L"};case "SIZE_XLARGE":return{size:"XL"};case "SIZE_XSMALL":return{size:"XS"};default:return{size:"M"}}switch(F.style){case "STYLE_COMPACT_GRAY":return{size:"S"};default:return{size:"M"}}};
dJk=function(F){switch(F.style){case "STYLE_VISIBLY_DISABLED":return{style:"call-to-action",type:"text",state:"disabled"};case "STYLE_PRIMARY":case "STYLE_PAYMENT":case "STYLE_CALL_TO_ACTION_FILLED":return{style:"call-to-action",type:"filled",state:"active"};case "STYLE_OUTLINE":case "STYLE_SUGGESTIVE":case "STYLE_SUGGESTED_ACTION":return{style:"call-to-action",type:"outline",state:"active"};case "STYLE_BLUE_TEXT":case "STYLE_ALERT_INFO":return{style:"call-to-action",type:"text",state:"active"};case "STYLE_OVERLAY":return{style:"overlay",
type:"filled",state:"active"};case "STYLE_WHITE_WITH_BORDER":return{style:"overlay",type:"outline",state:"active"};case "STYLE_LIGHT_TEXT":return{style:"overlay",type:"text",state:"active"};case "STYLE_MONO_FILLED_OVERLAY":return{style:"overlay",type:"filled",state:"active"};case "STYLE_MONO_TONAL_OVERLAY":case "STYLE_DARK_ON_BLACK":return{style:"overlay",type:"tonal",state:"active"};case "STYLE_OVERLAY_PROTECTED":return{style:"overlay-dark",type:"tonal",state:"active"};case "STYLE_MONO_FILLED":case "STYLE_DESTRUCTIVE":return{style:"mono",
type:"filled",state:"active"};case "STYLE_DEFAULT":case "STYLE_COMPACT_GRAY":case "STYLE_MONO_TONAL":return{style:"mono",type:"tonal",state:"active"};case "STYLE_INACTIVE_OUTLINE":case "STYLE_MONO_OUTLINE":return{style:"mono",type:"outline",state:"active"};case "STYLE_BLUE_TEXT_WITH_INVERSE_THEME":return{style:"call-to-action-inverse",type:"text",state:"active"};case "STYLE_BRAND_GRADIENT":return{style:"brand-gradient",type:"filled",state:"active"};case "STYLE_GENERATIVE_GRADIENT":return{style:"gen-ai-gradient",
type:"filled",state:"active"};default:return{style:"mono",type:"text",state:"active"}}};
_.Jb=function(F){return _.vX(function(){eUk()();return i1(F)},void 0,"Icv7j")};
a3=function(F,W){return _.Mn(F.entities,"likeStatusEntity",W)};
e$o=function(F,W){return _.Mn(F.entities,"likeCountEntity",W)};
_.M1R=function(F,W){return _.Mn(F.entities,"stringEntity",W)};
g_e=function(F,W){if(!F)return!1;var E,h=(E=_.D(F,_.Q7))==null?void 0:E.signal;if(h&&W.signalEndpointMap)return!!W.signalEndpointMap[h];var d;if((E=(d=_.D(F,_.fQ))==null?void 0:d.request)&&W.continuationEndpointMap)return!!W.continuationEndpointMap[E];for(var V in F)if(W.commandEndpointMap[V])return!0;return!1};
QQr=function(F,W){if(W.streamingEndpointMap)for(var E in F)if(W.streamingEndpointMap[E]&&(F=W.streamingEndpointMap[E]))return F()};
z$Y=function(F,W){var E,h=(E=_.D(F,_.Q7))==null?void 0:E.signal;if(h&&W.signalEndpointMap&&(E=W.signalEndpointMap[h]))return E();var d;if((E=(d=_.D(F,_.fQ))==null?void 0:d.request)&&W.continuationEndpointMap&&(d=W.continuationEndpointMap[E]))return d();for(var V in F)if(W.commandEndpointMap[V]&&(F=W.commandEndpointMap[V]))return F()};
t1k=function(F){var W={"Content-Type":"application/json"};_.b0("EOM_VISITOR_DATA")?W["X-Goog-EOM-Visitor-Id"]=_.b0("EOM_VISITOR_DATA"):_.b0("VISITOR_DATA")&&(W["X-Goog-Visitor-Id"]=_.b0("VISITOR_DATA"));W["X-Youtube-Bootstrap-Logged-In"]=_.b0("LOGGED_IN",!1);_.b0("DEBUG_SETTINGS_METADATA")&&(W["X-Debug-Settings-Metadata"]=_.b0("DEBUG_SETTINGS_METADATA"));F!=="cors"&&((F=_.b0("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(W["X-Youtube-Client-Name"]=F),(F=_.b0("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(W["X-Youtube-Client-Version"]=
F),(F=_.b0("CHROME_CONNECTED_HEADER"))&&(W["X-Youtube-Chrome-Connected"]=F),(F=_.b0("DOMAIN_ADMIN_STATE"))&&(W["X-Youtube-Domain-Admin-State"]=F),_.l0("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(F=_.b0("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(W["X-YouTube-Lava-Device-Context"]=F));return W};
ClS=function(F,W){W.watchNextResponse||W.reelItemWatchResponse?W.watchNextResponse?F.content=W.watchNextResponse:F.content=W.reelItemWatchResponse:W.playerResponse?F.player=W.playerResponse:W.reelWatchSequenceResponse&&(F.reelSequence=W.reelWatchSequenceResponse)};
Od=function(F){return function(){return new F}};
bz=function(F){var W=_.WZ();return function(){return W.resolve(F)}};
_.lz=function(F){if(!F)return null;for(var W=[],E=0;E<F.textSegments.length;E++){var h=F.textSegments[E];h.text?W.push(h):h.emojiId&&W.push({emoji_id:h.emojiId})}return{text_segments:W}};
DJY=function(F,W,E,h,d,V,R){V=V===void 0?[]:V;var M=new _.nQ;M.endpoint=E;if(!E)return _.fn(new _.xC("handle undefined endpoint",W.tagName)),M;var g=ymw(E);g.length&&(_.Rj(F,g,W,h),M.actions=g);E.loggingUrls&&E.loggingUrls.forEach(function(C){C.baseUrl&&re(C.baseUrl,C.attributionSrcMode)});
g=!_.c("web_skip_impression_click_killswitch")&&h&&h.impression;if(E.clickTrackingParams&&!BMG(E)&&!v_S(W)&&!g&&(g=_.z4(),!_.jc(g,W))){var t=W.getScreenLayer&&W.getScreenLayer();t?g.clickCommand(E,null,t):g.clickCommand(E,null)}g=!1;for(t=0;t<V.length;t++)if((0,V[t])(W,E,h)){g=!0;break}!g&&IrR(E)&&(M.ajaxPromise=c$b(F,W,E,h,d,R));return M};
v_S=function(F){var W;return(F=(W=F.data)==null?void 0:W.navigationEndpoint)&&!!F.clickTrackingParams};
BMG=function(F){var W=_.D(F,_.Q7);if(W&&(W=W.signal)&&xJR.indexOf(W)>=0)return!0;for(var E in F)if(kxe.indexOf(E)>=0)return!0;return!1};
IrR=function(F){var W;if(((W=_.D(F,_.Q7))==null?void 0:W.signal)==="CLIENT_SIGNAL")return!1;for(var E in F)if(A$w.indexOf(E)>=0)return!1;F=Object.keys(F);return F.length===1&&F[0]==="loggingUrls"?!1:!0};
PlR=function(F,W,E,h,d,V,R){var M=_.iz.instance;if(M&&_.rY(M,h))var g=_.T_(M,h,d).then(function(C){return(C==null?0:C.data)?C:{data:C}});
else g=F.requestDataForServiceEndpoint(h,d),_.D(h,sQr)||_.D(h,LbY)||_.D(h,_.q4I)||_.D(h,$Jr)||_.OB(new _.xC("No RequestBuilder for endpoint",h));var t=_.G_();t.promise.thenCatch(function(){var C=_.aW(h,"action")||_.aW(h,"command")||_.aW(h,"endpoint");C&&(C=h[C],C.hasOwnProperty("onFailureAction")?_.Rj(W,[C.onFailureAction],E):C.hasOwnProperty("onFailureCommand")&&_.Rj(W,C.onFailureCommand,E));g.cancel("Resolver promise rejected")});
g.then(function(C){if(C){var B=C.error;if(B){if(V&&V.onServerError)V.onServerError(h,C);t.reject(new _.xC("Response error",h,B))}else if(C=C.data)if(B=C.error){if(V&&V.onServerError)V.onServerError(h,C);t.reject(new _.xC("Returned error",h,B))}else{Zhb(W,E,C,h);XFb(C);if(B=nTY(C))for(var I=_.U(B),x=I.next();!x.done;x=I.next()){x=x.value;var A=_.WZ().resolve(_.Fd(HhY))||YY;if(!_.iz.instance||!A.some(function(P){return!!_.D(h,P)})||_.c("kevlar_response_processor_allowlist_killswitch")){var X=A=void 0;
((X=_.D((A=x)==null?void 0:A.commandMetadata,_.m1))==null?0:X.sendPost)?_.UT(W,[x]):_.Rj(W,[x],E)}}(I=_.D(C==null?void 0:C.frameworkUpdates,wY))&&R&&R(I);if(V&&V.onSuccess)V.onSuccess(h,C);t.resolve(new _.uz(C,B))}}else t.reject(new _.xC("Invalid service endpoint provided",h))},function(C){t.reject(C)});
return t.promise};
XFb=function(F){var W;(F=(W=_.D(F==null?void 0:F.onResponseReceivedCommand,_.J$k))==null?void 0:W.continuationItems)&&(F==null?void 0:F.length)===1&&_.D(F[0],aro)&&_.P5("so_r",void 0,"search_overview_answer")};
c$b=function(F,W,E,h,d,V){var R;return(R=W.getNetworkManager&&W.getNetworkManager()?W.getNetworkManager():_.WZ().resolve(_.Fd(_.Ag)))?PlR(R,F,W,E,h,d,V):_.xT("No network manager.")};
Zhb=function(F,W,E,h){if(E=E.trackingParams||E.loggingDirectives&&E.loggingDirectives.trackingParams){var d;(_.D(h,frn)||_.D(h,OhI)||_.D(h,bhS))&&h.clickTrackingParams?d=_.ve(h.clickTrackingParams):_.c("web_graft_to_parent_command")&&h.clickTrackingParams&&(d=_.ve(h.clickTrackingParams));var V;h=(V=W.getScreenLayer)==null?void 0:V.call(W);W=_.z4().graftServerVe(E,d,h);_.Nc(F,"yt-store-grafted-ve-action",[W])}};
_.lrW=function(F){var W=new Image;return new _.z5(function(E,h){W.addEventListener("load",function(){E()});
W.addEventListener("error",function(){h()});
W.src=F})};
n_o=function(F){return!!F};
y$o=function(F){return!!F};
jQR=function(F,W,E){var h=F.rowIndex;h!==void 0&&_.Nc(F.hostElement,"yt-section-reactive-dismissal",[h,W,E])};
_.Sc=function(F,W,E){F=_.U(F);for(var h=F.next();!h.done;h=F.next()){h=h.value;if(h===W)break;for(var d=_.U(E),V=d.next();!V.done;V=d.next())if(V=V.value,h.tagName===V||!_.c("web_event_button_role_check_killswitch")&&h.role==="button"&&V==="BUTTON")return!0}return!1};
_.pQ=function(F,W,E){F=_.U(F);for(var h=F.next();!h.done;h=F.next()){h=h.value;if(h===W)break;for(var d=_.U(E),V=d.next();!V.done;V=d.next())if(h.id===V.value)return!0}return!1};
mA=function(F,W){if(!F&&!W)return"medium";F=Math.max(F||0,W||0);return F>=256?"large":F>=96?"medium":"small"};
ihn=function(F){switch(F){case 1:return 2/3;case 4:return.5625;case 3:return 1;default:return 16/9}};
_.WS=function(){var F=_.WZ().resolve(_.Fd(_.KQ));return F?(F=F.getCurrentPage())?_.FF(F):null:null};
_.E8=function(){var F=_.WS();if(!F){var W=_.WZ().resolve(_.Fd(_.KQ)),E=W?typeof W:"no page manager";W=W?W.getCurrentPage():null;E=new _.xC("Player is missing when requested.",E,W?W.tagName:"no page");_.a_(E)}return F};
_.FF=function(F){return F&&F.getPlayer?F.getPlayer():null};
r$o=function(F,W){F={args:{raw_player_response:F}};W&&(F.args=Object.assign({},F.args,W));return F};
TMn=function(F){if(F.args){if(F.args.raw_player_response)return F.args.raw_player_response;if(F.args.player_response)return JSON.parse(F.args.player_response)}};
_.o_e=function(F,W){var E={url:"/watch?v="+F.videoId,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832};F.playlistId&&(E.url+="&list="+F.playlistId);F.playerParams&&(E.url+="&pp="+F.playerParams);F={watchEndpoint:F,commandMetadata:{webCommandMetadata:E}};W&&(F.clickTrackingParams=W);return F};
Y4n=function(){return Gxb||!!_.ju("yt.player.Application")};
uyw=function(){return wFG||!!document.querySelector("link#player-css")};
pFr=function(){function F(){Gxb=!0;S4n.resolve()}
var W,E;return _.e(function(h){S4n||(S4n=new _.eR,Y4n()?F():(W=document.createElement("script"),W.addEventListener("load",F),E=_.s2(_.b0("PLAYER_JS_URL")),_.nu(W,E),document.head.appendChild(W)));return h.return(S4n.promise)})};
KbY=function(){function F(){wFG=!0;mJR.resolve()}
if(!mJR)if(mJR=new _.eR,uyw())F();else{var W=document.createElement("link");W.id="player-css";W.addEventListener("load",F);var E=_.s2(_.b0("PLAYER_CSS_URL"));_.ii(W,E,"stylesheet");document.head.appendChild(W)}return mJR.promise};
Fio=function(){return Y4n()&&uyw()?Promise.resolve([]):Promise.all([pFr(),KbY()])};
WiG=function(F,W,E){var h={args:{}};F&&(h.args.raw_player_response=F);W&&(h.args.raw_watch_next_response=W);E&&(h.args=Object.assign({},h.args,E));return h};
NzI=function(F,W,E){var h=!1;h=h===void 0?!0:h;F=typeof F==="string"?_.hG(document,F):F;var d=E2k+"_"+_.Ue(F),V=hgY[d];if(V&&h)return dhG(W,E)?V.api.loadVideoByPlayerVars(W.args||null):V.loadNewVideoConfig(W),V.api;V=new dk(F,d,W,E,void 0);hgY[d]=V;V.addOnDisposeCallback(function(){delete hgY[V.getId()]});
return V.api};
dhG=function(F,W){return W&&W.serializedExperimentFlags?W.serializedExperimentFlags.includes("web_player_remove_playerproxy=true"):F&&F.args&&F.args.fflags?F.args.fflags.includes("web_player_remove_playerproxy=true"):!1};
VGe=function(){var F=new _.eR;F.resolved=!1;var W=F.resolve;F.resolve=function(E){F.resolved=!0;W(E)};
return F};
Rgk=function(F){var W={};Uho().install((W.document_disposed={callback:F},W))};
NY=function(F,W){if(!F&&Math.random()<=_.dV("kevlar_unified_player_logging_threshold")){F=Error("th`"+(W?W:"Unspecified error"));if(_.c("kevlar_unified_player_throw_errors"))throw F;_.OB(F)}};
_.egS=function(){var F=_.ju("ytDebugData.callbacks");F||(F={},_.S5("ytDebugData.callbacks",F));return F};
g2o=function(F,W){var E=_.egS();if(_.c("web_dd_iu")||MGY.includes(F))E[F]=W};
QCw=function(){return _.e(function(F){return F.return({isLeader:_.aIG(_.uC().getState()),c:_.b0("INNERTUBE_CONTEXT_CLIENT_NAME"),cver:_.b0("INNERTUBE_CONTEXT_CLIENT_VERSION")})})};
zgW=function(){var F;_.e(function(W){if(W.nextAddress==1)return g2o("APP_STATE",QCw),_.Q(W,_.WZ().resolve(_.Va),2);F=W.yieldResult;g2o("PI",function(){return _.e(function(E){return E.return(F.getVideoStats())})});
_.gG(W)})};
tGb=function(F){var W=_.uI(_.jr(_.EY.location.href));F=_.uI(_.jr(F));return _.c("kevlar_clear_non_displayable_url_params")?W==U8(F):U8(W)==U8(F)};
U8=function(F){var W=_.CyG(F);F=F.slice(0);var E=["frags"];_.c("kevlar_hide_pp_url_param")&&E.push("pp");_.c("kevlar_hide_time_continue_url_param")&&E.push("time_continue");E=_.U(E);for(var h=E.next();!h.done;h=E.next())h=h.value,F=_.pg(_.uI(F),h);return _.uI(F)+(W?"#"+W:"")};
R6=function(F,W){W=Number(W)*1E3;var E=Math.round((0,_.KU)()),h=E.toString();F={innertubeResponse:F,serverDateTimestampMs:h,lastModifiedTimestampMs:h,expireTimestampMs:(E+W).toString()};if(W=_.b0("INNERTUBE_CONTEXT_CLIENT_NAME"))F.clientName=W;return F};
v2n=function(){return window&&window.performance&&window.performance.now?window.performance.now():Date&&Date.now?Date.now():++Bzr};
_.IhY=function(){var F=_.Pf(),W=_.JR();W&&F&&_.TJ(W,[F],!0)};
Dho=function(F){return F&&cOY.some(function(W){return F.includes(W)})};
qUo=function(F){var W=_.D(F,_.T5);if(!W)return!1;var E=W.url,h=W.attributionSrcMode==="ATTRIBUTION_SRC_MODE_LABEL_CHROME";if(!E)return _.a_(Error("yh")),!1;if(W.target==="TARGET_NEW_WINDOW"){var d={};_.c("resolve_url_parent_tracking_params")&&(!_.Su(E)||pW(window.location.href,E))&&(d={endpoint:F,itct:F.clickTrackingParams});RPr(d);F=null;try{if(h){a:{var V=E,R=d;h=h===void 0?!1:h;R&&_.Sr(V,R);var M=_.II(V),g=_.ty(M);V!=g&&_.i0(Error("Yf`"+V));V=g;try{if(h){g=V;g=cge(g);Jg(g);F=_.Jy(window,g,"_blank",
"attributionsrc");break a}}catch(I){_.nW(I)}Jg(V);F=_.Jy(window,M,"_blank")}xhR(_.WZ().resolve(k1r),F,E);return!0}}catch(I){_.a_(I)}_.Sr(E,d);d={target:"_blank",noopener:_.c("set_window_noopener_ks")&&!W.allowOpener};W=window;M=zy(E)?E:_.II(typeof E.href!="undefined"?E.href:String(E));F=self.crossOriginIsolated!==void 0;V="strict-origin-when-cross-origin";window.Request&&(V=(new Request("/")).referrerPolicy);g=d.noreferrer;if(F&&g&&V==="unsafe-url")throw Error("qe");V=g&&!F;g=d.target||E.target;h=
[];R=[];var t=!1;for(B in d){var C=d[B];switch(B){case "width":case "height":case "top":case "left":h.push(B+"="+C);break;case "target":break;case "noopener":case "noreferrer":C?R.push(B):(t=!0,R.push(B+"=false"));break;case "attributionsrc":h.push(B+(C?"="+C:""));break;default:h.push(B+"="+(C?1:0))}}var B=g!==void 0&&!["_blank","_self","_top","_parent",""].includes(g);B=Xe()&&B;AOr&&F&&h.length===0&&R.length>0&&!B&&!t?(R.length===2&&(R=["noreferrer"]),_.Jy(W,M,g,R[0]),F=sCe()):(B=h.join(","),_.OY()&&
W.navigator&&W.navigator.standalone&&g&&g!="_self"?(B=_.Cr("A"),Lu(B,M),B.target=g,V&&(B.rel="noreferrer"),((d=d.attributionsrc)||d==="")&&B.setAttribute("attributionsrc",d),d=document.createEvent("MouseEvent"),d.initMouseEvent("click",!0,!0,W,1),B.dispatchEvent(d),B=sCe()):V?(B=_.Jy(W,"",g,B),W=_.ty(M),B&&(B.opener=null,W===""&&(W="javascript:''"),W='<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+eb(W)+'">',W=$w(W),(d=B.document)&&d.write&&(d.write(X3(W)),
d.close()))):((B=_.Jy(W,M,g,B))&&d.noopener&&(B.opener=null),B&&d.noreferrer&&(B.opener=null)),F=B);xhR(_.WZ().resolve(k1r),F,E);return!0}B=_.gV(E);B=Dho(B)||E==="https://studio.youtube.com/";W=!(!_.Su(E)||pW(window.location.href,E));d=E.indexOf("disable_polymer=1")>=0;if(W||d||B)Jg(E),qc(),_.ao(E,void 0,void 0,window.top,Lik);else return _.OB(new _.xC("UrlEndpoint should not be used for same origin navigations. Use a better typed command instead",F)),!1;return!0};
_.XaY=function(F,W){W=W===void 0?0:W;if(!(_.D(F,$he)||_.D(F,ZJw)||_.D(F,_.T5)&&_.D(F,_.T5).url))return!1;var E,h=(E=_.D(F,_.T5))==null?void 0:E.url;E=h?{externalLinkData:{url:h}}:null;return _.z4().clickCommand(F,E,W)};
MY=function(F,W){return _.Mn(F.entities,"subscriptionStateEntity",W)};
HJG=function(F,W){return _.Mn(F.entities,"subscriptionNotificationStateEntity",W)};
Pyn=function(F,W){return _.Mn(F.entities,"upcomingEventReminderStateEntity",W)};
JOY=function(F,W){return _.Mn(F.entities,"engagementToolbarSurfaceEntityPayload",W)};
ahW=function(F,W){return _.Mn(F.entities,"triStateButtonStateEntityPayload",W)};
fhG=function(F,W){return _.Mn(F.entities,"commerceCartCheckoutButtonEntity",W)};
_.OJW=function(F,W){return _.Mn(F.entities,"playlistLoopStateEntity",W)};
bJo=function(F,W){return _.Mn(F.entities,"commandEntity",W)};
n2Y=function(F,W,E,h,d){d=d===void 0?{}:d;return function(V){var R,M;var g=((R=F.loggingDirectives)==null?0:(M=R.clientVeSpec)==null?0:M.uiType)?_.LQ(F.loggingDirectives.clientVeSpec.uiType):void 0;d.clickedVisualElement||(d.clickedVisualElement=g);g=lhI(F,W);E(g,V);g=_.U(g);for(R=g.next();!R.done;R=g.next()){R=R.value;M=h;var t=V,C=d;C.form?C.form.event=t:C.form={element:M,event:t};sd(R,C)}}};
lhI=function(F,W){var E=[];W?(F.toggledCommand&&E.push(F.toggledCommand),F.toggledServiceEndpoint&&E.push(F.toggledServiceEndpoint)):(F.defaultCommand&&E.push(F.defaultCommand),F.defaultServiceEndpoint&&E.push(F.defaultServiceEndpoint),F.defaultNavigationEndpoint&&E.push(F.defaultNavigationEndpoint));return E};
yOG=function(F,W){var E=F.toggledStyle||F.style,h;switch((h=W?E:F.style)==null?void 0:h.styleType){case "STYLE_VISIBLY_DISABLED":return{style:"call-to-action",type:"text",state:"disabled"};case "STYLE_PRIMARY":case "STYLE_PAYMENT":return{style:"call-to-action",type:"filled",state:"active"};case "STYLE_SUGGESTIVE":return{style:"call-to-action",type:"outline",state:"active"};case "STYLE_BLUE_TEXT":return{style:"call-to-action",type:"text",state:"active"};case "STYLE_DESTRUCTIVE":return{style:"mono",
type:"filled",state:"active"};case "STYLE_OVERLAY":return{style:"overlay",type:"filled",state:"active"};case "STYLE_LIGHT_TEXT":return{style:"overlay",type:"text",state:"active"};case "STYLE_MONO_TONAL_OVERLAY":return{style:"overlay",type:"tonal",state:"active"};case "STYLE_DEFAULT":case "STYLE_COMPACT_GRAY":return{style:"mono",type:"tonal",state:"active"};case "STYLE_INACTIVE_OUTLINE":return{style:"mono",type:"outline",state:"active"};default:return{style:"mono",type:"text",state:"active"}}};
jCe=function(F,W){W=W.uniqueId+"-border";var E,h;var d=(h=(E=_.WZ().resolve(_.Fd(_.nK)))==null?void 0:E())!=null?h:!1;return{animationRef:F,animationConfig:{name:W,autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/smartimations/smartimation_border_"+(d?"dark":"light")+"_v2.json"}}};
_.gk=function(){return _.e(function(F){return F.nextAddress==1?_.Q(F,_.WZ().resolve(_.Va),2):F.return(_.WZ().resolve(iJn)())})};
_.Qa=function(){return _.WZ().resolve(iJn)()};
_.tG=function(){return PQ(function(){return{lottieEl:void 0}})};
rOe=function(F,W){return F.startsWith(W.uniqueId)};
TzI=function(F){var W,E;_.e(function(h){if(h.nextAddress==1)return _.Q(h,_.gk(),2);W=h.yieldResult;if((E=W)==null||!E.addEventListener)return Cx(),h.return();W.addEventListener("onCueRangeEnter",F);_.gG(h)})};
o2o=function(F){var W,E;_.e(function(h){if(h.nextAddress==1)return _.Q(h,_.gk(),2);W=h.yieldResult;if((E=W)==null||!E.removeEventListener)return Cx(),h.return();W.removeEventListener("onCueRangeEnter",F);_.gG(h)})};
G1Y=function(F){var W,E,h,d,V;_.e(function(R){if(R.nextAddress==1)return _.Q(R,_.gk(),2);W=R.yieldResult;if((E=W)==null||!E.addCueRange)return Cx(),R.return();h=_.U(F.timings);for(d=h.next();!d.done;d=h.next())V=d.value,W.addCueRange(F.uniqueId+"-"+V,V/1E3,(V+100)/1E3);_.gG(R)})};
YUo=function(F){var W,E,h,d,V;_.e(function(R){if(R.nextAddress==1)return _.Q(R,_.gk(),2);W=R.yieldResult;if((E=W)==null||!E.removeCueRange)return Cx(),R.return();h=_.U(F.timings);for(d=h.next();!d.done;d=h.next())V=d.value,W.removeCueRange(F.uniqueId+"-"+V);_.gG(R)})};
waY=function(){var F,W,E;return _.e(function(h){if(h.nextAddress==1)return _.Q(h,_.gk(),2);F=h.yieldResult;if((W=F)==null||!W.getPlayerState)return Cx(),h.return();E=F.getPlayerState();return h.return(E===2)})};
Cx=function(){_.OB(new _.xC("Smartimation player does not exist or is corrupted"))};
mhY=function(F){var W=u7b;SUn.push(F);par||(W(function(){for(var E=_.U(SUn),h=E.next();!h.done;h=E.next())h=h.value,h();SUn.length=0;par=!1}),par=!0)};
u7b=function(F){Promise.resolve().then(F)};
BS=function(F){F=_.U(Q3S(F));var W=F.next().value,E=F.next().value,h=!1;_.Xk(function(){return function(){h=!0}});
return[W,function(d){mhY(function(){h&&!_.c("cow_prevent_state_setter_after_cleanup_killswitch")||E(d)})}]};
FQR=function(F){function W(t){var C;return _.e(function(B){if(B.nextAddress==1)return(C=!rOe(t,h)||!h.enabled)?B.jumpTo(2):_.Q(B,waY(),3);B.nextAddress!=2&&(C=B.yieldResult);if(C)return B.return();E();setTimeout(function(){g(!1)},1500);
_.gG(B)})}
function E(){setTimeout(function(){g(!0);var t;(t=V.lottieEl)==null||t.goToAndPlay(0)},150)}
var h=F.settings;var d=F.className;F=F.children;var V=_.tG(),R=_.U(BS(!1)),M=R.next().value,g=R.next().value;h||(h={uniqueId:"this is not intended behavior",enabled:!1,experimentEnabled:!1,timings:[]},_.OB(new _.xC("Smartimation Settings is undefined")));Z4(function(){if(h.experimentEnabled)return h.enabled?TzI(W):(g(!1),o2o(W)),function(){o2o(W)}},[h.enabled,
h.experimentEnabled]);Z4(function(){if(h.experimentEnabled)return G1Y(h),function(){YUo(h)}},[h.timings.join("")]);
return _.z("yt-smartimation",{class:Kio(d,M,h)},wl(h.experimentEnabled,function(){return _.z("div",{class:"smartimation__border"},_.z(pvw,{className:"smartimation__border-gradient",data:jCe(V,h)}))}),_.z("div",{class:"smartimation__content"},F))};
Kio=function(F,W,E){var h=["smartimation"];F&&h.push(F);E.experimentEnabled&&h.push("smartimation--experiment-enabled");W&&h.push("smartimation--active-border");try{var d;var V=(d=window.CSS)!=null&&d.supports?window.CSS.supports("-webkit-mask","linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0)")&&(window.CSS.supports("-webkit-mask-composite","xor")||window.CSS.supports("mask-composite","exclude")):!1}catch(R){_.OB(new _.xC("Smartimation CSS.supports threw an error")),V=!1}V&&h.push("smartimation--enable-masking");
return h.join(" ")};
WQS=function(){try{var F;return(F=window.CSS)!=null&&F.supports?window.CSS.supports("-webkit-mask","linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0)")&&(window.CSS.supports("-webkit-mask-composite","xor")||window.CSS.supports("mask-composite","exclude")):!1}catch(W){return _.OB(new _.xC("Smartimation CSS.supports threw an error")),!1}};
R3R=function(F,W,E,h,d){var V=F.playlistId?EyW:h3o;W=W();E=E();d=!!F.videoId&&d()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";if(_.cz(W))return dfW({data:F,actionType:V,disabled:d},E);if(F.videoId&&h())return Nxo({data:F,actionType:V,disabled:d});switch(W){case "TRANSFER_STATE_UNKNOWN":return Nxo({data:F,actionType:V,disabled:d});case "TRANSFER_STATE_FAILED":return F.videoId?VKI({data:F,actionType:V,disabled:d}):UfG({data:F,actionType:V,disabled:d});case "TRANSFER_STATE_COMPLETE":return UfG({data:F,
actionType:V,disabled:d});case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":return dfW({data:F,actionType:V,disabled:d},E);case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return F.videoId?VKI({data:F,actionType:V,disabled:d}):Nxo({data:F,actionType:V,disabled:d});default:return Nxo({data:F,actionType:V,disabled:d})}};
e3I=function(F,W){var E=F.onTapCommand,h=_.He(E);if(F.videoId&&_.D(h,_.vS))return _.D(h,_.vS).action=W,E;F.playlistId&&_.D(h,_.I6)&&(_.D(h,_.I6).action=W);return E};
Nxo=function(F){var W=F.data;var E=F.actionType;F=F.disabled;return{text:MKo,iconType:"OFFLINE_DOWNLOAD",onTap:e3I(W,E.ACTION_ADD),disabled:F}};
dfW=function(F,W){var E=F.data;var h=F.actionType;F=F.disabled;var d="OFFLINE_DOWNLOAD";W>=0&&W<=.1?d="OFFLINE_DOWNLOADING_ZERO":W>.1&&W<=.3?d="OFFLINE_DOWNLOADING_TWENTY":W>.3&&W<=.5?d="OFFLINE_DOWNLOADING_FORTY":W>.5&&W<=.7?d="OFFLINE_DOWNLOADING_SIXTY":W>.7&&W<1?d="OFFLINE_DOWNLOADING_EIGHTY":W===1&&(d="OFFLINE_PIN");return{text:gyS,iconType:d,onTap:e3I(E,h.ACTION_REMOVE_WITH_PROMPT),disabled:F}};
UfG=function(F){var W=F.data;var E=F.actionType;F=F.disabled;return{text:QPY,iconType:"OFFLINE_PIN",onTap:e3I(W,E.ACTION_REMOVE_WITH_PROMPT),disabled:F}};
VKI=function(F){var W=F.data;var E=F.actionType;F=F.disabled;return{text:z3b,iconType:"OFFLINE_DOWNLOAD",onTap:e3I(W,E.ACTION_RETRY),disabled:F}};
tKr=function(){var F=_.U(BS(!1)),W=F.next().value,E=F.next().value;return function(){E(!W)}};
C$Y=function(F){return PQ(function(){return{value:F}})};
Bxk=function(F,W){var E=C$Y(F),h=C$Y(W);Z4(function(){E.value=F},[F]);
Z4(function(){h.value=W},W&&W.length>=1?W:[void 0]);
var d=PQ(function(){return{value:void 0}});
if(F!==E.value||h.value!==W||d.value===void 0)d.value=i1(F,W);var V=tKr();_.Xk(function(){function R(){var g=i1(E.value,W);g!==d.value&&(d.value=g,V())}
var M=_.ja().subscribe(R);R();return M});
return d.value};
cS=function(F,W){return Bxk(F,[W])};
_.D1=function(F,W){var E=eUk();return _.vX(function(){E();return i1(F,[_.XO(W)||""])},void 0,"HaeHEc")};
vyr=function(F){var W=_.D1(_.ax,function(){return F().videoId}),E=_.D1(_.fV,function(){return F().playlistId});
return function(){return F().videoId?W:F().playlistId?E:_.U(_.g$("TRANSFER_STATE_UNKNOWN",void 0,"Qibycf")).next().value}};
IgS=function(F){var W=_.D1(O_,function(){return F().videoId}),E=_.D1(_.J7w,function(){return F().playlistId});
return function(){return F().videoId?W:F().playlistId?E:_.U(_.g$(0,void 0,"K4tgOc")).next().value}};
c4k=function(F){var W=_.D1(_.jHr,function(){return F().videoId});
return function(){return F().videoId?W:_.U(_.g$(!1,void 0,"Oaxwcf")).next().value}};
DfY=function(F){var W=_.D1(Oio,function(){return F().videoId});
return function(){return F().videoId?W:_.U(_.g$("ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN",void 0,"MsSpJc")).next().value}};
xfY=function(){return{}};
sPW=function(F){var W=F.backgroundLottieRef;var E=F.foregroundLottieRef;var h=F.children;var d=F.wrapperClass;F=F.disableAnimation;F=(_.c("web_animated_actions")||_.c("web_animated_actions_v2"))&&!F;return _.z("yt-animated-action",{class:_.ec("animated-action__container",d)},_.z("div",{class:"animated-action__content-with-background"},wl(F,function(){return _.z(kuo,{wrapperClass:"animated-action__background-container",lottieClass:"animated-action__background",lottiePlayerProps:{animationRef:W,animationConfig:{name:"animated-actions-background",
autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_container_"+(A4o()?"dark":"light")+"_v5.json"}}})}),h),wl(F,function(){return _.z(kuo,{lottiePlayerProps:{animationRef:E,
animationConfig:{name:"animated-actions-foreground",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_sparkles_"+(A4o()?"dark":"light")+"_v4.json"}}})}))};
kuo=function(F){var W=F.wrapperClass;var E=F.lottieClass;F=F.lottiePlayerProps;return _.z("div",{class:_.gY("animated-action__lottie",W),"aria-hidden":"true"},_.z(pvw,{className:E,data:F}))};
A4o=function(){var F,W;return(W=(F=_.WZ().resolve(_.Fd(_.nK)))==null?void 0:F())!=null?W:!1};
LQW=function(){var F,W;return(W=(F=_.WZ().resolve(_.Fd(_.nK)))==null?void 0:F())!=null?W:!1};
$fr=function(F,W){F=F===void 0?q$W:F;switch(W.type){case "SET_IS_BOTTOM_SHEET_OPEN_STATE":return Object.assign({},F,{isOpen:W.payload});default:return F}};
XCY=function(F,W){F=F===void 0?ZGG:F;switch(W.type){case "SET_CINEMATIC_SETTING_STATE":return Object.assign({},F,{isAllowed:W.payload});default:return F}};
P$n=function(F,W){F=F===void 0?HGb:F;switch(W.type){case "SET_ERROR_MESSAGE_CREATE_PLAYLIST_STATE":return Object.assign({},F,{errorMessage:W.payload});case "SET_TITLE_CREATE_PLAYLIST_STATE":return Object.assign({},F,{title:W.payload});case "SET_PRIVACY_CREATE_PLAYLIST_STATE":return Object.assign({},F,{privacy:W.payload});case "SET_IS_DISABLED_CREATE_PLAYLIST_STATE":return Object.assign({},F,{isDisabled:W.payload});default:return F}};
agW=function(F,W){F=F===void 0?J4I:F;switch(W.type){case "SET_IS_DRAWER_LAYOUT_OPEN_STATE":return Object.assign({},F,{isOpen:W.payload});default:return F}};
OGo=function(F,W){F=F===void 0?fgG:F;switch(W.type){case "SET_IS_FULLSCREEN_STATE":return Object.assign({},F,{isFullscreen:W.payload});case "SET_NAVIGATION_BUTTON":var E=W.payload.targetId,h=Object.assign({},F.navigationButtons);h[E]=W.payload.button;return Object.assign({},F,{navigationButtons:h});case "SET_TOP_PANEL_ID_STATE":return Object.assign({},F,{topPanelId:W.payload});case "SET_SECONDARY_HEADER":return E=W.payload.panelId,h=Object.assign({},F.secondaryHeader),h[E]=W.payload.secondaryHeader,
Object.assign({},F,{secondaryHeader:h});default:return F}};
y4W=function(){return zM(Object.assign({},{entities:zin,voiceSearch:qXY,engagementPanel:OGo,bottomSheet:$fr,cinematicSetting:XCY,shorts:fTb,drawerLayout:agW,createPlaylist:P$n,locationCollection:bGn,reportChannel:lgR,reportForm:nyY},Oon))};
jPn=function(F,W){return"https://www.gstatic.com/youtube/img/lottie/"+F+"/"+W+".json"};
iGo=function(F){return{lottiePlayerProps:{animationConfig:{name:F.name,path:jPn("custom_animated_like_icon",F.path),loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"animated-like-icon"}}},totalFrames:F.totalFrames,lazyLoad:!0}};
r4W=function(F,W){_.P0.addLowPriorityJob(function(){var E,h,d;return _.e(function(V){switch(V.nextAddress){case 1:return _.Nl(V,2),_.Q(V,jcr(),4);case 4:return _.Q(V,fetch(F),5);case 5:return E=V.yieldResult,_.Q(V,E.json(),6);case 6:h=V.yieldResult;R3.set(F,h);requestAnimationFrame(function(){W(h)});
_.id(V,0);break;case 2:d=_.Ml(V),_.OB(d),_.gG(V)}})})};
Txb=function(F){var W={animationConfig:{},listeners:{}},E=function(){F(!0)};
W.listeners.data_failed=E;W.listeners.error=E;W.listeners.data_ready=function(){F(!1)};
return W};
xV=function(F){var W=F.model;var E=F.subscribed;var h=F.isOverlay;var d=F.element;var V=F.commandController;var R=F.notificationState;if(E){var M,g;var t=(W==null?void 0:(M=W.buttonStyle)==null?void 0:M.subscribedStateStyle)==="SUBSCRIBE_BUTTON_VIEW_MODEL_SUBSCRIBED_STATE_STYLE_DROPDOWN_COMPACT"?void 0:W==null?void 0:(g=W.unsubscribeButtonContent)==null?void 0:g.buttonText}else{var C;t=W==null?void 0:(C=W.subscribeButtonContent)==null?void 0:C.buttonText}a:{var B;switch(W==null?void 0:(B=W.buttonStyle)==
null?void 0:B.buttonSize){case "SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_XSMALL":M="S";break a;default:M="M"}}a:if(h)h="overlay";else switch(W.backgroundStyle){case "SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_OVERLAY":case "SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_FULLSCREEN_OVERLAY":case "SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_IMMERSIVE_OVERLAY":case "SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_IMMERSIVE_OVERLAY_RED":h="overlay";break a;default:h="mono"}a:if(E)var I="tonal";else switch((I=W.buttonStyle)==
null?void 0:I.unsubscribedStateStyle){case "SUBSCRIBE_BUTTON_VIEW_MODEL_UNSUBSCRIBED_STATE_STYLE_SECONDARY":I="tonal";break a;default:I="filled"}return{style:h,type:I,state:W.disableSubscribeButton?"disabled":"active",size:M,focused:F.focused,toggled:E,accessibilityLabel:oye(W,E,R),buttonText:t,iconPosition:W.disableNotificationBell?"none":"leading-trailing",onTap:GuG(W,E,d,V),disableTextEllipsis:!!F.disableTextEllipsis}};
GuG=function(F,W,E,h){return function(d){if(W){var V;var R=F.disableNotificationBell?_.He(F==null?void 0:(V=F.unsubscribeButtonContent)==null?void 0:V.onTapCommand):_.He(F==null?void 0:F.onShowSubscriptionOptions)}else{var M;R=_.He(F==null?void 0:(M=F.subscribeButtonContent)==null?void 0:M.onTapCommand)}R&&sd(R,{form:{element:E},commandController:h});d.stopPropagation()}};
oye=function(F,W,E){if(W){if(F==null?0:F.disableNotificationBell){var h;return F==null?void 0:(h=F.unsubscribeButtonContent)==null?void 0:h.accessibilityText}switch(E){case "SUBSCRIPTION_NOTIFICATION_STATE_OCCASIONAL":var d;return F==null?void 0:(d=F.bellAccessibilityData)==null?void 0:d.occasionalLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":var V;return F==null?void 0:(V=F.bellAccessibilityData)==null?void 0:V.allLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":var R;return F==null?void 0:(R=
F.bellAccessibilityData)==null?void 0:R.offLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":var M;return F==null?void 0:(M=F.bellAccessibilityData)==null?void 0:M.disabledLabel;default:var g;return F==null?void 0:(g=F.unsubscribeButtonContent)==null?void 0:g.accessibilityText}}else{var t;return F==null?void 0:(t=F.subscribeButtonContent)==null?void 0:t.accessibilityText}};
kV=function(F){if(!F)return null;switch(F){case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":F="NOTIFICATIONS_ACTIVE";break;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":F="NOTIFICATIONS_OFF";break;default:F="NOTIFICATIONS_NONE"}return F};
Y$n=function(F,W,E){E.subscribed!==W&&((E=E.key)&&_.rQ(_.AG("subscriptionStateEntity",E,{key:E,subscribed:W})),F.dispatchEvent(new CustomEvent("yt-subscription-changed",{bubbles:!0,detail:W})),W||_.dW(F,"yt-unsubscribe-action"))};
uio=function(F){F=_.D(_.He(F),_.s8);var W,E,h,d;return(d=_.D(F==null?void 0:(W=F.panelLoadingStrategy)==null?void 0:(E=W.inlineContent)==null?void 0:(h=E.sheetViewModel)==null?void 0:h.content,wCr))==null?void 0:d.listItems};
S$e=function(F,W){if(F.onShowSubscriptionOptions&&W&&(F=uio(F.onShowSubscriptionOptions),F!=null&&F.length)){var E=kV(W);F.forEach(function(h){h=_.D(h,_.Lx);var d,V,R,M,g=h==null?void 0:(d=h.leadingImage)==null?void 0:(V=d.sources)==null?void 0:(R=V[0])==null?void 0:(M=R.clientResource)==null?void 0:M.imageName;h&&g&&(h.isSelected=g===E)})}};
pCR=function(F,W,E,h){W&&E?F.style.width=E+"px":!W&&h&&(F.style.width=h+"px")};
mfY=function(F,W,E){var h;(h=F.lottieEl)==null||h.goToAndPlay(0);var d;(d=W.lottieEl)==null||d.goToAndPlay(0);_.qY(_.P0,function(){var V;(V=E.lottieEl)==null||V.goToAndPlay(0)},300)};
hEY=function(F){var W=_.uf(),E=_.uf(),h=_.uf(),d=_.tG(),V=_.tG(),R=_.tG(),M=_.WZ().resolve(KQW),g,t=(g=cS(MY,F.data.stateEntityStoreKey))!=null?g:void 0,C,B,I,x=(I=cS(HJG,(B=(C=F.data.notificationStateEntityStoreKeys)==null?void 0:C.subsNotificationStateKey)!=null?B:""))!=null?I:void 0;g=!!F.data.disableNotificationBell;var A=!F.data.enableSubscribeButtonPostClickAnimation;C=_.U(BS(0));var X=C.next().value,P=C.next().value;C=_.U(BS(0));var b=C.next().value,l=C.next().value;C=_.U(BS(!1));var w=C.next().value,
G=C.next().value;C=_.U(BS(!1));var hr=C.next().value,p=C.next().value,UY=J8(!1),xW=J8("");C=_.U(BS(!1));var qw=C.next().value,Lb=C.next().value,jk=function(){p(!0);_.qY(_.P0,function(){p(!1)},1500)};
Z4(function(){hr&&!A&&t&&mfY(d,V,R)},[hr]);
Z4(function(){!A&&t&&(F.animateWidth&&pCR(W.value,!!t.subscribed,X,b),t.subscribed&&t.key===xW.value&&jk(),t.key&&(xW.value=t.key))},[t==null?void 0:t.subscribed,
t==null?void 0:t.key]);var Jr=HQ(function(){var Z_=F.data,MU=!(t==null||!t.subscribed),Ef=!!F.isOverlay,kR=w?W.value:void 0,Rn=x==null?void 0:x.state;S$e(Z_,Rn);return xV({model:Z_,subscribed:MU,isOverlay:Ef,element:kR,notificationState:Rn,disableTextEllipsis:!0,focused:qw})},[F.data,
t,x,qw,F.isOverlay,w]),nb=function(){var Z_=_.WZ().resolve(_.Fd(_.$V));Z_&&Lb(Z_.isKeyBoardInUse())},bo=function(){Lb(!1)};
S6k(W,function(Z_){uo();t&&(Z_.detail.endpoint.subscribeEndpoint||Z_.detail.endpoint.unsubscribeEndpoint)&&Y$n(W.value,!t.subscribed,t)});
_.w3("yt-player-subscribe",function(Z_){t&&Z_===F.data.channelId&&Y$n(W.value,!0,t)});
_.w3("yt-player-unsubscribe",function(Z_){t&&Z_===F.data.channelId&&Y$n(W.value,!1,t)});
_.w3("yt-update-subscribe-button-action",function(Z_){Z_=_.D(Z_,Fko);t&&Z_&&Z_.channelId===F.data.channelId&&Y$n(W.value,!!Z_.subscribed,t)});
_.Xk(function(){W.value&&(W.value.addEventListener("focusin",nb),W.value.addEventListener("focusout",bo));_.sB(_.P0,function(){uo()});
G(!0);return function(){W.value&&(W.value.removeEventListener("focusin",nb),W.value.removeEventListener("focusout",bo))}});
var uo=function(){if(!A&&F.animateWidth&&(E==null?0:E.value)&&(h==null?0:h.value)&&!UY.value){var Z_=_.U((t==null?0:t.subscribed)?[E,h]:[h,E]),MU=Z_.next().value;Z_=Z_.next().value;MU=Math.ceil(MU.value.getBoundingClientRect().width);Z_=Math.ceil(Z_.value.getBoundingClientRect().width);P(MU);l(Z_);pCR(W.value,!(t==null||!t.subscribed),MU,Z_);UY.value=!0}},b_=function(){var Z_=kV(x==null?void 0:x.state);
return A||Z_!=="NOTIFICATIONS_NONE"?function(){return M(Z_)}:function(){iH(Wkb)({animatedIconType:"NOTIFICATION_BELL",
active:!1,animationRef:R})}};
C=function(){var Z_=kV(x==null?void 0:x.state);return A||Z_!=="NOTIFICATIONS_NONE"?function(){return _.z(_.I3,{icon:Z_!=null?Z_:void 0})}:function(){return _.z(Wkb,{animatedIconType:"NOTIFICATION_BELL",
active:!1,animationRef:R})}};
var BO=!(t==null||!t.subscribed)&&!g&&!(x==null||!x.state),dc=!(t==null?0:t.subscribed),VM=dc&&!g&&!(x==null||!x.state);g={};B={};return _.z("yt-subscribe-button-view-model",{class:_.gY(F.className,"yt-subscribe-button-view-model-wiz",(g["yt-subscribe-button-view-model-wiz__can-animate-width"]=!(t==null||!t.subscribed)&&F.animateWidth&&hr,g["yt-subscribe-button-view-model-wiz--hidden"]=!(t==null?0:t.subscribed)&&F.data.hideWhenUnsubscribed,g)),el:W},_.z(EXe,{backgroundLottieRef:d,foregroundLottieRef:V,
wrapperClass:_.gY("yt-subscribe-button-view-model-wiz__animated-action-wrapper",(B["yt-subscribe-button-view-model-wiz__animated-action-wrapper--is-animating"]=F.animateWidth&&hr,B["yt-subscribe-button-view-model-wiz__static-width"]=!F.animateWidth,B)),disableAnimation:A},_.z("div",{el:E,class:_.gY("yt-subscribe-button-view-model-wiz__container"),idomKey:F.data.channelId},_.c("web_wiz_button_shape")?_.z(Per,{data:Jr,icon:BO?C():void 0,secondaryIcon:BO?function(){return _.z(_.I3,{icon:"EXPAND"})}:
void 0}):_.z(pn,null,function(){qyo(Jr,BO?b_():void 0,BO?function(){return M("EXPAND")}:void 0)}))),_.z("div",{el:h,
class:"yt-subscribe-button-view-model-wiz__invisible"},!F.animateWidth||A||UY.value?null:_.c("web_wiz_button_shape")?_.z(Per,{data:xV({model:F.data,subscribed:dc,isOverlay:!!F.isOverlay,element:W.value,disableTextEllipsis:!0}),icon:VM?function(){var Z_;return _.z(_.I3,{icon:(Z_=kV(x==null?void 0:x.state))!=null?Z_:void 0})}:void 0,
secondaryIcon:VM?function(){return _.z(_.I3,{icon:"EXPAND"})}:void 0}):_.z(pn,null,function(){qyo(xV({model:F.data,
subscribed:dc,isOverlay:!!F.isOverlay,element:W.value,disableTextEllipsis:!0}),VM?function(){return M(kV(x==null?void 0:x.state))}:function(){},VM?function(){return M("EXPAND")}:void 0)})))};
d9b=function(F){if(F){switch(F){case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":F="NOTIFICATIONS_ACTIVE";break;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":F="NOTIFICATIONS_OFF";break;default:F="NOTIFICATIONS_NONE"}return F}};
NJr=function(F,W,E){E.subscribed!==W&&((E=E.key)&&_.rQ(_.AG("subscriptionStateEntity",E,{key:E,subscribed:W})),F.dispatchEvent(new CustomEvent("yt-subscription-changed",{bubbles:!0,detail:W})),W||_.dW(F,"yt-unsubscribe-action"))};
VWo=function(F){F=_.D(_.He(F),_.s8);var W,E,h,d;return(d=_.D(F==null?void 0:(W=F.panelLoadingStrategy)==null?void 0:(E=W.inlineContent)==null?void 0:(h=E.sheetViewModel)==null?void 0:h.content,wCr))==null?void 0:d.listItems};
U9Y=function(F,W){if(F.onShowSubscriptionOptions&&W&&(F=VWo(F.onShowSubscriptionOptions),F!=null&&F.length)){var E=d9b(W);F.forEach(function(h){h=_.D(h,_.Lx);var d,V,R,M,g=h==null?void 0:(d=h.leadingImage)==null?void 0:(V=d.sources)==null?void 0:(R=V[0])==null?void 0:(M=R.clientResource)==null?void 0:M.imageName;h&&g&&(h.isSelected=g===E)})}};
REr=function(F,W,E,h){W&&E?F.style.width=E+"px":!W&&h&&(F.style.width=h+"px")};
eEw=function(F,W,E){var h;(h=F.lottieEl)==null||h.goToAndPlay(0);var d;(d=W.lottieEl)==null||d.goToAndPlay(0);_.qY(_.P0,function(){var V;(V=E.lottieEl)==null||V.goToAndPlay(0)},300)};
Z1=function(){return _.WZ().resolve(_.Fd(MWY))||{}};
gXk=function(F){return typeof F==="function"};
_.XF=function(F){Object.keys(F);var W=function(E,h){var d=W.mapping||F;if(!E)return _.z(_.EG,null);if(Array.isArray(E)&&(E=QDY(d,W,E),Array.isArray(E))){if(!E.length)return _.z(_.EG,null);if(E.length>1){for(var V=!1,R=!1,M=[],g={},t=0;t<E.length;g={data$jscomp$1830:void 0},t++)if(g.data$jscomp$1830=E[t],g.data$jscomp$1830){var C=zER(g.data$jscomp$1830,d),B=C.mappingEntry;C=C.rendererName;B&&C&&(B&&(!gXk(B)&&tWY(B)&&(R=!0),!gXk(B)&&B.asyncId||(V=!0)),M.push(C3I(g.data$jscomp$1830,B,C,W,h)))}return R&&
!V?_.z(_.EG,null,BJb()):_.z(_.EG,null,M)}E=E[0]}if(!E)return _.z(_.EG,null);E=QDY(d,W,[E])[0];if(!E)return _.z(_.EG,null);V=zER(E,d);d=V.mappingEntry;V=V.rendererName;return d&&V?_.z(_.EG,null,C3I(E,d,V,W,h)):_.z(_.EG,null)};
W.mapping=F;return W};
_.vXo=function(F){var W=void 0,E;for(E in F)if(F.hasOwnProperty(E)){W=E;break}return W};
QDY=function(F,W,E){var h,d=(h=Z1().preProcessOptions)==null?void 0:h.idomOptions;if(!d)return E;Z1();return d.preProcessPropsIdom(F,E,W.triggerRerender)};
zER=function(F,W){return(F=_.vXo(F))?{mappingEntry:W[F],rendererName:F}:{mappingEntry:void 0,rendererName:void 0}};
C3I=function(F,W,E,h,d){if(!W)return _.z(_.EG,null);var V={};d&&d[E]&&(V=Object.assign({},d[E]));F[E]!==void 0&&(V.data=F[E]);if(gXk(W))return W.debugName||(W.debugName=E),_.z(W,V);W.asyncId&&(h.pendingIdsMap=h.pendingIdsMap||{},h.pendingIdsMap[E]=W.asyncId);return W.templateFn?W.templateFn(V):tWY(W)?BJb():_.z(_.EG,null)};
tWY=function(F){var W;return(W=F.showPlaceholder)!=null?W:Z1().defaultShowPlaceholder};
BJb=function(){var F=Z1().placeholder;return F()};
IQS=function(F,W){W=W===void 0?{shouldPersist:!0}:W;return{useUpdatableData:function(E,h){var d=[],V=_.U(_.Br(function(){var t=E();if(h!=null&&h.length&&d){var C=d.length>0;for(var B=!1,I=0;I<h.length;I++){var x=h[I]();C&&x!==d[I]&&(B=!0);d[I]=x}C=B}else C=!1;if(C)_.HS.remove(g());else if(C=_.HS.get(g()))return C;return t})),R=V.next().value,M=V.next().value,g=_.vX(function(){return F(E())},void 0,"VFraLb");
_.q6(function(){if(g()!=null){PS.set(g(),[R,M,!1]);var t=g();_.$p(function(){PS.delete(t)})}});
return[R,function(t){M(t);W.shouldPersist&&_.HS.set(g(),t)}]},
getData:function(E){var h;return(h=PS.get(F(E)))==null?void 0:h[0]()},
updateData:function(E,h){E=F(E);var d=PS.get(E);if(!d)return!1;var V=_.U(d);d=V.next().value;V=V.next().value;h=h(d());V(h);W.shouldPersist&&_.HS.set(E,h);return!0},
useUpdatableDataIdom:function(E,h){var d=F(E),V=_.HS.get(d),R=_.U(BS(V!=null?V:E)),M=R.next().value,g=R.next().value,t=J8(V!=null?V:E);Z4(function(){if(d!=null)return PS.set(d,[function(){return t.value},
function(C){g(C);t.value=C},
PS.has(d)]),_.P0.addJob(function(){_.JG(_.P0,function(){var C=PS.get(d);C&&(C[2]=!1)},0)},8),function(){var C;
((C=PS.get(d))==null?0:C[2])||PS.delete(d)}},[d]);
Z4(function(){M!==E&&(g(E),t.value=E)},h?[].concat(_.x9(h),[d]):[d]);
return[M,g]}}};
cpb=function(F){var W=_.U(_.g$(!0,void 0,"bKtO6d")),E=W.next().value;W.next();return function(){var h=t8(F.children());return _.z(_.v,{cond:E,then:function(){return h},
else:F.fallback})}()};
_.a6=function(F){var W=D9Y(F),E=W.data,h=W.mapping,d=W.wrapper;W=W.pendingFallback;var V=function(){return x9o(_.XO(E))},R=function(){var M=V(),g=[];
M=_.U(M);for(var t=M.next();!t.done;t=M.next()){var C=void 0;t=t.value;var B=void 0;for(C in t)if(!(!t).hasOwnProperty(C)){B=C;break}(C=B)&&g.push(C)}return g};
return F.data?_.z(cpb,{fallback:W},function(){return _.z(_.xF,{each:R},function(M,g){var t=d?function(B){return d(function(){return h[M](B,g)},C,g)}:function(B){return h[M](B,g)};
t.debugName||(t.debugName=String(M));if(!h[String(M)])return document.createComment("");var C=kIb(V,M,g);return _.z(t,{data:C})})}):_.z(_.EG,null)};
D9Y=function(F){var W=F.targetId||Apo(F.children);if(!F.data||!W||_.c("mweb_new_replaceables_killswitch"))return Object.assign({},F,{mapping:F.children,wrapper:void 0});var E="stamper-"+sDr++,h=function(){var M;return(M=_.XO(F.targetId))!=null?M:E};
W=_.U(Lkn(function(){var M=x9o(F.data());M.targetId=h;return M})).next().value;
var d=Object.assign({},Z1().replaceableMapping,F.children);if(F.replacementWrapper){var V=d.notificationTextRenderer,R=d.notificationMultiActionRenderer;V&&(d.notificationTextRenderer=function(M,g){return F.replacementWrapper(V({data:M.data},g))});
R&&(d.notificationMultiActionRenderer=function(M,g){return F.replacementWrapper(R({data:M.data},g))})}return Object.assign({},F,{data:W,
mapping:d,wrapper:function(M,g,t){return $gn({targetId:h,stamperIndex:t},M)}})};
kIb=function(F,W,E){var h;return _.vX(function(){var d=F()[E()];if(d)h=d[W];else return _.OB(new _.xC("Stamper failed to find "+String(W)+" at index "+E()+" of data array of length "+(F().length+" (b/365643359). Did you access a signal after a component has been cleaned up?"))),h;return d[W]},void 0,"DHuMIe")};
Apo=function(F){F=_.U(Object.keys(F));for(var W=F.next();!W.done;W=F.next())if(W=W.value,qEo.includes(W)||$9o.includes(W)||ZZI.includes(W))return!0;return!1};
x9o=function(F){return F?Array.isArray(F)?F:[F]:[]};
X7Y=function(F){F=_.D(F,_.fx);return(F==null?void 0:F.iconName)&&!(F==null?0:F.title)};
Jpk=function(F,W,E){var h;return _.z(_.EG,null,F==null?void 0:(h=F.actions)==null?void 0:h.map(function(d){return _.z("div",{class:function(){var V={"yt-flexible-actions-view-model-wiz__action":!0};V["yt-flexible-actions-view-model-wiz__action--row-action"]=W;V["yt-flexible-actions-view-model-wiz__action--row-action-feature-phone"]=!1;if(X7Y(d))var R=!0;else if(R=_.D(d,_.O8),(R==null?0:R.isToggled)&&X7Y(R==null?void 0:R.toggledButtonViewModel)||(R==null||!R.isToggled)&&X7Y(R==null?void 0:R.defaultButtonViewModel))R=
!0;else{var M;R=((M=_.D(d,HZe))==null?0:M.playlistId)?!0:!1}V=(V["yt-flexible-actions-view-model-wiz__action--icon-only-button"]=R,V["yt-flexible-actions-view-model-wiz__action--intrinsic-width"]=E,V);return _.gY(V)}},P3S([d],{subscribeButtonViewModel:{isOverlay:!1,
animateWidth:!W}}))}))};
aQY=function(F){var W=F.layout===1,E,h=((E=F.data)==null?void 0:E.style)==="FLEXIBLE_ACTIONS_STYLE_SCROLLING";E={};h=(E["yt-flexible-actions-view-model-wiz"]=!0,E["yt-flexible-actions-view-model-wiz--inline"]=!W,E["yt-flexible-actions-view-model-wiz--scrollable"]=h,E);var d,V;return _.z("yt-flexible-actions-view-model",{class:_.gY(F.className,h)},(d=F.data)==null?void 0:(V=d.actionsRows)==null?void 0:V.map(function(R){if(W){var M;return _.z("div",{class:"yt-flexible-actions-view-model-wiz__action-row"},
Jpk(R,W,!((M=F.data)==null||!M.respectActionIntrinsicWidth)))}return Jpk(R,W,!1)}))};
fQe=function(F){return!(F==null||!F.iconName||(F==null?0:F.title))};
OZo=function(F){var W=_.D(F.data.toggleButtonViewModel,_.O8),E,h=(E=F.data.dislikeEntityKey)!=null?E:"",d=cS(a3,h);W=Object.assign({},W,{isToggled:d?d.likeStatus==="DISLIKE":W.isToggled});return _.z("dislike-button-view-model",{class:"ytDislikeButtonViewModelHost"},_.z(_.bJ,{data:W,buttonShapeOverrides:F.buttonShapeOverrideables,onToggle:function(V){d&&V!==(d.likeStatus==="DISLIKE")&&d.key&&_.rQ(_.lJ("likeStatusEntity",d.key,{likeStatus:V?"DISLIKE":"INDIFFERENT",hadUserInteraction:V}))}}))};
lQe=function(F){var W=_.c("web_supports_animations_api"),E=_.D(F.data.toggleButtonViewModel,_.O8),h,d,V,R,M=_.U(BS({numberText:(R=(h=F.likeCountEntity)==null?void 0:(d=h.likeCountIfIndifferent)==null?void 0:d.content)!=null?R:"",numberValue:Number((V=F.likeCountEntity)==null?void 0:V.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!1})),g=M.next().value,t=M.next().value,C,B,I,x;h=_.U(BS({numberText:(x=(C=F.likeCountEntity)==null?void 0:(B=C.likeCountIfLiked)==null?void 0:B.content)!=null?
x:"",numberValue:Number((I=F.likeCountEntity)==null?void 0:I.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!1}));C=h.next().value;var A=h.next().value;B=_.U(BS());var X=B.next().value,P=B.next().value,b;B=(b=F.data.likeStatusEntityKey)!=null?b:"";var l,w;b=(w=(l=F.likeCountEntity)==null?void 0:l.key)!=null?w:"";var G=cS(a3,B),hr=cS(e$o,b);l=HQ(function(){return(G==null?void 0:G.likeStatus)==="LIKE"},[G]);
Z4(function(){var p,UY=hr&&((p=hr.likeCountIfIndifferent)==null?void 0:p.content)!==g.numberText;if(!X&&UY){var xW,qw;t({numberText:(qw=hr==null?void 0:(xW=hr.likeCountIfIndifferent)==null?void 0:xW.content)!=null?qw:"",numberValue:Number(hr==null?void 0:hr.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!0});var Lb,jk;A({numberText:(jk=hr==null?void 0:(Lb=hr.likeCountIfLiked)==null?void 0:Lb.content)!=null?jk:"",numberValue:Number(hr==null?void 0:hr.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!0})}},
[hr]);
E=Object.assign({},E,{isToggled:l});W=W&&F.likeCountEntity;return _.z("like-button-view-model",{class:"ytLikeButtonViewModelHost"},_.z(_.bJ,{data:E,buttonShapeOverrides:F.buttonShapeOverrideables,animatedTextPropsDefault:W?g:void 0,animatedTextPropsToggled:W?C:void 0,onToggle:function(p){bZY(p,G,X,P)},
style:function(){return F.disableIconAnimation?void 0:{animateIcon:"true"}}}))};
bZY=function(F,W,E,h){E&&_.P0.cancelJob(E);E=_.P0.addLowPriorityJob(function(){h(void 0)},5E3);
h(E);W&&F!==(W.likeStatus==="LIKE")&&W.key&&_.rQ(_.AG("likeStatusEntity",W.key,{key:W.key,likeStatus:F?"LIKE":"INDIFFERENT",hadUserInteraction:F}))};
nXn=function(F,W,E,h){E&&_.P0.cancelJob(E);E=_.P0.addLowPriorityJob(function(){h(void 0)},5E3);
h(E);W&&F!==(W.likeStatus==="LIKE")&&W.key&&_.rQ(_.AG("likeStatusEntity",W.key,{key:W.key,likeStatus:F?"LIKE":"INDIFFERENT",hadUserInteraction:F}))};
rpb=function(F){var W,E=_.D((W=F.data)==null?void 0:W.likeButtonViewModel,nx),h;W=_.D((h=F.data)==null?void 0:h.dislikeButtonViewModel,ya);var d,V=(d=cS(a3,(E==null?void 0:E.likeStatusEntityKey)||""))!=null?d:E==null?void 0:E.likeStatusEntity;h=HQ(function(){var R=F.data,M;R=(R==null?void 0:(M=R.timedAnimationData)==null?void 0:M.animationTiming)||[];return{uniqueId:"like-dislike",timings:R,enabled:(V==null?void 0:V.likeStatus)==="INDIFFERENT"&&R.length>0,experimentEnabled:R.length>0}},[F.data,
V]);return _.z("segmented-like-dislike-button-view-model",{class:_.gY(F.className,"ytSegmentedLikeDislikeButtonViewModelHost"),"button-renderer":!0},_.z(ypR,{settings:h},_.z("div",{class:"ytSegmentedLikeDislikeButtonViewModelSegmentedButtonsWrapper"},E?_.z(jDW,{data:E,likeCountEntity:F.data.likeCountEntity,buttonShapeOverrideables:{segmentedPosition:"start"}}):null,W?_.z(iZo,{data:W,buttonShapeOverrideables:{iconPosition:"icon-only",segmentedPosition:"end"}}):null)))};
TJR=function(F,W){var E=us(F)||{layerNode:W};E.layerNode=W;aok(F,E);F.getScreenLayer=function(){return jb(E.layerNode)}};
oXe=function(F){var W;F=F.parentNode;for(var E;F&&((W=us(F))==null||!W.isRenderer)&&!((E=F.polymerController)!=null?E:F).isRenderer_;)F=F.parentNode||F.host;if(W=F)return us(W)};
GIn=function(F){if(F){wW.delete(F);var W=_.WZ().resolve(Ws);jJG(F,W)}};
w7I=function(F,W,E){if(E===void 0?0:E){if(E=F.getAttribute("client-ve-type"),W.data&&!W.disableReactiveLogging||E)_.HX(function(){YEo(F,_.XO(W.data))}),_.$p(function(){return void GIn(F)})}else typeof W.data!=="function"&&YEo(F,W.data)};
YEo=function(F,W){uSb++;SEY(F,W)&&_.P0.addJob(function(){_.JG(_.P0,function(){if(SEY(F,W)&&F.ownerDocument.documentElement===document.documentElement&&F){var E;if(F.getAttribute("layer")){var h=E=Number(F.getAttribute("layer")),d=us(F);d?d.layerNode.layer=h:TJR(F,new p7W(h));(h=oXe(F))&&(d=us(F))!=null&&(d.layerNode.parent=h.layerNode)}else if(E=us(F))E=jb(E.layerNode);else{E=jb;h=new p7W;if(d=oXe(F))h.parent=d.layerNode;TJR(F,h);E=E(h)}E!=null||(E=0);h=F.getAttribute("client-ve-type");d=Number(h);
var V=!1;h=!1;var R=us(F),M;if((M=R)&&!(M=R[iJ]!==W)&&(M=d)){var g;M=((g=wW.get(F))==null?void 0:g.clientVeType)===void 0}M&&(R[iJ]=W,V=h=R.isRenderer=!0);wW.has(F)&&(wW.get(F).clientVeType=d);F.visualElement&&(h=!0);(g=W==null?void 0:W.loggingDirectives)&&g.clientVeSpec&&(R=m9o(_.gh(),F),g=_.Kkr(_.z4(),g,R||void 0,E))&&(F.visualElement=g);!F.visualElement&&d&&V&&(F.veType=d,g=void 0,_.c("wiz_next_client_ve_parent_fix")&&(g=m9o(_.gh(),F)),g=_.Qd(_.z4(),F,g,E),F.visualElement=g);h&&(g=_.WZ().resolve(Ws),
o8o(F,{data:W,observer:g,layer:E,showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}))}},0)},8)};
SEY=function(F,W){return(W==null?0:W.trackingParams)||(W==null?0:W.loggingDirectives)||_.D(W==null?void 0:W.rendererContext,_.GWR)||F.getAttribute("client-ve-type")?!0:!1};
WSn=function(F){return _.c("cow_logging_in_component_wrapper")?function(W){w7I(W,F,!0)}:FSW};
FSW=function(){};
_.E$r=function(F,W){return _.Mn(F.entities,"accountLinkStatusEntity",W)};
h8r=function(F,W){return _.Mn(F.entities,"hatsSurveyEntity",W)};
dZS=function(F,W){return _.Mn(F.entities,"hatsSurveyStateEntity",W)};
N0Y=function(F,W){return _.Mn(F.entities,"quantityIncrementerEntity",W)};
MvY=function(F){var W=F.data;var E=F.className===void 0?"":F.className;var h=F.setMinWidth;F=F.forceIconOnly;var d=_.uf(WSn({data:W}));h=h?"ytwAccountLinkButtonViewModelHostMinWidth":"";var V=_.D1(_.E$r,function(){var B;return(B=_.XO(W).accountLinkStatusEntityKey)!=null?B:""}),R=_.D1(_.E$r,function(){var B;
return(B=_.XO(W).accountLinkStatusSecondaryEntityKey)!=null?B:""}),M=function(){if(!_.c("web_account_link_secondary_killswitch")){var B,I;
return((B=V())==null?void 0:B.linked)||((I=R())==null?void 0:I.linked)}var x;return(x=V())==null?void 0:x.linked};
_.q6(function(){var B=V();if(B){var I=Vvb(new UZn,R8n(new e8Y,!!B.linked));_.gk().then(function(x){x&&(x.setAccountLinkState(_.FG(I.JSC$9977_serializeBinary(),4)),x.updateAccountLinkingConfig(!!B.linked))})}});
var g=function(){return _.D(_.XO(W).toggleButtonViewModel,_.O8)};
_.w3("yt-signal-action-show-account-link-dialog",function(){if(g()){var B=M()?g().toggledButtonViewModel:g().defaultButtonViewModel;B=_.D(B,_.fx);var I;if((I=V())==null?0:I.isWarning){I=_.D(_.XO(W).warningButtonViewModel,_.fx);if(!I){_.i0(Error("zh"));return}B=I}var x;(I=_.He((x=B)==null?void 0:x.onTap))&&_.gW([I],d.value)}else _.i0(Error("Ah"))});
var t=function(){var B=g();return Object.assign({},B,{isToggled:M()})},C=F?{iconPosition:"icon-only"}:{};
return _.z("account-link-button-view-model",{class:_.ec("ytwAccountLinkButtonViewModelHost",function(){return _.XO(E)},h),
el:d,"button-renderer":!0},_.z("div",null,_.z(_.v,{cond:function(){var B;if((B=V())==null?0:B.isWarning)return(B=_.D(_.XO(W).warningButtonViewModel,_.fx))||_.i0(Error("zh")),B},
then:function(B){return _.z(_.rk,{data:B,buttonOverrides:C})},
else:function(){return _.z(_.bJ,{data:t,buttonShapeOverrides:C})}})))};
g$Y=function(F){switch(F){case "BADGE_STYLE_TYPE_MEMBERS_ONLY":return 8;case "BADGE_STYLE_TYPE_PREMIUM":return 5;case "BADGE_STYLE_TYPE_SIMPLE":return 0;case "BADGE_STYLE_TYPE_AD":return 2;default:return 0}};
QMk=function(F){switch(F){case "BADGE_STYLE_TYPE_YPC_GREEN":return 3;case "BADGE_STYLE_TYPE_BR_RATING_SMALL_GREEN_SQUARE":return 3;case "BADGE_STYLE_TYPE_BR_RATING_SMALL_BLUE_SQUARE":return 4;case "BADGE_STYLE_TYPE_BR_RATING_SMALL_YELLOW_SQUARE":return 6;case "BADGE_STYLE_TYPE_BR_RATING_SMALL_ORANGE_SQUARE":return 8;case "BADGE_STYLE_TYPE_BR_RATING_SMALL_RED_SQUARE":return 10;case "BADGE_STYLE_TYPE_BR_RATING_SMALL_BLACK_SQUARE":return 12;case "BADGE_STYLE_TYPE_BR_RATING_LARGE_RED_SQUARE":return 11;
case "BADGE_STYLE_TYPE_BR_RATING_LARGE_BLUE_SQUARE":return 5;case "BADGE_STYLE_TYPE_BR_RATING_LARGE_YELLOW_SQUARE":return 7;case "BADGE_STYLE_TYPE_BR_RATING_LARGE_ORANGE_SQUARE":return 9;case "BADGE_STYLE_TYPE_BR_RATING_LARGE_BLACK_SQUARE":return 13}};
z8W=function(F){switch(F){case 2:return"badge-shape-wiz--ad";case 1:return"badge-shape-wiz--media";case 3:return"badge-shape-wiz--promoted";case 4:return"badge-shape-wiz--timely";case 5:return"badge-shape-wiz--premium";case 6:return"badge-shape-wiz--sale";case 7:return"badge-shape-wiz--membership";case 8:return"badge-shape-wiz--commerce";case 10:return"badge-shape-wiz--live";case 11:return"badge-shape-wiz--status-new";case 12:return"badge-shape-wiz--status-complete";case 13:return"badge-shape-wiz--status-warning";
case 14:return"badge-shape-wiz--status-error";case 15:return"badge-shape-wiz--status-default";case 16:return"badge-shape-wiz--thumbnail-default";case 17:return"badge-shape-wiz--thumbnail-live";case 18:return"badge-shape-wiz--thumbnail-special";default:return"badge-shape-wiz--default"}};
_.Cce=function(F){var W=_.dV("web_generic_client_event_wait_period ",0);W||(W=3E5);var E=tvr.get(F);!_.c("enable_web_client_experiment_event_timeout_killswitch")&&E&&(0,_.KU)()-E<W||(tvr.set(F,(0,_.KU)()),_.Pc("genericClientExperimentEvent",{eventType:F}))};
Ifk=function(F){var W=F.data;var E=F.children;var h=B0o(W),d=(W==null?0:W.thumbnailSize)?W.thumbnailSize:"medium";F=!(W==null||!W.doubleStack);var V=!(W==null||!W.experimentEnabled),R={},M=(R["collections-stack-wiz__collection-stack1"]=!0,R[v$e(d)]=!0,R);if(W==null?0:W.customClassName1stStack)M[W.customClassName1stStack]=!0;d={};var g=(d["collections-stack-wiz__collection-stack2"]=F,d["collections-stack-wiz__collection-stack2--responsive-mode"]=W==null?void 0:W.enableResponsiveMode,d);if(W==null?
0:W.customClassName2ndStack)g[W.customClassName2ndStack]=!0;return _.z("yt-collections-stack",{class:"collections-stack-wiz",hidden:!V},wl(W,function(){return _.z("div",null,wl(W.doubleStack,function(){return _.z("div",{class:_.gY(g),style:"background-color:"+h})}),_.z("div",{class:_.gY(M),
style:"background-color:"+h}),E)}))};
v$e=function(F){switch(F){case "small":return"collections-stack-wiz__collection-stack1--small";case "medium":return"collections-stack-wiz__collection-stack1--medium";case "large":return"collections-stack-wiz__collection-stack1--large";default:return""}};
B0o=function(F){if(!F)return"";var W,E=(W=_.WZ().resolve(_.Fd(_.nK)))==null?void 0:W(),h;if(!E&&((h=F.vibrantColorPalette)==null?0:h.iconInactiveColor))return HB(F.vibrantColorPalette.iconInactiveColor,"1");var d;return E&&((d=F.darkColorPalette)==null?0:d.iconInactiveColor)?HB(F.darkColorPalette.iconInactiveColor,"1"):F.color?HB(F.color,"1"):F.sampledThumbnailColor?(F=F.sampledThumbnailColor,"rgba("+F.red+","+F.green+","+F.blue+");"):""};
_.Tt=function(F,W){if(!F.includes("DATE_PLACEHOLDER"))return F;var E=new Date(0);E.setUTCSeconds(W);return F.replace("DATE_PLACEHOLDER",cuo(E))};
_.o6=function(F){F=_.DZn(F);return _.c("web_watch_enable_single_column_grid_view")?F:!1};
_.DZn=function(F){return F.watch.isWatchNarrowWidth};
xZo=function(F,W,E){return function(h){var d=F.command;d&&(sd(d,{form:{element:E}}),W([d],h))}};
AuY=function(F,W,E,h,d){return function(V){var R=kPI(F,E);R&&sd(R,{form:{element:h},commandController:d});W&&W.stopPropagation&&V.stopPropagation()}};
kPI=function(F,W){if(F.signInEndpoint&&!_.c("web_subscribe_sign_in_endpoint_killswitch"))return F.signInEndpoint;if(W){if(F.serviceEndpoints)return F.serviceEndpoints[1];if(F.onUnsubscribeEndpoints)return F.onUnsubscribeEndpoints[0]}else{if(F.serviceEndpoints)return F.serviceEndpoints[0];if(F.onSubscribeEndpoints)return F.onSubscribeEndpoints[0]}};
sMW=function(F,W){var E,h,d,V;W=W&&((E=F.unsubscribeAccessibility)==null?void 0:(h=E.accessibilityData)==null?void 0:h.label)||((d=F.subscribeAccessibility)==null?void 0:(V=d.accessibilityData)==null?void 0:V.label);return F.longSubscriberCountText?[W,_.Yr(F.longSubscriberCountText)].filter(function(R){return R}).join(" "):W};
Gt=function(F,W){return W||(F==null?0:F.isChannelDelegate)?"disabled":"active"};
LSS=function(F,W){var E;switch((E=F.style)==null?void 0:E.styleType){case "COMPACT_GRAY":return{style:"mono",type:"tonal",state:Gt(F)};case "MEDIUM_GRAY":return{style:"mono",type:"tonal",state:Gt(F)};case "VISIBLY_DISABLED":return{style:"mono",type:"text",state:Gt(F,!0)};case "OVERLAY":return W?{style:"overlay",type:"tonal",state:Gt(F)}:{style:"overlay",type:"filled",state:Gt(F)};default:return W?{style:"mono",type:"tonal",state:Gt(F)}:{style:"mono",type:"filled",state:Gt(F)}}};
qSY=function(F,W){var E=F.map(function(h){return h.toString()});
return _.tb(function(h){if(E.includes(h.key)){W&&h.preventDefault();var d;(d=h.currentTarget)==null||d.click()}})};
_.$Zr=function(){return qSY(["Enter"])};
_.ZAe=function(){return qSY(["Enter"," "],!0)};
_.YV=function(F){if(F.composedPath)return F.composedPath();if(!F.__composedPath){for(var W=[],E=F.target;E;)W.push(E),E=E.parentNode;W.push(window);F.__composedPath=W}return F.__composedPath};
_.XAr=function(F,W,E){F=_.U(F);for(var h=F.next();!h.done;h=F.next()){h=h.value;if(h===W)break;for(var d=_.U(E),V=d.next();!V.done;V=d.next())if(V=V.value,h.tagName===V||h.role==="button"&&V==="BUTTON")return!0}return!1};
PcI=function(F,W){var E,h=(E=W.observer)!=null?E:_.WZ().resolve(Ws);if(F){E=HAb(F);var d=[];W.showOption&&d.push(h.observe(F,function(){W.visibilityCallback(!0)},W.showOption));
W.hideOption&&d.push(h.observe(F,function(){W.visibilityCallback(!1)},W.hideOption));
W.prescanOption&&W.prescanCallback&&d.push(h.observe(F,function(){W.prescanCallback()},W.prescanOption));
var V;E.visibilityMonitorKeys=((V=E.visibilityMonitorKeys)!=null?V:[]).concat(d)}};
HAb=function(F){var W;return(W=F.polymerController)!=null?W:F};
_.uJ=function(F){return!!_.wk(F)};
_.ffk=function(F,W){var E=ZaI();Z4(function(){var h=F.value;if(h)return Juo(h,W),afb(h,W,void 0,void 0,void 0,E)},[W])};
_.Sb=function(F,W,E,h,d,V){var R=ZaI();_.q6(function(){var M=F.value;M&&(Juo(M,W(),V),M=afb(M,W(),E,h,d,R),_.$p(M))})};
Juo=function(F,W,E){var h=OAo(W),d=bAn(W);W=h&&lfW;var V=d&&n$r;(h||d)&&PcI(F,{visibilityCallback:function(R){var M=_.WZ().resolve(_.EJ);R&&h?M.resolveCommand(h,{form:{element:E?F:void 0},disableClickTracking:!0}):!R&&d&&M.resolveCommand(d,{form:{element:E?F:void 0},disableClickTracking:!0})},
showOption:W,hideOption:V})};
afb=function(F,W,E,h,d,V){var R=new Map;if(W=_.wk(W)){var M;F=(h==null?void 0:(M=h.onTap)==null?void 0:M.value)||F;E=yur(W,F,E==null?void 0:E.onTap,d,V);F.addEventListener("click",E);R.set("click",E)}return function(){for(var g=_.U(R),t=g.next();!t.done;t=g.next()){var C=_.U(t.value);t=C.next().value;C=C.next().value;F.removeEventListener(t,C)}}};
_.wk=function(F){var W;return(F=(W=_.D(F,px))==null?void 0:W.onTap)&&_.He(F)};
OAo=function(F){var W;return(F=(W=_.D(F,px))==null?void 0:W.onVisible)&&_.He(F)};
bAn=function(F){var W;return(F=(W=_.D(F,px))==null?void 0:W.onHidden)&&_.He(F)};
yur=function(F,W,E,h,d){var V=function(M){_.WZ().resolve(_.EJ).resolveCommand(F,M)},R=function(M){h&&_.XAr(_.YV(M),W,h)||V(M.target?{form:{element:M.target,
sourceData:F,mutationContext:d}}:void 0)};
E&&(R=function(M){E(M,V)});
return R};
jMe=function(F){var W=F.data;var E=F.className;F=F.alwaysShow;var h=_.uf();_.ffk(h,W.rendererContext);a:switch(W.style){case "THUMBNAIL_HOVER_OVERLAY_STYLE_BUTTON":var d="ytThumbnailHoverOverlayViewModelStyleButton";break a;default:d="ytThumbnailHoverOverlayViewModelStyleCover"}d=_.gY("ytThumbnailHoverOverlayViewModelScrim",d);var V,R=(V=_.D(W==null?void 0:W.rendererContext,_.m9))==null?void 0:V.label,M=_.wk(W.rendererContext)!==void 0;V=M?"button":void 0;M=M?0:void 0;var g=_.ZAe(),t={};return _.z("thumbnail-hover-overlay-view-model",
{el:h,class:_.gY("ytThumbnailHoverOverlayViewModelHost",E,(t.ytThumbnailHoverOverlayViewModelHostForceHover=F,t)),"aria-label":R,role:V,tabindex:M,"on:keypress":g},_.z("div",{class:d},W.icon?_.z(_.T4,{data:W.icon,alt:"",className:"ytThumbnailHoverOverlayViewModelIcon"}):null,W.text?_.z(_.Ab,{text:W.text,className:"ytThumbnailHoverOverlayViewModelText"}):null))};
iAY=function(F){switch(F){case "tiny":return 16;case "extra-small":return 24;case "small":return 32;case "medium":return 36;case "48":return 48;case "large":return 56;case "extra-large":return 72;case "extra-extra-large":return 72;case "giant":return 72;default:return 0}};
ruw=function(F){var W=F.numAvatarsInCluster;switch(F.clusterSize){case "small":return W===2?22:18;case "40":return W===2?24:22;default:return W===2?24:20}};
T0k=function(F,W){return function(E){var h=Object.keys(W);_.q6(function(){if(F()){for(var d=_.U(h),V=d.next();!V.done;V=d.next())V=V.value,E.addEventListener(V,W[V]);_.$p(function(){for(var R=_.U(h),M=R.next();!M.done;M=R.next())M=M.value,E.removeEventListener(M,W[M])})}})}};
o$k=function(F){switch(ruw(F)){case 18:return"yt-spec-avatar-shape--avatar-in-cluster-size-18";case 20:return"yt-spec-avatar-shape--avatar-in-cluster-size-20";case 22:return"yt-spec-avatar-shape--avatar-in-cluster-size-22";case 24:return"yt-spec-avatar-shape--avatar-in-cluster-size-24";default:return""}};
GPr=function(F){switch(F){case "tiny":return"yt-spec-avatar-shape--avatar-size-tiny";case "extra-small":return"yt-spec-avatar-shape--avatar-size-extra-small";case "small":return"yt-spec-avatar-shape--avatar-size-small";case "medium":return"yt-spec-avatar-shape--avatar-size-medium";case "48":return"yt-spec-avatar-shape--avatar-size-48";case "large":return"yt-spec-avatar-shape--avatar-size-large";case "extra-large":return"yt-spec-avatar-shape--avatar-size-extra-large";case "extra-extra-large":return"yt-spec-avatar-shape--avatar-size-extra-extra-large";
case "giant":return"yt-spec-avatar-shape--avatar-size-giant";case "responsive":return"yt-spec-avatar-shape--avatar-size-responsive";default:return""}};
YSR=function(F){switch(ruw(F)){case 18:return"yt-spec-avatar-shape__button--button-in-cluster-size-18";case 20:return"yt-spec-avatar-shape__button--button-in-cluster-size-20";case 22:return"yt-spec-avatar-shape__button--button-in-cluster-size-22";case 24:return"yt-spec-avatar-shape__button--button-in-cluster-size-24";default:return""}};
wAw=function(F){switch(F){case "tiny":return"yt-spec-avatar-shape__button--button-tiny";case "extra-small":return"yt-spec-avatar-shape__button--button-extra-small";case "small":return"yt-spec-avatar-shape__button--button-small";case "medium":return"yt-spec-avatar-shape__button--button-medium";case "48":return"yt-spec-avatar-shape__button--button-48";case "large":return"yt-spec-avatar-shape__button--button-large";case "extra-large":return"yt-spec-avatar-shape__button--button-extra-large";case "extra-extra-large":return"yt-spec-avatar-shape__button--button-extra-extra-large";
case "giant":return"yt-spec-avatar-shape__button--button-giant";case "responsive":return"yt-spec-avatar-shape__button--button-responsive";default:return""}};
uZR=function(F){switch(F){case "tiny":return 16;case "extra-small":return 24;case "small":return 32;case "medium":return 36;case "48":return 48;case "large":return 56;case "extra-large":return 72;case "extra-extra-large":return 120;case "giant":return 160;default:return 0}};
SSe=function(F){return F==="medium"||F==="48"||F==="large"||F==="extra-large"||F==="extra-extra-large"||F==="giant"};
pAb=function(F){return!!((F==null?0:F.includes(3))||(F==null?0:F.includes(5)))};
KSS=function(F){return{size:mZR(F.data.avatarImageSize),onTap:F.onTap,decorations:F.decorations||[],badgeText:F.badgeText,accessibilityText:F.accessibilityText,avatarButtonCustomClassName:F.avatarButtonCustomClassName,clusterLayoutConfig:F.clusterLayoutConfig}};
mZR=function(F){switch(F){case "AVATAR_SIZE_XXS":return"tiny";case "AVATAR_SIZE_XS":return"extra-small";case "AVATAR_SIZE_S":return"small";case "AVATAR_SIZE_M":return"medium";case "AVATAR_SIZE_L":return"large";case "AVATAR_SIZE_XL":return"extra-large";case "AVATAR_SIZE_XXL":return"extra-extra-large";case "AVATAR_SIZE_XXXL":return"giant";case "AVATAR_SIZE_RESPONSIVE":return"responsive";case "AVATAR_SIZE_40":return"40";case "AVATAR_SIZE_48":return"48";default:return"medium"}};
FdG=function(F){switch(F){case "AVATAR_SIZE_XXS":return 16;case "AVATAR_SIZE_XS":return 24;case "AVATAR_SIZE_S":return 32;case "AVATAR_SIZE_M":return 36;case "AVATAR_SIZE_40":return 40;case "AVATAR_SIZE_48":return 48;case "AVATAR_SIZE_L":return 56;case "AVATAR_SIZE_XL":return 72;case "AVATAR_SIZE_XXL":return 120;case "AVATAR_SIZE_XXXL":return 160;default:return 0}};
Wdr=function(F){switch(F){case "AVATAR_SIZE_XS":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-extra-small";case "AVATAR_SIZE_S":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-small";case "AVATAR_SIZE_M":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-medium";case "AVATAR_SIZE_48":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-48";case "AVATAR_SIZE_L":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-large";case "AVATAR_SIZE_XL":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-extra-large";
case "AVATAR_SIZE_XXL":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-extra-extra-large";case "AVATAR_SIZE_XXXL":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-giant";default:return""}};
Emo=function(F){var W=F.layoutType==="AVATAR_STACK_LAYOUT_CLUSTER",E,h=F.avatars&&F.avatars.length>0?(E=_.D(F.avatars[0],_.Kx))==null?void 0:E.avatarImageSize:"AVATAR_SIZE_UNKNOWN";E=FdG(h)||0;if(W){var d,V=(d=F.avatarClusterSize)!=null?d:"AVATAR_SIZE_M";W=FdG(V);var R,M,g=Math.min((M=(R=F.avatars)==null?void 0:R.length)!=null?M:0,4),t;return{avatars:((t=F.avatars)==null?void 0:t.slice(0,4))||[],avatarSizeInPx:E,avatarStackStyle:{width:W+"px",height:W+"px",position:"relative"},avatarStyle:function(B){var I=
ruw({clusterSize:mZR(V),numAvatarsInCluster:g,avatarIndex:B});var x=FdG(V);g===3&&B===2?(x=(x-I)/2,x=(_.b0("HTML_DIR")==="rtl"||document.body.getAttribute("dir")==="rtl"?-1:1)*x):x=void 0;return{position:"absolute",top:g===2&&B===1||g===3&&B===2||g===4&&B>=2?"0":void 0,bottom:g===2&&B===0||g>2&&B<2?"0":void 0,left:g===2&&B===1||g>2&&(B===1||B===3)?"0":void 0,right:g<=3&&B===0||g===4&&(B===0||B===2)?"0":void 0,transform:x?"translateX("+x+"px)":void 0,width:I+"px",height:I+"px"}},
avatarStackClass:void 0,avatarClass:void 0,clusterLayoutConfig:function(B){return{clusterSize:mZR(F.avatarClusterSize),numAvatarsInCluster:g,avatarIndex:B}},
avatarButtonCustomClassName:void 0}}var C;return{avatars:((C=F.avatars)==null?void 0:C.slice())||[],avatarSizeInPx:E,avatarStackClass:"yt-avatar-stack-view-model-wiz__avatars",avatarClass:Wdr(h),avatarStyle:function(){return{}},
avatarStackStyle:{},clusterLayoutConfig:void 0,avatarButtonCustomClassName:"yt-avatar-stack-view-model-wiz__avatar-button"}};
h1o=function(F,W,E){return function(){sd(F,{form:{element:W},commandController:E})}};
dEW=function(F){switch(F){case "small":return"ytThumbnailOverlayAvatarStackViewModelavatarStackSmall";case "medium":return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium";case "large":return"ytThumbnailOverlayAvatarStackViewModelavatarStackLarge";default:return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium"}};
NFk=function(F){var W=F.data;return _.z("yt-thumbnail-overlay-title-view-model",{class:"yt-thumbnail-overlay-title-view-model",hidden:F.hidden===void 0?!1:F.hidden},_.z(_.Ab,{text:W.title,className:"yt-thumbnail-overlay-title-view-model__title"}),W.subtitle?_.z(_.Ab,{text:W.subtitle,className:"yt-thumbnail-overlay-title-view-model__subtitle"}):null)};
VxR=function(F){switch(F){case "small":return"yt-thumbnail-overlay-badge-view-model-wiz--small";case "medium":return"yt-thumbnail-overlay-badge-view-model-wiz--medium";case "large":return"yt-thumbnail-overlay-badge-view-model-wiz--large";default:return"yt-thumbnail-overlay-badge-view-model-wiz--medium"}};
UEY=function(F){var W=F.data;F=F.hidden===void 0?!1:F.hidden;var E={};F={class:_.gY("yt-page-indicator-view-model",(E["yt-page-indicator-view-model__indicator--hidden"]=!W.indicatorCount,E)),hidden:F};if(W.indicatorCount){E=[];for(var h=0;h<W.indicatorCount;h++){var d={};d=_.gY("yt-page-indicator-view-model__indicator",(d["yt-page-indicator-view-model__indicator--selected"]=W.selectedIndex===h,d));E.push(_.z("div",{class:d}))}W=_.z(_.EG,null,E)}else W=_.z(_.EG,null);return _.z("yt-page-indicator-view-model",
F,W)};
e1n=function(F){F&&(R1G(F)?delete F.inlinePlayerData:"inlinePlaybackEndpoint"in F&&delete F.inlinePlaybackEndpoint)};
MxY=function(F){if("accessibilityText"in F)return F.accessibilityText||"";if("title"in F){var W,E,h;return((W=F.title)==null?void 0:(E=W.accessibility)==null?void 0:(h=E.accessibilityData)==null?void 0:h.label)||""}if("accessibility"in F){var d,V;return((d=F.accessibility)==null?void 0:(V=d.accessibilityData)==null?void 0:V.label)||""}return""};
R1G=function(F){return"inlinePlayerData"in F};
FY=function(F){return new gmW(F)};
_.QUG=function(F,W,E,h,d,V){var R=function(t){t.preventDefault()},M=function(){var t=F.value;
if(t)return(t._data=W)?(t.addEventListener("touchstart",Osr,{passive:!0}),t.addEventListener("click",lOr),W.clickTrackingParams&&(t.params={itct:W.clickTrackingParams}),nSI(t,W),Lu(t,yII(W)||"")):t.addEventListener("click",R),function(){W?(t.removeEventListener("touchstart",Osr,{passive:!0}),t.removeEventListener("click",lOr)):t.removeEventListener("click",R)}},g=function(){var t=F.value;
if(t){var C=_.Jm({innertubeCommand:W,elementsCommand:E,forceNewState:h,stopPropagation:V});if(C)return t._data=C._data,C["aria-haspopup$"]&&t.setAttribute("aria-haspopup",C["aria-haspopup$"].toString()),C["force-new-state$"]&&t.setAttribute("force-new-state",C["force-new-state$"].toString()),C.href$&&Lu(t,C.href$),C.rel$&&(t.rel=C.rel$),C.role$&&t.setAttribute("role",C.role$),C.target$&&(t.target=C.target$),t.params=C.params,C.onclick&&t.addEventListener("click",C.onclick),C.onpointerdown&&t.addEventListener("onpointerdown",
C.onpointerdown),function(){C.onclick&&t.removeEventListener("click",C.onclick);C.onpointerdown&&t.removeEventListener("onpointerdown",C.onpointerdown)}}};
Z4(d?g:M,[W,E])};
z1b=function(F){var W=F.children;var E=F.className;var h=F.dir;var d=F.style;var V=F.role;var R=F.ariaSelected;var M=F.ariaLabel;var g=F.ariaHidden;var t=F.ariaLabelledby;var C=F.ariaDescribedby;var B=F.command;var I=F.elementsCommand;var x=F.forceNewState;var A=F.isPlaceholder;var X=F.tabIdentifier;var P=F.target;var b=F.tabIndex;var l=F.useATagConfig;var w=F.stopPropagation;F=_.uf();_.QUG(F,B,I,x,l,w);I=_.tb(function(){return w===!1});
return _.z("a",{el:F,"on:click":I,class:E,style:d,dir:h,role:V?V:B?void 0:"group","aria-hidden":g?!0:void 0,"aria-label":M,"aria-labelledby":t,"aria-describedby":C,"aria-selected":R,tabindex:b!==void 0?b:void 0,target:P,"tab-identifier":X,"force-new-state":x?!0:void 0,"is-placeholder":A?!0:void 0},W)};
Cwk=function(F){var W=F.data;F=_.tb(function(){var d=_.D(W.onTap,_.XP);d&&_.WZ().resolve(_.EJ).resolveCommand(d);return!1});
var E={sources:[{url:W.thumbnailUrl,width:120,height:90}]},h=W.rating&&W.ratingA11yLabel&&W.reviewsCount&&W.reviewsCountA11yLabel;return _.z("place-data-view-model",null,W.placeName&&W.placeCategory?_.z("div",{class:"yt-spec-place-data-view-model-shape","on:click":F},_.z(_.T4,{data:E,alt:"",targetWidth:120,targetHeight:90,className:"yt-spec-place-data-view-model-shape__thumbnail "+txo}),_.z(z1b,{className:"yt-spec-place-data-view-model-shape__place-link",command:_.D(W.onTap,_.XP),forceNewState:!0,
useATagConfig:!0},_.z("h3",{class:"yt-spec-place-data-view-model-shape__name",title:W.placeName},W.placeName)),_.z("div",{class:"yt-spec-place-data-view-model-shape__metadata"},h?_.z("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-ratings"},_.z("span",{class:"score",title:W.ratingA11yLabel},W.rating),_.z("span",{class:"yt-spec-place-data-view-model-shape__metadata-row-star-icon"},_.z(_.I3,{icon:"STAR",active:!0,style:"width: 14px; height: 14px; color: #fabb05"})),
_.z("span",{class:"yt-spec-place-data-view-model-shape__metadata-row-reviews",title:W.reviewsCountA11yLabel},W.reviewsCount)):_.z("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-ratings"}),_.z("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-categories"},_.z("span",{class:"category",title:W.placeCategory},W.placeCategory)))):null)};
BFb=function(F){return function(W){F&&(F.thumbnailElRef=W.thumbnailElRef,F.thumbnail=W.thumbnail,F.thumbnailOverlays=W.thumbnailOverlays,F.thumbnailSize=W.thumbnailSize)}};
vmr=function(F){var W;return(W=F.sharedUi)==null?void 0:W.animatedThumbnailEnabled};
I3I=function(F){var W;return(W=F.sharedUi)==null?void 0:W.inlinePreviewEnabled};
_.csI=function(F){var W;return(W=F.sharedUi)==null?void 0:W.currentPageSubType};
DEo=function(){return _.z("div",{class:"yt-pinking"},_.z("svg",{class:"yt-pinking__pinking-left"},_.z("defs",null,_.z("pattern",{id:"left-pattern",width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.z("polygon",{class:"yt-pinking__pinking",points:"0,0 4,4 0,8"}))),_.z("rect",{fill:"url(#left-pattern)",width:"4",height:"100%"})),_.z("svg",{class:"yt-pinking__pinking-right"},_.z("defs",null,_.z("pattern",{id:"right-pattern",width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.z("polygon",{class:"yt-pinking__pinking",
points:"4,0 0,4 4,8"}))),_.z("rect",{fill:"url(#right-pattern)",width:"4",height:"100%"})))};
xEY=function(F){switch(F){case 1:return"yt-thumbnail-view-model--aspect-ratio-2-by-3";case 4:return"yt-thumbnail-view-model--shorts-aspect-ratio-9-by-16";case 3:return"yt-thumbnail-view-model--aspect-ratio-1-by-1";default:return"yt-thumbnail-view-model--aspect-ratio-16-by-9"}};
$Eb=function(F){var W=[],E=F.data,h=mA(F.width,F.height),d=_.WZ().resolve(_.Fd(k6Y)),V=_.uf(function(){W.push("elRef.value set")});
_.Xk(function(){W.push("onInit");return function(){W.push("onCleanup")}});
_.Xk(function(){var P;(P=F.playbackRef)==null||P.call(F,{thumbnailElRef:V,thumbnail:E.image,thumbnailOverlays:E.overlays,thumbnailSize:h})});
var R=Bxk(vmr),M,g=(M=F.aspectRatio)!=null?M:0,t=(M=(E.image?_.x7b(E.image):g)<=1&&g===0)?"CONTENT_MODE_SCALE_ASPECT_FIT":"CONTENT_MODE_SCALE_ASPECT_FILL",C=function(){V.value||_.OB(new _.xC("Thumbnail elRef.value is null",W.join("\n")));d&&V.value&&d(V.value)},B={};
a:{if(!F.disableRounding&&!F.isClip)switch(h){case "large":var I="yt-thumbnail-view-model--large";break a;case "small":I="yt-thumbnail-view-model--small";break a;default:I="yt-thumbnail-view-model--medium";break a}I=void 0}g=_.gY("yt-thumbnail-view-model",F.className,xEY(g),I,(B["yt-thumbnail-view-model--cinematic"]=M,B));B=void 0;var x,A;(I=M?(x=F.data)==null?void 0:(A=x.backgroundColor)==null?void 0:A.lightTheme:void 0)&&(B="background-color:"+HB(I,"1")+";");var X;x=F.hovered&&h!=="large"&&((X=
E.overlays)==null?void 0:X.some(function(P){return _.D(P,Ask)}));
return _.z("yt-thumbnail-view-model",{class:g,style:B,el:V},wl(M,function(){return _.z("div",{class:"yt-thumbnail-view-model__blurred-image"},_.z(_.T4,{data:E.image,alt:"",contentMode:t,targetWidth:F.width,onload:C}))}),_.z("div",{class:"yt-thumbnail-view-model__image"},_.z(_.T4,{data:E.image,
alt:"",contentMode:t,targetWidth:F.width,onload:C}),null),wl(!x,function(){return sUY(E.overlays,{thumbnailOverlayBadgeViewModel:{thumbnailSize:h,isClip:F.isClip},thumbnailOverlayButtonViewModel:{lockupExperiments:F.lockupExperiments}})}),wl(F.hovered,function(){return Ldo(E.overlays,{thumbnailHoverOverlayViewModel:{alwaysShow:!0}})}),wl(F.hovered&&R,function(){return qoW(E.overlays)}),wl(F.isClip,function(){return DEo()}))};
ZeY=function(F){switch(F){case 1:return"yt-thumbnail-view-model--aspect-ratio-2-by-3";case 4:return"yt-thumbnail-view-model--shorts-aspect-ratio-9-by-16";case 3:return"yt-thumbnail-view-model--aspect-ratio-1-by-1";default:return"yt-thumbnail-view-model--aspect-ratio-16-by-9"}};
a3Y=function(F){var W=_.U(BS(-1)),E=W.next().value,h=W.next().value,d=PQ(function(){return new X4G(h)});
_.Xk(function(){Hek(d,F.data.thumbnails.length);return function(){Pwo(d)}});
var V;return _.z("yt-collection-thumbnail-slideshow",{class:"yt-collection-thumbnail-slideshow"},(V=F.data.thumbnails)==null?void 0:V.map(function(R,M){var g=["yt-collection-thumbnail-slideshow__slideshow-thumbnail"];!F.data.primaryThumbnail&&M===0&&g.push("yt-collection-thumbnail-slideshow--first-slide");M<=E&&g.push("yt-collection-thumbnail-slideshow--show-slide");M=g.join(" ");return _.z("div",{class:M},Jso(R,{thumbnailViewModel:{disableRounding:F.disableRounding}}))}))};
Oew=function(F){var W=_.U(BS(!1)),E=W.next().value,h=W.next().value;_.Xk(function(){if(F){var d=_.WZ().resolve(_.Fd(f3Y));if(d){var V={triggeringElement:F,onDwellTriggeredFn:function(){h(!0)},
onDwellEndFn:function(){h(!1)}};
d.registerElement(V);return function(){d.unregisterElement(V)}}}});
return E};
beI=function(F){var W=_.U(_.g$(!1,void 0,"RIOonf")),E=W.next().value,h=W.next().value;_.Xk(function(){var d=F==null?void 0:F();if(d){var V=_.WZ().resolve(_.Fd(f3Y));if(V){var R={triggeringElement:d,onDwellTriggeredFn:function(){h(!0)},
onDwellEndFn:function(){h(!1)}};
V.registerElement(R);_.$p(function(){V.unregisterElement(R)})}}});
return E};
yso=function(F){var W,E=(W=_.WZ().resolve(_.Fd(_.nK)))==null?void 0:W(),h=Oew(F.triggeringElement),d=!!F.data.primaryThumbnail,V=function(){var M;return _.z("div",null,l3W(F.data.primaryThumbnail,{thumbnailViewModel:{width:F.width,height:F.height,aspectRatio:F.aspectRatio,disableRounding:F.disableRounding,className:d?"yt-collection-thumbnail-view-model--has-stacks":void 0,hovered:F.hovered,playbackRef:F.playbackRef}}),wl(h&&((M=F.data.thumbnails)==null?void 0:M.length),function(){return _.z("div",
{class:"yt-collection-thumbnail-view-model__slideshow"},_.z(nme,{data:F.data,disableRounding:!d}))}))};
W=F.data.stackColor;var R={experimentEnabled:d,thumbnailSize:mA(F.width,F.height),doubleStack:F.doubleStack,color:E?W==null?void 0:W.darkTheme:W==null?void 0:W.lightTheme,enableResponsiveMode:!1};return _.z("yt-collection-thumbnail-view-model",{class:"yt-collection-thumbnail-view-model","aria-hidden":"true"},wl(d,function(){return _.z(Ifk,{data:R},V())}),wl(!d,V))};
jUk=function(F,W,E){E?E(W):_.fK(W,F.target?{form:{element:F.target}}:void 0)};
_.WH=function(F,W,E,h){_.q6(function(){var d=F.value;if(d){var V=new Map,R,M=(R=W())==null?void 0:R.onTap;M&&(R=function(g){a:{var t=g.composedPath();t=_.U(t);for(var C=t.next();!C.done;C=t.next()){C=C.value;if(C===d)break;if(C.className.indexOf("HostIsClickableAdComponent")>=0||C.tagName==="A".toString()||C.tagName==="BUTTON".toString()){t=!0;break a}}t=!1}t||(_.c("enable_square_image_components_ui_web_with_float_button")?_.hF(F.value,"yt-navigate",{endpoint:_.He(M)}):jUk(g,M,E))},(h==null?0:h())||
_.c("enable_web_home_top_landscape_image_layout_level_click")?(d.addEventListener("tap",R),V.set("tap",R)):(d.addEventListener("click",R),V.set("click",R)));
_.$p(function(){for(var g=_.U(V),t=g.next();!t.done;t=g.next()){var C=_.U(t.value);t=C.next().value;C=C.next().value;d.removeEventListener(t,C)}})}})};
iew=function(F,W){var E,h=(E=F.interaction)==null?void 0:E.onTap;if(F=_.Jm({elementsCommand:h,forceNewState:!0,skipOnClick:!0}))return F.onclick=function(d){PtY(d)&&(d.preventDefault(),h&&jUk(d,h,W))},au(F)?F:void 0};
rsY=function(F){switch(F){case "AD_BUTTON_SIZE_COMPACT":return"S";case "AD_BUTTON_SIZE_DEFAULT":return"M";case "AD_BUTTON_SIZE_LARGE":return"L";default:return"M"}};
TFI=function(F){switch(F){case "AD_BUTTON_STYLE_OVERLAY_TONAL":case "AD_BUTTON_STYLE_OVERLAY_TEXT":return"overlay";case "AD_BUTTON_STYLE_TRANSPARENT":case "AD_BUTTON_STYLE_MONO_FILLED":case "AD_BUTTON_STYLE_MONO_TONAL":case "AD_BUTTON_STYLE_MONO_OUTLINE":return"mono";case "AD_BUTTON_STYLE_OVERLAY_FILLED":return"call-to-action-overlay";default:return"call-to-action"}};
omr=function(F){switch(F){case "AD_BUTTON_STYLE_OUTLINE":case "AD_BUTTON_STYLE_MONO_OUTLINE":return"outline";case "AD_BUTTON_STYLE_TONAL":case "AD_BUTTON_STYLE_OVERLAY_TONAL":case "AD_BUTTON_STYLE_MONO_TONAL":return"tonal";case "AD_BUTTON_STYLE_OVERLAY_TEXT":case "AD_BUTTON_STYLE_TRANSPARENT":return"text";default:return"filled"}};
_.G6W=function(F){return _.c("rich_grid_enable_dynamic_offset")&&F?Math.max(Math.round((F-_.dV("rich_grid_dynamic_offset_anchor_width",1300))/100*_.dV("rich_grid_dynamic_offset_offset_per_100",10)),_.dV("rich_grid_dynamic_offset_lower_bound",-60)):0};
Yon=function(F,W){switch(W){case 4:return 16;case 1:return F<528?16:F<1024?32:48;case 2:return(F>=528?16:8)/2;case 3:return(F<528?16:F<1024?32:48)+(F>=528?16:8)/2;default:return 0}};
w4I=function(F){var W=F.originalContainerWidth;var E=F.sizing;var h=F.standardUnit;if(F.isCompactList&&W<528)return 1;switch(E){case "STANDARD":return h;case "COMPACT":return h+1;case "EXTRA_COMPACT":return _.c("web_responsive_extra_compact_2x")?h*2:_.c("web_responsive_current")?h===1?2:h%2===0?h/2*3:h+2:h<4?h*2:Math.ceil(h*3/2);case "MINI":return h>1?h*2:3;default:return h}};
SoY=function(F){var W=F.containerWidth;var E=F.peek;var h=F.gutter;var d=F.numItems;F=F.ignoreMaxWidthLimit;W=E?Math.max((W-E-h*d)/d,0):Math.max((W-h*(d-1))/d,0);return F?W:Math.min(W,uln)};
_.EQ=function(F){var W=F.containerWidth;var E=F.hasPeek;var h=F.sizing;var d=F.marginSettings;var V=F.isCompactList;var R=F.enableFullBleedForSingleCol;var M=F.standardUnitMinWidth;h=h||"STANDARD";E=!!E;F=W>=528?16:8;var g=E?W>=528?48:24:0;d=Yon(W,d);var t=Math.max(W-d*2,0);M=_.c("kevlar_disable_min_width_override")?void 0:M;M=Math.min(Math.max(Math.floor((t-g+F)/((M!=null?M:p4r)+_.G6W(W)+F)),1),6);var C=(R=!!R&&M===1)||M===1&&h!=="STANDARD";E=E||C?t:Math.min(t,(uln+F)*M-F);h=w4I({originalContainerWidth:W,
sizing:h,standardUnit:M,isCompactList:V});return{itemWidth:SoY({containerWidth:E,peek:g,gutter:F,numItems:h,ignoreMaxWidthLimit:C}),gutter:F,maxContainerWidth:E,numItems:h,margin:R?0:d,contentMargin:Yon(W,1),typographyBump:SoY({containerWidth:E,peek:g,gutter:F,numItems:M,ignoreMaxWidthLimit:C})>400&&!(V&&W<528),standardUnit:M}};
mEY=function(F){switch(F){case "RESPONSIVE_SIZE_COMPACT":return"COMPACT";case "RESPONSIVE_SIZE_EXTRA_COMPACT":return"EXTRA_COMPACT";case "RESPONSIVE_SIZE_TINY":return"MINI";default:return"STANDARD"}};
_.KdW=function(F){if(F){var W;if((W=F.responsiveContainerConfiguration)==null?0:W.responsiveSize)return mEY(F.responsiveContainerConfiguration.responsiveSize);if(F.layoutSizing)switch(F.layoutSizing){case "RICH_GRID_LAYOUT_SIZING_COMPACT":return"COMPACT";case "RICH_GRID_LAYOUT_SIZING_EXTRA_COMPACT":return"EXTRA_COMPACT";case "RICH_GRID_LAYOUT_SIZING_TINY":return"MINI";default:return"STANDARD"}}};
FzI=function(F){if(F.fullbleed)return 1;switch(F.containerType){case "CONTAINER_TYPE_VERTICAL_LIST":return 3;case "CONTAINER_TYPE_GRID":return 2;case "CONTAINER_TYPE_HORIZONTAL_LIST":return 4;default:return 3}};
dqb=function(F,W,E,h,d,V,R,M){a:switch(F){case 4:V=!!(V&&V<100);break a;default:V=!1}a:switch(F){case 3:case 4:var g=h==="LOCKUP_CONTENT_TYPE_CHANNEL"||h==="LOCKUP_CONTENT_TYPE_SOURCE";break a;default:g=!1}a:switch(F){case 5:var t=!0;break a;case 4:t=!1;break a;default:t=!1}a:if(F===4&&h==="LOCKUP_CONTENT_TYPE_SOURCE")var C=1;else switch(F){case 3:C=1;break a;default:C=0}return{isOverlay:t,isCard:WzR(h,R),sizing:W!=null?W:"STANDARD",typographyBump:E!=null?E:!1,isTiny:V,isCentered:g,isCollection:E0e(h),
arrangement:C,addMarginForFullbleed:F===1&&h!=="LOCKUP_CONTENT_TYPE_VIDEO",fullbleed:F===1&&h==="LOCKUP_CONTENT_TYPE_VIDEO",aspectRatio:hSS(h,d,M),disableRounding:F===5||WzR(h,R)||F===1&&h==="LOCKUP_CONTENT_TYPE_VIDEO",collectionStackNumber:E0e(h)?2:0,useLegacyTypography:!(M==null||!M.useLegacyTypography),useRichGridLegacyTypography:!(M==null||!M.useRichGridLegacyTypography)&&!_.c("web_enable_typography_bump")}};
E0e=function(F){switch(F){case "LOCKUP_CONTENT_TYPE_PLAYLIST":case "LOCKUP_CONTENT_TYPE_ALBUM":case "LOCKUP_CONTENT_TYPE_PODCAST":case "LOCKUP_CONTENT_TYPE_SHOPPING_COLLECTION":return!0;default:return!1}};
WzR=function(F,W){if(W&&F==="LOCKUP_CONTENT_TYPE_VIDEO")return!0;switch(F){case "LOCKUP_CONTENT_TYPE_SOURCE":return!0;default:return!1}};
hSS=function(F,W,E){if(W&&(E==null||!E.alwaysRespectPodcastShowAspectRatio||F!=="LOCKUP_CONTENT_TYPE_PODCAST"))return 0;switch(F){case "LOCKUP_CONTENT_TYPE_SHORT":return 4;case "LOCKUP_CONTENT_TYPE_GAME":case "LOCKUP_CONTENT_TYPE_MOVIE":return 1;case "LOCKUP_CONTENT_TYPE_ALBUM":case "LOCKUP_CONTENT_TYPE_PRODUCT":case "LOCKUP_CONTENT_TYPE_PODCAST":case "LOCKUP_CONTENT_TYPE_SOURCE":case "LOCKUP_CONTENT_TYPE_SHOPPING_COLLECTION":return 3;default:return 0}};
Nfr=function(F){switch(F){case 0:return"ytBrNzBadgeShapeBadgeStyleTypeNzRatingGreenCircle";case 1:return"ytBrNzBadgeShapeBadgeStyleTypeNzRatingYellowCircle";case 2:return"ytBrNzBadgeShapeBadgeStyleTypeNzRatingRedSquare";case 3:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingSmallGreenSquare";case 4:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingSmallBlueSquare";case 5:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingLargeBlueSquare";case 6:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingSmallYellowSquare";case 7:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingLargeYellowSquare";
case 8:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingSmallOrangeSquare";case 9:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingLargeOrangeSquare";case 10:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingSmallRedSquare";case 11:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingLargeRedSquare";case 12:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingSmallBlackSquare";case 13:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingLargeBlackSquare"}};
RSn=function(F,W,E){a:switch(F.badgeStyle){case "BADGE_OVERLAY":var h=!0;break a;default:h=!1}return{type:W?16:VNG(F.badgeStyle),brNzRatingBadgeType:Uqr(F.badgeStyle),text:F.badgeText,icon:F.iconName,isOverlay:h,modern:E||_.c("web_modern_badge_view_model")}};
VNG=function(F){switch(F){case "BADGE_COMMERCE":case "BADGE_MEMBERS_ONLY":return 8;case "BADGE_STATUS_NEW":return 11;case "BADGE_PREMIUM":return 5;default:return 0}};
Uqr=function(F){switch(F){case "BADGE_NZ_RATING_GREEN_CIRCLE":return 0;case "BADGE_NZ_RATING_YELLOW_CIRCLE":return 1;case "BADGE_NZ_RATING_RED_SQUARE":return 2;case "BADGE_BR_RATING_SMALL_GREEN_SQUARE":return 3;case "BADGE_BR_RATING_SMALL_BLUE_SQUARE":return 4;case "BADGE_BR_RATING_LARGE_BLUE_SQUARE":return 5;case "BADGE_BR_RATING_SMALL_YELLOW_SQUARE":return 6;case "BADGE_BR_RATING_LARGE_YELLOW_SQUARE":return 7;case "BADGE_BR_RATING_SMALL_ORANGE_SQUARE":return 8;case "BADGE_BR_RATING_LARGE_ORANGE_SQUARE":return 9;
case "BADGE_BR_RATING_SMALL_RED_SQUARE":return 10;case "BADGE_BR_RATING_LARGE_RED_SQUARE":return 11;case "BADGE_BR_RATING_SMALL_BLACK_SQUARE":return 12;case "BADGE_BR_RATING_LARGE_BLACK_SQUARE":return 13}};
MNw=function(F){var W=F.data?RSn(F.data,!!F.workaroundShortsIsThumbnailBadge,F.modern):void 0;return _.z("yt-badge-view-model",{class:_.gY("yt-badge-view-model-wiz",F.class)},wl(W==null?void 0:W.brNzRatingBadgeType,function(){return _.z(eSo,{data:W})}),wl(W&&!W.brNzRatingBadgeType,function(){return _.z(_.hD,{data:W})}))};
_.d9=function(F){if(F){var W;return((W=_.WZ().resolve(_.Fd(_.nK)))==null?0:W())?F.darkThemeImage:F.image}};
zSW=function(F,W,E,h,d,V){if(!E)return d&&V&&W==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING"?"width: "+d+"px; height: "+V+"px;":"";d=E.size;E=E.allowFullWidth;if(W==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"&&E)return"width: 100%;";if(d===void 0)return"";switch(F){case "CONTENT_PREVIEW_IMAGE_STYLE_SQUARE":case "CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE":return"width: "+d+"px; height: "+d+"px;";case "CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3":return"width: "+d+"px; height: "+1/g0e*
d+"px;";case "CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9":return"width: "+d*QhY+"px; height: "+d+"px;";default:return(h==null?0:h.height)&&(h==null?0:h.width)?h.width/h.height>1?"max-width: "+d*QhY+"px;":"max-width: "+d+"px;":"max-width: "+d+"px;"}};
tNo=function(F){var W;return F&&((W=_.d9(F.themedImage))!=null?W:F.image)};
CQn=function(F){var W;return F==null?void 0:(W=F.sources)==null?void 0:W[0]};
v0S=function(F,W){var E,h;return!!((F==null?0:(E=F.byline)==null?0:E.hideAvatar)&&((h=_.D(W,BfW))==null?void 0:h.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")};
IxW=function(F,W){var E,h;return!!((F==null?0:(E=F.byline)==null?0:E.addPadding)&&((h=_.D(W,BfW))==null?void 0:h.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")};
cSW=function(F,W,E,h){var d={},V=(d["yt-content-metadata-view-model-wiz__delimiter"]=!0,d["yt-content-metadata-view-model-wiz__delimiter--standalone"]=h,d);return wl(W-1>E,function(){return _.z("span",{class:_.gY(V),"aria-hidden":!0},F)})};
xqr=function(F,W){return _.z(_.Ab,{text:F.text,linkInheritColor:!0,className:Dqn(W),userInput:!0})};
ASo=function(F){var W=F.metadataPart;var E=F.isOverlay;var h=F.useMediumText;var d=F.hideAvatar;var V=1;W.maxLines!==void 0&&(V=W.maxLines);return _.z(_.EG,null,wl(W.avatarStack,function(){return ksw(W.avatarStack,{avatarStackViewModel:{isOverlay:E,useMediumText:h,hideAvatar:d}})}),wl(W.text,function(){var R=V;
return _.z(_.EG,null,W.tooltip?_.z("span",{title:W.tooltip,role:"tooltip"},xqr(W,R)):xqr(W,R))}))};
Dqn=function(F){switch(F){case 0:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-0";case 1:return"yt-content-metadata-view-model-wiz__metadata-text";case 2:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-2";case 3:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-3";default:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-4"}};
shG=function(F){var W=F.metadataRow;var E=F.isInline;var h=F.delimiter;var d=F.isOverlay;var V=F.useMediumText;var R=F.extensions;var M=v0S(R==null?void 0:R.lockupMetadata,W);F=IxW(R==null?void 0:R.lockupMetadata,W);R=!!((R==null?0:R.lockupMetadata)&&W.badges);var g={};F=(g["yt-content-metadata-view-model-wiz__metadata-row"]=!0,g["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-inline"]=E,g["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-padding"]=F,g["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-wrap"]=
R,g);var t,C;return _.z("div",{class:_.gY(F)},(t=W.badges)==null?void 0:t.map(function(B){return _.z("div",{class:"yt-content-metadata-view-model-wiz__badge"},ksw(B))}),(C=W.metadataParts)==null?void 0:C.map(function(B,I){return _.z(_.EG,null,ASo({metadataPart:B,
isOverlay:d,useMediumText:V,hideAvatar:M}),cSW(h,W.metadataParts.length,I,!1))}),wl(W.isSpacerRow&&!E,function(){return _.z("div",{class:"yt-content-metadata-view-model-wiz__spacer"})}))};
Lzw=function(F){var W=F.className;var E=F.data;var h=F.layout===void 0?0:F.layout;var d=F.isOverlay===void 0?!1:F.isOverlay;var V=F.useMediumText;var R=F.extensions;F=_.uf();var M=h===0;h={};h=(h["yt-content-metadata-view-model-wiz"]=!0,h["yt-content-metadata-view-model-wiz--inline"]=M,h["yt-content-metadata-view-model-wiz--tappable"]=_.uJ(E.rendererContext),h["yt-content-metadata-view-model-wiz--medium-text"]=V,h);_.ffk(F,E.rendererContext);return _.z("yt-content-metadata-view-model",{class:_.gY(W,
h),el:F},wl(E.metadataRows,function(){return E.metadataRows.map(function(g,t){return _.z(_.EG,null,shG({metadataRow:g,isInline:M,delimiter:E.delimiter,isOverlay:d,useMediumText:V,extensions:R}),wl(M&&!g.isSpacerRow,function(){return cSW(E.delimiter,E.metadataRows.length,t,!0)}))})}))};
qCI=function(F){switch(F){case 0:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-0";case 1:return"yt-content-metadata-view-model-wiz__metadata-text";case 2:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-2";case 3:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-3";default:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-4"}};
$qk=function(F){if(F==null?0:F.isOverlay)return"yt-lockup-metadata-view-model-wiz--overlay";switch(F==null?void 0:F.arrangement){case 1:return"yt-lockup-metadata-view-model-wiz--horizontal";default:return"yt-lockup-metadata-view-model-wiz--vertical"}};
ZDr=function(F){if(F==null?0:F.isTiny)return"yt-lockup-metadata-view-model-wiz--tiny";switch(F==null?void 0:F.sizing){case "MINI":case "EXTRA_COMPACT":case "COMPACT":return"yt-lockup-metadata-view-model-wiz--compact";default:return"yt-lockup-metadata-view-model-wiz--standard"}};
HDe=function(F){var W,E,h,d,V,R,M={},g=_.gY($qk(F.lockupStyle),ZDr(F.lockupStyle),(M["yt-lockup-metadata-view-model-wiz"]=!0,M["yt-lockup-metadata-view-model-wiz--overlay"]=(W=F.lockupStyle)==null?void 0:W.isOverlay,M["yt-lockup-metadata-view-model-wiz--card"]=(E=F.lockupStyle)==null?void 0:E.isCard,M["yt-lockup-metadata-view-model-wiz--centered"]=(h=F.lockupStyle)==null?void 0:h.isCentered,M["yt-lockup-metadata-view-model-wiz--typography-bump"]=(d=F.lockupStyle)==null?void 0:d.typographyBump,M["yt-lockup-metadata-view-model-wiz--legacy-typography"]=
(V=F.lockupStyle)==null?void 0:V.useLegacyTypography,M["yt-lockup-metadata-view-model-wiz--rich-grid-legacy-typography"]=(R=F.lockupStyle)==null?void 0:R.useRichGridLegacyTypography,M)),t,C,B,I,x,A;return _.z("yt-lockup-metadata-view-model",{class:g},wl(F.data.image,function(){return _.z("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},X1w(F.data.image,{avatarStackViewModel:{overrides:{layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"}}}))}),_.z("div",{class:"yt-lockup-metadata-view-model-wiz__text-container"},
_.z("h3",{class:"yt-lockup-metadata-view-model-wiz__heading-reset",
title:(t=F.data.title)==null?void 0:t.content},wl(F.data.title,function(){return _.z(_.kY,{command:F.lockupCommand,className:"yt-lockup-metadata-view-model-wiz__title",ariaLabel:F.lockupAccessibilityLabel},_.z(_.Ab,{text:F.data.title}))})),_.z("div",{class:"yt-lockup-metadata-view-model-wiz__metadata"},X1w(F.data.metadata,{contentMetadataViewModel:{layout:1,
useMediumText:((C=F.lockupStyle)==null?void 0:C.typographyBump)||((B=F.lockupStyle)==null?void 0:B.useRichGridLegacyTypography),extensions:{lockupMetadata:{byline:{hideAvatar:((I=F.lockupStyle)==null?void 0:I.arrangement)===0,addPadding:((x=F.lockupStyle)==null?void 0:x.arrangement)===1}}}}})),wl(F.data.attribution,function(){return _.z("div",{class:"yt-lockup-metadata-view-model-wiz__attribution"},X1w(F.data.attribution,{attributionViewModel:{useSmallLayout:!0}}))})),_.z("div",{class:"yt-lockup-metadata-view-model-wiz__menu-button"},
X1w(F.data.menuButton,((A=F.lockupStyle)==null?0:A.isOverlay)?{buttonViewModel:{buttonOverrides:{style:"overlay"}}}:void 0)))};
PQI=function(F){switch(F.style){case "STYLE_VISIBLY_DISABLED":return{style:"BUTTON_VIEW_MODEL_STYLE_CTA",type:"BUTTON_VIEW_MODEL_TYPE_TEXT",state:"BUTTON_VIEW_MODEL_STATE_DISABLED"};case "STYLE_PRIMARY":case "STYLE_PAYMENT":case "STYLE_CALL_TO_ACTION_FILLED":return{style:"BUTTON_VIEW_MODEL_STYLE_CTA",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_SUGGESTIVE":case "STYLE_SUGGESTED_ACTION":return{style:"BUTTON_VIEW_MODEL_STYLE_CTA",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",
state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_BLUE_TEXT":case "STYLE_ALERT_INFO":return{style:"BUTTON_VIEW_MODEL_STYLE_CTA",type:"BUTTON_VIEW_MODEL_TYPE_TEXT",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_OVERLAY":return{style:"BUTTON_VIEW_MODEL_STYLE_OVERLAY",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_WHITE_WITH_BORDER":return{style:"BUTTON_VIEW_MODEL_STYLE_OVERLAY",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};
case "STYLE_LIGHT_TEXT":return{style:"BUTTON_VIEW_MODEL_STYLE_OVERLAY",type:"BUTTON_VIEW_MODEL_TYPE_TEXT",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_MONO_FILLED_OVERLAY":return{style:"BUTTON_VIEW_MODEL_STYLE_OVERLAY",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_MONO_TONAL_OVERLAY":return{style:"BUTTON_VIEW_MODEL_STYLE_OVERLAY",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_MONO_FILLED":case "STYLE_DESTRUCTIVE":return{style:"BUTTON_VIEW_MODEL_STYLE_MONO",
type:"BUTTON_VIEW_MODEL_TYPE_FILLED",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_DEFAULT":case "STYLE_COMPACT_GRAY":case "STYLE_MONO_TONAL":return{style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_INACTIVE_OUTLINE":case "STYLE_MONO_OUTLINE":return{style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_DARK_ON_BLACK":return{style:"BUTTON_VIEW_MODEL_STYLE_OVERLAY",
type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};default:return{style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TEXT",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"}}};
JSI=function(F){var W=_.csI(_.ja().getState())||"";return F?F+W:""};
axo=function(F){switch(F){case 1:return"ytDismissibleItemAspectRatio2By3";case 2:return"ytDismissibleItemAspectRatio3By4";case 4:return"ytDismissibleItemShortsAspectRatio9By16";case 3:return"ytDismissibleItemAspectRatio1By1";case 0:return"ytDismissibleItemAspectRatio16By9"}};
ODo=function(F){var W=_.U(_.g$(void 0,void 0,"BIquNb")),E=W.next().value,h=W.next().value,d=_.U(_.g$(void 0,void 0,"eR0GH"));W=d.next().value;var V=d.next().value,R=_.U(_.g$(void 0,void 0,"UmkP0"));d=R.next().value;var M=R.next().value;R=_.tb(function(C){if(fxe(_.YV(C)))return!1;h(C);V(void 0);M(void 0);return!0});
var g=_.tb(function(C){F==null||F(C);if(fxe(_.YV(C)))return!1;V(C);h(void 0);M(void 0);return!0}),t=_.tb(function(C){fxe(_.YV(C))||(M(C),V(void 0),h(void 0))});
return{touchFeedbackEvents:{pointerUpEvent:E,pointerDownEvent:W,pointerLeaveEvent:d},touchFeedbackOnPointerUp:R,touchFeedbackOnPointerDown:g,touchFeedbackOnPointerLeave:t}};
fxe=function(F){var W=["BUTTON".toString()];F=_.U(F);for(var E=F.next();!E.done;E=F.next()){E=E.value;for(var h=_.U(W),d=h.next();!d.done;d=h.next())if(E.tagName===d.value)return!0}return!1};
bDn=function(F){switch(F){case "AD_AVATAR_SIZE_XXS":return"tiny";case "AD_AVATAR_SIZE_XS":return"extra-small";case "AD_AVATAR_SIZE_S":return"small";case "AD_AVATAR_SIZE_M":return"medium";case "AD_AVATAR_SIZE_MPLUS":return"48";case "AD_AVATAR_SIZE_L":return"large";case "AD_AVATAR_SIZE_XL":return"extra-large";default:return"medium"}};
lxo=function(F,W){var E;return mxo(F,((E=F.content)==null?void 0:E.length)||0,!W)};
n0o=function(F,W){W=lxo(F,W);var E,h;return(((E=F.content)==null?void 0:E.length)||0)>(((h=W.content)==null?void 0:h.length)||0)};
ySe=function(F){var W=F.isTruncated;var E=F.isAbsoluteButton;var h=F.lineHeight;var d=F.contentRef.value,V=F.placeholderTruncationTextRef.value,R=F.truncationTextRef.value;F=F.appDirection==="rtl";if(d&&V){var M=V.offsetLeft;F&&(M=d.offsetWidth-V.offsetWidth-V.offsetLeft);if(W){W=V.offsetWidth;V=d.offsetWidth;var g=E?V-W-70:M-70;h="linear-gradient(\n      to top, transparent 0%,\n      transparent "+h+"px,\n      #000 "+h+"px,\n      #000 100%), linear-gradient(\n      to "+((F?"left":"right")+",\n      #000 0px,\n      #000 "+
g+"px,\n      transparent "+(E?V-W:g+70)+"px)");d.style.setProperty("-webkit-mask-image",h);d.style.setProperty("mask-image",h)}else d.style.setProperty("-webkit-mask-image",""),d.style.setProperty("mask-image","");E?F?(R.style.setProperty("left","0"),R.style.setProperty("right","unset")):(R.style.setProperty("left",""),R.style.setProperty("right","0")):F?(R.style.setProperty("left","unset"),R.style.setProperty("right",M+"px")):(R.style.setProperty("left",M+"px"),R.style.setProperty("right","unset"))}};
jhr=function(F,W,E,h,d,V,R){var M=_.uf(),g=_.uf(),t=_.uf(),C=lxo(F,d),B=_.WZ().resolve(_.ji),I=_.U(BS(n0o(F,d))),x=I.next().value,A=I.next().value,X=J8(null);Z4(function(){function P(){if(M.value&&g.value&&t.value){var w=M.value;w.scrollHeight-w.offsetHeight>1?(A(!0),h||ySe({isTruncated:!0,isAbsoluteButton:!0,lineHeight:E,contentRef:M,placeholderTruncationTextRef:g,truncationTextRef:t,appDirection:B})):(w=n0o(F,d),A(w),h||ySe({isTruncated:w,isAbsoluteButton:!1,lineHeight:E,contentRef:M,placeholderTruncationTextRef:g,
truncationTextRef:t,appDirection:B}))}}
var b,l;(b=X.value)==null||(l=b.stop)==null||l.call(b);b=new _.Nv(P,17);P();X.value=b},[F.content,
W,E,B,h,V,R,d]);_.Xk(function(){var P=function(){var l,w;(l=X.value)==null||(w=l.fire)==null||w.call(l)};
if(window.ResizeObserver){var b=new ResizeObserver(P);b.observe(M.value);return function(){var l,w;(l=X.value)==null||(w=l.stop)==null||w.call(l);b.disconnect()}}window.addEventListener("resize",P);
return function(){var l,w;(l=X.value)==null||(w=l.stop)==null||w.call(l);window.removeEventListener("resize",P)}});
return{isTruncated:x,displayText:C,contentRef:M,placeholderTruncationTextRef:g,truncationTextRef:t}};
iDY=function(F){return _.z("button",{"aria-disabled":!0,disabled:!0,class:F.className,el:F.elRef,style:"line-height: "+F.lineHeight+"px;"},_.z(_.Ab,{text:F.text}))};
rSe=function(F){var W=F.text;var E=F.alwaysShowTruncationText;var h=F.truncationText;var d=F.onExpandClick;var V=F.lineHeight===void 0?16:F.lineHeight;var R=F.maxLines===void 0?2:F.maxLines;var M=F.disableTextMask===void 0?!1:F.disableTextMask;var g=F.textStyle===void 0?"default":F.textStyle;var t=F.accessibilityLabel===void 0?"":F.accessibilityLabel;var C=F.textSize===void 0?"small":F.textSize;var B=F.alwaysTruncateAtMaxLines===void 0?!1:F.alwaysTruncateAtMaxLines;F=_.tb(function(){return void(d==
null?void 0:d())});
var I=jhr(W,R,V,M,B,C,g),x=I.isTruncated;W=I.displayText;B=I.contentRef;var A=I.placeholderTruncationTextRef;I=I.truncationTextRef;var X={};E=_.gY((X["truncated-text-wiz__absolute-button"]=!M,X["truncated-text-wiz__bottom-button"]=M,X["truncated-text-wiz--hidden"]=!(E||x),X));M={};g=_.gY((M["truncated-text-wiz"]=!0,M["truncated-text-wiz--overlay"]=g==="overlay",M["truncated-text-wiz--medium-text"]=C==="medium",M["truncated-text-wiz--large-text"]=C==="large",M["truncated-text-wiz--primary-text"]=g===
"primary-text",M));return _.z("truncated-text",{class:g,"on:click":F,style:"line-height: "+V+"px;"},_.z("truncated-text-content",{class:"truncated-text-wiz__truncated-text-content",el:B,style:"max-height: "+R*V+"px;"},_.z(_.Ab,{text:W}),_.z(iDY,{text:h,lineHeight:V,elRef:A,className:"truncated-text-wiz__inline-button"})),_.z("button",{"aria-label":t,class:E,el:I,style:"line-height: "+V+"px;"},_.z(_.Ab,{text:h})))};
Tfn=function(F){return{content:F!=null?F:""}};
YCY=function(F){var W=F.data;var E;F={class:F.className};a:switch(W.orientation){case "VIDEO_ATTRIBUTE_ORIENTATION_VERTICAL":var h="yt-video-attribute-view-model--vertical";break a;default:h="yt-video-attribute-view-model--horizontal"}a:switch(W.imageSize){case "VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL":var d="yt-video-attribute-view-model--image-small";break a;default:d="yt-video-attribute-view-model--image-large"}a:switch(W.imageStyle){case "VIDEO_ATTRIBUTE_IMAGE_STYLE_SQUARE":var V="yt-video-attribute-view-model--image-square";
break a;case "VIDEO_ATTRIBUTE_IMAGE_STYLE_AVATAR":V="yt-video-attribute-view-model--image-avatar";break a;default:V=""}a:switch(W.metadataStyle){case "VIDEO_ATTRIBUTE_METADATA_STYLE_HEADER":var R="yt-video-attribute-view-model--metadata-header";break a;default:R=""}a:switch(W.containerStyle){case "VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD":var M="yt-video-attribute-view-model--container-card";break a;default:M=""}var g=_.He(W.onTap)||_.wk(W.rendererContext)?"yt-video-attribute-view-model--clickable":"";
h=["yt-video-attribute-view-model",h,d,V,R,M,g].join(" ");if(W.containerStyle!=="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD")var t="";else d=W.lightColorPalette,V=W.darkColorPalette,R=((t=_.WZ().resolve(_.Fd(_.nK)))==null?0:t())&&V?V:d,t=(t=R==null?void 0:R.section2Color)?_.XC(t):"";return _.z("yt-video-attribute-view-model",F,_.z("div",{class:h,style:_.vr({"background-color":t})},_.z(z1b,{className:"yt-video-attribute-view-model__link-container",useATagConfig:!0,stopPropagation:!1,command:(E=_.He(W.onTap))!=
null?E:_.wk(W.rendererContext),role:"group",ariaLabel:W.title,forceNewState:!0},W.heroText||W.image?_.z(o0r,{data:W}):null,_.z(Gsk,{data:W,sizeSmall:W.imageSize==="VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL"}))))};
w1Y=function(F){return{iconPosition:"icon-only",state:"active",style:"overlay",type:"text",size:"S",accessibilityLabel:F.overflowMenuA11yLabel,onTap:function(W){W.preventDefault();W.stopPropagation();if(F.overflowMenuOnTap){var E=_.Jm({elementsCommand:F.overflowMenuOnTap,forceNewState:!0});if(E==null?0:E.onclick)E.onclick(W)}}}};
o0r=function(F){F=F.data;var W,E=((W=_.WZ().resolve(_.Fd(_.nK)))==null?0:W())&&F.darkThemeImage?F.darkThemeImage:F.image;W=w1Y(F);return _.z("div",{class:"yt-video-attribute-view-model__hero-section"},E?_.z(_.T4,{data:E,className:"yt-video-attribute-view-model__hero-image",alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}):F.heroText?_.z("div",{class:"yt-video-attribute-view-model__hero-text-wrapper"},_.z("span",{class:"yt-video-attribute-view-model__hero-text"},F.heroText)):null,F.overflowMenuOnTap?
_.z("div",{class:"yt-video-attribute-view-model__overflow-menu"},_.z(Vg,{data:W,iconName:"MORE_VERT"})):null)};
Gsk=function(F){var W=F.data;F=F.sizeSmall;var E=W.containerStyle==="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD",h=_.He(W.onTap)||_.wk(W.rendererContext);h=_.Jm({innertubeCommand:h});h=au(h);var d={};F={class:_.gY("yt-video-attribute-view-model__metadata",(d["yt-video-attribute-view-model--small-font"]=F,d)),role:h?"link":"group"};h=_.z("h1",{class:"yt-video-attribute-view-model__title"},W.title);E=W.subtitle?_.z("h4",{class:"yt-video-attribute-view-model__subtitle"},E?_.z(rSe,{text:Tfn(W.subtitle),truncationText:Tfn(W.subtitleTruncationText),
maxLines:2}):_.z("span",null,W.subtitle)):null;if(W.secondarySubtitle){d=W.secondarySubtitle;if(d!=null&&d.attachmentRuns){for(var V=[],R=_.U(d.attachmentRuns),M=R.next();!M.done;M=R.next())M=M.value,M.element&&V.push(Object.assign({},M,{element:Object.assign({},M.element,{properties:{layoutProperties:{height:{unit:"DIMENSION_UNIT_POINT",value:15},width:{unit:"DIMENSION_UNIT_POINT",value:15}}}})}));d=Object.assign({},d,{attachmentRuns:V})}d=_.z("span",{class:"yt-video-attribute-view-model__secondary-subtitle"},
_.z(_.Ab,{text:d}))}else d=null;return _.z("div",F,h,E,d,W.buttonViewModel?uzo(W.buttonViewModel,{buttonViewModel:{className:"yt-video-attribute-view-model__button"}}):null)};
p1w=function(F){var W={};W=_.gY("video-summary-content-view-model-wiz",F.className,(W["video-summary-content-view-model-wiz--is-search"]=!!F.isSearch,W));var E=_.D(F.data.likeButtonViewModel,nx),h=_.D(F.data.dislikeButtonViewModel,ya),d=HQ(function(){var V=[],R,M=(R=F.data)==null?void 0:R.paragraphs;if(M==null||!M.length)return[];for(R=0;R<M.length;R++){var g=_.D(M[R],SCk),t=void 0;R>0&&(t=_.D(M[R-1],SCk));t&&!!t.marker===!!g.marker?V[V.length-1].paragraphs.push(g):V.push({isList:!!g.marker,paragraphs:[g]})}return V},
[F.data]);
return _.z("video-summary-content-view-model",{class:W},d.map(function(V){return V.isList?_.z("ul",{class:"video-summary-content-view-model-wiz__list"},V.paragraphs.map(function(R){return _.z("li",{class:"video-summary-content-view-model-wiz__list-item"},_.z(_.Ab,{text:R.text}))})):V.paragraphs.map(function(R){return _.z("p",{class:"video-summary-content-view-model-wiz__paragraph"},_.z(_.Ab,{text:R.text}))})}),wl(!!E&&!!h,function(){return _.z("div",{class:"video-summary-content-view-model-wiz__bottomButtonsContainer"},
_.z("div",{class:"video-summary-content-view-model-wiz__likeButton"},_.z(jDW,{data:E,
disableIconAnimation:!0})),_.z(iZo,{data:h}))}))};
_.UQ=function(F,W,E,h,d){h=h===void 0?{}:h;if(!d||Math.random()<5E-4){W=W||null;E=E||null;F=F instanceof Error?F:new _.xC(F);if(F.args)for(var V=_.U(F.args),R=V.next();!R.done;R=V.next())R=R.value,R instanceof Object&&(h=Object.assign({},R,h));h.category="H5 Ads Control Flow";W&&(h.slot=W?"slot:  "+W.slotType:"");E&&(h.layout=E?"layout:  "+E.layoutType:"",h.layoutId=E.layoutId);d&&(h.known_error_aggressively_sampled=!0);F.args=[h];_.OB(F)}};
_.mqW=function(F,W){_.dW(F,"yt-open-popup-action",[_.pV(W),F])};
_.R$=function(F,W){_.mqW(F,_.Gr(W))};
Fwk=function(F){if(!F)return"";if(Kzn[F])return Kzn[F];em||(em=_.Cr("A"));em.href!==F&&Lu(em,F);var W=em.pathname;Kzn[F]=W.startsWith("/")?W:"/"+W;return Kzn[F]};
WwS=function(){var F=Fwk(window.location.href);if(F==="/")return"home";if(F.startsWith("/results"))return"search";if(F.startsWith("/watch"))return"watch";if(F.startsWith("/shorts"))return"shorts";if(F.startsWith("/hashtag"))return"hashtag";if(F.startsWith("/create_channel"))return"create_channel";if(F.startsWith("/@")||F.startsWith("/user/")||F.startsWith("/channel/"))return"channel";if(F.startsWith("/experiments"))return"experiments";if(F.startsWith("/sponsor_channel"))return"sponsorship";if(F.startsWith("/select_site"))return"settings";
if(F.startsWith("/locate"))return"locate";if(F.startsWith("/redeem"))return"redeem";if(F.startsWith("/musicpremium")||F.startsWith("/premium")||F.startsWith("/red"))return"premium";if(F.startsWith("/paid_memberships"))return"paid_memberships";if(F.startsWith("/oops"))return"oops";if(F.startsWith("/clip"))return"clip";var W;return(Mv==null?void 0:(W=Mv.response)==null?void 0:W.page)==="404"?"404":F.startsWith("/feed/history")?"history":F.startsWith("/feed/library")?"library":F.startsWith("/feed/subscriptions")?
"subscriptions":F.startsWith("/feed/trending")?"trending":F.startsWith("/feed/news_destination")?"news":F.startsWith("/playlist")?"playlist":F.startsWith("/minor_moment")?"minor_moment":F.startsWith("/playable/")||F.match("^/playables/(?!saved).")?"mini_app":F.startsWith("/playables")?"playables":F.startsWith("/create/live/join")?"open_in_app":F.startsWith("/feed/explore")?"explore":"browse"};
_.NOW=function(){var F=Mv==null?void 0:Mv.response,W=F==null?void 0:F.endpoint;if(!W)return(F==null?void 0:F.page)==="watch"?"watch":WwS();var E;F=(E=_.D(W==null?void 0:W.commandMetadata,_.m1))==null?void 0:E.webPageType;E=!1;if(F&&!EHe.includes(F))switch(F){case "WEB_PAGE_TYPE_SEARCH":return"search";case "WEB_PAGE_TYPE_SHORTS":return"shorts";case "WEB_PAGE_TYPE_CHANNEL":return"channel";case "WEB_PAGE_TYPE_SETTINGS":return"settings";case "WEB_PAGE_TYPE_PLAYLIST":return"playlist";case "WEB_PAGE_TYPE_OPEN_IN_APP":return"open_in_app";
case "WEB_PAGE_TYPE_MINI_APP":return"mini_app";case "WEB_PAGE_TYPE_WATCH":var h;return((h=_.D(W==null?void 0:W.commandMetadata,_.m1))==null?0:h.url)&&Fwk(_.D(W.commandMetadata,_.m1).url).startsWith("/clip")?"clip":"watch";case "WEB_PAGE_TYPE_BROWSE":var d;return(W=(d=_.D(W,_.BB))==null?void 0:d.browseId)?hCo[W]||"browse":"browse";default:E=!0}if(_.D(W,_.g9)||_.D(W,dLr))return"sponsorship";d=Fwk(window.location.href);if(d.startsWith("/experiments"))return"experiments";if(d.startsWith("/create_channel"))return"create_channel";
if(_.D(W,_.T5)&&d.startsWith("/shorts"))return"shorts";if(_.D(W,_.T5)&&d.startsWith("/watch"))return"watch";E&&(W=new _.xC("Unsupported mWeb page type",{pathname:d,webPageType:F}),_.a_(W));return"browse"};
QXY=function(F){var W=F.data;var E=F.inlineMetadata;var h=F.aspectRatio;var d=F.scrimStyle;var V=F.useDefaultStyle;var R=F.className;var M=J8(new VYo);F=_.c("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM";F=V?F==="SHORTS_LOCKUP_STYLE_SLIM":W.style==="SHORTS_LOCKUP_STYLE_SLIM";E=E||F||!1;d=d!==void 0?d:1;var g=_.uf(function(P){M.value&&(M.value.hostElement=P,X())});
_.ER(g,{visibilityCallback:function(P){P&&W.onFirstVisible&&_.fK(W.onFirstVisible)},
showOption:{calledOnce:!0,state:"visible"}});R=_.gY("shortsLockupViewModelHost",R);var t=_.Jm({elementsCommand:W.onTap}),C=_.uf();_.QUG(C,_.He(W.onTap));var B=_.tb(function(P){if(t==null?0:t.onclick)t.onclick(P);return!1}),I=_.uf(),x=[];
x.push("shortsLockupViewModelHostThumbnailContainer");h===1?x.push("shortsLockupViewModelHostThumbnailContainerAspectRatioTwoByThree"):h===2&&x.push("shortsLockupViewModelHostThumbnailContainerAspectRatioThreeByFour");F||x.push("shortsLockupViewModelHostThumbnailContainerRounded");_.c("web_shorts_2_by_3_lockups_study")||_.c("desktop_search_enable_two_by_three_shorts_aspect_ratio")||x.push("shortsLockupViewModelHostThumbnailContainerCustomDimensions");var A,X=function(){if(M.value){var P;(P=A)==null||
Qg(P);P=M.value;var b;P.hostElement&&((b=P.data)==null?0:b.inlinePlayerData)&&(A=FY({mediaRenderer:P,lockupElement:P.hostElement,thumbnailElement:I.value,videoPreviewOpts:ULW}))}};
Z4(function(){M.value&&(M.value.data=W,X())},[W]);
return _.z("ytm-shorts-lockup-view-model",{el:g,class:R},_.z("a",{el:C,"on:click":B,class:"shortsLockupViewModelHostEndpoint reel-item-endpoint ","aria-hidden":!E,tabindex:E?0:-1},_.z("div",{el:I,class:x.join(" ")},wl(W.thumbnail,function(){return _.z(_.EG,null,_.z(_.T4,{data:W.thumbnail,alt:"",className:"shortsLockupViewModelHostThumbnail",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}),null)})),E?_.z(RCk,{data:W,
scrimStyle:d,useDefaultStyle:V}):null,eCk(W.badge,{badgeViewModel:{class:"shortsLockupViewModelHostBadge",workaroundShortsIsThumbnailBadge:!0}})),E&&W.menuOnTap?_.z(MYr,{data:W,inlineMetadata:E}):null,E?null:_.z(gHb,{useDefaultStyle:V,data:W}))};
RCk=function(F){var W=F.data;var E=F.scrimStyle;var h=F.useDefaultStyle;var d=_.c("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM";F=h&&_.c("web_hide_primary_text_for_pivot_panel");var V={};h=_.gY("shortsLockupViewModelHostInlineMetadata",(V.shortsLockupViewModelHostMetadataRounded=!(h?d==="SHORTS_LOCKUP_STYLE_SLIM":W.style==="SHORTS_LOCKUP_STYLE_SLIM"),V.shortsLockupViewModelHostInlineMetadataShortScrim=E===3&&!_.c("enable_shorts_lockup_new_scrim"),
V.shortsLockupViewModelHostInlineMetadataShortScrimNew=E===3&&_.c("enable_shorts_lockup_new_scrim"),V.shortsLockupViewModelHostInlineMetadataMediumScrim=E===2||E===4,V.shortsLockupViewModelHostShowOverPlayer=!0,V));var R,M;d={};return _.z("div",{class:h+" image-overlay-text"},_.z("h3",{class:_.ec("shortsLockupViewModelHostMetadataTitle",(d.shortsLockupViewModelHostMetadataTitleTextShadow=E===4,d)),"aria-label":W.accessibilityText},wl(((R=W.overlayMetadata)==null?void 0:R.primaryText)&&!F,function(){return _.z(_.Ab,
{text:W.overlayMetadata.primaryText,noEndpoints:!0,noStyleRuns:!0})})),((M=W.overlayMetadata)==null?0:M.secondaryText)?_.z(zCY,{data:W,
scrimStyle:E}):null)};
gHb=function(F){var W=F.data;var E=_.c("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM";F=(F.useDefaultStyle?E==="SHORTS_LOCKUP_STYLE_SLIM":W.style==="SHORTS_LOCKUP_STYLE_SLIM")?"shortsLockupViewModelHostOutsideMetadata":"shortsLockupViewModelHostOutsideMetadata shortsLockupViewModelHostMetadataRounded";var h=_.Jm({elementsCommand:W.onTap});E=_.uf();_.QUG(E,_.He(W.onTap));var d=_.tb(function(B){if(h==null?0:h.onclick)h.onclick(B);return!1}),V,R,
M,g,t,C={};
return _.z("div",{class:F+" image-overlay-text","on:click":d},_.z("h3",{class:_.ec("shortsLockupViewModelHostMetadataTitle","shortsLockupViewModelHostOutsideMetadataTitle","",(C.shortsLockupViewModelHostOutsideMetadataMissingTitle=!((V=W.overlayMetadata)==null?0:(R=V.primaryText)==null?0:R.content),C)),"aria-label":W.accessibilityText},_.z("a",{el:E,"on:click":d,class:"shortsLockupViewModelHostEndpoint shortsLockupViewModelHostOutsideMetadataEndpoint",title:(M=W.overlayMetadata)==null?void 0:(g=M.primaryText)==
null?void 0:g.content},wl(W.overlayMetadata,function(){return _.z(_.Ab,{text:W.overlayMetadata.primaryText,noEndpoints:!0,noStyleRuns:!0})}))),((t=W.overlayMetadata)==null?0:t.secondaryText)?_.z(zCY,{data:W,
className:"shortsLockupViewModelHostOutsideMetadataSubhead"}):null,W.menuOnTap?_.z(MYr,{data:W,inlineMetadata:!1}):null)};
zCY=function(F){var W=F.data;var E=F.scrimStyle;F=F.className;var h,d={};return _.z("div",{class:_.ec((d.shortsLockupViewModelHostMetadataSubhead=E!==4,d.shortsLockupViewModelHostMetadataSubheadNew=_.c("enable_shorts_lockup_new_scrim"),d.shortsLockupViewModelHostMetadataSubheadTextShadow=E===4,d),F),"aria-hidden":"true"},_.z(_.Ab,{text:(h=W.overlayMetadata)==null?void 0:h.secondaryText,noStyleRuns:!0}))};
MYr=function(F){var W={};W=_.gY((W.shortsLockupViewModelHostInlineMetadataMenu=F.inlineMetadata,W.shortsLockupViewModelHostOutsideMetadataMenu=!F.inlineMetadata,W.shortsLockupViewModelHostShowOverPlayer=!0,W));return _.z("div",{class:W},_.z(Vg,{data:{style:F.inlineMetadata?"overlay":"mono",accessibilityLabel:F.data.menuOnTapA11yLabel,type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(E){E.preventDefault();E.stopPropagation();var h=_.Jm({elementsCommand:F.data.menuOnTap,forceNewState:!0});
if(h==null?0:h.onclick)h.onclick(E)}},
iconName:"MORE_VERT"}))};
zc=function(F,W,E,h){return F&&W?F!==E||W!==h?(_.UQ(Error("Gh"),void 0,void 0,{"stored-slot":F,"stored-layout":W,"latest-slot":E,"latest-layout":h}),!1):!0:!1};
tYr=function(F,W,E){return F({targetId:W},function(h){return E.slot==="RELOAD_CONTINUATION_SLOT_HEADER"?Object.assign({},h,{header:E.continuationItems?E.continuationItems[0]:void 0}):Object.assign({},h,{contents:E.continuationItems?E.continuationItems:[]})})};
ChS=function(F,W,E,h){if(W=W.trackingParams){var d,V=(d=E.getScreenLayer)==null?void 0:d.call(E);E=_.JR(V);d=_.Pf(V);if(E&&d){var R=_.ve(W);_.c("combine_ve_grafts")?F.graftServerVe(W,d,V):_.y7(E,d,R);h==null||h(R)}}};
vHR=function(F){var W;return((W=BOI.get(F))==null?void 0:W.successEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
DLR=function(F,W){var E={type:W.slotType,controlFlowManagerLayer:IiR.get(W.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};W.slotEntryTrigger&&(E.entryTriggerType=W.slotEntryTrigger.triggerType);W.slotPhysicalPosition!==1&&(E.slotPhysicalPosition=W.slotPhysicalPosition);if(F){E.debugData={slotId:W.slotId};if(F=W.slotEntryTrigger)E.debugData.slotEntryTriggerData=cQe(F);F=W.slotFulfillmentTriggers;E.debugData.fulfillmentTriggerData=[];F=_.U(F);for(var h=F.next();!h.done;h=F.next())E.debugData.fulfillmentTriggerData.push(cQe(h.value));
W=W.slotExpirationTriggers;E.debugData.expirationTriggerData=[];W=_.U(W);for(F=W.next();!F.done;F=W.next())E.debugData.expirationTriggerData.push(cQe(F.value))}return E};
cQe=function(F,W){var E={type:F.triggerType};W!=null&&(E.category=W);F.triggeringSlotId!=null&&(E.triggerSourceData||(E.triggerSourceData={}),E.triggerSourceData.associatedSlotId=F.triggeringSlotId);F.triggeringLayoutId!=null&&(E.triggerSourceData||(E.triggerSourceData={}),E.triggerSourceData.associatedLayoutId=F.triggeringLayoutId);return E};
xLb=function(F,W,E,h){W={opportunityType:W};F&&(h||E)&&(h=_.AN(h||[],function(d){return DLR(F,d)}),W.debugData=Object.assign({},E&&E.length>0?{associatedSlotId:E}:{},h.length>0?{slots:h}:{}));
return W};
kvr=function(F){return tD(F.opportunityAdapterMap).concat(tD(F.triggerAdapterMap)).concat(tD(F.fulfillmentAdapterFactoryMap)).concat(tD(F.slotAdapterFactoryMap)).concat(tD(F.layoutRenderingAdapterFactoryMap))};
tD=function(F){var W=[];F=_.U(F.values());for(var E=F.next();!E.done;E=F.next())E=E.value,E.isAdsControlFlowEventListener&&W.push(E);return W};
BH=function(F){var W=F.slotId,E=F.slotType,h=F.slotPhysicalPosition;return W===void 0?new CI("Cannot construct a slot due to the missing id.",{adSlotMetadata:F}):E===void 0?new CI("Cannot construct a slot due to the missing type.",{adSlotMetadata:F}):h===void 0?new CI("Cannot construct a slot due to the missing physical position.",{adSlotMetadata:F}):{slotId:W,slotType:E,slotPhysicalPosition:h,managerLayer:"external",adSlotLoggingData:F.adSlotLoggingData,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],
slotExpirationTriggers:[],clientMetadata:new AQr}};
sXY=function(F){var W=F.layoutId,E=F.layoutType;return W===void 0?new vH("Cannot construct a layout due to the missing id.",{adLayoutMetadata:F}):E===void 0?new vH("Cannot construct a layout due to the missing type.",{adLayoutMetadata:F}):{layoutId:W,layoutType:E,managerLayer:"external",adLayoutLoggingData:F.adLayoutLoggingData,trackingPings:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],
clientMetadata:new AQr,interactionLoggingAdsClientData:{}}};
LwG=function(F){if((F=F.value)&&F.querySelector("img")){var W=F.querySelector("img");W.addEventListener("error",function(){xbo(W.src).then(function(E){(E=_.cp(E).toString())?W.src=E:W.removeAttribute("src")}).catch(function(){W.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII="})})}};
cH=function(F,W){if(W&&(qHS(W.viewableCommand)||qHS(W.endOfSessionCommand))){F=F.value;var E=$Ln(W==null?void 0:W.viewableCommand);W=$Ln(W==null?void 0:W.endOfSessionCommand);if(!I$){var h=_.dV("active_view_tos_timeout_ms");I$=h>0?new Z5n(XLY(),h):new Z5n(XLY())}H5o(I$,F);Pho(I$,F,E,W)}};
D6=function(F){I$&&H5o(I$,F.value)};
XLY=function(){var F=_.b0("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(F==null?void 0:F.length)===2?F[1]:null};
qHS=function(F){F=_.He(F);return!(F==null||!F.loggingUrls)&&F.loggingUrls.length>0};
$Ln=function(F){if(!F)return[];var W=[],E,h;((h=(E=_.He(F))==null?void 0:E.loggingUrls)!=null?h:[]).forEach(function(d){d.baseUrl&&W.push(d.baseUrl)});
return W};
JQS=function(F){return F.shorts.isDesktopSmallWidth};
_.air=function(F){return F.shorts.isWatchWhileMode};
_.xa=function(F){return F.shorts.isFullscreen};
_.ka=function(F){return F.shorts.isShortsPipActive};
O5b=function(F){var W,E;if(F=(W=_.D(F.reelsAdCardButtoned,fio))==null?void 0:(E=W.animatedRenderingConfig)==null?void 0:E.easeOutSeconds)return F+"s"};
liG=function(F,W,E){return _.e(function(h){return h.return(new Promise(function(d){var V=new Image;V.onload=function(){d(new b5b(F,W,E,V.naturalWidth,V.naturalHeight))};
V.src=E.toString()}))})};
nHo=function(F,W){return Math.round(F/1E-5)===Math.round(W/1E-5)};
yQS=function(F,W){return Math.round(F/1E-5)===Math.round(W/1E-5)};
jXn=function(F,W){return F.year===W.year&&F.month===W.month&&F.day===W.day};
i5e=function(F,W){return F.year!==W.year?F.year<W.year:F.month!==W.month?F.month<W.month:F.day<W.day};
TOY=function(F){return F.day===rQk(F.year,F.month)?F.month===11?{year:F.year+1,month:0,day:1}:{year:F.year,month:F.month+1,day:1}:{year:F.year,month:F.month,day:F.day+1}};
oHG=function(){var F=new Date,W={year:F.getFullYear(),month:F.getMonth(),day:F.getDate()};return{start:W,end:{year:F.getFullYear()+2,month:F.getMonth(),day:F.getDate()},selectedDate:TOY(W)}};
Gvk=function(F){return(new Tr(2)).format(new Date(F.year,F.month,F.day))};
YHw=function(F){return{year:F.getFullYear(),month:F.getMonth(),day:F.getDate()}};
wLk=function(F,W){F=(F+(Number(W.utcOffsetSec)+(new Date(F*1E3)).getTimezoneOffset()*60))*1E3;W=YHw(new Date(F));return{date:W,secondsSinceMidnight:Math.floor((F-(new Date(W.year,W.month,W.day)).getTime())/1E3)}};
uKr=function(F,W){W=W.months.findIndex(function(E){return E.year===F.year&&E.month===F.month});
return W>=0?W:void 0};
SHw=function(F){if(!F)return!1;try{if(F.host&&F.host.tagName==="YT-FORMATTED-STRING"&&F.host.id==="contenteditable-textarea"||F.nodeType===Node.ELEMENT_NODE&&F.tagName==="YTD-COMMENTBOX")return!0}catch(W){return!1}return SHw(F.parentNode)};
AD=function(F){return F?!(F.tagName!=="A"||!F.href||!F.classList.contains("yt-simple-endpoint")):!1};
pLo=function(F){return F?F.tagName==="IMG"&&F.classList.contains("emoji"):!1};
mLW=function(F,W,E){if(!F)return null;var h=AD(F);if(h&&E)return W=F.pathname.substring(F.pathname.indexOf("/channel/")+9),document.createTextNode("@"+W);if(h&&!E)return document.createTextNode("");if(pLo(F))return E=F.alt,F=F.dataset.emojiId,!F&&W&&(W=_.sQ(W,E))&&W.isCustomEmoji&&(F=W.emojiId),F?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+F+">"):document.createTextNode(E);h=F.cloneNode(!1);for(var d=0;d<F.childNodes.length;++d){var V=mLW(F.childNodes[d],W,E);V&&h.appendChild(V)}return h};
LI=function(F){return F?AD(F)?F:LI(F.lastChild):null};
KwY=function(F){return F?AD(F)?F:KwY(F.firstChild):null};
FWG=function(F){if(!F)return null;for(var W=F.previousSibling;W;)if(W.nodeType===Node.ELEMENT_NODE&&W.nodeName==="BR")W=W.previousSibling;else if(W.nodeType===Node.TEXT_NODE&&/\s+/.test(W.textContent))W=W.previousSibling;else break;(W=LI(W))?F=W:F=(F=F.parentNode)?LI(F.previousElementSibling):null;return F};
WWI=function(F){if(!F)return null;for(var W=F.nextSibling;W;)if(W.nodeType===Node.ELEMENT_NODE&&W.nodeName==="BR")W=W.nextSibling;else if(W.nodeType===Node.TEXT_NODE&&/\s+/.test(W.textContent))W=W.nextSibling;else break;return(W=KwY(W))?W:WWI(F.parentNode)};
EnW=function(F){var W=_.qv(),E=W.JSC$9155_getStartNode();if(!SHw(E.parentNode))return null;W=W.JSC$9155_getStartOffset();if(E.nodeType===Node.TEXT_NODE){var h=_.HE(E,AD);if(h){if(F&&W===0||!F&&W===E.length)return h}else{if(F&&W===E.length)return!E||E.nodeName==="BR"||E.nextElementSibling&&_.$a(E.nextElementSibling,"display")==="block"?null:KwY(E.nextElementSibling);if(!F&&W===0)return E?LI(E.previousElementSibling):null}}if(E.nodeType===Node.ELEMENT_NODE)if(F){if(0<=W&&W<E.childNodes.length)return KwY(E.childNodes[W])}else if(0<
W&&W<=E.childNodes.length)return LI(E.childNodes[W-1]);return null};
hbo=function(F,W,E){if(!F)return null;if(F.nodeType===Node.TEXT_NODE)if(E){var h=FWG(F);if(h&&!/^\s+\S/.test(F.wholeText.substr(0,W)))return h}else if((h=WWI(F))&&!/\S\s+/.test(F.wholeText.substr(W,F.wholeText.length)))return h;return F.nodeType===Node.ELEMENT_NODE?E?FWG(F.childNodes[W]):WWI(F.childNodes[W]):hbo(F.parentNode,W,E)};
dAe=function(F){if(F.hasChildNodes())switch(F.tagName){case "DIV":case "A":case "SPAN":var W="";for(F=F.firstChild;F;F=F.nextSibling)W+=dAe(F);return W;default:return""}else switch(F.nodeType){case 3:return F.textContent;default:return""}};
Z6=function(F,W){return F.year===W.year&&F.month===W.month&&F.day===W.day};
XY=function(F,W){return F.year!==W.year?F.year<W.year:F.month!==W.month?F.month<W.month:F.day<W.day};
NiY=function(F){return{year:F.getFullYear(),month:F.getMonth(),day:F.getDate()}};
V0k=function(F){var W=Sar;W=W===void 0?Sar:W;W(new Date(F.year,F.month,F.day))};
HH=function(F){return NiY(new Date(Number(F.seconds)*1E3))};
UAe=function(F){return F.year!==void 0&&F.month!==void 0&&F.day!==void 0};
Rbo=function(F){return F.start!==void 0&&F.end!==void 0};
ebI=function(F){return Rbo(F)?F.start:F};
M0S=function(F){return Rbo(F)?F.end:void 0};
QfS=function(F,W){for(var E=[],h=new Date(F.start.year,F.start.month);h.getFullYear()<F.end.year||h.getFullYear()===F.end.year&&h.getMonth()<=F.end.month;){var d=E,V=d.push,R=h.getFullYear(),M=h.getMonth(),g=F,t=W,C=void 0,B=[],I=Object.freeze({extraCssClass:"invisible"}),x=new Date(R,M),A=NiY(x);x=x.getDay();for(var X=NiY(new Date);A.month===M;){x!==gnG&&C||(C=Array.from({length:7}).fill(I),B.push(C));var P={date:{year:R,month:M,day:A.day},extraCssClass:"",debugClass:""};P.extraCssClass=t(P.date,
A,X,g).trim();C[(x-gnG+7)%7]=P;A=A.day===rQk(A.year,A.month)?A.month===11?{year:A.year+1,month:0,day:1}:{year:A.year,month:A.month+1,day:1}:{year:A.year,month:A.month,day:A.day+1};x=(x+1)%7}V.call(d,{weeks:B,monthLabel:PH.SHORTMONTHS[M]+" "+R,year:R,month:M,monthLabelExtraCssClass:B[0][2]===I?"shift-down-label":""});h.setMonth(h.getMonth()+1)}return E};
zbI=function(F,W){W=W.months.findIndex(function(E){return E.year===F.year&&E.month===F.month});
return W>=0?W:void 0};
CXe=function(F,W){a:{var E=E===void 0?[2,3]:E;E=_.U(E);for(var h=E.next();!h.done;h=E.next()){var d=new Date;if((new t0Y(h.value)).parse(W,d,{validate:!0})){d.setHours(0,0,0,0);W=d;break a}}W=null}if(!W)return{isValid:!1,value:void 0};W=NiY(W);E=F.end;return XY(W,F.start)||XY(E,W)?{isValid:!1,value:void 0}:{isValid:!0,value:W}};
DAS=function(F){var W=BiI;W=W===void 0?vnr:W;var E=F.columnsToShow||[],h=Iwo(F.columnDimensions,F.columnsToShow,F.leftFloatingColumns,W);return E.map(function(d,V){var R=F.columns[d];if(R===void 0)throw Error("Mh");var M=h?h[V]:"";var g=F.getCustomTooltip?F.getCustomTooltip(d,R.headerTooltipParagraphs):R.headerTooltipParagraphs;var t=c6G(F,d);return{type:d,index:V,style:M,classes:t,headerName:R.headerName||"",headerIcon:R.headerIcon,headerTooltipParagraphs:g||[],headerTooltipHelpContext:R.headerTooltipHelpContext,
sortOrders:R.sortOrders||[],selectionState:R.isSelectionCheckbox?F.selectionState:void 0}})};
c6G=function(F,W){var E=["DEFAULTS","FLOATING","RIGHT_ALIGN","SORTING"],h=F.columns[W];if(h===void 0)return"";var d=E.includes("DEFAULTS")&&h.cssClass?[h.cssClass]:[];if(E.includes("SORTING")){h.sortOrders&&h.sortOrders.length&&d.push("sortable");if(F.sorting&&F.sorting.columnType===W)a:switch(F.sorting.sortOrder){case "ASCENDING":case "DESCENDING":var V="column-sorted";break a;default:V=""}else V="";V&&d.push(V)}E.includes("FLOATING")&&(W=F.columnsToShow.indexOf(W),F.leftFloatingColumns&&W<F.leftFloatingColumns&&
d.push("floating-column"),F.leftFloatingColumns&&W===F.leftFloatingColumns-1&&d.push("last-floating-column"));E.includes("RIGHT_ALIGN")&&h.rightAlignHeader&&d.push("right-align");return d.filter(function(R){return R}).join(" ")};
Iwo=function(F,W,E,h){E=E===void 0?0:E;h=h===void 0?vnr:h;if(F){var d=[],V=0;xAr(F,W,h).forEach(function(R,M){var g="min-width:"+R.minWidth+"px;padding-left:"+R.paddingLeft+"px;padding-right:"+R.paddingRight+"px;flex:"+R.flexGrow+" 0 "+R.minWidth+"px;";R.maxWidth!==Infinity&&(g=[g,"max-width:"+R.maxWidth+"px;"].join(""));V>0&&M<E&&(g=[g,"left:"+V+"px;"].join(""));d.push(g);V+=R.minWidth+R.paddingLeft+R.paddingRight});
return d}};
xAr=function(F,W,E){E=E===void 0?vnr:E;return W.map(function(h,d){h=F&&F[h]||{};var V=d===0?E.paddingLeftFirstColumn:E.padding;h.paddingLeft!==void 0&&(V=h.paddingLeft);d=d===W.length-1?E.paddingRightLastColumn:E.padding;h.paddingRight!==void 0&&(d=h.paddingRight);return{paddingLeft:V,paddingRight:d,minWidth:h.minWidth!==void 0?h.minWidth:E.minWidth,maxWidth:h.maxWidth!==void 0?h.maxWidth:E.maxWidth,flexGrow:h.flexGrow!==void 0?h.flexGrow:E.flexGrow}})};
kmo=function(F){var W=F.reduce(function(h,d){var V=d.columnId,R={};d.headerText&&(R.headerName=_.Yr(d.headerText));d.rightAlignHeader&&(R.rightAlignHeader=d.rightAlignHeader);var M;if((M=d.headerIcon)==null?0:M.iconType)R.headerIcon=_.Vd(d.headerIcon.iconType);h[V]=R;return h},{}),E=F.filter(function(h){return!h.hideColumn}).map(function(h){return h.columnId});
F=F.filter(function(h){return!!h.dimensions}).reduce(function(h,d){h[d.columnId]=d.dimensions;
return h},{});
return{columns:W,columnsToShow:E,columnDimensions:F}};
_.A6o=function(F){return F?F.simpleText?F.simpleText:F.runs?F.runs.map(function(W){return W.text}).join(""):"":""};
Z6o=function(F){var W=F.data;var E=F.onTap;var h=F.isSelected;var d=F.onFocusIn;if(!W)return{};F=sfW(W);h===void 0&&(h=W==null?void 0:W.isSelected);var V;return{text:LWW(W,F),startIcon:(V=W.icon)==null?void 0:V.iconType,state:h?0:2,type:0,onTap:quo(W,E),accessibilityLabel:$Ab(W,F),onFocusIn:function(){return d==null?void 0:d()}}};
LWW=function(F,W){if(!W)return F.text?_.A6o(F.text):void 0};
quo=function(F,W){return function(E){W==null||W(E,F)}};
sfW=function(F){F=F.style&&F.style.styleType;return!XVS&&F==="STYLE_EXPLORE_LAUNCHER_CHIP"};
$Ab=function(F,W){if(W){var E,h,d;return(d=(E=F.accessibilityData)==null?void 0:(h=E.accessibilityData)==null?void 0:h.label)!=null?d:LWW(F,!1)}};
JD=function(F){return{signalAction:{signal:F}}};
J6I=function(){return _.b0("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?H6b:_.PXY};
awY=function(F,W){F=F===void 0?"SOFT_RELOAD_PAGE":F;W=W===void 0?49504:W;return{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",text:_.Wz(_.CY("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:W}},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:F}}]}}}};
fwo=function(){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.Wz(_.CY("GO_TO_DOWNLOADS",void 0,"Go to downloads")),loggingDirectives:{clientVeSpec:{uiType:49503}},navigationEndpoint:J6I()}};
O6o=function(){return{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.Wz(_.CY("VIEW_DOWNLOADS",void 0,"View")),loggingDirectives:{clientVeSpec:{uiType:98970}},navigationEndpoint:J6I()}};
b6G=function(F,W){var E=_.Wz(_.CY("CONNECT_TO_THE_INTERNET",void 0,"Connect to the internet")),h=_.Wz(_.CY("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),d={style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.Wz(_.CY("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:49504}}};d.serviceEndpoint=F?F:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[JD("SOFT_RELOAD_PAGE")]}};return{title:E,bodyText:h,icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{reloadPageButtonRenderer:d},
style:{value:W!=null?W:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}};
nnS=function(F){F=F===void 0?{}:F;return{title:_.Wz(F.localizedZeroStateTitleText===void 0?"":F.localizedZeroStateTitleText),bodyText:_.Wz(F.localizedZeroStateMessage===void 0?"":F.localizedZeroStateMessage),ctaButton:{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.Wz(F.localizedZeroStateButtonText===void 0?"":F.localizedZeroStateButtonText),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",
boolValue:!0}},loggingDirectives:{clientVeSpec:{uiType:127983}}}},thumbnail:{thumbnails:[lwG]},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:127982}}}};
_.i6e=function(F,W,E,h,d,V,R,M){h=h===void 0?!1:h;d=d===void 0?!1:d;V=V===void 0?0:V;R=R===void 0?-Infinity:R;M=M===void 0?!1:M;var g=[],t=_.Wz(_.CY("SMART_DOWNLOADS",void 0,"Smart downloads"));R=_.Wz(y6G(V,R,F.length));V=void 0;h?V=F.length>0?jfY(F,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS",_.c("kevlar_manual_downloads_above"),t,R):M?{alertBannerViewModel:{heading:{content:E.localizedOptInBannerTitleText===void 0?"":E.localizedOptInBannerTitleText},body:{content:E.localizedPromptMessage===
void 0?"":E.localizedPromptMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.CY("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now"),accessibilityText:_.CY("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:129730}},onTap:{innertubeCommand:{offlineOrchestrationActionCommand:{actions:[{actionType:"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH",
entityKey:_.QHe}]}}}}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:129729}}}}}}:{backgroundPromoRenderer:{bodyText:_.Wz(_.CY("WAITING_TO_DOWNLOAD",void 0,"Waiting to download...")),thumbnail:{thumbnails:[{url:"https://www.gstatic.com/youtube/img/useredu/grey_loading_spinner.gif"}]},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_CONTENT_HEIGHT"}}}:d&&(V={alertBannerViewModel:{heading:{content:E.localizedOptInBannerTitleText===void 0?"":E.localizedOptInBannerTitleText},body:{content:E.localizedOptInMessage===
void 0?"":E.localizedOptInMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.CY("TURN_ON",void 0,"Turn on"),accessibilityText:_.CY("TURN_ON",void 0,"Turn on"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:127983}},onTap:{innertubeCommand:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",
boolValue:!0}}}}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:127982}}}}}});E=_.Wz(_.CY("YOUR_DOWNLOADS",void 0,"Your downloads"));d=void 0;W.length>0?(d=void 0,_.c("kevlar_display_downloads_numbers")&&(d=_.Wz(_.B5("VIDEO_COUNT",W.length))),d=jfY(W,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS",!0,E,d)):h||F.length||(d={backgroundPromoRenderer:{bodyText:_.Wz(_.CY("VIDEOS_WILL_APPEAR_HERE",void 0,"Videos you download will appear here")),thumbnail:{thumbnails:[{url:"https://www.gstatic.com/youtube/img/useredu/downloads_empty_state.png"}]},
style:{value:"BACKGROUND_PROMO_STYLE_TYPE_CONTENT_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:120848}}}});V&&!_.c("kevlar_manual_downloads_above")&&g.push({richSectionRenderer:{content:V,loggingDirectives:{clientVeSpec:{uiType:139572}}}});d&&g.push({richSectionRenderer:{content:d,loggingDirectives:{clientVeSpec:{uiType:51721}}}});V&&_.c("kevlar_manual_downloads_above")&&g.push({richSectionRenderer:{content:V,loggingDirectives:{clientVeSpec:{uiType:139572}}}});(W.length>0||h&&F.length>0)&&g.push({richSectionRenderer:{content:{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.Wz(_.CY("DOWNLOADS_AVAILABILITY",
void 0,"Downloads remain available as long as your device has an active internet connection for 30 days. This process happens automatically and does not re-download the video."))}},loggingDirectives:{clientVeSpec:{uiType:133683}}}}}});return{contents:g}};
_.TiW=function(F){return r6Y(F,"RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE")};
_.onI=function(F){return r6Y(F,"RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE")};
r6Y=function(F,W){var E=[];F=jfY(F,W,!0);E.push({richSectionRenderer:{content:F}});return{contents:E}};
jfY=function(F,W,E,h,d){E=E===void 0?!1:E;F={isExpanded:E,contents:a$(F),entitySelectorType:W};h&&(F.title=h);d&&(F.subtitle=d);E||(_.c("kevlar_smart_downloads_show_more_button")?(F.showMoreButton={buttonRenderer:{accessibility:{label:_.CY("SHOW_MORE",void 0,"Show more")},icon:{iconType:"EXPAND"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:192921}},text:_.Wz(_.CY("SHOW_MORE",void 0,"Show more"))}},F.showLessButton={buttonRenderer:{accessibility:{label:_.CY("SHOW_LESS",
void 0,"Show less")},icon:{iconType:"COLLAPSE"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",text:_.Wz(_.CY("SHOW_LESS",void 0,"Show less"))}}):(F.previousButton={buttonViewModel:{iconName:"CHEVRON_LEFT",accessibilityText:_.CY("HORIZONTAL_LIST_PREVIOUS_LABEL",void 0,"Previous"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:11760}}}},F.nextButton={buttonViewModel:{iconName:"CHEVRON_RIGHT",
accessibilityText:_.CY("HORIZONTAL_LIST_NEXT_LABEL",void 0,"Next"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:11760}}}},F.menu={menuRenderer:{topLevelButtons:[{buttonViewModel:{title:_.CY("VIEW_ALL",void 0,"View all"),accessibilityText:_.CY("VIEW_ALL",void 0,"View all"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",
state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:242898}},onTap:{innertubeCommand:KY("FEsmart_downloads","/feed/smart_downloads",248381)}}}]}}));return{richShelfRenderer:F}};
a$=function(F){var W=[];F=_.U(F);for(var E=F.next();!E.done;E=F.next())if(E=E.value,wiW(E)){var h=W,d=h.push;var V=void 0;if(E==null?0:(V=E.videoEntity)==null?0:V.videoId){V=lC(_.uC().getState(),E.videoEntity.videoId);var R=_.uC().getState();var M=_.eF(E.videoEntity.videoId,"mainVideoEntity");R=!!_.LV(R.entities)[M];R={videoId:E.videoEntity.videoId,title:E_(E.videoEntity.title),shortBylineText:E_(E.channelEntity.title),thumbnail:E.videoEntity.thumbnail,loggingDirectives:{clientVeSpec:{uiType:R&&_.c("kevlar_modern_downloads_page")?
129218:42356}},navigationEndpoint:wye(E.videoEntity.videoId,V,E.videoEntity.lengthSeconds),badges:[{metadataBadgeRenderer:{label:_.CY("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};E.videoEntity.lengthSeconds&&(R.thumbnailOverlays=Cpr(E.videoEntity.lengthSeconds,V));R.isWatched=V>0;_.c("kevlar_modern_downloads_page")&&(R.menu={menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:E.videoEntity.videoId}}}}],accessibility:{accessibilityData:{label:_.CY("VIDEO_ACTION_MENU",
void 0,"Action menu")}}}},R.badges=void 0);E=R}else E={};d.call(h,{richItemRenderer:{content:{videoRenderer:E},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"}})}else if(YPr(E)){h=W;d=h.push;var g=M=V=void 0,t=void 0,C=void 0,B=void 0,I=void 0,x=void 0,A=void 0,X=void 0,P=void 0,b=void 0;R=E.mainPlaylistEntity.playlistId;var l=E==null?void 0:(b=E.mainPlaylistEntity)==null?void 0:(P=b.thumbnailStyleData)==null?void 0:(X=P[0])==null?void 0:(A=X.value)==null?void 0:(x=A.collageThumbnail)==
null?void 0:x.coverThumbnail;if(R&&l){x=uUw(R);!_.c("enable_offline_playlist_page")&&(E==null?0:(I=E.mainPlaylistEntity)==null?0:I.videos)&&(I=E==null?void 0:(B=E.mainPlaylistEntity)==null?void 0:(C=B.videos)==null?void 0:C[0],C=_.Vz(I).entityId,C=JSON.parse(C).videoId,C!==void 0&&(B=lC(_.uC().getState(),C),x=_.FD(C,R,void 0,void 0,B)));C=[];if(E==null?0:(t=E.mainPlaylistEntity)==null?0:(g=t.videos)==null?0:g.length)C=[uWI(),Object.assign({},(M=wPS(E==null?void 0:E.mainPlaylistEntity.videos.length))!=
null?M:{})];E={playlistId:R,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:l}},navigationEndpoint:x,loggingDirectives:{clientVeSpec:{uiType:42357}},thumbnailOverlays:C,title:E_(E.mainPlaylistEntity.title),shortBylineText:E_(E==null?void 0:(V=E.channelEntity)==null?void 0:V.title),badges:[{metadataBadgeRenderer:{label:_.CY("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};_.c("kevlar_modern_downloads_page")&&(E.menu={menuRenderer:{items:[{menuServiceItemRenderer:{text:Gmo,
icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:R,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.CY("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},E.badges=void 0)}else E=void 0;d.call(h,{richItemRenderer:{content:{playlistRenderer:E},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST"}})}return W};
y6G=function(F,W,E){F=F?Yue(F):"";W!==void 0&&isFinite(W)?W===0?W=_.CY("UPDATING",void 0,"Updating..."):(W=tlS(new Date(W),new Date),W=_.CY("UPDATED_TIME",{relative_time:W},"Updated "+W)):W="";var h="";F&&W&&(h=" \u2022 ");if(E&&_.c("kevlar_display_downloads_numbers")){E=_.B5("VIDEO_COUNT",E);if(F||W)h=" \u2022 ";return E+h+F+h+W}return F+h+W};
wVG=function(F){return RRI(F.entities).length};
_.uQe=function(F,W){var E=mEY(F.responsiveSize),h;F=!((h=F.responsiveMap)==null||!h.some(function(d){return d.containerSize==="CONTAINER_SIZE_NARROW"&&d.containerType==="CONTAINER_TYPE_VERTICAL_LIST"}));
return{marginSettings:2,containerWidth:W,sizing:E,enableFullBleedForSingleCol:!1,isCompactList:E==="COMPACT"&&F}};
Suo=function(F,W){return _.Mn(F.entities,"votingEntity",W)};
pVr=function(F){if(F){var W;return((W=_.WZ().resolve(_.Fd(_.nK)))==null?0:W())?F.darkTheme:F.lightTheme}};
mAY=function(F,W,E){return _.z(_.EG,null,sWR(E,[[0,function(){return _.z("h2",{class:W},F)}],
[1,function(){return _.z("h3",{class:W},F)}],
[2,function(){return _.z("h4",{class:W},F)}]],function(){return _.z("h2",{class:W},F)}))};
KWk=function(F){var W=["shelf-header-layout-wiz"];F.disableHorizontalPadding&&W.push("shelf-header-layout-wiz--disable-horizontal-padding");F.disableVerticalPadding&&W.push("shelf-header-layout-wiz--disable-vertical-padding");F.useResponsiveLayout&&(W.push("shelf-header-layout-wiz--responsive"),F.forceSmallLayout&&W.push("shelf-header-layout-wiz--narrow"));F.isOverlay&&W.push("shelf-header-layout-wiz--is-overlay");F.onClick&&W.push("shelf-header-layout-wiz--tappable");var E=["shelf-header-layout-wiz__title"];
F.forceSmallLayout&&E.push("shelf-header-layout-wiz__title--small-title");var h=["shelf-header-layout-wiz__leading-image"];F.circularImage&&h.push("shelf-header-layout-wiz__leading-image--circular-image");var d=_.tb(function(t){var C;(C=F.onClick)==null||C.call(F,t)}),V,R,M,g;
return _.z("yt-shelf-header-layout",{class:W.join(" "),"on:click":d,tabindex:F.onClick?0:void 0},F.leadingIcon?_.z("div",{class:"shelf-header-layout-wiz__leading-icon"},_.z(_.I3,{icon:F.leadingIcon})):F.hasLeadingImage?_.z("div",{class:h.join(" ")},(V=F.leadingImage)==null?void 0:V.call(F)):_.z(_.EG,null),_.z("div",{class:"shelf-header-layout-wiz__label-container"},F.hasSuperlabel?_.z("div",{class:"shelf-header-layout-wiz__superlabel"},(R=F.superlabel)==null?void 0:R.call(F)):_.z(_.EG,null),_.z("div",
{class:"shelf-header-layout-wiz__title-row"},mAY(F.title(),E.join(" "),F.tagLevel),wl(F.hasDetail,function(){var t;return _.z("div",{class:"shelf-header-layout-wiz__detail"},(t=F.detail)==null?void 0:t.call(F))})),F.hasSublabel?_.z("div",{class:"shelf-header-layout-wiz__sublabel"},(M=F.sublabel)==null?void 0:M.call(F)):_.z(_.EG,null)),F.hasTrailingActions?_.z("div",{class:"shelf-header-layout-wiz__trailing-actions"},(g=F.trailingActions)==null?void 0:g.call(F)):_.z(_.EG,null))};
F5r=function(F){var W=_.D(F==null?void 0:F.avatar,_.Kx),E,h=(E=F==null?void 0:F.image)!=null?E:_.d9(F==null?void 0:F.themedImage);return _.z(_.EG,null,wl(h,function(){return _.z(_.T4,{data:h,alt:"",preserveWidth:!0,preserveHeight:!0})}),wl(W,function(){return _.z(_.fI,{data:W})}))};
hjb=function(F){var W=_.D(F.bottomBadge,W5S),E=W&&F.sublabel?"ytSectionHeaderViewModelBadgeWithLabel":void 0;return _.z(_.EG,null,wl(W,function(){return W&&_.z(EGn,{data:W,class:E})}),wl(F.sublabel,function(){return _.z(_.Ab,{text:F.sublabel})}))};
dtS=function(F){var W=_.D(F.topBadge,W5S),E=W&&F.superlabel?"ytSectionHeaderViewModelBadgeWithLabel":void 0;return _.z(_.EG,null,wl(W,function(){return W&&_.z(EGn,{data:W,class:E})}),wl(F.superlabel,function(){return _.z(_.Ab,{text:F.superlabel})}))};
Utr=function(F){var W=F.data;var E=F.disableHorizontalPadding;var h=F.disableVerticalPadding;var d=F.forceSmallLayout;var V=F.useResponsiveLayout;F=F.isOverlay;var R=W.sublabel||W.bottomBadge,M=W.superlabel||W.topBadge,g=_.uJ(W.rendererContext);E={hasDetail:!1,title:function(){return _.z(_.Ab,{text:W.headline})},
hasTitle:!0,sublabel:R&&function(){return hjb(W)},
hasSublabel:!!R,superlabel:M&&function(){return dtS(W)},
hasSuperlabel:!!M,leadingImage:W.leadingAccessory&&function(){return F5r(W.leadingAccessory)},
hasLeadingImage:!!W.leadingAccessory,trailingActions:W.trailingActions&&function(){return _.z(_.EG,null,NBe(W.trailingActions))},
hasTrailingActions:!!W.trailingActions,disableHorizontalPadding:E,disableVerticalPadding:h,forceSmallLayout:d,useResponsiveLayout:V,isOverlay:F,onClick:g?function(t){var C=_.wk(W.rendererContext);C&&_.Pe(C,{form:{element:t.target,event:t}})}:void 0};
h=(h=pVr(W==null?void 0:W.backgroundColor))?"background-color: "+_.XC(h)+";":void 0;return _.z("yt-section-header-view-model",{class:"ytSectionHeaderViewModelHost",style:h},_.z(VAY,Object.assign({},E)))};
Rjk=function(F,W){if(F.simpleText)return Object.assign({},F,{simpleText:bH(F.simpleText,W)});if(!F.runs)return F;for(var E=Object.assign({},F,{runs:[]}),h=0,d=_.U(F.runs),V=d.next();!V.done;V=d.next())if(V=V.value,V.text)if(h+V.text.length<=W)E.runs.push(V),h+=V.text.length;else return E.runs.push(Object.assign({},V,{text:bH(V.text,W-h)})),E;return F};
ejY=function(F,W){return _.Mn(F.entities,"chipBarStateEntity",W)};
MAr=function(F,W){return _.Mn(F.entities,"chipEntity",W)};
Qpk=function(F,W,E,h){return function(){var d=gGI.has(F.displayType)&&F.selected,V=d&&F.deselectCommand?F.deselectCommand:F.tapCommand;!V||d&&h||_.fK(V,{form:{element:W==null?void 0:W.value}});E==null||E()}};
zjS=function(F){switch(F){case "DIVIDER_STYLE_FULL_BLEED_4_PX":return"divider-view-model-wiz__base-divider--full-bleed-4px";case "DIVIDER_STYLE_FULL_BLEED_THICK":return"divider-view-model-wiz__base-divider--full-bleed-thick";case "DIVIDER_STYLE_FULL_BLEED_8_PX":return"divider-view-model-wiz__base-divider--full-bleed-8px";case "DIVIDER_STYLE_FULL_BLEED_12_PX":return"divider-view-model-wiz__base-divider--full-bleed-12px";default:return""}};
tAn=function(F,W){return{triggeringElement:F,onDwellTriggeredFn:function(){var E={triggeringElement:F,loadVideoPreviewEventData:W},h=document.querySelector(".video-preview");h&&h.dispatchEvent(new CustomEvent("yt-load-video-preview",{detail:E}))},
onDwellEndFn:function(){var E=document.querySelector(".video-preview");E&&E.dispatchEvent(new CustomEvent("yt-end-video-preview"))}}};
CNo=function(F,W){var E=_.WZ().resolve(_.Fd(f3Y)),h=function(){var d=W();return E&&d?tAn(F.value,d):null};
_.q6(function(){var d=h();E&&d&&Promise.resolve().then(function(){E.registerElement(d)});
_.$p(function(){E&&d&&Promise.resolve().then(function(){E.unregisterElement(d)})})})};
vGk=function(F){var W=F.dataset.resizeObserverId;if(W)return W;W=""+BBb++;return F.dataset.resizeObserverId=W};
Itw=function(F,W){var E=vGk(F);OQ.has(E)||OQ.set(E,new Set);OQ.get(E).add(W);bA.has(E)&&W(Object.assign({},{target:F},bA.get(E)))};
c9r=function(F){F=_.U(F);for(var W=F.next();!W.done;W=F.next()){W=W.value;var E=vGk(W.target),h=Object.assign({},{target:W.target},bA.get(E));if(h!=null&&h.contentRect?h.contentRect.width!==W.contentRect.width||h.contentRect.height!==W.contentRect.height:1)for(bA.set(E,{borderBoxSize:W.borderBoxSize,contentBoxSize:W.contentBoxSize,contentRect:W.contentRect,devicePixelContentBoxSize:W.devicePixelContentBoxSize}),E=_.U(OQ.get(E)||[]),h=E.next();!h.done;h=E.next())h=h.value,h(W)}};
xtr=function(){return lA?lA:lA=new Dtn(c9r)};
kVe=function(F,W){var E=vGk(F);OQ.has(E)&&(OQ.get(E).delete(W),OQ.get(E).size===0&&(OQ.delete(E),bA.delete(E),lA.unobserve(F),delete F.dataset.resizeObserverId));OQ.size===0&&lA&&(lA.disconnect(),lA=void 0)};
spk=function(F,W){var E=_.WZ().resolve(Ws);return A9Y.map(function(h){return E.observe(F,W,h)})};
L5Y=function(F){var W=_.WZ().resolve(Ws);F.forEach(function(E){W.unobserveByKey(E)})};
_.Zlr=function(F,W){var E=Object.assign({},qle,W);W=_.U(aJY());var h=W.next().value,d=W.next().value,V=function(R){var M=R.contentRect.height;if((R=R.contentRect.width)||M||E.canHaveZeroSize)h.width()===R&&h.height()===M||d(h,{height:M,width:R})};
_.Xk(function(){var R=F instanceof HTMLElement?F:F.value,M=$tr(V,E.throttleMs),g=[];E.useVisibilityObserver&&(g=spk(R,function(t,C){requestAnimationFrame(function(){C==="visible"?(Itw(R,M),xtr().observe(R)):kVe(R,M)})}));
g.length||(Itw(R,M),xtr().observe(R));_.$p(function(){g.length&&(L5Y(g),g.length=0);kVe(R,M)})});
return h};
Hln=function(F){var W=F.data;var E=F.callback;var h=F.enableSingleChipSelection;var d=F.disableChipsScrollAnimation;var V=_.uf(),R=J8(!1),M=J8(0);F={};F=_.U(BS(W.autoselectedChipIndex!=null?(F[W.autoselectedChipIndex]=!0,F):{}));var g=F.next().value,t=F.next().value,C=function(){var xW=V.value;return xW==null||xW.scrollLeft-1<=0},B=function(){var xW=V.value;
return xW==null?!1:xW.scrollLeft+1>=(xW==null?NaN:xW.scrollWidth)-(xW==null?NaN:xW.clientWidth)};
F=_.U(BS(C()));var I=F.next().value,x=F.next().value;F=_.U(BS(B()));var A=F.next().value,X=F.next().value;F=W.isHorizontallyScrollable;var P=function(xW){V.value!=null&&(_.b0("HTML_DIR")==="rtl"&&(xW=-xW),V.value.scrollBy({left:xW,behavior:d?"instant":"smooth"}))},b=function(){P(-320)},l=function(){P(320)},w=_.tb(function(xW){R.value=!0;
M.value=xW.clientX}),G=_.tb(function(xW){if(R.value){xW=xW.clientX;
var qw=xW-M.value;M.value=xW;V.value.scrollBy({left:-qw})}}),hr=_.tb(function(){var xW=C(),qw=B();
xW!==I&&x(xW);qw!==A&&X(qw)});
FV("pointerup",function(){R.value&&(R.value=!1)});
var p={},UY={};return _.z("chips-shelf-view-model",{class:"ytChipsShelfViewModelHost"},wl(W.title,function(){return _.z("div",{class:"ytChipsShelfViewModelChipsShelfHeader"},_.z("h2",{class:"ytChipsShelfViewModelChipsShelfTitle"},W.title),XlY(W.overflowButton))}),_.z("div",{class:"ytChipsShelfViewModelChipsShelfContent"},wl(W.previousButton!=null,function(){var xW={};
return _.z("div",{class:_.gY("ytChipsShelfViewModelLeftArrowContainer",(xW.ytChipsShelfViewModelLeftArrowContainerIsHidden=I,xW))},XlY(W.previousButton,{buttonViewModel:{className:"ytChipsShelfViewModelLeftArrow",onClick:b}}))}),_.z("div",{el:V,
"on:pointerdown":w,"on:pointermove":G,"on:scroll":hr,class:_.gY("ytChipsShelfViewModelChipsScrollContainer",(p.ytChipsShelfViewModelChipsScrollContainerIsHorizontallyScrollable=!!F,p))},_.z("div",{class:_.gY("ytChipsShelfViewModelChipsContainer",(UY.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollable=!!F,UY.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollableFeaturePhone=!!F&&!1,UY))},(W.contents||[]).map(function(xW,qw){return _.z("div",{class:"ytChipsShelfViewModelChipWrapper"},XlY(xW,
{chipViewModel:{callback:function(Lb,jk){if(h){var Jr={};t((Jr[qw]=jk,Jr))}else Jr={},t(Object.assign({},g,(Jr[qw]=jk,Jr)));E==null||E(Lb,jk,qw)},
disableDeselection:h,selected:!!g[qw]}}))}))),wl(W.nextButton!=null,function(){var xW={};
return _.z("div",{class:_.gY("ytChipsShelfViewModelRightArrowContainer",(xW.ytChipsShelfViewModelRightArrowContainerIsHidden=A,xW))},XlY(W.nextButton,{buttonViewModel:{className:"ytChipsShelfViewModelRightArrow",onClick:l}}))})))};
J9R=function(F,W,E,h,d){F=W?F.switchOffCommand:F.switchOnCommand;if(h&&d)PNk(F,E,d);else{var V,R;(V=_.Jm({elementsCommand:F}))==null||(R=V.onclick)==null||R.call(V,E)}};
PNk=function(F,W,E){F=_.Jm({elementsCommand:F,additionalCommandArgs:{commandController:{onSuccess:function(){E(!1)},
onServerError:function(){E(!1)}}}});
if(F==null?0:F.onclick)F.onclick(W),E(!0)};
ftG=function(F){if(F)return _.D(F,atb)};
y9b=function(F,W,E){if(W)return[Olr];switch(F){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_COMPLETE":return[nI];case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFERRING":return E?[nI]:[blG,nI];case "TRANSFER_STATE_PAUSED_BY_USER":return[ltR,nI];case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return[nGY,nI];default:return[Olr]}};
jpr=function(F,W,E,h){return y9b(F,W,h).map(function(d){var V=d.text,R=d.iconType,M=d.videoAction;d=d.playlistAction;V=V?{content:V}:void 0;R=R&&{sources:[{clientResource:{imageName:R}}]};var g=(0,_.xd.unsafeClone)(E);if(g){var t=_.D(g,_.vS),C=_.D(g,_.I6);t&&M?t.action=M:C&&d&&(C.action=d)}return{title:V,leadingImage:R,rendererContext:g&&{commandContext:{onTap:{innertubeCommand:g}}}}})};
ilr=function(F){F=_.wk(F.rendererContext);var W;return(W=_.D(F,_.I6))==null?void 0:W.playlistId};
r9Y=function(F){var W;return(W=F.listItems)==null?void 0:W.some(function(E){var h;return _.uJ((h=_.D(E,_.Lx))==null?void 0:h.rendererContext)})};
yg=function(F){var W=_.WZ().resolve(_.Fd(_.nK));return W!=null&&W()?F.darkThemeColorPalette:F.lightThemeColorPalette};
iA=function(F){return{primaryTextColor:jm(F,0),secondaryTextColor:jm(F,1),optionColor:jm(F,2),backgroundColor:jm(F,3),videoBackgroundColor:jm(F,4)}};
jm=function(F,W){if(F){switch(W){case 0:F=F.primaryTitleColor;break;case 1:F=F.secondaryTitleColor;break;case 2:F=F.surgeColor;break;case 3:F=F.section2Color;break;case 4:F=F.section3Color;break;default:return}if(F)return _.ZP(F)}};
TBo=function(F){return F?_.XC(F):""};
oGY=function(F){return(F==null?void 0:F.contentType)==="LOCKUP_CONTENT_TYPE_SOURCE"?64:void 0};
GVw=function(F,W){var E;return"linear-gradient(to bottom, "+((E=W==null?void 0:W.map(function(h){var d=F?h.darkThemeColor:h.lightThemeColor;return d?_.XC(d)+" "+((h==null?void 0:h.startLocation)||0)*100+"%":"transparent"}))==null?void 0:E.join(", "))+")"};
YlY=function(F){var W=F.className;var E=F.data;var h=F.isOverlay;var d=F.maxLinesOverride;var V=F.useMediumText;F=_.uf();var R=E.description,M=E.alwaysShowTruncationText,g=E.truncationText,t=E.maxLines,C,B=!((C=_.D(E.rendererContext,px))==null||!C.onTap),I,x,A=(x=(I=_.D(E.rendererContext,_.m9))==null?void 0:I.label)!=null?x:"";C=_.U(BS(!1));var X=C.next().value,P=C.next().value;_.ffk(F,E.rendererContext);C=_.tb(function(){E.expandOnTap&&P(!X);return!1});
I={};return _.z("yt-description-preview-view-model",{el:F,class:_.gY("yt-description-preview-view-model-wiz",W,(I["yt-description-preview-view-model-wiz--clickable"]=B,I["yt-description-preview-view-model-wiz--is-overlay"]=h,I)),"on:click":C},wl(R,function(){var b={};return X?_.z("div",{class:_.gY("yt-description-preview-view-model-wiz__description",(b["yt-description-preview-view-model-wiz__description--medium-text"]=V,b))},_.z(_.Ab,{text:R})):_.z(rSe,{text:R,alwaysShowTruncationText:M,truncationText:g,
maxLines:d!=null?d:t,textStyle:h?"overlay":"default",accessibilityLabel:A,textSize:V?"medium":"small"})}))};
wlr=function(F,W,E,h,d){if(!((h==null?0:h.height)&&(h==null?0:h.width)))return{size:0};var V=h.width;h=h.height;if(d)return W==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||W==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"&&V>h?{size:312/QhY}:W==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"?{size:160}:{size:312};if(!(E!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"||F!==1&&F!==2||W!=="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"&&W!=="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"&&W!==
"CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"))return{allowFullWidth:!0};if(W==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||W==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"||h===V)switch(F){case 1:return{size:208};case 2:case 3:return{size:240};default:return{size:360}}if(W==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||h>V)switch(F){case 1:case 3:return{size:240*g0e};default:return{size:360*g0e}}switch(F){case 1:case 2:return{size:1/QhY*(window.innerWidth-32)};case 3:return{size:160};
default:return{size:240}}};
_.uNR=function(F){if(!("matchMedia"in window))return _.i0(Error("Nh")),function(){return!1};
var W=window.matchMedia(F);F=_.U(_.g$(W.matches,void 0,"jLJc8e"));var E=F.next().value,h=F.next().value,d=function(V){h(V.matches)};
W.addEventListener?(W.addEventListener("change",d),_.$p(function(){W.removeEventListener("change",d)})):W.addListener&&(W.addListener(d),_.$p(function(){W.removeListener(d)}));
return E};
Slr=function(F){return F==="IMAGE_BANNER_STYLE_INSET"||F==="IMAGE_BANNER_STYLE_UNKNOWN"};
plw=function(){if(!("matchMedia"in window))return _.i0(Error("Nh")),function(){return 0};
var F=PQ(function(){return window.matchMedia("(max-width: 527.9px)")}),W=PQ(function(){return window.matchMedia("(min-width: 528px) and (max-width: 839.9px)")}),E=PQ(function(){return window.matchMedia("(min-width: 840px) and (max-width: 1023.9px)")}),h=PQ(function(){return window.matchMedia("(min-width: 1024px)")}),d=_.U(_.g$(F.matches,void 0,"og9kEc")),V=d.next().value,R=d.next().value;
d=_.U(_.g$(W.matches,void 0,"ybDWCb"));var M=d.next().value,g=d.next().value;d=_.U(_.g$(E.matches,void 0,"o0Gfh"));var t=d.next().value,C=d.next().value;d=_.U(_.g$(h.matches,void 0,"yqUUgd"));var B=d.next().value,I=d.next().value,x=PQ(function(){return function(b){R(b.matches)}}),A=PQ(function(){return function(b){g(b.matches)}}),X=PQ(function(){return function(b){C(b.matches)}}),P=PQ(function(){return function(b){I(b.matches)}});
_.Xk(function(){F.addEventListener?(F.addEventListener("change",x),W.addEventListener("change",A),E.addEventListener("change",X),h.addEventListener("change",P)):F.addListener&&(F.addListener(x),W.addListener(A),E.addListener(X),h.addListener(P));_.$p(function(){F.removeEventListener?(F.removeEventListener("change",x),W.removeEventListener("change",A),E.removeEventListener("change",X),h.removeEventListener("change",P)):F.removeListener&&(F.removeListener(x),W.removeListener(A),E.removeListener(X),
h.removeListener(P))})});
return function(){return V()?1:M()?2:t()?3:B()?4:0}};
mto=function(F){var W=0;F=_.U([F.title,F.metadata,F.actions,F.description,F.attribution]);for(var E=F.next();!E.done;E=F.next())E.value&&W++;return W};
K5k=function(F){return F===1||F===2?1:0};
WuG=function(F){var W,E=((W=_.WZ().resolve(_.Fd(_.nK)))==null?0:W())&&F.data.darkThemeImage?F.data.darkThemeImage:F.data.image;W=_.z("div",{class:"ytwSearchFrictionViewModelHostImageAndMenuWrapper"},_.z("div",{class:"ytwSearchFrictionViewModelHostImageContainer"},E?_.z(_.T4,{data:E,alt:"",className:"ytwSearchFrictionViewModelHostImage"}):null),Fur(F.data.overflowMenuButton,{buttonViewModel:{className:"ytwSearchFrictionViewModelHostMenuButton"}}));E=_.z(_.Ab,{text:F.data.title,className:"ytwSearchFrictionViewModelHostTitle"});
var h=F.data;if(h.bodyText){var d=[];h=_.U(h.bodyText);for(var V=h.next();!V.done;V=h.next())d.push(_.z(_.Ab,{text:V.value,className:"ytwSearchFrictionViewModelHostBodyText"}))}else d=_.z(_.EG,null);return _.z("ytw-search-friction-view-model",{class:"ytwSearchFrictionViewModelHost"},W,E,d,Fur(F.data.actions,{buttonViewModel:{className:"ytwSearchFrictionViewModelHostButton"}}),_.z(_.Ab,{text:F.data.disclaimer,className:"ytwSearchFrictionViewModelHostDisclaimer"}),_.z(_.Ab,{text:F.data.attribution,
className:"ytwSearchFrictionViewModelHostAttribution"}))};
hkW=function(F){F=(new Eer).parse(F);return(new g8).render(F).replace(/\b(?:\d{1,2}:)?(?:\d{1,2}:)\d{1,2}\b/g,function(W){var E=W.split(":").map(Number),h=0,d=0;if(E.length===3)E=_.U(E),h=E.next().value,d=E.next().value,E=E.next().value;else if(E.length===2)E=_.U(E),d=E.next().value,E=E.next().value;else if(E.length===1)E=_.U(E).next().value;else throw Error("Oh");return'<span class="ytwMarkdownDivTimestamp" data-time="'+(h*3600+d*60+E)+'" role="button">'+W+"</span>"})};
dso=function(F){F=_.U(F.getElementsByClassName("ytwMarkdownDivTimestamp"));for(var W=F.next(),E={};!W.done;E={clickHandler$jscomp$4:void 0},W=F.next()){W=W.value;E.clickHandler$jscomp$4=function(d){d=Number(d.target.getAttribute("data-time"));if(isNaN(d))throw Error("Ph");var V=document.querySelector("video");V&&(V.currentTime=d)};
var h=function(d){return function(V){V.key!=="Enter"&&V.key!=="Space"||(0,d.clickHandler$jscomp$4)(V)}}(E);
W.setAttribute("tabindex","0");W.removeEventListener("click",E.clickHandler$jscomp$4);W.removeEventListener("keydown",h);W.addEventListener("click",E.clickHandler$jscomp$4);W.addEventListener("keydown",h)}};
NyS=function(){return _.z("overview-answer-ghost-card",{class:"ytwOverviewAnswerGhostCardHost"},_.z(r9,{percentWidth:100}),_.z(r9,{animationDelay:200}),_.z(r9,{animationDelay:400}),_.z(r9,{animationDelay:600}),_.z(r9,{animationDelay:800,percentWidth:60}),_.z("div",{class:"ytwOverviewAnswerGhostCardLineBreak"}),_.z(r9,{percentWidth:100}),_.z(r9,{animationDelay:200}),_.z(r9,{animationDelay:400}),_.z(r9,{animationDelay:600,percentWidth:50}))};
r9=function(F){return _.z("div",{class:"ytwOverviewAnswerGhostCardGhostLine",style:"max-width:"+(F.percentWidth===void 0?100:F.percentWidth)+"%"},_.z("div",{class:"ytwOverviewAnswerGhostCardSlider",style:"animation-delay:"+(F.animationDelay===void 0?0:F.animationDelay)+"ms"}))};
Vsn=function(){var F=_.U(_.g$(function(){return""},void 0,"v2wS5e")),W=F.next().value;
return[function(){return W()()},
F.next().value]};
RkG=function(F){F=F===void 0?{}:F;return{title:_.Wz(F.localizedOptInBannerTitleText===void 0?"":F.localizedOptInBannerTitleText),titleLength:19,subtitle:_.Wz(F.localizedOptInMessage===void 0?"":F.localizedOptInMessage),primaryButton:{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.Wz(_.CY("DISMISS",void 0,"Dismiss")),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED",boolValue:!0}},
loggingDirectives:{clientVeSpec:{uiType:127984}}}},secondaryButton:{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.Wz(_.CY("TURN_ON",void 0,"Turn on")),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:!0}},loggingDirectives:{clientVeSpec:{uiType:127983}}}},lightColorData:{basicColorData:{backgroundColor:0}},darkColorData:{basicColorData:{backgroundColor:4279176975}},tileImage:{thumbnails:[UsY]},
loggingDirectives:{clientVeSpec:{uiType:127982}}}};
ekb=function(F,W){F=F?Yue(F):"";W!==void 0&&isFinite(W)?W===0?W=_.CY("UPDATING",void 0,"Updating..."):(W=tlS(new Date(W),new Date),W=_.CY("UPDATED_TIME",{relative_time:W},"Updated "+W)):W="";var E="";F&&W&&(E=" \u2022 ");return _.Wz(F+E+W)};
QBI=function(F,W,E,h,d,V){W=W===void 0?0:W;var R=Msn[W],M=R.title,g=R.iconType,t=R.topButtonRenderer,C=R.sectionClientVE;R=R.videoClientVE;var B;if(W!==1||F.length){E=[];F=_.U(F);for(h=F.next();!h.done;h=F.next()){var I=h.value;if(wiW(I))E.push({downloadedVideoGridVideoRenderer:{renderer:{gridVideoRenderer:{videoId:I.videoEntity.videoId,title:E_(I.videoEntity.title),shortBylineText:E_(I.channelEntity.title),thumbnail:I.videoEntity.thumbnail,menu:{menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:I.videoEntity.videoId}}}}],
accessibility:{accessibilityData:{label:_.CY("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:R}}}}}});else if(YPr(I)){h=E;var x=h.push;var A=void 0,X=void 0,P=void 0,b=void 0,l=void 0,w=void 0,G=void 0,hr=void 0,p=I.mainPlaylistEntity.playlistId,UY=I==null?void 0:(hr=I.mainPlaylistEntity)==null?void 0:(G=hr.thumbnailStyleData)==null?void 0:(w=G[0])==null?void 0:(l=w.value)==null?void 0:(b=l.collageThumbnail)==null?void 0:b.coverThumbnail;b=uUw(p);if(!_.c("enable_offline_playlist_page")&&
(I==null?0:(P=I.mainPlaylistEntity)==null?0:P.videos)){b:{P=I==null?void 0:(X=I.mainPlaylistEntity)==null?void 0:X.videos;X=_.uC().getState().entities;if(P!=null&&P.length&&X)for(P=_.U(P),l=P.next();!l.done;l=P.next())if(l=_.Vz(l.value).entityId,(l=JSON.parse(l).videoId)&&VMo(X,l)==="TRANSFER_STATE_COMPLETE"){X=l;break b}X=""}X!==void 0&&(b=lC(_.uC().getState(),X),b=_.FD(X,p,void 0,void 0,b))}X=pyb(_.CY("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),uUw(p));I=p&&UY&&X?{playlistId:p,navigationEndpoint:b,
viewPlaylistText:X,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:UY}},title:E_(I.mainPlaylistEntity.title),shortBylineText:E_(I==null?void 0:(A=I.channelEntity)==null?void 0:A.title),menu:{menuRenderer:{items:[{menuServiceItemRenderer:{text:gee,icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:p,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.CY("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:R}}}:
void 0;x.call(h,{gridPlaylistRenderer:I})}}R={gridRenderer:{items:E}};W===1&&(B=ekb(d,V))}else if(h){var xW=_.Wz((x=E==null?void 0:E.localizedPromptMessage)!=null?x:"");R={horizontalListRenderer:{items:[{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.Wz(_.CY("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now")),isDisabled:!1,defaultServiceEndpoint:{offlineOrchestrationActionCommand:{actions:[{actionType:"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH",
entityKey:_.QHe}]}},loggingDirectives:{clientVeSpec:{uiType:129730}}}},{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.Wz(_.CY("TURN_OFF",void 0,"Turn off")),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:!1}},loggingDirectives:{clientVeSpec:{uiType:129731}}}}],loggingDirectives:{clientVeSpec:{uiType:129729}}}};B=ekb(d,V)}else xW=_.Wz(_.CY("WAITING_TO_DOWNLOAD",void 0,"Waiting to download...")),
R={};return{contents:[{shelfRenderer:{title:M,titleAnnotation:B,icon:{iconType:g},subtitle:xW,content:R,menu:{menuRenderer:{topLevelButtons:[{buttonRenderer:t}]}}}}],loggingDirectives:{clientVeSpec:{uiType:C}}}};
zkk=function(F,W,E,h,d,V,R,M){E=E===void 0?{}:E;h=h===void 0?!1:h;d=d===void 0?!1:d;V=V===void 0?!1:V;R=R===void 0?0:R;M=M===void 0?-Infinity:M;if(!W.length&&!F.length&&!h)return d?[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:nnS(E)}]}}]:[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:{title:_.Wz(_.CY("DO_NOT_HAVE_DOWNLOADS",void 0,"You do not have any downloads")),icon:{iconType:"OFFLINE_NO_CONTENT"},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:21411}}}}]}}];
var g=[];F.length&&g.push(QBI(F,0));h?g.push(QBI(W,1,E,V,R,M)):d&&g.push({contents:[{statementBannerRenderer:RkG(E)}]});(h&&W.length||F.length)&&g.push({contents:[{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.Wz(_.CY("DOWNLOADS_AVAILABILITY",void 0,"Downloads remain available as long as your device has an active internet connection for 30 days. This process happens automatically and does not re-download the video."))}}}}]});return g.map(function(t){return{itemSectionRenderer:t}})};
Tc=function(F,W){if(typeof F!=="object")return null;F=_.U(Object.entries(F));for(var E=F.next();!E.done;E=F.next()){var h=_.U(E.value);E=h.next().value;h=h.next().value;if(E===W)return E;if(h=Tc(h,W))return E+"."+h}return null};
o$=function(F){var W=F.content;return(F=F.styleRuns)&&W?{runs:F.map(function(E){var h={text:W.slice(E.startIndex,E.startIndex+E.length)};E.fontColor&&(h.textColor=E.fontColor);return h})}:{simpleText:W}};
Byr=function(F,W,E,h){var d=tsr;h&&(F.quantity=h);if(!F.quantity||!F.maxQuantity)return{};h=F.minusButton;var V=F.plusButton,R,M,g,t;return{value:F.quantity,maxValue:F.maxQuantity,onChangeCallback:function(C){d(F,C)},
minusLabel:(R=_.D(h,Cqe))==null?void 0:R.label,minimumReachedLabel:(M=_.D(h,Cqe))==null?void 0:M.limitReachedLabel,plusLabel:(g=_.D(V,Cqe))==null?void 0:g.label,maximumReachedLabel:(t=_.D(V,Cqe))==null?void 0:t.limitReachedLabel,disabled:W,onRemoveCommand:E}};
tsr=function(F,W){var E=F.quantityIncrementerEntityKey;if(E){var h={};h.quantity=W;_.rQ(_.lJ("quantityIncrementerEntity",E,h));F.onChangeCommand&&_.fK(F.onChangeCommand)}};
vew=function(F){return _.c("kevlar_comments_clone_data_killswitch")?F:_.xd.unsafeClone(F)};
Dso=function(F,W){(F=IKW(F))&&(W?coG.push({command:F,sourceData:{},commandContext:void 0}):_.WZ().resolve(_.EJ).resolveCommand(F))};
IKW=function(F){return _.D(F,_.XP)};
xse=function(){var F=window.performance.timeOrigin+window.performance.now(),W=(new _.Gc).setSeconds(F/1E9);return _.L2(W,2,_.sq(F%1E9),0)};
Sm=function(F,W){var E=_.D(_.D(F,_.XP),kbb);E&&(W&&(E.serializedAdditionalMetadata=_.FG(W)),Dso(F,!0))};
Aob=function(F){switch(F){case 2:return"MINI_APP_AD_TRIGGER_TYPE_WITHIN";case 3:return"MINI_APP_AD_TRIGGER_TYPE_REWARD";case 1:return"MINI_APP_AD_TRIGGER_TYPE_BEFORE";default:return"MINI_APP_AD_TRIGGER_TYPE_UNSPECIFIED"}};
sBo=function(){return!!_.b0("ID_TOKEN")};
$sn=function(F){return F instanceof Error&&F.cause instanceof LuS&&F.cause.rpcErrorCode!==void 0?!q3G.includes(F.cause.rpcErrorCode):!0};
Xnn=function(){return _.wo(Z4o,{authuser:""+(_.b0("SESSION_INDEX")||0)})};
pI=function(F,W,E,h){E=E===void 0?"MINI_APP_SDK_API_UNSPECIFIED":E;h=h===void 0?"":h;var d=new _.xC;E={source:"MINI_APP_ERROR_SOURCE_PLAYABLE_CONTAINER",sdkVersion:h,sdkApi:E};F instanceof Error&&(d.message=F.message,d.name=F.name,F.cause instanceof LuS&&F.cause.rpcErrorCode!==void 0&&(E.rpcErrorCode=F.cause.rpcErrorCode));var V;(V=W.onError)==null||V.call(W,{loggingError:d,metadata:E})};
Pqe=function(F,W,E,h){switch(F){case "MINI_APP_SOURCE_GAMESNACKS":return new mc(W,E,h);default:return new H4b(W,E,h)}};
JoS=function(F){switch(F){case 1:return"MINI_APP_ERROR_SOURCE_CONSOLE";case 2:return"MINI_APP_ERROR_SOURCE_UNCAUGHT";case 3:return"MINI_APP_ERROR_SOURCE_SDK";case 4:return"MINI_APP_ERROR_SOURCE_SDK_INTERNAL";case 5:return"MINI_APP_ERROR_SOURCE_SDK_SERVER";default:return"MINI_APP_ERROR_SOURCE_UNSPECIFIED"}};
aKk=function(F){switch(F){case 1:return"MINI_APP_SDK_ERROR_TYPE_API_UNAVAILABLE";case 2:return"MINI_APP_SDK_ERROR_TYPE_INVALID_PARAMS";case 3:return"MINI_APP_SDK_ERROR_TYPE_SIZE_LIMIT_EXCEEDED";default:return"MINI_APP_SDK_ERROR_TYPE_UNSPECIFIED"}};
fKw=function(F){switch(F){case 1:return"MINI_APP_SDK_API_FIRST_FRAME_READY";case 9:return"MINI_APP_SDK_API_GAME_READY";case 2:return"MINI_APP_SDK_API_LOAD_DATA";case 3:return"MINI_APP_SDK_API_SAVE_DATA";case 4:return"MINI_APP_SDK_API_SEND_SCORE";case 5:return"MINI_APP_SDK_API_ON_AUDIO_ENABLED_CHANGE";case 6:return"MINI_APP_SDK_API_ON_PAUSE";case 7:return"MINI_APP_SDK_API_ON_RESUME";case 8:return"MINI_APP_SDK_API_GET_LANGUAGE";case 10:return"MINI_APP_SDK_API_IS_AUDIO_ENABLED";case 12:return"MINI_APP_SDK_API_SHARE_INVITE_CODE";
case 13:return"MINI_APP_SDK_API_ON_GAME_DATA_AVAILABLE";default:return"MINI_APP_SDK_API_UNSPECIFIED"}};
O4n=function(){return Math.floor(Math.random()*4)+1};
b4b=function(F,W,E,h){F=_.U(Object.entries(F));for(var d=F.next(),V={};!d.done;V={message$jscomp$957:void 0},d=F.next()){var R=_.U(d.value);d=R.next().value;R=R.next().value;V.message$jscomp$957=R;W.push(setTimeout(function(M){return function(){h(!1);E(M.message$jscomp$957.text)}}(V),V.message$jscomp$957.delayMs));
Number(d)>0&&W.push(setTimeout(function(){h(!0)},V.message$jscomp$957.delayMs-400))}};
lKI=function(F,W){var E=E===void 0?Knb:E;_.c("mweb_fix_monitor_visibility_after_render")?F&&kT(function(){Eqe(F,W,E)}):kT(function(){Eqe(F,W,E)})};
yob=function(F){var W=F.data;var E=F.uniqueId;F=F.overrides;var h,d=((h=W.timedAnimationData)==null?void 0:h.animationTiming)||[];return _.z("timed-animation-button-renderer",{class:"ytwTimedAnimationButtonRendererHost"},_.z(ypR,{settings:{uniqueId:E,timings:d,experimentEnabled:d.length>0,enabled:d.length>0}},neY(W.buttonRenderer,{buttonRenderer:{buttonOverrides:F}})))};
TyY=function(F){jBr||(jBr=i4k(new _.yz(1,void 0,void 0,roI),0));var W=jBr.format(Math.floor(F));W=_.nV==="be"||_.nV==="bg"||_.nV==="es"||_.nV==="et"||_.nV==="hu"||_.nV==="ka"||_.nV==="lv"||_.nV==="pl"||_.nV==="pt-PT"||_.nV==="sq"?W.replace(new RegExp("^(\\d)"+roI.GROUP_SEP.replace(".","\\.")+"(\\d+("+roI.DECIMAL_SEP.replace(".","\\.")+"\\d+)?\\D*)$"),"$1$2"):W;return F>=1E3&&F<=9999&&W[1]==="."&&(_.nV==="sl"||_.nV==="it")?W.replace(".",""):W};
oeb=function(F,W){s6("ytd-button-renderer",{data:F,className:W?W.className:"",overrides:W==null?void 0:W.buttonOverrides},oy)};
wnW=function(F,W,E,h){if(F)return h=h||F.likeStatus,W?{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:h==="LIKE",isDisabled:!F.likesAllowed,defaultIcon:{iconType:E},defaultText:h==="LIKE"?F.likeCountWithUnlikeText:F.likeCountText,toggledText:h==="LIKE"?F.likeCountText:F.likeCountWithLikeText,defaultNavigationEndpoint:Gbr(F,"LIKE"),defaultServiceEndpoint:Y3n(F,"LIKE"),toggledServiceEndpoint:Y3n(F,"INDIFFERENT"),defaultTooltip:_.Yr(F.likeCountTooltipText),toggledTooltip:_.Yr(F.likeCountTooltipText),
targetId:F.targetId}:{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:h==="DISLIKE",isDisabled:!F.likesAllowed,defaultIcon:{iconType:E},defaultText:h==="DISLIKE"?F.dislikeCountWithUndislikeText:F.dislikeCountText,toggledText:h==="DISLIKE"?F.dislikeCountText:F.dislikeCountWithDislikeText,defaultNavigationEndpoint:Gbr(F,"DISLIKE"),defaultServiceEndpoint:Y3n(F,"DISLIKE"),toggledServiceEndpoint:Y3n(F,"INDIFFERENT"),defaultTooltip:_.Yr(F.dislikeCountTooltipText),
toggledTooltip:_.Yr(F.dislikeCountTooltipText)}};
Gbr=function(F,W){if(W==="LIKE")return F.likeCommand;if(W==="DISLIKE")return F.dislikeNavigationEndpoint};
Y3n=function(F,W){var E;return(E=F.serviceEndpoints)==null?void 0:E.find(function(h){var d;return((d=_.D(h,_.KI))==null?void 0:d.status)===W})};
uqb=function(F,W){W=W===void 0?{}:W;if(F){var E=!!W.activeState,h=W.iconSize,d=W.className,V=W["aria-hidden$"],R=W["aria-label$"],M=W.role;W=W.style$+";width: "+((W.width||h)+"px;height: ")+((W.height||h)+"px;color: ")+(W.color+";");F={icon:F};E!==void 0&&(F.active=E);h!==void 0&&(F.size=h);W!==void 0&&(F.style=W);d!==void 0&&(F.className=d);V!==void 0&&(F.ariaHidden=V);R!==void 0&&(F.ariaLabel=R);M!==void 0&&(F.role=M);s6("yt-icon",F,oy)}};
_.msG=function(F,W,E){return window.spf&&!_.c("web_disable_spfjs_client")?S3S(F,W,E):pno(F,W)};
S3S=function(F,W,E){var h=null,d=(new _.z5(function(V,R){var M={};if(W){M.method=W.method;var g=W.postParams||{};TTI(F,W)&&(g[_.b0("XSRF_FIELD_NAME")]=_.b0("XSRF_TOKEN"));M.postData=_.zC(g);W.type&&(M.type=W.type);g=W.headers}M.headers=lmk(F,g);_.c("debug_forward_web_query_parameters")&&(F=_.iXY(F,window.location.search));M.experimental_headers=M.headers;M.onError=function(t){t.err&&t.xhr&&(t.err.params={url:t.xhr.responseURL,response:t.xhr.responseText.substr(0,64)});R(t.err)};
M.onPartDone=function(t){E&&E.call(null,t.part)};
M.onDone=function(t){var C=Kuo(t.response,"xsrf_token");pW(window.location.href,F)&&C&&_.OG("XSRF_TOKEN",C);if(C=Kuo(t.response,"service_worker_killswitch"))_.OG("SERVICE_WORKER_KILLSWITCH",C),q9S();V(t.response)};
h=spf.request(F,M)})).then(FDR);
d.thenCatch(function(V){var R=V instanceof _.FR,M=V&&V.hasOwnProperty("params")&&V.params.response?V.params.response:"";V instanceof Error&&(M?R?Xeo(V):M===')]}\'\n{"reload":"now"}'?Xeo(V):(WDn(V,F,M),EMr(V,M)?_.OB(V):_.a_(V)):Xeo(V));h&&h.abort()});
return d};
FDR=function(F){if(F.type==="multipart"){var W=F.timing;F=F.parts.reduce(function(E,h){Object.assign(E,h);return E},{});
F.timing=F.timing||{};Object.assign(F.timing,W);F.type="reduced"}return F};
pno=function(F,W){W=W===void 0?{}:W;var E=null,h=new _.z5(function(d,V){W.onFinish=function(R){if(R.readyState===XMLHttpRequest.DONE)if(R.status===200){if(R.responseType!=="json"){var M=R.response;M.substring(0,5)===")]}'\n"&&(M=M.substring(5));try{var g=JSON.parse(M)}catch(t){g=t}}else g=R.response;g instanceof Error?V(g):(M=Kuo(g,"xsrf_token"),pW(window.location.href,F)&&M&&_.OG("XSRF_TOKEN",M),R=R.responseURL,window.performance&&window.performance.getEntriesByName?(M=window.performance.getEntriesByName(R).pop())?
R={responseStart:(0,_.KU)()-(M.responseEnd-M.responseStart)}:(Math.random()<.01&&(M=Error("ai"),M.params=R,_.OB(M)),R={responseStart:-1}):R={responseStart:0},g.timing=g.timing||{},Object.assign(g.timing,R),d(g))}else V(Error("$h`"+R.status))};
(E=_.Qy(F,W))||V(Error("$h`"+E.status))});
h.thenCatch(function(d){d instanceof Error&&(WDn(d,F),EMr(d)&&(d.level="WARNING"))});
_.c("cancel_pending_navs")&&h.thenCatch(function(){E.abort()});
return h};
Kuo=function(F,W){var E=F[W],h=F.parts;F.type==="multipart"&&h&&(E=(F=h.find(function(d){return W in d}))&&F[W]);
return E};
WDn=function(F,W,E){var h=F.message||"";W={original:h,url:W};if(E)if(h=h.match(/position:?\s*(\d+)/)){h=h&&Number(h[1])?Number(h[1]):0;var d=Math.max(h-25,0);W.position=h;W.response=E.substring(d,h+25)}else W.response=E.substring(0,50);_.bf(F,W);try{F.message="JSON parse error"}catch(V){}};
EMr=function(F,W){F=F.message||"";F=!!(F.indexOf("<")>=0||F.indexOf("end of ")>=0||F.indexOf("Unterminated string")>=0||F.indexOf("Unexpected EOF"));if(!F&&W)for(var E=W.length,h=!1,d=0;d<E;d++)if(h&&W[d]==="\\")d++;else if(W[d]==='"')h=!h;else if(W[d]==="<"&&!h){F=!0;break}return F};
hqe=function(){return document.documentElement.hasAttribute("dark")};
_.dkb=function(F,W){if(F!=="GFEEDBACK"&&F!=="GUIDED_HELP")_.nW(Error("bi`"+F));else{var E=_.WZ().resolve(_.Fd(_.KQ));if(E&&(E=E.getCurrentPage())&&E.getServiceTrackingParams&&(E=E.getServiceTrackingParams()))for(var h=0,d;d=E[h++];)if(d.service===F){if(F=d.params)for(E=0;h=F[E++];)W[h.key]=h.value;break}}};
_.NbR=function(F){var W=_.WS();W&&(W=W.getPlayer())&&(W.pauseVideo(),F.playback_id=W.getVideoData().cpn,F.eid=W.getVideoData().eventId,Object.assign(F,W.getFeedbackProductData()))};
VDr=function(){var F={abuseLink:"https://support.google.com/youtube/bin/answer.py?answer=140536",customZIndex:"2000000005",allowNonLoggedInFeedback:!0};_.b0("GOOGLE_FEEDBACK_FORCE_ANONYMOUS")&&(F.enableAnonymousFeedback=!0);_.b0("SESSION_INDEX")&&(F.authuser=String(_.b0("SESSION_INDEX")));_.c("enable_pageid_for_feedback")&&_.b0("DELEGATED_SESSION_ID")&&(F.pageId=String(_.b0("DELEGATED_SESSION_ID")));return F};
_.W6=function(F){_.c("enable_ypc_spinners")&&_.dW(F,"yt-open-popup-action",[{openPopupAction:{popupType:"FULLSCREEN_OVERLAY",properties:{noCancelOnOutsideClick:!0,noAutoFocus:!0},popup:{loadingRenderer:{hack:!0}}}},F])};
_.EZ=function(F){_.c("enable_ypc_spinners")&&_.dW(F,"yt-close-popup-action",["yt-loading-renderer"])};
UkI=function(F){return new Promise(function(W,E){_.Pe({verifyCommand:{recaptchaToken:F.recaptchaResponse}},{commandController:{onSuccess:function(h,d){d||E("ChallengeService did not return a response.");var V;W({challengeCompleted:(V=d.verified)!=null?V:!1})},
onServerError:function(h,d){E(d)}}})})};
RqW=function(F,W,E,h){W({recaptchaResponse:h}).then(function(d){d.challengeCompleted?_.IA()?(E(3),_.WZ().resolve(_.EJ).resolveCommand({signalAction:{signal:"RELOAD_PAGE"}},{form:{element:F}})):E(2):E(4)},function(){E(4)})};
eqS=function(F,W,E){_.lI("https://www.google.com/recaptcha/api.js?trustedtypes=true&hl="+_.b0("HL"),function(){var h;(h=window.grecaptcha)==null||h.ready(function(){var d=window.grecaptcha;d?(E(d.render(F,{sitekey:"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog",callback:RqW.bind(null,F,UkI,W)})),W(1)):W(4)})})};
MDo=function(F,W){return function(){switch(W()){case 0:return F().captchaLoadingMessage;case 1:return F().challengeReason;case 3:return F().captchaSuccessfulMessage;case 2:return F().captchaCookieSetFailureMessage;case 4:return F().captchaFailedMessage;default:return F().challengeReason}}()};
_.hU=function(){if(!gMo){var F=document.querySelector("#player.skeleton");F&&(_.Bb(F),gMo=!0)}};
_.zqY=function(){return QbY=ZyY()};
Bbe=function(){return _.e(function(F){return tDr!==void 0?F.return():_.Q(F,CFG(),0)})};
CFG=function(){return _.e(function(F){if(F.nextAddress==1)return _.Q(F,Hyk(),2);QbY=F.yieldResult;tDr=_.P0.addLowPriorityJob(CFG,5E3);_.gG(F)})};
kgR=function(F){var W=W===void 0?vMY:W;var E,h,d=(E=F.responseContext)==null?void 0:(h=E.mainAppWebResponseContext)==null?void 0:h.trackingParam;if(!d){W.increment("MISSING");var V,R,M,g,t,C;_.OB(new _.xC("282054944_a",{lXa:!!((V=F.responseContext)==null?0:(R=V.mainAppWebResponseContext)==null?0:R.loggedOut),rb0:((M=F.responseContext)==null?void 0:M.mainAppWebResponseContext)===void 0,ulb:F.responseContext===void 0,fn7:(g=F.playabilityStatus)==null?void 0:g.contextParams,hdZ:(((t=F.streamingData)==
null?void 0:t.formats)||[]).length>0,slY:(((C=F.streamingData)==null?void 0:C.adaptiveFormats)||[]).length>0,os:!!F.offlineState,cotn:F.cotn}));return 2}E="";try{E=Ilo(d)}catch(x){return W.increment("C_ERROR"),_.a_(x),2}try{var B=_.cxr(E);var I=DkG(B)}catch(x){return W.increment("P_ERROR"),_.a_(x),2}I=_.KC(I,xkb,1,_.Fg());d=[];I=_.U(I);for(B=I.next();!B.done;B=I.next())h=B.value,B=h.getPath(),E=(0,_.xd.getValueByKeys)(F,B.split(".")),E=String(E===void 0||E===null?"":E),h=h.getValue()||"",V=/[+\-\/_]/g,
E.replace(V,"")!==h.replace(V,"")&&(W.increment("MISMATCH"),_.c("ab_mis_log_err")&&(E=new _.xC("282054944_p",{t0j:B,g:String(E),e:String(h)}),_.a_(E)),["auxiliaryUi.messageRenderers.enforcementMessageViewModel.displayType"].includes(B)||(B.match(/enforcementMessageViewModel/i)?d.push(3):d.push(2)));if(d.length>0)return Math.max.apply(Math,_.x9(d));W.increment("SUCCESS");return 1};
LDG=function(F){var W=new dX;if(F.interpreterJavascript){var E=_.Dnr(F.interpreterJavascript);E=bi(E).toString();var h=new Axk;_.QJ(h,6,E);_.hy(W,1,h,Gz)}else F.interpreterUrl&&(E=_.JH(F.interpreterUrl),E=_.e9(E).toString(),h=new _.sbI,_.QJ(h,4,E),_.hy(W,2,h,Gz));F.interpreterHash&&_.NB(W,3,F.interpreterHash,Gz);F.program&&_.NB(W,4,F.program,Gz);F.globalName&&_.NB(W,5,F.globalName,Gz);F.clientExperimentsStateBlob&&_.NB(W,7,F.clientExperimentsStateBlob,Gz);return W};
VT=function(F){var W={};F=_.U(F.split("&"));for(var E=F.next();!E.done;E=F.next())E=E.value.split("="),E.length===2&&(W[E[0]]=E[1]);return W};
qAb=function(F){return Number(F.t)||7200};
ZrY=function(){if(_.c("bg_st_hr"))return"havuokmhhs-0";var F,W=((F=performance)==null?void 0:F.timeOrigin)||0;return"havuokmhhs-"+Math.floor(W)};
$kR=function(){return new Promise(function(F){var W=window.top;W.ntpevasrs!==void 0?F(new UZ(W.ntpevasrs)):(W.ntpqfbel===void 0&&(W.ntpqfbel=[]),W.ntpqfbel.push(function(E){F(new UZ(E))}))})};
ZFb=function(F){var W=F.xQu.bind(F);_.S5("yt.aba.att",W);F=F.vtH.bind(F);_.S5("yt.aba.att2",F)};
HFG=function(F){switch(_.gV(F.input)){case _.SF(XWo):var W={};return W.encryptedVideoId=F.innerTubeRequest.externalVideoId,W}return{}};
JxR=function(F){switch(_.gV(F.input)){case _.SF(XWo):if(_.c("enable_att_for_transcript_request_on_web_client"))return"ENGAGEMENT_TYPE_VIDEO_TRANSCRIPT_REQUEST";break;case _.SF(RV):if(_.c("PremiumClientSharedConfig__enable_att_for_get_premium_on_web_client")&&F.innerTubeRequest.browseId==="SPunlimited")return"ENGAGEMENT_TYPE_YPC_GET_PREMIUM_PAGE";break;case _.SF(PFe):var W,E;if(_.c("PremiumClientSharedConfig__enable_att_for_get_download_action_on_web_client")&&((E=_.D((W=F.config)==null?void 0:W.command,
frn))==null?0:E.requiresAttestationResponse))return"ENGAGEMENT_TYPE_YPC_GET_DOWNLOAD_ACTION"}return null};
_.flo=function(F){var W;if(F.playlistVideoRenderer&&((W=F.playlistVideoRenderer)==null?0:W.engagementBar))return alo(F.playlistVideoRenderer.engagementBar);if(_.D(F,eX)){var E;if(F=(E=_.D(F,eX))==null?void 0:E.engagementBar)return alo(F)}return""};
alo=function(F){if(!F)return"";F=_.D(F,_.OFn);if(F==null||!F.actions)return"";F=_.U(F.actions);for(F=F.next();!F.done;F=F.next()){F=_.D(F.value,_.bFo);var W=void 0;if((W=F)==null||!W.itemId)break;return F.itemId}return""};
_.llI=function(F){var W;if(F.playlistVideoRenderer&&((W=F.playlistVideoRenderer)==null?0:W.videoId))return F.playlistVideoRenderer.videoId;if(_.D(F,eX)){var E,h;if(F=(E=_.D(F,eX))==null?void 0:(h=E.playlistItemData)==null?void 0:h.videoId)return F}return""};
_.nMY=function(F){var W;if(F.playlistVideoRenderer&&((W=F.playlistVideoRenderer)==null?0:W.voteCount))return F.playlistVideoRenderer.voteCount;if(_.D(F,eX)){var E,h;if(F=(E=_.D(F,eX))==null?void 0:(h=E.playlistItemData)==null?void 0:h.voteCount)return F}return 0};
_.MB=function(F,W){return _.Mn(F.entities,"flowStateEntity",W)};
jbW=function(F,W,E,h){var d=void 0;F=_.U(F[W.iconName]||[]);for(var V=F.next();!V.done;V=F.next()){V=V.value;var R=W.iconSize;var M=W.iconStyle;R=!R||R===V[2];var g=yxe[V[0]];h&&h!==V[1]||!R||M&&M!==g?M=!1:d?(M=yxe[V[0]],M=!!W.iconStyle||M==="youtube_outline",R=d.version<=V[1],M=(!!W.iconSize||V[2]===24)&&M&&R):M=!0;M&&(d={name:W.iconName,style:yxe[V[0]],size:V[2],version:V[1],allowMirroring:!!V[3],url:E(W.iconName,V)})}return d};
iFk=function(F,W,E,h){return F+(""+yxe[E[0]]+((h===void 0?0:h)?"_experimental":"")+"/"+W+"/v"+E[1]+"/")+(E[2]+"px.svg")};
gX=function(F){return _.c("web_bookmark_playlist_save_icon")?"bookmark":F};
rxW=function(F,W){return iFk("https://fonts.gstatic.com/s/i/",F,W)};
Tbw=function(F,W){return iFk("https://fonts.gstatic.com/s/i/",F,W,!0)};
oMe=function(F,W){return iFk("https://www.gstatic.com/youtube/img/icons/web/",F,W)};
Ggr=function(F){var W=F.enabled;var E=F.itemPlaybackModel;var h=F.thumbnailElRef;var d=F.containerElRef;var V=F.options;var R;_.q6(function(){var M=d==null?void 0:d.value;var g,t=(g=h())==null?void 0:g.value;g=E();var C=V();if(W&&g&&M&&t&&(C==null?0:C.thumbnail)){var B,I;M={mediaRenderer:{data:g,hostElement:M},lockupElement:M,thumbnailElement:t,videoPreviewOpts:{videoPreviewData:{inlinePlaybackEndpoint:_.He((B=g.inlinePlayerData)==null?void 0:B.onVisible),navigationEndpoint:_.He((I=g.inlinePlayerData)==
null?void 0:I.onSelect),thumbnail:C.thumbnail,thumbnailOverlays:C.thumbnailOverlays||[],accessibilityText:C.accessibilityText||""},thumbnailSize:C.thumbnailSize,enableRounding:C.enableRounding}}}else M=void 0;if(B=M){var x;(x=R)==null||Qg(x);R=FY(B)}});
_.$p(function(){var M;(M=R)==null||Qg(M)})};
YAS=function(F){F=atob(F);for(var W=[],E=0;E<F.length;E++)W.push(F.charCodeAt(E));return new Blob([new Uint8Array(W)],{type:"image/png"})};
uvr=function(F,W,E,h){h=h===void 0?"INSERTION_POSITION_UNSPECIFIED":h;return F({targetId:W},function(d){var V,R=(V=d.contents)!=null?V:[];V=E!=null?E:[];var M=wWo(R);switch(h){case "INSERTION_POSITION_UNSPECIFIED":return Object.assign({},d,{contents:[].concat(_.x9(R.slice(0,M)),_.x9(V),_.x9(R.slice(M+1)))});case "INSERTION_POSITION_FIRST":return Object.assign({},d,{contents:[].concat(_.x9(V),_.x9(R))});case "INSERTION_POSITION_LAST":return Object.assign({},d,{contents:[].concat(_.x9(R),_.x9(V))});
default:return d}})};
pWr=function(F,W,E,h,d){d=d===void 0?"RELATIVE_INSERTION_POSITION_AFTER":d;return F({targetId:W},function(V){var R,M=(R=V.contents)!=null?R:[];R=SAS(M,E);if(R<0)return V;R=d==="RELATIVE_INSERTION_POSITION_BEFORE"?R:R+1;return Object.assign({},V,{contents:[].concat(_.x9(M.slice(0,R)),_.x9(h),_.x9(M.slice(R)))})})};
wWo=function(F){var W=F.findIndex(function(E){return _.D(E,_.QT)});
return W>=0?W:F.length};
SAS=function(F,W){return F.map(function(E){return _.D(E,_.mke)}).findIndex(function(E){return(E==null?void 0:E.targetId)===W})};
Fhw=function(F,W,E){return F({targetId:W},function(h){var d,V=(d=h.contents)!=null?d:[];return Object.assign({},h,{contents:KDS(V,E)})})};
KDS=function(F,W){return F.filter(function(E){var h=W.includes;a:{E=_.U(Object.values(E));for(var d=E.next();!d.done;d=E.next())if((d=d.value)&&d.targetId){E=d.targetId;break a}E=""}return!h.call(W,E||"")})};
_.WhG=function(F,W){return{engagementPanelSectionListRenderer:{panelIdentifier:F,identifier:W,visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",content:{contentLoadingRenderer:{useSpinner:!0}}}}};
ELe=function(F){return F.getOption("captions","tracklist",{includeAsr:!0})};
hlr=function(F){var W=ELe(F);if(W==null?0:W.length)return W;F.loadModule("captions");return ELe(F)};
dVY=function(F,W,E){if(F.getVideoData){var h,d=(h=hlr(F))==null?void 0:h.find(function(V){return V.languageCode===E});
h=_.eF("/youtube/app/player_caption_language_entity_key","stringEntity",2);W.dispatch(_.AG("stringEntity",h,{key:h,value:(d==null?void 0:d.displayName)||""}));d?F.setOption("captions","track",d):(F.setOption("captions","stickyLoading",{}),F.setOption("captions","track",{}))}};
NdY=function(F){return F.getOption("captions","tracklist",{includeAsr:!0})};
VoY=function(F){return F.getOption("captions","tracklist",{includeAsr:!0})};
UVn=function(F){var W=VoY(F);if(W==null?0:W.length)return W;F.loadModule("captions");return VoY(F)};
Rlr=function(F){var W=F.getOption("captions","track");if(W)return W;F.loadModule("captions");return F.getOption("captions","track")};
elo=function(F){var W=UVn(F);if(W!=null&&W.length){var E=Rlr(F);return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:_.CY("PLAYER_CAPTION_OFF",void 0,"Off")},isSelected:!(E==null?0:E.languageCode),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:""}}]}}}}}}}].concat(_.x9(W.map(function(h){return{listItemViewModel:{title:{content:h.displayName},
isSelected:h.languageCode===(E==null?void 0:E.languageCode),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:h.languageCode}}]}}}}}}}})))}}}}}}}}};
zlI=function(F){return new Promise(function(W,E){if(F===void 0)_.a_(Error("Ci"),"ERROR"),E(Error("Ci"));else{E=new _.Mor;var h=_.gLG();E=E.init();var d=_.Q5I(_.b0("YPC_MB_URL"),!0);Promise.all([E,d]).then(function(){var V=payments.business.integration.ClientTokenFactory.createClientToken(F,h);W(V)})}})};
Bdb=function(F,W,E,h,d,V,R){var M=_.G_();E=E.replace(/-/g,"+").replace(/_/g,"/");var g=_.Ij().get("hl"),t=_.zF(_.r2),C=W==null?void 0:W.element;C&&_.W6(C);toG(W,!0);_.CWr(t,E,M.resolve,function(){C&&_.EZ(C)},function(B){C&&_.EZ(C);
M.reject(B)},g,h?function(B){h&&_.T_(F,h,{backend_analytics:B})}:void 0,M.resolve,d,V,R);
return M.promise};
toG=function(F,W){!(F=F==null?void 0:F.element)||F.tagName!=="YT-BUTTON-RENDERER"&&F.tagName!=="YTD-BUTTON-RENDERER"||(F.disabled=W)};
vLY=function(){var F=_.CY("DOWNLOADED",void 0,"Downloaded");return{popup:{notificationActionRenderer:{responseText:_.Wz(F),actionButton:{buttonRenderer:O6o()}}},popupType:"TOAST"}};
IXS=function(){var F=_.CY("UNAVAILABLE_OFFLINE",void 0,"Unavailable offline");return{popup:{notificationActionRenderer:{responseText:_.Wz(F),loggingDirectives:{clientVeSpec:{uiType:135356}}}},popupType:"TOAST"}};
c0R=function(F){return{itemSectionRenderer:{contents:[{backgroundPromoRenderer:F}]}}};
tU=function(F,W,E,h){var d;return _.e(function(V){if(V.nextAddress==1)return _.Nl(V,2),_.Q(V,F,4);if(V.nextAddress!=2)return(d=_.xr(W.getState().entities).length>0)?V.return({title:_.Wz(_.CY("YOU_ARE_OFFLINE",void 0,"You are offline")),bodyText:_.Wz(_.CY("CHECK_CONNECTION_OR_DOWNLOADS",void 0,"Please check your connection or watch your downloaded videos.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:fwo()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}):
V.return(b6G(E,h));_.Ml(V);return V.return(b6G(E,h))})};
DVw=function(F,W){return W?W==="PPSV"||eRG(F,W):!1};
xVr=function(F){F.responseContext||(F.responseContext={});F.responseContext.maxAgeSeconds=0;return F};
B6=function(F){var W;return _.e(function(E){return E.nextAddress==1?_.Q(E,koI(F,"service:topbar:fallback"),2):(W=E.yieldResult)&&_.Ck(W)?E.return(xVr(_.Ck(W))):E.return()})};
A0o=function(F){var W;return _.e(function(E){return E.nextAddress==1?_.Q(E,koI(F,"service:downloads_settings:fallback"),2):(W=E.yieldResult)&&_.Ck(W)?E.return(W):E.return()})};
koI=function(F,W){var E;return _.e(function(h){if(h.nextAddress==1)return F?_.Q(h,F.get(W),2):h.return();E=h.yieldResult;return!E||!_.Ck(E)||!isNaN(Number(E.data.expireTimestampMs))&&E.isExpired()?h.return():h.return(E)})};
s5k=function(F){var W=_.WZ().resolve(v6).getState().entities;return F.playlistId?DVw(W,F.playlistId):!1};
Lhb=function(F,W){var E;if(W==null?0:(E=W.requestTemplate)==null?0:E.panelId)F.panelId=W.requestTemplate.panelId;var h;if(W==null?0:(h=W.requestTemplate)==null?0:h.params)F.params=W.requestTemplate.params};
$Vr=function(){if(qIY)return qIY();var F=!_.c("idb_response_store_auth_killswitch"),W={};qIY=me("yt-it-response-store",{objectStores:(W.ResponseStore={addedAtVersion:1},W),shared:!F,upgrade:function(E,h){h(1)&&(E=nM(E,"ResponseStore",{keyPath:["key","clientName"]}),yA(E,"byExpiration","expireTimestampMs"),yA(E,"byInterface","clientName"))},
version:1});return qIY()};
ZES=function(F){return _.TC($Vr(),F)};
HEo=function(F,W){var E;return _.e(function(h){return h.nextAddress==1?_.Q(h,_.pU(),2):(E=h.yieldResult)?h.return(new XdW(F,W,E)):h.return()})};
PWS=function(F){var W=Object.keys(F)[0];if(W)return F.screenExit&&(W=W+";"+F.screenExit.screen),W};
J0n=function(F){var W=new Map;F=_.U(F);for(var E=F.next();!E.done;E=F.next())E=E.value,E!=null&&(W.has(E.taskType)||W.set(E.taskType,[]),W.get(E.taskType).push(E));return W};
aXn=function(F){return!isNaN(F)&&F>0};
fXW=function(F){F=[].concat(_.x9(F)).sort(function(E,h){return E-h});
var W=Math.floor(F.length/2);return F.length%2?F[W]:(F[W-1]+F[W])/2};
lXI=function(F,W){F=F===void 0?zKR:F;W=W===void 0?{}:W;_.S5("yt.logging.errors.log",_.a_);gTn();OEI(IAe(),W);window.onerror=F;bES=Quo;window.addEventListener("unhandledrejection",function(E){if(E.reason instanceof Error){var h=E.reason;_.bf(h,{source:"unhandledrejection"});h.name==="AbortError"&&(h.level="WARNING")}Quo(E.reason);E.preventDefault()})};
_.nLr=function(F){return F.a11y.ephemeralAction||null};
_.y0e=function(F){var W,E,h,d,V,R,M,g,t,C,B,I,x,A,X,P,b,l,w,G,hr,p,UY,xW,qw,Lb,jk,Jr,nb,bo,uo,b_,BO,dc,VM,Z_,MU,Ef,kR,Rn;return _.e(function(se){if(se.nextAddress==1)return _.Q(se,_.Bz(F,{mode:"readonly",enableRetries:!0},function(l_){return vz(l_,"playbackData").then(function(j$){var HO=j$.map(function(wI){return wI.transfer}).filter(function(wI){return!!wI}),YB=j$.map(function(wI){return wI.offlineVideoPolicy}).filter(function(wI){return!!wI}),GT=j$.filter(function(wI){return!!wI.key}).map(function(wI){return _.eF(_.Vz(wI.key).entityId,
"downloadStatusEntity")});
HO=vz(l_,"transfer",HO);YB=vz(l_,"offlineVideoPolicy",YB);GT=vz(l_,"downloadStatusEntity",GT);var vO=HO.then(function(wI){wI=wI.reduce(function(Aa,MF){(MF==null?0:MF.offlineVideoStreams)&&Aa.push.apply(Aa,_.x9(MF.offlineVideoStreams));return Aa},[]).filter(function(Aa){return!!Aa});
return vz(l_,"offlineVideoStreams",wI)});
return ld.all([HO,YB,vO,GT]).then(function(wI){var Aa=_.U(wI);wI=Aa.next().value;var MF=Aa.next().value;var LT=Aa.next().value;Aa=Aa.next().value;return[j$,wI,MF,LT,Aa]})})}),2);
if(se.nextAddress!=3)return W=se.yieldResult,_.Q(se,_.Bz(F,{mode:"readonly",enableRetries:!0},function(l_){return vz(l_,"mainDownloadsListEntity").then(function(j$){var HO,YB;return(YB=(HO=j$[0])==null?void 0:HO.downloads)!=null?YB:[]})}),3);
E=se.yieldResult;h=_.U(W);d=h.next().value;V=h.next().value;R=h.next().value;M=h.next().value;g=h.next().value;t=d;C=V;B=R;I=M;x=g;A={};X={};P={};b={};l={};w=[];G=_.U(C);for(hr=G.next();!hr.done;hr=G.next())(p=hr.value)&&(A[p.key]=p);UY=_.U(B);for(xW=UY.next();!xW.done;xW=UY.next())(qw=xW.value)&&(X[qw.key]=qw);Lb=_.U(x);for(jk=Lb.next();!jk.done;jk=Lb.next())(Jr=jk.value)&&(P[Jr.key]=Jr);nb=_.U(I);for(bo=nb.next();!bo.done;bo=nb.next())(uo=bo.value)&&(b[uo.key]=uo);b_=_.U(E);for(BO=b_.next();!BO.done;BO=
b_.next())dc=BO.value,VM=void 0,l[(VM=dc.videoItem)!=null?VM:""]=!0,dc.videoItem&&(MU=Z_=void 0,Ef=(MU=(Z_=_.Vz(dc.videoItem))==null?void 0:Z_.entityId)!=null?MU:"",w.push({externalVideoId:Ef}));kR=t.filter(function(l_){if(!l_||!l_.key||!l_.offlineVideoPolicy)return!1;l_=_.Vz(l_.key).entityId;l_=_.eF(l_,"downloadStatusEntity");var j$;return!(l_&&((j$=P[l_])==null?void 0:j$.downloadState)==="DOWNLOAD_STATE_USER_DELETED")});
Rn=kR.map(function(l_){var j$=A[l_.transfer],HO=[];if(j$==null?0:j$.offlineVideoStreams)for(var YB=_.U(j$.offlineVideoStreams),GT=YB.next();!GT.done;GT=YB.next())(GT=b[GT.value])&&HO.push(GT);YB=X[l_.offlineVideoPolicy];GT=l;var vO=l_==null?void 0:l_.playerResponseTimestamp,wI=_.Vz(YB.key).entityId;l_=_.eF(wI,"mainVideoEntity");if(YB.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"){var Aa="OFFLINE_VIDEO_STATE_DISABLED";YB.expirationTimestamp&&Number(YB.expirationTimestamp)<Date.now()/1E3&&(Aa="OFFLINE_VIDEO_STATE_EXPIRED")}else if(YB.action===
"OFFLINE_VIDEO_POLICY_ACTION_DOWNLOAD_FAILED")Aa="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";else{switch(j$==null?void 0:j$.transferState){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":Aa="OFFLINE_VIDEO_STATE_PENDING";break;case "TRANSFER_STATE_TRANSFERRING":Aa="OFFLINE_VIDEO_STATE_TRANSFERRING";break;case "TRANSFER_STATE_PAUSED_BY_USER":Aa="OFFLINE_VIDEO_STATE_PAUSED_TRANSFER";break;case "TRANSFER_STATE_FAILED":Aa="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";break;case "TRANSFER_STATE_COMPLETE":Aa="OFFLINE_VIDEO_STATE_PLAYABLE";
break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":Aa="OFFLINE_VIDEO_STATE_STREAMS_OUT_OF_DATE";break;default:Aa="OFFLINE_VIDEO_STATE_UNKNOWN"}if(Aa==="OFFLINE_VIDEO_STATE_OFFLINE_FAILED")switch(j$==null?void 0:j$.failureReason){case "TRANSFER_FAILURE_REASON_EXTERNAL_FILESYSTEM_WRITE":case "TRANSFER_FAILURE_REASON_FILESYSTEM_WRITE":Aa="OFFLINE_VIDEO_STATE_OUT_OF_STORAGE_ERROR";break;case "TRANSFER_FAILURE_REASON_STREAM_MISSING":Aa="OFFLINE_VIDEO_STATE_STREAMS_MISSING";break;case "TRANSFER_FAILURE_REASON_NETWORK":case "TRANSFER_FAILURE_REASON_NETWORK_LOST":Aa=
"OFFLINE_VIDEO_STATE_NETWORK_ERROR"}}wI={id:wI,videoState:Aa};if(j$==null?0:j$.cotn)wI.cotn=j$.cotn;if(j$==null?0:j$.maximumDownloadQuality)wI.selectedVideoQuality=j$==null?void 0:j$.maximumDownloadQuality;if(j$==null?0:j$.lastProgressTimeMs)wI.lastProgressTimeMs=j$.lastProgressTimeMs;vO&&(wI.playerResponseSavedTimeMs=String(Number(vO)*1E3));j$=String;vO=0;HO=_.U(HO);for(Aa=HO.next();!Aa.done;Aa=HO.next())if(Aa=Aa.value,Aa.streamsProgress){Aa=_.U(Aa.streamsProgress);for(var MF=Aa.next();!MF.done;MF=
Aa.next()){var LT=void 0;vO+=Number((LT=MF.value.numBytesDownloaded)!=null?LT:0)}}wI.downloadedBytes=j$(vO);wI.selectedOfflineMode=GT[l_]?"OFFLINE_MODE_TYPE_AUTO_OFFLINE":"OFFLINE_NOW";YB.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"&&(wI.offlinePlaybackDisabledReason=YB.offlinePlaybackDisabledReason);return wI});
return se.return({offlineVideos:Rn,additionalOfflineClientState:{mainAppAdditionalOfflineClientState:{smartDownloadVideos:w}}})})};
j5w=function(){var F;return _.e(function(W){return W.nextAddress==1?_.Q(W,_.zr(),2):(F=W.yieldResult)?W.return(_.y0e(F)):W.return({state:"PES Unavailable"})})};
Tdo=function(){var F,W,E,h;return _.e(function(d){if(d.nextAddress==1)return _.Q(d,_.zr(),2);if(d.nextAddress!=3)return(F=d.yieldResult)?_.Q(d,iEn(F),3):d.return({state:"PES Unavailable"});W=d.yieldResult;E={};h=W.reduce(function(V,R){V[R.key]=R;return V},E);
return d.return(r0W(h))})};
r0W=function(F){for(var W={},E=[],h=_.U(Object.keys(F)),d=h.next();!d.done;d=h.next()){var V=d.value;d=F[V];var R=void 0;if(((R=d)==null?void 0:R.entityType)==="mainVideoEntity"){delete F[V];var M=d.data;d={};if(M){var g=void 0;R=(g=M.videoId)!=null?g:"vid-"+V;V=F;d.video=M;delete d.video.formattedDescription;delete d.video.thumbnail;M.owner&&(g=V[M.owner],g==null?0:g.data)&&(delete V[g.key],d.video.owner=g.data,delete d.video.owner.avatar);if(M=M.downloadState)if(g=V[M],g==null?0:g.data)if(delete V[M],
M=g.data.playbackData)if(g=V[M],g!=null&&g.data){delete V[M];M=g.data;delete M.playerResponseJson;d.playbackData=M;if(M.transfer&&(g=V[M.transfer],g==null?0:g.data)){delete V[g.key];var t=g.data;d.transfer=t;g=[];t=_.U(t.offlineVideoStreams||[]);for(var C=t.next();!C.done;C=t.next())if(C=V[C.value])delete V[C.key],g.push(C.data);g&&(d.streams=g)}(M=M.offlineVideoPolicy)&&(M=V[M])&&M.data&&(delete V[M.key],d.offlineVideoPolicy=M.data)}W[R]=d}}else d&&d.entityType==="offlineOrchestrationActionWrapperEntity"&&
d.data&&(delete F[d.key],R=d.data,V=void 0,E.push({id:R.rootActionId,type:((V=R.actionProto)==null?void 0:V.actionType)||"",entity:d}))}W.wrapperEntities=E;Object.keys(F).length>0&&(W.unknownKeys=F);return W};
oLn=function(){var F,W,E,h,d,V,R,M,g;return _.e(function(t){if(t.nextAddress==1)return F=!!(new _.bY("")).expiringStorage_,h=!!((W=_.EY.crypto)==null?0:(E=W.subtle)==null?0:E.importKey),d=!!_.EY.BroadcastChannel,V=!!_.EY.navigator.locks,_.Q(t,T8e(),2);R=t.yieldResult;M=F&&h&&d&&V&&R;g={isSupported:M};if(M)return t.return(g);g.missingBrowserFeatures=[];R||g.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_INDEXED_DB");F||g.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_LOCALSTORAGE");
h||g.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_CRYPTO_EXTENSION");d||g.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_BROADCAST_CHANNEL");V||g.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_WEB_LOCKS_API");return t.return(g)})};
Gor=function(){var F;return!((F=IV?IV:null)==null||!F.window)};
_.wdS=function(F){if(_.HG()&&_.gWb("Chromium")>=120){var W=_.YIS().mediaSession;try{W.setActionHandler("enterpictureinpicture",function(){F()})}catch(E){}}};
u1I=function(F){for(var W=[],E=_.U(document.styleSheets),h=E.next(),d={};!h.done;d={node$jscomp$725:void 0},h=E.next())d.node$jscomp$725=h.value.ownerNode,d.node$jscomp$725&&(d.node$jscomp$725 instanceof HTMLStyleElement||d.node$jscomp$725 instanceof HTMLLinkElement)&&W.push(new Promise(function(V){return function(R){var M=V.node$jscomp$725.cloneNode(!0);M.onload=function(){R()};
M.onerror=function(){_.OB(Error("ej"));R()};
F.document.head.appendChild(M)}}(d)));
return Promise.all(W)};
NPW=function(F){var W=[_.SJ(SIG),_.SJ(pdY),_.SJ(mVY)];KhW(window.document.documentElement,F.document.documentElement,[_.SJ(Fte),_.SJ(WtI),_.SJ(E1o),_.SJ(hGY),_.SJ(dNe)]);KhW(window.document.body,F.document.body,W)};
KhW=function(F,W,E){F=_.U(F.attributes);for(var h=F.next();!h.done;h=F.next())if(h=h.value)try{_.j9(E,W,h.name,h.value)}catch(d){}};
UNe=function(F,W){F=new _.c6(F.document.documentElement);F.start(VLr,W);return F};
RGk=function(F){var W=F.document.documentElement;W.addEventListener("click",function(E){GQR(W,E)});
W.addEventListener("touchstart",function(E){p9o(E)});
W.addEventListener("mousedown",function(E){p9o(E)})};
MLR=function(F,W,E,h){h=h===void 0?!1:h;W=new eGo(W||F,E||F);return{x:F.x+((h===void 0?0:h)?W.lengthX*-1:W.lengthX)*.2,y:F.y+((h===void 0?0:h)?W.lengthY*-1:W.lengthY)*.2}};
g1S=function(F){if(!F)return!1;var W=F.status==="OK"||F.status==="LIVE_STREAM_OFFLINE",E,h,d,V=(d=(E=F.errorScreen)==null?void 0:E.playerLegacyDesktopYpcTrailerRenderer)!=null?d:(h=F.errorScreen)==null?void 0:h.ypcTrailerRenderer;return!!W||!!V};
_.Qww=function(F,W){if(!F)return!1;var E,h=(E=F.errorScreen)==null?void 0:E.playerLegacyDesktopYpcOfferRenderer,d;W=!!(W==null?0:(d=W.playerOverlayRenderer)==null?0:d.gatedActionsOverlayRenderer);return!!g1S(F)||!!h||!!W};
zGG=function(F){return F.includes("gclid")||F.includes("gad_source")};
BPY=function(F){var W=[],E=0;return{push:function(h){W[E]=h;E=(E+1)%F},
iterate:function(){return function d(){var V,R,M,g;return _.tLo(d,function(t){switch(t.nextAddress){case 1:_.U0(t,2),V=W.length,R=0;case 4:if(!(R<V)){t.jumpTo(2);break}M=E+R;g=_.C8R;return _.Q(t,W[M%V],7);case 7:g(t.yieldResult);R++;t.jumpTo(4);break;case 2:_.V0(t),_.eJ(t,0)}})}()}}};
IFY=function(){var F=_.dV("web_max_tracing_events",0);_.c("web_enable_tracing")&&F>0&&v1Y(F)};
v1Y=function(F){var W=BPY(F);i$Y({sample:function(E,h){return E==="event"?!cKr.has(h==null?void 0:h.type):!1},
spanProcessors:[{onSpanStart:function(E){W.push(E)}}]});
Amb.subscribe("handleError",function(E){try{Object.assign(E.params,{breadcrumbs:JSON.stringify(Array.from(W.iterate()))})}catch(h){_.a_(h,"ERROR")}})};
DNS=function(F){return new Promise(function(W){window.setTimeout(W,F)})};
xNb=function(F){var W={bicf:function(V){F.ong=V},
blc:function(){return F.getLatestChallengeResponse()},
bcr:function(V){F.vbD.push(V)}},E=window.top;
E.ntpevasrs=W;if(E.ntpqfbel!==void 0)for(var h=_.U(E.ntpqfbel),d=h.next();!d.done;d=h.next())d=d.value,d(W);E.ntpqfbel=void 0};
kEr=function(F){return _.e(function(W){if(W.nextAddress==1)return _.Nl(W,2),_.Q(W,F.tym(),4);if(W.nextAddress!=2)return _.id(W,0);_.Ml(W);_.gG(W)})};
AKI=function(F){var W,E;(W=F.ytcsi)==null||(E=W.tick)==null||E.call(W,"pot_ist")};
sww=function(F){if(F instanceof Error){var W=_.ju("yt.logging.errors.log");W&&W(F,"WARNING")}};
LtY=function(F){try{var W=JSON.parse(F);if(W.bgChallenge)return W}catch(E){}};
$No=function(){var F=window,W={networkStatusManagerPromise:_.WZ().resolve(new qRI(_.TX)),initialChallengeSli:_.c("wpo_att_sli")?new _.bPY("SLI_NAME_YOUTUBE_WEB_INITIAL_ATTESTATION_CHALLENGE","",3E3,"TIMEOUT"):void 0};F=F===void 0?window:F;var E=F.ytAtR,h;W==null||(h=W.initialChallengeSli)==null||_.DB(h);if(E){if(E=LtY(E)){var d;W==null||(d=W.initialChallengeSli)==null||_.xP(d,"SUCCESS");q1k(E,W)}F.ytAtR=void 0}else F.ytAtRC=function(V){if(V=LtY(V)){var R;W==null||(R=W.initialChallengeSli)==null||
_.xP(R,"SUCCESS");q1k(V,W);F.ytAtRC=void 0}}};
HmY=function(){if(Zme)return Zme;try{var F=_.Cr("IFRAME");_.Hp(F,_.mv(X8W));F.sandbox.add("allow-same-origin");F.style.display="none";document.body.appendChild(F);return Zme=F}catch(W){F=new _.xC("Failed to create sandbox iframe"),_.a_(F)}};
P8Y=function(F){var W,E;return(E=F==null?void 0:(W=F.contentWindow)==null?void 0:W.fetch)!=null?E:window.fetch};
JKo=function(F){var W,E;return(E=F==null?void 0:(W=F.contentWindow)==null?void 0:W.JSON.parse)!=null?E:JSON.parse};
aFR=function(F){var W,E;return(E=F==null?void 0:(W=F.contentWindow)==null?void 0:W.Request)!=null?E:window.Request};
bme=function(){if(Ofb()==="hidden")var F="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND";else Ofb()==="visible"&&(F="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND",fFw=null);F&&OmW(F)};
OmW=function(F){if(F==="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND"||F==="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND"){if(lFo===F)return;lFo=F}var W=9E4+Math.random()*2E3;if(F!=="FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"||!(_.hV()>W)&&Ofb()==="visible"){W=-1;fFw&&(W=Math.round((0,_.KU)()-fFw));var E=String;var h=_.ju("_fact",window);h=h==null||h==-1?-1:Math.max(Date.now()-h,0);_.Pc("foregroundHeartbeat",{firstActivityMs:E(h),clientDocumentNonce:Bvb,index:String(n1G),lastEventDeltaMs:String(W),trigger:F});
_.S5("_fact",-1,window);n1G++;fFw=(0,_.KU)()}};
_.yKn=function(){try{return!!self.sessionStorage}catch(F){return!1}};
jwo=function(){var F=navigator;return new Promise(function(W,E){var h;(h=F.webkitTemporaryStorage)!=null&&h.queryUsageAndQuota?F.webkitTemporaryStorage.queryUsageAndQuota(function(d,V){W({usage:d,quota:V})},function(d){E(d)}):E(Error("nj"))})};
imI=function(F,W){var E={errorSeverity:W.errorSeverity.toString(),wizFeatureFlags:Object.entries(W.featureFlags).join("\n")};Miw(W,E);W=W.errorSeverity;W===3?_.a_(F,"ERROR",void 0,void 0,void 0,E):W===2&&_.a_(F,"WARNING",void 0,void 0,void 0,E);_.c("cow_if_errors_in_popup")&&W===3&&F.message.indexOf("<If>")!==-1&&window.alert(F.message)};
rKI=function(F,W,E){F.componentType!==kp&&E instanceof HTMLElement&&W&&!_.c("cow_logging_in_component_wrapper")&&w7I(E,W,!0)};
TPk=function(F,W,E){W=W===void 0?{}:W;var h,d=(h=_.D(F.commandMetadata,_.m1))==null?void 0:h.url;h=W.form||{};!E||h.element||h.skipDefaultElement||(W.form=W.form||{},W.form.element=E);if(d&&d!=="/service_ajax")return{type:0,command:F,form:W.form};if(_.c("kevlar_service_command_check")){if(_.rY(_.WZ().resolve(_.sh),F))return Object.assign({},{type:1,command:F},W)}else{var V;if((V=_.D(F.commandMetadata,_.m1))==null?0:V.apiUrl)return Object.assign({},{type:1,command:F},W)}return{type:2,command:F,form:W.form}};
o1o=function(F){if(F.form){var W=F.form,E=Object.assign({},W);W=W.element;E=(delete E.element,E);if(W)return[_.UT(W,[F.command,E,F.commandController])]}return[]};
GEW=function(F){if(F.form){var W=F.form,E=Object.assign({},W);W=W.element;E=(delete E.element,E);W&&_.Rj(W,[F.command],W,E)}};
w8n=function(F,W,E){var h=new Y1k(F,W),d=new kP(F,W,E);F={"/youtubei/v1/browse":new AU(F,W,E),"/youtubei/v1/player":h,"/youtubei/v1/navigation/resolve_url":new sZ,"/youtubei/v1/next":d,"/youtubei/v1/guide":new Lk(E),"/youtubei/v1/search":new qB(F,W,E),"/youtubei/v1/reel/reel_item_watch":new $P(F,W,E),"/youtubei/v1/get_watch":new ZB(h,d)};F["/youtubei/v1/account/account_menu"]=new H6;F["/youtubei/v1/notification/get_notification_menu"]=new P6;return F};
aV=function(){var F=_.WZ().resolve(JU);return Promise.resolve(u$I(F,_.EY.location.href,{},document.referrer,function(){return 0},function(){return!1}))};
S1r=function(F){return F&&(F=_.fk(_.CyG(F)))?(new URLSearchParams(F)).get("service"):null};
lv=function(F,W){_.Ed(_.OZ(),function(){_.P5("adl")});
_.WZ().resolve(p8Y)(W);F=F.root;F.loadData&&F.loadData(W);(W==null?0:W.response)?_.xP(yhr(),"SUCCESS"):_.OB(new _.xC("Lifecycle: No response in data",_.l0("IS_SHELL_LOAD"),W?W.page:"NO_PAGE",W?W.endpoint:"NO_ENDPOINT"));F.polymerController.$["page-manager"].lazyPrepareCriticalPages((W==null?void 0:W.page)||"",W.endpoint);var E,h;((h=_.D(W==null?void 0:(E=W.endpoint)==null?void 0:E.commandMetadata,_.m1))==null?0:h.webPageType)&&_.uC().dispatch(_.bv(_.D(W.endpoint.commandMetadata,_.m1).webPageType))};
mNI=function(){var F,W;return _.e(function(E){switch(E.nextAddress){case 1:F=window;if(!F.getDataPromise){E.jumpTo(2);break}_.Nl(E,3);return _.Q(E,F.getDataPromise(),5);case 5:return E.return(E.yieldResult);case 3:return _.Ml(E),_.Q(E,aV(),6);case 6:return E.return(E.yieldResult);case 2:if(F.getInitialData)return W=F.getInitialData(),F.getInitialData=void 0,E.return(W);throw Error("pj`"+_.EY.location.href);}})};
Far=function(){_.OG("CSI_SERVICE_NAME","youtube");_.$b({loadType:"cold"});_.c("kevlar_log_lcp")&&Kto(function(F){_.P5("lcp",F.value)})};
WaY=function(){var F=_.lg(document.location.href,"enable");F&&F.indexOf("scraper")>-1&&_.OG("ADD_SCRAPER_ATTRIBUTES",!0)};
Vwr=function(F){var W=F.root;F=[Evn,hhR,_.nk];_.c("web_feedback_endpoint_autolog_allowlist_killswitch")&&F.push(_.yT,d8r);NAW(function(E,h){return TPk(E,h,W)},function(E){if(!E.command)return[];
var h;((h=E.form)==null?0:h.element)?E.form.element.dispatchEvent(new CustomEvent("yt-navigate",{bubbles:!0,composed:!0,detail:Object.assign({},E.form,{endpoint:E.command})})):W.handleNavigate(E);return[]},F);
_.WZ().addProvider({provide:_.EJ,useValue:_.Ru.instance})};
Rhr=function(){var F={},W={},E;for(E in U8G){var h=_.U(_.g$(U8G[E],void 0,"NBH2te"));F[E]=h.next().value;W[E]=h.next().value}return[F,function(d){for(var V in d){var R=void 0;(R=W[V])==null||R(d[V])}}]};
_.gvY=function(F,W){var E=_.xd.getValueByKeys(F,"contents","twoColumnWatchNextResults","results","results","contents"),h=_.xd.getValueByKeys(F,"contents","twoColumnWatchNextResults","playlist","playlist")||null,d=null,V=null;if(h)d=_.xd.getValueByKeys(h,"titleText"),V=_.xd.unsafeClone(_.xd.getValueByKeys(h,"longBylineText")),E="",V&&(E=_.Yr(V)),V=_.Gr(E);else if(E){E=_.U(E);for(var R=E.next();!R.done;R=E.next())R=R.value,R.videoPrimaryInfoRenderer&&(d=_.xd.getValueByKeys.apply(_.xd,[R].concat(_.x9(ehw)))),
R.videoSecondaryInfoRenderer&&(V=_.xd.getValueByKeys.apply(_.xd,[R].concat(_.x9(Mwe))))}else _.i0(Error("uj"));var M;F.currentVideoEndpoint?M=F.currentVideoEndpoint:_.i0(Error("vj"));var g;W&&(g=_.xd.getValueByKeys(W,"playabilityStatus","miniplayer","miniplayerRenderer"));F={miniplayerTitle:d,miniplayerSubtitle:V,watchEndpoint:M,playlistData:h};g&&(F.miniplayerRenderer=g);return F};
Qao=function(F){if(F)return _.qr(F)};
_.zhr=function(){return{isFullscreen:function(){throw Error("wj");},
toggleFullscreen:function(){throw Error("xj");},
exitFullscreen:function(){throw Error("yj");},
isAutonavEnabled:function(){throw Error("zj");},
setAutonavEnabled:function(){throw Error("Aj");},
isAutoplaySetExplicitly:function(){throw Error("Bj");}}};
twr=function(F){return F.videoDuration?F.numTaps>1&&F.tapDirection!==0?_.jX(F.draggedTime/F.videoDuration,0,1):_.jX((F.playedTime||0)/F.videoDuration,0,1):0};
CPY=function(F){return F.videoDuration?F.isDragging||F.numTaps>1&&F.tapDirection!==0?_.jX(F.draggedTime/F.videoDuration,0,1):_.jX((F.playedTime||0)/F.videoDuration,0,1):0};
vvr=function(F){var W,E,h;return _.D(F==null?void 0:(W=F.markersMap)==null?void 0:(E=W.find(function(d){return d.key==="HEATSEEKER"}))==null?void 0:(h=E.value)==null?void 0:h.heatmap,BAk)};
I7W=function(F){var W,E;return(E=(W=vvr(F))==null?void 0:W.heatMarkersDecorations)!=null?E:[]};
cYw=function(F){if(_.c("mweb_supported_chapters_killswitch"))return!0;var W;return!!(F==null?0:(W=F.markersMap)==null?0:W.find(function(E){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(E.key)}))};
_.D8W=function(F){var W=Object,E=W.assign,h;F={isDragging:!1,draggedTime:0,isHovering:!1,hoveredTime:0,percentLoaded:0,playerState:(h=F==null?void 0:F.getPlayerState())!=null?h:-1,videoDuration:0,playedTime:0,wasPlaying:!1};return E.call(W,{},{isLive:!1,isPlaylist:!1,playerType:1,isProbablyAScreenreaderUser:!1,videoId:void 0,captionsEnabled:!1,captionsAvailable:!1,volume:0,volumeMuted:!0,draggedYDistance:0,isLooping:!1,isLongPressSpeedup:!1},{enabledFullscreenControlsGesture:!1,expandedFullscreenControls:!1,
isFullscreen:!1,numTaps:0,tapDirection:0},{autonavCanceled:!1,autonavEnabled:!1,autonavPaused:!1,autonavCountdown:0,showAutonavMessage:!1},F,{playbackRate:1},{controlsVisible:!1,shouldWaitToHideControls:!1,isOverlayHidden:!1},{fineScrubbingActiveState:"off",storyboardInterval:0,filmStripXDistance:0,fineScrubbingEnteredTime:0})};
x8o=function(F){return function(W){var E=F(),h,d=(h=E.playerApi)==null?void 0:h.getPlayerState();W&&W!==E.playerState&&(W===1||W===2)&&E.setState({playerState:d})}};
AYo=function(F){return function(W){var E=F(),h=E.playerApi;h&&(W==null?void 0:W.type)==="newdata"&&(kwY&&(clearTimeout(kwY),kwY=void 0),_.c("web_shorts_use_progress_state_for_gapless")?(W=h==null?void 0:h.getProgressState(W==null?void 0:W.playertype),W=W.seekableEnd-W.seekableStart):W=h==null?void 0:h.getDuration(W==null?void 0:W.playertype),E.setState({playedTime:0,videoDuration:W}))}};
sar=function(F){return function(W){var E=F(),h=E.playerApi;if(h){var d=h.getPresentingPlayerType();_.c("web_shorts_use_progress_state_for_gapless")?(h=h.getProgressState(d),h=h.seekableEnd-h.seekableStart):h=h.getDuration(d);E.setState({playedTime:W,videoDuration:h})}}};
$8o=function(F){var W=F.element;var E=F.veType;var h=F.storedVisualElement===void 0?null:F.storedVisualElement;var d=F.elementIndex===void 0?0:F.elementIndex;F=F.clientYouTubeData;var V=_.JR();V!==Lao&&(q5S.clear(),Lao=V);if(W.visualElement&&q5S.has(W.visualElement))return null;if(h&&q5S.has(h))return W.visualElement=h,null;E=_.Qd(_.z4(),{veType:E,elementIndex:d,clientYouTubeData:F});if(!E)return null;W.visualElement=E;q5S.add(E);return E};
_.iv=function(F,W,E,h){E=E===void 0?null:E;h=h===void 0?Knb:h;var d=d===void 0?null:d;kT(function(){if(W){E instanceof Function&&(E=E());var V=$8o({element:W,veType:F,storedVisualElement:E,clientYouTubeData:void 0});V&&(Eqe(W,d),h(V))}})};
XoR=function(F){_.iv(112394,F,function(){return ZtG},function(W){ZtG=W})};
JYR=function(F,W){if(!F)return[];var E,h,d;F=((E=F.markersMap)==null?void 0:(h=E.find(function(V){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(V.key)}))==null?void 0:(d=h.value)==null?void 0:d.chapters)||[];
!Htk(F)||(W==null?0:W.ignoreStub)||(F=[PPS()].concat(_.x9(F)));return F};
PPS=function(){return{chapterRenderer:{timeRangeStartMillis:0}}};
Htk=function(F){if(F.length===0)return!1;var W;return((W=_.D(F[0],rX))==null?void 0:W.timeRangeStartMillis)!==0};
TF=function(F){return F?F.timeRangeStartMillis||0:0};
f7o=function(F,W){if(F.isDragging&&W)return F=a7b(F,W),F===-1?PPS():JYR(W)[F]};
a7b=function(F,W){return F.isDragging&&W?JYR(W,{ignoreStub:!0}).findIndex(function(E,h,d){E=Otw(F);return btY(E,d,h).scrubberHovering}):-1};
Otw=function(F){return Object.assign({},F,{videoDuration:F.videoDuration*1E3,playedTime:F.playedTime*1E3,draggedTime:F.draggedTime*1E3})};
btY=function(F,W,E){var h=TF(_.D(W[E],rX));W=TF(_.D(W[E+1],rX))||F.videoDuration;E=F.isDragging;var d;if(d=F.isDragging)d=F.draggedTime,d=d!==null&&d>=h&&d<W;var V=F.playedTime;return V!==null&&V>=h&&V<W?{videoPosition:"active",isScrubbing:E,scrubberHovering:d}:F.playedTime<h?{videoPosition:"pending",isScrubbing:E,scrubberHovering:d}:{videoPosition:"seen",isScrubbing:E,scrubberHovering:d}};
l7I=function(F,W){return F.videoPosition==="seen"||(W===void 0?0:W)>0};
nvW=function(F,W,E){W=F/W.storyboardInterval;var h=JYR(E);if(!h.length)return-W*72;E=0;h=_.U(h);for(var d=h.next();!d.done;d=h.next())if(TF(_.D(d.value,rX))/1E3<F)E++;else break;return-(W*72)-E*56};
yYS=function(F){return F?F.width/F.columns:0};
jaS=function(F){return F.isHovering?F.hoveredTime:F.draggedTime};
ito=function(F,W){F=F.draggedTime*1E3;return F>=W.visibleTimeRangeStartMillis&&F<=W.visibleTimeRangeEndMillis};
_.rYI=function(F){if(F===void 0||Number.isNaN(F))return"--:--";var W=Math.abs(Math.floor(F)),E=Math.floor(W/86400),h=Math.floor(W%86400/3600),d=Math.floor(W%3600/60);W=Math.floor(W%60);var V="";E>0&&(V+=E+":",h<10&&(V+="0"));if(E>0||h>0)V+=h+":",d<10&&(V+="0");V+=d+":";W<10&&(V+="0");V+=W;return F>=0?V:"-"+V};
TAS=function(F,W){return function(){var E=jaS(F());var h=W();var d=F().playerApi;if(d&&d.getNumberOfStoryboardLevels()!==0){var V=d.getStoryboardFrameIndex(E,1);V!==-1?h=d.getStoryboardFrame(V,1):(E=d.getStoryboardFrameIndex(E,0),d=d.getStoryboardFrame(E,0),h&&d&&(d.height*=3,d.width*=3),h=d)}else h=null;if(!h)return null;W()&&(h.width=90*h.columns,h.height=160*h.rows);return h}};
_.oV=function(F){if(!F||F.getVideoData)return F};
ovb=function(){var F;return{playerApi:(F=_.Qa())!=null?F:void 0}};
_.S5W=function(F){function W(p){p!==0||B?p>50&&(B||!x)?(I(!1),A(!0)):p<=50&&(B||x)&&(I(!1),A(!1)):I(!0)}
function E(){var p;return _.e(function(UY){if(UY.nextAddress==1)return _.Q(UY,_.gk(),2);(p=UY.yieldResult)&&(p.isMuted()?I(!0):I(!1));_.gG(UY)})}
var h=F.noSlider;var d=F.orientation;F=_.uf();var V=_.uf(),R=_.Sh(),M=_.U(BS(!1)),g=M.next().value,t=M.next().value,C=_.U(BS(!1));M=C.next().value;C=C.next().value;var B=M,I=C;C=_.U(BS(!0));M=C.next().value;C=C.next().value;var x=M,A=C;M=d==="vertical_down";_.Xk(function(){function p(){t(!0)}
function UY(){t(!1)}
h?(E(),W(B?0:100)):R&&R.value&&(R.value.addEventListener("focus",p),R.value.addEventListener("focusout",UY),Gwk(R.value).then(function(){W(Number(Y5G(R.value)))}));
V&&V.value&&(V.value.addEventListener("focus",p),V.value.addEventListener("focusout",UY));return function(){var xW;R==null||(xW=R.value)==null||xW.removeEventListener("focus",p);var qw;R==null||(qw=R.value)==null||qw.removeEventListener("focusout",UY);V.value.removeEventListener("focus",p);V.value.removeEventListener("focusout",UY)}});
var X=_.tb(function(){if(R&&R.value){var p=Number(Y5G(R.value));woI(p);R.value.style.setProperty("--gradient-percent",p+"%");W(p)}return!1});
C={};C=(C.ytdDesktopShortsVolumeControlsHost=!0,C.ytdDesktopShortsVolumeControlsHostVertical=M,C.ytdDesktopShortsVolumeControlsHostExpanded=g,C);var P={},b=(P.ytdDesktopShortsVolumeControlsSliderContainer=!0,P.ytdDesktopShortsVolumeControlsSliderContainerExpanded=g,P.ytdDesktopShortsVolumeControlsSliderContainerVertical=M,P.ytdDesktopShortsVolumeControlsSliderContainerVerticalDown=d==="vertical_down",P.ytdDesktopShortsVolumeControlsSliderContainerVerticalExpanded=g&&M,P);d={};var l=(d.ytdDesktopShortsVolumeControlsBackgroundScrim=
!0,d.ytdDesktopShortsVolumeControlsBackgroundScrimExpanded=h?!1:g,d);g={};g=(g.ytdDesktopShortsVolumeControlsMuteIconButtonContainer=M,g);d=_.tb(function(){t(!0)});
P=_.tb(function(){t(!1)});
var w=_.tb(function(){if(R&&R.value||h)uTr(R.value,B,h),I(!B);return!1}),G=_.c("web_shorts_keyboard_enable_mute_shortcut")?B?_.CY("PLAYER_LABEL_UNMUTE",void 0,"Unmute (m)"):_.CY("PLAYER_LABEL_MUTE",void 0,"Mute (m)"):B?_.CY("UNMUTE_VOLUME",void 0,"Unmute"):_.CY("MUTE_VOLUME",void 0,"Mute"),hr={sources:[{clientResource:{imageName:B?"VOLUME_OFF_FILLED":x?"VOLUME_UP_FILLED":"VOLUME_DOWN_FILLED"}}]};
return _.z("desktop-shorts-volume-controls",{"on:pointerleave":P,class:_.gY(C),el:F},wl(!M,function(){return _.z("div",{class:_.gY(l)})}),_.z("div",{class:_.gY(g)},_.z("button",{"aria-label":G,
title:G,el:V,"on:click":w,"on:pointerenter":d,class:"ytdDesktopShortsVolumeControlsMuteIconButton"},hr?_.z(_.T4,{data:hr,alt:G,className:"ytdDesktopShortsVolumeControlsMuteIcon"}):null)),wl(!h,function(){return _.z("div",{class:_.gY(b)},_.z("input",{"aria-label":_.CY("VOLUME"),title:_.CY("VOLUME"),el:R,"on:input":X,type:"range",class:"ytdDesktopShortsVolumeControlsNativeSlider",id:"volume-input"}))}))};
Gwk=function(F){var W,E;return _.e(function(h){if(h.nextAddress==1)return _.Q(h,_.gk(),2);W=h.yieldResult;E=50;W&&(E=W.getVolume(),W.isMuted()?pow(F,0):pow(F,E));_.gG(h)})};
woI=function(F){var W;_.e(function(E){if(E.nextAddress==1)return _.Q(E,_.gk(),2);if(W=E.yieldResult)W.unMute(!0),W.setVolume(F,!0);_.gG(E)})};
pow=function(F,W){F&&(F.value=""+W,F.style.setProperty("--gradient-percent",W+"%"))};
Y5G=function(F){var W;return(W=F==null?void 0:F.value)!=null?W:0};
uTr=function(F,W,E){var h;_.e(function(d){if(d.nextAddress==1)return _.Q(d,_.gk(),2);h=d.yieldResult;W&&h?(h.unMute(!0),!E&&F&&pow(F,h.getVolume())):h&&(h.mute(!0),!E&&F&&pow(F,0));_.gG(d)})};
m8b=function(){var F;_.e(function(W){if(W.nextAddress==1)return _.Q(W,_.gk(),2);F=W.yieldResult;if(!F)return W.return();F.isMuted()?F.unMute(!0):F.mute(!0);_.gG(W)})};
KaW=function(F){var W=_.WZ().resolve(_.GF).getPlayerElement();W&&F&&(F===1?W.pause():W.play())};
F$o=function(F){_.Nc(F,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_PREV"])};
W$o=function(F){_.Nc(F,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_NEXT"])};
hen=function(F){return _.qO(F.document.body,function(){return _.z(ENo,null)})};
dKR=function(){var F=window.performance.getEntriesByType("navigation");return F?F.map(function(W){return W.type}).includes("reload"):!1};
QNn=function(){YP(YP(YP(YP(YP(YP(YP(_.WZ().resolve(_.wX),_.NKo),_.Vpn),_.UKo),_.Ree),_.een),_.Mpn),_.gNI)};
zeo=function(F,W){W=W===void 0?!1:W;var E,h,d,V;return _.e(function(R){if(R.nextAddress==1)return W||!_.c("kevlar_shorts_seedless_retry_initial_load")||(E=window,h=!(!E.getDataPromise&&!E.getInitialData),h)?_.Q(R,mNI(),2):(setTimeout(zeo.bind(window,F,!0),1E3),R.return());if(R.nextAddress!=3)return d=R.yieldResult,_.Q(R,tpR(d),3);V=R.yieldResult;lv(F,V);_.gG(R)})};
tpR=function(F){var W;if((W=F.response)==null||!W.replacementEndpoint)return _.e7(F);W=_.WZ().resolve(JU);F=F.response;_.D(F.replacementEndpoint,_.DP)&&F.sequenceContinuation&&(_.D(F.replacementEndpoint,_.DP).sequenceParams=F.sequenceContinuation);return uv(W,F.replacementEndpoint,{},_.EY.location.href,"shorts",function(){},function(){return!1})};
C7r=function(F){var W=_.uC(),E,h=_.D((E=F.response)==null?void 0:E.frameworkUpdates,wY),d;E=_.D((d=F.playerResponse)==null?void 0:d.frameworkUpdates,wY);var V;F=_.D((V=F.reelWatchSequenceResponse)==null?void 0:V.frameworkUpdates,wY);h&&_.CV(h,W);E&&_.CV(E,W);F&&_.CV(F,W)};
BKn=function(F){var W;_.c("enable_redirect_linking_for_desktop_web_client")&&((W=window.location.hash)==null?0:W.includes("redirect_state"))&&F.url&&(F.url=F.url.toString()+window.location.hash)};
cZY=function(F){var W=_.WZ(),E=W.resolve(JU);W=W.resolve(_.vNb);F.endpoint&&(E=IkW(E,F.endpoint),E.content&&F.response&&_.SX(W,F.response,E.content),E.player&&F.playerResponse&&_.SX(W,F.playerResponse,E.player),E.reelSequence&&F.reelWatchSequenceResponse&&_.SX(W,F.reelWatchSequenceResponse,E.reelSequence))};
pk=function(F,W){C7r(W);var E;(W==null?0:W.url)&&((E=window.location.hash)==null?0:E.includes("redirect_state"))&&(BKn(W),(E=S1r(W.url))&&_.dW(F.root,"yt-initialize-third-party",[E,W]));cZY(W);E=_.WZ();var h=E.resolve(DKo);W.playerResponse&&E.resolve(xKS).handleResponse(W.playerResponse);if(W.playerResponse){E=void 0;if(_.c("ab_v_vid_sig")&&W.endpoint){var d,V=(d=_.D(W.endpoint,_.GM))!=null?d:_.D(W.endpoint,_.DP);V&&(E=V.videoId)}k7I(h,W.playerResponse,E)}W.playerResponse&&EgR(W.playerResponse)&&
_.c("web_enable_ab_rsp_cl")?Bbe().then(function(){AZG(h,W.playerResponse);lv(F,W)}):lv(F,W)};
L$W=function(F){if(F=F.root.data){var W=_.WZ().resolve(sNG);F.endpoint&&(F.response&&W.handleResponse(F.response,void 0,document.querySelector("ytd-app")),F.playerResponse&&W.handleResponse(F.playerResponse),F.reelWatchSequenceResponse&&W.handleResponse(F.reelWatchSequenceResponse))}};
q7R=function(F){var W,E,h,d,V,R;return _.e(function(M){switch(M.nextAddress){case 1:W=window;if(!W.getDataPromise){M.jumpTo(2);break}_.Nl(M,3);return _.Q(M,W.getDataPromise(),5);case 5:E=M.yieldResult;pk(F,E);_.id(M,4);break;case 3:return _.Ml(M),_.Q(M,aV(),6);case 6:h=M.yieldResult,lv(F,h);case 4:return M.return();case 2:if(!_.c("sw_nav_preload_pbj")){M.jumpTo(7);break}W.fetchInitialData=function(){var g;return _.e(function(t){if(t.nextAddress==1)return _.Q(t,aV(),2);g=t.yieldResult;lv(F,g);_.gG(t)})};
if(W.getInitialData){W.loadInitialData=function(g){pk(F,g)};
d=W.getInitialData();W.getInitialData=void 0;pk(F,d);M.jumpTo(8);break}W.fetchInitialData=void 0;return _.Q(M,aV(),9);case 9:V=M.yieldResult,lv(F,V);case 8:return M.return();case 7:W.getInitialData?(R=W.getInitialData(),W.getInitialData=void 0,pk(F,R)):W.loadInitialData=function(g){pk(F,g)},_.gG(M)}})};
$KW=function(F){var W=0;return function(){return W<F.length?{done:!1,value:F[W++]}:{done:!0}}};
Z9Y=typeof Object.defineProperties=="function"?Object.defineProperty:function(F,W,E){if(F==Array.prototype||F==Object.prototype)return F;F[W]=E.value;return F};
Xxb=function(F){F=["object"==typeof globalThis&&globalThis,F,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var W=0;W<F.length;++W){var E=F[W];if(E&&E.Math==Math)return E}throw Error("a");};
_.Sn=Xxb(this);mE=function(F,W){if(W)a:{var E=_.Sn;F=F.split(".");for(var h=0;h<F.length-1;h++){var d=F[h];if(!(d in E))break a;E=E[d]}F=F[F.length-1];h=E[F];W=W(h);W!=h&&W!=null&&Z9Y(E,F,{configurable:!0,writable:!0,value:W})}};
mE("Symbol",function(F){if(F)return F;var W=function(V,R){this.$jscomp$symbol$id_=V;Z9Y(this,"description",{configurable:!0,writable:!0,value:R})};
W.prototype.toString=function(){return this.$jscomp$symbol$id_};
var E="jscomp_symbol_"+(Math.random()*1E9>>>0)+"_",h=0,d=function(V){if(this instanceof d)throw new TypeError("b");return new W(E+(V||"")+"_"+h++,V)};
return d});
mE("Symbol.iterator",function(F){if(F)return F;F=Symbol("c");for(var W="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),E=0;E<W.length;E++){var h=_.Sn[W[E]];typeof h==="function"&&typeof h.prototype[F]!="function"&&Z9Y(h.prototype,F,{configurable:!0,writable:!0,value:function(){return H9n($KW(this))}})}return F});
mE("Symbol.asyncIterator",function(F){return F?F:Symbol("d")});
var H9n=function(F){F={next:F};F[Symbol.iterator]=function(){return this};
return F},P7Y=typeof Object.create=="function"?Object.create:function(F){var W=function(){};
W.prototype=F;return new W},JZI=function(){function F(){function E(){}
new E;Reflect.construct(E,[],function(){});
return new E instanceof E}
if(typeof Reflect!="undefined"&&Reflect.construct){if(F())return Reflect.construct;var W=Reflect.construct;return function(E,h,d){E=W(E,h);d&&Reflect.setPrototypeOf(E,d.prototype);return E}}return function(E,h,d){d===void 0&&(d=E);
d=P7Y(d.prototype||Object.prototype);return Function.prototype.apply.call(E,d,h)||d}}(),akI;
if(typeof Object.setPrototypeOf=="function")akI=Object.setPrototypeOf;else{var fkY;a:{var O9o={a:!0},b9W={};try{b9W.__proto__=O9o;fkY=b9W.a;break a}catch(F){}fkY=!1}akI=fkY?function(F,W){F.__proto__=W;if(F.__proto__!==W)throw new TypeError("e`"+F);return F}:null}Kk=akI;
_.k=function(F,W){F.prototype=P7Y(W.prototype);F.prototype.constructor=F;if(Kk)Kk(F,W);else for(var E in W)if(E!="prototype")if(Object.defineProperties){var h=Object.getOwnPropertyDescriptor(W,E);h&&Object.defineProperty(F,E,h)}else F[E]=W[E];F.superClass_=W.prototype};
_.U=function(F){var W=typeof Symbol!="undefined"&&Symbol.iterator&&F[Symbol.iterator];if(W)return W.call(F);if(typeof F.length=="number")return{next:$KW(F)};throw Error("f`"+String(F));};
oT=function(F){for(var W,E=[];!(W=F.next()).done;)E.push(W.value);return E};
_.x9=function(F){return F instanceof Array?F:oT(_.U(F))};
_.Fc=function(F){return lkW(F,F)};
lkW=function(F,W){F.raw=W;Object.freeze&&(Object.freeze(F),Object.freeze(W));return F};
WY=function(F,W){return Object.prototype.hasOwnProperty.call(F,W)};
nNW=typeof Object.assign=="function"?Object.assign:function(F,W){for(var E=1;E<arguments.length;E++){var h=arguments[E];if(h)for(var d in h)WY(h,d)&&(F[d]=h[d])}return F};
mE("Object.assign",function(F){return F||nNW});
var yZe=function(){this.isRunning_=!1;this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null},jNo=function(F){if(F.isRunning_)throw new TypeError("h");
F.isRunning_=!0};
yZe.prototype.JSC$6636_next_=function(F){this.yieldResult=F};
var i9o=function(F,W){F.abruptCompletion_={exception:W,isException:!0};F.nextAddress=F.catchAddress_||F.finallyAddress_};
yZe.prototype.return=function(F){this.abruptCompletion_={return:F};this.nextAddress=this.finallyAddress_};
_.Q=function(F,W,E){F.nextAddress=E;return{value:W}};
yZe.prototype.jumpTo=function(F){this.nextAddress=F};
_.gG=function(F){F.nextAddress=0};
_.Nl=function(F,W,E){F.catchAddress_=W;E!=void 0&&(F.finallyAddress_=E)};
_.U0=function(F,W){F.catchAddress_=0;F.finallyAddress_=W||0};
_.id=function(F,W,E){F.nextAddress=W;F.catchAddress_=E||0};
_.Ml=function(F,W){F.catchAddress_=W||0;W=F.abruptCompletion_.exception;F.abruptCompletion_=null;return W};
_.V0=function(F,W,E,h){h?F.finallyContexts_[h]=F.abruptCompletion_:F.finallyContexts_=[F.abruptCompletion_];F.catchAddress_=W||0;F.finallyAddress_=E||0};
_.eJ=function(F,W,E){E=F.finallyContexts_.splice(E||0)[0];(E=F.abruptCompletion_=F.abruptCompletion_||E)?E.isException?F.nextAddress=F.catchAddress_||F.finallyAddress_:E.jumpTo!=void 0&&F.finallyAddress_<E.jumpTo?(F.nextAddress=E.jumpTo,F.abruptCompletion_=null):F.nextAddress=F.finallyAddress_:F.nextAddress=W};
rZe=function(F){this.JSC$6641_context_=new yZe;this.program_=F};
oNw=function(F,W){jNo(F.JSC$6641_context_);var E=F.JSC$6641_context_.yieldAllIterator_;if(E)return TKY(F,"return"in E?E["return"]:function(h){return{value:h,done:!0}},W,F.JSC$6641_context_.return);
F.JSC$6641_context_.return(W);return EV(F)};
TKY=function(F,W,E,h){try{var d=W.call(F.JSC$6641_context_.yieldAllIterator_,E);if(!(d instanceof Object))throw new TypeError("g`"+d);if(!d.done)return F.JSC$6641_context_.isRunning_=!1,d;var V=d.value}catch(R){return F.JSC$6641_context_.yieldAllIterator_=null,i9o(F.JSC$6641_context_,R),EV(F)}F.JSC$6641_context_.yieldAllIterator_=null;h.call(F.JSC$6641_context_,V);return EV(F)};
EV=function(F){for(;F.JSC$6641_context_.nextAddress;)try{var W=F.program_(F.JSC$6641_context_);if(W)return F.JSC$6641_context_.isRunning_=!1,{value:W.value,done:!1}}catch(E){F.JSC$6641_context_.yieldResult=void 0,i9o(F.JSC$6641_context_,E)}F.JSC$6641_context_.isRunning_=!1;if(F.JSC$6641_context_.abruptCompletion_){W=F.JSC$6641_context_.abruptCompletion_;F.JSC$6641_context_.abruptCompletion_=null;if(W.isException)throw W.exception;return{value:W.return,done:!0}}return{value:void 0,done:!0}};
G7k=function(F){this.next=function(W){jNo(F.JSC$6641_context_);F.JSC$6641_context_.yieldAllIterator_?W=TKY(F,F.JSC$6641_context_.yieldAllIterator_.next,W,F.JSC$6641_context_.JSC$6636_next_):(F.JSC$6641_context_.JSC$6636_next_(W),W=EV(F));return W};
this.throw=function(W){jNo(F.JSC$6641_context_);F.JSC$6641_context_.yieldAllIterator_?W=TKY(F,F.JSC$6641_context_.yieldAllIterator_["throw"],W,F.JSC$6641_context_.JSC$6636_next_):(i9o(F.JSC$6641_context_,W),W=EV(F));return W};
this.return=function(W){return oNw(F,W)};
this[Symbol.iterator]=function(){return this}};
_.tLo=function(F,W){W=new G7k(new rZe(W));Kk&&F.prototype&&Kk(W,F.prototype);return W};
Y7w=function(F){function W(h){return F.next(h)}
function E(h){return F.throw(h)}
return new Promise(function(h,d){function V(R){R.done?h(R.value):Promise.resolve(R.value).then(W,E).then(V,d)}
V(F.next())})};
_.e=function(F){return Y7w(new G7k(new rZe(F)))};
oRb=function(F){this[Symbol.asyncIterator]=function(){return this};
this[Symbol.iterator]=function(){return F};
this.next=function(W){return Promise.resolve(F.next(W))};
this["throw"]=function(W){return new Promise(function(E,h){var d=F["throw"];d!==void 0?E(d.call(F,W)):(E=F["return"],E!==void 0&&E.call(F),h(new TypeError("i")))})};
F["return"]!==void 0&&(this["return"]=function(W){return Promise.resolve(F["return"](W))})};
_.Dd=function(){for(var F=Number(this),W=[],E=F;E<arguments.length;E++)W[E-F]=arguments[E];return W};
_.C8R=function(F){return F};
mE("globalThis",function(F){return F||_.Sn});
mE("Reflect",function(F){return F?F:{}});
mE("Reflect.construct",function(){return JZI});
mE("Reflect.setPrototypeOf",function(F){return F?F:Kk?function(W,E){try{return Kk(W,E),!0}catch(h){return!1}}:null});
mE("Promise",function(F){function W(){this.batch_=null}
function E(R){return R instanceof d?R:new d(function(M){M(R)})}
if(F&&(typeof _.Sn.PromiseRejectionEvent!=="undefined"||!_.Sn.Promise||_.Sn.Promise.toString().indexOf("[native code]")===-1))return F;W.prototype.asyncExecute=function(R){if(this.batch_==null){this.batch_=[];var M=this;this.asyncExecuteFunction(function(){M.executeBatch_()})}this.batch_.push(R)};
var h=_.Sn.setTimeout;W.prototype.asyncExecuteFunction=function(R){h(R,0)};
W.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var R=this.batch_;this.batch_=[];for(var M=0;M<R.length;++M){var g=R[M];R[M]=null;try{g()}catch(t){this.asyncThrow_(t)}}}this.batch_=null};
W.prototype.asyncThrow_=function(R){this.asyncExecuteFunction(function(){throw R;})};
var d=function(R){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];this.isRejectionHandled_=!1;var M=this.createResolveAndReject_();try{R(M.resolve,M.reject)}catch(g){M.reject(g)}};
d.prototype.createResolveAndReject_=function(){function R(t){return function(C){g||(g=!0,t.call(M,C))}}
var M=this,g=!1;return{resolve:R(this.resolveTo_),reject:R(this.JSC$6657_reject_)}};
d.prototype.resolveTo_=function(R){if(R===this)this.JSC$6657_reject_(new TypeError("j"));else if(R instanceof d)this.settleSameAsPromise_(R);else{a:switch(typeof R){case "object":var M=R!=null;break a;case "function":M=!0;break a;default:M=!1}M?this.resolveToNonPromiseObj_(R):this.fulfill_(R)}};
d.prototype.resolveToNonPromiseObj_=function(R){var M=void 0;try{M=R.then}catch(g){this.JSC$6657_reject_(g);return}typeof M=="function"?this.settleSameAsThenable_(M,R):this.fulfill_(R)};
d.prototype.JSC$6657_reject_=function(R){this.settle_(2,R)};
d.prototype.fulfill_=function(R){this.settle_(1,R)};
d.prototype.settle_=function(R,M){if(this.state_!=0)throw Error("k`"+R+"`"+M+"`"+this.state_);this.state_=R;this.result_=M;this.state_===2&&this.scheduleUnhandledRejectionCheck_();this.executeOnSettledCallbacks_()};
d.prototype.scheduleUnhandledRejectionCheck_=function(){var R=this;h(function(){if(R.notifyUnhandledRejection_()){var M=_.Sn.console;typeof M!=="undefined"&&M.error(R.result_)}},1)};
d.prototype.notifyUnhandledRejection_=function(){if(this.isRejectionHandled_)return!1;var R=_.Sn.CustomEvent,M=_.Sn.Event,g=_.Sn.dispatchEvent;if(typeof g==="undefined")return!0;typeof R==="function"?R=new R("unhandledrejection",{cancelable:!0}):typeof M==="function"?R=new M("unhandledrejection",{cancelable:!0}):(R=_.Sn.document.createEvent("CustomEvent"),R.initCustomEvent("unhandledrejection",!1,!0,R));R.promise=this;R.reason=this.result_;return g(R)};
d.prototype.executeOnSettledCallbacks_=function(){if(this.onSettledCallbacks_!=null){for(var R=0;R<this.onSettledCallbacks_.length;++R)V.asyncExecute(this.onSettledCallbacks_[R]);this.onSettledCallbacks_=null}};
var V=new W;d.prototype.settleSameAsPromise_=function(R){var M=this.createResolveAndReject_();R.callWhenSettled_(M.resolve,M.reject)};
d.prototype.settleSameAsThenable_=function(R,M){var g=this.createResolveAndReject_();try{R.call(M,g.resolve,g.reject)}catch(t){g.reject(t)}};
d.prototype.then=function(R,M){function g(I,x){return typeof I=="function"?function(A){try{t(I(A))}catch(X){C(X)}}:x}
var t,C,B=new d(function(I,x){t=I;C=x});
this.callWhenSettled_(g(R,t),g(M,C));return B};
d.prototype.catch=function(R){return this.then(void 0,R)};
d.prototype.callWhenSettled_=function(R,M){function g(){switch(t.state_){case 1:R(t.result_);break;case 2:M(t.result_);break;default:throw Error("l`"+t.state_);}}
var t=this;this.onSettledCallbacks_==null?V.asyncExecute(g):this.onSettledCallbacks_.push(g);this.isRejectionHandled_=!0};
d.resolve=E;d.reject=function(R){return new d(function(M,g){g(R)})};
d.race=function(R){return new d(function(M,g){for(var t=_.U(R),C=t.next();!C.done;C=t.next())E(C.value).callWhenSettled_(M,g)})};
d.all=function(R){var M=_.U(R),g=M.next();return g.done?E([]):new d(function(t,C){function B(A){return function(X){I[A]=X;x--;x==0&&t(I)}}
var I=[],x=0;do I.push(void 0),x++,E(g.value).callWhenSettled_(B(I.length-1),C),g=M.next();while(!g.done)})};
return d});
var hf=function(F,W,E){if(F==null)throw new TypeError("m`"+E);if(W instanceof RegExp)throw new TypeError("n`"+E);return F+""};
mE("String.prototype.startsWith",function(F){return F?F:function(W,E){var h=hf(this,W,"startsWith"),d=h.length,V=W.length;E=Math.max(0,Math.min(E|0,h.length));for(var R=0;R<V&&E<d;)if(h[E++]!=W[R++])return!1;return R>=V}});
mE("Object.setPrototypeOf",function(F){return F||Kk});
mE("Symbol.dispose",function(F){return F?F:Symbol("o")});
mE("SuppressedError",function(F){function W(E,h,d){if(!(this instanceof W))return new W(E,h,d);d=Error(d);"stack"in d&&(this.stack=d.stack);this.message=d.message;this.error=E;this.suppressed=h}
if(F)return F;_.k(W,Error);W.prototype.name="SuppressedError";return W});
var wxG=function(F,W,E){F instanceof String&&(F=String(F));for(var h=F.length,d=0;d<h;d++){var V=F[d];if(W.call(E,V,d,F))return{i:d,v:V}}return{i:-1,v:void 0}};
mE("Array.prototype.find",function(F){return F?F:function(W,E){return wxG(this,W,E).v}});
mE("WeakMap",function(F){function W(){}
function E(g){var t=typeof g;return t==="object"&&g!==null||t==="function"}
function h(g){if(!WY(g,V)){var t=new W;Z9Y(g,V,{value:t})}}
function d(g){var t=Object[g];t&&(Object[g]=function(C){if(C instanceof W)return C;Object.isExtensible(C)&&h(C);return t(C)})}
if(function(){if(!F||!Object.seal)return!1;try{var g=Object.seal({}),t=Object.seal({}),C=new F([[g,2],[t,3]]);if(C.get(g)!=2||C.get(t)!=3)return!1;C.delete(g);C.set(t,4);return!C.has(g)&&C.get(t)==4}catch(B){return!1}}())return F;
var V="$jscomp_hidden_"+Math.random();d("freeze");d("preventExtensions");d("seal");var R=0,M=function(g){this.JSC$6664_id_=(R+=Math.random()+1).toString();if(g){g=_.U(g);for(var t;!(t=g.next()).done;)t=t.value,this.set(t[0],t[1])}};
M.prototype.set=function(g,t){if(!E(g))throw Error("p");h(g);if(!WY(g,V))throw Error("q`"+g);g[V][this.JSC$6664_id_]=t;return this};
M.prototype.get=function(g){return E(g)&&WY(g,V)?g[V][this.JSC$6664_id_]:void 0};
M.prototype.has=function(g){return E(g)&&WY(g,V)&&WY(g[V],this.JSC$6664_id_)};
M.prototype.delete=function(g){return E(g)&&WY(g,V)&&WY(g[V],this.JSC$6664_id_)?delete g[V][this.JSC$6664_id_]:!1};
return M});
mE("Map",function(F){if(function(){if(!F||typeof F!="function"||!F.prototype.entries||typeof Object.seal!="function")return!1;try{var M=Object.seal({x:4}),g=new F(_.U([[M,"s"]]));if(g.get(M)!="s"||g.size!=1||g.get({x:4})||g.set({x:4},"t")!=g||g.size!=2)return!1;var t=g.entries(),C=t.next();if(C.done||C.value[0]!=M||C.value[1]!="s")return!1;C=t.next();return C.done||C.value[0].x!=4||C.value[1]!="t"||!t.next().done?!1:!0}catch(B){return!1}}())return F;
var W=new WeakMap,E=function(M){this[0]={};this[1]=V();this.size=0;if(M){M=_.U(M);for(var g;!(g=M.next()).done;)g=g.value,this.set(g[0],g[1])}};
E.prototype.set=function(M,g){M=M===0?0:M;var t=h(this,M);t.list||(t.list=this[0][t.id]=[]);t.entry?t.entry.value=g:(t.entry={next:this[1],previous:this[1].previous,head:this[1],key:M,value:g},t.list.push(t.entry),this[1].previous.next=t.entry,this[1].previous=t.entry,this.size++);return this};
E.prototype.delete=function(M){M=h(this,M);return M.entry&&M.list?(M.list.splice(M.index,1),M.list.length||delete this[0][M.id],M.entry.previous.next=M.entry.next,M.entry.next.previous=M.entry.previous,M.entry.head=null,this.size--,!0):!1};
E.prototype.clear=function(){this[0]={};this[1]=this[1].previous=V();this.size=0};
E.prototype.has=function(M){return!!h(this,M).entry};
E.prototype.get=function(M){return(M=h(this,M).entry)&&M.value};
E.prototype.entries=function(){return d(this,function(M){return[M.key,M.value]})};
E.prototype.keys=function(){return d(this,function(M){return M.key})};
E.prototype.values=function(){return d(this,function(M){return M.value})};
E.prototype.forEach=function(M,g){for(var t=this.entries(),C;!(C=t.next()).done;)C=C.value,M.call(g,C[1],C[0],this)};
E.prototype[Symbol.iterator]=E.prototype.entries;var h=function(M,g){var t=g&&typeof g;t=="object"||t=="function"?W.has(g)?t=W.get(g):(t=""+ ++R,W.set(g,t)):t="p_"+g;var C=M[0][t];if(C&&WY(M[0],t))for(M=0;M<C.length;M++){var B=C[M];if(g!==g&&B.key!==B.key||g===B.key)return{id:t,list:C,index:M,entry:B}}return{id:t,list:C,index:-1,entry:void 0}},d=function(M,g){var t=M[1];
return H9n(function(){if(t){for(;t.head!=M[1];)t=t.previous;for(;t.next!=t.head;)return t=t.next,{done:!1,value:g(t)};t=null}return{done:!0,value:void 0}})},V=function(){var M={};
return M.previous=M.next=M.head=M},R=0;
return E});
mE("Set",function(F){if(function(){if(!F||typeof F!="function"||!F.prototype.entries||typeof Object.seal!="function")return!1;try{var E=Object.seal({x:4}),h=new F(_.U([E]));if(!h.has(E)||h.size!=1||h.add(E)!=h||h.size!=1||h.add({x:4})!=h||h.size!=2)return!1;var d=h.entries(),V=d.next();if(V.done||V.value[0]!=E||V.value[1]!=E)return!1;V=d.next();return V.done||V.value[0]==E||V.value[0].x!=4||V.value[1]!=V.value[0]?!1:d.next().done}catch(R){return!1}}())return F;
var W=function(E){this.JSC$6678_map_=new Map;if(E){E=_.U(E);for(var h;!(h=E.next()).done;)this.add(h.value)}this.size=this.JSC$6678_map_.size};
W.prototype.add=function(E){E=E===0?0:E;this.JSC$6678_map_.set(E,E);this.size=this.JSC$6678_map_.size;return this};
W.prototype.delete=function(E){E=this.JSC$6678_map_.delete(E);this.size=this.JSC$6678_map_.size;return E};
W.prototype.clear=function(){this.JSC$6678_map_.clear();this.size=0};
W.prototype.has=function(E){return this.JSC$6678_map_.has(E)};
W.prototype.entries=function(){return this.JSC$6678_map_.entries()};
W.prototype.values=function(){return this.JSC$6678_map_.values()};
W.prototype.keys=W.prototype.values;W.prototype[Symbol.iterator]=W.prototype.values;W.prototype.forEach=function(E,h){var d=this;this.JSC$6678_map_.forEach(function(V){return E.call(h,V,V,d)})};
return W});
mE("Math.log2",function(F){return F?F:function(W){return Math.log(W)/Math.LN2}});
mE("Object.values",function(F){return F?F:function(W){var E=[],h;for(h in W)WY(W,h)&&E.push(W[h]);return E}});
mE("Object.is",function(F){return F?F:function(W,E){return W===E?W!==0||1/W===1/E:W!==W&&E!==E}});
mE("Array.prototype.includes",function(F){return F?F:function(W,E){var h=this;h instanceof String&&(h=String(h));var d=h.length;E=E||0;for(E<0&&(E=Math.max(E+d,0));E<d;E++){var V=h[E];if(V===W||Object.is(V,W))return!0}return!1}});
mE("String.prototype.includes",function(F){return F?F:function(W,E){return hf(this,W,"includes").indexOf(W,E||0)!==-1}});
mE("Array.from",function(F){return F?F:function(W,E,h){E=E!=null?E:function(M){return M};
var d=[],V=typeof Symbol!="undefined"&&Symbol.iterator&&W[Symbol.iterator];if(typeof V=="function"){W=V.call(W);for(var R=0;!(V=W.next()).done;)d.push(E.call(h,V.value,R++))}else for(V=W.length,R=0;R<V;R++)d.push(E.call(h,W[R],R));return d}});
mE("Object.entries",function(F){return F?F:function(W){var E=[],h;for(h in W)WY(W,h)&&E.push([h,W[h]]);return E}});
mE("Number.isFinite",function(F){return F?F:function(W){return typeof W!=="number"?!1:!isNaN(W)&&W!==Infinity&&W!==-Infinity}});
mE("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});
mE("Number.MIN_SAFE_INTEGER",function(){return-9007199254740991});
mE("Number.isInteger",function(F){return F?F:function(W){return Number.isFinite(W)?W===Math.floor(W):!1}});
mE("Number.isSafeInteger",function(F){return F?F:function(W){return Number.isInteger(W)&&Math.abs(W)<=Number.MAX_SAFE_INTEGER}});
mE("String.prototype.endsWith",function(F){return F?F:function(W,E){var h=hf(this,W,"endsWith");E===void 0&&(E=h.length);E=Math.max(0,Math.min(E|0,h.length));for(var d=W.length;d>0&&E>0;)if(h[--E]!=W[--d])return!1;return d<=0}});
var u_b=function(F,W){F instanceof String&&(F+="");var E=0,h=!1,d={next:function(){if(!h&&E<F.length){var V=E++;return{value:W(V,F[V]),done:!1}}h=!0;return{done:!0,value:void 0}}};
d[Symbol.iterator]=function(){return d};
return d};
mE("Array.prototype.entries",function(F){return F?F:function(){return u_b(this,function(W,E){return[W,E]})}});
mE("Math.imul",function(F){return F?F:function(W,E){W=Number(W);E=Number(E);var h=W&65535,d=E&65535;return h*d+((W>>>16&65535)*d+h*(E>>>16&65535)<<16>>>0)|0}});
mE("Math.trunc",function(F){return F?F:function(W){W=Number(W);if(isNaN(W)||W===Infinity||W===-Infinity||W===0)return W;var E=Math.floor(Math.abs(W));return W<0?-E:E}});
mE("Number.isNaN",function(F){return F?F:function(W){return typeof W==="number"&&isNaN(W)}});
mE("Array.prototype.keys",function(F){return F?F:function(){return u_b(this,function(W){return W})}});
mE("Array.prototype.values",function(F){return F?F:function(){return u_b(this,function(W,E){return E})}});
mE("Array.prototype.fill",function(F){return F?F:function(W,E,h){var d=this.length||0;E<0&&(E=Math.max(0,d+E));if(h==null||h>d)h=d;h=Number(h);h<0&&(h=Math.max(0,d+h));for(E=Number(E||0);E<h;E++)this[E]=W;return this}});
var dH=function(F){return F?F:Array.prototype.fill};
mE("Int8Array.prototype.fill",dH);mE("Uint8Array.prototype.fill",dH);mE("Uint8ClampedArray.prototype.fill",dH);mE("Int16Array.prototype.fill",dH);mE("Uint16Array.prototype.fill",dH);mE("Int32Array.prototype.fill",dH);mE("Uint32Array.prototype.fill",dH);mE("Float32Array.prototype.fill",dH);mE("Float64Array.prototype.fill",dH);
mE("Object.fromEntries",function(F){return F?F:function(W){var E={};if(!(Symbol.iterator in W))throw new TypeError("r`"+W);W=W[Symbol.iterator].call(W);for(var h=W.next();!h.done;h=W.next()){h=h.value;if(Object(h)!==h)throw new TypeError("s");E[h[0]]=h[1]}return E}});
mE("String.prototype.replaceAll",function(F){return F?F:function(W,E){if(W instanceof RegExp&&!W.global)throw new TypeError("t");return W instanceof RegExp?this.replace(W,E):this.replace(new RegExp(String(W).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"),"g"),E)}});
mE("Object.getOwnPropertySymbols",function(F){return F?F:function(){return[]}});
mE("String.prototype.repeat",function(F){return F?F:function(W){var E=hf(this,null,"repeat");if(W<0||W>1342177279)throw new RangeError("u");W|=0;for(var h="";W;)if(W&1&&(h+=E),W>>>=1)E+=E;return h}});
mE("Array.prototype.findIndex",function(F){return F?F:function(W,E){return wxG(this,W,E).i}});
mE("Array.prototype.flatMap",function(F){return F?F:function(W,E){var h=[];Array.prototype.forEach.call(this,function(d,V){d=W.call(E,d,V,this);Array.isArray(d)?h.push.apply(h,d):h.push(d)});
return h}});
mE("String.prototype.codePointAt",function(F){return F?F:function(W){var E=hf(this,null,"codePointAt"),h=E.length;W=Number(W)||0;if(W>=0&&W<h){W|=0;var d=E.charCodeAt(W);if(d<55296||d>56319||W+1===h)return d;W=E.charCodeAt(W+1);return W<56320||W>57343?d:(d-55296)*1024+W+9216}}});
mE("String.fromCodePoint",function(F){return F?F:function(W){for(var E="",h=0;h<arguments.length;h++){var d=Number(arguments[h]);if(d<0||d>1114111||d!==Math.floor(d))throw new RangeError("v`"+d);d<=65535?E+=String.fromCharCode(d):(d-=65536,E+=String.fromCharCode(d>>>10&1023|55296),E+=String.fromCharCode(d&1023|56320))}return E}});
mE("String.prototype.padStart",function(F){return F?F:function(W,E){var h=hf(this,null,"padStart");W-=h.length;E=E!==void 0?String(E):" ";return(W>0&&E?E.repeat(Math.ceil(W/E.length)).substring(0,W):"")+h}});
mE("Promise.prototype.finally",function(F){return F?F:function(W){return this.then(function(E){return Promise.resolve(W()).then(function(){return E})},function(E){return Promise.resolve(W()).then(function(){throw E;
})})}});
mE("Object.hasOwn",function(F){return F?F:function(W,E){return Object.prototype.hasOwnProperty.call(W,E)}});
mE("Math.sign",function(F){return F?F:function(W){W=Number(W);return W===0||isNaN(W)?W:W>0?1:-1}});
mE("Array.prototype.flat",function(F){return F?F:function(W){W=W===void 0?1:W;var E=[];Array.prototype.forEach.call(this,function(h){Array.isArray(h)&&W>0?(h=Array.prototype.flat.call(h,W-1),E.push.apply(E,h)):E.push(h)});
return E}});
mE("String.raw",function(F){return F?F:function(W,E){if(W==null)throw new TypeError("w");for(var h=W.raw,d=h.length,V="",R=0;R<d;++R)V+=h[R],R+1<d&&R+1<arguments.length&&(V+=String(arguments[R+1]));return V}});
mE("Reflect.ownKeys",function(F){return F?F:function(W){var E=[],h=Object.getOwnPropertyNames(W);W=Object.getOwnPropertySymbols(W);for(var d=0;d<h.length;d++)(h[d].substring(0,14)=="jscomp_symbol_"?W:E).push(h[d]);return E.concat(W)}});
mE("Object.getOwnPropertyDescriptors",function(F){return F?F:function(W){for(var E={},h=Reflect.ownKeys(W),d=0;d<h.length;d++)E[h[d]]=Object.getOwnPropertyDescriptor(W,h[d]);return E}});
mE("WeakSet",function(F){if(function(){if(!F||!Object.seal)return!1;try{var E=Object.seal({}),h=Object.seal({}),d=new F([E]);if(!d.has(E)||d.has(h))return!1;d.delete(E);d.add(h);return!d.has(E)&&d.has(h)}catch(V){return!1}}())return F;
var W=function(E){this.JSC$6685_map_=new WeakMap;if(E){E=_.U(E);for(var h;!(h=E.next()).done;)this.add(h.value)}};
W.prototype.add=function(E){this.JSC$6685_map_.set(E,!0);return this};
W.prototype.has=function(E){return this.JSC$6685_map_.has(E)};
W.prototype.delete=function(E){return this.JSC$6685_map_.delete(E)};
return W});
mE("Promise.allSettled",function(F){function W(h){return{status:"fulfilled",value:h}}
function E(h){return{status:"rejected",reason:h}}
return F?F:function(h){var d=this;h=Array.from(h,function(V){return d.resolve(V).then(W,E)});
return d.all(h)}});
mE("Number.parseInt",function(F){return F||parseInt});
_._DumpException=window._DumpException||function(F){throw F;};
window._DumpException=_._DumpException;var S7o,Na,VF,UV,pxw,mKr,K$o,FLk,ww,WLI;S7o=S7o||{};_.EY=this||self;_.S5=function(F,W,E){F=F.split(".");E=E||_.EY;for(var h;F.length&&(h=F.shift());)F.length||W===void 0?E[h]&&E[h]!==Object.prototype[h]?E=E[h]:E=E[h]={}:E[h]=W};
Na=function(F){var W=_.ju("WIZ_global_data.oxN3nb");F=W&&W[F];return F!=null?F:!1};
VF=_.EY._F_toggles||[];UV=function(){};
UV.get=function(){return null};
_.ju=function(F,W){F=F.split(".");W=W||_.EY;for(var E=0;E<F.length;E++)if(W=W[F[E]],W==null)return null;return W};
_.RZ=function(F){F.instance_=void 0;F.getInstance=function(){return F.instance_?F.instance_:F.instance_=new F}};
_.CN=function(F){var W=typeof F;return W!="object"?W:F?Array.isArray(F)?"array":W:"null"};
_.Ee=function(F){var W=_.CN(F);return W=="array"||W=="object"&&typeof F.length=="number"};
_.NU=function(F){var W=typeof F;return W=="object"&&F!=null||W=="function"};
_.Ue=function(F){return Object.prototype.hasOwnProperty.call(F,pxw)&&F[pxw]||(F[pxw]=++mKr)};
pxw="closure_uid_"+(Math.random()*1E9>>>0);mKr=0;K$o=function(F,W,E){return F.call.apply(F.bind,arguments)};
FLk=function(F,W,E){if(!F)throw Error();if(arguments.length>2){var h=Array.prototype.slice.call(arguments,2);return function(){var d=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(d,h);return F.apply(W,d)}}return function(){return F.apply(W,arguments)}};
_.kj=function(F,W,E){_.kj=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?K$o:FLk;return _.kj.apply(null,arguments)};
_.v5=function(F,W){var E=Array.prototype.slice.call(arguments,1);return function(){var h=E.slice();h.push.apply(h,arguments);return F.apply(this,h)}};
_.e2=function(){return Date.now()};
ww=function(F){return F};
_.Ma=function(F,W){function E(){}
E.prototype=W.prototype;F.superClass_=W.prototype;F.prototype=new E;F.prototype.constructor=F;F.base=function(h,d,V){for(var R=Array(arguments.length-2),M=2;M<arguments.length;M++)R[M-2]=arguments[M];return W.prototype[d].apply(h,R)}};
WLI=function(F){return F};var C4Y,c3e;_.T=function(F,W,E,h){var d=arguments.length,V=d<3?W:h===null?h=Object.getOwnPropertyDescriptor(W,E):h,R;if(Reflect&&typeof Reflect==="object"&&typeof Reflect.decorate==="function")V=Reflect.decorate(F,W,E,h);else for(var M=F.length-1;M>=0;M--)if(R=F[M])V=(d<3?R(V):d>3?R(W,E,V):R(W,E))||V;return d>3&&V&&Object.defineProperty(W,E,V),V};
_.Y=function(F,W){if(Reflect&&typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(F,W)};
C4Y=function(F,W){if(W!==null&&W!==void 0){if(typeof W!=="object"&&typeof W!=="function")throw new TypeError("x");if(E===void 0){if(!Symbol.dispose)throw new TypeError("z");var E=W[Symbol.dispose]}if(typeof E!=="function")throw new TypeError("A");F.stack.push({value:W,dispose:E,async:!1})}return W};
c3e=function(F){function W(V){F.error=F.hasError?new SuppressedError(V,F.error,"An error was suppressed during disposal."):V;F.hasError=!0}
function E(){for(;h=F.stack.pop();)try{if(!h.async&&d===1)return d=0,F.stack.push(h),Promise.resolve().then(E);if(h.dispose){var V=h.dispose.call(h.value);if(h.async)return d|=2,Promise.resolve(V).then(E,function(R){W(R);return E()})}else d|=1}catch(R){W(R)}if(d===1)return F.hasError?Promise.reject(F.error):Promise.resolve();
if(F.hasError)throw F.error;}
var h,d=0;E()};_.Ma(_.Fe,Error);_.Fe.prototype.name="CustomError";var Elr;var hdS=void 0,dPo,NCb=typeof TextDecoder!=="undefined",hrW,EWG=typeof String.prototype.isWellFormed==="function",WYe=typeof TextEncoder!=="undefined";var VTn;_.Dq=function(F){for(var W=[],E=0,h=0;h<F.length;h++){var d=F.charCodeAt(h);d<128?W[E++]=d:(d<2048?W[E++]=d>>6|192:((d&64512)==55296&&h+1<F.length&&(F.charCodeAt(h+1)&64512)==56320?(d=65536+((d&1023)<<10)+(F.charCodeAt(++h)&1023),W[E++]=d>>18|240,W[E++]=d>>12&63|128):W[E++]=d>>12|224,W[E++]=d>>6&63|128),W[E++]=d&63|128)}return W};
VTn=function(F){for(var W=[],E=0,h=0;E<F.length;){var d=F[E++];if(d<128)W[h++]=String.fromCharCode(d);else if(d>191&&d<224){var V=F[E++];W[h++]=String.fromCharCode((d&31)<<6|V&63)}else if(d>239&&d<365){V=F[E++];var R=F[E++],M=F[E++];d=((d&7)<<18|(V&63)<<12|(R&63)<<6|M&63)-65536;W[h++]=String.fromCharCode(55296+(d>>10));W[h++]=String.fromCharCode(56320+(d&1023))}else V=F[E++],R=F[E++],W[h++]=String.fromCharCode((d&15)<<12|(V&63)<<6|R&63)}return W.join("")};var tr=String.prototype.trim?function(F){return F.trim()}:function(F){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(F)[1]},UPG=/&/g,RdR=/</g,edY=/>/g,MTo=/"/g,gle=/'/g,QEY=/\x00/g,zdk=/[\x00&<>"']/;var gH=!!(VF[0]>>15&1),tTY=!!(VF[0]>>16&1),C9o=!!(VF[0]&2),BCS=!!(VF[0]&4),vlI=!!(VF[0]&32),IYr=!!(VF[0]&512);var vG=gH?tTY:Na(610401301),c2k=gH?C9o:Na(513659523),DPS=gH?BCS:Na(568333945),AOr=gH?vlI:Na(1331761403),xPW=gH?IYr:Na(103340015);var cG,kqr=_.EY.navigator;cG=kqr?kqr.userAgentData||null:null;var GX;_.TR=function(F,W){return Array.prototype.indexOf.call(F,W,void 0)};
_.Tk=function(F,W,E){Array.prototype.forEach.call(F,W,E)};
_.QF=function(F,W,E){return Array.prototype.filter.call(F,W,E)};
_.AN=function(F,W,E){return Array.prototype.map.call(F,W,E)};
GX=function(F,W,E){return Array.prototype.some.call(F,W,E)};
_.m4G=function(F,W,E){return Array.prototype.every.call(F,W,E)};var zA=function(F){zA[" "](F);return F};
zA[" "]=function(){};
var $d=function(F,W){try{return zA(F[W]),!0}catch(E){}return!1},kkY=function(F,W,E,h){h=h?h(W):W;
return Object.prototype.hasOwnProperty.call(F,h)?F[h]:F[h]=E(W)};var A2I,wV,sEG,LLW,$PI,ZwR,hmY,X_Y,HwR,P9k,XVS,aYo,fYe,nlS,y2R,jEb;_.YIS=function(){return _.EY.navigator||null};
A2I=ZS();_.tf=VkY();wV=Ar("Edge");sEG=wV||_.tf;_.Cc=Ar("Gecko")&&!(_.zR(_.BG(),"WebKit")&&!Ar("Edge"))&&!(Ar("Trident")||Ar("MSIE"))&&!Ar("Edge");_.BY=_.zR(_.BG(),"WebKit")&&!Ar("Edge");LLW=_.BY&&Ar("Mobile");_.qrY=_.tkS();$PI=_.Cor();ZwR=(an()?cG.platform==="Linux":Ar("Linux"))||_.BIo();hmY=_.Qne();X_Y=zre();HwR=Ar("iPad");P9k=Ar("iPod");_.J2Y=_.OY();XVS=_.zR(_.BG(),"KaiOS");aYo=function(){var F=_.EY.document;return F?F.documentMode:void 0};
a:{var OwI="",bwn=function(){var F=_.BG();if(_.Cc)return/rv:([^\);]+)(\)|;)/.exec(F);if(wV)return/Edge\/([\d\.]+)/.exec(F);if(_.tf)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(F);if(_.BY)return/WebKit\/(\S+)/.exec(F);if(A2I)return/(?:Version)[ \/]?(\S+)/.exec(F)}();
bwn&&(OwI=bwn?bwn[1]:"");if(_.tf){var lYe=aYo();if(lYe!=null&&lYe>parseFloat(OwI)){fYe=String(lYe);break a}}fYe=OwI}nlS=fYe;y2R={};_.vY=function(F){return kkY(y2R,F,function(){return _.Cb(nlS,F)>=0})};
if(_.EY.document&&_.tf){var iwY=aYo();jEb=iwY?iwY:parseInt(nlS,10)||void 0}else jEb=void 0;_.r2o=jEb;var xWw,kMr,TCI;_.IZ=Xe();xWw=zre()||Ar("iPod");kMr=Ar("iPad");TCI=_.Rrr();_.cY=_.HG();_.OJ=_.PG()&&!_.OY();var olY,DE,wpS,eBb,YrI,Gqr;olY={};DE=null;wpS=_.Cc||_.BY||typeof _.EY.btoa=="function";_.FG=function(F,W){W===void 0&&(W=0);Gqr();W=olY[W];for(var E=Array(Math.floor(F.length/3)),h=W[64]||"",d=0,V=0;d<F.length-2;d+=3){var R=F[d],M=F[d+1],g=F[d+2],t=W[R>>2];R=W[(R&3)<<4|M>>4];M=W[(M&15)<<2|g>>6];g=W[g&63];E[V++]=t+R+M+g}t=0;g=h;switch(F.length-d){case 2:t=F[d+1],g=W[(t&15)<<2]||h;case 1:F=F[d],E[V]=W[F>>2]+W[(F&3)<<4|t>>4]+g+h}return E.join("")};
eBb=function(F){var W="";YrI(F,function(E){W+=String.fromCharCode(E)});
return W};
_.cxr=function(F){var W=[];YrI(F,function(E){W.push(E)});
return W};
_.CT=function(F){var W=F.length,E=W*3/4;E%3?E=Math.floor(E):_.gI("=.",F[W-1])&&(E=_.gI("=.",F[W-2])?E-2:E-1);var h=new Uint8Array(E),d=0;YrI(F,function(V){h[d++]=V});
return d!==E?h.subarray(0,d):h};
YrI=function(F,W){function E(g){for(;h<F.length;){var t=F.charAt(h++),C=DE[t];if(C!=null)return C;if(!_.Mw(t))throw Error("E`"+t);}return g}
Gqr();for(var h=0;;){var d=E(-1),V=E(0),R=E(64),M=E(64);if(M===64&&d===-1)break;W(d<<2|V>>4);R!=64&&(W(V<<4&240|R>>2),M!=64&&W(R<<6&192|M))}};
Gqr=function(){if(!DE){DE={};for(var F="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),W=["+/=","+/","-_=","-_.","-_"],E=0;E<5;E++){var h=F.concat(W[E].split(""));olY[E]=h;for(var d=0;d<h.length;d++){var V=h[d];DE[V]===void 0&&(DE[V]=d)}}}};var ObS=typeof Uint8Array!=="undefined",qYY=!_.tf&&typeof btoa==="function",$wo=/[-_.]/g,snn={"-":"+",_:"/",".":"="},jH={};var yM,uak;yM=function(F,W){if(W!==jH)throw Error("G");this.JSC$6716_value_=F;if(F!=null&&F.length===0)throw Error("F");};
_.rc=function(){return w_r||(w_r=new yM(null,jH))};
uak=function(F){return new Uint8Array(Pk(F)||0)};
yM.prototype.isEmpty=function(){return this.JSC$6716_value_==null};
yM.prototype.sizeBytes=function(){var F=Pk(this);return F?F.length:0};
var Pk=function(F){if(jH!==jH)throw Error("G");var W=F.JSC$6716_value_;W=W==null||ObS&&W!=null&&W instanceof Uint8Array?W:typeof W==="string"?Zbe(W):null;return W==null?W:F.JSC$6716_value_=W},w_r;var HbY=void 0;var $B=typeof Symbol==="function"&&typeof Symbol()==="symbol",SrY=qU("jas",void 0,!0),oO=qU(void 0,"0di"),Ze=qU(void 0,"1oa"),uK=qU(void 0,Symbol()),HTG=qU(void 0,"0ub"),Jar=qU(void 0,"0ubs"),ONk=qU(void 0,"0ubsb"),Yer=qU(void 0,"0actk"),rw=qU("m_m","messagePrototypeMarker",!0),jik=qU(void 0,"vps"),$Ur=qU();var JrY,Poe,IK,p_I;JrY={internalArrayState:{value:0,configurable:!0,writable:!0,enumerable:!1}};Poe=Object.defineProperties;_.Xp=$B?SrY:"internalArrayState";p_I=[];Ja(p_I,7);IK=Object.freeze(p_I);var T8={},Oe={},mPW=function(F,W,E){this.iterable=F;this.mapper=W;this.thisArg=E};
mPW.prototype.next=function(){var F=this.iterable.next();F.done||(F.value=this.mapper.call(this.thisArg,F.value));return F};
mPW.prototype[Symbol.iterator]=function(){return this};
var KLG=Object.freeze({}),Gz={};_.FPG=SH(function(F){return F!==null&&F!==void 0});var jnI=SH(function(F){return typeof F==="number"}),yre=SH(function(F){return typeof F==="string"}),ibk=SH(function(F){return typeof F==="boolean"}),WPn=SH(function(F){return F!=null&&typeof F==="object"&&typeof F.then==="function"}),Sie=SH(function(F){return typeof F==="function"}),hz=SH(function(F){return!!F&&(typeof F==="object"||typeof F==="function")});var pT=typeof _.EY.BigInt==="function"&&typeof _.EY.BigInt(0)==="bigint";var bK=SH(function(F){return pT?F>=EIY&&F<=hcR:F[0]==="-"?rrG(F,dme):rrG(F,N6Y)}),dme=Number.MIN_SAFE_INTEGER.toString(),EIY=pT?BigInt(Number.MIN_SAFE_INTEGER):void 0,N6Y=Number.MAX_SAFE_INTEGER.toString(),hcR=pT?BigInt(Number.MAX_SAFE_INTEGER):void 0;var VOI=typeof Uint8Array.prototype.slice==="function",KT=0,F6=0,Sz;var Zu,aO,vT,fN,SYY;Zu=typeof BigInt==="function"?BigInt.asIntN:void 0;_.Oq=typeof BigInt==="function"?BigInt.asUintN:void 0;aO=Number.isSafeInteger;vT=Number.isFinite;fN=Math.trunc;SYY=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var iTo={};var LXI={},Umo=function(){try{var F=function(){return JZI(Map,[],this.constructor)};
_.k(F,Map);zA(new F);return!1}catch(W){return!0}}(),xi=function(){this.JSC$6744_map_=new Map};
_.N=xi.prototype;_.N.get=function(F){return this.JSC$6744_map_.get(F)};
_.N.set=function(F,W){this.JSC$6744_map_.set(F,W);this.size=this.JSC$6744_map_.size;return this};
_.N.delete=function(F){F=this.JSC$6744_map_.delete(F);this.size=this.JSC$6744_map_.size;return F};
_.N.clear=function(){this.JSC$6744_map_.clear();this.size=this.JSC$6744_map_.size};
_.N.has=function(F){return this.JSC$6744_map_.has(F)};
_.N.entries=function(){return this.JSC$6744_map_.entries()};
_.N.keys=function(){return this.JSC$6744_map_.keys()};
_.N.values=function(){return this.JSC$6744_map_.values()};
_.N.forEach=function(F,W){return this.JSC$6744_map_.forEach(F,W)};
xi.prototype[Symbol.iterator]=function(){return this.entries()};
var Wk=function(){if(Umo)return Object.setPrototypeOf(xi.prototype,Map.prototype),Object.defineProperties(xi.prototype,{size:{value:0,configurable:!0,enumerable:!0,writable:!0}}),xi;var F=function(){return JZI(Map,[],this.constructor)};
_.k(F,Map);return F}(),G8=function(F,W,E,h){E=E===void 0?DUr:E;
h=h===void 0?DUr:h;var d=Wk.call(this)||this;d.arrayState=F[_.Xp]|0;d.valueCtor=W;d.keyToApi=E;d.valueToApi=d.valueCtor?kzr:h;for(var V=0;V<F.length;V++){var R=F[V],M=E(R[0],!1,!0),g=R[1];W?g===void 0&&(g=null):g=h(R[1],!1,!0,void 0,void 0,d.arrayState);Wk.prototype.set.call(d,M,g)}return d};
_.k(G8,Wk);var Rcr=function(F){if(F.arrayState&2)throw Error("K");};
_.N=G8.prototype;_.N.clear=function(){Rcr(this);Wk.prototype.clear.call(this)};
_.N.delete=function(F){Rcr(this);return Wk.prototype.delete.call(this,this.keyToApi(F,!0,!1))};
_.N.entries=function(){if(this.valueCtor){var F=Wk.prototype.keys.call(this);F=new mPW(F,AaW,this)}else F=Wk.prototype.entries.call(this);return F};
_.N.values=function(){if(this.valueCtor){var F=Wk.prototype.keys.call(this);F=new mPW(F,G8.prototype.get,this)}else F=Wk.prototype.values.call(this);return F};
_.N.forEach=function(F,W){this.valueCtor?Wk.prototype.forEach.call(this,function(E,h,d){F.call(W,d.get(h),h,d)}):Wk.prototype.forEach.call(this,F,W)};
_.N.set=function(F,W){Rcr(this);F=this.keyToApi(F,!0,!1);return F==null?this:W==null?(Wk.prototype.delete.call(this,F),this):Wk.prototype.set.call(this,F,this.valueToApi(W,!0,!0,this.valueCtor,!1,this.arrayState))};
_.N.has=function(F){return Wk.prototype.has.call(this,this.keyToApi(F,!1,!1))};
_.N.get=function(F){F=this.keyToApi(F,!1,!1);var W=Wk.prototype.get.call(this,F);if(W!==void 0){var E=this.valueCtor;return E?(E=this.valueToApi(W,!1,!0,E,this.callToMutableOnAccess,this.arrayState),E!==W&&Wk.prototype.set.call(this,F,E),E):W}};
G8.prototype[Symbol.iterator]=function(){return this.entries()};
G8.prototype.toJSON=void 0;var siI;var OTR=function(){},mg=function(F,W){for(var E in F)!isNaN(E)&&W(F,+E,F[E])},bTY=function(F){var W=new OTR;
mg(F,function(E,h,d){W[h]=Uq(d)});
W.reviveUnknownFields=F.reviveUnknownFields;return W},ZTk={reviveIntoImmutable:!0};var f_o;var rak,Tcr;var eco,AW,tV,cc,MOw,HY,vc,gIW,Qgw,fc,zcr,OV,nc,yF;eco=_.mX(0);_.ki={};_.Af=function(F,W,E,h,d){W=AW(F.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,W,E,d);if(W!==null||h&&F.noLegacyNull!==Oe)return W};
AW=function(F,W,E,h){if(W===-1)return null;var d=W+(E?0:-1),V=F.length-1;if(!(V<1+(E?0:-1))){if(d>=V){var R=F[V];if(R!=null&&typeof R==="object"&&R.constructor===Object){E=R[W];var M=!0}else if(d===V)E=R;else return}else E=F[d];if(h&&E!=null){h=h(E);if(h==null)return h;if(!Object.is(h,E))return M?R[W]=h:F[d]=h,h}return E}};
_.de=function(F,W,E,h){tW(F);var d=F.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;Bk(d,d[_.Xp]|0,W,E,h);return F};
_.Lc=function(F,W,E){F=F.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return XG(F,F[_.Xp]|0,W,E)!==void 0};
_.qa=function(F,W,E,h){var d=F.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return XG(d,d[_.Xp]|0,W,cc(F,h,E))!==void 0};
_.Fg=function(F){return F===KLG?2:4};
_.$i=function(F,W){F=_.Af(F,W,void 0,void 0,FgR);return F==null?_.rc():F};
tV=function(F,W,E,h){tW(F);var d=F.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,V=d[_.Xp]|0;if(h==null){var R=EKn(d);if(h6o(R,d,V,E)===W)R.set(E,0);else return F}else V=dFo(d,V,E,W);Bk(d,V,W,h);return F};
_.ZE=function(F,W,E,h){var d=F[_.Xp]|0,V=wc(d);d=dFo(F,d,E,W,V);Bk(F,d,W,h,V)};
cc=function(F,W,E){return _.Xc(F,W)===E?E:-1};
_.Xc=function(F,W){F=F.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return h6o(EKn(F),F,void 0,W,void 0)};
MOw=function(F,W,E){var h=F[_.Xp]|0,d=wc(h),V=AW(F,E,d);if(V!=null&&V[rw]===T8){if(!nT(V))return z2(V),V.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;var R=V.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows}else Array.isArray(V)&&(R=V);if(R){var M=R[_.Xp]|0;M&2&&(R=RK(R,M))}R=Uf(R,W,!0);R!==V&&Bk(F,h,E,R,d);return R};
_.Em=function(F,W,E,h){var d=F.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,V=d[_.Xp]|0;W=XG(d,V,W,E,h);if(W==null)return W;V=d[_.Xp]|0;if(!nT(F,V)){var R=xUo(W);R!==W&&(z2(F)&&(d=F.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,V=d[_.Xp]|0),W=R,V=Bk(d,V,E,W,h),C2(d,V))}return W};
_.KC=function(F,W,E,h){var d=F.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return Nwo(F,d,d[_.Xp]|0,W,E,h,!1,!0)};
_.hy=function(F,W,E,h){E=V$o(E);_.de(F,W,E,h);E&&!nT(E)&&C2(F.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return F};
_.dU=function(F,W,E,h){h=V$o(h);tV(F,W,E,h);h&&!nT(h)&&C2(F.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return F};
HY=function(F,W,E){tW(F);var h=F.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,d=h[_.Xp]|0;if(E==null)return Bk(h,d,W),F;for(var V=E===IK?7:E[_.Xp]|0,R=V,M=xR(V),g=M||Object.isFrozen(E),t=!0,C=!0,B=0;B<E.length;B++){var I=E[B];M||(I=nT(I),t&&(t=!I),C&&(C=I))}M||(V=t?13:5,V=C?V&-4097:V|4096);g&&V===R||(E=Uq(E),R=0,V=ck(V,d));V!==R&&Ja(E,V);d=Bk(h,d,W,E);2&V||!(4096&V||16&V)||C2(h,d);return F};
vc=function(F,W,E,h){R6o(F,W,E,h);return F};
gIW=function(F,W,E){R6o(F,W,PY,void 0,E,1,!0);return F};
_.Jf=function(F,W,E){F=_.Af(F,W,void 0,E);W=typeof F;F=F==null?F:W==="bigint"?_.mX((0,_.Oq)(64,F)):_.cT(F)?W==="string"?_.gBI(F):_.euW(F):void 0;return F};
_.aZ=function(F,W){var E=E===void 0?!1:E;var h;return(h=_.uen(_.Af(F,W)))!=null?h:E};
_.Wb=function(F,W,E){E=E===void 0?0:E;var h;return(h=_.LN(_.Af(F,W)))!=null?h:E};
Qgw=function(F,W){var E=E===void 0?0:E;F=_.qF(_.Af(F,W));return F!=null?F:E};
fc=function(F,W,E){E=E===void 0?eco:E;var h;return(h=_.tHe(_.Af(F,W)))!=null?h:E};
zcr=function(F){var W=W===void 0?eco:W;var E;return(E=_.Jf(F,23))!=null?E:W};
OV=function(F,W){var E=E===void 0?0:E;var h;return(h=_.Af(F,W,void 0,void 0,_.gw))!=null?h:E};
_.bj=function(F,W,E,h){E=E===void 0?"":E;var d;return(d=_.yx(_.Af(F,W,h)))!=null?d:E};
_.lj=function(F,W){var E=E===void 0?0:E;var h;return(h=_.kK(_.Af(F,W)))!=null?h:E};
nc=function(F,W){var E=E===void 0?"0":E;F=zuo(_.Af(F,W),!0);return F!=null?F:E};
yF=function(F,W,E){return _.bj(F,cc(F,E,W))};
_.j2=function(F,W,E,h){return _.Em(F,W,cc(F,h,E),void 0)};
_.tv=function(F,W){return _.yx(_.Af(F,W,void 0,_.ki))};
_.NT=function(F,W,E){return _.de(F,W,wGS(E))};
_.ZU=function(F,W,E){return _.L2(F,W,wGS(E),!1)};
_.ij=function(F,W,E){return _.de(F,W,_.sq(E))};
_.kt=function(F,W,E){return _.de(F,W,JP(E))};
_.QJ=function(F,W,E){return _.de(F,W,nN(E))};
_.NB=function(F,W,E,h){return _.L2(F,W,nN(E),"",h)};
_.hH=function(F,W,E){return _.de(F,W,E==null?E:_.xK(E))};
_.rH=function(F,W,E){return _.L2(F,W,E==null?E:_.xK(E),0)};var Hk=function(F,W,E){this.buffer=F;if(E&&!W)throw Error();this.JSC$6756_isImmutable=W};var tOG=function(F,W,E,h){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$6759_start_=0;this.init(F,W,E,h)},oZ,B6e,vIR,c_G,$FW,CSo;
_.N=tOG.prototype;_.N.init=function(F,W,E,h){var d=h===void 0?{}:h;h=d.aliasBytesFields===void 0?!1:d.aliasBytesFields;d=d.treatNewDataAsImmutable===void 0?!1:d.treatNewDataAsImmutable;this.aliasBytesFields=h;this.treatNewDataAsImmutable=d;F&&(F=e6w(F,this.treatNewDataAsImmutable),this.bytes_=F.buffer,this.bytesAreImmutable_=F.JSC$6756_isImmutable,this.JSC$6759_start_=W||0,this.end_=E!==void 0?this.JSC$6759_start_+E:this.bytes_.length,this.cursor_=this.JSC$6759_start_)};
_.N.free=function(){this.clear();CSo.length<100&&CSo.push(this)};
_.N.clear=function(){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$6759_start_=0;this.aliasBytesFields=!1};
_.N.reset=function(){this.cursor_=this.JSC$6759_start_};
_.N.atEnd=function(){return this.cursor_==this.end_};
_.GA=function(F,W){var E=0,h=0,d=0,V=F.bytes_,R=F.cursor_;do{var M=V[R++];E|=(M&127)<<d;d+=7}while(d<32&&M&128);d>32&&(h|=(M&127)>>4);for(d=3;d<32&&M&128;d+=7)M=V[R++],h|=(M&127)<<d;oZ(F,R);if(M<128)return W(E>>>0,h>>>0);throw Error("X");};
oZ=function(F,W){F.cursor_=W;if(W>F.end_)throw Error("Y`"+W+"`"+F.end_);};
_.Yi=function(F){var W=F.bytes_,E=F.cursor_,h=W[E++],d=h&127;if(h&128&&(h=W[E++],d|=(h&127)<<7,h&128&&(h=W[E++],d|=(h&127)<<14,h&128&&(h=W[E++],d|=(h&127)<<21,h&128&&(h=W[E++],d|=h<<28,h&128&&W[E++]&128&&W[E++]&128&&W[E++]&128&&W[E++]&128&&W[E++]&128)))))throw Error("X");oZ(F,E);return d};
_.wH=function(F){var W=F.bytes_,E=F.cursor_,h=W[E],d=W[E+1],V=W[E+2];W=W[E+3];oZ(F,F.cursor_+4);return(h<<0|d<<8|V<<16|W<<24)>>>0};
B6e=function(F){var W=_.wH(F);F=_.wH(F);return GRn(W,F)};
vIR=function(F){var W=_.wH(F),E=_.wH(F);F=(E>>31)*2+1;var h=E>>>20&2047;W=4294967296*(E&1048575)+W;return h==2047?W?NaN:F*Infinity:h==0?F*4.9E-324*W:F*Math.pow(2,h-1075)*(W+4503599627370496)};
_.Ive=function(F){for(var W=0,E=F.cursor_,h=E+10,d=F.bytes_;E<h;){var V=d[E++];W|=V;if((V&128)===0)return oZ(F,E),!!(W&127)}throw Error("X");};
c_G=function(F,W){if(W<0)throw Error("Z`"+W);var E=F.cursor_,h=E+W;if(h>F.end_)throw Error("Y`"+(F.end_-E)+"`"+W);F.cursor_=h;return E};
$FW=function(F,W){if(W==0)return _.rc();var E=c_G(F,W);F.aliasBytesFields&&F.bytesAreImmutable_?E=F.bytes_.subarray(E,E+W):(F=F.bytes_,W=E+W,E=E===W?new Uint8Array(0):VOI?F.slice(E,W):new Uint8Array(F.subarray(E,W)));return E.length==0?_.rc():new yM(E,jH)};
CSo=[];var xmW=function(F,W,E,h){if(CSo.length){var d=CSo.pop();d.init(F,W,E,h);F=d}else F=new tOG(F,W,E,h);this.decoder_=F;this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1;Dmn(this,h)},Dmn=function(F,W){W=W===void 0?{}:W;
F.discardUnknownFields=W.discardUnknownFields===void 0?!1:W.discardUnknownFields},HNG=function(F,W,E,h){if(kLn.length){var d=kLn.pop();
Dmn(d,h);d.decoder_.init(F,W,E,h);return d}return new xmW(F,W,E,h)},LgY,jz,A_I,kLn;
xmW.prototype.free=function(){this.decoder_.clear();this.nextWireType_=this.nextField_=-1;kLn.length<100&&kLn.push(this)};
xmW.prototype.reset=function(){this.decoder_.reset();this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1};
LgY=function(F){if(F.decoder_.atEnd())return!1;F.fieldCursor_=F.decoder_.cursor_;var W=_.Yi(F.decoder_)>>>0,E=W>>>3;W&=7;if(!(W>=0&&W<=5))throw Error("T`"+W+"`"+F.fieldCursor_);if(E<1)throw Error("U`"+E+"`"+F.fieldCursor_);F.nextField_=E;F.nextWireType_=W;return!0};
jz=function(F){switch(F.nextWireType_){case 0:F.nextWireType_!=0?jz(F):_.Ive(F.decoder_);break;case 1:F=F.decoder_;oZ(F,F.cursor_+8);break;case 2:if(F.nextWireType_!=2)jz(F);else{var W=_.Yi(F.decoder_)>>>0;F=F.decoder_;oZ(F,F.cursor_+W)}break;case 5:F=F.decoder_;oZ(F,F.cursor_+4);break;case 3:W=F.nextField_;do{if(!LgY(F))throw Error("V");if(F.nextWireType_==4){if(F.nextField_!=W)throw Error("W");break}jz(F)}while(1);break;default:throw Error("T`"+F.nextWireType_+"`"+F.fieldCursor_);}};
A_I=function(F,W,E){var h=F.decoder_.end_,d=_.Yi(F.decoder_)>>>0,V=F.decoder_.cursor_+d,R=V-h;R<=0&&(F.decoder_.end_=V,E(W,F,void 0,void 0,void 0),R=V-F.decoder_.cursor_);if(R)throw Error("S`"+d+"`"+(d-R));F.decoder_.cursor_=V;F.decoder_.end_=h};
_.sgY=function(F){var W=_.Yi(F.decoder_)>>>0;F=F.decoder_;var E=c_G(F,W);F=F.bytes_;if(NCb){var h=F,d;(d=dPo)||(d=dPo=new TextDecoder("utf-8",{fatal:!0}));W=E+W;h=E===0&&W===h.length?h:h.subarray(E,W);try{var V=d.decode(h)}catch(t){if(hdS===void 0){try{d.decode(new Uint8Array([128]))}catch(C){}try{d.decode(new Uint8Array([97])),hdS=!0}catch(C){hdS=!1}}!hdS&&(dPo=void 0);throw t;}}else{V=E;W=V+W;E=[];for(var R=null,M,g;V<W;)M=F[V++],M<128?E.push(M):M<224?V>=W?WG():(g=F[V++],M<194||(g&192)!==128?(V--,
WG()):E.push((M&31)<<6|g&63)):M<240?V>=W-1?WG():(g=F[V++],(g&192)!==128||M===224&&g<160||M===237&&g>=160||((d=F[V++])&192)!==128?(V--,WG()):E.push((M&15)<<12|(g&63)<<6|d&63)):M<=244?V>=W-2?WG():(g=F[V++],(g&192)!==128||(M<<28)+(g-144)>>30!==0||((d=F[V++])&192)!==128||((h=F[V++])&192)!==128?(V--,WG()):(M=(M&7)<<18|(g&63)<<12|(d&63)<<6|h&63,M-=65536,E.push((M>>10&1023)+55296,(M&1023)+56320))):WG(),E.length>=8192&&(R=FYn(R,E),E.length=0);V=FYn(R,E)}return V};
_.LPG=function(F){var W=_.Yi(F.decoder_)>>>0;return $FW(F.decoder_,W)};
_.qMr=function(F,W,E){var h=_.Yi(F.decoder_)>>>0;for(h=F.decoder_.cursor_+h;F.decoder_.cursor_<h;)E.push(W(F.decoder_))};
kLn=[];var $mS=function(F,W){this.JSC$6766_lo=F>>>0;this.JSC$6766_hi=W>>>0},Xge=function(F){if(!F)return ZqY||(ZqY=new $mS(0,0));
if(!/^\d+$/.test(F))return null;Vx(F);return new $mS(KT,F6)},ZqY,iNo=function(F,W){this.JSC$6768_lo=F>>>0;
this.JSC$6768_hi=W>>>0},yPo=function(F){if(!F)return Hqe||(Hqe=new iNo(0,0));
if(!/^-?\d+$/.test(F))return null;Vx(F);return new iNo(KT,F6)},Hqe;var PSW=function(){this.JSC$6770_buffer_=[]},jOr,J_W;
PSW.prototype.length=function(){return this.JSC$6770_buffer_.length};
PSW.prototype.end=function(){var F=this.JSC$6770_buffer_;this.JSC$6770_buffer_=[];return F};
jOr=function(F,W,E){for(;E>0||W>127;)F.JSC$6770_buffer_.push(W&127|128),W=(W>>>7|E<<25)>>>0,E>>>=7;F.JSC$6770_buffer_.push(W)};
J_W=function(F,W){for(;W>127;)F.JSC$6770_buffer_.push(W&127|128),W>>>=7;F.JSC$6770_buffer_.push(W)};
_.rPe=function(F,W){if(W>=0)J_W(F,W);else{for(var E=0;E<9;E++)F.JSC$6770_buffer_.push(W&127|128),W>>=7;F.JSC$6770_buffer_.push(1)}};
_.p2=function(F,W){F.JSC$6770_buffer_.push(W>>>0&255);F.JSC$6770_buffer_.push(W>>>8&255);F.JSC$6770_buffer_.push(W>>>16&255);F.JSC$6770_buffer_.push(W>>>24&255)};var avG,oK,G8e,u6Y;avG=function(){this.blocks_=[];this.totalLength_=0;this.encoder_=new PSW};
oK=function(F,W){W.length!==0&&(F.blocks_.push(W),F.totalLength_+=W.length)};
_.z6Y=function(F,W){_.uL(F,W,2);W=F.encoder_.end();oK(F,W);W.push(F.totalLength_);return W};
_.t$R=function(F,W){var E=W.pop();for(E=F.totalLength_+F.encoder_.length()-E;E>127;)W.push(E&127|128),E>>>=7,F.totalLength_++;W.push(E);F.totalLength_++};
_.uL=function(F,W,E){J_W(F.encoder_,W*8+E)};
G8e=function(F,W,E){if(E!=null){switch(typeof E){case "string":Xge(E)}_.uL(F,W,1);switch(typeof E){case "number":F=F.encoder_;TIe(E);_.p2(F,KT);_.p2(F,F6);break;case "bigint":E=BigInt.asUintN(64,E);E=new $mS(Number(E&BigInt(4294967295)),Number(E>>BigInt(32)));F=F.encoder_;W=E.JSC$6766_hi;_.p2(F,E.JSC$6766_lo);_.p2(F,W);break;default:E=Xge(E),F=F.encoder_,W=E.JSC$6766_hi,_.p2(F,E.JSC$6766_lo),_.p2(F,W)}}};
u6Y=function(F,W,E){_.uL(F,W,2);J_W(F.encoder_,E.length);oK(F,F.encoder_.end());oK(F,E)};var M$G,bqk,lvY,jge,iqb;M$G=aK();_.fvr=aK();_.Oqo=aK();bqk=aK();lvY=aK();_.nIk=aK();_.uj=aK();_.y_I=aK();jge=aK();iqb=aK();_.r_o=aK();_.T6S=aK();_.n2=function(F,W,E){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F,W,E)};
_.n2.prototype.toJSON=function(){return du(this)};
_.n2.prototype.serialize=function(F){return JSON.stringify(du(this,F))};
var hWR=function(F,W){if(W==null||W=="")return new F;W=JSON.parse(W);if(!Array.isArray(W))throw Error("$");return new F(fSS(W))};
_.n2.prototype.getExtension=function(F){P_r(this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,F.fieldIndex);XOR(this,F.fieldIndex);return F.ctor?F.isRepeated?F.getExtensionFn(this,F.ctor,F.fieldIndex,_.Fg(),F.JSC$6781_hasMessageId):F.getExtensionFn(this,F.ctor,F.fieldIndex,F.JSC$6781_hasMessageId):F.isRepeated?F.getExtensionFn(this,F.fieldIndex,_.Fg(),F.JSC$6781_hasMessageId):F.getExtensionFn(this,F.fieldIndex,F.defaultValue,F.JSC$6781_hasMessageId)};
_.n2.prototype.clone=function(){var F=this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,W=F[_.Xp]|0;return gu(this,F,W)?ez(this,F,!0):new this.constructor(RK(F,W,!1))};
_.n2.prototype[rw]=T8;_.n2.prototype.toString=function(){return this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows.toString()};var Of=function(F,W,E){this.$$binaryReaderFn=F;this.$$binaryWriterFn=W;F=ww(M$G);this.$$isMsg=!!F&&E===F||!1},Iun=gKb(function(F,W,E,h,d){if(F.nextWireType_!==2)return!1;
A_I(F,MOw(W,h,E),d);return!0},CKk),cPR=gKb(function(F,W,E,h,d){if(F.nextWireType_!==2)return!1;
A_I(F,MOw(W,h,E),d);return!0},CKk),ru=Symbol(),yl=Symbol(),sOr=Symbol(),JPr=Symbol(),ZNk=Symbol(),Bwn,vKR;var Fpe,oIo,GLb,YMo,wgr,u2G,SMY,pgn,mmk,KPY,FGo,Ekb,hTY,NgY,VIo;Fpe=function(F,W){var E=new avG;auk(F.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,E,bL(ru,iL,T2,W));oK(E,E.encoder_.end());F=new Uint8Array(E.totalLength_);W=E.blocks_;for(var h=W.length,d=0,V=0;V<h;V++){var R=W[V];F.set(R,d);d+=R.length}E.blocks_=[F];return F};
oIo=_.G2(function(F,W,E){if(F.nextWireType_!==1)return!1;_.YR(W,E,vIR(F.decoder_));return!0},nKw,iqb);
GLb=_.G2(function(F,W,E,h){if(F.nextWireType_!==1)return!1;_.ZE(W,E,h,vIR(F.decoder_));return!0},nKw,iqb);
YMo=_.G2(function(F,W,E,h){if(F.nextWireType_!==5)return!1;var d=_.wH(F.decoder_);F=(d>>31)*2+1;var V=d>>>23&255;d&=8388607;_.ZE(W,E,h,V==255?d?NaN:F*Infinity:V==0?F*1.401298464324817E-45*d:F*Math.pow(2,V-150)*(d+8388608));return!0},function(F,W,E){W=_.gw(W);
W!=null&&(_.uL(F,E,5),F=F.encoder_,E=Sz||(Sz=new DataView(new ArrayBuffer(8))),E.setFloat32(0,+W,!0),F6=0,KT=E.getUint32(0,!0),_.p2(F,KT))},jge);
_.S2=_.G2(function(F,W,E){if(F.nextWireType_!==0)return!1;_.YR(W,E,_.GA(F.decoder_,hP));return!0},_.mp,_.uj);
wgr=_.G2(function(F,W,E){if(F.nextWireType_!==0)return!1;F=_.GA(F.decoder_,hP);_.YR(W,E,F===0?void 0:F);return!0},_.mp,_.uj);
u2G=_.G2(function(F,W,E,h){if(F.nextWireType_!==0)return!1;_.ZE(W,E,h,_.GA(F.decoder_,hP));return!0},_.mp,_.uj);
_.pc=_.G2(function(F,W,E){if(F.nextWireType_!==0)return!1;_.YR(W,E,_.Yi(F.decoder_));return!0},Tww,bqk);
SMY=_.G2(function(F,W,E){if(F.nextWireType_!==0)return!1;F=_.Yi(F.decoder_);_.YR(W,E,F===0?void 0:F);return!0},Tww,bqk);
pgn=_.G2(function(F,W,E,h){if(F.nextWireType_!==0)return!1;_.ZE(W,E,h,_.Yi(F.decoder_));return!0},Tww,bqk);
mmk=_.G2(function(F,W,E){if(F.nextWireType_!==1)return!1;_.YR(W,E,B6e(F.decoder_));return!0},_.Yqo,_.y_I);
KPY=_.luS(function(F,W,E){if(F.nextWireType_!==1&&F.nextWireType_!==2)return!1;W=_.$R(W,W[_.Xp]|0,E);F.nextWireType_==2?_.qMr(F,B6e,W):W.push(B6e(F.decoder_));return!0},function(F,W,E){W=_.bNk(BcS,W,!1);
if(W!=null)for(var h=0;h<W.length;h++)G8e(F,E,W[h])},_.y_I);
_.mN=_.G2(function(F,W,E){if(F.nextWireType_!==0)return!1;_.YR(W,E,_.Ive(F.decoder_));return!0},_.wTo,_.fvr);
FGo=_.G2(function(F,W,E,h){if(F.nextWireType_!==0)return!1;_.ZE(W,E,h,_.Ive(F.decoder_));return!0},_.wTo,_.fvr);
_.Kc=_.G2(function(F,W,E){if(F.nextWireType_!==2)return!1;_.YR(W,E,_.sgY(F));return!0},_.Sqr,_.Oqo);
_.WGr=_.G2(function(F,W,E,h){if(F.nextWireType_!==2)return!1;_.ZE(W,E,h,_.sgY(F));return!0},_.Sqr,_.Oqo);
Ekb=_.luS(function(F,W,E){if(F.nextWireType_!==2)return!1;F=_.sgY(F);_.$R(W,W[_.Xp]|0,E).push(F);return!0},function(F,W,E){W=_.bNk(_.yx,W,!0);
if(W!=null)for(var h=0;h<W.length;h++){var d=F,V=E,R=W[h];R!=null&&u6Y(d,V,dwb(R))}},_.Oqo);
hTY=void 0;hTY=hTY===void 0?M$G:hTY;_.F0=new Of(function(F,W,E,h,d){if(F.nextWireType_!==2)return!1;h=Uf(void 0,h,!0);_.$R(W,W[_.Xp]|0,E).push(h);A_I(F,h,d);return!0},function(F,W,E,h,d){if(Array.isArray(W))for(var V=0;V<W.length;V++)pTe(F,W[V],E,h,d)},hTY);
_.WK=gKb(function(F,W,E,h,d,V){if(F.nextWireType_!==2)return!1;var R=W[_.Xp]|0;dFo(W,R,V,E,wc(R));W=MOw(W,h,E);A_I(F,W,d);return!0},pTe);
_.d$Y=_.G2(function(F,W,E){if(F.nextWireType_!==2)return!1;_.YR(W,E,_.LPG(F));return!0},_.mFI,_.r_o);
NgY=_.G2(function(F,W,E,h){if(F.nextWireType_!==2)return!1;_.ZE(W,E,h,_.LPG(F));return!0},_.mFI,_.r_o);
VIo=_.G2(function(F,W,E,h){if(F.nextWireType_!==0)return!1;_.ZE(W,E,h,_.Yi(F.decoder_)>>>0);return!0},function(F,W,E){W=_.qF(W);
W!=null&&W!=null&&(_.uL(F,E,0),J_W(F.encoder_,W))},lvY);
_.En=_.G2(function(F,W,E){if(F.nextWireType_!==0)return!1;_.YR(W,E,_.Yi(F.decoder_));return!0},_.Kgo,_.T6S);var eTe=function(){var F=U$k,W=RTe;this.fieldIndex=175237375;this.ctor=W;this.isRepeated=0;this.getExtensionFn=_.Em;this.defaultValue=void 0;this.JSC$6781_hasMessageId=F.messageId!=null?Gz:void 0};
eTe.prototype.register=function(){zA(this)};var MIo=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(MIo,_.n2);var gkr=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(gkr,_.n2);var VzY=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(VzY,_.n2);var Q2r=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(Q2r,_.n2);var zTo=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(zTo,_.n2);var tIb=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(tIb,_.n2);var C2S=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(C2S,_.n2);C2S.prototype.getData=function(){return _.$i(this,2)};var BgI=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(BgI,_.n2);var vkY=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(vkY,_.n2);vkY.prototype.getStyle=function(){return _.Em(this,MIo,1)};var EW=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(EW,_.n2);EW.prototype.getPayloadCase=function(){return _.Xc(this,Ni)};
EW.prototype.getStyle=function(){return _.j2(this,vkY,6,Ni)};
var I8o=function(){var F=new EW,W=new zTo;return _.dU(F,7,Ni,W)},cXn=function(){var F=new EW,W=new tIb;
return _.dU(F,8,Ni,W)},Ni=[1,
2,3,4,5,6,7,8];var D$I=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(D$I,_.n2);var x$G=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(x$G,_.n2);var keo=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(keo,_.n2);var AXo=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(AXo,_.n2);var s2Y=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(s2Y,_.n2);var LGS=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(LGS,_.n2);var qFw=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(qFw,_.n2);var $$W=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k($$W,_.n2);$$W.prototype.getData=function(){return _.$i(this,2)};var Z0Y=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(Z0Y,_.n2);var Nun=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(Nun,_.n2);Nun.prototype.getPayloadCase=function(){return _.Xc(this,hk)};
var hk=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15];var da=function(F,W){F=Error.call(this,F);this.message=F.message;"stack"in F&&(this.stack=F.stack);this.code=W===void 0?2:W};
_.k(da,Error);var XRY=Promise;var H0r=function(F){this.channelPromise=F};
H0r.prototype.send=function(F,W,E){this.channelPromise.then(function(h){h.send(F,W,E)})};var P2b=function(F,W){this.data=F;this.channel=W};
P2b.prototype.reply=function(F,W,E){this.channel.send(F,W,E)};var JXY=function(F){this.JSC$6847_port_=F};
JXY.prototype.send=function(F,W,E){E=E===void 0?[]:E;var h=new MessageChannel;a8W(h.port1,W);this.JSC$6847_port_.postMessage(F,[h.port2].concat(E))};
var f8n=function(F,W){a8W(F,W);return new JXY(F)},a8W=function(F,W){W&&(F.onmessage=function(E){W(new P2b(E.data,f8n(E.ports[0])))})};var O0r=function(F){this.verifier_=F},b0o=function(F){var W=Object.create(null);
(typeof F==="string"?[F]:F).forEach(function(E){if(E==="null")throw Error("ba");W[E]=!0});
return function(E){return W[E]===!0}};_.l8b=function(){if(!_.EY.addEventListener||!Object.defineProperty)return!1;var F=!1,W=Object.defineProperty({},"passive",{get:function(){F=!0}});
try{var E=function(){};
_.EY.addEventListener("test",E,W);_.EY.removeEventListener("test",E,W)}catch(h){}return F}();var nkI;_.NS=function(F){var W=F.destination;var E=F.iframe;var h=F.origin;var d=F.channelName===void 0?"ZNWN1d":F.channelName;var V=F.onMessage===void 0?void 0:F.onMessage;F=F.onEstablished===void 0?void 0:F.onEstablished;return nkI({destination:W,getSource:function(){return E.contentWindow},
originVerifier:h instanceof O0r?h:typeof h==="function"?new O0r(h):new O0r(b0o(h)),channelName:d,onMessage:V,onEstablished:F})};
nkI=function(F){var W=F.destination;var E=F.getSource;var h=F.originVerifier;var d=F.token===void 0?void 0:F.token;var V=F.channelName;var R=F.onMessage===void 0?void 0:F.onMessage;var M=F.onEstablished===void 0?void 0:F.onEstablished;return new H0r(new XRY(function(g,t){var C=function(B){B.source&&B.source===E()&&h.verifier_(B.origin)&&(B.data.n||B.data)===V&&(W.removeEventListener("message",C,!1),d&&B.data.t!==d?t(Error("ca`"+V+"`"+d+"`"+B.data.t)):(g(f8n(B.ports[0],R)),M&&M(B)))};
W.addEventListener("message",C,!1)}))};var yXr=function(F){try{F()}catch(W){dI(W)}};var i0R=function(F){var W=this;var E=F.getMessageType;var h=F.onUnregisteredMessage===void 0?function(){}:F.onUnregisteredMessage;
var d=F.onBeforeRegisteredMessage===void 0?function(){}:F.onBeforeRegisteredMessage;
F=F.onAfterRegisteredMessage===void 0?function(){}:F.onAfterRegisteredMessage;
this.registry_=new Map;this.getMessageType_=E;this.onUnregisteredMessage_=h;this.onBeforeRegisteredMessage_=d;this.onAfterRegisteredMessage_=F;this.onMessage=function(V){return j2G(W,V)}};
i0R.prototype.register=function(F,W){this.registry_.set(F,W);return this};
var j2G=function(F,W){var E=F.getMessageType_(W.data),h=F.registry_.get(E);h?(yXr(function(){return F.onBeforeRegisteredMessage_(W,E)}),yXr(function(){return h(W)}),yXr(function(){return F.onAfterRegisteredMessage_(W,E)})):yXr(function(){return F.onUnregisteredMessage_(W,E)})};var rXn=function(F){this.JSC$6864_channel_=F},okW,GeW;
rXn.prototype.send=function(F,W,E){this.JSC$6864_channel_.send(du(F),W,E)};
_.Tgr=function(F,W){return function(E){var h=new F(E.data);return W(new P2b(h,E.channel))}};
okW=function(F){return function(W){return F(new P2b(W.data,new rXn(W.channel)))}};
GeW=function(F,W){return okW(_.Tgr(F,W))};var YFk=function(F,W,E,h){this.registry=F;this.delegate=W;this.receiveMessageConstructor=E;this.createInitMessage=h;this.initialised=!1;this.registry.register.bind(this.registry);this.features=new Set},dRo=function(F){var W=new i0R({getMessageType:F.getPayloadCase});
return new YFk(W,new rXn(_.NS({iframe:F.child,destination:window,origin:F.origin,channelName:F.channelName,onMessage:GeW(F.receiveMessageConstructor,W.onMessage)})),F.receiveMessageConstructor,F.createInitMessage)},wRr=function(F,W){F.createInitMessage=W};
YFk.prototype.send=function(F){if(!this.initialised)throw new da("Attempted to send a message before initialisation.");this.delegate.send(F)};
var uoG=function(F,W){return _.e(function(E){if(!F.initialised)throw new da("Attempted to send a message before initialisation.");return E.return(new Promise(function(h){F.delegate.send(W,GeW(F.receiveMessageConstructor,h))}))})};
YFk.prototype.init=function(){var F=this;return _.e(function(W){if(F.initialised)throw new da("Attempted to initialise twice. The SDK can only be initialised once.");if(F.createInitMessage!==void 0){var E=F.delegate,h=E.send,d=F.createInitMessage;var V=new gkr;var R=[].concat(_.x9(F.features));V=_.sf(V,1,R,_.xK);h.call(E,d.call(F,V))}F.initialised=!0;_.gG(W)})};
var VB=function(F,W){if(F.initialised)throw new da('Attempted to set up API "'+W+'" after initialisation. All APIs must be set up before initialising the SDK.');F.features.add(W);return F.registry};
_.Sn.Object.defineProperties(YFk.prototype,{isInitialised:{configurable:!0,enumerable:!0,get:function(){return this.initialised}}});var SFS=function(F){this.channel=F;this.registered=!1};
SFS.prototype.update=function(F){if(this.channel.isInitialised){if(!this.registered)throw new da("Using unregistered Audio Feature. Please call audio.update() before init() to indicate usage of the Audio Api.");var W=new EW;var E=new Q2r;E=_.NT(E,1,F);W=_.dU(W,2,Ni,E);this.channel.send(W)}else this.register();this.JSC$6878_audioEnabled=F};
SFS.prototype.register=function(){VB(this.channel,1);this.registered=!0};
SFS.prototype.isAudioEnabled=function(){return this.JSC$6878_audioEnabled};var pRb=function(F){this.channel=F};
_.N=pRb.prototype;_.N.onFirstFrameReady=function(F){VB(this.channel,2).register(11,function(W){W=_.j2(W.data,D$I,11,hk);if(!W)throw new da("Unexpectedly nonexistent GameFirstFrameReadyEvent");F(_.bj(W,1))})};
_.N.onReady=function(F){VB(this.channel,2).register(4,function(W){W=_.j2(W.data,keo,4,hk);if(!W)throw new da("Unexpectedly nonexistent GameReadyEvent");F(_.bj(W,1))})};
_.N.onLevelComplete=function(F){VB(this.channel,2).register(5,function(W){W=_.j2(W.data,AXo,5,hk);if(!W)throw new da("Unexpectedly nonexistent LevelCompleteEvent");F(_.bj(W,1),_.Wb(W,2))})};
_.N.onGameOver=function(F){VB(this.channel,2).register(6,function(W){W=_.j2(W.data,x$G,6,hk);if(!W)throw new da("Unexpectedly nonexistent GameOverEvent");F(_.bj(W,1))})};
_.N.pause=function(){var F=this;if(!this.channel.isInitialised)return VB(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new da("Using unregistered Game Feature: pause.");var W=I8o();return new Promise(function(E){return _.e(function(h){if(h.nextAddress==1)return _.Q(h,uoG(F.channel,W),2);E();_.gG(h)})})};
_.N.resume=function(){var F=this;if(!this.channel.isInitialised)return VB(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new da("Using unregistered Game Feature: resume.");var W=cXn();return new Promise(function(E){return _.e(function(h){if(h.nextAddress==1)return _.Q(h,uoG(F.channel,W),2);E();_.gG(h)})})};var m$Y=function(F){this.channel=F};
m$Y.prototype.onReady=function(F){VB(this.channel,5).register(8,function(W){if(!_.j2(W.data,s2Y,8,hk))throw new da("Unexpectedly nonexistent PageReadyEvent");F()})};var KGb=function(F){this.channel=F};
KGb.prototype.onChange=function(F){VB(this.channel,3).register(7,function(W){W=_.j2(W.data,LGS,7,hk);if(!W)throw new da("Unexpectedly nonexistent ScoreEvent");F(_.bj(W,1),_.Wb(W,2))})};var FYi={load:function(){throw new da("Storage used, but storage.onLoad() listener not set!");},
save:function(){throw new da("Storage used, but storage.onSave() listener not set!");}},WYp=function(F){this.channel=F;
this.saveRegistered=this.loadRegistered=this.initialSetupDone=!1},EWO=function(F){VB(F.channel,4).register(2,FYi.load).register(3,FYi.save);
F.initialSetupDone=!0};
WYp.prototype.onLoad=function(F){this.initialSetupDone||EWO(this);this.loadRegistered||(this.loadRegistered=!0,VB(this.channel,4).register(2,function(W){var E,h,d;return _.e(function(V){if(V.nextAddress==1){E=_.j2(W.data,qFw,2,hk);if(!E)throw new da("Unexpectedly nonexistent StorageLoad");h=_.bj(E,1);return _.Q(V,F(h),2)}d=V.yieldResult;var R=W.reply,M=new EW;var g=new C2S;g=_.QJ(g,1,h);g=_.de(g,2,_.Tz(d,!1));M=_.dU(M,3,Ni,g);R.call(W,M);_.gG(V)})}))};
WYp.prototype.onSave=function(F){this.initialSetupDone||EWO(this);this.saveRegistered||(this.saveRegistered=!0,VB(this.channel,4).register(3,function(W){var E,h,d;return _.e(function(V){if(V.nextAddress==1){E=_.j2(W.data,$$W,3,hk);if(!E)throw new da("Unexpectedly nonexistent StorageSave");h=_.bj(E,1);d=uak(E.getData());return _.Q(V,F(h,d),2)}var R=W.reply,M=new EW;var g=new BgI;g=_.QJ(g,1,h);M=_.dU(M,4,Ni,g);R.call(W,M);_.gG(V)})}))};var hrB=function(F){this.channel=F};
hrB.prototype.update=function(F){if(!this.channel.features.has(6))throw new da("Using unregistered Style Feature. Please call style.register() before init() to indicate usage of the Style Api.");var W=new EW,E=new vkY;F=_.hy(E,1,F);W=_.dU(W,6,Ni,F);this.channel.send(W)};
hrB.prototype.register=function(){VB(this.channel,6)};var dwT=function(F){this.channel=F;this.userActivityLoggingIntervalMs=0};
dwT.prototype.onUserActivity=function(F,W){this.userActivityLoggingIntervalMs=W;VB(this.channel,7).register(9,function(E){if(!_.j2(E.data,Z0Y,9,hk))throw new da("Unexpectedly nonexistent ClickEvent");F()})};var NIM=function(F){var W=this;this.channel=F;this.init=this.channel.init.bind(this.channel);this.page=new m$Y(this.channel);this.game=new pRb(this.channel);this.audio=new SFS(this.channel);this.score=new KGb(this.channel);this.storage=new WYp(this.channel);this.style=new hrB(this.channel);this.userActivity=new dwT(this.channel);wRr(this.channel,function(E){var h=new VzY;E=_.hy(h,1,E);E=_.ij(E,3,W.userActivity.userActivityLoggingIntervalMs);h=W.audio.isAudioEnabled();h!==void 0&&_.NT(E,2,h);h=new EW;
return _.dU(h,5,Ni,E)})};var Vke=function(){this.timedFunctionContext=0};
Vke.prototype.timeExecution=function(F,W){var E=this;return function(){var h=_.Dd.apply(0,arguments);E.timedFunctionContext=F;return W.apply(null,_.x9(h))}};var Uwz=function(){var F={};this.priorityTasks=(F[3]=[],F[2]=[],F[1]=[],F);this.isFlushing=!1},dn=function(F,W,E){var h=Rra(F,E);
F.priorityTasks[E].push(W);h&&F.priorityTasks[E].length===1&&F.flush()},Rra=function(F,W){return Object.keys(F.priorityTasks).map(function(E){return Number(E)}).filter(function(E){return!isNaN(E)&&E>W}).every(function(E){return F.priorityTasks[E].length===0})};
Uwz.prototype.flush=function(){if(!this.isFlushing){this.isFlushing=!0;try{for(;Object.values(this.priorityTasks).some(function(F){return F.length>0});)er_(this,3),er_(this,2),er_(this,1)}catch(F){throw Object.values(this.priorityTasks).forEach(function(W){return void W.splice(0,W.length)}),F;
}finally{this.isFlushing=!1}}};
var er_=function(F,W){for(;Rra(F,W)&&F.priorityTasks[W].length>0;)F.priorityTasks[W][0](),F.priorityTasks[W].shift()};
_.Sn.Object.defineProperties(Uwz.prototype,{running:{configurable:!0,enumerable:!0,get:function(){return Object.values(this.priorityTasks).some(function(F){return F.length>0})}}});var QKo={};var Mku=globalThis.trustedTypes,RWI=Mku,Mzr;var UW=function(F){this.privateDoNotAccessOrElseWrappedResourceUrl=F};
UW.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedResourceUrl+""};var gWT=_.Fc([""]),Qnp=lkW(["\x00"],["\\0"]),zrp=lkW(["\n"],["\\n"]),tk_=lkW(["\x00"],["\\u0000"]);Mi(function(F){return F(gWT)})||Mi(function(F){return F(Qnp)})||Mi(function(F){return F(zrp)})||Mi(function(F){return F(tk_)});var vp;_.gU=function(F,W){this.privateDoNotAccessOrElseWrappedUrl=W};
_.gU.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedUrl};
_.Coa=QK("about:blank");vp=QK("about:invalid#zClosurez");var zWS=function(F){this.isValid=F},BIM=new zWS(function(F){return/^[^:]*([/?#]|$)/.test(F)}),vW_=Cu("data"),ISB=Cu("http"),crp=Cu("https"),DwH=Cu("ftp"),xwB=Cu("mailto"),kRX=Cu("intent"),Arz=Cu("vnd.youtube"),tzb=[vW_,
ISB,crp,xwB,DwH,BIM],CLw=VK(function(){return typeof URL==="function"}),sni=["data:",
"http:","https:","mailto:","ftp:"],vRY=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;var qi=function(F){this.privateDoNotAccessOrElseWrappedHtml=F};
qi.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedHtml+""};
var c8Y=VK(function(){return new qi(Mku?Mku.emptyHTML:"")});var LYB={FORMATTED_HTML_CONTENT:0,EMBEDDED_INTERNAL_CONTENT:1,EMBEDDED_TRUSTED_EXTERNAL_CONTENT:2,0:"FORMATTED_HTML_CONTENT",1:"EMBEDDED_INTERNAL_CONTENT",2:"EMBEDDED_TRUSTED_EXTERNAL_CONTENT"},Pp=function(F,W){var E=Error.call(this,F+" cannot be used with intent "+LYB[W]);this.message=E.message;"stack"in E&&(this.stack=E.stack);this.type=F;this.intent=W;this.name="TypeCannotBeUsedWithIframeIntentError"};
_.k(Pp,Error);_.fu=function(F){this.privateDoNotAccessOrElseWrappedScript=F};
_.fu.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedScript+""};var xRY=function(F){this.privateDoNotAccessOrElseWrappedAttributePrefix=F};
xRY.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedAttributePrefix};var k2Y="alternate author bookmark canonical cite help icon license modulepreload next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" ");var vTG=function(F){var W=_.ju("window.location.href");F==null&&(F='Unknown Error of type "null/undefined"');if(typeof F==="string")return{message:F,name:"Unknown error",lineNumber:"Not available",fileName:W,stack:"Not available"};var E=!1;try{var h=F.lineNumber||F.line||"Not available"}catch(R){h="Not available",E=!0}try{var d=F.fileName||F.filename||F.sourceURL||_.EY.$googDebugFname||W}catch(R){d="Not available",E=!0}W=qYX(F);if(!(!E&&F.lineNumber&&F.fileName&&F.stack&&F.message&&F.name)){E=F.message;
if(E==null){if(F.constructor&&F.constructor instanceof Function){if(F.constructor.name)E=F.constructor.name;else if(E=F.constructor,Un[E])E=Un[E];else{E=String(E);if(!Un[E]){var V=/function\s+([^\(]+)/m.exec(E);Un[E]=V?V[1]:"[Anonymous]"}E=Un[E]}E='Unknown Error of type "'+E+'"'}else E="Unknown Error of unknown type";typeof F.toString==="function"&&Object.prototype.toString!==F.toString&&(E+=": "+F.toString())}return{message:E,name:F.name||"UnknownError",lineNumber:h,fileName:d,stack:W||"Not available"}}return{message:F.message,
name:F.name,lineNumber:F.lineNumber,fileName:F.fileName,stack:W}},qYX=function(F,W){W||(W={});
W[$wM(F)]=!0;var E=F.stack||"",h=F.cause;h&&!W[$wM(h)]&&(E+="\nCaused by: ",h.stack&&h.stack.indexOf(h.toString())==0||(E+=typeof h==="string"?h:h.message+"\n"),E+=qYX(h,W));F=F.errors;if(Array.isArray(F)){h=1;var d;for(d=0;d<F.length&&!(h>4);d++)W[$wM(F[d])]||(E+="\nInner error "+h++ +": ",F[d].stack&&F[d].stack.indexOf(F[d].toString())==0||(E+=typeof F[d]==="string"?F[d]:F[d].message+"\n"),E+=qYX(F[d],W));d<F.length&&(E+="\n... "+(F.length-d)+" more inner errors")}return E},$wM=function(F){var W=
"";
typeof F.toString==="function"&&(W=""+F);return W+F.stack},Un={};var Zbp,KW,eb,HbX,Pop,XGH,nr,yO,aSu;Zbp=function(F,W){for(var E=F.split("%s"),h="",d=Array.prototype.slice.call(arguments,1);d.length&&E.length>1;)h+=E.shift()+d.shift();return h+E.join("%s")};
_.ro=function(F){return encodeURIComponent(String(F))};
KW=function(F){return decodeURIComponent(F.replace(/\+/g," "))};
eb=function(F){zdk.test(F)&&(F.indexOf("&")!=-1&&(F=F.replace(UPG,"&amp;")),F.indexOf("<")!=-1&&(F=F.replace(RdR,"&lt;")),F.indexOf(">")!=-1&&(F=F.replace(edY,"&gt;")),F.indexOf('"')!=-1&&(F=F.replace(MTo,"&quot;")),F.indexOf("'")!=-1&&(F=F.replace(gle,"&#39;")),F.indexOf("\x00")!=-1&&(F=F.replace(QEY,"&#0;")));return F};
HbX=function(F){var W={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'};var E=_.EY.document.createElement("div");return F.replace(XGH,function(h,d){var V=W[h];if(V)return V;d.charAt(0)=="#"&&(d=Number("0"+d.slice(1)),isNaN(d)||(V=String.fromCharCode(d)));V||(_.yK(E,$w(h+" ")),V=E.firstChild.nodeValue.slice(0,-1));return W[h]=V})};
Pop=function(F){return F.replace(/&([^;]+);/g,function(W,E){switch(E){case "amp":return"&";case "lt":return"<";case "gt":return">";case "quot":return'"';default:return E.charAt(0)!="#"||(E=Number("0"+E.slice(1)),isNaN(E))?W:String.fromCharCode(E)}})};
XGH=/&([^;\s<&]+);?/g;_.rfo=function(F){return String(F).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};
_.Jre=String.prototype.repeat?function(F,W){return F.repeat(W)}:function(F,W){return Array(W+1).join(F)};
_.RY=function(F,W){if(!Number.isFinite(F))return String(F);F=String(F);var E=F.indexOf(".");E===-1&&(E=F.length);var h=F[0]==="-"?"-":"";h&&(F=F.substring(1));return h+(0,_.Jre)("0",Math.max(0,W-E))+F};
nr=function(){return Math.floor(Math.random()*2147483648).toString(36)+Math.abs(Math.floor(Math.random()*2147483648)^_.e2()).toString(36)};
yO=function(F){for(var W=0,E=0;E<F.length;++E)W=31*W+F.charCodeAt(E)>>>0;return W};
_.Bf=function(F){return String(F).replace(/\-([a-z])/g,function(W,E){return E.toUpperCase()})};
_.Cg=function(F){return String(F).replace(/([A-Z])/g,"-$1").toLowerCase()};
aSu=function(F){return F.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(W,E,h){return E+h.toUpperCase()})};var fS_=function(){this.names=new Map};
fS_.prototype.getName=function(F){var W=this.names.get(F);if(W)return W;var E;W=(E=F.description)!=null?E:nr();this.names.set(F,W);return W};var Ob_=function(F){var W=Error.call(this,F?F.length+" errors occurred during unsubscription:\n"+F.map(function(E,h){return h+1+") "+E.toString()}).join("\n  "):"");
this.message=W.message;"stack"in W&&(this.stack=W.stack);this.errors=F;Object.setPrototypeOf(this,this.constructor.prototype);this.name="UnsubscriptionError"};
_.k(Ob_,Error);var wU=function(F){this.initialTeardown=F;this.closed=!1;this._teardowns=this._parentage=null};
_.N=wU.prototype;
_.N.unsubscribe=function(){if(!this.closed){this.closed=!0;var F=this._parentage;if(Array.isArray(F))for(var W=_.U(F),E=W.next();!E.done;E=W.next())E.value.remove(this);else F==null||F.remove(this);W=this.initialTeardown;if(Yw(W))try{W()}catch(V){var h=V instanceof Ob_?V.errors:[V]}var d=this._teardowns;if(d)for(this._teardowns=null,W=_.U(d),E=W.next();!E.done;E=W.next()){E=E.value;try{Yw(E)?E():E.unsubscribe()}catch(V){E=void 0,h=(E=h)!=null?E:[],V instanceof Ob_?h=[].concat(_.x9(h),_.x9(V.errors)):
h.push(V)}}if(h)throw new Ob_(h);}};
_.N.add=function(F){if(F&&F!==this)if(this.closed)Yw(F)?F():F.unsubscribe();else{if(F instanceof wU){if(F.closed||F._hasParent(this))return;F._addParent(this)}var W;(this._teardowns=(W=this._teardowns)!=null?W:[]).push(F)}};
_.N._hasParent=function(F){var W=this._parentage;return W===F||Array.isArray(W)&&W.includes(F)};
_.N._addParent=function(F){var W=this._parentage;this._parentage=Array.isArray(W)?(W.push(F),W):W?[W,F]:F};
_.N._removeParent=function(F){var W=this._parentage;W===F?this._parentage=null:Array.isArray(W)&&Gy(W,F)};
_.N.remove=function(F){var W=this._teardowns;W&&Gy(W,F);F instanceof wU&&F._removeParent(this)};
var bbO=new wU;bbO.closed=!0;wU.JSC$6974_EMPTY=bbO;var qfY=function(){setTimeout.apply(null,_.x9(_.Dd.apply(0,arguments)))};var eP=function(F){wU.call(this);this.JSC$6979_isStopped=!1;this.destination=F instanceof eP?F:new MS(!F||Yw(F)?{next:F!=null?F:void 0}:F);Lpo(F)&&F.add(this)};
_.k(eP,wU);eP.JSC$6974_EMPTY=wU.JSC$6974_EMPTY;eP.create=function(F,W,E){return new QB(F,W,E)};
_.N=eP.prototype;_.N.next=function(F){this.JSC$6979_isStopped||this._next(F)};
_.N.error=function(F){this.JSC$6979_isStopped||(this.JSC$6979_isStopped=!0,this._error(F))};
_.N.complete=function(){this.JSC$6979_isStopped||(this.JSC$6979_isStopped=!0,this._complete())};
_.N.unsubscribe=function(){this.closed||(this.JSC$6979_isStopped=!0,wU.prototype.unsubscribe.call(this))};
_.N._next=function(F){this.destination.next(F)};
_.N._error=function(F){this.destination.error(F);this.unsubscribe()};
_.N._complete=function(){this.destination.complete();this.unsubscribe()};
var MS=function(F){this.partialObserver=F};
MS.prototype.next=function(F){var W=this.partialObserver;if(W.next)try{W.next(F)}catch(E){pu(E)}};
MS.prototype.error=function(F){var W=this.partialObserver;if(W.error)try{W.error(F)}catch(E){pu(E)}else pu(F)};
MS.prototype.complete=function(){var F=this.partialObserver;if(F.complete)try{F.complete()}catch(W){pu(W)}};
var QB=function(F,W,E){eP.call(this);var h;Yw(F)||!F?h={next:F!=null?F:void 0,error:W!=null?W:void 0,complete:E!=null?E:void 0}:h=F;this.destination=new MS(h)};
_.k(QB,eP);QB.JSC$6974_EMPTY=eP.JSC$6974_EMPTY;QB.create=eP.create;var E0=typeof Symbol==="function"&&Symbol.observable||"@@observable";var FL=function(F){F&&(this._subscribe=F)};
_.N=FL.prototype;_.N.lift=function(F){var W=new FL;W.source=this;W.operator=F;return W};
_.N.subscribe=function(F,W,E){F=F&&F instanceof eP||F&&Yw(F.next)&&Yw(F.error)&&Yw(F.complete)&&Lpo(F)?F:new QB(F,W,E);W=this.operator;E=this.source;F.add(W?W.call(F,E):E?this._subscribe(F):this._trySubscribe(F));return F};
_.N._trySubscribe=function(F){try{return this._subscribe(F)}catch(W){F.error(W)}};
_.N.forEach=function(F,W){var E=this;W=Z2Y(W);return new W(function(h,d){var V=E.subscribe(function(R){try{F(R)}catch(M){d(M),V==null||V.unsubscribe()}},d,h)})};
_.N._subscribe=function(F){var W;return(W=this.source)==null?void 0:W.subscribe(F)};
FL.prototype[E0]=function(){return this};
FL.prototype.pipe=function(){var F=_.Dd.apply(0,arguments);return F.length?$Rr(F)(this):this};
FL.create=function(F){return new FL(F)};var lSa=function(){var F=Error.call(this,"object unsubscribed");this.message=F.message;"stack"in F&&(this.stack=F.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="ObjectUnsubscribedError"};
_.k(lSa,Error);var WE=function(){this.observers=[];this.hasError=this.JSC$6995_isStopped=this.closed=!1;this.thrownError=null};
_.k(WE,FL);_.N=WE.prototype;_.N.lift=function(F){var W=new zH(this,this);W.operator=F;return W};
_.N._throwIfClosed=function(){if(this.closed)throw new lSa;};
_.N.next=function(F){this._throwIfClosed();if(!this.JSC$6995_isStopped){var W=this.observers.slice();W=_.U(W);for(var E=W.next();!E.done;E=W.next())E.value.next(F)}};
_.N.error=function(F){this._throwIfClosed();if(!this.JSC$6995_isStopped){this.hasError=this.JSC$6995_isStopped=!0;this.thrownError=F;for(var W=this.observers;W.length;)W.shift().error(F)}};
_.N.complete=function(){this._throwIfClosed();if(!this.JSC$6995_isStopped){this.JSC$6995_isStopped=!0;for(var F=this.observers;F.length;)F.shift().complete()}};
_.N.unsubscribe=function(){this.JSC$6995_isStopped=this.closed=!0;this.observers=null};
_.N._trySubscribe=function(F){this._throwIfClosed();return FL.prototype._trySubscribe.call(this,F)};
_.N._subscribe=function(F){this._throwIfClosed();this._checkFinalizedStatuses(F);return this._innerSubscribe(F)};
_.N._innerSubscribe=function(F){var W=this,E=this.JSC$6995_isStopped,h=this.observers;return this.hasError||E?wU.JSC$6974_EMPTY:(h.push(F),new wU(function(){return Gy(W.observers,F)}))};
_.N._checkFinalizedStatuses=function(F){var W=this.thrownError,E=this.JSC$6995_isStopped;this.hasError?F.error(W):E&&F.complete()};
WE.create=function(F,W){return new zH(F,W)};
var zH=function(F,W){WE.call(this);this.destination=F;this.source=W};
_.k(zH,WE);zH.create=WE.create;zH.prototype.next=function(F){var W,E;(W=this.destination)==null||(E=W.next)==null||E.call(W,F)};
zH.prototype.error=function(F){var W,E;(W=this.destination)==null||(E=W.error)==null||E.call(W,F)};
zH.prototype.complete=function(){var F,W;(F=this.destination)==null||(W=F.complete)==null||W.call(F)};
zH.prototype._subscribe=function(F){var W,E;return(E=(W=this.source)==null?void 0:W.subscribe(F))!=null?E:wU.JSC$6974_EMPTY};var fC=function(F){WE.call(this);this._value=F};
_.k(fC,WE);fC.create=WE.create;fC.prototype._subscribe=function(F){var W=WE.prototype._subscribe.call(this,F);!W.closed&&F.next(this._value);return W};
fC.prototype.getValue=function(){var F=this.thrownError,W=this._value;if(this.hasError)throw F;this._throwIfClosed();return W};
fC.prototype.next=function(F){WE.prototype.next.call(this,this._value=F)};
_.Sn.Object.defineProperties(fC.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.getValue()}}});var $9=new FL(function(F){return F.complete()});var Ww=typeof Symbol==="function"&&Symbol.iterator?Symbol.iterator:"@@iterator";var b2r=function(F){return F&&typeof F.length==="number"&&typeof F!=="function"};var nWB={now:function(){return(nWB.delegate||Date).now()},
delegate:void 0};var iO=function(F,W,E){F=F===void 0?Infinity:F;W=W===void 0?Infinity:W;E=E===void 0?nWB:E;WE.call(this);this.JSC$7017_bufferSize=F;this.windowTime=W;this.timestampProvider=E;this.buffer=[];this.infiniteTimeWindow=!0;this.infiniteTimeWindow=W===Infinity;this.JSC$7017_bufferSize=Math.max(1,F);this.windowTime=Math.max(1,W)};
_.k(iO,WE);iO.create=WE.create;iO.prototype.next=function(F){var W=this.buffer,E=this.infiniteTimeWindow,h=this.timestampProvider,d=this.windowTime;this.JSC$6995_isStopped||(W.push(F),!E&&W.push(h.now()+d));yrp(this);WE.prototype.next.call(this,F)};
iO.prototype._subscribe=function(F){this._throwIfClosed();yrp(this);for(var W=this._innerSubscribe(F),E=this.infiniteTimeWindow,h=this.buffer.slice(),d=0;d<h.length&&!F.closed;d+=E?1:2)F.next(h[d]);this._checkFinalizedStatuses(F);return W};
var yrp=function(F){var W=F.JSC$7017_bufferSize,E=F.timestampProvider,h=F.buffer;F=F.infiniteTimeWindow;var d=(F?1:2)*W;W<Infinity&&d<h.length&&h.splice(0,h.length-d);if(!F){W=E.now();E=0;for(F=1;F<h.length&&h[F]<=W;F+=2)E=F;E&&h.splice(0,E+1)}};var ibH=function(F,W){W=W===void 0?jnc:W;this.schedulerActionCtor=F;this.now=W};
ibH.prototype.schedule=function(F,W,E){W=W===void 0?0:W;return(new this.schedulerActionCtor(this,F)).schedule(E,W)};
var jnc=nWB.now;var $io=function(){var F=Error.call(this,"no elements in sequence");this.message=F.message;"stack"in F&&(this.stack=F.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="EmptyError"};
_.k($io,Error);var vw=function(F,W,E,h,d){eP.call(this,F);this.onUnsubscribe=d;W&&(this._next=function(V){try{W(V)}catch(R){this.destination.error(R)}});
E&&(this._error=function(V){try{E(V)}catch(R){this.destination.error(R)}this.unsubscribe()});
h&&(this._complete=function(){try{h()}catch(V){this.destination.error(V)}this.unsubscribe()})};
_.k(vw,eP);vw.JSC$6974_EMPTY=eP.JSC$6974_EMPTY;vw.create=eP.create;vw.prototype.unsubscribe=function(){var F;this.closed||(F=this.onUnsubscribe)!=null&&F.call(this);eP.prototype.unsubscribe.call(this)};var y0=function(F,W){this.source=F;this.subjectFactory=W;this._subject=null;this._refCount=0;this._connection=null};
_.k(y0,FL);y0.create=FL.create;y0.prototype._subscribe=function(F){return rrO(this).subscribe(F)};
var rrO=function(F){var W=F._subject;if(!W||W.JSC$6995_isStopped)F._subject=F.subjectFactory();return F._subject};
y0.prototype._teardown=function(){this._refCount=0;var F=this._connection;this._subject=this._connection=null;F==null||F.unsubscribe()};
y0.prototype.connect=function(){var F=this,W=this._connection;if(!W){W=this._connection=new wU;var E=rrO(this);W.add(this.source.subscribe(new vw(E,void 0,function(h){F._teardown();E.error(h)},function(){F._teardown();
E.complete()},function(){return F._teardown()})));
W.closed&&(this._connection=null,W=wU.JSC$6974_EMPTY)}return W};var uGR=Array.isArray;var pke=Array.isArray,TIp=Object,mRI=TIp.getPrototypeOf,Kpr=TIp.prototype,F7w=TIp.keys;var A1=function(F,W,E){eP.call(this,F);this._next=W;this.shouldComplete=E};
_.k(A1,eP);A1.JSC$6974_EMPTY=eP.JSC$6974_EMPTY;A1.create=eP.create;A1.prototype._complete=function(){this.shouldComplete()?eP.prototype._complete.call(this):this.unsubscribe()};var RNR=["addListener","removeListener"],UiY=["addEventListener","removeEventListener"],M9R=["on","off"];var tk=function(){wU.call(this)};
_.k(tk,wU);tk.JSC$6974_EMPTY=wU.JSC$6974_EMPTY;tk.prototype.schedule=function(){return this};var oWB=function(F,W){return setInterval.apply(null,[F,W].concat(_.x9(_.Dd.apply(2,arguments))))};var Cv=function(F,W){wU.call(this);this.scheduler=F;this.work=W;this.pending=!1};
_.k(Cv,tk);Cv.JSC$6974_EMPTY=tk.JSC$6974_EMPTY;Cv.prototype.schedule=function(F,W){W=W===void 0?0:W;if(this.closed)return this;this.state=F;F=this.id;var E=this.scheduler;F!=null&&(this.id=GRi(this,F,W));this.pending=!0;this.delay=W;this.id=this.id||this.requestAsyncId(E,this.id,W);return this};
Cv.prototype.requestAsyncId=function(F,W,E){E=E===void 0?0:E;return oWB(F.flush.bind(F,this),E)};
var GRi=function(F,W,E){E=E===void 0?0:E;if(E!=null&&F.delay===E&&F.pending===!1)return W;clearInterval(W)};
Cv.prototype.execute=function(F,W){if(this.closed)return Error("la");this.pending=!1;if(F=this._execute(F,W))return F;this.pending===!1&&this.id!=null&&(this.id=GRi(this,this.id,null))};
Cv.prototype._execute=function(F){var W=!1;try{this.work(F)}catch(h){W=!0;var E=!!h&&h||Error(h)}if(W)return this.unsubscribe(),E};
Cv.prototype.unsubscribe=function(){if(!this.closed){var F=this.id,W=this.scheduler.actions;this.work=this.state=this.scheduler=null;this.pending=!1;Gy(W,this);F!=null&&(this.id=GRi(this,F,null));this.delay=null;tk.prototype.unsubscribe.call(this)}};var YYc=function(F,W){W=W===void 0?jnc:W;ibH.call(this,F,W);this.actions=[];this.active=!1;this.scheduled=void 0};
_.k(YYc,ibH);YYc.prototype.flush=function(F){var W=this.actions;if(this.active)W.push(F);else{var E;this.active=!0;do if(E=F.execute(F.state,F.delay))break;while(F=W.shift());this.active=!1;if(E){for(;F=W.shift();)F.unsubscribe();throw E;}}};var Il=new FL(ui);var gwk=Array.isArray;var BK=function(F,W){Cv.call(this,F,W);this.scheduler=F;this.work=W};
_.k(BK,Cv);BK.JSC$6974_EMPTY=Cv.JSC$6974_EMPTY;BK.prototype.schedule=function(F,W){W=W===void 0?0:W;if(W>0)return Cv.prototype.schedule.call(this,F,W);this.delay=W;this.state=F;this.scheduler.flush(this);return this};
BK.prototype.execute=function(F,W){return W>0||this.closed?Cv.prototype.execute.call(this,F,W):this._execute(F,W)};
BK.prototype.requestAsyncId=function(F,W,E){E=E===void 0?0:E;return E!=null&&E>0||E==null&&this.delay>0?Cv.prototype.requestAsyncId.call(this,F,W,E):F.flush(this)};var wG_=function(){YYc.apply(this,arguments)};
_.k(wG_,YYc);var Yfr=new wG_(BK);var uei=function(){this.performanceMonitor=new Vke;this.queue=new Uwz;this.internalSymbol=Symbol();this.debugNames=new fS_};
uei.prototype.getOnBackgrounded=function(){return Il};
_.Sn.Object.defineProperties(uei.prototype,{symbol:{configurable:!0,enumerable:!0,get:function(){return this.internalSymbol}}});var vK=function(F,W){W=Error.call(this,W?F+": "+W:String(F));this.message=W.message;"stack"in W&&(this.stack=W.stack);this.code=F;this.__proto__=vK.prototype;this.name=String(F)};
_.k(vK,Error);var cE=function(F){vK.call(this,1E3,'sfr:"'+F+'"');this.measurementStrategyFailureReason=F;this.__proto__=cE.prototype};
_.k(cE,vK);var Dy=function(){vK.call(this,1003);this.__proto__=Dy.prototype};
_.k(Dy,vK);var IY=function(){vK.call(this,1009);this.__proto__=IY.prototype};
_.k(IY,vK);var SYe=function(){vK.call(this,1011);this.__proto__=SYe.prototype};
_.k(SYe,vK);var pG_=function(){vK.call(this,1007);this.__proto__=Dy.prototype};
_.k(pG_,vK);var zO=function(F){vK.call(this,1004,String(F));this.inputObservableIndex=F;this.__proto__=zO.prototype};
_.k(zO,vK);var n9Y=function(F){vK.call(this,1010,F);this.__proto__=tN.prototype};
_.k(n9Y,vK);var tN=function(F){vK.call(this,1005,F);this.__proto__=tN.prototype};
_.k(tN,vK);var mwc=function(F){var W=_.Dd.apply(1,arguments),E=this;this.orderedFactories=[];this.orderedFactories.push(F);W.forEach(function(h){E.orderedFactories.push(h)})};
mwc.prototype.isSupported=function(F){return this.orderedFactories.some(function(W){return W.isSupported(F)})};
mwc.prototype.makeBeacon=function(F,W){for(var E=0;E<this.orderedFactories.length;E++)if(this.orderedFactories[E].isSupported(W))return this.orderedFactories[E].makeBeacon(F,W);throw new IY;};var ANn=Symbol("ma"),KY_=Symbol("na"),Pw=function(F,W){this.value=F;this.timeline=W},Hw=function(F,W){if(W.timeline!==F.timeline)throw new pG_;
return F.value-W.value};
_.N=Pw.prototype;_.N.equals=function(F){return Hw(this,F)===0};
_.N.maximum=function(F){if(F.timeline!==this.timeline)throw new pG_;return this.value>=F.value?this:F};
_.N.round=function(){return new Pw(Math.round(this.value),this.timeline)};
_.N.add=function(F){return new Pw(this.value+F,this.timeline)};
_.N.toString=function(){return String(this.value)};var cK=function(F,W){this.context=F;this.JSC$7101_pinger=W};
cK.prototype.isSupported=function(F){return this.JSC$7101_pinger.isSupported(F)};
cK.prototype.makeBeacon=function(F,W){if(!this.isSupported(W))throw new IY;return new D9(this.context,this.JSC$7101_pinger,W!=null?W:void 0,F)};
var D9=function(F,W,E,h){var d=this;this.JSC$7107_pinger=W;this.properties=E;this.url=h;this.internalIsPending=!0;this.customHeaders=new Map;this.body=void 0;var V;this.method=(V=E==null?void 0:E.beaconMethod)!=null?V:"GET";this.backgroundedSubscription=F.getOnBackgrounded().subscribe(function(){d.sendNow()})};
D9.prototype.deactivate=function(){this.internalIsPending=!1};
D9.prototype.sendNow=function(){if(this.internalIsPending)if(this.backgroundedSubscription.unsubscribe(),this.JSC$7107_pinger.isSupported(this.properties))try{if(this.customHeaders.size>0||this.body!==void 0){var F,W;this.JSC$7107_pinger.pingWithHeadersAndBody((F=this.properties)!=null?F:{},this.customHeaders,(W=this.body)!=null?W:"",this.url)}else this.JSC$7107_pinger.ping(this.url);this.internalIsPending=!1}catch(E){}else this.internalIsPending=!1};
D9.prototype.setHeader=function(F){this.customHeaders.set(F,void 0)};
_.Sn.Object.defineProperties(D9.prototype,{isPending:{configurable:!0,enumerable:!0,get:function(){return this.internalIsPending}}});var WXp=function(){for(var F=_.U(_.Dd.apply(0,arguments)),W=F.next();!W.done;W=F.next())if(W=W.value,W.available()){this.timeProvider=W;return}this.timeProvider=new FXB};
_.N=WXp.prototype;_.N.available=function(){return this.timeProvider.available()};
_.N.now=function(){return this.timeProvider.now()};
_.N.setTimeout=function(F,W){return this.timeProvider.setTimeout(F,W)};
_.N.clearTimeout=function(F){this.timeProvider.clearTimeout(F)};
_.N.interval=function(F,W){var E=this.intervalObservable(F).subscribe(W);return function(){return void E.unsubscribe()}};
_.N.intervalObservable=function(F){return this.timeProvider.intervalObservable(F)};
_.Sn.Object.defineProperties(WXp.prototype,{timeline:{configurable:!0,enumerable:!0,get:function(){return this.timeProvider.timeline}}});
var FXB=function(){this.timeline=Symbol()};
_.N=FXB.prototype;_.N.available=function(){return!1};
_.N.now=function(){return new Pw(0,this.timeline)};
_.N.setTimeout=function(){return 0};
_.N.clearTimeout=function(){};
_.N.interval=function(){return function(){}};
_.N.intervalObservable=function(){return Il};var xc=function(F,W){this.intrinsicFunctionNamespace=F;this.performanceMonitor=W};
_.N=xc.prototype;_.N.setTimeout=function(F,W){return this.intrinsicFunctionNamespace.setTimeout(this.performanceMonitor.timeExecution(734,F),W)};
_.N.clearTimeout=function(F){this.intrinsicFunctionNamespace.clearTimeout(F)};
_.N.interval=function(F,W){var E=this.intervalObservable(F).subscribe(W);return function(){return void E.unsubscribe()}};
_.N.intervalObservable=function(F){var W=this;return new FL(function(E){var h=0,d=W.intrinsicFunctionNamespace.setInterval(function(){E.next(h++)},F);
return function(){W.intrinsicFunctionNamespace.clearInterval(d)}})};
_.N.available=function(){return!!this.intrinsicFunctionNamespace.clearTimeout&&"setTimeout"in this.intrinsicFunctionNamespace&&"setInterval"in this.intrinsicFunctionNamespace&&!!this.intrinsicFunctionNamespace.clearInterval};var EBi=function(F,W){xc.call(this,F,W);this.timeline=KY_};
_.k(EBi,xc);EBi.prototype.now=function(){return new Pw(this.intrinsicFunctionNamespace.Date.now(),this.timeline)};
EBi.prototype.available=function(){return!!this.intrinsicFunctionNamespace.Date&&!!this.intrinsicFunctionNamespace.Date.now&&xc.prototype.available.call(this)};var hue=function(F,W){xc.call(this,F,W);this.timeline=ANn};
_.k(hue,xc);hue.prototype.now=function(){return new Pw(this.intrinsicFunctionNamespace.performance.now(),this.timeline)};
hue.prototype.available=function(){return!!this.intrinsicFunctionNamespace.performance&&!!this.intrinsicFunctionNamespace.performance.now&&xc.prototype.available.call(this)};var Ncu=function(F){this.context=F;if(dUc===void 0)a:{var W,E,h=(W=F.global)==null?void 0:(E=W.document)==null?void 0:E.createElement("meta");if(h)try{h.httpEquiv="origin-trial";h.content="AxjhRadLCARYRJawRjMjq4U8V8okQvSnrBIJWdMajuEkN3/DfVAcLcFhMVrUWnOXagwlI8dQD84FwJDGj9ohqAYAAABveyJvcmlnaW4iOiJodHRwczovL2dvb2dsZWFkc2VydmljZXMuY29tOjQ0MyIsImZlYXR1cmUiOiJGZXRjaExhdGVyQVBJIiwiZXhwaXJ5IjoxNzI1NDA3OTk5LCJpc1RoaXJkUGFydHkiOnRydWV9";F.global.document.head.append(h);dUc=h;break a}catch(d){}dUc=void 0}},
dUc;
Ncu.prototype.isSupported=function(F){return xir(this.context)!==void 0&&!(F==null||!F.endOfSession)&&!kc(this.context)&&!(F==null?0:F.attributionEnabled)&&!(F==null?0:F.customHeaders)&&!(F==null?0:F.customBody)};
Ncu.prototype.makeBeacon=function(F,W){if(!this.isSupported(W))throw new IY;return new Ak(this.context,F,W)};
var Ak=function(F,W,E){this.context=F;this.properties=E;this.JSC$7134_urlWithoutToken=W;var h;this.beaconMethod=(h=E==null?void 0:E.beaconMethod)!=null?h:"GET";F=xir(this.context);if(F===void 0)throw Error();this.fetchLater=F;VH_(this,UUz(this))},VH_=function(F,W){F.beaconResult&&F.beaconResult.activated||(F.beaconAbort=new AbortController,F.beaconResult=F.fetchLater(W,{method:F.beaconMethod,
cache:"no-cache",mode:"no-cors",signal:F.beaconAbort.signal,activateAfter:96E4}))},UUz=function(F){F=F.JSC$7134_urlWithoutToken;
return(F.slice(-1)[0]==="&"?F:F+"&")+"flapi=1"};
Ak.prototype.deactivate=function(){this.beaconResult&&!this.beaconResult.activated&&this.beaconAbort&&(this.beaconAbort.abort(),this.beaconResult=void 0)};
Ak.prototype.sendNow=function(){};
Ak.prototype.setHeader=function(){};
_.Sn.Object.defineProperties(Ak.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$7134_urlWithoutToken},
set:function(F){this.JSC$7134_urlWithoutToken=F;F=UUz(this);this.beaconResult&&this.beaconResult.activated||!this.beaconAbort||(this.beaconAbort.abort(),this.beaconResult=void 0);VH_(this,F)}},
method:{configurable:!0,enumerable:!0,get:function(){return this.beaconMethod}},
isPending:{configurable:!0,enumerable:!0,get:function(){return this.beaconResult?!this.beaconResult.activated:!1}}});var RuT=function(F){this.context=F};
RuT.prototype.isSupported=function(){return!kc(this.context)&&!!this.context.global.fetch};
RuT.prototype.ping=function(){var F=this;return ZV.apply(null,_.x9(_.Dd.apply(0,arguments).map(function(W){return dG(F.context.global.fetch(W,{method:"GET",cache:"no-cache",keepalive:!0,mode:"no-cors"})).pipe(cw(function(E){return E.status===200}))}))).pipe(Zub(function(W){return W}),HuR())};
RuT.prototype.pingWithHeadersAndBody=function(F,W,E){for(var h=_.Dd.apply(3,arguments),d=this,V=new Headers,R=_.U(W.entries()),M=R.next();!M.done;M=R.next()){var g=_.U(M.value);M=g.next().value;g=g.next().value;V.set(M,g)}var t,C=(t=F.keepAlive)!=null?t:!1;ZV.apply(null,_.x9(h.map(function(B){return dG(d.context.global.fetch(B,Object.assign({},{method:String(F.beaconMethod),cache:"no-cache"},C?{keepalive:!0}:{},{mode:"no-cors",headers:V,body:E}))).pipe(cw(function(I){return I.status===200}))}))).pipe(Zub(function(B){return B}),
HuR())};var euB,$tr;_.sn=function(){};
_.io=function(F){return F};
euB=function(F){var W=W||0;return function(){return F.apply(this,Array.prototype.slice.call(arguments,0,W))}};
_.Lv=function(F){var W=!1,E;return function(){W||(E=F(),W=!0);return E}};
_.qS=function(F,W){var E=0;return function(h){_.EY.clearTimeout(E);var d=arguments;E=_.EY.setTimeout(function(){F.apply(void 0,d)},W)}};
$tr=function(F,W){var E=0,h=!1,d=[],V=function(){E=0;h&&(h=!1,R())},R=function(){E=_.EY.setTimeout(V,W);
var M=d;d=[];F.apply(void 0,M)};
return function(M){d=arguments;E?h=!0:R()}};var gBc=function(){return vG&&cG?cG.mobile:!MHO()&&(Ar("iPod")||Ar("iPhone")||Ar("Android")||Ar("IEMobile"))},MHO=function(){return vG&&cG?!cG.mobile&&(Ar("iPad")||Ar("Android")||Ar("Silk")):Ar("iPad")||Ar("Android")&&!Ar("Mobile")||Ar("Silk")};var QiB;_.xd={};QiB="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");_.xd.add=function(F,W,E){if(F!==null&&W in F)throw Error("pa`"+W);F[W]=E};
_.xd.clear=function(F){for(var W in F)delete F[W]};
_.xd.clone=function(F){var W={},E;for(E in F)W[E]=F[E];return W};
_.xd.contains=function(F,W){return adS(F,W)};
_.xd.containsKey=function(F,W){return F!==null&&W in F};
_.xd.containsValue=adS;_.xd.create=buo;_.xd.createImmutableView=function(F){var W=F;Object.isFrozen&&!Object.isFrozen(F)&&(W=Object.create(F),Object.freeze(W));return W};
_.xd.createSet=ldR;_.xd.equals=function(F,W){for(var E in F)if(!(E in W)||F[E]!==W[E])return!1;for(var h in W)if(!(h in F))return!1;return!0};
_.xd.every=function(F,W,E){for(var h in F)if(!W.call(E,F[h],h,F))return!1;return!0};
_.xd.extend=function(F,W){for(var E,h,d=1;d<arguments.length;d++){h=arguments[d];for(E in h)F[E]=h[E];for(var V=0;V<QiB.length;V++)E=QiB[V],Object.prototype.hasOwnProperty.call(h,E)&&(F[E]=h[E])}};
_.xd.filter=function(F,W,E){var h={},d;for(d in F)W.call(E,F[d],d,F)&&(h[d]=F[d]);return h};
_.xd.findKey=fdR;_.xd.findValue=function(F,W,E){return(W=fdR(F,W,E))&&F[W]};
_.xd.forEach=function(F,W,E){for(var h in F)W.call(E,F[h],h,F)};
_.xd.get=function(F,W,E){return F!==null&&W in F?F[W]:E};
_.xd.getAllPropertyNames=function(F,W,E){if(!F)return[];if(!Object.getOwnPropertyNames||!Object.getPrototypeOf)return Jyw(F);for(var h={};F&&(F!==Object.prototype||W)&&(F!==Function.prototype||E);){for(var d=Object.getOwnPropertyNames(F),V=0;V<d.length;V++)h[d[V]]=!0;F=Object.getPrototypeOf(F)}return Jyw(h)};
_.xd.getAnyKey=function(F){for(var W in F)return W};
_.xd.getAnyValue=function(F){for(var W in F)return F[W]};
_.xd.getCount=function(F){var W=0,E;for(E in F)W++;return W};
_.xd.getKeys=Jyw;_.xd.getSuperClass=function(F){return(F=Object.getPrototypeOf(F.prototype))&&F.constructor};
_.xd.getValueByKeys=function(F,W){var E=_.Ee(W),h=E?W:arguments;for(E=E?0:1;E<h.length;E++){if(F==null)return;F=F[h[E]]}return F};
_.xd.getValues=function(F){var W=[],E=0,h;for(h in F)W[E++]=F[h];return W};
_.xd.isEmpty=function(F){for(var W in F)return!1;return!0};
_.xd.isImmutableView=function(F){return!!Object.isFrozen&&Object.isFrozen(F)};
_.xd.map=function(F,W,E){var h={},d;for(d in F)h[d]=W.call(E,F[d],d,F);return h};
_.xd.remove=function(F,W){var E;(E=W in F)&&delete F[W];return E};
_.xd.set=function(F,W,E){F[W]=E};
_.xd.setIfUndefined=function(F,W,E){return W in F?F[W]:F[W]=E};
_.xd.setWithReturnValueIfNotSet=function(F,W,E){if(W in F)return F[W];E=E();return F[W]=E};
_.xd.some=function(F,W,E){for(var h in F)if(W.call(E,F[h],h,F))return!0;return!1};
_.xd.transpose=function(F){var W={},E;for(E in F)W[F[E]]=E;return W};
_.xd.unsafeClone=OuI;var $c=function(F,W,E,h,d){this.allowedElements=F;this.elementPolicies=W;this.allowedGlobalAttributes=E;this.globalAttributePolicies=h;this.globallyAllowedAttributePrefixes=d},zu_=function(F,W,E){E=F.elementPolicies.get(E);
return(E==null?0:E.has(W))?E.get(W):F.allowedGlobalAttributes.has(W)?{policyAction:1}:(E=F.globalAttributePolicies.get(W))?E:F.globallyAllowedAttributePrefixes&&[].concat(_.x9(F.globallyAllowedAttributePrefixes)).some(function(h){return W.indexOf(h)===0})?{policyAction:1}:{policyAction:0}};var tHp="ARTICLE SECTION NAV ASIDE H1 H2 H3 H4 H5 H6 HEADER FOOTER ADDRESS P HR PRE BLOCKQUOTE OL UL LH LI DL DT DD FIGURE FIGCAPTION MAIN DIV EM STRONG SMALL S CITE Q DFN ABBR RUBY RB RT RTC RP DATA TIME CODE VAR SAMP KBD SUB SUP I B U MARK BDI BDO SPAN BR WBR NOBR INS DEL PICTURE PARAM TRACK MAP TABLE CAPTION COLGROUP COL TBODY THEAD TFOOT TR TD TH SELECT DATALIST OPTGROUP OPTION OUTPUT PROGRESS METER FIELDSET LEGEND DETAILS SUMMARY MENU DIALOG SLOT CANVAS FONT CENTER ACRONYM BASEFONT BIG DIR HGROUP STRIKE TT".split(" "),
C__=[["A",new Map([["href",{policyAction:2}]])],["AREA",new Map([["href",{policyAction:2}]])],["LINK",new Map([["href",{policyAction:5,conditions:new Map([["rel",new Set("alternate author bookmark canonical cite help icon license next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" "))]])}]])],["SOURCE",new Map([["src",{policyAction:5}],["srcset",{policyAction:6}]])],["IMG",new Map([["src",{policyAction:5}],["srcset",{policyAction:6}]])],["VIDEO",new Map([["src",
{policyAction:5}]])],["AUDIO",new Map([["src",{policyAction:5}]])]],Bc_="title aria-atomic aria-autocomplete aria-busy aria-checked aria-current aria-disabled aria-dropeffect aria-expanded aria-haspopup aria-hidden aria-invalid aria-label aria-level aria-live aria-multiline aria-multiselectable aria-orientation aria-posinset aria-pressed aria-readonly aria-relevant aria-required aria-selected aria-setsize aria-sort aria-valuemax aria-valuemin aria-valuenow aria-valuetext alt align autocapitalize autocomplete autocorrect autofocus autoplay bgcolor border cellpadding cellspacing checked cite color cols colspan controls controlslist crossorigin datetime disabled download draggable enctype face formenctype frameborder height hreflang hidden ismap label lang loop max maxlength media minlength min multiple muted nonce open playsinline placeholder poster preload rel required reversed role rows rowspan selected shape size sizes slot span spellcheck start step summary translate type valign value width wrap itemscope itemtype itemid itemprop itemref".split(" "),
vBB=[["dir",{policyAction:3,conditions:VK(function(){return new Map([["dir",new Set(["auto","ltr","rtl"])]])})}],
["async",{policyAction:3,conditions:VK(function(){return new Map([["async",new Set(["async"])]])})}],
["loading",{policyAction:3,conditions:VK(function(){return new Map([["loading",new Set(["eager","lazy"])]])})}],
["target",{policyAction:3,conditions:VK(function(){return new Map([["target",new Set(["_self","_blank"])]])})}]],I_e=new $c(new Set(tHp),new Map(C__),new Set(Bc_),new Map(vBB)),caT=new $c(new Set(tHp.concat(["BUTTON",
"INPUT"])),new Map(C__),new Set(VK(function(){return Bc_.concat(["class","id","name"])})),new Map(VK(function(){return vBB.concat([["style",
{policyAction:1}]])})));var DUa,xUM,AaB;DUa=function(F,W,E,h){this.JSC$7194_sanitizerTable=F;this.styleElementSanitizer=W;this.styleAttributeSanitizer=E;this.JSC$7194_resourceUrlPolicy=h;this.changes=[]};
_.kza=function(F,W){var E=document.implementation.createHTMLDocument("");F=xUM(F,W,E);E=E.body;E.appendChild(F);E=(new XMLSerializer).serializeToString(E);E=E.slice(E.indexOf(">")+1,E.lastIndexOf("</"));return $w(E)};
xUM=function(F,W,E){W=yyo(W,E);W=document.createTreeWalker(W,5,function(M){if(M.nodeType===3)M=1;else if(iuR(M))if(M=jIo(M),M===null)M=2;else{var g=F.JSC$7194_sanitizerTable;M=M!=="FORM"&&(g.allowedElements.has(M)||g.elementPolicies.has(M))?1:2}else M=2;return M});
for(var h=W.nextNode(),d=E.createDocumentFragment(),V=d;h!==null;){var R=void 0;if(h.nodeType===3)F.styleElementSanitizer&&V.nodeName==="STYLE"?(h=F.styleElementSanitizer(h.data),R=F.createTextNode(h)):R=F.createTextNode(h.data);else if(iuR(h))R=AaB(F,h,E);else throw Error("da");V.appendChild(R);if(h=W.firstChild())V=R;else for(;!(h=W.nextSibling())&&(h=W.parentNode());)V=V.parentNode}return d};
DUa.prototype.createTextNode=function(F){return document.createTextNode(F)};
AaB=function(F,W,E){var h,d=jIo(W);E=E.createElement(d);W=W.attributes;for(var V=_.U(W),R=V.next();!R.done;R=V.next()){var M=R.value;R=M.name;M=M.value;var g=zu_(F.JSC$7194_sanitizerTable,R,d);a:{if(h=g.conditions){h=_.U(h);for(var t=h.next();!t.done;t=h.next()){var C=_.U(t.value);t=C.next().value;C=C.next().value;var B=void 0;if((t=(B=W.getNamedItem(t))==null?void 0:B.value)&&!C.has(t)){h=!1;break a}}}h=!0}if(h)switch(g.policyAction){case 1:pL(E,R,M);break;case 2:g=_.Buo(M);M=g!==void 0&&sni.indexOf(g.toLowerCase())!==
-1?M:"about:invalid#zClosurez";pL(E,R,M);break;case 3:pL(E,R,M.toLowerCase());break;case 4:F.styleAttributeSanitizer?(M=F.styleAttributeSanitizer(M),pL(E,R,M)):pL(E,R,M);break;case 5:F.JSC$7194_resourceUrlPolicy?(g={type:2,attributeName:R,elementName:d},M=nwI(M),(M=F.JSC$7194_resourceUrlPolicy(M,g))&&pL(E,R,M.toString())):pL(E,R,M);break;case 6:if(F.JSC$7194_resourceUrlPolicy){g={type:2,attributeName:R,elementName:d};h=[];M=_.U(M.split(","));for(t=M.next();!t.done;t=M.next())C=_.U(t.value.trim().split(/\s+/,
2)),t=C.next().value,C=C.next().value,h.push({url:t,descriptor:C});M={parts:[]};h=_.U(h);for(t=h.next();!t.done;t=h.next())t=t.value,C=nwI(t.url),(C=F.JSC$7194_resourceUrlPolicy(C,g))&&M.parts.push({url:C.toString(),descriptor:t.descriptor});pL(E,R,ryn(M))}else pL(E,R,M)}}return E};
_.sic=VK(function(){return new DUa(I_e)});
_.LXc=VK(function(){return new DUa(caT)});var qeU=function(){this.calledBuild=!1;this.JSC$7206_sanitizerTable=I_e},$Uu=function(){qeU.apply(this,arguments)};
_.k($Uu,qeU);$Uu.prototype.build=function(){if(this.calledBuild)throw Error("ra");this.calledBuild=!0;return new DUa(this.JSC$7206_sanitizerTable,void 0,void 0,this.JSC$7206_resourceUrlPolicy)};var ZTH=/[^#]*/;var ol=function(F){try{return!!F&&F.location.href!=null&&$d(F,"foo")}catch(W){return!1}},HTO=function(F){var W=XOz;
if(W)for(var E in W)Object.prototype.hasOwnProperty.call(W,E)&&F(W[E],E,W)},P_a=function(){var F=[];
HTO(function(W){F.push(W)});
return F},XOz={ALLOW_FORMS:"allow-forms",
ALLOW_MODALS:"allow-modals",ALLOW_ORIENTATION_LOCK:"allow-orientation-lock",ALLOW_POINTER_LOCK:"allow-pointer-lock",ALLOW_POPUPS:"allow-popups",ALLOW_POPUPS_TO_ESCAPE_SANDBOX:"allow-popups-to-escape-sandbox",ALLOW_PRESENTATION:"allow-presentation",ALLOW_SAME_ORIGIN:"allow-same-origin",ALLOW_SCRIPTS:"allow-scripts",ALLOW_TOP_NAVIGATION:"allow-top-navigation",ALLOW_TOP_NAVIGATION_BY_USER_ACTIVATION:"allow-top-navigation-by-user-activation"},Jaa=_.Lv(function(){return P_a()}),f__=function(){var F=a_M("IFRAME"),
W={};
_.Tk(Jaa(),function(E){F.sandbox&&F.sandbox.supports&&F.sandbox.supports(E)&&(W[E]=!0)});
return W},a_M=function(F,W){W=W===void 0?document:W;
return W.createElement(String(F).toLowerCase())};var Z9;_.jX=function(F,W,E){return Math.min(Math.max(F,W),E)};
Z9=function(F,W,E){return F+E*(W-F)};_.sp=function(F,W){this.x=F!==void 0?F:0;this.y=W!==void 0?W:0};
_.N=_.sp.prototype;_.N.clone=function(){return new _.sp(this.x,this.y)};
_.N.equals=function(F){return F instanceof _.sp&&(this==F?!0:this&&F?this.x==F.x&&this.y==F.y:!1)};
_.N.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};
_.N.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
_.N.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};
_.N.translate=function(F,W){F instanceof _.sp?(this.x+=F.x,this.y+=F.y):(this.x+=Number(F),typeof W==="number"&&(this.y+=W));return this};
_.N.scale=function(F,W){this.x*=F;this.y*=typeof W==="number"?W:F;return this};_.Rl=function(F,W){this.width=F;this.height=W};
_.N=_.Rl.prototype;_.N.clone=function(){return new _.Rl(this.width,this.height)};
_.N.area=function(){return this.width*this.height};
_.N.aspectRatio=function(){return this.width/this.height};
_.N.isEmpty=function(){return!this.area()};
_.N.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
_.N.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
_.N.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
_.N.scale=function(F,W){this.width*=F;this.height*=typeof W==="number"?W:F;return this};var lf=function(F,W){this.stringConstValueWithSecurityContract__googStringSecurityPrivate_=F===DrG&&W||"";this.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_=OTz};
lf.prototype.toString=function(){return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_};
var bTe=function(F){return F instanceof lf&&F.constructor===lf&&F.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_===OTz?F.stringConstValueWithSecurityContract__googStringSecurityPrivate_:"type_error:Const"},OTz={},DrG={};
new lf(DrG,"");var gn,vb,HK,l_O,jiH,yaM,LC,raH,oBc,Tca,fv,Gzp,KXO,mUe,pOU,Fgz,WgB,EKi,h6_,nuS,dFM,V$M,UFp,NwM,X0;gn=function(F){return F?new X0(_.qp(F)):Elr||(Elr=new X0)};
_.hG=function(F,W){return typeof W==="string"?F.getElementById(W):W};
vb=function(F,W){return(W||document).getElementsByTagName(String(F))};
_.nBi=function(F){return l_O("yt-formatted-string","paper-input-input",F)};
HK=function(F,W,E,h){F=h||F;return(W=W&&W!="*"?String(W).toUpperCase():"")||E?F.querySelectorAll(W+(E?"."+E:"")):F.getElementsByTagName("*")};
l_O=function(F,W,E){var h=document,d=F&&F!="*"?String(F).toUpperCase():"";return d||W?(E||h).querySelector(d+(W?"."+W:"")):HK(h,F,W,E)[0]||null};
jiH=function(F,W){_.xd.forEach(W,function(E,h){h=="style"?F.style.cssText=E:h=="class"?F.className=E:h=="for"?F.htmlFor=E:yaM.hasOwnProperty(h)?F.setAttribute(yaM[h],E):_.Vo(h,"aria-")||_.Vo(h,"data-")?F.setAttribute(h,E):F[h]=E})};
yaM={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",nonce:"nonce",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"};_.eU=function(F){F=(F||window).document;F=F.compatMode=="CSS1Compat"?F.documentElement:F.body;return new _.Rl(F.clientWidth,F.clientHeight)};
_.iT_=function(F){var W=_.PK(F);F=F.defaultView;return new _.sp(F.pageXOffset||W.scrollLeft,F.pageYOffset||W.scrollTop)};
_.PK=function(F){return F.scrollingElement?F.scrollingElement:_.BY||F.compatMode!="CSS1Compat"?F.body||F.documentElement:F.documentElement};
LC=function(F){return F?F.defaultView:window};
_.Jk=function(F,W,E){return raH(document,arguments)};
raH=function(F,W){var E=W[1],h=Tca(F,String(W[0]));E&&(typeof E==="string"?h.className=E:Array.isArray(E)?h.className=E.join(" "):jiH(h,E));W.length>2&&oBc(F,h,W,2);return h};
oBc=function(F,W,E,h){function d(M){M&&W.appendChild(typeof M==="string"?F.createTextNode(M):M)}
for(;h<E.length;h++){var V=E[h];if(!_.Ee(V)||_.NU(V)&&V.nodeType>0)d(V);else{a:{if(V&&typeof V.length=="number"){if(_.NU(V)){var R=typeof V.item=="function"||typeof V.item=="string";break a}if(typeof V==="function"){R=typeof V.item=="function";break a}}R=!1}_.Tk(R?_.Kb(V):V,d)}}};
_.Cr=function(F){return Tca(document,F)};
Tca=function(F,W){W=String(W);F.contentType==="application/xhtml+xml"&&(W=W.toLowerCase());return F.createElement(W)};
_.aY=function(){return document.createTextNode("\n")};
fv=function(F){if(F.nodeType!=1)return!1;switch(F.tagName){case "APPLET":case "AREA":case "BASE":case "BR":case "COL":case "COMMAND":case "EMBED":case "FRAME":case "HR":case "IMG":case "INPUT":case "IFRAME":case "ISINDEX":case "KEYGEN":case "LINK":case "NOFRAMES":case "NOSCRIPT":case "META":case "OBJECT":case "PARAM":case "SCRIPT":case "SOURCE":case "STYLE":case "TRACK":case "WBR":return!1}return!0};
Gzp=function(F,W){oBc(_.qp(F),F,arguments,1)};
_.On=function(F){for(var W;W=F.firstChild;)F.removeChild(W)};
_.bk=function(F,W){W.parentNode&&W.parentNode.insertBefore(F,W)};
_.lk=function(F,W){W.parentNode&&W.parentNode.insertBefore(F,W.nextSibling)};
_.Bb=function(F){return F&&F.parentNode?F.parentNode.removeChild(F):null};
_.Yea=function(F,W){var E=W.parentNode;E&&E.replaceChild(F,W)};
_.wOO=function(F){var W,E=F.parentNode;if(E&&E.nodeType!=11)if(F.removeNode)F.removeNode(!1);else{for(;W=F.firstChild;)E.insertBefore(W,F);_.Bb(F)}};
_.nv=function(F){return F.children!=void 0?F.children:Array.prototype.filter.call(F.childNodes,function(W){return W.nodeType==1})};
_.Se_=function(F){return F.nextElementSibling!==void 0?F.nextElementSibling:_.upB(F.nextSibling,!0)};
_.upB=function(F,W){for(;F&&F.nodeType!=1;)F=W?F.nextSibling:F.previousSibling;return F};
_.pM=function(F){return _.NU(F)&&F.nodeType==1};
_.bg=function(F,W){if(!F||!W)return!1;if(F.contains&&W.nodeType==1)return F==W||F.contains(W);if(typeof F.compareDocumentPosition!="undefined")return F==W||!!(F.compareDocumentPosition(W)&16);for(;W&&F!=W;)W=W.parentNode;return W==F};
KXO=function(F,W){if(F==W)return 0;if(F.compareDocumentPosition)return F.compareDocumentPosition(W)&2?1:-1;if("sourceIndex"in F||F.parentNode&&"sourceIndex"in F.parentNode){var E=F.nodeType==1,h=W.nodeType==1;if(E&&h)return F.sourceIndex-W.sourceIndex;var d=F.parentNode,V=W.parentNode;return d==V?pOU(F,W):!E&&_.bg(d,W)?-1*mUe(F,W):!h&&_.bg(V,F)?mUe(W,F):(E?F.sourceIndex:d.sourceIndex)-(h?W.sourceIndex:V.sourceIndex)}h=_.qp(F);E=h.createRange();E.selectNode(F);E.collapse(!0);F=h.createRange();F.selectNode(W);
F.collapse(!0);return E.compareBoundaryPoints(_.EY.Range.START_TO_END,F)};
mUe=function(F,W){var E=F.parentNode;if(E==W)return-1;for(;W.parentNode!=E;)W=W.parentNode;return pOU(W,F)};
pOU=function(F,W){for(;W=W.previousSibling;)if(W==F)return-1;return 1};
Fgz=function(F){var W,E=arguments.length;if(!E)return null;if(E==1)return arguments[0];var h=[],d=Infinity;for(W=0;W<E;W++){for(var V=[],R=arguments[W];R;)V.unshift(R),R=R.parentNode;h.push(V);d=Math.min(d,V.length)}V=null;for(W=0;W<d;W++){R=h[0][W];for(var M=1;M<E;M++)if(R!=h[M][W])return V;V=R}return V};
_.qp=function(F){return F.nodeType==9?F:F.ownerDocument||F.document};
WgB=function(F){return F.contentDocument||F.contentWindow.document};
_.yB=function(F,W){if("textContent"in F)F.textContent=W;else if(F.nodeType==3)F.data=String(W);else if(F.firstChild&&F.firstChild.nodeType==3){for(;F.lastChild!=F.firstChild;)F.removeChild(F.lastChild);F.firstChild.data=String(W)}else _.On(F),F.appendChild(_.qp(F).createTextNode(String(W)))};
EKi={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1};h6_={IMG:" ",BR:"\n"};nuS=function(F){var W;F.tagName=="A"&&F.hasAttribute("href")||F.tagName=="INPUT"||F.tagName=="TEXTAREA"||F.tagName=="SELECT"||F.tagName=="BUTTON"?W=!F.disabled&&(!F.hasAttribute("tabindex")||dFM(F)):W=F.hasAttribute("tabindex")&&dFM(F);return W};
dFM=function(F){F=F.tabIndex;return typeof F==="number"&&F>=0&&F<32768};
V$M=function(F){var W=[];NwM(F,W,!0);F=W.join("");F=F.replace(/ \xAD /g," ").replace(/\xAD/g,"");F=F.replace(/\u200B/g,"");F=F.replace(/ +/g," ");F!=" "&&(F=F.replace(/^\s*/,""));return F};
UFp=function(F){var W=[];NwM(F,W,!1);return W.join("")};
NwM=function(F,W,E){if(!(F.nodeName in EKi))if(F.nodeType==3)E?W.push(String(F.nodeValue).replace(/(\r\n|\r|\n)/g,"")):W.push(F.nodeValue);else if(F.nodeName in h6_)W.push(h6_[F.nodeName]);else for(F=F.firstChild;F;)NwM(F,W,E),F=F.nextSibling};
_.R6_=function(F,W,E){if(!W&&!E)return null;var h=W?String(W).toUpperCase():null;return _.HE(F,function(d){return(!h||d.nodeName==h)&&(!E||typeof d.className==="string"&&_.on(d.className.split(/\s+/),E))},!0)};
_.HE=function(F,W,E){F&&!E&&(F=F.parentNode);for(E=0;F;){if(W(F))return F;F=F.parentNode;E++}return null};
X0=function(F){this.JSC$7231_document_=F||_.EY.document||document};
_.N=X0.prototype;_.N.getElement=function(F){return _.hG(this.JSC$7231_document_,F)};
_.N.$=X0.prototype.getElement;_.N.getElementsByTagName=function(F,W){return(W||this.JSC$7231_document_).getElementsByTagName(String(F))};
_.N.getElementsByTagNameAndClass=function(F,W,E){return HK(this.JSC$7231_document_,F,W,E)};
_.N.$$=X0.prototype.getElementsByTagNameAndClass;_.N.setProperties=jiH;_.N.JSC$7233_createDom=function(F,W,E){return raH(this.JSC$7231_document_,arguments)};
_.N.createElement=function(F){return Tca(this.JSC$7231_document_,F)};
_.N.createTextNode=function(F){return this.JSC$7231_document_.createTextNode(String(F))};
_.N.getWindow=function(){return this.JSC$7231_document_.defaultView};
var Mp=function(F){return _.iT_(F.JSC$7231_document_)};
_.N=X0.prototype;_.N.appendChild=function(F,W){F.appendChild(W)};
_.N.append=Gzp;_.N.canHaveChildren=fv;_.N.removeNode=_.Bb;_.N.getChildren=_.nv;_.N.contains=_.bg;_.N=Fn.prototype;_.N.getWidth=function(){return this.right-this.left};
_.N.getHeight=function(){return this.bottom-this.top};
_.N.clone=function(){return new Fn(this.top,this.right,this.bottom,this.left)};
_.N.contains=function(F){return this&&F?F instanceof Fn?F.left>=this.left&&F.right<=this.right&&F.top>=this.top&&F.bottom<=this.bottom:F.x>=this.left&&F.x<=this.right&&F.y>=this.top&&F.y<=this.bottom:!1};
_.N.expand=function(F,W,E,h){_.NU(F)?(this.top-=F.top,this.right+=F.right,this.bottom+=F.bottom,this.left-=F.left):(this.top-=F,this.right+=Number(W),this.bottom+=Number(E),this.left-=Number(h));return this};
_.N.ceil=function(){this.top=Math.ceil(this.top);this.right=Math.ceil(this.right);this.bottom=Math.ceil(this.bottom);this.left=Math.ceil(this.left);return this};
_.N.floor=function(){this.top=Math.floor(this.top);this.right=Math.floor(this.right);this.bottom=Math.floor(this.bottom);this.left=Math.floor(this.left);return this};
_.N.round=function(){this.top=Math.round(this.top);this.right=Math.round(this.right);this.bottom=Math.round(this.bottom);this.left=Math.round(this.left);return this};
_.N.translate=function(F,W){F instanceof _.sp?(this.left+=F.x,this.right+=F.x,this.top+=F.y,this.bottom+=F.y):(this.left+=F,this.right+=F,typeof W==="number"&&(this.top+=W,this.bottom+=W));return this};
_.N.scale=function(F,W){W=typeof W==="number"?W:F;this.left*=F;this.right*=F;this.top*=W;this.bottom*=W;return this};var jP=function(F,W,E,h){this.left=F;this.top=W;this.width=E;this.height=h};
_.N=jP.prototype;_.N.clone=function(){return new jP(this.left,this.top,this.width,this.height)};
_.N.boundingRect=function(F){var W=Math.max(this.left+this.width,F.left+F.width),E=Math.max(this.top+this.height,F.top+F.height);this.left=Math.min(this.left,F.left);this.top=Math.min(this.top,F.top);this.width=W-this.left;this.height=E-this.top};
_.N.contains=function(F){return F instanceof _.sp?F.x>=this.left&&F.x<=this.left+this.width&&F.y>=this.top&&F.y<=this.top+this.height:this.left<=F.left&&this.left+this.width>=F.left+F.width&&this.top<=F.top&&this.top+this.height>=F.top+F.height};
_.N.distance=function(F){var W=F.x<this.left?this.left-F.x:Math.max(F.x-(this.left+this.width),0);F=F.y<this.top?this.top-F.y:Math.max(F.y-(this.top+this.height),0);return Math.sqrt(W*W+F*F)};
_.N.getSize=function(){return new _.Rl(this.width,this.height)};
_.N.ceil=function(){this.left=Math.ceil(this.left);this.top=Math.ceil(this.top);this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
_.N.floor=function(){this.left=Math.floor(this.left);this.top=Math.floor(this.top);this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
_.N.round=function(){this.left=Math.round(this.left);this.top=Math.round(this.top);this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
_.N.translate=function(F,W){F instanceof _.sp?(this.left+=F.x,this.top+=F.y):(this.left+=F,typeof W==="number"&&(this.top+=W));return this};
_.N.scale=function(F,W){W=typeof W==="number"?W:F;this.left*=F;this.width*=F;this.top*=W;this.height*=W;return this};var M$O,TH,QlY,ra,t$z,z6e,CKH,fBk,Bwi,Iui;_.ik=function(F,W,E){if(typeof W==="string")(W=_.e6U(F,W))&&(F.style[W]=E);else for(var h in W){E=F;var d=W[h],V=_.e6U(E,h);V&&(E.style[V]=d)}};
M$O={};_.e6U=function(F,W){var E=M$O[W];if(!E){var h=_.Bf(W);E=h;F.style[h]===void 0&&(h=(_.BY?"Webkit":_.Cc?"Moz":null)+aSu(h),F.style[h]!==void 0&&(E=h));M$O[W]=E}return E};
_.$a=function(F,W){var E=_.qp(F);return E.defaultView&&E.defaultView.getComputedStyle&&(F=E.defaultView.getComputedStyle(F,null))?F[W]||F.getPropertyValue(W)||"":""};
_.O2=function(F,W){return _.$a(F,W)||(F.currentStyle?F.currentStyle[W]:null)||F.style&&F.style[W]};
_.gKT=function(F){return _.O2(F,"position")};
TH=function(F,W,E){if(W instanceof _.sp){var h=W.x;W=W.y}else h=W,W=E;F.style.left=ra(h,!1);F.style.top=ra(W,!1)};
QlY=function(F){try{return F.getBoundingClientRect()}catch(W){return{left:0,top:0,right:0,bottom:0}}};
_.Zy=function(F){var W=_.qp(F),E=new _.sp(0,0);if(F==(W?_.qp(W):document).documentElement)return E;F=QlY(F);W=Mp(gn(W));E.x=F.left+W.x;E.y=F.top+W.y;return E};
_.QO_=function(F,W,E){if(W instanceof _.Rl)E=W.height,W=W.width;else if(E==void 0)throw Error("sa");F.style.width=ra(W,!0);F.style.height=ra(E,!0)};
ra=function(F,W){typeof F=="number"&&(F=(W?Math.round(F):F)+"px");return F};
t$z=function(F){return z6e(F)};
z6e=function(F){var W=CKH;if(_.O2(F,"display")!="none")return W(F);var E=F.style,h=E.display,d=E.visibility,V=E.position;E.visibility="hidden";E.position="absolute";E.display="inline";F=W(F);E.display=h;E.position=V;E.visibility=d;return F};
CKH=function(F){var W=F.offsetWidth,E=F.offsetHeight,h=_.BY&&!W&&!E;return(W===void 0||h)&&F.getBoundingClientRect?(F=QlY(F),new _.Rl(F.right-F.left,F.bottom-F.top)):new _.Rl(W,E)};
fBk=function(F){var W=_.Zy(F);F=z6e(F);return new jP(W.x,W.y,F.width,F.height)};
Bwi=function(F,W){F=F.style;"opacity"in F?F.opacity=W:"MozOpacity"in F?F.MozOpacity=W:"filter"in F&&(F.filter=W===""?"":"alpha(opacity="+Number(W)*100+")")};
_.rl=function(F,W){F.style.display=W?"":"none"};
_.vKz=function(F){return"rtl"==_.O2(F,"direction")};
Iui=function(F){var W=_.$a(F,"marginLeft"),E=_.$a(F,"marginRight"),h=_.$a(F,"marginTop");F=_.$a(F,"marginBottom");return new Fn(parseFloat(h),parseFloat(E),parseFloat(F),parseFloat(W))};
_.cPz=function(F){var W=_.$a(F,"borderLeftWidth"),E=_.$a(F,"borderRightWidth"),h=_.$a(F,"borderTopWidth");F=_.$a(F,"borderBottomWidth");return new Fn(parseFloat(h),parseFloat(E),parseFloat(F),parseFloat(W))};var oY=function(F){this.context=F};
oY.prototype.isSupported=function(F){return(F==null?0:F.attributionEnabled)||(F==null?void 0:F.beaconMethod)==="POST"||(F==null?0:F.customHeaders)||(F==null?0:F.customBody)||(F==null?0:F.keepAlive)?!1:!kc(this.context)};
oY.prototype.ping=function(){var F=this;return t1(_.Dd.apply(0,arguments).map(function(W){try{var E=F.context.global,h=!1;h=h===void 0?!1:h;E.google_image_requests||(E.google_image_requests=[]);var d=a_M("IMG",E.document);h&&(d.attributionSrc="");d.src=W;E.google_image_requests.push(d);return!0}catch(V){return!1}}).every(function(W){return W}))};
oY.prototype.pingWithHeadersAndBody=function(F,W,E){this.ping.apply(this,_.x9(_.Dd.apply(3,arguments)))};var DF_=function(F){this.context=F};
DF_.prototype.isSupported=function(F){return xF_&&!kc(this.context)&&owo(this.context)!==void 0&&!(F==null?0:F.attributionEnabled)&&(F==null?void 0:F.beaconMethod)!=="POST"&&!(F==null?0:F.customHeaders)&&!(F==null?0:F.customBody)};
DF_.prototype.makeBeacon=function(F,W){if(!this.isSupported(W))throw new IY;return new GH(this.context,F)};
var xF_=!1,GH=function(F,W){this.context=F;this.JSC$7252_urlWithoutToken=W;F=owo(this.context);if(F===void 0)throw Error();this.wrappedBeacon=new F(k8U(this),{})},k8U=function(F){F=F.JSC$7252_urlWithoutToken;
return(F.slice(-1)[0]==="&"?F:F+"&")+"pbapi=1"};
GH.prototype.deactivate=function(){this.wrappedBeacon.deactivate()};
GH.prototype.sendNow=function(){this.wrappedBeacon.sendNow()};
GH.prototype.setHeader=function(){};
_.Sn.Object.defineProperties(GH.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$7252_urlWithoutToken},
set:function(F){this.JSC$7252_urlWithoutToken=F;this.wrappedBeacon.setURL(k8U(this))}},
method:{configurable:!0,enumerable:!0,get:function(){return"GET"},
set:function(F){if(F!=="GET")throw new IY;}},
isPending:{configurable:!0,enumerable:!0,get:function(){return this.wrappedBeacon.pending}}});var APB=function(F){this.context=F};
APB.prototype.isSupported=function(F){if((F==null?0:F.attributionEnabled)||(F==null?void 0:F.beaconMethod)==="GET"||(F==null?0:F.customHeaders)||(F==null?0:F.customBody)||(F==null?0:F.keepAlive))return!1;var W;return!kc(this.context)&&((W=this.context.global.navigator)==null?void 0:W.sendBeacon)!==void 0};
APB.prototype.ping=function(){var F=this;return t1(_.Dd.apply(0,arguments).map(function(W){var E;return(E=F.context.global.navigator)==null?void 0:E.sendBeacon(W)}).every(function(W){return W}))};
APB.prototype.pingWithHeadersAndBody=function(F,W,E){this.ping.apply(this,_.x9(_.Dd.apply(3,arguments)))};var VJ=function(F){this.value=F},i5=function(F,W){return t1(F.value).pipe(hN(W))},Yd=new VJ(!1),xTI=new VJ(!0);var PE=function(F){this.value=F;this.releasedSubject=new WE};
PE.prototype.release=function(){this.releasedSubject.next();this.releasedSubject.complete();this.value=void 0};
_.Sn.Object.defineProperties(PE.prototype,{ref:{configurable:!0,enumerable:!0,get:function(){return this.value}},
JSC$7265_released:{configurable:!0,enumerable:!0,get:function(){return this.releasedSubject}}});var dlG=["FRAME","IMG","IFRAME"],miS=/^[01](px)?$/,hXY=function(){this.pendingImagesBlockLoad=this.crossDomainLoadedDefault=!1},E9R=function(){var F=new hXY;
F.crossDomainLoadedDefault=!0;F.pendingImagesBlockLoad=!0;return F};var sOu=function(F,W){var E=g9r(F);if(E)if(E.onCreativeLoad)E.onCreativeLoad(W);else{var h=W?[W]:[],d=function(V){for(var R=0;R<h.length;++R)try{h[R](1,V)}catch(M){}h={push:function(M){M(1,V)}}};
E.onCreativeLoad=function(V){h.push(V)};
E.setAttribute("data-creative-load-listener","");E.addEventListener("creativeLoad",function(V){d(V.detail)});
_.EY.addEventListener("message",function(V){MJw(E,d,V)})}};var Yc=function(F,W){var E=this;this.global=F;this.parentContext=W;this.JSC$7276_onVisibilityChange=this.document?ZV(t1(!0),ql(this.document,"visibilitychange")).pipe(J1(this.parentContext.performanceMonitor,748),cw(function(){return E.getVisibilityState()}),lO()):t1("visible");
this.document?ql(this.document,"DOMContentLoaded").pipe(J1(this.parentContext.performanceMonitor,739),bO(1)):t1(SWe("DOMContentLoaded"))},DTW=function(F){return F.document!==null&&F.document.visibilityState!==void 0};
Yc.prototype.getVisibilityState=function(){return this.document?this.document.visibilityState:"visible"};
Yc.prototype.querySelector=function(F){return this.document?this.document.querySelector(F):null};
Yc.prototype.querySelectorAll=function(F){return this.document?_.Kb(this.document.querySelectorAll(F)):[]};
Yc.prototype.elementFromPoint=function(F,W){if(!this.document||this.document===null||typeof this.document.elementFromPoint!=="function")return null;F=this.document.elementFromPoint(F,W);return F===null?null:new PE(F)};
var eAG=function(F,W,E){E=E===void 0?!1:E;if(W.ref===void 0||!F.document)return t1(W).pipe(J1(F.parentContext.performanceMonitor,749));var h=new iO(1),d=function(){h.next(W)};
E||sOu(W.ref,d);NGY(W.ref,d);return h.pipe(J1(F.parentContext.performanceMonitor,749),bO(1))};
_.Sn.Object.defineProperties(Yc.prototype,{document:{configurable:!0,enumerable:!0,get:function(){return $d(this.global,"document")?this.global.document||null:null}}});var QSo=_.Fc(["https://www.googleadservices.com/pagead/managed/js/activeview/","/reach_worklet.html"]),zXe=_.Fc(["./reach_worklet.js"]),tJY=_.Fc(["./reach_worklet.js"]),Lge=_.Fc(["./reach_worklet.html"]),qqO=_.Fc(["./reach_worklet.js"]),$FB=_.Fc(["./reach_worklet.js"]);_.mv(Lge);_.mv(qqO);_.mv($FB);var Op={left:0,top:0,width:0,height:0};var ZNH,XTB,HNO,PKB,pW,auH,fuB,ONH,nKU,yPM,jOa,iN_;ZNH=function(F,W,E,h,d,V,R){var M="";F&&(M+=F+":");E&&(M+="//",W&&(M+=W+"@"),M+=E,h&&(M+=":"+h));d&&(M+=d);V&&(M+="?"+V);R&&(M+="#"+R);return M};
XTB=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");_.u0=function(F){return F.match(XTB)};
_.fk=function(F,W){return F?W?decodeURI(F):decodeURIComponent(F):F};
HNO=function(F){F=_.u0(F)[1]||null;!F&&_.EY.self&&_.EY.self.location&&(F=_.EY.self.location.protocol.slice(0,-1));return F?F.toLowerCase():""};
_.Su=function(F){return _.fk(_.u0(F)[3]||null,!0)};
_.gV=function(F){return _.fk(_.u0(F)[5]||null,!0)};
_.CyG=function(F){var W=F.indexOf("#");return W<0?null:F.slice(W+1)};
PKB=function(F){F=_.u0(F);return ZNH(F[1],F[2],F[3],F[4])};
_.JPu=function(F){F=_.u0(F);return ZNH(F[1],null,F[3],F[4])};
_.jr=function(F){F=_.u0(F);return ZNH(null,null,null,null,F[5],F[6],F[7])};
_.uI=function(F){var W=F.indexOf("#");return W<0?F:F.slice(0,W)};
pW=function(F,W){F=_.u0(F);W=_.u0(W);return F[3]==W[3]&&F[1]==W[1]&&F[4]==W[4]};
auH=function(F,W){if(F){F=F.split("&");for(var E=0;E<F.length;E++){var h=F[E].indexOf("="),d=null;if(h>=0){var V=F[E].substring(0,h);d=F[E].substring(h+1)}else V=F[E];W(V,d?KW(d):"")}}};
fuB=function(F){var W=F.indexOf("#");W<0&&(W=F.length);var E=F.indexOf("?");if(E<0||E>W){E=W;var h=""}else h=F.substring(E+1,W);return[F.slice(0,E),h,F.slice(W)]};
ONH=function(F,W){return W?F?F+"&"+W:W:F};
_.bNH=function(F,W){if(!W)return F;F=fuB(F);F[1]=ONH(F[1],W);return F[0]+(F[1]?"?"+F[1]:"")+F[2]};
_.lu_=function(F,W,E){if(Array.isArray(W))for(var h=0;h<W.length;h++)_.lu_(F,String(W[h]),E);else W!=null&&E.push(F+(W===""?"":"="+_.ro(W)))};
_.zC=function(F){var W=[],E;for(E in F)_.lu_(E,F[E],W);return W.join("&")};
_.wo=function(F,W){W=_.zC(W);return _.bNH(F,W)};
_.wa=function(F,W,E){E=E!=null?"="+_.ro(E):"";return _.bNH(F,W+E)};
nKU=function(F,W,E,h){for(var d=E.length;(W=F.indexOf(E,W))>=0&&W<h;){var V=F.charCodeAt(W-1);if(V==38||V==63)if(V=F.charCodeAt(W+d),!V||V==61||V==38||V==35)return W;W+=d+1}return-1};
yPM=/#|$/;_.lg=function(F,W){var E=F.search(yPM),h=nKU(F,0,W,E);if(h<0)return null;var d=F.indexOf("&",h);if(d<0||d>E)d=E;h+=W.length+1;return KW(F.slice(h,d!==-1?d:0))};
jOa=/[?&]($|#)/;_.pg=function(F,W){for(var E=F.search(yPM),h=0,d,V=[];(d=nKU(F,h,W,E))>=0;)V.push(F.substring(h,d)),h=Math.min(F.indexOf("&",d)+1||E,E);V.push(F.slice(h));return V.join("").replace(jOa,"$1")};
_.nn=function(F,W,E){return _.wa(_.pg(F,W),W,E)};
iN_=function(F){var W=fuB(window.location.href),E=W[1],h=[];E&&E.split("&").forEach(function(d){var V=d.indexOf("=");V=V>=0?d.slice(0,V):d;F.hasOwnProperty(V)||h.push(d)});
W[1]=ONH(h.join("&"),_.zC(F));return W[0]+(W[1]?"?"+W[1]:"")+W[2]};var fVr=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(fVr,_.n2);fVr.prototype.getVersion=function(){return _.bj(this,2)};var aVr=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(aVr,_.n2);var $lo=function(F,W){return _.QJ(F,2,W)},J1G=function(F,W){return _.QJ(F,3,W)};
aVr.prototype.getModel=function(){return _.bj(this,4)};
var Xwk=function(F,W){return _.QJ(F,4,W)},q0R=function(F,W){return _.QJ(F,5,W)},POb=function(F,W){return _.QJ(F,9,W)},Lvr=function(F,W){return HY(F,10,W)},sSY=function(F,W){return _.NT(F,11,W)},ZLI=function(F,W){return _.QJ(F,1,W)},HLY=function(F,W){return _.NT(F,7,W)};var kTR="platform platformVersion architecture model uaFullVersion bitness fullVersionList wow64".split(" ");var GO=function(F,W,E,h){F=F===void 0?window:F;W=W===void 0?null:W;E=E===void 0?new Vke:E;h=h===void 0?COo():h;uei.call(this);var d=this;this.global=F;this.debugChannel=W;this.performanceMonitor=E;this.onPageHide=LL(function(){return ql(d.global,"pagehide")}).pipe(J1(this.performanceMonitor,941));
this.onLoad=LL(function(){return ql(d.global,"load")}).pipe(J1(this.performanceMonitor,738),bO(1));
this.onResize=LL(function(){return ql(d.global,"resize")}).pipe(J1(this.performanceMonitor,741));
this.onMessage=LL(function(){return ql(d.global,"message")}).pipe(J1(this.performanceMonitor,740));
this.document=new Yc(this.global,this);this.timeProvider=new WXp(new hue(this.intrinsicFunctionNamespace,this.performanceMonitor),new EBi(this.intrinsicFunctionNamespace,this.performanceMonitor));this.beaconFactory=new mwc(new Ncu(this),new DF_(this),new cK(this,new RuT(this)),new cK(this,new APB(this)),new cK(this,new oY(this)))};
_.k(GO,uei);var kc=function(F){var W=F.global;return!!F.global.HTMLFencedFrameElement&&!!W.fence&&typeof W.fence.reportEvent==="function"};
_.N=GO.prototype;_.N.reportFencedFrameEvent=function(F){kc(this)&&this.global.fence.reportEvent(F)};
_.N.getOnBackgrounded=function(){return this.onPageHide.pipe(J1(this.performanceMonitor,942),hN(this.queue),cw(function(){}))};
_.N.postMessage=function(F,W,E){E=E===void 0?[]:E;this.global.postMessage(F,W,E)};
_.N.getWidth=function(){return ol(this.global)?this.global.width:0};
_.N.getHeight=function(){return ol(this.global)?this.global.height:0};
_.N.isMobile=function(){return MHO()||gBc()};
var JN=function(F,W){try{var E=c1n(W,F.global,F.isMobile());return{left:E.left,top:E.top,width:E.getWidth(),height:E.getHeight()}}catch(h){return Op}};
GO.prototype.validate=function(){var F=this.beaconFactory.isSupported()||kc(this);return this.global&&this.timeProvider.available()&&F};
var YWn=function(F){return(F=bLY(F.global))?dG(F):null};
_.Sn.Object.defineProperties(GO.prototype,{sharedStorage:{configurable:!0,enumerable:!0,get:function(){try{return this.global.sharedStorage}catch(F){}}},
intrinsicFunctionNamespace:{configurable:!0,enumerable:!0,get:function(){return window}},
inCrossDomainIframe:{configurable:!0,enumerable:!0,get:function(){return!ol(this.global.top)}},
inIframe:{configurable:!0,enumerable:!0,get:function(){return this.inCrossDomainIframe||this.global.top!==this.global}},
scrollY:{configurable:!0,enumerable:!0,get:function(){return this.global.scrollY}},
MutationObserver:{configurable:!0,enumerable:!0,get:function(){return this.intrinsicFunctionNamespace.MutationObserver}},
ResizeObserver:{configurable:!0,enumerable:!0,get:function(){return this.intrinsicFunctionNamespace.ResizeObserver}}});_.rPp=!_.tf&&!_.PG();var k3I=function(F){return F};var sTR=function(F){return F.pipe(XL(function(W){var E=W.endOfSessionReason;var h;return((h=W.viewable)==null?void 0:h.extrapolateToNow().value)||E!=void 0}),bO(1),fL())};var r1I=function(){this.startTime=Math.floor(Date.now()/1E3-1704067200);this.sequenceNumber=0},TGe=function(F){var W=F.sequenceNumber.toString(10).padStart(2,"0");
W=""+F.startTime+W;F.sequenceNumber<99&&F.sequenceNumber++;return W};var cve=Ku(wG(function(F){return F.endOfSessionReason===void 0}),cw(function(F){return Object.assign({},F,{timestamps:CC(F)})}),XL(function(F){var W=F.viewable;
F=F.timestamps;var E;return(E=W==null?void 0:W.extrapolateUsingTimestampMap(F).value)!=null?E:!1}),cw(function(F){var W=F.beaconFactory;
var E=F.timestampedExposureHistory;var h=F.timeOnScreen;var d=F.binaryContext;F=F.timestamps;if(W===void 0||E===void 0||h===void 0||d===void 0)return!1;if(h.extrapolateUsingTimestampMap(F).value.every(function(V){return V>=0}))return!0;
E=E.map(function(V){return V.timestamp+":"+V.value}).join(",");
h=BE({bin:d,tos:h},F);W.makeBeacon("https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=dv&"+h+("&eh="+E)).sendNow();return!0}),wG(function(F){return!F}),fL());var GTY=function(F){return{id:F.pingId,mcvt:F.maxConsecutiveViewTime,p:F.creativePosition,asp:F.adSpeedPosition,tm:F.totalMeasurementTime,tu:F.totalUnviewedTime,mtos:F.maxTimeOnScreen,tos:F.timeOnScreen,v:F.binaryVersion,bin:F.binaryContext,avms:F.measurementStrategy,bs:F.browserSize,mc:F.maximumExposure,"if":F.crossDomainIframeState,vu:F.delayedImpressionJsState,app:F.inApp,mse:F.mraidError,mtop:F.mraidSituation,itpl:F.injectedTemplateId,adk:F.adKey,exk:F.awbidKey,rs:F.requestSource,la:F.isLargeAd,
cr:F.isContentRecommendationAd,uach:F.userAgentClientHints,vs:F.viewState,r:F.reasonCode,pay:F.hasCpmavUrl,co:F.clientPingOrderCounter,rst:F.adRenderStartTime,rpt:F.adRenderPeriodTime,isd:F.initialScrollDepth,lsd:F.loadedScrollDepth,context:F.errorContext,msg:F.errorMessage,stack:F.errorStack,name:F.errorName,ec:F.hasElementChanged,sfr:F.strategyFailureReasons,met:F.creativeSearchResult,wmsd:F.webMeasurementStartDiagnostic,pv:F.pageVisible,epv:F.eosPageVisible,pbe:F.inStatefulBeaconExperiment,fle:F.inFetchLaterBeaconExperiment,
vae:F.inViewableAttributionExperiment,spb:F.supportsPendingBeacon,sfl:F.supportsFetchLater,ffslot:F.isFencedFrameSlotTurtlex,reach:F.sharedStorageReachMode,io2:F.v2VisibilityBitVector,rxdbg:F.rxDebugger,omida:F.omidAppId,omidp:F.omidPartner,omidpv:F.omidPartnerVersion,omidor:F.omidOcclusionReasons,omidv:F.omidVersion,omids:F.omidSessionType,omidam:F.omidAccessMode,omidct:F.omidCreativeType,omidia:F.omidInApp,omiddc:F.omidDeviceCategory,omidlat:F.omidLastActivity,omiddit:F.omidDeviceIdleTime,qid:F.errorEscapedQueryId}};var Avo=function(F){var W=[];return F.pipe(cw(function(E){var h=E.beaconFactory,d=E.fetchBeaconFactory,V=E.timeOnScreen,R=E.timeOnScreenUrlPrefixes,M=E.payloadMapper,g=E.timeOnScreenPingId,t=E.timeOnScreenReason,C=E.urlSerializer,B=E.viewable,I=E.hasImpressionFired,x=E.inStatefulBeaconExperiment,A=E.supportsPendingBeacon,X=E.supportsFetchLater,P=E.turtlexReportEventData;if(!E.geometryMeasurable||!I||E.maxTimeOnScreen===void 0||V===void 0||R===void 0||M===void 0||g===void 0||C===void 0||h===void 0)return!1;
if(E.isTurtlex){if(t===void 0)return!1;R=E.reportFencedFrameEvent;if(!R)return!1;R({eventType:"active-view-time-on-screen",eventData:P!=null?P:"",destination:["buyer"]});return!0}if(!(x||X||t))return!1;P=CC(E);var b;B=(b=B==null?void 0:B.extrapolateUsingTimestampMap(P).value)!=null?b:!1;b=C(Object.assign({},E,{pingId:g,viewState:B?4:3,reasonCode:t!=null?t:"u",payloadMapper:M,urlPrefixes:R}),P);if(x){for(;W.length>R.length;)E=void 0,(E=W.shift())==null||E.deactivate();b.forEach(function(w,G){G>=W.length?
W.push(h.makeBeacon(w)):W[G].url=w});
return A&&d&&t!==void 0?(b.forEach(function(w){d.makeBeacon(w).sendNow()}),!0):t!==void 0}if(A&&d&&t!==void 0)return b.forEach(function(w){d.makeBeacon(w).sendNow()}),!0;
if(X&&d){for(;W.length>R.length;)A=void 0,(A=W.shift())==null||A.deactivate();var l=C(Object.assign({},E,{pingId:g,viewState:B?4:3,reasonCode:t!=null?t:"u",payloadMapper:M,urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=fetch&later&lidartos"]}),P)[0];b.forEach(function(w,G){G>=W.length?W.push(h.makeBeacon(l,{endOfSession:!0})):W[G].url=l});
return t!==void 0?(b.forEach(function(w){d.makeBeacon(w).sendNow()}),!0):t!==void 0}return t!==void 0?(b.forEach(function(w){h.makeBeacon(w).sendNow()}),!0):!1}),wG(function(E){return!E}),fL())};var Ljk=Ku(XL(function(F){return F.immediateUrlPrefixes!==void 0&&F.payloadMapper!==void 0&&F.urlSerializer!==void 0&&F.inferredPingId!==void 0&&F.beaconFactory!==void 0}),XL(function(F){return FBk(F)!==null}),mlw(function(F){return F.activeViewUnmeasurableEvent},function(F){return F.emit}),cw(function(F){if(F.isTurtlex){var W=F.reportFencedFrameEvent;
if(W){var E;W({eventType:"active-view-unmeasurable",eventData:(E=F.turtlexReportEventData)!=null?E:"",destination:["buyer"]})}}else{E=void 0;var h=FBk(F);if(h==="x"){var d,V=(d=F.geometricMeasurementErrors)!=null?d:F.contextValidationErrors;V&&(W=V.stack,E=V.message)}F.urlSerializer(Object.assign({},F,{urlPrefixes:F.immediateUrlPrefixes,payloadMapper:F.payloadMapper,pingId:F.inferredPingId,viewState:2,reasonCode:h,errorMessage:E,errorStack:W}),CC(F)).forEach(function(R){F.beaconFactory.makeBeacon(R).sendNow()})}}),
bO(1),fL());var WBo=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var Iqo=Ku(XL(function(F){return F.payloadMapper!==void 0&&F.immediateUrlPrefixes!==void 0&&F.urlSerializer!==void 0&&F.inferredPingId!==void 0&&F.beaconFactory!==void 0}),cw(function(F){return Object.assign({},F,{timestamps:CC(F)})}),XL(function(F){var W=F.viewable;
var E=F.hasImpressionFired;F=F.timestamps;var h;return!!E&&((h=W==null?void 0:W.extrapolateUsingTimestampMap(F).value)!=null?h:!1)}),mlw(function(F){return F.activeViewViewableEvent},function(F){return F.emit}),cw(function(F){var W=F.beaconFactory,E=F.turtlexReportEventData;
if(F.isTurtlex){var h=F.reportFencedFrameEvent;if(!h)return!1;h({eventType:"active-view-viewable",eventData:E!=null?E:"",destination:["buyer"]});return!0}E=F.urlSerializer(Object.assign({},F,{urlPrefixes:F.immediateUrlPrefixes,payloadMapper:F.payloadMapper,pingId:F.inferredPingId,viewState:4,reasonCode:"v"}),F.timestamps);(h=F.cpmavUrls)&&h.length>0&&F.viewUrlSerializer&&F.viewUrlSerializer(h,F).forEach(function(d){W.makeBeacon(d).sendNow()});
(h=F.viewableRelayUrls)&&h.length>0&&F.viewUrlSerializer&&F.viewUrlSerializer(h,F).forEach(function(d){W.makeBeacon(d).sendNow()});
E.forEach(function(d){W.makeBeacon(d,{attributionEnabled:F.isViewableAttributionEnabled}).sendNow()});
return!0}),wG(function(F){return!F}),fL());var Tnw=cw(function(F){return[F.value.topWindowViewportExternalGeometry.width,F.value.topWindowViewportExternalGeometry.height]});var al=function(F,W){this.callback=F;this.options=W;this.intersectionObserverV2=this.intersectionObserverV1=null},LBk=function(F,W){W?F.intersectionObserverV2||(W=Object.assign({},F.options,{delay:100,
trackVisibility:!0}),F.intersectionObserverV2=new IntersectionObserver(F.callback,W)):F.intersectionObserverV1||(F.intersectionObserverV1=new IntersectionObserver(F.callback,F.options))},TwU=function(F,W){F=W?F.intersectionObserverV2:F.intersectionObserverV1;
if(!F)throw new SYe;return F};
al.prototype.observe=function(F,W){TwU(this,F).observe(W)};
al.prototype.unobserve=function(F,W){TwU(this,F).unobserve(W)};
al.prototype.disconnect=function(F){TwU(this,F).disconnect()};
al.prototype.takeRecords=function(F){return TwU(this,F).takeRecords()};var Xn={viewportGeometrySourceName:"ns",exposedViewportLocalGeometry:Op,topWindowViewportExternalGeometry:Op,measurementRequests:new WE,elementGeometrySourceName:"ns",elementGeometry:Op,intersectionGeometry:Op,viewportLocalAppOffset:{x:0,y:0}};var JNo=l5(Ku(cw(function(F){var W;return(W=F.exposureOverride)!=null?W:$po(F)}),cw(function(F){return isFinite(F)?F:0}))),yNk=l5(Ku(cw(function(F){var W;
return(W=F.exposureOverride)!=null?W:$po(F)}),cw(function(F){return isFinite(F)?F:-1})));var uk=function(F,W){this.a=F;this.b=W;if(F.clock.timeline!==W.clock.timeline)throw Error();};
uk.prototype.equivalentTo=function(F){return F instanceof uk?this.a.equivalentTo(F.a)&&this.b.equivalentTo(F.b):!1};
uk.prototype.extrapolateToTime=function(F){var W=this.a.extrapolateToTime(F).value,E=this.b.extrapolateToTime(F).value;return{timestamp:F,value:[W,E]}};
_.Sn.Object.defineProperties(uk.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return this.a.active||this.b.active}},
clock:{configurable:!0,enumerable:!0,get:function(){return this.a.clock}},
lastMeasurement:{configurable:!0,enumerable:!0,get:function(){var F=this.a.lastMeasurement.timestamp.maximum(this.b.lastMeasurement.timestamp),W=this.a.lastMeasurement.timestamp.equals(F)?this.a.lastMeasurement.value:this.a.extrapolateToTime(F).value,E=this.b.lastMeasurement.timestamp.equals(F)?this.b.lastMeasurement.value:this.b.extrapolateToTime(F).value;return{timestamp:F,value:[W,E]}}}});var SP=function(F,W){this.input=F;this.mapFunction=W;this.lastMeasurement={timestamp:this.input.lastMeasurement.timestamp,value:this.mapFunction(this.input.lastMeasurement.value)}};
SP.prototype.equivalentTo=function(F){return F instanceof SP?this.input.equivalentTo(F.input)&&this.mapFunction===F.mapFunction:!1};
SP.prototype.extrapolateToTime=function(F){F=this.input.extrapolateToTime(F);return{timestamp:F.timestamp,value:this.mapFunction(F.value)}};
_.Sn.Object.defineProperties(SP.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return this.input.active}},
clock:{configurable:!0,enumerable:!0,get:function(){return this.input.clock}}});var pv=function(){};
pv.prototype.extrapolateToNow=function(){return this.extrapolateToTime(this.clock.now())};
pv.prototype.extrapolateUsingTimestampMap=function(F){var W=this.clock.timeline,E,h=(E=F.get(W))!=null?E:this.clock.now();F.set(W,h);return this.extrapolateToTime(h)};
pv.prototype.map=function(F){return new oKU(this,F)};
pv.prototype.joinWith=function(F){return new G8p(this,F)};
var G8p=function(){uk.apply(this,arguments);this.map=pv.prototype.map;this.joinWith=pv.prototype.joinWith;this.extrapolateToNow=pv.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=pv.prototype.extrapolateUsingTimestampMap};
_.k(G8p,uk);var oKU=function(){SP.apply(this,arguments);this.map=pv.prototype.map;this.joinWith=pv.prototype.joinWith;this.extrapolateToNow=pv.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=pv.prototype.extrapolateUsingTimestampMap};
_.k(oKU,SP);var yJ=function(F,W){this.lastMeasurement=W;this.extrapolateToNow=pv.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=pv.prototype.extrapolateUsingTimestampMap;this.map=pv.prototype.map;this.joinWith=pv.prototype.joinWith;this.clock=F};
yJ.prototype.equivalentTo=function(F){return F.active};
yJ.prototype.extrapolateToTime=function(){return this.lastMeasurement};
_.Sn.Object.defineProperties(yJ.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return!1}}});var rNo=cw(function(F){if(F.value.viewportGeometrySourceName==="omid"){if(F.value.elementGeometrySourceName==="nio")return"omio";if(F.value.elementGeometrySourceName==="geo")return"omgeo"}return F.value.elementGeometrySourceName==="geo"||F.value.elementGeometrySourceName==="nio"?F.value.viewportGeometrySourceName:F.value.elementGeometrySourceName});var XER=Ku(XL(function(F){return!isNaN(F)}),TT(function(F,W){return isNaN(F)?W:Math.min(F,W)},NaN),lO());var ayG=l5(Ku(cw(function(F){return F.intersectionGeometry.width*F.intersectionGeometry.height/(F.exposedViewportLocalGeometry.width*F.exposedViewportLocalGeometry.height)}),cw(function(F){return isFinite(F)?Math.min(1,F):0})));var iCI=Ku(l5(cw(function(F){F=F.exposureOverride?F.elementGeometry.width*F.elementGeometry.height*F.exposureOverride/(F.topWindowViewportExternalGeometry.width*F.topWindowViewportExternalGeometry.height):F.intersectionGeometry.width*F.intersectionGeometry.height/(F.topWindowViewportExternalGeometry.width*F.topWindowViewportExternalGeometry.height);return isFinite(F)?F:0})));var GOR=function(F,W){var E=this;this.timeProvider=F;this.measurementRequestObserver=this.lastMeasurementRequest=null;this.requestSubscription=W.pipe(lO()).subscribe(function(h){TO(E);E.measurementRequestObserver=h})},wEr=function(F,W){TO(F);
F.lastMeasurementRequest=F.timeProvider.setTimeout(function(){var E;return void((E=F.measurementRequestObserver)==null?void 0:E.next())},W)},TO=function(F){F.lastMeasurementRequest!==null&&F.timeProvider.clearTimeout(F.lastMeasurementRequest);
F.lastMeasurementRequest=null};
GOR.prototype.dispose=function(){TO(this);this.requestSubscription.unsubscribe();this.measurementRequestObserver=null};var YqM=function(){};var Cgb=function(F,W){this.context=F;this.strategies=W};
_.k(Cgb,YqM);Cgb.prototype.buildGeometrySource=function(F,W){var E=this.strategies.map(function(V){return V.buildGeometrySource(F,W)}),h=KBr(E.map(function(V){return V.geometrySource})),d=h.capturedErrors.pipe(wT_());
return{geometrySource:h.chain.pipe(hN(this.context.queue)),additionalOutputs:Object.assign.apply(Object,[{strategyFailureReasons:d,strategyErrors:h.capturedErrors}].concat(_.x9(E.map(function(V){return V.additionalOutputs}))))}};
var wT_=function(){return TT(function(F,W){W instanceof cE?F.push(W.measurementStrategyFailureReason):F.push(-1);return F},[])};var vjY=function(F,W){this.context=F;this.poller=W};
_.k(vjY,YqM);vjY.prototype.buildGeometrySource=function(F,W){var E=Fjo(EjG(this.context,this.poller),tUe(this.context,W.requestSource));return{geometrySource:mpo(F.measurableCreative.pipe(E),W.inApp),additionalOutputs:{}}};var BlS=function(F,W,E){E=E===void 0?DpR(F,W):E;this.context=F;this.intersectionObserverStrategy=E};
_.k(BlS,YqM);BlS.prototype.buildGeometrySource=function(F,W){var E=this.intersectionObserverStrategy(W.useV2);return{geometrySource:mpo(F.measurableCreative.pipe(E,xpY(this.context)),W.inApp),additionalOutputs:{}}};var u6X=function(F,W,E){var h=h===void 0?Symbol():h;this.element=F;this.immediateUrls=W;this.timeOnScreenUrls=E;this.symbol=h};var rn=Object.freeze({timeThresholdMs:1E3,exposureThreshold:.5,largeAdExposureThreshold:.3}),UTY=Object.freeze([1,.75,rn.exposureThreshold,rn.largeAdExposureThreshold,0]);var Z5n=function(F,W){W=W===void 0?36E5:W;var E=E===void 0?!0:E;this.creatives=new WE;this.elementsToUnregister=new WE;this.elementMap=new Map;var h=new GO(window,null);h.beaconFactory=new cK(h,new oY(h));tSW(h,this.creatives,this.elementsToUnregister,F,W,E).subscribe()},Pho=function(F,W,E,h){if(!F.elementMap.has(W)){var d=new PE(W);
F.elementMap.set(W,d);F.creatives.next(new u6X(d,E,h))}},H5o=function(F,W){F.elementsToUnregister.next(W);
var E=F.elementMap.get(W);E!==void 0&&(E.release(),F.elementMap.delete(W))};var tRR=function(F){var W=F.url;F=F.uaDataValues;this.JSC$7381_url_=W;this.uaDataValues_=F;this.suid_=(new Date).getTime()-17040672E5;this.urlParamValues_={};for(var E=/[?&]([^&=]+)=([^&]*)/g;F=E.exec(W);)this.urlParamValues_[F[1]]=F[2]},Cbb=function(F){F=F.uaDataValues_;
if(!F)return"";var W=wn("uap",F.platform)+wn("uapv",F.platformVersion)+wn("uafv",F.uaFullVersion)+wn("uaa",F.architecture)+wn("uam",F.model)+wn("uab",F.bitness);F.fullVersionList&&(W+="&uafvl="+encodeURIComponent(F.fullVersionList.map(function(E){return encodeURIComponent(E.brand)+";"+encodeURIComponent(E.version)}).join("|")));
F.wow64!=null&&(W+="&uaw="+Number(F.wow64));return W.slice(1)};var mZ=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(mZ,_.n2);mZ.prototype.getId=function(){return _.bj(this,1)};
mZ.prototype.setId=function(F){return _.NB(this,1,F)};var Kv=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(Kv,_.n2);Kv.prototype.getSeconds=function(){return fc(this,1)};
Kv.prototype.setSeconds=function(F){return _.L2(this,1,JP(F),"0")};_.Gc=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(_.Gc,_.n2);_.Gc.prototype.getSeconds=function(){return fc(this,1)};
_.Gc.prototype.setSeconds=function(F){return _.L2(this,1,JP(F),"0")};
_.Squ=function(F){var W=Number(nc(F,1));F=_.Wb(F,2);return new Date(W*1E3+F/1E6)};var F8=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(F8,_.n2);F8.prototype.getUrl=function(){return _.bj(this,1)};
F8.prototype.setUrl=function(F){return _.NB(this,1,F)};
F8.prototype.getHeight=function(){return _.Wb(this,2)};
F8.prototype.getWidth=function(){return _.Wb(this,3)};var WI=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(WI,_.n2);WI.prototype.getAspectRatio=function(){return OV(this,1)};
WI.prototype.setAspectRatio=function(F){return _.L2(this,1,_.e$(F),0)};
WI.prototype.getDuration=function(){return _.Em(this,Kv,2)};var pTp=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(pTp,_.n2);var mFc=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(mFc,_.n2);var Kg_=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(Kg_,_.n2);var Fpp=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(Fpp,_.n2);var Wp_=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(Wp_,_.n2);var ERX=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(ERX,_.n2);var hWz=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(hWz,_.n2);var dRM=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(dRM,_.n2);var Nui=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(Nui,_.n2);var Es=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(Es,_.n2);var hh=[2,4,5,6,7];var VzX=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(VzX,_.n2);var PY=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(PY,_.n2);_.N=PY.prototype;_.N.getId=function(){return _.Em(this,mZ,1)};
_.N.setId=function(F){return _.hy(this,1,F)};
_.N.getName=function(){return _.bj(this,2)};
_.N.setDescription=function(F){return _.NB(this,3,F)};
_.N.getUrl=function(){return _.bj(this,8)};
_.N.setUrl=function(F){return _.NB(this,8,F)};
var dv=function(F){return _.KC(F,F8,10,_.Fg())};
PY.prototype.getOwner=function(F){var W=_.De(this,40,_.yx,3,!0);oi(W,F);return W[F]};
PY.prototype.getVersion=function(){return fc(this,45)};
var No=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(No,_.n2);_.URO=[0,wgr,SMY];_.RWc=[0,wgr,SMY];var eWe=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(eWe,_.n2);var Vv=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(Vv,_.n2);Vv.prototype.getStatus=function(){return _.lj(this,1)};
Vv.prototype.removeItem=function(F){return gIW(this,2,F)};var Mza=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(Mza,_.n2);Mza.prototype.getName=function(){return _.bj(this,8)};var Us=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(Us,_.n2);Us.prototype.getCommand=function(){return _.lj(this,1)};
Us.prototype.getSource=function(){return _.Em(this,Mza,2)};
Us.prototype.setVisible=function(F){return _.ZU(this,5,F)};
Us.prototype.removeItem=function(F){return gIW(this,7,F)};var gRz=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(gRz,_.n2);gRz.prototype.getCommand=function(){return _.lj(this,1)};
gRz.prototype.removeItem=function(F){return gIW(this,4,F)};
var QK_=_.Wp(gRz);var Rd=function(F,W,E){E=E===void 0?Error():E;var h=Error.call(this);this.message=h.message;"stack"in h&&(this.stack=h.stack);this.code=F;W+=":";E instanceof Error?(this.message=W+E.message,this.stack=E.stack||""):(this.message=W+String(E),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)};
_.k(Rd,Error);_.xj=function(){this.JSC$7439_disposed_=this.JSC$7439_disposed_;this.onDisposeCallbacks_=this.onDisposeCallbacks_};
_.xj.prototype.JSC$7439_disposed_=!1;_.xj.prototype.isDisposed=function(){return this.JSC$7439_disposed_};
_.xj.prototype.dispose=function(){this.JSC$7439_disposed_||(this.JSC$7439_disposed_=!0,this.disposeInternal())};
_.xj.prototype[Symbol.dispose]=function(){this.dispose()};
_.gl=function(F,W){F.addOnDisposeCallback(_.v5(_.u5,W))};
_.xj.prototype.addOnDisposeCallback=function(F,W){this.JSC$7439_disposed_?W!==void 0?F.call(W):F():(this.onDisposeCallbacks_||(this.onDisposeCallbacks_=[]),W&&(F=F.bind(W)),this.onDisposeCallbacks_.push(F))};
_.xj.prototype.disposeInternal=function(){if(this.onDisposeCallbacks_)for(;this.onDisposeCallbacks_.length;)this.onDisposeCallbacks_.shift()()};var ef=function(F){_.xj.call(this);this.wpc=F};
_.k(ef,_.xj);ef.prototype.tym=function(){return this.wpc.f()};
ef.prototype.fqe=function(F){return this.wpc.c(F)};
ef.prototype.nQ=function(F){return this.wpc.m(Hro(F))};
ef.prototype.ey=function(F){return this.wpc.mws(Hro(F))};
var mB=function(F){_.xj.call(this);var W=this;this.ev=F;this.lJx="keydown keypress keyup input focusin focusout select copy cut paste change click dblclick auxclick pointerover pointerdown pointerup pointermove pointerout dragenter dragleave drag dragend mouseover mousedown mouseup mousemove mouseout touchstart touchend touchmove wheel".split(" ");this.sTq=void 0;this.yrg=this.ev.p;this.iW7=this.eRs.bind(this);this.addOnDisposeCallback(function(){return void zW_(W)})};
_.k(mB,_.xj);var tzT=function(F){var W;return _.e(function(E){if(E.nextAddress==1){if(!F.ev.wpc)throw new Rd(30,"NWA");return F.pq0?E.return(F.pq0):_.Q(E,F.ev.wpc(),2)}W=E.yieldResult;F.pq0=new ef(W);return E.return(F.pq0)})};
mB.prototype.snapshot=function(F){return this.ev.s(Object.assign({},F.sY&&{c:F.sY},F.xFP&&{s:F.xFP},F.x4P!==void 0&&{p:F.x4P}))};
mB.prototype.eRs=function(F){this.ev.e(F)};
mB.prototype.xjw=function(F,W){return this.ev.c(F,W,!1)};
var zW_=function(F){F.sTq!==void 0&&(F.lJx.forEach(function(W){var E;(E=F.sTq)==null||E.removeEventListener(W,F.iW7)}),F.sTq=void 0)};
mB.prototype.uK3=function(){return this.ev.l()};var CLU,Mo=function(){_.xj.apply(this,arguments);this.b0F=1;this[CLU]=this.dispose};
_.k(Mo,_.xj);Mo.prototype.share=function(){if(this.isDisposed())throw Error("ta");this.b0F++;return this};
Mo.prototype.dispose=function(){--this.b0F||_.xj.prototype.dispose.call(this)};
CLU=Symbol.dispose;var pbr=function(F){this.rMr=F;F.addNewEventMetric("/client_streamz/bg/frs",_.dl("mk"))};
pbr.prototype.record=function(F,W){this.rMr.record("/client_streamz/bg/frs",F,W)};
var W6b=function(F){this.mvY=F;F.addNewEventMetric("/client_streamz/bg/wrl",_.dl("mn"),hv("ac"),hv("sc"),_.dl("rk"),_.dl("mk"))};
W6b.prototype.record=function(F,W,E,h,d,V){this.mvY.record("/client_streamz/bg/wrl",F,W,E,h,d,V)};
var Kjw=function(F){this.wxt=F;F.addNewCounter("/client_streamz/bg/ec",_.dl("en"),_.dl("mk"))};
Kjw.prototype.increment=function(F,W){this.wxt.JSC$7692_incrementCounter("/client_streamz/bg/ec",F,W)};
var F6e=function(F){this.urY=F;F.addNewEventMetric("/client_streamz/bg/el",_.dl("en"),_.dl("mk"))};
F6e.prototype.record=function(F,W,E){this.urY.record("/client_streamz/bg/el",F,W,E)};
var mTn=function(F){this.yCo=F;F.addNewCounter("/client_streamz/bg/cec",hv("ec"),_.dl("mk"))};
mTn.prototype.increment=function(F,W){this.yCo.JSC$7692_incrementCounter("/client_streamz/bg/cec",F,W)};
var Epr=function(F){this.x4Y=F;F.addNewCounter("/client_streamz/bg/po/csc",hv("cs"),_.dl("mk"))};
Epr.prototype.increment=function(F,W){this.x4Y.JSC$7692_incrementCounter("/client_streamz/bg/po/csc",F,W)};
var hFo=function(F){this.jPH=F;F.addNewCounter("/client_streamz/bg/po/ctav",_.dl("av"),_.dl("mk"))};
hFo.prototype.increment=function(F,W){this.jPH.JSC$7692_incrementCounter("/client_streamz/bg/po/ctav",F,W)};
var d6I=function(F){this.bkr=F;F.addNewCounter("/client_streamz/bg/po/cwsc",_.dl("su"),_.dl("mk"))};
d6I.prototype.increment=function(F,W){this.bkr.JSC$7692_incrementCounter("/client_streamz/bg/po/cwsc",F,W)};var Qyk=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(Qyk,_.n2);var gpY=function(F,W){return _.sf(F,3,W,pGS)};var BuM=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(BuM,_.n2);var vRe=[1,2,3];var Iee=[0,vRe,_.WGr,pgn,FGo];var cWM=[0,_.F0,[0,oIo,_.S2]];var DRO=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(DRO,_.n2);var xRX=[1,2,3];var k2e=[0,xRX,u2G,GLb,_.WK,cWM];var AWp=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(AWp,_.n2);var sKa=[0,_.F0,Iee,k2e];var LpM=[0,_.Kc];var qfX=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(qfX,_.n2);var $Ra=[0,_.Kc,-1,_.mN];var Z2e=[0,_.Kc,-1,_.pc,_.mN];var Xkz=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(Xkz,_.n2);var H2c=[1,2,3];var PLc=[0,H2c,_.WK,$Ra,_.WK,Z2e,_.WK,LpM];var JWU=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(JWU,_.n2);JWU.prototype.JSC$7512_serializeBinary=Wpo([0,_.Kc,PLc,Ekb,_.F0,sKa,mmk,KPY]);var aep=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(aep,_.n2);var b2a=function(F){var W=new JWU;W=_.QJ(W,1,F.JSC$7628_metricName);var E=fez(F);W=_.sf(W,3,E,_.lK);E=[];for(var h=[],d=_.U(F.cellMap.keys()),V=d.next();!V.done;V=d.next())h.push(V.value.split(","));for(d=0;d<h.length;d++){V=h[d];for(var R=F.cellType,M=F.getCells(V)||[],g=[],t=0;t<M.length;t++){var C=M[t],B=C&&C.cellValue;C=new DRO;switch(R){case 3:B=Number(B);Number.isFinite(B)&&tV(C,1,xRX,JP(B));break;case 2:tV(C,2,xRX,_.e$(Number(B)))}g.push(C)}R=g;for(M=0;M<R.length;M++){g=R[M];t=new AWp;g=_.hy(t,
2,g);t=[];C=O2T(F);for(B=0;B<C.length;B++){var I=C[B],x=V[B],A=new BuM;switch(I){case 3:tV(A,1,vRe,nN(String(x)));break;case 2:I=Number(x);Number.isFinite(I)&&tV(A,2,vRe,_.sq(I));break;case 1:tV(A,3,vRe,wGS(x==="true"))}t.push(A)}HY(g,1,t);E.push(g)}}HY(W,4,E);return W};var leX=function(F){if(!F)return"";if(/^about:(?:blank|srcdoc)$/.test(F))return window.origin||"";F.indexOf("blob:")===0&&(F=F.substring(5));F=F.split("#")[0].split("?")[0];F=F.toLowerCase();F.indexOf("//")==0&&(F=window.location.protocol+F);/^[\w\-]*:\/\//.test(F)||(F=window.location.href);var W=F.substring(F.indexOf("://")+3),E=W.indexOf("/");E!=-1&&(W=W.substring(0,E));E=F.substring(0,F.indexOf("://"));if(!E)throw Error("ua`"+F);if(E!=="http"&&E!=="https"&&E!=="chrome-extension"&&E!=="moz-extension"&&
E!=="file"&&E!=="android-app"&&E!=="chrome-search"&&E!=="chrome-untrusted"&&E!=="chrome"&&E!=="app"&&E!=="devtools")throw Error("va`"+E);F="";var h=W.indexOf(":");if(h!=-1){var d=W.substring(h+1);W=W.substring(0,h);if(E==="http"&&d!=="80"||E==="https"&&d!=="443")F=":"+d}return E+"://"+W+F};var yWu=function(F,W,E){var h=String(_.EY.location.href);return h&&F&&W?[W,nRT(leX(h),F,E||null)].join(" "):null},nRT=function(F,W,E){var h=[],d=[];
if((Array.isArray(E)?2:1)==1)return d=[W,F],_.Tk(h,function(M){d.push(M)}),jK_(d.join(" "));
var V=[],R=[];_.Tk(E,function(M){R.push(M.key);V.push(M.value)});
E=Math.floor((new Date).getTime()/1E3);d=V.length==0?[E,W,F]:[V.join(":"),E,W,F];_.Tk(h,function(M){d.push(M)});
F=jK_(d.join(" "));F=[E,F];R.length==0||F.push(R.join(""));return F.join("_")},jK_=function(F){var W=njS();
W.update(F);return W.digestString().toLowerCase()};var gv=function(F){this.JSC$7523_document_=F||{cookie:""}},i2p;
_.N=gv.prototype;_.N.isEnabled=function(){if(!_.EY.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{maxAge:60});if(this.get("TESTCOOKIESENABLED")!=="1")return!1;this.remove("TESTCOOKIESENABLED");return!0};
_.N.set=function(F,W,E){var h=!1;if(typeof E==="object"){var d=E.sameSite;h=E.secure||!1;var V=E.domain||void 0;var R=E.path||void 0;var M=E.maxAge}if(/[;=\s]/.test(F))throw Error("wa`"+F);if(/[;\r\n]/.test(W))throw Error("xa`"+W);M===void 0&&(M=-1);E=V?";domain="+V:"";R=R?";path="+R:"";h=h?";secure":"";M=M<0?"":M==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+M*1E3)).toUTCString();this.JSC$7523_document_.cookie=F+"="+W+E+R+M+h+(d!=null?";samesite="+d:"")};
_.N.get=function(F,W){for(var E=F+"=",h=(this.JSC$7523_document_.cookie||"").split(";"),d=0,V;d<h.length;d++){V=tr(h[d]);if(V.lastIndexOf(E,0)==0)return V.slice(E.length);if(V==F)return""}return W};
_.N.remove=function(F,W,E){var h=this.containsKey(F);this.set(F,"",{maxAge:0,path:W,domain:E});return h};
_.N.getKeys=function(){return i2p(this).keys};
_.N.getValues=function(){return i2p(this).values};
_.N.isEmpty=function(){return!this.JSC$7523_document_.cookie};
_.N.getCount=function(){return this.JSC$7523_document_.cookie?(this.JSC$7523_document_.cookie||"").split(";").length:0};
_.N.containsKey=function(F){return this.get(F)!==void 0};
_.N.containsValue=function(F){for(var W=i2p(this).values,E=0;E<W.length;E++)if(W[E]==F)return!0;return!1};
_.N.clear=function(){for(var F=i2p(this).keys,W=F.length-1;W>=0;W--)this.remove(F[W])};
i2p=function(F){F=(F.JSC$7523_document_.cookie||"").split(";");for(var W=[],E=[],h,d,V=0;V<F.length;V++)d=tr(F[V]),h=d.indexOf("="),h==-1?(W.push(""),E.push(d)):(W.push(d.substring(0,h)),E.push(d.substring(h+1)));return{keys:W,values:E}};
_.BZ=new gv(typeof document=="undefined"?null:document);var EAn=function(){var F=_.EY.__SAPISID||_.EY.__APISID||_.EY.__3PSAPISID||_.EY.__1PSAPISID||_.EY.__OVERRIDE_SID;if(F)return!0;typeof document!=="undefined"&&(F=new gv(document),F=F.get("SAPISID")||F.get("APISID")||F.get("__Secure-3PAPISID")||F.get("__Secure-1PAPISID"));return!!F},rWX=function(F,W,E,h){(F=_.EY[F])||typeof document==="undefined"||(F=(new gv(document)).get(W));
return F?yWu(F,E,h):null},TRb=function(F){var W=leX(_.EY==null?void 0:_.EY.location.href),E=[];
if(EAn()){W=W.indexOf("https:")==0||W.indexOf("chrome-extension:")==0||W.indexOf("chrome-untrusted://new-tab-page")==0||W.indexOf("moz-extension:")==0;var h=W?_.EY.__SAPISID:_.EY.__APISID;h||typeof document==="undefined"||(h=new gv(document),h=h.get(W?"SAPISID":"APISID")||h.get("__Secure-3PAPISID"));(h=h?yWu(h,W?"SAPISIDHASH":"APISIDHASH",F):null)&&E.push(h);W&&((W=rWX("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",F))&&E.push(W),(F=rWX("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",F))&&E.push(F))}return E.length==
0?null:E.join(" ")};var Tu_=function(){this.minSize=1024};
Tu_.prototype.compress=function(F){var W,E,h,d;return _.e(function(V){switch(V.nextAddress){case 1:return W=new CompressionStream("gzip"),E=(new Response(W.readable)).arrayBuffer(),h=W.writable.getWriter(),_.Q(V,h.write((new TextEncoder).encode(F)),2);case 2:return _.Q(V,h.close(),3);case 3:return d=Uint8Array,_.Q(V,E,4);case 4:return V.return(new d(V.yieldResult))}})};
Tu_.prototype.isSupported=function(F){return F<this.minSize?!1:typeof CompressionStream!=="undefined"};var oRT=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(oRT,_.n2);var Qv=function(F,W){this.intervalMs=F;this.callback=W;this.enabled=!1;this.nowFn=function(){return _.e2()};
this.lastTimeMs=this.nowFn()};
Qv.prototype.setInterval=function(F){this.intervalMs=F;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()};
Qv.prototype.start=function(){var F=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){F.tick()},this.intervalMs),this.lastTimeMs=this.nowFn())};
Qv.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)};
Qv.prototype.tick=function(){var F=this;if(this.enabled){var W=Math.max(this.nowFn()-this.lastTimeMs,0);W<this.intervalMs*.8?this.timer=setTimeout(function(){F.tick()},this.intervalMs-W):(this.timer&&(clearTimeout(this.timer),this.timer=void 0),this.callback(),this.enabled&&(this.stop(),this.start()))}else this.timer=void 0};var G2_=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(G2_,_.n2);var Yfa=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(Yfa,_.n2);var wkT=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(wkT,_.n2);wkT.prototype.getTransmissionType=function(){return _.lj(this,1)};var rve=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(rve,_.n2);rve.prototype.getVersion=function(){return _.bj(this,2)};var z0=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(z0,_.n2);var irk=function(F){HY(V$,1,F)};
z0.prototype.getModel=function(){return _.bj(this,6)};
var uGz=_.Wp(z0);var SfM=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(SfM,_.n2);var yvY=["platform","platformVersion","architecture","model","uaFullVersion"],V$=new z0,jTY=null;var pkp=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(pkp,_.n2);var mRc=function(F){return _.hH(F,1,1)};var Kpa=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F,4)};
_.k(Kpa,_.n2);_.th=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F,36)};
_.k(_.th,_.n2);_.th.prototype.getExperimentIds=function(){return _.Em(this,oRT,16)};var F7U=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F,19)};
_.k(F7U,_.n2);F7U.prototype.setLogSource=function(F){return _.hH(this,2,F)};
F7U.prototype.setScheduler=function(F){return _.hH(this,10,F)};var Ewz=function(F,W){this.isServiceWorkerScope=W=W===void 0?!1:W;this.uach=this.locale=null;this.transmissionType=0;this.isFinal=!1;this.logRequest=new F7U;Number.isInteger(F)&&this.logRequest.setLogSource(F);W||(this.locale=document.documentElement.getAttribute("lang"));W7H(this,new pkp)};
Ewz.prototype.setLogSource=function(F){this.logRequest.setLogSource(F);return this};
var W7H=function(F,W){_.hy(F.logRequest,1,W);_.lj(W,1)||mRc(W);F.isServiceWorkerScope||(W=CP(F),_.bj(W,5)||_.QJ(W,5,F.locale));F.uach&&(W=CP(F),_.Em(W,z0,9)||_.hy(W,9,F.uach))},hNT=function(F,W){F.transmissionType=W},diH=function(F){var W=W===void 0?yvY:W;
var E=F.isServiceWorkerScope?void 0:LC();E?Tlr(E,W).then(function(h){F.uach=uGz(h!=null?h:"[]");h=CP(F);_.hy(h,9,F.uach);return!0}).catch(function(){return!1}):Promise.resolve(!1)},CP=function(F){F=_.Em(F.logRequest,pkp,1);
var W=_.Em(F,SfM,11);W||(W=new SfM,_.hy(F,11,W));return W};
Ewz.prototype.build=function(F,W,E,h,d,V){W=W===void 0?0:W;E=E===void 0?0:E;h=h===void 0?null:h;d=d===void 0?0:d;V=V===void 0?0:V;if(!this.isServiceWorkerScope){var R=CP(this);var M=new wkT;M=_.hH(M,1,this.transmissionType);M=_.NT(M,2,this.isFinal);E=_.ij(M,3,E>0?E:void 0);E=_.ij(E,4,d>0?d:void 0);E=_.ij(E,5,V>0?V:void 0);d=E.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;V=d[_.Xp]|0;E=nT(E,V)?E:gu(E,d,V)?ez(E,d):new E.constructor(RK(d,V,!0));_.hy(R,10,E)}R=this.logRequest.clone();E=Date.now().toString();
R=_.de(R,4,JP(E));F=F.slice();F=HY(R,3,F);h&&(R=new G2_,h=_.ij(R,13,h),R=new Yfa,h=_.hy(R,2,h),R=new Kpa,h=_.hy(R,1,h),h=_.hH(h,2,9),_.hy(F,18,h));W&&_.kt(F,14,W);return F};U2.prototype.currBackoffCount_=0;U2.prototype.reset=function(){this.currBaseValue_=this.currValue_=this.initialValue_;this.currBackoffCount_=0};
U2.prototype.getValue=function(){return this.currValue_};
var NUH=function(F){F.currBaseValue_=Math.min(F.maxValue_,F.currBaseValue_*F.backoffFactor_);F.currValue_=Math.min(F.maxValue_,F.currBaseValue_+(F.randomFactor_?Math.round(F.randomFactor_*(Math.random()-.5)*2*F.currBaseValue_):0));F.currBackoffCount_++};var U$k=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F,8)};
_.k(U$k,_.n2);var V9a=_.Wp(U$k);var RTe=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(RTe,_.n2);var BI;BI=new eTe;var vI=function(F){_.xj.call(this);var W=this;this.componentId="";this.pendingEvents=[];this.lastFailedAuth="";this.pageId=null;this.noFlushUntilMs=this.startWaitingMs=-1;this.JSC$7601_compressor=this.experimentIds=null;this.numRetriesSinceLastSuccessfulFlush=this.numLogsDroppedSinceLastFlush=0;this.metalogService=null;this.persistedLogExpiredCount=this.persistedLogRecoveredCount=0;this.sequencePosition=1;this.timeoutMillis=0;this.JSC$7601_sendBeaconApiEnabled=!1;this.logSource=F.logSource;this.getAuthHeaderValue=
F.getAuthHeaderValue||function(){};
this.logRequestBuilder=new Ewz(F.logSource,F.isServiceWorkerScope);this.network=F.network||null;this.productID=F.productID||null;this.clearcutUrl=F.urlOverride||null;this.sessionIndex=F.sessionIndex||null;this.disableAutomaticFlush=F.disableAutomaticFlush||!1;this.logger=null;this.withCredentials=!F.disableWithCredentials;this.isServiceWorkerScope=F.isServiceWorkerScope||!1;this.isSendBeaconSupported=!this.isServiceWorkerScope&&!!LC()&&!!LC().navigator&&LC().navigator.sendBeacon!==void 0;this.isBrowserSupported=
typeof URLSearchParams!=="undefined"&&!!(new URL(Uie())).searchParams&&!!(new URL(Uie())).searchParams.set;var E=mRc(new pkp);W7H(this.logRequestBuilder,E);this.flushBackoff=new U2(1E4,3E5,.1);F=RNz(this,F.backgroundJobDeferrer);this.JSC$7601_flushTimer=new Qv(this.flushBackoff.getValue(),F);this.backupTimer=new Qv(6E5,F);this.disableAutomaticFlush||this.backupTimer.start();this.isServiceWorkerScope||(document.addEventListener("visibilitychange",function(){if(document.visibilityState==="hidden"){eNT(W);
var h;(h=W.metalogService)==null||h.flush()}}),document.addEventListener("pagehide",function(){eNT(W);
var h;(h=W.metalogService)==null||h.flush()}))};
_.k(vI,_.xj);var RNz=function(F,W){return F.isBrowserSupported?W?function(){W().then(function(){F.flush()})}:function(){F.flush()}:function(){}};
vI.prototype.disposeInternal=function(){eNT(this);this.JSC$7601_flushTimer.stop();this.backupTimer.stop();_.xj.prototype.disposeInternal.call(this)};
var M9z=function(F){F.clearcutUrl||(F.clearcutUrl=Uie());try{return(new URL(F.clearcutUrl)).toString()}catch(W){return(new URL(F.clearcutUrl,LC().location.origin)).toString()}};
vI.prototype.dispatch=function(F){if(F instanceof _.th)this.log(F);else try{var W=new _.th,E=F.serialize();var h=_.QJ(W,8,E);this.log(h)}catch(d){Id(this,4,1)}};
var Id=function(F,W,E){F.metalogService&&F.metalogService.increment(W,E)};
vI.prototype.log=function(F){Id(this,2,1);if(this.isBrowserSupported){F=F.clone();var W=this.sequencePosition++;F=_.kt(F,21,W);this.componentId&&_.QJ(F,26,this.componentId);W=F;if(zuo(_.Af(W,1))==null){var E=Date.now();E=Number.isFinite(E)?E.toString():"0";_.de(W,1,JP(E))}_.QiW(_.Af(W,15))!=null||_.kt(W,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(E=this.experimentIds.clone(),_.hy(W,16,E));Id(this,1,1);W=this.pendingEvents.length-1E3+1;W>0&&(this.pendingEvents.splice(0,W),this.numLogsDroppedSinceLastFlush+=
W,Id(this,3,W));this.pendingEvents.push(F);this.disableAutomaticFlush||this.JSC$7601_flushTimer.enabled||this.JSC$7601_flushTimer.start()}};
vI.prototype.flush=function(F,W){var E=this;if(this.pendingEvents.length===0)F&&F();else if(this.JSC$7601_sendBeaconApiEnabled&&this.isSendBeaconSupported)this.logRequestBuilder.transmissionType=3,gwH(this);else{var h=Date.now();if(this.noFlushUntilMs>h&&this.startWaitingMs<h)W&&W("throttled");else{this.network&&(typeof this.network.getTransmissionType==="function"?hNT(this.logRequestBuilder,this.network.getTransmissionType()):this.logRequestBuilder.transmissionType=0);var d=this.pendingEvents.length,
V=this.logRequestBuilder.build(this.pendingEvents,this.numLogsDroppedSinceLastFlush,this.numRetriesSinceLastSuccessfulFlush,this.productID,this.persistedLogRecoveredCount,this.persistedLogExpiredCount),R=this.getAuthHeaderValue();if(R&&this.lastFailedAuth===R)W&&W("stale-auth-token");else{this.pendingEvents=[];this.JSC$7601_flushTimer.enabled&&this.JSC$7601_flushTimer.stop();this.numLogsDroppedSinceLastFlush=0;h=V.serialize();var M;this.JSC$7601_compressor&&this.JSC$7601_compressor.isSupported(h.length)&&
(M=this.JSC$7601_compressor.compress(h));var g=QIX(this,h,R),t=function(I){E.flushBackoff.reset();E.JSC$7601_flushTimer.setInterval(E.flushBackoff.getValue());if(I){var x=null;try{var A=JSON.stringify(JSON.parse(I.replace(")]}'\n","")));x=V9a(A)}catch(X){}x&&(I=Number(fc(x,1,_.mX("-1"))),I>0&&(E.startWaitingMs=Date.now(),E.noFlushUntilMs=E.startWaitingMs+I),P_r(x.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,BI.fieldIndex),XOR(x,BI.fieldIndex),x=BI.ctor?BI.getExtensionFn(x,BI.ctor,BI.fieldIndex,
BI.JSC$6781_hasMessageId):BI.getExtensionFn(x,BI.fieldIndex,null,BI.JSC$6781_hasMessageId),x=x===null?void 0:x)&&(x=_.Wb(x,1,-1),x!==-1&&(E.flushBackoff=new U2(x<1?1:x,3E5,.1),E.JSC$7601_flushTimer.setInterval(E.flushBackoff.getValue())))}F&&F();E.numRetriesSinceLastSuccessfulFlush=0},C=function(I,x){var A=_.KC(V,_.th,3,_.Fg());
var X=Number(fc(V,14));NUH(E.flushBackoff);E.JSC$7601_flushTimer.setInterval(E.flushBackoff.getValue());I===401&&R&&(E.lastFailedAuth=R);X&&(E.numLogsDroppedSinceLastFlush+=X);x===void 0&&(x=E.isRetryable(I));x&&(E.pendingEvents=A.concat(E.pendingEvents),E.disableAutomaticFlush||E.JSC$7601_flushTimer.enabled||E.JSC$7601_flushTimer.start());Id(E,7,1);W&&W("net-send-failed",I);++E.numRetriesSinceLastSuccessfulFlush},B=function(){E.network&&E.network.send(g,t,C)};
M?M.then(function(I){Id(E,5,d);g.requestHeaders["Content-Encoding"]="gzip";g.requestHeaders["Content-Type"]="application/binary";g.body=I;g.bodyType=2;B()},function(){Id(E,6,d);
B()}):B()}}}};
var QIX=function(F,W,E){E=E===void 0?null:E;var h=h===void 0?F.withCredentials:h;var d={},V=new URL(M9z(F));E&&(d.Authorization=E);F.sessionIndex&&(d["X-Goog-AuthUser"]=F.sessionIndex,V.searchParams.set("authuser",F.sessionIndex));F.pageId&&(Object.defineProperty(d,"X-Goog-PageId",{value:F.pageId}),V.searchParams.set("pageId",F.pageId));return{url:V.toString(),body:W,bodyType:1,requestHeaders:d,requestType:"POST",withCredentials:h,timeoutMillis:F.timeoutMillis}},eNT=function(F){F.logRequestBuilder.isFinal=
!0;
F.flush();F.logRequestBuilder.isFinal=!1},gwH=function(F){zNz(F,function(W,E){W=new URL(W);
W.searchParams.set("format","json");var h=!1;try{h=LC().navigator.sendBeacon(W.toString(),E.serialize())}catch(d){}h||(F.isSendBeaconSupported=!1);return h})},zNz=function(F,W){if(F.pendingEvents.length!==0){var E=new URL(M9z(F));
E.searchParams.delete("format");var h=F.getAuthHeaderValue();h&&E.searchParams.set("auth",h);E.searchParams.set("authuser",F.sessionIndex||"0");for(h=0;h<10&&F.pendingEvents.length;++h){var d=F.pendingEvents.slice(0,32),V=F.logRequestBuilder.build(d,F.numLogsDroppedSinceLastFlush,F.numRetriesSinceLastSuccessfulFlush,F.productID,F.persistedLogRecoveredCount,F.persistedLogExpiredCount);if(!W(E.toString(),V)){++F.numRetriesSinceLastSuccessfulFlush;break}F.numLogsDroppedSinceLastFlush=0;F.numRetriesSinceLastSuccessfulFlush=
0;F.persistedLogRecoveredCount=0;F.persistedLogExpiredCount=0;F.pendingEvents=F.pendingEvents.slice(d.length)}F.JSC$7601_flushTimer.enabled&&F.JSC$7601_flushTimer.stop()}};
vI.prototype.isRetryable=function(F){return 500<=F&&F<600||F===401||F===0};
var Uie=function(){return"https://play.google.com/log?format=json&hasfast=true"};var t9p=function(){this.abortSupported=typeof AbortController!=="undefined"};
t9p.prototype.send=function(F,W,E){var h=this,d,V,R,M,g,t,C,B,I,x;return _.e(function(A){switch(A.nextAddress){case 1:return V=(d=h.abortSupported?new AbortController:void 0)?setTimeout(function(){d.abort()},F.timeoutMillis):void 0,_.Nl(A,2,3),R=Object.assign({},{method:F.requestType,
headers:Object.assign({},F.requestHeaders)},F.body&&{body:F.body},F.withCredentials&&{credentials:"include"},{signal:F.timeoutMillis&&d?d.signal:null}),_.Q(A,fetch(F.url,R),5);case 5:M=A.yieldResult;if(M.status!==200){(g=E)==null||g(M.status);A.jumpTo(3);break}if((t=W)==null){A.jumpTo(7);break}return _.Q(A,M.text(),8);case 8:t(A.yieldResult);case 7:case 3:_.V0(A);clearTimeout(V);_.eJ(A,0);break;case 2:C=_.Ml(A);switch((B=C)==null?void 0:B.name){case "AbortError":(I=E)==null||I(408);break;default:(x=
E)==null||x(400)}A.jumpTo(3)}})};
t9p.prototype.getTransmissionType=function(){return 4};_.MT=function(F,W){W=W===void 0?"0":W;_.xj.call(this);this.logSource=F;this.sessionIndex=W;this.destinationUrl="https://play.google.com/log?format=json&hasfast=true";this.buildLabel=null;this.serviceWorkerScopeEnabled=!1;this.network=null;this.componentId="";this.JSC$7619_clearExperimentIds=this.productID=null;this.JSC$7619_sendBeaconApiEnabled=!1;this.pageId=null};
_.k(_.MT,_.xj);var RFr=function(F,W){F.buildLabel=W;return F},U6n=function(F,W){F.network=W;
return F},Mek=function(F,W){F.JSC$7619_clearExperimentIds=W},VeY=function(F){F.JSC$7619_sendBeaconApiEnabled=!0;
return F};
_.MT.prototype.disableWithCredentials=function(){this.withCredentialsDisabled=!0;return this};
_.MT.prototype.build=function(){this.network||(this.network=new t9p);var F=new vI({logSource:this.logSource,getAuthHeaderValue:this.getAuthHeaderValue?this.getAuthHeaderValue:TRb,sessionIndex:this.sessionIndex,urlOverride:this.destinationUrl,isServiceWorkerScope:this.serviceWorkerScopeEnabled,disableAutomaticFlush:!1,disableWithCredentials:this.withCredentialsDisabled,backgroundJobDeferrer:this.backgroundJobDeferrer,network:this.network});_.gl(this,F);if(this.buildLabel){var W=this.buildLabel,E=CP(F.logRequestBuilder);
_.QJ(E,7,W)}F.JSC$7601_compressor=new Tu_;this.componentId&&(F.componentId=this.componentId);this.productID&&(F.productID=this.productID);this.pageId&&(F.pageId=this.pageId);this.JSC$7619_clearExperimentIds&&((E=this.JSC$7619_clearExperimentIds)?(F.experimentIds||(F.experimentIds=new oRT),W=F.experimentIds,E=E.serialize(),_.QJ(W,4,E)):F.experimentIds&&_.de(F.experimentIds,4));this.JSC$7619_sendBeaconApiEnabled&&(F.JSC$7601_sendBeaconApiEnabled=F.isSendBeaconSupported);diH(F.logRequestBuilder);this.network.setLogSource&&
this.network.setLogSource(this.logSource);this.network.setTransportReferenceAndAttemptFlush&&this.network.setTransportReferenceAndAttemptFlush(F);return F};var zFr=function(F,W,E,h,d,V,R){F=F===void 0?-1:F;W=W===void 0?"":W;E=E===void 0?"":E;h=h===void 0?!1:h;d=d===void 0?"":d;_.xj.call(this);this.logSource=F;this.componentId=W;V?W=V:(F=new _.MT(F,"0"),F.componentId=W,_.gl(this,F),E!==""&&(F.destinationUrl=E),h&&(F.serviceWorkerScopeEnabled=!0),d&&RFr(F,d),R&&U6n(F,R),W=F.build());this.JSC$7623_transport=W};
_.k(zFr,_.xj);zFr.prototype.flush=function(F){F=F||[];if(F.length){for(var W=new aep,E=[],h=0;h<F.length;h++){var d=F[h],V=b2a(d);E.push(V);d.clear()}HY(W,1,E);this.JSC$7623_transport.dispatch(W);this.JSC$7623_transport.flush()}};var Ciz=function(F){this.cellValue=F};var cI=function(F,W,E){this.JSC$7628_metricName=F;this.cellType=W;this.fields=E||[];this.cellMap=new Map},O2T=function(F){return F.fields.map(function(W){return W.fieldType})},fez=function(F){return F.fields.map(function(W){return W.fieldName})};
_.N=cI.prototype;_.N.addCell=function(F){var W=_.Dd.apply(1,arguments),E=this.getCells(W);E?E.push(new Ciz(F)):this.JSC$7628_setCell(F,W)};
_.N.JSC$7628_setCell=function(F){var W=this.JSC$7628_getKey(_.Dd.apply(1,arguments));this.cellMap.set(W,[new Ciz(F)])};
_.N.getCells=function(){var F=this.JSC$7628_getKey(_.Dd.apply(0,arguments));return this.cellMap.has(F)?this.cellMap.get(F):void 0};
_.N.getCell=function(){var F=this.getCells(_.Dd.apply(0,arguments));return F&&F.length?F[0]:void 0};
_.N.clear=function(){this.cellMap.clear()};
_.N.JSC$7628_getKey=function(){var F=_.Dd.apply(0,arguments);return F?F.join(","):"key"};var BUc=function(F,W){cI.call(this,F,3,W)};
_.k(BUc,cI);BUc.prototype.JSC$7631_incrementCounterBy=function(F){var W=_.Dd.apply(1,arguments),E=0,h=this.getCell(W);h&&(E=h.cellValue);this.JSC$7628_setCell(E+F,W)};var vwu=function(F,W){cI.call(this,F,2,W)};
_.k(vwu,cI);vwu.prototype.record=function(F){this.addCell(F,_.Dd.apply(1,arguments))};_.DZ=function(F){this.id=F};
_.DZ.prototype.toString=function(){return this.id};_.xU=function(F,W){this.type=F instanceof _.DZ?String(F):F;this.currentTarget=this.target=W;this.defaultPrevented=this.propagationStopped_=!1};
_.xU.prototype.stopPropagation=function(){this.propagationStopped_=!0};
_.xU.prototype.preventDefault=function(){this.defaultPrevented=!0};_.kU=function(F,W){_.xU.call(this,F?F.type:"");this.relatedTarget=this.currentTarget=this.target=null;this.button=this.screenY=this.screenX=this.clientY=this.clientX=this.offsetY=this.offsetX=0;this.key="";this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.state=null;this.pointerId=0;this.pointerType="";this.timeStamp=0;this.event_=null;F&&this.init(F,W)};
_.Ma(_.kU,_.xU);
_.kU.prototype.init=function(F,W){var E=this.type=F.type,h=F.changedTouches&&F.changedTouches.length?F.changedTouches[0]:null;this.target=F.target||F.srcElement;this.currentTarget=W;W=F.relatedTarget;W||(E=="mouseover"?W=F.fromElement:E=="mouseout"&&(W=F.toElement));this.relatedTarget=W;h?(this.clientX=h.clientX!==void 0?h.clientX:h.pageX,this.clientY=h.clientY!==void 0?h.clientY:h.pageY,this.screenX=h.screenX||0,this.screenY=h.screenY||0):(this.offsetX=_.BY||F.offsetX!==void 0?F.offsetX:F.layerX,
this.offsetY=_.BY||F.offsetY!==void 0?F.offsetY:F.layerY,this.clientX=F.clientX!==void 0?F.clientX:F.pageX,this.clientY=F.clientY!==void 0?F.clientY:F.pageY,this.screenX=F.screenX||0,this.screenY=F.screenY||0);this.button=F.button;this.keyCode=F.keyCode||0;this.key=F.key||"";this.charCode=F.charCode||(E=="keypress"?F.keyCode:0);this.ctrlKey=F.ctrlKey;this.altKey=F.altKey;this.shiftKey=F.shiftKey;this.metaKey=F.metaKey;this.pointerId=F.pointerId||0;this.pointerType=F.pointerType;this.state=F.state;
this.timeStamp=F.timeStamp;this.event_=F;F.defaultPrevented&&_.kU.superClass_.preventDefault.call(this)};
_.kU.prototype.stopPropagation=function(){_.kU.superClass_.stopPropagation.call(this);this.event_.stopPropagation?this.event_.stopPropagation():this.event_.cancelBubble=!0};
_.kU.prototype.preventDefault=function(){_.kU.superClass_.preventDefault.call(this);var F=this.event_;F.preventDefault?F.preventDefault():F.returnValue=!1};var IdB="closure_listenable_"+(Math.random()*1E6|0),Ah=function(F){return!(!F||!F[IdB])};var cyO=0;var Di_=function(F,W,E,h,d){this.listener=F;this.proxy=null;this.src=W;this.type=E;this.capture=!!h;this.handler=d;this.key=++cyO;this.removed=this.callOnce=!1},xiu=function(F){F.removed=!0;
F.listener=null;F.proxy=null;F.src=null;F.handler=null};RT.prototype.add=function(F,W,E,h,d){var V=F.toString();F=this.listeners[V];F||(F=this.listeners[V]=[],this.typeCount_++);var R=kyH(F,W,h,d);R>-1?(W=F[R],E||(W.callOnce=!1)):(W=new Di_(W,this.src,V,!!h,d),W.callOnce=E,F.push(W));return W};
RT.prototype.remove=function(F,W,E,h){F=F.toString();if(!(F in this.listeners))return!1;var d=this.listeners[F];W=kyH(d,W,E,h);return W>-1?(xiu(d[W]),_.YW(d,W),d.length==0&&(delete this.listeners[F],this.typeCount_--),!0):!1};
var AyO=function(F,W){var E=W.type;if(!(E in F.listeners))return!1;var h=_.mY(F.listeners[E],W);h&&(xiu(W),F.listeners[E].length==0&&(delete F.listeners[E],F.typeCount_--));return h};
RT.prototype.removeAll=function(F){F=F&&F.toString();var W=0,E;for(E in this.listeners)if(!F||E==F){for(var h=this.listeners[E],d=0;d<h.length;d++)++W,xiu(h[d]);delete this.listeners[E];this.typeCount_--}return W};
RT.prototype.getListener=function(F,W,E,h){F=this.listeners[F.toString()];var d=-1;F&&(d=kyH(F,W,E,h));return d>-1?F[d]:null};
RT.prototype.hasListener=function(F,W){var E=F!==void 0,h=E?F.toString():"",d=W!==void 0;return _.xd.some(this.listeners,function(V){for(var R=0;R<V.length;++R)if(!(E&&V[R].type!=h||d&&V[R].capture!=W))return!0;return!1})};
var kyH=function(F,W,E,h){for(var d=0;d<F.length;++d){var V=F[d];if(!V.removed&&V.listener==W&&V.capture==!!E&&V.handler==h)return d}return-1};var sIu,L7a,qWH,ZuT,Xpp,CK,Be,JyU,Huz,Pi_,ss,ad_,$i_;sIu="closure_lm_"+(Math.random()*1E6|0);L7a={};qWH=0;_.ce=function(F,W,E,h,d){if(h&&h.once)return CK(F,W,E,h,d);if(Array.isArray(W)){for(var V=0;V<W.length;V++)_.ce(F,W[V],E,h,d);return null}E=$i_(E);return Ah(F)?F.listen(W,E,_.NU(h)?!!h.capture:!!h,d):ZuT(F,W,E,!1,h,d)};
ZuT=function(F,W,E,h,d,V){if(!W)throw Error("za");var R=_.NU(d)?!!d.capture:!!d,M=ss(F);M||(F[sIu]=M=new RT(F));E=M.add(W,E,h,R,V);if(E.proxy)return E;h=Xpp();E.proxy=h;h.src=F;h.listener=E;if(F.addEventListener)_.l8b||(d=R),d===void 0&&(d=!1),F.addEventListener(W.toString(),h,d);else if(F.attachEvent)F.attachEvent(Huz(W.toString()),h);else if(F.addListener&&F.removeListener)F.addListener(h);else throw Error("Aa");qWH++;return E};
Xpp=function(){var F=Pi_,W=function(E){return F.call(W.src,W.listener,E)};
return W};
CK=function(F,W,E,h,d){if(Array.isArray(W)){for(var V=0;V<W.length;V++)CK(F,W[V],E,h,d);return null}E=$i_(E);return Ah(F)?F.listenOnce(W,E,_.NU(h)?!!h.capture:!!h,d):ZuT(F,W,E,!0,h,d)};
_.LP=function(F,W,E,h,d){if(Array.isArray(W))for(var V=0;V<W.length;V++)_.LP(F,W[V],E,h,d);else h=_.NU(h)?!!h.capture:!!h,E=$i_(E),Ah(F)?F.unlisten(W,E,h,d):F&&(F=ss(F))&&(W=F.getListener(W,E,h,d))&&Be(W)};
Be=function(F){if(typeof F==="number"||!F||F.removed)return!1;var W=F.src;if(Ah(W))return AyO(W.eventTargetListeners_,F);var E=F.type,h=F.proxy;W.removeEventListener?W.removeEventListener(E,h,F.capture):W.detachEvent?W.detachEvent(Huz(E),h):W.addListener&&W.removeListener&&W.removeListener(h);qWH--;(E=ss(W))?(AyO(E,F),E.typeCount_==0&&(E.src=null,W[sIu]=null)):xiu(F);return!0};
JyU=function(F,W,E,h,d){E=$i_(E);h=!!h;return Ah(F)?F.getListener(W,E,h,d):F?(F=ss(F))?F.getListener(W,E,h,d):null:null};
Huz=function(F){return F in L7a?L7a[F]:L7a[F]="on"+F};
Pi_=function(F,W){if(F.removed)F=!0;else{W=new _.kU(W,this);var E=F.listener,h=F.handler||F.src;F.callOnce&&Be(F);F=E.call(h,W)}return F};
ss=function(F){F=F[sIu];return F instanceof RT?F:null};
ad_="__closure_events_fn_"+(Math.random()*1E9>>>0);$i_=function(F){if(typeof F==="function")return F;F[ad_]||(F[ad_]=function(W){return F.handleEvent(W)});
return F[ad_]};_.qo=function(){_.xj.call(this);this.eventTargetListeners_=new RT(this);this.actualEventTarget_=this;this.parentEventTarget_=null};
_.Ma(_.qo,_.xj);_.qo.prototype[IdB]=!0;_.N=_.qo.prototype;_.N.setParentEventTarget=function(F){this.parentEventTarget_=F};
_.N.addEventListener=function(F,W,E,h){_.ce(this,F,W,E,h)};
_.N.removeEventListener=function(F,W,E,h){_.LP(this,F,W,E,h)};
_.N.dispatchEvent=function(F){var W,E=this.parentEventTarget_;if(E)for(W=[];E;E=E.parentEventTarget_)W.push(E);E=this.actualEventTarget_;var h=F.type||F;if(typeof F==="string")F=new _.xU(F,E);else if(F instanceof _.xU)F.target=F.target||E;else{var d=F;F=new _.xU(h,E);_.xd.extend(F,d)}d=!0;var V;if(W)for(V=W.length-1;!F.propagationStopped_&&V>=0;V--){var R=F.currentTarget=W[V];d=fdz(R,h,!0,F)&&d}F.propagationStopped_||(R=F.currentTarget=E,d=fdz(R,h,!0,F)&&d,F.propagationStopped_||(d=fdz(R,h,!1,F)&&
d));if(W)for(V=0;!F.propagationStopped_&&V<W.length;V++)R=F.currentTarget=W[V],d=fdz(R,h,!1,F)&&d;return d};
_.N.disposeInternal=function(){_.qo.superClass_.disposeInternal.call(this);this.removeAllListeners();this.parentEventTarget_=null};
_.N.listen=function(F,W,E,h){return this.eventTargetListeners_.add(String(F),W,!1,E,h)};
_.N.listenOnce=function(F,W,E,h){return this.eventTargetListeners_.add(String(F),W,!0,E,h)};
_.N.unlisten=function(F,W,E,h){return this.eventTargetListeners_.remove(String(F),W,E,h)};
_.N.removeAllListeners=function(F){return this.eventTargetListeners_?this.eventTargetListeners_.removeAll(F):0};
var fdz=function(F,W,E,h){W=F.eventTargetListeners_.listeners[String(W)];if(!W)return!0;W=W.concat();for(var d=!0,V=0;V<W.length;++V){var R=W[V];if(R&&!R.removed&&R.capture==E){var M=R.listener,g=R.handler||R.src;R.callOnce&&AyO(F.eventTargetListeners_,R);d=M.call(g,h)!==!1&&d}}return d&&!h.defaultPrevented};
_.qo.prototype.getListener=function(F,W,E,h){return this.eventTargetListeners_.getListener(String(F),W,E,h)};
_.qo.prototype.hasListener=function(F,W){return this.eventTargetListeners_.hasListener(F!==void 0?String(F):void 0,W)};var $U=typeof AsyncContext!=="undefined"&&typeof AsyncContext.Snapshot==="function"?function(F){return F&&AsyncContext.Snapshot.wrap(F)}:function(F){return F};var Ouc=function(F,W){this.create_=F;this.reset_=W;this.occupants_=0;this.JSC$7663_head_=null};
Ouc.prototype.get=function(){if(this.occupants_>0){this.occupants_--;var F=this.JSC$7663_head_;this.JSC$7663_head_=F.next;F.next=null}else F=this.create_();return F};
Ouc.prototype.put=function(F){this.reset_(F);this.occupants_<100&&(this.occupants_++,F.next=this.JSC$7663_head_,this.JSC$7663_head_=F)};var buM=function(){this.workTail_=this.workHead_=null};
buM.prototype.add=function(F,W){var E=G3n.get();E.set(F,W);this.workTail_?this.workTail_.next=E:this.workHead_=E;this.workTail_=E};
buM.prototype.remove=function(){var F=null;this.workHead_&&(F=this.workHead_,this.workHead_=this.workHead_.next,this.workHead_||(this.workTail_=null),F.next=null);return F};
var G3n=new Ouc(function(){return new ldz},function(F){return F.reset()}),ldz=function(){this.next=this.scope=this.fn=null};
ldz.prototype.set=function(F,W){this.fn=F;this.scope=W;this.next=null};
ldz.prototype.reset=function(){this.next=this.scope=this.fn=null};var nwc,Y2Y,ojY,yy_;Y2Y=!1;ojY=new buM;_.ZZ=function(F,W){nwc||yy_();Y2Y||(nwc(),Y2Y=!0);ojY.add(F,W)};
yy_=function(){var F=Promise.resolve(void 0);nwc=function(){F.then(wbY)}};var jIM=function(F){F.prototype.$goog_Thenable=!0},iuz=function(F){if(!F)return!1;
try{return!!F.$goog_Thenable}catch(W){return!1}};var ryi,TUH,owM,YWi,wp_,u3_,K7U,E9z,VJU,dlO,bES;_.z5=function(F,W){this.state_=0;this.result_=void 0;this.callbackEntriesTail_=this.callbackEntries_=this.parent_=null;this.hadUnhandledRejection_=this.executing_=!1;if(F!=_.sn)try{var E=this;F.call(W,function(h){E.resolve_(2,h)},function(h){E.resolve_(3,h)})}catch(h){this.resolve_(3,h)}};
ryi=function(){this.next=this.context=this.JSC$7674_onRejected=this.JSC$7674_onFulfilled=this.child=null;this.always=!1};
ryi.prototype.reset=function(){this.context=this.JSC$7674_onRejected=this.JSC$7674_onFulfilled=this.child=null;this.always=!1};
TUH=new Ouc(function(){return new ryi},function(F){F.reset()});
owM=function(F,W,E){var h=TUH.get();h.JSC$7674_onFulfilled=F;h.JSC$7674_onRejected=W;h.context=E;return h};
_.e7=function(F){if(F instanceof _.z5)return F;var W=new _.z5(_.sn);W.resolve_(2,F);return W};
_.xT=function(F){return new _.z5(function(W,E){E(F)})};
YWi=function(F,W,E){GyT(F,W,E,null)||_.ZZ(_.v5(W,F))};
_.X8=function(F){return new _.z5(function(W,E){var h=F.length,d=[];if(h)for(var V=function(t,C){h--;d[t]=C;h==0&&W(d)},R=function(t){E(t)},M,g=0;g<F.length;g++)M=F[g],YWi(M,_.v5(V,g),R);
else W(d)})};
wp_=function(F){return new _.z5(function(W){var E=F.length,h=[];if(E)for(var d=function(M,g,t){E--;h[M]=g?{fulfilled:!0,value:t}:{fulfilled:!1,reason:t};E==0&&W(h)},V,R=0;R<F.length;R++)V=F[R],YWi(V,_.v5(d,R,!0),_.v5(d,R,!1));
else W(h)})};
u3_=function(F){return new _.z5(function(W,E){var h=F.length,d=[];if(h)for(var V=function(t){W(t)},R=function(t,C){h--;
d[t]=C;h==0&&E(d)},M,g=0;g<F.length;g++)M=F[g],YWi(M,V,_.v5(R,g));
else W(void 0)})};
_.G_=function(){var F,W,E=new _.z5(function(h,d){F=h;W=d});
return new SWp(E,F,W)};
_.z5.prototype.then=function(F,W,E){return ppX(this,$U(typeof F==="function"?F:null),$U(typeof W==="function"?W:null),E)};
jIM(_.z5);K7U=function(F,W,E,h){mi_(F,owM(W||_.sn,E||null,h))};
_.HI=function(F,W){W=$U(W);W=owM(W,W);W.always=!0;mi_(F,W);return F};
_.z5.prototype.finally=function(F){var W=this;F=$U(F);return new Promise(function(E,h){K7U(W,function(d){F();E(d)},function(d){F();
h(d)})})};
_.z5.prototype.thenCatch=function(F,W){return ppX(this,null,$U(F),W)};
_.z5.prototype.catch=_.z5.prototype.thenCatch;_.z5.prototype.cancel=function(F){if(this.state_==0){var W=new _.FR(F);_.ZZ(function(){Fv_(this,W)},this)}};
var Fv_=function(F,W){if(F.state_==0)if(F.parent_){var E=F.parent_;if(E.callbackEntries_){for(var h=0,d=null,V=null,R=E.callbackEntries_;R&&(R.always||(h++,R.child==F&&(d=R),!(d&&h>1)));R=R.next)d||(V=R);d&&(E.state_==0&&h==1?Fv_(E,W):(V?(h=V,h.next==E.callbackEntriesTail_&&(E.callbackEntriesTail_=h),h.next=h.next.next):Wvc(E),E9z(E,d,3,W)))}F.parent_=null}else F.resolve_(3,W)},mi_=function(F,W){F.callbackEntries_||F.state_!=2&&F.state_!=3||hXe(F);
F.callbackEntriesTail_?F.callbackEntriesTail_.next=W:F.callbackEntries_=W;F.callbackEntriesTail_=W},ppX=function(F,W,E,h){var d=owM(null,null,null);
d.child=new _.z5(function(V,R){d.JSC$7674_onFulfilled=W?function(M){try{var g=W.call(h,M);V(g)}catch(t){R(t)}}:V;
d.JSC$7674_onRejected=E?function(M){try{var g=E.call(h,M);g===void 0&&M instanceof _.FR?R(M):V(g)}catch(t){R(t)}}:R});
d.child.parent_=F;mi_(F,d);return d.child};
_.z5.prototype.unblockAndFulfill_=function(F){this.state_=0;this.resolve_(2,F)};
_.z5.prototype.unblockAndReject_=function(F){this.state_=0;this.resolve_(3,F)};
_.z5.prototype.resolve_=function(F,W){this.state_==0&&(this===W&&(F=3,W=new TypeError("Ba")),this.state_=1,GyT(W,this.unblockAndFulfill_,this.unblockAndReject_,this)||(this.result_=W,this.state_=F,this.parent_=null,hXe(this),F!=3||W instanceof _.FR||dlO(this,W)))};
var GyT=function(F,W,E,h){if(F instanceof _.z5)return K7U(F,W,E,h),!0;if(iuz(F))return F.then(W,E,h),!0;if(_.NU(F))try{var d=F.then;if(typeof d==="function")return NGe(F,d,W,E,h),!0}catch(V){return E.call(h,V),!0}return!1},NGe=function(F,W,E,h,d){var V=!1,R=function(g){V||(V=!0,E.call(d,g))},M=function(g){V||(V=!0,h.call(d,g))};
try{W.call(F,R,M)}catch(g){M(g)}},hXe=function(F){F.executing_||(F.executing_=!0,_.ZZ(F.executeCallbacks_,F))},Wvc=function(F){var W=null;
F.callbackEntries_&&(W=F.callbackEntries_,F.callbackEntries_=W.next,W.next=null);F.callbackEntries_||(F.callbackEntriesTail_=null);return W};
_.z5.prototype.executeCallbacks_=function(){for(var F;F=Wvc(this);)E9z(this,F,this.state_,this.result_);this.executing_=!1};
E9z=function(F,W,E,h){if(E==3&&W.JSC$7674_onRejected&&!W.always)for(;F&&F.hadUnhandledRejection_;F=F.parent_)F.hadUnhandledRejection_=!1;if(W.child)W.child.parent_=null,VJU(W,E,h);else try{W.always?W.JSC$7674_onFulfilled.call(W.context):VJU(W,E,h)}catch(d){bES.call(null,d)}TUH.put(W)};
VJU=function(F,W,E){W==2?F.JSC$7674_onFulfilled.call(F.context,E):F.JSC$7674_onRejected&&F.JSC$7674_onRejected.call(F.context,E)};
dlO=function(F,W){F.hadUnhandledRejection_=!0;_.ZZ(function(){F.hadUnhandledRejection_&&bES.call(null,W)})};
bES=dI;_.FR=function(F){_.Fe.call(this,F)};
_.Ma(_.FR,_.Fe);_.FR.prototype.name="cancel";var SWp=function(F,W,E){this.promise=F;this.resolve=W;this.reject=E};var PI;_.Eg=function(F,W){_.qo.call(this);this.JSC$7686_interval_=F||1;this.timerObject_=W||_.EY;this.boundTick_=(0,_.kj)(this.tick_,this);this.last_=_.e2()};
_.Ma(_.Eg,_.qo);_.N=_.Eg.prototype;_.N.enabled=!1;_.N.JSC$7688_timer_=null;_.N.setInterval=function(F){this.JSC$7686_interval_=F;this.JSC$7688_timer_&&this.enabled?(this.stop(),this.start()):this.JSC$7688_timer_&&this.stop()};
_.N.tick_=function(){if(this.enabled){var F=_.e2()-this.last_;F>0&&F<this.JSC$7686_interval_*.8?this.JSC$7688_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$7686_interval_-F):(this.JSC$7688_timer_&&(this.timerObject_.clearTimeout(this.JSC$7688_timer_),this.JSC$7688_timer_=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
_.N.start=function(){this.enabled=!0;this.JSC$7688_timer_||(this.JSC$7688_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$7686_interval_),this.last_=_.e2())};
_.N.stop=function(){this.enabled=!1;this.JSC$7688_timer_&&(this.timerObject_.clearTimeout(this.JSC$7688_timer_),this.JSC$7688_timer_=null)};
_.N.disposeInternal=function(){_.Eg.superClass_.disposeInternal.call(this);this.stop();delete this.timerObject_};
PI=function(F,W,E){if(typeof F==="function")E&&(F=(0,_.kj)(F,E));else if(F&&typeof F.handleEvent=="function")F=(0,_.kj)(F.handleEvent,F);else throw Error("Ca");return Number(W)>2147483647?-1:_.EY.setTimeout(F,W||0)};
_.Uli=function(F){var W=null;return(new _.z5(function(E,h){W=PI(function(){E(void 0)},F);
W==-1&&h(Error("Da"))})).thenCatch(function(E){_.EY.clearTimeout(W);
throw E;})};var Q$=function(F){_.xj.call(this);this.streamzLogger=F;this.invocationCount=0;this.invocationLimit=100;this.shouldSendIsolatedPayload=!1;this.metricMap=new Map;this.disabledMetrics=new Set;this.flushInterval=3E4;this.JSC$7692_flushTimer=new _.Eg(this.flushInterval);this.JSC$7692_flushTimer.listen("tick",this.snapshotAndFlush,!1,this);_.gl(this,this.JSC$7692_flushTimer)};
_.k(Q$,_.xj);Q$.prototype.sendIsolatedPayload=function(F){this.shouldSendIsolatedPayload=F;this.invocationLimit=1};
var RXc=function(F){F.JSC$7692_flushTimer.enabled||F.JSC$7692_flushTimer.start();F.invocationCount++;F.invocationCount>=F.invocationLimit&&F.snapshotAndFlush()};
Q$.prototype.snapshotAndFlush=function(){var F=this.metricMap.values();F=[].concat(_.x9(F)).filter(function(W){return W.cellMap.size});
F.length&&this.streamzLogger.flush(F,this.shouldSendIsolatedPayload);eXO(F);this.invocationCount=0;this.JSC$7692_flushTimer.enabled&&this.JSC$7692_flushTimer.stop()};
Q$.prototype.addNewCounter=function(F){var W=_.Dd.apply(1,arguments);this.metricMap.has(F)||this.metricMap.set(F,new BUc(F,W))};
Q$.prototype.addNewEventMetric=function(F){var W=_.Dd.apply(1,arguments);this.metricMap.has(F)||this.metricMap.set(F,new vwu(F,W))};
var MJU=function(F,W){return F.disabledMetrics.has(W)?void 0:F.metricMap.get(W)};
Q$.prototype.JSC$7692_incrementCounter=function(F){this.JSC$7692_incrementCounterBy(F,1,_.Dd.apply(1,arguments))};
Q$.prototype.JSC$7692_incrementCounterBy=function(F,W){var E=_.Dd.apply(2,arguments),h=MJU(this,F);h&&h instanceof BUc&&(h.JSC$7631_incrementCounterBy(W,E),RXc(this))};
Q$.prototype.record=function(F,W){var E=_.Dd.apply(2,arguments),h=MJU(this,F);h&&h instanceof vwu&&(h.record(W,E),RXc(this))};
var eXO=function(F){for(var W=0;W<F.length;W++)F[W].clear()};_.Jh=function(F,W,E){E=E===void 0?{}:E;W=Error.call(this,W);this.message=W.message;"stack"in W&&(this.stack=W.stack);this.code=F;this.metadata=E;this.name="RpcError";Object.setPrototypeOf(this,this.constructor.prototype)};
_.k(_.Jh,Error);_.Jh.prototype.toString=function(){var F="RpcError("+(ugr(this.code)||String(this.code))+")";this.message&&(F+=": "+this.message);return F};_.g9a=_.EY.JSON.parse;_.ad=_.EY.JSON.stringify;_.$x=_.EY.JSON.parse;_.QS_=function(F){switch(F){case 0:return"No Error";case 1:return"Access denied to content document";case 2:return"File not found";case 3:return"Firefox silently errored";case 4:return"Application custom error";case 5:return"An exception occurred";case 6:return"Http response at 400 or 500 level";case 7:return"Request was aborted";case 8:return"Request timed out";case 9:return"The resource is not available offline";default:return"Unrecognized error code"}};var zXp=function(F){switch(F){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:return!0;default:return!1}};var tJX,COM=function(){};
_.Ma(COM,_.S2R);COM.prototype.createInstance=function(){return new XMLHttpRequest};
tJX=new COM;_.fP=function(F){_.qo.call(this);this.headers=new Map;this.JSC$7701_xmlHttpFactory_=F||null;this.JSC$7701_active_=!1;this.JSC$7701_xhr_=null;this.JSC$7701_lastUri_="";this.JSC$7701_lastErrorCode_=0;this.JSC$7701_lastError_="";this.inAbort_=this.inOpen_=this.inSend_=this.errorDispatched_=!1;this.timeoutInterval_=0;this.JSC$7701_timeoutId_=null;this.responseType_="";this.JSC$7701_withCredentials_=!1};
_.Ma(_.fP,_.qo);var BGu=/^https?$/i,v9B=["POST","PUT"],IVe=[],NvS=function(F,W,E,h,d,V,R){var M=new _.fP;IVe.push(M);W&&M.listen("complete",W);M.listenOnce("ready",M.cleanupSend_);V&&(M.timeoutInterval_=Math.max(0,V));R&&(M.JSC$7701_withCredentials_=R);M.send(F,E,h,d)};
_.fP.prototype.cleanupSend_=function(){this.dispose();_.mY(IVe,this)};
_.fP.prototype.send=function(F,W,E,h){if(this.JSC$7701_xhr_)throw Error("Ea`"+this.JSC$7701_lastUri_+"`"+F);W=W?W.toUpperCase():"GET";this.JSC$7701_lastUri_=F;this.JSC$7701_lastError_="";this.JSC$7701_lastErrorCode_=0;this.errorDispatched_=!1;this.JSC$7701_active_=!0;this.JSC$7701_xhr_=this.createXhr();this.JSC$7701_xhr_.onreadystatechange=$U((0,_.kj)(this.onReadyStateChange_,this));try{this.inOpen_=!0,this.JSC$7701_xhr_.open(W,String(F),!0),this.inOpen_=!1}catch(R){c1i(this,R);return}F=E||"";E=new Map(this.headers);
if(h)if(Object.getPrototypeOf(h)===Object.prototype)for(var d in h)E.set(d,h[d]);else if(typeof h.keys==="function"&&typeof h.get==="function"){d=_.U(h.keys());for(var V=d.next();!V.done;V=d.next())V=V.value,E.set(V,h.get(V))}else throw Error("Fa`"+String(h));h=Array.from(E.keys()).find(function(R){return"content-type"==R.toLowerCase()});
d=_.EY.FormData&&F instanceof _.EY.FormData;!_.on(v9B,W)||h||d||E.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");W=_.U(E);for(h=W.next();!h.done;h=W.next())E=_.U(h.value),h=E.next().value,E=E.next().value,this.JSC$7701_xhr_.setRequestHeader(h,E);this.responseType_&&(this.JSC$7701_xhr_.responseType=this.responseType_);"withCredentials"in this.JSC$7701_xhr_&&this.JSC$7701_xhr_.withCredentials!==this.JSC$7701_withCredentials_&&(this.JSC$7701_xhr_.withCredentials=this.JSC$7701_withCredentials_);
try{this.JSC$7701_timeoutId_&&(clearTimeout(this.JSC$7701_timeoutId_),this.JSC$7701_timeoutId_=null),this.timeoutInterval_>0&&(this.JSC$7701_timeoutId_=setTimeout(this.timeout_.bind(this),this.timeoutInterval_)),this.inSend_=!0,this.JSC$7701_xhr_.send(F),this.inSend_=!1}catch(R){c1i(this,R)}};
_.fP.prototype.createXhr=function(){return this.JSC$7701_xmlHttpFactory_?this.JSC$7701_xmlHttpFactory_.createInstance():tJX.createInstance()};
_.fP.prototype.timeout_=function(){typeof S7o!="undefined"&&this.JSC$7701_xhr_&&(this.JSC$7701_lastError_="Timed out after "+this.timeoutInterval_+"ms, aborting",this.JSC$7701_lastErrorCode_=8,this.dispatchEvent("timeout"),this.abort(8))};
var c1i=function(F,W){F.JSC$7701_active_=!1;F.JSC$7701_xhr_&&(F.inAbort_=!0,F.JSC$7701_xhr_.abort(),F.inAbort_=!1);F.JSC$7701_lastError_=W;F.JSC$7701_lastErrorCode_=5;DlH(F);xlu(F)},DlH=function(F){F.errorDispatched_||(F.errorDispatched_=!0,F.dispatchEvent("complete"),F.dispatchEvent("error"))};
_.fP.prototype.abort=function(F){this.JSC$7701_xhr_&&this.JSC$7701_active_&&(this.JSC$7701_active_=!1,this.inAbort_=!0,this.JSC$7701_xhr_.abort(),this.inAbort_=!1,this.JSC$7701_lastErrorCode_=F||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),xlu(this))};
_.fP.prototype.disposeInternal=function(){this.JSC$7701_xhr_&&(this.JSC$7701_active_&&(this.JSC$7701_active_=!1,this.inAbort_=!0,this.JSC$7701_xhr_.abort(),this.inAbort_=!1),xlu(this,!0));_.fP.superClass_.disposeInternal.call(this)};
_.fP.prototype.onReadyStateChange_=function(){if(!this.isDisposed())if(this.inOpen_||this.inSend_||this.inAbort_)kTz(this);else this.onReadyStateChangeEntryPoint_()};
_.fP.prototype.onReadyStateChangeEntryPoint_=function(){kTz(this)};
var kTz=function(F){if(F.JSC$7701_active_&&typeof S7o!="undefined")if(F.inSend_&&_.Os(F)==4)setTimeout(F.onReadyStateChange_.bind(F),0);else if(F.dispatchEvent("readystatechange"),F.isComplete()){F.JSC$7701_active_=!1;try{if(F.isSuccess())F.dispatchEvent("complete"),F.dispatchEvent("success");else{F.JSC$7701_lastErrorCode_=6;try{var W=_.Os(F)>2?F.JSC$7701_xhr_.statusText:""}catch(E){W=""}F.JSC$7701_lastError_=W+" ["+F.getStatus()+"]";DlH(F)}}finally{xlu(F)}}},xlu=function(F,W){if(F.JSC$7701_xhr_){F.JSC$7701_timeoutId_&&
(clearTimeout(F.JSC$7701_timeoutId_),F.JSC$7701_timeoutId_=null);
var E=F.JSC$7701_xhr_;F.JSC$7701_xhr_=null;W||F.dispatchEvent("ready");try{E.onreadystatechange=null}catch(h){}}};
_.fP.prototype.isActive=function(){return!!this.JSC$7701_xhr_};
_.fP.prototype.isComplete=function(){return _.Os(this)==4};
_.fP.prototype.isSuccess=function(){var F=this.getStatus(),W;if(!(W=zXp(F))){if(F=F===0)F=HNO(String(this.JSC$7701_lastUri_)),F=!BGu.test(F);W=F}return W};
_.Os=function(F){return F.JSC$7701_xhr_?F.JSC$7701_xhr_.readyState:0};
_.N=_.fP.prototype;_.N.getStatus=function(){try{return _.Os(this)>2?this.JSC$7701_xhr_.status:-1}catch(F){return-1}};
_.N.getResponseText=function(){try{return this.JSC$7701_xhr_?this.JSC$7701_xhr_.responseText:""}catch(F){return""}};
_.N.getResponse=function(){try{if(!this.JSC$7701_xhr_)return null;if("response"in this.JSC$7701_xhr_)return this.JSC$7701_xhr_.response;switch(this.responseType_){case "":case "text":return this.JSC$7701_xhr_.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in this.JSC$7701_xhr_)return this.JSC$7701_xhr_.mozResponseArrayBuffer}return null}catch(F){return null}};
_.N.getAllResponseHeaders=function(){return this.JSC$7701_xhr_&&_.Os(this)>=2?this.JSC$7701_xhr_.getAllResponseHeaders()||"":""};
_.N.getLastError=function(){return typeof this.JSC$7701_lastError_==="string"?this.JSC$7701_lastError_:String(this.JSC$7701_lastError_)};var eFk=function(){};
eFk.prototype.send=function(F,W,E){W=W===void 0?function(){}:W;
E=E===void 0?function(){}:E;
NvS(F.url,function(h){h=h.target;h.isSuccess()?W(h.getResponseText()):E(h.getStatus())},F.requestType,F.body,F.requestHeaders,F.timeoutMillis,F.withCredentials)};
eFk.prototype.getTransmissionType=function(){return 1};var A1_=function(F,W){this.logger=F;this.event=W;this.startTime=z3()};
A1_.prototype.done=function(){this.logger.fG(this.event,z3()-this.startTime)};
var bG=function(){Mo.apply(this,arguments);this.TEST_ONLY={getExperimentIds:function(){return[]}}};
_.k(bG,Mo);var lG=function(F,W,E){var h=z3();W=W();F.fG(E,z3()-h);return W},CuY=function(){bG.apply(this,arguments)};
_.k(CuY,bG);_.N=CuY.prototype;_.N.gXt=function(){};
_.N.fW=function(){};
_.N.fG=function(){};
_.N.logError=function(){};
_.N.dG=function(){};
_.N.mXU=function(){};
_.N.fWM=function(){};
_.N.rJU=function(){};
_.N.adf=function(){};
var sSe=function(F){bG.call(this);var W=this;this.logger=F;this.TEST_ONLY={i9h:function(){return W.logger},
getExperimentIds:function(){return W.logger.TEST_ONLY.getExperimentIds()}};
this.addOnDisposeCallback(function(){return void W.logger.dispose()})};
_.k(sSe,bG);_.N=sSe.prototype;_.N.update=function(F){this.logger.dispose();this.logger=F};
_.N.fW=function(F){this.logger.fW(F)};
_.N.fG=function(F,W){this.logger.fG(F,W)};
_.N.logError=function(F){this.logger.logError(F)};
_.N.dG=function(){this.logger.dG()};
_.N.mXU=function(F){this.logger.mXU(F)};
_.N.fWM=function(F){this.logger.fWM(F)};
_.N.rJU=function(F){this.logger.rJU(F)};
_.N.adf=function(F){this.logger.adf(F)};
_.N.gXt=function(F){this.logger.gXt(F)};
var Lvu=function(F,W){_.xj.call(this);var E=this;this.callback=F;this.dzr=W;this.kTq=-W;this.addOnDisposeCallback(function(){return void clearTimeout(E.timer)})};
_.k(Lvu,_.xj);var q0z=function(F){if(F.timer===void 0){var W=Math.max(0,F.kTq+F.dzr-z3());F.timer=setTimeout(function(){try{F.callback()}finally{F.kTq=z3(),F.timer=void 0}},W)}},$lM=function(F,W){bG.call(this);
this.metrics=F;this.vM=W};
_.k($lM,bG);_.N=$lM.prototype;_.N.gXt=function(F){this.metrics.eC1.record(F,this.vM)};
_.N.fW=function(F){this.metrics.eventCount.increment(F,this.vM)};
_.N.fG=function(F,W){this.metrics.pyp.record(W,F,this.vM)};
_.N.logError=function(F){this.metrics.errorCount.increment(F,this.vM)};
_.N.mXU=function(F){this.metrics.qQT.increment(F,this.vM)};
_.N.fWM=function(F){this.metrics.bY1.increment(F,this.vM)};
_.N.rJU=function(F){this.metrics.iIX.increment(F,this.vM)};
var B$o=function(F,W){W=W===void 0?[]:W;var E={vM:F.vM||"_",exP:F.exP||[],aWI:F.aWI|0,destinationUrl:F.destinationUrl,x6u:F.x6u||function(){},
cq:F.cq||function(V,R){return teG(V,R,E.x6u,E.destinationUrl)}},h=E.cq("49",E.exP.concat(W));
$lM.call(this,N$Y(h),E.vM);var d=this;this.TEST_ONLY={getExperimentIds:function(){return d.options.exP.concat(d.cgi).sort(function(V,R){return V-R})}};
this.options=E;this.service=h;this.zYD=!F.cq;this.flushDebouncer=new Lvu(function(){return void d.service.snapshotAndFlush()},E.aWI);
this.addOnDisposeCallback(function(){d.flushDebouncer.dispose();d.zYD&&d.service.dispose()});
(this.cgi=W.slice()).sort(_.QM)};
_.k(B$o,$lM);B$o.prototype.adf=function(F){var W=this;F=F.slice();F.sort(_.QM);_.zz(F,this.cgi)||(this.flushDebouncer.dispose(),this.zYD&&this.service.dispose(),this.service=this.options.cq("49",this.options.exP.concat(F)),this.flushDebouncer=new Lvu(function(){return void W.service.snapshotAndFlush()},this.options.aWI),this.metrics=N$Y(this.service),this.cgi=F)};
B$o.prototype.dG=function(){q0z(this.flushDebouncer)};var Axk=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(Axk,_.n2);_.sbI=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(_.sbI,_.n2);var dX=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F,0,dX.messageId)};
_.k(dX,_.n2);var ZLc=_.ERY(dX);dX.messageId="bfkj";var fqY=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(fqY,_.n2);var XwH=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(XwH,_.n2);var HLe=_.Wp(XwH);_.eR=function(){var F=this;this.promise=new Promise(function(W,E){F.resolve=W;F.reject=E})};_.nP=function(F){_.xj.call(this);var W=this;this.p9P=Math.floor(Math.random()*200);this.vWf=new XwH;if("challenge"in F&&ZLc(F.challenge)){var E=_.bj(F.challenge,4,void 0,Gz);var h=_.bj(F.challenge,5,void 0,Gz);_.bj(F.challenge,7,void 0,Gz)&&(this.vWf=HLe(_.bj(F.challenge,7,void 0,Gz)))}else E=F.program,h=F.globalName;this.addOnDisposeCallback(function(){var A,X,P;return _.e(function(b){if(b.nextAddress==1)return _.Q(b,W.z4u,2);A=b.yieldResult;X=A.mhI;(P=X)==null||P();_.gG(b)})});
this.logger=vpo(F.vc||{},this.vWf,F.rCj);_.gl(this,this.logger);var d=new _.eR;this.z4u=d.promise;this.logger.fW("t");var V=this.logger.share(),R=new A1_(V,"t"),M=function(A,X,P,b){if(!W.logger.isDisposed()){var l="k";X?l="h":P&&(l="u");l!=="k"?b!==0&&(W.logger.fW(l),W.logger.fG(l,A)):W.p9P<=0?(W.logger.fW(l),W.logger.fG(l,A),W.p9P=Math.floor(Math.random()*200)):W.p9P--}},g=function(A,X,P,b){Promise.resolve().then(function(){R.done();
V.dG();V.dispose();d.resolve({vr7:A,mhI:X,nPv:P,a8x:b})})};
if(!_.EY[h])throw this.logger.logError(25),Error("Ga");if(!_.EY[h].a)throw this.logger.logError(26),Error("Ha");try{var t=_.EY[h].a;h=[];for(var C=[],B=Oro(this.vWf),I=0;I<B.length;I++)h.push(B[I]),C.push(1);var x=brr(this.vWf);for(B=0;B<x.length;B++)h.push(x[B]),C.push(2);this.p1R=_.U(t(E,g,!0,F.vZj,M,[h,C],_.bj(this.vWf,5))).next().value;this.yrg=d.promise.then(function(){})}catch(A){throw this.logger.logError(28),A;
}};
_.k(_.nP,_.xj);_.nP.prototype.snapshot=function(F){if(this.isDisposed())throw Error("Ia");this.logger.fW("n");var W=this.logger.share();return this.z4u.then(function(E){var h=E.vr7;return new Promise(function(d){var V=new A1_(W,"n");h(function(R){V.done();W.gXt(R.length);W.dG();W.dispose();d(R)},[F.sY,
F.xFP,F.mPx,F.x4P])})})};
_.POT=function(F,W){if(F.isDisposed())throw Error("Ia");F.logger.fW("n");var E=lG(F.logger,function(){return F.p1R([W.sY,W.xFP,W.mPx,W.x4P])},"n");
F.logger.gXt(E.length);F.logger.dG();return E};
_.nP.prototype.eRs=function(F){this.z4u.then(function(W){var E;(E=W.nPv)==null||E(F)})};
_.nP.prototype.xjw=function(F,W){return this.z4u.then(function(E){var h;return(h=E.a8x)==null?void 0:h(F,W,!1)})};
_.nP.prototype.uK3=function(){return this.logger.share()};var J1O=function(){this.cjk={};this.fzK=null},aVu=function(){J1O.instance||(J1O.instance=new J1O);
return J1O.instance},OLT=function(F,W){return fVu(F,_.Em(W,Axk,1,Gz),_.Em(W,_.sbI,2,Gz),_.bj(W,3,void 0,Gz))},fVu=function(F,W,E,h){if(!W&&!E)return Promise.resolve();
if(!h)return npW(W,E);var d;(d=F.cjk)[h]||(d[h]=new Promise(function(V,R){npW(W,E).then(function(){F.fzK=h;V()},function(M){delete F.cjk[h];
R(M)})}));
return F.cjk[h]};var bLX=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(bLX,_.n2);var lVe=function(F,W){return _.NB(F,1,W)},n9e=function(F,W){return _.NB(F,2,W)};var yv=function(F){_.xj.call(this);var W=this;this.options=F;this.iFt=new _.eR;this.yrg=this.iFt.promise;this.iRs=new _.eR;this.qxi=1;this.o03=new _.eR;this.xvt=[];this.k3I=F.k3I||function(){};
this.logger=new sSe(vpo(F.vc||{}));y1p(this,F.wd,F.yAr,F.dM3,F.bHW,Object.assign({},jSO,F.xUw||{}));this.addOnDisposeCallback(function(){return void iL_(W)})};
_.k(yv,_.xj);yv.prototype.snapshot=function(F){var W=this;return _.e(function(E){switch(E.nextAddress){case 1:if(W.isDisposed())throw Error("Ia");if(W.zb||W.nKD){E.jumpTo(2);break}return _.Q(E,W.iRs.promise,2);case 2:if(!W.zb){E.jumpTo(4);break}return _.Q(E,W.zb.snapshot(F),5);case 5:return E.return(E.yieldResult);case 4:throw W.nKD;}})};
var r1c=function(F){var W;return _.e(function(E){if(F.isDisposed())throw Error("Ia");(W=F.oV)!=null&&(W.endTimeMs=0,W.resolver(1));return _.Q(E,F.o03.promise,0)})},iL_=function(F){F.nKD=Error("Ka");
F.iRs.resolve();lqb(F.iFt.promise);F.iFt.reject(Error("Ka"));F.logger.dispose();Promise.all(F.xvt).then(function(){var E;return _.e(function(h){(E=F.zb)==null||E.dispose();F.zb=void 0;_.gG(h)})});
F.xvt=[];var W;(W=F.oV)!=null&&(W.endTimeMs=0,W.resolver(1));lqb(F.o03.promise);F.o03.reject(Error("Ka"))};
yv.prototype.eRs=function(F){var W,E;(W=this.zb)==null||(E=W.eRs)==null||E.call(W,F)};
yv.prototype.xjw=function(F,W){var E,h,d;return(d=(E=this.zb)==null?void 0:(h=E.xjw)==null?void 0:h.call(E,F,W))!=null?d:Promise.resolve()};
var TGp=function(F,W){var E=F.k3I;F.k3I=function(){E();W()}},o9M=function(F,W){F.isDisposed()||(F.zb=W,F.logger.update(W.uK3()),F.iRs.resolve(),F.iFt.resolve(void 0),F.k3I())};
yv.prototype.handleError=function(F){if(!this.isDisposed()){this.nKD=F;this.iRs.resolve();var W,E;(E=(W=this.options).iqp)==null||E.call(W,F)}};
var GTX=function(F,W){W&&(Promise.all(F.xvt).then(function(){return void W.dispose()}),F.xvt=[])},jf=function(F,W){F.qxi=W;
var E,h;(h=(E=F.options).eKP)==null||h.call(E,W)},Y0H=function(F){F.isDisposed()||(F.o03.resolve(),F.o03=new _.eR)},y1p=function(F,W,E,h,d,V){h=h===void 0?aVu():h;
d=d===void 0?Promise.resolve(void 0):d;var R,M,g,t,C,B,I,x,A,X,P,b;_.e(function(l){switch(l.nextAddress){case 1:return _.Q(l,0,3);case 3:M=null;if(!R){l.jumpTo(6);break}jf(F,7);_.Nl(l,7);return _.Q(l,IT(R.snapshot({}),V.sht,function(){return Promise.resolve("E:CTO")}),9);
case 9:M=l.yieldResult;_.id(l,6);break;case 7:_.Ml(l),M="E:UCE";case 6:g=void 0,t=R?V.kuF:V.dNo,C=new U2(t,V.gA7,V.c2v,V.oAp),B=1;case 10:if(!(B<=V.maxAttempts)){l.jumpTo(12);break}if(B===1){l.jumpTo(13);break}jf(F,0);F.oV=new wwX(C.getValue(),V.xCF,V.gLt);return _.Q(l,F.oV.promise,14);case 14:I=l.yieldResult,F.oV=void 0,I===1?(B=1,C.reset()):NUH(C);case 13:_.Nl(l,15);x=void 0;if(E){x=E;l.jumpTo(17);break}jf(F,5);A=h.fzK;return _.Q(l,IT(uLB(W,A,M),V.g7F,function(){return Promise.reject(Error("La"))}),
18);
case 18:x=l.yieldResult;case 17:return jf(F,3),_.Q(l,IT(OLT(h,x),V.eAt,function(){return Promise.reject(Error("Ma"))}),19);
case 19:return jf(F,8),_.Q(l,d,20);case 20:return X=new _.nP({challenge:x,vc:F.options.vc,vZj:F.options.vZj}),_.Q(l,IT(X.yrg,V.nY4,function(){return Promise.reject(Error("Na"))}),21);
case 21:g=X;l.jumpTo(12);break;case 15:P=_.Ml(l),F.handleError(P),Y0H(F);case 11:B++;l.jumpTo(10);break;case 12:if(F.isDisposed()){l.jumpTo(5);break}g&&(E=void 0,GTX(F,R),R=g,o9M(F,g),Y0H(F));jf(F,2);F.oV=new wwX(V.ttH,V.xCF,V.gLt);return _.Q(l,F.oV.promise,22);case 22:F.oV=void 0;if(F.isDisposed()){l.jumpTo(5);break}l.jumpTo(3);break;case 5:(b=R)==null||b.dispose(),_.gG(l)}})};
yv.prototype.uK3=function(){return this.logger.share()};
var jSO={ttH:432E5,xCF:3E5,gLt:10,sht:1E4,g7F:3E4,eAt:3E4,nY4:6E4,dNo:1E3,kuF:6E4,gA7:6E5,c2v:.25,oAp:2,maxAttempts:10},wwX=function(F,W,E){var h=this;this.endTimeMs=Date.now()+F;this.promise=new Promise(function(V){h.resolver=V});
var d=function(){var V=h.endTimeMs-Date.now();V<=E?h.resolver(0):setTimeout(d,Math.min(V,W))};
d()};var S0e,idb=(S0e=Math.imul)!=null?S0e:function(F,W){return F*W|0},cb=[196,
200,224,18],iG=function(F,W,E){E=E===void 0?[]:E;this.maxItems=F;this.gx=W===void 0?0:W;this.lD=E},pwi=function(F){var W=globalThis.sessionStorage.getItem("iU5q-!O9@$");
if(!W)return new iG(F);var E=W.split(",");if(E.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new iG(F);W=E.slice(1);W.length===1&&W[0]===""&&(W=[]);E=Number(E[0]);return isNaN(E)||E<0||E>W.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new iG(F)):new iG(F,E,W)};
iG.prototype.serialize=function(){return String(this.gx)+","+this.lD.join()};
iG.prototype.insert=function(F,W){var E=void 0;if(this.lD[this.gx]!==F){var h=this.lD.indexOf(F);h!==-1?(this.lD.splice(h,1),h<this.gx&&this.gx--,this.lD.splice(this.gx,0,F)):(E=this.lD[this.gx],this.lD[this.gx]=F)}this.gx=(this.gx+1)%this.maxItems;F=yzR("iU5q-!O9@$",this.serialize());E&&F&&W(E);return F};
var mlU=function(F,W){this.logger=W;try{var E=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(h){E=!1}E&&(this.index=pwi(F))},Kv_=function(F,W,E,h,d){var V=F.index?lG(F.logger,function(){return Gir(F.index,T$R(W),E,h,d)},"W"):"u";
F.logger.rJU(V)},FBH=function(F,W,E){var h=_.U(F.index?lG(F.logger,function(){return Yio(T$R(W),E)},"R"):["u"]),d=h.next().value;
h=h.next().value;F.logger.fWM(d);return h};var WBM={toString:function(F){var W=[],E=0;F-=-2147483648;W[E++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(F%52);for(F=Math.floor(F/52);F>0;)W[E++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(F%62),F=Math.floor(F/62);return W.join("")}};var dpM=function(F){F=Eda(F);for(var W=2654435769,E=2654435769,h=314159265,d=F.length,V=d,R=0,M=function(){W-=E;W-=h;W^=h>>>13;E-=h;E-=W;E^=W<<8;h-=W;h-=E;h^=E>>>13;W-=E;W-=h;W^=h>>>12;E-=h;E-=W;E^=W<<16;h-=W;h-=E;h^=E>>>5;W-=E;W-=h;W^=h>>>3;E-=h;E-=W;E^=W<<10;h-=W;h-=E;h^=E>>>15};V>=12;V-=12,R+=12)W+=h2X(F,R),E+=h2X(F,R+4),h+=h2X(F,R+8),M();
h+=d;switch(V){case 11:h+=F[R+10]<<24;case 10:h+=F[R+9]<<16;case 9:h+=F[R+8]<<8;case 8:E+=F[R+7]<<24;case 7:E+=F[R+6]<<16;case 6:E+=F[R+5]<<8;case 5:E+=F[R+4];case 4:W+=F[R+3]<<24;case 3:W+=F[R+2]<<16;case 2:W+=F[R+1]<<8;case 1:W+=F[R]}M();return WBM.toString(h)},Eda=function(F){for(var W=[],E=0;E<F.length;E++)W.push(F.charCodeAt(E));
return W},h2X=function(F,W){return F[W]+(F[W+1]<<8)+(F[W+2]<<16)+(F[W+3]<<24)};var Nna,rv=function(F){_.xj.call(this);this.logger=F;this.hcq=new _.eR;this[Nna]=this.dispose};
_.k(rv,_.xj);var VUX=function(F,W){var E=setTimeout(function(){F.hcq.resolve()},W);
F.addOnDisposeCallback(function(){return void clearTimeout(E)})};
rv.prototype.ey=function(F,W){var E=this.nQ(F);W==null||W(E);return lG(this.logger,function(){return _.FG(E,2)},this.mgg)};
var UpO=function(F,W,E,h){return lG(F.logger,function(){return E?F.ey(W,h):F.nQ(W,h)},F.kE)};
Nna=Symbol.dispose;var R2e=function(F,W,E,h){rv.call(this,F);this.s3p=W;this.lyx=E;this.kE="m";this.mgg="x";this.h6F=0;VUX(this,h)};
_.k(R2e,rv);R2e.prototype.nQ=function(F,W){var E=this;this.logger.fW(this.kE);++this.h6F>=this.lyx&&this.hcq.resolve();var h=F();F=lG(this.logger,function(){return E.s3p(h)},"C");
if(F===void 0)throw new Rd(17,"YNJ:Undefined");if(!(F instanceof Uint8Array))throw new Rd(18,"ODM:Invalid");W==null||W(F);return F};
var e2_=function(F,W,E){rv.call(this,F);this.o7o=W;this.kE="f";this.mgg="z";VUX(this,E)};
_.k(e2_,rv);e2_.prototype.nQ=function(){return this.o7o};
var MUU=function(F,W,E){rv.call(this,F);this.wXj=W;this.kE="w";this.mgg="z";VUX(this,E)};
_.k(MUU,rv);MUU.prototype.nQ=function(){var F=this;return lG(this.logger,function(){return _.CT(F.wXj)},"d")};
MUU.prototype.ey=function(){return this.wXj};
var gdT=function(F,W){rv.call(this,F);this.error=W;this.kE="e";this.mgg="y"};
_.k(gdT,rv);var Qle=function(F,W){var E=(W(F.error.message)+":"+W(F.error.stack)).substring(0,2048);W=E.length+1;E=wXr(E);var h=new Uint8Array(4+E.length);h.set([42,W&127|128,W>>7,F.error.code]);h.set(E,4);return h};
gdT.prototype.nQ=function(){if(this.l1p)return this.l1p;this.l1p=Qle(this,function(F){return"_"+dpM(F)});
return Qle(this,function(F){return F})};
var z2u=function(F,W,E){rv.call(this,F);this.vkH=W;this.clientState=E;this.kE="S";this.mgg="q"};
_.k(z2u,rv);z2u.prototype.nQ=function(){var F=Math.floor(Date.now()/1E3),W=[Math.random()*255,Math.random()*255],E=W.concat([this.vkH&255,this.clientState],[F>>24&255,F>>16&255,F>>8&255,F&255]);F=new Uint8Array(2+E.length);F[0]=34;F[1]=E.length;F.set(E,2);E=F.subarray(2);for(var h=W=W.length;h<E.length;++h)E[h]^=E[h%W];this.logger.mXU(this.clientState);return F};var tUp={sz7:3E4,oL4:2E4},T0=function(F){_.xj.call(this);var W=this;this.opt=new _.eR;this.g4w=0;this.uX=void 0;this.state=2;this.ev=F.ev;this.wd=F.wd;this.xUw=Object.assign({},tUp,F.xUw||{});this.logger=F.ev.uK3();var E;this.onError=(E=F.onError)!=null?E:function(){};
this.pFD=F.pFD||!1;if(C5c(F)){var h=this.ev;this.vcP=function(){return r1c(h).catch(function(R){R=W.reportError(new Rd(W.iO?20:32,"TRG:Disposed",R));W.uX=R;var M;(M=W.iO)==null||M.dispose();W.iO=void 0;W.opt.reject(R)})};
TGp(h,function(){return void BnB(W)});
h.qxi===2&&BnB(this)}else this.vcP=F.xTa,BnB(this);var d=this.logger.share();d.fW("o");var V=new A1_(d,"o");this.opt.promise.then(function(){V.done();d.dG();d.dispose()},function(){return void d.dispose()});
this.addOnDisposeCallback(function(){W.iO?(W.iO.dispose(),W.iO=void 0):W.uX?W.logger.dG():(W.uX=W.reportError(new Rd(32,"TNP:Disposed")),W.logger.dG(),W.opt.reject(W.uX))});
_.gl(this,this.logger)};
_.k(T0,_.xj);T0.prototype.tym=function(){return this.opt.promise};
var vdz=function(F,W){if(!(W instanceof Rd))if(W instanceof _.Jh){var E=Error(W.toString());E.stack=W.stack;W=new Rd(11,"EBH:Error",E)}else W=new Rd(12,"BSO:Unknown",W);return F.reportError(W)},BnB=function(F){var W,E,h,d,V,R,M,g,t,C,B,I,x,A,X;
return _.e(function(P){switch(P.nextAddress){case 1:W=void 0;F.g4w++;E=new _.eR;F.ev instanceof yv&&F.ev.xvt.push(E.promise);if(!F.pFD){P.jumpTo(2);break}h=new _.eR;setTimeout(function(){return void h.resolve()});
return _.Q(P,h.promise,2);case 2:return d=F.logger.share(),_.Nl(P,4,5),F.state=5,V={},R=[],_.Q(P,IT(F.ev.snapshot({sY:V,mPx:R}),F.xUw.oL4,function(){return Promise.reject(new Rd(15,"MDA:Timeout"))}),7);
case 7:M=P.yieldResult;if(F.isDisposed())throw new Rd(F.iO?20:32,"MDA:Disposed");g=R[0];F.state=6;return _.Q(P,IT(Iye(F.wd,M),F.xUw.sz7,function(){return Promise.reject(new Rd(10,"BWB:Timeout"))}),8);
case 8:t=P.yieldResult;if(F.isDisposed())throw new Rd(F.iO?20:32,"BWB:Disposed");F.state=7;W=lG(d,function(){var l=cNz(F,t,E,g);l.hcq.promise.then(function(){return void F.vcP()});
return l},"i");
case 5:_.V0(P);d.dispose();_.eJ(P,6);break;case 4:C=_.Ml(P);(B=W)==null||B.dispose();if(!F.uX){I=vdz(F,C);E.resolve();var b;if(b=F.ev instanceof yv&&F.g4w<2)a:if(C instanceof Rd)b=C.code!==32&&C.code!==20&&C.code!==10;else{if(C instanceof _.Jh)switch(C.code){case 2:case 13:case 14:case 4:break;default:b=!1;break a}b=!0}if(b)return x=(1+Math.random()*.25)*(F.iO?6E4:1E3),A=setTimeout(function(){return void F.vcP()},x),F.addOnDisposeCallback(function(){return void clearTimeout(A)}),P.return();
F.uX=I}d.logError(F.iO?13:14);F.opt.reject(F.uX);return P.return();case 6:F.state=8,F.g4w=0,(X=F.iO)==null||X.dispose(),F.iO=W,F.opt.resolve(),_.gG(P)}})},cNz=function(F,W,E,h){var d=Qgw(W,2)*1E3;
if(d<=0)throw new Rd(31,"TTM:Invalid");if(_.bj(W,4))return new MUU(F.logger,_.bj(W,4),d);if(!Qgw(W,3))return new e2_(F.logger,uak(_.$i(W,1)),d);if(!h)throw new Rd(4,"PMD:Undefined");h=h(uak(_.$i(W,1)));if(!(h instanceof Function))throw new Rd(16,"APF:Failed");F.iUp=Math.floor((Date.now()+d)/1E3);F=new R2e(F.logger,h,Qgw(W,3),d);F.addOnDisposeCallback(function(){return void E.resolve()});
return F};
T0.prototype.nQ=function(F){return Dpz(this,Object.assign({},F),!1)};
T0.prototype.ey=function(F){return Dpz(this,Object.assign({},F),!0)};
T0.prototype.fqe=function(F){if(F>150)return!1;try{return this.cache=new mlU(F,this.logger),!0}catch(W){return this.reportError(new Rd(22,"GBJ:init",W)),!1}};
T0.prototype.reportError=function(F){this.logger.logError(F.code);this.onError(F);return F};
var xpe=function(F,W){W=W instanceof Rd?W:new Rd(5,"TVD:error",W);return F.reportError(W)},Dpz=function(F,W,E){try{if(F.isDisposed())throw new Rd(21,"BNT:disposed");
if(!F.iO&&F.uX)throw F.uX;var h,d;return(d=(h=kOU(F,W,E))!=null?h:ANi(F,W,E))!=null?d:slB(F,W,E)}catch(V){if(!W.ykg)throw xpe(F,V);return LBH(F,E,V)}},kOU=function(F,W,E){var h;
return(h=F.iO)==null?void 0:UpO(h,function(){return qpi(F,W)},E,function(d){var V;
if(F.iO instanceof R2e&&((V=W.sT)==null?0:V.aZF))try{var R;(R=F.cache)==null||Kv_(R,qpi(F,W),d,W.sT.uNU,F.iUp-120)}catch(M){F.reportError(new Rd(24,"ELX:write",M))}})},ANi=function(F,W,E){var h;
if((h=W.sT)!=null&&h.kuk)try{var d,V=(d=F.cache)==null?void 0:FBH(d,qpi(F,W),W.sT.uNU);return V?E?lG(F.logger,function(){return _.FG(V,2)},"a"):V:void 0}catch(R){F.reportError(new Rd(23,"RXO:read",R))}},slB=function(F,W,E){var h={stack:[],
error:void 0,hasError:!1};try{if(!W.uUD)throw new Rd(29,"SDF:notready");return UpO(C4Y(h,new z2u(F.logger,0,F.state)),function(){return qpi(F,W)},E)}catch(d){h.error=d,h.hasError=!0}finally{c3e(h)}},LBH=function(F,W,E){var h={stack:[],
error:void 0,hasError:!1};try{var d=xpe(F,E);return UpO(C4Y(h,new gdT(F.logger,d)),function(){return[]},W)}catch(V){h.error=V,h.hasError=!0}finally{c3e(h)}},qpi=function(F,W){return W.xMt?W.xMt:W.sY?lG(F.logger,function(){return W.xMt=wXr(W.sY)},"c"):[]},C5c=function(F){return SH(function(W){if(!hz(W))return!1;
for(var E=_.U(Object.entries(F)),h=E.next();!h.done;h=E.next()){var d=_.U(h.value);h=d.next().value;d=d.next().value;if(!(h in W)){if(d.isOptionalGuard_doNotManuallySetPrettyPlease===!0)continue;return!1}if(!d(W[h]))return!1}return!0})}({ev:function(F){return SH(function(W){return W instanceof F})}(yv)},"");var $p_=function(){var F=_.Nz();this.JSC$7816_streamzService=F;F.addNewCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",E2("cookie_enabled"),E2("cookie_3p_enabled"),_.dl("browser"))};
$p_.prototype.increment=function(F,W,E){this.JSC$7816_streamzService.JSC$7692_incrementCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",F,W,E)};
var zPk=function(){var F=_.Nz();this.JSC$7840_streamzService=F;F.addNewCounter("/client_streamz/youtube/identity/stickiness/reload",hv("tick"),E2("from_st_cookie"))};
zPk.prototype.increment=function(F,W){this.JSC$7840_streamzService.JSC$7692_incrementCounter("/client_streamz/youtube/identity/stickiness/reload",F,W)};
var ZCe=function(){var F=_.Nz();this.JSC$7846_streamzService=F;F.addNewCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",_.dl("status"))};
ZCe.prototype.increment=function(F){this.JSC$7846_streamzService.JSC$7692_incrementCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",F)};
var XEz=function(){var F=_.Nz();this.JSC$7849_streamzService=F;F.addNewCounter("/client_streamz/youtube/ads/desktop_masthead",_.dl("stage"),E2("is_using_ytd_player"),E2("has_expandable_tiles"))};
XEz.prototype.increment=function(F,W,E){this.JSC$7849_streamzService.JSC$7692_incrementCounter("/client_streamz/youtube/ads/desktop_masthead",F,W,E)};
var HCB=function(){var F=_.Nz();this.JSC$7852_streamzService=F;F.addNewCounter("/client_streamz/youtube/web/response_signature",_.dl("check_status"))};
HCB.prototype.increment=function(F){this.JSC$7852_streamzService.JSC$7692_incrementCounter("/client_streamz/youtube/web/response_signature",F)};
var P5_=function(){var F=_.Nz();this.JSC$7855_streamzService=F;F.addNewCounter("/client_streamz/youtube/web/e_sig_log",_.dl("sig"),hv("de"))};
P5_.prototype.increment=function(F,W){this.JSC$7855_streamzService.JSC$7692_incrementCounter("/client_streamz/youtube/web/e_sig_log",F,W)};
var JN_=function(){var F=_.Nz();this.JSC$7858_streamzService=F;F.addNewCounter("/client_streamz/youtube/web/e_sig_en",_.dl("sig"),hv("de"))};
JN_.prototype.increment=function(F,W){this.JSC$7858_streamzService.JSC$7692_incrementCounter("/client_streamz/youtube/web/e_sig_en",F,W)};
_.ayO=function(){var F=_.Nz();this.JSC$7861_streamzService=F;F.addNewCounter("/client_streamz/youtube/web/enforcement_intent",_.dl("action"))};
_.ayO.prototype.increment=function(F){this.JSC$7861_streamzService.JSC$7692_incrementCounter("/client_streamz/youtube/web/enforcement_intent",F)};var T7R=function(){var F=_.Nz();this.JSC$7864_streamzService=F;F.addNewCounter("/client_streamz/youtube/web_creator/polymer_template_query_fallback_events",_.dl("tagname"))};
T7R.prototype.increment=function(F){this.JSC$7864_streamzService.JSC$7692_incrementCounter("/client_streamz/youtube/web_creator/polymer_template_query_fallback_events",F)};var od=window;var fyH=(new Date).getTime();var OCu=function(F){this.servicePromise_=F;F.then((0,_.kj)(function(){},this),function(){},this)},bCU=function(F,W,E){F.servicePromise_.then(function(h){var d=h[W];
if(!d)throw Error("Oa`"+W);return d.apply(h,E)})},yNH=function(F,W,E){for(var h=Array(arguments.length-2),d=2;d<arguments.length;d++)h[d-2]=arguments[d];
d=lyB(F,W).then(function(V){return V.apply(null,h)},function(V){V=Error("Pa`"+W+"`"+F,{cause:V});
delete ndu[W];return _.xT(V)});
return new OCu(d)},ndu={},lyB=function(F,W){var E=ndu[W];
if(E)return E;E=(E=_.ju(W))?_.e7(E):(new _.z5(function(h,d){var V=(new X0(document)).createElement("SCRIPT");V.async=!0;_.nu(V,_.RI(bTe(F)));V.onload=V.onreadystatechange=function(){V.readyState&&V.readyState!="loaded"&&V.readyState!="complete"||h()};
V.onerror=function(R){d(Error("Qa`"+W+"`"+F,{cause:R}))};
(document.head||document.getElementsByTagName("head")[0]).appendChild(V)})).then(function(){var h=_.ju(W);
if(!h)throw Error("Ra`"+W+"`"+F);return h});
return ndu[W]=E};var jlT={GOOGLE:"https://www.google.com",SUPPORT:"https://support.google.com",PLAY:"https://play.google.com"},rN_=function(){var F=this;this.rsaForList=[];this.rsaForPromises=[];this.initialize=uOW(function(){return _.e(function(W){if(W.nextAddress==1)return typeof document==="undefined"||document.requestStorageAccessFor===void 0||navigator.permissions===void 0||navigator.permissions.query===void 0||location.hostname.match(".+\\.google\\.com$")?W.return(Promise.resolve()):_.Q(W,iCc(F),2);F.rsaForList.length>
0&&document.addEventListener("click",F.requestAccessForHelpPanel);_.gG(W)})});
this.requestAccessForHelpPanel=function(){if(!(F.rsaForPromises.length>0)){for(var W=_.U(F.rsaForList),E=W.next();!E.done;E=W.next()){E=E.value;try{F.rsaForPromises.push(document.requestStorageAccessFor(E))}catch(h){}}Promise.all(F.rsaForPromises).then(function(){}).catch(function(){}).finally(function(){F.reset()})}}};
rN_.prototype.reset=function(){document.removeEventListener("click",this.requestAccessForHelpPanel)};
var iCc=function(F){var W,E,h,d;return _.e(function(V){switch(V.nextAddress){case 1:W=_.U(Object.values(jlT)),E=W.next();case 2:if(E.done){V.jumpTo(0);break}h=E.value;_.Nl(V,5);return _.Q(V,navigator.permissions.query({name:"top-level-storage-access",requestedOrigin:h}),7);case 7:d=V.yieldResult;d.state!=="granted"&&F.rsaForList.push(h);_.id(V,3);break;case 5:_.Ml(V);V.jumpTo(0);break;case 3:E=W.next(),V.jumpTo(2)}})};(new rN_).initialize();var TnU=function(F){this.JSC$7878_loader_=F};
TnU.prototype.startHelp=function(F){bCU(this.JSC$7878_loader_,"startHelp",arguments)};
TnU.prototype.JSC$7880_loadChatSupport=function(F){bCU(this.JSC$7878_loader_,"loadChatSupport",arguments)};
var GOz=function(F,W){W=W||{};F=yNH(odO,"help.service.Lazy.create",F,{apiKey:W.apiKey||W.apiKey,asxUiUri:W.asxUiUri||W.asxUiUri,environment:W.environment||W.environment,flow:W.flow||W.flow,frdProductData:W.frdProductData||W.frdProductData,frdProductDataSerializedJspb:W.frdProductDataSerializedJspb||W.frdProductDataSerializedJspb,helpCenterPath:W.helpCenterPath||W.helpCenterPath,locale:W.locale||W.locale||"en-US".replace(/-/g,"_"),nonce:W.nonce||W.nonce,productData:W.productData||W.productData,receiverUri:W.receiverUri||
W.receiverUri,renderApiUri:W.renderApiUri||W.renderApiUri,theme:W.theme||W.theme,window:W.window||W.window});return new TnU(F)},odO=new lf(DrG,"https://www.gstatic.com/feedback/js/help/prod/service/lazy.min.js");var Ype=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(Ype,_.n2);var wEu=_.Wp(Ype);_.unH=new function(F,W,E,h){this.configType=F;this.flagName=E;this.defaultValue=h;this.flagType="bool"}(2,0,"external_fullscreen",!0);
new Uint8Array([10,2,75,82]);new Uint8Array([10,2,78,76,10,2,69,83]);new Uint8Array([]);new Uint8Array([]);new Uint8Array([]);var pEi=function(){this.retriever=_.WZ().resolve(SpM)};pXI(Node);pXI(Element);var mpM=pXI(HTMLElement);pXI(SVGElement);var KBu,FjM,wv,WjO;KBu=function(F){return typeof F.className=="string"?F.className:F.getAttribute&&F.getAttribute("class")||""};
FjM=function(F){return F.classList?F.classList:KBu(F).match(/\S+/g)||[]};
_.G0=function(F,W){typeof F.className=="string"?F.className=W:F.setAttribute&&F.setAttribute("class",W)};
_.YU=function(F,W){return F.classList?F.classList.contains(W):_.on(FjM(F),W)};
_.ou=function(F,W){if(F.classList)F.classList.add(W);else if(!_.YU(F,W)){var E=KBu(F);_.G0(F,E+(E.length>0?" "+W:W))}};
wv=function(F,W){if(F.classList)Array.prototype.forEach.call(W,function(d){_.ou(F,d)});
else{var E={};Array.prototype.forEach.call(FjM(F),function(d){E[d]=!0});
Array.prototype.forEach.call(W,function(d){E[d]=!0});
W="";for(var h in E)W+=W.length>0?" "+h:h;_.G0(F,W)}};
_.rh=function(F,W){F.classList?F.classList.remove(W):_.YU(F,W)&&_.G0(F,Array.prototype.filter.call(FjM(F),function(E){return E!=W}).join(" "))};
WjO=function(F,W){F.classList?Array.prototype.forEach.call(W,function(E){_.rh(F,E)}):_.G0(F,Array.prototype.filter.call(FjM(F),function(E){return!_.on(W,E)}).join(" "))};var EjO=function(F){this.logger=this.previouslyFocusedElement=this.focusChangeHandler=null;this.document=F.document},Nlp=function(F,W){hAU(F);
var E=document.createElement("div"),h;(h=W.parentNode)==null||h.insertBefore(E,W);E.tabIndex=0;E.id="fc-focus-trap-pre-div";E=document.createElement("div");var d;(d=W.parentNode)==null||d.insertBefore(E,W.nextSibling);E.tabIndex=0;E.id="fc-focus-trap-post-div";var V=dT_(F,W),R=dT_(F,W,!0);V&&R&&(F.focusChangeHandler=function(){var M=F.document.activeElement;if(M)if(_.bg(W,M))F.previouslyFocusedElement=M;else if(M===F.document.activeElement)switch(F.previouslyFocusedElement){case V:R.focus();F.previouslyFocusedElement=
R;break;default:V.focus(),F.previouslyFocusedElement=V}},F.document.addEventListener("focus",F.focusChangeHandler,!0),F.document.addEventListener("focusin",F.focusChangeHandler))},hAU=function(F){F.focusChangeHandler&&(document.removeEventListener("focus",F.focusChangeHandler,!0),document.removeEventListener("focusin",F.focusChangeHandler),F.focusChangeHandler=null);
var W;(W=document.getElementById("fc-focus-trap-pre-div"))==null||W.remove();var E;(E=document.getElementById("fc-focus-trap-post-div"))==null||E.remove()},VSp=function(F,W,E,h,d){E=E===void 0?!0:E;
var V;d=(V=d===void 0?null:d)!=null?V:dT_(F,W,h===void 0?!1:h);d!==null&&(d.focus(),E&&Nlp(F,W))};
EjO.prototype.disableButton=function(F,W){W=W===void 0?null:W;F.disabled=!0;W&&_.ou(F,W)};
var dT_=function(F,W,E){E=E===void 0?!1:E;if(nuS(W)&&!E)return W;var h=E?[].slice.call(W.children,0).reverse():W.children;h=_.U(h);for(var d=h.next();!d.done;d=h.next())if(d=d.value,mpM(d)&&(d=dT_(F,d,E)))return d;return nuS(W)&&E?W:null};var UTe=function(F){this.originalBodyOverflow="";this.JSC$7904_domHelper=gn(F)};_.Ma(_.Av,_.xj);_.N=_.Av.prototype;_.N.JSC$7907_id_=0;_.N.disposeInternal=function(){_.Av.superClass_.disposeInternal.call(this);this.stop();delete this.JSC$7905_listener_;delete this.handler_};
_.N.start=function(F){this.stop();this.JSC$7907_id_=PI(this.callback_,F!==void 0?F:this.JSC$7905_interval_)};
_.N.stop=function(){this.isActive()&&_.EY.clearTimeout(this.JSC$7907_id_);this.JSC$7907_id_=0};
_.N.fire=function(){this.stop();this.JSC$7907_doAction_()};
_.N.isActive=function(){return this.JSC$7907_id_!=0};
_.N.JSC$7907_doAction_=function(){this.JSC$7907_id_=0;this.JSC$7905_listener_&&this.JSC$7905_listener_.call(this.handler_)};_.hR=function(F){_.xj.call(this);this.handler_=F;this.JSC$7908_keys_={}};
_.Ma(_.hR,_.xj);var RAX=[];_.hR.prototype.listen=function(F,W,E,h){Array.isArray(W)||(W&&(RAX[0]=W.toString()),W=RAX);for(var d=0;d<W.length;d++){var V=_.ce(F,W[d],E||this.handleEvent,h||!1,this.handler_||this);if(!V)break;this.JSC$7908_keys_[V.key]=V}return this};
_.hR.prototype.listenOnce=function(F,W,E,h){return eAO(this,F,W,E,h)};
var eAO=function(F,W,E,h,d,V){if(Array.isArray(E))for(var R=0;R<E.length;R++)eAO(F,W,E[R],h,d,V);else{W=CK(W,E,h||F.handleEvent,d,V||F.handler_||F);if(!W)return F;F.JSC$7908_keys_[W.key]=W}return F};
_.hR.prototype.unlisten=function(F,W,E,h,d){if(Array.isArray(W))for(var V=0;V<W.length;V++)this.unlisten(F,W[V],E,h,d);else if(F=JyU(F,W,E||this.handleEvent,_.NU(h)?!!h.capture:!!h,d||this.handler_||this))Be(F),delete this.JSC$7908_keys_[F.key];return this};
_.hR.prototype.removeAll=function(){_.xd.forEach(this.JSC$7908_keys_,function(F,W){this.JSC$7908_keys_.hasOwnProperty(W)&&Be(F)},this);
this.JSC$7908_keys_={}};
_.hR.prototype.disposeInternal=function(){_.hR.superClass_.disposeInternal.call(this);this.removeAll()};
_.hR.prototype.handleEvent=function(){throw Error("Sa");};var uG=function(){_.xj.call(this);this.services_={}};
_.Ma(uG,_.xj);_.N=uG.prototype;_.N.logger=null;_.N.connect=function(F){F&&F()};
_.N.isConnected=function(){return!0};
_.N.registerService=function(F,W,E){this.services_[F]={callback:W,objectPayload:!!E}};
_.N.getService=function(F,W){var E=this.services_[F];return E?E:this.defaultService_?{callback:_.v5(this.defaultService_,F),objectPayload:_.NU(W)}:null};
var MSu=function(F,W){if(W&&typeof F==="string")try{return JSON.parse(F)}catch(E){return null}else if(!W&&typeof F!=="string")return(0,_.ad)(F);return F};
uG.prototype.disposeInternal=function(){uG.superClass_.disposeInternal.call(this);delete this.services_;delete this.defaultService_};/*

 Copyright 2005, 2007 Bob Ippolito. All Rights Reserved.
 Copyright The Closure Library Authors.
 SPDX-License-Identifier: MIT
*/
var Sf=function(F,W){this.sequence_=[];this.onCancelFunction_=F;this.defaultScope_=W||null;this.hadError_=this.fired_=!1;this.result_=void 0;this.silentlyCanceled_=this.blocking_=this.blocked_=!1;this.unhandledErrorId_=0;this.parent_=null;this.branches_=0};
Sf.prototype.cancel=function(F){if(this.fired_)this.result_ instanceof Sf&&this.result_.cancel();else{if(this.parent_){var W=this.parent_;delete this.parent_;F?W.cancel(F):(W.branches_--,W.branches_<=0&&W.cancel())}this.onCancelFunction_?this.onCancelFunction_.call(this.defaultScope_,this):this.silentlyCanceled_=!0;this.fired_||this.errback(new pP(this))}};
Sf.prototype.continue_=function(F,W){this.blocked_=!1;gj_(this,F,W)};
var gj_=function(F,W,E){F.fired_=!0;F.result_=E;F.hadError_=!W;QTp(F)},tSB=function(F){if(F.fired_){if(!F.silentlyCanceled_)throw new zAB(F);
F.silentlyCanceled_=!1}};
Sf.prototype.callback=function(F){tSB(this);gj_(this,!0,F)};
Sf.prototype.errback=function(F){tSB(this);gj_(this,!1,F)};
var CgT=function(F,W,E){mx(F,W,null,E)};
Sf.prototype.finally=function(F){var W=this;return new Promise(function(E,h){mx(W,function(d){F();E(d)},function(d){F();
h(d)})})};
var mx=function(F,W,E,h){var d=F.fired_;d||(W===E?W=E=$U(W):(W=$U(W),E=$U(E)));F.sequence_.push([W,E,h]);d&&QTp(F)};
Sf.prototype.then=function(F,W,E){var h,d,V=new _.z5(function(R,M){d=R;h=M});
mx(this,d,function(R){R instanceof pP?V.cancel():h(R);return Bl_},this);
return V.then(F,W,E)};
jIM(Sf);var vje=function(F,W){W instanceof Sf?CgT(F,(0,_.kj)(W.branch,W)):CgT(F,function(){return W})};
Sf.prototype.branch=function(F){var W=new Sf;mx(this,W.callback,W.errback,W);F&&(W.parent_=this,this.branches_++);return W};
Sf.prototype.isError=function(F){return F instanceof Error};
var IqM=function(F){return GX(F.sequence_,function(W){return typeof W[1]==="function"})},Bl_={},QTp=function(F){if(F.unhandledErrorId_&&F.fired_&&IqM(F)){var W=F.unhandledErrorId_,E=cvp[W];
E&&(_.EY.clearTimeout(E.JSC$7925_id_),delete cvp[W]);F.unhandledErrorId_=0}F.parent_&&(F.parent_.branches_--,delete F.parent_);W=F.result_;for(var h=E=!1;F.sequence_.length&&!F.blocked_;){var d=F.sequence_.shift(),V=d[0],R=d[1];d=d[2];if(V=F.hadError_?R:V)try{var M=V.call(d||F.defaultScope_,W);M===Bl_&&(M=void 0);M!==void 0&&(F.hadError_=F.hadError_&&(M==W||F.isError(M)),F.result_=W=M);if(iuz(W)||typeof _.EY.Promise==="function"&&W instanceof _.EY.Promise)h=!0,F.blocked_=!0}catch(g){W=g,F.hadError_=
!0,IqM(F)||(E=!0)}}F.result_=W;h&&(M=(0,_.kj)(F.continue_,F,!0),h=(0,_.kj)(F.continue_,F,!1),W instanceof Sf?(mx(W,M,h),W.blocking_=!0):W.then(M,h));E&&(W=new DTB(W),cvp[W.JSC$7925_id_]=W,F.unhandledErrorId_=W.JSC$7925_id_)},zAB=function(){_.Fe.call(this)};
_.Ma(zAB,_.Fe);zAB.prototype.message="Deferred has already fired";zAB.prototype.name="AlreadyCalledError";var pP=function(){_.Fe.call(this)};
_.Ma(pP,_.Fe);pP.prototype.message="Deferred was canceled";pP.prototype.name="CanceledError";var DTB=function(F){this.JSC$7925_id_=_.EY.setTimeout((0,_.kj)(this.throwError,this),0);this.JSC$7925_error_=F};
DTB.prototype.throwError=function(){delete cvp[this.JSC$7925_id_];throw this.JSC$7925_error_;};
var cvp={};var xTc={1:"NativeMessagingTransport"},k3c=["pu","lru","pru","lpu","ppu"],sTz=function(){for(var F=10,W=AvM,E=W.length,h="";F-- >0;)h+=W.charAt(Math.floor(Math.random()*E));return h},AvM="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";var KP=function(F){_.xj.call(this);this.JSC$7928_domHelper_=F||gn()};
_.Ma(KP,_.xj);KP.prototype.transportType=0;KP.prototype.getWindow=function(){return this.JSC$7928_domHelper_.getWindow()};
KP.prototype.getName=function(){return xTc[String(this.transportType)]||""};var Fh=function(F,W,E,h,d){KP.call(this,E);this.JSC$7931_channel_=F;this.protocolVersion_=d||2;this.peerHostname_=W||"*";this.JSC$7931_eventHandler_=new _.hR(this);this.maybeAttemptToConnectTimer_=new _.Eg(100,this.getWindow());this.oneSidedHandshake_=!!h;this.setupAckReceived_=new Sf;this.setupAckSent_=new Sf;this.JSC$7931_connected_=new Sf;this.endpointId_=sTz();this.peerEndpointId_=null;this.oneSidedHandshake_?LjH(this.JSC$7931_channel_)==1?vje(this.JSC$7931_connected_,this.setupAckReceived_):
vje(this.JSC$7931_connected_,this.setupAckSent_):(vje(this.JSC$7931_connected_,this.setupAckReceived_),this.protocolVersion_==2&&vje(this.JSC$7931_connected_,this.setupAckSent_));CgT(this.JSC$7931_connected_,this.notifyConnected_,this);this.JSC$7931_connected_.callback(!0);this.JSC$7931_eventHandler_.listen(this.maybeAttemptToConnectTimer_,"tick",this.maybeAttemptToConnect_)};
_.Ma(Fh,KP);Fh.prototype.peerProtocolVersion_=null;Fh.prototype.initialized_=!1;Fh.prototype.transportType=1;var q2i={};Fh.prototype.sendTimerId_=0;
var Xbp=function(F){var W=F.event_.data;if(typeof W!=="string")return!1;var E=W.indexOf("|"),h=W.indexOf(":");if(E==-1||h==-1)return!1;var d=W.substring(0,E);E=W.substring(E+1,h);W=W.substring(h+1);if(h=WM[d])return h.xpcDeliver(E,W,F.event_.origin),!0;h=$Tz(W)[0];for(var V in WM){var R=WM[V];if(LjH(R)==1&&!R.isConnected()&&E=="tp"&&(h=="SETUP"||h=="SETUP_NTPV2")&&ZrX(R,F.event_.origin))return delete WM[R.name],R.name=d,WM[d]=R,R.xpcDeliver(E,W),!0}return!1},HrM=function(F){F.protocolVersion_!=2||
F.peerProtocolVersion_!=null&&F.peerProtocolVersion_!=2||F.send("tp","SETUP_NTPV2,"+F.endpointId_);
F.peerProtocolVersion_!=null&&F.peerProtocolVersion_!=1||F.send("tp","SETUP")},Pg_=function(F,W){if(F.protocolVersion_!=2||F.peerProtocolVersion_!=null&&F.peerProtocolVersion_!=2||W!=2){if(F.peerProtocolVersion_!=null&&F.peerProtocolVersion_!=1||W!=1)return;
F.send("tp","SETUP_ACK")}else F.send("tp","SETUP_ACK_NTPV2");F.setupAckSent_.fired_||F.setupAckSent_.callback(!0)},JvO=function(F,W){W>F.peerProtocolVersion_&&(F.peerProtocolVersion_=W);
F.peerProtocolVersion_==1&&(F.setupAckSent_.fired_||F.oneSidedHandshake_||F.setupAckSent_.callback(!0),F.peerEndpointId_=null)};
_.N=Fh.prototype;_.N.connect=function(){var F=this.getWindow(),W=_.Ue(F),E=q2i[W];typeof E!=="number"&&(E=0);E==0&&_.ce(F.postMessage?F:F.document,"message",Xbp,!1,Fh);q2i[W]=E+1;this.initialized_=!0;this.maybeAttemptToConnect_()};
_.N.maybeAttemptToConnect_=function(){var F=LjH(this.JSC$7931_channel_)==0;this.oneSidedHandshake_&&F||this.JSC$7931_channel_.isConnected()||this.isDisposed()?this.maybeAttemptToConnectTimer_.stop():(this.maybeAttemptToConnectTimer_.start(),HrM(this))};
_.N.send=function(F,W){var E=this.JSC$7931_channel_.peerWindowObject_;E&&(this.send=function(h,d){var V=this,R=this.JSC$7931_channel_.name;this.sendTimerId_=PI(function(){V.sendTimerId_=0;try{var M=E.postMessage?E:E.document;M.postMessage&&M.postMessage(R+"|"+h+":"+d,V.peerHostname_)}catch(g){}},0)},this.send(F,W))};
_.N.notifyConnected_=function(){var F=this.JSC$7931_channel_,W=this.protocolVersion_==1||this.peerProtocolVersion_==1?200:void 0;F.isConnected()||F.connectionDelay_&&F.connectionDelay_.isActive()||(F.state_=2,_.u5(F.connectionDelay_),W!==void 0?(F.connectionDelay_=new _.Av(F.connectCb_,W),F.connectionDelay_.start()):(F.connectionDelay_=null,F.connectCb_()))};
_.N.disposeInternal=function(){if(this.initialized_){var F=this.getWindow(),W=_.Ue(F),E=q2i[W];q2i[W]=E-1;E==1&&_.LP(F.postMessage?F:F.document,"message",Xbp,!1,Fh)}this.sendTimerId_&&(_.EY.clearTimeout(this.sendTimerId_),this.sendTimerId_=0);_.u5(this.JSC$7931_eventHandler_);delete this.JSC$7931_eventHandler_;_.u5(this.maybeAttemptToConnectTimer_);delete this.maybeAttemptToConnectTimer_;this.setupAckReceived_.cancel();delete this.setupAckReceived_;this.setupAckSent_.cancel();delete this.setupAckSent_;
this.JSC$7931_connected_.cancel();delete this.JSC$7931_connected_;delete this.send;Fh.superClass_.disposeInternal.call(this)};
var $Tz=function(F){F=F.split(",");F[1]=F[1]||null;return F};_.ED=function(F){if(F.getValues&&typeof F.getValues=="function")return F.getValues();if(typeof Map!=="undefined"&&F instanceof Map||typeof Set!=="undefined"&&F instanceof Set)return Array.from(F.values());if(typeof F==="string")return F.split("");if(_.Ee(F)){for(var W=[],E=F.length,h=0;h<E;h++)W.push(F[h]);return W}return _.xd.getValues(F)};
_.aqB=function(F){if(F.getKeys&&typeof F.getKeys=="function")return F.getKeys();if(!F.getValues||typeof F.getValues!="function"){if(typeof Map!=="undefined"&&F instanceof Map)return Array.from(F.keys());if(!(typeof Set!=="undefined"&&F instanceof Set)){if(_.Ee(F)||typeof F==="string"){var W=[];F=F.length;for(var E=0;E<F;E++)W.push(E);return W}return _.xd.getKeys(F)}}};
_.fqe=function(F,W,E){if(F.forEach&&typeof F.forEach=="function")F.forEach(W,E);else if(_.Ee(F)||typeof F==="string")Array.prototype.forEach.call(F,W,E);else for(var h=_.aqB(F),d=_.ED(F),V=d.length,R=0;R<V;R++)W.call(E,d[R],h&&h[R],F)};var k$R,ej,gs,irH,Or_,lqT,bru,jTX,nj_;
_.Yx=function(F,W){this.JSC$7936_domain_=this.userInfo_=this.scheme_="";this.JSC$7936_port_=null;this.fragment_=this.JSC$7936_path_="";this.JSC$7936_ignoreCase_=!1;var E;F instanceof _.Yx?(this.JSC$7936_ignoreCase_=W!==void 0?W:F.JSC$7936_ignoreCase_,_.hJ(this,F.scheme_),this.userInfo_=F.userInfo_,_.ds(this,F.JSC$7936_domain_),_.ND(this,F.JSC$7936_port_),_.VD(this,F.getPath()),_.UD(this,F.JSC$7936_queryData_.clone()),_.Rs(this,F.fragment_)):F&&(E=_.u0(String(F)))?(this.JSC$7936_ignoreCase_=!!W,_.hJ(this,
E[1]||"",!0),this.userInfo_=ej(E[2]||""),_.ds(this,E[3]||"",!0),_.ND(this,E[4]),_.VD(this,E[5]||"",!0),_.UD(this,E[6]||"",!0),_.Rs(this,E[7]||"",!0)):(this.JSC$7936_ignoreCase_=!!W,this.JSC$7936_queryData_=new _.MD(null,this.JSC$7936_ignoreCase_))};
_.Yx.prototype.toString=function(){var F=[],W=this.scheme_;W&&F.push(gs(W,Or_,!0),":");var E=this.JSC$7936_domain_;if(E||W=="file")F.push("//"),(W=this.userInfo_)&&F.push(gs(W,Or_,!0),"@"),F.push(_.ro(E).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),E=this.JSC$7936_port_,E!=null&&F.push(":",String(E));if(E=this.getPath())this.JSC$7936_domain_&&E.charAt(0)!="/"&&F.push("/"),F.push(gs(E,E.charAt(0)=="/"?bru:lqT,!0));(E=this.JSC$7936_queryData_.toString())&&F.push("?",E);(E=this.fragment_)&&F.push("#",gs(E,
nj_));return F.join("")};
_.Yx.prototype.resolve=function(F){var W=this.clone(),E=!!F.scheme_;E?_.hJ(W,F.scheme_):E=!!F.userInfo_;E?W.userInfo_=F.userInfo_:E=!!F.JSC$7936_domain_;E?_.ds(W,F.JSC$7936_domain_):E=F.JSC$7936_port_!=null;var h=F.getPath();if(E)_.ND(W,F.JSC$7936_port_);else if(E=!!F.JSC$7936_path_){if(h.charAt(0)!="/")if(this.JSC$7936_domain_&&!this.JSC$7936_path_)h="/"+h;else{var d=W.getPath().lastIndexOf("/");d!=-1&&(h=W.getPath().slice(0,d+1)+h)}d=h;if(d==".."||d==".")h="";else if(_.gI(d,"./")||_.gI(d,"/.")){h=
_.Vo(d,"/");d=d.split("/");for(var V=[],R=0;R<d.length;){var M=d[R++];M=="."?h&&R==d.length&&V.push(""):M==".."?((V.length>1||V.length==1&&V[0]!="")&&V.pop(),h&&R==d.length&&V.push("")):(V.push(M),h=!0)}h=V.join("/")}else h=d}E?_.VD(W,h):E=F.JSC$7936_queryData_.toString()!=="";E?_.UD(W,F.JSC$7936_queryData_.clone()):E=!!F.fragment_;E&&_.Rs(W,F.fragment_);return W};
_.Yx.prototype.clone=function(){return new _.Yx(this)};
_.hJ=function(F,W,E){F.scheme_=E?ej(W,!0):W;F.scheme_&&(F.scheme_=F.scheme_.replace(/:$/,""));return F};
_.ds=function(F,W,E){F.JSC$7936_domain_=E?ej(W,!0):W;return F};
_.ND=function(F,W){if(W){W=Number(W);if(isNaN(W)||W<0)throw Error("Ta`"+W);F.JSC$7936_port_=W}else F.JSC$7936_port_=null;return F};
_.Yx.prototype.getPath=function(){return this.JSC$7936_path_};
_.VD=function(F,W,E){F.JSC$7936_path_=E?ej(W,!0):W;return F};
_.UD=function(F,W,E){W instanceof _.MD?(F.JSC$7936_queryData_=W,yvX(F.JSC$7936_queryData_,F.JSC$7936_ignoreCase_)):(E||(W=gs(W,jTX)),F.JSC$7936_queryData_=new _.MD(W,F.JSC$7936_ignoreCase_));return F};
_.ig=function(F,W,E){F.JSC$7936_queryData_.set(W,E);return F};
_.jS=function(F,W){return F.JSC$7936_queryData_.get(W)};
_.Rs=function(F,W,E){F.fragment_=E?ej(W):W;return F};
_.zU=function(F){_.ig(F,"zx",nr());return F};
_.y$=function(F,W){return F instanceof _.Yx?F.clone():new _.Yx(F,W)};
k$R=function(F,W){F instanceof _.Yx||(F=_.y$(F));W instanceof _.Yx||(W=_.y$(W));return F.resolve(W)};
ej=function(F,W){return F?W?decodeURI(F.replace(/%25/g,"%2525")):decodeURIComponent(F):""};
gs=function(F,W,E){return typeof F==="string"?(F=encodeURI(F).replace(W,irH),E&&(F=F.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),F):null};
irH=function(F){F=F.charCodeAt(0);return"%"+(F>>4&15).toString(16)+(F&15).toString(16)};
Or_=/[#\/\?@]/g;lqT=/[#\?:]/g;bru=/[#\?]/g;jTX=/[#\?@]/g;nj_=/#/g;_.MD=function(F,W){this.count_=this.keyMap_=null;this.encodedQuery_=F||null;this.JSC$7937_ignoreCase_=!!W};
_.tJ=function(F){F.keyMap_||(F.keyMap_=new Map,F.count_=0,F.encodedQuery_&&auH(F.encodedQuery_,function(W,E){F.add(KW(W),E)}))};
_.N=_.MD.prototype;_.N.getCount=function(){_.tJ(this);return this.count_};
_.N.add=function(F,W){_.tJ(this);this.encodedQuery_=null;F=C3(this,F);var E=this.keyMap_.get(F);E||this.keyMap_.set(F,E=[]);E.push(W);this.count_+=1;return this};
_.N.remove=function(F){_.tJ(this);F=C3(this,F);return this.keyMap_.has(F)?(this.encodedQuery_=null,this.count_-=this.keyMap_.get(F).length,this.keyMap_.delete(F)):!1};
_.N.clear=function(){this.keyMap_=this.encodedQuery_=null;this.count_=0};
_.N.isEmpty=function(){_.tJ(this);return this.count_==0};
_.N.containsKey=function(F){_.tJ(this);F=C3(this,F);return this.keyMap_.has(F)};
_.N.containsValue=function(F){var W=this.getValues();return _.on(W,F)};
_.N.forEach=function(F,W){_.tJ(this);this.keyMap_.forEach(function(E,h){E.forEach(function(d){F.call(W,d,h,this)},this)},this)};
_.N.getKeys=function(){_.tJ(this);for(var F=Array.from(this.keyMap_.values()),W=Array.from(this.keyMap_.keys()),E=[],h=0;h<W.length;h++)for(var d=F[h],V=0;V<d.length;V++)E.push(W[h]);return E};
_.N.getValues=function(F){_.tJ(this);var W=[];if(typeof F==="string")this.containsKey(F)&&(W=W.concat(this.keyMap_.get(C3(this,F))));else{F=Array.from(this.keyMap_.values());for(var E=0;E<F.length;E++)W=W.concat(F[E])}return W};
_.N.set=function(F,W){_.tJ(this);this.encodedQuery_=null;F=C3(this,F);this.containsKey(F)&&(this.count_-=this.keyMap_.get(F).length);this.keyMap_.set(F,[W]);this.count_+=1;return this};
_.N.get=function(F,W){if(!F)return W;F=this.getValues(F);return F.length>0?String(F[0]):W};
_.rvp=function(F,W,E){F.remove(W);E.length>0&&(F.encodedQuery_=null,F.keyMap_.set(C3(F,W),_.Kb(E)),F.count_+=E.length)};
_.MD.prototype.toString=function(){if(this.encodedQuery_)return this.encodedQuery_;if(!this.keyMap_)return"";for(var F=[],W=Array.from(this.keyMap_.keys()),E=0;E<W.length;E++){var h=W[E],d=_.ro(h);h=this.getValues(h);for(var V=0;V<h.length;V++){var R=d;h[V]!==""&&(R+="="+_.ro(h[V]));F.push(R)}}return this.encodedQuery_=F.join("&")};
_.MD.prototype.clone=function(){var F=new _.MD;F.encodedQuery_=this.encodedQuery_;this.keyMap_&&(F.keyMap_=new Map(this.keyMap_),F.count_=this.count_);return F};
var C3=function(F,W){W=String(W);F.JSC$7937_ignoreCase_&&(W=W.toLowerCase());return W},yvX=function(F,W){W&&!F.JSC$7937_ignoreCase_&&(_.tJ(F),F.encodedQuery_=null,F.keyMap_.forEach(function(E,h){var d=h.toLowerCase();
h!=d&&(this.remove(h),_.rvp(this,d,E))},F));
F.JSC$7937_ignoreCase_=W};
_.MD.prototype.extend=function(F){for(var W=0;W<arguments.length;W++)_.fqe(arguments[W],function(E,h){this.add(h,E)},this)};var BM=function(F,W){uG.call(this);for(var E=0,h;h=k3c[E];E++)if(h in F&&!/^https?:\/\//.test(F[h]))throw Error("Va`"+F[h]+"`"+h);this.cfg_=F;this.name=this.cfg_.cn||sTz();this.JSC$7932_domHelper_=W||gn();this.deferredDeliveries_=[];this.peerLoadHandler_=new _.hR(this);F.lpu=F.lpu||PKB(this.JSC$7932_domHelper_.getWindow().location.href)+"/robots.txt";F.ppu=F.ppu||PKB(F.pu||"")+"/robots.txt";WM[this.name]=this;JyU(window,"unload",Tla)||CK(window,"unload",Tla)};
_.Ma(BM,uG);var oje=RegExp("^%*tp$"),G3i=RegExp("^%+tp$");_.N=BM.prototype;_.N.connectionDelay_=null;_.N.peerWindowDeferred_=null;_.N.transport_=null;_.N.state_=1;_.N.isConnected=function(){return this.state_==2};
_.N.peerWindowObject_=null;_.N.iframeElement_=null;_.N.connect=function(F){this.connectCb_=F||_.sn;this.state_==3&&(this.state_=1);this.peerWindowDeferred_?CgT(this.peerWindowDeferred_,this.continueConnection_):this.continueConnection_()};
_.N.continueConnection_=function(){this.peerWindowDeferred_=null;this.cfg_.ifrid&&(this.iframeElement_=this.JSC$7932_domHelper_.getElement(this.cfg_.ifrid));if(this.iframeElement_){var F=this.iframeElement_.contentWindow;F||(F=window.frames[this.cfg_.ifrid]);this.peerWindowObject_=F}if(!this.peerWindowObject_){if(window==window.top)throw Error("Xa");this.peerWindowObject_=window.parent}if(!this.transport_){this.cfg_.tp||(this.cfg_.tp=typeof document.postMessage==="function"||typeof window.postMessage===
"function"?1:0);if(typeof this.cfg_.tp==="function")this.transport_=new this.cfg_.tp(this,this.JSC$7932_domHelper_);else switch(this.cfg_.tp){case 1:this.transport_=new Fh(this,this.cfg_.ph,this.JSC$7932_domHelper_,!!this.cfg_.osh,this.cfg_.nativeProtocolVersion||2)}if(!this.transport_)throw Error("Wa");}for(this.transport_.connect();this.deferredDeliveries_.length>0;)this.deferredDeliveries_.shift()()};
_.N.close=function(){this.peerWindowDeferred_&&(this.peerWindowDeferred_.cancel(),this.peerWindowDeferred_=null);this.deferredDeliveries_.length=0;this.peerLoadHandler_.removeAll();this.state_=3;_.u5(this.transport_);this.connectCb_=this.transport_=null;_.u5(this.connectionDelay_);this.connectionDelay_=null};
_.N.send=function(F,W){if(this.isConnected()){try{var E=!!this.peerWindowObject_&&!this.peerWindowObject_.closed}catch(d){E=!1}if(E){_.NU(W)&&(W=(0,_.ad)(W));E=this.transport_;var h=E.send;oje.test(F)&&(F="%"+F);F=F.replace(/[%:|]/g,encodeURIComponent);h.call(E,F,W)}else this.close()}};
_.N.xpcDeliver=function(F,W,E){if(this.peerWindowDeferred_)this.deferredDeliveries_.push((0,_.kj)(this.xpcDeliver,this,F,W,E));else if(ZrX(this,E)&&!this.isDisposed()&&this.state_!=3)if(F&&F!="tp")this.isConnected()&&(F=F.replace(/%[0-9a-f]{2}/gi,decodeURIComponent),F=G3i.test(F)?F.substring(1):F,F=this.getService(F,W))&&(W=MSu(W,F.objectPayload),W!=null&&F.callback(W));else switch(F=this.transport_,E=$Tz(W),W=E[1],E[0]){case "SETUP_ACK":JvO(F,1);F.setupAckReceived_.fired_||F.setupAckReceived_.callback(!0);
break;case "SETUP_ACK_NTPV2":F.protocolVersion_==2&&(JvO(F,2),F.setupAckReceived_.fired_||F.setupAckReceived_.callback(!0));break;case "SETUP":JvO(F,1);Pg_(F,1);break;case "SETUP_NTPV2":F.protocolVersion_==2&&(E=F.peerProtocolVersion_,JvO(F,2),Pg_(F,2),E!=1&&F.peerEndpointId_==null||F.peerEndpointId_==W||HrM(F),F.peerEndpointId_=W)}};
var LjH=function(F){var W=F.cfg_.role;return typeof W==="number"?W:window.parent==F.peerWindowObject_?1:0},ZrX=function(F,W){var E=F.cfg_.ph;
return _.Mw(W==null?"":String(W))||_.Mw(E==null?"":String(E))||W==F.cfg_.ph};
BM.prototype.disposeInternal=function(){this.close();this.iframeElement_=this.peerWindowObject_=null;delete WM[this.name];_.u5(this.peerLoadHandler_);delete this.peerLoadHandler_;BM.superClass_.disposeInternal.call(this)};
var Tla=function(){for(var F in WM)_.u5(WM[F])},WM={};var wbX=function(F,W){this.JSC$7946_win=F;this.allowAdsHttpEndpoint=W;this.wallElement=this.allowAdsCrossPageChannel=this.allowAdsPopup=null;this.JSC$7946_domHelper=gn(F);this.scrollManager=new UTe(F);this.accessibilityManager=new EjO(F);Y2X(this)},Y2X=function(F){var W=function(){F.allowAdsPopup&&F.allowAdsPopup.style.setProperty("display","none","important");
F.wallElement.style.setProperty("display","","important");hAU(F.accessibilityManager);VSp(F.accessibilityManager,F.wallElement.querySelector(".fc-dialog-container"),!1,!1,F.wallElement.querySelector(".fc-button-whitelist"));var d=F.scrollManager;d.JSC$7904_domHelper.JSC$7231_document_.body.style.overflow=d.originalBodyOverflow};
F.allowAdsPopup=F.JSC$7946_domHelper.JSC$7233_createDom("DIV",{"class":"fc-whitelist-root"});F.allowAdsPopup.style.setProperty("display","none","important");F.JSC$7946_domHelper.appendChild(F.JSC$7946_domHelper.JSC$7231_document_.body,F.allowAdsPopup);var E=F.JSC$7946_domHelper.JSC$7233_createDom("DIV",{"class":"fc-dialog-overlay"});F.JSC$7946_domHelper.appendChild(F.allowAdsPopup,E);var h=F.JSC$7946_domHelper.JSC$7233_createDom("DIV",{"class":"fc-whitelist-dialog-wrapper",onclick:W});F.JSC$7946_domHelper.appendChild(F.allowAdsPopup,
h);E=F.JSC$7946_domHelper.JSC$7233_createDom("IFRAME");E.className="fc-whitelist-dialog";E.frameBorder="0";E.id="fc-whitelist-iframe";E.tabIndex="0";_.Hp(E,F.allowAdsHttpEndpoint);F.JSC$7946_domHelper.appendChild(h,E);h={};h.pu=_.e9(F.allowAdsHttpEndpoint).toString();h.tp=1;h.cn="fc-whitelist-channel";h.ifrid=E.id;h.osh=!0;F.allowAdsCrossPageChannel=new BM(h);F.allowAdsCrossPageChannel.registerService("close",W);F.allowAdsCrossPageChannel.registerService("refresh",function(){F.JSC$7946_win.location.reload()});
F.allowAdsCrossPageChannel.registerService("resize",function(d){if(d){var V=F.allowAdsPopup.querySelector(".fc-whitelist-dialog");d.width&&V.style.setProperty("width",d.width,"important");d.height&&V.style.setProperty("height",d.height,"important")}},!0);
F.allowAdsCrossPageChannel.connect()};
wbX.prototype.tearDown=function(){this.allowAdsPopup&&(this.JSC$7946_domHelper.removeNode(this.allowAdsPopup),this.allowAdsPopup=null);this.allowAdsCrossPageChannel&&this.allowAdsCrossPageChannel.close()};/*
 gapi.loader.OBJECT_CREATE_TEST_OVERRIDE &&*/
var vM=window,Is=document,ugu=vM.location,S2z=function(){},pbu=/\[native code\]/,cM=function(F,W,E){return F[W]=F[W]||E},mTi=function(F){F=F.sort();
for(var W=[],E=void 0,h=0;h<F.length;h++){var d=F[h];d!=E&&W.push(d);E=d}return W},Da=function(){var F;
if((F=Object.create)&&pbu.test(F))F=F(null);else{F={};for(var W in F)F[W]=void 0}return F},xA=cM(vM,"gapi",{});var kA={};kA=cM(vM,"___jsl",Da());cM(kA,"I",0);cM(kA,"hel",10);var KjU=function(){var F=ugu.href;if(kA.dpo)var W=kA.h;else{W=kA.h;var E=RegExp("([#].*&|[#])jsh=([^&#]*)","g"),h=RegExp("([?#].*&|[?#])jsh=([^&#]*)","g");if(F=F&&(E.exec(F)||h.exec(F)))try{W=decodeURIComponent(F[2])}catch(d){}}return W},F6p=function(F){var W=cM(kA,"PQ",[]);
kA.PQ=[];var E=W.length;if(E===0)F();else for(var h=0,d=function(){++h===E&&F()},V=0;V<E;V++)W[V](d)},W6T=function(F){return cM(cM(kA,"H",Da()),F,Da())};var AJ=function(F){this.JSC$7948_obj_=F};
AJ.prototype.value=function(){return this.JSC$7948_obj_};
AJ.prototype.getWidth=function(){return this.JSC$7948_obj_.width};
AJ.prototype.getHeight=function(){return this.JSC$7948_obj_.height};
AJ.prototype.getStyle=function(){return this.JSC$7948_obj_.style};var Epu=function(F){this.JSC$7951_obj_=F||{}};
_.N=Epu.prototype;_.N.value=function(){return this.JSC$7951_obj_};
_.N.setUrl=function(F){this.JSC$7951_obj_.url=F;return this};
_.N.getUrl=function(){return this.JSC$7951_obj_.url};
_.N.getStyle=function(){return this.JSC$7951_obj_.style};
_.N.setId=function(F){this.JSC$7951_obj_.id=F;return this};
_.N.getId=function(){return this.JSC$7951_obj_.id};
_.N.getContext=function(){return this.JSC$7951_obj_.context};
var hFM=function(F){F.JSC$7951_obj_.attributes=F.JSC$7951_obj_.attributes||{};return new AJ(F.JSC$7951_obj_.attributes)};var d6c=function(){Epu.apply(this,arguments)};
_.k(d6c,Epu);var N$e=cM(kA,"perf",Da());cM(N$e,"g",Da());var Vee=cM(N$e,"i",Da());cM(N$e,"r",[]);Da();Da();var RFu=function(F,W,E){W&&W.length>0&&(W=U6i(W),E&&E.length>0&&(W+="___"+U6i(E)),W.length>28&&(W=W.substr(0,28)+(W.length-28)),E=W,W=cM(Vee,"_p",Da()),cM(W,E,Da())[F]=(new Date).getTime(),W=N$e.r,typeof W==="function"?W(F,"_p",E):W.push([F,"_p",E]))},U6i=function(F){return F.join("__").replace(/\./g,"_").replace(/\-/g,"_").replace(/,/g,"_")};var eFH=Da(),MeH=[],sD=function(F){throw Error("Ya`"+F);};
MeH.push(["jsl",function(F){for(var W in F)if(Object.prototype.hasOwnProperty.call(F,W)){var E=F[W];typeof E=="object"?kA[W]=cM(kA,W,[]).concat(E):cM(kA,W,E)}if(W=F.u)F=cM(kA,"us",[]),F.push(W),(W=/^https:(.*)$/.exec(W))&&F.push("http:"+W[1])}]);
var gpe=/^(\/[a-zA-Z0-9_\-]+)+$/,QyH=[/\/amp\//,/\/amp$/,/^\/amp$/],zFa=/^[a-zA-Z0-9\-_\.,!]+$/,teO=/^gapi\.loaded_[0-9]+$/,Cue=/^[a-zA-Z0-9,._-]+$/,cz_=function(F,W,E,h,d){var V=F.split(";"),R=V.shift(),M=eFH[R],g=null;M?g=M(V,W,E,h):sD("no hint processor for: "+R);g||sD("failed to generate load url");W=g;E=W.match(B$_);(h=W.match(vpM))&&h.length===1&&Ini.test(W)&&E&&E.length===1||sD("failed sanity: "+F);try{F="?";if(d&&d.length>0){eH(d);var t=d.join(",");g=g+"?le="+t;F="&"}if(kA.rol){var C=kA.ol;
C&&C.length&&(g=""+g+F+"ol="+C.length)}}catch(B){}return g},kie=function(F,W,E,h){F=D6_(F);
teO.test(E)||sD("invalid_callback");W=x6e(W);h=h&&h.length?x6e(h):null;var d=function(V){return encodeURIComponent(V).replace(/%2C/g,",")};
return[encodeURIComponent(F.pathPrefix).replace(/%2C/g,",").replace(/%2F/g,"/"),"/k=",d(F.version),"/m=",d(W),h?"/exm="+d(h):"","/rt=j/sv=1/d=1/ed=1",F.activeMods?"/am="+d(F.activeMods):"",F.resourceSig?"/rs="+d(F.resourceSig):"",F.zcms?"/t="+d(F.zcms):"","/cb=",d(E)].join("")},D6_=function(F){F.charAt(0)!=="/"&&sD("relative path");
for(var W=F.substring(1).split("/"),E=[];W.length;){F=W.shift();if(!F.length||F.indexOf(".")==0)sD("empty/relative directory");else if(F.indexOf("=")>0){W.unshift(F);break}E.push(F)}F={};for(var h=0,d=W.length;h<d;++h){var V=W[h].split("="),R=decodeURIComponent(V[0]),M=decodeURIComponent(V[1]);V.length==2&&R&&M&&(F[R]=F[R]||M)}W="/"+E.join("/");gpe.test(W)||sD("invalid_prefix");E=0;for(h=QyH.length;E<h;++E)QyH[E].test(W)&&sD("invalid_prefix");E=AzX(F,"k",!0);h=AzX(F,"am");d=AzX(F,"rs");F=AzX(F,"t");
return{pathPrefix:W,version:E,activeMods:h,resourceSig:d,zcms:F}},x6e=function(F){for(var W=[],E=0,h=F.length;E<h;++E){var d=F[E].replace(/\./g,"_").replace(/-/g,"_");
Cue.test(d)&&W.push(d)}return W.join(",")},AzX=function(F,W,E){F=F[W];
!F&&E&&sD("missing: "+W);if(F){if(zFa.test(F))return F;sD("invalid: "+W)}return null},Ini=/^https?:\/\/[a-z0-9_.-]+\.google(rs)?\.com(:\d+)?\/[a-zA-Z0-9_.,!=\-\/]+$/,vpM=/\/cb=/g,B$_=/\/\//g;
eFH.m=function(F,W,E,h){(F=F[0])||sD("missing_hint");return"https://apis.google.com"+kie(F,W,E,h)};
var syc=decodeURI("%73cript"),L6u=/^[-+_0-9\/A-Za-z]+={0,2}$/,qi_=function(F,W){for(var E=[],h=0;h<F.length;++h){var d=F[h],V;if(V=d){a:{for(V=0;V<W.length;V++)if(W[V]===d)break a;V=-1}V=V<0}V&&E.push(d)}return E},$6p=function(){var F=kA.nonce;
return F!==void 0?F&&F===String(F)&&F.match(L6u)?F:kA.nonce=null:Is.querySelector?(F=Is.querySelector("script[nonce]"))?(F=F.nonce||F.getAttribute("nonce")||"",F&&F===String(F)&&F.match(L6u)?kA.nonce=F:kA.nonce=null):null:null},Hd_=function(F){if(Is.readyState!="loading")Zdc(F);
else{var W=$6p(),E="";W!==null&&(E=' nonce="'+W+'"');F="<"+syc+' src="'+encodeURI(F)+'"'+E+"></"+syc+">";Is.write(XXp?XXp.createHTML(F):F)}},Zdc=function(F){var W=Is.createElement(syc);
W.setAttribute("src",XXp?XXp.createScriptURL(F):F);F=$6p();F!==null&&W.setAttribute("nonce",F);W.async="true";(F=Is.getElementsByTagName(syc)[0])?F.parentNode.insertBefore(W,F):(Is.head||Is.body||Is.documentElement).appendChild(W)},Jzi=function(F,W,E){Pui(function(){var h=W===KjU()?cM(xA,"_",Da()):Da();
h=cM(W6T(W),"_",h);F(h)},E)},Bsb=function(F,W){var E=W||{};
typeof W=="function"&&(E={},E.callback=W);var h=(W=E)&&W._c;if(h)for(var d=0;d<MeH.length;d++){var V=MeH[d][0],R=MeH[d][1];R&&Object.prototype.hasOwnProperty.call(h,V)&&R(h[V],F,W)}W=[];F?W=F.split(":"):E.features&&(W=E.features);if(!(F=E.h)&&(F=KjU(),!F))throw Error("Za");anU(W||[],E,F)},anU=function(F,W,E){F=mTi(F)||[];
var h=W.callback,d=W.config,V=W.timeout,R=W.ontimeout,M=W.onerror,g=void 0;typeof M=="function"&&(g=M);var t=null,C=!1;if(V&&!R||!V&&R)throw"Timeout requires both the timeout parameter and ontimeout parameter to be set";M=cM(W6T(E),"r",[]).sort();var B=cM(W6T(E),"L",[]).sort(),I=kA.le||[],x=[].concat(M),A=function(w,G){if(C)return 0;vM.clearTimeout(t);B.push.apply(B,X);var hr=((xA||{}).config||{}).update;hr?hr(d):d&&cM(kA,"cu",[]).push(d);if(G){RFu("me0",w,x);try{Jzi(G,E,g)}finally{RFu("me1",w,x)}}return 1};
V>0&&(t=vM.setTimeout(function(){C=!0;R()},V));
var X=qi_(F,B);if(X.length){X=qi_(F,M);var P=cM(kA,"CP",[]),b=P.length;P[b]=function(w){if(!w)return 0;RFu("ml1",X,x);var G=function(p){P[b]=null;A(X,w)&&F6p(function(){h&&h();p()})},hr=function(){var p=P[b+1];
p&&p()};
b>0&&P[b-1]?P[b]=function(){G(hr)}:G(hr)};
if(X.length){var l="loaded_"+kA.I++;xA[l]=function(w){P[b](w);xA[l]=null};
F=cz_(E,X,"gapi."+l,M,I);M.push.apply(M,X);RFu("ml0",X,x);W.sync||vM.___gapisync?Hd_(F):Zdc(F)}else P[b](S2z)}else A(X)&&h&&h()},fnM;
var Od_=null,bdM=_.EY.trustedTypes;if(bdM&&bdM.createPolicy){try{Od_=bdM.createPolicy("goog#gapi",{createHTML:WLI,createScript:WLI,createScriptURL:WLI})}catch(F){_.EY.console&&_.EY.console.error(F.message)}fnM=Od_}else fnM=Od_;var XXp=fnM,Pui=function(F,W){if(kA.hee&&kA.hel>0)try{return F()}catch(E){W&&W(E),kA.hel--,Bsb("debug_error",function(){try{window.___jsl.hefn(E)}catch(h){throw E;}})}else try{return F()}catch(E){throw W&&W(E),E;
}},lnT=xA.load;
lnT&&cM(kA,"ol",[]).push(lnT);xA.load=function(F,W){return Pui(function(){return Bsb(F,W)})};var EFR;var npB=function(F,W){this.serviceId_=F;this.moduleId_=W||null};
npB.prototype.toString=function(){return this.serviceId_};
npB.prototype.getModuleId=function(){return this.moduleId_};var Wre=new npB("MpJwZc","MpJwZc");var h_o=new _.DZ("a"),EOe=function(F,W,E){_.xU.call(this,F,W);this.node=W;this.kind=E};
_.k(EOe,_.xU);var yzz=function(){this.JSC$7964_keys_={};this.urlPrefix_="";this.JSC$7964_queryData_={}};
yzz.prototype.toString=function(){var F=this.urlPrefix_+jyz(this),W=_.zC(this.JSC$7964_queryData_),E="";W!=""&&(E="?"+W);return F+E};
var idT=function(F){F=L3(F,"md");return!!F&&F!=="0"},jyz=function(F){var W=[],E=(0,_.kj)(function(h){this.JSC$7964_keys_[h]!==void 0&&W.push(h+"="+this.JSC$7964_keys_[h])},F);
idT(F)?(E("md"),E("k"),E("ck"),E("am"),E("rs"),E("gssmodulesetproto"),E("slk"),E("dti")):(E("sdch"),E("k"),E("ck"),E("am"),E("rt"),"d"in F.JSC$7964_keys_||qD(F,"d","0"),E("d"),E("exm"),E("excm"),(F.JSC$7964_keys_.excm||F.JSC$7964_keys_.exm)&&W.push("ed=1"),E("im"),E("dg"),E("sm"),L3(F,"br")!="1"&&L3(F,"br")!="0"||E("br"),E("br-d"),L3(F,"rb")=="1"&&E("rb"),L3(F,"zs")!=="0"&&E("zs"),rze(F)!==""&&E("wt"),E("gssmodulesetproto"),E("ujg"),E("sp"),E("rs"),E("cb"),E("ee"),E("slk"),E("dti"),E("m"));return W.join("/")},
L3=function(F,W){return F.JSC$7964_keys_[W]?F.JSC$7964_keys_[W]:null},qD=function(F,W,E){E?F.JSC$7964_keys_[W]=E:delete F.JSC$7964_keys_[W]},T$z=function(F,W){F.urlPrefix_=W},opH=function(F,W){W&&W.length>0?(W.sort(),qD(F,"exm",W.join(","))):qD(F,"exm",null)},Giu=function(F,W){W&&W.length>0?(W.sort(),qD(F,"excm",W.join(","))):qD(F,"excm",null)},YiM=function(F){return(F=L3(F,"m"))?F.split(","):[]},rze=function(F){switch(L3(F,"wt")){case "0":return"0";
case "1":return"1";case "2":return"2";default:return""}},wXu=function(F,W){var E=Object.keys(W).filter(function(h){return!!Object.keys(W[h]).length}).map(function(h){var d=Object.keys(W[h]);
d.length>1&&d.sort();return h+":"+d.join(",")});
E.sort();qD(F,"ee",E.join(";"))},YGW=function(F){var W=L3(F,"ee");
if(!W)return{};F={};W=_.U(W.split(";"));for(var E=W.next();!E.done;E=W.next()){var h=_.U(E.value.split(":"));E=h.next().value;h=h.next().value;F[E]={};h=_.U(h.split(","));for(var d=h.next();!d.done;d=h.next())F[E][d.value]=!0}return F},uOB=function(F){delete F.JSC$7964_keys_.m;
delete F.JSC$7964_keys_.exm;delete F.JSC$7964_keys_.ed};
yzz.prototype.clone=function(){if(xPW){var F=new yzz;F.JSC$7964_keys_=Object.assign({},this.JSC$7964_keys_);F.urlPrefix_=this.urlPrefix_;F.JSC$7964_queryData_=Object.assign({},this.JSC$7964_queryData_);return F}return WX(this.toString())};
var WX=function(F,W){W=W===void 0?!0:W;var E=Sip(F),h=new yzz,d=_.u0(E)[5];_.xd.forEach(pXc,function(R){var M=d.match("/"+R+"=([^/]+)");M&&qD(h,R,M[1])});
var V="";V=F.indexOf("_/ss/")!=-1?"_/ss/":"_/js/";T$z(h,F.substr(0,F.indexOf(V)+V.length));if(!W)return h;(F=_.u0(E)[6]||null)&&auH(F,function(R,M){h.JSC$7964_queryData_[R]=M});
return h},Tor=function(F){F=_.gV(Sip(F));
return F===null?!1:RegExp("(/_/js/)|(/_/ss/)","g").test(F)?/\/k=/.test(F):!1},Sip=function(F){return F.startsWith("https://uberproxy-pen-redirect.corp.google.com/uberproxy/pen?url=")?F.substr(65):F},pXc={ROW_KEY:"k",
CSS_ROW_KEY:"ck",MODULES:"m",EXCLUDED_MODULES:"exm",EXCLUDED_CSS_MODULES:"excm",ACTIVE_MODS:"am",MASKED_MODS:"mm",RESPONSE_TYPE:"rt",INCLUDE_DEPS:"d",EXCLUDED_DEPS:"ed",SPEC_VERSION:"sv",DEOBFUSCATION_VERSION:"deob",CALLBACK:"cb",SIGNATURE:"rs",SDCH:"sdch",INSERT_MARKERS:"im",DEPENDENCY_GRAPH:"dg",ENABLE_BROTLI_ENCODING:"br",ENABLE_BROTLI_DICTIONARY_ENCODING:"br-d",ENABLE_RBROTLI_ENCODING:"rb",ZSTD_LEVEL:"zs",WRAP_IN_TRY:"wt",EXTRA_EDGES:"ee",SOURCE_MAP:"sm",METADATA:"md",GSS_MODULE_SET_PROTO:"gssmodulesetproto",
USE_JS_GRAPH_FOR_COMBINED_REQUESTS:"ujg",USE_INSTALL_CSS_PROTO:"sp",SIDELOADING_ROWKEY:"slk",DISABLE_TOGGLES_INIT:"dti"},m6e=RegExp("^loaded_(g|h)?[_\\d]+$");_.$A=function(F){this.JSC$7976_id_=F;this.opts={}};
_.$A.prototype.JSC$7978_setLabel=function(F){this.label_=F||void 0;return this};
_.$A.prototype.addUploadMetadata=function(F,W){var E=this.opts.data||{};E[F]=W;this.opts.data=E;return this};
var K6p=function(F){var W=_.xd.filter(F.opts,function(E){return E!==null});
W=_.xd.isEmpty(W)?null:W;F=[F.JSC$7976_id_,F.label_,W];W=ISW(F);return F=F.slice(0,W+1)};
_.$A.prototype.toString=function(){var F=K6p(this);return"("+_.AN(F,function(W){return JSON.stringify(W)}).join(",")+")"};
_.$A.prototype.getId=function(){return this.JSC$7976_id_};
_.$A.prototype.getOptions=function(){return _.xd.clone(this.opts)};var Za=function(){_.$A.call(this,"image-search")};
_.k(Za,_.$A);Za.prototype.setSize=function(F){this.opts.imgsz=F;return this};
Za.prototype.JSC$7978_setLabel=function(F){_.$A.prototype.JSC$7978_setLabel.call(this,F);return this};
Za.prototype.addUploadMetadata=function(F,W){_.$A.prototype.addUploadMetadata.call(this,F,W);return this};var Xh=function(){_.$A.call(this,"maps")};
_.k(Xh,_.$A);Xh.prototype.setZoom=function(F){this.opts.zoom=F;return this};
Xh.prototype.JSC$7978_setLabel=function(F){_.$A.prototype.JSC$7978_setLabel.call(this,F);return this};
Xh.prototype.addUploadMetadata=function(F,W){_.$A.prototype.addUploadMetadata.call(this,F,W);return this};_.HM=function(){_.$A.call(this,"photos")};
_.k(_.HM,_.$A);_.HM.prototype.JSC$7978_setLabel=function(F){_.$A.prototype.JSC$7978_setLabel.call(this,F);return this};
_.HM.prototype.addUploadMetadata=function(F,W){_.$A.prototype.addUploadMetadata.call(this,F,W);return this};var PM=function(){_.$A.call(this,"url")};
_.k(PM,_.$A);var F0u=function(){var F=new PM;F.opts.type="video";F.opts.site="youtube.com";return F};
PM.prototype.JSC$7978_setLabel=function(F){_.$A.prototype.JSC$7978_setLabel.call(this,F);return this};
PM.prototype.addUploadMetadata=function(F,W){_.$A.prototype.addUploadMetadata.call(this,F,W);return this};var JJ=function(){_.$A.call(this,"video-search")};
_.k(JJ,_.$A);var W0_=function(){var F=new JJ;F.opts.site="youtube.com";return F};
JJ.prototype.JSC$7978_setLabel=function(F){_.$A.prototype.JSC$7978_setLabel.call(this,F);return this};
JJ.prototype.addUploadMetadata=function(F,W){_.$A.prototype.addUploadMetadata.call(this,F,W);return this};var EFz=function(){_.$A.call(this,"web")};
_.k(EFz,_.$A);EFz.prototype.JSC$7978_setLabel=function(F){_.$A.prototype.JSC$7978_setLabel.call(this,F);return this};
EFz.prototype.addUploadMetadata=function(F,W){_.$A.prototype.addUploadMetadata.call(this,F,W);return this};var as=function(){this.items_=[];this.opts={}},hae=function(F){switch(F){case "image-search":return new Za;
case "maps":return new Xh;case "photos":return new _.HM;case "url":return new PM;case "video-search":return new JJ;case "web":return new EFz}return new _.$A(F)};
as.prototype.addView=function(F){this.items_.push(typeof F==="string"?hae(F):F);return this};
var dOM=function(F){return"("+_.AN(F.items_,function(W){return W.toString()}).join(",")+")"};
as.prototype.toString=function(){return dOM(this)};
as.prototype.getViews=function(F,W){W=W===void 0?[]:W;for(var E=this.items_,h=0;h<E.length;h++){var d=E[h];d instanceof as?d.getViews(F,W):d.getId()==F&&W.push(d)}return W};
as.prototype.getOptions=function(){return _.xd.clone(this.opts)};var aT=function(F){this.basePickerUrl_=F||"https://docs.google.com/picker";this.nav_=new as};
aT.prototype.nav_=null;aT.prototype.addView=function(F){this.nav_.addView(F);return this};
aT.prototype.getBaseUrl=function(){return this.basePickerUrl_};
aT.prototype.getViews=function(F){return this.nav_.getViews(F)};
_.Noi=function(F,W){F.callback_=W;return F};var Vuz=new Map;Vuz.set("application/vnd.google-apps.document","application/vnd.google-gsuite.document-blob");Vuz.set("application/vnd.google-apps.spreadsheet","application/vnd.google-gsuite.spreadsheet-blob");Vuz.set("application/vnd.google-apps.presentation","application/vnd.google-gsuite.presentation-blob");var UOa=new Set;UOa.add("application/vnd.google-apps.kix");UOa.add("application/vnd.google-apps.ritz");UOa.add("application/vnd.google-apps.punch");var c8X=function(F,W,E){var h=E&&_.bj(E,1);E=RaX(E);var d=F[0].getId();switch(_.lj(d,2)){case 13:return eaH(F,W,h,E);case 3:return Mui(F,W,h,E);case 10:return gF_(F,W,h,E);case 27:return gF_(F,W,h,E);case 12:return QWu(F,W);case 2:return zaa(F,W,h,E);case 5:return tu_(F,W,h,E);case 9:return C0_(F,W,h,E);case 6:return BoT(F,W,h,E);case 25:return vFu(F,W,h,E);case 1:return _.Lc(F[0],pTp,26)?I4X(F,W,h,E):gF_(F,W,h,E);default:return{}}},BoT=function(F,W,E,h){F=F.map(function(d){return{id:d.getId().getId(),
serviceId:"youtube",name:d.getName(),description:_.bj(d,3),type:f3(d),lastEditedUtc:_.Squ(_.Em(d,_.Gc,16)).getTime(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:d.getUrl(),embedUrl:_.bj(d,13),thumbnails:OD(dv(d))}});
return{action:W,docs:F,viewToken:h,view:E||"youtube",v2Translated:!0}},zaa=function(F,W,E,h){var d=F.map(function(V){var R=V.getId().getId(),M=_.bj(V,7),g=V.getName(),t=f3(V),C=_.Squ(_.Em(V,_.Gc,12)).getTime(),B=V.getUrl(),I=Number(zcr(V)),x=_.bj(V,3),A=_.bj(V,11),X=OD(dv(V));
var P=_.Em(V,No,21);P=_.aZ(P,1);var b=_.Em(V,No,21);b=_.bj(b,10);var l=_.bj(V,13);var w=_.Em(V,No,21);w=_.aZ(w,9);var G=_.Em(V,No,21);G=_.bj(G,11);R={id:R,serviceId:"docs",mimeType:M,name:g,type:t,lastEditedUtc:C,url:B,sizeBytes:I,description:x,iconUrl:A,thumbnails:X,isShared:P,downloadUrl:b,embedUrl:l,copyable:w,resourceKey:G};M=_.Em(V,No,21);_.aZ(M,12)&&(R.uploadState="success",R.isNew=!0);M=_.Em(V,No,21);_.Lc(M,WI,3)&&(V=_.Em(V,No,21),V=_.Em(V,WI,3),_.Lc(V,Kv,2)&&(M=Pb(V.getDuration().getSeconds()),
g=V.getDuration(),g=_.Wb(g,2),R.duration=M+g/1E9),R.aspectRatio=V.getAspectRatio());return R});
return{action:W,docs:d,viewToken:h,view:E||"all",extraUserInputs:DOU(F),v2Translated:!0}},tu_=function(F,W,E,h){F=F.map(function(d){var V=_.Em(d,VzX,15);
V=_.Em(V,F8,1);vc(d,10,F8,V);return{id:d.getId().getId(),serviceId:"web",mimeType:_.bj(d,7),name:d.getName(),type:f3(d),url:d.getUrl(),description:_.bj(d,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:OD(dv(d))}});
return{action:W,docs:F,viewToken:h,view:E||"image-search",v2Translated:!0}},C0_=function(F,W,E,h){F=F.map(function(d){return{serviceId:"url",
name:dv(d)[0].getUrl().split("/").pop(),type:f3(d),mimeType:_.bj(d,7),url:d.getUrl(),description:_.bj(d,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:OD(dv(d))}});
return{action:W,docs:F,viewToken:h,view:E||"url",v2Translated:!0}},I4X=function(F,W,E,h){F=F.map(function(d){return{id:d.getId().getId(),
serviceId:"picasa",name:d.getName(),type:f3(d),description:_.bj(d,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:OD(dv(d))}});
return{action:W,docs:F,viewToken:h,view:E||"webcam",v2Translated:!0}},gF_=function(F,W,E,h){return{action:W,
docs:F.map(xOa),viewToken:h,view:kke(E||"upload",F),extraUserInputs:DOU(F),v2Translated:!0}},kke=function(F,W){return W.some(function(E){var h;
return((h=_.Em(E,Es,30))==null?void 0:_.lj(h,3))===9})?F+"/gmailphotos":F},Mui=function(F,W,E,h){var d=F.map(function(V){var R={id:V.getId().getId(),
serviceId:"picasa",mimeType:_.bj(V,7),name:V.getName(),type:f3(V),lastEditedUtc:_.Squ(_.Em(V,_.Gc,12)).getTime(),url:V.getUrl(),sizeBytes:Number(zcr(V)),description:_.bj(V,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:OD(dv(V)),mediaKey:V.getId().getId(),parentId:_.bj(V,4)},M,g=(M=_.Em(V,Fpp,18))==null?void 0:_.Em(M,Kg_,3);g&&(R.latitude=OV(g,1),R.longitude=OV(g,2));var t;V=(t=_.Em(V,Fpp,18))==null?void 0:fc(t,6);t=V!=null?Pb(V):void 0;t&&(R.version=
t);return R});
return{action:W,docs:d,viewToken:h,view:E||"photos",extraUserInputs:DOU(F),v2Translated:!0}},eaH=function(F,W,E,h){F=F.map(function(d){return{id:d.getId().getId(),
serviceId:"et",name:dv(d)[0].getUrl().split("/").pop(),description:_.bj(d,3),type:"et",iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:OD(dv(d),"etjpg")}});
return{action:W,docs:F,viewToken:h,view:E||"et",v2Translated:!0}},vFu=function(F,W,E,h){F=F.map(function(d){var V=d.getId().getId(),R=h["2"];
return{id:V,serviceId:R.type!=="gmail_themes"&&R.parent==="6226252643674576769"?"picasa":"static_themes",name:d.getName(),mimeType:_.bj(d,7),type:f3(d),description:_.bj(d,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:d.getUrl(),embedUrl:d.getUrl(),thumbnails:OD(dv(d))}});
return{action:W,docs:F,viewToken:h,view:E||"photos",v2Translated:!0}},QWu=function(F,W){F=F.map(function(E){var h=_.Em(E,mFc,27);
h=_.De(h,1,_.yx,_.Fg())[0];return{id:E.getId().getId(),serviceId:"contacts",mimeType:_.bj(E,7),name:E.getName(),description:_.bj(E,3),url:"mailto:"+h,thumbnail:[{url:_.bj(E,11)}],email:h}});
return{action:W,docs:F,view:"contacts",v2Translated:!0}},RaX=function(F){if(!F)return{};
var W=_.bj(F,3);W=W&&JSON.parse(W)||{};return{0:_.bj(F,1),1:_.bj(F,2),2:W}},OD=function(F,W){W=W===void 0?"":W;
if(!F.length)return null;W=="etjpg"&&(F=F.filter(function(E){return E.getUrl().includes("w1200-h300")}));
return F.map(function(E){return{url:E.getUrl(),height:E.getHeight(),width:E.getWidth(),type:W}})},DOU=function(F){return{isAttachment:F.some(function(W){return _.aZ(W,31)})}},xOa=function(F){var W,E={id:(W=F.getId())==null?void 0:W.getId(),
serviceId:A8H(F),mimeType:_.bj(F,7),name:F.getName(),type:f3(F),sizeBytes:Number(zcr(F)),description:_.bj(F,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:OD(dv(F)),isNew:!0};if(W=_.Em(F,Es,30)){E.dataUrl=_.bj(W,1)||null;a:{var h=_.Em(F,Es,30);switch(_.lj(h,3)){case 9:h=_.j2(h,dRM,2,hh);h={remoteRefs:h&&_.bj(h,1)};break a;case 10:case 15:h=_.j2(h,hWz,4,hh);var d=dv(F);h={photo_id:h&&_.bj(h,1),media_key:F.getId().getId(),media_type:_.lj(F,6)===1?1:2,image_url:d&&
d[0].getUrl(),width:d&&String(d[0].getWidth()),height:d&&String(d[0].getHeight())};break a}h=null}E.uploadMetadata=h;E.uploadId=_.bj(W,9)||null;E.uploadState=sWz(W)||null}(h=W&&_.j2(W,hWz,4,hh))&&(E.id=_.bj(h,1));(h=W&&_.j2(W,Nui,5,hh))&&(E.contentId=_.bj(h,1));(h=W&&_.j2(W,Wp_,7,hh))&&(E.contentId=_.bj(h,1));(h=W&&_.j2(W,ERX,6,hh))&&(E.contentId=_.bj(h,1));(W==null?void 0:_.lj(W,3))===1&&(E.mediaKey=F.getId().getId());return E},A8H=function(F){var W;
switch(((W=_.Em(F,Es,30))==null?void 0:_.lj(W,3))||0){case 1:return"picasa";case 2:case 3:case 4:case 8:case 12:return"photo";case 10:case 15:return"dragonflyphotos";case 11:return"mapspro";case 13:return"books";case 14:return"cultural"}return null},f3=function(F){switch(_.lj(F,6)){case 1:case 21:return"photo";
case 2:return"video";case 6:return"folder";case 13:return"calendar";case 14:return"album";case 19:return"contact";case 3:case 4:case 5:case 7:case 12:return _.bj(F,7).startsWith("application/vnd.google-apps.")?"document":"file";default:return"file"}},sWz=function(F){switch(F==null?void 0:_.lj(F,8)){case 0:return"default";
case 1:return"canceled";case 2:return"error";case 3:return"running";case 4:return"scheduled";case 5:return"success"}return null};var ZWX,L0a,qGH,$OO;_.bx=function(F,W){var E=W||{};W=E.document||document;var h=_.e9(F).toString(),d=(new X0(W)).createElement("SCRIPT"),V={script_:d,timeout_:void 0},R=new Sf(L0a,V),M=null,g=E.timeout!=null?E.timeout:5E3;g>0&&(M=window.setTimeout(function(){qGH(d,!0);R.errback(new $OO(1,"Timeout reached for loading script "+h))},g),V.timeout_=M);
d.onload=d.onreadystatechange=function(){d.readyState&&d.readyState!="loaded"&&d.readyState!="complete"||(qGH(d,E.cleanupWhenDone||!1,M),R.callback(null))};
d.onerror=function(){qGH(d,!0,M);R.errback(new $OO(0,"Error while loading script "+h))};
V=E.attributes||{};_.xd.extend(V,{type:"text/javascript",charset:"UTF-8"});jiH(d,V);_.nu(d,F);ZWX(W).appendChild(d);return R};
ZWX=function(F){var W=vb("HEAD",F);return W&&W.length!==0?W[0]:F.documentElement};
L0a=function(){if(this&&this.script_){var F=this.script_;F&&F.tagName=="SCRIPT"&&qGH(F,!0,this.timeout_)}};
qGH=function(F,W,E){E!=null&&_.EY.clearTimeout(E);F.onload=function(){};
F.onerror=function(){};
F.onreadystatechange=function(){};
W&&window.setTimeout(function(){_.Bb(F)},0)};
$OO=function(F,W){var E="Jsloader error (code #"+F+")";W&&(E+=": "+W);_.Fe.call(this,E);this.code=F};
_.Ma($OO,_.Fe);var XQ_=_.Fc(["https://apis.google.com/js/api.js"]),HWT=_.mv(XQ_),f4B=function(F,W){var E=!1,h=P0T(F,W).then(function(V){E=!0;return V}),d=_.Uli(5E3).then(function(){return E?P0T(F,W):J8M(W).then(function(V){return a4M(V,F)})});
return u3_([h,d])},P0T=function(F,W){return OWT(W).then(function(E){return a4M(E,F)})},a4M=function(F,W){var E=_.Vo(W,"gapi.")?W.slice(5):W;
return F[E]?_.e7(F[E]):new _.z5(function(h,d){var V=PI(function(){d(Error("bb"))},3E4);
F.load(W,{callback:function(){_.EY.clearTimeout(V);h(F[E])},
onerror:function(R){_.EY.clearTimeout(V);d(R)}})})},OWT=function(F){return F.gapi&&F.gapi.load?_.e7(F.gapi):J8M(F)},J8M=function(F){return _.bx(HWT,{document:F.document}).then(function(){return F.gapi})},bWO=function(){};
bWO.prototype.load=function(F,W){W=W===void 0?window:W;var E=Date.now();return f4B(F,W).then(function(h){var d=Date.now();return{library:h,loadStartMs:E,loadEndMs:d}},function(h){throw h instanceof Error?h:Error(String(h));
})};var C0o=function(){_.xj.call(this);this.gapiLoader_=new bWO;this.origin_=null;this.gapiPickerIframeResolver_=_.G_();this.gapiIframesResolver_=_.G_();this.gapiIframesResolver_.promise.then(null,function(){});
this.gapiPickerIframeResolver_.promise.then(null,function(){});
this.hostMessageHandlerInternal_={}};
_.k(C0o,_.xj);var l4M=function(F,W){var E=_.ju("gapi.iframes",W);return E?(F=Date.now(),_.e7({library:E,loadStartMs:F,loadEndMs:F})):F.gapiLoader_.load("gapi.iframes",W)},nFX=function(F,W,E,h,d,V){var R=!1;
R=R===void 0?!1:R;l4M(F,LC(W.ownerDocument)).then(function(M){var g=M.library;F.gapiIframesResolver_.resolve(g);M=F.gapiPickerIframeResolver_;var t=M.resolve,C=R;C=C===void 0?!1:C;var B={};B["host-message-handler"]=E;F.hostMessageHandlerInternal_=B;var I=_.y$(h);I=_.y$(I);I=_.ND(_.ds(_.hJ(new _.Yx,I.scheme_),I.JSC$7936_domain_),I.JSC$7936_port_).toString();F.origin_=I;I=(new d6c).setUrl(h);I.JSC$7951_obj_.where=W;I.JSC$7951_obj_.allowPost=C;I.JSC$7951_obj_.messageHandlers=B;C=_.ju("makeWhiteListIframesFilter",
g)([F.origin_]);I.JSC$7951_obj_.messageHandlersFilter=C;d!=null&&I.setId(d);V!=null&&(I.JSC$7951_obj_.rpctoken=V);C=hFM(I);C.JSC$7948_obj_.style={display:"block","min-width":"100%",width:"1px"};C.JSC$7948_obj_.height="100%";hFM(I).value().allow="camera 'src' "+F.origin_;g=g.getContext().openChild(I.value());t.call(M,g)},function(M){F.gapiIframesResolver_.reject(M);
F.gapiPickerIframeResolver_.reject(M)});
return F.gapiPickerIframeResolver_.promise},y8e=function(F,W){return _.X8([F.gapiIframesResolver_.promise,
F.gapiPickerIframeResolver_.promise]).then(function(E){var h=_.U(E);E=h.next().value;return(h=h.next().value)?h.send("picker-message-handler",W,void 0,_.ju("makeWhiteListIframesFilter",E)([F.origin_])):_.xT(Error("cb"))})};
C0o.prototype.disposeInternal=function(){jWX(this);_.xj.prototype.disposeInternal.call(this)};
var jWX=function(F){F.gapiPickerIframeResolver_.promise.then(function(W){W&&(W.unregister("host-message-handler"),delete F.hostMessageHandlerInternal_["host-message-handler"])})};var iWX=function(){this.nextId=0};var Toa=function(F,W){switch(F.action){case "select-contacts":F=r8T(F.contacts);break;case "visibility":F=F.visible;var E=new Us;F=_.rH(E,1,7).setVisible(F);E={};E["iframe-command"]=F.serialize();F=E;break;default:F=null}return F?y8e(W,F):_.e7()},r8T=function(F){if(!F||F.length==0)return null;
var W=new Us;_.rH(W,1,11);var E=new iWX;F.forEach(function(h){if(h.email){var d=new PY;d=_.NB(d,2,h.name?h.name:h.email);var V=new mFc;h=_.UFe(V,1,_.lK,h.email,_.yx);h=_.hy(d,27,h);d=h.setId;V=(new mZ).setId(":"+(E.nextId++).toString(36));V=_.rH(V,2,12);h=d.call(h,V)}else h=null;h&&vc(W,7,PY,h)});
F={};F["iframe-command"]=W.serialize();return F};_.oFO=function(){if($PI){var F=/Windows NT ([0-9.]+)/;return(F=F.exec(_.BG()))?F[1]:"0"}return _.qrY?(F=/1[0|1][_.][0-9_.]+/,(F=F.exec(_.BG()))?F[0].replace(/_/g,"."):"10"):hmY?(F=/Android\s+([^\);]+)(\)|;)/,(F=F.exec(_.BG()))?F[1]:""):X_Y||HwR||P9k?(F=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(F=F.exec(_.BG()))?F[1].replace(/_/g,"."):""):""}();var lx;lx=function(F){return(F=F.exec(_.BG()))?F[1]:""};
_.GkU=function(){if(_.IZ)return lx(/Firefox\/([0-9.]+)/);if(_.tf||wV||A2I)return nlS;if(_.cY){if(_.OY()||_.tkS()){var F=lx(/CriOS\/([0-9.]+)/);if(F)return F}return lx(/Chrome\/([0-9.]+)/)}if(_.OJ&&!_.OY())return lx(/Version\/([0-9.]+)/);if(xWw||kMr){if(F=/Version\/(\S+).*Mobile\/(\S+)/.exec(_.BG()))return F[1]+"."+F[2]}else if(TCI)return(F=lx(/Android\s+([0-9.]+)/))?F:lx(/Version\/([0-9.]+)/);return""}();var YGB=function(){};
_.RZ(YGB);YGB.prototype.nextId_=0;_.n3=function(F){return":"+(F.nextId_++).toString(36)};var yD=function(F){_.qo.call(this);this.JSC$8046_dom_=F||gn();this.JSC$8046_id_=null;this.inDocument_=!1;this.JSC$8046_element_=null;this.googUiComponentHandler_=void 0;this.childIndex_=this.children_=this.parent_=this.model_=null;this.wasDecorated_=!1};
_.Ma(yD,_.qo);yD.prototype.idGenerator_=YGB.getInstance();yD.prototype.getId=function(){return this.JSC$8046_id_||(this.JSC$8046_id_=_.n3(this.idGenerator_))};
yD.prototype.setId=function(F){this.parent_&&this.parent_.childIndex_&&(_.xd.remove(this.parent_.childIndex_,this.JSC$8046_id_),_.xd.add(this.parent_.childIndex_,F,this));this.JSC$8046_id_=F};
yD.prototype.getElement=function(){return this.JSC$8046_element_};
var jj=function(F){F.googUiComponentHandler_||(F.googUiComponentHandler_=new _.hR(F));return F.googUiComponentHandler_},wQc=function(F,W){if(F==W)throw Error("db");
var E;if(E=W&&F.parent_&&F.JSC$8046_id_){E=F.parent_;var h=F.JSC$8046_id_;E=E.childIndex_&&h?_.xd.get(E.childIndex_,h)||null:null}if(E&&F.parent_!=W)throw Error("db");F.parent_=W;yD.superClass_.setParentEventTarget.call(F,W)};
yD.prototype.setParentEventTarget=function(F){if(this.parent_&&this.parent_!=F)throw Error("eb");yD.superClass_.setParentEventTarget.call(this,F)};
yD.prototype.JSC$8048_createDom=function(){this.JSC$8046_element_=this.JSC$8046_dom_.createElement("DIV")};
yD.prototype.render=function(F){ukp(this,F)};
var ukp=function(F,W,E){if(F.inDocument_)throw Error("fb");F.JSC$8046_element_||F.JSC$8048_createDom();W?W.insertBefore(F.JSC$8046_element_,E||null):F.JSC$8046_dom_.JSC$7231_document_.body.appendChild(F.JSC$8046_element_);F.parent_&&!F.parent_.inDocument_||F.enterDocument()};
_.N=yD.prototype;_.N.decorate=function(F){if(this.inDocument_)throw Error("fb");if(F&&this.canDecorate(F)){this.wasDecorated_=!0;var W=_.qp(F);this.JSC$8046_dom_&&this.JSC$8046_dom_.JSC$7231_document_==W||(this.JSC$8046_dom_=gn(F));this.decorateInternal(F);this.enterDocument()}else throw Error("gb");};
_.N.canDecorate=function(){return!0};
_.N.decorateInternal=function(F){this.JSC$8046_element_=F};
_.N.enterDocument=function(){this.inDocument_=!0;SG_(this,function(F){!F.inDocument_&&F.getElement()&&F.enterDocument()})};
_.N.exitDocument=function(){SG_(this,function(F){F.inDocument_&&F.exitDocument()});
this.googUiComponentHandler_&&this.googUiComponentHandler_.removeAll();this.inDocument_=!1};
_.N.disposeInternal=function(){this.inDocument_&&this.exitDocument();this.googUiComponentHandler_&&(this.googUiComponentHandler_.dispose(),delete this.googUiComponentHandler_);SG_(this,function(F){F.dispose()});
!this.wasDecorated_&&this.JSC$8046_element_&&_.Bb(this.JSC$8046_element_);this.parent_=this.model_=this.JSC$8046_element_=this.childIndex_=this.children_=null;yD.superClass_.disposeInternal.call(this)};
_.N.getModel=function(){return this.model_};
_.N.addChild=function(F,W){var E=this.children_?this.children_.length:0;if(F.inDocument_&&(W||!this.inDocument_))throw Error("fb");if(E<0||E>(this.children_?this.children_.length:0))throw Error("hb");this.childIndex_&&this.children_||(this.childIndex_={},this.children_=[]);F.parent_==this?(_.xd.set(this.childIndex_,F.getId(),F),_.mY(this.children_,F)):_.xd.add(this.childIndex_,F.getId(),F);wQc(F,this);_.Dwk(this.children_,E,0,F);F.inDocument_&&this.inDocument_&&F.parent_==this?(W=this.getContentElement(),
(W.childNodes[E]||null)!=F.getElement()&&(F.getElement().parentElement==W&&W.removeChild(F.getElement()),E=W.childNodes[E]||null,W.insertBefore(F.getElement(),E))):W?(this.JSC$8046_element_||this.JSC$8048_createDom(),E=this.children_?this.children_[E+1]||null:null,ukp(F,this.getContentElement(),E?E.JSC$8046_element_:null)):this.inDocument_&&!F.inDocument_&&F.JSC$8046_element_&&F.JSC$8046_element_.parentNode&&F.JSC$8046_element_.parentNode.nodeType==1&&F.enterDocument()};
_.N.getContentElement=function(){return this.JSC$8046_element_};
var SG_=function(F,W){F.children_&&F.children_.forEach(W,void 0)};
yD.prototype.removeChild=function(F,W){if(F){var E=typeof F==="string"?F:F.getId();F=this.childIndex_&&E?_.xd.get(this.childIndex_,E)||null:null;E&&F&&(_.xd.remove(this.childIndex_,E),_.mY(this.children_,F),W&&(F.exitDocument(),F.JSC$8046_element_&&_.Bb(F.JSC$8046_element_)),wQc(F,null))}if(!F)throw Error("ib");return F};_.Ma(VuR,Non);_.Ma(UOr,Non);var pQM;var mOT=function(F,W){W?F.setAttribute("role",W):F.removeAttribute("role")},ix=function(F,W,E){Array.isArray(E)&&(E=E.join(" "));
var h="aria-"+W;E===""||E==void 0?(pQM||(E={},pQM=(E.atomic=!1,E.autocomplete="none",E.dropeffect="none",E.haspopup=!1,E.live="off",E.multiline=!1,E.multiselectable=!1,E.orientation="vertical",E.readonly=!1,E.relevant="additions text",E.required=!1,E.sort="none",E.busy=!1,E.disabled=!1,E.hidden=!1,E.invalid="false",E)),E=pQM,W in E?F.setAttribute(h,E[W]):F.removeAttribute(h)):F.setAttribute(h,E)};var K0c;_.rs=function(F,W,E){_.qo.call(this);this.target=F;this.handle=W||F;this.limits=E||new jP(NaN,NaN,NaN,NaN);this.JSC$8051_document_=_.qp(F);this.JSC$8051_eventHandler_=new _.hR(this);_.gl(this,this.JSC$8051_eventHandler_);this.deltaY=this.deltaX=this.startY=this.startX=this.screenY=this.screenX=this.clientY=this.clientX=0;this.enabled_=!0;this.dragging_=!1;this.hysteresisDistanceSquared_=0;_.ce(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.useSetCapture_=K0c};
_.Ma(_.rs,_.qo);K0c=_.EY.document&&_.EY.document.documentElement&&!!_.EY.document.documentElement.setCapture&&!!_.EY.document.releaseCapture;_.Fe_=function(F,W){F.hysteresisDistanceSquared_=Math.pow(W,2)};
_.N=_.rs.prototype;_.N.setEnabled=function(F){this.enabled_=F};
_.N.disposeInternal=function(){_.rs.superClass_.disposeInternal.call(this);_.LP(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.JSC$8051_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$8051_document_.releaseCapture();this.handle=this.target=null};
_.N.startDrag=function(F){var W=F.type=="mousedown";if(!this.enabled_||this.dragging_||W&&(F.event_.button!=0||_.qrY&&F.ctrlKey))this.dispatchEvent("earlycancel");else{if(this.hysteresisDistanceSquared_==0)if(this.dispatchEvent(new TU("start",this,F.clientX,F.clientY,F)))this.dragging_=!0,W&&F.preventDefault();else return;else W&&F.preventDefault();W=this.JSC$8051_document_;var E=W.documentElement,h=!this.useSetCapture_;this.JSC$8051_eventHandler_.listen(W,["touchmove","mousemove"],this.handleMove_,
{capture:h,passive:!1});this.JSC$8051_eventHandler_.listen(W,["touchend","mouseup"],this.endDrag,h);this.useSetCapture_?(E.setCapture(!1),this.JSC$8051_eventHandler_.listen(E,"losecapture",this.endDrag)):this.JSC$8051_eventHandler_.listen(LC(W),"blur",this.endDrag);this.scrollTarget_&&this.JSC$8051_eventHandler_.listen(this.scrollTarget_,"scroll",this.onScroll_,h);this.clientX=this.startX=F.clientX;this.clientY=this.startY=F.clientY;this.screenX=F.screenX;this.screenY=F.screenY;this.deltaX=this.target.offsetLeft;
this.deltaY=this.target.offsetTop;this.pageScroll=Mp(gn(this.JSC$8051_document_))}};
_.N.endDrag=function(F,W){this.JSC$8051_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$8051_document_.releaseCapture();this.dragging_?(this.dragging_=!1,this.dispatchEvent(new TU("end",this,F.clientX,F.clientY,F,We_(this,this.deltaX),EC_(this,this.deltaY),W||F.type=="touchcancel"))):this.dispatchEvent("earlycancel")};
_.N.handleMove_=function(F){if(this.enabled_){var W=F.clientX-this.clientX,E=F.clientY-this.clientY;this.clientX=F.clientX;this.clientY=F.clientY;this.screenX=F.screenX;this.screenY=F.screenY;if(!this.dragging_){var h=this.startX-this.clientX,d=this.startY-this.clientY;if(h*h+d*d>this.hysteresisDistanceSquared_)if(this.dispatchEvent(new TU("start",this,F.clientX,F.clientY,F)))this.dragging_=!0;else{this.isDisposed()||this.endDrag(F);return}}E=hxe(this,W,E);W=E.x;E=E.y;this.dragging_&&this.dispatchEvent(new TU("beforedrag",
this,F.clientX,F.clientY,F,W,E))&&(d0z(this,F,W,E),F.preventDefault())}};
var hxe=function(F,W,E){var h=Mp(gn(F.JSC$8051_document_));W+=h.x-F.pageScroll.x;E+=h.y-F.pageScroll.y;F.pageScroll=h;F.deltaX+=W;F.deltaY+=E;return new _.sp(We_(F,F.deltaX),EC_(F,F.deltaY))};
_.rs.prototype.onScroll_=function(F){var W=hxe(this,0,0);F.clientX=this.clientX;F.clientY=this.clientY;d0z(this,F,W.x,W.y)};
var d0z=function(F,W,E,h){F.target.style.left=E+"px";F.target.style.top=h+"px";F.dispatchEvent(new TU("drag",F,W.clientX,W.clientY,W,E,h))},We_=function(F,W){var E=F.limits;
F=isNaN(E.left)?null:E.left;E=isNaN(E.width)?0:E.width;return Math.min(F!=null?F+E:Infinity,Math.max(F!=null?F:-Infinity,W))},EC_=function(F,W){var E=F.limits;
F=isNaN(E.top)?null:E.top;E=isNaN(E.height)?0:E.height;return Math.min(F!=null?F+E:Infinity,Math.max(F!=null?F:-Infinity,W))};
_.rs.prototype.isDragging=function(){return this.dragging_};
var TU=function(F,W,E,h,d,V,R){_.xU.call(this,F);this.clientX=E;this.clientY=h;this.browserEvent=d;this.left=V!==void 0?V:W.deltaX;this.top=R!==void 0?R:W.deltaY};
_.Ma(TU,_.xU);var os=function(F){this.JSC$8058_map_=new Map;var W=arguments.length;if(W>1){if(W%2)throw Error("oa");for(var E=0;E<W;E+=2)this.set(arguments[E],arguments[E+1])}else F&&this.addAll(F)};
_.N=os.prototype;_.N.getCount=function(){return this.JSC$8058_map_.size};
_.N.getValues=function(){return Array.from(this.JSC$8058_map_.values())};
_.N.getKeys=function(){return Array.from(this.JSC$8058_map_.keys())};
_.N.containsKey=function(F){return this.JSC$8058_map_.has(F)};
_.N.containsValue=function(F){return this.getValues().some(function(W){return W==F})};
_.N.equals=function(F,W){var E=this;W=W===void 0?function(h,d){return h===d}:W;
return this===F?!0:this.JSC$8058_map_.size!=F.getCount()?!1:this.getKeys().every(function(h){return W(E.JSC$8058_map_.get(h),F.get(h))})};
_.N.isEmpty=function(){return this.JSC$8058_map_.size==0};
_.N.clear=function(){this.JSC$8058_map_.clear()};
_.N.remove=function(F){return this.JSC$8058_map_.delete(F)};
_.N.get=function(F,W){return this.JSC$8058_map_.has(F)?this.JSC$8058_map_.get(F):W};
_.N.set=function(F,W){this.JSC$8058_map_.set(F,W);return this};
_.N.addAll=function(F){if(F instanceof os){F=_.U(F.JSC$8058_map_);for(var W=F.next();!W.done;W=F.next()){var E=_.U(W.value);W=E.next().value;E=E.next().value;this.JSC$8058_map_.set(W,E)}}else if(F)for(F=_.U(Object.entries(F)),W=F.next();!W.done;W=F.next())E=_.U(W.value),W=E.next().value,E=E.next().value,this.JSC$8058_map_.set(W,E)};
_.N.forEach=function(F,W){var E=this;W=W===void 0?this:W;this.JSC$8058_map_.forEach(function(h,d){return F.call(W,h,d,E)})};
_.N.clone=function(){return new os(this)};(function(){for(var F=["ms","moz","webkit","o"],W,E=0;W=F[E]&&!_.EY.requestAnimationFrame;++E)_.EY.requestAnimationFrame=_.EY[W+"RequestAnimationFrame"],_.EY.cancelAnimationFrame=_.EY[W+"CancelAnimationFrame"]||_.EY[W+"CancelRequestAnimationFrame"];if(!_.EY.requestAnimationFrame){var h=0;_.EY.requestAnimationFrame=function(d){var V=(new Date).getTime(),R=Math.max(0,16-(V-h));h=V+R;return _.EY.setTimeout(function(){d(V+R)},R)};
_.EY.cancelAnimationFrame||(_.EY.cancelAnimationFrame=function(d){clearTimeout(d)})}})();
var NV_=[[],[]],V5p=0,U0O=!1,RxM=0,M5U=function(F,W){var E=RxM++,h={measureTask:{id:E,fn:F.measure,context:W},mutateTask:{id:E,fn:F.mutate,context:W},state:{},args:void 0,isScheduled:!1};return function(){arguments.length>0?(h.args||(h.args=[]),h.args.length=0,h.args.push.apply(h.args,arguments),h.args.push(h.state)):h.args&&h.args.length!=0?(h.args[0]=h.state,h.args.length=1):h.args=[h.state];h.isScheduled||(h.isScheduled=!0,NV_[V5p].push(h));U0O||(U0O=!0,window.requestAnimationFrame(ex_))}},ex_=
function(){U0O=!1;
var F=NV_[V5p],W=F.length;V5p=(V5p+1)%2;for(var E,h=0;h<W;++h){E=F[h];var d=E.measureTask;E.isScheduled=!1;d.fn&&d.fn.apply(d.context,E.args)}for(h=0;h<W;++h)E=F[h],d=E.mutateTask,E.isScheduled=!1,d.fn&&d.fn.apply(d.context,E.args),E.state={};F.length=0};var gCa=_.Fc(["about:blank"]),QAH=_.Fc(["javascript:undefined"]),zxX=_.mv(gCa);_.e9(zxX);var t5U=_.mv(QAH);_.e9(t5U);var GU=function(F){_.qo.call(this);this.JSC$8064_element_=F;this.listenKeyIn_=_.ce(this.JSC$8064_element_,"focus",this,!0);this.listenKeyOut_=_.ce(this.JSC$8064_element_,"blur",this,!0)};
_.Ma(GU,_.qo);GU.prototype.handleEvent=function(F){var W=new _.kU(F.event_);W.type=F.type=="focusin"||F.type=="focus"?"focusin":"focusout";this.dispatchEvent(W)};
GU.prototype.disposeInternal=function(){GU.superClass_.disposeInternal.call(this);Be(this.listenKeyIn_);Be(this.listenKeyOut_);delete this.JSC$8064_element_};var CdM=function(F,W){this.JSC$8067_element_=F;this.JSC$8067_dom_=W};var YA=function(F,W){yD.call(this,W);this.useIframeMask_=!!F;this.lastFocus_=null;this.resizeBackgroundTask_=M5U({mutate:this.resizeBackground_},this);M5U({mutate:this.updateModalAndBackground_},this)};
_.Ma(YA,yD);_.N=YA.prototype;_.N.focusHandler_=null;_.N.visible_=!1;_.N.bgEl_=null;_.N.bgIframeEl_=null;_.N.tabCatcherElement_=null;_.N.backwardTabWrapInProgress_=!1;_.N.getCssClass=function(){return"goog-modalpopup"};
_.N.getBackgroundElement=function(){return this.bgEl_};
_.N.JSC$8048_createDom=function(){YA.superClass_.JSC$8048_createDom.call(this);var F=this.getElement(),W=tr(this.getCssClass()).split(" ");wv(F,W);F.tabIndex=0;_.rl(F,!1);BVH(this);vCX(this)};
var BVH=function(F){if(F.useIframeMask_&&!F.bgIframeEl_){var W=F.JSC$8046_dom_.JSC$7233_createDom("IFRAME",{frameborder:0,style:"border:0;vertical-align:bottom;"});_.Hp(W,zxX);F.bgIframeEl_=W;F.bgIframeEl_.className=F.getCssClass()+"-bg";_.rl(F.bgIframeEl_,!1);Bwi(F.bgIframeEl_,0)}F.bgEl_||(F.bgEl_=F.JSC$8046_dom_.JSC$7233_createDom("DIV",F.getCssClass()+"-bg"),_.rl(F.bgEl_,!1))},vCX=function(F){F.tabCatcherElement_||(F.tabCatcherElement_=F.JSC$8046_dom_.createElement("SPAN"),_.rl(F.tabCatcherElement_,
!1),F.tabCatcherElement_.tabIndex=0,F.tabCatcherElement_.style.position="absolute")};
_.N=YA.prototype;_.N.resetBackwardTabWrap_=function(){this.backwardTabWrapInProgress_=!1};
_.N.canDecorate=function(F){return!!F&&F.tagName=="DIV"};
_.N.decorateInternal=function(F){YA.superClass_.decorateInternal.call(this,F);F=tr(this.getCssClass()).split(" ");wv(this.getElement(),F);BVH(this);vCX(this);this.getElement().tabIndex=0;_.rl(this.getElement(),!1)};
_.N.enterDocument=function(){this.bgIframeEl_&&_.bk(this.bgIframeEl_,this.getElement());_.bk(this.bgEl_,this.getElement());YA.superClass_.enterDocument.call(this);_.lk(this.tabCatcherElement_,this.getElement());this.focusHandler_=new GU(this.JSC$8046_dom_.JSC$7231_document_);jj(this).listen(this.focusHandler_,"focusin",this.onFocus);IJH(this,!1)};
_.N.exitDocument=function(){this.isVisible()&&this.setVisible(!1);_.u5(this.focusHandler_);YA.superClass_.exitDocument.call(this);_.Bb(this.bgIframeEl_);_.Bb(this.bgEl_);_.Bb(this.tabCatcherElement_)};
_.N.setVisible=function(F){if(F!=this.visible_)if(this.popupShowTransition_&&this.popupShowTransition_.stop(),this.bgShowTransition_&&this.bgShowTransition_.stop(),this.popupHideTransition_&&this.popupHideTransition_.stop(),this.bgHideTransition_&&this.bgHideTransition_.stop(),this.inDocument_&&IJH(this,F),F){if(this.dispatchEvent("beforeshow")){try{this.lastFocus_=this.JSC$8046_dom_.JSC$7231_document_.activeElement}catch(d){}this.updateModalAndBackground_();jj(this).listen(this.JSC$8046_dom_.getWindow(),
"resize",this.resizeBackground_).listen(this.JSC$8046_dom_.getWindow(),"orientationchange",this.resizeBackgroundTask_);ccO(this,!0);this.focus();this.visible_=!0;if(this.popupShowTransition_&&this.bgShowTransition_)CK(this.popupShowTransition_,"end",this.onShow,!1,this),this.bgShowTransition_.play(),this.popupShowTransition_.play();else this.onShow()}}else if(this.dispatchEvent("beforehide")){jj(this).unlisten(this.JSC$8046_dom_.getWindow(),"resize",this.resizeBackground_).unlisten(this.JSC$8046_dom_.getWindow(),
"orientationchange",this.resizeBackgroundTask_);this.visible_=!1;if(this.popupHideTransition_&&this.bgHideTransition_)CK(this.popupHideTransition_,"end",this.onHide,!1,this),this.bgHideTransition_.play(),this.popupHideTransition_.play();else this.onHide();a:{try{var W=this.JSC$8046_dom_,E=W.JSC$7231_document_.body,h=W.JSC$7231_document_.activeElement||E;if(!this.lastFocus_||this.lastFocus_==E){this.lastFocus_=null;break a}(h==E||W.contains(this.getElement(),h))&&this.lastFocus_.focus()}catch(d){}this.lastFocus_=
null}}};
var IJH=function(F,W){F.modalAriaVisibilityHelper_||(F.modalAriaVisibilityHelper_=new CdM(F.JSC$8046_element_,F.JSC$8046_dom_));F=F.modalAriaVisibilityHelper_;if(W){F.hiddenElements_||(F.hiddenElements_=[]);W=F.JSC$8067_dom_.getChildren(F.JSC$8067_dom_.JSC$7231_document_.body);for(var E=0;E<W.length;E++){var h=W[E],d;if(d=h!=F.JSC$8067_element_)d=h.getAttribute("aria-hidden"),d=!(d==null||d==void 0?0:String(d));d&&(ix(h,"hidden",!0),F.hiddenElements_.push(h))}}else if(F.hiddenElements_){for(W=0;W<
F.hiddenElements_.length;W++)F.hiddenElements_[W].removeAttribute("aria-hidden");F.hiddenElements_=null}};
YA.prototype.updateModalAndBackground_=function(){this.resizeBackground_();this.reposition()};
var ccO=function(F,W){F.bgIframeEl_&&_.rl(F.bgIframeEl_,W);F.bgEl_&&_.rl(F.bgEl_,W);_.rl(F.getElement(),W);_.rl(F.tabCatcherElement_,W)};
_.N=YA.prototype;_.N.onShow=function(){this.dispatchEvent("show")};
_.N.onHide=function(){ccO(this,!1);this.dispatchEvent("hide")};
_.N.isVisible=function(){return this.visible_};
_.N.focus=function(){this.focusElement_()};
_.N.resizeBackground_=function(){this.bgIframeEl_&&_.rl(this.bgIframeEl_,!1);this.bgEl_&&_.rl(this.bgEl_,!1);var F=this.JSC$8046_dom_.JSC$7231_document_;var W=_.eU(LC(this.JSC$8046_dom_.JSC$7231_document_)||window);var E=Math.max(W.width,Math.max(F.body.scrollWidth,F.documentElement.scrollWidth));F=Math.max(W.height,Math.max(F.body.scrollHeight,F.documentElement.scrollHeight));this.bgIframeEl_&&(_.rl(this.bgIframeEl_,!0),_.QO_(this.bgIframeEl_,E,F));this.bgEl_&&(_.rl(this.bgEl_,!0),_.QO_(this.bgEl_,
E,F))};
_.N.reposition=function(){var F;if(_.gKT(this.getElement())=="fixed")var W=F=0;else W=Mp(this.JSC$8046_dom_),F=W.x,W=W.y;var E=t$z(this.getElement());var h=_.eU(LC(this.JSC$8046_dom_.JSC$7231_document_)||window);F=Math.max(F+h.width/2-E.width/2,0);W=Math.max(W+h.height/2-E.height/2,0);TH(this.getElement(),F,W);TH(this.tabCatcherElement_,F,W)};
_.N.onFocus=function(F){this.backwardTabWrapInProgress_?this.resetBackwardTabWrap_():F.target==this.tabCatcherElement_&&PI(this.focusElement_,0,this)};
_.N.focusElement_=function(){try{this.getElement().focus()}catch(F){}};
_.N.disposeInternal=function(){_.u5(this.popupShowTransition_);this.popupShowTransition_=null;_.u5(this.popupHideTransition_);this.popupHideTransition_=null;_.u5(this.bgShowTransition_);this.bgShowTransition_=null;_.u5(this.bgHideTransition_);this.bgHideTransition_=null;YA.superClass_.disposeInternal.call(this)};var Jv=function(F,W,E){YA.call(this,W,E);this.JSC$8077_class_=F||"modal-dialog";this.buttons_=(new ws).addButton(D0c,!0).addButton(x0i,!1,!0)};
_.Ma(Jv,YA);_.N=Jv.prototype;_.N.escapeToCancel_=!0;_.N.hasTitleCloseButton_=!0;_.N.modal_=!0;_.N.draggable_=!0;_.N.backgroundElementOpacity_=.5;_.N.title_="";_.N.JSC$8079_dragger_=null;_.N.JSC$8079_disposeOnHide_=!1;_.N.titleEl_=null;_.N.titleTextEl_=null;_.N.titleTextId_=null;_.N.titleCloseEl_=null;_.N.contentEl_=null;_.N.buttonEl_=null;_.N.getCssClass=function(){return this.JSC$8077_class_};
_.N.setTitle=function(F){this.title_=F;this.titleTextEl_&&_.yB(this.titleTextEl_,F)};
_.N.getTitle=function(){return this.title_};
_.N.getContent=function(){return""};
_.N.getContentElement=function(){this.getElement()||this.render();return this.contentEl_};
var kC_=function(F){F.getElement()||F.render();return F.getElement()};
Jv.prototype.getBackgroundElement=function(){this.getElement()||this.render();return Jv.superClass_.getBackgroundElement.call(this)};
var AcO=function(F,W){F.backgroundElementOpacity_=W;F.getElement()&&(W=F.getBackgroundElement())&&Bwi(W,F.backgroundElementOpacity_)};
Jv.prototype.setDraggable=function(F){this.draggable_=F;sA_(this,F&&this.inDocument_)};
Jv.prototype.JSC$8079_handleDrag=function(){};
var sA_=function(F,W){var E=tr(F.JSC$8077_class_+"-title-draggable").split(" ");F.getElement()&&(W?wv(F.titleEl_,E):WjO(F.titleEl_,E));W&&!F.JSC$8079_dragger_?(W=new _.rs(F.getElement(),F.titleEl_),F.JSC$8079_dragger_=W,wv(F.titleEl_,E),_.ce(F.JSC$8079_dragger_,"start",F.setDraggerLimits_,!1,F),_.ce(F.JSC$8079_dragger_,"drag",F.JSC$8079_handleDrag,!1,F)):!W&&F.JSC$8079_dragger_&&(F.JSC$8079_dragger_.dispose(),F.JSC$8079_dragger_=null)};
_.N=Jv.prototype;
_.N.JSC$8048_createDom=function(){Jv.superClass_.JSC$8048_createDom.call(this);var F=this.getElement(),W=this.JSC$8046_dom_;this.titleTextId_=this.getId();var E=this.getId()+".contentEl";this.titleEl_=W.JSC$7233_createDom("DIV",this.JSC$8077_class_+"-title",this.titleTextEl_=W.JSC$7233_createDom("SPAN",{className:this.JSC$8077_class_+"-title-text",id:this.titleTextId_},this.title_),this.titleCloseEl_=W.JSC$7233_createDom("SPAN",this.JSC$8077_class_+"-title-close"));Gzp(F,this.titleEl_,this.contentEl_=
W.JSC$7233_createDom("DIV",{className:this.JSC$8077_class_+"-content",id:E}),this.buttonEl_=W.JSC$7233_createDom("DIV",this.JSC$8077_class_+"-buttons"));mOT(this.titleTextEl_,"heading");mOT(this.titleCloseEl_,"button");this.titleCloseEl_.tabIndex=0;ix(this.titleCloseEl_,"label","Close");mOT(F,"dialog");ix(F,"labelledby",this.titleTextId_||"");_.rl(this.titleCloseEl_,this.hasTitleCloseButton_);this.buttons_&&(F=this.buttons_,F.JSC$8080_element_=this.buttonEl_,F.render());_.rl(this.buttonEl_,!!this.buttons_);
AcO(this,this.backgroundElementOpacity_)};
_.N.decorateInternal=function(F){Jv.superClass_.decorateInternal.call(this,F);F=this.getElement();var W=this.JSC$8077_class_+"-content";this.contentEl_=HK(document,null,W,F)[0];this.contentEl_||(this.contentEl_=this.JSC$8046_dom_.JSC$7233_createDom("DIV",W),F.appendChild(this.contentEl_));W=this.JSC$8077_class_+"-title";var E=this.JSC$8077_class_+"-title-text",h=this.JSC$8077_class_+"-title-close";(this.titleEl_=HK(document,null,W,F)[0])?(this.titleTextEl_=HK(document,null,E,this.titleEl_)[0],this.titleCloseEl_=
HK(document,null,h,this.titleEl_)[0]):(this.titleEl_=this.JSC$8046_dom_.JSC$7233_createDom("DIV",W),F.insertBefore(this.titleEl_,this.contentEl_));this.titleTextEl_?(this.title_=V$M(this.titleTextEl_),this.titleTextEl_.id||(this.titleTextEl_.id=this.getId())):(this.titleTextEl_=_.Jk("SPAN",{className:E,id:this.getId()}),this.titleEl_.appendChild(this.titleTextEl_));this.titleTextId_=this.titleTextEl_.id;ix(F,"labelledby",this.titleTextId_||"");this.titleCloseEl_||(this.titleCloseEl_=this.JSC$8046_dom_.JSC$7233_createDom("SPAN",
h),this.titleEl_.appendChild(this.titleCloseEl_));_.rl(this.titleCloseEl_,this.hasTitleCloseButton_);W=this.JSC$8077_class_+"-buttons";(this.buttonEl_=HK(document,null,W,F)[0])?(this.buttons_=new ws(this.JSC$8046_dom_),this.buttons_.decorate(this.buttonEl_)):(this.buttonEl_=this.JSC$8046_dom_.JSC$7233_createDom("DIV",W),F.appendChild(this.buttonEl_),this.buttons_&&(F=this.buttons_,F.JSC$8080_element_=this.buttonEl_,F.render()),_.rl(this.buttonEl_,!!this.buttons_));AcO(this,this.backgroundElementOpacity_)};
_.N.enterDocument=function(){Jv.superClass_.enterDocument.call(this);jj(this).listen(this.getElement(),"keydown",this.onKey_).listen(this.getElement(),"keypress",this.onKey_);jj(this).listen(this.buttonEl_,"click",this.onButtonClick_);sA_(this,this.draggable_);jj(this).listen(this.titleCloseEl_,"click",this.onTitleCloseClick_);var F=this.getElement();mOT(F,"dialog");this.titleTextEl_.id!==""&&ix(F,"labelledby",this.titleTextEl_.id);if(!this.modal_){this.modal_=!1;if(this.inDocument_){F=this.JSC$8046_dom_;
var W=this.getBackgroundElement();F.removeNode(this.bgIframeEl_);F.removeNode(W)}this.isVisible()&&IJH(this,!1)}};
_.N.exitDocument=function(){this.isVisible()&&this.setVisible(!1);sA_(this,!1);Jv.superClass_.exitDocument.call(this)};
_.N.setVisible=function(F){F!=this.isVisible()&&(this.inDocument_||this.render(),Jv.superClass_.setVisible.call(this,F))};
_.N.onShow=function(){Jv.superClass_.onShow.call(this);this.dispatchEvent("aftershow")};
_.N.onHide=function(){Jv.superClass_.onHide.call(this);this.dispatchEvent("afterhide");this.JSC$8079_disposeOnHide_&&this.dispose()};
_.N.setDraggerLimits_=function(){var F=this.JSC$8046_dom_.JSC$7231_document_,W=_.eU(LC(F)||window),E=Math.max(F.body.scrollWidth,W.width);F=Math.max(F.body.scrollHeight,W.height);var h=t$z(this.getElement());_.gKT(this.getElement())=="fixed"?this.JSC$8079_dragger_.limits=new jP(0,0,Math.max(0,W.width-h.width),Math.max(0,W.height-h.height)):this.JSC$8079_dragger_.limits=new jP(0,0,E-h.width,F-h.height)};
_.N.onTitleCloseClick_=function(){LeH(this)};
var LeH=function(F){if(F.hasTitleCloseButton_){var W=F.buttons_,E=W&&W.cancelButton_;E?(W=W.get(E),F.dispatchEvent(new ux(E,W))&&F.setVisible(!1)):F.setVisible(!1)}},qJB=function(F){F.hasTitleCloseButton_=!1;
F.titleCloseEl_&&_.rl(F.titleCloseEl_,F.hasTitleCloseButton_)};
Jv.prototype.disposeInternal=function(){this.buttonEl_=this.titleCloseEl_=null;Jv.superClass_.disposeInternal.call(this)};
Jv.prototype.onButtonClick_=function(F){a:{for(F=F.target;F!=null&&F!=this.buttonEl_;){if(F.tagName=="BUTTON")break a;F=F.parentNode}F=null}if(F&&!F.disabled){F=F.name;var W=this.buttons_.get(F);this.dispatchEvent(new ux(F,W))&&this.setVisible(!1)}};
Jv.prototype.onKey_=function(F){var W=!1,E=!1,h=this.buttons_,d=F.target;if(F.type=="keydown")if(this.escapeToCancel_&&F.keyCode==27){var V=h&&h.cancelButton_;d=d.tagName=="SELECT"&&!d.disabled;V&&!d?(E=!0,W=h.get(V),W=this.dispatchEvent(new ux(V,W))):d||(W=!0)}else{if(F.keyCode==9&&F.shiftKey&&d==this.getElement()){this.backwardTabWrapInProgress_=!0;try{this.tabCatcherElement_.focus()}catch(C){}PI(this.resetBackwardTabWrap_,0,this)}}else if(F.keyCode==13){if(d.tagName=="BUTTON"&&!d.disabled)V=d.name;
else if(d==this.titleCloseEl_)LeH(this);else if(h){var R=h.defaultButton_,M;if(M=R)a:{M=vb("BUTTON",h.JSC$8080_element_);for(var g,t=0;g=M[t];t++)if(g.name==R||g.id==R){M=g;break a}M=null}d=(d.tagName=="TEXTAREA"||d.tagName=="SELECT"||d.tagName=="A")&&!d.disabled;!M||M.disabled||d||(V=R)}V&&h&&(E=!0,W=this.dispatchEvent(new ux(V,String(h.get(V)))))}else d!=this.titleCloseEl_||F.keyCode!=32&&F.key!=" "||LeH(this);if(W||E)F.stopPropagation(),F.preventDefault();W&&this.setVisible(!1)};
var ux=function(F,W){this.type="dialogselect";this.key=F;this.caption=W};
_.Ma(ux,_.xU);var ws=function(F){os.call(this);F||gn();this.cancelButton_=this.JSC$8080_element_=this.defaultButton_=null};
_.Ma(ws,os);_.N=ws.prototype;_.N.clear=function(){os.prototype.clear.call(this);this.defaultButton_=this.cancelButton_=null};
_.N.set=function(F,W,E,h){os.prototype.set.call(this,F,W);E&&(this.defaultButton_=F);h&&(this.cancelButton_=F);return this};
_.N.addButton=function(F,W,E){return this.set(F.key,F.caption,W,E)};
_.N.render=function(){if(this.JSC$8080_element_){_.yK(this.JSC$8080_element_,c8Y);var F=gn(this.JSC$8080_element_);this.forEach(function(W,E){W=F.JSC$7233_createDom("BUTTON",{name:E},W);E==this.defaultButton_&&(W.className="goog-buttonset-default");this.JSC$8080_element_.appendChild(W)},this)}};
_.N.decorate=function(F){if(F&&F.nodeType==1){this.JSC$8080_element_=F;F=vb("BUTTON",this.JSC$8080_element_);for(var W,E,h,d=0;W=F[d];d++)if(E=W.name||W.id,h=V$M(W)||W.value,E){var V=d==0;this.set(E,h,V,W.name=="cancel");V&&_.ou(W,"goog-buttonset-default")}}};
_.N.getElement=function(){return this.JSC$8080_element_};
var D0c={key:"ok",caption:"OK"},x0i={key:"cancel",caption:"Cancel"},$0z={key:"yes",caption:"Yes"},ZUc={key:"no",caption:"No"},XZ_={key:"save",caption:"Save"},HUa={key:"continue",caption:"Continue"};typeof document!="undefined"&&((new ws).addButton(D0c,!0,!0),(new ws).addButton(D0c,!0).addButton(x0i,!1,!0),(new ws).addButton($0z,!0).addButton(ZUc,!1,!0),(new ws).addButton($0z).addButton(ZUc,!0).addButton(x0i,!1,!0),(new ws).addButton(HUa).addButton(XZ_).addButton(x0i,!0,!0));_.Ma(RaY,Jv);_.Ma(eak,aT);var PdO=_.Fc(["//www-onepick-opensocial.googleusercontent.com/gadgets/js/rpc.js?c=1&container=onepick"]),Jcz=_.Fc(["//apis.google.com/js/rpc.js"]),I4Y=_.mv(PdO),vFr=_.mv(Jcz),gFS=null;var fr=function(F,W){_.qo.call(this);this.JSC$8089_element_=F;F=_.pM(this.JSC$8089_element_)?this.JSC$8089_element_:this.JSC$8089_element_?this.JSC$8089_element_.body:null;this.isRtl_=!!F&&_.vKz(F);this.listenKey_=_.ce(this.JSC$8089_element_,_.Cc?"DOMMouseScroll":"mousewheel",this,W)};
_.Ma(fr,_.qo);fr.prototype.handleEvent=function(F){var W=0,E=0,h=F.event_;h.type=="mousewheel"?(F=aJe(-h.wheelDelta),h.wheelDeltaX!==void 0?(W=aJe(-h.wheelDeltaX),E=aJe(-h.wheelDeltaY)):E=F):(F=h.detail,F>100?F=3:F<-100&&(F=-3),h.axis!==void 0&&h.axis===h.HORIZONTAL_AXIS?W=F:E=F);typeof this.maxDeltaX_==="number"&&(W=_.jX(W,-this.maxDeltaX_,this.maxDeltaX_));typeof this.maxDeltaY_==="number"&&(E=_.jX(E,-this.maxDeltaY_,this.maxDeltaY_));this.isRtl_&&(W=-W);W=new fJH(F,h,W,E);this.dispatchEvent(W)};
var aJe=function(F){return _.BY&&(_.qrY||ZwR)&&F%40!=0?F:F/40};
fr.prototype.disposeInternal=function(){fr.superClass_.disposeInternal.call(this);Be(this.listenKey_);this.listenKey_=null};
var fJH=function(F,W,E,h){_.kU.call(this,W);this.type="mousewheel";this.detail=F;this.deltaX=E;this.deltaY=h};
_.Ma(fJH,_.kU);_.zF=function(F){var W="instance_";if(F.instance_&&F.hasOwnProperty(W))return F.instance_;W=new F;return F.instance_=W};var Bob;var OUp=_.Fc(["https://about:blank"]),bUH=_.Fc(['javascript:""']),lJB=_.Fc(["about:blank"]);_.Ma(T3,RaY);_.N=T3.prototype;_.N.JSC$8097_url_="";_.N.JSC$8097_iframe_=null;_.N.iframeLoaded_=!1;_.N.loadedFired_=!1;_.N.callback_=function(){};
_.N.enterDocument=function(){T3.superClass_.enterDocument.call(this);tuS(this.getBackgroundElement(),jj(this))};
_.N.render=function(F){var W=this;T3.superClass_.render.call(this,F);this.useGapi_?l4M(this.iframeManager_,window).then(function(){return nCe(W)}).then(null,function(){W.callback_({action:"error"})}):ycB(this)};
var nCe=function(F){var W=F.JSC$8046_dom_.JSC$7233_createDom("div",["picker-dialog-content","picker-frame"]);_.rl(W,!1);F.getContentElement().appendChild(W);return nFX(F.iframeManager_,W,function(E){var h=QK_(E["iframe-command"]);switch(h.getCommand()){case 1:E=F.callback_;h=_.Em(h,Vv,2);var d="";switch(h.getStatus()){case 2:d="cancel";break;case 1:d="picked";break;case 3:d="error"}var V=_.KC(h,PY,2,_.Fg(KLG));h=V.length===0?{action:d}:c8X(V,d,_.Em(h,eWe,7));E.call(F,h);F.setVisible(!1);break;case 4:qJB(F);
F.callback_({action:"loaded"});break;case 7:case 8:E=F.callback_;a:{d=h.getCommand();V=_.Em(h,Vv,2);switch(d){case 7:d="uploadScheduled";break;case 8:d="uploadStateChange";break;default:h={};break a}h=_.KC(V,PY,2,_.Fg(KLG));if(h.length===0)h={action:d};else{var R=_.Em(V,eWe,7);V=R&&_.bj(R,1);R=RaX(R);h=gF_(h,d,V,R)}}E.call(F,h)}},F.JSC$8097_url_,F.targetId_,F.rpcToken_).then(function(E){F.JSC$8097_iframe_=E.getIframeEl();
jAX(F);_.rl(F.JSC$8097_iframe_.parentElement,!0);_.ou(F.getElement(),"picker-dialog");iUT(F);return E})},ycB=function(F){F.JSC$8097_iframe_=F.JSC$8046_dom_.JSC$7233_createDom("IFRAME",{id:F.targetId_,
name:F.targetId_,"class":"picker-frame",frameBorder:"0",allow:"camera"});_.Hp(F.JSC$8097_iframe_,rcB(F));_.ou(F.getElement(),"picker-dialog");F.getContentElement().appendChild(F.JSC$8097_iframe_);jj(F).listen(F.JSC$8097_iframe_,"load",function(){return void jAX(F)});
F.JSC$8097_iframe_.src=F.JSC$8097_url_;iUT(F)},oCB=function(F){TVp(F,(0,_.kj)(function(W){W.setAuthToken(this.targetId_,this.rpcToken_)},F))},iUT=function(F){var W=_.jS(_.y$(F.JSC$8097_url_),"title");
W&&F.setTitle(W)},rcB=function(F){return _.gWb("Internet Explorer")>=7&&_.Vo(F.JSC$8097_url_,"https")?_.mv(OUp):_.tf?_.mv(bUH):_.mv(lJB)},jAX=function(F){oCB(F);
F.iframeLoaded_=!0;F.JSC$8097_iframe_.tabIndex=0;F.isVisible()&&F.focus()};
T3.prototype.handleKeydown_=function(F){F.keyCode==27&&(this.setVisible(!1),this.callback_({action:"cancel"}),F.stopPropagation(),F.preventDefault())};
var TVp=function(F,W){var E=F.JSC$8095_gadgetsDomHelper_;QWr(function(){W(E.getWindow().gadgets.rpc)},E)};
T3.prototype.setUrl=function(F){F=_.ig(new _.Yx(F),"rpcService",this.targetId_);_.ig(F,"rpctoken",this.rpcToken_);_.Rs(F,"rpctoken="+this.rpcToken_);_.hJ(F,"https");this.JSC$8097_url_=F.toString();this.JSC$8097_iframe_&&(this.JSC$8097_iframe_.src=this.JSC$8097_url_)};
var GCB=function(F,W){F.callback_=W;TVp(F,(0,_.kj)(function(E){E.register(this.targetId_,(0,_.kj)(this.handlePickerAction_,this))},F))};
T3.prototype.handlePickerAction_=function(F){var W=F.action;W=="loaded"&&(this.loadedFired_=!0,YJz(this,new UOr(this.isVisible())),wZi(this),qJB(this),jj(this).unlisten(this.JSC$8046_dom_.getWindow(),"keydown",this.handleKeydown_),this.JSC$8097_iframe_.tabIndex=0);W!="picked"&&W!="cancel"||this.setVisible(!1);this.callback_(F)};
var wZi=function(F){F.JSC$8097_appId_&&YJz(F,new VuR(F.JSC$8097_appId_,window.location.protocol+"//"+window.location.host))};
T3.prototype.setRelayUrl=function(F){TVp(this,(0,_.kj)(function(W){W.setRelayUrl(this.targetId_,F)},this))};
var YJz=function(F,W){F.useGapi_&&Toa(W,F.iframeManager_).then(null,function(){F.callback_({action:"error"})});
TVp(F,(0,_.kj)(function(E){E.call(this.targetId_,"picker",null,W)},F))};
T3.prototype.resizePicker_=function(){var F=LC(this.JSC$8046_dom_.JSC$7231_document_)||window;if(_.jS(_.y$(this.JSC$8097_url_),"ignoreLimits")=="true")F=new _.Rl(this.preferredDialogWidth_,this.preferredDialogHeight_);else if(_.jS(_.y$(this.JSC$8097_url_),"shadeDialog")=="true"){var W=kC_(this);W=Iui(W);var E=_.eU(F);F=E.width-80;E=E.height-40;W&&(F-=W.left?W.left:0,F-=W.right?W.right:0,E-=W.top?W.top:0,E-=W.bottom?W.bottom:0);F=new _.Rl(F>0?F:0,E>0?E:0)}else(W=this.preferredDialogWidth_)?(W=Math.max(320,
Math.min(1051,W)),(E=this.preferredDialogHeight_)||(E=_.eU(F).height*.85),E=Math.max(480,Math.min(650,E))):(W=_.eU(F),E=W.width*.618,E=E<W.height?Math.round(Math.max(480,Math.min(650,E*.85))):Math.round(Math.max(480,Math.min(650,W.height*.85))),W=Math.round(E/.618)),F=_.eU(F),W=Math.min(W,Math.max(F.width,320)),E=Math.min(E,Math.max(F.height,480)),F=new _.Rl(W,E);_.QO_(this.getContentElement(),F);this.reposition()};
T3.prototype.reposition=function(){if(_.jS(_.y$(this.JSC$8097_url_),"shadeDialog")=="true"){var F=t$z(this.getElement()),W=_.eU(this.JSC$8046_dom_.getWindow());F=Math.floor(W.width/2-F.width/2);W=kC_(this);if(W=Iui(W)){var E=W.left?W.left:0;E+=W.right?W.right:0;F=Math.floor(F-E/2)}F=F>0?F:0;W=Mp(this.JSC$8046_dom_).y;TH(this.getElement(),F,W)}else T3.superClass_.reposition.call(this)};
T3.prototype.setVisible=function(F){if(F!=this.isVisible()&&this.autoSizeDialog_){var W=this.JSC$8046_dom_.getWindow();F?(this.resizePicker_(),jj(this).listen(W,"resize",this.resizePicker_),this.iframeLoaded_||jj(this).listen(W,"keydown",this.handleKeydown_)):(jj(this).unlisten(W,"resize",this.resizePicker_),this.iframeLoaded_||jj(this).unlisten(W,"keydown",this.handleKeydown_))}T3.superClass_.setVisible.call(this,F);YJz(this,new UOr(F))};
T3.prototype.focus=function(){T3.superClass_.focus.call(this);if(this.JSC$8097_iframe_&&this.iframeLoaded_&&this.loadedFired_)try{this.JSC$8097_iframe_.focus()}catch(F){}};var ku=function(F,W){W=W===void 0?T3:W;aT.call(this,F);this.pickerConstructor=W;this.urlParamMap_=new Map;this.urlParamMap_.set("protocol","gadgets");(F=window.location.origin)||(F=window.location.protocol+"//"+window.location.host);F&&this.urlParamMap_.set("origin",F);this.postProcessors_=[]};
_.k(ku,eak);ku.prototype.JSC$8102_disposeOnHide_=!1;
ku.prototype.build=function(){this.JSC$8003_appId_&&this.urlParamMap_.has("oauth_token")&&this.urlParamMap_.set("appId",this.JSC$8003_appId_);this.getRelayUrl()||this.setRelayUrl(_.VD(_.Rs(_.UD(_.y$(window.location.href)),""),"/favicon.ico").toString());this.urlParamMap_.set("ifls",Date.now());if(this.urlParamMap_.get("minimal"))throw Error("jb");var F=new this.pickerConstructor(udO(this).toString(),!0,null,this.dialogWidth_,this.dialogHeight_,"",void 0,!1,!1);F.JSC$8079_disposeOnHide_=this.JSC$8102_disposeOnHide_;
F.JSC$8097_appId_=this.JSC$8003_appId_;F.loadedFired_&&wZi(F);GCB(F,this.callback_);return F};
var SJO=function(F){F.urlParamMap_.set("multiselectEnabled","true");return F};
ku.prototype.getHeight=function(){return this.dialogHeight_};
ku.prototype.getRelayUrl=function(){return this.urlParamMap_.get("parent")};
ku.prototype.getTitle=function(){return this.urlParamMap_.get("title")};
ku.prototype.getWidth=function(){return this.dialogWidth_};
var pZe=function(F){F.JSC$8102_disposeOnHide_=void 0;return F};
ku.prototype.setRelayUrl=function(F){this.urlParamMap_.set("parent",F);return this};
var m0u=function(F,W){F.urlParamMap_.set("selectButtonLabel",W);return F};
ku.prototype.setSize=function(F,W){this.dialogWidth_=F;this.dialogHeight_=W;return this};
ku.prototype.setTitle=function(F){this.urlParamMap_.set("title",F);return this};
var udO=function(F){F.postProcessors_.length&&F.urlParamMap_.set("pp",JSON.stringify(F.postProcessors_));F.urlParamMap_.set("nav",dOM(F.nav_));var W=new _.Yx(F.getBaseUrl());F.urlParamMap_.forEach(function(E,h){_.ig(W,h,E)});
return W};var WFX=function(F,W){F.name!==void 0?(this.name=F.name,this.code=Kei[F.name]):(this.code=F=F.code,this.name=FFU(F));_.Fe.call(this,Zbp("%s %s",this.name,W))};
_.Ma(WFX,_.Fe);var FFU=function(F){var W=_.xd.findKey(Kei,function(E){return F==E});
if(W===void 0)throw Error("lb`"+F);return W},Sj={},Kei=(Sj.AbortError=3,Sj.EncodingError=5,Sj.InvalidModificationError=9,Sj.InvalidStateError=7,Sj.NotFoundError=1,Sj.NotReadableError=4,Sj.NoModificationAllowedError=6,Sj.PathExistsError=12,Sj.QuotaExceededError=10,Sj.SecurityError=2,Sj.SyntaxError=8,Sj.TypeMismatchError=11,Sj);var E7i=function(F,W){_.xU.call(this,F.type,W);this.event_=F};
_.Ma(E7i,_.xU);var hoz=function(F,W,E){E===void 0&&(E=F.size);return F.slice?F.slice(W,E):null};var xOr=new WeakMap,DOw=function(F,W){F=[F];for(var E=W.length-1;E>=0;--E)F.push(typeof W[E],W[E]);return F.join("\v")};_.A8k(function(){if(!_.EY.Blob)return!1;var F=new Uint8Array(100);try{var W=new Blob([F])}catch(E){return!1}return W.size!=100?!1:!0});
var d1B=_.A8k(function(){if(!_.EY.Blob)return!1;var F=new Uint8Array(100);try{var W=new Blob([F])}catch(E){return!1}return hoz(W,0,1)===null?!1:!0});_.EY.U3bHHf!=null||(_.EY.U3bHHf=0);_.EY.U3bHHf++;var L0r={};var ug=void 0;var $OG=Symbol("tb");var y8Y=pr("WizInjectionContext_Dispatcher");var f4W=pr("WizInjectionContext_RootElement");var bWG=pr("WizInjectionContext_AppContext"),OWb=pr("WizInjectionContext_ModelRootElement"),l4o=pr("WizInjectionContext_RendererData"),nFY=pr("WizInjectionContext_InjectingConstructor"),a4o=pr("WizInjectionContext_AsyncDeps"),jWY={};var Gkw=!1;var NeB=Symbol("xb"),nCY=Symbol("yb"),rcW=Symbol("zb"),jAY=Symbol("Ab"),SJG=SH(function(F){return hz(F)&&NeB in F});var SGS={enableAttributeSanitization:!0,enableComponentStacksInErrorMessages:!0,enableContextBasedComponentStacks:!1,enableContextPerComponent:c2k,enableLazyTsx:DPS,enablePerformanceTiming:!1,alwaysTrackContexts:!1,enableClientOnlyWizVeLogging:!0,disableSoyJsRenderEvents:!1};var Ei=Object.assign({},{attributes:{},handleError:function(F){throw F;}},SGS);var ECo=Symbol("Bb"),p3={},Feo=(p3[ECo]=!0,p3.debugName="[component]",p3.getComponentStack=function(){for(var F=[],W=this;W;)hxY(W)&&F.push(W.debugName),W=W.parent;return F},p3.registerSignal=function(){},p3.registerEffect=function(){},p3);var d$=null,Ve=!1,exo=1,ee=Symbol("Cb"),BX={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:function(){return!1},
producerRecomputeValue:function(){},
consumerMarkedDirty:function(){},
consumerOnSignalRead:function(){}};var mT=Symbol("Db"),K3=Symbol("Eb"),Ry=Symbol("Fb"),vCY=Object.assign({},BX,{value:mT,dirty:!0,error:null,equal:d0R,kind:"computed",producerMustRecompute:function(F){return F.value===mT||F.value===K3},
producerRecomputeValue:function(F){if(F.value===K3)throw Error("da");var W=F.value;F.value=K3;var E=t5w(F),h=!1;try{var d=F.computation();N6(null);h=W!==mT&&W!==Ry&&d!==Ry&&F.equal(W,d)}catch(V){d=Ry,F.error=V}finally{Cdo(F,E)}h?F.value=W:(F.value=d,F.version++)}});var kCo=function(){throw Error();};var sAS=null,ccG=Object.assign({},BX,{equal:d0R,value:void 0,kind:"signal"});Object.assign({},BX,{value:mT,dirty:!0,error:null,equal:d0R,kind:"linkedSignal",producerMustRecompute:function(F){return F.value===mT||F.value===K3},
producerRecomputeValue:function(F){if(F.value===K3)throw Error("da");var W=F.value;F.value=K3;var E=t5w(F);try{var h=F.source();var d=F.computation(h,W===mT||W===Ry?void 0:{source:F.sourceValue,value:W});F.sourceValue=h}catch(V){d=Ry,F.error=V}finally{Cdo(F,E)}W!==mT&&d!==Ry&&F.equal(W,d)?F.value=W:(F.value=d,F.version++)}});Object.assign({},BX,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:function(F){F.schedule!==null&&F.schedule(F.ref)},
hasRun:!1,cleanupFn:function(){}});var qJW=Symbol("Gb"),Qe=Symbol("Hb");var zi=Array.isArray;var OUe;var VQO={},lJW=fJk(Object.assign({},{consumerAllowSignalWrites:!0},VQO)),CW=fJk(Object.assign({},{consumerAllowSignalWrites:!0},VQO));var cX=0,FU=function(){this.queue=new Set};
FU.prototype.remove=function(F){this.queue.delete(F)};
FU.prototype.clear=function(){this.queue.clear()};
var U1U=function(){FU.apply(this,arguments)};
_.k(U1U,FU);U1U.prototype.schedule=function(F){this.queue.add(F)};
U1U.prototype.flush=function(){if(this.queue.size)for(var F=_.U(this.queue),W=F.next();!W.done;W=F.next()){W=W.value;this.queue.delete(W);try{W.run()}catch(E){RoX(E)}}};
var eo_=new U1U,Wy=function(){FU.apply(this,arguments)};
_.k(Wy,FU);var MQe=function(){Wy.apply(this,arguments)};
_.k(MQe,Wy);MQe.prototype.schedule=function(F){F.hasRun?this.queue.add(F):F.run()};
MQe.prototype.flush=function(){if(this.queue.size){var F=this.queue;this.queue=new Set;pZY(F)}};
var ycW=new MQe,g7_=function(){Wy.apply(this,arguments)};
_.k(g7_,Wy);g7_.prototype.schedule=function(F){var W=this;return _.e(function(E){if(E.nextAddress==1)return F.hasRun?E.jumpTo(2):_.Q(E,Promise.resolve(),3);if(E.nextAddress!=2)return F.run(),E.return();W.queue.add(F);_.gG(E)})};
g7_.prototype.flush=function(){var F=this,W;return _.e(function(E){if(E.nextAddress==1){if(!F.queue.size)return E.return();W=F.queue;F.queue=new Set;return _.Q(E,Promise.resolve(),2)}pZY(W);_.gG(E)})};
var TVe=new g7_,Qrp=function(){Wy.apply(this,arguments)};
_.k(Qrp,Wy);Qrp.prototype.schedule=function(F){this.queue.add(F)};
Qrp.prototype.flush=function(){this.queue.size&&pZY(this.queue)};
var iUb=new Qrp,wZn=[ycW,eo_,iUb,TVe],zoH=[ycW,iUb,TVe],GCW=[];sAS=function(){udG();for(var F=_.U(GCW),W=F.next();!W.done;W=F.next())W=W.value,W()};
var RoX=dI;var kp=Symbol("Mb");var xp=null,WFY,E7n=null,hoR;var Ej={},tQa=Object.assign({},BX,(Ej[NeB]=!0,Ej.effectType=nCY,Ej.isResettableContext=!0,Ej.producerNode=void 0,Ej.hasRun=!1,Ej.effectFn=null,Ej.consumerIsAlwaysLive=!0,Ej.consumerAllowSignalWrites=!0,Ej.consumerMarkedDirty=oCW,Ej.run=function(){if(this.effectFn!==null&&!this.isDisposed){if(Ve)throw Error("Nb");this.dirty=!1;if(!this.hasRun||M5w(this)){this.hasRun=!0;J8o(this);var F=SS(this),W=t5w(this);mOb("effectRun",this.debugName);try{Ei.enableContextBasedComponentStacks?this.effectFn():Ld(this.effectFn,
this.componentStack)}catch(E){throw Ei.enableContextBasedComponentStacks&&si(E),E;}finally{K0I("effectRun",this.debugName),Cdo(this,W),SS(F)}}}},Ej.componentStack=void 0,Ej.debugName="[effect]",Ej[Symbol.dispose]=function(){NVS(this);
if(Ui(this))for(var F=0;F<this.producerNode.length;F++)V5e(this.producerNode[F],this.producerIndexOfThis[F]);this.producerNode.length=this.producerLastReadVersion.length=this.producerIndexOfThis.length=0;this.liveConsumerNode&&(this.liveConsumerNode.length=this.liveConsumerIndexOfThis.length=0);F=_.U(zoH);for(var W=F.next();!W.done;W=F.next())W.value.remove(this);P0b(this)},Ej));var VQG=Object.assign({},tQa,{effectType:rcW});var U1w=Symbol("Ob");var RoY=Object.assign({},tQa,{effectType:nCY});var TeR=new Set("allowfullscreen async autofocus autoplay checked controls default defer disabled formnovalidate hidden inert ismap itemscope jsshadow jsslot loop multiple muted novalidate open playsinline readonly required reversed scoped seamless selected spellcheck sortable typemustmatch".split(" "));var WQ=Symbol("Pb");var zk=function(){},D4=function(F){this.props=F;
this.__unmounted=!1};
D4.prototype.didPatch=function(){};
D4.prototype.didMount=function(){};
D4.prototype.didUnmount=function(){};
D4.prototype.didUpdate=function(){};var g7o={align:1,alt:1,"aria-activedescendant":10,"aria-atomic":1,"aria-autocomplete":1,"aria-busy":1,"aria-checked":1,"aria-controls":10,"aria-current":1,"aria-describedby":10,"aria-disabled":1,"aria-dropeffect":1,"aria-expanded":1,"aria-haspopup":1,"aria-hidden":1,"aria-invalid":1,"aria-label":1,"aria-labelledby":10,"aria-level":1,"aria-live":1,"aria-multiline":1,"aria-multiselectable":1,"aria-orientation":1,"aria-owns":10,"aria-posinset":1,"aria-pressed":1,"aria-readonly":1,"aria-relevant":1,"aria-required":1,
"aria-selected":1,"aria-setsize":1,"aria-sort":1,"aria-valuemax":1,"aria-valuemin":1,"aria-valuenow":1,"aria-valuetext":1,async:8,autocapitalize:1,autocomplete:1,autocorrect:1,autofocus:1,autoplay:1,bgcolor:1,border:1,cellpadding:1,cellspacing:1,checked:1,cite:1,"class":1,color:1,cols:1,colspan:1,contenteditable:1,controls:1,controlslist:1,crossorigin:1,datetime:1,dir:8,disabled:1,download:1,draggable:1,enctype:1,face:1,"for":10,formenctype:1,frameborder:1,height:1,hidden:1,href:4,hreflang:1,id:10,
ismap:1,itemid:1,itemprop:1,itemref:1,itemscope:1,itemtype:1,label:1,lang:1,list:10,loading:8,loop:1,max:1,maxlength:1,media:1,min:1,minlength:1,multiple:1,muted:1,name:10,nonce:1,open:1,placeholder:1,playsinline:1,poster:1,preload:1,rel:1,required:1,reversed:1,role:1,rows:1,rowspan:1,selected:1,shape:1,size:1,sizes:1,slot:1,span:1,spellcheck:1,src:4,srcset:12,start:1,step:1,style:5,summary:1,tabindex:1,target:8,title:1,translate:1,type:1,valign:1,value:1,width:1,wrap:1},MQY={a:{href:[{contract:3}]},
area:{href:[{contract:3}]},audio:{src:[{contract:3}]},button:{formaction:[{contract:3}],formmethod:[{contract:1}]},form:{action:[{contract:3}],method:[{contract:1}]},iframe:{srcdoc:[{contract:2}]},img:{src:[{contract:3}],srcset:[{contract:11}]},input:{accept:[{contract:1}],formaction:[{contract:3}],formmethod:[{contract:1}],pattern:[{contract:1}],readonly:[{contract:1}],src:[{contract:3}]},link:{href:[{contract:3,contingentAttribute:"rel",requiredValue:"alternate"},{contract:3,contingentAttribute:"rel",
requiredValue:"author"},{contract:3,contingentAttribute:"rel",requiredValue:"bookmark"},{contract:3,contingentAttribute:"rel",requiredValue:"canonical"},{contract:3,contingentAttribute:"rel",requiredValue:"cite"},{contract:3,contingentAttribute:"rel",requiredValue:"help"},{contract:3,contingentAttribute:"rel",requiredValue:"icon"},{contract:3,contingentAttribute:"rel",requiredValue:"license"},{contract:3,contingentAttribute:"rel",requiredValue:"next"},{contract:3,contingentAttribute:"rel",requiredValue:"prefetch"},
{contract:3,contingentAttribute:"rel",requiredValue:"dns-prefetch"},{contract:3,contingentAttribute:"rel",requiredValue:"prerender"},{contract:3,contingentAttribute:"rel",requiredValue:"preconnect"},{contract:3,contingentAttribute:"rel",requiredValue:"preload"},{contract:3,contingentAttribute:"rel",requiredValue:"prev"},{contract:3,contingentAttribute:"rel",requiredValue:"search"},{contract:3,contingentAttribute:"rel",requiredValue:"subresource"}]},script:{defer:[{contract:1}]},source:{src:[{contract:3}],
srcset:[{contract:11}]},textarea:{readonly:[{contract:1}]},video:{src:[{contract:3}]}},fEY={a:1,abbr:1,acronym:1,address:1,applet:4,area:5,article:1,aside:1,audio:1,b:1,base:4,basefont:1,bdi:1,bdo:1,big:1,blockquote:1,body:1,br:5,button:1,canvas:1,caption:1,center:1,cite:1,code:1,col:5,colgroup:1,command:1,data:1,datalist:1,dd:1,del:1,details:1,dfn:1,dialog:1,dir:1,div:1,dl:1,dt:1,em:1,embed:4,fieldset:1,figcaption:1,figure:1,font:1,footer:1,form:1,frame:1,frameset:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,
head:1,header:1,hgroup:1,hr:5,html:1,i:1,iframe:1,img:5,input:5,ins:1,kbd:1,label:1,legend:1,lh:1,li:1,link:5,main:1,map:1,mark:1,math:4,menu:1,meta:4,meter:1,nav:1,nobr:1,noscript:1,object:4,ol:1,optgroup:1,option:1,output:1,p:1,param:5,picture:1,pre:1,progress:1,q:1,rb:1,rp:1,rt:1,rtc:1,ruby:1,s:1,samp:1,script:3,section:1,select:1,slot:1,small:1,source:5,span:1,strike:1,strong:1,style:2,sub:1,summary:1,sup:1,svg:4,table:1,tbody:1,td:1,template:4,textarea:6,tfoot:1,th:1,thead:1,time:1,title:6,tr:1,
track:5,tt:1,u:1,ul:1,"var":1,video:1,wbr:5},tQr=[{auto:!0,ltr:!0,rtl:!0},{async:!0},{eager:!0,lazy:!0},{_self:!0,_blank:!0}],zok={"*":{async:1,dir:0,loading:2,target:3}};var CYa=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,hC={},BeY=(hC[1]=null,hC[2]=function(F,W){return W instanceof qi?X3(W):vp.toString()},hC[3]=function(F,W){return zy(W)?_.ty(W):CYa.test(String(W))?String(W):vp.toString()},hC[4]=function(F,W){return W instanceof UW?_.e9(W):vp.toString()},hC[5]=function(F,W){return String(W)},hC[7]=null,hC[8]=null,hC[10]=null,hC);var hpY=Symbol("Sb");var Yue=function(F){var W=BeX,E=F,h="",d="",V=1;F<0&&(F=-F);if(F===Infinity)F=(Infinity*Math.sign(E)).toString();else{for(var R=0;R<v7H.length;R++){var M=v7H[R];V=W[M];if(F>=V||V<=1&&F>.1*V){h=M;break}}h?(h+="B",d=" "):V=1;F=Math.round(E/V*10)/10+d+h}return F},v7H="Y Z E P T G M K  m u n".split(" "),BeX={"":1,
n:9.313225746154785E-10,u:9.5367431640625E-7,m:1/1024,k:1024,K:1024,M:1048576,G:1073741824,T:1099511627776,P:0x4000000000000,E:0x1000000000000000,Z:1.1805916207174113E21,Y:1.2089258196146292E24};_.Ipi=RegExp("^[^A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0900-\u1fff\u200e\u2c00-\ud801\ud804-\ud839\ud83c-\udbff\uf900-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]*[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");var RW={};RegExp.prototype.hasOwnProperty("sticky");var Ymn=function(F){F=String(F);for(var W=function(h,d,V){for(var R=Math.min(d.length-V,h.length),M=0;M<R;M++){var g=d[V+M];if(h[M]!==("A"<=g&&g<="Z"?g.toLowerCase():g))return!1}return!0},E=0;(E=F.indexOf("<",E))!=-1;){if(W("\x3c/script",F,E)||W("\x3c!--",F,E))return"zSoyz";
E+=1}return F};var fd={default:"__default"};var AHY=Object.prototype.hasOwnProperty;cHo.prototype=Object.create(null);var Kn=qmo();var Se=null;var lpW=function(F){this.created=[];this.deleted=[];this.node=F};var n7Y=typeof Node!=="undefined"&&Node.prototype.getRootNode||function(){for(var F=this,W=F;F;)W=F,F=F.parentNode;return W};var ZMo=function(F,W){this._attrsArr=null;this.staticsApplied=!1;this.nameOrCtor=F;this.key=W;this.text=void 0};var nd=null,iu=null,bu=null,Ti=null,apo=[],JHI=HMb,Gi=[],uu=[],EYS=function(F){return yHI(function(W,E,h){bu=iu=W;iu=null;E(h);PYk(null);iu=bu;bu=bu.parentNode;return W},F)}(),WAR=function(F){return yHI(function(W,E,h){var d={nextSibling:W};
iu=d;E(h);bu&&PYk(W.nextSibling);return d===iu?null:iu},F)}();var pd=[],iMo=0;var m6=new cHo;var Am=new cHo;var cHM=qmo(),GXk=cHM[fd.default],w0R=cHM.style,o7e=["focusin","focusout"];var Znw=function(){},vtn=function(){},a0Y=function(){},HnI=function(){};var Fk=Symbol("Zb");var WRo,FRw=KFI;var MO=Symbol("$b");var Q_S={};var JVY=new Set("a altGlyph altGlyphDef altGlyphItem animate animateColor animateMotion animateTransform circle clipPath color-profile cursor defs desc ellipse feBlend feColorMatrix feComponentTransfer feComposite feConvolveMatrix feDiffuseLighting feDisplacementMap feDistantLight feDropShadow feFlood feFuncA feFuncB feFuncG feFuncR feGaussianBlur feImage feMerge feMergeNode feMorphology feOffset fePointLight feSpecularLighting feSpotLight feTile feTurbulence filter font font-face font-face-format font-face-name font-face-src font-face-uri foreignObject g glyph glyphRef hkern image line linearGradient marker mask metadata missing-glyph mpath path pattern polygon polyline radialGradient rect script set stop style svg switch symbol text textPath title tref tspan use view vkern".split(" ")),
PfW=new Set(["a","font","script","style","title"]);var vQ={afterOpen:function(){},
onElementDeleted:function(){},
beforeVisit:function(){},
beforeRender:function(){},
afterRender:function(){},
didMount:function(){},
didPatch:function(){},
didUnmount:function(){},
didUpdate:function(){}};var IW=null,cQ=function(F,W){D4.call(this,F);var E=this;this.functionComponent=W;this.hooks=[];this.hookCounter=0;this.disposeEffects=Zn(function(h){E.effectContext=h;_.$p(function(){xyn(E,E.el)})},Ei.alwaysTrackContexts||!!ug)};
_.k(cQ,D4);cQ.prototype.render=function(F){var W=IW;IW=this;this.hookCounter=0;var E=N6(CW),h=SS(this.effectContext);try{return mOb("render",this.componentName),this.functionComponent(F)}finally{K0I("render",this.componentName),SS(h),N6(E),IW=W}};
_.Sn.Object.defineProperties(cQ.prototype,{componentName:{configurable:!0,enumerable:!0,get:function(){return Ken(this.functionComponent)}}});var f0r=Symbol("nc"),qBr=function(F,W,E){this.kind=F;this.props=W;this.children=E};
_.k(qBr,zk);qBr.prototype.render=function(){return LRW(this.kind,this.props,this.children)};
qBr.prototype.getChildren=function(){return this.children};var bnW=[];kCo=function(F){throw Error("sb`"+F.debugName);};
(function(){var F=Se;Se=function(W){F==null||F(W);l0e(W)}})();var D1T=void 0,x1H={},kXO=new WeakMap,ntW={getComponent:function(F){if(F.hasAttribute("ng-version"))return x1H;if(!F.__wizComponent)return null;F=F.__wizComponent;kXO.set(F.propsAndState,F);return F.propsAndState},
getDirectiveMetadata:function(F){if(F===x1H)return{framework:"wiz",name:"<Root>",props:{}};F=kXO.get(F);if(!F)throw Error("oc");return{framework:"wiz",name:F.name,props:Object.fromEntries(Object.keys(F.props).map(function(W){return[W,W]}))}},
"\u0275setProfiler":function(F){var W;(W=D1T)==null||W();D1T=YJR(function(){F(2)})},
isSignal:function(F){return typeof F==="function"&&F[ee]!==void 0}};var j_k={nonNullableCondIsNull:function(){return Error("sc")}};_.z.GOAT_INTERNALS_DO_NOT_USE_OR_ELSE!=null||(_.z.GOAT_INTERNALS_DO_NOT_USE_OR_ELSE={});_.z.GOAT_INTERNALS_DO_NOT_USE_OR_ELSE.isGoatEnabled=function(){return!1};var YBw=function(){this.map=new Map};
YBw.prototype.push=function(F,W){var E=this.map;E.has(F)&&(this.multi||(this.multi=new Map),this.multi.set(W,E.get(F)));E.set(F,W)};
YBw.prototype.pop=function(F){var W=this.map,E=W.get(F),h;E!==void 0&&((h=this.multi)==null?0:h.has(E))?(W.set(F,this.multi.get(E)),this.multi.delete(E)):W.delete(F);return E};var myr={LOG_NULL_EL_REF_VALUE:function(){return Error("tc")},
OUT_OF_ORDER_HOOK_CALL:function(F){return Error("uc`"+F)},
PRIMITIVE_INVALID_HOOK_CALL:function(){return Error("vc")},
RETURNING_CLEANUP_FUNCTION_FROM_ONINIT:function(){return Error("wc")},
SIGNAL_INVALID_HOOK_CALL:function(){return Error("xc")},
USE_ELEMENT_UNEXPECTED_ELEMENT:function(F,W){return Error("yc`"+F+"`"+W)},
USE_ELEMENT_MULTIPLE_ASSIGNMENTS:function(F){return Error("zc`"+F)},
USE_ELEMENT_NOT_ASSIGNED:function(F){return Error("Ac`"+String(F))}};WRo=$yY;var NTb=Symbol("Bc");cVI({beforeRender:function(F){var W=SS(F.effectContext);try{var E;((E=F.__syncEffects)==null?0:E.length)&&UQw(F.__syncEffects)}finally{SS(W)}},
didPatch:function(F){var W=SS(F.effectContext);try{var E;((E=F.__syncEffects)==null?0:E.length)&&UQw(F.__syncEffects)}finally{SS(W)}},
didUnmount:function(F){var W;((W=F.hooks)==null?0:W.length)&&F.hooks.forEach(Vnw)}});var AHX,srB,LFU;AHX=_.EY.window;_.fW=(AHX==null?void 0:(srB=AHX.yt)==null?void 0:srB.config_)||(AHX==null?void 0:(LFU=AHX.ytcfg)==null?void 0:LFU.data_)||{};_.S5("yt.config_",_.fW);var qmM={},gOn=[];_.xC=function(F){var W=_.Dd.apply(1,arguments);var E=Error.call(this,F);this.message=E.message;"stack"in E&&(this.stack=E.stack);this.args=[].concat(_.x9(W));Object.setPrototypeOf(this,this.constructor.prototype)};
_.k(_.xC,Error);var Cxr=function(F,W,E){this.actionName=F;this.optionalAction=W===void 0?!1:W;this.args=E===void 0?null:E;this.returnValue=[]};_.S=function(F){this.name=F};_.jh=new _.S("signalAction");var knI=/^[\w.]*$/,BTb={q:!0,search_query:!0},CMo=String(tnI);var dr;dr=Symbol("Cc");_.NG=function(F){this.name=F};
_.NG.prototype.toString=function(){return"InjectionToken("+this.name+")"};
var Atr=function(F){this.key=F},qRI=function(F){this.deferredKey=F},LrS=function(){var F=this;
this.providers=new Map;this.JSC$8318_deferred=new Map;this.cachedValues=new Map;this.TEST_ONLY={getInjectionSnapshot:function(){return new Map(F.providers)}}};
LrS.prototype.addProvider=function(F){this.providers.set(F.provide,F);var W=this.JSC$8318_deferred.get(F.provide);if(W)try{W.resolver(this.resolve(F.provide))}catch(E){W.rejector(E)}};
LrS.prototype.resolve=function(F){return F instanceof qRI?$1i(this,F):F instanceof Atr?ZMM(this,F.key,[],!0):ZMM(this,F,[])};
var $1i=function(F,W){W=W.deferredKey;if(F.JSC$8318_deferred.has(W))return F.JSC$8318_deferred.get(W).promise;var E={};E.promise=new Promise(function(h,d){E.resolver=h;E.rejector=d});
F.JSC$8318_deferred.set(W,E);return E.promise},ZMM=function(F,W,E,h){h=h===void 0?!1:h;
if(E.indexOf(W)>-1)throw Error("Dc`"+W);if(F.cachedValues.has(W))return F.cachedValues.get(W);if(!F.providers.has(W)){if(h)return;throw Error("Ec`"+W);}h=F.providers.get(W);E.push(W);if(h.useValue!==void 0)var d=h.useValue;else if(h.useFactory)d=h[dr]?X0T(F,h[dr],E):[],d=h.useFactory.apply(h,_.x9(d));else if(h.useClass){d=h.useClass;var V=d[dr]?X0T(F,d[dr],E):[];d=new (Function.prototype.bind.apply(d,[null].concat(_.x9(V))))}else throw Error("Fc`"+W);E.pop();h.skipCache||F.cachedValues.set(W,d);return d},
X0T=function(F,W,E){return W?W.map(function(h){return h instanceof Atr?ZMM(F,h.key,E,!0):ZMM(F,h,E)}):[]};var sLR;var r3=new _.NG("ENDPOINT_HANDLER_TOKEN");_.T5=new _.S("urlEndpoint");var HMT=function(){this.data=[];this.cachedPackedInt52=-1};
HMT.prototype.set=function(F,W){W=W===void 0?!0:W;0<=F&&F<52&&Number.isInteger(F)&&this.data[F]!==W&&(this.data[F]=W,this.cachedPackedInt52=-1)};
HMT.prototype.get=function(F){return!!this.data[F]};
var PYH=function(F){F.cachedPackedInt52===-1&&(F.cachedPackedInt52=F.data.reduce(function(W,E,h){return W+(E?Math.pow(2,h):0)},0));
return F.cachedPackedInt52};var jLo=function(F){var W=JHc;F=F===void 0?_.ju("yt.ads.biscotti.lastId_")||"":F;var E=Object,h=E.assign,d={};d.dt=fyH;d.flash="0";a:{try{var V=W.JSC$8324_win_.top.location.href}catch(xW){V=2;break a}V=V?V===W.doc_.location.href?0:1:2}d=(d.frm=V,d);try{d.u_tz=-(new Date).getTimezoneOffset();var R=R===void 0?od:R;try{var M=R.history.length}catch(xW){M=0}d.u_his=M;var g;d.u_h=(g=od.screen)==null?void 0:g.height;var t;d.u_w=(t=od.screen)==null?void 0:t.width;var C;d.u_ah=(C=od.screen)==null?void 0:C.availHeight;
var B;d.u_aw=(B=od.screen)==null?void 0:B.availWidth;var I;d.u_cd=(I=od.screen)==null?void 0:I.colorDepth}catch(xW){}M=W.JSC$8324_win_;try{var x=M.screenX;var A=M.screenY}catch(xW){}try{var X=M.outerWidth;var P=M.outerHeight}catch(xW){}try{var b=M.innerWidth;var l=M.innerHeight}catch(xW){}try{var w=M.screenLeft;var G=M.screenTop}catch(xW){}try{b=M.innerWidth,l=M.innerHeight}catch(xW){}try{var hr=M.screen.availWidth;var p=M.screen.availTop}catch(xW){}x=[w,G,x,A,hr,p,X,P,b,l];A=IVY(!1,W.JSC$8324_win_.top);
X={};var UY=UY===void 0?_.EY:UY;P=new HMT;"SVGElement"in UY&&"createElementNS"in UY.document&&P.set(0);b=f__();b["allow-top-navigation-by-user-activation"]&&P.set(1);b["allow-popups-to-escape-sandbox"]&&P.set(2);UY.crypto&&UY.crypto.subtle&&P.set(3);"TextDecoder"in UY&&"TextEncoder"in UY&&P.set(4);UY=PYH(P);W=(X.bc=UY,X.bih=A.height,X.biw=A.width,X.brdim=x.join(),X.vis=hAw(W.doc_),X.wgl=!!od.WebGLRenderingContext,X);E=h.call(E,d,W);E.ca_type="image";F&&(E.bid=F);return E},JHc=new function(){var F=
window.document;
this.JSC$8324_win_=window;this.doc_=F};
_.S5("yt.ads_.signals_.getAdSignalsString",function(F){return vOW(jLo(F))});_.e2();navigator.userAgent.indexOf(" (CrKey ");var PMo="XMLHttpRequest"in _.EY?function(){return new XMLHttpRequest}:null;var ap_="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" "),fpa=[].concat(_.x9(ap_),["client_dev_set_cookie"]);var yte={Authorization:"AUTHORIZATION","X-Goog-EOM-Visitor-Id":"EOM_VISITOR_DATA","X-Goog-Visitor-Id":"SANDBOXED_VISITOR_ID","X-Youtube-Domain-Admin-State":"DOMAIN_ADMIN_STATE","X-Youtube-Chrome-Connected":"CHROME_CONNECTED_HEADER","X-YouTube-Client-Name":"INNERTUBE_CONTEXT_CLIENT_NAME","X-YouTube-Client-Version":"INNERTUBE_CONTEXT_CLIENT_VERSION","X-YouTube-Delegation-Context":"INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT","X-YouTube-Device":"DEVICE","X-Youtube-Identity-Token":"ID_TOKEN","X-YouTube-Page-CL":"PAGE_CL",
"X-YouTube-Page-Label":"PAGE_BUILD_LABEL","X-Goog-AuthUser":"SESSION_INDEX","X-Goog-PageId":"DELEGATED_SESSION_ID"},fmo="app debugcss debugjs expflag force_ad_params force_ad_encrypted force_viral_ad_response_params forced_experiments innertube_snapshots innertube_goldens internalcountrycode internalipoverride absolute_experiments conditional_experiments sbb sr_bns_address".split(" ").concat(_.x9(ap_)),SRb=!1,bXb=_.iXY,YRY=nOr;var cmR=[{messageFn:function(F){return"Cannot read property '"+F.key+"'"},
patternsForType:{Error:[{regexp:/(Permission denied) to access property "([^']+)"/,groups:["reason","key"]}],TypeError:[{regexp:/Cannot read property '([^']+)' of (null|undefined)/,groups:["key","value"]},{regexp:/\u65e0\u6cd5\u83b7\u53d6\u672a\u5b9a\u4e49\u6216 (null|undefined) \u5f15\u7528\u7684\u5c5e\u6027\u201c([^\u201d]+)\u201d/,groups:["value","key"]},{regexp:/\uc815\uc758\ub418\uc9c0 \uc54a\uc74c \ub610\ub294 (null|undefined) \ucc38\uc870\uc778 '([^']+)' \uc18d\uc131\uc744 \uac00\uc838\uc62c \uc218 \uc5c6\uc2b5\ub2c8\ub2e4./,
groups:["value","key"]},{regexp:/No se puede obtener la propiedad '([^']+)' de referencia nula o sin definir/,groups:["key"]},{regexp:/Unable to get property '([^']+)' of (undefined or null) reference/,groups:["key","value"]},{regexp:/(null) is not an object \(evaluating '(?:([^.]+)\.)?([^']+)'\)/,groups:["value","base","key"]}]}},{messageFn:function(F){return"Cannot call '"+F.key+"'"},
patternsForType:{TypeError:[{regexp:/(?:([^ ]+)?\.)?([^ ]+) is not a function/,groups:["base","key"]},{regexp:/([^ ]+) called on (null or undefined)/,groups:["key","value"]},{regexp:/Object (.*) has no method '([^ ]+)'/,groups:["base","key"]},{regexp:/Object doesn't support property or method '([^ ]+)'/,groups:["key"]},{regexp:/\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306f '([^']+)' \u30d7\u30ed\u30d1\u30c6\u30a3\u307e\u305f\u306f\u30e1\u30bd\u30c3\u30c9\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u305b\u3093/,
groups:["key"]},{regexp:/\uac1c\uccb4\uac00 '([^']+)' \uc18d\uc131\uc774\ub098 \uba54\uc11c\ub4dc\ub97c \uc9c0\uc6d0\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4./,groups:["key"]}]}},{messageFn:function(F){return F.key+" is not defined"},
patternsForType:{ReferenceError:[{regexp:/(.*) is not defined/,groups:["key"]},{regexp:/Can't find variable: (.*)/,groups:["key"]}]}}];var OMM={messageWeights:[],callbackWeights:[{callback:F1Y,weight:500},{callback:W1r,weight:500}]};var bMc=function(){this.callbackWeights=[];this.messageWeights=[]},lpB,IAe=function(){if(!lpB){var F=lpB=new bMc;
F.messageWeights.length=0;F.callbackWeights.length=0;OEI(F,OMM)}return lpB},OEI=function(F,W){W.messageWeights&&F.messageWeights.push.apply(F.messageWeights,W.messageWeights);
W.callbackWeights&&F.callbackWeights.push.apply(F.callbackWeights,W.callbackWeights)};_.Ma(_.tc,_.xj);_.tc.prototype.subscribe=function(F,W,E){var h=this.topics_[F];h||(h=this.topics_[F]=[]);var d=this.JSC$8348_key_;this.subscriptions_[d]=F;this.subscriptions_[d+1]=W;this.subscriptions_[d+2]=E;this.JSC$8348_key_=d+3;h.push(d);return d};
var n7X=function(F){var W=Amb,E=!1,h=W.subscribe("handleError",function(d){E||(E=!0,this.unsubscribeByKey(h),F.apply(void 0,arguments))},W)};
_.tc.prototype.unsubscribe=function(F,W,E){if(F=this.topics_[F]){var h=this.subscriptions_;if(F=F.find(function(d){return h[d+1]==W&&h[d+2]==E}))return this.unsubscribeByKey(F)}return!1};
_.tc.prototype.unsubscribeByKey=function(F){var W=this.subscriptions_[F];if(W){var E=this.topics_[W];this.publishDepth_!=0?(this.pendingKeys_.push(F),this.subscriptions_[F+1]=function(){}):(E&&_.mY(E,F),delete this.subscriptions_[F],delete this.subscriptions_[F+1],delete this.subscriptions_[F+2])}return!!W};
_.tc.prototype.publish=function(F,W){var E=this.topics_[F];if(E){var h=Array(arguments.length-1),d=arguments.length,V;for(V=1;V<d;V++)h[V-1]=arguments[V];if(this.async_)for(V=0;V<E.length;V++)d=E[V],yHc(this.subscriptions_[d+1],this.subscriptions_[d+2],h);else{this.publishDepth_++;try{for(V=0,d=E.length;V<d&&!this.isDisposed();V++){var R=E[V];this.subscriptions_[R+1].apply(this.subscriptions_[R+2],h)}}finally{if(this.publishDepth_--,this.pendingKeys_.length>0&&this.publishDepth_==0)for(;E=this.pendingKeys_.pop();)this.unsubscribeByKey(E)}}return V!=
0}return!1};
var yHc=function(F,W,E){_.ZZ(function(){F.apply(W,E)})};
_.tc.prototype.clear=function(F){if(F){var W=this.topics_[F];W&&(W.forEach(this.unsubscribeByKey,this),delete this.topics_[F])}else this.subscriptions_.length=0,this.topics_={}};
_.tc.prototype.getCount=function(F){if(F){var W=this.topics_[F];return W?W.length:0}F=0;for(W in this.topics_)F+=this.getCount(W);return F};
_.tc.prototype.disposeInternal=function(){_.tc.superClass_.disposeInternal.call(this);this.clear();this.pendingKeys_.length=0};var Amb=new _.tc;var N1=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(N1,_.n2);N1.prototype.getColdHashData=function(){return _.bj(this,3)};
N1.prototype.getHotHashData=function(){return _.bj(this,5)};
N1.prototype.setHotHashData=function(F){return _.QJ(this,5,F)};var Csn=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(Csn,_.n2);var rTo=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(rTo,_.n2);_.N=rTo.prototype;_.N.getDeviceId=function(){return _.bj(this,6)};
_.N.getExperimentIds=function(F){var W=_.De(this,9,_.LN,3,!0);oi(W,F);return W[F]};
_.N.getPlayerType=function(){return _.lj(this,36)};
_.N.setHomeGroupInfo=function(F){return _.hy(this,81,F)};
_.N.clearLocationPlayabilityToken=function(){return _.de(this,89)};var Bc=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(Bc,_.n2);Bc.prototype.setKey=function(F){return _.QJ(this,1,F)};
Bc.prototype.getValue=function(){return yF(this,2,o3R)};
var o3R=[2,3,4,5,6];var jrB=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(jrB,_.n2);jrB.prototype.setTrackingParams=function(F){return _.de(this,1,_.Tz(F,!1))};var TQr=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(TQr,_.n2);var I2G=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(I2G,_.n2);I2G.prototype.getExperimentIds=function(F){var W=_.De(this,5,_.qF,3,!0);oi(W,F);return W[F]};var D0=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(D0,_.n2);D0.prototype.getToken=function(){return _.tv(this,2)};
D0.prototype.setToken=function(F){return _.QJ(this,2,F)};var I_=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(I_,_.n2);I_.prototype.setSafetyMode=function(F){return _.hH(this,5,F)};var Cn=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(Cn,_.n2);Cn.prototype.setClient=function(F){return _.hy(this,1,F)};var vbr={WEB_DISPLAY_MODE_UNKNOWN:"WEB_DISPLAY_MODE_UNKNOWN",WEB_DISPLAY_MODE_BROWSER:"WEB_DISPLAY_MODE_BROWSER",WEB_DISPLAY_MODE_MINIMAL_UI:"WEB_DISPLAY_MODE_MINIMAL_UI",WEB_DISPLAY_MODE_STANDALONE:"WEB_DISPLAY_MODE_STANDALONE",WEB_DISPLAY_MODE_FULLSCREEN:"WEB_DISPLAY_MODE_FULLSCREEN"};var BWo;_.lb=function(){var F=this;this.deferredInstallPrompt=void 0;this.appInstalledEventFired=!1;_.EY.addEventListener("beforeinstallprompt",function(W){W.preventDefault();F.deferredInstallPrompt=W});
_.EY.addEventListener("appinstalled",function(){F.appInstalledEventFired=!0},{once:!0})};
BWo=function(){if(!_.EY.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return _.EY.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":_.EY.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":_.EY.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":_.EY.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(F){return"WEB_DISPLAY_MODE_UNKNOWN"}};var xcR=function(){this.syncHeaders=!0},kJw=function(F){var W={},E=[];
"USER_SESSION_ID"in _.fW&&E.push({key:"u",value:_.b0("USER_SESSION_ID")});if(E=TRb(E))W.Authorization=E,E=F=F==null?void 0:F.sessionIndex,E===void 0&&(E=Number(_.b0("SESSION_INDEX",0)),E=isNaN(E)?0:E),_.c("voice_search_auth_header_removal")||(W["X-Goog-AuthUser"]=E.toString()),"INNERTUBE_HOST_OVERRIDE"in _.fW||(W["X-Origin"]=window.location.origin),F===void 0&&"DELEGATED_SESSION_ID"in _.fW&&(W["X-Goog-PageId"]=_.b0("DELEGATED_SESSION_ID"));return W};var iM_={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var VS=_.ju("ytglobal.prefsUserPrefsPrefs_")||{},rHa;_.S5("ytglobal.prefsUserPrefsPrefs_",VS);_.Uj=function(){this.cookieName=_.b0("ALT_PREF_COOKIE_NAME","PREF");this.cookieDomain=_.b0("ALT_PREF_COOKIE_DOMAIN","youtube.com");var F=_.BZ.get(this.cookieName,void 0);F&&this.parse(F)};
_.Ij=function(){rHa||(rHa=new _.Uj);return rHa};
_.Uj.prototype.get=function(F,W){Tez(F);o7p(F);F=VS[F]!==void 0?VS[F].toString():null;return F!=null?F:W?W:""};
_.Uj.prototype.set=function(F,W){Tez(F);o7p(F);if(W==null)throw Error("Ic");VS[F]=W.toString()};
_.Uj.prototype.getFlag=function(F){return!!((GXH("f"+(Math.floor(F/31)+1))||0)&1<<F%31)};
_.c5=function(F,W,E){F="f"+(Math.floor(W/31)+1);W=1<<W%31;var h=GXH(F)||0;h=E?h|W:h&~W;h===0?delete VS[F]:(E=h.toString(16),VS[F]=E.toString())};
_.Uj.prototype.remove=function(F){Tez(F);o7p(F);delete VS[F]};
_.Uj.prototype.save=function(){var F=!0;_.c("web_secure_pref_cookie_killswitch")&&(F=!1);_.vZ(this.cookieName,this.dump(),63072E3,this.cookieDomain,F)};
_.Uj.prototype.clear=function(){_.xd.clear(VS)};
_.Uj.prototype.dump=function(){var F=[],W;for(W in VS)VS.hasOwnProperty(W)&&F.push(W+"="+encodeURIComponent(String(VS[W])));return F.join("&")};
var o7p=function(F){if(/^f([1-9][0-9]*)$/.test(F))throw Error("Jc`"+F);},Tez=function(F){if(!/^\w+$/.test(F))throw Error("Kc`"+F);
},GXH=function(F){F=VS[F]!==void 0?VS[F].toString():null;
return F!=null&&/^[A-Fa-f0-9]+$/.test(F)?parseInt(F,16):null};
_.Uj.prototype.parse=function(F){F=decodeURIComponent(F).split("&");for(var W=0;W<F.length;W++){var E=F[W].split("="),h=E[0];(E=E[1])&&(VS[h]=E.toString())}};var Mrw={bluetooth:"CONN_DISCO",cellular:"CONN_CELLULAR_UNKNOWN",ethernet:"CONN_WIFI",none:"CONN_NONE",wifi:"CONN_WIFI",wimax:"CONN_CELLULAR_4G",other:"CONN_UNKNOWN",unknown:"CONN_UNKNOWN","slow-2g":"CONN_CELLULAR_2G","2g":"CONN_CELLULAR_2G","3g":"CONN_CELLULAR_3G","4g":"CONN_CELLULAR_4G"},cFG={CONN_DEFAULT:0,CONN_UNKNOWN:1,CONN_NONE:2,CONN_WIFI:3,CONN_CELLULAR_2G:4,CONN_CELLULAR_3G:5,CONN_CELLULAR_4G:6,CONN_CELLULAR_UNKNOWN:7,CONN_DISCO:8,CONN_CELLULAR_5G:9,CONN_WIFI_METERED:10,CONN_CELLULAR_5G_SA:11,
CONN_CELLULAR_5G_NSA:12,CONN_WIRED:30,CONN_INVALID:31},DcS={EFFECTIVE_CONNECTION_TYPE_UNKNOWN:0,EFFECTIVE_CONNECTION_TYPE_OFFLINE:1,EFFECTIVE_CONNECTION_TYPE_SLOW_2G:2,EFFECTIVE_CONNECTION_TYPE_2G:3,EFFECTIVE_CONNECTION_TYPE_3G:4,EFFECTIVE_CONNECTION_TYPE_4G:5},QkR={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"};var Wr;_.Re=function(){this.cancelDebouncedJobMap=new WeakMap;this.cancelThrottledJobMap=new WeakMap};
_.sB=function(F,W,E){return F.addJob(W,0,E)};
_.Re.prototype.addLowPriorityJob=function(F,W){return this.addJob(F,1,W)};
_.qY=function(F,W,E){return F.addJob(W,2,E)};
_.JG=function(F,W,E){return F.addJob(W,3,E)};
_.Ed=function(F,W,E){return F.addJob(W,4,E)};
Wr=function(F){var W=_.ju("yt.scheduler.instance.addImmediateJob");W?W(F):F()};
_.Re.prototype.debounce=function(F,W,E){var h=this,d=0,V=function(){d&&h.cancelJob(d);d=h.addJob(F,W,E);h.cancelDebouncedJobMap.set(V,d)};
return V};
_.Re.prototype.cancelThrottle=function(F){(F=this.cancelThrottledJobMap.get(F))&&F()};var e3=function(){_.Re.apply(this,arguments)};
_.k(e3,_.Re);_.OZ=function(){e3.instance||(e3.instance=new e3);return e3.instance};
e3.prototype.addJob=function(F,W,E){E!==void 0&&Number.isNaN(Number(E))&&(E=void 0);var h=_.ju("yt.scheduler.instance.addJob");return h?h(F,W,E):E===void 0?(F(),NaN):_.RA(F,E||0)};
e3.prototype.cancelJob=function(F){if(F===void 0||!Number.isNaN(Number(F))){var W=_.ju("yt.scheduler.instance.cancelJob");W?W(F):_.M0(F)}};
e3.prototype.start=function(){var F=_.ju("yt.scheduler.instance.start");F&&F()};
e3.prototype.pause=function(){var F=_.ju("yt.scheduler.instance.pause");F&&F()};
_.P0=_.OZ();_.kC.prototype.set=function(F,W){W===void 0?this.mechanism.remove(F):this.mechanism.set(F,(0,_.ad)(W))};
_.kC.prototype.get=function(F){try{var W=this.mechanism.get(F)}catch(E){return}if(W!==null)try{return JSON.parse(W)}catch(E){throw"Storage: Invalid value was encountered";}};
_.kC.prototype.remove=function(F){this.mechanism.remove(F)};var MG=function(F){this.mechanism=F};
_.Ma(MG,_.kC);var Ymi=function(F){this.data=F},w0z=function(F){return F===void 0||F instanceof Ymi?F:new Ymi(F)};
MG.prototype.set=function(F,W){MG.superClass_.set.call(this,F,w0z(W))};
MG.prototype.getWrapper=function(F){F=MG.superClass_.get.call(this,F);if(F===void 0||F instanceof Object)return F;throw"Storage: Invalid value was encountered";};
MG.prototype.get=function(F){if(F=this.getWrapper(F)){if(F=F.data,F===void 0)throw"Storage: Invalid value was encountered";}else F=void 0;return F};_.Ma(sJ,MG);_.uHu=function(F){var W=F.creation;F=F.expiration;return!!F&&F<_.e2()||!!W&&W>_.e2()};
sJ.prototype.set=function(F,W,E){if(W=w0z(W)){if(E){if(E<_.e2()){sJ.prototype.remove.call(this,F);return}W.expiration=E}W.creation=_.e2()}sJ.superClass_.set.call(this,F,W)};
sJ.prototype.getWrapper=function(F,W){var E=sJ.superClass_.getWrapper.call(this,F);if(E)if(!W&&_.uHu(E))sJ.prototype.remove.call(this,F);else return E};var gr=function(){};
gr.prototype.next=function(){return QS};
var QS={done:!0,value:void 0},zG=function(F){return{value:F,done:!1}};
gr.prototype.__iterator__=function(){return this};
_.Smu=function(F){if(F instanceof gr)return F;if(typeof F.__iterator__=="function")return F.__iterator__(!1);if(_.Ee(F)){var W=0,E=new gr;E.next=function(){for(;;){if(W>=F.length)return QS;if(W in F)return zG(F[W++]);W++}};
return E}throw Error("Lc");};var p0z=function(F){if(F instanceof tC||F instanceof C$||F instanceof By)return F;if(typeof F.next=="function")return new tC(function(){return F});
if(typeof F[Symbol.iterator]=="function")return new tC(function(){return F[Symbol.iterator]()});
if(typeof F.__iterator__=="function")return new tC(function(){return F.__iterator__()});
throw Error("Mc");},tC=function(F){this.func_=F};
tC.prototype.__iterator__=function(){return new C$(this.func_())};
tC.prototype[Symbol.iterator]=function(){return new By(this.func_())};
tC.prototype.toEs6=function(){return new By(this.func_())};
var C$=function(F){this.JSC$8432_iter_=F};
_.k(C$,gr);C$.prototype.next=function(){return this.JSC$8432_iter_.next()};
C$.prototype[Symbol.iterator]=function(){return new By(this.JSC$8432_iter_)};
C$.prototype.toEs6=function(){return new By(this.JSC$8432_iter_)};
var By=function(F){tC.call(this,function(){return F});
this.JSC$8435_iter_=F};
_.k(By,tC);By.prototype.next=function(){return this.JSC$8435_iter_.next()};var m1H=function(){};var vy=function(){};
_.Ma(vy,m1H);vy.prototype.getCount=function(){for(var F=0,W=_.U(this),E=W.next();!E.done;E=W.next())F++;return F};
vy.prototype[Symbol.iterator]=function(){return p0z(this.__iterator__(!0)).toEs6()};
vy.prototype.clear=function(){var F=Array.from(this);F=_.U(F);for(var W=F.next();!W.done;W=F.next())this.remove(W.value)};_.Ma(LU,vy);_.N=LU.prototype;_.N.isAvailable=function(){if(this.cachedIsStorageAvailable_===null){var F=this.storage_;if(F)try{F.setItem("__sak","1");F.removeItem("__sak");var W=!0}catch(E){W=E instanceof DOMException&&(E.name==="QuotaExceededError"||E.code===22||E.code===1014||E.name==="NS_ERROR_DOM_QUOTA_REACHED")&&F&&F.length!==0}else W=!1;this.cachedIsStorageAvailable_=W}return this.cachedIsStorageAvailable_};
_.N.set=function(F,W){Ie(this);try{this.storage_.setItem(F,W)}catch(E){if(this.storage_.length==0)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
_.N.get=function(F){Ie(this);F=this.storage_.getItem(F);if(typeof F!=="string"&&F!==null)throw"Storage mechanism: Invalid value was encountered";return F};
_.N.remove=function(F){Ie(this);this.storage_.removeItem(F)};
_.N.getCount=function(){Ie(this);return this.storage_.length};
_.N.__iterator__=function(F){Ie(this);var W=0,E=this.storage_,h=new gr;h.next=function(){if(W>=E.length)return QS;var d=E.key(W++);if(F)return zG(d);d=E.getItem(d);if(typeof d!=="string")throw"Storage mechanism: Invalid value was encountered";return zG(d)};
return h};
_.N.clear=function(){Ie(this);this.storage_.clear()};
_.N.key=function(F){Ie(this);return this.storage_.key(F)};
var Ie=function(F){if(F.storage_==null)throw Error("Nc");F.isAvailable()||dI(Error("Nc"))};_.Ma(trn,LU);_.Ma(CIG,LU);_.Ma(q0,vy);q0.prototype.set=function(F,W){this.mechanism_.set(this.JSC$8450_prefix_+F,W)};
q0.prototype.get=function(F){return this.mechanism_.get(this.JSC$8450_prefix_+F)};
q0.prototype.remove=function(F){this.mechanism_.remove(this.JSC$8450_prefix_+F)};
q0.prototype.__iterator__=function(F){var W=this.mechanism_[Symbol.iterator](),E=this,h=new gr;h.next=function(){var d=W.next();if(d.done)return d;for(d=d.value;d.slice(0,E.JSC$8450_prefix_.length)!=E.JSC$8450_prefix_;){d=W.next();if(d.done)return d;d=d.value}return zG(F?d.slice(E.JSC$8450_prefix_.length):E.mechanism_.get(d))};
return h};_.bY=function(F){this.expiringStorage_=(F=_.B8w(F))?new sJ(F):null;this.JSC$8454_domain_=document.domain||window.location.hostname};
_.bY.prototype.set=function(F,W,E,h){E=E||31104E3;this.remove(F);if(this.expiringStorage_)try{this.expiringStorage_.set(F,W,Date.now()+E*1E3);return}catch(V){}var d="";if(h)try{d=escape((0,_.ad)(W))}catch(V){return}else d=escape(W);_.vZ(F,d,E,this.JSC$8454_domain_)};
_.bY.prototype.get=function(F,W){var E=void 0,h=!this.expiringStorage_;if(!h)try{E=this.expiringStorage_.get(F)}catch(d){h=!0}if(h&&(E=_.BZ.get(F,void 0))&&(E=unescape(E),W))try{E=JSON.parse(E)}catch(d){this.remove(F),E=void 0}return E};
_.bY.prototype.remove=function(F){this.expiringStorage_&&this.expiringStorage_.remove(F);_.UWe(F,"/",this.JSC$8454_domain_)};
_.bY.prototype.getCreationTime=function(F){return this.expiringStorage_&&(F=(this.expiringStorage_.getWrapper(F)||{}).creation,typeof F==="number")?F:null};var IUY=function(){var F;return function(){F||(F=new _.bY("ytidb"));return F}}();var DWR;_.ZJ=[];DWR=!1;var yRS=xWw||kMr;var cy={},KFc=(cy.AUTH_INVALID="No user identifier specified.",cy.EXPLICIT_ABORT="Transaction was explicitly aborted.",cy.IDB_NOT_SUPPORTED="IndexedDB is not supported.",cy.MISSING_INDEX="Index not created.",cy.MISSING_OBJECT_STORES="Object stores not created.",cy.DB_DELETED_BY_MISSING_OBJECT_STORES="Database is deleted because expected object stores were not created.",cy.DB_REOPENED_BY_MISSING_OBJECT_STORES="Database is reopened because expected object stores were not created.",cy.UNKNOWN_ABORT=
"Transaction was aborted for unknown reasons.",cy.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",cy.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",cy.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",cy.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",cy),Do={},FRU=(Do.AUTH_INVALID="ERROR",Do.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",Do.EXPLICIT_ABORT="IGNORED",
Do.IDB_NOT_SUPPORTED="ERROR",Do.MISSING_INDEX="WARNING",Do.MISSING_OBJECT_STORES="ERROR",Do.DB_DELETED_BY_MISSING_OBJECT_STORES="WARNING",Do.DB_REOPENED_BY_MISSING_OBJECT_STORES="WARNING",Do.QUOTA_EXCEEDED="WARNING",Do.QUOTA_MAYBE_EXCEEDED="WARNING",Do.UNKNOWN_ABORT="WARNING",Do.INCOMPATIBLE_DB_VERSION="WARNING",Do),xZ={},WR_=(xZ.AUTH_INVALID=!1,xZ.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,xZ.EXPLICIT_ABORT=!1,xZ.IDB_NOT_SUPPORTED=!1,xZ.MISSING_INDEX=!1,xZ.MISSING_OBJECT_STORES=!1,xZ.DB_DELETED_BY_MISSING_OBJECT_STORES=
!1,xZ.DB_REOPENED_BY_MISSING_OBJECT_STORES=!1,xZ.QUOTA_EXCEEDED=!1,xZ.QUOTA_MAYBE_EXCEEDED=!0,xZ.UNKNOWN_ABORT=!0,xZ.INCOMPATIBLE_DB_VERSION=!1,xZ),fU=function(F,W,E,h,d){W=W===void 0?{}:W;E=E===void 0?KFc[F]:E;h=h===void 0?FRU[F]:h;d=d===void 0?WR_[F]:d;_.xC.call(this,E,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:F},W));this.type=F;this.message=E;this.level=h;this.retryable=d;Object.setPrototypeOf(this,fU.prototype)};
_.k(fU,_.xC);var EtM=function(F,W){fU.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:W,foundObjectStores:F},KFc.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,EtM.prototype)};
_.k(EtM,fU);var skY=function(F,W){var E=Error.call(this);this.message=E.message;"stack"in E&&(this.stack=E.stack);this.index=F;this.objectStore=W;Object.setPrototypeOf(this,skY.prototype)};
_.k(skY,Error);var L1R=["The database connection is closing","Can't start a transaction on a closed database","A mutation operation was attempted on a database that did not allow mutations"];var nU=function(F){this.executor=F},ld=function(F){var W=this;
this.state={status:"PENDING"};this.JSC$8482_onFulfilled=[];this.JSC$8482_onRejected=[];F=F.executor;var E=function(d){if(W.state.status==="PENDING"){W.state={status:"FULFILLED",value:d};d=_.U(W.JSC$8482_onFulfilled);for(var V=d.next();!V.done;V=d.next())V=V.value,V()}},h=function(d){if(W.state.status==="PENDING"){W.state={status:"REJECTED",
reason:d};d=_.U(W.JSC$8482_onRejected);for(var V=d.next();!V.done;V=d.next())V=V.value,V()}};
try{F(E,h)}catch(d){h(d)}};
ld.all=function(F){return new ld(new nU(function(W,E){var h=[],d=F.length;d===0&&W(h);for(var V={i$jscomp$504:0};V.i$jscomp$504<F.length;V={i$jscomp$504:V.i$jscomp$504},++V.i$jscomp$504)ld.resolve(F[V.i$jscomp$504]).then(function(R){return function(M){h[R.i$jscomp$504]=M;d--;d===0&&W(h)}}(V)).catch(function(R){E(R)})}))};
ld.resolve=function(F){return new ld(new nU(function(W,E){F instanceof ld?F.then(W,E):W(F)}))};
ld.reject=function(F){return new ld(new nU(function(W,E){E(F)}))};
ld.prototype.then=function(F,W){var E=this,h=F!=null?F:Zgr,d=W!=null?W:$WS;return new ld(new nU(function(V,R){E.state.status==="PENDING"?(E.JSC$8482_onFulfilled.push(function(){hya(E,E,h,V,R)}),E.JSC$8482_onRejected.push(function(){dyU(E,E,d,V,R)})):E.state.status==="FULFILLED"?hya(E,E,h,V,R):E.state.status==="REJECTED"&&dyU(E,E,d,V,R)}))};
ld.prototype.catch=function(F){return this.then(void 0,F)};
var hya=function(F,W,E,h,d){try{if(F.state.status!=="FULFILLED")throw Error("Qc");var V=E(F.state.value);V instanceof ld?N3i(F,W,V,h,d):h(V)}catch(R){d(R)}},dyU=function(F,W,E,h,d){try{if(F.state.status!=="REJECTED")throw Error("Rc");
var V=E(F.state.reason);V instanceof ld?N3i(F,W,V,h,d):h(V)}catch(R){d(R)}},N3i=function(F,W,E,h,d){W===E?d(new TypeError("Sc")):E.then(function(V){V instanceof ld?N3i(F,W,V,h,d):h(V)},function(V){d(V)})};var kZ;kZ=window;_.KU=kZ.ytcsi&&kZ.ytcsi.now?kZ.ytcsi.now:kZ.performance&&kZ.performance.timing&&kZ.performance.now&&kZ.performance.timing.navigationStart?function(){return kZ.performance.timing.navigationStart+kZ.performance.now()}:function(){return(new Date).getTime()};var j5=function(F,W){this.JSC$8494_wrapped=F;this.options=W;this.transactionCount=0;this.startedMs=Math.round((0,_.KU)());this.hasUnknownAbortedTransaction=!1},Rya,eyM,L$,Q__;
j5.prototype.add=function(F,W,E){return _.oA(this,[F],{mode:"readwrite",enableRetries:!0},function(h){return h.objectStore(F).add(W,E)})};
j5.prototype.clear=function(F){return _.oA(this,[F],{mode:"readwrite",enableRetries:!0},function(W){return W.objectStore(F).clear()})};
j5.prototype.close=function(){this.JSC$8494_wrapped.close();var F;((F=this.options)==null?0:F.closed)&&this.options.closed()};
j5.prototype.count=function(F,W){return _.oA(this,[F],{mode:"readonly",enableRetries:!0},function(E){return E.objectStore(F).count(W)})};
var nM=function(F,W,E){F=F.JSC$8494_wrapped.createObjectStore(W,E);return new AC(F)};
j5.prototype.delete=function(F,W){return _.oA(this,[F],{mode:"readwrite",enableRetries:!0},function(E){return E.objectStore(F).delete(W)})};
var VhH=function(F,W){return _.oA(F,["ResponseStore"],{mode:"readwrite",enableRetries:!0},function(E){return E.objectStore("ResponseStore").index("byInterface").delete(W)})};
j5.prototype.get=function(F,W){return _.oA(this,[F],{mode:"readonly",enableRetries:!0},function(E){return E.objectStore(F).get(W)})};
j5.prototype.getAll=function(F,W,E){return _.oA(this,[F],{mode:"readonly",enableRetries:!0},function(h){return h.objectStore(F).getAll(W,E)})};
j5.prototype.put=function(F,W,E){return _.oA(this,[F],{mode:"readwrite",enableRetries:!0},function(h){return h.objectStore(F).put(W,E)})};
j5.prototype.objectStoreNames=function(){return Array.from(this.JSC$8494_wrapped.objectStoreNames)};
_.oA=function(F,W,E,h){var d,V,R,M,g,t,C,B,I,x,A,X;return _.e(function(P){switch(P.nextAddress){case 1:var b={mode:"readonly",enableRetries:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof E==="string"?b.mode=E:Object.assign(b,E);d=b;F.transactionCount++;V=d.enableRetries?3:1;R=0;case 2:if(M){P.jumpTo(4);break}R++;g=Math.round((0,_.KU)());_.Nl(P,5);t=F.JSC$8494_wrapped.transaction(W,d.mode);b=new JRS(t);b=Uyz(b,h);return _.Q(P,b,7);case 7:return C=P.yieldResult,B=Math.round((0,_.KU)()),Rya(F,g,B,R,void 0,
W.join(),d),P.return(C);case 5:I=_.Ml(P);x=Math.round((0,_.KU)());A=qgY(I,F.JSC$8494_wrapped.name,W.join(),F.JSC$8494_wrapped.version);if((X=A instanceof fU&&!A.retryable)||R>=V)Rya(F,g,x,R,A,W.join(),d),M=A;P.jumpTo(2);break;case 4:return P.return(Promise.reject(M))}})};
Rya=function(F,W,E,h,d,V,R){W=E-W;d?(d instanceof fU&&(d.type==="QUOTA_EXCEEDED"||d.type==="QUOTA_MAYBE_EXCEEDED")&&HZ("QUOTA_EXCEEDED",{dbName:Jc(F.JSC$8494_wrapped.name),objectStoreNames:V,transactionCount:F.transactionCount,transactionMode:R.mode}),d instanceof fU&&d.type==="UNKNOWN_ABORT"&&(E-=F.startedMs,E<0&&E>=2147483648&&(E=0),HZ("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:V,transactionDuration:W,transactionCount:F.transactionCount,dbDuration:E}),F.hasUnknownAbortedTransaction=!0),
eyM(F,!1,h,V,W,R.tag),_.Xd(d)):eyM(F,!0,h,V,W,R.tag)};
eyM=function(F,W,E,h,d,V){HZ("TRANSACTION_ENDED",{objectStoreNames:h,connectionHasUnknownAbortedTransaction:F.hasUnknownAbortedTransaction,duration:d,isSuccessful:W,tryCount:E,tag:V===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":V})};
j5.prototype.getVersion=function(){return this.JSC$8494_wrapped.version};
j5.prototype.getName=function(){return this.JSC$8494_wrapped.name};
var AC=function(F){this.JSC$8509_wrapped=F};
AC.prototype.add=function(F,W){return yy(this.JSC$8509_wrapped.add(F,W))};
AC.prototype.autoIncrement=function(){return this.JSC$8509_wrapped.autoIncrement};
AC.prototype.clear=function(){return yy(this.JSC$8509_wrapped.clear()).then(function(){})};
var yA=function(F,W,E){F.JSC$8509_wrapped.createIndex(W,E,{unique:!1})};
AC.prototype.count=function(F){return yy(this.JSC$8509_wrapped.count(F))};
var Mhi=function(F,W){return YC(F,{query:W},function(E){return E.delete().then(function(){return E.continue()})}).then(function(){})};
AC.prototype.delete=function(F){return F instanceof IDBKeyRange?Mhi(this,F):yy(this.JSC$8509_wrapped.delete(F))};
AC.prototype.get=function(F){return yy(this.JSC$8509_wrapped.get(F))};
AC.prototype.getAll=function(F,W){return"getAll"in IDBObjectStore.prototype?yy(this.JSC$8509_wrapped.getAll(F,W)):gtM(this,F,W)};
var gtM=function(F,W,E){var h=[];return YC(F,{query:W},function(d){if(!(E!==void 0&&h.length>=E))return h.push(d.getValue()),d.continue()}).then(function(){return h})};
AC.prototype.index=function(F){try{return new sj(this.JSC$8509_wrapped.index(F))}catch(W){if(W instanceof Error&&W.name==="NotFoundError")throw new skY(F,this.JSC$8509_wrapped.name);throw W;}};
AC.prototype.getName=function(){return this.JSC$8509_wrapped.name};
AC.prototype.keyPath=function(){return this.JSC$8509_wrapped.keyPath};
AC.prototype.put=function(F,W){return yy(this.JSC$8509_wrapped.put(F,W))};
var YC=function(F,W,E){F=F.JSC$8509_wrapped.openCursor(W.query,W.direction);return Q__(F).then(function(h){return PIn(h,E)})},JRS=function(F){var W=this;
this.JSC$8517_wrapped=F;this.objectStoreCache=new Map;this.JSC$8517_aborted=!1;this.done=new Promise(function(E,h){W.JSC$8517_wrapped.addEventListener("complete",function(){E()});
W.JSC$8517_wrapped.addEventListener("error",function(d){d.currentTarget===d.target&&h(W.JSC$8517_wrapped.error)});
W.JSC$8517_wrapped.addEventListener("abort",function(){var d=W.JSC$8517_wrapped.error;if(d)h(d);else if(!W.JSC$8517_aborted){d=fU;for(var V=W.JSC$8517_wrapped.objectStoreNames,R=[],M=0;M<V.length;M++){var g=V.item(M);if(g===null)throw Error("Tc");R.push(g)}d=new d("UNKNOWN_ABORT",{objectStoreNames:R.join(),dbName:W.JSC$8517_wrapped.db.name,mode:W.JSC$8517_wrapped.mode});h(d)}})})},Uyz=function(F,W){var E=new Promise(function(h,d){try{W(F).then(function(V){h(V)}).catch(d)}catch(V){d(V),F.abort()}});
return Promise.all([E,F.done]).then(function(h){return _.U(h).next().value})};
JRS.prototype.abort=function(){this.JSC$8517_wrapped.abort();this.JSC$8517_aborted=!0;throw new fU("EXPLICIT_ABORT");};
JRS.prototype.objectStore=function(F){F=this.JSC$8517_wrapped.objectStore(F);var W=this.objectStoreCache.get(F);W||(W=new AC(F),this.objectStoreCache.set(F,W));return W};
var sj=function(F){this.JSC$8519_wrapped=F};
sj.prototype.count=function(F){return yy(this.JSC$8519_wrapped.count(F))};
sj.prototype.delete=function(F){return _.FH(this,{query:F},function(W){return W.delete().then(function(){return W.continue()})})};
sj.prototype.get=function(F){return yy(this.JSC$8519_wrapped.get(F))};
sj.prototype.getAll=function(F,W){return"getAll"in IDBIndex.prototype?yy(this.JSC$8519_wrapped.getAll(F,W)):zy_(this,F,W)};
var zy_=function(F,W,E){var h=[];return _.FH(F,{query:W},function(d){if(!(E!==void 0&&h.length>=E))return h.push(d.getValue()),d.continue()}).then(function(){return h})};
sj.prototype.keyPath=function(){return this.JSC$8519_wrapped.keyPath};
sj.prototype.unique=function(){return this.JSC$8519_wrapped.unique};
_.FH=function(F,W,E){F=F.JSC$8519_wrapped.openCursor(W.query===void 0?null:W.query,W.direction===void 0?"next":W.direction);return Q__(F).then(function(h){return PIn(h,E)})};
L$=function(F,W){this.request=F;this.cursor=W};
Q__=function(F){return yy(F).then(function(W){return W?new L$(F,W):null})};
L$.prototype.continue=function(F){this.cursor.continue(F);return Q__(this.request)};
L$.prototype.delete=function(){return yy(this.cursor.delete()).then(function(){})};
L$.prototype.getValue=function(){return this.cursor.value};
L$.prototype.update=function(F){return yy(this.cursor.update(F))};var qG=function(F,W){this.name=F;this.options=W;this.isCompatible=!0;this.timesReopenedToFixMissingObjectStore=this.timesDeletedToFixMissingObjectStore=0},thu;
qG.prototype.openDb=function(F,W,E){E=E===void 0?{}:E;return fUR(F,W,E)};
qG.prototype.delete=function(F){F=F===void 0?{}:F;return _.rV(this.name,F)};
thu=function(F,W){return new fU("INCOMPATIBLE_DB_VERSION",{dbName:F.name,oldVersion:F.options.version,newVersion:W})};
_.TC=function(F,W){if(!W)throw bd("openWithToken",Jc(F.name));return F.open()};
qG.prototype.open=function(){var F=this;if(!this.isCompatible)throw thu(this);if(this.connectionPromise)return this.connectionPromise;var W,E=function(){F.connectionPromise===W&&(F.connectionPromise=void 0)},h={blocking:function(V){V.close()},
closed:E,terminated:E,upgrade:this.options.upgrade},d=function(){var V,R,M,g,t,C,B,I,x,A;return _.e(function(X){switch(X.nextAddress){case 1:return R=(V=Error().stack)!=null?V:"",_.Nl(X,2),_.Q(X,F.openDb(F.name,F.options.version,h),4);case 4:for(var P=M=X.yieldResult,b=F.options,l=[],w=_.U(Object.keys(b.objectStores)),G=w.next();!G.done;G=w.next()){G=G.value;var hr=b.objectStores[G],p=hr.removedAtVersion===void 0?Number.MAX_VALUE:hr.removedAtVersion;!(P.JSC$8494_wrapped.version>=hr.addedAtVersion)||
P.JSC$8494_wrapped.version>=p||P.JSC$8494_wrapped.objectStoreNames.contains(G)||l.push(G)}g=l;if(g.length===0){X.jumpTo(5);break}t=Object.keys(F.options.objectStores);C=M.objectStoreNames();if(F.timesReopenedToFixMissingObjectStore<_.dV("ytidb_reopen_db_retries",0))return F.timesReopenedToFixMissingObjectStore++,M.close(),_.Xd(new fU("DB_REOPENED_BY_MISSING_OBJECT_STORES",{dbName:F.name,expectedObjectStores:t,foundObjectStores:C})),X.return(d());if(!(F.timesDeletedToFixMissingObjectStore<_.dV("ytidb_remake_db_retries",
1))){X.jumpTo(6);break}F.timesDeletedToFixMissingObjectStore++;return _.Q(X,F.delete(),7);case 7:return _.Xd(new fU("DB_DELETED_BY_MISSING_OBJECT_STORES",{dbName:F.name,expectedObjectStores:t,foundObjectStores:C})),X.return(d());case 6:throw new EtM(C,t);case 5:return X.return(M);case 2:B=_.Ml(X);if(B instanceof DOMException?B.name!=="VersionError":"DOMError"in self&&B instanceof DOMError?B.name!=="VersionError":!(B instanceof Object&&"message"in B)||B.message!=="An attempt was made to open a database using a lower version than the existing version."){X.jumpTo(8);
break}return _.Q(X,F.openDb(F.name,void 0,Object.assign({},h,{upgrade:void 0})),9);case 9:I=X.yieldResult;x=I.getVersion();if(F.options.version!==void 0&&x>F.options.version+1)throw I.close(),F.isCompatible=!1,thu(F,x);return X.return(I);case 8:throw E(),B instanceof Error&&!_.c("ytidb_async_stack_killswitch")&&(B.stack=B.stack+"\n"+R.substring(R.indexOf("\n")+1)),qgY(B,F.name,"",(A=F.options.version)!=null?A:-1);}})};
return this.connectionPromise=W=d()};var OgW=new qG("YtIdbMeta",{objectStores:{databases:{addedAtVersion:1}},upgrade:function(F,W){W(1)&&nM(F,"databases",{keyPath:"actualName"})}});var rRr,jke=new function(){}(new function(){});new _.eR;var Cf_=function(F,W){qG.call(this,F,W);this.options=W;PZ(F)};
_.k(Cf_,qG);var K1k=function(F,W){var E;return function(){E||(E=new Cf_(F,W));return E}};
Cf_.prototype.openDb=function(F,W,E){E=E===void 0?{}:E;return(this.options.shared?wfW:Ygo)(F,W,Object.assign({},E))};
Cf_.prototype.delete=function(F){F=F===void 0?{}:F;return(this.options.shared?mWo:ufr)(this.name,F)};var B3_={},Fse=me("ytGcfConfig",{objectStores:(B3_.coldConfigStore={addedAtVersion:1},B3_.hotConfigStore={addedAtVersion:1},B3_),shared:!1,upgrade:function(F,W){W(1)&&(yA(nM(F,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),yA(nM(F,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))},
version:1});var vti=function(){_.xj.call(this);this.localHotConfigJobQueue=[];this.sharedHotConfigJobQueue=[];var F=_.ju("yt.gcf.config.hotUpdateCallbacks");F?(this.localHotConfigJobQueue=[].concat(_.x9(F)),this.sharedHotConfigJobQueue=F):(this.sharedHotConfigJobQueue=[],_.S5("yt.gcf.config.hotUpdateCallbacks",this.sharedHotConfigJobQueue))};
_.k(vti,_.xj);vti.prototype.disposeInternal=function(){for(var F=_.U(this.localHotConfigJobQueue),W=F.next();!W.done;W=F.next()){var E=this.sharedHotConfigJobQueue;W=E.indexOf(W.value);W>=0&&E.splice(W,1)}this.localHotConfigJobQueue.length=0;_.xj.prototype.disposeInternal.call(this)};var Ln=function(){var F=this;this.isConfigDbInitialized=!1;this.debounceTimer=this.initJob=0;this.configUpdateService=new vti;this.TEST_ONLY={initializeConfigDb:function(){F.isConfigDbInitialized=!0},
getColdConfigGroup:function(){return F.coldGlobalConfigGroup},
setHotConfigGroup:function(W){I0H(F,W)},
setHotHashData:function(W){F.setHotHashData(W)},
setColdConfigGroup:function(W){cVc(F,W)},
getColdHashData:function(){return F.coldHashData},
getHotHashData:function(){return F.hotHashData},
getHotConfigGroup:function(){return F.hotGlobalConfigGroup},
getExportedColdConfigGroup:function(){return Dya()},
getExportedHotConfigGroup:function(){return $Z()},
getExportedColdHashData:function(){return _.ju("yt.gcf.config.coldHashData")},
getExportedHotHashData:function(){return _.ju("yt.gcf.config.hotHashData")},
triggerScheduleConfigs:function(){xyi(F)},
resetInstance:function(){F.setHotHashData(void 0);k5O(F);delete Ln.instance},
setDebounceTimer:function(W){F.debounceTimer=W},
getDebounceTimer:function(){return F.debounceTimer}}},AVz=function(){if(!Ln.instance){var F=new Ln;
Ln.instance=F}return Ln.instance},qBa=function(F){var W;
_.e(function(E){if(E.nextAddress==1)return _.c("start_client_gcf")||_.c("delete_gcf_config_db")?_.c("start_client_gcf")?_.Q(E,_.pU(),3):E.jumpTo(2):E.return();E.nextAddress!=2&&((W=E.yieldResult)&&_.DJ()&&!_.c("delete_gcf_config_db")?(F.isConfigDbInitialized=!0,xyi(F)):(s_B(F),LRB(F)));return _.c("delete_gcf_config_db")?_.Q(E,V7Y(),0):E.jumpTo(0)})},UrY=function(){var F;
return(F=$Z())!=null?F:_.b0("RAW_HOT_CONFIG_GROUP")},$yX=function(F){var W,E,h,d,V,R;
return _.e(function(M){switch(M.nextAddress){case 1:if(F.hotGlobalConfigGroup)return M.return($Z());if(!F.isConfigDbInitialized)return W=bd("getHotConfig IDB not initialized"),_.i0(W),M.return(Promise.reject(W));E=ud();h=_.b0("TIME_CREATED_MS");if(!E){d=bd("getHotConfig token error");_.i0(d);M.jumpTo(2);break}return _.Q(M,NWe(E),3);case 3:if((V=M.yieldResult)&&V.timestamp>h)return I0H(F,V.config),F.setHotHashData(V.hashData),M.return($Z());case 2:LRB(F);if(!(E&&F.hotGlobalConfigGroup&&F.hotHashData)){M.jumpTo(4);
break}return _.Q(M,EbW(F.hotGlobalConfigGroup,F.hotHashData,E,h),4);case 4:return F.hotGlobalConfigGroup?M.return($Z()):(R=new _.xC("Config not available in ytConfig"),_.i0(R),M.return(Promise.reject(R)))}})},Xcu=function(F){var W,E,h,d,V,R;
return _.e(function(M){switch(M.nextAddress){case 1:if(F.coldGlobalConfigGroup)return M.return(Dya());if(!F.isConfigDbInitialized)return W=bd("getColdConfig IDB not initialized"),_.i0(W),M.return(Promise.reject(W));E=ud();h=_.b0("TIME_CREATED_MS");if(!E){d=bd("getColdConfig");_.i0(d);M.jumpTo(2);break}return _.Q(M,dcb(E),3);case 3:if((V=M.yieldResult)&&V.timestamp>h)return cVc(F,V.config),ZnU(F,V.configData),k5O(F,V.hashData),M.return(Dya());case 2:s_B(F);if(!(E&&F.coldGlobalConfigGroup&&F.coldHashData&&
F.configData)){M.jumpTo(4);break}return _.Q(M,hsY(F.coldGlobalConfigGroup,F.coldHashData,F.configData,E,h),4);case 4:return F.coldGlobalConfigGroup?M.return(Dya()):(R=new _.xC("Config not available in ytConfig"),_.i0(R),M.return(Promise.reject(R)))}})},xyi=function(F){if(!F.hotGlobalConfigGroup||!F.coldGlobalConfigGroup){if(!ud()){var W=bd("scheduleGetConfigs");
_.i0(W)}F.initJob||(F.initJob=_.P0.addLowPriorityJob(function(){return _.e(function(E){switch(E.nextAddress){case 1:return _.Nl(E,2),_.Q(E,$yX(F),4);case 4:_.id(E,3);break;case 2:_.Ml(E);case 3:return _.Nl(E,5),_.Q(E,Xcu(F),7);case 7:_.id(E,6);break;case 5:_.Ml(E);case 6:F.initJob&&(F.initJob=0),_.gG(E)}})},100))}},ETo=function(F,W,E){var h,d,V;
return _.e(function(R){switch(R.nextAddress){case 1:if(!_.c("start_client_gcf")){R.jumpTo(0);break}E&&I0H(F,E);F.setHotHashData(W);h=ud();if(!h){R.jumpTo(3);break}if(E){R.jumpTo(4);break}return _.Q(R,NWe(h),5);case 5:d=R.yieldResult,E=(V=d)==null?void 0:V.config;case 4:return _.Q(R,EbW(E,W,h),3);case 3:if(E)for(var M=E,g=_.U(F.configUpdateService.sharedHotConfigJobQueue),t=g.next();!t.done;t=g.next())t=t.value,t(M);_.gG(R)}})},hKI=function(F,W,E){var h,d,V,R;
return _.e(function(M){if(M.nextAddress==1){if(!_.c("start_client_gcf"))return M.jumpTo(0);k5O(F,W);return(h=ud())?E?M.jumpTo(4):_.Q(M,dcb(h),5):M.jumpTo(0)}M.nextAddress!=4&&(d=M.yieldResult,E=(V=d)==null?void 0:V.config);if(!E)return M.jumpTo(0);R=E.configData;return _.Q(M,hsY(E,W,R,h),0)})},sjY=function(){var F=AVz(),W=(0,_.KU)()-F.debounceTimer;
if(!(F.debounceTimer!==0&&W<_.dV("send_config_hash_timer"))){W=_.ju("yt.gcf.config.coldConfigData");var E=_.ju("yt.gcf.config.hotHashData"),h=_.ju("yt.gcf.config.coldHashData");W&&E&&h&&(F.debounceTimer=(0,_.KU)());return{coldConfigData:W,hotHashData:E,coldHashData:h}}},s_B=function(F){cVc(F,_.b0("RAW_COLD_CONFIG_GROUP"));
k5O(F,_.b0("SERIALIZED_COLD_HASH_DATA"));var W;ZnU(F,(W=F.coldGlobalConfigGroup)==null?void 0:W.configData)},LRB=function(F){I0H(F,_.b0("RAW_HOT_CONFIG_GROUP"));
F.setHotHashData(_.b0("SERIALIZED_HOT_HASH_DATA"))},I0H=function(F,W){F.hotGlobalConfigGroup=W;
_.S5("yt.gcf.config.hotConfigGroup",F.hotGlobalConfigGroup||null)},cVc=function(F,W){F.coldGlobalConfigGroup=W;
_.S5("yt.gcf.config.coldConfigGroup",F.coldGlobalConfigGroup||null)};
Ln.prototype.setHotHashData=function(F){this.hotHashData=F;_.S5("yt.gcf.config.hotHashData",this.hotHashData||null)};
var k5O=function(F,W){F.coldHashData=W;_.S5("yt.gcf.config.coldHashData",F.coldHashData||null)},ZnU=function(F,W){F.configData=W;
_.S5("yt.gcf.config.coldConfigData",F.configData||null)},$Z=function(){return _.ju("yt.gcf.config.hotConfigGroup")},Dya=function(){return _.ju("yt.gcf.config.coldConfigGroup")};var M1={},Hnc=typeof Uint8Array!=="undefined"&&typeof Uint16Array!=="undefined"&&typeof Int32Array!=="undefined";M1.assign=function(F){for(var W=Array.prototype.slice.call(arguments,1);W.length;){var E=W.shift();if(E){if(typeof E!=="object")throw new TypeError("Wc`"+E);for(var h in E)Object.prototype.hasOwnProperty.call(E,h)&&(F[h]=E[h])}}return F};
M1.shrinkBuf=function(F,W){if(F.length===W)return F;if(F.subarray)return F.subarray(0,W);F.length=W;return F};
var PfB={arraySet:function(F,W,E,h,d){if(W.subarray&&F.subarray)F.set(W.subarray(E,E+h),d);else for(var V=0;V<h;V++)F[d+V]=W[E+V]},
flattenChunks:function(F){var W,E;var h=E=0;for(W=F.length;h<W;h++)E+=F[h].length;var d=new Uint8Array(E);h=E=0;for(W=F.length;h<W;h++){var V=F[h];d.set(V,E);E+=V.length}return d}},JVe={arraySet:function(F,W,E,h,d){for(var V=0;V<h;V++)F[d+V]=W[E+V]},
flattenChunks:function(F){return[].concat.apply([],F)}};
M1.setTyped=function(){Hnc?(M1.Buf8=Uint8Array,M1.Buf16=Uint16Array,M1.Buf32=Int32Array,M1.assign(M1,PfB)):(M1.Buf8=Array,M1.Buf16=Array,M1.Buf32=Array,M1.assign(M1,JVe))};
M1.setTyped();var a0e=!0;try{new Uint8Array(1)}catch(F){a0e=!1}
var NRS=function(F){var W,E,h=F.length,d=0;for(W=0;W<h;W++){var V=F.charCodeAt(W);if((V&64512)===55296&&W+1<h){var R=F.charCodeAt(W+1);(R&64512)===56320&&(V=65536+(V-55296<<10)+(R-56320),W++)}d+=V<128?1:V<2048?2:V<65536?3:4}var M=new M1.Buf8(d);for(W=E=0;E<d;W++)V=F.charCodeAt(W),(V&64512)===55296&&W+1<h&&(R=F.charCodeAt(W+1),(R&64512)===56320&&(V=65536+(V-55296<<10)+(R-56320),W++)),V<128?M[E++]=V:(V<2048?M[E++]=192|V>>>6:(V<65536?M[E++]=224|V>>>12:(M[E++]=240|V>>>18,M[E++]=128|V>>>12&63),M[E++]=
128|V>>>6&63),M[E++]=128|V&63);return M};var GJw={};GJw=function(F,W,E,h){var d=F&65535|0;F=F>>>16&65535|0;for(var V;E!==0;){V=E>2E3?2E3:E;E-=V;do d=d+W[h++]|0,F=F+d|0;while(--V);d%=65521;F%=65521}return d|F<<16|0};for(var q1={},Zo,f0u=[],OnT=0;OnT<256;OnT++){Zo=OnT;for(var bnB=0;bnB<8;bnB++)Zo=Zo&1?3988292384^Zo>>>1:Zo>>>1;f0u[OnT]=Zo}q1=function(F,W,E,h){E=h+E;for(F^=-1;h<E;h++)F=F>>>8^f0u[(F^W[h])&255];return F^-1};var B0={};B0={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"};var f2o=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],bYI=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],dnY=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],TWW=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],x7=Array(576);VA(x7);var k7=Array(60);VA(k7);var tH=Array(512);VA(tH);var ge=Array(256);VA(ge);var OYo=Array(29);VA(OYo);var l2o=Array(30);VA(l2o);var WfY,Err,h0G,Ffn=!1;var H0;
H0=[new XH(0,0,0,0,function(F,W){var E=65535;for(E>F.pending_buf_size-5&&(E=F.pending_buf_size-5);;){if(F.lookahead<=1){$7(F);if(F.lookahead===0&&W===0)return 1;if(F.lookahead===0)break}F.strstart+=F.lookahead;F.lookahead=0;var h=F.block_start+E;if(F.strstart===0||F.strstart>=h)if(F.lookahead=F.strstart-h,F.strstart=h,AH(F,!1),F.strm.avail_out===0)return 1;if(F.strstart-F.block_start>=F.w_size-262&&(AH(F,!1),F.strm.avail_out===0))return 1}F.insert=0;if(W===4)return AH(F,!0),F.strm.avail_out===0?3:
4;F.strstart>F.block_start&&AH(F,!1);return 1}),
new XH(4,4,8,4,YTk),new XH(4,5,16,8,YTk),new XH(4,6,32,32,YTk),new XH(4,4,16,16,Zp),new XH(8,16,32,32,Zp),new XH(8,16,128,128,Zp),new XH(8,32,128,256,Zp),new XH(32,128,258,1024,Zp),new XH(32,258,258,4096,Zp)];var KsR={};KsR=function(){this.input=null;this.total_in=this.avail_in=this.next_in=0;this.output=null;this.total_out=this.avail_out=this.next_out=0;this.msg="";this.state=null;this.data_type=2;this.adler=0};var VFY=Object.prototype.toString;
mcI.prototype.push=function(F,W){var E=this.strm,h=this.options.chunkSize;if(this.ended)return!1;var d=W===~~W?W:W===!0?4:0;typeof F==="string"?E.input=NRS(F):VFY.call(F)==="[object ArrayBuffer]"?E.input=new Uint8Array(F):E.input=F;E.next_in=0;E.avail_in=E.input.length;do{E.avail_out===0&&(E.output=new M1.Buf8(h),E.next_out=0,E.avail_out=h);F=p5Y(E,d);if(F!==1&&F!==0)return l0p(this,F),this.ended=!0,!1;if(E.avail_out===0||E.avail_in===0&&(d===4||d===2))if(this.options.to==="string"){var V=M1.shrinkBuf(E.output,
E.next_out);W=V;V=V.length;if(V<65537&&(W.subarray&&a0e||!W.subarray))W=String.fromCharCode.apply(null,M1.shrinkBuf(W,V));else{for(var R="",M=0;M<V;M++)R+=String.fromCharCode(W[M]);W=R}this.chunks.push(W)}else W=M1.shrinkBuf(E.output,E.next_out),this.chunks.push(W)}while((E.avail_in>0||E.avail_out===0)&&F!==1);if(d===4)return(E=this.strm)&&E.state?(h=E.state.status,h!==42&&h!==69&&h!==73&&h!==91&&h!==103&&h!==113&&h!==666?F=Ir(E,-2):(E.state=null,F=h===113?Ir(E,-3):0)):F=-2,l0p(this,F),this.ended=
!0,F===0;d===2&&(l0p(this,0),E.avail_out=0);return!0};
var l0p=function(F,W){W===0&&(F.result=F.options.to==="string"?F.chunks.join(""):M1.flattenChunks(F.chunks));F.chunks=[];F.err=W;F.msg=F.strm.msg};var ntB=typeof TextEncoder!=="undefined"?new TextEncoder:null,OVo=ntB?function(F){return ntB.encode(F)}:function(F){F=_.Dq(F);
for(var W=new Uint8Array(F.length),E=0;E<W.length;E++)W[E]=F[E];return W};var M3o={next:"wn_s",browse:"br_s",search:"sr_s",reel:"r_wrs",player:"ps_s"},Qew={next:"wn_r",browse:"br_r",search:"sr_r",reel:"r_wrr",player:"ps_r"};var XU=function(F,W){this.version=F;this.args=W};
XU.prototype.serialize=function(){return{version:this.version,args:this.args}};var grn=function(F,W){this.topic=F;this.dataClass=W};
grn.prototype.toString=function(){return this.topic};var yVT=_.ju("ytPubsub2Pubsub2Instance")||new _.tc;_.tc.prototype.subscribe=_.tc.prototype.subscribe;_.tc.prototype.unsubscribeByKey=_.tc.prototype.unsubscribeByKey;_.tc.prototype.publish=_.tc.prototype.publish;_.tc.prototype.clear=_.tc.prototype.clear;_.S5("ytPubsub2Pubsub2Instance",yVT);var MFo=_.ju("ytPubsub2Pubsub2SubscribedKeys")||{};_.S5("ytPubsub2Pubsub2SubscribedKeys",MFo);var z0w=_.ju("ytPubsub2Pubsub2TopicToKeys")||{};_.S5("ytPubsub2Pubsub2TopicToKeys",z0w);
var Qxr=_.ju("ytPubsub2Pubsub2IsAsync")||{};_.S5("ytPubsub2Pubsub2IsAsync",Qxr);_.S5("ytPubsub2Pubsub2SkipSubKey",null);var AEw=void 0,xno=void 0;var PCW=_.dV("max_body_size_to_compress",5E5),JER=_.dV("min_body_size_to_compress",500),ar=!0,nrn=0,fM=0,lsb=_.dV("compression_performance_threshold_lr",250),yEW=_.dV("slow_compressions_before_abandon_count",4),q_W=!1,$nR=new Map,fsY=1,asG=!0;_.Ma(Om,rEY);Om.prototype.reset=function(){this.chain_[0]=1732584193;this.chain_[1]=4023233417;this.chain_[2]=2562383102;this.chain_[3]=271733878;this.chain_[4]=3285377520;this.total_=this.inbuf_=0};
var j_H=function(F,W,E){E||(E=0);var h=F.W_;if(typeof W==="string")for(var d=0;d<16;d++)h[d]=W.charCodeAt(E)<<24|W.charCodeAt(E+1)<<16|W.charCodeAt(E+2)<<8|W.charCodeAt(E+3),E+=4;else for(d=0;d<16;d++)h[d]=W[E]<<24|W[E+1]<<16|W[E+2]<<8|W[E+3],E+=4;for(W=16;W<80;W++)E=h[W-3]^h[W-8]^h[W-14]^h[W-16],h[W]=(E<<1|E>>>31)&4294967295;W=F.chain_[0];E=F.chain_[1];d=F.chain_[2];for(var V=F.chain_[3],R=F.chain_[4],M,g,t=0;t<80;t++)t<40?t<20?(M=V^E&(d^V),g=1518500249):(M=E^d^V,g=1859775393):t<60?(M=E&d|V&(E|d),
g=2400959708):(M=E^d^V,g=3395469782),M=(W<<5|W>>>27)+M+R+g+h[t]&4294967295,R=V,V=d,d=(E<<30|E>>>2)&4294967295,E=W,W=M;F.chain_[0]=F.chain_[0]+W&4294967295;F.chain_[1]=F.chain_[1]+E&4294967295;F.chain_[2]=F.chain_[2]+d&4294967295;F.chain_[3]=F.chain_[3]+V&4294967295;F.chain_[4]=F.chain_[4]+R&4294967295};
Om.prototype.update=function(F,W){if(F!=null){W===void 0&&(W=F.length);for(var E=W-this.blockSize,h=0,d=this.buf_,V=this.inbuf_;h<W;){if(V==0)for(;h<=E;)j_H(this,F,h),h+=this.blockSize;if(typeof F==="string")for(;h<W;){if(d[V]=F.charCodeAt(h),++V,++h,V==this.blockSize){j_H(this,d);V=0;break}}else for(;h<W;)if(d[V]=F[h],++V,++h,V==this.blockSize){j_H(this,d);V=0;break}}this.inbuf_=V;this.total_+=W}};
Om.prototype.digest=function(){var F=[],W=this.total_*8;this.inbuf_<56?this.update(this.pad_,56-this.inbuf_):this.update(this.pad_,this.blockSize-(this.inbuf_-56));for(var E=this.blockSize-1;E>=56;E--)this.buf_[E]=W&255,W/=256;j_H(this,this.buf_);for(E=W=0;E<5;E++)for(var h=24;h>=0;h-=8)F[W]=this.chain_[E]>>h&255,++W;return F};var GrS;var Py=function(F){var W=this;this.bypassDbTokenDependency=this.initialized=!1;this.potentialEsfErrorCounter=this.intervalJob=0;this.handleError=function(){};
this.handleWarning=function(){};
this.now=Date.now;this.disableYtIdbTransactions=!1;this.TEST_ONLY={setDbToken:function(C){W.databaseToken=C},
triggerThrottle:function(){W.throttledSend()},
cancelThrottle:function(){W.cancelThrottledSend()},
immediateSend:function(C){return _.e(function(B){return _.Q(B,W.immediateSend(C),0)})},
requestWithinAgeLimit:function(C,B){return W.requestWithinAgeLimit(C,B)},
retryQueuedRequests:function(){W.retryQueuedRequests()}};
var E;this.throttleTimeout=(E=F.throttleTimeout)!=null?E:100;var h;this.retryMaxAttempts=(h=F.retryMaxAttempts)!=null?h:1;var d;this.requestAgeLimitMs=(d=F.requestAgeLimitMs)!=null?d:2592E6;var V;this.queuedRequestAgeLimitMs=(V=F.queuedRequestAgeLimitMs)!=null?V:12E4;var R;this.retryDelayMs=(R=F.retryDelayMs)!=null?R:5E3;var M;this.databaseToken=(M=F.databaseToken)!=null?M:void 0;this.enableCleaning=!!F.enableCleaning;var g;this.cleaningRate=(g=F.cleaningRate)!=null?g:.1;var t;this.potentialEsfErrorLimit=
(t=F.potentialEsfErrorLimit)!=null?t:10;F.handleError&&(this.handleError=F.handleError);F.handleWarning&&(this.handleWarning=F.handleWarning);F.disableYtIdbTransactions&&(this.disableYtIdbTransactions=F.disableYtIdbTransactions);F.bypassDbTokenDependency&&(this.bypassDbTokenDependency=F.bypassDbTokenDependency);this.getBooleanFlag=F.getBooleanFlag;this.jobManager=F.jobManager;this.logsStore=F.logsStore;this.networkManager=F.networkManager;this.sendFn=F.sendFn;this.onlineEvent=F.onlineEvent;this.offlineEvent=
F.offlineEvent;Hy(this)&&(!this.getBooleanFlag||this.getBooleanFlag("networkless_logging"))&&ine(this)},ine=function(F){Hy(F)&&!F.disableYtIdbTransactions&&(F.initialized=!0,F.enableCleaning&&Math.random()<=F.cleaningRate&&F.logsStore.cleanLogsStore(F.databaseToken),F.retryQueuedRequests(),F.networkManager.isNetworkAvailable()&&F.throttledSend(),F.networkManager.listen(F.onlineEvent,F.throttledSend.bind(F)),F.networkManager.listen(F.offlineEvent,F.cancelThrottledSend.bind(F)))};
_.N=Py.prototype;_.N.writeThenSend=function(F,W){var E=this;W=W===void 0?{}:W;if(Hy(this)&&this.initialized){var h={url:F,options:W,timestamp:this.now(),status:"NEW",sendCount:0};this.logsStore.set(h,this.databaseToken).then(function(d){h.id=d;E.networkManager.isNetworkAvailable()&&E.immediateSend(h)}).catch(function(d){E.immediateSend(h);
rVe(E,d)})}else this.sendFn(F,W)};
_.N.sendThenWrite=function(F,W,E){var h=this;W=W===void 0?{}:W;if(Hy(this)&&this.initialized){var d={url:F,options:W,timestamp:this.now(),status:"NEW",sendCount:0};this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&(d.skipRetry=E);if(this.networkManager.isNetworkAvailable()||this.getBooleanFlag&&this.getBooleanFlag("nwl_aggressive_send_then_write")&&!d.skipRetry){if(!d.skipRetry){var V=W.onError?W.onError:function(){};
W.onError=function(R,M){return _.e(function(g){if(g.nextAddress==1)return _.Q(g,h.logsStore.set(d,h.databaseToken).catch(function(t){rVe(h,t)}),2);
V(R,M);_.gG(g)})}}this.sendFn(F,W,d.skipRetry)}else this.logsStore.set(d,this.databaseToken).catch(function(R){h.sendFn(F,W,d.skipRetry);
rVe(h,R)})}else this.sendFn(F,W,this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&E)};
_.N.sendAndWrite=function(F,W){var E=this;W=W===void 0?{}:W;if(Hy(this)&&this.initialized){var h={url:F,options:W,timestamp:this.now(),status:"NEW",sendCount:0},d=!1,V=W.onSuccess?W.onSuccess:function(){};
h.options.onSuccess=function(R,M){h.id!==void 0?E.logsStore.deleteRequest(h.id,E.databaseToken):d=!0;E.networkManager.networkStatusHint&&E.getBooleanFlag&&E.getBooleanFlag("vss_network_hint")&&E.networkManager.networkStatusHint(!0);V(R,M)};
this.sendFn(h.url,h.options,void 0,!0);this.logsStore.set(h,this.databaseToken).then(function(R){h.id=R;d&&E.logsStore.deleteRequest(h.id,E.databaseToken)}).catch(function(R){rVe(E,R)})}else this.sendFn(F,W,void 0,!0)};
_.N.throttledSend=function(){var F=this;if(!Hy(this))throw Error("Zc");this.intervalJob||(this.intervalJob=this.jobManager.addLowPriorityJob(function(){var W;return _.e(function(E){if(E.nextAddress==1)return _.Q(E,F.logsStore.getMostRecentByStatus("NEW",F.databaseToken),2);if(E.nextAddress!=3)return W=E.yieldResult,W?_.Q(E,F.immediateSend(W),3):(F.cancelThrottledSend(),E.return());F.intervalJob&&(F.intervalJob=0,F.throttledSend());_.gG(E)})},this.throttleTimeout))};
_.N.cancelThrottledSend=function(){this.jobManager.cancelJob(this.intervalJob);this.intervalJob=0};
_.N.immediateSend=function(F){var W=this,E;return _.e(function(h){switch(h.nextAddress){case 1:if(!Hy(W))throw Error("$c");if(F.id===void 0){h.jumpTo(2);break}return _.Q(h,W.logsStore.markAsQueued(F.id,W.databaseToken),3);case 3:(E=h.yieldResult)||W.handleWarning(Error("ad"));case 2:if(W.requestWithinAgeLimit(F,W.requestAgeLimitMs)){h.jumpTo(4);break}W.handleWarning(Error("bd"));if(F.id===void 0){h.jumpTo(5);break}return _.Q(h,W.logsStore.deleteRequest(F.id,W.databaseToken),5);case 5:return h.return();
case 4:F.skipRetry||(F=T3p(W,F));if(!F){h.jumpTo(0);break}if(!F.skipRetry||F.id===void 0){h.jumpTo(8);break}return _.Q(h,W.logsStore.deleteRequest(F.id,W.databaseToken),8);case 8:W.sendFn(F.url,F.options,!!F.skipRetry),_.gG(h)}})};
var T3p=function(F,W){if(!Hy(F))throw Error("cd");var E=W.options.onError?W.options.onError:function(){};
W.options.onError=function(d,V){var R,M,g,t;return _.e(function(C){switch(C.nextAddress){case 1:R=pze(V);(M=mne(V))&&F.getBooleanFlag&&F.getBooleanFlag("web_enable_error_204")&&F.handleError(Error("dd"),W.url,V);if(!(F.getBooleanFlag&&F.getBooleanFlag("nwl_consider_error_code")&&R||F.getBooleanFlag&&!F.getBooleanFlag("nwl_consider_error_code")&&F.potentialEsfErrorCounter<=F.potentialEsfErrorLimit)){C.jumpTo(2);break}if(!F.networkManager.sendNetworkCheckRequest){C.jumpTo(3);break}return _.Q(C,F.networkManager.sendNetworkCheckRequest(),
3);case 3:if(F.networkManager.isNetworkAvailable()){C.jumpTo(2);break}E(d,V);if(!F.getBooleanFlag||!F.getBooleanFlag("nwl_consider_error_code")||((g=W)==null?void 0:g.id)===void 0){C.jumpTo(6);break}return _.Q(C,F.logsStore.resetRequest(W.id,F.databaseToken,!1),6);case 6:return C.return();case 2:if(F.getBooleanFlag&&F.getBooleanFlag("nwl_consider_error_code")&&!R&&F.potentialEsfErrorCounter>F.potentialEsfErrorLimit)return C.return();F.potentialEsfErrorCounter++;if(((t=W)==null?void 0:t.id)===void 0){C.jumpTo(8);
break}return W.sendCount<F.retryMaxAttempts?_.Q(C,F.logsStore.resetRequest(W.id,F.databaseToken,!0,M?!1:void 0),12):_.Q(C,F.logsStore.deleteRequest(W.id,F.databaseToken),8);case 12:F.jobManager.addLowPriorityJob(function(){F.networkManager.isNetworkAvailable()&&F.throttledSend()},F.retryDelayMs);
case 8:E(d,V),_.gG(C)}})};
var h=W.options.onSuccess?W.options.onSuccess:function(){};
W.options.onSuccess=function(d,V){var R;return _.e(function(M){if(M.nextAddress==1)return((R=W)==null?void 0:R.id)===void 0?M.jumpTo(2):_.Q(M,F.logsStore.deleteRequest(W.id,F.databaseToken),2);F.networkManager.networkStatusHint&&F.getBooleanFlag&&F.getBooleanFlag("vss_network_hint")&&F.networkManager.networkStatusHint(!0);h(d,V);_.gG(M)})};
return W};
Py.prototype.requestWithinAgeLimit=function(F,W){F=F.timestamp;return this.now()-F>=W?!1:!0};
Py.prototype.retryQueuedRequests=function(){var F=this;if(!Hy(this))throw Error("ed");this.logsStore.getMostRecentByStatus("QUEUED",this.databaseToken).then(function(W){W&&!F.requestWithinAgeLimit(W,F.queuedRequestAgeLimitMs)?F.jobManager.addLowPriorityJob(function(){return _.e(function(E){if(E.nextAddress==1)return W.id===void 0?E.jumpTo(2):_.Q(E,F.logsStore.resetRequest(W.id,F.databaseToken),2);F.retryQueuedRequests();_.gG(E)})}):F.networkManager.isNetworkAvailable()&&F.throttledSend()})};
var rVe=function(F,W){F.writeError&&!F.networkManager.isNetworkAvailable()?F.writeError(W):F.handleError(W)},Hy=function(F){return!!F.databaseToken||F.bypassDbTokenDependency};var Kfr;var ViR={accountStateChangeSignedIn:23,accountStateChangeSignedOut:24,delayedEventMetricCaptured:11,latencyActionBaselined:6,latencyActionInfo:7,latencyActionTicked:5,offlineTransferStatusChanged:2,offlineImageDownload:335,playbackStartStateChanged:9,systemHealthCaptured:3,mangoOnboardingCompleted:10,mangoPushNotificationReceived:230,mangoUnforkDbMigrationError:121,mangoUnforkDbMigrationSummary:122,mangoUnforkDbMigrationPreunforkDbVersionNumber:133,mangoUnforkDbMigrationPhoneMetadata:134,mangoUnforkDbMigrationPhoneStorage:135,
mangoUnforkDbMigrationStep:142,mangoAsyncApiMigrationEvent:223,mangoDownloadVideoResult:224,mangoHomepageVideoCount:279,mangoHomeV3State:295,mangoImageClientCacheHitEvent:273,sdCardStatusChanged:98,framesDropped:12,thumbnailHovered:13,deviceRetentionInfoCaptured:14,thumbnailLoaded:15,backToAppEvent:318,streamingStatsCaptured:17,offlineVideoShared:19,appCrashed:20,youThere:21,offlineStateSnapshot:22,mdxSessionStarted:25,mdxSessionConnected:26,mdxSessionDisconnected:27,bedrockResourceConsumptionSnapshot:28,
nextGenWatchWatchSwiped:29,kidsAccountsSnapshot:30,zeroStepChannelCreated:31,tvhtml5SearchCompleted:32,offlineSharePairing:34,offlineShareUnlock:35,mdxRouteDistributionSnapshot:36,bedrockRepetitiveActionTimed:37,unpluggedDegradationInfo:229,uploadMp4HeaderMoved:38,uploadVideoTranscoded:39,uploadProcessorStarted:46,uploadProcessorEnded:47,uploadProcessorReady:94,uploadProcessorRequirementPending:95,uploadProcessorInterrupted:96,uploadFrontendEvent:241,assetPackDownloadStarted:41,assetPackDownloaded:42,
assetPackApplied:43,assetPackDeleted:44,appInstallAttributionEvent:459,playbackSessionStopped:45,adBlockerMessagingShown:48,distributionChannelCaptured:49,dataPlanCpidRequested:51,detailedNetworkTypeCaptured:52,sendStateUpdated:53,receiveStateUpdated:54,sendDebugStateUpdated:55,receiveDebugStateUpdated:56,kidsErrored:57,mdxMsnSessionStatsFinished:58,appSettingsCaptured:59,mdxWebSocketServerHttpError:60,mdxWebSocketServer:61,startupCrashesDetected:62,coldStartInfo:435,offlinePlaybackStarted:63,liveChatMessageSent:225,
liveChatUserPresent:434,liveChatBeingModerated:457,liveCreationCameraUpdated:64,liveCreationEncodingCaptured:65,liveCreationError:66,liveCreationHealthUpdated:67,liveCreationVideoEffectsCaptured:68,liveCreationStageOccured:75,liveCreationBroadcastScheduled:123,liveCreationArchiveReplacement:149,liveCreationCostreamingConnection:421,liveCreationStreamWebrtcStats:288,mdxSessionRecoveryStarted:69,mdxSessionRecoveryCompleted:70,mdxSessionRecoveryStopped:71,visualElementShown:72,visualElementHidden:73,
visualElementGestured:78,visualElementStateChanged:208,screenCreated:156,playbackAssociated:202,visualElementAttached:215,playbackContextEvent:214,cloudCastingPlaybackStarted:74,webPlayerApiCalled:76,tvhtml5AccountDialogOpened:79,foregroundHeartbeat:80,foregroundHeartbeatScreenAssociated:111,kidsOfflineSnapshot:81,mdxEncryptionSessionStatsFinished:82,playerRequestCompleted:83,liteSchedulerStatistics:84,mdxSignIn:85,spacecastMetadataLookupRequested:86,spacecastBatchLookupRequested:87,spacecastSummaryRequested:88,
spacecastPlayback:89,spacecastDiscovery:90,tvhtml5LaunchUrlComponentChanged:91,mdxBackgroundPlaybackRequestCompleted:92,mdxBrokenAdditionalDataDeviceDetected:93,tvhtml5LocalStorage:97,tvhtml5DeviceStorageStatus:147,autoCaptionsAvailable:99,playbackScrubbingEvent:339,flexyState:100,interfaceOrientationCaptured:101,mainAppBrowseFragmentCache:102,offlineCacheVerificationFailure:103,offlinePlaybackExceptionDigest:217,vrCopresenceStats:104,vrCopresenceSyncStats:130,vrCopresenceCommsStats:137,vrCopresencePartyStats:153,
vrCopresenceEmojiStats:213,vrCopresenceEvent:141,vrCopresenceFlowTransitEvent:160,vrCowatchPartyEvent:492,vrCowatchUserStartOrJoinEvent:504,vrPlaybackEvent:345,kidsAgeGateTracking:105,offlineDelayAllowedTracking:106,mainAppAutoOfflineState:107,videoAsThumbnailDownload:108,videoAsThumbnailPlayback:109,liteShowMore:110,renderingError:118,kidsProfilePinGateTracking:119,abrTrajectory:124,scrollEvent:125,streamzIncremented:126,kidsProfileSwitcherTracking:127,kidsProfileCreationTracking:129,buyFlowStarted:136,
mbsConnectionInitiated:138,mbsPlaybackInitiated:139,mbsLoadChildren:140,liteProfileFetcher:144,mdxRemoteTransaction:146,reelPlaybackError:148,reachabilityDetectionEvent:150,mobilePlaybackEvent:151,courtsidePlayerStateChanged:152,musicPersistentCacheChecked:154,musicPersistentCacheCleared:155,playbackInterrupted:157,playbackInterruptionResolved:158,fixFopFlow:159,anrDetection:161,backstagePostCreationFlowEnded:162,clientError:163,gamingAccountLinkStatusChanged:164,liteHousewarming:165,buyFlowEvent:167,
kidsParentalGateTracking:168,kidsSignedOutSettingsStatus:437,kidsSignedOutPauseHistoryFixStatus:438,tvhtml5WatchdogViolation:444,ypcUpgradeFlow:169,yongleStudy:170,ypcUpdateFlowStarted:171,ypcUpdateFlowCancelled:172,ypcUpdateFlowSucceeded:173,ypcUpdateFlowFailed:174,liteGrowthkitPromo:175,paymentFlowStarted:341,transactionFlowShowPaymentDialog:405,transactionFlowStarted:176,transactionFlowSecondaryDeviceStarted:222,transactionFlowSecondaryDeviceSignedOutStarted:383,transactionFlowCancelled:177,transactionFlowPaymentCallBackReceived:387,
transactionFlowPaymentSubmitted:460,transactionFlowPaymentSucceeded:329,transactionFlowSucceeded:178,transactionFlowFailed:179,transactionFlowPlayBillingConnectionStartEvent:428,transactionFlowSecondaryDeviceSuccess:458,transactionFlowErrorEvent:411,liteVideoQualityChanged:180,watchBreakEnablementSettingEvent:181,watchBreakFrequencySettingEvent:182,videoEffectsCameraPerformanceMetrics:183,adNotify:184,startupTelemetry:185,playbackOfflineFallbackUsed:186,outOfMemory:187,ypcPauseFlowStarted:188,ypcPauseFlowCancelled:189,
ypcPauseFlowSucceeded:190,ypcPauseFlowFailed:191,uploadFileSelected:192,ypcResumeFlowStarted:193,ypcResumeFlowCancelled:194,ypcResumeFlowSucceeded:195,ypcResumeFlowFailed:196,adsClientStateChange:197,ypcCancelFlowStarted:198,ypcCancelFlowCancelled:199,ypcCancelFlowSucceeded:200,ypcCancelFlowFailed:201,ypcCancelFlowGoToPaymentProcessor:402,ypcDeactivateFlowStarted:320,ypcRedeemFlowStarted:203,ypcRedeemFlowCancelled:204,ypcRedeemFlowSucceeded:205,ypcRedeemFlowFailed:206,ypcFamilyCreateFlowStarted:258,
ypcFamilyCreateFlowCancelled:259,ypcFamilyCreateFlowSucceeded:260,ypcFamilyCreateFlowFailed:261,ypcFamilyManageFlowStarted:262,ypcFamilyManageFlowCancelled:263,ypcFamilyManageFlowSucceeded:264,ypcFamilyManageFlowFailed:265,restoreContextEvent:207,embedsAdEvent:327,autoplayTriggered:209,clientDataErrorEvent:210,experimentalVssValidation:211,tvhtml5TriggeredEvent:212,tvhtml5FrameworksFieldTrialResult:216,tvhtml5FrameworksFieldTrialStart:220,musicOfflinePreferences:218,watchTimeSegment:219,appWidthLayoutError:221,
accountRegistryChange:226,userMentionAutoCompleteBoxEvent:227,downloadRecommendationEnablementSettingEvent:228,musicPlaybackContentModeChangeEvent:231,offlineDbOpenCompleted:232,kidsFlowEvent:233,kidsFlowCorpusSelectedEvent:234,videoEffectsEvent:235,unpluggedOpsEogAnalyticsEvent:236,playbackAudioRouteEvent:237,interactionLoggingDebugModeError:238,offlineYtbRefreshed:239,kidsFlowError:240,musicAutoplayOnLaunchAttempted:242,deviceContextActivityEvent:243,deviceContextEvent:244,templateResolutionException:245,
musicSideloadedPlaylistServiceCalled:246,embedsStorageAccessNotChecked:247,embedsHasStorageAccessResult:248,embedsItpPlayedOnReload:249,embedsRequestStorageAccessResult:250,embedsShouldRequestStorageAccessResult:251,embedsRequestStorageAccessState:256,embedsRequestStorageAccessFailedState:257,embedsItpWatchLaterResult:266,searchSuggestDecodingPayloadFailure:252,siriShortcutActivated:253,tvhtml5KeyboardPerformance:254,latencyActionSpan:255,elementsLog:267,ytbFileOpened:268,tfliteModelError:269,apiTest:270,
yongleUsbSetup:271,touStrikeInterstitialEvent:272,liteStreamToSave:274,appBundleClientEvent:275,ytbFileCreationFailed:276,adNotifyFailure:278,ytbTransferFailed:280,blockingRequestFailed:281,liteAccountSelector:282,liteAccountUiCallbacks:283,dummyPayload:284,browseResponseValidationEvent:285,entitiesError:286,musicIosBackgroundFetch:287,mdxNotificationEvent:289,layersValidationError:290,musicPwaInstalled:291,liteAccountCleanup:292,html5PlayerHealthEvent:293,watchRestoreAttempt:294,liteAccountSignIn:296,
notaireEvent:298,kidsVoiceSearchEvent:299,adNotifyFilled:300,delayedEventDropped:301,analyticsSearchEvent:302,systemDarkThemeOptOutEvent:303,flowEvent:304,networkConnectivityBaselineEvent:305,ytbFileImported:306,downloadStreamUrlExpired:307,directSignInEvent:308,lyricImpressionEvent:309,accessibilityStateEvent:310,tokenRefreshEvent:311,genericAttestationExecution:312,tvhtml5VideoSeek:313,unpluggedAutoPause:314,scrubbingEvent:315,bedtimeReminderEvent:317,tvhtml5UnexpectedRestart:319,tvhtml5StabilityTraceEvent:478,
tvhtml5OperationHealth:467,tvhtml5WatchKeyEvent:321,voiceLanguageChanged:322,tvhtml5LiveChatStatus:323,parentToolsCorpusSelectedEvent:324,offerAdsEnrollmentInitiated:325,networkQualityIntervalEvent:326,deviceStartupMetrics:328,heartbeatActionPlayerTransitioned:330,tvhtml5Lifecycle:331,heartbeatActionPlayerHalted:332,adaptiveInlineMutedSettingEvent:333,mainAppLibraryLoadingState:334,thirdPartyLogMonitoringEvent:336,appShellAssetLoadReport:337,tvhtml5AndroidAttestation:338,tvhtml5StartupSoundEvent:340,
iosBackgroundRefreshTask:342,iosBackgroundProcessingTask:343,sliEventBatch:344,postImpressionEvent:346,musicSideloadedPlaylistExport:347,idbUnexpectedlyClosed:348,voiceSearchEvent:349,mdxSessionCastEvent:350,idbQuotaExceeded:351,idbTransactionEnded:352,idbTransactionAborted:353,tvhtml5KeyboardLogging:354,idbIsSupportedCompleted:355,creatorStudioMobileEvent:356,idbDataCorrupted:357,parentToolsAppChosenEvent:358,webViewBottomSheetResized:359,activeStateControllerScrollPerformanceSummary:360,navigatorValidation:361,
mdxSessionHeartbeat:362,clientHintsPolyfillDiagnostics:363,clientHintsPolyfillEvent:364,proofOfOriginTokenError:365,kidsAddedAccountSummary:366,musicWearableDevice:367,ypcRefundFlowEvent:368,tvhtml5PlaybackMeasurementEvent:369,tvhtml5WatermarkMeasurementEvent:370,clientExpGcfPropagationEvent:371,mainAppReferrerIntent:372,leaderLockEnded:373,leaderLockAcquired:374,googleHatsEvent:375,persistentLensLaunchEvent:376,parentToolsChildWelcomeChosenEvent:378,browseThumbnailPreloadEvent:379,finalPayload:380,
mdxDialAdditionalDataUpdateEvent:381,webOrchestrationTaskLifecycleRecord:382,startupSignalEvent:384,accountError:385,gmsDeviceCheckEvent:386,accountSelectorEvent:388,accountUiCallbacks:389,mdxDialAdditionalDataProbeEvent:390,downloadsSearchIcingApiStats:391,downloadsSearchIndexUpdatedEvent:397,downloadsSearchIndexSnapshot:398,dataPushClientEvent:392,kidsCategorySelectedEvent:393,mdxDeviceManagementSnapshotEvent:394,prefetchRequested:395,prefetchableCommandExecuted:396,gelDebuggingEvent:399,webLinkTtsPlayEnd:400,
clipViewInvalid:401,persistentStorageStateChecked:403,cacheWipeoutEvent:404,playerEvent:410,sfvEffectPipelineStartedEvent:412,sfvEffectPipelinePausedEvent:429,sfvEffectPipelineEndedEvent:413,sfvEffectChosenEvent:414,sfvEffectLoadedEvent:415,sfvEffectUserInteractionEvent:465,sfvEffectFirstFrameProcessedLatencyEvent:416,sfvEffectAggregatedFramesProcessedLatencyEvent:417,sfvEffectAggregatedFramesDroppedEvent:418,sfvEffectPipelineErrorEvent:430,sfvEffectGraphFrozenEvent:419,sfvEffectGlThreadBlockedEvent:420,
mdeQosEvent:510,mdeVideoChangedEvent:442,mdePlayerPerformanceMetrics:472,mdeExporterEvent:497,genericClientExperimentEvent:423,homePreloadTaskScheduled:424,homePreloadTaskExecuted:425,homePreloadCacheHit:426,polymerPropertyChangedInObserver:427,applicationStarted:431,networkCronetRttBatch:432,networkCronetRttSummary:433,repeatChapterLoopEvent:436,seekCancellationEvent:462,lockModeTimeoutEvent:483,externalVideoShareToYoutubeAttempt:501,parentCodeEvent:502,offlineTransferStarted:4,musicOfflineMixtapePreferencesChanged:16,
mangoDailyNewVideosNotificationAttempt:40,mangoDailyNewVideosNotificationError:77,dtwsPlaybackStarted:112,dtwsTileFetchStarted:113,dtwsTileFetchCompleted:114,dtwsTileFetchStatusChanged:145,dtwsKeyframeDecoderBufferSent:115,dtwsTileUnderflowedOnNonkeyframe:116,dtwsBackfillFetchStatusChanged:143,dtwsBackfillUnderflowed:117,dtwsAdaptiveLevelChanged:128,blockingVisitorIdTimeout:277,liteSocial:18,mobileJsInvocation:297,biscottiBasedDetection:439,coWatchStateChange:440,embedsVideoDataDidChange:441,shortsFirst:443,
cruiseControlEvent:445,qoeClientLoggingContext:446,atvRecommendationJobExecuted:447,tvhtml5UserFeedback:448,producerProjectCreated:449,producerProjectOpened:450,producerProjectDeleted:451,producerProjectElementAdded:453,producerProjectElementRemoved:454,producerAppStateChange:509,producerProjectDiskInsufficientExportFailure:516,tvhtml5ShowClockEvent:455,deviceCapabilityCheckMetrics:456,youtubeClearcutEvent:461,offlineBrowseFallbackEvent:463,getCtvTokenEvent:464,startupDroppedFramesSummary:466,screenshotEvent:468,
miniAppPlayEvent:469,elementsDebugCounters:470,fontLoadEvent:471,webKillswitchReceived:473,webKillswitchExecuted:474,cameraOpenEvent:475,manualSmoothnessMeasurement:476,tvhtml5AppQualityEvent:477,polymerPropertyAccessEvent:479,miniAppSdkUsage:480,cobaltTelemetryEvent:481,crossDevicePlayback:482,channelCreatedWithObakeImage:484,channelEditedWithObakeImage:485,offlineDeleteEvent:486,crossDeviceNotificationTransfer:487,androidIntentEvent:488,unpluggedAmbientInterludesCounterfactualEvent:489,keyPlaysPlayback:490,
shortsCreationFallbackEvent:493,vssData:491,castMatch:494,miniAppPerformanceMetrics:495,userFeedbackEvent:496,kidsGuestSessionMismatch:498,musicSideloadedPlaylistMigrationEvent:499,sleepTimerSessionFinishEvent:500,watchEpPromoConflict:503,innertubeResponseCacheMetrics:505,miniAppAdEvent:506,dataPlanUpsellEvent:507,producerProjectRenamed:508,producerMediaSelectionEvent:511,embedsAutoplayStatusChanged:512,remoteConnectEvent:513,connectedSessionMisattributionEvent:514,producerProjectElementModified:515,
adsSeenClientLogging:517,producerEvent:518,tvhtml5CleanStart:519,deviceAccountMetricsEvent:520};var otT={},enr=me("ServiceWorkerLogsDatabase",{objectStores:(otT.SWHealthLog={addedAtVersion:1},otT),shared:!0,upgrade:function(F,W){W(1)&&yA(nM(F,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])},
version:1});var vur={},B2o=0;var xzI;var JC=function(){this.requestMap=new Map;this.anyRequestHasSucceeded=!1},or=function(){if(!JC.instance){var F=_.ju("yt.networkRequestMonitor.instance")||new JC;
_.S5("yt.networkRequestMonitor.instance",F);JC.instance=F}return JC.instance};
JC.prototype.requestComplete=function(F,W){W&&(this.anyRequestHasSucceeded=!0);F=this.removeParams(F);this.requestMap.get(F)||this.requestMap.set(F,W)};
JC.prototype.isEndpointCFR=function(F){F=this.removeParams(F);return(F=this.requestMap.get(F))?!1:F===!1&&this.anyRequestHasSucceeded?!0:null};
JC.prototype.removeParams=function(F){return F.split("?")[0]};
JC.prototype.removeParams=JC.prototype.removeParams;JC.prototype.isEndpointCFR=JC.prototype.isEndpointCFR;JC.prototype.requestComplete=JC.prototype.requestComplete;JC.getInstance=or;var ae=function(F){_.qo.call(this);var W=this;this.pollingJob=this.abortTimeoutKey=0;this.jobManager=F!=null?F:{addLowPriorityJob:function(d,V){return setTimeout(d,V)},
cancelJob:function(d){clearTimeout(d)}};
var E,h;this.isOnline=(h=(E=window.navigator)==null?void 0:E.onLine)!=null?h:!0;this.onNavigatorChange=function(){return _.e(function(d){return _.Q(d,G5p(W),0)})};
window.addEventListener("offline",this.onNavigatorChange);window.addEventListener("online",this.onNavigatorChange);this.pollingJob||YBU(this)};
_.k(ae,_.qo);ae.prototype.dispose=function(){window.removeEventListener("offline",this.onNavigatorChange);window.removeEventListener("online",this.onNavigatorChange);this.jobManager.cancelJob(this.pollingJob);delete ae.instance};
ae.prototype.isNetworkAvailable=function(){return this.isOnline};
var YBU=function(F){F.pollingJob=F.jobManager.addLowPriorityJob(function(){var W;return _.e(function(E){if(E.nextAddress==1)return F.isOnline?((W=window.navigator)==null?0:W.onLine)?E.jumpTo(3):_.Q(E,G5p(F),3):_.Q(E,G5p(F),3);YBU(F);_.gG(E)})},3E4)},G5p=function(F,W){return F.networkRequestPromise?F.networkRequestPromise:F.networkRequestPromise=new Promise(function(E){var h,d,V,R;
return _.e(function(M){switch(M.nextAddress){case 1:return h=window.AbortController?new window.AbortController:void 0,V=(d=h)==null?void 0:d.signal,R=!1,_.Nl(M,2,3),h&&(F.abortTimeoutKey=F.jobManager.addLowPriorityJob(function(){h.abort()},W||2E4)),_.Q(M,fetch("/generate_204",{method:"HEAD",
signal:V}),5);case 5:R=!0;case 3:_.V0(M);F.networkRequestPromise=void 0;F.abortTimeoutKey&&(F.jobManager.cancelJob(F.abortTimeoutKey),F.abortTimeoutKey=0);R!==F.isOnline&&(F.isOnline=R,F.isOnline?F.dispatchEvent("networkstatus-online"):F.dispatchEvent("networkstatus-offline"));E(R);_.eJ(M,0);break;case 2:_.Ml(M),R=!1,M.jumpTo(3)}})})};var f$=function(){_.qo.call(this);var F=this;this.shouldFlushErrors=!1;ae.instance||(ae.instance=new ae(_.P0));this.sharedNetworkStatusManager=ae.instance;this.sharedNetworkStatusManager.listen("networkstatus-online",function(){if(F.shouldFlushErrors&&_.c("offline_error_handling")){var W=kBe().get("errors",!0);if(W){for(var E in W)if(W[E]){var h=new _.xC(E,"sent via offline_errors");h.name=W[E].name;h.stack=W[E].stack;h.level=W[E].level;_.nW(h)}kBe().set("errors",{},2592E3,!0)}}})};
_.k(f$,_.qo);var wci=function(){if(!f$.instance){var F=_.ju("yt.networkStatusManager.instance")||new f$;_.S5("yt.networkStatusManager.instance",F);f$.instance=F}return f$.instance};
_.N=f$.prototype;_.N.isNetworkAvailable=function(){return this.sharedNetworkStatusManager.isNetworkAvailable()};
_.N.networkStatusHint=function(F){this.sharedNetworkStatusManager.isOnline=F};
_.N.getWindowStatus=function(){var F=window.navigator.onLine;return F===void 0?!0:F};
_.N.enableErrorFlushing=function(){this.shouldFlushErrors=!0};
_.N.listen=function(F,W){return this.sharedNetworkStatusManager.listen(F,W)};
_.N.sendNetworkCheckRequest=function(F){F=G5p(this.sharedNetworkStatusManager,F);F.then(function(W){_.c("use_cfr_monitor")&&or().requestComplete("generate_204",W)});
return F};
f$.prototype.sendNetworkCheckRequest=f$.prototype.sendNetworkCheckRequest;f$.prototype.listen=f$.prototype.listen;f$.prototype.enableErrorFlushing=f$.prototype.enableErrorFlushing;f$.prototype.getWindowStatus=f$.prototype.getWindowStatus;f$.prototype.networkStatusHint=f$.prototype.networkStatusHint;f$.prototype.isNetworkAvailable=f$.prototype.isNetworkAvailable;f$.getInstance=wci;_.TX=function(F){F=F===void 0?{}:F;_.qo.call(this);var W=this;this.lastJobTime=this.schedulerJob=0;this.nsmInstance=wci();var E=_.ju("yt.networkStatusManager.instance.listen").bind(this.nsmInstance);E&&(F.rateLimit?(this.rateLimit=F.rateLimit,E("networkstatus-online",function(){uAT(W,"publicytnetworkstatus-online")}),E("networkstatus-offline",function(){uAT(W,"publicytnetworkstatus-offline")})):(E("networkstatus-online",function(){W.dispatchEvent("publicytnetworkstatus-online")}),E("networkstatus-offline",
function(){W.dispatchEvent("publicytnetworkstatus-offline")})))};
_.k(_.TX,_.qo);_.TX.prototype.isNetworkAvailable=function(){var F=_.ju("yt.networkStatusManager.instance.isNetworkAvailable");return F?F.bind(this.nsmInstance)():!0};
_.TX.prototype.networkStatusHint=function(F){var W=_.ju("yt.networkStatusManager.instance.networkStatusHint").bind(this.nsmInstance);W&&W(F)};
_.TX.prototype.sendNetworkCheckRequest=function(F){var W=this,E;return _.e(function(h){E=_.ju("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(W.nsmInstance);return _.c("skip_network_check_if_cfr")&&or().isEndpointCFR("generate_204")?h.return(new Promise(function(d){var V;W.networkStatusHint(((V=window.navigator)==null?void 0:V.onLine)||!0);d(W.isNetworkAvailable())})):E?h.return(E(F)):h.return(!0)})};
var uAT=function(F,W){F.rateLimit?F.lastJobTime?(_.P0.cancelJob(F.schedulerJob),F.schedulerJob=_.P0.addLowPriorityJob(function(){F.lastPublicSignalSent!==W&&(F.dispatchEvent(W),F.lastPublicSignalSent=W,F.lastJobTime=(0,_.KU)())},F.rateLimit-((0,_.KU)()-F.lastJobTime))):(F.dispatchEvent(W),F.lastPublicSignalSent=W,F.lastJobTime=(0,_.KU)()):F.dispatchEvent(W)};var $zW,Oj=function(){Py.call(this,{logsStore:{cleanLogsStore:Uzo,deleteRequest:VRo,getMostRecentByStatus:hnk,markAsQueued:dzr,resetRequest:N2Y,set:Eub},networkManager:_.ZfY(),handleError:function(F,W,E){var h,d=E==null?void 0:(h=E.error)==null?void 0:h.code;if(d===400||d===415){var V;F=new _.xC(F.message,W,E==null?void 0:(V=E.error)==null?void 0:V.code);_.i0(F,void 0,void 0,void 0,!0)}else _.nW(F)},
handleWarning:_.i0,sendFn:LJr,now:_.KU,writeError:Agn,jobManager:_.OZ(),onlineEvent:"publicytnetworkstatus-online",offlineEvent:"publicytnetworkstatus-offline",enableCleaning:!0,cleaningRate:.1,potentialEsfErrorLimit:_.dV("potential_esf_error_limit",10),getBooleanFlag:_.c,disableYtIdbTransactions:!(_.DJ()&&_.XBY())});this.initializationPromise=new _.eR;_.c("networkless_immediately_drop_all_requests")&&Rnr();mWo("LogsDatabaseV2")};
_.k(Oj,Py);_.pcc=function(){var F=_.ju("yt.networklessRequestController.instance");F||(F=new Oj,_.S5("yt.networklessRequestController.instance",F),_.c("networkless_logging")&&_.pU().then(function(W){F.databaseToken=W;ine(F);F.initializationPromise.resolve();F.enableCleaning&&Math.random()<=F.cleaningRate&&F.databaseToken&&gun(F.databaseToken);_.c("networkless_immediately_drop_sw_health_store")&&SBB(F)}));
return F};
Oj.prototype.writeThenSend=function(F,W){W||(W={});W=qhY(F,W);_.DJ()||(this.initialized=!1);Py.prototype.writeThenSend.call(this,F,W)};
Oj.prototype.sendThenWrite=function(F,W,E){W||(W={});W=qhY(F,W);_.DJ()||(this.initialized=!1);Py.prototype.sendThenWrite.call(this,F,W,E)};
Oj.prototype.sendAndWrite=function(F,W){W||(W={});W=qhY(F,W);_.DJ()||(this.initialized=!1);Py.prototype.sendAndWrite.call(this,F,W)};
Oj.prototype.awaitInitialization=function(){return this.initializationPromise.promise};
var SBB=function(F){var W;_.e(function(E){if(!F.databaseToken)throw W=bd("clearSWHealthLogsDb"),W;return E.return(Qor(F.databaseToken).catch(function(h){F.handleError(h)}))})};_.Pbk=!1;_.Hfo=_.EY.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:_.Pbk};_.S5("ytNetworklessLoggingInitializationOptions",_.Hfo);var Z0=function(F){var W=this;this.config_=null;F?this.config_=F:Ucr()&&(this.config_=_.W0());_.sB(_.P0,function(){S_G(W)},5E3)};
Z0.prototype.isReady=function(){!this.config_&&Ucr()&&(this.config_=_.W0());return!!this.config_};
var uDo=function(F,W,E,h){!_.b0("VISITOR_DATA")&&W!=="visitor_id"&&Math.random()<.01&&_.i0(new _.xC("Missing VISITOR_DATA when sending innertube request.",W,E,h));if(!F.isReady()){var d=new _.xC("innertube xhrclient not ready",W,E,h);_.nW(d);throw d;}var V={headers:h.headers||{},method:"POST",postParams:E,postBody:h.postBody,postBodyFormat:h.postBodyFormat||"JSON",onTimeout:function(){h.onTimeout()},
onFetchTimeout:h.onTimeout,onSuccess:function(B,I){if(h.onSuccess)h.onSuccess(I)},
onFetchSuccess:function(B){if(h.onSuccess)h.onSuccess(B)},
onError:function(B,I){if(h.onError)h.onError(I)},
onFetchError:function(B){if(h.onError)h.onError(B)},
timeout:h.timeout,withCredentials:!0,compress:h.compress};V.headers["Content-Type"]||(V.headers["Content-Type"]="application/json");var R="";(d=F.config_.innertubeHostOverride)&&(R=d);var M=F.config_.innertubeUseThirdPartyAuth||!1,g=_.AFG(M,R,h);Object.assign(V.headers,g);V.headers.Authorization&&!R&&M&&(V.headers["x-origin"]=window.location.origin);var t=_.YF(R+("/youtubei/"+F.config_.innertubeApiVersion+"/"+W),{alt:"json"}),C=function(B){B=B===void 0?!1:B;var I;if(h.retry&&R!="www.youtube-nocookie.com"&&
(B||_.c("skip_ls_gel_retry")||V.headers["Content-Type"]!=="application/json"||(I=Y_I(W,E,g,M)),I)){var x=V.onSuccess,A=V.onFetchSuccess;V.onSuccess=function(b,l){wzI(I);x(b,l)};
E.onFetchSuccess=function(b,l){wzI(I);A(b,l)}}try{if(B&&h.retry&&!h.networklessOptions.bypassNetworkless)V.method="POST",h.networklessOptions.writeThenSend?_.pcc().writeThenSend(t,V):_.pcc().sendAndWrite(t,V);
else if(h.compress){var X=!h.networklessOptions.writeThenSend;if(V.postBody){var P=V.postBody;typeof P!=="string"&&(P=JSON.stringify(V.postBody));bVw(t,P,V,_.Qy,X)}else bVw(t,JSON.stringify(V.postParams),V,rtk,X)}else _.c("web_all_payloads_via_jspb")?_.Qy(t,V):rtk(t,V)}catch(b){if(b.name==="InvalidAccessError")I&&(wzI(I),I=0),_.i0(Error("fd"));else throw b;}I&&_.sB(_.P0,function(){S_G(F)},5E3)};
_.JgY()?T8e().then(function(B){C(B)}):C(!1)};var yJY=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(yJY,_.n2);var myu=0,fPr=_.BY?"webkit":_.Cc?"moz":_.tf?"ms":A2I?"o":"";_.S5("ytDomDomGetNextId",_.ju("ytDomDomGetNextId")||function(){return++myu});var KRi={stopImmediatePropagation:1,stopPropagation:1,preventMouseEvent:1,preventManipulation:1,preventDefault:1,layerX:1,layerY:1,screenX:1,screenY:1,scale:1,rotation:1,webkitMovementX:1,webkitMovementY:1},KM=function(F){this.type="";this.state=this.source=this.data=this.currentTarget=this.relatedTarget=this.target=null;this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.ctrlKey=this.altKey=!1;this.rotation=this.clientY=this.clientX=0;this.scale=1;this.changedTouches=this.touches=null;try{if(F=
F||window.event){this.event=F;for(var W in F)W in KRi||(this[W]=F[W]);this.scale=F.scale;this.rotation=F.rotation;var E=F.target||F.srcElement;E&&E.nodeType==3&&(E=E.parentNode);this.target=E;var h=F.relatedTarget;if(h)try{h=h.nodeName?h:null}catch(d){h=null}else this.type=="mouseover"?h=F.fromElement:this.type=="mouseout"&&(h=F.toElement);this.relatedTarget=h;this.clientX=F.clientX!=void 0?F.clientX:F.pageX;this.clientY=F.clientY!=void 0?F.clientY:F.pageY;this.keyCode=F.keyCode?F.keyCode:F.which;
this.charCode=F.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=F.altKey;this.ctrlKey=F.ctrlKey;this.shiftKey=F.shiftKey;this.metaKey=F.metaKey;this.pageX_=F.pageX;this.pageY_=F.pageY}}catch(d){}},Fru=function(F){if(document.body&&document.documentElement){var W=document.body.scrollTop+document.documentElement.scrollTop;
F.pageX_=F.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);F.pageY_=F.clientY+W}};
KM.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
KM.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
KM.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var mF=_.EY.ytEventsEventsListeners||{};_.S5("ytEventsEventsListeners",mF);var jor=_.EY.ytEventsEventsCounter||{count:0};_.S5("ytEventsEventsCounter",jor);var ifn=_.Lv(function(){var F=!1;try{var W=Object.defineProperty({},"capture",{get:function(){F=!0}});
window.addEventListener("test",null,W)}catch(E){}return F});_.Ma(Wc,_.xj);Wc.prototype.onMouseMove_=function(F){F.pageX_===void 0&&Fru(F);var W=F.pageX_;F.pageY_===void 0&&Fru(F);this.position_=new _.sp(W,F.pageY_)};
Wc.prototype.checkPosition_=function(){if(this.position_){var F=(0,_.KU)();if(this.previousTime_!=0){var W=this.previousPosition_,E=this.position_,h=W.x-E.x;W=W.y-E.y;h=Math.sqrt(h*h+W*W)/(F-this.previousTime_);this.cycles_[this.index_]=Math.abs((h-this.previousVelocity_)/this.previousVelocity_)>.5?1:0;for(E=W=0;E<4;E++)W+=this.cycles_[E]||0;W>=3&&this.callback_();this.previousVelocity_=h}this.previousTime_=F;this.previousPosition_=this.position_;this.index_=(this.index_+1)%4}};
Wc.prototype.disposeInternal=function(){window.clearInterval(this.timerId_);_.rgk(this.mouseListenerKey_)};var Yhw={};var W_n=new _.S("rawColdConfigGroup");var F_k=new _.S("rawHotConfigGroup");var Wrp=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(Wrp,_.n2);var nAo=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(nAo,_.n2);var AV=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F,500)};
_.k(AV,_.n2);AV.prototype.getPayloadCase=function(){return _.Xc(this,EOp)};
AV.prototype.getContext=function(){return _.Em(this,nAo,33)};
var EOp=[2,3,5,6,7,11,13,20,21,22,23,24,28,32,37,45,59,72,73,74,76,78,79,80,85,91,97,100,102,105,111,117,119,126,127,136,146,148,151,156,157,158,159,163,164,168,176,177,178,179,184,188,189,190,191,193,194,195,196,197,198,199,200,201,202,203,204,205,206,208,209,215,219,222,225,226,227,229,232,233,234,240,241,244,247,248,249,251,254,255,256,257,258,259,260,261,266,270,272,278,288,291,293,300,304,308,309,310,311,313,314,319,320,321,323,324,327,328,330,331,332,334,337,338,340,344,348,350,351,352,353,
354,355,356,357,358,361,363,364,368,369,370,373,374,375,378,380,381,383,388,389,399,402,403,410,411,412,413,414,415,416,417,418,423,424,425,426,427,429,430,431,439,441,444,448,458,469,471,473,474,480,481,482,484,485,486,491,495,496,506,507,509,511,512,513,514,515,516,517,518,519,520];var wmI=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(wmI,_.n2);var ATG=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(ATG,_.n2);ATG.prototype.setVideoId=function(F){return tV(this,1,s4b,nN(F))};
ATG.prototype.getPlaylistId=function(){return _.tv(this,cc(this,s4b,2))};
var s4b=[1,2];var izY=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(izY,_.n2);izY.prototype.getContext=function(){return _.Em(this,Cn,1)};
izY.prototype.getTier=function(){return _.lj(this,7)};var h__,Ny,Vi;h__=_.EY.ytPubsubPubsubInstance||new _.tc;Ny=_.EY.ytPubsubPubsubSubscribedKeys||{};Vi=_.EY.ytPubsubPubsubTopicToKeys||{};_.wBo=_.EY.ytPubsubPubsubIsSynchronous||{};_.tc.prototype.subscribe=_.tc.prototype.subscribe;_.tc.prototype.unsubscribeByKey=_.tc.prototype.unsubscribeByKey;_.tc.prototype.publish=_.tc.prototype.publish;_.tc.prototype.clear=_.tc.prototype.clear;_.S5("ytPubsubPubsubInstance",h__);_.S5("ytPubsubPubsubTopicToKeys",Vi);_.S5("ytPubsubPubsubIsSynchronous",_.wBo);
_.S5("ytPubsubPubsubSubscribedKeys",Ny);var R_=window;var bV=_.c("web_enable_lifecycle_monitoring")&&KJo()!==0,dQO=_.c("web_enable_lifecycle_monitoring");var VnU=function(F){var W=this;var E=E===void 0?0:E;var h=h===void 0?_.OZ():h;this.JSC$8716_defaultPriority=E;this.scheduler=h;this.completedResolver=new _.eR;this.scheduledPayloads=F;for(F={i$jscomp$528:0};F.i$jscomp$528<this.scheduledPayloads.length;F={payload$jscomp$18:void 0,i$jscomp$528:F.i$jscomp$528},F.i$jscomp$528++)F.payload$jscomp$18=this.scheduledPayloads[F.i$jscomp$528],E=function(d){return function(){d.payload$jscomp$18.job();W.scheduledPayloads[d.i$jscomp$528].processed=!0;W.scheduledPayloads.every(function(V){return V.processed===
!0})&&W.completedResolver.resolve()}}(F),h=this.scheduler.addJob(E,NTT(this,F.payload$jscomp$18)),this.scheduledPayloads[F.i$jscomp$528]=Object.assign({},F.payload$jscomp$18,{job:E,
jobId:h})};
VnU.prototype.flushJobs=function(){var F=this,W=Array.from(this.scheduledPayloads.keys()).sort(function(h,d){return NTT(F,F.scheduledPayloads[d])-NTT(F,F.scheduledPayloads[h])});
W=_.U(W);for(var E=W.next();!E.done;E=W.next())E=this.scheduledPayloads[E.value],E.jobId===void 0||E.processed||(this.scheduler.cancelJob(E.jobId),this.scheduler.addJob(E.job,10))};
VnU.prototype.cancel=function(){for(var F=_.U(this.scheduledPayloads),W=F.next();!W.done;W=F.next())W=W.value,W.jobId===void 0||W.processed||this.scheduler.cancelJob(W.jobId),W.processed=!0;this.completedResolver.resolve()};
var NTT=function(F,W){var E;return(E=W.priority)!=null?E:F.JSC$8716_defaultPriority};var lV=function(F){this.state=F;this.plugins=[];this.overridePriority=void 0;this.processPluginOptions={};bV&&FVk(this.state)};
lV.prototype.install=function(F){this.plugins.push(F);return this};
lV.prototype.uninstall=function(){var F=this;_.Dd.apply(0,arguments).forEach(function(W){W=F.plugins.indexOf(W);W>-1&&F.plugins.splice(W,1)})};
lV.prototype.transition=function(F,W){var E=this;bV&&WVI(this.state);var h=this.transitions.find(function(V){return Array.isArray(V.from)?V.from.find(function(R){return R===E.state&&V.to===F}):V.from===E.state&&V.to===F});
if(h){this.jobSet&&(this.jobSet.flushJobs(),this.jobSet=void 0);UQU(this,F,W);this.state=F;bV&&FVk(this.state);h=h.action.bind(this);var d=this.plugins.filter(function(V){return V[F]}).map(function(V){return V[F]});
h(R_u(this,d),W)}else throw Error("gd`"+this.state+"`"+F);};
var R_u=function(F,W){var E=W.filter(function(d){return e_e(F,d)===10}),h=W.filter(function(d){return e_e(F,d)!==10});
return F.processPluginOptions.shouldWaitOnAsyncImmediate?function(){var d=_.Dd.apply(0,arguments);return _.e(function(V){if(V.nextAddress==1)return _.Q(V,F.runImmediateJobsAsync.apply(F,[E].concat(_.x9(d))),2);F.setJobSetWithScheduledJobs.apply(F,[h].concat(_.x9(d)));_.gG(V)})}:function(){var d=_.Dd.apply(0,arguments);
F.runImmediateJobsSync.apply(F,[E].concat(_.x9(d)));F.setJobSetWithScheduledJobs.apply(F,[h].concat(_.x9(d)))}};
lV.prototype.runImmediateJobsSync=function(F){var W=_.Dd.apply(1,arguments);_.OZ();for(var E=_.U(F),h=E.next(),d={};!h.done;d={lifecycle$jscomp$2:void 0},h=E.next())d.lifecycle$jscomp$2=h.value,Wr(function(V){return function(){Mnp(V.lifecycle$jscomp$2.name);hzo(function(){return V.lifecycle$jscomp$2.callback.apply(V.lifecycle$jscomp$2,_.x9(W))});
n$(V.lifecycle$jscomp$2.name)}}(d))};
lV.prototype.runImmediateJobsAsync=function(F){var W=_.Dd.apply(1,arguments),E,h,d,V;return _.e(function(R){R.nextAddress==1&&(_.OZ(),E=_.U(F),h=E.next(),d={});if(R.nextAddress!=3){if(h.done)return R.jumpTo(0);d.lifecycle$jscomp$3=h.value;d.asyncJobCompletion=void 0;V=function(M){return function(){Mnp(M.lifecycle$jscomp$3.name);var g=hzo(function(){return M.lifecycle$jscomp$3.callback.apply(M.lifecycle$jscomp$3,_.x9(W))});
WPn(g)?M.asyncJobCompletion=_.c("web_lifecycle_error_handling_killswitch")?g.then(function(){n$(M.lifecycle$jscomp$3.name)}):g.then(function(){n$(M.lifecycle$jscomp$3.name)},function(t){E3b(t);
n$(M.lifecycle$jscomp$3.name)}):n$(M.lifecycle$jscomp$3.name)}}(d);
Wr(V);return d.asyncJobCompletion?_.Q(R,d.asyncJobCompletion,3):R.jumpTo(3)}d={lifecycle$jscomp$3:void 0,asyncJobCompletion:void 0};h=E.next();return R.jumpTo(2)})};
lV.prototype.setJobSetWithScheduledJobs=function(F){var W=_.Dd.apply(1,arguments),E=this,h=F.map(function(d){return{job:function(){Mnp(d.name);hzo(function(){return d.callback.apply(d,_.x9(W))});
n$(d.name)},
priority:e_e(E,d)}});
h.length&&(this.jobSet=new VnU(h))};
var e_e=function(F,W){var E,h;return(h=(E=F.overridePriority)!=null?E:W.priority)!=null?h:0},Mnp=function(F){bV&&F&&FVk(F)},n$=function(F){bV&&F&&WVI(F)},UQU=function(F,W,E){dQO&&console.groupCollapsed&&console.groupEnd&&(console.groupCollapsed("["+F.constructor.name+"] '"+F.state+"' to '"+W+"'"),console.log("with message: ",E),console.groupEnd())};
_.Sn.Object.defineProperties(lV.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var gOi=function(F){lV.call(this,F===void 0?"none":F);this.navigationTimer=null;this.overridePriority=10;this.transitions=[{from:"none",to:"application_navigating",action:this.runApplicationNavigationBegin},{from:"application_navigating",to:"none",action:this.runApplicationNavigationEnd},{from:"application_navigating",to:"application_navigating",action:function(){}},
{from:"none",to:"none",action:function(){}}]},QLa;
_.k(gOi,lV);gOi.prototype.runApplicationNavigationBegin=function(F,W){var E=this;this.navigationTimer=_.sB(_.P0,function(){E.currentState==="application_navigating"&&E.transition("none")},5E3);
F(W==null?void 0:W.event)};
gOi.prototype.runApplicationNavigationEnd=function(F,W){this.navigationTimer&&(_.P0.cancelJob(this.navigationTimer),this.navigationTimer=null);F(W==null?void 0:W.event)};
_.KVo=function(){QLa||(QLa=new gOi);return QLa};var m3Y=[];_.S5("yt.logging.transport.getScrapedGelPayloads",function(){return m3Y});var eh=function(){var F=this;this.store={};this.totalEntries=0;this.memoizedKeySequences={};this.TEST_ONLY={getEntriesCount:function(){return F.totalEntries}}};
eh.prototype.storePayload=function(F,W){F=d3o(F);this.store[F]?this.store[F].push(W):(this.memoizedKeySequences={},this.store[F]=[W]);this.totalEntries++;_.c("more_accurate_gel_parser")&&(W=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(W));return F};
eh.prototype.smartExtractMatchingEntries=function(F){if(!F.keys.length)return[];for(var W=z_T(this,F.keys.splice(0,1)[0]),E=[],h=0;h<W.length;h++)this.store[W[h]]&&F.sizeLimit&&(this.store[W[h]].length<=F.sizeLimit?(E.push.apply(E,_.x9(this.store[W[h]])),delete this.store[W[h]]):E.push.apply(E,_.x9(this.store[W[h]].splice(0,F.sizeLimit))));this.totalEntries-=E.length;(F==null?0:F.sizeLimit)&&E.length<(F==null?void 0:F.sizeLimit)&&(F.sizeLimit-=E.length,E.push.apply(E,_.x9(this.smartExtractMatchingEntries(F))));
return E};
eh.prototype.extractMatchingEntries=function(F){F=z_T(this,F);for(var W=[],E=0;E<F.length;E++)this.store[F[E]]&&(W.push.apply(W,_.x9(this.store[F[E]])),delete this.store[F[E]]);this.totalEntries-=W.length;return W};
eh.prototype.getSequenceCount=function(F){F=z_T(this,F);for(var W=0,E=0;E<F.length;E++){var h=void 0;W+=((h=this.store[F[E]])==null?void 0:h.length)||0}return W};
var z_T=function(F,W){var E=d3o(W);if(F.memoizedKeySequences[E])return F.memoizedKeySequences[E];var h=Object.keys(F.store)||[];if(h.length<=1&&d3o(W)===h[0])return h;for(var d=[],V=0;V<h.length;V++){var R=h[V].split("/");if(tnc(W.auth,R[0])){var M=W.isJspb;tnc(M===void 0?"undefined":M?"true":"false",R[1])&&tnc(W.cttAuthInfo,R[2])&&(M=W.tier,M=M===void 0?"undefined":JSON.stringify(M),tnc(M,R[3])&&d.push(h[V]))}}return F.memoizedKeySequences[E]=d},tnc=function(F,W){return F===void 0||F==="undefined"?
!0:F===W};
eh.prototype.getSequenceCount=eh.prototype.getSequenceCount;eh.prototype.extractMatchingEntries=eh.prototype.extractMatchingEntries;eh.prototype.smartExtractMatchingEntries=eh.prototype.smartExtractMatchingEntries;eh.prototype.storePayload=eh.prototype.storePayload;var aGS,P1o,fGY,Qi,CM_,NhS,drr,Hzr,Xmb,IGY,JTo,SOW,qOw;aGS=_.dV("initial_gel_batch_timeout",2E3);P1o=_.dV("gel_queue_timeout_max_ms",6E4);fGY=_.dV("gel_min_batch_size",5);Qi=void 0;CM_=function(){this.lastDebounceQueueFromLogTimeMs=this.queueMaxTimer=this.queueTimer=0;this.useVideoStatsEndPoint=!1};
NhS=new CM_;drr=new CM_;Hzr=new CM_;Xmb=new CM_;JTo=!0;SOW=1;_.umb=new Map;qOw=_.EY.ytLoggingTransportTokensToCttTargetIds_||{};_.S5("ytLoggingTransportTokensToCttTargetIds_",qOw);var LVe=_.EY.ytLoggingTransportTokensToJspbCttTargetIds_||{};_.S5("ytLoggingTransportTokensToJspbCttTargetIds_",LVe);var g3={};var qy=_.EY.ytLoggingGelSequenceIdObj_||{};_.S5("ytLoggingGelSequenceIdObj_",qy);var eKr=[];var xrb=new Set,tiY=0,q6o=0,L_w=0,Bhe=[],CHe=[],$rr=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];var juY=function(){};
juY.prototype.getUrl=function(F,W){W=W===void 0?!1:W;return F.hasOwnProperty("shareEndpoint")?null:_.PHo(F,null,W)};
var w9o=function(F,W,E){F={endpoint:W,actions:[]};E=(E.path?E.path[0]:E.target).icon||"";W=E.indexOf(":");W>0&&(E=E.substr(W+1));E&&F.actions.push(E);return F};var lAb=/Command$/,bKG=/Endpoint$/,aAY=new Map;var BTT,vOB;BTT=1;_.o_=function(){this.actionRoutingMap=new Map};
_.o_.prototype.triggerAction=function(F){var W=new Cxr(F,!1,_.Dd.apply(1,arguments));this.handleAction(W);return W.returnValue};
_.o_.prototype.triggerOptionalAction=function(F){var W=new Cxr(F,!0,_.Dd.apply(1,arguments));this.handleAction(W);return W.returnValue};
_.yS=function(F,W,E){W.forEach(function(h){var d=OKb(h);d&&F.triggerOptionalAction(d,h,E,void 0)})};
_.o_.prototype.handleAction=function(F){var W=this.actionRoutingMap.get(F.actionName);W&&vOB(F,W);F.optionalAction||F.returnValue.length!==0||(F=new _.xC("Unhandled action",F.actionName),_.i0(F))};
vOB=function(F,W){W.forEach(function(E){var h=null;E?h=E.apply(null,F.args):(E=Error("hd"),E.params=F.actionName,_.nW(E));F.returnValue.push(h)})};
_.G5=function(F,W,E){E||(E=BTT++);for(var h=_.U(Object.keys(W)),d=h.next();!d.done;d=h.next()){d=d.value;var V=F.actionRoutingMap.get(d);V||(V=new Map,F.actionRoutingMap.set(d,V));F.registerActionHandler(E,d,W[d],V)}return E};
_.o_.prototype.registerActionHandler=function(F,W,E,h){h.set(F,_.yn(E))};
_.Yt=function(F,W,E){W=_.U(Object.keys(W));for(var h=W.next();!h.done;h=W.next())(h=F.actionRoutingMap.get(h.value))&&h.delete(E)};
_.RZ(_.o_);var Thr=function(F,W){var E=_.o_.getInstance();_.Xk(function(){var h={},d=_.G5(E,(h[F]=W,h));_.$p(function(){var V={};_.Yt(E,(V[F]="",V),d)})})};var wek=function(F,W){_.Xk(function(){var E=F.value;E?(E.addEventListener("yt-service-request-sent",W,void 0),_.$p(function(){E?E.removeEventListener("yt-service-request-sent",W,void 0):uPI(F)})):uPI(F)})};WRo=$yY;var Rpk=new Set(["For","If","Match","Watch"]),ImU={},ctO=(ImU[fd.default]=function(){return uHr},ImU.style=function(){return uHr},ImU),DQu;
for(DQu in ctO)Ei.attributes[DQu]=ctO[DQu](Ei.attributes[DQu]);var Ws=new _.NG("VISIBILITY_OBSERVER");var IRS={retrieve:function(F){return this.id.\u0275prov.token===F.\u0275prov.token?this.contextValue:this?ZWY(this,this.id):$OG}};var xQe=function(F,W,E){if(F!==pn)return!1;F=EYS(document.createElement("div"),function(){var h=h8(!1);try{E[0]()}finally{h8(h)}});
F=Array.from(F.childNodes);F.length===1&&(F=F[0]);return F};var knc=function(F){F=F.clone();uOB(F);qD(F,"dg",null);qD(F,"d","0");opH(F,null);Giu(F,null);return F},Atu=!0,sLz=function(F,W,E){var h=E===void 0?{}:E;
E=h.cssRowKey===void 0?void 0:h.cssRowKey;var d=h.combinedSignature===void 0?void 0:h.combinedSignature;var V=h.extraEdges===void 0?void 0:h.extraEdges;h=h.callback===void 0?void 0:h.callback;qD(F,"m",W.join(","));V&&wXu(F,V);E&&(qD(F,"ck",E),d?qD(F,"rs",d):Atu&&(Atu=!1));if(h){if(h!=null&&!m6e.test(h))throw Error("ab`"+h);qD(F,"cb",h)}F=F.toString();_.Vo(F,"/")&&(F=PKB(document.location.href)+F);return _.RI(F)};var qRc=function(F){return Lr_(F).then(function(W){return JSON.parse(W.responseText)})},Lr_=function(F){var W={},E=W.xmlHttpFactory?W.xmlHttpFactory.createInstance():tJX.createInstance();
return(new _.z5(function(h,d){var V;try{E.open("GET",F,!0)}catch(g){d(new j3("Error opening XHR: "+g.message,F,E))}E.onreadystatechange=function(){if(E.readyState==4){_.EY.clearTimeout(V);var g;!(g=zXp(E.status))&&(g=E.status===0)&&(g=HNO(F),g=!(g=="http"||g=="https"||g==""));g?h(E):d(new $Q_(E.status,F,E))}};
E.onerror=function(){d(new j3("Network error",F,E))};
if(W.headers)for(var R in W.headers){var M=W.headers[R];M!=null&&E.setRequestHeader(R,M)}W.withCredentials&&(E.withCredentials=W.withCredentials);W.responseType&&(E.responseType=W.responseType);W.mimeType&&E.overrideMimeType(W.mimeType);W.timeoutMs>0&&(V=_.EY.setTimeout(function(){E.onreadystatechange=function(){};
E.abort();d(new ZXp(F,E))},W.timeoutMs));
try{E.send(null)}catch(g){E.onreadystatechange=function(){},_.EY.clearTimeout(V),d(new j3("Error sending XHR: "+g.message,F,E))}})).thenCatch(function(h){h instanceof _.FR&&E.abort();
throw h;})},j3=function(F,W,E){_.Fe.call(this,F+", url="+W);
this.url=W;this.xhr=E};
_.Ma(j3,_.Fe);j3.prototype.name="XhrError";var $Q_=function(F,W,E){j3.call(this,"Request Failed, status="+F,W,E);this.status=F};
_.Ma($Q_,j3);$Q_.prototype.name="XhrHttpError";var ZXp=function(F,W){j3.call(this,"Request timed out",F,W)};
_.Ma(ZXp,j3);ZXp.prototype.name="XhrTimeoutError";UV=UV||{};var iV=function(){_.xj.call(this)};
_.Ma(iV,_.xj);iV.prototype.initialize=function(){};var XsU=function(F,W){this.fn_=F;this.handler_=W};
XsU.prototype.execute=function(F){this.fn_&&(this.fn_.call(this.handler_||null,F),this.fn_=this.handler_=null)};
XsU.prototype.abort=function(){this.handler_=this.fn_=null};var rr=function(F,W){_.xj.call(this);this.deps_=F;this.JSC$8843_id_=W;this.onloadCallbacks_=[];this.JSC$8843_onErrorCallbacks_=[];this.earlyOnloadCallbacks_=[]};
_.Ma(rr,_.xj);rr.prototype.moduleConstructor_=iV;rr.prototype.module_=null;rr.prototype.getId=function(){return this.JSC$8843_id_};
rr.prototype.registerCallback=function(F,W){return HXB(this.onloadCallbacks_,F,W)};
var PMM=function(F,W){HXB(F.JSC$8843_onErrorCallbacks_,W)},HXB=function(F,W,E){W=new XsU(W,E);
F.push(W);return W};
rr.prototype.isLoaded=function(){return!!this.module_};
rr.prototype.onLoad=function(F){var W=new this.moduleConstructor_;W.initialize(F());this.module_=W;W=(W=JtM(this.earlyOnloadCallbacks_,F()))||JtM(this.onloadCallbacks_,F());W||(this.JSC$8843_onErrorCallbacks_.length=0);return W};
rr.prototype.onError=function(F){(F=JtM(this.JSC$8843_onErrorCallbacks_,F))&&dI(Error("nd`"+F));this.earlyOnloadCallbacks_.length=0;this.onloadCallbacks_.length=0};
var JtM=function(F,W){for(var E=[],h=0;h<F.length;h++)try{F[h].execute(W)}catch(d){dI(d),E.push(d)}F.length=0;return E.length?E:null};
rr.prototype.disposeInternal=function(){rr.superClass_.disposeInternal.call(this);_.u5(this.module_)};var amc,ytp,lmH,nOu,OXB,bXT,oO_,rtH,TTc;
_.oe=function(F,W,E,h,d){h=h===void 0?!1:h;d=d===void 0?!1:d;var V=V===void 0?!0:V;this.scsReferenceUrl_=WX(_.e9(F).toString(),V);this.cssRowKey_=W;this.combinedSignature_=E;this.useNegativeLoading_=h;this.requestedModuleMap_={};this.JSC$8846_moduleInfoMap_={};this.requestedModuleList_=[];this.requestedModuleListSorted_=!0;this.loadedCssModuleList_=(F=L3(this.scsReferenceUrl_,"excm"))?F.split(","):[];this.shouldScanForCss_=d;this.useCors_=!1;this.corsMode_="anonymous";this.urlMaxLength=4043;this.insertPos=
document.head||document.documentElement;this.pendingModuleGraphUpdate_=this.lastScript_=null;this.supportsExtraEdges=!0;wQI();this.logger=null;_.TG(this,YiM(this.scsReferenceUrl_));this.fetchPriority=void 0;this.enableFallbackFetch=!1;this.maybeSetAdditionalFields()};
amc=function(F,W){if(W.href||W.getAttribute("data-href"))if(W=W.href||W.getAttribute("data-href"),Tor(W)&&!WX(W).urlPrefix_.endsWith("_/js/")){W=YiM(WX(W));W=_.U(W);for(var E=W.next();!E.done;E=W.next())E=E.value,F.loadedCssModuleList_.includes(E)||F.loadedCssModuleList_.push(E)}};
_.oe.prototype.JSC$8848_loadModules=function(F,W,E){var h=E===void 0?{}:E;E=h.extraEdges;var d=h.onError;var V=h.onSuccess;h=h.forceReload;this.JSC$8846_moduleInfoMap_=W;if(!F)throw Error("od");if(this.shouldScanForCss_){W=_.U(document.getElementsByTagName("style"));for(var R=W.next();!R.done;R=W.next())amc(this,R.value);W=_.U(document.getElementsByTagName("link"));for(R=W.next();!R.done;R=W.next())amc(this,R.value)}fm_(this,OXB(this,F),E,d,V,h)};
var fm_=function(F,W,E,h,d,V){h=h===void 0?function(){}:h;
d=d===void 0?function(){}:d;
V=V===void 0?!1:V;bXT(F,W,function(R,M,g){g=g===void 0?M:g;F.enableFallbackFetch&&V?F.loadWithFetch(R,M,h,d,g):F.load(R,M,h,d,g,E)},E)||h(-1)};
_.oe.prototype.loadWithFetch=function(){_.e(function(){throw Error("pd");})};
_.oe.prototype.maybeSetAdditionalFields=function(){};
ytp=function(F,W,E){if(F.useNegativeLoading_){var h=F.scsReferenceUrl_;F={cssRowKey:F.cssRowKey_,combinedSignature:F.combinedSignature_,extraEdges:E,requestedModuleIds:lmH(F),requestedCssModuleIds:nOu(F)};var d=F===void 0?{}:F;F=d.requestedModuleIds===void 0?[]:d.requestedModuleIds;E=d.requestedCssModuleIds===void 0?[]:d.requestedCssModuleIds;var V=d.cssRowKey===void 0?void 0:d.cssRowKey;var R=d.combinedSignature===void 0?void 0:d.combinedSignature;var M=d.extraEdges===void 0?void 0:d.extraEdges;
d=d.callback===void 0?void 0:d.callback;h=knc(h);qD(h,"d","1");opH(h,F);Giu(h,E);W=sLz(h,W,{cssRowKey:V,combinedSignature:R,extraEdges:M,callback:d})}else h=F.scsReferenceUrl_,F={cssRowKey:F.cssRowKey_,combinedSignature:F.combinedSignature_,requestedModuleIds:lmH(F),requestedCssModuleIds:nOu(F)},M=F===void 0?{}:F,F=M.requestedCssModuleIds===void 0?[]:M.requestedCssModuleIds,E=M.cssRowKey===void 0?void 0:M.cssRowKey,V=M.combinedSignature===void 0?void 0:M.combinedSignature,R=M.extraEdges===void 0?
void 0:M.extraEdges,M=M.callback===void 0?void 0:M.callback,h=knc(h),Giu(h,F),W=sLz(h,W,{cssRowKey:E,combinedSignature:V,extraEdges:R,callback:M});return W};
_.TG=function(F,W){for(var E=!1,h=[],d=0;d<W.length;++d){var V=W[d];F.requestedModuleMap_[V]||(F.requestedModuleMap_[V]=!0,F.requestedModuleList_.push(V),E=!0,h.push(V))}E&&(F.requestedModuleListSorted_=!1)};
_.GG=function(F,W){for(var E=[],h=0;h<W.length;++h){var d=W[h];F.requestedModuleMap_[d]&&(delete F.requestedModuleMap_[d],_.mY(F.requestedModuleList_,d),E.push(d))}};
_.oe.prototype.load=function(F,W,E,h,d){d=d===void 0?W:d;_.e9(F);var V=this.useCors_,R=this.corsMode_,M=this.fetchPriority,g=_.Cr("SCRIPT");_.nu(g,F);V&&(g.crossOrigin=R);g.async=!1;M&&g.setAttribute("fetchpriority",M);_.TG(this,W);_.jLM(this,F,g,W,E,h,d)};
_.jLM=function(F,W,E,h,d,V,R){R=R===void 0?h:R;F.lastScript_=E;F.insertPos.insertBefore(E,F.insertPos.firstChild);_.iXX(E,h,function(){E.parentElement.removeChild(E);F.lastScript_==E&&(F.lastScript_=null);var M=new Set;h.map(function(t){return M.add(t)});
for(var g in F.JSC$8846_moduleInfoMap_)F.JSC$8846_moduleInfoMap_[g].isLoaded()&&M.add(g);Array.from(M);V()},function(M){E.parentElement.removeChild(E);
F.lastScript_==E&&(F.lastScript_=null);_.GG(F,M);F.pendingModuleGraphUpdate_?F.pendingModuleGraphUpdate_.then(function(){d(-1,W)}):d(-1,W)},R)};
_.iXX=function(F,W,E,h,d){d=d===void 0?W:d;var V=W.length,R=function(){V=0;F.onload=null;F.onerror=null;M=function(){}},M=function(){R();
var t=d.filter(function(C){return!Zq().getModuleInfo(C).isLoaded()});
t.length!==0?h(t,"Response was successful but was missing module(s) "+t+"."):E()},g=function(){V--;
V==0&&M()};
W.forEach(function(t){t=Zq().getModuleInfo(t);t.isLoaded()?g():(HXB(t.earlyOnloadCallbacks_,g),PMM(t,g))});
F.onload=function(){return M()};
F.onerror=function(){R();h(W)}};
lmH=function(F){F.requestedModuleListSorted_||(F.requestedModuleListSorted_=!0,F.requestedModuleList_.sort());return F.requestedModuleList_};
nOu=function(F){F=F.loadedCssModuleList_;F.sort();return F};
OXB=function(F,W){return W.filter(function(E){return!F.requestedModuleMap_[E]})};
bXT=function(F,W,E,h){if(F.pendingModuleGraphUpdate_)return F.pendingModuleGraphUpdate_.then(function(){bXT(F,W,E,h)}),!0;
if(!F.useNegativeLoading_){var d=[],V=Object.assign({},F.requestedModuleMap_);rtH(F,W,function(C){d.push(C.getId())},h,function(C){return!C.isLoaded()},V);
W=d}for(V=0;V<W.length;){for(var R=W.length-V,M=V==0?W:W.slice(V,W.length),g=ytp(F,M,h),t=_.e9(g).toString();t.length>F.urlMaxLength;)if(R>1)R-=Math.ceil((t.length-F.urlMaxLength)/6),R=Math.max(R,1),M=W.slice(V,V+R),g=ytp(F,M,h),t=_.e9(g).toString();else return F.useNegativeLoading_?(F.useNegativeLoading_=!1,F.pendingModuleGraphUpdate_=TTc(F).then(function(C){oO_(F,C,h)}),bXT(F,W.slice(V),E,h)):!1;
V+=R;F.useNegativeLoading_?E(g,M):E(g,M,V===W.length?W:[])}return!0};
oO_=function(F,W,E){Zq().setAllModuleInfoString((W||{}).moduleGraph);rtH(F,lmH(F),function(h){_.TG(F,[h.getId()])},E);
F.pendingModuleGraphUpdate_=null};
rtH=function(F,W,E,h,d,V){V=V===void 0?{}:V;var R=Zq();W=_.U(W);for(var M=W.next();!M.done;M=W.next()){M=M.value;var g=R.getModuleInfo(M);if(!(V[M]||d&&!d(g))){V[M]=!0;var t=g.deps_||[];if(h){var C=[];h[M]&&(C=Object.keys(h[M]));t=t.concat(C)}rtH(F,t,E,h,d,V);E(g)}}};
TTc=function(F){F=F.scsReferenceUrl_.clone();uOB(F);qD(F,"dg",null);qD(F,"md","1");return qRc(F.toString())};var xjo=new Uint8Array(123);var Gne=[];var YRe=function(){this.JSC$7958_loader_=null};
_.N=YRe.prototype;_.N.setBatchModeEnabled=function(){};
_.N.setAllModuleInfoString=function(){};
_.N.addExtraEdge=function(){throw Error("qd");};
_.N.removeExtraEdge=function(){throw Error("rd");};
_.N.getModuleContext=function(){return null};
_.N.isActive=function(){return!1};
_.N.isUserActive=function(){return!1};
_.N.registerCallback=function(){};var YZ=function(F,W,E,h,d){var V=Error.call(this);this.message=V.message;"stack"in V&&(this.stack=V.stack);this.name="ModuleLoadFailure";this.type=F;this.status=W;this.requestedModuleIds=E;this.url=h;this.cause=d;this.message=this.toString()};
_.k(YZ,Error);YZ.prototype.toString=function(){return wsa(this)+" ("+(this.status!=void 0?this.status:"?")+")"};
var wsa=function(F){switch(F.type){case YZ.JSC$8858_Type.UNAUTHORIZED:return"Unauthorized";case YZ.JSC$8858_Type.CONSECUTIVE_FAILURES:return"Consecutive load failures";case YZ.JSC$8858_Type.TIMEOUT:return"Timed out";case YZ.JSC$8858_Type.OLD_CODE_GONE:return"Out of date module id";case YZ.JSC$8858_Type.INIT_ERROR:return"Init error";default:return"Unknown failure type "+F.type}};
UV.ModuleLoadFailure=YZ;UV.ModuleLoadFailure.JSC$8858_Type={UNAUTHORIZED:0,CONSECUTIVE_FAILURES:1,TIMEOUT:2,OLD_CODE_GONE:3,INIT_ERROR:4};var wr=function(){this.moduleIds_=this.JSC$7958_loader_=null;this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.requestedModuleIds_=[];this.requestedModuleIdsQueue_=[];this.userInitiatedLoadingModuleIds_=[];this.JSC$8861_extraEdges_={};this.JSC$8861_callbackMap_={};this.JSC$8861_currentlyLoadingModule_=this.baseModuleInfo_=new rr([],"");this.lastInitialModuleId_=null;this.initialModulesLoaded_=new Sf;this.batchModeEnabled_=!1;this.consecutiveFailures_=0;this.isDisposed_=
this.userLastActive_=this.lastActive_=!1};
_.Ma(wr,YRe);var uVc=function(F,W){_.Fe.call(this,"Error loading "+F+": "+W)};
_.Ma(uVc,_.Fe);wr.prototype.setBatchModeEnabled=function(F){this.batchModeEnabled_=F};
wr.prototype.setAllModuleInfoString=function(F,W){if(!(this instanceof wr))this.setAllModuleInfoString(F,W);else if(typeof F==="string"){if(F.startsWith("d$")){F=F.substring(2);for(var E=[],h=0,d=F.indexOf("/"),V=0,R=!1,M=0;;){var g=R?F.substring(V):F.substring(V,d);if(g.length===0)h++,V="sy"+h.toString(36),g=[];else{var t=g.indexOf(":");if(t<0)V=g,g=[];else if(t===g.length-1)V=g.substring(0,t),g=Array(E[M-1]);else{V=g.substring(0,t);g=g.substring(t+1).split(",");t=M;for(var C=0;C<g.length;C++)t-=
g[C].length===0?1:Number(g[C]),g[C]=E[t]}t=0;if(V.length===0)t=1;else if(V.charAt(0)==="+"||V.charAt(0)==="-")t=Number(V);t!==0&&(h+=t,V="sy"+h.toString(36))}E.push(V);SRT(this,V,g);if(R)break;V=d+1;d=F.indexOf("/",V);d===-1&&(R=!0);M++}this.moduleIds_=E}else if(F.startsWith("p$"))psc(this,F);else{F=F.split("/");E=[];for(h=0;h<F.length;h++){M=F[h].split(":");d=M[0];R=[];if(M[1])for(R=M[1].split(","),M=0;M<R.length;M++)R[M]=E[parseInt(R[M],36)];E.push(d);SRT(this,d,R)}this.moduleIds_=E}W&&W.length?
(_.ha(this.loadingModuleIds_,W),this.lastInitialModuleId_=_.lo(W)):this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback();Object.freeze(this.moduleIds_);this.JSC$8861_currentlyLoadingModule_==this.baseModuleInfo_&&(this.JSC$8861_currentlyLoadingModule_=null,(W=this.baseModuleInfo_.onLoad((0,_.kj)(this.getModuleContext,this)))&&W.length&&mQX(this,new UV.ModuleLoadFailure(UV.ModuleLoadFailure.JSC$8858_Type.INIT_ERROR,void 0,void 0,void 0,W[0])),uV(this))}};
var psc=function(F,W){var E=W.substring(2);for(W=0;W<64;W++)xjo["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charCodeAt(W)]=W;var h={buf:E,pos:0};dT(h);var d=dT(h),V=dT(h)+1;W=Array(d);var R=Array(d),M=Array(d);V=Array(V);var g=0,t=0,C=h.pos,B=h.buf.indexOf("|",h.pos);h.pos=B+1;for(B=0;B<d;B++){var I=dT(h),x=I&2,A=I&1;I>>>=2;A?(g+=I>>>1^-(I&1),I="sy"+g.toString(36)):(A=C,C+=I,I=E.substring(A,C));W[B]=I;x&&(V[t++]=I)}V[t]="";h.pos++;t=d&-2;E=d&1;for(g=0;g<t;g+=2)C=k_r(h),M[g]=
C&7,M[g+1]=C>>>3&7;E&&(E=k_r(h),M[t]=E&7);h.pos++;for(t=0;t<d;t++)M[t]===7&&(M[t]=dT(h));h.pos++;for(E=t=0;E<d;E++){g=M[E];C=g===0?Gne:Array(g);R[E]=C;B=t;for(x=0;x<g;x++)B-=dT(h),C[x]=V[B];V[t]===W[E]&&t++}for(h=0;h<W.length;h++)SRT(F,W[h],R[h]);F.moduleIds_=W};
_.N=wr.prototype;_.N.getModuleInfo=function(F){return this.moduleInfoMap[F]};
_.N.addExtraEdge=function(F,W){var E=this.getModuleInfo(F);E&&E.isLoaded()?this.load(W):(this.JSC$8861_extraEdges_[F]||(this.JSC$8861_extraEdges_[F]={}),this.JSC$8861_extraEdges_[F][W]=!0)};
_.N.removeExtraEdge=function(F,W){if(this.JSC$8861_extraEdges_[F]){delete this.JSC$8861_extraEdges_[F][W];for(var E in this.JSC$8861_extraEdges_[F])return;delete this.JSC$8861_extraEdges_[F]}};
_.N.isActive=function(){return this.loadingModuleIds_.length>0};
_.N.isUserActive=function(){return this.userInitiatedLoadingModuleIds_.length>0};
var uV=function(F){var W=F.lastActive_,E=F.isActive();E!=W&&(F.executeCallbacks_(E?"active":"idle"),F.lastActive_=E);W=F.isUserActive();W!=F.userLastActive_&&(F.executeCallbacks_(W?"userActive":"userIdle"),F.userLastActive_=W)},SRT=function(F,W,E){F.moduleInfoMap[W]?(F=F.moduleInfoMap[W].deps_,F!=E&&F.splice.apply(F,[0,
F.length].concat(_.x9(E)))):F.moduleInfoMap[W]=new rr(E,W)},F1e=function(F,W,E){var h=[];
eH(W,h);W=[];for(var d={},V=0;V<h.length;V++){var R=h[V],M=F.getModuleInfo(R);if(!M)throw Error("sd`"+R);var g=new Sf;d[R]=g;M.isLoaded()?g.callback(null):(Krz(F,R,M,!!E,g),F.isModuleLoading(R)||W.push(R))}W.length>0&&(F.loadingModuleIds_.length===0?F.loadModules_(W):(F.requestedModuleIdsQueue_.push(W),uV(F)));return d},Krz=function(F,W,E,h,d){E.registerCallback(d.callback,d);
PMM(E,function(V){d.errback(new uVc(W,V))});
F.isModuleLoading(W)?h&&(W1a(F,W),uV(F)):h&&W1a(F,W)};
wr.prototype.loadModules_=function(F,W,E){var h=this;W||(this.consecutiveFailures_=0);var d=Exa(this,F);this.loadingModuleIds_=d;this.requestedLoadingModuleIds_=this.batchModeEnabled_?F:_.Kb(d);uV(this);if(d.length!==0){this.requestedModuleIds_.push.apply(this.requestedModuleIds_,d);if(Object.keys(this.JSC$8861_extraEdges_).length>0&&!this.JSC$7958_loader_.supportsExtraEdges)throw Error("td");F=(0,_.kj)(this.JSC$7958_loader_.JSC$8848_loadModules,this.JSC$7958_loader_,_.Kb(d),this.moduleInfoMap,{extraEdges:this.JSC$8861_extraEdges_,
forceReload:!!E,onError:function(V,R){var M=h.requestedLoadingModuleIds_;V=V!=null?V:void 0;h.consecutiveFailures_++;var g=_.Kb(d);h.requestedLoadingModuleIds_=M;d.forEach(_.v5(_.mY,h.requestedModuleIds_),h);V==401?(mQX(h,new UV.ModuleLoadFailure(UV.ModuleLoadFailure.JSC$8858_Type.UNAUTHORIZED,V)),h.requestedModuleIdsQueue_.length=0):V==410?(hvc(h,new UV.ModuleLoadFailure(UV.ModuleLoadFailure.JSC$8858_Type.OLD_CODE_GONE,V)),dWu(h)):h.consecutiveFailures_>=3?(hvc(h,new UV.ModuleLoadFailure(UV.ModuleLoadFailure.JSC$8858_Type.CONSECUTIVE_FAILURES,
V,g,R)),dWu(h)):h.loadModules_(h.requestedLoadingModuleIds_,!0,V==8001||!1)},
onTimeout:(0,_.kj)(this.handleLoadTimeout_,this)});(W=Math.pow(this.consecutiveFailures_,2)*5E3)?_.EY.setTimeout(F,W):F()}};
var Exa=function(F,W){W=W.filter(function(d){return F.moduleInfoMap[d].isLoaded()?(_.EY.setTimeout(function(){return Error("ud`"+d)},0),!1):!0});
for(var E=[],h=0;h<W.length;h++)E=E.concat(N8O(F,W[h]));eH(E);return!F.batchModeEnabled_&&E.length>1?(W=E.shift(),F.requestedModuleIdsQueue_=E.map(function(d){return[d]}).concat(F.requestedModuleIdsQueue_),[W]):E},N8O=function(F,W){var E=_.xd.createSet(F.requestedModuleIds_),h=[];
E[W]||h.push(W);W=[W];for(var d=0;d<W.length;d++)for(var V=F.getModuleInfo(W[d]).deps_,R=V.length-1;R>=0;R--){var M=V[R];F.getModuleInfo(M).isLoaded()||E[M]||(h.push(M),W.push(M))}h.reverse();eH(h);return h};
wr.prototype.JSC$8856_setLoaded=function(){if(this.JSC$8861_currentlyLoadingModule_){var F=this.JSC$8861_currentlyLoadingModule_.getId(),W=[];if(this.JSC$8861_extraEdges_[F]){for(var E=_.U(Object.keys(this.JSC$8861_extraEdges_[F])),h=E.next();!h.done;h=E.next()){h=h.value;var d=this.getModuleInfo(h);d&&!d.isLoaded()&&(this.removeExtraEdge(F,h),W.push(h))}this.loadMultiple(W)}this.isDisposed()||((W=this.moduleInfoMap[F].onLoad((0,_.kj)(this.getModuleContext,this)))&&W.length&&mQX(this,new UV.ModuleLoadFailure(UV.ModuleLoadFailure.JSC$8858_Type.INIT_ERROR,
void 0,void 0,void 0,W[0])),_.mY(this.userInitiatedLoadingModuleIds_,F),_.mY(this.loadingModuleIds_,F),this.loadingModuleIds_.length===0&&dWu(this),this.lastInitialModuleId_&&F==this.lastInitialModuleId_&&(this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback()),uV(this),this.JSC$8861_currentlyLoadingModule_=null)}};
wr.prototype.isModuleLoading=function(F){if(_.on(this.loadingModuleIds_,F))return!0;for(var W=0;W<this.requestedModuleIdsQueue_.length;W++)if(_.on(this.requestedModuleIdsQueue_[W],F))return!0;return!1};
wr.prototype.load=function(F,W){return F1e(this,[F],W)[F]};
wr.prototype.loadMultiple=function(F){return F1e(this,F)};
var W1a=function(F,W){_.on(F.userInitiatedLoadingModuleIds_,W)||F.userInitiatedLoadingModuleIds_.push(W)};
wr.prototype.beforeLoadModuleCode=function(F){var W=this;this.JSC$8861_currentlyLoadingModule_&&this.JSC$8861_currentlyLoadingModule_.getId()==="synthetic_module_overhead"&&(this.JSC$8856_setLoaded(),delete this.moduleInfoMap.synthetic_module_overhead);this.moduleInfoMap[F]&&VrX(this,this.moduleInfoMap[F].deps_||[],function(E){E.module_=new iV;_.mY(W.loadingModuleIds_,E.getId())},function(E){return!E.isLoaded()});
this.JSC$8861_currentlyLoadingModule_=this.getModuleInfo(F)};
wr.prototype.handleLoadTimeout_=function(){hvc(this,new UV.ModuleLoadFailure(UV.ModuleLoadFailure.JSC$8858_Type.TIMEOUT));dWu(this)};
var hvc=function(F,W){F.requestedLoadingModuleIds_.length>1?F.requestedModuleIdsQueue_=F.requestedLoadingModuleIds_.map(function(E){return[E]}).concat(F.requestedModuleIdsQueue_):mQX(F,W)},mQX=function(F,W){var E=F.requestedLoadingModuleIds_;
F.loadingModuleIds_.length=0;for(var h=[],d=0;d<F.requestedModuleIdsQueue_.length;d++){var V=F.requestedModuleIdsQueue_[d].filter(function(g){var t=N8O(this,g);return GX(E,function(C){return _.on(t,C)})},F);
_.ha(h,V)}for(d=0;d<E.length;d++)_.GR(h,E[d]);for(d=0;d<h.length;d++){for(V=0;V<F.requestedModuleIdsQueue_.length;V++)_.mY(F.requestedModuleIdsQueue_[V],h[d]);_.mY(F.userInitiatedLoadingModuleIds_,h[d])}if(d=F.JSC$8861_callbackMap_.error)for(V=0;V<d.length;V++)for(var R=d[V],M=0;M<h.length;M++)R("error",h[M],W);for(h=0;h<E.length;h++)if(F.moduleInfoMap[E[h]])F.moduleInfoMap[E[h]].onError(W);F.requestedLoadingModuleIds_.length=0;uV(F)},dWu=function(F){for(;F.requestedModuleIdsQueue_.length;){var W=
F.requestedModuleIdsQueue_.shift().filter(function(E){return!this.getModuleInfo(E).isLoaded()},F);
if(W.length>0){F.loadModules_(W);return}}uV(F)};
wr.prototype.registerCallback=function(F,W){Array.isArray(F)||(F=[F]);for(var E=0;E<F.length;E++){var h=F[E],d=W,V=this.JSC$8861_callbackMap_;V[h]||(V[h]=[]);V[h].push(d)}};
wr.prototype.executeCallbacks_=function(F){for(var W=this.JSC$8861_callbackMap_[F],E=0;W&&E<W.length;E++)W[E](F)};
var VrX=function(F,W,E,h,d){h=h===void 0?function(){return!0}:h;
d=d===void 0?{}:d;W=_.U(W);for(var V=W.next();!V.done;V=W.next()){V=V.value;var R=F.getModuleInfo(V);!d[V]&&h(R)&&(d[V]=!0,VrX(F,R.deps_||[],E,h,d),E(R))}};
wr.prototype.dispose=function(){_.pC(_.xd.getValues(this.moduleInfoMap),this.baseModuleInfo_);this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.userInitiatedLoadingModuleIds_=[];this.requestedModuleIdsQueue_=[];this.JSC$8861_callbackMap_={};this.isDisposed_=!0};
wr.prototype.isDisposed=function(){return this.isDisposed_};
_.qT=function(){return new wr};var UWp=[5E3,2E4],RvO=function(){this.JSC$7958_loader_=null;this.JSC$8869_moduleInfoMap_=Object.create(null);this.loadingModules_=Object.create(null);this.activeLoads_=0;this.JSC$8869_queue_=[];this.JSC$8869_extraEdges_=Object.create(null);this.JSC$8869_currentlyLoadingModule_=this.getModuleInfo("{base}")};
_.k(RvO,YRe);_.N=RvO.prototype;_.N.setAllModuleInfoString=function(){this.JSC$8869_currentlyLoadingModule_&&this.JSC$8869_currentlyLoadingModule_.getId()=="{base}"&&this.JSC$8856_setLoaded()};
_.N.getModuleInfo=function(F){var W=this.JSC$8869_moduleInfoMap_[F];W||(W=new rr([],F),this.JSC$8869_moduleInfoMap_[F]=W);return W};
_.N.addExtraEdge=function(F,W){this.getModuleInfo(F).isLoaded()?this.load(W):(this.JSC$8869_extraEdges_[F]||(this.JSC$8869_extraEdges_[F]={}),this.JSC$8869_extraEdges_[F][W]=!0)};
_.N.removeExtraEdge=function(F,W){if(this.JSC$8869_extraEdges_[F]){delete this.JSC$8869_extraEdges_[F][W];for(var E in this.JSC$8869_extraEdges_[F])return;delete this.JSC$8869_extraEdges_[F]}};
_.N.isModuleLoading=function(F){return!!this.loadingModules_[F]};
_.N.load=function(F){evT(this,[F]);return MrU(this,F)};
_.N.loadMultiple=function(F){var W=this,E=Object.create(null),h=[];F.forEach(function(d){E[d]||(E[d]=MrU(W,d),h.push(d))});
evT(this,h);return E};
_.N.beforeLoadModuleCode=function(F){var W;((W=this.JSC$8869_currentlyLoadingModule_)==null?void 0:W.getId())==="synthetic_module_overhead"&&this.JSC$8856_setLoaded();var E,h;gxT(this,(h=(E=this.JSC$8869_moduleInfoMap_[F])==null?void 0:E.deps_)!=null?h:[],function(d){d.module_=new iV},function(d){return!d.isLoaded()});
this.JSC$8869_currentlyLoadingModule_=this.getModuleInfo(F)};
_.N.JSC$8856_setLoaded=function(){if(this.JSC$8869_currentlyLoadingModule_){var F=this.JSC$8869_currentlyLoadingModule_.getId(),W=[];if(this.JSC$8869_extraEdges_[F]){for(var E=_.U(Object.keys(this.JSC$8869_extraEdges_[F])),h=E.next();!h.done;h=E.next())h=h.value,this.getModuleInfo(h).isLoaded()||(this.removeExtraEdge(F,h),W.push(h));this.loadMultiple(W)}this.JSC$8869_currentlyLoadingModule_.onLoad(function(){return null});
this.JSC$8869_currentlyLoadingModule_=null;(!this.isModuleLoading(F)&&/^sy[0-9a-z]{0,4}$/.test(F)||F==="synthetic_module_overhead")&&delete this.JSC$8869_moduleInfoMap_[F];this.unsetModulesAsLoading(F)}};
_.N.setModulesAsLoading=function(){var F=this;_.Dd.apply(0,arguments).forEach(function(W){F.loadingModules_[W]=!0})};
_.N.unsetModulesAsLoading=function(){var F=this;_.Dd.apply(0,arguments).forEach(function(W){delete F.loadingModules_[W]})};
var MrU=function(F,W){return new _.z5(function(E,h){var d=F.getModuleInfo(W);d.isLoaded()?E(null):(d.registerCallback(function(){E(null)}),PMM(d,function(V){var R="Error loading "+W+": "+V;
V instanceof UV.ModuleLoadFailure&&V.url&&(R=R+", requested url: "+V.url.toString());h(Error(R))}))})},evT=function(F,W){W=W.filter(function(E){return!F.isModuleLoading(E)&&!F.getModuleInfo(E).isLoaded()});
W.length>0&&(F.setModulesAsLoading.apply(F,_.x9(W)),F.JSC$8869_queue_.push(W),Qkz(F))},Qkz=function(F){for(var W={};F.activeLoads_<Infinity&&F.JSC$8869_queue_.length>0;W={finishLoad:void 0,
ids$jscomp$36:void 0,attempt$jscomp$6:void 0,load$jscomp$1:void 0})W.ids$jscomp$36=F.JSC$8869_queue_.shift().filter(function(E){return!F.getModuleInfo(E).isLoaded()}),W.ids$jscomp$36.length>0&&(F.activeLoads_++,W.finishLoad=function(E){return function(){F.activeLoads_--;
Qkz(F);E.finishLoad=function(){}}}(W),_.X8(W.ids$jscomp$36.map(function(E){return MrU(F,E)})).then(function(E){return function(){(0,E.finishLoad)()}}(W)),W.attempt$jscomp$6=0,W.load$jscomp$1=function(E){return function(){if(Object.keys(F.JSC$8869_extraEdges_).length>0&&!F.JSC$7958_loader_.supportsExtraEdges)throw Error("td");
F.JSC$7958_loader_.JSC$8848_loadModules(E.ids$jscomp$36,F.JSC$8869_moduleInfoMap_,{extraEdges:F.JSC$8869_extraEdges_,onError:function(h,d){var V=UWp[E.attempt$jscomp$6++];V!==void 0?setTimeout(function(){(0,E.load$jscomp$1)()},V):(F.unsetModulesAsLoading.apply(F,_.x9(E.ids$jscomp$36)),(0,E.finishLoad)(),E.ids$jscomp$36.forEach(function(R){R=F.getModuleInfo(R);
if(!R.isLoaded())R.onError(new UV.ModuleLoadFailure(UV.ModuleLoadFailure.JSC$8858_Type.CONSECUTIVE_FAILURES,h,E.ids$jscomp$36,d))}))}})}}(W),(0,W.load$jscomp$1)())},gxT=function(F,W,E,h,d){h=h===void 0?function(){return!0}:h;
d=d===void 0?{}:d;W=_.U(W);for(var V=W.next();!V.done;V=W.next()){V=V.value;var R=F.getModuleInfo(V);!d[V]&&h(R)&&(d[V]=!0,gxT(F,R.deps_||[],E,h,d),E(R))}};var zvB=!/^\s*class\s*\{\s*\}\s*$/.test(function(){}.toString());var s3b=Symbol("wd");window.JSCompiler_renameProperty=function(F){return F};/*

 Copyright 2016 Google LLC
 SPDX-License-Identifier: BSD-3-Clause
*/
var tri=!zvB||HTMLElement.es5Shimmed||_.EY.Reflect===void 0||_.EY.customElements===void 0||_.EY.customElements.polyfillWrapFlushCallback||!1,CIO,FUo=function(){var F=HTMLElement;if(tri)return F;if(CIO!==void 0)return CIO;var W=_.EY.Reflect,E=function(){return W.construct(F,[],this.constructor)};
E.prototype=F.prototype;E.prototype.constructor=E;E.es5Shimmed=!0;Object.setPrototypeOf(E,F);return CIO=E},B8U=!1;tri||B8U||(B8U=!0,_.EY.HTMLElement=FUo());/*

Copyright (c) 2019 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
part of the polymer project is also subject to an additional IP rights grant
found at http://polymer.github.io/PATENTS.txt
*/
window.COMPILED=window.COMPILED||!1;var Xrn=/(url\()([^)]*)(\))/g,$jG=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,ZQb,NQ;var bM=!window.ShadyDOM||!window.ShadyDOM.inUse,vx_=!(window.ShadyCSS&&!window.ShadyCSS.nativeCss),IUe=!window.customElements.polyfillWrapFlushCallback,cRz;if(cRz=bM&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype)try{var DWz=new CSSStyleSheet;DWz.replaceSync("");var xWU=document.createElement("div");xWU.attachShadow({mode:"open"});xWU.shadowRoot.adoptedStyleSheets=[DWz];cRz=xWU.shadowRoot.adoptedStyleSheets[0]===DWz}catch(F){cRz=!1}
var kMu=cRz,ARu=window.Polymer&&window.Polymer.rootPath||PzY(document.baseURI||window.location.href),cs=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,j6o=window.Polymer&&window.Polymer.setPassiveTouchGestures||!1,jn=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,ske=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,OR=window.Polymer&&window.Polymer.legacyOptimizations||!1,yQ=window.Polymer&&window.Polymer.legacyWarnings||!1,L1z=window.Polymer&&window.Polymer.syncInitialRender||
!1,xO=window.Polymer&&window.Polymer.legacyUndefined||!1,qge=window.Polymer&&window.Polymer.orderedComputed||!1,S3=window.Polymer&&window.Polymer.removeNestedTemplates||!1,p$=window.Polymer&&window.Polymer.fastDomIf||!1,mK=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1,$W_=window.Polymer&&window.Polymer.legacyNoObservedAttributes||!1,Zgu=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;var K$={},XfX={},At=function(){return HTMLElement.apply(this,arguments)||this};
_.k(At,HTMLElement);At.import=function(F,W){return F?(F=K$[F]||XfX[F.toLowerCase()])&&W?F.querySelector(W):F:null};
At.prototype.attributeChangedCallback=function(F,W,E){W!==E&&this.register()};
At.prototype.register=function(F){if(F=F||this.id){if(jn&&(K$[F]||XfX[F.toLowerCase()])!==void 0)throw K$[F]=XfX[F.toLowerCase()]=null,Error("xd`"+F);this.id=F;K$[F]=XfX[F.toLowerCase()]=this;this.querySelector("style")&&console.warn("dom-module %s has style outside template",this.id)}};
_.Sn.Object.defineProperties(At.prototype,{assetpath:{configurable:!0,enumerable:!0,get:function(){if(!this.__assetpath){var F=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument;F=_.VQ(this.getAttribute("assetpath")||"",F.baseURI);this.__assetpath=PzY(F)}return this.__assetpath}}});
_.Sn.Object.defineProperties(At,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["id"]}}});
At["import"]=At.import;At.prototype.modules=K$;customElements.define("dom-module",At);var HgO=0,aRY=0,UR=[],PIi=0,Jbo=!1,JR_=document.createTextNode(""),aUu,aL;(new window.MutationObserver(fRW)).observe(JR_,{characterData:!0});_.F4={after:function(F){return{run:function(W){return window.setTimeout(W,F)},
cancel:function(W){window.clearTimeout(W)}}},
run:function(F,W){return window.setTimeout(F,W)},
cancel:function(F){window.clearTimeout(F)}};
_.DA={run:function(F){return window.requestAnimationFrame(F)},
cancel:function(F){window.cancelAnimationFrame(F)}};
aUu={run:function(F){return window.requestIdleCallback?window.requestIdleCallback(F):window.setTimeout(F,16)},
cancel:function(F){window.cancelIdleCallback?window.cancelIdleCallback(F):window.clearTimeout(F)}};
aL={run:function(F){Jbo||(Jbo=!0,JR_.textContent=PIi++);UR.push(F);return HgO++},
cancel:function(F){var W=F-aRY;if(W>=0){if(!UR[W])throw Error("yd`"+F);UR[W]=null}}};var fUz=0,WD=function(F){var W=F.__mixinApplications;W||(W=new WeakMap,F.__mixinApplications=W);var E=fUz++;return function(h){var d=h.__mixinSet;if(d&&d[E])return h;var V=W,R=V.get(h);R||(R=F(h),V.set(h,R),h=Object.create(R.__mixinSet||d||null),h[E]=!0,R.__mixinSet=h);return R}};_.IL=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?function(F){return ShadyDOM.patch(F)}:function(F){return F};var OgB=WD(function(F){var W=function(){var E=F.call(this)||this;E.__dataEnabled=!1;E.__dataReady=!1;E.__dataInvalid=!1;E.__data={};E.__dataPending=null;E.__dataOld=null;E.__dataInstanceProps=null;E.__dataCounter=0;E.__serializing=!1;E._initializeProperties();return E};
_.k(W,F);W.createProperties=function(E){var h=this.prototype,d;for(d in E)d in h||h._createPropertyAccessor(d)};
W.attributeNameForProperty=function(E){return E.toLowerCase()};
W.typeForProperty=function(){};
W.prototype._createPropertyAccessor=function(E,h){this._addPropertyToAttributeMap(E);this.hasOwnProperty("__dataHasAccessor")||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor));this.__dataHasAccessor[E]||(this.__dataHasAccessor[E]=!0,this._definePropertyAccessor(E,h))};
W.prototype._addPropertyToAttributeMap=function(E){this.hasOwnProperty("__dataAttributes")||(this.__dataAttributes=Object.assign({},this.__dataAttributes));var h=this.__dataAttributes[E];h||(h=this.constructor.attributeNameForProperty(E),this.__dataAttributes[h]=E);return h};
W.prototype._definePropertyAccessor=function(E,h){Object.defineProperty(this,E,{get:function(){return this.__data[E]},
set:h?function(){}:function(d){this._setPendingProperty(E,d,!0)&&this._invalidateProperties()}})};
W.prototype.ready=function(){this.__dataReady=!0;this._flushProperties()};
W.prototype._initializeProperties=function(){for(var E in this.__dataHasAccessor)this.hasOwnProperty(E)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[E]=this[E],delete this[E])};
W.prototype._initializeInstanceProperties=function(E){Object.assign(this,E)};
W.prototype._setProperty=function(E,h){this._setPendingProperty(E,h)&&this._invalidateProperties()};
W.prototype._getProperty=function(E){return this.__data[E]};
W.prototype._setPendingProperty=function(E,h){var d=this.__data[E],V=this._shouldPropertyChange(E,h,d);V&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),!this.__dataOld||E in this.__dataOld||(this.__dataOld[E]=d),this.__data[E]=h,this.__dataPending[E]=h);return V};
W.prototype._isPropertyPending=function(E){return!(!this.__dataPending||!this.__dataPending.hasOwnProperty(E))};
W.prototype._invalidateProperties=function(){var E=this;!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,aL.run(function(){E.__dataInvalid&&(E.__dataInvalid=!1,E._flushProperties())}))};
W.prototype._enableProperties=function(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())};
W.prototype._flushProperties=function(){this.__dataCounter++;var E=this.__data,h=this.__dataPending,d=this.__dataOld;this._shouldPropertiesChange(E,h,d)&&(this.__dataOld=this.__dataPending=null,this._propertiesChanged(E,h,d));this.__dataCounter--};
W.prototype._shouldPropertiesChange=function(E,h){return!!h};
W.prototype._propertiesChanged=function(){};
W.prototype._shouldPropertyChange=function(E,h,d){return d!==h&&(d===d||h===h)};
W.prototype.attributeChangedCallback=function(E,h,d,V){h!==d&&this._attributeToProperty(E,d);F.prototype.attributeChangedCallback&&F.prototype.attributeChangedCallback.call(this,E,h,d,V)};
W.prototype._attributeToProperty=function(E,h,d){if(!this.__serializing){var V=this.__dataAttributes;E=V&&V[E]||E;this[E]=this._deserializeValue(h,d||this.constructor.typeForProperty(E))}};
W.prototype._propertyToAttribute=function(E,h,d){this.__serializing=!0;d=arguments.length<3?this[E]:d;this._valueToNodeAttribute(this,d,h||this.constructor.attributeNameForProperty(E));this.__serializing=!1};
W.prototype._valueToNodeAttribute=function(E,h,d){h=this._serializeValue(h);if(d==="class"||d==="name"||d==="slot")E=(0,_.IL)(E);h===void 0?E.removeAttribute(d):E.setAttribute(d,h===""&&window.trustedTypes?window.trustedTypes.emptyScript:h)};
W.prototype._serializeValue=function(E){switch(typeof E){case "boolean":return E?"":void 0;default:return E!=null?E.toString():void 0}};
W.prototype._deserializeValue=function(E,h){switch(h){case Boolean:return E!==null;case Number:return Number(E);default:return E}};
return W});var bgU=0,OQn=[];var lUc=WD(function(F){function W(V){V=Object.getPrototypeOf(V);return V.prototype instanceof d?V:null}
function E(V){if(!V.hasOwnProperty("__ownProperties")){var R=null;if(V.hasOwnProperty("properties")){var M=V.properties;if(M){R={};for(var g in M){var t=M[g];R[g]=typeof t==="function"?{type:t}:t}}}V.__ownProperties=R}return V.__ownProperties}
var h=OgB(F),d=function(){return h.apply(this,arguments)||this};
_.k(d,h);d.finalize=function(){if(!this.hasOwnProperty("__finalized")){var V=W(this);V&&V.finalize();this.__finalized=!0;this._finalizeClass()}};
d._finalizeClass=function(){var V=E(this);V&&this.createProperties(V)};
d.typeForProperty=function(V){return(V=this._properties[V])&&V.type};
d.prototype._initializeProperties=function(){bgU++;this.constructor.finalize();h.prototype._initializeProperties.call(this)};
d.prototype.connectedCallback=function(){h.prototype.connectedCallback&&h.prototype.connectedCallback.call(this);this._enableProperties()};
d.prototype.disconnectedCallback=function(){h.prototype.disconnectedCallback&&h.prototype.disconnectedCallback.call(this)};
_.Sn.Object.defineProperties(d,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){var V=this;if(!this.hasOwnProperty("__observedAttributes")){bQw(this.prototype);var R=this._properties;this.__observedAttributes=R?Object.keys(R).map(function(M){return V.prototype._addPropertyToAttributeMap(M)}):[]}return this.__observedAttributes}},
_properties:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("__properties")){var V=W(this);this.__properties=Object.assign({},V&&V._properties,E(this))}return this.__properties}}});
return d});var lRn={},nYn=/-[a-z]/g,ybY=/([A-Z])/g;for(var nxU={},yR_=HTMLElement.prototype;yR_;){for(var jkp=Object.getOwnPropertyNames(yR_),igT=0;igT<jkp.length;igT++)nxU[jkp[igT]]=!0;yR_=Object.getPrototypeOf(yR_)}var rRa=window.trustedTypes?function(F){return trustedTypes.isHTML(F)||trustedTypes.isScript(F)||trustedTypes.isScriptURL(F)}:function(){return!1},T8p=WD(function(F){var W=OgB(F);
F=function(){return W.apply(this,arguments)||this};
_.k(F,W);F.createPropertiesForAttributes=function(){for(var E=this.observedAttributes,h=0;h<E.length;h++)this.prototype._createPropertyAccessor(RL(E[h]))};
F.attributeNameForProperty=function(E){return en(E)};
F.prototype._initializeProperties=function(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null);W.prototype._initializeProperties.call(this)};
F.prototype._initializeProtoProperties=function(E){for(var h in E)this._setProperty(h,E[h])};
F.prototype._ensureAttribute=function(E,h){this.hasAttribute(E)||this._valueToNodeAttribute(this,h,E)};
F.prototype._serializeValue=function(E){switch(typeof E){case "object":if(E instanceof Date)return E.toString();if(E){if(rRa(E))return E;try{return JSON.stringify(E)}catch(h){return""}}default:return W.prototype._serializeValue.call(this,E)}};
F.prototype._deserializeValue=function(E,h){switch(h){case Object:try{var d=JSON.parse(E)}catch(V){d=E}break;case Array:try{d=JSON.parse(E)}catch(V){d=null,console.warn("Polymer::Attributes: couldn't decode Array as JSON: "+E)}break;case Date:d=isNaN(E)?String(E):Number(E);d=new Date(d);break;default:d=W.prototype._deserializeValue.call(this,E,h)}return d};
F.prototype._definePropertyAccessor=function(E,h){if(!nxU[E]){var d=this[E];d!==void 0&&(this.__data?this._setPendingProperty(E,d):(this.__dataProto?this.hasOwnProperty("__dataProto")||(this.__dataProto=Object.create(this.__dataProto)):this.__dataProto={},this.__dataProto[E]=d))}W.prototype._definePropertyAccessor.call(this,E,h)};
F.prototype._hasAccessor=function(E){return this.__dataHasAccessor&&this.__dataHasAccessor[E]};
F.prototype._isPropertyPending=function(E){return!!(this.__dataPending&&E in this.__dataPending)};
return F});var oxp={"dom-if":!0,"dom-repeat":!0},GMT=!1,YgM=!1,wfB=function(){var F=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:function(W){return W}});
return function(W,E,h){E=E.getAttribute(h);F&&h.startsWith("on-")?W.setAttribute(h,F.createScript(E,h)):W.setAttribute(h,E)}}(),ufu=WD(function(F){var W=function(){return F.apply(this,arguments)||this};
_.k(W,F);W._parseTemplate=function(E,h){if(!E._templateInfo){var d=E._templateInfo={};d.nodeInfoList=[];d.nestedTemplate=!!h;d.stripWhiteSpace=h&&h.stripWhiteSpace||E.hasAttribute&&E.hasAttribute("strip-whitespace");this._parseTemplateContent(E,d,{parent:null})}return E._templateInfo};
W._parseTemplateContent=function(E,h,d){return this._parseTemplateNode(E.content,h,d)};
W._parseTemplateNode=function(E,h,d){var V=!1;E.localName!="template"||E.hasAttribute("preserve-content")?E.localName==="slot"&&(h.hasInsertionPoint=!0):V=this._parseTemplateNestedTemplate(E,h,d)||V;if(!GMT){GMT=!0;var R=document.createElement("textarea");R.placeholder="a";YgM=R.placeholder===R.textContent}YgM&&E.localName==="textarea"&&E.placeholder&&E.placeholder===E.textContent&&(E.textContent=null);E.firstChild&&this._parseTemplateChildNodes(E,h,d);E.hasAttributes&&E.hasAttributes()&&(V=this._parseTemplateNodeAttributes(E,
h,d)||V);return V||d.noted};
W._parseTemplateChildNodes=function(E,h,d){if(E.localName!=="script"&&E.localName!=="style")for(var V=E.firstChild,R=0,M;V;V=M){if(V.localName=="template"){var g=V.getAttribute("is");if(g&&oxp[g])for(M=V,M.removeAttribute("is"),V=M.ownerDocument.createElement(g),M.parentNode.replaceChild(V,M),V.appendChild(M);M.attributes.length;)g=M.attributes[0].name,wfB(V,M,g),M.removeAttribute(g)}M=V.nextSibling;if(V.nodeType===Node.TEXT_NODE){for(g=M;g&&g.nodeType===Node.TEXT_NODE;)V.textContent+=g.textContent,
M=g.nextSibling,E.removeChild(g),g=M;if(h.stripWhiteSpace&&!V.textContent.trim()){E.removeChild(V);continue}}g={parentIndex:R,parentInfo:d};this._parseTemplateNode(V,h,g)&&(g.infoIndex=h.nodeInfoList.push(g)-1);V.parentNode&&R++}};
W._parseTemplateNestedTemplate=function(E,h,d){h=this._parseTemplate(E,h);(h.content=E.content.ownerDocument.createDocumentFragment()).appendChild(E.content);d.templateInfo=h;return!0};
W._parseTemplateNodeAttributes=function(E,h,d){for(var V=!1,R=Array.from(E.attributes),M=R.length-1,g;g=R[M];M--)V=this._parseTemplateNodeAttribute(E,h,d,g.name,g.value)||V;return V};
W._parseTemplateNodeAttribute=function(E,h,d,V,R){return V.slice(0,3)==="on-"?(E.removeAttribute(V),d.events=d.events||[],d.events.push({name:V.slice(3),value:R}),!0):V==="id"?(d.id=R,!0):!1};
W._contentForTemplate=function(E){var h=E._templateInfo;return h&&h.content||E.content};
W.prototype._stampTemplate=function(E,h){E&&!E.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(E);h=h||this.constructor._parseTemplate(E);var d=h.nodeInfoList;E=document.importNode(h.content||E.content,!0);E.__noInsertionPoint=!h.hasInsertionPoint;var V=E.nodeList=Array(d.length);E.$={};for(var R=0,M=d.length,g=void 0;R<M&&(g=d[R]);R++){var t=V[R]=j3I(E,g);g.id&&(E.$[g.id]=t);var C=t,B=g,I=h;B.templateInfo&&(C._templateInfo=B.templateInfo,C._parentTemplateInfo=
I);if(g.events&&g.events.length)for(C=0,B=g.events,I=void 0;C<B.length&&(I=B[C]);C++)this._addMethodEventListenerToNode(t,I.name,I.value,this)}return E};
W.prototype._addMethodEventListenerToNode=function(E,h,d,V){d=iQW(V||E,d);this._addEventListenerToNode(E,h,d);return d};
W.prototype._addEventListenerToNode=function(E,h,d){E.addEventListener(h,d)};
W.prototype._removeEventListenerFromNode=function(E,h,d){E.removeEventListener(h,d)};
return W});var Bs=0,Dm=[],SgB={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},pfi=/[A-Z]/,mWM=function(F,W,E,h,d){var V=d?gT(F):F;if(W=W[V])for(V=0;V<W.length;V++){var R=W[V];if(R.info.lastRun!==Bs&&(!d||wrY(F,R.trigger))){R.info.lastRun=Bs;R=R.info;for(var M=E,g=h,t=0,C=M.length-1,B=-1;t<=C;){var I=t+C>>1,x=g.get(M[I].methodInfo)-g.get(R.methodInfo);if(x<0)t=I+1;else if(x>0)C=I-1;else{B=I;break}}B<
0&&(B=C+1);M.splice(B,0,R)}}},ewb=[],K1H=RegExp("(\\[\\[|{{)\\s*(?:(!)\\s*)?((?:[a-zA-Z_$][\\w.:$\\-*]*)\\s*(?:\\(\\s*(?:(?:(?:((?:[a-zA-Z_$][\\w.:$\\-*]*)|(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)|(?:(?:'(?:[^'\\\\]|\\\\.)*')|(?:\"(?:[^\"\\\\]|\\\\.)*\")))\\s*)(?:,\\s*(?:((?:[a-zA-Z_$][\\w.:$\\-*]*)|(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)|(?:(?:'(?:[^'\\\\]|\\\\.)*')|(?:\"(?:[^\"\\\\]|\\\\.)*\")))\\s*))*)?)\\)\\s*)?)(?:]]|}})","g"),hB=WD(function(F){var W=ufu(T8p(F));
F=function(){var E=W.call(this)||this;E.__isPropertyEffectsClient=!0;return E};
_.k(F,W);F.prototype._initializeProperties=function(){W.prototype._initializeProperties.call(this);this._registerHost();this.__dataClientsReady=!1;this.__dataLinkedPaths=this.__dataToNotify=this.__dataPendingClients=null;this.__dataHasPaths=!1;this.__dataCompoundStorage=this.__dataCompoundStorage||null;this.__dataHost=this.__dataHost||null;this.__dataTemp={};this.__dataClientsInitialized=!1};
F.prototype._registerHost=function(){if(Ew.length){var E=Ew[Ew.length-1];E._enqueueClient(this);this.__dataHost=E}};
F.prototype._initializeProtoProperties=function(E){this.__data=Object.create(E);this.__dataPending=Object.create(E);this.__dataOld={}};
F.prototype._initializeInstanceProperties=function(E){var h=this.__readOnly,d;for(d in E)h&&h[d]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[d]=this.__dataPending[d]=E[d])};
F.prototype._addPropertyEffect=function(E,h,d){this._createPropertyAccessor(E,h=="__readOnly");var V=YdY(this,h,!0)[E];V||(V=this[h][E]=[]);V.push(d)};
F.prototype._removePropertyEffect=function(E,h,d){E=YdY(this,h,!0)[E];d=E.indexOf(d);d>=0&&E.splice(d,1)};
F.prototype._hasPropertyEffect=function(E,h){h=this[h];return!(!h||!h[E])};
F.prototype._hasReadOnlyEffect=function(E){return this._hasPropertyEffect(E,"__readOnly")};
F.prototype._hasNotifyEffect=function(E){return this._hasPropertyEffect(E,"__notifyEffects")};
F.prototype._hasReflectEffect=function(E){return this._hasPropertyEffect(E,"__reflectEffects")};
F.prototype._hasComputedEffect=function(E){return this._hasPropertyEffect(E,"__computeEffects")};
F.prototype._setPendingPropertyOrPath=function(E,h,d,V){if(V||gT(Array.isArray(E)?E[0]:E)!==E){if(!V&&(V=CX(this,E),E=G_I(this,E,h),!E||!W.prototype._shouldPropertyChange.call(this,E,h,V)))return!1;this.__dataHasPaths=!0;if(this._setPendingProperty(E,h,d)){if(d=this.__dataLinkedPaths)for(var R in d)V=d[R],QQ(R,E)?(V=zn(R,V,E),this._setPendingPropertyOrPath(V,h,!0,!0)):QQ(V,E)&&(V=zn(V,R,E),this._setPendingPropertyOrPath(V,h,!0,!0));return!0}}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[E])return this._setPendingProperty(E,
h,d);this[E]=h}return!1};
F.prototype._setUnmanagedPropertyToNode=function(E,h,d){if(d!==E[h]||typeof d=="object")h==="className"&&(E=(0,_.IL)(E)),E[h]=d};
F.prototype._setPendingProperty=function(E,h,d){var V=this.__dataHasPaths&&MQ(E);if(this._shouldPropertyChange(E,h,(V?this.__dataTemp:this.__data)[E])){this.__dataPending||(this.__dataPending={},this.__dataOld={});E in this.__dataOld||(this.__dataOld[E]=this.__data[E]);V?this.__dataTemp[E]=h:this.__data[E]=h;this.__dataPending[E]=h;if(V||this.__notifyEffects&&this.__notifyEffects[E])this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[E]=d;return!0}return!1};
F.prototype._setProperty=function(E,h){this._setPendingProperty(E,h,!0)&&this._invalidateProperties()};
F.prototype._invalidateProperties=function(){this.__dataReady&&this._flushProperties()};
F.prototype._enqueueClient=function(E){this.__dataPendingClients=this.__dataPendingClients||[];E!==this&&this.__dataPendingClients.push(E)};
F.prototype._flushClients=function(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)};
F.prototype.__enableOrFlushClients=function(){var E=this.__dataPendingClients;if(E){this.__dataPendingClients=null;for(var h=0;h<E.length;h++){var d=E[h];d.__dataEnabled?d.__dataPending&&d._flushProperties():d._enableProperties()}}};
F.prototype._readyClients=function(){this.__enableOrFlushClients()};
F.prototype.setProperties=function(E,h){for(var d in E)!h&&this.__readOnly&&this.__readOnly[d]||this._setPendingPropertyOrPath(d,E[d],!0);this._invalidateProperties()};
F.prototype.ready=function(){this._flushProperties();this.__dataClientsReady||this._flushClients();this.__dataPending&&this._flushProperties()};
F.prototype._propertiesChanged=function(E,h,d){E=this.__dataHasPaths;this.__dataHasPaths=!1;var V;if(V=this.__computeEffects)if(qge){Bs++;var R=F9k(this),M=[],g;for(g in h)mWM(g,V,M,R,E);for(;g=M.shift();)EVR(this,"",h,d,g)&&mWM(g.methodInfo,V,M,R,E);Object.assign(d,this.__dataOld);Object.assign(h,this.__dataPending);this.__dataPending=null}else for(R=h;vs(this,V,R,d,E);)Object.assign(d,this.__dataOld),Object.assign(h,this.__dataPending),R=this.__dataPending,this.__dataPending=null;V=this.__dataToNotify;
this.__dataToNotify=null;this._propagatePropertyChanges(h,d,E);this._flushClients();vs(this,this.__reflectEffects,h,d,E);vs(this,this.__observeEffects,h,d,E);if(V){R=this.__notifyEffects;M=Bs++;for(var t in V)if(V[t]){if(g=R){var C=R;g=M;var B=t,I=h,x=d,A=E,X=!1,P=A?gT(B):B;if(C=C[P]){P=0;for(var b=C.length,l=void 0;P<b&&(l=C[P]);P++)l.info&&l.info.lastRun===g||A&&!wrY(B,l.trigger)||(l.info&&(l.info.lastRun=g),l.fn(this,B,I,x,l.info,A,void 0),X=!0)}g=X}if(g)var w=!0;else{if(g=E)g=t,B=h,I=gT(g),I!==
g?(I=en(I)+"-changed",SdI(this,I,B[g],g),g=!0):g=!1;g&&(w=!0)}}var G;w&&(G=this.__dataHost)&&G._invalidateProperties&&G._invalidateProperties()}this.__dataCounter==1&&(this.__dataTemp={})};
F.prototype._propagatePropertyChanges=function(E,h,d){this.__propagateEffects&&vs(this,this.__propagateEffects,E,h,d);this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,E,h,d)};
F.prototype._runEffectsForTemplate=function(E,h,d,V){var R=this,M=function(g,t){vs(R,E.propertyEffects,g,d,t,E.nodeList);for(var C=E.firstChild;C;C=C.nextSibling)R._runEffectsForTemplate(C,g,d,t)};
E.runEffects?E.runEffects(M,h,V):M(h,V)};
F.prototype.linkPaths=function(E,h){E=tt(E);h=tt(h);this.__dataLinkedPaths=this.__dataLinkedPaths||{};this.__dataLinkedPaths[E]=h};
F.prototype.unlinkPaths=function(E){E=tt(E);this.__dataLinkedPaths&&delete this.__dataLinkedPaths[E]};
F.prototype.notifySplices=function(E,h){var d={path:""};E=CX(this,E,d);zwr(this,E,d.path,h)};
F.prototype.get=function(E,h){return CX(h||this,E)};
F.prototype.set=function(E,h,d){d?G_I(d,E,h):this.__readOnly&&this.__readOnly[E]||this._setPendingPropertyOrPath(E,h,!0)&&this._invalidateProperties()};
F.prototype.push=function(E){var h=_.Dd.apply(1,arguments),d={path:""},V=CX(this,E,d),R=V.length,M=V.push.apply(V,_.x9(h));h.length&&kO(this,V,d.path,R,h.length,[]);return M};
F.prototype.pop=function(E){var h={path:""};E=CX(this,E,h);var d=!!E.length,V=E.pop();d&&kO(this,E,h.path,E.length,0,[V]);return V};
F.prototype.splice=function(E,h,d){var V=_.Dd.apply(3,arguments),R={path:""},M=CX(this,E,R);h<0?h=M.length-Math.floor(-h):h&&(h=Math.floor(h));var g=arguments.length===2?M.splice(h):M.splice.apply(M,[h,d].concat(_.x9(V)));(V.length||g.length)&&kO(this,M,R.path,h,V.length,g);return g};
F.prototype.shift=function(E){var h={path:""};E=CX(this,E,h);var d=!!E.length,V=E.shift();d&&kO(this,E,h.path,0,0,[V]);return V};
F.prototype.unshift=function(E){var h=_.Dd.apply(1,arguments),d={path:""},V=CX(this,E,d),R=V.unshift.apply(V,_.x9(h));h.length&&kO(this,V,d.path,0,h.length,[]);return R};
F.prototype.notifyPath=function(E,h){if(arguments.length==1){var d={path:""};h=CX(this,E,d);d=d.path}else d=Array.isArray(E)?tt(E):E;this._setPendingPropertyOrPath(d,h,!0,!0)&&this._invalidateProperties()};
F.prototype._createReadOnlyProperty=function(E,h){this._addPropertyEffect(E,"__readOnly");h&&(this["_set"+(E[0].toUpperCase()+E.substring(1))]=function(d){this._setProperty(E,d)})};
F.prototype._createPropertyObserver=function(E,h,d){var V={property:E,method:h,dynamicFn:!!d};this._addPropertyEffect(E,"__observeEffects",{fn:uEY,info:V,trigger:{name:E}});d&&this._addPropertyEffect(h,"__observeEffects",{fn:uEY,info:V,trigger:{name:h}})};
F.prototype._createMethodObserver=function(E,h){var d=gVe(E);if(!d)throw Error("zd`"+E);UYe(this,d,"__observeEffects",W9G,null,h)};
F.prototype._createNotifyingProperty=function(E){this._addPropertyEffect(E,"__notifyEffects",{fn:prk,info:{eventName:en(E)+"-changed",property:E}})};
F.prototype._createReflectedProperty=function(E){var h=this.constructor.attributeNameForProperty(E);h[0]==="-"?console.warn("Property "+E+" cannot be reflected to attribute "+h+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(E,"__reflectEffects",{fn:mjb,info:{attrName:h}})};
F.prototype._createComputedProperty=function(E,h,d){var V=gVe(h);if(!V)throw Error("Ad`"+h);h=UYe(this,V,"__computeEffects",EVR,E,d);YdY(this,"__computeInfo")[E]=h};
F.prototype._marshalArgs=function(E,h,d){for(var V=this.__data,R=[],M=0,g=E.length;M<g;M++){var t=E[M],C=t.name,B=t.structured,I=t.wildcard,x=t.value;t.literal||(I?(t=QQ(C,h),B=Q6Y(V,d,t?h:C),x={path:t?h:C,value:B,base:t?CX(V,C):B}):x=B?Q6Y(V,d,C):V[C]);if(xO&&!this._overrideLegacyUndefined&&x===void 0&&E.length>1)return Dm;R[M]=x}return R};
F.addPropertyEffect=function(E,h,d){this.prototype._addPropertyEffect(E,h,d)};
F.createPropertyObserver=function(E,h,d){this.prototype._createPropertyObserver(E,h,d)};
F.createMethodObserver=function(E,h){this.prototype._createMethodObserver(E,h)};
F.createNotifyingProperty=function(E){this.prototype._createNotifyingProperty(E)};
F.createReadOnlyProperty=function(E,h){this.prototype._createReadOnlyProperty(E,h)};
F.createReflectedProperty=function(E){this.prototype._createReflectedProperty(E)};
F.createComputedProperty=function(E,h,d){this.prototype._createComputedProperty(E,h,d)};
F.bindTemplate=function(E){return this.prototype._bindTemplate(E)};
F.prototype._bindTemplate=function(E,h){var d=this.constructor._parseTemplate(E),V=this.__preBoundTemplateInfo==d;if(!V)for(var R in d.propertyEffects)this._createPropertyAccessor(R);h?(d=Object.create(d),d.wasPreBound=V,this.__templateInfo?(E=E._parentTemplateInfo||this.__templateInfo,h=E.lastChild,d.parent=E,E.lastChild=d,(d.previousSibling=h)?h.nextSibling=d:E.firstChild=d):this.__templateInfo=d):this.__preBoundTemplateInfo=d;return d};
F._addTemplatePropertyEffect=function(E,h,d){(E.hostProps=E.hostProps||{})[h]=!0;E=E.propertyEffects=E.propertyEffects||{};(E[h]=E[h]||[]).push(d)};
F.prototype._stampTemplate=function(E,h){h=h||this._bindTemplate(E,!0);Ew.push(this);E=W.prototype._stampTemplate.call(this,E,h);Ew.pop();h.nodeList=E.nodeList;if(!h.wasPreBound)for(var d=h.childNodes=[],V=E.firstChild;V;V=V.nextSibling)d.push(V);E.templateInfo=h;d=h.nodeList;V=h.nodeInfoList;if(V.length)for(var R=0;R<V.length;R++){var M=d[R],g=V[R].bindings;if(g)for(var t=0;t<g.length;t++){var C=g[t],B=M,I=C;if(I.isCompound){for(var x=B.__dataCompoundStorage||(B.__dataCompoundStorage={}),A=I.parts,
X=Array(A.length),P=0;P<A.length;P++)X[P]=A[P].literal;A=I.target;x[A]=X;I.literal&&I.kind=="property"&&(A==="className"&&(B=(0,_.IL)(B)),B[A]=I.literal)}Vbe(M,this,C)}M.__dataHost=this}this.__dataClientsReady&&(this._runEffectsForTemplate(h,this.__data,null,!1),this._flushClients());return E};
F.prototype._removeBoundDom=function(E){E=E.templateInfo;var h=E.previousSibling,d=E.nextSibling,V=E.parent;h?h.nextSibling=d:V&&(V.firstChild=d);d?d.previousSibling=h:V&&(V.lastChild=h);E.nextSibling=E.previousSibling=null;E=E.childNodes;for(h=0;h<E.length;h++)d=E[h],(0,_.IL)((0,_.IL)(d).parentNode).removeChild(d)};
F._parseTemplateNode=function(E,h,d){var V=W._parseTemplateNode.call(this,E,h,d);if(E.nodeType===Node.TEXT_NODE){var R=this._parseBindings(E.textContent,h);R&&(E.textContent=Rww(R)||" ",NkY(this,h,d,"text","textContent",R),V=!0)}return V};
F._parseTemplateNodeAttribute=function(E,h,d,V,R){var M=this._parseBindings(R,h);if(M){R=V;var g="property";pfi.test(V)?g="attribute":V[V.length-1]=="$"&&(V=V.slice(0,-1),g="attribute");var t=Rww(M);t&&g=="attribute"&&(V=="class"&&E.hasAttribute("class")&&(t+=" "+E.getAttribute(V)),E.setAttribute(V,t));g=="attribute"&&R=="disable-upgrade$"&&E.setAttribute(V,"");E.localName==="input"&&R==="value"&&E.setAttribute(R,"");E.removeAttribute(R);g==="property"&&(V=RL(V));NkY(this,h,d,g,V,M,t);return!0}return W._parseTemplateNodeAttribute.call(this,
E,h,d,V,R)};
F._parseTemplateNestedTemplate=function(E,h,d){var V=W._parseTemplateNestedTemplate.call(this,E,h,d),R=E.parentNode,M=d.templateInfo,g=R.localName==="dom-if",t=R.localName==="dom-repeat";S3&&(g||t)&&(R.removeChild(E),d=d.parentInfo,d.templateInfo=M,d.noted=!0,V=!1);E=M.hostProps;if(p$&&g)E&&(h.hostProps=Object.assign(h.hostProps||{},E),S3||(d.parentInfo.noted=!0));else for(var C in E)NkY(this,h,d,"property","_host_"+C,[{mode:"{",source:C,dependencies:[C],hostProp:!0}]);return V};
F._parseBindings=function(E,h){for(var d=[],V=0,R;(R=K1H.exec(E))!==null;){R.index>V&&d.push({literal:E.slice(V,R.index)});V=R[1][0];var M=!!R[2];R=R[3].trim();var g=!1,t="",C=-1;V=="{"&&(C=R.indexOf("::"))>0&&(t=R.substring(C+2),R=R.substring(0,C),g=!0);C=gVe(R);var B=[];if(C){var I=C,x=I.args;I=I.methodName;for(var A=0;A<x.length;A++){var X=x[A];X.literal||B.push(X)}if((x=h.dynamicFns)&&x[I]||C.static)B.push(I),C.dynamicFn=!0}else B.push(R);d.push({source:R,mode:V,negate:M,customEvent:g,signature:C,
dependencies:B,event:t});V=K1H.lastIndex}V&&V<E.length&&(E=E.substring(V))&&d.push({literal:E});return d.length?d:null};
F._evaluateBinding=function(E,h,d,V,R,M){E=h.signature?W9G(E,d,V,R,h.signature):d!=h.source?CX(E,h.source):M&&MQ(d)?CX(E,d):E.__data[d];h.negate&&(E=!E);return E};
_.Sn.Object.defineProperties(F.prototype,{PROPERTY_EFFECT_TYPES:{configurable:!0,enumerable:!0,get:function(){return SgB}}});
return F}),Ew=[];var Fsp=window.ShadyCSS&&window.ShadyCSS.cssBuild,dp=WD(function(F){function W(h,d,V,R){if(!Fsp){for(var M=d.content.querySelectorAll("style"),g=vVW(d),t=I1r(V),C=d.content.firstElementChild,B=0;B<t.length;B++){var I=t[B];I.textContent=h._processStyleText(I.textContent,R);d.content.insertBefore(I,C)}for(C=t=0;C<g.length;C++)B=g[C],I=M[t],I!==B?(B=B.cloneNode(!0),I.parentNode.insertBefore(B,I)):t++,B.textContent=h._processStyleText(B.textContent,R)}window.ShadyCSS&&window.ShadyCSS.prepareTemplate(d,
V);if(Zgu&&Fsp&&kMu&&(d=d.content.querySelectorAll("style"))){var x="";Array.from(d).forEach(function(A){x+=A.textContent;A.parentNode.removeChild(A)});
h._styleSheet=new CSSStyleSheet;h._styleSheet.replaceSync(x)}}
var E=lUc(hB(F));F=function(){return E.call(this)||this};
_.k(F,E);F._finalizeClass=function(){E._finalizeClass.call(this);var h;this.hasOwnProperty("__ownObservers")||(this.__ownObservers=this.hasOwnProperty("observers")?this.observers:null);(h=this.__ownObservers)&&this.createObservers(h,this._properties);this._prepareTemplate()};
F._prepareTemplate=function(){var h=this.template;h&&(typeof h==="string"?(console.error("template getter must return HTMLTemplateElement"),h=null):OR||(h=h.cloneNode(!0)));this.prototype._template=h};
F.createProperties=function(h){for(var d in h){var V=this.prototype,R=d,M=h[d],g=h;M.computed&&(M.readOnly=!0);M.computed&&(V._hasReadOnlyEffect(R)?console.warn("Cannot redefine computed property '"+R+"'."):V._createComputedProperty(R,M.computed,g));M.readOnly&&!V._hasReadOnlyEffect(R)?V._createReadOnlyProperty(R,!M.computed):M.readOnly===!1&&V._hasReadOnlyEffect(R)&&console.warn("Cannot make readOnly property '"+R+"' non-readOnly.");M.reflectToAttribute&&!V._hasReflectEffect(R)?V._createReflectedProperty(R):
M.reflectToAttribute===!1&&V._hasReflectEffect(R)&&console.warn("Cannot make reflected property '"+R+"' non-reflected.");M.notify&&!V._hasNotifyEffect(R)?V._createNotifyingProperty(R):M.notify===!1&&V._hasNotifyEffect(R)&&console.warn("Cannot make notify property '"+R+"' non-notify.");M.observer&&V._createPropertyObserver(R,M.observer,g[M.observer]);V._addPropertyToAttributeMap(R)}};
F.createObservers=function(h,d){for(var V=this.prototype,R=0;R<h.length;R++)V._createMethodObserver(h[R],d)};
F.prototype._initializeProperties=function(){this.constructor.finalize();this.constructor._finalizeTemplate(this.localName);E.prototype._initializeProperties.call(this);this.rootPath=ARu;this.importPath=this.constructor.importPath;var h=this.constructor;if(!h.hasOwnProperty("__propertyDefaults")){h.__propertyDefaults=null;var d=h._properties,V;for(V in d){var R=d[V];"value"in R&&(h.__propertyDefaults=h.__propertyDefaults||{},h.__propertyDefaults[V]=R)}}if(h=h.__propertyDefaults)for(var M in h)d=h[M],
this._canApplyPropertyDefault(M)&&(d=typeof d.value=="function"?d.value.call(this):d.value,this._hasAccessor(M)?this._setPendingProperty(M,d,!0):this[M]=d)};
F.prototype._canApplyPropertyDefault=function(h){return!this.hasOwnProperty(h)};
F._processStyleText=function(h,d){return HQY(h,d)};
F._finalizeTemplate=function(h){var d=this.prototype._template;if(d&&!d.__polymerFinalized){d.__polymerFinalized=!0;var V=this.importPath;V=V?_.VQ(V):"";W(this,d,h,V);this.prototype._bindTemplate(d)}};
F.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this);E.prototype.connectedCallback.call(this)};
F.prototype.ready=function(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$);E.prototype.ready.call(this)};
F.prototype._readyClients=function(){this._template&&(this.root=this._attachDom(this.root));E.prototype._readyClients.call(this)};
F.prototype._attachDom=function(h){var d=(0,_.IL)(this);if(d.attachShadow)return h?(d.shadowRoot||(d.attachShadow({mode:"open",shadyUpgradeFragment:h}),d.shadowRoot.appendChild(h),this.constructor._styleSheet&&(d.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),L1z&&window.ShadyDOM&&window.ShadyDOM.flushInitial(d.shadowRoot),d.shadowRoot):null;throw Error("Cd");};
F.prototype.updateStyles=function(h){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,h)};
F.prototype.resolveUrl=function(h,d){!d&&this.importPath&&(d=_.VQ(this.importPath));return _.VQ(h,d)};
F._parseTemplateContent=function(h,d,V){d.dynamicFns=d.dynamicFns||this._properties;return E._parseTemplateContent.call(this,h,d,V)};
F._addTemplatePropertyEffect=function(h,d,V){!yQ||d in this._properties||V.info.part.signature&&V.info.part.signature.static||V.info.part.hostProp||h.nestedTemplate||console.warn("Property '"+d+"' used in template but not declared in 'properties'; attribute will not be observed.");return E._addTemplatePropertyEffect.call(this,h,d,V)};
_.Sn.Object.defineProperties(F,{template:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_template")){var h=this.prototype.hasOwnProperty("_template")?this.prototype._template:void 0;typeof h==="function"&&(h=h());if(h===void 0){if(h=this.hasOwnProperty("is")){h=this.is;var d=null;if(h&&(!jn||ske)&&(d=At.import(h,"template"),jn&&!d))throw Error("Bd`"+h);h=d}h=h||Object.getPrototypeOf(this.prototype).constructor.template}this._template=h}return this._template},
set:function(h){this._template=h}},
importPath:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_importPath")){var h=this.importMeta;h?this._importPath=PzY(h.url):this._importPath=(h=At.import(this.is))&&h.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}return this._importPath}}});
return F});var WsX=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:function(F){return F}}),L9o=function(F,W){EbB(F,W);
this.value=W.reduce(function(E,h,d){return E+q8n(h)+F[d+1]},F[0]).toString()},EbB;
L9o.prototype.toString=function(){return this.value};
_.hse=function(F){var W=_.Dd.apply(1,arguments);EbB(F,W);var E=document.createElement("template");W=W.reduce(function(h,d,V){if(d instanceof HTMLTemplateElement)d=d.innerHTML;else if(d instanceof L9o)d=q8n(d);else throw Error("Ed`"+d);return h+d+F[V+1]},F[0]);
WsX&&(W=WsX.createHTML(W));E.innerHTML=W;return E};
EbB=function(F,W){if(!Array.isArray(F)||!Array.isArray(F.raw)||W.length!==F.length-1)throw new TypeError("Fd");};var NH=dp(HTMLElement);var dcT=WD(function(F){var W=dp(F);F=function(){var E=W.call(this)||this;E.__lastItems=null;E.__lastMulti=null;E.__selectedMap=null;return E};
_.k(F,W);F.prototype.__updateSelection=function(E,h){var d=h.path;d=="items"?(h=h.base||[],d=this.__lastItems,E!==this.__lastMulti&&this.clearSelection(),d&&(d=s6W(h,d),this.__applySplices(d)),this.__lastItems=h,this.__lastMulti=E):h.path=="items.splices"?this.__applySplices(h.value.indexSplices):(E=d.slice(6),h=parseInt(E,10),E.indexOf(".")<0&&E==h&&this.__deselectChangedIdx(h))};
F.prototype.__applySplices=function(E){for(var h=this,d=this.__selectedMap,V={},R=0;R<E.length;V={s$jscomp$108:void 0},R++){V.s$jscomp$108=E[R];d.forEach(function(C){return function(B,I){B<C.s$jscomp$108.index||(B>=C.s$jscomp$108.index+C.s$jscomp$108.removed.length?d.set(I,B+C.s$jscomp$108.addedCount-C.s$jscomp$108.removed.length):d.set(I,-1))}}(V));
for(var M=0;M<V.s$jscomp$108.addedCount;M++){var g=V.s$jscomp$108.index+M;d.has(this.items[g])&&d.set(this.items[g],g)}}this.__updateLinks();var t=0;d.forEach(function(C,B){C<0?(h.multi?h.splice("selected",t,1):h.selected=h.selectedItem=null,d.delete(B)):t++})};
F.prototype.__updateLinks=function(){var E=this;this.__dataLinkedPaths={};if(this.multi){var h=0;this.__selectedMap.forEach(function(d){d>=0&&E.linkPaths("items."+d,"selected."+h++)})}else this.__selectedMap.forEach(function(d){E.linkPaths("selected","items."+d);
E.linkPaths("selectedItem","items."+d)})};
F.prototype.clearSelection=function(){this.__dataLinkedPaths={};this.__selectedMap=new Map;this.selected=this.multi?[]:null;this.selectedItem=null};
F.prototype.isSelected=function(E){return this.__selectedMap.has(E)};
F.prototype.isIndexSelected=function(E){return this.isSelected(this.items[E])};
F.prototype.__deselectChangedIdx=function(E){var h=this,d=this.__selectedIndexForItemIndex(E);if(d>=0){var V=0;this.__selectedMap.forEach(function(R,M){d==V++&&h.deselect(M)})}};
F.prototype.__selectedIndexForItemIndex=function(E){if(E=this.__dataLinkedPaths["items."+E])return parseInt(E.slice(9),10)};
F.prototype.deselect=function(E){var h=this.__selectedMap.get(E);if(h>=0){this.__selectedMap.delete(E);var d;this.multi&&(d=this.__selectedIndexForItemIndex(h));this.__updateLinks();this.multi?this.splice("selected",d,1):this.selected=this.selectedItem=null}};
F.prototype.deselectIndex=function(E){this.deselect(this.items[E])};
F.prototype.select=function(E){this.selectIndex(this.items.indexOf(E))};
F.prototype.selectIndex=function(E){var h=this.items[E];this.isSelected(h)?this.toggle&&this.deselectIndex(E):(this.multi||this.__selectedMap.clear(),this.__selectedMap.set(h,E),this.__updateLinks(),this.multi?this.push("selected",h):this.selected=this.selectedItem=h)};
_.Sn.Object.defineProperties(F,{properties:{configurable:!0,enumerable:!0,get:function(){return{items:{type:Array},multi:{type:Boolean,value:!1},selected:{type:Object,notify:!0},selectedItem:{type:Object,notify:!0},toggle:{type:Boolean,value:!1}}}},
observers:{configurable:!0,enumerable:!0,get:function(){return["__updateSelection(multi, items.*)"]}}});
return F}),NWp=dcT(NH),VZ=function(){return NWp.apply(this,arguments)||this};
_.k(VZ,NWp);_.Sn.Object.defineProperties(VZ,{is:{configurable:!0,enumerable:!0,get:function(){return"array-selector"}},
template:{configurable:!0,enumerable:!0,get:function(){return null}}});
customElements.define(VZ.is,VZ);var V7X=window.Polymer;window.Polymer=function(F){return window.Polymer._polymerFn(F)};
V7X&&Object.assign(Polymer,V7X);Polymer._polymerFn=function(){throw Error("Gd");};/*

Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
part of the polymer project is also subject to an additional IP rights grant
found at http://polymer.github.io/PATENTS.txt
*/
Polymer.ResolveUrl={resolveCss:HQY,resolveUrl:_.VQ,pathFromUrl:PzY};Polymer.DomModule=At;Polymer.Async={timeOut:_.F4,animationFrame:_.DA,idlePeriod:aUu,microTask:aL};Polymer.dedupingMixin=WD;Polymer.wrap=_.IL;Polymer.PropertiesChanged=OgB;Polymer.telemetry={instanceCount:bgU,incrementInstanceCount:function(){bgU++},
registrations:OQn,register:bQw,dumpRegistrations:function(){OQn.forEach(_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry)}};Polymer.PropertiesMixin=lUc;Polymer.CaseMap={dashToCamelCase:RL,camelToDashCase:en};Polymer.PropertyAccessors=T8p;Polymer.TemplateStamp=ufu;Polymer.Path={isPath:MQ,root:gT,isAncestor:rbw,isDescendant:QQ,translate:zn,matches:TYr,normalize:tt,split:oYr,get:CX,set:G_I,isDeep:MQ};Polymer.Settings={useShadow:bM,useNativeCSSProperties:vx_,useNativeCustomElements:IUe,get rootPath(){return ARu},setRootPath:function(F){ARu=F},
get sanitizeDOMValue(){return cs},setSanitizeDOMValue:function(F){cs=F},
get passiveTouchGestures(){return j6o},setPassiveTouchGestures:function(F){j6o=F},
get strictTemplatePolicy(){return jn},setStrictTemplatePolicy:function(F){jn=F},
get allowTemplateFromDomModule(){return ske},setAllowTemplateFromDomModule:function(F){ske=F},
get legacyOptimizations(){return OR},setLegacyOptimizations:function(F){OR=F},
get syncInitialRender(){return L1z},setSyncInitialRender:function(F){L1z=F},
get legacyUndefined(){return xO},setLegacyUndefined:function(F){xO=F},
get legacyWarnings(){return yQ},setLegacyWarnings:function(F){yQ=F},
get orderedComputed(){return qge},setOrderedComputed:function(F){qge=F},
get fastDomIf(){return p$},setFastDomIf:function(F){p$=F},
get removeNestedTemplates(){return S3},setRemoveNestedTemplates:function(F){S3=F},
get suppressTemplateNotifications(){return mK},setSuppressTemplateNotifications:mK};Polymer.rootPath!==void 0&&(ARu=Polymer.rootPath);Polymer.sanitizeDOMValue!==void 0&&(cs=Polymer.sanitizeDOMValue);Polymer.passiveTouchGestures!==void 0&&(j6o=Polymer.passiveTouchGestures);Polymer.strictTemplatePolicy!==void 0&&(jn=Polymer.strictTemplatePolicy);ske=Polymer.allowTemplateFromDomModule!==void 0?Polymer.allowTemplateFromDomModule:!0;Polymer.legacyOptimizations!==void 0&&(OR=Polymer.legacyOptimizations);
Polymer.syncInitialRender!==void 0&&(L1z=Polymer.syncInitialRender);Polymer.legacyUndefined!==void 0&&(xO=Polymer.legacyUndefined);Polymer.legacyWarnings!==void 0&&(yQ=Polymer.legacyWarnings);Polymer.orderedComputed!==void 0&&(qge=Polymer.orderedComputed);Polymer.fastDomIf!==void 0&&(p$=Polymer.fastDomIf);Polymer.removeNestedTemplates!==void 0&&(S3=Polymer.removeNestedTemplates);Polymer.suppressTemplateNotifications!==void 0&&(mK=Polymer.suppressTemplateNotifications);
Object.defineProperty(Polymer,"sanitizeDOMValue",{get:function(){return cs},
set:function(F){cs=F}});Polymer.PropertyEffects=hB;Polymer.StyleGather={stylesFromModules:BkY,stylesFromModule:CJr,stylesFromTemplate:vVW,stylesFromModuleImports:I1r,cssFromModules:DYI,cssFromModule:cGr,cssFromTemplate:xYR,cssFromModuleImports:function(F){return(F=At.import(F))?_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(F):""}};Polymer.ElementMixin=dp;Polymer.updateStyles=function(F){window.ShadyCSS&&window.ShadyCSS.styleDocument(F)};
Polymer.version="3.5.0";Polymer.ArraySplice={calculateSplices:s6W};Polymer.html=_.hse;Polymer.htmlLiteral=function(F){return new L9o(F,_.Dd.apply(1,arguments))};Polymer.Element=NH;Polymer.ArraySelectorMixin=dcT;Polymer.ArraySelector=VZ;var Uca=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,Rs_=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,UBR=/@media\s(.*)/;var PJr=null,HxI=window.HTMLImports&&window.HTMLImports.whenReady||null,JGo;var esM=null,Uw=null,R7=function(){this.customStyles=[];this.enqueued=!1;a1k(function(){window.ShadyCSS.flushCustomStyles&&window.ShadyCSS.flushCustomStyles()})},M7T=function(F){!F.enqueued&&Uw&&(F.enqueued=!0,a1k(Uw))};
R7.prototype.addCustomStyle=function(F){F.__seenByShadyCSS||(F.__seenByShadyCSS=!0,this.customStyles.push(F),M7T(this))};
R7.prototype.getStyleForCustomStyle=function(F){if(F.__shadyCSSCachedStyle)return F.__shadyCSSCachedStyle;var W;F.getStyle?W=F.getStyle():W=F;return W};
R7.prototype.processStyles=function(){for(var F=this.customStyles,W=0;W<F.length;W++){var E=F[W];if(!E.__shadyCSSCachedStyle){var h=this.getStyleForCustomStyle(E);h&&(h=h.__appliedElement||h,esM&&esM(h),E.__shadyCSSCachedStyle=h)}}return F};
R7.prototype.addCustomStyle=R7.prototype.addCustomStyle;R7.prototype.getStyleForCustomStyle=R7.prototype.getStyleForCustomStyle;R7.prototype.processStyles=R7.prototype.processStyles;Object.defineProperties(R7.prototype,{transformCallback:{get:function(){return esM},
set:function(F){esM=F}},
validateCallback:{get:function(){return Uw},
set:function(F){var W=!1;Uw||(W=!0);Uw=F;W&&M7T(this)}}});var OxR=!(window.ShadyDOM&&window.ShadyDOM.inUse),f1Y,uM;window.ShadyCSS&&window.ShadyCSS.cssBuild!==void 0&&(uM=window.ShadyCSS.cssBuild);var gbH=!(!window.ShadyCSS||!window.ShadyCSS.disableRuntime);window.ShadyCSS&&window.ShadyCSS.nativeCss!==void 0?f1Y=window.ShadyCSS.nativeCss:window.ShadyCSS?(bxY(window.ShadyCSS),window.ShadyCSS=void 0):bxY(window.WebComponents&&window.WebComponents.flags);var dBe=f1Y;var QjO=new R7;window.ShadyCSS||(window.ShadyCSS={prepareTemplate:function(){},
prepareTemplateDom:function(){},
prepareTemplateStyles:function(){},
styleSubtree:function(F,W){QjO.processStyles();Zxo(F,W)},
styleElement:function(){QjO.processStyles()},
styleDocument:function(F){QjO.processStyles();Zxo(document.body,F)},
getComputedStyleValue:function(F,W){return XSe(F,W)},
flushCustomStyles:function(){},
nativeCss:dBe,nativeShadow:OxR,cssBuild:uM,disableRuntime:gbH});window.ShadyCSS.CustomStyleInterface=QjO;var zs_=window.ShadyCSS.CustomStyleInterface,eC=function(){var F=HTMLElement.call(this)||this;F._style=null;zs_.addCustomStyle(F);return F};
_.k(eC,HTMLElement);eC.prototype.getStyle=function(){if(this._style)return this._style;var F=this.querySelector("style");if(!F)return null;this._style=F;var W=F.getAttribute("include");W&&(F.removeAttribute("include"),F.textContent=DYI(W)+F.textContent);this.ownerDocument!==window.document&&window.document.head.appendChild(this);return this._style};
eC.prototype.getStyle=eC.prototype.getStyle;window.customElements.define("custom-style",eC);Polymer.CustomStyle=eC;var MH=function(){this._timer=this._callback=this._asyncModule=null},gp,Csi;
MH.prototype.setConfig=function(F,W){var E=this;this._asyncModule=F;this._callback=W;this._timer=this._asyncModule.run(function(){E._timer=null;gp.delete(E);E._callback()})};
MH.prototype.cancel=function(){this.isActive()&&(t7X(this),gp.delete(this))};
var t7X=function(F){F.isActive()&&(F._asyncModule.cancel(F._timer),F._timer=null)};
MH.prototype.flush=function(){this.isActive()&&(this.cancel(),this._callback())};
MH.prototype.isActive=function(){return this._timer!=null};
_.QZ=function(F,W,E){F instanceof MH?t7X(F):F=new MH;F.setConfig(W,E);return F};
gp=new Set;_.za=function(F){gp.add(F)};
Csi=function(){var F=!!gp.size;gp.forEach(function(W){try{W.flush()}catch(E){setTimeout(function(){throw E;})}});
return F};var nVI=typeof document.head.style.touchAction==="string",l1W=["mousedown","mousemove","mouseup","click"],wSk=[0,1,4,2],BWM;try{BWM=(new MouseEvent("test",{buttons:1})).buttons===1}catch(F){BWM=!1}var Y8W=BWM,yGn=!1;(function(){try{var F=Object.defineProperty({},"passive",{get:function(){yGn=!0}});
window.addEventListener("test",null,F);window.removeEventListener("test",null,F)}catch(W){}})();
var rGW=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/),TkY=[],vba={button:!0,input:!0,keygen:!0,meter:!0,output:!0,textarea:!0,progress:!0,select:!0},Vmb={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0},oVW=function(F){var W=F.sourceCapabilities;if(!W||W.firesTouchEvents)if(F.__polymerGesturesHandled={skip:!0},F.type==="click"){W=!1;for(var E=mYY(F),h=0;h<E.length;h++){if(E[h].nodeType===Node.ELEMENT_NODE)if(E[h].localName==="label")TkY.push(E[h]);
else if(vba[E[h].localName]){var d=E[h];var V=Array.prototype.slice.call(d.labels||[]);if(!V.length){V=[];try{var R=d.getRootNode();if(d.id){var M=R.querySelectorAll("label[for = '"+d.id+"']");for(d=0;d<M.length;d++)V.push(M[d])}}catch(g){}}for(d=0;d<V.length;d++)W=W||TkY.indexOf(V[d])>-1}if(E[h]===I2O)return}W||(F.preventDefault(),F.stopPropagation())}},I2O=null,tB=null,FcR=0,WcI=0,K9I=-1,Eab=!1;
document.addEventListener("touchend",function(F){tB||Gtw(!0);I2O=mYY(F)[0];tB=_.QZ(tB,_.F4.after(2500),function(){Gtw();tB=I2O=null})},yGn?{passive:!0}:!1);
var mYY=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:function(F){return F.composedPath&&F.composedPath()||[]},XV={},$O=[];
hMw({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset:function(){qQ(this.info)},
mousedown:function(F){if(LX(F)){var W=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(F),E=this;S8w(this.info,function(h){LX(h)||(fX("up",W,h),qQ(E.info))},function(h){LX(h)&&fX("up",W,h);
qQ(E.info)});
fX("down",W,F)}},
touchstart:function(F){fX("down",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(F),F.changedTouches[0],F)},
touchend:function(F){fX("up",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(F),F.changedTouches[0],F)}});
hMw({name:"track",touchAction:"none",deps:["mousedown","touchstart","touchmove","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["track"],info:{x:0,y:0,state:"start",started:!1,moves:[],addMove:function(F){this.moves.length>2&&this.moves.shift();this.moves.push(F)},
movefn:null,upfn:null,prevent:!1},reset:function(){this.info.state="start";this.info.started=!1;this.info.moves=[];this.info.x=0;this.info.y=0;this.info.prevent=!1;qQ(this.info)},
mousedown:function(F){if(LX(F)){var W=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(F),E=this,h=function(d){var V=d.clientX,R=d.clientY;dvw(E.info,V,R)&&(E.info.state=E.info.started?d.type==="mouseup"?"end":"track":"start",E.info.state==="start"&&Zm("tap"),E.info.addMove({x:V,y:R}),LX(d)||(E.info.state="end",qQ(E.info)),W&&N9n(E.info,W,d),E.info.started=!0)};
S8w(this.info,h,function(d){E.info.started&&h(d);qQ(E.info)});
this.info.x=F.clientX;this.info.y=F.clientY}},
touchstart:function(F){F=F.changedTouches[0];this.info.x=F.clientX;this.info.y=F.clientY},
touchmove:function(F){var W=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(F);F=F.changedTouches[0];var E=F.clientX,h=F.clientY;dvw(this.info,E,h)&&(this.info.state==="start"&&Zm("tap"),this.info.addMove({x:E,y:h}),N9n(this.info,W,F),this.info.state="track",this.info.started=!0)},
touchend:function(F){var W=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(F);F=F.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:F.clientX,y:F.clientY}),N9n(this.info,W,F))}});
hMw({name:"tap",deps:["mousedown","click","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["click","touchend"]},emits:["tap"],info:{x:NaN,y:NaN,prevent:!1},reset:function(){this.info.x=NaN;this.info.y=NaN;this.info.prevent=!1},
mousedown:function(F){LX(F)&&(this.info.x=F.clientX,this.info.y=F.clientY)},
click:function(F){LX(F)&&UvW(this.info,F)},
touchstart:function(F){F=F.changedTouches[0];this.info.x=F.clientX;this.info.y=F.clientY},
touchend:function(F){UvW(this.info,F.changedTouches[0],F)}});var cFO=WD(function(F){var W=function(){return F.apply(this,arguments)||this};
_.k(W,F);W.prototype._addEventListenerToNode=function(E,h,d){Hs(E,h,d)||F.prototype._addEventListenerToNode.call(this,E,h,d)};
W.prototype._removeEventListenerFromNode=function(E,h,d){Ps(E,h,d)||F.prototype._removeEventListenerFromNode.call(this,E,h,d)};
return W});var CB=WD(function(F){var W=function(){return F.apply(this,arguments)||this};
_.k(W,F);W.prototype._shouldPropertyChange=function(E,h,d){return RMR(this,E,h,d,!0)};
return W}),Dc_=WD(function(F){var W=function(){return F.apply(this,arguments)||this};
_.k(W,F);W.prototype._shouldPropertyChange=function(E,h,d){return RMR(this,E,h,d,this.mutableData)};
_.Sn.Object.defineProperties(W,{properties:{configurable:!0,enumerable:!0,get:function(){return{mutableData:Boolean}}}});
return W});
CB._mutablePropertyChange=RMR;var eMI=!1;var xcz=cFO(Dc_(hB(HTMLElement))),BD=function(){var F=xcz.call(this)||this;if(jn)throw Error("Hd");F.root=null;F.$=null;F.__children=null;return F};
_.k(BD,xcz);_.N=BD.prototype;_.N.attributeChangedCallback=function(){this.mutableData=!0};
_.N.connectedCallback=function(){Mmn()||(this.style.display="none");this.render()};
_.N.disconnectedCallback=function(){this.__removeChildren()};
_.N.__insertChildren=function(){(0,_.IL)((0,_.IL)(this).parentNode).insertBefore(this.root,this)};
_.N.__removeChildren=function(){if(this.__children)for(var F=0;F<this.__children.length;F++)this.root.appendChild(this.__children[F])};
_.N.render=function(){var F=this;if(!this.__children){var W=W||this.querySelector("template");if(!W){var E=new MutationObserver(function(){if(W=F.querySelector("template"))E.disconnect(),F.render();else throw Error("Id");});
E.observe(this,{childList:!0});return}this.root=this._stampTemplate(W);this.$=this.root.$;this.__children=[];for(var h=this.root.firstChild;h;h=h.nextSibling)this.__children[this.__children.length]=h;this._enableProperties()}this.__insertChildren();this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))};
_.Sn.Object.defineProperties(BD,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["mutable-data"]}}});
customElements.define("dom-bind",BD);Polymer.Debouncer=MH;Polymer.Gestures={gestures:XV,recognizers:$O,deepTargetFind:pSY,addListener:Hs,removeListener:Ps,register:hMw,setTouchAction:_.Jt,prevent:Zm,resetMouseCanceller:function(){tB&&tB.flush()},
findOriginalTarget:_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,add:Hs,remove:Ps};Polymer.GestureEventListeners=cFO;Polymer.MutableData=CB;Polymer.OptionalMutableData=Dc_;Polymer.DomBind=BD;_.vD=function(){do{var F=window.ShadyDOM&&ShadyDOM.flush();window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush();var W=Csi()}while(F||W)};var gaW=null;Q$W.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:Q$W,writable:!0}});var Dvr=hB(Q$W),cDY=CB(Dvr),kJU=hB(function(){}),lM=function(F){var W=kJU.call(this)||this;
W._configureProperties(F);W.root=W._stampTemplate(W.__dataHost);var E=[];W.children=E;for(var h=W.root.firstChild;h;h=h.nextSibling)E.push(h),h.__templatizeInstance=W;W.__templatizeOwner&&W.__templatizeOwner.__hideTemplateChildren__&&W._showHideChildren(!0);E=W.__templatizeOptions;(F&&E.instanceProps||!E.instanceProps)&&W._enableProperties();return W};
_.k(lM,kJU);_.N=lM.prototype;_.N._configureProperties=function(F){if(this.__templatizeOptions.forwardHostProp)for(var W in this.__hostProps)this._setPendingProperty(W,this.__dataHost["_host_"+W]);for(var E in F)this._setPendingProperty(E,F[E])};
_.N.forwardHostProp=function(F,W){this._setPendingPropertyOrPath(F,W,!1,!0)&&this.__dataHost._enqueueClient(this)};
_.N._addEventListenerToNode=function(F,W,E){var h=this;if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(F,W,function(V){V.model=h;E(V)});
else{var d=this.__dataHost.__dataHost;d&&d._addEventListenerToNode(F,W,E)}};
_.N._showHideChildren=function(F){tmr(F,this.children)};
_.N._setUnmanagedPropertyToNode=function(F,W,E){F.__hideTemplateChildren__&&F.nodeType==Node.TEXT_NODE&&W=="textContent"?F.__polymerTextContent__=E:kJU.prototype._setUnmanagedPropertyToNode.call(this,F,W,E)};
_.N.dispatchEvent=function(){return!0};
_.Sn.Object.defineProperties(lM.prototype,{parentModel:{configurable:!0,enumerable:!0,get:function(){var F=this.__parentModel;if(!F){var W;F=this;do F=F.__dataHost.__dataHost;while((W=F.__templatizeOptions)&&!W.parentModel);this.__parentModel=F}return F}}});
var B9R=CB(lM);var I7=function(){var F=NH.call(this)||this;F.__renderDebouncer=null;F._lastIf=!1;F.__hideTemplateChildren__=!1;return F};
_.k(I7,NH);_.N=I7.prototype;_.N.__debounceRender=function(){var F=this;this.__renderDebouncer=_.QZ(this.__renderDebouncer,aL,function(){return F.__render()});
_.za(this.__renderDebouncer)};
_.N.disconnectedCallback=function(){NH.prototype.disconnectedCallback.call(this);var F=(0,_.IL)(this).parentNode;F&&(F.nodeType!=Node.DOCUMENT_FRAGMENT_NODE||(0,_.IL)(F).host)||this.__teardownInstance()};
_.N.connectedCallback=function(){NH.prototype.connectedCallback.call(this);Mmn()||(this.style.display="none");this.if&&this.__debounceRender()};
_.N.__ensureTemplate=function(){var F=this;if(!this.__template){var W=this._templateInfo?this:(0,_.IL)(this).querySelector("template");if(!W){var E=new MutationObserver(function(){if((0,_.IL)(F).querySelector("template"))E.disconnect(),F.__render();else throw Error("Ld");});
E.observe(this,{childList:!0});return!1}this.__template=W}return!0};
_.N.__ensureInstance=function(){var F=(0,_.IL)(this).parentNode;if(this.__hasInstance()){var W=this.__getInstanceNodes();if(W&&W.length&&(0,_.IL)(this).previousSibling!==W[W.length-1])for(var E=0,h=void 0;E<W.length&&(h=W[E]);E++)(0,_.IL)(F).insertBefore(h,this)}else{if(!F||!this.__ensureTemplate())return!1;this.__createAndInsertInstance(F)}return!0};
_.N.render=function(){_.vD()};
_.N.__render=function(){if(this.if){if(!this.__ensureInstance())return}else this.restamp&&this.__teardownInstance();this._showHideChildren();mK&&!this.notifyDomChange||this.if==this._lastIf||(this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0})),this._lastIf=this.if)};
_.N.__hasInstance=function(){};
_.N.__getInstanceNodes=function(){};
_.N.__createAndInsertInstance=function(){};
_.N.__teardownInstance=function(){};
_.N._showHideChildren=function(){};
_.Sn.Object.defineProperties(I7,{is:{configurable:!0,enumerable:!0,get:function(){return"dom-if"}},
template:{configurable:!0,enumerable:!0,get:function(){return null}},
properties:{configurable:!0,enumerable:!0,get:function(){return{if:{type:Boolean,observer:I7.prototype.__debounceRender},restamp:{type:Boolean,observer:I7.prototype.__debounceRender},notifyDomChange:{type:Boolean}}}}});
var AFO=function(){var F=I7.call(this)||this;F.__instance=null;F.__syncInfo=null;return F};
_.k(AFO,I7);_.N=AFO.prototype;_.N.__hasInstance=function(){return!!this.__instance};
_.N.__getInstanceNodes=function(){return this.__instance.templateInfo.childNodes};
_.N.__createAndInsertInstance=function(F){var W=this,E=this.__dataHost||this;if(jn&&!this.__dataHost)throw Error("Jd");var h=E._bindTemplate(this.__template,!0);h.runEffects=function(d,V,R){var M=W.__syncInfo;if(W.if)M&&(W.__syncInfo=null,W._showHideChildren(),V=Object.assign(M.changedProps,V)),d(V,R);else if(W.__instance)if(M||(M=W.__syncInfo={runEffects:d,changedProps:{}}),R)for(var g in V)d=gT(g),M.changedProps[d]=W.__dataHost[d];else Object.assign(M.changedProps,V)};
this.__instance=E._stampTemplate(this.__template,h);(0,_.IL)(F).insertBefore(this.__instance,this)};
_.N.__syncHostProperties=function(){var F=this.__syncInfo;F&&(this.__syncInfo=null,F.runEffects(F.changedProps,!1))};
_.N.__teardownInstance=function(){var F=this.__dataHost||this;this.__instance&&(F._removeBoundDom(this.__instance),this.__syncInfo=this.__instance=null)};
_.N._showHideChildren=function(){var F=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==F&&(this.__instance.__hidden=F,tmr(F,this.__instance.templateInfo.childNodes));F||this.__syncHostProperties()};
var sjX=function(){var F=I7.call(this)||this;F.__ctor=null;F.__instance=null;F.__invalidProps=null;return F};
_.k(sjX,I7);_.N=sjX.prototype;_.N.__hasInstance=function(){return!!this.__instance};
_.N.__getInstanceNodes=function(){return this.__instance.children};
_.N.__createAndInsertInstance=function(F){this.__ctor||(this.__ctor=nX(this.__template,this,{mutableData:!0,forwardHostProp:function(W,E){this.__instance&&(this.if?this.__instance.forwardHostProp(W,E):(this.__invalidProps=this.__invalidProps||Object.create(null),this.__invalidProps[gT(W)]=!0))}}));
this.__instance=new this.__ctor;(0,_.IL)(F).insertBefore(this.__instance.root,this)};
_.N.__teardownInstance=function(){if(this.__instance){var F=this.__instance.children;if(F&&F.length){var W=(0,_.IL)(F[0]).parentNode;if(W){W=(0,_.IL)(W);for(var E=0,h=void 0;E<F.length&&(h=F[E]);E++)W.removeChild(h)}}this.__instance=this.__invalidProps=null}};
_.N.__syncHostProperties=function(){var F=this.__invalidProps;if(F){this.__invalidProps=null;for(var W in F)this.__instance._setPendingProperty(W,this.__dataHost[W]);this.__instance._flushProperties()}};
_.N._showHideChildren=function(){var F=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==F&&(this.__instance.__hidden=F,this.__instance._showHideChildren(F));F||this.__syncHostProperties()};
_.sO=p$?AFO:sjX;customElements.define(_.sO.is,_.sO);Polymer.enqueueDebouncer=_.za;Polymer.flush=_.vD;Polymer.Templatize={templatize:nX,modelForElement:qQo};Polymer.TemplateInstanceBase=lM;Polymer.DomIf=_.sO;var Lsp=Dc_(NH),AT=function(){var F=Lsp.call(this)||this;F.__instances=[];F.__renderDebouncer=null;F.__itemsIdxToInstIdx={};F.__chunkCount=null;F.__renderStartTime=null;F.__itemsArrayChanged=!1;F.__shouldMeasureChunk=!1;F.__shouldContinueChunking=!1;F.__chunkingId=0;F.__sortFn=null;F.__filterFn=null;F.__observePaths=null;F.__ctor=null;F.__isDetached=!0;F.template=null;return F};
_.k(AT,Lsp);_.N=AT.prototype;_.N.disconnectedCallback=function(){Lsp.prototype.disconnectedCallback.call(this);this.__isDetached=!0;for(var F=0;F<this.__instances.length;F++)this.__detachInstance(F);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)};
_.N.connectedCallback=function(){Lsp.prototype.connectedCallback.call(this);Mmn()||(this.style.display="none");if(this.__isDetached){this.__isDetached=!1;for(var F=(0,_.IL)((0,_.IL)(this).parentNode),W=0;W<this.__instances.length;W++)this.__attachInstance(W,F);this.__chunkingId&&this.__render()}};
_.N.__ensureTemplatized=function(){var F=this;if(!this.__ctor){var W=this.template=this._templateInfo?this:this.querySelector("template");if(!W){var E=new MutationObserver(function(){if(F.querySelector("template"))E.disconnect(),F.__render();else throw Error("Md");});
E.observe(this,{childList:!0});return!1}var h={};h[this.as]=!0;h[this.indexAs]=!0;h[this.itemsIndexAs]=!0;this.__ctor=nX(W,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:h,forwardHostProp:function(d,V){for(var R=this.__instances,M=0,g=void 0;M<R.length&&(g=R[M]);M++)g.forwardHostProp(d,V)},
notifyInstanceProp:function(d,V,R){TYr(this.as,V)&&(d=d[this.itemsIndexAs],V==this.as&&(this.items[d]=R),V=zn(this.as,"items."+d,V),this.notifyPath(V,R))}})}return!0};
_.N.__getMethodHost=function(){return this.__dataHost._methodHost||this.__dataHost};
_.N.__functionFromPropertyValue=function(F){if(typeof F==="string"){var W=this.__getMethodHost();return function(){return W[F].apply(W,arguments)}}return F};
_.N.__sortChanged=function(F){this.__sortFn=this.__functionFromPropertyValue(F);this.items&&this.__debounceRender(this.__render)};
_.N.__filterChanged=function(F){this.__filterFn=this.__functionFromPropertyValue(F);this.items&&this.__debounceRender(this.__render)};
_.N.__computeFrameTime=function(F){return Math.ceil(1E3/F)};
_.N.__observeChanged=function(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")};
_.N.__handleObservedPaths=function(F){if(this.__sortFn||this.__filterFn)if(!F)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths)for(var W=this.__observePaths,E=0;E<W.length;E++)F.indexOf(W[E])===0&&this.__debounceRender(this.__render,this.delay)};
_.N.__itemsChanged=function(F){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items);this.__handleItemPath(F.path,F.value)||(F.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))};
_.N.__debounceRender=function(F,W){W=W===void 0?0:W;this.__renderDebouncer=_.QZ(this.__renderDebouncer,W>0?_.F4.after(W):aL,F.bind(this));_.za(this.__renderDebouncer)};
_.N.render=function(){this.__debounceRender(this.__render);_.vD()};
_.N.__render=function(){var F=this;if(this.__ensureTemplatized()){var W=this.items||[],E=this.__sortAndFilterItems(W),h=this.__calculateLimit(E.length);this.__updateInstances(W,h,E);this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(function(){F.__chunkingId=null;F.__continueChunking()}));
this._setRenderedItemCount(this.__instances.length);mK&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.N.__sortAndFilterItems=function(F){for(var W=this,E=Array(F.length),h=0;h<F.length;h++)E[h]=h;this.__filterFn&&(E=E.filter(function(d,V,R){return W.__filterFn(F[d],V,R)}));
this.__sortFn&&E.sort(function(d,V){return W.__sortFn(F[d],F[V])});
return E};
_.N.__calculateLimit=function(F){var W=F,E=this.__instances.length;if(this.initialCount){var h;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(W=Math.min(F,this.initialCount),this.__chunkCount=(h=Math.max(W-E,0))||1):(h=Math.min(Math.max(F-E,0),this.__chunkCount),W=Math.min(E+h,F));this.__shouldMeasureChunk=h===this.__chunkCount;this.__shouldContinueChunking=W<F;this.__renderStartTime=performance.now()}this.__itemsArrayChanged=!1;return W};
_.N.__continueChunking=function(){if(this.__shouldMeasureChunk){var F=performance.now()-this.__renderStartTime;this.__chunkCount=Math.round(this._targetFrameTime/F*this.__chunkCount)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)};
_.N.__updateInstances=function(F,W,E){var h=this.__itemsIdxToInstIdx={},d;for(d=0;d<W;d++){var V=this.__instances[d],R=E[d],M=F[R];h[R]=d;V?(V._setPendingProperty(this.as,M),V._setPendingProperty(this.indexAs,d),V._setPendingProperty(this.itemsIndexAs,R),V._flushProperties()):this.__insertInstance(M,d,R)}for(F=this.__instances.length-1;F>=d;F--)this.__detachAndRemoveInstance(F)};
_.N.__detachInstance=function(F){F=this.__instances[F];for(var W=(0,_.IL)(F.root),E=0;E<F.children.length;E++)W.appendChild(F.children[E]);return F};
_.N.__attachInstance=function(F,W){W.insertBefore(this.__instances[F].root,this)};
_.N.__detachAndRemoveInstance=function(F){this.__detachInstance(F);this.__instances.splice(F,1)};
_.N.__stampInstance=function(F,W,E){var h={};h[this.as]=F;h[this.indexAs]=W;h[this.itemsIndexAs]=E;return new this.__ctor(h)};
_.N.__insertInstance=function(F,W,E){F=this.__stampInstance(F,W,E);E=(E=this.__instances[W+1])?E.children[0]:this;(0,_.IL)((0,_.IL)(this).parentNode).insertBefore(F.root,E);return this.__instances[W]=F};
_.N._showHideChildren=function(F){for(var W=0;W<this.__instances.length;W++)this.__instances[W]._showHideChildren(F)};
_.N.__handleItemPath=function(F,W){var E=F.slice(6),h=E.indexOf(".");F=h<0?E:E.substring(0,h);if(F==parseInt(F,10)){E=h<0?"":E.substring(h+1);this.__handleObservedPaths(E);if(F=this.__instances[this.__itemsIdxToInstIdx[F]])F._setPendingPropertyOrPath(this.as+(E?"."+E:""),W,!1,!0),F._flushProperties();return!0}};
_.N.itemForElement=function(F){return(F=this.modelForElement(F))&&F[this.as]};
_.N.indexForElement=function(F){return(F=this.modelForElement(F))&&F[this.indexAs]};
_.N.modelForElement=function(F){return qQo(this.template,F)};
_.Sn.Object.defineProperties(AT,{is:{configurable:!0,enumerable:!0,get:function(){return"dom-repeat"}},
template:{configurable:!0,enumerable:!0,get:function(){return null}},
properties:{configurable:!0,enumerable:!0,get:function(){return{items:{type:Array},as:{type:String,value:"item"},indexAs:{type:String,value:"index"},itemsIndexAs:{type:String,value:"itemsIndex"},sort:{type:Function,observer:AT.prototype.__sortChanged},filter:{type:Function,observer:AT.prototype.__filterChanged},observe:{type:String,observer:AT.prototype.__observeChanged},delay:Number,renderedItemCount:{type:Number,notify:!mK,readOnly:!0},initialCount:{type:Number},targetFramerate:{type:Number,value:20},
_targetFrameTime:{type:Number,computed:"__computeFrameTime(targetFramerate)"},notifyDomChange:{type:Boolean},reuseChunkedInstances:{type:Boolean}}}},
observers:{configurable:!0,enumerable:!0,get:function(){return["__itemsChanged(items.*)"]}}});
AT.prototype._setRenderedItemCount=function(){};
customElements.define(AT.is,AT);Polymer.DomRepeat=AT;var qTX=function(F,W){var E=this;this._nativeChildrenObserver=this._shadyChildrenObserver=null;this._connected=!1;this._target=F;this.callback=W;this._effectiveNodes=[];this._observer=null;this._scheduled=!1;this._boundSchedule=function(){E._schedule()};
this.connect();this._schedule()},$c_=function(F){var W=(0,_.IL)(F);
if(iM(F))return W.assignedNodes({flatten:!0});F=[];for(var E=0;E<W.childNodes.length;E++){var h=W.childNodes[E];iM(h)?F.push.apply(F,_.x9((0,_.IL)(h).assignedNodes({flatten:!0}))):F.push(h)}return F};
_.N=qTX.prototype;_.N.connect=function(){var F=this;iM(this._target)?this._listenSlots([this._target]):(0,_.IL)(this._target).children&&(this._listenSlots((0,_.IL)(this._target).children),window.ShadyDOM?this._shadyChildrenObserver=window.ShadyDOM.observeChildren(this._target,function(W){F._processMutations(W)}):(this._nativeChildrenObserver=new MutationObserver(function(W){F._processMutations(W)}),this._nativeChildrenObserver.observe(this._target,{childList:!0})));
this._connected=!0};
_.N.disconnect=function(){iM(this._target)?this._unlistenSlots([this._target]):(0,_.IL)(this._target).children&&(this._unlistenSlots((0,_.IL)(this._target).children),window.ShadyDOM&&this._shadyChildrenObserver?(window.ShadyDOM.unobserveChildren(this._shadyChildrenObserver),this._shadyChildrenObserver=null):this._nativeChildrenObserver&&(this._nativeChildrenObserver.disconnect(),this._nativeChildrenObserver=null));this._connected=!1};
_.N._schedule=function(){var F=this;this._scheduled||(this._scheduled=!0,aL.run(function(){return F.flush()}))};
_.N._processMutations=function(F){this._processSlotMutations(F);this.flush()};
_.N._processSlotMutations=function(F){if(F)for(var W=0;W<F.length;W++){var E=F[W];E.addedNodes&&this._listenSlots(E.addedNodes);E.removedNodes&&this._unlistenSlots(E.removedNodes)}};
_.N.flush=function(){if(!this._connected)return!1;window.ShadyDOM&&ShadyDOM.flush();this._nativeChildrenObserver?this._processSlotMutations(this._nativeChildrenObserver.takeRecords()):this._shadyChildrenObserver&&this._processSlotMutations(this._shadyChildrenObserver.takeRecords());this._scheduled=!1;for(var F={target:this._target,addedNodes:[],removedNodes:[]},W=$c_(this._target),E=s6W(W,this._effectiveNodes),h=0,d=void 0;h<E.length&&(d=E[h]);h++)for(var V=0,R=void 0;V<d.removed.length&&(R=d.removed[V]);V++)F.removedNodes.push(R);
h=0;for(d=void 0;h<E.length&&(d=E[h]);h++)for(V=d.index;V<d.index+d.addedCount;V++)F.addedNodes.push(W[V]);this._effectiveNodes=W;W=!1;if(F.addedNodes.length||F.removedNodes.length)W=!0,this.callback.call(this._target,F);return W};
_.N._listenSlots=function(F){for(var W=0;W<F.length;W++){var E=F[W];iM(E)&&E.addEventListener("slotchange",this._boundSchedule)}};
_.N._unlistenSlots=function(F){for(var W=0;W<F.length;W++){var E=F[W];iM(E)&&E.removeEventListener("slotchange",this._boundSchedule)}};var cD=Element.prototype,ZYi=cD.matches||cD.matchesSelector||cD.mozMatchesSelector||cD.msMatchesSelector||cD.oMatchesSelector||cD.webkitMatchesSelector,X5p=function(F,W){return ZYi.call(F,W)},rT=function(F){window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.patch(F);
this.node=F},a2B;
_.N=rT.prototype;_.N.observeNodes=function(F){return new qTX(this.node,F)};
_.N.unobserveNodes=function(F){F.disconnect()};
_.N.notifyObserver=function(){};
_.N.deepContains=function(F){if((0,_.IL)(this.node).contains(F))return!0;var W=F;for(F=F.ownerDocument;W&&W!==F&&W!==this.node;)W=(0,_.IL)(W).parentNode||(0,_.IL)(W).host;return W===this.node};
_.N.getOwnerRoot=function(){return(0,_.IL)(this.node).getRootNode()};
_.N.getDistributedNodes=function(){return this.node.localName==="slot"?(0,_.IL)(this.node).assignedNodes({flatten:!0}):[]};
_.N.getDestinationInsertionPoints=function(){for(var F=[],W=(0,_.IL)(this.node).assignedSlot;W;)F.push(W),W=(0,_.IL)(W).assignedSlot;return F};
_.N.importNode=function(F,W){return(0,_.IL)(this.node instanceof Document?this.node:this.node.ownerDocument).importNode(F,W)};
_.N.getEffectiveChildNodes=function(){return $c_(this.node)};
_.N.queryDistributedElements=function(F){for(var W=this.getEffectiveChildNodes(),E=[],h=0,d=W.length,V=void 0;h<d&&(V=W[h]);h++)V.nodeType===Node.ELEMENT_NODE&&X5p(V,F)&&E.push(V);return E};
_.Sn.Object.defineProperties(rT.prototype,{activeElement:{configurable:!0,enumerable:!0,get:function(){var F=this.node;return F._activeElement!==void 0?F._activeElement:F.activeElement}}});
var D5=function(F){this.event=F};
_.Sn.Object.defineProperties(D5.prototype,{rootTarget:{configurable:!0,enumerable:!0,get:function(){return this.path[0]}},
localTarget:{configurable:!0,enumerable:!0,get:function(){return this.event.target}},
path:{configurable:!0,enumerable:!0,get:function(){return this.event.composedPath()}}});
var HY_=rT;if(window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.noPatch&&window.ShadyDOM.Wrapper){var Psu=window.ShadyDOM.Wrapper,JFO=function(){return Psu.apply(this,arguments)||this};
_.k(JFO,Psu);Object.getOwnPropertyNames(rT.prototype).forEach(function(F){F!="activeElement"&&F!="constructor"&&(JFO.prototype[F]=rT.prototype[F])});
ZIG(JFO.prototype,["classList"]);HY_=JFO;Object.defineProperties(D5.prototype,{localTarget:{get:function(){var F=this.event.currentTarget;F=F&&_.sg(F).getOwnerRoot();for(var W=this.path,E=0;E<W.length;E++){var h=W[E];if(_.sg(h).getOwnerRoot()===F)return h}},
configurable:!0},path:{get:function(){return window.ShadyDOM.composedPath(this.event)},
configurable:!0}})}else $vS(),ZIG(rT.prototype,"parentNode firstChild lastChild nextSibling previousSibling firstElementChild lastElementChild nextElementSibling previousElementSibling childNodes children classList shadowRoot".split(" ")),XHY();a2B=HY_;_.sg=function(F){F=F||document;if(F instanceof HY_)return F;if(F instanceof D5)return F;var W=F.__domApi;W||(F instanceof Event?W=new D5(F):W=new HY_(F),F.__domApi=W);return W};var f2M=/:host\(:dir\((ltr|rtl)\)\)/g,OYM=/([\s\w-#\.\[\]\*]*):dir\((ltr|rtl)\)/g,bYc=/:dir\((?:ltr|rtl)\)/,l2M=!(!window.ShadyDOM||!window.ShadyDOM.inUse),oL=[],x4=null,Tn="",nb_=WD(function(F){l2M||x4||(Tn=document.documentElement.getAttribute("dir"),x4=new MutationObserver(HIY),x4.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}));var W=T8p(F);F=function(){var E=W.call(this)||this;E.__autoDirOptOut=!1;return E};
_.k(F,W);F._processStyleText=function(E,h){E=W._processStyleText.call(this,E,h);!l2M&&bYc.test(E)&&(E=this._replaceDirInCssText(E),this.__activateDir=!0);return E};
F._replaceDirInCssText=function(E){E=E.replace(f2M,':host([dir="$1"])');return E=E.replace(OYM,':host([dir="$2"]) $1')};
F.prototype.ready=function(){W.prototype.ready.call(this);this.__autoDirOptOut=this.hasAttribute("dir")};
F.prototype.connectedCallback=function(){W.prototype.connectedCallback&&W.prototype.connectedCallback.call(this);this.constructor.__activateDir&&(x4&&x4.takeRecords().length&&HIY(),oL.push(this),this.__autoDirOptOut||this.setAttribute("dir",Tn))};
F.prototype.disconnectedCallback=function(){W.prototype.disconnectedCallback&&W.prototype.disconnectedCallback.call(this);if(this.constructor.__activateDir){var E=oL.indexOf(this);E>-1&&oL.splice(E,1)}};
F.__activateDir=!1;return F});var yFO=function(F){for(;F;){var W=Object.getOwnPropertyDescriptor(F,"observedAttributes");if(W)return W.get;F=Object.getPrototypeOf(F.prototype).constructor}return function(){return[]}};
WD(function(F){var W=dp(F),E=yFO(W);F=function(){return W.call(this)||this};
_.k(F,W);F.prototype._initializeProperties=function(){this.hasAttribute("disable-upgrade")?this.__isUpgradeDisabled=!0:W.prototype._initializeProperties.call(this)};
F.prototype._enableProperties=function(){this.__isUpgradeDisabled||W.prototype._enableProperties.call(this)};
F.prototype._canApplyPropertyDefault=function(h){return W.prototype._canApplyPropertyDefault.call(this,h)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(h))};
F.prototype.attributeChangedCallback=function(h,d,V,R){h=="disable-upgrade"?this.__isUpgradeDisabled&&V==null&&(W.prototype._initializeProperties.call(this),this.__isUpgradeDisabled=!1,(0,_.IL)(this).isConnected&&W.prototype.connectedCallback.call(this)):W.prototype.attributeChangedCallback.call(this,h,d,V,R)};
F.prototype.connectedCallback=function(){this.__isUpgradeDisabled||W.prototype.connectedCallback.call(this)};
F.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||W.prototype.disconnectedCallback.call(this)};
_.Sn.Object.defineProperties(F,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return E.call(this).concat("disable-upgrade")}}});
return F});var Gn=!1,JDk=[],YO=[];var bIk=window.ShadyDOM,l6n=window.ShadyCSS;window.WebComponents?window.addEventListener("WebComponentsReady",yDb):document.readyState==="interactive"||document.readyState==="complete"?yDb():window.addEventListener("DOMContentLoaded",yDb);var rDG=function(){this.end=this.start=0;this.rules=this.parent=this.previous=null;this.cssText=this.parsedCssText="";this.atRule=!1;this.type=0;this.parsedSelector=this.selector=this.keyframesName=""},j$o=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,iIb=/@import[^;]*;/gim,uYo=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,SQr=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,pHI=/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,mvo=/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,YQo=/^@[^\s]*keyframes/,
Gcn=/\s+/g;var Kce={};var EPn=Promise.resolve();var jj_=new Set;var iYO=/;\s*/m,rFT=/^\s*(initial)|(inherit)\s*$/,TWB=/\s*!important/,ob_=function(){this._map={}};
ob_.prototype.set=function(F,W){F=F.trim();this._map[F]={properties:W,dependants:{}}};
ob_.prototype.get=function(F){F=F.trim();return this._map[F]||null};
var GJU=null,k4=function(){this._measureElement=this._currentElement=null;this._map=new ob_};
_.N=k4.prototype;_.N.detectMixin=function(F){F=Rs_.test(F)||Uca.test(F);Rs_.lastIndex=0;Uca.lastIndex=0;return F};
_.N.transformTemplate=function(F,W){if(F._gatheredStyle===void 0){var E=[];for(var h=F.content.querySelectorAll("style"),d=0;d<h.length;d++){var V=h[d];if(V.hasAttribute("shady-unscoped")){if(!OxR){var R=V.textContent;if(!jj_.has(R)){jj_.add(R);var M=document.createElement("style");M.setAttribute("shady-unscoped","");M.textContent=R;document.head.appendChild(M)}V.parentNode.removeChild(V)}}else E.push(V.textContent),V.parentNode.removeChild(V)}(E=E.join("").trim())?(h=document.createElement("style"),
h.textContent=E,F.content.insertBefore(h,F.content.firstChild),E=h):E=null;F._gatheredStyle=E}return(F=F._gatheredStyle)?this.JSC$9079_transformStyle(F,W):null};
_.N.JSC$9079_transformStyle=function(F,W){W=W===void 0?"":W;var E=VXW(F);this.transformRules(E,W);F.textContent=NXe(E);return E};
_.N.transformCustomStyle=function(F){var W=this,E=VXW(F);R9b(E,function(h){h.selector===":root"&&(h.selector="html");W.transformRule(h)});
F.textContent=NXe(E);return E};
_.N.transformRules=function(F,W){var E=this;this._currentElement=W;R9b(F,function(h){E.transformRule(h)});
this._currentElement=null};
_.N.transformRule=function(F){F.cssText=YTH(this,F.parsedCssText,F);F.selector===":root"&&(F.selector=":host > *")};
var YTH=function(F,W,E){W=W.replace(Uca,function(h,d,V,R){return F._produceCssProperties(h,d,V,R,E)});
return F._consumeCssProperties(W,E)};
_.N=k4.prototype;_.N._getInitialValueForProperty=function(F){this._measureElement||(this._measureElement=document.createElement("meta"),this._measureElement.setAttribute("apply-shim-measure",""),this._measureElement.style.all="initial",document.head.appendChild(this._measureElement));return window.getComputedStyle(this._measureElement).getPropertyValue(F)};
_.N._fallbacksFromPreviousRules=function(F){for(var W=this,E=F;E.parent;)E=E.parent;var h={},d=!1;R9b(E,function(V){(d=d||V===F)||V.selector===F.selector&&Object.assign(h,W._cssTextToMap(V.parsedCssText))});
return h};
_.N._consumeCssProperties=function(F,W){for(var E;E=Rs_.exec(F);){var h=E[0],d=E[1];E=E.index;var V=E+h.indexOf("@apply"),R=E+h.length;h=F.slice(0,V);F=F.slice(R);V=W?this._fallbacksFromPreviousRules(W):{};Object.assign(V,this._cssTextToMap(h));d=this._atApplyToCssProperties(d,V);F=h+d+F;Rs_.lastIndex=E+d.length}return F};
_.N._atApplyToCssProperties=function(F,W){F=F.replace(iYO,"");var E=[],h=this._map.get(F);h||(this._map.set(F,{}),h=this._map.get(F));if(h){this._currentElement&&(h.dependants[this._currentElement]=!0);var d,V=h.properties;for(d in V){var R=W&&W[d];h=[d,": var(",F,"_-_",d];R&&h.push(",",R.replace(TWB,""));h.push(")");TWB.test(V[d])&&h.push(" !important");E.push(h.join(""))}}return E.join("; ")};
_.N._replaceInitialOrInherit=function(F,W){var E=rFT.exec(W);E&&(W=E[1]?this._getInitialValueForProperty(F):"apply-shim-inherit");return W};
_.N._cssTextToMap=function(F,W){W=W===void 0?!1:W;F=F.split(";");for(var E,h,d={},V=0;V<F.length;V++)if(E=F[V])h=E.split(":"),h.length>1&&(E=h[0].trim(),h=h.slice(1).join(":"),W&&(h=this._replaceInitialOrInherit(E,h)),d[E]=h);return d};
_.N._invalidateMixinEntry=function(F){if(GJU)for(var W in F.dependants)W!==this._currentElement&&GJU(W)};
_.N._produceCssProperties=function(F,W,E,h,d){var V=this;E&&e9b(E,function(A,X){X&&V._map.get(X)&&(h="@apply "+X+";")});
if(!h)return F;var R=this._consumeCssProperties(""+h,d);d=F.slice(0,F.indexOf("--"));var M=R=this._cssTextToMap(R,!0),g=this._map.get(W),t=g&&g.properties;t?M=Object.assign(Object.create(t),R):this._map.set(W,M);var C=[],B,I=!1;for(B in M){var x=R[B];x===void 0&&(x="initial");!t||B in t||(I=!0);C.push(W+"_-_"+B+": "+x)}I&&this._invalidateMixinEntry(g);g&&(g.properties=M);E&&(d=F+";"+d);return d+C.join("; ")+";"};
k4.prototype.detectMixin=k4.prototype.detectMixin;k4.prototype.transformStyle=k4.prototype.JSC$9079_transformStyle;k4.prototype.transformCustomStyle=k4.prototype.transformCustomStyle;k4.prototype.transformRules=k4.prototype.transformRules;k4.prototype.transformRule=k4.prototype.transformRule;k4.prototype.transformTemplate=k4.prototype.transformTemplate;k4.prototype._separator="_-_";Object.defineProperty(k4.prototype,"invalidCallback",{get:function(){return GJU},
set:function(F){GJU=F}});var AB=new k4,w5X=function(){this.customStyleInterface=null;AB.invalidCallback=FEG},sw=function(F){!F.customStyleInterface&&window.ShadyCSS.CustomStyleInterface&&(F.customStyleInterface=window.ShadyCSS.CustomStyleInterface,F.customStyleInterface.transformCallback=function(W){AB.transformCustomStyle(W)},F.customStyleInterface.validateCallback=function(){requestAnimationFrame(function(){F.customStyleInterface.enqueued&&F.flushCustomStyles()})})};
_.N=w5X.prototype;_.N.prepareTemplate=function(F,W){sw(this);MXY(F)===""&&(Kce[W]=F,W=AB.transformTemplate(F,W),F._styleAst=W)};
_.N.flushCustomStyles=function(){sw(this);if(this.customStyleInterface){var F=this.customStyleInterface.processStyles();if(this.customStyleInterface.enqueued){for(var W=0;W<F.length;W++){var E=this.customStyleInterface.getStyleForCustomStyle(F[W]);E&&AB.transformCustomStyle(E)}this.customStyleInterface.enqueued=!1}}};
_.N.styleSubtree=function(F,W){sw(this);W&&Zxo(F,W);if(F.shadowRoot)for(this.styleElement(F),F=F.shadowRoot.children||F.shadowRoot.childNodes,W=0;W<F.length;W++)this.styleSubtree(F[W]);else for(F=F.children||F.childNodes,W=0;W<F.length;W++)this.styleSubtree(F[W])};
_.N.styleElement=function(F){sw(this);var W=F.localName,E;W?W.indexOf("-")>-1?E=W:E=F.getAttribute&&F.getAttribute("is")||"":E=F.is;W=Kce[E];if(!(W&&MXY(W)!==""||!W||WEw(W))){if(WEw(W)||W._applyShimValidatingVersion!==W._applyShimNextVersion)this.prepareTemplate(W,E),h9W(W);if(F=F.shadowRoot)if(F=F.querySelector("style"))F.__cssRules=W._styleAst,F.textContent=NXe(W._styleAst)}};
_.N.styleDocument=function(F){sw(this);this.styleSubtree(document.body,F)};
if(!window.ShadyCSS||!window.ShadyCSS.ScopingShim){var LB=new w5X,uj_=window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface;window.ShadyCSS={prepareTemplate:function(F,W){LB.flushCustomStyles();LB.prepareTemplate(F,W)},
prepareTemplateStyles:function(F,W,E){window.ShadyCSS.prepareTemplate(F,W,E)},
prepareTemplateDom:function(){},
styleSubtree:function(F,W){LB.flushCustomStyles();LB.styleSubtree(F,W)},
styleElement:function(F){LB.flushCustomStyles();LB.styleElement(F)},
styleDocument:function(F){LB.flushCustomStyles();LB.styleDocument(F)},
getComputedStyleValue:function(F,W){return XSe(F,W)},
flushCustomStyles:function(){LB.flushCustomStyles()},
nativeCss:dBe,nativeShadow:OxR,cssBuild:uM,disableRuntime:gbH};uj_&&(window.ShadyCSS.CustomStyleInterface=uj_)}window.ShadyCSS.ApplyShim=AB;var STc;STc=window.ShadyCSS;_.qH=WD(function(F){F=cFO(dp(F));var W=Fsp?F:nb_(F),E=yFO(W),h={x:"pan-x",y:"pan-y",none:"none",all:"auto"};F=function(){return W.call(this)||this};
_.k(F,W);F.prototype.created=function(){};
F.prototype.__attributeReaction=function(d,V,R){(this.__dataAttributes&&this.__dataAttributes[d]||d==="disable-upgrade")&&this.attributeChangedCallback(d,V,R,null)};
F.prototype.setAttribute=function(d,V){if($W_&&!this._legacyForceObservedAttributes){var R=this.getAttribute(d);W.prototype.setAttribute.call(this,d,V);this.__attributeReaction(d,R,String(V))}else W.prototype.setAttribute.call(this,d,V)};
F.prototype.removeAttribute=function(d){if($W_&&!this._legacyForceObservedAttributes){var V=this.getAttribute(d);W.prototype.removeAttribute.call(this,d);this.__attributeReaction(d,V,null)}else W.prototype.removeAttribute.call(this,d)};
F.prototype._enableProperties=function(){this.__isUpgradeDisabled||W.prototype._enableProperties.call(this)};
F.prototype._canApplyPropertyDefault=function(d){return W.prototype._canApplyPropertyDefault.call(this,d)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(d))};
F.prototype.connectedCallback=function(){this.__needsAttributesAtConnected&&this._takeAttributes();this.__isUpgradeDisabled||(W.prototype.connectedCallback.call(this),this.isAttached=!0,this.attached())};
F.prototype.attached=function(){};
F.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||(W.prototype.disconnectedCallback.call(this),this.isAttached=!1,this.detached())};
F.prototype.detached=function(){};
F.prototype.attributeChangedCallback=function(d,V,R,M){V!==R&&(d=="disable-upgrade"?this.__isUpgradeDisabled&&R==null&&(this._initializeProperties(),this.__isUpgradeDisabled=!1,(0,_.IL)(this).isConnected&&this.connectedCallback()):(W.prototype.attributeChangedCallback.call(this,d,V,R,M),this.attributeChanged(d,V,R)))};
F.prototype.attributeChanged=function(){};
F.prototype._initializeProperties=function(){if(OR&&this.hasAttribute("disable-upgrade"))this.__isUpgradeDisabled=!0;else{var d=Object.getPrototypeOf(this);d.hasOwnProperty("__hasRegisterFinished")||(this._registered(),d.__hasRegisterFinished=!0);W.prototype._initializeProperties.call(this);this.root=this;this.created();$W_&&!this._legacyForceObservedAttributes&&(this.hasAttributes()?this._takeAttributes():this.parentNode||(this.__needsAttributesAtConnected=!0));this._applyListeners()}};
F.prototype._takeAttributes=function(){for(var d=this.attributes,V=0,R=d.length;V<R;V++){var M=d[V];this.__attributeReaction(M.name,null,M.value)}};
F.prototype._registered=function(){};
F.prototype.ready=function(){this._ensureAttributes();W.prototype.ready.call(this)};
F.prototype._ensureAttributes=function(){};
F.prototype._applyListeners=function(){};
F.prototype.serialize=function(d){return this._serializeValue(d)};
F.prototype.deserialize=function(d,V){return this._deserializeValue(d,V)};
F.prototype.reflectPropertyToAttribute=function(d,V,R){this._propertyToAttribute(d,V,R)};
F.prototype.serializeValueToAttribute=function(d,V,R){this._valueToNodeAttribute(R||this,d,V)};
F.prototype.extend=function(d,V){if(!d||!V)return d||V;for(var R=Object.getOwnPropertyNames(V),M=0,g=void 0;M<R.length&&(g=R[M]);M++){var t=Object.getOwnPropertyDescriptor(V,g);t&&Object.defineProperty(d,g,t)}return d};
F.prototype.mixin=function(d,V){for(var R in V)d[R]=V[R];return d};
F.prototype.chainObject=function(d,V){d&&V&&d!==V&&(d.__proto__=V);return d};
F.prototype.instanceTemplate=function(d){d=this.constructor._contentForTemplate(d);return document.importNode(d,!0)};
F.prototype.fire=function(d,V,R){R=R||{};V=V===null||V===void 0?{}:V;d=new Event(d,{bubbles:R.bubbles===void 0?!0:R.bubbles,cancelable:!!R.cancelable,composed:R.composed===void 0?!0:R.composed});d.detail=V;(0,_.IL)(R.node||this).dispatchEvent(d);return d};
F.prototype.listen=function(d,V,R){d=d||this;var M=this.__boundListeners||(this.__boundListeners=new WeakMap),g=M.get(d);g||(g={},M.set(d,g));M=V+R;g[M]||(g[M]=this._addMethodEventListenerToNode(d,V,R,this))};
F.prototype.unlisten=function(d,V,R){d=d||this;var M=this.__boundListeners&&this.__boundListeners.get(d);R=V+R;var g=M&&M[R];g&&(this._removeEventListenerFromNode(d,V,g),M[R]=null)};
F.prototype.setScrollDirection=function(d,V){_.Jt(V||this,h[d]||"auto")};
F.prototype.$$=function(d){return this.root.querySelector(d)};
F.prototype.distributeContent=function(){var d=_.sg(this);window.ShadyDOM&&d.shadowRoot&&ShadyDOM.flush()};
F.prototype.getEffectiveChildNodes=function(){return _.sg(this).getEffectiveChildNodes()};
F.prototype.queryDistributedElements=function(d){return _.sg(this).queryDistributedElements(d)};
F.prototype.getEffectiveChildren=function(){return this.getEffectiveChildNodes().filter(function(d){return d.nodeType===Node.ELEMENT_NODE})};
F.prototype.getEffectiveTextContent=function(){for(var d=this.getEffectiveChildNodes(),V=[],R=0,M;M=d[R];R++)M.nodeType!==Node.COMMENT_NODE&&V.push(M.textContent);return V.join("")};
F.prototype.queryEffectiveChildren=function(d){return(d=this.queryDistributedElements(d))&&d[0]};
F.prototype.queryAllEffectiveChildren=function(d){return this.queryDistributedElements(d)};
F.prototype.getContentChildNodes=function(d){return(d=this.root.querySelector(d||"slot"))?_.sg(d).getDistributedNodes():[]};
F.prototype.getContentChildren=function(d){return this.getContentChildNodes(d).filter(function(V){return V.nodeType===Node.ELEMENT_NODE})};
F.prototype.isLightDescendant=function(d){return this!==d&&(0,_.IL)(this).contains(d)&&(0,_.IL)(this).getRootNode()===(0,_.IL)(d).getRootNode()};
F.prototype.isLocalDescendant=function(d){return this.root===(0,_.IL)(d).getRootNode()};
F.prototype.scopeSubtree=function(d,V){return nao(d,V===void 0?!1:V)};
F.prototype.getComputedStyleValue=function(d){return STc.getComputedStyleValue(this,d)};
F.prototype.debounce=function(d,V,R){this._debouncers=this._debouncers||{};return this._debouncers[d]=_.QZ(this._debouncers[d],R>0?_.F4.after(R):aL,V.bind(this))};
F.prototype.isDebouncerActive=function(d){this._debouncers=this._debouncers||{};d=this._debouncers[d];return!(!d||!d.isActive())};
F.prototype.flushDebouncer=function(d){this._debouncers=this._debouncers||{};(d=this._debouncers[d])&&d.flush()};
F.prototype.cancelDebouncer=function(d){this._debouncers=this._debouncers||{};(d=this._debouncers[d])&&d.cancel()};
F.prototype.async=function(d,V){return V>0?_.F4.run(d.bind(this),V):~aL.run(d.bind(this))};
F.prototype.cancelAsync=function(d){d<0?aL.cancel(~d):_.F4.cancel(d)};
F.prototype.create=function(d,V){d=document.createElement(d);if(V)if(d.setProperties)d.setProperties(V);else for(var R in V)d[R]=V[R];return d};
F.prototype.elementMatches=function(d,V){return X5p(V||this,d)};
F.prototype.toggleAttribute=function(d,V){var R=this;arguments.length===3&&(R=arguments[2]);arguments.length==1&&(V=!R.hasAttribute(d));if(V)return(0,_.IL)(R).setAttribute(d,""),!0;(0,_.IL)(R).removeAttribute(d);return!1};
F.prototype.toggleClass=function(d,V,R){R=R||this;arguments.length==1&&(V=!R.classList.contains(d));V?R.classList.add(d):R.classList.remove(d)};
F.prototype.transform=function(d,V){V=V||this;V.style.webkitTransform=d;V.style.transform=d};
F.prototype.translate3d=function(d,V,R,M){this.transform("translate3d("+d+","+V+","+R+")",M||this)};
F.prototype.arrayDelete=function(d,V){if(Array.isArray(d)){if(V=d.indexOf(V),V>=0)return d.splice(V,1)}else if(V=CX(this,d).indexOf(V),V>=0)return this.splice(d,V,1);return null};
F.prototype._logger=function(d,V){Array.isArray(V)&&V.length===1&&Array.isArray(V[0])&&(V=V[0]);switch(d){case "log":case "warn":case "error":console[d].apply(console,_.x9(V))}};
F.prototype._log=function(){this._logger("log",_.Dd.apply(0,arguments))};
F.prototype._warn=function(){this._logger("warn",_.Dd.apply(0,arguments))};
F.prototype._error=function(){this._logger("error",_.Dd.apply(0,arguments))};
F.prototype._logf=function(d){return["[%s::%s]",this.is,d].concat(_.x9(_.Dd.apply(1,arguments)))};
_.Sn.Object.defineProperties(F.prototype,{domHost:{configurable:!0,enumerable:!0,get:function(){var d=(0,_.IL)(this).getRootNode();return d instanceof DocumentFragment?d.host:d}}});
_.Sn.Object.defineProperties(F,{importMeta:{configurable:!0,enumerable:!0,get:function(){return this.prototype.importMeta}},
observedAttributes:{configurable:!0,enumerable:!0,get:function(){return $W_&&!this.prototype._legacyForceObservedAttributes?(this.hasOwnProperty("__observedAttributes")||(this.__observedAttributes=[],bQw(this.prototype)),this.__observedAttributes):E.call(this).concat("disable-upgrade")}}});
F.prototype.is="";return F});Polymer.FlattenedNodesObserver=qTX;Polymer.DomApi=a2B;Polymer.EventApi=D5;Polymer.dom=_.sg;Polymer.dom.matchesSelector=X5p;Polymer.dom.flush=_.vD;Polymer.dom.addDebouncer=_.za;Polymer.DirMixin=nb_;Polymer.RenderStatus={beforeNextRender:_.OIo,afterNextRender:_.wT,flush:function(){for(;JDk.length||YO.length;)PAr(JDk),PAr(YO);Gn=!1}};Polymer.LegacyElementMixin=_.qH;var p5e;p5e=CB._mutablePropertyChange;var mcc={properties:{mutableData:Boolean},_shouldPropertyChange:function(F,W,E){return p5e(this,F,W,E,this.mutableData)}};Polymer.MutableDataBehavior={_shouldPropertyChange:function(F,W,E){return p5e(this,F,W,E,!0)}};
Polymer.OptionalMutableDataBehavior=mcc;var gPo={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,listeners:!0,hostAttributes:!0},BXb={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,behaviors:!0,_noAccessors:!0},Cvo=Object.assign({listeners:!0,hostAttributes:!0,properties:!0,observers:!0},BXb),Ksz=(0,_.qH)(HTMLElement),N1R=function(F,W){F||console.warn("Polymer.Class requires `info` argument");W=W?W(Ksz):Ksz;W=vPo(F,W,F.behaviors);W.is=W.prototype.is=
F.is;return W};Polymer.Class=N1R;Polymer.mixinBehaviors=function(F,W){return vPo({},(0,_.qH)(W),F)};
Polymer.GenerateClassFromInfo=vPo;_.k3=function(F){var W=typeof F==="function"?F:_.k3.Class(F);F._legacyForceObservedAttributes&&(W.prototype._legacyForceObservedAttributes=F._legacyForceObservedAttributes);customElements.define(W.is,W);return W};
_.k3.Class=N1R;Polymer._polymerFn=_.k3;var Ffi=window.onLegacyPolymerFunctionDefinedCallback;Ffi&&Ffi();var UMY={templatize:function(F,W){this._templatizerTemplate=F;this.ctor=nX(F,this,{mutableData:!!W,parentModel:this._parentModel,instanceProps:this._instanceProps,forwardHostProp:this._forwardHostPropV2,notifyInstanceProp:this._notifyInstancePropV2})},
stamp:function(F){return new this.ctor(F)},
modelForElement:function(F){return qQo(this._templatizerTemplate,F)}};Polymer.Templatizer=UMY;_.$4=(0,_.qH)(HTMLElement).prototype;Polymer.Base=_.$4;var cUR=/\bclass\b/.test(function(){}.toString());
window.PolymerFakeBaseClass=function(){};
_.pX=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.k(_.pX,PolymerFakeBaseClass);var mr=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.k(mr,PolymerFakeBaseClass);var DBw=Symbol("Nd"),ZkR=[Array,Boolean,Date,Number,Object,String];/*
 ****************************************************************************
Copyright (C) Microsoft. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

See the License for the specific language governing permissions and
limitations under the License.
*****************************************************************************/
var WfX=WfX||{id:"third_party/javascript/node_modules/reflect_decorators/Reflect.closure.js"},Era;(function(F){function W(G,hr,p){var UY=w.get(G);if(!UY){if(!p)return;UY=new b;w.set(G,UY)}G=UY.get(hr);if(!G){if(!p)return;G=new b;UY.set(hr,G)}return G}
function E(G,hr,p){if(h(G,hr,p))return!0;hr=I(hr);return hr!==null?E(G,hr,p):!1}
function h(G,hr,p){hr=W(hr,p,!1);return hr===void 0?!1:!!hr.has(G)}
function d(G,hr,p){if(h(G,hr,p))return V(G,hr,p);hr=I(hr);if(hr!==null)return d(G,hr,p)}
function V(G,hr,p){hr=W(hr,p,!1);if(hr!==void 0)return hr.get(G)}
function R(G,hr){var p=M(G,hr);G=I(G);if(G===null)return p;var UY=R(G,hr);if(UY.length<=0)return p;if(p.length<=0)return UY;hr=new l;G=[];p=_.U(p);for(var xW=p.next();!xW.done;xW=p.next())xW=xW.value,hr.has(xW)||(hr.add(xW),G.push(xW));p=_.U(UY);for(UY=p.next();!UY.done;UY=p.next())UY=UY.value,hr.has(UY)||(hr.add(UY),G.push(UY));return G}
function M(G,hr){G=W(G,hr,!1);var p=[];G&&G.forEach(function(UY,xW){return p.push(xW)});
return p}
function g(G){return G===void 0}
function t(G){return typeof G==="object"?G!==null:typeof G==="function"}
function C(G){return typeof G==="function"}
function B(G){return typeof G==="symbol"?G:String(G)}
function I(G){var hr=Object.getPrototypeOf(G);if(typeof G!=="function"||G===P||hr!==P)return hr;var p=Object.getPrototypeOf(G.prototype);if(p==null||p===Object.prototype)return hr;p=p.constructor;return typeof p!=="function"||p===G?hr:p}
function x(){function G(){this._keys=[];this._values=[];this._cache=hr}
var hr={};G.prototype={get size(){return this._keys.length},has:function(p){return p===this._cache?!0:this._find(p)>=0?(this._cache=p,!0):!1},
get:function(p){var UY=this._find(p);if(UY>=0)return this._cache=p,this._values[UY]},
set:function(p,UY){this.delete(p);this._keys.push(p);this._values.push(UY);this._cache=p;return this},
delete:function(p){p=this._find(p);return p>=0?(this._keys.splice(p,1),this._values.splice(p,1),this._cache=hr,!0):!1},
clear:function(){this._keys.length=0;this._values.length=0;this._cache=hr},
forEach:function(p){for(var UY=this.size,xW=0;xW<UY;++xW){var qw=this._keys[xW],Lb=this._values[xW];this._cache=qw;p.call(this,Lb,qw,this)}},
_find:function(p){for(var UY=this._keys,xW=UY.length,qw=0;qw<xW;++qw)if(UY[qw]===p)return qw;return-1}};
return G}
function A(){function G(){this._map=new b}
G.prototype={get size(){return this._map.length},has:function(hr){return this._map.has(hr)},
add:function(hr){this._map.set(hr,hr);return this},
delete:function(hr){return this._map.delete(hr)},
clear:function(){this._map.clear()},
forEach:function(hr,p){this._map.forEach(hr,p)}};
return G}
function X(){function G(){this._key=p()}
function hr(Jr,nb){for(var bo=0;bo<nb;++bo)Jr[bo]=Math.random()*255|0}
function p(){do{if(xW)var Jr=xW.randomBytes(16);else typeof Uint8Array==="function"?(Jr=new Uint8Array(16),typeof crypto!=="undefined"?crypto.getRandomValues(Jr):hr(Jr,16)):(Jr=Array(16),hr(Jr,16));Jr[6]=Jr[6]&79|64;Jr[8]=Jr[8]&191|128;for(var nb="",bo=0;bo<16;++bo){var uo=Jr[bo];if(bo===4||bo===6||bo===8)nb+="-";uo<16&&(nb+="0");nb+=uo.toString(16).toLowerCase()}Jr="@@WeakMap@@"+nb}while(qw.call(Lb,Jr));Lb[Jr]=!0;return Jr}
function UY(Jr,nb){if(!qw.call(Jr,jk)){if(!nb)return;Object.defineProperty(Jr,jk,{value:Object.create(null)})}return Jr[jk]}
var xW=typeof global!=="undefined"&&typeof WfX==="object"&&typeof require==="function"&&require("crypto"),qw=Object.prototype.hasOwnProperty,Lb={},jk=p();G.prototype={has:function(Jr){return(Jr=UY(Jr,!1))?this._key in Jr:!1},
get:function(Jr){if(Jr=UY(Jr,!1))return Jr[this._key]},
set:function(Jr,nb){UY(Jr,!0)[this._key]=nb;return this},
delete:function(Jr){return(Jr=UY(Jr,!1))&&this._key in Jr?delete Jr[this._key]:!1},
clear:function(){this._key=p()}};
return G}
var P=Object.getPrototypeOf(Function),b=typeof Map==="function"?Map:x(),l=typeof Set==="function"?Set:A(),w=new (typeof WeakMap==="function"?WeakMap:X());F.decorate=function(G,hr,p,UY){if(g(UY)){if(g(p)){if(!Array.isArray(G))throw new TypeError;if(!C(hr))throw new TypeError;for(p=G.length-1;p>=0;--p)if(UY=(0,G[p])(hr),!g(UY)){if(!C(UY))throw new TypeError;hr=UY}return hr}if(!Array.isArray(G))throw new TypeError;if(!t(hr))throw new TypeError;p=B(p);for(UY=G.length-1;UY>=0;--UY)(0,G[UY])(hr,p)}else{if(Array.isArray(G))if(t(hr)){if(g(p))throw new TypeError;
if(!t(UY))throw new TypeError;}else throw new TypeError;else throw new TypeError;p=B(p);for(var xW=G.length-1;xW>=0;--xW){var qw=(0,G[xW])(hr,p,UY);if(!g(qw)){if(!t(qw))throw new TypeError;UY=qw}}return UY}};
F.metadata=function(G,hr){return function(p,UY){if(g(UY)){if(!C(p))throw new TypeError;W(p,void 0,!0).set(G,hr)}else{if(!t(p))throw new TypeError;UY=B(UY);W(p,UY,!0).set(G,hr)}}};
F.defineMetadata=function(G,hr){var p;if(t(hr))g(p)||(p=B(p));else throw new TypeError;W(hr,p,!0).set("parameters",G)};
F.hasMetadata=function(G,hr,p){if(t(hr))g(p)||(p=B(p));else throw new TypeError;return E(G,hr,p)};
F.hasOwnMetadata=function(G,hr,p){if(t(hr))g(p)||(p=B(p));else throw new TypeError;return h(G,hr,p)};
F.getMetadata=function(G,hr,p){if(t(hr))g(p)||(p=B(p));else throw new TypeError;return d(G,hr,p)};
F.getOwnMetadata=function(G,hr,p){if(t(hr))g(p)||(p=B(p));else throw new TypeError;return V(G,hr,p)};
F.getMetadataKeys=function(G,hr){if(t(G))g(hr)||(hr=B(hr));else throw new TypeError;return R(G,hr)};
F.getOwnMetadataKeys=function(G,hr){if(t(G))g(hr)||(hr=B(hr));else throw new TypeError;return M(G,hr)};
F.deleteMetadata=function(G,hr,p){if(t(hr))g(p)||(p=B(p));else throw new TypeError;var UY=W(hr,p,!1);if(!g(UY)){if(!UY.delete(G))return!1;if(UY.size>0)return!0;G=w.get(hr);G.delete(p);if(G.size>0)return!0;w.delete(hr);return!0}};
(function(G){if(typeof G.Reflect!=="undefined"){if(G.Reflect!==F)for(var hr in F)G.Reflect[hr]=F[hr]}else G.Reflect=F})(typeof window!=="undefined"?window:typeof WorkerGlobalScope!=="undefined"?self:typeof global!=="undefined"?global:globalThis)})(Era||(Era={}));var aWI=self;var h0O=[0,_.pc,_.Kc,_.pc];var dnX=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(dnX,_.n2);var NR_=_.K2(dnX,[0,_.d$Y,_.F0,h0O,_.Kc,_.En]);_.Ma(_.KX,_.xj);_.N=_.KX.prototype;_.N.start=function(){this.stop();this.usingListeners_=!1;var F=VFX(this),W=Unp(this);F&&!W&&this.JSC$9122_win_.mozRequestAnimationFrame?(this.JSC$9122_id_=_.ce(this.JSC$9122_win_,"MozBeforePaint",this.callback_),this.JSC$9122_win_.mozRequestAnimationFrame(null),this.usingListeners_=!0):this.JSC$9122_id_=F&&W?F.call(this.JSC$9122_win_,this.callback_):this.JSC$9122_win_.setTimeout(euB(this.callback_),20)};
_.N.stop=function(){if(this.isActive()){var F=VFX(this),W=Unp(this);F&&!W&&this.JSC$9122_win_.mozRequestAnimationFrame?Be(this.JSC$9122_id_):F&&W?W.call(this.JSC$9122_win_,this.JSC$9122_id_):this.JSC$9122_win_.clearTimeout(this.JSC$9122_id_)}this.JSC$9122_id_=null};
_.N.fire=function(){this.stop();this.JSC$9124_doAction_()};
_.N.isActive=function(){return this.JSC$9122_id_!=null};
_.N.JSC$9124_doAction_=function(){this.usingListeners_&&this.JSC$9122_id_&&Be(this.JSC$9122_id_);this.JSC$9122_id_=null;this.JSC$9122_listener_.call(this.handler_,_.e2())};
_.N.disposeInternal=function(){this.stop();_.KX.superClass_.disposeInternal.call(this)};
var VFX=function(F){F=F.JSC$9122_win_;return F.requestAnimationFrame||F.webkitRequestAnimationFrame||F.mozRequestAnimationFrame||F.oRequestAnimationFrame||F.msRequestAnimationFrame||null},Unp=function(F){F=F.JSC$9122_win_;
return F.cancelAnimationFrame||F.cancelRequestAnimationFrame||F.webkitCancelRequestAnimationFrame||F.mozCancelRequestAnimationFrame||F.oCancelRequestAnimationFrame||F.msCancelRequestAnimationFrame||null};_.Nv=function(F,W,E){_.xj.call(this);this.JSC$9125_listener_=E!=null?F.bind(E):F;this.JSC$9125_interval_=W;this.args_=null;this.shouldFire_=!1;this.pauseCount_=0;this.JSC$9125_timer_=null};
_.k(_.Nv,_.xj);_.N=_.Nv.prototype;_.N.fire=function(F){this.args_=arguments;this.JSC$9125_timer_||this.pauseCount_?this.shouldFire_=!0:R0U(this)};
_.N.stop=function(){this.JSC$9125_timer_&&(_.EY.clearTimeout(this.JSC$9125_timer_),this.JSC$9125_timer_=null,this.shouldFire_=!1,this.args_=null)};
_.N.pause=function(){this.pauseCount_++};
_.N.resume=function(){this.pauseCount_--;this.pauseCount_||!this.shouldFire_||this.JSC$9125_timer_||(this.shouldFire_=!1,R0U(this))};
_.N.disposeInternal=function(){_.xj.prototype.disposeInternal.call(this);this.stop()};
var R0U=function(F){F.JSC$9125_timer_=PI(function(){F.JSC$9125_timer_=null;F.shouldFire_&&!F.pauseCount_&&(F.shouldFire_=!1,R0U(F))},F.JSC$9125_interval_);
var W=F.args_;F.args_=null;F.JSC$9125_listener_.apply(null,W)};var e0i=function(F,W){this.childIterator_=F[_.EY.Symbol.iterator]();this.mapFn_=W};
e0i.prototype[Symbol.iterator]=function(){return this};
e0i.prototype.next=function(){var F=this.childIterator_.next();return{value:F.done?void 0:this.mapFn_.call(void 0,F.value),done:F.done}};
var MF_=function(F,W){return new e0i(F,W)};var gri={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",
darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",
ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",
lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",
moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",
seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};var x5I=function(F){var W=Qxu(F);if(!W)throw Error("Rd`"+F);return W},Qxu=function(F){var W={};
F=String(F);var E=F.charAt(0)=="#"?F:"#"+F;if(z0U.test(E))return W.hex=Bjk(E),W.type="hex",W;E=LlW(F);return E.length?(W.hex=pUo(E[0],E[1],E[2]),W.type="rgb",W):gri&&(F=gri[F.toLowerCase()])?(W.hex=F,W.type="named",W):null},tF_=/#(.)(.)(.)/,Bjk=function(F){if(!z0U.test(F))throw Error("Td`"+F);
F.length==4&&(F=F.replace(tF_,"#$1$1$2$2$3$3"));return F.toLowerCase()},kWS=function(F){F=Bjk(F);
F=parseInt(F.slice(1),16);return[F>>16,F>>8&255,F&255]},pUo=function(F,W,E){F=Number(F);
W=Number(W);E=Number(E);if(F!=(F&255)||W!=(W&255)||E!=(E&255))throw Error("Ud`"+F+"`"+W+"`"+E);W=F<<16|W<<8|E;return F<16?"#"+(16777216|W).toString(16).slice(1):"#"+W.toString(16)},z0U=/^#(?:[0-9a-f]{3}){1,2}$/i,CCu=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i,LlW=function(F){var W=F.match(CCu);
if(W){F=Number(W[1]);var E=Number(W[2]);W=Number(W[3]);if(F>=0&&F<=255&&E>=0&&E<=255&&W>=0&&W<=255)return[F,E,W]}return[]};var BRU={ERAS:["BC","AD"],ERANAMES:["Before Christ","Anno Domini"],NARROWMONTHS:"JFMAMJJASOND".split(""),STANDALONENARROWMONTHS:"JFMAMJJASOND".split(""),MONTHS:"January February March April May June July August September October November December".split(" "),STANDALONEMONTHS:"January February March April May June July August September October November December".split(" "),SHORTMONTHS:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),STANDALONESHORTMONTHS:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),
WEEKDAYS:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),STANDALONEWEEKDAYS:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),SHORTWEEKDAYS:"Sun Mon Tue Wed Thu Fri Sat".split(" "),STANDALONESHORTWEEKDAYS:"Sun Mon Tue Wed Thu Fri Sat".split(" "),NARROWWEEKDAYS:"SMTWTFS".split(""),STANDALONENARROWWEEKDAYS:"SMTWTFS".split(""),SHORTQUARTERS:["Q1","Q2","Q3","Q4"],QUARTERS:["1st quarter","2nd quarter","3rd quarter","4th quarter"],AMPMS:["AM","PM"],DATEFORMATS:["EEEE, MMMM d, y",
"MMMM d, y","MMM d, y","M/d/yy"],TIMEFORMATS:["h:mm:ss\u202fa zzzz","h:mm:ss\u202fa z","h:mm:ss\u202fa","h:mm\u202fa"],DATETIMEFORMATS:["{1} 'at' {0}","{1} 'at' {0}","{1}, {0}","{1}, {0}"],FIRSTDAYOFWEEK:6,WEEKENDRANGE:[5,6],FIRSTWEEKCUTOFFDAY:5},PH=BRU;PH=BRU;var rQk,vrX,Isc;rQk=function(F,W){switch(W){case 1:return F%4!=0||F%100==0&&F%400!=0?28:29;case 5:case 8:case 10:case 3:return 30}return 31};
vrX=function(F,W,E,h,d){F=new Date(F,W,E);d=d||0;return F.valueOf()+(((h!==void 0?h:3)-d+7)%7-((F.getDay()+6)%7-d+7)%7)*864E5};
_.Z5=function(F,W,E){typeof F==="number"?(this.date=Isc(F,W||0,E||1),cEc(this,E||1)):_.NU(F)?(this.date=Isc(F.getFullYear(),F.getMonth(),F.getDate()),cEc(this,F.getDate())):(this.date=new Date(_.e2()),F=this.date.getDate(),this.date.setHours(0),this.date.setMinutes(0),this.date.setSeconds(0),this.date.setMilliseconds(0),cEc(this,F))};
Isc=function(F,W,E){W=new Date(F,W,E);F>=0&&F<100&&W.setFullYear(W.getFullYear()-1900);return W};
_.N=_.Z5.prototype;_.N.firstDayOfWeek_=PH.FIRSTDAYOFWEEK;_.N.firstWeekCutOffDay_=PH.FIRSTWEEKCUTOFFDAY;_.N.clone=function(){var F=new _.Z5(this.date);F.firstDayOfWeek_=this.firstDayOfWeek_;F.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return F};
_.N.getFullYear=function(){return this.date.getFullYear()};
_.N.getYear=function(){return this.getFullYear()};
_.N.getMonth=function(){return this.date.getMonth()};
_.N.getDate=function(){return this.date.getDate()};
_.N.getTime=function(){return this.date.getTime()};
_.N.getDay=function(){return this.date.getDay()};
_.N.getUTCFullYear=function(){return this.date.getUTCFullYear()};
_.N.getUTCMonth=function(){return this.date.getUTCMonth()};
_.N.getUTCDate=function(){return this.date.getUTCDate()};
_.N.getUTCDay=function(){return this.date.getDay()};
_.N.getUTCHours=function(){return this.date.getUTCHours()};
_.N.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.N.getTimezoneOffset=function(){return this.date.getTimezoneOffset()};
_.N.set=function(F){this.date=new Date(F.getFullYear(),F.getMonth(),F.getDate())};
_.N.setFullYear=function(F){this.date.setFullYear(F)};
_.N.setYear=function(F){this.setFullYear(F)};
_.N.setMonth=function(F){this.date.setMonth(F)};
_.N.setDate=function(F){this.date.setDate(F)};
_.N.setTime=function(F){this.date.setTime(F)};
_.N.setUTCFullYear=function(F){this.date.setUTCFullYear(F)};
_.N.setUTCMonth=function(F){this.date.setUTCMonth(F)};
_.N.setUTCDate=function(F){this.date.setUTCDate(F)};
_.N.add=function(F){if(F.years||F.months){var W=this.getMonth()+F.months+F.years*12,E=this.getYear()+Math.floor(W/12);W%=12;W<0&&(W+=12);var h=Math.min(rQk(E,W),this.getDate());this.setDate(1);this.setFullYear(E);this.setMonth(W);this.setDate(h)}F.days&&(E=this.getYear(),W=E>=0&&E<=99?-1900:0,F=new Date((new Date(E,this.getMonth(),this.getDate(),12)).getTime()+F.days*864E5),this.setDate(1),this.setFullYear(F.getFullYear()+W),this.setMonth(F.getMonth()),this.setDate(F.getDate()),cEc(this,F.getDate()))};
_.N.JSC$9138_toIsoString=function(F){var W=this.getFullYear(),E=W<0?"-":W>=1E4?"+":"";return[E+_.RY(Math.abs(W),E?6:4),_.RY(this.getMonth()+1,2),_.RY(this.getDate(),2)].join(F?"-":"")};
_.N.equals=function(F){return!(!F||this.getYear()!=F.getYear()||this.getMonth()!=F.getMonth()||this.getDate()!=F.getDate())};
_.N.toString=function(){return this.JSC$9138_toIsoString()};
var cEc=function(F,W){F.getDate()!=W&&F.date.setUTCHours(F.date.getUTCHours()+(F.getDate()<W?1:-1))};
_.Z5.prototype.valueOf=function(){return this.date.valueOf()};var HD=function(F,W,E,h,d){this.reversed=!!W;this.node=null;this.tagType=0;this.started_=!1;this.constrained=!E;F&&X4(this,F,h);this.depth=d!=void 0?d:this.tagType||0;this.reversed&&(this.depth*=-1)};
_.Ma(HD,gr);var X4=function(F,W,E,h){if(F.node=W)F.tagType=typeof E==="number"?E:F.node.nodeType!=1?0:F.reversed?-1:1;typeof h==="number"&&(F.depth=h)};
_.N=HD.prototype;_.N.JSC$9153_copyFrom=function(F){this.node=F.node;this.tagType=F.tagType;this.depth=F.depth;this.reversed=F.reversed;this.constrained=F.constrained};
_.N.clone=function(){return new HD(this.node,this.reversed,!this.constrained,this.tagType,this.depth)};
_.N.next=function(){if(this.started_){if(!this.node||this.constrained&&this.depth==0)return QS;var F=this.node;var W=this.reversed?-1:1;if(this.tagType==W){var E=this.reversed?F.lastChild:F.firstChild;E?X4(this,E):X4(this,F,W*-1)}else(E=this.reversed?F.previousSibling:F.nextSibling)?X4(this,E):X4(this,F.parentNode,W*-1);this.depth+=this.tagType*(this.reversed?-1:1)}else this.started_=!0;return(F=this.node)?zG(F):QS};
_.N.equals=function(F){return F.node==this.node&&(!this.node||F.tagType==this.tagType)};
_.N.splice=function(F){var W=this.node,E=this.reversed?1:-1;this.tagType==E&&(this.tagType=E*-1,this.depth+=this.tagType*(this.reversed?-1:1));this.reversed=!this.reversed;HD.prototype.next.call(this);this.reversed=!this.reversed;E=_.Ee(arguments[0])?arguments[0]:arguments;for(var h=E.length-1;h>=0;h--)_.lk(E[h],W);_.Bb(W)};var Dnu=function(){},PD=function(F){for(var W=[],E=F.getTextRangeCount(),h=0;h<E;h++)W.push(F.getTextRange(h));
return W};
Dnu.prototype.isReversed=function(){return!1};
Dnu.prototype.getWindow=function(){return LC(_.qp(this.JSC$9155_getStartNode()))};
var xnM=function(F,W){HD.call(this,F,W,!0)};
_.Ma(xnM,HD);var JB=function(F,W,E,h,d){this.endNode_=this.startNode_=null;this.endOffset_=this.startOffset_=0;this.isReversed_=!!d;if(F){this.startNode_=F;this.startOffset_=W;this.endNode_=E;this.endOffset_=h;if(F.nodeType==1&&F.tagName!="BR")if(F=F.childNodes,W=F[W])this.startNode_=W,this.startOffset_=0;else{F.length&&(this.startNode_=_.lo(F));var V=!0}E.nodeType==1&&((this.endNode_=E.childNodes[h])?this.endOffset_=0:this.endNode_=E)}HD.call(this,this.isReversed_?this.endNode_:this.startNode_,this.isReversed_,
!0);V&&this.next()};
_.Ma(JB,xnM);_.N=JB.prototype;_.N.JSC$9161_getStartNode=function(){return this.startNode_};
_.N.isLast=function(){return this.started_&&(this.node!=(this.isReversed_?this.startNode_:this.endNode_)?!1:this.isReversed_?this.startOffset_?this.tagType!=-1:this.tagType==1:!this.endOffset_||this.tagType!=1)};
_.N.next=function(){return this.isLast()?QS:JB.superClass_.next.call(this)};
_.N.JSC$9153_copyFrom=function(F){this.startNode_=F.startNode_;this.endNode_=F.endNode_;this.startOffset_=F.startOffset_;this.endOffset_=F.endOffset_;this.isReversed_=F.isReversed_;JB.superClass_.JSC$9153_copyFrom.call(this,F)};
_.N.clone=function(){var F=new JB(this.startNode_,this.startOffset_,this.endNode_,this.endOffset_,this.isReversed_);F.JSC$9153_copyFrom(this);return F};var krO=function(){};
krO.prototype.__iterator__=function(){return new JB(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var a7=function(F){this.range_=F};
_.Ma(a7,krO);var AEU=function(F){var W=_.qp(F).createRange();if(F.nodeType==3)W.setStart(F,0),W.setEnd(F,F.length);else if(fv(F)||F.nodeType==3){for(var E,h=F;(E=h.firstChild)&&(fv(E)||E.nodeType==3);)h=E;W.setStart(h,0);for(h=F;(E=h.lastChild)&&(fv(E)||E.nodeType==3);)h=E;W.setEnd(h,h.nodeType==1?h.childNodes.length:h.length)}else E=F.parentNode,F=Array.prototype.indexOf.call(E.childNodes,F),W.setStart(E,F),W.setEnd(E,F+1);return W},sxc=function(F,W,E,h){var d=_.qp(F).createRange();
d.setStart(F,W);d.setEnd(E,h);return d};
_.N=a7.prototype;_.N.clone=function(){return new this.constructor(this.range_.cloneRange())};
_.N.getContainer=function(){return this.range_.commonAncestorContainer};
_.N.compareBrowserRangeEndpoints=function(F,W,E){return this.range_.compareBoundaryPoints(E==1?W==1?_.EY.Range.START_TO_START:_.EY.Range.START_TO_END:W==1?_.EY.Range.END_TO_START:_.EY.Range.END_TO_END,F)};
_.N.isCollapsed=function(){return this.range_.collapsed};
_.N.select=function(F){this.selectInternal(LC(_.qp(this.range_.startContainer)).getSelection(),F)};
_.N.selectInternal=function(F){F.removeAllRanges();F.addRange(this.range_)};
_.N.insertNode=function(F,W){var E=this.range_.cloneRange();E.collapse(W);E.insertNode(F);E.detach();return F};
_.N.collapse=function(F){this.range_.collapse(F)};_.Ma(Ff,a7);Ff.prototype.selectInternal=function(F,W){!W||this.isCollapsed()?Ff.superClass_.selectInternal.call(this,F,W):(F.collapse(this.range_.endContainer,this.range_.endOffset),F.extend(this.range_.startContainer,this.range_.startOffset))};_.Ma(Wf,a7);Wf.prototype.compareBrowserRangeEndpoints=function(F,W,E){return Wf.superClass_.compareBrowserRangeEndpoints.call(this,F,W,E)};
Wf.prototype.selectInternal=function(F,W){W?F.setBaseAndExtent(this.range_.endContainer,this.range_.endOffset,this.range_.startContainer,this.range_.startOffset):F.setBaseAndExtent(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var Lf_=function(F){return _.BY?new Wf(F):_.Cc?new Ff(F):new a7(F)};var fB=function(){this.endOffset_=this.endNode_=this.startOffset_=this.startNode_=this.browserRangeWrapper_=null;this.isReversed_=!1},q_B;
_.Ma(fB,Dnu);q_B=function(F,W){var E=new fB;E.browserRangeWrapper_=F;E.isReversed_=!!W;return E};
_.$nz=function(F){F=_.BY?new Wf(AEU(F)):_.Cc?new Ff(AEU(F)):new a7(AEU(F));return q_B(F)};
_.Ow=function(F,W,E,h){var d=new fB;d.isReversed_=ZVa(F,W,E,h);if(_.pM(F)&&!fv(F)){var V=F.parentNode;W=Array.prototype.indexOf.call(V.childNodes,F);F=V}_.pM(E)&&!fv(E)&&(V=E.parentNode,h=Array.prototype.indexOf.call(V.childNodes,E),E=V);d.isReversed_?(d.startNode_=E,d.startOffset_=h,d.endNode_=F,d.endOffset_=W):(d.startNode_=F,d.startOffset_=W,d.endNode_=E,d.endOffset_=h);return d};
_.N=fB.prototype;_.N.clone=function(){var F=new fB;F.browserRangeWrapper_=this.browserRangeWrapper_&&this.browserRangeWrapper_.clone();F.startNode_=this.startNode_;F.startOffset_=this.startOffset_;F.endNode_=this.endNode_;F.endOffset_=this.endOffset_;F.isReversed_=this.isReversed_;return F};
_.N.JSC$9155_getType=function(){return"text"};
_.N.getBrowserRangeObject=function(){return bn(this).range_};
_.N.getTextRangeCount=function(){return 1};
_.N.getTextRange=function(){return this};
var bn=function(F){var W;if(!(W=F.browserRangeWrapper_)){W=F.JSC$9155_getStartNode();var E=F.JSC$9155_getStartOffset(),h=F.JSC$9155_getEndNode(),d=F.JSC$9155_getEndOffset();W=_.BY?new Wf(sxc(W,E,h,d)):_.Cc?new Ff(sxc(W,E,h,d)):new a7(sxc(W,E,h,d));W=F.browserRangeWrapper_=W}return W};
_.N=fB.prototype;_.N.getContainer=function(){return bn(this).getContainer()};
_.N.JSC$9155_getStartNode=function(){return this.startNode_||(this.startNode_=bn(this).range_.startContainer)};
_.N.JSC$9155_getStartOffset=function(){return this.startOffset_!=null?this.startOffset_:this.startOffset_=bn(this).range_.startOffset};
_.N.JSC$9155_getEndNode=function(){return this.endNode_||(this.endNode_=bn(this).range_.endContainer)};
_.N.JSC$9155_getEndOffset=function(){return this.endOffset_!=null?this.endOffset_:this.endOffset_=bn(this).range_.endOffset};
_.N.isReversed=function(){return this.isReversed_};
_.N.JSC$9155_containsRange=function(F,W){if(F.JSC$9155_getType()=="text"){var E=bn(this);F=bn(F);W=W&&!F.isCollapsed();F=F.range_;E=W?E.compareBrowserRangeEndpoints(F,0,1)>=0&&E.compareBrowserRangeEndpoints(F,1,0)<=0:E.compareBrowserRangeEndpoints(F,0,0)>=0&&E.compareBrowserRangeEndpoints(F,1,1)<=0}else E=!1;return E};
_.N.isCollapsed=function(){return bn(this).isCollapsed()};
_.N.JSC$9155_getText=function(){return bn(this).range_.toString()};
_.N.__iterator__=function(){return new JB(this.JSC$9155_getStartNode(),this.JSC$9155_getStartOffset(),this.JSC$9155_getEndNode(),this.JSC$9155_getEndOffset())};
_.N.select=function(){bn(this).select(this.isReversed_)};
_.N.JSC$9155_removeContents=function(){var F=bn(this).range_;F.extractContents();if(F.startContainer.hasChildNodes()&&(F=F.startContainer.childNodes[F.startOffset])){var W=F.previousSibling;UFp(F)==""&&_.Bb(F);W&&UFp(W)==""&&_.Bb(W)}this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null};
_.N.insertNode=function(F,W){F=bn(this).insertNode(F,W);this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null;return F};
_.N.collapse=function(F){F=this.isReversed()?!F:F;this.browserRangeWrapper_&&this.browserRangeWrapper_.collapse(F);F?(this.endNode_=this.startNode_,this.endOffset_=this.startOffset_):(this.startNode_=this.endNode_,this.startOffset_=this.endOffset_);this.isReversed_=!1};var Xzp=function(){};
_.Ma(Xzp,Dnu);Xzp.prototype.JSC$9155_containsRange=function(F,W){var E=PD(this);F=PD(F);return(W?GX:_.m4G)(F,function(h){return GX(E,function(d){return d.JSC$9155_containsRange(h,W)})})};
Xzp.prototype.insertNode=function(F,W){W?_.bk(F,this.JSC$9155_getStartNode()):_.lk(F,this.JSC$9155_getEndNode());return F};var HV_,PCB=gn().JSC$7231_document_.documentElement;HV_=PCB.requestFullscreen?"fullscreenchange":PCB.webkitRequestFullscreen?"webkitfullscreenchange":PCB.mozRequestFullScreen?"mozfullscreenchange":PCB.msRequestFullscreen?"MSFullscreenChange":"fullscreenchange";var JEz=function(){var F=gn().JSC$7231_document_;return!!(F.webkitIsFullScreen||F.mozFullScreen||F.msFullscreenElement||F.fullscreenElement)};var ln=function(){this.browserRanges_=[];this.ranges_=[];this.container_=this.sortedRanges_=null};
_.Ma(ln,Xzp);_.N=ln.prototype;_.N.clone=function(){var F=new ln;F.browserRanges_=_.Kb(this.browserRanges_);return F};
_.N.JSC$9155_getType=function(){return"mutli"};
_.N.getBrowserRangeObject=function(){return this.browserRanges_[0]};
_.N.getTextRangeCount=function(){return this.browserRanges_.length};
_.N.getTextRange=function(F){this.ranges_[F]||(this.ranges_[F]=q_B(Lf_(this.browserRanges_[F])));return this.ranges_[F]};
_.N.getContainer=function(){if(!this.container_){for(var F=[],W=this.getTextRangeCount(),E=0;E<W;E++)F.push(this.getTextRange(E).getContainer());this.container_=Fgz.apply(null,F)}return this.container_};
var nB=function(F){F.sortedRanges_||(F.sortedRanges_=PD(F),F.sortedRanges_.sort(function(W,E){var h=W.JSC$9155_getStartNode();W=W.JSC$9155_getStartOffset();var d=E.JSC$9155_getStartNode();E=E.JSC$9155_getStartOffset();return h==d&&W==E?0:ZVa(h,W,d,E)?1:-1}));
return F.sortedRanges_};
_.N=ln.prototype;_.N.JSC$9155_getStartNode=function(){return nB(this)[0].JSC$9155_getStartNode()};
_.N.JSC$9155_getStartOffset=function(){return nB(this)[0].JSC$9155_getStartOffset()};
_.N.JSC$9155_getEndNode=function(){return _.lo(nB(this)).JSC$9155_getEndNode()};
_.N.JSC$9155_getEndOffset=function(){return _.lo(nB(this)).JSC$9155_getEndOffset()};
_.N.isCollapsed=function(){return this.browserRanges_.length==0||this.browserRanges_.length==1&&this.getTextRange(0).isCollapsed()};
_.N.JSC$9155_getText=function(){return PD(this).map(function(F){return F.JSC$9155_getText()}).join("")};
_.N.__iterator__=function(){return new yZ(this)};
_.N.select=function(){var F=this.getWindow().getSelection();F.removeAllRanges();for(var W=this.getTextRangeCount(),E=0;E<W;E++)F.addRange(this.getTextRange(E).getBrowserRangeObject())};
_.N.JSC$9155_removeContents=function(){PD(this).forEach(function(F){F.JSC$9155_removeContents()})};
_.N.collapse=function(F){if(!this.isCollapsed()){var W=F?this.getTextRange(0):this.getTextRange(this.getTextRangeCount()-1);this.ranges_=[];this.container_=this.sortedRanges_=null;W.collapse(F);this.ranges_=[W];this.sortedRanges_=[W];this.browserRanges_=[W.getBrowserRangeObject()]}};
var yZ=function(F){this.iterators_=null;this.currentIdx_=0;F&&(this.iterators_=nB(F).map(function(W){return _.Smu(W)}));
HD.call(this,F?this.JSC$9161_getStartNode():null,!1,!0)};
_.Ma(yZ,xnM);_.N=yZ.prototype;_.N.JSC$9161_getStartNode=function(){return this.iterators_[0].JSC$9161_getStartNode()};
_.N.isLast=function(){return this.iterators_[this.currentIdx_].isLast()};
_.N.next=function(){for(;this.currentIdx_<this.iterators_.length;){var F=this.iterators_[this.currentIdx_],W=F.next();if(W.done)this.currentIdx_++;else return X4(this,F.node,F.tagType,F.depth),W}return QS};
_.N.JSC$9153_copyFrom=function(F){this.iterators_=_.Kb(F.iterators_);yZ.superClass_.JSC$9153_copyFrom.call(this,F)};
_.N.clone=function(){var F=new yZ(null);F.JSC$9153_copyFrom(this);return F};var asO,ZVa;_.qv=function(){var F=window.getSelection();return F&&asO(F)};
asO=function(F){var W=!1;if(F.createRange)try{var E=F.createRange()}catch(d){return null}else if(F.rangeCount){if(F.rangeCount>1){E=new ln;W=F.rangeCount;for(var h=0;h<W;h++)E.browserRanges_.push(F.getRangeAt(h));return E}E=F.getRangeAt(0);W=ZVa(F.anchorNode,F.anchorOffset,F.focusNode,F.focusOffset)}else return null;return q_B(Lf_(E),W)};
_.jC=function(F,W){return _.Ow(F,W,F,W)};
_.rp=function(F,W,E,h){return _.Ow(F,W,E,h)};
ZVa=function(F,W,E,h){if(F==E)return h<W;var d;if(F.nodeType==1&&W)if(d=F.childNodes[W])F=d,W=0;else if(_.bg(F,E))return!0;if(E.nodeType==1&&h)if(d=E.childNodes[h])E=d,h=0;else if(_.bg(E,F))return!1;return(KXO(F,E)||W-h)>0};var Ta=function(){_.qo.call(this);this.reader_=new FileReader;this.reader_.onloadstart=(0,_.kj)(this.dispatchProgressEvent_,this);this.reader_.onprogress=(0,_.kj)(this.dispatchProgressEvent_,this);this.reader_.onload=(0,_.kj)(this.dispatchProgressEvent_,this);this.reader_.onabort=(0,_.kj)(this.dispatchProgressEvent_,this);this.reader_.onerror=(0,_.kj)(this.dispatchProgressEvent_,this);this.reader_.onloadend=(0,_.kj)(this.dispatchProgressEvent_,this)};
_.Ma(Ta,_.qo);Ta.prototype.abort=function(){try{this.reader_.abort()}catch(F){throw new WFX(F,"aborting read");}};
Ta.prototype.getError=function(){return this.reader_.error&&new WFX(this.reader_.error,"reading file")};
Ta.prototype.dispatchProgressEvent_=function(F){this.dispatchEvent(new E7i(F,this))};
Ta.prototype.disposeInternal=function(){Ta.superClass_.disposeInternal.call(this);delete this.reader_};
var OV_=function(F){var W=new Ta,E=fse(W);W.reader_.readAsArrayBuffer(F);return E},bVU=function(F){var W=new Ta,E=fse(W);
W.reader_.readAsDataURL(F);return E},fse=function(F){var W=new Sf;
F.listen("loadend",_.v5(function(E,h){var d=h.reader_.result,V=h.getError();d==null||V?E.errback(V):E.callback(d);h.dispose()},W,F));
return W};var o7=function(){_.qo.call(this);this.hysteresisDistance_=0;this.dragLists_=[];this.dragItems_=[];this.dragItemForHandle_={};this.JSC$9195_eventHandler_=new _.hR(this);this.JSC$9195_isInitialized_=!1};
_.Ma(o7,_.qo);var lsT=new _.DZ("d"),nri=new _.DZ("beforedragstart"),yEB=new _.DZ("dragstart"),jxX=new _.DZ("beforedragmove"),iVB=new _.DZ("dragmove"),rEX=new _.DZ("beforedragend"),TRT=new _.DZ("dragend"),orc=new _.DZ("e");o7.prototype.isDragging=function(){return!!this.JSC$9195_dragger_};
var Gr_=function(F,W){W.dlgGrowthDirection_=0;W.dlgDragHoverClass_=void 0;W.dlgDragPermission=0;F.dragLists_.push(W)},Y_c=function(F,W){F.getHandleForDragItem_=W};
o7.prototype.init=function(){if(!this.JSC$9195_isInitialized_){for(var F=this.dragLists_.length,W=0;W<F;W++)for(var E=_.nv(this.dragLists_[W]),h=E.length,d=0;d<h;++d){var V=E[d],R=this.getHandleForDragItem_(V),M=_.Ue(R);this.dragItemForHandle_[M]=V;this.dragItemHoverClasses_&&(this.JSC$9195_eventHandler_.listen(V,"mouseover",this.handleDragItemMouseover_),this.JSC$9195_eventHandler_.listen(V,"mouseout",this.handleDragItemMouseout_));this.dragItemHandleHoverClasses_&&(this.JSC$9195_eventHandler_.listen(R,
"mouseover",this.handleDragItemHandleMouseover_),this.JSC$9195_eventHandler_.listen(R,"mouseout",this.handleDragItemHandleMouseout_));this.dragItems_.push(V);this.JSC$9195_eventHandler_.listen(R,["mousedown","touchstart"],this.handlePotentialDragStart_)}this.JSC$9195_isInitialized_=!0}};
o7.prototype.disposeInternal=function(){this.JSC$9195_eventHandler_.dispose();for(var F=this.dragLists_.length,W=0;W<F;W++){var E=this.dragLists_[W];E.dlgGrowthDirection_=void 0;E.dlgDragHoverClass_=void 0}this.dragLists_.length=0;this.dragItems_.length=0;this.dragItemForHandle_=null;wzc(this);o7.superClass_.disposeInternal.call(this)};
var uD_=function(F,W){for(var E=F.dragLists_.length,h=0;h<E;h++){var d=F.dragLists_[h];d.dlgBounds_=fBk(d)}E=F.dragItems_.length;for(h=0;h<E;h++)d=F.dragItems_[h],d!=W&&(d.dlgBounds_=fBk(d))};
_.N=o7.prototype;
_.N.handlePotentialDragStart_=function(F){var W=_.Ue(F.currentTarget);W=this.dragItemForHandle_[W];if(W.parentElement.dlgDragPermission!=2){this.currDragItem_=W;a:{W=this.currDragItem_;for(var E=W.cloneNode(!0),h=vb("TEXTAREA",W),d=vb("TEXTAREA",E),V=0;V<h.length;V++)d[V].value=h[V].value;switch(W.tagName){case "TR":W=_.Jk("TABLE",null,_.Jk("TBODY",null,E));break a;case "TD":case "TH":W=_.Jk("TABLE",null,_.Jk("TBODY",null,_.Jk("TR",null,E)));break a;case "TEXTAREA":E.value=W.value;default:W=E;break a}W=
void 0}this.draggerEl_=W;this.draggerElClasses_&&wv(this.draggerEl_,this.draggerElClasses_||[]);this.draggerEl_.style.margin="0";this.draggerEl_.style.position="absolute";this.draggerEl_.style.visibility="hidden";_.qp(this.currDragItem_).body.appendChild(this.draggerEl_);E=_.Zy(this.currDragItem_);W=this.draggerEl_;h=_.Zy(W);if(E instanceof _.sp){var R=E.y;E=E.x}TH(W,W.offsetLeft+(E-h.x),W.offsetTop+(Number(R)-h.y));this.JSC$9195_dragger_=new _.rs(this.draggerEl_);_.Fe_(this.JSC$9195_dragger_,this.hysteresisDistance_);
_.ce(this.JSC$9195_dragger_,"start",this.handleDragStart_,!1,this);_.ce(this.JSC$9195_dragger_,"end",this.handleDragEnd_,!1,this);_.ce(this.JSC$9195_dragger_,"earlycancel",this.JSC$9197_cleanup_,!1,this);this.dispatchEvent(new Ga(lsT,this,F,this.currDragItem_,this.draggerEl_,this.JSC$9195_dragger_));this.JSC$9195_dragger_.startDrag(F)}};
_.N.handleDragStart_=function(F){if(this.dispatchEvent(new Ga(nri,this,F.browserEvent,this.currDragItem_,null,null))){this.origList_=this.currDragItem_.parentNode;this.origNextItem_=_.Se_(this.currDragItem_);this.currHoverList_=this.origList_;this.currDragItemClasses_?wv(this.currDragItem_,this.currDragItemClasses_||[]):this.currDragItem_.style.visibility="hidden";var W=z6e(this.draggerEl_);this.draggerEl_.halfWidth=W.width/2;this.draggerEl_.halfHeight=W.height/2;W=this.draggerEl_.getBoundingClientRect();
var E=F.clientY,h=We_(this.JSC$9195_dragger_,F.clientX);if(h>W.right){var d=this.currDragItem_.getBoundingClientRect();this.JSC$9195_dragger_.deltaX=h-(h-d.left)/d.width*W.width}E=EC_(this.JSC$9195_dragger_,E);E>W.bottom&&(this.JSC$9195_dragger_.deltaY+=E-W.bottom);this.draggerEl_.style.visibility="";this.currDragItem_.style.display="none";uD_(this,this.currDragItem_);this.currDragItem_.style.display="";_.ce(this.JSC$9195_dragger_,"drag",this.handleDragMove_,!1,this);this.dispatchEvent(new Ga(yEB,
this,F.browserEvent,this.currDragItem_,this.draggerEl_,this.JSC$9195_dragger_))}else F.preventDefault(),this.JSC$9197_cleanup_()};
_.N.handleDragMove_=function(F){var W=_.Zy(this.draggerEl_);W=new _.sp(W.x+this.draggerEl_.halfWidth,W.y+this.draggerEl_.halfHeight);a:{var E=null;if(this.currDragItem_.style.display!="none"){E=this.currDragItem_.parentNode;var h=fBk(E);if(S_O(W,h))break a}h=this.dragLists_.length;for(var d=0;d<h;d++){var V=this.dragLists_[d];if(V!=E&&S_O(W,V.dlgBounds_)){E=V;break a}}E=null}if(E){if(E==null)throw Error("Vd");h=0;d=!1;V=void 0;switch(E.dlgGrowthDirection_){case 0:h=W.y;var R=pzp;var M=mnp;break;case 4:d=
!0;case 2:h=W.x;R=Kfu;M=mnp;break;case 5:d=!0;case 3:h=W.x,R=FJe,M=WJX}for(var g=null,t,C=_.nv(E),B=C.length,I=0;I<B;I++){var x=C[I];if(x!=this.currDragItem_){var A=R(x.dlgBounds_);if(d){var X=EuT(x,W);V===void 0&&(V=X);M(h,A)&&(t==void 0||X<V||X==V&&(M(A,t)||A==t))&&(g=x,t=A);X<V&&(V=X)}else M(h,A)&&(t==void 0||M(A,t))&&(g=x,t=A)}}R=g!==null&&EuT(g,W)>V?null:g}else R=null;if(!this.dispatchEvent(new Ga(jxX,this,F,this.currDragItem_,this.draggerEl_,this.JSC$9195_dragger_,W,E,R)))return!1;if(E&&E.dlgDragPermission!=
1)this.currDragItem_.parentNode==E&&_.Se_(this.currDragItem_)==R||E.insertBefore(this.currDragItem_,R),this.currDragItem_.style.display="",E.dlgDragHoverClass_&&_.ou(E,E.dlgDragHoverClass_);else for(this.currDragItem_.style.display="none",M=this.dragLists_.length,t=0;t<M;t++)h=this.dragLists_[t],h.dlgDragHoverClass_&&_.rh(h,h.dlgDragHoverClass_);E!=this.currHoverList_&&(this.currHoverList_=E,uD_(this,this.currDragItem_));this.dispatchEvent(new Ga(iVB,this,F,this.currDragItem_,this.draggerEl_,this.JSC$9195_dragger_,
W,E,R));return!1};
_.N.JSC$9197_cleanup_=function(){wzc(this);this.JSC$9195_dragger_=this.draggerEl_=this.origNextItem_=this.origList_=this.currHoverList_=this.currDragItem_=null;for(var F=this.dragLists_.length,W=0;W<F;W++)this.dragLists_[W].dlgBounds_=null;F=this.dragItems_.length;for(W=0;W<F;W++)this.dragItems_[W].dlgBounds_=null};
_.N.handleDragEnd_=function(F){if(!this.dispatchEvent(new Ga(rEX,this,F,this.currDragItem_,this.draggerEl_,this.JSC$9195_dragger_)))return!1;wzc(this);this.dispatchEvent(new Ga(TRT,this,F,this.currDragItem_,this.draggerEl_,this.JSC$9195_dragger_));this.JSC$9197_cleanup_();return!0};
var wzc=function(F){_.u5(F.JSC$9195_dragger_);var W=F.draggerEl_&&F.draggerEl_.parentElement;F.draggerEl_&&_.Bb(F.draggerEl_);F.currDragItem_&&F.currDragItem_.style.display=="none"&&(F.origList_.insertBefore(F.currDragItem_,F.origNextItem_),F.currDragItem_.style.display="");F.currDragItemClasses_&&F.currDragItem_?WjO(F.currDragItem_,F.currDragItemClasses_||[]):F.currDragItem_&&(F.currDragItem_.style.visibility="");for(var E=F.dragLists_.length,h=0;h<E;h++){var d=F.dragLists_[h];d.dlgDragHoverClass_&&
_.rh(d,d.dlgDragHoverClass_)}W&&F.dispatchEvent(new Ga(orc,F,null,F.currDragItem_,F.draggerEl_,F.JSC$9195_dragger_))};
_.N=o7.prototype;_.N.getHandleForDragItem_=function(F){return F};
_.N.handleDragItemMouseover_=function(F){wv(F.currentTarget,this.dragItemHoverClasses_||[])};
_.N.handleDragItemMouseout_=function(F){WjO(F.currentTarget,this.dragItemHoverClasses_||[])};
_.N.handleDragItemHandleMouseover_=function(F){wv(F.currentTarget,this.dragItemHandleHoverClasses_||[])};
_.N.handleDragItemHandleMouseout_=function(F){WjO(F.currentTarget,this.dragItemHandleHoverClasses_||[])};
var S_O=function(F,W){return F.x>W.left&&F.x<W.left+W.width&&F.y>W.top&&F.y<W.top+W.height},EuT=function(F,W){F=F.dlgBounds_;
return Math.abs(W.y-(F.top+(F.height-1)/2))},pzp=function(F){return F.top+F.height-1},Kfu=function(F){return F.left+F.width-1},FJe=function(F){return F.left||0},mnp=function(F,W){return F<W},WJX=function(F,W){return F>W},Ga=function(F,W,E,h,d,V){_.xU.call(this,F);
this.event=E;this.currDragItem=h;this.draggerEl=d;this.JSC$9199_dragger=V};
_.Ma(Ga,_.xU);_.Ma(d8,_.xj);var hnH=new _.sp(0,0);d8.prototype.JSC$9203_onTick_=function(){this.containerNode_.scrollTop+=this.scrollDelta_.y;this.containerNode_.scrollLeft+=this.scrollDelta_.x};
d8.prototype.JSC$9203_onMouseMove=function(F){var W=this.containerIsActuallyContent_?hnH:Mp(gn(this.containerNode_)),E=this.horizontalScrolling_?this.calculateScrollDelta(F.clientX+W.x,this.scrollBounds_.left,this.scrollBounds_.width):0,h=this.calculateScrollDelta(F.clientY+W.y,this.scrollBounds_.top,this.scrollBounds_.height);this.scrollDelta_.x=E;this.scrollDelta_.y=h;!(E=!E&&!h)&&(E=this.constrainScroll_)&&(E=F.clientX+W.x,F=F.clientY+W.y,W=this.containerBounds_,E=!(W.left<=E&&W.left+W.width>=
E&&W.top<=F&&W.top+W.height>=F));E?this.scrollTimer_.stop():this.scrollTimer_.enabled||this.scrollTimer_.start()};
d8.prototype.calculateScrollDelta=function(F,W,E){var h=0;F<W?h=-8:F>W+E&&(h=8);return h};
d8.prototype.disposeInternal=function(){d8.superClass_.disposeInternal.call(this);this.JSC$9201_eventHandler_.dispose();this.scrollTimer_.dispose()};var dza={COMPACT_DECIMAL_SHORT_PATTERN:{1E3:{other:"0K"},1E4:{other:"00K"},1E5:{other:"000K"},1E6:{other:"0M"},1E7:{other:"00M"},1E8:{other:"000M"},1E9:{other:"0B"},1E10:{other:"00B"},1E11:{other:"000B"},1E12:{other:"0T"},1E13:{other:"00T"},1E14:{other:"000T"}},COMPACT_DECIMAL_LONG_PATTERN:{1E3:{other:"0 thousand"},1E4:{other:"00 thousand"},1E5:{other:"000 thousand"},1E6:{other:"0 million"},1E7:{other:"00 million"},1E8:{other:"000 million"},1E9:{other:"0 billion"},1E10:{other:"00 billion"},1E11:{other:"000 billion"},
1E12:{other:"0 trillion"},1E13:{other:"00 trillion"},1E14:{other:"000 trillion"}}},Y4=dza;Y4=dza;var wp={AED:[2,"dh","\u062f.\u0625."],ALL:[0,"Lek","Lek"],AUD:[2,"$","AU$"],BDT:[2,"\u09f3","Tk"],BGN:[2,"lev","lev"],BRL:[2,"R$","R$"],CAD:[2,"$","C$"],CDF:[2,"FrCD","CDF"],CHF:[2,"CHF","CHF"],CLP:[0,"$","CL$"],CNY:[2,"\u00a5","RMB\u00a5"],COP:[32,"$","COL$"],CRC:[0,"\u20a1","CR\u20a1"],CZK:[50,"K\u010d","K\u010d"],DKK:[50,"kr.","kr."],DOP:[2,"RD$","RD$"],EGP:[2,"\u00a3","LE"],ETB:[2,"Birr","Birr"],EUR:[2,"\u20ac","\u20ac"],GBP:[2,"\u00a3","GB\u00a3"],HKD:[2,"$","HK$"],HRK:[2,"kn","kn"],HUF:[34,
"Ft","Ft"],IDR:[0,"Rp","Rp"],ILS:[34,"\u20aa","IL\u20aa"],INR:[2,"\u20b9","Rs"],IRR:[0,"Rial","IRR"],ISK:[0,"kr","kr"],JMD:[2,"$","JA$"],JPY:[0,"\u00a5","JP\u00a5"],KRW:[0,"\u20a9","KR\u20a9"],LKR:[2,"Rs","SLRs"],LTL:[2,"Lt","Lt"],MNT:[0,"\u20ae","MN\u20ae"],MVR:[2,"Rf","MVR"],MXN:[2,"$","Mex$"],MYR:[2,"RM","RM"],NOK:[50,"kr","NOkr"],PAB:[2,"B/.","B/."],PEN:[2,"S/.","S/."],PHP:[2,"\u20b1","PHP"],PKR:[0,"Rs","PKRs."],PLN:[50,"z\u0142","z\u0142"],RON:[2,"RON","RON"],RSD:[0,"din","RSD"],RUB:[50,"\u20bd",
"RUB"],SAR:[2,"SAR","SAR"],SEK:[50,"kr","kr"],SGD:[2,"$","S$"],THB:[2,"\u0e3f","THB"],TRY:[2,"\u20ba","TRY"],TWD:[2,"$","NT$"],TZS:[0,"TSh","TSh"],UAH:[2,"\u0433\u0440\u043d.","UAH"],USD:[2,"$","US$"],UYU:[2,"$","$U"],VND:[48,"\u20ab","VN\u20ab"],YER:[0,"Rial","Rial"],ZAR:[2,"R","ZAR"]};var N2X=function(){},rR=function(F){if(typeof F=="number"){var W=new N2X;
W.standardOffset_=F;var E=F;if(E==0)E="Etc/GMT";else{var h=["Etc/GMT",E<0?"-":"+"];E=Math.abs(E);h.push(Math.floor(E/60)%100);E%=60;E!=0&&h.push(":",_.RY(E,2));E=h.join("")}W.timeZoneId_=E;E=F;E==0?E="UTC":(h=["UTC",E<0?"+":"-"],E=Math.abs(E),h.push(Math.floor(E/60)%100),E%=60,E!=0&&h.push(":",E),E=h.join(""));F=VRM(F);W.tzNames_=[E,E];W.tzNamesExt_={STD_LONG_NAME_GMT:F,STD_GENERIC_LOCATION:F};W.transitions_=[];return W}W=new N2X;W.timeZoneId_=F.id;W.standardOffset_=-F.std_offset;W.tzNames_=F.names;
W.tzNamesExt_=F.names_ext;W.transitions_=F.transitions;return W},VRM=function(F){var W=["GMT"];
W.push(F<=0?"+":"-");F=Math.abs(F);W.push(_.RY(Math.floor(F/60)%100,2),":",_.RY(F%60,2));return W.join("")},Uz_=function(F,W){W=Date.UTC(W.getUTCFullYear(),W.getUTCMonth(),W.getUTCDate(),W.getUTCHours(),W.getUTCMinutes())/36E5;
for(var E=0;E<F.transitions_.length&&W>=F.transitions_[E];)E+=2;return E==0?0:F.transitions_[E-1]},Rna=function(F,W){F=F.standardOffset_-Uz_(F,W);
return F===-1440?0:F};var Tr=function(F,W){this.patternParts_=[];this.JSC$9214_dateTimeSymbols_=W||PH;typeof F=="number"?ena(this,F):MRT(this,F)},gui=[/^'(?:[^']|'')*('|$)/,
/^(?:G+|y+|Y+|u+|M+|k+|S+|E+|a+|b+|B+|h+|K+|H+|c+|L+|Q+|d+|m+|s+|v+|V+|w+|z+|Z+)/,/^[^'GyYuMkSEabBhKHcLQdmsvVwzZ]+/],un=function(F){return F.getHours?F.getHours():0},MRT=function(F,W){for(Vlk&&(W=W.replace(/\u200f/g,""));W;){for(var E=W,h=0;h<gui.length;++h){var d=W.match(gui[h]);
if(d){var V=d[0];W=W.substring(V.length);h==0&&(V=="''"?V="'":(V=V.substring(1,d[1]=="'"?V.length-1:V.length),V=V.replace(/''/g,"'")));F.patternParts_.push({text:V,type:h});break}}if(E===W)throw Error("Wd`"+W);}};
Tr.prototype.format=function(F,W){if(!F)throw Error("Xd");var E=W?(F.getTimezoneOffset()-Rna(W,F))*6E4:0,h=E?new Date(F.getTime()+E):F,d=h;W&&h.getTimezoneOffset()!=F.getTimezoneOffset()&&(h=new Date(h.getTime()+(h.getTimezoneOffset()-F.getTimezoneOffset())*6E4),d=new Date(F.getTime()+(E+(E>0?-864E5:864E5))));E=[];for(var V=0;V<this.patternParts_.length;++V){var R=this.patternParts_[V].text;1==this.patternParts_[V].type?E.push(Qou(this,R,F,h,d,W)):E.push(R)}return E.join("")};
var ena=function(F,W){if(W<4)var E=F.JSC$9214_dateTimeSymbols_.DATEFORMATS[W];else if(W<8)E=F.JSC$9214_dateTimeSymbols_.TIMEFORMATS[W-4];else if(W<12)E=F.JSC$9214_dateTimeSymbols_.DATETIMEFORMATS[W-8],E=E.replace("{1}",F.JSC$9214_dateTimeSymbols_.DATEFORMATS[W-8]),E=E.replace("{0}",F.JSC$9214_dateTimeSymbols_.TIMEFORMATS[W-8]);else if(W===12)E=F.JSC$9214_dateTimeSymbols_.DATEFORMATS[0].replace(/[^EMd]*yy*[^EMd]*/,"");else if(W===13)E=F.JSC$9214_dateTimeSymbols_.DATEFORMATS[2].replace(/[^EMd]*yy*[^EMd]*/,
"");else{ena(F,10);return}MRT(F,E)},SC=function(F,W){W=String(W);
F=F.JSC$9214_dateTimeSymbols_||PH;if(F.ZERODIGIT!==void 0&&!NLb){for(var E=[],h=0;h<W.length;h++){var d=W.charCodeAt(h);E.push(48<=d&&d<=57?String.fromCharCode(F.ZERODIGIT+d-48):W.charAt(h))}W=E.join("")}return W},NLb=!1,Vlk=!1,tRz=function(F,W,E,h){E=E.getFullYear();
E<=0&&h&&(E=1-E);return SC(F,znT(E,W))},znT=function(F,W){W==2&&(F%=100);
F<0&&W++;return _.RY(F,W)},pB=function(F){if(!(F.getHours&&F.getSeconds&&F.getMinutes))throw Error("Yd");
},CbT=function(F,W){pB(W);
W=un(W);return F.JSC$9214_dateTimeSymbols_.AMPMS[W>=12&&W<24?1:0]},Qou=function(F,W,E,h,d,V){var R=W.length;
switch(W.charAt(0)){case "G":return E=h.getFullYear()>0?1:0,R>=4?F.JSC$9214_dateTimeSymbols_.ERANAMES[E]:F.JSC$9214_dateTimeSymbols_.ERAS[E];case "y":return tRz(F,R,h,!0);case "Y":return E=(new Date(vrX(h.getFullYear(),h.getMonth(),h.getDate(),F.JSC$9214_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,F.JSC$9214_dateTimeSymbols_.FIRSTDAYOFWEEK))).getFullYear(),R==2&&(E%=100),SC(F,znT(E,R));case "u":return tRz(F,R,h,!1);case "M":a:switch(E=h.getMonth(),R){case 5:R=F.JSC$9214_dateTimeSymbols_.NARROWMONTHS[E];break a;
case 4:R=F.JSC$9214_dateTimeSymbols_.MONTHS[E];break a;case 3:R=F.JSC$9214_dateTimeSymbols_.SHORTMONTHS[E];break a;default:R=SC(F,_.RY(E+1,R))}return R;case "k":return pB(d),SC(F,_.RY(un(d)||24,R));case "S":return SC(F,(d.getMilliseconds()/1E3).toFixed(Math.min(3,R)).slice(2)+(R>3?_.RY(0,R-3):""));case "E":return E=h.getDay(),R>=4?F.JSC$9214_dateTimeSymbols_.WEEKDAYS[E]:F.JSC$9214_dateTimeSymbols_.SHORTWEEKDAYS[E];case "a":return CbT(F,d);case "b":return CbT(F,d);case "B":return CbT(F,d);case "h":return pB(d),
SC(F,_.RY(un(d)%12||12,R));case "K":return pB(d),SC(F,_.RY(un(d)%12,R));case "H":return pB(d),SC(F,_.RY(un(d),R));case "c":a:switch(E=h.getDay(),R){case 5:R=F.JSC$9214_dateTimeSymbols_.STANDALONENARROWWEEKDAYS[E];break a;case 4:R=F.JSC$9214_dateTimeSymbols_.STANDALONEWEEKDAYS[E];break a;case 3:R=F.JSC$9214_dateTimeSymbols_.STANDALONESHORTWEEKDAYS[E];break a;default:R=SC(F,_.RY(E,1))}return R;case "L":a:switch(E=h.getMonth(),R){case 5:R=F.JSC$9214_dateTimeSymbols_.STANDALONENARROWMONTHS[E];break a;
case 4:R=F.JSC$9214_dateTimeSymbols_.STANDALONEMONTHS[E];break a;case 3:R=F.JSC$9214_dateTimeSymbols_.STANDALONESHORTMONTHS[E];break a;default:R=SC(F,_.RY(E+1,R))}return R;case "Q":return E=Math.floor(h.getMonth()/3),R<4?F.JSC$9214_dateTimeSymbols_.SHORTQUARTERS[E]:F.JSC$9214_dateTimeSymbols_.QUARTERS[E];case "d":return SC(F,_.RY(h.getDate(),R));case "m":return pB(d),SC(F,_.RY(d.getMinutes?d.getMinutes():0,R));case "s":return pB(d),SC(F,_.RY(d.getSeconds(),R));case "v":return(V||rR(E.getTimezoneOffset())).timeZoneId_;
case "V":return F=V||rR(E.getTimezoneOffset()),R<=2?F.timeZoneId_:Uz_(F,E)>0?F.tzNamesExt_.DST_GENERIC_LOCATION!==void 0?F.tzNamesExt_.DST_GENERIC_LOCATION:F.tzNamesExt_.DST_GENERIC_LOCATION:F.tzNamesExt_.STD_GENERIC_LOCATION!==void 0?F.tzNamesExt_.STD_GENERIC_LOCATION:F.tzNamesExt_.STD_GENERIC_LOCATION;case "w":return E=vrX(d.getFullYear(),d.getMonth(),d.getDate(),F.JSC$9214_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,F.JSC$9214_dateTimeSymbols_.FIRSTDAYOFWEEK),SC(F,_.RY(Math.floor(Math.round((E-(new Date((new Date(E)).getFullYear(),
0,1)).valueOf())/864E5)/7)+1,R));case "z":return F=V||rR(E.getTimezoneOffset()),R<4?F.tzNames_[Uz_(F,E)>0?2:0]:F.tzNames_[Uz_(F,E)>0?3:1];case "Z":return W=V||rR(E.getTimezoneOffset()),R<4?(R=-Rna(W,E),F=[R<0?"-":"+"],R=Math.abs(R),F.push(_.RY(Math.floor(R/60)%100,2),_.RY(R%60,2)),R=F.join("")):R=SC(F,VRM(Rna(W,E))),R;default:return""}};var B2M=/^[ \t\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]/,vuu=/^[\s\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]+/,t0Y=function(F){this.patternParts_=[];this.JSC$9223_dateTimeSymbols_=PH;if(typeof F=="number"){F>11&&(F=10);if(F<4)var W=this.JSC$9223_dateTimeSymbols_.DATEFORMATS[F];else F<8?W=this.JSC$9223_dateTimeSymbols_.TIMEFORMATS[F-4]:(W=this.JSC$9223_dateTimeSymbols_.DATETIMEFORMATS[F-8],W=W.replace("{1}",this.JSC$9223_dateTimeSymbols_.DATEFORMATS[F-8]),W=W.replace("{0}",this.JSC$9223_dateTimeSymbols_.TIMEFORMATS[F-
8]));IPB(this,W)}else IPB(this,F)},IPB=function(F,W){for(var E=!1,h="",d=0;d<W.length;d++){var V=W.charAt(d);
if(B2M.test(V))for(h.length>0&&(F.patternParts_.push({text:h,count:0,abutStart:!1,numeric:!1}),h=""),F.patternParts_.push({text:" ",count:0,abutStart:!1,numeric:!1});d<W.length-1&&W.charAt(d+1)==" ";)d++;else if(E)V=="'"?d+1<W.length&&W.charAt(d+1)=="'"?(h+="'",d++):E=!1:h+=V;else if("GyMdkHmsSEDabBhKzZvQL".indexOf(V)>=0){h.length>0&&(F.patternParts_.push({text:h,count:0,abutStart:!1,numeric:!1}),h="");for(var R=W.charAt(d),M=d+1;M<W.length&&W.charAt(M)==R;)M++;R=M-d;R<=0?M=!1:(M="MydhHmsSDkK".indexOf(V),
M=M>0||M==0&&R<3);F.patternParts_.push({text:V,count:R,abutStart:!1,numeric:M});d+=R-1}else V=="'"?d+1<W.length&&W.charAt(d+1)=="'"?(h+="'",d++):E=!0:h+=V}h.length>0&&F.patternParts_.push({text:h,count:0,abutStart:!1,numeric:!1});W=!1;for(E=0;E<F.patternParts_.length;E++)F.patternParts_[E].numeric?!W&&E+1<F.patternParts_.length&&F.patternParts_[E+1].numeric&&(W=!0,F.patternParts_[E].abutStart=!0):W=!1};
t0Y.prototype.parse=function(F,W,E){var h=!1,d=!1;E&&(h=E.predictive||!1,d=E.validate||!1);if(h)for(E=0;E<this.patternParts_.length;E++){var V=this.patternParts_[E];if(V.count>0&&("abBhHkKm".indexOf(V.text.charAt(0))<0||V.count>2||V.abutStart))throw Error("Zd`"+V.text.charAt(0));}V=new cgp;E=[0];V.dayPeriodIndex=-1;for(var R=0;R<this.patternParts_.length&&!(h&&E[0]>=F.length);R++){if(this.patternParts_[R].count==0){a:{var M=F;var g=E,t=this.patternParts_[R],C=h;if(t.text.match(B2M)!=null){if(t=g[0],
Dz_(M,g),g[0]>t){M=!0;break a}}else{if(M.indexOf(t.text,g[0])==g[0]){g[0]+=t.text.length;M=!0;break a}if(C&&t.text.indexOf(M.substring(g[0]))==0){g[0]+=M.length-g[0];M=!0;break a}}M=!1}if(M)continue;return 0}if(this.patternParts_[R].abutStart){a:{g=F;t=E;C=R;var B=t[0],I=0;for(M=C;M<this.patternParts_.length;M++){var x=this.patternParts_[M],A=x.count;if(A===0)break;if(M==C&&(A-=I,I++,A==0)){M=0;break a}var X=M>C&&x.numeric,P=t[0];if(!xzc(this,g,t,x,A,V,!1)||X&&t[0]-P<A)M=C-1,t[0]=B}M-=C}if(M<=0)return 0;
R+=M-1}else if(!xzc(this,F,E,this.patternParts_[R],0,V,h))return 0}a:{F=d;if(W==null)throw Error("$d");V.era!=void 0&&V.year!=void 0&&V.era==0&&V.year>0&&(V.year=-(V.year-1));V.year!=void 0&&W.setFullYear(V.year);h=W.getDate();W.setDate(1);V.month!=void 0&&W.setMonth(V.month);V.day!=void 0?W.setDate(V.day):(d=rQk(W.getFullYear(),W.getMonth()),W.setDate(h>d?d:h));typeof W.setHours==="function"&&(V.hours==void 0&&(V.hours=W.getHours()),V.hours<12&&(V.ampm!=void 0&&V.ampm>0?V.hours+=12:V.dayPeriodName!==
void 0&&("isPm noon afternoon1 afternoon2 evening1 evening2".split(" ").includes(V.dayPeriodName)||["night1","night2"].includes(V.dayPeriodName)&&V.hours>=6)&&(V.hours+=12)),W.setHours(V.hours));typeof W.setMinutes==="function"&&V.minutes!=void 0&&W.setMinutes(V.minutes);typeof W.setSeconds==="function"&&V.seconds!=void 0&&W.setSeconds(V.seconds);typeof W.setMilliseconds==="function"&&V.milliseconds!=void 0&&W.setMilliseconds(V.milliseconds);if(F&&(V.year&&V.year!=W.getFullYear()||V.month&&V.month!=
W.getMonth()||V.day&&V.day!=W.getDate()||V.hours&&V.hours>=24||V.minutes&&V.minutes>=60||V.seconds&&V.seconds>=60||V.milliseconds&&V.milliseconds>=1E3))W=!1;else{V.tzOffset!=void 0&&W.setTime(W.getTime()+(V.tzOffset-W.getTimezoneOffset())*60*1E3);V.ambiguousYear&&(F=new Date,F.setFullYear(F.getFullYear()-80),W.getTime()<F.getTime()&&W.setFullYear(F.getFullYear()+100));if(V.dayOfWeek!=void 0)if(V.day==void 0)V=(7+V.dayOfWeek-W.getDay())%7,V>3&&(V-=7),F=W.getMonth(),W.setDate(W.getDate()+V),W.getMonth()!=
F&&W.setDate(W.getDate()+(V>0?-7:7));else if(V.dayOfWeek!=W.getDay()){W=!1;break a}W=!0}}return W?E[0]:0};
var xzc=function(F,W,E,h,d,V,R){Dz_(W,E);if(h.numeric&&d>0&&E[0]+d>W.length)return!1;switch(h.text.charAt(0)){case "G":return mM(W,E,[F.JSC$9223_dateTimeSymbols_.ERAS],function(M){return V.era=M}),!0;
case "M":case "L":return kBp(F,W,E,d,h,V);case "E":return mM(W,E,[F.JSC$9223_dateTimeSymbols_.WEEKDAYS,F.JSC$9223_dateTimeSymbols_.SHORTWEEKDAYS],function(M){return V.dayOfWeek=M});
case "B":case "b":return d=[],F=[[].concat(F.JSC$9223_dateTimeSymbols_.AMPMS)],d.push("isAm"),d.push("isPm"),W=mM(W,E,F,function(M){return V.dayPeriodIndex=M},R),V.dayPeriodName=d[V.dayPeriodIndex],R?W:!0;
case "a":return W=mM(W,E,[F.JSC$9223_dateTimeSymbols_.AMPMS],function(M){return V.ampm=M},R),R?W:!0;
case "y":return Agi(F,W,E,h,d,V);case "Q":return mM(W,E,[F.JSC$9223_dateTimeSymbols_.QUARTERS,F.JSC$9223_dateTimeSymbols_.SHORTQUARTERS],function(M){V.month=M*3;V.day=1});
case "d":return KB(F,W,E,h,d,function(M){V.day=M}),!0;
case "S":return soz(F,W,E,d,V);case "h":case "K":case "H":case "k":return W=KB(F,W,E,h,d,function(M){V.hours=h.text.charAt(0)==="h"&&M===12?0:M},R),R?W:!0;
case "m":return W=KB(F,W,E,h,d,function(M){V.minutes=M},R),R?W:!0;
case "s":return KB(F,W,E,h,d,function(M){V.seconds=M}),!0;
case "z":case "Z":case "v":return LJu(F,W,E,V);default:return!1}},Agi=function(F,W,E,h,d,V){var R=E[0];
d=Fx(F,W,E,d);d===null&&(d=Fx(F,W,E,0,!0));if(d===null)return!1;d>=0&&E[0]-R==2&&h.count==2?(F=d,W=(new Date).getFullYear()-80,E=W%100,V.ambiguousYear=F==E,F+=Math.floor(W/100)*100+(F<E?100:0),V.year=F):V.year=d;return!0},kBp=function(F,W,E,h,d,V){return d.numeric&&KB(F,W,E,d,h,function(R){V.month=R-1})?!0:mM(W,E,[F.JSC$9223_dateTimeSymbols_.MONTHS,
F.JSC$9223_dateTimeSymbols_.STANDALONEMONTHS,F.JSC$9223_dateTimeSymbols_.SHORTMONTHS,F.JSC$9223_dateTimeSymbols_.STANDALONESHORTMONTHS],function(R){V.month=R})},soz=function(F,W,E,h,d){var V=E[0];
F=Fx(F,W,E,h);if(F===null)return!1;E=E[0]-V;d.milliseconds=E<3?F*Math.pow(10,3-E):Math.round(F/Math.pow(10,E-3));return!0},LJu=function(F,W,E,h){W.indexOf("GMT",E[0])==E[0]&&(E[0]+=3);
if(E[0]>=W.length)return h.tzOffset=0,!0;var d=E[0],V=Fx(F,W,E,0,!0);if(V===null)return!1;if(E[0]<W.length&&W.charAt(E[0])==":"){var R=V*60;E[0]++;V=Fx(F,W,E,0);if(V===null)return!1;R+=V}else R=V,R=R<24&&E[0]-d<=3?R*60:R%100+R/100*60;h.tzOffset=-R;return!0},KB=function(F,W,E,h,d,V,R){R=R||!1;
var M=E[0];F=Fx(F,W,E,d);if(F===null)return!1;if(R&&E[0]-M<h.count){if(E[0]<W.length)return!1;F*=Math.pow(10,h.count-(E[0]-M))}V(F);return!0},mM=function(F,W,E,h,d){d=d||!1;
for(var V,R=0;R<E.length;R++){V=W;for(var M=E[R],g=d,t=0,C=null,B=F.substring(V[0]).toLowerCase(),I=0;I<M.length;I++){var x=M[I].toLowerCase();if(g&&x.indexOf(B)==0){t=B.length;C=I;break}M[I].length>t&&B.indexOf(x)==0&&(t=M[I].length,C=I)}C!==null&&(V[0]+=t);V=C;if(V!==null)return h(V),!0}return!1},Dz_=function(F,W){(F=F.substring(W[0]).match(vuu))&&(W[0]+=F[0].length)},Fx=function(F,W,E,h,d){W=h>0?W.substring(0,E[0]+h):W;
d=d||!1;if(F.JSC$9223_dateTimeSymbols_.ZERODIGIT){h=[];for(var V=E[0];V<W.length;V++){var R=W.charCodeAt(V)-F.JSC$9223_dateTimeSymbols_.ZERODIGIT;h.push(0<=R&&R<=9?String.fromCharCode(R+48):W.charAt(V))}W=h.join("")}else W=W.substring(E[0]);F=W.match(new RegExp("^"+(d?"[+-]?":"")+"\\d+"));if(!F)return null;E[0]+=F[0].length;return parseInt(F[0],10)},cgp=function(){};
cgp.prototype.ambiguousYear=!1;_.qhX={DAY:{LONG:"one{# day}other{# days}",SHORT:"one{# day}other{# days}",NARROW:"one{#d}other{#d}"},HOUR:{LONG:"one{# hour}other{# hours}",SHORT:"one{# hr}other{# hr}",NARROW:"one{#h}other{#h}"},MINUTE:{LONG:"one{# minute}other{# minutes}",SHORT:"one{# min}other{# min}",NARROW:"one{#m}other{#m}"},MONTH:{LONG:"one{# month}other{# months}",SHORT:"one{# mth}other{# mths}",NARROW:"one{#m}other{#m}"},SECOND:{LONG:"one{# second}other{# seconds}",SHORT:"one{# sec}other{# sec}",NARROW:"one{#s}other{#s}"},
WEEK:{LONG:"one{# week}other{# weeks}",SHORT:"one{# wk}other{# wks}",NARROW:"one{#w}other{#w}"},YEAR:{LONG:"one{# year}other{# years}",SHORT:"one{# yr}other{# yrs}",NARROW:"one{#y}other{#y}"}};var $zB={DECIMAL_SEP:".",GROUP_SEP:",",PERCENT:"%",ZERO_DIGIT:"0",PLUS_SIGN:"+",MINUS_SIGN:"-",EXP_SYMBOL:"E",PERMILL:"\u2030",INFINITY:"\u221e",NAN:"NaN",DECIMAL_PATTERN:"#,##0.###",SCIENTIFIC_PATTERN:"#E0",PERCENT_PATTERN:"#,##0%",CURRENCY_PATTERN:"\u00a4#,##0.00",DEF_CURRENCY_CODE:"USD"},Zfe=$zB,XBe=$zB;XBe=Zfe=$zB;var PbH,Wi,hj,i4k,EP,Hf_;
_.yz=function(F,W,E,h){var d;if(d=W){a:if(W&&W.length===3){for(d=0;d<3;d++){var V=W[d];if(V<"A"||V>"Z"&&V<"a"||V>"z"){d=!1;break a}}d=!0}else d=!1;d=!d}if(d)throw new TypeError("ae");this.intlCurrencyCode_=W?W.toUpperCase():null;this.currencyStyle_=E||0;this.overrideNumberFormatSymbols_=h||null;this.maximumIntegerDigits_=40;this.minimumIntegerDigits_=1;this.significantDigits_=0;this.maximumFractionDigits_=3;this.minExponentDigits_=this.minimumFractionDigits_=0;this.useSignForPositiveExponent_=!1;
this.positiveSuffix_=this.positivePrefix_="";this.negativePrefix_=Wi(this).MINUS_SIGN;this.negativeSuffix_="";this.multiplier_=1;this.negativePercentSignExpected_=!1;this.groupingArray_=[];this.useExponentialNotation_=this.decimalSeparatorAlwaysShown_=!1;this.compactStyle_=0;if(typeof F==="number")switch(F){case 1:EP(this,Wi(this).DECIMAL_PATTERN);break;case 2:EP(this,Wi(this).SCIENTIFIC_PATTERN);break;case 3:EP(this,Wi(this).PERCENT_PATTERN);break;case 4:F=Wi(this).CURRENCY_PATTERN;W=["0"];if(E=
wp[hj(this)]){E=E[0]&7;if(E>0)for(W.push("."),h=0;h<E;h++)W.push("0");F=F.replace(/0.00/g,W.join(""))}EP(this,F);break;case 5:Hf_(this,1);break;case 6:Hf_(this,2);break;default:throw Error("de");}else EP(this,F)};
PbH=!1;Wi=function(F){return F.overrideNumberFormatSymbols_||(PbH?XBe:Zfe)};
hj=function(F){return F.intlCurrencyCode_||Wi(F).DEF_CURRENCY_CODE};
i4k=function(F,W){if(W>308)throw Error("ce`"+W);F.maximumFractionDigits_=W;return F};
EP=function(F,W){var E=[0];F.positivePrefix_=Jge(F,W,E);for(var h=E[0],d=-1,V=0,R=0,M=0,g=-1,t=W.length,C=!0;E[0]<t&&C;E[0]++)switch(W.charAt(E[0])){case "#":R>0?M++:V++;g>=0&&d<0&&g++;break;case "0":if(M>0)throw Error("je`"+W);R++;g>=0&&d<0&&g++;break;case ",":g>0&&F.groupingArray_.push(g);g=0;break;case ".":if(d>=0)throw Error("ke`"+W);d=V+R+M;break;case "E":if(F.useExponentialNotation_)throw Error("le`"+W);F.useExponentialNotation_=!0;F.minExponentDigits_=0;E[0]+1<t&&W.charAt(E[0]+1)=="+"&&(E[0]++,
F.useSignForPositiveExponent_=!0);for(;E[0]+1<t&&W.charAt(E[0]+1)=="0";)E[0]++,F.minExponentDigits_++;if(V+R<1||F.minExponentDigits_<1)throw Error("me`"+W);C=!1;break;default:E[0]--,C=!1}R==0&&V>0&&d>=0&&(R=d,R==0&&R++,M=V-R,V=R-1,R=1);if(d<0&&M>0||d>=0&&(d<V||d>V+R)||g==0)throw Error("ne`"+W);M=V+R+M;F.maximumFractionDigits_=d>=0?M-d:0;d>=0&&(F.minimumFractionDigits_=V+R-d,F.minimumFractionDigits_<0&&(F.minimumFractionDigits_=0));F.minimumIntegerDigits_=(d>=0?d:M)-V;F.useExponentialNotation_&&(F.maximumIntegerDigits_=
V+F.minimumIntegerDigits_,F.maximumFractionDigits_==0&&F.minimumIntegerDigits_==0&&(F.minimumIntegerDigits_=1));F.groupingArray_.push(Math.max(0,g));F.decimalSeparatorAlwaysShown_=d==0||d==M;h=E[0]-h;F.positiveSuffix_=Jge(F,W,E);E[0]<W.length&&W.charAt(E[0])==";"?(E[0]++,F.multiplier_!=1&&(F.negativePercentSignExpected_=!0),F.negativePrefix_=Jge(F,W,E),E[0]+=h,F.negativeSuffix_=Jge(F,W,E)):(F.negativePrefix_+=F.positivePrefix_,F.negativeSuffix_+=F.positiveSuffix_)};
Hf_=function(F,W){F.compactStyle_=W;EP(F,Wi(F).DECIMAL_PATTERN);F.minimumFractionDigits_=0;i4k(F,2);if(F.minimumFractionDigits_>0)throw Error("be");F.significantDigits_=2};
_.yz.prototype.parse=function(F,W){W=W||[0];if(this.compactStyle_!==0)throw Error("ee");F=F.replace(/ |\u202f/g,"\u00a0");var E=F.indexOf(this.positivePrefix_,W[0])==W[0],h=F.indexOf(this.negativePrefix_,W[0])==W[0];E&&h&&(this.positivePrefix_.length>this.negativePrefix_.length?h=!1:this.positivePrefix_.length<this.negativePrefix_.length&&(E=!1));E?W[0]+=this.positivePrefix_.length:h&&(W[0]+=this.negativePrefix_.length);if(F.indexOf(Wi(this).INFINITY,W[0])==W[0]){W[0]+=Wi(this).INFINITY.length;var d=
Infinity}else{d=F;var V=!1,R=!1,M=!1,g=-1,t=1,C=Wi(this).DECIMAL_SEP,B=Wi(this).GROUP_SEP,I=Wi(this).EXP_SYMBOL;if(this.compactStyle_!=0)throw Error("fe");B=B.replace(/\u202f/g,"\u00a0");for(var x="";W[0]<d.length;W[0]++){var A=d.charAt(W[0]),X=aPa(this,A);if(X>=0&&X<=9)x+=X,M=!0;else if(A==C.charAt(0)){if(V||R)break;x+=".";V=!0}else if(A==B.charAt(0)&&("\u00a0"!=B.charAt(0)||W[0]+1<d.length&&aPa(this,d.charAt(W[0]+1))>=0)){if(V||R)break}else if(A==I.charAt(0)){if(R)break;x+="E";R=!0;g=W[0]}else if(A==
"+"||A=="-"){if(M&&g!=W[0]-1)break;x+=A}else if(this.multiplier_==1&&A==Wi(this).PERCENT.charAt(0)){if(t!=1)break;t=100;if(M){W[0]++;break}}else if(this.multiplier_==1&&A==Wi(this).PERMILL.charAt(0)){if(t!=1)break;t=1E3;if(M){W[0]++;break}}else break}this.multiplier_!=1&&(t=this.multiplier_);d=parseFloat(x)/t}if(E){if(F.indexOf(this.positiveSuffix_,W[0])!=W[0])return NaN;W[0]+=this.positiveSuffix_.length}else if(h){if(F.indexOf(this.negativeSuffix_,W[0])!=W[0])return NaN;W[0]+=this.negativeSuffix_.length}return h?
-d:d};
_.yz.prototype.format=function(F){if(this.minimumFractionDigits_>this.maximumFractionDigits_)throw Error("ge");if(isNaN(F))return Wi(this).NAN;var W=[];var E=F;if(this.compactStyle_==0)E=dN;else{E=Math.abs(E);var h=fPu(this,E<=1?0:OfT(E)).divisorBase;E=fPu(this,h+OfT(bf_(this,Nd(E,-h)).intValue))}F=Nd(F,-E.divisorBase);(h=F<0||F==0&&1/F<0)?E.negative_prefix?W.push(E.negative_prefix):(W.push(E.prefix),W.push(this.negativePrefix_)):(W.push(E.prefix),W.push(this.positivePrefix_));if(isFinite(F))if(F*=
h?-1:1,F*=this.multiplier_,this.useExponentialNotation_){var d=F;if(d==0)lPi(this,d,this.minimumIntegerDigits_,W),nu_(this,0,W);else{var V=Math.floor(Math.log(d)/Math.log(10)+2E-15);d=Nd(d,-V);var R=this.minimumIntegerDigits_;this.maximumIntegerDigits_>1&&this.maximumIntegerDigits_>this.minimumIntegerDigits_?(R=V%this.maximumIntegerDigits_,R<0&&(R=this.maximumIntegerDigits_+R),d=Nd(d,R),V-=R,R=1):this.minimumIntegerDigits_<1?(V++,d=Nd(d,-1)):(V-=this.minimumIntegerDigits_-1,d=Nd(d,this.minimumIntegerDigits_-
1));lPi(this,d,R,W);nu_(this,V,W)}}else lPi(this,F,this.minimumIntegerDigits_,W);else W.push(Wi(this).INFINITY);h?E.negative_suffix?W.push(E.negative_suffix):(isFinite(F)&&W.push(E.suffix),W.push(this.negativeSuffix_)):(isFinite(F)&&W.push(E.suffix),W.push(this.positiveSuffix_));return W.join("")};
var bf_=function(F,W){var E=Nd(W,F.maximumFractionDigits_);F.significantDigits_>0&&(E=yge(E,F.significantDigits_,F.maximumFractionDigits_));E=Math.round(E);if(isFinite(E)){var h=Math.floor(Nd(E,-F.maximumFractionDigits_));E=Math.floor(E-Nd(h,F.maximumFractionDigits_));if(E<0||E>=Nd(1,F.maximumFractionDigits_))h=Math.round(W),E=0}else h=W,E=0;return{intValue:h,fracValue:E}},lPi=function(F,W,E,h){if(F.minimumFractionDigits_>F.maximumFractionDigits_)throw Error("ge");
h||(h=[]);W=bf_(F,W);var d=W.intValue,V=W.fracValue,R=F.minimumFractionDigits_>0||V>0||!1;W=F.minimumFractionDigits_;R&&(W=F.minimumFractionDigits_);for(var M="",g=d;g>1E20;)M="0"+M,g=Math.round(Nd(g,-1));M=g+M;var t=Wi(F).DECIMAL_SEP;g=Wi(F).ZERO_DIGIT.codePointAt(0);var C=M.length,B=0;if(d>0||E>0){for(d=C;d<E;d++)h.push(String.fromCodePoint(g));if(F.groupingArray_.length>=2)for(E=1;E<F.groupingArray_.length;E++)B+=F.groupingArray_[E];E=C-B;if(E>0){d=F.groupingArray_;B=C=0;for(var I,x=Wi(F).GROUP_SEP,
A=M.length,X=0;X<A;X++)if(h.push(String.fromCodePoint(g+Number(M.charAt(X)))),A-X>1)if(I=d[B],X<E){var P=E-X;(I===1||I>0&&P%I===1)&&h.push(x)}else B<d.length&&(X===E?B+=1:I===X-E-C+1&&(h.push(x),C+=I,B+=1))}else{E=M;M=F.groupingArray_;d=Wi(F).GROUP_SEP;I=E.length;x=[];for(C=M.length-1;C>=0&&I>0;C--){B=M[C];for(A=0;A<B&&I-A-1>=0;A++)x.push(String.fromCodePoint(g+Number(E.charAt(I-A-1))));I-=B;I>0&&x.push(d)}h.push.apply(h,x.reverse())}}else R||h.push(String.fromCodePoint(g));(F.decimalSeparatorAlwaysShown_||
R)&&h.push(t);V=String(V);R=V.split("e+");R.length==2&&(V=String(yge(parseFloat(R[0]),F.significantDigits_,1)),V=V.replace(".",""),V+=(0,_.Jre)("0",parseInt(R[1],10)-V.length+1));F.maximumFractionDigits_+1>V.length&&(V="1"+(0,_.Jre)("0",F.maximumFractionDigits_-V.length)+V);for(F=V.length;V.charAt(F-1)=="0"&&F>W+1;)F--;for(W=1;W<F;W++)h.push(String.fromCodePoint(g+Number(V.charAt(W))))},nu_=function(F,W,E){E.push(Wi(F).EXP_SYMBOL);
W<0?(W=-W,E.push(Wi(F).MINUS_SIGN)):F.useSignForPositiveExponent_&&E.push(Wi(F).PLUS_SIGN);W=""+W;for(var h=Wi(F).ZERO_DIGIT,d=W.length;d<F.minExponentDigits_;d++)E.push(h);F=h.codePointAt(0)-joa;for(h=0;h<W.length;h++)E.push(String.fromCodePoint(F+W.codePointAt(h)))},aPa=function(F,W){W=W.codePointAt(0);
if(48<=W&&W<58)return W-48;F=Wi(F).ZERO_DIGIT.codePointAt(0);return F<=W&&W<F+10?W-F:-1},joa="0".codePointAt(0),Jge=function(F,W,E){for(var h="",d=!1,V=W.length;E[0]<V;E[0]++){var R=W.charAt(E[0]);
if(R=="'")E[0]+1<V&&W.charAt(E[0]+1)=="'"?(E[0]++,h+="'"):d=!d;else if(d)h+=R;else switch(R){case "#":case "0":case ",":case ".":case ";":return h;case "\u00a4":if(E[0]+1<V&&W.charAt(E[0]+1)=="\u00a4")E[0]++,h+=hj(F);else switch(F.currencyStyle_){case 0:R=hj(F);h+=R in wp?wp[R][1]:R;break;case 2:R=hj(F);var M=wp[R];h+=M?R==M[1]?R:R+" "+M[1]:R;break;case 1:R=hj(F),h+=R in wp?wp[R][2]:R}break;case "%":if(!F.negativePercentSignExpected_&&F.multiplier_!=1)throw Error("he");if(F.negativePercentSignExpected_&&
F.multiplier_!=100)throw Error("ie");F.multiplier_=100;F.negativePercentSignExpected_=!1;h+=Wi(F).PERCENT;break;case "\u2030":if(!F.negativePercentSignExpected_&&F.multiplier_!=1)throw Error("he");if(F.negativePercentSignExpected_&&F.multiplier_!=1E3)throw Error("ie");F.multiplier_=1E3;F.negativePercentSignExpected_=!1;h+=Wi(F).PERMILL;break;default:h+=R}}return h},dN={divisorBase:0,
negative_prefix:"",negative_suffix:"",prefix:"",suffix:""},fPu=function(F,W){F=F.compactStyle_==1?Y4.COMPACT_DECIMAL_SHORT_PATTERN:Y4.COMPACT_DECIMAL_LONG_PATTERN;F==null&&(F=Y4.COMPACT_DECIMAL_SHORT_PATTERN);if(W<3)return dN;W=Math.min(14,W);var E=F[Nd(1,W)];for(--W;!E&&W>=3;)E=F[Nd(1,W)],W--;if(!E)return dN;E=E.other;var h=F="",d=E.indexOf(";");d>=0&&(E=E.substring(0,d),d=E.substring(d+1))&&(h=/([^0]*)(0+)(.*)/.exec(d),F=h[1],h=h[3]);return E&&E!="0"?(E=/([^0]*)(0+)(.*)/.exec(E))?{divisorBase:W+
1-(E[2].length-1),negative_prefix:F,negative_suffix:h,prefix:E[1],suffix:E[3]}:dN:dN},OfT=function(F){if(!isFinite(F))return F>0?F:0;
for(var W=0;(F/=10)>=1;)W++;return W},Nd=function(F,W){if(!F||!isFinite(F)||W==0)return F;
F=String(F).split("e");return parseFloat(F[0]+"e"+(parseInt(F[1]||0,10)+W))},ifi=function(F,W){return F&&isFinite(F)?Nd(Math.round(Nd(F,W)),-W):F},yge=function(F,W,E){if(!F)return F;
W=W-OfT(F)-1;return W<-E?ifi(F,-E):ifi(F,W)};var rgH=function(F){return F%10==1&&F%100!=11?"one":F%10==2&&F%100!=12?"two":F%10==3&&F%100!=13?"few":"other"},T2c=rgH;
T2c=rgH;var ouB;ouB=function(F,W){var E=F|0;if(void 0===W){W=Math;var h=W.min,d=F+"",V=d.indexOf(".");W=h.call(W,V===-1?0:d.length-V-1,3)}h=Math.pow(10,W);F={v:W,f:(F*h|0)%h};return E==1&&F.v==0?"one":"other"};
_.ox=ouB;_.ox=ouB;var GBz,YhU,wB_,ShH,pB_;_.uCX=function(F){this.JSC$9266_pattern_=F;this.parsedPattern_=this.literals_=this.initialLiterals_=null;F=Zfe;var W=Y4;if(GBz!==F||YhU!==W)GBz=F,YhU=W,wB_=new _.yz(1);this.numberFormatter_=wB_};
GBz=null;YhU=null;wB_=null;ShH=RegExp("'([{}#].*?)'","g");pB_=RegExp("''","g");
_.uCX.prototype.format=function(F){if(this.JSC$9266_pattern_){this.initialLiterals_=[];var W=mzz(this,this.JSC$9266_pattern_);this.parsedPattern_=KJ_(this,W);this.JSC$9266_pattern_=null}if(this.parsedPattern_&&this.parsedPattern_.length!=0)for(this.literals_=_.Kb(this.initialLiterals_),W=[],FVH(this,this.parsedPattern_,F,!1,W),F=W.join("");this.literals_.length>0;)F=F.replace(this.buildPlaceholder_(this.literals_),String(this.literals_.pop()).replace("$","$$$$"));else F="";return F};
var FVH=function(F,W,E,h,d){for(var V=0;V<W.length;V++)switch(W[V].type){case 4:d.push(W[V].value);break;case 3:var R=W[V].value;var M=F,g=d,t=E[R];t===void 0?g.push("Undefined parameter - "+R):(M.literals_.push(t),g.push(M.buildPlaceholder_(M.literals_)));break;case 2:R=W[V].value;M=F;g=E;t=h;var C=d,B=R.argumentIndex;g[B]===void 0?C.push("Undefined parameter - "+B):(B=R[g[B]],B===void 0&&(B=R.other),FVH(M,B,g,t,C));break;case 0:R=W[V].value;WVc(F,R,E,_.ox,h,d);break;case 1:R=W[V].value,WVc(F,R,
E,T2c,h,d)}},WVc=function(F,W,E,h,d,V){var R=W.argumentIndex,M=W.argumentOffset,g=+E[R];
isNaN(g)?V.push("Undefined or invalid parameter - "+R):(M=g-M,R=W[E[R]],R===void 0&&(h=h(Math.abs(M)),R=W[h],R===void 0&&(R=W.other)),W=[],FVH(F,R,E,d,W),E=W.join(""),d?V.push(E):(F=F.numberFormatter_.format(M),V.push(E.replace(/#/g,F))))},mzz=function(F,W){var E=F.initialLiterals_,h=F.buildPlaceholder_.bind(F);
W=W.replace(pB_,function(){E.push("'");return h(E)});
return W=W.replace(ShH,function(d,V){E.push(V);return h(E)})},E3T=function(F){var W=0,E=[],h=[],d=/[{}]/g;
d.lastIndex=0;for(var V;V=d.exec(F);){var R=V.index;V[0]=="}"?(E.pop(),E.length==0&&(V={type:1},V.value=F.substring(W,R),h.push(V),W=R+1)):(E.length==0&&(W=F.substring(W,R),W!=""&&h.push({type:0,value:W}),W=R+1),E.push("{"))}F=F.substring(W);F!=""&&h.push({type:0,value:F});return h},hzM=/^\s*(\w+)\s*,\s*plural\s*,(?:\s*offset:(\d+))?/,d3M=/^\s*(\w+)\s*,\s*selectordinal\s*,/,NQa=/^\s*(\w+)\s*,\s*select\s*,/,KJ_=function(F,W){var E=[];
W=E3T(W);for(var h=0;h<W.length;h++){var d={};if(0==W[h].type)d.type=4,d.value=W[h].value;else if(1==W[h].type){var V=W[h].value;switch(hzM.test(V)?0:d3M.test(V)?1:NQa.test(V)?2:/^\s*\w+\s*/.test(V)?3:5){case 2:d.type=2;d.value=Va_(F,W[h].value);break;case 0:d.type=0;d.value=U3T(F,W[h].value);break;case 1:d.type=1;d.value=Rze(F,W[h].value);break;case 3:d.type=3,d.value=W[h].value}}E.push(d)}return E},Va_=function(F,W){var E="";
W=W.replace(NQa,function(M,g){E=g;return""});
var h={};h.argumentIndex=E;W=E3T(W);for(var d=0;d<W.length;){var V=W[d].value;d++;var R=void 0;1==W[d].type&&(R=KJ_(F,W[d].value));h[V.replace(/\s/g,"")]=R;d++}return h},U3T=function(F,W){var E="",h=0;
W=W.replace(hzM,function(g,t,C){E=t;C&&(h=parseInt(C,10));return""});
var d={};d.argumentIndex=E;d.argumentOffset=h;W=E3T(W);for(var V=0;V<W.length;){var R=W[V].value;V++;var M=void 0;1==W[V].type&&(M=KJ_(F,W[V].value));d[R.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=M;V++}return d},Rze=function(F,W){var E="";
W=W.replace(d3M,function(M,g){E=g;return""});
var h={};h.argumentIndex=E;h.argumentOffset=0;W=E3T(W);for(var d=0;d<W.length;){var V=W[d].value;d++;var R=void 0;1==W[d].type&&(R=KJ_(F,W[d].value));h[V.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=R;d++}return h};
_.uCX.prototype.buildPlaceholder_=function(F){return"\ufddf_"+(F.length-1).toString(10)+"_"};var eze;
eze={DAY:{LONG:{R:{"-1":"yesterday",0:"today",1:"tomorrow"},P:"one{# day ago}other{# days ago}",F:"one{in # day}other{in # days}"},NARROW:{R:{"-1":"yesterday",0:"today",1:"tomorrow"},P:"one{#d ago}other{#d ago}",F:"one{in #d}other{in #d}"}},HOUR:{LONG:{R:{0:"this hour"},P:"one{# hour ago}other{# hours ago}",F:"one{in # hour}other{in # hours}"},SHORT:{R:{0:"this hour"},P:"one{# hr. ago}other{# hr. ago}",F:"one{in # hr.}other{in # hr.}"},NARROW:{R:{0:"this hour"},P:"one{#h ago}other{#h ago}",F:"one{in #h}other{in #h}"}},
MINUTE:{LONG:{R:{0:"this minute"},P:"one{# minute ago}other{# minutes ago}",F:"one{in # minute}other{in # minutes}"},SHORT:{R:{0:"this minute"},P:"one{# min. ago}other{# min. ago}",F:"one{in # min.}other{in # min.}"},NARROW:{R:{0:"this minute"},P:"one{#m ago}other{#m ago}",F:"one{in #m}other{in #m}"}},MONTH:{LONG:{R:{"-1":"last month",0:"this month",1:"next month"},P:"one{# month ago}other{# months ago}",F:"one{in # month}other{in # months}"},SHORT:{R:{"-1":"last mo.",0:"this mo.",1:"next mo."},P:"one{# mo. ago}other{# mo. ago}",
F:"one{in # mo.}other{in # mo.}"},NARROW:{R:{"-1":"last mo.",0:"this mo.",1:"next mo."},P:"one{#mo ago}other{#mo ago}",F:"one{in #mo}other{in #mo}"}},QUARTER:{LONG:{R:{"-1":"last quarter",0:"this quarter",1:"next quarter"},P:"one{# quarter ago}other{# quarters ago}",F:"one{in # quarter}other{in # quarters}"},SHORT:{R:{"-1":"last qtr.",0:"this qtr.",1:"next qtr."},P:"one{# qtr. ago}other{# qtrs. ago}",F:"one{in # qtr.}other{in # qtrs.}"},NARROW:{R:{"-1":"last qtr.",0:"this qtr.",1:"next qtr."},P:"one{#q ago}other{#q ago}",
F:"one{in #q}other{in #q}"}},SECOND:{LONG:{R:{0:"now"},P:"one{# second ago}other{# seconds ago}",F:"one{in # second}other{in # seconds}"},SHORT:{R:{0:"now"},P:"one{# sec. ago}other{# sec. ago}",F:"one{in # sec.}other{in # sec.}"},NARROW:{R:{0:"now"},P:"one{#s ago}other{#s ago}",F:"one{in #s}other{in #s}"}},WEEK:{LONG:{R:{"-1":"last week",0:"this week",1:"next week"},P:"one{# week ago}other{# weeks ago}",F:"one{in # week}other{in # weeks}"},SHORT:{R:{"-1":"last wk.",0:"this wk.",1:"next wk."},P:"one{# wk. ago}other{# wk. ago}",
F:"one{in # wk.}other{in # wk.}"},NARROW:{R:{"-1":"last wk.",0:"this wk.",1:"next wk."},P:"one{#w ago}other{#w ago}",F:"one{in #w}other{in #w}"}},YEAR:{LONG:{R:{"-1":"last year",0:"this year",1:"next year"},P:"one{# year ago}other{# years ago}",F:"one{in # year}other{in # years}"},SHORT:{R:{"-1":"last yr.",0:"this yr.",1:"next yr."},P:"one{# yr. ago}other{# yr. ago}",F:"one{in # yr.}other{in # yr.}"},NARROW:{R:{"-1":"last yr.",0:"this yr.",1:"next yr."},P:"one{#y ago}other{#y ago}",F:"one{in #y}other{in #y}"}}};var eIb=function(){this.rdtfSymbols_=Mae||eze;this.alwaysNumeric_=this.alwaysNumeric_=!0;this.style_=0};
eIb.prototype.format=function(F,W){a:{W=g3H(this,W);switch(this.style_){case 2:if(W.NARROW!=void 0){W=W.NARROW;break a}case 1:if(W.SHORT!=void 0){W=W.SHORT;break a}default:W=W.LONG;break a}W=void 0}if(!this.alwaysNumeric_&&W&&W.R&&W.R[""+F])F=W.R[""+F];else if(W){var E=Math.abs(F);F=(new _.uCX("{N,plural,"+(F>0||F==0&&1/F==Infinity?W.F:W.P)+"}")).format({N:E})}else F="";return F};
var g3H=function(F,W){switch(W){default:case 0:return F.rdtfSymbols_.YEAR;case 1:return F.rdtfSymbols_.QUARTER;case 2:return F.rdtfSymbols_.MONTH;case 3:return F.rdtfSymbols_.WEEK;case 4:return F.rdtfSymbols_.DAY;case 5:return F.rdtfSymbols_.HOUR;case 6:return F.rdtfSymbols_.MINUTE;case 7:return F.rdtfSymbols_.SECOND}};var Q4c=function(F,W,E,h,d,V,R,M){this.x0=F;this.y0=W;this.x1=E;this.y1=h;this.x2=d;this.y2=V;this.x3=R;this.y3=M};
Q4c.prototype.clone=function(){return new Q4c(this.x0,this.y0,this.x1,this.y1,this.x2,this.y2,this.x3,this.y3)};
Q4c.prototype.equals=function(F){return this.x0==F.x0&&this.y0==F.y0&&this.x1==F.x1&&this.y1==F.y1&&this.x2==F.x2&&this.y2==F.y2&&this.x3==F.x3&&this.y3==F.y3};
var zza=function(F,W){if(W==0)return F.x0;if(W==1)return F.x3;var E=Z9(F.x0,F.x1,W),h=Z9(F.x1,F.x2,W);F=Z9(F.x2,F.x3,W);E=Z9(E,h,W);h=Z9(h,F,W);return Z9(E,h,W)},tai=function(F,W){var E=(W-F.x0)/(F.x3-F.x0);
if(E<=0)return 0;if(E>=1)return 1;for(var h=0,d=1,V=0,R=0;R<8;R++){V=zza(F,E);var M=(zza(F,E+1E-6)-V)/1E-6;if(Math.abs(V-W)<1E-6)return E;if(Math.abs(M)<1E-6)break;else V<W?h=E:d=E,E-=(V-W)/M}for(R=0;Math.abs(V-W)>1E-6&&R<8;R++)V<W?(h=E,E=(E+d)/2):(d=E,E=(E+h)/2),V=zza(F,E);return E};var Vf=function(){_.qo.call(this);this.JSC$9287_name_="closure_frame"+C1O++;this.iframesForDisposal_=[];BQe[this.JSC$9287_name_]=this},UP;
_.Ma(Vf,_.qo);var BQe={},C1O=0,v3a=function(F,W){var E=gn(F);_.fqe(W,function(h,d){Array.isArray(h)||(h=[h]);_.Tk(h,function(V){V=E.JSC$7233_createDom("INPUT",{type:"hidden",name:d,value:V});F.appendChild(V)})})};
_.N=Vf.prototype;_.N.JSC$9289_form_=null;_.N.JSC$9289_iframe_=null;_.N.iframeName_=null;_.N.nextIframeId_=0;_.N.JSC$9289_active_=!1;_.N.complete_=!1;_.N.success_=!1;_.N.lastContent_=null;_.N.JSC$9289_lastErrorCode_=0;_.N.iframeDisposalTimer_=null;
_.N.send=function(F,W,E,h){if(this.JSC$9289_active_)throw Error("oe");F=new _.Yx(F);W=W?W.toUpperCase():"GET";E&&_.zU(F);UP||(UP=_.Jk("FORM"),UP.acceptCharset="utf-8",E=UP.style,E.position="absolute",E.visibility="hidden",E.top=E.left="-10px",E.width=E.height="10px",E.overflow="hidden",document.body.appendChild(UP));this.JSC$9289_form_=UP;W=="GET"&&v3a(this.JSC$9289_form_,F.JSC$7936_queryData_);h&&v3a(this.JSC$9289_form_,h);E=F.toString();E=m6Y(E);h=this.JSC$9289_form_;E=_.Ay(QK(E));E!==void 0&&(h.action=
E);this.JSC$9289_form_.method=W;IGe(this);cTB(this)};
_.N.abort=function(F){if(this.JSC$9289_active_){var W=Rq(this);if(W)if(Ah(W))W.removeAllListeners(void 0);else if(W=ss(W)){var E=0,h;for(h in W.listeners)for(var d=W.listeners[h].concat(),V=0;V<d.length;++V)Be(d[V])&&++E}this.success_=this.JSC$9289_active_=this.complete_=!1;this.JSC$9289_lastErrorCode_=F||7;this.dispatchEvent("abort");D3_(this)}};
_.N.disposeInternal=function(){this.JSC$9289_active_&&this.abort();Vf.superClass_.disposeInternal.call(this);this.JSC$9289_iframe_&&x3z(this);cTB(this);this.JSC$9289_form_=null;delete this.errorChecker_;this.lastContent_=this.JSC$9289_form_=null;this.JSC$9289_lastErrorCode_=0;delete BQe[this.JSC$9287_name_]};
_.N.isComplete=function(){return this.complete_};
_.N.isSuccess=function(){return this.success_};
_.N.isActive=function(){return this.JSC$9289_active_};
_.N.getResponseText=function(){return this.lastContent_};
_.N.getLastError=function(){return _.QS_(this.JSC$9289_lastErrorCode_)};
var IGe=function(F){F.JSC$9289_active_=!0;F.complete_=!1;F.JSC$9289_lastErrorCode_=0;F.iframeName_=F.JSC$9287_name_+"_"+(F.nextIframeId_++).toString(36);F.JSC$9289_iframe_=gn(F.JSC$9289_form_).JSC$7233_createDom("IFRAME",{name:F.iframeName_,id:F.iframeName_});var W=F.JSC$9289_iframe_.style;W.visibility="hidden";W.width=W.height="10px";W.display="none";_.BY?W.marginTop=W.marginLeft="-10px":(W.position="absolute",W.top=W.left="-10px");gn(F.JSC$9289_form_).JSC$7231_document_.body.appendChild(F.JSC$9289_iframe_);
W=F.iframeName_+"_inner";var E=WgB(F.JSC$9289_iframe_);if(document.baseURI){var h=eb(W);h='<head><base href="'+eb(document.baseURI)+'"></head><body><iframe id="'+h+'" name="'+h+'"></iframe>';h=$w(h)}else h=eb(W),h=$w('<body><iframe id="'+h+'" name="'+h+'"></iframe>');E.write(X3(h));_.ce(E.getElementById(W),"load",F.onIframeLoaded_,!1,F);h=vb("TEXTAREA",F.JSC$9289_form_);for(var d=0,V=h.length;d<V;d++){var R=h[d].value;UFp(h[d])!=R&&(_.yB(h[d],R),h[d].value=R)}h=E.importNode(F.JSC$9289_form_,!0);h.target=
W;h.action=F.JSC$9289_form_.action;E.body.appendChild(h);d=vb("SELECT",F.JSC$9289_form_);V=vb("SELECT",h);R=0;for(var M=d.length;R<M;R++)for(var g=vb("OPTION",d[R]),t=vb("OPTION",V[R]),C=0,B=g.length;C<B;C++)t[C].selected=g[C].selected;d=vb("INPUT",F.JSC$9289_form_);V=vb("INPUT",h);R=0;for(M=d.length;R<M;R++)if(d[R].type=="file"&&d[R].value!=V[R].value){F.JSC$9289_form_.target=W;h=F.JSC$9289_form_;break}try{F.errorHandled_=!1,h.submit(),E.close(),_.Cc&&setTimeout(F.testForFirefoxSilentError_.bind(F),
250)}catch(I){_.LP(E.getElementById(W),"load",F.onIframeLoaded_,!1,F),E.close(),eM(F,2)}};
Vf.prototype.onIframeLoaded_=function(){_.LP(Rq(this),"load",this.onIframeLoaded_,!1,this);try{var F=this.JSC$9289_iframe_?WgB(Rq(this)):null;this.complete_=!0;this.JSC$9289_active_=!1;try{var W=F.body;this.lastContent_=W.textContent||W.innerText}catch(d){var E=1}var h;E||typeof this.errorChecker_!="function"||(h=this.errorChecker_(F))&&(E=4);E?eM(this,E):(this.success_=!0,this.JSC$9289_lastErrorCode_=0,this.dispatchEvent("complete"),this.dispatchEvent("success"),D3_(this))}catch(d){eM(this,1)}};
var eM=function(F,W){F.errorHandled_||(F.success_=!1,F.JSC$9289_active_=!1,F.complete_=!0,F.JSC$9289_lastErrorCode_=W,F.dispatchEvent("complete"),F.dispatchEvent("error"),D3_(F),F.errorHandled_=!0)},D3_=function(F){x3z(F);
cTB(F);F.JSC$9289_form_=null;F.dispatchEvent("ready")},x3z=function(F){var W=F.JSC$9289_iframe_;
W&&(W.onreadystatechange=null,W.onload=null,W.onerror=null,F.iframesForDisposal_.push(W));F.iframeDisposalTimer_&&(clearTimeout(F.iframeDisposalTimer_),F.iframeDisposalTimer_=null);_.Cc?F.iframeDisposalTimer_=setTimeout(F.disposeIframes_.bind(F),2E3):F.disposeIframes_();F.JSC$9289_iframe_=null;F.iframeName_=null};
Vf.prototype.disposeIframes_=function(){this.iframeDisposalTimer_&&(clearTimeout(this.iframeDisposalTimer_),this.iframeDisposalTimer_=null);for(;this.iframesForDisposal_.length!=0;){var F=this.iframesForDisposal_.pop();_.Bb(F)}};
var cTB=function(F){F.JSC$9289_form_&&F.JSC$9289_form_==UP&&_.On(F.JSC$9289_form_)},Rq=function(F){return F.JSC$9289_iframe_?WgB(F.JSC$9289_iframe_).getElementById(F.iframeName_+"_inner"):null};
Vf.prototype.testForFirefoxSilentError_=function(){if(this.JSC$9289_active_){var F=this.JSC$9289_iframe_?WgB(Rq(this)):null;F&&!$d(F,"documentUri")?(_.LP(Rq(this),"load",this.onIframeLoaded_,!1,this),navigator.onLine?eM(this,3):eM(this,9)):setTimeout(this.testForFirefoxSilentError_.bind(this),250)}};_.Md=function(F){return F=="\r"||F=="\n"||F==" "||F=="\t"};var kK_;_.gN=function(F){this.errorMessage_=null;this.result_=[];this.JSC$9291_buffer_="";this.stack_=[];this.JSC$9291_pos_=this.depth_=0;this.slashed_=!1;this.unicodeCount_=0;this.stringInputPattern_=/[\\"]/g;this.state_=this.streamState_=0;this.deliverMessageAsRawString_=!(!F||!F.deliverMessageAsRawString)};
kK_={INIT:0,VALUE:1,OBJECT_OPEN:2,OBJECT_END:3,ARRAY_OPEN:4,ARRAY_END:5,STRING:6,KEY_START:7,KEY_END:8,TRUE1:9,TRUE2:10,TRUE3:11,FALSE1:12,FALSE2:13,FALSE3:14,FALSE4:15,NULL1:16,NULL2:17,NULL3:18,NUM_DECIMAL_POINT:19,NUM_DIGIT:20};_.gN.prototype.isInputValid=function(){return this.streamState_!=3};
_.gN.prototype.done=function(){return this.streamState_===2};
var Qf=function(F,W,E){F.streamState_=3;F.errorMessage_="The stream is broken @"+F.JSC$9291_pos_+"/"+E+". With input:\n"+W;throw Error(F.errorMessage_);};
_.gN.prototype.acceptsBinaryInput=function(){return!1};
_.gN.prototype.parse=function(F){function W(){for(;I<F.length;)if(_.Md(F[I]))I++,V.JSC$9291_pos_++;else break;return I<t}
function E(){for(var A;;){A=F[I++];if(!A)break;V.JSC$9291_pos_++;switch(V.state_){case g.INIT:A==="{"?V.state_=g.OBJECT_OPEN:A==="["?V.state_=g.ARRAY_OPEN:_.Md(A)||Qf(V,F,I);continue;case g.KEY_START:case g.OBJECT_OPEN:if(_.Md(A))continue;if(V.state_===g.KEY_START)R.push(g.KEY_END);else if(A==="}"){d("{}");V.state_=h();continue}else R.push(g.OBJECT_END);A==='"'?V.state_=g.STRING:Qf(V,F,I);continue;case g.KEY_END:case g.OBJECT_END:if(_.Md(A))continue;A===":"?(V.state_===g.OBJECT_END&&(R.push(g.OBJECT_END),
V.depth_++),V.state_=g.VALUE):A==="}"?(V.depth_--,d(),V.state_=h()):A===","?(V.state_===g.OBJECT_END&&R.push(g.OBJECT_END),V.state_=g.KEY_START):Qf(V,F,I);continue;case g.ARRAY_OPEN:case g.VALUE:if(_.Md(A))continue;if(V.state_===g.ARRAY_OPEN)if(V.depth_++,V.state_=g.VALUE,A==="]"){V.depth_--;if(V.depth_===0){V.state_=g.ARRAY_END;return}d("[]");V.state_=h();continue}else R.push(g.ARRAY_END);A==='"'?V.state_=g.STRING:A==="{"?V.state_=g.OBJECT_OPEN:A==="["?V.state_=g.ARRAY_OPEN:A==="t"?V.state_=g.TRUE1:
A==="f"?V.state_=g.FALSE1:A==="n"?V.state_=g.NULL1:A!=="-"&&("0123456789".indexOf(A)!==-1?V.state_=g.NUM_DIGIT:Qf(V,F,I));continue;case g.ARRAY_END:if(A===",")R.push(g.ARRAY_END),V.state_=g.VALUE,V.depth_===1&&(B=I);else if(A==="]"){V.depth_--;if(V.depth_===0)return;d();V.state_=h()}else if(_.Md(A))continue;else Qf(V,F,I);continue;case g.STRING:var X=I;a:for(;;){for(;V.unicodeCount_>0;)if(A=F[I++],V.unicodeCount_===4?V.unicodeCount_=0:V.unicodeCount_++,!A)break a;if(A==='"'&&!V.slashed_){V.state_=
h();break}if(A==="\\"&&!V.slashed_&&(V.slashed_=!0,A=F[I++],!A))break;if(V.slashed_)if(V.slashed_=!1,A==="u"&&(V.unicodeCount_=1),A=F[I++])continue;else break;M.lastIndex=I;A=M.exec(F);if(!A){I=F.length+1;break}I=A.index+1;A=F[A.index];if(!A)break}V.JSC$9291_pos_+=I-X;continue;case g.TRUE1:if(!A)continue;A==="r"?V.state_=g.TRUE2:Qf(V,F,I);continue;case g.TRUE2:if(!A)continue;A==="u"?V.state_=g.TRUE3:Qf(V,F,I);continue;case g.TRUE3:if(!A)continue;A==="e"?V.state_=h():Qf(V,F,I);continue;case g.FALSE1:if(!A)continue;
A==="a"?V.state_=g.FALSE2:Qf(V,F,I);continue;case g.FALSE2:if(!A)continue;A==="l"?V.state_=g.FALSE3:Qf(V,F,I);continue;case g.FALSE3:if(!A)continue;A==="s"?V.state_=g.FALSE4:Qf(V,F,I);continue;case g.FALSE4:if(!A)continue;A==="e"?V.state_=h():Qf(V,F,I);continue;case g.NULL1:if(!A)continue;A==="u"?V.state_=g.NULL2:Qf(V,F,I);continue;case g.NULL2:if(!A)continue;A==="l"?V.state_=g.NULL3:Qf(V,F,I);continue;case g.NULL3:if(!A)continue;A==="l"?V.state_=h():Qf(V,F,I);continue;case g.NUM_DECIMAL_POINT:A===
"."?V.state_=g.NUM_DIGIT:Qf(V,F,I);continue;case g.NUM_DIGIT:if("0123456789.eE+-".indexOf(A)!==-1)continue;else I--,V.JSC$9291_pos_--,V.state_=h();continue;default:Qf(V,F,I)}}}
function h(){var A=R.pop();return A!=null?A:g.VALUE}
function d(A){V.depth_>1||(A||(A=B===-1?V.JSC$9291_buffer_+F.substring(C,I):F.substring(B,I)),V.deliverMessageAsRawString_?V.result_.push(A):V.result_.push(JSON.parse(A)),B=I)}
for(var V=this,R=V.stack_,M=V.stringInputPattern_,g=kK_,t=F.length,C=0,B=-1,I=0;I<t;)switch(V.streamState_){case 3:return Qf(V,F,I),null;case 2:return W()&&Qf(V,F,I),null;case 0:if(W()){var x=F[I++];V.JSC$9291_pos_++;if(x==="["){V.streamState_=1;C=I;V.state_=g.ARRAY_OPEN;continue}else Qf(V,F,I)}return null;case 1:return E(),V.depth_===0&&V.state_==g.ARRAY_END?(V.streamState_=2,V.JSC$9291_buffer_=F.substring(I)):V.JSC$9291_buffer_=B===-1?V.JSC$9291_buffer_+F.substring(C):F.substring(B),V.result_.length>
0?(x=V.result_,V.result_=[],x):null}return null};_.Ma(_.NW,sJ);VO.prototype.getValue=function(){return this.JSC$9299_value_};
VO.prototype.clone=function(){return new VO(this.JSC$9299_key_,this.JSC$9299_value_)};var zN=function(F){this.nodes_=[];if(F)a:{if(F instanceof zN){var W=F.getKeys();F=F.getValues();if(this.getCount()<=0){for(var E=this.nodes_,h=0;h<W.length;h++)E.push(new VO(W[h],F[h]));break a}}else W=_.xd.getKeys(F),F=_.xd.getValues(F);for(E=0;E<W.length;E++)this.insert(W[E],F[E])}};
_.N=zN.prototype;_.N.insert=function(F,W){var E=this.nodes_;E.push(new VO(F,W));F=E.length-1;W=this.nodes_;for(E=W[F];F>0;){var h=F-1>>1;if(W[h].JSC$9299_key_>E.JSC$9299_key_)W[F]=W[h],F=h;else break}W[F]=E};
_.N.remove=function(){var F=this.nodes_,W=F.length,E=F[0];if(!(W<=0)){if(W==1)F.length=0;else{F[0]=F.pop();F=0;W=this.nodes_;for(var h=W.length,d=W[F];F<h>>1;){var V=F*2+1,R=F*2+2;V=R<h&&W[R].JSC$9299_key_<W[V].JSC$9299_key_?R:V;if(W[V].JSC$9299_key_>d.JSC$9299_key_)break;W[F]=W[V];F=V}W[F]=d}return E.getValue()}};
_.N.peek=function(){var F=this.nodes_;if(F.length!=0)return F[0].getValue()};
_.N.getValues=function(){for(var F=this.nodes_,W=[],E=F.length,h=0;h<E;h++)W.push(F[h].getValue());return W};
_.N.getKeys=function(){for(var F=this.nodes_,W=[],E=F.length,h=0;h<E;h++)W.push(F[h].JSC$9299_key_);return W};
_.N.containsValue=function(F){return this.nodes_.some(function(W){return W.getValue()==F})};
_.N.containsKey=function(F){return this.nodes_.some(function(W){return W.JSC$9299_key_==F})};
_.N.clone=function(){return new zN(this)};
_.N.getCount=function(){return this.nodes_.length};
_.N.isEmpty=function(){return this.nodes_.length===0};
_.N.clear=function(){this.nodes_.length=0};_.tj=function(F,W){this.JSC$9305_map_={};this.JSC$9305_keys_=[];this.version_=this.size=0;var E=arguments.length;if(E>1){if(E%2)throw Error("oa");for(var h=0;h<E;h+=2)this.set(arguments[h],arguments[h+1])}else F&&this.addAll(F)};
_.N=_.tj.prototype;_.N.getCount=function(){return this.size};
_.N.getValues=function(){CH(this);for(var F=[],W=0;W<this.JSC$9305_keys_.length;W++)F.push(this.JSC$9305_map_[this.JSC$9305_keys_[W]]);return F};
_.N.getKeys=function(){CH(this);return this.JSC$9305_keys_.concat()};
_.N.containsKey=function(F){return this.has(F)};
_.N.has=function(F){return Bi(this.JSC$9305_map_,F)};
_.N.containsValue=function(F){for(var W=0;W<this.JSC$9305_keys_.length;W++){var E=this.JSC$9305_keys_[W];if(Bi(this.JSC$9305_map_,E)&&this.JSC$9305_map_[E]==F)return!0}return!1};
_.N.equals=function(F,W){if(this===F)return!0;if(this.size!=F.getCount())return!1;W=W||ATO;CH(this);for(var E,h=0;E=this.JSC$9305_keys_[h];h++)if(!W(this.get(E),F.get(E)))return!1;return!0};
var ATO=function(F,W){return F===W};
_.tj.prototype.isEmpty=function(){return this.size==0};
_.tj.prototype.clear=function(){this.JSC$9305_map_={};this.version_=this.size=this.JSC$9305_keys_.length=0};
_.tj.prototype.remove=function(F){return this.delete(F)};
_.tj.prototype.delete=function(F){return Bi(this.JSC$9305_map_,F)?(delete this.JSC$9305_map_[F],--this.size,this.version_++,this.JSC$9305_keys_.length>2*this.size&&CH(this),!0):!1};
var CH=function(F){if(F.size!=F.JSC$9305_keys_.length){for(var W=0,E=0;W<F.JSC$9305_keys_.length;){var h=F.JSC$9305_keys_[W];Bi(F.JSC$9305_map_,h)&&(F.JSC$9305_keys_[E++]=h);W++}F.JSC$9305_keys_.length=E}if(F.size!=F.JSC$9305_keys_.length){W={};for(h=E=0;E<F.JSC$9305_keys_.length;){var d=F.JSC$9305_keys_[E];Bi(W,d)||(F.JSC$9305_keys_[h++]=d,W[d]=1);E++}F.JSC$9305_keys_.length=h}};
_.N=_.tj.prototype;_.N.get=function(F,W){return Bi(this.JSC$9305_map_,F)?this.JSC$9305_map_[F]:W};
_.N.set=function(F,W){Bi(this.JSC$9305_map_,F)||(this.size+=1,this.JSC$9305_keys_.push(F),this.version_++);this.JSC$9305_map_[F]=W};
_.N.addAll=function(F){if(F instanceof _.tj)for(var W=F.getKeys(),E=0;E<W.length;E++)this.set(W[E],F.get(W[E]));else for(W in F)this.set(W,F[W])};
_.N.forEach=function(F,W){for(var E=this.getKeys(),h=0;h<E.length;h++){var d=E[h],V=this.get(d);F.call(W,V,d,this)}};
_.N.clone=function(){return new _.tj(this)};
_.N.transpose=function(){for(var F=new _.tj,W=0;W<this.JSC$9305_keys_.length;W++){var E=this.JSC$9305_keys_[W];F.set(this.JSC$9305_map_[E],E)}return F};
_.N.keys=function(){return p0z(this.__iterator__(!0)).toEs6()};
_.N.values=function(){return p0z(this.__iterator__(!1)).toEs6()};
_.N.entries=function(){var F=this;return MF_(this.keys(),function(W){return[W,F.get(W)]})};
_.N.__iterator__=function(F){CH(this);var W=0,E=this.version_,h=this,d=new gr;d.next=function(){if(E!=h.version_)throw Error("pe");if(W>=h.JSC$9305_keys_.length)return QS;var V=h.JSC$9305_keys_[W++];return zG(F?V:h.JSC$9305_map_[V])};
return d};
var Bi=function(F,W){return Object.prototype.hasOwnProperty.call(F,W)};var LVp=function(){this.JSC$9308_map_=new _.tj;this.JSC$9308_head_=new s4T("");this.JSC$9308_head_.next=this.JSC$9308_head_.prev=this.JSC$9308_head_},qOU=function(F,W){if(W=F.JSC$9308_map_.get(W))W.remove(),F.insert_(W);
return W};
_.N=LVp.prototype;_.N.get=function(F,W){return(F=qOU(this,F))?F.value:W};
_.N.set=function(F,W){var E=qOU(this,F);E?E.value=W:(E=new s4T(F,W),this.JSC$9308_map_.set(F,E),this.insert_(E))};
_.N.peek=function(){return this.JSC$9308_head_.next.value};
_.N.shift=function(){return $3_(this,this.JSC$9308_head_.next)};
_.N.pop=function(){return $3_(this,this.JSC$9308_head_.prev)};
_.N.remove=function(F){return(F=this.JSC$9308_map_.get(F))?(this.removeNode(F),!0):!1};
_.N.removeNode=function(F){F.remove();this.JSC$9308_map_.remove(F.key)};
_.N.getCount=function(){return this.JSC$9308_map_.getCount()};
_.N.isEmpty=function(){return this.JSC$9308_map_.isEmpty()};
_.N.getKeys=function(){return this.map(function(F,W){return W})};
_.N.getValues=function(){return this.map(function(F){return F})};
_.N.contains=function(F){return this.some(function(W){return W==F})};
_.N.containsKey=function(F){return this.JSC$9308_map_.containsKey(F)};
_.N.clear=function(){for(;this.getCount()>0;)this.removeNode(this.JSC$9308_head_.prev)};
_.N.forEach=function(F,W){for(var E=this.JSC$9308_head_.next;E!=this.JSC$9308_head_;E=E.next)F.call(W,E.value,E.key,this)};
_.N.map=function(F,W){for(var E=[],h=this.JSC$9308_head_.next;h!=this.JSC$9308_head_;h=h.next)E.push(F.call(W,h.value,h.key,this));return E};
_.N.some=function(F,W){for(var E=this.JSC$9308_head_.next;E!=this.JSC$9308_head_;E=E.next)if(F.call(W,E.value,E.key,this))return!0;return!1};
_.N.every=function(F,W){for(var E=this.JSC$9308_head_.next;E!=this.JSC$9308_head_;E=E.next)if(!F.call(W,E.value,E.key,this))return!1;return!0};
_.N.insert_=function(F){F.next=this.JSC$9308_head_.next;F.prev=this.JSC$9308_head_;this.JSC$9308_head_.next=F;for(F.next.prev=F;this.getCount()>40;)this.removeNode(this.JSC$9308_head_.prev)};
var $3_=function(F,W){F.JSC$9308_head_!=W&&F.removeNode(W);return W.value},s4T=function(F,W){this.key=F;
this.value=W};
s4T.prototype.remove=function(){this.prev.next=this.next;this.next.prev=this.prev;delete this.prev;delete this.next};var ZzU=function(){zN.apply(this,arguments)};
_.k(ZzU,zN);ZzU.prototype.enqueue=function(F,W){this.insert(F,W)};var XmT=function(){var F=Error();F.name="SecurityError";throw F;},sCe=function(){return{get opener(){return null},
get closed(){return!0},get location(){XmT()},get document(){XmT()},postMessage:function(){},
close:function(){},
focus:function(){}}};var Okk={0:65533,128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376};var nPk={Aacute:"\u00c1",aacute:"\u00e1",Abreve:"\u0102",abreve:"\u0103",ac:"\u223e",acd:"\u223f",acE:"\u223e\u0333",Acirc:"\u00c2",acirc:"\u00e2",acute:"\u00b4",Acy:"\u0410",acy:"\u0430",AElig:"\u00c6",aelig:"\u00e6",af:"\u2061",Afr:"\ud835\udd04",afr:"\ud835\udd1e",Agrave:"\u00c0",agrave:"\u00e0",alefsym:"\u2135",aleph:"\u2135",Alpha:"\u0391",alpha:"\u03b1",Amacr:"\u0100",amacr:"\u0101",amalg:"\u2a3f",amp:"&",AMP:"&",andand:"\u2a55",And:"\u2a53",and:"\u2227",andd:"\u2a5c",andslope:"\u2a58",andv:"\u2a5a",
ang:"\u2220",ange:"\u29a4",angle:"\u2220",angmsdaa:"\u29a8",angmsdab:"\u29a9",angmsdac:"\u29aa",angmsdad:"\u29ab",angmsdae:"\u29ac",angmsdaf:"\u29ad",angmsdag:"\u29ae",angmsdah:"\u29af",angmsd:"\u2221",angrt:"\u221f",angrtvb:"\u22be",angrtvbd:"\u299d",angsph:"\u2222",angst:"\u00c5",angzarr:"\u237c",Aogon:"\u0104",aogon:"\u0105",Aopf:"\ud835\udd38",aopf:"\ud835\udd52",apacir:"\u2a6f",ap:"\u2248",apE:"\u2a70",ape:"\u224a",apid:"\u224b",apos:"'",ApplyFunction:"\u2061",approx:"\u2248",approxeq:"\u224a",
Aring:"\u00c5",aring:"\u00e5",Ascr:"\ud835\udc9c",ascr:"\ud835\udcb6",Assign:"\u2254",ast:"*",asymp:"\u2248",asympeq:"\u224d",Atilde:"\u00c3",atilde:"\u00e3",Auml:"\u00c4",auml:"\u00e4",awconint:"\u2233",awint:"\u2a11",backcong:"\u224c",backepsilon:"\u03f6",backprime:"\u2035",backsim:"\u223d",backsimeq:"\u22cd",Backslash:"\u2216",Barv:"\u2ae7",barvee:"\u22bd",barwed:"\u2305",Barwed:"\u2306",barwedge:"\u2305",bbrk:"\u23b5",bbrktbrk:"\u23b6",bcong:"\u224c",Bcy:"\u0411",bcy:"\u0431",bdquo:"\u201e",becaus:"\u2235",
because:"\u2235",Because:"\u2235",bemptyv:"\u29b0",bepsi:"\u03f6",bernou:"\u212c",Bernoullis:"\u212c",Beta:"\u0392",beta:"\u03b2",beth:"\u2136",between:"\u226c",Bfr:"\ud835\udd05",bfr:"\ud835\udd1f",bigcap:"\u22c2",bigcirc:"\u25ef",bigcup:"\u22c3",bigodot:"\u2a00",bigoplus:"\u2a01",bigotimes:"\u2a02",bigsqcup:"\u2a06",bigstar:"\u2605",bigtriangledown:"\u25bd",bigtriangleup:"\u25b3",biguplus:"\u2a04",bigvee:"\u22c1",bigwedge:"\u22c0",bkarow:"\u290d",blacklozenge:"\u29eb",blacksquare:"\u25aa",blacktriangle:"\u25b4",
blacktriangledown:"\u25be",blacktriangleleft:"\u25c2",blacktriangleright:"\u25b8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20e5",bnequiv:"\u2261\u20e5",bNot:"\u2aed",bnot:"\u2310",Bopf:"\ud835\udd39",bopf:"\ud835\udd53",bot:"\u22a5",bottom:"\u22a5",bowtie:"\u22c8",boxbox:"\u29c9",boxdl:"\u2510",boxdL:"\u2555",boxDl:"\u2556",boxDL:"\u2557",boxdr:"\u250c",boxdR:"\u2552",boxDr:"\u2553",boxDR:"\u2554",boxh:"\u2500",boxH:"\u2550",boxhd:"\u252c",boxHd:"\u2564",
boxhD:"\u2565",boxHD:"\u2566",boxhu:"\u2534",boxHu:"\u2567",boxhU:"\u2568",boxHU:"\u2569",boxminus:"\u229f",boxplus:"\u229e",boxtimes:"\u22a0",boxul:"\u2518",boxuL:"\u255b",boxUl:"\u255c",boxUL:"\u255d",boxur:"\u2514",boxuR:"\u2558",boxUr:"\u2559",boxUR:"\u255a",boxv:"\u2502",boxV:"\u2551",boxvh:"\u253c",boxvH:"\u256a",boxVh:"\u256b",boxVH:"\u256c",boxvl:"\u2524",boxvL:"\u2561",boxVl:"\u2562",boxVL:"\u2563",boxvr:"\u251c",boxvR:"\u255e",boxVr:"\u255f",boxVR:"\u2560",bprime:"\u2035",breve:"\u02d8",
Breve:"\u02d8",brvbar:"\u00a6",bscr:"\ud835\udcb7",Bscr:"\u212c",bsemi:"\u204f",bsim:"\u223d",bsime:"\u22cd",bsolb:"\u29c5",bsol:"\\",bsolhsub:"\u27c8",bull:"\u2022",bullet:"\u2022",bump:"\u224e",bumpE:"\u2aae",bumpe:"\u224f",Bumpeq:"\u224e",bumpeq:"\u224f",Cacute:"\u0106",cacute:"\u0107",capand:"\u2a44",capbrcup:"\u2a49",capcap:"\u2a4b",cap:"\u2229",Cap:"\u22d2",capcup:"\u2a47",capdot:"\u2a40",CapitalDifferentialD:"\u2145",caps:"\u2229\ufe00",caret:"\u2041",caron:"\u02c7",Cayleys:"\u212d",ccaps:"\u2a4d",
Ccaron:"\u010c",ccaron:"\u010d",Ccedil:"\u00c7",ccedil:"\u00e7",Ccirc:"\u0108",ccirc:"\u0109",Cconint:"\u2230",ccups:"\u2a4c",ccupssm:"\u2a50",Cdot:"\u010a",cdot:"\u010b",cedil:"\u00b8",Cedilla:"\u00b8",cemptyv:"\u29b2",cent:"\u00a2",centerdot:"\u00b7",CenterDot:"\u00b7",cfr:"\ud835\udd20",Cfr:"\u212d",CHcy:"\u0427",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",Chi:"\u03a7",chi:"\u03c7",circ:"\u02c6",circeq:"\u2257",circlearrowleft:"\u21ba",circlearrowright:"\u21bb",circledast:"\u229b",circledcirc:"\u229a",
circleddash:"\u229d",CircleDot:"\u2299",circledR:"\u00ae",circledS:"\u24c8",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",cir:"\u25cb",cirE:"\u29c3",cire:"\u2257",cirfnint:"\u2a10",cirmid:"\u2aef",cirscir:"\u29c2",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201d",CloseCurlyQuote:"\u2019",clubs:"\u2663",clubsuit:"\u2663",colon:":",Colon:"\u2237",Colone:"\u2a74",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",
cong:"\u2245",congdot:"\u2a6d",Congruent:"\u2261",conint:"\u222e",Conint:"\u222f",ContourIntegral:"\u222e",copf:"\ud835\udd54",Copf:"\u2102",coprod:"\u2210",Coproduct:"\u2210",copy:"\u00a9",COPY:"\u00a9",copysr:"\u2117",CounterClockwiseContourIntegral:"\u2233",crarr:"\u21b5",cross:"\u2717",Cross:"\u2a2f",Cscr:"\ud835\udc9e",cscr:"\ud835\udcb8",csub:"\u2acf",csube:"\u2ad1",csup:"\u2ad0",csupe:"\u2ad2",ctdot:"\u22ef",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22de",cuesc:"\u22df",cularr:"\u21b6",cularrp:"\u293d",
cupbrcap:"\u2a48",cupcap:"\u2a46",CupCap:"\u224d",cup:"\u222a",Cup:"\u22d3",cupcup:"\u2a4a",cupdot:"\u228d",cupor:"\u2a45",cups:"\u222a\ufe00",curarr:"\u21b7",curarrm:"\u293c",curlyeqprec:"\u22de",curlyeqsucc:"\u22df",curlyvee:"\u22ce",curlywedge:"\u22cf",curren:"\u00a4",curvearrowleft:"\u21b6",curvearrowright:"\u21b7",cuvee:"\u22ce",cuwed:"\u22cf",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232d",dagger:"\u2020",Dagger:"\u2021",daleth:"\u2138",darr:"\u2193",Darr:"\u21a1",dArr:"\u21d3",dash:"\u2010",
Dashv:"\u2ae4",dashv:"\u22a3",dbkarow:"\u290f",dblac:"\u02dd",Dcaron:"\u010e",dcaron:"\u010f",Dcy:"\u0414",dcy:"\u0434",ddagger:"\u2021",ddarr:"\u21ca",DD:"\u2145",dd:"\u2146",DDotrahd:"\u2911",ddotseq:"\u2a77",deg:"\u00b0",Del:"\u2207",Delta:"\u0394",delta:"\u03b4",demptyv:"\u29b1",dfisht:"\u297f",Dfr:"\ud835\udd07",dfr:"\ud835\udd21",dHar:"\u2965",dharl:"\u21c3",dharr:"\u21c2",DiacriticalAcute:"\u00b4",DiacriticalDot:"\u02d9",DiacriticalDoubleAcute:"\u02dd",DiacriticalGrave:"`",DiacriticalTilde:"\u02dc",
diam:"\u22c4",diamond:"\u22c4",Diamond:"\u22c4",diamondsuit:"\u2666",diams:"\u2666",die:"\u00a8",DifferentialD:"\u2146",digamma:"\u03dd",disin:"\u22f2",div:"\u00f7",divide:"\u00f7",divideontimes:"\u22c7",divonx:"\u22c7",DJcy:"\u0402",djcy:"\u0452",dlcorn:"\u231e",dlcrop:"\u230d",dollar:"$",Dopf:"\ud835\udd3b",dopf:"\ud835\udd55",Dot:"\u00a8",dot:"\u02d9",DotDot:"\u20dc",doteq:"\u2250",doteqdot:"\u2251",DotEqual:"\u2250",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22a1",doublebarwedge:"\u2306",
DoubleContourIntegral:"\u222f",DoubleDot:"\u00a8",DoubleDownArrow:"\u21d3",DoubleLeftArrow:"\u21d0",DoubleLeftRightArrow:"\u21d4",DoubleLeftTee:"\u2ae4",DoubleLongLeftArrow:"\u27f8",DoubleLongLeftRightArrow:"\u27fa",DoubleLongRightArrow:"\u27f9",DoubleRightArrow:"\u21d2",DoubleRightTee:"\u22a8",DoubleUpArrow:"\u21d1",DoubleUpDownArrow:"\u21d5",DoubleVerticalBar:"\u2225",DownArrowBar:"\u2913",downarrow:"\u2193",DownArrow:"\u2193",Downarrow:"\u21d3",DownArrowUpArrow:"\u21f5",DownBreve:"\u0311",downdownarrows:"\u21ca",
downharpoonleft:"\u21c3",downharpoonright:"\u21c2",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295e",DownLeftVectorBar:"\u2956",DownLeftVector:"\u21bd",DownRightTeeVector:"\u295f",DownRightVectorBar:"\u2957",DownRightVector:"\u21c1",DownTeeArrow:"\u21a7",DownTee:"\u22a4",drbkarow:"\u2910",drcorn:"\u231f",drcrop:"\u230c",Dscr:"\ud835\udc9f",dscr:"\ud835\udcb9",DScy:"\u0405",dscy:"\u0455",dsol:"\u29f6",Dstrok:"\u0110",dstrok:"\u0111",dtdot:"\u22f1",dtri:"\u25bf",dtrif:"\u25be",duarr:"\u21f5",
duhar:"\u296f",dwangle:"\u29a6",DZcy:"\u040f",dzcy:"\u045f",dzigrarr:"\u27ff",Eacute:"\u00c9",eacute:"\u00e9",easter:"\u2a6e",Ecaron:"\u011a",ecaron:"\u011b",Ecirc:"\u00ca",ecirc:"\u00ea",ecir:"\u2256",ecolon:"\u2255",Ecy:"\u042d",ecy:"\u044d",eDDot:"\u2a77",Edot:"\u0116",edot:"\u0117",eDot:"\u2251",ee:"\u2147",efDot:"\u2252",Efr:"\ud835\udd08",efr:"\ud835\udd22",eg:"\u2a9a",Egrave:"\u00c8",egrave:"\u00e8",egs:"\u2a96",egsdot:"\u2a98",el:"\u2a99",Element:"\u2208",elinters:"\u23e7",ell:"\u2113",els:"\u2a95",
elsdot:"\u2a97",Emacr:"\u0112",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",EmptySmallSquare:"\u25fb",emptyv:"\u2205",EmptyVerySmallSquare:"\u25ab",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",ENG:"\u014a",eng:"\u014b",ensp:"\u2002",Eogon:"\u0118",eogon:"\u0119",Eopf:"\ud835\udd3c",eopf:"\ud835\udd56",epar:"\u22d5",eparsl:"\u29e3",eplus:"\u2a71",epsi:"\u03b5",Epsilon:"\u0395",epsilon:"\u03b5",epsiv:"\u03f5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2a96",eqslantless:"\u2a95",
Equal:"\u2a75",equals:"=",EqualTilde:"\u2242",equest:"\u225f",Equilibrium:"\u21cc",equiv:"\u2261",equivDD:"\u2a78",eqvparsl:"\u29e5",erarr:"\u2971",erDot:"\u2253",escr:"\u212f",Escr:"\u2130",esdot:"\u2250",Esim:"\u2a73",esim:"\u2242",Eta:"\u0397",eta:"\u03b7",ETH:"\u00d0",eth:"\u00f0",Euml:"\u00cb",euml:"\u00eb",euro:"\u20ac",excl:"!",exist:"\u2203",Exists:"\u2203",expectation:"\u2130",exponentiale:"\u2147",ExponentialE:"\u2147",fallingdotseq:"\u2252",Fcy:"\u0424",fcy:"\u0444",female:"\u2640",ffilig:"\ufb03",
fflig:"\ufb00",ffllig:"\ufb04",Ffr:"\ud835\udd09",ffr:"\ud835\udd23",filig:"\ufb01",FilledSmallSquare:"\u25fc",FilledVerySmallSquare:"\u25aa",fjlig:"fj",flat:"\u266d",fllig:"\ufb02",fltns:"\u25b1",fnof:"\u0192",Fopf:"\ud835\udd3d",fopf:"\ud835\udd57",forall:"\u2200",ForAll:"\u2200",fork:"\u22d4",forkv:"\u2ad9",Fouriertrf:"\u2131",fpartint:"\u2a0d",frac12:"\u00bd",frac13:"\u2153",frac14:"\u00bc",frac15:"\u2155",frac16:"\u2159",frac18:"\u215b",frac23:"\u2154",frac25:"\u2156",frac34:"\u00be",frac35:"\u2157",
frac38:"\u215c",frac45:"\u2158",frac56:"\u215a",frac58:"\u215d",frac78:"\u215e",frasl:"\u2044",frown:"\u2322",fscr:"\ud835\udcbb",Fscr:"\u2131",gacute:"\u01f5",Gamma:"\u0393",gamma:"\u03b3",Gammad:"\u03dc",gammad:"\u03dd",gap:"\u2a86",Gbreve:"\u011e",gbreve:"\u011f",Gcedil:"\u0122",Gcirc:"\u011c",gcirc:"\u011d",Gcy:"\u0413",gcy:"\u0433",Gdot:"\u0120",gdot:"\u0121",ge:"\u2265",gE:"\u2267",gEl:"\u2a8c",gel:"\u22db",geq:"\u2265",geqq:"\u2267",geqslant:"\u2a7e",gescc:"\u2aa9",ges:"\u2a7e",gesdot:"\u2a80",
gesdoto:"\u2a82",gesdotol:"\u2a84",gesl:"\u22db\ufe00",gesles:"\u2a94",Gfr:"\ud835\udd0a",gfr:"\ud835\udd24",gg:"\u226b",Gg:"\u22d9",ggg:"\u22d9",gimel:"\u2137",GJcy:"\u0403",gjcy:"\u0453",gla:"\u2aa5",gl:"\u2277",glE:"\u2a92",glj:"\u2aa4",gnap:"\u2a8a",gnapprox:"\u2a8a",gne:"\u2a88",gnE:"\u2269",gneq:"\u2a88",gneqq:"\u2269",gnsim:"\u22e7",Gopf:"\ud835\udd3e",gopf:"\ud835\udd58",grave:"`",GreaterEqual:"\u2265",GreaterEqualLess:"\u22db",GreaterFullEqual:"\u2267",GreaterGreater:"\u2aa2",GreaterLess:"\u2277",
GreaterSlantEqual:"\u2a7e",GreaterTilde:"\u2273",Gscr:"\ud835\udca2",gscr:"\u210a",gsim:"\u2273",gsime:"\u2a8e",gsiml:"\u2a90",gtcc:"\u2aa7",gtcir:"\u2a7a",gt:">",GT:">",Gt:"\u226b",gtdot:"\u22d7",gtlPar:"\u2995",gtquest:"\u2a7c",gtrapprox:"\u2a86",gtrarr:"\u2978",gtrdot:"\u22d7",gtreqless:"\u22db",gtreqqless:"\u2a8c",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\ufe00",gvnE:"\u2269\ufe00",Hacek:"\u02c7",hairsp:"\u200a",half:"\u00bd",hamilt:"\u210b",HARDcy:"\u042a",hardcy:"\u044a",harrcir:"\u2948",
harr:"\u2194",hArr:"\u21d4",harrw:"\u21ad",Hat:"^",hbar:"\u210f",Hcirc:"\u0124",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22b9",hfr:"\ud835\udd25",Hfr:"\u210c",HilbertSpace:"\u210b",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21ff",homtht:"\u223b",hookleftarrow:"\u21a9",hookrightarrow:"\u21aa",hopf:"\ud835\udd59",Hopf:"\u210d",horbar:"\u2015",HorizontalLine:"\u2500",hscr:"\ud835\udcbd",Hscr:"\u210b",hslash:"\u210f",Hstrok:"\u0126",hstrok:"\u0127",HumpDownHump:"\u224e",
HumpEqual:"\u224f",hybull:"\u2043",hyphen:"\u2010",Iacute:"\u00cd",iacute:"\u00ed",ic:"\u2063",Icirc:"\u00ce",icirc:"\u00ee",Icy:"\u0418",icy:"\u0438",Idot:"\u0130",IEcy:"\u0415",iecy:"\u0435",iexcl:"\u00a1",iff:"\u21d4",ifr:"\ud835\udd26",Ifr:"\u2111",Igrave:"\u00cc",igrave:"\u00ec",ii:"\u2148",iiiint:"\u2a0c",iiint:"\u222d",iinfin:"\u29dc",iiota:"\u2129",IJlig:"\u0132",ijlig:"\u0133",Imacr:"\u012a",imacr:"\u012b",image:"\u2111",ImaginaryI:"\u2148",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",
Im:"\u2111",imof:"\u22b7",imped:"\u01b5",Implies:"\u21d2",incare:"\u2105","in":"\u2208",infin:"\u221e",infintie:"\u29dd",inodot:"\u0131",intcal:"\u22ba","int":"\u222b",Int:"\u222c",integers:"\u2124",Integral:"\u222b",intercal:"\u22ba",Intersection:"\u22c2",intlarhk:"\u2a17",intprod:"\u2a3c",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",IOcy:"\u0401",iocy:"\u0451",Iogon:"\u012e",iogon:"\u012f",Iopf:"\ud835\udd40",iopf:"\ud835\udd5a",Iota:"\u0399",iota:"\u03b9",iprod:"\u2a3c",iquest:"\u00bf",iscr:"\ud835\udcbe",
Iscr:"\u2110",isin:"\u2208",isindot:"\u22f5",isinE:"\u22f9",isins:"\u22f4",isinsv:"\u22f3",isinv:"\u2208",it:"\u2062",Itilde:"\u0128",itilde:"\u0129",Iukcy:"\u0406",iukcy:"\u0456",Iuml:"\u00cf",iuml:"\u00ef",Jcirc:"\u0134",jcirc:"\u0135",Jcy:"\u0419",jcy:"\u0439",Jfr:"\ud835\udd0d",jfr:"\ud835\udd27",jmath:"\u0237",Jopf:"\ud835\udd41",jopf:"\ud835\udd5b",Jscr:"\ud835\udca5",jscr:"\ud835\udcbf",Jsercy:"\u0408",jsercy:"\u0458",Jukcy:"\u0404",jukcy:"\u0454",Kappa:"\u039a",kappa:"\u03ba",kappav:"\u03f0",
Kcedil:"\u0136",kcedil:"\u0137",Kcy:"\u041a",kcy:"\u043a",Kfr:"\ud835\udd0e",kfr:"\ud835\udd28",kgreen:"\u0138",KHcy:"\u0425",khcy:"\u0445",KJcy:"\u040c",kjcy:"\u045c",Kopf:"\ud835\udd42",kopf:"\ud835\udd5c",Kscr:"\ud835\udca6",kscr:"\ud835\udcc0",lAarr:"\u21da",Lacute:"\u0139",lacute:"\u013a",laemptyv:"\u29b4",lagran:"\u2112",Lambda:"\u039b",lambda:"\u03bb",lang:"\u27e8",Lang:"\u27ea",langd:"\u2991",langle:"\u27e8",lap:"\u2a85",Laplacetrf:"\u2112",laquo:"\u00ab",larrb:"\u21e4",larrbfs:"\u291f",larr:"\u2190",
Larr:"\u219e",lArr:"\u21d0",larrfs:"\u291d",larrhk:"\u21a9",larrlp:"\u21ab",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21a2",latail:"\u2919",lAtail:"\u291b",lat:"\u2aab",late:"\u2aad",lates:"\u2aad\ufe00",lbarr:"\u290c",lBarr:"\u290e",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298b",lbrksld:"\u298f",lbrkslu:"\u298d",Lcaron:"\u013d",lcaron:"\u013e",Lcedil:"\u013b",lcedil:"\u013c",lceil:"\u2308",lcub:"{",Lcy:"\u041b",lcy:"\u043b",ldca:"\u2936",ldquo:"\u201c",ldquor:"\u201e",ldrdhar:"\u2967",ldrushar:"\u294b",
ldsh:"\u21b2",le:"\u2264",lE:"\u2266",LeftAngleBracket:"\u27e8",LeftArrowBar:"\u21e4",leftarrow:"\u2190",LeftArrow:"\u2190",Leftarrow:"\u21d0",LeftArrowRightArrow:"\u21c6",leftarrowtail:"\u21a2",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27e6",LeftDownTeeVector:"\u2961",LeftDownVectorBar:"\u2959",LeftDownVector:"\u21c3",LeftFloor:"\u230a",leftharpoondown:"\u21bd",leftharpoonup:"\u21bc",leftleftarrows:"\u21c7",leftrightarrow:"\u2194",LeftRightArrow:"\u2194",Leftrightarrow:"\u21d4",leftrightarrows:"\u21c6",
leftrightharpoons:"\u21cb",leftrightsquigarrow:"\u21ad",LeftRightVector:"\u294e",LeftTeeArrow:"\u21a4",LeftTee:"\u22a3",LeftTeeVector:"\u295a",leftthreetimes:"\u22cb",LeftTriangleBar:"\u29cf",LeftTriangle:"\u22b2",LeftTriangleEqual:"\u22b4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVectorBar:"\u2958",LeftUpVector:"\u21bf",LeftVectorBar:"\u2952",LeftVector:"\u21bc",lEg:"\u2a8b",leg:"\u22da",leq:"\u2264",leqq:"\u2266",leqslant:"\u2a7d",lescc:"\u2aa8",les:"\u2a7d",lesdot:"\u2a7f",lesdoto:"\u2a81",
lesdotor:"\u2a83",lesg:"\u22da\ufe00",lesges:"\u2a93",lessapprox:"\u2a85",lessdot:"\u22d6",lesseqgtr:"\u22da",lesseqqgtr:"\u2a8b",LessEqualGreater:"\u22da",LessFullEqual:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",LessLess:"\u2aa1",lesssim:"\u2272",LessSlantEqual:"\u2a7d",LessTilde:"\u2272",lfisht:"\u297c",lfloor:"\u230a",Lfr:"\ud835\udd0f",lfr:"\ud835\udd29",lg:"\u2276",lgE:"\u2a91",lHar:"\u2962",lhard:"\u21bd",lharu:"\u21bc",lharul:"\u296a",lhblk:"\u2584",LJcy:"\u0409",ljcy:"\u0459",llarr:"\u21c7",
ll:"\u226a",Ll:"\u22d8",llcorner:"\u231e",Lleftarrow:"\u21da",llhard:"\u296b",lltri:"\u25fa",Lmidot:"\u013f",lmidot:"\u0140",lmoustache:"\u23b0",lmoust:"\u23b0",lnap:"\u2a89",lnapprox:"\u2a89",lne:"\u2a87",lnE:"\u2268",lneq:"\u2a87",lneqq:"\u2268",lnsim:"\u22e6",loang:"\u27ec",loarr:"\u21fd",lobrk:"\u27e6",longleftarrow:"\u27f5",LongLeftArrow:"\u27f5",Longleftarrow:"\u27f8",longleftrightarrow:"\u27f7",LongLeftRightArrow:"\u27f7",Longleftrightarrow:"\u27fa",longmapsto:"\u27fc",longrightarrow:"\u27f6",
LongRightArrow:"\u27f6",Longrightarrow:"\u27f9",looparrowleft:"\u21ab",looparrowright:"\u21ac",lopar:"\u2985",Lopf:"\ud835\udd43",lopf:"\ud835\udd5d",loplus:"\u2a2d",lotimes:"\u2a34",lowast:"\u2217",lowbar:"_",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",loz:"\u25ca",lozenge:"\u25ca",lozf:"\u29eb",lpar:"(",lparlt:"\u2993",lrarr:"\u21c6",lrcorner:"\u231f",lrhar:"\u21cb",lrhard:"\u296d",lrm:"\u200e",lrtri:"\u22bf",lsaquo:"\u2039",lscr:"\ud835\udcc1",Lscr:"\u2112",lsh:"\u21b0",Lsh:"\u21b0",lsim:"\u2272",
lsime:"\u2a8d",lsimg:"\u2a8f",lsqb:"[",lsquo:"\u2018",lsquor:"\u201a",Lstrok:"\u0141",lstrok:"\u0142",ltcc:"\u2aa6",ltcir:"\u2a79",lt:"<",LT:"<",Lt:"\u226a",ltdot:"\u22d6",lthree:"\u22cb",ltimes:"\u22c9",ltlarr:"\u2976",ltquest:"\u2a7b",ltri:"\u25c3",ltrie:"\u22b4",ltrif:"\u25c2",ltrPar:"\u2996",lurdshar:"\u294a",luruhar:"\u2966",lvertneqq:"\u2268\ufe00",lvnE:"\u2268\ufe00",macr:"\u00af",male:"\u2642",malt:"\u2720",maltese:"\u2720",Map:"\u2905",map:"\u21a6",mapsto:"\u21a6",mapstodown:"\u21a7",mapstoleft:"\u21a4",
mapstoup:"\u21a5",marker:"\u25ae",mcomma:"\u2a29",Mcy:"\u041c",mcy:"\u043c",mdash:"\u2014",mDDot:"\u223a",measuredangle:"\u2221",MediumSpace:"\u205f",Mellintrf:"\u2133",Mfr:"\ud835\udd10",mfr:"\ud835\udd2a",mho:"\u2127",micro:"\u00b5",midast:"*",midcir:"\u2af0",mid:"\u2223",middot:"\u00b7",minusb:"\u229f",minus:"\u2212",minusd:"\u2238",minusdu:"\u2a2a",MinusPlus:"\u2213",mlcp:"\u2adb",mldr:"\u2026",mnplus:"\u2213",models:"\u22a7",Mopf:"\ud835\udd44",mopf:"\ud835\udd5e",mp:"\u2213",mscr:"\ud835\udcc2",
Mscr:"\u2133",mstpos:"\u223e",Mu:"\u039c",mu:"\u03bc",multimap:"\u22b8",mumap:"\u22b8",nabla:"\u2207",Nacute:"\u0143",nacute:"\u0144",nang:"\u2220\u20d2",nap:"\u2249",napE:"\u2a70\u0338",napid:"\u224b\u0338",napos:"\u0149",napprox:"\u2249",natural:"\u266e",naturals:"\u2115",natur:"\u266e",nbsp:"\u00a0",nbump:"\u224e\u0338",nbumpe:"\u224f\u0338",ncap:"\u2a43",Ncaron:"\u0147",ncaron:"\u0148",Ncedil:"\u0145",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2a6d\u0338",ncup:"\u2a42",Ncy:"\u041d",ncy:"\u043d",
ndash:"\u2013",nearhk:"\u2924",nearr:"\u2197",neArr:"\u21d7",nearrow:"\u2197",ne:"\u2260",nedot:"\u2250\u0338",NegativeMediumSpace:"\u200b",NegativeThickSpace:"\u200b",NegativeThinSpace:"\u200b",NegativeVeryThinSpace:"\u200b",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",NestedGreaterGreater:"\u226b",NestedLessLess:"\u226a",NewLine:"\n",nexist:"\u2204",nexists:"\u2204",Nfr:"\ud835\udd11",nfr:"\ud835\udd2b",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2a7e\u0338",
nges:"\u2a7e\u0338",nGg:"\u22d9\u0338",ngsim:"\u2275",nGt:"\u226b\u20d2",ngt:"\u226f",ngtr:"\u226f",nGtv:"\u226b\u0338",nharr:"\u21ae",nhArr:"\u21ce",nhpar:"\u2af2",ni:"\u220b",nis:"\u22fc",nisd:"\u22fa",niv:"\u220b",NJcy:"\u040a",njcy:"\u045a",nlarr:"\u219a",nlArr:"\u21cd",nldr:"\u2025",nlE:"\u2266\u0338",nle:"\u2270",nleftarrow:"\u219a",nLeftarrow:"\u21cd",nleftrightarrow:"\u21ae",nLeftrightarrow:"\u21ce",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2a7d\u0338",nles:"\u2a7d\u0338",nless:"\u226e",
nLl:"\u22d8\u0338",nlsim:"\u2274",nLt:"\u226a\u20d2",nlt:"\u226e",nltri:"\u22ea",nltrie:"\u22ec",nLtv:"\u226a\u0338",nmid:"\u2224",NoBreak:"\u2060",NonBreakingSpace:"\u00a0",nopf:"\ud835\udd5f",Nopf:"\u2115",Not:"\u2aec",not:"\u00ac",NotCongruent:"\u2262",NotCupCap:"\u226d",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226f",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226b\u0338",
NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2a7e\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224e\u0338",NotHumpEqual:"\u224f\u0338",notin:"\u2209",notindot:"\u22f5\u0338",notinE:"\u22f9\u0338",notinva:"\u2209",notinvb:"\u22f7",notinvc:"\u22f6",NotLeftTriangleBar:"\u29cf\u0338",NotLeftTriangle:"\u22ea",NotLeftTriangleEqual:"\u22ec",NotLess:"\u226e",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226a\u0338",NotLessSlantEqual:"\u2a7d\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2aa2\u0338",
NotNestedLessLess:"\u2aa1\u0338",notni:"\u220c",notniva:"\u220c",notnivb:"\u22fe",notnivc:"\u22fd",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2aaf\u0338",NotPrecedesSlantEqual:"\u22e0",NotReverseElement:"\u220c",NotRightTriangleBar:"\u29d0\u0338",NotRightTriangle:"\u22eb",NotRightTriangleEqual:"\u22ed",NotSquareSubset:"\u228f\u0338",NotSquareSubsetEqual:"\u22e2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22e3",NotSubset:"\u2282\u20d2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2ab0\u0338",
NotSucceedsSlantEqual:"\u22e1",NotSucceedsTilde:"\u227f\u0338",NotSuperset:"\u2283\u20d2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",nparallel:"\u2226",npar:"\u2226",nparsl:"\u2afd\u20e5",npart:"\u2202\u0338",npolint:"\u2a14",npr:"\u2280",nprcue:"\u22e0",nprec:"\u2280",npreceq:"\u2aaf\u0338",npre:"\u2aaf\u0338",nrarrc:"\u2933\u0338",nrarr:"\u219b",nrArr:"\u21cf",nrarrw:"\u219d\u0338",nrightarrow:"\u219b",
nRightarrow:"\u21cf",nrtri:"\u22eb",nrtrie:"\u22ed",nsc:"\u2281",nsccue:"\u22e1",nsce:"\u2ab0\u0338",Nscr:"\ud835\udca9",nscr:"\ud835\udcc3",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22e2",nsqsupe:"\u22e3",nsub:"\u2284",nsubE:"\u2ac5\u0338",nsube:"\u2288",nsubset:"\u2282\u20d2",nsubseteq:"\u2288",nsubseteqq:"\u2ac5\u0338",nsucc:"\u2281",nsucceq:"\u2ab0\u0338",nsup:"\u2285",nsupE:"\u2ac6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20d2",
nsupseteq:"\u2289",nsupseteqq:"\u2ac6\u0338",ntgl:"\u2279",Ntilde:"\u00d1",ntilde:"\u00f1",ntlg:"\u2278",ntriangleleft:"\u22ea",ntrianglelefteq:"\u22ec",ntriangleright:"\u22eb",ntrianglerighteq:"\u22ed",Nu:"\u039d",nu:"\u03bd",num:"#",numero:"\u2116",numsp:"\u2007",nvap:"\u224d\u20d2",nvdash:"\u22ac",nvDash:"\u22ad",nVdash:"\u22ae",nVDash:"\u22af",nvge:"\u2265\u20d2",nvgt:">\u20d2",nvHarr:"\u2904",nvinfin:"\u29de",nvlArr:"\u2902",nvle:"\u2264\u20d2",nvlt:"<\u20d2",nvltrie:"\u22b4\u20d2",nvrArr:"\u2903",
nvrtrie:"\u22b5\u20d2",nvsim:"\u223c\u20d2",nwarhk:"\u2923",nwarr:"\u2196",nwArr:"\u21d6",nwarrow:"\u2196",nwnear:"\u2927",Oacute:"\u00d3",oacute:"\u00f3",oast:"\u229b",Ocirc:"\u00d4",ocirc:"\u00f4",ocir:"\u229a",Ocy:"\u041e",ocy:"\u043e",odash:"\u229d",Odblac:"\u0150",odblac:"\u0151",odiv:"\u2a38",odot:"\u2299",odsold:"\u29bc",OElig:"\u0152",oelig:"\u0153",ofcir:"\u29bf",Ofr:"\ud835\udd12",ofr:"\ud835\udd2c",ogon:"\u02db",Ograve:"\u00d2",ograve:"\u00f2",ogt:"\u29c1",ohbar:"\u29b5",ohm:"\u03a9",oint:"\u222e",
olarr:"\u21ba",olcir:"\u29be",olcross:"\u29bb",oline:"\u203e",olt:"\u29c0",Omacr:"\u014c",omacr:"\u014d",Omega:"\u03a9",omega:"\u03c9",Omicron:"\u039f",omicron:"\u03bf",omid:"\u29b6",ominus:"\u2296",Oopf:"\ud835\udd46",oopf:"\ud835\udd60",opar:"\u29b7",OpenCurlyDoubleQuote:"\u201c",OpenCurlyQuote:"\u2018",operp:"\u29b9",oplus:"\u2295",orarr:"\u21bb",Or:"\u2a54",or:"\u2228",ord:"\u2a5d",order:"\u2134",orderof:"\u2134",ordf:"\u00aa",ordm:"\u00ba",origof:"\u22b6",oror:"\u2a56",orslope:"\u2a57",orv:"\u2a5b",
oS:"\u24c8",Oscr:"\ud835\udcaa",oscr:"\u2134",Oslash:"\u00d8",oslash:"\u00f8",osol:"\u2298",Otilde:"\u00d5",otilde:"\u00f5",otimesas:"\u2a36",Otimes:"\u2a37",otimes:"\u2297",Ouml:"\u00d6",ouml:"\u00f6",ovbar:"\u233d",OverBar:"\u203e",OverBrace:"\u23de",OverBracket:"\u23b4",OverParenthesis:"\u23dc",para:"\u00b6",parallel:"\u2225",par:"\u2225",parsim:"\u2af3",parsl:"\u2afd",part:"\u2202",PartialD:"\u2202",Pcy:"\u041f",pcy:"\u043f",percnt:"%",period:".",permil:"\u2030",perp:"\u22a5",pertenk:"\u2031",
Pfr:"\ud835\udd13",pfr:"\ud835\udd2d",Phi:"\u03a6",phi:"\u03c6",phiv:"\u03d5",phmmat:"\u2133",phone:"\u260e",Pi:"\u03a0",pi:"\u03c0",pitchfork:"\u22d4",piv:"\u03d6",planck:"\u210f",planckh:"\u210e",plankv:"\u210f",plusacir:"\u2a23",plusb:"\u229e",pluscir:"\u2a22",plus:"+",plusdo:"\u2214",plusdu:"\u2a25",pluse:"\u2a72",PlusMinus:"\u00b1",plusmn:"\u00b1",plussim:"\u2a26",plustwo:"\u2a27",pm:"\u00b1",Poincareplane:"\u210c",pointint:"\u2a15",popf:"\ud835\udd61",Popf:"\u2119",pound:"\u00a3",prap:"\u2ab7",
Pr:"\u2abb",pr:"\u227a",prcue:"\u227c",precapprox:"\u2ab7",prec:"\u227a",preccurlyeq:"\u227c",Precedes:"\u227a",PrecedesEqual:"\u2aaf",PrecedesSlantEqual:"\u227c",PrecedesTilde:"\u227e",preceq:"\u2aaf",precnapprox:"\u2ab9",precneqq:"\u2ab5",precnsim:"\u22e8",pre:"\u2aaf",prE:"\u2ab3",precsim:"\u227e",prime:"\u2032",Prime:"\u2033",primes:"\u2119",prnap:"\u2ab9",prnE:"\u2ab5",prnsim:"\u22e8",prod:"\u220f",Product:"\u220f",profalar:"\u232e",profline:"\u2312",profsurf:"\u2313",prop:"\u221d",Proportional:"\u221d",
Proportion:"\u2237",propto:"\u221d",prsim:"\u227e",prurel:"\u22b0",Pscr:"\ud835\udcab",pscr:"\ud835\udcc5",Psi:"\u03a8",psi:"\u03c8",puncsp:"\u2008",Qfr:"\ud835\udd14",qfr:"\ud835\udd2e",qint:"\u2a0c",qopf:"\ud835\udd62",Qopf:"\u211a",qprime:"\u2057",Qscr:"\ud835\udcac",qscr:"\ud835\udcc6",quaternions:"\u210d",quatint:"\u2a16",quest:"?",questeq:"\u225f",quot:'"',QUOT:'"',rAarr:"\u21db",race:"\u223d\u0331",Racute:"\u0154",racute:"\u0155",radic:"\u221a",raemptyv:"\u29b3",rang:"\u27e9",Rang:"\u27eb",
rangd:"\u2992",range:"\u29a5",rangle:"\u27e9",raquo:"\u00bb",rarrap:"\u2975",rarrb:"\u21e5",rarrbfs:"\u2920",rarrc:"\u2933",rarr:"\u2192",Rarr:"\u21a0",rArr:"\u21d2",rarrfs:"\u291e",rarrhk:"\u21aa",rarrlp:"\u21ac",rarrpl:"\u2945",rarrsim:"\u2974",Rarrtl:"\u2916",rarrtl:"\u21a3",rarrw:"\u219d",ratail:"\u291a",rAtail:"\u291c",ratio:"\u2236",rationals:"\u211a",rbarr:"\u290d",rBarr:"\u290f",RBarr:"\u2910",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298c",rbrksld:"\u298e",rbrkslu:"\u2990",Rcaron:"\u0158",
rcaron:"\u0159",Rcedil:"\u0156",rcedil:"\u0157",rceil:"\u2309",rcub:"}",Rcy:"\u0420",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201d",rdquor:"\u201d",rdsh:"\u21b3",real:"\u211c",realine:"\u211b",realpart:"\u211c",reals:"\u211d",Re:"\u211c",rect:"\u25ad",reg:"\u00ae",REG:"\u00ae",ReverseElement:"\u220b",ReverseEquilibrium:"\u21cb",ReverseUpEquilibrium:"\u296f",rfisht:"\u297d",rfloor:"\u230b",rfr:"\ud835\udd2f",Rfr:"\u211c",rHar:"\u2964",rhard:"\u21c1",rharu:"\u21c0",rharul:"\u296c",Rho:"\u03a1",
rho:"\u03c1",rhov:"\u03f1",RightAngleBracket:"\u27e9",RightArrowBar:"\u21e5",rightarrow:"\u2192",RightArrow:"\u2192",Rightarrow:"\u21d2",RightArrowLeftArrow:"\u21c4",rightarrowtail:"\u21a3",RightCeiling:"\u2309",RightDoubleBracket:"\u27e7",RightDownTeeVector:"\u295d",RightDownVectorBar:"\u2955",RightDownVector:"\u21c2",RightFloor:"\u230b",rightharpoondown:"\u21c1",rightharpoonup:"\u21c0",rightleftarrows:"\u21c4",rightleftharpoons:"\u21cc",rightrightarrows:"\u21c9",rightsquigarrow:"\u219d",RightTeeArrow:"\u21a6",
RightTee:"\u22a2",RightTeeVector:"\u295b",rightthreetimes:"\u22cc",RightTriangleBar:"\u29d0",RightTriangle:"\u22b3",RightTriangleEqual:"\u22b5",RightUpDownVector:"\u294f",RightUpTeeVector:"\u295c",RightUpVectorBar:"\u2954",RightUpVector:"\u21be",RightVectorBar:"\u2953",RightVector:"\u21c0",ring:"\u02da",risingdotseq:"\u2253",rlarr:"\u21c4",rlhar:"\u21cc",rlm:"\u200f",rmoustache:"\u23b1",rmoust:"\u23b1",rnmid:"\u2aee",roang:"\u27ed",roarr:"\u21fe",robrk:"\u27e7",ropar:"\u2986",ropf:"\ud835\udd63",
Ropf:"\u211d",roplus:"\u2a2e",rotimes:"\u2a35",RoundImplies:"\u2970",rpar:")",rpargt:"\u2994",rppolint:"\u2a12",rrarr:"\u21c9",Rrightarrow:"\u21db",rsaquo:"\u203a",rscr:"\ud835\udcc7",Rscr:"\u211b",rsh:"\u21b1",Rsh:"\u21b1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22cc",rtimes:"\u22ca",rtri:"\u25b9",rtrie:"\u22b5",rtrif:"\u25b8",rtriltri:"\u29ce",RuleDelayed:"\u29f4",ruluhar:"\u2968",rx:"\u211e",Sacute:"\u015a",sacute:"\u015b",sbquo:"\u201a",scap:"\u2ab8",Scaron:"\u0160",scaron:"\u0161",
Sc:"\u2abc",sc:"\u227b",sccue:"\u227d",sce:"\u2ab0",scE:"\u2ab4",Scedil:"\u015e",scedil:"\u015f",Scirc:"\u015c",scirc:"\u015d",scnap:"\u2aba",scnE:"\u2ab6",scnsim:"\u22e9",scpolint:"\u2a13",scsim:"\u227f",Scy:"\u0421",scy:"\u0441",sdotb:"\u22a1",sdot:"\u22c5",sdote:"\u2a66",searhk:"\u2925",searr:"\u2198",seArr:"\u21d8",searrow:"\u2198",sect:"\u00a7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",Sfr:"\ud835\udd16",sfr:"\ud835\udd30",sfrown:"\u2322",sharp:"\u266f",SHCHcy:"\u0429",
shchcy:"\u0449",SHcy:"\u0428",shcy:"\u0448",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",shortmid:"\u2223",shortparallel:"\u2225",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",shy:"\u00ad",Sigma:"\u03a3",sigma:"\u03c3",sigmaf:"\u03c2",sigmav:"\u03c2",sim:"\u223c",simdot:"\u2a6a",sime:"\u2243",simeq:"\u2243",simg:"\u2a9e",simgE:"\u2aa0",siml:"\u2a9d",simlE:"\u2a9f",simne:"\u2246",simplus:"\u2a24",simrarr:"\u2972",slarr:"\u2190",SmallCircle:"\u2218",smallsetminus:"\u2216",smashp:"\u2a33",smeparsl:"\u29e4",
smid:"\u2223",smile:"\u2323",smt:"\u2aaa",smte:"\u2aac",smtes:"\u2aac\ufe00",SOFTcy:"\u042c",softcy:"\u044c",solbar:"\u233f",solb:"\u29c4",sol:"/",Sopf:"\ud835\udd4a",sopf:"\ud835\udd64",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\ufe00",sqcup:"\u2294",sqcups:"\u2294\ufe00",Sqrt:"\u221a",sqsub:"\u228f",sqsube:"\u2291",sqsubset:"\u228f",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",square:"\u25a1",Square:"\u25a1",SquareIntersection:"\u2293",
SquareSubset:"\u228f",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",squarf:"\u25aa",squ:"\u25a1",squf:"\u25aa",srarr:"\u2192",Sscr:"\ud835\udcae",sscr:"\ud835\udcc8",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22c6",Star:"\u22c6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03f5",straightphi:"\u03d5",strns:"\u00af",sub:"\u2282",Sub:"\u22d0",subdot:"\u2abd",subE:"\u2ac5",sube:"\u2286",subedot:"\u2ac3",submult:"\u2ac1",subnE:"\u2acb",subne:"\u228a",
subplus:"\u2abf",subrarr:"\u2979",subset:"\u2282",Subset:"\u22d0",subseteq:"\u2286",subseteqq:"\u2ac5",SubsetEqual:"\u2286",subsetneq:"\u228a",subsetneqq:"\u2acb",subsim:"\u2ac7",subsub:"\u2ad5",subsup:"\u2ad3",succapprox:"\u2ab8",succ:"\u227b",succcurlyeq:"\u227d",Succeeds:"\u227b",SucceedsEqual:"\u2ab0",SucceedsSlantEqual:"\u227d",SucceedsTilde:"\u227f",succeq:"\u2ab0",succnapprox:"\u2aba",succneqq:"\u2ab6",succnsim:"\u22e9",succsim:"\u227f",SuchThat:"\u220b",sum:"\u2211",Sum:"\u2211",sung:"\u266a",
sup1:"\u00b9",sup2:"\u00b2",sup3:"\u00b3",sup:"\u2283",Sup:"\u22d1",supdot:"\u2abe",supdsub:"\u2ad8",supE:"\u2ac6",supe:"\u2287",supedot:"\u2ac4",Superset:"\u2283",SupersetEqual:"\u2287",suphsol:"\u27c9",suphsub:"\u2ad7",suplarr:"\u297b",supmult:"\u2ac2",supnE:"\u2acc",supne:"\u228b",supplus:"\u2ac0",supset:"\u2283",Supset:"\u22d1",supseteq:"\u2287",supseteqq:"\u2ac6",supsetneq:"\u228b",supsetneqq:"\u2acc",supsim:"\u2ac8",supsub:"\u2ad4",supsup:"\u2ad6",swarhk:"\u2926",swarr:"\u2199",swArr:"\u21d9",
swarrow:"\u2199",swnwar:"\u292a",szlig:"\u00df",Tab:"\t",target:"\u2316",Tau:"\u03a4",tau:"\u03c4",tbrk:"\u23b4",Tcaron:"\u0164",tcaron:"\u0165",Tcedil:"\u0162",tcedil:"\u0163",Tcy:"\u0422",tcy:"\u0442",tdot:"\u20db",telrec:"\u2315",Tfr:"\ud835\udd17",tfr:"\ud835\udd31",there4:"\u2234",therefore:"\u2234",Therefore:"\u2234",Theta:"\u0398",theta:"\u03b8",thetasym:"\u03d1",thetav:"\u03d1",thickapprox:"\u2248",thicksim:"\u223c",ThickSpace:"\u205f\u200a",ThinSpace:"\u2009",thinsp:"\u2009",thkap:"\u2248",
thksim:"\u223c",THORN:"\u00de",thorn:"\u00fe",tilde:"\u02dc",Tilde:"\u223c",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",timesbar:"\u2a31",timesb:"\u22a0",times:"\u00d7",timesd:"\u2a30",tint:"\u222d",toea:"\u2928",topbot:"\u2336",topcir:"\u2af1",top:"\u22a4",Topf:"\ud835\udd4b",topf:"\ud835\udd65",topfork:"\u2ada",tosa:"\u2929",tprime:"\u2034",trade:"\u2122",TRADE:"\u2122",triangle:"\u25b5",triangledown:"\u25bf",triangleleft:"\u25c3",trianglelefteq:"\u22b4",triangleq:"\u225c",triangleright:"\u25b9",
trianglerighteq:"\u22b5",tridot:"\u25ec",trie:"\u225c",triminus:"\u2a3a",TripleDot:"\u20db",triplus:"\u2a39",trisb:"\u29cd",tritime:"\u2a3b",trpezium:"\u23e2",Tscr:"\ud835\udcaf",tscr:"\ud835\udcc9",TScy:"\u0426",tscy:"\u0446",TSHcy:"\u040b",tshcy:"\u045b",Tstrok:"\u0166",tstrok:"\u0167",twixt:"\u226c",twoheadleftarrow:"\u219e",twoheadrightarrow:"\u21a0",Uacute:"\u00da",uacute:"\u00fa",uarr:"\u2191",Uarr:"\u219f",uArr:"\u21d1",Uarrocir:"\u2949",Ubrcy:"\u040e",ubrcy:"\u045e",Ubreve:"\u016c",ubreve:"\u016d",
Ucirc:"\u00db",ucirc:"\u00fb",Ucy:"\u0423",ucy:"\u0443",udarr:"\u21c5",Udblac:"\u0170",udblac:"\u0171",udhar:"\u296e",ufisht:"\u297e",Ufr:"\ud835\udd18",ufr:"\ud835\udd32",Ugrave:"\u00d9",ugrave:"\u00f9",uHar:"\u2963",uharl:"\u21bf",uharr:"\u21be",uhblk:"\u2580",ulcorn:"\u231c",ulcorner:"\u231c",ulcrop:"\u230f",ultri:"\u25f8",Umacr:"\u016a",umacr:"\u016b",uml:"\u00a8",UnderBar:"_",UnderBrace:"\u23df",UnderBracket:"\u23b5",UnderParenthesis:"\u23dd",Union:"\u22c3",UnionPlus:"\u228e",Uogon:"\u0172",
uogon:"\u0173",Uopf:"\ud835\udd4c",uopf:"\ud835\udd66",UpArrowBar:"\u2912",uparrow:"\u2191",UpArrow:"\u2191",Uparrow:"\u21d1",UpArrowDownArrow:"\u21c5",updownarrow:"\u2195",UpDownArrow:"\u2195",Updownarrow:"\u21d5",UpEquilibrium:"\u296e",upharpoonleft:"\u21bf",upharpoonright:"\u21be",uplus:"\u228e",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",upsi:"\u03c5",Upsi:"\u03d2",upsih:"\u03d2",Upsilon:"\u03a5",upsilon:"\u03c5",UpTeeArrow:"\u21a5",UpTee:"\u22a5",upuparrows:"\u21c8",urcorn:"\u231d",urcorner:"\u231d",
urcrop:"\u230e",Uring:"\u016e",uring:"\u016f",urtri:"\u25f9",Uscr:"\ud835\udcb0",uscr:"\ud835\udcca",utdot:"\u22f0",Utilde:"\u0168",utilde:"\u0169",utri:"\u25b5",utrif:"\u25b4",uuarr:"\u21c8",Uuml:"\u00dc",uuml:"\u00fc",uwangle:"\u29a7",vangrt:"\u299c",varepsilon:"\u03f5",varkappa:"\u03f0",varnothing:"\u2205",varphi:"\u03d5",varpi:"\u03d6",varpropto:"\u221d",varr:"\u2195",vArr:"\u21d5",varrho:"\u03f1",varsigma:"\u03c2",varsubsetneq:"\u228a\ufe00",varsubsetneqq:"\u2acb\ufe00",varsupsetneq:"\u228b\ufe00",
varsupsetneqq:"\u2acc\ufe00",vartheta:"\u03d1",vartriangleleft:"\u22b2",vartriangleright:"\u22b3",vBar:"\u2ae8",Vbar:"\u2aeb",vBarv:"\u2ae9",Vcy:"\u0412",vcy:"\u0432",vdash:"\u22a2",vDash:"\u22a8",Vdash:"\u22a9",VDash:"\u22ab",Vdashl:"\u2ae6",veebar:"\u22bb",vee:"\u2228",Vee:"\u22c1",veeeq:"\u225a",vellip:"\u22ee",verbar:"|",Verbar:"\u2016",vert:"|",Vert:"\u2016",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200a",Vfr:"\ud835\udd19",vfr:"\ud835\udd33",
vltri:"\u22b2",vnsub:"\u2282\u20d2",vnsup:"\u2283\u20d2",Vopf:"\ud835\udd4d",vopf:"\ud835\udd67",vprop:"\u221d",vrtri:"\u22b3",Vscr:"\ud835\udcb1",vscr:"\ud835\udccb",vsubnE:"\u2acb\ufe00",vsubne:"\u228a\ufe00",vsupnE:"\u2acc\ufe00",vsupne:"\u228b\ufe00",Vvdash:"\u22aa",vzigzag:"\u299a",Wcirc:"\u0174",wcirc:"\u0175",wedbar:"\u2a5f",wedge:"\u2227",Wedge:"\u22c0",wedgeq:"\u2259",weierp:"\u2118",Wfr:"\ud835\udd1a",wfr:"\ud835\udd34",Wopf:"\ud835\udd4e",wopf:"\ud835\udd68",wp:"\u2118",wr:"\u2240",wreath:"\u2240",
Wscr:"\ud835\udcb2",wscr:"\ud835\udccc",xcap:"\u22c2",xcirc:"\u25ef",xcup:"\u22c3",xdtri:"\u25bd",Xfr:"\ud835\udd1b",xfr:"\ud835\udd35",xharr:"\u27f7",xhArr:"\u27fa",Xi:"\u039e",xi:"\u03be",xlarr:"\u27f5",xlArr:"\u27f8",xmap:"\u27fc",xnis:"\u22fb",xodot:"\u2a00",Xopf:"\ud835\udd4f",xopf:"\ud835\udd69",xoplus:"\u2a01",xotime:"\u2a02",xrarr:"\u27f6",xrArr:"\u27f9",Xscr:"\ud835\udcb3",xscr:"\ud835\udccd",xsqcup:"\u2a06",xuplus:"\u2a04",xutri:"\u25b3",xvee:"\u22c1",xwedge:"\u22c0",Yacute:"\u00dd",yacute:"\u00fd",
YAcy:"\u042f",yacy:"\u044f",Ycirc:"\u0176",ycirc:"\u0177",Ycy:"\u042b",ycy:"\u044b",yen:"\u00a5",Yfr:"\ud835\udd1c",yfr:"\ud835\udd36",YIcy:"\u0407",yicy:"\u0457",Yopf:"\ud835\udd50",yopf:"\ud835\udd6a",Yscr:"\ud835\udcb4",yscr:"\ud835\udcce",YUcy:"\u042e",yucy:"\u044e",yuml:"\u00ff",Yuml:"\u0178",Zacute:"\u0179",zacute:"\u017a",Zcaron:"\u017d",zcaron:"\u017e",Zcy:"\u0417",zcy:"\u0437",Zdot:"\u017b",zdot:"\u017c",zeetrf:"\u2128",ZeroWidthSpace:"\u200b",Zeta:"\u0396",zeta:"\u03b6",zfr:"\ud835\udd37",
Zfr:"\u2128",ZHcy:"\u0416",zhcy:"\u0436",zigrarr:"\u21dd",zopf:"\ud835\udd6b",Zopf:"\u2124",Zscr:"\ud835\udcb5",zscr:"\ud835\udccf",zwj:"\u200d",zwnj:"\u200c"};var Hza={Aacute:"\u00c1",aacute:"\u00e1",Acirc:"\u00c2",acirc:"\u00e2",acute:"\u00b4",AElig:"\u00c6",aelig:"\u00e6",Agrave:"\u00c0",agrave:"\u00e0",amp:"&",AMP:"&",Aring:"\u00c5",aring:"\u00e5",Atilde:"\u00c3",atilde:"\u00e3",Auml:"\u00c4",auml:"\u00e4",brvbar:"\u00a6",Ccedil:"\u00c7",ccedil:"\u00e7",cedil:"\u00b8",cent:"\u00a2",copy:"\u00a9",COPY:"\u00a9",curren:"\u00a4",deg:"\u00b0",divide:"\u00f7",Eacute:"\u00c9",eacute:"\u00e9",Ecirc:"\u00ca",ecirc:"\u00ea",Egrave:"\u00c8",egrave:"\u00e8",ETH:"\u00d0",
eth:"\u00f0",Euml:"\u00cb",euml:"\u00eb",frac12:"\u00bd",frac14:"\u00bc",frac34:"\u00be",gt:">",GT:">",Iacute:"\u00cd",iacute:"\u00ed",Icirc:"\u00ce",icirc:"\u00ee",iexcl:"\u00a1",Igrave:"\u00cc",igrave:"\u00ec",iquest:"\u00bf",Iuml:"\u00cf",iuml:"\u00ef",laquo:"\u00ab",lt:"<",LT:"<",macr:"\u00af",micro:"\u00b5",middot:"\u00b7",nbsp:"\u00a0",not:"\u00ac",Ntilde:"\u00d1",ntilde:"\u00f1",Oacute:"\u00d3",oacute:"\u00f3",Ocirc:"\u00d4",ocirc:"\u00f4",Ograve:"\u00d2",ograve:"\u00f2",ordf:"\u00aa",ordm:"\u00ba",
Oslash:"\u00d8",oslash:"\u00f8",Otilde:"\u00d5",otilde:"\u00f5",Ouml:"\u00d6",ouml:"\u00f6",para:"\u00b6",plusmn:"\u00b1",pound:"\u00a3",quot:'"',QUOT:'"',raquo:"\u00bb",reg:"\u00ae",REG:"\u00ae",sect:"\u00a7",shy:"\u00ad",sup1:"\u00b9",sup2:"\u00b2",sup3:"\u00b3",szlig:"\u00df",THORN:"\u00de",thorn:"\u00fe",times:"\u00d7",Uacute:"\u00da",uacute:"\u00fa",Ucirc:"\u00db",ucirc:"\u00fb",Ugrave:"\u00d9",ugrave:"\u00f9",uml:"\u00a8",Uuml:"\u00dc",uuml:"\u00fc",Yacute:"\u00dd",yacute:"\u00fd",yen:"\u00a5",
yuml:"\u00ff"};Object.keys({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}).join("|");Object.keys(nPk).join("|");var P1_=function(){function F(M){M.substr(-1)!==";"&&(M+=";");return R(M)}
for(var W=Object.keys(Hza).sort(lBI),E=Object.keys(nPk).sort(lBI),h=0,d=0;h<E.length;h++)W[d]===E[h]?(E[h]+=";?",d++):E[h]+=";";var V=new RegExp("&(?:"+E.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),R=yUR();return function(M){return String(M).replace(V,F)}}();/*

 Copyright (c) 2015 Vitaly Puzrin, Alex Kocharin.

 Permission is hereby granted, free of charge, to any person
 obtaining a copy of this software and associated documentation
 files (the "Software"), to deal in the Software without
 restriction, including without limitation the rights to use,
 copy, modify, merge, publish, distribute, sublicense, and/or sell
 copies of the Software, and to permit persons to whom the
 Software is furnished to do so, subject to the following
 conditions:

 The above copyright notice and this permission notice shall be
 included in all copies or substantial portions of the Software.

 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
 OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
 NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
 HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
 WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
 FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
 OTHER DEALINGS IN THE SOFTWARE.
*/
var JT_={};var aG_=RegExp("^(?:<[A-Za-z][A-Za-z0-9-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*/?>|</[A-Za-z][A-Za-z0-9-]*\\s*[>]|\x3c!----\x3e|\x3c!--(?:-?[^>-])(?:-?[^-])*--\x3e|[<][?].*?[?][>]|<![A-Z]+\\s+[^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)","i"),fGX=/[\\&]/,Oza=RegExp("\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","gi"),bzT=RegExp('[&<>"]',"g"),lGe=RegExp('&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});|[&<>"]',
"gi"),n3B=function(F){return F.charCodeAt(0)===92?F.charAt(1):P1_(F)},yTB=function(F){return fGX.test(F)?F.replace(Oza,n3B):F},j4O=function(F){try{var W,E="";
if(typeof d!=="string"){var h=d;var d=";/?:@&=+$,-_.!~*'()#"}typeof h==="undefined"&&(h=!0);var V,R=JT_[d];if(R)var M=R;else{R=JT_[d]=[];for(V=0;V<128;V++){var g=String.fromCharCode(V);/^[0-9a-z]$/i.test(g)?R.push(g):R.push("%"+("0"+V.toString(16).toUpperCase()).slice(-2))}for(V=0;V<d.length;V++)R[d.charCodeAt(V)]=d[V];M=R}var t=0;for(W=F.length;t<W;t++){var C=F.charCodeAt(t);if(h&&C===37&&t+2<W&&/^[0-9a-f]{2}$/i.test(F.slice(t+1,t+3)))E+=F.slice(t,t+3),t+=2;else if(C<128)E+=M[C];else if(C>=55296&&
C<=57343){if(C>=55296&&C<=56319&&t+1<W){var B=F.charCodeAt(t+1);if(B>=56320&&B<=57343){E+=encodeURIComponent(F[t]+F[t+1]);t++;continue}}E+="%EF%BF%BD"}else E+=encodeURIComponent(F[t])}return E}catch(I){return F}},izX=function(F){switch(F){case "&":return"&amp;";
case "<":return"&lt;";case ">":return"&gt;";case '"':return"&quot;";default:return F}},vi=function(F,W){return bzT.test(F)?W?F.replace(lGe,izX):F.replace(bzT,izX):F};/*

 lib/from-code-point.js is derived from a polyfill
 Copyright Mathias Bynens <http://mathiasbynens.be/>

 Permission is hereby granted, free of charge, to any person obtaining
 a copy of this software and associated documentation files (the
 "Software"), to deal in the Software without restriction, including
 without limitation the rights to use, copy, modify, merge, publish,
 distribute, sublicense, and/or sell copies of the Software, and to
 permit persons to whom the Software is furnished to do so, subject to
 the following conditions:

 The above copyright notice and this permission notice shall be
 included in all copies or substantial portions of the Software.

 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
 NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
 LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
 OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 http://mths.be/fromcodepoint v0.2.1 by @mathias */
var Iq;if(String.fromCodePoint)Iq=function(F){try{return String.fromCodePoint(F)}catch(W){if(W instanceof RangeError)return String.fromCharCode(65533);throw W;}};
else{var rTM=String.fromCharCode,TQu=Math.floor;Iq=function(){var F=[],W=-1,E=arguments.length;if(!E)return"";for(var h="";++W<E;){var d=Number(arguments[W]);if(!isFinite(d)||d<0||d>1114111||TQu(d)!==d)return String.fromCharCode(65533);if(d<=65535)F.push(d);else{d-=65536;var V=(d>>10)+55296;d=d%1024+56320;F.push(V,d)}if(W+1===E||F.length>16384)h+=rTM.apply(null,F),F.length=0}return h}};var o3z=function(F){this.root=this.current=F;this.entering=!0};
o3z.prototype.next=function(){var F=this.current,W=this.entering;if(F===null)return null;a:switch(F._type){case "document":case "block_quote":case "list":case "item":case "paragraph":case "heading":case "emph":case "strong":case "link":case "image":case "custom_inline":case "custom_block":case "table":case "row":case "th":case "td":var E=!0;break a;default:E=!1}W&&E?F._firstChild?(this.current=F._firstChild,this.entering=!0):this.entering=!1:F===this.root?this.current=null:F._next===null?(this.current=
F._parent,this.entering=!1):(this.current=F._next,this.entering=!0);return{entering:W,node:F}};
var MW=function(F,W){this._type=F;this._next=this._prev=this._lastChild=this._firstChild=this._parent=null;this._sourcepos=W;this._lastLineBlank=!1;this._open=!0;this._literal=this._string_content=null;this._listData={};this._title=this._destination=this._info=null;this._isFenced=!1;this._fenceChar=null;this._fenceLength=0;this._onExit=this._onEnter=this._level=this._fenceOffset=null};
MW.prototype.appendChild=function(F){ci(F);F._parent=this;this._lastChild?(this._lastChild._next=F,F._prev=this._lastChild):this._firstChild=F;this._lastChild=F};
var ci=function(F){F._prev?F._prev._next=F._next:F._parent&&(F._parent._firstChild=F._next);F._next?F._next._prev=F._prev:F._parent&&(F._parent._lastChild=F._prev);F._parent=null;F._next=null;F._prev=null},GKT=function(F,W){ci(W);
W._next=F._next;W._next&&(W._next._prev=W);W._prev=F;F._next=W;W._parent=F._parent;W._next||(W._parent._lastChild=W)};
MW.prototype.insertBefore=function(F){ci(F);F._prev=this._prev;F._prev&&(F._prev._next=F);F._next=this;this._prev=F;F._parent=this._parent;F._prev||(F._parent._firstChild=F)};
_.Sn.Object.defineProperties(MW.prototype,{type:{configurable:!0,enumerable:!0,get:function(){return this._type}},
firstChild:{configurable:!0,enumerable:!0,get:function(){return this._firstChild}},
lastChild:{configurable:!0,enumerable:!0,get:function(){return this._lastChild}},
next:{configurable:!0,enumerable:!0,get:function(){return this._next}},
prev:{configurable:!0,enumerable:!0,get:function(){return this._prev}},
parent:{configurable:!0,enumerable:!0,get:function(){return this._parent}},
sourcepos:{configurable:!0,enumerable:!0,get:function(){return this._sourcepos}},
literal:{configurable:!0,enumerable:!0,get:function(){return this._literal},
set:function(F){this._literal=F}},
destination:{configurable:!0,enumerable:!0,get:function(){return this._destination},
set:function(F){this._destination=F}},
title:{configurable:!0,enumerable:!0,get:function(){return this._title},
set:function(F){this._title=F}},
info:{configurable:!0,enumerable:!0,get:function(){return this._info},
set:function(F){this._info=F}},
level:{configurable:!0,enumerable:!0,get:function(){return this._level},
set:function(F){this._level=F}},
listType:{configurable:!0,enumerable:!0,get:function(){return this._listData.type},
set:function(F){this._listData.type=F}},
listTight:{configurable:!0,enumerable:!0,get:function(){return this._listData.tight},
set:function(F){this._listData.tight=F}},
listStart:{configurable:!0,enumerable:!0,get:function(){return this._listData.start},
set:function(F){this._listData.start=F}},
onEnter:{configurable:!0,enumerable:!0,get:function(){return this._onEnter},
set:function(F){this._onEnter=F}},
onExit:{configurable:!0,enumerable:!0,get:function(){return this._onExit},
set:function(F){this._onExit=F}}});var jVS=/[ \t\r\n]+|[A-Z\xB5\xC0-\xD6\xD8-\xDF\u0100\u0102\u0104\u0106\u0108\u010A\u010C\u010E\u0110\u0112\u0114\u0116\u0118\u011A\u011C\u011E\u0120\u0122\u0124\u0126\u0128\u012A\u012C\u012E\u0130\u0132\u0134\u0136\u0139\u013B\u013D\u013F\u0141\u0143\u0145\u0147\u0149\u014A\u014C\u014E\u0150\u0152\u0154\u0156\u0158\u015A\u015C\u015E\u0160\u0162\u0164\u0166\u0168\u016A\u016C\u016E\u0170\u0172\u0174\u0176\u0178\u0179\u017B\u017D\u017F\u0181\u0182\u0184\u0186\u0187\u0189-\u018B\u018E-\u0191\u0193\u0194\u0196-\u0198\u019C\u019D\u019F\u01A0\u01A2\u01A4\u01A6\u01A7\u01A9\u01AC\u01AE\u01AF\u01B1-\u01B3\u01B5\u01B7\u01B8\u01BC\u01C4\u01C5\u01C7\u01C8\u01CA\u01CB\u01CD\u01CF\u01D1\u01D3\u01D5\u01D7\u01D9\u01DB\u01DE\u01E0\u01E2\u01E4\u01E6\u01E8\u01EA\u01EC\u01EE\u01F0-\u01F2\u01F4\u01F6-\u01F8\u01FA\u01FC\u01FE\u0200\u0202\u0204\u0206\u0208\u020A\u020C\u020E\u0210\u0212\u0214\u0216\u0218\u021A\u021C\u021E\u0220\u0222\u0224\u0226\u0228\u022A\u022C\u022E\u0230\u0232\u023A\u023B\u023D\u023E\u0241\u0243-\u0246\u0248\u024A\u024C\u024E\u0345\u0370\u0372\u0376\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03AB\u03B0\u03C2\u03CF-\u03D1\u03D5\u03D6\u03D8\u03DA\u03DC\u03DE\u03E0\u03E2\u03E4\u03E6\u03E8\u03EA\u03EC\u03EE\u03F0\u03F1\u03F4\u03F5\u03F7\u03F9\u03FA\u03FD-\u042F\u0460\u0462\u0464\u0466\u0468\u046A\u046C\u046E\u0470\u0472\u0474\u0476\u0478\u047A\u047C\u047E\u0480\u048A\u048C\u048E\u0490\u0492\u0494\u0496\u0498\u049A\u049C\u049E\u04A0\u04A2\u04A4\u04A6\u04A8\u04AA\u04AC\u04AE\u04B0\u04B2\u04B4\u04B6\u04B8\u04BA\u04BC\u04BE\u04C0\u04C1\u04C3\u04C5\u04C7\u04C9\u04CB\u04CD\u04D0\u04D2\u04D4\u04D6\u04D8\u04DA\u04DC\u04DE\u04E0\u04E2\u04E4\u04E6\u04E8\u04EA\u04EC\u04EE\u04F0\u04F2\u04F4\u04F6\u04F8\u04FA\u04FC\u04FE\u0500\u0502\u0504\u0506\u0508\u050A\u050C\u050E\u0510\u0512\u0514\u0516\u0518\u051A\u051C\u051E\u0520\u0522\u0524\u0526\u0528\u052A\u052C\u052E\u0531-\u0556\u0587\u10A0-\u10C5\u10C7\u10CD\u1E00\u1E02\u1E04\u1E06\u1E08\u1E0A\u1E0C\u1E0E\u1E10\u1E12\u1E14\u1E16\u1E18\u1E1A\u1E1C\u1E1E\u1E20\u1E22\u1E24\u1E26\u1E28\u1E2A\u1E2C\u1E2E\u1E30\u1E32\u1E34\u1E36\u1E38\u1E3A\u1E3C\u1E3E\u1E40\u1E42\u1E44\u1E46\u1E48\u1E4A\u1E4C\u1E4E\u1E50\u1E52\u1E54\u1E56\u1E58\u1E5A\u1E5C\u1E5E\u1E60\u1E62\u1E64\u1E66\u1E68\u1E6A\u1E6C\u1E6E\u1E70\u1E72\u1E74\u1E76\u1E78\u1E7A\u1E7C\u1E7E\u1E80\u1E82\u1E84\u1E86\u1E88\u1E8A\u1E8C\u1E8E\u1E90\u1E92\u1E94\u1E96-\u1E9B\u1E9E\u1EA0\u1EA2\u1EA4\u1EA6\u1EA8\u1EAA\u1EAC\u1EAE\u1EB0\u1EB2\u1EB4\u1EB6\u1EB8\u1EBA\u1EBC\u1EBE\u1EC0\u1EC2\u1EC4\u1EC6\u1EC8\u1ECA\u1ECC\u1ECE\u1ED0\u1ED2\u1ED4\u1ED6\u1ED8\u1EDA\u1EDC\u1EDE\u1EE0\u1EE2\u1EE4\u1EE6\u1EE8\u1EEA\u1EEC\u1EEE\u1EF0\u1EF2\u1EF4\u1EF6\u1EF8\u1EFA\u1EFC\u1EFE\u1F08-\u1F0F\u1F18-\u1F1D\u1F28-\u1F2F\u1F38-\u1F3F\u1F48-\u1F4D\u1F50\u1F52\u1F54\u1F56\u1F59\u1F5B\u1F5D\u1F5F\u1F68-\u1F6F\u1F80-\u1FAF\u1FB2-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD2\u1FD3\u1FD6-\u1FDB\u1FE2-\u1FE4\u1FE6-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2126\u212A\u212B\u2132\u2160-\u216F\u2183\u24B6-\u24CF\u2C00-\u2C2E\u2C60\u2C62-\u2C64\u2C67\u2C69\u2C6B\u2C6D-\u2C70\u2C72\u2C75\u2C7E-\u2C80\u2C82\u2C84\u2C86\u2C88\u2C8A\u2C8C\u2C8E\u2C90\u2C92\u2C94\u2C96\u2C98\u2C9A\u2C9C\u2C9E\u2CA0\u2CA2\u2CA4\u2CA6\u2CA8\u2CAA\u2CAC\u2CAE\u2CB0\u2CB2\u2CB4\u2CB6\u2CB8\u2CBA\u2CBC\u2CBE\u2CC0\u2CC2\u2CC4\u2CC6\u2CC8\u2CCA\u2CCC\u2CCE\u2CD0\u2CD2\u2CD4\u2CD6\u2CD8\u2CDA\u2CDC\u2CDE\u2CE0\u2CE2\u2CEB\u2CED\u2CF2\uA640\uA642\uA644\uA646\uA648\uA64A\uA64C\uA64E\uA650\uA652\uA654\uA656\uA658\uA65A\uA65C\uA65E\uA660\uA662\uA664\uA666\uA668\uA66A\uA66C\uA680\uA682\uA684\uA686\uA688\uA68A\uA68C\uA68E\uA690\uA692\uA694\uA696\uA698\uA69A\uA722\uA724\uA726\uA728\uA72A\uA72C\uA72E\uA732\uA734\uA736\uA738\uA73A\uA73C\uA73E\uA740\uA742\uA744\uA746\uA748\uA74A\uA74C\uA74E\uA750\uA752\uA754\uA756\uA758\uA75A\uA75C\uA75E\uA760\uA762\uA764\uA766\uA768\uA76A\uA76C\uA76E\uA779\uA77B\uA77D\uA77E\uA780\uA782\uA784\uA786\uA78B\uA78D\uA790\uA792\uA796\uA798\uA79A\uA79C\uA79E\uA7A0\uA7A2\uA7A4\uA7A6\uA7A8\uA7AA-\uA7AD\uA7B0\uA7B1\uFB00-\uFB06\uFB13-\uFB17\uFF21-\uFF3A]|\uD801[\uDC00-\uDC27]|\uD806[\uDCA0-\uDCBF]/g,
ikG={A:"a",B:"b",C:"c",D:"d",E:"e",F:"f",G:"g",H:"h",I:"i",J:"j",K:"k",L:"l",M:"m",N:"n",O:"o",P:"p",Q:"q",R:"r",S:"s",T:"t",U:"u",V:"v",W:"w",X:"x",Y:"y",Z:"z","\u00b5":"\u03bc","\u00c0":"\u00e0","\u00c1":"\u00e1","\u00c2":"\u00e2","\u00c3":"\u00e3","\u00c4":"\u00e4","\u00c5":"\u00e5","\u00c6":"\u00e6","\u00c7":"\u00e7","\u00c8":"\u00e8","\u00c9":"\u00e9","\u00ca":"\u00ea","\u00cb":"\u00eb","\u00cc":"\u00ec","\u00cd":"\u00ed","\u00ce":"\u00ee","\u00cf":"\u00ef","\u00d0":"\u00f0","\u00d1":"\u00f1",
"\u00d2":"\u00f2","\u00d3":"\u00f3","\u00d4":"\u00f4","\u00d5":"\u00f5","\u00d6":"\u00f6","\u00d8":"\u00f8","\u00d9":"\u00f9","\u00da":"\u00fa","\u00db":"\u00fb","\u00dc":"\u00fc","\u00dd":"\u00fd","\u00de":"\u00fe","\u0100":"\u0101","\u0102":"\u0103","\u0104":"\u0105","\u0106":"\u0107","\u0108":"\u0109","\u010a":"\u010b","\u010c":"\u010d","\u010e":"\u010f","\u0110":"\u0111","\u0112":"\u0113","\u0114":"\u0115","\u0116":"\u0117","\u0118":"\u0119","\u011a":"\u011b","\u011c":"\u011d","\u011e":"\u011f",
"\u0120":"\u0121","\u0122":"\u0123","\u0124":"\u0125","\u0126":"\u0127","\u0128":"\u0129","\u012a":"\u012b","\u012c":"\u012d","\u012e":"\u012f","\u0132":"\u0133","\u0134":"\u0135","\u0136":"\u0137","\u0139":"\u013a","\u013b":"\u013c","\u013d":"\u013e","\u013f":"\u0140","\u0141":"\u0142","\u0143":"\u0144","\u0145":"\u0146","\u0147":"\u0148","\u014a":"\u014b","\u014c":"\u014d","\u014e":"\u014f","\u0150":"\u0151","\u0152":"\u0153","\u0154":"\u0155","\u0156":"\u0157","\u0158":"\u0159","\u015a":"\u015b",
"\u015c":"\u015d","\u015e":"\u015f","\u0160":"\u0161","\u0162":"\u0163","\u0164":"\u0165","\u0166":"\u0167","\u0168":"\u0169","\u016a":"\u016b","\u016c":"\u016d","\u016e":"\u016f","\u0170":"\u0171","\u0172":"\u0173","\u0174":"\u0175","\u0176":"\u0177","\u0178":"\u00ff","\u0179":"\u017a","\u017b":"\u017c","\u017d":"\u017e","\u017f":"s","\u0181":"\u0253","\u0182":"\u0183","\u0184":"\u0185","\u0186":"\u0254","\u0187":"\u0188","\u0189":"\u0256","\u018a":"\u0257","\u018b":"\u018c","\u018e":"\u01dd","\u018f":"\u0259",
"\u0190":"\u025b","\u0191":"\u0192","\u0193":"\u0260","\u0194":"\u0263","\u0196":"\u0269","\u0197":"\u0268","\u0198":"\u0199","\u019c":"\u026f","\u019d":"\u0272","\u019f":"\u0275","\u01a0":"\u01a1","\u01a2":"\u01a3","\u01a4":"\u01a5","\u01a6":"\u0280","\u01a7":"\u01a8","\u01a9":"\u0283","\u01ac":"\u01ad","\u01ae":"\u0288","\u01af":"\u01b0","\u01b1":"\u028a","\u01b2":"\u028b","\u01b3":"\u01b4","\u01b5":"\u01b6","\u01b7":"\u0292","\u01b8":"\u01b9","\u01bc":"\u01bd","\u01c4":"\u01c6","\u01c5":"\u01c6",
"\u01c7":"\u01c9","\u01c8":"\u01c9","\u01ca":"\u01cc","\u01cb":"\u01cc","\u01cd":"\u01ce","\u01cf":"\u01d0","\u01d1":"\u01d2","\u01d3":"\u01d4","\u01d5":"\u01d6","\u01d7":"\u01d8","\u01d9":"\u01da","\u01db":"\u01dc","\u01de":"\u01df","\u01e0":"\u01e1","\u01e2":"\u01e3","\u01e4":"\u01e5","\u01e6":"\u01e7","\u01e8":"\u01e9","\u01ea":"\u01eb","\u01ec":"\u01ed","\u01ee":"\u01ef","\u01f1":"\u01f3","\u01f2":"\u01f3","\u01f4":"\u01f5","\u01f6":"\u0195","\u01f7":"\u01bf","\u01f8":"\u01f9","\u01fa":"\u01fb",
"\u01fc":"\u01fd","\u01fe":"\u01ff","\u0200":"\u0201","\u0202":"\u0203","\u0204":"\u0205","\u0206":"\u0207","\u0208":"\u0209","\u020a":"\u020b","\u020c":"\u020d","\u020e":"\u020f","\u0210":"\u0211","\u0212":"\u0213","\u0214":"\u0215","\u0216":"\u0217","\u0218":"\u0219","\u021a":"\u021b","\u021c":"\u021d","\u021e":"\u021f","\u0220":"\u019e","\u0222":"\u0223","\u0224":"\u0225","\u0226":"\u0227","\u0228":"\u0229","\u022a":"\u022b","\u022c":"\u022d","\u022e":"\u022f","\u0230":"\u0231","\u0232":"\u0233",
"\u023a":"\u2c65","\u023b":"\u023c","\u023d":"\u019a","\u023e":"\u2c66","\u0241":"\u0242","\u0243":"\u0180","\u0244":"\u0289","\u0245":"\u028c","\u0246":"\u0247","\u0248":"\u0249","\u024a":"\u024b","\u024c":"\u024d","\u024e":"\u024f","\u0345":"\u03b9","\u0370":"\u0371","\u0372":"\u0373","\u0376":"\u0377","\u037f":"\u03f3","\u0386":"\u03ac","\u0388":"\u03ad","\u0389":"\u03ae","\u038a":"\u03af","\u038c":"\u03cc","\u038e":"\u03cd","\u038f":"\u03ce","\u0391":"\u03b1","\u0392":"\u03b2","\u0393":"\u03b3",
"\u0394":"\u03b4","\u0395":"\u03b5","\u0396":"\u03b6","\u0397":"\u03b7","\u0398":"\u03b8","\u0399":"\u03b9","\u039a":"\u03ba","\u039b":"\u03bb","\u039c":"\u03bc","\u039d":"\u03bd","\u039e":"\u03be","\u039f":"\u03bf","\u03a0":"\u03c0","\u03a1":"\u03c1","\u03a3":"\u03c3","\u03a4":"\u03c4","\u03a5":"\u03c5","\u03a6":"\u03c6","\u03a7":"\u03c7","\u03a8":"\u03c8","\u03a9":"\u03c9","\u03aa":"\u03ca","\u03ab":"\u03cb","\u03c2":"\u03c3","\u03cf":"\u03d7","\u03d0":"\u03b2","\u03d1":"\u03b8","\u03d5":"\u03c6",
"\u03d6":"\u03c0","\u03d8":"\u03d9","\u03da":"\u03db","\u03dc":"\u03dd","\u03de":"\u03df","\u03e0":"\u03e1","\u03e2":"\u03e3","\u03e4":"\u03e5","\u03e6":"\u03e7","\u03e8":"\u03e9","\u03ea":"\u03eb","\u03ec":"\u03ed","\u03ee":"\u03ef","\u03f0":"\u03ba","\u03f1":"\u03c1","\u03f4":"\u03b8","\u03f5":"\u03b5","\u03f7":"\u03f8","\u03f9":"\u03f2","\u03fa":"\u03fb","\u03fd":"\u037b","\u03fe":"\u037c","\u03ff":"\u037d","\u0400":"\u0450","\u0401":"\u0451","\u0402":"\u0452","\u0403":"\u0453","\u0404":"\u0454",
"\u0405":"\u0455","\u0406":"\u0456","\u0407":"\u0457","\u0408":"\u0458","\u0409":"\u0459","\u040a":"\u045a","\u040b":"\u045b","\u040c":"\u045c","\u040d":"\u045d","\u040e":"\u045e","\u040f":"\u045f","\u0410":"\u0430","\u0411":"\u0431","\u0412":"\u0432","\u0413":"\u0433","\u0414":"\u0434","\u0415":"\u0435","\u0416":"\u0436","\u0417":"\u0437","\u0418":"\u0438","\u0419":"\u0439","\u041a":"\u043a","\u041b":"\u043b","\u041c":"\u043c","\u041d":"\u043d","\u041e":"\u043e","\u041f":"\u043f","\u0420":"\u0440",
"\u0421":"\u0441","\u0422":"\u0442","\u0423":"\u0443","\u0424":"\u0444","\u0425":"\u0445","\u0426":"\u0446","\u0427":"\u0447","\u0428":"\u0448","\u0429":"\u0449","\u042a":"\u044a","\u042b":"\u044b","\u042c":"\u044c","\u042d":"\u044d","\u042e":"\u044e","\u042f":"\u044f","\u0460":"\u0461","\u0462":"\u0463","\u0464":"\u0465","\u0466":"\u0467","\u0468":"\u0469","\u046a":"\u046b","\u046c":"\u046d","\u046e":"\u046f","\u0470":"\u0471","\u0472":"\u0473","\u0474":"\u0475","\u0476":"\u0477","\u0478":"\u0479",
"\u047a":"\u047b","\u047c":"\u047d","\u047e":"\u047f","\u0480":"\u0481","\u048a":"\u048b","\u048c":"\u048d","\u048e":"\u048f","\u0490":"\u0491","\u0492":"\u0493","\u0494":"\u0495","\u0496":"\u0497","\u0498":"\u0499","\u049a":"\u049b","\u049c":"\u049d","\u049e":"\u049f","\u04a0":"\u04a1","\u04a2":"\u04a3","\u04a4":"\u04a5","\u04a6":"\u04a7","\u04a8":"\u04a9","\u04aa":"\u04ab","\u04ac":"\u04ad","\u04ae":"\u04af","\u04b0":"\u04b1","\u04b2":"\u04b3","\u04b4":"\u04b5","\u04b6":"\u04b7","\u04b8":"\u04b9",
"\u04ba":"\u04bb","\u04bc":"\u04bd","\u04be":"\u04bf","\u04c0":"\u04cf","\u04c1":"\u04c2","\u04c3":"\u04c4","\u04c5":"\u04c6","\u04c7":"\u04c8","\u04c9":"\u04ca","\u04cb":"\u04cc","\u04cd":"\u04ce","\u04d0":"\u04d1","\u04d2":"\u04d3","\u04d4":"\u04d5","\u04d6":"\u04d7","\u04d8":"\u04d9","\u04da":"\u04db","\u04dc":"\u04dd","\u04de":"\u04df","\u04e0":"\u04e1","\u04e2":"\u04e3","\u04e4":"\u04e5","\u04e6":"\u04e7","\u04e8":"\u04e9","\u04ea":"\u04eb","\u04ec":"\u04ed","\u04ee":"\u04ef","\u04f0":"\u04f1",
"\u04f2":"\u04f3","\u04f4":"\u04f5","\u04f6":"\u04f7","\u04f8":"\u04f9","\u04fa":"\u04fb","\u04fc":"\u04fd","\u04fe":"\u04ff","\u0500":"\u0501","\u0502":"\u0503","\u0504":"\u0505","\u0506":"\u0507","\u0508":"\u0509","\u050a":"\u050b","\u050c":"\u050d","\u050e":"\u050f","\u0510":"\u0511","\u0512":"\u0513","\u0514":"\u0515","\u0516":"\u0517","\u0518":"\u0519","\u051a":"\u051b","\u051c":"\u051d","\u051e":"\u051f","\u0520":"\u0521","\u0522":"\u0523","\u0524":"\u0525","\u0526":"\u0527","\u0528":"\u0529",
"\u052a":"\u052b","\u052c":"\u052d","\u052e":"\u052f","\u0531":"\u0561","\u0532":"\u0562","\u0533":"\u0563","\u0534":"\u0564","\u0535":"\u0565","\u0536":"\u0566","\u0537":"\u0567","\u0538":"\u0568","\u0539":"\u0569","\u053a":"\u056a","\u053b":"\u056b","\u053c":"\u056c","\u053d":"\u056d","\u053e":"\u056e","\u053f":"\u056f","\u0540":"\u0570","\u0541":"\u0571","\u0542":"\u0572","\u0543":"\u0573","\u0544":"\u0574","\u0545":"\u0575","\u0546":"\u0576","\u0547":"\u0577","\u0548":"\u0578","\u0549":"\u0579",
"\u054a":"\u057a","\u054b":"\u057b","\u054c":"\u057c","\u054d":"\u057d","\u054e":"\u057e","\u054f":"\u057f","\u0550":"\u0580","\u0551":"\u0581","\u0552":"\u0582","\u0553":"\u0583","\u0554":"\u0584","\u0555":"\u0585","\u0556":"\u0586","\u10a0":"\u2d00","\u10a1":"\u2d01","\u10a2":"\u2d02","\u10a3":"\u2d03","\u10a4":"\u2d04","\u10a5":"\u2d05","\u10a6":"\u2d06","\u10a7":"\u2d07","\u10a8":"\u2d08","\u10a9":"\u2d09","\u10aa":"\u2d0a","\u10ab":"\u2d0b","\u10ac":"\u2d0c","\u10ad":"\u2d0d","\u10ae":"\u2d0e",
"\u10af":"\u2d0f","\u10b0":"\u2d10","\u10b1":"\u2d11","\u10b2":"\u2d12","\u10b3":"\u2d13","\u10b4":"\u2d14","\u10b5":"\u2d15","\u10b6":"\u2d16","\u10b7":"\u2d17","\u10b8":"\u2d18","\u10b9":"\u2d19","\u10ba":"\u2d1a","\u10bb":"\u2d1b","\u10bc":"\u2d1c","\u10bd":"\u2d1d","\u10be":"\u2d1e","\u10bf":"\u2d1f","\u10c0":"\u2d20","\u10c1":"\u2d21","\u10c2":"\u2d22","\u10c3":"\u2d23","\u10c4":"\u2d24","\u10c5":"\u2d25","\u10c7":"\u2d27","\u10cd":"\u2d2d","\u1e00":"\u1e01","\u1e02":"\u1e03","\u1e04":"\u1e05",
"\u1e06":"\u1e07","\u1e08":"\u1e09","\u1e0a":"\u1e0b","\u1e0c":"\u1e0d","\u1e0e":"\u1e0f","\u1e10":"\u1e11","\u1e12":"\u1e13","\u1e14":"\u1e15","\u1e16":"\u1e17","\u1e18":"\u1e19","\u1e1a":"\u1e1b","\u1e1c":"\u1e1d","\u1e1e":"\u1e1f","\u1e20":"\u1e21","\u1e22":"\u1e23","\u1e24":"\u1e25","\u1e26":"\u1e27","\u1e28":"\u1e29","\u1e2a":"\u1e2b","\u1e2c":"\u1e2d","\u1e2e":"\u1e2f","\u1e30":"\u1e31","\u1e32":"\u1e33","\u1e34":"\u1e35","\u1e36":"\u1e37","\u1e38":"\u1e39","\u1e3a":"\u1e3b","\u1e3c":"\u1e3d",
"\u1e3e":"\u1e3f","\u1e40":"\u1e41","\u1e42":"\u1e43","\u1e44":"\u1e45","\u1e46":"\u1e47","\u1e48":"\u1e49","\u1e4a":"\u1e4b","\u1e4c":"\u1e4d","\u1e4e":"\u1e4f","\u1e50":"\u1e51","\u1e52":"\u1e53","\u1e54":"\u1e55","\u1e56":"\u1e57","\u1e58":"\u1e59","\u1e5a":"\u1e5b","\u1e5c":"\u1e5d","\u1e5e":"\u1e5f","\u1e60":"\u1e61","\u1e62":"\u1e63","\u1e64":"\u1e65","\u1e66":"\u1e67","\u1e68":"\u1e69","\u1e6a":"\u1e6b","\u1e6c":"\u1e6d","\u1e6e":"\u1e6f","\u1e70":"\u1e71","\u1e72":"\u1e73","\u1e74":"\u1e75",
"\u1e76":"\u1e77","\u1e78":"\u1e79","\u1e7a":"\u1e7b","\u1e7c":"\u1e7d","\u1e7e":"\u1e7f","\u1e80":"\u1e81","\u1e82":"\u1e83","\u1e84":"\u1e85","\u1e86":"\u1e87","\u1e88":"\u1e89","\u1e8a":"\u1e8b","\u1e8c":"\u1e8d","\u1e8e":"\u1e8f","\u1e90":"\u1e91","\u1e92":"\u1e93","\u1e94":"\u1e95","\u1e9b":"\u1e61","\u1ea0":"\u1ea1","\u1ea2":"\u1ea3","\u1ea4":"\u1ea5","\u1ea6":"\u1ea7","\u1ea8":"\u1ea9","\u1eaa":"\u1eab","\u1eac":"\u1ead","\u1eae":"\u1eaf","\u1eb0":"\u1eb1","\u1eb2":"\u1eb3","\u1eb4":"\u1eb5",
"\u1eb6":"\u1eb7","\u1eb8":"\u1eb9","\u1eba":"\u1ebb","\u1ebc":"\u1ebd","\u1ebe":"\u1ebf","\u1ec0":"\u1ec1","\u1ec2":"\u1ec3","\u1ec4":"\u1ec5","\u1ec6":"\u1ec7","\u1ec8":"\u1ec9","\u1eca":"\u1ecb","\u1ecc":"\u1ecd","\u1ece":"\u1ecf","\u1ed0":"\u1ed1","\u1ed2":"\u1ed3","\u1ed4":"\u1ed5","\u1ed6":"\u1ed7","\u1ed8":"\u1ed9","\u1eda":"\u1edb","\u1edc":"\u1edd","\u1ede":"\u1edf","\u1ee0":"\u1ee1","\u1ee2":"\u1ee3","\u1ee4":"\u1ee5","\u1ee6":"\u1ee7","\u1ee8":"\u1ee9","\u1eea":"\u1eeb","\u1eec":"\u1eed",
"\u1eee":"\u1eef","\u1ef0":"\u1ef1","\u1ef2":"\u1ef3","\u1ef4":"\u1ef5","\u1ef6":"\u1ef7","\u1ef8":"\u1ef9","\u1efa":"\u1efb","\u1efc":"\u1efd","\u1efe":"\u1eff","\u1f08":"\u1f00","\u1f09":"\u1f01","\u1f0a":"\u1f02","\u1f0b":"\u1f03","\u1f0c":"\u1f04","\u1f0d":"\u1f05","\u1f0e":"\u1f06","\u1f0f":"\u1f07","\u1f18":"\u1f10","\u1f19":"\u1f11","\u1f1a":"\u1f12","\u1f1b":"\u1f13","\u1f1c":"\u1f14","\u1f1d":"\u1f15","\u1f28":"\u1f20","\u1f29":"\u1f21","\u1f2a":"\u1f22","\u1f2b":"\u1f23","\u1f2c":"\u1f24",
"\u1f2d":"\u1f25","\u1f2e":"\u1f26","\u1f2f":"\u1f27","\u1f38":"\u1f30","\u1f39":"\u1f31","\u1f3a":"\u1f32","\u1f3b":"\u1f33","\u1f3c":"\u1f34","\u1f3d":"\u1f35","\u1f3e":"\u1f36","\u1f3f":"\u1f37","\u1f48":"\u1f40","\u1f49":"\u1f41","\u1f4a":"\u1f42","\u1f4b":"\u1f43","\u1f4c":"\u1f44","\u1f4d":"\u1f45","\u1f59":"\u1f51","\u1f5b":"\u1f53","\u1f5d":"\u1f55","\u1f5f":"\u1f57","\u1f68":"\u1f60","\u1f69":"\u1f61","\u1f6a":"\u1f62","\u1f6b":"\u1f63","\u1f6c":"\u1f64","\u1f6d":"\u1f65","\u1f6e":"\u1f66",
"\u1f6f":"\u1f67","\u1fb8":"\u1fb0","\u1fb9":"\u1fb1","\u1fba":"\u1f70","\u1fbb":"\u1f71","\u1fbe":"\u03b9","\u1fc8":"\u1f72","\u1fc9":"\u1f73","\u1fca":"\u1f74","\u1fcb":"\u1f75","\u1fd8":"\u1fd0","\u1fd9":"\u1fd1","\u1fda":"\u1f76","\u1fdb":"\u1f77","\u1fe8":"\u1fe0","\u1fe9":"\u1fe1","\u1fea":"\u1f7a","\u1feb":"\u1f7b","\u1fec":"\u1fe5","\u1ff8":"\u1f78","\u1ff9":"\u1f79","\u1ffa":"\u1f7c","\u1ffb":"\u1f7d","\u2126":"\u03c9","\u212a":"k","\u212b":"\u00e5","\u2132":"\u214e","\u2160":"\u2170","\u2161":"\u2171",
"\u2162":"\u2172","\u2163":"\u2173","\u2164":"\u2174","\u2165":"\u2175","\u2166":"\u2176","\u2167":"\u2177","\u2168":"\u2178","\u2169":"\u2179","\u216a":"\u217a","\u216b":"\u217b","\u216c":"\u217c","\u216d":"\u217d","\u216e":"\u217e","\u216f":"\u217f","\u2183":"\u2184","\u24b6":"\u24d0","\u24b7":"\u24d1","\u24b8":"\u24d2","\u24b9":"\u24d3","\u24ba":"\u24d4","\u24bb":"\u24d5","\u24bc":"\u24d6","\u24bd":"\u24d7","\u24be":"\u24d8","\u24bf":"\u24d9","\u24c0":"\u24da","\u24c1":"\u24db","\u24c2":"\u24dc",
"\u24c3":"\u24dd","\u24c4":"\u24de","\u24c5":"\u24df","\u24c6":"\u24e0","\u24c7":"\u24e1","\u24c8":"\u24e2","\u24c9":"\u24e3","\u24ca":"\u24e4","\u24cb":"\u24e5","\u24cc":"\u24e6","\u24cd":"\u24e7","\u24ce":"\u24e8","\u24cf":"\u24e9","\u2c00":"\u2c30","\u2c01":"\u2c31","\u2c02":"\u2c32","\u2c03":"\u2c33","\u2c04":"\u2c34","\u2c05":"\u2c35","\u2c06":"\u2c36","\u2c07":"\u2c37","\u2c08":"\u2c38","\u2c09":"\u2c39","\u2c0a":"\u2c3a","\u2c0b":"\u2c3b","\u2c0c":"\u2c3c","\u2c0d":"\u2c3d","\u2c0e":"\u2c3e",
"\u2c0f":"\u2c3f","\u2c10":"\u2c40","\u2c11":"\u2c41","\u2c12":"\u2c42","\u2c13":"\u2c43","\u2c14":"\u2c44","\u2c15":"\u2c45","\u2c16":"\u2c46","\u2c17":"\u2c47","\u2c18":"\u2c48","\u2c19":"\u2c49","\u2c1a":"\u2c4a","\u2c1b":"\u2c4b","\u2c1c":"\u2c4c","\u2c1d":"\u2c4d","\u2c1e":"\u2c4e","\u2c1f":"\u2c4f","\u2c20":"\u2c50","\u2c21":"\u2c51","\u2c22":"\u2c52","\u2c23":"\u2c53","\u2c24":"\u2c54","\u2c25":"\u2c55","\u2c26":"\u2c56","\u2c27":"\u2c57","\u2c28":"\u2c58","\u2c29":"\u2c59","\u2c2a":"\u2c5a",
"\u2c2b":"\u2c5b","\u2c2c":"\u2c5c","\u2c2d":"\u2c5d","\u2c2e":"\u2c5e","\u2c60":"\u2c61","\u2c62":"\u026b","\u2c63":"\u1d7d","\u2c64":"\u027d","\u2c67":"\u2c68","\u2c69":"\u2c6a","\u2c6b":"\u2c6c","\u2c6d":"\u0251","\u2c6e":"\u0271","\u2c6f":"\u0250","\u2c70":"\u0252","\u2c72":"\u2c73","\u2c75":"\u2c76","\u2c7e":"\u023f","\u2c7f":"\u0240","\u2c80":"\u2c81","\u2c82":"\u2c83","\u2c84":"\u2c85","\u2c86":"\u2c87","\u2c88":"\u2c89","\u2c8a":"\u2c8b","\u2c8c":"\u2c8d","\u2c8e":"\u2c8f","\u2c90":"\u2c91",
"\u2c92":"\u2c93","\u2c94":"\u2c95","\u2c96":"\u2c97","\u2c98":"\u2c99","\u2c9a":"\u2c9b","\u2c9c":"\u2c9d","\u2c9e":"\u2c9f","\u2ca0":"\u2ca1","\u2ca2":"\u2ca3","\u2ca4":"\u2ca5","\u2ca6":"\u2ca7","\u2ca8":"\u2ca9","\u2caa":"\u2cab","\u2cac":"\u2cad","\u2cae":"\u2caf","\u2cb0":"\u2cb1","\u2cb2":"\u2cb3","\u2cb4":"\u2cb5","\u2cb6":"\u2cb7","\u2cb8":"\u2cb9","\u2cba":"\u2cbb","\u2cbc":"\u2cbd","\u2cbe":"\u2cbf","\u2cc0":"\u2cc1","\u2cc2":"\u2cc3","\u2cc4":"\u2cc5","\u2cc6":"\u2cc7","\u2cc8":"\u2cc9",
"\u2cca":"\u2ccb","\u2ccc":"\u2ccd","\u2cce":"\u2ccf","\u2cd0":"\u2cd1","\u2cd2":"\u2cd3","\u2cd4":"\u2cd5","\u2cd6":"\u2cd7","\u2cd8":"\u2cd9","\u2cda":"\u2cdb","\u2cdc":"\u2cdd","\u2cde":"\u2cdf","\u2ce0":"\u2ce1","\u2ce2":"\u2ce3","\u2ceb":"\u2cec","\u2ced":"\u2cee","\u2cf2":"\u2cf3","\ua640":"\ua641","\ua642":"\ua643","\ua644":"\ua645","\ua646":"\ua647","\ua648":"\ua649","\ua64a":"\ua64b","\ua64c":"\ua64d","\ua64e":"\ua64f","\ua650":"\ua651","\ua652":"\ua653","\ua654":"\ua655","\ua656":"\ua657",
"\ua658":"\ua659","\ua65a":"\ua65b","\ua65c":"\ua65d","\ua65e":"\ua65f","\ua660":"\ua661","\ua662":"\ua663","\ua664":"\ua665","\ua666":"\ua667","\ua668":"\ua669","\ua66a":"\ua66b","\ua66c":"\ua66d","\ua680":"\ua681","\ua682":"\ua683","\ua684":"\ua685","\ua686":"\ua687","\ua688":"\ua689","\ua68a":"\ua68b","\ua68c":"\ua68d","\ua68e":"\ua68f","\ua690":"\ua691","\ua692":"\ua693","\ua694":"\ua695","\ua696":"\ua697","\ua698":"\ua699","\ua69a":"\ua69b","\ua722":"\ua723","\ua724":"\ua725","\ua726":"\ua727",
"\ua728":"\ua729","\ua72a":"\ua72b","\ua72c":"\ua72d","\ua72e":"\ua72f","\ua732":"\ua733","\ua734":"\ua735","\ua736":"\ua737","\ua738":"\ua739","\ua73a":"\ua73b","\ua73c":"\ua73d","\ua73e":"\ua73f","\ua740":"\ua741","\ua742":"\ua743","\ua744":"\ua745","\ua746":"\ua747","\ua748":"\ua749","\ua74a":"\ua74b","\ua74c":"\ua74d","\ua74e":"\ua74f","\ua750":"\ua751","\ua752":"\ua753","\ua754":"\ua755","\ua756":"\ua757","\ua758":"\ua759","\ua75a":"\ua75b","\ua75c":"\ua75d","\ua75e":"\ua75f","\ua760":"\ua761",
"\ua762":"\ua763","\ua764":"\ua765","\ua766":"\ua767","\ua768":"\ua769","\ua76a":"\ua76b","\ua76c":"\ua76d","\ua76e":"\ua76f","\ua779":"\ua77a","\ua77b":"\ua77c","\ua77d":"\u1d79","\ua77e":"\ua77f","\ua780":"\ua781","\ua782":"\ua783","\ua784":"\ua785","\ua786":"\ua787","\ua78b":"\ua78c","\ua78d":"\u0265","\ua790":"\ua791","\ua792":"\ua793","\ua796":"\ua797","\ua798":"\ua799","\ua79a":"\ua79b","\ua79c":"\ua79d","\ua79e":"\ua79f","\ua7a0":"\ua7a1","\ua7a2":"\ua7a3","\ua7a4":"\ua7a5","\ua7a6":"\ua7a7",
"\ua7a8":"\ua7a9","\ua7aa":"\u0266","\ua7ab":"\u025c","\ua7ac":"\u0261","\ua7ad":"\u026c","\ua7b0":"\u029e","\ua7b1":"\u0287","\uff21":"\uff41","\uff22":"\uff42","\uff23":"\uff43","\uff24":"\uff44","\uff25":"\uff45","\uff26":"\uff46","\uff27":"\uff47","\uff28":"\uff48","\uff29":"\uff49","\uff2a":"\uff4a","\uff2b":"\uff4b","\uff2c":"\uff4c","\uff2d":"\uff4d","\uff2e":"\uff4e","\uff2f":"\uff4f","\uff30":"\uff50","\uff31":"\uff51","\uff32":"\uff52","\uff33":"\uff53","\uff34":"\uff54","\uff35":"\uff55",
"\uff36":"\uff56","\uff37":"\uff57","\uff38":"\uff58","\uff39":"\uff59","\uff3a":"\uff5a","\ud801\udc00":"\ud801\udc28","\ud801\udc01":"\ud801\udc29","\ud801\udc02":"\ud801\udc2a","\ud801\udc03":"\ud801\udc2b","\ud801\udc04":"\ud801\udc2c","\ud801\udc05":"\ud801\udc2d","\ud801\udc06":"\ud801\udc2e","\ud801\udc07":"\ud801\udc2f","\ud801\udc08":"\ud801\udc30","\ud801\udc09":"\ud801\udc31","\ud801\udc0a":"\ud801\udc32","\ud801\udc0b":"\ud801\udc33","\ud801\udc0c":"\ud801\udc34","\ud801\udc0d":"\ud801\udc35",
"\ud801\udc0e":"\ud801\udc36","\ud801\udc0f":"\ud801\udc37","\ud801\udc10":"\ud801\udc38","\ud801\udc11":"\ud801\udc39","\ud801\udc12":"\ud801\udc3a","\ud801\udc13":"\ud801\udc3b","\ud801\udc14":"\ud801\udc3c","\ud801\udc15":"\ud801\udc3d","\ud801\udc16":"\ud801\udc3e","\ud801\udc17":"\ud801\udc3f","\ud801\udc18":"\ud801\udc40","\ud801\udc19":"\ud801\udc41","\ud801\udc1a":"\ud801\udc42","\ud801\udc1b":"\ud801\udc43","\ud801\udc1c":"\ud801\udc44","\ud801\udc1d":"\ud801\udc45","\ud801\udc1e":"\ud801\udc46",
"\ud801\udc1f":"\ud801\udc47","\ud801\udc20":"\ud801\udc48","\ud801\udc21":"\ud801\udc49","\ud801\udc22":"\ud801\udc4a","\ud801\udc23":"\ud801\udc4b","\ud801\udc24":"\ud801\udc4c","\ud801\udc25":"\ud801\udc4d","\ud801\udc26":"\ud801\udc4e","\ud801\udc27":"\ud801\udc4f","\ud806\udca0":"\ud806\udcc0","\ud806\udca1":"\ud806\udcc1","\ud806\udca2":"\ud806\udcc2","\ud806\udca3":"\ud806\udcc3","\ud806\udca4":"\ud806\udcc4","\ud806\udca5":"\ud806\udcc5","\ud806\udca6":"\ud806\udcc6","\ud806\udca7":"\ud806\udcc7",
"\ud806\udca8":"\ud806\udcc8","\ud806\udca9":"\ud806\udcc9","\ud806\udcaa":"\ud806\udcca","\ud806\udcab":"\ud806\udccb","\ud806\udcac":"\ud806\udccc","\ud806\udcad":"\ud806\udccd","\ud806\udcae":"\ud806\udcce","\ud806\udcaf":"\ud806\udccf","\ud806\udcb0":"\ud806\udcd0","\ud806\udcb1":"\ud806\udcd1","\ud806\udcb2":"\ud806\udcd2","\ud806\udcb3":"\ud806\udcd3","\ud806\udcb4":"\ud806\udcd4","\ud806\udcb5":"\ud806\udcd5","\ud806\udcb6":"\ud806\udcd6","\ud806\udcb7":"\ud806\udcd7","\ud806\udcb8":"\ud806\udcd8",
"\ud806\udcb9":"\ud806\udcd9","\ud806\udcba":"\ud806\udcda","\ud806\udcbb":"\ud806\udcdb","\ud806\udcbc":"\ud806\udcdc","\ud806\udcbd":"\ud806\udcdd","\ud806\udcbe":"\ud806\udcde","\ud806\udcbf":"\ud806\udcdf","\u00df":"ss","\u0130":"i\u0307","\u0149":"\u02bcn","\u01f0":"j\u030c","\u0390":"\u03b9\u0308\u0301","\u03b0":"\u03c5\u0308\u0301","\u0587":"\u0565\u0582","\u1e96":"h\u0331","\u1e97":"t\u0308","\u1e98":"w\u030a","\u1e99":"y\u030a","\u1e9a":"a\u02be","\u1e9e":"ss","\u1f50":"\u03c5\u0313","\u1f52":"\u03c5\u0313\u0300",
"\u1f54":"\u03c5\u0313\u0301","\u1f56":"\u03c5\u0313\u0342","\u1f80":"\u1f00\u03b9","\u1f81":"\u1f01\u03b9","\u1f82":"\u1f02\u03b9","\u1f83":"\u1f03\u03b9","\u1f84":"\u1f04\u03b9","\u1f85":"\u1f05\u03b9","\u1f86":"\u1f06\u03b9","\u1f87":"\u1f07\u03b9","\u1f88":"\u1f00\u03b9","\u1f89":"\u1f01\u03b9","\u1f8a":"\u1f02\u03b9","\u1f8b":"\u1f03\u03b9","\u1f8c":"\u1f04\u03b9","\u1f8d":"\u1f05\u03b9","\u1f8e":"\u1f06\u03b9","\u1f8f":"\u1f07\u03b9","\u1f90":"\u1f20\u03b9","\u1f91":"\u1f21\u03b9","\u1f92":"\u1f22\u03b9",
"\u1f93":"\u1f23\u03b9","\u1f94":"\u1f24\u03b9","\u1f95":"\u1f25\u03b9","\u1f96":"\u1f26\u03b9","\u1f97":"\u1f27\u03b9","\u1f98":"\u1f20\u03b9","\u1f99":"\u1f21\u03b9","\u1f9a":"\u1f22\u03b9","\u1f9b":"\u1f23\u03b9","\u1f9c":"\u1f24\u03b9","\u1f9d":"\u1f25\u03b9","\u1f9e":"\u1f26\u03b9","\u1f9f":"\u1f27\u03b9","\u1fa0":"\u1f60\u03b9","\u1fa1":"\u1f61\u03b9","\u1fa2":"\u1f62\u03b9","\u1fa3":"\u1f63\u03b9","\u1fa4":"\u1f64\u03b9","\u1fa5":"\u1f65\u03b9","\u1fa6":"\u1f66\u03b9","\u1fa7":"\u1f67\u03b9",
"\u1fa8":"\u1f60\u03b9","\u1fa9":"\u1f61\u03b9","\u1faa":"\u1f62\u03b9","\u1fab":"\u1f63\u03b9","\u1fac":"\u1f64\u03b9","\u1fad":"\u1f65\u03b9","\u1fae":"\u1f66\u03b9","\u1faf":"\u1f67\u03b9","\u1fb2":"\u1f70\u03b9","\u1fb3":"\u03b1\u03b9","\u1fb4":"\u03ac\u03b9","\u1fb6":"\u03b1\u0342","\u1fb7":"\u03b1\u0342\u03b9","\u1fbc":"\u03b1\u03b9","\u1fc2":"\u1f74\u03b9","\u1fc3":"\u03b7\u03b9","\u1fc4":"\u03ae\u03b9","\u1fc6":"\u03b7\u0342","\u1fc7":"\u03b7\u0342\u03b9","\u1fcc":"\u03b7\u03b9","\u1fd2":"\u03b9\u0308\u0300",
"\u1fd3":"\u03b9\u0308\u0301","\u1fd6":"\u03b9\u0342","\u1fd7":"\u03b9\u0308\u0342","\u1fe2":"\u03c5\u0308\u0300","\u1fe3":"\u03c5\u0308\u0301","\u1fe4":"\u03c1\u0313","\u1fe6":"\u03c5\u0342","\u1fe7":"\u03c5\u0308\u0342","\u1ff2":"\u1f7c\u03b9","\u1ff3":"\u03c9\u03b9","\u1ff4":"\u03ce\u03b9","\u1ff6":"\u03c9\u0342","\u1ff7":"\u03c9\u0342\u03b9","\u1ffc":"\u03c9\u03b9","\ufb00":"ff","\ufb01":"fi","\ufb02":"fl","\ufb03":"ffi","\ufb04":"ffl","\ufb05":"st","\ufb06":"st","\ufb13":"\u0574\u0576","\ufb14":"\u0574\u0565",
"\ufb15":"\u0574\u056b","\ufb16":"\u057e\u0576","\ufb17":"\u0574\u056d"};var YO_=new RegExp(/[!-#%-\*,-/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/),
wmc=RegExp("^(?:\"(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^\"\\x00])*\"|'(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^'\\x00])*'|\\((\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^)\\x00])*\\))"),umT=RegExp("^(?:[<](?:[^ <>\\t\\n\\\\\\x00]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\)*[>])"),SOB=RegExp("^[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]"),pmp=RegExp("^&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","i"),m3e=/`+/,KVM=/^`+/,F_H=/\.\.\./g,W_i=/--+/g,ETM=/^<([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)>/,
hKc=/^<[A-Za-z][A-Za-z0-9.+-]{1,31}:[^<>\x00-\x20]*>/i,dru=/^ *(?:\n *)?/,Nh_=/^[ \t\n\x0b\x0c\x0d]/,Viz=/[ \t\n\x0b\x0c\x0d]+/g,Ure=/^\s/,RKe=/ *$/,eKu=/^ */,MiU=/^ *(?:\n|$)/,gTi=RegExp("^\\[(?:[^\\\\\\[\\]]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\){0,1000}\\]"),QuM=/^[^\n`\[\]\\!<&*_'"]+/m,DD=function(F){var W=new MW("text");W._literal=F;return W},x5=function(F){this.subject="";
this.brackets=this.delimiters=null;this.pos=0;this.refmap={};this.options=F||{}};
x5.prototype.match=function(F){F=F.exec(this.subject.slice(this.pos));if(F===null)return null;this.pos+=F.index+F[0].length;return F[0]};
x5.prototype.peek=function(){return this.pos<this.subject.length?this.subject.charCodeAt(this.pos):-1};
var k5=function(F){F.match(dru);return!0},zKz=function(F,W,E){var h=0;
var d=F.pos;if(W===39||W===34)h++,F.pos++;else for(;F.peek()===W;)h++,F.pos++;if(h===0)h=null;else{var V=d===0?"\n":F.subject.charAt(d-1);var R=F.peek();R=R===-1?"\n":Iq(R);var M=Ure.test(R);R=YO_.test(R);var g=Ure.test(V);var t=YO_.test(V);V=!M&&!(R&&!g&&!t);M=!g&&!(t&&!M&&!R);W===95?(g=V&&(!M||t),R=M&&(!V||R)):(g=W===39||W===34?V&&!M:V,R=M);F.pos=d;h={numdelims:h,can_open:g,can_close:R}}if(!h)return!1;d=h.numdelims;R=F.pos;F.pos+=d;R=W===39?"\u2019":W===34?"\u201c":F.subject.slice(R,F.pos);R=DD(R);
E.appendChild(R);F.delimiters={cc:W,numdelims:d,origdelims:d,node:R,previous:F.delimiters,next:null,can_open:h.can_open,can_close:h.can_close};F.delimiters.previous!==null&&(F.delimiters.previous.next=F.delimiters);return!0},tiX=function(F,W){W.previous!==null&&(W.previous.next=W.next);
W.next===null?F.delimiters=W.previous:W.next.previous=W.previous},CHp=function(F,W){var E,h,d=[],V=!1;
d[95]=W;d[42]=W;d[39]=W;d[34]=W;for(E=F.delimiters;E!==null&&E.previous!==W;)E=E.previous;for(;E!==null;){var R=E.cc;if(E.can_close){var M=E.previous;for(h=!1;M!==null&&M!==W&&M!==d[R];){V=(E.can_open||M.can_close)&&(M.origdelims+E.origdelims)%3===0;if(M.cc===E.cc&&M.can_open&&!V){h=!0;break}M=M.previous}var g=E;if(R===42||R===95)if(h){var t=E.numdelims>=2&&M.numdelims>=2?2:1;var C=M.node;var B=E.node;M.numdelims-=t;E.numdelims-=t;C._literal=C._literal.slice(0,C._literal.length-t);B._literal=B._literal.slice(0,
B._literal.length-t);var I=new MW(t===1?"emph":"strong");for(t=C._next;t&&t!==B;){var x=t._next;ci(t);I.appendChild(t);t=x}GKT(C,I);t=M;x=E;t.next!==x&&(t.next=x,x.previous=t);M.numdelims===0&&(ci(C),tiX(F,M));E.numdelims===0&&(ci(B),M=E.next,tiX(F,E),E=M)}else E=E.next;else R===39?(E.node._literal="\u2019",h&&(M.node._literal="\u2018"),E=E.next):R===34&&(E.node._literal="\u201d",h&&(M.node.literal="\u201c"),E=E.next);h||V||(d[R]=g.previous,g.can_open||tiX(F,g))}else E=E.next}for(;F.delimiters!==
null&&F.delimiters!==W;)tiX(F,F.delimiters)},Bhp=function(F){F=F.match(wmc);
return F===null?null:yTB(F.substr(1,F.length-2))},vTO=function(F){var W=F.match(umT);
if(W===null){W=F.pos;for(var E=0,h;(h=F.peek())!==-1;)if(h===92)F.pos+=1,F.peek()!==-1&&(F.pos+=1);else if(h===40)F.pos+=1,E+=1;else if(h===41)if(E<1)break;else F.pos+=1,--E;else if(Nh_.exec(Iq(h))!==null)break;else F.pos+=1;W=F.subject.substr(W,F.pos-W);return j4O(yTB(W))}return j4O(yTB(W.substr(1,W.length-2)))},IAp=function(F){F=F.match(gTi);
return F===null||F.length>1001?0:F.length},cmz=function(F,W,E,h){F.brackets!==null&&(F.brackets.bracketAfter=!0);
F.brackets={node:W,previous:F.brackets,previousDelimiter:F.delimiters,index:E,image:h,active:!0}},DrO=function(F,W){var E;
return(E=F.match(QuM))?(F.options.smart?W.appendChild(DD(E.replace(F_H,"\u2026").replace(W_i,function(h){var d=0,V=0;h.length%3===0?V=h.length/3:h.length%2===0?d=h.length/2:h.length%3===2?(d=1,V=(h.length-2)/3):(d=2,V=(h.length-4)/3);h="";var R;for(R=0;R<V;R++)h+="\u2014";for(R=0;R<d;R++)h+="\u2013";return h}))):W.appendChild(DD(E)),!0):!1},xrT=function(F,W,E){F.subject=W;
F.pos=0;W=F.pos;var h=IAp(F);if(h===0)return 0;var d=F.subject.substr(0,h);if(F.peek()===58)F.pos++;else return F.pos=W,0;k5(F);h=vTO(F);if(h===null||h.length===0)return F.pos=W,0;var V=F.pos;k5(F);var R=Bhp(F);R===null&&(R="",F.pos=V);var M=!0;F.match(MiU)===null&&(R===""?M=!1:(R="",F.pos=V,M=F.match(MiU)!==null));if(!M)return F.pos=W,0;d=rUo(d);if(d==="")return F.pos=W,0;E[d]||(E[d]={destination:h,title:R});return F.pos-W},k4B=function(F,W){var E,h=F.peek();
if(h===-1)return!1;switch(h){case 10:F.pos+=1;if((E=W._lastChild)&&E.type==="text"&&E._literal[E._literal.length-1]===" "){var d=E._literal[E._literal.length-2]===" ";E._literal=E._literal.replace(RKe,"");W.appendChild(new MW(d?"linebreak":"softbreak"))}else W.appendChild(new MW("softbreak"));F.match(eKu);E=!0;break;case 92:E=F.subject;F.pos+=1;F.peek()===10?(F.pos+=1,E=new MW("linebreak"),W.appendChild(E)):SOB.test(E.charAt(F.pos))?(W.appendChild(DD(E.charAt(F.pos))),F.pos+=1):W.appendChild(DD("\\"));
E=!0;break;case 96:a:if(E=F.match(KVM),E===null)E=!1;else{d=F.pos;for(var V;(V=F.match(m3e))!==null;)if(V===E){V=new MW("code");V._literal=F.subject.slice(d,F.pos-E.length).trim().replace(Viz," ");W.appendChild(V);E=!0;break a}F.pos=d;W.appendChild(DD(E));E=!0}break;case 42:case 95:E=zKz(F,h,W);break;case 39:case 34:E=F.options.smart&&zKz(F,h,W);break;case 91:E=F.pos;F.pos+=1;d=DD("[");W.appendChild(d);cmz(F,d,E,!1);E=!0;break;case 33:E=F.pos;F.pos+=1;F.peek()===91?(F.pos+=1,d=DD("!["),W.appendChild(d),
cmz(F,d,E+1,!0)):W.appendChild(DD("!"));E=!0;break;case 93:var R,M=!1,g;F.pos+=1;var t=F.pos;d=F.brackets;if(d===null)W.appendChild(DD("]"));else if(d.active){E=d.image;var C=F.pos;F.peek()===40&&(F.pos++,k5(F)&&(V=vTO(F))!==null&&k5(F)&&(Nh_.test(F.subject.charAt(F.pos-1))&&(R=Bhp(F)),1)&&k5(F)&&F.peek()===41?(F.pos+=1,M=!0):F.pos=C);if(!M){var B=F.pos,I=IAp(F);I>2?g=F.subject.slice(B,B+I):d.bracketAfter||(g=F.subject.slice(d.index,t));I===0&&(F.pos=C);g&&(g=F.refmap[rUo(g)])&&(V=g.destination,R=
g.title,M=!0)}if(M){t=new MW(E?"image":"link");t._destination=V;t._title=R||"";for(V=d.node._next;V;)R=V._next,ci(V),t.appendChild(V),V=R;W.appendChild(t);CHp(F,d.previousDelimiter);F.brackets=F.brackets.previous;ci(d.node);if(!E)for(d=F.brackets;d!==null;)d.image||(d.active=!1),d=d.previous}else F.brackets=F.brackets.previous,F.pos=t,W.appendChild(DD("]"))}else W.appendChild(DD("]")),F.brackets=F.brackets.previous;E=!0;break;case 60:(E=F.match(ETM))?(E=E.slice(1,E.length-1),d=new MW("link"),d._destination=
j4O("mailto:"+E),d._title="",d.appendChild(DD(E)),W.appendChild(d),E=!0):(E=F.match(hKc))?(E=E.slice(1,E.length-1),d=new MW("link"),d._destination=j4O(E),d._title="",d.appendChild(DD(E)),W.appendChild(d),E=!0):E=!1;E||(E=F.match(aG_),E===null?E=!1:(d=new MW("html_inline"),d._literal=E,W.appendChild(d),E=!0));break;case 38:(E=F.match(pmp))?(W.appendChild(DD(P1_(E))),E=!0):E=!1;break;default:E=DrO(F,W)}E||(F.pos+=1,W.appendChild(DD(Iq(h))));return!0};
x5.prototype.parseInlines=function(F){this.subject=F._string_content.trim();this.pos=0;for(this.brackets=this.delimiters=null;k4B(this,F););F._string_content=null;CHp(this,null)};
x5.prototype.parse=x5.prototype.parseInlines;var AmT=[/./,/^<(?:script|pre|style)(?:\s|>|$)/i,/^\x3c!--/,/^<[?]/,/^<![A-Z]/,/^<!\[CDATA\[/,/^<[/]?(?:address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[123456]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|title|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul)(?:\s|[/]?[>]|$)/i,RegExp("^(?:<[A-Za-z][A-Za-z0-9-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*/?>|</[A-Za-z][A-Za-z0-9-]*\\s*[>])\\s*$",
"i")],sui=[/./,/<\/(?:script|pre|style)>/i,/--\x3e/,/\?>/,/>/,/\]\]>/],L_U=/^(?:(?:\*[ \t]*){3,}|(?:_[ \t]*){3,}|(?:-[ \t]*){3,})[ \t]*$/,q6_=/^[#`~*+_=<>0-9-\|]|\|/,$ru=/[^ \t\f\v\r\n]/,ZKO=/^[*+-]/,XeM=/^(\d{1,9})([.)])/,HKa=/^#{1,6}(?:[ \t]+|$)/,PHM=/^`{3,}(?!.*`)|^~{3,}(?!.*~)/,Jm_=/^(?:`{3,}|~{3,})(?= *$)/,aAe=/^(?:=+|-+)[ \t]*$/,fAT=/\r\n|\n|\r/,oPo=/(^\|?[^\|]+(\|[^\|]+)+\|?)|(\|.*\|)/,GFn=/(^\|?\s*:?---+:?\s*(\|\s*:?---+:?\s*)+\|?)|(^\s*\|\s*:?---+:?\s*\|$)/,OKT={document:{continue:function(){return 0},
finalize:function(){},
canContain:function(F){return F!=="item"},
acceptsLines:!1},list:{continue:function(){return 0},
finalize:function(F,W){for(F=W._firstChild;F;){if(TXr(F)&&F._next){W._listData.tight=!1;break}for(var E=F._firstChild;E;){if(TXr(E)&&(F._next||E._next)){W._listData.tight=!1;break}E=E._next}F=F._next}},
canContain:function(F){return F==="item"},
acceptsLines:!1},block_quote:{continue:function(F){var W=F.currentLine;if(F.indented||Rk(W,F.nextNonspace)!==62)return 1;Aj(F);sP(F,1,!1);Ug(Rk(W,F.offset))&&sP(F,1,!0);return 0},
finalize:function(){},
canContain:function(F){return F!=="item"},
acceptsLines:!1},item:{continue:function(F,W){if(F.blank){if(W._firstChild==null)return 1;Aj(F)}else if(F.indent>=W._listData.markerOffset+W._listData.padding)sP(F,W._listData.markerOffset+W._listData.padding,!0);else return 1;return 0},
finalize:function(){},
canContain:function(F){return F!=="item"&&!YZS(F)},
acceptsLines:!1},heading:{continue:function(){return 1},
finalize:function(){},
canContain:function(){return!1},
acceptsLines:!1},thematic_break:{continue:function(){return 1},
finalize:function(){},
canContain:function(){return!1},
acceptsLines:!1},code_block:{continue:function(F,W){var E=F.currentLine,h=F.indent;if(W._isFenced){if((h=h<=3&&E.charAt(F.nextNonspace)===W._fenceChar&&E.slice(F.nextNonspace).match(Jm_))&&h[0].length>=W._fenceLength)return F.finalize(W,F.lineNumber),2;for(W=W._fenceOffset;W>0&&Ug(Rk(E,F.offset));)sP(F,1,!0),W--}else if(h>=4)sP(F,4,!0);else if(F.blank)Aj(F);else return 1;return 0},
finalize:function(F,W){if(W._isFenced){var E=W._string_content,h=E.indexOf("\n");F=E.slice(0,h);E=E.slice(h+1);W.info=yTB(F.trim());W._literal=E}else W._literal=W._string_content.replace(/(\n *)+$/,"\n");W._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},html_block:{continue:function(F,W){return!F.blank||W._htmlBlockType!==6&&W._htmlBlockType!==7?0:1},
finalize:function(F,W){W._literal=W._string_content.replace(/(\n *)+$/,"");W._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},paragraph:{continue:function(F){return F.blank?1:0},
finalize:function(F,W){for(var E,h=!1;Rk(W._string_content,0)===91&&(E=xrT(F.inlineParser,W._string_content,F.refmap));)W._string_content=W._string_content.slice(E),h=!0;h&&!$ru.test(W._string_content)&&ci(W)},
canContain:function(){return!1},
acceptsLines:!0},table:{continue:function(F){return er(F.currentLine)!==0?0:1},
finalize:function(){},
canContain:function(F){return F=="row"},
acceptsLines:!1},row:{continue:function(){return 1},
finalize:function(F,W){if(!W._rowIsDelimiter){F=W._isHeader?"th":"td";for(var E=W._parent._tableColumns,h=W._string_content,d=0,V="",R,M=W._sourcepos[0][0];d<h.length;){switch(h[d]){case "|":R&&(R._string_content=V.trim(),V="",R=null,E--,E<=0&&(d=h.length));break;default:if(!R){R=new MW(F,[[M,d],[M,d]]);var g=W._parent._columnAlignment,t=W._parent._tableColumns-E;g&&t<=g.length&&t>=0&&(R._alignment=g[t]);W.appendChild(R)}V+=h[d];R._sourcepos[1][1]=d}d++}R&&(R._string_content=V.trim());W._string_content=
""}},
canContain:function(F){return F!=="row"},
acceptsLines:!1}},bKO=[function(F){if(F.indented||Rk(F.currentLine,F.nextNonspace)!==62)return 0;Aj(F);sP(F,1,!1);Ug(Rk(F.currentLine,F.offset))&&sP(F,1,!0);LH(F);F.addChild("block_quote",F.nextNonspace);return 1},
function(F){var W;if(!F.indented&&(W=F.currentLine.slice(F.nextNonspace).match(HKa))){Aj(F);sP(F,W[0].length,!1);LH(F);var E=F.addChild("heading",F.nextNonspace);E.level=W[0].trim().length;E._string_content=F.currentLine.slice(F.offset).replace(/^ *#+ *$/,"").replace(/ +#+ *$/,"");sP(F,F.currentLine.length-F.offset);return 2}return 0},
function(F){var W;if(!F.indented&&(W=F.currentLine.slice(F.nextNonspace).match(PHM))){var E=W[0].length;LH(F);var h=F.addChild("code_block",F.nextNonspace);h._isFenced=!0;h._fenceLength=E;h._fenceChar=W[0][0];h._fenceOffset=F.indent;Aj(F);sP(F,E,!1);return 2}return 0},
function(F,W){if(!F.indented&&Rk(F.currentLine,F.nextNonspace)===60){var E=F.currentLine.slice(F.nextNonspace),h;for(h=1;h<=7;h++)if(AmT[h].test(E)&&(h<7||W.type!=="paragraph"))return LH(F),F.addChild("html_block",F.offset)._htmlBlockType=h,2}return 0},
function(F,W){var E;if(!F.indented&&W.type==="paragraph"&&(E=F.currentLine.slice(F.nextNonspace).match(aAe))){LH(F);var h=new MW("heading",W.sourcepos);h.level=E[0][0]==="="?1:2;h._string_content=W._string_content;GKT(W,h);ci(W);F.tip=h;sP(F,F.currentLine.length-F.offset,!1);return 2}return 0},
function(F){return!F.indented&&L_U.test(F.currentLine.slice(F.nextNonspace))?(LH(F),F.addChild("thematic_break",F.nextNonspace),sP(F,F.currentLine.length-F.offset,!1),2):0},
function(F,W){var E,h;if(!(h=F.indented&&W.type!=="list")){a:{var d=W,V=F.currentLine.slice(F.nextNonspace);h={type:null,tight:!0,bulletChar:null,start:null,delimiter:null,padding:null,markerOffset:F.indent};if(E=V.match(ZKO))h.type="bullet",h.bulletChar=E[0][0];else{if(!(E=V.match(XeM))||d.type==="paragraph"&&E[1]!=="1"){E=null;break a}h.type="ordered";h.start=parseInt(E[1],10);h.delimiter=E[2]}var R=Rk(F.currentLine,F.nextNonspace+E[0].length);if(R!==-1&&R!==9&&R!==32||d.type==="paragraph"&&!F.currentLine.slice(F.nextNonspace+
E[0].length).match($ru))E=null;else{Aj(F);sP(F,E[0].length,!0);d=F.column;V=F.offset;do sP(F,1,!0),R=Rk(F.currentLine,F.offset);while(F.column-d<5&&Ug(R));R=Rk(F.currentLine,F.offset)===-1;var M=F.column-d;M>=5||M<1||R?(h.padding=E[0].length+1,F.column=d,F.offset=V,Ug(Rk(F.currentLine,F.offset))&&sP(F,1,!0)):h.padding=E[0].length+M;E=h}}h=!E}if(h)return 0;LH(F);(h=F.tip.type!=="list")||(W=W._listData,h=!(W.type===E.type&&W.delimiter===E.delimiter&&W.bulletChar===E.bulletChar));h&&(W=F.addChild("list",
F.nextNonspace),W._listData=E);W=F.addChild("item",F.nextNonspace);W._listData=E;return 1},
function(F){var W;return((W=F.options.shouldParseIndentAsCodeBlock)!=null?W:1)&&F.indented&&F.tip.type!=="paragraph"&&!F.blank?(sP(F,4,!0),LH(F),F.addChild("code_block",F.offset),2):0},
function(F,W){var E=er(F.currentLine),h=er(F.lookahead);if(E!==0&&h<0&&Math.abs(E)==Math.abs(h)&&!YZS(W.type)){LH(F);W=F.addChild("table",F.nextNonspace);W._tableRows=1;W._tableColumns=Math.abs(E);E=F.lookahead;if(GFn.test(E)){h=[];for(var d=0,V=!1,R=0,M=void 0;d<E.length;){var g=R>=3;switch(E[d]){case "-":R++;break;case "|":V&&(h.push(M),M=void 0,R=0);V=!0;break;case ":":M||g||(M="left"),!M&&g&&(M="right"),M==="left"&&g&&(M="center")}d++}E=h}else E=void 0;W._columnAlignment=E;W=F.addChild("row",
F.nextNonspace);W._isHeader=!0;sP(F,F.currentLine.length-F.offset,!1);W._string_content=F.currentLine;return 1}return 0},
function(F,W){if(W.type=="table"&&er(F.currentLine)!==0){LH(F);var E=W;W=F.addChild("row",F.nextNonspace);er(F.currentLine)<0?W._rowIsDelimiter=!0:E._tableRows+=1;sP(F,F.currentLine.length-F.offset,!1);W._string_content=F.currentLine;return 2}return 0}],Eer=function(){var F={shouldParseIndentAsCodeBlock:!1};
F=F===void 0?{}:F;this.lastMatchedContainer=this.doc=w6b();this.refmap={};this.lastLineLength=0;this.inlineParser=new x5(F);this.options=F;this.oldtip=this.tip=this.doc;this.lookahead=this.currentLine="";this.indent=this.nextNonspaceColumn=this.nextNonspace=this.column=this.offset=this.lineNumber=0;this.partiallyConsumedTab=this.blank=this.indented=!1;this.allClosed=!0;this.blocks=OKT;this.blockStarts=bKO},lAT=function(F){F.partiallyConsumedTab&&(F.offset+=1,F.tip._string_content+=" ".repeat(4-F.column%
4));
F.tip._string_content+=F.currentLine.slice(F.offset)+"\n"};
Eer.prototype.addChild=function(F,W){for(;!this.blocks[this.tip.type].canContain(F);)this.finalize(this.tip,this.lineNumber-1);F=new MW(F,[[this.lineNumber,W+1],[0,0]]);F._string_content="";this.tip.appendChild(F);return this.tip=F};
var LH=function(F){if(!F.allClosed){for(;F.oldtip!==F.lastMatchedContainer;){var W=F.oldtip._parent;F.finalize(F.oldtip,F.lineNumber-1);F.oldtip=W}F.allClosed=!0}},sP=function(F,W,E){for(var h=F.currentLine,d,V;W>0&&(V=h[F.offset]);)V==="\t"?(d=4-F.column%4,E?(F.partiallyConsumedTab=d>W,d=d>W?W:d,F.column+=d,F.offset+=F.partiallyConsumedTab?0:1,W-=d):(F.partiallyConsumedTab=!1,F.column+=d,F.offset+=1,--W)):(F.partiallyConsumedTab=!1,F.offset+=1,F.column+=1,--W)},Aj=function(F){F.offset=F.nextNonspace;
F.column=F.nextNonspaceColumn;F.partiallyConsumedTab=!1},nTe=function(F){for(var W=F.currentLine,E=F.offset,h=F.column,d;(d=W.charAt(E))!=="";)if(d===" ")E++,h++;
else if(d==="\t")E++,h+=4-h%4;else break;F.blank=d==="\n"||d==="\r"||d==="";F.nextNonspace=E;F.nextNonspaceColumn=h;F.indent=F.nextNonspaceColumn-F.column;F.indented=F.indent>=4};
Eer.prototype.finalize=function(F,W){var E=F._parent;F._open=!1;F.sourcepos[1]=[W,this.lastLineLength];this.blocks[F.type].finalize(this,F);this.tip=E};
Eer.prototype.parse=function(F){this.tip=this.doc=w6b();this.refmap={};this.column=this.offset=this.lastLineLength=this.lineNumber=0;this.lastMatchedContainer=this.doc;this.currentLine="";if(!F)return this.doc;this.options.time&&console.time("preparing input");var W=F.split(fAT),E=W.length;F.charCodeAt(F.length-1)===10&&--E;this.options.time&&console.timeEnd("preparing input");this.options.time&&console.time("block parsing");for(F=0;F<E;F++)a:{var h=void 0,d=W[F],V=W[F+1],R=!0,M=this.doc;this.oldtip=
this.tip;this.column=this.offset=0;this.partiallyConsumedTab=this.blank=!1;this.lineNumber+=1;d.indexOf("\x00")!==-1&&(d=d.replace(/\0/g,"\ufffd"));this.currentLine=d;for(this.lookahead=V;(h=M._lastChild)&&h._open;){M=h;nTe(this);switch(this.blocks[M.type].continue(this,M)){case 0:break;case 1:R=!1;break;case 2:this.lastLineLength=d.length;break a;default:throw"continue returned illegal value, must be 0, 1, or 2";}if(!R){M=M._parent;break}}this.allClosed=M===this.oldtip;this.lastMatchedContainer=
M;h=M.type!=="paragraph"&&OKT[M.type].acceptsLines;V=this.blockStarts;for(R=V.length;!h;){nTe(this);if(!this.indented&&!q6_.test(d.slice(this.nextNonspace))){Aj(this);break}for(var g=0;g<R;){var t=V[g](this,M);if(t===1){M=this.tip;break}else if(t===2){M=this.tip;h=!0;break}else g++}if(g===R){Aj(this);break}}if(this.allClosed||this.blank||this.tip.type!=="paragraph"){LH(this);this.blank&&M.lastChild&&(M.lastChild._lastLineBlank=!0);h=M.type;V=this.blank&&!(h==="block_quote"||h==="code_block"&&M._isFenced||
h==="item"&&!M._firstChild&&M.sourcepos[0][0]===this.lineNumber);for(R=M;R;)R._lastLineBlank=V,R=R._parent;this.blocks[h].acceptsLines?(lAT(this),h==="html_block"&&M._htmlBlockType>=1&&M._htmlBlockType<=5&&sui[M._htmlBlockType].test(this.currentLine.slice(this.offset))&&this.finalize(M,this.lineNumber)):this.offset<d.length&&!this.blank&&(this.addChild("paragraph",this.offset),Aj(this),lAT(this))}else lAT(this);this.lastLineLength=d.length}for(;this.tip;)this.finalize(this.tip,E);this.options.time&&
console.timeEnd("block parsing");this.options.time&&console.time("inline parsing");d=new o3z(this.doc);this.inlineParser.refmap=this.refmap;for(this.inlineParser.options=this.options;E=d.next();)W=E.node,F=W.type,E.entering||F!=="paragraph"&&F!=="heading"&&F!=="th"&&F!="td"||this.inlineParser.parse(W);this.options.time&&console.timeEnd("inline parsing");return this.doc};uRI.prototype.render=function(F){F=new o3z(F);var W;this.buffer="";for(this.lastOut="\n";W=F.next();){var E=W.node.type;if(this[E])this[E](W.node,W.entering)}return this.buffer};
uRI.prototype.out=function(F){qd(this,F)};
var qd=function(F,W){F.buffer+=W;F.lastOut=W};
uRI.prototype.cr=function(){this.lastOut!=="\n"&&qd(this,"\n")};var ymU=/^javascript:|vbscript:|file:|data:/i,juX=/^data:image\/(?:png|gif|jpeg|webp)/i,iKH=function(F){return ymU.test(F)&&!juX.test(F)};
g8.prototype=Object.create(uRI.prototype);_.N=g8.prototype;_.N.text=function(F){this.out(F.literal)};
_.N.html_inline=function(F){this.options.safe?qd(this,"\x3c!-- raw HTML omitted --\x3e"):qd(this,F.literal)};
_.N.html_block=function(F){this.cr();this.options.safe?qd(this,"\x3c!-- raw HTML omitted --\x3e"):qd(this,F.literal);this.cr()};
_.N.softbreak=function(){qd(this,this.options.softbreak)};
_.N.linebreak=function(){this.tag("br",[],!0);this.cr()};
_.N.link=function(F,W){var E=this.attrs(F);W?(this.options.safe&&iKH(F.destination)||E.push(["href",vi(F.destination,!0)]),F.title&&E.push(["title",vi(F.title,!0)]),this.tag("a",E)):this.tag("/a")};
_.N.image=function(F,W){W?(this.disableTags===0&&(this.options.safe&&iKH(F.destination)?qd(this,'<img src="" alt="'):qd(this,'<img src="'+vi(F.destination,!0)+'" alt="')),this.disableTags+=1):(--this.disableTags,this.disableTags===0&&(F.title&&qd(this,'" title="'+vi(F.title,!0)),qd(this,'" />')))};
_.N.emph=function(F,W){this.tag(W?"em":"/em")};
_.N.strong=function(F,W){this.tag(W?"strong":"/strong")};
_.N.paragraph=function(F,W){var E=F.parent.parent;F=this.attrs(F);E!==null&&E.type==="list"&&E.listTight||(W?(this.cr(),this.tag("p",F)):(this.tag("/p"),this.cr()))};
_.N.heading=function(F,W){var E="h"+F.level;F=this.attrs(F);W?(this.cr(),this.tag(E,F)):(this.tag("/"+E),this.cr())};
_.N.code=function(F){this.tag("code");this.out(F.literal);this.tag("/code")};
_.N.code_block=function(F){var W=F.info?F.info.split(/\s+/):[],E=this.attrs(F);W.length>0&&W[0].length>0&&E.push(["class","language-"+vi(W[0],!0)]);this.cr();this.tag("pre");this.tag("code",E);this.out(F.literal);this.tag("/code");this.tag("/pre");this.cr()};
_.N.thematic_break=function(F){F=this.attrs(F);this.cr();this.tag("hr",F,!0);this.cr()};
_.N.block_quote=function(F,W){F=this.attrs(F);W?(this.cr(),this.tag("blockquote",F)):(this.cr(),this.tag("/blockquote"));this.cr()};
_.N.list=function(F,W){var E=F.listType==="bullet"?"ul":"ol",h=this.attrs(F);W?(F=F.listStart,F!==null&&F!==1&&h.push(["start",F.toString()]),this.cr(),this.tag(E,h)):(this.cr(),this.tag("/"+E));this.cr()};
_.N.item=function(F,W){F=this.attrs(F);W?this.tag("li",F):(this.tag("/li"),this.cr())};
_.N.custom_inline=function(F,W){W&&F.onEnter?qd(this,F.onEnter):!W&&F.onExit&&qd(this,F.onExit)};
_.N.custom_block=function(F,W){this.cr();W&&F.onEnter?qd(this,F.onEnter):!W&&F.onExit&&qd(this,F.onExit);this.cr()};
_.N.table=function(F,W){F=this.attrs(F);W?(this.cr(),this.tag("table",F)):(this.tag("/table"),this.cr())};
_.N.row=function(F,W){F._rowIsDelimiter||(F=this.attrs(F),W?this.tag("tr",F):this.tag("/tr"))};
_.N.td=function(F,W){var E=this.attrs(F);F._alignment&&E.push(["align",F._alignment]);W?this.tag("td",E):this.tag("/td")};
_.N.th=function(F,W){var E=this.attrs(F);F._alignment&&E.push(["align",F._alignment]);W?this.tag("th",E):this.tag("/th")};
_.N.out=function(F){qd(this,vi(F,!1))};
_.N.tag=function(F,W,E){if(!(this.disableTags>0)){this.buffer+="<"+F;if(W&&W.length>0){F=0;for(var h;(h=W[F])!==void 0;)this.buffer+=" "+h[0]+'="'+h[1]+'"',F++}E&&(this.buffer+=" /");this.buffer+=">";this.lastOut=">"}};
_.N.attrs=function(F){var W=[];this.options.sourcepos&&(F=F.sourcepos)&&W.push(["data-sourcepos",String(F[0][0])+":"+String(F[0][1])+"-"+String(F[1][0])+":"+String(F[1][1])]);return W};
g8.prototype.text=g8.prototype.text;g8.prototype.html_inline=g8.prototype.html_inline;g8.prototype.html_block=g8.prototype.html_block;g8.prototype.softbreak=g8.prototype.softbreak;g8.prototype.linebreak=g8.prototype.linebreak;g8.prototype.link=g8.prototype.link;g8.prototype.image=g8.prototype.image;g8.prototype.emph=g8.prototype.emph;g8.prototype.strong=g8.prototype.strong;g8.prototype.paragraph=g8.prototype.paragraph;g8.prototype.heading=g8.prototype.heading;g8.prototype.code=g8.prototype.code;
g8.prototype.code_block=g8.prototype.code_block;g8.prototype.thematic_break=g8.prototype.thematic_break;g8.prototype.block_quote=g8.prototype.block_quote;g8.prototype.list=g8.prototype.list;g8.prototype.item=g8.prototype.item;g8.prototype.custom_inline=g8.prototype.custom_inline;g8.prototype.custom_block=g8.prototype.custom_block;g8.prototype.table=g8.prototype.table;g8.prototype.row=g8.prototype.row;g8.prototype.td=g8.prototype.td;g8.prototype.th=g8.prototype.th;g8.prototype.out=g8.prototype.out;
g8.prototype.tag=g8.prototype.tag;g8.prototype.attrs=g8.prototype.attrs;/*

Copyright 2010-2017 Mike Bostock
All rights reserved.

Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:

 Redistributions of source code must retain the above copyright notice, this
  list of conditions and the following disclaimer.

 Redistributions in binary form must reproduce the above copyright notice,
  this list of conditions and the following disclaimer in the documentation
  and/or other materials provided with the distribution.

 Neither the name of the author nor the names of contributors may be used to
  endorse or promote products derived from this software without specific prior
  written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
var rmu,Tha,sJe;(function(){function F(H,q){return H<q?-1:H>q?1:H>=q?0:NaN}
function W(H){return function(q,f){return F(H(q),f)}}
function E(){for(var H=0,q=arguments.length,f={},u;H<q;++H){if(!(u=arguments[H]+"")||u in f)throw Error("re`"+u);f[u]=[]}return new h(f)}
function h(H){this._=H}
function d(H,q){return H.trim().split(/^|\s+/).map(function(f){var u="",Nw=f.indexOf(".");Nw>=0&&(u=f.slice(Nw+1),f=f.slice(0,Nw));if(f&&!q.hasOwnProperty(f))throw Error("se`"+f);return{type:f,name:u}})}
function V(H,q,f){for(var u=0,Nw=H.length;u<Nw;++u)if(H[u].name===q){H[u]=Ec6;H=H.slice(0,u).concat(H.slice(u+1));break}f!=null&&H.push({name:q,value:f});return H}
function R(H){var q=H,f=q.indexOf(":");f>=0&&(q=H.slice(0,f))!=="xmlns"&&(H=H.slice(f+1));return Ya.hasOwnProperty(q)?{space:Ya[q],local:H}:H}
function M(H){return function(){var q=this.ownerDocument,f=this.namespaceURI;return f==="http://www.w3.org/1999/xhtml"&&q.documentElement.namespaceURI==="http://www.w3.org/1999/xhtml"?q.createElement(H):q.createElementNS(f,H)}}
function g(H){return function(){return this.ownerDocument.createElementNS(H.space,H.local)}}
function t(H){H=R(H);return(H.local?g:M)(H)}
function C(){}
function B(H){return H==null?C:function(){return this.querySelector(H)}}
function I(H){return Array(H.length)}
function x(H,q){this.ownerDocument=H.ownerDocument;this.namespaceURI=H.namespaceURI;this._next=null;this._parent=H;this.__data__=q}
function A(H){return function(){return H}}
function X(H,q,f,u,Nw,Qo){for(var In=0,$W,Fp=q.length,pb=Qo.length;In<pb;++In)($W=q[In])?($W.__data__=Qo[In],u[In]=$W):f[In]=new x(H,Qo[In]);for(;In<Fp;++In)if($W=q[In])Nw[In]=$W}
function P(H,q,f,u,Nw,Qo,In){var $W,Fp,pb={},WO=q.length,ta=Qo.length,u_=Array(WO),tP;for($W=0;$W<WO;++$W)if(Fp=q[$W])u_[$W]=tP="$"+In.call(Fp,Fp.__data__,$W,q),tP in pb?Nw[$W]=Fp:pb[tP]=Fp;for($W=0;$W<ta;++$W)tP="$"+In.call(H,Qo[$W],$W,Qo),(Fp=pb[tP])?(u[$W]=Fp,Fp.__data__=Qo[$W],pb[tP]=null):f[$W]=new x(H,Qo[$W]);for($W=0;$W<WO;++$W)(Fp=q[$W])&&pb[u_[$W]]===Fp&&(Nw[$W]=Fp)}
function b(H,q){return H<q?-1:H>q?1:H>=q?0:NaN}
function l(H){return function(){this.removeAttribute(H)}}
function w(H){return function(){this.removeAttributeNS(H.space,H.local)}}
function G(H,q){return function(){this.setAttribute(H,q)}}
function hr(H,q){return function(){this.setAttributeNS(H.space,H.local,q)}}
function p(H,q){return function(){var f=q.apply(this,arguments);f==null?this.removeAttribute(H):this.setAttribute(H,f)}}
function UY(H,q){return function(){var f=q.apply(this,arguments);f==null?this.removeAttributeNS(H.space,H.local):this.setAttributeNS(H.space,H.local,f)}}
function xW(H){return function(){this.style.removeProperty(H)}}
function qw(H,q,f){return function(){this.style.setProperty(H,q,f)}}
function Lb(H,q,f){return function(){var u=q.apply(this,arguments);u==null?this.style.removeProperty(H):this.style.setProperty(H,u,f)}}
function jk(H,q){return H.style.getPropertyValue(q)||(H.ownerDocument&&H.ownerDocument.defaultView||H.document&&H||H.defaultView).getComputedStyle(H,null).getPropertyValue(q)}
function Jr(H){return function(){delete this[H]}}
function nb(H,q){return function(){this[H]=q}}
function bo(H,q){return function(){var f=q.apply(this,arguments);f==null?delete this[H]:this[H]=f}}
function uo(){this.textContent=""}
function b_(H){return function(){this.textContent=H}}
function BO(H){return function(){var q=H.apply(this,arguments);this.textContent=q==null?"":q}}
function dc(){this.innerHTML=""}
function VM(H){return function(){this.innerHTML=H}}
function Z_(H){return function(){var q=H.apply(this,arguments);this.innerHTML=q==null?"":q}}
function MU(){return null}
function Ef(){var H=this.parentNode;H&&H.removeChild(this)}
function kR(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}
function Rn(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}
function se(H,q,f){H=l_(H,q,f);return function(u){var Nw=u.relatedTarget;Nw&&(Nw===this||Nw.compareDocumentPosition(this)&8)||H.call(this,u)}}
function l_(H,q,f){return function(){H.call(this,this.__data__,q,f)}}
function j$(H){return H.trim().split(/^|\s+/).map(function(q){var f="",u=q.indexOf(".");u>=0&&(f=q.slice(u+1),q=q.slice(0,u));return{type:q,name:f}})}
function HO(H){return function(){var q=this.__on;if(q){for(var f=0,u=-1,Nw=q.length,Qo;f<Nw;++f)(Qo=q[f],H.type&&Qo.type!==H.type||Qo.name!==H.name)?q[++u]=Qo:this.removeEventListener(Qo.type,Qo.listener,Qo.capture);++u?q.length=u:delete this.__on}}}
function YB(H,q,f){var u=MMc.hasOwnProperty(H.type)?se:l_;return function(Nw,Qo,In){Nw=this.__on;var $W;Qo=u(q,Qo,In);if(Nw){In=0;for(var Fp=Nw.length;In<Fp;++In)if(($W=Nw[In]).type===H.type&&$W.name===H.name){this.removeEventListener($W.type,$W.listener,$W.capture);this.addEventListener($W.type,$W.listener=Qo,$W.capture=f);$W.value=q;return}}this.addEventListener(H.type,Qo,f);$W={type:H.type,name:H.name,value:q,listener:Qo,capture:f};Nw?Nw.push($W):this.__on=[$W]}}
function GT(H,q,f){var u=H.ownerDocument&&H.ownerDocument.defaultView||H.document&&H||H.defaultView,Nw=u.CustomEvent;typeof Nw==="function"?Nw=new Nw(q,f):(Nw=u.document.createEvent("Event"),f?(Nw.initEvent(q,f.bubbles,f.cancelable),Nw.detail=f.detail):Nw.initEvent(q,!1,!1));H.dispatchEvent(Nw)}
function vO(H,q){return function(){return GT(this,H,q)}}
function wI(H,q){return function(){return GT(this,H,q.apply(this,arguments))}}
function Aa(H,q){this._groups=H;this._parents=q}
function MF(){return new Aa([[document.documentElement]],h4x)}
function LT(){this._="@"+(++dSN).toString(36)}
function Du(H,q,f){H.prototype=q.prototype=f;f.constructor=H}
function MR(H,q){H=Object.create(H.prototype);for(var f in q)H[f]=q[f];return H}
function QA(){}
function iK(H){var q;H=(H+"").trim().toLowerCase();return(q=Na8.exec(H))?(q=parseInt(q[1],16),new YK(q>>8&15|q>>4&240,q>>4&15|q&240,(q&15)<<4|q&15,1)):(q=VP$.exec(H))?DV(parseInt(q[1],16)):(q=US6.exec(H))?new YK(q[1],q[2],q[3],1):(q=R4F.exec(H))?new YK(q[1]*255/100,q[2]*255/100,q[3]*255/100,1):(q=e4q.exec(H))?xt(q[1],q[2],q[3],q[4]):(q=MPq.exec(H))?xt(q[1]*255/100,q[2]*255/100,q[3]*255/100,q[4]):(q=gcN.exec(H))?zX(q[1],q[2]/100,q[3]/100,1):(q=QY6.exec(H))?zX(q[1],q[2]/100,q[3]/100,q[4]):g5p.hasOwnProperty(H)?
DV(g5p[H]):H==="transparent"?new YK(NaN,NaN,NaN,0):null}
function DV(H){return new YK(H>>16&255,H>>8&255,H&255,1)}
function xt(H,q,f,u){u<=0&&(H=q=f=NaN);return new YK(H,q,f,u)}
function i_(H){H instanceof QA||(H=iK(H));if(!H)return new YK;H=H.rgb();return new YK(H.r,H.g,H.b,H.opacity)}
function AP(H,q,f,u){return arguments.length===1?i_(H):new YK(H,q,f,u==null?1:u)}
function YK(H,q,f,u){this.r=+H;this.g=+q;this.b=+f;this.opacity=+u}
function S$(H){H=Math.max(0,Math.min(255,Math.round(H)||0));return(H<16?"0":"")+H.toString(16)}
function zX(H,q,f,u){u<=0?H=q=f=NaN:f<=0||f>=1?H=q=NaN:q<=0&&(H=NaN);return new Cd(H,q,f,u)}
function Np(H){if(H instanceof Cd)return new Cd(H.h,H.s,H.l,H.opacity);H instanceof QA||(H=iK(H));if(!H)return new Cd;if(H instanceof Cd)return H;H=H.rgb();var q=H.r/255,f=H.g/255,u=H.b/255,Nw=Math.min(q,f,u),Qo=Math.max(q,f,u),In=NaN,$W=Qo-Nw,Fp=(Qo+Nw)/2;$W?(In=q===Qo?(f-u)/$W+(f<u)*6:f===Qo?(u-q)/$W+2:(q-f)/$W+4,$W/=Fp<.5?Qo+Nw:2-Qo-Nw,In*=60):$W=Fp>0&&Fp<1?0:In;return new Cd(In,$W,Fp,H.opacity)}
function Ac(H,q,f,u){return arguments.length===1?Np(H):new Cd(H,q,f,u==null?1:u)}
function Cd(H,q,f,u){this.h=+H;this.s=+q;this.l=+f;this.opacity=+u}
function S9(H,q,f){return(H<60?q+(f-q)*H/60:H<180?f:H<240?q+(f-q)*(240-H)/60:q)*255}
function tF(H){if(H instanceof DS)return new DS(H.l,H.a,H.b,H.opacity);if(H instanceof xB){if(isNaN(H.h))return new DS(H.l,0,0,H.opacity);var q=H.h*Qqu;return new DS(H.l,Math.cos(q)*H.c,Math.sin(q)*H.c,H.opacity)}H instanceof YK||(H=i_(H));var f=NF(H.r),u=NF(H.g),Nw=NF(H.b);q=fb(.2225045*f+.7168786*u+.0606169*Nw);if(f===u&&u===Nw)var Qo=f=q;else Qo=fb((.4360747*f+.3850649*u+.1430804*Nw)/.96422),f=fb((.0139322*f+.0971045*u+.7141733*Nw)/.82521);return new DS(116*q-16,500*(Qo-q),200*(q-f),H.opacity)}
function DS(H,q,f,u){this.l=+H;this.a=+q;this.b=+f;this.opacity=+u}
function fb(H){return H>z4q?Math.pow(H,1/3):H/zRB+tMp}
function rI(H){return H>UU?H*H*H:zRB*(H-tMp)}
function Ii(H){return 255*(H<=.0031308?12.92*H:1.055*Math.pow(H,1/2.4)-.055)}
function NF(H){return(H/=255)<=.04045?H/12.92:Math.pow((H+.055)/1.055,2.4)}
function JW(H){if(H instanceof xB)return new xB(H.h,H.c,H.l,H.opacity);H instanceof DS||(H=tF(H));if(H.a===0&&H.b===0)return new xB(NaN,0,H.l,H.opacity);var q=Math.atan2(H.b,H.a)*CBX;return new xB(q<0?q+360:q,Math.sqrt(H.a*H.a+H.b*H.b),H.l,H.opacity)}
function Qx(H,q,f,u){return arguments.length===1?JW(H):new xB(H,q,f,u==null?1:u)}
function xB(H,q,f,u){this.h=+H;this.c=+q;this.l=+f;this.opacity=+u}
function cO(H,q,f,u){if(arguments.length===1){var Nw=H;if(Nw instanceof z8)Nw=new z8(Nw.h,Nw.s,Nw.l,Nw.opacity);else{Nw instanceof YK||(Nw=i_(Nw));var Qo=Nw.g/255,In=Nw.b/255,$W=(BNz*In+Nw.r/255*-1.7884503806-3.5172982438*Qo)/(BNz+-1.7884503806-3.5172982438);In-=$W;var Fp=(1.97294*(Qo-$W)- -.29227*In)/-.90649;In=(Qo=Math.sqrt(Fp*Fp+In*In)/(1.97294*$W*(1-$W)))?Math.atan2(Fp,In)*CBX-120:NaN;Nw=new z8(In<0?In+360:In,Qo,$W,Nw.opacity)}}else Nw=new z8(H,q,f,u==null?1:u);return Nw}
function z8(H,q,f,u){this.h=+H;this.s=+q;this.l=+f;this.opacity=+u}
function qR(H,q,f,u,Nw){var Qo=H*H,In=Qo*H;return((1-3*H+3*Qo-In)*q+(4-6*Qo+3*In)*f+(1+3*H+3*Qo-3*In)*u+In*Nw)/6}
function Ri(H){return function(){return H}}
function kw(H,q){return function(f){return H+f*q}}
function ye(H,q,f){return H=Math.pow(H,f),q=Math.pow(q,f)-H,f=1/f,function(u){return Math.pow(H+u*q,f)}}
function lL(H,q){var f=q-H;return f?kw(H,f>180||f<-180?f-360*Math.round(f/360):f):Ri(isNaN(H)?q:H)}
function Yj(H){return(H=+H)===1?b5:function(q,f){return f-q?ye(q,f,H):Ri(isNaN(q)?f:q)}}
function b5(H,q){var f=q-H;return f?kw(H,f):Ri(isNaN(H)?q:H)}
function s_(H){return function(q){var f=q.length,u=Array(f),Nw=Array(f),Qo=Array(f),In;for(In=0;In<f;++In){var $W=AP(q[In]);u[In]=$W.r||0;Nw[In]=$W.g||0;Qo[In]=$W.b||0}u=H(u);Nw=H(Nw);Qo=H(Qo);$W.opacity=1;return function(Fp){$W.r=u(Fp);$W.g=Nw(Fp);$W.b=Qo(Fp);return $W+""}}}
function SU(H,q){return H=+H,q-=H,function(f){return H+q*f}}
function Sk(H){return function(){return H}}
function BT(H){return function(q){return H(q)+""}}
function PT(H,q){var f=MMI.lastIndex=g5e.lastIndex=0,u,Nw,Qo,In=-1,$W=[],Fp=[];H+="";for(q+="";(u=MMI.exec(H))&&(Nw=g5e.exec(q));)(Qo=Nw.index)>f&&(Qo=q.slice(f,Qo),$W[In]?$W[In]+=Qo:$W[++In]=Qo),(u=u[0])===(Nw=Nw[0])?$W[In]?$W[In]+=Nw:$W[++In]=Nw:($W[++In]=null,Fp.push({i:In,x:SU(u,Nw)})),f=g5e.lastIndex;f<q.length&&(Qo=q.slice(f),$W[In]?$W[In]+=Qo:$W[++In]=Qo);return $W.length<2?Fp[0]?BT(Fp[0].x):Sk(q):(q=Fp.length,function(pb){for(var WO=0,ta;WO<q;++WO)$W[(ta=Fp[WO]).i]=ta.x(pb);return $W.join("")})}
function f2(H,q,f,u,Nw,Qo){var In,$W,Fp;if(In=Math.sqrt(H*H+q*q))H/=In,q/=In;if(Fp=H*f+q*u)f-=H*Fp,u-=q*Fp;if($W=Math.sqrt(f*f+u*u))f/=$W,u/=$W,Fp/=$W;H*u<q*f&&(H=-H,q=-q,Fp=-Fp,In=-In);return{translateX:Nw,translateY:Qo,rotate:Math.atan2(q,H)*v5U,skewX:Math.atan(Fp)*v5U,scaleX:In,scaleY:$W}}
function Zd(H,q,f,u){function Nw(pb){return pb.length?pb.pop()+" ":""}
function Qo(pb,WO,ta,u_,tP,vk){pb!==ta||WO!==u_?(tP=tP.push("translate(",null,q,null,f),vk.push({i:tP-4,x:SU(pb,ta)},{i:tP-2,x:SU(WO,u_)})):(ta||u_)&&tP.push("translate("+ta+q+u_+f)}
function In(pb,WO,ta,u_){pb!==WO?(pb-WO>180?WO+=360:WO-pb>180&&(pb+=360),u_.push({i:ta.push(Nw(ta)+"rotate(",null,u)-2,x:SU(pb,WO)})):WO&&ta.push(Nw(ta)+"rotate("+WO+u)}
function $W(pb,WO,ta,u_){pb!==WO?u_.push({i:ta.push(Nw(ta)+"skewX(",null,u)-2,x:SU(pb,WO)}):WO&&ta.push(Nw(ta)+"skewX("+WO+u)}
function Fp(pb,WO,ta,u_,tP,vk){pb!==ta||WO!==u_?(tP=tP.push(Nw(tP)+"scale(",null,",",null,")"),vk.push({i:tP-4,x:SU(pb,ta)},{i:tP-2,x:SU(WO,u_)})):ta===1&&u_===1||tP.push(Nw(tP)+"scale("+ta+","+u_+")")}
return function(pb,WO){var ta=[],u_=[];pb=H(pb);WO=H(WO);Qo(pb.translateX,pb.translateY,WO.translateX,WO.translateY,ta,u_);In(pb.rotate,WO.rotate,ta,u_);$W(pb.skewX,WO.skewX,ta,u_);Fp(pb.scaleX,pb.scaleY,WO.scaleX,WO.scaleY,ta,u_);pb=WO=null;return function(tP){for(var vk=-1,oI=u_.length,sW;++vk<oI;)ta[(sW=u_[vk]).i]=sW.x(tP);return ta.join("")}}}
function Vl(H){return function(q,f){var u=H((q=Ac(q)).h,(f=Ac(f)).h),Nw=b5(q.s,f.s),Qo=b5(q.l,f.l),In=b5(q.opacity,f.opacity);return function($W){q.h=u($W);q.s=Nw($W);q.l=Qo($W);q.opacity=In($W);return q+""}}}
function je(H){return function(q,f){var u=H((q=Qx(q)).h,(f=Qx(f)).h),Nw=b5(q.c,f.c),Qo=b5(q.l,f.l),In=b5(q.opacity,f.opacity);return function($W){q.h=u($W);q.c=Nw($W);q.l=Qo($W);q.opacity=In($W);return q+""}}}
function sV(H){return function u(f){function Nw(Qo,In){var $W=H((Qo=cO(Qo)).h,(In=cO(In)).h),Fp=b5(Qo.s,In.s),pb=b5(Qo.l,In.l),WO=b5(Qo.opacity,In.opacity);return function(ta){Qo.h=$W(ta);Qo.s=Fp(ta);Qo.l=pb(Math.pow(ta,f));Qo.opacity=WO(ta);return Qo+""}}
f=+f;Nw.gamma=u;return Nw}(1)}
function o3(){return yp||(IDp(oKw),yp=SD.now()+czo)}
function oKw(){yp=0}
function k6(){this._call=this._time=this._next=null}
function Tm(H,q,f){var u=new k6;u.restart(H,q,f);return u}
function of(){yp=(D6o=SD.now())+czo;RC=pF=0;try{o3();++RC;for(var H=x6Y,q;H;)(q=yp-H._time)>=0&&H._call.call(null,q),H=H._next;--RC}finally{RC=0;H=x6Y;for(var f=Infinity;H;)if(H._call){f>H._time&&(f=H._time);var u=H;H=H._next}else q=H._next,H._next=null,H=u?u._next=q:x6Y=q;mD=u;Gm(f);yp=0}}
function $Yo(){var H=SD.now(),q=H-D6o;q>1E3&&(czo-=q,D6o=H)}
function Gm(H){RC||(pF&&(pF=clearTimeout(pF)),H-yp>24?(H<Infinity&&(pF=setTimeout(of,H-SD.now()-czo)),KF&&(KF=clearInterval(KF))):(KF||(D6o=SD.now(),KF=setInterval($Yo,1E3)),RC=1,IDp(of)))}
function cj_(H,q,f){var u=new k6;q=q==null?0:+q;u.restart(function(Nw){u.stop();H(Nw+q)},q,f);
return u}
function Qqr(H,q,f,u,Nw,Qo){var In=H.__transition;if(!In)H.__transition={};else if(f in In)return;tP$(H,f,{name:q,index:u,group:Nw,on:CkK,tween:BaF,time:Qo.time,delay:Qo.delay,duration:Qo.duration,ease:Qo.ease,timer:null,state:0})}
function zRW(H,q){H=QD(H,q);if(H.state>0)throw Error("te");return H}
function jy(H,q){H=QD(H,q);if(H.state>2)throw Error("ue");return H}
function QD(H,q){H=H.__transition;if(!H||!(H=H[q]))throw Error("ve");return H}
function tP$(H,q,f){function u(Fp){var pb,WO;if(f.state!==1)return Qo();for(u_ in In){var ta=In[u_];if(ta.name===f.name){if(ta.state===3)return cj_(u);ta.state===4?(ta.state=6,ta.timer.stop(),ta.on.call("interrupt",H,H.__data__,ta.index,ta.group),delete In[u_]):+u_<q&&(ta.state=6,ta.timer.stop(),delete In[u_])}}cj_(function(){f.state===3&&(f.state=4,f.timer.restart(Nw,f.delay,f.time),Nw(Fp))});
f.state=2;f.on.call("start",H,H.__data__,f.index,f.group);if(f.state===2){f.state=3;$W=Array(WO=f.tween.length);var u_=0;for(pb=-1;u_<WO;++u_)if(ta=f.tween[u_].value.call(H,H.__data__,f.index,f.group))$W[++pb]=ta;$W.length=pb+1}}
function Nw(Fp){Fp=Fp<f.duration?f.ease.call(null,Fp/f.duration):(f.timer.restart(Qo),f.state=5,1);for(var pb=-1,WO=$W.length;++pb<WO;)$W[pb].call(null,Fp);f.state===5&&(f.on.call("end",H,H.__data__,f.index,f.group),Qo())}
function Qo(){f.state=6;f.timer.stop();delete In[q];for(var Fp in In)return;delete H.__transition}
var In=H.__transition,$W;In[q]=f;f.timer=Tm(function(Fp){f.state=1;f.timer.restart(u,f.delay,f.time);f.delay<=Fp&&u(Fp-f.delay)},0,f.time)}
function vcg(H,q){var f,u;return function(){var Nw=jy(this,H),Qo=Nw.tween;if(Qo!==f){u=f=Qo;Qo=0;for(var In=u.length;Qo<In;++Qo)if(u[Qo].name===q){u=u.slice();u.splice(Qo,1);break}}Nw.tween=u}}
function I9K(H,q,f){var u,Nw;if(typeof f!=="function")throw Error();return function(){var Qo=jy(this,H),In=Qo.tween;if(In!==u){Nw=(u=In).slice();In={name:q,value:f};for(var $W=0,Fp=Nw.length;$W<Fp;++$W)if(Nw[$W].name===q){Nw[$W]=In;break}$W===Fp&&Nw.push(In)}Qo.tween=Nw}}
function tMe(H,q,f){var u=H._id;H.each(function(){var Nw=jy(this,u);(Nw.value||(Nw.value={}))[q]=f.apply(this,arguments)});
return function(Nw){return QD(Nw,u).value[q]}}
function DdX(H,q){var f;return(typeof q==="number"?SU:q instanceof iK?xdp:(f=iK(q))?(q=f,xdp):PT)(H,q)}
function ckx(H){return function(){this.removeAttribute(H)}}
function DSF(H){return function(){this.removeAttributeNS(H.space,H.local)}}
function xS$(H,q,f){var u,Nw;return function(){var Qo=this.getAttribute(H);return Qo===f?null:Qo===u?Nw:Nw=q(u=Qo,f)}}
function kHw(H,q,f){var u,Nw;return function(){var Qo=this.getAttributeNS(H.space,H.local);return Qo===f?null:Qo===u?Nw:Nw=q(u=Qo,f)}}
function Ak6(H,q,f){var u,Nw,Qo;return function(){var In=f(this);if(In==null)return void this.removeAttribute(H);var $W=this.getAttribute(H);return $W===In?null:$W===u&&In===Nw?Qo:Qo=q(u=$W,Nw=In)}}
function sY$(H,q,f){var u,Nw,Qo;return function(){var In=f(this);if(In==null)return void this.removeAttributeNS(H.space,H.local);var $W=this.getAttributeNS(H.space,H.local);return $W===In?null:$W===u&&In===Nw?Qo:Qo=q(u=$W,Nw=In)}}
function LZ8(H,q){function f(){var u=this,Nw=q.apply(u,arguments);return Nw&&function(Qo){u.setAttributeNS(H.space,H.local,Nw(Qo))}}
f._value=q;return f}
function qnP(H,q){function f(){var u=this,Nw=q.apply(u,arguments);return Nw&&function(Qo){u.setAttribute(H,Nw(Qo))}}
f._value=q;return f}
function $SO(H,q){return function(){zRW(this,H).delay=+q.apply(this,arguments)}}
function Zv6(H,q){return q=+q,function(){zRW(this,H).delay=q}}
function XKK(H,q){return function(){jy(this,H).duration=+q.apply(this,arguments)}}
function Hvu(H,q){return q=+q,function(){jy(this,H).duration=q}}
function PkO(H,q){if(typeof q!=="function")throw Error();return function(){jy(this,H).ease=q}}
function JkO(H){return(H+"").trim().split(/^|\s+/).every(function(q){var f=q.indexOf(".");f>=0&&(q=q.slice(0,f));return!q||q==="start"})}
function a9w(H,q,f){var u,Nw,Qo=JkO(q)?zRW:jy;return function(){var In=Qo(this,H),$W=In.on;if($W!==u)(Nw=(u=$W).copy()).on(q,f);In.on=Nw}}
function f9P(H){return function(){var q=this.parentNode,f;for(f in this.__transition)if(+f!==H)return;q&&q.removeChild(this)}}
function Ovx(H,q){var f,u,Nw;return function(){var Qo=jk(this,H),In=(this.style.removeProperty(H),jk(this,H));return Qo===In?null:Qo===f&&In===u?Nw:Nw=q(f=Qo,u=In)}}
function bvx(H){return function(){this.style.removeProperty(H)}}
function l9F(H,q,f){var u,Nw;return function(){var Qo=jk(this,H);return Qo===f?null:Qo===u?Nw:Nw=q(u=Qo,f)}}
function ncx(H,q,f){var u,Nw,Qo;return function(){var In=jk(this,H),$W=f(this);$W==null&&($W=(this.style.removeProperty(H),jk(this,H)));return In===$W?null:In===u&&$W===Nw?Qo:Qo=q(u=In,Nw=$W)}}
function ykw(H,q,f){function u(){var Nw=this,Qo=q.apply(Nw,arguments);return Qo&&function(In){Nw.style.setProperty(H,Qo(In),f)}}
u._value=q;return u}
function jYu(H){return function(){this.textContent=H}}
function ivu(H){return function(){var q=H(this);this.textContent=q==null?"":q}}
function tq(H,q,f,u){this._groups=H;this._parents=q;this._name=f;this._id=u}
function CBY(H){return{type:H}}
function BNR(){this._x0=this._y0=this._x1=this._y1=null;this._=""}
function kiY(){}
function kNM(H,q){var f=new kiY;if(H instanceof kiY)H.each(function(In,$W){f.set($W,In)});
else if(Array.isArray(H)){var u=-1,Nw=H.length,Qo;if(q==null)for(;++u<Nw;)f.set(u,H[u]);else for(;++u<Nw;)f.set(q(Qo=H[u],u,H),Qo)}else if(H)for(u in H)f.set(u,H[u]);return f}
function AzY(){}
function Aju(H){return function(q){for(var f={},u=0;u<H.length;u++)f[H[u]]=q[u]||"";return f}}
function rkx(H,q){var f=Aju(H);return function(u,Nw){return q(f(u),Nw,H)}}
function TaK(H){var q=Object.create(null),f=[];H.forEach(function(u){for(var Nw in u)Nw in q||f.push(q[Nw]=Nw)});
return f}
function sqH(H){function q(In,$W){function Fp(){if(vk)return v5w;if(oI)return oI=!1,Lya;var we,mj=ta,Xj;if(In.charCodeAt(mj)===34){for(;ta++<WO&&In.charCodeAt(ta)!==34||In.charCodeAt(++ta)===34;);(we=ta)>=WO?vk=!0:(Xj=In.charCodeAt(ta++))===10?oI=!0:Xj===13&&(oI=!0,In.charCodeAt(ta)===10&&++ta);return In.slice(mj+1,we-1).replace(/""/g,'"')}for(;ta<WO;){if((Xj=In.charCodeAt(we=ta++))===10)oI=!0;else if(Xj===13)oI=!0,In.charCodeAt(ta)===10&&++ta;else if(Xj!==Qo)continue;return In.slice(mj,we)}return vk=
!0,In.slice(mj,WO)}
var pb=[],WO=In.length,ta=0,u_=0,tP,vk=WO<=0,oI=!1;In.charCodeAt(WO-1)===10&&--WO;for(In.charCodeAt(WO-1)===13&&--WO;(tP=Fp())!==v5w;){for(var sW=[];tP!==Lya&&tP!==v5w;)sW.push(tP),tP=Fp();$W&&(sW=$W(sW,u_++))==null||pb.push(sW)}return pb}
function f(In){return In.map(u).join(H)}
function u(In){return In==null?"":Nw.test(In)?'"'+In.replace(/"/g,'""')+'"':In}
var Nw=new RegExp('["'+H+"\n\r]"),Qo=H.charCodeAt(0);return{parse:function(In,$W){var Fp,pb;In=q(In,function(WO,ta){if(Fp)return Fp(WO,ta-1);pb=WO;Fp=$W?rkx(WO,$W):Aju(WO)});
In.columns=pb||[];return In},
parseRows:q,format:function(In,$W){$W==null&&($W=TaK(In));return[$W.map(u).join(H)].concat(In.map(function(Fp){return $W.map(function(pb){return u(Fp[pb])}).join(H)})).join("\n")},
formatRows:function(In){return In.map(f).join("\n")}}}
function oc$(H){if(!H.ok)throw Error("we`"+H.status+"`"+H.statusText);return H.text()}
function qPU(H){return function(q,f,u){arguments.length===2&&typeof f==="function"&&(u=f,f=void 0);return fetch(q,f).then(oc$).then(function(Nw){return H(Nw,u)})}}
function $dB(H,q,f,u){if(isNaN(q)||isNaN(f))return H;var Nw,Qo=H._root;u={data:u};var In=H._x0,$W=H._y0,Fp=H._x1,pb=H._y1,WO,ta,u_,tP,vk;if(!Qo)return H._root=u,H;for(;Qo.length;)if((u_=q>=(WO=(In+Fp)/2))?In=WO:Fp=WO,(tP=f>=(ta=($W+pb)/2))?$W=ta:pb=ta,Nw=Qo,!(Qo=Qo[vk=tP<<1|u_]))return Nw[vk]=u,H;var oI=+H._x.call(null,Qo.data);var sW=+H._y.call(null,Qo.data);if(q===oI&&f===sW)return u.next=Qo,Nw?Nw[vk]=u:H._root=u,H;do Nw=Nw?Nw[vk]=Array(4):H._root=Array(4),(u_=q>=(WO=(In+Fp)/2))?In=WO:Fp=WO,(tP=
f>=(ta=($W+pb)/2))?$W=ta:pb=ta;while((vk=tP<<1|u_)===(u_=(sW>=ta)<<1|oI>=WO));return Nw[u_]=Qo,Nw[vk]=u,H}
function hT(H,q,f,u,Nw){this.node=H;this.x0=q;this.y0=f;this.x1=u;this.y1=Nw}
function GHN(H){return H[0]}
function Yn6(H){return H[1]}
function IDe(H,q,f,u,Nw,Qo){this._x=H;this._y=q;this._x0=f;this._y0=u;this._x1=Nw;this._y1=Qo;this._root=void 0}
function ZHz(H){for(var q={data:H.data},f=q;H=H.next;)f=f.next={data:H.data};return q}
function syI(H,q){if((q=(H=q?H.toExponential(q-1):H.toExponential()).indexOf("e"))<0)return null;var f=H.slice(0,q);return[f.length>1?f[0]+f.slice(2):f,+H.slice(q+1)]}
function wKx(H){return H=syI(Math.abs(H)),H?H[1]:NaN}
function u0N(H,q){return function(f,u){for(var Nw=f.length,Qo=[],In=0,$W=H[0],Fp=0;Nw>0&&$W>0;){Fp+$W+1>u&&($W=Math.max(1,u-Fp));Qo.push(f.substring(Nw-=$W,Nw+$W));if((Fp+=$W+1)>u)break;$W=H[In=(In+1)%H.length]}return Qo.reverse().join(q)}}
function Snx(H){return function(q){return q.replace(/[0-9]/g,function(f){return H[+f]})}}
function cjo(H){return new DdY(H)}
function DdY(H){if(!(q=pKw.exec(H)))throw Error("xe`"+H);var q;this.fill=q[1]||" ";this.align=q[2]||">";this.sign=q[3]||"-";this.symbol=q[4]||"";this.zero=!!q[5];this.width=q[6]&&+q[6];this.comma=!!q[7];this.precision=q[8]&&+q[8].slice(1);this.trim=!!q[9];this.type=q[10]||""}
function Xia(H,q){q=syI(H,q);if(!q)return H+"";H=q[0];q=q[1];return q<0?"0."+Array(-q).join("0")+H:H.length>q+1?H.slice(0,q+1)+"."+H.slice(q+1):H+Array(q-H.length+2).join("0")}
function HHz(H){return H}
function mSF(H){function q($W){function Fp(wu){var v0=Xj,X6=zt,Ql,hW;if(mj==="c")X6=Kr(wu)+X6,wu="";else{wu=+wu;var IO=wu<0;wu=Kr(Math.abs(wu),sW);if(we){var Yp=wu.length,XA=1,uY=-1;a:for(;XA<Yp;++XA)switch(wu[XA]){case ".":uY=Ql=XA;break;case "0":uY===0&&(uY=XA);Ql=XA;break;default:if(!+wu[XA])break a;uY>0&&(uY=0)}wu=uY>0?wu.slice(0,uY)+wu.slice(Ql+1):wu}IO&&+wu===0&&(IO=!1);v0=(IO?ta==="("?ta:"-":ta==="-"||ta==="("?"":ta)+v0;X6=(mj==="s"?PBX[8+JjB/3]:"")+X6+(IO&&ta==="("?")":"");if(vE)for(IO=-1,
Ql=wu.length;++IO<Ql;)if(hW=wu.charCodeAt(IO),48>hW||hW>57){X6=(hW===46?Nw+wu.slice(IO+1):wu.slice(IO))+X6;wu=wu.slice(0,IO);break}}oI&&!tP&&(wu=f(wu,Infinity));hW=v0.length+wu.length+X6.length;IO=hW<vk?Array(vk-hW+1).join(pb):"";oI&&tP&&(wu=f(IO+wu,IO.length?vk-X6.length:Infinity),IO="");switch(WO){case "<":wu=v0+wu+X6+IO;break;case "=":wu=v0+IO+wu+X6;break;case "^":wu=IO.slice(0,hW=IO.length>>1)+v0+wu+X6+IO.slice(hW);break;default:wu=IO+v0+wu+X6}return Qo(wu)}
$W=cjo($W);var pb=$W.fill,WO=$W.align,ta=$W.sign,u_=$W.symbol,tP=$W.zero,vk=$W.width,oI=$W.comma,sW=$W.precision,we=$W.trim,mj=$W.type;mj==="n"?(oI=!0,mj="g"):aDH[mj]||(sW==null&&(sW=12),we=!0,mj="g");if(tP||pb==="0"&&WO==="=")tP=!0,pb="0",WO="=";var Xj=u_==="$"?u[0]:u_==="#"&&/[boxX]/.test(mj)?"0"+mj.toLowerCase():"",zt=u_==="$"?u[1]:/[%p]/.test(mj)?In:"",Kr=aDH[mj],vE=/[defgprs%]/.test(mj);sW=sW==null?6:/[gprs]/.test(mj)?Math.max(1,Math.min(21,sW)):Math.max(0,Math.min(20,sW));Fp.toString=function(){return $W+
""};
return Fp}
var f=H.grouping&&H.thousands?u0N(H.grouping,H.thousands):HHz,u=H.currency,Nw=H.decimal,Qo=H.numerals?Snx(H.numerals):HHz,In=H.percent||"%";return{format:q,formatPrefix:function($W,Fp){var pb=q(($W=cjo($W),$W.type="f",$W));$W=Math.max(-8,Math.min(8,Math.floor(wKx(Fp)/3)))*3;var WO=Math.pow(10,-$W),ta=PBX[8+$W/3];return function(u_){return pb(WO*u_)+ta}}}}
function TA(){this.reset()}
function fDe(H,q,f){var u=H.s=q+f,Nw=u-q;H.t=q-(u-Nw)+(f-Nw)}
function L6r(H){return H>1?w9:H<-1?-w9:Math.asin(H)}
function KZq(){}
function OHe(H){var q=H[0];H=H[1];var f=uA(H);return[f*uA(q),f*bC(q),bC(H)]}
function bHa(H,q){return[H[1]*q[2]-H[2]*q[1],H[2]*q[0]-H[0]*q[2],H[0]*q[1]-H[1]*q[0]]}
function lD_(H){var q=qio(H[0]*H[0]+H[1]*H[1]+H[2]*H[2]);H[0]/=q;H[1]/=q;H[2]/=q}
function Fxu(){var H=[],q;return{point:function(f,u){q.push([f,u])},
lineStart:function(){H.push(q=[])},
lineEnd:KZq,rejoin:function(){H.length>1&&H.push(H.pop().concat(H.shift()))},
result:function(){var f=H;H=[];q=null;return f}}}
function $6e(H,q,f,u){this.x=H;this.z=q;this.o=f;this.e=u;this.v=!1;this.n=this.p=null}
function Wx6(H,q,f,u,Nw){var Qo=[],In=[];H.forEach(function(ta){if(!((u_=ta.length-1)<=0)){var u_,tP=ta[0],vk=ta[u_],oI=tP;if(C7(oI[0]-vk[0])<1E-6&&C7(oI[1]-vk[1])<1E-6){Nw.lineStart();for($W=0;$W<u_;++$W)Nw.point((tP=ta[$W])[0],tP[1]);Nw.lineEnd()}else Qo.push(u_=new $6e(tP,ta,null,!0)),In.push(u_.o=new $6e(tP,null,u_,!1)),Qo.push(u_=new $6e(vk,ta,null,!1)),In.push(u_.o=new $6e(vk,null,u_,!0))}});
if(Qo.length){In.sort(q);n5M(Qo);n5M(In);var $W=0;for(H=In.length;$W<H;++$W)In[$W].e=f=!f;f=Qo[0];for(var Fp;;){for(var pb=f,WO=!0;pb.v;)if((pb=pb.n)===f)return;q=pb.z;Nw.lineStart();do{pb.v=pb.o.v=!0;if(pb.e){if(WO)for($W=0,H=q.length;$W<H;++$W)Nw.point((Fp=q[$W])[0],Fp[1]);else u(pb.x,pb.n.x,1,Nw);pb=pb.n}else{if(WO)for(q=pb.p.z,$W=q.length-1;$W>=0;--$W)Nw.point((Fp=q[$W])[0],Fp[1]);else u(pb.x,pb.p.x,-1,Nw);pb=pb.p}pb=pb.o;q=pb.z;WO=!WO}while(!pb.v);Nw.lineEnd()}}}
function n5M(H){if(q=H.length){for(var q,f=0,u=H[0],Nw;++f<q;)u.n=Nw=H[f],Nw.p=u,u=Nw;u.n=Nw=H[0];Nw.p=u}}
function EUg(H){return H.length>1}
function htP(H,q){return((H=H.x)[0]<0?H[1]-w9-1E-6:w9-H[1])-((q=q.x)[0]<0?q[1]-w9-1E-6:w9-q[1])}
function xde(){}
function yjM(H){return function(q,f){var u=uA(q),Nw=uA(f);u=H(u*Nw);return[u*Nw*bC(q),u*bC(f)]}}
function F1(H){return function(q,f){var u=qio(q*q+f*f),Nw=H(u),Qo=bC(Nw);Nw=uA(Nw);return[jqO(q*Qo,u*Nw),L6r(u&&f*Qo/u)]}}
function do8(H){var q=0,f=H.children,u=f&&f.length;if(u)for(;--u>=0;)q+=f[u].value;else q=1;H.value=q}
function iHa(H,q){var f=new Wd(H);H=+H.value&&(f.value=H.value);var u,Nw=[f],Qo,In,$W,Fp;for(q==null&&(q=Nvu);u=Nw.pop();)if(H&&(u.value=+u.data.value),(In=q(u.data))&&(Fp=In.length))for(u.children=Array(Fp),$W=Fp-1;$W>=0;--$W)Nw.push(Qo=u.children[$W]=new Wd(In[$W])),Qo.parent=u,Qo.depth=u.depth+1;return f.eachBefore(VfP)}
function Nvu(H){return H.children}
function UoF(H){H.data=H.data.data}
function VfP(H){var q=0;do H.height=q;while((H=H.parent)&&H.height<++q)}
function Wd(H){this.data=H;this.depth=this.height=0;this.parent=null}
function kx(H,q,f,u){function Nw(Qo){return H(Qo=new Date(+Qo)),Qo}
Nw.floor=Nw;Nw.ceil=function(Qo){return H(Qo=new Date(Qo-1)),q(Qo,1),H(Qo),Qo};
Nw.round=function(Qo){var In=Nw(Qo),$W=Nw.ceil(Qo);return Qo-In<$W-Qo?In:$W};
Nw.offset=function(Qo,In){return q(Qo=new Date(+Qo),In==null?1:Math.floor(In)),Qo};
Nw.range=function(Qo,In,$W){var Fp=[],pb;Qo=Nw.ceil(Qo);$W=$W==null?1:Math.floor($W);if(!(Qo<In&&$W>0))return Fp;do Fp.push(pb=new Date(+Qo)),q(Qo,$W),H(Qo);while(pb<Qo&&Qo<In);return Fp};
Nw.filter=function(Qo){return kx(function(In){if(In>=In)for(;H(In),!Qo(In);)In.setTime(In-1)},function(In,$W){if(In>=In)if($W<0)for(;++$W<=0;)for(;q(In,-1),!Qo(In););
else for(;--$W>=0;)for(;q(In,1),!Qo(In););})};
f&&(Nw.count=function(Qo,In){kNo.setTime(+Qo);Ajr.setTime(+In);H(kNo);H(Ajr);return Math.floor(f(kNo,Ajr))},Nw.every=function(Qo){Qo=Math.floor(Qo);
return isFinite(Qo)&&Qo>0?Qo>1?Nw.filter(u?function(In){return u(In)%Qo===0}:function(In){return Nw.count(0,In)%Qo===0}):Nw:null});
return Nw}
function i4(H){return kx(function(q){q.setDate(q.getDate()-(q.getDay()+7-H)%7);q.setHours(0,0,0,0)},function(q,f){q.setDate(q.getDate()+f*7)},function(q,f){return(f-q-(f.getTimezoneOffset()-q.getTimezoneOffset())*6E4)/6048E5})}
function rD(H){return kx(function(q){q.setUTCDate(q.getUTCDate()-(q.getUTCDay()+7-H)%7);q.setUTCHours(0,0,0,0)},function(q,f){q.setUTCDate(q.getUTCDate()+f*7)},function(q,f){return(f-q)/6048E5})}
function Rt6(H){if(0<=H.y&&H.y<100){var q=new Date(-1,H.m,H.d,H.H,H.M,H.S,H.L);q.setFullYear(H.y);return q}return new Date(H.y,H.m,H.d,H.H,H.M,H.S,H.L)}
function ZdI(H){if(0<=H.y&&H.y<100){var q=new Date(Date.UTC(-1,H.m,H.d,H.H,H.M,H.S,H.L));q.setUTCFullYear(H.y);return q}return new Date(Date.UTC(H.y,H.m,H.d,H.H,H.M,H.S,H.L))}
function EI(H){return{y:H,m:0,d:1,H:0,M:0,S:0,L:0}}
function etK(H){function q(X6,Ql){return function(hW){var IO=[],Yp=-1,XA=0,uY=X6.length,BQ,Pi;for(hW instanceof Date||(hW=new Date(+hW));++Yp<uY;)if(X6.charCodeAt(Yp)===37){IO.push(X6.slice(XA,Yp));(XA=rjM[BQ=X6.charAt(++Yp)])!=null?BQ=X6.charAt(++Yp):XA=BQ==="e"?" ":"0";if(Pi=Ql[BQ])BQ=Pi(hW,XA);IO.push(BQ);XA=Yp+1}IO.push(X6.slice(XA,Yp));return IO.join("")}}
function f(X6,Ql){return function(hW){var IO=EI(1900);if(u(IO,X6,hW,0)!=hW.length)return null;if("Q"in IO)return new Date(IO.Q);"p"in IO&&(IO.H=IO.H%12+IO.p*12);if("V"in IO){if(IO.V<1||IO.V>53)return null;"w"in IO||(IO.w=1);if("Z"in IO){hW=ZdI(EI(IO.y));var Yp=hW.getUTCDay();hW=Yp>4||Yp===0?sqk.ceil(hW):sqk(hW);hW=TNi.offset(hW,(IO.V-1)*7);IO.y=hW.getUTCFullYear();IO.m=hW.getUTCMonth();IO.d=hW.getUTCDate()+(IO.w+6)%7}else hW=Ql(EI(IO.y)),Yp=hW.getDay(),hW=Yp>4||Yp===0?Lyr.ceil(hW):Lyr(hW),hW=o5e.offset(hW,
(IO.V-1)*7),IO.y=hW.getFullYear(),IO.m=hW.getMonth(),IO.d=hW.getDate()+(IO.w+6)%7}else if("W"in IO||"U"in IO)"w"in IO||(IO.w="u"in IO?IO.u%7:"W"in IO?1:0),Yp="Z"in IO?ZdI(EI(IO.y)).getUTCDay():Ql(EI(IO.y)).getDay(),IO.m=0,IO.d="W"in IO?(IO.w+6)%7+IO.W*7-(Yp+5)%7:IO.w+IO.U*7-(Yp+6)%7;return"Z"in IO?(IO.H+=IO.Z/100|0,IO.M+=IO.Z%100,ZdI(IO)):Ql(IO)}}
function u(X6,Ql,hW,IO){for(var Yp=0,XA=Ql.length,uY=hW.length,BQ;Yp<XA;){if(IO>=uY)return-1;BQ=Ql.charCodeAt(Yp++);if(BQ===37){if(BQ=Ql.charAt(Yp++),BQ=v0[BQ in rjM?Ql.charAt(Yp++):BQ],!BQ||(IO=BQ(X6,hW,IO))<0)return-1}else if(BQ!=hW.charCodeAt(IO++))return-1}return IO}
var Nw=H.dateTime,Qo=H.date,In=H.time,$W=H.periods,Fp=H.days,pb=H.shortDays,WO=H.months,ta=H.shortMonths,u_=h0($W),tP=dd($W),vk=h0(Fp),oI=dd(Fp),sW=h0(pb),we=dd(pb),mj=h0(WO),Xj=dd(WO),zt=h0(ta),Kr=dd(ta),vE={a:function(X6){return pb[X6.getDay()]},
A:function(X6){return Fp[X6.getDay()]},
b:function(X6){return ta[X6.getMonth()]},
B:function(X6){return WO[X6.getMonth()]},
c:null,d:GNp,e:GNp,f:MfF,H:gUw,I:Qdg,j:ztK,L:YPu,m:tfF,M:CG8,p:function(X6){return $W[+(X6.getHours()>=12)]},
Q:wiB,s:uxi,S:BvN,u:vUu,U:IZ8,V:chP,w:DoK,W:xog,x:null,X:null,y:k0x,Y:Ahx,Z:sdP,"%":SPu},wu={a:function(X6){return pb[X6.getUTCDay()]},
A:function(X6){return Fp[X6.getUTCDay()]},
b:function(X6){return ta[X6.getUTCMonth()]},
B:function(X6){return WO[X6.getUTCMonth()]},
c:null,d:piO,e:piO,f:LxF,H:qs$,I:$oN,j:ZPx,L:mde,m:XIT,M:HP8,p:function(X6){return $W[+(X6.getUTCHours()>=12)]},
Q:wiB,s:uxi,S:PGK,u:Jhw,U:aZK,V:fZ8,w:OPK,W:bPg,x:null,X:null,y:lZP,Y:nUq,Z:yhP,"%":SPu},v0={a:function(X6,Ql,hW){return(Ql=sW.exec(Ql.slice(hW)))?(X6.w=we[Ql[0].toLowerCase()],hW+Ql[0].length):-1},
A:function(X6,Ql,hW){return(Ql=vk.exec(Ql.slice(hW)))?(X6.w=oI[Ql[0].toLowerCase()],hW+Ql[0].length):-1},
b:function(X6,Ql,hW){return(Ql=zt.exec(Ql.slice(hW)))?(X6.m=Kr[Ql[0].toLowerCase()],hW+Ql[0].length):-1},
B:function(X6,Ql,hW){return(Ql=mj.exec(Ql.slice(hW)))?(X6.m=Xj[Ql[0].toLowerCase()],hW+Ql[0].length):-1},
c:function(X6,Ql,hW){return u(X6,Nw,Ql,hW)},
d:Kyc,e:Kyc,f:jdK,H:F4z,I:F4z,j:iPg,L:rh6,m:TvK,M:oUx,p:function(X6,Ql,hW){return(Ql=u_.exec(Ql.slice(hW)))?(X6.p=tP[Ql[0].toLowerCase()],hW+Ql[0].length):-1},
Q:G0x,s:Ys6,S:wIu,u:u88,U:SsT,V:pIK,w:moO,W:Kx$,x:function(X6,Ql,hW){return u(X6,Qo,Ql,hW)},
X:function(X6,Ql,hW){return u(X6,In,Ql,hW)},
y:FTN,Y:WT6,Z:EAO,"%":hmg};vE.x=q(Qo,vE);vE.X=q(In,vE);vE.c=q(Nw,vE);wu.x=q(Qo,wu);wu.X=q(In,wu);wu.c=q(Nw,wu);return{format:function(X6){var Ql=q(X6,vE);Ql.toString=function(){return X6};
return Ql},
parse:function(X6){var Ql=f(X6,Rt6);Ql.toString=function(){return X6};
return Ql},
utcFormat:function(X6){var Ql=q(X6,wu);Ql.toString=function(){return X6};
return Ql},
utcParse:function(X6){var Ql=f(X6,ZdI);Ql.toString=function(){return X6};
return Ql}}}
function Dn(H,q,f){var u=H<0?"-":"";H=(u?-H:H)+"";var Nw=H.length;return u+(Nw<f?Array(f-Nw+1).join(q)+H:H)}
function dD8(H){return H.replace(Ns8,"\\$&")}
function h0(H){return new RegExp("^(?:"+H.map(dD8).join("|")+")","i")}
function dd(H){for(var q={},f=-1,u=H.length;++f<u;)q[H[f].toLowerCase()]=f;return q}
function moO(H,q,f){return(q=H5.exec(q.slice(f,f+1)))?(H.w=+q[0],f+q[0].length):-1}
function u88(H,q,f){return(q=H5.exec(q.slice(f,f+1)))?(H.u=+q[0],f+q[0].length):-1}
function SsT(H,q,f){return(q=H5.exec(q.slice(f,f+2)))?(H.U=+q[0],f+q[0].length):-1}
function pIK(H,q,f){return(q=H5.exec(q.slice(f,f+2)))?(H.V=+q[0],f+q[0].length):-1}
function Kx$(H,q,f){return(q=H5.exec(q.slice(f,f+2)))?(H.W=+q[0],f+q[0].length):-1}
function WT6(H,q,f){return(q=H5.exec(q.slice(f,f+4)))?(H.y=+q[0],f+q[0].length):-1}
function FTN(H,q,f){return(q=H5.exec(q.slice(f,f+2)))?(H.y=+q[0]+(+q[0]>68?1900:2E3),f+q[0].length):-1}
function EAO(H,q,f){return(q=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(q.slice(f,f+6)))?(H.Z=q[1]?0:-(q[2]+(q[3]||"00")),f+q[0].length):-1}
function TvK(H,q,f){return(q=H5.exec(q.slice(f,f+2)))?(H.m=q[0]-1,f+q[0].length):-1}
function Kyc(H,q,f){return(q=H5.exec(q.slice(f,f+2)))?(H.d=+q[0],f+q[0].length):-1}
function iPg(H,q,f){return(q=H5.exec(q.slice(f,f+3)))?(H.m=0,H.d=+q[0],f+q[0].length):-1}
function F4z(H,q,f){return(q=H5.exec(q.slice(f,f+2)))?(H.H=+q[0],f+q[0].length):-1}
function oUx(H,q,f){return(q=H5.exec(q.slice(f,f+2)))?(H.M=+q[0],f+q[0].length):-1}
function wIu(H,q,f){return(q=H5.exec(q.slice(f,f+2)))?(H.S=+q[0],f+q[0].length):-1}
function rh6(H,q,f){return(q=H5.exec(q.slice(f,f+3)))?(H.L=+q[0],f+q[0].length):-1}
function jdK(H,q,f){return(q=H5.exec(q.slice(f,f+6)))?(H.L=Math.floor(q[0]/1E3),f+q[0].length):-1}
function hmg(H,q,f){return(H=VjN.exec(q.slice(f,f+1)))?f+H[0].length:-1}
function G0x(H,q,f){return(q=H5.exec(q.slice(f)))?(H.Q=+q[0],f+q[0].length):-1}
function Ys6(H,q,f){return(q=H5.exec(q.slice(f)))?(H.Q=+q[0]*1E3,f+q[0].length):-1}
function GNp(H,q){return Dn(H.getDate(),q,2)}
function gUw(H,q){return Dn(H.getHours(),q,2)}
function Qdg(H,q){return Dn(H.getHours()%12||12,q,2)}
function ztK(H,q){return Dn(1+o5e.count(eG(H),H),q,3)}
function YPu(H,q){return Dn(H.getMilliseconds(),q,3)}
function MfF(H,q){return YPu(H,q)+"000"}
function tfF(H,q){return Dn(H.getMonth()+1,q,2)}
function CG8(H,q){return Dn(H.getMinutes(),q,2)}
function BvN(H,q){return Dn(H.getSeconds(),q,2)}
function vUu(H){H=H.getDay();return H===0?7:H}
function IZ8(H,q){return Dn(UDK.count(eG(H),H),q,2)}
function chP(H,q){var f=H.getDay();H=f>=4||f===0?qPw(H):qPw.ceil(H);return Dn(qPw.count(eG(H),H)+(eG(H).getDay()===4),q,2)}
function DoK(H){return H.getDay()}
function xog(H,q){return Dn(Lyr.count(eG(H),H),q,2)}
function k0x(H,q){return Dn(H.getFullYear()%100,q,2)}
function Ahx(H,q){return Dn(H.getFullYear()%1E4,q,4)}
function sdP(H){H=H.getTimezoneOffset();return(H>0?"-":(H*=-1,"+"))+Dn(H/60|0,"0",2)+Dn(H%60,"0",2)}
function piO(H,q){return Dn(H.getUTCDate(),q,2)}
function qs$(H,q){return Dn(H.getUTCHours(),q,2)}
function $oN(H,q){return Dn(H.getUTCHours()%12||12,q,2)}
function ZPx(H,q){return Dn(1+TNi.count(Mh(H),H),q,3)}
function mde(H,q){return Dn(H.getUTCMilliseconds(),q,3)}
function LxF(H,q){return mde(H,q)+"000"}
function XIT(H,q){return Dn(H.getUTCMonth()+1,q,2)}
function HP8(H,q){return Dn(H.getUTCMinutes(),q,2)}
function PGK(H,q){return Dn(H.getUTCSeconds(),q,2)}
function Jhw(H){H=H.getUTCDay();return H===0?7:H}
function aZK(H,q){return Dn(Rmx.count(Mh(H),H),q,2)}
function fZ8(H,q){var f=H.getUTCDay();H=f>=4||f===0?$dW(H):$dW.ceil(H);return Dn($dW.count(Mh(H),H)+(Mh(H).getUTCDay()===4),q,2)}
function OPK(H){return H.getUTCDay()}
function bPg(H,q){return Dn(sqk.count(Mh(H),H),q,2)}
function lZP(H,q){return Dn(H.getUTCFullYear()%100,q,2)}
function nUq(H,q){return Dn(H.getUTCFullYear()%1E4,q,4)}
function yhP(){return"+0000"}
function SPu(){return"%"}
function wiB(H){return+H}
function uxi(H){return Math.floor(+H/1E3)}
function RS(H){for(var q=H.length/6|0,f=Array(q),u=0;u<q;)f[u]="#"+H.slice(u*6,++u*6);return f}
function w$(H){return emg(H[H.length-1])}
function XXe(H){var q=H.length;return function(f){return H[Math.max(0,Math.min(q-1,Math.floor(f*q)))]}}
function W4H(H){this._context=H}
function EJu(H){this._curve=H}
function hLO(H,q,f){var u=H._x1-H._x0;q-=H._x1;var Nw=(H._y1-H._y0)/(u||q<0&&-0);H=(f-H._y1)/(q||u<0&&-0);return((Nw<0?-1:1)+(H<0?-1:1))*Math.min(Math.abs(Nw),Math.abs(H),.5*Math.abs((Nw*q+H*u)/(u+q)))||0}
function dCi(H,q){var f=H._x1-H._x0;return f?(3*(H._y1-H._y0)/f-q)/2:q}
function ZHR(H,q,f){var u=H._x0,Nw=H._x1,Qo=H._y1,In=(Nw-u)/3;H._context.bezierCurveTo(u+In,H._y0+In*q,Nw-In,Qo-In*f,Nw,Qo)}
function Xir(H){this._context=H}
function NZa(H){this._context=H}
function NV(H,q,f){this.k=H;this.x=q;this.y=f}
(function(H){H.length===1&&(H=W(H));return{left:function(q,f,u,Nw){u==null&&(u=0);Nw==null&&(Nw=q.length);for(;u<Nw;){var Qo=u+Nw>>>1;H(q[Qo],f)<0?u=Qo+1:Nw=Qo}return u},
right:function(q,f,u,Nw){u==null&&(u=0);Nw==null&&(Nw=q.length);for(;u<Nw;){var Qo=u+Nw>>>1;H(q[Qo],f)>0?Nw=Qo:u=Qo+1}return u}}})(F);
var Ec6={value:function(){}};
h.prototype=E.prototype={constructor:h,on:function(H,q){var f=this._,u=d(H+"",f),Nw,Qo=-1,In=u.length;if(arguments.length<2)for(;++Qo<In;){var $W;if($W=Nw=(H=u[Qo]).type){a:{$W=f[Nw];for(var Fp=0,pb=$W.length;Fp<pb;++Fp)if((Nw=$W[Fp]).name===H.name){Nw=Nw.value;break a}Nw=void 0}$W=Nw}if($W)return Nw}else{if(q!=null&&typeof q!=="function")throw Error("ye`"+q);for(;++Qo<In;)if(Nw=(H=u[Qo]).type)f[Nw]=V(f[Nw],H.name,q);else if(q==null)for(Nw in f)f[Nw]=V(f[Nw],H.name,null);return this}},
copy:function(){var H={},q=this._,f;for(f in q)H[f]=q[f].slice();return new h(H)},
call:function(H,q){if((Nw=arguments.length-2)>0)for(var f=Array(Nw),u=0,Nw,Qo;u<Nw;++u)f[u]=arguments[u+2];if(!this._.hasOwnProperty(H))throw Error("se`"+H);Qo=this._[H];u=0;for(Nw=Qo.length;u<Nw;++u)Qo[u].value.apply(q,f)},
apply:function(H,q,f){if(!this._.hasOwnProperty(H))throw Error("se`"+H);H=this._[H];for(var u=0,Nw=H.length;u<Nw;++u)H[u].value.apply(q,f)}};
var Ya={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},VtU=function(H){return function(){return this.matches(H)}};
if(typeof document!=="undefined"){var Vs=document.documentElement;if(!Vs.matches){var MjT=Vs.webkitMatchesSelector||Vs.msMatchesSelector||Vs.mozMatchesSelector||Vs.oMatchesSelector;VtU=function(H){return function(){return MjT.call(this,H)}}}}var UCT=VtU;
x.prototype={constructor:x,appendChild:function(H){return this._parent.insertBefore(H,this._next)},
insertBefore:function(H,q){return this._parent.insertBefore(H,q)},
querySelector:function(H){return this._parent.querySelector(H)},
querySelectorAll:function(H){return this._parent.querySelectorAll(H)}};
var MMc={};typeof document!=="undefined"&&("onmouseenter"in document.documentElement||(MMc={mouseenter:"mouseover",mouseleave:"mouseout"}));var h4x=[null];Aa.prototype=MF.prototype={constructor:Aa,select:function(H){typeof H!=="function"&&(H=B(H));for(var q=this._groups,f=q.length,u=Array(f),Nw=0;Nw<f;++Nw)for(var Qo=q[Nw],In=Qo.length,$W=u[Nw]=Array(In),Fp,pb,WO=0;WO<In;++WO)(Fp=Qo[WO])&&(pb=H.call(Fp,Fp.__data__,WO,Qo))&&("__data__"in Fp&&(pb.__data__=Fp.__data__),$W[WO]=pb);return new Aa(u,this._parents)},
filter:function(H){typeof H!=="function"&&(H=UCT(H));for(var q=this._groups,f=q.length,u=Array(f),Nw=0;Nw<f;++Nw)for(var Qo=q[Nw],In=Qo.length,$W=u[Nw]=[],Fp,pb=0;pb<In;++pb)(Fp=Qo[pb])&&H.call(Fp,Fp.__data__,pb,Qo)&&$W.push(Fp);return new Aa(u,this._parents)},
data:function(H,q){if(!H)return tP=Array(this.size()),pb=-1,this.each(function(mj){tP[++pb]=mj}),tP;
var f=q?P:X,u=this._parents,Nw=this._groups;typeof H!=="function"&&(H=A(H));for(var Qo=Nw.length,In=Array(Qo),$W=Array(Qo),Fp=Array(Qo),pb=0;pb<Qo;++pb){var WO=u[pb],ta=Nw[pb],u_=ta.length,tP=H.call(WO,WO&&WO.__data__,pb,u),vk=tP.length,oI=$W[pb]=Array(vk),sW=In[pb]=Array(vk);u_=Fp[pb]=Array(u_);f(WO,ta,oI,sW,u_,tP,q);ta=WO=0;for(var we;WO<vk;++WO)if(u_=oI[WO]){for(WO>=ta&&(ta=WO+1);!(we=sW[ta])&&++ta<vk;);u_._next=we||null}}In=new Aa(In,u);In._enter=$W;In._exit=Fp;return In},
exit:function(){return new Aa(this._exit||this._groups.map(I),this._parents)},
merge:function(H){var q=this._groups;H=H._groups;for(var f=q.length,u=Math.min(f,H.length),Nw=Array(f),Qo=0;Qo<u;++Qo)for(var In=q[Qo],$W=H[Qo],Fp=In.length,pb=Nw[Qo]=Array(Fp),WO,ta=0;ta<Fp;++ta)if(WO=In[ta]||$W[ta])pb[ta]=WO;for(;Qo<f;++Qo)Nw[Qo]=q[Qo];return new Aa(Nw,this._parents)},
order:function(){for(var H=this._groups,q=-1,f=H.length;++q<f;)for(var u=H[q],Nw=u.length-1,Qo=u[Nw],In;--Nw>=0;)if(In=u[Nw])Qo&&Qo!==In.nextSibling&&Qo.parentNode.insertBefore(In,Qo),Qo=In;return this},
sort:function(H){function q(ta,u_){return ta&&u_?H(ta.__data__,u_.__data__):!ta-!u_}
H||(H=b);for(var f=this._groups,u=f.length,Nw=Array(u),Qo=0;Qo<u;++Qo){for(var In=f[Qo],$W=In.length,Fp=Nw[Qo]=Array($W),pb,WO=0;WO<$W;++WO)if(pb=In[WO])Fp[WO]=pb;Fp.sort(q)}return(new Aa(Nw,this._parents)).order()},
call:function(){var H=arguments[0];arguments[0]=this;H.apply(null,arguments);return this},
nodes:function(){var H=Array(this.size()),q=-1;this.each(function(){H[++q]=this});
return H},
node:function(){for(var H=this._groups,q=0,f=H.length;q<f;++q)for(var u=H[q],Nw=0,Qo=u.length;Nw<Qo;++Nw){var In=u[Nw];if(In)return In}return null},
size:function(){var H=0;this.each(function(){++H});
return H},
empty:function(){return!this.node()},
each:function(H){for(var q=this._groups,f=0,u=q.length;f<u;++f)for(var Nw=q[f],Qo=0,In=Nw.length,$W;Qo<In;++Qo)($W=Nw[Qo])&&H.call($W,$W.__data__,Qo,Nw);return this},
attr:function(H,q){var f=R(H);if(arguments.length<2){var u=this.node();return f.local?u.getAttributeNS(f.space,f.local):u.getAttribute(f)}return this.each((q==null?f.local?w:l:typeof q==="function"?f.local?UY:p:f.local?hr:G)(f,q))},
style:function(H,q,f){return arguments.length>1?this.each((q==null?xW:typeof q==="function"?Lb:qw)(H,q,f==null?"":f)):jk(this.node(),H)},
property:function(H,q){return arguments.length>1?this.each((q==null?Jr:typeof q==="function"?bo:nb)(H,q)):this.node()[H]},
text:function(H){return arguments.length?this.each(H==null?uo:(typeof H==="function"?BO:b_)(H)):this.node().textContent},
html:function(H){return arguments.length?this.each(H==null?dc:(typeof H==="function"?Z_:VM)(H)):this.node().innerHTML},
append:function(H){var q=typeof H==="function"?H:t(H);return this.select(function(){return this.appendChild(q.apply(this,arguments))})},
insert:function(H,q){var f=typeof H==="function"?H:t(H),u=q==null?MU:typeof q==="function"?q:B(q);return this.select(function(){return this.insertBefore(f.apply(this,arguments),u.apply(this,arguments)||null)})},
remove:function(){return this.each(Ef)},
clone:function(H){return this.select(H?Rn:kR)},
datum:function(H){return arguments.length?this.property("__data__",H):this.node().__data__},
on:function(H,q,f){var u=j$(H+""),Nw=u.length,Qo;if(arguments.length<2){var In=this.node().__on;if(In)for(var $W=0,Fp=In.length,pb;$W<Fp;++$W){var WO=0;for(pb=In[$W];WO<Nw;++WO)if((Qo=u[WO]).type===pb.type&&Qo.name===pb.name)return pb.value}}else{In=q?YB:HO;f==null&&(f=!1);for(WO=0;WO<Nw;++WO)this.each(In(u[WO],q,f));return this}},
dispatch:function(H,q){return this.each((typeof q==="function"?wI:vO)(H,q))}};
var dSN=0;LT.prototype=function(){return new LT}.prototype={constructor:LT,
get:function(H){for(var q=this._;!(q in H);)if(!(H=H.parentNode))return;return H[q]},
set:function(H,q){return H[this._]=q},
remove:function(H){return this._ in H&&delete H[this._]},
toString:function(){return this._}};
var gz=1/.7,Na8=/^#([0-9a-f]{3})$/,VP$=/^#([0-9a-f]{6})$/,US6=RegExp("^rgb\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*\\)$"),R4F=RegExp("^rgb\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),e4q=RegExp("^rgba\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*\\)$"),MPq=RegExp("^rgba\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*\\)$"),
gcN=RegExp("^hsl\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),QY6=RegExp("^hsla\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*\\)$"),g5p={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,
blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,
darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,
lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,
mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,
purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};
Du(QA,iK,{displayable:function(){return this.rgb().displayable()},
hex:function(){return this.rgb().hex()},
toString:function(){return this.rgb()+""}});
Du(YK,AP,MR(QA,{brighter:function(H){H=H==null?gz:Math.pow(gz,H);return new YK(this.r*H,this.g*H,this.b*H,this.opacity)},
darker:function(H){H=H==null?.7:Math.pow(.7,H);return new YK(this.r*H,this.g*H,this.b*H,this.opacity)},
rgb:function(){return this},
displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},
hex:function(){return"#"+S$(this.r)+S$(this.g)+S$(this.b)},
toString:function(){var H=this.opacity;H=isNaN(H)?1:Math.max(0,Math.min(1,H));return(H===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(H===1?")":", "+H+")")}}));
Du(Cd,Ac,MR(QA,{brighter:function(H){H=H==null?gz:Math.pow(gz,H);return new Cd(this.h,this.s,this.l*H,this.opacity)},
darker:function(H){H=H==null?.7:Math.pow(.7,H);return new Cd(this.h,this.s,this.l*H,this.opacity)},
rgb:function(){var H=this.h%360+(this.h<0)*360,q=this.l,f=q+(q<.5?q:1-q)*(isNaN(H)||isNaN(this.s)?0:this.s);q=2*q-f;return new YK(S9(H>=240?H-240:H+120,q,f),S9(H,q,f),S9(H<120?H+240:H-120,q,f),this.opacity)},
displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1}}));
var Qqu=Math.PI/180,CBX=180/Math.PI,tMp=4/29,UU=6/29,zRB=3*UU*UU,z4q=UU*UU*UU;Du(DS,function(H,q,f,u){return arguments.length===1?tF(H):new DS(H,q,f,u==null?1:u)},MR(QA,{brighter:function(H){return new DS(this.l+18*(H==null?1:H),this.a,this.b,this.opacity)},
darker:function(H){return new DS(this.l-18*(H==null?1:H),this.a,this.b,this.opacity)},
rgb:function(){var H=(this.l+16)/116,q=isNaN(this.a)?H:H+this.a/500,f=isNaN(this.b)?H:H-this.b/200;q=.96422*rI(q);H=1*rI(H);f=.82521*rI(f);return new YK(Ii(3.1338561*q-1.6168667*H-.4906146*f),Ii(-.9787684*q+1.9161415*H+.033454*f),Ii(.0719453*q-.2289914*H+1.4052427*f),this.opacity)}}));
Du(xB,Qx,MR(QA,{brighter:function(H){return new xB(this.h,this.c,this.l+18*(H==null?1:H),this.opacity)},
darker:function(H){return new xB(this.h,this.c,this.l-18*(H==null?1:H),this.opacity)},
rgb:function(){return tF(this).rgb()}}));
var BNz=1.78277*-.29227-.1347134789;Du(z8,cO,MR(QA,{brighter:function(H){H=H==null?gz:Math.pow(gz,H);return new z8(this.h,this.s,this.l*H,this.opacity)},
darker:function(H){H=H==null?.7:Math.pow(.7,H);return new z8(this.h,this.s,this.l*H,this.opacity)},
rgb:function(){var H=isNaN(this.h)?0:(this.h+120)*Qqu,q=+this.l,f=isNaN(this.s)?0:this.s*q*(1-q),u=Math.cos(H);H=Math.sin(H);return new YK(255*(q+f*(-.14861*u+1.78277*H)),255*(q+f*(-.29227*u+-.90649*H)),255*(q+1.97294*u*f),this.opacity)}}));
var xdp=function f(q){function u(Qo,In){var $W=Nw((Qo=AP(Qo)).r,(In=AP(In)).r),Fp=Nw(Qo.g,In.g),pb=Nw(Qo.b,In.b),WO=b5(Qo.opacity,In.opacity);return function(ta){Qo.r=$W(ta);Qo.g=Fp(ta);Qo.b=pb(ta);Qo.opacity=WO(ta);return Qo+""}}
var Nw=Yj(q);u.gamma=f;return u}(1),emg=s_(function(q){var f=q.length-1;
return function(u){var Nw=u<=0?u=0:u>=1?(u=1,f-1):Math.floor(u*f),Qo=q[Nw],In=q[Nw+1];return qR((u-Nw/f)*f,Nw>0?q[Nw-1]:2*Qo-In,Qo,In,Nw<f-1?q[Nw+2]:2*In-Qo)}});
s_(function(q){var f=q.length;return function(u){var Nw=Math.floor(((u%=1)<0?++u:u)*f);return qR((u-Nw/f)*f,q[(Nw+f-1)%f],q[Nw%f],q[(Nw+1)%f],q[(Nw+2)%f])}});
var MMI=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,g5e=new RegExp(MMI.source,"g"),v5U=180/Math.PI,HHR={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},UI,PBY,RLT,Hdo,gAF=Zd(function(q){if(q==="none")return HHR;UI||(UI=document.createElement("DIV"),PBY=document.documentElement,RLT=document.defaultView);UI.style.transform=q;q=RLT.getComputedStyle(PBY.appendChild(UI),null).getPropertyValue("transform");PBY.removeChild(UI);q=q.slice(7,-1).split(",");return f2(+q[0],+q[1],+q[2],+q[3],
+q[4],+q[5])},"px, ","px)","deg)"),Qsg=Zd(function(q){if(q==null)return HHR;
Hdo||(Hdo=document.createElementNS("http://www.w3.org/2000/svg","g"));Hdo.setAttribute("transform",q);if(!(q=Hdo.transform.baseVal.consolidate()))return HHR;q=q.matrix;return f2(q.a,q.b,q.c,q.d,q.e,q.f)},", ",")",")");
Vl(lL);Vl(b5);je(lL);je(b5);sV(lL);var JjW=sV(b5),RC=0,pF=0,KF=0,x6Y,mD,D6o=0,yp=0,czo=0,SD=typeof performance==="object"&&performance.now?performance:Date,IDp=typeof window==="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(q){setTimeout(q,17)};
k6.prototype=Tm.prototype={constructor:k6,restart:function(q,f,u){if(typeof q!=="function")throw new TypeError("ze");u=(u==null?o3():+u)+(f==null?0:+f);this._next||mD===this||(mD?mD._next=this:x6Y=this,mD=this);this._call=q;this._time=u;Gm()},
stop:function(){this._call&&(this._call=null,this._time=Infinity,Gm())}};
var CkK=E("start","end","interrupt"),BaF=[],zmw=MF.prototype.constructor,eLp=0,Qh=MF.prototype;tq.prototype=function(q){return MF().transition(q)}.prototype={constructor:tq,
select:function(q){var f=this._name,u=this._id;typeof q!=="function"&&(q=B(q));for(var Nw=this._groups,Qo=Nw.length,In=Array(Qo),$W=0;$W<Qo;++$W)for(var Fp=Nw[$W],pb=Fp.length,WO=In[$W]=Array(pb),ta,u_,tP=0;tP<pb;++tP)(ta=Fp[tP])&&(u_=q.call(ta,ta.__data__,tP,Fp))&&("__data__"in ta&&(u_.__data__=ta.__data__),WO[tP]=u_,Qqr(WO[tP],f,u,tP,WO,QD(ta,u)));return new tq(In,this._parents,f,u)},
filter:function(q){typeof q!=="function"&&(q=UCT(q));for(var f=this._groups,u=f.length,Nw=Array(u),Qo=0;Qo<u;++Qo)for(var In=f[Qo],$W=In.length,Fp=Nw[Qo]=[],pb,WO=0;WO<$W;++WO)(pb=In[WO])&&q.call(pb,pb.__data__,WO,In)&&Fp.push(pb);return new tq(Nw,this._parents,this._name,this._id)},
merge:function(q){if(q._id!==this._id)throw Error();var f=this._groups;q=q._groups;for(var u=f.length,Nw=Math.min(u,q.length),Qo=Array(u),In=0;In<Nw;++In)for(var $W=f[In],Fp=q[In],pb=$W.length,WO=Qo[In]=Array(pb),ta,u_=0;u_<pb;++u_)if(ta=$W[u_]||Fp[u_])WO[u_]=ta;for(;In<u;++In)Qo[In]=f[In];return new tq(Qo,this._parents,this._name,this._id)},
selection:function(){return new zmw(this._groups,this._parents)},
transition:function(){for(var q=this._name,f=this._id,u=++eLp,Nw=this._groups,Qo=Nw.length,In=0;In<Qo;++In)for(var $W=Nw[In],Fp=$W.length,pb,WO=0;WO<Fp;++WO)if(pb=$W[WO]){var ta=QD(pb,f);Qqr(pb,q,u,WO,$W,{time:ta.time+ta.delay+ta.duration,delay:0,duration:ta.duration,ease:ta.ease})}return new tq(Nw,this._parents,q,u)},
call:Qh.call,nodes:Qh.nodes,node:Qh.node,size:Qh.size,empty:Qh.empty,each:Qh.each,on:function(q,f){var u=this._id;return arguments.length<2?QD(this.node(),u).on.on(q):this.each(a9w(u,q,f))},
attr:function(q,f){var u=R(q),Nw=u==="transform"?Qsg:DdX;return this.attrTween(q,typeof f==="function"?(u.local?sY$:Ak6)(u,Nw,tMe(this,"attr."+q,f)):f==null?(u.local?DSF:ckx)(u):(u.local?kHw:xS$)(u,Nw,f+""))},
attrTween:function(q,f){var u="attr."+q;if(arguments.length<2)return(u=this.tween(u))&&u._value;if(f==null)return this.tween(u,null);if(typeof f!=="function")throw Error();var Nw=R(q);return this.tween(u,(Nw.local?LZ8:qnP)(Nw,f))},
style:function(q,f,u){var Nw=q==="transform"?gAF:DdX;return f==null?this.styleTween(q,Ovx(q,Nw)).on("end.style."+q,bvx(q)):this.styleTween(q,typeof f==="function"?ncx(q,Nw,tMe(this,"style."+q,f)):l9F(q,Nw,f+""),u)},
styleTween:function(q,f,u){var Nw="style."+q;if(arguments.length<2)return(Nw=this.tween(Nw))&&Nw._value;if(f==null)return this.tween(Nw,null);if(typeof f!=="function")throw Error();return this.tween(Nw,ykw(q,f,u==null?"":u))},
text:function(q){return this.tween("text",typeof q==="function"?ivu(tMe(this,"text",q)):jYu(q==null?"":q+""))},
remove:function(){return this.on("end.remove",f9P(this._id))},
tween:function(q,f){var u=this._id;if(arguments.length<2){u=QD(this.node(),u).tween;for(var Nw=0,Qo=u.length,In;Nw<Qo;++Nw)if((In=u[Nw]).name===q)return In.value;return null}return this.each((f==null?vcg:I9K)(u,q,f))},
delay:function(q){var f=this._id;return arguments.length?this.each((typeof q==="function"?$SO:Zv6)(f,q)):QD(this.node(),f).delay},
duration:function(q){var f=this._id;return arguments.length?this.each((typeof q==="function"?XKK:Hvu)(f,q)):QD(this.node(),f).duration},
ease:function(q){var f=this._id;return arguments.length?this.each(PkO(f,q)):QD(this.node(),f).ease}};
var aDk={time:null,delay:0,duration:250,ease:function(q){return((q*=2)<=1?q*q*q:(q-=2)*q*q+2)/2}};
MF.prototype.transition=function(q){var f;if(q instanceof tq){var u=q._id;q=q._name}else u=++eLp,(f=aDk).time=o3(),q=q==null?null:q+"";for(var Nw=this._groups,Qo=Nw.length,In=0;In<Qo;++In)for(var $W=Nw[In],Fp=$W.length,pb,WO=0;WO<Fp;++WO)if(pb=$W[WO]){var ta=pb,u_=q,tP=u,vk=WO,oI=$W,sW;if(!(sW=f))a:{sW=void 0;for(var we=u;!(sW=pb.__transition)||!(sW=sW[we]);)if(!(pb=pb.parentNode)){sW=(aDk.time=o3(),aDk);break a}}Qqr(ta,u_,tP,vk,oI,sW)}return new tq(Nw,this._parents,q,u)};
["e","w"].map(CBY);["n","s"].map(CBY);"n e s w nw ne se sw".split(" ").map(CBY);BNR.prototype=function(){return new BNR}.prototype={constructor:BNR,
moveTo:function(q,f){this._+="M"+(this._x0=this._x1=+q)+","+(this._y0=this._y1=+f)},
closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},
lineTo:function(q,f){this._+="L"+(this._x1=+q)+","+(this._y1=+f)},
bezierCurveTo:function(q,f,u,Nw,Qo,In){this._+="C"+ +q+","+ +f+","+ +u+","+ +Nw+","+(this._x1=+Qo)+","+(this._y1=+In)},
rect:function(q,f,u,Nw){this._+="M"+(this._x0=this._x1=+q)+","+(this._y0=this._y1=+f)+"h"+ +u+"v"+ +Nw+"h"+-u+"Z"},
toString:function(){return this._}};
kiY.prototype=kNM.prototype={constructor:kiY,has:function(q){return" "+q in this},
get:function(q){return this[" "+q]},
set:function(q,f){this[" "+q]=f;return this},
remove:function(q){q=" "+q;return q in this&&delete this[q]},
clear:function(){for(var q in this)q[0]===" "&&delete this[q]},
keys:function(){var q=[],f;for(f in this)f[0]===" "&&q.push(f.slice(1));return q},
values:function(){var q=[],f;for(f in this)f[0]===" "&&q.push(this[f]);return q},
entries:function(){var q=[],f;for(f in this)f[0]===" "&&q.push({key:f.slice(1),value:this[f]});return q},
size:function(){var q=0,f;for(f in this)f[0]===" "&&++q;return q},
empty:function(){for(var q in this)if(q[0]===" ")return!1;return!0},
each:function(q){for(var f in this)f[0]===" "&&q(this[f],f.slice(1),this)}};
var Tp=kNM.prototype;AzY.prototype=function(q,f){var u=new AzY;if(q instanceof AzY)q.each(function(In){u.add(In)});
else if(q){var Nw=-1,Qo=q.length;if(f==null)for(;++Nw<Qo;)u.add(q[Nw]);else for(;++Nw<Qo;)u.add(f(q[Nw],Nw,q))}return u}.prototype={constructor:AzY,
has:Tp.has,add:function(q){this[" "+q]=q;return this},
remove:Tp.remove,clear:Tp.clear,values:Tp.keys,size:Tp.size,empty:Tp.empty,each:Tp.each};var Lya={},v5w={},tj$=sqH(",").parse,Cx6=sqH("\t").parse;qPU(tj$);qPU(Cx6);var dQ=function(q,f,u){f=new IDe(f==null?GHN:f,u==null?Yn6:u,NaN,NaN,NaN,NaN);return q==null?f:f.addAll(q)}.prototype=IDe.prototype;
dQ.copy=function(){var q=new IDe(this._x,this._y,this._x0,this._y0,this._x1,this._y1),f=this._root,u,Nw;if(!f)return q;if(!f.length)return q._root=ZHz(f),q;for(u=[{source:f,target:q._root=Array(4)}];f=u.pop();)for(var Qo=0;Qo<4;++Qo)if(Nw=f.source[Qo])Nw.length?u.push({source:Nw,target:f.target[Qo]=Array(4)}):f.target[Qo]=ZHz(Nw);return q};
dQ.add=function(q){var f=+this._x.call(null,q),u=+this._y.call(null,q);return $dB(this.cover(f,u),f,u,q)};
dQ.addAll=function(q){var f,u,Nw=q.length,Qo,In,$W=Array(Nw),Fp=Array(Nw),pb=Infinity,WO=Infinity,ta=-Infinity,u_=-Infinity;for(u=0;u<Nw;++u)isNaN(Qo=+this._x.call(null,f=q[u]))||isNaN(In=+this._y.call(null,f))||($W[u]=Qo,Fp[u]=In,Qo<pb&&(pb=Qo),Qo>ta&&(ta=Qo),In<WO&&(WO=In),In>u_&&(u_=In));ta<pb&&(pb=this._x0,ta=this._x1);u_<WO&&(WO=this._y0,u_=this._y1);this.cover(pb,WO).cover(ta,u_);for(u=0;u<Nw;++u)$dB(this,$W[u],Fp[u],q[u]);return this};
dQ.cover=function(q,f){if(isNaN(q=+q)||isNaN(f=+f))return this;var u=this._x0,Nw=this._y0,Qo=this._x1,In=this._y1;if(isNaN(u))Qo=(u=Math.floor(q))+1,In=(Nw=Math.floor(f))+1;else if(u>q||q>Qo||Nw>f||f>In){var $W=Qo-u,Fp=this._root,pb;switch(pb=(f<(Nw+In)/2)<<1|q<(u+Qo)/2){case 0:do{var WO=Array(4);WO[pb]=Fp;Fp=WO}while($W*=2,Qo=u+$W,In=Nw+$W,q>Qo||f>In);break;case 1:do WO=Array(4),WO[pb]=Fp,Fp=WO;while($W*=2,u=Qo-$W,In=Nw+$W,u>q||f>In);break;case 2:do WO=Array(4),WO[pb]=Fp,Fp=WO;while($W*=2,Qo=u+$W,
Nw=In-$W,q>Qo||Nw>f);break;case 3:do WO=Array(4),WO[pb]=Fp,Fp=WO;while($W*=2,u=Qo-$W,Nw=In-$W,u>q||Nw>f)}this._root&&this._root.length&&(this._root=Fp)}else return this;this._x0=u;this._y0=Nw;this._x1=Qo;this._y1=In;return this};
dQ.data=function(){var q=[];this.visit(function(f){if(!f.length){do q.push(f.data);while(f=f.next)}});
return q};
dQ.extent=function(q){return arguments.length?this.cover(+q[0][0],+q[0][1]).cover(+q[1][0],+q[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]};
dQ.find=function(q,f,u){var Nw=this._x0,Qo=this._y0,In,$W,Fp,pb,WO=this._x1,ta=this._y1,u_=[],tP=this._root,vk;tP&&u_.push(new hT(tP,Nw,Qo,WO,ta));u==null?u=Infinity:(Nw=q-u,Qo=f-u,WO=q+u,ta=f+u,u*=u);for(;vk=u_.pop();)if(!(!(tP=vk.node)||(In=vk.x0)>WO||($W=vk.y0)>ta||(Fp=vk.x1)<Nw||(pb=vk.y1)<Qo))if(tP.length){vk=(In+Fp)/2;var oI=($W+pb)/2;u_.push(new hT(tP[3],vk,oI,Fp,pb),new hT(tP[2],In,oI,vk,pb),new hT(tP[1],vk,$W,Fp,oI),new hT(tP[0],In,$W,vk,oI));if(tP=(f>=oI)<<1|q>=vk)vk=u_[u_.length-1],u_[u_.length-
1]=u_[u_.length-1-tP],u_[u_.length-1-tP]=vk}else if(vk=q-+this._x.call(null,tP.data),oI=f-+this._y.call(null,tP.data),vk=vk*vk+oI*oI,vk<u){var sW=Math.sqrt(u=vk);Nw=q-sW;Qo=f-sW;WO=q+sW;ta=f+sW;sW=tP.data}return sW};
dQ.remove=function(q){if(isNaN(pb=+this._x.call(null,q))||isNaN(WO=+this._y.call(null,q)))return this;var f,u=this._root,Nw,Qo=this._x0,In=this._y0,$W=this._x1,Fp=this._y1,pb,WO,ta,u_,tP,vk,oI;if(!u)return this;if(u.length)for(;;){(tP=pb>=(ta=(Qo+$W)/2))?Qo=ta:$W=ta;(vk=WO>=(u_=(In+Fp)/2))?In=u_:Fp=u_;if(!(f=u,u=u[oI=vk<<1|tP]))return this;if(!u.length)break;if(f[oI+1&3]||f[oI+2&3]||f[oI+3&3]){var sW=f;var we=oI}}for(;u.data!==q;)if(!(Nw=u,u=u.next))return this;(q=u.next)&&delete u.next;if(Nw)return q?
Nw.next=q:delete Nw.next,this;if(!f)return this._root=q,this;q?f[oI]=q:delete f[oI];(u=f[0]||f[1]||f[2]||f[3])&&u===(f[3]||f[2]||f[1]||f[0])&&!u.length&&(sW?sW[we]=u:this._root=u);return this};
dQ.removeAll=function(q){for(var f=0,u=q.length;f<u;++f)this.remove(q[f]);return this};
dQ.root=function(){return this._root};
dQ.size=function(){var q=0;this.visit(function(f){if(!f.length){do++q;while(f=f.next)}});
return q};
dQ.visit=function(q){var f=[],u,Nw=this._root,Qo,In,$W,Fp,pb;for(Nw&&f.push(new hT(Nw,this._x0,this._y0,this._x1,this._y1));u=f.pop();)if(!q(Nw=u.node,In=u.x0,$W=u.y0,Fp=u.x1,pb=u.y1)&&Nw.length){u=(In+Fp)/2;var WO=($W+pb)/2;(Qo=Nw[3])&&f.push(new hT(Qo,u,WO,Fp,pb));(Qo=Nw[2])&&f.push(new hT(Qo,In,WO,u,pb));(Qo=Nw[1])&&f.push(new hT(Qo,u,$W,Fp,WO));(Qo=Nw[0])&&f.push(new hT(Qo,In,$W,u,WO))}};
dQ.visitAfter=function(q){var f=[],u=[],Nw;for(this._root&&f.push(new hT(this._root,this._x0,this._y0,this._x1,this._y1));Nw=f.pop();){var Qo=Nw.node;if(Qo.length){var In,$W=Nw.x0,Fp=Nw.y0,pb=Nw.x1,WO=Nw.y1,ta=($W+pb)/2,u_=(Fp+WO)/2;(In=Qo[0])&&f.push(new hT(In,$W,Fp,ta,u_));(In=Qo[1])&&f.push(new hT(In,ta,Fp,pb,u_));(In=Qo[2])&&f.push(new hT(In,$W,u_,ta,WO));(In=Qo[3])&&f.push(new hT(In,ta,u_,pb,WO))}u.push(Nw)}for(;Nw=u.pop();)q(Nw.node,Nw.x0,Nw.y0,Nw.x1,Nw.y1);return this};
dQ.x=function(q){return arguments.length?(this._x=q,this):this._x};
dQ.y=function(q){return arguments.length?(this._y=q,this):this._y};
var pKw=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;cjo.prototype=DdY.prototype;DdY.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width==null?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision==null?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};
var JjB,aDH={"%":function(q,f){return(q*100).toFixed(f)},
b:function(q){return Math.round(q).toString(2)},
c:function(q){return q+""},
d:function(q){return Math.round(q).toString(10)},
e:function(q,f){return q.toExponential(f)},
f:function(q,f){return q.toFixed(f)},
g:function(q,f){return q.toPrecision(f)},
o:function(q){return Math.round(q).toString(8)},
p:function(q,f){return Xia(q*100,f)},
r:Xia,s:function(q,f){var u=syI(q,f);if(!u)return q+"";var Nw=u[0];u=u[1];u=u-(JjB=Math.max(-8,Math.min(8,Math.floor(u/3)))*3)+1;var Qo=Nw.length;return u===Qo?Nw:u>Qo?Nw+Array(u-Qo+1).join("0"):u>0?Nw.slice(0,u)+"."+Nw.slice(u):"0."+Array(1-u).join("0")+syI(q,Math.max(0,f+u-1))[0]},
X:function(q){return Math.round(q).toString(16).toUpperCase()},
x:function(q){return Math.round(q).toString(16)}},PBX="y z a f p n \u00b5 m  k M G T P E Z Y".split(" "),BsN;
(function(q){return BsN=mSF(q)})({decimal:".",
thousands:",",grouping:[3],currency:["$",""]});TA.prototype={constructor:TA,reset:function(){this.s=this.t=0},
add:function(q){fDe(Pun,q,this.t);fDe(this,Pun.s,this.s);this.s?this.t+=Pun.t:this.s=Pun.t},
valueOf:function(){return this.s}};
var Pun=new TA,Hc=Math.PI,w9=Hc/2,Mt_=Hc/4,vAx=Hc*2,fDY=Hc/180,C7=Math.abs,OHY=Math.atan,jqO=Math.atan2,uA=Math.cos,bC=Math.sin,qio=Math.sqrt;new TA;new TA;new TA;var bHr=new TA;(function(q,f,u,Nw){return function(Qo){function In(Kr,vE){q(Kr,vE)&&Qo.point(Kr,vE)}
function $W(Kr,vE){tP.point(Kr,vE)}
function Fp(){zt.point=$W;tP.lineStart()}
function pb(){zt.point=In;tP.lineEnd()}
function WO(Kr,vE){Xj.push([Kr,vE]);oI.point(Kr,vE)}
function ta(){oI.lineStart();Xj=[]}
function u_(){WO(Xj[0][0],Xj[0][1]);oI.lineEnd();var Kr=oI.clean(),vE=vk.result(),wu=vE.length,v0;Xj.pop();we.push(Xj);Xj=null;if(wu)if(Kr&1){if(wu=vE[0],(vE=wu.length-1)>0){sW||(Qo.polygonStart(),sW=!0);Qo.lineStart();for(Kr=0;Kr<vE;++Kr)Qo.point((v0=wu[Kr])[0],v0[1]);Qo.lineEnd()}}else wu>1&&Kr&2&&vE.push(vE.pop().concat(vE.shift())),mj.push(vE.filter(EUg))}
var tP=f(Qo),vk=Fxu(),oI=f(vk),sW=!1,we,mj,Xj,zt={point:In,lineStart:Fp,lineEnd:pb,polygonStart:function(){zt.point=WO;zt.lineStart=ta;zt.lineEnd=u_;mj=[];we=[]},
polygonEnd:function(){zt.point=In;zt.lineStart=Fp;zt.lineEnd=pb;var Kr=mj,vE=Kr.length;var wu=-1;for(var v0=0,X6,Ql;++wu<vE;)v0+=Kr[wu].length;for(X6=Array(v0);--vE>=0;)for(Ql=Kr[vE],wu=Ql.length;--wu>=0;)X6[--v0]=Ql[wu];mj=X6;Kr=we;vE=Nw[0];v0=Nw[1];var hW=bC(v0);wu=[bC(vE),-uA(vE),0];Ql=X6=0;bHr.reset();hW===1?v0=w9+1E-6:hW===-1&&(v0=-w9-1E-6);hW=0;for(var IO=Kr.length;hW<IO;++hW)if(XA=(Yp=Kr[hW]).length){var Yp,XA,uY=Yp[XA-1],BQ=uY[0],Pi=uY[1]/2+Mt_,Jzn=bC(Pi),gJ_=uA(Pi);for(Pi=0;Pi<XA;++Pi,BQ=
lDo,Jzn=QHp,gJ_=R5,uY=anw){var anw=Yp[Pi],lDo=anw[0];R5=anw[1]/2+Mt_;var QHp=bC(R5),R5=uA(R5),z1=lDo-BQ,n5o=z1>=0?1:-1,yjo=n5o*z1,fno=yjo>Hc;Jzn*=QHp;bHr.add(jqO(Jzn*n5o*bC(yjo),gJ_*R5+Jzn*uA(yjo)));X6+=fno?z1+n5o*vAx:z1;fno^BQ>=vE^lDo>=vE&&(uY=bHa(OHe(uY),OHe(anw)),lD_(uY),BQ=bHa(wu,uY),lD_(BQ),BQ=(fno^z1>=0?-1:1)*L6r(BQ[2]),v0>BQ||v0===BQ&&(uY[0]||uY[1]))&&(Ql+=fno^z1>=0?1:-1)}}Kr=(X6<-1E-6||X6<1E-6&&bHr<-1E-6)^Ql&1;mj.length?(sW||(Qo.polygonStart(),sW=!0),Wx6(mj,htP,Kr,u,Qo)):Kr&&(sW||(Qo.polygonStart(),
sW=!0),Qo.lineStart(),u(null,null,1,Qo),Qo.lineEnd());sW&&(Qo.polygonEnd(),sW=!1);mj=we=null},
sphere:function(){Qo.polygonStart();Qo.lineStart();u(null,null,1,Qo);Qo.lineEnd();Qo.polygonEnd()}};
return zt}})(function(){return!0},function(q){var f=NaN,u=NaN,Nw=NaN,Qo;
return{lineStart:function(){q.lineStart();Qo=1},
point:function(In,$W){var Fp=In>0?Hc:-Hc,pb=C7(In-f);if(C7(pb-Hc)<1E-6)q.point(f,u=(u+$W)/2>0?w9:-w9),q.point(Nw,u),q.lineEnd(),q.lineStart(),q.point(Fp,u),q.point(In,u),Qo=0;else if(Nw!==Fp&&pb>=Hc){C7(f-Nw)<1E-6&&(f-=Nw*1E-6);C7(In-Fp)<1E-6&&(In-=Fp*1E-6);pb=f;var WO=u,ta=In,u_,tP,vk=bC(pb-ta);u=C7(vk)>1E-6?OHY((bC(WO)*(tP=uA($W))*bC(ta)-bC($W)*(u_=uA(WO))*bC(pb))/(u_*tP*vk)):(WO+$W)/2;q.point(Nw,u);q.lineEnd();q.lineStart();q.point(Fp,u);Qo=0}q.point(f=In,u=$W);Nw=Fp},
lineEnd:function(){q.lineEnd();f=u=NaN},
clean:function(){return 2-Qo}}},function(q,f,u,Nw){q==null?(u*=w9,Nw.point(-Hc,u),Nw.point(0,u),Nw.point(Hc,u),Nw.point(Hc,0),Nw.point(Hc,-u),Nw.point(0,-u),Nw.point(-Hc,-u),Nw.point(-Hc,0),Nw.point(-Hc,u)):C7(q[0]-f[0])>1E-6?(q=q[0]<f[0]?Hc:-Hc,u=u*q/2,Nw.point(-q,u),Nw.point(0,u),Nw.point(q,u)):Nw.point(f[0],f[1])},[-Hc,
-w9]);new TA;new TA;new TA;new TA;xde.prototype={constructor:xde,point:function(q,f){this.stream.point(q,f)},
sphere:function(){this.stream.sphere()},
lineStart:function(){this.stream.lineStart()},
lineEnd:function(){this.stream.lineEnd()},
polygonStart:function(){this.stream.polygonStart()},
polygonEnd:function(){this.stream.polygonEnd()}};
uA(30*fDY);(function(q){return function(f){var u=new xde,Nw;for(Nw in q)u[Nw]=q[Nw];u.stream=f;return u}})({point:function(q,f){this.stream.point(q*fDY,f*fDY)}});
yjM(function(q){return qio(2/(1+q))}).invert=F1(function(q){return 2*L6r(q/2)});
yjM(function(q){return(q=q>1?0:q<-1?Hc:Math.acos(q))&&q/bC(q)}).invert=F1(function(q){return q});
qio(3);F1(OHY);F1(L6r);F1(function(q){return 2*OHY(q)});
Wd.prototype=iHa.prototype={constructor:Wd,count:function(){return this.eachAfter(do8)},
each:function(q){var f,u=[this],Nw;do{var Qo=u.reverse();for(u=[];f=Qo.pop();)if(q(f),f=f.children){var In=0;for(Nw=f.length;In<Nw;++In)u.push(f[In])}}while(u.length);return this},
eachAfter:function(q){for(var f,u=[this],Nw=[],Qo,In;f=u.pop();)if(Nw.push(f),f=f.children)for(Qo=0,In=f.length;Qo<In;++Qo)u.push(f[Qo]);for(;f=Nw.pop();)q(f);return this},
eachBefore:function(q){for(var f,u=[this],Nw;f=u.pop();)if(q(f),f=f.children)for(Nw=f.length-1;Nw>=0;--Nw)u.push(f[Nw]);return this},
sum:function(q){return this.eachAfter(function(f){for(var u=+q(f.data)||0,Nw=f.children,Qo=Nw&&Nw.length;--Qo>=0;)u+=Nw[Qo].value;f.value=u})},
sort:function(q){return this.eachBefore(function(f){f.children&&f.children.sort(q)})},
path:function(q){var f=this;var u=f;var Nw=q;if(u!==Nw){var Qo=u.ancestors(),In=Nw.ancestors(),$W=null;u=Qo.pop();for(Nw=In.pop();u===Nw;)$W=u,u=Qo.pop(),Nw=In.pop();u=$W}for(Nw=[f];f!==u;)f=f.parent,Nw.push(f);for(f=Nw.length;q!==u;)Nw.splice(f,0,q),q=q.parent;return Nw},
ancestors:function(){for(var q=this,f=[q];q=q.parent;)f.push(q);return f},
links:function(){var q=this,f=[];q.each(function(u){u!==q&&f.push({source:u.parent,target:u})});
return f},
copy:function(){return iHa(this).eachBefore(UoF)}};
(function(q,f){this._=q;this.A=this.children=this.parent=null;this.a=this;this.s=this.c=this.m=this.z=0;this.t=null;this.i=f}).prototype=Object.create(Wd.prototype);
var kNo=new Date,Ajr=new Date,zLO=kx(function(){},function(q,f){q.setTime(+q+f)},function(q,f){return f-q});
zLO.every=function(q){q=Math.floor(q);return isFinite(q)&&q>0?q>1?kx(function(f){f.setTime(Math.floor(f/q)*q)},function(f,u){f.setTime(+f+u*q)},function(f,u){return(u-f)/q}):zLO:null};
kx(function(q){q.setTime(Math.floor(q/1E3)*1E3)},function(q,f){q.setTime(+q+f*1E3)},function(q,f){return(f-q)/1E3},function(q){return q.getUTCSeconds()});
kx(function(q){q.setTime(Math.floor(q/6E4)*6E4)},function(q,f){q.setTime(+q+f*6E4)},function(q,f){return(f-q)/6E4},function(q){return q.getMinutes()});
kx(function(q){var f=q.getTimezoneOffset()*6E4%36E5;f<0&&(f+=36E5);q.setTime(Math.floor((+q-f)/36E5)*36E5+f)},function(q,f){q.setTime(+q+f*36E5)},function(q,f){return(f-q)/36E5},function(q){return q.getHours()});
var o5e=kx(function(q){q.setHours(0,0,0,0)},function(q,f){q.setDate(q.getDate()+f)},function(q,f){return(f-q-(f.getTimezoneOffset()-q.getTimezoneOffset())*6E4)/864E5},function(q){return q.getDate()-1}),UDK=i4(0),Lyr=i4(1);
i4(2);i4(3);var qPw=i4(4);i4(5);i4(6);kx(function(q){q.setDate(1);q.setHours(0,0,0,0)},function(q,f){q.setMonth(q.getMonth()+f)},function(q,f){return f.getMonth()-q.getMonth()+(f.getFullYear()-q.getFullYear())*12},function(q){return q.getMonth()});
var eG=kx(function(q){q.setMonth(0,1);q.setHours(0,0,0,0)},function(q,f){q.setFullYear(q.getFullYear()+f)},function(q,f){return f.getFullYear()-q.getFullYear()},function(q){return q.getFullYear()});
eG.every=function(q){return isFinite(q=Math.floor(q))&&q>0?kx(function(f){f.setFullYear(Math.floor(f.getFullYear()/q)*q);f.setMonth(0,1);f.setHours(0,0,0,0)},function(f,u){f.setFullYear(f.getFullYear()+u*q)}):null};
kx(function(q){q.setUTCSeconds(0,0)},function(q,f){q.setTime(+q+f*6E4)},function(q,f){return(f-q)/6E4},function(q){return q.getUTCMinutes()});
kx(function(q){q.setUTCMinutes(0,0,0)},function(q,f){q.setTime(+q+f*36E5)},function(q,f){return(f-q)/36E5},function(q){return q.getUTCHours()});
var TNi=kx(function(q){q.setUTCHours(0,0,0,0)},function(q,f){q.setUTCDate(q.getUTCDate()+f)},function(q,f){return(f-q)/864E5},function(q){return q.getUTCDate()-1}),Rmx=rD(0),sqk=rD(1);
rD(2);rD(3);var $dW=rD(4);rD(5);rD(6);kx(function(q){q.setUTCDate(1);q.setUTCHours(0,0,0,0)},function(q,f){q.setUTCMonth(q.getUTCMonth()+f)},function(q,f){return f.getUTCMonth()-q.getUTCMonth()+(f.getUTCFullYear()-q.getUTCFullYear())*12},function(q){return q.getUTCMonth()});
var Mh=kx(function(q){q.setUTCMonth(0,1);q.setUTCHours(0,0,0,0)},function(q,f){q.setUTCFullYear(q.getUTCFullYear()+f)},function(q,f){return f.getUTCFullYear()-q.getUTCFullYear()},function(q){return q.getUTCFullYear()});
Mh.every=function(q){return isFinite(q=Math.floor(q))&&q>0?kx(function(f){f.setUTCFullYear(Math.floor(f.getUTCFullYear()/q)*q);f.setUTCMonth(0,1);f.setUTCHours(0,0,0,0)},function(f,u){f.setUTCFullYear(f.getUTCFullYear()+u*q)}):null};
var rjM={"-":"",_:" ",0:"0"},H5=/^\s*\d+/,VjN=/^%/,Ns8=/[\\^$*+?|[\]().{}]/g,OdS;(function(q){OdS=etK(q);rmu=OdS.utcFormat;Tha=OdS.utcParse;return OdS})({dateTime:"%x, %X",
date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),shortDays:"Sun Mon Tue Wed Thu Fri Sat".split(" "),months:"January February March April May June July August September October November December".split(" "),shortMonths:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" ")});Date.prototype.toISOString||rmu("%Y-%m-%dT%H:%M:%S.%LZ");+new Date("2000-01-01T00:00:00.000Z")||Tha("%Y-%m-%dT%H:%M:%S.%LZ");RS("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf");
RS("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6");RS("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9");RS("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5");RS("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666");RS("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666");RS("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928");
RS("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2");RS("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc");RS("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999");RS("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3");RS("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f");var IaK=Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e",
"8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(RS);w$(IaK);var cJT=Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837",
"40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(RS);w$(cJT);var DDT=Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419",
"8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(RS);w$(DDT);var xDT=Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(RS);
w$(xDT);var kUP=Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(RS);w$(kUP);var AJP=Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040",
"ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(RS);w$(AJP);var ssO=Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4",
"d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(RS);w$(ssO);var LT8=Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850",
"d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(RS);w$(LT8);var qDg=Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd",
"9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(RS);w$(qDg);var $Du=Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(RS);w$($Du);var Z3P=Array(3).concat("e0ecf49ebcda8856a7",
"edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(RS);w$(Z3P);var XMP=Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e",
"f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(RS);w$(XMP);var H3O=Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(RS);w$(H3O);var Pxg=Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59",
"f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(RS);w$(Pxg);var JJu=Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(RS);w$(JJu);var aaK=Array(3).concat("e7e1efc994c7dd1c77",
"f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(RS);w$(aaK);var faP=Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177",
"fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(RS);w$(faP);var O36=Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(RS);w$(O36);var b36=Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837",
"ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(RS);w$(b36);var lag=Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(RS);w$(lag);var nAK=Array(3).concat("ffeda0feb24cf03b20",
"ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(RS);w$(nAK);var yJg=Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594",
"f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(RS);w$(yJg);var jsT=Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(RS);w$(jsT);var i3T=Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525",
"f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(RS);w$(i3T);var rJ8=Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(RS);w$(rJ8);var TsN=Array(3).concat("fee0d2fc9272de2d26",
"fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(RS);w$(TsN);var oAN=Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04",
"fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(RS);w$(oAN);JjW(cO(300,.5,0),cO(-240,.5,1));JjW(cO(-100,.75,.35),cO(80,1.5,.8));JjW(cO(260,.75,.35),cO(80,1.5,.8));cO();AP();XXe(RS("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));
XXe(RS("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf"));
XXe(RS("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4"));
XXe(RS("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));
W4H.prototype={lineStart:function(){this._point=0},
lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath();this._line=1-this._line},
point:function(q,f){q=+q;f=+f;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(q,f):this._context.moveTo(q,f);break;case 1:this._point=2;default:this._context.lineTo(q,f)}}};
(function(q){function f(u){return new EJu(q(u))}
f._curve=q;return f})(function(q){return new W4H(q)});
EJu.prototype={lineStart:function(){this._curve.lineStart()},
lineEnd:function(){this._curve.lineEnd()},
point:function(q,f){this._curve.point(f*Math.sin(q),f*-Math.cos(q))}};
Xir.prototype={lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN;this._point=0},
lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:ZHR(this,this._t0,dCi(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath();this._line=1-this._line},
point:function(q,f){var u=NaN;q=+q;f=+f;if(q!==this._x1||f!==this._y1){switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(q,f):this._context.moveTo(q,f);break;case 1:this._point=2;break;case 2:this._point=3;ZHR(this,dCi(this,u=hLO(this,q,f)),u);break;default:ZHR(this,this._t0,u=hLO(this,q,f))}this._x0=this._x1;this._x1=q;this._y0=this._y1;this._y1=f;this._t0=u}}};
(function(q){this._context=new NZa(q)}.prototype=Object.create(Xir.prototype)).point=function(q,f){Xir.prototype.point.call(this,f,q)};
NZa.prototype={moveTo:function(q,f){this._context.moveTo(f,q)},
closePath:function(){this._context.closePath()},
lineTo:function(q,f){this._context.lineTo(f,q)},
bezierCurveTo:function(q,f,u,Nw,Qo,In){this._context.bezierCurveTo(f,q,Nw,u,In,Qo)}};
NV.prototype={constructor:NV,scale:function(q){return q===1?this:new NV(this.k*q,this.x,this.y)},
translate:function(q,f){return q===0&f===0?this:new NV(this.k,this.x+this.k*q,this.y+this.k*f)},
apply:function(q){return[q[0]*this.k+this.x,q[1]*this.k+this.y]},
invert:function(q){return[(q[0]-this.x)/this.k,(q[1]-this.y)/this.k]},
toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};
new NV(1,0,0);sJe=iK;Ya.svg=Ya.svg;Ya.xhtml=Ya.xhtml;Ya.xlink=Ya.xlink;Ya.xml=Ya.xml;Ya.xmlns=Ya.xmlns})();/*

 Hammer.JS - v2.0.2 - 2014-07-26
 http://hammerjs.github.io/

 Copyright (c) 2014 Jorik Tangelder <j.tangelder@gmail.com>;
 Licensed under the MIT license */
var oTM="hammer_"+(Math.random()*1E6|0),G4X=function(){var F=document||document;if(!F[oTM]){var W=function(){(function(E,h,d,V){function R(DS,fb,rI){return setTimeout(I(DS,rI),fb)}
function M(DS,fb,rI){return Array.isArray(DS)?(g(DS,rI[fb],rI),!0):!1}
function g(DS,fb,rI){var Ii;if(DS)if(DS.forEach)DS.forEach(fb,rI);else if(DS.length!==V){var NF=0;for(Ii=DS.length;NF<Ii;NF++)fb.call(rI,DS[NF],NF,DS)}else for(NF in DS)DS.hasOwnProperty(NF)&&fb.call(rI,DS[NF],NF,DS)}
function t(DS,fb,rI){for(var Ii=Object.keys(fb),NF=0,JW=Ii.length;NF<JW;NF++)if(!rI||rI&&DS[Ii[NF]]===V)DS[Ii[NF]]=fb[Ii[NF]];return DS}
function C(DS,fb){return t(DS,fb,!0)}
function B(DS,fb,rI){fb=fb.prototype;var Ii=DS.prototype=Object.create(fb);Ii.constructor=DS;Ii._super=fb;rI&&t(Ii,rI)}
function I(DS,fb){return function(){return DS.apply(fb,arguments)}}
function x(DS,fb){return typeof DS=="function"?DS.apply(fb?fb[0]||V:V,fb):DS}
function A(DS,fb,rI){g(P(fb),function(Ii){DS.addEventListener(Ii,rI,!1)})}
function X(DS,fb,rI){g(P(fb),function(Ii){DS.removeEventListener(Ii,rI,!1)})}
function P(DS){return DS.trim().split(/\s+/g)}
function b(DS,fb,rI){if(DS.indexOf&&!rI)return DS.indexOf(fb);for(var Ii=0,NF=DS.length;Ii<NF;Ii++)if(rI&&DS[Ii][rI]==fb||!rI&&DS[Ii]===fb)return Ii;return-1}
function l(DS,fb,rI){for(var Ii=[],NF=[],JW=0,Qx=DS.length;JW<Qx;JW++){var xB=fb?DS[JW][fb]:DS[JW];b(NF,xB)<0&&Ii.push(DS[JW]);NF[JW]=xB}rI&&(Ii=fb?Ii.sort(function(cO,z8){return cO[fb]>z8[fb]}):Ii.sort());
return Ii}
function w(DS,fb){for(var rI,Ii=fb[0].toUpperCase()+fb.slice(1),NF=0,JW=wI.length;NF<JW;NF++)if(rI=(rI=wI[NF])?rI+Ii:fb,rI in DS)return rI;return V}
function G(DS,fb){var rI=this;this.manager=DS;this.callback=fb;this.element=DS.element;this.target=DS.options.inputTarget;this.domHandler=function(Ii){x(DS.options.enable,[DS])&&rI.handler(Ii)};
this.evEl&&A(this.element,this.evEl,this.domHandler);this.evTarget&&A(this.target,this.evTarget,this.domHandler);this.evWin&&A(E,this.evWin,this.domHandler)}
function hr(DS){var fb;DV?fb=nb:xt?fb=bo:iK?fb=uo:fb=Jr;return new fb(DS,p)}
function p(DS,fb,rI){var Ii=rI.pointers.length,NF=rI.changedPointers.length,JW=fb&1&&Ii-NF===0;rI.isFirst=!!JW;rI.isFinal=!!(fb&12&&Ii-NF===0);JW&&(DS.session={});rI.eventType=fb;fb=DS.session;Ii=rI.pointers;NF=Ii.length;fb.firstInput||(fb.firstInput=UY(rI));NF>1&&!fb.firstMultiple?fb.firstMultiple=UY(rI):NF===1&&(fb.firstMultiple=!1);JW=fb.firstInput;var Qx=(NF=fb.firstMultiple)?NF.center:JW.center,xB=rI.center=xW(Ii);rI.timeStamp=Du();rI.deltaTime=rI.timeStamp-JW.timeStamp;rI.angle=jk(Qx,xB);rI.distance=
Lb(Qx,xB);JW=rI.center;Qx=fb.offsetDelta||{};xB=fb.prevDelta||{};var cO=fb.prevInput||{};if(rI.eventType===1||cO.eventType===4)xB=fb.prevDelta={x:cO.deltaX||0,y:cO.deltaY||0},Qx=fb.offsetDelta={x:JW.x,y:JW.y};rI.deltaX=xB.x+(JW.x-Qx.x);rI.deltaY=xB.y+(JW.y-Qx.y);rI.offsetDirection=qw(rI.deltaX,rI.deltaY);NF?(JW=NF.pointers,JW=Lb(Ii[0],Ii[1],AP)/Lb(JW[0],JW[1],AP)):JW=1;rI.scale=JW;NF?(NF=NF.pointers,Ii=jk(Ii[1],Ii[0],AP)-jk(NF[1],NF[0],AP)):Ii=0;rI.rotation=Ii;Qx=fb.lastInterval||rI;Ii=rI.timeStamp-
Qx.timeStamp;rI.eventType!=8&&(Ii>25||Qx.velocity===V)?(JW=Qx.deltaX-rI.deltaX,Qx=Qx.deltaY-rI.deltaY,xB=JW/Ii||0,cO=Qx/Ii||0,Ii=xB,NF=cO,xB=LT(xB)>LT(cO)?xB:cO,JW=qw(JW,Qx),fb.lastInterval=rI):(xB=Qx.velocity,Ii=Qx.velocityX,NF=Qx.velocityY,JW=Qx.direction);rI.velocity=xB;rI.velocityX=Ii;rI.velocityY=NF;rI.direction=JW;fb=DS.element;a:{for(Ii=rI.srcEvent.target;Ii;){if(Ii==fb){Ii=!0;break a}Ii=Ii.parentNode}Ii=!1}Ii&&(fb=rI.srcEvent.target);rI.target=fb;DS.emit("hammer.input",rI);DS.recognize(rI);
DS.session.prevInput=rI}
function UY(DS){for(var fb=[],rI=0;rI<DS.pointers.length;rI++)fb[rI]={clientX:MF(DS.pointers[rI].clientX),clientY:MF(DS.pointers[rI].clientY)};return{timeStamp:Du(),pointers:fb,center:xW(fb),deltaX:DS.deltaX,deltaY:DS.deltaY}}
function xW(DS){var fb=DS.length;if(fb===1)return{x:MF(DS[0].clientX),y:MF(DS[0].clientY)};for(var rI=0,Ii=0,NF=0;NF<fb;NF++)rI+=DS[NF].clientX,Ii+=DS[NF].clientY;return{x:MF(rI/fb),y:MF(Ii/fb)}}
function qw(DS,fb){return DS===fb?1:LT(DS)>=LT(fb)?DS>0?2:4:fb>0?8:16}
function Lb(DS,fb,rI){rI||(rI=i_);var Ii=fb[rI[0]]-DS[rI[0]];DS=fb[rI[1]]-DS[rI[1]];return Math.sqrt(Ii*Ii+DS*DS)}
function jk(DS,fb,rI){rI||(rI=i_);return Math.atan2(fb[rI[1]]-DS[rI[1]],fb[rI[0]]-DS[rI[0]])*180/Math.PI}
function Jr(){this.evEl="mousedown";this.evWin="mousemove mouseup";this.allow=!0;this.pressed=!1;G.apply(this,arguments)}
function nb(){this.evEl=Np;this.evWin=Ac;G.apply(this,arguments);this.store=this.manager.session.pointerEvents=[]}
function bo(){this.evTarget="touchstart touchmove touchend touchcancel";this.targetIds={};G.apply(this,arguments)}
function uo(){G.apply(this,arguments);var DS=I(this.handler,this);this.touch=new bo(this.manager,DS);this.mouse=new Jr(this.manager,DS)}
function b_(DS,fb){this.manager=DS;this.set(fb)}
function BO(DS){if(DS.indexOf("none")>-1)return"none";var fb=DS.indexOf("pan-x")>-1,rI=DS.indexOf("pan-y")>-1;return fb&&rI?"pan-x pan-y":fb||rI?fb?"pan-x":"pan-y":DS.indexOf("manipulation")>-1?"manipulation":"auto"}
function dc(DS){this.id=MR++;this.manager=null;this.options=C(DS||{},this.defaults);DS=this.options.enable;this.options.enable=DS===V?!0:DS;this.state=1;this.simultaneous={};this.requireFail=[]}
function VM(DS){return DS==16?"down":DS==8?"up":DS==2?"left":DS==4?"right":""}
function Z_(DS,fb){return(fb=fb.manager)?fb.get(DS):DS}
function MU(){dc.apply(this,arguments)}
function Ef(){MU.apply(this,arguments);this.pY=this.pX=null}
function kR(){MU.apply(this,arguments)}
function Rn(){dc.apply(this,arguments);this._input=this._timer=null}
function se(){MU.apply(this,arguments)}
function l_(){MU.apply(this,arguments)}
function j$(){dc.apply(this,arguments);this.pCenter=this.pTime=!1;this._input=this._timer=null;this.count=0}
function HO(DS,fb){fb=fb||{};var rI=fb.recognizers;fb.recognizers=rI===V?HO.defaults.preset:rI;return new YB(DS,fb)}
function YB(DS,fb){fb=fb||{};this.options=C(fb,HO.defaults);this.options.inputTarget=this.options.inputTarget||DS;this.handlers={};this.session={};this.recognizers=[];this.element=DS;this.input=hr(this);this.touchAction=new b_(this,this.options.touchAction);GT(this,!0);g(fb.recognizers,function(rI){var Ii=this.add(new rI[0](rI[1]));rI[2]&&Ii.recognizeWith(rI[2]);rI[3]&&Ii.requireFailure(rI[2])},this)}
function GT(DS,fb){var rI=DS.element;g(DS.options.cssProps,function(Ii,NF){rI.style[w(rI.style,NF)]=fb?Ii:""})}
function vO(DS,fb){var rI=h.createEvent("Event");rI.initEvent(DS,!0,!0);rI.gesture=fb;fb.target.dispatchEvent(rI)}
var wI=" webkit moz MS ms o".split(" "),Aa=h.createElement("div"),MF=Math.round,LT=Math.abs,Du=Date.now,MR=1,QA=/mobile|tablet|ip(ad|hone|od)|android/i,iK="ontouchstart"in E,DV=w(E,"PointerEvent")!==V,xt=iK&&QA.test(navigator.userAgent),i_=["x","y"],AP=["clientX","clientY"];G.prototype={handler:function(){},
destroy:function(){this.evEl&&X(this.element,this.evEl,this.domHandler);this.evTarget&&X(this.target,this.evTarget,this.domHandler);this.evWin&&X(E,this.evWin,this.domHandler)}};
var YK={mousedown:1,mousemove:2,mouseup:4};B(Jr,G,{handler:function(DS){var fb=YK[DS.type];fb&1&&DS.button===0&&(this.pressed=!0);fb&2&&DS.which!==1&&(fb=4);this.pressed&&this.allow&&(fb&4&&(this.pressed=!1),this.callback(this.manager,fb,{pointers:[DS],changedPointers:[DS],pointerType:"mouse",srcEvent:DS}))}});
var S$={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},zX={2:"touch",3:"pen",4:"mouse",5:"kinect"},Np="pointerdown",Ac="pointermove pointerup pointercancel";E.MSPointerEvent&&(Np="MSPointerDown",Ac="MSPointerMove MSPointerUp MSPointerCancel");B(nb,G,{handler:function(DS){var fb=this.store,rI=!1,Ii=DS.type.toLowerCase().replace("ms","");Ii=S$[Ii];var NF=zX[DS.pointerType]||DS.pointerType;Ii&1&&(DS.button===0||NF=="touch")?fb.push(DS):Ii&12&&(rI=!0);var JW=b(fb,DS.pointerId,"pointerId");
JW<0||(fb[JW]=DS,this.callback(this.manager,Ii,{pointers:fb,changedPointers:[DS],pointerType:NF,srcEvent:DS}),rI&&fb.splice(JW,1))}});
var Cd={touchstart:1,touchmove:2,touchend:4,touchcancel:8};B(bo,G,{handler:function(DS){var fb=Cd[DS.type];var rI=Array.prototype.slice.call(DS.touches,0);var Ii=this.targetIds;if(fb&3&&rI.length===1)Ii[rI[0].identifier]=!0,Ii=[rI,rI];else{var NF,JW=Array.prototype.slice.call(DS.targetTouches,0),Qx=Array.prototype.slice.call(DS.changedTouches,0),xB=[];if(fb===1)for(rI=0,NF=JW.length;rI<NF;rI++)Ii[JW[rI].identifier]=!0;rI=0;for(NF=Qx.length;rI<NF;rI++)Ii[Qx[rI].identifier]&&xB.push(Qx[rI]),fb&12&&
delete Ii[Qx[rI].identifier];Ii=xB.length?[l(JW.concat(xB),"identifier",!0),xB]:void 0}Ii&&this.callback(this.manager,fb,{pointers:Ii[0],changedPointers:Ii[1],pointerType:"touch",srcEvent:DS})}});
B(uo,G,{handler:function(DS,fb,rI){var Ii=rI.pointerType=="mouse";if(rI.pointerType=="touch")this.mouse.allow=!1;else if(Ii&&!this.mouse.allow)return;fb&12&&(this.mouse.allow=!0);this.callback(DS,fb,rI)},
destroy:function(){this.touch.destroy();this.mouse.destroy()}});
var S9=w(Aa.style,"touchAction"),tF=S9!==V;b_.prototype={set:function(DS){DS=="compute"&&(DS=this.compute());tF&&(this.manager.element.style[S9]=DS);this.actions=DS.toLowerCase().trim()},
update:function(){this.set(this.manager.options.touchAction)},
compute:function(){var DS=[];g(this.manager.recognizers,function(fb){x(fb.options.enable,[fb])&&(DS=DS.concat(fb.getTouchAction()))});
return BO(DS.join(" "))},
preventDefaults:function(DS){if(!tF){var fb=DS.srcEvent;DS=DS.offsetDirection;if(this.manager.session.prevented)fb.preventDefault();else{var rI=this.actions,Ii=rI.indexOf("none")>-1,NF=rI.indexOf("pan-y")>-1;rI=rI.indexOf("pan-x")>-1;if(Ii||NF&&rI||NF&&DS&6||rI&&DS&24)return this.preventSrc(fb)}}},
preventSrc:function(DS){this.manager.session.prevented=!0;DS.preventDefault()}};
dc.prototype={defaults:{},set:function(DS){t(this.options,DS);this.manager&&this.manager.touchAction.update();return this},
recognizeWith:function(DS){if(M(DS,"recognizeWith",this))return this;var fb=this.simultaneous;DS=Z_(DS,this);fb[DS.id]||(fb[DS.id]=DS,DS.recognizeWith(this));return this},
dropRecognizeWith:function(DS){if(M(DS,"dropRecognizeWith",this))return this;DS=Z_(DS,this);delete this.simultaneous[DS.id];return this},
requireFailure:function(DS){if(M(DS,"requireFailure",this))return this;var fb=this.requireFail;DS=Z_(DS,this);b(fb,DS)===-1&&(fb.push(DS),DS.requireFailure(this));return this},
dropRequireFailure:function(DS){if(M(DS,"dropRequireFailure",this))return this;DS=Z_(DS,this);DS=b(this.requireFail,DS);DS>-1&&this.requireFail.splice(DS,1);return this},
hasRequireFailures:function(){return this.requireFail.length>0},
canRecognizeWith:function(DS){return!!this.simultaneous[DS.id]},
emit:function(DS){function fb(NF){rI.manager.emit(rI.options.event+(NF?Ii&16?"cancel":Ii&8?"end":Ii&4?"move":Ii&2?"start":"":""),DS)}
var rI=this,Ii=this.state;Ii<8&&fb(!0);fb();Ii>=8&&fb(!0)},
tryEmit:function(DS){if(this.canEmit())return this.emit(DS);this.state=32},
canEmit:function(){for(var DS=0;DS<this.requireFail.length;DS++)if(!(this.requireFail[DS].state&33))return!1;return!0},
recognize:function(DS){DS=t({},DS);x(this.options.enable,[this,DS])?(this.state&56&&(this.state=1),this.state=this.process(DS),this.state&30&&this.tryEmit(DS)):(this.reset(),this.state=32)},
process:function(){},
getTouchAction:function(){},
reset:function(){}};
B(MU,dc,{defaults:{pointers:1},attrTest:function(DS){var fb=this.options.pointers;return fb===0||DS.pointers.length===fb},
process:function(DS){var fb=this.state,rI=DS.eventType,Ii=fb&6;DS=this.attrTest(DS);return Ii&&(rI&8||!DS)?fb|16:Ii||DS?rI&4?fb|8:fb&2?fb|4:2:32}});
B(Ef,MU,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var DS=this.options.direction;if(DS===30)return["none"];var fb=[];DS&6&&fb.push("pan-y");DS&24&&fb.push("pan-x");return fb},
directionTest:function(DS){var fb=this.options,rI=!0,Ii=DS.distance,NF=DS.direction,JW=DS.deltaX,Qx=DS.deltaY;NF&fb.direction||(fb.direction&6?(NF=JW===0?1:JW<0?2:4,rI=JW!=this.pX,Ii=Math.abs(DS.deltaX)):(NF=Qx===0?1:Qx<0?8:16,rI=Qx!=this.pY,Ii=Math.abs(DS.deltaY)));DS.direction=NF;return rI&&Ii>fb.threshold&&NF&fb.direction},
attrTest:function(DS){return MU.prototype.attrTest.call(this,DS)&&(this.state&2||!(this.state&2)&&this.directionTest(DS))},
emit:function(DS){this.pX=DS.deltaX;this.pY=DS.deltaY;var fb=VM(DS.direction);fb&&this.manager.emit(this.options.event+fb,DS);this._super.emit.call(this,DS)}});
B(kR,MU,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(DS){return this._super.attrTest.call(this,DS)&&(Math.abs(DS.scale-1)>this.options.threshold||this.state&2)},
emit:function(DS){this._super.emit.call(this,DS);DS.scale!==1&&this.manager.emit(this.options.event+(DS.scale<1?"in":"out"),DS)}});
B(Rn,dc,{defaults:{event:"press",pointers:1,time:500,threshold:5},getTouchAction:function(){return["auto"]},
process:function(DS){var fb=this.options,rI=DS.pointers.length===fb.pointers,Ii=DS.distance<fb.threshold,NF=DS.deltaTime>fb.time;this._input=DS;if(!Ii||!rI||DS.eventType&12&&!NF)this.reset();else if(DS.eventType&1)this.reset(),this._timer=R(function(){this.state=8;this.tryEmit()},fb.time,this);
else if(DS.eventType&4)return 8;return 32},
reset:function(){clearTimeout(this._timer)},
emit:function(DS){this.state===8&&(DS&&DS.eventType&4?this.manager.emit(this.options.event+"up",DS):(this._input.timeStamp=Du(),this.manager.emit(this.options.event,this._input)))}});
B(se,MU,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(DS){return this._super.attrTest.call(this,DS)&&(Math.abs(DS.rotation)>this.options.threshold||this.state&2)}});
B(l_,MU,{defaults:{event:"swipe",threshold:10,velocity:.65,direction:30,pointers:1},getTouchAction:function(){return Ef.prototype.getTouchAction.call(this)},
attrTest:function(DS){var fb=this.options.direction;if(fb&30)var rI=DS.velocity;else fb&6?rI=DS.velocityX:fb&24&&(rI=DS.velocityY);return this._super.attrTest.call(this,DS)&&fb&DS.direction&&LT(rI)>this.options.velocity&&DS.eventType&4},
emit:function(DS){var fb=VM(DS.direction);fb&&this.manager.emit(this.options.event+fb,DS);this.manager.emit(this.options.event,DS)}});
B(j$,dc,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:2,posThreshold:10},getTouchAction:function(){return["manipulation"]},
process:function(DS){var fb=this.options,rI=DS.pointers.length===fb.pointers,Ii=DS.distance<fb.threshold,NF=DS.deltaTime<fb.time;this.reset();if(DS.eventType&1&&this.count===0)return this.failTimeout();if(Ii&&NF&&rI){if(DS.eventType!=4)return this.failTimeout();rI=this.pTime?DS.timeStamp-this.pTime<fb.interval:!0;Ii=!this.pCenter||Lb(this.pCenter,DS.center)<fb.posThreshold;this.pTime=DS.timeStamp;this.pCenter=DS.center;Ii&&rI?this.count+=1:this.count=1;this._input=DS;if(this.count%fb.taps===0)return this.hasRequireFailures()?
(this._timer=R(function(){this.state=8;this.tryEmit()},fb.interval,this),2):8}return 32},
failTimeout:function(){this._timer=R(function(){this.state=32},this.options.interval,this);
return 32},
reset:function(){clearTimeout(this._timer)},
emit:function(){this.state==8&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}});
HO.VERSION="2.0.2";HO.defaults={domEvents:!1,touchAction:"compute",inputTarget:null,enable:!0,preset:[[se,{enable:!1}],[kR,{enable:!1},["rotate"]],[l_,{direction:6}],[Ef,{direction:6},["swipe"]],[j$],[j$,{event:"doubletap",taps:2},["tap"]],[Rn]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};YB.prototype={set:function(DS){t(this.options,DS);return this},
stop:function(DS){this.session.stopped=DS?2:1},
recognize:function(DS){var fb=this.session;if(!fb.stopped){this.touchAction.preventDefaults(DS);var rI=this.recognizers,Ii=fb.curRecognizer;if(!Ii||Ii&&Ii.state&8)Ii=fb.curRecognizer=null;for(var NF=0,JW=rI.length;NF<JW;NF++){var Qx=rI[NF];fb.stopped===2||Ii&&Qx!=Ii&&!Qx.canRecognizeWith(Ii)?Qx.reset():Qx.recognize(DS);!Ii&&Qx.state&14&&(Ii=fb.curRecognizer=Qx)}}},
get:function(DS){if(DS instanceof dc)return DS;for(var fb=this.recognizers,rI=0;rI<fb.length;rI++)if(fb[rI].options.event==DS)return fb[rI];return null},
add:function(DS){if(M(DS,"add",this))return this;var fb=this.get(DS.options.event);fb&&this.remove(fb);this.recognizers.push(DS);DS.manager=this;this.touchAction.update();return DS},
remove:function(DS){if(M(DS,"remove",this))return this;var fb=this.recognizers;DS=this.get(DS);fb.splice(b(fb,DS),1);this.touchAction.update();return this},
on:function(DS,fb){var rI=this.handlers;g(P(DS),function(Ii){rI[Ii]=rI[Ii]||[];rI[Ii].push(fb)});
return this},
off:function(DS,fb){var rI=this.handlers;g(P(DS),function(Ii){fb?rI[Ii].splice(b(rI[Ii],fb),1):delete rI[Ii]});
return this},
emit:function(DS,fb){this.options.domEvents&&vO(DS,fb);var rI=this.handlers[DS]&&this.handlers[DS].slice();if(rI&&rI.length){fb.type=DS;fb.preventDefault=function(){fb.srcEvent.preventDefault()};
DS=0;for(var Ii=rI.length;DS<Ii;DS++)rI[DS](fb)}},
destroy:function(){this.element&&GT(this,!1);this.handlers={};this.session={};this.input.destroy();this.element=null}};
t(HO,{INPUT_START:1,INPUT_MOVE:2,INPUT_END:4,INPUT_CANCEL:8,STATE_POSSIBLE:1,STATE_BEGAN:2,STATE_CHANGED:4,STATE_ENDED:8,STATE_RECOGNIZED:8,STATE_CANCELLED:16,STATE_FAILED:32,DIRECTION_NONE:1,DIRECTION_LEFT:2,DIRECTION_RIGHT:4,DIRECTION_UP:8,DIRECTION_DOWN:16,DIRECTION_HORIZONTAL:6,DIRECTION_VERTICAL:24,DIRECTION_ALL:30,Manager:YB,Input:G,TouchAction:b_,Recognizer:dc,AttrRecognizer:MU,Tap:j$,Pan:Ef,Swipe:l_,Pinch:kR,Rotate:se,Press:Rn,on:A,off:X,each:g,merge:C,extend:t,inherit:B,bindFn:I,prefixed:w});
E[d]=HO})(window,document,"Hammer");
return window.Hammer}.call({});
W.DOCUMENT=F;F[oTM]=W}return F[oTM]};/*

 MIT License

 Copyright (c) 2017 Alexander Reardon

 Permission is hereby granted, free of charge, to any person obtaining a copy
 of this software and associated documentation files (the "Software"), to deal
 in the Software without restriction, including without limitation the rights
 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 copies of the Software, and to permit persons to whom the Software is
 furnished to do so, subject to the following conditions:

 The above copyright notice and this permission notice shall be included in
 all copies or substantial portions of the Software.

 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 SOFTWARE
*/
var Y6B=function(F,W){if(F.length!==W.length)return!1;for(var E=0;E<F.length;++E)if(F[E]!==W[E])return!1;return!0};if(!window.polymerSkipLoadingFontRoboto)for(var weH=_.U(["https://fonts.googleapis.com/css?family=Roboto:400,300,300italic,400italic,500,500italic,700,700italic","https://fonts.googleapis.com/css?family=Roboto+Mono:400,700"]),uPc=weH.next();!uPc.done;uPc=weH.next()){var S6H=uPc.value,peH=document.createElement("link");peH.rel="stylesheet";peH.href=S6H;document.head.appendChild(peH)};var WNk,hDS,NHn,mBR,EiG,KEe,SZY,p6r;WNk={"U+0008":"backspace","U+0009":"tab","U+001B":"esc","U+0020":"space","U+007F":"del"};hDS={8:"backspace",9:"tab",13:"enter",27:"esc",33:"pageup",34:"pagedown",35:"end",36:"home",32:"space",37:"left",38:"up",39:"right",40:"down",46:"del",106:"*"};NHn={shift:"shiftKey",ctrl:"ctrlKey",alt:"altKey",meta:"metaKey"};mBR=/[a-z0-9*]/;EiG=/U\+/;KEe=/^arrow/;SZY=/^space(bar)?/;p6r=/^escape$/;_.$5={properties:{keyEventTarget:{type:Object,value:function(){return this}},
stopKeyboardEventPropagation:{type:Boolean,value:!1},_boundKeyHandlers:{type:Array,value:function(){return[]}},
_imperativeKeyBindings:{type:Object,value:function(){return{}}}},
observers:["_resetKeyEventListeners(keyEventTarget, _boundKeyHandlers)"],keyBindings:{},registered:function(){this._prepKeyBindings()},
attached:function(){this._listenKeyEventListeners()},
detached:function(){this._unlistenKeyEventListeners()},
addOwnKeyBinding:function(F,W){this._imperativeKeyBindings[F]=W;this._prepKeyBindings();this._resetKeyEventListeners()},
removeOwnKeyBindings:function(){this._imperativeKeyBindings={};this._prepKeyBindings();this._resetKeyEventListeners()},
keyboardEventMatchesKeys:function(F,W){W=Uae(W);for(var E=0;E<W.length;++E)if(dab(W[E],F))return!0;return!1},
_collectKeyBindings:function(){var F=this.behaviors.map(function(W){return W.keyBindings});
F.indexOf(this.keyBindings)===-1&&F.push(this.keyBindings);return F},
_prepKeyBindings:function(){this._keyBindings={};this._collectKeyBindings().forEach(function(E){for(var h in E)this._addKeyBinding(h,E[h])},this);
for(var F in this._imperativeKeyBindings)this._addKeyBinding(F,this._imperativeKeyBindings[F]);for(var W in this._keyBindings)this._keyBindings[W].sort(function(E,h){E=E[0].hasModifiers;return E===h[0].hasModifiers?0:E?-1:1})},
_addKeyBinding:function(F,W){Uae(F).forEach(function(E){this._keyBindings[E.event]=this._keyBindings[E.event]||[];this._keyBindings[E.event].push([E,W])},this)},
_resetKeyEventListeners:function(){this._unlistenKeyEventListeners();this.isAttached&&this._listenKeyEventListeners()},
_listenKeyEventListeners:function(){this.keyEventTarget&&this._keyBindings&&Object.keys(this._keyBindings).forEach(function(F){var W=this._onKeyBindingEvent.bind(this,this._keyBindings[F]);this._boundKeyHandlers.push([this.keyEventTarget,F,W]);this.keyEventTarget.addEventListener(F,W)},this)},
_unlistenKeyEventListeners:function(){for(var F,W,E;this._boundKeyHandlers.length;)F=this._boundKeyHandlers.pop(),W=F[0],E=F[1],F=F[2],W.removeEventListener(E,F)},
_onKeyBindingEvent:function(F,W){this.stopKeyboardEventPropagation&&W.stopPropagation();if(!W.defaultPrevented)for(var E=0;E<F.length;E++){var h=F[E][0],d=F[E][1];if(dab(h,W)&&(this._triggerKeyHandler(h,d,W),W.defaultPrevented))break}},
_triggerKeyHandler:function(F,W,E){var h=Object.create(F);h.keyboardEvent=E;F=new CustomEvent(F.event,{detail:h,cancelable:!0});this[W].call(this,F);F.defaultPrevented&&E.preventDefault()}};/*

Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
part of the polymer project is also subject to an additional IP rights grant
found at http://polymer.github.io/PATENTS.txt
*/
_.k3({is:"iron-a11y-keys",_template:null,behaviors:[_.$5],properties:{target:{type:Object,observer:"_targetChanged"},keys:{type:String,reflectToAttribute:!0,observer:"_keysChanged"}},attached:function(){this.target||(this.target=this.parentNode)},
_targetChanged:function(F){this.keyEventTarget=F},
_keysChanged:function(){this.removeOwnKeyBindings();this.addOwnKeyBinding(this.keys,"_fireKeysPressed")},
_fireKeysPressed:function(F){this.fire("keys-pressed",F.detail,{})}});_.ZD={properties:{focused:{type:Boolean,value:!1,notify:!0,readOnly:!0,reflectToAttribute:!0},disabled:{type:Boolean,value:!1,notify:!0,observer:"_disabledChanged",reflectToAttribute:!0},_oldTabIndex:{type:String},_boundFocusBlurHandler:{type:Function,value:function(){return this._focusBlurHandler.bind(this)}}},
observers:["_changedControlState(focused, disabled)"],ready:function(){this.addEventListener("focus",this._boundFocusBlurHandler,!0);this.addEventListener("blur",this._boundFocusBlurHandler,!0)},
_focusBlurHandler:function(F){this._setFocused(F.type==="focus")},
_disabledChanged:function(F){this.setAttribute("aria-disabled",F?"true":"false");this.style.pointerEvents=F?"none":"";F?(this._oldTabIndex=this.getAttribute("tabindex"),this._setFocused(!1),this.tabIndex=-1,this.blur()):this._oldTabIndex!==void 0&&(this._oldTabIndex===null?this.removeAttribute("tabindex"):this.setAttribute("tabindex",this._oldTabIndex))},
_changedControlState:function(){this._controlStateChanged&&this._controlStateChanged()}};var Xx={properties:{pressed:{type:Boolean,readOnly:!0,value:!1,reflectToAttribute:!0,observer:"_pressedChanged"},toggles:{type:Boolean,value:!1,reflectToAttribute:!0},active:{type:Boolean,value:!1,notify:!0,reflectToAttribute:!0},pointerDown:{type:Boolean,readOnly:!0,value:!1},receivedFocusFromKeyboard:{type:Boolean,readOnly:!0},ariaActiveAttribute:{type:String,value:"aria-pressed",observer:"_ariaActiveAttributeChanged"}},listeners:{down:"_downHandler",mouseup:"_upHandler",tap:"_tapHandler"},observers:["_focusChanged(focused)",
"_activeChanged(active, ariaActiveAttribute)"],keyBindings:{"enter:keydown":"_asyncClick","space:keydown":"_spaceKeyDownHandler","space:keyup":"_spaceKeyUpHandler"},_mouseEventRe:/^mouse/,_tapHandler:function(){this.toggles?this._userActivate(!this.active):this.active=!1},
_focusChanged:function(F){this._detectKeyboardFocus(F);F||this._setPressed(!1)},
_detectKeyboardFocus:function(F){this._setReceivedFocusFromKeyboard(!this.pointerDown&&F)},
_userActivate:function(F){this.active!==F&&(this.active=F,this.fire("change"))},
_downHandler:function(){this._setPointerDown(!0);this._setPressed(!0);this._setReceivedFocusFromKeyboard(!1)},
_upHandler:function(){this._setPointerDown(!1);this._setPressed(!1)},
_spaceKeyDownHandler:function(F){F=F.detail.keyboardEvent;var W=_.sg(F).localTarget;this.isLightDescendant(W)||(F.preventDefault(),F.stopImmediatePropagation(),this._setPressed(!0))},
_spaceKeyUpHandler:function(F){F=_.sg(F.detail.keyboardEvent).localTarget;this.isLightDescendant(F)||(this.pressed&&this._asyncClick(),this._setPressed(!1))},
_asyncClick:function(){this.async(function(){this.click()},1)},
_pressedChanged:function(){this._changedButtonState()},
_ariaActiveAttributeChanged:function(F,W){W&&W!=F&&this.hasAttribute(W)&&this.removeAttribute(W)},
_activeChanged:function(F){this.toggles?this.setAttribute(this.ariaActiveAttribute,F?"true":"false"):this.removeAttribute(this.ariaActiveAttribute);this._changedButtonState()},
_controlStateChanged:function(){this.disabled?this._setPressed(!1):this._changedButtonState()},
_changedButtonState:function(){this._buttonStateChanged&&this._buttonStateChanged()}},mrM=[_.$5,
Xx];_.Hi={IronButtonState:mrM,IronButtonStateImpl:Xx};_.Jj={properties:{name:{type:String},value:{notify:!0,type:String},required:{type:Boolean,value:!1}},attached:function(){},
detached:function(){}};_.aq=function(F){_.aq[" "](F);this.type=F&&F.type||"default";this.key=F&&F.key;F&&"value"in F&&(this.value=F.value)};
_.aq.prototype.byKey=function(F){this.key=F;return this.value};
_.Sn.Object.defineProperties(_.aq.prototype,{value:{configurable:!0,enumerable:!0,get:function(){var F=this.type,W=this.key;if(F&&W)return fH[F]&&fH[F][W]},
set:function(F){var W=this.type,E=this.key;W&&E&&(W=fH[W]=fH[W]||{},F==null?delete W[E]:W[E]=F)}},
list:{configurable:!0,enumerable:!0,get:function(){if(!this.type)return[];var F=fH[this.type];return F?Object.keys(F).map(function(W){return fH[this.type][W]},this):[]}}});
_.aq[" "]=function(){};
var fH={};_.k3({is:"iron-meta",_template:null,properties:{type:{type:String,value:"default"},key:{type:String},value:{type:String,notify:!0},self:{type:Boolean,observer:"_selfChanged"},__meta:{type:Boolean,computed:"__computeMeta(type, key, value)"}},hostAttributes:{hidden:!0},__computeMeta:function(F,W,E){F=new _.aq({type:F,key:W});E!==void 0&&E!==F.value?F.value=E:this.value!==F.value&&(this.value=F.value);return F},
get list(){return this.__meta&&this.__meta.list},_selfChanged:function(F){F&&(this.value=this)},
byKey:function(F){return(new _.aq({type:this.type,key:F})).value}});var K_B;K_B=null;_.OP={properties:{validator:{type:String},invalid:{notify:!0,reflectToAttribute:!0,type:Boolean,value:!1,observer:"_invalidChanged"}},registered:function(){K_B=new _.aq({type:"validator"})},
_invalidChanged:function(){this.invalid?this.setAttribute("aria-invalid","true"):this.removeAttribute("aria-invalid")},
get _validator(){return K_B&&K_B.byKey(this.validator)},hasValidator:function(){return this._validator!=null},
validate:function(F){this.invalid=F===void 0&&this.value!==void 0?!this._getValidity(this.value):!this._getValidity(F);return!this.invalid},
_getValidity:function(F){return this.hasValidator()?this._validator.validate(F):!0}};var FAe={properties:{checked:{type:Boolean,value:!1,reflectToAttribute:!0,notify:!0,observer:"_checkedChanged"},toggles:{type:Boolean,value:!0,reflectToAttribute:!0},value:{type:String,value:"on",observer:"_valueChanged"}},observers:["_requiredChanged(required)"],created:function(){this._hasIronCheckedElementBehavior=!0},
_getValidity:function(){return this.disabled||!this.required||this.checked},
_requiredChanged:function(){this.required?this.setAttribute("aria-required","true"):this.removeAttribute("aria-required")},
_checkedChanged:function(){this.active=this.checked;this.fire("iron-change")},
_valueChanged:function(){if(this.value===void 0||this.value===null)this.value="on"}},WAz=[_.Jj,
_.OP,FAe];_.k3({is:"iron-iconset-svg",_template:null,properties:{name:{type:String,observer:"_nameChanged"},size:{type:Number,value:24},rtlMirroring:{type:Boolean,value:!1},useGlobalRtlAttribute:{type:Boolean,value:!1}},created:function(){this._meta=new _.aq({type:"iconset",key:null,value:null})},
attached:function(){this.style.display="none"},
getIconNames:function(){this._icons=this._createIconMap();return Object.keys(this._icons).map(function(F){return this.name+":"+F},this)},
applyIcon:function(F,W){this.removeIcon(F);if(W=this._cloneIcon(W,this.rtlMirroring&&this._targetIsRTL(F))){var E=_.sg(F.root||F);E.insertBefore(W,E.childNodes[0]);return F._svgIcon=W}return null},
removeIcon:function(F){F._svgIcon&&(_.sg(F.root||F).removeChild(F._svgIcon),F._svgIcon=null)},
_targetIsRTL:function(F){this.__targetIsRTL==null&&(this.useGlobalRtlAttribute?this.__targetIsRTL=(document.body&&document.body.hasAttribute("dir")?document.body:document.documentElement).getAttribute("dir")==="rtl":(F&&F.nodeType!==Node.ELEMENT_NODE&&(F=F.host),this.__targetIsRTL=F&&window.getComputedStyle(F).direction==="rtl"));return this.__targetIsRTL},
_nameChanged:function(){this._meta.value=null;this._meta.key=this.name;this._meta.value=this;this.async(function(){this.fire("iron-iconset-added",this,{node:window})})},
_createIconMap:function(){var F=Object.create(null);_.sg(this).querySelectorAll("[id]").forEach(function(W){F[W.id]=W});
return F},
_cloneIcon:function(F,W){this._icons=this._icons||this._createIconMap();return this._prepareSvgClone(this._icons[F],this.size,W)},
_prepareSvgClone:function(F,W,E){if(F){F=F.cloneNode(!0);var h=document.createElementNS("http://www.w3.org/2000/svg","svg");W=F.getAttribute("viewBox")||"0 0 "+W+" "+W;var d="pointer-events: none; display: block; width: 100%; height: 100%;";E&&F.hasAttribute("mirror-in-rtl")&&(d+="-webkit-transform:scale(-1,1);transform:scale(-1,1);transform-origin:center;");h.setAttribute("viewBox",W);h.setAttribute("preserveAspectRatio","xMidYMid meet");h.setAttribute("focusable","false");h.style&&(h.style.cssText=
d);h.appendChild(F).removeAttribute("id");return h}return null}});var EY_=function(F){this.multi=!1;this.selection=[];this.selectCallback=F};
_.N=EY_.prototype;_.N.get=function(){return this.multi?this.selection.slice():this.selection[0]};
_.N.clear=function(F){this.selection.slice().forEach(function(W){(!F||F.indexOf(W)<0)&&this.setItemSelected(W,!1)},this)};
_.N.isSelected=function(F){return this.selection.indexOf(F)>=0};
_.N.setItemSelected=function(F,W){if(F!=null&&W!==this.isSelected(F)){if(W)this.selection.push(F);else{var E=this.selection.indexOf(F);E>=0&&this.selection.splice(E,1)}this.selectCallback&&this.selectCallback(F,W)}};
_.N.select=function(F){this.multi?this.toggle(F):this.get()!==F&&(this.setItemSelected(this.get(),!1),this.setItemSelected(F,!0))};
_.N.toggle=function(F){this.setItemSelected(F,!this.isSelected(F))};_.l1={properties:{attrForSelected:{type:String,value:null},selected:{type:String,notify:!0},selectedItem:{type:Object,readOnly:!0,notify:!0},activateEvent:{type:String,value:"tap",observer:"_activateEventChanged"},selectable:String,selectedClass:{type:String,value:"iron-selected"},selectedAttribute:{type:String,value:null},fallbackSelection:{type:String,value:null},items:{type:Array,readOnly:!0,notify:!0,value:function(){return[]}},
_excludedLocalNames:{type:Object,value:function(){return{template:1,"dom-bind":1,"dom-if":1,"dom-repeat":1,"ps-dom-if":1,"ps-dom-repeat":1}}}},
observers:["_updateAttrForSelected(attrForSelected)","_updateSelected(selected)","_checkFallback(fallbackSelection)"],created:function(){this._bindFilterItem=this._filterItem.bind(this);this._selection=new EY_(this._applySelection.bind(this))},
attached:function(){this._observer=this._observeItems(this);this._addListener(this.activateEvent)},
detached:function(){this._observer&&_.sg(this).unobserveNodes(this._observer);this._removeListener(this.activateEvent)},
indexOf:function(F){return this.items?this.items.indexOf(F):-1},
select:function(F){this.selected=F},
selectPrevious:function(){var F=this.items.length,W=F-1;this.selected!==void 0&&(W=(Number(this._valueToIndex(this.selected))-1+F)%F);this.selected=this._indexToValue(W)},
selectNext:function(){var F=0;this.selected!==void 0&&(F=(Number(this._valueToIndex(this.selected))+1)%this.items.length);this.selected=this._indexToValue(F)},
selectIndex:function(F){this.select(this._indexToValue(F))},
forceSynchronousItemUpdate:function(){this._observer&&typeof this._observer.flush==="function"?this._observer.flush():this._updateItems()},
get _shouldUpdateSelection(){return this.selected!=null},_checkFallback:function(){this._updateSelected()},
_addListener:function(F){this.listen(this,F,"_activateHandler")},
_removeListener:function(F){this.unlisten(this,F,"_activateHandler")},
_activateEventChanged:function(F,W){this._removeListener(W);this._addListener(F)},
_updateItems:function(){var F=_.sg(this).queryDistributedElements(this.selectable||"*");F=Array.prototype.filter.call(F,this._bindFilterItem);this._setItems(F)},
_updateAttrForSelected:function(){this.selectedItem&&(this.selected=this._valueForItem(this.selectedItem))},
_updateSelected:function(){this._selectSelected(this.selected)},
_selectSelected:function(){if(this.items){var F=this._valueToItem(this.selected);F?this._selection.select(F):this._selection.clear();this.fallbackSelection&&this.items.length&&this._selection.get()===void 0&&(this.selected=this.fallbackSelection)}},
_filterItem:function(F){return!this._excludedLocalNames[F.localName]},
_valueToItem:function(F){return F==null?null:this.items[this._valueToIndex(F)]},
_valueToIndex:function(F){if(this.attrForSelected)for(var W=0,E;E=this.items[W];W++){if(this._valueForItem(E)==F)return W}else return Number(F)},
_indexToValue:function(F){if(this.attrForSelected){if(F=this.items[F])return this._valueForItem(F)}else return F},
_valueForItem:function(F){if(!F)return null;if(!this.attrForSelected)return F=this.indexOf(F),F===-1?null:F;var W=F[RL(this.attrForSelected)];return W!=void 0?W:F.getAttribute(this.attrForSelected)},
_applySelection:function(F,W){this.selectedClass&&this.toggleClass(this.selectedClass,W,F);this.selectedAttribute&&this.toggleAttribute.call(F,this.selectedAttribute,W);this._selectionChange();this.fire("iron-"+(W?"select":"deselect"),{item:F})},
_selectionChange:function(){this._setSelectedItem(this._selection.get())},
_observeItems:function(F){return _.sg(F).observeNodes(function(W){this._updateItems();this._updateSelected();this.fire("iron-items-changed",W,{bubbles:!1,cancelable:!1})})},
_activateHandler:function(F){F=F.target;for(var W=this.items;F&&F!=this;){var E=W.indexOf(F);if(E>=0){W=this._indexToValue(E);this._itemActivate(W,F);break}F=F.parentNode}},
_itemActivate:function(F,W){this.fire("iron-activate",{selected:F,item:W},{cancelable:!0}).defaultPrevented||this.select(F)}};var hpX={properties:{multi:{type:Boolean,value:!1,observer:"multiChanged"},selectedValues:{type:Array,notify:!0,value:function(){return[]}},
selectedItems:{type:Array,readOnly:!0,notify:!0,value:function(){return[]}}},
observers:["_updateSelected(selectedValues.splices)"],select:function(F){this.multi?this._toggleSelected(F):this.selected=F},
multiChanged:function(F){this._selection.multi=F;this._updateSelected()},
get _shouldUpdateSelection(){return this.selected!=null||this.selectedValues!=null&&this.selectedValues.length},_updateAttrForSelected:function(){this.multi?this.selectedItems&&this.selectedItems.length>0&&(this.selectedValues=this.selectedItems.map(function(F){return this._indexToValue(this.indexOf(F))},this).filter(function(F){return F!=null},this)):_.l1._updateAttrForSelected.apply(this)},
_updateSelected:function(){this.multi?this._selectMulti(this.selectedValues):this._selectSelected(this.selected)},
_selectMulti:function(F){F=F||[];F=(this._valuesToItems(F)||[]).filter(function(E){return E!==null&&E!==void 0});
this._selection.clear(F);for(var W=0;W<F.length;W++)this._selection.setItemSelected(F[W],!0);this.fallbackSelection&&!this._selection.get().length&&this._valueToItem(this.fallbackSelection)&&this.select(this.fallbackSelection)},
_selectionChange:function(){var F=this._selection.get();this.multi?(this._setSelectedItems(F),this._setSelectedItem(F.length?F[0]:null)):F!==null&&F!==void 0?(this._setSelectedItems([F]),this._setSelectedItem(F)):(this._setSelectedItems([]),this._setSelectedItem(null))},
_toggleSelected:function(F){var W=this.selectedValues.indexOf(F);W<0?this.push("selectedValues",F):this.splice("selectedValues",W,1)},
_valuesToItems:function(F){return F==null?null:F.map(function(W){return this._valueToItem(W)},this)}},djc=[_.l1,
hpX];var NYB;
_.bB={properties:{focusedItem:{observer:"_focusedItemChanged",readOnly:!0,type:Object},attrForItemTitle:{type:String},disabled:{type:Boolean,value:!1,observer:"_disabledChanged"}},_MODIFIER_KEYS:"Alt AltGraph CapsLock Control Fn FnLock Hyper Meta NumLock OS ScrollLock Shift Super Symbol SymbolLock".split(" "),_SEARCH_RESET_TIMEOUT_MS:1E3,_previousTabIndex:0,hostAttributes:{role:"menu"},observers:["_updateMultiselectable(multi)"],listeners:{focus:"_onFocus",keydown:"_onKeydown","iron-items-changed":"_onIronItemsChanged"},keyBindings:{up:"_onUpKey",
down:"_onDownKey",esc:"_onEscKey","shift+tab:keydown":"_onShiftTabDown"},attached:function(){this._resetTabindices()},
select:function(F){this._defaultFocusAsync&&(this.cancelAsync(this._defaultFocusAsync),this._defaultFocusAsync=null);var W=this._valueToItem(F);W&&W.hasAttribute("disabled")||(this._setFocusedItem(W),hpX.select.apply(this,arguments))},
_resetTabindices:function(){var F=this.multi?this.selectedItems&&this.selectedItems[0]:this.selectedItem;this.items.forEach(function(W){W.setAttribute("tabindex",W===F?"0":"-1");W.setAttribute("aria-selected",this._selection.isSelected(W))},this)},
_updateMultiselectable:function(F){F?this.setAttribute("aria-multiselectable","true"):this.removeAttribute("aria-multiselectable")},
_focusWithKeyboardEvent:function(F){if(this._MODIFIER_KEYS.indexOf(F.key)===-1){this.cancelDebouncer("_clearSearchText");var W=this._searchText||"";W+=(F.key&&F.key.length==1?F.key:String.fromCharCode(F.keyCode)).toLocaleLowerCase();F=W.length;for(var E=0,h;h=this.items[E];E++)if(!h.hasAttribute("disabled")){var d=this.attrForItemTitle||"textContent";d=(h[d]||h.getAttribute(d)||"").trim();if(!(d.length<F)&&d.slice(0,F).toLocaleLowerCase()==W){this._setFocusedItem(h);break}}this._searchText=W;this.debounce("_clearSearchText",
this._clearSearchText,this._SEARCH_RESET_TIMEOUT_MS)}},
_clearSearchText:function(){this._searchText=""},
_focusPrevious:function(){for(var F=this.items.length,W=Number(this.indexOf(this.focusedItem)),E=1;E<F+1;E++){var h=this.items[(W-E+F)%F];if(!h.hasAttribute("disabled")){var d=_.sg(h).getOwnerRoot()||document;this._setFocusedItem(h);if(_.sg(d).activeElement==h)break}}},
_focusNext:function(){for(var F=this.items.length,W=Number(this.indexOf(this.focusedItem)),E=1;E<F+1;E++){var h=this.items[(W+E)%F];if(!h.hasAttribute("disabled")){var d=_.sg(h).getOwnerRoot()||document;this._setFocusedItem(h);if(_.sg(d).activeElement==h)break}}},
_applySelection:function(F,W){W?F.setAttribute("aria-selected","true"):F.setAttribute("aria-selected","false");_.l1._applySelection.apply(this,arguments)},
_focusedItemChanged:function(F,W){W&&W.setAttribute("tabindex","-1");!F||F.hasAttribute("disabled")||this.disabled||(F.setAttribute("tabindex","0"),F.focus())},
_onIronItemsChanged:function(F){F.detail.addedNodes.length&&this._resetTabindices()},
_onShiftTabDown:function(){var F=this.getAttribute("tabindex");_.bB._shiftTabPressed=!0;this._setFocusedItem(null);this.setAttribute("tabindex","-1");this.async(function(){this.setAttribute("tabindex",F);_.bB._shiftTabPressed=!1},1)},
_onFocus:function(F){!_.bB._shiftTabPressed&&(F=_.sg(F).rootTarget,F===this||typeof F.tabIndex==="undefined"||this.isLightDescendant(F))&&(this._defaultFocusAsync=this.async(function(){var W=this.multi?this.selectedItems&&this.selectedItems[0]:this.selectedItem;this._setFocusedItem(null);W?this._setFocusedItem(W):this.items[0]&&this._focusNext()}))},
_onUpKey:function(F){this._focusPrevious();F.detail.keyboardEvent.preventDefault()},
_onDownKey:function(F){this._focusNext();F.detail.keyboardEvent.preventDefault()},
_onEscKey:function(){var F=this.focusedItem;F&&F.blur()},
_onKeydown:function(F){this.keyboardEventMatchesKeys(F,"up down esc")||this._focusWithKeyboardEvent(F);F.stopPropagation()},
_activateHandler:function(F){_.l1._activateHandler.call(this,F);F.stopPropagation()},
_disabledChanged:function(F){F?(this._previousTabIndex=this.hasAttribute("tabindex")?this.tabIndex:0,this.removeAttribute("tabindex")):this.hasAttribute("tabindex")||this.setAttribute("tabindex",this._previousTabIndex)},
_shiftTabPressed:!1};NYB=[djc,_.$5,_.bB];_.Vc_={hostAttributes:{role:"menubar"},keyBindings:{left:"_onLeftKey",right:"_onRightKey"},_onUpKey:function(F){this.focusedItem&&(this.focusedItem.click(),F.detail.keyboardEvent.preventDefault())},
_onDownKey:function(F){this.focusedItem&&(this.focusedItem.click(),F.detail.keyboardEvent.preventDefault())},
get _isRTL(){return window.getComputedStyle(this).direction==="rtl"},_isSpecialKey:function(F){return F.ctrlKey||F.shiftKey||F.altKey||F.metaKey},
_onLeftKey:function(F){this._isSpecialKey(F.detail.keyboardEvent)||(this._isRTL?this._focusNext():this._focusPrevious(),F.detail.keyboardEvent.preventDefault())},
_onRightKey:function(F){this._isSpecialKey(F.detail.keyboardEvent)||(this._isRTL?this._focusPrevious():this._focusNext(),F.detail.keyboardEvent.preventDefault())},
_onKeydown:function(F){this.keyboardEventMatchesKeys(F,"up down left right esc")||this._focusWithKeyboardEvent(F)}};
_.Uje=[NYB,_.Vc_];var RpH;RpH=new Set;_.lB={properties:{_parentResizable:{type:Object,observer:"_parentResizableChanged"},_notifyingDescendant:{type:Boolean,value:!1}},listeners:{"iron-request-resize-notifications":"_onIronRequestResizeNotifications"},created:function(){this._interestedResizables=[];this._boundNotifyResize=this.notifyResize.bind(this);this._boundOnDescendantIronResize=this._onDescendantIronResize.bind(this)},
attached:function(){this._requestResizeNotifications()},
detached:function(){this._parentResizable?this._parentResizable.stopResizeNotificationsFor(this):(RpH.delete(this),window.removeEventListener("resize",this._boundNotifyResize));this._parentResizable=null},
notifyResize:function(){this.isAttached&&(this._interestedResizables.forEach(function(F){this.resizerShouldNotify(F)&&this._notifyDescendant(F)},this),this._fireResize())},
assignParentResizable:function(F){this._parentResizable&&this._parentResizable.stopResizeNotificationsFor(this);(this._parentResizable=F)&&F._interestedResizables.indexOf(this)===-1&&(F._interestedResizables.push(this),F._subscribeIronResize(this))},
stopResizeNotificationsFor:function(F){var W=this._interestedResizables.indexOf(F);W>-1&&(this._interestedResizables.splice(W,1),this._unsubscribeIronResize(F))},
_subscribeIronResize:function(F){F.addEventListener("iron-resize",this._boundOnDescendantIronResize)},
_unsubscribeIronResize:function(F){F.removeEventListener("iron-resize",this._boundOnDescendantIronResize)},
resizerShouldNotify:function(){return!0},
_onDescendantIronResize:function(F){this._notifyingDescendant?F.stopPropagation():bM||this._fireResize()},
_fireResize:function(){this.fire("iron-resize",null,{node:this,bubbles:!1})},
_onIronRequestResizeNotifications:function(F){var W=_.sg(F).rootTarget;W!==this&&(W.assignParentResizable(this),this._notifyDescendant(W),F.stopPropagation())},
_parentResizableChanged:function(F){F&&window.removeEventListener("resize",this._boundNotifyResize)},
_notifyDescendant:function(F){this.isAttached&&(this._notifyingDescendant=!0,F.notifyResize(),this._notifyingDescendant=!1)},
_requestResizeNotifications:function(){if(this.isAttached)if(document.readyState==="loading"){var F=this._requestResizeNotifications.bind(this);document.addEventListener("readystatechange",function E(){document.removeEventListener("readystatechange",E);F()})}else this._findParent(),this._parentResizable?this._parentResizable._interestedResizables.forEach(function(W){W!==this&&W._findParent()},this):(RpH.forEach(function(W){W!==this&&W._findParent()},this),window.addEventListener("resize",this._boundNotifyResize),
this.notifyResize())},
_findParent:function(){this.assignParentResizable(null);this.fire("iron-request-resize-notifications",null,{node:this,bubbles:!0,cancelable:!0});this._parentResizable?RpH.delete(this):RpH.add(this)}};/*

Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
part of the polymer project is also subject to an additional IP rights grant
found at http://polymer.github.io/PATENTS.txt
*/
_.epO={properties:{scrollTarget:{type:HTMLElement,value:function(){return this._defaultScrollTarget}}},
observers:["_scrollTargetChanged(scrollTarget, isAttached)"],_shouldHaveListener:!0,_scrollTargetChanged:function(F,W){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);W&&(F==="document"?this.scrollTarget=this._doc:typeof F==="string"?this.scrollTarget=(W=this.domHost)&&W.$?W.$[F]:_.sg(this.ownerDocument).querySelector("#"+F):this._isValidScrollTarget()&&(this._oldScrollTarget=F,this._toggleScrollListener(this._shouldHaveListener,F)))},
_scrollHandler:function(){},
get _defaultScrollTarget(){return this._doc},get _doc(){return this.ownerDocument.documentElement},get _scrollTop(){return this._isValidScrollTarget()?this.scrollTarget===this._doc?window.pageYOffset:this.scrollTarget.scrollTop:0},get _scrollLeft(){return this._isValidScrollTarget()?this.scrollTarget===this._doc?window.pageXOffset:this.scrollTarget.scrollLeft:0},set _scrollTop(F){this.scrollTarget===this._doc?window.scrollTo(window.pageXOffset,F):this._isValidScrollTarget()&&(this.scrollTarget.scrollTop=
F)},set _scrollLeft(F){this.scrollTarget===this._doc?window.scrollTo(F,window.pageYOffset):this._isValidScrollTarget()&&(this.scrollTarget.scrollLeft=F)},scroll:function(F,W){if(typeof F==="object"){var E=F.left;W=F.top}else E=F;E=E||0;W=W||0;this.scrollTarget===this._doc?window.scrollTo(E,W):this._isValidScrollTarget()&&(this.scrollTarget.scrollLeft=E,this.scrollTarget.scrollTop=W)},
get _scrollTargetWidth(){return this._isValidScrollTarget()?this.scrollTarget===this._doc?window.innerWidth:this.scrollTarget.offsetWidth:0},get _scrollTargetHeight(){return this._isValidScrollTarget()?this.scrollTarget===this._doc?window.innerHeight:this.scrollTarget.offsetHeight:0},_isValidScrollTarget:function(){return this.scrollTarget instanceof HTMLElement},
_toggleScrollListener:function(F,W){W=W===this._doc?window:W;F?this._boundScrollHandler||(this._boundScrollHandler=this._scrollHandler.bind(this),W.addEventListener("scroll",this._boundScrollHandler)):this._boundScrollHandler&&(W.removeEventListener("scroll",this._boundScrollHandler),this._boundScrollHandler=null)},
toggleScrollListener:function(F){this._shouldHaveListener=F;this._toggleScrollListener(F,this.scrollTarget)}};_.k3({is:"iron-selector",_template:null,behaviors:[djc]});var nH={properties:{animationTiming:{type:Object,value:function(){return{duration:500,easing:"cubic-bezier(0.4, 0, 0.2, 1)",fill:"both"}}}},
isNeonAnimation:!0,created:function(){document.body.animate||console.warn("No web animations detected. This element will not function without a web animations polyfill.")},
timingFromConfig:function(F){if(F.timing)for(var W in F.timing)this.animationTiming[W]=F.timing[W];return this.animationTiming},
setPrefixedProperty:function(F,W,E){for(var h={transform:["webkitTransform"],transformOrigin:["mozTransformOrigin","webkitTransformOrigin"]}[W],d,V=0;d=h[V];V++)F.style[d]=E;F.style[W]=E},
complete:function(){}};_.k3({is:"fade-in-animation",_template:null,behaviors:[nH],configure:function(F){return this._effect=new KeyframeEffect(F.node,[{opacity:"0"},{opacity:"1"}],this.timingFromConfig(F))}});_.k3({is:"fade-out-animation",_template:null,behaviors:[nH],configure:function(F){return this._effect=new KeyframeEffect(F.node,[{opacity:"1"},{opacity:"0"}],this.timingFromConfig(F))}});var Mci=[{properties:{animationConfig:{type:Object},entryAnimation:{observer:"_entryAnimationChanged",type:String},exitAnimation:{observer:"_exitAnimationChanged",type:String}},_entryAnimationChanged:function(){this.animationConfig=this.animationConfig||{};this.animationConfig.entry=[{name:this.entryAnimation,node:this}]},
_exitAnimationChanged:function(){this.animationConfig=this.animationConfig||{};this.animationConfig.exit=[{name:this.exitAnimation,node:this}]},
_copyProperties:function(F,W){for(var E in W)F[E]=W[E]},
_cloneConfig:function(F){var W={isClone:!0};this._copyProperties(W,F);return W},
_getAnimationConfigRecursive:function(F,W,E){if(this.animationConfig)if(this.animationConfig.value&&typeof this.animationConfig.value==="function")this._warn(this._logf("playAnimation","Please put 'animationConfig' inside of your components 'properties' object instead of outside of it."));else{var h=F?this.animationConfig[F]:this.animationConfig;Array.isArray(h)||(h=[h]);if(h)for(var d,V=0;d=h[V];V++)if(d.animatable)d.animatable._getAnimationConfigRecursive(d.type||F,W,E);else if(d.id){var R=W[d.id];
R?(R.isClone||(W[d.id]=this._cloneConfig(R),R=W[d.id]),this._copyProperties(R,d)):W[d.id]=d}else E.push(d)}},
getAnimationConfig:function(F){var W={},E=[];this._getAnimationConfigRecursive(F,W,E);for(var h in W)E.push(W[h]);return E}},
{_configureAnimations:function(F){var W=[],E=[];if(F.length>0)for(var h,d=0;h=F[d];d++){var V=document.createElement(h.name);if(V.isNeonAnimation){var R=null;V.configure||(V.configure=function(){return null});
R=V.configure(h);E.push({result:R,config:h})}else console.warn(this.is+":",h.name,"not found!")}for(F=0;F<E.length;F++){R=E[F].result;h=E[F].config;try{typeof R.cancel!="function"&&(R=document.timeline.play(R))}catch(M){R=null,console.warn("Couldnt play","(",h.name,").",M)}R&&W.push({neonAnimation:V,config:h,animation:R})}return W},
_shouldComplete:function(F){for(var W=!0,E=0;E<F.length;E++)if(F[E].animation.playState!="finished"){W=!1;break}return W},
_complete:function(F){for(var W=0;W<F.length;W++)F[W].neonAnimation.complete(F[W].config);for(W=0;W<F.length;W++)F[W].animation.cancel()},
playAnimation:function(F,W){var E=this.getAnimationConfig(F);if(E){this._active=this._active||{};this._active[F]&&(this._complete(this._active[F]),delete this._active[F]);var h=this._configureAnimations(E);if(h.length==0)this.fire("neon-animation-finish",W,{bubbles:!1});else for(this._active[F]=h,E=0;E<h.length;E++)h[E].animation.onfinish=function(){this._shouldComplete(h)&&(this._complete(h),delete this._active[F],this.fire("neon-animation-finish",W,{bubbles:!1}))}.bind(this)}},
cancelAnimation:function(){for(var F in this._active){var W=this._active[F],E;for(E in W)W[E].animation&&W[E].animation.cancel&&W[E].animation.cancel()}this._active={}}}];var QO=function(F,W){F=Error.call(this,F);this.message=F.message;"stack"in F&&(this.stack=F.stack);this.arg=W;this.name=this.constructor.name;this.constructor=QO;this.__proto__=QO.prototype};
_.k(QO,Error);var gYO=WD(function(F){var W=function(){return F.apply(this,arguments)||this};
_.k(W,F);W.prototype._marshalArgs=function(E,h,d){h=F.prototype._marshalArgs.call(this,E,h,d);if(this._legacyUndefinedCheck&&h.length>1)for(d=0;d<h.length;d++)if(h[d]===void 0||E[d].wildcard&&h[d].base===void 0)throw E=E[d].name,new QO("Argument '"+E+"' is undefined.",E);return h};
W.prototype._addPropertyEffect=function(E,h,d){return F.prototype._addPropertyEffect.call(this,E,h,RDo(d,d&&d.info&&d.info.methodName))};
W._addTemplatePropertyEffect=function(E,h,d){return F._addTemplatePropertyEffect.call(this,E,h,RDo(d))};
return W}),Q3_=_.k3.Class;
_.k3.Class=function(F,W){return Q3_(F,function(E){return W?W(gYO(E)):gYO(E)})};
var zpa=WD(function(F){var W=gYO(F);F=function(){return W.apply(this,arguments)||this};
_.k(F,W);_.Sn.Object.defineProperties(F.prototype,{_legacyUndefinedCheck:{configurable:!0,enumerable:!0,get:function(){return this._methodHost&&this._methodHost._legacyUndefinedCheck}}});
return F}),tca=nX.mixin;
nX.mixin=tca?function(F){return zpa(tca(F))}:zpa;
console.info("LegacyDataMixin will be applied to all legacy elements.\nSet `_legacyUndefinedCheck: true` on element class to enable.");_.yf=_.Hi.IronButtonState;var Vdb=OR;/*

Math.uuid.js (v1.4)
http://www.broofa.com
mailto:robert@broofa.com
Copyright (c) 2010 Robert Kieffer
Dual licensed under the MIT and GPL licenses.
*/
var BYU;_.CzO="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split("");BYU=function(){var F=[],W;var E=E||_.CzO.length;for(W=0;W<8;W++)F[W]=_.CzO[0|Math.random()*E];return F.join("")};var QZe=function(){return Math.random().toString(36).substring(7).split("").join(".")},gib="@@redux/INIT"+QZe(),CjW="@@redux/REPLACE"+QZe();var BHe=typeof Symbol==="function"&&Symbol.observable||"@@observable";var vYM=typeof window!=="undefined"&&typeof document!=="undefined"&&window.document===document;var IR_="top right bottom left width height size weight".split(" "),cbO=typeof MutationObserver!=="undefined",DjB=vYM&&HTMLElement.prototype.attachShadow&&HTMLElement.prototype.attachShadow.toString().indexOf("[native code]")!==-1?HTMLElement.prototype.attachShadow:null,xjM=function(){this.mutationEventsAdded_=this.JSC$9564_connected_=!1;this.mutationsObserver_=null;this.observers_=[];this.onTransitionEnd_=this.onTransitionEnd_.bind(this);this.refresh=viI(this.refresh.bind(this))},k_a=function(F,
W){var E=F.observers_;
W=E.indexOf(W);~W&&E.splice(W,1);!E.length&&F.JSC$9564_connected_&&vYM&&F.JSC$9564_connected_&&(document.removeEventListener("transitionend",F.onTransitionEnd_),window.removeEventListener("resize",F.refresh),F.mutationsObserver_&&(F.mutationsObserver_.disconnect(),DjB&&(HTMLElement.prototype.attachShadow=DjB)),F.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",F.refresh),F.mutationsObserver_=null,F.mutationEventsAdded_=!1,F.JSC$9564_connected_=!1)};
xjM.prototype.refresh=function(){AbX(this)&&this.refresh()};
var AbX=function(F){F=F.observers_.filter(function(W){return s3T(W),W.activeObservations_.length>0});
F.forEach(function(W){return LAO(W)});
return F.length>0},qdi=function(F){if(vYM&&!F.JSC$9564_connected_){document.addEventListener("transitionend",F.onTransitionEnd_);
window.addEventListener("resize",F.refresh);if(cbO){F.mutationsObserver_=new MutationObserver(F.refresh);var W={attributes:!0,childList:!0,characterData:!0,subtree:!0};F.mutationsObserver_.observe(document,W);DjB&&(function d(h){var V=h.shadowRoot;V&&(F.mutationsObserver_.observe(V,W),d(V));for(h=h.firstElementChild;h;)d(h),h=h.nextElementSibling}(document),HTMLElement.prototype.attachShadow=function(){var h=DjB.apply(this,_.Dd.apply(0,arguments));
F.mutationsObserver_.observe(h,W);return h})}else document.addEventListener("DOMSubtreeModified",F.refresh),F.mutationEventsAdded_=!0;
F.JSC$9564_connected_=!0}};
xjM.prototype.onTransitionEnd_=function(F){var W=F.propertyName===void 0?"":F.propertyName;IR_.some(function(E){return!!~W.indexOf(E)})&&this.refresh()};
var $jO=null;var ZQT=function(F,W){for(var E=_.U(Object.keys(W)),h=E.next();!h.done;h=E.next())h=h.value,Object.defineProperty(F,h,{value:W[h],enumerable:!1,writable:!1,configurable:!0})};var jM=function(F){var W;return(F==null?void 0:(W=F.ownerDocument)==null?void 0:W.defaultView)||globalThis};var Xri={x:0,y:0,width:0,height:0},HQe=typeof SVGGraphicsElement!=="undefined"?function(F){return F instanceof jM(F).SVGGraphicsElement}:function(F){return F instanceof jM(F).SVGElement&&typeof F.getBBox==="function"};var PzX=function(F){this.broadcastHeight=this.broadcastWidth=0;this.contentRect_={x:0,y:0,width:0,height:0};this.target=F};
PzX.prototype.isActive=function(){var F=this.target;if(vYM)if(HQe(F)){var W=F.getBBox();W={x:0,y:0,width:W.width,height:W.height}}else{var E=F.clientWidth,h=F.clientHeight;if(E||h){var d=jM(F).getComputedStyle(F);W=tR(d["padding-top"]);var V=tR(d["padding-left"]),R=V+tR(d["padding-right"]),M=W+tR(d["padding-bottom"]),g=tR(d.width),t=tR(d.height);d.boxSizing==="border-box"&&(Math.round(g+R)!==E&&(g-=IEr(d,"left","right")+R),Math.round(t+M)!==h&&(t-=IEr(d,"top","bottom")+M));F!==jM(F).document.documentElement&&
(F=Math.round(g+R)-E,h=Math.round(t+M)-h,Math.abs(F)!==1&&(g-=F),Math.abs(h)!==1&&(t-=h));W={x:V,y:W,width:g,height:t}}else W=Xri}else W=Xri;this.contentRect_=W;return W.width!==this.broadcastWidth||W.height!==this.broadcastHeight};var Jb_=function(F,W){var E=W.x;var h=W.y;var d=W.width;W=W.height;var V=Object.create((typeof DOMRectReadOnly!=="undefined"?DOMRectReadOnly:Object).prototype);ZQT(V,{x:E,y:h,width:d,height:W,top:h,right:E+d,bottom:W+h,left:E});ZQT(this,{target:F,contentRect:V})};var aRX=function(F,W){var E=$jO;this.activeObservations_=[];this.observations_=new Map;if(typeof F!=="function")throw new TypeError("Qe");this.callback_=F;this.controller_=E;this.callbackCtx_=W};
aRX.prototype.observe=function(F){if(F===void 0)throw new TypeError("Re");if(typeof Element!=="undefined"&&Element instanceof Object){if(!(F instanceof jM(F).Element))throw new TypeError("Se");var W=this.observations_;W.has(F)||(W.set(F,new PzX(F)),F=this.controller_,~F.observers_.indexOf(this)||F.observers_.push(this),F.JSC$9564_connected_||qdi(F),this.controller_.refresh())}};
aRX.prototype.unobserve=function(F){if(F===void 0)throw new TypeError("Re");if(typeof Element!=="undefined"&&Element instanceof Object){if(!(F instanceof jM(F).Element))throw new TypeError("Se");var W=this.observations_;W.has(F)&&(W.delete(F),W.size||k_a(this.controller_,this))}};
aRX.prototype.disconnect=function(){this.activeObservations_.splice(0);this.observations_.clear();k_a(this.controller_,this)};
var s3T=function(F){F.activeObservations_.splice(0);F.observations_.forEach(function(W){W.isActive()&&F.activeObservations_.push(W)})},LAO=function(F){if(F.activeObservations_.length>0){var W=F.callbackCtx_,E=F.activeObservations_.map(function(h){var d=h.target,V=h.contentRect_;
h.broadcastWidth=V.width;h.broadcastHeight=V.height;return new Jb_(d,V)});
F.callback_.call(W,E,W);F.activeObservations_.splice(0)}};var iB=function(F){if(!(this instanceof iB))throw new TypeError("Te");if(!arguments.length)throw new TypeError("Re");$jO||($jO=new xjM);this.observer_=new aRX(F,this)};
iB.prototype.observe=function(F){this.observer_.observe(F)};
iB.prototype.unobserve=function(F){this.observer_.unobserve(F)};
iB.prototype.disconnect=function(){this.observer_.disconnect()};var Dtn=typeof globalThis.ResizeObserver!=="undefined"?globalThis.ResizeObserver:iB;var qVG="aLink accessKey allowFullscreen bgColor cellPadding cellSpacing codeBase codeType contentEditable crossOrigin dateTime dirName formAction formEnctype formMethod formNoValidate formTarget frameBorder innerHTML innerText inputMode isMap longDesc marginHeight marginWidth maxLength mediaGroup minLength noHref noResize noShade noValidate noWrap nodeValue outerHTML outerText readOnly tabIndex textContent trueSpeed useMap vAlign vLink valueAsDate valueAsNumber valueType".split(" "),LNn={accept_charset:"acceptCharset",
"char":"ch",charoff:"chOff",checked:"defaultChecked","class":"className","for":"htmlFor",http_equiv:"httpEquiv",muted:"defaultMuted",selected:"defaultSelected",value:"defaultValue"},sZo=null,cfn=null;var $aI={},ZcI=RegExp("^(?!(?:annotation-xml|color-profile|font-face|font-face(?:-(?:src|uri|format|name))?|missing-glyph)$)[a-z][a-z.0-9_\u00b7\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u037d\u200c\u200d\u203f-\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\udfff\uf900-\ufdcf\ufdf0-\ufffd]*-[\\-a-z.0-9_\u00b7\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u037d\u200c\u200d\u203f-\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\udfff\uf900-\ufdcf\ufdf0-\ufffd]*$");var OcR={text:1},Pjk={audio:{currentTime:1,srcObject:1},video:{currentTime:1,srcObject:1}};var fRB=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,OQi={CONSTANT:{isUnwrappable:function(F){return F instanceof lf},
unwrap:bTe},JAVASCRIPT:{isUnwrappable:function(F){return F instanceof _.fu},
unwrap:bi},HTML:{isUnwrappable:function(F){return F instanceof qi},
unwrap:function(F){return X3(F)}},
RESOURCE_URL:{isUnwrappable:function(F){return F instanceof UW},
unwrap:_.e9},STRING:{isUnwrappable:function(F){return F instanceof Object},
unwrap:function(F){return String(F)}},
STYLE:{isUnwrappable:function(F){return typeof F==="string"},
unwrap:function(F){return F}},
URL:{isUnwrappable:function(F){return zy(F)},
unwrap:_.ty}},bQU={CONSTANT:bcY,JAVASCRIPT:bcY,HTML:function(F){F=F instanceof qi?F:$w(String(F).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;"));return X3(F)},
RESOURCE_URL:bcY,STRING:String,STYLE:bcY,URL:function(F,W){F=fRB.test(F)?F:void 0;return F===void 0?W:F}};var wYG=/(?!,)([^\t\n\f\r ]+)(?:[\t\n\f\r ]+([.0-9+\-]+[a-z]?))?/gi,lER=/[\t\n\f\r ]+/,yfb=/[\t\n\f\r ,]+/g,icI=function(F,W,E){return E},Ik={},lRi=function(){var F=function(){var h={createHTML:function(){return"zClosurez"},
createScript:function(){return" /*zClosurez*/ "},
createScriptURL:function(){return"about:invalid#zClosurez"}};
return typeof trustedTypes!=="undefined"?trustedTypes.createPolicy("polymer_resin",h):h}(),W=F.createHTML(""),E=F.createScript("");
F=F.createScriptURL("");return{INNOCUOUS_STRING:W,INNOCUOUS_SCRIPT:E,INNOCUOUS_URL:F}}(),vf=lRi.INNOCUOUS_STRING,YVY=lRi.INNOCUOUS_SCRIPT,GAY=lRi.INNOCUOUS_URL;var nYi=function(F){var W=ucn(F);return function(E,h,d,V){return V?W(V,h,d,E):vf}}({reportHandler:function(F,W){if(F)try{throw Error(W);
}catch(E){_.a_(E)}},
safeTypesBridge:function(F,W,E){var h=OQi[W];return h.isUnwrappable(F)&&(h=h.unwrap(F,E),h!==E)?h:(0,bQU[W])(String(F),E)},
allowedIdentifierPrefixes:[""]});if(cs!==void 0)throw Error("Ue");cs=nYi;if(cs!==nYi)throw Error("Ve");cf("Injectable",[]);var xSk=cf("Inject",[["token",void 0]]),Akr=cf("Optional",[]);cf("Injectable",[]);var sYk=cf("Self",[]),LZR=cf("SkipSelf",[]);cf("Host",[]);var ybe={},j3c=function(){};
j3c.prototype.resolve=function(){throw Error("Xe");};
j3c.prototype.addProvider=function(){throw Error("Xe");};var cko=Function;var iQB=/^function\s+\S+\(\)\s*{\s*("use strict";)?\s*(return\s+)?\S+\.apply\(this,\s*arguments\)/,rbU=function(){this._reflect=window.Reflect};
_.N=rbU.prototype;_.N.factory=function(F){return function(){return new (Function.prototype.bind.apply(F,[null].concat(_.x9(_.Dd.apply(0,arguments)))))}};
_.N._zipTypesAndAnnotations=function(F,W){var E=typeof F==="undefined"?Array(W.length):Array(F.length);for(var h=0;h<E.length;h++)E[h]=typeof F==="undefined"?[]:F[h]!=Object?[F[h]]:[],W&&pYG(W[h])&&(E[h]=E[h].concat(W[h]));return E};
_.N._ownParameters=function(F,W){if(iQB.exec(F.toString()))return null;if(F.parameters&&F.parameters!==W.parameters)return F.parameters;var E=F.ctorParameters;return E&&E!==W.ctorParameters?(W=typeof E==="function"?E():E,F=W.map(function(h){return h&&h.type}),W=W.map(function(h){return h&&KNb(h.decorators)}),this._zipTypesAndAnnotations(F,W)):pYG(this._reflect)&&pYG(this._reflect.getOwnMetadata)&&(W=this._reflect.getOwnMetadata("parameters",F),(E=this._reflect.getOwnMetadata("design:paramtypes",F))||
W)?this._zipTypesAndAnnotations(E,W):Array(F.length).fill(void 0)};
_.N.parameters=function(F){if(!F.prototype)return[];var W=Object.getPrototypeOf(F.prototype).constructor;(F=this._ownParameters(F,W))||W===Object||(F=this.parameters(W));return F||[]};
_.N._ownAnnotations=function(F,W){if(F.annotations&&F.annotations!==W.annotations)return F=F.annotations,typeof F==="function"&&F.annotations&&(F=F.annotations),F;if(F.decorators&&F.decorators!==W.decorators)return KNb(F.decorators);if(this._reflect&&this._reflect.getOwnMetadata)return this._reflect.getOwnMetadata("annotations",F)};
_.N.annotations=function(F){var W=Object.getPrototypeOf(F.prototype).constructor;F=this._ownAnnotations(F,W)||[];return(W!==Object?this.annotations(W):[]).concat(F)};
_.N._ownPropMetadata=function(F,W){if(F.propMetadata&&F.propMetadata!==W.propMetadata)return F=F.propMetadata,typeof F==="function"&&F.propMetadata&&(F=F.propMetadata),F;if(F.propDecorators&&F.propDecorators!==W.propDecorators){var E=F.propDecorators,h={};Object.keys(E).forEach(function(d){h[d]=KNb(E[d])});
return h}if(this._reflect&&this._reflect.getOwnMetadata)return this._reflect.getOwnMetadata("propMetadata",F)};
_.N.propMetadata=function(F){var W=Object.getPrototypeOf(F.prototype).constructor,E={};if(W!==Object){var h=this.propMetadata(W);Object.keys(h).forEach(function(V){E[V]=h[V]})}var d=this._ownPropMetadata(F,W);
d&&Object.keys(d).forEach(function(V){var R=[];E.hasOwnProperty(V)&&R.push.apply(R,_.x9(E[V]));R.push.apply(R,_.x9(d[V]));E[V]=R});
return E};
_.N.getter=function(F){return function(W){return W[F]}};
_.N.method=function(F){return function(W,E){if(!W[F])throw Error("Ye`"+F);return W[F].apply(W,E)}};var TYa=function(){};var oYu=function(F){this.reflectionCapabilities=F};
_.k(oYu,TYa);_.N=oYu.prototype;_.N.factory=function(F){return this.reflectionCapabilities.factory(F)};
_.N.parameters=function(F){return this.reflectionCapabilities.parameters(F)};
_.N.annotations=function(F){return this.reflectionCapabilities.annotations(F)};
_.N.propMetadata=function(F){return this.reflectionCapabilities.propMetadata(F)};
_.N.getter=function(F){return this.reflectionCapabilities.getter(F)};
_.N.method=function(F){return this.reflectionCapabilities.method(F)};var R4w=new oYu(new rbU);var rN=function(F,W){this.token=F;this.id=W;if(F===void 0||F===null)throw Error("cf");};
_.Sn.Object.defineProperties(rN.prototype,{displayName:{configurable:!0,enumerable:!0,get:function(){return DU(this.token)}}});
_.Sn.Object.defineProperties(rN,{JSC$9606_numberOfKeys:{configurable:!0,enumerable:!0,get:function(){return AR.JSC$9610_numberOfKeys}}});
var G_c=function(){this._allKeys=new Map};
G_c.prototype.get=function(F){if(F instanceof rN)return F;if(this._allKeys.has(F))return this._allKeys.get(F);var W=new rN(F,rN.JSC$9606_numberOfKeys);this._allKeys.set(F,W);return W};
_.Sn.Object.defineProperties(G_c.prototype,{JSC$9610_numberOfKeys:{configurable:!0,enumerable:!0,get:function(){return this._allKeys.size}}});
var AR=new G_c;var qnr=function(F,W,E){this.key=F;this.optional=W;this.visibility=E},MPY=function(F){return new qnr(F,!1,null)},QYr=[],Cko=function(F,W,E){this.key=F;
this.resolvedFactories=W;this.multiProvider=E},z4Y=function(F,W,E,h){this.factory=F;
this.dependencies=W;this.providerClass=E;this.providerValue=h};var TN={},oq=function(F,W){this.constructedKeyIds={};this.providers=[];this.keyIds=[];this.objs=[];this.keyIdToIndex=new Map;this.parent=W===void 0?null:W;F=_.U(F);for(W=F.next();!W.done;W=F.next())this.addProvider(W.value)};
_.N=oq.prototype;_.N.addProvider=function(F){this.keyIdToIndex.set(F.key.id,this.keyIds.length);this.providers.push(F);this.keyIds.push(F.key.id);this.objs.push(TN)};
_.N.resolve=function(F,W){W=W===void 0?ybe:W;return this._getByKey(AR.get(xx(F)),null,W)};
_.N._new=function(F){if(this.constructedKeyIds[F.key.id])throw NaR(this,F.key);this.constructedKeyIds[F.key.id]=!0;return this._instantiateProvider(F)};
_.N._instantiateProvider=function(F){if(F.multiProvider){for(var W=Array(F.resolvedFactories.length),E=0;E<F.resolvedFactories.length;++E)W[E]=this._instantiate(F,F.resolvedFactories[E]);return W}return this._instantiate(F,F.resolvedFactories[0])};
_.N._instantiate=function(F,W){var E=this,h=W.factory;try{var d=W.dependencies.map(function(R){return E._getByReflectiveDependency(R)})}catch(R){throw R.addKey&&R.addKey(this,F.key),R;
}try{var V=h.apply(null,_.x9(d))}catch(R){throw VPk(this,R,F.key);}return V};
_.N._getByReflectiveDependency=function(F){return this._getByKey(F.key,F.visibility,F.optional?null:ybe)};
_.N._getByKey=function(F,W,E){return F===Yde?this:W instanceof sYk?this._getByKeySelf(F,E):this._getByKeyDefault(F,E,W)};
_.N._getObjByKeyId=function(F){for(var W=0;W<this.keyIds.length;W++)if(this.keyIds[W]===F)return this.objs[W]===TN&&(this.objs[W]=this._new(this.providers[W])),this.objs[W];return TN};
_.N._throwOrNull=function(F,W){if(W!==ybe)return W;throw dSb(this,F);};
_.N._getByKeySelf=function(F,W){var E=this._getObjByKeyId(F.id);return E!==TN?E:this._throwOrNull(F,W)};
_.N._getByKeyDefault=function(F,W,E){for(var h=E=E instanceof LZR?this.parent:this;E instanceof oq;){var d=E._getObjByKeyId(F.id);if(d!==TN)return d;E=E.parent}d=void 0;if(E!==null)try{var V=E.resolve(F.token,W);if(V!==TN)return V}catch(R){d=R}if(!(h instanceof oq&&Zve(F.token))){if(d)throw d;return this._throwOrNull(F,W)}for(V=h;V.parent instanceof oq;)V=V.parent;V.addProvider(Baw({provide:F.token,useClass:F.token}));return V.resolve(F.token,W)};
_.N.toString=function(){return this.displayName};
_.Sn.Object.defineProperties(oq.prototype,{displayName:{configurable:!0,enumerable:!0,get:function(){return"ReflectiveInjector(providers: ["+$Sn(this,function(F){return' "'+F.key.displayName+'" '}).join(", ")+"])"}}});
var Yde=AR.get(xx(j3c));(function(){let module=undefined;let exports=undefined;let define=undefined;var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_ES6=!1;$jscomp.ASSUME_ES2020=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.ISOLATE_POLYFILLS=!1;$jscomp.FORCE_POLYFILL_PROMISE=!1;$jscomp.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION=!1;$jscomp.INSTRUMENT_ASYNC_CONTEXT=!0;$jscomp.defineProperty=$jscomp.ASSUME_ES5||typeof Object.defineProperties=="function"?Object.defineProperty:
function(e,n,m){if(e==Array.prototype||e==Object.prototype)return e;e[n]=m.value;return e};
$jscomp.getGlobal=function(e){e=["object"==typeof globalThis&&globalThis,e,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var n=0;n<e.length;++n){var m=e[n];if(m&&m.Math==Math)return m}throw Error("Cannot find global object");};
$jscomp.global=$jscomp.ASSUME_ES2020?globalThis:$jscomp.getGlobal(this);$jscomp.IS_SYMBOL_NATIVE=typeof Symbol==="function"&&typeof Symbol("x")==="symbol";$jscomp.TRUST_ES6_POLYFILLS=!$jscomp.ISOLATE_POLYFILLS||$jscomp.IS_SYMBOL_NATIVE;$jscomp.polyfills={};$jscomp.propertyToPolyfillSymbol={};$jscomp.POLYFILL_PREFIX="$jscp$";$jscomp.polyfill=function(e,n,m,b){n&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(e,n,m,b):$jscomp.polyfillUnisolated(e,n,m,b))};
$jscomp.polyfillUnisolated=function(e,n){var m=$jscomp.global;e=e.split(".");for(var b=0;b<e.length-1;b++){var q=e[b];if(!(q in m))return;m=m[q]}e=e[e.length-1];b=m[e];n=n(b);n!=b&&n!=null&&$jscomp.defineProperty(m,e,{configurable:!0,writable:!0,value:n})};
$jscomp.polyfillIsolated=function(e,n,m){var b=e.split("."),q=b.length===1;e=b[0];e=!q&&e in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var v=0;v<b.length-1;v++){var t=b[v];if(!(t in e))return;e=e[t]}b=b[b.length-1];m=$jscomp.IS_SYMBOL_NATIVE&&m==="es6"?e[b]:null;n=n(m);n!=null&&(q?$jscomp.defineProperty($jscomp.polyfills,b,{configurable:!0,writable:!0,value:n}):n!==m&&($jscomp.propertyToPolyfillSymbol[b]===void 0&&(q=Math.random()*1E9>>>0,$jscomp.propertyToPolyfillSymbol[b]=$jscomp.IS_SYMBOL_NATIVE?
$jscomp.global.Symbol(b):$jscomp.POLYFILL_PREFIX+q+"$"+b),q=$jscomp.propertyToPolyfillSymbol[b],$jscomp.defineProperty(e,q,{configurable:!0,writable:!0,value:n})))};
$jscomp.checkEs6ConformanceViaProxy=function(){try{var e={},n=Object.create(new $jscomp.global.Proxy(e,{get:function(m,b,q){return m==e&&b=="q"&&q==n}}));
return n.q===!0}catch(m){return!1}};
$jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS=!1;$jscomp.ES6_CONFORMANCE=$jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS&&$jscomp.checkEs6ConformanceViaProxy();$jscomp.arrayIteratorImpl=function(e){var n=0;return function(){return n<e.length?{done:!1,value:e[n++]}:{done:!0}}};
$jscomp.arrayIterator=function(e){return{next:$jscomp.arrayIteratorImpl(e)}};
$jscomp.initSymbol=function(){};
$jscomp.polyfill("Symbol",function(e){if(e)return e;var n=function(v,t){this.$jscomp$symbol$id_=v;$jscomp.defineProperty(this,"description",{configurable:!0,writable:!0,value:t})};
n.prototype.toString=function(){return this.$jscomp$symbol$id_};
e=Math.random()*1E9>>>0;var m="jscomp_symbol_"+e+"_",b=0,q=function(v){if(this instanceof q)throw new TypeError("Symbol is not a constructor");return new n(m+(v||"")+"_"+b++,v)};
return q},"es6","es3");
$jscomp.polyfill("Symbol.iterator",function(e){if(e)return e;e=Symbol("Symbol.iterator");for(var n="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),m=0;m<n.length;m++){var b=$jscomp.global[n[m]];typeof b==="function"&&typeof b.prototype[e]!="function"&&$jscomp.defineProperty(b.prototype,e,{configurable:!0,writable:!0,value:function(){return $jscomp.iteratorPrototype($jscomp.arrayIteratorImpl(this))}})}return e},"es6",
"es3");
$jscomp.iteratorPrototype=function(e){e={next:e};e[Symbol.iterator]=function(){return this};
return e};
$jscomp.makeIterator=function(e){var n=typeof Symbol!="undefined"&&Symbol.iterator&&e[Symbol.iterator];if(n)return n.call(e);if(typeof e.length=="number")return $jscomp.arrayIterator(e);throw Error(String(e)+" is not an iterable or ArrayLike");};
$jscomp.owns=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)};
$jscomp.polyfill("WeakMap",function(e){function n(){if(!e||!Object.seal)return!1;try{var f=Object.seal({}),h=Object.seal({}),k=new e([[f,2],[h,3]]);if(k.get(f)!=2||k.get(h)!=3)return!1;k.delete(f);k.set(h,4);return!k.has(f)&&k.get(h)==4}catch(r){return!1}}
function m(){}
function b(f){var h=typeof f;return h==="object"&&f!==null||h==="function"}
function q(f){if(!$jscomp.owns(f,t)){var h=new m;$jscomp.defineProperty(f,t,{value:h})}}
function v(f){if(!$jscomp.ISOLATE_POLYFILLS){var h=Object[f];h&&(Object[f]=function(k){if(k instanceof m)return k;Object.isExtensible(k)&&q(k);return h(k)})}}
if($jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS){if(e&&$jscomp.ES6_CONFORMANCE)return e}else if(n())return e;var t="$jscomp_hidden_"+Math.random();v("freeze");v("preventExtensions");v("seal");var A=0,d=function(f){this.id_=(A+=Math.random()+1).toString();if(f){f=$jscomp.makeIterator(f);for(var h;!(h=f.next()).done;)h=h.value,this.set(h[0],h[1])}};
d.prototype.set=function(f,h){if(!b(f))throw Error("Invalid WeakMap key");q(f);if(!$jscomp.owns(f,t))throw Error("WeakMap key fail: "+f);f[t][this.id_]=h;return this};
d.prototype.get=function(f){return b(f)&&$jscomp.owns(f,t)?f[t][this.id_]:void 0};
d.prototype.has=function(f){return b(f)&&$jscomp.owns(f,t)&&$jscomp.owns(f[t],this.id_)};
d.prototype.delete=function(f){return b(f)&&$jscomp.owns(f,t)&&$jscomp.owns(f[t],this.id_)?delete f[t][this.id_]:!1};
return d},"es6","es3");
$jscomp.MapEntry=function(){};
$jscomp.polyfill("Map",function(e){function n(){if($jscomp.ASSUME_NO_NATIVE_MAP||!e||typeof e!="function"||!e.prototype.entries||typeof Object.seal!="function")return!1;try{var d=Object.seal({x:4}),f=new e($jscomp.makeIterator([[d,"s"]]));if(f.get(d)!="s"||f.size!=1||f.get({x:4})||f.set({x:4},"t")!=f||f.size!=2)return!1;var h=f.entries(),k=h.next();if(k.done||k.value[0]!=d||k.value[1]!="s")return!1;k=h.next();return k.done||k.value[0].x!=4||k.value[1]!="t"||!h.next().done?!1:!0}catch(r){return!1}}
if($jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS){if(e&&$jscomp.ES6_CONFORMANCE)return e}else if(n())return e;var m=new WeakMap,b=function(d){this[0]={};this[1]=t();this.size=0;if(d){d=$jscomp.makeIterator(d);for(var f;!(f=d.next()).done;)f=f.value,this.set(f[0],f[1])}};
b.prototype.set=function(d,f){d=d===0?0:d;var h=q(this,d);h.list||(h.list=this[0][h.id]=[]);h.entry?h.entry.value=f:(h.entry={next:this[1],previous:this[1].previous,head:this[1],key:d,value:f},h.list.push(h.entry),this[1].previous.next=h.entry,this[1].previous=h.entry,this.size++);return this};
b.prototype.delete=function(d){d=q(this,d);return d.entry&&d.list?(d.list.splice(d.index,1),d.list.length||delete this[0][d.id],d.entry.previous.next=d.entry.next,d.entry.next.previous=d.entry.previous,d.entry.head=null,this.size--,!0):!1};
b.prototype.clear=function(){this[0]={};this[1]=this[1].previous=t();this.size=0};
b.prototype.has=function(d){return!!q(this,d).entry};
b.prototype.get=function(d){return(d=q(this,d).entry)&&d.value};
b.prototype.entries=function(){return v(this,function(d){return[d.key,d.value]})};
b.prototype.keys=function(){return v(this,function(d){return d.key})};
b.prototype.values=function(){return v(this,function(d){return d.value})};
b.prototype.forEach=function(d,f){for(var h=this.entries(),k;!(k=h.next()).done;)k=k.value,d.call(f,k[1],k[0],this)};
b.prototype[Symbol.iterator]=b.prototype.entries;var q=function(d,f){var h;var k=(h=f)&&typeof h;k=="object"||k=="function"?m.has(h)?h=m.get(h):(k=""+ ++A,m.set(h,k),h=k):h="p_"+h;if((k=d[0][h])&&$jscomp.owns(d[0],h))for(d=0;d<k.length;d++){var r=k[d];if(f!==f&&r.key!==r.key||f===r.key)return{id:h,list:k,index:d,entry:r}}return{id:h,list:k,index:-1,entry:void 0}},v=function(d,f){var h=d[1];
return $jscomp.iteratorPrototype(function(){if(h){for(;h.head!=d[1];)h=h.previous;for(;h.next!=h.head;)return h=h.next,{done:!1,value:f(h)};h=null}return{done:!0,value:void 0}})},t=function(){var d={};
return d.previous=d.next=d.head=d},A=0;
return b},"es6","es3");
$jscomp.polyfill("Set",function(e){function n(){if($jscomp.ASSUME_NO_NATIVE_SET||!e||typeof e!="function"||!e.prototype.entries||typeof Object.seal!="function")return!1;try{var b=Object.seal({x:4}),q=new e($jscomp.makeIterator([b]));if(!q.has(b)||q.size!=1||q.add(b)!=q||q.size!=1||q.add({x:4})!=q||q.size!=2)return!1;var v=q.entries(),t=v.next();if(t.done||t.value[0]!=b||t.value[1]!=b)return!1;t=v.next();return t.done||t.value[0]==b||t.value[0].x!=4||t.value[1]!=t.value[0]?!1:v.next().done}catch(A){return!1}}
if($jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS){if(e&&$jscomp.ES6_CONFORMANCE)return e}else if(n())return e;var m=function(b){this.map_=new Map;if(b){b=$jscomp.makeIterator(b);for(var q;!(q=b.next()).done;)q=q.value,this.add(q)}this.size=this.map_.size};
m.prototype.add=function(b){b=b===0?0:b;this.map_.set(b,b);this.size=this.map_.size;return this};
m.prototype.delete=function(b){b=this.map_.delete(b);this.size=this.map_.size;return b};
m.prototype.clear=function(){this.map_.clear();this.size=0};
m.prototype.has=function(b){return this.map_.has(b)};
m.prototype.entries=function(){return this.map_.entries()};
m.prototype.values=function(){return this.map_.values()};
m.prototype.keys=m.prototype.values;m.prototype[Symbol.iterator]=m.prototype.values;m.prototype.forEach=function(b,q){var v=this;this.map_.forEach(function(t){return b.call(q,t,t,v)})};
return m},"es6","es3");
$jscomp.polyfill("Set.prototype.union",function(e){function n(m){$jscomp.checkIsSetInstance(this);$jscomp.checkIsSetLike(m);var b=new Set(this);m=$jscomp.checkIsValidIterator(m.keys());for(var q=m.next();!q.done;)b.add(q.value),q=m.next();return b}
return e?e:n},"es_next","es6");
$jscomp.checkIsSetLike=function(e){if(typeof e!=="object"||e===null||typeof e.size!=="number"||e.size<0||typeof e.keys!=="function"||typeof e.has!=="function")throw new TypeError("Argument must be set-like");};
$jscomp.checkIsValidIterator=function(e){if(typeof e!=="object"||e===null||typeof e.next!=="function")throw new TypeError("Invalid iterator.");return e};
$jscomp.getSmallerAndLargerSets=function(e,n){return e.size<=n.size?{smallerSetIterator:e.keys(),largerSet:n}:{smallerSetIterator:$jscomp.checkIsValidIterator(n.keys()),largerSet:e}};
$jscomp.checkIsSetInstance=function(e){if(!(e instanceof Set))throw new TypeError("Method must be called on an instance of Set.");};
(function(e){if(typeof exports==="object"&&typeof module!=="undefined")module.exports=e();else if(typeof define==="function"&&define.amd)define([],e);else{var n=typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:this;n.XRegExp=e()}})(function(){return function q(n,m,b){function v(d,f){if(!m[d]){if(!n[d]){var h=typeof require=="function"&&require;
if(!f&&h)return h(d,!0);if(t)return t(d,!0);f=Error("Cannot find module '"+d+"'");throw f.code="MODULE_NOT_FOUND",f;}f=m[d]={exports:{}};n[d][0].call(f.exports,function(k){var r=n[d][1][k];return v(r?r:k)},f,f.exports,q,n,m,b)}return m[d].exports}
for(var t=typeof require=="function"&&require,A=0;A<b.length;A++)v(b[A]);return v}({1:[function(n,m){m.exports=function(b){function q(d){var f=/^(?:\(\?:\))*\^/,h=/\$(?:\(\?:\))*$/;
return f.test(d)&&h.test(d)&&h.test(d.replace(/\\[\s\S]/g,""))?d.replace(f,"").replace(h,""):d}
function v(d,f){f=f?"x":"";return b.isRegExp(d)?d.xregexp&&d.xregexp.captureNames?d:b(d.source,f):b(d,f)}
var t=/(\()(?!\?)|\\([1-9]\d*)|\\[\s\S]|\[(?:[^\\\]]|\\[\s\S])*\]/g,A=b.union([/\({{([\w$]+)}}\)|{{([\w$]+)}}/,t],"g",{conjunction:"or"});b.build=function(d,f,h){h=h||"";var k=h.indexOf("x")>-1,r=/^\(\?([\w$]+)\)/.exec(d);r&&(h=b._clipDuplicates(h+r[1]));var u={},B;for(B in f)f.hasOwnProperty(B)&&(r=v(f[B],k),u[B]={pattern:q(r.source),names:r.xregexp.captureNames||[]});d=v(d,k);var C=0,D,p=0,I=[0],E=d.xregexp.captureNames||[];d=d.source.replace(A,function(F,J,N,Q,R){var L=J||N;if(L){if(!u.hasOwnProperty(L))throw new ReferenceError("Undefined property "+
F);if(J){var M=E[p];I[++p]=++C;F="(?<"+(M||L)+">"}else F="(?:";D=C;return F+u[L].pattern.replace(t,function(T,U,O){if(U){if(M=u[L].names[C-D],++C,M)return"(?<"+M+">"}else if(O)return P=+O-1,u[L].names[P]?"\\k<"+u[L].names[P]+">":"\\"+(+O+D);return T})+")"}if(Q){if(M=E[p],I[++p]=++C,M)return"(?<"+M+">"}else if(R){var P=+R-1;
return E[P]?"\\k<"+E[P]+">":"\\"+I[+R]}return F});
return b(d,h)}}},
{}],2:[function(n,m){m.exports=function(b){function q(v,t,A,d){return{name:v,value:t,start:A,end:d}}
b.matchRecursive=function(v,t,A,d,f){d=d||"";f=f||{};var h=d.indexOf("g")>-1,k=d.indexOf("y")>-1,r=d.replace(/y/g,""),u=f.escapeChar;f=f.valueNames;var B=[],C=0,D=0,p=0,I=0;t=b(t,r);A=b(A,r);if(u){if(u.length>1)throw Error("Cannot use more than one escape character");u=b.escape(u);var E=new RegExp("(?:"+u+"[\\S\\s]|(?:(?!"+b.union([t,A],"",{conjunction:"or"}).source+")[^"+u+"])+)+",d.replace(/[^imu]+/g,""))}for(;;){u&&(p+=(b.exec(v,E,p,"sticky")||[""])[0].length);d=b.exec(v,t,p);r=b.exec(v,A,p);d&&
r&&(d.index<=r.index?r=null:d=null);if(d||r)D=(d||r).index,p=D+(d||r)[0].length;else if(!C)break;if(k&&!C&&D>I)break;if(d){if(!C){var F=D;var J=p}++C}else if(r&&C){if(!--C&&(f?(f[0]&&F>I&&B.push(q(f[0],v.slice(I,F),I,F)),f[1]&&B.push(q(f[1],v.slice(F,J),F,J)),f[2]&&B.push(q(f[2],v.slice(J,D),J,D)),f[3]&&B.push(q(f[3],v.slice(D,p),D,p))):B.push(v.slice(J,D)),I=p,!h))break}else throw Error("Unbalanced delimiter found in string");D===p&&++p}h&&!k&&f&&f[0]&&v.length>I&&B.push(q(f[0],v.slice(I),I,v.length));
return B}}},
{}],3:[function(n,m){m.exports=function(b){function q(k){return k.replace(/[- _]+/g,"").toLowerCase()}
function v(k){var r=/^\\[xu](.+)/.exec(k);return r?d(r[1]):k.charCodeAt(k.charAt(0)==="\\"?1:0)}
function t(k){var r="",u=-1;b.forEach(k,/(\\x..|\\u....|\\?[\s\S])(?:-(\\x..|\\u....|\\?[\s\S]))?/,function(B){var C=v(B[1]);C>u+1&&(r+="\\u"+h(f(u+1)),C>u+2&&(r+="-\\u"+h(f(C-1))));u=v(B[2]||B[1])});
u<65535&&(r+="\\u"+h(f(u+1)),u<65534&&(r+="-\\uFFFF"));return r}
var A={},d=b._dec,f=b._hex,h=b._pad4;b.addToken(/\\([pP])(?:{(\^?)([^}]*)}|([A-Za-z]))/,function(k,r,u){var B=k[1]==="P"||!!k[2],C=u.indexOf("A")>-1;u=q(k[4]||k[3]);var D=A[u];if(k[1]==="P"&&k[2])throw new SyntaxError("Invalid double negation "+k[0]);if(!A.hasOwnProperty(u))throw new SyntaxError("Unknown Unicode token "+k[0]);if(D.inverseOf){u=q(D.inverseOf);if(!A.hasOwnProperty(u))throw new ReferenceError("Unicode token missing data "+k[0]+" -> "+D.inverseOf);D=A[u];B=!B}if(!D.bmp&&!C)throw new SyntaxError("Astral mode required for Unicode token "+
k[0]);if(C){if(r==="class")throw new SyntaxError("Astral mode does not support Unicode tokens within character classes");k=B?"a!":"a=";(r=A[u][k])||(r=A[u],u=A[u],C="",u.bmp&&!u.isBmpLast&&(C="["+u.bmp+"]"+(u.astral?"|":"")),u.astral&&(C+=u.astral),u.isBmpLast&&u.bmp&&(C+=(u.astral?"|":"")+"["+u.bmp+"]"),B=B?"(?:(?!"+C+")(?:[\ud800-\udbff][\udc00-\udfff]|[\x00-\uffff]))":"(?:"+C+")",r=r[k]=B);return B=r}return B=r==="class"?B?A[u]["b!"]||(A[u]["b!"]=t(A[u].bmp)):D.bmp:(B?"[^":"[")+D.bmp+"]"},{scope:"all",
optionalFlags:"A",leadChar:"\\"});b.addUnicodeData=function(k){for(var r,u=0;u<k.length;++u){r=k[u];if(!r.name)throw Error("Unicode token requires name");if(!(r.inverseOf||r.bmp||r.astral))throw Error("Unicode token has no character data "+r.name);A[q(r.name)]=r;r.alias&&(A[q(r.alias)]=r)}b.cache.flush("patterns")};
b._getUnicodeProperty=function(k){k=q(k);return A[k]}}},
{}],4:[function(n,m){m.exports=function(b){if(!b.addUnicodeData)throw new ReferenceError("Unicode Base must be loaded before Unicode Blocks");b.addUnicodeData([{name:"InAdlam",astral:"\ud83a[\udd00-\udd5f]"},{name:"InAegean_Numbers",astral:"\ud800[\udd00-\udd3f]"},{name:"InAhom",astral:"\ud805[\udf00-\udf3f]"},{name:"InAlchemical_Symbols",astral:"\ud83d[\udf00-\udf7f]"},{name:"InAlphabetic_Presentation_Forms",bmp:"\ufb00-\ufb4f"},{name:"InAnatolian_Hieroglyphs",astral:"\ud811[\udc00-\ude7f]"},{name:"InAncient_Greek_Musical_Notation",
astral:"\ud834[\ude00-\ude4f]"},{name:"InAncient_Greek_Numbers",astral:"\ud800[\udd40-\udd8f]"},{name:"InAncient_Symbols",astral:"\ud800[\udd90-\uddcf]"},{name:"InArabic",bmp:"\u0600-\u06ff"},{name:"InArabic_Extended_A",bmp:"\u08a0-\u08ff"},{name:"InArabic_Mathematical_Alphabetic_Symbols",astral:"\ud83b[\ude00-\udeff]"},{name:"InArabic_Presentation_Forms_A",bmp:"\ufb50-\ufdff"},{name:"InArabic_Presentation_Forms_B",bmp:"\ufe70-\ufeff"},{name:"InArabic_Supplement",bmp:"\u0750-\u077f"},{name:"InArmenian",
bmp:"\u0530-\u058f"},{name:"InArrows",bmp:"\u2190-\u21ff"},{name:"InAvestan",astral:"\ud802[\udf00-\udf3f]"},{name:"InBalinese",bmp:"\u1b00-\u1b7f"},{name:"InBamum",bmp:"\ua6a0-\ua6ff"},{name:"InBamum_Supplement",astral:"\ud81a[\udc00-\ude3f]"},{name:"InBasic_Latin",bmp:"\x00-\u007f"},{name:"InBassa_Vah",astral:"\ud81a[\uded0-\udeff]"},{name:"InBatak",bmp:"\u1bc0-\u1bff"},{name:"InBengali",bmp:"\u0980-\u09ff"},{name:"InBhaiksuki",astral:"\ud807[\udc00-\udc6f]"},{name:"InBlock_Elements",bmp:"\u2580-\u259f"},
{name:"InBopomofo",bmp:"\u3100-\u312f"},{name:"InBopomofo_Extended",bmp:"\u31a0-\u31bf"},{name:"InBox_Drawing",bmp:"\u2500-\u257f"},{name:"InBrahmi",astral:"\ud804[\udc00-\udc7f]"},{name:"InBraille_Patterns",bmp:"\u2800-\u28ff"},{name:"InBuginese",bmp:"\u1a00-\u1a1f"},{name:"InBuhid",bmp:"\u1740-\u175f"},{name:"InByzantine_Musical_Symbols",astral:"\ud834[\udc00-\udcff]"},{name:"InCJK_Compatibility",bmp:"\u3300-\u33ff"},{name:"InCJK_Compatibility_Forms",bmp:"\ufe30-\ufe4f"},{name:"InCJK_Compatibility_Ideographs",
bmp:"\uf900-\ufaff"},{name:"InCJK_Compatibility_Ideographs_Supplement",astral:"\ud87e[\udc00-\ude1f]"},{name:"InCJK_Radicals_Supplement",bmp:"\u2e80-\u2eff"},{name:"InCJK_Strokes",bmp:"\u31c0-\u31ef"},{name:"InCJK_Symbols_and_Punctuation",bmp:"\u3000-\u303f"},{name:"InCJK_Unified_Ideographs",bmp:"\u4e00-\u9fff"},{name:"InCJK_Unified_Ideographs_Extension_A",bmp:"\u3400-\u4dbf"},{name:"InCJK_Unified_Ideographs_Extension_B",astral:"[\ud840-\ud868][\udc00-\udfff]|\ud869[\udc00-\udedf]"},{name:"InCJK_Unified_Ideographs_Extension_C",
astral:"\ud869[\udf00-\udfff]|[\ud86a-\ud86c][\udc00-\udfff]|\ud86d[\udc00-\udf3f]"},{name:"InCJK_Unified_Ideographs_Extension_D",astral:"\ud86d[\udf40-\udfff]|\ud86e[\udc00-\udc1f]"},{name:"InCJK_Unified_Ideographs_Extension_E",astral:"\ud86e[\udc20-\udfff]|[\ud86f-\ud872][\udc00-\udfff]|\ud873[\udc00-\udeaf]"},{name:"InCarian",astral:"\ud800[\udea0-\udedf]"},{name:"InCaucasian_Albanian",astral:"\ud801[\udd30-\udd6f]"},{name:"InChakma",astral:"\ud804[\udd00-\udd4f]"},{name:"InCham",bmp:"\uaa00-\uaa5f"},
{name:"InCherokee",bmp:"\u13a0-\u13ff"},{name:"InCherokee_Supplement",bmp:"\uab70-\uabbf"},{name:"InCombining_Diacritical_Marks",bmp:"\u0300-\u036f"},{name:"InCombining_Diacritical_Marks_Extended",bmp:"\u1ab0-\u1aff"},{name:"InCombining_Diacritical_Marks_Supplement",bmp:"\u1dc0-\u1dff"},{name:"InCombining_Diacritical_Marks_for_Symbols",bmp:"\u20d0-\u20ff"},{name:"InCombining_Half_Marks",bmp:"\ufe20-\ufe2f"},{name:"InCommon_Indic_Number_Forms",bmp:"\ua830-\ua83f"},{name:"InControl_Pictures",bmp:"\u2400-\u243f"},
{name:"InCoptic",bmp:"\u2c80-\u2cff"},{name:"InCoptic_Epact_Numbers",astral:"\ud800[\udee0-\udeff]"},{name:"InCounting_Rod_Numerals",astral:"\ud834[\udf60-\udf7f]"},{name:"InCuneiform",astral:"\ud808[\udc00-\udfff]"},{name:"InCuneiform_Numbers_and_Punctuation",astral:"\ud809[\udc00-\udc7f]"},{name:"InCurrency_Symbols",bmp:"\u20a0-\u20cf"},{name:"InCypriot_Syllabary",astral:"\ud802[\udc00-\udc3f]"},{name:"InCyrillic",bmp:"\u0400-\u04ff"},{name:"InCyrillic_Extended_A",bmp:"\u2de0-\u2dff"},{name:"InCyrillic_Extended_B",
bmp:"\ua640-\ua69f"},{name:"InCyrillic_Extended_C",bmp:"\u1c80-\u1c8f"},{name:"InCyrillic_Supplement",bmp:"\u0500-\u052f"},{name:"InDeseret",astral:"\ud801[\udc00-\udc4f]"},{name:"InDevanagari",bmp:"\u0900-\u097f"},{name:"InDevanagari_Extended",bmp:"\ua8e0-\ua8ff"},{name:"InDingbats",bmp:"\u2700-\u27bf"},{name:"InDomino_Tiles",astral:"\ud83c[\udc30-\udc9f]"},{name:"InDuployan",astral:"\ud82f[\udc00-\udc9f]"},{name:"InEarly_Dynastic_Cuneiform",astral:"\ud809[\udc80-\udd4f]"},{name:"InEgyptian_Hieroglyphs",
astral:"\ud80c[\udc00-\udfff]|\ud80d[\udc00-\udc2f]"},{name:"InElbasan",astral:"\ud801[\udd00-\udd2f]"},{name:"InEmoticons",astral:"\ud83d[\ude00-\ude4f]"},{name:"InEnclosed_Alphanumeric_Supplement",astral:"\ud83c[\udd00-\uddff]"},{name:"InEnclosed_Alphanumerics",bmp:"\u2460-\u24ff"},{name:"InEnclosed_CJK_Letters_and_Months",bmp:"\u3200-\u32ff"},{name:"InEnclosed_Ideographic_Supplement",astral:"\ud83c[\ude00-\udeff]"},{name:"InEthiopic",bmp:"\u1200-\u137f"},{name:"InEthiopic_Extended",bmp:"\u2d80-\u2ddf"},
{name:"InEthiopic_Extended_A",bmp:"\uab00-\uab2f"},{name:"InEthiopic_Supplement",bmp:"\u1380-\u139f"},{name:"InGeneral_Punctuation",bmp:"\u2000-\u206f"},{name:"InGeometric_Shapes",bmp:"\u25a0-\u25ff"},{name:"InGeometric_Shapes_Extended",astral:"\ud83d[\udf80-\udfff]"},{name:"InGeorgian",bmp:"\u10a0-\u10ff"},{name:"InGeorgian_Supplement",bmp:"\u2d00-\u2d2f"},{name:"InGlagolitic",bmp:"\u2c00-\u2c5f"},{name:"InGlagolitic_Supplement",astral:"\ud838[\udc00-\udc2f]"},{name:"InGothic",astral:"\ud800[\udf30-\udf4f]"},
{name:"InGrantha",astral:"\ud804[\udf00-\udf7f]"},{name:"InGreek_Extended",bmp:"\u1f00-\u1fff"},{name:"InGreek_and_Coptic",bmp:"\u0370-\u03ff"},{name:"InGujarati",bmp:"\u0a80-\u0aff"},{name:"InGurmukhi",bmp:"\u0a00-\u0a7f"},{name:"InHalfwidth_and_Fullwidth_Forms",bmp:"\uff00-\uffef"},{name:"InHangul_Compatibility_Jamo",bmp:"\u3130-\u318f"},{name:"InHangul_Jamo",bmp:"\u1100-\u11ff"},{name:"InHangul_Jamo_Extended_A",bmp:"\ua960-\ua97f"},{name:"InHangul_Jamo_Extended_B",bmp:"\ud7b0-\ud7ff"},{name:"InHangul_Syllables",
bmp:"\uac00-\ud7af"},{name:"InHanunoo",bmp:"\u1720-\u173f"},{name:"InHatran",astral:"\ud802[\udce0-\udcff]"},{name:"InHebrew",bmp:"\u0590-\u05ff"},{name:"InHigh_Private_Use_Surrogates",bmp:"\udb80-\udbff"},{name:"InHigh_Surrogates",bmp:"\ud800-\udb7f"},{name:"InHiragana",bmp:"\u3040-\u309f"},{name:"InIPA_Extensions",bmp:"\u0250-\u02af"},{name:"InIdeographic_Description_Characters",bmp:"\u2ff0-\u2fff"},{name:"InIdeographic_Symbols_and_Punctuation",astral:"\ud81b[\udfe0-\udfff]"},{name:"InImperial_Aramaic",
astral:"\ud802[\udc40-\udc5f]"},{name:"InInscriptional_Pahlavi",astral:"\ud802[\udf60-\udf7f]"},{name:"InInscriptional_Parthian",astral:"\ud802[\udf40-\udf5f]"},{name:"InJavanese",bmp:"\ua980-\ua9df"},{name:"InKaithi",astral:"\ud804[\udc80-\udccf]"},{name:"InKana_Supplement",astral:"\ud82c[\udc00-\udcff]"},{name:"InKanbun",bmp:"\u3190-\u319f"},{name:"InKangxi_Radicals",bmp:"\u2f00-\u2fdf"},{name:"InKannada",bmp:"\u0c80-\u0cff"},{name:"InKatakana",bmp:"\u30a0-\u30ff"},{name:"InKatakana_Phonetic_Extensions",
bmp:"\u31f0-\u31ff"},{name:"InKayah_Li",bmp:"\ua900-\ua92f"},{name:"InKharoshthi",astral:"\ud802[\ude00-\ude5f]"},{name:"InKhmer",bmp:"\u1780-\u17ff"},{name:"InKhmer_Symbols",bmp:"\u19e0-\u19ff"},{name:"InKhojki",astral:"\ud804[\ude00-\ude4f]"},{name:"InKhudawadi",astral:"\ud804[\udeb0-\udeff]"},{name:"InLao",bmp:"\u0e80-\u0eff"},{name:"InLatin_Extended_Additional",bmp:"\u1e00-\u1eff"},{name:"InLatin_Extended_A",bmp:"\u0100-\u017f"},{name:"InLatin_Extended_B",bmp:"\u0180-\u024f"},{name:"InLatin_Extended_C",
bmp:"\u2c60-\u2c7f"},{name:"InLatin_Extended_D",bmp:"\ua720-\ua7ff"},{name:"InLatin_Extended_E",bmp:"\uab30-\uab6f"},{name:"InLatin_1_Supplement",bmp:"\u0080-\u00ff"},{name:"InLepcha",bmp:"\u1c00-\u1c4f"},{name:"InLetterlike_Symbols",bmp:"\u2100-\u214f"},{name:"InLimbu",bmp:"\u1900-\u194f"},{name:"InLinear_A",astral:"\ud801[\ude00-\udf7f]"},{name:"InLinear_B_Ideograms",astral:"\ud800[\udc80-\udcff]"},{name:"InLinear_B_Syllabary",astral:"\ud800[\udc00-\udc7f]"},{name:"InLisu",bmp:"\ua4d0-\ua4ff"},
{name:"InLow_Surrogates",bmp:"\udc00-\udfff"},{name:"InLycian",astral:"\ud800[\ude80-\ude9f]"},{name:"InLydian",astral:"\ud802[\udd20-\udd3f]"},{name:"InMahajani",astral:"\ud804[\udd50-\udd7f]"},{name:"InMahjong_Tiles",astral:"\ud83c[\udc00-\udc2f]"},{name:"InMalayalam",bmp:"\u0d00-\u0d7f"},{name:"InMandaic",bmp:"\u0840-\u085f"},{name:"InManichaean",astral:"\ud802[\udec0-\udeff]"},{name:"InMarchen",astral:"\ud807[\udc70-\udcbf]"},{name:"InMathematical_Alphanumeric_Symbols",astral:"\ud835[\udc00-\udfff]"},
{name:"InMathematical_Operators",bmp:"\u2200-\u22ff"},{name:"InMeetei_Mayek",bmp:"\uabc0-\uabff"},{name:"InMeetei_Mayek_Extensions",bmp:"\uaae0-\uaaff"},{name:"InMende_Kikakui",astral:"\ud83a[\udc00-\udcdf]"},{name:"InMeroitic_Cursive",astral:"\ud802[\udda0-\uddff]"},{name:"InMeroitic_Hieroglyphs",astral:"\ud802[\udd80-\udd9f]"},{name:"InMiao",astral:"\ud81b[\udf00-\udf9f]"},{name:"InMiscellaneous_Mathematical_Symbols_A",bmp:"\u27c0-\u27ef"},{name:"InMiscellaneous_Mathematical_Symbols_B",bmp:"\u2980-\u29ff"},
{name:"InMiscellaneous_Symbols",bmp:"\u2600-\u26ff"},{name:"InMiscellaneous_Symbols_and_Arrows",bmp:"\u2b00-\u2bff"},{name:"InMiscellaneous_Symbols_and_Pictographs",astral:"\ud83c[\udf00-\udfff]|\ud83d[\udc00-\uddff]"},{name:"InMiscellaneous_Technical",bmp:"\u2300-\u23ff"},{name:"InModi",astral:"\ud805[\ude00-\ude5f]"},{name:"InModifier_Tone_Letters",bmp:"\ua700-\ua71f"},{name:"InMongolian",bmp:"\u1800-\u18af"},{name:"InMongolian_Supplement",astral:"\ud805[\ude60-\ude7f]"},{name:"InMro",astral:"\ud81a[\ude40-\ude6f]"},
{name:"InMultani",astral:"\ud804[\ude80-\udeaf]"},{name:"InMusical_Symbols",astral:"\ud834[\udd00-\uddff]"},{name:"InMyanmar",bmp:"\u1000-\u109f"},{name:"InMyanmar_Extended_A",bmp:"\uaa60-\uaa7f"},{name:"InMyanmar_Extended_B",bmp:"\ua9e0-\ua9ff"},{name:"InNKo",bmp:"\u07c0-\u07ff"},{name:"InNabataean",astral:"\ud802[\udc80-\udcaf]"},{name:"InNew_Tai_Lue",bmp:"\u1980-\u19df"},{name:"InNewa",astral:"\ud805[\udc00-\udc7f]"},{name:"InNumber_Forms",bmp:"\u2150-\u218f"},{name:"InOgham",bmp:"\u1680-\u169f"},
{name:"InOl_Chiki",bmp:"\u1c50-\u1c7f"},{name:"InOld_Hungarian",astral:"\ud803[\udc80-\udcff]"},{name:"InOld_Italic",astral:"\ud800[\udf00-\udf2f]"},{name:"InOld_North_Arabian",astral:"\ud802[\ude80-\ude9f]"},{name:"InOld_Permic",astral:"\ud800[\udf50-\udf7f]"},{name:"InOld_Persian",astral:"\ud800[\udfa0-\udfdf]"},{name:"InOld_South_Arabian",astral:"\ud802[\ude60-\ude7f]"},{name:"InOld_Turkic",astral:"\ud803[\udc00-\udc4f]"},{name:"InOptical_Character_Recognition",bmp:"\u2440-\u245f"},{name:"InOriya",
bmp:"\u0b00-\u0b7f"},{name:"InOrnamental_Dingbats",astral:"\ud83d[\ude50-\ude7f]"},{name:"InOsage",astral:"\ud801[\udcb0-\udcff]"},{name:"InOsmanya",astral:"\ud801[\udc80-\udcaf]"},{name:"InPahawh_Hmong",astral:"\ud81a[\udf00-\udf8f]"},{name:"InPalmyrene",astral:"\ud802[\udc60-\udc7f]"},{name:"InPau_Cin_Hau",astral:"\ud806[\udec0-\udeff]"},{name:"InPhags_pa",bmp:"\ua840-\ua87f"},{name:"InPhaistos_Disc",astral:"\ud800[\uddd0-\uddff]"},{name:"InPhoenician",astral:"\ud802[\udd00-\udd1f]"},{name:"InPhonetic_Extensions",
bmp:"\u1d00-\u1d7f"},{name:"InPhonetic_Extensions_Supplement",bmp:"\u1d80-\u1dbf"},{name:"InPlaying_Cards",astral:"\ud83c[\udca0-\udcff]"},{name:"InPrivate_Use_Area",bmp:"\ue000-\uf8ff"},{name:"InPsalter_Pahlavi",astral:"\ud802[\udf80-\udfaf]"},{name:"InRejang",bmp:"\ua930-\ua95f"},{name:"InRumi_Numeral_Symbols",astral:"\ud803[\ude60-\ude7f]"},{name:"InRunic",bmp:"\u16a0-\u16ff"},{name:"InSamaritan",bmp:"\u0800-\u083f"},{name:"InSaurashtra",bmp:"\ua880-\ua8df"},{name:"InSharada",astral:"\ud804[\udd80-\udddf]"},
{name:"InShavian",astral:"\ud801[\udc50-\udc7f]"},{name:"InShorthand_Format_Controls",astral:"\ud82f[\udca0-\udcaf]"},{name:"InSiddham",astral:"\ud805[\udd80-\uddff]"},{name:"InSinhala",bmp:"\u0d80-\u0dff"},{name:"InSinhala_Archaic_Numbers",astral:"\ud804[\udde0-\uddff]"},{name:"InSmall_Form_Variants",bmp:"\ufe50-\ufe6f"},{name:"InSora_Sompeng",astral:"\ud804[\udcd0-\udcff]"},{name:"InSpacing_Modifier_Letters",bmp:"\u02b0-\u02ff"},{name:"InSpecials",bmp:"\ufff0-\uffff"},{name:"InSundanese",bmp:"\u1b80-\u1bbf"},
{name:"InSundanese_Supplement",bmp:"\u1cc0-\u1ccf"},{name:"InSuperscripts_and_Subscripts",bmp:"\u2070-\u209f"},{name:"InSupplemental_Arrows_A",bmp:"\u27f0-\u27ff"},{name:"InSupplemental_Arrows_B",bmp:"\u2900-\u297f"},{name:"InSupplemental_Arrows_C",astral:"\ud83e[\udc00-\udcff]"},{name:"InSupplemental_Mathematical_Operators",bmp:"\u2a00-\u2aff"},{name:"InSupplemental_Punctuation",bmp:"\u2e00-\u2e7f"},{name:"InSupplemental_Symbols_and_Pictographs",astral:"\ud83e[\udd00-\uddff]"},{name:"InSupplementary_Private_Use_Area_A",
astral:"[\udb80-\udbbf][\udc00-\udfff]"},{name:"InSupplementary_Private_Use_Area_B",astral:"[\udbc0-\udbff][\udc00-\udfff]"},{name:"InSutton_SignWriting",astral:"\ud836[\udc00-\udeaf]"},{name:"InSyloti_Nagri",bmp:"\ua800-\ua82f"},{name:"InSyriac",bmp:"\u0700-\u074f"},{name:"InTagalog",bmp:"\u1700-\u171f"},{name:"InTagbanwa",bmp:"\u1760-\u177f"},{name:"InTags",astral:"\udb40[\udc00-\udc7f]"},{name:"InTai_Le",bmp:"\u1950-\u197f"},{name:"InTai_Tham",bmp:"\u1a20-\u1aaf"},{name:"InTai_Viet",bmp:"\uaa80-\uaadf"},
{name:"InTai_Xuan_Jing_Symbols",astral:"\ud834[\udf00-\udf5f]"},{name:"InTakri",astral:"\ud805[\ude80-\udecf]"},{name:"InTamil",bmp:"\u0b80-\u0bff"},{name:"InTangut",astral:"[\ud81c-\ud821][\udc00-\udfff]"},{name:"InTangut_Components",astral:"\ud822[\udc00-\udeff]"},{name:"InTelugu",bmp:"\u0c00-\u0c7f"},{name:"InThaana",bmp:"\u0780-\u07bf"},{name:"InThai",bmp:"\u0e00-\u0e7f"},{name:"InTibetan",bmp:"\u0f00-\u0fff"},{name:"InTifinagh",bmp:"\u2d30-\u2d7f"},{name:"InTirhuta",astral:"\ud805[\udc80-\udcdf]"},
{name:"InTransport_and_Map_Symbols",astral:"\ud83d[\ude80-\udeff]"},{name:"InUgaritic",astral:"\ud800[\udf80-\udf9f]"},{name:"InUnified_Canadian_Aboriginal_Syllabics",bmp:"\u1400-\u167f"},{name:"InUnified_Canadian_Aboriginal_Syllabics_Extended",bmp:"\u18b0-\u18ff"},{name:"InVai",bmp:"\ua500-\ua63f"},{name:"InVariation_Selectors",bmp:"\ufe00-\ufe0f"},{name:"InVariation_Selectors_Supplement",astral:"\udb40[\udd00-\uddef]"},{name:"InVedic_Extensions",bmp:"\u1cd0-\u1cff"},{name:"InVertical_Forms",bmp:"\ufe10-\ufe1f"},
{name:"InWarang_Citi",astral:"\ud806[\udca0-\udcff]"},{name:"InYi_Radicals",bmp:"\ua490-\ua4cf"},{name:"InYi_Syllables",bmp:"\ua000-\ua48f"},{name:"InYijing_Hexagram_Symbols",bmp:"\u4dc0-\u4dff"}])}},
{}],5:[function(n,m){m.exports=function(b){if(!b.addUnicodeData)throw new ReferenceError("Unicode Base must be loaded before Unicode Categories");b.addUnicodeData([{name:"C",alias:"Other",isBmpLast:!0,bmp:"\x00-\u001f\u007f-\u009f\u00ad\u0378\u0379\u0380-\u0383\u038b\u038d\u03a2\u0530\u0557\u0558\u0560\u0588\u058b\u058c\u0590\u05c8-\u05cf\u05eb-\u05ef\u05f5-\u0605\u061c\u061d\u06dd\u070e\u070f\u074b\u074c\u07b2-\u07bf\u07fb-\u07ff\u082e\u082f\u083f\u085c\u085d\u085f-\u089f\u08b5\u08be-\u08d3\u08e2\u0984\u098d\u098e\u0991\u0992\u09a9\u09b1\u09b3-\u09b5\u09ba\u09bb\u09c5\u09c6\u09c9\u09ca\u09cf-\u09d6\u09d8-\u09db\u09de\u09e4\u09e5\u09fc-\u0a00\u0a04\u0a0b-\u0a0e\u0a11\u0a12\u0a29\u0a31\u0a34\u0a37\u0a3a\u0a3b\u0a3d\u0a43-\u0a46\u0a49\u0a4a\u0a4e-\u0a50\u0a52-\u0a58\u0a5d\u0a5f-\u0a65\u0a76-\u0a80\u0a84\u0a8e\u0a92\u0aa9\u0ab1\u0ab4\u0aba\u0abb\u0ac6\u0aca\u0ace\u0acf\u0ad1-\u0adf\u0ae4\u0ae5\u0af2-\u0af8\u0afa-\u0b00\u0b04\u0b0d\u0b0e\u0b11\u0b12\u0b29\u0b31\u0b34\u0b3a\u0b3b\u0b45\u0b46\u0b49\u0b4a\u0b4e-\u0b55\u0b58-\u0b5b\u0b5e\u0b64\u0b65\u0b78-\u0b81\u0b84\u0b8b-\u0b8d\u0b91\u0b96-\u0b98\u0b9b\u0b9d\u0ba0-\u0ba2\u0ba5-\u0ba7\u0bab-\u0bad\u0bba-\u0bbd\u0bc3-\u0bc5\u0bc9\u0bce\u0bcf\u0bd1-\u0bd6\u0bd8-\u0be5\u0bfb-\u0bff\u0c04\u0c0d\u0c11\u0c29\u0c3a-\u0c3c\u0c45\u0c49\u0c4e-\u0c54\u0c57\u0c5b-\u0c5f\u0c64\u0c65\u0c70-\u0c77\u0c84\u0c8d\u0c91\u0ca9\u0cb4\u0cba\u0cbb\u0cc5\u0cc9\u0cce-\u0cd4\u0cd7-\u0cdd\u0cdf\u0ce4\u0ce5\u0cf0\u0cf3-\u0d00\u0d04\u0d0d\u0d11\u0d3b\u0d3c\u0d45\u0d49\u0d50-\u0d53\u0d64\u0d65\u0d80\u0d81\u0d84\u0d97-\u0d99\u0db2\u0dbc\u0dbe\u0dbf\u0dc7-\u0dc9\u0dcb-\u0dce\u0dd5\u0dd7\u0de0-\u0de5\u0df0\u0df1\u0df5-\u0e00\u0e3b-\u0e3e\u0e5c-\u0e80\u0e83\u0e85\u0e86\u0e89\u0e8b\u0e8c\u0e8e-\u0e93\u0e98\u0ea0\u0ea4\u0ea6\u0ea8\u0ea9\u0eac\u0eba\u0ebe\u0ebf\u0ec5\u0ec7\u0ece\u0ecf\u0eda\u0edb\u0ee0-\u0eff\u0f48\u0f6d-\u0f70\u0f98\u0fbd\u0fcd\u0fdb-\u0fff\u10c6\u10c8-\u10cc\u10ce\u10cf\u1249\u124e\u124f\u1257\u1259\u125e\u125f\u1289\u128e\u128f\u12b1\u12b6\u12b7\u12bf\u12c1\u12c6\u12c7\u12d7\u1311\u1316\u1317\u135b\u135c\u137d-\u137f\u139a-\u139f\u13f6\u13f7\u13fe\u13ff\u169d-\u169f\u16f9-\u16ff\u170d\u1715-\u171f\u1737-\u173f\u1754-\u175f\u176d\u1771\u1774-\u177f\u17de\u17df\u17ea-\u17ef\u17fa-\u17ff\u180e\u180f\u181a-\u181f\u1878-\u187f\u18ab-\u18af\u18f6-\u18ff\u191f\u192c-\u192f\u193c-\u193f\u1941-\u1943\u196e\u196f\u1975-\u197f\u19ac-\u19af\u19ca-\u19cf\u19db-\u19dd\u1a1c\u1a1d\u1a5f\u1a7d\u1a7e\u1a8a-\u1a8f\u1a9a-\u1a9f\u1aae\u1aaf\u1abf-\u1aff\u1b4c-\u1b4f\u1b7d-\u1b7f\u1bf4-\u1bfb\u1c38-\u1c3a\u1c4a-\u1c4c\u1c89-\u1cbf\u1cc8-\u1ccf\u1cf7\u1cfa-\u1cff\u1df6-\u1dfa\u1f16\u1f17\u1f1e\u1f1f\u1f46\u1f47\u1f4e\u1f4f\u1f58\u1f5a\u1f5c\u1f5e\u1f7e\u1f7f\u1fb5\u1fc5\u1fd4\u1fd5\u1fdc\u1ff0\u1ff1\u1ff5\u1fff\u200b-\u200f\u202a-\u202e\u2060-\u206f\u2072\u2073\u208f\u209d-\u209f\u20bf-\u20cf\u20f1-\u20ff\u218c-\u218f\u23ff\u2427-\u243f\u244b-\u245f\u2b74\u2b75\u2b96\u2b97\u2bba-\u2bbc\u2bc9\u2bd2-\u2beb\u2bf0-\u2bff\u2c2f\u2c5f\u2cf4-\u2cf8\u2d26\u2d28-\u2d2c\u2d2e\u2d2f\u2d68-\u2d6e\u2d71-\u2d7e\u2d97-\u2d9f\u2da7\u2daf\u2db7\u2dbf\u2dc7\u2dcf\u2dd7\u2ddf\u2e45-\u2e7f\u2e9a\u2ef4-\u2eff\u2fd6-\u2fef\u2ffc-\u2fff\u3040\u3097\u3098\u3100-\u3104\u312e-\u3130\u318f\u31bb-\u31bf\u31e4-\u31ef\u321f\u32ff\u4db6-\u4dbf\u9fd6-\u9fff\ua48d-\ua48f\ua4c7-\ua4cf\ua62c-\ua63f\ua6f8-\ua6ff\ua7af\ua7b8-\ua7f6\ua82c-\ua82f\ua83a-\ua83f\ua878-\ua87f\ua8c6-\ua8cd\ua8da-\ua8df\ua8fe\ua8ff\ua954-\ua95e\ua97d-\ua97f\ua9ce\ua9da-\ua9dd\ua9ff\uaa37-\uaa3f\uaa4e\uaa4f\uaa5a\uaa5b\uaac3-\uaada\uaaf7-\uab00\uab07\uab08\uab0f\uab10\uab17-\uab1f\uab27\uab2f\uab66-\uab6f\uabee\uabef\uabfa-\uabff\ud7a4-\ud7af\ud7c7-\ud7ca\ud7fc-\uf8ff\ufa6e\ufa6f\ufada-\ufaff\ufb07-\ufb12\ufb18-\ufb1c\ufb37\ufb3d\ufb3f\ufb42\ufb45\ufbc2-\ufbd2\ufd40-\ufd4f\ufd90\ufd91\ufdc8-\ufdef\ufdfe\ufdff\ufe1a-\ufe1f\ufe53\ufe67\ufe6c-\ufe6f\ufe75\ufefd-\uff00\uffbf-\uffc1\uffc8\uffc9\uffd0\uffd1\uffd8\uffd9\uffdd-\uffdf\uffe7\uffef-\ufffb\ufffe\uffff",
astral:"\ud800[\udc0c\udc27\udc3b\udc3e\udc4e\udc4f\udc5e-\udc7f\udcfb-\udcff\udd03-\udd06\udd34-\udd36\udd8f\udd9c-\udd9f\udda1-\uddcf\uddfe-\ude7f\ude9d-\ude9f\uded1-\udedf\udefc-\udeff\udf24-\udf2f\udf4b-\udf4f\udf7b-\udf7f\udf9e\udfc4-\udfc7\udfd6-\udfff]|\ud801[\udc9e\udc9f\udcaa-\udcaf\udcd4-\udcd7\udcfc-\udcff\udd28-\udd2f\udd64-\udd6e\udd70-\uddff\udf37-\udf3f\udf56-\udf5f\udf68-\udfff]|\ud802[\udc06\udc07\udc09\udc36\udc39-\udc3b\udc3d\udc3e\udc56\udc9f-\udca6\udcb0-\udcdf\udcf3\udcf6-\udcfa\udd1c-\udd1e\udd3a-\udd3e\udd40-\udd7f\uddb8-\uddbb\uddd0\uddd1\ude04\ude07-\ude0b\ude14\ude18\ude34-\ude37\ude3b-\ude3e\ude48-\ude4f\ude59-\ude5f\udea0-\udebf\udee7-\udeea\udef7-\udeff\udf36-\udf38\udf56\udf57\udf73-\udf77\udf92-\udf98\udf9d-\udfa8\udfb0-\udfff]|\ud803[\udc49-\udc7f\udcb3-\udcbf\udcf3-\udcf9\udd00-\ude5f\ude7f-\udfff]|\ud804[\udc4e-\udc51\udc70-\udc7e\udcbd\udcc2-\udccf\udce9-\udcef\udcfa-\udcff\udd35\udd44-\udd4f\udd77-\udd7f\uddce\uddcf\udde0\uddf5-\uddff\ude12\ude3f-\ude7f\ude87\ude89\ude8e\ude9e\udeaa-\udeaf\udeeb-\udeef\udefa-\udeff\udf04\udf0d\udf0e\udf11\udf12\udf29\udf31\udf34\udf3a\udf3b\udf45\udf46\udf49\udf4a\udf4e\udf4f\udf51-\udf56\udf58-\udf5c\udf64\udf65\udf6d-\udf6f\udf75-\udfff]|\ud805[\udc5a\udc5c\udc5e-\udc7f\udcc8-\udccf\udcda-\udd7f\uddb6\uddb7\uddde-\uddff\ude45-\ude4f\ude5a-\ude5f\ude6d-\ude7f\udeb8-\udebf\udeca-\udeff\udf1a-\udf1c\udf2c-\udf2f\udf40-\udfff]|\ud806[\udc00-\udc9f\udcf3-\udcfe\udd00-\udebf\udef9-\udfff]|\ud807[\udc09\udc37\udc46-\udc4f\udc6d-\udc6f\udc90\udc91\udca8\udcb7-\udfff]|\ud808[\udf9a-\udfff]|\ud809[\udc6f\udc75-\udc7f\udd44-\udfff]|[\ud80a\ud80b\ud80e-\ud810\ud812-\ud819\ud823-\ud82b\ud82d\ud82e\ud830-\ud833\ud837\ud839\ud83f\ud874-\ud87d\ud87f-\udb3f\udb41-\udbff][\udc00-\udfff]|\ud80d[\udc2f-\udfff]|\ud811[\ude47-\udfff]|\ud81a[\ude39-\ude3f\ude5f\ude6a-\ude6d\ude70-\udecf\udeee\udeef\udef6-\udeff\udf46-\udf4f\udf5a\udf62\udf78-\udf7c\udf90-\udfff]|\ud81b[\udc00-\udeff\udf45-\udf4f\udf7f-\udf8e\udfa0-\udfdf\udfe1-\udfff]|\ud821[\udfed-\udfff]|\ud822[\udef3-\udfff]|\ud82c[\udc02-\udfff]|\ud82f[\udc6b-\udc6f\udc7d-\udc7f\udc89-\udc8f\udc9a\udc9b\udca0-\udfff]|\ud834[\udcf6-\udcff\udd27\udd28\udd73-\udd7a\udde9-\uddff\ude46-\udeff\udf57-\udf5f\udf72-\udfff]|\ud835[\udc55\udc9d\udca0\udca1\udca3\udca4\udca7\udca8\udcad\udcba\udcbc\udcc4\udd06\udd0b\udd0c\udd15\udd1d\udd3a\udd3f\udd45\udd47-\udd49\udd51\udea6\udea7\udfcc\udfcd]|\ud836[\ude8c-\ude9a\udea0\udeb0-\udfff]|\ud838[\udc07\udc19\udc1a\udc22\udc25\udc2b-\udfff]|\ud83a[\udcc5\udcc6\udcd7-\udcff\udd4b-\udd4f\udd5a-\udd5d\udd60-\udfff]|\ud83b[\udc00-\uddff\ude04\ude20\ude23\ude25\ude26\ude28\ude33\ude38\ude3a\ude3c-\ude41\ude43-\ude46\ude48\ude4a\ude4c\ude50\ude53\ude55\ude56\ude58\ude5a\ude5c\ude5e\ude60\ude63\ude65\ude66\ude6b\ude73\ude78\ude7d\ude7f\ude8a\ude9c-\udea0\udea4\udeaa\udebc-\udeef\udef2-\udfff]|\ud83c[\udc2c-\udc2f\udc94-\udc9f\udcaf\udcb0\udcc0\udcd0\udcf6-\udcff\udd0d-\udd0f\udd2f\udd6c-\udd6f\uddad-\udde5\ude03-\ude0f\ude3c-\ude3f\ude49-\ude4f\ude52-\udeff]|\ud83d[\uded3-\udedf\udeed-\udeef\udef7-\udeff\udf74-\udf7f\udfd5-\udfff]|\ud83e[\udc0c-\udc0f\udc48-\udc4f\udc5a-\udc5f\udc88-\udc8f\udcae-\udd0f\udd1f\udd28-\udd2f\udd31\udd32\udd3f\udd4c-\udd4f\udd5f-\udd7f\udd92-\uddbf\uddc1-\udfff]|\ud869[\uded7-\udeff]|\ud86d[\udf35-\udf3f]|\ud86e[\udc1e\udc1f]|\ud873[\udea2-\udfff]|\ud87e[\ude1e-\udfff]|\udb40[\udc00-\udcff\uddf0-\udfff]"},
{name:"Cc",alias:"Control",bmp:"\x00-\u001f\u007f-\u009f"},{name:"Cf",alias:"Format",bmp:"\u00ad\u0600-\u0605\u061c\u06dd\u070f\u08e2\u180e\u200b-\u200f\u202a-\u202e\u2060-\u2064\u2066-\u206f\ufeff\ufff9-\ufffb",astral:"\ud804\udcbd|\ud82f[\udca0-\udca3]|\ud834[\udd73-\udd7a]|\udb40[\udc01\udc20-\udc7f]"},{name:"Cn",alias:"Unassigned",bmp:"\u0378\u0379\u0380-\u0383\u038b\u038d\u03a2\u0530\u0557\u0558\u0560\u0588\u058b\u058c\u0590\u05c8-\u05cf\u05eb-\u05ef\u05f5-\u05ff\u061d\u070e\u074b\u074c\u07b2-\u07bf\u07fb-\u07ff\u082e\u082f\u083f\u085c\u085d\u085f-\u089f\u08b5\u08be-\u08d3\u0984\u098d\u098e\u0991\u0992\u09a9\u09b1\u09b3-\u09b5\u09ba\u09bb\u09c5\u09c6\u09c9\u09ca\u09cf-\u09d6\u09d8-\u09db\u09de\u09e4\u09e5\u09fc-\u0a00\u0a04\u0a0b-\u0a0e\u0a11\u0a12\u0a29\u0a31\u0a34\u0a37\u0a3a\u0a3b\u0a3d\u0a43-\u0a46\u0a49\u0a4a\u0a4e-\u0a50\u0a52-\u0a58\u0a5d\u0a5f-\u0a65\u0a76-\u0a80\u0a84\u0a8e\u0a92\u0aa9\u0ab1\u0ab4\u0aba\u0abb\u0ac6\u0aca\u0ace\u0acf\u0ad1-\u0adf\u0ae4\u0ae5\u0af2-\u0af8\u0afa-\u0b00\u0b04\u0b0d\u0b0e\u0b11\u0b12\u0b29\u0b31\u0b34\u0b3a\u0b3b\u0b45\u0b46\u0b49\u0b4a\u0b4e-\u0b55\u0b58-\u0b5b\u0b5e\u0b64\u0b65\u0b78-\u0b81\u0b84\u0b8b-\u0b8d\u0b91\u0b96-\u0b98\u0b9b\u0b9d\u0ba0-\u0ba2\u0ba5-\u0ba7\u0bab-\u0bad\u0bba-\u0bbd\u0bc3-\u0bc5\u0bc9\u0bce\u0bcf\u0bd1-\u0bd6\u0bd8-\u0be5\u0bfb-\u0bff\u0c04\u0c0d\u0c11\u0c29\u0c3a-\u0c3c\u0c45\u0c49\u0c4e-\u0c54\u0c57\u0c5b-\u0c5f\u0c64\u0c65\u0c70-\u0c77\u0c84\u0c8d\u0c91\u0ca9\u0cb4\u0cba\u0cbb\u0cc5\u0cc9\u0cce-\u0cd4\u0cd7-\u0cdd\u0cdf\u0ce4\u0ce5\u0cf0\u0cf3-\u0d00\u0d04\u0d0d\u0d11\u0d3b\u0d3c\u0d45\u0d49\u0d50-\u0d53\u0d64\u0d65\u0d80\u0d81\u0d84\u0d97-\u0d99\u0db2\u0dbc\u0dbe\u0dbf\u0dc7-\u0dc9\u0dcb-\u0dce\u0dd5\u0dd7\u0de0-\u0de5\u0df0\u0df1\u0df5-\u0e00\u0e3b-\u0e3e\u0e5c-\u0e80\u0e83\u0e85\u0e86\u0e89\u0e8b\u0e8c\u0e8e-\u0e93\u0e98\u0ea0\u0ea4\u0ea6\u0ea8\u0ea9\u0eac\u0eba\u0ebe\u0ebf\u0ec5\u0ec7\u0ece\u0ecf\u0eda\u0edb\u0ee0-\u0eff\u0f48\u0f6d-\u0f70\u0f98\u0fbd\u0fcd\u0fdb-\u0fff\u10c6\u10c8-\u10cc\u10ce\u10cf\u1249\u124e\u124f\u1257\u1259\u125e\u125f\u1289\u128e\u128f\u12b1\u12b6\u12b7\u12bf\u12c1\u12c6\u12c7\u12d7\u1311\u1316\u1317\u135b\u135c\u137d-\u137f\u139a-\u139f\u13f6\u13f7\u13fe\u13ff\u169d-\u169f\u16f9-\u16ff\u170d\u1715-\u171f\u1737-\u173f\u1754-\u175f\u176d\u1771\u1774-\u177f\u17de\u17df\u17ea-\u17ef\u17fa-\u17ff\u180f\u181a-\u181f\u1878-\u187f\u18ab-\u18af\u18f6-\u18ff\u191f\u192c-\u192f\u193c-\u193f\u1941-\u1943\u196e\u196f\u1975-\u197f\u19ac-\u19af\u19ca-\u19cf\u19db-\u19dd\u1a1c\u1a1d\u1a5f\u1a7d\u1a7e\u1a8a-\u1a8f\u1a9a-\u1a9f\u1aae\u1aaf\u1abf-\u1aff\u1b4c-\u1b4f\u1b7d-\u1b7f\u1bf4-\u1bfb\u1c38-\u1c3a\u1c4a-\u1c4c\u1c89-\u1cbf\u1cc8-\u1ccf\u1cf7\u1cfa-\u1cff\u1df6-\u1dfa\u1f16\u1f17\u1f1e\u1f1f\u1f46\u1f47\u1f4e\u1f4f\u1f58\u1f5a\u1f5c\u1f5e\u1f7e\u1f7f\u1fb5\u1fc5\u1fd4\u1fd5\u1fdc\u1ff0\u1ff1\u1ff5\u1fff\u2065\u2072\u2073\u208f\u209d-\u209f\u20bf-\u20cf\u20f1-\u20ff\u218c-\u218f\u23ff\u2427-\u243f\u244b-\u245f\u2b74\u2b75\u2b96\u2b97\u2bba-\u2bbc\u2bc9\u2bd2-\u2beb\u2bf0-\u2bff\u2c2f\u2c5f\u2cf4-\u2cf8\u2d26\u2d28-\u2d2c\u2d2e\u2d2f\u2d68-\u2d6e\u2d71-\u2d7e\u2d97-\u2d9f\u2da7\u2daf\u2db7\u2dbf\u2dc7\u2dcf\u2dd7\u2ddf\u2e45-\u2e7f\u2e9a\u2ef4-\u2eff\u2fd6-\u2fef\u2ffc-\u2fff\u3040\u3097\u3098\u3100-\u3104\u312e-\u3130\u318f\u31bb-\u31bf\u31e4-\u31ef\u321f\u32ff\u4db6-\u4dbf\u9fd6-\u9fff\ua48d-\ua48f\ua4c7-\ua4cf\ua62c-\ua63f\ua6f8-\ua6ff\ua7af\ua7b8-\ua7f6\ua82c-\ua82f\ua83a-\ua83f\ua878-\ua87f\ua8c6-\ua8cd\ua8da-\ua8df\ua8fe\ua8ff\ua954-\ua95e\ua97d-\ua97f\ua9ce\ua9da-\ua9dd\ua9ff\uaa37-\uaa3f\uaa4e\uaa4f\uaa5a\uaa5b\uaac3-\uaada\uaaf7-\uab00\uab07\uab08\uab0f\uab10\uab17-\uab1f\uab27\uab2f\uab66-\uab6f\uabee\uabef\uabfa-\uabff\ud7a4-\ud7af\ud7c7-\ud7ca\ud7fc-\ud7ff\ufa6e\ufa6f\ufada-\ufaff\ufb07-\ufb12\ufb18-\ufb1c\ufb37\ufb3d\ufb3f\ufb42\ufb45\ufbc2-\ufbd2\ufd40-\ufd4f\ufd90\ufd91\ufdc8-\ufdef\ufdfe\ufdff\ufe1a-\ufe1f\ufe53\ufe67\ufe6c-\ufe6f\ufe75\ufefd\ufefe\uff00\uffbf-\uffc1\uffc8\uffc9\uffd0\uffd1\uffd8\uffd9\uffdd-\uffdf\uffe7\uffef-\ufff8\ufffe\uffff",
astral:"\ud800[\udc0c\udc27\udc3b\udc3e\udc4e\udc4f\udc5e-\udc7f\udcfb-\udcff\udd03-\udd06\udd34-\udd36\udd8f\udd9c-\udd9f\udda1-\uddcf\uddfe-\ude7f\ude9d-\ude9f\uded1-\udedf\udefc-\udeff\udf24-\udf2f\udf4b-\udf4f\udf7b-\udf7f\udf9e\udfc4-\udfc7\udfd6-\udfff]|\ud801[\udc9e\udc9f\udcaa-\udcaf\udcd4-\udcd7\udcfc-\udcff\udd28-\udd2f\udd64-\udd6e\udd70-\uddff\udf37-\udf3f\udf56-\udf5f\udf68-\udfff]|\ud802[\udc06\udc07\udc09\udc36\udc39-\udc3b\udc3d\udc3e\udc56\udc9f-\udca6\udcb0-\udcdf\udcf3\udcf6-\udcfa\udd1c-\udd1e\udd3a-\udd3e\udd40-\udd7f\uddb8-\uddbb\uddd0\uddd1\ude04\ude07-\ude0b\ude14\ude18\ude34-\ude37\ude3b-\ude3e\ude48-\ude4f\ude59-\ude5f\udea0-\udebf\udee7-\udeea\udef7-\udeff\udf36-\udf38\udf56\udf57\udf73-\udf77\udf92-\udf98\udf9d-\udfa8\udfb0-\udfff]|\ud803[\udc49-\udc7f\udcb3-\udcbf\udcf3-\udcf9\udd00-\ude5f\ude7f-\udfff]|\ud804[\udc4e-\udc51\udc70-\udc7e\udcc2-\udccf\udce9-\udcef\udcfa-\udcff\udd35\udd44-\udd4f\udd77-\udd7f\uddce\uddcf\udde0\uddf5-\uddff\ude12\ude3f-\ude7f\ude87\ude89\ude8e\ude9e\udeaa-\udeaf\udeeb-\udeef\udefa-\udeff\udf04\udf0d\udf0e\udf11\udf12\udf29\udf31\udf34\udf3a\udf3b\udf45\udf46\udf49\udf4a\udf4e\udf4f\udf51-\udf56\udf58-\udf5c\udf64\udf65\udf6d-\udf6f\udf75-\udfff]|\ud805[\udc5a\udc5c\udc5e-\udc7f\udcc8-\udccf\udcda-\udd7f\uddb6\uddb7\uddde-\uddff\ude45-\ude4f\ude5a-\ude5f\ude6d-\ude7f\udeb8-\udebf\udeca-\udeff\udf1a-\udf1c\udf2c-\udf2f\udf40-\udfff]|\ud806[\udc00-\udc9f\udcf3-\udcfe\udd00-\udebf\udef9-\udfff]|\ud807[\udc09\udc37\udc46-\udc4f\udc6d-\udc6f\udc90\udc91\udca8\udcb7-\udfff]|\ud808[\udf9a-\udfff]|\ud809[\udc6f\udc75-\udc7f\udd44-\udfff]|[\ud80a\ud80b\ud80e-\ud810\ud812-\ud819\ud823-\ud82b\ud82d\ud82e\ud830-\ud833\ud837\ud839\ud83f\ud874-\ud87d\ud87f-\udb3f\udb41-\udb7f][\udc00-\udfff]|\ud80d[\udc2f-\udfff]|\ud811[\ude47-\udfff]|\ud81a[\ude39-\ude3f\ude5f\ude6a-\ude6d\ude70-\udecf\udeee\udeef\udef6-\udeff\udf46-\udf4f\udf5a\udf62\udf78-\udf7c\udf90-\udfff]|\ud81b[\udc00-\udeff\udf45-\udf4f\udf7f-\udf8e\udfa0-\udfdf\udfe1-\udfff]|\ud821[\udfed-\udfff]|\ud822[\udef3-\udfff]|\ud82c[\udc02-\udfff]|\ud82f[\udc6b-\udc6f\udc7d-\udc7f\udc89-\udc8f\udc9a\udc9b\udca4-\udfff]|\ud834[\udcf6-\udcff\udd27\udd28\udde9-\uddff\ude46-\udeff\udf57-\udf5f\udf72-\udfff]|\ud835[\udc55\udc9d\udca0\udca1\udca3\udca4\udca7\udca8\udcad\udcba\udcbc\udcc4\udd06\udd0b\udd0c\udd15\udd1d\udd3a\udd3f\udd45\udd47-\udd49\udd51\udea6\udea7\udfcc\udfcd]|\ud836[\ude8c-\ude9a\udea0\udeb0-\udfff]|\ud838[\udc07\udc19\udc1a\udc22\udc25\udc2b-\udfff]|\ud83a[\udcc5\udcc6\udcd7-\udcff\udd4b-\udd4f\udd5a-\udd5d\udd60-\udfff]|\ud83b[\udc00-\uddff\ude04\ude20\ude23\ude25\ude26\ude28\ude33\ude38\ude3a\ude3c-\ude41\ude43-\ude46\ude48\ude4a\ude4c\ude50\ude53\ude55\ude56\ude58\ude5a\ude5c\ude5e\ude60\ude63\ude65\ude66\ude6b\ude73\ude78\ude7d\ude7f\ude8a\ude9c-\udea0\udea4\udeaa\udebc-\udeef\udef2-\udfff]|\ud83c[\udc2c-\udc2f\udc94-\udc9f\udcaf\udcb0\udcc0\udcd0\udcf6-\udcff\udd0d-\udd0f\udd2f\udd6c-\udd6f\uddad-\udde5\ude03-\ude0f\ude3c-\ude3f\ude49-\ude4f\ude52-\udeff]|\ud83d[\uded3-\udedf\udeed-\udeef\udef7-\udeff\udf74-\udf7f\udfd5-\udfff]|\ud83e[\udc0c-\udc0f\udc48-\udc4f\udc5a-\udc5f\udc88-\udc8f\udcae-\udd0f\udd1f\udd28-\udd2f\udd31\udd32\udd3f\udd4c-\udd4f\udd5f-\udd7f\udd92-\uddbf\uddc1-\udfff]|\ud869[\uded7-\udeff]|\ud86d[\udf35-\udf3f]|\ud86e[\udc1e\udc1f]|\ud873[\udea2-\udfff]|\ud87e[\ude1e-\udfff]|\udb40[\udc00\udc02-\udc1f\udc80-\udcff\uddf0-\udfff]|[\udbbf\udbff][\udffe\udfff]"},
{name:"Co",alias:"Private_Use",bmp:"\ue000-\uf8ff",astral:"[\udb80-\udbbe\udbc0-\udbfe][\udc00-\udfff]|[\udbbf\udbff][\udc00-\udffd]"},{name:"Cs",alias:"Surrogate",bmp:"\ud800-\udfff"},{name:"L",alias:"Letter",bmp:"A-Za-z\u00aa\u00b5\u00ba\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0370-\u0374\u0376\u0377\u037a-\u037d\u037f\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u048a-\u052f\u0531-\u0556\u0559\u0561-\u0587\u05d0-\u05ea\u05f0-\u05f2\u0620-\u064a\u066e\u066f\u0671-\u06d3\u06d5\u06e5\u06e6\u06ee\u06ef\u06fa-\u06fc\u06ff\u0710\u0712-\u072f\u074d-\u07a5\u07b1\u07ca-\u07ea\u07f4\u07f5\u07fa\u0800-\u0815\u081a\u0824\u0828\u0840-\u0858\u08a0-\u08b4\u08b6-\u08bd\u0904-\u0939\u093d\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098c\u098f\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bd\u09ce\u09dc\u09dd\u09df-\u09e1\u09f0\u09f1\u0a05-\u0a0a\u0a0f\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32\u0a33\u0a35\u0a36\u0a38\u0a39\u0a59-\u0a5c\u0a5e\u0a72-\u0a74\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2\u0ab3\u0ab5-\u0ab9\u0abd\u0ad0\u0ae0\u0ae1\u0af9\u0b05-\u0b0c\u0b0f\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32\u0b33\u0b35-\u0b39\u0b3d\u0b5c\u0b5d\u0b5f-\u0b61\u0b71\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99\u0b9a\u0b9c\u0b9e\u0b9f\u0ba3\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bd0\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c39\u0c3d\u0c58-\u0c5a\u0c60\u0c61\u0c80\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbd\u0cde\u0ce0\u0ce1\u0cf1\u0cf2\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d\u0d4e\u0d54-\u0d56\u0d5f-\u0d61\u0d7a-\u0d7f\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0e01-\u0e30\u0e32\u0e33\u0e40-\u0e46\u0e81\u0e82\u0e84\u0e87\u0e88\u0e8a\u0e8d\u0e94-\u0e97\u0e99-\u0e9f\u0ea1-\u0ea3\u0ea5\u0ea7\u0eaa\u0eab\u0ead-\u0eb0\u0eb2\u0eb3\u0ebd\u0ec0-\u0ec4\u0ec6\u0edc-\u0edf\u0f00\u0f40-\u0f47\u0f49-\u0f6c\u0f88-\u0f8c\u1000-\u102a\u103f\u1050-\u1055\u105a-\u105d\u1061\u1065\u1066\u106e-\u1070\u1075-\u1081\u108e\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u1380-\u138f\u13a0-\u13f5\u13f8-\u13fd\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16f1-\u16f8\u1700-\u170c\u170e-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176c\u176e-\u1770\u1780-\u17b3\u17d7\u17dc\u1820-\u1877\u1880-\u1884\u1887-\u18a8\u18aa\u18b0-\u18f5\u1900-\u191e\u1950-\u196d\u1970-\u1974\u1980-\u19ab\u19b0-\u19c9\u1a00-\u1a16\u1a20-\u1a54\u1aa7\u1b05-\u1b33\u1b45-\u1b4b\u1b83-\u1ba0\u1bae\u1baf\u1bba-\u1be5\u1c00-\u1c23\u1c4d-\u1c4f\u1c5a-\u1c7d\u1c80-\u1c88\u1ce9-\u1cec\u1cee-\u1cf1\u1cf5\u1cf6\u1d00-\u1dbf\u1e00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u2071\u207f\u2090-\u209c\u2102\u2107\u210a-\u2113\u2115\u2119-\u211d\u2124\u2126\u2128\u212a-\u212d\u212f-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2183\u2184\u2c00-\u2c2e\u2c30-\u2c5e\u2c60-\u2ce4\u2ceb-\u2cee\u2cf2\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u2e2f\u3005\u3006\u3031-\u3035\u303b\u303c\u3041-\u3096\u309d-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312d\u3131-\u318e\u31a0-\u31ba\u31f0-\u31ff\u3400-\u4db5\u4e00-\u9fd5\ua000-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua61f\ua62a\ua62b\ua640-\ua66e\ua67f-\ua69d\ua6a0-\ua6e5\ua717-\ua71f\ua722-\ua788\ua78b-\ua7ae\ua7b0-\ua7b7\ua7f7-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua822\ua840-\ua873\ua882-\ua8b3\ua8f2-\ua8f7\ua8fb\ua8fd\ua90a-\ua925\ua930-\ua946\ua960-\ua97c\ua984-\ua9b2\ua9cf\ua9e0-\ua9e4\ua9e6-\ua9ef\ua9fa-\ua9fe\uaa00-\uaa28\uaa40-\uaa42\uaa44-\uaa4b\uaa60-\uaa76\uaa7a\uaa7e-\uaaaf\uaab1\uaab5\uaab6\uaab9-\uaabd\uaac0\uaac2\uaadb-\uaadd\uaae0-\uaaea\uaaf2-\uaaf4\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uab30-\uab5a\uab5c-\uab65\uab70-\uabe2\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\ufb1d\ufb1f-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40\ufb41\ufb43\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe70-\ufe74\ufe76-\ufefc\uff21-\uff3a\uff41-\uff5a\uff66-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc",
astral:"\ud800[\udc00-\udc0b\udc0d-\udc26\udc28-\udc3a\udc3c\udc3d\udc3f-\udc4d\udc50-\udc5d\udc80-\udcfa\ude80-\ude9c\udea0-\uded0\udf00-\udf1f\udf30-\udf40\udf42-\udf49\udf50-\udf75\udf80-\udf9d\udfa0-\udfc3\udfc8-\udfcf]|\ud801[\udc00-\udc9d\udcb0-\udcd3\udcd8-\udcfb\udd00-\udd27\udd30-\udd63\ude00-\udf36\udf40-\udf55\udf60-\udf67]|\ud802[\udc00-\udc05\udc08\udc0a-\udc35\udc37\udc38\udc3c\udc3f-\udc55\udc60-\udc76\udc80-\udc9e\udce0-\udcf2\udcf4\udcf5\udd00-\udd15\udd20-\udd39\udd80-\uddb7\uddbe\uddbf\ude00\ude10-\ude13\ude15-\ude17\ude19-\ude33\ude60-\ude7c\ude80-\ude9c\udec0-\udec7\udec9-\udee4\udf00-\udf35\udf40-\udf55\udf60-\udf72\udf80-\udf91]|\ud803[\udc00-\udc48\udc80-\udcb2\udcc0-\udcf2]|\ud804[\udc03-\udc37\udc83-\udcaf\udcd0-\udce8\udd03-\udd26\udd50-\udd72\udd76\udd83-\uddb2\uddc1-\uddc4\uddda\udddc\ude00-\ude11\ude13-\ude2b\ude80-\ude86\ude88\ude8a-\ude8d\ude8f-\ude9d\ude9f-\udea8\udeb0-\udede\udf05-\udf0c\udf0f\udf10\udf13-\udf28\udf2a-\udf30\udf32\udf33\udf35-\udf39\udf3d\udf50\udf5d-\udf61]|\ud805[\udc00-\udc34\udc47-\udc4a\udc80-\udcaf\udcc4\udcc5\udcc7\udd80-\uddae\uddd8-\udddb\ude00-\ude2f\ude44\ude80-\udeaa\udf00-\udf19]|\ud806[\udca0-\udcdf\udcff\udec0-\udef8]|\ud807[\udc00-\udc08\udc0a-\udc2e\udc40\udc72-\udc8f]|\ud808[\udc00-\udf99]|\ud809[\udc80-\udd43]|[\ud80c\ud81c-\ud820\ud840-\ud868\ud86a-\ud86c\ud86f-\ud872][\udc00-\udfff]|\ud80d[\udc00-\udc2e]|\ud811[\udc00-\ude46]|\ud81a[\udc00-\ude38\ude40-\ude5e\uded0-\udeed\udf00-\udf2f\udf40-\udf43\udf63-\udf77\udf7d-\udf8f]|\ud81b[\udf00-\udf44\udf50\udf93-\udf9f\udfe0]|\ud821[\udc00-\udfec]|\ud822[\udc00-\udef2]|\ud82c[\udc00\udc01]|\ud82f[\udc00-\udc6a\udc70-\udc7c\udc80-\udc88\udc90-\udc99]|\ud835[\udc00-\udc54\udc56-\udc9c\udc9e\udc9f\udca2\udca5\udca6\udca9-\udcac\udcae-\udcb9\udcbb\udcbd-\udcc3\udcc5-\udd05\udd07-\udd0a\udd0d-\udd14\udd16-\udd1c\udd1e-\udd39\udd3b-\udd3e\udd40-\udd44\udd46\udd4a-\udd50\udd52-\udea5\udea8-\udec0\udec2-\udeda\udedc-\udefa\udefc-\udf14\udf16-\udf34\udf36-\udf4e\udf50-\udf6e\udf70-\udf88\udf8a-\udfa8\udfaa-\udfc2\udfc4-\udfcb]|\ud83a[\udc00-\udcc4\udd00-\udd43]|\ud83b[\ude00-\ude03\ude05-\ude1f\ude21\ude22\ude24\ude27\ude29-\ude32\ude34-\ude37\ude39\ude3b\ude42\ude47\ude49\ude4b\ude4d-\ude4f\ude51\ude52\ude54\ude57\ude59\ude5b\ude5d\ude5f\ude61\ude62\ude64\ude67-\ude6a\ude6c-\ude72\ude74-\ude77\ude79-\ude7c\ude7e\ude80-\ude89\ude8b-\ude9b\udea1-\udea3\udea5-\udea9\udeab-\udebb]|\ud869[\udc00-\uded6\udf00-\udfff]|\ud86d[\udc00-\udf34\udf40-\udfff]|\ud86e[\udc00-\udc1d\udc20-\udfff]|\ud873[\udc00-\udea1]|\ud87e[\udc00-\ude1d]"},
{name:"Ll",alias:"Lowercase_Letter",bmp:"a-z\u00b5\u00df-\u00f6\u00f8-\u00ff\u0101\u0103\u0105\u0107\u0109\u010b\u010d\u010f\u0111\u0113\u0115\u0117\u0119\u011b\u011d\u011f\u0121\u0123\u0125\u0127\u0129\u012b\u012d\u012f\u0131\u0133\u0135\u0137\u0138\u013a\u013c\u013e\u0140\u0142\u0144\u0146\u0148\u0149\u014b\u014d\u014f\u0151\u0153\u0155\u0157\u0159\u015b\u015d\u015f\u0161\u0163\u0165\u0167\u0169\u016b\u016d\u016f\u0171\u0173\u0175\u0177\u017a\u017c\u017e-\u0180\u0183\u0185\u0188\u018c\u018d\u0192\u0195\u0199-\u019b\u019e\u01a1\u01a3\u01a5\u01a8\u01aa\u01ab\u01ad\u01b0\u01b4\u01b6\u01b9\u01ba\u01bd-\u01bf\u01c6\u01c9\u01cc\u01ce\u01d0\u01d2\u01d4\u01d6\u01d8\u01da\u01dc\u01dd\u01df\u01e1\u01e3\u01e5\u01e7\u01e9\u01eb\u01ed\u01ef\u01f0\u01f3\u01f5\u01f9\u01fb\u01fd\u01ff\u0201\u0203\u0205\u0207\u0209\u020b\u020d\u020f\u0211\u0213\u0215\u0217\u0219\u021b\u021d\u021f\u0221\u0223\u0225\u0227\u0229\u022b\u022d\u022f\u0231\u0233-\u0239\u023c\u023f\u0240\u0242\u0247\u0249\u024b\u024d\u024f-\u0293\u0295-\u02af\u0371\u0373\u0377\u037b-\u037d\u0390\u03ac-\u03ce\u03d0\u03d1\u03d5-\u03d7\u03d9\u03db\u03dd\u03df\u03e1\u03e3\u03e5\u03e7\u03e9\u03eb\u03ed\u03ef-\u03f3\u03f5\u03f8\u03fb\u03fc\u0430-\u045f\u0461\u0463\u0465\u0467\u0469\u046b\u046d\u046f\u0471\u0473\u0475\u0477\u0479\u047b\u047d\u047f\u0481\u048b\u048d\u048f\u0491\u0493\u0495\u0497\u0499\u049b\u049d\u049f\u04a1\u04a3\u04a5\u04a7\u04a9\u04ab\u04ad\u04af\u04b1\u04b3\u04b5\u04b7\u04b9\u04bb\u04bd\u04bf\u04c2\u04c4\u04c6\u04c8\u04ca\u04cc\u04ce\u04cf\u04d1\u04d3\u04d5\u04d7\u04d9\u04db\u04dd\u04df\u04e1\u04e3\u04e5\u04e7\u04e9\u04eb\u04ed\u04ef\u04f1\u04f3\u04f5\u04f7\u04f9\u04fb\u04fd\u04ff\u0501\u0503\u0505\u0507\u0509\u050b\u050d\u050f\u0511\u0513\u0515\u0517\u0519\u051b\u051d\u051f\u0521\u0523\u0525\u0527\u0529\u052b\u052d\u052f\u0561-\u0587\u13f8-\u13fd\u1c80-\u1c88\u1d00-\u1d2b\u1d6b-\u1d77\u1d79-\u1d9a\u1e01\u1e03\u1e05\u1e07\u1e09\u1e0b\u1e0d\u1e0f\u1e11\u1e13\u1e15\u1e17\u1e19\u1e1b\u1e1d\u1e1f\u1e21\u1e23\u1e25\u1e27\u1e29\u1e2b\u1e2d\u1e2f\u1e31\u1e33\u1e35\u1e37\u1e39\u1e3b\u1e3d\u1e3f\u1e41\u1e43\u1e45\u1e47\u1e49\u1e4b\u1e4d\u1e4f\u1e51\u1e53\u1e55\u1e57\u1e59\u1e5b\u1e5d\u1e5f\u1e61\u1e63\u1e65\u1e67\u1e69\u1e6b\u1e6d\u1e6f\u1e71\u1e73\u1e75\u1e77\u1e79\u1e7b\u1e7d\u1e7f\u1e81\u1e83\u1e85\u1e87\u1e89\u1e8b\u1e8d\u1e8f\u1e91\u1e93\u1e95-\u1e9d\u1e9f\u1ea1\u1ea3\u1ea5\u1ea7\u1ea9\u1eab\u1ead\u1eaf\u1eb1\u1eb3\u1eb5\u1eb7\u1eb9\u1ebb\u1ebd\u1ebf\u1ec1\u1ec3\u1ec5\u1ec7\u1ec9\u1ecb\u1ecd\u1ecf\u1ed1\u1ed3\u1ed5\u1ed7\u1ed9\u1edb\u1edd\u1edf\u1ee1\u1ee3\u1ee5\u1ee7\u1ee9\u1eeb\u1eed\u1eef\u1ef1\u1ef3\u1ef5\u1ef7\u1ef9\u1efb\u1efd\u1eff-\u1f07\u1f10-\u1f15\u1f20-\u1f27\u1f30-\u1f37\u1f40-\u1f45\u1f50-\u1f57\u1f60-\u1f67\u1f70-\u1f7d\u1f80-\u1f87\u1f90-\u1f97\u1fa0-\u1fa7\u1fb0-\u1fb4\u1fb6\u1fb7\u1fbe\u1fc2-\u1fc4\u1fc6\u1fc7\u1fd0-\u1fd3\u1fd6\u1fd7\u1fe0-\u1fe7\u1ff2-\u1ff4\u1ff6\u1ff7\u210a\u210e\u210f\u2113\u212f\u2134\u2139\u213c\u213d\u2146-\u2149\u214e\u2184\u2c30-\u2c5e\u2c61\u2c65\u2c66\u2c68\u2c6a\u2c6c\u2c71\u2c73\u2c74\u2c76-\u2c7b\u2c81\u2c83\u2c85\u2c87\u2c89\u2c8b\u2c8d\u2c8f\u2c91\u2c93\u2c95\u2c97\u2c99\u2c9b\u2c9d\u2c9f\u2ca1\u2ca3\u2ca5\u2ca7\u2ca9\u2cab\u2cad\u2caf\u2cb1\u2cb3\u2cb5\u2cb7\u2cb9\u2cbb\u2cbd\u2cbf\u2cc1\u2cc3\u2cc5\u2cc7\u2cc9\u2ccb\u2ccd\u2ccf\u2cd1\u2cd3\u2cd5\u2cd7\u2cd9\u2cdb\u2cdd\u2cdf\u2ce1\u2ce3\u2ce4\u2cec\u2cee\u2cf3\u2d00-\u2d25\u2d27\u2d2d\ua641\ua643\ua645\ua647\ua649\ua64b\ua64d\ua64f\ua651\ua653\ua655\ua657\ua659\ua65b\ua65d\ua65f\ua661\ua663\ua665\ua667\ua669\ua66b\ua66d\ua681\ua683\ua685\ua687\ua689\ua68b\ua68d\ua68f\ua691\ua693\ua695\ua697\ua699\ua69b\ua723\ua725\ua727\ua729\ua72b\ua72d\ua72f-\ua731\ua733\ua735\ua737\ua739\ua73b\ua73d\ua73f\ua741\ua743\ua745\ua747\ua749\ua74b\ua74d\ua74f\ua751\ua753\ua755\ua757\ua759\ua75b\ua75d\ua75f\ua761\ua763\ua765\ua767\ua769\ua76b\ua76d\ua76f\ua771-\ua778\ua77a\ua77c\ua77f\ua781\ua783\ua785\ua787\ua78c\ua78e\ua791\ua793-\ua795\ua797\ua799\ua79b\ua79d\ua79f\ua7a1\ua7a3\ua7a5\ua7a7\ua7a9\ua7b5\ua7b7\ua7fa\uab30-\uab5a\uab60-\uab65\uab70-\uabbf\ufb00-\ufb06\ufb13-\ufb17\uff41-\uff5a",
astral:"\ud801[\udc28-\udc4f\udcd8-\udcfb]|\ud803[\udcc0-\udcf2]|\ud806[\udcc0-\udcdf]|\ud835[\udc1a-\udc33\udc4e-\udc54\udc56-\udc67\udc82-\udc9b\udcb6-\udcb9\udcbb\udcbd-\udcc3\udcc5-\udccf\udcea-\udd03\udd1e-\udd37\udd52-\udd6b\udd86-\udd9f\uddba-\uddd3\uddee-\ude07\ude22-\ude3b\ude56-\ude6f\ude8a-\udea5\udec2-\udeda\udedc-\udee1\udefc-\udf14\udf16-\udf1b\udf36-\udf4e\udf50-\udf55\udf70-\udf88\udf8a-\udf8f\udfaa-\udfc2\udfc4-\udfc9\udfcb]|\ud83a[\udd22-\udd43]"},{name:"Lm",alias:"Modifier_Letter",
bmp:"\u02b0-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0374\u037a\u0559\u0640\u06e5\u06e6\u07f4\u07f5\u07fa\u081a\u0824\u0828\u0971\u0e46\u0ec6\u10fc\u17d7\u1843\u1aa7\u1c78-\u1c7d\u1d2c-\u1d6a\u1d78\u1d9b-\u1dbf\u2071\u207f\u2090-\u209c\u2c7c\u2c7d\u2d6f\u2e2f\u3005\u3031-\u3035\u303b\u309d\u309e\u30fc-\u30fe\ua015\ua4f8-\ua4fd\ua60c\ua67f\ua69c\ua69d\ua717-\ua71f\ua770\ua788\ua7f8\ua7f9\ua9cf\ua9e6\uaa70\uaadd\uaaf3\uaaf4\uab5c-\uab5f\uff70\uff9e\uff9f",astral:"\ud81a[\udf40-\udf43]|\ud81b[\udf93-\udf9f\udfe0]"},
{name:"Lo",alias:"Other_Letter",bmp:"\u00aa\u00ba\u01bb\u01c0-\u01c3\u0294\u05d0-\u05ea\u05f0-\u05f2\u0620-\u063f\u0641-\u064a\u066e\u066f\u0671-\u06d3\u06d5\u06ee\u06ef\u06fa-\u06fc\u06ff\u0710\u0712-\u072f\u074d-\u07a5\u07b1\u07ca-\u07ea\u0800-\u0815\u0840-\u0858\u08a0-\u08b4\u08b6-\u08bd\u0904-\u0939\u093d\u0950\u0958-\u0961\u0972-\u0980\u0985-\u098c\u098f\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bd\u09ce\u09dc\u09dd\u09df-\u09e1\u09f0\u09f1\u0a05-\u0a0a\u0a0f\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32\u0a33\u0a35\u0a36\u0a38\u0a39\u0a59-\u0a5c\u0a5e\u0a72-\u0a74\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2\u0ab3\u0ab5-\u0ab9\u0abd\u0ad0\u0ae0\u0ae1\u0af9\u0b05-\u0b0c\u0b0f\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32\u0b33\u0b35-\u0b39\u0b3d\u0b5c\u0b5d\u0b5f-\u0b61\u0b71\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99\u0b9a\u0b9c\u0b9e\u0b9f\u0ba3\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bd0\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c39\u0c3d\u0c58-\u0c5a\u0c60\u0c61\u0c80\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbd\u0cde\u0ce0\u0ce1\u0cf1\u0cf2\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d\u0d4e\u0d54-\u0d56\u0d5f-\u0d61\u0d7a-\u0d7f\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0e01-\u0e30\u0e32\u0e33\u0e40-\u0e45\u0e81\u0e82\u0e84\u0e87\u0e88\u0e8a\u0e8d\u0e94-\u0e97\u0e99-\u0e9f\u0ea1-\u0ea3\u0ea5\u0ea7\u0eaa\u0eab\u0ead-\u0eb0\u0eb2\u0eb3\u0ebd\u0ec0-\u0ec4\u0edc-\u0edf\u0f00\u0f40-\u0f47\u0f49-\u0f6c\u0f88-\u0f8c\u1000-\u102a\u103f\u1050-\u1055\u105a-\u105d\u1061\u1065\u1066\u106e-\u1070\u1075-\u1081\u108e\u10d0-\u10fa\u10fd-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u1380-\u138f\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16f1-\u16f8\u1700-\u170c\u170e-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176c\u176e-\u1770\u1780-\u17b3\u17dc\u1820-\u1842\u1844-\u1877\u1880-\u1884\u1887-\u18a8\u18aa\u18b0-\u18f5\u1900-\u191e\u1950-\u196d\u1970-\u1974\u1980-\u19ab\u19b0-\u19c9\u1a00-\u1a16\u1a20-\u1a54\u1b05-\u1b33\u1b45-\u1b4b\u1b83-\u1ba0\u1bae\u1baf\u1bba-\u1be5\u1c00-\u1c23\u1c4d-\u1c4f\u1c5a-\u1c77\u1ce9-\u1cec\u1cee-\u1cf1\u1cf5\u1cf6\u2135-\u2138\u2d30-\u2d67\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u3006\u303c\u3041-\u3096\u309f\u30a1-\u30fa\u30ff\u3105-\u312d\u3131-\u318e\u31a0-\u31ba\u31f0-\u31ff\u3400-\u4db5\u4e00-\u9fd5\ua000-\ua014\ua016-\ua48c\ua4d0-\ua4f7\ua500-\ua60b\ua610-\ua61f\ua62a\ua62b\ua66e\ua6a0-\ua6e5\ua78f\ua7f7\ua7fb-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua822\ua840-\ua873\ua882-\ua8b3\ua8f2-\ua8f7\ua8fb\ua8fd\ua90a-\ua925\ua930-\ua946\ua960-\ua97c\ua984-\ua9b2\ua9e0-\ua9e4\ua9e7-\ua9ef\ua9fa-\ua9fe\uaa00-\uaa28\uaa40-\uaa42\uaa44-\uaa4b\uaa60-\uaa6f\uaa71-\uaa76\uaa7a\uaa7e-\uaaaf\uaab1\uaab5\uaab6\uaab9-\uaabd\uaac0\uaac2\uaadb\uaadc\uaae0-\uaaea\uaaf2\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uabc0-\uabe2\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufb1d\ufb1f-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40\ufb41\ufb43\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe70-\ufe74\ufe76-\ufefc\uff66-\uff6f\uff71-\uff9d\uffa0-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc",
astral:"\ud800[\udc00-\udc0b\udc0d-\udc26\udc28-\udc3a\udc3c\udc3d\udc3f-\udc4d\udc50-\udc5d\udc80-\udcfa\ude80-\ude9c\udea0-\uded0\udf00-\udf1f\udf30-\udf40\udf42-\udf49\udf50-\udf75\udf80-\udf9d\udfa0-\udfc3\udfc8-\udfcf]|\ud801[\udc50-\udc9d\udd00-\udd27\udd30-\udd63\ude00-\udf36\udf40-\udf55\udf60-\udf67]|\ud802[\udc00-\udc05\udc08\udc0a-\udc35\udc37\udc38\udc3c\udc3f-\udc55\udc60-\udc76\udc80-\udc9e\udce0-\udcf2\udcf4\udcf5\udd00-\udd15\udd20-\udd39\udd80-\uddb7\uddbe\uddbf\ude00\ude10-\ude13\ude15-\ude17\ude19-\ude33\ude60-\ude7c\ude80-\ude9c\udec0-\udec7\udec9-\udee4\udf00-\udf35\udf40-\udf55\udf60-\udf72\udf80-\udf91]|\ud803[\udc00-\udc48]|\ud804[\udc03-\udc37\udc83-\udcaf\udcd0-\udce8\udd03-\udd26\udd50-\udd72\udd76\udd83-\uddb2\uddc1-\uddc4\uddda\udddc\ude00-\ude11\ude13-\ude2b\ude80-\ude86\ude88\ude8a-\ude8d\ude8f-\ude9d\ude9f-\udea8\udeb0-\udede\udf05-\udf0c\udf0f\udf10\udf13-\udf28\udf2a-\udf30\udf32\udf33\udf35-\udf39\udf3d\udf50\udf5d-\udf61]|\ud805[\udc00-\udc34\udc47-\udc4a\udc80-\udcaf\udcc4\udcc5\udcc7\udd80-\uddae\uddd8-\udddb\ude00-\ude2f\ude44\ude80-\udeaa\udf00-\udf19]|\ud806[\udcff\udec0-\udef8]|\ud807[\udc00-\udc08\udc0a-\udc2e\udc40\udc72-\udc8f]|\ud808[\udc00-\udf99]|\ud809[\udc80-\udd43]|[\ud80c\ud81c-\ud820\ud840-\ud868\ud86a-\ud86c\ud86f-\ud872][\udc00-\udfff]|\ud80d[\udc00-\udc2e]|\ud811[\udc00-\ude46]|\ud81a[\udc00-\ude38\ude40-\ude5e\uded0-\udeed\udf00-\udf2f\udf63-\udf77\udf7d-\udf8f]|\ud81b[\udf00-\udf44\udf50]|\ud821[\udc00-\udfec]|\ud822[\udc00-\udef2]|\ud82c[\udc00\udc01]|\ud82f[\udc00-\udc6a\udc70-\udc7c\udc80-\udc88\udc90-\udc99]|\ud83a[\udc00-\udcc4]|\ud83b[\ude00-\ude03\ude05-\ude1f\ude21\ude22\ude24\ude27\ude29-\ude32\ude34-\ude37\ude39\ude3b\ude42\ude47\ude49\ude4b\ude4d-\ude4f\ude51\ude52\ude54\ude57\ude59\ude5b\ude5d\ude5f\ude61\ude62\ude64\ude67-\ude6a\ude6c-\ude72\ude74-\ude77\ude79-\ude7c\ude7e\ude80-\ude89\ude8b-\ude9b\udea1-\udea3\udea5-\udea9\udeab-\udebb]|\ud869[\udc00-\uded6\udf00-\udfff]|\ud86d[\udc00-\udf34\udf40-\udfff]|\ud86e[\udc00-\udc1d\udc20-\udfff]|\ud873[\udc00-\udea1]|\ud87e[\udc00-\ude1d]"},
{name:"Lt",alias:"Titlecase_Letter",bmp:"\u01c5\u01c8\u01cb\u01f2\u1f88-\u1f8f\u1f98-\u1f9f\u1fa8-\u1faf\u1fbc\u1fcc\u1ffc"},{name:"Lu",alias:"Uppercase_Letter",bmp:"A-Z\u00c0-\u00d6\u00d8-\u00de\u0100\u0102\u0104\u0106\u0108\u010a\u010c\u010e\u0110\u0112\u0114\u0116\u0118\u011a\u011c\u011e\u0120\u0122\u0124\u0126\u0128\u012a\u012c\u012e\u0130\u0132\u0134\u0136\u0139\u013b\u013d\u013f\u0141\u0143\u0145\u0147\u014a\u014c\u014e\u0150\u0152\u0154\u0156\u0158\u015a\u015c\u015e\u0160\u0162\u0164\u0166\u0168\u016a\u016c\u016e\u0170\u0172\u0174\u0176\u0178\u0179\u017b\u017d\u0181\u0182\u0184\u0186\u0187\u0189-\u018b\u018e-\u0191\u0193\u0194\u0196-\u0198\u019c\u019d\u019f\u01a0\u01a2\u01a4\u01a6\u01a7\u01a9\u01ac\u01ae\u01af\u01b1-\u01b3\u01b5\u01b7\u01b8\u01bc\u01c4\u01c7\u01ca\u01cd\u01cf\u01d1\u01d3\u01d5\u01d7\u01d9\u01db\u01de\u01e0\u01e2\u01e4\u01e6\u01e8\u01ea\u01ec\u01ee\u01f1\u01f4\u01f6-\u01f8\u01fa\u01fc\u01fe\u0200\u0202\u0204\u0206\u0208\u020a\u020c\u020e\u0210\u0212\u0214\u0216\u0218\u021a\u021c\u021e\u0220\u0222\u0224\u0226\u0228\u022a\u022c\u022e\u0230\u0232\u023a\u023b\u023d\u023e\u0241\u0243-\u0246\u0248\u024a\u024c\u024e\u0370\u0372\u0376\u037f\u0386\u0388-\u038a\u038c\u038e\u038f\u0391-\u03a1\u03a3-\u03ab\u03cf\u03d2-\u03d4\u03d8\u03da\u03dc\u03de\u03e0\u03e2\u03e4\u03e6\u03e8\u03ea\u03ec\u03ee\u03f4\u03f7\u03f9\u03fa\u03fd-\u042f\u0460\u0462\u0464\u0466\u0468\u046a\u046c\u046e\u0470\u0472\u0474\u0476\u0478\u047a\u047c\u047e\u0480\u048a\u048c\u048e\u0490\u0492\u0494\u0496\u0498\u049a\u049c\u049e\u04a0\u04a2\u04a4\u04a6\u04a8\u04aa\u04ac\u04ae\u04b0\u04b2\u04b4\u04b6\u04b8\u04ba\u04bc\u04be\u04c0\u04c1\u04c3\u04c5\u04c7\u04c9\u04cb\u04cd\u04d0\u04d2\u04d4\u04d6\u04d8\u04da\u04dc\u04de\u04e0\u04e2\u04e4\u04e6\u04e8\u04ea\u04ec\u04ee\u04f0\u04f2\u04f4\u04f6\u04f8\u04fa\u04fc\u04fe\u0500\u0502\u0504\u0506\u0508\u050a\u050c\u050e\u0510\u0512\u0514\u0516\u0518\u051a\u051c\u051e\u0520\u0522\u0524\u0526\u0528\u052a\u052c\u052e\u0531-\u0556\u10a0-\u10c5\u10c7\u10cd\u13a0-\u13f5\u1e00\u1e02\u1e04\u1e06\u1e08\u1e0a\u1e0c\u1e0e\u1e10\u1e12\u1e14\u1e16\u1e18\u1e1a\u1e1c\u1e1e\u1e20\u1e22\u1e24\u1e26\u1e28\u1e2a\u1e2c\u1e2e\u1e30\u1e32\u1e34\u1e36\u1e38\u1e3a\u1e3c\u1e3e\u1e40\u1e42\u1e44\u1e46\u1e48\u1e4a\u1e4c\u1e4e\u1e50\u1e52\u1e54\u1e56\u1e58\u1e5a\u1e5c\u1e5e\u1e60\u1e62\u1e64\u1e66\u1e68\u1e6a\u1e6c\u1e6e\u1e70\u1e72\u1e74\u1e76\u1e78\u1e7a\u1e7c\u1e7e\u1e80\u1e82\u1e84\u1e86\u1e88\u1e8a\u1e8c\u1e8e\u1e90\u1e92\u1e94\u1e9e\u1ea0\u1ea2\u1ea4\u1ea6\u1ea8\u1eaa\u1eac\u1eae\u1eb0\u1eb2\u1eb4\u1eb6\u1eb8\u1eba\u1ebc\u1ebe\u1ec0\u1ec2\u1ec4\u1ec6\u1ec8\u1eca\u1ecc\u1ece\u1ed0\u1ed2\u1ed4\u1ed6\u1ed8\u1eda\u1edc\u1ede\u1ee0\u1ee2\u1ee4\u1ee6\u1ee8\u1eea\u1eec\u1eee\u1ef0\u1ef2\u1ef4\u1ef6\u1ef8\u1efa\u1efc\u1efe\u1f08-\u1f0f\u1f18-\u1f1d\u1f28-\u1f2f\u1f38-\u1f3f\u1f48-\u1f4d\u1f59\u1f5b\u1f5d\u1f5f\u1f68-\u1f6f\u1fb8-\u1fbb\u1fc8-\u1fcb\u1fd8-\u1fdb\u1fe8-\u1fec\u1ff8-\u1ffb\u2102\u2107\u210b-\u210d\u2110-\u2112\u2115\u2119-\u211d\u2124\u2126\u2128\u212a-\u212d\u2130-\u2133\u213e\u213f\u2145\u2183\u2c00-\u2c2e\u2c60\u2c62-\u2c64\u2c67\u2c69\u2c6b\u2c6d-\u2c70\u2c72\u2c75\u2c7e-\u2c80\u2c82\u2c84\u2c86\u2c88\u2c8a\u2c8c\u2c8e\u2c90\u2c92\u2c94\u2c96\u2c98\u2c9a\u2c9c\u2c9e\u2ca0\u2ca2\u2ca4\u2ca6\u2ca8\u2caa\u2cac\u2cae\u2cb0\u2cb2\u2cb4\u2cb6\u2cb8\u2cba\u2cbc\u2cbe\u2cc0\u2cc2\u2cc4\u2cc6\u2cc8\u2cca\u2ccc\u2cce\u2cd0\u2cd2\u2cd4\u2cd6\u2cd8\u2cda\u2cdc\u2cde\u2ce0\u2ce2\u2ceb\u2ced\u2cf2\ua640\ua642\ua644\ua646\ua648\ua64a\ua64c\ua64e\ua650\ua652\ua654\ua656\ua658\ua65a\ua65c\ua65e\ua660\ua662\ua664\ua666\ua668\ua66a\ua66c\ua680\ua682\ua684\ua686\ua688\ua68a\ua68c\ua68e\ua690\ua692\ua694\ua696\ua698\ua69a\ua722\ua724\ua726\ua728\ua72a\ua72c\ua72e\ua732\ua734\ua736\ua738\ua73a\ua73c\ua73e\ua740\ua742\ua744\ua746\ua748\ua74a\ua74c\ua74e\ua750\ua752\ua754\ua756\ua758\ua75a\ua75c\ua75e\ua760\ua762\ua764\ua766\ua768\ua76a\ua76c\ua76e\ua779\ua77b\ua77d\ua77e\ua780\ua782\ua784\ua786\ua78b\ua78d\ua790\ua792\ua796\ua798\ua79a\ua79c\ua79e\ua7a0\ua7a2\ua7a4\ua7a6\ua7a8\ua7aa-\ua7ae\ua7b0-\ua7b4\ua7b6\uff21-\uff3a",
astral:"\ud801[\udc00-\udc27\udcb0-\udcd3]|\ud803[\udc80-\udcb2]|\ud806[\udca0-\udcbf]|\ud835[\udc00-\udc19\udc34-\udc4d\udc68-\udc81\udc9c\udc9e\udc9f\udca2\udca5\udca6\udca9-\udcac\udcae-\udcb5\udcd0-\udce9\udd04\udd05\udd07-\udd0a\udd0d-\udd14\udd16-\udd1c\udd38\udd39\udd3b-\udd3e\udd40-\udd44\udd46\udd4a-\udd50\udd6c-\udd85\udda0-\uddb9\uddd4-\udded\ude08-\ude21\ude3c-\ude55\ude70-\ude89\udea8-\udec0\udee2-\udefa\udf1c-\udf34\udf56-\udf6e\udf90-\udfa8\udfca]|\ud83a[\udd00-\udd21]"},{name:"M",
alias:"Mark",bmp:"\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065f\u0670\u06d6-\u06dc\u06df-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0859-\u085b\u08d4-\u08e1\u08e3-\u0903\u093a-\u093c\u093e-\u094f\u0951-\u0957\u0962\u0963\u0981-\u0983\u09bc\u09be-\u09c4\u09c7\u09c8\u09cb-\u09cd\u09d7\u09e2\u09e3\u0a01-\u0a03\u0a3c\u0a3e-\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81-\u0a83\u0abc\u0abe-\u0ac5\u0ac7-\u0ac9\u0acb-\u0acd\u0ae2\u0ae3\u0b01-\u0b03\u0b3c\u0b3e-\u0b44\u0b47\u0b48\u0b4b-\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe-\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcd\u0bd7\u0c00-\u0c03\u0c3e-\u0c44\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0c81-\u0c83\u0cbc\u0cbe-\u0cc4\u0cc6-\u0cc8\u0cca-\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d01-\u0d03\u0d3e-\u0d44\u0d46-\u0d48\u0d4a-\u0d4d\u0d57\u0d62\u0d63\u0d82\u0d83\u0dca\u0dcf-\u0dd4\u0dd6\u0dd8-\u0ddf\u0df2\u0df3\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f3e\u0f3f\u0f71-\u0f84\u0f86\u0f87\u0f8d-\u0f97\u0f99-\u0fbc\u0fc6\u102b-\u103e\u1056-\u1059\u105e-\u1060\u1062-\u1064\u1067-\u106d\u1071-\u1074\u1082-\u108d\u108f\u109a-\u109d\u135d-\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b4-\u17d3\u17dd\u180b-\u180d\u1885\u1886\u18a9\u1920-\u192b\u1930-\u193b\u1a17-\u1a1b\u1a55-\u1a5e\u1a60-\u1a7c\u1a7f\u1ab0-\u1abe\u1b00-\u1b04\u1b34-\u1b44\u1b6b-\u1b73\u1b80-\u1b82\u1ba1-\u1bad\u1be6-\u1bf3\u1c24-\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce8\u1ced\u1cf2-\u1cf4\u1cf8\u1cf9\u1dc0-\u1df5\u1dfb-\u1dff\u20d0-\u20f0\u2cef-\u2cf1\u2d7f\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua674-\ua67d\ua69e\ua69f\ua6f0\ua6f1\ua802\ua806\ua80b\ua823-\ua827\ua880\ua881\ua8b4-\ua8c5\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua953\ua980-\ua983\ua9b3-\ua9c0\ua9e5\uaa29-\uaa36\uaa43\uaa4c\uaa4d\uaa7b-\uaa7d\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uaaeb-\uaaef\uaaf5\uaaf6\uabe3-\uabea\uabec\uabed\ufb1e\ufe00-\ufe0f\ufe20-\ufe2f",
astral:"\ud800[\uddfd\udee0\udf76-\udf7a]|\ud802[\ude01-\ude03\ude05\ude06\ude0c-\ude0f\ude38-\ude3a\ude3f\udee5\udee6]|\ud804[\udc00-\udc02\udc38-\udc46\udc7f-\udc82\udcb0-\udcba\udd00-\udd02\udd27-\udd34\udd73\udd80-\udd82\uddb3-\uddc0\uddca-\uddcc\ude2c-\ude37\ude3e\udedf-\udeea\udf00-\udf03\udf3c\udf3e-\udf44\udf47\udf48\udf4b-\udf4d\udf57\udf62\udf63\udf66-\udf6c\udf70-\udf74]|\ud805[\udc35-\udc46\udcb0-\udcc3\uddaf-\uddb5\uddb8-\uddc0\udddc\udddd\ude30-\ude40\udeab-\udeb7\udf1d-\udf2b]|\ud807[\udc2f-\udc36\udc38-\udc3f\udc92-\udca7\udca9-\udcb6]|\ud81a[\udef0-\udef4\udf30-\udf36]|\ud81b[\udf51-\udf7e\udf8f-\udf92]|\ud82f[\udc9d\udc9e]|\ud834[\udd65-\udd69\udd6d-\udd72\udd7b-\udd82\udd85-\udd8b\uddaa-\uddad\ude42-\ude44]|\ud836[\ude00-\ude36\ude3b-\ude6c\ude75\ude84\ude9b-\ude9f\udea1-\udeaf]|\ud838[\udc00-\udc06\udc08-\udc18\udc1b-\udc21\udc23\udc24\udc26-\udc2a]|\ud83a[\udcd0-\udcd6\udd44-\udd4a]|\udb40[\udd00-\uddef]"},
{name:"Mc",alias:"Spacing_Mark",bmp:"\u0903\u093b\u093e-\u0940\u0949-\u094c\u094e\u094f\u0982\u0983\u09be-\u09c0\u09c7\u09c8\u09cb\u09cc\u09d7\u0a03\u0a3e-\u0a40\u0a83\u0abe-\u0ac0\u0ac9\u0acb\u0acc\u0b02\u0b03\u0b3e\u0b40\u0b47\u0b48\u0b4b\u0b4c\u0b57\u0bbe\u0bbf\u0bc1\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcc\u0bd7\u0c01-\u0c03\u0c41-\u0c44\u0c82\u0c83\u0cbe\u0cc0-\u0cc4\u0cc7\u0cc8\u0cca\u0ccb\u0cd5\u0cd6\u0d02\u0d03\u0d3e-\u0d40\u0d46-\u0d48\u0d4a-\u0d4c\u0d57\u0d82\u0d83\u0dcf-\u0dd1\u0dd8-\u0ddf\u0df2\u0df3\u0f3e\u0f3f\u0f7f\u102b\u102c\u1031\u1038\u103b\u103c\u1056\u1057\u1062-\u1064\u1067-\u106d\u1083\u1084\u1087-\u108c\u108f\u109a-\u109c\u17b6\u17be-\u17c5\u17c7\u17c8\u1923-\u1926\u1929-\u192b\u1930\u1931\u1933-\u1938\u1a19\u1a1a\u1a55\u1a57\u1a61\u1a63\u1a64\u1a6d-\u1a72\u1b04\u1b35\u1b3b\u1b3d-\u1b41\u1b43\u1b44\u1b82\u1ba1\u1ba6\u1ba7\u1baa\u1be7\u1bea-\u1bec\u1bee\u1bf2\u1bf3\u1c24-\u1c2b\u1c34\u1c35\u1ce1\u1cf2\u1cf3\u302e\u302f\ua823\ua824\ua827\ua880\ua881\ua8b4-\ua8c3\ua952\ua953\ua983\ua9b4\ua9b5\ua9ba\ua9bb\ua9bd-\ua9c0\uaa2f\uaa30\uaa33\uaa34\uaa4d\uaa7b\uaa7d\uaaeb\uaaee\uaaef\uaaf5\uabe3\uabe4\uabe6\uabe7\uabe9\uabea\uabec",
astral:"\ud804[\udc00\udc02\udc82\udcb0-\udcb2\udcb7\udcb8\udd2c\udd82\uddb3-\uddb5\uddbf\uddc0\ude2c-\ude2e\ude32\ude33\ude35\udee0-\udee2\udf02\udf03\udf3e\udf3f\udf41-\udf44\udf47\udf48\udf4b-\udf4d\udf57\udf62\udf63]|\ud805[\udc35-\udc37\udc40\udc41\udc45\udcb0-\udcb2\udcb9\udcbb-\udcbe\udcc1\uddaf-\uddb1\uddb8-\uddbb\uddbe\ude30-\ude32\ude3b\ude3c\ude3e\udeac\udeae\udeaf\udeb6\udf20\udf21\udf26]|\ud807[\udc2f\udc3e\udca9\udcb1\udcb4]|\ud81b[\udf51-\udf7e]|\ud834[\udd65\udd66\udd6d-\udd72]"},
{name:"Me",alias:"Enclosing_Mark",bmp:"\u0488\u0489\u1abe\u20dd-\u20e0\u20e2-\u20e4\ua670-\ua672"},{name:"Mn",alias:"Nonspacing_Mark",bmp:"\u0300-\u036f\u0483-\u0487\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065f\u0670\u06d6-\u06dc\u06df-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0859-\u085b\u08d4-\u08e1\u08e3-\u0902\u093a\u093c\u0941-\u0948\u094d\u0951-\u0957\u0962\u0963\u0981\u09bc\u09c1-\u09c4\u09cd\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b62\u0b63\u0b82\u0bc0\u0bcd\u0c00\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0c81\u0cbc\u0cbf\u0cc6\u0ccc\u0ccd\u0ce2\u0ce3\u0d01\u0d41-\u0d44\u0d4d\u0d62\u0d63\u0dca\u0dd2-\u0dd4\u0dd6\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f8d-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135d-\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b4\u17b5\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u1885\u1886\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a1b\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1ab0-\u1abd\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1bab-\u1bad\u1be6\u1be8\u1be9\u1bed\u1bef-\u1bf1\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1cf4\u1cf8\u1cf9\u1dc0-\u1df5\u1dfb-\u1dff\u20d0-\u20dc\u20e1\u20e5-\u20f0\u2cef-\u2cf1\u2d7f\u2de0-\u2dff\u302a-\u302d\u3099\u309a\ua66f\ua674-\ua67d\ua69e\ua69f\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8c5\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\ua9e5\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaa7c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uaaec\uaaed\uaaf6\uabe5\uabe8\uabed\ufb1e\ufe00-\ufe0f\ufe20-\ufe2f",
astral:"\ud800[\uddfd\udee0\udf76-\udf7a]|\ud802[\ude01-\ude03\ude05\ude06\ude0c-\ude0f\ude38-\ude3a\ude3f\udee5\udee6]|\ud804[\udc01\udc38-\udc46\udc7f-\udc81\udcb3-\udcb6\udcb9\udcba\udd00-\udd02\udd27-\udd2b\udd2d-\udd34\udd73\udd80\udd81\uddb6-\uddbe\uddca-\uddcc\ude2f-\ude31\ude34\ude36\ude37\ude3e\udedf\udee3-\udeea\udf00\udf01\udf3c\udf40\udf66-\udf6c\udf70-\udf74]|\ud805[\udc38-\udc3f\udc42-\udc44\udc46\udcb3-\udcb8\udcba\udcbf\udcc0\udcc2\udcc3\uddb2-\uddb5\uddbc\uddbd\uddbf\uddc0\udddc\udddd\ude33-\ude3a\ude3d\ude3f\ude40\udeab\udead\udeb0-\udeb5\udeb7\udf1d-\udf1f\udf22-\udf25\udf27-\udf2b]|\ud807[\udc30-\udc36\udc38-\udc3d\udc3f\udc92-\udca7\udcaa-\udcb0\udcb2\udcb3\udcb5\udcb6]|\ud81a[\udef0-\udef4\udf30-\udf36]|\ud81b[\udf8f-\udf92]|\ud82f[\udc9d\udc9e]|\ud834[\udd67-\udd69\udd7b-\udd82\udd85-\udd8b\uddaa-\uddad\ude42-\ude44]|\ud836[\ude00-\ude36\ude3b-\ude6c\ude75\ude84\ude9b-\ude9f\udea1-\udeaf]|\ud838[\udc00-\udc06\udc08-\udc18\udc1b-\udc21\udc23\udc24\udc26-\udc2a]|\ud83a[\udcd0-\udcd6\udd44-\udd4a]|\udb40[\udd00-\uddef]"},
{name:"N",alias:"Number",bmp:"0-9\u00b2\u00b3\u00b9\u00bc-\u00be\u0660-\u0669\u06f0-\u06f9\u07c0-\u07c9\u0966-\u096f\u09e6-\u09ef\u09f4-\u09f9\u0a66-\u0a6f\u0ae6-\u0aef\u0b66-\u0b6f\u0b72-\u0b77\u0be6-\u0bf2\u0c66-\u0c6f\u0c78-\u0c7e\u0ce6-\u0cef\u0d58-\u0d5e\u0d66-\u0d78\u0de6-\u0def\u0e50-\u0e59\u0ed0-\u0ed9\u0f20-\u0f33\u1040-\u1049\u1090-\u1099\u1369-\u137c\u16ee-\u16f0\u17e0-\u17e9\u17f0-\u17f9\u1810-\u1819\u1946-\u194f\u19d0-\u19da\u1a80-\u1a89\u1a90-\u1a99\u1b50-\u1b59\u1bb0-\u1bb9\u1c40-\u1c49\u1c50-\u1c59\u2070\u2074-\u2079\u2080-\u2089\u2150-\u2182\u2185-\u2189\u2460-\u249b\u24ea-\u24ff\u2776-\u2793\u2cfd\u3007\u3021-\u3029\u3038-\u303a\u3192-\u3195\u3220-\u3229\u3248-\u324f\u3251-\u325f\u3280-\u3289\u32b1-\u32bf\ua620-\ua629\ua6e6-\ua6ef\ua830-\ua835\ua8d0-\ua8d9\ua900-\ua909\ua9d0-\ua9d9\ua9f0-\ua9f9\uaa50-\uaa59\uabf0-\uabf9\uff10-\uff19",
astral:"\ud800[\udd07-\udd33\udd40-\udd78\udd8a\udd8b\udee1-\udefb\udf20-\udf23\udf41\udf4a\udfd1-\udfd5]|\ud801[\udca0-\udca9]|\ud802[\udc58-\udc5f\udc79-\udc7f\udca7-\udcaf\udcfb-\udcff\udd16-\udd1b\uddbc\uddbd\uddc0-\uddcf\uddd2-\uddff\ude40-\ude47\ude7d\ude7e\ude9d-\ude9f\udeeb-\udeef\udf58-\udf5f\udf78-\udf7f\udfa9-\udfaf]|\ud803[\udcfa-\udcff\ude60-\ude7e]|\ud804[\udc52-\udc6f\udcf0-\udcf9\udd36-\udd3f\uddd0-\uddd9\udde1-\uddf4\udef0-\udef9]|\ud805[\udc50-\udc59\udcd0-\udcd9\ude50-\ude59\udec0-\udec9\udf30-\udf3b]|\ud806[\udce0-\udcf2]|\ud807[\udc50-\udc6c]|\ud809[\udc00-\udc6e]|\ud81a[\ude60-\ude69\udf50-\udf59\udf5b-\udf61]|\ud834[\udf60-\udf71]|\ud835[\udfce-\udfff]|\ud83a[\udcc7-\udccf\udd50-\udd59]|\ud83c[\udd00-\udd0c]"},
{name:"Nd",alias:"Decimal_Number",bmp:"0-9\u0660-\u0669\u06f0-\u06f9\u07c0-\u07c9\u0966-\u096f\u09e6-\u09ef\u0a66-\u0a6f\u0ae6-\u0aef\u0b66-\u0b6f\u0be6-\u0bef\u0c66-\u0c6f\u0ce6-\u0cef\u0d66-\u0d6f\u0de6-\u0def\u0e50-\u0e59\u0ed0-\u0ed9\u0f20-\u0f29\u1040-\u1049\u1090-\u1099\u17e0-\u17e9\u1810-\u1819\u1946-\u194f\u19d0-\u19d9\u1a80-\u1a89\u1a90-\u1a99\u1b50-\u1b59\u1bb0-\u1bb9\u1c40-\u1c49\u1c50-\u1c59\ua620-\ua629\ua8d0-\ua8d9\ua900-\ua909\ua9d0-\ua9d9\ua9f0-\ua9f9\uaa50-\uaa59\uabf0-\uabf9\uff10-\uff19",
astral:"\ud801[\udca0-\udca9]|\ud804[\udc66-\udc6f\udcf0-\udcf9\udd36-\udd3f\uddd0-\uddd9\udef0-\udef9]|\ud805[\udc50-\udc59\udcd0-\udcd9\ude50-\ude59\udec0-\udec9\udf30-\udf39]|\ud806[\udce0-\udce9]|\ud807[\udc50-\udc59]|\ud81a[\ude60-\ude69\udf50-\udf59]|\ud835[\udfce-\udfff]|\ud83a[\udd50-\udd59]"},{name:"Nl",alias:"Letter_Number",bmp:"\u16ee-\u16f0\u2160-\u2182\u2185-\u2188\u3007\u3021-\u3029\u3038-\u303a\ua6e6-\ua6ef",astral:"\ud800[\udd40-\udd74\udf41\udf4a\udfd1-\udfd5]|\ud809[\udc00-\udc6e]"},
{name:"No",alias:"Other_Number",bmp:"\u00b2\u00b3\u00b9\u00bc-\u00be\u09f4-\u09f9\u0b72-\u0b77\u0bf0-\u0bf2\u0c78-\u0c7e\u0d58-\u0d5e\u0d70-\u0d78\u0f2a-\u0f33\u1369-\u137c\u17f0-\u17f9\u19da\u2070\u2074-\u2079\u2080-\u2089\u2150-\u215f\u2189\u2460-\u249b\u24ea-\u24ff\u2776-\u2793\u2cfd\u3192-\u3195\u3220-\u3229\u3248-\u324f\u3251-\u325f\u3280-\u3289\u32b1-\u32bf\ua830-\ua835",astral:"\ud800[\udd07-\udd33\udd75-\udd78\udd8a\udd8b\udee1-\udefb\udf20-\udf23]|\ud802[\udc58-\udc5f\udc79-\udc7f\udca7-\udcaf\udcfb-\udcff\udd16-\udd1b\uddbc\uddbd\uddc0-\uddcf\uddd2-\uddff\ude40-\ude47\ude7d\ude7e\ude9d-\ude9f\udeeb-\udeef\udf58-\udf5f\udf78-\udf7f\udfa9-\udfaf]|\ud803[\udcfa-\udcff\ude60-\ude7e]|\ud804[\udc52-\udc65\udde1-\uddf4]|\ud805[\udf3a\udf3b]|\ud806[\udcea-\udcf2]|\ud807[\udc5a-\udc6c]|\ud81a[\udf5b-\udf61]|\ud834[\udf60-\udf71]|\ud83a[\udcc7-\udccf]|\ud83c[\udd00-\udd0c]"},
{name:"P",alias:"Punctuation",bmp:"!-#%-\\x2A,-/:;\\x3F@\\x5B-\\x5D_\\x7B}\u00a1\u00a7\u00ab\u00b6\u00b7\u00bb\u00bf\u037e\u0387\u055a-\u055f\u0589\u058a\u05be\u05c0\u05c3\u05c6\u05f3\u05f4\u0609\u060a\u060c\u060d\u061b\u061e\u061f\u066a-\u066d\u06d4\u0700-\u070d\u07f7-\u07f9\u0830-\u083e\u085e\u0964\u0965\u0970\u0af0\u0df4\u0e4f\u0e5a\u0e5b\u0f04-\u0f12\u0f14\u0f3a-\u0f3d\u0f85\u0fd0-\u0fd4\u0fd9\u0fda\u104a-\u104f\u10fb\u1360-\u1368\u1400\u166d\u166e\u169b\u169c\u16eb-\u16ed\u1735\u1736\u17d4-\u17d6\u17d8-\u17da\u1800-\u180a\u1944\u1945\u1a1e\u1a1f\u1aa0-\u1aa6\u1aa8-\u1aad\u1b5a-\u1b60\u1bfc-\u1bff\u1c3b-\u1c3f\u1c7e\u1c7f\u1cc0-\u1cc7\u1cd3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205e\u207d\u207e\u208d\u208e\u2308-\u230b\u2329\u232a\u2768-\u2775\u27c5\u27c6\u27e6-\u27ef\u2983-\u2998\u29d8-\u29db\u29fc\u29fd\u2cf9-\u2cfc\u2cfe\u2cff\u2d70\u2e00-\u2e2e\u2e30-\u2e44\u3001-\u3003\u3008-\u3011\u3014-\u301f\u3030\u303d\u30a0\u30fb\ua4fe\ua4ff\ua60d-\ua60f\ua673\ua67e\ua6f2-\ua6f7\ua874-\ua877\ua8ce\ua8cf\ua8f8-\ua8fa\ua8fc\ua92e\ua92f\ua95f\ua9c1-\ua9cd\ua9de\ua9df\uaa5c-\uaa5f\uaade\uaadf\uaaf0\uaaf1\uabeb\ufd3e\ufd3f\ufe10-\ufe19\ufe30-\ufe52\ufe54-\ufe61\ufe63\ufe68\ufe6a\ufe6b\uff01-\uff03\uff05-\uff0a\uff0c-\uff0f\uff1a\uff1b\uff1f\uff20\uff3b-\uff3d\uff3f\uff5b\uff5d\uff5f-\uff65",
astral:"\ud800[\udd00-\udd02\udf9f\udfd0]|\ud801\udd6f|\ud802[\udc57\udd1f\udd3f\ude50-\ude58\ude7f\udef0-\udef6\udf39-\udf3f\udf99-\udf9c]|\ud804[\udc47-\udc4d\udcbb\udcbc\udcbe-\udcc1\udd40-\udd43\udd74\udd75\uddc5-\uddc9\uddcd\udddb\udddd-\udddf\ude38-\ude3d\udea9]|\ud805[\udc4b-\udc4f\udc5b\udc5d\udcc6\uddc1-\uddd7\ude41-\ude43\ude60-\ude6c\udf3c-\udf3e]|\ud807[\udc41-\udc45\udc70\udc71]|\ud809[\udc70-\udc74]|\ud81a[\ude6e\ude6f\udef5\udf37-\udf3b\udf44]|\ud82f\udc9f|\ud836[\ude87-\ude8b]|\ud83a[\udd5e\udd5f]"},
{name:"Pc",alias:"Connector_Punctuation",bmp:"_\u203f\u2040\u2054\ufe33\ufe34\ufe4d-\ufe4f\uff3f"},{name:"Pd",alias:"Dash_Punctuation",bmp:"\\x2D\u058a\u05be\u1400\u1806\u2010-\u2015\u2e17\u2e1a\u2e3a\u2e3b\u2e40\u301c\u3030\u30a0\ufe31\ufe32\ufe58\ufe63\uff0d"},{name:"Pe",alias:"Close_Punctuation",bmp:"\\x29\\x5D}\u0f3b\u0f3d\u169c\u2046\u207e\u208e\u2309\u230b\u232a\u2769\u276b\u276d\u276f\u2771\u2773\u2775\u27c6\u27e7\u27e9\u27eb\u27ed\u27ef\u2984\u2986\u2988\u298a\u298c\u298e\u2990\u2992\u2994\u2996\u2998\u29d9\u29db\u29fd\u2e23\u2e25\u2e27\u2e29\u3009\u300b\u300d\u300f\u3011\u3015\u3017\u3019\u301b\u301e\u301f\ufd3e\ufe18\ufe36\ufe38\ufe3a\ufe3c\ufe3e\ufe40\ufe42\ufe44\ufe48\ufe5a\ufe5c\ufe5e\uff09\uff3d\uff5d\uff60\uff63"},
{name:"Pf",alias:"Final_Punctuation",bmp:"\u00bb\u2019\u201d\u203a\u2e03\u2e05\u2e0a\u2e0d\u2e1d\u2e21"},{name:"Pi",alias:"Initial_Punctuation",bmp:"\u00ab\u2018\u201b\u201c\u201f\u2039\u2e02\u2e04\u2e09\u2e0c\u2e1c\u2e20"},{name:"Po",alias:"Other_Punctuation",bmp:"!-#%-'\\x2A,\\x2E/:;\\x3F@\\x5C\u00a1\u00a7\u00b6\u00b7\u00bf\u037e\u0387\u055a-\u055f\u0589\u05c0\u05c3\u05c6\u05f3\u05f4\u0609\u060a\u060c\u060d\u061b\u061e\u061f\u066a-\u066d\u06d4\u0700-\u070d\u07f7-\u07f9\u0830-\u083e\u085e\u0964\u0965\u0970\u0af0\u0df4\u0e4f\u0e5a\u0e5b\u0f04-\u0f12\u0f14\u0f85\u0fd0-\u0fd4\u0fd9\u0fda\u104a-\u104f\u10fb\u1360-\u1368\u166d\u166e\u16eb-\u16ed\u1735\u1736\u17d4-\u17d6\u17d8-\u17da\u1800-\u1805\u1807-\u180a\u1944\u1945\u1a1e\u1a1f\u1aa0-\u1aa6\u1aa8-\u1aad\u1b5a-\u1b60\u1bfc-\u1bff\u1c3b-\u1c3f\u1c7e\u1c7f\u1cc0-\u1cc7\u1cd3\u2016\u2017\u2020-\u2027\u2030-\u2038\u203b-\u203e\u2041-\u2043\u2047-\u2051\u2053\u2055-\u205e\u2cf9-\u2cfc\u2cfe\u2cff\u2d70\u2e00\u2e01\u2e06-\u2e08\u2e0b\u2e0e-\u2e16\u2e18\u2e19\u2e1b\u2e1e\u2e1f\u2e2a-\u2e2e\u2e30-\u2e39\u2e3c-\u2e3f\u2e41\u2e43\u2e44\u3001-\u3003\u303d\u30fb\ua4fe\ua4ff\ua60d-\ua60f\ua673\ua67e\ua6f2-\ua6f7\ua874-\ua877\ua8ce\ua8cf\ua8f8-\ua8fa\ua8fc\ua92e\ua92f\ua95f\ua9c1-\ua9cd\ua9de\ua9df\uaa5c-\uaa5f\uaade\uaadf\uaaf0\uaaf1\uabeb\ufe10-\ufe16\ufe19\ufe30\ufe45\ufe46\ufe49-\ufe4c\ufe50-\ufe52\ufe54-\ufe57\ufe5f-\ufe61\ufe68\ufe6a\ufe6b\uff01-\uff03\uff05-\uff07\uff0a\uff0c\uff0e\uff0f\uff1a\uff1b\uff1f\uff20\uff3c\uff61\uff64\uff65",
astral:"\ud800[\udd00-\udd02\udf9f\udfd0]|\ud801\udd6f|\ud802[\udc57\udd1f\udd3f\ude50-\ude58\ude7f\udef0-\udef6\udf39-\udf3f\udf99-\udf9c]|\ud804[\udc47-\udc4d\udcbb\udcbc\udcbe-\udcc1\udd40-\udd43\udd74\udd75\uddc5-\uddc9\uddcd\udddb\udddd-\udddf\ude38-\ude3d\udea9]|\ud805[\udc4b-\udc4f\udc5b\udc5d\udcc6\uddc1-\uddd7\ude41-\ude43\ude60-\ude6c\udf3c-\udf3e]|\ud807[\udc41-\udc45\udc70\udc71]|\ud809[\udc70-\udc74]|\ud81a[\ude6e\ude6f\udef5\udf37-\udf3b\udf44]|\ud82f\udc9f|\ud836[\ude87-\ude8b]|\ud83a[\udd5e\udd5f]"},
{name:"Ps",alias:"Open_Punctuation",bmp:"\\x28\\x5B\\x7B\u0f3a\u0f3c\u169b\u201a\u201e\u2045\u207d\u208d\u2308\u230a\u2329\u2768\u276a\u276c\u276e\u2770\u2772\u2774\u27c5\u27e6\u27e8\u27ea\u27ec\u27ee\u2983\u2985\u2987\u2989\u298b\u298d\u298f\u2991\u2993\u2995\u2997\u29d8\u29da\u29fc\u2e22\u2e24\u2e26\u2e28\u2e42\u3008\u300a\u300c\u300e\u3010\u3014\u3016\u3018\u301a\u301d\ufd3f\ufe17\ufe35\ufe37\ufe39\ufe3b\ufe3d\ufe3f\ufe41\ufe43\ufe47\ufe59\ufe5b\ufe5d\uff08\uff3b\uff5b\uff5f\uff62"},{name:"S",
alias:"Symbol",bmp:"\\x24\\x2B<->\\x5E`\\x7C~\u00a2-\u00a6\u00a8\u00a9\u00ac\u00ae-\u00b1\u00b4\u00b8\u00d7\u00f7\u02c2-\u02c5\u02d2-\u02df\u02e5-\u02eb\u02ed\u02ef-\u02ff\u0375\u0384\u0385\u03f6\u0482\u058d-\u058f\u0606-\u0608\u060b\u060e\u060f\u06de\u06e9\u06fd\u06fe\u07f6\u09f2\u09f3\u09fa\u09fb\u0af1\u0b70\u0bf3-\u0bfa\u0c7f\u0d4f\u0d79\u0e3f\u0f01-\u0f03\u0f13\u0f15-\u0f17\u0f1a-\u0f1f\u0f34\u0f36\u0f38\u0fbe-\u0fc5\u0fc7-\u0fcc\u0fce\u0fcf\u0fd5-\u0fd8\u109e\u109f\u1390-\u1399\u17db\u1940\u19de-\u19ff\u1b61-\u1b6a\u1b74-\u1b7c\u1fbd\u1fbf-\u1fc1\u1fcd-\u1fcf\u1fdd-\u1fdf\u1fed-\u1fef\u1ffd\u1ffe\u2044\u2052\u207a-\u207c\u208a-\u208c\u20a0-\u20be\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211e-\u2123\u2125\u2127\u2129\u212e\u213a\u213b\u2140-\u2144\u214a-\u214d\u214f\u218a\u218b\u2190-\u2307\u230c-\u2328\u232b-\u23fe\u2400-\u2426\u2440-\u244a\u249c-\u24e9\u2500-\u2767\u2794-\u27c4\u27c7-\u27e5\u27f0-\u2982\u2999-\u29d7\u29dc-\u29fb\u29fe-\u2b73\u2b76-\u2b95\u2b98-\u2bb9\u2bbd-\u2bc8\u2bca-\u2bd1\u2bec-\u2bef\u2ce5-\u2cea\u2e80-\u2e99\u2e9b-\u2ef3\u2f00-\u2fd5\u2ff0-\u2ffb\u3004\u3012\u3013\u3020\u3036\u3037\u303e\u303f\u309b\u309c\u3190\u3191\u3196-\u319f\u31c0-\u31e3\u3200-\u321e\u322a-\u3247\u3250\u3260-\u327f\u328a-\u32b0\u32c0-\u32fe\u3300-\u33ff\u4dc0-\u4dff\ua490-\ua4c6\ua700-\ua716\ua720\ua721\ua789\ua78a\ua828-\ua82b\ua836-\ua839\uaa77-\uaa79\uab5b\ufb29\ufbb2-\ufbc1\ufdfc\ufdfd\ufe62\ufe64-\ufe66\ufe69\uff04\uff0b\uff1c-\uff1e\uff3e\uff40\uff5c\uff5e\uffe0-\uffe6\uffe8-\uffee\ufffc\ufffd",
astral:"\ud800[\udd37-\udd3f\udd79-\udd89\udd8c-\udd8e\udd90-\udd9b\udda0\uddd0-\uddfc]|\ud802[\udc77\udc78\udec8]|\ud805\udf3f|\ud81a[\udf3c-\udf3f\udf45]|\ud82f\udc9c|\ud834[\udc00-\udcf5\udd00-\udd26\udd29-\udd64\udd6a-\udd6c\udd83\udd84\udd8c-\udda9\uddae-\udde8\ude00-\ude41\ude45\udf00-\udf56]|\ud835[\udec1\udedb\udefb\udf15\udf35\udf4f\udf6f\udf89\udfa9\udfc3]|\ud836[\udc00-\uddff\ude37-\ude3a\ude6d-\ude74\ude76-\ude83\ude85\ude86]|\ud83b[\udef0\udef1]|\ud83c[\udc00-\udc2b\udc30-\udc93\udca0-\udcae\udcb1-\udcbf\udcc1-\udccf\udcd1-\udcf5\udd10-\udd2e\udd30-\udd6b\udd70-\uddac\udde6-\ude02\ude10-\ude3b\ude40-\ude48\ude50\ude51\udf00-\udfff]|\ud83d[\udc00-\uded2\udee0-\udeec\udef0-\udef6\udf00-\udf73\udf80-\udfd4]|\ud83e[\udc00-\udc0b\udc10-\udc47\udc50-\udc59\udc60-\udc87\udc90-\udcad\udd10-\udd1e\udd20-\udd27\udd30\udd33-\udd3e\udd40-\udd4b\udd50-\udd5e\udd80-\udd91\uddc0]"},
{name:"Sc",alias:"Currency_Symbol",bmp:"\\x24\u00a2-\u00a5\u058f\u060b\u09f2\u09f3\u09fb\u0af1\u0bf9\u0e3f\u17db\u20a0-\u20be\ua838\ufdfc\ufe69\uff04\uffe0\uffe1\uffe5\uffe6"},{name:"Sk",alias:"Modifier_Symbol",bmp:"\\x5E`\u00a8\u00af\u00b4\u00b8\u02c2-\u02c5\u02d2-\u02df\u02e5-\u02eb\u02ed\u02ef-\u02ff\u0375\u0384\u0385\u1fbd\u1fbf-\u1fc1\u1fcd-\u1fcf\u1fdd-\u1fdf\u1fed-\u1fef\u1ffd\u1ffe\u309b\u309c\ua700-\ua716\ua720\ua721\ua789\ua78a\uab5b\ufbb2-\ufbc1\uff3e\uff40\uffe3",astral:"\ud83c[\udffb-\udfff]"},
{name:"Sm",alias:"Math_Symbol",bmp:"\\x2B<->\\x7C~\u00ac\u00b1\u00d7\u00f7\u03f6\u0606-\u0608\u2044\u2052\u207a-\u207c\u208a-\u208c\u2118\u2140-\u2144\u214b\u2190-\u2194\u219a\u219b\u21a0\u21a3\u21a6\u21ae\u21ce\u21cf\u21d2\u21d4\u21f4-\u22ff\u2320\u2321\u237c\u239b-\u23b3\u23dc-\u23e1\u25b7\u25c1\u25f8-\u25ff\u266f\u27c0-\u27c4\u27c7-\u27e5\u27f0-\u27ff\u2900-\u2982\u2999-\u29d7\u29dc-\u29fb\u29fe-\u2aff\u2b30-\u2b44\u2b47-\u2b4c\ufb29\ufe62\ufe64-\ufe66\uff0b\uff1c-\uff1e\uff5c\uff5e\uffe2\uffe9-\uffec",
astral:"\ud835[\udec1\udedb\udefb\udf15\udf35\udf4f\udf6f\udf89\udfa9\udfc3]|\ud83b[\udef0\udef1]"},{name:"So",alias:"Other_Symbol",bmp:"\u00a6\u00a9\u00ae\u00b0\u0482\u058d\u058e\u060e\u060f\u06de\u06e9\u06fd\u06fe\u07f6\u09fa\u0b70\u0bf3-\u0bf8\u0bfa\u0c7f\u0d4f\u0d79\u0f01-\u0f03\u0f13\u0f15-\u0f17\u0f1a-\u0f1f\u0f34\u0f36\u0f38\u0fbe-\u0fc5\u0fc7-\u0fcc\u0fce\u0fcf\u0fd5-\u0fd8\u109e\u109f\u1390-\u1399\u1940\u19de-\u19ff\u1b61-\u1b6a\u1b74-\u1b7c\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116\u2117\u211e-\u2123\u2125\u2127\u2129\u212e\u213a\u213b\u214a\u214c\u214d\u214f\u218a\u218b\u2195-\u2199\u219c-\u219f\u21a1\u21a2\u21a4\u21a5\u21a7-\u21ad\u21af-\u21cd\u21d0\u21d1\u21d3\u21d5-\u21f3\u2300-\u2307\u230c-\u231f\u2322-\u2328\u232b-\u237b\u237d-\u239a\u23b4-\u23db\u23e2-\u23fe\u2400-\u2426\u2440-\u244a\u249c-\u24e9\u2500-\u25b6\u25b8-\u25c0\u25c2-\u25f7\u2600-\u266e\u2670-\u2767\u2794-\u27bf\u2800-\u28ff\u2b00-\u2b2f\u2b45\u2b46\u2b4d-\u2b73\u2b76-\u2b95\u2b98-\u2bb9\u2bbd-\u2bc8\u2bca-\u2bd1\u2bec-\u2bef\u2ce5-\u2cea\u2e80-\u2e99\u2e9b-\u2ef3\u2f00-\u2fd5\u2ff0-\u2ffb\u3004\u3012\u3013\u3020\u3036\u3037\u303e\u303f\u3190\u3191\u3196-\u319f\u31c0-\u31e3\u3200-\u321e\u322a-\u3247\u3250\u3260-\u327f\u328a-\u32b0\u32c0-\u32fe\u3300-\u33ff\u4dc0-\u4dff\ua490-\ua4c6\ua828-\ua82b\ua836\ua837\ua839\uaa77-\uaa79\ufdfd\uffe4\uffe8\uffed\uffee\ufffc\ufffd",
astral:"\ud800[\udd37-\udd3f\udd79-\udd89\udd8c-\udd8e\udd90-\udd9b\udda0\uddd0-\uddfc]|\ud802[\udc77\udc78\udec8]|\ud805\udf3f|\ud81a[\udf3c-\udf3f\udf45]|\ud82f\udc9c|\ud834[\udc00-\udcf5\udd00-\udd26\udd29-\udd64\udd6a-\udd6c\udd83\udd84\udd8c-\udda9\uddae-\udde8\ude00-\ude41\ude45\udf00-\udf56]|\ud836[\udc00-\uddff\ude37-\ude3a\ude6d-\ude74\ude76-\ude83\ude85\ude86]|\ud83c[\udc00-\udc2b\udc30-\udc93\udca0-\udcae\udcb1-\udcbf\udcc1-\udccf\udcd1-\udcf5\udd10-\udd2e\udd30-\udd6b\udd70-\uddac\udde6-\ude02\ude10-\ude3b\ude40-\ude48\ude50\ude51\udf00-\udffa]|\ud83d[\udc00-\uded2\udee0-\udeec\udef0-\udef6\udf00-\udf73\udf80-\udfd4]|\ud83e[\udc00-\udc0b\udc10-\udc47\udc50-\udc59\udc60-\udc87\udc90-\udcad\udd10-\udd1e\udd20-\udd27\udd30\udd33-\udd3e\udd40-\udd4b\udd50-\udd5e\udd80-\udd91\uddc0]"},
{name:"Z",alias:"Separator",bmp:" \u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000"},{name:"Zl",alias:"Line_Separator",bmp:"\u2028"},{name:"Zp",alias:"Paragraph_Separator",bmp:"\u2029"},{name:"Zs",alias:"Space_Separator",bmp:" \u00a0\u1680\u2000-\u200a\u202f\u205f\u3000"}])}},
{}],6:[function(n,m){m.exports=function(b){if(!b.addUnicodeData)throw new ReferenceError("Unicode Base must be loaded before Unicode Properties");var q=[{name:"ASCII",bmp:"\x00-\u007f"},{name:"Alphabetic",bmp:"A-Za-z\u00aa\u00b5\u00ba\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0345\u0370-\u0374\u0376\u0377\u037a-\u037d\u037f\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u048a-\u052f\u0531-\u0556\u0559\u0561-\u0587\u05b0-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u05d0-\u05ea\u05f0-\u05f2\u0610-\u061a\u0620-\u0657\u0659-\u065f\u066e-\u06d3\u06d5-\u06dc\u06e1-\u06e8\u06ed-\u06ef\u06fa-\u06fc\u06ff\u0710-\u073f\u074d-\u07b1\u07ca-\u07ea\u07f4\u07f5\u07fa\u0800-\u0817\u081a-\u082c\u0840-\u0858\u08a0-\u08b4\u08b6-\u08bd\u08d4-\u08df\u08e3-\u08e9\u08f0-\u093b\u093d-\u094c\u094e-\u0950\u0955-\u0963\u0971-\u0983\u0985-\u098c\u098f\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bd-\u09c4\u09c7\u09c8\u09cb\u09cc\u09ce\u09d7\u09dc\u09dd\u09df-\u09e3\u09f0\u09f1\u0a01-\u0a03\u0a05-\u0a0a\u0a0f\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32\u0a33\u0a35\u0a36\u0a38\u0a39\u0a3e-\u0a42\u0a47\u0a48\u0a4b\u0a4c\u0a51\u0a59-\u0a5c\u0a5e\u0a70-\u0a75\u0a81-\u0a83\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2\u0ab3\u0ab5-\u0ab9\u0abd-\u0ac5\u0ac7-\u0ac9\u0acb\u0acc\u0ad0\u0ae0-\u0ae3\u0af9\u0b01-\u0b03\u0b05-\u0b0c\u0b0f\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32\u0b33\u0b35-\u0b39\u0b3d-\u0b44\u0b47\u0b48\u0b4b\u0b4c\u0b56\u0b57\u0b5c\u0b5d\u0b5f-\u0b63\u0b71\u0b82\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99\u0b9a\u0b9c\u0b9e\u0b9f\u0ba3\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bbe-\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcc\u0bd0\u0bd7\u0c00-\u0c03\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c39\u0c3d-\u0c44\u0c46-\u0c48\u0c4a-\u0c4c\u0c55\u0c56\u0c58-\u0c5a\u0c60-\u0c63\u0c80-\u0c83\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbd-\u0cc4\u0cc6-\u0cc8\u0cca-\u0ccc\u0cd5\u0cd6\u0cde\u0ce0-\u0ce3\u0cf1\u0cf2\u0d01-\u0d03\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d-\u0d44\u0d46-\u0d48\u0d4a-\u0d4c\u0d4e\u0d54-\u0d57\u0d5f-\u0d63\u0d7a-\u0d7f\u0d82\u0d83\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0dcf-\u0dd4\u0dd6\u0dd8-\u0ddf\u0df2\u0df3\u0e01-\u0e3a\u0e40-\u0e46\u0e4d\u0e81\u0e82\u0e84\u0e87\u0e88\u0e8a\u0e8d\u0e94-\u0e97\u0e99-\u0e9f\u0ea1-\u0ea3\u0ea5\u0ea7\u0eaa\u0eab\u0ead-\u0eb9\u0ebb-\u0ebd\u0ec0-\u0ec4\u0ec6\u0ecd\u0edc-\u0edf\u0f00\u0f40-\u0f47\u0f49-\u0f6c\u0f71-\u0f81\u0f88-\u0f97\u0f99-\u0fbc\u1000-\u1036\u1038\u103b-\u103f\u1050-\u1062\u1065-\u1068\u106e-\u1086\u108e\u109c\u109d\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u135f\u1380-\u138f\u13a0-\u13f5\u13f8-\u13fd\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16ee-\u16f8\u1700-\u170c\u170e-\u1713\u1720-\u1733\u1740-\u1753\u1760-\u176c\u176e-\u1770\u1772\u1773\u1780-\u17b3\u17b6-\u17c8\u17d7\u17dc\u1820-\u1877\u1880-\u18aa\u18b0-\u18f5\u1900-\u191e\u1920-\u192b\u1930-\u1938\u1950-\u196d\u1970-\u1974\u1980-\u19ab\u19b0-\u19c9\u1a00-\u1a1b\u1a20-\u1a5e\u1a61-\u1a74\u1aa7\u1b00-\u1b33\u1b35-\u1b43\u1b45-\u1b4b\u1b80-\u1ba9\u1bac-\u1baf\u1bba-\u1be5\u1be7-\u1bf1\u1c00-\u1c35\u1c4d-\u1c4f\u1c5a-\u1c7d\u1c80-\u1c88\u1ce9-\u1cec\u1cee-\u1cf3\u1cf5\u1cf6\u1d00-\u1dbf\u1de7-\u1df4\u1e00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u2071\u207f\u2090-\u209c\u2102\u2107\u210a-\u2113\u2115\u2119-\u211d\u2124\u2126\u2128\u212a-\u212d\u212f-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2160-\u2188\u24b6-\u24e9\u2c00-\u2c2e\u2c30-\u2c5e\u2c60-\u2ce4\u2ceb-\u2cee\u2cf2\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u2de0-\u2dff\u2e2f\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303c\u3041-\u3096\u309d-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312d\u3131-\u318e\u31a0-\u31ba\u31f0-\u31ff\u3400-\u4db5\u4e00-\u9fd5\ua000-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua61f\ua62a\ua62b\ua640-\ua66e\ua674-\ua67b\ua67f-\ua6ef\ua717-\ua71f\ua722-\ua788\ua78b-\ua7ae\ua7b0-\ua7b7\ua7f7-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua827\ua840-\ua873\ua880-\ua8c3\ua8c5\ua8f2-\ua8f7\ua8fb\ua8fd\ua90a-\ua92a\ua930-\ua952\ua960-\ua97c\ua980-\ua9b2\ua9b4-\ua9bf\ua9cf\ua9e0-\ua9e4\ua9e6-\ua9ef\ua9fa-\ua9fe\uaa00-\uaa36\uaa40-\uaa4d\uaa60-\uaa76\uaa7a\uaa7e-\uaabe\uaac0\uaac2\uaadb-\uaadd\uaae0-\uaaef\uaaf2-\uaaf5\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uab30-\uab5a\uab5c-\uab65\uab70-\uabea\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\ufb1d-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40\ufb41\ufb43\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe70-\ufe74\ufe76-\ufefc\uff21-\uff3a\uff41-\uff5a\uff66-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc",
astral:"\ud800[\udc00-\udc0b\udc0d-\udc26\udc28-\udc3a\udc3c\udc3d\udc3f-\udc4d\udc50-\udc5d\udc80-\udcfa\udd40-\udd74\ude80-\ude9c\udea0-\uded0\udf00-\udf1f\udf30-\udf4a\udf50-\udf7a\udf80-\udf9d\udfa0-\udfc3\udfc8-\udfcf\udfd1-\udfd5]|\ud801[\udc00-\udc9d\udcb0-\udcd3\udcd8-\udcfb\udd00-\udd27\udd30-\udd63\ude00-\udf36\udf40-\udf55\udf60-\udf67]|\ud802[\udc00-\udc05\udc08\udc0a-\udc35\udc37\udc38\udc3c\udc3f-\udc55\udc60-\udc76\udc80-\udc9e\udce0-\udcf2\udcf4\udcf5\udd00-\udd15\udd20-\udd39\udd80-\uddb7\uddbe\uddbf\ude00-\ude03\ude05\ude06\ude0c-\ude13\ude15-\ude17\ude19-\ude33\ude60-\ude7c\ude80-\ude9c\udec0-\udec7\udec9-\udee4\udf00-\udf35\udf40-\udf55\udf60-\udf72\udf80-\udf91]|\ud803[\udc00-\udc48\udc80-\udcb2\udcc0-\udcf2]|\ud804[\udc00-\udc45\udc82-\udcb8\udcd0-\udce8\udd00-\udd32\udd50-\udd72\udd76\udd80-\uddbf\uddc1-\uddc4\uddda\udddc\ude00-\ude11\ude13-\ude34\ude37\ude3e\ude80-\ude86\ude88\ude8a-\ude8d\ude8f-\ude9d\ude9f-\udea8\udeb0-\udee8\udf00-\udf03\udf05-\udf0c\udf0f\udf10\udf13-\udf28\udf2a-\udf30\udf32\udf33\udf35-\udf39\udf3d-\udf44\udf47\udf48\udf4b\udf4c\udf50\udf57\udf5d-\udf63]|\ud805[\udc00-\udc41\udc43-\udc45\udc47-\udc4a\udc80-\udcc1\udcc4\udcc5\udcc7\udd80-\uddb5\uddb8-\uddbe\uddd8-\udddd\ude00-\ude3e\ude40\ude44\ude80-\udeb5\udf00-\udf19\udf1d-\udf2a]|\ud806[\udca0-\udcdf\udcff\udec0-\udef8]|\ud807[\udc00-\udc08\udc0a-\udc36\udc38-\udc3e\udc40\udc72-\udc8f\udc92-\udca7\udca9-\udcb6]|\ud808[\udc00-\udf99]|\ud809[\udc00-\udc6e\udc80-\udd43]|[\ud80c\ud81c-\ud820\ud840-\ud868\ud86a-\ud86c\ud86f-\ud872][\udc00-\udfff]|\ud80d[\udc00-\udc2e]|\ud811[\udc00-\ude46]|\ud81a[\udc00-\ude38\ude40-\ude5e\uded0-\udeed\udf00-\udf36\udf40-\udf43\udf63-\udf77\udf7d-\udf8f]|\ud81b[\udf00-\udf44\udf50-\udf7e\udf93-\udf9f\udfe0]|\ud821[\udc00-\udfec]|\ud822[\udc00-\udef2]|\ud82c[\udc00\udc01]|\ud82f[\udc00-\udc6a\udc70-\udc7c\udc80-\udc88\udc90-\udc99\udc9e]|\ud835[\udc00-\udc54\udc56-\udc9c\udc9e\udc9f\udca2\udca5\udca6\udca9-\udcac\udcae-\udcb9\udcbb\udcbd-\udcc3\udcc5-\udd05\udd07-\udd0a\udd0d-\udd14\udd16-\udd1c\udd1e-\udd39\udd3b-\udd3e\udd40-\udd44\udd46\udd4a-\udd50\udd52-\udea5\udea8-\udec0\udec2-\udeda\udedc-\udefa\udefc-\udf14\udf16-\udf34\udf36-\udf4e\udf50-\udf6e\udf70-\udf88\udf8a-\udfa8\udfaa-\udfc2\udfc4-\udfcb]|\ud838[\udc00-\udc06\udc08-\udc18\udc1b-\udc21\udc23\udc24\udc26-\udc2a]|\ud83a[\udc00-\udcc4\udd00-\udd43\udd47]|\ud83b[\ude00-\ude03\ude05-\ude1f\ude21\ude22\ude24\ude27\ude29-\ude32\ude34-\ude37\ude39\ude3b\ude42\ude47\ude49\ude4b\ude4d-\ude4f\ude51\ude52\ude54\ude57\ude59\ude5b\ude5d\ude5f\ude61\ude62\ude64\ude67-\ude6a\ude6c-\ude72\ude74-\ude77\ude79-\ude7c\ude7e\ude80-\ude89\ude8b-\ude9b\udea1-\udea3\udea5-\udea9\udeab-\udebb]|\ud83c[\udd30-\udd49\udd50-\udd69\udd70-\udd89]|\ud869[\udc00-\uded6\udf00-\udfff]|\ud86d[\udc00-\udf34\udf40-\udfff]|\ud86e[\udc00-\udc1d\udc20-\udfff]|\ud873[\udc00-\udea1]|\ud87e[\udc00-\ude1d]"},
{name:"Any",isBmpLast:!0,bmp:"\x00-\uffff",astral:"[\ud800-\udbff][\udc00-\udfff]"},{name:"Default_Ignorable_Code_Point",bmp:"\u00ad\u034f\u061c\u115f\u1160\u17b4\u17b5\u180b-\u180e\u200b-\u200f\u202a-\u202e\u2060-\u206f\u3164\ufe00-\ufe0f\ufeff\uffa0\ufff0-\ufff8",astral:"\ud82f[\udca0-\udca3]|\ud834[\udd73-\udd7a]|[\udb40-\udb43][\udc00-\udfff]"},{name:"Lowercase",bmp:"a-z\u00aa\u00b5\u00ba\u00df-\u00f6\u00f8-\u00ff\u0101\u0103\u0105\u0107\u0109\u010b\u010d\u010f\u0111\u0113\u0115\u0117\u0119\u011b\u011d\u011f\u0121\u0123\u0125\u0127\u0129\u012b\u012d\u012f\u0131\u0133\u0135\u0137\u0138\u013a\u013c\u013e\u0140\u0142\u0144\u0146\u0148\u0149\u014b\u014d\u014f\u0151\u0153\u0155\u0157\u0159\u015b\u015d\u015f\u0161\u0163\u0165\u0167\u0169\u016b\u016d\u016f\u0171\u0173\u0175\u0177\u017a\u017c\u017e-\u0180\u0183\u0185\u0188\u018c\u018d\u0192\u0195\u0199-\u019b\u019e\u01a1\u01a3\u01a5\u01a8\u01aa\u01ab\u01ad\u01b0\u01b4\u01b6\u01b9\u01ba\u01bd-\u01bf\u01c6\u01c9\u01cc\u01ce\u01d0\u01d2\u01d4\u01d6\u01d8\u01da\u01dc\u01dd\u01df\u01e1\u01e3\u01e5\u01e7\u01e9\u01eb\u01ed\u01ef\u01f0\u01f3\u01f5\u01f9\u01fb\u01fd\u01ff\u0201\u0203\u0205\u0207\u0209\u020b\u020d\u020f\u0211\u0213\u0215\u0217\u0219\u021b\u021d\u021f\u0221\u0223\u0225\u0227\u0229\u022b\u022d\u022f\u0231\u0233-\u0239\u023c\u023f\u0240\u0242\u0247\u0249\u024b\u024d\u024f-\u0293\u0295-\u02b8\u02c0\u02c1\u02e0-\u02e4\u0345\u0371\u0373\u0377\u037a-\u037d\u0390\u03ac-\u03ce\u03d0\u03d1\u03d5-\u03d7\u03d9\u03db\u03dd\u03df\u03e1\u03e3\u03e5\u03e7\u03e9\u03eb\u03ed\u03ef-\u03f3\u03f5\u03f8\u03fb\u03fc\u0430-\u045f\u0461\u0463\u0465\u0467\u0469\u046b\u046d\u046f\u0471\u0473\u0475\u0477\u0479\u047b\u047d\u047f\u0481\u048b\u048d\u048f\u0491\u0493\u0495\u0497\u0499\u049b\u049d\u049f\u04a1\u04a3\u04a5\u04a7\u04a9\u04ab\u04ad\u04af\u04b1\u04b3\u04b5\u04b7\u04b9\u04bb\u04bd\u04bf\u04c2\u04c4\u04c6\u04c8\u04ca\u04cc\u04ce\u04cf\u04d1\u04d3\u04d5\u04d7\u04d9\u04db\u04dd\u04df\u04e1\u04e3\u04e5\u04e7\u04e9\u04eb\u04ed\u04ef\u04f1\u04f3\u04f5\u04f7\u04f9\u04fb\u04fd\u04ff\u0501\u0503\u0505\u0507\u0509\u050b\u050d\u050f\u0511\u0513\u0515\u0517\u0519\u051b\u051d\u051f\u0521\u0523\u0525\u0527\u0529\u052b\u052d\u052f\u0561-\u0587\u13f8-\u13fd\u1c80-\u1c88\u1d00-\u1dbf\u1e01\u1e03\u1e05\u1e07\u1e09\u1e0b\u1e0d\u1e0f\u1e11\u1e13\u1e15\u1e17\u1e19\u1e1b\u1e1d\u1e1f\u1e21\u1e23\u1e25\u1e27\u1e29\u1e2b\u1e2d\u1e2f\u1e31\u1e33\u1e35\u1e37\u1e39\u1e3b\u1e3d\u1e3f\u1e41\u1e43\u1e45\u1e47\u1e49\u1e4b\u1e4d\u1e4f\u1e51\u1e53\u1e55\u1e57\u1e59\u1e5b\u1e5d\u1e5f\u1e61\u1e63\u1e65\u1e67\u1e69\u1e6b\u1e6d\u1e6f\u1e71\u1e73\u1e75\u1e77\u1e79\u1e7b\u1e7d\u1e7f\u1e81\u1e83\u1e85\u1e87\u1e89\u1e8b\u1e8d\u1e8f\u1e91\u1e93\u1e95-\u1e9d\u1e9f\u1ea1\u1ea3\u1ea5\u1ea7\u1ea9\u1eab\u1ead\u1eaf\u1eb1\u1eb3\u1eb5\u1eb7\u1eb9\u1ebb\u1ebd\u1ebf\u1ec1\u1ec3\u1ec5\u1ec7\u1ec9\u1ecb\u1ecd\u1ecf\u1ed1\u1ed3\u1ed5\u1ed7\u1ed9\u1edb\u1edd\u1edf\u1ee1\u1ee3\u1ee5\u1ee7\u1ee9\u1eeb\u1eed\u1eef\u1ef1\u1ef3\u1ef5\u1ef7\u1ef9\u1efb\u1efd\u1eff-\u1f07\u1f10-\u1f15\u1f20-\u1f27\u1f30-\u1f37\u1f40-\u1f45\u1f50-\u1f57\u1f60-\u1f67\u1f70-\u1f7d\u1f80-\u1f87\u1f90-\u1f97\u1fa0-\u1fa7\u1fb0-\u1fb4\u1fb6\u1fb7\u1fbe\u1fc2-\u1fc4\u1fc6\u1fc7\u1fd0-\u1fd3\u1fd6\u1fd7\u1fe0-\u1fe7\u1ff2-\u1ff4\u1ff6\u1ff7\u2071\u207f\u2090-\u209c\u210a\u210e\u210f\u2113\u212f\u2134\u2139\u213c\u213d\u2146-\u2149\u214e\u2170-\u217f\u2184\u24d0-\u24e9\u2c30-\u2c5e\u2c61\u2c65\u2c66\u2c68\u2c6a\u2c6c\u2c71\u2c73\u2c74\u2c76-\u2c7d\u2c81\u2c83\u2c85\u2c87\u2c89\u2c8b\u2c8d\u2c8f\u2c91\u2c93\u2c95\u2c97\u2c99\u2c9b\u2c9d\u2c9f\u2ca1\u2ca3\u2ca5\u2ca7\u2ca9\u2cab\u2cad\u2caf\u2cb1\u2cb3\u2cb5\u2cb7\u2cb9\u2cbb\u2cbd\u2cbf\u2cc1\u2cc3\u2cc5\u2cc7\u2cc9\u2ccb\u2ccd\u2ccf\u2cd1\u2cd3\u2cd5\u2cd7\u2cd9\u2cdb\u2cdd\u2cdf\u2ce1\u2ce3\u2ce4\u2cec\u2cee\u2cf3\u2d00-\u2d25\u2d27\u2d2d\ua641\ua643\ua645\ua647\ua649\ua64b\ua64d\ua64f\ua651\ua653\ua655\ua657\ua659\ua65b\ua65d\ua65f\ua661\ua663\ua665\ua667\ua669\ua66b\ua66d\ua681\ua683\ua685\ua687\ua689\ua68b\ua68d\ua68f\ua691\ua693\ua695\ua697\ua699\ua69b-\ua69d\ua723\ua725\ua727\ua729\ua72b\ua72d\ua72f-\ua731\ua733\ua735\ua737\ua739\ua73b\ua73d\ua73f\ua741\ua743\ua745\ua747\ua749\ua74b\ua74d\ua74f\ua751\ua753\ua755\ua757\ua759\ua75b\ua75d\ua75f\ua761\ua763\ua765\ua767\ua769\ua76b\ua76d\ua76f-\ua778\ua77a\ua77c\ua77f\ua781\ua783\ua785\ua787\ua78c\ua78e\ua791\ua793-\ua795\ua797\ua799\ua79b\ua79d\ua79f\ua7a1\ua7a3\ua7a5\ua7a7\ua7a9\ua7b5\ua7b7\ua7f8-\ua7fa\uab30-\uab5a\uab5c-\uab65\uab70-\uabbf\ufb00-\ufb06\ufb13-\ufb17\uff41-\uff5a",
astral:"\ud801[\udc28-\udc4f\udcd8-\udcfb]|\ud803[\udcc0-\udcf2]|\ud806[\udcc0-\udcdf]|\ud835[\udc1a-\udc33\udc4e-\udc54\udc56-\udc67\udc82-\udc9b\udcb6-\udcb9\udcbb\udcbd-\udcc3\udcc5-\udccf\udcea-\udd03\udd1e-\udd37\udd52-\udd6b\udd86-\udd9f\uddba-\uddd3\uddee-\ude07\ude22-\ude3b\ude56-\ude6f\ude8a-\udea5\udec2-\udeda\udedc-\udee1\udefc-\udf14\udf16-\udf1b\udf36-\udf4e\udf50-\udf55\udf70-\udf88\udf8a-\udf8f\udfaa-\udfc2\udfc4-\udfc9\udfcb]|\ud83a[\udd22-\udd43]"},{name:"Noncharacter_Code_Point",
bmp:"\ufdd0-\ufdef\ufffe\uffff",astral:"[\ud83f\ud87f\ud8bf\ud8ff\ud93f\ud97f\ud9bf\ud9ff\uda3f\uda7f\udabf\udaff\udb3f\udb7f\udbbf\udbff][\udffe\udfff]"},{name:"Uppercase",bmp:"A-Z\u00c0-\u00d6\u00d8-\u00de\u0100\u0102\u0104\u0106\u0108\u010a\u010c\u010e\u0110\u0112\u0114\u0116\u0118\u011a\u011c\u011e\u0120\u0122\u0124\u0126\u0128\u012a\u012c\u012e\u0130\u0132\u0134\u0136\u0139\u013b\u013d\u013f\u0141\u0143\u0145\u0147\u014a\u014c\u014e\u0150\u0152\u0154\u0156\u0158\u015a\u015c\u015e\u0160\u0162\u0164\u0166\u0168\u016a\u016c\u016e\u0170\u0172\u0174\u0176\u0178\u0179\u017b\u017d\u0181\u0182\u0184\u0186\u0187\u0189-\u018b\u018e-\u0191\u0193\u0194\u0196-\u0198\u019c\u019d\u019f\u01a0\u01a2\u01a4\u01a6\u01a7\u01a9\u01ac\u01ae\u01af\u01b1-\u01b3\u01b5\u01b7\u01b8\u01bc\u01c4\u01c7\u01ca\u01cd\u01cf\u01d1\u01d3\u01d5\u01d7\u01d9\u01db\u01de\u01e0\u01e2\u01e4\u01e6\u01e8\u01ea\u01ec\u01ee\u01f1\u01f4\u01f6-\u01f8\u01fa\u01fc\u01fe\u0200\u0202\u0204\u0206\u0208\u020a\u020c\u020e\u0210\u0212\u0214\u0216\u0218\u021a\u021c\u021e\u0220\u0222\u0224\u0226\u0228\u022a\u022c\u022e\u0230\u0232\u023a\u023b\u023d\u023e\u0241\u0243-\u0246\u0248\u024a\u024c\u024e\u0370\u0372\u0376\u037f\u0386\u0388-\u038a\u038c\u038e\u038f\u0391-\u03a1\u03a3-\u03ab\u03cf\u03d2-\u03d4\u03d8\u03da\u03dc\u03de\u03e0\u03e2\u03e4\u03e6\u03e8\u03ea\u03ec\u03ee\u03f4\u03f7\u03f9\u03fa\u03fd-\u042f\u0460\u0462\u0464\u0466\u0468\u046a\u046c\u046e\u0470\u0472\u0474\u0476\u0478\u047a\u047c\u047e\u0480\u048a\u048c\u048e\u0490\u0492\u0494\u0496\u0498\u049a\u049c\u049e\u04a0\u04a2\u04a4\u04a6\u04a8\u04aa\u04ac\u04ae\u04b0\u04b2\u04b4\u04b6\u04b8\u04ba\u04bc\u04be\u04c0\u04c1\u04c3\u04c5\u04c7\u04c9\u04cb\u04cd\u04d0\u04d2\u04d4\u04d6\u04d8\u04da\u04dc\u04de\u04e0\u04e2\u04e4\u04e6\u04e8\u04ea\u04ec\u04ee\u04f0\u04f2\u04f4\u04f6\u04f8\u04fa\u04fc\u04fe\u0500\u0502\u0504\u0506\u0508\u050a\u050c\u050e\u0510\u0512\u0514\u0516\u0518\u051a\u051c\u051e\u0520\u0522\u0524\u0526\u0528\u052a\u052c\u052e\u0531-\u0556\u10a0-\u10c5\u10c7\u10cd\u13a0-\u13f5\u1e00\u1e02\u1e04\u1e06\u1e08\u1e0a\u1e0c\u1e0e\u1e10\u1e12\u1e14\u1e16\u1e18\u1e1a\u1e1c\u1e1e\u1e20\u1e22\u1e24\u1e26\u1e28\u1e2a\u1e2c\u1e2e\u1e30\u1e32\u1e34\u1e36\u1e38\u1e3a\u1e3c\u1e3e\u1e40\u1e42\u1e44\u1e46\u1e48\u1e4a\u1e4c\u1e4e\u1e50\u1e52\u1e54\u1e56\u1e58\u1e5a\u1e5c\u1e5e\u1e60\u1e62\u1e64\u1e66\u1e68\u1e6a\u1e6c\u1e6e\u1e70\u1e72\u1e74\u1e76\u1e78\u1e7a\u1e7c\u1e7e\u1e80\u1e82\u1e84\u1e86\u1e88\u1e8a\u1e8c\u1e8e\u1e90\u1e92\u1e94\u1e9e\u1ea0\u1ea2\u1ea4\u1ea6\u1ea8\u1eaa\u1eac\u1eae\u1eb0\u1eb2\u1eb4\u1eb6\u1eb8\u1eba\u1ebc\u1ebe\u1ec0\u1ec2\u1ec4\u1ec6\u1ec8\u1eca\u1ecc\u1ece\u1ed0\u1ed2\u1ed4\u1ed6\u1ed8\u1eda\u1edc\u1ede\u1ee0\u1ee2\u1ee4\u1ee6\u1ee8\u1eea\u1eec\u1eee\u1ef0\u1ef2\u1ef4\u1ef6\u1ef8\u1efa\u1efc\u1efe\u1f08-\u1f0f\u1f18-\u1f1d\u1f28-\u1f2f\u1f38-\u1f3f\u1f48-\u1f4d\u1f59\u1f5b\u1f5d\u1f5f\u1f68-\u1f6f\u1fb8-\u1fbb\u1fc8-\u1fcb\u1fd8-\u1fdb\u1fe8-\u1fec\u1ff8-\u1ffb\u2102\u2107\u210b-\u210d\u2110-\u2112\u2115\u2119-\u211d\u2124\u2126\u2128\u212a-\u212d\u2130-\u2133\u213e\u213f\u2145\u2160-\u216f\u2183\u24b6-\u24cf\u2c00-\u2c2e\u2c60\u2c62-\u2c64\u2c67\u2c69\u2c6b\u2c6d-\u2c70\u2c72\u2c75\u2c7e-\u2c80\u2c82\u2c84\u2c86\u2c88\u2c8a\u2c8c\u2c8e\u2c90\u2c92\u2c94\u2c96\u2c98\u2c9a\u2c9c\u2c9e\u2ca0\u2ca2\u2ca4\u2ca6\u2ca8\u2caa\u2cac\u2cae\u2cb0\u2cb2\u2cb4\u2cb6\u2cb8\u2cba\u2cbc\u2cbe\u2cc0\u2cc2\u2cc4\u2cc6\u2cc8\u2cca\u2ccc\u2cce\u2cd0\u2cd2\u2cd4\u2cd6\u2cd8\u2cda\u2cdc\u2cde\u2ce0\u2ce2\u2ceb\u2ced\u2cf2\ua640\ua642\ua644\ua646\ua648\ua64a\ua64c\ua64e\ua650\ua652\ua654\ua656\ua658\ua65a\ua65c\ua65e\ua660\ua662\ua664\ua666\ua668\ua66a\ua66c\ua680\ua682\ua684\ua686\ua688\ua68a\ua68c\ua68e\ua690\ua692\ua694\ua696\ua698\ua69a\ua722\ua724\ua726\ua728\ua72a\ua72c\ua72e\ua732\ua734\ua736\ua738\ua73a\ua73c\ua73e\ua740\ua742\ua744\ua746\ua748\ua74a\ua74c\ua74e\ua750\ua752\ua754\ua756\ua758\ua75a\ua75c\ua75e\ua760\ua762\ua764\ua766\ua768\ua76a\ua76c\ua76e\ua779\ua77b\ua77d\ua77e\ua780\ua782\ua784\ua786\ua78b\ua78d\ua790\ua792\ua796\ua798\ua79a\ua79c\ua79e\ua7a0\ua7a2\ua7a4\ua7a6\ua7a8\ua7aa-\ua7ae\ua7b0-\ua7b4\ua7b6\uff21-\uff3a",
astral:"\ud801[\udc00-\udc27\udcb0-\udcd3]|\ud803[\udc80-\udcb2]|\ud806[\udca0-\udcbf]|\ud835[\udc00-\udc19\udc34-\udc4d\udc68-\udc81\udc9c\udc9e\udc9f\udca2\udca5\udca6\udca9-\udcac\udcae-\udcb5\udcd0-\udce9\udd04\udd05\udd07-\udd0a\udd0d-\udd14\udd16-\udd1c\udd38\udd39\udd3b-\udd3e\udd40-\udd44\udd46\udd4a-\udd50\udd6c-\udd85\udda0-\uddb9\uddd4-\udded\ude08-\ude21\ude3c-\ude55\ude70-\ude89\udea8-\udec0\udee2-\udefa\udf1c-\udf34\udf56-\udf6e\udf90-\udfa8\udfca]|\ud83a[\udd00-\udd21]|\ud83c[\udd30-\udd49\udd50-\udd69\udd70-\udd89]"},
{name:"White_Space",bmp:"\t-\r \u0085\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000"}];q.push({name:"Assigned",inverseOf:"Cn"});b.addUnicodeData(q)}},
{}],7:[function(n,m){m.exports=function(b){if(!b.addUnicodeData)throw new ReferenceError("Unicode Base must be loaded before Unicode Scripts");b.addUnicodeData([{name:"Adlam",astral:"\ud83a[\udd00-\udd4a\udd50-\udd59\udd5e\udd5f]"},{name:"Ahom",astral:"\ud805[\udf00-\udf19\udf1d-\udf2b\udf30-\udf3f]"},{name:"Anatolian_Hieroglyphs",astral:"\ud811[\udc00-\ude46]"},{name:"Arabic",bmp:"\u0600-\u0604\u0606-\u060b\u060d-\u061a\u061e\u0620-\u063f\u0641-\u064a\u0656-\u066f\u0671-\u06dc\u06de-\u06ff\u0750-\u077f\u08a0-\u08b4\u08b6-\u08bd\u08d4-\u08e1\u08e3-\u08ff\ufb50-\ufbc1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfd\ufe70-\ufe74\ufe76-\ufefc",
astral:"\ud803[\ude60-\ude7e]|\ud83b[\ude00-\ude03\ude05-\ude1f\ude21\ude22\ude24\ude27\ude29-\ude32\ude34-\ude37\ude39\ude3b\ude42\ude47\ude49\ude4b\ude4d-\ude4f\ude51\ude52\ude54\ude57\ude59\ude5b\ude5d\ude5f\ude61\ude62\ude64\ude67-\ude6a\ude6c-\ude72\ude74-\ude77\ude79-\ude7c\ude7e\ude80-\ude89\ude8b-\ude9b\udea1-\udea3\udea5-\udea9\udeab-\udebb\udef0\udef1]"},{name:"Armenian",bmp:"\u0531-\u0556\u0559-\u055f\u0561-\u0587\u058a\u058d-\u058f\ufb13-\ufb17"},{name:"Avestan",astral:"\ud802[\udf00-\udf35\udf39-\udf3f]"},
{name:"Balinese",bmp:"\u1b00-\u1b4b\u1b50-\u1b7c"},{name:"Bamum",bmp:"\ua6a0-\ua6f7",astral:"\ud81a[\udc00-\ude38]"},{name:"Bassa_Vah",astral:"\ud81a[\uded0-\udeed\udef0-\udef5]"},{name:"Batak",bmp:"\u1bc0-\u1bf3\u1bfc-\u1bff"},{name:"Bengali",bmp:"\u0980-\u0983\u0985-\u098c\u098f\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bc-\u09c4\u09c7\u09c8\u09cb-\u09ce\u09d7\u09dc\u09dd\u09df-\u09e3\u09e6-\u09fb"},{name:"Bhaiksuki",astral:"\ud807[\udc00-\udc08\udc0a-\udc36\udc38-\udc45\udc50-\udc6c]"},
{name:"Bopomofo",bmp:"\u02ea\u02eb\u3105-\u312d\u31a0-\u31ba"},{name:"Brahmi",astral:"\ud804[\udc00-\udc4d\udc52-\udc6f\udc7f]"},{name:"Braille",bmp:"\u2800-\u28ff"},{name:"Buginese",bmp:"\u1a00-\u1a1b\u1a1e\u1a1f"},{name:"Buhid",bmp:"\u1740-\u1753"},{name:"Canadian_Aboriginal",bmp:"\u1400-\u167f\u18b0-\u18f5"},{name:"Carian",astral:"\ud800[\udea0-\uded0]"},{name:"Caucasian_Albanian",astral:"\ud801[\udd30-\udd63\udd6f]"},{name:"Chakma",astral:"\ud804[\udd00-\udd34\udd36-\udd43]"},{name:"Cham",bmp:"\uaa00-\uaa36\uaa40-\uaa4d\uaa50-\uaa59\uaa5c-\uaa5f"},
{name:"Cherokee",bmp:"\u13a0-\u13f5\u13f8-\u13fd\uab70-\uabbf"},{name:"Common",bmp:"\x00-@\\x5B-`\\x7B-\u00a9\u00ab-\u00b9\u00bb-\u00bf\u00d7\u00f7\u02b9-\u02df\u02e5-\u02e9\u02ec-\u02ff\u0374\u037e\u0385\u0387\u0589\u0605\u060c\u061b\u061c\u061f\u0640\u06dd\u08e2\u0964\u0965\u0e3f\u0fd5-\u0fd8\u10fb\u16eb-\u16ed\u1735\u1736\u1802\u1803\u1805\u1cd3\u1ce1\u1ce9-\u1cec\u1cee-\u1cf3\u1cf5\u1cf6\u2000-\u200b\u200e-\u2064\u2066-\u2070\u2074-\u207e\u2080-\u208e\u20a0-\u20be\u2100-\u2125\u2127-\u2129\u212c-\u2131\u2133-\u214d\u214f-\u215f\u2189-\u218b\u2190-\u23fe\u2400-\u2426\u2440-\u244a\u2460-\u27ff\u2900-\u2b73\u2b76-\u2b95\u2b98-\u2bb9\u2bbd-\u2bc8\u2bca-\u2bd1\u2bec-\u2bef\u2e00-\u2e44\u2ff0-\u2ffb\u3000-\u3004\u3006\u3008-\u3020\u3030-\u3037\u303c-\u303f\u309b\u309c\u30a0\u30fb\u30fc\u3190-\u319f\u31c0-\u31e3\u3220-\u325f\u327f-\u32cf\u3358-\u33ff\u4dc0-\u4dff\ua700-\ua721\ua788-\ua78a\ua830-\ua839\ua92e\ua9cf\uab5b\ufd3e\ufd3f\ufe10-\ufe19\ufe30-\ufe52\ufe54-\ufe66\ufe68-\ufe6b\ufeff\uff01-\uff20\uff3b-\uff40\uff5b-\uff65\uff70\uff9e\uff9f\uffe0-\uffe6\uffe8-\uffee\ufff9-\ufffd",
astral:"\ud800[\udd00-\udd02\udd07-\udd33\udd37-\udd3f\udd90-\udd9b\uddd0-\uddfc\udee1-\udefb]|\ud82f[\udca0-\udca3]|\ud834[\udc00-\udcf5\udd00-\udd26\udd29-\udd66\udd6a-\udd7a\udd83\udd84\udd8c-\udda9\uddae-\udde8\udf00-\udf56\udf60-\udf71]|\ud835[\udc00-\udc54\udc56-\udc9c\udc9e\udc9f\udca2\udca5\udca6\udca9-\udcac\udcae-\udcb9\udcbb\udcbd-\udcc3\udcc5-\udd05\udd07-\udd0a\udd0d-\udd14\udd16-\udd1c\udd1e-\udd39\udd3b-\udd3e\udd40-\udd44\udd46\udd4a-\udd50\udd52-\udea5\udea8-\udfcb\udfce-\udfff]|\ud83c[\udc00-\udc2b\udc30-\udc93\udca0-\udcae\udcb1-\udcbf\udcc1-\udccf\udcd1-\udcf5\udd00-\udd0c\udd10-\udd2e\udd30-\udd6b\udd70-\uddac\udde6-\uddff\ude01\ude02\ude10-\ude3b\ude40-\ude48\ude50\ude51\udf00-\udfff]|\ud83d[\udc00-\uded2\udee0-\udeec\udef0-\udef6\udf00-\udf73\udf80-\udfd4]|\ud83e[\udc00-\udc0b\udc10-\udc47\udc50-\udc59\udc60-\udc87\udc90-\udcad\udd10-\udd1e\udd20-\udd27\udd30\udd33-\udd3e\udd40-\udd4b\udd50-\udd5e\udd80-\udd91\uddc0]|\udb40[\udc01\udc20-\udc7f]"},
{name:"Coptic",bmp:"\u03e2-\u03ef\u2c80-\u2cf3\u2cf9-\u2cff"},{name:"Cuneiform",astral:"\ud808[\udc00-\udf99]|\ud809[\udc00-\udc6e\udc70-\udc74\udc80-\udd43]"},{name:"Cypriot",astral:"\ud802[\udc00-\udc05\udc08\udc0a-\udc35\udc37\udc38\udc3c\udc3f]"},{name:"Cyrillic",bmp:"\u0400-\u0484\u0487-\u052f\u1c80-\u1c88\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f"},{name:"Deseret",astral:"\ud801[\udc00-\udc4f]"},{name:"Devanagari",bmp:"\u0900-\u0950\u0953-\u0963\u0966-\u097f\ua8e0-\ua8fd"},{name:"Duployan",
astral:"\ud82f[\udc00-\udc6a\udc70-\udc7c\udc80-\udc88\udc90-\udc99\udc9c-\udc9f]"},{name:"Egyptian_Hieroglyphs",astral:"\ud80c[\udc00-\udfff]|\ud80d[\udc00-\udc2e]"},{name:"Elbasan",astral:"\ud801[\udd00-\udd27]"},{name:"Ethiopic",bmp:"\u1200-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u135d-\u137c\u1380-\u1399\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e"},
{name:"Georgian",bmp:"\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u10ff\u2d00-\u2d25\u2d27\u2d2d"},{name:"Glagolitic",bmp:"\u2c00-\u2c2e\u2c30-\u2c5e",astral:"\ud838[\udc00-\udc06\udc08-\udc18\udc1b-\udc21\udc23\udc24\udc26-\udc2a]"},{name:"Gothic",astral:"\ud800[\udf30-\udf4a]"},{name:"Grantha",astral:"\ud804[\udf00-\udf03\udf05-\udf0c\udf0f\udf10\udf13-\udf28\udf2a-\udf30\udf32\udf33\udf35-\udf39\udf3c-\udf44\udf47\udf48\udf4b-\udf4d\udf50\udf57\udf5d-\udf63\udf66-\udf6c\udf70-\udf74]"},{name:"Greek",
bmp:"\u0370-\u0373\u0375-\u0377\u037a-\u037d\u037f\u0384\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03e1\u03f0-\u03ff\u1d26-\u1d2a\u1d5d-\u1d61\u1d66-\u1d6a\u1dbf\u1f00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fc4\u1fc6-\u1fd3\u1fd6-\u1fdb\u1fdd-\u1fef\u1ff2-\u1ff4\u1ff6-\u1ffe\u2126\uab65",astral:"\ud800[\udd40-\udd8e\udda0]|\ud834[\ude00-\ude45]"},{name:"Gujarati",bmp:"\u0a81-\u0a83\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2\u0ab3\u0ab5-\u0ab9\u0abc-\u0ac5\u0ac7-\u0ac9\u0acb-\u0acd\u0ad0\u0ae0-\u0ae3\u0ae6-\u0af1\u0af9"},
{name:"Gurmukhi",bmp:"\u0a01-\u0a03\u0a05-\u0a0a\u0a0f\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32\u0a33\u0a35\u0a36\u0a38\u0a39\u0a3c\u0a3e-\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a59-\u0a5c\u0a5e\u0a66-\u0a75"},{name:"Han",bmp:"\u2e80-\u2e99\u2e9b-\u2ef3\u2f00-\u2fd5\u3005\u3007\u3021-\u3029\u3038-\u303b\u3400-\u4db5\u4e00-\u9fd5\uf900-\ufa6d\ufa70-\ufad9",astral:"[\ud840-\ud868\ud86a-\ud86c\ud86f-\ud872][\udc00-\udfff]|\ud869[\udc00-\uded6\udf00-\udfff]|\ud86d[\udc00-\udf34\udf40-\udfff]|\ud86e[\udc00-\udc1d\udc20-\udfff]|\ud873[\udc00-\udea1]|\ud87e[\udc00-\ude1d]"},
{name:"Hangul",bmp:"\u1100-\u11ff\u302e\u302f\u3131-\u318e\u3200-\u321e\u3260-\u327e\ua960-\ua97c\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uffa0-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc"},{name:"Hanunoo",bmp:"\u1720-\u1734"},{name:"Hatran",astral:"\ud802[\udce0-\udcf2\udcf4\udcf5\udcfb-\udcff]"},{name:"Hebrew",bmp:"\u0591-\u05c7\u05d0-\u05ea\u05f0-\u05f4\ufb1d-\ufb36\ufb38-\ufb3c\ufb3e\ufb40\ufb41\ufb43\ufb44\ufb46-\ufb4f"},{name:"Hiragana",bmp:"\u3041-\u3096\u309d-\u309f",astral:"\ud82c\udc01|\ud83c\ude00"},
{name:"Imperial_Aramaic",astral:"\ud802[\udc40-\udc55\udc57-\udc5f]"},{name:"Inherited",bmp:"\u0300-\u036f\u0485\u0486\u064b-\u0655\u0670\u0951\u0952\u1ab0-\u1abe\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1cf4\u1cf8\u1cf9\u1dc0-\u1df5\u1dfb-\u1dff\u200c\u200d\u20d0-\u20f0\u302a-\u302d\u3099\u309a\ufe00-\ufe0f\ufe20-\ufe2d",astral:"\ud800[\uddfd\udee0]|\ud834[\udd67-\udd69\udd7b-\udd82\udd85-\udd8b\uddaa-\uddad]|\udb40[\udd00-\uddef]"},{name:"Inscriptional_Pahlavi",astral:"\ud802[\udf60-\udf72\udf78-\udf7f]"},
{name:"Inscriptional_Parthian",astral:"\ud802[\udf40-\udf55\udf58-\udf5f]"},{name:"Javanese",bmp:"\ua980-\ua9cd\ua9d0-\ua9d9\ua9de\ua9df"},{name:"Kaithi",astral:"\ud804[\udc80-\udcc1]"},{name:"Kannada",bmp:"\u0c80-\u0c83\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbc-\u0cc4\u0cc6-\u0cc8\u0cca-\u0ccd\u0cd5\u0cd6\u0cde\u0ce0-\u0ce3\u0ce6-\u0cef\u0cf1\u0cf2"},{name:"Katakana",bmp:"\u30a1-\u30fa\u30fd-\u30ff\u31f0-\u31ff\u32d0-\u32fe\u3300-\u3357\uff66-\uff6f\uff71-\uff9d",astral:"\ud82c\udc00"},
{name:"Kayah_Li",bmp:"\ua900-\ua92d\ua92f"},{name:"Kharoshthi",astral:"\ud802[\ude00-\ude03\ude05\ude06\ude0c-\ude13\ude15-\ude17\ude19-\ude33\ude38-\ude3a\ude3f-\ude47\ude50-\ude58]"},{name:"Khmer",bmp:"\u1780-\u17dd\u17e0-\u17e9\u17f0-\u17f9\u19e0-\u19ff"},{name:"Khojki",astral:"\ud804[\ude00-\ude11\ude13-\ude3e]"},{name:"Khudawadi",astral:"\ud804[\udeb0-\udeea\udef0-\udef9]"},{name:"Lao",bmp:"\u0e81\u0e82\u0e84\u0e87\u0e88\u0e8a\u0e8d\u0e94-\u0e97\u0e99-\u0e9f\u0ea1-\u0ea3\u0ea5\u0ea7\u0eaa\u0eab\u0ead-\u0eb9\u0ebb-\u0ebd\u0ec0-\u0ec4\u0ec6\u0ec8-\u0ecd\u0ed0-\u0ed9\u0edc-\u0edf"},
{name:"Latin",bmp:"A-Za-z\u00aa\u00ba\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u02e0-\u02e4\u1d00-\u1d25\u1d2c-\u1d5c\u1d62-\u1d65\u1d6b-\u1d77\u1d79-\u1dbe\u1e00-\u1eff\u2071\u207f\u2090-\u209c\u212a\u212b\u2132\u214e\u2160-\u2188\u2c60-\u2c7f\ua722-\ua787\ua78b-\ua7ae\ua7b0-\ua7b7\ua7f7-\ua7ff\uab30-\uab5a\uab5c-\uab64\ufb00-\ufb06\uff21-\uff3a\uff41-\uff5a"},{name:"Lepcha",bmp:"\u1c00-\u1c37\u1c3b-\u1c49\u1c4d-\u1c4f"},{name:"Limbu",bmp:"\u1900-\u191e\u1920-\u192b\u1930-\u193b\u1940\u1944-\u194f"},
{name:"Linear_A",astral:"\ud801[\ude00-\udf36\udf40-\udf55\udf60-\udf67]"},{name:"Linear_B",astral:"\ud800[\udc00-\udc0b\udc0d-\udc26\udc28-\udc3a\udc3c\udc3d\udc3f-\udc4d\udc50-\udc5d\udc80-\udcfa]"},{name:"Lisu",bmp:"\ua4d0-\ua4ff"},{name:"Lycian",astral:"\ud800[\ude80-\ude9c]"},{name:"Lydian",astral:"\ud802[\udd20-\udd39\udd3f]"},{name:"Mahajani",astral:"\ud804[\udd50-\udd76]"},{name:"Malayalam",bmp:"\u0d01-\u0d03\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d-\u0d44\u0d46-\u0d48\u0d4a-\u0d4f\u0d54-\u0d63\u0d66-\u0d7f"},
{name:"Mandaic",bmp:"\u0840-\u085b\u085e"},{name:"Manichaean",astral:"\ud802[\udec0-\udee6\udeeb-\udef6]"},{name:"Marchen",astral:"\ud807[\udc70-\udc8f\udc92-\udca7\udca9-\udcb6]"},{name:"Meetei_Mayek",bmp:"\uaae0-\uaaf6\uabc0-\uabed\uabf0-\uabf9"},{name:"Mende_Kikakui",astral:"\ud83a[\udc00-\udcc4\udcc7-\udcd6]"},{name:"Meroitic_Cursive",astral:"\ud802[\udda0-\uddb7\uddbc-\uddcf\uddd2-\uddff]"},{name:"Meroitic_Hieroglyphs",astral:"\ud802[\udd80-\udd9f]"},{name:"Miao",astral:"\ud81b[\udf00-\udf44\udf50-\udf7e\udf8f-\udf9f]"},
{name:"Modi",astral:"\ud805[\ude00-\ude44\ude50-\ude59]"},{name:"Mongolian",bmp:"\u1800\u1801\u1804\u1806-\u180e\u1810-\u1819\u1820-\u1877\u1880-\u18aa",astral:"\ud805[\ude60-\ude6c]"},{name:"Mro",astral:"\ud81a[\ude40-\ude5e\ude60-\ude69\ude6e\ude6f]"},{name:"Multani",astral:"\ud804[\ude80-\ude86\ude88\ude8a-\ude8d\ude8f-\ude9d\ude9f-\udea9]"},{name:"Myanmar",bmp:"\u1000-\u109f\ua9e0-\ua9fe\uaa60-\uaa7f"},{name:"Nabataean",astral:"\ud802[\udc80-\udc9e\udca7-\udcaf]"},{name:"New_Tai_Lue",bmp:"\u1980-\u19ab\u19b0-\u19c9\u19d0-\u19da\u19de\u19df"},
{name:"Newa",astral:"\ud805[\udc00-\udc59\udc5b\udc5d]"},{name:"Nko",bmp:"\u07c0-\u07fa"},{name:"Ogham",bmp:"\u1680-\u169c"},{name:"Ol_Chiki",bmp:"\u1c50-\u1c7f"},{name:"Old_Hungarian",astral:"\ud803[\udc80-\udcb2\udcc0-\udcf2\udcfa-\udcff]"},{name:"Old_Italic",astral:"\ud800[\udf00-\udf23]"},{name:"Old_North_Arabian",astral:"\ud802[\ude80-\ude9f]"},{name:"Old_Permic",astral:"\ud800[\udf50-\udf7a]"},{name:"Old_Persian",astral:"\ud800[\udfa0-\udfc3\udfc8-\udfd5]"},{name:"Old_South_Arabian",astral:"\ud802[\ude60-\ude7f]"},
{name:"Old_Turkic",astral:"\ud803[\udc00-\udc48]"},{name:"Oriya",bmp:"\u0b01-\u0b03\u0b05-\u0b0c\u0b0f\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32\u0b33\u0b35-\u0b39\u0b3c-\u0b44\u0b47\u0b48\u0b4b-\u0b4d\u0b56\u0b57\u0b5c\u0b5d\u0b5f-\u0b63\u0b66-\u0b77"},{name:"Osage",astral:"\ud801[\udcb0-\udcd3\udcd8-\udcfb]"},{name:"Osmanya",astral:"\ud801[\udc80-\udc9d\udca0-\udca9]"},{name:"Pahawh_Hmong",astral:"\ud81a[\udf00-\udf45\udf50-\udf59\udf5b-\udf61\udf63-\udf77\udf7d-\udf8f]"},{name:"Palmyrene",astral:"\ud802[\udc60-\udc7f]"},
{name:"Pau_Cin_Hau",astral:"\ud806[\udec0-\udef8]"},{name:"Phags_Pa",bmp:"\ua840-\ua877"},{name:"Phoenician",astral:"\ud802[\udd00-\udd1b\udd1f]"},{name:"Psalter_Pahlavi",astral:"\ud802[\udf80-\udf91\udf99-\udf9c\udfa9-\udfaf]"},{name:"Rejang",bmp:"\ua930-\ua953\ua95f"},{name:"Runic",bmp:"\u16a0-\u16ea\u16ee-\u16f8"},{name:"Samaritan",bmp:"\u0800-\u082d\u0830-\u083e"},{name:"Saurashtra",bmp:"\ua880-\ua8c5\ua8ce-\ua8d9"},{name:"Sharada",astral:"\ud804[\udd80-\uddcd\uddd0-\udddf]"},{name:"Shavian",
astral:"\ud801[\udc50-\udc7f]"},{name:"Siddham",astral:"\ud805[\udd80-\uddb5\uddb8-\udddd]"},{name:"SignWriting",astral:"\ud836[\udc00-\ude8b\ude9b-\ude9f\udea1-\udeaf]"},{name:"Sinhala",bmp:"\u0d82\u0d83\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0dca\u0dcf-\u0dd4\u0dd6\u0dd8-\u0ddf\u0de6-\u0def\u0df2-\u0df4",astral:"\ud804[\udde1-\uddf4]"},{name:"Sora_Sompeng",astral:"\ud804[\udcd0-\udce8\udcf0-\udcf9]"},{name:"Sundanese",bmp:"\u1b80-\u1bbf\u1cc0-\u1cc7"},{name:"Syloti_Nagri",bmp:"\ua800-\ua82b"},
{name:"Syriac",bmp:"\u0700-\u070d\u070f-\u074a\u074d-\u074f"},{name:"Tagalog",bmp:"\u1700-\u170c\u170e-\u1714"},{name:"Tagbanwa",bmp:"\u1760-\u176c\u176e-\u1770\u1772\u1773"},{name:"Tai_Le",bmp:"\u1950-\u196d\u1970-\u1974"},{name:"Tai_Tham",bmp:"\u1a20-\u1a5e\u1a60-\u1a7c\u1a7f-\u1a89\u1a90-\u1a99\u1aa0-\u1aad"},{name:"Tai_Viet",bmp:"\uaa80-\uaac2\uaadb-\uaadf"},{name:"Takri",astral:"\ud805[\ude80-\udeb7\udec0-\udec9]"},{name:"Tamil",bmp:"\u0b82\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99\u0b9a\u0b9c\u0b9e\u0b9f\u0ba3\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bbe-\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcd\u0bd0\u0bd7\u0be6-\u0bfa"},
{name:"Tangut",astral:"\ud81b\udfe0|[\ud81c-\ud820][\udc00-\udfff]|\ud821[\udc00-\udfec]|\ud822[\udc00-\udef2]"},{name:"Telugu",bmp:"\u0c00-\u0c03\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c39\u0c3d-\u0c44\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c58-\u0c5a\u0c60-\u0c63\u0c66-\u0c6f\u0c78-\u0c7f"},{name:"Thaana",bmp:"\u0780-\u07b1"},{name:"Thai",bmp:"\u0e01-\u0e3a\u0e40-\u0e5b"},{name:"Tibetan",bmp:"\u0f00-\u0f47\u0f49-\u0f6c\u0f71-\u0f97\u0f99-\u0fbc\u0fbe-\u0fcc\u0fce-\u0fd4\u0fd9\u0fda"},
{name:"Tifinagh",bmp:"\u2d30-\u2d67\u2d6f\u2d70\u2d7f"},{name:"Tirhuta",astral:"\ud805[\udc80-\udcc7\udcd0-\udcd9]"},{name:"Ugaritic",astral:"\ud800[\udf80-\udf9d\udf9f]"},{name:"Vai",bmp:"\ua500-\ua62b"},{name:"Warang_Citi",astral:"\ud806[\udca0-\udcf2\udcff]"},{name:"Yi",bmp:"\ua000-\ua48c\ua490-\ua4c6"}])}},
{}],8:[function(n,m){var b=n("./xregexp");n("./addons/build")(b);n("./addons/matchrecursive")(b);n("./addons/unicode-base")(b);n("./addons/unicode-blocks")(b);n("./addons/unicode-categories")(b);n("./addons/unicode-properties")(b);n("./addons/unicode-scripts")(b);m.exports=b},
{"./addons/build":1,"./addons/matchrecursive":2,"./addons/unicode-base":3,"./addons/unicode-blocks":4,"./addons/unicode-categories":5,"./addons/unicode-properties":6,"./addons/unicode-scripts":7,"./xregexp":9}],9:[function(n,m){function b(a){var c=!0;try{c=!!RegExp("",a)}catch(g){c=!1}return c}
function q(a,c,g,l,x){var z;a.xregexp={captureNames:c};if(x)return a;if(a.__proto__)a.__proto__=p.prototype;else for(z in p.prototype)a[z]=p.prototype[z];a.xregexp.source=g;a.xregexp.flags=l?l.split("").sort().join(""):l;return a}
function v(a){return E.replace.call(a,/([\s\S])(?=[\s\S]*\1)/g,"")}
function t(a,c){if(!p.isRegExp(a))throw new TypeError("Type RegExp expected");var g=a.xregexp||{},l=P?a.flags:E.exec.call(/\/([a-z]*)$/i,RegExp.prototype.toString.call(a))[1],x="",z="",w=null,y=null;c=c||{};c.removeG&&(z+="g");c.removeY&&(z+="y");z&&(l=E.replace.call(l,new RegExp("["+z+"]+","g"),""));c.addG&&(x+="g");c.addY&&(x+="y");x&&(l=v(l+x));c.isInternalOnly||(g.source!==void 0&&(w=g.source),g.flags!=null&&(y=x?v(g.flags+x):g.flags));return a=q(new RegExp(c.source||a.source,l),a.xregexp&&a.xregexp.captureNames?
g.captureNames.slice(0):null,w,y,c.isInternalOnly)}
function A(a){return parseInt(a,16)}
function d(a,c,g){(c=a.input.charAt(a.index-1)==="("||a.input.charAt(a.index+a[0].length)===")")||(g=g.indexOf("x")>-1?["\\s","#[^#\\n]*","\\(\\?#[^)]*\\)"]:["\\(\\?#[^)]*\\)"],c=E.test.call(new RegExp("^(?:"+g.join("|")+")*(?:[?*+]|{\\d+(?:,\\d*)?})"),a.input.slice(a.index+a[0].length)));return c?"":"(?:)"}
function f(a){return parseInt(a,10).toString(16)}
function h(a,c){var g=a.length,l;for(l=0;l<g;++l)if(a[l]===c)return l;return-1}
function k(a,c){return T.call(a)==="[object "+c+"]"}
function r(a){for(;a.length<4;)a="0"+a;return a}
function u(a,c){var g;if(v(c)!==c)throw new SyntaxError("Invalid duplicate regex flag "+c);a=E.replace.call(a,/^\(\?([\w$]+)\)/,function(l,x){if(E.test.call(/[gy]/,x))throw new SyntaxError("Cannot use flag g or y in mode modifier "+l);c=v(c+x);return""});
for(g=0;g<c.length;++g)if(!Z[c.charAt(g)])throw new SyntaxError("Unknown regex flag "+c.charAt(g));return{pattern:a,flags:c}}
function B(a){var c={};return k(a,"String")?(p.forEach(a,/[^\s,]+/,function(g){c[g]=!0}),c):a}
function C(a){if(!/^[\w$]$/.test(a))throw Error("Flag must be a single character A-Za-z0-9_$");Z[a]=!0}
function D(a){if(a==null)throw new TypeError("Cannot convert null or undefined to object");return a}
function p(a,c){if(p.isRegExp(a)){if(c!==void 0)throw new TypeError("Cannot supply flags when copying a RegExp");return t(a)}a=a===void 0?"":String(a);c=c===void 0?"":String(c);p.isInstalled("astral")&&c.indexOf("A")===-1&&(c+="A");N[a]||(N[a]={});if(!N[a][c]){var g={hasNamedCapture:!1,captureNames:[]},l="default",x="",z=0,w=u(a,c),y=w.pattern;for(w=w.flags;z<y.length;){do{for(var K,H=y,V=w,W=z,X=l,Y=g,S=Q.length,ba=H.charAt(W),aa=null;S--;){var G=Q[S];if(!(G.leadChar&&G.leadChar!==ba||G.scope!==
X&&G.scope!=="all"||G.flag&&V.indexOf(G.flag)===-1)&&(K=p.exec(H,G.regex,W,"sticky"))){aa={matchLength:K[0].length,output:G.handler.call(Y,K,X,V),reparse:G.reparse};break}}(G=aa)&&G.reparse&&(y=y.slice(0,z)+G.output+y.slice(z+G.matchLength))}while(G&&G.reparse);G?(x+=G.output,z+=G.matchLength||1):(G=p.exec(y,R[l],z,"sticky")[0],x+=G,z+=G.length,G==="["&&l==="default"?l="class":G==="]"&&l==="class"&&(l="default"))}N[a][c]={pattern:E.replace.call(x,/(?:\(\?:\))+/g,"(?:)"),flags:E.replace.call(w,/[^gimuy]+/g,
""),captures:g.hasNamedCapture?g.captureNames:null}}g=N[a][c];return q(new RegExp(g.pattern,g.flags),g.captures,a,c)}
var I={astral:!1,natives:!1},E={exec:RegExp.prototype.exec,test:RegExp.prototype.test,match:String.prototype.match,replace:String.prototype.replace,split:String.prototype.split},F={},J={},N={},Q=[],R={"default":/\\(?:0(?:[0-3][0-7]{0,2}|[4-7][0-7]?)?|[1-9]\d*|x[\dA-Fa-f]{2}|u(?:[\dA-Fa-f]{4}|{[\dA-Fa-f]+})|c[A-Za-z]|[\s\S])|\(\?(?:[:=!]|<[=!])|[?*+]\?|{\d+(?:,\d*)?}\??|[\s\S]/,"class":/\\(?:[0-3][0-7]{0,2}|[4-7][0-7]?|x[\dA-Fa-f]{2}|u(?:[\dA-Fa-f]{4}|{[\dA-Fa-f]+})|c[A-Za-z]|[\s\S])|[\s\S]/},L=/\$(?:{([\w$]+)}|(\d\d?|[\s\S]))/g,
M=E.exec.call(/()??/,"")[1]===void 0,P=/x/.flags!==void 0,T={}.toString,U=b("u"),O=b("y"),Z={g:!0,i:!0,m:!0,u:U,y:O};p.prototype=RegExp();p.version="3.2.0";p._clipDuplicates=v;p._hasNativeFlag=b;p._dec=A;p._hex=f;p._pad4=r;p.addToken=function(a,c,g){g=g||{};var l=g.optionalFlags,x;g.flag&&C(g.flag);if(l)for(l=E.split.call(l,""),x=0;x<l.length;++x)C(l[x]);Q.push({regex:t(a,{addG:!0,addY:O,isInternalOnly:!0}),handler:c,scope:g.scope||"default",flag:g.flag,reparse:g.reparse,leadChar:g.leadChar});p.cache.flush("patterns")};
p.cache=function(a,c){J[a]||(J[a]={});return J[a][c]||(J[a][c]=p(a,c))};
p.cache.flush=function(a){a==="patterns"?N={}:J={}};
p.escape=function(a){return E.replace.call(D(a),/[-\[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};
p.exec=function(a,c,g,l){var x="g",z,w=!1;(z=O&&!!(l||c.sticky&&l!==!1))?x+="y":l&&(w=!0,x+="FakeY");c.xregexp=c.xregexp||{};l=c.xregexp[x]||(c.xregexp[x]=t(c,{addG:!0,addY:z,source:w?c.source+"|()":void 0,removeY:l===!1,isInternalOnly:!0}));g=g||0;l.lastIndex=g;a=F.exec.call(l,a);w&&a&&a.pop()===""&&(a=null);c.global&&(c.lastIndex=a?l.lastIndex:0);return a};
p.forEach=function(a,c,g){for(var l=0,x=-1;l=p.exec(a,c,l);)g(l,++x,a,c),l=l.index+(l[0].length||1)};
p.install=function(a){a=B(a);!I.astral&&a.astral&&(I.astral=!0);!I.natives&&a.natives&&(RegExp.prototype.exec=F.exec,RegExp.prototype.test=F.test,String.prototype.match=F.match,String.prototype.replace=F.replace,String.prototype.split=F.split,I.natives=!0)};
p.isInstalled=function(a){return!!I[a]};
p.isRegExp=function(a){return T.call(a)==="[object RegExp]"};
p.match=function(a,c,g){var l=c.global&&g!=="one"||g==="all",x=(l?"g":"")+(c.sticky?"y":"")||"noGY";c.xregexp=c.xregexp||{};x=c.xregexp[x]||(c.xregexp[x]=t(c,{addG:!!l,removeG:g==="one",isInternalOnly:!0}));a=E.match.call(D(a),x);c.global&&(c.lastIndex=g==="one"&&a?a.index+a[0].length:0);return l?a||[]:a&&a[0]};
p.replace=function(a,c,g,l){var x=p.isRegExp(c),z=c.global&&l!=="one"||l==="all",w=(z?"g":"")+(c.sticky?"y":"")||"noGY",y=c;x?(c.xregexp=c.xregexp||{},y=c.xregexp[w]||(c.xregexp[w]=t(c,{addG:!!z,removeG:l==="one",isInternalOnly:!0}))):z&&(y=new RegExp(p.escape(String(c)),"g"));a=F.replace.call(D(a),y,g);x&&c.global&&(c.lastIndex=0);return a};
p.split=function(a,c,g){return F.split.call(D(a),c,g)};
p.test=function(a,c,g,l){return!!p.exec(a,c,g,l)};
p.union=function(a,c,g){function l(W,X,Y){var S=V[z-H];if(X){if(++z,S)return"(?<"+S+">"}else if(Y)return"\\"+(+Y+H);return W}
g=g||{};var x=g.conjunction||"or",z=0;if(!k(a,"Array")||!a.length)throw new TypeError("Must provide a nonempty array of patterns to merge");var w=/(\()(?!\?)|\\([1-9]\d*)|\\[\s\S]|\[(?:[^\\\]]|\\[\s\S])*\]/g;g=[];for(var y,K=0;K<a.length;++K)if(y=a[K],p.isRegExp(y)){var H=z;var V=y.xregexp&&y.xregexp.captureNames||[];g.push(E.replace.call(p(y.source).source,w,l))}else g.push(p.escape(y));a=x==="none"?"":"|";return p(g.join(a),c)};
F.exec=function(a){var c=this.lastIndex,g=E.exec.apply(this,arguments),l;if(g){if(!M&&g.length>1&&h(g,"")>-1){var x=t(this,{removeG:!0,isInternalOnly:!0});E.replace.call(String(a).slice(g.index),x,function(){var z=arguments.length,w;for(w=1;w<z-2;++w)arguments[w]===void 0&&(g[w]=void 0)})}if(this.xregexp&&this.xregexp.captureNames)for(l=1;l<g.length;++l)(x=this.xregexp.captureNames[l-1])&&(g[x]=g[l]);
this.global&&!g[0].length&&this.lastIndex>g.index&&(this.lastIndex=g.index)}this.global||(this.lastIndex=c);return g};
F.test=function(a){return!!F.exec.call(this,a)};
F.match=function(a){if(!p.isRegExp(a))a=new RegExp(a);else if(a.global){var c=E.match.apply(this,arguments);a.lastIndex=0;return c}return F.exec.call(a,D(this))};
F.replace=function(a,c){var g=p.isRegExp(a);if(g){if(a.xregexp)var l=a.xregexp.captureNames;var x=a.lastIndex}else a+="";var z=k(c,"Function")?E.replace.call(String(this),a,function(){var w=arguments,y;if(l)for(w[0]=new String(w[0]),y=0;y<l.length;++y)l[y]&&(w[0][l[y]]=w[y+1]);g&&a.global&&(a.lastIndex=w[w.length-2]+w[0].length);return c.apply(void 0,w)}):E.replace.call(this==null?this:String(this),a,function(){var w=arguments;
return E.replace.call(String(c),L,function(y,K,H){if(K){H=+K;if(H<=w.length-3)return w[H]||"";H=l?h(l,K):-1;if(H<0)throw new SyntaxError("Backreference to undefined group "+y);return w[H+1]||""}if(H==="$")return"$";if(H==="&"||+H===0)return w[0];if(H==="`")return w[w.length-1].slice(0,w[w.length-2]);if(H==="'")return w[w.length-1].slice(w[w.length-2]+w[0].length);H=+H;if(!isNaN(H)){if(H>w.length-3)throw new SyntaxError("Backreference to undefined group "+y);return w[H]||""}throw new SyntaxError("Invalid token "+
y);})});
g&&(a.lastIndex=a.global?0:x);return z};
F.split=function(a,c){if(!p.isRegExp(a))return E.split.apply(this,arguments);var g=String(this),l=[],x=a.lastIndex,z=0,w;c=(c===void 0?-1:c)>>>0;p.forEach(g,a,function(y){y.index+y[0].length>z&&(l.push(g.slice(z,y.index)),y.length>1&&y.index<g.length&&Array.prototype.push.apply(l,y.slice(1)),w=y[0].length,z=y.index+w)});
z===g.length?(!E.test.call(a,"")||w)&&l.push(""):l.push(g.slice(z));a.lastIndex=x;return l.length>c?l.slice(0,c):l};
p.addToken(/\\([ABCE-RTUVXYZaeg-mopqyz]|c(?![A-Za-z])|u(?![\dA-Fa-f]{4}|{[\dA-Fa-f]+})|x(?![\dA-Fa-f]{2}))/,function(a,c){if(a[1]==="B"&&c==="default")return a[0];throw new SyntaxError("Invalid escape "+a[0]);},{scope:"all",
leadChar:"\\"});p.addToken(/\\u{([\dA-Fa-f]+)}/,function(a,c,g){c=A(a[1]);if(c>1114111)throw new SyntaxError("Invalid Unicode code point "+a[0]);if(c<=65535)return"\\u"+r(f(c));if(U&&g.indexOf("u")>-1)return a[0];throw new SyntaxError("Cannot use Unicode code point above \\u{FFFF} without flag u");},{scope:"all",
leadChar:"\\"});p.addToken(/\[(\^?)\]/,function(a){return a[1]?"[\\s\\S]":"\\b\\B"},{leadChar:"["});
p.addToken(/\(\?#[^)]*\)/,d,{leadChar:"("});p.addToken(/\s+|#[^\n]*\n?/,d,{flag:"x"});p.addToken(/\./,function(){return"[\\s\\S]"},{flag:"s",
leadChar:"."});p.addToken(/\\k<([\w$]+)>/,function(a){var c=isNaN(a[1])?h(this.captureNames,a[1])+1:+a[1],g=a.index+a[0].length;if(!c||c>this.captureNames.length)throw new SyntaxError("Backreference to undefined group "+a[0]);return"\\"+c+(g===a.input.length||isNaN(a.input.charAt(g))?"":"(?:)")},{leadChar:"\\"});
p.addToken(/\\(\d+)/,function(a,c){if(!(c==="default"&&/^[1-9]/.test(a[1])&&+a[1]<=this.captureNames.length)&&a[1]!=="0")throw new SyntaxError("Cannot use octal escape or backreference to undefined group "+a[0]);return a[0]},{scope:"all",
leadChar:"\\"});p.addToken(/\(\?P?<([\w$]+)>/,function(a){if(!isNaN(a[1]))throw new SyntaxError("Cannot use integer as capture name "+a[0]);if(a[1]==="length"||a[1]==="__proto__")throw new SyntaxError("Cannot use reserved word as capture name "+a[0]);if(h(this.captureNames,a[1])>-1)throw new SyntaxError("Cannot use same name for multiple groups "+a[0]);this.captureNames.push(a[1]);this.hasNamedCapture=!0;return"("},{leadChar:"("});
p.addToken(/\((?!\?)/,function(a,c,g){if(g.indexOf("n")>-1)return"(?:";this.captureNames.push(null);return"("},{optionalFlags:"n",
leadChar:"("});m.exports=p},
{}]},{},[8])(8)})}).call(globalThis);var wrX=window.XRegExp;var uEe=-1,Sdc=function(F){addEventListener("pageshow",function(W){W.persisted&&(uEe=W.timeStamp,F(W))},!0)};var mjT=function(F,W,E){var h=prH,d,V;return function(R){if(W.value>=0&&(R||E)){var M;if((V=W.value-((M=d)!=null?M:0))||d===void 0)d=W.value,W.delta=V,R=W.value,W.rating=R>h[1]?"poor":R>h[0]?"needs-improvement":"good",F(W)}}};var KAU=function(F){requestAnimationFrame(function(){return requestAnimationFrame(function(){return F()})})};var F9H=function(){var F=performance.getEntriesByType("navigation")[0];if(F&&F.responseStart>0&&F.responseStart<performance.now())return F};var W9O=function(){var F,W;return(W=(F=F9H())==null?void 0:F.activationStart)!=null?W:0};var EVz=function(){var F=F===void 0?-1:F;var W=F9H(),E="navigate";uEe>=0?E="back-forward-cache":W&&(document.prerendering||W9O()>0?E="prerender":document.wasDiscarded?E="restore":W.type&&(E=W.type.replace(/_/g,"-")));return{name:"LCP",value:F,rating:"good",delta:0,entries:[],id:"v5-"+Date.now()+"-"+(Math.floor(Math.random()*(9E12-1))+1E12),navigationType:E}};var HvS=new WeakMap;var hwe=function(F){var W=W===void 0?{}:W;try{if(PerformanceObserver.supportedEntryTypes.includes("largest-contentful-paint")){var E=new PerformanceObserver(function(h){Promise.resolve().then(function(){F(h.getEntries())})});
E.observe(Object.assign({},{type:"largest-contentful-paint",buffered:!0},W));return E}}catch(h){}};var dYu=function(F){var W=!1;return function(){W||(F(),W=!0)}};var GN=-1,NkX=function(F){document.visibilityState==="hidden"&&GN>-1&&(GN=F.type==="visibilitychange"?F.timeStamp:0,removeEventListener("visibilitychange",NkX,!0),removeEventListener("prerenderingchange",NkX,!0))},Vbp=function(){addEventListener("visibilitychange",NkX,!0);
addEventListener("prerenderingchange",NkX,!0)},UYp=function(){if(GN<0){var F=W9O(),W,E;
GN=(E=document.prerendering?void 0:(W=globalThis.performance.getEntriesByType("visibility-state").filter(function(h){return h.name==="hidden"&&h.startTime>F})[0])==null?void 0:W.startTime)!=null?E:document.visibilityState!=="hidden"||document.prerendering?Infinity:0;
Vbp();Sdc(function(){setTimeout(function(){GN=document.visibilityState!=="hidden"||document.prerendering?Infinity:0;Vbp()})})}return{get firstHiddenTime(){return GN}}};var RwU=function(F){document.prerendering?addEventListener("prerenderingchange",function(){return F()},!0):F()};var XKW=function(){};
XKW.prototype._processEntry=function(F){var W;(W=this._onBeforeProcessingEntry)==null||W.call(this,F)};var prH=[2500,4E3],Kto=function(F){var W=W===void 0?{}:W;RwU(function(){var E=UYp(),h=EVz(),d=Pkn(W),V=function(B){W.reportAllChanges||(B=B.slice(-1));B=_.U(B);for(var I=B.next();!I.done;I=B.next())I=I.value,d._processEntry(I),I.startTime<E.firstHiddenTime&&(h.value=Math.max(I.startTime-W9O(),0),h.entries=[I],M())},R=hwe(V);
if(R){var M=mjT(F,h,W.reportAllChanges);for(var g=dYu(function(){V(R.takeRecords());R.disconnect();M(!0)}),t=_.U(["keydown",
"click","visibilitychange"]),C=t.next();!C.done;C=t.next())addEventListener(C.value,function(){var B=g,I=globalThis.requestIdleCallback||setTimeout;document.visibilityState==="hidden"?B():(B=dYu(B),I(B),document.addEventListener("visibilitychange",B,{once:!0}))},{capture:!0,
once:!0});Sdc(function(B){h=EVz();M=mjT(F,h,W.reportAllChanges);KAU(function(){h.value=performance.now()-B.timeStamp;M(!0)})})}})};var ewT;var MbH;_.m=function(){return MbH!==void 0?MbH:MbH=document.createElement("template")};
document.head.appendChild(_.m().content);var gVp;_.k3({_template:function(){if(gVp!==void 0)return gVp;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-app-toolbar--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_app_layout.tp_yt_app_toolbar.tp.yt.app.toolbar.css.js--\x3e<slot class="style-scope tp-yt-app-toolbar"></slot>\n');F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);
var W=F.content,E=W.insertBefore;ewT===void 0&&(ewT=document.createElement("template"));var h=ewT;E.call(W,h.content.cloneNode(!0),F.content.firstChild);return gVp=F},
is:"tp-yt-app-toolbar"});var Q6X;var zwu;_.Y5=function(){};
_.Y5=_.k3({_template:function(){if(zwu!==void 0)return zwu;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-a11y-announcer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_a11y_announcer.tp.yt.iron.a11y.announcer.css.js--\x3e<div aria-live$="[[mode]]" class="style-scope tp-yt-iron-a11y-announcer">[[_text]]</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;Q6X===void 0&&(Q6X=document.createElement("template"));var h=Q6X;E.call(W,h.content.cloneNode(!0),F.content.firstChild);return zwu=F},
is:"tp-yt-iron-a11y-announcer",properties:{mode:{type:String,value:"polite"},timeout:{type:Number,value:150},_text:{type:String,value:""}},created:function(){_.Y5.instance||(_.Y5.instance=this);document.addEventListener("iron-announce",this._onIronAnnounce.bind(this))},
announce:function(F){this._text===F&&(F+="\u00a0");this._text="";this.async(function(){this._text=F},this.timeout)},
_onIronAnnounce:function(F){F.detail&&F.detail.text&&this.announce(F.detail.text)}});
_.Y5.instance=null;_.Y5.requestAvailability=function(){_.Y5.instance||(_.Y5.instance=document.createElement("tp-yt-iron-a11y-announcer"));document.body?document.body.appendChild(_.Y5.instance):document.addEventListener("load",function(){document.body.appendChild(_.Y5.instance)})};var tbO;var CJa;/*

Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
part of the polymer project is also subject to an additional IP rights grant
found at http://polymer.github.io/PATENTS.txt
SPDX-License-Identifier: BSD-3-Clause
*/
_.k3({_template:function(){if(CJa!==void 0)return CJa;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-autogrow-textarea--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_autogrow_textarea.tp.yt.iron.autogrow.textarea.css.js--\x3e\n\n<div id="mirror" class="mirror-text style-scope tp-yt-iron-autogrow-textarea" aria-hidden="true" style-target="textarea">\u00a0</div>\n\n\n<div class="textarea-container fit style-scope tp-yt-iron-autogrow-textarea">\n  <textarea id="textarea" name$="[[name]]" aria-label$="[[label]]" autocomplete$="[[autocomplete]]" autofocus$="[[autofocus]]" autocapitalize$="[[autocapitalize]]" inputmode$="[[inputmode]]" placeholder$="[[placeholder]]" readonly$="[[readonly]]" required$="[[required]]" disabled$="[[disabled]]" rows$="[[rows]]" minlength$="[[minlength]]" maxlength$="[[maxlength]]" style-target="textarea" class="style-scope tp-yt-iron-autogrow-textarea"></textarea>\n</div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);var W=F.content,E=W.insertBefore;tbO===void 0&&(tbO=document.createElement("template"));var h=tbO;E.call(W,h.content.cloneNode(!0),F.content.firstChild);return CJa=F},
is:"tp-yt-iron-autogrow-textarea",behaviors:[_.OP,_.ZD],properties:{value:{observer:"_valueChanged",type:String,notify:!0},bindValue:{observer:"_bindValueChanged",type:String,notify:!0},rows:{type:Number,value:1,observer:"_updateCached"},maxRows:{type:Number,value:0,observer:"_updateCached"},autocomplete:{type:String,value:"off"},autofocus:{type:Boolean,value:!1},autocapitalize:{type:String,value:"none"},inputmode:{type:String},placeholder:{type:String},readonly:{type:String},required:{type:Boolean},
minlength:{type:Number},maxlength:{type:Number},label:{type:String}},listeners:{input:"_onInput"},get textarea(){return this.$.textarea},get selectionStart(){return this.$.textarea.selectionStart},get selectionEnd(){return this.$.textarea.selectionEnd},set selectionStart(F){this.$.textarea.selectionStart=F},set selectionEnd(F){this.$.textarea.selectionEnd=F},attached:function(){navigator.userAgent.match(/iP(?:[oa]d|hone)/)&&!navigator.userAgent.match(/OS 1[3456789]/)&&(this.$.textarea.style.marginLeft=
"-3px")},
validate:function(){var F=this.$.textarea.validity.valid;F&&(this.required&&this.value===""?F=!1:this.hasValidator()&&(F=_.OP.validate.call(this,this.value)));this.invalid=!F;this.fire("iron-input-validate");return F},
_bindValueChanged:function(F){this.value=F},
_valueChanged:function(F){var W=this.textarea;W&&(W.value!==F&&(W.value=F||F===0?F:""),this.bindValue=F,this.$.mirror.textContent=this._valueForMirror(),this.fire("bind-value-changed",{value:this.bindValue}))},
_onInput:function(F){var W=_.sg(F).path;this.value=W?W[0].value:F.target.value},
_constrain:function(F){var W;F=F||[""];for(W=this.maxRows>0&&F.length>this.maxRows?F.slice(0,this.maxRows):F.slice(0);this.rows>0&&W.length<this.rows;)W.push("");return W.join("\n")+"\u00a0"},
_valueForMirror:function(){var F=this.textarea;if(F)return this.tokens=F&&F.value?F.value.split("\n"):[""],this._constrain(this.tokens)},
_updateCached:function(){this.$.mirror.textContent=this._constrain(this.tokens)}});var Bke;var vVB;_.k3({_template:function(){if(vVB!==void 0)return vVB;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-collapse--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_collapse.tp.yt.iron.collapse.css.js--\x3e<slot class="style-scope tp-yt-iron-collapse"></slot>\n');F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);
var W=F.content,E=W.insertBefore;Bke===void 0&&(Bke=document.createElement("template"));var h=Bke;E.call(W,h.content.cloneNode(!0),F.content.firstChild);return vVB=F},
is:"tp-yt-iron-collapse",behaviors:[_.lB],properties:{horizontal:{type:Boolean,value:!1,observer:"_horizontalChanged"},opened:{type:Boolean,value:!1,notify:!0,observer:"_openedChanged"},transitioning:{type:Boolean,notify:!0,readOnly:!0},noAnimation:{type:Boolean},_desiredSize:{type:String,value:""}},get dimension(){return this.horizontal?"width":"height"},get _dimensionMax(){return this.horizontal?"maxWidth":"maxHeight"},get _dimensionMaxCss(){return this.horizontal?"max-width":"max-height"},hostAttributes:{role:"group",
"aria-hidden":"true"},listeners:{transitionend:"_onTransitionEnd"},toggle:function(){this.opened=!this.opened},
show:function(){this.opened=!0},
hide:function(){this.opened=!1},
updateSize:function(F,W){F=F==="auto"?"":F;W=W&&!this.noAnimation&&this.isAttached&&this._desiredSize!==F;this._desiredSize=F;this._updateTransition(!1);W&&(W=this._calcSize(),F===""&&(this.style[this._dimensionMax]="",F=this._calcSize()),this.style[this._dimensionMax]=W,this.scrollTop=this.scrollTop,this._updateTransition(!0),W=F!==W);this.style[this._dimensionMax]=F;W||this._transitionEnd()},
enableTransition:function(F){_.$4._warn("`enableTransition()` is deprecated, use `noAnimation` instead.");this.noAnimation=!F},
_updateTransition:function(F){this.style.transitionDuration=F&&!this.noAnimation?"":"0s"},
_horizontalChanged:function(){this.style.transitionProperty=this._dimensionMaxCss;this.style[this._dimensionMax==="maxWidth"?"maxHeight":"maxWidth"]="";this.updateSize(this.opened?"auto":"0px",!1)},
_openedChanged:function(){this.setAttribute("aria-hidden",!this.opened);this._setTransitioning(!0);this.toggleClass("iron-collapse-closed",!1);this.toggleClass("iron-collapse-opened",!1);this.updateSize(this.opened?"auto":"0px",!0);this.opened&&this.focus()},
_transitionEnd:function(){this.style[this._dimensionMax]=this._desiredSize;this.toggleClass("iron-collapse-closed",!this.opened);this.toggleClass("iron-collapse-opened",this.opened);this._updateTransition(!1);this.notifyResize();this._setTransitioning(!1)},
_onTransitionEnd:function(F){_.sg(F).rootTarget===this&&this._transitionEnd()},
_calcSize:function(){return this.getBoundingClientRect()[this.dimension]+"px"}});var I1a;var cGu;var DYc=void 0,xYz={properties:{sizingTarget:{type:Object,value:function(){var F;return(F=this.hostElement)!=null?F:this}},
fitInto:{type:Object,value:window},noOverlap:{type:Boolean},positionTarget:{type:Element},horizontalAlign:{type:String},verticalAlign:{type:String},dynamicAlign:{type:Boolean},horizontalOffset:{type:Number,value:0,notify:!0},verticalOffset:{type:Number,value:0,notify:!0},autoFitOnAttach:{type:Boolean,value:!1},expandSizingTargetForScrollbars:{type:Boolean,value:!1},_fitInfo:{type:Object},avoidOuterEdge:{type:Boolean,value:!1}},get _defaultPositionTarget(){var F,W=_.sg((F=this.hostElement)!=null?F:
this).parentNode;W&&W.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&(W=W.host);return W},get _localeHorizontalAlign(){if(this._isRTL){if(this.horizontalAlign==="right")return"left";if(this.horizontalAlign==="left")return"right"}return this.horizontalAlign},get __shouldPosition(){return(this.horizontalAlign||this.verticalAlign)&&this.positionTarget},get _isRTL(){if(typeof this._memoizedIsRTL==="undefined"){var F;this._memoizedIsRTL=window.getComputedStyle((F=this.hostElement)!=null?F:this).direction=="rtl"}return this._memoizedIsRTL},
attached:function(){this.positionTarget=this.positionTarget||this._defaultPositionTarget;if(this.autoFitOnAttach){var F;window.getComputedStyle((F=this.hostElement)!=null?F:this).display==="none"?setTimeout(function(){this.fit()}.bind(this)):(window.ShadyDOM&&ShadyDOM.flush(),this.fit())}},
detached:function(){},
fit:function(){this.position();this.constrain();this.center()},
_discoverInfo:function(){if(!this._fitInfo){var F,W=window.getComputedStyle((F=this.hostElement)!=null?F:this);F=window.getComputedStyle(this.sizingTarget);var E,h,d;this._fitInfo={inlineStyle:{top:((E=this.hostElement)!=null?E:this).style.top||"",left:((h=this.hostElement)!=null?h:this).style.left||"",position:((d=this.hostElement)!=null?d:this).style.position||""},sizerInlineStyle:{maxWidth:this.sizingTarget.style.maxWidth||"",maxHeight:this.sizingTarget.style.maxHeight||"",boxSizing:this.sizingTarget.style.boxSizing||
""},positionedBy:{vertically:W.top!=="auto"?"top":W.bottom!=="auto"?"bottom":null,horizontally:W.left!=="auto"?"left":W.right!=="auto"?"right":null},sizedBy:{height:F.maxHeight!=="none",width:F.maxWidth!=="none",minWidth:parseInt(F.minWidth,10)||0,minHeight:parseInt(F.minHeight,10)||0},margin:{top:parseInt(W.marginTop,10)||0,right:parseInt(W.marginRight,10)||0,bottom:parseInt(W.marginBottom,10)||0,left:parseInt(W.marginLeft,10)||0}}}},
resetFit:function(){var F=this._fitInfo||{},W;for(W in F.sizerInlineStyle)this.sizingTarget.style[W]=F.sizerInlineStyle[W];for(W in F.inlineStyle){var E=void 0;((E=this.hostElement)!=null?E:this).style[W]=F.inlineStyle[W]}this._fitInfo=null},
refit:function(){var F=this.sizingTarget.scrollLeft,W=this.sizingTarget.scrollTop;this.resetFit();this.fit();this.sizingTarget.scrollLeft=F;this.sizingTarget.scrollTop=W},
position:function(){if(this.__shouldPosition){this._discoverInfo();window.ShadyDOM&&window.ShadyDOM.flush();var F;((F=this.hostElement)!=null?F:this).style.position="fixed";this.sizingTarget.style.boxSizing="border-box";var W;((W=this.hostElement)!=null?W:this).style.left="0px";var E;((E=this.hostElement)!=null?E:this).style.top="0px";var h,d=((h=this.hostElement)!=null?h:this).getBoundingClientRect();W=this.__getNormalizedRect(this.positionTarget);h=this.__getNormalizedRect(this.fitInto);this.avoidOuterEdge&&
(h={left:h.left+24,right:h.right-24,top:h.top+24,bottom:h.bottom-24});if(this.expandSizingTargetForScrollbars){var V=this.sizingTarget.offsetWidth;var R=this.sizingTarget.offsetHeight;var M=this.sizingTarget.clientWidth;var g=this.sizingTarget.clientHeight}F=this._fitInfo.margin;W=this.__getPosition(this._localeHorizontalAlign,this.verticalAlign,{width:d.width+F.left+F.right,height:d.height+F.top+F.bottom},d,W,h);var t=W.left+F.left,C=W.top+F.top;E=Math.min(h.right-F.right,t+d.width);var B=Math.min(h.bottom-
F.bottom,C+d.height);t=Math.max(h.left+F.left,Math.min(t,E-this._fitInfo.sizedBy.minWidth));C=Math.max(h.top+F.top,Math.min(C,B-this._fitInfo.sizedBy.minHeight));E=Math.max(E-t,this._fitInfo.sizedBy.minWidth);B=Math.max(B-C,this._fitInfo.sizedBy.minHeight);this.sizingTarget.style.maxWidth=E+"px";this.sizingTarget.style.maxHeight=B+"px";t-=d.left;d=C-d.top;var I;((I=this.hostElement)!=null?I:this).style.left=t+"px";var x;((x=this.hostElement)!=null?x:this).style.top=d+"px";if(this.expandSizingTargetForScrollbars){I=
this.sizingTarget.offsetHeight;R=I-this.sizingTarget.clientHeight-(R-g);if(R>0){this.sizingTarget.style.maxHeight=Math.min(h.height-F.top-F.bottom,B+R)+"px";R=this.sizingTarget.offsetHeight;g=R-I;var A;W.verticalAlign==="top"?A=d:W.verticalAlign==="middle"?A=d-g/2:W.verticalAlign==="bottom"&&(A=d-g);A=Math.max(h.top+F.top,Math.min(A,h.bottom-F.bottom-R));var X;((X=this.hostElement)!=null?X:this).style.top=A+"px"}A=this.sizingTarget.offsetWidth;V=A-this.sizingTarget.clientWidth-(V-M);if(V>0){DYc!==
void 0?M=DYc:(M=document.createElement("div"),Object.assign(M.style,{overflow:"auto",position:"fixed",left:"0px",top:"0px",maxWidth:"100px",maxHeight:"100px"}),X=document.createElement("div"),X.style.width="200px",X.style.height="200px",M.appendChild(X),document.body.appendChild(M),DYc=Math.abs(M.offsetWidth-100)>1?M.offsetWidth-M.clientWidth:0,document.body.removeChild(M),M=DYc);this.sizingTarget.style.maxWidth=Math.min(h.width-F.left-F.right,E+V-M)+"px";V=this.sizingTarget.offsetWidth+M;M=V-A;var P;
W.horizontalAlign==="left"?P=t:W.horizontalAlign==="center"?P=t-M/2:W.horizontalAlign==="right"&&(P=t-M);P=Math.max(h.left+F.left,Math.min(P,h.right-F.right-V));var b;((b=this.hostElement)!=null?b:this).style.left=P+"px"}}}},
constrain:function(){if(!this.__shouldPosition){this._discoverInfo();var F=this._fitInfo;if(!F.positionedBy.vertically){var W;((W=this.hostElement)!=null?W:this).style.position="fixed";var E;((E=this.hostElement)!=null?E:this).style.top="0px"}if(!F.positionedBy.horizontally){var h;((h=this.hostElement)!=null?h:this).style.position="fixed";var d;((d=this.hostElement)!=null?d:this).style.left="0px"}this.sizingTarget.style.boxSizing="border-box";var V;W=((V=this.hostElement)!=null?V:this).getBoundingClientRect();
F.sizedBy.height||this.__sizeDimension(W,F.positionedBy.vertically,"top","bottom","Height");F.sizedBy.width||this.__sizeDimension(W,F.positionedBy.horizontally,"left","right","Width")}},
_sizeDimension:function(F,W,E,h,d){this.__sizeDimension(F,W,E,h,d)},
__sizeDimension:function(F,W,E,h,d){var V=this._fitInfo,R=this.__getNormalizedRect(this.fitInto);R=d==="Width"?R.width:R.height;F=(W=W===h)?R-F[h]:F[E];E=V.margin[W?E:h];h="offset"+d;var M;V=((M=this.hostElement)!=null?M:this)[h]-this.sizingTarget[h];this.sizingTarget.style["max"+d]=R-E-F-V+"px"},
center:function(){if(!this.__shouldPosition){this._discoverInfo();var F=this._fitInfo.positionedBy;if(!F.vertically||!F.horizontally){var W;((W=this.hostElement)!=null?W:this).style.position="fixed";if(!F.vertically){var E;((E=this.hostElement)!=null?E:this).style.top="0px"}if(!F.horizontally){var h;((h=this.hostElement)!=null?h:this).style.left="0px"}var d;W=((d=this.hostElement)!=null?d:this).getBoundingClientRect();d=this.__getNormalizedRect(this.fitInto);if(!F.vertically){E=d.top-W.top+(d.height-
W.height)/2;var V;((V=this.hostElement)!=null?V:this).style.top=E+"px"}if(!F.horizontally){F=d.left-W.left+(d.width-W.width)/2;var R;((R=this.hostElement)!=null?R:this).style.left=F+"px"}}}},
__getNormalizedRect:function(F){return F===document.documentElement||F===window?{top:0,left:0,width:window.innerWidth,height:window.innerHeight,right:window.innerWidth,bottom:window.innerHeight}:F.getBoundingClientRect()},
__getOffscreenArea:function(F,W,E){return Math.abs(Math.min(0,F.top)+Math.min(0,E.bottom-(F.top+W.height)))*W.width+Math.abs(Math.min(0,F.left)+Math.min(0,E.right-(F.left+W.width)))*W.height},
__getPosition:function(F,W,E,h,d,V){var R=[{verticalAlign:"top",horizontalAlign:"left",top:d.top+this.verticalOffset,left:d.left+this.horizontalOffset},{verticalAlign:"top",horizontalAlign:"right",top:d.top+this.verticalOffset,left:d.right-E.width-this.horizontalOffset},{verticalAlign:"bottom",horizontalAlign:"left",top:d.bottom-E.height-this.verticalOffset,left:d.left+this.horizontalOffset},{verticalAlign:"bottom",horizontalAlign:"right",top:d.bottom-E.height-this.verticalOffset,left:d.right-E.width-
this.horizontalOffset}];if(this.noOverlap){for(var M=0,g=R.length;M<g;M++){var t={},C;for(C in R[M])t[C]=R[M][C];R.push(t)}R[0].top=R[1].top+=d.height;R[2].top=R[3].top-=d.height;R[4].left=R[6].left+=d.width;R[5].left=R[7].left-=d.width}W=W==="auto"?null:W;F=F==="auto"?null:F;F&&F!=="center"||(R.push({verticalAlign:"top",horizontalAlign:"center",top:d.top+this.verticalOffset+(this.noOverlap?d.height:0),left:d.left-h.width/2+d.width/2+this.horizontalOffset}),R.push({verticalAlign:"bottom",horizontalAlign:"center",
top:d.bottom-E.height-this.verticalOffset-(this.noOverlap?d.height:0),left:d.left-h.width/2+d.width/2+this.horizontalOffset}));W&&W!=="middle"||(R.push({verticalAlign:"middle",horizontalAlign:"left",top:d.top-h.height/2+d.height/2+this.verticalOffset,left:d.left+this.horizontalOffset+(this.noOverlap?d.width:0)}),R.push({verticalAlign:"middle",horizontalAlign:"right",top:d.top-h.height/2+d.height/2+this.verticalOffset,left:d.right-E.width-this.horizontalOffset-(this.noOverlap?d.width:0)}));W==="middle"&&
F==="center"&&R.push({verticalAlign:"middle",horizontalAlign:"center",top:d.top-h.height/2+d.height/2+this.verticalOffset,left:d.left-h.width/2+d.width/2+this.horizontalOffset});for(M=0;M<R.length;M++){h=R[M];d=h.verticalAlign===W;g=h.horizontalAlign===F;if(!this.dynamicAlign&&!this.noOverlap&&d&&g){var B=h;break}t=(!W||d)&&(!F||g);if(this.dynamicAlign||t){h.offscreenArea=this.__getOffscreenArea(h,E,V);if(h.offscreenArea===0&&t){B=h;break}h.alignsOk=d+g;B=B||h;d=h.offscreenArea-B.offscreenArea;if(d<
0||d===0&&h.alignsOk>B.alignsOk)B=h}}return B}};/*

Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
part of the polymer project is also subject to an additional IP rights grant
found at http://polymer.github.io/PATENTS.txt
SPDX-License-Identifier: BSD-3-Clause
*/
var wN,ktH,AGp;wN=Element.prototype;ktH=wN.matches||wN.matchesSelector||wN.mozMatchesSelector||wN.msMatchesSelector||wN.oMatchesSelector||wN.webkitMatchesSelector;AGp=function(){};
_.L9_=function(F){var W=s6B,E=[];return W._collectTabbableNodes(F,E)?W._sortByTabIndex(E):E};
_.N=AGp.prototype;_.N._normalizedTabIndex=function(F){return(ktH.call(F,"input, select, textarea, button, object")?ktH.call(F,":not([disabled])"):ktH.call(F,"a[href], area[href], iframe, [tabindex], [contentEditable]"))?(F=F.getAttribute("tabindex")||0,Number(F)):-1};
_.N._collectTabbableNodes=function(F,W){if(F.nodeType!==Node.ELEMENT_NODE||!this._isVisible(F))return!1;var E=this._normalizedTabIndex(F),h=E>0;E>=0&&W.push(F);if(F.localName==="content"||F.localName==="slot")E=_.sg(F).getDistributedNodes();else{var d;E=((d=_.sg(F).shadowRoot)!=null?d:_.sg(F.root||F)).children}for(F=0;F<E.length;F++)h=this._collectTabbableNodes(E[F],W)||h;return h};
_.N._isVisible=function(F){var W=F.style;return W.visibility!=="hidden"&&W.display!=="none"?(W=window.getComputedStyle(F),W.visibility!=="hidden"&&W.display!=="none"):!1};
_.N._sortByTabIndex=function(F){var W=F.length;if(W<2)return F;var E=Math.ceil(W/2);W=this._sortByTabIndex(F.slice(0,E));F=this._sortByTabIndex(F.slice(E));return this._mergeSortByTabIndex(W,F)};
_.N._mergeSortByTabIndex=function(F,W){for(var E=[];F.length>0&&W.length>0;)this._hasLowerTabOrder(F[0],W[0])?E.push(W.shift()):E.push(F.shift());return E.concat(F,W)};
_.N._hasLowerTabOrder=function(F,W){F=Math.max(F.tabIndex,0);W=Math.max(W.tabIndex,0);return F===0||W===0?W>F:F>W};
var s6B=new AGp;var q8i;var $YM;_.k3({_template:function(){if($YM!==void 0)return $YM;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-overlay-backdrop--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_overlay_backdrop.tp.yt.iron.overlay.backdrop.css.js--\x3e<slot class="style-scope tp-yt-iron-overlay-backdrop"></slot>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;q8i===void 0&&(q8i=document.createElement("template"));var h=q8i;E.call(W,h.content.cloneNode(!0),F.content.firstChild);return $YM=F},
is:"tp-yt-iron-overlay-backdrop",properties:{opened:{reflectToAttribute:!0,type:Boolean,value:!1,observer:"_openedChanged"}},listeners:{transitionend:"_onTransitionend"},created:function(){this.__openedRaf=null},
attached:function(){this.opened&&this._openedChanged(this.opened)},
prepare:function(){this.opened&&!this.parentNode&&_.sg(document.body).appendChild(this)},
open:function(){this.opened=!0},
close:function(){this.opened=!1},
complete:function(){this.opened||this.parentNode!==document.body||_.sg(this.parentNode).removeChild(this)},
_onTransitionend:function(F){F&&F.target===this&&this.complete()},
_openedChanged:function(F){F?this.prepare():(F=window.getComputedStyle(this),F.transitionDuration!=="0s"&&F.opacity!=0||this.complete());this.isAttached&&(this.__openedRaf&&(window.cancelAnimationFrame(this.__openedRaf),this.__openedRaf=null),this.scrollTop=this.scrollTop,this.__openedRaf=window.requestAnimationFrame(function(){this.__openedRaf=null;this.toggleClass("opened",this.opened)}.bind(this)))}});var uB=function(){this._overlays=[];this._minimumZ=101;this._backdropElement=null;Hs(document.documentElement,"tap",function(){});
document.addEventListener("tap",this._onCaptureClick.bind(this),!0);document.addEventListener("focus",this._onCaptureFocus.bind(this),!0);document.addEventListener("keydown",this._onCaptureKeyDown.bind(this),!0)};
uB.prototype._bringOverlayAtIndexToFront=function(F){var W=this._overlays[F];if(W){var E=this._overlays.length-1,h=this._overlays[E];h&&this._shouldBeBehindOverlay(W,h)&&E--;if(!(F>=E)){h=Math.max(this._getZ(_.ZxM(this)),this._minimumZ);for(this._getZ(W)<=h&&this._applyOverlayZ(W,h);F<E;)this._overlays[F]=this._overlays[F+1],F++;this._overlays[E]=W}}};
uB.prototype.addOverlay=function(F){var W=this._overlays.indexOf(F);if(W>=0)this._bringOverlayAtIndexToFront(W);else{W=this._overlays.length;var E=this._overlays[W-1],h=Math.max(this._getZ(E),this._minimumZ),d=this._getZ(F);E&&this._shouldBeBehindOverlay(F,E)&&(this._applyOverlayZ(E,h),W--,h=Math.max(this._getZ(this._overlays[W-1]),this._minimumZ));d<=h&&this._applyOverlayZ(F,h);this._overlays.splice(W,0,F)}this.trackBackdrop()};
uB.prototype.removeOverlay=function(F){F=this._overlays.indexOf(F);F!==-1&&(this._overlays.splice(F,1),this.trackBackdrop())};
_.ZxM=function(F){return F._overlays[F._overlays.length-1]};
_.N=uB.prototype;_.N.trackBackdrop=function(){var F=this._overlayWithBackdrop();if(F||this._backdropElement)this.backdropElement.style.zIndex=this._getZ(F)-1,this.backdropElement.opened=!!F,this.backdropElement.prepare()};
_.N._overlayWithBackdrop=function(){for(var F=this._overlays.length-1;F>=0;F--)if(this._overlays[F].withBackdrop)return this._overlays[F]};
_.N._getZ=function(F){var W=this._minimumZ;if(F){var E,h,d=Number(((E=F.hostElement)!=null?E:F).style.zIndex||window.getComputedStyle((h=F.hostElement)!=null?h:F).zIndex);d===d&&(W=d)}return W};
_.N._setZ=function(F,W){var E;((E=F.hostElement)!=null?E:F).style.zIndex=W};
_.N._applyOverlayZ=function(F,W){this._setZ(F,W+2)};
_.N._overlayInPath=function(F){F=F||[];for(var W=0;W<F.length;W++){var E=void 0;if(((E=F[W].polymerController)!=null?E:F[W])._manager===this)return F[W]}};
_.N._onCaptureClick=function(F){var W=this._overlays.length-1;if(W!==-1)for(var E=_.sg(F).path,h,d;(h=this._overlays[W])&&this._overlayInPath(E)!==((d=h.hostElement)!=null?d:h);)if(h._onCaptureClick(F),h.allowClickThrough)W--;else break};
_.N._onCaptureFocus=function(F){var W=_.ZxM(this);W&&W._onCaptureFocus(F)};
_.N._onCaptureKeyDown=function(F){var W=_.ZxM(this);W&&(_.$5.keyboardEventMatchesKeys(F,"esc")?W._onCaptureEsc(F):_.$5.keyboardEventMatchesKeys(F,"tab")&&W._onCaptureTab(F))};
_.N._shouldBeBehindOverlay=function(F,W){return!F.alwaysOnTop&&W.alwaysOnTop&&!W.contains(F)};
_.Sn.Object.defineProperties(uB.prototype,{backdropElement:{configurable:!0,enumerable:!0,get:function(){this._backdropElement||(this._backdropElement=document.createElement("tp-yt-iron-overlay-backdrop"));return this._backdropElement}},
deepActiveElement:{configurable:!0,enumerable:!0,get:function(){var F=document.activeElement;F&&F instanceof Element!==!1||(F=document.body);for(;F.root&&_.sg(F.root).activeElement;)F=_.sg(F.root).activeElement;return F}}});
_.SM=new uB;var Jkn=0,a9I=0,f9r=null,Ovo=[],Lg=["wheel","mousewheel","DOMMouseScroll"],bvo;_.c("web_no_lock_on_touchstart_killswitch")&&(Lg.push("touchstart"),Lg.push("touchmove"));_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=[];_._lockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=null;
_._unlockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=null;_.pH={properties:{opened:{observer:"_openedChanged",type:Boolean,value:!1,notify:!0},canceled:{observer:"_canceledChanged",readOnly:!0,type:Boolean,value:!1},withBackdrop:{observer:"_withBackdropChanged",type:Boolean},noAutoFocus:{type:Boolean,value:!1},noCancelOnEscKey:{type:Boolean,value:!1},noCancelOnOutsideClick:{type:Boolean,value:!1},closingReason:{type:Object},restoreFocusOnClose:{type:Boolean,value:!1},allowClickThrough:{type:Boolean},alwaysOnTop:{type:Boolean},scrollAction:{type:String},
_manager:{type:Object,value:_.SM},_focusedChild:{type:Object}},listeners:{"iron-resize":"_onIronResize"},observers:["__updateScrollObservers(isAttached, opened, scrollAction)"],get backdropElement(){return this._manager.backdropElement},get _focusNode(){var F;return this._focusedChild||_.sg((F=this.hostElement)!=null?F:this).querySelector("[autofocus]")||this.hostElement||this},get _focusableNodes(){var F;return _.L9_((F=this.hostElement)!=null?F:this)},ready:function(){this.__shouldRemoveTabIndex=
this.__isAnimating=!1;this.__firstFocusableNode=this.__lastFocusableNode=null;this.__rafs={};this.__scrollTop=this.__scrollLeft=this.__restoreFocusNode=null;this.__onCaptureScroll=this.__onCaptureScroll.bind(this);this.__rootNodes=null;this._ensureSetup()},
attached:function(){this.opened&&this._openedChanged(this.opened);var F;this._observer=_.sg((F=this.hostElement)!=null?F:this).observeNodes(this._onNodesChange)},
detached:function(){if(this._observer){var F;_.sg((F=this.hostElement)!=null?F:this).unobserveNodes(this._observer)}this._observer=null;for(var W in this.__rafs)this.__rafs[W]!==null&&cancelAnimationFrame(this.__rafs[W]);this.__rafs={};this._manager.removeOverlay(this);this.__isAnimating&&(this.opened?this._finishRenderOpened():(this._applyFocus(),this._finishRenderClosed()))},
toggle:function(){this._setCanceled(!1);this.opened=!this.opened},
open:function(){this._setCanceled(!1);this.opened=!0},
close:function(){this._setCanceled(!1);this.opened=!1},
cancel:function(F){this.fire("iron-overlay-canceled",F,{cancelable:!0}).defaultPrevented||(this._setCanceled(!0),this.opened=!1)},
invalidateTabbables:function(){this.__firstFocusableNode=this.__lastFocusableNode=null},
_ensureSetup:function(){if(!this._overlaySetup){this._overlaySetup=!0;var F;((F=this.hostElement)!=null?F:this).style.outline="none";var W;((W=this.hostElement)!=null?W:this).style.display="none"}},
_openedChanged:function(F){if(F){var W;((W=this.hostElement)!=null?W:this).removeAttribute("aria-hidden")}else{var E;((E=this.hostElement)!=null?E:this).setAttribute("aria-hidden","true")}this.isAttached&&(this.__isAnimating=!0,this.__deraf("__openedChanged",this.__openedChanged))},
_canceledChanged:function(){this.closingReason=this.closingReason||{};this.closingReason.canceled=this.canceled},
_withBackdropChanged:function(){var F;if(this.withBackdrop&&!((F=this.hostElement)!=null?F:this).hasAttribute("tabindex")){var W;((W=this.hostElement)!=null?W:this).setAttribute("tabindex","-1");this.__shouldRemoveTabIndex=!0}else if(this.__shouldRemoveTabIndex){var E;((E=this.hostElement)!=null?E:this).removeAttribute("tabindex");this.__shouldRemoveTabIndex=!1}this.opened&&this.isAttached&&this._manager.trackBackdrop()},
_prepareRenderOpened:function(){this.__restoreFocusNode=this._manager.deepActiveElement;this._preparePositioning();this.refit();this._finishPositioning();this.noAutoFocus&&document.activeElement===this._focusNode&&(this._focusNode.blur(),this.__restoreFocusNode.focus())},
_renderOpened:function(){this._finishRenderOpened()},
_renderClosed:function(){this._finishRenderClosed()},
_finishRenderOpened:function(){this.notifyResize();this.__isAnimating=!1;this.fire("iron-overlay-opened")},
_finishRenderClosed:function(){var F;((F=this.hostElement)!=null?F:this).style.display="none";var W;((W=this.hostElement)!=null?W:this).style.zIndex="";this.notifyResize();this.__isAnimating=!1;this.fire("iron-overlay-closed",this.closingReason)},
_preparePositioning:function(){var F,W;((F=this.hostElement)!=null?F:this).style.transition=((W=this.hostElement)!=null?W:this).style.webkitTransition="none";var E,h;((E=this.hostElement)!=null?E:this).style.transform=((h=this.hostElement)!=null?h:this).style.webkitTransform="none";var d;((d=this.hostElement)!=null?d:this).style.display=""},
_finishPositioning:function(){var F;((F=this.hostElement)!=null?F:this).style.display="none";this.scrollTop=this.scrollTop;var W,E;((W=this.hostElement)!=null?W:this).style.transition=((E=this.hostElement)!=null?E:this).style.webkitTransition="";var h,d;((h=this.hostElement)!=null?h:this).style.transform=((d=this.hostElement)!=null?d:this).style.webkitTransform="";var V;((V=this.hostElement)!=null?V:this).style.display="";this.scrollTop=this.scrollTop},
_applyFocus:function(){if(this.opened)this.noAutoFocus||this._focusNode.focus();else{if(this.restoreFocusOnClose&&this.__restoreFocusNode){var F=this._manager.deepActiveElement,W;if(!(W=F===document.body))a:{for(;F;F=F.assignedSlot||F.parentNode||F.host)if(F===this){W=!0;break a}W=!1}W&&this.__restoreFocusNode.focus()}this.__restoreFocusNode=null;this._focusNode.blur();this._focusedChild=null}},
_onCaptureClick:function(F){this.noCancelOnOutsideClick||this.cancel(F)},
_onCaptureFocus:function(F){if(this.withBackdrop){var W=_.sg(F).path;W.indexOf(this)===-1?(F.stopPropagation(),this._applyFocus()):this._focusedChild=W[0]}},
_onCaptureEsc:function(F){this.noCancelOnEscKey||this.cancel(F)},
_onCaptureTab:function(F){if(this.withBackdrop){this.__ensureFirstLastFocusables();var W=F.shiftKey,E=W?this.__firstFocusableNode:this.__lastFocusableNode;W=W?this.__lastFocusableNode:this.__firstFocusableNode;if(E===W)E=!0;else{var h=this._manager.deepActiveElement;E=h===E||h===this}E&&(F.preventDefault(),this._focusedChild=W,this._applyFocus())}},
_onIronResize:function(){this.opened&&!this.__isAnimating&&this.__deraf("refit",this.refit)},
_onNodesChange:function(){this.opened&&!this.__isAnimating&&(this.invalidateTabbables(),this.notifyResize())},
__ensureFirstLastFocusables:function(){var F=this._focusableNodes;this.__firstFocusableNode=F[0];this.__lastFocusableNode=F[F.length-1]},
__openedChanged:function(){this.opened?(this._prepareRenderOpened(),this._manager.addOverlay(this),this._applyFocus(),this._renderOpened()):(this._manager.removeOverlay(this),this._applyFocus(),this._renderClosed())},
__deraf:function(F,W){var E=this.__rafs;E[F]!==null&&cancelAnimationFrame(E[F]);E[F]=requestAnimationFrame(function(){E[F]=null;W.call(this)}.bind(this))},
__updateScrollObservers:function(F,W,E){F&&W&&this.__isValidScrollAction(E)?(E==="lock"&&(this.__saveScrollPosition(),_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(this)>=0||(_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.length===0&&_._lockScrollInteractions$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(),
_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.push(this),bvo=_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager[_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.length-1],_._lockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=
[],_._unlockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=[])),this.__addScrollListeners()):(F=_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(this),F!==-1&&(_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.splice(F,1),bvo=_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager[_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.length-
1],_._lockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=[],_._unlockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=[],_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.length===0&&_._unlockScrollInteractions$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager()),
this.__removeScrollListeners())},
__addScrollListeners:function(){if(!this.__rootNodes){this.__rootNodes=[];if(bM)for(var F=this;F;)F.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&F.host&&this.__rootNodes.push(F),F=F.host||F.assignedSlot||F.parentNode;this.__rootNodes.push(document)}this.__rootNodes.forEach(function(W){W.addEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this)},
__removeScrollListeners:function(){this.__rootNodes&&this.__rootNodes.forEach(function(F){F.removeEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this);
this.isAttached||(this.__rootNodes=null)},
__isValidScrollAction:function(F){return F==="lock"||F==="refit"||F==="cancel"},
__onCaptureScroll:function(F){if(!(this.__isAnimating||_.sg(F).path.indexOf(this)>=0))switch(this.scrollAction){case "lock":this.__restoreScrollPosition();break;case "refit":this.__deraf("refit",this.refit);break;case "cancel":this.cancel(F)}},
__saveScrollPosition:function(){document.scrollingElement?(this.__scrollTop=document.scrollingElement.scrollTop,this.__scrollLeft=document.scrollingElement.scrollLeft):(this.__scrollTop=Math.max(document.documentElement.scrollTop,document.body.scrollTop),this.__scrollLeft=Math.max(document.documentElement.scrollLeft,document.body.scrollLeft))},
__restoreScrollPosition:function(){document.scrollingElement?(document.scrollingElement.scrollTop=this.__scrollTop,document.scrollingElement.scrollLeft=this.__scrollLeft):(document.documentElement.scrollTop=document.body.scrollTop=this.__scrollTop,document.documentElement.scrollLeft=document.body.scrollLeft=this.__scrollLeft)}};
_.my=[xYz,_.lB,_.pH];_.k3({_template:function(){if(cGu!==void 0)return cGu;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-dropdown--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_dropdown.tp.yt.iron.dropdown.css.js--\x3e<div id="contentWrapper" class="style-scope tp-yt-iron-dropdown">\n  <slot id="content" name="dropdown-content" class="style-scope tp-yt-iron-dropdown"></slot>\n</div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);var W=F.content,E=W.insertBefore;I1a===void 0&&(I1a=document.createElement("template"));var h=I1a;E.call(W,h.content.cloneNode(!0),F.content.firstChild);return cGu=F},
is:"tp-yt-iron-dropdown",behaviors:[_.ZD,_.$5,_.my,Mci],properties:{horizontalAlign:{type:String,value:"left",reflectToAttribute:!0},verticalAlign:{type:String,value:"top",reflectToAttribute:!0},openAnimationConfig:{type:Object},closeAnimationConfig:{type:Object},focusTarget:{type:Object},noAnimations:{type:Boolean,value:!1},allowOutsideScroll:{type:Boolean,value:!1,observer:"_allowOutsideScrollChanged"}},listeners:{"neon-animation-finish":"_onNeonAnimationFinish"},observers:["_updateOverlayPosition(positionTarget, verticalAlign, horizontalAlign, verticalOffset, horizontalOffset)"],
get containedElement(){for(var F=_.sg(this.$.content).getDistributedNodes(),W=0,E=F.length;W<E;W++)if(F[W].nodeType===Node.ELEMENT_NODE)return F[W]},ready:function(){this.scrollAction||(this.scrollAction=this.allowOutsideScroll?"refit":"lock");this._readied=!0},
attached:function(){this.sizingTarget&&this.sizingTarget!==this||(this.sizingTarget=this.containedElement||this)},
detached:function(){this.cancelAnimation()},
_openedChanged:function(){this.opened&&this.disabled?this.cancel():(this.cancelAnimation(),this._updateAnimationConfig(),_.pH._openedChanged.apply(this,arguments))},
_renderOpened:function(){!this.noAnimations&&this.animationConfig.open?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("open")):_.pH._renderOpened.apply(this,arguments)},
_renderClosed:function(){!this.noAnimations&&this.animationConfig.close?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("close")):_.pH._renderClosed.apply(this,arguments)},
_onNeonAnimationFinish:function(){this.$.contentWrapper.classList.remove("animating");this.opened?this._finishRenderOpened():this._finishRenderClosed()},
_updateAnimationConfig:function(){for(var F=this.containedElement,W=[].concat(this.openAnimationConfig||[],this.closeAnimationConfig||[]),E=0;E<W.length;E++)W[E].node=F;this.animationConfig={open:this.openAnimationConfig,close:this.closeAnimationConfig}},
_updateOverlayPosition:function(){this.isAttached&&this.notifyResize()},
_allowOutsideScrollChanged:function(F){this._readied&&(F?this.scrollAction&&this.scrollAction!=="lock"||(this.scrollAction="refit"):this.scrollAction="lock")},
_applyFocus:function(){var F=this.focusTarget||this.containedElement;F&&this.opened&&!this.noAutoFocus?F.focus():_.pH._applyFocus.apply(this,arguments)}});var XSp;var Hxc;/*

Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
SPDX-License-Identifier: BSD-3-Clause
*/
var PJu=new _.aq({type:"iconset"});
_.k3({_template:function(){if(Hxc!==void 0)return Hxc;var F=document.createElement("template");_.L(F,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-icon--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_icon.tp.yt.iron.icon.css.js--\x3e\n");F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);var W=F.content,E=W.insertBefore;XSp===void 0&&(XSp=document.createElement("template"));
var h=XSp;E.call(W,h.content.cloneNode(!0),F.content.firstChild);return Hxc=F},
is:"tp-yt-iron-icon",properties:{icon:{type:String},theme:{type:String},src:{type:String}},observers:["_updateIcon(isAttached)","_updateIcon(theme, isAttached)","_srcChanged(src, isAttached)","_iconChanged(icon, isAttached)"],_DEFAULT_ICONSET:"icons",_iconChanged:function(F){F=(F||"").split(":");this._iconName=F.pop();this._iconsetName=F.pop()||this._DEFAULT_ICONSET;this._updateIcon()},
_srcChanged:function(){this._updateIcon()},
_usesIconset:function(){return this.icon||!this.src},
_updateIcon:function(){if(this._usesIconset())if(this._img&&this._img.parentNode&&_.sg(this.root).removeChild(this._img),this._iconName==="")this._iconset&&this._iconset.removeIcon(this);else{if(this._iconsetName)if(this._iconset=PJu.byKey(this._iconsetName)){var F=this._iconset.applyIcon(this,this._iconName,this.theme);F&&F.setAttribute("aria-hidden","true");this.unlisten(window,"iron-iconset-added","_updateIcon")}else this.listen(window,"iron-iconset-added","_updateIcon")}else this._iconset&&this._iconset.removeIcon(this),
this._img||(this._img=document.createElement("img"),this._img.style.width="100%",this._img.style.height="100%",this._img.draggable=!1),this._img.src=this.src,_.sg(this.root).appendChild(this._img)}});var JG_;var a1H;_.k3({_template:function(){if(a1H!==void 0)return a1H;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-input--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_input.tp.yt.iron.input.css.js--\x3e<slot id="content" class="style-scope tp-yt-iron-input"></slot>\n');F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);
var W=F.content,E=W.insertBefore;JG_===void 0&&(JG_=document.createElement("template"));var h=JG_;E.call(W,h.content.cloneNode(!0),F.content.firstChild);return a1H=F},
is:"tp-yt-iron-input",behaviors:[_.OP],properties:{bindValue:{type:String,value:""},value:{type:String,computed:"_computeValue(bindValue)"},allowedPattern:{type:String},autoValidate:{type:Boolean,value:!1},_inputElement:Object},observers:["_bindValueChanged(bindValue, _inputElement)"],listeners:{input:"_onInput",keypress:"_onKeypress"},created:function(){_.Y5.requestAvailability();this._previousValidInput="";this._patternAlreadyChecked=!1},
attached:function(){this._observer=_.sg(this).observeNodes(function(){this._initSlottedInput()}.bind(this))},
detached:function(){this._observer&&(_.sg(this).unobserveNodes(this._observer),this._observer=null)},
get inputElement(){return this._inputElement},_initSlottedInput:function(){this._inputElement=this.getEffectiveChildren()[0];this.inputElement&&this.inputElement.value&&(this.bindValue=this.inputElement.value);this.fire("iron-input-ready")},
get _patternRegExp(){if(this.allowedPattern)var F=new RegExp(this.allowedPattern);else switch(this.inputElement.type){case "number":F=/[0-9.,e-]/}return F},_bindValueChanged:function(F,W){W&&(F===void 0?W.value=null:F!==W.value&&(this.inputElement.value=F),this.autoValidate&&this.validate(),this.fire("bind-value-changed",{value:F}))},
_onInput:function(){!this.allowedPattern||this._patternAlreadyChecked||this._checkPatternValidity()||(this._announceInvalidCharacter("Invalid string of characters not entered."),this.inputElement.value=this._previousValidInput);this.bindValue=this._previousValidInput=this.inputElement.value;this._patternAlreadyChecked=!1},
_isPrintable:function(F){var W=F.keyCode==19||F.keyCode==20||F.keyCode==45||F.keyCode==46||F.keyCode==144||F.keyCode==145||F.keyCode>32&&F.keyCode<41||F.keyCode>111&&F.keyCode<124;return!(F.keyCode==8||F.keyCode==9||F.keyCode==13||F.keyCode==27)&&!(F.charCode==0&&W)},
_onKeypress:function(F){if(this.allowedPattern||this.inputElement.type==="number"){var W=this._patternRegExp;if(W&&!(F.metaKey||F.ctrlKey||F.altKey)){this._patternAlreadyChecked=!0;var E=String.fromCharCode(F.charCode);this._isPrintable(F)&&!W.test(E)&&(F.preventDefault(),this._announceInvalidCharacter("Invalid character "+E+" not entered."))}}},
_checkPatternValidity:function(){var F=this._patternRegExp;if(!F)return!0;for(var W=0;W<this.inputElement.value.length;W++)if(!F.test(this.inputElement.value[W]))return!1;return!0},
validate:function(){if(!this.inputElement)return this.invalid=!1,!0;var F=this.inputElement.checkValidity();F&&(this.required&&this.bindValue===""?F=!1:this.hasValidator()&&(F=_.OP.validate.call(this,this.bindValue)));this.invalid=!F;this.fire("iron-input-validate");return F},
_announceInvalidCharacter:function(F){this.fire("iron-announce",{text:F})},
_computeValue:function(F){return F}});var f1X;var Oxz;var bxX=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/),l1B=bxX&&bxX[1]>=8;
_.k3({_template:function(){if(Oxz!==void 0)return Oxz;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-list--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_list.tp.yt.iron.list.css.js--\x3e<array-selector id="selector" items="{{items}}" selected="{{selectedItems}}" selected-item="{{selectedItem}}" class="style-scope tp-yt-iron-list"></array-selector>\n\n<div id="items" class="style-scope tp-yt-iron-list">\n  <slot class="style-scope tp-yt-iron-list"></slot>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;f1X===void 0&&(f1X=document.createElement("template"));var h=f1X;E.call(W,h.content.cloneNode(!0),F.content.firstChild);return Oxz=F},
is:"tp-yt-iron-list",properties:{items:{type:Array},as:{type:String,value:"item"},indexAs:{type:String,value:"index"},selectedAs:{type:String,value:"selected"},grid:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_gridChanged"},selectionEnabled:{type:Boolean,value:!1},selectedItem:{type:Object,notify:!0},selectedItems:{type:Object,notify:!0},multiSelection:{type:Boolean,value:!1},scrollOffset:{type:Number,value:0}},observers:["_itemsChanged(items.*)","_selectionEnabledChanged(selectionEnabled)",
"_multiSelectionChanged(multiSelection)","_setOverflow(scrollTarget, scrollOffset)"],behaviors:[UMY,_.lB,_.epO,mcc],_ratio:.5,_scrollerPaddingTop:0,_scrollPosition:0,_physicalSize:0,_physicalAverage:0,_physicalAverageCount:0,_physicalTop:0,_virtualCount:0,_estScrollHeight:0,_scrollHeight:0,_viewportHeight:0,_viewportWidth:0,_physicalItems:null,_physicalSizes:null,_firstVisibleIndexVal:null,_lastVisibleIndexVal:null,_maxPages:2,_focusedItem:null,_focusedVirtualIndex:-1,_focusedPhysicalIndex:-1,_offscreenFocusedItem:null,
_focusBackfillItem:null,_itemsPerRow:1,_itemWidth:0,_rowHeight:0,_templateCost:0,_parentModel:!0,get _physicalBottom(){return this._physicalTop+this._physicalSize},get _scrollBottom(){return this._scrollPosition+this._viewportHeight},get _virtualEnd(){return this._virtualStart+this._physicalCount-1},get _hiddenContentSize(){return(this.grid?this._physicalRows*this._rowHeight:this._physicalSize)-this._viewportHeight},get _itemsParent(){return _.sg(_.sg(this._userTemplate).parentNode)},get _maxScrollTop(){return this._estScrollHeight-
this._viewportHeight+this._scrollOffset},get _maxVirtualStart(){var F=this._convertIndexToCompleteRow(this._virtualCount);return Math.max(0,F-this._physicalCount)},set _virtualStart(F){F=this._clamp(F,0,this._maxVirtualStart);this.grid&&(F-=F%this._itemsPerRow);this._virtualStartVal=F},get _virtualStart(){return this._virtualStartVal||0},set _physicalStart(F){F%=this._physicalCount;F<0&&(F=this._physicalCount+F);this.grid&&(F-=F%this._itemsPerRow);this._physicalStartVal=F},get _physicalStart(){return this._physicalStartVal||
0},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},set _physicalCount(F){this._physicalCountVal=F},get _physicalCount(){return this._physicalCountVal||0},get _optPhysicalSize(){return this._viewportHeight===0?Infinity:this._viewportHeight*this._maxPages},get _isVisible(){return!(!this.offsetWidth&&!this.offsetHeight)},get firstVisibleIndex(){var F=this._firstVisibleIndexVal;if(F==null){var W=this._physicalTop+this._scrollOffset;this._firstVisibleIndexVal=
F=this._iterateItems(function(E,h){W+=this._getPhysicalSizeIncrement(E);if(W>this._scrollPosition)return this.grid?h-h%this._itemsPerRow:h;if(this.grid&&this._virtualCount-1===h)return h-h%this._itemsPerRow})||0}return F},
get lastVisibleIndex(){var F=this._lastVisibleIndexVal;if(F==null){if(this.grid)F=Math.min(this._virtualCount,this.firstVisibleIndex+this._estRowsInView*this._itemsPerRow-1);else{var W=this._physicalTop+this._scrollOffset;this._iterateItems(function(E,h){W<this._scrollBottom&&(F=h);W+=this._getPhysicalSizeIncrement(E)})}this._lastVisibleIndexVal=F}return F},
get _defaultScrollTarget(){return this},get _virtualRowCount(){return Math.ceil(this._virtualCount/this._itemsPerRow)},get _estRowsInView(){return Math.ceil(this._viewportHeight/this._rowHeight)},get _physicalRows(){return Math.ceil(this._physicalCount/this._itemsPerRow)},get _scrollOffset(){return this._scrollerPaddingTop+this.scrollOffset},ready:function(){this.addEventListener("focus",this._didFocus.bind(this),!0)},
attached:function(){this._debounce("_render",this._render,_.DA);this.listen(this,"iron-resize","_resizeHandler");this.listen(this,"keydown","_keydownHandler")},
detached:function(){this.unlisten(this,"iron-resize","_resizeHandler");this.unlisten(this,"keydown","_keydownHandler")},
_setOverflow:function(F){this.style.webkitOverflowScrolling=F===this?"touch":"";this.style.overflowY=F===this?"auto":"";this._firstVisibleIndexVal=this._lastVisibleIndexVal=null;this._debounce("_render",this._render,_.DA)},
updateViewportBoundaries:function(){var F=window.getComputedStyle(this);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(F["padding-top"],10);this._isRTL=F.direction==="rtl";this._viewportWidth=this.$.items.offsetWidth;this._viewportHeight=this._scrollTargetHeight;this.grid&&this._updateGridMetrics()},
_scrollHandler:function(){var F=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop)),W=F-this._scrollPosition,E=W>=0;this._scrollPosition=F;this._lastVisibleIndexVal=this._firstVisibleIndexVal=null;Math.abs(W)>this._physicalSize&&this._physicalSize>0?(W-=this._scrollOffset,E=Math.round(W/this._physicalAverage)*this._itemsPerRow,this._virtualStart+=E,this._physicalStart+=E,this._physicalTop=Math.min(Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage,this._scrollPosition),this._update()):
this._physicalCount>0&&(F=this._getReusables(E),E?(this._physicalTop=F.physicalTop,this._virtualStart+=F.indexes.length,this._physicalStart+=F.indexes.length):(this._virtualStart=this._virtualStart-F.indexes.length,this._physicalStart=this._physicalStart-F.indexes.length),this._update(F.indexes,E?null:F.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),aL))},
_getReusables:function(F){var W=[],E=this._hiddenContentSize*this._ratio,h=this._virtualStart,d=this._virtualEnd,V=this._physicalCount,R=this._physicalTop+this._scrollOffset;var M=this._physicalBottom+this._scrollOffset;var g=this._scrollPosition,t=this._scrollBottom;if(F){var C=this._physicalStart;M=g-R}else C=this._physicalEnd,M-=t;for(;;){var B=this._getPhysicalSizeIncrement(C);M-=B;if(W.length>=V||M<=E)break;if(F){if(d+W.length+1>=this._virtualCount)break;if(R+B>=g-this._scrollOffset)break;W.push(C);
R+=B;C=(C+1)%V}else{if(h-W.length<=0)break;if(R+this._physicalSize-B<=t)break;W.push(C);R-=B;C=C===0?V-1:C-1}}return{indexes:W,physicalTop:R-this._scrollOffset}},
_update:function(F,W){if(!(F&&F.length===0||this._physicalCount===0)){this._manageFocus();this._assignModels(F);this._updateMetrics(F);if(W)for(;W.length;)F=W.pop(),this._physicalTop-=this._getPhysicalSizeIncrement(F);this._positionItems();this._updateScrollerSize()}},
_createPool:function(F){this._ensureTemplatized();var W,E=Array(F);for(W=0;W<F;W++){var h=this.stamp(null);E[W]=h.root.querySelector("*");this._itemsParent.appendChild(h.root)}return E},
_isClientFull:function(){return this._scrollBottom!=0&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},
_increasePoolIfNeeded:function(F){F=this._clamp(this._physicalCount+F,3,this._virtualCount-this._virtualStart);F=this._convertIndexToCompleteRow(F);if(this.grid){var W=F%this._itemsPerRow;W&&F-W<=this._physicalCount&&(F+=this._itemsPerRow);F-=W}F-=this._physicalCount;W=Math.round(this._physicalCount*.5);if(!(F<0)){if(F>0){W=window.performance.now();[].push.apply(this._physicalItems,this._createPool(F));for(var E=0;E<F;E++)this._physicalSizes.push(0);this._physicalCount+=F;this._physicalStart>this._physicalEnd&&
this._isIndexRendered(this._focusedVirtualIndex)&&this._getPhysicalIndex(this._focusedVirtualIndex)<this._physicalEnd&&(this._physicalStart+=F);this._update();this._templateCost=(window.performance.now()-W)/F;W=Math.round(this._physicalCount*.5)}this._virtualEnd>=this._virtualCount-1||W===0||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,W)),aUu):this._debounce("_increasePoolIfNeeded",
this._increasePoolIfNeeded.bind(this,W),aL))}},
_render:function(){if(this.isAttached&&this._isVisible)if(this._physicalCount!==0){var F=this._getReusables(!0);this._physicalTop=F.physicalTop;this._virtualStart+=F.indexes.length;this._physicalStart+=F.indexes.length;this._update(F.indexes);this._update();this._increasePoolIfNeeded(0)}else this._virtualCount>0&&(this.updateViewportBoundaries(),this._increasePoolIfNeeded(3))},
_ensureTemplatized:function(){if(!this.ctor){(this._userTemplate=this.queryEffectiveChildren("template"))||console.warn("iron-list requires a template to be provided in light-dom");var F={__key__:!0};F[this.as]=!0;F[this.indexAs]=!0;F[this.selectedAs]=!0;F.tabIndex=!0;this._instanceProps=F;this.templatize(this._userTemplate,this.mutableData)}},
_gridChanged:function(F,W){typeof W!=="undefined"&&(this.notifyResize(),_.vD(),F&&this._updateGridMetrics())},
_itemsChanged:function(F){if(F.path==="items")this._physicalTop=this._virtualStart=0,this._virtualCount=this.items?this.items.length:0,this._physicalIndexForKey={},this._lastVisibleIndexVal=this._firstVisibleIndexVal=null,this._physicalCount=this._physicalCount||0,this._physicalItems=this._physicalItems||[],this._physicalSizes=this._physicalSizes||[],this._physicalStart=0,this._scrollTop>this._scrollOffset&&this._resetScrollPosition(0),this._removeFocusedItem(),this._debounce("_render",this._render,
_.DA);else if(F.path==="items.splices"){this._adjustVirtualIndex(F.value.indexSplices);this._virtualCount=this.items?this.items.length:0;if(F.value.indexSplices.some(function(E){return E.addedCount>0||E.removed.length>0})){var W=this._getActiveElement();
this.contains(W)&&W.blur()}F=F.value.indexSplices.some(function(E){return E.index+E.addedCount>=this._virtualStart&&E.index<=this._virtualEnd},this);
this._isClientFull()&&!F||this._debounce("_render",this._render,_.DA)}else F.path!=="items.length"&&this._forwardItemPath(F.path,F.value)},
_forwardItemPath:function(F,W){F=F.slice(6);var E=F.indexOf(".");E===-1&&(E=F.length);var h,d=this.modelForElement(this._offscreenFocusedItem),V=parseInt(F.substring(0,E),10);if(h=this._isIndexRendered(V)){var R=this._getPhysicalIndex(V);var M=this.modelForElement(this._physicalItems[R])}else d&&(M=d);M&&M[this.indexAs]===V&&(F=F.substring(E+1),F=this.as+(F?"."+F:""),M._setPendingPropertyOrPath(F,W,!1,!0),M._flushProperties&&M._flushProperties(),h&&(this._updateMetrics([R]),this._positionItems(),
this._updateScrollerSize()))},
_adjustVirtualIndex:function(F){F.forEach(function(W){W.removed.forEach(this._removeItem,this);W.index<this._virtualStart&&(W=Math.max(W.addedCount-W.removed.length,W.index-this._virtualStart),this._virtualStart+=W,this._focusedVirtualIndex>=0&&(this._focusedVirtualIndex+=W))},this)},
_removeItem:function(F){this.$.selector.deselect(F);this._focusedItem&&this.modelForElement(this._focusedItem)[this.as]===F&&this._removeFocusedItem()},
_iterateItems:function(F,W){var E,h;if(arguments.length===2&&W)for(h=0;h<W.length;h++){var d=W[h];var V=this._computeVidx(d);if((E=F.call(this,d,V))!=null)return E}else{d=this._physicalStart;for(V=this._virtualStart;d<this._physicalCount;d++,V++)if((E=F.call(this,d,V))!=null)return E;for(d=0;d<this._physicalStart;d++,V++)if((E=F.call(this,d,V))!=null)return E}},
_computeVidx:function(F){return F>=this._physicalStart?this._virtualStart+(F-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+F},
_assignModels:function(F){this._iterateItems(function(W,E){var h=this._physicalItems[W],d=this.items&&this.items[E];if(d!=null){var V=this.modelForElement(h);V.__key__=null;this._forwardProperty(V,this.as,d);this._forwardProperty(V,this.selectedAs,this.$.selector.isSelected(d));this._forwardProperty(V,this.indexAs,E);this._forwardProperty(V,"tabIndex",this._focusedVirtualIndex===E?0:-1);this._physicalIndexForKey[V.__key__]=W;V._flushProperties&&V._flushProperties(!0);h.removeAttribute("hidden")}else h.setAttribute("hidden",
"")},F)},
_updateMetrics:function(F){_.vD();var W=0,E=0,h=this._physicalAverageCount,d=this._physicalAverage;this._iterateItems(function(V){E+=this._physicalSizes[V];this._physicalSizes[V]=this._physicalItems[V].offsetHeight;W+=this._physicalSizes[V];this._physicalAverageCount+=this._physicalSizes[V]?1:0},F);
this.grid?(this._updateGridMetrics(),this._physicalSize=Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight):(E=this._itemsPerRow===1?E:Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight,this._physicalSize=this._physicalSize+W-E,this._itemsPerRow=1);this._physicalAverageCount!==h&&(this._physicalAverage=Math.round((d*h+W)/this._physicalAverageCount))},
_updateGridMetrics:function(){this._itemWidth=this._physicalCount>0?this._physicalItems[0].getBoundingClientRect().width:200;this._rowHeight=this._physicalCount>0?this._physicalItems[0].offsetHeight:200;this._itemsPerRow=this._itemWidth?Math.floor(this._viewportWidth/this._itemWidth):this._itemsPerRow},
_positionItems:function(){this._adjustScrollPosition();var F=this._physicalTop;if(this.grid){var W=(this._viewportWidth-this._itemsPerRow*this._itemWidth)/2;this._iterateItems(function(E,h){var d=Math.floor(h%this._itemsPerRow*this._itemWidth+W);this._isRTL&&(d*=-1);this.translate3d(d+"px",F+"px",0,this._physicalItems[E]);this._shouldRenderNextRow(h)&&(F+=this._rowHeight)})}else this._iterateItems(function(E){this.translate3d(0,F+"px",0,this._physicalItems[E]);
F+=this._physicalSizes[E]})},
_getPhysicalSizeIncrement:function(F){return this.grid?this._computeVidx(F)%this._itemsPerRow!==this._itemsPerRow-1?0:this._rowHeight:this._physicalSizes[F]},
_shouldRenderNextRow:function(F){return F%this._itemsPerRow===this._itemsPerRow-1},
_adjustScrollPosition:function(){var F=this._virtualStart===0?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(F!==0){this._physicalTop=this._physicalTop-F;var W=this._scrollPosition;!l1B&&W>0&&this._resetScrollPosition(W-F)}},
_resetScrollPosition:function(F){this.scrollTarget&&F>=0&&(this._scrollPosition=this._scrollTop=F)},
_updateScrollerSize:function(F){this.grid?this._estScrollHeight=this._virtualRowCount*this._rowHeight:this._estScrollHeight=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;if((F=(F=(F=F||this._scrollHeight===0)||this._scrollPosition>=this._estScrollHeight-this._physicalSize)||this.grid&&this.$.items.style.height<this._estScrollHeight)||Math.abs(this._estScrollHeight-this._scrollHeight)>=this._viewportHeight)this.$.items.style.height=
this._estScrollHeight+"px",this._scrollHeight=this._estScrollHeight},
scrollToItem:function(F){return this.scrollToIndex(this.items.indexOf(F))},
scrollToIndex:function(F){if(!(typeof F!=="number"||F<0||F>this.items.length-1)&&(_.vD(),this._physicalCount!==0)){F=this._clamp(F,0,this._virtualCount-1);if(!this._isIndexRendered(F)||F>=this._maxVirtualStart)this._virtualStart=this.grid?F-this._itemsPerRow*2:F-1;this._manageFocus();this._assignModels();this._updateMetrics();this._physicalTop=Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage;for(var W=this._physicalStart,E=this._virtualStart,h=0,d=this._hiddenContentSize;E<F&&
h<=d;)h+=this._getPhysicalSizeIncrement(W),W=(W+1)%this._physicalCount,E++;this._updateScrollerSize(!0);this._positionItems();this._resetScrollPosition(this._physicalTop+this._scrollOffset+h);this._increasePoolIfNeeded(0);this._lastVisibleIndexVal=this._firstVisibleIndexVal=null}},
_resetAverage:function(){this._physicalAverageCount=this._physicalAverage=0},
_resizeHandler:function(){this._debounce("_render",function(){this._lastVisibleIndexVal=this._firstVisibleIndexVal=null;this._isVisible?(this.updateViewportBoundaries(),this.toggleScrollListener(!0),this._resetAverage(),this._render()):this.toggleScrollListener(!1)},_.DA)},
selectItem:function(F){return this.selectIndex(this.items.indexOf(F))},
selectIndex:function(F){if(!(F<0||F>=this._virtualCount)){!this.multiSelection&&this.selectedItem&&this.clearSelection();if(this._isIndexRendered(F)){var W=this.modelForElement(this._physicalItems[this._getPhysicalIndex(F)]);W&&(W[this.selectedAs]=!0);this.updateSizeForIndex(F)}this.$.selector.selectIndex(F)}},
deselectItem:function(F){return this.deselectIndex(this.items.indexOf(F))},
deselectIndex:function(F){F<0||F>=this._virtualCount||(this._isIndexRendered(F)&&(this.modelForElement(this._physicalItems[this._getPhysicalIndex(F)])[this.selectedAs]=!1,this.updateSizeForIndex(F)),this.$.selector.deselectIndex(F))},
toggleSelectionForItem:function(F){return this.toggleSelectionForIndex(this.items.indexOf(F))},
toggleSelectionForIndex:function(F){(this.$.selector.isIndexSelected?this.$.selector.isIndexSelected(F):this.$.selector.isSelected(this.items[F]))?this.deselectIndex(F):this.selectIndex(F)},
clearSelection:function(){this._iterateItems(function(F){this.modelForElement(this._physicalItems[F])[this.selectedAs]=!1});
this.$.selector.clearSelection()},
_selectionEnabledChanged:function(F){(F?this.listen:this.unlisten).call(this,this,"tap","_selectionHandler")},
_selectionHandler:function(F){var W=this.modelForElement(F.target);if(W){var E=_.sg(F).path[0];F=this._getActiveElement();var h=this._physicalItems[this._getPhysicalIndex(W[this.indexAs])];if(E.localName!=="input"&&E.localName!=="button"&&E.localName!=="select"){E=W.tabIndex;W.tabIndex=-100;var d=F?F.tabIndex:-1;W.tabIndex=E;F&&h!==F&&h.contains(F)&&d!==-100||this.toggleSelectionForItem(W[this.as])}}},
_multiSelectionChanged:function(F){this.clearSelection();this.$.selector.multi=F},
updateSizeForItem:function(F){return this.updateSizeForIndex(this.items.indexOf(F))},
updateSizeForIndex:function(F){if(!this._isIndexRendered(F))return null;this._updateMetrics([this._getPhysicalIndex(F)]);this._positionItems();return null},
_manageFocus:function(){var F=this._focusedVirtualIndex;F>=0&&F<this._virtualCount?this._isIndexRendered(F)?this._restoreFocusedItem():this._createFocusBackfillItem():this._virtualCount>0&&this._physicalCount>0&&(this._focusedPhysicalIndex=this._physicalStart,this._focusedVirtualIndex=this._virtualStart,this._focusedItem=this._physicalItems[this._physicalStart])},
_convertIndexToCompleteRow:function(F){this._itemsPerRow=this._itemsPerRow||1;return this.grid?Math.ceil(F/this._itemsPerRow)*this._itemsPerRow:F},
_isIndexRendered:function(F){return F>=this._virtualStart&&F<=this._virtualEnd},
_isIndexVisible:function(F){return F>=this.firstVisibleIndex&&F<=this.lastVisibleIndex},
_getPhysicalIndex:function(F){return(this._physicalStart+(F-this._virtualStart))%this._physicalCount},
focusItem:function(F){this._focusPhysicalItem(F)},
_focusPhysicalItem:function(F){if(!(F<0||F>=this._virtualCount)){this._restoreFocusedItem();this._isIndexRendered(F)||this.scrollToIndex(F);var W=this._physicalItems[this._getPhysicalIndex(F)],E=this.modelForElement(W),h;E.tabIndex=-100;W.tabIndex===-100&&(h=W);h||(h=_.sg(W).querySelector('[tabindex="-100"]'));E.tabIndex=0;this._focusedVirtualIndex=F;h&&h.focus()}},
_removeFocusedItem:function(){this._offscreenFocusedItem&&this._itemsParent.removeChild(this._offscreenFocusedItem);this._focusedItem=this._focusBackfillItem=this._offscreenFocusedItem=null;this._focusedPhysicalIndex=this._focusedVirtualIndex=-1},
_createFocusBackfillItem:function(){var F=this._focusedPhysicalIndex;if(!(this._offscreenFocusedItem||this._focusedVirtualIndex<0)){if(!this._focusBackfillItem){var W=this.stamp(null);this._focusBackfillItem=W.root.querySelector("*");this._itemsParent.appendChild(W.root)}this._offscreenFocusedItem=this._physicalItems[F];this.modelForElement(this._offscreenFocusedItem).tabIndex=0;this._physicalItems[F]=this._focusBackfillItem;this._focusedPhysicalIndex=F;this.translate3d(0,"-10000px",0,this._offscreenFocusedItem)}},
_restoreFocusedItem:function(){if(this._offscreenFocusedItem&&!(this._focusedVirtualIndex<0)){this._assignModels();var F=this._focusedPhysicalIndex=this._getPhysicalIndex(this._focusedVirtualIndex),W=this._physicalItems[F];if(W){var E=this.modelForElement(W),h=this.modelForElement(this._offscreenFocusedItem);E[this.as]===h[this.as]?(this._focusBackfillItem=W,E.tabIndex=-1,this._physicalItems[F]=this._offscreenFocusedItem,this.translate3d(0,"-10000px",0,this._focusBackfillItem)):(this._removeFocusedItem(),
this._focusBackfillItem=null);this._offscreenFocusedItem=null}}},
_didFocus:function(F){F=this.modelForElement(F.target);var W=this.modelForElement(this._focusedItem),E=this._offscreenFocusedItem!==null,h=this._focusedVirtualIndex;F&&(W===F?this._isIndexVisible(h)||this.scrollToIndex(h):(this._restoreFocusedItem(),W&&(W.tabIndex=-1),F.tabIndex=0,this._focusedVirtualIndex=h=F[this.indexAs],this._focusedPhysicalIndex=this._getPhysicalIndex(h),this._focusedItem=this._physicalItems[this._focusedPhysicalIndex],E&&!this._offscreenFocusedItem&&this._update()))},
_keydownHandler:function(F){switch(F.keyCode){case 40:this._focusedVirtualIndex<this._virtualCount-1&&F.preventDefault();this._focusPhysicalItem(this._focusedVirtualIndex+(this.grid?this._itemsPerRow:1));break;case 39:this.grid&&this._focusPhysicalItem(this._focusedVirtualIndex+(this._isRTL?-1:1));break;case 38:this._focusedVirtualIndex>0&&F.preventDefault();this._focusPhysicalItem(this._focusedVirtualIndex-(this.grid?this._itemsPerRow:1));break;case 37:this.grid&&this._focusPhysicalItem(this._focusedVirtualIndex+
(this._isRTL?1:-1));break;case 13:this._focusPhysicalItem(this._focusedVirtualIndex),this.selectionEnabled&&this._selectionHandler(F)}},
_clamp:function(F,W,E){return Math.min(E,Math.max(W,F))},
_debounce:function(F,W,E){this._debouncers=this._debouncers||{};this._debouncers[F]=_.QZ(this._debouncers[F],E,W.bind(this));_.za(this._debouncers[F])},
_forwardProperty:function(F,W,E){F._setPendingProperty(W,E)},
_forwardHostPropV2:function(F,W){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(E){E&&this.modelForElement(E).forwardHostProp(F,W)},this)},
_notifyInstancePropV2:function(F,W,E){TYr(this.as,W)&&(F=F[this.indexAs],W==this.as&&(this.items[F]=E),this.notifyPath(zn(this.as,"items."+F,W),E))},
_getStampedChildren:function(){return this._physicalItems},
_forwardInstancePath:function(F,W,E){W.indexOf(this.as+".")===0&&this.notifyPath("items."+F.__key__+"."+W.slice(this.as.length+1),E)},
_forwardParentPath:function(F,W){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(E){E&&this.modelForElement(E).notifyPath(F,W)},this)},
_forwardParentProp:function(F,W){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(E){E&&(this.modelForElement(E)[F]=W)},this)},
_getActiveElement:function(){var F=this._itemsParent.node.domHost;return _.sg(F?F.root:document).activeElement},
_scrollTargetChanged:function(F,W){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);if(W)if(F==="document")this.scrollTarget=this._doc;else if(typeof F==="string"){var E,h;this.scrollTarget=(W=(h=(E=this.domHost)==null?void 0:E.polymerController)!=null?h:this.domHost)&&W.$?W.$[F]:_.sg(this.ownerDocument).querySelector("#"+F)}else this._isValidScrollTarget()&&(this._oldScrollTarget=F,this._toggleScrollListener(this._shouldHaveListener,F))}});var nVc;var yGi;var j6_=function(F,W,E,h){F-=E;W-=h;return Math.sqrt(F*F+W*W)},ixc=window.performance&&window.performance.now?window.performance.now.bind(window.performance):Date.now;
l9w.prototype={get boundingRect(){return this.element.getBoundingClientRect()}};var nco=function(F){F.maxRadius=0;F.mouseDownStart=0;F.mouseUpStart=0;F.xStart=0;F.yStart=0;F.xEnd=0;F.yEnd=0;F.containerMetrics=new l9w(F.element)};
ykI.prototype={get recenters(){return this.element.recenters},get center(){return this.element.center},get mouseDownElapsed(){if(!this.mouseDownStart)return 0;var F=ixc()-this.mouseDownStart;this.mouseUpStart&&(F-=this.mouseUpElapsed);return F},get mouseUpElapsed(){return this.mouseUpStart?ixc()-this.mouseUpStart:0},get mouseDownElapsedSeconds(){return this.mouseDownElapsed/1E3},get mouseUpElapsedSeconds(){return this.mouseUpElapsed/1E3},get mouseInteractionSeconds(){return this.mouseDownElapsedSeconds+
this.mouseUpElapsedSeconds},get initialOpacity(){return this.element.initialOpacity},get opacityDecayVelocity(){return this.element.opacityDecayVelocity},get radius(){var F=Math.min(Math.sqrt(this.containerMetrics.width*this.containerMetrics.width+this.containerMetrics.height*this.containerMetrics.height),300)*1.1+5;return Math.min(Math.abs(F*(1-Math.pow(80,-(this.mouseInteractionSeconds/(1.1-F/300*.2))))),this.maxRadius,300)},get opacity(){return this.mouseUpStart?Math.max(0,this.initialOpacity-
this.mouseUpElapsedSeconds*this.opacityDecayVelocity):this.initialOpacity},get outerOpacity(){return Math.max(0,Math.min(this.mouseUpElapsedSeconds*.3,this.opacity))},get isOpacityFullyDecayed(){return this.opacity<.01&&this.radius>=Math.min(this.maxRadius,300)},get isRestingAtMaxRadius(){return this.opacity>=this.initialOpacity&&this.radius>=Math.min(this.maxRadius,300)},get isAnimationComplete(){return this.mouseUpStart?this.isOpacityFullyDecayed:this.isRestingAtMaxRadius},get translationFraction(){return Math.min(1,
this.radius/this.containerMetrics.size*2/Math.sqrt(2))},get xNow(){return this.xEnd?this.xStart+this.translationFraction*(this.xEnd-this.xStart):this.xStart},get yNow(){return this.yEnd?this.yStart+this.translationFraction*(this.yEnd-this.yStart):this.yStart},get isMouseDown(){return this.mouseDownStart&&!this.mouseUpStart},draw:function(){this.wave.style.opacity=this.opacity;var F=this.radius/(this.containerMetrics.size/2);var W=this.xNow-this.containerMetrics.width/2;var E=this.yNow-this.containerMetrics.height/
2;this.waveContainer.style.webkitTransform="translate("+W+"px, "+E+"px)";this.waveContainer.style.transform="translate3d("+W+"px, "+E+"px, 0)";this.wave.style.webkitTransform="scale("+F+","+F+")";this.wave.style.transform="scale3d("+F+","+F+",1)"},
downAction:function(F){var W=this.containerMetrics.width/2,E=this.containerMetrics.height/2;nco(this);this.mouseDownStart=ixc();this.center?(this.xStart=W,this.yStart=E):(this.xStart=F?F.detail.x-this.containerMetrics.boundingRect.left:this.containerMetrics.width/2,this.yStart=F?F.detail.y-this.containerMetrics.boundingRect.top:this.containerMetrics.height/2);this.recenters&&(this.xEnd=W,this.yEnd=E);F=this.containerMetrics;W=this.xStart;E=this.yStart;this.maxRadius=Math.max(j6_(W,E,0,0),j6_(W,E,
F.width,0),j6_(W,E,0,F.height),j6_(W,E,F.width,F.height));this.waveContainer.style.top=(this.containerMetrics.height-this.containerMetrics.size)/2+"px";this.waveContainer.style.left=(this.containerMetrics.width-this.containerMetrics.size)/2+"px";this.waveContainer.style.width=this.containerMetrics.size+"px";this.waveContainer.style.height=this.containerMetrics.size+"px"},
upAction:function(){this.isMouseDown&&(this.mouseUpStart=ixc())},
remove:function(){_.sg(_.sg(this.waveContainer).parentNode).removeChild(this.waveContainer)}};
_.k3({_template:function(){if(yGi!==void 0)return yGi;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-ripple--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_ripple.tp.yt.paper.ripple.css.js--\x3e<div id="background" class="style-scope tp-yt-paper-ripple"></div>\n<div id="waves" class="style-scope tp-yt-paper-ripple"></div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);var W=F.content,E=W.insertBefore;nVc===void 0&&(nVc=document.createElement("template"));var h=nVc;E.call(W,h.content.cloneNode(!0),F.content.firstChild);return yGi=F},
is:"tp-yt-paper-ripple",behaviors:[_.$5],properties:{initialOpacity:{type:Number,value:.25},opacityDecayVelocity:{type:Number,value:.8},recenters:{type:Boolean,value:!1},center:{type:Boolean,value:!1},ripples:{type:Array,value:function(){return[]}},
animating:{type:Boolean,readOnly:!0,reflectToAttribute:!0,value:!1},holdDown:{type:Boolean,value:!1,observer:"_holdDownChanged"},noink:{type:Boolean,value:!1},_animating:{type:Boolean},_boundAnimate:{type:Function,value:function(){return this.animate.bind(this)}}},
get target(){return this.keyEventTarget},keyBindings:{"enter:keydown":"_onEnterKeydown","space:keydown":"_onSpaceKeydown","space:keyup":"_onSpaceKeyup"},attached:function(){_.sg(this).parentNode.nodeType==11?this.keyEventTarget=_.sg(this).getOwnerRoot().host:this.keyEventTarget=_.sg(this).parentNode;var F=this.keyEventTarget;this.listen(F,"up","uiUpAction");this.listen(F,"down","uiDownAction")},
detached:function(){this.unlisten(this.keyEventTarget,"up","uiUpAction");this.unlisten(this.keyEventTarget,"down","uiDownAction");this.keyEventTarget=null;this.ripples.forEach(function(F){F.remove()});
this.ripples.length=0;this._setAnimating(!1)},
get shouldKeepAnimating(){for(var F=0;F<this.ripples.length;++F)if(!this.ripples[F].isAnimationComplete)return!0;return!1},simulatedRipple:function(){this.downAction(null);this.async(function(){this.upAction()},1)},
uiDownAction:function(F){this.noink||this.downAction(F)},
downAction:function(F){this.holdDown&&this.ripples.length>0||(this.addRipple().downAction(F),this._animating||(this._animating=!0,this.animate()))},
uiUpAction:function(F){this.noink||this.upAction(F)},
upAction:function(F){this.holdDown||(this.ripples.forEach(function(W){W.upAction(F)}),this._animating=!0,this.animate())},
onAnimationComplete:function(){for(var F=0;F<this.ripples.length;++F){var W=this.ripples[F];W.isOpacityFullyDecayed&&!W.isRestingAtMaxRadius&&this.removeRipple(W)}this._animating=!1;this.$.background.style.backgroundColor="";this.fire("transitionend")},
addRipple:function(){var F=new ykI(this);_.sg(this.$.waves).appendChild(F.waveContainer);this.$.background.style.backgroundColor=F.color;this.ripples.push(F);this._setAnimating(!0);return F},
removeRipple:function(F){var W=this.ripples.indexOf(F);W<0||(this.ripples.splice(W,1),F.remove(),this.ripples.length||this._setAnimating(!1))},
animate:function(){if(this._animating){var F;for(F=0;F<this.ripples.length;++F){var W=this.ripples[F];W.draw();this.$.background.style.opacity=W.outerOpacity;W.isOpacityFullyDecayed&&!W.isRestingAtMaxRadius&&this.removeRipple(W)}if(this.shouldKeepAnimating)window.requestAnimationFrame(this._boundAnimate);else this.onAnimationComplete()}},
animateRipple:function(){return this.animate()},
_onEnterKeydown:function(){this.uiDownAction();this.async(this.uiUpAction,1)},
_onSpaceKeydown:function(){this.uiDownAction()},
_onSpaceKeyup:function(){this.uiUpAction()},
_holdDownChanged:function(F,W){W!==void 0&&(F?this.downAction():this.upAction())}});var KH={properties:{noink:{type:Boolean,observer:"_noinkChanged"},_rippleContainer:{type:Object},_ripple:{type:Object}},_buttonStateChanged:function(){this.focused&&this.ensureRipple()},
_downHandler:function(F){Xx._downHandler.call(this,F);this.pressed&&this.ensureRipple(F)},
ensureRipple:function(F){if(!this.hasRipple()){this._ripple=this._createRipple();this._ripple.noink=this.noink;var W=this._rippleContainer||this.root;W&&_.sg(W).appendChild(this._ripple);if(F){W=_.sg(this._rippleContainer||this);var E=_.sg(F).rootTarget;W.deepContains(E)&&this._ripple.uiDownAction(F)}}},
getRipple:function(){this.ensureRipple();return this._ripple},
hasRipple:function(){return!!this._ripple},
_createRipple:function(){return document.createElement("tp-yt-paper-ripple")},
_noinkChanged:function(F){this.hasRipple()&&(this._ripple.noink=F)}};var rGB={properties:{elevation:{type:Number,reflectToAttribute:!0,readOnly:!0}},observers:["_calculateElevation(focused, disabled, active, pressed, receivedFocusFromKeyboard)","_computeKeyboardClass(receivedFocusFromKeyboard)"],hostAttributes:{role:"button",tabindex:"0",animated:!0},_calculateElevation:function(){var F=1;this.disabled?F=0:this.active||this.pressed?F=4:this.receivedFocusFromKeyboard&&(F=3);this._setElevation(F)},
_computeKeyboardClass:function(F){this.toggleClass("keyboard-focus",F)},
_spaceKeyDownHandler:function(F){Xx._spaceKeyDownHandler.call(this,F);this.hasRipple()&&this.getRipple().ripples.length<1&&this._ripple.uiDownAction()},
_spaceKeyUpHandler:function(F){Xx._spaceKeyUpHandler.call(this,F);this.hasRipple()&&this._ripple.uiUpAction()}},Tke=[mrM,
_.ZD,KH,rGB];_.oVB={observers:["_focusedChanged(receivedFocusFromKeyboard)"],_focusedChanged:function(F){F&&this.ensureRipple();this.hasRipple()&&(this._ripple.holdDown=F)},
_createRipple:function(){var F=KH._createRipple();F.id="ink";F.setAttribute("center","");F.classList.add("circle");return F}};
_.GtU=[mrM,_.ZD,KH,_.oVB];_.Y8B=[_.GtU,WAz,{_checkedChanged:function(){FAe._checkedChanged.call(this);this.hasRipple()&&(this.checked?this._ripple.setAttribute("checked",""):this._ripple.removeAttribute("checked"))},
_buttonStateChanged:function(){KH._buttonStateChanged.call(this);!this.disabled&&this.isAttached&&(this.checked=this.active)}}];var wSH;var uFB;var S8U=function(){};
_.N=S8U.prototype;_.N.registered=function(){};
_.N.addOwnKeyBinding=function(){};
_.N.removeOwnKeyBindings=function(){};
_.N.keyboardEventMatchesKeys=function(){};
_.N._collectKeyBindings=function(){};
_.N._prepKeyBindings=function(){};
_.N._addKeyBinding=function(){};
_.N._resetKeyEventListeners=function(){};
_.N._listenKeyEventListeners=function(){};
_.N._unlistenKeyEventListeners=function(){};
_.N._onKeyBindingEvent=function(){};
_.N._triggerKeyHandler=function(){};
_.N._tapHandler=function(){};
_.N._focusChanged=function(){};
_.N._detectKeyboardFocus=function(){};
_.N._userActivate=function(){};
_.N._upHandler=function(){};
_.N._asyncClick=function(){};
_.N._pressedChanged=function(){};
_.N._ariaActiveAttributeChanged=function(){};
_.N._activeChanged=function(){};
_.N._controlStateChanged=function(){};
_.N._changedButtonState=function(){};
_.N._focusBlurHandler=function(){};
_.N._disabledChanged=function(){};
_.N._changedControlState=function(){};
_.N._buttonStateChanged=function(){};
_.N._downHandler=function(){};
_.N.ensureRipple=function(){};
_.N.getRipple=function(){};
_.N.hasRipple=function(){};
_.N._createRipple=function(){};
_.N._noinkChanged=function(){};
_.N._computeKeyboardClass=function(){};
_.N._spaceKeyDownHandler=function(){};
_.N._spaceKeyUpHandler=function(){};
_.N._setPressed=function(){};
_.N._setPointerDown=function(){};
_.N._setReceivedFocusFromKeyboard=function(){};
_.N._setFocused=function(){};
_.N._setElevation=function(){};
S8U=_.k3({_template:function(){if(uFB!==void 0)return uFB;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-button--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_button.tp.yt.paper.button.css.js--\x3e<slot class="style-scope tp-yt-paper-button"></slot>\n');F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);
var W=F.content,E=W.insertBefore;wSH===void 0&&(wSH=document.createElement("template"));var h=wSH;E.call(W,h.content.cloneNode(!0),F.content.firstChild);return uFB=F},
is:"tp-yt-paper-button",hostAttributes:{"style-target":"host"},behaviors:[Tke],properties:{raised:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"_calculateElevation"}},_calculateElevation:function(){this.raised?rGB._calculateElevation.apply(this):this._setElevation(0)}});var pSX;var mYe;var K9c={hostAttributes:{role:"dialog",tabindex:"-1"},properties:{modal:{type:Boolean,value:!1},modern:{type:Boolean,value:!1,reflectToAttribute:!0},__readied:{type:Boolean,value:!1}},observers:["_modalChanged(modal, __readied)"],listeners:{tap:"_onDialogTap",click:"_onDialogClickWrapped"},_onDialogTap:function(F){_.c("dialog_behavior_no_tap_killswitch")&&this._onDialogClick(F)},
_onDialogClickWrapped:function(F){_.c("dialog_behavior_no_tap_killswitch")||this._onDialogClick(F)},
ready:function(){this.__prevNoCancelOnOutsideClick=this.noCancelOnOutsideClick;this.__prevNoCancelOnEscKey=this.noCancelOnEscKey;this.__prevWithBackdrop=this.withBackdrop;this.__readied=!0},
_modalChanged:function(F,W){W&&(F?(this.__prevNoCancelOnOutsideClick=this.noCancelOnOutsideClick,this.__prevNoCancelOnEscKey=this.noCancelOnEscKey,this.__prevWithBackdrop=this.withBackdrop,this.withBackdrop=this.noCancelOnEscKey=this.noCancelOnOutsideClick=!0,this.setAttribute("aria-modal","true")):(this.noCancelOnOutsideClick=this.noCancelOnOutsideClick&&this.__prevNoCancelOnOutsideClick,this.noCancelOnEscKey=this.noCancelOnEscKey&&this.__prevNoCancelOnEscKey,this.withBackdrop=this.withBackdrop&&
this.__prevWithBackdrop))},
_updateClosingReasonConfirmed:function(F){this.closingReason=this.closingReason||{};this.closingReason.confirmed=F},
_onDialogClick:function(F){for(var W=_.sg(F).path,E=0,h,d=W.indexOf((h=this.hostElement)!=null?h:this);E<d;E++)if(h=W[E],h.hasAttribute&&(h.hasAttribute("dialog-dismiss")||h.hasAttribute("dialog-confirm"))){this._updateClosingReasonConfirmed(h.hasAttribute("dialog-confirm"));this.close();F.stopPropagation();break}}},Fcz=[_.my,
K9c];var Wcc=document.createElement("template");_.L(Wcc,'<custom-style><style is="custom-style">/* autoprefixer: off */\n/**\n@license\nCopyright (c) 2015 The Polymer Project Authors. All rights reserved.\nThis code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt\nThe complete set of authors may be found at http://polymer.github.io/AUTHORS.txt\nThe complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt\nCode distributed by Google as part of the polymer project is also\nsubject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt\nSPDX-License-Identifier: BSD-3-Clause\n*/\nhtml {\n  --primary-text-color: var(--light-theme-text-color);\n  --primary-background-color: var(--light-theme-background-color);\n  --secondary-text-color: var(--light-theme-secondary-color);\n  --disabled-text-color: var(--light-theme-disabled-color);\n  --divider-color: var(--light-theme-divider-color);\n  --error-color: #dd2c00;\n  --primary-color: #3f51b5;\n  --light-primary-color: #c5cae9;\n  --dark-primary-color: #303f9f;\n  --accent-color: #ff4081;\n  --light-accent-color: #ff80ab;\n  --dark-accent-color: #f50057;\n  --light-theme-background-color: #fff;\n  --light-theme-base-color: #000;\n  --light-theme-text-color: #212121;\n  --light-theme-secondary-color: #737373;\n  --light-theme-disabled-color: #9b9b9b;\n  --light-theme-divider-color: #dbdbdb;\n  --dark-theme-background-color: #212121;\n  --dark-theme-base-color: #fff;\n  --dark-theme-text-color: #fff;\n  --dark-theme-secondary-color: #bcbcbc;\n  --dark-theme-disabled-color: #646464;\n  --dark-theme-divider-color: #3c3c3c;\n  --text-primary-color: var(--dark-theme-text-color);\n  --default-primary-color: var(--primary-color);\n}</style></custom-style>');
document.head.appendChild(Wcc.content);var EaT=document.createElement("template");_.L(EaT,'<custom-style><style is="custom-style"></style></custom-style>');document.head.appendChild(EaT.content);_.k3({_template:function(){if(mYe!==void 0)return mYe;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-dialog--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_dialog.tp.yt.paper.dialog.css.js--\x3e<slot class="style-scope tp-yt-paper-dialog"></slot>\n');F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);
var W=F.content,E=W.insertBefore;pSX===void 0&&(pSX=document.createElement("template"));var h=pSX;E.call(W,h.content.cloneNode(!0),F.content.firstChild);return mYe=F},
is:"tp-yt-paper-dialog",hostAttributes:{"style-target":"host"},behaviors:[Fcz,Mci],listeners:{"neon-animation-finish":"_onNeonAnimationFinish"},_renderOpened:function(){this.cancelAnimation();this.playAnimation("entry")},
_renderClosed:function(){this.cancelAnimation();this.playAnimation("exit")},
_onNeonAnimationFinish:function(){this.opened?this._finishRenderOpened():this._finishRenderClosed()}});var hMU;var dvU;_.k3({_template:function(){if(dvU!==void 0)return dvU;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-dialog-scrollable--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_dialog_scrollable.tp.yt.paper.dialog.scrollable.css.js--\x3e<div id="scrollable" class="scrollable style-scope tp-yt-paper-dialog-scrollable" on-scroll="updateScrollState">\n  <slot class="style-scope tp-yt-paper-dialog-scrollable"></slot>\n</div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);var W=F.content,E=W.insertBefore;hMU===void 0&&(hMU=document.createElement("template"));var h=hMU;E.call(W,h.content.cloneNode(!0),F.content.firstChild);return dvU=F},
is:"tp-yt-paper-dialog-scrollable",properties:{dialogElement:{type:Object}},get scrollTarget(){return this.$.scrollable},ready:function(){this._ensureTarget();this.classList.add("no-padding")},
attached:function(){this._ensureTarget();requestAnimationFrame(this.updateScrollState.bind(this))},
updateScrollState:function(){this.toggleClass("is-scrolled",this.scrollTarget.scrollTop>0);this.toggleClass("can-scroll",this.scrollTarget.offsetHeight<this.scrollTarget.scrollHeight);this.toggleClass("scrolled-to-bottom",this.scrollTarget.scrollTop+this.scrollTarget.offsetHeight>=this.scrollTarget.scrollHeight)},
_ensureTarget:function(){var F,W,E;if(((F=window.ShadyDOM)==null?void 0:F.noPatch)!==!0&&((W=window.ShadyDOM)==null?void 0:W.noPatch)!=="on-demand"||((E=this.__shady_parentNode)==null?void 0:E.nodeName)!=="#document-fragment")this.dialogElement=this.dialogElement||this.parentElement;this.dialogElement&&this.dialogElement.behaviors&&this.dialogElement.behaviors.indexOf(K9c)>=0?(this.dialogElement.sizingTarget=this.scrollTarget,this.scrollTarget.classList.remove("fit")):this.dialogElement&&this.scrollTarget.classList.add("fit")}});var N9i=_.Fc(['<iron-iconset-svg name="paper-dropdown-menu" size="24">\n<svg><defs>\n<g id="arrow-drop-down"><path d="M12,15.7L5.6,9.4l0.7-0.7l5.6,5.6l5.6-5.6l0.7,0.7L12,15.7z"/></g>\n</defs></svg>\n</iron-iconset-svg>']),VmT=_.hse(N9i);VmT.setAttribute("style","display: none;");document.head.appendChild(VmT.content);var UvB;var RMz;var eMc;var Mmi;_.k3({is:"tp-yt-paper-menu-grow-height-animation",_template:null,behaviors:[nH],configure:function(F){var W=F.node,E=W.getBoundingClientRect().height;return this._effect=new KeyframeEffect(W,[{height:E/2+"px"},{height:E+"px"}],this.timingFromConfig(F))}});
_.k3({is:"tp-yt-paper-menu-grow-width-animation",_template:null,behaviors:[nH],configure:function(F){var W=F.node,E=W.getBoundingClientRect().width;return this._effect=new KeyframeEffect(W,[{width:E/2+"px"},{width:E+"px"}],this.timingFromConfig(F))}});
_.k3({is:"tp-yt-paper-menu-shrink-width-animation",_template:null,behaviors:[nH],configure:function(F){var W=F.node,E=W.getBoundingClientRect().width;return this._effect=new KeyframeEffect(W,[{width:E+"px"},{width:E-E/20+"px"}],this.timingFromConfig(F))}});
_.k3({is:"tp-yt-paper-menu-shrink-height-animation",_template:null,behaviors:[nH],configure:function(F){var W=F.node,E=W.getBoundingClientRect().height;this.setPrefixedProperty(W,"transformOrigin","0 0");return this._effect=new KeyframeEffect(W,[{height:E+"px",transform:"translateY(0)"},{height:E/2+"px",transform:"translateY(-20px)"}],this.timingFromConfig(F))}});var FW={ANIMATION_CUBIC_BEZIER:"cubic-bezier(.3,.95,.5,1)",MAX_ANIMATION_TIME_MS:400},gaB=function(){};
_.N=gaB.prototype;_.N.registered=function(){};
_.N.addOwnKeyBinding=function(){};
_.N.removeOwnKeyBindings=function(){};
_.N.keyboardEventMatchesKeys=function(){};
_.N._collectKeyBindings=function(){};
_.N._prepKeyBindings=function(){};
_.N._addKeyBinding=function(){};
_.N._resetKeyEventListeners=function(){};
_.N._listenKeyEventListeners=function(){};
_.N._unlistenKeyEventListeners=function(){};
_.N._onKeyBindingEvent=function(){};
_.N._triggerKeyHandler=function(){};
_.N._focusBlurHandler=function(){};
_.N._changedControlState=function(){};
_.N._setFocused=function(){};
gaB=_.k3({_template:function(){if(Mmi!==void 0)return Mmi;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-menu-button--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_menu_button.tp.yt.paper.menu.button.css.js--\x3e<div id="trigger" on-tap="toggle" class="style-scope tp-yt-paper-menu-button">\n  <slot name="dropdown-trigger" class="style-scope tp-yt-paper-menu-button"></slot>\n</div>\n\n<tp-yt-iron-dropdown id="dropdown" opened="{{opened}}" horizontal-align="[[horizontalAlign]]" vertical-align="[[verticalAlign]]" dynamic-align="[[dynamicAlign]]" horizontal-offset="[[horizontalOffset]]" vertical-offset="[[verticalOffset]]" no-overlap="[[noOverlap]]" open-animation-config="[[openAnimationConfig]]" close-animation-config="[[closeAnimationConfig]]" no-animations="[[noAnimations]]" focus-target="[[_dropdownContent]]" allow-outside-scroll="[[allowOutsideScroll]]" restore-focus-on-close="[[restoreFocusOnClose]]" on-iron-overlay-canceled="__onIronOverlayCanceled" expand-sizing-target-for-scrollbars="[[expandSizingTargetForScrollbars]]" fit-into="[[fitInto]]" class="style-scope tp-yt-paper-menu-button">\n  <div slot="dropdown-content" class="dropdown-content style-scope tp-yt-paper-menu-button">\n    <slot id="content" name="dropdown-content" class="style-scope tp-yt-paper-menu-button"></slot>\n  </div>\n</tp-yt-iron-dropdown>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);var W=F.content,E=W.insertBefore;eMc===void 0&&(eMc=document.createElement("template"));var h=eMc;E.call(W,h.content.cloneNode(!0),F.content.firstChild);return Mmi=F},
is:"tp-yt-paper-menu-button",behaviors:[_.$5,_.ZD],properties:{opened:{type:Boolean,value:!1,notify:!0,observer:"_openedChanged"},horizontalAlign:{type:String,value:"left",reflectToAttribute:!0},verticalAlign:{type:String,value:"top",reflectToAttribute:!0},dynamicAlign:{type:Boolean},horizontalOffset:{type:Number,value:0,notify:!0},verticalOffset:{type:Number,value:0,notify:!0},noOverlap:{type:Boolean},noAnimations:{type:Boolean,value:!1},ignoreSelect:{type:Boolean,value:!1},closeOnActivate:{type:Boolean,
value:!1},openAnimationConfig:{type:Object,value:function(){return[{name:"fade-in-animation",timing:{delay:100,duration:200}},{name:"tp-yt-paper-menu-grow-width-animation",timing:{delay:100,duration:150,easing:FW.ANIMATION_CUBIC_BEZIER}},{name:"tp-yt-paper-menu-grow-height-animation",timing:{delay:100,duration:275,easing:FW.ANIMATION_CUBIC_BEZIER}}]}},
closeAnimationConfig:{type:Object,value:function(){return[{name:"fade-out-animation",timing:{duration:150}},{name:"tp-yt-paper-menu-shrink-width-animation",timing:{delay:100,duration:50,easing:FW.ANIMATION_CUBIC_BEZIER}},{name:"tp-yt-paper-menu-shrink-height-animation",timing:{duration:200,easing:"ease-in"}}]}},
allowOutsideScroll:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!0},expandSizingTargetForScrollbars:{type:Boolean,value:!1},_dropdownContent:{type:Object},fitInto:{type:Object}},hostAttributes:{role:"group","aria-haspopup":"true"},listeners:{"iron-activate":"_onIronActivate","iron-select":"_onIronSelect"},get contentElement(){for(var F=_.sg(this.$.content).getDistributedNodes(),W=0,E=F.length;W<E;W++)if(F[W].nodeType===Node.ELEMENT_NODE)return F[W]},toggle:function(){this.opened?
this.close():this.open()},
open:function(){this.disabled||this.$.dropdown.open()},
close:function(){this.$.dropdown.close()},
_onIronSelect:function(){this.ignoreSelect||this.close()},
_onIronActivate:function(){this.closeOnActivate&&this.close()},
_openedChanged:function(F,W){F?(this._dropdownContent=this.contentElement,this.fire("paper-dropdown-open")):W!=null&&this.fire("paper-dropdown-close")},
_disabledChanged:function(F){_.ZD._disabledChanged.apply(this,arguments);F&&this.opened&&this.close()},
__onIronOverlayCanceled:function(F){var W=this.$.trigger;_.sg(F.detail).path.indexOf(W)>-1&&F.preventDefault()}});
Object.keys(FW).forEach(function(F){gaB[F]=FW[F]});var Q$B=_.Hi.IronButtonState,zMB=(0,_.qH)(HTMLElement);
_.k3({_template:function(){if(RMz!==void 0)return RMz;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-dropdown-menu-light--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_dropdown_menu_light.tp.yt.paper.dropdown.menu.light.css.js--\x3e<tp-yt-paper-menu-button id="menuButton" vertical-align="[[verticalAlign]]" horizontal-align="[[horizontalAlign]]" vertical-offset="[[_computeMenuVerticalOffset(noLabelFloat, verticalOffset)]]" disabled="[[disabled]]" no-animations="[[noAnimations]]" on-iron-select="_onIronSelect" on-iron-deselect="_onIronDeselect" opened="{{opened}}" close-on-activate="" allow-outside-scroll="[[allowOutsideScroll]]" class="style-scope tp-yt-paper-dropdown-menu-light">\n  \n  <div id="dropdown-trigger" class="dropdown-trigger style-scope tp-yt-paper-dropdown-menu-light" slot="dropdown-trigger" role="button" tabindex="0" aria-haspopup="listbox">\n    <label class$="[[_computeLabelClass(noLabelFloat,alwaysFloatLabel,hasContent)]] style-scope tp-yt-paper-dropdown-menu-light" style-target="label">\n      [[label]]\n    </label>\n    <div id="input" tabindex="-1" style-target="input" class="style-scope tp-yt-paper-dropdown-menu-light">\u00a0</div>\n    <tp-yt-iron-icon icon="paper-dropdown-menu:arrow-drop-down" class="style-scope tp-yt-paper-dropdown-menu-light"></tp-yt-iron-icon>\n    <span class="error style-scope tp-yt-paper-dropdown-menu-light">[[errorMessage]]</span>\n  </div>\n  <slot id="content" name="dropdown-content" slot="dropdown-content" class="style-scope tp-yt-paper-dropdown-menu-light"></slot>\n</tp-yt-paper-menu-button>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;UvB===void 0&&(UvB=document.createElement("template"));var h=UvB;E.call(W,h.content.cloneNode(!0),F.content.firstChild);return RMz=F},
is:"tp-yt-paper-dropdown-menu-light",hostAttributes:{"style-target":"host"},behaviors:[Q$B,_.ZD,KH,_.Jj,_.OP],properties:{selectedItemLabel:{type:String,notify:!0,readOnly:!0},selectedItem:{type:Object,notify:!0,readOnly:!0},value:{type:String,notify:!0,observer:"_valueChanged"},label:{type:String},placeholder:{type:String},opened:{type:Boolean,notify:!0,value:!1,observer:"_openedChanged"},allowOutsideScroll:{type:Boolean,value:!1},noLabelFloat:{type:Boolean,value:!1,reflectToAttribute:!0},alwaysFloatLabel:{type:Boolean,
value:!1},noAnimations:{type:Boolean,value:!1},horizontalAlign:{type:String,value:"right"},verticalAlign:{type:String,value:"top"},verticalOffset:Number,hasContent:{type:Boolean,readOnly:!0}},listeners:{tap:"_onTap"},keyBindings:{"up down":"open",esc:"close"},observers:["_selectedItemChanged(selectedItem)"],_attachDom:function(F){var W=(0,_.IL)(this);W.attachShadow({mode:"open",delegatesFocus:!0,shadyUpgradeFragment:F});W.shadowRoot.appendChild(F);return zMB.prototype._attachDom.call(this,F)},
focus:function(){this.$["dropdown-trigger"].focus()},
attached:function(){var F=this.contentElement;F&&F.selectedItem&&this._setSelectedItem(F.selectedItem)},
get contentElement(){for(var F=_.sg(this.$.content).getDistributedNodes(),W=0,E=F.length;W<E;W++)if(F[W].nodeType===Node.ELEMENT_NODE)return F[W]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(F){this._setSelectedItem(F.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(F){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(F)===this&&this.open()},
_selectedItemChanged:function(F){var W="";F?W=F.label||F.getAttribute("label")||F.textContent.trim():W="";this.value=W;this._setSelectedItemLabel(W)},
_computeMenuVerticalOffset:function(F,W){return W?W:F?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var F=this.opened?"true":"false",W=this.contentElement;W&&W.setAttribute("aria-expanded",F)},
_computeLabelClass:function(F,W,E){var h="label";if(F)E&&(h+=" label-is-hidden");else if(E||W)h+=" label-is-floating";return h},
_valueChanged:function(){this.$.input&&this.$.input.textContent!==this.value&&(this.$.input.textContent=this.value);this._setHasContent(!!this.value);this.hasContent||(this.$.input.textContent="\u00a0")}});var tmu;var CAz;_.k3({is:"tp-yt-paper-icon-button",_template:function(){if(CAz!==void 0)return CAz;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-icon-button--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_icon_button.tp.yt.paper.icon.button.css.js--\x3e<tp-yt-iron-icon id="icon" src="[[src]]" icon="[[icon]]" alt$="[[alt]]" class="style-scope tp-yt-paper-icon-button"></tp-yt-iron-icon>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);var W=F.content,E=W.insertBefore;tmu===void 0&&(tmu=document.createElement("template"));var h=tmu;E.call(W,h.content.cloneNode(!0),F.content.firstChild);return CAz=F},
hostAttributes:{role:"button",tabindex:"0","style-target":"host"},behaviors:[_.GtU],properties:{src:{type:String},icon:{type:String},alt:{type:String,observer:"_altChanged"}},_altChanged:function(F,W){var E=this.getAttribute("aria-label");E&&W!=E||this.setAttribute("aria-label",F)}});var B9z;var vaB;_.WP=[mrM,_.ZD,{hostAttributes:{role:"option",tabindex:"0"}}];_.k3({_template:function(){if(vaB!==void 0)return vaB;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-icon-item--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_icon_item.tp.yt.paper.icon.item.css.js--\x3e<div id="contentIcon" class="content-icon style-scope tp-yt-paper-icon-item">\n  <slot name="item-icon" class="style-scope tp-yt-paper-icon-item"></slot>\n</div>\n<slot class="style-scope tp-yt-paper-icon-item"></slot>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);var W=F.content,E=W.insertBefore;B9z===void 0&&(B9z=document.createElement("template"));var h=B9z;E.call(W,h.content.cloneNode(!0),F.content.firstChild);return vaB=F},
is:"tp-yt-paper-icon-item",hostAttributes:{"style-target":"host"},behaviors:[_.WP]});var I6O;var cDe;var Dva={attached:function(){this.fire("addon-attached")},
update:function(){}};var xvH=1,kcp=1,ADi=1,s$B=[_.ZD,_.$5,{properties:{label:{type:String},value:{notify:!0,type:String},disabled:{type:Boolean,value:!1},invalid:{type:Boolean,value:!1,notify:!0},allowedPattern:{type:String},type:{type:String},list:{type:String},pattern:{type:String},required:{type:Boolean,value:!1},errorMessage:{type:String},charCounter:{type:Boolean,value:!1},noLabelFloat:{type:Boolean,value:!1},alwaysFloatLabel:{type:Boolean,value:!1},autoValidate:{type:Boolean,value:!1},validator:{type:String},autocomplete:{type:String,
value:"off"},autofocus:{type:Boolean,observer:"_autofocusChanged"},inputmode:{type:String},minlength:{type:Number},maxlength:{type:Number},min:{type:String},max:{type:String},step:{type:String},name:{type:String},placeholder:{type:String,value:""},readonly:{type:Boolean,value:!1},size:{type:Number},autocapitalize:{type:String,value:"none"},autocorrect:{type:String,value:"off"},autosave:{type:String},results:{type:Number},accept:{type:String},multiple:{type:Boolean},inputDir:{type:String},_typesThatHaveText:{type:Array},
_ariaDescribedBy:{type:String,value:""},_ariaLabelledBy:{type:String,value:""},_inputId:{type:String,value:""}},listeners:{"addon-attached":"_onAddonAttached"},keyBindings:{"shift+tab:keydown":"_onShiftTabDown"},hostAttributes:{tabindex:0},get inputElement(){this.$||(this.$={});this.$.input||(this._generateInputId(),this.$.input=this.$$("#"+this._inputId));return this.$.input},get _focusableElement(){return this.inputElement},created:function(){this._typesThatHaveText="date datetime datetime-local month time week file".split(" ")},
attached:function(){this._updateAriaLabelledBy();!NH&&this.inputElement&&this._typesThatHaveText.indexOf(this.inputElement.type)!==-1&&(this.alwaysFloatLabel=!0)},
_appendStringWithSpace:function(F,W){F?F=F+" "+W:F=W;return F},
_onAddonAttached:function(F){F=_.sg(F).rootTarget;if(F.id)this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,F.id);else{var W="paper-input-add-on-"+kcp++;F.id=W;this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,W)}},
validate:function(){return this.inputElement.validate()},
_focusBlurHandler:function(F){_.ZD._focusBlurHandler.call(this,F);this.focused&&!this._shiftTabPressed&&this._focusableElement&&this._focusableElement.focus()},
_onShiftTabDown:function(){var F=this.getAttribute("tabindex");this._shiftTabPressed=!0;this.setAttribute("tabindex","-1");this.async(function(){this.setAttribute("tabindex",F);this._shiftTabPressed=!1},1)},
_handleAutoValidate:function(){this.autoValidate&&this.validate()},
updateValueAndPreserveCaret:function(F){try{var W=this.inputElement.selectionStart;this.value=F;this.inputElement.selectionStart=W;this.inputElement.selectionEnd=W}catch(E){this.value=F}},
_computeAlwaysFloatLabel:function(F,W){return W||F},
_updateAriaLabelledBy:function(){var F=_.sg(this.root).querySelector("label");if(F){if(F.id)var W=F.id;else W="paper-input-label-"+xvH++,F.id=W;this._ariaLabelledBy=W}else this._ariaLabelledBy=""},
_generateInputId:function(){this._inputId&&this._inputId!==""||(this._inputId="input-"+ADi++)},
_onChange:function(F){this.shadowRoot&&this.fire(F.type,{sourceEvent:F},{node:this,bubbles:F.bubbles,cancelable:F.cancelable})},
_autofocusChanged:function(){if(this.autofocus&&this._focusableElement){var F=document.activeElement;F instanceof HTMLElement&&F!==document.body&&F!==document.documentElement||this._focusableElement.focus()}}}];var LcT;var qQM;_.k3({_template:function(){if(qQM!==void 0)return qQM;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-input-char-counter--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_input_char_counter.tp.yt.paper.input.char.counter.css.js--\x3e<span class="style-scope tp-yt-paper-input-char-counter">[[_charCounterStr]]</span>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);var W=F.content,E=W.insertBefore;LcT===void 0&&(LcT=document.createElement("template"));var h=LcT;E.call(W,h.content.cloneNode(!0),F.content.firstChild);return qQM=F},
is:"tp-yt-paper-input-char-counter",hostAttributes:{"style-target":"host"},behaviors:[Dva],properties:{_charCounterStr:{type:String,value:"0"}},update:function(F){if(F.inputElement){F.value=F.value||"";var W=F.value.toString().length.toString();F.inputElement.hasAttribute("maxlength")&&(W+="/"+F.inputElement.getAttribute("maxlength"));this._charCounterStr=W}}});var $v_;var ZIO;_.k3({_template:function(){if(ZIO!==void 0)return ZIO;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-input-container--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_input_container.tp.yt.paper.input.container.css.js--\x3e<div class="floated-label-placeholder style-scope tp-yt-paper-input-container" aria-hidden="true" hidden="[[noLabelFloat]]">\n  \u00a0\n</div>\n\n<div class="input-wrapper style-scope tp-yt-paper-input-container">\n  <span class="prefix style-scope tp-yt-paper-input-container"><slot name="prefix" class="style-scope tp-yt-paper-input-container"></slot></span>\n\n  <div class$="[[_computeInputContentClass(noLabelFloat,alwaysFloatLabel,focused,invalid,_inputHasContent)]] style-scope tp-yt-paper-input-container" id="labelAndInputContainer">\n    <slot name="label" class="style-scope tp-yt-paper-input-container"></slot>\n    <slot name="input" on-slotchange="onInputSlotChanged" class="style-scope tp-yt-paper-input-container"></slot><slot name="after-input" class="style-scope tp-yt-paper-input-container"></slot>\n  </div>\n\n  <span class="suffix style-scope tp-yt-paper-input-container"><slot name="suffix" class="style-scope tp-yt-paper-input-container"></slot></span>\n</div>\n\n<div class$="[[_computeUnderlineClass(focused,invalid)]] style-scope tp-yt-paper-input-container">\n  <div class="unfocused-line style-scope tp-yt-paper-input-container"></div>\n  <div class="focused-line style-scope tp-yt-paper-input-container"></div>\n</div>\n\n<div class$="[[_computeAddOnContentClass(focused,invalid)]] style-scope tp-yt-paper-input-container">\n  <slot name="add-on" class="style-scope tp-yt-paper-input-container"></slot>\n</div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);var W=F.content,E=W.insertBefore;$v_===void 0&&($v_=document.createElement("template"));var h=$v_;E.call(W,h.content.cloneNode(!0),F.content.firstChild);return ZIO=F},
is:"tp-yt-paper-input-container",hostAttributes:{"style-target":"host"},properties:{noLabelFloat:{type:Boolean,value:!1},alwaysFloatLabel:{type:Boolean,value:!1},attrForValue:{type:String,value:"bind-value"},autoValidate:{type:Boolean,value:!1},invalid:{observer:"_invalidChanged",type:Boolean,value:!1},focused:{readOnly:!0,type:Boolean,value:!1,notify:!0},noUnfloatedLabelError:{type:Boolean,value:!1},_addons:{type:Array},_inputHasContent:{type:Boolean,value:!1},_inputSelector:{type:String,value:"input,tp-yt-iron-input,textarea,.paper-input-input"},
_boundOnFocus:{type:Function,value:function(){return this._onFocus.bind(this)}},
_boundOnBlur:{type:Function,value:function(){return this._onBlur.bind(this)}},
_boundOnInput:{type:Function,value:function(){return this._onInput.bind(this)}},
_boundValueChanged:{type:Function,value:function(){return this._onValueChanged.bind(this)}}},
listeners:{"addon-attached":"_onAddonAttached","iron-input-validate":"_onIronInputValidate"},get _valueChangedEvent(){return this.attrForValue+"-changed"},get _propertyForValue(){return RL(this.attrForValue)},get _inputElement(){return _.sg(this).querySelector(this._inputSelector)},get _inputElementValue(){return this._inputElement[this._propertyForValue]||this._inputElement.value},ready:function(){this.__isFirstValueUpdate=!0;this._addons||(this._addons=[]);this.addEventListener("focus",this._boundOnFocus,
!0);this.addEventListener("blur",this._boundOnBlur,!0)},
attached:function(){this.attrForValue||this.addEventListener("input",this._onInput);this.initializeInput()},
onInputSlotChanged:function(){this._addons||(this._addons=[]);this.attrForValue&&this._inputElement.addEventListener(this._valueChangedEvent,this._boundValueChanged);this.initializeInput()},
initializeInput:function(){this._inputElement&&(this._inputElementValue&&this._inputElementValue!=""?this._handleValueAndAutoValidate(this._inputElement):this._handleValue(this._inputElement))},
_onAddonAttached:function(F){this._addons||(this._addons=[]);F=F.target;this._addons.indexOf(F)===-1&&(this._addons.push(F),this.isAttached&&this._handleValue(this._inputElement))},
_onFocus:function(){this._setFocused(!0)},
_onBlur:function(){this._setFocused(!1);this._handleValueAndAutoValidate(this._inputElement)},
_onInput:function(F){this._handleValueAndAutoValidate(F.target)},
_onValueChanged:function(F){var W=F.target;if(this.__isFirstValueUpdate&&(this.__isFirstValueUpdate=!1,W.value===void 0||W.value===""))return;this._handleValueAndAutoValidate(F.target)},
_handleValue:function(F){var W=this._inputElementValue;W||W===0||F.type==="number"&&!F.checkValidity()?this._inputHasContent=!0:this._inputHasContent=!1;this.updateAddons({inputElement:F,value:W,invalid:this.invalid})},
_handleValueAndAutoValidate:function(F){this.autoValidate&&F&&(this.invalid=!(F.validate?F.validate(this._inputElementValue):F.checkValidity()));this._handleValue(F)},
_onIronInputValidate:function(){this.invalid=this._inputElement.invalid},
_invalidChanged:function(){this._addons&&this.updateAddons({invalid:this.invalid})},
updateAddons:function(F){if(this._addons)for(var W,E=0;W=this._addons[E];E++)W.update(F)},
_computeInputContentClass:function(F,W,E,h,d){var V="input-content";F?(d&&(V+=" label-is-hidden"),h&&!this.noUnfloatedLabelError&&(V+=" is-invalid")):(F=this.querySelector("label"),W||d?(V+=" label-is-floating",this.$.labelAndInputContainer.style.position="static",h?V+=" is-invalid":E&&(V+=" label-is-highlighted")):(F&&(this.$.labelAndInputContainer.style.position="relative"),h&&!this.noUnfloatedLabelError&&(V+=" is-invalid")));E&&(V+=" focused");return V},
_computeUnderlineClass:function(F,W){var E="underline";W?E+=" is-invalid":F&&(E+=" is-highlighted");return E},
_computeAddOnContentClass:function(F,W){var E="add-on-content";W?E+=" is-invalid":F&&(E+=" is-highlighted");return E}});var XHe;var HIX;_.k3({_template:function(){if(HIX!==void 0)return HIX;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-input-error--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_input_error.tp.yt.paper.input.error.css.js--\x3e\n<div id="a11yWrapper" class="style-scope tp-yt-paper-input-error">\n  <slot class="style-scope tp-yt-paper-input-error"></slot>\n</div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);var W=F.content,E=W.insertBefore;XHe===void 0&&(XHe=document.createElement("template"));var h=XHe;E.call(W,h.content.cloneNode(!0),F.content.firstChild);return HIX=F},
is:"tp-yt-paper-input-error",hostAttributes:{"style-target":"host"},behaviors:[Dva],properties:{invalid:{readOnly:!0,reflectToAttribute:!0,type:Boolean}},update:function(F){this._setInvalid(F.invalid)}});_.k3({is:"tp-yt-paper-input",_template:function(){if(cDe!==void 0)return cDe;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-input--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_input.tp.yt.paper.input.css.js--\x3e<tp-yt-paper-input-container id="container" no-label-float="[[noLabelFloat]]" always-float-label="[[_computeAlwaysFloatLabel(alwaysFloatLabel,placeholder)]]" auto-validate$="[[autoValidate]]" disabled$="[[disabled]]" invalid="[[invalid]]" no-unfloated-label-error="[[noUnfloatedLabelError]]" class="style-scope tp-yt-paper-input">\n  <slot name="prefix" slot="prefix" class="style-scope tp-yt-paper-input"></slot>\n\n  <label hidden$="[[!label]]" aria-hidden="true" for$="[[_inputId]]" slot="label" class="style-scope tp-yt-paper-input">[[label]]</label>\n\n  \n  <tp-yt-iron-input bind-value="{{value}}" slot="input" class="input-element style-scope tp-yt-paper-input" id$="[[_inputId]]" maxlength$="[[maxlength]]" allowed-pattern="[[allowedPattern]]" invalid="{{invalid}}" validator="[[validator]]">\n    <input aria-labelledby$="[[_ariaLabelledBy]]" aria-describedby$="[[_ariaDescribedBy]]" disabled$="[[disabled]]" title$="[[title]]" type$="[[type]]" pattern$="[[pattern]]" required$="[[required]]" autocomplete$="[[autocomplete]]" autofocus$="[[autofocus]]" inputmode$="[[inputmode]]" minlength$="[[minlength]]" maxlength$="[[maxlength]]" min$="[[min]]" max$="[[max]]" step$="[[step]]" name$="[[name]]" placeholder$="[[placeholder]]" readonly$="[[readonly]]" list$="[[list]]" size$="[[size]]" autocapitalize$="[[autocapitalize]]" autocorrect$="[[autocorrect]]" on-change="_onChange" tabindex$="[[tabIndex]]" autosave$="[[autosave]]" results$="[[results]]" accept$="[[accept]]" multiple$="[[multiple]]" role$="[[inputRole]]" aria-haspopup$="[[inputAriaHaspopup]]" dir$="[[inputDir]]" class="style-scope tp-yt-paper-input">\n  </tp-yt-iron-input>\n\n  <slot name="suffix" slot="suffix" class="style-scope tp-yt-paper-input"></slot>\n\n  <template is="dom-if" if="[[errorMessage]]" class="style-scope tp-yt-paper-input">\n    <tp-yt-paper-input-error aria-live="assertive" slot="add-on" class="style-scope tp-yt-paper-input">[[errorMessage]]</tp-yt-paper-input-error>\n  </template>\n\n  <template is="dom-if" if="[[charCounter]]" class="style-scope tp-yt-paper-input">\n    <tp-yt-paper-input-char-counter slot="add-on" class="style-scope tp-yt-paper-input"></tp-yt-paper-input-char-counter>\n  </template>\n</tp-yt-paper-input-container>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);var W=F.content,E=W.insertBefore;I6O===void 0&&(I6O=document.createElement("template"));var h=I6O;E.call(W,h.content.cloneNode(!0),F.content.firstChild);return cDe=F},
behaviors:[s$B,_.Jj],properties:{value:{type:String},noUnfloatedLabelError:{type:Boolean,value:!1},inputRole:{type:String,value:void 0},inputAriaHaspopup:{type:String,value:void 0}},get _focusableElement(){return this.inputElement._inputElement},listeners:{"iron-input-ready":"_onIronInputReady"},_onIronInputReady:function(){this.$.nativeInput||(this.$.nativeInput=this.$$("input"));this.inputElement&&this._typesThatHaveText.indexOf(this.$.nativeInput.type)!==-1&&(this.alwaysFloatLabel=!0);this.inputElement.bindValue&&
this.$.container._handleValueAndAutoValidate(this.inputElement)}});var PAu;var JDH;_.k3({_template:function(){if(JDH!==void 0)return JDH;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-item--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_item.tp.yt.paper.item.css.js--\x3e<slot class="style-scope tp-yt-paper-item"></slot>\n');F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);var W=
F.content,E=W.insertBefore;PAu===void 0&&(PAu=document.createElement("template"));var h=PAu;E.call(W,h.content.cloneNode(!0),F.content.firstChild);return JDH=F},
is:"tp-yt-paper-item",hostAttributes:{"style-target":"host"},behaviors:[_.WP]});var a6e;var f6p;_.k3({_template:function(){if(f6p!==void 0)return f6p;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-item-body--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_item_body.tp.yt.paper.item.body.css.js--\x3e<slot class="style-scope tp-yt-paper-item-body"></slot>\n');F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);
var W=F.content,E=W.insertBefore;a6e===void 0&&(a6e=document.createElement("template"));var h=a6e;E.call(W,h.content.cloneNode(!0),F.content.firstChild);return f6p=F},
is:"tp-yt-paper-item-body"});var OIM;var bIH;var l6i=function(){};
_.N=l6i.prototype;_.N.indexOf=function(){};
_.N.selectPrevious=function(){};
_.N.selectNext=function(){};
_.N.selectIndex=function(){};
_.N.forceSynchronousItemUpdate=function(){};
_.N._checkFallback=function(){};
_.N._addListener=function(){};
_.N._removeListener=function(){};
_.N._activateEventChanged=function(){};
_.N._updateItems=function(){};
_.N._selectSelected=function(){};
_.N._filterItem=function(){};
_.N._valueToItem=function(){};
_.N._valueToIndex=function(){};
_.N._indexToValue=function(){};
_.N._valueForItem=function(){};
_.N._observeItems=function(){};
_.N._itemActivate=function(){};
_.N.multiChanged=function(){};
_.N._updateAttrForSelected=function(){};
_.N._updateSelected=function(){};
_.N._selectMulti=function(){};
_.N._selectionChange=function(){};
_.N._toggleSelected=function(){};
_.N._valuesToItems=function(){};
_.N.registered=function(){};
_.N.addOwnKeyBinding=function(){};
_.N.removeOwnKeyBindings=function(){};
_.N.keyboardEventMatchesKeys=function(){};
_.N._collectKeyBindings=function(){};
_.N._prepKeyBindings=function(){};
_.N._addKeyBinding=function(){};
_.N._resetKeyEventListeners=function(){};
_.N._listenKeyEventListeners=function(){};
_.N._unlistenKeyEventListeners=function(){};
_.N._onKeyBindingEvent=function(){};
_.N._triggerKeyHandler=function(){};
_.N.select=function(){};
_.N._resetTabindices=function(){};
_.N._updateMultiselectable=function(){};
_.N._focusWithKeyboardEvent=function(){};
_.N._clearSearchText=function(){};
_.N._focusPrevious=function(){};
_.N._focusNext=function(){};
_.N._applySelection=function(){};
_.N._focusedItemChanged=function(){};
_.N._onIronItemsChanged=function(){};
_.N._onShiftTabDown=function(){};
_.N._onFocus=function(){};
_.N._onUpKey=function(){};
_.N._onDownKey=function(){};
_.N._onEscKey=function(){};
_.N._onKeydown=function(){};
_.N._activateHandler=function(){};
_.N._disabledChanged=function(){};
_.N._setSelectedItem=function(){};
_.N._setItems=function(){};
_.N._setSelectedItems=function(){};
_.N._setFocusedItem=function(){};
l6i=_.k3({_template:function(){if(bIH!==void 0)return bIH;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-listbox--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_listbox.tp.yt.paper.listbox.css.js--\x3e<slot class="style-scope tp-yt-paper-listbox"></slot>\n');F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);
var W=F.content,E=W.insertBefore;OIM===void 0&&(OIM=document.createElement("template"));var h=OIM;E.call(W,h.content.cloneNode(!0),F.content.firstChild);return bIH=F},
is:"tp-yt-paper-listbox",behaviors:[NYB],hostAttributes:{role:"listbox"}});var naM;var yDT;var j$_={properties:{active:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"__activeChanged"},alt:{type:String,value:"loading",observer:"__altChanged"},__coolingDown:{type:Boolean,value:!1}},__computeContainerClasses:function(F,W){return[F||W?"active":"",W?"cooldown":""].join(" ")},
__activeChanged:function(F,W){this.__setAriaHidden(!F);this.__coolingDown=!F&&W},
__altChanged:function(F){this.setAttribute("aria-label",F||"loading")},
__setAriaHidden:function(F){F?this.setAttribute("aria-hidden","true"):this.removeAttribute("aria-hidden")},
__reset:function(){this.__coolingDown=this.active=!1}};_.k3({_template:function(){if(yDT!==void 0)return yDT;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-spinner--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_spinner.tp.yt.paper.spinner.css.js--\x3e<div id="spinnerContainer" class-name="[[__computeContainerClasses(active, __coolingDown)]]" on-animationend="__reset" on-webkit-animation-end="__reset" class="style-scope tp-yt-paper-spinner">\n  <div class="spinner-layer layer-1 style-scope tp-yt-paper-spinner">\n    <div class="circle-clipper left style-scope tp-yt-paper-spinner">\n      <div class="circle style-scope tp-yt-paper-spinner"></div>\n    </div>\n    <div class="circle-clipper right style-scope tp-yt-paper-spinner">\n      <div class="circle style-scope tp-yt-paper-spinner"></div>\n    </div>\n  </div>\n\n  <div class="spinner-layer layer-2 style-scope tp-yt-paper-spinner">\n    <div class="circle-clipper left style-scope tp-yt-paper-spinner">\n      <div class="circle style-scope tp-yt-paper-spinner"></div>\n    </div>\n    <div class="circle-clipper right style-scope tp-yt-paper-spinner">\n      <div class="circle style-scope tp-yt-paper-spinner"></div>\n    </div>\n  </div>\n\n  <div class="spinner-layer layer-3 style-scope tp-yt-paper-spinner">\n    <div class="circle-clipper left style-scope tp-yt-paper-spinner">\n      <div class="circle style-scope tp-yt-paper-spinner"></div>\n    </div>\n    <div class="circle-clipper right style-scope tp-yt-paper-spinner">\n      <div class="circle style-scope tp-yt-paper-spinner"></div>\n    </div>\n  </div>\n\n  <div class="spinner-layer layer-4 style-scope tp-yt-paper-spinner">\n    <div class="circle-clipper left style-scope tp-yt-paper-spinner">\n      <div class="circle style-scope tp-yt-paper-spinner"></div>\n    </div>\n    <div class="circle-clipper right style-scope tp-yt-paper-spinner">\n      <div class="circle style-scope tp-yt-paper-spinner"></div>\n    </div>\n  </div>\n</div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);var W=F.content,E=W.insertBefore;naM===void 0&&(naM=document.createElement("template"));var h=naM;E.call(W,h.content.cloneNode(!0),F.content.firstChild);return yDT=F},
is:"tp-yt-paper-spinner",behaviors:[j$_]});var iIT;var rDO;_.k3({_template:function(){if(rDO!==void 0)return rDO;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-spinner-lite--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_spinner_lite.tp.yt.paper.spinner.lite.css.js--\x3e<div id="spinnerContainer" class-name="[[__computeContainerClasses(active, __coolingDown)]]" on-animationend="__reset" on-webkit-animation-end="__reset" class="style-scope tp-yt-paper-spinner-lite">\n  <div class="spinner-layer style-scope tp-yt-paper-spinner-lite">\n    <div class="circle-clipper left style-scope tp-yt-paper-spinner-lite">\n      <div class="circle style-scope tp-yt-paper-spinner-lite"></div>\n    </div>\n    <div class="circle-clipper right style-scope tp-yt-paper-spinner-lite">\n      <div class="circle style-scope tp-yt-paper-spinner-lite"></div>\n    </div>\n  </div>\n</div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);var W=F.content,E=W.insertBefore;iIT===void 0&&(iIT=document.createElement("template"));var h=iIT;E.call(W,h.content.cloneNode(!0),F.content.firstChild);return rDO=F},
is:"tp-yt-paper-spinner-lite",behaviors:[j$_]});var T9e;var oaT;_.k3({_template:function(){if(oaT!==void 0)return oaT;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-tab--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_tab.tp.yt.paper.tab.css.js--\x3e<div class="tab-content style-scope tp-yt-paper-tab" style-target="tab-content">\n  <slot class="style-scope tp-yt-paper-tab"></slot>\n</div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);var W=F.content,E=W.insertBefore;T9e===void 0&&(T9e=document.createElement("template"));var h=T9e;E.call(W,h.content.cloneNode(!0),F.content.firstChild);return oaT=F},
is:"tp-yt-paper-tab",behaviors:[_.ZD,_.Hi.IronButtonState,KH],properties:{link:{type:Boolean,value:!1,reflectToAttribute:!0},noBoldOnFocus:{type:Boolean,value:!1,reflectToAttribute:!0}},hostAttributes:{role:"tab","style-target":"host"},listeners:{down:"_updateNoink",tap:"_onTap"},attached:function(){this._updateNoink()},
get _parentNoink(){var F=_.sg(this).parentNode;return!!F&&!!F.noink},_updateNoink:function(){this.noink=!!this.noink||!!this._parentNoink},
_onTap:function(F){if(this.link){var W=this.queryEffectiveChildren("a");W&&F.target!==W&&W.click()}}});var Gci;var YQM;var wHi=_.Fc(['<iron-iconset-svg name="paper-tabs" size="24">\n<svg><defs>\n<g id="chevron-left"><path d="M14.6,18.4L8.3,12l6.4-6.4l0.7,0.7L9.7,12l5.6,5.6L14.6,18.4z"/></g>\n<g id="chevron-right"><path d="M9.4,18.4l-0.7-0.7l5.6-5.6L8.6,6.4l0.7-0.7l6.4,6.4L9.4,18.4z"/></g>\n</defs></svg>\n</iron-iconset-svg>']),uY_=_.hse(wHi);document.head.appendChild(uY_.content);_.k3({_template:function(){if(YQM!==void 0)return YQM;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-tabs--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_tabs.tp.yt.paper.tabs.css.js--\x3e<tp-yt-paper-icon-button id="left" icon="paper-tabs:chevron-left" alt="[[altPrevious]]" class$="[[_computeScrollButtonClass(_leftHidden, scrollable, hideScrollButtons, removeIdleScrollButtons)]] style-scope tp-yt-paper-tabs" on-up="_onScrollButtonUp" on-down="_onLeftScrollButtonDown" tabindex="-1" disabled="[[_leftHidden]]"></tp-yt-paper-icon-button>\n\n<div id="tabsContainer" on-track="_scroll" on-down="_down" class="style-scope tp-yt-paper-tabs">\n  <div id="tabsContent" style-target="content" class$="[[_computeTabsContentClass(scrollable, fitContainer)]] style-scope tp-yt-paper-tabs">\n    <div id="selectionBar" style-target="selection-bar" class$="[[_computeSelectionBarClass(noBar, alignBottom)]] style-scope tp-yt-paper-tabs" on-transitionend="_onBarTransitionEnd"></div>\n    <slot class="style-scope tp-yt-paper-tabs"></slot>\n  </div>\n</div>\n\n<tp-yt-paper-icon-button id="right" icon="paper-tabs:chevron-right" alt="[[altNext]]" class$="[[_computeScrollButtonClass(_rightHidden, scrollable, hideScrollButtons, removeIdleScrollButtons)]] style-scope tp-yt-paper-tabs" on-up="_onScrollButtonUp" on-down="_onRightScrollButtonDown" tabindex="-1" disabled="[[_rightHidden]]"></tp-yt-paper-icon-button>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);var W=F.content,E=W.insertBefore;Gci===void 0&&(Gci=document.createElement("template"));var h=Gci;E.call(W,h.content.cloneNode(!0),F.content.firstChild);return YQM=F},
is:"tp-yt-paper-tabs",behaviors:[_.lB,_.Uje],properties:{noink:{type:Boolean,value:!1,observer:"_noinkChanged"},noBar:{type:Boolean,value:!1},noSlide:{type:Boolean,value:!1},scrollable:{type:Boolean,value:!1},fitContainer:{type:Boolean,value:!1},disableDrag:{type:Boolean,value:!1},hideScrollButtons:{type:Boolean,value:!1},removeIdleScrollButtons:{type:Boolean,value:!1},alignBottom:{type:Boolean,value:!1},selectable:{type:String,value:"tp-yt-paper-tab"},autoselect:{type:Boolean,value:!1},autoselectDelay:{type:Number,
value:0},altNext:{type:String,value:""},altPrevious:{type:String,value:""},_step:{type:Number,value:10},_holdDelay:{type:Number,value:1},_leftHidden:{type:Boolean,value:!1},_rightHidden:{type:Boolean,value:!1},_previousTab:{type:Object}},hostAttributes:{role:"tablist"},listeners:{"iron-resize":"_onTabSizingChanged","iron-items-changed":"_onTabSizingChanged","iron-select":"_onIronSelect","iron-deselect":"_onIronDeselect"},keyBindings:{"left:keyup right:keyup":"_onArrowKeyup"},created:function(){this._holdJob=
null;this._pendingActivationTimeout=this._pendingActivationItem=void 0;this._bindDelayedActivationHandler=this._delayedActivationHandler.bind(this);this.addEventListener("blur",this._onBlurCapture.bind(this),!0);this._rightHidden=this._leftHidden=this.hideScrollButtons},
ready:function(){this.setScrollDirection("y",this.$.tabsContainer)},
detached:function(){this._cancelPendingActivation()},
_noinkChanged:function(F){_.sg(this).querySelectorAll("tp-yt-paper-tab").forEach(F?this._setNoinkAttribute:this._removeNoinkAttribute)},
_setNoinkAttribute:function(F){F.setAttribute("noink","")},
_removeNoinkAttribute:function(F){F.removeAttribute("noink")},
_computeScrollButtonClass:function(F,W,E,h){return!W||E?"hidden":F?h?"hidden":"not-visible":""},
_computeTabsContentClass:function(F,W){var E="tabs-content";F&&(E+=" scrollable");if(!F||W)E+=" fit-container";return E},
_computeSelectionBarClass:function(F,W){var E="selection-bar";F?E+=" hidden":W&&(E+=" align-bottom");return E},
_onTabSizingChanged:function(){this.debounce("_onTabSizingChanged",function(){this._scroll();this._tabChanged(this.selectedItem)},10)},
_makeString:function(F){return""+F},
_onIronSelect:function(F){this._tabChanged(F.detail.item,this._previousTab);this._previousTab=F.detail.item;this.cancelDebouncer("tab-changed")},
_onIronDeselect:function(){this.debounce("tab-changed",function(){this._tabChanged(null,this._previousTab);this._previousTab=null},1)},
_activateHandler:function(){this._cancelPendingActivation();_.bB._activateHandler.apply(this,arguments)},
_scheduleActivation:function(F,W){this._pendingActivationItem=F;this._pendingActivationTimeout=this.async(this._bindDelayedActivationHandler,W)},
_delayedActivationHandler:function(){var F=this._pendingActivationItem;this._pendingActivationTimeout=this._pendingActivationItem=void 0;F.fire(this.activateEvent,null,{bubbles:!0,cancelable:!0})},
_cancelPendingActivation:function(){this._pendingActivationTimeout!==void 0&&(this.cancelAsync(this._pendingActivationTimeout),this._pendingActivationTimeout=this._pendingActivationItem=void 0)},
_onArrowKeyup:function(){this.autoselect&&this._scheduleActivation(this.focusedItem,this.autoselectDelay)},
_onBlurCapture:function(F){F.target===this._pendingActivationItem&&this._cancelPendingActivation()},
get _tabContainerScrollSize(){return Math.max(0,this.$.tabsContainer.scrollWidth-this.$.tabsContainer.offsetWidth)},_scroll:function(F,W){this.scrollable&&this._affectScroll(W&&-W.ddx||0)},
_down:function(){this.async(function(){this._defaultFocusAsync&&(this.cancelAsync(this._defaultFocusAsync),this._defaultFocusAsync=null)},1)},
_affectScroll:function(F){this.$.tabsContainer.scrollLeft+=F;F=this.$.tabsContainer.scrollLeft;this._leftHidden=F===0||this.hideScrollButtons;this._rightHidden=F===this._tabContainerScrollSize||this.hideScrollButtons},
_onLeftScrollButtonDown:function(){this._scrollToLeft();this._holdJob=setInterval(this._scrollToLeft.bind(this),this._holdDelay)},
_onRightScrollButtonDown:function(){this._scrollToRight();this._holdJob=setInterval(this._scrollToRight.bind(this),this._holdDelay)},
_onScrollButtonUp:function(){clearInterval(this._holdJob);this._holdJob=null},
_scrollToLeft:function(){this._affectScroll(-this._step)},
_scrollToRight:function(){this._affectScroll(this._step)},
_tabChanged:function(F,W){if(F){var E=this.$.tabsContent.getBoundingClientRect(),h=E.width,d=F.getBoundingClientRect();E=d.left-E.left;this._pos={width:this._calcPercent(d.width,h),left:this._calcPercent(E,h)};if(this.noSlide||W==null)this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(this._pos.width,this._pos.left);else{var V=W.getBoundingClientRect();W=this.items.indexOf(W);F=this.items.indexOf(F);this.$.selectionBar.classList.add("expand");
F=W<F;this._isRTL&&(F=!F);F?this._positionBar(this._calcPercent(d.left+d.width-V.left,h)-5,this._left):this._positionBar(this._calcPercent(V.left+V.width-d.left,h)-5,this._calcPercent(E,h)+5);this.scrollable&&this._scrollToSelectedIfNeeded(d.width,E)}}else this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(0,0)},
_scrollToSelectedIfNeeded:function(F,W){W-=this.$.tabsContainer.scrollLeft;W<0?this.$.tabsContainer.scrollLeft+=W:(W+=F-this.$.tabsContainer.offsetWidth,W>0&&(this.$.tabsContainer.scrollLeft+=W))},
_calcPercent:function(F,W){return 100*F/W},
_positionBar:function(F,W){F=F||0;W=W||0;this._width=F;this._left=W;this.transform("translateX("+W+"%) scaleX("+F/100+")",this.$.selectionBar)},
_onBarTransitionEnd:function(){var F=this.$.selectionBar.classList;F.contains("expand")?(F.remove("expand"),F.add("contract"),this._positionBar(this._pos.width,this._pos.left)):F.contains("contract")&&F.remove("contract")}});var SQu;var pHc;_.k3({_template:function(){if(pHc!==void 0)return pHc;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-textarea--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_textarea.tp.yt.paper.textarea.css.js--\x3e<tp-yt-paper-input-container no-label-float$="[[noLabelFloat]]" always-float-label="[[_computeAlwaysFloatLabel(alwaysFloatLabel,placeholder)]]" auto-validate$="[[autoValidate]]" disabled$="[[disabled]]" invalid="[[invalid]]" no-unfloated-label-error="[[noUnfloatedLabelError]]" class="style-scope tp-yt-paper-textarea">\n  <label hidden$="[[!label]]" aria-hidden="true" for$="[[_inputId]]" slot="label" class="style-scope tp-yt-paper-textarea">[[label]]</label>\n\n  <tp-yt-iron-autogrow-textarea class="paper-input-input style-scope tp-yt-paper-textarea" slot="input" id$="[[_inputId]]" aria-labelledby$="[[_ariaLabelledBy]]" aria-describedby$="[[_ariaDescribedBy]]" bind-value="{{value}}" invalid="{{invalid}}" validator$="[[validator]]" disabled$="[[disabled]]" autocomplete$="[[autocomplete]]" autofocus$="[[autofocus]]" inputmode$="[[inputmode]]" name$="[[name]]" placeholder$="[[placeholder]]" readonly$="[[readonly]]" required$="[[required]]" minlength$="[[minlength]]" maxlength$="[[maxlength]]" autocapitalize$="[[autocapitalize]]" rows$="[[rows]]" max-rows$="[[maxRows]]" on-change="_onChange"></tp-yt-iron-autogrow-textarea>\n\n  <template is="dom-if" if="[[errorMessage]]" class="style-scope tp-yt-paper-textarea">\n    <tp-yt-paper-input-error aria-live="assertive" slot="add-on" class="style-scope tp-yt-paper-textarea">[[errorMessage]]</tp-yt-paper-input-error>\n  </template>\n\n  <template is="dom-if" if="[[charCounter]]" class="style-scope tp-yt-paper-textarea">\n    <tp-yt-paper-input-char-counter slot="add-on" class="style-scope tp-yt-paper-textarea"></tp-yt-paper-input-char-counter>\n  </template>\n</tp-yt-paper-input-container>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);var W=F.content,E=W.insertBefore;SQu===void 0&&(SQu=document.createElement("template"));var h=SQu;E.call(W,h.content.cloneNode(!0),F.content.firstChild);return pHc=F},
is:"tp-yt-paper-textarea",behaviors:[s$B,_.Jj],properties:{_ariaLabelledBy:{observer:"_ariaLabelledByChanged",type:String},_ariaDescribedBy:{observer:"_ariaDescribedByChanged",type:String},value:{type:String},rows:{type:Number,value:1},maxRows:{type:Number,value:0},noUnfloatedLabelError:{type:Boolean,value:!1}},get selectionStart(){return this.$.input.textarea.selectionStart},set selectionStart(F){this.$.input.textarea.selectionStart=F},get selectionEnd(){return this.$.input.textarea.selectionEnd},
set selectionEnd(F){this.$.input.textarea.selectionEnd=F},_ariaLabelledByChanged:function(F){this._focusableElement.setAttribute("aria-labelledby",F)},
_ariaDescribedByChanged:function(F){this._focusableElement.setAttribute("aria-describedby",F)},
get _focusableElement(){return this.inputElement.textarea}});var mvM;var Kcp;/*

Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
part of the polymer project is also subject to an additional IP rights grant
found at http://polymer.github.io/PATENTS.txt SPDX-License-Identifier:
BSD-3-Clause
*/
var FEO=function(){};
_.N=FEO.prototype;_.N.addOwnKeyBinding=function(){};
_.N.removeOwnKeyBindings=function(){};
_.N.keyboardEventMatchesKeys=function(){};
_.N._collectKeyBindings=function(){};
_.N._prepKeyBindings=function(){};
_.N._addKeyBinding=function(){};
_.N._resetKeyEventListeners=function(){};
_.N._listenKeyEventListeners=function(){};
_.N._unlistenKeyEventListeners=function(){};
_.N._onKeyBindingEvent=function(){};
_.N._triggerKeyHandler=function(){};
_.N._tapHandler=function(){};
_.N._focusChanged=function(){};
_.N._detectKeyboardFocus=function(){};
_.N._userActivate=function(){};
_.N._upHandler=function(){};
_.N._spaceKeyDownHandler=function(){};
_.N._spaceKeyUpHandler=function(){};
_.N._asyncClick=function(){};
_.N._pressedChanged=function(){};
_.N._ariaActiveAttributeChanged=function(){};
_.N._activeChanged=function(){};
_.N._controlStateChanged=function(){};
_.N._changedButtonState=function(){};
_.N._focusBlurHandler=function(){};
_.N._disabledChanged=function(){};
_.N._changedControlState=function(){};
_.N._downHandler=function(){};
_.N.ensureRipple=function(){};
_.N.getRipple=function(){};
_.N.hasRipple=function(){};
_.N._noinkChanged=function(){};
_.N._focusedChanged=function(){};
_.N.registered=function(){};
_.N._invalidChanged=function(){};
_.N.hasValidator=function(){};
_.N.validate=function(){};
_.N._getValidity=function(){};
_.N._requiredChanged=function(){};
_.N._valueChanged=function(){};
_.N._checkedChanged=function(){};
_.N._buttonStateChanged=function(){};
_.N._setPressed=function(){};
_.N._setPointerDown=function(){};
_.N._setReceivedFocusFromKeyboard=function(){};
_.N._setFocused=function(){};
FEO=_.k3({is:"tp-yt-paper-toggle-button",_template:function(){if(Kcp!==void 0)return Kcp;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-toggle-button--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_toggle_button.tp.yt.paper.toggle.button.css.js--\x3e<div class="toggle-container style-scope tp-yt-paper-toggle-button">\n  <div id="toggleBar" class="toggle-bar style-scope tp-yt-paper-toggle-button"></div>\n  <div id="toggleButton" class="toggle-button style-scope tp-yt-paper-toggle-button"></div>\n</div>\n\n<div class="toggle-label style-scope tp-yt-paper-toggle-button"><slot class="style-scope tp-yt-paper-toggle-button"></slot></div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);var W=F.content,E=W.insertBefore;mvM===void 0&&(mvM=document.createElement("template"));var h=mvM;E.call(W,h.content.cloneNode(!0),F.content.firstChild);return Kcp=F},
behaviors:[_.Y8B],hostAttributes:{role:"button","aria-pressed":"false",tabindex:0},properties:{ironLabelTarget:{type:Boolean,reflectToAttribute:!0}},listeners:{track:"_ontrack"},__calculateIsRtl:function(){return window.getComputedStyle(this).direction==="rtl"},
attached:function(){this.__calculateIsRtl()&&this.setAttribute("dir","rtl");_.wT(this,function(){_.Jt(this,"pan-y")})},
_ontrack:function(F){F=F.detail;F.state==="start"?this._trackStart(F):F.state==="track"?this._trackMove(F):F.state==="end"&&this._trackEnd(F)},
_trackStart:function(){this._isRtl=this.__calculateIsRtl();this._width=this.$.toggleBar.offsetWidth/2;this._trackChecked=this.checked;this.$.toggleButton.classList.add("dragging")},
_trackMove:function(F){F=F.dx;this._x=this._isRtl?Math.max(-this._width,Math.min(0,this._trackChecked?-this._width+F:F)):Math.min(this._width,Math.max(0,this._trackChecked?this._width+F:F));this.translate3d(this._x+"px",0,0,this.$.toggleButton);this._isRtl?this._userActivate(this._x<-this._width/2):this._userActivate(this._x>this._width/2)},
_trackEnd:function(){this.$.toggleButton.classList.remove("dragging");this.transform("",this.$.toggleButton)},
_createRipple:function(){this._rippleContainer=this.$.toggleButton;var F=KH._createRipple();F.id="ink";F.setAttribute("recenters","");F.classList.add("circle","toggle-ink");return F}});var WEU;var EPi;_.k3({_template:function(){if(EPi!==void 0)return EPi;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-tooltip--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_tooltip.tp.yt.paper.tooltip.css.js--\x3e<div id="tooltip" class="hidden style-scope tp-yt-paper-tooltip" style-target="tooltip">\n  <slot class="style-scope tp-yt-paper-tooltip"></slot>\n</div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);var W=F.content,E=W.insertBefore;WEU===void 0&&(WEU=document.createElement("template"));var h=WEU;E.call(W,h.content.cloneNode(!0),F.content.firstChild);return EPi=F},
is:"tp-yt-paper-tooltip",hostAttributes:{role:"tooltip",tabindex:-1,"aria-label":"tooltip"},properties:{for:{type:String,observer:"_findTarget"},manualMode:{type:Boolean,value:!1,observer:"_manualModeChanged"},position:{type:String,value:"bottom"},fitToVisibleBounds:{type:Boolean,value:!1},offset:{type:Number,value:14},marginTop:{type:Number,value:14},alwaysDisplay:{type:Boolean,value:!1},animationDelay:{type:Number,value:500,observer:"_delayChange"},animationEntry:{type:String,value:""},animationExit:{type:String,
value:""},animationConfig:{type:Object,value:function(){return{entry:[{name:"fade-in-animation",node:this,timing:{delay:0}}],exit:[{name:"fade-out-animation",node:this}]}}},
_showing:{type:Boolean,value:!1}},listeners:{webkitAnimationEnd:"_onAnimationEnd"},get target(){var F=_.sg(this).parentNode,W=_.sg(this).getOwnerRoot(),E;this.for?E=_.sg(W).querySelector("#"+this.for):E=F.nodeType==Node.DOCUMENT_FRAGMENT_NODE?W.host:F;return E},attached:function(){this._findTarget()},
detached:function(){this.manualMode||this._removeListeners()},
playAnimation:function(F){F==="entry"?this.show():F==="exit"&&this.hide()},
cancelAnimation:function(){this.$.tooltip.classList.add("cancel-animation")},
show:function(){if(!this._showing){if(!this.alwaysDisplay&&_.sg(this).textContent.trim()===""){for(var F=!0,W=_.sg(this).getEffectiveChildNodes(),E=0;E<W.length;E++)if(W[E].textContent.trim()!==""){F=!1;break}if(F)return}this._showing=!0;this.$.tooltip.classList.remove("hidden");this.$.tooltip.classList.remove("cancel-animation");this.$.tooltip.classList.remove(this._getAnimationType("exit"));this.updatePosition();this._animationPlaying=!0;this.$.tooltip.classList.add(this._getAnimationType("entry"))}},
hide:function(){this._showing&&(this._animationPlaying?(this._showing=!1,this._cancelAnimation()):(this._onAnimationFinish(),this._showing=!1,this._animationPlaying=!0))},
updatePosition:function(){if(this._target&&this.offsetParent){var F=this.offset;this.marginTop!=14&&this.offset==14&&(F=this.marginTop);var W=this.offsetParent.getBoundingClientRect(),E=this._target.getBoundingClientRect(),h=this.getBoundingClientRect(),d=(E.width-h.width)/2,V=(E.height-h.height)/2,R=E.left-W.left,M=E.top-W.top;switch(this.position){case "top":var g=R+d;var t=M-h.height-F;break;case "bottom":g=R+d;t=M+E.height+F;break;case "left":g=R-h.width-F;t=M+V;break;case "right":g=R+E.width+
F,t=M+V}this.fitToVisibleBounds?(W.left+g+h.width>window.innerWidth?(this.style.right="0px",this.style.left="auto"):(this.style.left=Math.max(0,g)+"px",this.style.right="auto"),W.top+t+h.height>window.innerHeight?(this.style.bottom=W.height+"px",this.style.top="auto"):(this.style.top=Math.max(-W.top,t)+"px",this.style.bottom="auto")):(this.style.left=g+"px",this.style.top=t+"px")}},
_addListeners:function(){this._target&&(this.listen(this._target,"mouseenter","show"),this.listen(this._target,"focus","show"),this.listen(this._target,"mouseleave","hide"),this.listen(this._target,"blur","hide"),this.listen(this._target,"tap","hide"));this.listen(this.$.tooltip,"animationend","_onAnimationEnd");this.listen(this,"mouseenter","hide")},
_findTarget:function(){this.manualMode||this._removeListeners();this._target=this.target;this.manualMode||this._addListeners()},
_delayChange:function(F){F!==500&&this.updateStyles({"--paper-tooltip-delay-in":F+"ms"})},
_manualModeChanged:function(){this.manualMode?this._removeListeners():this._addListeners()},
_cancelAnimation:function(){this.$.tooltip.classList.remove(this._getAnimationType("entry"));this.$.tooltip.classList.remove(this._getAnimationType("exit"));this.$.tooltip.classList.remove("cancel-animation");this.$.tooltip.classList.add("hidden")},
_onAnimationFinish:function(){this._showing&&(this.$.tooltip.classList.remove(this._getAnimationType("entry")),this.$.tooltip.classList.remove("cancel-animation"),this.$.tooltip.classList.add(this._getAnimationType("exit")))},
_onAnimationEnd:function(){this._animationPlaying=!1;this._showing||(this.$.tooltip.classList.remove(this._getAnimationType("exit")),this.$.tooltip.classList.add("hidden"))},
_getAnimationType:function(F){if(F==="entry"&&this.animationEntry!=="")return this.animationEntry;if(F==="exit"&&this.animationExit!=="")return this.animationExit;if(this.animationConfig[F]&&typeof this.animationConfig[F][0].name==="string"){if(this.animationConfig[F][0].timing&&this.animationConfig[F][0].timing.delay&&this.animationConfig[F][0].timing.delay!==0){var W=this.animationConfig[F][0].timing.delay;F==="entry"?this.updateStyles({"--paper-tooltip-delay-in":W+"ms"}):F==="exit"&&this.updateStyles({"--paper-tooltip-delay-out":W+
"ms"})}return this.animationConfig[F][0].name}},
_removeListeners:function(){this._target&&(this.unlisten(this._target,"mouseenter","show"),this.unlisten(this._target,"focus","show"),this.unlisten(this._target,"mouseleave","hide"),this.unlisten(this._target,"blur","hide"),this.unlisten(this._target,"tap","hide"));this.unlisten(this.$.tooltip,"animationend","_onAnimationEnd");this.unlisten(this,"mouseenter","hide")}});var h9B=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(h9B,_.n2);var dBp=_.K2(h9B,[0,_.En]);var Ea=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(Ea,_.n2);var NXp=[3,4],VXB=[5,6];var UBz=[0,NXp,VXB,_.URO,-1,_.WK,_.RWc,-1,NgY,VIo];var R9T=_.K2(Ea,UBz),e9T=_.F3(UBz);var MXX=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(MXX,_.n2);var gP_=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(gP_,_.n2);var QVp=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(QVp,_.n2);var z9p=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(z9p,_.n2);var tXH=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(tXH,_.n2);var h7=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(h7,_.n2);h7.prototype.getSource=function(){return _.lj(this,1)};
h7.prototype.getMessage=function(){return _.bj(this,4)};
h7.prototype.getData=function(){return _.Em(this,tXH,8)};var Cv_=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(Cv_,_.n2);var dZ=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(dZ,_.n2);var NC=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(NC,_.n2);var VE=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(VE,_.n2);VE.prototype.getUrl=function(){return _.bj(this,1)};
VE.prototype.setUrl=function(F){return _.QJ(this,1,F)};
VE.prototype.hasUrl=function(){return _.yx(_.Af(this,1))!=null};var BXT=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(BXT,_.n2);var vPM=[3];var IBU=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(IBU,_.n2);var Ua=function(F){var W=new IBU;return _.hH(W,2,F)};
IBU.prototype.getLanguage=function(){return yF(this,4,RH)};
var cUz=function(F){var W=Ua(1);return _.dU(W,6,RH,F)},RH=[3,
4,5,6];var DBU=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(DBU,_.n2);var et=function(F){var W=new DBU;return _.hH(W,1,F)},MC=function(F,W){return _.dU(F,2,xBp,W)},xBp=[2,
3,4,5];var kFe=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(kFe,_.n2);var gZ=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(gZ,_.n2);var AUB=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(AUB,_.n2);var sVO=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(sVO,_.n2);var LEc=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(LEc,_.n2);var qZT=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(qZT,_.n2);var $Ba=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k($Ba,_.n2);var QE=function(F){return _.Em(F,NC,5)};var Zkz=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(Zkz,_.n2);Zkz.prototype.getValue=function(){return fc(this,1)};var X6u=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(X6u,_.n2);var zh=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(zh,_.n2);zh.prototype.getMetadata=function(){return _.j2(this,LEc,7,t7)};
zh.prototype.hasMetadata=function(){return _.qa(this,LEc,7,t7)};
var Hki=_.ERY(zh),t7=[2,3,4,5,6,7,8,9,10,11,12,13,14,15];var Ci=function(F){this.JSC$9831_name_=F;this.files_=[];this.directories_=[];this.directoryMap_={}};
Ci.prototype.getName=function(){return this.JSC$9831_name_};var vP=function(F,W){this.callback_=W;this.hasError_=!1;this.unscannedDirectories_=[];this.fileOps_=this.directoryOps_=0;this.rootDirectory_=new Ci("");Pvu(this,F,this.rootDirectory_);BP(this)},Pvu=function(F,W,E){for(var h=0;h<W.length;h++){var d=W[h];
d.isFile?(F.fileOps_++,d.file((0,_.kj)(F.handleFileSuccess_,F,E),(0,_.kj)(F.handleFileError_,F))):F.unscannedDirectories_.push(new JUu(d,E))}},BP=function(F){if(F.unscannedDirectories_.length>0&&F.directoryOps_<5&&!F.hasError_){F.directoryOps_++;
var W=F.unscannedDirectories_.shift(),E=W.entry,h=new Ci(E.name);W=W.parent;W.directoryMap_[h.getName()]=h;W.directories_.push(h);E=E.createReader();E.readEntries((0,_.kj)(F.handleDirectorySuccess_,F,E,h),(0,_.kj)(F.handleDirectoryError_,F))}F.directoryOps_!=0||F.fileOps_!=0||F.unscannedDirectories_.length!=0&&!F.hasError_||F.callback_(F.rootDirectory_.files_,F.rootDirectory_.directories_,F.hasError_)};
vP.prototype.handleDirectorySuccess_=function(F,W,E){Pvu(this,E,W);E.length==0?(this.directoryOps_--,BP(this)):F.readEntries((0,_.kj)(this.handleDirectorySuccess_,this,F,W),(0,_.kj)(this.handleDirectoryError_,this))};
vP.prototype.handleDirectoryError_=function(){this.hasError_=!0;this.directoryOps_--;BP(this)};
vP.prototype.handleFileSuccess_=function(F,W){F.files_.push(W);this.fileOps_--;BP(this)};
vP.prototype.handleFileError_=function(){this.hasError_=!0;this.fileOps_--;BP(this)};
var JUu=function(F,W){this.entry=F;this.parent=W};var IH=function(F){_.qo.call(this);_.ce(F,"drop",this.onObjectsDropped_,!1,this);_.ce(F,"dragenter",this.onFilesDragged_,!1,this);_.ce(F,"dragover",this.onFilesDragged_,!1,this);_.ce(F,"dragleave",this.onDragLeave_,!1,this);_.ce(F,"dragend",this.onDragLeave_,!1,this)};
_.Ma(IH,_.qo);var aBX=function(F,W){_.xU.call(this,"f");this.files=F;this.directories=W};
_.Ma(aBX,_.xU);var fBH=function(){_.xU.call(this,"h")};
_.Ma(fBH,_.xU);var OkH=function(){_.xU.call(this,"i")};
_.Ma(OkH,_.xU);var bka=function(){_.xU.call(this,"g")};
_.Ma(bka,_.xU);IH.prototype.onObjectsDropped_=function(F){var W=this;F.preventDefault();var E=F.event_.dataTransfer;if((F=E&&E.items)&&F.length>0&&F[0].webkitGetAsEntry){E=[];for(var h=[],d=0;d<F.length;d++){var V=F[d].webkitGetAsEntry();V?E.push(V):h.push(F[d])}new vP(E,function(R,M,g){g?W.dispatchEvent(new bka("Error occurred while reading from the file system.")):W.dispatchEvent(new aBX(R,M,h))})}else(F=E&&E.files)&&this.dispatchEvent(new aBX(Array.from(F),[]))};
IH.prototype.onFilesDragged_=function(F){F.type==="dragenter"&&this.dispatchEvent(new fBH);F.preventDefault()};
IH.prototype.onDragLeave_=function(){this.dispatchEvent(new OkH)};var lBc=function(F,W){this.JSC$9854_name_=F;this.inputElement_=W};
lBc.prototype.getName=function(){return this.JSC$9854_name_};
lBc.prototype.getInputElement=function(){return this.inputElement_};var cP=function(F,W,E){W=W===void 0?"single_file":W;E=E===void 0?[]:E;_.qo.call(this);this.overlayTarget_=F;this.parentOverlay_=F!=null?F.parentNode:_.Cr("scotty-overlay-parent");this.selectorType_=W;this.acceptTypes_=E;this.overlay_=nPH(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
_.k(cP,_.qo);
var nPH=function(F,W,E,h){var d=document.createElement("input");d.setAttribute("type","file");d.setAttribute("name","Filedata");_.ce(d,"change",F.onFilesSelected_,!1,F);E==="multiple_file"&&(d.multiple="true");E==="single_directory"&&(d.webkitdirectory="true");h.length>0&&d.setAttribute("accept",h.join(","));d.style.position="absolute";d.style.overflow="hidden";d.style.height="0px";d.style.width="0px";d.style.opacity="0";d.setAttribute("aria-hidden","true");d.setAttribute("tabIndex",-1);if(F.overlayTarget_!=
null)return d.style.height=W.offsetHeight+"px",d.style.width=W.offsetWidth+"px",F.parentOverlay_&&(F.parentOverlay_.style.position="relative"),_.lk(d,W),TH(d,new _.sp(W.offsetLeft,W.offsetTop)),d;F.parentOverlay_.appendChild(d);return d};
cP.prototype.click=function(){this.overlay_.click()};
cP.prototype.onFilesSelected_=function(F){a:{try{var W=(new XMLHttpRequest).upload!==void 0;break a}catch(t){}W=!1}if(W){var E;F=Array.from((E=F.target.files)!=null?E:[]);E=[];if(this.selectorType_==="single_directory"&&(_.BY||wV||_.Cc)){E=new Ci("");if(File.prototype.hasOwnProperty("webkitRelativePath"))for(W=0;W<F.length;W++)for(var h=F[W],d=h.webkitRelativePath.split("/"),V=E,R=0;R<d.length;R++){var M=d[R];if(R==d.length-1){M!="."&&V.files_.push(h);break}var g=V.directoryMap_[M];g==void 0&&(M=
g=new Ci(M),V.directoryMap_[M.getName()]=M,V.directories_.push(M));V=g}E=E.directories_}this.dispatchEvent(new yUz(F,E,null))}else F=F.target.value,F.match(/^c:\\fakepath\\/i)&&(F=F.substring(12)),this.dispatchEvent(new yUz([],[],new lBc(F,this.overlay_)));this.parentOverlay_.removeChild(this.overlay_);this.overlay_=nPH(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
var yUz=function(F,W){_.xU.call(this,"j");this.files=F;this.directories=W};
_.k(yUz,_.xU);var jV_=function(F){this.uploadUrl_=F};var ikO=function(){_.qo.call(this)};
_.Ma(ikO,_.qo);var DI=function(F){_.xU.call(this,F)};
_.Ma(DI,_.xU);var xJ=function(F){_.xU.call(this,F)};
_.Ma(xJ,_.xU);var rU_=function(F,W,E,h,d){_.qo.call(this);E=document.createElement("form");E.setAttribute("method",W);E.setAttribute("enctype","multipart/form-data");E.setAttribute("encoding","multipart/form-data");W=document.createElement("input");W.setAttribute("type","hidden");W.setAttribute("name","metadata");W.setAttribute("value",d);E.appendChild(W);E.appendChild(h);this.JSC$9871_form_=E;F=new _.Yx(F);_.ig(F,"upload_protocol","multipart");this.JSC$9871_url_=F.toString();this.JSC$9871_request_=new Vf;this.state_=
"Ready";this.JSC$9871_errorDescription_=null;this.JSC$9871_eventHandler_=new _.hR(this);_.gl(this,this.JSC$9871_eventHandler_);this.JSC$9871_eventHandler_.listen(this.JSC$9871_request_,"success",this.onTransferSuccess_);this.JSC$9871_eventHandler_.listen(this.JSC$9871_request_,"error",this.onTransferError_)};
_.k(rU_,ikO);_.N=rU_.prototype;_.N.run=function(){this.state_="Transferring";var F=this.JSC$9871_request_,W=this.JSC$9871_form_;if(F.JSC$9289_active_)throw Error("oe");var E=new _.Yx(this.JSC$9871_url_||W.action);F.JSC$9289_form_=W;W=F.JSC$9289_form_;E=_.Ay(E.toString());E!==void 0&&(W.action=E);IGe(F)};
_.N.getResponseCode=function(){return null};
_.N.getResponseText=function(){return this.JSC$9871_request_&&this.JSC$9871_request_.getResponseText()||null};
_.N.JSC$25724_getErrorDescription=function(){return this.JSC$9871_errorDescription_};
_.N.cancel=function(){this.JSC$9871_request_&&this.JSC$9871_request_.abort();this.state_="Cancelled";this.dispatchEvent(new DI("o"))};
_.N.pause=function(){};
_.N.onTransferSuccess_=function(){this.state_="Complete";this.dispatchEvent(new DI("l"))};
_.N.onTransferError_=function(){this.JSC$9871_errorDescription_="Transfer failed.";this.state_="Error";this.dispatchEvent(new DI("n"))};var kJ=function(){_.fP.call(this)};
_.k(kJ,_.fP);kJ.prototype.createXhr=function(){var F=_.fP.prototype.createXhr.call(this);F.upload&&(F.upload.onprogress=(0,_.kj)(this.onProgress_,this));return F};
kJ.prototype.onProgress_=function(F){this.dispatchEvent(F)};var TXu=function(){this.attempt_=-1;this.delayCallId_=null;this.maxDelayMs_=6E4;this.maxAttempts_=-1},GFi=function(F,W){var E=F.attempt_+1;
if(F.maxAttempts_>0&&E>F.maxAttempts_)return!1;E==0?W():F.delayCallId_=PI(function(){F.delayCallId_=null;W()},oPM(F),F);
F.attempt_=E;return!0};
TXu.prototype.reset=function(){this.delayCallId_&&_.EY.clearTimeout(this.delayCallId_);this.attempt_=-1};
var oPM=function(F){var W=250*Math.pow(2,F.attempt_);F.maxDelayMs_>=0&&(W=Math.min(W,F.maxDelayMs_));return W};var ivS=["Content-Length","Content-Type","Content-Encoding","Transfer-Encoding"];var A7=function(){_.qo.call(this);this.JSC$9881_request_=this.state_=null;this.JSC$9881_withCredentials_=!1;this.transferHandle_=null;this.offset_=this.JSC$9881_bytesTransferred_=0;this.retryIterator_=new TXu;this.retryIterator_.maxAttempts_=6;this.retryIterator_.maxDelayMs_=6E4;this.JSC$9881_errorDescription_=null;this.JSC$9881_eventHandler_=new _.hR(this);_.gl(this,this.JSC$9881_eventHandler_);this.JSC$9881_url_=this.blob_=null;this.JSC$9881_method_=void 0;this.chunkSize_=this.JSC$9881_metadata_=
this.JSC$9881_headers_=null;this.requireUploadRequestModification_=!1;this.originalBlobSize_=0;this.detectCorruptedBlobEnabled_=!1;this.lastCommandResponseCode_=this.JSC$9881_responseText_=this.JSC$9881_responseCode_=null;this.pauseRequested_=!1;this.stateAfterUnpausing_=null};
_.Ma(A7,ikO);_.N=A7.prototype;_.N.run=function(){sa(this)};
_.N.getResponseCode=function(){return this.JSC$9881_responseCode_};
_.N.getResponseText=function(){return this.JSC$9881_responseText_};
_.N.JSC$25724_getErrorDescription=function(){return this.JSC$9881_errorDescription_};
_.N.cancel=function(){if(this.state_!="Response received"&&this.state_!="Error"){this.JSC$9881_eventHandler_.removeAll();this.JSC$9881_request_&&this.JSC$9881_request_.abort();this.retryIterator_.reset();var F=this.state_==="Paused"?this.stateAfterUnpausing_:this.state_;if(F==="Upload"||F==="Query")F=new kJ,F.JSC$7701_withCredentials_=this.JSC$9881_withCredentials_,F.send(this.transferHandle_.uploadUrl_,"POST","",{"X-Goog-Upload-Command":"cancel"});this.state_="Cancel";this.JSC$9881_bytesTransferred_=
0;this.dispatchEvent(new DI("o"))}};
_.N.pause=function(){this.pauseRequested_=!0};
var sa=function(F){var W=F.state_;F.pauseRequested_?(F.pauseRequested_=!1,F.stateAfterUnpausing_=W,F.state_="Paused"):GFi(F.retryIterator_,function(){switch(F.state_){case "Start":F.JSC$9881_request_=new kJ;var E=_.xd.clone(F.JSC$9881_headers_);F.blob_.size!=null&&(E["Content-Length"]=F.blob_.size);E=rko(E);E["X-Goog-Upload-Protocol"]="resumable";E["X-Goog-Upload-Command"]="start";F.JSC$9881_eventHandler_.removeAll();F.JSC$9881_eventHandler_.listen(F.JSC$9881_request_,"complete",F.onStartComplete_);
F.JSC$9881_request_.JSC$7701_withCredentials_=F.JSC$9881_withCredentials_;F.JSC$9881_request_.send(F.JSC$9881_url_,F.JSC$9881_method_,F.JSC$9881_metadata_,E);F.lastCommandResponseCode_=null;F.dispatchEvent(new xJ("q"));break;case "Upload":E=F.transferHandle_.uploadUrl_;var h=F.blob_.size;if(d1B()){var d=F.chunkSize_;var V=F.offset_+d>=h;h=hoz(F.blob_,F.offset_,V?h:F.offset_+d)}else F.offset_=0,h=F.blob_,V=!0;F.JSC$9881_request_=new kJ;F.JSC$9881_request_.JSC$7701_withCredentials_=F.JSC$9881_withCredentials_;
F.JSC$9881_eventHandler_.removeAll();F.JSC$9881_eventHandler_.listen(F.JSC$9881_request_,"progress",F.onUploadProgress_);d=(0,_.kj)(F.JSC$9883_onUploadComplete_,F,F.offset_+h.size,V);F.JSC$9881_eventHandler_.listen(F.JSC$9881_request_,"complete",d);F.lastCommandResponseCode_=null;F.dispatchEvent(new xJ("q"));V=Object.assign({},F.JSC$9881_headers_||{},{"X-Goog-Upload-Command":"upload"+(V?", finalize":""),"X-Goog-Upload-Offset":F.offset_});F.JSC$9881_request_.send(E,"POST",h,V);break;case "Query":F.JSC$9881_request_=
new kJ;F.JSC$9881_eventHandler_.removeAll();F.JSC$9881_eventHandler_.listen(F.JSC$9881_request_,"complete",F.onQueryComplete_);E=Object.assign({},F.JSC$9881_headers_||{},{"X-Goog-Upload-Command":"query"});F.JSC$9881_request_.send(F.transferHandle_.uploadUrl_,"POST","",E);F.lastCommandResponseCode_=null;F.dispatchEvent(new xJ("q"));break;default:throw Error("df");}})||Li(F,"Transfer encountered too many consecutive failures.")},Li=function(F,W){F.state_="Error";
F.JSC$9881_errorDescription_=W;F.dispatchEvent(new DI("n"))};
A7.prototype.onStartComplete_=function(F){var W=F.target;this.lastCommandResponseCode_=W.getStatus();this.dispatchEvent(new xJ("r"));if(YZ_(W))w6T(this,W);else if(uRc(W)){F=G3(F.target.getAllResponseHeaders());for(var E in F)_.Vo(E.toLowerCase(),"x-goog-upload-header-");this.dispatchEvent(new DI("m"));E=qW(F,"X-Goog-Upload-URL");F=(F=qW(F,"X-Goog-Upload-Chunk-Granularity"))?parseInt(F,10):1;E===void 0||isNaN(F)||F<=0?Li(this,"Server returned invalid headers."):(this.chunkSize_=Math.floor(1073741824/
F)*F,this.transferHandle_=new jV_(E),this.dispatchEvent(new DI("p")),this.state_="Upload",this.retryIterator_.reset(),sa(this))}else sa(this)};
A7.prototype.onUploadProgress_=function(F){this.JSC$9881_bytesTransferred_=this.offset_+F.loaded;this.dispatchEvent(new DI("k"))};
A7.prototype.JSC$9883_onUploadComplete_=function(F,W,E){var h=this,d,V;return _.e(function(R){switch(R.nextAddress){case 1:d=E.target;h.lastCommandResponseCode_=d.getStatus();h.dispatchEvent(new xJ("r"));if(SZe(d)||d.getStatus()==404)return h.JSC$9881_bytesTransferred_=F,w6T(h,d),R.return();if(uRc(d)){R.jumpTo(2);break}if(!(V=h.detectCorruptedBlobEnabled_)){R.jumpTo(3);break}return _.Q(R,p6u(h),4);case 4:V=R.yieldResult;case 3:if(V)return Li(h,"Blob has been modified or corrupted."),R.return();h.requireUploadRequestModification_=
d.getStatus()==400;h.state_="Query";sa(h);return R.return();case 2:if(W)return Li(h,"Got a non-final success response after issuing a finalize command."),R.return();h.JSC$9881_bytesTransferred_=F;h.offset_=F;h.retryIterator_.reset();sa(h);return R.return()}})};
A7.prototype.onQueryComplete_=function(F){var W=F.target;this.lastCommandResponseCode_=W.getStatus();this.dispatchEvent(new xJ("r"));YZ_(W)?(W.getStatus()===200&&(this.JSC$9881_bytesTransferred_=this.blob_.size),w6T(this,W)):uRc(W)?(F=G3(F.target.getAllResponseHeaders()),F=parseInt(qW(F,"X-Goog-Upload-Size-Received"),10),isNaN(F)?Li(this,"Server did not respond with current offset."):F<this.offset_?Li(this,"Server lost bytes! Expected an offset of at least "+this.offset_+", but got an offset of "+
F+"."):this.requireUploadRequestModification_&&this.offset_===F?Li(this,"Server returned the same offset as the last failed upload attempt."):(this.requireUploadRequestModification_=!1,this.offset_<F&&this.retryIterator_.reset(),this.offset_=this.JSC$9881_bytesTransferred_=F,this.state_="Upload",sa(this))):sa(this)};
var w6T=function(F,W){F.JSC$9881_responseCode_=W.getStatus();var E=G3(W.getAllResponseHeaders());Tao(E);F.JSC$9881_responseText_=W.getResponseText();F.state_="Response received";F.dispatchEvent(new DI("l"))},uRc=function(F){var W=F.getStatus();
F=G3(F.getAllResponseHeaders());F=qW(F,"X-Goog-Upload-Status");return W===200&&F==="active"},SZe=function(F){F=G3(F.getAllResponseHeaders());
return qW(F,"X-Goog-Upload-Status")==="final"},YZ_=function(F){if(SZe(F))return!0;
F=F.getStatus();return F>=400&&F<500},p6u=function(F){var W;
return _.e(function(E){if(E.nextAddress==1){if(!F.blob_||F.originalBlobSize_<=0)return E.return(!1);if(F.blob_.size!==F.originalBlobSize_)return E.return(!0);_.Nl(E,2);if(W=hoz(F.blob_,0,1)){var h=new Ta,d=fse(h);h.reader_.readAsBinaryString(W);E=_.Q(E,d,4)}else E=E.return(!0);return E}if(E.nextAddress!=2)return E.return(F.blob_.size!==F.originalBlobSize_);_.Ml(E);return E.return(!0)})};var mBz=function(F,W,E,h,d,V){_.qo.call(this);this.payload_=h;this.JSC$9884_url_=F;this.JSC$9884_method_=W;this.JSC$9884_headers_=E;this.JSC$9884_metadata_=d;this.encoding_=V||"binary";F=new _.Z5;this.boundary_="uploader-"+nr()+"-"+F.JSC$9138_toIsoString();this.JSC$9884_responseText_=this.JSC$9884_responseCode_=this.transferRequest_=null;this.state_="Ready";this.JSC$9884_errorDescription_=null;this.JSC$9884_eventHandler_=new _.hR(this);_.gl(this,this.JSC$9884_eventHandler_)};
_.k(mBz,ikO);_.N=mBz.prototype;
_.N.run=function(){var F=_.xd.clone(this.JSC$9884_headers_);this.payload_.length!=null&&(F["Content-Length"]=this.payload_.length);F=rko(F);F["X-Goog-Upload-Protocol"]="multipart";F["Content-Type"]="multipart/related; boundary="+this.boundary_;this.state_="Transferring";this.transferRequest_=new kJ;this.JSC$9884_eventHandler_.removeAll();this.JSC$9884_eventHandler_.listen(this.transferRequest_,"progress",this.onTransferProgress_);this.JSC$9884_eventHandler_.listen(this.transferRequest_,"complete",
this.onTransferComplete_);this.transferRequest_.send(this.JSC$9884_url_,this.JSC$9884_method_,"--"+this.boundary_+'\r\nContent-Disposition: form-data; name="metadata"\r\n\r\n'+(this.JSC$9884_metadata_+"\r\n--")+this.boundary_+'\r\nContent-Disposition: form-data; name="Filedata"\r\nContent-Transfer-Encoding: '+(this.encoding_+"\r\n\r\n")+this.payload_+"\r\n--"+this.boundary_+"--\r\n",F)};
_.N.getResponseCode=function(){return this.JSC$9884_responseCode_};
_.N.getResponseText=function(){return this.JSC$9884_responseText_};
_.N.JSC$25724_getErrorDescription=function(){return this.JSC$9884_errorDescription_};
_.N.cancel=function(){this.state_!="Complete"&&this.state_!="Error"&&(this.JSC$9884_eventHandler_.removeAll(),this.transferRequest_&&this.transferRequest_.abort(),this.state_="Cancel",this.dispatchEvent(new DI("o")))};
_.N.pause=function(){};
_.N.onTransferProgress_=function(){this.dispatchEvent(new DI("k"))};
_.N.onTransferComplete_=function(F){var W=F.target.getStatus();W===void 0||W===-1?(this.JSC$9884_errorDescription_="Connection broken before response was received.",this.state_="Error",this.dispatchEvent(new DI("n"))):(this.JSC$9884_responseCode_=W,F=F.target,W=G3(F.getAllResponseHeaders()),Tao(W),this.JSC$9884_responseText_=F.getResponseText(),this.state_="Complete",this.dispatchEvent(new DI("l")))};_.KEp=function(F,W,E,h){h=h===void 0?!1:h;if(E instanceof lBc)return new rU_(F,"POST",W,E.getInputElement(),"");if(typeof E==="string"||E instanceof String)return new mBz(F,"POST",W,E,"");var d=new A7(void 0);d.JSC$9881_url_=F;d.JSC$9881_method_="POST";d.JSC$9881_headers_=W;d.blob_=E;d.originalBlobSize_=E.size;d.JSC$9881_metadata_="";h&&(d.JSC$9881_withCredentials_=h);d.state_="Start";return d};var qC=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(qC,_.n2);_.N=qC.prototype;_.N.getEnableSsEngine=function(){return _.aZ(this,2)};
_.N.getEnableAwr=function(){return _.aZ(this,3)};
_.N.getAlohaAutoGaRollout=function(){return _.aZ(this,5)};
_.N.getEnableConfigurator=function(){return _.aZ(this,6)};
_.N.getEnableMweb=function(){return _.aZ(this,7)};
var WNH=function(){var F=FN_();return _.ZU(F,7,!0)};
qC.prototype.getEnableCtlConsentCheckbox=function(){return _.aZ(this,8)};
qC.prototype.getEnableIframe=function(){return _.aZ(this,9)};
var FN_=function(){var F=new qC;F=_.ZU(F,5,!0);F=_.ZU(F,2,!0);F=_.ZU(F,4,!1);F=_.ZU(F,8,!0);return _.ZU(F,9,!0)};
qC.prototype.getEnableScreenshotNudge=function(){return _.aZ(this,10)};
var EiO=function(){var F=WNH();return _.ZU(F,10,!0)};
qC.prototype.getEnableWebStartupConfigEndpoint=function(){return _.aZ(this,11)};
qC.prototype.getEnableJunkNudge=function(){return _.aZ(this,12)};
var Uow=function(){var F=EiO();return _.ZU(F,12,!0)};
_.N=qC.prototype;_.N.getEnableConfiguratorLocale=function(){return _.aZ(this,13)};
_.N.getEnableTinyNoPointer=function(){return _.aZ(this,14)};
_.N.getEnableSupportSessionLogging=function(){return _.aZ(this,15)};
_.N.getEnableFileUploadForScreenshot=function(){return _.aZ(this,16)};
_.N.getEnableDirectDeflectionForSingleCategory=function(){return _.aZ(this,17)};
_.N.getEnableImageSanitization=function(){return _.aZ(this,18)};
_.N.getEnableAlohaBinarySplit=function(){return _.aZ(this,19)};
_.N.getEnableDbFeedbackIntents=function(){return _.aZ(this,20)};
_.N.getEnableMarkMandatoryFieldsWithRequired=function(){return _.aZ(this,21)};
_.N.getEnableFeedbackCategoryCustomUi=function(){return _.aZ(this,22)};
_.N.getEnableRealtimeCtl=function(){return _.aZ(this,23)};var Vfr=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(Vfr,_.n2);var ock=[/https:\/\/sandbox\.google\.com\/tools\/feedback/,/https:\/\/feedback-frontend-qual[a-z0-9.]*\.google\.com\/inapp/,/https:\/\/feedback-frontend-qual[a-z0-9.]*\.google\.com\/tools\/feedback/,/https:\/\/.*\.googleusercontent\.com\/inapp/];var Ynr="af am ar-EG ar-JO ar-MA ar-SA ar-XB ar az be bg bn bs ca cs cy da de-AT de-CH de el en en-GB en-AU en-CA en-IE en-IN en-NZ en-SG en-XA en-XC en-ZA es es-419 es-AR es-BO es-CL es-CO es-CR es-DO es-EC es-GT es-HN es-MX es-NI es-PA es-PE es-PR es-PY es-SV es-US es-UY es-VE et eu fa fi fil fr-CA fr-CH fr gl gsw gu he hi hr hu hy id in is it iw ja ka kk km kn ko ky ln lo lt lv mk ml mn mo mr ms my nb ne nl no pa pl pt pt-BR pt-PT ro ru si sk sl sq sr-Latn sr sv sw ta te th tl tr uk ur uz vi zh zh-CN zh-HK zh-TW zu".split(" ");var wKo=_.Fc(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_light_binary.js"]),u0b=_.Fc(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_binary__",".js"]);var pKI,KZY;var hD_,daT;
hD_=function(F,W,E){F.timeOfStartCall=(new Date).getTime();var h=E||_.EY,d=h.document,V=F.nonce||_.aI(h.document);V&&!F.nonce&&(F.nonce=V);if(F.flow=="help"){var R=_.ju("document.location.href",h);!F.helpCenterContext&&R&&(F.helpCenterContext=R.substring(0,1200));R=!0;if(W&&JSON&&JSON.stringify){var M=JSON.stringify(W);(R=M.length<=1200)&&(F.psdJson=M)}R||(W={invalidPsd:!0})}W=[F,W,E];h.GOOGLE_FEEDBACK_START_ARGUMENTS=W;E=F.feedbackServerUri||"//www.google.com/tools/feedback";if(R=h.GOOGLE_FEEDBACK_START)R.apply(h,W);
else{h=E+"/load.js?";for(var g in F)W=F[g],W==null||_.NU(W)||(h+=encodeURIComponent(g)+"="+encodeURIComponent(W)+"&");F=gn(d).createElement("SCRIPT");V&&F.setAttribute("nonce",V);_.nu(F,_.RI(h));d.body.appendChild(F)}};
daT=function(F,W,E,h){var d,V;_.e(function(R){d=E||_.EY;var M=F.serverEnvironment==="DEV",g=E||_.EY;g=F.nonce||_.aI(g.document);M={integrationKeys:{productId:F.productId,feedbackBucket:F.bucket,triggerId:F.triggerId},callbacks:{onClose:F.callback,onLoad:F.onLoadCallback},formContent:{locale:F.locale,disableScreenshot:F.disableScreenshotting,productDisplayName:void 0,announcement:void 0,issueCategories:void 0,includeSeveritySelection:void 0,customImageSrc:void 0,thankYouMessage:void 0,userEmail:void 0,
defaultFormInputValues:void 0,defaultFormInputValuesString:void 0,abuseLink:F.abuseLink,additionalDataConsent:F.additionalDataConsent},initializationData:{isLocalServer:M,nonce:g,useNightlyRelease:M,feedbackJsUrl:void 0,feedbackCssUrl:void 0,feedbackJsUrlSerialized:void 0,feedbackCssUrlSerialized:void 0,submissionServerUri:F.feedbackServerUri,colorScheme:F.colorScheme},extraData:{productVersion:F.productVersion,authUser:F.authuser,configuratorId:F.configuratorId,customZIndex:F.customZIndex,tinyNoPointer:F.tinyNoPointer,
allowNonLoggedInFeedback:F.allowNonLoggedInFeedback,enableAnonymousFeedback:F.enableAnonymousFeedback}};W&&(g=new Map(Object.entries(W)),M.extraData.productSpecificData=g);V=M;return _.Q(R,htr(V,h,d),0)})};
_.NHi=function(F,W,E){try{if(F.flow==="help"){var h=F.helpCenterPath.replace(/^\//,"");_.Jy(E||window,"https://support.google.com/"+h)}else F.flow==="submit"?hD_(F,W,E):Rte(F.productId,F.feedbackServerUri).then(function(d){d=_.Em(d,qC,1);var V=!LLW||(d==null?void 0:d.getEnableMweb()),R=!F.tinyNoPointer||(d==null?void 0:d.getEnableTinyNoPointer());!d||d.getAlohaAutoGaRollout()&&V&&R?daT(F,W,E,d):hD_(F,W,E)},function(d){d&&d.name!=="DuplicateFormError"&&hD_(F,W,E)})}catch(d){daT(F,W,E,null)}};
_.S5("userfeedback.api.startFeedback",_.NHi);var etW=/https?:\/\/\S+\.\S+/,Mfw=[/^https?:\/\/[0-9a-zA-Z_.-]+\.youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtu\.be(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i],gUI=[/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtube\.com[\/]+redirect\?.*$/i,/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtu.be[\/]+redirect\?.*$/i];var Ilo=function(F){var W=F.split(""),E=[-263237435,15,W,function(h,d,V){var R=d.length;V.forEach(function(M,g,t){this.push(t[g]=d[(d.indexOf(M)-d.indexOf(this[g])+g+R--)%d.length])},h.split(""))},
function(h,d){h=(h%d.length+d.length)%d.length;d.splice(-h).reverse().forEach(function(V){d.unshift(V)})},
"response",function(){for(var h=64,d=[];++h-d.length-32;){switch(h){case 58:h-=14;case 91:case 92:case 93:continue;case 123:h=47;case 94:case 95:case 96:continue;case 46:h=95}d.push(String.fromCharCode(h))}return d},
null,12,1540023973,65941107,null,W,function(h,d){for(h=(h%d.length+d.length)%d.length;h--;)d.unshift(d.pop())},
695603893,function(h){for(var d=h.length;d;)h.push(h.splice(--d,1)[0])},
"'[;'[(",function(h,d){h.push(d)},
null,function(h,d,V,R,M){return d(V,R,M)},
"continuation",W,function(h,d){if(h.length!=0){d=(d%h.length+h.length)%h.length;var V=h[0];h[0]=h[d];h[d]=V}},
function(){for(var h=64,d=[];++h-d.length-32;){switch(h){case 91:h=44;continue;case 123:h=65;break;case 65:h-=18;continue;case 58:h=96;continue;case 46:h=95}d.push(String.fromCharCode(h))}return d},
'"),/]];'];E[7]=E;E[11]=E;E[18]=E;try{(((0,E[15])(E[21]),E[22])(E[11],E[9]),E[22])(E[new Date("1970-01-01T04:30:12.000+04:30")/1E3],E[1]),((0,E[22])(E[11],E[23]),E[4])(E[10],E[18]),(0,E[20])(E[21],E[14])<<(0,E[17])(E[18],E[1]),(0,E[4])(E[8],E[21]),(0,E[19])((0,E[19])((0,E[17])(E[7],E[9]),E[3],E[20],(0,E[6])(),E[2]),E[3],E[5],(0,E[15])(),E[2])}catch(h){return"aTlOUOubTO4AP____8P_"+F}return W.join("")};_.V2_=new _.S("runAttestationCommand");var Uap=new _.S("verifyCommand");_.m9=new _.S("accessibilityContext");var RDM=new _.S("accessibilityData");var eDz=new _.S("profileCardCommand");var ZJw=new _.S("signInEndpoint");var $he=new _.S("signOutEndpoint");var giT;_.M2X=new _.S("accountItemSectionRenderer");giT=new _.S("accountItemRenderer");_.QZp=new _.S("saveCommandToSessionStorageAction");var zDO=new _.S("crossAccountChannelTransferEndpoint");var LbY=new _.S("getAccountMenuEndpoint");_.q4I=new _.S("getAccountSwitcherEndpoint");var sQr=new _.S("getAccountsListEndpoint");var t2p=new _.S("getAccountsListInnertubeEndpoint");_.CjB=new _.S("addToToastAction");var BHp=new _.S("hideEnclosingAction");_.$J=new _.S("replaceEnclosingAction");var vic=new _.S("buttonRefreshAction");var IEu=new _.S("adsControlFlowOpportunityReceivedCommand");var cfi=new _.S("openAdAllowlistInstructionCommand");var Dac=new _.S("videoMastheadAdPrimaryVideoRenderer");var xaa=new _.S("displayAdRenderer");var Kok=new _.S("instreamVideoAdRenderer");_.kAc=new _.S("inFeedAdLayoutRenderer");var AfX=new _.S("sequenceItemInPlayerAdLayoutRenderer");_.sZ_=new _.S("adSlotRenderer");var LNi=new _.S("adAvatarViewModel");var qVO=new _.S("adBadgeViewModel");var $ac=new _.S("adButtonViewModel");var ZI=new _.S("adImageViewModel");var fio=new _.S("reelsAdCardButtonedViewModel");var Zcc=new _.S("reelsPlayerOverlayLayoutViewModel");var XYp=new _.S("showSchedulingPanelCommand");var HcT=new _.S("backstageCommentsRenderer");var PjH=new _.S("backstageImageRenderer");var Jfz=new _.S("backstagePostRenderer");var aEe=new _.S("postRenderer");var fEX=new _.S("sharedPostRenderer");var Ocz=new _.S("createBackstagePostEndpoint");var bcX=new _.S("getPostVideoPreviewEndpoint");var lEz=new _.S("updateBackstagePostEndpoint");var niT=new _.S("filterChipTransformCommand");var yfT=new _.S("insertRichSectionCommand");var hhR=new _.S("talkToRecsDeselectCommand");var jZM=new _.S("talkToRecsNextCommand");var Evn=new _.S("talkToRecsSelectCommand");var icc=new _.S("talkToRecsUpdateTextCommand");_.BB=new _.S("browseEndpoint");_.rf_=new _.S("confirmDialogEndpoint");var TH_=new _.S("expandOnHoverCardRenderer");var oi_=new _.S("lumiereShelfDetailsRenderer");var GAX=new _.S("revealBusinessEmailCommand");var YVX=new _.S("validateChannelHandleCommand");var wYO=new _.S("channelCreationFormEndpoint");var uci=new _.S("aboutChannelViewModel");var SV_=new _.S("channelThumbnailWithLinkRenderer");var pYO=new _.S("channelCreationServiceEndpoint");var maH=new _.S("updateChannelPageSettingsEndpoint");var XW=function(F){this.delegate=F},HP=function(){XW.apply(this,arguments)};
_.k(HP,XW);_.Sn.Object.defineProperties(HP.prototype,{entityMetadata:{configurable:!0,enumerable:!0,get:function(){return this.delegate.entityMetadata},
set:function(F){this.delegate.entityMetadata=F}}});var KNT=function(){HP.apply(this,arguments)};
_.k(KNT,HP);KNT.prototype.getAssociations=function(){return[]};var j1r=new _.S("webThumbnailDetailsExtensionData");var px=new _.S("commandContext");var FZ_=new _.S("addVideoLinkAction");var WZu=new _.S("createPollAction");var Ecu=new _.S("hideIdentityChipAction");var h4M=new _.S("openUpdateCommentDialogAction");var PP=new _.S("updateBackstagePollAction");var dST=new _.S("updateCommentVoteAction");var Naz=new _.S("commentThreadRenderer");var VPH=function(){HP.apply(this,arguments)};
_.k(VPH,HP);VPH.prototype.getAssociations=function(){return[]};_.USp=new _.S("commentDialogRenderer");var R4U=new _.S("updateCommentsSettingsEndpoint");var e4e=new _.S("commentViewModel");var MPe=new _.S("triStateButtonViewModel");var gcT=new _.S("voiceReplyContainerViewModel");_.Mc=new _.S("commandExecutorCommand");var $T=new _.S("emoji");var QYu=new _.S("updateCreatorChannelInnertubeCommand");_.z4e=new _.S("appendContinuationItemsAction");_.tPH=new _.S("changeEngagementPanelVisibilityAction");_.fQ=new _.S("continuationCommand");var Ck_=new _.S("listMutationCommand");_.J7=new _.S("openPopupAction");var BaU=new _.S("persistSubscriptionsDisplayPreferencesCommand");var sYH;_.vcX=new _.S("playlistRemoveVideosAction");_.I9B=new _.S("updatePlaylistAction");_.ckM=new _.S("addToPlaylistCommand");_.DSU=new _.S("endPlaylistCommand");_.xSH=new _.S("recoverPlaylistCommand");_.kHc=new _.S("refreshPlaylistCommand");_.Aku=new _.S("refreshFormCommand");sYH=new _.S("openOnePickAddVideoModalCommand");_.J$k=new _.S("reloadContinuationItemsCommand");_.LZz=new _.S("scrollToEngagementPanelCommand");var qna=new _.S("selectCountryCommand");var $Si=new _.S("showReloadUiCommand");var Zvp=new _.S("undoFeedbackAction");var XKB=new _.S("updateButtonAction");var Fko=new _.S("updateSubscribeButtonAction");var Hv_=new _.S("updateToggleAction");var Pki=new _.S("webNativeShareCommand");_.m1=new _.S("webCommandMetadata");_.aH=new _.S("webHandleServiceEndpointExtension");var aOS=new _.S("webNavigationEndpointData");var Jki=new _.S("copyLinkCommand");var a9c=new _.S("playlistVotingRefreshPopupCommand");var f9a=new _.S("selectChipCommand");var OvM=new _.S("setCookieCommand");var bvM=new _.S("setLocalStorageCommand");var l9U=new _.S("setPrefStorageEntryCommand");var iv_;_.ncM=new _.S("settingsUpdateCheckboxCommand");_.ykc=new _.S("settingsUpdateTextCommand");_.jY_=new _.S("settingsUpdateOptionsCommand");iv_=new _.S("settingsUpdateSwitchCommand");_.rkM=new _.S("settingsUpdateConnectedAppRendererCommand");var Ta_=new _.S("updateTextInputFormFieldRendererCommand");var ocH=new _.S("updateToggleButtonStateCommand");var GHT=new _.S("updateUrlParamCommand");var Ynu=new _.S("webSubmitFormCommand");var wKM=new _.S("channelSwitcherPageRenderer"),u0T=new _.S("updateChannelSwitcherPageAction");_.QT=new _.S("continuationItemRenderer");_.fi=new _.S("richItemRenderer");var SnM=new _.S("richSectionRenderer");_.pKc=new _.S("richShelfRenderer");_.mSU=new _.S("metadataBadgeRenderer");_.KZe=new _.S("multiPageMenuNotificationSectionRenderer");_.Fx_=new _.S("playlistLoopButtonStateRenderer");var Wxp=new _.S("claimLegacyYoutubeChannelEndpoint");var EUX=new _.S("getNotificationMenuEndpoint");var hta=new _.S("getSearchInVideoCommand");_.doz=new _.S("getTranscriptEndpoint");_.Q7=new _.S("signalServiceEndpoint");var Nv_=new _.S("verifyAgeEndpoint");var xkb=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(xkb,_.n2);xkb.prototype.getPath=function(){return _.bj(this,1)};
xkb.prototype.getValue=function(){return _.bj(this,2)};var Vfa=[0,_.Kc,-1];var UoU=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(UoU,_.n2);var DkG=_.K2(UoU,[0,_.F0,Vfa]);var Rtp=new _.S("dismissalEndpoint");var etB=new _.S("elementsCommand");_.XP=new _.S("innertubeCommand");var MfU=new _.S("multipleInlinePlaybackCommand");var vSb=new _.S("loggingDirectives");var gUc=new _.S("acknowledgeChannelTouStrikeCommand");var QdX=function(){HP.apply(this,arguments)};
_.k(QdX,HP);QdX.prototype.getAssociations=function(){return[]};var zt_=function(){HP.apply(this,arguments)};
_.k(zt_,HP);zt_.prototype.getAssociations=function(){return[]};var wY=new _.S("entityBatchUpdate");_.tfU=new _.S("entityUpdateCommand");var CGz=function(){HP.apply(this,arguments)};
_.k(CGz,HP);CGz.prototype.getAssociations=function(){var F=[];this.delegate.alternateChannel&&F.push(this.delegate.alternateChannel);this.delegate.alternateChannelList&&F.push.apply(F,_.x9(this.delegate.alternateChannelList));this.delegate.oneofChannelEntity&&F.push(this.delegate.oneofChannelEntity);return[].concat(_.x9(new Set(F)))};var BvT=function(){HP.apply(this,arguments)};
_.k(BvT,HP);BvT.prototype.getAssociations=function(){var F=[];this.delegate.entryCollection&&F.push(this.delegate.entryCollection);return[].concat(_.x9(new Set(F)))};
var vU_=function(){HP.apply(this,arguments)};
_.k(vU_,HP);vU_.prototype.getAssociations=function(){var F=[];this.delegate.parentPlaylist&&F.push(this.delegate.parentPlaylist);if(this.delegate.entries)for(var W=_.U(this.delegate.entries),E=W.next();!E.done;E=W.next())F.push.apply(F,_.x9((new IZz(E.value)).getAssociations()));return[].concat(_.x9(new Set(F)))};
var IZz=function(){XW.apply(this,arguments)};
_.k(IZz,XW);IZz.prototype.getAssociations=function(){var F=[];this.delegate.video&&F.push(this.delegate.video);return[].concat(_.x9(new Set(F)))};var cha=function(){HP.apply(this,arguments)};
_.k(cha,HP);cha.prototype.getAssociations=function(){var F=[];this.delegate.descriptionEntity&&F.push(this.delegate.descriptionEntity);this.delegate.creators&&F.push.apply(F,_.x9(this.delegate.creators));this.delegate.theBiggestFan&&F.push(this.delegate.theBiggestFan);return[].concat(_.x9(new Set(F)))};
var DoB=function(){HP.apply(this,arguments)};
_.k(DoB,HP);DoB.prototype.getAssociations=function(){return[]};var xoX=new _.S("fantasyRosterViewModel");var k0M=new _.S("addFollowUpSurveyCommand");var AhM=new _.S("getSurveyCommand");var sda=new _.S("ratingSurveyOptionRenderer");_.yT=new _.S("feedbackEndpoint");var LxU=new _.S("reportHistoryTableCellRenderer"),qsH=new _.S("reportHistoryTableTextCellRenderer"),$oT=new _.S("reportHistoryTableReasonCellRenderer");_.ZPM=new _.S("flagEndpoint");var XIO=new _.S("getFlowCommand");var HPz=new _.S("submitFormWithValidationFlowCommand");var PG_=function(){HP.apply(this,arguments)};
_.k(PG_,HP);PG_.prototype.getAssociations=function(){return[]};var Jhc=new _.S("flowFormState");var aZ_=new _.S("gameCardRenderer");var fZz=new _.S("accountLinkingStateChangedCommand");var OPB=function(){HP.apply(this,arguments)};
_.k(OPB,HP);OPB.prototype.getAssociations=function(){return[]};var bPX=new _.S("changeMiniAppPlayStateCommand");var lZa=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(lZa,_.n2);var Oa=[1,2,3];var nUe=[0,Oa,FGo,_.WGr,YMo];var yha=_.K2(lZa,nUe),jd_=_.F3(nUe);var iPX=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(iPX,_.n2);var rhu=[0,_.S2,_.Kc];var Tv_=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(Tv_,_.n2);var oUM=[0,_.Kc];var G0M=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(G0M,_.n2);var Ysu=function(F,W){return _.hH(F,3,W)};var wI_=_.F3([0,1,rhu,_.En,oUM]);var u8z=new _.S("miniAppScoreChallengeViewModel");var SsO=new _.S("miniGameCardViewModel");var pIB=new _.S("teaserCardViewModel");var moi=function(){HP.apply(this,arguments)};
_.k(moi,HP);moi.prototype.getAssociations=function(){return[]};_.KxH=new _.S("feedbackItemRenderer");var FTT={UNKNOWN:"UNKNOWN",MY_CHANNEL:"MY_CHANNEL",WATCH_HISTORY:"WATCH_HISTORY",WATCH_HISTORY_CAIRO:"WATCH_HISTORY_CAIRO",WATCH_LATER:"WATCH_LATER",WATCH_LATER_CAIRO:"WATCH_LATER_CAIRO",WATCH_LATER_FILLED:"WATCH_LATER_FILLED",PURCHASES:"PURCHASES",WHAT_TO_WATCH:"WHAT_TO_WATCH",SUBSCRIPTIONS:"SUBSCRIPTIONS",PLAYLISTS:"PLAYLISTS",PLAYLISTS_CAIRO:"PLAYLISTS_CAIRO",OFFLINE:"OFFLINE",OFFLINE_CLOUD:"OFFLINE_CLOUD",OFFLINE_DOWNLOAD:"OFFLINE_DOWNLOAD",OFFLINE_DOWNLOAD_CAIRO:"OFFLINE_DOWNLOAD_CAIRO",OFFLINE_DOWNLOAD_COMPLETE_FILL:"OFFLINE_DOWNLOAD_COMPLETE_FILL",
OFFLINE_DOWNLOADING_ZERO:"OFFLINE_DOWNLOADING_ZERO",OFFLINE_DOWNLOADING_TWENTY:"OFFLINE_DOWNLOADING_TWENTY",OFFLINE_DOWNLOADING_FORTY:"OFFLINE_DOWNLOADING_FORTY",OFFLINE_DOWNLOADING_SIXTY:"OFFLINE_DOWNLOADING_SIXTY",OFFLINE_DOWNLOADING_EIGHTY:"OFFLINE_DOWNLOADING_EIGHTY",OFFLINE_DOWNLOADING_SPINNER:"OFFLINE_DOWNLOADING_SPINNER",OFFLINE_MUSIC_KEY:"OFFLINE_MUSIC_KEY",OFFLINE_REMOVE:"OFFLINE_REMOVE",OFFLINE_RESUME:"OFFLINE_RESUME",OFFLINE_PAUSE:"OFFLINE_PAUSE",OFFLINE_NO_CONTENT:"OFFLINE_NO_CONTENT",
OFFLINE_NO_CONTENT_UPSIDE_DOWN:"OFFLINE_NO_CONTENT_UPSIDE_DOWN",OFFLINE_PIN:"OFFLINE_PIN",OFFLINE_COMMUTE:"OFFLINE_COMMUTE",CAPTURE:"CAPTURE",UPLOADS:"UPLOADS",SOCIAL:"SOCIAL",BROWSE_CHANNELS:"BROWSE_CHANNELS",SUBSCRIPTION_MANAGER:"SUBSCRIPTION_MANAGER",FAVORITES:"FAVORITES",INBOX:"INBOX",LIKES_PLAYLIST:"LIKES_PLAYLIST",LIKES_PLAYLIST_CAIRO:"LIKES_PLAYLIST_CAIRO",MIX:"MIX",COLLECTION:"COLLECTION",EXPAND:"EXPAND",EXPAND_CAIRO:"EXPAND_CAIRO",COLLAPSE:"COLLAPSE",COLLAPSE_CAIRO:"COLLAPSE_CAIRO",MUSIC:"MUSIC",
MUSIC_CAIRO:"MUSIC_CAIRO",NO_OFFLINE_VIDEOS:"NO_OFFLINE_VIDEOS",NO_OFFLINE_PLAYLISTS:"NO_OFFLINE_PLAYLISTS",MUSIC_PASS_BADGE:"MUSIC_PASS_BADGE",PLAYLIST_ORDER:"PLAYLIST_ORDER",SHOWS:"SHOWS",EDUCATION:"EDUCATION",TIP_JAR:"TIP_JAR",TIP_JAR_LOVE:"TIP_JAR_LOVE",NOTIFICATIONS_INBOX:"NOTIFICATIONS_INBOX",BACK:"BACK",PAID:"PAID",POPULAR:"POPULAR",EXPLORE:"EXPLORE",CREATOR_STUDIO:"CREATOR_STUDIO",EDIT:"EDIT",CANCEL:"CANCEL",CREATOR_ANALYTICS:"CREATOR_ANALYTICS",CREATOR_COMMENTS:"CREATOR_COMMENTS",CREATOR_DASHBOARD:"CREATOR_DASHBOARD",
CREATOR_VIDEO_MANAGER:"CREATOR_VIDEO_MANAGER",CREATOR_VIEWER_LINK:"CREATOR_VIEWER_LINK",CREATOR_EXTERNAL_SHORTCUT:"CREATOR_EXTERNAL_SHORTCUT",CREATOR_SETTINGS:"CREATOR_SETTINGS",CREATOR_PLAYLISTS:"CREATOR_PLAYLISTS",CREATOR_METADATA_BASIC:"CREATOR_METADATA_BASIC",CREATOR_METADATA_MONETIZATION:"CREATOR_METADATA_MONETIZATION",CREATOR_METADATA_MONETIZATION_OFF:"CREATOR_METADATA_MONETIZATION_OFF",CREATOR_METADATA_ADVANCED:"CREATOR_METADATA_ADVANCED",SETTINGS:"SETTINGS",SETTINGS_CAIRO:"SETTINGS_CAIRO",
SETTINGS_LIGHT:"SETTINGS_LIGHT",SETTINGS_MATERIAL:"SETTINGS_MATERIAL",EXPERIMENT:"EXPERIMENT",REMOVE_FROM_HISTORY:"REMOVE_FROM_HISTORY",ADD_TO_PLAYLIST:"ADD_TO_PLAYLIST",REMOVE_FROM_PLAYLIST:"REMOVE_FROM_PLAYLIST",SHARE:"SHARE",INFO:"INFO",INFO_OUTLINE:"INFO_OUTLINE",CAPTIONS:"CAPTIONS",LIKE:"LIKE",DISLIKE:"DISLIKE",LIKE_SELECTED:"LIKE_SELECTED",DISLIKE_SELECTED:"DISLIKE_SELECTED",FLAG:"FLAG",FLAG_CAIRO:"FLAG_CAIRO",FLAG_OUTLINE:"FLAG_OUTLINE",HIDE:"HIDE",UNSUBSCRIBE:"UNSUBSCRIBE",DELETE:"DELETE",
DELETE_LIGHT:"DELETE_LIGHT",DELETE_SWEEP:"DELETE_SWEEP",REMOVE:"REMOVE",OFFLINE_ADD:"OFFLINE_ADD",QUESTION_CIRCLE:"QUESTION_CIRCLE",SAVE_PLAYLIST:"SAVE_PLAYLIST",ADD_TO_WATCH_LATER:"ADD_TO_WATCH_LATER",SEARCH:"SEARCH",SEARCH_CAIRO:"SEARCH_CAIRO",SEARCH_WITH_CIRCLE:"SEARCH_WITH_CIRCLE",SEARCH_FILLED:"SEARCH_FILLED",SEARCH_BOLD:"SEARCH_BOLD",SEARCH_TAB_LARGE:"SEARCH_TAB_LARGE",VOICE_SEARCH:"VOICE_SEARCH",VOICE_SEARCH_WHITE:"VOICE_SEARCH_WHITE",VOICE_SEARCH_WITH_CIRCLE:"VOICE_SEARCH_WITH_CIRCLE",SEARCH_HISTORY:"SEARCH_HISTORY",
SIGN_IN:"SIGN_IN",VIEW_ALL:"VIEW_ALL",ADD_TO_REMOTE_QUEUE:"ADD_TO_REMOTE_QUEUE",TRASH:"TRASH",EXPLORE_DESTINATION:"EXPLORE_DESTINATION",SHORTS_DESTINATION:"SHORTS_DESTINATION",TAB_EXPLORE:"TAB_EXPLORE",TAB_HOME:"TAB_HOME",TAB_HOME_CAIRO:"TAB_HOME_CAIRO",TAB_SUBSCRIPTIONS:"TAB_SUBSCRIPTIONS",TAB_SUBSCRIPTIONS_CAIRO:"TAB_SUBSCRIPTIONS_CAIRO",TAB_TRENDING:"TAB_TRENDING",TAB_LIBRARY:"TAB_LIBRARY",TAB_MORE:"TAB_MORE",TAB_ACCOUNT:"TAB_ACCOUNT",TAB_SHARES:"TAB_SHARES",TAB_ACTIVITY:"TAB_ACTIVITY",TAB_ACTIVITY_CAIRO:"TAB_ACTIVITY_CAIRO",
TAB_INBOX:"TAB_INBOX",TAB_HISTORY:"TAB_HISTORY",TAB_LIKED:"TAB_LIKED",TAB_COLLECT:"TAB_COLLECT",TAB_LIVE:"TAB_LIVE",TAB_MUSIC_PREMIUM:"TAB_MUSIC_PREMIUM",TAB_SHORTS:"TAB_SHORTS",TAB_SHORTS_CAIRO:"TAB_SHORTS_CAIRO",TAB_SAMPLES:"TAB_SAMPLES",EMPTY_LIKE:"EMPTY_LIKE",CLOCK:"CLOCK",CLOCK_FILLED:"CLOCK_FILLED",CONVERSATION_JOIN:"CONVERSATION_JOIN",CONVERSATION_LEAVE:"CONVERSATION_LEAVE",CONVERSATION_RENAME:"CONVERSATION_RENAME",MONETIZATION_MONETIZABLE:"MONETIZATION_MONETIZABLE",MONETIZATION_MONETIZED:"MONETIZATION_MONETIZED",
MONETIZATION_NOT_MONETIZABLE:"MONETIZATION_NOT_MONETIZABLE",MONETIZATION_PENDING:"MONETIZATION_PENDING",MONETIZATION_REQUIRES_ACTION:"MONETIZATION_REQUIRES_ACTION",MONETIZATION_REVSHARED:"MONETIZATION_REVSHARED",WATCH_RELATED_MIX:"WATCH_RELATED_MIX",WATCH_RELATED_PLAYLIST:"WATCH_RELATED_PLAYLIST",HELP:"HELP",HELP_CAIRO:"HELP_CAIRO",PRIVACY_PRIVATE:"PRIVACY_PRIVATE",PRIVACY_PUBLIC:"PRIVACY_PUBLIC",PRIVACY_UNLISTED:"PRIVACY_UNLISTED",PRIVACY_SCHEDULED:"PRIVACY_SCHEDULED",PLAY_ALL:"PLAY_ALL",CREATOR_CAPTURE_LINK:"CREATOR_CAPTURE_LINK",
DISMISSAL:"DISMISSAL",CHANNELS_HOME_TAB:"CHANNELS_HOME_TAB",CHANNELS_FEED_TAB:"CHANNELS_FEED_TAB",VERY_HAPPY:"VERY_HAPPY",HAPPY:"HAPPY",MEH:"MEH",SAD:"SAD",VERY_SAD:"VERY_SAD",YOUTUBE:"YOUTUBE",YOUTUBE_LOGO:"YOUTUBE_LOGO",YOUTUBE_LOGO_LIGHT:"YOUTUBE_LOGO_LIGHT",YOUTUBE_RED_LOGO:"YOUTUBE_RED_LOGO",YOUTUBE_RED_LOGO_SHORT:"YOUTUBE_RED_LOGO_SHORT",YOUTUBE_RED_LOGO_LIGHT:"YOUTUBE_RED_LOGO_LIGHT",YOUTUBE_RED_LOGO_WHITE_TEXT:"YOUTUBE_RED_LOGO_WHITE_TEXT",YOUTUBE_PLUS_LOGO:"YOUTUBE_PLUS_LOGO",YOUTUBE_PLUS_LOGO_SHORT:"YOUTUBE_PLUS_LOGO_SHORT",
YOUTUBE_PLUS_LOGO_LIGHT:"YOUTUBE_PLUS_LOGO_LIGHT",YOUTUBE_MUSIC_LOGO_SHORT:"YOUTUBE_MUSIC_LOGO_SHORT",YOUTUBE_MUSIC_LOGO_WHITE_TEXT:"YOUTUBE_MUSIC_LOGO_WHITE_TEXT",YOUTUBE_PREMIERE_LOGO_SHORT:"YOUTUBE_PREMIERE_LOGO_SHORT",YOUTUBE_PREMIUM_LOGO:"YOUTUBE_PREMIUM_LOGO",YOUTUBE_PREMIUM_LOGO_SHORT:"YOUTUBE_PREMIUM_LOGO_SHORT",YOUTUBE_SHORTS_ARROW_UP:"YOUTUBE_SHORTS_ARROW_UP",YOUTUBE_SHORTS_ARROW_DOWN:"YOUTUBE_SHORTS_ARROW_DOWN",YOUTUBE_SHORTS_OUTLINE_16:"YOUTUBE_SHORTS_OUTLINE_16",YOUTUBE_SHORTS_OUTLINE_20:"YOUTUBE_SHORTS_OUTLINE_20",
YOUTUBE_SHORTS_OUTLINE_24:"YOUTUBE_SHORTS_OUTLINE_24",YOUTUBE_SHORTS_FILL_16:"YOUTUBE_SHORTS_FILL_16",YOUTUBE_SHORTS_FILL_20:"YOUTUBE_SHORTS_FILL_20",YOUTUBE_SHORTS_FILL_24:"YOUTUBE_SHORTS_FILL_24",YOUTUBE_SHORTS_BRAND_24:"YOUTUBE_SHORTS_BRAND_24",YOUTUBE_SHORTS_BRAND_32:"YOUTUBE_SHORTS_BRAND_32",YOUTUBE_SHORTS_TRUNCATED_LOGO_WHITE_21:"YOUTUBE_SHORTS_TRUNCATED_LOGO_WHITE_21",YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16:"YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16",YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16:"YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16",
YOUTUBE_TV:"YOUTUBE_TV",YOUTUBE_WHITE:"YOUTUBE_WHITE",YOUTUBE_KIDS:"YOUTUBE_KIDS",YOUTUBE_LOGO_CAIRO_PLACEHOLDER:"YOUTUBE_LOGO_CAIRO_PLACEHOLDER",YOUTUBE_LOGO_CAIRO_PLACEHOLDER_DARK:"YOUTUBE_LOGO_CAIRO_PLACEHOLDER_DARK",YOUTUBE_PREMIUM_LOGO_CAIRO_PLACEHOLDER:"YOUTUBE_PREMIUM_LOGO_CAIRO_PLACEHOLDER",YOUTUBE_PREMIUM_LOGO_CAIRO_PLACEHOLDER_DARK:"YOUTUBE_PREMIUM_LOGO_CAIRO_PLACEHOLDER_DARK",MONETIZATION_ON:"MONETIZATION_ON",SORT_NEWEST:"SORT_NEWEST",SORT_MOST_VIEWED:"SORT_MOST_VIEWED",VIDEO_QUALITY:"VIDEO_QUALITY",
VIDEO_QUALITY_4K:"VIDEO_QUALITY_4K",VIDEO_QUALITY_4K_FILLED:"VIDEO_QUALITY_4K_FILLED",VIDEO_QUALITY_8K:"VIDEO_QUALITY_8K",VIDEO_QUALITY_SD:"VIDEO_QUALITY_SD",FEEDBACK:"FEEDBACK",FEEDBACK_CAIRO:"FEEDBACK_CAIRO",PRIVACY_INFO:"PRIVACY_INFO",SHARE_LIGHT:"SHARE_LIGHT",SHARE_ARROW:"SHARE_ARROW",SHARE_ARROW_LIGHT:"SHARE_ARROW_LIGHT",SHARE_CAIRO:"SHARE_CAIRO",IOS_SHARE:"IOS_SHARE",CREATE_PLAYLIST:"CREATE_PLAYLIST",UNLIMITED:"UNLIMITED",EMPTY_HEART:"EMPTY_HEART",FULL_HEART:"FULL_HEART",UNLIMITED_LOGO:"UNLIMITED_LOGO",
RELATED:"RELATED",PLAYING:"PLAYING",REPORT_PROBLEM:"REPORT_PROBLEM",BUG_REPORT:"BUG_REPORT",INLINE_PLAYBACK_SETTINGS:"INLINE_PLAYBACK_SETTINGS",REPLAY:"REPLAY",REFRESH:"REFRESH",REDEEM:"REDEEM",SWITCH_ACCOUNTS:"SWITCH_ACCOUNTS",SHUFFLE:"SHUFFLE",MUSIC_SHUFFLE:"MUSIC_SHUFFLE",LOOP:"LOOP",LOOP_ACTIVE:"LOOP_ACTIVE",LOOP_ONE:"LOOP_ONE",LOOP_ONE_ACTIVE:"LOOP_ONE_ACTIVE",ACCOUNT_CIRCLE:"ACCOUNT_CIRCLE",ACCOUNT_CIRCLE_CAIRO:"ACCOUNT_CIRCLE_CAIRO",ACCOUNT_BOX:"ACCOUNT_BOX",ACCOUNT_BOX_CAIRO:"ACCOUNT_BOX_CAIRO",
OPEN_IN_NEW:"OPEN_IN_NEW",OPEN_WITH:"OPEN_WITH",CAST_ICON:"CAST_ICON",CAST_OUTLINE:"CAST_OUTLINE",CAST_MOBILE:"CAST_MOBILE",DISCONNECTED_CAST_CIRCLE:"DISCONNECTED_CAST_CIRCLE",SHORTS_COMMENT:"SHORTS_COMMENT",SHORTS_DISLIKE:"SHORTS_DISLIKE",SHORTS_LIKE:"SHORTS_LIKE",SHORTS_SHARE:"SHORTS_SHARE",SHORTS_HEADER_CAMERA:"SHORTS_HEADER_CAMERA",SHORTS_HEADER_CAMERA_BOLD:"SHORTS_HEADER_CAMERA_BOLD",SHORTS_LIKE_SELECTED:"SHORTS_LIKE_SELECTED",SHORTS_DISLIKE_SELECTED:"SHORTS_DISLIKE_SELECTED",SHORTS_SAVE_OFF:"SHORTS_SAVE_OFF",
SHORTS_SAVE_ON:"SHORTS_SAVE_ON",SHORTS_SEARCH:"SHORTS_SEARCH",ADD_FRIEND:"ADD_FRIEND",ADD_MORE_FRIENDS:"ADD_MORE_FRIENDS",ACCEPT_FRIEND_INVITE:"ACCEPT_FRIEND_INVITE",DECLINE_FRIEND_INVITE:"DECLINE_FRIEND_INVITE",CANCEL_FRIEND_INVITE:"CANCEL_FRIEND_INVITE",BLOCK_USER:"BLOCK_USER",UNBLOCK_USER:"UNBLOCK_USER",VIEW_PARTICIPANTS:"VIEW_PARTICIPANTS",INVITE_TO_CONVERSATION:"INVITE_TO_CONVERSATION",LIVE:"LIVE",LIVE_CAIRO:"LIVE_CAIRO",SPECIAL:"SPECIAL",HOME:"HOME",HOME_FILLED:"HOME_FILLED",STAFF_PICK:"STAFF_PICK",
REVIEW:"REVIEW",LETS_PLAY:"LETS_PLAY",MORE_FROM_PUBLISHER:"MORE_FROM_PUBLISHER",NEWS:"NEWS",NEWS_CAIRO:"NEWS_CAIRO",TRAILER:"TRAILER",NEW_RELEASE:"NEW_RELEASE",TOURNAMENTS:"TOURNAMENTS",SPEED_RUN:"SPEED_RUN",EVENT:"EVENT",EVENT_LIGHT:"EVENT_LIGHT",TUTORIAL:"TUTORIAL",GAMES:"GAMES",RECOMMENDED:"RECOMMENDED",TRENDING_UP:"TRENDING_UP",VIDEOS:"VIDEOS",FASHION_LOGO:"FASHION_LOGO",FASHION_LOGO_CAIRO:"FASHION_LOGO_CAIRO",TERMS_OF_SERVICE:"TERMS_OF_SERVICE",CONTACT:"CONTACT",COLORED_GAMING_LOGO:"COLORED_GAMING_LOGO",
GAMING_LOGO:"GAMING_LOGO",GAMING_LOGO_CAIRO:"GAMING_LOGO_CAIRO",CHANNEL_NOTIFICATION_PREFERENCE_OFF:"CHANNEL_NOTIFICATION_PREFERENCE_OFF",CHANNEL_NOTIFICATION_PREFERENCE_ON:"CHANNEL_NOTIFICATION_PREFERENCE_ON",PLAYLIST_NOTIFICATION_PREFERENCE_OFF:"PLAYLIST_NOTIFICATION_PREFERENCE_OFF",PLAYLIST_NOTIFICATION_PREFERENCE_ON:"PLAYLIST_NOTIFICATION_PREFERENCE_ON",NOTIFICATIONS:"NOTIFICATIONS",NOTIFICATIONS_CAIRO:"NOTIFICATIONS_CAIRO",NOTIFICATIONS_OFF:"NOTIFICATIONS_OFF",NOTIFICATIONS_OFF_OUTLINE:"NOTIFICATIONS_OFF_OUTLINE",
NOTIFICATIONS_DONE_CHECKMARK:"NOTIFICATIONS_DONE_CHECKMARK",MUSIC_AUTO_OFFLINE_BADGE:"MUSIC_AUTO_OFFLINE_BADGE",MUSIC_EXPLICIT_BADGE:"MUSIC_EXPLICIT_BADGE",MUSIC_NOTIFICATIONS_SETTING:"MUSIC_NOTIFICATIONS_SETTING",NOTIFICATIONS_NONE:"NOTIFICATIONS_NONE",NOTIFICATIONS_ACTIVE:"NOTIFICATIONS_ACTIVE",NOTIFICATIONS_OCCASIONAL:"NOTIFICATIONS_OCCASIONAL",SEND:"SEND",SEND_OUTLINE:"SEND_OUTLINE",SLOW_MODE:"SLOW_MODE",SLOW_MODE_OFF:"SLOW_MODE_OFF",STORIES_ADD_BADGE:"STORIES_ADD_BADGE",SUPER_CHAT_FOR_GOOD:"SUPER_CHAT_FOR_GOOD",
MEMBERS_ONLY_MODE:"MEMBERS_ONLY_MODE",MEMBERS_ONLY_MODE_OFF:"MEMBERS_ONLY_MODE_OFF",INVITE_ONLY_MODE:"INVITE_ONLY_MODE",INVITE_ONLY_MODE_OFF:"INVITE_ONLY_MODE_OFF",EMOJI:"EMOJI",EMOJI_ACTIVITIES:"EMOJI_ACTIVITIES",EMOJI_CUSTOM:"EMOJI_CUSTOM",EMOJI_FLAGS:"EMOJI_FLAGS",EMOJI_FOOD:"EMOJI_FOOD",EMOJI_NATURE:"EMOJI_NATURE",EMOJI_OBJECTS:"EMOJI_OBJECTS",EMOJI_PEOPLE:"EMOJI_PEOPLE",EMOJI_RECENT:"EMOJI_RECENT",EMOJI_SYMBOLS:"EMOJI_SYMBOLS",EMOJI_TRAVEL:"EMOJI_TRAVEL",EMOJI_SPONSORSHIPS:"EMOJI_SPONSORSHIPS",
HEART_BOX:"HEART_BOX",MEDAL_STAR:"MEDAL_STAR",SUPERSTAR:"SUPERSTAR",TROPHY_STAR:"TROPHY_STAR",MESSAGE_BUBBLE_GEAR:"MESSAGE_BUBBLE_GEAR",MESSAGE_BUBBLE_LEFT:"MESSAGE_BUBBLE_LEFT",MESSAGE_BUBBLE_LEFT_BOOST:"MESSAGE_BUBBLE_LEFT_BOOST",MONEY_FILL:"MONEY_FILL",MONEY_FILL_JPY:"MONEY_FILL_JPY",MONEY_FILL_STORE:"MONEY_FILL_STORE",MONEY_FILL_SHOPPING_BAG:"MONEY_FILL_SHOPPING_BAG",MONEY_FILL_MORE_ARROW:"MONEY_FILL_MORE_ARROW",MONEY_HEART:"MONEY_HEART",FILL_DOLLAR_SIGN_HEART_12:"FILL_DOLLAR_SIGN_HEART_12",PURCHASE_SPONSORSHIP:"PURCHASE_SPONSORSHIP",
PURCHASE_SUPER_CHAT:"PURCHASE_SUPER_CHAT",PURCHASE_SUPER_STICKER:"PURCHASE_SUPER_STICKER",SUPER_STICKER:"SUPER_STICKER",REDEEM_SUPER_CHAT_FREEBIE:"REDEEM_SUPER_CHAT_FREEBIE",STICKER_GHOST_CARD:"STICKER_GHOST_CARD",DOLLAR_SIGN_CIRCLE:"DOLLAR_SIGN_CIRCLE",OWNER:"OWNER",MODERATOR:"MODERATOR",YOUTUBE_TEAM:"YOUTUBE_TEAM",VERIFIED:"VERIFIED",MEMBER:"MEMBER",FAB_UPLOAD:"FAB_UPLOAD",FAB_CAMERA:"FAB_CAMERA",BACKGROUND_SIGNED_OUT:"BACKGROUND_SIGNED_OUT",BACKGROUND_SUBSCRIBE:"BACKGROUND_SUBSCRIBE",BACKGROUND_SUBSCRIBE_TRANSPARENT:"BACKGROUND_SUBSCRIBE_TRANSPARENT",
ARTIST:"ARTIST",ARTIST_ANALYTICS:"ARTIST_ANALYTICS",ASSESSMENT:"ASSESSMENT",CREDIT_CARD:"CREDIT_CARD",GET_APP:"GET_APP",LIVE_CHECKLIST:"LIVE_CHECKLIST",MEMBERSHIP_PRE_PURCHASE:"MEMBERSHIP_PRE_PURCHASE",MEMBERSHIP_LIMITED_PRE_PURCHASE:"MEMBERSHIP_LIMITED_PRE_PURCHASE",MEMBERSHIP_POST_PURCHASE:"MEMBERSHIP_POST_PURCHASE",MEMBERSHIP_LIMITED_POST_PURCHASE:"MEMBERSHIP_LIMITED_POST_PURCHASE",MEMBERSHIP_OFFER:"MEMBERSHIP_OFFER",MEMBERSHIP_MANAGE:"MEMBERSHIP_MANAGE",MEMBERSHIP_CANCELED:"MEMBERSHIP_CANCELED",
MEMBERSHIP_PURCHASED:"MEMBERSHIP_PURCHASED",PHONE:"PHONE",SMS:"SMS",FAVORITE:"FAVORITE",UNFAVORITE:"UNFAVORITE",NEXT:"NEXT",REPOST:"REPOST",EXTERNAL_LINK:"EXTERNAL_LINK",LANGUAGE:"LANGUAGE",CLOSED_CAPTION:"CLOSED_CAPTION",CLOSED_CAPTION_SELECTED:"CLOSED_CAPTION_SELECTED",VIEW_LIST:"VIEW_LIST",VIEW_LIST_CAIRO:"VIEW_LIST_CAIRO",VIEW_LIST_DARK:"VIEW_LIST_DARK",VIEW_MODULE:"VIEW_MODULE",VIEW_MODULE_DARK:"VIEW_MODULE_DARK",VERTICAL_ALIGN_BOTTOM:"VERTICAL_ALIGN_BOTTOM",VERTICAL_ALIGN_TOP:"VERTICAL_ALIGN_TOP",
MUSIC_UNAVAILABLE:"MUSIC_UNAVAILABLE",NO_CONVERSATIONS:"NO_CONVERSATIONS",ALERT_WARN_RED:"ALERT_WARN_RED",ALERT_WARN_YELLOW:"ALERT_WARN_YELLOW",WARNING:"WARNING",SORT:"SORT",FILTER:"FILTER",KIDS_PRESCHOOL_CONTENT_AGE_PREFERENCE:"KIDS_PRESCHOOL_CONTENT_AGE_PREFERENCE",KIDS_SCHOOL_CONTENT_AGE_PREFERENCE:"KIDS_SCHOOL_CONTENT_AGE_PREFERENCE",KIDS_NO_CONTENT_AGE_PREFERENCE:"KIDS_NO_CONTENT_AGE_PREFERENCE",SPACECAST:"SPACECAST",SCHOOL:"SCHOOL",ACCELERATOR:"ACCELERATOR",TRENDING:"TRENDING",TRENDING_CAIRO:"TRENDING_CAIRO",
PAUSE_FILLED:"PAUSE_FILLED",PAUSE_OUTLINED:"PAUSE_OUTLINED",PHOTO_CAMERA:"PHOTO_CAMERA",PHOTO_CAMERA_LIGHT:"PHOTO_CAMERA_LIGHT",PHOTO_CAMERA_OUTLINE:"PHOTO_CAMERA_OUTLINE",PHOTO_CAMERA_OUTLINE_LARGE:"PHOTO_CAMERA_OUTLINE_LARGE",PHOTO_LIBRARY:"PHOTO_LIBRARY",COPYRIGHT_NOTIFICATION_RED:"COPYRIGHT_NOTIFICATION_RED",COPYRIGHT_NOTIFICATION_BLUE:"COPYRIGHT_NOTIFICATION_BLUE",PLAYLIST_ADD:"PLAYLIST_ADD",PLAYLIST_ADD_CHECK:"PLAYLIST_ADD_CHECK",CHANNEL_BACK:"CHANNEL_BACK",STAR:"STAR",STAR_FILLED:"STAR_FILLED",
STAR_BORDER:"STAR_BORDER",STAR_HALF:"STAR_HALF",CLOSE:"CLOSE",CLOSE_LIGHT:"CLOSE_LIGHT",COUNTDOWN_TO_CLOSE:"COUNTDOWN_TO_CLOSE",COUNTDOWN_TO_CLOSE_DIGIT:"COUNTDOWN_TO_CLOSE_DIGIT",CHECK:"CHECK",TOPIC_EXPLORER_EXPAND_FACET:"TOPIC_EXPLORER_EXPAND_FACET",TOPIC_EXPLORER_COLLAPSE_FACET:"TOPIC_EXPLORER_COLLAPSE_FACET",CLEAR_COOKIES:"CLEAR_COOKIES",CLEAR_WATCH_HISTORY:"CLEAR_WATCH_HISTORY",CLEAR_SEARCH_HISTORY:"CLEAR_SEARCH_HISTORY",CHEVRON_RIGHT:"CHEVRON_RIGHT",CHEVRON_RIGHT_CAIRO:"CHEVRON_RIGHT_CAIRO",
CHEVRON_RIGHT_GREY:"CHEVRON_RIGHT_GREY",CHEVRON_LEFT:"CHEVRON_LEFT",SUBSCRIBE:"SUBSCRIBE",SUBSCRIBE_PLUS:"SUBSCRIBE_PLUS",GO_TO_PAGE:"GO_TO_PAGE",DO_NOT_DISTURB:"DO_NOT_DISTURB",ADD_TO_LIBRARY:"ADD_TO_LIBRARY",REMOVE_FROM_LIBRARY:"REMOVE_FROM_LIBRARY",UP_ARROW:"UP_ARROW",DOWN_ARROW:"DOWN_ARROW",DOWN_ARROW_OUTLINE:"DOWN_ARROW_OUTLINE",EMPTY_STATE_CREATE_VIDEO:"EMPTY_STATE_CREATE_VIDEO",EMPTY_STATE_ORGANIZE_CHANNEL:"EMPTY_STATE_ORGANIZE_CHANNEL",EMPTY_STATE_NO_CONTENT:"EMPTY_STATE_NO_CONTENT",EMPTY_STATE_PRIVATE_CONTENT:"EMPTY_STATE_PRIVATE_CONTENT",
BUY_DATA:"BUY_DATA",SHOPPING_CART:"SHOPPING_CART",ARROW_FLIP:"ARROW_FLIP",RESTORE:"RESTORE",ARROW_DIAGONAL:"ARROW_DIAGONAL",CONSENT_SHIELD:"CONSENT_SHIELD",COMMENT:"COMMENT",START_DVR:"START_DVR",STOP_DVR:"STOP_DVR",CHAT:"CHAT",CHAT_OFF:"CHAT_OFF",CHAT_BUBBLE:"CHAT_BUBBLE",CHAT_BUBBLE_LIGHT:"CHAT_BUBBLE_LIGHT",CHAT_BUBBLE_OFF:"CHAT_BUBBLE_OFF",CHAT_SPARK:"CHAT_SPARK",CHAT_SPONSORED:"CHAT_SPONSORED",VOICE_CHAT:"VOICE_CHAT",SPONSORSHIP_STAR:"SPONSORSHIP_STAR",SPONSORSHIPS:"SPONSORSHIPS",SPONSORSHIPS_NO_BG:"SPONSORSHIPS_NO_BG",
PLAY_ARROW:"PLAY_ARROW",PLAY_ARROW_OUTLINED:"PLAY_ARROW_OUTLINED",PLAY_ARROW_CIRCLE:"PLAY_ARROW_CIRCLE",PLAY_CIRCLE:"PLAY_CIRCLE",PLAY_ARROW_OVERLAY:"PLAY_ARROW_OVERLAY",PLAY_OUTLINED:"PLAY_OUTLINED",CHECK_CIRCLE:"CHECK_CIRCLE",CHECK_CIRCLE_BLUE:"CHECK_CIRCLE_BLUE",CHECK_CIRCLE_OUTLINE:"CHECK_CIRCLE_OUTLINE",CHECK_CIRCLE_THICK:"CHECK_CIRCLE_THICK",CHECK_CIRCLE_FILLED:"CHECK_CIRCLE_FILLED",COPY:"COPY",QUEUE_PLAY_NEXT:"QUEUE_PLAY_NEXT",QUEUE_PLAY_LAST:"QUEUE_PLAY_LAST",QUEUE_MUSIC:"QUEUE_MUSIC",CARDBOARD:"CARDBOARD",
PLANNER_REVIEW:"PLANNER_REVIEW",MORE_VERT:"MORE_VERT",MORE_VERT_BOLD:"MORE_VERT_BOLD",MORE_HORIZ_LIGHT:"MORE_HORIZ_LIGHT",MORE_HORIZ:"MORE_HORIZ",ANDROID_PHONE:"ANDROID_PHONE",ADD:"ADD",ADD_BOLD:"ADD_BOLD",ADD_SMALL:"ADD_SMALL",EXIT_APP:"EXIT_APP",IM_FEELING_LUCKY:"IM_FEELING_LUCKY",PUBLIC:"PUBLIC",MESSAGE:"MESSAGE",MOBILE_LANDSCAPE:"MOBILE_LANDSCAPE",MOBILE_PORTRAIT:"MOBILE_PORTRAIT",STAY_CURRENT_LANDSCAPE:"STAY_CURRENT_LANDSCAPE",STAY_CURRENT_PORTRAIT:"STAY_CURRENT_PORTRAIT",BUILD:"BUILD",INPUT_COMPONENT:"INPUT_COMPONENT",
DOGFOOD:"DOGFOOD",KEEP:"KEEP",KEEP_OFF:"KEEP_OFF",DASHBOARD:"DASHBOARD",SPORTS:"SPORTS",SUBTITLES:"SUBTITLES",QUESTION_ANSWER:"QUESTION_ANSWER",IMPORT_CONTACTS:"IMPORT_CONTACTS",VIDEO_CALL:"VIDEO_CALL",VIDEO_CAMERA:"VIDEO_CAMERA",VIDEO_CAMERA_DISABLED:"VIDEO_CAMERA_DISABLED",VIDEO_CAMERA_SWITCH_LIGHT:"VIDEO_CAMERA_SWITCH_LIGHT",BACK_LIGHT:"BACK_LIGHT",FILTER_EFFECT_LIGHT:"FILTER_EFFECT_LIGHT",MICROPHONE_ON:"MICROPHONE_ON",MICROPHONE_OFF:"MICROPHONE_OFF",FLASH_ON:"FLASH_ON",FLASH_OFF:"FLASH_OFF",LINK:"LINK",
LIVE_UNLISTED:"LIVE_UNLISTED",PAYMENT:"PAYMENT",ADD_CIRCLE:"ADD_CIRCLE",SMARTPHONE:"SMARTPHONE",SCREEN_LOCK_PORTRAIT:"SCREEN_LOCK_PORTRAIT",SCREEN_LOCK_LANDSCAPE:"SCREEN_LOCK_LANDSCAPE",KIDS_REPORT_AUDIO:"KIDS_REPORT_AUDIO",KIDS_REPORT_VISUALS:"KIDS_REPORT_VISUALS",KIDS_REPORT_OTHER:"KIDS_REPORT_OTHER",KIDS_BLOCK:"KIDS_BLOCK",KIDS_BLOCK_LIGHT:"KIDS_BLOCK_LIGHT",AVATAR_ANONYMOUS:"AVATAR_ANONYMOUS",AVATAR_LOGGED_OUT:"AVATAR_LOGGED_OUT",HALLOWEEN:"HALLOWEEN",UPLOAD:"UPLOAD",MY_LOCATION:"MY_LOCATION",
MUSIC_VIDEO:"MUSIC_VIDEO",PLAYLIST_PLAY:"PLAYLIST_PLAY",ALBUM:"ALBUM",LOGGED_OUT_SUBS:"LOGGED_OUT_SUBS",LOGGED_OUT_LIBRARY:"LOGGED_OUT_LIBRARY",LOGGED_OUT_ACCOUNT:"LOGGED_OUT_ACCOUNT",FUSION_V2_FSI:"FUSION_V2_FSI",PERSON:"PERSON",PERSON_ADD:"PERSON_ADD",PERSON_ACCOUNT:"PERSON_ACCOUNT",PERSON_CIRCLE:"PERSON_CIRCLE",PERSON_MINUS:"PERSON_MINUS",PERSON_RADAR:"PERSON_RADAR",PERSON_RADAR_FILLED:"PERSON_RADAR_FILLED",PERSON_SETTING:"PERSON_SETTING",MOVIES:"MOVIES",CLAPPERBOARD:"CLAPPERBOARD",CLAPPERBOARD_CAIRO:"CLAPPERBOARD_CAIRO",
MOVIES_BLUE:"MOVIES_BLUE",ROTTEN_TOMATOES_FRESH:"ROTTEN_TOMATOES_FRESH",ROTTEN_TOMATOES_SPLAT:"ROTTEN_TOMATOES_SPLAT",ROTTEN_TOMATOES_CERTIFIED:"ROTTEN_TOMATOES_CERTIFIED",WINTER:"WINTER",HOURGLASS:"HOURGLASS",REMOVE_CIRCLE:"REMOVE_CIRCLE",YOUTUBE_RED_ORIGINALS:"YOUTUBE_RED_ORIGINALS",VIDEO_YOUTUBE_RED:"VIDEO_YOUTUBE_RED",ACCESS_TIME:"ACCESS_TIME",ERROR_OUTLINE:"ERROR_OUTLINE",ERROR_WHITE:"ERROR_WHITE",ERROR_BLACK:"ERROR_BLACK",IMAGE:"IMAGE",NO_CONNECTION:"NO_CONNECTION",UNPLUGGED_LOGO:"UNPLUGGED_LOGO",
CREATE_VIDEO:"CREATE_VIDEO",CREATE_REEL_ITEM:"CREATE_REEL_ITEM",CREATE_LIVE_STREAM:"CREATE_LIVE_STREAM",CREATE_POST:"CREATE_POST",CREATION_ENTRY:"CREATION_ENTRY",CREATION_ENTRY_V2:"CREATION_ENTRY_V2",KIDS_GAMING:"KIDS_GAMING",YOUTUBE_MUSIC_BUTTON:"YOUTUBE_MUSIC_BUTTON",YOUTUBE_MUSIC_BUTTON_RED:"YOUTUBE_MUSIC_BUTTON_RED",YOUTUBE_MUSIC_BUTTON_RINGO:"YOUTUBE_MUSIC_BUTTON_RINGO",YOUTUBE_RED_ORIGINALS_BUTTON:"YOUTUBE_RED_ORIGINALS_BUTTON",YOUTUBE_RED_ORIGINALS_BUTTON_RED:"YOUTUBE_RED_ORIGINALS_BUTTON_RED",
EXIT_TO_APP:"EXIT_TO_APP",FIRST_PAGE:"FIRST_PAGE",LAST_PAGE:"LAST_PAGE",TIMER:"TIMER",TRANSFER_FINISHED:"TRANSFER_FINISHED",TRANSFER_SYNC:"TRANSFER_SYNC",TRANSLATE:"TRANSLATE",AV_TIMER:"AV_TIMER",SUBS_ZERO_STATE:"SUBS_ZERO_STATE",KEYBOARD:"KEYBOARD",KEYBOARD_OUTLINE:"KEYBOARD_OUTLINE",APP_INSTALL:"APP_INSTALL",POLL:"POLL",REDO:"REDO",BLOCK:"BLOCK",ADD_VIDEO_LINK:"ADD_VIDEO_LINK",RADIO_BUTTON_UNCHECKED:"RADIO_BUTTON_UNCHECKED",PLACE:"PLACE",PIVOT_HOME:"PIVOT_HOME",PIVOT_HOME_GREY:"PIVOT_HOME_GREY",
PIVOT_TRENDING:"PIVOT_TRENDING",PIVOT_REWIND:"PIVOT_REWIND",PIVOT_SUBSCRIPTIONS:"PIVOT_SUBSCRIPTIONS",PIVOT_SHARED:"PIVOT_SHARED",PIVOT_LIBRARY:"PIVOT_LIBRARY",PIVOT_ACCOUNT:"PIVOT_ACCOUNT",KIDS_READING:"KIDS_READING",PIVOT_PREMIER:"PIVOT_PREMIER",AUDIOTRACK:"AUDIOTRACK",STICKER_LIGHT:"STICKER_LIGHT",STICKER_EMOTICON:"STICKER_EMOTICON",STARS:"STARS",SCISSORS:"SCISSORS",MUSIC_SCISSORS:"MUSIC_SCISSORS",TAG_FACES:"TAG_FACES",GROUP:"GROUP",EMPTY_STATE_WATCH_LATER:"EMPTY_STATE_WATCH_LATER",SLOW_MOTION_VIDEO:"SLOW_MOTION_VIDEO",
ARROW_FORWARD:"ARROW_FORWARD",ARROW_BACK:"ARROW_BACK",DARK_THEME:"DARK_THEME",DARK_THEME_LARGE:"DARK_THEME_LARGE",VISIBILITY:"VISIBILITY",VISIBILITY_OFF:"VISIBILITY_OFF",MORE_LIKE_THIS:"MORE_LIKE_THIS",CAMERA_ALT:"CAMERA_ALT",ADD_PHOTO_ALTERNATE:"ADD_PHOTO_ALTERNATE",NOT_INTERESTED:"NOT_INTERESTED",APPS:"APPS",YOUTUBE_ROUND:"YOUTUBE_ROUND",OUTLINE_YOUTUBE_ROUND:"OUTLINE_YOUTUBE_ROUND",YOUTUBE_KIDS_ROUND:"YOUTUBE_KIDS_ROUND",YOUTUBE_MUSIC:"YOUTUBE_MUSIC",YOUTUBE_MUSIC_FILLED:"YOUTUBE_MUSIC_FILLED",
YOUTUBE_MUSIC_MONOCHROME:"YOUTUBE_MUSIC_MONOCHROME",YOUTUBE_MUSIC_MONOCHROME_CAIRO:"YOUTUBE_MUSIC_MONOCHROME_CAIRO",UNPLUGGED_BELL_FOLLOW_ENABLED:"UNPLUGGED_BELL_FOLLOW_ENABLED",UNPLUGGED_BELL_FOLLOW_DISABLED:"UNPLUGGED_BELL_FOLLOW_DISABLED",UNPLUGGED_SPORTS:"UNPLUGGED_SPORTS",UNPLUGGED_LIVE_GUIDE:"UNPLUGGED_LIVE_GUIDE",UNPLUGGED_LIVE_GUIDE_FILLED:"UNPLUGGED_LIVE_GUIDE_FILLED",SUBSCRIPTIONS_FILLED:"SUBSCRIPTIONS_FILLED",VISIBILITY_FILLED:"VISIBILITY_FILLED",LOCATION_FILLED:"LOCATION_FILLED",UNPLUGGED_DARK_THEME:"UNPLUGGED_DARK_THEME",
BRIGHTNESS_FIVE:"BRIGHTNESS_FIVE",BRIGHTNESS_FOUR:"BRIGHTNESS_FOUR",UNPLUGGED_NETWORKS:"UNPLUGGED_NETWORKS",UNPLUGGED_EPISODES:"UNPLUGGED_EPISODES",UNPLUGGED_MORE_TO_WATCH:"UNPLUGGED_MORE_TO_WATCH",UNPLUGGED_STORE:"UNPLUGGED_STORE",CONVERSATIONS:"CONVERSATIONS",EMPTY_SEARCH:"EMPTY_SEARCH",CHECK_BOX:"CHECK_BOX",CHECK_BOX_OUTLINE_BLANK:"CHECK_BOX_OUTLINE_BLANK",CHECK_BOX_BAR:"CHECK_BOX_BAR",SKIP_NEXT:"SKIP_NEXT",SKIP_NEXT_NEW:"SKIP_NEXT_NEW",SKIP_PREVIOUS:"SKIP_PREVIOUS",PICTURE_IN_PICTURE:"PICTURE_IN_PICTURE",
SOUND:"SOUND",AUTOPLAY:"AUTOPLAY",CONTRAST:"CONTRAST",VOLUME_MUTE:"VOLUME_MUTE",VOLUME_OFF:"VOLUME_OFF",VOLUME_UP:"VOLUME_UP",VOLUME_DOWN:"VOLUME_DOWN",MY_VIDEOS_ZERO_STATE:"MY_VIDEOS_ZERO_STATE",BACKSTAGE_ARTWORK:"BACKSTAGE_ARTWORK",LIBRARY_MUSIC:"LIBRARY_MUSIC",LIBRARY_ADD:"LIBRARY_ADD",LIBRARY_IMAGE:"LIBRARY_IMAGE",LIBRARY_REMOVE:"LIBRARY_REMOVE",LIBRARY_OUTLINE:"LIBRARY_OUTLINE",LIBRARY_SAVED:"LIBRARY_SAVED",WATCH_HISTORY_PAUSED:"WATCH_HISTORY_PAUSED",IMPROVE_YOUTUBE:"IMPROVE_YOUTUBE",TV:"TV",
TV_OFF:"TV_OFF",SAVE_ALT:"SAVE_ALT",DOWNLOADS_PAGE_EMPTY:"DOWNLOADS_PAGE_EMPTY",ACCOUNT_LINKED:"ACCOUNT_LINKED",ACCOUNT_UNLINKED:"ACCOUNT_UNLINKED",ACCOUNT_SOME_LINKED:"ACCOUNT_SOME_LINKED",CREATOR_STUDIO_NO_COMMENTS:"CREATOR_STUDIO_NO_COMMENTS",CREATOR_STUDIO_NO_HELD_COMMENTS:"CREATOR_STUDIO_NO_HELD_COMMENTS",CREATOR_STUDIO_NO_HELD_COMMENTS_V2:"CREATOR_STUDIO_NO_HELD_COMMENTS_V2",CREATOR_STUDIO_NO_SEARCH_MATCH:"CREATOR_STUDIO_NO_SEARCH_MATCH",CREATOR_STUDIO_NO_SEARCH_MATCH_V2:"CREATOR_STUDIO_NO_SEARCH_MATCH_V2",
CREATOR_STUDIO_ERROR_ON_LOAD:"CREATOR_STUDIO_ERROR_ON_LOAD",CREATOR_STUDIO_ERROR_ON_LOAD_V2:"CREATOR_STUDIO_ERROR_ON_LOAD_V2",VIDEO_LIBRARY_WHITE:"VIDEO_LIBRARY_WHITE",PRODUCT_SHOP:"PRODUCT_SHOP",PRODUCT_HOTEL:"PRODUCT_HOTEL",PRODUCT_FLIGHT:"PRODUCT_FLIGHT",PLAY_ARROW_BLACK:"PLAY_ARROW_BLACK",HIGHLIGHT_OFF:"HIGHLIGHT_OFF",CREATION_UPLOAD:"CREATION_UPLOAD",CREATION_UPLOAD_RED:"CREATION_UPLOAD_RED",CREATION_LIVE:"CREATION_LIVE",CREATION_POST:"CREATION_POST",GOOGLE:"GOOGLE",PAUSE:"PAUSE",PLAY_DISABLED:"PLAY_DISABLED",
INCOGNITO_CIRCLE:"INCOGNITO_CIRCLE",INCOGNITO_CAIRO:"INCOGNITO_CAIRO",CREATE:"CREATE",CREST:"CREST",EQUALIZER:"EQUALIZER",NOW_PLAYING_EQUALIZER:"NOW_PLAYING_EQUALIZER",WHATS_HOT:"WHATS_HOT",ADD_MODERATOR:"ADD_MODERATOR",REMOVE_MODERATOR:"REMOVE_MODERATOR",HELP_OUTLINE:"HELP_OUTLINE",HELP_FILLED:"HELP_FILLED",OFFICIAL_ARTIST_BADGE:"OFFICIAL_ARTIST_BADGE",DONE_ALL:"DONE_ALL",REMOVE_DONE:"REMOVE_DONE",SUPERVISOR_ACCOUNT:"SUPERVISOR_ACCOUNT",REELS_ZERO_STATE:"REELS_ZERO_STATE",SPOTLIGHT:"SPOTLIGHT",FOLDER:"FOLDER",
TUNE:"TUNE",LOCATION_PIN:"LOCATION_PIN",MAKING:"MAKING",SOCCER:"SOCCER",CURATING_MODE_COLLECTIONS:"CURATING_MODE_COLLECTIONS",APPROVED_FOR_YOU:"APPROVED_FOR_YOU",SHARED_BY_PARENTS:"SHARED_BY_PARENTS",KIDS_WATCH_IT_AGAIN:"KIDS_WATCH_IT_AGAIN",KIDS_SPORTS:"KIDS_SPORTS",PLAY_NEXT:"PLAY_NEXT",BREAKING_NEWS:"BREAKING_NEWS",BREAKING_NEWS_ALT_1:"BREAKING_NEWS_ALT_1",DRAG_HANDLE:"DRAG_HANDLE",LOCK_OPEN:"LOCK_OPEN",ACCOUNT_ADVANCED:"ACCOUNT_ADVANCED",ACCOUNT_PLAYBACK:"ACCOUNT_PLAYBACK",ACCOUNT_PRIVACY:"ACCOUNT_PRIVACY",
ACCOUNT_NOTIFICATIONS:"ACCOUNT_NOTIFICATIONS",ACCOUNT_SETTINGS:"ACCOUNT_SETTINGS",ACCOUNT_SHARING:"ACCOUNT_SHARING",CHROME_ICON:"CHROME_ICON",WATCH_PARTY:"WATCH_PARTY",ARROW_DROP_UP:"ARROW_DROP_UP",ARROW_DROP_DOWN:"ARROW_DROP_DOWN",ARROW_CHART_NEUTRAL:"ARROW_CHART_NEUTRAL",BOOKMARK:"BOOKMARK",BOOKMARK_CAIRO:"BOOKMARK_CAIRO",BOOKMARK_BORDER:"BOOKMARK_BORDER",TAB_BOOKMARK:"TAB_BOOKMARK",ROTATE_LEFT:"ROTATE_LEFT",PHONE_DOWNLOAD:"PHONE_DOWNLOAD",FORUM:"FORUM",VPN_KEY:"VPN_KEY",LOCK:"LOCK",LOCK_FILLED:"LOCK_FILLED",
INSERT_CHART:"INSERT_CHART",INSERT_CHART_OUTLINED:"INSERT_CHART_OUTLINED",SHOW_MORE:"SHOW_MORE",CONTENT_CUT:"CONTENT_CUT",CONTENT_CUT_CAIRO:"CONTENT_CUT_CAIRO",CONTENT_CUT_WHITE:"CONTENT_CUT_WHITE",HEADSET:"HEADSET",YOUTUBE_AD:"YOUTUBE_AD",VOICE_REMOTE:"VOICE_REMOTE",WIFI_STATUS_BAR_ZERO:"WIFI_STATUS_BAR_ZERO",WIFI_STATUS_BAR_ONE:"WIFI_STATUS_BAR_ONE",WIFI_STATUS_BAR_THREE:"WIFI_STATUS_BAR_THREE",WIFI_STATUS_BAR_FOUR:"WIFI_STATUS_BAR_FOUR",COURSE:"COURSE",COURSE_CAIRO:"COURSE_CAIRO",COURSE_OUTLINE:"COURSE_OUTLINE",
MOBILE_SCREEN_SHARE:"MOBILE_SCREEN_SHARE",SPEAKER_NOTES:"SPEAKER_NOTES",AUTO_AWESOME:"AUTO_AWESOME",FEATURE_HIGHLIGHT:"FEATURE_HIGHLIGHT",SPONSORS_ONLY_LIVE_CHAT_MODE_ON:"SPONSORS_ONLY_LIVE_CHAT_MODE_ON",SPONSORS_ONLY_LIVE_CHAT_MODE_OFF:"SPONSORS_ONLY_LIVE_CHAT_MODE_OFF",VIDEO_YOUTUBE:"VIDEO_YOUTUBE",SYSTEM_HEADER_FOREGROUND:"SYSTEM_HEADER_FOREGROUND",SYSTEM_FOOTER_FOREGROUND:"SYSTEM_FOOTER_FOREGROUND",SYSTEM_FOOTER_FOREGROUND_RTL:"SYSTEM_FOOTER_FOREGROUND_RTL",SYSTEM_FOOTER_BACKGROUND:"SYSTEM_FOOTER_BACKGROUND",
LABS_HEADER:"LABS_HEADER",SEARCH_LARGE:"SEARCH_LARGE",GOOGLE_LOGO:"GOOGLE_LOGO",ZOOM_IN:"ZOOM_IN",ZOOM_OUT:"ZOOM_OUT",REELS_ADD:"REELS_ADD",SHIELD:"SHIELD",SHIELD_WITH_AVATAR:"SHIELD_WITH_AVATAR",KEYBOARD_ARROW_LEFT:"KEYBOARD_ARROW_LEFT",KEYBOARD_ARROW_RIGHT:"KEYBOARD_ARROW_RIGHT",CHECK_BOX_BLUE:"CHECK_BOX_BLUE",CHECK_BOX_OUTLINE_GREY:"CHECK_BOX_OUTLINE_GREY",WORK_OFF:"WORK_OFF",BRIGHTNESS_THREE:"BRIGHTNESS_THREE",LOCATION_ON:"LOCATION_ON",LOCATION_OFF:"LOCATION_OFF",UNDO:"UNDO",LOCAL_SHIPPING:"LOCAL_SHIPPING",
RESHARE:"RESHARE",MOBILE_FRIENDLY:"MOBILE_FRIENDLY",ENTERTAINMENT:"ENTERTAINMENT",GAMING:"GAMING",HAPPENING_NOW:"HAPPENING_NOW",KIDS_HERO:"KIDS_HERO",POWER_SETTINGS_NEW:"POWER_SETTINGS_NEW",RADIO_BUTTON_CHECKED:"RADIO_BUTTON_CHECKED",CHECK_BOX_V2:"CHECK_BOX_V2",CHECK_BOX_OUTLINE_BLANK_V2:"CHECK_BOX_OUTLINE_BLANK_V2",REELS_COMMENT:"REELS_COMMENT",REELS_COMMENT_FILL:"REELS_COMMENT_FILL",KEYBOARD_ARROW_UP:"KEYBOARD_ARROW_UP",KEYBOARD_ARROW_DOWN:"KEYBOARD_ARROW_DOWN",SUBSCRIBED:"SUBSCRIBED",SUBSCRIBED_DARK_MODE:"SUBSCRIBED_DARK_MODE",
ADD_TO_QUEUE_TAIL:"ADD_TO_QUEUE_TAIL",ADD_TO_QUEUE:"ADD_TO_QUEUE",YOUTUBE_LINKED_TV:"YOUTUBE_LINKED_TV",ARROW_DOWNWARD_ALT:"ARROW_DOWNWARD_ALT",ARROW_UPWARD_ALT:"ARROW_UPWARD_ALT",TROPHY:"TROPHY",TROPHY_CAIRO:"TROPHY_CAIRO",CLOUD_UPLOAD:"CLOUD_UPLOAD",SUBDIRECTORY_ARROW_RIGHT:"SUBDIRECTORY_ARROW_RIGHT",MY_VIDEOS:"MY_VIDEOS",MY_VIDEOS_CAIRO:"MY_VIDEOS_CAIRO",LAUNCH:"LAUNCH",PERSON_OUTLINE:"PERSON_OUTLINE",VIEWS_OUTLINE:"VIEWS_OUTLINE",EXPAND_ALL:"EXPAND_ALL",FACT_CHECK:"FACT_CHECK",RED_CARD:"RED_CARD",
YELLOW_CARD:"YELLOW_CARD",CREATION_ENTRY_UPLOAD_ICON:"CREATION_ENTRY_UPLOAD_ICON",APPLAUSE:"APPLAUSE",LENS_WHITE:"LENS_WHITE",LENS_YELLOW:"LENS_YELLOW",LENS_GREEN:"LENS_GREEN",LENS_CYAN:"LENS_CYAN",LENS_MAGENTA:"LENS_MAGENTA",LENS_RED:"LENS_RED",LENS_BLACK:"LENS_BLACK",LENS_BLUE:"LENS_BLUE",PREMIUM:"PREMIUM",PREMIUM_STANDALONE:"PREMIUM_STANDALONE",PREMIUM_STANDALONE_CAIRO:"PREMIUM_STANDALONE_CAIRO",CLARIFY:"CLARIFY",SCHEDULE:"SCHEDULE",TRAVEL:"TRAVEL",SCREEN_ROTATION:"SCREEN_ROTATION",DRAFT:"DRAFT",
BACKSPACE:"BACKSPACE",LICENSE:"LICENSE",LABEL:"LABEL",SPORTS_BASEBALL:"SPORTS_BASEBALL",SPORTS_BASKETBALL:"SPORTS_BASKETBALL",SPORTS_FOOTBALL:"SPORTS_FOOTBALL",SYNC:"SYNC",SYNC_PROBLEM:"SYNC_PROBLEM",PHONELINK:"PHONELINK",PROGRESS_ACTIVITY:"PROGRESS_ACTIVITY",REELS_VIEW_STORY:"REELS_VIEW_STORY",EARTH:"EARTH",SHOW_CHART:"SHOW_CHART",PEOPLE:"PEOPLE",PEOPLE_ALT:"PEOPLE_ALT",PEOPLE_OUTLINE:"PEOPLE_OUTLINE",PEOPLE_2:"PEOPLE_2",PEOPLE_GROUP:"PEOPLE_GROUP",PEOPLE_FILLED:"PEOPLE_FILLED",DONE:"DONE",GOOGLE_PLAY_GAMES:"GOOGLE_PLAY_GAMES",
AUTOPLAY_ON:"AUTOPLAY_ON",AUTOPLAY_OFF:"AUTOPLAY_OFF",KIDS_AUTOPLAY_ON:"KIDS_AUTOPLAY_ON",KIDS_AUTOPLAY_OFF:"KIDS_AUTOPLAY_OFF",KIDS_AUTOPLAY_LOCKED_OFF:"KIDS_AUTOPLAY_LOCKED_OFF",CALENDAR:"CALENDAR",KIDS_MOVE:"KIDS_MOVE",PROGRESS_SPINNER_GREY:"PROGRESS_SPINNER_GREY",KIDS_CAMP:"KIDS_CAMP",BAR_CHART:"BAR_CHART",POLICY:"POLICY",CREATION_TAB:"CREATION_TAB",CREATION_TAB_LARGE:"CREATION_TAB_LARGE",CREATION_TAB_LARGE_CAIRO:"CREATION_TAB_LARGE_CAIRO",ADD_CIRCLE_OUTLINE:"ADD_CIRCLE_OUTLINE",REMOVE_CIRCLE_OUTLINE:"REMOVE_CIRCLE_OUTLINE",
COLLECTIONS:"COLLECTIONS",FORWARD_10:"FORWARD_10",REPLAY_10:"REPLAY_10",MUSIC_NEW_RELEASE:"MUSIC_NEW_RELEASE",PROMPTED_SIGN_IN:"PROMPTED_SIGN_IN",CAMERA_REMIX:"CAMERA_REMIX",SUBJECT:"SUBJECT",FIND_IN_PAGE:"FIND_IN_PAGE",CREATE_VIDEO_NEW:"CREATE_VIDEO_NEW",GO_LIVE:"GO_LIVE",ADD_STORY:"ADD_STORY",CREATE_POST_NEW:"CREATE_POST_NEW",FACE_VERY_UPSET:"FACE_VERY_UPSET",FACE_VERY_SAD:"FACE_VERY_SAD",FACE_SAD:"FACE_SAD",FACE_MEH:"FACE_MEH",FACE_HAPPY:"FACE_HAPPY",FACE_HAPPY_OUTLINE:"FACE_HAPPY_OUTLINE",FACE_VERY_HAPPY:"FACE_VERY_HAPPY",
FACE_FILLED_HAPPY:"FACE_FILLED_HAPPY",FACE_FILLED_UNHAPPY:"FACE_FILLED_UNHAPPY",FACE_FILLED_VERY_HAPPY:"FACE_FILLED_VERY_HAPPY",FACE_FILLED_MEH:"FACE_FILLED_MEH",FACE_FILLED_SAD:"FACE_FILLED_SAD",FACE_OUTLINED_HAPPY:"FACE_OUTLINED_HAPPY",FACE_OUTLINED_UNHAPPY:"FACE_OUTLINED_UNHAPPY",FACE_OUTLINED_VERY_HAPPY:"FACE_OUTLINED_VERY_HAPPY",FACE_OUTLINED_MEH:"FACE_OUTLINED_MEH",FACE_OUTLINED_SAD:"FACE_OUTLINED_SAD",FACE_OUTLINED_ACTIVE_HAPPY:"FACE_OUTLINED_ACTIVE_HAPPY",FACE_OUTLINED_ACTIVE_UNHAPPY:"FACE_OUTLINED_ACTIVE_UNHAPPY",
FACE_OUTLINED_ACTIVE_VERY_HAPPY:"FACE_OUTLINED_ACTIVE_VERY_HAPPY",FACE_OUTLINED_ACTIVE_MEH:"FACE_OUTLINED_ACTIVE_MEH",FACE_OUTLINED_ACTIVE_SAD:"FACE_OUTLINED_ACTIVE_SAD",OUTLINE_MUSIC_VIDEO:"OUTLINE_MUSIC_VIDEO",OUTLINE_HEADSET:"OUTLINE_HEADSET",OUTLINE_YOUTUBE_MUSIC:"OUTLINE_YOUTUBE_MUSIC",OUTLINE_YOUTUBE_IMPROVE_TV:"OUTLINE_YOUTUBE_IMPROVE_TV",OUTLINE_BAG:"OUTLINE_BAG",OUTLINE_MOBILE_DOWNLOAD:"OUTLINE_MOBILE_DOWNLOAD",HASHTAG_LANDING_PAGE_EMPTY:"HASHTAG_LANDING_PAGE_EMPTY",HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE:"HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE",
HASHTAG_LANDING_PAGE_ERROR:"HASHTAG_LANDING_PAGE_ERROR",HASHTAG_LANDING_PAGE_ERROR_DARK_MODE:"HASHTAG_LANDING_PAGE_ERROR_DARK_MODE",TRENDING_DOWN:"TRENDING_DOWN",EXPAND_MORE:"EXPAND_MORE",OUTLINE_CAMERA_20:"OUTLINE_CAMERA_20",OUTLINE_CAMERA_24:"OUTLINE_CAMERA_24",G_TRANSLATE:"G_TRANSLATE",SHOPPING_BAG:"SHOPPING_BAG",SHOPPING_BAG_CAIRO:"SHOPPING_BAG_CAIRO",CAKE:"CAKE",CAMPAIGN:"CAMPAIGN",VIDEOGAME_ASSET:"VIDEOGAME_ASSET",GIF:"GIF",INSERT_PHOTO:"INSERT_PHOTO",LOCAL_MALL:"LOCAL_MALL",COLOR_LENS:"COLOR_LENS",
LOCK_CLOCK:"LOCK_CLOCK",SYSTEM_UPDATE:"SYSTEM_UPDATE",ALL_INCLUSIVE:"ALL_INCLUSIVE",VIDEO_SETTINGS:"VIDEO_SETTINGS",WALLPAPER:"WALLPAPER",GROUPS:"GROUPS",MONEY_OFF:"MONEY_OFF",GAMEPAD:"GAMEPAD",PLAYLISTS_KIDS_RESTRICT_ACCESS:"PLAYLISTS_KIDS_RESTRICT_ACCESS",LIVE_CREATION_RESTRICT_ACCESS:"LIVE_CREATION_RESTRICT_ACCESS",LIVE_SAFEGUARD_EDUCATION:"LIVE_SAFEGUARD_EDUCATION",LIVE_COSTREAM_CREATOR_EDUCATION:"LIVE_COSTREAM_CREATOR_EDUCATION",ARTICLE:"ARTICLE",ARTICLE_ALERT:"ARTICLE_ALERT",ARTICLE_CHECK:"ARTICLE_CHECK",
ARTICLE_CLARIFY:"ARTICLE_CLARIFY",FAST_REWIND:"FAST_REWIND",ALIGN_LEFT:"ALIGN_LEFT",BLACK_JOY:"BLACK_JOY",CATEGORY:"CATEGORY",DESKTOP:"DESKTOP",GOOGLE_LENS:"GOOGLE_LENS",GOOGLE_LENS_CAMERA:"GOOGLE_LENS_CAMERA",INSIGHTS:"INSIGHTS",LIVE_BADGE:"LIVE_BADGE",OUTLINE_ADJUST:"OUTLINE_ADJUST",OUTLINE_LESS_THAN_4:"OUTLINE_LESS_THAN_4",OUTLINE_GREATER_THAN_20:"OUTLINE_GREATER_THAN_20",OUTLINE_CLOCK_HALF_CIRCLE:"OUTLINE_CLOCK_HALF_CIRCLE",OUTLINE_DASHBOARD_PLUS:"OUTLINE_DASHBOARD_PLUS",OUTLINE_RADAR_LIVE:"OUTLINE_RADAR_LIVE",
WAVEFORM:"WAVEFORM",GLOBE:"GLOBE",SUPER_STORE:"SUPER_STORE",MEMBERSHIPS:"MEMBERSHIPS",MEMBERSHIPS_FILLED:"MEMBERSHIPS_FILLED",MONEY_HAND:"MONEY_HAND",YT_FILL_DOWNLOAD_24:"YT_FILL_DOWNLOAD_24",YT_FILL_OPEN_NEW_24:"YT_FILL_OPEN_NEW_24",YT_OUTLINE_CHEVRON_EXPAND_24:"YT_OUTLINE_CHEVRON_EXPAND_24",YT_OUTLINE_CHEVRON_DOWN_24:"YT_OUTLINE_CHEVRON_DOWN_24",YT_OUTLINE_ARROW_REPEAT_1_24:"YT_OUTLINE_ARROW_REPEAT_1_24",YT_FILL_ARROW_REPEAT_1_24:"YT_FILL_ARROW_REPEAT_1_24",HEALTH_AND_SAFETY:"HEALTH_AND_SAFETY",
YT_FILL_YOUTUBE_MUSIC_24:"YT_FILL_YOUTUBE_MUSIC_24",YT_FILL_YOUTUBE_MUSIC_36:"YT_FILL_YOUTUBE_MUSIC_36",OUTLINE_TRASH_CAN:"OUTLINE_TRASH_CAN",OUTLINE_PENCIL:"OUTLINE_PENCIL",OUTLINE_ALERT_CIRCLE:"OUTLINE_ALERT_CIRCLE",OUTLINE_ALERT_TRIANGLE:"OUTLINE_ALERT_TRIANGLE",OUTLINE_OPEN_NEW:"OUTLINE_OPEN_NEW",LIST:"LIST",ARROW_CIRCLE:"ARROW_CIRCLE",EXPAND_LESS:"EXPAND_LESS",YT_OUTLINE_SUBSCRIPTIONS_24PT:"YT_OUTLINE_SUBSCRIPTIONS_24PT",OUTLINE_ADD:"OUTLINE_ADD",MEDAL:"MEDAL",MULTIVIEW:"MULTIVIEW",GIFT:"GIFT",
OUTLINE_GIFT:"OUTLINE_GIFT",OUTLINE_YOUTUBE_SHORTS_PLUS:"OUTLINE_YOUTUBE_SHORTS_PLUS",OUTLINE_YOUTUBE_LINKED_TV:"OUTLINE_YOUTUBE_LINKED_TV",NERD_STATS:"NERD_STATS",YT_OUTLINE_YOUTUBE_MUSIC_24:"YT_OUTLINE_YOUTUBE_MUSIC_24",YT_OUTLINE_MUSIC_24:"YT_OUTLINE_MUSIC_24",YT_OUTLINE_RATING_UP_24:"YT_OUTLINE_RATING_UP_24",YT_OUTLINE_FIRE_24:"YT_OUTLINE_FIRE_24",CREATOR_STUDIO_RED_LOGO:"CREATOR_STUDIO_RED_LOGO",UNPLUGGED_RED_LOGO:"UNPLUGGED_RED_LOGO",MUSIC_RED_LOGO:"MUSIC_RED_LOGO",KIDS_RED_LOGO:"KIDS_RED_LOGO",
LAPTOP_MOBILE:"LAPTOP_MOBILE",AUDIO_SURROUND:"AUDIO_SURROUND",FEATURED_SEASONAL_AND_GIFTS:"FEATURED_SEASONAL_AND_GIFTS",AUDIO:"AUDIO",SKIP_FORWARD_30:"SKIP_FORWARD_30",PLAY_ARROW_HALF_CIRCLE:"PLAY_ARROW_HALF_CIRCLE",VIDEO_LINK:"VIDEO_LINK",TEXT:"TEXT",SELL:"SELL",SELL_FILLED:"SELL_FILLED",YOUTUBE_STUDIO_ARROW_DOWN:"YOUTUBE_STUDIO_ARROW_DOWN",YOUTUBE_STUDIO_ARROW_UP:"YOUTUBE_STUDIO_ARROW_UP",ADMIN_PANEL_SETTINGS:"ADMIN_PANEL_SETTINGS",EXPIRE:"EXPIRE",BAR_HORIZONTAL:"BAR_HORIZONTAL",SCREEN_THEATRE:"SCREEN_THEATRE",
SCREEN_MINIPLAYER:"SCREEN_MINIPLAYER",SCREEN_DEFAULT:"SCREEN_DEFAULT",SCREEN_FULLSCREEN:"SCREEN_FULLSCREEN",LIST_QUEUE:"LIST_QUEUE",MOON_Z:"MOON_Z",MOON_Z_FILLED:"MOON_Z_FILLED",MESSAGE_BUBBLE_QUESTION:"MESSAGE_BUBBLE_QUESTION",TV_CIRCLE:"TV_CIRCLE",PANELS:"PANELS",BOX_PLACEHOLDER_LEFT_OUTLINE:"BOX_PLACEHOLDER_LEFT_OUTLINE",OUTLINE_OVERFLOW_HORIZONTAL_32:"OUTLINE_OVERFLOW_HORIZONTAL_32",OUTLINE_OVERFLOW_VERTICAL:"OUTLINE_OVERFLOW_VERTICAL",SPEAKER:"SPEAKER",SPEAKER_OFF:"SPEAKER_OFF",SPEAKER_GROUP:"SPEAKER_GROUP",
BAG:"BAG",VR:"VR",MUSIC_MUTED:"MUSIC_MUTED",GREEN_SCREEN_OFF:"GREEN_SCREEN_OFF",GREEN_SCREEN_ON:"GREEN_SCREEN_ON",LIST_PLAY_ARROW:"LIST_PLAY_ARROW",BAR_CIRCLE:"BAR_CIRCLE",QUOTATION_MARK:"QUOTATION_MARK",SPARKLE:"SPARKLE",SPARKLE_FILLED:"SPARKLE_FILLED",SPARK:"SPARK",SPARK_RADAR:"SPARK_RADAR",SPARK_SEARCH:"SPARK_SEARCH",OUTLINE_BAG_BOOKMARK:"OUTLINE_BAG_BOOKMARK",RADAR_LIVE:"RADAR_LIVE",PENCIL:"PENCIL",PRICE_TAG:"PRICE_TAG",CHEVRON_DOWN:"CHEVRON_DOWN",CHEVRON_UP:"CHEVRON_UP",SPEED_1_POINT_2X:"SPEED_1_POINT_2X",
SPEED_1_POINT_5X:"SPEED_1_POINT_5X",SPEED_1_POINT_8X:"SPEED_1_POINT_8X",SPEED_POINT_2X:"SPEED_POINT_2X",SPEED_POINT_5X:"SPEED_POINT_5X",SPEED_POINT_8X:"SPEED_POINT_8X",SPEED_1X:"SPEED_1X",SPEED_2X:"SPEED_2X",BROADCAST:"BROADCAST",BROADCAST_CAIRO:"BROADCAST_CAIRO",PODCAST_16:"PODCAST_16",PODCAST_ADD:"PODCAST_ADD",PODCAST_CHECK:"PODCAST_CHECK",DOLLAR_SIGN:"DOLLAR_SIGN",DOLLAR_SIGN_CONTAINER:"DOLLAR_SIGN_CONTAINER",MEET:"MEET",BRIEFCASE:"BRIEFCASE",CHECK_DOUBLE:"CHECK_DOUBLE",CHECK_DOUBLE_OFF:"CHECK_DOUBLE_OFF",
SHIELD_ADD:"SHIELD_ADD",SHIELD_OFF:"SHIELD_OFF",REMIX_FILLED:"REMIX_FILLED",EYE:"EYE",OPEN_IN_PHONE:"OPEN_IN_PHONE",OPEN_IN_PANEL:"OPEN_IN_PANEL",REPLAY_ARROW:"REPLAY_ARROW",ARROW_UNDO:"ARROW_UNDO",PERSON_CIRCLE_SLASH:"PERSON_CIRCLE_SLASH",EARTH_OUTLINE:"EARTH_OUTLINE",SLASH_CIRCLE_LEFT:"SLASH_CIRCLE_LEFT",SLASH_CIRCLE_RIGHT:"SLASH_CIRCLE_RIGHT",ARROW_PAUSE:"ARROW_PAUSE",MENU_FILTER:"MENU_FILTER",SPACE_BAR:"SPACE_BAR",CIRCLES_6:"CIRCLES_6",CELEBRATION:"CELEBRATION",CROWN:"CROWN",CROWN_FILLED:"CROWN_FILLED",
GRID:"GRID",GRID_3X3:"GRID_3X3",GRID_ASYMMETRICAL:"GRID_ASYMMETRICAL",KEEP_FILLED:"KEEP_FILLED",X_CIRCLE:"X_CIRCLE",KIDS_DOWNLOADS:"KIDS_DOWNLOADS",KIDS_MOVE_DOWNLOAD:"KIDS_MOVE_DOWNLOAD",KIDS_SUBSCRIPTIONS:"KIDS_SUBSCRIPTIONS",BRIGHTNESS:"BRIGHTNESS",BRIGHTNESS_FILLED:"BRIGHTNESS_FILLED",MAGIC_WAND:"MAGIC_WAND",MAGIC_WAND_FILLED:"MAGIC_WAND_FILLED",BOX_PENCIL:"BOX_PENCIL",MY_VIDEOS_SUPEX_ZERO_STATE:"MY_VIDEOS_SUPEX_ZERO_STATE",CREATOR_ACADEMY:"CREATOR_ACADEMY",CREATOR_ACADEMY_FILLED:"CREATOR_ACADEMY_FILLED",
CREATOR_ACADEMY_FILLED_16:"CREATOR_ACADEMY_FILLED_16",SCREEN_SWITCH:"SCREEN_SWITCH",PDF:"PDF",SHIELD_OVERFLOW:"SHIELD_OVERFLOW",ANIMALS:"ANIMALS",BOX_OPEN_CHECK:"BOX_OPEN_CHECK",PLAYABLES_LOGO:"PLAYABLES_LOGO",PLAYABLES_LOGO_CAIRO:"PLAYABLES_LOGO_CAIRO",PERSON_2:"PERSON_2",X_OCTAGON:"X_OCTAGON",PLAY_PRISM:"PLAY_PRISM",FILTER_PHOTO:"FILTER_PHOTO",MUSIC_FILLED:"MUSIC_FILLED",COURSE_FILLED:"COURSE_FILLED",TRANSCRIPT:"TRANSCRIPT",TRANSCRIPT_SEARCH:"TRANSCRIPT_SEARCH",STEM:"STEM",ARROW_CIRCLE_RIGHT:"ARROW_CIRCLE_RIGHT",
HEART_CIRCLE:"HEART_CIRCLE",RSS:"RSS",RSS_OFF:"RSS_OFF",PLAYABLES:"PLAYABLES",PERSON_MUSIC:"PERSON_MUSIC",ARROWS_ALERT:"ARROWS_ALERT",CLOCK_ARROWS_ALERT:"CLOCK_ARROWS_ALERT",CLOCK_ARROWS:"CLOCK_ARROWS",SWAP_HORIZ:"SWAP_HORIZ",MUSIC_NOTE_SYMBOL:"MUSIC_NOTE_SYMBOL",BOOK:"BOOK",DISMISS_QUEUE:"DISMISS_QUEUE",RANDOM:"RANDOM",SCREEN_LIGHT:"SCREEN_LIGHT",SINGLE_SPARKLE:"SINGLE_SPARKLE",PROMOTE:"PROMOTE",BUSINESS:"BUSINESS",TOOLBOX:"TOOLBOX",SHORTS_CREATION_COMMENT:"SHORTS_CREATION_COMMENT",SPARK_IMAGE:"SPARK_IMAGE",
SPARK_VIDEO:"SPARK_VIDEO",ALL_CHIP:"ALL_CHIP",TROPHY_CELEBRATIONS:"TROPHY_CELEBRATIONS",SPARK_EDIT:"SPARK_EDIT",MAP_OUTLINE:"MAP_OUTLINE",VOLUME_STABLE:"VOLUME_STABLE",SEARCH_PROMINENT:"SEARCH_PROMINENT",INFINITY_ICON:"INFINITY_ICON",DIRECTIONS_OUTLINE:"DIRECTIONS_OUTLINE",SHORTS_STICKER_PICKER:"SHORTS_STICKER_PICKER",SETTINGS_REMOTE:"SETTINGS_REMOTE",NEWS_STORY:"NEWS_STORY",FOOTBALL_FILLED:"FOOTBALL_FILLED",CIRCLES_OVERLAP:"CIRCLES_OVERLAP",ACCESSIBILITY:"ACCESSIBILITY",CODE:"CODE",HAND_SWIPE_LEFT:"HAND_SWIPE_LEFT",
SETTING_UPLOAD:"SETTING_UPLOAD",SETTING_HD:"SETTING_HD",STICKER:"STICKER",SUN:"SUN",MOON:"MOON",EYE_OFF:"EYE_OFF",TARGET:"TARGET",TARGET_ADD:"TARGET_ADD",STAR_SHOOTING:"STAR_SHOOTING",TEXT_BOX:"TEXT_BOX",OUTLINE_ARROW_SOLID_UP:"OUTLINE_ARROW_SOLID_UP",ARROW_SOLID_UP:"ARROW_SOLID_UP",OUTLINE_ARROW_SOLID_DOWN:"OUTLINE_ARROW_SOLID_DOWN",ARROW_SOLID_DOWN:"ARROW_SOLID_DOWN",OUTLINE_ARROW_SOLID_UP_16:"OUTLINE_ARROW_SOLID_UP_16",FILL_ARROW_SOLID_UP_16:"FILL_ARROW_SOLID_UP_16",OUTLINE_ARROW_SOLID_DOWN_16:"OUTLINE_ARROW_SOLID_DOWN_16",
FILL_ARROW_SOLID_DOWN_16:"FILL_ARROW_SOLID_DOWN_16",DIE_3:"DIE_3",POUND:"POUND",CIRCLE:"CIRCLE",CIRCLE_FILLED:"CIRCLE_FILLED",YOUTUBE_SPORTS:"YOUTUBE_SPORTS",STAR_SHOOTING_OUTLINE:"STAR_SHOOTING_OUTLINE",AUDIO_BADGE:"AUDIO_BADGE",FANTASY:"FANTASY",ENGAGEMENT:"ENGAGEMENT",HASHTAG:"HASHTAG",TEMPLATE_ADD:"TEMPLATE_ADD",MESSAGE_BUBBLE_OVERLAP:"MESSAGE_BUBBLE_OVERLAP",RUBY:"RUBY",GAME_CONSOLE_DPAD:"GAME_CONSOLE_DPAD",GAME_CONSOLE_FACE_BUTTONS:"GAME_CONSOLE_FACE_BUTTONS",SKIP_BACK_15:"SKIP_BACK_15",SKIP_FORWARD_15:"SKIP_FORWARD_15",
ARROW_CIRCLE_PLAY:"ARROW_CIRCLE_PLAY",NOTE_ADD:"NOTE_ADD",MY_AD_CENTER:"MY_AD_CENTER",MY_AD_CENTER_LOGO:"MY_AD_CENTER_LOGO",PEOPLE_NOTE:"PEOPLE_NOTE",LEARNING:"LEARNING",LEARNING_CAIRO:"LEARNING_CAIRO",IMAGE_ADD:"IMAGE_ADD",LOCATION_POINT:"LOCATION_POINT",OUTLINE_MIX_24:"OUTLINE_MIX_24",FILL_AUDIO_16:"FILL_AUDIO_16",HAND_SWIPE_RIGHT:"HAND_SWIPE_RIGHT",SCHEDULE_FANZONE:"SCHEDULE_FANZONE",PLAY_PAUSE:"PLAY_PAUSE",ARROW_DIAGONAL_UP_RIGHT:"ARROW_DIAGONAL_UP_RIGHT",ARROW_DIAGONAL_UP_RIGHT_FILLED:"ARROW_DIAGONAL_UP_RIGHT_FILLED",
LOCAL_ACTIVITY:"LOCAL_ACTIVITY",STAR_CIRCLE_RIBBON:"STAR_CIRCLE_RIBBON",STAR_CIRCLE_RIBBON_OUTLINE:"STAR_CIRCLE_RIBBON_OUTLINE",LIGHTBULB_SPARK_OUTLINE:"LIGHTBULB_SPARK_OUTLINE",SPARK_LIGHTBULB_OUTLINE:"SPARK_LIGHTBULB_OUTLINE",SPARK_LIGHTBULB_FILLED:"SPARK_LIGHTBULB_FILLED",JOURNEY:"JOURNEY",QUESTION_HEAD:"QUESTION_HEAD",TEXT_FILLED:"TEXT_FILLED",TICKET_STAR:"TICKET_STAR"};var WTp=function(){HP.apply(this,arguments)};
_.k(WTp,HP);WTp.prototype.getAssociations=function(){return[]};_.EAi=new _.S("playerInterstitialRenderer");var hmX=new _.S("getKidsBlocklistPickerCommand");_.dDz=new _.S("updateKidsBlacklistEndpoint");_.KI=new _.S("likeEndpoint");var Nsz,VjT,UDB;Nsz=new _.S("addChatItemAction");VjT=new _.S("removeChatItemAction");UDB=new _.S("markChatItemAsDeletedAction");_.RmM=new _.S("setLiveChatCollapsedStateAction");var emX=function(){HP.apply(this,arguments)};
_.k(emX,HP);emX.prototype.getAssociations=function(){return[]};var MjO=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(MjO,_.n2);var gAU=_.K2(MjO,[0,1,_.S2]);var QsX=new _.S("liveChatEndpoint");var zmc=new _.S("liveChatItemContextMenuEndpoint");var tjH=new _.S("liveChatReplayEndpoint");_.Cxu=new _.S("emojiPickerRenderer");var BsT=new _.S("liveChatAuthorBadgeViewModel");var vAM=new _.S("deleteLiveChatMessageCommand");var IaB=new _.S("liveChatActionEndpoint");var cJO=new _.S("createLiveChatPollEndpoint");var DDO=new _.S("manageLiveChatUserEndpoint");var xDO=new _.S("moderateLiveChatEndpoint");_.kUa=new _.S("sendLiveChatMessageEndpoint");var AJa=new _.S("sendLiveChatVoteEndpoint");var ssi=new _.S("clearLocationCommand");var LTz=new _.S("resolveLocationCommand");var qDX=new _.S("interactionLoggingCommandMetadata");var e8Y=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(e8Y,_.n2);var R8n=function(F,W){return _.NT(F,1,W)};var $D_=[0,_.mN];var UZn=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(UZn,_.n2);var Vvb=function(F,W){return vc(F,1,e8Y,W)};UZn.prototype.JSC$9977_serializeBinary=Wpo([0,_.F0,$D_]);var aZo={SLI_STATUS_UNKNOWN:"SLI_STATUS_UNKNOWN",SLI_STATUS_SUCCESS:"SLI_STATUS_SUCCESS",SLI_STATUS_FAILURE:"SLI_STATUS_FAILURE",SLI_STATUS_TIMEOUT:"SLI_STATUS_TIMEOUT",SLI_STATUS_ABORTED:"SLI_STATUS_ABORTED",SLI_STATUS_CANCELLED:"SLI_STATUS_CANCELLED",SLI_STATUS_REJECTED:"SLI_STATUS_REJECTED"};var Z3a={MAIN_APP_WEB_PAGE_TYPE_UNKNOWN:"MAIN_APP_WEB_PAGE_TYPE_UNKNOWN",MAIN_APP_WEB_PAGE_TYPE_BROWSE:"MAIN_APP_WEB_PAGE_TYPE_BROWSE",MAIN_APP_WEB_PAGE_TYPE_SEARCH:"MAIN_APP_WEB_PAGE_TYPE_SEARCH",MAIN_APP_WEB_PAGE_TYPE_WATCH:"MAIN_APP_WEB_PAGE_TYPE_WATCH",MAIN_APP_WEB_PAGE_TYPE_CHANNEL:"MAIN_APP_WEB_PAGE_TYPE_CHANNEL",MAIN_APP_WEB_PAGE_TYPE_PLAYLIST:"MAIN_APP_WEB_PAGE_TYPE_PLAYLIST",MAIN_APP_WEB_PAGE_TYPE_SETTING:"MAIN_APP_WEB_PAGE_TYPE_SETTING",MAIN_APP_WEB_PAGE_TYPE_SHORTS:"MAIN_APP_WEB_PAGE_TYPE_SHORTS"},
XMa={MAIN_APP_WEB_REQUEST_TYPE_UNKNOWN:"MAIN_APP_WEB_REQUEST_TYPE_UNKNOWN",MAIN_APP_WEB_REQUEST_TYPE_NAVIGATE:"MAIN_APP_WEB_REQUEST_TYPE_NAVIGATE",MAIN_APP_WEB_REQUEST_TYPE_LOAD:"MAIN_APP_WEB_REQUEST_TYPE_LOAD"};var lSr={GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNKNOWN:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNKNOWN",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_FOR_TESTING:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_FOR_TESTING",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RESUME_TO_HOME_TTL:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RESUME_TO_HOME_TTL",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_START_TO_SHORTS_ANALYSIS_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_START_TO_SHORTS_ANALYSIS_SLICE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DEVICE_LAYER_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DEVICE_LAYER_SLICE",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNIFIED_LAYER_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNIFIED_LAYER_SLICE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_VISITOR_LAYER_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_VISITOR_LAYER_SLICE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHOW_SHEET_COMMAND_HANDLER_BLOCK:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHOW_SHEET_COMMAND_HANDLER_BLOCK",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_MIGRATED_COMPONENT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_MIGRATED_COMPONENT",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATION_LOCK_SUPPORTED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATION_LOCK_SUPPORTED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_PIN_SUGGESTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_PIN_SUGGESTION",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_LONG_PRESS_EDU_TOAST:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_LONG_PRESS_EDU_TOAST",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_AMBIENT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_AMBIENT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TIME_WATCHED_PANEL:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TIME_WATCHED_PANEL",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SEARCH_FROM_SEARCH_BAR_OVERLAY:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SEARCH_FROM_SEARCH_BAR_OVERLAY",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_VOICE_SEARCH_EDU_TOAST:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_VOICE_SEARCH_EDU_TOAST",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SUGGESTED_LANGUAGE_SELECTED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SUGGESTED_LANGUAGE_SELECTED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_TRIGGER_SHORTS_PIP:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_TRIGGER_SHORTS_PIP",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IN_ZP_VOICE_CRASHY_SET:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IN_ZP_VOICE_CRASHY_SET",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_SUPPRESSED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_SUPPRESSED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_ALLOWED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_ALLOWED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_PULL_TO_REFRESH_ATTEMPT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_PULL_TO_REFRESH_ATTEMPT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_BLOCK_KABUKI:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_BLOCK_KABUKI",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_TALL_SCREEN:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_TALL_SCREEN",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_NORMAL_SCREEN:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_NORMAL_SCREEN",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_ENABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_DISABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_DISABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_AUTOPLAY_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_AUTOPLAY_ENABLED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_CAST_MATCH_OCCURRED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_CAST_MATCH_OCCURRED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_ELIGIBLE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_ELIGIBLE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ENDSCREEN_TRIGGERED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ENDSCREEN_TRIGGERED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_TRIGGERED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_TRIGGERED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_LACT_THRESHOLD_EXCEEDED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_LACT_THRESHOLD_EXCEEDED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MATCHED_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MATCHED_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHABLE_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHABLE_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MISATTRIBUTED_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MISATTRIBUTED_ON_REMOTE_CONNECTION",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_TV_IS_SIGNED_IN_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_TV_IS_SIGNED_IN_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_COLD_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_COLD_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_NON_COLD_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_NON_COLD_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ON_REMOTE_CONNECTION",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_VALID:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_VALID",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_INVALID:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_INVALID",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_UNDEFINED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_UNDEFINED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_DEFINED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_DEFINED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LACT_THRESHOLD_EXCEEDED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LACT_THRESHOLD_EXCEEDED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROUND_TRIP_HANDLING_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROUND_TRIP_HANDLING_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_BEFORE_APP_RELOAD:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_BEFORE_APP_RELOAD",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_AFTER_APP_RELOAD:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_AFTER_APP_RELOAD",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_INELIGIBLE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_INELIGIBLE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TVHTML5_MID_ROLL_THRESHOLD_REACHED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TVHTML5_MID_ROLL_THRESHOLD_REACHED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_PENDING:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_PENDING",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_ACTIVATED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_ACTIVATED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_M2_ELIGIBLE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_M2_ELIGIBLE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_LANDSCAPE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_LANDSCAPE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_PORTRAIT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_PORTRAIT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMBEDS_FACEOFF_UI_EVENT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMBEDS_FACEOFF_UI_EVENT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_RECEIVED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_RECEIVED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ELIGIBLE_TO_SUPPRESS_TRANSPORT_CONTROLS_BUTTONS:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ELIGIBLE_TO_SUPPRESS_TRANSPORT_CONTROLS_BUTTONS",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PLAYER_IN_SQUEEZEBACK:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PLAYER_IN_SQUEEZEBACK"};_.dxw=new _.S("logFlowLoggingEventCommand");_.GWR=new _.S("loggingContext");var H3i=new _.S("captionLanguageSelectActionCommand");var PxX=new _.S("showCaptionLanguageSelectActionCommand");var JJ_=new _.S("dismissDialogEndpoint");var aa_=new _.S("hideItemSectionVideosByIdCommand");var faa=new _.S("showMiniplayerCommand");var O3u=function(){HP.apply(this,arguments)};
_.k(O3u,HP);O3u.prototype.getAssociations=function(){return[]};var b3u=function(){HP.apply(this,arguments)};
_.k(b3u,HP);b3u.prototype.getAssociations=function(){return[]};var laX=function(){HP.apply(this,arguments)};
_.k(laX,HP);laX.prototype.getAssociations=function(){return[]};var nA_=function(){HP.apply(this,arguments)};
_.k(nA_,HP);nA_.prototype.getAssociations=function(){var F=[];this.delegate.downloadsList&&F.push(this.delegate.downloadsList);this.delegate.smartDownloadsList&&F.push(this.delegate.smartDownloadsList);this.delegate.recommendedDownloadsList&&F.push(this.delegate.recommendedDownloadsList);this.delegate.refresh&&F.push(this.delegate.refresh);return[].concat(_.x9(new Set(F)))};var yJX=function(){HP.apply(this,arguments)};
_.k(yJX,HP);yJX.prototype.getAssociations=function(){var F=[];this.delegate.refresh&&F.push(this.delegate.refresh);if(this.delegate.downloads)for(var W=_.U(this.delegate.downloads),E=W.next();!E.done;E=W.next())F.push.apply(F,_.x9((new jsO(E.value)).getAssociations()));return[].concat(_.x9(new Set(F)))};
var jsO=function(){XW.apply(this,arguments)};
_.k(jsO,XW);jsO.prototype.getAssociations=function(){var F=[];this.delegate.video&&F.push(this.delegate.video);this.delegate.playlist&&F.push(this.delegate.playlist);this.delegate.videoItem&&F.push(this.delegate.videoItem);this.delegate.playlistItem&&F.push(this.delegate.playlistItem);return[].concat(_.x9(new Set(F)))};var i3O=function(){HP.apply(this,arguments)};
_.k(i3O,HP);i3O.prototype.getAssociations=function(){var F=[];this.delegate.localImageEntities&&F.push.apply(F,_.x9(this.delegate.localImageEntities));return[].concat(_.x9(new Set(F)))};var rJz=function(){HP.apply(this,arguments)};
_.k(rJz,HP);rJz.prototype.getAssociations=function(){var F=[];this.delegate.playbackData&&F.push(this.delegate.playbackData);this.delegate.localImageEntities&&F.push.apply(F,_.x9(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&F.push(this.delegate.videoDownloadContextEntity);return[].concat(_.x9(new Set(F)))};var TsT=function(){HP.apply(this,arguments)};
_.k(TsT,HP);TsT.prototype.getAssociations=function(){return[]};var oAT=function(){HP.apply(this,arguments)};
_.k(oAT,HP);oAT.prototype.getAssociations=function(){var F=[];this.delegate.fakeChildren&&F.push.apply(F,_.x9(this.delegate.fakeChildren));return[].concat(_.x9(new Set(F)))};var GU_=function(){HP.apply(this,arguments)};
_.k(GU_,HP);GU_.prototype.getAssociations=function(){var F=[];this.delegate.video&&F.push(this.delegate.video);this.delegate.playbackData&&F.push(this.delegate.playbackData);this.delegate.offlineVideoPolicy&&F.push(this.delegate.offlineVideoPolicy);return[].concat(_.x9(new Set(F)))};var YDO=function(){HP.apply(this,arguments)};
_.k(YDO,HP);YDO.prototype.getAssociations=function(){return[]};var wMX=function(){HP.apply(this,arguments)};
_.k(wMX,HP);wMX.prototype.getAssociations=function(){var F=[];this.delegate.channelOwner&&F.push(this.delegate.channelOwner);this.delegate.videos&&F.push.apply(F,_.x9(this.delegate.videos));this.delegate.collaboratorChannels&&F.push.apply(F,_.x9(this.delegate.collaboratorChannels));this.delegate.downloadState&&F.push(this.delegate.downloadState);this.delegate.refresh&&F.push(this.delegate.refresh);return[].concat(_.x9(new Set(F)))};var uhp=function(){HP.apply(this,arguments)};
_.k(uhp,HP);uhp.prototype.getAssociations=function(){var F=[];this.delegate.video&&F.push(this.delegate.video);this.delegate.channelContributor&&F.push(this.delegate.channelContributor);return[].concat(_.x9(new Set(F)))};var SDX=function(){XW.apply(this,arguments)};
_.k(SDX,XW);SDX.prototype.getAssociations=function(){var F=[];this.delegate.recommendedVideoMetadata&&F.push.apply(F,_.x9((new pM_(this.delegate.recommendedVideoMetadata)).getAssociations()));return[].concat(_.x9(new Set(F)))};
var pM_=function(){XW.apply(this,arguments)};
_.k(pM_,XW);pM_.prototype.getAssociations=function(){var F=[];this.delegate.localImageEntities&&F.push.apply(F,_.x9(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&F.push(this.delegate.videoDownloadContextEntity);return[].concat(_.x9(new Set(F)))};var mDp=function(){XW.apply(this,arguments)};
_.k(mDp,XW);mDp.prototype.getAssociations=function(){var F=[];this.delegate.playbackPosition&&F.push(this.delegate.playbackPosition);return[].concat(_.x9(new Set(F)))};var KTU=function(){HP.apply(this,arguments)};
_.k(KTU,HP);KTU.prototype.getAssociations=function(){var F=[];this.delegate.owner&&F.push(this.delegate.owner);this.delegate.downloadState&&F.push(this.delegate.downloadState);this.delegate.userState&&F.push.apply(F,_.x9((new mDp(this.delegate.userState)).getAssociations()));this.delegate.additionalMetadata&&F.push.apply(F,_.x9((new SDX(this.delegate.additionalMetadata)).getAssociations()));return[].concat(_.x9(new Set(F)))};var FKi=function(){HP.apply(this,arguments)};
_.k(FKi,HP);FKi.prototype.getAssociations=function(){var F=[];this.delegate.userChannelDetails&&F.push(this.delegate.userChannelDetails);return[].concat(_.x9(new Set(F)))};var WKe=function(){HP.apply(this,arguments)};
_.k(WKe,HP);WKe.prototype.getAssociations=function(){var F=[];this.delegate.channelOwner&&F.push(this.delegate.channelOwner);this.delegate.playbackPosition&&F.push(this.delegate.playbackPosition);this.delegate.localImageEntities&&F.push.apply(F,_.x9(this.delegate.localImageEntities));this.delegate.downloadStatus&&F.push(this.delegate.downloadStatus);return[].concat(_.x9(new Set(F)))};var MtS=new _.S("downloadsPageSmartDownloadsOptInBannerParams");var EZM=function(){HP.apply(this,arguments)};
_.k(EZM,HP);EZM.prototype.getAssociations=function(){return[]};var hHX=function(){HP.apply(this,arguments)};
_.k(hHX,HP);hHX.prototype.getAssociations=function(){return[]};var dGT=function(){HP.apply(this,arguments)};
_.k(dGT,HP);dGT.prototype.getAssociations=function(){return[]};var Nrp=function(){HP.apply(this,arguments)};
_.k(Nrp,HP);Nrp.prototype.getAssociations=function(){return[]};var V3M=function(){HP.apply(this,arguments)};
_.k(V3M,HP);V3M.prototype.getAssociations=function(){return[]};var UGi=function(){HP.apply(this,arguments)};
_.k(UGi,HP);UGi.prototype.getAssociations=function(){return[]};var RHa=function(){HP.apply(this,arguments)};
_.k(RHa,HP);RHa.prototype.getAssociations=function(){return[]};var eHp=function(){HP.apply(this,arguments)};
_.k(eHp,HP);eHp.prototype.getAssociations=function(){return[]};var M3_=function(){HP.apply(this,arguments)};
_.k(M3_,HP);M3_.prototype.getAssociations=function(){return[]};var ya=new _.S("dislikeButtonViewModel");var nx=new _.S("likeButtonViewModel");var gZc=new _.S("videoSummaryContentViewModel");var SCk=new _.S("videoSummaryParagraphViewModel");var QeU=new _.S("changeTimelyActionVisibilityCommand");var zHa=new _.S("hideEngagementPanelEndpoint");var t3i=new _.S("refreshPanelEndpoint");var CVO=new _.S("scrollToSectionEndpoint");var Brp=new _.S("seekToVideoTimestampCommand");_.nk=new _.S("showEngagementPanelEndpoint");var vZu=new _.S("showTransientPlayerScrimOverlayCommand");var Ioz=new _.S("toggleEngagementPanelCommand");_.cCX=new _.S("createBroadcastCommand");var DGX=new _.S("metadataUpdateCommand");var xGM=function(){HP.apply(this,arguments)};
_.k(xGM,HP);xGM.prototype.getAssociations=function(){return[]};var kGp=function(){HP.apply(this,arguments)};
_.k(kGp,HP);kGp.prototype.getAssociations=function(){return[]};var ACH=function(){HP.apply(this,arguments)};
_.k(ACH,HP);ACH.prototype.getAssociations=function(){return[]};_.se_=new _.S("merchandiseShelfRenderer");var LKH=new _.S("gridMovieRenderer");_.qjp=new _.S("movieRenderer");var $G_=function(){HP.apply(this,arguments)};
_.k($G_,HP);$G_.prototype.getAssociations=function(){var F=[];this.delegate.trackDownloadMetadatas&&F.push.apply(F,_.x9(this.delegate.trackDownloadMetadatas));return[].concat(_.x9(new Set(F)))};var Z$a=function(){HP.apply(this,arguments)};
_.k(Z$a,HP);
Z$a.prototype.getAssociations=function(){var F=[];this.delegate.downloadedTracks&&F.push.apply(F,_.x9(this.delegate.downloadedTracks));this.delegate.smartDownloadedTracks&&F.push.apply(F,_.x9(this.delegate.smartDownloadedTracks));this.delegate.downloadedEpisodes&&F.push.apply(F,_.x9(this.delegate.downloadedEpisodes));this.delegate.downloadedAlbumReleases&&F.push.apply(F,_.x9(this.delegate.downloadedAlbumReleases));this.delegate.smartDownloadedAlbumReleases&&F.push.apply(F,_.x9(this.delegate.smartDownloadedAlbumReleases));this.delegate.downloadedPlaylists&&
F.push.apply(F,_.x9(this.delegate.downloadedPlaylists));this.delegate.smartDownloadedPlaylists&&F.push.apply(F,_.x9(this.delegate.smartDownloadedPlaylists));this.delegate.metadataOnlyTracks&&F.push.apply(F,_.x9(this.delegate.metadataOnlyTracks));return[].concat(_.x9(new Set(F)))};var XyH=function(){HP.apply(this,arguments)};
_.k(XyH,HP);XyH.prototype.getAssociations=function(){var F=[];this.delegate.trackDownloadMetadatas&&F.push.apply(F,_.x9(this.delegate.trackDownloadMetadatas));return[].concat(_.x9(new Set(F)))};var H$p=function(){HP.apply(this,arguments)};
_.k(H$p,HP);H$p.prototype.getAssociations=function(){var F=[];this.delegate.playbackData&&F.push(this.delegate.playbackData);this.delegate.localImageEntities&&F.push.apply(F,_.x9(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&F.push(this.delegate.videoDownloadContextEntity);return[].concat(_.x9(new Set(F)))};var PVe=function(){HP.apply(this,arguments)};
_.k(PVe,HP);
PVe.prototype.getAssociations=function(){var F=[];this.delegate.musicLibraryStatusEntity&&F.push(this.delegate.musicLibraryStatusEntity);this.delegate.primaryArtists&&F.push.apply(F,_.x9(this.delegate.primaryArtists));this.delegate.details&&F.push(this.delegate.details);this.delegate.userDetails&&F.push(this.delegate.userDetails);this.delegate.tracks&&F.push.apply(F,_.x9(this.delegate.tracks));this.delegate.share&&F.push(this.delegate.share);this.delegate.downloadMetadata&&F.push(this.delegate.downloadMetadata);this.delegate.refresh&&
F.push(this.delegate.refresh);return[].concat(_.x9(new Set(F)))};
var JCp=function(){HP.apply(this,arguments)};
_.k(JCp,HP);JCp.prototype.getAssociations=function(){var F=[];this.delegate.albumRelease&&F.push(this.delegate.albumRelease);this.delegate.tracks&&F.push.apply(F,_.x9(this.delegate.tracks));return[].concat(_.x9(new Set(F)))};
var aoH=function(){HP.apply(this,arguments)};
_.k(aoH,HP);aoH.prototype.getAssociations=function(){var F=[];this.delegate.albumRelease&&F.push(this.delegate.albumRelease);return[].concat(_.x9(new Set(F)))};var foa=function(){HP.apply(this,arguments)};
_.k(foa,HP);foa.prototype.getAssociations=function(){var F=[];this.delegate.details&&F.push(this.delegate.details);this.delegate.userDetails&&F.push(this.delegate.userDetails);return[].concat(_.x9(new Set(F)))};
var O$U=function(){HP.apply(this,arguments)};
_.k(O$U,HP);O$U.prototype.getAssociations=function(){var F=[];this.delegate.parentArtist&&F.push(this.delegate.parentArtist);return[].concat(_.x9(new Set(F)))};
var b$i=function(){HP.apply(this,arguments)};
_.k(b$i,HP);b$i.prototype.getAssociations=function(){var F=[];this.delegate.parentArtist&&F.push(this.delegate.parentArtist);return[].concat(_.x9(new Set(F)))};var loM=function(){HP.apply(this,arguments)};
_.k(loM,HP);loM.prototype.getAssociations=function(){return[]};var nZp=function(){HP.apply(this,arguments)};
_.k(nZp,HP);nZp.prototype.getAssociations=function(){return[]};var yCp=function(){HP.apply(this,arguments)};
_.k(yCp,HP);
yCp.prototype.getAssociations=function(){var F=[];this.delegate.tracks&&F.push.apply(F,_.x9(this.delegate.tracks));this.delegate.refresh&&F.push(this.delegate.refresh);this.delegate.musicLibraryStatusEntity&&F.push(this.delegate.musicLibraryStatusEntity);this.delegate.details&&F.push(this.delegate.details);this.delegate.downloadMetadata&&F.push(this.delegate.downloadMetadata);this.delegate.sideloadMetadata&&F.push(this.delegate.sideloadMetadata);this.delegate.userDetails&&F.push(this.delegate.userDetails);this.delegate.entryCollection&&
F.push(this.delegate.entryCollection);this.delegate.share&&F.push(this.delegate.share);this.delegate.podcastShowAdditionalMetadata&&F.push.apply(F,_.x9((new je_(this.delegate.podcastShowAdditionalMetadata)).getAssociations()));return[].concat(_.x9(new Set(F)))};
var je_=function(){XW.apply(this,arguments)};
_.k(je_,XW);je_.prototype.getAssociations=function(){var F=[];this.delegate.creatorEntity&&F.push(this.delegate.creatorEntity);return[].concat(_.x9(new Set(F)))};var i$X=function(){HP.apply(this,arguments)};
_.k(i$X,HP);i$X.prototype.getAssociations=function(){return[]};var rCX=function(){HP.apply(this,arguments)};
_.k(rCX,HP);
rCX.prototype.getAssociations=function(){var F=[];this.delegate.musicLibraryStatusEntity&&F.push(this.delegate.musicLibraryStatusEntity);this.delegate.artists&&F.push.apply(F,_.x9(this.delegate.artists));this.delegate.audioModeVersion&&F.push(this.delegate.audioModeVersion);this.delegate.videoModeVersion&&F.push(this.delegate.videoModeVersion);this.delegate.userDetails&&F.push(this.delegate.userDetails);this.delegate.details&&F.push(this.delegate.details);this.delegate.albumRelease&&F.push(this.delegate.albumRelease);this.delegate.share&&
F.push(this.delegate.share);this.delegate.libraryEdit&&F.push(this.delegate.libraryEdit);this.delegate.downloadMetadata&&F.push(this.delegate.downloadMetadata);this.delegate.playbackPosition&&F.push(this.delegate.playbackPosition);this.delegate.lyrics&&F.push(this.delegate.lyrics);return[].concat(_.x9(new Set(F)))};
var Tre=function(){HP.apply(this,arguments)};
_.k(Tre,HP);Tre.prototype.getAssociations=function(){var F=[];this.delegate.parentTrack&&F.push(this.delegate.parentTrack);return[].concat(_.x9(new Set(F)))};
var oZp=function(){HP.apply(this,arguments)};
_.k(oZp,HP);oZp.prototype.getAssociations=function(){var F=[];this.delegate.parentTrack&&F.push(this.delegate.parentTrack);return[].concat(_.x9(new Set(F)))};var eX=new _.S("musicResponsiveListItemRenderer");var bhS=new _.S("addToPlaylistEndpoint");var GG_=new _.S("captionPickerEndpoint");var YjO=new _.S("suggestStats");var wyp=new _.S("backstageImageUploadEndpoint");var uUU=new _.S("createBackstagePostDialogEndpoint");_.SjH=new _.S("createCommentReplyDialogEndpoint");_.pyT=new _.S("updateCommentDialogEndpoint");_.mGO=new _.S("updateCommentReplyDialogEndpoint");var KKT=new _.S("menuEndpoint");var Hse=new _.S("modalEndpoint");var FMe=new _.S("playlistEditorEndpoint");var WMO=new _.S("copyTextEndpoint");var E4z,hic;E4z=new _.S("shareEndpoint");hic=new _.S("shareEntityEndpoint");_.dHM=new _.S("shareEntityServiceEndpoint");_.u9k=new _.S("userFeedbackEndpoint");_.GM=new _.S("watchEndpoint");var MBY=new _.S("watchPlaylistEndpoint");var NpM=new _.S("addUpcomingEventReminderEndpoint");_.bE=new _.S("getCommentsFromInboxCommand");var VCB=new _.S("notificationOptOutEndpoint");var UHu=new _.S("recordNotificationInteractionsEndpoint");var RiH=new _.S("removeUpcomingEventReminderEndpoint");var frn=new _.S("getDownloadActionCommand");_.eiT=new _.S("offlineOrchestrationActionCommand");var MCz=function(){HP.apply(this,arguments)};
_.k(MCz,HP);MCz.prototype.getAssociations=function(){return[]};var g4M=function(){HP.apply(this,arguments)};
_.k(g4M,HP);g4M.prototype.getAssociations=function(){return[]};var Q7B=function(){HP.apply(this,arguments)};
_.k(Q7B,HP);Q7B.prototype.getAssociations=function(){return[]};var zii=function(){HP.apply(this,arguments)};
_.k(zii,HP);zii.prototype.getAssociations=function(){return[]};var tCp=function(){HP.apply(this,arguments)};
_.k(tCp,HP);tCp.prototype.getAssociations=function(){var F=[];this.delegate.transfer&&F.push(this.delegate.transfer);this.delegate.adsPlaybackData&&F.push.apply(F,_.x9(this.delegate.adsPlaybackData));this.delegate.drmLicense&&F.push(this.delegate.drmLicense);this.delegate.offlineVideoPolicy&&F.push(this.delegate.offlineVideoPolicy);this.delegate.videoDownloadContextEntity&&F.push(this.delegate.videoDownloadContextEntity);return[].concat(_.x9(new Set(F)))};var CnU=function(){HP.apply(this,arguments)};
_.k(CnU,HP);CnU.prototype.getAssociations=function(){return[]};var BpT=function(){HP.apply(this,arguments)};
_.k(BpT,HP);BpT.prototype.getAssociations=function(){var F=[];this.delegate.offlineVideoStreams&&F.push.apply(F,_.x9(this.delegate.offlineVideoStreams));this.delegate.captionTrack&&F.push.apply(F,_.x9(this.delegate.captionTrack));return[].concat(_.x9(new Set(F)))};var v4_=function(){HP.apply(this,arguments)};
_.k(v4_,HP);v4_.prototype.getAssociations=function(){return[]};var I5B=new _.S("showMoreDrawerCommand");var cBU=new _.S("updateEngagementPanelContentCommand");var DHT=new _.S("getPdgBuyFlowCommand");var xHu=new _.S("liveChatPurchaseMessageEndpoint");var kaa=new _.S("openSuperStickerBuyFlowCommand");var ABz=new _.S("updatePdgFeatureEnablementCommand");var s7c=function(){HP.apply(this,arguments)};
_.k(s7c,HP);s7c.prototype.getAssociations=function(){return[]};var LMe=function(){HP.apply(this,arguments)};
_.k(LMe,HP);LMe.prototype.getAssociations=function(){return[]};_.qwT=new _.S("pdgCommentChipRenderer");_.$HT=new _.S("permissionRoleBottomBarRenderer");_.ZBM=new _.S("updatePermissionRoleCommand");var XDU=new _.S("prefetchWatchCommand");var HBe=new _.S("updatePlayerErrorMessageCommand");var $Jr=new _.S("toggleCaptionsVisibilityCommand");_.Pn_=new _.S("quickActionsViewModel");var JBT=new _.S("playerResponse");var a5c=new _.S("playlistRenderer");_.f5_=new _.S("playlistVideoListRenderer");_.lE=new _.S("playlistEditEndpoint");var OBu=new _.S("createImagePollCommand");var bB_=new _.S("createQuizCommand");var l5H=new _.S("quizRenderer");var n4T=new _.S("uploadedVideoRenderer");var yBM=new _.S("decorateMessageEndpoint");var j7M=new _.S("lpOfferCardOptionViewModel");var iBX=new _.S("sfvAudioItemPlaybackCommand");var rBc=function(){HP.apply(this,arguments)};
_.k(rBc,HP);rBc.prototype.getAssociations=function(){return[]};_.ni=new _.S("reelNonVideoContentEndpoint");_.DP=new _.S("reelWatchEndpoint");_.yE=new _.S("reelItemRenderer");_.Tpz=new _.S("reelMetapanelViewModel");_.o4X=new _.S("reelNonVideoContentRenderer");_.GaH=new _.S("reelPlayerOverlayRenderer");var YwU=new _.S("shortsLockupViewModel");var wDU=new _.S("sponsorButtonViewModel");var u4z=new _.S("reelItemWatchResponse");var Swp=new _.S("textBadgeRenderer");_.jt=new _.S("buttonRenderer");_.iE=new _.S("toggleButtonRenderer");var atb=new _.S("switchButtonViewModel");_.pDM=new _.S("confirmDialogRenderer");var mH_;mH_=new _.S("menuRenderer");_.KMe=new _.S("menuFlexibleItemRenderer");var Fyp=new _.S("pollRenderer");_.WyM=new _.S("backgroundPromoRenderer");var hRM;_.E5H=new _.S("chipCloudRenderer");hRM=new _.S("chipCloudChipRenderer");var ddX=new _.S("dropdownRenderer");var NNe=new _.S("gridVideoRenderer");_.mke=new _.S("itemSectionRenderer");_.VM_=new _.S("messageRenderer");var Udi=new _.S("sortFilterHeaderRenderer");_.rZ=new _.S("videoRenderer");var RRc=new _.S("resolveUrlCommandMetadata");var eRO=function(){HP.apply(this,arguments)};
_.k(eRO,HP);eRO.prototype.getAssociations=function(){return[]};_.tte=new _.S("getAnswerCommand");_.vB=new _.S("searchEndpoint");var CEu=new _.S("genAiRichTextViewModel");var aro=new _.S("overviewAnswerViewModel");var BZp=new _.S("addToPlaylistServiceEndpoint");var vJi=new _.S("clearSearchHistoryEndpoint");var IIz=new _.S("clearWatchHistoryEndpoint");var c7c=new _.S("webSerializedServiceEndpointExtension");_.DCp=new _.S("createCommentEndpoint");var xC_=new _.S("createCommentReplyEndpoint");var khX=new _.S("performCommentActionEndpoint");var A7_=new _.S("updateCommentEndpoint");var sHp=new _.S("updateCommentReplyEndpoint");_.Th=new _.S("createPlaylistServiceEndpoint");var L4O=new _.S("deletePlaylistEndpoint");var qaH=new _.S("deleteVideoEndpoint");var OhI=new _.S("getReportFormEndpoint");var $Ca=new _.S("modifyChannelNotificationPreferenceEndpoint");var EyW;_.I6=new _.S("offlinePlaylistEndpoint");EyW={ACTION_UNKNOWN:"ACTION_UNKNOWN",ACTION_ADD:"ACTION_ADD",ACTION_REMOVE:"ACTION_REMOVE",ACTION_REMOVE_WITH_PROMPT:"ACTION_REMOVE_WITH_PROMPT",ACTION_PAUSE:"ACTION_PAUSE",ACTION_RETRY:"ACTION_RETRY",ACTION_RESUME:"ACTION_RESUME",ACTION_SYNC:"ACTION_SYNC",ACTION_APPROVE:"ACTION_APPROVE",ACTION_INFER_AUTOMATICALLY:"ACTION_INFER_AUTOMATICALLY",ACTION_TOGGLE_AUTO_DOWNLOAD:"ACTION_TOGGLE_AUTO_DOWNLOAD"};var h3o;_.vS=new _.S("offlineVideoEndpoint");h3o={ACTION_UNKNOWN:"ACTION_UNKNOWN",ACTION_ADD:"ACTION_ADD",ACTION_REMOVE:"ACTION_REMOVE",ACTION_REMOVE_WITH_PROMPT:"ACTION_REMOVE_WITH_PROMPT",ACTION_PAUSE:"ACTION_PAUSE",ACTION_RETRY:"ACTION_RETRY",ACTION_RESUME:"ACTION_RESUME",ACTION_DOWNLOAD_IMMEDIATELY:"ACTION_DOWNLOAD_IMMEDIATELY",ACTION_REDOWNLOAD:"ACTION_REDOWNLOAD",ACTION_RENEW:"ACTION_RENEW",ACTION_RENEW_WITH_PROMPT:"ACTION_RENEW_WITH_PROMPT",ACTION_INFER_AUTOMATICALLY:"ACTION_INFER_AUTOMATICALLY"};var Zi_=new _.S("pingingEndpoint");_.XPa=new _.S("selectActiveIdentityEndpoint");var Hie=new _.S("setSettingEndpoint");var d8r=new _.S("undoFeedbackEndpoint");var PET=new _.S("unsubscribeEndpoint");_.J7U=new _.S("updatedMetadataEndpoint");var aIO=function(){HP.apply(this,arguments)};
_.k(aIO,HP);aIO.prototype.getAssociations=function(){return[]};_.fIT=new _.S("updateLocalAppSettingCommand");var Oi_=new _.S("saveImageToDeviceEndpoint");var biH=new _.S("shareImageCommand");var lIz=new _.S("sharingProviderDataCommand");var nJa=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(nJa,_.n2);var y7a=[0,_.Kc,-1];nJa.prototype.JSC$10178_serializeBinary=Wpo(y7a);var jHa=_.F3(y7a);var ii_=new _.S("userMentionSuggestionRenderer");var r7p=new _.S("liveChatTunnelCommand");var TZM=new _.S("showSponsorshipsGiftOfferDialogCommand");var oJH=new _.S("sponsorshipsScrollableShelfViewModel");var GhU=new _.S("updateUpcomingEventReminderButtonStateCommand");var YaH=new _.S("upcomingEventReminderButtonStateRenderer");var wP_=new _.S("subscribeEndpoint");var uWc=new _.S("registerTasksCommand");var Sau=new _.S("showDialogCommand");_.s8=new _.S("showSheetCommand");var pPM=new _.S("showSnackbarCommand");var mCU=function(){HP.apply(this,arguments)};
_.k(mCU,HP);mCU.prototype.getAssociations=function(){return[]};var K4a=function(){HP.apply(this,arguments)};
_.k(K4a,HP);K4a.prototype.getAssociations=function(){return[]};_.Kx=new _.S("avatarViewModel");var W5S=new _.S("badgeViewModel");_.fx=new _.S("buttonViewModel");_.oH=new _.S("chipViewModel");var F8H=new _.S("contentPreviewImageViewModel");var W8c=new _.S("decoratedAvatarViewModel");var HZe=new _.S("downloadButtonViewModel");_.OFn=new _.S("engagementBarViewModel");_.EQu=new _.S("imageBannerViewModel");var BfW=new _.S("lockupContentMetadataRowExtension");var hI_=new _.S("lockupMetadataViewModel");_.dI_=new _.S("lockupViewModel");var NLT=new _.S("avatarStackViewModel");var VlH=function(){HP.apply(this,arguments)};
_.k(VlH,HP);VlH.prototype.getAssociations=function(){return[]};_.UIO=new _.S("pageHeaderViewModel");var RIu=new _.S("snackbarViewModel");var Ask=new _.S("thumbnailHoverOverlayToggleActionsViewModel");_.O8=new _.S("toggleButtonViewModel");var eIT=function(){HP.apply(this,arguments)};
_.k(eIT,HP);eIT.prototype.getAssociations=function(){return[]};_.bFo=new _.S("votingViewModel");var Mlp=new _.S("sectionHeaderViewModel");var gQe=new _.S("notifyDropdownOptionSelectedCommand");var wCr=new _.S("listViewModel");_.Lx=new _.S("listItemViewModel");var Q0X=new _.S("dialogHeaderViewModel");var zIU=function(){HP.apply(this,arguments)};
_.k(zIU,HP);zIU.prototype.getAssociations=function(){return[]};var tl_=function(){HP.apply(this,arguments)};
_.k(tl_,HP);tl_.prototype.getAssociations=function(){return[]};var Cpu=function(){HP.apply(this,arguments)};
_.k(Cpu,HP);Cpu.prototype.getAssociations=function(){return[]};_.BLO=new _.S("transcriptSubmitCaptionCorrectionCommand");var vQi=function(){HP.apply(this,arguments)};
_.k(vQi,HP);vQi.prototype.getAssociations=function(){return[]};var IOY=new _.S("unpluggedStringRunImage");var ITT=new _.S("tabViewModel");var c5O=new _.S("tabbedViewModel");var DI_=function(){HP.apply(this,arguments)};
_.k(DI_,HP);DI_.prototype.getAssociations=function(){return[]};_.xIO=new _.S("updateDescriptionAction");var kYM=new _.S("updateToggleButtonTextAction");_.A5_=new _.S("autoplaySwitchButtonRenderer");var rX;_.s0c=new _.S("multiMarkersPlayerBarRenderer");rX=new _.S("chapterRenderer");var L8B=new _.S("heatMarkerRenderer");var BAk=new _.S("heatmapRenderer");var qXX=new _.S("smartSkipPlayerScrimOverlayRenderer");var $Iu=new _.S("timedMarkerDecorationRenderer");var kbb=new _.S("postWebToNativeMessageCommand");var Zop=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(Zop,_.n2);var XtH=_.K2(Zop,[0,_.Kc,-2]);var HoX=new _.S("whitelistEditEndpoint");var Pp_=new _.S("clearUrlParamCommand");var J5z=new _.S("commerceActionCommand");_.aTB=new _.S("getPaymentInstrumentsParamsCommand");var fTT=new _.S("getPaymentsClientTokenCommand");var Ooi=new _.S("googlePaymentBillingCommand");var bop=new _.S("googlePaymentPurchaseManagerCommand");_.lTM=new _.S("logGtmCommand");var nQe=new _.S("updateCardItemOnClickCommand");_.y5T=new _.S("ypcPauseSubscriptionCommand");_.j0_=new _.S("ypcResumeSubscriptionCommand");var iou=function(){HP.apply(this,arguments)};
_.k(iou,HP);iou.prototype.getAssociations=function(){return[]};var r5_=function(){HP.apply(this,arguments)};
_.k(r5_,HP);r5_.prototype.getAssociations=function(){return[]};var TLe=function(){HP.apply(this,arguments)};
_.k(TLe,HP);TLe.prototype.getAssociations=function(){return[]};var oQB=function(){HP.apply(this,arguments)};
_.k(oQB,HP);oQB.prototype.getAssociations=function(){return[]};var GY_=function(){HP.apply(this,arguments)};
_.k(GY_,HP);GY_.prototype.getAssociations=function(){return[]};var dLr=new _.S("ypcOffersEndpoint");var YXu=new _.S("cardItemRenderer"),wtz=new _.S("cardItemTextRenderer");var uba=new _.S("commerceCartItemQuantityPickerRenderer");var SXe=new _.S("linkCardRenderer");var Cqe=new _.S("quantityIncrementerButtonViewModel");var ptB=new _.S("quantityIncrementerViewModel");var mIz=new _.S("themedImageViewModel");_.K8e=new _.S("ypcCancelRecurrenceEndpoint");var Fo_=new _.S("ypcCompleteTransactionEndpoint");_.Wop=new _.S("ypcGetCartEndpoint");_.g9=new _.S("ypcGetOffersEndpoint");_.Gh=new _.S("ypcHandleTransactionEndpoint");var EEO=new _.S("ypcLogWalletAnalyticDataEndpoint");_.hBX=new _.S("ypcRedeemCodeEndpoint");var dXu=new _.S("ypcUpdateFopEndpoint");MC(et(1),Ua(4));f8n((new MessageChannel).port2);var N_p=function(){this.register=new Map},OPW=function(F,W,E){F=F+"_"+W;
YJ.register.has(F)?E=YJ.register.get(F):(E=E(),YJ.register.set(F,E));return E},V8X=function(F){F=_.U(F.register.values());
for(var W=F.next();!W.done;W=F.next())_.xP(W.value,"ABORTED")};
N_p.prototype.clear=function(){V8X(this);this.register.clear()};
var YJ=new N_p;var tfw=Date.now().toString();var Bvb,UXO=_.EY.ytLoggingDocDocumentNonce_;UXO||(UXO=Xf(16),_.S5("ytLoggingDocDocumentNonce_",UXO));Bvb=UXO;var sdr={DEFAULT:0,CHAT:1,CONVERSATIONS:2,MINIPLAYER:3,DIALOG:4,VOZ:5,MUSIC_WATCH_TABS:6,SHARE:7,PUSH_NOTIFICATIONS:8,RICH_GRID_WATCH:9,UNPLUGGED_BROWSE:10,PICTURE_IN_PICTURE:11,0:"DEFAULT",1:"CHAT",2:"CONVERSATIONS",3:"MINIPLAYER",4:"DIALOG",5:"VOZ",6:"MUSIC_WATCH_TABS",7:"SHARE",8:"PUSH_NOTIFICATIONS",9:"RICH_GRID_WATCH",10:"UNPLUGGED_BROWSE",11:"PICTURE_IN_PICTURE"};var RBz;RBz=1;_.Hf=function(F){this.veData=F};
_.ve=function(F){return new _.Hf({trackingParams:F})};
_.LQ=function(F,W,E,h,d,V){var R=RBz++;return new _.Hf({veType:F,veCounter:R,elementIndex:E,dataElement:W,youtubeData:h,jspbYoutubeData:d,loggingDirectives:V})};
_.N=_.Hf.prototype;
_.N.getAsJson=function(){var F={};this.veData.trackingParams!==void 0?F.trackingParams=this.veData.trackingParams:(F.veType=this.veData.veType,this.veData.veCounter!==void 0&&(F.veCounter=this.veData.veCounter),this.veData.elementIndex!==void 0&&(F.elementIndex=this.veData.elementIndex));this.veData.dataElement!==void 0&&(F.dataElement=this.veData.dataElement.getAsJson());this.veData.youtubeData!==void 0&&(F.youtubeData=this.veData.youtubeData);this.veData.isCounterfactual&&(F.isCounterfactual=!0);
return F};
_.N.getAsJspb=function(){var F=new jrB;this.veData.trackingParams!==void 0?F.setTrackingParams(this.veData.trackingParams):(this.veData.veType!==void 0&&_.ij(F,2,this.veData.veType),this.veData.veCounter!==void 0&&_.ij(F,6,this.veData.veCounter),this.veData.elementIndex!==void 0&&_.ij(F,3,this.veData.elementIndex),this.veData.isCounterfactual&&_.NT(F,5,!0));if(this.veData.dataElement!==void 0){var W=this.veData.dataElement.getAsJspb();_.hy(F,7,W)}this.veData.youtubeData!==void 0&&_.hy(F,8,this.veData.jspbYoutubeData);
return F};
_.N.toString=function(){return JSON.stringify(this.getAsJson())};
_.N.isClientVe=function(){return!this.veData.trackingParams&&!!this.veData.veType};
_.N.getLoggingDirectives=function(){return this.veData.loggingDirectives};_.S5("yt_logging_screen.getRootVeType",xoY);_.S5("yt_logging_screen.getCurrentCsn",_.JR);_.S5("yt_logging_screen.getCttAuthInfo",ak);_.S5("yt_logging_screen.setCurrentScreen",_.$ob);var eBT=function(){this.events=new Map},M8e=function(F){var W=[];
F=_.U(F.events.values());for(var E=F.next();!E.done;E=F.next())W.push(E.value);return W};
eBT.prototype.clear=function(){this.events.clear()};var Qva=function(){this.logTransport=new gEe;this.loggedEventRegister=new eBT;this.unloggedEventRegister=new eBT;this.eventsCount=0;this.flushInterval=3E4;this.JSC$10235_flushTimer=new _.Eg(this.flushInterval);this.JSC$10235_flushTimer.listen("tick",this.flush,!1,this)};
Qva.prototype.flush=function(){if(this.eventsCount){var F={loggedEvents:M8e(this.loggedEventRegister),unloggedEvents:M8e(this.unloggedEventRegister)};if(_.c("export_player_version_to_ytconfig")){var W;(W=_.b0("PLAYER_CLIENT_VERSION"))?(W=W.split("-")[0].replace(/\./g,""),W=isNaN(Number(W))?"0":W):W="";var E=_.b0("PLAYER_CLIENT_VERSION");if(E){E=E.split("-");var h="";E.length>1&&(h=E[E.length-1]);E=zto(h.startsWith("canary_experiment")?"canary":h.startsWith("canary_control")?"control":"none")}else E=
"CLIENT_CANARY_STATE_UNKNOWN";F.dimensions={playerClientVersion:W,playerCanaryState:E}}this.logTransport.flush(F);this.loggedEventRegister.clear();this.unloggedEventRegister.clear();this.eventsCount=0;this.JSC$10235_flushTimer.enabled&&this.JSC$10235_flushTimer.stop()}};
var zBT=function(F){wZ==null&&(wZ=new Qva);var W=wZ;var E=W.loggedEventRegister;F.dimensions=F.dimensions||{};F.dimensions.csn=_.JR()||"";var h=ZPo(F.dimensions).join(";");if(F.records!=null)if(E.events.has(h)){var d;(d=E.events.get(h).records)==null||d.push.apply(d,_.x9(F.records))}else E.events.set(h,F);W.JSC$10235_flushTimer.enabled||W.JSC$10235_flushTimer.start();W.eventsCount++;W.eventsCount>=100&&W.flush()};var gEe=function(){};
gEe.prototype.flush=function(F,W){_.c("enable_client_sli_logging")&&_.Pc("sliEventBatch",F,{sendIsolatedPayload:!!W})};var wZ;var CaH;CaH=function(F){var W=t8p;F=F===void 0?{}:F;W=W.name;var E=fZR("SUCCESS");zBT({dimensions:F,records:[{name:W,state:"SLI_STATE_END",status:E}]})};
_.bPY=function(F,W,E,h){this.name=F;this.sliId=W;this.timeoutMs=E;this.statusOnTimeout=h;this.logSliId="";this.timeoutHandle=-1;this.ongoing=!1;this.dimensions={}};
_.bPY.prototype.getId=function(){return this.sliId};
_.DB=function(F,W){W=W===void 0?{}:W;F.ongoing||(F.ongoing=!0,F.dimensions=W,F.logSliId=BYU(),zBT({dimensions:F.dimensions,records:[{name:F.name,state:"SLI_STATE_START",sliId:F.logSliId}]}),F.timeoutMs>0&&(F.timeoutHandle=setTimeout(function(){_.xP(F,F.statusOnTimeout)},F.timeoutMs)))};
_.xP=function(F,W){F.ongoing&&(F.timeoutMs>0&&clearTimeout(F.timeoutHandle),F.ongoing=!1,W={dimensions:F.dimensions,records:[{name:F.name,status:fZR(W),state:"SLI_STATE_END",sliId:F.logSliId}]},YJ.register.delete(F.name+"_"+F.sliId),zBT(W))};var t8p=new function(){this.name="SLI_NAME_YOUTUBE_WEB_SESSION_PARTITION"};var B_i=function(){HP.apply(this,arguments)};
_.k(B_i,HP);B_i.prototype.getAssociations=function(){return[]};var Nmb=new _.S("highlightTextDecoratorColorMapExtension");var hVn=new _.S("styleRunColorMapExtension");var Tvo=_.Fc(["data-"]),Ysr={};var u8R={};var uE=function(F){this.wrappedPromise_=F===void 0?null:F;this.state_=0;this.JSC$10267_value_=null};
uE.prototype.then=function(F,W,E){return this.wrappedPromise_?this.wrappedPromise_.then(F,W,E):this.state_===1&&F?(F=F.call(E,this.JSC$10267_value_))&&typeof F.then==="function"?F:_.St(F):this.state_===2&&W?(F=W.call(E,this.JSC$10267_value_))&&typeof F.then==="function"?F:_.vEp(F):this};
uE.prototype.getValue=function(){return this.JSC$10267_value_};
uE.prototype.isRejected=function(){return this.state_==2};
jIM(uE);_.vEp=function(F){var W=new uE;F=F===void 0?null:F;W.state_=2;W.JSC$10267_value_=F===void 0?null:F;return W};
_.St=function(F){var W=new uE;F=F===void 0?null:F;W.state_=1;W.JSC$10267_value_=F===void 0?null:F;return W};var MjG="absolute_experiments app conditional_experiments debugcss debugjs expflag forced_experiments pbj pbjreload sbb spf spfreload sr_bns_address sttick".split(" ");var Izz=["load","abort","error"],pi=function(F,W,E){this.transformedData=null;this.invalidAspectRatio=this.cropped=!1;this.JSC$10287_maxAspectRatio_=F;this.disableAnimation_=W===void 0?!1:W;this.disableExifRotation_=E===void 0?!1:E;this.JSC$10287_image_=new Image;this.angle_=this.dataUrl_=this.mime_=this.JSC$10287_reject_=this.resolve_=null};
pi.prototype.transform=function(F){var W=this;this.mime_=F.type;mx(bVU(F),this.dataUrlRead_,this.readError_,this);mx(OV_(F.slice(0,65536)),this.exifRead_,this.readError_,this);return new Promise(function(E,h){W.resolve_=E;W.JSC$10287_reject_=h})};
pi.prototype.dataUrlRead_=function(F){this.dataUrl_=F;this.angle_!=null&&clM(this)};
pi.prototype.exifRead_=function(F){if(this.disableExifRotation_)this.angle_=0;else{a:if(F=new DataView(F),F.byteLength<2||F.getUint16(0)!==65496)F=-2;else{for(var W=2,E=F.byteLength;W<E;){var h=F.getUint16(W),d=F.getUint16(W+2);if(h===65505){W+=4;h=F.getUint32(W);d=F.getUint16(W+4);if(h!==1165519206||d!==0)break;W+=6;h=F.getUint16(W)===18761;W+=F.getUint32(W+4,h);d=F.getUint16(W,h);W+=2;for(var V=0;V<d;V++){if(F.getUint16(W,h)===274){W+=8;F=F.getUint16(W,h);break a}W+=12}}else if(h>>8!==255)break;
else W+=d+2}F=-1}switch(F){case 8:this.angle_=270;break;case 3:this.angle_=180;break;case 6:this.angle_=90;break;default:this.angle_=0}}this.dataUrl_!=null&&clM(this)};
pi.prototype.readError_=function(){this.JSC$10287_reject_()};
var clM=function(F){CK(F.JSC$10287_image_,Izz,F.completeTransform_,!1,F);F.JSC$10287_image_.src=_.II(F.dataUrl_).toString();F.JSC$10287_image_.src!=vp.toString()&&F.JSC$10287_image_.src.substr(0,11)==="data:image/"||F.JSC$10287_reject_()};
pi.prototype.completeTransform_=function(){if(this.JSC$10287_image_.src!=vp.toString()){var F=_.II(this.dataUrl_),W=this.JSC$10287_image_.naturalHeight?this.JSC$10287_image_.naturalWidth/this.JSC$10287_image_.naturalHeight:null;this.invalidAspectRatio=W>this.JSC$10287_maxAspectRatio_||W<1/this.JSC$10287_maxAspectRatio_;if(this.mime_!=="image/gif"||this.disableAnimation_){var E=this.JSC$10287_image_.naturalWidth,h=this.JSC$10287_image_.naturalHeight,d=W=0,V=this.JSC$10287_image_.naturalHeight?this.JSC$10287_image_.naturalWidth/
this.JSC$10287_image_.naturalHeight:null;V>this.JSC$10287_maxAspectRatio_?(E=this.JSC$10287_maxAspectRatio_*h,W=(E-this.JSC$10287_image_.naturalWidth)/2,this.cropped=!0):V<1/this.JSC$10287_maxAspectRatio_?(h=this.JSC$10287_maxAspectRatio_*E,d=(h-this.JSC$10287_image_.naturalHeight)/2,this.cropped=!0):this.mime_==="image/gif"&&this.disableAnimation_&&(this.cropped=!0);if(this.angle_==90||this.angle_==270)V=E,E=h,h=V,V=W,W=d,d=V;switch(this.angle_){case 90:d-=E;break;case 180:W-=E;d-=h;break;case 270:W-=
h}this.cropped||this.angle_%360!==0?(F=document.createElement("canvas"),F.width=E||1,F.height=h||1,this.JSC$10287_image_.naturalWidth&&this.JSC$10287_image_.naturalHeight&&(E=F.getContext("2d"),E.rotate(Math.PI/180*this.angle_),E.drawImage(this.JSC$10287_image_,W,d,this.JSC$10287_image_.naturalWidth,this.JSC$10287_image_.naturalHeight)),this.transformedData=_.II(F.toDataURL(this.mime_))):this.transformedData=F}else this.transformedData=F;this.resolve_(this)}};var m4=function(F,W){_.xU.call(this,F);this.value=W};
_.k(m4,_.xU);
var Ki=function(F,W,E,h,d,V,R){R=R===void 0?!1:R;_.qo.call(this);var M=this;this.JSC$10292_url_=F;this.channelId_=W;this.maxFileSizeMb_=E;this.JSC$10292_maxAspectRatio_=h;this.dropZoneEl_=d;this.rejectInvalidAspectRatio_=R;this.selectButtonEl_=V;this.JSC$10292_reject_=this.resolve_=this.uploadPromise_=null;this.dropZoneOverlay_=new IH(this.dropZoneEl_);this.selectOverlay_=new cP(this.selectButtonEl_);this.selectButtonEl_.nextSibling.tagName=="INPUT"&&this.selectButtonEl_.nextSibling.setAttribute("accept","image/*");
this.JSC$10292_image_=this.transfer_=null;this.handler_=new _.hR(this);_.gl(this,this.handler_);this.handler_.listen(this.dropZoneOverlay_,"f",this.onChange_).listen(this.dropZoneEl_,"dragover",this.onHover_).listen(this.dropZoneEl_,"dragleave",this.onHover_).listen(V,"click",function(){M.selectOverlay_.click()}).listen(this.selectOverlay_,"j",this.onChange_)};
_.k(Ki,_.qo);Ki.prototype.disposeInternal=function(){for(var F=this.selectButtonEl_.nextSibling;F&&F.parentNode&&F.tagName=="INPUT";)F.parentNode.removeChild(F),F=this.selectButtonEl_.nextSibling;this.cancel();_.qo.prototype.disposeInternal.call(this)};
Ki.prototype.uploadPromise=function(){if(this.JSC$10292_image_==null)return null;this.uploadPromise_||DXB(this);return this.uploadPromise_};
Ki.prototype.cancel=function(){xXi(this);this.JSC$10292_image_=null};
var xXi=function(F){F.transfer_&&F.transfer_.cancel();F.transfer_=null;F.uploadPromise_=null;F.resolve_=null;F.JSC$10292_reject_=null},DXB=function(F){xXi(F);
F.transfer_=_.KEp(F.JSC$10292_url_,{"X-YouTube-ChannelId":F.channelId_},F.JSC$10292_image_);F.handler_.listenOnce(F.transfer_,"l",F.JSC$10294_onUploadComplete_);F.handler_.listenOnce(F.transfer_,"n",F.onUploadError_);F.transfer_.run();F.uploadPromise_=new Promise(function(W,E){F.resolve_=W;F.JSC$10292_reject_=E})};
_.N=Ki.prototype;_.N.onChange_=function(F){F.files.length&&(this.JSC$10292_image_=F.files[0],this.JSC$10292_image_.size>1048576*this.maxFileSizeMb_?(this.JSC$10292_image_=null,this.dispatchEvent(new m4("yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"))):(DXB(this),(new pi(this.JSC$10292_maxAspectRatio_)).transform(this.JSC$10292_image_).then((0,_.kj)(this.onPreview_,this),(0,_.kj)(this.onPreviewError_,this))))};
_.N.onPreview_=function(F){if(F.invalidAspectRatio&&(this.rejectInvalidAspectRatio_&&(this.JSC$10292_image_=null),this.dispatchEvent(new m4("yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT")),this.rejectInvalidAspectRatio_))return;F.cropped&&this.dispatchEvent(new m4("yt.comments.ImageUploadOverlay.CROPPED_EVENT"));this.dispatchEvent(new m4("yt.comments.ImageUploadOverlay.CHANGE_EVENT",F.transformedData))};
_.N.onPreviewError_=function(){this.JSC$10292_image_=null;this.dispatchEvent(new m4("yt.comments.ImageUploadOverlay.INVALID_EVENT"))};
_.N.onHover_=function(F){F.stopPropagation();F.preventDefault();if(F.type==="dragover")F=!0;else if(F.type==="dragleave")F=!1;else return;this.dispatchEvent(new m4("yt.comments.ImageUploadOverlay.HOVER_EVENT",F))};
_.N.JSC$10294_onUploadComplete_=function(){var F=(0,_.g9a)(this.transfer_.getResponseText());this.resolve_(F.encryptedBlobId)};
_.N.onUploadError_=function(){this.JSC$10292_reject_();xXi(this)};var kSM=function(F){F=F||{};var W={},E={};this.url=F.url||"";this.args=F.args||_.xd.clone(W);this.assets=F.assets||{};this.attrs=F.attrs||_.xd.clone(E);this.fallback=F.fallback||null;this.fallbackMessage=F.fallbackMessage||null;this.html5=!!F.html5;this.disable=F.disable||{};this.loaded=!!F.loaded;this.messages=F.messages||{}};
kSM.prototype.clone=function(){var F=new kSM,W;for(W in this)if(this.hasOwnProperty(W)){var E=this[W];F[W]=_.CN(E)=="object"?_.xd.clone(E):E}return F};var AlO,svB,LoX,RV,$X_,ZyX,X2c,HyH,Pa_,Jli,azi,fzi,OyO,byO,lzz,nEe,yla,jvu,iyU,rlB,T_i,oEa,GSe,YkX,w2B,uBa,SkT,p2M,mXz,PFe,KoH,F2O,W2e,Egz,hJT,d4p,N5i,VBM,U4_,RJi,eJp,MBe,gg_,Q9z,zJz,tBc,CDc,B5X,vge,IW_,cq_,D4a,x4M,kfe,Aq_,s9i,Fb,L2u,qzp,$4U,Z7H,XUX,H7M,PDU,JqO,aWc,fWu,O7_,b7U,lWT,ngp,yq_,j9i,i7i,rqO,XWo,T5M,ogB,GfH,YzU,wUu,uMO,Szu,pUM,m4O,K2H,FCU,WC_,Eza,hPM,de_,Ntu,VVp,UeM,RPa,ePU,MVp,gzu,Qmu,zPH,tVu;AlO=["account/accounts_list"];svB=["acknowledge_channel_tou_strike"];LoX=["notification/add_upcoming_event_reminder"];
_.qkc=["att/get"];RV=["browse","music/browse","unplugged/browse"];$X_=["channel/claim_legacy_youtube_channel"];ZyX=["history/clear_search_history"];X2c=["history/clear_watch_history"];HyH=["comment/perform_comment_action"];Pa_=["comment/get_comment_replies"];Jli=["ypc/commerce_action"];azi=["backstage/create_post"];fzi=["live/create_broadcast"];OyO=["channel/create_channel"];byO=["comment/create_comment_reply"];lzz=["comment/create_comment"];nEe=["live_chat/create_poll"];yla=["playlist/create"];
jvu=["decorate_message"];iyU=["live_chat/delete_message"];rlB=["playlist/delete"];T_i=["video/delete"];oEa=["like/dislike"];GSe=["dismissal/dismiss"];YkX=["flag/flag"];w2B=["flow"];uBa=["account/account_menu"];SkT=["playlist/get_add_to_playlist"];p2M=["get_answer"];mXz=["channel/get_channel_creation_form"];PFe=["offline/get_download_action"];KoH=["kids/get_kids_blocklist_picker"];F2O=["live_chat/get_item_context_menu"];W2e=["live_chat/get_live_chat_message_buy_flow"];Egz=["live_chat/get_live_chat_replay"];
hJT=["live_chat/get_live_chat","live_chat/get_live_interactivity","live_chat/get_streaming_live_chat"];d4p=["live_chat/get_live_chat_super_sticker_buy_flow"];N5i=["notification/get_notification_menu"];VBM=["playlist/get_settings_editor"];U4_=["backstage/get_post_video_preview"];RJi=["account/get_profile_card"];eJp=["share/get_share_panel"];MBe=["share/get_sharing_provider_data"];gg_=["get_survey"];Q9z=["notification/get_unseen_count"];zJz=["get_user_mention_suggestions"];tBc=["get_watch"];CDc=["guide"];
B5X=["feedback"];vge=["kids/update_blacklist"];IW_=["like/like"];cq_=["live_chat/live_chat_action"];D4a=["live_chat/manage_user"];x4M=["video_manager/metadata_update"];kfe=["live_chat/moderate"];Aq_=["notification/modify_channel_preference"];s9i=["notification/opt_out"];Fb=["get_panel","get_posts_by_host_panel"];L2u=["player"];qzp=["browse/edit_playlist"];$4U=["notification/record_interactions"];Z7H=["reel/reel_item_watch"];XUX=["reel/reel_watch_sequence"];H7M=["like/removelike"];PDU=["notification/remove_upcoming_event_reminder"];
JqO=["flag/get_form"];aWc=["miniapp/report_value"];fWu=["navigation/resolve_url"];O7_=["channel/reveal_business_email"];b7U=["in_video/search"];lWT=["search","sfv/search","unplugged/search"];ngp=["live_chat/send_message"];yq_=["live_chat/send_live_chat_vote"];j9i=["account/set_setting"];i7i=["submit_caption_correction"];rqO=["subscription/subscribe"];XWo=["get_transcript"];T5M=["resolve_location","unplugged/resolve_location"];ogB=["subscription/unsubscribe"];GfH=["backstage/update_post"];YzU=["channel_edit/update_channel_page_settings"];
wUu=["comment/update_comment_reply"];uMO=["comment/update_comment"];Szu=["comment/update_comments_settings"];pUM=["creator/update_creator_channel"];m4O=["pdg/update_enablement"];K2H=["updated_metadata"];FCU=["channel_edit/validate_channel_handle"];WC_=["verify_age"];Eza=["next","unplugged/watch_next"];hPM=["whitelist/edit"];de_=["ypc/cancel_recurrence"];Ntu=["ypc/complete_transaction"];VVp=["ypc/get_cart"];UeM=["ypc/get_fix_instrument_params"];RPa=["ypc/get_offers"];ePU=["ypc/get_payment_instruments_params"];
MVp=["ypc/handle_transaction"];gzu=["ypc/log_payment_server_analytics"];Qmu=["ypc/pause_subscription"];zPH=["ypc/redeem_code"];tVu=["ypc/resume_subscription"];var CUB=[3611,27686,221058,85013,23462,241187,157557,42016,26926,51236,79148,50160,77504,153587,87907,18630,177018,177023,54445,80935,152172,184553,105675,150723,37521,147285,47786,231255,231254,231258,231259,98349,237299,168271,168954,168277,168273,168270,123695,226987,226990,226988,6827,29434,255010,171388,244189,236208,7282,124448,196088,250897,198104,32276,195115,195114,76278,200635,230594,147868,147869,93911,106531,257234,252598,252597,252600,252599,252596,225031,177843,27259,27262,27263,21759,
160866,204249,222900,204250,180626,177959,177957,180628,205716,197878,171243,160789,171244,171241,171245,171242,225560,180627,177960,231589,177958,180629,205717,197879,177565,212573,210709,230684,229801,230685,197337,209010,197336,197338,198618,175492,198052,198051,197852,197976,175493,175494,175495,189254,175496,175497,38408,175498,175503,175504,175505,175506,175507,175508,80637,68727,206933,207944,206934,206929,221575,68728,221576,80353,80356,249107,180635,74610,45707,83962,83970,46713,166591,89711,
74612,213809,179607,245006,155792,93265,74611,131380,128979,139311,128978,131391,105350,139312,134800,131392,113533,229298,93252,99357,94521,114252,113532,94522,94583,202371,88E3,139580,93253,93254,94387,94388,93255,97424,72502,219868,212991,110111,76019,117092,117093,89431,191831,110466,231346,77240,60508,186091,148123,148124,137401,137402,137046,73393,246776,113534,92098,131381,84517,83759,230676,249183,230679,230678,230677,230681,230680,162711,235234,162712,80357,243315,86113,72598,168413,72733,
107349,124275,118203,200410,133275,160157,152569,156651,133274,160159,160158,133272,133273,133276,144507,143247,175994,156652,143248,143249,143250,143251,189892,189894,189893,156653,214236,144401,117431,133797,225137,222612,222613,153964,201133,201134,201135,201136,201137,128572,200411,200412,190337,133405,117429,117430,177950,174734,177951,201138,201139,201140,201141,201142,117432,173996,173995,174953,173994,173997,120080,117259,178546,197891,156655,156654,121692,211414,211411,211412,211413,211403,
184846,185993,145656,156656,145655,145653,145654,145657,132972,133051,133658,132971,97615,181262,190762,250344,254027,143359,143356,143361,143358,143360,143357,142303,143353,172859,143354,144479,143355,31402,181590,133624,146477,133623,133622,133621,192418,84774,197993,241460,160801,197995,95117,172721,150497,98930,98931,98932,153320,153321,43347,249295,210016,210017,262686,211851,211852,211853,129889,197888,197889,149123,221959,221627,221958,45474,100352,98443,117985,74613,155911,74614,64502,136032,
74615,74616,122224,74617,77820,74618,262988,262989,226981,93278,93274,93275,93276,200688,200686,200687,199841,22110,29433,133798,132295,120541,222112,82047,113550,75836,75837,192409,203221,42352,84512,76065,75989,205911,205912,252649,205913,252650,252651,51879,16623,32594,27240,32633,74858,222932,213915,225216,251244,258251,218674,251266,258250,251265,251245,156999,3945,16989,45520,25488,25492,25494,232113,55760,14057,18451,57204,57203,17897,18198,17898,17909,43980,221053,195529,189660,46220,11721,
147994,49954,96369,3854,217640,151633,56251,205192,216797,159108,181568,25624,152036,16906,99999,68172,47973,72773,26970,26971,96805,17752,73233,205923,109512,22256,14115,22696,234409,234408,89278,89277,195745,109513,43278,43459,43464,89279,43717,55764,22255,147912,89281,40963,43277,43442,91824,120137,186350,186351,256690,211026,250896,96367,36850,72694,37414,36851,124863,121343,73491,54473,166861,43375,46674,242528,143815,139095,144402,149968,149969,32473,72901,72906,50612,50613,50942,84938,84943,
84939,84941,84944,84940,84942,35585,51926,79983,18921,57893,41182,135732,33424,22207,36229,22206,22205,44763,33427,67793,22182,37091,34650,50617,22287,25144,97917,220122,62397,150871,150874,125598,137935,36961,108035,27426,27857,27846,27854,69692,61411,39299,38696,62520,36382,108701,192682,50663,36387,14908,37533,105443,61635,62274,161670,133818,182119,65702,65703,65701,76256,263843,196075,194768,252201,194769,191885,233634,194770,195350,195349,194771,166382,37671,49953,220669,249229,213774,204572,
191389,253830,253831,253832,253833,253834,204574,187917,191390,179556,191402,238596,212661,191392,197826,191393,204573,36216,28237,241212,173718,39553,192547,29222,26107,241211,38050,26108,120745,26109,26110,66881,28236,14586,160598,57929,226736,74723,44098,173689,44099,23528,61699,134104,134103,198313,59149,181013,173191,173192,173193,101951,171502,196043,198305,97346,118051,95102,64882,119505,63595,257268,63349,240553,95101,75240,27039,68823,21537,83464,75707,252904,170215,223033,83113,101952,101953,
79610,125755,24402,24400,32925,193406,57173,183351,156421,122502,145268,138480,64423,64424,33986,100828,129089,21409,185612,222825,245366,135155,135156,135157,135158,158225,135159,135160,167651,135161,135162,135163,158226,158227,135164,135165,135166,11070,11074,17880,30709,30707,30711,30710,30708,185213,185273,146143,63648,63649,221056,211189,111059,211188,5754,20445,233471,151308,151152,228067,130975,130976,247244,261210,210815,246127,245256,244950,191925,167637,234545,197196,214295,110386,221054,
113746,66557,183215,17310,28631,201935,21589,242036,238351,164817,168011,154946,68012,162617,60480,184431,138664,249827,194E3,141121,164502,31571,195002,206793,141978,233985,250895,254052,254053,254054,254051,254050,254055,150105,150106,150107,150108,76980,41577,45469,38669,13768,13777,141842,62985,213190,4724,223052,59369,43927,43928,12924,197853,100355,56219,27669,209928,10337,203648,203649,47896,122629,186204,222824,139723,139722,121258,253789,253787,253786,253788,253790,107598,127991,96639,107536,
130169,216522,96661,145188,213904,96658,116646,159428,168611,168612,121122,219862,96660,127738,127083,155281,162959,220886,227356,248007,163566,186641,147842,217932,104443,96659,147595,106442,247162,231493,213427,246575,182423,162776,228908,134840,63667,63668,63669,130686,248381,147036,239094,262743,189810,239095,78314,147799,237146,174049,148649,55761,127098,134841,96368,67374,48992,146176,176105,233035,49956,190190,225739,31961,26388,23811,5E4,126250,96370,210549,47355,47356,37935,45521,21760,83769,
49977,49974,93497,93498,34325,140759,115803,123707,100081,35309,237706,68314,25602,100339,170873,143516,178921,254884,258232,59018,18248,50625,9729,37168,37169,21667,16749,18635,39305,18046,221057,53969,8213,93926,221055,210542,212552,102852,110099,22678,69076,137575,139224,100856,235770,154430,235861,209757,17736,3832,147111,55759,64031,234746,93044,93045,170701,170702,194796,34388,167841,170419,17657,17655,39579,39578,170412,77448,8196,11357,69877,8197,168501,156512,161613,156509,208274,161612,
161614,262801,262800,262799,262802,262798,82039];var zJ=window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{};_.S5("yt.msgs_",zJ);var Wt=new _.NG("ACTION_ROUTER_TOKEN");_.EX=function(){this.autonavState_=_.c("kevlar_is_pupi_enabled")?2:kUr()?2:1;this.disabledAutonavPauseReason_=this.autonavPauseReason_=void 0;this.autoplayChangedByUser=!1};
_.EX.prototype.getState=function(){return this.autonavState_};
_.EX.prototype.pause=function(F){this.autonavState_==2?(this.setState(3,!1,!1),this.autonavPauseReason_=F):this.autonavState_==1&&(this.disabledAutonavPauseReason_=F)};
_.EX.prototype.setState=function(F,W,E){W&&(this.autoplayChangedByUser=!0);W=this.autonavState_===3||F===3;this.autonavState_!=F&&(this.autonavState_=F,F!=3&&_.AJr(F==2),F=_.c("kevlar_is_pupi_enabled")?E||W:!0,_.o_.getInstance().triggerOptionalAction("yt-autonav-state-changed-action",this.autonavState_,F,E))};
_.EX.prototype.isAutoplaySetExplicitly=function(){return this.autoplayChangedByUser};
_.RZ(_.EX);var h5=function(){this.hasRun=!1};var dL={},b3r=(dL.auto_search="LATENCY_ACTION_AUTO_SEARCH",dL.ad_to_ad="LATENCY_ACTION_AD_TO_AD",dL.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",dL.app_startup="LATENCY_ACTION_APP_STARTUP",dL.browse="LATENCY_ACTION_BROWSE",dL.cast_splash="LATENCY_ACTION_CAST_SPLASH",dL.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",dL.channels="LATENCY_ACTION_CHANNELS",dL.chips="LATENCY_ACTION_CHIPS",dL.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",dL.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",
dL.editor="LATENCY_ACTION_EDITOR",dL.embed="LATENCY_ACTION_EMBED",dL.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",dL.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",dL.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",dL.explore="LATENCY_ACTION_EXPLORE",dL.favorites="LATENCY_ACTION_FAVORITES",dL.home="LATENCY_ACTION_HOME",dL.inboarding="LATENCY_ACTION_INBOARDING",dL.landing="LATENCY_ACTION_LANDING",dL.library="LATENCY_ACTION_LIBRARY",dL.live=
"LATENCY_ACTION_LIVE",dL.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",dL.management="LATENCY_ACTION_MANAGEMENT",dL.mini_app="LATENCY_ACTION_MINI_APP_PLAY",dL.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",dL.onboarding="LATENCY_ACTION_ONBOARDING",dL.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",dL.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",dL.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",dL.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",
dL.prebuffer="LATENCY_ACTION_PREBUFFER",dL.prefetch="LATENCY_ACTION_PREFETCH",dL.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",dL.profile_switcher="LATENCY_ACTION_LOGIN",dL.projects="LATENCY_ACTION_PROJECTS",dL.reel_watch="LATENCY_ACTION_REEL_WATCH",dL.results="LATENCY_ACTION_RESULTS",dL.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",dL.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",dL.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",dL.review="LATENCY_ACTION_REVIEW",dL.search_overview_answer=
"LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",dL.search_ui="LATENCY_ACTION_SEARCH_UI",dL.search_suggest="LATENCY_ACTION_SUGGEST",dL.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",dL.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",dL.seek="LATENCY_ACTION_PLAYER_SEEK",dL.settings="LATENCY_ACTION_SETTINGS",dL.store="LATENCY_ACTION_STORE",dL.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",dL.tenx="LATENCY_ACTION_TENX",dL.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",dL.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",
dL.watch="LATENCY_ACTION_WATCH",dL.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",dL["watch,watch7"]="LATENCY_ACTION_WATCH",dL["watch,watch7_html5"]="LATENCY_ACTION_WATCH",dL["watch,watch7ad"]="LATENCY_ACTION_WATCH",dL["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",dL.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",dL.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",dL.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",dL.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",dL.networkless_performance=
"LATENCY_ACTION_NETWORKLESS_PERFORMANCE",dL.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",dL.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",dL.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",dL);var EZo=function(F,W){XU.call(this,1,arguments);this.timer=W};
_.k(EZo,XU);var WKY=new grn("aft-recorded",EZo);var jsG=_.EY.ytLoggingGelSequenceIdObj_||{};_.S5("ytLoggingGelSequenceIdObj_",jsG);var NI=_.EY.ytLoggingLatencyUsageStats_||{};_.S5("ytLoggingLatencyUsageStats_",NI);var VH=function(){this.cleanupJob=0},Tsb=function(){VH.instance||(VH.instance=new VH);
return VH.instance};
_.N=VH.prototype;_.N.baseline=function(F,W,E){UX(this,"baseline_"+F)||_.Pc("latencyActionBaselined",{clientActionNonce:F},{timestamp:W,cttAuthInfo:E})};
_.N.tick=function(F,W,E,h){UX(this,"tick_"+F+"_"+W)||_.Pc("latencyActionTicked",{tickName:F,clientActionNonce:W},{timestamp:E,cttAuthInfo:h})};
_.N.info=function(F,W,E){var h=Object.keys(F).join("");UX(this,"info_"+h+"_"+W)||(F=Object.assign({},F),F.clientActionNonce=W,_.Pc("latencyActionInfo",F,{cttAuthInfo:E}))};
_.N.jspbInfo=function(F,W,E){for(var h="",d=0;d<du(F).length;d++)du(F)[d]!==void 0&&(h=d===0?h.concat(""+d):h.concat("_"+d));UX(this,"info_"+h+"_"+W)||(_.QJ(F,2,W),W={cttAuthInfo:E},E=_.c("jspb_sparse_encoded_pivot")?new AV([{}]):new AV,_.dU(E,7,EOp,F),i3G("latencyActionInfo",E,W))};
_.N.span=function(F,W,E){var h=Object.keys(F).join("");UX(this,"span_"+h+"_"+W)||(F.clientActionNonce=W,_.Pc("latencyActionSpan",F,{cttAuthInfo:E}))};
var UX=function(F,W){NI[W]=NI[W]||{count:0};var E=NI[W];E.count++;E.time=(0,_.KU)();F.cleanupJob||(F.cleanupJob=_.sB(_.P0,function(){var h=(0,_.KU)(),d;for(d in NI)NI[d]&&h-NI[d].time>6E4&&delete NI[d];F&&(F.cleanupJob=0)},5E3));
return E.count>5?(E.count===6&&Math.random()*1E5<1&&(E=new _.xC("CSI data exceeded logging limit with key",W.split("_")),W.indexOf("plev")>=0||_.OB(E)),!0):!1};var BtU,vz_;BtU=window;vz_=function(){this.timing={};this.clearResourceTimings=function(){};
this.webkitClearResourceTimings=function(){};
this.mozClearResourceTimings=function(){};
this.msClearResourceTimings=function(){};
this.oClearResourceTimings=function(){}};
_.xb=BtU.performance||BtU.mozPerformance||BtU.msPerformance||BtU.webkitPerformance||new vz_;var FKn=!1,GUS=!1,hHY=(0,_.kj)(_.xb.clearResourceTimings||_.xb.webkitClearResourceTimings||_.xb.mozClearResourceTimings||_.xb.msClearResourceTimings||_.xb.oClearResourceTimings||_.sn,_.xb);var INX=window;INX.ytcsi&&(INX.ytcsi.infoGel=_.$b,INX.ytcsi.tick=_.P5);var CVG=function(F){XU.call(this,1,arguments);this.csn=F};
_.k(CVG,XU);var BRw=new grn("screen-created",CVG),PVY=[],t3n=H$e,JCe=0,bs=new Map,Bre=new Map,vZr=new Map;var iJ=Symbol("vf"),wW=new WeakMap;var R0=function(){this.shownElements=new Set;this.hiddenElements=new Set;this.visibleState=new Map;this.client=void 0;this.csn=null},tm=function(){R0.instance||(R0.instance=new R0);
return R0.instance};
_.N=R0.prototype;_.N.setClient=function(F){this.client=F};
_.N.JSC$10373_newScreen=function(){this.clear();this.csn=_.JR()};
_.N.clear=function(){this.shownElements.clear();this.hiddenElements.clear();this.visibleState.clear();this.csn=null};
_.N.reportShown=function(F,W,E){var h=this.JSC$10373_getTrackingParams(F),d=F.visualElement?F.visualElement:h;W=this.shownElements.has(d);var V=this.visibleState.get(d);this.shownElements.add(d);this.visibleState.set(d,!0);F.impressionLog&&!W&&F.impressionLog();if(h||F.visualElement)if(E=cAH(this,F,E))if(d=Dez(this,F),el(this,F)||d){h=F.visualElement?F.visualElement:_.ve(h);var R=F.interactionLoggingClientData;d||W?el(this,F)&4?V||LKk(this.client,E,h,R):el(this,F)&1&&!W&&kGe(this.client,E,h,R):kGe(this.client,
E,h,R)}};
_.N.reportHidden=function(F,W,E){var h=this.JSC$10373_getTrackingParams(F),d=F.visualElement?F.visualElement:h;W=this.hiddenElements.has(d);var V=this.visibleState.get(d);this.hiddenElements.add(d);this.visibleState.set(d,!1);if(V===!1)return!0;if(!h&&!F.visualElement)return!1;E=cAH(this,F,E);if(!E||!el(this,F)&&Dez(this,F))return!1;h=F.visualElement?F.visualElement:_.ve(h);el(this,F)&8?qje(this.client,E,h):el(this,F)&2&&!W&&(F=this.client,W=OT({cttAuthInfo:ak(E)||void 0},E),h={csn:E,ve:h.getAsJson(),
eventType:2},E==="UNDEFINED_CSN"?nY("visualElementHidden",W,h):F?$t("visualElementHidden",h,F,W):_.Pc("visualElementHidden",h,W));return!0};
_.N.JSC$10373_getTrackingParams=function(F){var W=this.getData(F),E,h;if(_.c("il_use_view_model_logging_context")&&(W==null?0:(E=W.context)==null?0:(h=E.loggingContext)==null?0:h.loggingDirectives))return W.context.loggingContext.loggingDirectives.trackingParams||"";var d,V;if(W==null?0:(d=W.rendererContext)==null?0:(V=d.loggingContext)==null?0:V.loggingDirectives)return W.rendererContext.loggingContext.loggingDirectives.trackingParams||"";if(W==null?0:W.loggingDirectives)return W.loggingDirectives.trackingParams||
"";var R;return((R=F.veContainer)==null?0:R.trackingParams)?F.veContainer.trackingParams:(W==null?void 0:W.trackingParams)||""};
_.N.JSC$10373_elementShouldLogGesture=function(F,W){F=this.getData(F);return!!((Math.floor(Number(F&&F.loggingDirectives&&F.loggingDirectives.gestures&&F.loggingDirectives.gestures.types||""))||0)&W)};
_.N.JSC$10373_getNearestParentVe=function(F){var W=this.JSC$10373_getTrackingParams(F);return F.visualElement?F.visualElement:W?_.ve(W):F.parentElement?this.JSC$10373_getNearestParentVe(F.parentElement):null};
var cAH=function(F,W,E){var h=_.JR(E);return F.csn===null||h===F.csn||E?h:(F=new _.xC("VisibilityLogger called before newScreen",{caller:W.tagName,previous_csn:F.csn,current_csn:h}),_.OB(F),null)};
R0.prototype.getData=function(F){var W,E=F.data||((W=F.props)==null?void 0:W.data);if(!E&&_.c("enable_wiz_always_try_logging_info_map")){var h;E=(h=us(F))==null?void 0:h[iJ]}else if(F.isWebComponentWrapper){var d;E=(d=us(F))==null?void 0:d[iJ]}return E};
var Dez=function(F,W){var E;return!((E=F.getData(W))==null||!E.loggingDirectives)},el=function(F,W){F=F.getData(W);
return Math.floor(Number(F&&F.loggingDirectives&&F.loggingDirectives.visibility&&F.loggingDirectives.visibility.types||""))||1};var MI;MI=function(){};
_.gh=function(){MI.instance||(MI.instance=new MI);return MI.instance};
MI.prototype.setClient=function(F){_.yn(tm().setClient).bind(tm())(F)};
_.xec=function(){_.gh();_.yn(tm().JSC$10373_newScreen).bind(tm())()};
MI.prototype.clear=function(){_.yn(tm().clear).bind(tm())()};
MI.prototype.reportShown=function(F,W,E){_.yn(tm().reportShown).bind(tm())(F,W,E)};
MI.prototype.reportHidden=function(F,W,E){return _.yn(tm().reportHidden).bind(tm())(F,W,E)};
var FnG=function(F,W){return _.yn(tm().JSC$10373_getTrackingParams).bind(tm())(W)},m9o=function(F,W){return _.yn(tm().JSC$10373_getNearestParentVe).bind(tm())(W)};var gL,k$z;gL=function(){this.graftQueue=[];this.stateChangedQueue=[];this.backHistoryStack=[];this.forwardHistoryStack=[];this.afterNewScreenOneOffJobs=[];this.afterNewScreenRecurringJobs=[];this.cachedVisualElements=new Map;this.cachedRootVisualElements=new Map;this.pendingScreenCreation=new Set;this.recurringGrafts=new Map};
_.z4=function(){gL.instance||(gL.instance=new gL);return gL.instance};
gL.prototype.setClient=function(F){this.client=F};
k$z=function(F,W,E){E=E===void 0?{}:E;_.yn(function(){var h,d,V,R=((h=_.D(W==null?void 0:W.commandMetadata,_.m1))==null?void 0:h.rootVe)||((d=_.D(W==null?void 0:W.commandMetadata,qDX))==null?void 0:(V=d.screenVisualElement)==null?void 0:V.uiType);if(R){h=_.D(W==null?void 0:W.commandMetadata,RRc);if(h==null?0:h.parentTrackingParams){var M=_.ve(h.parentTrackingParams);if(h.parentCsn)var g=h.parentCsn}else E.clickedVisualElement?M=E.clickedVisualElement:W.clickTrackingParams&&(M=_.ve(W.clickTrackingParams));
a:{h=_.D(W,_.GM);d=_.D(W,MBY);if(h){if(d=ssn(h,"VIDEO")){h={token:d,videoId:h.videoId};break a}}else if(d&&(h=ssn(d,"PLAYLIST"))){h={token:h,playlistId:d.playlistId};break a}h=void 0}E=Object.assign({},{cttAuthInfo:h,parentCsn:g},E);if(_.c("expectation_logging")){var t;E.loggingExpectations=((t=_.D(W==null?void 0:W.commandMetadata,qDX))==null?void 0:t.loggingExpectations)||void 0}_.QH(F,R,M,E)}else _.OB(new _.xC("Error: Trying to create a new screen without a rootVeType",W))})()};
_.QH=function(F,W,E,h){h=h===void 0?{}:h;_.yn(function(){CUB.includes(W)||(_.OB(new _.xC("createClientScreen() called with a non-page VE",W)),W=83769);h.isHistoryNavigation||(F.forwardHistoryStack=[],F.backHistoryStack.push({rootVe:W,key:h.key||""}));F.graftQueue=[];F.stateChangedQueue=[];h.dataPromises?AAX(F,W,E,h):sm_(F,W,E,h)})()};
_.LCe=function(F,W,E){E=E===void 0?0:E;_.yn(function(){W.then(function(h){F.pendingScreenCreation.has(E)&&F.pendingScreenFn&&F.pendingScreenFn();var d=_.JR(E),V=_.Pf(E);if(d&&V){var R;(h==null?0:(R=h.response)==null?0:R.trackingParams)&&ls(F.client,d,V,_.ve(h.response.trackingParams));var M;(h==null?0:(M=h.playerResponse)==null?0:M.trackingParams)&&ls(F.client,d,V,_.ve(h.playerResponse.trackingParams))}})})()};
gL.prototype.graftServerVe=function(F,W,E){var h=this;return _.yn(function(){var d=_.ve(F);_.zY(h,d,W,E);return d})()};
_.Kkr=function(F,W,E,h){return _.c("enable_client_ve_spec")&&W.clientVeSpec?(W=_.LQ(W.clientVeSpec.uiType,void 0,W.clientVeSpec.elementIndex,W.clientVeSpec.clientYoutubeData,void 0,W),_.zY(F,W,E,h)?W:null):W.trackingParams?F.graftServerVe(W.trackingParams,E,h):null};
_.Qd=function(F,W,E,h){return _.yn(function(){if(!W.veType)return _.fn(new _.xC("Error: Trying to graft a client VE without a veType.")),null;if(W.visibilityTypes){var d=W.visibilityTypes.reduce(function(V,R){return V|R});
d={visibility:{types:String(d)}}}d=_.LQ(W.veType,W.visualElement,W.elementIndex,W.clientYouTubeData,void 0,d);return _.zY(F,d,E,h)?d:null})()};
_.zY=function(F,W,E,h){h=h===void 0?0:h;return _.yn(function(){if(F.pendingScreenCreation.has(h))return F.graftQueue.push([W,E]),!0;var d=_.JR(h),V=E||_.Pf(h);if(d&&V){if(_.c("combine_ve_grafts")){var R=F.cachedVisualElements.get(V.toString());R?R.push(W):(F.cachedRootVisualElements.set(V.toString(),V),F.cachedVisualElements.set(V.toString(),[W]));F.attachTimeout||(F.attachTimeout=_.sB(_.P0,function(){q9_(F,d)},1200))}else ls(F.client,d,V,W);
return!0}return!1})()};
_.t5=function(F,W,E){E=E===void 0?0:E;var h=F.recurringGrafts.get(E)||new Map;if(_.c("smarter_ve_dedupping"))for(var d=Array.from(h.keys()),V=0;V<d.length;V++){var R=void 0,M=void 0;var g=W;var t=d[V];t.isClientVe()&&g.isClientVe()?(R=g.getAsJson(),M=t.getAsJson(),g=R.veType!==M.veType||R.elementIndex!==M.elementIndex||R.dataElement!==M.dataElement||g.getLoggingDirectives()!==t.getLoggingDirectives()?!1:!0):g=t.veData.trackingParams!==void 0&&g.veData.trackingParams!==void 0?((M=g.veData)==null?void 0:
M.trackingParams)===((R=t.veData)==null?void 0:R.trackingParams):!1;if(g)return}else if(h.has(W))return;h.set(W,void 0);F.recurringGrafts.set(E,h);_.JR(E)==="UNDEFINED_CSN"||F.pendingScreenCreation.has(E)||_.zY(F,W,void 0,E)};
_.Co=function(F,W,E,h){h=_.JR(h===void 0?0:h);if(!h)return!1;Z$r(F.client,h,W,E);return!0};
_.Bt=function(F,W,E,h){if(!W)return!1;h=_.JR(h===void 0?0:h);if(!h)return!1;Z$r(F.client,h,_.ve(W),E);return!0};
_.jc=function(F,W){var E=W.getScreenLayer&&W.getScreenLayer();if(W.visualElement)return _.Co(F,W.visualElement,void 0,E);W=FnG(_.gh(),W);return _.Bt(F,W,void 0,E)};
gL.prototype.clickCommand=function(F,W,E){return _.Bt(this,F.clickTrackingParams,W,E===void 0?0:E)};
gL.prototype.stateChanged=function(F,W,E){this.visualElementStateChanged(_.ve(F),W,E===void 0?0:E)};
gL.prototype.visualElementStateChanged=function(F,W,E){E=E===void 0?0:E;E===0&&this.pendingScreenCreation.has(E)?this.stateChangedQueue.push([F,W]):this.logStateChanged(F,W,E)};
gL.prototype.logStateChanged=function(F,W,E){E=E===void 0?0:E;var h=_.JR(E);F=F||_.Pf(E);return h&&F?(Xyk(this.client,h,F,W),!0):!1};
var AAX=function(F,W,E,h){h=h===void 0?{}:h;F.pendingScreenCreation.add(h.layer||0);F.pendingScreenFn=function(){sm_(F,W,E,h);var R=_.Pf(h.layer);if(R){for(var M=_.U(F.graftQueue),g=M.next();!g.done;g=M.next())g=g.value,_.zY(F,g[0],g[1]||R,h.layer);R=_.U(F.stateChangedQueue);for(M=R.next();!M.done;M=R.next())M=M.value,F.logStateChanged(M[0],M[1])}};
E||_.JR(h.layer)||F.pendingScreenFn();if(h.dataPromises)for(var d=_.U(h.dataPromises),V=d.next();!V.done;V=d.next())_.LCe(F,V.value,h.layer);else _.a_(Error("wf"))},sm_=function(F,W,E,h){h=h===void 0?{}:h;
var d=void 0;h.layer||(h.layer=0);d=h.parentLayer!==void 0?h.parentLayer:h.layer;var V=_.JR(d);d=_.Pf(d);var R=E||d,M;R&&(h.parentCsn!==void 0?M={clientScreenNonce:h.parentCsn,visualElement:R}:V&&V!=="UNDEFINED_CSN"&&(M={clientScreenNonce:V,visualElement:R}));var g,t=_.b0("EVENT_ID");V==="UNDEFINED_CSN"&&t&&(g={servletData:{serializedServletEventId:t}});_.c("combine_ve_grafts")&&V&&q9_(F,V);_.c("no_client_ve_attach_unless_shown")&&R&&V&&xGo(R,V);try{var C=_.IoR(F.client,W,M,h.csnToClone,h.cttAuthInfo,
g,h.implicitGestureType,void 0,h.loggingExpectations)}catch(x){_.bf(x,{rootVeType:W,rootVe:d,parentVisualElement:E,currentCsn:V,parentEl:M,csnToClone:h.csnToClone});_.a_(x);return}_.$ob(C,W,h.layer,h.cttAuthInfo);V&&V!=="UNDEFINED_CSN"&&d&&!Lxw(V)&&qje(F.client,V,d,!0);F.backHistoryStack[F.backHistoryStack.length-1]&&!F.backHistoryStack[F.backHistoryStack.length-1].csn&&(F.backHistoryStack[F.backHistoryStack.length-1].csn=C||"");_.$b({clientScreenNonce:C});_.xec();var B=_.Pf(h.layer);V&&V!=="UNDEFINED_CSN"&&
B&&(_.c("web_mark_root_visible")||_.c("music_web_mark_root_visible"))&&_.is(C,B);F.pendingScreenCreation.delete(h.layer||0);F.pendingScreenFn=void 0;var I;(I=F.recurringGrafts.get(h.layer))==null||I.forEach(function(x,A){x?_.zY(F,A,x,h.layer):B&&_.zY(F,A,B,h.layer)});
$eH(F)},$eH=function(F){for(var W=0;W<F.afterNewScreenOneOffJobs.length;W++){var E=F.afterNewScreenOneOffJobs[W];
try{E()}catch(h){_.a_(h)}}for(W=F.afterNewScreenOneOffJobs.length=0;W<F.afterNewScreenRecurringJobs.length;W++){E=F.afterNewScreenRecurringJobs[W];try{E()}catch(h){_.a_(h)}}},q9_=function(F,W){if(W===void 0)for(var E=Aho(),h=0;h<E.length;h++)E[h]!==void 0&&q9_(F,E[h]);
else F.cachedVisualElements.forEach(function(d,V){(V=F.cachedRootVisualElements.get(V))&&cCY(F.client,W,V,d)}),F.cachedVisualElements.clear(),F.cachedRootVisualElements.clear(),F.attachTimeout=void 0};var vt=function(F){F=F===void 0?{layer:0}:F;this.hasRun=!1;this.createScreenConfig=F;F={};this.zz3=(F.response=!1,F.playerResponse=!1,F)};
_.k(vt,h5);vt.prototype.validate=function(F){return!(!F.data||!F.data.response&&!F.data.playerResponse)};
vt.prototype.handle=function(F){var W=_.z4(),E=this.createScreenConfig.layer;F.data.response&&F.data.response.trackingParams&&!this.zz3.response&&(W.graftServerVe(F.data.response.trackingParams,void 0,E),this.zz3.response=!0);F.data.playerResponse&&F.data.playerResponse.trackingParams&&!this.zz3.playerResponse&&(W.graftServerVe(F.data.playerResponse.trackingParams,void 0,E),this.zz3.playerResponse=!0)};var I0=function(){this.xT=_.G_();this.bN=[];this.icI=0};
I0.prototype.processChunk=function(F){if(F){for(var W=_.U(this.bN),E=W.next();!E.done;E=W.next())E=E.value,E.validate(F)&&(E.handle(F),E.hasRun=!0);_.P5("np"+this.icI);this.icI++}};var nZe,S7,pY,b$n=0,loo=function(F,W,E,h,d,V){var R=pY;this.name=F;this.attributes=W;this.startTime=E;this.id=h;this.sessionId=d;this.traceId=V;this.parent=R};
loo.prototype.attr=function(F,W){this.attributes[F]=W};
loo.prototype.close=function(F){if(this!==pY)throw Error("xf");var W=pY;F&&(W.status=F);W.endTime=performance.now();F=_.U(S7.spanProcessors);for(var E=F.next();!E.done;E=F.next()){var h=void 0,d=void 0;(d=(h=E.value).onSpanEnd)==null||d.call(h,W)}pY=W==null?void 0:W.parent};
loo.prototype[Symbol.dispose]=function(){this.close()};var NAW,HOc;_.Ru=function(F,W,E,h,d,V,R){R=R===void 0?[]:R;this.buildCommandPayload=F;this.navigate=W;this.handleServiceRequest=E;this.sendAction=h;this.JSC$10414_screenManager=d;this.commandResolverMap=V;this.autoLogResolverAllowlist=R;this.pendingCommands=new Set;if(jeo("command")){var M=this.resolveCommand;this.resolveCommand=function(g,t){var C=yCe("command",{command:g});return rCY(C,M.bind(this,g,t),null)}}};
NAW=function(F,W,E){var h=o1o,d=GEW,V=_.z4(),R=ZO_;E=E===void 0?[]:E;_.Ru.instance=new _.Ru(F,W,h,d,V,R,E)};
HOc=function(F,W,E){if(!F.commandResolverMap)return!1;var h=YjG(W,F.commandResolverMap);return h?((F.autoLogResolverAllowlist.some(function(d){return!!_.D(W,d)})||(E==null?0:E.forceClickLogging))&&XNa(F,W,E),h instanceof Promise?h.then(function(d){d.resolve(W,E)}):h.resolve(W,E),!0):!1};
_.Ru.prototype.resolveCommand=function(F,W){var E=this,h=PUa(F);if(HOc(this,F,W))return!0;if(h)return JAe(this,F,W);if(!this.buildCommandPayload)return TrY(F,"Unhandled command by buildCommandPayload"),!1;var d=this.buildCommandPayload(F,W);if(W==null?0:W.commandController)d.commandController=W.commandController;if(d.type===0){if(!this.navigate)return oZe(F,"navigate"),!1;if(!aNO(d.command))return TrY(F,"Page requests need to specify a url"),!1;_.c("logging_avoid_blocking_during_navigation")&&_.KVo().transition("application_navigating");
F=this.navigate(d)||[];wp_(F).then(function(){E.pendingCommands.delete(d.command)});
return!0}if(d.type===1){if(!this.handleServiceRequest)return oZe(F,"handleServiceRequest"),!1;(W==null?0:W.forceClickLogging)&&XNa(this,d.command,W);F=this.handleServiceRequest(d);wp_(F).then(function(){E.pendingCommands.delete(d.command)});
return!0}if(d.type===2){if(!this.sendAction)return oZe(F,"sendAction"),!1;XNa(this,d.command,W);this.sendAction(d);return!0}return!1};
var XNa=function(F,W,E){if((E==null||!E.disableClickTracking)&&F.JSC$10414_screenManager)if(W.clickTrackingParams&&_.c("log_click_with_layer_from_element_in_command_handler")){var h;E=E==null?void 0:(h=E.form)==null?void 0:h.element;F.JSC$10414_screenManager.clickCommand(W,null,E&&E.getScreenLayer&&E.getScreenLayer())}else W.clickTrackingParams?F.JSC$10414_screenManager.clickCommand(W):!_.c("disable_clicked_visual_element_in_command_handler")&&(E==null?0:E.clickedVisualElement)&&_.Co(F.JSC$10414_screenManager,
E.clickedVisualElement)},PUa=function(F){var W=!!_.D(F,_.Mc),E;
F=((E=_.D(F,_.Q7))==null?void 0:E.signal)==="CLIENT_SIGNAL";return W||F},JAe=function(F,W,E){var h=_.D(W,_.Mc);
if(h)var d=(h==null?void 0:h.commands)||[];else{var V;if(((V=_.D(W,_.Q7))==null?void 0:V.signal)==="CLIENT_SIGNAL"){var R;d=((R=_.D(W,_.Q7))==null?void 0:R.actions)||[]}}if(d){W=_.U(d);for(d=W.next();!d.done;d=W.next()){d=d.value;try{F.resolveCommand(d,E)}catch(M){M instanceof Error&&_.a_(M)}}return!0}TrY(W,"Could not handle the meta command");return!1},aNO=function(F){var W;
return!((W=_.D(F==null?void 0:F.commandMetadata,_.m1))==null||!W.url)};var ct=function(){h5.apply(this,arguments)};
_.k(ct,h5);ct.prototype.validate=function(F){var W,E;return!this.hasRun&&!!((W=F.data.response)==null?0:(E=W.onResponseReceivedEndpoints)==null?0:E.length)};
ct.prototype.handle=function(F){var W=_.Ru.instance;F=_.U(F.data.response.onResponseReceivedEndpoints);for(var E=F.next();!E.done;E=F.next())W.resolveCommand(E.value)};var fNB,OOT,bOi;
fNB=function(){this.shortsPipActivation=this.watchWhileActivation=this.watchPipActivation=this.mediaSessionPipActivation=this.showMiniplayerCommandActivation=this.lockupActivation=this.playlistSuggestionsShelfActivation=this.playablesDestPageActivation=this.miniAppPageActivation=this.productDetailsPageActivation=this.playlistWatchPageActivation=this.userActivation=this.miniplayerButtonActivation=!1;this.navigationFinishPromise=_.e7();this.navigatingAwayFromWatchDeletedVideo=!1;this.currentEndpoint=null;
this.isVideoPlaying=!1};
_.DT=function(){OOT||(OOT=new fNB);return OOT};
bOi=function(){var F=_.DT();F.miniplayerButtonActivation=!1;F.userActivation=!1;F.playlistWatchPageActivation=!1;F.productDetailsPageActivation=!1;F.miniAppPageActivation=!1;F.playablesDestPageActivation=!1;F.lockupActivation=!1;F.showMiniplayerCommandActivation=!1;F.playlistSuggestionsShelfActivation=!1;F.mediaSessionPipActivation=!1;F.watchPipActivation=!1;F.watchWhileActivation=!1;F.shortsPipActivation=!1};
_.lN_=function(){var F=_.DT(),W=F.mediaSessionPipActivation,E=F.watchPipActivation,h=F.watchWhileActivation,d=F.playlistWatchPageActivation,V=F.lockupActivation,R=F.showMiniplayerCommandActivation,M=F.navigatingAwayFromWatchDeletedVideo,g=F.shortsPipActivation,t=F.playlistSuggestionsShelfActivation,C=F.productDetailsPageActivation,B=F.miniAppPageActivation,I=F.playablesDestPageActivation;return!F.miniplayerButtonActivation&&!d&&!t&&!C&&!B&&!I&&!V&&!R&&!W&&!E&&!h&&!g||M};var H6b;_.xQ=KY("FEwhat_to_watch","/",3854);_.PXY=KY("FEdownloads","/feed/downloads",42352);H6b=KY("FEmusic_offline","browse/FEmusic_offline",42352);var wR=function(F,W){W=W===void 0?[]:W;var E=E===void 0?[]:E;W=eDR.apply(null,[M2Y.apply(null,_.x9(W))].concat(_.x9(E)));this.store=t2e(F,void 0,W)};
wR.prototype.getState=function(){return this.store.getState()};
wR.prototype.dispatch=function(F){return this.store.dispatch(F)};
wR.prototype.subscribe=function(F){return this.store.subscribe(F)};
wR.prototype.replaceReducer=function(F){return this.store.replaceReducer(F)};
wR.prototype[Symbol.observable]=function(){return this.store[Symbol.observable]()};
_.kQ=function(F,W,E){var h=W(F.getState());return F.subscribe(function(){var d=W(F.getState());if(d!==h){var V=h;h=d;E(d,V)}})};var l5k;_.AG=function(F,W,E){return _.dR({type:"REPLACE_ENTITY",payload:{entityPayload:E,entityType:F,key:W}})};
l5k=function(F){return _.dR({type:"REPLACE_ENTITIES",payload:F})};
_.lJ=function(F,W,E,h){return _.dR({type:"UPDATE_ENTITY",payload:{entityPayload:E,entityType:F,key:W,mergeOption:h}})};var VCW=function(F){var W=this;F=F===void 0?[]:F;this.arrays=[];this.totalLength=this.arrayPos=this.arrayIdx=0;F.forEach(function(E){W.append(E)})};
_.N=VCW.prototype;_.N.getLength=function(){return this.totalLength};
_.N.append=function(F){var W=this.arrays.length===0?!1:(W=this.arrays[this.arrays.length-1])&&W.buffer===F.buffer&&W.byteOffset+W.length===F.byteOffset;W?(W=this.arrays[this.arrays.length-1],this.arrays[this.arrays.length-1]=new Uint8Array(W.buffer,W.byteOffset,W.length+F.length),this.arrayPos=this.arrayIdx=0):this.arrays.push(F);this.totalLength+=F.length};
_.N.split=function(F){for(var W=new VCW,E=new VCW,h=_.U(this.arrays),d=h.next();!d.done;d=h.next())d=d.value,F>=d.length?(W.append(d),F-=d.length):F?(W.append(new Uint8Array(d.buffer,d.byteOffset,F)),E.append(new Uint8Array(d.buffer,d.byteOffset+F,d.length-F)),F=0):E.append(d);return{headView:W,tailView:E}};
_.N.extract=function(F,W){return this.split(F).tailView.split(W).headView};
_.N.isFocused=function(F){return F>=this.arrayPos&&F<this.arrayPos+this.arrays[this.arrayIdx].length};
_.N.focus=function(F){if(!this.isFocused(F))for(F<this.arrayPos&&(this.arrayPos=this.arrayIdx=0);this.arrayPos+this.arrays[this.arrayIdx].length<=F&&this.arrayIdx<this.arrays.length;)this.arrayPos+=this.arrays[this.arrayIdx].length,this.arrayIdx+=1};
var nzz=function(F,W){F.focus(W);return F.arrays[F.arrayIdx][W-F.arrayPos]};(function(){var F=function(h){return new Uint8Array(h)},W=function(h){for(var d=new Uint8Array(h.length),V=0;V<h.length;V++)d[V]=h[V];
return d},E=new Uint8Array([1]);
return E.length===1&&E[0]===1?F:W})();
var FMY=Array(1024),KKb=window.TextDecoder?new TextDecoder:void 0,E4R=window.TextEncoder?new TextEncoder:void 0;var Npo=function(F){this.arrayView=F;this.pos=0;this.pendingTagAndType=-1},Nn=function(F){var W=nzz(F.arrayView,F.pos);
++F.pos;if(W<128)return W;for(var E=W&127,h=1;W>=128;)W=nzz(F.arrayView,F.pos),++F.pos,h*=128,E+=(W&127)*h;return E},UHr=function(F,W){var E=F.pendingTagAndType;
for(F.pendingTagAndType=-1;F.pos+1<=F.arrayView.totalLength;){E<0&&(E=Nn(F));var h=E>>3,d=E&7;if(h===W)return!0;if(h>W){F.pendingTagAndType=E;break}E=-1;switch(d){case 0:Nn(F);break;case 1:F.pos+=8;break;case 2:h=Nn(F);F.pos+=h;break;case 5:F.pos+=4}}return!1};var eib=function(){this.pos=0;this.submessagePosStack=[];this.buf=dHo(4096);this.view=new DataView(this.buf.buffer,this.buf.byteOffset,this.buf.byteLength)},Rx=function(F,W){W=F.pos+W;
if(!(F.buf.length>=W)){for(var E=F.buf.length*2;E<W;)E*=2;F.buf=dHo(E,F.buf.subarray(0,F.pos));F.view=new DataView(F.buf.buffer,F.buf.byteOffset,F.buf.byteLength)}},U_=function(F,W){if(W>268435455){Rx(F,4);
for(var E=W&1073741823,h=0;h<4;h++)F.view.setUint8(F.pos,E&127|128),E>>=7,F.pos+=1;W=Math.floor(W/268435456)}for(Rx(F,4);W>127;)F.view.setUint8(F.pos,W&127|128),W>>=7,F.pos+=1;F.view.setUint8(F.pos,W);F.pos+=1};for(var MCR={accountLinkStatusEntity:122,booleanEntity:307,buttonEntity:358,captionTrack:225,channelHandle:275,chipEntity:498,commerceAcquisitionClientPayloadEntity:276,commerceCartListEntity:236,contextNoteFeedEntityPayload:483,continuationTokenEntity:406,downloadQualityPickerEntity:202,downloadsPageRefreshTokenEntity:299,downloadsPageViewConfigurationEntity:264,downloadStatusEntity:141,dismissState:540,sfvAudioItemCurrentlyPlayingEntity:186,emojiFountainDataEntity:393,emojiCustomizationSetEntity:496,
fakeChannel:2,fakePlaylist:279,fakePlaylistEntryCollection:280,fakeVideo:182,fakeVideoDescription:278,featuredProductsEntity:392,flowStateEntity:252,iconBadgeEntity:229,interstitialInteractionStateEntity:443,likeButtonAnimationEntity:567,liveChatPollStateEntity:217,liveViewerLeaderboardChatEntryPointStateEntity:563,liveViewerLeaderboardPointsEntity:564,liveReactionsDataEntity:503,logoEntity:245,macroMarkerEntity:329,mainDownloadsLibraryEntity:158,mainDownloadsListEntity:164,mainPlaylistDownloadStateEntity:373,
mainPlaylistEntity:306,mainPlaylistVideoEntity:368,mainVideoDownloadStateEntity:262,mainVideoEntity:261,markersEngagementPanelSyncEntity:196,markersVisibilityOverrideEntity:312,musicAlbumReleaseDetail:18,musicAlbumReleaseDownloadMetadataEntity:259,musicAlbumRelease:17,musicAlbumReleaseUserDetail:19,musicArtistDetail:21,musicArtist:20,musicArtistUserDetail:22,musicDownloadsLibraryEntity:257,musicLibraryEdit:121,musicLibraryStatusEntity:318,musicPlaylist:24,musicPlaylistDownloadMetadataEntity:248,musicShare:100,
musicTrackDetail:29,musicTrackDownloadMetadataEntity:234,musicTrack:28,musicTrackUserDetail:30,offlineOrchestrationActionWrapperEntity:169,offlineVideoPolicy:130,offlineVideoStreams:198,offlineabilityEntity:246,orchestrationWebSamplingEntity:242,pageHeaderEntity:495,pdpStateEntity:524,pinnedProductEntity:273,playbackData:119,quantityIncrementerEntity:356,playerStateEntity:323,refresh:148,saveToPlaylistListEntity:231,selectedChipIndexEntityPayload:479,settingEntity:297,stringEntity:382,suggestedFeedbackChipStateEntity:485,
transfer:120,trendingOfferEntity:469,videoDownloadContextEntity:461,videoOverviewAsyncDataEntity:545,videoPlaybackPositionEntity:76,votingEntity:561,ytMainChannelEntity:152,youchatPendingResponseEntity:553,ytMainDownloadedVideoEntity:155,ytMainVideoEntity:151},Rik={},yA_=_.U(Object.entries(MCR)),jmp=yA_.next();!jmp.done;jmp=yA_.next()){var iO_=_.U(jmp.value),rAz=iO_.next().value,Tta=iO_.next().value,ozu=rAz,G$M=Tta;G$M&&(Rik[G$M]=ozu)};var Q7W=function(F,W){F=F===void 0?{}:F;switch(W.type){case "ENTITY_LOADED":return W.payload.reduce(function(h,d){var V,R=(V=d.options)==null?void 0:V.persistenceOption;if(R&&R!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&R!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return h;if(!d.entityKey)return _.a_(Error("zf")),h;if(d.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!d.payload)return d=new _.xC("REPLACE entity mutation is missing a payload",{entityKey:d.entityKey}),_.a_(d),h;var M=(0,_.xd.getAnyKey)(d.payload);
return tCe(h,M,d.entityKey,d.payload[M])}if(d.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{d=d.entityKey;try{var g=_.Vz(d).entityType;M=tCe(h,g,d);break a}catch(B){if(B instanceof Error){d=new _.xC("Failed to deserialize entity key",{entityKey:d,originalMessage:B.message});_.a_(d);M=h;break a}throw B;}M=void 0}return M}if(d.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!d.payload)return d=new _.xC("UPDATE entity mutation is missing a payload",{entityKey:d.entityKey}),_.a_(d),h;M=(0,_.xd.getAnyKey)(d.payload);
var t,C;return Cnw(h,M,d.entityKey,d.payload[M],(t=d.fieldMask)==null?void 0:(C=t.mergeOptions)==null?void 0:C.repeatedFieldsMergeOption)}return h},F);
case "REPLACE_ENTITY":var E=W.payload;return tCe(F,E.entityType,E.key,E.entityPayload);case "REPLACE_ENTITIES":return Object.keys(W.payload).reduce(function(h,d){var V=W.payload[d];return Object.keys(V).reduce(function(R,M){return tCe(R,d,M,V[M])},h)},F);
case "UPDATE_ENTITY":return E=W.payload,Cnw(F,E.entityType,E.key,E.entityPayload,E.mergeOption);default:return F}};var Bpb;var Y9X=!1,A5,sX,Lo,qI,$Q,wNB=function(F){_.xj.call(this);this.counter=[0,0,0,0];this.cipherBlock=new Uint8Array(16);this.blockOffset=16;if(!Y9X){var W,E=new Uint8Array(256),h=new Uint8Array(256);var d=1;for(W=0;W<256;W++)E[d]=W,h[W]=d,d^=d<<1^(d>>7&&283);A5=new Uint8Array(256);sX=gR(256);Lo=gR(256);qI=gR(256);$Q=gR(256);for(var V=0;V<256;V++){d=V?h[255^E[V]]:0;d^=d<<1^d<<2^d<<3^d<<4;d=d&255^d>>>8^99;A5[V]=d;W=d<<1^(d>>7&&283);var R=W^d;sX[V]=W<<24|d<<16|d<<8|R;Lo[V]=R<<24|sX[V]>>>8;qI[V]=d<<24|Lo[V]>>>
8;$Q[V]=d<<24|qI[V]>>>8}Y9X=!0}d=gR(44);for(E=0;E<4;E++)d[E]=F[4*E]<<24|F[4*E+1]<<16|F[4*E+2]<<8|F[4*E+3];for(h=1;E<44;E++)F=d[E-1],E%4||(F=(A5[F>>16&255]^h)<<24|A5[F>>8&255]<<16|A5[F&255]<<8|A5[F>>>24],h=h<<1^(h>>7&&283)),d[E]=d[E-4]^F;this.key=d};
_.k(wNB,_.xj);
wNB.prototype.encrypt=function(F){var W=F.length;F=new Uint8Array(F.buffer.slice(F.byteOffset,F.byteOffset+W));for(var E=this.cipherBlock,h=0;h<W&&this.blockOffset<16;)F[h++]^=E[this.blockOffset++];for(var d=W-(W-h)%16;h<d;)uwu(this),F[h++]^=E[0],F[h++]^=E[1],F[h++]^=E[2],F[h++]^=E[3],F[h++]^=E[4],F[h++]^=E[5],F[h++]^=E[6],F[h++]^=E[7],F[h++]^=E[8],F[h++]^=E[9],F[h++]^=E[10],F[h++]^=E[11],F[h++]^=E[12],F[h++]^=E[13],F[h++]^=E[14],F[h++]^=E[15];if(h<W)for(uwu(this),this.blockOffset=0;h<W;)F[h++]^=
E[this.blockOffset++];return F};
var S9z=function(F,W){for(var E=0;E<4;E++)F.counter[E]=W[E*4]<<24|W[E*4+1]<<16|W[E*4+2]<<8|W[E*4+3];F.blockOffset=16},uwu=function(F){for(var W=F.key,E=F.counter[0]^W[0],h=F.counter[1]^W[1],d=F.counter[2]^W[2],V=F.counter[3]^W[3],R=3;R>=0&&!(F.counter[R]=-~F.counter[R]);R--);
for(var M,g,t=4;t<40;)R=sX[E>>>24]^Lo[h>>16&255]^qI[d>>8&255]^$Q[V&255]^W[t++],M=sX[h>>>24]^Lo[d>>16&255]^qI[V>>8&255]^$Q[E&255]^W[t++],g=sX[d>>>24]^Lo[V>>16&255]^qI[E>>8&255]^$Q[h&255]^W[t++],V=sX[V>>>24]^Lo[E>>16&255]^qI[h>>8&255]^$Q[d&255]^W[t++],E=R,h=M,d=g;F=F.cipherBlock;R=W[40];F[0]=A5[E>>>24]^R>>>24;F[1]=A5[h>>16&255]^R>>16&255;F[2]=A5[d>>8&255]^R>>8&255;F[3]=A5[V&255]^R&255;R=W[41];F[4]=A5[h>>>24]^R>>>24;F[5]=A5[d>>16&255]^R>>16&255;F[6]=A5[V>>8&255]^R>>8&255;F[7]=A5[E&255]^R&255;R=W[42];
F[8]=A5[d>>>24]^R>>>24;F[9]=A5[V>>16&255]^R>>16&255;F[10]=A5[E>>8&255]^R>>8&255;F[11]=A5[h&255]^R&255;R=W[43];F[12]=A5[V>>>24]^R>>>24;F[13]=A5[E>>16&255]^R>>16&255;F[14]=A5[h>>8&255]^R>>8&255;F[15]=A5[d&255]^R&255};var pNT=!1;(function(){var F=function(h){return new Uint8Array(h)},W=function(h){for(var d=new Uint8Array(h.length),V=0;V<h.length;V++)d[V]=h[V];
return d},E=new Uint8Array([1]);
return E.length===1&&E[0]===1?F:W})();
var ZT;var meH=function(F){this.JSC$10481_aesKey=F};
meH.prototype.encrypt=function(F,W){var E=this,h,d;return _.e(function(V){if(V.nextAddress==1){a:{if(!pNT&&!wV){if(ZT){var R=ZT;break a}ZT=(R=window.crypto)==null?void 0:R.subtle;var M,g,t;if(((M=ZT)==null?0:M.importKey)&&((g=ZT)==null?0:g.sign)&&((t=ZT)==null?0:t.encrypt)){R=ZT;break a}ZT=void 0}R=void 0}h=R;if(!h)return V.return(KC_(E,F,W));_.Nl(V,3);return _.Q(V,FmX(E,F,W,h),5)}if(V.nextAddress!=3)return V.return(V.yieldResult);d=_.Ml(V);_.OB(d);pNT=!0;return V.return(KC_(E,F,W))})};
var FmX=function(F,W,E,h){var d,V;return _.e(function(R){switch(R.nextAddress){case 1:if(F.cryptoKey){R.jumpTo(2);break}return _.Q(R,h.importKey("raw",F.JSC$10481_aesKey,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:F.cryptoKey=R.yieldResult;case 2:return d={name:"AES-CTR",counter:E,length:128},_.Q(R,h.encrypt(d,F.cryptoKey,W),4);case 4:return V=R.yieldResult,R.return(new Uint8Array(V))}})},KC_=function(F,W,E){F.encryptorPolyfill||(F.encryptorPolyfill=new wNB(F.JSC$10481_aesKey));
S9z(F.encryptorPolyfill,E);return F.encryptorPolyfill.encrypt(W)},WmX=function(F){this.JSC$10485_aesKey=F};
WmX.prototype.encrypt=function(F,W){this.encryptor||(this.encryptor=new wNB(this.JSC$10485_aesKey));S9z(this.encryptor,W);return this.encryptor.encrypt(F)};var Efe={},cBw=me("yt-idb-pref-storage",{objectStores:(Efe.prefs={addedAtVersion:1},Efe),shared:!1,upgrade:function(F,W){W(1)&&yA(nM(F,"prefs",{keyPath:"key"}),"byExpiration","expirationTimestampMs")},
version:1});_.Xb=function(F){this.token=F};
_.Xb.getInstance=function(){return _.e(function(F){return F.return(new Promise(function(W){_.pU().then(function(E){E?(_.Xb.instance||(_.Xb.instance=new _.Xb(E)),W(_.Xb.instance)):W(void 0)})}))})};
_.Xb.prototype.get=function(F){var W=this,E,h,d;return _.e(function(V){if(V.nextAddress==1)return _.Q(V,DHb(W.token),2);if(V.nextAddress!=3)return E=V.yieldResult,_.Q(V,E.get("prefs",F),3);h=V.yieldResult;if(!h)return V.return();d=(0,_.KU)();return h.expirationTimestampMs<=d?V.return():V.return(h.value)})};
_.Xb.prototype.set=function(F,W,E){E=E===void 0?31536E3:E;var h=this,d,V,R;return _.e(function(M){if(M.nextAddress==1)return d=(0,_.KU)(),V={key:F,value:W,expirationTimestampMs:d+E*1E3},_.Q(M,DHb(h.token),2);R=M.yieldResult;return _.Q(M,R.put("prefs",V),0)})};
_.Xb.prototype.remove=function(F){var W=this,E;return _.e(function(h){if(h.nextAddress==1)return _.Q(h,DHb(W.token),2);E=h.yieldResult;return _.Q(h,E.delete("prefs",F),0)})};var Ht={},hZc=(Ht.INVALID_ENCODER_VERSION="Invalid encoder version",Ht.KEY_CREATION_FAILED="Failed to create encoder key",Ht.UNKNOWN_DECODE_ERROR="Failed to decode PES data",Ht.UNKNOWN_ENCODE_ERROR="Failed to encode PES data",Ht.WRONG_DATA_TYPE="Encoder cannot process the data type",Ht),Qz=function(F,W){W=W===void 0?{}:W;_.xC.call(this,hZc[F],Object.assign({},{name:"PESEncoderError",type:F},W));this.type=F;this.level="WARNING";Object.setPrototypeOf(this,Qz.prototype)};
_.k(Qz,_.xC);var du_=function(){},N7X=function(F,W,E){try{return F.encodeImpl(W,E)}catch(h){s7I(h,kar)}},VgU=function(F,W,E){var h;
return _.e(function(d){if(d.nextAddress==1)return _.Nl(d,2),_.Q(d,F.decodeAsyncImpl(W,E),4);if(d.nextAddress!=2)return d.return(d.yieldResult);h=_.Ml(d);s7I(h,ABR);_.gG(d)})};
du_.prototype.decodeAsyncImpl=function(F,W){return Promise.resolve(this.decodeImpl(F,W))};var Pt=function(F,W){this.aesEncryptor=F;this.aesEncryptorAsync=W};
_.k(Pt,du_);Pt.prototype.encodeImpl=function(F,W){W=LMY(W);F=(new TextEncoder).encode(JSON.stringify(F));return this.aesEncryptor.encrypt(F,W)};
Pt.prototype.decodeImpl=function(F,W){if(!(F instanceof Uint8Array))throw xHr(1);var E=new TextDecoder;W=LMY(W);F=this.aesEncryptor.encrypt(F,W);return JSON.parse(E.decode(F))};
Pt.prototype.decodeAsyncImpl=function(F,W){var E=this,h,d,V;return _.e(function(R){if(R.nextAddress==1){if(!(F instanceof Uint8Array))throw xHr(1);h=new TextDecoder;d=LMY(W);return _.Q(R,E.aesEncryptorAsync.encrypt(F,d),2)}V=R.yieldResult;return R.return(JSON.parse(h.decode(V)))})};var qwb={accountLinkStatusEntity:OPB,booleanEntity:QdX,buttonEntity:vQi,captionTrack:MCz,channelHandle:KNT,chipEntity:mCU,commerceAcquisitionClientPayloadEntity:iou,commerceCartListEntity:r5_,contextNoteFeedEntityPayload:VPH,continuationTokenEntity:YDO,downloadQualityPickerEntity:O3u,downloadsPageRefreshTokenEntity:laX,downloadsPageViewConfigurationEntity:EZM,downloadStatusEntity:b3u,dismissState:K4a,sfvAudioItemCurrentlyPlayingEntity:rBc,emojiFountainDataEntity:tl_,emojiCustomizationSetEntity:zIU,
fakeChannel:CGz,fakePlaylist:BvT,fakePlaylistEntryCollection:vU_,fakeVideo:cha,fakeVideoDescription:DoB,featuredProductsEntity:xGM,flowStateEntity:PG_,iconBadgeEntity:TLe,interstitialInteractionStateEntity:WTp,likeButtonAnimationEntity:hHX,liveChatPollStateEntity:emX,liveViewerLeaderboardChatEntryPointStateEntity:s7c,liveViewerLeaderboardPointsEntity:LMe,liveReactionsDataEntity:Cpu,logoEntity:moi,macroMarkerEntity:dGT,mainDownloadsLibraryEntity:nA_,mainDownloadsListEntity:yJX,mainPlaylistDownloadStateEntity:i3O,
mainPlaylistEntity:wMX,mainPlaylistVideoEntity:uhp,mainVideoDownloadStateEntity:rJz,mainVideoEntity:KTU,markersEngagementPanelSyncEntity:Nrp,markersVisibilityOverrideEntity:V3M,musicAlbumReleaseDetail:JCp,musicAlbumReleaseDownloadMetadataEntity:$G_,musicAlbumRelease:PVe,musicAlbumReleaseUserDetail:aoH,musicArtistDetail:O$U,musicArtist:foa,musicArtistUserDetail:b$i,musicDownloadsLibraryEntity:Z$a,musicLibraryEdit:loM,musicLibraryStatusEntity:nZp,musicPlaylist:yCp,musicPlaylistDownloadMetadataEntity:XyH,
musicShare:i$X,musicTrackDetail:Tre,musicTrackDownloadMetadataEntity:H$p,musicTrack:rCX,musicTrackUserDetail:oZp,offlineOrchestrationActionWrapperEntity:g4M,offlineVideoPolicy:Q7B,offlineVideoStreams:zii,offlineabilityEntity:TsT,orchestrationWebSamplingEntity:oAT,pageHeaderEntity:VlH,pdpStateEntity:oQB,pinnedProductEntity:kGp,playbackData:tCp,playerStateEntity:UGi,quantityIncrementerEntity:GY_,refresh:CnU,saveToPlaylistListEntity:eRO,selectedChipIndexEntityPayload:RHa,settingEntity:aIO,stringEntity:zt_,
suggestedFeedbackChipStateEntity:eHp,transfer:BpT,trendingOfferEntity:ACH,videoDownloadContextEntity:v4_,videoOverviewAsyncDataEntity:B_i,videoPlaybackPositionEntity:DI_,votingEntity:eIT,ytMainChannelEntity:FKi,youchatPendingResponseEntity:M3_,ytMainDownloadedVideoEntity:GU_,ytMainVideoEntity:WKe};var Uup,eZT,vz,f5o,OBr,QGO,tgp,zZM,gfO;Uup=function(F,W){this.JSC$10504_wrapped=F;this.JSC$10504_encoderRegistry=W;this.changedKeys={}};
eZT=function(F,W){a:{F=RZp(F.JSC$10504_encoderRegistry,W.version);try{var E=F.decodeImpl(W.data,W.key);break a}catch(h){s7I(h,ABR)}E=void 0}return E};
_.Mgu=function(F,W,E){return F.JSC$10504_wrapped.objectStore("EntityStore").get(W).then(function(h){if(h){if(E&&h.entityType!==E)throw Error("Af");return eZT(F,h)}})};
vz=function(F,W,E){return E?(E=E.map(function(h){return _.Mgu(F,h,W)}),ld.all(E)):F.JSC$10504_wrapped.objectStore("EntityStore").index("entityType").getAll(IDBKeyRange.only(W)).then(function(h){return h.map(function(d){return eZT(F,d)})})};
_.a5I=function(F,W,E){var h=g4o(W),d=RZp(F.JSC$10504_encoderRegistry,1),V=Object.assign({},W);return F.JSC$10504_wrapped.objectStore("EntityStore").get(h).then(function(R){if(R){if(R.entityType!==E)throw Error("Af");V.entityMetadata||(R=eZT(F,R),V.entityMetadata=R.entityMetadata)}}).then(function(){var R={key:h,
entityType:E,data:N7X(d,V,h),version:1};return ld.all([F.JSC$10504_wrapped.objectStore("EntityStore").put(R),gfO(F,V,E)])}).then(function(){QGO(F,h,E);
return h})};
f5o=function(F,W){var E=_.Vz(W).entityType;return ld.all([F.JSC$10504_wrapped.objectStore("EntityStore").delete(W),zZM(F,W)]).then(function(){QGO(F,W,E)})};
OBr=function(F,W,E,h){var d=RZp(F.JSC$10504_encoderRegistry,1);return _.Mgu(F,W,h).then(function(V){if(V){V=mGG(V,E);var R={key:W,entityType:h,data:N7X(d,V,W),version:1};return ld.all([F.JSC$10504_wrapped.objectStore("EntityStore").put(R),gfO(F,V,h)])}}).then(function(){QGO(F,W,h);
return W})};
QGO=function(F,W,E){var h=F.changedKeys[E];h||(h=new Set,F.changedKeys[E]=h);h.add(W)};
tgp=function(F,W,E){var h=g4o(W);E=$Hb(E);if(!E)return ld.resolve([]);E=new E(W);F=F.JSC$10504_wrapped.objectStore("EntityAssociationStore");W=[];E=_.U(E.getAssociations());for(var d=E.next();!d.done;d=E.next())W.push(F.put({parentEntityKey:h,childEntityKey:d.value}));return ld.all(W).then(function(V){return V.map(function(R){return R[1]})})};
zZM=function(F,W){return F.JSC$10504_wrapped.objectStore("EntityAssociationStore").index("byParentEntityKey").delete(IDBKeyRange.only(W))};
gfO=function(F,W,E){var h=g4o(W);return zZM(F,h).then(function(){return tgp(F,W,E)})};var CZp=function(){};
_.k(CZp,du_);CZp.prototype.encodeImpl=function(F){return F};
CZp.prototype.decodeImpl=function(F){if(F instanceof Uint8Array)throw xHr(0);return F};var HBY=function(){this.cacheMap={};this.cacheMap[0]=new CZp;if(!_.c("aes_pes_encoder_killswitch")){var F=this.cacheMap;try{var W=_.cZ();var E=LMY(W);var h=new Pt(new WmX(E),new meH(E))}catch(d){throw F=d instanceof Error?new Qz("KEY_CREATION_FAILED",{originalMessage:d.message}):new Qz("KEY_CREATION_FAILED"),_.a_(F),F;}F[1]=h}},RZp=function(F,W){W=W===void 0?0:W;
F=F.cacheMap[W];if(!F)throw W=new Qz("INVALID_ENCODER_VERSION",{encoderVersion:W}),_.a_(W),W;return F};var tE=function(F,W){_.xj.call(this);this.token=F;this.JSC$10518_encoderRegistry=W;this.observers=[];F=new _.EY.BroadcastChannel("PERSISTENT_ENTITY_STORE_SYNC:"+_.cZ());F.onmessage=this.handleMessage.bind(this);this.channel=F};
_.k(tE,_.xj);_.Bz=function(F,W,E){var h,d,V,R;return _.e(function(M){if(M.nextAddress==1)return _.Q(M,I5W(F.token),2);if(M.nextAddress!=3)return h=M.yieldResult,_.Q(M,_.oA(h,["EntityStore","EntityAssociationStore"],W,function(g){d=new Uup(g,F.JSC$10518_encoderRegistry);return E(d)}),3);
V=M.yieldResult;d&&(R=d.changedKeys,Object.keys(R).length>0&&(F.channel.postMessage(R),B7z(F,R)));return M.return(V)})};
tE.prototype.observe=function(F){var W=this;this.observers.push(F);return function(){var E=W.observers.indexOf(F);E>=0&&W.observers.splice(E,1)}};
var iEn=function(F){var W;return _.e(function(E){if(E.nextAddress==1)return _.Q(E,_.Bz(F,{mode:"readonly",enableRetries:!0},function(h){return h.JSC$10504_wrapped.objectStore("EntityStore").getAll()}),2);
W=E.yieldResult;return E.return(Promise.all(W.filter(function(h){return!!h}).map(function(h){var d,V;
return _.e(function(R){if(R.nextAddress==1){d=h.key;V=h.entityType;var M=VgU(RZp(F.JSC$10518_encoderRegistry,h.version),h.data,h.key);return _.Q(R,M,2)}return R.return({key:d,entityType:V,data:R.yieldResult})})})))})};
tE.prototype.handleMessage=function(F){B7z(this,F.data)};
var B7z=function(F,W){F=_.U(F.observers);for(var E=F.next();!E.done;E=F.next())E=E.value,E(W)};
tE.prototype.disposeInternal=function(){this.channel.close()};
var ZBo;var J5,Ija,eLe,Wyo;J5={};_.vfT=(J5.mainVideoEntity="mainVideoEntityActionMetadata",J5.mainPlaylistEntity="mainPlaylistEntityActionMetadata",J5.musicTrack="musicTrackEntityActionMetadata",J5.musicPlaylist="musicPlaylistEntityActionMetadata",J5);Ija=new _.NG("DOWNLOADS_ENTITY_TYPE_MAP");eLe=_.eF("","downloadsPageViewConfigurationEntity");Wyo=_.eF("DOWNLOADS_LIST_ENTITY_ID_MANUAL_DOWNLOADS","mainDownloadsListEntity");_.QHe=_.eF("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity");
_.eF("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","refresh");_.eF("SMART_DOWNLOADS_ENABLED","settingEntity");_.eF("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");var j7o=["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_TRANSFERRING"];var wDw=["TRANSFER_STATE_COMPLETE","TRANSFER_STATE_FAILED","TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"];var KyI={ALL_DOWNLOADS:"PPAD",DOWNLOADS_PAGE:"PPDP",OFFLINE_PLAYLIST:"PPOM",RECOMMENDED_VIDEOS:"PPRC",SAVED_PODCAST_EPISODES:"PPSE",SAVED_VIDEOS:"PPSV"};var a0,pPo,Mae,roI;a0=window;_.nV=a0.YT_I18N_FORMATTING_GOOG_LOCALE||"en-US";_.RIr=a0.YT_I18N_FORMATTING_PLURAL_RULES_SELECT||_.ox;pPo=a0.YT_I18N_FORMATTING_DATE_TIME_SYMBOLS||PH;Mae=a0.YT_I18N_FORMATTING_RELATIVE_DATE_TIME_SYMBOLS||eze;_.cLU=a0.YT_I18N_FORMATTING_DURATION_TIME_SYMBOLS||_.qhX;roI=a0.YT_I18N_FORMATTING_NUMBER_FORMAT_SYMBOLS||XBe;rR({id:"America/Los_Angeles",names:["PST","PST","PDT","PDT"],std_offset:-480,transitions:[2770,60,7137,0,11506,60,16041,0,20410,60,24777,0,29146,60,33513,0,35194,60,42249,0,45106,60,50985,0,55354,60,59889,0,64090,60,68625,0,72994,60,77361,0,81730,60,86097,0,90466,60,94833,0,99202,60,103569,0,107938,60,112473,0,116674,60,121209,0,125578,60,129945,0,134314,60,138681,0,143050,60,147417,0,151282,60,156153,0,160018,60,165057,0,168754,60,173793,0,177490,60,182529,0,186394,60,191265,0,195130,60,200001,0,
203866,60,208905,0,212602,60,217641,0,221338,60,226377,0,230242,60,235113,0,238978,60,243849,0,247714,60,252585,0,256450,60,261489,0,265186,60,270225,0,273922,60,278961,0,282826,60,287697,0,291562,60,296433,0,300298,60,305337,0,309034,60,314073,0,317770,60,322809,0,326002,60,331713,0,334738,60,340449,0,343474,60,349185,0,352378,60,358089,0,361114,60,366825,0,369850,60,375561,0,378586,60,384297,0,387322,60,393033,0,396058,60,401769,0,404962,60,410673,0,413698,60,419409,0,422434,60,428145,0,431170,
60,436881,0,439906,60,445617,0,448810,60,454521,0,457546,60,463257,0,466282,60,471993,0,475018,60,480729,0,483754,60,489465,0,492490,60,498201,0,501394,60,507105,0,510130,60,515841,0,518866,60,524577,0,527602,60,533313,0,536338,60,542049,0,545242,60,550953,0,553978,60,559689,0,562714,60,568425,0,571450,60,577161,0,580186,60,585897,0,588922,60,594633,0]});var gQY=mCw(function(){return{dateFormat:1,timeFormat:7,joinerStyle:1,capitalize:function(F){return F}}}),cuo=mCw(function(){return{dateFormat:3,
timeFormat:7,joinerStyle:3,capitalize:function(F){return F}}}),EQr=new Map;var zIw=[{unitDuration:6048E5,unit:3,threshold:2},{unitDuration:864E5,unit:4},{unitDuration:36E5,unit:5},{unitDuration:6E4,unit:6},{unitDuration:1E3,unit:7}],UIG;var Dup=function(F){return _.dR({type:"SET_EPHEMERAL_ACTION",payload:F})};var xuU={ephemeralAction:null};var k9a={animatedThumbnailEnabled:!1,inlinePreviewEnabled:!1,currentPageType:"",currentPageSubType:""};var Oon={sharedUi:function(F,W){F=F===void 0?k9a:F;switch(W.type){case "SET_SHARED_ANIMATED_THUMBNAIL_ENABLED":return Object.assign({},F,{animatedThumbnailEnabled:W.payload});case "SET_SHARED_INLINE_PREVIEW_ENABLED":return Object.assign({},F,{inlinePreviewEnabled:W.payload});case "SET_SHARED_CURRENT_PAGE_TYPE":return Object.assign({},F,{currentPageType:W.payload});case "SET_SHARED_CURRENT_PAGE_SUB_TYPE":return Object.assign({},F,{currentPageSubType:W.payload});default:return F}},
a11y:zM({ephemeralAction:function(F,W){F=F===void 0?xuU.ephemeralAction:F;switch(W.type){case "SET_EPHEMERAL_ACTION":return W.payload;default:return F}}})};var Zoe=zM({isLeaderTab:function(F,W){F=F===void 0?!0:F;switch(W.type){case "SET_IS_LEADER_TAB":var E,h;return(h=W==null?void 0:(E=W.payload)==null?void 0:E.isLeaderTab)!=null?h:F;default:return F}}});var ALi=function(F){return _.dR({type:"SET_IS_SHORTS_PIP_ACTIVE",payload:{isShortsPipActive:F}})};var fTb=zM({isDesktopSmallWidth:function(F,W){switch(W.type){case "SET_IS_DESKTOP_SMALL_WIDTH":return W.payload.isDesktopSmallWidth;default:return F===void 0?!1:F}},
isShortsActive:function(F,W){switch(W.type){case "SET_IS_SHORTS_ACTIVE":return W.payload.isShortsActive;default:return F===void 0?!1:F}},
isWatchWhileMode:function(F,W){switch(W.type){case "SET_IS_WATCH_WHILE_MODE":return W.payload.isWatchWhileMode;default:return F===void 0?!1:F}},
playerState:function(F,W){switch(W.type){case "SET_PLAYER_STATE":return W.payload.playerState;default:return F===void 0?-1:F}},
isFullscreen:function(F,W){switch(W.type){case "SET_IS_FULLSCREEN":return W.payload.isFullscreen;default:return F===void 0?!1:F}},
isSmallScreenSqueezeback:function(F,W){switch(W.type){case "SET_IS_SMALL_SCREEN_SQUEEZEBACK":return W.payload.isSmallScreenSqueezeback;default:return F===void 0?!1:F}},
isShortsPipActive:function(F,W){switch(W.type){case "SET_IS_SHORTS_PIP_ACTIVE":return W.payload.isShortsPipActive;default:return F===void 0?!1:F}},
isPlaybackStarted:function(F,W){switch(W.type){case "SET_IS_PLAYBACK_STARTED":return W.payload.isPlaybackStarted;default:return F===void 0?!1:F}}});var c5G={playlistId:"",inviteLinkURL:""};var sGa={};var $Ir=zM({continuationCommand:function(F,W){F=F===void 0?sGa:F;switch(W.type){case "SET_CONTINUATION_COMMAND":return W.payload.continuationCommand;default:return F}}});var lTo=function(){return function(F){return function(W){var E=F(W);_.dW(document.documentElement,"yt-forward-redux-action-to-live-chat-iframe",[W],!0);return E}}};var Lmu,iJn;Lmu=new _.eR;_.Va=new _.NG("WATCH_PLAYER_PROMISE_TOKEN");_.qLe=new _.eR;_.$up=new _.NG("SHORTS_PLAYER_PROMISE_TOKEN");iJn=new _.NG("");var nQY=function(){return function(F){return function(W){W.type==="ENTITY_LOADED"&&_.WZ().resolve(_.Va).then(function(E){var h;(h=E.dispatchReduxAction)==null||h.call(E,W)});
return F(W)}}};var xIG={currentFormId:"",commandsMap:{}};var Z1M={};var Xtk=zM({additionalContext:function(F,W){switch(W.type){case "CHANNEL_REPORT_RESET":return"";case "ADDITIONAL_CONTEXT_UPDATED":var E;return(E=W.payload)!=null?E:"";default:return F===void 0?"":F}},
impersonatedChannelUrl:function(F,W){switch(W.type){case "CHANNEL_REPORT_RESET":return"";case "IMPERSONATED_CHANNEL_URL_UPDATED":var E;return(E=W.payload)!=null?E:"";default:return F===void 0?"":F}},
selectedVideoIds:function(F,W){F=F===void 0?Z1M:F;switch(W.type){case "CHANNEL_REPORT_RESET":return{};case "VIDEO_SELECTED":var E={};return Object.assign({},F,(E[W.payload]=!0,E));case "VIDEO_UNSELECTED":return W=W.payload,F=Object.assign({},F),delete F[W],F;default:return F}}});var HoY=zM({parentClickTrackingParams:function(F,W){switch(W.type){case "SET_PARENT_CLICK_TRACKING_PARAMS":return W.payload.parentClickTrackingParams;case "CLEAR_PARENT_CLICK_TRACKING_PARAMS":return"";default:return F===void 0?"":F}}});var X3X=function(F){return _.dR({type:"TALK_TO_RECS_UPDATE_SELECTION",payload:F})};var H1i={};var PpS=zM({stepStates:function(F,W){F=F===void 0?H1i:F;switch(W.type){case "TALK_TO_RECS_RESET_STEP_STATES":return{};case "TALK_TO_RECS_UPDATE_SELECTION":var E=F,h=W.payload,d,V,R;F={};W={selectionStates:Object.assign({},(R=(d=E[h.stepId])==null?void 0:d.selectionStates)!=null?R:{},(F[h.token]={isSelected:h.isSelected},F)),userQuery:(V=E[h.stepId])==null?void 0:V.userQuery};d={};return Object.assign({},E,(d[h.stepId]=W,d));case "TALK_TO_RECS_UPDATE_USER_QUERY":return d=F,V=W.payload,R={selectionStates:Object.assign({},
(h=(E=d[V.stepId])==null?void 0:E.selectionStates)!=null?h:{}),userQuery:{userQuery:V.userQuery,token:V.userQueryToken}},E={},Object.assign({},d,(E[V.stepId]=R,E));default:return F}}});var PZp,JLe;PZp=function(F){return _.dR({type:"SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX",payload:F})};
JLe=function(F){return _.dR({type:"SET_MINIPLAYER_PLAYBACK_STATE",payload:F})};
_.bv=function(F){return _.dR({type:"SET_CURRENT_PAGE_TYPE",payload:F})};
_.aju=function(F){return _.dR({type:"SET_INLINE_PREVIEW_IS_ENABLED",payload:F})};var A5o={scrollAtTop:!0,guideIsExpanded:!1,guideIsVisibleButNotPersistent:!1,miniplayerIsActive:!1,singleOptionSurveyIsActive:!1,slimlineSurveyRatingSelectedIndex:-1,miniplayerPlaybackState:-1,richGridMiniMode:!1,richGridItemsPerRow:4,richGridSlimItemsPerRow:8,richGridContainerWidth:void 0,richGridStyle:"RICH_GRID_STYLE_UNKNOWN",currentPageType:"WEB_PAGE_TYPE_UNKNOWN",inlinePreviewIsActive:!1,inlinePreviewIsEnabled:!0,darkModeIsEnabled:!1,tabGesturesIsActive:!1,isOnline:!0,chipBarIsSticky:!1,frostedGlassMode:"none"};_.fjp=function(F){return _.dR({type:"SET_PLAYER_STATE",payload:{playerState:F}})};var O1a=[],b1z={width:0,height:0};var J5R=zM({isTheaterMode:function(F,W){F=F===void 0?_.c("kevlar_disable_theater_mode_persistence")?!1:_.l0("START_IN_THEATER_MODE"):F;switch(W.type){case "SET_IS_THEATER_MODE":return W.payload.isTheaterMode;default:return F}},
isWatchActive:function(F,W){switch(W.type){case "SET_IS_WATCH_ACTIVE":return W.payload.isWatchActive;default:return F===void 0?!1:F}},
isLearningJourneyActive:function(F,W){switch(W.type){case "SET_IS_LEARNING_JOURNEY_ACTIVE":return W.payload.isLearningJourneyActive;default:return F===void 0?!1:F}},
isWatchFullscreen:function(F,W){switch(W.type){case "SET_IS_WATCH_FULLSCREEN":return W.payload.isWatchFullscreen;default:return F===void 0?!1:F}},
isWatchNarrowWidth:function(F,W){switch(W.type){case "SET_IS_WATCH_NARROW_WIDTH":return W.payload.isWatchNarrowWidth;default:return F===void 0?!1:F}},
isWatchRetroMode:function(F,W){switch(W.type){case "SET_IS_WATCH_RETRO_MODE":return W.payload.isWatchRetroMode;default:return F===void 0?!1:F}},
isLiveChatCollapsed:function(F,W){switch(W.type){case "SET_IS_LIVE_CHAT_COLLAPSED":return W.payload.isLiveChatCollapsed;default:return F===void 0?!1:F}},
openEngagementPanels:function(F,W){F=F===void 0?O1a:F;var E=[].concat(_.x9(F));switch(W.type){case "ADD_OPEN_ENGAGEMENT_PANEL":return E.push(W.payload.panelToAdd),E;case "REMOVE_OPEN_ENGAGEMENT_PANEL":return E.splice(E.indexOf(W.payload.panelToRemove),1),E;default:return F}},
playerState:function(F,W){switch(W.type){case "SET_PLAYER_STATE":return W.payload.playerState;default:return F===void 0?-1:F}},
watchScrollTop:function(F,W){switch(W.type){case "SET_WATCH_SCROLL_TOP":return W.payload.watchScrollTop;default:return F===void 0?0:F}},
watchWindowSize:function(F,W){F=F===void 0?b1z:F;switch(W.type){case "SET_WATCH_WINDOW_SIZE":return W.payload.watchWindowSize;default:return F}}});var ljp={feedbackTokens:[]};var aTW=zM({surveyFeedbackData:function(F,W){F=F===void 0?ljp:F;switch(W.type){case "YPC_UPDATE_SURVEY_FEEDBACK_DATA":return W.payload;case "YPC_UPDATE_PARTIAL_SURVEY_FEEDBACK_DATA":return Object.assign({},F,W.payload);default:return F}}});var L8W={};var j0o=void 0;_.c("web_enable_redux_store_on_demand")||(j0o=y5b());var nf_=function(F,W,E){var h=this;this.listId=F;this.JSC$10652_updateCallback=W;this.isOfflineVideoCallback=E;_.uC().subscribe(function(){h.handleUpdate()})};
nf_.prototype.getPlaylistData=function(){var F=_.uC().getState().entities;if(this.listId&&this.listId!=="PPSV"){var W=iHr(F,this.listId,!0),E=_.eF(this.listId,"mainPlaylistEntity"),h,d;F=F==null?void 0:(h=F.mainPlaylistEntity)==null?void 0:(d=h[E])==null?void 0:d.title;return ior(W,F,this.listId)}W=_.u4R(BZe(F));F=_.u4R(_.qn(F));return ior(W.concat(F))};
nf_.prototype.getPlaylistId=function(){return this.listId};
nf_.prototype.handleUpdate=function(){this.isOfflineVideoCallback()&&this.JSC$10652_updateCallback(this.listId,this.getPlaylistData(),{})};var fo=function(F,W,E,h){h=h===void 0?[]:h;this.JSC$10655_playlistNetworkManager=F;this.listId=W;this.JSC$10655_updateCallback=E;this.videoIds=h;this.pendingUpdates=[];this.currentIndex=0};
fo.prototype.JSC$10655_setCurrentIndex=function(F){this.currentIndex=F};
fo.prototype.setListId=function(F){this.listId=F};
var yL_=function(F,W){F.currentCreateRequest&&F.currentCreateRequest.cancel(W);F.currentUpdateRequest&&F.currentUpdateRequest.cancel(W);F.currentRefreshRequest&&F.currentRefreshRequest.cancel(W)};
fo.prototype.delete=function(){yL_(this,"PROXY DELETED")};
fo.prototype.addVideos=function(F,W,E){var h=this;E!==void 0?this.videoIds.splice.apply(this.videoIds,[E,0].concat(_.x9(F))):this.videoIds.push.apply(this.videoIds,_.x9(F));this.listId||this.currentCreateRequest?(F.forEach(function(d,V){d={addedVideoId:d,action:"ACTION_ADD_VIDEO"};E&&(d.addedVideoPosition=E+V);h.pendingUpdates.push(d)}),OX(this)):jGO(this,W.onCreateListCommand)};
var i1a=function(F,W,E,h,d){ArR(F.videoIds,W,E);W>F.currentIndex&&E<=F.currentIndex?F.JSC$10655_setCurrentIndex(F.currentIndex+1):W===F.currentIndex?F.JSC$10655_setCurrentIndex(E):W<F.currentIndex&&E>=F.currentIndex&&F.JSC$10655_setCurrentIndex(F.currentIndex-1);F.pendingUpdates.push({action:"ACTION_MOVE_VIDEO_AFTER",setVideoId:h,movedSetVideoIdPredecessor:d});OX(F)},jGO=function(F,W){yL_(F,"OBSOLETE");
F.currentCreateRequest=rLe(F.JSC$10655_playlistNetworkManager,W,F.videoIds);_.HI(F.currentCreateRequest,function(){F.currentCreateRequest=void 0}).then(function(E){F.setListId(E.playlistId);
F.pendingUpdates.length>0?OX(F):T7z(F)})},OX=function(F){if(F.pendingUpdates.length!==0&&(F.currentRefreshRequest&&F.currentRefreshRequest.cancel("OBSOLETE"),!F.currentUpdateRequest&&!F.currentCreateRequest)){var W=F.pendingUpdates.splice(0,F.pendingUpdates.length);
F.currentUpdateRequest=F.JSC$10655_playlistNetworkManager.updatePlaylist(F.listId,W);_.HI(F.currentUpdateRequest,function(){F.currentUpdateRequest=void 0}).then(function(){F.pendingUpdates.length>0?OX(F):T7z(F)}).thenCatch(function(){F.pendingUpdates.unshift.apply(F.pendingUpdates,_.x9(W))})}},T7z=function(F){F.currentRefreshRequest=_.ofX(F.JSC$10655_playlistNetworkManager,F.listId,F.currentIndex,F.videoIds[F.currentIndex]);
_.HI(F.currentRefreshRequest,function(){F.currentRefreshRequest=void 0}).then(function(W){F.JSC$10655_updateCallback(W.playlistId,W.playlistPanelRenderer,W.autoplayRenderer)})};
fo.prototype.size=function(){return this.videoIds.length};var G9e=function(F,W,E,h){h=h===void 0?[]:h;fo.call(this,F,W,E,h);this.JSC$10655_playlistNetworkManager=F;this.listId=W;this.JSC$10655_updateCallback=E;this.videoIds=h};
_.k(G9e,fo);_.bp=function(F,W,E,h,d,V,R){d=d===void 0?[]:d;R=R===void 0?gv:R;fo.call(this,F,W,E,d);this.JSC$10655_playlistNetworkManager=F;this.listId=W;this.JSC$10655_updateCallback=E;this.onAuthChange=h;this.videoIds=d;this.storage=V;this.cookieReader=R;this.queueSapisId="";this.queueSapisIdJob=0;this.attributionData=new Map;this.queueSapisId=(new this.cookieReader(window.document)).get("SAPISID","");this.queueSapisIdJob=_.Ed(_.P0,this.checkLoggedInStatusChange.bind(this),1E3)};
_.k(_.bp,fo);_.N=_.bp.prototype;_.N.checkLoggedInStatusChange=function(){(new this.cookieReader(window.document)).get("SAPISID","")!==this.queueSapisId?(this.onAuthChange(),this.storage&&this.storage.clear()):this.queueSapisIdJob=_.Ed(_.P0,this.checkLoggedInStatusChange.bind(this),1E3)};
_.N.JSC$10655_setCurrentIndex=function(F){fo.prototype.JSC$10655_setCurrentIndex.call(this,F);this.store()};
_.N.delete=function(){_.P0.cancelJob(this.queueSapisIdJob);fo.prototype.delete.call(this)};
_.N.setListId=function(F){fo.prototype.setListId.call(this,F);this.store()};
_.N.store=function(){this.storage&&this.listId&&this.currentIndex!==void 0&&this.storage.store(this.listId,this.currentIndex)};var YLM=["response","contents","twoColumnWatchNextResults","autoplay","autoplay"],w3U=["playerResponse","videoDetails"],uJc=["response","currentVideoEndpoint","watchEndpoint","videoId"],SLM=["response","currentVideoEndpoint","watchEndpoint","playlistId"],p3u=["response","playerOverlays","playerOverlayRenderer","endScreen","watchNextEndScreenRenderer"],mui=["response","contents","twoColumnWatchNextResults","playlist","playlist"],Km_=["response","webWatchNextResponseExtensionData","relatedVideoArgs"],
FOT=["response","contents","twoColumnWatchNextResults"];var lp={},YXr=(lp.WEB_UNPLUGGED="^unplugged/",lp.WEB_UNPLUGGED_ONBOARDING="^unplugged/",lp.WEB_UNPLUGGED_OPS="^unplugged/",lp.WEB_UNPLUGGED_PUBLIC="^unplugged/",lp.WEB_CREATOR="^creator/",lp.WEB_KIDS="^kids/",lp.WEB_EXPERIMENTS="^experiments/",lp.WEB_MUSIC="^music/",lp.WEB_REMIX="^music/",lp.WEB_MUSIC_EMBEDDED_PLAYER="^music/",lp.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",lp);var x4o,rLe;x4o=function(F,W){this.networkManager=F;this.innertubeTransportService=W};
rLe=function(F,W,E){if(!_.D(W,_.Th))return _.xT(Error("Ef"));_.D(W,_.Th).videoIds=E;E={create_playlist_title:_.CY("QUEUE",void 0,"Queue")};return oQW(_.T_(F.innertubeTransportService,W,E),r5o)};
_.ofX=function(F,W,E,h){W={videoId:h,playlistId:W,playlistIndex:E};E=_.SF(Eza);return oQW(_.no(F.innertubeTransportService,W,E),GYS)};
x4o.prototype.updatePlaylist=function(F,W){return oQW(_.T_(this.innertubeTransportService,{commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/browse/edit_playlist",sendPost:!0}},playlistEditEndpoint:{playlistId:F,actions:W}}),TLY)};var WOu=function(F){this.storage=F},EoU;
WOu.prototype.store=function(F,W){W=W===void 0?0:W;if(this.storage&&F.startsWith("TLPQ"))try{this.storage.set("TLPQplaylist",F),this.storage.set("TLPQindex",String(W)),this.storage.set("TLPQtimestamp",String(Date.now()))}catch(E){}};
WOu.prototype.clear=function(){this.storage&&(this.storage.remove("TLPQtimestamp"),this.storage.remove("TLPQplaylist"),this.storage.remove("TLPQindex"))};
WOu.prototype.getPlaylistId=function(){if(!this.storage)return null;var F=null;try{F=this.storage.get("TLPQplaylist")}catch(W){}return F};var ptW=["navigationEndpoint","watchEndpoint","videoId"],SXY=["nextButtonVideo","watchEndpoint","videoId"];_.Ag=new _.NG("NETWORK_TOKEN");_.KQ=new _.NG("PAGE_TOKEN");_.yH=new _.NG("PLAYLIST_TOKEN");var h7B;h7B=new _.NG("ASYNC_INNERTUBE_TRANSPORT_TOKEN");_.sh=new _.NG("INNERTUBE_TRANSPORT_TOKEN");var dMT,jl,VdT,UMe,e7z,MdM;dMT=new Set(["ci","cr","carml"]);jl=function(){this.signals=[];this.compoundSignals=new Map;this.inProgressSignals=new Set;this.JSC$10702_parkedJobs=new Map;this.parkedProcessors=new Map};
_.ip=function(){jl.instance||(jl.instance=new jl);return jl.instance};
jl.prototype.onAny=function(F){return _.N1z(this,F,2)};
jl.prototype.parkOrScheduleJob=function(F,W,E,h,d){_.rL(this,E)?_.OZ().addJob(F,W,h):(d&&(F=VdT(F),UMe(this,F,W,E,d)),d=this.JSC$10702_parkedJobs.get(E),d||(this.JSC$10702_parkedJobs.set(E,[]),d=this.JSC$10702_parkedJobs.get(E)),d.push({job:F,priority:W,delay:h}))};
jl.prototype.addListener=function(F,W,E){E&&(W=VdT(W),UMe(this,W,0,F,E));E=this.parkedProcessors.get(F);E||(this.parkedProcessors.set(F,[]),E=this.parkedProcessors.get(F));E.push(W)};
jl.prototype.processSignal=function(F){if(!_.rL(this,F)){this.inProgressSignals.add(F);var W=this.JSC$10702_parkedJobs.get(F);if(W){W=_.U(W);for(var E=W.next();!E.done;E=W.next())E=E.value,_.OZ().addJob(E.job,E.priority,E.delay);this.JSC$10702_parkedJobs.delete(F)}if(W=this.parkedProcessors.get(F)){W=_.U(W);for(E=W.next();!E.done;E=W.next())E=E.value,E();this.parkedProcessors.delete(F)}this.signals.push(F);this.inProgressSignals.delete(F)}};
_.rL=function(F,W){return dMT.has(W)||_.l0("IS_HOMEPAGE_COLD")||_.l0("IS_RESULTS_PAGE_COLD")||_.l0("IS_WATCH_PAGE_COLD")?F.signals.indexOf(W)>=0:!0};
VdT=function(F){var W=!1;return function(){W||(W=!0,F())}};
UMe=function(F,W,E,h,d){if(R7H.has(h))_.OZ().addJob(W,E,d);else{var V=F.compoundSignals.get(h);V&&_.OZ().addJob(function(){_.rL(F,h)||(V.isTimeoutConditionSatisfied?_.OZ().addJob(W,E):V.timeoutConditionObservers.push(function(){_.OZ().addJob(W,E)}))},E,d)}};
_.N1z=function(F,W,E){if(W.length>1){var h=[],d=Object.create(null);W=_.U(W);for(var V=W.next();!V.done;V=W.next())V=V.value,d[V]||(h.push(V),d[V]=!0);W=h}if(W.length===1)return W[0];V=W;h="";d=E===2?"|":"&";V.sort();V=_.U(V);for(var R=V.next();!R.done;R=V.next())h+=R.value+d;if(!F.compoundSignals.get(h)){d=0;V=[];R=_.U(W);for(var M=R.next();!M.done;M=R.next())M=M.value,d++,_.rL(F,M)||V.push(M);(E=E===2)&&d>V.length||!E&&!V.length?F.signals.push(h):e7z(F,h,E,W,V)}return h};
e7z=function(F,W,E,h,d){var V=d.length,R=function(){E||--V===0?F.processSignal(W):MdM(F,W)};
d=_.U(d);for(var M=d.next();!M.done;M=d.next())F.addListener(M.value,R);F.compoundSignals.set(W,{signals:h,isOnAny:E,isInitialized:!1,isTimeoutConditionSatisfied:!1,timeoutConditionObservers:[]});MdM(F,W)};
MdM=function(F,W){if(!_.rL(F,W)){var E=F.compoundSignals.get(W);if(E&&!E.isTimeoutConditionSatisfied){for(var h=!1,d=0,V=0,R=_.U(E.signals),M=R.next();!M.done;M=R.next()){var g=M.value;M=!_.rL(F,g);R7H.has(g)?h=!0:(g=F.compoundSignals.get(g))?M&&!g.isTimeoutConditionSatisfied&&(V++,E.isInitialized||g.timeoutConditionObservers.push(function(){MdM(F,W)})):M&&d++}E.isInitialized=!0;
E.isOnAny?h&&(E.isTimeoutConditionSatisfied=!0):d===0&&V===0&&(E.isTimeoutConditionSatisfied=!0);if(E.isTimeoutConditionSatisfied)for(E=_.U(E.timeoutConditionObservers),h=E.next();!h.done;h=E.next())h=h.value,h()}}};
jl.prototype.processSignal=jl.prototype.processSignal;jl.prototype.parkOrScheduleJob=jl.prototype.parkOrScheduleJob;jl.prototype.onAny=jl.prototype.onAny;_.S5("ytsignals.getInstance",_.ip);jl.prototype.onAny=jl.prototype.onAny;jl.prototype.parkOrScheduleJob=jl.prototype.parkOrScheduleJob;jl.prototype.processSignal=jl.prototype.processSignal;var R7H=new Set(["eop","eocs","dl","pcl"]);_.GF=new _.NG("MINIPLAYER_SERVICE");var TY,gop,Qtz;TY=function(F,W,E){var h=_.o_.getInstance();if(!EoU){var d=new CIG;var V=void 0,R=_.b0("ID_TOKEN");R&&d.isAvailable()&&(V=new q0(d,"yt-queue"+R));EoU=new WOu(V)}d=EoU;V=_.ip();this.JSC$10709_actionRouter=h;this.pageManager=F;this.playlistManager=W;this.JSC$10709_playlistNetworkManager=E;this.storage=d;this.signals=V;this.responsePlaylistData=this.response=this.index=this.listId=void 0;this.temporaryItems=[];this.downloadPlaylistProxy=this.playlistProxy=this.queueProxy=void 0};
_.o0=function(){if(!gop){var F=_.WZ(),W=F.resolve(_.Fd(_.KQ)),E=F.resolve(_.Fd(_.Ag)),h=F.resolve(_.Fd(_.yH));F=F.resolve(_.sh);gop=new TY(W,h,new x4o(E,F))}return gop};
Qtz=function(F,W,E){if(E){var h;if(((h=F.responsePlaylistData)==null?void 0:h.playlistId)!==E)return}F.responsePlaylistData&&(E=hBY(W,F.responsePlaylistData),F.responsePlaylistData=(0,_.xd.unsafeClone)(F.responsePlaylistData),N_e(F.responsePlaylistData,E));E=F.temporaryItems.findIndex(function(d){return d.videoId===W});
E>-1&&F.temporaryItems.splice(E,1);_.GY(F,_.YQ(F,F.response?F.response.autoplayRenderer:void 0))};
_.z7H=function(F,W){if(F.responsePlaylistData){var E=dXr(W,F.responsePlaylistData);N_e(F.responsePlaylistData,E);if(F.queueProxy){var h=F.queueProxy;E<0||(h.videoIds.splice(E,1),E<h.currentIndex&&h.JSC$10655_setCurrentIndex(h.currentIndex-1),h.pendingUpdates.push({action:"ACTION_REMOVE_VIDEO",setVideoId:W}),OX(h))}}_.GY(F,_.YQ(F,F.response?F.response.autoplayRenderer:void 0))};
TY.prototype.clearQueue=function(){this.temporaryItems=[];this.storage.clear();this.queueProxy&&(this.queueProxy.delete(),this.responsePlaylistData=this.queueProxy=void 0);this.response&&_.GY(this,{autoplayRenderer:this.response.autoplayRenderer,playerData:{}})};
TY.prototype.setPlaylistData=function(F,W,E){this.temporaryItems=[];this.listId=F;this.responsePlaylistData=W;_.GY(this,_.YQ(this,E))};
var tdM=function(F){return(F==null?0:F.playlistId)?F.playlistId:"PPSV"},C6H=function(F){return F&&F.playlistId?F.playlistId==="PPSV"?!0:eRG(_.uC().getState().entities,F.playlistId):!1};
TY.prototype.isPlayingOfflineVideo=function(){return this.response?C6H(this.response):!1};
TY.prototype.closeMiniplayer=function(F){var W=this.queueProxy&&this.queueProxy.size()<=1,E=_.WZ().resolve(_.GF);if(!this.queueProxy||W)this.queueProxy&&this.clearQueue(),E.close(!0);else{E.pipController.getWindow()&&window.focus();W=this.responsePlaylistData;var h=this.temporaryItems.length+(W&&W.contents?W.contents.length:0);W=_.CY("QUEUE_CLEARED_UNPLURALIZED")||_.B5("QUEUE_CLEARED",h);W=_.mf(W);E=_.CY("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TITLE",void 0,"Close the queue");h=_.CY("QUEUE_CLOSE_MINIPLAYER_CONFIRM_BODY_TEXT")||
_.B5("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TEXT",h);var d=_.CY("MINIPLAYER_CLOSE",void 0,"Close"),V=_.CY("CANCEL",void 0,"Cancel");_.yS(this.JSC$10709_actionRouter,[{openPopupAction:{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.Gr(E),dialogMessages:[_.Gr(h)],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.Gr(d),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{endPlaylistCommand:{closeMiniplayer:!0,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}},
W]}}}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.Gr(V)}}}}}}],F)}};
_.YQ=function(F,W){var E={},h=F.response;E.autoplayRenderer=W;if(!F.responsePlaylistData&&!F.temporaryItems.length)return!h||!h.hasRelatedVideoData&&_.c("kevlar_prefetch_data_augments_network_data")||(E.playerData={rvs:h.relatedVideoArgs,endScreenRenderer:h.endScreenRenderer}),E;E.playerData={};if(F.index===void 0)return _.a_(Error("Gf")),E;E.panel=F.responsePlaylistData?(0,_.xd.unsafeClone)(F.responsePlaylistData):{titleText:_.Gr(_.CY("QUEUE",void 0,"Queue")),currentIndex:0,totalVideos:1,contents:[]};
W=E.panel;if(W.contents)for(var d=_.U(F.temporaryItems),V=d.next();!V.done;V=d.next())W.contents.push({playlistPanelVideoRenderer:V.value});F.queueProxy&&h&&h.playingVideo&&h.playingVideoId&&!EEG(h.playingVideoId,E.panel)&&(W=h.playingVideo,d=E.panel,V=F.index,d.contents&&d.contents.splice(V===void 0?0:V,0,{playlistPanelVideoRenderer:W}));h&&h.playingVideoId&&(W=F.index,d=E.panel,W=!d.contents||W>=d.contents.length?void 0:d.contents[W].playlistPanelVideoRenderer,W&&W.videoId===h.playingVideoId||(W=
hBY(h.playingVideoId,E.panel),F.index=W!==-1?W:F.index?F.index-1:0));W=Woe(F.index+1,E.panel);d=void 0;F.index>0&&(d=Woe(F.index-1,E.panel));if(d||W)E.autoplayRenderer=mIR(W,d,E.autoplayRenderer);!W&&(h==null?0:h.relatedVideoArgs)&&(E.playerData.rvs=h.relatedVideoArgs);h=h?h.playlistIndexOffset:0;F.queueProxy?RBR(E.panel,F.index,h,Foo,!0,!0,!0):RBR(E.panel,F.index,h);E.playerData.playlistPanelRenderer=E.panel;return E};
TY.prototype.openToast=function(F){_.WZ().resolve(_.GF).openToast(F,_.CY("ADDED_TO_QUEUE",void 0,"Added to queue"))};
TY.prototype.isMiniplayerActive=function(){return _.WZ().resolve(_.GF).isMiniplayerActive()};
_.GY=function(F,W){F.playlistManager.setAutoplayRenderer(W.autoplayRenderer||null);F.playlistManager.setPlaylistData(W.panel||null);W.playerData&&F.playlistManager.setPlayerPlaybackControlData(W.playerData)};var M8Y="#";var B1B={},voM={},ICp={},cM_={},DMc={responseContext:{serviceTrackingParams:[{service:"GFEEDBACK",params:[{key:"kc",value:"66"},{key:"cw",value:"st"},{key:"zb",value:"xz"},{key:"zl",value:"16"},{key:"pf",value:"sy"}]},{service:"bh",params:[{key:"ip",value:"54"},{key:"tb",value:"dv"},{key:"pi",value:"pn"},{key:"fg",value:"35"},{key:"wm",value:"vo"}]},{service:"fp",params:[{key:"hw",value:"91"}]},{service:"rk",params:[{key:"pe",value:"sf"},{key:"rv",value:"jn"},{key:"aw",value:"pw"}]}],maxAgeSeconds:87,
mainAppWebResponseContext:{loggedOut:43,trackingParam:"dd",datasyncId:"xp"},webResponseContextExtensionData:{hasDecorated:75}},playabilityStatus:{status:"by",playableInEmbed:2,miniplayer:{miniplayerRenderer:{playbackMode:"tj"}},offlineability:{buttonRenderer:{serviceEndpoint:{clickTrackingParams:"pz",ypcGetOfflineUpsellEndpoint:{params:"xm"}},trackingParams:"pq"}},contextParams:"lu"},streamingData:{expiresInSeconds:"53",formats:[{itag:80,url:"https://rr3---sn-n4v7sns7.googlevideo.com/videoplayback?expire=1697267654&source=youtube&requiressl=yes",
mimeType:'video/webm; codecs="vp9"',bitrate:88,width:96,height:65,lastModified:"1665263132187531",contentLength:"17",quality:"rc",fps:8,qualityLabel:"ab",projectionType:"by",averageBitrate:50,audioQuality:"th",approxDurationMs:"86",audioSampleRate:"88",audioChannels:34},{itag:95,url:"hs",mimeType:"nm",bitrate:56,width:13,height:14,lastModified:"10",quality:"fu",fps:54,qualityLabel:"yj",projectionType:"wu",audioQuality:"tu",approxDurationMs:"51",audioSampleRate:"87",audioChannels:44}],adaptiveFormats:[{itag:50,
url:"fu",mimeType:"uz",bitrate:80,width:80,height:85,initRange:{start:"16",end:"71"},indexRange:{start:"1",end:"26"},lastModified:"70",contentLength:"66",quality:"cx",fps:61,qualityLabel:"xt",projectionType:"pe",averageBitrate:68,approxDurationMs:"1"},{itag:77,url:"rj",mimeType:"lh",bitrate:16,width:17,height:47,initRange:{start:"51",end:"44"},indexRange:{start:"87",end:"61"},lastModified:"13",contentLength:"21",quality:"ie",fps:23,qualityLabel:"ig",projectionType:"bl",averageBitrate:16,colorInfo:{primaries:"et",
transferCharacteristics:"zu",matrixCoefficients:"od"},approxDurationMs:"59"},{itag:7,url:"fc",mimeType:"gr",bitrate:71,width:11,height:3,initRange:{start:"100",end:"7"},indexRange:{start:"36",end:"98"},lastModified:"88",contentLength:"77",quality:"rb",fps:46,qualityLabel:"gq",projectionType:"ld",averageBitrate:99,colorInfo:{primaries:"xd",transferCharacteristics:"uu",matrixCoefficients:"zc"},approxDurationMs:"44"},{itag:10,url:"kl",mimeType:"wb",bitrate:51,width:69,height:3,initRange:{start:"92",
end:"79"},indexRange:{start:"42",end:"72"},lastModified:"99",contentLength:"6",quality:"ee",fps:40,qualityLabel:"em",projectionType:"wz",averageBitrate:48,approxDurationMs:"86"},{itag:44,url:"hp",mimeType:"kq",bitrate:84,width:53,height:22,initRange:{start:"48",end:"51"},indexRange:{start:"54",end:"44"},lastModified:"25",contentLength:"47",quality:"xy",fps:11,qualityLabel:"zl",projectionType:"za",averageBitrate:95,colorInfo:{primaries:"ot",transferCharacteristics:"av",matrixCoefficients:"ow"},approxDurationMs:"85"},
{itag:20,url:"di",mimeType:"nc",bitrate:15,width:19,height:92,initRange:{start:"82",end:"58"},indexRange:{start:"80",end:"37"},lastModified:"46",contentLength:"40",quality:"wo",fps:44,qualityLabel:"pt",projectionType:"bg",averageBitrate:3,colorInfo:{primaries:"wq",transferCharacteristics:"is",matrixCoefficients:"ou"},approxDurationMs:"47"},{itag:44,url:"oe",mimeType:"mh",bitrate:37,width:43,height:24,initRange:{start:"29",end:"91"},indexRange:{start:"97",end:"97"},lastModified:"52",contentLength:"43",
quality:"cr",fps:44,qualityLabel:"hc",projectionType:"cr",averageBitrate:12,approxDurationMs:"97"},{itag:32,url:"gq",mimeType:"sh",bitrate:42,width:32,height:13,initRange:{start:"71",end:"87"},indexRange:{start:"70",end:"4"},lastModified:"67",contentLength:"16",quality:"sb",fps:66,qualityLabel:"mv",projectionType:"kk",averageBitrate:51,colorInfo:{primaries:"pk",transferCharacteristics:"ea",matrixCoefficients:"cq"},approxDurationMs:"70"},{itag:71,url:"zt",mimeType:"bl",bitrate:12,width:68,height:12,
initRange:{start:"63",end:"2"},indexRange:{start:"28",end:"68"},lastModified:"33",contentLength:"0",quality:"dh",fps:6,qualityLabel:"jv",projectionType:"sy",averageBitrate:75,colorInfo:{primaries:"us",transferCharacteristics:"ka",matrixCoefficients:"xw"},approxDurationMs:"16"},{itag:98,url:"vl",mimeType:"lg",bitrate:88,width:23,height:83,initRange:{start:"49",end:"34"},indexRange:{start:"43",end:"90"},lastModified:"84",contentLength:"77",quality:"xu",fps:50,qualityLabel:"jz",projectionType:"om",averageBitrate:16,
highReplication:95,approxDurationMs:"46"},{itag:85,url:"ri",mimeType:"dh",bitrate:77,width:86,height:54,initRange:{start:"40",end:"98"},indexRange:{start:"15",end:"85"},lastModified:"25",contentLength:"53",quality:"rq",fps:62,qualityLabel:"nx",projectionType:"wg",averageBitrate:35,colorInfo:{primaries:"oa",transferCharacteristics:"kb",matrixCoefficients:"kk"},approxDurationMs:"26"},{itag:10,url:"zz",mimeType:"lq",bitrate:55,width:89,height:43,initRange:{start:"94",end:"98"},indexRange:{start:"73",
end:"51"},lastModified:"3",contentLength:"36",quality:"yo",fps:5,qualityLabel:"we",projectionType:"ve",averageBitrate:83,colorInfo:{primaries:"yu",transferCharacteristics:"fu",matrixCoefficients:"ox"},approxDurationMs:"11"},{itag:62,url:"hv",mimeType:"th",bitrate:76,width:28,height:79,initRange:{start:"97",end:"100"},indexRange:{start:"58",end:"63"},lastModified:"53",contentLength:"22",quality:"ou",fps:7,qualityLabel:"cm",projectionType:"xv",averageBitrate:35,approxDurationMs:"98"},{itag:91,url:"vr",
mimeType:"wo",bitrate:41,width:4,height:79,initRange:{start:"80",end:"83"},indexRange:{start:"14",end:"58"},lastModified:"50",contentLength:"38",quality:"ic",fps:64,qualityLabel:"sq",projectionType:"du",averageBitrate:61,colorInfo:{primaries:"ok",transferCharacteristics:"ud",matrixCoefficients:"ob"},approxDurationMs:"73"},{itag:48,url:"lq",mimeType:"zl",bitrate:4,width:16,height:65,initRange:{start:"93",end:"50"},indexRange:{start:"52",end:"44"},lastModified:"74",contentLength:"86",quality:"mi",fps:43,
qualityLabel:"rz",projectionType:"ji",averageBitrate:61,colorInfo:{primaries:"qo",transferCharacteristics:"fk",matrixCoefficients:"jy"},approxDurationMs:"70"},{itag:34,url:"cr",mimeType:"la",bitrate:53,width:29,height:97,initRange:{start:"89",end:"45"},indexRange:{start:"93",end:"45"},lastModified:"52",contentLength:"74",quality:"xn",fps:60,qualityLabel:"xs",projectionType:"lf",averageBitrate:1,approxDurationMs:"18"},{itag:67,url:"mr",mimeType:"cs",bitrate:79,width:9,height:85,initRange:{start:"56",
end:"96"},indexRange:{start:"71",end:"84"},lastModified:"78",contentLength:"80",quality:"ld",fps:2,qualityLabel:"no",projectionType:"uq",averageBitrate:35,colorInfo:{primaries:"mj",transferCharacteristics:"ry",matrixCoefficients:"cc"},approxDurationMs:"43"},{itag:57,url:"fi",mimeType:"to",bitrate:80,width:81,height:29,initRange:{start:"6",end:"96"},indexRange:{start:"73",end:"48"},lastModified:"32",contentLength:"11",quality:"ck",fps:82,qualityLabel:"fo",projectionType:"px",averageBitrate:95,colorInfo:{primaries:"az",
transferCharacteristics:"mq",matrixCoefficients:"oc"},approxDurationMs:"44"},{itag:52,url:"ea",mimeType:"xm",bitrate:18,initRange:{start:"15",end:"16"},indexRange:{start:"4",end:"33"},lastModified:"65",contentLength:"67",quality:"es",projectionType:"mp",averageBitrate:52,highReplication:82,audioQuality:"za",approxDurationMs:"24",audioSampleRate:"1",audioChannels:92,loudnessDb:.9787435365879406},{itag:37,url:"kk",mimeType:"xg",bitrate:78,initRange:{start:"38",end:"94"},indexRange:{start:"27",end:"17"},
lastModified:"61",contentLength:"2",quality:"nh",projectionType:"ar",averageBitrate:69,audioQuality:"la",approxDurationMs:"95",audioSampleRate:"66",audioChannels:50,loudnessDb:.6461265012758731},{itag:45,url:"oc",mimeType:"nm",bitrate:12,initRange:{start:"21",end:"45"},indexRange:{start:"21",end:"13"},lastModified:"45",contentLength:"85",quality:"vs",projectionType:"xp",averageBitrate:32,audioQuality:"tv",approxDurationMs:"1",audioSampleRate:"99",audioChannels:42,loudnessDb:.39295968942278037},{itag:37,
url:"zf",mimeType:"be",bitrate:29,initRange:{start:"27",end:"87"},indexRange:{start:"81",end:"20"},lastModified:"6",contentLength:"33",quality:"pe",projectionType:"pb",averageBitrate:100,audioQuality:"zi",approxDurationMs:"70",audioSampleRate:"32",audioChannels:68,loudnessDb:.2781731101164002}]},playerAds:[{playerLegacyDesktopWatchAdsRenderer:{playerAdParams:{showContentThumbnail:!0,enabledEngageTypes:"3,6,4,5"},gutParams:{tag:"\\4061\\ytpwmpu"},showCompanion:!0,showInstream:!0,useGut:!0}}],playbackTracking:{videostatsPlaybackUrl:{baseUrl:"bj"},
videostatsDelayplayUrl:{baseUrl:"vx"},videostatsWatchtimeUrl:{baseUrl:"px"},ptrackingUrl:{baseUrl:"tg"},qoeUrl:{baseUrl:"wx"},atrUrl:{baseUrl:"xz",elapsedMediaTimeSeconds:45},videostatsScheduledFlushWalltimeSeconds:[99,32,39],videostatsDefaultFlushIntervalSeconds:3,youtubeRemarketingUrl:{baseUrl:"mb",elapsedMediaTimeSeconds:63},googleRemarketingUrl:{baseUrl:"yn",elapsedMediaTimeSeconds:83}},captions:{playerCaptionsTracklistRenderer:{captionTracks:[{baseUrl:"ew",name:{simpleText:"ez"},vssId:"fj",languageCode:"wd",
kind:"ez",isTranslatable:21}],audioTracks:[{captionTrackIndices:[87]}],translationLanguages:[{languageCode:"xu",languageName:{simpleText:"fw"}},{languageCode:"zl",languageName:{simpleText:"xc"}},{languageCode:"jr",languageName:{simpleText:"md"}},{languageCode:"sc",languageName:{simpleText:"wf"}},{languageCode:"nj",languageName:{simpleText:"xn"}},{languageCode:"of",languageName:{simpleText:"av"}},{languageCode:"tv",languageName:{simpleText:"ok"}},{languageCode:"nu",languageName:{simpleText:"ry"}},
{languageCode:"zy",languageName:{simpleText:"nb"}},{languageCode:"pt",languageName:{simpleText:"eq"}},{languageCode:"vr",languageName:{simpleText:"cc"}},{languageCode:"wh",languageName:{simpleText:"hd"}},{languageCode:"hp",languageName:{simpleText:"ds"}},{languageCode:"ka",languageName:{simpleText:"up"}},{languageCode:"sw",languageName:{simpleText:"zp"}},{languageCode:"rh",languageName:{simpleText:"eq"}},{languageCode:"bq",languageName:{simpleText:"at"}},{languageCode:"hu",languageName:{simpleText:"fg"}},
{languageCode:"ai",languageName:{simpleText:"iy"}},{languageCode:"rj",languageName:{simpleText:"oz"}},{languageCode:"sq",languageName:{simpleText:"fe"}},{languageCode:"tn",languageName:{simpleText:"vk"}},{languageCode:"jr",languageName:{simpleText:"jg"}},{languageCode:"vc",languageName:{simpleText:"hv"}},{languageCode:"yn",languageName:{simpleText:"ky"}},{languageCode:"pa",languageName:{simpleText:"rw"}},{languageCode:"lr",languageName:{simpleText:"kv"}},{languageCode:"ud",languageName:{simpleText:"fn"}},
{languageCode:"hq",languageName:{simpleText:"io"}},{languageCode:"rp",languageName:{simpleText:"qx"}},{languageCode:"xf",languageName:{simpleText:"sm"}},{languageCode:"fs",languageName:{simpleText:"ty"}},{languageCode:"so",languageName:{simpleText:"xl"}},{languageCode:"fk",languageName:{simpleText:"ff"}},{languageCode:"fw",languageName:{simpleText:"wz"}},{languageCode:"rn",languageName:{simpleText:"zw"}},{languageCode:"wq",languageName:{simpleText:"yt"}},{languageCode:"oh",languageName:{simpleText:"oo"}},
{languageCode:"ts",languageName:{simpleText:"jt"}},{languageCode:"xy",languageName:{simpleText:"ga"}},{languageCode:"jy",languageName:{simpleText:"sx"}},{languageCode:"lw",languageName:{simpleText:"cf"}},{languageCode:"fc",languageName:{simpleText:"qr"}},{languageCode:"ji",languageName:{simpleText:"cc"}},{languageCode:"qs",languageName:{simpleText:"pi"}},{languageCode:"vx",languageName:{simpleText:"hk"}},{languageCode:"jt",languageName:{simpleText:"eh"}},{languageCode:"fb",languageName:{simpleText:"iu"}},
{languageCode:"mf",languageName:{simpleText:"st"}},{languageCode:"en",languageName:{simpleText:"vr"}},{languageCode:"go",languageName:{simpleText:"kp"}},{languageCode:"sc",languageName:{simpleText:"rk"}},{languageCode:"bx",languageName:{simpleText:"ci"}},{languageCode:"pu",languageName:{simpleText:"qj"}},{languageCode:"fa",languageName:{simpleText:"ht"}},{languageCode:"bw",languageName:{simpleText:"af"}},{languageCode:"rr",languageName:{simpleText:"jt"}},{languageCode:"ef",languageName:{simpleText:"yy"}},
{languageCode:"bn",languageName:{simpleText:"wu"}},{languageCode:"ov",languageName:{simpleText:"ae"}},{languageCode:"sm",languageName:{simpleText:"hi"}},{languageCode:"tq",languageName:{simpleText:"ie"}},{languageCode:"fn",languageName:{simpleText:"et"}},{languageCode:"jw",languageName:{simpleText:"bu"}},{languageCode:"iz",languageName:{simpleText:"gc"}},{languageCode:"bk",languageName:{simpleText:"jh"}},{languageCode:"vw",languageName:{simpleText:"fq"}},{languageCode:"xt",languageName:{simpleText:"or"}},
{languageCode:"kq",languageName:{simpleText:"ch"}},{languageCode:"pa",languageName:{simpleText:"cs"}},{languageCode:"ef",languageName:{simpleText:"eq"}},{languageCode:"mk",languageName:{simpleText:"ig"}},{languageCode:"me",languageName:{simpleText:"pv"}},{languageCode:"ll",languageName:{simpleText:"nz"}},{languageCode:"yd",languageName:{simpleText:"pu"}},{languageCode:"dj",languageName:{simpleText:"vx"}},{languageCode:"xc",languageName:{simpleText:"ca"}},{languageCode:"wb",languageName:{simpleText:"il"}},
{languageCode:"ww",languageName:{simpleText:"jf"}},{languageCode:"xi",languageName:{simpleText:"ba"}},{languageCode:"ae",languageName:{simpleText:"hx"}},{languageCode:"uj",languageName:{simpleText:"xu"}},{languageCode:"hq",languageName:{simpleText:"gp"}},{languageCode:"we",languageName:{simpleText:"pk"}},{languageCode:"kt",languageName:{simpleText:"ek"}},{languageCode:"hy",languageName:{simpleText:"ab"}},{languageCode:"hm",languageName:{simpleText:"nu"}},{languageCode:"uw",languageName:{simpleText:"rx"}},
{languageCode:"or",languageName:{simpleText:"nf"}},{languageCode:"dh",languageName:{simpleText:"zn"}},{languageCode:"kb",languageName:{simpleText:"js"}},{languageCode:"vg",languageName:{simpleText:"xe"}},{languageCode:"dl",languageName:{simpleText:"so"}},{languageCode:"lz",languageName:{simpleText:"hb"}},{languageCode:"ny",languageName:{simpleText:"xr"}},{languageCode:"ag",languageName:{simpleText:"us"}},{languageCode:"zr",languageName:{simpleText:"ae"}},{languageCode:"yq",languageName:{simpleText:"yc"}},
{languageCode:"up",languageName:{simpleText:"dc"}},{languageCode:"zn",languageName:{simpleText:"jw"}},{languageCode:"uh",languageName:{simpleText:"ms"}},{languageCode:"mt",languageName:{simpleText:"vf"}},{languageCode:"lt",languageName:{simpleText:"ln"}},{languageCode:"vf",languageName:{simpleText:"rd"}},{languageCode:"my",languageName:{simpleText:"rk"}},{languageCode:"ei",languageName:{simpleText:"ul"}},{languageCode:"dj",languageName:{simpleText:"cz"}},{languageCode:"kb",languageName:{simpleText:"hp"}},
{languageCode:"jj",languageName:{simpleText:"zf"}},{languageCode:"ew",languageName:{simpleText:"ff"}},{languageCode:"jo",languageName:{simpleText:"iz"}},{languageCode:"ja",languageName:{simpleText:"uz"}},{languageCode:"yd",languageName:{simpleText:"or"}},{languageCode:"tl",languageName:{simpleText:"tw"}},{languageCode:"mw",languageName:{simpleText:"th"}},{languageCode:"pq",languageName:{simpleText:"zp"}},{languageCode:"pq",languageName:{simpleText:"pk"}},{languageCode:"ef",languageName:{simpleText:"fj"}},
{languageCode:"qq",languageName:{simpleText:"vu"}},{languageCode:"pj",languageName:{simpleText:"kp"}},{languageCode:"ab",languageName:{simpleText:"xw"}},{languageCode:"re",languageName:{simpleText:"ln"}},{languageCode:"ht",languageName:{simpleText:"wo"}},{languageCode:"ju",languageName:{simpleText:"wb"}},{languageCode:"yq",languageName:{simpleText:"xv"}}],defaultAudioTrackIndex:70}},videoDetails:{videoId:"ux",title:"jb",lengthSeconds:"90",keywords:"th ts yg gy ih iq zj".split(" "),channelId:"pg",
isOwnerViewing:6,shortDescription:"ts",isCrawlable:62,thumbnail:{thumbnails:[{url:"vx",width:8,height:58},{url:"bp",width:44,height:79},{url:"oh",width:47,height:66},{url:"hm",width:34,height:55},{url:"vr",width:0,height:20}]},allowRatings:24,viewCount:"49",author:"xr",isPrivate:70,isUnpluggedCorpus:66,isLiveContent:99},annotations:[{playerAnnotationsExpandedRenderer:{featuredChannel:{startTimeMs:"96",endTimeMs:"46",watermark:{thumbnails:[{url:"li",width:91,height:28}]},trackingParams:"an",navigationEndpoint:{clickTrackingParams:"mg",
commandMetadata:{webCommandMetadata:{url:"rd",webPageType:"nc",rootVe:69,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:"qg"}},channelName:"ei",subscribeButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:"pz"}]},subscribed:44,enabled:33,type:"ue",channelId:"ki",showPreferences:71,subscribedButtonText:{runs:[{text:"lk"}]},unsubscribedButtonText:{runs:[{text:"jn"}]},trackingParams:"oj",unsubscribeButtonText:{runs:[{text:"ad"}]},serviceEndpoints:[{clickTrackingParams:"wm",commandMetadata:{webCommandMetadata:{sendPost:4,
apiUrl:"ky"}},subscribeEndpoint:{channelIds:["zt"],params:"at"}},{clickTrackingParams:"jg",commandMetadata:{webCommandMetadata:{sendPost:28}},signalServiceEndpoint:{signal:"ok",actions:[{clickTrackingParams:"lt",openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:"po",dialogMessages:[{runs:[{text:"ou"},{text:"jt"},{text:"zz"}]}],confirmButton:{buttonRenderer:{style:"mm",size:"oi",isDisabled:43,text:{runs:[{text:"kc"}]},serviceEndpoint:{clickTrackingParams:"gk",commandMetadata:{webCommandMetadata:{sendPost:18,
apiUrl:"kc"}},unsubscribeEndpoint:{channelIds:["cm"],params:"ar"}},accessibility:{label:"iy"},trackingParams:"gs"}},cancelButton:{buttonRenderer:{style:"jb",size:"pe",isDisabled:69,text:{runs:[{text:"uv"}]},accessibility:{label:"qu"},trackingParams:"pe"}},primaryIsCancel:48}},popupType:"ma"}}]}}],subscribeAccessibility:{accessibilityData:{label:"vh"}},unsubscribeAccessibility:{accessibilityData:{label:"lg"}},signInEndpoint:{clickTrackingParams:"eu",commandMetadata:{webCommandMetadata:{url:"na"}}}}}},
allowSwipeDismiss:55,annotationId:"jd"}}],playerConfig:{audioConfig:{loudnessDb:.9620880668073215,perceptualLoudnessDb:.541474004793957,enablePerFormatLoudness:31},streamSelectionConfig:{maxBitrate:"61"},mediaCommonConfig:{dynamicReadaheadConfig:{maxReadAheadMediaTimeMs:100,minReadAheadMediaTimeMs:21,readAheadGrowthRateMs:29}},webPlayerConfig:{useCobaltTvosDash:55,webPlayerActionsPorting:{getSharePanelCommand:{clickTrackingParams:"of",commandMetadata:{webCommandMetadata:{sendPost:31,apiUrl:"xl"}},
webPlayerShareEntityServiceEndpoint:{serializedShareEntity:"tr"}},subscribeCommand:{clickTrackingParams:"fs",commandMetadata:{webCommandMetadata:{sendPost:13,apiUrl:"xp"}},subscribeEndpoint:{channelIds:["qs"],params:"oa"}},unsubscribeCommand:{clickTrackingParams:"ls",commandMetadata:{webCommandMetadata:{sendPost:91,apiUrl:"wc"}},unsubscribeEndpoint:{channelIds:["fo"],params:"vt"}},addToWatchLaterCommand:{clickTrackingParams:"ua",commandMetadata:{webCommandMetadata:{sendPost:18,apiUrl:"iu"}},playlistEditEndpoint:{playlistId:"rv",
actions:[{addedVideoId:"iw",action:"rd"}]}},removeFromWatchLaterCommand:{clickTrackingParams:"un",commandMetadata:{webCommandMetadata:{sendPost:20,apiUrl:"bl"}},playlistEditEndpoint:{playlistId:"zg",actions:[{action:"ya",removedVideoId:"dk"}]}}},gatewayExperimentGroup:"vb"}},storyboards:{playerStoryboardSpecRenderer:{spec:"aj",recommendedLevel:87}},microformat:{playerMicroformatRenderer:{thumbnail:{thumbnails:[{url:"mm",width:57,height:94}]},embed:{iframeUrl:"bd",width:51,height:73},title:{simpleText:"sg"},
description:{simpleText:"yv"},lengthSeconds:"18",ownerProfileUrl:"bg",externalChannelId:"eg",isFamilySafe:88,availableCountries:"hn sd lt tx nw mq iz aj vi xa ec iv rj vb ro po mv mx cn ld tn ay gv bs vf da ss km uo mg wv md lo nc vh li jh lj qq ci ob zy pu bl jm ge tt ov ue vp ka nh uc gb rs gu hm uv nq ga qu hr pj zq rh nn yv or zg ai qj cv vg hr zm al mj fz yx st tt ih vm wq gx wi ys ug vb uh rf ry ba xu ce eq bx he jm ie nb cd qz no yq qe jy wd pm nb hk em im iv ld gz fe ut md gw sf yz yp xr gm uo kg yo wv da wt ry it gz mm ho mf lq tu im lu gm pa ny gu ds yx yh jk qb jv mp bi nr mc bg ym zt sh kd gj dp qw eh no pj nq dy gt cm pg ce jt xv tf ue ke hs xh tc ad yg uh cd zc rj kq sp vv xt bo am kg kx xb fr il qi ap pe tg im cs vy zu cq bu og tf ze zj um vd ot al zl um jv ss md xm nv id es jf as zb ms uv jh xz em uv bk zx wp ay ub pa rf yi zm em pu xs".split(" "),
isUnlisted:24,hasYpcMetadata:38,viewCount:"6",category:"qh",publishDate:"eb",ownerChannelName:"mf",uploadDate:"ax"}},cards:{cardCollectionRenderer:{cards:[{cardRenderer:{teaser:{simpleCardTeaserRenderer:{message:{simpleText:"ha"},trackingParams:"ra",prominent:9,logVisibilityUpdates:88,onTapCommand:{clickTrackingParams:"dy",changeEngagementPanelVisibilityAction:{targetId:"qc",visibility:"mh"}}}},cueRanges:[{startCardActiveMs:"41",endCardActiveMs:"81",teaserDurationMs:"31",iconAfterTeaserMs:"65"}],
trackingParams:"sn"}}],headerText:{simpleText:"mi"},icon:{infoCardIconRenderer:{trackingParams:"tq"}},closeButton:{infoCardIconRenderer:{trackingParams:"nz"}},trackingParams:"ss",allowTeaserDismiss:55,logIconVisibilityUpdates:49}},trackingParams:"lt",attestation:{playerAttestationRenderer:{challenge:"rg",botguardData:{program:"vk",interpreterSafeUrl:(B1B.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="ap",B1B),serverEnvironment:83}}},videoQualityPromoSupportedRenderers:{videoQualityPromoRenderer:{triggerCriteria:{connectionWhitelist:["vs"],
joinLatencySeconds:85,rebufferTimeSeconds:89,watchTimeWindowSeconds:21,refractorySeconds:41},text:{runs:[{text:"it"},{text:"qt",bold:60}]},endpoint:{clickTrackingParams:"lw",commandMetadata:{webCommandMetadata:{url:"ih",webPageType:"xa",rootVe:73}},urlEndpoint:{url:"ms",target:"tj"}},trackingParams:"vd",snackbar:{notificationActionRenderer:{responseText:{runs:[{text:"pp"}]},actionButton:{buttonRenderer:{text:{runs:[{text:"yw"}]},navigationEndpoint:{clickTrackingParams:"sq",commandMetadata:{webCommandMetadata:{url:"wp",
webPageType:"zn",rootVe:21}},urlEndpoint:{url:"ju",target:"dy"}},trackingParams:"zj"}},trackingParams:"nh"}}}},messages:[{mealbarPromoRenderer:{icon:{thumbnails:[{url:"ek",width:71,height:69}]},messageTexts:[{runs:[{text:"ew"}]}],actionButton:{buttonRenderer:{style:"gz",size:"tz",text:{runs:[{text:"ga"}]},trackingParams:"qr",command:{clickTrackingParams:"wk",commandExecutorCommand:{commands:[{clickTrackingParams:"dw",commandMetadata:{webCommandMetadata:{url:"po",webPageType:"fl",rootVe:70,apiUrl:"ot"}},
browseEndpoint:{browseId:"pl",params:"zo"}},{commandMetadata:{webCommandMetadata:{sendPost:10,apiUrl:"rv"}},feedbackEndpoint:{feedbackToken:"xi",uiActions:{hideEnclosingContainer:25}}}]}}}},dismissButton:{buttonRenderer:{style:"ol",size:"og",text:{runs:[{text:"yv"}]},trackingParams:"ch",command:{clickTrackingParams:"uu",commandExecutorCommand:{commands:[{clickTrackingParams:"ig",commandMetadata:{webCommandMetadata:{sendPost:71,apiUrl:"en"}},feedbackEndpoint:{feedbackToken:"wh",uiActions:{hideEnclosingContainer:45}}}]}}}},
triggerCondition:"pb",style:"uq",trackingParams:"rp",impressionEndpoints:[{clickTrackingParams:"xb",commandMetadata:{webCommandMetadata:{sendPost:73,apiUrl:"wl"}},feedbackEndpoint:{feedbackToken:"wf",uiActions:{hideEnclosingContainer:95}}}],isVisible:17,messageTitle:{runs:[{text:"ir"}]},enableSharedFeatureForImpressionHandling:21}}],adPlacements:[{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:"7",offsetEndMilliseconds:"39"},
hideCueRangeMarker:!0}},renderer:{linearAdSequenceRenderer:{linearAds:[{instreamVideoAdRenderer:{playerOverlay:{instreamAdPlayerOverlayRenderer:{skipOrPreviewRenderer:{skipAdRenderer:{preskipRenderer:{adPreviewRenderer:{thumbnail:{thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/AERLXaPKn_U/mqdefault.jpg",width:46,height:25}]},trackingParams:"ye"},trackingParams:"dq",templatedCountdown:{templatedAdText:{text:"ps",isTemplated:82,trackingParams:"cc"}},durationMilliseconds:44}},skippableRenderer:{skipButtonRenderer:{message:{text:"xz",
isTemplated:30,trackingParams:"um"},trackingParams:"ge"}},trackingParams:"zg",skipOffsetMilliseconds:88}},trackingParams:"qd",visitAdvertiserRenderer:{buttonRenderer:{style:"fv",text:{simpleText:"on"},icon:{iconType:"vw"},navigationEndpoint:{clickTrackingParams:"mk",commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C3OQpfbUyZYWKL_Ken8RMFbClwAyRha6dc6fw7oP7EbaQHxABIABgyfb4hsijoBmCARdjYS1wdWItNjIxOTgxMTc0NzA0OTM3MYgBAaAB59zF2gOoAwSqBLMDT9ATfUTpaHDVXptzXB0Bqtu5dBV_jsP-c6MPkZYSL8_SrzCV3_f4sBsAHAi3Utb4zaJFaF_HvQdtBwss4wAA_skHdbFnpl5-EMNyyzlRw-Cndshj8CGQYwd1ZXhxlU46cvUuzxBe4SvQuo5EZgRv_zIYfKVpOj81ol3soC-FTzrjxhngpg6E1SEy8MZ8S5ykzm_m-YEKix3QCVLlSpEedBunRo295OkIwlFwaIQk8cLxsmnYhxdD_0zLFeTvwe5Q5tNO9mqkUZ7rAyzCTey_m5MZVo67-fDtV0elSQR79C9ErFiOQ5SaPsQgzk7zE3jxPNZYzV0zKOQ245eF3ZWxcGIrFA5NPIvvBwOl60ABjpEgQjQ4y2LpZnygmW_9ikThHx_iC4RujeV7iSAG5Fvv28wptAmCq7jMu5tWztpr-nl-Y0Iz7dA2FeeEOcd4ddn596NriGGT8AjZAXhtD7yJ8tRBEO3P48giFZj81WrpYHUvNhfx24PguTj-IBSpw2uQbemku11WDOxo7SI20n_fPtLcaEXB3YUajshnd5LoR4NlONEqC0f_uYwLaHt5X4Fw1hd8oAZUgAeBo7oliAcBkAcCqAf5sbECqAfnnbECqAfonbECqAfqt7ECqAentbMVqAfvtbECqAfwtbECqAeCqrECqAePOgHqNIbqAe2B6gHpJqxAqgHkZ-xAqgHsJuxAqgH36GxAqgHrrGxAqgHpqqxAqgH_bKxAqgHgcYbqAf8r7ECqAerxRuoB5zcG6gH5p2xAqgHyJ-xAqgHt6GxAqgH66WxAqgHyqmxApIIC242UFJubjBtcFpjqAgB0ggcCIAREAIYWjIDgoAEOgeP0ICAgIAESNmg0jVQFPIIH2NhLXl0LWhvc3QtcHViLTE4MDAxMjAxBZAyMzA2NTWaCRtodHRwczovL2xhdW5pdGVjLm5ldC9lY29tYTKxCS-fhg771OyRyAkYyAmPAcgJkAGYCwGhC8vk5LIcunUAugtXCAEQARgFIAEoATABQAFIAWAAaABwAogBAJgBAaIBLwoYIAPauAQSMhA6DgoMKDBIs5vbluYKmBkBEAEYACAAWABgAHAA0AEBqAIFwAIC2AEBgAIBiAIG0AsS2gw8CgoQ8Pj1wrn_sa1tEgIBAxoqCAESGf6BmeYY2b35qxjevPmrGJO89uoDvoSxpgPO7YnF2kwgmtyo08MEmg0BEqoNAlVTuBP___________8BsBQBwBXJgIBA0BUB2BUBkBYBmBYB4hYCCAGAFwGKFxoIAxgBIAEoATABOAFAAUgBUAFYAWACaAFwAaAXAakXG4oLaa1eRvW6FwQoADAA&ase=2&num=1&cid=CAASD-D4c9DOhTCuXm4CeUayPw&ad_cpn=%5BAD_CPN%5D&sig=AOD64_1U5dvH2jbnEq_3j0LlY381EiWpog&ms=[CLICK_MS]&adurl=https://garlo.com/enapa2%3Fgc_id%3D20599670093&label=video_click_to_advertiser_site&ctype=110",
webPageType:"ry",rootVe:62}},urlEndpoint:{url:"lq",target:"wt"}},trackingParams:"mh"}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:"kw",isTemplated:93,trackingParams:"jg"},trackingParams:"at"}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:"rl",isTemplated:73,trackingParams:"le"}},trackingParams:"tr"}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"le",size:"nb",isDisabled:41,serviceEndpoint:{clickTrackingParams:"jt",
openPopupAction:{popup:{aboutThisAdRenderer:{url:(voM.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="as",voM),trackingParams:"vy"}},popupType:"xn"}},icon:{iconType:"vl"},trackingParams:"lm",accessibilityData:{accessibilityData:{label:"qi"}}}},hoverText:{simpleText:"zk"},trackingParams:"qa"}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"pv"}]},trackingParams:"jo"},headline:{text:"qx",isTemplated:10,trackingParams:"um"},description:{text:"mf",trackingParams:"fe"},
actionButton:{buttonRenderer:{text:{simpleText:"kq"},navigationEndpoint:{clickTrackingParams:"cm",commandMetadata:{webCommandMetadata:{url:"wa",webPageType:"nq",rootVe:69}},urlEndpoint:{url:"ln",target:"nd"}},trackingParams:"no"}},startMs:45,trackingParams:"ge"}},adLayoutLoggingData:{serializedAdServingDataEntry:"xd"},elementId:"tc",inPlayerSlotId:"gg",inPlayerLayoutId:"cm"}},trackingParams:"uy",layoutId:"ff",associatedPlayerBytesLayoutId:"dy"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"gv"}]},
trackingParams:"at"},headline:{text:"ow",isTemplated:66,trackingParams:"za"},description:{text:"ds",isTemplated:95,trackingParams:"fc"},actionButton:{buttonRenderer:{style:"ys",text:{simpleText:"aq"},navigationEndpoint:{clickTrackingParams:"vu",commandMetadata:{webCommandMetadata:{url:"zn",webPageType:"jv",rootVe:38}},urlEndpoint:{url:"df",target:"xe"}},trackingParams:"za"}},durationMilliseconds:44,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:"xg"}},navigationEndpoint:{clickTrackingParams:"vg",
loggingUrls:[{baseUrl:"bc"}],commandMetadata:{webCommandMetadata:{url:"sn",webPageType:"vb",rootVe:34}},urlEndpoint:{url:"ex",target:"nb"}},trackingParams:"iw",backgroundImage:{thumbnail:{thumbnails:[{url:"cm"}]},trackingParams:"br"},adRendererCommands:{impressionCommand:{clickTrackingParams:"dj",commandExecutorCommand:{commands:[{clickTrackingParams:"li",loggingUrls:[{baseUrl:"wa"}],pingingEndpoint:{hack:0}}]}}},skipButton:{skipButtonRenderer:{message:{text:"jg",isTemplated:95,trackingParams:"by"},
trackingParams:"kl"}},adLayoutLoggingData:{serializedAdServingDataEntry:"kt"},layoutId:"cv",inPlayerSlotId:"qt",inPlayerLayoutId:"yy",associatedPlayerBytesLayoutId:"dx"}},{instreamVideoAdRenderer:{playerOverlay:{instreamAdPlayerOverlayRenderer:{skipOrPreviewRenderer:{skipAdRenderer:{preskipRenderer:{adPreviewRenderer:{thumbnail:{thumbnail:{thumbnails:[{url:"pz",width:32,height:43}]},trackingParams:"iz"},trackingParams:"yo",templatedCountdown:{templatedAdText:{text:"we",isTemplated:91,trackingParams:"si"}},
durationMilliseconds:10}},skippableRenderer:{skipButtonRenderer:{message:{text:"bp",isTemplated:93,trackingParams:"mo"},trackingParams:"cp"}},trackingParams:"qr",skipOffsetMilliseconds:60}},trackingParams:"zf",visitAdvertiserRenderer:{buttonRenderer:{style:"ya",text:{simpleText:"fv"},icon:{iconType:"bx"},navigationEndpoint:{clickTrackingParams:"bw",commandMetadata:{webCommandMetadata:{url:"ht",webPageType:"gv",rootVe:14}},urlEndpoint:{url:"wi",target:"te"}},trackingParams:"gr"}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:"ox",
isTemplated:66,trackingParams:"td"},trackingParams:"ng"}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:"zu",isTemplated:15,trackingParams:"py"}},trackingParams:"hb"}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"vn",size:"cw",isDisabled:56,serviceEndpoint:{clickTrackingParams:"jh",openPopupAction:{popup:{aboutThisAdRenderer:{url:(ICp.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="zx",ICp),trackingParams:"yl"}},popupType:"tw"}},
icon:{iconType:"ar"},trackingParams:"vi",accessibilityData:{accessibilityData:{label:"hy"}}}},hoverText:{simpleText:"ap"},trackingParams:"pp"}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"ol"}]},trackingParams:"kz"},headline:{text:"wa",isTemplated:43,trackingParams:"yb"},description:{text:"cl",trackingParams:"aq"},actionButton:{buttonRenderer:{text:{simpleText:"xg"},navigationEndpoint:{clickTrackingParams:"wp",commandMetadata:{webCommandMetadata:{url:"uh",webPageType:"bs",
rootVe:44}},urlEndpoint:{url:"xq",target:"fi"}},trackingParams:"fo"}},startMs:5,trackingParams:"kh"}},adLayoutLoggingData:{serializedAdServingDataEntry:"ir"},elementId:"mp",inPlayerSlotId:"fh",inPlayerLayoutId:"bh"}},trackingParams:"ao",layoutId:"gc",associatedPlayerBytesLayoutId:"up"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"wj"}]},trackingParams:"zr"},headline:{text:"rq",isTemplated:82,trackingParams:"gr"},description:{text:"fj",isTemplated:57,trackingParams:"li"},actionButton:{buttonRenderer:{style:"mu",
text:{simpleText:"cg"},navigationEndpoint:{clickTrackingParams:"eb",commandMetadata:{webCommandMetadata:{url:"vn",webPageType:"nw",rootVe:96}},urlEndpoint:{url:"bs",target:"dr"}},trackingParams:"iq"}},durationMilliseconds:39,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:"mt"}},navigationEndpoint:{clickTrackingParams:"uz",loggingUrls:[{baseUrl:"rn"}],commandMetadata:{webCommandMetadata:{url:"cu",webPageType:"qs",rootVe:26}},urlEndpoint:{url:"ty",target:"he"}},trackingParams:"bw",backgroundImage:{thumbnail:{thumbnails:[{url:"pd"}]},
trackingParams:"wm"},adRendererCommands:{impressionCommand:{clickTrackingParams:"io",commandExecutorCommand:{commands:[{clickTrackingParams:"hd",loggingUrls:[{baseUrl:"hz"}],pingingEndpoint:{hack:81}}]}}},skipButton:{skipButtonRenderer:{message:{text:"db",isTemplated:42,trackingParams:"ga"},trackingParams:"pa"}},adLayoutLoggingData:{serializedAdServingDataEntry:"bt"},layoutId:"ec",inPlayerSlotId:"nl",inPlayerLayoutId:"qh",associatedPlayerBytesLayoutId:"qe"}}]}},adSlotLoggingData:{serializedSlotAdServingDataEntry:"rj"}}},
{adPlacementRenderer:{config:{adPlacementConfig:{kind:"zf",adTimeOffset:{offsetStartMilliseconds:"63",offsetEndMilliseconds:"83"},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"59",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:"LigQMVuP3nAx3LwQfSGhgYmqsEWANi"}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_START",adTimeOffset:{offsetStartMilliseconds:"330100",offsetEndMilliseconds:"594666"},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"0",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:"LigQMVuP3nAx3LwQfSGhgYmqsEWANi"}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:"65",offsetEndMilliseconds:"30"},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"51",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:"wg"}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:"56",offsetEndMilliseconds:"86"},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"25",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:"nh"}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_END",adTimeOffset:{offsetStartMilliseconds:"25",offsetEndMilliseconds:"13"},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"32",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:"ti"}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:"47",offsetEndMilliseconds:"84"},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:"go"}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:"14",offsetEndMilliseconds:"87"},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"79",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:"wi"}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:"34",offsetEndMilliseconds:"12"},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"27",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:"fp"}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:"66",offsetEndMilliseconds:"35"},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"98",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:"cn"}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:"59",offsetEndMilliseconds:"8"},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"26",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:"wz"}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:"84",offsetEndMilliseconds:"90"},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"92",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:"nl"}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:"50",offsetEndMilliseconds:"67"},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"96",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:"ov"}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:"13",offsetEndMilliseconds:"2"},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"52",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:"by"}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:"73",offsetEndMilliseconds:"64"},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"67",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:"uc"}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:"10",offsetEndMilliseconds:"zo"},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"22",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:"en"}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:"eg",isTemplated:93,trackingParams:"it"},description:{text:"ux",isTemplated:43,trackingParams:"sj"},actionButton:{buttonRenderer:{text:{simpleText:"de"},navigationEndpoint:{clickTrackingParams:"ex",commandMetadata:{webCommandMetadata:{url:"ue",webPageType:"ow",rootVe:77}},urlEndpoint:{url:"yh",target:"pg"}},
trackingParams:"xf"}},iconImage:{thumbnail:{thumbnails:[{url:"te",width:19,height:23}]},trackingParams:"lv"},bannerImage:{thumbnail:{thumbnails:[{url:"gj",width:38,height:67}]},trackingParams:"ow"},navigationEndpoint:{clickTrackingParams:"um",commandMetadata:{webCommandMetadata:{url:"fq",webPageType:"fd",rootVe:61}},urlEndpoint:{url:"gi",target:"tq"}},trackingParams:"ie",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"ng",size:"xv",isDisabled:53,icon:{iconType:"bq"},navigationEndpoint:{clickTrackingParams:"yl",
openPopupAction:{popup:{aboutThisAdRenderer:{url:(cM_.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="po",cM_),trackingParams:"hi"}},popupType:"sb"}},trackingParams:"ho",accessibilityData:{accessibilityData:{label:"kl"}}}},hoverText:{simpleText:"xd"},trackingParams:"dv"}},adVideoId:"je",impressionPings:[{baseUrl:"xj"}],adLayoutLoggingData:{serializedAdServingDataEntry:"dt"},associatedCompositePlayerBytesLayoutId:"te"}},adSlotLoggingData:{serializedSlotAdServingDataEntry:"vs"}}}],adSlots:[{adSlotRenderer:{adSlotMetadata:{slotId:"1234",
slotType:"SLOT_TYPE_PLAYER_BYTES",adSlotLoggingData:{serializedSlotAdServingDataEntry:"ob"},triggerEvent:"SLOT_TRIGGER_EVENT_BEFORE_CONTENT"},fulfillmentContent:{fulfilledLayout:{playerBytesAdLayoutRenderer:{adLayoutMetadata:{layoutId:"ot",layoutType:"xg",adLayoutLoggingData:{serializedAdServingDataEntry:"yk"}},renderingContent:{playerBytesSequentialLayoutRenderer:{sequentialLayouts:[{playerBytesAdLayoutRenderer:{adLayoutMetadata:{layoutId:"je",layoutType:"ww",adLayoutLoggingData:{serializedAdServingDataEntry:"ve"}},
renderingContent:{instreamVideoAdRenderer:{skipOffsetMilliseconds:94,pings:{impressionPings:[{baseUrl:"pl"},{baseUrl:"zs"}],errorPings:[{baseUrl:"hh"}],mutePings:[{baseUrl:"qh"}],unmutePings:[{baseUrl:"ey"}],pausePings:[{baseUrl:"pz"}],rewindPings:[{baseUrl:"bh"}],resumePings:[{baseUrl:"mw"}],skipPings:[{baseUrl:"si"}],closePings:[{baseUrl:"oh"}],progressPings:[{baseUrl:"ly",offsetMilliseconds:1},{baseUrl:"ac",offsetMilliseconds:80},{baseUrl:"sy",offsetMilliseconds:72}],fullscreenPings:[{baseUrl:"kw"}],
activeViewViewablePings:[{baseUrl:"oz"}],endFullscreenPings:[{baseUrl:"uc"}],activeViewMeasurablePings:[{baseUrl:"vu"}],abandonPings:[{baseUrl:"sf"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"qg"}],completePings:[{baseUrl:"jv"}],activeViewTracking:{trafficType:"sq"}},clickthroughEndpoint:{clickTrackingParams:"fn",commandMetadata:{webCommandMetadata:{url:"tf",webPageType:"ox",rootVe:73}},urlEndpoint:{url:"ny",target:"uc"}},csiParameters:[{key:"qe",value:"em"}],playerVars:"suppress_creator_endscreen=1&is_trueview_action",
elementId:"bq",trackingParams:"dr",legacyInfoCardVastExtension:"pa",sodarExtensionData:{siub:"mi",bgub:"hc",scs:"cw",bgp:"co"},externalVideoId:"ya",adLayoutLoggingData:{serializedAdServingDataEntry:"jj"},layoutId:"sc"}}}},{playerBytesAdLayoutRenderer:{adLayoutMetadata:{layoutId:"nr",layoutType:"kn",adLayoutLoggingData:{serializedAdServingDataEntry:"cf"}},renderingContent:{adActionInterstitialRenderer:{durationMilliseconds:52,trackingParams:"yq",abandonCommands:{commands:[{clickTrackingParams:"wi",
loggingUrls:[{baseUrl:"jb"}],pingingEndpoint:{hack:90}}]},skipPings:[{baseUrl:"av"}],layoutId:"nj"}}}},{playerBytesAdLayoutRenderer:{adLayoutMetadata:{layoutId:"nl",layoutType:"wm",adLayoutLoggingData:{serializedAdServingDataEntry:"zw"}},renderingContent:{instreamVideoAdRenderer:{skipOffsetMilliseconds:80,pings:{impressionPings:[{baseUrl:"ji"},{baseUrl:"ao"},{baseUrl:"cc"}],errorPings:[{baseUrl:"jt"}],mutePings:[{baseUrl:"mn"},{baseUrl:"ce"}],unmutePings:[{baseUrl:"rd"},{baseUrl:"lb"}],pausePings:[{baseUrl:"et"},
{baseUrl:"fv"}],rewindPings:[{baseUrl:"ft"}],resumePings:[{baseUrl:"qj"},{baseUrl:"ot"}],skipPings:[{baseUrl:"ky"},{baseUrl:"jb"}],closePings:[{baseUrl:"hw"}],progressPings:[{baseUrl:"vh",offsetMilliseconds:36},{baseUrl:"um",offsetMilliseconds:77},{baseUrl:"sq",offsetMilliseconds:19},{baseUrl:"ui",offsetMilliseconds:15},{baseUrl:"nl",offsetMilliseconds:86}],fullscreenPings:[{baseUrl:"rp"},{baseUrl:"cn"}],activeViewViewablePings:[{baseUrl:"ml"},{baseUrl:"kq"}],endFullscreenPings:[{baseUrl:"ym"}],activeViewMeasurablePings:[{baseUrl:"di"},
{baseUrl:"ol"}],abandonPings:[{baseUrl:"aj"},{baseUrl:"wo"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"ms"},{baseUrl:"uj"}],startPings:[{baseUrl:"gy"}],firstQuartilePings:[{baseUrl:"ly"}],secondQuartilePings:[{baseUrl:"sw"}],thirdQuartilePings:[{baseUrl:"gt"}],completePings:[{baseUrl:"hu"},{baseUrl:"gs"}],activeViewTracking:{trafficType:"mr"}},clickthroughEndpoint:{clickTrackingParams:"yq",commandMetadata:{webCommandMetadata:{url:"dn",webPageType:"ms",rootVe:54}},urlEndpoint:{url:"hs",
target:"jt"}},csiParameters:[{key:"zn",value:"eq"}],playerVars:"bi",elementId:"gr",trackingParams:"qc",legacyInfoCardVastExtension:"xv",sodarExtensionData:{siub:"ul",bgub:"yr",scs:"ui",bgp:"vy"},externalVideoId:"fp",adLayoutLoggingData:{serializedAdServingDataEntry:"gt"},layoutId:"bh"}}}},{playerBytesAdLayoutRenderer:{adLayoutMetadata:{layoutId:"xy",layoutType:"bf",adLayoutLoggingData:{serializedAdServingDataEntry:"rj"}},renderingContent:{adActionInterstitialRenderer:{durationMilliseconds:95,trackingParams:"ee",
abandonCommands:{commands:[{clickTrackingParams:"mi",loggingUrls:[{baseUrl:"yi"},{baseUrl:"tm"}],pingingEndpoint:{hack:47}}]},skipPings:[{baseUrl:"uk"},{baseUrl:"yj"}],layoutId:"ft"}}}}]}},layoutExitNormalTriggers:[{id:"hq",onLayoutSelfExitRequestedTrigger:{triggeringLayoutId:"hv"}}],layoutExitSkipTriggers:[{id:"up",skipRequestedTrigger:{triggeringLayoutId:"nm"}},{id:"yl",skipRequestedTrigger:{triggeringLayoutId:"gh"}},{id:"zd",skipRequestedTrigger:{triggeringLayoutId:"mo"}},{id:"bc",skipRequestedTrigger:{triggeringLayoutId:"jj"}}],
layoutExitMuteTriggers:[{id:"ql",skipRequestedTrigger:{triggeringLayoutId:"hr"}},{id:"rc",skipRequestedTrigger:{triggeringLayoutId:"ln"}}]}}},slotEntryTrigger:{id:"lc",beforeContentVideoIdStartedTrigger:{}},slotFulfillmentTriggers:[{id:"xq",slotIdEnteredTrigger:{triggeringSlotId:"da"}}],slotExpirationTriggers:[{id:"vv",slotIdExitedTrigger:{triggeringSlotId:"re"}},{id:"jg",onNewPlaybackAfterContentVideoIdTrigger:{}}]}}],adBreakHeartbeatParams:"mw",frameworkUpdates:{entityBatchUpdate:{mutations:[{entityKey:"pz",
type:"az",payload:{offlineabilityEntity:{key:"ql",command:{innertubeCommand:{clickTrackingParams:"nz",ypcGetOfflineUpsellEndpoint:{params:"pw"}}},addToOfflineButtonState:"os",contentCheckOk:!1,racyCheckOk:!1,loggingDirectives:{trackingParams:"xp",visibility:{types:"1"},enableDisplayloggerExperiment:!0}}}}],timestamp:{seconds:"19",nanos:12}}}};var GSY=[{jsonRepresentation:'{"adPlacements":true,"playerAds":true,"playerResponse":{"adPlacements":true,"playerAds":true,"playerConfig": {"audioConfig": {}, "streamSelectionConfig": {}, "webPlayerConfig": {"webPlayerActionsPorting": {}}}},"playerConfig": {"audioConfig": {}, "streamSelectionConfig": {}, "webPlayerConfig": {"webPlayerActionsPorting": {}}}}',objectRepresentation:{adPlacements:!0,playerAds:!0,playerResponse:{adPlacements:!0,playerAds:!0,playerConfig:{audioConfig:{},streamSelectionConfig:{},
webPlayerConfig:{webPlayerActionsPorting:{}}}},playerConfig:{audioConfig:{},streamSelectionConfig:{},webPlayerConfig:{webPlayerActionsPorting:{}}}}},{jsonRepresentation:'[{"adPlacements":true,"playerAds":true,"playerResponse":{"adPlacements":true,"playerAds":true}}]',objectRepresentation:[{adPlacements:!0,playerAds:!0,playerResponse:{adPlacements:!0,playerAds:!0}}]},{jsonRepresentation:'{"responseContext":{"serviceTrackingParams":[{"service":"GFEEDBACK","params":[{"key":"kc","value":"66"},{"key":"cw","value":"st"},{"key":"zb","value":"xz"},{"key":"zl","value":"16"},{"key":"pf","value":"sy"}]},{"service":"bh","params":[{"key":"ip","value":"54"},{"key":"tb","value":"dv"},{"key":"pi","value":"pn"},{"key":"fg","value":"35"},{"key":"wm","value":"vo"}]},{"service":"fp","params":[{"key":"hw","value":"91"}]},{"service":"rk","params":[{"key":"pe","value":"sf"},{"key":"rv","value":"jn"},{"key":"aw","value":"pw"}]}],"maxAgeSeconds":87,"mainAppWebResponseContext":{"loggedOut":43,"trackingParam":"dd","datasyncId":"xp"},"webResponseContextExtensionData":{"hasDecorated":75}},"playabilityStatus":{"status":"by","playableInEmbed":2,"miniplayer":{"miniplayerRenderer":{"playbackMode":"tj"}},"offlineability":{"buttonRenderer":{"serviceEndpoint":{"clickTrackingParams":"pz","ypcGetOfflineUpsellEndpoint":{"params":"xm"}},"trackingParams":"pq"}},"contextParams":"lu"},"streamingData":{"expiresInSeconds":"53","formats":[{"itag":80,"url":"https://rr3---sn-n4v7sns7.googlevideo.com/videoplayback?expire=1697267654&source=youtube&requiressl=yes","mimeType":"video/webm; codecs=\\"vp9\\"","bitrate":88,"width":96,"height":65,"lastModified":"1665263132187531","contentLength":"17","quality":"rc","fps":8,"qualityLabel":"ab","projectionType":"by","averageBitrate":50,"audioQuality":"th","approxDurationMs":"86","audioSampleRate":"88","audioChannels":34},{"itag":95,"url":"hs","mimeType":"nm","bitrate":56,"width":13,"height":14,"lastModified":"10","quality":"fu","fps":54,"qualityLabel":"yj","projectionType":"wu","audioQuality":"tu","approxDurationMs":"51","audioSampleRate":"87","audioChannels":44}],"adaptiveFormats":[{"itag":50,"url":"fu","mimeType":"uz","bitrate":80,"width":80,"height":85,"initRange":{"start":"16","end":"71"},"indexRange":{"start":"1","end":"26"},"lastModified":"70","contentLength":"66","quality":"cx","fps":61,"qualityLabel":"xt","projectionType":"pe","averageBitrate":68,"approxDurationMs":"1"},{"itag":77,"url":"rj","mimeType":"lh","bitrate":16,"width":17,"height":47,"initRange":{"start":"51","end":"44"},"indexRange":{"start":"87","end":"61"},"lastModified":"13","contentLength":"21","quality":"ie","fps":23,"qualityLabel":"ig","projectionType":"bl","averageBitrate":16,"colorInfo":{"primaries":"et","transferCharacteristics":"zu","matrixCoefficients":"od"},"approxDurationMs":"59"},{"itag":7,"url":"fc","mimeType":"gr","bitrate":71,"width":11,"height":3,"initRange":{"start":"100","end":"7"},"indexRange":{"start":"36","end":"98"},"lastModified":"88","contentLength":"77","quality":"rb","fps":46,"qualityLabel":"gq","projectionType":"ld","averageBitrate":99,"colorInfo":{"primaries":"xd","transferCharacteristics":"uu","matrixCoefficients":"zc"},"approxDurationMs":"44"},{"itag":10,"url":"kl","mimeType":"wb","bitrate":51,"width":69,"height":3,"initRange":{"start":"92","end":"79"},"indexRange":{"start":"42","end":"72"},"lastModified":"99","contentLength":"6","quality":"ee","fps":40,"qualityLabel":"em","projectionType":"wz","averageBitrate":48,"approxDurationMs":"86"},{"itag":44,"url":"hp","mimeType":"kq","bitrate":84,"width":53,"height":22,"initRange":{"start":"48","end":"51"},"indexRange":{"start":"54","end":"44"},"lastModified":"25","contentLength":"47","quality":"xy","fps":11,"qualityLabel":"zl","projectionType":"za","averageBitrate":95,"colorInfo":{"primaries":"ot","transferCharacteristics":"av","matrixCoefficients":"ow"},"approxDurationMs":"85"},{"itag":20,"url":"di","mimeType":"nc","bitrate":15,"width":19,"height":92,"initRange":{"start":"82","end":"58"},"indexRange":{"start":"80","end":"37"},"lastModified":"46","contentLength":"40","quality":"wo","fps":44,"qualityLabel":"pt","projectionType":"bg","averageBitrate":3,"colorInfo":{"primaries":"wq","transferCharacteristics":"is","matrixCoefficients":"ou"},"approxDurationMs":"47"},{"itag":44,"url":"oe","mimeType":"mh","bitrate":37,"width":43,"height":24,"initRange":{"start":"29","end":"91"},"indexRange":{"start":"97","end":"97"},"lastModified":"52","contentLength":"43","quality":"cr","fps":44,"qualityLabel":"hc","projectionType":"cr","averageBitrate":12,"approxDurationMs":"97"},{"itag":32,"url":"gq","mimeType":"sh","bitrate":42,"width":32,"height":13,"initRange":{"start":"71","end":"87"},"indexRange":{"start":"70","end":"4"},"lastModified":"67","contentLength":"16","quality":"sb","fps":66,"qualityLabel":"mv","projectionType":"kk","averageBitrate":51,"colorInfo":{"primaries":"pk","transferCharacteristics":"ea","matrixCoefficients":"cq"},"approxDurationMs":"70"},{"itag":71,"url":"zt","mimeType":"bl","bitrate":12,"width":68,"height":12,"initRange":{"start":"63","end":"2"},"indexRange":{"start":"28","end":"68"},"lastModified":"33","contentLength":"0","quality":"dh","fps":6,"qualityLabel":"jv","projectionType":"sy","averageBitrate":75,"colorInfo":{"primaries":"us","transferCharacteristics":"ka","matrixCoefficients":"xw"},"approxDurationMs":"16"},{"itag":98,"url":"vl","mimeType":"lg","bitrate":88,"width":23,"height":83,"initRange":{"start":"49","end":"34"},"indexRange":{"start":"43","end":"90"},"lastModified":"84","contentLength":"77","quality":"xu","fps":50,"qualityLabel":"jz","projectionType":"om","averageBitrate":16,"highReplication":95,"approxDurationMs":"46"},{"itag":85,"url":"ri","mimeType":"dh","bitrate":77,"width":86,"height":54,"initRange":{"start":"40","end":"98"},"indexRange":{"start":"15","end":"85"},"lastModified":"25","contentLength":"53","quality":"rq","fps":62,"qualityLabel":"nx","projectionType":"wg","averageBitrate":35,"colorInfo":{"primaries":"oa","transferCharacteristics":"kb","matrixCoefficients":"kk"},"approxDurationMs":"26"},{"itag":10,"url":"zz","mimeType":"lq","bitrate":55,"width":89,"height":43,"initRange":{"start":"94","end":"98"},"indexRange":{"start":"73","end":"51"},"lastModified":"3","contentLength":"36","quality":"yo","fps":5,"qualityLabel":"we","projectionType":"ve","averageBitrate":83,"colorInfo":{"primaries":"yu","transferCharacteristics":"fu","matrixCoefficients":"ox"},"approxDurationMs":"11"},{"itag":62,"url":"hv","mimeType":"th","bitrate":76,"width":28,"height":79,"initRange":{"start":"97","end":"100"},"indexRange":{"start":"58","end":"63"},"lastModified":"53","contentLength":"22","quality":"ou","fps":7,"qualityLabel":"cm","projectionType":"xv","averageBitrate":35,"approxDurationMs":"98"},{"itag":91,"url":"vr","mimeType":"wo","bitrate":41,"width":4,"height":79,"initRange":{"start":"80","end":"83"},"indexRange":{"start":"14","end":"58"},"lastModified":"50","contentLength":"38","quality":"ic","fps":64,"qualityLabel":"sq","projectionType":"du","averageBitrate":61,"colorInfo":{"primaries":"ok","transferCharacteristics":"ud","matrixCoefficients":"ob"},"approxDurationMs":"73"},{"itag":48,"url":"lq","mimeType":"zl","bitrate":4,"width":16,"height":65,"initRange":{"start":"93","end":"50"},"indexRange":{"start":"52","end":"44"},"lastModified":"74","contentLength":"86","quality":"mi","fps":43,"qualityLabel":"rz","projectionType":"ji","averageBitrate":61,"colorInfo":{"primaries":"qo","transferCharacteristics":"fk","matrixCoefficients":"jy"},"approxDurationMs":"70"},{"itag":34,"url":"cr","mimeType":"la","bitrate":53,"width":29,"height":97,"initRange":{"start":"89","end":"45"},"indexRange":{"start":"93","end":"45"},"lastModified":"52","contentLength":"74","quality":"xn","fps":60,"qualityLabel":"xs","projectionType":"lf","averageBitrate":1,"approxDurationMs":"18"},{"itag":67,"url":"mr","mimeType":"cs","bitrate":79,"width":9,"height":85,"initRange":{"start":"56","end":"96"},"indexRange":{"start":"71","end":"84"},"lastModified":"78","contentLength":"80","quality":"ld","fps":2,"qualityLabel":"no","projectionType":"uq","averageBitrate":35,"colorInfo":{"primaries":"mj","transferCharacteristics":"ry","matrixCoefficients":"cc"},"approxDurationMs":"43"},{"itag":57,"url":"fi","mimeType":"to","bitrate":80,"width":81,"height":29,"initRange":{"start":"6","end":"96"},"indexRange":{"start":"73","end":"48"},"lastModified":"32","contentLength":"11","quality":"ck","fps":82,"qualityLabel":"fo","projectionType":"px","averageBitrate":95,"colorInfo":{"primaries":"az","transferCharacteristics":"mq","matrixCoefficients":"oc"},"approxDurationMs":"44"},{"itag":52,"url":"ea","mimeType":"xm","bitrate":18,"initRange":{"start":"15","end":"16"},"indexRange":{"start":"4","end":"33"},"lastModified":"65","contentLength":"67","quality":"es","projectionType":"mp","averageBitrate":52,"highReplication":82,"audioQuality":"za","approxDurationMs":"24","audioSampleRate":"1","audioChannels":92,"loudnessDb":0.9787435365879406},{"itag":37,"url":"kk","mimeType":"xg","bitrate":78,"initRange":{"start":"38","end":"94"},"indexRange":{"start":"27","end":"17"},"lastModified":"61","contentLength":"2","quality":"nh","projectionType":"ar","averageBitrate":69,"audioQuality":"la","approxDurationMs":"95","audioSampleRate":"66","audioChannels":50,"loudnessDb":0.6461265012758731},{"itag":45,"url":"oc","mimeType":"nm","bitrate":12,"initRange":{"start":"21","end":"45"},"indexRange":{"start":"21","end":"13"},"lastModified":"45","contentLength":"85","quality":"vs","projectionType":"xp","averageBitrate":32,"audioQuality":"tv","approxDurationMs":"1","audioSampleRate":"99","audioChannels":42,"loudnessDb":0.39295968942278037},{"itag":37,"url":"zf","mimeType":"be","bitrate":29,"initRange":{"start":"27","end":"87"},"indexRange":{"start":"81","end":"20"},"lastModified":"6","contentLength":"33","quality":"pe","projectionType":"pb","averageBitrate":100,"audioQuality":"zi","approxDurationMs":"70","audioSampleRate":"32","audioChannels":68,"loudnessDb":0.2781731101164002}]},"playerAds":[{"playerLegacyDesktopWatchAdsRenderer":{"playerAdParams":{"showContentThumbnail":true,"enabledEngageTypes":"3,6,4,5"},"gutParams":{"tag":"\\\\4061\\\\ytpwmpu"},"showCompanion":true,"showInstream":true,"useGut":true}}],"playbackTracking":{"videostatsPlaybackUrl":{"baseUrl":"bj"},"videostatsDelayplayUrl":{"baseUrl":"vx"},"videostatsWatchtimeUrl":{"baseUrl":"px"},"ptrackingUrl":{"baseUrl":"tg"},"qoeUrl":{"baseUrl":"wx"},"atrUrl":{"baseUrl":"xz","elapsedMediaTimeSeconds":45},"videostatsScheduledFlushWalltimeSeconds":[99,32,39],"videostatsDefaultFlushIntervalSeconds":3,"youtubeRemarketingUrl":{"baseUrl":"mb","elapsedMediaTimeSeconds":63},"googleRemarketingUrl":{"baseUrl":"yn","elapsedMediaTimeSeconds":83}},"captions":{"playerCaptionsTracklistRenderer":{"captionTracks":[{"baseUrl":"ew","name":{"simpleText":"ez"},"vssId":"fj","languageCode":"wd","kind":"ez","isTranslatable":21}],"audioTracks":[{"captionTrackIndices":[87]}],"translationLanguages":[{"languageCode":"xu","languageName":{"simpleText":"fw"}},{"languageCode":"zl","languageName":{"simpleText":"xc"}},{"languageCode":"jr","languageName":{"simpleText":"md"}},{"languageCode":"sc","languageName":{"simpleText":"wf"}},{"languageCode":"nj","languageName":{"simpleText":"xn"}},{"languageCode":"of","languageName":{"simpleText":"av"}},{"languageCode":"tv","languageName":{"simpleText":"ok"}},{"languageCode":"nu","languageName":{"simpleText":"ry"}},{"languageCode":"zy","languageName":{"simpleText":"nb"}},{"languageCode":"pt","languageName":{"simpleText":"eq"}},{"languageCode":"vr","languageName":{"simpleText":"cc"}},{"languageCode":"wh","languageName":{"simpleText":"hd"}},{"languageCode":"hp","languageName":{"simpleText":"ds"}},{"languageCode":"ka","languageName":{"simpleText":"up"}},{"languageCode":"sw","languageName":{"simpleText":"zp"}},{"languageCode":"rh","languageName":{"simpleText":"eq"}},{"languageCode":"bq","languageName":{"simpleText":"at"}},{"languageCode":"hu","languageName":{"simpleText":"fg"}},{"languageCode":"ai","languageName":{"simpleText":"iy"}},{"languageCode":"rj","languageName":{"simpleText":"oz"}},{"languageCode":"sq","languageName":{"simpleText":"fe"}},{"languageCode":"tn","languageName":{"simpleText":"vk"}},{"languageCode":"jr","languageName":{"simpleText":"jg"}},{"languageCode":"vc","languageName":{"simpleText":"hv"}},{"languageCode":"yn","languageName":{"simpleText":"ky"}},{"languageCode":"pa","languageName":{"simpleText":"rw"}},{"languageCode":"lr","languageName":{"simpleText":"kv"}},{"languageCode":"ud","languageName":{"simpleText":"fn"}},{"languageCode":"hq","languageName":{"simpleText":"io"}},{"languageCode":"rp","languageName":{"simpleText":"qx"}},{"languageCode":"xf","languageName":{"simpleText":"sm"}},{"languageCode":"fs","languageName":{"simpleText":"ty"}},{"languageCode":"so","languageName":{"simpleText":"xl"}},{"languageCode":"fk","languageName":{"simpleText":"ff"}},{"languageCode":"fw","languageName":{"simpleText":"wz"}},{"languageCode":"rn","languageName":{"simpleText":"zw"}},{"languageCode":"wq","languageName":{"simpleText":"yt"}},{"languageCode":"oh","languageName":{"simpleText":"oo"}},{"languageCode":"ts","languageName":{"simpleText":"jt"}},{"languageCode":"xy","languageName":{"simpleText":"ga"}},{"languageCode":"jy","languageName":{"simpleText":"sx"}},{"languageCode":"lw","languageName":{"simpleText":"cf"}},{"languageCode":"fc","languageName":{"simpleText":"qr"}},{"languageCode":"ji","languageName":{"simpleText":"cc"}},{"languageCode":"qs","languageName":{"simpleText":"pi"}},{"languageCode":"vx","languageName":{"simpleText":"hk"}},{"languageCode":"jt","languageName":{"simpleText":"eh"}},{"languageCode":"fb","languageName":{"simpleText":"iu"}},{"languageCode":"mf","languageName":{"simpleText":"st"}},{"languageCode":"en","languageName":{"simpleText":"vr"}},{"languageCode":"go","languageName":{"simpleText":"kp"}},{"languageCode":"sc","languageName":{"simpleText":"rk"}},{"languageCode":"bx","languageName":{"simpleText":"ci"}},{"languageCode":"pu","languageName":{"simpleText":"qj"}},{"languageCode":"fa","languageName":{"simpleText":"ht"}},{"languageCode":"bw","languageName":{"simpleText":"af"}},{"languageCode":"rr","languageName":{"simpleText":"jt"}},{"languageCode":"ef","languageName":{"simpleText":"yy"}},{"languageCode":"bn","languageName":{"simpleText":"wu"}},{"languageCode":"ov","languageName":{"simpleText":"ae"}},{"languageCode":"sm","languageName":{"simpleText":"hi"}},{"languageCode":"tq","languageName":{"simpleText":"ie"}},{"languageCode":"fn","languageName":{"simpleText":"et"}},{"languageCode":"jw","languageName":{"simpleText":"bu"}},{"languageCode":"iz","languageName":{"simpleText":"gc"}},{"languageCode":"bk","languageName":{"simpleText":"jh"}},{"languageCode":"vw","languageName":{"simpleText":"fq"}},{"languageCode":"xt","languageName":{"simpleText":"or"}},{"languageCode":"kq","languageName":{"simpleText":"ch"}},{"languageCode":"pa","languageName":{"simpleText":"cs"}},{"languageCode":"ef","languageName":{"simpleText":"eq"}},{"languageCode":"mk","languageName":{"simpleText":"ig"}},{"languageCode":"me","languageName":{"simpleText":"pv"}},{"languageCode":"ll","languageName":{"simpleText":"nz"}},{"languageCode":"yd","languageName":{"simpleText":"pu"}},{"languageCode":"dj","languageName":{"simpleText":"vx"}},{"languageCode":"xc","languageName":{"simpleText":"ca"}},{"languageCode":"wb","languageName":{"simpleText":"il"}},{"languageCode":"ww","languageName":{"simpleText":"jf"}},{"languageCode":"xi","languageName":{"simpleText":"ba"}},{"languageCode":"ae","languageName":{"simpleText":"hx"}},{"languageCode":"uj","languageName":{"simpleText":"xu"}},{"languageCode":"hq","languageName":{"simpleText":"gp"}},{"languageCode":"we","languageName":{"simpleText":"pk"}},{"languageCode":"kt","languageName":{"simpleText":"ek"}},{"languageCode":"hy","languageName":{"simpleText":"ab"}},{"languageCode":"hm","languageName":{"simpleText":"nu"}},{"languageCode":"uw","languageName":{"simpleText":"rx"}},{"languageCode":"or","languageName":{"simpleText":"nf"}},{"languageCode":"dh","languageName":{"simpleText":"zn"}},{"languageCode":"kb","languageName":{"simpleText":"js"}},{"languageCode":"vg","languageName":{"simpleText":"xe"}},{"languageCode":"dl","languageName":{"simpleText":"so"}},{"languageCode":"lz","languageName":{"simpleText":"hb"}},{"languageCode":"ny","languageName":{"simpleText":"xr"}},{"languageCode":"ag","languageName":{"simpleText":"us"}},{"languageCode":"zr","languageName":{"simpleText":"ae"}},{"languageCode":"yq","languageName":{"simpleText":"yc"}},{"languageCode":"up","languageName":{"simpleText":"dc"}},{"languageCode":"zn","languageName":{"simpleText":"jw"}},{"languageCode":"uh","languageName":{"simpleText":"ms"}},{"languageCode":"mt","languageName":{"simpleText":"vf"}},{"languageCode":"lt","languageName":{"simpleText":"ln"}},{"languageCode":"vf","languageName":{"simpleText":"rd"}},{"languageCode":"my","languageName":{"simpleText":"rk"}},{"languageCode":"ei","languageName":{"simpleText":"ul"}},{"languageCode":"dj","languageName":{"simpleText":"cz"}},{"languageCode":"kb","languageName":{"simpleText":"hp"}},{"languageCode":"jj","languageName":{"simpleText":"zf"}},{"languageCode":"ew","languageName":{"simpleText":"ff"}},{"languageCode":"jo","languageName":{"simpleText":"iz"}},{"languageCode":"ja","languageName":{"simpleText":"uz"}},{"languageCode":"yd","languageName":{"simpleText":"or"}},{"languageCode":"tl","languageName":{"simpleText":"tw"}},{"languageCode":"mw","languageName":{"simpleText":"th"}},{"languageCode":"pq","languageName":{"simpleText":"zp"}},{"languageCode":"pq","languageName":{"simpleText":"pk"}},{"languageCode":"ef","languageName":{"simpleText":"fj"}},{"languageCode":"qq","languageName":{"simpleText":"vu"}},{"languageCode":"pj","languageName":{"simpleText":"kp"}},{"languageCode":"ab","languageName":{"simpleText":"xw"}},{"languageCode":"re","languageName":{"simpleText":"ln"}},{"languageCode":"ht","languageName":{"simpleText":"wo"}},{"languageCode":"ju","languageName":{"simpleText":"wb"}},{"languageCode":"yq","languageName":{"simpleText":"xv"}}],"defaultAudioTrackIndex":70}},"videoDetails":{"videoId":"ux","title":"jb","lengthSeconds":"90","keywords":["th","ts","yg","gy","ih","iq","zj"],"channelId":"pg","isOwnerViewing":6,"shortDescription":"ts","isCrawlable":62,"thumbnail":{"thumbnails":[{"url":"vx","width":8,"height":58},{"url":"bp","width":44,"height":79},{"url":"oh","width":47,"height":66},{"url":"hm","width":34,"height":55},{"url":"vr","width":0,"height":20}]},"allowRatings":24,"viewCount":"49","author":"xr","isPrivate":70,"isUnpluggedCorpus":66,"isLiveContent":99},"annotations":[{"playerAnnotationsExpandedRenderer":{"featuredChannel":{"startTimeMs":"96","endTimeMs":"46","watermark":{"thumbnails":[{"url":"li","width":91,"height":28}]},"trackingParams":"an","navigationEndpoint":{"clickTrackingParams":"mg","commandMetadata":{"webCommandMetadata":{"url":"rd","webPageType":"nc","rootVe":69,"apiUrl":"/youtubei/v1/browse"}},"browseEndpoint":{"browseId":"qg"}},"channelName":"ei","subscribeButton":{"subscribeButtonRenderer":{"buttonText":{"runs":[{"text":"pz"}]},"subscribed":44,"enabled":33,"type":"ue","channelId":"ki","showPreferences":71,"subscribedButtonText":{"runs":[{"text":"lk"}]},"unsubscribedButtonText":{"runs":[{"text":"jn"}]},"trackingParams":"oj","unsubscribeButtonText":{"runs":[{"text":"ad"}]},"serviceEndpoints":[{"clickTrackingParams":"wm","commandMetadata":{"webCommandMetadata":{"sendPost":4,"apiUrl":"ky"}},"subscribeEndpoint":{"channelIds":["zt"],"params":"at"}},{"clickTrackingParams":"jg","commandMetadata":{"webCommandMetadata":{"sendPost":28}},"signalServiceEndpoint":{"signal":"ok","actions":[{"clickTrackingParams":"lt","openPopupAction":{"popup":{"confirmDialogRenderer":{"trackingParams":"po","dialogMessages":[{"runs":[{"text":"ou"},{"text":"jt"},{"text":"zz"}]}],"confirmButton":{"buttonRenderer":{"style":"mm","size":"oi","isDisabled":43,"text":{"runs":[{"text":"kc"}]},"serviceEndpoint":{"clickTrackingParams":"gk","commandMetadata":{"webCommandMetadata":{"sendPost":18,"apiUrl":"kc"}},"unsubscribeEndpoint":{"channelIds":["cm"],"params":"ar"}},"accessibility":{"label":"iy"},"trackingParams":"gs"}},"cancelButton":{"buttonRenderer":{"style":"jb","size":"pe","isDisabled":69,"text":{"runs":[{"text":"uv"}]},"accessibility":{"label":"qu"},"trackingParams":"pe"}},"primaryIsCancel":48}},"popupType":"ma"}}]}}],"subscribeAccessibility":{"accessibilityData":{"label":"vh"}},"unsubscribeAccessibility":{"accessibilityData":{"label":"lg"}},"signInEndpoint":{"clickTrackingParams":"eu","commandMetadata":{"webCommandMetadata":{"url":"na"}}}}}},"allowSwipeDismiss":55,"annotationId":"jd"}}],"playerConfig":{"audioConfig":{"loudnessDb":0.9620880668073215,"perceptualLoudnessDb":0.541474004793957,"enablePerFormatLoudness":31},"streamSelectionConfig":{"maxBitrate":"61"},"mediaCommonConfig":{"dynamicReadaheadConfig":{"maxReadAheadMediaTimeMs":100,"minReadAheadMediaTimeMs":21,"readAheadGrowthRateMs":29}},"webPlayerConfig":{"useCobaltTvosDash":55,"webPlayerActionsPorting":{"getSharePanelCommand":{"clickTrackingParams":"of","commandMetadata":{"webCommandMetadata":{"sendPost":31,"apiUrl":"xl"}},"webPlayerShareEntityServiceEndpoint":{"serializedShareEntity":"tr"}},"subscribeCommand":{"clickTrackingParams":"fs","commandMetadata":{"webCommandMetadata":{"sendPost":13,"apiUrl":"xp"}},"subscribeEndpoint":{"channelIds":["qs"],"params":"oa"}},"unsubscribeCommand":{"clickTrackingParams":"ls","commandMetadata":{"webCommandMetadata":{"sendPost":91,"apiUrl":"wc"}},"unsubscribeEndpoint":{"channelIds":["fo"],"params":"vt"}},"addToWatchLaterCommand":{"clickTrackingParams":"ua","commandMetadata":{"webCommandMetadata":{"sendPost":18,"apiUrl":"iu"}},"playlistEditEndpoint":{"playlistId":"rv","actions":[{"addedVideoId":"iw","action":"rd"}]}},"removeFromWatchLaterCommand":{"clickTrackingParams":"un","commandMetadata":{"webCommandMetadata":{"sendPost":20,"apiUrl":"bl"}},"playlistEditEndpoint":{"playlistId":"zg","actions":[{"action":"ya","removedVideoId":"dk"}]}}},"gatewayExperimentGroup":"vb"}},"storyboards":{"playerStoryboardSpecRenderer":{"spec":"aj","recommendedLevel":87}},"microformat":{"playerMicroformatRenderer":{"thumbnail":{"thumbnails":[{"url":"mm","width":57,"height":94}]},"embed":{"iframeUrl":"bd","width":51,"height":73},"title":{"simpleText":"sg"},"description":{"simpleText":"yv"},"lengthSeconds":"18","ownerProfileUrl":"bg","externalChannelId":"eg","isFamilySafe":88,"availableCountries":["hn","sd","lt","tx","nw","mq","iz","aj","vi","xa","ec","iv","rj","vb","ro","po","mv","mx","cn","ld","tn","ay","gv","bs","vf","da","ss","km","uo","mg","wv","md","lo","nc","vh","li","jh","lj","qq","ci","ob","zy","pu","bl","jm","ge","tt","ov","ue","vp","ka","nh","uc","gb","rs","gu","hm","uv","nq","ga","qu","hr","pj","zq","rh","nn","yv","or","zg","ai","qj","cv","vg","hr","zm","al","mj","fz","yx","st","tt","ih","vm","wq","gx","wi","ys","ug","vb","uh","rf","ry","ba","xu","ce","eq","bx","he","jm","ie","nb","cd","qz","no","yq","qe","jy","wd","pm","nb","hk","em","im","iv","ld","gz","fe","ut","md","gw","sf","yz","yp","xr","gm","uo","kg","yo","wv","da","wt","ry","it","gz","mm","ho","mf","lq","tu","im","lu","gm","pa","ny","gu","ds","yx","yh","jk","qb","jv","mp","bi","nr","mc","bg","ym","zt","sh","kd","gj","dp","qw","eh","no","pj","nq","dy","gt","cm","pg","ce","jt","xv","tf","ue","ke","hs","xh","tc","ad","yg","uh","cd","zc","rj","kq","sp","vv","xt","bo","am","kg","kx","xb","fr","il","qi","ap","pe","tg","im","cs","vy","zu","cq","bu","og","tf","ze","zj","um","vd","ot","al","zl","um","jv","ss","md","xm","nv","id","es","jf","as","zb","ms","uv","jh","xz","em","uv","bk","zx","wp","ay","ub","pa","rf","yi","zm","em","pu","xs"],"isUnlisted":24,"hasYpcMetadata":38,"viewCount":"6","category":"qh","publishDate":"eb","ownerChannelName":"mf","uploadDate":"ax"}},"cards":{"cardCollectionRenderer":{"cards":[{"cardRenderer":{"teaser":{"simpleCardTeaserRenderer":{"message":{"simpleText":"ha"},"trackingParams":"ra","prominent":9,"logVisibilityUpdates":88,"onTapCommand":{"clickTrackingParams":"dy","changeEngagementPanelVisibilityAction":{"targetId":"qc","visibility":"mh"}}}},"cueRanges":[{"startCardActiveMs":"41","endCardActiveMs":"81","teaserDurationMs":"31","iconAfterTeaserMs":"65"}],"trackingParams":"sn"}}],"headerText":{"simpleText":"mi"},"icon":{"infoCardIconRenderer":{"trackingParams":"tq"}},"closeButton":{"infoCardIconRenderer":{"trackingParams":"nz"}},"trackingParams":"ss","allowTeaserDismiss":55,"logIconVisibilityUpdates":49}},"trackingParams":"lt","attestation":{"playerAttestationRenderer":{"challenge":"rg","botguardData":{"program":"vk","interpreterSafeUrl":{"privateDoNotAccessOrElseTrustedResourceUrlWrappedValue":"ap"},"serverEnvironment":83}}},"videoQualityPromoSupportedRenderers":{"videoQualityPromoRenderer":{"triggerCriteria":{"connectionWhitelist":["vs"],"joinLatencySeconds":85,"rebufferTimeSeconds":89,"watchTimeWindowSeconds":21,"refractorySeconds":41},"text":{"runs":[{"text":"it"},{"text":"qt","bold":60}]},"endpoint":{"clickTrackingParams":"lw","commandMetadata":{"webCommandMetadata":{"url":"ih","webPageType":"xa","rootVe":73}},"urlEndpoint":{"url":"ms","target":"tj"}},"trackingParams":"vd","snackbar":{"notificationActionRenderer":{"responseText":{"runs":[{"text":"pp"}]},"actionButton":{"buttonRenderer":{"text":{"runs":[{"text":"yw"}]},"navigationEndpoint":{"clickTrackingParams":"sq","commandMetadata":{"webCommandMetadata":{"url":"wp","webPageType":"zn","rootVe":21}},"urlEndpoint":{"url":"ju","target":"dy"}},"trackingParams":"zj"}},"trackingParams":"nh"}}}},"messages":[{"mealbarPromoRenderer":{"icon":{"thumbnails":[{"url":"ek","width":71,"height":69}]},"messageTexts":[{"runs":[{"text":"ew"}]}],"actionButton":{"buttonRenderer":{"style":"gz","size":"tz","text":{"runs":[{"text":"ga"}]},"trackingParams":"qr","command":{"clickTrackingParams":"wk","commandExecutorCommand":{"commands":[{"clickTrackingParams":"dw","commandMetadata":{"webCommandMetadata":{"url":"po","webPageType":"fl","rootVe":70,"apiUrl":"ot"}},"browseEndpoint":{"browseId":"pl","params":"zo"}},{"commandMetadata":{"webCommandMetadata":{"sendPost":10,"apiUrl":"rv"}},"feedbackEndpoint":{"feedbackToken":"xi","uiActions":{"hideEnclosingContainer":25}}}]}}}},"dismissButton":{"buttonRenderer":{"style":"ol","size":"og","text":{"runs":[{"text":"yv"}]},"trackingParams":"ch","command":{"clickTrackingParams":"uu","commandExecutorCommand":{"commands":[{"clickTrackingParams":"ig","commandMetadata":{"webCommandMetadata":{"sendPost":71,"apiUrl":"en"}},"feedbackEndpoint":{"feedbackToken":"wh","uiActions":{"hideEnclosingContainer":45}}}]}}}},"triggerCondition":"pb","style":"uq","trackingParams":"rp","impressionEndpoints":[{"clickTrackingParams":"xb","commandMetadata":{"webCommandMetadata":{"sendPost":73,"apiUrl":"wl"}},"feedbackEndpoint":{"feedbackToken":"wf","uiActions":{"hideEnclosingContainer":95}}}],"isVisible":17,"messageTitle":{"runs":[{"text":"ir"}]},"enableSharedFeatureForImpressionHandling":21}}],"adPlacements":[{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"AD_PLACEMENT_KIND_MILLISECONDS","adTimeOffset":{"offsetStartMilliseconds":"7","offsetEndMilliseconds":"39"},"hideCueRangeMarker":true}},"renderer":{"linearAdSequenceRenderer":{"linearAds":[{"instreamVideoAdRenderer":{"playerOverlay":{"instreamAdPlayerOverlayRenderer":{"skipOrPreviewRenderer":{"skipAdRenderer":{"preskipRenderer":{"adPreviewRenderer":{"thumbnail":{"thumbnail":{"thumbnails":[{"url":"https://i.ytimg.com/vi/AERLXaPKn_U/mqdefault.jpg","width":46,"height":25}]},"trackingParams":"ye"},"trackingParams":"dq","templatedCountdown":{"templatedAdText":{"text":"ps","isTemplated":82,"trackingParams":"cc"}},"durationMilliseconds":44}},"skippableRenderer":{"skipButtonRenderer":{"message":{"text":"xz","isTemplated":30,"trackingParams":"um"},"trackingParams":"ge"}},"trackingParams":"zg","skipOffsetMilliseconds":88}},"trackingParams":"qd","visitAdvertiserRenderer":{"buttonRenderer":{"style":"fv","text":{"simpleText":"on"},"icon":{"iconType":"vw"},"navigationEndpoint":{"clickTrackingParams":"mk","commandMetadata":{"webCommandMetadata":{"url":"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C3OQpfbUyZYWKL_Ken8RMFbClwAyRha6dc6fw7oP7EbaQHxABIABgyfb4hsijoBmCARdjYS1wdWItNjIxOTgxMTc0NzA0OTM3MYgBAaAB59zF2gOoAwSqBLMDT9ATfUTpaHDVXptzXB0Bqtu5dBV_jsP-c6MPkZYSL8_SrzCV3_f4sBsAHAi3Utb4zaJFaF_HvQdtBwss4wAA_skHdbFnpl5-EMNyyzlRw-Cndshj8CGQYwd1ZXhxlU46cvUuzxBe4SvQuo5EZgRv_zIYfKVpOj81ol3soC-FTzrjxhngpg6E1SEy8MZ8S5ykzm_m-YEKix3QCVLlSpEedBunRo295OkIwlFwaIQk8cLxsmnYhxdD_0zLFeTvwe5Q5tNO9mqkUZ7rAyzCTey_m5MZVo67-fDtV0elSQR79C9ErFiOQ5SaPsQgzk7zE3jxPNZYzV0zKOQ245eF3ZWxcGIrFA5NPIvvBwOl60ABjpEgQjQ4y2LpZnygmW_9ikThHx_iC4RujeV7iSAG5Fvv28wptAmCq7jMu5tWztpr-nl-Y0Iz7dA2FeeEOcd4ddn596NriGGT8AjZAXhtD7yJ8tRBEO3P48giFZj81WrpYHUvNhfx24PguTj-IBSpw2uQbemku11WDOxo7SI20n_fPtLcaEXB3YUajshnd5LoR4NlONEqC0f_uYwLaHt5X4Fw1hd8oAZUgAeBo7oliAcBkAcCqAf5sbECqAfnnbECqAfonbECqAfqt7ECqAentbMVqAfvtbECqAfwtbECqAeCqrECqAePOgHqNIbqAe2B6gHpJqxAqgHkZ-xAqgHsJuxAqgH36GxAqgHrrGxAqgHpqqxAqgH_bKxAqgHgcYbqAf8r7ECqAerxRuoB5zcG6gH5p2xAqgHyJ-xAqgHt6GxAqgH66WxAqgHyqmxApIIC242UFJubjBtcFpjqAgB0ggcCIAREAIYWjIDgoAEOgeP0ICAgIAESNmg0jVQFPIIH2NhLXl0LWhvc3QtcHViLTE4MDAxMjAxBZAyMzA2NTWaCRtodHRwczovL2xhdW5pdGVjLm5ldC9lY29tYTKxCS-fhg771OyRyAkYyAmPAcgJkAGYCwGhC8vk5LIcunUAugtXCAEQARgFIAEoATABQAFIAWAAaABwAogBAJgBAaIBLwoYIAPauAQSMhA6DgoMKDBIs5vbluYKmBkBEAEYACAAWABgAHAA0AEBqAIFwAIC2AEBgAIBiAIG0AsS2gw8CgoQ8Pj1wrn_sa1tEgIBAxoqCAESGf6BmeYY2b35qxjevPmrGJO89uoDvoSxpgPO7YnF2kwgmtyo08MEmg0BEqoNAlVTuBP___________8BsBQBwBXJgIBA0BUB2BUBkBYBmBYB4hYCCAGAFwGKFxoIAxgBIAEoATABOAFAAUgBUAFYAWACaAFwAaAXAakXG4oLaa1eRvW6FwQoADAA&ase=2&num=1&cid=CAASD-D4c9DOhTCuXm4CeUayPw&ad_cpn=%5BAD_CPN%5D&sig=AOD64_1U5dvH2jbnEq_3j0LlY381EiWpog&ms=[CLICK_MS]&adurl=https://garlo.com/enapa2%3Fgc_id%3D20599670093&label=video_click_to_advertiser_site&ctype=110","webPageType":"ry","rootVe":62}},"urlEndpoint":{"url":"lq","target":"wt"}},"trackingParams":"mh"}},"adBadgeRenderer":{"simpleAdBadgeRenderer":{"text":{"text":"kw","isTemplated":93,"trackingParams":"jg"},"trackingParams":"at"}},"adDurationRemaining":{"adDurationRemainingRenderer":{"templatedCountdown":{"templatedAdText":{"text":"rl","isTemplated":73,"trackingParams":"le"}},"trackingParams":"tr"}},"adInfoRenderer":{"adHoverTextButtonRenderer":{"button":{"buttonRenderer":{"style":"le","size":"nb","isDisabled":41,"serviceEndpoint":{"clickTrackingParams":"jt","openPopupAction":{"popup":{"aboutThisAdRenderer":{"url":{"privateDoNotAccessOrElseTrustedResourceUrlWrappedValue":"as"},"trackingParams":"vy"}},"popupType":"xn"}},"icon":{"iconType":"vl"},"trackingParams":"lm","accessibilityData":{"accessibilityData":{"label":"qi"}}}},"hoverText":{"simpleText":"zk"},"trackingParams":"qa"}},"flyoutCtaRenderer":{"flyoutCtaRenderer":{"image":{"thumbnail":{"thumbnails":[{"url":"pv"}]},"trackingParams":"jo"},"headline":{"text":"qx","isTemplated":10,"trackingParams":"um"},"description":{"text":"mf","trackingParams":"fe"},"actionButton":{"buttonRenderer":{"text":{"simpleText":"kq"},"navigationEndpoint":{"clickTrackingParams":"cm","commandMetadata":{"webCommandMetadata":{"url":"wa","webPageType":"nq","rootVe":69}},"urlEndpoint":{"url":"ln","target":"nd"}},"trackingParams":"no"}},"startMs":45,"trackingParams":"ge"}},"adLayoutLoggingData":{"serializedAdServingDataEntry":"xd"},"elementId":"tc","inPlayerSlotId":"gg","inPlayerLayoutId":"cm"}},"trackingParams":"uy","layoutId":"ff","associatedPlayerBytesLayoutId":"dy"}},{"adActionInterstitialRenderer":{"image":{"thumbnail":{"thumbnails":[{"url":"gv"}]},"trackingParams":"at"},"headline":{"text":"ow","isTemplated":66,"trackingParams":"za"},"description":{"text":"ds","isTemplated":95,"trackingParams":"fc"},"actionButton":{"buttonRenderer":{"style":"ys","text":{"simpleText":"aq"},"navigationEndpoint":{"clickTrackingParams":"vu","commandMetadata":{"webCommandMetadata":{"url":"zn","webPageType":"jv","rootVe":38}},"urlEndpoint":{"url":"df","target":"xe"}},"trackingParams":"za"}},"durationMilliseconds":44,"countdownRenderer":{"timedPieCountdownRenderer":{"trackingParams":"xg"}},"navigationEndpoint":{"clickTrackingParams":"vg","loggingUrls":[{"baseUrl":"bc"}],"commandMetadata":{"webCommandMetadata":{"url":"sn","webPageType":"vb","rootVe":34}},"urlEndpoint":{"url":"ex","target":"nb"}},"trackingParams":"iw","backgroundImage":{"thumbnail":{"thumbnails":[{"url":"cm"}]},"trackingParams":"br"},"adRendererCommands":{"impressionCommand":{"clickTrackingParams":"dj","commandExecutorCommand":{"commands":[{"clickTrackingParams":"li","loggingUrls":[{"baseUrl":"wa"}],"pingingEndpoint":{"hack":0}}]}}},"skipButton":{"skipButtonRenderer":{"message":{"text":"jg","isTemplated":95,"trackingParams":"by"},"trackingParams":"kl"}},"adLayoutLoggingData":{"serializedAdServingDataEntry":"kt"},"layoutId":"cv","inPlayerSlotId":"qt","inPlayerLayoutId":"yy","associatedPlayerBytesLayoutId":"dx"}},{"instreamVideoAdRenderer":{"playerOverlay":{"instreamAdPlayerOverlayRenderer":{"skipOrPreviewRenderer":{"skipAdRenderer":{"preskipRenderer":{"adPreviewRenderer":{"thumbnail":{"thumbnail":{"thumbnails":[{"url":"pz","width":32,"height":43}]},"trackingParams":"iz"},"trackingParams":"yo","templatedCountdown":{"templatedAdText":{"text":"we","isTemplated":91,"trackingParams":"si"}},"durationMilliseconds":10}},"skippableRenderer":{"skipButtonRenderer":{"message":{"text":"bp","isTemplated":93,"trackingParams":"mo"},"trackingParams":"cp"}},"trackingParams":"qr","skipOffsetMilliseconds":60}},"trackingParams":"zf","visitAdvertiserRenderer":{"buttonRenderer":{"style":"ya","text":{"simpleText":"fv"},"icon":{"iconType":"bx"},"navigationEndpoint":{"clickTrackingParams":"bw","commandMetadata":{"webCommandMetadata":{"url":"ht","webPageType":"gv","rootVe":14}},"urlEndpoint":{"url":"wi","target":"te"}},"trackingParams":"gr"}},"adBadgeRenderer":{"simpleAdBadgeRenderer":{"text":{"text":"ox","isTemplated":66,"trackingParams":"td"},"trackingParams":"ng"}},"adDurationRemaining":{"adDurationRemainingRenderer":{"templatedCountdown":{"templatedAdText":{"text":"zu","isTemplated":15,"trackingParams":"py"}},"trackingParams":"hb"}},"adInfoRenderer":{"adHoverTextButtonRenderer":{"button":{"buttonRenderer":{"style":"vn","size":"cw","isDisabled":56,"serviceEndpoint":{"clickTrackingParams":"jh","openPopupAction":{"popup":{"aboutThisAdRenderer":{"url":{"privateDoNotAccessOrElseTrustedResourceUrlWrappedValue":"zx"},"trackingParams":"yl"}},"popupType":"tw"}},"icon":{"iconType":"ar"},"trackingParams":"vi","accessibilityData":{"accessibilityData":{"label":"hy"}}}},"hoverText":{"simpleText":"ap"},"trackingParams":"pp"}},"flyoutCtaRenderer":{"flyoutCtaRenderer":{"image":{"thumbnail":{"thumbnails":[{"url":"ol"}]},"trackingParams":"kz"},"headline":{"text":"wa","isTemplated":43,"trackingParams":"yb"},"description":{"text":"cl","trackingParams":"aq"},"actionButton":{"buttonRenderer":{"text":{"simpleText":"xg"},"navigationEndpoint":{"clickTrackingParams":"wp","commandMetadata":{"webCommandMetadata":{"url":"uh","webPageType":"bs","rootVe":44}},"urlEndpoint":{"url":"xq","target":"fi"}},"trackingParams":"fo"}},"startMs":5,"trackingParams":"kh"}},"adLayoutLoggingData":{"serializedAdServingDataEntry":"ir"},"elementId":"mp","inPlayerSlotId":"fh","inPlayerLayoutId":"bh"}},"trackingParams":"ao","layoutId":"gc","associatedPlayerBytesLayoutId":"up"}},{"adActionInterstitialRenderer":{"image":{"thumbnail":{"thumbnails":[{"url":"wj"}]},"trackingParams":"zr"},"headline":{"text":"rq","isTemplated":82,"trackingParams":"gr"},"description":{"text":"fj","isTemplated":57,"trackingParams":"li"},"actionButton":{"buttonRenderer":{"style":"mu","text":{"simpleText":"cg"},"navigationEndpoint":{"clickTrackingParams":"eb","commandMetadata":{"webCommandMetadata":{"url":"vn","webPageType":"nw","rootVe":96}},"urlEndpoint":{"url":"bs","target":"dr"}},"trackingParams":"iq"}},"durationMilliseconds":39,"countdownRenderer":{"timedPieCountdownRenderer":{"trackingParams":"mt"}},"navigationEndpoint":{"clickTrackingParams":"uz","loggingUrls":[{"baseUrl":"rn"}],"commandMetadata":{"webCommandMetadata":{"url":"cu","webPageType":"qs","rootVe":26}},"urlEndpoint":{"url":"ty","target":"he"}},"trackingParams":"bw","backgroundImage":{"thumbnail":{"thumbnails":[{"url":"pd"}]},"trackingParams":"wm"},"adRendererCommands":{"impressionCommand":{"clickTrackingParams":"io","commandExecutorCommand":{"commands":[{"clickTrackingParams":"hd","loggingUrls":[{"baseUrl":"hz"}],"pingingEndpoint":{"hack":81}}]}}},"skipButton":{"skipButtonRenderer":{"message":{"text":"db","isTemplated":42,"trackingParams":"ga"},"trackingParams":"pa"}},"adLayoutLoggingData":{"serializedAdServingDataEntry":"bt"},"layoutId":"ec","inPlayerSlotId":"nl","inPlayerLayoutId":"qh","associatedPlayerBytesLayoutId":"qe"}}]}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"rj"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"zf","adTimeOffset":{"offsetStartMilliseconds":"63","offsetEndMilliseconds":"83"},"hideCueRangeMarker":true}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"59","getAdBreakUrl":"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"LigQMVuP3nAx3LwQfSGhgYmqsEWANi"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"AD_PLACEMENT_KIND_START","adTimeOffset":{"offsetStartMilliseconds":"330100","offsetEndMilliseconds":"594666"},"hideCueRangeMarker":true}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"0","getAdBreakUrl":"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"LigQMVuP3nAx3LwQfSGhgYmqsEWANi"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"AD_PLACEMENT_KIND_MILLISECONDS","adTimeOffset":{"offsetStartMilliseconds":"65","offsetEndMilliseconds":"30"},"hideCueRangeMarker":true}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"51","getAdBreakUrl":"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"wg"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"AD_PLACEMENT_KIND_MILLISECONDS","adTimeOffset":{"offsetStartMilliseconds":"56","offsetEndMilliseconds":"86"},"hideCueRangeMarker":true}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"25","getAdBreakUrl":"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"nh"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"AD_PLACEMENT_KIND_END","adTimeOffset":{"offsetStartMilliseconds":"25","offsetEndMilliseconds":"13"},"hideCueRangeMarker":true}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"32","getAdBreakUrl":"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"ti"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"AD_PLACEMENT_KIND_MILLISECONDS","adTimeOffset":{"offsetStartMilliseconds":"47","offsetEndMilliseconds":"84"},"hideCueRangeMarker":true}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"10","getAdBreakUrl":"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"go"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"AD_PLACEMENT_KIND_MILLISECONDS","adTimeOffset":{"offsetStartMilliseconds":"14","offsetEndMilliseconds":"87"},"hideCueRangeMarker":true}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"79","getAdBreakUrl":"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"wi"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"AD_PLACEMENT_KIND_MILLISECONDS","adTimeOffset":{"offsetStartMilliseconds":"34","offsetEndMilliseconds":"12"},"hideCueRangeMarker":true}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"27","getAdBreakUrl":"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"fp"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"AD_PLACEMENT_KIND_MILLISECONDS","adTimeOffset":{"offsetStartMilliseconds":"66","offsetEndMilliseconds":"35"},"hideCueRangeMarker":true}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"98","getAdBreakUrl":"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"cn"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"AD_PLACEMENT_KIND_MILLISECONDS","adTimeOffset":{"offsetStartMilliseconds":"59","offsetEndMilliseconds":"8"},"hideCueRangeMarker":true}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"26","getAdBreakUrl":"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"wz"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"AD_PLACEMENT_KIND_MILLISECONDS","adTimeOffset":{"offsetStartMilliseconds":"84","offsetEndMilliseconds":"90"},"hideCueRangeMarker":true}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"92","getAdBreakUrl":"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"nl"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"AD_PLACEMENT_KIND_MILLISECONDS","adTimeOffset":{"offsetStartMilliseconds":"50","offsetEndMilliseconds":"67"},"hideCueRangeMarker":true}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"96","getAdBreakUrl":"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"ov"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"AD_PLACEMENT_KIND_MILLISECONDS","adTimeOffset":{"offsetStartMilliseconds":"13","offsetEndMilliseconds":"2"},"hideCueRangeMarker":true}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"52","getAdBreakUrl":"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"by"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"AD_PLACEMENT_KIND_MILLISECONDS","adTimeOffset":{"offsetStartMilliseconds":"73","offsetEndMilliseconds":"64"},"hideCueRangeMarker":true}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"67","getAdBreakUrl":"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"uc"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"AD_PLACEMENT_KIND_MILLISECONDS","adTimeOffset":{"offsetStartMilliseconds":"10","offsetEndMilliseconds":"zo"},"hideCueRangeMarker":true}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"22","getAdBreakUrl":"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"en"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"AD_PLACEMENT_KIND_SELF_START"}},"renderer":{"actionCompanionAdRenderer":{"headline":{"text":"eg","isTemplated":93,"trackingParams":"it"},"description":{"text":"ux","isTemplated":43,"trackingParams":"sj"},"actionButton":{"buttonRenderer":{"text":{"simpleText":"de"},"navigationEndpoint":{"clickTrackingParams":"ex","commandMetadata":{"webCommandMetadata":{"url":"ue","webPageType":"ow","rootVe":77}},"urlEndpoint":{"url":"yh","target":"pg"}},"trackingParams":"xf"}},"iconImage":{"thumbnail":{"thumbnails":[{"url":"te","width":19,"height":23}]},"trackingParams":"lv"},"bannerImage":{"thumbnail":{"thumbnails":[{"url":"gj","width":38,"height":67}]},"trackingParams":"ow"},"navigationEndpoint":{"clickTrackingParams":"um","commandMetadata":{"webCommandMetadata":{"url":"fq","webPageType":"fd","rootVe":61}},"urlEndpoint":{"url":"gi","target":"tq"}},"trackingParams":"ie","adInfoRenderer":{"adHoverTextButtonRenderer":{"button":{"buttonRenderer":{"style":"ng","size":"xv","isDisabled":53,"icon":{"iconType":"bq"},"navigationEndpoint":{"clickTrackingParams":"yl","openPopupAction":{"popup":{"aboutThisAdRenderer":{"url":{"privateDoNotAccessOrElseTrustedResourceUrlWrappedValue":"po"},"trackingParams":"hi"}},"popupType":"sb"}},"trackingParams":"ho","accessibilityData":{"accessibilityData":{"label":"kl"}}}},"hoverText":{"simpleText":"xd"},"trackingParams":"dv"}},"adVideoId":"je","impressionPings":[{"baseUrl":"xj"}],"adLayoutLoggingData":{"serializedAdServingDataEntry":"dt"},"associatedCompositePlayerBytesLayoutId":"te"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"vs"}}}],"adSlots":[{"adSlotRenderer":{"adSlotMetadata":{"slotId":"1234","slotType":"SLOT_TYPE_PLAYER_BYTES","adSlotLoggingData":{"serializedSlotAdServingDataEntry":"ob"},"triggerEvent":"SLOT_TRIGGER_EVENT_BEFORE_CONTENT"},"fulfillmentContent":{"fulfilledLayout":{"playerBytesAdLayoutRenderer":{"adLayoutMetadata":{"layoutId":"ot","layoutType":"xg","adLayoutLoggingData":{"serializedAdServingDataEntry":"yk"}},"renderingContent":{"playerBytesSequentialLayoutRenderer":{"sequentialLayouts":[{"playerBytesAdLayoutRenderer":{"adLayoutMetadata":{"layoutId":"je","layoutType":"ww","adLayoutLoggingData":{"serializedAdServingDataEntry":"ve"}},"renderingContent":{"instreamVideoAdRenderer":{"skipOffsetMilliseconds":94,"pings":{"impressionPings":[{"baseUrl":"pl"},{"baseUrl":"zs"}],"errorPings":[{"baseUrl":"hh"}],"mutePings":[{"baseUrl":"qh"}],"unmutePings":[{"baseUrl":"ey"}],"pausePings":[{"baseUrl":"pz"}],"rewindPings":[{"baseUrl":"bh"}],"resumePings":[{"baseUrl":"mw"}],"skipPings":[{"baseUrl":"si"}],"closePings":[{"baseUrl":"oh"}],"progressPings":[{"baseUrl":"ly","offsetMilliseconds":1},{"baseUrl":"ac","offsetMilliseconds":80},{"baseUrl":"sy","offsetMilliseconds":72}],"fullscreenPings":[{"baseUrl":"kw"}],"activeViewViewablePings":[{"baseUrl":"oz"}],"endFullscreenPings":[{"baseUrl":"uc"}],"activeViewMeasurablePings":[{"baseUrl":"vu"}],"abandonPings":[{"baseUrl":"sf"}],"activeViewFullyViewableAudibleHalfDurationPings":[{"baseUrl":"qg"}],"completePings":[{"baseUrl":"jv"}],"activeViewTracking":{"trafficType":"sq"}},"clickthroughEndpoint":{"clickTrackingParams":"fn","commandMetadata":{"webCommandMetadata":{"url":"tf","webPageType":"ox","rootVe":73}},"urlEndpoint":{"url":"ny","target":"uc"}},"csiParameters":[{"key":"qe","value":"em"}],"playerVars":"suppress_creator_endscreen=1&is_trueview_action","elementId":"bq","trackingParams":"dr","legacyInfoCardVastExtension":"pa","sodarExtensionData":{"siub":"mi","bgub":"hc","scs":"cw","bgp":"co"},"externalVideoId":"ya","adLayoutLoggingData":{"serializedAdServingDataEntry":"jj"},"layoutId":"sc"}}}},{"playerBytesAdLayoutRenderer":{"adLayoutMetadata":{"layoutId":"nr","layoutType":"kn","adLayoutLoggingData":{"serializedAdServingDataEntry":"cf"}},"renderingContent":{"adActionInterstitialRenderer":{"durationMilliseconds":52,"trackingParams":"yq","abandonCommands":{"commands":[{"clickTrackingParams":"wi","loggingUrls":[{"baseUrl":"jb"}],"pingingEndpoint":{"hack":90}}]},"skipPings":[{"baseUrl":"av"}],"layoutId":"nj"}}}},{"playerBytesAdLayoutRenderer":{"adLayoutMetadata":{"layoutId":"nl","layoutType":"wm","adLayoutLoggingData":{"serializedAdServingDataEntry":"zw"}},"renderingContent":{"instreamVideoAdRenderer":{"skipOffsetMilliseconds":80,"pings":{"impressionPings":[{"baseUrl":"ji"},{"baseUrl":"ao"},{"baseUrl":"cc"}],"errorPings":[{"baseUrl":"jt"}],"mutePings":[{"baseUrl":"mn"},{"baseUrl":"ce"}],"unmutePings":[{"baseUrl":"rd"},{"baseUrl":"lb"}],"pausePings":[{"baseUrl":"et"},{"baseUrl":"fv"}],"rewindPings":[{"baseUrl":"ft"}],"resumePings":[{"baseUrl":"qj"},{"baseUrl":"ot"}],"skipPings":[{"baseUrl":"ky"},{"baseUrl":"jb"}],"closePings":[{"baseUrl":"hw"}],"progressPings":[{"baseUrl":"vh","offsetMilliseconds":36},{"baseUrl":"um","offsetMilliseconds":77},{"baseUrl":"sq","offsetMilliseconds":19},{"baseUrl":"ui","offsetMilliseconds":15},{"baseUrl":"nl","offsetMilliseconds":86}],"fullscreenPings":[{"baseUrl":"rp"},{"baseUrl":"cn"}],"activeViewViewablePings":[{"baseUrl":"ml"},{"baseUrl":"kq"}],"endFullscreenPings":[{"baseUrl":"ym"}],"activeViewMeasurablePings":[{"baseUrl":"di"},{"baseUrl":"ol"}],"abandonPings":[{"baseUrl":"aj"},{"baseUrl":"wo"}],"activeViewFullyViewableAudibleHalfDurationPings":[{"baseUrl":"ms"},{"baseUrl":"uj"}],"startPings":[{"baseUrl":"gy"}],"firstQuartilePings":[{"baseUrl":"ly"}],"secondQuartilePings":[{"baseUrl":"sw"}],"thirdQuartilePings":[{"baseUrl":"gt"}],"completePings":[{"baseUrl":"hu"},{"baseUrl":"gs"}],"activeViewTracking":{"trafficType":"mr"}},"clickthroughEndpoint":{"clickTrackingParams":"yq","commandMetadata":{"webCommandMetadata":{"url":"dn","webPageType":"ms","rootVe":54}},"urlEndpoint":{"url":"hs","target":"jt"}},"csiParameters":[{"key":"zn","value":"eq"}],"playerVars":"bi","elementId":"gr","trackingParams":"qc","legacyInfoCardVastExtension":"xv","sodarExtensionData":{"siub":"ul","bgub":"yr","scs":"ui","bgp":"vy"},"externalVideoId":"fp","adLayoutLoggingData":{"serializedAdServingDataEntry":"gt"},"layoutId":"bh"}}}},{"playerBytesAdLayoutRenderer":{"adLayoutMetadata":{"layoutId":"xy","layoutType":"bf","adLayoutLoggingData":{"serializedAdServingDataEntry":"rj"}},"renderingContent":{"adActionInterstitialRenderer":{"durationMilliseconds":95,"trackingParams":"ee","abandonCommands":{"commands":[{"clickTrackingParams":"mi","loggingUrls":[{"baseUrl":"yi"},{"baseUrl":"tm"}],"pingingEndpoint":{"hack":47}}]},"skipPings":[{"baseUrl":"uk"},{"baseUrl":"yj"}],"layoutId":"ft"}}}}]}},"layoutExitNormalTriggers":[{"id":"hq","onLayoutSelfExitRequestedTrigger":{"triggeringLayoutId":"hv"}}],"layoutExitSkipTriggers":[{"id":"up","skipRequestedTrigger":{"triggeringLayoutId":"nm"}},{"id":"yl","skipRequestedTrigger":{"triggeringLayoutId":"gh"}},{"id":"zd","skipRequestedTrigger":{"triggeringLayoutId":"mo"}},{"id":"bc","skipRequestedTrigger":{"triggeringLayoutId":"jj"}}],"layoutExitMuteTriggers":[{"id":"ql","skipRequestedTrigger":{"triggeringLayoutId":"hr"}},{"id":"rc","skipRequestedTrigger":{"triggeringLayoutId":"ln"}}]}}},"slotEntryTrigger":{"id":"lc","beforeContentVideoIdStartedTrigger":{}},"slotFulfillmentTriggers":[{"id":"xq","slotIdEnteredTrigger":{"triggeringSlotId":"da"}}],"slotExpirationTriggers":[{"id":"vv","slotIdExitedTrigger":{"triggeringSlotId":"re"}},{"id":"jg","onNewPlaybackAfterContentVideoIdTrigger":{}}]}}],"adBreakHeartbeatParams":"mw","frameworkUpdates":{"entityBatchUpdate":{"mutations":[{"entityKey":"pz","type":"az","payload":{"offlineabilityEntity":{"key":"ql","command":{"innertubeCommand":{"clickTrackingParams":"nz","ypcGetOfflineUpsellEndpoint":{"params":"pw"}}},"addToOfflineButtonState":"os","contentCheckOk":false,"racyCheckOk":false,"loggingDirectives":{"trackingParams":"xp","visibility":{"types":"1"},"enableDisplayloggerExperiment":true}}}}],"timestamp":{"seconds":"19","nanos":12}}}}',
objectRepresentation:DMc},{jsonRepresentation:'{"playerResponse":{"responseContext":{"serviceTrackingParams":[{"service":"GFEEDBACK","params":[{"key":"kc","value":"66"},{"key":"cw","value":"st"},{"key":"zb","value":"xz"},{"key":"zl","value":"16"},{"key":"pf","value":"sy"}]},{"service":"bh","params":[{"key":"ip","value":"54"},{"key":"tb","value":"dv"},{"key":"pi","value":"pn"},{"key":"fg","value":"35"},{"key":"wm","value":"vo"}]},{"service":"fp","params":[{"key":"hw","value":"91"}]},{"service":"rk","params":[{"key":"pe","value":"sf"},{"key":"rv","value":"jn"},{"key":"aw","value":"pw"}]}],"maxAgeSeconds":87,"mainAppWebResponseContext":{"loggedOut":43,"trackingParam":"dd","datasyncId":"xp"},"webResponseContextExtensionData":{"hasDecorated":75}},"playabilityStatus":{"status":"by","playableInEmbed":2,"miniplayer":{"miniplayerRenderer":{"playbackMode":"tj"}},"offlineability":{"buttonRenderer":{"serviceEndpoint":{"clickTrackingParams":"pz","ypcGetOfflineUpsellEndpoint":{"params":"xm"}},"trackingParams":"pq"}},"contextParams":"lu"},"streamingData":{"expiresInSeconds":"53","formats":[{"itag":80,"url":"https://rr3---sn-n4v7sns7.googlevideo.com/videoplayback?expire=1697267654&source=youtube&requiressl=yes","mimeType":"video/webm; codecs=\\"vp9\\"","bitrate":88,"width":96,"height":65,"lastModified":"1665263132187531","contentLength":"17","quality":"rc","fps":8,"qualityLabel":"ab","projectionType":"by","averageBitrate":50,"audioQuality":"th","approxDurationMs":"86","audioSampleRate":"88","audioChannels":34},{"itag":95,"url":"hs","mimeType":"nm","bitrate":56,"width":13,"height":14,"lastModified":"10","quality":"fu","fps":54,"qualityLabel":"yj","projectionType":"wu","audioQuality":"tu","approxDurationMs":"51","audioSampleRate":"87","audioChannels":44}],"adaptiveFormats":[{"itag":50,"url":"fu","mimeType":"uz","bitrate":80,"width":80,"height":85,"initRange":{"start":"16","end":"71"},"indexRange":{"start":"1","end":"26"},"lastModified":"70","contentLength":"66","quality":"cx","fps":61,"qualityLabel":"xt","projectionType":"pe","averageBitrate":68,"approxDurationMs":"1"},{"itag":77,"url":"rj","mimeType":"lh","bitrate":16,"width":17,"height":47,"initRange":{"start":"51","end":"44"},"indexRange":{"start":"87","end":"61"},"lastModified":"13","contentLength":"21","quality":"ie","fps":23,"qualityLabel":"ig","projectionType":"bl","averageBitrate":16,"colorInfo":{"primaries":"et","transferCharacteristics":"zu","matrixCoefficients":"od"},"approxDurationMs":"59"},{"itag":7,"url":"fc","mimeType":"gr","bitrate":71,"width":11,"height":3,"initRange":{"start":"100","end":"7"},"indexRange":{"start":"36","end":"98"},"lastModified":"88","contentLength":"77","quality":"rb","fps":46,"qualityLabel":"gq","projectionType":"ld","averageBitrate":99,"colorInfo":{"primaries":"xd","transferCharacteristics":"uu","matrixCoefficients":"zc"},"approxDurationMs":"44"},{"itag":10,"url":"kl","mimeType":"wb","bitrate":51,"width":69,"height":3,"initRange":{"start":"92","end":"79"},"indexRange":{"start":"42","end":"72"},"lastModified":"99","contentLength":"6","quality":"ee","fps":40,"qualityLabel":"em","projectionType":"wz","averageBitrate":48,"approxDurationMs":"86"},{"itag":44,"url":"hp","mimeType":"kq","bitrate":84,"width":53,"height":22,"initRange":{"start":"48","end":"51"},"indexRange":{"start":"54","end":"44"},"lastModified":"25","contentLength":"47","quality":"xy","fps":11,"qualityLabel":"zl","projectionType":"za","averageBitrate":95,"colorInfo":{"primaries":"ot","transferCharacteristics":"av","matrixCoefficients":"ow"},"approxDurationMs":"85"},{"itag":20,"url":"di","mimeType":"nc","bitrate":15,"width":19,"height":92,"initRange":{"start":"82","end":"58"},"indexRange":{"start":"80","end":"37"},"lastModified":"46","contentLength":"40","quality":"wo","fps":44,"qualityLabel":"pt","projectionType":"bg","averageBitrate":3,"colorInfo":{"primaries":"wq","transferCharacteristics":"is","matrixCoefficients":"ou"},"approxDurationMs":"47"},{"itag":44,"url":"oe","mimeType":"mh","bitrate":37,"width":43,"height":24,"initRange":{"start":"29","end":"91"},"indexRange":{"start":"97","end":"97"},"lastModified":"52","contentLength":"43","quality":"cr","fps":44,"qualityLabel":"hc","projectionType":"cr","averageBitrate":12,"approxDurationMs":"97"},{"itag":32,"url":"gq","mimeType":"sh","bitrate":42,"width":32,"height":13,"initRange":{"start":"71","end":"87"},"indexRange":{"start":"70","end":"4"},"lastModified":"67","contentLength":"16","quality":"sb","fps":66,"qualityLabel":"mv","projectionType":"kk","averageBitrate":51,"colorInfo":{"primaries":"pk","transferCharacteristics":"ea","matrixCoefficients":"cq"},"approxDurationMs":"70"},{"itag":71,"url":"zt","mimeType":"bl","bitrate":12,"width":68,"height":12,"initRange":{"start":"63","end":"2"},"indexRange":{"start":"28","end":"68"},"lastModified":"33","contentLength":"0","quality":"dh","fps":6,"qualityLabel":"jv","projectionType":"sy","averageBitrate":75,"colorInfo":{"primaries":"us","transferCharacteristics":"ka","matrixCoefficients":"xw"},"approxDurationMs":"16"},{"itag":98,"url":"vl","mimeType":"lg","bitrate":88,"width":23,"height":83,"initRange":{"start":"49","end":"34"},"indexRange":{"start":"43","end":"90"},"lastModified":"84","contentLength":"77","quality":"xu","fps":50,"qualityLabel":"jz","projectionType":"om","averageBitrate":16,"highReplication":95,"approxDurationMs":"46"},{"itag":85,"url":"ri","mimeType":"dh","bitrate":77,"width":86,"height":54,"initRange":{"start":"40","end":"98"},"indexRange":{"start":"15","end":"85"},"lastModified":"25","contentLength":"53","quality":"rq","fps":62,"qualityLabel":"nx","projectionType":"wg","averageBitrate":35,"colorInfo":{"primaries":"oa","transferCharacteristics":"kb","matrixCoefficients":"kk"},"approxDurationMs":"26"},{"itag":10,"url":"zz","mimeType":"lq","bitrate":55,"width":89,"height":43,"initRange":{"start":"94","end":"98"},"indexRange":{"start":"73","end":"51"},"lastModified":"3","contentLength":"36","quality":"yo","fps":5,"qualityLabel":"we","projectionType":"ve","averageBitrate":83,"colorInfo":{"primaries":"yu","transferCharacteristics":"fu","matrixCoefficients":"ox"},"approxDurationMs":"11"},{"itag":62,"url":"hv","mimeType":"th","bitrate":76,"width":28,"height":79,"initRange":{"start":"97","end":"100"},"indexRange":{"start":"58","end":"63"},"lastModified":"53","contentLength":"22","quality":"ou","fps":7,"qualityLabel":"cm","projectionType":"xv","averageBitrate":35,"approxDurationMs":"98"},{"itag":91,"url":"vr","mimeType":"wo","bitrate":41,"width":4,"height":79,"initRange":{"start":"80","end":"83"},"indexRange":{"start":"14","end":"58"},"lastModified":"50","contentLength":"38","quality":"ic","fps":64,"qualityLabel":"sq","projectionType":"du","averageBitrate":61,"colorInfo":{"primaries":"ok","transferCharacteristics":"ud","matrixCoefficients":"ob"},"approxDurationMs":"73"},{"itag":48,"url":"lq","mimeType":"zl","bitrate":4,"width":16,"height":65,"initRange":{"start":"93","end":"50"},"indexRange":{"start":"52","end":"44"},"lastModified":"74","contentLength":"86","quality":"mi","fps":43,"qualityLabel":"rz","projectionType":"ji","averageBitrate":61,"colorInfo":{"primaries":"qo","transferCharacteristics":"fk","matrixCoefficients":"jy"},"approxDurationMs":"70"},{"itag":34,"url":"cr","mimeType":"la","bitrate":53,"width":29,"height":97,"initRange":{"start":"89","end":"45"},"indexRange":{"start":"93","end":"45"},"lastModified":"52","contentLength":"74","quality":"xn","fps":60,"qualityLabel":"xs","projectionType":"lf","averageBitrate":1,"approxDurationMs":"18"},{"itag":67,"url":"mr","mimeType":"cs","bitrate":79,"width":9,"height":85,"initRange":{"start":"56","end":"96"},"indexRange":{"start":"71","end":"84"},"lastModified":"78","contentLength":"80","quality":"ld","fps":2,"qualityLabel":"no","projectionType":"uq","averageBitrate":35,"colorInfo":{"primaries":"mj","transferCharacteristics":"ry","matrixCoefficients":"cc"},"approxDurationMs":"43"},{"itag":57,"url":"fi","mimeType":"to","bitrate":80,"width":81,"height":29,"initRange":{"start":"6","end":"96"},"indexRange":{"start":"73","end":"48"},"lastModified":"32","contentLength":"11","quality":"ck","fps":82,"qualityLabel":"fo","projectionType":"px","averageBitrate":95,"colorInfo":{"primaries":"az","transferCharacteristics":"mq","matrixCoefficients":"oc"},"approxDurationMs":"44"},{"itag":52,"url":"ea","mimeType":"xm","bitrate":18,"initRange":{"start":"15","end":"16"},"indexRange":{"start":"4","end":"33"},"lastModified":"65","contentLength":"67","quality":"es","projectionType":"mp","averageBitrate":52,"highReplication":82,"audioQuality":"za","approxDurationMs":"24","audioSampleRate":"1","audioChannels":92,"loudnessDb":0.9787435365879406},{"itag":37,"url":"kk","mimeType":"xg","bitrate":78,"initRange":{"start":"38","end":"94"},"indexRange":{"start":"27","end":"17"},"lastModified":"61","contentLength":"2","quality":"nh","projectionType":"ar","averageBitrate":69,"audioQuality":"la","approxDurationMs":"95","audioSampleRate":"66","audioChannels":50,"loudnessDb":0.6461265012758731},{"itag":45,"url":"oc","mimeType":"nm","bitrate":12,"initRange":{"start":"21","end":"45"},"indexRange":{"start":"21","end":"13"},"lastModified":"45","contentLength":"85","quality":"vs","projectionType":"xp","averageBitrate":32,"audioQuality":"tv","approxDurationMs":"1","audioSampleRate":"99","audioChannels":42,"loudnessDb":0.39295968942278037},{"itag":37,"url":"zf","mimeType":"be","bitrate":29,"initRange":{"start":"27","end":"87"},"indexRange":{"start":"81","end":"20"},"lastModified":"6","contentLength":"33","quality":"pe","projectionType":"pb","averageBitrate":100,"audioQuality":"zi","approxDurationMs":"70","audioSampleRate":"32","audioChannels":68,"loudnessDb":0.2781731101164002}]},"playerAds":[{"playerLegacyDesktopWatchAdsRenderer":{"playerAdParams":{"showContentThumbnail":true,"enabledEngageTypes":"3,6,4,5"},"gutParams":{"tag":"\\\\4061\\\\ytpwmpu"},"showCompanion":true,"showInstream":true,"useGut":true}}],"playbackTracking":{"videostatsPlaybackUrl":{"baseUrl":"bj"},"videostatsDelayplayUrl":{"baseUrl":"vx"},"videostatsWatchtimeUrl":{"baseUrl":"px"},"ptrackingUrl":{"baseUrl":"tg"},"qoeUrl":{"baseUrl":"wx"},"atrUrl":{"baseUrl":"xz","elapsedMediaTimeSeconds":45},"videostatsScheduledFlushWalltimeSeconds":[99,32,39],"videostatsDefaultFlushIntervalSeconds":3,"youtubeRemarketingUrl":{"baseUrl":"mb","elapsedMediaTimeSeconds":63},"googleRemarketingUrl":{"baseUrl":"yn","elapsedMediaTimeSeconds":83}},"captions":{"playerCaptionsTracklistRenderer":{"captionTracks":[{"baseUrl":"ew","name":{"simpleText":"ez"},"vssId":"fj","languageCode":"wd","kind":"ez","isTranslatable":21}],"audioTracks":[{"captionTrackIndices":[87]}],"translationLanguages":[{"languageCode":"xu","languageName":{"simpleText":"fw"}},{"languageCode":"zl","languageName":{"simpleText":"xc"}},{"languageCode":"jr","languageName":{"simpleText":"md"}},{"languageCode":"sc","languageName":{"simpleText":"wf"}},{"languageCode":"nj","languageName":{"simpleText":"xn"}},{"languageCode":"of","languageName":{"simpleText":"av"}},{"languageCode":"tv","languageName":{"simpleText":"ok"}},{"languageCode":"nu","languageName":{"simpleText":"ry"}},{"languageCode":"zy","languageName":{"simpleText":"nb"}},{"languageCode":"pt","languageName":{"simpleText":"eq"}},{"languageCode":"vr","languageName":{"simpleText":"cc"}},{"languageCode":"wh","languageName":{"simpleText":"hd"}},{"languageCode":"hp","languageName":{"simpleText":"ds"}},{"languageCode":"ka","languageName":{"simpleText":"up"}},{"languageCode":"sw","languageName":{"simpleText":"zp"}},{"languageCode":"rh","languageName":{"simpleText":"eq"}},{"languageCode":"bq","languageName":{"simpleText":"at"}},{"languageCode":"hu","languageName":{"simpleText":"fg"}},{"languageCode":"ai","languageName":{"simpleText":"iy"}},{"languageCode":"rj","languageName":{"simpleText":"oz"}},{"languageCode":"sq","languageName":{"simpleText":"fe"}},{"languageCode":"tn","languageName":{"simpleText":"vk"}},{"languageCode":"jr","languageName":{"simpleText":"jg"}},{"languageCode":"vc","languageName":{"simpleText":"hv"}},{"languageCode":"yn","languageName":{"simpleText":"ky"}},{"languageCode":"pa","languageName":{"simpleText":"rw"}},{"languageCode":"lr","languageName":{"simpleText":"kv"}},{"languageCode":"ud","languageName":{"simpleText":"fn"}},{"languageCode":"hq","languageName":{"simpleText":"io"}},{"languageCode":"rp","languageName":{"simpleText":"qx"}},{"languageCode":"xf","languageName":{"simpleText":"sm"}},{"languageCode":"fs","languageName":{"simpleText":"ty"}},{"languageCode":"so","languageName":{"simpleText":"xl"}},{"languageCode":"fk","languageName":{"simpleText":"ff"}},{"languageCode":"fw","languageName":{"simpleText":"wz"}},{"languageCode":"rn","languageName":{"simpleText":"zw"}},{"languageCode":"wq","languageName":{"simpleText":"yt"}},{"languageCode":"oh","languageName":{"simpleText":"oo"}},{"languageCode":"ts","languageName":{"simpleText":"jt"}},{"languageCode":"xy","languageName":{"simpleText":"ga"}},{"languageCode":"jy","languageName":{"simpleText":"sx"}},{"languageCode":"lw","languageName":{"simpleText":"cf"}},{"languageCode":"fc","languageName":{"simpleText":"qr"}},{"languageCode":"ji","languageName":{"simpleText":"cc"}},{"languageCode":"qs","languageName":{"simpleText":"pi"}},{"languageCode":"vx","languageName":{"simpleText":"hk"}},{"languageCode":"jt","languageName":{"simpleText":"eh"}},{"languageCode":"fb","languageName":{"simpleText":"iu"}},{"languageCode":"mf","languageName":{"simpleText":"st"}},{"languageCode":"en","languageName":{"simpleText":"vr"}},{"languageCode":"go","languageName":{"simpleText":"kp"}},{"languageCode":"sc","languageName":{"simpleText":"rk"}},{"languageCode":"bx","languageName":{"simpleText":"ci"}},{"languageCode":"pu","languageName":{"simpleText":"qj"}},{"languageCode":"fa","languageName":{"simpleText":"ht"}},{"languageCode":"bw","languageName":{"simpleText":"af"}},{"languageCode":"rr","languageName":{"simpleText":"jt"}},{"languageCode":"ef","languageName":{"simpleText":"yy"}},{"languageCode":"bn","languageName":{"simpleText":"wu"}},{"languageCode":"ov","languageName":{"simpleText":"ae"}},{"languageCode":"sm","languageName":{"simpleText":"hi"}},{"languageCode":"tq","languageName":{"simpleText":"ie"}},{"languageCode":"fn","languageName":{"simpleText":"et"}},{"languageCode":"jw","languageName":{"simpleText":"bu"}},{"languageCode":"iz","languageName":{"simpleText":"gc"}},{"languageCode":"bk","languageName":{"simpleText":"jh"}},{"languageCode":"vw","languageName":{"simpleText":"fq"}},{"languageCode":"xt","languageName":{"simpleText":"or"}},{"languageCode":"kq","languageName":{"simpleText":"ch"}},{"languageCode":"pa","languageName":{"simpleText":"cs"}},{"languageCode":"ef","languageName":{"simpleText":"eq"}},{"languageCode":"mk","languageName":{"simpleText":"ig"}},{"languageCode":"me","languageName":{"simpleText":"pv"}},{"languageCode":"ll","languageName":{"simpleText":"nz"}},{"languageCode":"yd","languageName":{"simpleText":"pu"}},{"languageCode":"dj","languageName":{"simpleText":"vx"}},{"languageCode":"xc","languageName":{"simpleText":"ca"}},{"languageCode":"wb","languageName":{"simpleText":"il"}},{"languageCode":"ww","languageName":{"simpleText":"jf"}},{"languageCode":"xi","languageName":{"simpleText":"ba"}},{"languageCode":"ae","languageName":{"simpleText":"hx"}},{"languageCode":"uj","languageName":{"simpleText":"xu"}},{"languageCode":"hq","languageName":{"simpleText":"gp"}},{"languageCode":"we","languageName":{"simpleText":"pk"}},{"languageCode":"kt","languageName":{"simpleText":"ek"}},{"languageCode":"hy","languageName":{"simpleText":"ab"}},{"languageCode":"hm","languageName":{"simpleText":"nu"}},{"languageCode":"uw","languageName":{"simpleText":"rx"}},{"languageCode":"or","languageName":{"simpleText":"nf"}},{"languageCode":"dh","languageName":{"simpleText":"zn"}},{"languageCode":"kb","languageName":{"simpleText":"js"}},{"languageCode":"vg","languageName":{"simpleText":"xe"}},{"languageCode":"dl","languageName":{"simpleText":"so"}},{"languageCode":"lz","languageName":{"simpleText":"hb"}},{"languageCode":"ny","languageName":{"simpleText":"xr"}},{"languageCode":"ag","languageName":{"simpleText":"us"}},{"languageCode":"zr","languageName":{"simpleText":"ae"}},{"languageCode":"yq","languageName":{"simpleText":"yc"}},{"languageCode":"up","languageName":{"simpleText":"dc"}},{"languageCode":"zn","languageName":{"simpleText":"jw"}},{"languageCode":"uh","languageName":{"simpleText":"ms"}},{"languageCode":"mt","languageName":{"simpleText":"vf"}},{"languageCode":"lt","languageName":{"simpleText":"ln"}},{"languageCode":"vf","languageName":{"simpleText":"rd"}},{"languageCode":"my","languageName":{"simpleText":"rk"}},{"languageCode":"ei","languageName":{"simpleText":"ul"}},{"languageCode":"dj","languageName":{"simpleText":"cz"}},{"languageCode":"kb","languageName":{"simpleText":"hp"}},{"languageCode":"jj","languageName":{"simpleText":"zf"}},{"languageCode":"ew","languageName":{"simpleText":"ff"}},{"languageCode":"jo","languageName":{"simpleText":"iz"}},{"languageCode":"ja","languageName":{"simpleText":"uz"}},{"languageCode":"yd","languageName":{"simpleText":"or"}},{"languageCode":"tl","languageName":{"simpleText":"tw"}},{"languageCode":"mw","languageName":{"simpleText":"th"}},{"languageCode":"pq","languageName":{"simpleText":"zp"}},{"languageCode":"pq","languageName":{"simpleText":"pk"}},{"languageCode":"ef","languageName":{"simpleText":"fj"}},{"languageCode":"qq","languageName":{"simpleText":"vu"}},{"languageCode":"pj","languageName":{"simpleText":"kp"}},{"languageCode":"ab","languageName":{"simpleText":"xw"}},{"languageCode":"re","languageName":{"simpleText":"ln"}},{"languageCode":"ht","languageName":{"simpleText":"wo"}},{"languageCode":"ju","languageName":{"simpleText":"wb"}},{"languageCode":"yq","languageName":{"simpleText":"xv"}}],"defaultAudioTrackIndex":70}},"videoDetails":{"videoId":"ux","title":"jb","lengthSeconds":"90","keywords":["th","ts","yg","gy","ih","iq","zj"],"channelId":"pg","isOwnerViewing":6,"shortDescription":"ts","isCrawlable":62,"thumbnail":{"thumbnails":[{"url":"vx","width":8,"height":58},{"url":"bp","width":44,"height":79},{"url":"oh","width":47,"height":66},{"url":"hm","width":34,"height":55},{"url":"vr","width":0,"height":20}]},"allowRatings":24,"viewCount":"49","author":"xr","isPrivate":70,"isUnpluggedCorpus":66,"isLiveContent":99},"annotations":[{"playerAnnotationsExpandedRenderer":{"featuredChannel":{"startTimeMs":"96","endTimeMs":"46","watermark":{"thumbnails":[{"url":"li","width":91,"height":28}]},"trackingParams":"an","navigationEndpoint":{"clickTrackingParams":"mg","commandMetadata":{"webCommandMetadata":{"url":"rd","webPageType":"nc","rootVe":69,"apiUrl":"/youtubei/v1/browse"}},"browseEndpoint":{"browseId":"qg"}},"channelName":"ei","subscribeButton":{"subscribeButtonRenderer":{"buttonText":{"runs":[{"text":"pz"}]},"subscribed":44,"enabled":33,"type":"ue","channelId":"ki","showPreferences":71,"subscribedButtonText":{"runs":[{"text":"lk"}]},"unsubscribedButtonText":{"runs":[{"text":"jn"}]},"trackingParams":"oj","unsubscribeButtonText":{"runs":[{"text":"ad"}]},"serviceEndpoints":[{"clickTrackingParams":"wm","commandMetadata":{"webCommandMetadata":{"sendPost":4,"apiUrl":"ky"}},"subscribeEndpoint":{"channelIds":["zt"],"params":"at"}},{"clickTrackingParams":"jg","commandMetadata":{"webCommandMetadata":{"sendPost":28}},"signalServiceEndpoint":{"signal":"ok","actions":[{"clickTrackingParams":"lt","openPopupAction":{"popup":{"confirmDialogRenderer":{"trackingParams":"po","dialogMessages":[{"runs":[{"text":"ou"},{"text":"jt"},{"text":"zz"}]}],"confirmButton":{"buttonRenderer":{"style":"mm","size":"oi","isDisabled":43,"text":{"runs":[{"text":"kc"}]},"serviceEndpoint":{"clickTrackingParams":"gk","commandMetadata":{"webCommandMetadata":{"sendPost":18,"apiUrl":"kc"}},"unsubscribeEndpoint":{"channelIds":["cm"],"params":"ar"}},"accessibility":{"label":"iy"},"trackingParams":"gs"}},"cancelButton":{"buttonRenderer":{"style":"jb","size":"pe","isDisabled":69,"text":{"runs":[{"text":"uv"}]},"accessibility":{"label":"qu"},"trackingParams":"pe"}},"primaryIsCancel":48}},"popupType":"ma"}}]}}],"subscribeAccessibility":{"accessibilityData":{"label":"vh"}},"unsubscribeAccessibility":{"accessibilityData":{"label":"lg"}},"signInEndpoint":{"clickTrackingParams":"eu","commandMetadata":{"webCommandMetadata":{"url":"na"}}}}}},"allowSwipeDismiss":55,"annotationId":"jd"}}],"playerConfig":{"audioConfig":{"loudnessDb":0.9620880668073215,"perceptualLoudnessDb":0.541474004793957,"enablePerFormatLoudness":31},"streamSelectionConfig":{"maxBitrate":"61"},"mediaCommonConfig":{"dynamicReadaheadConfig":{"maxReadAheadMediaTimeMs":100,"minReadAheadMediaTimeMs":21,"readAheadGrowthRateMs":29}},"webPlayerConfig":{"useCobaltTvosDash":55,"webPlayerActionsPorting":{"getSharePanelCommand":{"clickTrackingParams":"of","commandMetadata":{"webCommandMetadata":{"sendPost":31,"apiUrl":"xl"}},"webPlayerShareEntityServiceEndpoint":{"serializedShareEntity":"tr"}},"subscribeCommand":{"clickTrackingParams":"fs","commandMetadata":{"webCommandMetadata":{"sendPost":13,"apiUrl":"xp"}},"subscribeEndpoint":{"channelIds":["qs"],"params":"oa"}},"unsubscribeCommand":{"clickTrackingParams":"ls","commandMetadata":{"webCommandMetadata":{"sendPost":91,"apiUrl":"wc"}},"unsubscribeEndpoint":{"channelIds":["fo"],"params":"vt"}},"addToWatchLaterCommand":{"clickTrackingParams":"ua","commandMetadata":{"webCommandMetadata":{"sendPost":18,"apiUrl":"iu"}},"playlistEditEndpoint":{"playlistId":"rv","actions":[{"addedVideoId":"iw","action":"rd"}]}},"removeFromWatchLaterCommand":{"clickTrackingParams":"un","commandMetadata":{"webCommandMetadata":{"sendPost":20,"apiUrl":"bl"}},"playlistEditEndpoint":{"playlistId":"zg","actions":[{"action":"ya","removedVideoId":"dk"}]}}},"gatewayExperimentGroup":"vb"}},"storyboards":{"playerStoryboardSpecRenderer":{"spec":"aj","recommendedLevel":87}},"microformat":{"playerMicroformatRenderer":{"thumbnail":{"thumbnails":[{"url":"mm","width":57,"height":94}]},"embed":{"iframeUrl":"bd","width":51,"height":73},"title":{"simpleText":"sg"},"description":{"simpleText":"yv"},"lengthSeconds":"18","ownerProfileUrl":"bg","externalChannelId":"eg","isFamilySafe":88,"availableCountries":["hn","sd","lt","tx","nw","mq","iz","aj","vi","xa","ec","iv","rj","vb","ro","po","mv","mx","cn","ld","tn","ay","gv","bs","vf","da","ss","km","uo","mg","wv","md","lo","nc","vh","li","jh","lj","qq","ci","ob","zy","pu","bl","jm","ge","tt","ov","ue","vp","ka","nh","uc","gb","rs","gu","hm","uv","nq","ga","qu","hr","pj","zq","rh","nn","yv","or","zg","ai","qj","cv","vg","hr","zm","al","mj","fz","yx","st","tt","ih","vm","wq","gx","wi","ys","ug","vb","uh","rf","ry","ba","xu","ce","eq","bx","he","jm","ie","nb","cd","qz","no","yq","qe","jy","wd","pm","nb","hk","em","im","iv","ld","gz","fe","ut","md","gw","sf","yz","yp","xr","gm","uo","kg","yo","wv","da","wt","ry","it","gz","mm","ho","mf","lq","tu","im","lu","gm","pa","ny","gu","ds","yx","yh","jk","qb","jv","mp","bi","nr","mc","bg","ym","zt","sh","kd","gj","dp","qw","eh","no","pj","nq","dy","gt","cm","pg","ce","jt","xv","tf","ue","ke","hs","xh","tc","ad","yg","uh","cd","zc","rj","kq","sp","vv","xt","bo","am","kg","kx","xb","fr","il","qi","ap","pe","tg","im","cs","vy","zu","cq","bu","og","tf","ze","zj","um","vd","ot","al","zl","um","jv","ss","md","xm","nv","id","es","jf","as","zb","ms","uv","jh","xz","em","uv","bk","zx","wp","ay","ub","pa","rf","yi","zm","em","pu","xs"],"isUnlisted":24,"hasYpcMetadata":38,"viewCount":"6","category":"qh","publishDate":"eb","ownerChannelName":"mf","uploadDate":"ax"}},"cards":{"cardCollectionRenderer":{"cards":[{"cardRenderer":{"teaser":{"simpleCardTeaserRenderer":{"message":{"simpleText":"ha"},"trackingParams":"ra","prominent":9,"logVisibilityUpdates":88,"onTapCommand":{"clickTrackingParams":"dy","changeEngagementPanelVisibilityAction":{"targetId":"qc","visibility":"mh"}}}},"cueRanges":[{"startCardActiveMs":"41","endCardActiveMs":"81","teaserDurationMs":"31","iconAfterTeaserMs":"65"}],"trackingParams":"sn"}}],"headerText":{"simpleText":"mi"},"icon":{"infoCardIconRenderer":{"trackingParams":"tq"}},"closeButton":{"infoCardIconRenderer":{"trackingParams":"nz"}},"trackingParams":"ss","allowTeaserDismiss":55,"logIconVisibilityUpdates":49}},"trackingParams":"lt","attestation":{"playerAttestationRenderer":{"challenge":"rg","botguardData":{"program":"vk","interpreterSafeUrl":{"privateDoNotAccessOrElseTrustedResourceUrlWrappedValue":"ap"},"serverEnvironment":83}}},"videoQualityPromoSupportedRenderers":{"videoQualityPromoRenderer":{"triggerCriteria":{"connectionWhitelist":["vs"],"joinLatencySeconds":85,"rebufferTimeSeconds":89,"watchTimeWindowSeconds":21,"refractorySeconds":41},"text":{"runs":[{"text":"it"},{"text":"qt","bold":60}]},"endpoint":{"clickTrackingParams":"lw","commandMetadata":{"webCommandMetadata":{"url":"ih","webPageType":"xa","rootVe":73}},"urlEndpoint":{"url":"ms","target":"tj"}},"trackingParams":"vd","snackbar":{"notificationActionRenderer":{"responseText":{"runs":[{"text":"pp"}]},"actionButton":{"buttonRenderer":{"text":{"runs":[{"text":"yw"}]},"navigationEndpoint":{"clickTrackingParams":"sq","commandMetadata":{"webCommandMetadata":{"url":"wp","webPageType":"zn","rootVe":21}},"urlEndpoint":{"url":"ju","target":"dy"}},"trackingParams":"zj"}},"trackingParams":"nh"}}}},"messages":[{"mealbarPromoRenderer":{"icon":{"thumbnails":[{"url":"ek","width":71,"height":69}]},"messageTexts":[{"runs":[{"text":"ew"}]}],"actionButton":{"buttonRenderer":{"style":"gz","size":"tz","text":{"runs":[{"text":"ga"}]},"trackingParams":"qr","command":{"clickTrackingParams":"wk","commandExecutorCommand":{"commands":[{"clickTrackingParams":"dw","commandMetadata":{"webCommandMetadata":{"url":"po","webPageType":"fl","rootVe":70,"apiUrl":"ot"}},"browseEndpoint":{"browseId":"pl","params":"zo"}},{"commandMetadata":{"webCommandMetadata":{"sendPost":10,"apiUrl":"rv"}},"feedbackEndpoint":{"feedbackToken":"xi","uiActions":{"hideEnclosingContainer":25}}}]}}}},"dismissButton":{"buttonRenderer":{"style":"ol","size":"og","text":{"runs":[{"text":"yv"}]},"trackingParams":"ch","command":{"clickTrackingParams":"uu","commandExecutorCommand":{"commands":[{"clickTrackingParams":"ig","commandMetadata":{"webCommandMetadata":{"sendPost":71,"apiUrl":"en"}},"feedbackEndpoint":{"feedbackToken":"wh","uiActions":{"hideEnclosingContainer":45}}}]}}}},"triggerCondition":"pb","style":"uq","trackingParams":"rp","impressionEndpoints":[{"clickTrackingParams":"xb","commandMetadata":{"webCommandMetadata":{"sendPost":73,"apiUrl":"wl"}},"feedbackEndpoint":{"feedbackToken":"wf","uiActions":{"hideEnclosingContainer":95}}}],"isVisible":17,"messageTitle":{"runs":[{"text":"ir"}]},"enableSharedFeatureForImpressionHandling":21}}],"adPlacements":[{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"AD_PLACEMENT_KIND_MILLISECONDS","adTimeOffset":{"offsetStartMilliseconds":"7","offsetEndMilliseconds":"39"},"hideCueRangeMarker":true}},"renderer":{"linearAdSequenceRenderer":{"linearAds":[{"instreamVideoAdRenderer":{"playerOverlay":{"instreamAdPlayerOverlayRenderer":{"skipOrPreviewRenderer":{"skipAdRenderer":{"preskipRenderer":{"adPreviewRenderer":{"thumbnail":{"thumbnail":{"thumbnails":[{"url":"https://i.ytimg.com/vi/AERLXaPKn_U/mqdefault.jpg","width":46,"height":25}]},"trackingParams":"ye"},"trackingParams":"dq","templatedCountdown":{"templatedAdText":{"text":"ps","isTemplated":82,"trackingParams":"cc"}},"durationMilliseconds":44}},"skippableRenderer":{"skipButtonRenderer":{"message":{"text":"xz","isTemplated":30,"trackingParams":"um"},"trackingParams":"ge"}},"trackingParams":"zg","skipOffsetMilliseconds":88}},"trackingParams":"qd","visitAdvertiserRenderer":{"buttonRenderer":{"style":"fv","text":{"simpleText":"on"},"icon":{"iconType":"vw"},"navigationEndpoint":{"clickTrackingParams":"mk","commandMetadata":{"webCommandMetadata":{"url":"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C3OQpfbUyZYWKL_Ken8RMFbClwAyRha6dc6fw7oP7EbaQHxABIABgyfb4hsijoBmCARdjYS1wdWItNjIxOTgxMTc0NzA0OTM3MYgBAaAB59zF2gOoAwSqBLMDT9ATfUTpaHDVXptzXB0Bqtu5dBV_jsP-c6MPkZYSL8_SrzCV3_f4sBsAHAi3Utb4zaJFaF_HvQdtBwss4wAA_skHdbFnpl5-EMNyyzlRw-Cndshj8CGQYwd1ZXhxlU46cvUuzxBe4SvQuo5EZgRv_zIYfKVpOj81ol3soC-FTzrjxhngpg6E1SEy8MZ8S5ykzm_m-YEKix3QCVLlSpEedBunRo295OkIwlFwaIQk8cLxsmnYhxdD_0zLFeTvwe5Q5tNO9mqkUZ7rAyzCTey_m5MZVo67-fDtV0elSQR79C9ErFiOQ5SaPsQgzk7zE3jxPNZYzV0zKOQ245eF3ZWxcGIrFA5NPIvvBwOl60ABjpEgQjQ4y2LpZnygmW_9ikThHx_iC4RujeV7iSAG5Fvv28wptAmCq7jMu5tWztpr-nl-Y0Iz7dA2FeeEOcd4ddn596NriGGT8AjZAXhtD7yJ8tRBEO3P48giFZj81WrpYHUvNhfx24PguTj-IBSpw2uQbemku11WDOxo7SI20n_fPtLcaEXB3YUajshnd5LoR4NlONEqC0f_uYwLaHt5X4Fw1hd8oAZUgAeBo7oliAcBkAcCqAf5sbECqAfnnbECqAfonbECqAfqt7ECqAentbMVqAfvtbECqAfwtbECqAeCqrECqAePOgHqNIbqAe2B6gHpJqxAqgHkZ-xAqgHsJuxAqgH36GxAqgHrrGxAqgHpqqxAqgH_bKxAqgHgcYbqAf8r7ECqAerxRuoB5zcG6gH5p2xAqgHyJ-xAqgHt6GxAqgH66WxAqgHyqmxApIIC242UFJubjBtcFpjqAgB0ggcCIAREAIYWjIDgoAEOgeP0ICAgIAESNmg0jVQFPIIH2NhLXl0LWhvc3QtcHViLTE4MDAxMjAxBZAyMzA2NTWaCRtodHRwczovL2xhdW5pdGVjLm5ldC9lY29tYTKxCS-fhg771OyRyAkYyAmPAcgJkAGYCwGhC8vk5LIcunUAugtXCAEQARgFIAEoATABQAFIAWAAaABwAogBAJgBAaIBLwoYIAPauAQSMhA6DgoMKDBIs5vbluYKmBkBEAEYACAAWABgAHAA0AEBqAIFwAIC2AEBgAIBiAIG0AsS2gw8CgoQ8Pj1wrn_sa1tEgIBAxoqCAESGf6BmeYY2b35qxjevPmrGJO89uoDvoSxpgPO7YnF2kwgmtyo08MEmg0BEqoNAlVTuBP___________8BsBQBwBXJgIBA0BUB2BUBkBYBmBYB4hYCCAGAFwGKFxoIAxgBIAEoATABOAFAAUgBUAFYAWACaAFwAaAXAakXG4oLaa1eRvW6FwQoADAA&ase=2&num=1&cid=CAASD-D4c9DOhTCuXm4CeUayPw&ad_cpn=%5BAD_CPN%5D&sig=AOD64_1U5dvH2jbnEq_3j0LlY381EiWpog&ms=[CLICK_MS]&adurl=https://garlo.com/enapa2%3Fgc_id%3D20599670093&label=video_click_to_advertiser_site&ctype=110","webPageType":"ry","rootVe":62}},"urlEndpoint":{"url":"lq","target":"wt"}},"trackingParams":"mh"}},"adBadgeRenderer":{"simpleAdBadgeRenderer":{"text":{"text":"kw","isTemplated":93,"trackingParams":"jg"},"trackingParams":"at"}},"adDurationRemaining":{"adDurationRemainingRenderer":{"templatedCountdown":{"templatedAdText":{"text":"rl","isTemplated":73,"trackingParams":"le"}},"trackingParams":"tr"}},"adInfoRenderer":{"adHoverTextButtonRenderer":{"button":{"buttonRenderer":{"style":"le","size":"nb","isDisabled":41,"serviceEndpoint":{"clickTrackingParams":"jt","openPopupAction":{"popup":{"aboutThisAdRenderer":{"url":{"privateDoNotAccessOrElseTrustedResourceUrlWrappedValue":"as"},"trackingParams":"vy"}},"popupType":"xn"}},"icon":{"iconType":"vl"},"trackingParams":"lm","accessibilityData":{"accessibilityData":{"label":"qi"}}}},"hoverText":{"simpleText":"zk"},"trackingParams":"qa"}},"flyoutCtaRenderer":{"flyoutCtaRenderer":{"image":{"thumbnail":{"thumbnails":[{"url":"pv"}]},"trackingParams":"jo"},"headline":{"text":"qx","isTemplated":10,"trackingParams":"um"},"description":{"text":"mf","trackingParams":"fe"},"actionButton":{"buttonRenderer":{"text":{"simpleText":"kq"},"navigationEndpoint":{"clickTrackingParams":"cm","commandMetadata":{"webCommandMetadata":{"url":"wa","webPageType":"nq","rootVe":69}},"urlEndpoint":{"url":"ln","target":"nd"}},"trackingParams":"no"}},"startMs":45,"trackingParams":"ge"}},"adLayoutLoggingData":{"serializedAdServingDataEntry":"xd"},"elementId":"tc","inPlayerSlotId":"gg","inPlayerLayoutId":"cm"}},"trackingParams":"uy","layoutId":"ff","associatedPlayerBytesLayoutId":"dy"}},{"adActionInterstitialRenderer":{"image":{"thumbnail":{"thumbnails":[{"url":"gv"}]},"trackingParams":"at"},"headline":{"text":"ow","isTemplated":66,"trackingParams":"za"},"description":{"text":"ds","isTemplated":95,"trackingParams":"fc"},"actionButton":{"buttonRenderer":{"style":"ys","text":{"simpleText":"aq"},"navigationEndpoint":{"clickTrackingParams":"vu","commandMetadata":{"webCommandMetadata":{"url":"zn","webPageType":"jv","rootVe":38}},"urlEndpoint":{"url":"df","target":"xe"}},"trackingParams":"za"}},"durationMilliseconds":44,"countdownRenderer":{"timedPieCountdownRenderer":{"trackingParams":"xg"}},"navigationEndpoint":{"clickTrackingParams":"vg","loggingUrls":[{"baseUrl":"bc"}],"commandMetadata":{"webCommandMetadata":{"url":"sn","webPageType":"vb","rootVe":34}},"urlEndpoint":{"url":"ex","target":"nb"}},"trackingParams":"iw","backgroundImage":{"thumbnail":{"thumbnails":[{"url":"cm"}]},"trackingParams":"br"},"adRendererCommands":{"impressionCommand":{"clickTrackingParams":"dj","commandExecutorCommand":{"commands":[{"clickTrackingParams":"li","loggingUrls":[{"baseUrl":"wa"}],"pingingEndpoint":{"hack":0}}]}}},"skipButton":{"skipButtonRenderer":{"message":{"text":"jg","isTemplated":95,"trackingParams":"by"},"trackingParams":"kl"}},"adLayoutLoggingData":{"serializedAdServingDataEntry":"kt"},"layoutId":"cv","inPlayerSlotId":"qt","inPlayerLayoutId":"yy","associatedPlayerBytesLayoutId":"dx"}},{"instreamVideoAdRenderer":{"playerOverlay":{"instreamAdPlayerOverlayRenderer":{"skipOrPreviewRenderer":{"skipAdRenderer":{"preskipRenderer":{"adPreviewRenderer":{"thumbnail":{"thumbnail":{"thumbnails":[{"url":"pz","width":32,"height":43}]},"trackingParams":"iz"},"trackingParams":"yo","templatedCountdown":{"templatedAdText":{"text":"we","isTemplated":91,"trackingParams":"si"}},"durationMilliseconds":10}},"skippableRenderer":{"skipButtonRenderer":{"message":{"text":"bp","isTemplated":93,"trackingParams":"mo"},"trackingParams":"cp"}},"trackingParams":"qr","skipOffsetMilliseconds":60}},"trackingParams":"zf","visitAdvertiserRenderer":{"buttonRenderer":{"style":"ya","text":{"simpleText":"fv"},"icon":{"iconType":"bx"},"navigationEndpoint":{"clickTrackingParams":"bw","commandMetadata":{"webCommandMetadata":{"url":"ht","webPageType":"gv","rootVe":14}},"urlEndpoint":{"url":"wi","target":"te"}},"trackingParams":"gr"}},"adBadgeRenderer":{"simpleAdBadgeRenderer":{"text":{"text":"ox","isTemplated":66,"trackingParams":"td"},"trackingParams":"ng"}},"adDurationRemaining":{"adDurationRemainingRenderer":{"templatedCountdown":{"templatedAdText":{"text":"zu","isTemplated":15,"trackingParams":"py"}},"trackingParams":"hb"}},"adInfoRenderer":{"adHoverTextButtonRenderer":{"button":{"buttonRenderer":{"style":"vn","size":"cw","isDisabled":56,"serviceEndpoint":{"clickTrackingParams":"jh","openPopupAction":{"popup":{"aboutThisAdRenderer":{"url":{"privateDoNotAccessOrElseTrustedResourceUrlWrappedValue":"zx"},"trackingParams":"yl"}},"popupType":"tw"}},"icon":{"iconType":"ar"},"trackingParams":"vi","accessibilityData":{"accessibilityData":{"label":"hy"}}}},"hoverText":{"simpleText":"ap"},"trackingParams":"pp"}},"flyoutCtaRenderer":{"flyoutCtaRenderer":{"image":{"thumbnail":{"thumbnails":[{"url":"ol"}]},"trackingParams":"kz"},"headline":{"text":"wa","isTemplated":43,"trackingParams":"yb"},"description":{"text":"cl","trackingParams":"aq"},"actionButton":{"buttonRenderer":{"text":{"simpleText":"xg"},"navigationEndpoint":{"clickTrackingParams":"wp","commandMetadata":{"webCommandMetadata":{"url":"uh","webPageType":"bs","rootVe":44}},"urlEndpoint":{"url":"xq","target":"fi"}},"trackingParams":"fo"}},"startMs":5,"trackingParams":"kh"}},"adLayoutLoggingData":{"serializedAdServingDataEntry":"ir"},"elementId":"mp","inPlayerSlotId":"fh","inPlayerLayoutId":"bh"}},"trackingParams":"ao","layoutId":"gc","associatedPlayerBytesLayoutId":"up"}},{"adActionInterstitialRenderer":{"image":{"thumbnail":{"thumbnails":[{"url":"wj"}]},"trackingParams":"zr"},"headline":{"text":"rq","isTemplated":82,"trackingParams":"gr"},"description":{"text":"fj","isTemplated":57,"trackingParams":"li"},"actionButton":{"buttonRenderer":{"style":"mu","text":{"simpleText":"cg"},"navigationEndpoint":{"clickTrackingParams":"eb","commandMetadata":{"webCommandMetadata":{"url":"vn","webPageType":"nw","rootVe":96}},"urlEndpoint":{"url":"bs","target":"dr"}},"trackingParams":"iq"}},"durationMilliseconds":39,"countdownRenderer":{"timedPieCountdownRenderer":{"trackingParams":"mt"}},"navigationEndpoint":{"clickTrackingParams":"uz","loggingUrls":[{"baseUrl":"rn"}],"commandMetadata":{"webCommandMetadata":{"url":"cu","webPageType":"qs","rootVe":26}},"urlEndpoint":{"url":"ty","target":"he"}},"trackingParams":"bw","backgroundImage":{"thumbnail":{"thumbnails":[{"url":"pd"}]},"trackingParams":"wm"},"adRendererCommands":{"impressionCommand":{"clickTrackingParams":"io","commandExecutorCommand":{"commands":[{"clickTrackingParams":"hd","loggingUrls":[{"baseUrl":"hz"}],"pingingEndpoint":{"hack":81}}]}}},"skipButton":{"skipButtonRenderer":{"message":{"text":"db","isTemplated":42,"trackingParams":"ga"},"trackingParams":"pa"}},"adLayoutLoggingData":{"serializedAdServingDataEntry":"bt"},"layoutId":"ec","inPlayerSlotId":"nl","inPlayerLayoutId":"qh","associatedPlayerBytesLayoutId":"qe"}}]}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"rj"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"zf","adTimeOffset":{"offsetStartMilliseconds":"63","offsetEndMilliseconds":"83"},"hideCueRangeMarker":true}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"59","getAdBreakUrl":"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"LigQMVuP3nAx3LwQfSGhgYmqsEWANi"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"AD_PLACEMENT_KIND_START","adTimeOffset":{"offsetStartMilliseconds":"330100","offsetEndMilliseconds":"594666"},"hideCueRangeMarker":true}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"0","getAdBreakUrl":"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"LigQMVuP3nAx3LwQfSGhgYmqsEWANi"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"AD_PLACEMENT_KIND_MILLISECONDS","adTimeOffset":{"offsetStartMilliseconds":"65","offsetEndMilliseconds":"30"},"hideCueRangeMarker":true}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"51","getAdBreakUrl":"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"wg"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"AD_PLACEMENT_KIND_MILLISECONDS","adTimeOffset":{"offsetStartMilliseconds":"56","offsetEndMilliseconds":"86"},"hideCueRangeMarker":true}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"25","getAdBreakUrl":"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"nh"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"AD_PLACEMENT_KIND_END","adTimeOffset":{"offsetStartMilliseconds":"25","offsetEndMilliseconds":"13"},"hideCueRangeMarker":true}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"32","getAdBreakUrl":"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"ti"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"AD_PLACEMENT_KIND_MILLISECONDS","adTimeOffset":{"offsetStartMilliseconds":"47","offsetEndMilliseconds":"84"},"hideCueRangeMarker":true}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"10","getAdBreakUrl":"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"go"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"AD_PLACEMENT_KIND_MILLISECONDS","adTimeOffset":{"offsetStartMilliseconds":"14","offsetEndMilliseconds":"87"},"hideCueRangeMarker":true}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"79","getAdBreakUrl":"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"wi"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"AD_PLACEMENT_KIND_MILLISECONDS","adTimeOffset":{"offsetStartMilliseconds":"34","offsetEndMilliseconds":"12"},"hideCueRangeMarker":true}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"27","getAdBreakUrl":"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"fp"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"AD_PLACEMENT_KIND_MILLISECONDS","adTimeOffset":{"offsetStartMilliseconds":"66","offsetEndMilliseconds":"35"},"hideCueRangeMarker":true}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"98","getAdBreakUrl":"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"cn"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"AD_PLACEMENT_KIND_MILLISECONDS","adTimeOffset":{"offsetStartMilliseconds":"59","offsetEndMilliseconds":"8"},"hideCueRangeMarker":true}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"26","getAdBreakUrl":"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"wz"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"AD_PLACEMENT_KIND_MILLISECONDS","adTimeOffset":{"offsetStartMilliseconds":"84","offsetEndMilliseconds":"90"},"hideCueRangeMarker":true}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"92","getAdBreakUrl":"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"nl"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"AD_PLACEMENT_KIND_MILLISECONDS","adTimeOffset":{"offsetStartMilliseconds":"50","offsetEndMilliseconds":"67"},"hideCueRangeMarker":true}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"96","getAdBreakUrl":"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"ov"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"AD_PLACEMENT_KIND_MILLISECONDS","adTimeOffset":{"offsetStartMilliseconds":"13","offsetEndMilliseconds":"2"},"hideCueRangeMarker":true}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"52","getAdBreakUrl":"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"by"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"AD_PLACEMENT_KIND_MILLISECONDS","adTimeOffset":{"offsetStartMilliseconds":"73","offsetEndMilliseconds":"64"},"hideCueRangeMarker":true}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"67","getAdBreakUrl":"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"uc"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"AD_PLACEMENT_KIND_MILLISECONDS","adTimeOffset":{"offsetStartMilliseconds":"10","offsetEndMilliseconds":"zo"},"hideCueRangeMarker":true}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"22","getAdBreakUrl":"https://www.youtube.com/get_midroll_info?ei=l3FgBarVGsIphxLPxuRduBc&m_pos=330&token=RLJjkrMhTDF1XyVxobLOmsF6L503baqxgf8zHtyL78tfro_JRoNlfUoKtHWX2jso_GFC-H_ls4xj56iIKpT0KTxmL6pBydJcB_KTnotW1Kxo4HXObZOq6QB1pko2sTXpiLrkJms8CUEhtmyJi4JLbzgqpKLHDEPl661jo3yXCRv0JEFo_M8Kbs-NJqqhNk-CRJ_s8hTmbiMZPaPBDZtVQ-NB0zXsJDIwj2XvPAaTetL-zmXE540lFCFBTmjXZ_xJyO2NATx6lkN7RoJZL2oRwXCH1rZDjXoOvFwjXFWV9JSPwCRzajtfJUVyGROxkM6BX896KoL4rFXfYzJZBZ1QOvbMxJD4laKN5xMb5KPz5Jq54KXXO76NpvMuOlkHb5qf-k2-Z&index=2&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver=2.20231003.02.02&m_pos_ms=330200"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"en"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"AD_PLACEMENT_KIND_SELF_START"}},"renderer":{"actionCompanionAdRenderer":{"headline":{"text":"eg","isTemplated":93,"trackingParams":"it"},"description":{"text":"ux","isTemplated":43,"trackingParams":"sj"},"actionButton":{"buttonRenderer":{"text":{"simpleText":"de"},"navigationEndpoint":{"clickTrackingParams":"ex","commandMetadata":{"webCommandMetadata":{"url":"ue","webPageType":"ow","rootVe":77}},"urlEndpoint":{"url":"yh","target":"pg"}},"trackingParams":"xf"}},"iconImage":{"thumbnail":{"thumbnails":[{"url":"te","width":19,"height":23}]},"trackingParams":"lv"},"bannerImage":{"thumbnail":{"thumbnails":[{"url":"gj","width":38,"height":67}]},"trackingParams":"ow"},"navigationEndpoint":{"clickTrackingParams":"um","commandMetadata":{"webCommandMetadata":{"url":"fq","webPageType":"fd","rootVe":61}},"urlEndpoint":{"url":"gi","target":"tq"}},"trackingParams":"ie","adInfoRenderer":{"adHoverTextButtonRenderer":{"button":{"buttonRenderer":{"style":"ng","size":"xv","isDisabled":53,"icon":{"iconType":"bq"},"navigationEndpoint":{"clickTrackingParams":"yl","openPopupAction":{"popup":{"aboutThisAdRenderer":{"url":{"privateDoNotAccessOrElseTrustedResourceUrlWrappedValue":"po"},"trackingParams":"hi"}},"popupType":"sb"}},"trackingParams":"ho","accessibilityData":{"accessibilityData":{"label":"kl"}}}},"hoverText":{"simpleText":"xd"},"trackingParams":"dv"}},"adVideoId":"je","impressionPings":[{"baseUrl":"xj"}],"adLayoutLoggingData":{"serializedAdServingDataEntry":"dt"},"associatedCompositePlayerBytesLayoutId":"te"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"vs"}}}],"adSlots":[{"adSlotRenderer":{"adSlotMetadata":{"slotId":"1234","slotType":"SLOT_TYPE_PLAYER_BYTES","adSlotLoggingData":{"serializedSlotAdServingDataEntry":"ob"},"triggerEvent":"SLOT_TRIGGER_EVENT_BEFORE_CONTENT"},"fulfillmentContent":{"fulfilledLayout":{"playerBytesAdLayoutRenderer":{"adLayoutMetadata":{"layoutId":"ot","layoutType":"xg","adLayoutLoggingData":{"serializedAdServingDataEntry":"yk"}},"renderingContent":{"playerBytesSequentialLayoutRenderer":{"sequentialLayouts":[{"playerBytesAdLayoutRenderer":{"adLayoutMetadata":{"layoutId":"je","layoutType":"ww","adLayoutLoggingData":{"serializedAdServingDataEntry":"ve"}},"renderingContent":{"instreamVideoAdRenderer":{"skipOffsetMilliseconds":94,"pings":{"impressionPings":[{"baseUrl":"pl"},{"baseUrl":"zs"}],"errorPings":[{"baseUrl":"hh"}],"mutePings":[{"baseUrl":"qh"}],"unmutePings":[{"baseUrl":"ey"}],"pausePings":[{"baseUrl":"pz"}],"rewindPings":[{"baseUrl":"bh"}],"resumePings":[{"baseUrl":"mw"}],"skipPings":[{"baseUrl":"si"}],"closePings":[{"baseUrl":"oh"}],"progressPings":[{"baseUrl":"ly","offsetMilliseconds":1},{"baseUrl":"ac","offsetMilliseconds":80},{"baseUrl":"sy","offsetMilliseconds":72}],"fullscreenPings":[{"baseUrl":"kw"}],"activeViewViewablePings":[{"baseUrl":"oz"}],"endFullscreenPings":[{"baseUrl":"uc"}],"activeViewMeasurablePings":[{"baseUrl":"vu"}],"abandonPings":[{"baseUrl":"sf"}],"activeViewFullyViewableAudibleHalfDurationPings":[{"baseUrl":"qg"}],"completePings":[{"baseUrl":"jv"}],"activeViewTracking":{"trafficType":"sq"}},"clickthroughEndpoint":{"clickTrackingParams":"fn","commandMetadata":{"webCommandMetadata":{"url":"tf","webPageType":"ox","rootVe":73}},"urlEndpoint":{"url":"ny","target":"uc"}},"csiParameters":[{"key":"qe","value":"em"}],"playerVars":"suppress_creator_endscreen=1&is_trueview_action","elementId":"bq","trackingParams":"dr","legacyInfoCardVastExtension":"pa","sodarExtensionData":{"siub":"mi","bgub":"hc","scs":"cw","bgp":"co"},"externalVideoId":"ya","adLayoutLoggingData":{"serializedAdServingDataEntry":"jj"},"layoutId":"sc"}}}},{"playerBytesAdLayoutRenderer":{"adLayoutMetadata":{"layoutId":"nr","layoutType":"kn","adLayoutLoggingData":{"serializedAdServingDataEntry":"cf"}},"renderingContent":{"adActionInterstitialRenderer":{"durationMilliseconds":52,"trackingParams":"yq","abandonCommands":{"commands":[{"clickTrackingParams":"wi","loggingUrls":[{"baseUrl":"jb"}],"pingingEndpoint":{"hack":90}}]},"skipPings":[{"baseUrl":"av"}],"layoutId":"nj"}}}},{"playerBytesAdLayoutRenderer":{"adLayoutMetadata":{"layoutId":"nl","layoutType":"wm","adLayoutLoggingData":{"serializedAdServingDataEntry":"zw"}},"renderingContent":{"instreamVideoAdRenderer":{"skipOffsetMilliseconds":80,"pings":{"impressionPings":[{"baseUrl":"ji"},{"baseUrl":"ao"},{"baseUrl":"cc"}],"errorPings":[{"baseUrl":"jt"}],"mutePings":[{"baseUrl":"mn"},{"baseUrl":"ce"}],"unmutePings":[{"baseUrl":"rd"},{"baseUrl":"lb"}],"pausePings":[{"baseUrl":"et"},{"baseUrl":"fv"}],"rewindPings":[{"baseUrl":"ft"}],"resumePings":[{"baseUrl":"qj"},{"baseUrl":"ot"}],"skipPings":[{"baseUrl":"ky"},{"baseUrl":"jb"}],"closePings":[{"baseUrl":"hw"}],"progressPings":[{"baseUrl":"vh","offsetMilliseconds":36},{"baseUrl":"um","offsetMilliseconds":77},{"baseUrl":"sq","offsetMilliseconds":19},{"baseUrl":"ui","offsetMilliseconds":15},{"baseUrl":"nl","offsetMilliseconds":86}],"fullscreenPings":[{"baseUrl":"rp"},{"baseUrl":"cn"}],"activeViewViewablePings":[{"baseUrl":"ml"},{"baseUrl":"kq"}],"endFullscreenPings":[{"baseUrl":"ym"}],"activeViewMeasurablePings":[{"baseUrl":"di"},{"baseUrl":"ol"}],"abandonPings":[{"baseUrl":"aj"},{"baseUrl":"wo"}],"activeViewFullyViewableAudibleHalfDurationPings":[{"baseUrl":"ms"},{"baseUrl":"uj"}],"startPings":[{"baseUrl":"gy"}],"firstQuartilePings":[{"baseUrl":"ly"}],"secondQuartilePings":[{"baseUrl":"sw"}],"thirdQuartilePings":[{"baseUrl":"gt"}],"completePings":[{"baseUrl":"hu"},{"baseUrl":"gs"}],"activeViewTracking":{"trafficType":"mr"}},"clickthroughEndpoint":{"clickTrackingParams":"yq","commandMetadata":{"webCommandMetadata":{"url":"dn","webPageType":"ms","rootVe":54}},"urlEndpoint":{"url":"hs","target":"jt"}},"csiParameters":[{"key":"zn","value":"eq"}],"playerVars":"bi","elementId":"gr","trackingParams":"qc","legacyInfoCardVastExtension":"xv","sodarExtensionData":{"siub":"ul","bgub":"yr","scs":"ui","bgp":"vy"},"externalVideoId":"fp","adLayoutLoggingData":{"serializedAdServingDataEntry":"gt"},"layoutId":"bh"}}}},{"playerBytesAdLayoutRenderer":{"adLayoutMetadata":{"layoutId":"xy","layoutType":"bf","adLayoutLoggingData":{"serializedAdServingDataEntry":"rj"}},"renderingContent":{"adActionInterstitialRenderer":{"durationMilliseconds":95,"trackingParams":"ee","abandonCommands":{"commands":[{"clickTrackingParams":"mi","loggingUrls":[{"baseUrl":"yi"},{"baseUrl":"tm"}],"pingingEndpoint":{"hack":47}}]},"skipPings":[{"baseUrl":"uk"},{"baseUrl":"yj"}],"layoutId":"ft"}}}}]}},"layoutExitNormalTriggers":[{"id":"hq","onLayoutSelfExitRequestedTrigger":{"triggeringLayoutId":"hv"}}],"layoutExitSkipTriggers":[{"id":"up","skipRequestedTrigger":{"triggeringLayoutId":"nm"}},{"id":"yl","skipRequestedTrigger":{"triggeringLayoutId":"gh"}},{"id":"zd","skipRequestedTrigger":{"triggeringLayoutId":"mo"}},{"id":"bc","skipRequestedTrigger":{"triggeringLayoutId":"jj"}}],"layoutExitMuteTriggers":[{"id":"ql","skipRequestedTrigger":{"triggeringLayoutId":"hr"}},{"id":"rc","skipRequestedTrigger":{"triggeringLayoutId":"ln"}}]}}},"slotEntryTrigger":{"id":"lc","beforeContentVideoIdStartedTrigger":{}},"slotFulfillmentTriggers":[{"id":"xq","slotIdEnteredTrigger":{"triggeringSlotId":"da"}}],"slotExpirationTriggers":[{"id":"vv","slotIdExitedTrigger":{"triggeringSlotId":"re"}},{"id":"jg","onNewPlaybackAfterContentVideoIdTrigger":{}}]}}],"adBreakHeartbeatParams":"mw","frameworkUpdates":{"entityBatchUpdate":{"mutations":[{"entityKey":"pz","type":"az","payload":{"offlineabilityEntity":{"key":"ql","command":{"innertubeCommand":{"clickTrackingParams":"nz","ypcGetOfflineUpsellEndpoint":{"params":"pw"}}},"addToOfflineButtonState":"os","contentCheckOk":false,"racyCheckOk":false,"loggingDirectives":{"trackingParams":"xp","visibility":{"types":"1"},"enableDisplayloggerExperiment":true}}}}],"timestamp":{"seconds":"19","nanos":12}}}}}',
objectRepresentation:{playerResponse:DMc}}];_.Ro=[[["NGVkNXE0a2luZCNmMWZ0M24=","bm56OWkzdmFsdWUjbzd3cjA4"],"anF5dWxiQURfUExBQ0VNRU5UX0tJTkRfU1RBUlQjcTFhZm9h"]];_.Uh=["NDVidXFmZ2xvYmFsQ2FsbGJhY2tzI201ZnJleA==","cWUyZWM5b25BYm5vcm1hbGl0eURldGVjdGVkI2d6aXQ5OQ==","czk3bTgyb25BZFNraXAjOGpxc2c=","NnllazBjcmF3X3BsYXllcl9yZXNwb25zZSM4djE2cXU=","OTd5N3UxYWRTbG90cyNoamMzZXg="];_.wL="NDVidXFmZ2xvYmFsQ2FsbGJhY2tzI201ZnJleA== cWUyZWM5b25BYm5vcm1hbGl0eURldGVjdGVkI2d6aXQ5OQ== czk3bTgyb25BZFNraXAjOGpxc2c= NnllazBjcmF3X3BsYXllcl9yZXNwb25zZSM4djE2cXU= ZzZsd3Bqd2ViX3BsYXlsaXN0X3F1ZXVlX211bHRpcGxlX3NraXBzX2tzI2JiMnhxMQ== dG82YXh5YWJfc2FfZWYjaXR2ejV6 OTd5N3UxYWRTbG90cyNoamMzZXg=".split(" ");var OyG=[["primary",null],[null,["ytd-two-column-browse-results-renderer","style-scope"]],["masthead-ad",["ytd-rich-grid-renderer"]],[null,["ytd-rich-grid-renderer","style-scope"]],[null,["ytd-banner-promo-renderer","style-scope"]],[null,["ytd-ad-slot-renderer"]]];var up;up=function(F,W,E){this.fke=F;this.isAsync=W;this.pvi=E};
_.hJb=[new up("b.f_",!1,0),new up("j.s_",!1,2),new up("r.s_",!1,4),new up("e.h_",!1,6),new up("i.s_",!0,8),new up("s.t_",!1,10),new up("p.h_",!1,12),new up("s.i_",!1,14),new up("f.i_",!1,16),new up("a.b_",!1,18),new up("a.o_",!1),new up("g.o_",!1,22),new up("p.i_",!1,24),new up("p.m_",!1),new up("n.k_",!0,20),new up("i.f_",!1),new up("a.s_",!0),new up("m.c_",!1),new up("n.h_",!1,26),new up("o.p_",!1),new up("m.p_",!0,28),new up("o.a_",!1),new up("d.p_",!1),new up("e.i_",!1)].reduce(function(F,W){F[W.fke]=
W;return F},{});var xMH=function(){};
xMH.prototype.flush=function(F,W){F=F===void 0?[]:F;W=W===void 0?!1:W;if(_.c("enable_client_streamz_web")){F=_.U(F);for(var E=F.next();!E.done;E=F.next())E=b2a(E.value),this.rootSpec&&_.hy(E,2,this.rootSpec),E={serializedIncrementBatch:_.FG(E.JSC$7512_serializeBinary())},_.Pc("streamzIncremented",E,{sendIsolatedPayload:W})}};
var t8e=function(){};
_.k(t8e,xMH);var kdH=function(F){var W=new Xkz;var E=new qfX;E=_.QJ(E,1,"botguard");F=_.QJ(E,2,F);this.rootSpec=_.dU(W,1,H2c,F)};
_.k(kdH,xMH);var d2,AM_=new Map;var ylr,B_n,LoY,clo,kSo,azn,iyw,Pao;ylr=2;B_n=2;LoY=2;clo=2;kSo=2;azn=2;iyw=2;Pao=new JN_;var LOH,qcH,$Mz;LOH=function(){this.ongoingFlowNonces=new Map};
_.Qc=function(){qcH||(qcH=new LOH);return qcH};
_.Mz=function(F,W,E){return{eventType:{flowEventNamespace:F,flowEventType:W},metadata:E,statusCode:void 0,csn:void 0,can:void 0}};
_.N5n=function(F,W){var E=_.Qc(),h=$Mz(E,W,!0);_.g2(E,F,W,h)};
_.g2=function(F,W,E,h){F={flowNonce:h||$Mz(F,E),flowType:E,flowEventType:W.eventType};W.metadata&&(F.flowMetadata=W.metadata);W.statusCode!==void 0&&(F.flowEventStatus=W.statusCode);W.csn&&(F.csn=W.csn);W.can&&(F.can=W.can);_.Pc("flowEvent",F,void 0)};
$Mz=function(F,W,E){E=E===void 0?!1:E;var h=F.ongoingFlowNonces.get(W);if(!h||E)h=Xf(16),F.ongoingFlowNonces.set(W,h);return h};_.ZpT=new P5_;var eJe={UNKNOWN:"unknown",BROWSE:"browse",WATCH:"watch",SEARCH:"search",ACCOUNTS:"accounts",SETTINGS:"settings",WELCOME:"welcome",ACCOUNT_SELECTOR:"account_selector",CHANNEL:"channel",PLAYLIST:"playlist",SIGN_IN_IDENTIFIER_ENTRY:"sign_in_identifier_entry",SIGN_IN_PASSWORD_ENTRY:"sign_in_password_entry",SIGN_IN_DEVICE_PROMPT_CHALLENGE:"sign_in_device_prompt_challenge",SHORTS:"shorts",PROMO:"promo",CALL_TO_CAST:"call_to_cast",AMBIENT_INTERLUDES:"ambient_interludes",PRIVACY:"privacy",NO_OP:"noop",MINI_APP:"mini_app",
MINI_APP_EMBED:"mini_app",OPEN_IN_APP:"open_in_app",LEARNING_JOURNEY_WATCH:"learning_journey_watch"};var Sl=function(F,W,E,h,d,V,R){E=E===void 0?!1:E;h=h===void 0?!1:h;V=V===void 0?_.o0():V;this.hasRun=!1;this.lvu=F;this.zvx=W;this.vWr=E;this.fromHistory=h;this.previousVideoId=d;this.exF=V;this.tempData=R;this.tqp=new _.ayO};
_.k(Sl,h5);Sl.prototype.validate=function(F){return!(!F.data.playerResponse||F.data.page!=="watch"&&F.data.page!=="learning_journey_watch"&&F.data.page!=="shorts"||this.hasRun)};
Sl.prototype.handle=function(F){var W=this,E=_.D(F.endpoint,_.GM),h=_.D(F.endpoint,_.DP);if(_.c("kevlar_continue_playback_without_player_response")&&(E==null?0:E.videoId)&&this.previousVideoId&&(E==null?void 0:E.videoId)===this.previousVideoId&&(E==null?0:E.continuePlayback)&&!this.fromHistory)this.lvu.resolve();else{var d={};E?d.watch_endpoint=E:h&&(d.watch_endpoint=h,h.endTimeSeconds&&(d.end=h.endTimeSeconds));F.data.page==="watch"?(F.data.filler||this.vWr||(_.JF("cfg"),_.o_.getInstance().triggerAction("yt-start-loading-watch")),
Object.assign(d,X$B(this,F.endpoint)),_.c("enable_masthead_quartile_ping_fix")&&Object.assign(d,Hpa(this)),E=!_.c("web_honor_cache_for_back")&&this.fromHistory?{cached_load:!0}:void 0,Object.assign(d,E),F.data.forceExternalPlaylist&&(d.external_list=!0)):F.data.page==="shorts"?_.o_.getInstance().triggerAction("yt-start-loading-shorts"):F.data.page==="learning_journey_watch"&&_.o_.getInstance().triggerAction("yt-start-loading-learning-journey");if(E=this.zvx()){try{E.loadVideoWithPlayerResponse(F.data.playerResponse,
d),E.getPlayerPromise().then(this.lvu.resolve)}catch(V){_.a_(V),this.lvu.resolve()}this.hasRun=!0;E.getPlayerPromise().then(function(V){V.addEventListener("onAbnormalityDetected",function(){var R=F.data.playerResponse,M=V.getVideoData().cpn;iyw=0;_.st_=M;if(M=EgR(R))W.tqp.increment("IN_PLAYER"),_.zB(5),_.c("ab_st_vid_ks")?V.pauseVideo(!0):V.stopVideo(),R.playabilityStatus=Object.assign({},R.playabilityStatus,{status:"ERROR",errorScreen:{enforcementMessageViewModel:M}}),R.videoDetails=void 0,_.o_.getInstance().triggerOptionalAction("yt-updated-playability-status",
R.playabilityStatus)})})}else _.OB(Error("Jf"))}};
var X$B=function(F,W){var E=_.D(W,_.GM);if(W&&E&&E.playlistId&&E.videoId&&(F=F.exF,F.queueProxy?(F=F.queueProxy,E=F.listId===E.playlistId?F.attributionData.get(E.videoId):void 0):E=void 0,E))return{queue_info:E}},Hpa=function(F){var W;
if((W=F.tempData)==null?0:W.adpings)return{adpings:F.tempData.adpings}};var po=function(F,W,E){this.hasRun=!1;this.oWx=F;this.bwH=W;this.kyv=E};
_.k(po,h5);po.prototype.validate=function(F){return!!_.xd.getValueByKeys.apply(null,[F.data].concat(_.x9(FOT)))};
po.prototype.handle=function(F){var W=this;this.oWx.promise.then(function(){var E=F.data;var h=_.xd.getValueByKeys.apply(null,[E].concat(_.x9(YLM))),d=_.xd.getValueByKeys.apply(null,[E].concat(_.x9(mui))),V=_.xd.getValueByKeys.apply(null,[E].concat(_.x9(uJc)));var R=(R=_.xd.getValueByKeys.apply(null,[E].concat(_.x9(w3U))))?{videoId:R.videoId,thumbnail:R.thumbnail,title:R.title?_.Gr(R.title):void 0,shortBylineText:R.author?_.Gr(R.author):void 0}:void 0;var M=void 0;_.c("web_get_playlist_id_from_current_endpoint_ks")||
(M=_.xd.getValueByKeys.apply(null,[E].concat(_.x9(SLM))));var g=_.xd.getValueByKeys.apply(null,[E].concat(_.x9(Km_))),t=_.xd.getValueByKeys.apply(null,[E].concat(_.x9(p3u))),C=!!g||!!t&&!!t.results&&t.results.length>0,B=0;d&&d.currentIndex&&d.localCurrentIndex&&(B=d.currentIndex-d.localCurrentIndex);d&&d.playlistId&&(M=d.playlistId);E={rawResponse:E,autoplayRenderer:h,hasRelatedVideoData:C,playingVideo:R,playingVideoId:V,playlistPanelRenderer:d,playlistId:M,playlistIndex:d&&d.currentIndex,relatedVideoArgs:g,
endScreenRenderer:t,playlistIndexOffset:B};a:{h=W.kyv;d=W.bwH;h.response=E;if(C6H(E))h.downloadPlaylistProxy&&h.downloadPlaylistProxy.getPlaylistId()===tdM(E)||(h.downloadPlaylistProxy=new nf_(tdM(E),h.setPlaylistData.bind(h),h.isPlayingOfflineVideo.bind(h))),h.responsePlaylistData=h.downloadPlaylistProxy.getPlaylistData(),h.listId=tdM(E),h.index=0;else if(E.playlistPanelRenderer&&E.playlistId&&E.autoplayRenderer)E.playlistId.startsWith("TLPQ")?h.queueProxy?h.listId===E.playlistId?(h.index=E.playlistIndex,
h.responsePlaylistData=E.playlistPanelRenderer,h.queueProxy.JSC$10655_setCurrentIndex(h.index)):E.playingVideoId&&h.index!==void 0&&d.clientParams.autoSaveToQueue&&(h.index+=1,h.queueProxy.JSC$10655_setCurrentIndex(h.index),h.queueProxy.addVideos([E.playingVideoId],{},h.index)):(h.queueProxy=new _.bp(h.JSC$10709_playlistNetworkManager,E.playlistId,h.setPlaylistData.bind(h),h.clearQueue.bind(h),_.V8Y(E.playlistPanelRenderer),h.storage),h.responsePlaylistData=E.playlistPanelRenderer,h.listId=E.playlistId,
h.index=E.playlistIndex):(h.index=E.playlistIndex,h.listId!==E.playlistId&&h.clearQueue(),h.responsePlaylistData=E.playlistPanelRenderer,h.listId=E.playlistId,h.playlistProxy=new G9e(h.JSC$10709_playlistNetworkManager,E.playlistId,h.setPlaylistData.bind(h),_.V8Y(E.playlistPanelRenderer)));else if(!h.queueProxy)h.responsePlaylistData=void 0;else if(E.playingVideoId&&d.clientParams.autoSaveToQueue){if(h.index===void 0){_.a_(Error("Ff"));h.clearQueue();break a}h.queueProxy.videoIds.includes(E.playingVideoId)||
(h.index+=1,h.queueProxy.JSC$10655_setCurrentIndex(h.index),h.queueProxy.addVideos([E.playingVideoId],{},h.index))}_.GY(h,_.YQ(h,h.response.autoplayRenderer))}})};var P6X=function(F,W){W=W===void 0?_.o0():W;I0.call(this);this.bN.push(new po(this.xT,{clientParams:{miniplayer:!1,autoSaveToQueue:!1}},W));this.bN.push(new Sl(this.xT,F,!1,!1));_.c("web_response_commands_chunk_processor")&&this.bN.push(new ct)};
_.k(P6X,I0);P6X.prototype.processChunk=function(F){F&&F.data.player===void 0&&this.xT.resolve();I0.prototype.processChunk.call(this,F)};var m8=function(F,W){F=F===void 0?{layer:0}:F;this.hasRun=!1;this.createScreenConfig=F;this.axP=W};
_.k(m8,h5);m8.prototype.validate=function(F){return!(this.hasRun||!F.endpoint)};
m8.prototype.handle=function(F){var W=_.z4(),E,h,d=(h=_.D((E=F.endpoint)==null?void 0:E.commandMetadata,_.m1))==null?void 0:h.rootVe;this.axP&&d?_.QH(W,d,this.axP,this.createScreenConfig):k$z(W,F.endpoint,this.createScreenConfig);this.hasRun=!0};var Ko=function(F,W){this.hasRun=!1;this.dGp=F;this.previousVideoId=W};
_.k(Ko,h5);Ko.prototype.validate=function(F){return _.c("kevlar_continue_playback_without_player_response")&&(F=_.D(F.endpoint,_.GM),(F==null?0:F.videoId)&&this.previousVideoId&&(F==null?void 0:F.videoId)===this.previousVideoId&&(F==null?0:F.continuePlayback))?!1:this.dGp.icI===0};
Ko.prototype.handle=function(F){_.o_.getInstance().triggerAction("yt-stop-old-player",F.data,!0)};var JMB=function(F){F=F===void 0?{layer:0}:F;I0.call(this);this.bN.push(new Ko(this));this.bN.push(new m8(F));this.bN.push(new vt(F))};
_.k(JMB,I0);var aCM=function(){this.hasRun=this.hasRun=!1};
_.k(aCM,h5);aCM.prototype.validate=function(F){return!this.hasRun&&!(!F.data.csn||!F.data.rootVe)};
aCM.prototype.handle=function(F){this.hasRun=!0;_.$ob(F.data.csn,F.data.rootVe,3)};var fCe=function(){h5.apply(this,arguments)};
_.k(fCe,h5);fCe.prototype.validate=function(F){return!!F.data.preconnect};
fCe.prototype.handle=function(F){_.P5("bc");F=_.U(F.data.preconnect);for(var W=F.next();!W.done;W=F.next())W=W.value,(new Image).src=W};var OpU=function(F,W,E){E=E===void 0?{layer:0}:E;I0.call(this);this.bN.push(new Sl(this.xT,F));this.bN.push(new m8(E));this.bN.push(new vt(E))};
_.k(OpU,I0);var bpu=function(F,W,E,h,d){E=E===void 0?{layer:0}:E;h=h===void 0?_.o0():h;I0.call(this);var V=!!W&&!!W.clientParams&&!!W.clientParams.miniplayer;V&&this.bN.push(new aCM);this.bN.push(new po(this.xT,W,h));this.bN.push(new fCe);var R,M;this.bN.push(new Sl(this.xT,F,V,!((R=W.clientParams)==null||!R.fromHistory),(M=W.clientParams)==null?void 0:M.previousVideoId,h,W.tempData));var g;this.bN.push(new Ko(this,(g=W.clientParams)==null?void 0:g.previousVideoId));var t;(t=W.clientParams)!=null&&t.fromHistory||
(E.layer||(E=Object.assign({},E,{layer:V?3:0})),this.bN.push(new m8(E,d)),this.bN.push(new vt(E)));_.c("web_response_commands_chunk_processor")&&this.bN.push(new ct)};
_.k(bpu,I0);var FB,yMX;FB={};
_.lCH=(FB["subs-guide-item"]={bodyText:"SUBS_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},FB["subs-filter-by-channel"]={bodyText:"SUBS_FILTER_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},FB["subs-filtered-by-channel"]={bodyText:"SUBS_FILTER_EDU_CHANNEL_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},FB["membership-join"]={titleText:"JOIN_MEMBERSHIP_EDU_TITLE",bodyText:"JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},FB["membership-freebie-join"]=
{bodyText:"FREEBIE_JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},FB["membership-manage"]={bodyText:"MANAGE_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},FB["library-guide-item"]={titleText:"LIBRARY_GUIDE_ITEM_EDU_TITLE",bodyText:"LIBRARY_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},FB);_.W2=new _.bY("yt-edu");_.noc=function(){this.JSC$10811_eduDisplayedThisLoad_={}};
yMX=function(F){var W=_.noc.getInstance();var E=_.dV("kevlar_tooltip_impression_cap");W=E&&parseInt(_.W2.get(F+"-impression")||0,10)>=E||_.W2.get(F+"-dismissed")?!1:(E=_.lCH[F])&&!W.JSC$10811_eduDisplayedThisLoad_[E.setKey||F]&&(E.titleText&&_.CY(E.titleText)||E.bodyText&&_.CY(E.bodyText))?!0:!1;if(!W)return null;W=_.lCH[F];if(!W)return null;E=W.bodyText?_.CY(W.bodyText):void 0;var h=W.titleText?_.CY(W.titleText):void 0;return[{openPopupAction:{popupType:"HINT",position:W.position,popup:{bubbleHintRenderer:{text:h?
_.Gr(h):void 0,detailsText:E?_.Gr(E):void 0,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP",confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.Gr(_.CY("EDU_GOT_IT")),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{eduDismissAction:{key:F}}]}}}}}}}},{eduImpressionAction:{key:F}}]};
_.RZ(_.noc);var VBo=!1;for(var jtU="WEB_PAGE_TYPE_SETTINGS red playlist labs handle ypc-offers show ypc-checkout".split(" "),ipc=[],Ek=6;Ek>=1;Ek--)ipc.push({columnCount:Ek,query:Ek==1?0:Ek*2*107-4+32,className:"grid-"+Ek+"-columns",width:Ek*2*107+"px"});_.T1O=function(F){this.actionRouter_=F=F===void 0?_.o_.getInstance():F;this.documentWidth_=document.body.clientWidth;this.currentSnapState_=_.rM_(this);this.miniGuideVisible_=this.guidePersistentAndVisible_=!1};
_.rM_=function(F){var W=F.miniGuideVisible_?72:0,E=F.documentWidth_-(F.guidePersistentAndVisible_?240:W);return ipc.find(function(h){return E>h.query})};
_.RZ(_.T1O);var oo_=function(){var F=this;this.JSC$10823_keyboardInUse=!1;document.addEventListener("keydown",function(){F.onKeydown()});
document.addEventListener("mousedown",function(){F.JSC$10823_keyboardInUse=!1})},GdO;
oo_.prototype.isKeyBoardInUse=function(){return this.JSC$10823_keyboardInUse};
oo_.prototype.onKeydown=function(){this.JSC$10823_keyboardInUse=!0};var Yc_,NX;_.hl=new _.bY("yt-mentions");_.d_=function(){};
Yc_=function(F,W){return NX(W,"drag-to-reorder-edu-displayed")};
NX=function(F,W,E,h,d,V){E=E===void 0?"OPEN_POPUP_POSITION_TOP":E;if(W){if(_.hl.get(W))return;_.hl.set(W,!0,h)}if(d&&V!==void 0){W=Number(_.hl.get(d)||0);if(W>=V)return;_.hl.set(d,W+1)}return[{openPopupAction:{popupType:"HINT",position:E,popup:{bubbleHintRenderer:{detailsText:F,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP"}}}}]};
_.RZ(_.d_);var w$z,utB,ScT;w$z=function(F,W,E,h){this.JSC$10833_taskManager_=F;this.onFulfilled_=typeof W==="function"?W:null;this.onRejected_=typeof E==="function"?E:null;this.JSC$10833_context_=h};
utB=function(F,W){F.onFulfilled_&&_.qY(F.JSC$10833_taskManager_,function(){F.onFulfilled_.call(F.JSC$10833_context_,W)})};
ScT=function(F,W){F.onRejected_&&_.qY(F.JSC$10833_taskManager_,function(){F.onRejected_.call(F.JSC$10833_context_,W)})};
_.VV=function(F){this.JSC$10836_taskManager_=F;this.callbacks_=[]};
_.VV.prototype.then=function(F,W,E){this.callbacks_.push(new w$z(this.JSC$10836_taskManager_,F,W,E));return this};
_.VV.prototype.onSuccess=function(F){this.callbacks_.forEach(function(W){utB(W,F)})};
_.VV.prototype.onFailure=function(F){this.callbacks_.forEach(function(W){ScT(W,F)})};
_.VV.prototype.cancel=function(){this.callbacks_.length=0};
jIM(_.VV);_.ggS=null;_.$Y=new _.NG("ACTIVITY_TOKEN");var B5Y=/^[a-zA-Z0-9_\-]{11}$/;var vgY=_.Lv(function(){var F,W;return(W=(F=window).matchMedia)==null?void 0:W.call(F,"(prefers-reduced-motion: reduce)").matches});var p$H=_.Lv(function(){if(window.MediaSource&&typeof window.MediaSource.isTypeSupported==="function")return window.MediaSource.isTypeSupported('video/webm; codecs="vp09.00.51.08.01.01.01.01.00"');if(window.ManagedMediaSource&&typeof window.ManagedMediaSource.isTypeSupported==="function")return window.ManagedMediaSource.isTypeSupported('video/webm; codecs="vp09.00.51.08.01.01.01.01.00"');var F=_.ju("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_");F||(F=_.Cr("VIDEO"),_.S5("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_",
F));return!!(F&&F.canPlayType&&F.canPlayType('video/webm; codecs="vp09.00.51.08.01.01.01.01.00"'))});var mMa;_.Uk=new _.NG("SHORTS_CONTROLLER_TOKEN");mMa=new _.NG("SHORTS_STATE_STORE_TOKEN");var Rv=function(F,W){var E=_.Dd.apply(2,arguments);F=F===void 0?0:F;_.xC.call(this,W,E);this.errorType=F;Object.setPrototypeOf(this,this.constructor.prototype)};
_.k(Rv,_.xC);var KOO,F3z,E6a,u$I,uv,IkW,V6c,Nqi,Q8_,eQM,RQH;KOO=new RegExp("jct sld rapt cid channel_creation_token force_ad_format ex_ads extra_kw".split(" ").map(function(F){return F+"="}).join("|"));
F3z=RegExp(".*\\?.*playnext=1.*");_.e8=function(F,W,E,h){this.watchEndpointMap=F;this.reelWatchEndpointMap=W;this.innerTubeTransportService=E;this.fetchPbj=h};
E6a=function(F,W,E){var h=_.WZ().resolve(_.Fd(W3O));_.e8.instance=new _.e8(F,W,E,h)};
_.hQ_=function(F,W){var E=_.dV("web_pbj_log_warning_rate",0);E=E>0&&Math.random()<E;var h;if((h=_.D(W.commandMetadata,_.m1))==null||!h.rootVe)return E&&_.OB(Error("Pf")),!1;var d;h=(d=_.D(W.commandMetadata,_.m1))==null?void 0:d.url;if(!h)return E&&_.OB(Error("Qf")),!1;if(F3z.test(h))return!0;if(KOO.test(h))return E&&_.OB(Error("Rf`"+h)),!1;if(_.D(W,_.GM)){if(!(F.watchEndpointMap.watchNext&&F.watchEndpointMap.player||_.c("kevlar_fetch_initial_data_op_watch_client")))return E&&_.OB(Error("Lf")),!1;
F=_.dV("web_pbj_log_warning_rate",0);F=F>0&&Math.random()<F;_.D(W,_.GM)?tBI(W)?W=!0:(F&&_.OB(Error("Mf")),W=!1):(F&&_.OB(Error("Lf")),W=!1);return W}if(_.D(W,_.DP))return CDI(W);if(_.D(W,_.ni))return!0;F=_.rY(F.innerTubeTransportService,W);!F&&E&&_.a_(Error("Sf"),"WARNING",void 0,void 0,void 0,{command:JSON.stringify(W)});return F};
u$I=function(F,W,E,h,d,V){W={url:W};if(E==null?0:E.itct)W.parentTrackingParams=E.itct;var R=_.SF(fWu);return _.no(F.innerTubeTransportService,W,R).then(function(M){(M=M.endpoint)||(M=_.xQ);(E==null?0:E.itct)&&M&&!M.trackingParams&&(M.trackingParams=E.itct);var g=Io(M);return uv(F,M,E,h,g,d,V)})};
uv=function(F,W,E,h,d,V,R,M){M=M===void 0?{}:M;if(F.fetchPbj&&!_.hQ_(F,W)&&!_.c("force_one_platform")){M=F.fetchPbj(W);var g=_.e7(M.then(function(G){if(!G)throw Error("Tf");R(g)||V(W,G);return G}));
return g}var t,C,B={rootVe:(t=_.D(W.commandMetadata,_.m1))==null?void 0:t.rootVe,url:(C=_.D(W.commandMetadata,_.m1))==null?void 0:C.url,endpoint:W,page:d};if(_.D(W,_.GM)){var I,x={contentPlaybackContext:_.xu(E,(I=_.D(W.commandMetadata,_.m1))==null?void 0:I.url,h)},A=_.G_();_.c("web_streaming_watch")&&window.TextDecoderStream?(M=d_u(F.innerTubeTransportService,W,x,function(G){!B.response&&G.content&&(B.response=G.content);!B.playerResponse&&G.player&&(B.playerResponse=G.player);V(W,B)}),t=WTe(W),t.length&&
(B.preconnect=t,V(W,B)),Nqi(M,A,B).catch(function(G){G instanceof Rv&&G.errorType===2&&V6c(F,W,x,B,V,R,A)})):V6c(F,W,x,B,V,R,A);
return A.promise}if(_.D(W,_.DP)){var X;if(((X=_.D(W,_.DP))==null?void 0:X.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var P=_.G_();_.U__(_.WZ().resolve(_.Uk),W).then(function(G){RQH(F,E,h,d,V,P,G)});
return P.promise}M=_.e7();var b;t={contentPlaybackContext:_.xu(E,(b=_.D(W.commandMetadata,_.m1))==null?void 0:b.url,h)};(b=F.reelWatchEndpointMap.player)&&(b=b().JSC$11812_getRequest(W,t))&&(M=_.no(F.innerTubeTransportService,b.innerTubeRequest,b.input,W.clickTrackingParams,b.config));b=_.e7();(C=F.reelWatchEndpointMap.reelItemWatch)&&(C=C().JSC$11812_getRequest(W))&&(b=_.no(F.innerTubeTransportService,C.innerTubeRequest,C.input,W.clickTrackingParams,C.config));C=_.e7();(I=F.reelWatchEndpointMap.reelWatchSequence)&&
_.D(W,_.DP).sequenceParams&&(t=I().JSC$11812_getRequest(W,t))&&(C=_.no(F.innerTubeTransportService,t.innerTubeRequest,t.input,W.clickTrackingParams,t.config));t=_.e7(B);I=_.G_();eQM(W,t,M,b,C,V,R,I);return I.promise}var l;if(_.D(W,MBY)&&((l=_.D(W.commandMetadata,_.m1))==null?0:l.url))return M=k$R(_.y$(LC().location.href),_.y$(_.D(W.commandMetadata,_.m1).url)).toString(),u$I(F,M,E,h,V,function(){return!1});
if(_.D(W,_.ni))return V(W,B),_.e7(B);if(_.rY(F.innerTubeTransportService,W)){M=Object.assign({},{tempData:E,disableCache:E.disableCache},M);var w=_.T_(F.innerTubeTransportService,W,M).then(function(G){B.response=G;R(w)||V(W,B);return B});
return w}return _.e7(B)};
_.g6H=function(F,W,E,h){if(_.D(W,_.GM)||_.D(W,_.DP)&&(_.c("mweb_enable_shorts_innertube_player_prefetch")||_.c("kevlar_enable_shorts_prefetch_in_sequence"))||_.D(W,XDU)&&_.c("web_enable_prefetching_videos_on_home")){var d,V={contentPlaybackContext:_.xu(E,(d=_.D(W.commandMetadata,_.m1))==null?void 0:d.url,h),prefetchPlaybackContext:cqo(E)},R,M,g;if(((R=_.D(W,_.GM))==null?void 0:(M=R.watchEndpointSupportedPrefetchConfig)==null?void 0:(g=M.prefetchHintConfig)==null?void 0:g.prefetchType)==="PREFETCH_TYPE_WATCH_NEXT"){if(E=
F.watchEndpointMap.watchNext)if(V=E().JSC$11812_getRequest(W,V))return Promise.resolve(_.no(F.innerTubeTransportService,V.innerTubeRequest,V.input,void 0,V.config).then(function(B){return B}))}else if(_.D(W,_.DP)&&_.c("web_prefetch_riw_for_next_video")){if(E=F.reelWatchEndpointMap.reelItemWatch)if((E=E().JSC$11812_getRequest(W,V))&&_.no(F.innerTubeTransportService,E.innerTubeRequest,E.input,void 0,E.config).then(function(B){return B}),E=F.reelWatchEndpointMap.player)if(V=E().JSC$11812_getRequest(W,
V))return Promise.resolve(_.no(F.innerTubeTransportService,V.innerTubeRequest,V.input,void 0,V.config).then(function(B){return B}))}else if(E=F.watchEndpointMap.player)if(V=E().JSC$11812_getRequest(W,V))return Promise.resolve(_.no(F.innerTubeTransportService,V.innerTubeRequest,V.input,void 0,V.config).then(function(B){return B}))}else if(_.rY(F.innerTubeTransportService,W)){var t={tempData:E},C=M6H(F.innerTubeTransportService,W);
return C?new Promise(function(B,I){var x,A;return _.e(function(X){if(X.nextAddress==1)return _.Q(X,C,2);if(X.nextAddress!=4)return x=X.yieldResult,x.JSC$11819_getStoreKey(W,t)?_.Q(X,_.T_(F.innerTubeTransportService,W,t),4):(I(new _.xC("Prefetching request builder with no store key.",W)),X.jumpTo(0));A=X.yieldResult;B(A);_.gG(X)})}):Promise.reject(new _.xC("Prefetching unregistered request builder.",W))}return Promise.reject(new _.xC("No request builder available to prefetch endpoint.",W))};
IkW=function(F,W){var E,h,d;if(_.D(W,_.GM)){var V=F.watchEndpointMap.watchNext;V&&(E=V());(F=F.watchEndpointMap.player)&&(h=F())}else if(_.D(W,_.DP))(V=F.reelWatchEndpointMap.reelItemWatch)&&(E=V()),(V=F.reelWatchEndpointMap.player)&&(h=V()),(F=F.reelWatchEndpointMap.reelWatchSequence)&&(d=F());else{a:{F=z$Y(W,F.innerTubeTransportService.endpointMap);if(F!==void 0)if(typeof F.then==="function")_.a_(new _.xC("Attempted to get deferred RequestBuilder that is unresolved or still wrapped.",W));else break a;
F=void 0}F&&(E=F)}var R,M,g;return{content:(R=E)==null?void 0:R.JSC$11819_getStoreKey(W),player:(M=h)==null?void 0:M.JSC$11819_getStoreKey(W),reelSequence:(g=d)==null?void 0:g.JSC$11819_getStoreKey(W)}};
V6c=function(F,W,E,h,d,V,R){var M=_.e7(),g=F.watchEndpointMap.player;g&&(g=g().JSC$11812_getRequest(W,E))&&(M=_.no(F.innerTubeTransportService,g.innerTubeRequest,g.input,W.clickTrackingParams,g.config));g=_.e7();var t=F.watchEndpointMap.watchNext;t&&(E=t().JSC$11812_getRequest(W,E))&&(g=_.no(F.innerTubeTransportService,E.innerTubeRequest,E.input,W.clickTrackingParams,E.config));F=_.e7(h);Q8_(W,F,M,g,d,V,R)};
Nqi=function(F,W,E){return _.e(function(h){if(h.nextAddress==1)return _.Q(h,F,2);W.resolve(E);_.gG(h)})};
Q8_=function(F,W,E,h,d,V,R){var M,g,t,C,B;_.e(function(I){switch(I.nextAddress){case 1:return _.Q(I,W,2);case 2:M=I.yieldResult;if(V(R.promise))return R.resolve(M),I.return();d(F,M);g=WTe(F);if(!g.length){I.jumpTo(3);break}return _.Q(I,W,4);case 4:M.preconnect=g,d(F,M);case 3:return _.Nl(I,5),_.Q(I,E,7);case 7:t=I.yieldResult;_.id(I,6);break;case 5:return C=_.Ml(I),R.reject(C),I.return();case 6:if(t===void 0)return M.reload=!0,d(F,M),R.resolve(M),I.return();if(V(R.promise))return R.resolve(M),I.return();
M.playerResponse=t;d(F,M);_.Nl(I,8);return _.Q(I,h,10);case 10:B=I.yieldResult;_.id(I,9);break;case 8:_.Ml(I);case 9:if(B===void 0)return M.response={responseContext:{}},R.resolve(M),I.return();if(V(R.promise))return R.resolve(M),I.return();M.response=B;d(F,M);R.resolve(M);_.gG(I)}})};
eQM=function(F,W,E,h,d,V,R,M){var g,t,C,B,I,x;_.e(function(A){switch(A.nextAddress){case 1:return _.Q(A,W,2);case 2:g=A.yieldResult;if(R(M.promise))return M.resolve(g),A.return();V(F,g);t=WTe(F);if(!t.length){A.jumpTo(3);break}return _.Q(A,W,4);case 4:g.preconnect=t,V(F,g);case 3:return _.Nl(A,5),_.Q(A,E,7);case 7:C=A.yieldResult;_.id(A,6);break;case 5:return B=_.Ml(A),M.reject(B),A.return();case 6:if(C===void 0)return g.reload=!0,V(F,g),M.resolve(g),A.return();if(R(M.promise))return M.resolve(g),
A.return();g.playerResponse=C;V(F,g);_.Nl(A,8);return _.Q(A,h,10);case 10:I=A.yieldResult;_.id(A,9);break;case 8:_.Ml(A);case 9:if(I===void 0)return g.response={responseContext:{}},M.resolve(g),A.return();if(R(M.promise))return M.resolve(g),A.return();g.response=I;V(F,g);_.Nl(A,11);return _.Q(A,d,13);case 13:x=A.yieldResult;_.id(A,12);break;case 11:_.Ml(A);case 12:if(R(M.promise))return M.resolve(g),A.return();g.reelWatchSequenceResponse=x;V(F,g);M.resolve(g);_.gG(A)}})};
RQH=function(F,W,E,h,d,V,R){var M,g,t,C,B,I;_.e(function(x){if((M=R)==null||!M.replacementEndpoint)return V.reject(),x.return();g=R.replacementEndpoint;(t=_.D(g,_.DP))?(R.sequenceContinuation&&(t.sequenceParams=R.sequenceContinuation),C=_.WZ().resolve(_.Uk),B=t.sequenceParams,zQX(C,g)&&delete t.sequenceParams,I=uv(F,g,W,E,h,d,function(){return!1}),I.then(function(A){return _.e(function(X){if(X.nextAddress==1)return t6i(C,{reelWatchEndpoint:{sequenceParams:B}},A),_.Q(X,0,2);
V.resolve(A);_.gG(X)})})):V.reject();
_.gG(x)})};_.Crz=function(F){if(F.validatedFragments_.length==0)return null;if(!F.mergedPrefetchedData_){for(var W=[],E=_.U(F.validatedFragments_),h=E.next();!h.done;h=E.next()){h=_.U(F.fragmentConfiguration_[h.value].graftedKeys);for(var d=h.next();!d.done;d=h.next())(d=F.prefetchedData_[d.value].trackingParams)&&W.push(d)}F.mergedPrefetchedData_={};Object.assign(F.mergedPrefetchedData_,F.prefetchedData_,{clientSideGrafts:W})}return F.mergedPrefetchedData_};var Bqc;_.MX=function(){this.prefetchCache_=new Map;this.pendingPrefetchJob_=null};
Bqc=function(F,W,E){if(_.Q9R(W))return F.prefetchCache_.get(_.zJR(W,E))};_.g_=new _.NG("NAVIGATION_TOKEN");var v6X=function(F){var W=this;var E=E===void 0?kfY():E;var h=h===void 0?_.WZ().resolve(_.g_):h;this.onePickCommand=F;this.JSC$10937_playlistNetworkManager=E;this.navigationManager=h;this.videoPickerBuilder=_.D4r("yt-addtoplaylist");_.Noi(pZe(m0u(SJO(this.videoPickerBuilder.setTitle(F.modalTitle).setSize(1E3).addView(W0_()).addView(F0u())).addView("youtube"),F.selectButtonLabel)),function(d){W.handleAction(d)})};
v6X.prototype.show=function(){this.videoPickerBuilder.build().setVisible(!0)};
v6X.prototype.handleAction=function(F){var W=this;if(F&&this.onePickCommand.listId&&F.action==="picked"&&F.docs){var E=[];F.docs.forEach(function(h){E.push({addedVideoId:h.id,action:"ACTION_ADD_VIDEO"})});
this.JSC$10937_playlistNetworkManager.updatePlaylist(this.onePickCommand.listId,E).then(function(){_.c("playlist_add_video_hard_reload_killswitch")?W.navigationManager.reload():IMB(W.navigationManager)})}};var cnB=function(){if(this.constructor===cnB)throw new TypeError("Uf");};
_.N=cnB.prototype;_.N.dispose=function(){};
_.N.disconnect=function(){};
_.N.reconnect=function(){};
_.N.observe=function(F,W,E){return{element:F,option:E}};
_.N.unobserveByKey=function(){};var AqS=function(F,W){W=W===void 0?0:W;cnB.call(this);this.viewroot=F;this.defaultPrescanHeight=W;this.isConnected=!0;this.pauseObservingUntilReconnect=!1;this.observer=new IntersectionObserver(this.handleObserveEvent.bind(this),F?{root:F,rootMargin:"-0.1px"}:{rootMargin:"-0.1px"});this.prescanObservers=new Map;this.handlers=new Map};
_.k(AqS,cnB);_.N=AqS.prototype;_.N.dispose=function(){this.disconnect();this.handlers.clear()};
_.N.disconnect=function(F){this.isConnected=!1;this.pauseObservingUntilReconnect=F===void 0?!1:F;this.observer.disconnect();F=_.U(this.prescanObservers.values());for(var W=F.next();!W.done;W=F.next())W.value.disconnect()};
_.N.reconnect=function(){if(!this.isConnected){this.isConnected=!0;this.pauseObservingUntilReconnect=!1;for(var F=_.U(this.handlers),W=F.next();!W.done;W=F.next()){var E=_.U(W.value);W=E.next().value;var h=E.next().value;E=!1;h=_.U(h.keys());for(var d=h.next();!d.done;d=h.next())if((d=d.value)&&d.state==="prescan"){E=!0;break}E&&D_e(this,W).observe(W);this.observer.observe(W)}}};
_.N.handleObserveEvent=function(F){F=_.U(F);for(var W=F.next();!W.done;W=F.next()){W=W.value;var E=this.handlers.get(W.target);if(E){var h=W.isIntersecting;E=_.U(E);for(var d=E.next();!d.done;d=E.next()){var V=_.U(d.value);d=V.next().value;V=V.next().value;d&&(d.state==="visible"&&h||d.state==="hidden"&&!h)&&(V(W.target,d.state),d.calledOnce&&this.unobserveByKey({element:W.target,option:d}))}}}};
_.N.handlePrescanEvent=function(F){F=_.U(F);for(var W=F.next();!W.done;W=F.next()){W=W.value;var E=this.handlers.get(W.target);if(E&&W.isIntersecting){E=_.U(E);for(var h=E.next();!h.done;h=E.next()){var d=_.U(h.value);h=d.next().value;d=d.next().value;h&&h.state==="prescan"&&(d(W.target,h.state),h.calledOnce&&this.unobserveByKey({element:W.target,option:h}))}}}};
_.N.observe=function(F,W,E){var h=(h=this.handlers.get(F))&&h.has(E)?{element:F,option:E}:void 0;if(h)return h;h={element:F,option:E};this.handlers.has(F)||this.handlers.set(F,new Map);var d=this.handlers.get(F);d&&!d.has(E)&&d.set(E,W);this.pauseObservingUntilReconnect||(E.state==="prescan"&&D_e(this,F).observe(F),this.observer.observe(F));return h};
_.N.unobserveByKey=function(F){var W=this.handlers.get(F.element);if(W&&W.has(F.option)){W.delete(F.option);if(F&&F.option.state==="prescan")for(var E=_.U(this.prescanObservers.values()),h=E.next();!h.done;h=E.next())h.value.unobserve(F.element);W.size===0&&(this.handlers.delete(F.element),this.observer.unobserve(F.element))}};
var D_e=function(F,W){var E=F.defaultPrescanHeight;W.hasAttribute("prescan-height")&&(W=Number(W.getAttribute("prescan-height")),isNaN(W)||(E=W));if(F.prescanObservers.has(E))return F.prescanObservers.get(E);W="-0.1px -0.1px "+E+"px -0.1px";W=new IntersectionObserver(F.handlePrescanEvent.bind(F),F.viewroot?{root:F.viewroot,rootMargin:W}:{rootMargin:W});F.prescanObservers.set(E,W);return W};var x_i=["browse-video-menu-button","unified-verified-badge","topbar-guide-menu"],kDU=function(){var F,W=this;this.JSC$10954_actionRouter=F=F===void 0?_.o_.getInstance():F;this.targetMap=new Map;this.targetedElements=new WeakMap;this.triggeredTargets=new Set;this.TEST_ONLY={getVisibilityObserver:function(){return W.visibilityObserver},
getVisibilityObservedElementHandlerKeys:function(){return W.visibilityObservedElementHandlerKeys}}},AnM,L3_,ZSz;
kDU.prototype.initVisibilityObserver=function(){!this.visibilityObserver&&_.c("kevlar_use_vimio_behavior")&&_.b0("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"&&(this.visibilityObserver=s9n())};
kDU.prototype.dispose=function(){this.visibilityMonitor&&_.LP(this.visibilityMonitor,"yt-visibility-monitor-refreshed",this.handleVisibilityRefreshed,!1,this);this.visibilityObserver&&this.visibilityObserver.dispose()};
kDU.prototype.handleVisibilityRefreshed=function(){for(var F=_.U(this.targetMap.entries()),W=F.next();!W.done;W=F.next()){var E=_.U(W.value);W=E.next().value;E=E.next().value;_.s8c(this,W,E)}};
_.$_u=function(F,W,E){L3_(F,E);var h=_.qNO(F,W);h.element=E;F.targetedElements.set(E,W);_.s8c(F,W,h)};
L3_=function(F,W){var E=F.targetedElements.get(W);if(E){var h=F.targetMap.get(E);h&&(delete h.element,F.targetMap.set(E,h));F.targetedElements.delete(W);F.visibilityObserver&&F.visibilityObservedElementHandlerKeys&&(E=F.visibilityObservedElementHandlerKeys.get(W))&&(F.visibilityObserver.unobserveByKey(E),F.visibilityObservedElementHandlerKeys.delete(W))}};
_.s8c=function(F,W,E){var h=E.action,d=E.element;d&&h&&(x_i.includes(W)||_.b0("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||F.visibilityMonitor&&F.visibilityMonitor.isNodeVisible(d)?ZSz(F,W,E):F.visibilityObserver&&(F.visibilityObservedElementHandlerKeys||(F.visibilityObservedElementHandlerKeys=new WeakMap),h=F.visibilityObserver.observe(d,function(){ZSz(F,W,E);F.visibilityObservedElementHandlerKeys.delete(d)},{calledOnce:!0,
state:"visible"}),F.visibilityObservedElementHandlerKeys.set(d,h)))};
ZSz=function(F,W,E){var h=E.action;(E=E.element)&&h&&(_.yS(F.JSC$10954_actionRouter,[h],E),F.targetMap.delete(W),F.targetedElements.delete(E),F.triggeredTargets.add(W))};
_.qNO=function(F,W){var E=F.targetMap.get(W);E||(E={},F.targetMap.set(W,E));return E};
_.QV=function(){AnM||(AnM=new kDU);return AnM};var XhX=document.createElement("div");XhX.style.touchAction="pan-down";var L2r=XhX.style.touchAction==="pan-down";var HSi,Pra;HSi=function(){this.hammerFn=G4X();this.JSC$10962_screenManager=_.z4();this.lastPinchTime=NaN;this.nodeManagerMapping=new Map;this.ve=_.LQ(83615);_.t5(this.JSC$10962_screenManager,this.ve);qze()};
_.zS=function(){Pra||(Pra=new HSi);return Pra};
HSi.prototype.registerTouchEvents=function(F,W,E){var h=_.Dd.apply(3,arguments),d=this.hammerFn(F,{cssProps:{},recognizers:[[Hammer.Rotate,{enable:!1}],[Hammer.Pinch,{enable:!1},["rotate"]],[Hammer.Swipe,{enable:!1,direction:Hammer.DIRECTION_HORIZONTAL}],[Hammer.Pan,{enable:!1,direction:Hammer.DIRECTION_HORIZONTAL},["swipe"]],[Hammer.Tap,{enable:!1}],[Hammer.Tap,{enable:!1,event:"doubletap",taps:2},["tap"]],[Hammer.Press,{enable:!1}]]});E&&d.set({touchAction:E});this.nodeManagerMapping.set(F,d);var V=
$4w(W);h=_.U(h);for(var R=h.next();!R.done;R=h.next()){R=R.value;if(R.includes("swipe")||R.includes("pinch")||R.includes("pan"))R.includes("swipe")?d.get("swipe").set({enable:!0,direction:V,velocity:.2}):R.includes("pinch")?d.get("pinch").set({enable:!0}):R.includes("pan")&&(d.get("pan").set({enable:!0,direction:V}),d.get("swipe").set({enable:!0,direction:V,velocity:.2}),d.get("swipe").recognizeWith("pan"));JnX(this,F,d,R)}};
var JnX=function(F,W,E,h){E.on(h,function(d){if(h.includes("pinch"))F.lastPinchTime=Date.now();else if(h.includes("swipe")&&Date.now()-F.lastPinchTime<400)return;d.pointerType!=="mouse"&&(d=h==="doubletap"?{coordinates:d.center}:h.includes("pan")?d:h.includes("swipe")?{target:d.target}:{},W.dispatchEvent(new CustomEvent(h,{bubbles:!0,composed:!0,detail:d})))})};
HSi.prototype.unregisterTouchEvents=function(F){var W=_.Dd.apply(1,arguments),E=this.nodeManagerMapping.get(F);if(E){W=_.U(W);for(var h=W.next();!h.done;h=W.next())E.off(h.value);this.nodeManagerMapping.delete(F);F.style.touchAction="unset"}};var aMH=window.matchMedia&&window.matchMedia("(any-pointer: coarse)").matches;var Z7k=null;var OSe;_.tl=function(F,W,E){var h=E&&E>0?E:0;E=h?Date.now()+h*1E3:0;if((h=h?(0,_.fM_)():OSe())&&window.JSON){typeof W!=="string"&&(W=JSON.stringify(W,void 0));try{h.set(F,W,E)}catch(d){h.remove(F)}}};
_.Cy=function(F){var W=OSe(),E=(0,_.fM_)();if(!W&&!E||!window.JSON)return null;try{var h=W.get(F)}catch(d){}if(typeof h!=="string")try{h=E.get(F)}catch(d){}if(typeof h!=="string")return null;try{h=JSON.parse(h,void 0)}catch(d){}return h};
_.B2=function(F){try{var W=OSe(),E=(0,_.fM_)();W&&W.remove(F);E&&E.remove(F)}catch(h){}};
_.fM_=_.Lv(function(){try{var F=new trn;var W=F.isAvailable()?F:null}catch(E){return null}return W?new _.NW(W):null});
OSe=_.Lv(function(){var F=new CIG;return F.isAvailable()?new _.NW(F):null});var bSX=function(){this.networkEvents=[];this.index=Math.floor(Math.random()*1E5)},Yzw=function(){bSX.instance||(bSX.instance=new bSX);
return bSX.instance},wUr=function(F){var W=F.networkEvents;
F.networkEvents=[];return _.c("enable_network_monitoring")?W:[]};var lMH;lMH={};_.n6p=me("yt-serviceworker-metadata",{objectStores:(lMH.auth={addedAtVersion:1},lMH["resource-manifest-assets"]={addedAtVersion:2},lMH),shared:!0,upgrade:function(F,W){W(1)&&nM(F,"resource-manifest-assets");W(2)&&nM(F,"auth")},
version:2});var fWr=self.location.origin+"/";O7S([/\.css$/,/\.js$/,/\.ico$/,/\/ytmweb\/_\/js\//,/\/ytmweb\/_\/ss\//,/\/kabuki\/_\/js\//,/\/kabuki\/_\/ss\//,/\/ytmainappweb\/_\/js\//,/\/ytmainappweb\/_\/ss\//,/\/ytmusicweb\/_\/js\//,/\/ytmusicweb\/_\/ss\//,/\/music_integrations\/_\/js\//,/\/music_integrations\/_\/ss\//]);O7S([/purge_shell=1/]);var ync=void 0;ync=ync===void 0?[]:ync;for(var j8B=[],iSa=_.U(fpa),rne=iSa.next();!rne.done;rne=iSa.next())j8B.push({key:rne.value});for(var TqO=_.U(ync),o6e=TqO.next();!o6e.done;o6e=TqO.next())j8B.push(o6e.value);var GDz,Lf=_.EY==null?void 0:(GDz=_.EY.performance)==null?void 0:GDz.memory,nge=!1,uMG={},i7n={},qz={},$u=navigator;var v2=function(F){this.JSC$11006_expiringStorage=new sJ(F)};
v2.prototype.set=function(F,W,E){E=E!==void 0?Date.now()+E:void 0;this.JSC$11006_expiringStorage.set(F,W,E)};
v2.prototype.get=function(F){return this.JSC$11006_expiringStorage.get(F)};
v2.prototype.remove=function(F){this.JSC$11006_expiringStorage.remove(F)};var hPo=_.Fc(["https://www.youtube.com/",""]),deo=_.Fc(["https://studio.youtube.com/",""]),ePw="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN",VVe=null,tVr;var YNO=_.Fc(["https://www.youtube.com/iframe_api"]),Iv=function(){this.playerResolver_=_.G_();this.playerPromise_=this.playerResolver_.promise;this.playerVars_=null;this.playbackEndedCallback_=_.sn;this.playbackDurationSeconds_=0},whH=function(F){var W=function(){return window.YT&&typeof window.YT.ready==="function"};
if(W())return _.e7(window.YT);var E=_.G_(),h=_.Cr("SCRIPT");h.onload=h.onreadystatechange=function(){h.readyState&&h.readyState!="loaded"&&h.readyState!="complete"||(h.onload=_.sn,h.onreadystatechange=_.sn,h.onerror=_.sn,W()?E.resolve(window.YT):E.reject(new _.xC("Failed to load the iframe player library","script.onload",h.readyState,typeof window.YT,window.YT?typeof window.YT.ready:"YT.ready() missing",window.yt?typeof window.yt.ready:"yt.ready() missing")))};
h.onerror=function(d){h.onload=_.sn;h.onreadystatechange=_.sn;h.onerror=_.sn;E.reject(new _.xC("Failed to load the iframe player library","script.onerror",d&&d.target&&d.target.src))};
_.nu(h,_.mv(YNO));F.insertBefore(h,F.firstChild);return E.promise},uIp=function(F,W,E){var h,d;
_.e(function(V){switch(V.nextAddress){case 1:return F.playbackEndedCallback_=E,_.Nl(V,2),_.Q(V,whH(W.parentElement||null),4);case 4:h=V.yieldResult;_.id(V,3);break;case 2:return d=_.Ml(V),d instanceof _.xC&&d.args&&d.args[0]=="script.onerror"?_.OB(d):_.a_(d),V.return();case 3:h.ready(function(){return new h.Player(W,{playerVars:{controls:0,enablejsapi:1,iv_load_policy:3,modestbranding:1,mute:1,rel:0,showinfo:0},events:{onReady:F.onPlayerReady_.bind(F),onStateChange:F.onPlayerStateChange_.bind(F),
onCueRangeExit:F.onCueRangeExit_.bind(F)}})}),_.gG(V)}})};
_.N=Iv.prototype;_.N.getPlayerPromise=function(){return this.playerPromise_};
_.N.onPlayerReady_=function(F){this.playerResolver_.resolve(F.target)};
_.N.onPlayerStateChange_=function(F){if(F.data==YT.PlayerState.PLAYING){F=F.target;var W=F.getCurrentTime();F.addCueRange("playback",W,W+this.playbackDurationSeconds_)}};
_.N.onCueRangeExit_=function(F){F.data=="playback"&&(F.target.stopVideo(),this.playbackEndedCallback_())};
_.N.stopVideo=function(){this.playerPromise_.then(function(F){F.stopVideo()})};
var SN_=function(F){F.playerVars_&&F.playerPromise_.then(function(W){typeof W.cueVideoByPlayerVars!="function"?_.OB(new _.xC("vmh: player API not ready","cueVideoByPlayerVars",typeof W.cueVideoByPlayerVars)):W.cueVideoByPlayerVars(F.playerVars_)})};
Iv.prototype.playVideo=function(){var F=this;this.playerVars_&&this.playerPromise_.then(function(W){typeof W.loadVideoByPlayerVars!="function"?(W=new _.xC("vmh: player API not ready","loadVideoByPlayerVars",typeof W.loadVideoByPlayerVars),_.a_(W)):W.loadVideoByPlayerVars(F.playerVars_)})};
var phT=function(F,W,E,h,d){W&&(E===void 0&&(E=0),h===void 0&&(h=0),F.playbackDurationSeconds_=h/1E3,F.playerVars_={adformat:"17_8",videoId:W,suggestedQuality:"hd720",startSeconds:E/1E3,player_params:d})};
Iv.prototype.mute=function(){this.playerPromise_.then(function(F){F.mute()})};
Iv.prototype.unMute=function(){this.playerPromise_.then(function(F){F.unMute()})};var xeI=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);var c2;c2=function(){this.tokenJars={};if(this.cookiesEnabled=_.IA()){var F=_.BZ.get("CONSISTENCY",void 0);F&&m_a(this,{encryptedTokenJarContents:F})}};
_.AAY=function(){c2.instance||(c2.instance=new c2);return c2.instance};
c2.prototype.handleResponse=function(F,W){if(!W)throw Error("Zf");var E,h;W=((E=W.innerTubeRequest.context)==null?void 0:(h=E.request)==null?void 0:h.consistencyTokenJars)||[];var d;(F=(d=F.responseContext)==null?void 0:d.consistencyTokenJar)&&this.replace(W,F)};
c2.prototype.replace=function(F,W){F=_.U(F);for(var E=F.next();!E.done;E=F.next())delete this.tokenJars[E.value.encryptedTokenJarContents];m_a(this,W)};
var m_a=function(F,W){if(W.encryptedTokenJarContents&&(F.tokenJars[W.encryptedTokenJarContents]=W,typeof W.expirationSeconds==="string")){var E=Number(W.expirationSeconds);setTimeout(function(){delete F.tokenJars[W.encryptedTokenJarContents]},E*1E3);
F.cookiesEnabled&&_.vZ("CONSISTENCY",W.encryptedTokenJarContents,E,void 0,!0)}};var K3H,Dz;K3H=window.location.hostname.split(".").slice(-2).join(".");_.nf=function(){this.remoteLocationPlayabilityTokenTimeoutID=-1;var F=_.b0("LOCATION_PLAYABILITY_TOKEN");_.b0("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=Fqu(this))&&(F=this.localStorage.get("yt-location-playability-token"));F&&(this.locationPlayabilityToken=F,this.mostRecentPosition=void 0)};
_.nf.getInstance=function(){Dz=_.ju("yt.clientLocationService.instance");Dz||(Dz=new _.nf,_.S5("yt.clientLocationService.instance",Dz));return Dz};
_.nf.prototype.setLocationOnInnerTubeContext=function(F){F.client||(F.client={});if(this.mostRecentPosition)F.client.locationInfo||(F.client.locationInfo={}),F.client.locationInfo.latitudeE7=Math.floor(this.mostRecentPosition.coords.latitude*1E7),F.client.locationInfo.longitudeE7=Math.floor(this.mostRecentPosition.coords.longitude*1E7),F.client.locationInfo.horizontalAccuracyMeters=Math.round(this.mostRecentPosition.coords.accuracy),F.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.remoteLocationPlayabilityToken||
this.locationPlayabilityToken)F.client.locationPlayabilityToken=this.remoteLocationPlayabilityToken||this.locationPlayabilityToken};
_.nf.prototype.handleResponse=function(F){var W;F=(W=F.responseContext)==null?void 0:W.locationPlayabilityToken;F!==void 0&&(this.locationPlayabilityToken=F,this.mostRecentPosition=void 0,_.b0("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=Fqu(this))&&this.localStorage.set("yt-location-playability-token",F,15552E3):_.vZ("YT_CL",JSON.stringify({loctok:F}),15552E3,K3H,!0))};
var Fqu=function(F){return F.localStorage===void 0?new _.bY("yt-client-location"):F.localStorage};
_.nf.prototype.clearLocationPlayabilityToken=function(F){F==="TVHTML5"?(this.localStorage=Fqu(this))&&this.localStorage.remove("yt-location-playability-token"):_.UWe("YT_CL");this.remoteLocationPlayabilityToken=void 0;this.remoteLocationPlayabilityTokenTimeoutID!==-1&&(clearTimeout(this.remoteLocationPlayabilityTokenTimeoutID),this.remoteLocationPlayabilityTokenTimeoutID=-1)};
_.nf.prototype.getCurrentPositionFromGeolocation=function(){var F=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("$f"));var W=!1,E=1E4;_.b0("INNERTUBE_CLIENT_NAME")==="MWEB"&&(W=!0,E=15E3);return new Promise(function(h,d){navigator.geolocation.getCurrentPosition(function(V){F.mostRecentPosition=V;h(V)},function(V){d(V)},{enableHighAccuracy:W,
maximumAge:0,timeout:E})})};
_.nf.prototype.createUnpluggedLocationInfo=function(F){var W={};F=F.coords;if(F==null?0:F.latitude)W.latitudeE7=Math.floor(F.latitude*1E7);if(F==null?0:F.longitude)W.longitudeE7=Math.floor(F.longitude*1E7);if(F==null?0:F.accuracy)W.locationRadiusMeters=Math.round(F.accuracy);return W};
_.nf.prototype.createLocationInfo=function(F){var W={};F=F.coords;if(F==null?0:F.latitude)W.latitudeE7=Math.floor(F.latitude*1E7);if(F==null?0:F.longitude)W.longitudeE7=Math.floor(F.longitude*1E7);return W};var Wq_=function(F,W){var E=bI();F||(F="unknown");W||(W="unknown");F="MAIN_APP_WEB_PAGE_TYPE_"+F.toUpperCase();F in Z3a||(F="MAIN_APP_WEB_PAGE_TYPE_UNKNOWN");W="MAIN_APP_WEB_REQUEST_TYPE_"+W.toUpperCase();W in XMa||(W="MAIN_APP_WEB_REQUEST_TYPE_UNKNOWN");_.DB(E,{mainAppWeb:{pageType:F,requestType:W,isShellLoad:_.l0("IS_SHELL_LOAD",!1)}})},Ehu={start:function(){_.DB(nUY(),{mainAppWeb:_.yc()})},
success:function(){_.xP(nUY(),"SUCCESS")},
failure:function(){_.xP(nUY(),"FAILURE")},
cancelled:function(){_.xP(nUY(),"CANCELLED")}};var hUU,d2p,ZOS;hUU=_.Fc(["/sw.js"]);d2p=_.Fc(["/sw.js?0"]);_.NDX=_.mv(hUU);ZOS=_.mv(d2p);var VyH=function(){var F=Error.apply(this,arguments);this.message=F.message;"stack"in F&&(this.stack=F.stack)};
_.k(VyH,Error);_.r2.prototype.load=function(F){this.megabloxUrl_=_.b0("YPC_MB_URL");_.lI(this.megabloxUrl_,(0,_.kj)(function(){F&&F()},this))};
_.CWr=function(F,W,E,h,d,V,R,M,g,t,C){_.HOI(g);F.load((0,_.kj)(function(){try{var B=V?V:_.b0("HL"),I=_.b0("SESSION_INDEX");_.vAo("client",function(){GOz("59",{helpCenterPath:"/youtube",locale:B,window:window}).JSC$7880_loadChatSupport({authuser:String(I)})})}catch(x){throw jR(10,C,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","GAPI_LOAD_ERROR"),d&&d(x),_.a_(x),x;
}U2U(this,W,E,h,d,V,R,M,g,t,C)},F))};
_.r2.prototype.openFixFlowDialog=function(F,W,E,h){this.load((0,_.kj)(function(){try{RUa(this,_.ju("payments.business.integration")).forWidget().fixInstrument().withEncryptedParameters(F).withIntegratorCallback(W).load(E,h)}catch(d){throw _.a_(d),d;}},this))};
var RUa=function(F,W,E,h){var d=W.mashupMode.popup("buyFlowDivId").usingDraggableDialog().usingPreferredWidth(600);_.c("enable_window_constrained_buy_flow_dialog")&&(d=d.usingPopupStyle(_.ju("payments.business.integration").PopupStyle.WINDOW_CONSTRAINED));h&&(d=d.usingCloseCallback(h));W.bootstrap.fromPaymentsUrl(F.megabloxUrl_);F=W.bootstrap.asMashupMode(d);E=E?E:_.b0("HL");F.usingGaiaIndex(_.b0("SESSION_INDEX")).usingLocale(E).usingDefaultActivityStatusChangeHandler().usingBaseZIndex(2E9);_.c("enable_google_payments_buyflow_material2_style_web")?
F.usingStyle(":m2;pc=#444;ac=#065fd4"):F.usingStyle(":md;pc=#444;ac=#065fd4");return F},U2U=function(F,W,E,h,d,V,R,M,g,t,C){try{var B=_.ju("payments.business.integration");
if(!B)throw new VyH("payments.business.integration is undefined");var I=B.standaloneContextAuthId.forUserId(),x=RUa(F,B,V,M);R&&x.usingServerAnalyticsEventHandler(R);var A=x.inStandaloneContext(I).buyFlow(function(X){if(X&&(!X.integratorData||X.integratorData===""||X.error))if(X.error!=null)if(String(X.error)==="-1")_.PUr(g);else{var P=String(X.error)==="132"?"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_LEGAL_ADDRESS_RESTRICTION_VIOLATION":"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE";jR(10,C,P,X.debugCode);
_.ib(P,g,X.debugCode);P=new _.xC("PAYMENT_ERROR_MESSAGE::"+X.userVisibleErrorMessage,"PAYMENT_ERROR_DETAILS::"+X.internalErrorDetails);_.a_(P)}else jR(10,C,"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY","EMPTY_INTEGRATOR_DATA"),_.ib("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY",g,"EMPTY_INTEGRATOR_DATA"),_.a_(Error("bg"));E&&E(X)}).withEncryptedParameters(W);
t&&A.withClientParameters(VTn(_.cxr(t)));A.load(function(){jR(24,C);_.aj("ttc",void 0,"commerce_transaction");V3o("commerce_transaction");h&&h()},function(X){if(X==null?0:X.debugCode)var P=X==null?void 0:X.debugCode;
else if(!X||(X==null?0:X.debugCode))P="EMPTY_LOAD_FAILURE_ERROR",_.a_(Error(P));else{P="EMPTY_LOAD_FAILURE_DEBUG_CODE";var b=new _.xC("LOAD_FAILURE:"+X.message," DEBUG_CODE:"+P);_.a_(b)}jR(10,C,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE",P);_.ib("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",g,P);_.a_(X);d&&d(X)})}catch(X){throw X instanceof VyH&&(jR(10,C,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","ERROR_BEFORE_BUY_FLOW_LOAD"),d&&d(X)),_.a_(X),X;
}};var eUH;eUH=/^(?:https:)?\/\/[0-9a-z-.]+\.(google|youtube)\.com\//;_.Q5I=function(F,W){W=W===void 0?!1:W;F=eUH.test(F)?_.RI(F):null;!W&&window.payments||!F?(F=_.G_(),W=F.promise,F.resolve()):W=_.bx(F,{attributes:{"data-payments-main":"",id:"payment-lib"}});return W};var My_;My_=_.Fc(["//www.googletagmanager.com/gtm.js?id=",""]);_.xE=function(F,W){_.hG(document,"gtm")||(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"user_consent",country_code:W}),window.dataLayer.push({"gtm.start":(new Date).getTime(),event:"gtm.js",geo:_.b0("GL")}),W=_.Cr("SCRIPT"),W.async=!0,_.nu(W,_.mv(My_,F)),W.id="gtm",F=document.getElementsByTagName("script"),F.length==0?document.head.appendChild(W):(F=F[0],F.parentNode.insertBefore(W,F)))};
_.kE=function(F){if(F=JSON.parse(F))window.dataLayer=window.dataLayer||[],window.dataLayer.push(F)};var ghO,Qz_;ghO=_.Fc(["https://clients2.google.com/gr/gr_sync.js"]);_.Mor=function(){};
_.Mor.prototype.init=function(){if(Qz_()){var F=_.G_();F.resolve();return F.promise}return _.bx(_.mv(ghO)).then(function(){if(!Qz_())throw Error("cg");},function(){throw Error("dg");
})};
_.gLG=function(){if(!Qz_())return"";var F=window.google.gr;F.init({async:{schedule:"sync"},merchantId:"youtube"});F.start();F=F.finish();return F==null?"":F};
Qz_=function(){return window.google!=null&&window.google.gr!=null};var i1r,ofY=new Set,rLY;window.PolymerFakeBaseClassWithoutHtml=function(){};
_.n=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.k(_.n,PolymerFakeBaseClassWithoutHtml);_.zK=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.k(_.zK,PolymerFakeBaseClassWithoutHtml);var JAY=window.ShadyDOM;var zZo,gfG,CZe,B7R,Ijr,cLw,Al,Kf;zZo=_.c("enable_shadydom_free_scoped_query_methods");gfG=_.c("enable_shadydom_free_scoped_node_methods");CZe=_.c("enable_shadydom_free_scoped_readonly_properties_batch_one");B7R=_.c("enable_shadydom_free_parent_node");Ijr=_.c("enable_shadydom_free_children");cLw=_.c("enable_shadydom_free_last_child");Al=window.ShadyDOM;_.N3=Al&&Al.noPatch&&Al.wrap?Al.wrap:Al?function(F){return Al.patch(F)}:function(F){return F};
Kf=function(F){if(F instanceof ShadowRoot)this.host=(0,_.N3)(F.host),this.root=F;else if(F.$$){this.host=(0,_.N3)(F);var W;this.root=(W=F.root)!=null?W:this.host}else if(F.polymerController){this.host=(0,_.N3)(F);var E;this.root=(E=this.host.shadowRoot)!=null?E:this.host}else this.root=this.host=(0,_.N3)(F)};
QGG();tge();Due();xuw();vfb();var zUp={querySelector:function(F,W){W=fNW(W,Yu(F));F=_.w2(F);return ub(F).prototype.querySelector.call(F,W)},
querySelectorAll:function(F,W){W=fNW(W,Yu(F));F=_.w2(F);return ub(F).prototype.querySelectorAll.call(F,W)}},tyB={appendChild:function(F,W){var E=Yu(F),h=_.GB(W);
return _.eZb(_.w2(F),E?_.pf(W,E,h):W)},
cloneNode:function(F,W){var E=_.GB(F);F=_.w2(F);W=ub(F).prototype.cloneNode.call(F,W);return E?mJ(W,E):W},
contains:function(F,W){var E=Yu(F),h=_.GB(W);return E!==h?!1:Mgr(F,W)},
insertBefore:function(F,W,E){var h=Yu(F),d=_.GB(W);F=_.w2(F);W=h?_.pf(W,h,d):W;return ub(F).prototype.insertBefore.call(F,W,E)},
removeChild:function(F,W){var E=Yu(F);F=_.w2(F);W=E?mJ(W,E):W;return ub(F).prototype.removeChild.call(F,W)},
replaceChild:function(F,W,E){var h=Yu(F),d=_.GB(W);W=h?_.pf(W,h,d):d?mJ(W,d):W;E=h?mJ(E,h):E;F=_.w2(F);return ub(F).prototype.replaceChild.call(F,W,E)},
getRootNode:function(F,W){W=W===void 0?{composed:!0}:W;var E;if(((E=W)!=null?E:{}).composed)F=G$o(F);else{W=F;for(F=bOn(F);F;)W=F,F=nzR(F);F=W}return F}},ALn=CZe?{firstChild:hZI,
nextSibling:FmY,previousSibling:EfY,firstElementChild:duo,lastElementChild:Vgw,nextElementSibling:KCS,previousElementSibling:WmY,childNodes:Uue}:{};B7R&&(ALn.parentNode=mek);Ijr&&(ALn.children=RZe);cLw&&(ALn.lastChild=N7Y);zZo&&k9r(zUp);gfG&&k9r(tyB);sGr();var Lmr=function(F){this.node=F instanceof ShadowRoot?F.host:F};
qLY();$ue();var PZe=new WeakMap;var ajr=Symbol("wd");var nfo=new Set(["tap","track","down","up"]),yLS=_.c("pbcm_fi_query_decorators");var sk=function(){return _.zK.apply(this,arguments)||this};
_.k(sk,_.zK);_.N=sk.prototype;_.N.getState=function(){return this.store.getState()};
_.N.dispatch=function(F){this.store.dispatch(F)};
_.N.beforeRegister=function(){if(this&&typeof this==="object"){var F;var W=!!this.useSignals||!((F=this.polymerController)==null||!F.useSignals)}else W=!1;if(!W&&this.properties)for(W=_.U(Object.keys(this.properties)),F=W.next();!F.done;F=W.next()){var E=F.value;F=this.properties[E];if(F.selector){if(F.computed)throw Error("jg");E=["reduxPropertiesRecomputeTrigger",'"'+E+'"'].concat(_.x9(F.selectorArgs||[])).join(",");F.computed="recomputeReduxSelector("+E+")"}}};
_.N.attached=function(){var F=this;this.reduxPropertiesRecomputeTrigger=0;this.activeStoreSubscription||(this.activeStoreSubscription=this.store.subscribe(function(){F.reduxPropertiesRecomputeTrigger++}));
_.c("redux_disable_update_on_attached_killswitch")&&this.reduxPropertiesRecomputeTrigger++};
_.N.detached=function(){this.activeStoreSubscription&&(this.activeStoreSubscription(),this.activeStoreSubscription=void 0)};
_.N.recomputeReduxSelector=function(F,W){var E=_.Dd.apply(2,arguments),h=this.properties[W].selector;if(!h)throw Error("hg`"+W);return h.apply(null,[this.store.getState()].concat(_.x9(E)))};
_.N.select=function(F){var W=_.Dd.apply(1,arguments);this.reduxPropertiesRecomputeTrigger;return F.apply(null,[this.store.getState()].concat(_.x9(W)))};
_.Sn.Object.defineProperties(sk.prototype,{store:{configurable:!0,enumerable:!0,get:function(){throw Error("ig");}}});
sk.prototype.recomputeReduxSelector=sk.prototype.recomputeReduxSelector;_.T([_.O(),_.Y("design:type",Number)],sk.prototype,"reduxPropertiesRecomputeTrigger",void 0);sk=_.T([_.tT()],sk);var Ly=[],w3w={},q3=function(){return mr.apply(this,arguments)||this};
_.k(q3,mr);q3.prototype._addPropertyEffect=function(F,W,E){if(W==="__observeEffects"&&E){var h,d=(h=E.info.method)!=null?h:E.info.methodName;if(d){var V=this[d];this[d]=function(){Ly.push(d);try{V==null||V.apply(this,arguments)}finally{Ly.pop()}}}}_.$4._addPropertyEffect.apply(this,[F,
W,E])};
q3.prototype._setPendingProperty=function(F,W,E){if(Ly.length){var h=Ly[Ly.length-1],d;(d=w3w[this.is])!=null&&d.has(h)||(uJI(this.is,h),_.Pc("polymerPropertyChangedInObserver",{componentName:this.is,observerName:h}))}return _.$4._setPendingProperty.apply(this,[F,W,E])};
q3=_.T([kFY()],q3);var SLo=new Set(["allowedProps","_definePropertyAccessor","_setPendingProperty","_setUnmanagedPropertyToNode"]),mun,vm={};_.c("polymer_property_access_logging_debug")&&(window.PROPERTY_ACCESS_MAP=vm);var DG=function(){return _.zK.apply(this,arguments)||this};
_.k(DG,_.zK);DG.prototype._setUnmanagedPropertyToNode=function(F,W,E){F.loggingStatus&&(F.loggingStatus.isDeclarativeExternal=!0);if(E!==F[W]||typeof E==="object")F[W]=E;F.is&&F.polymerController&&F.polymerController!==F&&I4(F.is,W,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");F.loggingStatus&&(F.loggingStatus.isDeclarativeExternal=!1)};
DG=_.T([_.tT()],DG);p3r()&&(lM.prototype._setUnmanagedPropertyToNode=(new DG)._setUnmanagedPropertyToNode);_.QtR={YtHostElementBehavior:[{get hostElement(){return this},get polymerController(){return this},set hostElement(F){},set polymerController(F){}}]};var Lz=function(){var F=mr.apply(this,arguments)||this;F.json=function(){};
return F};
_.k(Lz,mr);Lz.prototype.equals=function(F,W){return F===W};
Lz.prototype.isEmpty=function(F){return!F||_.Ee(F)&&F.length===0};
Lz=_.T([kFY()],Lz);var C4e=function(F){F=I9W(F);oq.call(this,F)};
_.k(C4e,oq);C4e.prototype.addProvider=function(F){F=F.key?F:I9W([F])[0];var W=this.keyIdToIndex.get(F.key.id);if(W){if(h7W(F,this.providers[W]))throw Error("kg`"+F.key.displayName);}else oq.prototype.addProvider.call(this,F)};
var BDM=new C4e([]);var vhz=!1;var e7R={};vhz||(R7k(),vhz=!0);
e7R.InjectBehavior={initializeInjection:function(){var F=this.provide;try{if((F=F!=null?F:[])&&F.length>0)for(var W=I9W(F),E=_.U(W),h=E.next();!h.done;h=E.next())BDM.addProvider(h.value);var d=new Set;dMb(this.behaviors||[],d);W={};for(var V=_.U(d),R=V.next();!R.done;R=V.next()){var M=R.value;M.inject&&Object.assign(W,M.inject)}this.inject&&Object.assign(W,this.inject);for(var g=_.U(Object.keys(W)),t=g.next();!t.done;t=g.next()){var C=t.value,B=W[C];try{this[C]=BDM.resolve(B)}catch(I){throw I;}}}catch(I){throw Error(I.message);
}}};var goe;var z7k=/\bclass\b/.test(function(){}.toString()),B1W=new Set("_noAccessors attached beforeRegister constructor created detached ready registered properties observers".split(" "));var IbT=function(F){this.wasDefined=!0;Array.isArray(F)||F instanceof Array?(this.JSC$11165_getImpl=F[0],this.JSC$11165_setImpl=F[1]):this.JSC$11165_getImpl=F};
_.N=IbT.prototype;_.N.getWithPath=function(F){return cMS(this.JSC$11165_getImpl(),F)};
_.N.setWithPath=function(F,W){var E=this;if(F.length)throw Error("lg");if(!this.JSC$11165_setImpl)throw Error("mg");Iy(function(){E.JSC$11165_setImpl(W)})};
_.N.notifyPath=function(){throw Error("ng");};
_.N.notifySplices=function(){throw Error("og");};
_.N.getChangeRecordSignal=function(F,W){var E=this;if(F.length)throw Error("pg");return function(){var h=E.getWithPath(F);return{path:W!=null?W:"",base:h,value:h}}};
_.N.getSplicesSignal=function(){throw Error("qg");};
_.N.getPathMutationSignal=function(){throw Error("rg");};
_.N.pop=function(){throw Error("sg");};
_.N.push=function(){throw Error("tg");};
_.N.splice=function(){throw Error("ug");};
_.N.unshift=function(){throw Error("vg");};var qX=function(F){var W=this;this.observedPath={pathComponents:[],data:void 0,subPaths:{}};this.mutationIndex=0;Array.isArray(F)||F instanceof Array?(this.JSC$11170_getImpl=F[0],this.JSC$11170_setImpl=F[1]):this.JSC$11170_getImpl=F;this.wasDefined=!1;M6(function(){W.wasDefined=W.JSC$11170_getImpl()!==void 0})};
qX.prototype.getWithPath=function(F){return cMS(this.JSC$11170_getImpl(),F)};
qX.prototype.setWithPath=function(F,W){var E=this;if(F[F.length-1]!=="*"&&F[F.length-1]!=="splices"){if(F.length===0){if(!this.JSC$11170_setImpl)throw Error("wg");this.wasDefined||(this.wasDefined=W!==void 0);Iy(function(){E.JSC$11170_setImpl(W)})}else{for(var h=M6(function(){return E.getWithPath([])}),d=0;d<F.length-1;d++){if(!h)return;
h=h[F[d]]}d=F[F.length-1];h&&(h[d]=W);this.wasDefined||(this.wasDefined=F.length>1||W!==void 0)}c3p(this,F,{pathComponents:F,value:W})}};
qX.prototype.notifyPath=function(F,W){F.length===0?W&&this.setWithPath(F,W.value):c3p(this,F,{pathComponents:F,value:W==null?void 0:W.value,fallbackWhenUndefined:W==null?void 0:W.value})};
var c3p=function(F,W,E,h){if(F.setMutationSignal){var d=++F.mutationIndex,V=[F.observedPath],R=F.observedPath,M;W.length===0&&(M=R);for(var g=0;g<W.length;g++){var t=R.subPaths[W[g]];if(!t)break;V.push(t);R=t;g===W.length-1&&(M=t)}for(W=!1;V.length;)R=V.shift(),R.data={index:d,mutation:E,spliceMutationIndex:h},W||(W=R===M),W&&V.push.apply(V,_.x9(Object.values(R.subPaths)));Iy(function(){F.setMutationSignal(d)})}};
qX.prototype.notifySplices=function(F,W){var E=this,h=M6(function(){return E.getWithPath(F)}),d=[].concat(_.x9(F),["splices"]);
c3p(this,d,{pathComponents:d,value:{indexSplices:W}});if(h==null?0:h.length)W=this.mutationIndex,d=[].concat(_.x9(F),["length"]),c3p(this,d,{pathComponents:d,value:h.length},W)};
var D2O=function(F,W,E,h,d,V){F.notifySplices(E,[{index:h,addedCount:d,removed:V,object:W,type:"splice"}])},x2e=function(F,W){F=F.observedPath;
for(var E=0;E<W.length;E++){var h=W[E],d=F.subPaths[h];d||(d={pathComponents:W.slice(0,E+1),subPaths:{}},F.subPaths[h]=d);F=d}},A3M=function(F,W,E){x2e(F,W);
if(!F.getMutationSignal){var h=_.U(_.g$(F.mutationIndex,void 0,"HavCgf"));F.getMutationSignal=h.next().value;F.setMutationSignal=h.next().value}var d=F.getMutationSignal;return _.vX(function(){d();return E(kpU(F,W))},void 0,"BYaPo")};
qX.prototype.getChangeRecordSignal=function(F,W){var E=this,h=this.mutationIndex,d;return A3M(this,F,function(V){if(V&&V.index>h){var R=V.mutation;h=V.index;d=void 0}V=M6(function(){return E.getWithPath(F)});
if(R){var M=R.pathComponents[R.pathComponents.length-1],g=[].concat(_.x9(R.pathComponents));if(M==="splices"||M==="length")return{base:V,path:(W?[W].concat(_.x9(g)):g).join("."),value:R.value};var t=F.length>g.length?F:g,C;return{base:V!=null?V:R.fallbackWhenUndefined,path:(W?[W].concat(_.x9(t)):t).join("."),value:(C=M6(function(){return E.getWithPath(t)}))!=null?C:R.fallbackWhenUndefined}}d||(d={base:V,
path:(W?[W].concat(_.x9(F)):F).join("."),value:V});return d})};
qX.prototype.getSplicesSignal=function(F){var W=this.mutationIndex,E;return A3M(this,F,function(h){if(h&&h.index>W&&h.spliceMutationIndex!==W){var d=h.mutation;W=h.index;E=void 0}return d&&d.pathComponents[d.pathComponents.length-1]==="splices"?E=h=d.value:E})};
qX.prototype.getPathMutationSignal=function(F){var W=this;x2e(this,F);if(!this.getMutationSignal){var E=_.U(_.g$(this.mutationIndex,void 0,"yZelVe"));this.getMutationSignal=E.next().value;this.setMutationSignal=E.next().value}var h=this.getMutationSignal,d=this.mutationIndex,V;return _.vX(function(){h();var R=kpU(W,F);if(R&&R.index>d&&R.mutation&&DMI(R.mutation.pathComponents,F)){var M=R.mutation;d=R.index}if(!V||d!==V.index){var g,t;R=(t=M6(function(){return W.getWithPath(F)}))!=null?t:(g=M)==null?
void 0:g.fallbackWhenUndefined;
V={index:d,value:R}}return V},void 0,"Aumsyf")};
var kpU=function(F,W){F=F.observedPath;W=_.U(W);for(var E=W.next();!E.done;E=W.next())F=F.subPaths[E.value];return F.data};
qX.prototype.pop=function(F){var W=this,E=M6(function(){return W.getWithPath(F)});
if(!(E instanceof Array))throw Error("xg");var h=E.length>0,d=E.pop();h&&D2O(this,E,F,E.length,0,[d]);return d};
qX.prototype.push=function(F){var W=_.Dd.apply(1,arguments),E=this,h=M6(function(){return E.getWithPath(F)});
if(!(h instanceof Array))throw Error("yg");var d=h.length,V=h.push.apply(h,_.x9(W));W.length&&D2O(this,h,F,d,W.length,[]);return V};
qX.prototype.splice=function(F,W,E){var h=_.Dd.apply(3,arguments),d=this,V=M6(function(){return d.getWithPath(F)});
if(!(V instanceof Array))throw Error("zg");W<0?W=V.length-Math.floor(-W):W&&(W=Math.floor(W));var R=V.splice.apply(V,[W,E].concat(_.x9(h)));(h.length||R.length)&&D2O(this,V,F,W,h.length,R);return R};
qX.prototype.unshift=function(F){var W=_.Dd.apply(1,arguments),E=this,h=M6(function(){return E.getWithPath(F)});
if(!(h instanceof Array))throw Error("Ag");var d=h.unshift.apply(h,_.x9(W));W.length&&D2O(this,h,F,0,W.length,[]);return d};var szX=!0,Lqi=!1,Ehr=!1,qKe=!1,$E=!1,$2a=0;qKe=!1;$2a=0;szX=!0;$E=Lqi=Ehr=!1;var Zz=function(F,W,E){this.model=F;this.unknownSignalResolver=W;this.options=E;this.signalCache={};this.isDisposed=!1;this.childSignalProxies=[];W=_.U(X$W());F=W.next().value;W=W.next().value;this.owner=F;this.disposeImpl=W};
Zz.prototype.dispose=function(){if(!this.isDisposed){for(var F=_.U(this.childSignalProxies),W=F.next();!W.done;W=F.next())W.value.dispose();this.disposeImpl();this.childSignalProxies=[];this.isDisposed=!0}};
var Zjp=function(F,W){F=SS(F.owner);try{W()}finally{SS(F)}};
Zz.prototype.effect=function(F){Zjp(this,function(){_.HX(F)})};
var XJa=function(F,W){F.options!=null||(F.options={});var E;(E=F.options).immutableProps!=null||(E.immutableProps=new Set);F.options.immutableProps.add(W)},W3G=function(F,W){W=""+W;
Hja(F,W);var E;if((E=F.model.__signalCache)==null?0:E.has(W))E=F.model.__signalCache.get(W),Array.isArray(E)&&XJa(F,W);var h,d,V;return(V=(h=F.options)==null?void 0:(d=h.immutableProps)==null?void 0:d.has(W))!=null?V:!1},P4u=function(F,W){var E;
F.unknownSignalResolver&&(E=F.unknownSignalResolver(W));var h,d;((h=F.options)==null?0:(d=h.immutableProps)==null?0:d.has(W))?E!=null||(E=new IbT(_.g$(F.model[W],void 0,"Xu3svb"))):E!=null||(E=new qX(_.g$(F.model[W],void 0,"NgC9n")));var V=F.model.hostElement;Object.defineProperty(F.model,W,{get:function(){FOb(V,W);return E.getWithPath([])},
set:function(R){cm(V,W);F.setWithPath([W],R)},
configurable:!0});return E},Hja=function(F,W){var E,h,d;
((E=F.model.__signalCache)==null||!E.has(W))&&((h=F.options)==null?0:(d=h.externalSignalProps)==null?0:d.has(W))&&F.model[W]},Hm=function(F,W){W=""+W;
var E=F.signalCache[W];if(E!==void 0)return E;E=!1;Hja(F,W);var h;if((h=F.model.__signalCache)==null?0:h.has(W))if(E=F.model.__signalCache.get(W),Array.isArray(E))E=!0,XJa(F,W);else return F.signalCache[W]=F.model.__signalCache.get(W).signal,F.signalCache[W];var d,V;h=(V=(d=F.options)==null?void 0:d.reactivityMode)!=null?V:0;var R,M;if(!((R=F.options)==null?0:(M=R.reactiveProps)==null?0:M.has(W))&&!E&&h===1)throw Error("Bg`"+W);d=E?J3a(F,W):P4u(F,W);return F.signalCache[W]=d},J3a=function(F,W){var E=
Object.getOwnPropertyDescriptor(F.model.constructor.prototype,W),h=function(){return F.model[W]};
return new IbT(E&&E.get&&!E.set?h:[h,function(d){F.model[W]=d}])};
Zz.prototype.getWithPath=function(F){var W=_.U(F);F=W.next().value;W=oT(W);FOb(this.model.hostElement,""+F);return Hm(this,F).getWithPath(W)};
Zz.prototype.setWithPath=function(F,W){if(F.length){cm(this.model.hostElement,F.join("."));var E=_.U(F);F=E.next().value;E=oT(E);Hm(this,F).setWithPath(E,W)}};
Zz.prototype.getPathMutationSignal=function(F){var W=_.U(F);F=W.next().value;W=oT(W);return Hm(this,F).getPathMutationSignal(W)};
Zz.prototype.notifyPath=function(F,W){var E=_.U(F);F=E.next().value;E=oT(E);Hm(this,F).notifyPath(E,W)};
var abX=function(F,W){if(W.type==="literal")return function(){return{rootWasDefined:!0,value:W.value}};
var E=ZG(W.path),h=_.U(E),d=h.next().value;h=oT(h);var V,R;if(W.type==="path"&&(E.length===1||((V=F.options)==null?0:(R=V.immutableProps)==null?0:R.has(d))))return function(){var B=F.getWithPath(E.slice(0,1)),I=cMS(B,E.slice(1));B=B!==void 0;$E&&(B=Hm(F,E[0]).wasDefined);return{rootWasDefined:B,value:I}};
var M=Hm(F,d);if(W.type==="path"){var g=M.getPathMutationSignal(h);return function(){var B=$E?M.wasDefined:PX(F.owner,function(){return M.getWithPath([])})!==void 0;
var I,x=(I=g())==null?void 0:I.value;return{rootWasDefined:B,value:x}}}if(W.type==="splices"){var t=M.getSplicesSignal(h);
return function(){var B=t();return{rootWasDefined:$E?M.wasDefined:B!==void 0,value:B}}}var C=M.getChangeRecordSignal(h,""+d);
return function(){var B=C();return{rootWasDefined:$E?M.wasDefined:B!==void 0,value:B}}},qck=function(F,W,E){var h=E.map(function(M){return abX(F,M)}),d=E.length===0,V=[],R=E.length!==1||E[0].type!=="path"?!1:!0;
F.effect(function(){for(var M=h.length,g=[],t=!!V.length,C=0;C<M;C++){var B=h[C](),I=B.rootWasDefined;B=B.value;d||(d=I);g[C]=B;R&&(g[C+M]=t?V[C]:g[C],V[C]=B)}d&&PX(F.owner,function(){return void W.apply(null,_.x9(g))})})},xMk=function(F,W,E,h,d){var V=Hm(F,W);
d!==void 0&&V.setWithPath([],d);qck(F,function(){var R=_.Dd.apply(0,arguments);cm(F.model.hostElement,W,!0);V.setWithPath([],E.apply(null,_.x9(R)))},h)};
Zz.prototype.arrayPush=function(F){var W=_.Dd.apply(1,arguments),E=_.U(F),h=E.next().value;E=oT(E);h=Hm(this,h);return h.push.apply(h,[E].concat(_.x9(W)))};
Zz.prototype.arraySplice=function(F,W,E){var h=_.Dd.apply(3,arguments),d=_.U(F),V=d.next().value;d=oT(d);V=Hm(this,V);return V.splice.apply(V,[d,W,E].concat(_.x9(h)))};
Zz.prototype.arrayUnshift=function(F){var W=_.Dd.apply(1,arguments),E=_.U(F),h=E.next().value;E=oT(E);h=Hm(this,h);return h.unshift.apply(h,[E].concat(_.x9(W)))};
Zz.prototype.notifySplices=function(F,W){var E=_.U(F);F=E.next().value;E=oT(E);Hm(this,F).notifySplices(E,W)};var Opw=/([^\s]+?)\(([\s\S]*)\)/,JMW=/\.([^.]+)$/,lCk=/\\,/g,Hpr=/&comma;/g,P6Y=/\\(.)/g,bpr=[],aCo={"*":"wildcard",splices:"splices"};var w$R=RegExp("(\\[\\[|{{)\\s*(?:(!)\\s*)?((?:[a-zA-Z_$][\\w.:$\\-*]*)\\s*(?:\\(\\s*(?:(?:(?:((?:[a-zA-Z_$][\\w.:$\\-*]*)|(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)|(?:(?:'(?:[^'\\\\]|\\\\.)*')|(?:\"(?:[^\"\\\\]|\\\\.)*\")))\\s*)(?:,\\s*(?:((?:[a-zA-Z_$][\\w.:$\\-*]*)|(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)|(?:(?:'(?:[^'\\\\]|\\\\.)*')|(?:\"(?:[^\"\\\\]|\\\\.)*\")))\\s*))*)?)\\)\\s*)?)(?:]]|}})","g"),T1G=/[A-Z]/,fbe=["class","hidden","id","on-dom-change"],Scb=new Set([].concat(_.x9(fbe),
["if","notify-dom-change","restamp"])),p$k=new Set([].concat(_.x9(fbe),"as index-as initial-count items items-index-as notify-dom-change target-framerate strip-whitespace".split(" "))),mMr=new Set(["restamp"]);var SKn=new Set(["className","id"]);var hQo=Symbol(),M6k=window;var IMW=window;var L3o=0,x_n=0,Pm=[],s8I=0,D_Y=!1,Ano=document.createTextNode("");(new window.MutationObserver(kDw)).observe(Ano,{characterData:!0});var a4=new Map,JT=0,Oja=function(F){this.mappedHandleId=F},$_r=function(F,W,E,h){this.mappedHandleId=F;
var d=this;this.mappedHandleId=F;this.callback=W;this.waitTime=E;this.schedulerPriority=h;this.handleId=_.P0.addJob(function(){d.callback();a4.delete(d.mappedHandleId)},this.schedulerPriority||1,this.waitTime)};
_.k($_r,Oja);$_r.prototype.cancel=function(){_.P0.cancelJob(this.handleId);a4.delete(this.mappedHandleId)};
var ZSR=function(F,W){this.mappedHandleId=F;var E=this;this.mappedHandleId=F;this.callback=W;this.handleId=qNG(function(){E.callback();a4.delete(E.mappedHandleId)})};
_.k(ZSR,Oja);ZSR.prototype.cancel=function(){var F=this.handleId-x_n;F<0||Pm.length<=F||(Pm[F]=null);a4.delete(this.mappedHandleId)};var JnY=function(){};
JnY.prototype.cancel=function(){this.jobHandle!==void 0&&(XhY(this.jobHandle),this.jobHandle=void 0)};
JnY.prototype.run=function(F,W,E){var h=this;this.cancel();this.callback=F;this.jobHandle=_.fz(function(){F();h.callback=void 0},W,E)};
JnY.prototype.flush=function(){this.callback&&this.jobHandle!==void 0&&(this.cancel(),this.callback())};
var HSn=new WeakMap;var bjc=WD(function(F){for(var W=F,E=0;E<3;E++)W=Object.getPrototypeOf(W);delete W.prototype.connectedCallback;var h=function(){return F.apply(this,arguments)||this};
_.k(h,F);h.prototype._attachDom=function(d){if(!d)return null;var V=(0,_.N3)(this.hostElement);V.attachShadow({mode:"open",shadyUpgradeFragment:d});V.shadowRoot.appendChild(d);return V.shadowRoot};
h.prototype._takeAttributes=function(){for(var d=this.hostElement.attributes,V=0;V<d.length;V++){var R=d[V],M=void 0,g=void 0;(g=(M=this).__attributeReaction)==null||g.call(M,R.name,null,R.value)}};
h.prototype._readyClients=function(){F.prototype._readyClients.call(this);this.root=this};
h.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this.hostElement);F.prototype.connectedCallback.call(this)};
_.Sn.Object.defineProperties(h,{template:{configurable:!0,enumerable:!0,get:function(){return h.prototype._template}}});
return h}),lbX=WD(function(F){var W=function(){return F.apply(this,arguments)||this};
_.k(W,F);W.prototype.created=function(){if(this.__notifyEffects)for(var E=_.U(Object.values(this.__notifyEffects)),h=E.next();!h.done;h=E.next()){h=_.U(h.value);for(var d=h.next();!d.done;d=h.next())d.value.fn=bSY}if(this.__reflectEffects)for(E=_.U(Object.values(this.__reflectEffects)),h=E.next();!h.done;h=E.next())for(h=_.U(h.value),d=h.next();!d.done;d=h.next())d.value.fn=lMk};
W.prototype._addEventListenerToNode=function(E,h,d){E=b1(E);Hs(E,h,d)||F.prototype._addEventListenerToNode.call(this,E,h,d)};
W.prototype._removeEventListenerFromNode=function(E,h,d){E=b1(E);Ps(E,h,d)||F.prototype._removeEventListenerFromNode.call(this,E,h,d)};
W.prototype._propertiesChanged=function(E,h,d){if(this.__dataToNotify&&this.__notifyEffects)for(var V=_.U(Object.keys(this.__dataToNotify)),R=V.next();!R.done;R=V.next()){R=R.value;var M=OSY(R);this.__notifyEffects[M]||delete this.__dataToNotify[R]}else this.__dataToNotify=null;F.prototype._propertiesChanged.call(this,E,h,d)};
W.prototype.fire=function(E,h,d){h=h===void 0?{}:h;var V;return _.hF(b1((V=d==null?void 0:d.node)!=null?V:this),E,h,d)};
W.prototype._ensureAttribute=function(E,h){var d=b1(this);d.hasAttribute(E)||Xm(d,h,E)};
W.prototype.isLightDescendant=function(E){var h=b1(this);return b1(h)!==E&&_.Z(h).contains(E)&&_.Z(h).getRootNode()===_.Z(E).getRootNode()};
return W});
_.ZD.ready=function(){var F;((F=this.hostElement)!=null?F:this).addEventListener("focus",this._boundFocusBlurHandler,!0);var W;((W=this.hostElement)!=null?W:this).addEventListener("blur",this._boundFocusBlurHandler,!0)};
_.lB._subscribeIronResize=function(F){var W;((W=F.hostElement)!=null?W:F).addEventListener("iron-resize",this._boundOnDescendantIronResize)};
_.lB._unsubscribeIronResize=function(F){var W;((W=F.hostElement)!=null?W:F).removeEventListener("iron-resize",this._boundOnDescendantIronResize)};var j8W=[Array,Boolean,Date,Number,Object,String],nz=function(F,W,E,h){this.polySiInfo=F;this.polySiParams=W;this.polySiContext=E;this.upgradeDisabled=this.isPolySiElementConnected=this.didCallReady=!1;this.mutablePropNames=new Set;this.reflecting=!1;h||this instanceof HTMLElement&&(h=this);if(!h)throw Error("Ig");this.allowedProps=W.allowedProps;this.hostElement=h;this.is=F.is;this.upgradeDisabled=!!W.legacyOptimizations&&this.hostElement.hasAttribute("disable-upgrade");F=new Set(W.reactiveSchemas.filter(function(d){return d.type!==
"observe"}).map(function(d){return d.propertyKey}));
this.signalProxy=new Zz(this,void 0,{reactiveProps:F,reactivityMode:W.reactivityMode});this.__dataHasAccessor={};W=_.U(W.reactiveSchemas);for(F=W.next();!F.done;F=W.next())F=F.value,F.type==="signal"&&(this.__dataHasAccessor[F.propertyKey]=!0);this.upgradeDisabled||nhH(this)};
nz.prototype.getExtraMethodsToForward=function(){return[]};
var nhH=function(F){F.polySiContext.didRegister||(F.registered(),F.polySiContext.didRegister=!0);F.polySiContext.finalizedTemplate||(F.polySiContext.finalizedTemplate={},F.polySiParams.templateGetter&&(F.polySiContext.finalizedTemplate.processedTemplate=cnW(F.polySiParams.templateGetter,F.polySiParams.is)));y3c(F);var W=F.hostElement;W.loggingStatus!=null||(W.loggingStatus={});W.loggingStatus.isInitializing=!0;M6(function(){return void F.created()});
W.loggingStatus.isInitializing=!1;F.isPolySiElementConnected&&jzO(F)},jzO=function(F){F.didCallReady||(M6(function(){return void F.ready()}),F.didCallReady=!0);
F.isAttached=!0;F.attached()};
_.N=nz.prototype;_.N.connectedCallback=function(){this.isPolySiElementConnected=!0;this.upgradeDisabled||jzO(this)};
_.N.disconnectedCallback=function(){this.isPolySiElementConnected=!1;this.upgradeDisabled||(this.isAttached=!1,this.detached())};
_.N.attributeChangedCallback=function(F,W,E){if(this.upgradeDisabled)F==="disable-upgrade"&&E===null&&(this.upgradeDisabled=!1,nhH(this));else if(W!==E){var h=_.Bf(F),d=this.polySiContext.typesForSignals[h];if(d&&(!this.reflecting||_.c("polysi_attribute_changed_serializing_killswitch"))){switch(d){case Object:try{var V=JSON.parse(E)}catch(M){V=E}break;case Array:try{V=JSON.parse(E)}catch(M){V=null}break;case Date:V=isNaN(E)?String(E):Number(E);V=new Date(V);break;case Boolean:V=E!==null;break;case Number:V=
Number(E);break;default:V=E}this[h]=V}h=_.U(this.polySiParams.behaviors);for(d=h.next();!d.done;d=h.next())V=void 0,(V=d.value.attributeChanged)==null||V.call(this,F,W,E);var R;(R=this.attributeChanged)==null||R.call(this,F,W,E)}};
_.N.attributeChangedCallbackWrapper=function(F,W,E){this.attributeChangedCallback(F,W,E)};
_.N.setPropertiesFromInitialAttributeValues=function(){for(var F=0;F<this.hostElement.attributes.length;F++){var W=this.hostElement.attributes[F];(W.name==="disable-upgrade"||this.polySiParams.observedAttributes.includes(W.name))&&this.attributeChangedCallback(W.name,null,W.value)}};
_.N.created=function(){this.provide=this.polySiParams.provide;var F;(F=this.initializeInjection)==null||F.call(this);F=_.U(this.polySiParams.reactiveSchemas);for(var W=F.next();!W.done;W=F.next())W=W.value,W.type==="signal"&&(this.mutablePropNames.add(W.propertyKey),Hm(this.signalProxy,W.propertyKey));ynI(this,this.polySiInfo,this.polySiParams.behaviors);F=_.U(this.polySiParams.reactiveSchemas);for(W=F.next();!W.done;W=F.next())W=W.value,W.type==="signal"&&W.value!==void 0&&(this.signalProxy.model[W.propertyKey]=
typeof W.value==="function"?W.value.call(this):W.value);if(this.polySiParams.signalProperties)for(F=_.U(this.polySiParams.signalProperties),W=F.next();!W.done;W=F.next()){W=W.value;var E=void 0;((E=this.__signalCache)==null?0:E.has(W))||(this.signalProxy.model[W]=void 0)}qKe||iji(this);n6e(this);F=_.U(this.polySiParams.behaviors);for(W=F.next();!W.done;W=F.next())E=void 0,(E=W.value.created)==null||E.call(this);var h;(h=this.polySiInfo.created)==null||h.call(this)};
_.N.registered=function(){var F=this;this.polySiParams.legacyOptimizations&&this.polySiContext.copyPropertiesToProto();var W=Object.getPrototypeOf(this);W.addReactiveSchema=function(M){F.polySiParams.reactiveSchemas.push(M)};
for(var E=_.U(this.polySiParams.behaviors),h=E.next();!h.done;h=E.next()){var d=void 0;(d=h.value.beforeRegister)==null||d.call(W)}var V;(V=this.polySiInfo.beforeRegister)==null||V.call(W);W.addReactiveSchema=rnY;E=_.U(this.polySiParams.behaviors);for(h=E.next();!h.done;h=E.next())d=void 0,(d=h.value.registered)==null||d.call(W);var R;(R=this.polySiInfo.registered)==null||R.call(W)};
_.N.ready=function(){var F;(F=this.beforeReady)==null||F.call(this);qKe&&iji(this);var W;if(F=(W=this.polySiContext.finalizedTemplate)==null?void 0:W.processedTemplate){F=v6Y(F.template,F.nodeInfoList,this.signalProxy,{eventListenerHost:this,hasInsertionPoint:F.hasInsertionPoint,thisCtx:this});W=F.nodesById;F=F.root;var E=this.hostElement;var h=h===void 0?!1:h;E=(0,_.N3)(E);if(!E.attachShadow)throw Error("Cd");if(!E.shadowRoot||h)E.attachShadow({mode:"open",shadyUpgradeFragment:F}),E.shadowRoot.appendChild(F);
this.root=E.shadowRoot;this.$=W}r3O(this);h=_.U(this.polySiParams.behaviors);for(W=h.next();!W.done;W=h.next())F=void 0,(F=W.value.ready)==null||F.call(this);var d;(d=this.polySiInfo.ready)==null||d.call(this)};
_.N.attached=function(){for(var F=_.U(this.polySiParams.behaviors),W=F.next();!W.done;W=F.next()){var E=void 0;(E=W.value.attached)==null||E.call(this)}var h;(h=this.polySiInfo.attached)==null||h.call(this)};
_.N.detached=function(){for(var F=_.U(this.polySiParams.behaviors),W=F.next();!W.done;W=F.next()){var E=void 0;(E=W.value.detached)==null||E.call(this)}var h;(h=this.polySiInfo.detached)==null||h.call(this)};
var y3c=function(F){for(var W=_.U(F.polySiParams.behaviors),E=W.next();!E.done;E=W.next())if(E=E.value,E.listeners)for(var h in E.listeners)BqI(F,F.hostElement,h,E.listeners[h]);if(F.polySiInfo.listeners)for(var d in F.polySiInfo.listeners)BqI(F,F.hostElement,d,F.polySiInfo.listeners[d])},BqI=function(F,W,E,h,d){F=ICe(F,h,d);
Hs(W,E,F)||W.addEventListener(E,F);return F},iji=function(F){for(var W=_.U(F.polySiParams.reactiveSchemas),E=W.next();!E.done;E=W.next())E=E.value,E.type==="compute"||E.type==="computeWithMethod"?kdk(F.signalProxy,E,F):E.type==="redux"?LOk(F.signalProxy,E,F.store):E.type==="signal"&&E.readOnly&&sto(F.signalProxy,E)},r3O=function(F){for(var W=_.U(F.polySiParams.reactiveSchemas),E=W.next(),h={};!E.done;h={schema$jscomp$12:void 0},E=W.next())h.schema$jscomp$12=E.value,h.schema$jscomp$12.type==="notify"?
$MR(F.signalProxy,h.schema$jscomp$12,F.hostElement):h.schema$jscomp$12.type==="observe"?Zpb(F.signalProxy,h.schema$jscomp$12,F):h.schema$jscomp$12.type==="reflect"&&F.signalProxy.effect(function(V){return function(){var R=F.signalProxy.getWithPath([V.schema$jscomp$12.propertyKey]);
F.reflecting=!0;yMY(F.hostElement,V.schema$jscomp$12.propertyKey,R,!0);F.reflecting=!1}}(h));
if(F.reflectedAttributes)for(W=_.U(Object.entries(F.reflectedAttributes)),h=W.next(),E={};!h.done;E={key$jscomp$873:void 0,value$jscomp$8803:void 0},h=W.next()){var d=_.U(h.value);h=d.next().value;d=d.next().value;E.key$jscomp$873=h;E.value$jscomp$8803=d;F.signalProxy.effect(function(V){return function(){F.reflecting=!0;yMY(F.hostElement,V.key$jscomp$873,(0,V.value$jscomp$8803)(),!0);F.reflecting=!1}}(E))}};
_.N=nz.prototype;_.N._setPendingProperty=function(F,W){this.set(F,W);return!1};
_.N._enableProperties=function(){};
_.N._setPendingPropertyOrPath=function(F,W){this.notifyPath(F,W);return!1};
_.N._addPropertyEffect=function(){};
_.N._stampTemplate=function(){throw Error("Jg");};
_.N.fire=function(F,W,E){W=W===void 0?{}:W;E=E===void 0?{}:E;var h,d,V={bubbles:(h=E.bubbles)!=null?h:!0,cancelable:!!E.cancelable,composed:(d=E.composed)!=null?d:!0},R;return _.hF(TqG((R=E.node)!=null?R:this.hostElement),F,W,V)};
_.N.get=function(F,W){var E=ZG(F);return W?cMS(W,E):F==="hidden"?this.hostElement.hidden:this.signalProxy.getWithPath(E)};
_.N.linkPaths=function(){};
_.N.listen=function(F,W,E){F=TqG(F);this.boundListeners!=null||(this.boundListeners=new WeakMap);var h=this.boundListeners.get(F);h||(h={},this.boundListeners.set(F,h));var d=W+E;h[d]||(h[d]=BqI(this,F,W,E))};
_.N.notifyPath=function(F,W){this.signalProxy.notifyPath(ZG(F),arguments.length===2?{value:W}:void 0)};
_.N.canNotifyPath=function(F){var W,E;return this.mutablePropNames.has(F)&&!((W=this.signalProxy.options)==null?0:(E=W.immutableProps)==null?0:E.has(F))};
_.N.notifySplices=function(F,W){this.signalProxy.notifySplices(ZG(F),W)};
_.N.pop=function(F){var W=this.signalProxy;F=ZG(F);var E=_.U(F);F=E.next().value;E=oT(E);return Hm(W,F).pop(E)};
_.N.push=function(F){var W=_.Dd.apply(1,arguments);return this.signalProxy.arrayPush.apply(this.signalProxy,[ZG(F)].concat(_.x9(W)))};
_.N.set=function(F,W,E){if(E)throw Error("Kg");F==="hidden"?this.hostElement.hidden=!!W:this.signalProxy.setWithPath(ZG(F),W)};
_.N.setProperties=function(F){F=_.U(Object.entries(F));for(var W=F.next();!W.done;W=F.next()){var E=_.U(W.value);W=E.next().value;E=E.next().value;this[W]=E}};
_.N.splice=function(F,W,E){var h=_.Dd.apply(3,arguments);return this.signalProxy.arraySplice.apply(this.signalProxy,[ZG(F),W,E].concat(_.x9(h)))};
_.N.unlinkPaths=function(){};
_.N.unlisten=function(F,W,E){F=TqG(F);if(this.boundListeners){var h=this.boundListeners.get(F);if(h){E=W+E;var d=h[E];d&&(Ps(F,W,d)||F.removeEventListener(W,d),delete h[E])}}};
_.N.unshift=function(F){var W=_.Dd.apply(1,arguments);return this.signalProxy.arrayUnshift.apply(this.signalProxy,[ZG(F)].concat(_.x9(W)))};
_.Sn.Object.defineProperties(nz.prototype,{useSignals:{configurable:!0,enumerable:!0,get:function(){return!0}},
disableEnforceFastDefaultValuesCheck:{configurable:!0,enumerable:!0,get:function(){return!0}},
__isPropertyEffectsClient:{configurable:!0,enumerable:!0,get:function(){return!0}},
observers:{configurable:!0,enumerable:!0,get:function(){return[]},
set:function(){}},
properties:{configurable:!0,enumerable:!0,get:function(){return{}},
set:function(){}}});var Wqo=[Array,Boolean,Date,Number,Object,String];var d2e=!1;var XB=function(){var F=HTMLElement.apply(this,arguments)||this;F.restamp=!1;F.notifyDomChange=!1;F.JSC$11278_didCallConnected=!1;F.JSC$11278_renderDebouncer=null;F.disableTemplateUpdateSignalImpl=y9()?void 0:_.g$(!1,void 0,"zLXz1e");var W;F.getDisableTemplateUpdate=(W=F.disableTemplateUpdateSignalImpl)==null?void 0:W[0];var E;F.setDisableTemplateUpdate=(E=F.disableTemplateUpdateSignalImpl)==null?void 0:E[1];return F};
_.k(XB,HTMLElement);var TD_=function(F){F.conditionSignalImpl!=null||(F.conditionSignalImpl=new qX(_.g$(!1,void 0,"wcuOQ")));return F.conditionSignalImpl};
_.N=XB.prototype;_.N.showHideChildren=function(F){ohz(this,F,this.if)};
_.N.attributeChangedCallback=function(F,W,E){if(this.JSC$11278_didCallConnected)throw Error("Og`"+F);F==="notify-dom-change"?this.notifyDomChange=E!==null:F==="restamp"&&(this.restamp=E!==null)};
_.N.debounceRender=function(){this.JSC$11278_renderDebouncer=_.QZ(this.JSC$11278_renderDebouncer,aL,this.JSC$11278_renderImpl.bind(this));_.za(this.JSC$11278_renderDebouncer)};
_.N.disconnectedCallback=function(){var F=(0,_.N3)(this).parentNode;(!F||F.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in F&&!F.host)&&Gpz(this)};
_.N.connectedCallback=function(){var F=this;this.JSC$11278_didCallConnected=!0;szX?NDY():this.style.display="none";this.parentSignalProxy.effect(function(){TD_(F).getWithPath([]);F.debounceRender()})};
_.N.render=function(){_.vD()};
_.N.JSC$11278_renderImpl=function(){if(!this.parentSignalProxy.isDisposed){var F=this.if;if(F){a:{var W=(0,_.N3)(this).parentNode;if(this.hasInstance()){var E=this.instance.children;if((E==null?0:E.length)&&(0,_.N3)(this).previousSibling!==E[E.length-1])for(var h=0;h<E.length;h++)(0,_.N3)(W).insertBefore(E[h],this)}else{if(!W){W=!1;break a}YKM(this,W)}W=!0}if(!W)return}else this.restamp&&Gpz(this);ohz(this,!1,F);F&&wJ_(this);Lqi&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",
{bubbles:!0,composed:!0}))}};
_.N.hasInstance=function(){return!!this.instance};
var YKM=function(F,W){var E=F.parentSignalProxy;if(y9()){var h=_.U(_.g$(!0,void 0,"wXzgnc"));var d=h.next().value;h=h.next().value;E=F.parentSignalProxy}else{var V;var R=new Zz((V=usX(F))!=null?V:{},function(g){var t=Hm(F.parentSignalProxy,g).getChangeRecordSignal([]);g=_.g$(void 0,void 0,"mryEkc");var C=new qX(g);R.effect(function(){if(F.getDisableTemplateUpdate&&!F.getDisableTemplateUpdate()){var B=t();C.notifyPath(ZG(B.path),{value:B.value})}});
return C});
F.parentSignalProxy.childSignalProxies.push(R);var M=E=R}E=v6Y(F.templateInfo,F.templateInfo.nodeInfoList,E,{eventListenerHost:F.eventListenerHost,hasInsertionPoint:F.templateInfo.hasInsertionPoint,thisCtx:F.eventListenerHost,enabledSignal:y9()?d:void 0,getModel:function(){return usX(F)}}).root;
F.instance={root:E,children:[],hidden:!1,signalProxy:M,getTemplateUpdatesEnabled:d,setTemplateUpdatesEnabled:h};M=_.U(E.childNodes);for(d=M.next();!d.done;d=M.next())F.instance.children.push(d.value);(0,_.N3)(W).insertBefore(F.instance.root,F)},usX=function(F){if((F=F.parentSignalProxy.model)&&!F.hostElement){var W={},E;
for(E in F)F.hasOwnProperty(E)&&(W[E]=F[E]);return W}},Gpz=function(F){if(F.instance){var W=F.instance.children;
if(W.length){var E=(0,_.N3)(W[0]).parentNode;if(E){E=(0,_.N3)(E);for(var h=0;h<W.length;h++)E.removeChild(W[h])}}y9()?F.instance.setTemplateUpdatesEnabled(!1):F.instance.signalProxy.dispose();F.instance=void 0}},ohz=function(F,W,E){W=W||!E;
F.instance&&F.instance.hidden!==W&&(F.instance.hidden=W,hUw(W,F.instance.children))},wJ_=function(F){if(y9()){var W=F.instance;
W&&PX(F.parentSignalProxy.owner,function(){return!W.getTemplateUpdatesEnabled()})&&W.setTemplateUpdatesEnabled(!0)}else F.setDisableTemplateUpdate(!1)};
_.Sn.Object.defineProperties(XB.prototype,{if:{configurable:!0,enumerable:!0,get:function(){var F=this;return PX(this.parentSignalProxy.owner,function(){return TD_(F).getWithPath([])})},
set:function(F){F||(y9()?this.instance&&this.instance.setTemplateUpdatesEnabled(!1):this.setDisableTemplateUpdate(!0));TD_(this).setWithPath([],!!F)}}});
_.Sn.Object.defineProperties(XB,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["restamp","notify-dom-change"]}}});
customElements.define("ps-dom-if",XB);var SKi=[],H2=function(){var F=HTMLElement.apply(this,arguments)||this;F.as="item";F.indexAs="index";F.itemsIndexAs="itemsIndex";F.targetFramerate=20;F.notifyDomChange=!1;F.isDetached=!1;F.JSC$11285_renderDebouncer=null;F.instances=[];F.chunkingId=null;F.chunkCount=null;F.shouldMeasureChunk=!1;F.shouldContinueChunking=!1;F.renderStartTime=null;F.JSC$11285_didCallConnected=!1;return F};
_.k(H2,HTMLElement);var pJz=function(F){F.itemSignalImpl!=null||(F.itemSignalImpl=new qX(_.g$(SKi,void 0,"YBrqgf")));return F.itemSignalImpl},m2U=function(F,W){Array.isArray(W)||(W=SKi);
pJz(F).setWithPath([],W)};
_.N=H2.prototype;_.N.showHideChildren=function(F){for(var W=_.U(this.instances),E=W.next();!E.done;E=W.next())hUw(F,E.value.children)};
_.N.notifyPath=function(F,W){F=ZG(F);F[0]==="items"&&(F.length===1?m2U(this,W):pJz(this).setWithPath(F.slice(1),W))};
_.N.canNotifyPath=function(F){return F==="items"};
_.N.attributeChangedCallback=function(F,W,E){if(this.JSC$11285_didCallConnected)throw Error("Pg`"+F);F==="as"?this.as=E:F==="index-as"?this.indexAs=E:F==="items-index-as"?this.itemsIndexAs=E:F==="initial-count"?this.initialCount=Number(E):F==="notify-dom-change"?this.notifyDomChange=E!==null:F==="target-framerate"&&(this.targetFramerate=Number(E))};
_.N.disconnectedCallback=function(){this.isDetached=!0;for(var F=0;F<this.instances.length;F++)Kqc(this,F);this.chunkingId&&cancelAnimationFrame(this.chunkingId)};
_.N.connectedCallback=function(){var F=this,W=pJz(this).getChangeRecordSignal([],"");this.parentSignalProxy.effect(function(){var d=W(),V=ZG(d.path);if(V[0]===void 0||V[0]==="splices"||V[0]==="length")F.debounceRender();else{var R=V[0];if(R=F.instances[typeof R==="string"?Math.floor(Number(R)):R])V=[F.as].concat(_.x9(V.slice(1))),R.signalProxy.notifyPath(V,d)}});
this.JSC$11285_didCallConnected=!0;szX?NDY():this.style.display="none";if(this.isDetached){this.isDetached=!1;for(var E=(0,_.N3)((0,_.N3)(this).parentNode),h=0;h<this.instances.length;h++)E.insertBefore(this.instances[h].root,this);this.chunkingId&&this.render()}};
_.N.debounceRender=function(){this.JSC$11285_renderDebouncer=_.QZ(this.JSC$11285_renderDebouncer,aL,this.JSC$11285_renderImpl.bind(this));_.za(this.JSC$11285_renderDebouncer)};
_.N.render=function(){this.debounceRender();_.vD()};
_.N.JSC$11285_renderImpl=function(){var F=this,W=this.items,E=Fl_(this,W.length);WlT(this,W,E);this.initialCount&&(this.shouldMeasureChunk||this.shouldContinueChunking)&&(cancelAnimationFrame(this.chunkingId),this.chunkingId=requestAnimationFrame(function(){F.chunkingId=null;if(F.shouldMeasureChunk){var h=performance.now()-F.renderStartTime;F.chunkCount=Math.round(Math.ceil(1E3/F.targetFramerate)/h*F.chunkCount)||1}F.shouldContinueChunking&&F.debounceRender()}));
Lqi&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))};
var Fl_=function(F,W){var E=W,h=F.instances.length;if(F.initialCount){if(F.chunkCount){var d=Math.min(Math.max(W-h,0),F.chunkCount);E=Math.min(h+d,W)}else E=Math.min(W,F.initialCount),d=Math.max(E-h,0),F.chunkCount=d||1;F.shouldMeasureChunk=d===F.chunkCount;F.shouldContinueChunking=E<W;F.renderStartTime=performance.now()}return E},WlT=function(F,W,E){for(var h=0;h<E;h++){var d=F.instances[h],V=W[h];
d?(d.signalProxy.setWithPath([F.as],V),d.signalProxy.setWithPath([F.indexAs],h)):E8z(F,V,h)}for(W=F.instances.length-1;W>=h;W--)E=F,d=W,Kqc(E,d),_.U(E.instances.splice(d,1)).next().value.signalProxy.dispose()},Kqc=function(F,W){F=F.instances[W];
W=(0,_.N3)(F.root);for(var E=0;E<F.children.length;E++)W.appendChild(F.children[E])},E8z=function(F,W,E){var h={};
W=Object.assign({},h5M(F),(h[F.as]=W,h[F.indexAs]=E,h[F.itemsIndexAs]=E,h));var d=new Zz(W,function(R){if(R!==F.as&&R!==F.indexAs){if(R===F.itemsIndexAs)return Hm(d,F.indexAs);var M=Hm(F.parentSignalProxy,R).getChangeRecordSignal([]);R=_.g$(void 0,void 0,"Mu2Bwb");var g=new qX(R);d.effect(function(){var t=M();g.notifyPath(ZG(t.path),{value:t.value})});
return g}});
F.parentSignalProxy.childSignalProxies.push(d);h=v6Y(F.templateInfo,F.templateInfo.nodeInfoList,d,{eventListenerHost:F.eventListenerHost,getModel:function(){var R={};return Object.assign({},h5M(F),(R[F.as]=d.model[F.as],R[F.indexAs]=d.model[F.indexAs],R[F.itemsIndexAs]=d.model[F.indexAs],R))},
hasInsertionPoint:F.templateInfo.hasInsertionPoint,thisCtx:F.eventListenerHost,methodInvocationRequirement:$2a,enabledSignal:F.stampingEnabled}).root;W={root:h,children:[],signalProxy:d};h=_.U(h.childNodes);for(var V=h.next();!V.done;V=h.next())W.children.push(V.value);h=(h=F.instances[E+1])?h.children[0]:F;(0,_.N3)((0,_.N3)(F).parentNode).insertBefore(W.root,h);F.instances[E]=W},h5M=function(F){if((F=F.parentSignalProxy.model)&&!F.hostElement){var W={},E;
for(E in F)F.hasOwnProperty(E)&&(W[E]=F[E]);return W}};
H2.prototype.itemForElement=function(F){var W=this,E=this.instances.find(function(h){return h.children.includes(F)});
if(E)return PX(this.parentSignalProxy.owner,function(){return E.signalProxy.getWithPath([W.as])})};
H2.prototype.indexForElement=function(F){var W=this.instances.findIndex(function(E){return E.children.includes(F)});
return W>=0?W:void 0};
_.Sn.Object.defineProperties(H2.prototype,{items:{configurable:!0,enumerable:!0,get:function(){var F=this;return PX(this.parentSignalProxy.owner,function(){return pJz(F).getWithPath([])})},
set:function(F){m2U(this,F)}},
delay:{configurable:!0,enumerable:!0,set:function(){}},
filter:{configurable:!0,enumerable:!0,set:function(){}},
observe:{configurable:!0,enumerable:!0,set:function(){}},
sort:{configurable:!0,enumerable:!0,set:function(){}},
__instances:{configurable:!0,enumerable:!0,get:function(){return this.instances}}});
_.Sn.Object.defineProperties(H2,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return"as index-as initial-count items-index-as notify-dom-change target-framerate".split(" ")}}});
customElements.define("ps-dom-repeat",H2);var d5e,N4p;_.P2=new _.NG("STATE_STORE_TOKEN");d5e=new _.NG("SELECT_TOKEN");N4p=new _.NG("DISPATCH_TOKEN");var ghG={getSelectFn:function(){var F;return(F=_.WZ().resolve(_.Fd(d5e)))!=null?F:Vyk},
getDispatchFn:function(){var F;return(F=_.WZ().resolve(_.Fd(N4p)))!=null?F:_.ja().dispatch.bind(_.ja())},
getAppStore:function(){return _.WZ().resolve(_.P2)}},U2w,Myo=!1;var tyW=void 0;var V_B=function(){};
V_B.prototype.hasAttribute=function(F){if(F==="dir")return!1;if(F==="disable-upgrade"){var W,E;return(E=(W=this.hostElement)==null?void 0:W.hasAttribute("disable-upgrade"))!=null?E:!1}throw Error("Qg`"+F);};
V_B.prototype.attributeChangedCallbackWrapper=function(F,W,E){if(F==="disable-upgrade"&&this.__isUpgradeDisabled&&E===null){this._initializeProperties();this.__isUpgradeDisabled=!1;var h;((h=this.hostElement)!=null?h:this).isConnected&&this.connectedCallback()}else W===E||this.__isReflecting||this.attributeChangedCallback(F,W,E)};
V_B.prototype.getExtraMethodsToForward=function(){for(var F=this,W=[],E=_.U(U5O),h=E.next(),d={};!h.done;d={tagName$jscomp$52:void 0,name$jscomp$533:void 0},h=E.next())d.name$jscomp$533=h.value,h=void 0,d.name$jscomp$533==="_setPendingProperty"?(d.tagName$jscomp$52=this.hostElement.tagName.toLowerCase(),h=function(V){return function(R,M,g){I4(V.tagName$jscomp$52,R,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");return F._setPendingProperty(R,M,g)}}(d)):h=function(V){return function(){return F[V.name$jscomp$533].apply(F,
_.x9(_.Dd.apply(0,arguments)))}}(d),W.push([d.name$jscomp$533,
h]);return W};
for(var x2Y=lbX(bjc((0,_.qH)(V_B))),Lqn=["disabled","disable-upgrade"],R5M=(0,_.qH)(function(){}),e5i=new Set(Object.getOwnPropertyNames(R5M.prototype)),Hjr=new Set("is hostElement root rootPath importPath inject behaviors properties provide".split(" ").concat(_.x9(e5i))),$2r=new Set(["__dataEnabled",
"__dataHasAccessor","__dataPending","__isPropertyEffectsClient","__readOnly"]),U5O=new Set("_enableProperties _flushProperties _setPendingProperty _setPendingPropertyOrPath set get".split(" ")),M_e=new Set([].concat(_.x9($2r),_.x9(U5O),_.x9(e5i))),g8H=_.U(M_e),QJe=g8H.next();!QJe.done;QJe=g8H.next())SLo.add(QJe.value);var XJr={created:function(){n6e(this);this.initializeInjection()}};var y3I=!1,Sa=window.ShadyDOM,wJo=["appendChild","insertBefore","removeChild","replaceChild"],YKo=[Node];Sa&&YKo.push(Sa.Wrapper);var Flo,Wlb,d5Y={};var Kz=new Set,pz="",N4e="";var mV,FP=new Set;var t_e=new Set("context didCallReady is info params signalProxy".split(" ")),B4k="_enableProperties _setPendingProperty _setPendingPropertyOrPath fire get linkPaths listen notifyPath notifySplices pop push set setProperties splice unlinkPaths unlisten unshift".split(" "),v8G="__dataHasAccessor __isPropertyEffectsClient $ hostElement isAttached observers properties".split(" ");var z5B=zM({entities:zin}),t_p=new wR(z5B);var Jl=function(){return _.zK.apply(this,arguments)||this};
_.k(Jl,_.zK);_.Sn.Object.defineProperties(Jl.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return t_p}}});
Jl=_.T([_.tT()],Jl);_.av=[sk.prototype,Jl.prototype];_.fy={YtLiveChatTooltipTargetingBehavior:{created:function(){this.handler_=null},
ready:function(){var F=this,W={};setTimeout(function(){var E;return _.hF((E=F.hostElement)!=null?E:F,"yt-live-chat-add-tooltip-target",W)},0);
this.handler_=W.handler},
detached:function(){if(this.handler_){var F;this.handler_.removeElementFromSupportingTooltips((F=this.hostElement)!=null?F:this)}this.handler_=null}}};_.U6=new _.NG("ICON_MANAGER_TOKEN");var CmU=[48,20,18,16,15,13,12],yib=new Map,aHk=new Set,H8I=new Set,JiG=new Set,Xuo=new Set,Pmk=new Set,O8r=new Promise(function(F){var W=!1,E=!1,h=!1,d=[],V=function(R){if("detail"in R)if(R=R.detail,R.name==="yt-icons")fHR(R),W=!0;else if(R.name==="yt-sys-icons")fHR(R),E=!0;else{var M;((M=R.name)==null?0:M.includes("yt-sys-icons"))&&R.size!==24&&(fHR(R,!0),d.push(R.size),d.length===CmU.length&&(h=!0))}W&&E&&h&&(window.removeEventListener("iron-iconset-added",V),F())};
window.addEventListener("iron-iconset-added",V)}),lHe=new Map([["access_time",
"watch_later"],["add_friend","people"],["add_to_playlist","add"],["add_to_remote_queue","add_to_queue"],["answer_neither_satisfied_nor_dissatisfied","meh"],["answer_somewhat_dissatisfied","sad"],["answer_somewhat_satisfied","happy"],["answer_very_dissatisfied","very_sad"],["answer_very_satisfied","very_happy"],["arrow-back","arrow_back"],["arrow-drop-down","arrow_drop_down"],["arrow-forward","arrow_forward"],["arrow_solid_down","arrow_solid_down-filled"],["arrow_solid_up","arrow_solid_up-filled"],
["audiotrack","music"],["auto-awesome","auto_awesome"],["avatar_anonymous","account_circle"],["avatar_logged_out","account_circle"],["back","arrow_back"],["bar_horizontal","bar_horizontal"],["block","slash_circle_left"],["bookmark_border","bookmark"],["channel_notification_preference_off","notifications"],["channel_notification_preference_on","notifications_active"],["check_circle","check_circle_thick"],["check_circle_filled","check_circle_thick-filled"],["cloud_upload","cloud_arrow_up"],["contact_support",
"help"],["content_cut","scissors"],["creation_live","live"],["creation_upload","my_videos"],["creation_upload_red","upload"],["delete_sweep","delete"],["dismissal","close"],["draft","paper_corner_folded"],["email","mail"],["emoji","very_happy"],["emoji_flags","flag"],["emoji_objects","course"],["emoji_people","very_happy"],["emoji_recent","watch_later"],["exit_app","exit_to_app"],["expand-less","collapse"],["expand-more","expand"],["expand_less","collapse"],["expand_more","expand"],["external_link",
"open_in_new"],["face_filled_happy","face_happy_v2-filled"],["face_filled_meh","face_meh_v2-filled"],["face_filled_sad","face_sad_v2-filled"],["face_filled_unhappy","face_unhappy_v2-filled"],["face_filled_very_happy","face_very_happy_v2-filled"],["face_outlined_happy","face_happy_v2"],["face_outlined_meh","face_meh_v2"],["face_outlined_sad","face_sad_v2"],["face_outlined_unhappy","face_unhappy_v2"],["face_outlined_very_happy","face_very_happy_v2"],["guide_close","chevron_left"],["help_outline","help"],
["home","tab_home"],["info_outline","info"],["insert_chart","poll"],["insert_photo","image"],["launch","open_in_new"],["likes_playlist","like"],["live","radar_live"],["live_unlisted","link"],["local_offer","purchases"],["members_only_mode_off","message"],["money_fill_jpy","yen_sign_container"],["more_chevron","expand"],["more_horiz","more"],["music_note","music"],["music_repeat_all","loop"],["music_repeat_one","loop_one"],["music_shuffle","shuffle"],["my_channel","account_circle"],["notifications_done_checkmark",
"check"],["notifications_none","notifications"],["official_artist_badge","music"],["outline_arrow_solid_down","arrow_solid_down"],["paid","creator_metadata_monetization"],["play_all","play_arrow"],["privacy_private","lock"],["privacy_unlisted","link"],["question_answer","forum"],["remove-circle-outline","remove_circle"],["report","error"],["report_problem","warning"],["schedule","watch_later"],["settings_application","settings"],["settings_material","settings"],["share_arrow","share"],["slow_mode_off",
"message"],["sticker_emoticon","happy"],["subscription_manager","settings"],["supervisor_account","people"],["tab_account","person"],["tab_explore","explore"],["tab_subscriptions","subscriptions"],["tab_trending","fire"],["timer","stopwatch"],["trending","fire"],["unlimited","subscribe"],["vertical_align_bottom","offline_download"],["video_library_white","uploads"],["video_youtube","subscribe"],["wallpaper","image"],["watch_related_mix","mix"],["what_to_watch","tab_home"]]);_.Ok={};_.Ok.YtComponentBehavior={_noAccessors:!0,getSimpleString:_.Yr,computeHref_:function(F,W){W=W===void 0?!1:W;if(!F||F.commandExecutorCommand)return null;var E=iKk(F,W);return W||E!==null?E?_.c("enable_polymer_resin")?_.II(E).toString():E:null:(_.OB(new _.xC("computeHref was null",this.is,F)),null)},
computeOptionalHref_:function(F){return this.computeHref_(F,!0)},
computeNofollow_:function(F){return F?Jmo(F)?"nofollow":null:null},
computeIcon_:function(F){return F&&F.iconType?_.Vd(F.iconType):""},
resolveCommand:function(F,W,E){W=W===void 0?{}:W;return _.ei(F,this.hostElement,W,E===void 0?!1:E)}};var v8O,ba;_.B4H={};v8O=null;
ba={isVisibilityRoot:!1,properties:{observeVisibleOption:{type:String,value:null},observeHiddenOption:{type:String,value:null},observePrescanOption:{type:String,value:null},viewroot:Object,visibilityMonitorKeys:{type:Array,value:void 0},visibilityObserver:Object},created:function(){this.visibilityObserverForChild_=this.localVisibilityObserver_=null;this.visibilityOptionVisible_=this.observeVisibleOption?{calledOnce:this.observeVisibleOption=="observe_once",state:"visible"}:null;this.visibilityOptionHidden_=
this.observeHiddenOption?{calledOnce:this.observeHiddenOption=="observe_once",state:"hidden"}:null;this.visibilityOptionPrescan_=this.observePrescanOption?{calledOnce:this.observePrescanOption=="observe_once",state:"prescan"}:null},
attached:function(){this.isVisibilityRoot&&(this.visibilityObserverForChild_=s9n(this.viewroot));_.fz(this.initVisibilityObserver_.bind(this))},
initVisibilityObserver_:function(){this.visibilityObserver&&this.configureVisibilityObserver_()},
configureVisibilityObserver_:function(){var F=this;this.unobserve_();if(_.c("kevlar_vimio_use_shared_monitor"))o8o(this.hostElement,{data:this.data||null,observer:this.visibilityObserver,visibilityCallback:this.visibilityCallback.bind(this),prescanCallback:this.onPrescanVisible.bind(this),layer:this.getScreenLayer&&this.getScreenLayer(),showOption:this.visibilityOptionVisible_,hideOption:this.visibilityOptionHidden_,prescanOption:this.visibilityOptionPrescan_,skipLogging:this.shouldSkipLogging.bind(this)});
else{var W=[];this.visibilityOptionVisible_&&W.push(this.visibilityObserver.observe(this.hostElement,function(){return F.onVisible()},this.visibilityOptionVisible_));
this.visibilityOptionHidden_&&W.push(this.visibilityObserver.observe(this.hostElement,function(){return F.onHidden()},this.visibilityOptionHidden_));
this.visibilityOptionPrescan_&&W.push(this.visibilityObserver.observe(this.hostElement,function(){return F.onPrescanVisible()},this.visibilityOptionPrescan_));
this.visibilityMonitorKeys=W}},
detached:function(){this.unobserve_();this.visibilityObserverForChild_=this.localVisibilityObserver_=null},
unobserve_:function(){jJG(this,this.visibilityObserver)},
markDirtyVisibilityObserver:function(){this.localVisibilityObserver_&&this.configureVisibilityObserver_()},
getVisibilityObserverForChild:function(){return this.visibilityObserverForChild_?this.visibilityObserverForChild_:this.localVisibilityObserver_},
get visibilityObserver(){if(this.localVisibilityObserver_)return this.localVisibilityObserver_;var F=_.HE(this.parentNode,function(E){var h,d=(h=E.polymerController)!=null?h:E;return!!d.getVisibilityObserverForChild&&d.getVisibilityObserverForChild()},!0);
if(F){var W;this.localVisibilityObserver_=((W=F.polymerController)!=null?W:F).getVisibilityObserverForChild()}else v8O||(v8O=s9n()),this.localVisibilityObserver_=v8O;return this.localVisibilityObserver_},visibilityCallback:function(F){F?this.onVisible():this.onHidden()},
onVisible:function(){},
onHidden:function(){},
onPrescanVisible:function(){},
shouldSkipLogging:function(){}};
_.c("kevlar_use_vimio_behavior")||(ba={});ba&&!_.c("kevlar_use_vimio_behavior")&&(delete ba.attached,delete ba.detached);_.B4H.YtVisibilityObserverBehavior=[ba];var IHa={};IHa.YtVisualElementBehavior=[_.B4H.YtVisibilityObserverBehavior,{properties:{observeVisibleOption:{type:String,value:"observe_multiple"},observeHiddenOption:{type:String,value:"observe_multiple"},visualElement:Object},onVisible:function(){if(_.c("kevlar_use_vimio_behavior")&&this.onShow)this.onShow();if(!_.c("kevlar_vimio_use_shared_monitor")&&!this.shouldSkipLogging()){var F=this.getScreenLayer&&this.getScreenLayer(),W=this.getVisibilityLogger();W&&W.reportShown(this,void 0,F)}},
onHidden:function(){if(_.c("kevlar_use_vimio_behavior")&&this.onHide)this.onHide();if(!_.c("kevlar_vimio_use_shared_monitor")){var F=this.getScreenLayer&&this.getScreenLayer(),W=this.getVisibilityLogger();W&&W.reportHidden(this,void 0,F)}},
getVisibilityLogger:function(){return _.c("kevlar_use_vimio_behavior")?_.gh():null},
shouldSkipLogging:function(){if(_.b0("INNERTUBE_CLIENT_NAME")!=="WEB"||!this.data)return!1;var F=this.getParentRenderer&&this.getParentRenderer();if(!F)return!1;var W,E=(W=F.polymerController)!=null?W:F;if(!E.data)return!1;F=this.data.trackingParams;F=this.data.loggingDirectives?this.data.loggingDirectives.trackingParams:F;var h;W=(h=E.data)==null?void 0:h.trackingParams;var d,V;W=((d=E.data)==null?0:d.loggingDirectives)?(V=E.data)==null?void 0:V.loggingDirectives.trackingParams:W;return F&&W&&F===
W}}];var uro=new Map,Iu;var p7W=function(F){this.layer=F},jb=function(F){return F.layer!==void 0?F.layer:F.parent?jb(F.parent):F.layer=0};var WnY;_.K={};WnY=0;_.K.YtRendererBehavior=[_.Ok.YtComponentBehavior,IHa.YtVisualElementBehavior,{_noAccessors:!0,properties:{data:Object},observers:["ytRendererBehaviorDataObserver_(data)","ytRendererBehaviorTargetIdObserver_(data.targetId)"],childCache_:null,parentComponent:null,wasVisible:!1,wasPrescan:!1,lastHandledScroll_:0,isRenderer_:!0,screenLayer:null,veFromLoggingDirective_:!1,useVimio_:_.c("kevlar_use_vimio_behavior"),created:function(){this.useVimio_||(this.childCache_=new Set)},
detached:function(){if(this.monitorScroll){var F,W;(W=(F=this.monitorScrollElement)!=null?F:this.hostElement)==null||W.removeEventListener("scroll",_.UO(this,this.onScroll))}this.parentComponent&&(this.parentComponent.childCache_&&this.parentComponent.childCache_.delete(this.hostElement),this.parentComponent=null);this.useVimio_||this.markDirty();YbW(this.hostElement);L3_(_.QV(),this.hostElement);wW.delete(this.hostElement)},
registerRenderer:function(F){var W;((W=F.polymerController)!=null?W:F).parentComponent=this.hostElement;this.useVimio_||(this.childCache_.add(F),this.markDirty())},
unregisterRenderer_:function(F){this.useVimio_||(this.childCache_.delete(F),this.markDirty())},
attached:function(){var F=this,W=this.getParentRenderer();if(W){var E,h,d;(h=(E=(d=W.polymerController)!=null?d:W).registerRenderer)==null||h.call(E,this.hostElement)}if(!this.useVimio_&&this.monitorScroll){var V,R;(R=(V=this.monitorScrollElement)!=null?V:this.hostElement)==null||R.addEventListener("scroll",_.UO(this,this.onScroll))}_.P0.addJob(function(){SbS(F.hostElement)},8);
E=new p7W(this.screenLayer||void 0);(W=us(W))&&W.layerNode&&(E.parent=W.layerNode);W={};aok(this.hostElement,(W.isRenderer=!0,W.layerNode=E,W[iJ]=this.data,W))},
getParentRenderer:function(){for(var F=this.hostElement.parentNode,W,E;F&&((W=us(F))==null||!W.isRenderer)&&!((E=F.polymerController)!=null?E:F).isRenderer_;)F=F.parentNode||F.host;return F},
ytRendererBehaviorDataObserver_:function(){if(this.data){this.wasVisible=!1;_.c("kevlar_use_vimio_behavior")&&this.markDirtyVisibilityObserver();_.l0("ADD_SCRAPER_ATTRIBUTES")&&this.data.trackingParams&&(this.hostElement.dataset.ved=this.data.trackingParams);if(_.c("debug_web_ve_data")&&this.data.trackingParams){var F="";try{F=atob(this.data.trackingParams.replace(/-/g,"+").replace(/_/g,"/"))}catch(E){_.a_(E)}if(F){var W=hvI(F,1);W!==void 0&&(this.hostElement.dataset.veIndex=String(W));F=hvI(F,2);
F!==void 0&&(this.hostElement.dataset.ve=String(F))}}this.veFromLoggingDirective_&&(this.dataElement=this.clientYouTubeData=this.veType=this.visualElement=void 0,this.veFromLoggingDirective_=!1);!this.visualElement&&this.data.loggingDirectives&&this.data.loggingDirectives.clientVeSpec&&this.data.loggingDirectives.clientVeSpec.uiType&&(this.veType=this.data.loggingDirectives.clientVeSpec.uiType,this.clientYouTubeData=this.data.loggingDirectives.clientVeSpec.clientYoutubeData,_.c("debug_web_ve_data")&&
(this.hostElement.dataset.ve=String(this.veType)),this.data.loggingDirectives.trackingParams&&(this.dataElement=_.ve(this.data.loggingDirectives.trackingParams)),this.visualElement=_.Qd(_.z4(),this)||void 0,this.veFromLoggingDirective_=!0)}},
ytRendererBehaviorTargetIdObserver_:function(){if(this.data&&this.data.targetId){var F=this.data.targetId;_.$_u(_.QV(),F,this.hostElement)}else L3_(_.QV(),this.hostElement)},
onScroll:function(){var F=Date.now();F-this.lastHandledScroll_<50||(this.lastHandledScroll_=F,this.markDirty())},
markDirty:function(){_.c("kevlar_use_vimio_behavior")?this.markDirtyVisibilityObserver():ESo(this.hostElement)},
getScreenLayer:function(){if(this.screenLayer)return this.screenLayer;var F=this.getParentRenderer();if(F&&(F=us(F))&&F.layerNode)return jb(F.layerNode)},
invalidate:function(){this.markDirty();this.wasPrescan=this.wasVisible=!1},
getNodes:function(){return this.childCache_?[].concat(_.x9(this.childCache_)):[]},
impressionLog:function(){if(this.data&&this.data.impressionEndpoints)for(var F=0;F<this.data.impressionEndpoints.length;F++)this.sendImpression(this.data.impressionEndpoints[F]);else this.data&&this.data.impressionEndpoint&&this.sendImpression(this.data.impressionEndpoint)},
sendImpression:function(F){F.clickTrackingParams&&delete F.clickTrackingParams;var W,E;(F==null?0:(W=F.commandMetadata)==null?0:(E=W.webCommandMetadata)==null?0:E.sendPost)?_.UT(this.hostElement,[F,{impression:!0}]):_.Rj(this.hostElement,[F],this.hostElement)},
logExplicitClick:function(F){var W=_.JR(this.getScreenLayer());if(W){var E,h=(E=F.polymerController)!=null?E:F;F=h.visualElement;h=h.trackingParams||h.clickTrackingParams;!F&&h&&(F=_.ve(h));F&&_.oj(W,F)}}}];var ciH={},la=function(){return _.zK.apply(this,arguments)||this};
_.k(la,_.zK);la.prototype.onPdgItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
la.prototype.onPdgItemBehaviorClick=la.prototype.onPdgItemBehaviorClick;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],la.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],la.prototype,"data",void 0);_.T([_.R4("click"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],la.prototype,"onPdgItemBehaviorClick",null);la=_.T([_.tT()],la);ciH.YtPdgLiveChatItemBehavior=[la.prototype,_.K.YtRendererBehavior];var D5H;var x5c;_.ny={};_.ny.YtVisibilityBehavior={_noAccessors:!0,properties:{disablePrescanVisibility:Boolean,prescanHeight:{type:Number,reflectToAttribute:!0}},onShow:function(){if(this.onShow_)this.onShow_()}};var yV=function(){var F=mr.apply(this,arguments)||this;F.switchTemplateAtRegistration=!1;return F};
_.k(yV,mr);yV.prototype.ready=function(){this.templatingFn&&(this.switchTemplateAtRegistration||V4w(this),_.aMk(this,"doRender"),this.doRender())};
yV.prototype.debounceRender=function(){this.templatingFn&&_.OO(this,"doRender",this.doRender)};
yV.prototype.doRender=function(){this.templatingFn?this.templatingFn():_.a_(Error("$g"))};
yV.prototype.experimentalTemplatingInUse=function(){return!!this.templatingFn};
yV=_.T([kFY()],yV);var kW_=yV;var Aic=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,j8={},M4Y=(j8[1]={filterString:null,isUnwrappable:null,unwrap:null},j8[2]={filterString:function(F,W,E){return eb(E)},
isUnwrappable:function(F){return F instanceof qi},
unwrap:function(F){return X3(F)}},j8[3]={filterString:function(F,W,E){return Aic.test(E)?E:vp.toString()},
isUnwrappable:function(F){return zy(F)},
unwrap:function(F){return _.ty(F)}},j8[4]={filterString:function(){return vp.toString()},
isUnwrappable:function(F){return F instanceof UW},
unwrap:function(F){return _.e9(F).toString()}},j8[5]={filterString:function(F,W,E){return E},
isUnwrappable:function(F){return typeof F==="string"},
unwrap:function(F){return F.toString()}},j8[7]={filterString:function(){return" /*zClosurez*/ "},
isUnwrappable:function(F){return F instanceof _.fu},
unwrap:function(F){return bi(F)}},j8[8]={filterString:function(F,W,E){E=String(E).toLowerCase();
return CYr(F,W,E)?E:"zClosurez"},
isUnwrappable:null,unwrap:null},j8[10]={filterString:null,isUnwrappable:null,unwrap:null},j8);Kn[fd["default"]]=QRr;var zfr=[];var Awk=Cto("A"),sFr=Cto("BUTTON"),DR=Cto("DIV"),LHI=Cto("LABEL");(function(){var F=Se;Se=function(W){F==null||F(W);kT(function(){for(var E=0;E<W.length;E++)t4r(W[E])})}})();var ia=function(){var F=_.zK.apply(this,arguments)||this;F.hasUnmounted=!1;return F};
_.k(ia,_.zK);_.N=ia.prototype;_.N.beforeRegister=function(){var F=this.doIdomRender;this.templatingFn?_.a_(Error("Zg")):(this.templatingFn=F,this.switchTemplateAtRegistration=!0,efr(this))};
_.N.attached=function(){};
_.N.detached=function(){t4r(this.hostElement)};
_.N.renderIdom=function(){throw Error("bh");};
_.N.doIdomRender=function(){var F=this;EYS(this.hostElement,function(){F.renderIdom()})};
ia=_.T([_.tT()],ia);var sJp=[kW_.prototype,ia.prototype];var LlB,qbi=function(){return LlB!==void 0?LlB:LlB=document.createElement("template")};
document.head.appendChild(qbi().content);var $5c;var Z8_,XuM=function(){return Z8_!==void 0?Z8_:Z8_=document.createElement("template")};
document.head.appendChild(XuM().content);var H8c;var PmH=document.head,JiO=PmH.appendChild,aHH;if(H8c===void 0){var fHz=document.createElement("template");_.L(fHz,"\x3c!--css-build:shady--\x3e");fHz.content.insertBefore(XuM().content.cloneNode(!0),fHz.content.firstChild);H8c=fHz}aHH=H8c;JiO.call(PmH,aHH.content);var O8u,b8z=function(){return O8u!==void 0?O8u:O8u=document.createElement("template")};
document.head.appendChild(b8z().content);var lHp;var n8B=document.head,yiT=n8B.appendChild,jJO;if(lHp===void 0){var i8H=document.createElement("template");_.L(i8H,"\x3c!--css-build:shady--\x3e");i8H.content.insertBefore(b8z().content.cloneNode(!0),i8H.content.firstChild);lHp=i8H}jJO=lHp;yiT.call(n8B,jJO.content);var riz=document.head,T4B=riz.appendChild,o8_;if($5c===void 0){var GWz=document.createElement("template");_.L(GWz,"\x3c!--css-build:shady--\x3e");GWz.content.insertBefore(qbi().content.cloneNode(!0),GWz.content.firstChild);$5c=GWz}o8_=$5c;T4B.call(riz,o8_.content);var YbB,wu_=function(){return YbB!==void 0?YbB:YbB=document.createElement("template")};
document.head.appendChild(wu_().content);var urM;_.nK=new _.NG("DARK_THEME_TOKEN");var U7Y=new _.S("accessibilityProperties");var Vqr=new _.S("layoutProperties");var RVY=new _.S("imageType");var Sb_={};if("ytAttributedStringLinkHoverColor"in Sb_)throw Error("eh`ytAttributedStringLinkHoverColor");(function(F,W){Sb_[F]="value"in W&&"unit"in W?DxY(F,W):function(E){try{return W(E)}catch(h){throw Error("ch`"+F+"`"+h.message);}}})("ytAttributedStringLinkHoverColor",{value:"unset !stv-no-inline",
unit:"str"});var puM=function(F){var W=this;this.holdTime=F===void 0?500:F;this.longPressTimeout=NaN;this.moveOccurred=this.longPressOccurred=!1;this.onlongpress=function(E){var h=new CustomEvent("LONG_PRESS"),d;(d=E.changedTouches[0].target)==null||d.dispatchEvent(h)};
this.ontouchstart=function(E){W.longPressTimeout=_.JG(_.P0,function(){W.onlongpress(E);W.longPressOccurred=!0},W.holdTime)};
this.ontouchmove=function(){_.P0.cancelJob(W.longPressTimeout);W.longPressTimeout=NaN;W.longPressOccurred=!1;W.moveOccurred=!0};
this.ontouchend=function(E){if(W.longPressTimeout&&!W.longPressOccurred&&!W.moveOccurred){var h;(h=E.changedTouches[0].target)==null||h.dispatchEvent(new Event("click"))}_.P0.cancelJob(W.longPressTimeout);W.longPressTimeout=NaN;W.longPressOccurred=!1;W.moveOccurred=!1}};var isG=function(F,W){puM.call(this,W);var E=this;this.callback=F;this.onlongpress=function(h){var d;(d=E.callback)==null||d.call(E,h)}};
_.k(isG,puM);var rIS=function(F,W){var E=Object.assign({},W);F=_.U(new Map([["ontouchstart",F.ontouchstart],["ontouchend",F.ontouchend],["ontouchmove",F.ontouchmove]]));for(var h=F.next(),d={};!h.done;d={eventName$jscomp$87:void 0,eventHandler$jscomp$3:void 0},h=F.next()){var V=_.U(h.value);h=V.next().value;V=V.next().value;d.eventName$jscomp$87=h;d.eventHandler$jscomp$3=V;W[d.eventName$jscomp$87]=function(R){return function(M){var g;(g=E[R.eventName$jscomp$87])==null||g.call(E,M);(0,R.eventHandler$jscomp$3)(M)}}(d)}};_.EJ=new _.NG("COMMAND_HANDLER_TOKEN");var kZo=new _.S("parallelCommand");var Lnw=new _.S("performOnceCommand");var sRk=new _.S("serialCommand");var qvn=void 0;var m5M=function(){this.data=[]};
m5M.prototype.push=function(F){this.data.push(F)};var Mv={};_.g$(Mv,void 0,"sgPmTd");_.g$(null,void 0,"jypsq");var coG=new m5M;var fOW=[vW_,ISB,crp,xwB,DwH,BIM,kRX,Arz];var d7o=new _.S("bracketTextDecorator");var lH=new _.S("highlightTextDecorator");_.ji=new _.NG("APP_DIRECTION_TOKEN");Object.freeze&&Object.freeze(Object.create(null));var Knb=function(){},Kla;
(Kla=window.requestIdleCallback)==null||Kla.bind(window);var WIr={calledOnce:!1,state:"visible"},FIS={calledOnce:!1,state:"hidden"};var KQW=new _.NG("ICON_RENDERER_TOKEN"),FnO=new _.NG("ICON_WIZ_COMPONENT_TOKEN");_.I3=_.GK(function(F){var W=F.icon;var E=F.active;var h=F.className;var d=F.style;var V=F.dataSelected;var R=F.dataDisabled;var M=F.role;var g=F.animateIcon;var t=F.themeOverride;var C=F.ariaHidden;var B=F.ariaExpanded;var I=F.ariaLabel;var x=F.id;var A=F.size;var X=F.iconFilter;return _.z(_.v,{cond:W,then:function(){var P=_.WZ().resolve(FnO);return _.z(P,{icon:W,dataSelected:V,dataDisabled:R,animateIcon:g,themeOverride:t,ariaExpanded:B,id:x,active:E,size:A,role:M,className:h,ariaHidden:C,ariaLabel:I,
style:function(){return d!=null&&d()||A==null||!A()?d==null?void 0:d():"width: "+(A==null?void 0:A())+"px;height: "+((A==null?void 0:A())+"px;")},
iconFilter:X})}})},"b");
_.I3.idomCompat=!0;var s1I=window.devicePixelRatio||1;var ZRo=new Map([["yt_outline_bag_black_24","bag"]]);var r_=function(F){var W=this;this.margin=.1;this.whenInViewportWithMargin=F;this.observationTargets=[];this.scanRequested=!1;window.addEventListener("touchmove",function(){W.requestScan()});
window.addEventListener("touchend",function(){W.requestScan()});
window.addEventListener("updateui",function(){W.requestScan()});
var E=new _.Nv((0,_.kj)(this.requestScan,this),100);window.addEventListener("scroll",function(){E.fire()},!0);
window.addEventListener("resize",(0,_.kj)(this.requestScan,this));window.addEventListener("state-navigatestart",function(){W.observationTargets=[]});
window.addEventListener("state-navigateend",(0,_.kj)(this.requestScan,this))};
r_.prototype.observe=function(F){this.observationTargets.includes(F)||this.observationTargets.push(F)};
r_.prototype.unobserve=function(F){this.observationTargets=this.observationTargets.filter(function(W){return W!==F})};
r_.prototype.requestScan=function(){var F=this;this.scanRequested||(kT(function(){Wne(F)}),this.scanRequested=!0)};
var Wne=function(F){var W=(1+F.margin)*(document.documentElement.clientHeight||window.innerHeight);F.observationTargets=F.observationTargets.filter(function(E){var h=E.getBoundingClientRect();(h=W>h.top&&!!h.height)&&F.whenInViewportWithMargin(E);return!h&&E.parentNode});
F.scanRequested=!1};
r_.prototype.disconnect=function(){this.observationTargets=[]};var ESM,dxU;ESM=_.U(_.g$(JeS(),void 0,"O3X2wd"));_.hfi=ESM.next().value;dxU=ESM.next().value;window.addEventListener("resize",function(){dxU(JeS())});var NjT={landscape:"(min-width: 931px) and (orientation: landscape)",portrait:"(min-width: 550px) and (orientation: portrait)"},V4U=void 0,UxM=window.innerWidth,Rfi=window.innerHeight;window.addEventListener("resize",function(){V4U=void 0});var efa;if("IntersectionObserver"in window)efa=ORk();else{if(V4U===void 0){var M4X;M4X="matchMedia"in window?window.matchMedia(NjT.landscape+","+NjT.portrait).matches:void 0;V4U=M4X!==void 0?M4X:UxM>=930&&Rfi>=550||UxM>=550&&Rfi>=930}efa=V4U?{observe:function(F){kT(function(){var W;(W=F.onViewportEntered)==null||W.call(F)})},
unobserve:function(){}}:new r_(function(F){kT(function(){var W;
(W=F.onViewportEntered)==null||W.call(F)})})}var a$w=efa;var gSe=_.GK(function(F){var W=!1,E=_.uf(function(h){_.$p(function(){W=!0;h.onload=null})});
_.q6(function(){var h,d=(h=F.data)==null?void 0:h.call(F),V,R=(V=F.getSrc)==null?void 0:V.call(F).cb,M;h=(M=F.config)==null?void 0:M.call(F);if(M=E.value)if(V=function(t,C){if(!W)return R?R(t,C):t},nqr(M,h),_.c("web_image_dont_reload_same_src")&&l$k(M,d,V))_.c("web_image_dont_reload_same_src_simulate_load")&&M.dispatchEvent(new CustomEvent("load",{bubbles:!1,
cancelable:!1,detail:{message:"Simulating load event for already loaded image"}}));else{var g;bRY(M,d||null,V,h,(g=F.lazy)==null?void 0:g.call(F))}});
return _.z("img",{el:E})},"c");
gSe.idomCompat=!0;_.T4=_.GK(function(F){var W=function(){var E,h=F.data(),d,V,R,M,g,t,C,B,I,x,A,X,P,b,l,w,G,hr,p,UY,xW,qw,Lb,jk,Jr,nb,bo;var uo={contentMode:(d=F.contentMode)==null?void 0:d.call(F),loadedClass:(V=F.loadedClass)==null?void 0:V.call(F),isPreloaded:(R=F.isPreloaded)==null?void 0:R.call(F),notifyOnLoaded:(M=F.notifyOnLoaded)==null?void 0:M.call(F),notifyOnUnloaded:(g=F.notifyOnUnloaded)==null?void 0:g.call(F),preferredThumbnail:(t=F.preferredThumbnail)==null?void 0:t.call(F),preserveHeight:(C=F.preserveHeight)==
null?void 0:C.call(F),preserveWidth:(B=F.preserveWidth)==null?void 0:B.call(F),objectPosition:(I=F.objectPosition)==null?void 0:I.call(F),targetWidth:(x=F.targetWidth)==null?void 0:x.call(F),targetHeight:(A=F.targetHeight)==null?void 0:A.call(F),shouldShowPlaceholder:(X=F.shouldShowPlaceholder)==null?void 0:X.call(F),useWidth:(P=F.useWidth)==null?void 0:P.call(F),alt:(b=F.alt)==null?void 0:b.call(F),className:(l=F.className)==null?void 0:l.call(F),onerror:F.onerror,onload:F.onload,style$:((w=F.style$)==
null?void 0:w.call(F))||((G=F.style)==null?void 0:G.call(F)),color:(hr=F.color)==null?void 0:hr.call(F),width:(p=F.width)==null?void 0:p.call(F),height:(UY=F.height)==null?void 0:UY.call(F),"aria-hidden$":(nb=(xW=F["aria-hidden$"])==null?void 0:xW.call(F))!=null?nb:(qw=F.ariaHidden)==null?void 0:qw.call(F),draggable:(Lb=F.draggable)==null?void 0:Lb.call(F),"data-disabled$":(bo=(jk=F["data-disabled$"])==null?void 0:jk.call(F))!=null?bo:(Jr=F.dataDisabled)==null?void 0:Jr.call(F)};return iRG(h,uo,(E=
F.hideOn404)==null?void 0:E.call(F))};
return _.z(_.sG,null,_.z(_.kF,{when:function(){var E;return((E=W())==null?void 0:E.type)==="image"}},function(){return _.z(gSe,{data:function(){return W().image},
getSrc:{cb:function(E,h){var d=W().image.sources,V=W().config.isPreloaded,R=W().config.useWidth,M=W().config.targetWidth,g=W().config.targetHeight,t=W().config.preferredThumbnail;return _.LIn(h,d,V,R,M,g,t)||""}},
config:function(){var E=W().config,h;for(h in E)E[h]===void 0&&delete E[h];return E},
lazy:F.renderLazy})}),_.z(_.kF,{when:function(){var E;
return((E=W())==null?void 0:E.type)==="icon"}},function(){return _.z(_.I3,{icon:function(){return W().iconName},
role:function(){return W().config.role},
className:function(){return W().config.className},
style:function(){return W().config.style$+";width: "+(W().config.width+"px;height: ")+(W().config.height+"px;color: ")+(W().config.color+";")},
ariaLabel:function(){return W().config["aria-label$"]},
ariaHidden:function(){return W().config["aria-hidden$"]},
dataDisabled:function(){return W().config["data-disabled$"]}})}))},"d");
_.T4.idomCompat={callbacks:{callback:!0,onerror:!0,onload:!0}};var QRu=function(F){return function(W){return _.z(cbG,null,function(){var E=W.data(),h=_.XO(W.config);return _.z(pn,null,function(){return void F(E,h)})})}}(Glb),TmI=_.GK(function(F){var W=function(h){var d,V=_.G4(function(I){d=Zn(function(){for(var x=_.U(C()),A=x.next();!A.done;A=x.next()){A=YxI(A.value);
A=typeof A==="string"?document.createTextNode(A):A;if(!(A instanceof Node)){x=new _.xC("Part is not a node",A,typeof A);_.a_(x);break}I.appendChild(A)}})}),R=wh(function(){return Mqr(h())},{isEqual:reY}),M=_.TK(F.config),g=function(){var I,x=R();
return!((I=M())==null||!I.ariaLabel)||!(x.commandRuns&&x.commandRuns.length!==0||x.paragraphStyleRuns&&x.paragraphStyleRuns.length!==0)},t=wh(M,{isEqual:u5b}),C=function(){var I=eVk(R(),t());
Q1Y(I,t());return R().content?I$Y(R().content,I).parts:[]},B=!0;
_.q6(function(){R();t();if(B)B=!1;else{var I=C();Promise.resolve().then(function(){var x=V.value;if(x){x.innerText="";var A;(A=d)==null||A();d=_.qO(x,function(){return _.z(wjr,{parts:I})})}})}});
return _.z("span",{el:V,class:function(){return R()&&wqo(R(),M())},
dir:function(){var I;return((I=M())==null?0:I.userInput)?"auto":void 0},
"aria-label":function(){var I;return g()?(I=M())==null?void 0:I.ariaLabel:void 0},
role:function(){return g()?"text":void 0}})},E;
return((E=F.config)==null?0:E.renderedFromFormattedString)?W(F.text):_.z(_.v,{cond:F.text,then:W})},"e");
TmI.idomCompat=!0;_.Ab=_.GK(function(F){var W=_.TK(F.text),E=Sxw(F);F.renderedFromFormattedString!==void 0&&(E.renderedFromFormattedString=!0);return _.c("attr_string_reactive")?_.z(TmI,{text:W,config:E}):_.z(_.v,{cond:function(){var h;return W()&&((h=Mqr(W()))==null?void 0:h.content)},
then:function(){return _.z(QRu,{data:F.text,config:E})},
debugInstance:"Apcuac"})},"f");
_.Ab.idomCompat=!0;var m7n=function(F,W,E){W=W===void 0?"unknown":W;E=E===void 0?{}:E;_.xC.call(this,F+" ("+W+")",Object.assign({},{name:"YtWcwError",tagName:W},E));Object.setPrototypeOf(this,this.constructor.prototype)};
_.k(m7n,_.xC);_.dbY=new WeakMap;_.hYG=!1;var EDo,NEI,WUG;_.TS=Symbol("gh");_.Si=Symbol("hh");EDo=Symbol("ih");NEI=new Set(Object.getOwnPropertyNames(Element.prototype));WUG=Symbol("jh");var zfa=_.GK(function(F){return _.z("yt-attributed-string",{"aria-label":F.ariaLabel,hidden:F.hidden,id:F.id,class:F.className,"force-default-style":F.forceDefaultStyle},_.z(_.Ab,{text:F.data,ariaLabel:F.ariaLabel,ellipsisTruncate:F.ellipsisTruncate,isOverlay:F.isOverlay,linkInheritColor:F.linkInheritColor,noPreWrap:F.noPreWrap,noWrap:F.noWrap,userInput:F.userInput,noEndpoints:F.noEndpoints,headerRuns:F.headerRuns}))},"g");
_.c("web_wiz_attributed_string")&&_.pK(zfa,"yt-attributed-string",{props:{ariaHidden:_.TS,ariaLabel:_.TS,className:_.TS,ellipsisTruncate:_.TS,isOverlay:_.TS,linkInheritColor:_.TS,noEndpoints:_.TS,noStyleRuns:_.TS,noLinkColor:_.TS,noPreWrap:_.TS,noWrap:_.TS,skipOnClick:_.TS,userInput:_.TS,headerRuns:_.TS,id:_.TS,data:_.TS,hidden:_.TS,forceDefaultStyle:_.TS,text:_.Si,stopPropagation:_.Si,disableUpgrade:_.Si,disable:_.Si,slot:_.Si}});var ov=function(){return _.n.apply(this,arguments)||this};
_.k(ov,_.n);ov.prototype.renderIdom=function(){this.data&&!this.disable&&(this.config={ariaLabel:this.hostElement.ariaLabel,ellipsisTruncate:this.ellipsisTruncate,isOverlay:this.isOverlay,linkInheritColor:this.linkInheritColor,noPreWrap:this.noPreWrap,noWrap:this.noWrap,userInput:this.userInput,noEndpoints:this.noEndpoints,headerRuns:this.headerRuns},Glb(this.data,this.config))};
_.T([_.J(sJp),_.Y("design:type",Object)],ov.prototype,"ytIdomTemplatingBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],ov.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],ov.prototype,"ariaLabel",void 0);_.T([_.O(),_.Y("design:type",Boolean)],ov.prototype,"disable",void 0);_.T([_.O(),_.Y("design:type",Boolean)],ov.prototype,"ellipsisTruncate",void 0);_.T([_.O(),_.Y("design:type",Boolean)],ov.prototype,"isOverlay",void 0);
_.T([_.O(),_.Y("design:type",Boolean)],ov.prototype,"linkInheritColor",void 0);_.T([_.O(),_.Y("design:type",Boolean)],ov.prototype,"noPreWrap",void 0);_.T([_.O(),_.Y("design:type",Boolean)],ov.prototype,"noWrap",void 0);_.T([_.O(),_.Y("design:type",Boolean)],ov.prototype,"userInput",void 0);_.T([_.O(),_.Y("design:type",Boolean)],ov.prototype,"noEndpoints",void 0);_.T([_.O(),_.Y("design:type",Array)],ov.prototype,"headerRuns",void 0);
ov=_.T([_.$3({is:"yt-attributed-string",disableElementRegistration:!0})],ov);
_.c("web_wiz_attributed_string")||_.r(ov,"yt-attributed-string",function(){if(urM===void 0){var F=document.createElement("template");_.L(F,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-attributed-string--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.web_interface_library.core.yt_attributed_string.yt.attributed.string.css.js--\x3e");F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);
F.content.insertBefore(wu_().content.cloneNode(!0),F.content.firstChild);urM=F}F=urM;return F},{mode:2});var t4u,CtM,QcR;t4u=function(){this.firstThumbnailLoaded=!1};
_.BjH=function(){CtM||(CtM=new t4u);return CtM};
QcR=function(F){var W=_.BjH();W.firstThumbnailLoaded||(W.firstThumbnailLoaded=!0,_.P5("ftl",F))};
t4u.prototype.reset=function(){this.firstThumbnailLoaded=!1};var UbY=0,gDo=new WeakMap,eYw=0,FE=new Set;var vST,IOe=function(){return vST!==void 0?vST:vST=document.createElement("template")};
document.head.appendChild(IOe().content);var cIM;var BER,ILw,GS;_.hb=_.EY.caches;GS=function(){};
GS.prototype.open=function(F){return _.hb.open(DxX(F))};
GS.prototype.has=function(F){return _.hb.has(DxX(F))};
GS.prototype.delete=function(F){return _.hb.delete(DxX(F))};
GS.prototype.match=function(F,W){var E=this,h,d,V,R,M,g;return _.e(function(t){switch(t.nextAddress){case 1:return _.Q(t,E.keys(),2);case 2:h=t.yieldResult,d=_.U(h),V=d.next();case 3:if(V.done){t.jumpTo(5);break}R=V.value;return _.Q(t,E.open(R),6);case 6:return M=t.yieldResult,_.Q(t,M.match(F,W),7);case 7:if(g=t.yieldResult)return t.return(g);V=d.next();t.jumpTo(3);break;case 5:return t.return()}})};
var cdo=function(){};
_.k(cdo,GS);var DxX=function(F){if(F.includes(":"))throw Error("mh`"+F);return F+":"+_.cZ("CacheStorage get")};
cdo.prototype.keys=function(){var F,W,E,h,d,V,R,M,g;return _.e(function(t){if(t.nextAddress==1)return F=[],W=_.cZ("CacheStorage keys"),_.Q(t,_.hb.keys(),2);E=t.yieldResult;h=_.U(E);for(d=h.next();!d.done;d=h.next())V=d.value,R=_.CRr(V),M=R.originalName,g=R.datasyncId,g===W&&F.push(M);return t.return(F)})};var YE=function(){var F=_.n.apply(this,arguments)||this;F.objectURL=null;F.loadTime=Infinity;return F};
_.k(YE,_.n);_.N=YE.prototype;_.N.renderIdom=function(){tEo(this.hostElement);if(this.data){if(!this.width&&!this.height)throw Error("ph");this.setConfig();this.config&&yer(this.data,this.config,void 0,this.shouldRenderLazy)}};
_.N.objectFitToContentMode=function(F){switch(F){case "CONTAIN":return"CONTENT_MODE_SCALE_ASPECT_FIT";case "FILL":return"CONTENT_MODE_SCALE_TO_FILL";default:return"CONTENT_MODE_SCALE_ASPECT_FILL"}};
_.N.logThumbnailFailureVe=function(){var F=_.LQ(197497);_.zY(_.z4(),F);var W=_.JR();W&&F&&W&&_.rW(W,[F])};
_.N.loadImageFromCacheIfExists=function(F){var W=this,E=F.target;(E==null?0:E.src)&&xbo(E.src).then(function(h){W.objectURL=_.cp(h).toString();W.setSrc(E,W.objectURL)}).catch(function(){})};
_.N.onError=function(F){var W=this;if(_.c("web_use_cache_for_image_fallback")){var E=F.target;E&&xbo(E.src).then(function(h){W.objectURL=_.cp(h).toString();W.setSrc(E,W.objectURL)}).catch(function(){_.c("kevlar_woffle_log_thumbnail_failure_ve")&&W.logThumbnailFailureVe();
_.c("kevlar_woffle_fallback_image")&&W.setSrc(E,"data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")})}else this.revokeObjectURL()};
_.N.revokeObjectURL=function(){this.objectURL&&(URL.revokeObjectURL(this.objectURL),this.objectURL=null)};
_.N.setConfig=function(){var F=this;this.config={alt:this.alt||"",contentMode:this.objectFitToContentMode(this.objectFit),notifyOnLoaded:this.notifyOnLoaded,notifyOnUnloaded:this.notifyOnUnloaded,preferredThumbnail:this.preferredThumbnail,preserveHeight:this.preserveHeight,preserveWidth:this.preserveWidth,objectPosition:this.objectPosition,onload:function(W){F.loadImageFromCacheIfExists(W);F.revokeObjectURL();zYr(F.hostElement)},
onerror:function(W){F.onError(W)},
targetHeight:this.height,targetWidth:this.width,shouldShowPlaceholder:_.c("kevlar_thumbnail_bg"),useWidth:this.useWidth}};
_.N.setSrc=function(F,W){W&&(F.src=W)};
_.T([_.J(sJp),_.Y("design:type",Object)],YE.prototype,"ytIdomTemplatingBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],YE.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",String)],YE.prototype,"alt",void 0);_.T([_.O(),_.Y("design:type",Boolean)],YE.prototype,"ftlEligible",void 0);_.T([_.O(),_.Y("design:type",Number)],YE.prototype,"height",void 0);_.T([_.O(),_.Y("design:type",Boolean)],YE.prototype,"notifyOnLoaded",void 0);
_.T([_.O(),_.Y("design:type",Boolean)],YE.prototype,"notifyOnUnloaded",void 0);_.T([_.O(),_.Y("design:type",String)],YE.prototype,"objectFit",void 0);_.T([_.O(),_.Y("design:type",String)],YE.prototype,"objectPosition",void 0);_.T([_.O(),_.Y("design:type",String)],YE.prototype,"preferredThumbnail",void 0);_.T([_.O(),_.Y("design:type",Boolean)],YE.prototype,"preserveHeight",void 0);_.T([_.O(),_.Y("design:type",Boolean)],YE.prototype,"preserveWidth",void 0);
_.T([_.O({value:!0}),_.Y("design:type",Boolean)],YE.prototype,"useWidth",void 0);_.T([_.O({value:function(){return!_.l0("DISABLE_YT_IMG_DELAY_LOADING",!1)}}),
_.Y("design:type",Boolean)],YE.prototype,"shouldRenderLazy",void 0);_.T([_.O(),_.Y("design:type",Number)],YE.prototype,"width",void 0);YE=_.T([_.$3({is:"yt-image",disableElementRegistration:!0})],YE);
_.r(YE,"yt-image",function(){if(cIM===void 0){var F=document.createElement("template");_.L(F,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-image--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.web_interface_library.core.yt_image.yt.image.css.js--\x3e");F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);F.content.insertBefore(IOe().content.cloneNode(!0),F.content.firstChild);
cIM=F}F=cIM;return F},{mode:2});var w_=function(){return _.n.apply(this,arguments)||this};
_.k(w_,_.n);w_.prototype.onShow_=function(){if(this.data&&this.data.onVisibleCommand){var F=_.He(this.data.onVisibleCommand);F&&this.ytComponentBehavior.resolveCommand(F)}};
_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],w_.prototype,"ytComponentBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],w_.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.ny.YtVisibilityBehavior),_.Y("design:type",Object)],w_.prototype,"ytVisibilityBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],w_.prototype,"data",void 0);w_=_.T([_.$3({disableElementRegistration:!0,is:"yt-bumper-user-edu-content-view-model"})],w_);
_.r(w_,"yt-bumper-user-edu-content-view-model",function(){if(x5c===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-bumper-user-edu-content-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_bumper_user_edu_content_view_model.yt.bumper.user.edu.content.view.model.css.js--\x3e<div id="bumper-content" class="style-scope yt-bumper-user-edu-content-view-model">\n  <yt-image id="icon" data="[[data.image]]" height="16" class="style-scope yt-bumper-user-edu-content-view-model"></yt-image>\n  <div id="message-block" class="style-scope yt-bumper-user-edu-content-view-model">\n    <yt-attributed-string id="message" data="[[data.text]]" class="style-scope yt-bumper-user-edu-content-view-model"></yt-attributed-string>\n  </div>\n</div>');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);var W=F.content,E=W.insertBefore;D5H===void 0&&(D5H=document.createElement("template"));var h=D5H;E.call(W,h.content.cloneNode(!0),F.content.firstChild);x5c=F}F=x5c;return F},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var xxM;var kZM,AIu=function(){if(kZM!==void 0)return kZM;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-creator-goal-progress-flow-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_creator_goal_progress_flow_view_model.yt.creator.goal.progress.flow.view.model.css.js--\x3e<div id="header" class="style-scope yt-creator-goal-progress-flow-view-model">\n  <div id="avatar-images" class="style-scope yt-creator-goal-progress-flow-view-model">\n    <yt-image id="creator-thumbnail" data="[[creatorGoalState.authorPhoto]]" height="60" preserve-height="" preserve-width="" width="60" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-image>\n    <yt-image id="goal-icon" data="[[targetIconThemedImage]]" height="60" preserve-height="" preserve-width="" width="60" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-image>\n  </div>\n  <div id="countdown-info" class="style-scope yt-creator-goal-progress-flow-view-model">\n    <yt-attributed-string id="goal-timer-description" data="[[creatorGoalState.goalHeadlineText]]" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-attributed-string>\n    <template is="dom-if" if="[[shouldShowCountdown]]" class="style-scope yt-creator-goal-progress-flow-view-model">\n      <yt-countdown class-name="[[is]] countdown" target-timestamp="[[endTimestamp]]" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-countdown>\n    </template>\n  </div>\n  <yt-attributed-string id="goal-subheader-info" data="[[creatorGoalState.goalSubheaderText]]" hidden="[[isGoalActive]]" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-attributed-string>\n  <yt-image id="background-image" data="[[creatorGoalState.goalHeaderBackgroundImage]]" height="100" width="100" class="style-scope yt-creator-goal-progress-flow-view-model">\n  </yt-image>\n</div>\n<div id="content" class="style-scope yt-creator-goal-progress-flow-view-model">\n  <yt-attributed-string id="goal-target" data="[[creatorGoalState.goalTargetText]]" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-attributed-string>\n  <yt-attributed-string id="goal-description" data="[[creatorGoalState.goalDescription]]" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-attributed-string>\n  <div id="goal-progress-info" class="style-scope yt-creator-goal-progress-flow-view-model">\n    <yt-image id="sc-tier-image" data="[[creatorGoalState.superChatTierImage]]" height="32" preserve-height="" preserve-width="" width="32" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-image>\n    <div id="goal-numbers" class="style-scope yt-creator-goal-progress-flow-view-model">\n      <div id="current-goal-number" class="style-scope yt-creator-goal-progress-flow-view-model">[[creatorGoalState.currentGoalCount]] </div>\n      <div id="goal-number-separator" class="style-scope yt-creator-goal-progress-flow-view-model">/ </div>\n      <div id="target-goal-number" class="style-scope yt-creator-goal-progress-flow-view-model"> [[creatorGoalState.totalGoalCount]]</div>\n    </div>\n    <div id="progress-bar-container" class="style-scope yt-creator-goal-progress-flow-view-model">\n      <div id="progress-bar-progress" class="style-scope yt-creator-goal-progress-flow-view-model">\n      </div>\n    </div>\n  </div>\n</div>\n<div id="footer" class="style-scope yt-creator-goal-progress-flow-view-model">\n  <div id="progress-button" class="style-scope yt-creator-goal-progress-flow-view-model"></div>\n</div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);var W=F.content,E=W.insertBefore;xxM===void 0&&(xxM=document.createElement("template"));var h=xxM;E.call(W,h.content.cloneNode(!0),F.content.firstChild);return kZM=F};var sRH;_.ua={};sRH=new Set(["ytd-section-list-renderer","yt-horizontal-list-renderer","ytd-item-section-renderer","ytd-watch-next-secondary-results-renderer","ytd-video-primary-info-renderer"]);_.ua.YtTaskEmitterBehavior={created:function(){this.cachedProviderNode_=null},
detached:function(){this.cachedProviderNode_=null},
getTaskManager:function(){var F=this.getContext_();return F?F.getTaskManager():_.P0},
getContext_:function(){if(this.shouldUseTaskManager()){if(!this.cachedProviderNode_){var F=_.hF(this.hostElement,"yt-get-context-provider",{});F.detail&&F.detail.contextProvider?this.cachedProviderNode_=F.detail.contextProvider:this.hostElement.parentElement&&(this.cachedProviderNode_=this)}if(this.cachedProviderNode_&&this.cachedProviderNode_.getProvidedContext&&this.cachedProviderNode_.getProvidedContext())return this.cachedProviderNode_.getProvidedContext()}},
shouldUseTaskManager:function(){return sRH.has(this.hostElement.localName)},
getNetworkManager:function(){var F=this.getContext_();if(F)return F.getNetworkManager()}};var $bG,LnU,$xp,qvi;_.S8=function(F){var W=LnU.get(F);if(W&&(W=W.pop()))return qvi++,W;$xp++;try{var E=document.createElement(F)}catch(h){throw new _.xC("ElementPool failed to create element",F,h.message);}return E};
$bG=function(F){var W=F.is;if(W){var E=LnU.get(W);E||(E=[],LnU.set(W,E));var h=_.b0("ELEMENT_POOL_CONFIG")||{};E.length>=(h[W]!==void 0?h[W]:_.b0("ELEMENT_POOL_DEFAULT_CAP",0))||E.push(F)}else _.OB(new _.xC("Element pool should only handle custom elements:",F.nodeName))};
LnU=new Map;$xp=0;qvi=0;var dY=new WeakMap,qtR=new WeakMap;var XqB;_.py=function(F,W,E){E=E===void 0?_.OZ():E;this.JSC$11548_defaultPriority=F;this.signal=W;this.scheduler=E;this.nextJobDescriptor=0;this.JSC$11548_parkedJobs=[];this.scheduledJobs=new Map};
_.mo=function(F,W){if(W){var E=_.ip();F.signal&&!_.rL(E,F.signal)?(E.addListener(F.signal,function(){F.processSignal()}),F.JSC$11548_parkedJobs.push({job:W,
priority:void 0})):Zsc(F,W)}};
XqB=function(F,W){if(W!==F.JSC$11548_defaultPriority){F.JSC$11548_defaultPriority=W;for(var E=_.U(F.scheduledJobs.values()),h=E.next();!h.done;h=E.next())h=h.value,F.scheduler.cancelJob(h.jobId),h.jobId=F.scheduler.addJob(h.jobWrapper,W)}};
_.py.prototype.flushJobs=function(){XqB(this,10);this.processSignal()};
_.py.prototype.cancel=function(){for(var F=_.U(this.scheduledJobs),W=F.next();!W.done;W=F.next()){var E=_.U(W.value);W=E.next().value;E=E.next().value;this.scheduler.cancelJob(E.jobId);this.scheduledJobs.delete(W)}this.JSC$11548_parkedJobs=[]};
_.py.prototype.processSignal=function(){for(var F=_.U(this.JSC$11548_parkedJobs),W=F.next();!W.done;W=F.next())W=W.value,Zsc(this,W.job,W.priority);this.JSC$11548_parkedJobs=[]};
var Zsc=function(F,W,E){E=E||F.JSC$11548_defaultPriority;if(E===10)Wr(W);else{var h=F.nextJobDescriptor++,d=function(){W();F.scheduledJobs.delete(h)},V=F.scheduler.addJob(d,E);
F.scheduledJobs.set(h,{jobWrapper:d,jobId:V,priority:E})}};_.ht(PRR);var JdR={propNames:[],synchronous:!1,enableUnsafeRenderOnNotifyPath:!1};cVI({beforeVisit:function(F){if(Kz.has(F.type)){var W;(W=F.props).idomKey!=null||(W.idomKey=F.type)}else F.type.TAG_NAME&&(pz=F.type.TAG_NAME)},
afterRender:function(F,W){var E;pz=(E=W==null?void 0:W.type)!=null?E:""},
didPatch:function(){pz=""}});var Hsp;_.Ky={};Hsp={"yt-live-chat-text-message-renderer":!0,"yt-live-chat-author-badge-renderer":!0};_.Ky.YtRendererstamperBehavior=[_.ua.YtTaskEmitterBehavior,{mappings:null,stampDom:null,rendererStamperLogger_:null,beforeRegister:function(){this.configureRendererStamper&&typeof this.configureRendererStamper==="function"&&(this.stampDom?this.stampDom=Object.assign({},this.stampDom,this.configureRendererStamper()):this.stampDom=this.configureRendererStamper());this.stampDom&&this.addStampDomObservers_()},
created:function(){this.deferredBindingTasks_=[];this.renderJobsMap_=Object.create(null);this.hasDataPath_=Object.create(null);this.stampDom&&this.addStampDomObserverFns_();this.telemetry_={};this.resetTelemetry_()},
resetTelemetry_:function(){this.telemetry_.create=0;this.telemetry_.reuse=0},
addStampDomObservers_:function(){if(this.useSignals)for(var F in this.stampDom){var W=this.stampDom[F];W&&W.id&&this.addReactiveSchema({type:"observe",method:{methodName:Adk(W.id),args:[{type:"wildcard",path:F}]}})}else{(F=(this.constructor.generatedFrom||this).observers)||(F=[]);for(W in this.stampDom){var E=this.stampDom[W];E&&E.id&&F.push(Adk(E.id)+"("+W+".*)")}this.constructor.generatedFrom.observers=F}},
addStampDomObserverFns_:function(){for(var F in this.stampDom){var W=this.stampDom[F];W.id?(this[Adk(W.id)]=this.rendererStamperObserver_.bind(this,F,W.id),this.hasDataPath_[F]=!1):(W=new _.xC("Bad rendererstamper config",this.is+":"+F),_.a_(W))}},
rendererStamperObserver_:function(F,W,E){if(E.path==F){if(E.value===void 0&&!this.hasDataPath_[F])return;this.hasDataPath_[F]=E.value!==void 0}this.rendererStamperApplyChangeRecord_(F,W,E)},
rendererStamperApplyChangeRecord_:function(F,W,E){var h=this.renderJobsMap_[W],d=null;F==E.path?(E=E.value,_.Ee(E)||(E=E===void 0||E===null?[]:[E]),F=this.stampDom[F],F.mapping&&(d=this.stampDomArray_.bind(this,E,W,F.mapping,F.reuseComponents,F.events,F.stamperStableList)),h&&h.cancel(),E=F.usePageScheduler?this.getTaskManager():void 0,h||F.initialRenderPriority==void 0)?F.renderPriority==void 0||h||(h=new _.py(F.renderPriority,F.waitForSignal,E),this.renderJobsMap_[W]=h):(h=new _.py(F.initialRenderPriority,
F.waitForSignal,E),this.renderJobsMap_[W]=h,d=function(V,R){V();XqB(R,10)}.bind(this,d,h)):d=F+".splices"==E.path?this.stampDomArraySplices_.bind(this,F,W,E.value):this.forwardRendererStamperChanges_.bind(this,F,W,E);
h?_.mo(h,d):d()},
forwardRendererStamperChanges_:function(F,W,E){var h=E.path.slice(F.length+1),d=this.getStampContainer_(W),V=h.indexOf("."),R=h.substring(0,V),M=!1,g=0,t=parseInt(R,0);if(R[0]=="#"){M=parseInt(R.substring(1),0);t=this.get(F);var C=this.get([F,R]);t[M]==C?g=M:g=t.indexOf(C);M=!0}else isNaN(t)||(g=t,M=!0);M&&(h=h.substring(R.length+1),V=h.indexOf("."));R=_.sg(d).children[g];var B;if(d=(B=R==null?void 0:R.polymerController)!=null?B:R)h="data"+h.slice(V),typeof d.notifyPath!=="function"?_.OB(new _.xC("notifyPath missing",
this.is+": "+F+", "+W)):E.value?d.notifyPath(h,E.value):d.notifyPath(h)},
stampDomArraySplices_:function(F,W,E){if(E&&E.indexSplices){var h=this.getStampContainer_(W);if(h){for(var d=_.sg(h),V=LUI(this.stampDom[F].reuseComponents),R=E.indexSplices.length,M=0;M<R;M++){for(var g=E.indexSplices[M],t=d.children[g.index],C=g.removed.length;C>0;C--)t&&t.parentElement&&(_.sg(t.parentElement).removeChild(t),V&&$bG(t),t=d.children[g.index]);C=this.stampDom[F].mapping;for(var B=g.index+g.addedCount,I=document.createDocumentFragment(),x=V,A=g.index;A<B;A++){var X=g.object[A],P=kjr(C,
X);if(P){var b=C[P];X=X[P];P=this.getComponentName_(b,X);var l=t?dY.has(t):!1;x&&t&&t.is==P&&l?(P=t,this.telemetry_.reuse++,t=t.nextElementSibling):x&&t&&l?(P=this.createComponent_(b,X,V),l=_.sg(t).nextElementSibling,d.insertBefore(P,l),Xvr(this.is,d,t,V),t=l):(x=!1,P=this.createComponent_(b,X,V),I.appendChild(P));this.deferRenderStamperBinding_(P,b,X)}else b=new _.xC("Unimplemented type",F,W,h.tagName,Object.keys(X)[0]),_.a_(b)}d.insertBefore(I,t)}this.flushRenderStamperComponentBindings_();this.stampDom[F].events&&
_.hF(this.hostElement,"yt-rendererstamper-finished",{container:h})}else F=new _.xC("Container object not found",W,this.hostElement?this.hostElement.is:""),_.a_(F)}},
stampDomArray_:function(F,W,E,h,d,V){var R=this.getStampContainer_(W);if(R)if(W=_.sg(R),h=LUI(h),F){var M=0,g=0,t;if(V=V===void 0?_.l0("STAMPER_STABLE_LIST",!1):V||!1)for(t=W.firstElementChild;t&&!dY.has(t)&&F.length>g;){V=F[g];var C=kjr(E,V);if(C){if(this.getComponentName_(E[C],V[C])!=t.is){var B=this.createComponent_(E[C],V[C],h),I=_.sg(t).nextElementSibling;I?W.insertBefore(B,I):W.appendChild(B);Xvr(this.is,W,t,h);t=B}else this.telemetry_.reuse++;this.deferRenderStamperBinding_(t,E[C],V[C]);M++;
g++;t=_.sg(t).nextElementSibling}else g++}H_k(this.is,W,M,h);M=t;if(F.length>g){V=document.createDocumentFragment();for(C=F.length;g<C;g++)if(B=F[g],I=kjr(E,B))t=this.createComponent_(E[I],B[I],h),this.deferRenderStamperBinding_(t,E[I],B[I]),V.appendChild(t);M&&_.sg(M).parentNode&&t&&!dY.has(t)?W.insertBefore(V,M):W.appendChild(V)}this.flushRenderStamperComponentBindings_();this.markDirty&&this.markDirty();d&&_.hF(this.hostElement,"yt-rendererstamper-finished",{container:R})}else H_k(this.is,W,0,
h);else F=new _.xC("Container object not found",W,this.hostElement?this.hostElement.is:""),_.a_(F)},
getStampContainer_:function(F){return this.$&&this.$[F]||_.Z(this.hostElement).querySelector("#"+F)},
getComponentName_:function(F,W){return typeof F==="string"?F:F.matcher?F.matcher.call(this,W):F.component},
createComponent_:function(F,W,E){F=this.getComponentName_(F,W);try{var h=FP.has(F)||Kz.has(F);if(E&&!h){var d=_.S8(F);try{_.V9(d)}catch(V){E="Failed to clear styles for "+F+".",V.message&&(E+=" Original error: "+V.message),_.OB(new _.xC(E))}}else d=document.createElement(F)}catch(V){return d="YtRendererStamperBehavior failed to create "+F+".",V.message&&(d+=" Original description: "+V.message),V.message="YtRendererStamperBehavior failed to create element",_.bf(V,d),Hsp.hasOwnProperty(F)?_.OB(V):_.a_(V),
document.createElement("SPAN")}this.telemetry_.create++;return d},
deferRenderStamperBinding_:function(F,W,E){this.deferredBindingTasks_.push({component:F,typeOrConfig:W,data:E})},
flushRenderStamperComponentBindings_:function(){for(var F=0,W=this.deferredBindingTasks_.length;F<W;F++){var E=this.deferredBindingTasks_[F];if(!E)break;var h=void 0,d=void 0,V=void 0,R=void 0,M=E.component,g=E.typeOrConfig;E=E.data;var t=(R=M.polymerController)!=null?R:M;R=M.loggingStatus;try{R&&(R.isRendererStamper=!0);if(typeof g!=="string"){for(V in g.attributes)g.attributes[V]===!0?M.setAttribute(V,""):g.attributes[V]===!1?M.removeAttribute(V):M.setAttribute(V,g.attributes[V]);for(d in g.params)t[d]=
g.params[d],M!==t&&I4(M.localName,d,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");for(h in g.properties){var C=g.properties[h];if(C){var B=sco(C);t[h]=this.get(B);M!==t&&I4(M.localName,h,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");if(h==="on-tap"||h==="on-click"){var I=this.get(B);M.addEventListener("click",I);qtR.set(M,{property:h,listener:{type:"element",eventName:"click",handler:I}})}}else{var x=new _.xC("Undefined property binding",h);_.a_(x)}}}if(g.classListBinding){var A=sco(g.classListBinding),
X=A?this[A]:null;if(X)for(h=0;h<X.length;h++)_.Wm(M,X[h],!0)}t.data=E}finally{R&&(R.isRendererStamper=!1)}if(h=dY.get(M))M.hidden=!1,dY.delete(M),_.P0.cancelJob(h)}this.deferredBindingTasks_.length=0}}];_.FM={YtActionHandlerBehavior:[{actionMap:{},attached:function(){this.registerActionMap(this.actionMap)},
detached:function(){this.unregisterActionMap(this.actionMap)},
registerActionMap:function(F){for(var W=_.o_.getInstance(),E=_.U(Object.keys(F)),h=E.next();!h.done;h=E.next()){var d=h.value;h=F[d];if(this&&this[h]){var V=W.actionRoutingMap.get(d);V||(V=new Map,W.actionRoutingMap.set(d,V));W.registerActionHandler(this,d,this[h].bind(this),V)}else d=Error("id"),d.params=h,_.nW(d)}},
unregisterActionMap:function(F){_.Yt(_.o_.getInstance(),F,this)}}]};var Ud=new Map([["FACE_HAPPY",{name:"animated_face_happy_light",nameDarkTheme:"animated_face_happy_dark",path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_happy.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_happy.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_HAPPY",totalFrames:121,lazyLoad:!1}],["FACE_MEH",{name:"animated_face_meh_light",nameDarkTheme:"animated_face_meh_dark",
path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_meh.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_meh.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_MEH",totalFrames:121,lazyLoad:!1}],["FACE_SAD",{name:"animated_face_sad_light",nameDarkTheme:"animated_face_sad_dark",path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_sad.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_sad.json",
lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_SAD",totalFrames:121,lazyLoad:!1}],["FACE_UNHAPPY",{name:"animated_face_unhappy_light",nameDarkTheme:"animated_face_unhappy_dark",path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_unhappy.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_unhappy.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_UNHAPPY",totalFrames:121,
lazyLoad:!1}],["FACE_VERY_HAPPY",{name:"animated_face_very_happy_light",nameDarkTheme:"animated_face_very_happy_dark",path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_very_happy.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_very_happy.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_VERY_HAPPY",totalFrames:121,lazyLoad:!1}],["LIKE",{name:"animated_like_light",nameDarkTheme:"animated_like_dark",
path:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_light_v4.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_dark_v4.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE",totalFrames:60,lazyLoad:!0}],["NOTIFICATION_BELL",{name:"notification_bell_light",nameDarkTheme:"notification_bell_dark",path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_light.json",
pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_dark.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"NOTIFICATION_BELL",totalFrames:79,lazyLoad:!1}],["LIKE_VALENTINES25_HEART",{name:"animated_like_valentines25_heart_light",nameDarkTheme:"animated_like_valentines25_heart_dark",path:"https://www.gstatic.com/youtube/img/lottie/custom_animated_like_icon/animated_like_valentines25_heart_light_v5.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/custom_animated_like_icon/animated_like_valentines25_heart_dark_v5.json",
lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE_VALENTINES25_HEART",totalFrames:60,lazyLoad:!0}],["LIKE_VALENTINES25_BROKEN_HEART",{name:"animated_like_valentines25_broken_heart_light",nameDarkTheme:"animated_like_valentines25_broken_heart_dark",path:"https://www.gstatic.com/youtube/img/lottie/custom_animated_like_icon/animated_like_valentines25_broken_heart_light_v5.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/custom_animated_like_icon/animated_like_valentines25_broken_heart_dark_v5.json",
lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE_VALENTINES25_BROKEN_HEART",totalFrames:60,lazyLoad:!0}],["LIKE_YOUTUBE_20TH_BIRTHDAY",{name:"animated_like_youtube_20th_birthday_light",nameDarkTheme:"animated_like_youtube_20th_birthday_dark",path:"https://www.gstatic.com/youtube/img/lottie/custom_animated_like_icon/animated_like_youtube_20th_birthday_light.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/custom_animated_like_icon/animated_like_youtube_20th_birthday_dark.json",
lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE_VALENTINES25_HEART",totalFrames:60,lazyLoad:!0}]]);var Vt;var R3=new Map;var GjS=window.matchMedia("(forced-colors: active)").matches;var PtX;var JIz;var Str=new _.NG("LOTTIE_LOADER_TOKEN");_.ht(pvw);_.pK(_.GK(function(F){return _.z("ytd-lottie-player",{id:F.id,hidden:F.hidden,class:F.className,"aria-label":F.ariaLabel,style:"display: block;"},_.z(_.Mj,{data:F.data,animationName:function(){var W;return((W=F.data().animationConfig)==null?void 0:W.name)||""},
animationRef:function(){return F.data().animationRef}}))},"h"),"ytd-lottie-player",{props:{data:_.TS,
id:_.TS,hidden:_.TS,className:_.TS,ariaLabel:_.TS}});var WU=function(){var F=_.n.apply(this,arguments)||this;F.animationRef={};return F};
_.k(WU,_.n);_.N=WU.prototype;
_.N.handlePropertyChange=function(){var F=this.animatedIcon,W=this.active,E=this.isDarkTheme;if(F){var h=this.previousActive!==W;this.previousActive=W;this.animationRef.lottieEl?h&&this.toggleAnimation(W,F.totalFrames):W?this.initializeAnimationAsToggled(F.lottiePlayerProps,F.totalFrames):this.initializeAnimationAsUntoggled(F.lottiePlayerProps);F.lottiePlayerProps.animationRef=this.animationRef;this.animatedIconType=F.type;this.lottiePlayerProps=this.computeLottiePlayerProps(F,E)}};
_.N.computeLottiePlayerProps=function(F,W){var E=this.deepCloneLottiePlayerProps(F);W?(W=F.nameDarkTheme,F=F.pathDarkTheme):(W=F.name,F=F.path);E.animationConfig.name=W;(W=R3.get(F))?E.animationConfig.animationData=W:E.animationConfig.path=F;return E};
_.N.initializeAnimationAsToggled=function(F,W){F.animationConfig.initialSegment=[W-1,W]};
_.N.initializeAnimationAsUntoggled=function(F){F.animationConfig.initialSegment=void 0};
_.N.toggleAnimation=function(F,W){if(F){var E;(E=this.animationRef.lottieEl)==null||E.playSegments([0,W],!0)}else{var h;(h=this.animationRef.lottieEl)==null||h.playSegments([0,1],!0)}};
_.N.deepCloneLottiePlayerProps=function(F){var W=Object.assign({},F.lottiePlayerProps.animationConfig);F=Object.assign({},F.lottiePlayerProps);F.animationConfig=W;return F};
WU.prototype.handlePropertyChange=WU.prototype.handlePropertyChange;_.T([_.O(),_.Y("design:type",Object)],WU.prototype,"animatedIcon",void 0);_.T([_.O({value:!1}),_.Y("design:type",Boolean)],WU.prototype,"active",void 0);_.T([_.O(),_.Y("design:type",Boolean)],WU.prototype,"isDarkTheme",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",String)],WU.prototype,"animatedIconType",void 0);_.T([_.O(),_.Y("design:type",Boolean)],WU.prototype,"previousActive",void 0);
_.T([_.O(),_.Y("design:type",Object)],WU.prototype,"lottiePlayerProps",void 0);_.T([_.O(),_.Y("design:type",Object)],WU.prototype,"animationRef",void 0);_.T([_.ea("animatedIcon","active","isDarkTheme"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],WU.prototype,"handlePropertyChange",null);WU=_.T([_.$3({is:"yt-animated-icon",disableElementRegistration:!0})],WU);
_.r(WU,"yt-animated-icon",function(){if(JIz===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-animated-icon--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.core.yt_animated_icon.yt.animated.icon.css.js--\x3e<ytd-lottie-player class-name="[[is]] lottie-player" data="[[lottiePlayerProps]]" class="style-scope yt-animated-icon"></ytd-lottie-player>');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;PtX===void 0&&(PtX=document.createElement("template"));var h=PtX;E.call(W,h.content.cloneNode(!0),F.content.firstChild);JIz=F}F=JIz;return F},{mode:2});var aO_;var fOB;var FHY=_.GK(function(F){var W=_.Sh(),E=PQ(function(){return{value:null}});
_.$p(function(){var d;(d=E.value)==null||d.cancel()});
var h=_.vX(F.data,{equals:function(d,V){return d.iconName===V.iconName&&d.iconStyle===V.iconStyle&&d.iconSize===V.iconSize&&d.iconSetName===V.iconSetName&&d.iconSelected===V.iconSelected}},"aoiXAb");
_.q6(function(){var d,V=(d=F.options)==null?void 0:d.call(F);KUn(W,E,h(),V)});
return _.z("span",{class:"yt-icon-shape",el:W})},"i");
FHY.idomCompat=!0;var yxe=["youtube_fill","youtube_outline"];var Osa=new _.aq({type:"iconset",value:void 0}),Ez=function(){var F=_.n.apply(this,arguments)||this;F.isDarkTheme=document.documentElement.hasAttribute("dark");F.iconName="";F.iconsetName="yt-icons";F.iconset=null;F.missingIconSet=!1;F.iconType=null;F.iconShapeDataSignal=_.g$(void 0,void 0,"RQ9kUb");F.renderingOptionsSignal=_.g$({iconWidth:"100%",iconHeight:"100%",iconFilter:F.iconFilter},void 0,"qtx8Ef");F.wizHasRendered=!1;F.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return F};
_.k(Ez,_.n);_.N=Ez.prototype;_.N.onDarkModeToggledAction=function(F){F!==this.isDarkTheme&&(this.isDarkTheme=F)};
_.N.handlePropertyChange=function(){var F=this,W,E,h,d,V,R,M,g,t,C,B;return _.e(function(I){switch(I.nextAddress){case 1:if(W=!F.icon&&!F.iconName||!F.isAttached)return I.return();E=F;h=E.icon;d=E.size;V=E.defaultToFilled;R=E.active;M=E.targetContainer;F.toggleContainerClass(M);_.c("kevlar_use_wil_icons")&&h&&(g=Z8S(h),g.length?_.c("kevlar_icon_type_fix_killswitch")?(t=g[1].toUpperCase(),F.iconType=FTT[t],F.iconType||(F.iconType=g[1])):F.iconType=g[1]:F.iconType=null);if(h){I.jumpTo(2);break}F.iconsetName=
"";F.iconName="";return _.Q(I,F.renderIcon(M,h),3);case 3:return I.return();case 2:C=F.computeIcon(h);B=Z8S(C);B.length&&(F.iconsetName=B[0],F.iconName=B[1]);if(!_.c("kevlar_use_wil_icons")){I.jumpTo(4);break}return _.Q(I,F.getIconShapeData(),5);case 5:F.iconShapeData=I.yieldResult;case 4:if(F.shouldRenderIconShape(M)){I.jumpTo(6);break}return _.Q(I,F.determineIconSet(C,R,V,d,M),6);case 6:return _.Q(I,F.renderIcon(M,h),0)}})};
_.N.toggleContainerClass=function(F){F?this.hostElement.classList.add("external-container"):this.hostElement.classList.remove("external-container")};
_.N.computeIcon=function(F){return!_.c("default_to_innertube_icon")||F.indexOf(":")>0?F:_.Vd(F)};
_.N.determineIconSet=function(F,W,E,h){var d=this;return _.e(function(V){return V.nextAddress==1?_.c("kevlar_system_icons")||_.b0("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||_.b0("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"?_.Q(V,d.switchToYtSysIconset(F,W,E,h),3):V.jumpTo(2):V.nextAddress!=2?V.return():_.Q(V,d.useYtSysIconsetForMissingIcons(F,W,E,h),0)})};
_.N.switchToYtSysIconset=function(F,W,E,h){var d=this,V,R,M,g,t,C,B;return _.e(function(I){switch(I.nextAddress){case 1:if(!F||d.iconsetName!=="yt-icons"&&d.iconsetName!=="yt-sys-icons"){I.jumpTo(0);break}V=Z8S(F);R=V[1];R=_.n8W(R);_.c("enable_polymer_icons_replace_underscores_dash")&&R.includes("_filled")&&(R=R.replace(/_filled/g,"-filled"));return _.Q(I,Nr(R,!0),3);case 3:return M=I.yieldResult,_.Q(I,Nr(R,!1),4);case 4:if((g=I.yieldResult)||W&&M)d.iconsetName="yt-sys-icons";d.iconName=d.getIconName(R,
W,E,g,M);if(h===24){I.jumpTo(0);break}t="yt-sys-icons"+h+":"+d.iconName;return _.Q(I,Nr(t,!1,!0),6);case 6:return C=I.yieldResult,_.Q(I,Nr(t,!0,!0),7);case 7:B=I.yieldResult;d.iconName=d.getIconName(R,W,E,C,B);if(!W&&C||W&&B)d.iconsetName="yt-sys-icons"+h;_.gG(I)}})};
_.N.getIconName=function(F,W,E,h,d){F.includes("-filled")&&(F=F.replace("-filled",""));return d&&(W||E)?F+"-filled":F};
_.N.useYtSysIconsetForMissingIcons=function(F,W,E,h){var d=this,V,R;return _.e(function(M){if(M.nextAddress==1)return d.iconsetName!=="yt-icons"?M.jumpTo(0):_.Q(M,Nr(d.iconName,!1,!1,!0),3);if(M.nextAddress!=4)return V=M.yieldResult,_.Q(M,Nr(d.iconName,!1),4);R=M.yieldResult;if(V||!R)return M.jumpTo(0);d.iconsetName="yt-sys-icons";return _.Q(M,d.switchToYtSysIconset(F,W,E,h),0)})};
_.N.onIconsetAdded=function(){this.renderIcon(this.targetContainer,this.icon)};
_.N.getIconManager=function(){return _.e(function(F){try{return F.return(_.WZ().resolve(_.U6))}catch(W){return F.return(new Promise(function(E){_.ip().parkOrScheduleJob(function(){E(_.WZ().resolve(_.U6))},2,"ci")}))}})};
_.N.getIconShapeData=function(){var F=this,W,E,h,d,V,R;return _.e(function(M){if(M.nextAddress==1){if(!F.iconType)return M.return(void 0);W=F.iconType.toLowerCase();E=W.endsWith("_filled")||W.endsWith("-filled");return _.Q(M,F.getIconManager(),2)}h=M.yieldResult;d=F.active||F.defaultToFilled||E?"youtube_fill":"youtube_outline";V={iconName:W,iconStyle:d,iconSize:F.size,iconSetName:F.iconsetName};R=!!h.resolveIcon(V);R||(V.iconSize=void 0,R=!!h.resolveIcon(V));!R&&E&&(V.iconName=W.substring(0,W.length-
7),V.iconSize=F.size,R=!!h.resolveIcon(V),R||(V.iconSize=void 0,R=!!h.resolveIcon(V)));R||(V.iconStyle=void 0,R=!!h.resolveIcon(V));R||_.OB(new _.xC("Icon not supported",{iconName:V.iconName,iconStyle:V.iconStyle,iconSize:V.iconSize,iconType:W}));return M.return(R?V:void 0)})};
_.N.shouldRenderIconShape=function(F){if(!_.c("kevlar_use_wil_icons")||!this.iconType||!this.iconShapeData||this.isAnimatedIcon)return!1;F=this.getContainer(F);return!YtI(F,this.icon)};
_.N.renderIcon=function(F,W){var E=this,h,d,V,R,M,g,t,C;return _.e(function(B){switch(B.nextAddress){case 1:if(W&&E.icon!==W)return B.return();h=E.getContainer(F);d=YtI(h,E.icon);if(E.shouldRenderIconShape(F)&&E.iconType)return E.applyIconShape(d,h),B.return();E.removeIconShape();if(!h)return B.return();E.iconName===""&&E.iconset&&h&&(E.removeStaticIcon(E.iconset,h),d&&E.removeAnimatedIcon(h));if(E.iconName===""&&E.iconset||!E.iconsetName||!Osa)return B.return();E.iconset=Osa.byKey(E.iconsetName);
if(!E.iconset)return E.missingIconSet=!0,window.addEventListener("iron-iconset-added",_.UO(E,E.onIconsetAdded)),B.return();E.missingIconSet&&(E.missingIconSet=!1,window.removeEventListener("iron-iconset-added",_.UO(E,E.onIconsetAdded)));R=(V=d||E.isAnimatedIcon?oDR(E.icon):void 0)&&!V.lazyLoad;g=V&&((M=V)==null?void 0:M.lazyLoad)&&(V.lottiePlayerProps.animationConfig.animationData?!0:R3.get(E.isDarkTheme?V.pathDarkTheme:V.path)?!0:!1);if(R||g)return E.applyAnimatedIcon(h,V,E.iconset),B.return();if(g||
(t=V)==null||!t.lazyLoad){B.jumpTo(2);break}C=uuR(V,E.isDarkTheme);E.applyStaticIcon(E.iconset,h,E.iconName,F,d);return _.Q(B,C,3);case 3:return _.Q(B,E.renderIcon(E.targetContainer,E.icon),4);case 4:return B.return();case 2:E.applyStaticIcon(E.iconset,h,E.iconName,F,d),_.gG(B)}})};
_.N.getContainer=function(F){var W,E=(W=G$o(this.hostElement))==null?void 0:W.host;W=!!E&&!!E.polymerController;if(!F||W)return F?this.getTargetContainer(F,E):this.hostElement};
_.N.getTargetContainer=function(F,W){var E=_.Z(W).querySelector("#"+F);E||(F=new _.xC("yt-icon container missing",W.is,F),_.a_(F));return E};
_.N.applyStaticIcon=function(F,W,E,h,d){d&&this.removeAnimatedIcon(W);this.removeIconShape();d=d&&!!this.iconType&&!!this.iconShapeData&&_.c("kevlar_use_wil_icons");try{d?this.applyIconShape(!1,W):F.applyIcon(W,E)}catch(V){this.handleError(V,h,W)}};
_.N.applyIconShape=function(F,W){this.iconset&&W&&(this.removeStaticIcon(this.iconset,W),F&&this.removeAnimatedIcon(W));F={iconWidth:"100%",iconHeight:"100%",iconFilter:this.iconFilter};var E=_.U(this.iconShapeDataSignal);W=E.next().value;E=E.next().value;var h=_.U(this.renderingOptionsSignal),d=h.next().value;h=h.next().value;E(this.iconShapeData);h(F);if(!this.wizHasRendered)for(this.wizHasRendered=!0,F=_.U(WHY(W,d)).next().value;F.firstChild;)_.Z(this.hostElement).appendChild(F.firstChild)};
_.N.removeIconShape=function(){if(_.c("kevlar_use_wil_icons"))(0,this.iconShapeDataSignal[1])(void 0)};
_.N.removeStaticIcon=function(F,W){F.removeIcon(W)};
_.N.applyAnimatedIcon=function(F,W,E){this.removeStaticIcon(E,F);this.removeIconShape();var h;E=this.animatedIconElement&&((h=this.animatedIconElement.polymerController.animatedIcon)==null?void 0:h.type)===W.type;if(this.animatedIconElement&&E){this.animatedIconElement.polymerController.animatedIcon=W;var d;((d=this.animatedIconElement)==null?void 0:d.polymerController.active)!==this.active&&(this.animatedIconElement.polymerController.active=this.active)}else this.animatedIconElement&&this.removeAnimatedIcon(F),
this.animatedIconElement=document.createElement("yt-animated-icon"),this.animatedIconElement.polymerController.animatedIcon=W,this.animatedIconElement.polymerController.active=this.active,this.animatedIconElement.polymerController.isDarkTheme=this.isDarkTheme,_.c("kevlar_use_wil_icons")?F.insertBefore(this.animatedIconElement,F.childNodes[0]):(F=_.Z(F),F.insertBefore(this.animatedIconElement,F.childNodes[0]))};
_.N.removeAnimatedIcon=function(F){_.c("kevlar_use_wil_icons")?this.animatedIconElement&&F.contains(this.animatedIconElement)&&F.removeChild(this.animatedIconElement):(F=_.Z(F),this.animatedIconElement&&F.contains(this.animatedIconElement)&&F.removeChild(this.animatedIconElement));this.animatedIconElement=void 0};
_.N.handleError=function(F,W,E){_.bf(F,this.iconName,W,E);W=YtI(E,this.icon);var h=!1;window.location.href.includes("JpymaW6Lh2w")?h=!0:E._svgIcon&&(E=(E=E._svgIcon.parentNode)?E.tagName:"unknown",_.bf(F,E),E==="YT-ICON"&&F.name==="NotFoundError"?h=!0:F.name==="NotFoundError"&&W&&(h=!0));h?_.OB(F):_.a_(F)};
_.Sn.Object.defineProperties(Ez,{template:{configurable:!0,enumerable:!0,get:function(){if(fOB===void 0){var F=document.createElement("template");_.L(F,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-icon--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.core.yt_icon.yt.icon.css.js--\x3e");F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);var W=F.content,E=W.insertBefore;
aO_===void 0&&(aO_=document.createElement("template"));var h=aO_;E.call(W,h.content.cloneNode(!0),F.content.firstChild);fOB=F}F=fOB;return F}}});
Ez.prototype.handlePropertyChange=Ez.prototype.handlePropertyChange;_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],Ez.prototype,"actionHandlerBehavior",void 0);_.T([_.O(),_.Y("design:type",String)],Ez.prototype,"icon",void 0);_.T([_.O({value:!1}),_.Y("design:type",Boolean)],Ez.prototype,"active",void 0);_.T([_.O({value:!1}),_.Y("design:type",Boolean)],Ez.prototype,"defaultToFilled",void 0);_.T([_.O({value:!1}),_.Y("design:type",Boolean)],Ez.prototype,"isAnimatedIcon",void 0);
_.T([_.O({value:24}),_.Y("design:type",Number)],Ez.prototype,"size",void 0);_.T([_.O({value:""}),_.Y("design:type",String)],Ez.prototype,"targetContainer",void 0);_.T([_.O(),_.Y("design:type",Object)],Ez.prototype,"animatedIconElement",void 0);_.T([_.O(),_.Y("design:type",Object)],Ez.prototype,"isDarkTheme",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Ez.prototype,"ariaHidden",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",String)],Ez.prototype,"ariaLabel",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",String)],Ez.prototype,"role",void 0);_.T([_.O(),_.Y("design:type",String)],Ez.prototype,"style",void 0);_.T([_.O(),_.Y("design:type",String)],Ez.prototype,"iconFilter",void 0);_.T([_.ea("icon","active","defaultToFilled","size","targetContainer","isAttached","isDarkTheme"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype",Promise)],Ez.prototype,"handlePropertyChange",null);
Ez=_.T([_.$3({is:"yt-icon",noInjection:!0})],Ez);var bsT;var lOu=function(){var F=document.body,W=F.appendChild;if(bsT===void 0){var E=document.createElement("template");_.L(E,'\x3c!--css-build:shady--\x3e<svg style="position: absolute; height: 0; width: 0;" aria-hidden="true"><defs><mask id="artwork__b" fill="#fff"><path d="M.24.24v70.2h10.43c0 33 26.76 59.77 59.77 59.77 33 0 59.77-26.7 59.77-59.7h9.7V.3H.3z"></path></mask><mask id="artwork__d" fill="#fff"><path d="M17.3.23C-2.2-.13.26 14.73.26 14.73s-.1 25.85 14.83 28.3c3.9.06 5.2-5.33 5.2-5.33l-2.2 13.24-4.6 31.26s17.9 5.3 33.4 1.02c.1-12.1 4-43.73 3.9-49.96 3.2 3.7 9 24.97 11 51.1 5.8 1.27 9.3 0 9.3 0S70.9 43.12 54.9 21c-4.7-6.87-16.7-6.87-16.7-6.87-7-.98-8.9-.8-16 .18-7.1 1-6.6 9.5-6.6 9.5s1 5.5-1.4 10.2c-8.1-5-7.1-20.5-7.1-20.5s.5-5.6 8.1-6.8c2.3-1.3 3.9-4.7 2-6.3z"></path></mask><mask id="artwork__f" fill="#fff"><path d="M15.65 12.32L2.2 10.67C1.06 10.54.26 9.5.4 8.4L1.18 2C1.32.88 2.35.07 3.48.2l13.45 1.66c1.12.13 1.92 1.16 1.8 2.28l-.8 6.4c-.13 1.1-1.16 1.92-2.28 1.78z"></path></mask><mask id="artwork__h" fill="#fff"><path id="artwork__g" d="M2.97.2l12.6 1.55-.3 11.72-15.03-2.1z"></path></mask><mask id="artwork__j" fill="#fff"><path d="M.2.24c10.98 3.92 12.35 11.63 12.35 11.63l-.44.8S3.3 10.34.2.25z"></path></mask><mask id="artwork__l" fill="#fff"><path d="M.17.27S7.42.9 5.7 4.77l-.7.98C1 8.05.16.27.16.27z"></path></mask><mask id="artwork__n" fill="#fff"><path d="M.24.24H6.4S7.14 4.8 3.32 4.8C-.5 4.8.24.24.24.24z" id="artwork__m"></path></mask><mask id="artwork__p" fill="#fff"><circle cx="6.46" cy="6.64" r="6.46"></circle></mask><mask id="artwork__r" fill="#fff"><circle cx="6.46" cy="6.64" r="6.46"></circle></mask><mask id="artwork__t" fill="#fff"><path d="M28 14.83c0 8.06-6.22 14.6-13.9 14.6-7.7 0-13.9-4-13.9-14.6C.2 6.77 6.4.25 14.1.25 21.77.25 28 6.78 28 14.83z"></path></mask><mask id="artwork__v" fill="#fff"><path d="M28 14.83c0 8.06-6.22 14.6-13.9 14.6-7.7 0-13.9-4-13.9-14.6C.2 6.77 6.4.25 14.1.25 21.77.25 28 6.78 28 14.83z"></path></mask><mask id="artwork__x" fill="#fff"><path d="M.55.4l9.95.24s1.64 9.34-2.4 9.6C-1.47 10.54.54.4.54.4z"></path></mask><mask id="artwork__z" fill="#fff"><circle cx="59.77" cy="59.77" r="59.77"></circle></mask><clipPath id="hashtag_landing_page_empty__a"><path class="hashtag_landing_page_empty__cls-1" d="M0 0h200v200H0z"></path></clipPath><clipPath id="hashtag_landing_page_empty_dark_mode__a"><path class="hashtag_landing_page_empty_dark_mode__cls-1" d="M0 0h200v200H0z"></path></clipPath><clipPath id="hashtag_landing_page_error__a"><path class="hashtag_landing_page_error__cls-1" d="M-79.58-79.58h459.2v459.2h-459.2z"></path></clipPath><clipPath id="hashtag_landing_page_error__c"><path class="hashtag_landing_page_error__cls-1" d="M189.2 50.73c-44.7 0-83.94 30.59-90.33 67.34-7.88 45.31 26.77 92.29 78 101.2s101.3-23.34 109.2-68.65-28.76-89.53-80.04-98.45a97.63 97.63 0 00-16.75-1.45"></path></clipPath><clipPath id="hashtag_landing_page_error__b"><path class="hashtag_landing_page_error__cls-1" d="M1.49 219.9L124.8 212l-60.67-41.9z"></path></clipPath><clipPath id="hashtag_landing_page_error_dark_mode__a"><path class="hashtag_landing_page_error_dark_mode__cls-1" d="M-78.75-78.75h457.5v457.5h-457.5z"></path></clipPath><clipPath id="hashtag_landing_page_error_dark_mode__c"><path class="hashtag_landing_page_error_dark_mode__cls-1" d="M99.07 118.2c-7.85 45.15 26.68 92 77.76 100.8s100.9-23.25 108.8-68.39-28.69-89.21-79.78-98.1a98.36 98.36 0 00-16.72-1.44c-44.54 0-83.64 30.48-90 67.09"></path></clipPath><clipPath id="hashtag_landing_page_error_dark_mode__b"><path class="hashtag_landing_page_error_dark_mode__cls-1" d="M2.03 219.7l122.87-7.9L64.45 170z"></path></clipPath><mask id="offline_no_content__b" fill="#fff"><use xlink:href="#offline_no_content__a"></use></mask><mask id="offline_no_content__d" fill="#fff"><use xlink:href="#offline_no_content__c"></use></mask><path id="offline_no_content__a" d="M0 194.555V.675h191.961v193.88z"></path><path d="M.668 18.586C8.545 12.047 15.125 3.19 25.082.49v20.673H.668v-2.577z" id="offline_no_content__c"></path><clipPath id="empty_search__clip-path"><path d="M3.43 126.34H227a29.17 29.17 0 0 0-5.06-24c-4.42-6.11-10-12.51-9.71-28.73s-.4-59.23-20.9-67.3c-28.87-11.37-53.18 18.05-71.57 19s-32.31-9.34-45.87-4.5-11.63 16.68-18.17 19.83-20.58.73-25.18 13.8S34.06 77.8 25 83.73c-8.82 5.75-27.62 9.32-21.57 42.61z" fill="none"></path></clipPath><clipPath id="chrome_icon__b"><use overflow="visible" xlink:href="#chrome_icon__a"></use></clipPath><clipPath id="chrome_icon__f"><use overflow="visible" xlink:href="#chrome_icon__e"></use></clipPath><clipPath id="chrome_icon__j"><use overflow="visible" xlink:href="#chrome_icon__i"></use></clipPath><clipPath id="chrome_icon__n"><use overflow="visible" xlink:href="#chrome_icon__m"></use></clipPath><linearGradient id="chrome_icon__c" x1="29.337" x2="81.837" y1="75.021" y2="44.354" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#a52714" stop-opacity=".6"></stop><stop offset=".66" stop-color="#a52714" stop-opacity="0"></stop></linearGradient><linearGradient id="chrome_icon__d" x1="110.872" x2="52.538" y1="164.495" y2="130.329" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#055524" stop-opacity=".4"></stop><stop offset=".33" stop-color="#055524" stop-opacity="0"></stop></linearGradient><linearGradient id="chrome_icon__g" x1="121.858" x2="136.547" y1="49.804" y2="114.13" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#ea6100" stop-opacity=".3"></stop><stop offset=".66" stop-color="#ea6100" stop-opacity="0"></stop></linearGradient><linearGradient id="chrome_icon__h" x1="121.858" x2="136.547" y1="49.804" y2="114.13" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#ea6100" stop-opacity=".3"></stop><stop offset=".66" stop-color="#ea6100" stop-opacity="0"></stop></linearGradient><linearGradient id="chrome_icon__k" x1="29.337" x2="81.837" y1="75.021" y2="44.354" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#a52714" stop-opacity=".6"></stop><stop offset=".66" stop-color="#a52714" stop-opacity="0"></stop></linearGradient><radialGradient id="chrome_icon__l" cx="668.176" cy="55.948" r="84.078" gradientTransform="translate(-576)" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#3e2723" stop-opacity=".2"></stop><stop offset="1" stop-color="#3e2723" stop-opacity="0"></stop></radialGradient><linearGradient id="chrome_icon__o" x1="110.872" x2="52.538" y1="164.495" y2="130.329" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#055524" stop-opacity=".4"></stop><stop offset=".33" stop-color="#055524" stop-opacity="0"></stop></linearGradient><radialGradient id="chrome_icon__p" cx="597.875" cy="48.52" r="78.044" gradientTransform="translate(-576)" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#3e2723" stop-opacity=".2"></stop><stop offset="1" stop-color="#3e2723" stop-opacity="0"></stop></radialGradient><radialGradient id="chrome_icon__q" cx="671.844" cy="96.138" r="87.87" gradientTransform="translate(-576)" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#263238" stop-opacity=".2"></stop><stop offset="1" stop-color="#263238" stop-opacity="0"></stop></radialGradient><radialGradient id="chrome_icon__r" cx="34.286" cy="32.014" r="176.746" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#fff" stop-opacity=".1"></stop><stop offset="1" stop-color="#fff" stop-opacity="0"></stop></radialGradient><circle id="chrome_icon__a" cx="96" cy="96" r="88"></circle><path id="chrome_icon__e" d="M8 184h83.77l38.88-38.88V116H61.36L8 24.48z"></path><path id="chrome_icon__i" d="M96 56l34.65 60-38.88 68H184V56z"></path><path id="chrome_icon__m" d="M21.97 8v40.34L61.36 116 96 56h88V8z"></path><circle id="ring__dot" cx="4" cy="4" r="2"></circle><linearGradient id="premium_standalone_cairo__paint0_linear_6125_21625" x1="2" y1="22" x2="22" y2="2" gradientUnits="userSpaceOnUse"><stop offset="0.3" stop-color="#E1002D"></stop><stop offset="0.9" stop-color="#E01378"></stop></linearGradient></defs></svg><iron-iconset-svg name="backstage"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="hashtag-landing-page"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="live-chat-badges" size="16"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="miniplayer" size="24"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="offline-no-content"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="promo-full-height"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="rotten-tomatoes" size="13"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="settings"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="shorts" size="32"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="spinners" size="22"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="yt-icons" rtl-mirroring="" size="24" use-global-rtl-attribute=""><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="yt-logos"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="yt-sys-icons" rtl-mirroring="" size="24" use-global-rtl-attribute=""><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="yt-sys-icons12" rtl-mirroring="" size="12"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="yt-sys-icons13" rtl-mirroring="" size="13"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="yt-sys-icons15" rtl-mirroring="" size="15"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="yt-sys-icons16" rtl-mirroring="" size="16"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="yt-sys-icons18" rtl-mirroring="" size="18"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="yt-sys-icons20" rtl-mirroring="" size="20"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="yt-sys-icons36" rtl-mirroring="" size="36"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="yt-sys-icons48" rtl-mirroring="" size="48"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="ytcp-icons" size="24"><svg><defs></defs></svg></iron-iconset-svg>');
bsT=E}E=bsT;W.call(F,E.content)};
document.body?lOu():window.addEventListener("DOMContentLoaded",lOu);var nSc,yIc=function(){return nSc!==void 0?nSc:nSc=document.createElement("template")};
document.head.appendChild(yIc().content);var jRO,isO=function(){return jRO!==void 0?jRO:jRO=document.createElement("template")};
document.head.appendChild(isO().content);var rI_;_.$V=new _.NG("KEY_MANAGER_TOKEN");var VZr={duration:1E3,easing:"ease",fill:"forwards"};_.ht(NSr);var Tji=_.Qt(_.z_);_.ht(_.z_);_.kY=_.GK(function(F){var W=_.uf(F.ref),E=F.aTagConfig?F.aTagConfig:_.vX(function(){var V,R,M,g,t,C;var B=(C=_.He((g=F.command)==null?void 0:g.call(F)))!=null?C:(t=F.command)==null?void 0:t.call(F);return _.Jm({innertubeCommand:B,skipOnClick:(V=F.skipOnClick)==null?void 0:V.call(F),stopPropagation:(R=F.dangerousStopPropagation)==null?void 0:R.call(F),defaultTarget:(M=F.target)==null?void 0:M.call(F)})||{}},void 0,"gnrRge");
_.q6(function(){W.value._data=E()._data;W.value.params=E().params});
var h=_.tb(function(V){var R,M;return void((M=(R=E()).onpointerdown)==null?void 0:M.call(R,V))}),d=_.tb(function(V){var R,M;
return void((M=(R=E()).onclick)==null?void 0:M.call(R,V))});
return _.z("a",{el:W,href:function(){return E().href$},
rel:function(){return E().rel$},
class:function(){var V,R;return(R=E().className)!=null?R:(V=F.className)==null?void 0:V.call(F)},
style:function(){var V;if((V=F.style)==null?0:V.call(F))return F.style();var R;return((R=F.disabled)==null?0:R.call(F))?"pointer-events:none":""},
"aria-haspopup":function(){return!!E()["aria-haspopup$"]},
"force-new-state":CQ(function(){return E()["force-new-state$"]}),
title:CQ(function(){var V,R;return(R=E().title$)!=null?R:(V=F.title)==null?void 0:V.call(F)}),
role:CQ(function(){return E().role$}),
target:CQ(function(){return E().target$}),
dir:CQ(function(){var V;return((V=F.dir)==null?0:V.call(F))?F.dir():E().dir}),
tabindex:function(){var V;return E().tabindex$?Number(E().tabindex$):(V=F.tabIndex)==null?void 0:V.call(F)},
"aria-hidden":function(){var V,R;return(R=E()["aria-hidden$"])!=null?R:(V=F.ariaHidden)==null?void 0:V.call(F)},
"aria-label":function(){var V,R;return(R=E()["aria-label$"])!=null?R:(V=F.ariaLabel)==null?void 0:V.call(F)},
"aria-current":F.ariaCurrent,"aria-labelledby":F.ariaLabelledby,"aria-describedby":F.ariaDescribedby,"aria-selected":F.ariaSelected,"tab-identifier":F.tabIdentifier,"on:pointerdown":h,"on:click":d},F.children)},"j");var oSp=function(F,W){this.fillAnimation=new Animation(eOI(F),document.timeline);this.strokeAnimation=new Animation(MZS(W),document.timeline)};
oSp.prototype.play=function(){var F,W;(W=(F=this.fillAnimation).play)==null||W.call(F);var E,h;(h=(E=this.strokeAnimation).play)==null||h.call(E)};
oSp.prototype.cancel=function(){var F,W;(W=(F=this.fillAnimation).cancel)==null||W.call(F);var E,h;(h=(E=this.strokeAnimation).cancel)==null||h.call(E)};_.xY=_.GK(function(F){var W=F.model;var E=F.pointerDownEvent;var h=F.pointerUpEvent;var d=F.pointerLeaveEvent;F=_.uf();var V=_.vr({"border-radius":function(){return W().borderRadius}}),R=_.uf(),M=_.uf(),g=_.U(_.Br(function(){return(h==null?0:h())||(d==null?0:d())?!1:!(E==null||!E())||!1})),t=g.next().value,C=g.next().value,B=void 0,I=function(){!B&&M.value&&R.value&&typeof Animation==="function"&&typeof KeyframeEffect==="function"&&(B=new oSp(M.value,R.value));
var l;(l=B)==null||l.play()},x=function(){var l;
(l=B)==null||l.cancel()},A=function(){var l;
(l=B)==null||l.cancel()};
_.q6(function(){(h==null?0:h())&&I()});
_.q6(function(){(E==null?0:E())&&x()});
_.q6(function(){(d==null?0:d())&&A()});
g=_.tb(function(){I();C(!1)});
var X=_.tb(function(){x();C(!0)}),P=_.tb(function(){A();
C(!1)});
_.$p(function(){if(B){var l;(l=B)==null||l.cancel();B=void 0}});
var b={};t=_.ec("yt-spec-touch-feedback-shape",function(){return QFY(W().color)},(b["yt-spec-touch-feedback-shape--focused"]=function(){return!!W().focused&&!W().disabled},b["yt-spec-touch-feedback-shape--circular"]=function(){return!!W().circular},b["yt-spec-touch-feedback-shape--is-extended"]=function(){return!!W().isExtended},b["yt-spec-touch-feedback-shape--down"]=t,b["yt-spec-touch-feedback-shape--trigger-events"]=function(){return!!W().triggerEvents},b));
return _.z("yt-touch-feedback-shape",{style:_.vr({"border-radius":"inherit"})},_.z("div",{el:F,class:t,style:_.vr({"margin-top":function(){return W().customTopExtend?"-"+W().customTopExtend+"px":void 0}}),
"on:mousedown":X,"on:mouseup":g,"on:pointerleave":P,"on:touchstart":X,"on:touchend":g,"aria-hidden":!0},_.z("div",{class:"yt-spec-touch-feedback-shape__stroke",style:V,el:R}),_.z("div",{class:"yt-spec-touch-feedback-shape__fill",style:V,el:M})))},"k");
_.xY.idomCompat=!0;var GZ_={cupcake:1.5,donut:1.6,eclair:2,froyo:2.2,gingerbread:2.3,honeycomb:3,"ice cream sandwich":4,jellybean:4.1,kitkat:4.4,lollipop:5.1,marshmallow:6,nougat:7.1};var hq=_.BG();hq=hq.toLowerCase();if(_.gI(hq,"android")){var YvT=hq.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);YvT&&parseFloat(YvT[1])<100||hq.match("("+Object.keys(GZ_).join("|")+")")};var wq_=_.GK(function(F){return _.z(_.v,{cond:F.aTagConfig,then:function(W){return _.z(_.kY,{aTagConfig:W,disabled:F.disabled,className:F.className,style:F.style,title:F.title,ariaLabel:F.ariaLabel,ariaCurrent:function(){var E,h;return((E=F.toggleable)==null?void 0:E.call(F))&&((h=F.toggled)==null?void 0:h.call(F))}},F.children)},
else:function(){return _.z("button",{"on:click":_.tb(function(W){var E;return(E=F.onClick)==null?void 0:E.call(F,W)}),
class:F.className,title:F.title,style:F.style,disabled:F.disabled,"aria-pressed":function(){var W,E;return((W=F.toggleable)==null?0:W.call(F))?!((E=F.toggled)==null||!E.call(F)):void 0},
"aria-label":F.ariaLabel,"aria-disabled":F.visiblyDisabled,"aria-hidden":F.ariaHidden,tabindex:F.tabIndex},F.children)}})},"l"),SvO=_.GK(function(F){var W=F.data;
var E=F.hasIconLeading;var h=F.hasIconLeadingTrailing;var d=F.hasIconTrailing;var V=F.iconButton;var R=F.iconClassName;var M=F.secondaryIconClassName;var g=F.icon;var t=F.secondaryIcon;var C=F.textContentClassName;return _.z(d5,{className:"",style:"display: inherit; justify-content: center"},_.z(_.v,{cond:function(){return g&&(E()||h()||(V==null?void 0:V()))},
then:function(){return _.z(d5,null,_.z("div",{class:R,"aria-hidden":"true"},g==null?void 0:g()))}}),_.z(_.v,{cond:function(){return(W().buttonText||W().animatedTextProps||W().formattedButtonText)&&!(V==null?0:V())},
then:function(){return _.z(d5,null,_.z(uXz,{className:C,iconPosition:function(){return W().iconPosition},
text:function(){return W().buttonText},
oneOffCustomTextWrap:function(){return W().oneOffCustomTextWrap},
formattedButtonText:function(){return W().formattedButtonText},
animatedTextProps:function(){return W().animatedTextProps}}))}}),_.z(_.v,{cond:d,
then:function(){return _.z(d5,null,_.z("div",{class:R},g==null?void 0:g()))}}),_.z(_.v,{cond:h,
then:function(){return _.z(d5,null,_.z("div",{class:M},t==null?void 0:t()))}}),_.z(_.v,{cond:function(){return!W().disabled&&!0},
then:function(){return _.z(_.xY,{model:function(){return{color:BSS(W())}}})}}))},"m"),uXz=_.GK(function(F){var W=function(){var E,h;
return((E=F.iconPosition)==null?void 0:E.call(F))==="icon-with-label"||((h=F.oneOffCustomTextWrap)==null?void 0:h.call(F))};
return _.z("div",{class:F.className,"aria-hidden":function(){var E,h,d;return((E=F.ariaHidden)==null?void 0:E.call(F))&&(!((h=F.animatedTextProps)==null||!h.call(F))||!((d=F.formattedButtonText)==null||!d.call(F)))}},_.z(_.sG,null,_.z(_.kF,{when:function(){var E;
return(E=F.animatedTextProps)==null?void 0:E.call(F)}},function(){return _.z(Tji,{numberText:function(){return F.animatedTextProps().numberText},
numberValue:function(){return F.animatedTextProps().numberValue},
heightPx:function(){return F.animatedTextProps().heightPx},
fontSizeMultiplier:function(){return F.animatedTextProps().fontSizeMultiplier},
shouldAnimate:function(){return F.animatedTextProps().shouldAnimate},
forceRollUp:function(){return F.animatedTextProps().forceRollUp}})}),_.z(_.kF,{when:function(){var E;
return(E=F.formattedButtonText)==null?void 0:E.call(F)}},function(){return _.z(_.Ab,{text:function(){return Object.assign({},F.formattedButtonText(),{lineBreakMode:W()?"LINE_BREAK_MODE_BY_WORD_WRAPPING":F.formattedButtonText().lineBreakMode,
alignment:W()?"TEXT_ALIGNMENT_CENTER":F.formattedButtonText().alignment})},
noLinkColor:!0,noWrap:function(){return!W()}})}),_.z(_.kF,{when:function(){var E,h;
return((E=F.iconPosition)==null?void 0:E.call(F))==="icon-with-label"&&((h=F.text)==null?void 0:h.call(F))}},function(){return _.z(_.Ab,{text:function(){return{content:F.text(),
lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}},
noLinkColor:!0,noWrap:!1})}),_.z(_.A8,null,function(){return F.text})))},"n"),pqT=_.GK(function(F){return _.z(_.v,{cond:F.hasLabel,
then:function(){var W;return _.z("label",{class:F.className},F.children,(W=F.textContent)==null?void 0:W.call(F))},
else:function(){return F.children}})},"o"),d5=_.GK(function(F){return F.children},"p");var tcr=pr("stamper-context");_.ht(Per);var Vg=_.GK(function(F){var W=F.data;var E=F.icon;var h=F.iconName;var d=F.secondaryIcon;var V=F.secondaryIconName;var R=F.focusedOverride;ZaI();var M=zOY(W),g=M.size,t=M.style;F=M.disabled;var C=M.onTap,B=M.alignByText,I=M.aTagConfig,x=M.customColors,A=M.segmentedPosition,X=M.toggled,P=M.toggleable,b=M.accessibilityLabel,l=M.onToggle,w=M.iconPosition,G=M.oneOffCustomTextWrap,hr=M.disableTextEllipsis,p=M.disableBackdropFilter,UY=M.tooltipText,xW=M.ariaHidden,qw=M.tabIndex,Lb=M.buttonText,jk=M.formattedButtonText,
Jr=M.animatedTextProps,nb=Cek(W,E,d,h,V,R),bo=nb.type;E=nb.shouldFocus;h=nb.hasIconLeading;d=nb.hasIconTrailing;var uo=nb.hasIconLeadingTrailing,b_=nb.hasIconOnly;V=nb.hasIconOnly40;var BO=nb.hasIconWithLabel;R=nb.iconButton;var dc=nb.visiblyDisabled;M=nb.overrideSmallSizeIcon;var VM=nb.iconToRender;nb=nb.secondaryIconToRender;var Z_={},MU={};return _.z(pqT,{className:_.ec("yt-spec-button-shape-with-label",(Z_["yt-spec-button-shape-with-label--is-overlay"]=function(){return t()==="overlay"||t()===
"overlay-dark"},Z_)),
hasLabel:BO,textContent:function(){return _.z(uXz,{text:Lb,className:"yt-spec-button-shape-with-label__label",ariaHidden:!0,oneOffCustomTextWrap:G,iconPosition:w,formattedButtonText:jk,animatedTextProps:Jr})}},_.z(wq_,{aTagConfig:I,
className:_.ec("yt-spec-button-shape-next",function(){return Icr(bo())},function(){return dc()?void 0:cwG(t())},function(){return Dgn(g())},(MU["yt-spec-button-shape-next--disabled"]=dc,MU["yt-spec-button-shape-next--focused"]=E,MU["yt-spec-button-shape-next--icon-trailing"]=d,MU["yt-spec-button-shape-next--icon-leading"]=h,MU["yt-spec-button-shape-next--icon-leading-trailing"]=uo,MU["yt-spec-button-shape-next--icon-leading-trailing-no-text"]=function(){return uo()&&!(Lb()||jk())},MU["yt-spec-button-shape-next--icon-button"]=
function(){return b_()||BO()},MU["yt-spec-button-shape-next--icon-only-default"]=V,MU["yt-spec-button-shape-next--align-by-text"]=B,MU["yt-spec-button-shape-next--segmented-start"]=function(){return A()==="start"},MU["yt-spec-button-shape-next--segmented-end"]=function(){return A()==="end"},MU["yt-spec-button-shape-next--override-small-size-icon"]=M,MU["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=G,MU["yt-spec-button-shape-next--disable-text-ellipsis"]=hr,MU["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=
function(){return!p()&&vso()},MU)),
style:function(){return kQY(x()).style},
onClick:function(Ef){C==null||C(Ef);P()&&(l==null||l(Ef))},
disabled:F,ariaLabel:b,toggleable:P,toggled:X,title:function(){var Ef;return(Ef=UY())!=null?Ef:""},
visiblyDisabled:dc,ariaHidden:xW,tabIndex:qw},_.z(SvO,{data:W,hasIconLeading:h,hasIconLeadingTrailing:uo,hasIconTrailing:d,iconButton:R,icon:VM,textContentClassName:"yt-spec-button-shape-next__button-text-content",iconClassName:"yt-spec-button-shape-next__icon",secondaryIconClassName:"yt-spec-button-shape-next__secondary-icon",secondaryIcon:nb})))},"q");
Vg.idomCompat={callbacks:{icon:!0,secondaryIcon:!0}};var mxM=_.GK(function(F){var W=F.data;var E=F.id;var h=F.hidden;var d=F.className;var V=F.icon;var R=F.secondaryIcon;var M=F.iconName;var g=F.secondaryIconName;F=_.U(_.g$(!1,void 0,"ikxyhf"));var t=F.next().value,C=F.next().value,B=function(){var x=_.WZ().resolve(_.Fd(_.$V));x&&C(x.isKeyBoardInUse())},I=function(){C(!1)};
F=_.uf(function(x){if(_.WZ().resolve(_.Fd(_.$V)))return x.addEventListener("focusin",B),x.addEventListener("focusout",I),function(){x.removeEventListener("focusin",B);x.removeEventListener("focusout",I)}});
return _.z("yt-button-shape",{el:F,id:E,class:d,hidden:h},_.z(_.v,{cond:W,then:function(){return _.z(Vg,{data:W,icon:V,secondaryIcon:R,iconName:M,secondaryIconName:g,focusedOverride:t})}}))},"r");
_.c("web_wiz_button_shape")&&_.pK(mxM,"yt-button-shape",{props:{data:_.TS,id:_.TS,hidden:_.TS,className:_.TS,icon:_.Si,secondaryIcon:_.Si,iconName:_.TS,secondaryIconName:_.TS},unsafeExternallySettableAttributes:new Set(["key","dialog-dismiss","disable-upgrade"])});var N4=function(){var F=_.n.apply(this,arguments)||this;F.keyboardFocused=!1;return F};
_.k(N4,_.n);N4.prototype.onFocus=function(){var F=_.WZ().resolve(_.Fd(_.$V));F&&(this.keyboardFocused=F.isKeyBoardInUse())};
N4.prototype.onBlur=function(){this.keyboardFocused=!1};
N4.prototype.renderIdom=function(){var F=this;if(this.data){var W=cr(this.data,!!this.iconName),E=xgG(this.data);this.data.focused=this.keyboardFocused;qyo(this.data,function(){var h;s6("yt-icon",{icon:F.iconName,active:(h=F.data)==null?void 0:h.toggled,size:W,style:"width: "+W+"px; height: "+W+"px;",iconFilter:E},oy)},function(){var h;
s6("yt-icon",{icon:F.secondaryIconName,active:(h=F.data)==null?void 0:h.toggled,size:W,style:"width: "+W+"px; height: "+W+"px;",iconFilter:E},oy)});
_.hF(this.hostElement,"yt-renderidom-finished")}};
_.Sn.Object.defineProperties(N4,{template:{configurable:!0,enumerable:!0,get:function(){if(rI_===void 0){var F=document.createElement("template");_.L(F,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-button-shape--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.web_interface_library.youtube_standards.yt_button_shape.yt.button.shape_wil_styles.css.js,video.youtube.src.web.polymer.shared.web_interface_library.youtube_standards.yt_button_shape.yt.button.shape.css.js--\x3e");
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);F.content.insertBefore(isO().content.cloneNode(!0),F.content.firstChild);F.content.insertBefore(yIc().content.cloneNode(!0),F.content.firstChild);rI_=F}F=rI_;return F}}});
N4.prototype.onBlur=N4.prototype.onBlur;N4.prototype.onFocus=N4.prototype.onFocus;_.T([_.J(sJp),_.Y("design:type",Object)],N4.prototype,"ytIdomTemplatingBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],N4.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",String)],N4.prototype,"iconName",void 0);_.T([_.O(),_.Y("design:type",String)],N4.prototype,"secondaryIconName",void 0);_.T([_.O(),_.Y("design:type",Object)],N4.prototype,"keyboardFocused",void 0);
_.T([_.R4("focusin"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],N4.prototype,"onFocus",null);_.T([_.R4("focusout"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],N4.prototype,"onBlur",null);N4=_.T([_.$3({is:"yt-button-shape",isInjectionRoot:!0,disableElementRegistration:_.c("web_wiz_button_shape")})],N4);_.pK(_.GK(function(F){function W(){E().seconds&&V(Ghw({seconds:Number(E().seconds)-Date.now()/1E3}))}
var E=F.targetTimestamp;F=F.className;var h=_.U(_.g$("",void 0,"U1Q8Ae")),d=h.next().value,V=h.next().value;_.$F(function(){W();var R=setInterval(function(){W()},1E3);
_.$p(function(){clearInterval(R)})});
return _.z("yt-countdown",{class:_.ec("ytCountDownHost",F)},_.z("div",null,d))},"s"),"yt-countdown",{props:{targetTimestamp:_.TS,
className:_.Si}});_.rk=_.GK(function(F){var W=F.data;var E=F.className;var h=F.style;var d=F.useOutlinedIcon;var V=F.buttonOverrides;var R=F.animatedTextProps;var M=F.onClick;var g=_.uf(function(P){return function(){L3_(_.QV(),P)}}),t=function(){return W().iconName},C,B=(C=_.WZ().resolve(_.Fd(_.nK)))==null?void 0:C(),I=function(){var P=W();
var b=V==null?void 0:V(),l=R==null?void 0:R();if(P){var w=fcb(P.type);var G=!!P.title||!!P.titleFormatted;var hr=!(!P.iconName&&!P.iconImage);G=hr&&!G?"icon-only":hr?P.iconTrailing||P.iconPosition==="BUTTON_VIEW_MODEL_ICON_POSITION_TRAILING"?"trailing":"leading":void 0;G==="icon-only-40"&&(w="text");var p,UY=(p=b==null?void 0:b.disabled)!=null?p:P.state==="BUTTON_VIEW_MODEL_STATE_DISABLED"||P.state==="BUTTON_VIEW_MODEL_STATE_INACTIVE";p=Object;hr=p.assign;var xW=P.title,qw=P.titleFormatted;l=l&&l.numberText&&
!isNaN(Number(l.numberValue))?l:void 0;var Lb=P.accessibilityText,jk=acn(P.style),Jr=Oab(P.state),nb=baY(P.buttonSize),bo=Jww(P,g,UY,M);UY=UY&&!P.onDisabledTap;var uo=_.Jm({elementsCommand:P.onTap,forceNewState:!0});uo=au(uo)?uo:void 0;var b_=P.customFontColor,BO=P.customBackgroundColor;var dc=P.customBorderColor;var VM=P.customDarkThemeFontColor,Z_=P.customDarkThemeBackgroundColor,MU=P.customDarkThemeBorderColor;b_=B&&VM?VM:b_;BO=B&&Z_?Z_:BO;dc=B&&MU?MU:dc;dc={color:b_?_.XC(b_):void 0,backgroundColor:BO?
_.XC(BO):void 0,borderColor:dc?_.XC(dc):void 0};P=hr.call(p,{},{buttonText:xW,formattedButtonText:qw,animatedTextProps:l,accessibilityLabel:Lb,style:jk,type:w,state:Jr,size:nb,iconPosition:G,onTap:bo,disabled:UY,aTagConfig:uo,customColors:dc,tooltipText:P.tooltip},b)}else P={style:"mono",type:"text",state:"active",size:"M"};P.focused=X();return P},x=function(){return cr(I(),!!W().iconName)};
F=_.U(_.g$(!1,void 0,"JjUrEe"));C=F.next().value;var A=F.next().value,X=C;F=_.tb(function(){var P=_.WZ().resolve(_.Fd(_.$V));P&&A(P.isKeyBoardInUse());return!1});
C=_.tb(function(){A(!1);return!1});
_.q6(function(){var P,b=_.D(W==null?void 0:(P=W())==null?void 0:P.onVisible,_.XP);b&&_.Pe(b,{disableClickTracking:!0})});
_.Xk(function(){g.value.dispatchEvent(new CustomEvent("yt-renderidom-finished",{bubbles:!0,cancelable:!1,composed:!0}));var P=W().targetId;P&&_.$_u(_.QV(),P,g.value)});
return _.z("button-view-model",{el:g,class:_.ec("yt-spec-button-view-model",E),"on:focusin":F,"on:focusout":C},_.z(_.v,{cond:function(){return W().iconImage?{sources:[W().iconImage]}:void 0},
then:function(P){return _.z(Vg,{data:I,icon:function(){return _.z(_.T4,{data:P,alt:"",targetWidth:x,targetHeight:x,preserveWidth:!0,preserveHeight:!0})}})},
else:function(){return _.z(Vg,{data:I,icon:function(){return _.z(_.I3,{icon:t,active:function(){return(d==null?0:d())?!1:I().toggled},
animateIcon:function(){var P;return!!(h==null?0:(P=h())==null?0:P.animateIcon)},
size:x})}})}}))},"t");
_.rk.idomCompat={callbacks:{onClick:!0}};_.pK(_.GK(function(F){return _.z("yt-button-view-model",{id:F.id,class:_.ec(F.scopingClassName,F.classes),icon:function(){var W;return(W=F.icon)==null?void 0:W.call(F)},
"dialog-dismiss":function(){var W;return((W=F.dialogDismiss)==null?0:W.call(F))?"":void 0}},_.z(_.rk,{data:function(){var W;
return(W=F.data)==null?void 0:W.call(F)},
className:function(){var W;return(W=F.className)==null?void 0:W.call(F)},
style:function(){var W;return(W=F.style)==null?void 0:W.call(F)},
useOutlinedIcon:function(){var W;return(W=F.useOutlinedIcon)==null?void 0:W.call(F)},
buttonOverrides:function(){var W;return(W=F.buttonOverrides)==null?void 0:W.call(F)},
animatedTextProps:function(){var W;return(W=F.animatedTextProps)==null?void 0:W.call(F)},
onClick:function(W){var E;return(E=F.onClick)==null?void 0:E.call(F,W)}}))},"u"),"yt-button-view-model",{props:{data:_.TS,
className:_.TS,style:_.TS,useOutlinedIcon:_.TS,buttonOverrides:_.TS,animatedTextProps:_.TS,onClick:_.Si,scopingClassName:_.TS,id:_.TS,icon:_.TS,dialogDismiss:_.TS,classes:_.TS}});var VR=function(){var F=_.n.apply(this,arguments)||this;F.isGoalActive=!0;return F};
_.k(VR,_.n);VR.prototype.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
VR.prototype.progressBarChanged=function(){var F=_.Z(this.hostElement).querySelector("#progress-bar-progress"),W,E,h,d=(h=Number((W=this.creatorGoalState)==null?void 0:W.currentGoalCount)/Number((E=this.creatorGoalState)==null?void 0:E.totalGoalCount)*100)!=null?h:0,V;F.style.width=((V=Math.min(d,100))!=null?V:0)+"%"};
VR.prototype.goalStateChanged=function(){var F;this.isGoalActive=((F=this.creatorGoalState)==null?void 0:F.creatorGoalState)==="CREATOR_GOAL_STATE_ACTIVE";var W;F={"--yt-progress-bar-color":hfn((W=this.creatorGoalState)==null?void 0:W.progressBarColor)};_.V9(this.hostElement,F)};
VR.prototype.configureRendererStamper=function(){return{"creatorGoalState.progressFlowButton":{id:"progress-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
_.Sn.Object.defineProperties(VR.prototype,{shouldShowCountdown:{configurable:!0,enumerable:!0,get:function(){var F;return this.isGoalActive&&!((F=this.creatorGoalState)==null||!F.shouldShowCountdown)}},
endTimestamp:{configurable:!0,enumerable:!0,get:function(){var F;if((F=this.creatorGoalState)==null?0:F.endTimestampMs){var W;F=Number((W=this.creatorGoalState)==null?void 0:W.endTimestampMs)/1E3;return{seconds:String(F)}}}},
targetIconThemedImage:{configurable:!0,enumerable:!0,get:function(){var F;if((F=this.creatorGoalState)==null?0:F.themedTargetImage){var W;F=_.D((W=this.creatorGoalState)==null?void 0:W.themedTargetImage,mIz);return this.isAppDarkTheme()?F==null?void 0:F.imageDark:F==null?void 0:F.imageLight}}}});
_.Sn.Object.defineProperties(VR,{template:{configurable:!0,enumerable:!0,get:function(){return AIu()}}});
VR.prototype.goalStateChanged=VR.prototype.goalStateChanged;VR.prototype.progressBarChanged=VR.prototype.progressBarChanged;_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],VR.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.av),_.Y("design:type",Object)],VR.prototype,"ytLiveChatReduxBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],VR.prototype,"ytRendererBehavior",void 0);
_.T([_.O({selectorArgs:["data.creatorGoalEntityKey"],selector:function(F,W){return _.Mn(F.entities,"creatorGoalEntity",W)}}),
_.Y("design:type",Object)],VR.prototype,"creatorGoalState",void 0);_.T([_.O(),_.Y("design:type",Object)],VR.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Object)],VR.prototype,"isGoalActive",void 0);_.T([_.a("creatorGoalState","isGoalActive"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],VR.prototype,"shouldShowCountdown",null);_.T([_.a("creatorGoalState"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],VR.prototype,"endTimestamp",null);
_.T([_.a("creatorGoalState"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],VR.prototype,"targetIconThemedImage",null);_.T([_.ea("creatorGoalState.currentGoalCount"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],VR.prototype,"progressBarChanged",null);_.T([_.ea("creatorGoalState.creatorGoalState"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],VR.prototype,"goalStateChanged",null);
VR=_.T([_.$3({is:"yt-creator-goal-progress-flow-view-model",disableElementRegistration:!0,noInjection:!0})],VR);_.r(VR,"yt-creator-goal-progress-flow-view-model",function(){return AIu()},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var KnT;var FI_;var Uz=function(){return _.n.apply(this,arguments)||this};
_.k(Uz,_.n);Uz.prototype.attached=function(){var F,W,E;if(this==null?0:(F=this.data)==null?0:(W=F.pdgPurchasedBumperLoggingDirectives)==null?0:(E=W.loggingDirectives)==null?0:E.trackingParams){var h,d,V;ywY(this==null?void 0:(h=this.data)==null?void 0:(d=h.pdgPurchasedBumperLoggingDirectives)==null?void 0:(V=d.loggingDirectives)==null?void 0:V.trackingParams)}};
Uz.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{bumperUserEduContentViewModel:{component:"yt-bumper-user-edu-content-view-model"}}}}};
_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],Uz.prototype,"ytComponentBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],Uz.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],Uz.prototype,"data",void 0);Uz=_.T([_.$3({disableElementRegistration:!0,is:"yt-live-chat-item-bumper-view-model"})],Uz);
_.r(Uz,"yt-live-chat-item-bumper-view-model",function(){if(FI_===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-item-bumper-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_live_chat_item_bumper_view_model.yt.live.chat.item.bumper.view.model.css.js--\x3e<div id="bumper" class="style-scope yt-live-chat-item-bumper-view-model">\n  <div id="content" class="style-scope yt-live-chat-item-bumper-view-model"></div>\n</div>');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;KnT===void 0&&(KnT=document.createElement("template"));var h=KnT;E.call(W,h.content.cloneNode(!0),F.content.firstChild);FI_=F}F=FI_;return F},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var WIu;var Eqp;_.uz=function(F,W){this.data=F;this.actions=W;this.data=F;this.actions=W};
_.nQ=function(){};_.R9={};_.R9.YtOpenPopupBehavior={properties:{popupPositionTarget:Object},listeners:{"yt-service-request-completed":"onOpenPopupServiceRequestCompleted_"},created:function(){this.openPopupConfig=null},
openPopup:function(F,W){jFr(this.hostElement,F,W)},
getNavigationEndpointPopupAction:function(F){return iaI(F,this.openPopupConfig)},
onOpenPopupServiceRequestCompleted_:function(F,W){rwn(this.hostElement,F,W,this.openPopupConfig)}};var KHY=["backstageImageUploadEndpoint","openUpdateCommentDialogAction","updateCommentDialogEndpoint","updateCommentReplyDialogEndpoint"];_.eB={};
_.eB.YtEndpointBehavior=[_.R9.YtOpenPopupBehavior,{properties:{openPopupConfig:Object,useClickHandler:{type:Boolean,value:!1}},ready:function(){this.openPopupConfig=_.b0("openPopupConfig");(this.useClickHandler=_.l0("useClickHandler",!1))?this.listen(this.hostElement,"click","onEndpointClick_"):(this.listen(this.hostElement,"tap","onEndpointTap_"),this.listen(this.hostElement,"touchend","onEndpointTouchEnd_"));this.listen(this.hostElement,"touchstart","onEndpointTapStart_");this.listen(this.hostElement,"mousedown",
"onEndpointTapStart_")},
onEndpointClick_:function(F){GQR(this.hostElement,F,this.openPopupConfig,this.disableCommandHandlerOverride)},
onEndpointTap_:function(F){var W=this.hostElement,E=this.openPopupConfig,h=this.disableCommandHandlerOverride;h=h===void 0?!1:h;var d=TSY(F);if(d){d.href&&Jg(d.href);var V=F.detail;var R=V.sourceEvent;V=V.preventer;R=R.button!==void 0?R.button===0&&!qj(R):V?!qj(V):!0;d.data&&R&&osr(W,d,F,E,h)}},
onEndpointTouchEnd_:function(F){qj(F)||TSY(F)&&F.preventDefault()},
onEndpointTapStart_:function(F){p9o(F)}}];var FbR="section1Color section2Color section3Color section4Color navBarColor primaryTitleColor secondaryTitleColor bodyTextColor iconActivatedColor iconInactiveColor iconDisabledColor".split(" "),E_k=["backgroundColor","borderColor","foregroundTitleColor","foregroundBodyColor","foregroundActivatedColor"];var hVi={};hVi.YtPlaintextBehavior=[_.$5,{properties:{plaintextOnly:{type:Boolean,value:!1}},detached:function(){this.plaintextOnly&&(this.hostElement.removeEventListener("paste",this.onPaste_),this.removeOwnKeyBindings())},
attached:function(){this.plaintextOnly&&(this.hostElement.addEventListener("paste",this.onPaste_),this.addOwnKeyBinding("ctrl+b meta+b ctrl+i meta+i","preventRichTextFormatting_"))},
onPaste_:function(F){F.preventDefault();F=F.clipboardData.getData("text/plain");document.execCommand("insertText",!1,F)},
preventRichTextFormatting_:function(F){_.cY&&(F=F.detail.keyboardEvent,F.stopImmediatePropagation(),F.preventDefault())}}];var d7_;var NmT;var M4=function(){var F=_.n.apply(this,arguments)||this;F.ignoreShadyDom=!1;F.hasChange_=!1;F.hasSetTitle_=!1;F.useIOObserverForVisibilityLogging_=_.c("kevlar_use_vimio_behavior")&&_.b0("INNERTUBE_CLIENT_NAME")==="WEB";F.ytFormattedStringObserverHandlerKeys_=void 0;return F};
_.k(M4,_.n);_.N=M4.prototype;_.N.created=function(){this.useIOObserverForVisibilityLogging_=_.c("kevlar_use_vimio_behavior")&&_.b0("INNERTUBE_CLIENT_NAME")==="WEB";this.isEmpty=!0};
_.N.ready=function(){_.b0("HTML_DIR")==="rtl"?this.useMixedDirectionFormattedStrings?this.hostElement.dir="rtl":this.respectHtmlDir||(this.hostElement.dir="auto"):this.respectLangDir&&(this.hostElement.dir="auto",this.hostElement.style.textAlign="left");this.enableContentEditableChanged_()};
_.N.attached=function(){this.hasChange_&&this.textChanged_(this.text)};
_.N.detached=function(){this.unobserveIOObservers_()};
_.N.clearContents_=function(){for(var F=this.getRoot(),W=F.lastChild;W&&W.tagName!=="STYLE";){try{F.removeChild(W)}catch(E){break}W=F.lastChild}};
_.N.unobserveIOObservers_=function(){if(this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&this.ytFormattedStringObserverHandlerKeys_){for(var F=_.U(this.ytFormattedStringObserverHandlerKeys_),W=F.next();!W.done;W=F.next())this.ytRendererBehavior.visibilityObserver.unobserveByKey(W.value);this.ytFormattedStringObserverHandlerKeys_.length=0}};
_.N.resetForAttributedString=function(){var F=this.getRoot();!F.querySelector("yt-attributed-string")&&this.ytAttributedStringElementRef&&(this.clearContents_(),F.appendChild(this.ytAttributedStringElementRef))};
_.N.resetForFormattedString=function(){var F=this.getRoot(),W=F.querySelector("yt-attributed-string");W&&(this.ytAttributedStringElementRef=F.removeChild(W))};
_.N.textChanged=function(){this.textChanged_(this.text)};
_.N.textChanged_=function(F){if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;this.isEmpty=!F||!F.runs&&!F.simpleText;if(_.c("web_replace_formatted_with_attributed_string")){if(this.useYtAttributedString){this.resetForAttributedString();return}this.resetForFormattedString()}this.unobserveIOObservers_();for(var W=this.hostElement.firstChild;W&&W.nodeName==="FONT";){var E=W;W=W.nextSibling;this.hostElement.removeChild(E)}W=this.getRoot();if(this.isEmpty)this.clearContents_();else{this.ellipsisTruncateChanged_();
E=F.simpleText;var h;!E&&((h=F.runs)==null?void 0:h.length)===1&&this.isSimpleString_(F.runs[0])&&(E=F.runs[0].text);E!==void 0&&!this.respectHtmlDir&&this.useMixedDirectionFormattedStrings&&_.b0("HTML_DIR")==="rtl"&&(this.hostElement.dir="auto");if(E!==void 0){try{W.textContent=E}catch(d){}W.textContent||(this.isEmpty=!0)}else F=F.runs,E!==void 0&&(F=[{text:E}]),this.ellipsisTruncate?this.hostElement.classList.add("complex-string"):this.hostElement.classList.remove("complex-string"),F&&this.updateText_(F),
W.textContent||this.hasEmoji||(this.isEmpty=!0)}}};
_.N.ellipsisTruncateChanged_=function(){!this.ellipsisTruncate||this.hostElement.title&&!this.hasSetTitle_?this.hasSetTitle_&&(this.hostElement.removeAttribute("title"),this.hasSetTitle_=!1):(this.hostElement.title=this.getRawText(),this.hasSetTitle_=!0)};
_.N.computeAriaLabel_=function(F){return F};
_.N.computeEllipsisTruncateStyling=function(F,W){return F&&!W};
_.N.computeUseAttributedString=function(F){return _.c("web_replace_formatted_with_attributed_string")&&cIo(F)&&!this.disableAttributedString&&!this.enableContentEditable};
_.N.setNodeStyle_=function(F,W){!this.useMixedDirectionFormattedStrings||this.respectHtmlDir||_.c("disable_child_node_auto_formatted_strings")&&this.hostElement.dir==="auto"?W.removeAttribute("dir"):W.setAttribute("dir","auto");W.classList.remove("bold","deemphasize","italic","strikethrough","bracket","error-underline");W.style.color="";var E=null;this.noStyles||(F.bold&&(W.classList.add("bold"),E="bold"),F.deemphasize&&(W.classList.add("deemphasize"),E="deemphasize"),F.italics&&W.classList.add("italic"),
F.strikethrough&&W.classList.add("strikethrough"),F.errorUnderline&&(W.classList.add("error-underline"),this.isDarkTheme=document.documentElement.hasAttribute("dark")),F.bracket&&W.classList.add("bracket"),F.textColor&&(W.style.color=_.ZP(F.textColor)));E!==W.getAttribute("style-target")&&(E?W.setAttribute("style-target",E):W.removeAttribute("style-target"))};
_.N.setUpVisibilityLogging_=function(F,W){var E=this;this.setNodeTrackingParams_(F,W);var h;((h=W.data)==null?0:h.trackingParams)&&this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&(F=this.ytRendererBehavior.visibilityObserver.observe(W,function(d){var V=E.ytRendererBehavior.getVisibilityLogger();V&&V.reportShown(d)},this.ytRendererBehavior.visibilityOptionVisible_),W=this.ytRendererBehavior.visibilityObserver.observe(W,function(d){var V=E.ytRendererBehavior.getVisibilityLogger();
V&&V.reportHidden(d)},this.ytRendererBehavior.visibilityOptionHidden_),this.ytFormattedStringObserverHandlerKeys_||(this.ytFormattedStringObserverHandlerKeys_=[]),this.ytFormattedStringObserverHandlerKeys_.push(F),this.ytFormattedStringObserverHandlerKeys_.push(W))};
_.N.setNodeTrackingParams_=function(F,W){W.data||(W.data={});if((F=F.loggingDirectives?F.loggingDirectives.trackingParams:null)||W.data.trackingParams)W.data.trackingParams=F};
_.N.computeHasLinkOnly_=function(F){return!(!F||F.length!==1||this.noEndpoints||!F[0].navigationEndpoint)};
_.N.getRoot=function(){var F=this.buildScopeDomOptions();return this.enableContentEditable?_.Z(_.Z(this.hostElement,F).querySelector("[contenteditable]")):_.Z(this.hostElement,F)};
_.N.fixContenteditableScope=function(){var F=function(W){W&&(W.nodeType===1&&W.classList&&(W.classList.add("style-scope"),W.classList.add("yt-formatted-string")),W.childNodes&&W.childNodes.forEach(function(E){F(E)}))};
F(this.getRoot())};
_.N.updateText_=function(F){for(var W=F.length,E=this.getRoot(),h=E.firstChild;h&&h.nodeName==="STYLE";)h=h.nextSibling;for(var d=0;d<W&&h;){var V=F[d],R=_.c("remove_cr_char")&&V.text?V.text.replace("\r",""):V.text;if(this.isSimpleString_(V)&&!this.useMixedDirectionFormattedStrings)if(h.nodeName==="#text"){h.textContent!=R&&(h.textContent=R);d++;h=h.nextSibling;continue}else break;if(_.D(V,$T))break;else if(!this.noEndpoints&&V.navigationEndpoint){if(h.nodeName!=="A")break;this.setDataOnAnchor_(h,
V.navigationEndpoint)}else if(h.nodeName!=="SPAN")break;this.setNodeStyle_(V,h);this.setUpVisibilityLogging_(V,h);h.textContent!=R&&(h.textContent=R);d++;h=h.nextSibling}if(h)for(V=E.lastChild,h=d?h.previousSibling:null;V&&V!=h;){try{E.removeChild(V)}catch(M){break}V=E.lastChild}d!==W&&this.addTextNodes_(F,d)};
_.N.addTextNodes_=function(F,W){for(var E=document.createDocumentFragment(),h=F.length;W<h;W++){var d=F[W],V=_.c("remove_cr_char")&&d.text?d.text.replace("\r",""):d.text;if(this.isSimpleString_(d)&&!this.useMixedDirectionFormattedStrings)E.appendChild(document.createTextNode(V));else{var R=_.D(d,$T);if(R){if(R.image){var M=document.createElement("img");R.isCustomEmoji||M.classList.add("small-emoji");M.classList.add("emoji");R.isCustomEmoji&&(M.dataset.emojiId=R.emojiId);M.src=_.m_(R.image.thumbnails,
this.emojiSize);(d=this.get("image.accessibility.accessibilityData.label",R))?M.alt=d:R.shortcuts&&R.shortcuts.length>0?M.alt=R.shortcuts[0]:R.emojiId&&(M.alt=R.emojiId);E.appendChild(M);this.hasEmoji=!0}}else!this.noEndpoints&&d.navigationEndpoint?(M=document.createElement("a"),M.classList.add("yt-simple-endpoint"),M.setAttribute("spellcheck","false"),this.setDataOnAnchor_(M,d.navigationEndpoint)):M=document.createElement("span"),this.setNodeStyle_(d,M),this.setUpVisibilityLogging_(d,M),M.appendChild(document.createTextNode(V)),
E.appendChild(M)}}this.getRoot().appendChild(E)};
_.N.isSimpleString_=function(F){return(this.noEndpoints||!F.navigationEndpoint)&&!_.D(F,$T)&&(this.noStyles||!(F.bold||F.deemphasize||F.italics||F.strikethrough||F.errorUnderline||F.bracket||F.textColor))&&!F.loggingDirectives};
_.N.getRawText=function(){return _.Yr(this.text)};
_.N.getFirstRunText=function(){var F;if(((F=this.text)==null?0:F.runs)&&this.text.runs[0])return this.text.runs[0].text};
_.N.setFirstRunText=function(F){var W;((W=this.text)==null?0:W.runs)&&this.text.runs[0]&&(this.text.runs[0].text=F,this.textChanged_(this.text))};
_.N.setDataOnAnchor_=function(F,W){var E=this;!_.c("yf_formatted_string_service_endpoint_killswitch")&&this.isServiceEndpoint_(W)||this.isSignalServiceEndpoint_(W)?(F.onclick=this.serviceEndpointHandler_(W),Lu(F,"#")):HKr({text:this.text,command:W},function(){rmr(F,W,E.target)})};
_.N.isServiceEndpoint_=function(F){var W;return!((W=_.D(F==null?void 0:F.commandMetadata,_.m1))==null||!W.sendPost)};
_.N.isSignalServiceEndpoint_=function(F){return!!_.D(F,_.Q7)};
_.N.serviceEndpointHandler_=function(F){var W=this;return function(E){_.UT(W.hostElement,[F]);E.preventDefault()}};
_.N.overrideAriaLabelChanged_=function(){var F=this.getRoot();this.enableContentEditable&&F&&F.setAttribute("aria-label",this.overrideAriaLabel)};
_.N.enableContentEditableChanged_=function(){var F=this,W=this.buildScopeDomOptions();if(this.enableContentEditable){if(this.hostElement.removeAttribute("dir"),W=_.Z(this.hostElement,W),!W.lastChild||W.lastChild instanceof HTMLElement&&W.lastChild.id!=="contenteditable-root"){var E=document.createElement("div");E.id="contenteditable-root";E.setAttribute("contenteditable","true");E.setAttribute("dir","auto");E.onfocus=function(){F.hostElement.dispatchEvent(new FocusEvent("focus",{bubbles:!1}))};
W.appendChild(E);this.overrideAriaLabel&&E.setAttribute("aria-label",this.overrideAriaLabel)}}else E=_.Fm(this.hostElement).firstChild,E instanceof HTMLElement&&E.id==="contenteditable-root"&&_.Z(this.hostElement,W).removeChild(E)};
_.N.buildScopeDomOptions=function(){if(this.ignoreShadyDom)return{ignoreOwnerDocument:!0}};
_.N.getNodesForVisibilityLogging_=function(){return _.QF(this.getRoot().childNodes,function(F){var W;return!((W=F.data)==null||!W.trackingParams)})};
_.N.getNodes=function(){return this.getNodesForVisibilityLogging_()};
_.N.onShow=function(){if(!this.useIOObserverForVisibilityLogging_){var F=this.ytRendererBehavior.getVisibilityLogger();F&&this.getNodesForVisibilityLogging_().forEach(function(W){F.reportShown(W)})}};
_.N.onHide=function(){if(!this.useIOObserverForVisibilityLogging_){var F=this.ytRendererBehavior.getVisibilityLogger();F&&this.getNodesForVisibilityLogging_().forEach(function(W){F.reportHidden(W)})}};
_.Sn.Object.defineProperties(M4.prototype,{useMixedDirectionFormattedStrings:{configurable:!0,enumerable:!0,get:function(){return this.plaintextOnly?!1:_.c("enable_mixed_direction_formatted_strings")}}});
M4.prototype.enableContentEditableChanged_=M4.prototype.enableContentEditableChanged_;M4.prototype.overrideAriaLabelChanged_=M4.prototype.overrideAriaLabelChanged_;M4.prototype.ellipsisTruncateChanged_=M4.prototype.ellipsisTruncateChanged_;M4.prototype.textChanged=M4.prototype.textChanged;_.T([_.J(hVi.YtPlaintextBehavior),_.Y("design:type",Object)],M4.prototype,"ytPlaintextBehavior",void 0);_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],M4.prototype,"ytComponentBehavior",void 0);
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],M4.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],M4.prototype,"text",void 0);_.T([_.O(),_.Y("design:type",Boolean)],M4.prototype,"noEndpoints",void 0);_.T([_.O(),_.Y("design:type",Boolean)],M4.prototype,"noStyles",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],M4.prototype,"isDarkTheme",void 0);
_.T([_.O({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],M4.prototype,"splitLines",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],M4.prototype,"forceDefaultStyle",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],M4.prototype,"ellipsisTruncate",void 0);_.T([_.O(),_.Y("design:type",Object)],M4.prototype,"ignoreShadyDom",void 0);
_.T([_.O({reflectToAttribute:!0,computed:"computeEllipsisTruncateStyling(ellipsisTruncate, useYtAttributedString)"}),_.Y("design:type",Boolean)],M4.prototype,"ellipsisTruncateStyling",void 0);_.T([_.O({reflectToAttribute:!0,computed:"computeAriaLabel_(text.accessibility.accessibilityData.label)"}),_.Y("design:type",String)],M4.prototype,"ariaLabel",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],M4.prototype,"isEmpty",void 0);
_.T([_.O({reflectToAttribute:!0,computed:"computeHasLinkOnly_(text.runs)"}),_.Y("design:type",Boolean)],M4.prototype,"hasLinkOnly_",void 0);_.T([_.O(),_.Y("design:type",Boolean)],M4.prototype,"hasEmoji",void 0);_.T([_.O(),_.Y("design:type",Boolean)],M4.prototype,"disableAttributedString",void 0);_.T([_.O(),_.Y("design:type",Boolean)],M4.prototype,"isOverlay",void 0);_.T([_.O(),_.Y("design:type",Boolean)],M4.prototype,"linkInheritColor",void 0);
_.T([_.O(),_.Y("design:type",Boolean)],M4.prototype,"noPreWrap",void 0);_.T([_.O(),_.Y("design:type",Boolean)],M4.prototype,"userInput",void 0);_.T([_.O({value:16}),_.Y("design:type",Number)],M4.prototype,"emojiSize",void 0);_.T([_.O(),_.Y("design:type",String)],M4.prototype,"target",void 0);_.T([_.O(),_.Y("design:type",Boolean)],M4.prototype,"enableContentEditable",void 0);_.T([_.O(),_.Y("design:type",String)],M4.prototype,"overrideAriaLabel",void 0);
_.T([_.O(),_.Y("design:type",Boolean)],M4.prototype,"respectHtmlDir",void 0);_.T([_.O(),_.Y("design:type",Boolean)],M4.prototype,"respectLangDir",void 0);_.T([_.a("plaintextOnly"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],M4.prototype,"useMixedDirectionFormattedStrings",null);_.T([_.O({computed:"computeUseAttributedString(text)"}),_.Y("design:type",Boolean)],M4.prototype,"useYtAttributedString",void 0);
_.T([_.ea("text"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],M4.prototype,"textChanged",null);_.T([_.ea("ellipsisTruncate"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],M4.prototype,"ellipsisTruncateChanged_",null);_.T([_.ea("overrideAriaLabel"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],M4.prototype,"overrideAriaLabelChanged_",null);
_.T([_.ea("enableContentEditable"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],M4.prototype,"enableContentEditableChanged_",null);M4=_.T([_.$3({is:"yt-formatted-string",disableElementRegistration:!0})],M4);
_.r(M4,"yt-formatted-string",function(){if(NmT===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-formatted-string--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_formatted_string.yt.formatted.string.css.js--\x3e<yt-attributed-string data="[[text]]" disable="[[!useYtAttributedString]]" disable-upgrade="[[!useYtAttributedString]]" ellipsis-truncate="[[ellipsisTruncate]]" hidden="[[!useYtAttributedString]]" is-overlay="[[isOverlay]]" link-inherit-color="[[linkInheritColor]]" no-pre-wrap="[[!splitLines]]" user-input="[[userInput]]" class="style-scope yt-formatted-string"></yt-attributed-string>');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;d7_===void 0&&(d7_=document.createElement("template"));var h=d7_;E.call(W,h.content.cloneNode(!0),F.content.firstChild);NmT=F}F=NmT;return F});var Vqu;var U7X;var RVX;var eVH;var g5=function(){var F=_.n.apply(this,arguments)||this;F.focused=!1;F.disabled=!1;F.isOverlay=!1;return F};
_.k(g5,_.n);g5.prototype.triggerDown=function(){if(!this.disabled){_.Wm(this.hostElement,"down",!0);var F;(F=this.currentAnimation)==null||F.cancel()}};
g5.prototype.triggerUp=function(){if(!this.disabled){_.Wm(this.hostElement,"down",!1);var F=this.fillElement;var W=this.strokeElement;typeof GroupEffect==="function"?(F=new GroupEffect([eOI(F),MZS(W)]),F=new Animation(F,document.timeline)):F=new oSp(F,W);this.currentAnimation=F;var E;(E=this.currentAnimation)==null||E.play()}};
_.T([_.gQ(".stroke"),_.Y("design:type",HTMLElement)],g5.prototype,"strokeElement",void 0);_.T([_.gQ(".fill"),_.Y("design:type",HTMLElement)],g5.prototype,"fillElement",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],g5.prototype,"focused",void 0);_.T([_.O(),_.Y("design:type",Object)],g5.prototype,"disabled",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],g5.prototype,"isOverlay",void 0);g5=_.T([_.$3({is:"yt-interaction",disableElementRegistration:!0})],g5);
_.r(g5,"yt-interaction",function(){if(eVH===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-interaction--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_interaction.yt.interaction.css.js--\x3e<div class="stroke style-scope yt-interaction"></div><div class="fill style-scope yt-interaction"></div>');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;RVX===void 0&&(RVX=document.createElement("template"));var h=RVX;E.call(W,h.content.cloneNode(!0),F.content.firstChild);eVH=F}F=eVH;return F},{mode:2});var QR=function(){return _.n.apply(this,arguments)||this};
_.k(QR,_.n);_.N=QR.prototype;_.N.ready=function(){var F=this,W=_.Z(this.hostElement).querySelector("#button");W.addEventListener("focus",function(){GdO||(GdO=new oo_);F.keyboardFocused=GdO.isKeyBoardInUse()});
W.addEventListener("blur",function(){F.keyboardFocused=!1;F.rippleUp_()})};
_.N.computeTabIndex_=function(F){return F?-1:0};
_.N.computeButtonAriaPressed_=function(F){if(this.toggleable)return F?"true":"false"};
_.N.rippleDown_=function(){_.Z(this.hostElement).querySelector("#interaction").triggerDown()};
_.N.rippleUp_=function(){_.Z(this.hostElement).querySelector("#interaction").triggerUp()};
_.N.onPressedChanged_=function(){var F=_.Fm(_.Z(this.hostElement).querySelector("#button")).querySelector("yt-icon")||_.Fm(_.Z(this.hostElement).querySelector("#button")).children[0];F&&(F.active=this.pressed)};
QR.prototype.onPressedChanged_=QR.prototype.onPressedChanged_;QR.prototype.rippleUp_=QR.prototype.rippleUp_;QR.prototype.rippleDown_=QR.prototype.rippleDown_;_.T([_.O(),_.Y("design:type",String)],QR.prototype,"label",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],QR.prototype,"disabled",void 0);_.T([_.O(),_.Y("design:type",Boolean)],QR.prototype,"pressed",void 0);_.T([_.O(),_.Y("design:type",Object)],QR.prototype,"toggleable",void 0);
_.T([_.O(),_.Y("design:type",Boolean)],QR.prototype,"untabbable",void 0);_.T([_.O(),_.Y("design:type",Boolean)],QR.prototype,"keyboardFocused",void 0);_.T([_.R4("down"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],QR.prototype,"rippleDown_",null);_.T([_.R4("up"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],QR.prototype,"rippleUp_",null);
_.T([_.ea("pressed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],QR.prototype,"onPressedChanged_",null);QR=_.T([_.$3({is:"yt-icon-button",disableElementRegistration:!0})],QR);
_.r(QR,"yt-icon-button",function(){if(U7X===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-icon-button--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_icon_button.yt.icon.button.css.js--\x3e<button id="button" aria-label$="[[label]]" aria-pressed$="[[computeButtonAriaPressed_(pressed)]]" disabled$="[[disabled]]" tabindex$="[[computeTabIndex_(untabbable)]]" class="style-scope yt-icon-button"><slot class="style-scope yt-icon-button"></slot></button><yt-interaction id="interaction" class="circular style-scope yt-icon-button" focused="[[keyboardFocused]]"></yt-interaction>');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;Vqu===void 0&&(Vqu=document.createElement("template"));var h=Vqu;E.call(W,h.content.cloneNode(!0),F.content.firstChild);U7X=F}F=U7X;return F},{mode:2});var Mqu=_.Fc(["aria-"]),zf={};zf.YtRenderButtonBehavior=[_.K.YtRendererBehavior,_.eB.YtEndpointBehavior,{properties:{alignByText:{type:Boolean,value:!1,reflectToAttribute:!0},iconAlignByText:{type:Boolean,value:!1,reflectToAttribute:!0},disableTextTransform:{type:Boolean,reflectToAttribute:!0},useKeyboardFocused:{type:Boolean,value:function(){return!!_.WZ().resolve(_.Fd(_.$V))&&_.c("kevlar_keyboard_button_focus")},
reflectToAttribute:!0},keyboardFocused:{type:Boolean,value:!1,reflectToAttribute:!0},startJustified:{type:Boolean,value:!1,reflectToAttribute:!0},forceIconButton:{type:Boolean,value:!1},forceIconOnly:{type:Boolean,value:!1},styleActionButton:{type:Boolean,reflectToAttribute:!0},verticallyAligned:{type:Boolean,value:!1,reflectToAttribute:!0},noink:{type:Boolean,value:!1},showTooltips:{type:Boolean,value:!1},buttonRaised:{type:Boolean,value:!1},disabled:{type:Boolean,observer:"disabledChanged_",reflectToAttribute:!0},
sendServiceEndpointWhenDisabled:{type:Boolean,value:!1},sendCommandWhenDisabled:{type:Boolean,value:!1},ellipsisTruncate:Boolean,buttonTooltipPosition:{type:String,value:"bottom"},buttonSize:{type:String,reflectToAttribute:!0},endpoint:{type:Object,readOnly:!0},serviceEndpoint:{type:Object,readOnly:!0},command:{type:Object,readOnly:!0},buttonIcon:{type:String,readOnly:!0,observer:"buttonIconChanged_"},buttonText:{type:Object,readOnly:!0},buttonAccessibility:{type:Object,readOnly:!0},buttonTooltip:{type:String,
readOnly:!0},buttonClass:{type:String,readOnly:!0,observer:"buttonClassChanged_"},iconPositionType:{type:String,readOnly:!0,observer:"iconPositionTypeChanged_"},iconSize:{type:Number},stampType_:{type:String,computed:"computeStampType_(forceIconButton, buttonText, buttonIcon, endpoint)",observer:"stampTypeChanged_"},componentReady_:Boolean},listeners:{focusin:"onFocus_",focusout:"onBlur_",mouseenter:"addTooltips_",tap:"onYtButtonTap_"},observers:["isDisabledChanged_(data.isDisabled)","observeBasicPalette_(data.colorData.basicColorPaletteData)",
"dataChanged_(data, componentReady_)","isSelectedChanged_(data)"],created:function(){this.elements_={};this.hasChange_=!1},
attached:function(){this.hasChange_&&this.stampTypeChanged_(this.stampType_);this.keyboardFocused=!1},
get container(){return this.root},onYtButtonTapHandler:function(){},
ytButtonServiceEndpointHandler:function(){},
updateRenderedElements:function(){if(this.elements_.endpoint){this.elements_.endpoint.data=this.endpoint;var F=this.computeHref_(this.endpoint,!0);F?Lu(this.elements_.endpoint,F):this.elements_.endpoint.removeAttribute("href")}if(this.buttonClass){F=this.buttonClass.split(" ");F=_.U(F);for(var W=F.next();!W.done;W=F.next())W=W.value,_.Wm(this.hostElement,W,!0),this.elements_.button&&_.Wm(this.elements_.button,W,!0),this.elements_.text&&_.Wm(this.elements_.text,W,!0)}this.elements_.icon&&(this.elements_.icon.icon=
this.buttonIcon,this.setIconActive_(this.elements_.icon),this.iconSize&&(this.elements_.icon.size=this.iconSize));this.elements_.text&&(this.elements_.text.text=this.buttonText);this.elements_.button&&(F=null,this.buttonAccessibility&&(F=this.buttonAccessibility.label),this.elements_.button.is=="yt-icon-button"?this.elements_.button.label=F:F?_.j9([_.SJ(Mqu)],this.elements_.button,"aria-label",F):this.elements_.button.removeAttribute("aria-label"))},
dataChanged_:function(){this.updateRenderedElements()},
onFocus_:function(){this.addTooltips_();if(this.useKeyboardFocused){var F=_.WZ().resolve(_.Fd(_.$V));F&&(this.keyboardFocused=F.isKeyBoardInUse())}},
onBlur_:function(){this.keyboardFocused=!1},
addTooltips_:function(){this.elements_.endpoint&&this.showTooltips&&this.buttonTooltip&&(this.elements_.tooltip||(this.elements_.tooltip=this.reuseEnabled_()?_.S8("tp-yt-paper-tooltip"):document.createElement("tp-yt-paper-tooltip"),this.elements_.tooltip.position=this.buttonTooltipPosition,this.elements_.tooltip.offset=8,this.elements_.tooltip.fitToVisibleBounds=!0,_.sg(this.elements_.endpoint).appendChild(this.elements_.tooltip)),_.sg(this.elements_.tooltip).textContent=this.buttonTooltip)},
buttonClassChanged_:function(F,W){if(W)for(F=W.split(" "),F=_.U(F),W=F.next();!W.done;W=F.next())W=W.value,_.Wm(this.hostElement,W,!1),this.elements_.button&&_.Wm(this.elements_.button,W,!1),this.elements_.text&&_.Wm(this.elements_.text,W,!1)},
buttonIconChanged_:function(F){this.elements_.icon?F?(this.elements_.icon.icon=F,this.setIconActive_(this.elements_.icon)):(this.elements_.button&&_.sg(this.elements_.button).removeChild(this.elements_.icon),this.elements_.icon=null,_.EO(this.hostElement,"is-paper-button-with-icon",!1)):F&&this.stampType_&&this.stampType_=="paper_button"&&this.addIconElementToPaperButton_()},
addIconElementToPaperButton_:function(){this.elements_.icon=this.getIcon_();this.setIconActive_(this.elements_.icon);this.elements_.button&&(this.iconPositionType&&this.iconPositionType!="BUTTON_ICON_POSITION_TYPE_LEFT_OF_TEXT"?this.iconPositionType=="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT"&&_.sg(this.elements_.button).appendChild(this.elements_.icon):_.sg(this.elements_.button).insertBefore(this.elements_.icon,this.elements_.text),_.EO(this.hostElement,"is-paper-button-with-icon",!0))},
stampTypeChanged_:function(F){if(this.isAttached===void 0)this.hasChange_=!0;else if(this.hasChange_=!1,this.emptyContainer_(),this.elements_={},this.componentReady_=!1,F){var W=!1;this.elements_.endpoint=document.createElement("a");this.elements_.endpoint.classList.add("yt-simple-endpoint");this.elements_.endpoint.tabIndex=-1;switch(F){case "yt_icon_button_with_label":W=!0;_.Wm(this.hostElement,"force-icon-button",!0);this.elements_.button=this.getYtIconButton_();F=_.sg(this.elements_.button).firstElementChild;
this.elements_.icon=F;this.setIconActive_(this.elements_.icon);this.elements_.text=this.getFormattedString_();this.elements_.text.id="text";this.elements_.text.ellipsisTruncate=this.ellipsisTruncate;_.sg(this.elements_.endpoint).appendChild(this.elements_.button);_.sg(this.elements_.endpoint).appendChild(this.elements_.text);break;case "paper_button":this.elements_.button=this.reuseEnabled_()?_.S8("tp-yt-paper-button"):document.createElement("tp-yt-paper-button");this.elements_.text=this.getFormattedString_();
this.elements_.text.id="text";this.elements_.text.ellipsisTruncate=this.ellipsisTruncate;this.elements_.button.raised=this.buttonRaised;_.sg(this.elements_.button).appendChild(this.elements_.text);_.sg(this.elements_.endpoint).appendChild(this.elements_.button);this.buttonIcon&&this.addIconElementToPaperButton_();break;case "yt-icon-button":W=!0,this.elements_.button=this.getYtIconButton_(),F=_.sg(this.elements_.button).firstElementChild,this.elements_.icon=F,this.setIconActive_(this.elements_.icon),
_.sg(this.elements_.endpoint).appendChild(this.elements_.button)}_.EO(this.hostElement,"is-icon-button",W);_.EO(this.hostElement,"is-paper-button",!W);_.EO(this.hostElement,"has-no-text",!this.elements_.text);this.elements_.button.id="button";this.elements_.button.noink=this.noink;this.elements_.button.disabled=this.disabled;var E;_.Z((E=this.container.hostElement)!=null?E:this.container).appendChild(this.elements_.endpoint);this.componentReady_=!0}},
iconPositionTypeChanged_:function(){this.iconPositionType&&(this.elements_.button&&this.elements_.icon&&_.sg(this.elements_.button).removeChild(this.elements_.icon),this.addIconElementToPaperButton_(),this.elements_.icon.icon=this.buttonIcon)},
isDisabledChanged_:function(F){if(F!=void 0||this.disabled)this.disabled=F,this.elements_.button&&(this.elements_.button.disabled=F)},
isSelectedChanged_:function(){this.setIconActive_(this.elements_.icon)},
setIconActive_:function(F){_.c("kevlar_system_icons")&&F&&this.data&&(this.data.isSelected!==void 0?F.active=this.data.isSelected:this.data.isToggled!==void 0&&(F.active=this.data.isToggled))},
observeBasicPalette_:function(F){_.ZR(this.hostElement,F)},
disabledChanged_:function(F){this.data&&this.set("data.isDisabled",F)},
onYtButtonTap_:function(F){if(this.disabled)F.stopImmediatePropagation(),this.sendServiceEndpointWhenDisabled&&this.serviceEndpoint&&_.UT(this.hostElement,[this.serviceEndpoint]),this.sendCommandWhenDisabled&&this.data&&this.data.command&&this.resolveCommand(this.data.command,{},!0);else if(F=this.disableCommandHandlerOverride,!this.data||!this.data.command||F||!this.resolveCommand(this.data.command,{},!0)){if(this.serviceEndpoint)_.c("handle_service_request_actions")||_.UT(this.hostElement,[this.serviceEndpoint]),
_.hF(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:this.serviceEndpoint});else this.onYtButtonTapHandler();_.c("handle_service_request_actions")?(F=[],this.serviceEndpoint&&F.push(this.serviceEndpoint),this.data&&this.data.command&&this.data.command!=this.serviceEndpoint&&F.push(this.data.command),F.length&&_.Rj(this.hostElement,F,this.hostElement)):this.data&&this.data.command&&(F=this.data.command,F.accountUnlinkCommand||F.accountLinkCommand||F.insertAdCommand||F.insertHighlightMarkerCommand||
F.createLivestreamHighlightClipCommand||F.getVideoUploadFeedbackCommand||F.musicDeletePrivatelyOwnedEntityCommand||F.ypcCancelRecurrenceEndpoint||F.getMultiSelectCommandEndpoint?_.UT(this.hostElement,[F]):_.Rj(this.hostElement,[F],this.hostElement))}},
computeStampType_:function(){return this.forceIconButton&&this.buttonText&&this.buttonIcon?"yt_icon_button_with_label":this.buttonText?"paper_button":this.buttonIcon?"yt-icon-button":null},
emptyContainer_:function(){for(var F,W=_.Z((F=this.container.hostElement)!=null?F:this.container);W.lastChild&&W.lastChild.tagName!="STYLE";)try{W.removeChild(W.lastChild)}catch(E){break}},
getYtIconButton_:function(){var F=this.reuseEnabled_()?_.S8("yt-icon-button"):document.createElement("yt-icon-button"),W=_.sg(F).firstElementChild;if(W&&W.is!="yt-icon"){for(W=_.sg(F);W.lastChild;)W.removeChild(W.lastChild);W=null}W||(W=this.getIcon_(),this.setIconActive_(W),_.sg(F).appendChild(W));return F},
reuseEnabled_:function(){return _.c("enable_button_behavior_reuse")},
getIcon_:function(){return this.reuseEnabled_()?_.S8("yt-icon"):document.createElement("yt-icon")},
getFormattedString_:function(){return this.reuseEnabled_()?_.S8("yt-formatted-string"):document.createElement("yt-formatted-string")}}];_.gqO={};
_.gqO.YtButtonBehavior=[zf.YtRenderButtonBehavior,{properties:{data:Object},observers:["stateChanged_(data)","stateChanged_(data.text)","stateChanged_(data.isDisabled)","stateChanged_(data.style)","stateChanged_(forceIconOnly)"],stateChanged_:function(){var F=this.data;F&&(this._setEndpoint(this.computeEndpoint_(F)),this._setServiceEndpoint(this.computeServiceEndpoint_(F)),this._setCommand(this.computeCommand_(F)),this._setButtonIcon(this.computeButtonIcon_(F)),this._setButtonText(this.computeButtonText_(F,this.forceIconOnly)),
this._setButtonAccessibility(this.computeAccessibility_(F)),this._setButtonTooltip(this.computeTooltip_(F)),this._setButtonClass(this.computeButtonClass_(F)),this._setIconPositionType(this.computeIconPositionType_(F)),this.updateRenderedElements())},
setPressedState:function(F){var W;if((W=this.elements_)==null?0:W.button)this.elements_.button.pressed=!!F},
computeIconPositionType_:function(F){return F&&F.iconPosition||null},
computeEndpoint_:function(F){var W=F&&F.navigationEndpoint,E=this.get("data.command.commandMetadata.webCommandMetadata.url"),h=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return W?W:F&&F.command&&F.command.modalEndpoint?F.command:E&&!h&&F.command?F.command:null},
computeServiceEndpoint_:function(F){var W=F&&F.serviceEndpoint,E=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return W?W:E&&F.command?F.command:null},
computeCommand_:function(F){return F&&F.command||null},
computeButtonIcon_:function(F){return F&&F.icon&&F.icon.iconType?_.Vd(F.icon.iconType):null},
computeButtonText_:function(F,W){return!W&&F&&F.text||null},
computeAccessibility_:function(F){return this.get("accessibilityData.accessibilityData",F)||F&&F.accessibility||(F&&F.text?{label:this.getSimpleString(F.text)}:null)},
computeTooltip_:function(F){return F?F.isDisabled&&F.disabledTooltip||F.tooltip||null:null},
computeButtonClass_:function(F){var W=F&&F.style?F.style.toLowerCase().replace(/_/g,"-")+" ":"";W+=F&&F.size?F.size.toLowerCase().replace(/_/g,"-")+" ":"";F.colorData&&F.colorData.basicColorPaletteData&&F.colorData.basicColorPaletteData.borderColor&&(W+="palette-with-border");return W.trim()}}];var XE={};var Q1e;var zVU;var tqT,CTe=function(){return tqT!==void 0?tqT:tqT=document.createElement("template")};
document.head.appendChild(CTe().content);var BmM;var vqT,I$e=function(){return vqT!==void 0?vqT:vqT=document.createElement("template")};
document.head.appendChild(I$e().content);var cez;var D7U,x7T=function(){return D7U!==void 0?D7U:D7U=document.createElement("template")};
document.head.appendChild(x7T().content);var klz;var AeT=document.head,s1c=AeT.appendChild,LIi;if(klz===void 0){var qxp=document.createElement("template");_.L(qxp,"\x3c!--css-build:shady--\x3e");qxp.content.insertBefore(x7T().content.cloneNode(!0),qxp.content.firstChild);klz=qxp}LIi=klz;s1c.call(AeT,LIi.content);var $7U=document.head,ZR_=$7U.appendChild,Xj_;if(cez===void 0){var HRc=document.createElement("template");_.L(HRc,"\x3c!--css-build:shady--\x3e");HRc.content.insertBefore(I$e().content.cloneNode(!0),HRc.content.firstChild);cez=HRc}Xj_=cez;ZR_.call($7U,Xj_.content);var PT_=document.head,Je_=PT_.appendChild,a$U;if(BmM===void 0){var f$c=document.createElement("template");_.L(f$c,"\x3c!--css-build:shady--\x3e");f$c.content.insertBefore(CTe().content.cloneNode(!0),f$c.content.firstChild);BmM=f$c}a$U=BmM;Je_.call(PT_,a$U.content);var ORH;_.Hr("sharingToggleButtonAndDefaultButton","buttonRenderer","yt-button-renderer");ORH=_.c("web_button_rework")&&_.l0("BUTTON_REWORK")||_.c("web_button_rework_with_live");_.BU=function(){return _.n.apply(this,arguments)||this};
_.k(_.BU,_.n);_.BU.prototype.created=function(){this.openPopupConfig=_.b0("openPopupConfig");this.ytButtonBehavior.showTooltips=!0};
_.BU.prototype.onYtNavigate_=function(F){var W=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(F.detail.endpoint);W&&(this.ytOpenPopupBehavior.openPopup(W),F.stopPropagation(),F.preventDefault())};
_.Sn.Object.defineProperties(_.BU,{template:{configurable:!0,enumerable:!0,get:function(){if(zVU===void 0){var F=document.createElement("template");_.L(F,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_button_renderer.yt.button.renderer.css.js--\x3e");F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);
var W=F.content,E=W.insertBefore;Q1e===void 0&&(Q1e=document.createElement("template"));var h=Q1e;E.call(W,h.content.cloneNode(!0),F.content.firstChild);zVU=F}F=zVU;return F}}});
_.BU.prototype.onYtNavigate_=_.BU.prototype.onYtNavigate_;_.T([_.J(_.R9.YtOpenPopupBehavior),_.Y("design:type",Object)],_.BU.prototype,"ytOpenPopupBehavior",void 0);_.T([_.J(_.gqO.YtButtonBehavior),_.Y("design:type",Object)],_.BU.prototype,"ytButtonBehavior",void 0);_.T([_.R4("yt-navigate"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],_.BU.prototype,"onYtNavigate_",null);
_.BU=_.T([_.$3({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:ORH})],_.BU);var bRe;var l$H=_.c("web_button_rework")&&_.l0("BUTTON_REWORK")||_.c("web_button_rework_with_live"),vU=function(){var F=_.n.apply(this,arguments)||this;F.isPressed=!1;F.forceIconButton=!1;F.forceIconOnly=!1;F.forceModernIconButton=!1;F.skipCommandHandling=!1;F.alignByText=!1;F.fitToVisibleBounds=!0;F.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};F.onTap=function(W){_.hF(F.hostElement,"yt-service-request-sent-button-renderer",W)};
return F};
_.k(vU,_.n);_.N=vU.prototype;_.N.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","");this.hostElement.setAttribute("button-next","")};
_.N.onClick=function(F){var W,E=this.disabled||((W=this.data)==null?void 0:W.isDisabled);W=this.hostElement.hasAttribute("dialog-dismiss")||this.hostElement.hasAttribute("dialog-confirm");E&&W&&F.stopPropagation()};
_.N.computeIcon=function(){var F,W,E=(F=this.data)==null?void 0:(W=F.icon)==null?void 0:W.iconType;if(E)return _.Vd(E)};
_.N.computeTooltip=function(){return this.data?this.data.isDisabled&&this.data.disabledTooltip||this.data.tooltip||null:null};
_.N.handleUpdateButtonAction=function(F){F=_.D(F,XKB);var W=_.D(F==null?void 0:F.updatedButton,_.jt);if(this.data&&F&&W){var E=this.data;E.targetId&&F.targetId&&E.targetId===F.targetId&&(this.data=W)}};
_.Sn.Object.defineProperties(vU.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){var F=this;if(this.data){var W=R$n({renderer:this.data,element:this.hostElement,commandController:{onSuccess:function(){return _.hF(F.hostElement,"yt-service-request-completed-button-renderer")},
onServerError:function(){return _.hF(F.hostElement,"yt-service-request-completed-button-renderer")}},
onTapCallback:this.onTap,skipCommandHandling:this.skipCommandHandling,overrides:this.overrides,forceIcon:this.forceIconButton||this.forceIconOnly,forceDisabled:this.disabled,forceModernIconButton:this.forceModernIconButton,nextVersion:!0,isPressed:this.isPressed});W.alignByText=this.alignByText;return W}}}});
_.Sn.Object.defineProperties(vU,{template:{configurable:!0,enumerable:!0,get:function(){if(bRe===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e<yt-button-shape data="[[computedButtonShape]]" icon-name="[[computeIcon(data)]]"></yt-button-shape><tp-yt-paper-tooltip disable-upgrade$="[[!tooltip]]" fit-to-visible-bounds="[[fitToVisibleBounds]]" offset="8" position="[[buttonTooltipPosition]]">[[tooltip]]</tp-yt-paper-tooltip>');bRe=F}F=bRe;return F}}});
vU.prototype.onClick=vU.prototype.onClick;_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],vU.prototype,"ytComponentBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],vU.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],vU.prototype,"ytActionHandlerBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],vU.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Object)],vU.prototype,"isPressed",void 0);
_.T([_.O(),_.Y("design:type",Object)],vU.prototype,"forceIconButton",void 0);_.T([_.O(),_.Y("design:type",Object)],vU.prototype,"forceIconOnly",void 0);_.T([_.O(),_.Y("design:type",Object)],vU.prototype,"forceModernIconButton",void 0);_.T([_.O(),_.Y("design:type",Object)],vU.prototype,"skipCommandHandling",void 0);_.T([_.O(),_.Y("design:type",Object)],vU.prototype,"alignByText",void 0);_.T([_.O(),_.Y("design:type",Object)],vU.prototype,"buttonTooltipPosition",void 0);
_.T([_.O(),_.Y("design:type",Object)],vU.prototype,"fitToVisibleBounds",void 0);_.T([_.O({computed:"computeTooltip(data)"}),_.Y("design:type",Object)],vU.prototype,"tooltip",void 0);_.T([_.O(),_.Y("design:type",Object)],vU.prototype,"overrides",void 0);_.T([_.O(),_.Y("design:type",Boolean)],vU.prototype,"disabled",void 0);_.T([_.R4("click"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],vU.prototype,"onClick",null);
_.T([_.a("data.*","forceIconButton","forceIconOnly","alignByText","disabled","forceModernIconButton","overrides"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],vU.prototype,"computedButtonShape",null);vU=_.T([_.$3({is:"ytd-button-renderer",noInjection:!0,disableElementRegistration:!l$H,cssBuildOptOut:!0}),_.$3({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:!l$H,cssBuildOptOut:!0})],vU);var nqu;var yea;var I9=function(){var F=_.n.apply(this,arguments)||this;F.empty_=!0;F.loadTime=Infinity;F.pendingPaint=!1;F.hasChange_=!1;F.oldThumbnail_=null;F.oldDelayedSrc_="";F.objectURL_=null;return F};
_.k(I9,_.n);_.N=I9.prototype;_.N.attached=function(){this.hasChange_&&this.thumbnailChanged_()};
_.N.ready=function(){var F=this.shouldShowPlaceholder_();_.Wm(this.hostElement,"no-transition",!0);F&&this.hostElement.classList.add("with-placeholder")};
_.N.isPreloaded=function(){return this.isThumbPreloaded_(this.thumbnail)};
_.N.isThumbPreloaded_=function(F){return!!this.get("webThumbnailDetailsExtensionData.isPreloaded",F)};
_.N.computeSrc_=function(){return this.delayedSrc||this.computeThumbnailSrc_(this.thumbnail)||j1a};
_.N.computeThumbnailSrc_=function(F){return F&&F.thumbnails?_.m_(F.thumbnails,this.dimension==="width"?this.width:this.height,this.preferredThumbnail,this.dimension):null};
_.N.computeAlt_=function(){var F=this.thumbnail&&this.thumbnail.accessibility&&this.thumbnail.accessibility.accessibilityData&&this.thumbnail.accessibility.accessibilityData.label;return this.loaded&&F||""};
_.N.thumbnailChanged_=function(){var F=_.U([this.thumbnail,this.oldThumbnail_]),W=F.next().value;F=F.next().value;this.oldThumbnail_=W;if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;if(this.loaded&&(F=this.computeThumbnailSrc_(F),this.computeThumbnailSrc_(W)===F))return;_.c("kevlar_use_vimio_behavior")&&this.ytRendererBehavior.markDirty();this.isThumbPreloaded_(W)?(this.loadTime=Infinity,this.setSrc_(this.thumbnail.thumbnails[0].url),this.empty_=!1):W&&_.l0("DISABLE_YT_IMG_DELAY_LOADING",
!1)?this.loaded&&!this.empty_?_.wT(this,this.onReload_):_.wT(this,this.onShow_):this.resetImage_();W&&(this.hostElement.style.opacity=""+W.opacity)}};
_.N.delayedSrcChanged_=function(){var F=this.oldDelayedSrc_;this.oldDelayedSrc_=this.delayedSrc;this.loaded&&this.delayedSrc===F||this.resetImage_()};
_.N.setSrc_=function(F){F?(_.Z(this.hostElement).querySelector("#img").src||this.hostElement.classList.remove("empty"),_.Z(this.hostElement).querySelector("#img").src=F):(_.Z(this.hostElement).querySelector("#img").removeAttribute("src"),this.hostElement.classList.add("empty"))};
_.N.resetImage_=function(){tEo(this.hostElement);this.empty_=!0;this.setSrc_(j1a);this.ytRendererBehavior.invalidate(!1)};
_.N.observePlaceholderColor_=function(){var F=this.thumbnail&&this.thumbnail.placeholderColor;F?this.hostElement.style.backgroundColor=_.ZP(F):this.shouldShowPlaceholder_()||(this.hostElement.style.backgroundColor="transparent")};
_.N.onLoad_=function(){_.Z(this.hostElement).querySelector("#img").src&&_.Z(this.hostElement).querySelector("#img").src!==j1a&&(zYr(this.hostElement),this.notifyOnLoaded&&_.hF(this.hostElement,"yt-img-shadow-loaded"),this.objectURL_&&(URL.revokeObjectURL(this.objectURL_),this.objectURL_=null))};
_.N.onError_=function(){var F=this;if(_.c("web_use_cache_for_image_fallback"))xbo(_.Z(this.hostElement).querySelector("#img").src).then(function(W){F.objectURL_=_.cp(W).toString();F.setSrc_(F.objectURL_)}).catch(function(){_.c("kevlar_woffle_fallback_image")&&F.setSrc_("data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")});
else this.onLoad_()};
_.N.onPrescanVisible=function(){this.onShow_()};
_.N.onVisible=function(){if(_.c("yt_img_shadow_trigger_show_on_visible"))this.onShow_()};
_.N.onShow_=function(){if(!this.loaded||this.empty_){this.empty_=!1;var F=this.computeSrc_();F!==_.Z(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(F))}};
_.N.onReload_=function(){this.empty_=!1;var F=this.computeSrc_();F!==_.Z(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(F))};
_.N.shouldShowPlaceholder_=function(){return _.c("kevlar_thumbnail_bg")};
I9.prototype.observePlaceholderColor_=I9.prototype.observePlaceholderColor_;I9.prototype.delayedSrcChanged_=I9.prototype.delayedSrcChanged_;I9.prototype.thumbnailChanged_=I9.prototype.thumbnailChanged_;_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",String)],I9.prototype,"alt",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],I9.prototype,"ariaHidden",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",String)],I9.prototype,"ariaLabel",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],I9.prototype,"hidden",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",String)],I9.prototype,"id",void 0);_.T([_.J(_.ny.YtVisibilityBehavior),_.Y("design:type",Object)],I9.prototype,"ytVisibilityBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],I9.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",String)],I9.prototype,"delayedSrc",void 0);
_.T([_.O(),_.Y("design:type",Object)],I9.prototype,"thumbnail",void 0);_.T([_.O({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],I9.prototype,"loaded",void 0);_.T([_.O(),_.Y("design:type",Boolean)],I9.prototype,"notifyOnLoaded",void 0);_.T([_.O(),_.Y("design:type",Number)],I9.prototype,"height",void 0);_.T([_.O(),_.Y("design:type",Number)],I9.prototype,"width",void 0);_.T([_.O({value:function(){return"width"}}),
_.Y("design:type",String)],I9.prototype,"dimension",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],I9.prototype,"fit",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],I9.prototype,"fitHeight",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],I9.prototype,"fitWidth",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",String)],I9.prototype,"objectFit",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",String)],I9.prototype,"objectPosition",void 0);_.T([_.O(),_.Y("design:type",String)],I9.prototype,"preferredThumbnail",void 0);_.T([_.O({value:"",computed:"computeAlt_(thumbnail.accessibility.accessibilityData.label, loaded)"}),_.Y("design:type",String)],I9.prototype,"alt_",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",String)],I9.prototype,"sharedTooltipText",void 0);
_.T([_.O(),_.Y("design:type",Boolean)],I9.prototype,"ftlEligible",void 0);_.T([_.O({value:void 0}),_.Y("design:type",String)],I9.prototype,"observeHiddenOption",void 0);_.T([_.O({value:"observe_once"}),_.Y("design:type",String)],I9.prototype,"observePrescanOption",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],I9.prototype,"roundedContainer",void 0);
_.T([_.Cz("thumbnail"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],I9.prototype,"thumbnailChanged_",null);_.T([_.Cz("delayedSrc"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],I9.prototype,"delayedSrcChanged_",null);_.T([_.ea("thumbnail.placeholderColor"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],I9.prototype,"observePlaceholderColor_",null);
I9=_.T([_.$3({is:"yt-img-shadow",disableElementRegistration:!0})],I9);var j1a=_.l0("NO_EMPTY_DATA_IMG")?"":"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";
_.We()(I9,"yt-img-shadow",function(){if(yea===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-img-shadow--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_img_shadow.yt.img.shadow.css.js--\x3e<img id="img" rounded-container="[[roundedContainer]]" alt$="[[alt_]]" height="[[height]]" width="[[width]]" on-load="onLoad_" on-error="onError_" draggable="false" class="style-scope yt-img-shadow">');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;nqu===void 0&&(nqu=document.createElement("template"));var h=nqu;E.call(W,h.content.cloneNode(!0),F.content.firstChild);yea=F}F=yea;return F},{callbackProps:["onTap"],
allowedProps:"alt ariaHidden ariaLabel delayedSrc dimension fit fitHeight fitWidth height hidden id loaded notifyOnLoaded objectFit objectPosition preferredThumbnail roundedContainer sharedTooltipText thumbnail width".split(" "),mode:2});var p8Y;_.cU=new _.NG("SCREEN_MANAGER_TOKEN");p8Y=new _.NG("LOG_INITIAL_SCREEN_TOKEN");_.bJ=_.GK(function(F){function W(UY){return _.D(UY,_.fx)}
function E(){var UY=h().isTogglingDisabled||I()?X():!X();P(UY);l(!1);if(!h().isTogglingDisabled){var xW;(xW=R)==null||xW(!!UY)}var qw;((qw=V)==null?0:qw())||_.Bt(_.WZ().resolve(_.cU),h().trackingParams);var Lb;if(!UY||!W(h().defaultButtonViewModel)||(Lb=V)!=null&&Lb()){var jk;!W(h().toggledButtonViewModel)||((jk=V)==null?0:jk())||_.Bt(_.WZ().resolve(_.cU),W(h().toggledButtonViewModel).trackingParams)}else _.Bt(_.WZ().resolve(_.cU),W(h().defaultButtonViewModel).trackingParams)}
var h=F.data,d=F.buttonShapeOverrides,V=F.disableExplicitClickLogging,R=F.onToggle,M=F.style,g=F.useOutlinedIcon,t=F.className,C=function(){var UY,xW;return X()?(UY=F.animatedTextPropsToggled)==null?void 0:UY.call(F):(xW=F.animatedTextPropsDefault)==null?void 0:xW.call(F)},B=_.vX(function(){return C()?Object.assign({},C(),{shouldAnimate:b()}):void 0},void 0,"ZKEa0b"),I=function(){var UY;
return((UY=hr())==null?void 0:UY.isToggled)!==void 0},x=_.U(_.Br(function(){var UY,xW,qw;
return I()?(UY=hr())==null?void 0:UY.isToggled:(qw=d==null?void 0:(xW=d())==null?void 0:xW.toggled)!=null?qw:h().isToggled})),A=x.next().value;
x=x.next().value;var X=A,P=x;x=_.U(_.Br(function(){var UY,xW;return(UY=F.animatedTextPropsToggled)==null?void 0:(xW=UY.call(F))==null?void 0:xW.shouldAnimate}));
A=x.next().value;x=x.next().value;var b=A,l=x;A=_.U(_.g$(!1,void 0,"S11hid"));var w=A.next().value,G=A.next().value,hr=_.Jb(function(UY){var xW;a:{var qw=h().entityKey,Lb=h().toggledStateEntitySelectorType;if(Lb&&qw)switch(Lb){case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_SFV_AUDIO_ITEM":var jk;UY=(jk=_.Mn(UY.entities,"sfvAudioItemCurrentlyPlayingEntity",qw))!=null?jk:void 0;jk=(xW=UY==null?void 0:UY.sfvAudioItemPlaybackState)!=null?xW:void 0;if(jk==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"){xW={isToggled:!0};
break a}if(jk){xW={isToggled:!1};break a}break;default:_.OB(new _.xC("Error: entitySelectorType defined but not matched in selector.",UY,Lb))}xW=void 0}return xW});
A=_.tb(function(){var UY=_.WZ().resolve(_.Fd(_.$V));UY&&G(UY.isKeyBoardInUse());return!1});
x=_.tb(function(){G(!1);return!1});
var p=function(){return Object.assign({},d==null?void 0:d(),{onToggle:E,toggleable:!0,toggled:X(),focused:w()})};
return _.z("toggle-button-view-model",{"on:focusin":A,"on:focusout":x,class:t},_.z(_.v,{cond:function(){return X()?W(h().toggledButtonViewModel):W(h().defaultButtonViewModel)},
then:function(UY){return _.z(_.rk,{data:UY,className:t,style:M,useOutlinedIcon:g,buttonOverrides:p,animatedTextProps:B})}}))},"v");
_.bJ.idomCompat={callbacks:{onToggle:!0}};_.pK(_.GK(function(F){return _.z("yt-toggle-button-view-model",{class:function(){var W;return(W=F.scopingClassName)==null?void 0:W.call(F)}},_.z(_.bJ,{data:function(){var W;
return(W=F.data)==null?void 0:W.call(F)},
buttonShapeOverrides:function(){var W;return(W=F.overrides)==null?void 0:W.call(F)},
animatedTextPropsDefault:function(){var W;return(W=F.animatedTextPropsDefault)==null?void 0:W.call(F)},
animatedTextPropsToggled:function(){var W;return(W=F.animatedTextPropsToggled)==null?void 0:W.call(F)},
disableExplicitClickLogging:function(){var W;return(W=F.disableExplicitClickLogging)==null?void 0:W.call(F)},
onToggle:function(W){var E;return(E=F.onToggle)==null?void 0:E.call(F,W)},
style:function(){var W;return(W=F.style)==null?void 0:W.call(F)},
useOutlinedIcon:function(){var W;return(W=F.useOutlinedIcon)==null?void 0:W.call(F)},
className:function(){var W;return(W=F.className)==null?void 0:W.call(F)}}))},"w"),"yt-toggle-button-view-model",{props:{data:_.TS,
buttonShapeOverrides:_.TS,overrides:_.TS,animatedTextPropsDefault:_.TS,animatedTextPropsToggled:_.TS,disableExplicitClickLogging:_.TS,onToggle:_.Si,style:_.TS,useOutlinedIcon:_.TS,className:_.TS,scopingClassName:_.TS}});var DW=function(){return _.n.apply(this,arguments)||this};
_.k(DW,_.n);DW.prototype.onTap=function(F){F.stopPropagation();F=this.isLiked?"TOOLBAR_LIKE_STATE_INDIFFERENT":"TOOLBAR_LIKE_STATE_LIKED";this.engagementState?this.ytLiveChatReduxBehavior.dispatch(_.lJ("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:F})):this.ytLiveChatReduxBehavior.dispatch(_.AG("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:F}))};
_.Sn.Object.defineProperties(DW.prototype,{isLiked:{configurable:!0,enumerable:!0,get:function(){var F;return((F=this.engagementState)==null?void 0:F.likeState)==="TOOLBAR_LIKE_STATE_LIKED"}},
toggleButton:{configurable:!0,enumerable:!0,get:function(){if(this.data){var F=_.D(this.data.toggleButton,_.O8),W;if(Number(((W=this.likeCountState)==null?void 0:W.likeCountIfIndifferentNumber)||"0")===0){var E;W=((E=this.data.likeCountPlaceholder)==null?void 0:E.content)||""}else{var h,d,V;W=((h=this.likeCountState)==null?void 0:(d=h.likeCountIfIndifferent)==null?void 0:d.content)||((V=this.data.likeCountPlaceholder)==null?void 0:V.content)||""}var R,M;E=((R=this.likeCountState)==null?void 0:(M=
R.likeCountIfLiked)==null?void 0:M.content)||"1";R=_.D(F.toggledButtonViewModel,_.fx);return Object.assign({},F,{isToggled:this.isLiked,defaultButtonViewModel:{buttonViewModel:Object.assign({},_.D(F.defaultButtonViewModel,_.fx),{title:W})},toggledButtonViewModel:{buttonViewModel:Object.assign({},R,{title:E})}})}}}});
DW.prototype.onTap=DW.prototype.onTap;_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],DW.prototype,"ytComponentBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],DW.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.av),_.Y("design:type",Object)],DW.prototype,"ytLiveChatReduxBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],DW.prototype,"data",void 0);
_.T([_.O({selectorArgs:["data.likeCountEntityKey"],selector:e$o}),_.Y("design:type",Object)],DW.prototype,"likeCountState",void 0);_.T([_.O({selectorArgs:["data.engagementStateKey"],selector:lcI}),_.Y("design:type",Object)],DW.prototype,"engagementState",void 0);_.T([_.a("data","engagementState"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],DW.prototype,"isLiked",null);
_.T([_.a("data","likeCountState","isLiked"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],DW.prototype,"toggleButton",null);_.T([_.R4("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],DW.prototype,"onTap",null);DW=_.T([_.$3({disableElementRegistration:!0,is:"yt-live-chat-like-button-view-model",noInjection:!0})],DW);
_.r(DW,"yt-live-chat-like-button-view-model",function(){if(Eqp===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-like-button-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_live_chat_like_button_view_model.yt.live.chat.like.button.view.model.css.js--\x3e<yt-toggle-button-view-model data="[[toggleButton]]" scoping-class-name="[[is]]" class="style-scope yt-live-chat-like-button-view-model">\n</yt-toggle-button-view-model>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;WIu===void 0&&(WIu=document.createElement("template"));var h=WIu;E.call(W,h.content.cloneNode(!0),F.content.firstChild);Eqp=F}F=Eqp;return F},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var iRO;var reX;var xg=function(){return _.n.apply(this,arguments)||this};
_.k(xg,_.n);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],xg.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],xg.prototype,"data",void 0);xg=_.T([_.$3({disableElementRegistration:!0,is:"yt-live-chat-paid-message-footer-renderer",isInjectionRoot:!0})],xg);
_.r(xg,"yt-live-chat-paid-message-footer-renderer",function(){if(reX===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-paid-message-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_live_chat_paid_message_footer_renderer.yt.live.chat.paid.message.footer.renderer.css.js--\x3e<div id="container" class="style-scope yt-live-chat-paid-message-footer-renderer">\n  <div id="icon" hidden$="[[!data.icon]]" class="style-scope yt-live-chat-paid-message-footer-renderer">\n    <yt-icon icon="[[data.icon.iconType]]" class="style-scope yt-live-chat-paid-message-footer-renderer"></yt-icon>\n  </div>\n  <div id="text" class="style-scope yt-live-chat-paid-message-footer-renderer">\n    <yt-formatted-string text="[[data.text]]" class="style-scope yt-live-chat-paid-message-footer-renderer"></yt-formatted-string>\n  </div>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;iRO===void 0&&(iRO=document.createElement("template"));var h=iRO;E.call(W,h.content.cloneNode(!0),F.content.firstChild);reX=F}F=reX;return F},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var Tmc;var oq_;var GlT;var Yxc,wju=function(){if(Yxc!==void 0)return Yxc;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-reply-button-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_live_chat_reply_button_view_model.yt.live.chat.reply.button.view.model.css.js--\x3e<yt-button-view-model data="[[buttonViewModel]]" scoping-class-name="[[is]]" class="style-scope yt-live-chat-reply-button-view-model">\n</yt-button-view-model>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);var W=F.content,E=W.insertBefore;GlT===void 0&&(GlT=document.createElement("template"));var h=GlT;E.call(W,h.content.cloneNode(!0),F.content.firstChild);return Yxc=F};var kg=function(){return _.n.apply(this,arguments)||this};
_.k(kg,_.n);kg.prototype.onTap=function(F){F.stopPropagation()};
_.Sn.Object.defineProperties(kg.prototype,{buttonViewModel:{configurable:!0,enumerable:!0,get:function(){if(this.data){var F=_.D(this.data.replyButton,_.fx),W,E,h,d,V,R,M,g=Number(((W=this.replyCountState)==null?void 0:W.replyCountNumber)||"0")===0?(E=this.data)==null?void 0:(h=E.replyCountPlaceholder)==null?void 0:h.content:((d=this.replyCountState)==null?void 0:(V=d.replyCount)==null?void 0:V.content)||((R=this.data)==null?void 0:(M=R.replyCountPlaceholder)==null?void 0:M.content)||"",t;return Object.assign({},
F,{title:g,accessibilityText:(t=this.replyCountState)==null?void 0:t.replyButtonAccessibilityText})}}}});
_.Sn.Object.defineProperties(kg,{template:{configurable:!0,enumerable:!0,get:function(){return wju()}}});
kg.prototype.onTap=kg.prototype.onTap;_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],kg.prototype,"ytComponentBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],kg.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.av),_.Y("design:type",Object)],kg.prototype,"ytLiveChatReduxBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],kg.prototype,"data",void 0);
_.T([_.O({selectorArgs:["data.replyCountEntityKey"],selector:function(F,W){return _.Mn(F.entities,"replyCountEntity",W)}}),
_.Y("design:type",Object)],kg.prototype,"replyCountState",void 0);_.T([_.a("data","replyCountState"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],kg.prototype,"buttonViewModel",null);_.T([_.R4("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],kg.prototype,"onTap",null);kg=_.T([_.$3({disableElementRegistration:!0,is:"yt-live-chat-reply-button-view-model",noInjection:!0})],kg);
_.r(kg,"yt-live-chat-reply-button-view-model",function(){return wju()},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var u5T;var SxU;var Aq=function(){var F=_.n.apply(this,arguments)||this;F.ariaLabel="";return F};
_.k(Aq,_.n);
Aq.prototype.dataChanged=function(){for(var F=(0,_.N3)(_.Z(this.hostElement).querySelector("#image"));F.firstChild;)F.removeChild(F.firstChild);if(this.data)if(this.data.icon){var W=document.createElement("yt-icon");this.data.icon.iconType==="MODERATOR"&&this.enableNewModeratorBadge?(W.polymerController.icon="yt-sys-icons:shield-filled",W.polymerController.defaultToFilled=!0):W.polymerController.icon="live-chat-badges:"+this.data.icon.iconType.toLowerCase();F.appendChild(W)}else if(this.data.customThumbnail){W=document.createElement("img");
var E=_.VEW(this.data.customThumbnail.thumbnails,16);E?(W.src=E,F.appendChild(W),W.setAttribute("alt",this.hostElement.ariaLabel||"")):_.OB(new _.xC("Could not compute URL for thumbnail",this.data.customThumbnail))}};
Aq.prototype.identity=function(F){return F};
Aq.prototype.computeType=function(F){return hm(F||void 0)};
Aq.prototype.dataChanged=Aq.prototype.dataChanged;_.T([_.O(),_.Y("design:type",Object)],Aq.prototype,"data",void 0);_.T([_.O({computed:"identity(data.accessibility.accessibilityData.label)",reflectToAttribute:!0}),_.Y("design:type",Object)],Aq.prototype,"ariaLabel",void 0);_.T([_.O({computed:"computeType(data)",reflectToAttribute:!0}),_.Y("design:type",String)],Aq.prototype,"type",void 0);
_.T([_.O({computed:"identity(data.tooltip)",reflectToAttribute:!0}),_.Y("design:type",String)],Aq.prototype,"sharedTooltipText",void 0);_.T([_.O({reflectToAttribute:!0,value:function(){return _.c("live_chat_enable_new_moderator_badge")}}),
_.Y("design:type",Boolean)],Aq.prototype,"enableNewModeratorBadge",void 0);_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Aq.prototype,"dataChanged",null);Aq=_.T([_.$3({disableElementRegistration:!0,is:"yt-live-chat-author-badge-renderer",noInjection:!0})],Aq);
_.r(Aq,"yt-live-chat-author-badge-renderer",function(){if(SxU===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-author-badge-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_author_badge_renderer.yt.live.chat.author.badge.renderer.css.js--\x3e<div id="image" class="style-scope yt-live-chat-author-badge-renderer"></div>');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;u5T===void 0&&(u5T=document.createElement("template"));var h=u5T;E.call(W,h.content.cloneNode(!0),F.content.firstChild);SxU=F}F=SxU;return F},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var pjO;var m7i;var sz=function(){return _.n.apply(this,arguments)||this};
_.k(sz,_.n);_.N=sz.prototype;_.N.configureRendererStamper=function(){return{badgesBeforeChip:{id:"prepend-chat-badges",mapping:{liveChatAuthorBadgeRenderer:{component:"yt-live-chat-author-badge-renderer"}}},badgesOutsideChip:{id:"chat-badges",mapping:{liveChatAuthorBadgeRenderer:{component:"yt-live-chat-author-badge-renderer"}}},badgesInsideChip:{id:"chip-badges",mapping:{liveChatAuthorBadgeRenderer:{component:"yt-live-chat-author-badge-renderer"}}}}};
_.N.computeBadgesInsideChip=function(F){return F?F.filter(function(W){return hm(W.liveChatAuthorBadgeRenderer)==="verified"}):[]};
_.N.computeBadgesOutsideChip=function(F){return this.prependChatBadges||!F?[]:F.filter(function(W){W=hm(W.liveChatAuthorBadgeRenderer);return W!=="verified"&&W!=="owner"})};
_.N.computeBadgesBeforeChip=function(F){return this.prependChatBadges&&F?F.filter(function(W){W=hm(W.liveChatAuthorBadgeRenderer);return W!=="verified"&&W!=="owner"}):[]};
_.N.computeIsHighlighted=function(F,W){var E=!!D5k(F,"owner"),h=!!D5k(F,"verified");F=!!D5k(F,"moderator");return(E||h&&!F)&&!W};
_.N.computeAuthorType=function(F){return cik(F)};
_.N.computeAuthorClass=function(F,W){return W?(F?F+" ":"")+"single-line":F};
_.N.onSeedColorChanged=function(){_.c("live_chat_author_name_color_usernames")||_.c("live_chat_seed_color_usernames")||_.c("live_chat_colored_usernames")?!this.authorNameColor||this.authorType||this.isHighlighted||this.hostElement.classList.contains("yt-live-chat-paid-message-renderer")||this.hostElement.classList.contains("yt-live-chat-paid-sticker-renderer")||(this.username.style.color=this.authorNameColor):_.c("live_chat_simple_color_usernames")&&this.authorNameColor&&(this.username.style.color=
this.authorNameColor)};
sz.prototype.onSeedColorChanged=sz.prototype.onSeedColorChanged;_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],sz.prototype,"ytComponentBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],sz.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],sz.prototype,"authorName",void 0);_.T([_.O(),_.Y("design:type",Array)],sz.prototype,"authorBadges",void 0);
_.T([_.O({computed:"computeAuthorType(authorBadges)"}),_.Y("design:type",String)],sz.prototype,"authorType",void 0);_.T([_.O({computed:"computeAuthorClass(authorType, singleLine)"}),_.Y("design:type",String)],sz.prototype,"authorClass",void 0);_.T([_.O({computed:"computeBadgesInsideChip(authorBadges)"}),_.Y("design:type",Array)],sz.prototype,"badgesInsideChip",void 0);_.T([_.O({computed:"computeBadgesOutsideChip(authorBadges)"}),_.Y("design:type",Array)],sz.prototype,"badgesOutsideChip",void 0);
_.T([_.O({computed:"computeBadgesBeforeChip(authorBadges)"}),_.Y("design:type",Array)],sz.prototype,"badgesBeforeChip",void 0);_.T([_.O({computed:"computeIsHighlighted(authorBadges, disableHighlighting)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],sz.prototype,"isHighlighted",void 0);_.T([_.O({value:!1}),_.Y("design:type",Boolean)],sz.prototype,"singleLine",void 0);_.T([_.O({value:!1}),_.Y("design:type",Boolean)],sz.prototype,"disableHighlighting",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],sz.prototype,"dashboardMoneyFeed",void 0);_.T([_.O({value:_.c("live_chat_prepend_badges"),reflectToAttribute:!0}),_.Y("design:type",Boolean)],sz.prototype,"prependChatBadges",void 0);_.T([_.O(),_.Y("design:type",String)],sz.prototype,"authorNameColor",void 0);_.T([_.gQ("#author-name"),_.Y("design:type",HTMLDivElement)],sz.prototype,"username",void 0);
_.T([_.ea("authorNameColor"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],sz.prototype,"onSeedColorChanged",null);sz=_.T([_.$3({disableElementRegistration:!0,is:"yt-live-chat-author-chip",noInjection:!0})],sz);
_.r(sz,"yt-live-chat-author-chip",function(){if(m7i===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-author-chip--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_author_chip.yt.live.chat.author.chip.css.js--\x3e<span id="prepend-chat-badges" class="style-scope yt-live-chat-author-chip"></span><span id="author-name" dir="auto" class$="[[authorClass]] style-scope yt-live-chat-author-chip">[[getSimpleString(authorName)]]<span id="chip-badges" class="style-scope yt-live-chat-author-chip"></span></span><span id="chat-badges" class="style-scope yt-live-chat-author-chip"></span>');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;pjO===void 0&&(pjO=document.createElement("template"));var h=pjO;E.call(W,h.content.cloneNode(!0),F.content.firstChild);m7i=F}F=m7i;return F},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var KI_;var FUM;var L7=function(){var F=_.n.apply(this,arguments)||this;F.debounceCommand=_.qS(function(W){F.ytComponentBehavior.resolveCommand(W)},1500);
return F};
_.k(L7,_.n);L7.prototype.onTap=function(){if(this.engagementState&&this.engagementState.key&&this.isEditable){var F=this.isHearted?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE",W,E,h=this.isHearted?(W=this.data)==null?void 0:W.unheartCommand:(E=this.data)==null?void 0:E.heartCommand;this.ytLiveChatReduxBehavior.dispatch(_.lJ("engagementToolbarStateEntityPayload",this.engagementState.key,{heartState:F}));(F=_.He(h))&&this.debounceCommand(F)}};
_.Sn.Object.defineProperties(L7.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var F,W;if(!((F=this.data)==null?0:(W=F.creatorThumbnail)==null?0:W.sources))return{};F={thumbnails:[]};W={};W.url=this.data.creatorThumbnail.sources[0].url;F.thumbnails.push(W);return F}},
isHearted:{configurable:!0,enumerable:!0,get:function(){var F,W;return((F=this.engagementState)==null?void 0:F.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((W=this.engagementState)==null?void 0:W.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
isEditable:{configurable:!0,enumerable:!0,get:function(){var F,W;return((F=this.engagementState)==null?void 0:F.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((W=this.engagementState)==null?void 0:W.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
showCreatorView:{configurable:!0,enumerable:!0,get:function(){var F;return((F=this.engagementState)==null?void 0:F.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"}},
showButton:{configurable:!0,enumerable:!0,get:function(){var F,W,E;return((F=this.engagementState)==null?void 0:F.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((W=this.engagementState)==null?void 0:W.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||((E=this.engagementState)==null?void 0:E.heartState)==="TOOLBAR_HEART_STATE_HEARTED"}},
label:{configurable:!0,enumerable:!0,get:function(){return this.data?(this.isHearted?this.data.heartedAccessibilityLabel:this.data.unheartedAccessibilityLabel)||"":""}},
heartHoverText:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.isHearted?this.data.heartedHoverText:this.data.unheartedHoverText}}});
L7.prototype.onTap=L7.prototype.onTap;_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],L7.prototype,"ytComponentBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],L7.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.av),_.Y("design:type",Object)],L7.prototype,"ytLiveChatReduxBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],L7.prototype,"data",void 0);
_.T([_.O({selectorArgs:["data.engagementStateKey"],selector:lcI}),_.Y("design:type",Object)],L7.prototype,"engagementState",void 0);_.T([_.a("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],L7.prototype,"thumbnailDetails",null);_.T([_.a("data","engagementState"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],L7.prototype,"isHearted",null);_.T([_.a("data","engagementState"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],L7.prototype,"isEditable",null);
_.T([_.a("data","engagementState"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],L7.prototype,"showCreatorView",null);_.T([_.a("data","engagementState"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],L7.prototype,"showButton",null);_.T([_.a("data","isHearted"),_.Y("design:type",String),_.Y("design:paramtypes",[])],L7.prototype,"label",null);_.T([_.a("data","isHearted"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],L7.prototype,"heartHoverText",null);
_.T([_.R4("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],L7.prototype,"onTap",null);L7=_.T([_.$3({disableElementRegistration:!0,is:"yt-live-chat-creator-heart-view-model"})],L7);
_.r(L7,"yt-live-chat-creator-heart-view-model",function(){if(FUM===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-creator-heart-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_creator_heart_view_model.yt.live.chat.creator.heart.view.model.css.js--\x3e<yt-icon-button id="creator-heart-button" hidden="[[!showButton]]" label="[[label]]" title="[[heartHoverText]]" class="style-scope yt-live-chat-creator-heart-view-model">\n  <template is="dom-if" if="[[showCreatorView]]" class="style-scope yt-live-chat-creator-heart-view-model">\n    <yt-image id="unhearted" data="[[data.unheartedIcon]]" height="24" class="style-scope yt-live-chat-creator-heart-view-model"></yt-image>\n  </template>\n  <template is="dom-if" if="[[isHearted]]" class="style-scope yt-live-chat-creator-heart-view-model">\n    <yt-img-shadow id="creator-thumbnail" thumbnail="[[thumbnailDetails]]" class="style-scope yt-live-chat-creator-heart-view-model"></yt-img-shadow>\n    <yt-image id="hearted-border" data="[[data.heartedIcon]]" height="16" preserve-height="true" width="16" class="style-scope yt-live-chat-creator-heart-view-model"></yt-image>\n    <yt-image id="hearted" data="[[data.heartedIcon]]" height="14" preserve-height="true" width="14" class="style-scope yt-live-chat-creator-heart-view-model"></yt-image>\n  </template>\n</yt-icon-button>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;KI_===void 0&&(KI_=document.createElement("template"));var h=KI_;E.call(W,h.content.cloneNode(!0),F.content.firstChild);FUM=F}F=FUM;return F},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var q4=function(F,W){this.serviceId=new npB(F,W)};
q4.prototype.toString=function(){return this.serviceId.toString()};var WUO=function(){this.internalMap={}};
_.N=WUO.prototype;_.N.contains=function(F){return Object.prototype.hasOwnProperty.call(this.internalMap,F)};
_.N.get=function(F){if(this.contains(F))return this.internalMap[F]};
_.N.set=function(F,W){this.internalMap[F]=W};
_.N.getKeys=function(){return Object.keys(this.internalMap)};
_.N.remove=function(F){delete this.internalMap[F]};var $g=function(){this.mappings=new WUO;this.errorCallbacks=new Set};
$g.prototype.getModuleId=function(F){return F.serviceId.getModuleId()};
$g.prototype.get=function(F){var W=this.mappings.get(F.toString());return EDM(this,W,F)};
$g.prototype.getMultipleAsync=function(){var F=_.Dd.apply(0,arguments),W=this,E=F.map(function(g){return W.getModuleId(g)}),h=F.map(function(g){return W.mappings.get(g.toString())}).filter(function(g){return g});
if(h.length===F.length)return _.e7(h.map(function(g,t){return EDM(W,g,F[t])}));
var d=Zq().loadMultiple(E);h=_.X8(E.map(function(g){return d[g]}));
var V=document.hidden,R=-1,M=_.dV("get_async_timeout_ms",-1);M>-1&&(R=setTimeout(function(){_.OB(new _.xC("Module timeout.",E,V,document.hidden))},M));
return _.HI(h.then(function(){return F.map(function(g){return EDM(W,W.mappings.get(g.toString()),g)})}).thenCatch(function(g){for(var t=_.U(W.errorCallbacks),C=t.next();!C.done;C=t.next())C=C.value,C(g);
throw g;}),function(){clearTimeout(R)})};
$g.prototype.registerService=function(F,W){this.mappings.set(F.toString(),{type:"mapping",value:W});return F};
var EDM=function(F,W,E){switch(W.type){case "mapping":return W.value;case "factory":return W=W.value(),F.mappings.set(E.toString(),{type:"mapping",value:W}),W;default:return _.RO(W)}};
$g.prototype.onLoadError=function(F){var W=this;this.errorCallbacks.add(F);return function(){W.errorCallbacks.delete(F)}};
_.ZW=new $g;var hYO=function(){};
_.N=hYO.prototype;
_.N.JSC$11812_getRequest=function(F,W,E){W=W===void 0?{}:W;E=E===void 0?iM_:E;var h=W;if(this.isNavigationCommand()){var d,V=(d=_.D(F==null?void 0:F.commandMetadata,_.m1))==null?void 0:d.url;h=_.smo(F.clickTrackingParams,!0,!1,V,this.JSC$11812_getClientScreen(h))}else h=_.smo(F.clickTrackingParams,!1,this.includeCsn);h={context:h};if(d=this.getExtension(F))return this.JSC$11812_buildRequest(h,d,W),d=this.getApiUrl(F),V=Object.assign({},{command:F},this.getRequestConfig(F,W)),h={input:d,requestShell:TM(d),
innerTubeRequest:h,config:V},h.config.authStrategy?h.config.authStrategy.identity=E:h.config.authStrategy={identity:E},(F=this.JSC$11812_getRequestKey(F,W))&&!h.config.requestKey&&(h.config.requestKey=F),h;F=new _.xC("Error: Failed to create Request from Command.",F);_.a_(F)};
_.N.getApiUrl=function(F){var W=_.SF(this.getApiPaths(F)),E;(F=(E=_.D(F.commandMetadata,_.m1))==null?void 0:E.apiUrl)&&(W=F);return FTb(Kxk(W))};
_.N.isNavigationCommand=function(){return!1};
_.N.JSC$11812_getClientScreen=function(){};
_.N.JSC$11812_getRequestKey=function(){};
_.N.getRequestConfig=function(){};
_.Sn.Object.defineProperties(hYO.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!1}}});
var XM=function(){};
_.k(XM,hYO);XM.prototype.JSC$11819_getStoreKey=function(){};
XM.prototype.JSC$11812_getRequestKey=function(F,W){W=W===void 0?{}:W;return this.JSC$11819_getStoreKey(F,W)};var HU=function(){};
_.k(HU,XM);HU.prototype.JSC$11812_getRequest=function(){return{input:"/getDatasyncIdsEndpoint",requestShell:TM("/getDatasyncIdsEndpoint","GET"),innerTubeRequest:{}}};
HU.prototype.getApiPaths=function(){return[]};
HU.prototype.getExtension=function(){};
HU.prototype.JSC$11812_buildRequest=function(){};var dbX={},NEc=(dbX.GET_DATASYNC_IDS=Od(HU),dbX);var VEB,UbX,RYe,d_u,PU,gD_,M6H,MEe,eYU;VEB="tokens consistency mss client_location entities adblock_detection response_received_commands store PLAYER_PRELOAD shorts_prefetch".split(" ");UbX=["type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.BrowseResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PlayerResponse"];
_.iz=function(F,W,E,h,d,V,R,M,g){this.endpointMap=F;this.networkManager=W;this.authService=E;this.responseProcessorMap=h;this.innertubeResponseStore=d;this.contextProcessors=V;this.asyncContextProcessors=R;this.localInnertubeRouter=M;this.requestSequencer=g;this.inflightRequests=new Map;F.signalEndpointMap||(F.signalEndpointMap={});F.signalEndpointMap=Object.assign({},NEc,F.signalEndpointMap)};
RYe=function(F,W,E,h,d,V,R,M,g){if(_.iz.instance!==void 0){if(h=_.iz.instance,F=[F!==h.endpointMap,W!==h.networkManager,E!==h.authService,d!==h.innertubeResponseStore,V!==h.contextProcessors,R!==h.asyncContextProcessors,M!==h.localInnertubeRouter],F.some(function(t){return t}))throw new _.xC("InnerTubeTransportService is already initialized",F);
}else _.iz.instance=new _.iz(F,W,E,h,d,V,R,M,g)};
_.T_=function(F,W,E){var h=h===void 0?iM_:h;var d=M6H(F,W);return d?new _.z5(function(V,R){var M,g,t,C,B;return _.e(function(I){switch(I.nextAddress){case 1:return _.Q(I,d,2);case 2:M=I.yieldResult;g=M.JSC$11812_getRequest(W,E,h);if(!g){R(new _.xC("Error: Failed to build request for command.",W));I.jumpTo(0);break}Jg(g.input);C=((t=g.requestShell)==null?void 0:t.mode)==="cors"?"cors":void 0;if(F.authService.syncHeaders){B=eYU(g.config,C);I.jumpTo(4);break}return _.Q(I,MEe(g.config,C),5);case 5:B=
I.yieldResult;case 4:V(gD_(F,g,B)),_.gG(I)}})}):_.xT(new _.xC("Error: No request builder found for command.",W))};
d_u=function(F,W,E,h){var d=d===void 0?iM_:d;var V,R,M,g,t,C,B,I,x,A,X,P,b,l,w,G,hr,p;return _.e(function(UY){switch(UY.nextAddress){case 1:V=QQr(W,F.endpointMap);if(!V)throw new _.xC("Error: No streaming request builder found for command",W);R=V.JSC$11812_getRequest(W,E,d);if(!R)throw new _.xC("Failed to build YtRequest for streaming Command",W);if((M=F.localInnertubeRouter)==null||!M.shouldPreferLocalResponse(R.input,R.innerTubeRequest)){UY.jumpTo(2);break}return _.Q(UY,F.localInnertubeRouter.localInnertubeResponse(R.input,
R.innerTubeRequest),3);case 3:return g=UY.yieldResult,t={},g.playerResponse&&(PU(F,g.playerResponse,R),t.player=g.playerResponse,(C=h)==null||C(t,g)),g.watchNextResponse&&(PU(F,g.watchNextResponse,R),t.content=g.watchNextResponse,(B=h)==null||B(t,g)),UY.return(t);case 2:x=((I=R.requestShell)==null?void 0:I.mode)==="cors"?"cors":void 0;if(F.authService.syncHeaders){A=eYU(R.config,x);UY.jumpTo(4);break}return _.Q(UY,MEe(R.config,x),5);case 5:A=UY.yieldResult;case 4:return b=(P=(X=R.requestShell)==null?
void 0:X.headers)!=null?P:{},R.requestShell=Object.assign({},R.requestShell,{headers:Object.assign({},b,A)}),l=Object.assign({},R.requestShell),w=JSON.stringify(R.innerTubeRequest),R.requestShell.method==="POST"&&(l=Object.assign({},l,{body:w})),G=function(xW,qw){PU(F,qw.playerResponse||qw.watchNextResponse||qw.reelItemWatchResponse||qw.reelWatchSequenceResponse,R);h==null||h(xW,qw)},hr={},_.Q(UY,Qcz(F.networkManager,R.input,l,G),6);
case 6:return hr=UY.yieldResult,((p=R.config)==null?0:p.responseTick)&&_.P5(R.config.responseTick),UY.return(hr)}})};
_.no=function(F,W,E,h,d){d=d===void 0?{authStrategy:{identity:iM_}}:d;var V=V===void 0?!0:V;var R=function(){};
R=zHr(gZI(E));W.context||(W.context=_.smo(h,V));return new _.z5(function(M){var g,t,C,B,I;return _.e(function(x){if(x.nextAddress==1)return g=Kxk(E),t=_.r8(g),F.authService.syncHeaders?(C=eYU(d,t),x.jumpTo(2)):_.Q(x,MEe(d,t),3);x.nextAddress!=2&&(C=x.yieldResult);B=FTb(Kxk(E));I={input:B,requestShell:TM(B),innerTubeRequest:W,config:d};M(gD_(F,I,C,R));_.gG(x)})})};
PU=function(F,W,E){var h;if(W&&!(W==null?0:(h=W.sequenceMetaData)==null?0:h.skipProcessing)&&F.responseProcessorMap){h=_.U(VEB);for(var d=h.next();!d.done;d=h.next())d=d.value,F.responseProcessorMap[d]&&F.responseProcessorMap[d].handleResponse(W,E)}};
gD_=function(F,W,E,h){h=h===void 0?function(){}:h;
var d,V,R,M,g,t,C,B,I,x,A,X,P,b,l,w,G,hr,p,UY,xW,qw,Lb,jk,Jr,nb,bo,uo,b_,BO,dc,VM,Z_,MU,Ef,kR,Rn,se,l_,j$;return _.e(function(HO){switch(HO.nextAddress){case 1:R=(d=W.config)==null?void 0:(V=d.storeStrategy)==null?void 0:V.storeKey;if(!(R&&F.innertubeResponseStore&&F.innertubeResponseStore.has(R))||((M=W.config)==null?0:(g=M.storeStrategy)==null?0:g.disableCache)){HO.jumpTo(2);break}return _.Q(HO,F.innertubeResponseStore.get(R),3);case 3:if((t=HO.yieldResult)&&!t.isExpired())return HO.return(Promise.resolve(_.Ck(t)));
case 2:if(!((C=W)==null?0:(B=C.innerTubeRequest)==null?0:B.context)){HO.jumpTo(4);break}I=W.innerTubeRequest.context;if(!(F.asyncContextProcessors&&F.asyncContextProcessors.length>0)){HO.jumpTo(5);break}x=[];A=_.U(F.asyncContextProcessors);for(X=A.next();!X.done;X=A.next())P=X.value,b=P.processContext(W),b.wrappedPromise_&&x.push(b.wrappedPromise_);if(!(x.length>0)){HO.jumpTo(5);break}return _.Q(HO,Promise.all(x),5);case 5:l=_.U(F.contextProcessors||[]),w=l.next();case 8:if(w.done){HO.jumpTo(4);break}G=
w.value;return _.Q(HO,G.processContext(I),9);case 9:w=l.next();HO.jumpTo(8);break;case 4:if((hr=F.localInnertubeRouter)==null||!hr.shouldPreferLocalResponse(W.input,W.innerTubeRequest)){HO.jumpTo(12);break}return _.Q(HO,F.localInnertubeRouter.localInnertubeResponse(W.input,W.innerTubeRequest),13);case 13:return p=HO.yieldResult,PU(F,p,W),HO.return(p);case 12:return(qw=(xW=W.config)==null?void 0:xW.requestKey)&&F.inflightRequests.has(qw)?UY=F.inflightRequests.get(qw):(Lb=JSON.stringify(W.innerTubeRequest),
nb=(Jr=(jk=W.requestShell)==null?void 0:jk.headers)!=null?Jr:{},W.requestShell=Object.assign({},W.requestShell,{headers:Object.assign({},nb,E)}),bo=Object.assign({},W.requestShell),W.requestShell.method==="POST"&&(bo=Object.assign({},bo,{body:Lb})),((uo=W.config)==null?0:uo.requestTick)&&_.P5(W.config.requestTick),b_=function(){return F.networkManager.fetch(W.input,bo,W.config)},UY=F.requestSequencer?zYa(F.requestSequencer,W,b_):b_(),qw&&F.inflightRequests.set(qw,UY)),_.Q(HO,UY,14);
case 14:(BO=HO.yieldResult)&&_.c("web_streaming_player")&&Array.isArray(BO)&&(BO=BO[0].playerResponse);if(BO&&"error"in BO&&((dc=BO)==null?0:(VM=dc.error)==null?0:VM.details))for(Z_=BO.error.details,MU=_.U(Z_),Ef=MU.next();!Ef.done;Ef=MU.next())kR=Ef.value,(Rn=kR["@type"])&&UbX.indexOf(Rn)>-1&&(delete kR["@type"],BO=kR);qw&&F.inflightRequests.has(qw)&&F.inflightRequests.delete(qw);((se=W.config)==null?0:se.responseTick)&&_.P5(W.config.responseTick);if(BO||(l_=F.localInnertubeRouter)==null||!l_.canProvideFallbackResponse(W.input,
W.innerTubeRequest)){HO.jumpTo(15);break}return _.Q(HO,F.localInnertubeRouter.localFallbackInnertubeResponse(W.input,W.innerTubeRequest),16);case 16:BO=HO.yieldResult;case 15:return PU(F,BO,W),((j$=W.config)==null?0:j$.processorTick)&&_.P5(W.config.processorTick),h(),HO.return(BO||void 0)}})};
_.rY=function(F,W){return g_e(W,F.endpointMap)};
M6H=function(F,W){F=z$Y(W,F.endpointMap);if(F!==void 0)return Promise.resolve(F)};
MEe=function(F,W){var E,h,d,V;return _.e(function(R){if(R.nextAddress==1){d=(E=F)==null?void 0:(h=E.authStrategy)==null?void 0:h.sessionIndex;var M=_.e7(kJw({sessionIndex:d}));return _.Q(R,M,2)}V=R.yieldResult;return R.return(Promise.resolve(Object.assign({},t1k(W),V)))})};
eYU=function(F,W){var E;F=F==null?void 0:(E=F.authStrategy)==null?void 0:E.sessionIndex;E=kJw({sessionIndex:F});return Object.assign({},t1k(W),E)};var tE_,CRa,BEz,vD_,ILU,cd_,kju,AdH,f7,scM,LUc,xbM,qtz;tE_=0;CRa=/tone[1-5]/;BEz=" \ud83c\udffb \ud83c\udffc \ud83c\udffd \ud83c\udffe \ud83c\udfff".split(" ");vD_="UCzC5CNksIBaiT-NdMJjJNOQ/COLRg9qOwdQCFce-qgodrbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CMKC7uKOwdQCFce-qgodqbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CJiQ8uiOwdQCFcx9qgodysAOHg UCzC5CNksIBaiT-NdMJjJNOQ/CI3h3uDJitgCFdARTgodejsFWg UCzC5CNksIBaiT-NdMJjJNOQ/CI69oYTKitgCFdaPTgodsHsP5g UCzC5CNksIBaiT-NdMJjJNOQ/CKzQr47KitgCFdCITgodq6EJZg UCzC5CNksIBaiT-NdMJjJNOQ/CPGD8Iu8kN4CFREChAod9OkLmg".split(" ");
ILU=Number.MAX_SAFE_INTEGER;cd_=RegExp("\ufe0f","g");_.Jq=function(F){this.skinTone=0;this.emojiSize=24;this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.pickerCustomEmojiIds=[];this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1;F&&_.DbM(this,F)};
_.DbM=function(F,W){try{_.Qy(W,{context:F,onSuccess:function(h,d){Array.isArray(d)?F.load(d):(h=new _.xC("Emoji manager JSON response was not an array!",{response:d}),_.a_(h))},
onError:function(h){h=new _.xC("Failed to retrieve emoji manager initial JSON data!",{url:W,statusCode:_.UJ(h).toString()});_.OB(h)}})}catch(h){var E=new _.xC("Failed to parse unicode emoji JSON data! Error: {e.message}",{url:W});
_.OB(E)}};
_.Jq.prototype.clear=function(){this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1};
_.Jq.prototype.load=function(F,W){if(W)if(F.length)F=F.concat(W.emojis);else{this.emojis=W.emojis;this.emojiMap=W.emojiMap;this.emojiShortcutMap=W.emojiShortcutMap;this.emojiShortcutCharMap=xbM(W);this.hasInitializedShortcutCharMap=!0;this.emojiRegex=W.emojiRegex;return}this.emojis=[].concat(_.x9(new Set(this.emojis.concat(F))));this.hasInitializedShortcutCharMap=!1;F=Array(this.emojis.length);for(W=0;W<this.emojis.length;W++){var E=this.emojis[W];if(E.emojiId){this.emojiMap[E.emojiId]=E;this.emojiMap[E.emojiId].index=
W;for(var h=0;E.shortcuts&&h<E.shortcuts.length;h++)this.emojiShortcutMap[E.shortcuts[h].toLocaleLowerCase()]=E;F[W]=E.isCustomEmoji&&E.shortcuts?E.shortcuts[0]:E.emojiId}}F.sort(function(d,V){return V.length-d.length});
if(F.length)try{this.emojiRegex=new RegExp(F.join("|").replace("*","\\*"),"gi")}catch(d){this.emojiRegex=/$./}else this.emojiRegex=/$./};
kju=function(F,W){W=_.U(W);for(var E=W.next();!E.done;E=W.next()){var h=E.value;if(h.emojiId&&F.emojiMap[h.emojiId]){E=Object.assign({},F.emojiMap[h.emojiId],h);F.emojiMap[h.emojiId]=E;var d=void 0;E.index&&((d=F.emojis[E.index])==null?void 0:d.emojiId)===h.emojiId&&(F.emojis[E.index]=E);h=void 0;if((h=E.shortcuts)==null?0:h.length)for(F.hasInitializedShortcutCharMap=!1,h=_.U(E.shortcuts),d=h.next();!d.done;d=h.next())F.emojiShortcutMap[d.value.toLocaleLowerCase()]=E}}};
AdH=function(F){var W,E;_.e(function(h){if(h.nextAddress==1)return _.Q(h,_.Xb.getInstance(),2);if(h.nextAddress!=3)return(W=h.yieldResult)?_.Q(h,W.get("ytlc-emoji-pref"),3):h.return();(E=h.yieldResult)&&kju(F,Object.keys(E).map(function(d){return{emojiId:d,stickyPrefId:E[d]}}).filter(function(d){return!!d.emojiId&&!!d.stickyPrefId}));
_.gG(h)})};
_.a9=function(F,W,E){return(F=F.emojiMap[W])&&(!F.isLocked||E!==void 0&&E)?F:void 0};
f7=function(F,W,E){E=_.a9(F,W,E===void 0?!1:E);var h=W.match("\u200d");E&&F.skinTone!==0&&(F=(h==null?void 0:h.length)===1?_.a9(F,W.replace("\u200d",BEz[F.skinTone]+"\u200d")):_.a9(F,W+BEz[F.skinTone]))&&(E=F);return E};
scM=function(F,W){var E=F.emojiMap[W];return(E==null?0:E.stickyPrefId)?F.emojiMap[E.stickyPrefId]:f7(F,W)};
_.sQ=function(F,W){F=F.emojiShortcutMap[W.toLocaleLowerCase()];return!F||F.isLocked?null:F};
LUc=function(F,W,E){return xbM(F,E===void 0?!1:E)[W]||{}};
xbM=function(F,W){W=W===void 0?!1:W;if(!F.hasInitializedShortcutCharMap){F.hasInitializedShortcutCharMap=!0;for(var E=0;E<F.emojis.length;E++){var h=F.emojis[E];if(!(h.isLocked||W&&h.isCustomEmoji&&h.emojiId&&!F.pickerCustomEmojiIds.includes(h.emojiId)))for(var d=0;h.shortcuts&&d<h.shortcuts.length;d++){var V=h.shortcuts[d];V.startsWith(":_")&&h.isCustomEmoji&&(F.emojiShortcutCharMap[":_"]==null&&(F.emojiShortcutCharMap[":_"]=Object.create(null)),F.emojiShortcutCharMap[":_"][V]=h);if(!(V.length<3||
!h.isCustomEmoji&&CRa.test(V))){var R=V.substr(0,3).toLocaleLowerCase();F.emojiShortcutCharMap[R]==null&&(F.emojiShortcutCharMap[R]=Object.create(null));F.emojiShortcutCharMap[R][V]=h}}}}return F.emojiShortcutCharMap};
_.Jq.prototype.createEmoji=function(F,W){W=W===void 0?!0:W;var E=document.createElement("img");F.isCustomEmoji||E.classList.add("small-emoji");E.classList.add("emoji");E.classList.add("yt-formatted-string");E.src=F.image?_.m_(F.image.thumbnails,this.emojiSize)||"":"";var h=void 0;F.image&&F.image.accessibility&&F.image.accessibility.accessibilityData&&(h=F.image.accessibility.accessibilityData.label);E.alt=h?h:(F.isCustomEmoji&&F.shortcuts?F.shortcuts[0]:F.emojiId)||"";F.isCustomEmoji&&(E.dataset.emojiId=
F.emojiId);_.tf&&(E.setAttribute("contenteditable","false"),E.setAttribute("unselectable","on"));W&&(F.shortcuts&&F.shortcuts.length&&E.setAttribute("shared-tooltip-text",F.shortcuts[0]),E.id="emoji-"+tE_++);return E};
_.Jq.prototype.createDocumentFragment=function(F,W,E,h){W=W===void 0?!1:W;E=E===void 0?!0:E;h=h===void 0?!1:h;F=F.replace(cd_,"");for(var d=document.createDocumentFragment(),V=0,R,M=0;(R=this.emojiRegex.exec(F))!=null;){var g=_.a9(this,R[0])||_.sQ(this,R[0]);!g||g.isCustomEmoji&&!W||(g=this.createEmoji(g,E),V!==R.index&&d.appendChild(document.createTextNode(F.substring(V,R.index))),d.appendChild(g),V=R.index+R[0].length,M++)}if(!h||M)return d.appendChild(document.createTextNode(F.substr(V))),d};
qtz=function(F,W,E){var h,d,V,R,M,g,t,C,B;return _.e(function(I){if(I.nextAddress==1){if(!W.emojiId||!F.emojiMap[W.emojiId])return I.return();h=Object.assign({},F.emojiMap[W.emojiId],{stickyPrefId:E});F.emojiMap[W.emojiId]=h;W.index&&((d=F.emojis[W.index])==null?void 0:d.emojiId)===W.emojiId&&(F.emojis[W.index]=h);if((V=W.shortcuts)==null?0:V.length)for(F.hasInitializedShortcutCharMap=!1,R=_.U(W.shortcuts),M=R.next();!M.done;M=R.next())g=M.value,F.emojiShortcutMap[g.toLocaleLowerCase()]=h;return _.Q(I,
_.Xb.getInstance(),2)}if(I.nextAddress!=4)return(t=I.yieldResult)?_.Q(I,t.get("ytlc-emoji-pref"),4):I.jumpTo(0);B=(C=I.yieldResult)!=null?C:{};B[W.emojiId]=E;return _.Q(I,t.set("ytlc-emoji-pref",B,ILU),0)})};
_.Oz=new _.Jq;var Xvu;_.bD={};
Xvu={properties:{id:{type:String,computed:"identity(data.id)",reflectToAttribute:!0},wholeMessageClickable:{type:Boolean,computed:"computeWholeMessageClickable(data.contextMenuEndpoint)",reflectToAttribute:!0},useOpacityForContextMenuVisibility:{type:Boolean,value:_.c("web_context_menu_a11y_opacity_visibility"),reflectToAttribute:!0},timestampString:{type:String,computed:"computeTimestampString(data)"},popupPositionTarget:{type:Object,computed:"identity(menuButton)"},menuButton:Object,menuVisible:{type:Boolean,
computed:"computeMenuVisible_(menuOpen, menuFocused)",reflectToAttribute:!0},menuOpen:{type:Boolean,value:!1},menuFocused:{type:Boolean,value:!1},emojiManager:Object,participantsManager:Object,isDeleted:{type:Boolean,value:!1,computed:"truthy(data.deletedStateMessage)",reflectToAttribute:!0},hasOriginalContent:{type:Boolean,value:!1,computed:"truthy(data.showOriginalContentMessage)"},hasInlineActionButtons:{type:Boolean,computed:"computeHasInlineActionButtons(data)",reflectToAttribute:!0},modern:{type:Boolean,
reflectToAttribute:!0,value:_.c("web_button_rework_with_live")},filledButtonOverrides:{type:Object,value:{type:"filled",style:"overlay"}}},supportsInlineActionButtons:!1,listeners:{"yt-popup-opened":"onYtPopupOpened_","yt-popup-closed":"onYtPopupClosedOrCanceled_","yt-popup-canceled":"onYtPopupClosedOrCanceled_",tap:"onItemTap"},TIME_FORMATTER:new Tr(7),shouldSupportInlineActionButtons:function(){return!1},
shouldSupportWholeItemClick:function(){return!1},
beforeRegister:function(){if(this.supportsInlineActionButtons||this.shouldSupportInlineActionButtons())this.stampDom||(this.stampDom={}),this.stampDom["data.inlineActionButtons"]={id:"inline-action-buttons",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[filledButtonOverrides]]"}}}}},
ready:function(){var F=_.Z(this.hostElement||this).querySelector("#inline-action-button-container");F&&F.setAttribute("aria-hidden","true");this.menuButton=_.Z(this.hostElement).querySelector("#menu-button")},
attached:function(){var F=this.menuButton;F&&(F.addEventListener("focusin",_.UO(this,this.onMenuButtonFocus_)),F.addEventListener("focusout",_.UO(this,this.onMenuButtonBlur_)))},
detached:function(){var F=this.menuButton;F&&(F.removeEventListener("focusin",_.UO(this,this.onMenuButtonFocus_)),F.removeEventListener("focusout",_.UO(this,this.onMenuButtonBlur_)))},
identity:_.io,truthy:function(F){return!!F},
computeTimestampString:function(F){return F?F.timestampText?this.getSimpleString(F.timestampText):this.TIME_FORMATTER.format(new Date(F.timestampUsec/1E3)):""},
computeWholeMessageClickable:function(F){return _.c("live_chat_whole_message_clickable")&&F},
computeMenuVisible_:function(F,W){return F||W},
computeHasInlineActionButtons:function(F){if(!F)return!1;var W,E;return!((W=F.inlineActionButtons)==null||!W.length)||!((E=F.additionalInlineActionButtons)==null||!E.length)},
createDocumentFragmentFromString:function(F){var W=_.Oz.createDocumentFragment.bind(_.Oz),E;if((E=this.participantsManager)==null||!E.viewerRegex)return W(F);E=document.createDocumentFragment();for(var h=0,d;(d=this.participantsManager.viewerRegex.exec(F))!=null;){if(d.index>0){var V=":"+d[0]+":";if((_.a9(_.Oz,V)||_.sQ(_.Oz,V))&&F.indexOf(V)===d.index-1)continue}E.appendChild(W(F.substring(h,d.index)));h=document.createElement("span");h.appendChild(W(d[0]));h.classList.add("mention");E.appendChild(h);
h=d.index+d[0].length}E.appendChild(W(F.substring(h)));return E},
createDocumentFragment:function(F){var W=document.createDocumentFragment();if(F.simpleText)return W.appendChild(this.createDocumentFragmentFromString(F.simpleText)),W;if(!F.runs)return W;for(var E=0;E<F.runs.length;E++){var h=F.runs[E];if(h.emoji)W.appendChild(_.Oz.createEmoji(h.emoji));else if(h.text)if(h.navigationEndpoint){var d=document.createElement("a");d.classList.add("yt-simple-endpoint");rmr(d,h.navigationEndpoint);_.Z(d).appendChild(this.createDocumentFragmentFromString(h.text));W.appendChild(d)}else W.appendChild(this.createDocumentFragmentFromString(h.text))}return W},
hasModerationOverlayVisible:function(){var F;return((F=document.querySelector("yt-live-chat-item-list-renderer"))==null?void 0:F.getAttribute("moderation-mode-enabled"))===""},
onItemTap:function(F){F.composedPath().some(function(W){return(W=W instanceof Element?W:null)?W.tagName&&(W.tagName.toLowerCase()==="yt-live-chat-creator-heart-view-model"||W.tagName.toLowerCase()==="yt-button-view-model"):!1})||this.data.contextMenuEndpoint&&this.wholeMessageClickable&&this.shouldSupportWholeItemClick()&&!this.hasModerationOverlayVisible()&&!_.c("enable_live_chat_web_context_menu_resolver")&&this.showContextMenu(F)},
colorFromDecimal:function(F){return hfn(F)},
markAsDeleted:function(F,W){this.set("data.deletedStateMessage",F);this.set("data.showOriginalContentMessage",W)},
onMenuButtonFocus_:function(){this.menuFocused=!0},
onMenuButtonBlur_:function(){this.menuFocused=!1},
showContextMenu:function(F){if(this.data.contextMenuEndpoint){var W=_.WZ().resolve(_.Ag),E=this.data.contextMenuEndpoint,h;(h=_.iz.instance)&&_.rY(h,E)?(W=$bO(W,E),h=_.no(h,{},W)):h=_.Z_i(W,E);h.then(this.handleGetContextMenuResponse_,this.handleGetContextMenuError,this);F&&F.stopPropagation()}},
handleGetContextMenuResponse_:function(F){var W=_.iz.instance;W&&_.rY(W,{liveChatEndpoint:{}})||(F=F.response);F.liveChatItemContextMenuSupportedRenderers&&F.liveChatItemContextMenuSupportedRenderers.menuRenderer&&this.showContextMenu_(F.liveChatItemContextMenuSupportedRenderers.menuRenderer);F.actions&&_.dW(this.hostElement,"yt-live-chat-actions",[F.actions])},
handleGetContextMenuError:function(F){if(F instanceof Error||F instanceof Object||F instanceof String)var W=F;_.a_(new _.xC("Error encountered calling GetLiveChatItemContextMenu",W))},
showContextMenu_:function(F){this.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:F}}})},
onYtPopupOpened_:function(){this.menuOpen=!0;_.hF(this.hostElement,"yt-live-chat-context-menu-opened")},
onYtPopupClosedOrCanceled_:function(){this.menuOpen=!1;_.hF(this.hostElement,"yt-live-chat-context-menu-closed")}};
_.bD.YtLiveChatItemBehavior=[Xvu,_.Ok.YtComponentBehavior,_.R9.YtOpenPopupBehavior];_.lD=function(){};var H_H;var PRz;var Jdz;var aLX;var n7=function(){var F=_.n.apply(this,arguments)||this;F.active=!1;F.identity=_.io;return F};
_.k(n7,_.n);n7.prototype.dataChanged=function(){this.active=!1};
n7.prototype.onClick=function(){_.hF(this.hostElement,"yt-live-chat-select-suggestion",this.data)};
n7.prototype.dataChanged=n7.prototype.dataChanged;_.T([_.O(),_.Y("design:type",Object)],n7.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],n7.prototype,"active",void 0);_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],n7.prototype,"dataChanged",null);n7=_.T([_.$3({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-suggestion",noInjection:!0})],n7);
_.r(n7,"yt-live-chat-text-input-field-suggestion",function(){if(aLX===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-text-input-field-suggestion--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_text_input_field_suggestion.yt.live.chat.text.input.field.suggestion.css.js--\x3e<tp-yt-paper-item active="[[active]]" on-click="onClick" class="style-scope yt-live-chat-text-input-field-suggestion">\n  <img alt="[[data.alt]]" hidden$="[[!identity(data.image)]]" src$="[[data.image.thumbnails.0.url]]" author$="[[data.author]]" class="style-scope yt-live-chat-text-input-field-suggestion">\n  [[data.text]]\n</tp-yt-paper-item>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);var W=F.content,E=W.insertBefore;Jdz===void 0&&(Jdz=document.createElement("template"));var h=Jdz;E.call(W,h.content.cloneNode(!0),F.content.firstChild);aLX=F}F=aLX;return F},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});_.yR=function(F,W,E){return CustomEvent.call(this,F,{detail:{value:W,path:E}})||this};
_.k(_.yR,CustomEvent);_.jB=function(){var F=_.n.apply(this,arguments)||this;F.viewerName=null;F.actionMap={"yt-live-chat-actions":"onChatMessage_"};F.SUPPORTED_ITEM_TYPES_=["liveChatTextMessageRenderer","liveChatLegacyPaidMessageRenderer","liveChatPaidMessageRenderer"];F.PARTICIPANT_TIME_USEC_=3E8;return F};
_.k(_.jB,_.n);_.N=_.jB.prototype;_.N.created=function(){this.allParticipantsCharMap_={};this.asyncHandle_=null};
_.N.addParticipant=function(F){var W=_.xwW(this.participants,F,function(h,d){h=h[Object.keys(h)[0]];d=d[Object.keys(d)[0]];h=String(_.Yr(h.authorName)).toLowerCase();d=String(_.Yr(d.authorName)).toLowerCase();return h<d?-1:h==d?0:1}.bind(this));
if(W>=0){var E=this.participants[W];E[Object.keys(E)[0]].timestampUsec&&this.splice("participants",W,1,F)}else this.splice("participants",-W-1,0,F);F=F[Object.keys(F)[0]];W=_.Yr(F.authorName).toLocaleLowerCase();E=W.substr(0,2);this.allParticipantsCharMap_.hasOwnProperty(E)||(this.allParticipantsCharMap_[E]={});this.allParticipantsCharMap_[E][W]=F};
_.N.getAuthorsFromPrefix=function(F){return this.allParticipantsCharMap_.hasOwnProperty(F)?this.allParticipantsCharMap_[F]:null};
_.N.computeViewerRegex_=function(F){if(!F)return null;F=F.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");return _.c("enable_web_yt_handles")||_.c("enable_live_chat_yt_handles")?new RegExp("([#]"+F.replace(/ /g,"\\s*")+"|^"+F.replace(/ /g,"\\s*")+"$|^"+F.replace(/ /g,"\\s*")+"(?=\\s)|(?<=\\s)"+F.replace(/ /g,"\\s*")+"$|(?<=\\s)"+F.replace(/ /g,"\\s*")+"(?=\\s))","ig"):new RegExp("([@#]"+F.replace(/ /g,"\\s*")+"|^"+F.replace(/ /g,"\\s*")+"$|^"+F.replace(/ /g,"\\s*")+"(?=\\s)|(?<=\\s)"+F.replace(/ /g,"\\s*")+
"$|(?<=\\s)"+F.replace(/ /g,"\\s*")+"(?=\\s))","ig")};
_.N.checkForStaleParticipants_=function(){var F=this;this.trimOldParticipants_();this.asyncHandle_&&XhY(this.asyncHandle_);this.participants.length>0&&(this.asyncHandle_=_.fz(function(){F.checkForStaleParticipants_()},3E4))};
_.N.onChatMessage_=function(F){var W=this,E=Date.now()*1E3;F.forEach(function(h){if(h=_.D(h,Nsz)){h=h.item;var d=Object.keys(h)[0];W.SUPPORTED_ITEM_TYPES_.indexOf(d)!=-1&&h[d].timestampUsec>=E-W.PARTICIPANT_TIME_USEC_&&W.addParticipant(h)}},this);
this.checkForStaleParticipants_()};
_.N.trimOldParticipants_=function(){for(var F=Date.now()*1E3,W=this.participants.length-1;W>=0;W--){var E=this.participants[W];E=E[Object.keys(E)[0]];E.timestampUsec&&E.timestampUsec<F-this.PARTICIPANT_TIME_USEC_&&this.splice("participants",W,1)}};
_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],_.jB.prototype,"ytActionHandlerBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],_.jB.prototype,"viewerName",void 0);_.T([_.O({computed:"computeViewerRegex_(viewerName)"}),_.Y("design:type",Object)],_.jB.prototype,"viewerRegex",void 0);_.T([_.O({value:function(){return[]},
notify:!0}),_.Y("design:type",Array)],_.jB.prototype,"participants",void 0);_.jB=_.T([_.$3({is:"yt-live-chat-participants-manager",noInjection:!0})],_.jB);var fLu=/.*([:@#].*?)$/,iD=/\u00a0/g,O_c=String.fromCharCode(160),b_i={placeholderTextColor:"--yt-live-chat-text-input-field-placeholder-color",activeUnderlineColor:"--yt-live-chat-text-input-field-active-underline-color",inactiveUnderlineColor:"--yt-live-chat-text-input-field-inactive-underline-color"},r5=function(){var F=_.n.apply(this,arguments)||this;F.disabled=!1;F.liveChatRichMessageInput=null;F.messageInput=null;F.isValidWithNoInputText=!1;F.suggestions=[];F.emojiManager=_.Oz;F.inputMethodEditorActive=
!1;F.suggestionIndex=-1;F.JSC$11867_lastSuggestionRange=null;return F};
_.k(r5,_.n);_.N=r5.prototype;_.N.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"yt-live-chat-text-input-field-suggestion"},reuseComponents:!0}}};
_.N.attached=function(){_.Cc&&(document.execCommand("enableObjectResizing",!1,"false"),document.execCommand("enableInlineTableEditing",!1,"false"));this.hostElement.addEventListener("compositionstart",this.onCompositionStart);this.hostElement.addEventListener("compositionend",this.onCompositionEnd)};
_.N.detached=function(){this.setLiveChatRichMessageInput(null);this.hostElement.removeEventListener("compositionstart",this.onCompositionStart);this.hostElement.removeEventListener("compositionend",this.onCompositionEnd)};
_.N.dataChanged=function(){if(!this.ignoreColorMapping){var F=!1,W={},E;for(E in b_i)this.data&&this.data.hasOwnProperty(E)&&(W[b_i[E]]=this.colorFromDecimal(this.data[E]),F=!0);F&&_.V9(this.hostElement,W)}this.messageInput&&this.setLiveChatRichMessageInput(this.messageInput)};
_.N.onMessageSet=function(){this.setLiveChatRichMessageInput(this.messageInput||{})};
_.N.colorFromDecimal=function(F){F=Math.floor(Number(F));return"rgba("+[F>>16&255,F>>8&255,F&255,(F>>24&255)/255].join()+")"};
_.N.preventDrag=function(F){F.dataTransfer&&(F.dataTransfer.dropEffect="none");F.preventDefault()};
_.N.preventResize=function(F){F.returnValue=!1};
_.N.onInputChange=function(){var F=this.characterCount,W=document.querySelector("#overflow-text");this.characterCount<=this.maxCharacterLimit&&W&&W.remove();if(!W&&this.characterCount>this.maxCharacterLimit){var E=window.getSelection();if(E){var h=E.getRangeAt(0);E.removeAllRanges();E.addRange(h)}}if(E=this.getCurrentRange())h=this.calculateTextBeforeRange(E),this.completeEmojisInRange(E,h,!0)||this.updateSuggestions(E,h);h=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(h);
_.hF(this.hostElement,"yt-live-chat-message-input-change",h);W&&this.characterCount===0&&W.remove();E&&E.commonAncestorContainer.parentElement.id==="input"&&E.commonAncestorContainer.nodeName!=="SPAN"?this.handleOverflowText(this.characterCount>F):E&&!E.collapsed&&E.commonAncestorContainer===this.input&&this.checkForDuplicateSpans();if(this.characterCount===0)for(F=this.input.childNodes.length-1;F>=0;F--)this.input.childNodes[F].nodeName==="BR"&&this.input.childNodes[F].remove()};
_.N.onCompositionStart=function(){this.inputMethodEditorActive=!0};
_.N.onCompositionEnd=function(){this.inputMethodEditorActive=!1;var F=this.getCurrentRange();F&&F.commonAncestorContainer.parentElement.id==="input"&&F.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.N.mergeOverflowText=function(F){if(F){var W=document.createRange();W.selectNodeContents(F);W=W.extractContents();this.input.insertBefore(W,F)}};
_.N.checkRangeAtEndOfInput=function(){var F=this.getCurrentRange();if(F){var W=_.Z(this.hostElement).querySelector("#overflow-text"),E=document.createRange();W&&W.previousSibling?W.previousSibling instanceof HTMLImageElement?E.selectNode(W.previousSibling):E.selectNodeContents(W.previousSibling):this.input&&this.input.lastChild&&(this.input.lastChild instanceof HTMLImageElement?E.selectNode(this.input.lastChild):E.selectNodeContents(this.input.lastChild));E.collapse(!1);return E.isPointInRange(F.startContainer,
F.startOffset)}return!1};
_.N.handleOverflowText=function(F){if(!this.dropdown.opened&&!this.inputMethodEditorActive&&this.isChatMessageInput){var W=_.Z(this.hostElement).querySelector("#overflow-text"),E=this.getCurrentRange();this.input.normalize();F=this.checkRangeAtEndOfInput()&&F;this.mergeOverflowText(W);for(var h,d=0,V=0,R,M=this.input.childNodes,g=0;g<M.length;g++){var t=M[g];t instanceof Text?(V+=t.textContent.length,V>this.maxCharacterLimit&&(h=t,d=this.maxCharacterLimit+t.textContent.length-V)):t instanceof HTMLImageElement&&
(h=void 0,V=t.dataset.emojiId&&((h=this.data)==null?0:h.emojiCharacterCount)?V+this.data.emojiCharacterCount:V+t.alt.length,h=this.input,d=g);if(V>this.maxCharacterLimit&&h){R=document.createRange();R.collapse(!1);W?(V=this.input.lastChild.previousSibling,V instanceof Text?R.setEnd(this.input.lastChild.previousSibling,V.textContent.length):V instanceof HTMLImageElement&&R.setEnd(this.input,this.input.childNodes.length-1)):R.selectNodeContents(this.input);R.setStart(h,d);break}}R&&(h=!1,E&&(F=R.isPointInRange(E.startContainer,
E.startOffset-1)),W||(W=document.createElement("span"),W.id="overflow-text",W.textContent="",W.setAttribute("contenteditable","true"),_.Z(_.Z(this.hostElement).querySelector("#input")).appendChild(W),h=!0),W&&(E=R.extractContents(),W.insertBefore(E,W.firstChild),F&&W.firstChild&&(E=document.createRange(),h?E.setStartAfter(W.lastChild):E.setStartAfter(W.firstChild),E.collapse(!0),W=window.getSelection(),W.removeAllRanges(),W.addRange(E))))}};
_.N.checkForDuplicateSpans=function(){for(var F=0;F<this.input.childNodes.length;F++){var W=this.input.childNodes[F];if(W.nodeName==="SPAN"){var E=document.createRange();E.selectNodeContents(W);E=E.extractContents();this.input.insertBefore(E,W);W.remove()}}this.handleOverflowText(!0)};
_.N.getCurrentRange=function(){var F=window.getSelection();return F&&F.rangeCount?F.getRangeAt(0).cloneRange():null};
_.N.getInputRange=function(){var F=this.getCurrentRange();if(F){for(var W=F.commonAncestorContainer,E=!1,h=_.Z(this.hostElement).querySelector("#input");W;){if(W===h){E=!0;break}W=W.parentNode}E||(F=null)}F||(F=this.getRangeAtEnd());return F};
_.N.getRangeAtEnd=function(){var F=document.createRange(),W=_.Z(this.hostElement).querySelector("#input").lastChild;!W||W.nodeName!=="#text"&&W.nodeName!=="SPAN"?(F.selectNodeContents(_.Z(this.hostElement).querySelector("#input")),F.collapse(!1)):W.nodeName==="#text"?F.setStart(W,W.textContent.length):F.setStart(W,W.childNodes.length);return F};
_.N.getSuggestions=function(F){var W=[],E=F.substring(0,3),h=LUc(_.Oz,E,!0);if(h)for(var d in h)if(d.toLocaleLowerCase().indexOf(F)===0){var V=h[d];if(V&&V.emojiId){if(V=scM(_.Oz,V.emojiId)){var R=void 0,M=void 0,g=void 0,t=void 0,C=((R=V.image)==null?0:(M=R.accessibility)==null?0:(g=M.accessibilityData)==null?0:g.label)||V.isCustomEmoji?(t=V.shortcuts)==null?void 0:t[0]:V.emojiId;W.push({suggestion:{emoji:!0,image:V.image,alt:C,text:d,textToInsertWhenSelected:V.isCustomEmoji?d:C}})}if(W.length>=
64)break}}if(!this.participantsManager)return null;h=_.c("enable_web_yt_handles")||_.c("enable_live_chat_yt_handles");if(E.indexOf("@")===0||E.indexOf("#")===0)if(d=E.charAt(0),F=F.substring(1),E=h&&E.indexOf("@")===0?E.substring(0,2):E.substring(1),E=this.participantsManager.getAuthorsFromPrefix(E))for(var B in E)if(B.indexOf(F)===0||h&&B.indexOf(d+F)===0)if(V=E[B],R=_.Yr(V.authorName),W.push({suggestion:{author:!0,authorType:d,image:V.authorPhoto,alt:R,text:R}}),W.length>=64)break;return W?W.sort(function(I,
x){return x.suggestion.text<I.suggestion.text?-1:x.suggestion.text===I.suggestion.text?0:1}):null};
_.N.insertSuggestion=function(F){var W=_.c("enable_web_yt_handles")||_.c("enable_live_chat_yt_handles")?F.text+O_c:F.authorType+F.text+O_c;F.emoji?this.insertTextAtRange(this.JSC$11867_lastSuggestionRange,F.textToInsertWhenSelected||""):F.author&&this.insertTextAtRange(this.JSC$11867_lastSuggestionRange,W)};
_.N.updateSuggestionsAtCaret=function(){var F=this.getCurrentRange();F&&this.updateSuggestions(F,this.calculateTextBeforeRange(F))};
_.N.offsetStartOfRangeBy=function(F,W){for(;W>0;)if(F.startOffset-W>=0){F.setStart(F.startContainer,F.startOffset-W);break}else{W=F.startContainer instanceof HTMLImageElement?W-F.startContainer.alt.length:W-F.startOffset;var E=F.startContainer.previousSibling;if(!E){F.setStart(F.startContainer,0);break}if(_.c("live_chat_require_space_for_autocomplete_emoji")){var h=void 0,d=void 0;F.setStart(E,((h=E)==null?void 0:(d=h.textContent)==null?void 0:d.length)||0)}else F.setStart(E,E.childNodes.length||
0)}};
_.N.updateSuggestions=function(F,W){var E=this;this.JSC$11867_lastSuggestionRange&&(this.JSC$11867_lastSuggestionRange.detach(),this.JSC$11867_lastSuggestionRange=null);if((W=fLu.exec(W))&&W.length&&(W=W[W.length-1].toLocaleLowerCase(),W.length>2&&(this.offsetStartOfRangeBy(F,W.length),this.JSC$11867_lastSuggestionRange=F,(F=this.getSuggestions(W))&&F.length))){this.suggestions=F;_.wT(this,function(){_.Z(E.hostElement).querySelector("#dropdown-content").scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(F.length-1);return}this.dropdown.opened=!1};
_.N.completeEmojisInRange=function(F,W,E){var h=W.replace(/[\s\xa0]+$/,"");W=W.length-h.length;h=h.split(" ");h=h[h.length-1].trim().toLocaleLowerCase();var d=h.lastIndexOf(":");if(E&&!W&&d!==h.length-1)return!1;d!==-1&&(E=h.lastIndexOf(":",d-1),E!==-1&&(h=h.substring(E)));if((E=_.sQ(_.Oz,h))&&E.emojiId){E=scM(_.Oz,E.emojiId)||null;this.offsetStartOfRangeBy(F,h.length+W);var V,R,M,g;h=(((V=E)==null?0:V.isCustomEmoji)?(R=E)==null?void 0:(M=R.shortcuts)==null?void 0:M[0]:(g=E)==null?void 0:g.emojiId)||
"";W&&(h+=O_c);this.insertTextAtRange(F,h);this.dropdown.opened=!1;return!0}return!1};
_.N.onSuggestion=function(F){this.insertSuggestion(F.detail);this.dropdown.opened=!1};
_.N.onKeyPress=function(F){F.keyCode===13&&(F.preventDefault(),this.dropdown.opened?(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),this.dropdown.opened=!1):_.hF(this.hostElement,"yt-live-chat-send-message"))};
_.N.completeEmojis=function(){var F=document.createRange(),W=_.Z(this.hostElement).querySelector("#input").lastChild;W?F.setStart(W,W.childNodes.length):(F.selectNodeContents(_.Z(this.hostElement).querySelector("#input")),F.collapse(!1));this.completeEmojisInRange(F,this.calculateTextBeforeRange(F),_.c("live_chat_require_space_for_autocomplete_emoji"))};
_.N.maybePreventTextFormatting=function(F){!_.cY||!F.ctrlKey&&!F.metaKey||F.keyCode!==66&&F.keyCode!==73||(F.stopImmediatePropagation(),F.preventDefault())};
_.N.onKeyDown=function(F){this.maybePreventTextFormatting(F);if(this.dropdown.opened)switch(F.keyCode){case 27:this.dropdown.opened=!1;F.stopPropagation();break;case 9:this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);this.dropdown.opened=!1;F.preventDefault();break;case 38:this.changeSuggestionIndex(this.suggestionIndex-1);F.preventDefault();break;case 40:this.changeSuggestionIndex(this.suggestionIndex+1),F.preventDefault()}};
_.N.onKeyUp=function(F){switch(F.keyCode){case 37:case 39:this.updateSuggestionsAtCaret();break;case 38:case 40:this.dropdown.opened||this.updateSuggestionsAtCaret()}if(_.tf)this.onInputChange()};
_.N.changeSuggestionIndex=function(F){if(this.dropdown.opened){var W=_.Z(this.hostElement).querySelector("#dropdown-content");this.suggestionIndex>=0&&this.suggestionIndex<W.children.length&&(W.children[this.suggestionIndex].active=!1);var E=this.suggestions.length;this.suggestionIndex=(F+E)%E;F=W.children[this.suggestionIndex];F.active=!0;W.scrollTop=F.offsetTop}};
_.N.onInputPaste=function(F){F.preventDefault();(F=F.clipboardData)&&F.types&&(F=F.getData("text/plain")||"",F=F.replace(/\n/g,""),this.insertText(F));(F=this.getCurrentRange())&&F.commonAncestorContainer.parentElement.id==="input"&&F.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.N.onFocus=function(){this._setFocused(!0)};
_.N.onBlur=function(){this._setFocused(!1)};
_.N.insertText=function(F){this.insertTextAtRange(this.getInputRange(),F)};
_.N.insertTextAtRange=function(F,W){if(F&&(F.collapsed||F.deleteContents(),W=_.Oz.createDocumentFragment(W,!0,!1))){for(var E=_.U((W==null?void 0:W.childNodes)||[]),h=E.next();!h.done;h=E.next()){h=h.value;var d=void 0,V=void 0,R=void 0,M=void 0,g=void 0;(R=(d=window)==null?void 0:(V=d.ShadyCSS)==null?void 0:V.ScopingShim)==null||(g=(M=R).scopeNode)==null||g.call(M,h,this.hostElement.localName)}E=W.lastChild;F.insertNode(W);this.focused||this.input.focus();if(this.focused){F=F.cloneRange();F.selectNodeContents(E);
F.collapse(!1);if(W=window.getSelection())W.removeAllRanges(),W.addRange(F);F.commonAncestorContainer.parentElement.id==="input"&&F.commonAncestorContainer.nodeName!=="SPAN"&&(this.dropdown.opened&&(this.dropdown.opened=!1),this.handleOverflowText(!0))}F=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(F);_.hF(this.hostElement,"yt-live-chat-message-input-change",F)}};
_.N.setLiveChatRichMessageInput=function(F){_.Z(_.Z(this.hostElement).querySelector("#input")).textContent="";if(F&&F.textSegments){for(var W=0;W<F.textSegments.length;W++){var E=F.textSegments[W];E.text?_.Z(_.Z(this.hostElement).querySelector("#input")).appendChild(_.Oz.createDocumentFragment(E.text,!0,!1)):E.emojiId&&(E=_.a9(_.Oz,E.emojiId))&&_.Z(_.Z(this.hostElement).querySelector("#input")).appendChild(_.Oz.createEmoji(E,!1))}this._setLiveChatRichMessageInput(this.calculateLiveChatRichMessageInput())}else this._setLiveChatRichMessageInput(null)};
_.N.setText=function(F){this.setLiveChatRichMessageInput(F?{textSegments:[{text:F}]}:null)};
_.N.calculateTextBeforeRange=function(F){var W="",E=F.startContainer;if(E&&E instanceof Text){var h;W=((h=E.textContent)==null?void 0:h.substring(0,F.startOffset))||"";E=E.previousSibling}for(;E&&E instanceof Text;)W=E.textContent+W,E=E.previousSibling;return W.replace(iD," ")};
_.N.calculateLiveChatRichMessageInput=function(){for(var F=[],W="",E=_.Z(_.Z(this.hostElement).querySelector("#input")).childNodes,h=0;h<E.length;h++){var d=E[h];d instanceof Text?W+=d.textContent:d instanceof HTMLImageElement&&(d.dataset.emojiId?(W&&(F.push({text:W.replace(iD," ")}),W=""),F.push({emojiId:d.dataset.emojiId})):W+=d.alt)}W&&F.push({text:W.replace(iD," ")});if(E=_.Z(this.hostElement).querySelector("#overflow-text")){W="";E=E.childNodes;for(h=0;h<E.length;h++)d=E[h],d instanceof Text?
W+=d.textContent:d instanceof HTMLImageElement&&(d.dataset.emojiId?(W&&(F.push({text:W.replace(iD," ")}),W=""),F.push({emojiId:d.dataset.emojiId})):W+=d.alt);W&&F.push({text:W.replace(iD," ")})}return{textSegments:F}};
_.N.computeCharacterCount=function(F){if(!F||!F.textSegments)return 0;for(var W=0,E=0;E<F.textSegments.length;E++){var h=F.textSegments[E];if(h.text)W+=h.text.length;else if(h.emojiId){var d=void 0;if((d=this.data)==null?0:d.emojiCharacterCount)W+=this.data.emojiCharacterCount;else{var V=d=void 0,R=void 0;W+=((V=_.a9(_.Oz,(d=h)==null?void 0:d.emojiId))==null?void 0:(R=V.shortcuts)==null?void 0:R[0].length)||0}}}return W};
_.N.characterCountChanged=function(){_.hF(this.hostElement,"yt-live-chat-text-input-field-renderer-character-count-changed",{characterCount:this.characterCount});this.checkScrollAlignment()};
_.N.focusedChanged=function(){this.hostElement.dispatchEvent(new _.yR("focused-changed",this.focused))};
_.N.focus=function(){this.setFocus(!1)};
_.N.focusAtEnd=function(){this.setFocus(!0)};
_.N.setFocus=function(F){F=F?this.getRangeAtEnd():this.getInputRange();_.Z(this.hostElement).querySelector("#input").focus();var W=window.getSelection();W&&(W.removeAllRanges(),W.addRange(F))};
_.N.insertEmoji=function(F){var W,E=((F==null?0:F.isCustomEmoji)?(W=F.shortcuts)==null?void 0:W[0]:F==null?void 0:F.emojiId)||"";this.insertText(E)};
_.N.computeText=function(F){if(!F||!F.textSegments)return"";for(var W="",E=0;E<F.textSegments.length;E++){var h=F.textSegments[E];if(h.text)W+=h.text;else if(h.emojiId){var d=void 0,V=void 0,R=void 0;W+=((V=_.a9(_.Oz,(d=h)==null?void 0:d.emojiId))==null?void 0:(R=V.shortcuts)==null?void 0:R[0])||""}}return W};
_.N.checkScrollAlignment=function(){this.input.scrollHeight>48&&this.input.scrollTop!==this.input.scrollHeight&&(this.input.scrollTop=this.input.scrollHeight)};
_.Sn.Object.defineProperties(r5.prototype,{inputTabIndex:{configurable:!0,enumerable:!0,get:function(){return this.disabled?-1:0}},
maxCharacterLimit:{configurable:!0,enumerable:!0,get:function(){var F;return((F=this.data)==null?void 0:F.maxCharacterLimit)||0}},
characterCount:{configurable:!0,enumerable:!0,get:function(){return this.computeCharacterCount(this.liveChatRichMessageInput)}},
remainingCharacterCount:{configurable:!0,enumerable:!0,get:function(){return this.maxCharacterLimit-this.characterCount}},
hasText:{configurable:!0,enumerable:!0,get:function(){return this.characterCount>0}},
isInputValid:{configurable:!0,enumerable:!0,get:function(){return this.characterCount===0?this.isValidWithNoInputText:this.characterCount<=this.maxCharacterLimit}}});
r5.prototype.focusedChanged=r5.prototype.focusedChanged;r5.prototype.characterCountChanged=r5.prototype.characterCountChanged;r5.prototype.onSuggestion=r5.prototype.onSuggestion;r5.prototype.onMessageSet=r5.prototype.onMessageSet;r5.prototype.dataChanged=r5.prototype.dataChanged;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],r5.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],r5.prototype,"ytRendererstamperBehavior",void 0);
_.T([_.O(),_.Y("design:type",Object)],r5.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],r5.prototype,"disabled",void 0);_.T([_.a("disabled"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],r5.prototype,"inputTabIndex",null);_.T([_.a("data.maxCharacterLimit"),_.O({readOnly:!0,notify:!0}),_.Y("design:type",Number),_.Y("design:paramtypes",[])],r5.prototype,"maxCharacterLimit",null);
_.T([_.a("liveChatRichMessageInput"),_.O({readOnly:!0,notify:!0}),_.Y("design:type",Number),_.Y("design:paramtypes",[])],r5.prototype,"characterCount",null);_.T([_.a("maxCharacterLimit, characterCount"),_.O({readOnly:!0,notify:!0}),_.Y("design:type",Number),_.Y("design:paramtypes",[])],r5.prototype,"remainingCharacterCount",null);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],r5.prototype,"isChatMessageInput",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],r5.prototype,"inputExpanded",void 0);_.T([_.O({readOnly:!0,notify:!0}),_.Y("design:type",Object)],r5.prototype,"liveChatRichMessageInput",void 0);_.T([_.O(),_.Y("design:type",Object)],r5.prototype,"messageInput",void 0);_.T([_.O(),_.Y("design:type",Boolean)],r5.prototype,"ignoreColorMapping",void 0);_.T([_.a("characterCount"),_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],r5.prototype,"hasText",null);
_.T([_.O(),_.Y("design:type",Object)],r5.prototype,"isValidWithNoInputText",void 0);_.T([_.a("characterCount","maxCharacterLimit","isValidWithNoInputText"),_.O(),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],r5.prototype,"isInputValid",null);_.T([_.O({readOnly:!0,value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],r5.prototype,"focused",void 0);_.T([_.O(),_.Y("design:type",Array)],r5.prototype,"suggestions",void 0);
_.T([_.O(),_.Y("design:type",_.Jq)],r5.prototype,"emojiManager",void 0);_.T([_.O(),_.Y("design:type",_.jB)],r5.prototype,"participantsManager",void 0);_.T([_.O(),_.Y("design:type",Boolean)],r5.prototype,"noUnderline",void 0);_.T([_.O(),_.Y("design:type",Object)],r5.prototype,"inputMethodEditorActive",void 0);_.T([_.gQ("#dropdown"),_.Y("design:type",Object)],r5.prototype,"dropdown",void 0);_.T([_.gQ("#input"),_.Y("design:type",HTMLElement)],r5.prototype,"input",void 0);
_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],r5.prototype,"dataChanged",null);_.T([_.ea("messageInput"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],r5.prototype,"onMessageSet",null);_.T([_.R4("yt-live-chat-select-suggestion"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],r5.prototype,"onSuggestion",null);
_.T([_.ea("characterCount"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],r5.prototype,"characterCountChanged",null);_.T([_.ea("focused"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],r5.prototype,"focusedChanged",null);r5=_.T([_.$3({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-renderer",noInjection:!0})],r5);
_.lLp=_.r(r5,"yt-live-chat-text-input-field-renderer",function(){if(PRz===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-text-input-field-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_text_input_field_renderer.yt.live.chat.text.input.field.renderer.css.js--\x3e<label id="label" class="style-scope yt-live-chat-text-input-field-renderer">[[getSimpleString(data.placeholder)]]</label>\n<div id="input" aria-label$="[[getSimpleString(data.placeholder)]]" aria-invalid$="[[!isInputValid]]" contenteditable="" tabindex$="[[inputTabIndex]]" on-blur="onBlur" on-dragenter="preventDrag" on-dragleave="preventDrag" on-dragover="preventDrag" on-drop="preventDrag" on-focus="onFocus" on-input="onInputChange" on-keydown="onKeyDown" on-keypress="onKeyPress" on-keyup="onKeyUp" on-paste="onInputPaste" class="style-scope yt-live-chat-text-input-field-renderer"></div>\n<div id="underline" hidden$="[[noUnderline]]" class="style-scope yt-live-chat-text-input-field-renderer">\n  <div id="unfocused" class="style-scope yt-live-chat-text-input-field-renderer"></div>\n  <div id="focused" class="style-scope yt-live-chat-text-input-field-renderer"></div>\n</div>\n<tp-yt-iron-dropdown id="dropdown" allow-outside-scroll="" no-auto-focus="" vertical-align="bottom" vertical-offset="24" class="style-scope yt-live-chat-text-input-field-renderer">\n  <div id="dropdown-content" class="dropdown-content style-scope yt-live-chat-text-input-field-renderer" slot="dropdown-content">\n  </div>\n</tp-yt-iron-dropdown>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);var W=F.content,E=W.insertBefore;H_H===void 0&&(H_H=document.createElement("template"));var h=H_H;E.call(W,h.content.cloneNode(!0),F.content.firstChild);PRz=F}F=PRz;return F},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var Tf=function(){var F=_.n.apply(this,arguments)||this;F.buttonOverrides={style:"overlay",type:"filled"};F.allowAnimations=!1;F.modern=_.c("web_button_rework_with_live");F.noPadding=!1;return F};
_.k(Tf,_.n);_.N=Tf.prototype;_.N.shouldSupportInlineActionButtons=function(){return!0};
_.N.configureRendererStamper=function(){return{"data.footer":{id:"footer",mapping:{liveChatPaidMessageFooterRenderer:"yt-live-chat-paid-message-footer-renderer"}},"data.buyButton":{id:"lower-buy-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},"data.buyFlowButton":{id:"buy-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}}},"data.creatorHeartButton":{id:"creator-heart-button",mapping:{creatorHeartViewModel:{component:"yt-live-chat-creator-heart-view-model"}}},
"data.pdgLikeButton":{id:"like-button",mapping:{pdgLikeViewModel:{component:"yt-live-chat-like-button-view-model"}}},"data.replyButton":{id:"reply-button",mapping:{pdgReplyButtonViewModel:{component:"yt-live-chat-reply-button-view-model"}}},"data.leaderboardBadge":{id:"leaderboard-badge",mapping:{buttonViewModel:{component:"yt-button-view-model"}}},"data.lowerBumper":{id:"lower-bumper",mapping:{liveChatItemBumperViewModel:{component:"yt-live-chat-item-bumper-view-model"}}}}};
_.N.ready=function(){var F=document.querySelector("yt-live-chat-app");F&&F.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.N.attached=function(){this.allowAnimations=!1};
_.N.dataChanged=function(){if(this.data){var F={"--yt-live-chat-paid-message-primary-color":this.ytLiveChatItemBehavior.colorFromDecimal(this.data.bodyBackgroundColor),"--yt-live-chat-paid-message-secondary-color":this.ytLiveChatItemBehavior.colorFromDecimal(this.data.headerBackgroundColor),"--yt-live-chat-paid-message-header-color":this.ytLiveChatItemBehavior.colorFromDecimal(this.data.headerTextColor),"--yt-live-chat-paid-message-timestamp-color":this.ytLiveChatItemBehavior.colorFromDecimal(this.data.timestampColor),
"--yt-live-chat-paid-message-color":this.ytLiveChatItemBehavior.colorFromDecimal(this.data.bodyTextColor),"--yt-live-chat-disable-highlight-message-author-name-color":this.ytLiveChatItemBehavior.colorFromDecimal(this.data.authorNameTextColor),"--yt-live-chat-text-input-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(this.data.textInputBackgroundColor)};_.V9(this.hostElement,F);this.allowAnimations=!0}};
_.N.messageChanged=function(){var F,W=(F=this.data)==null?void 0:F.message;F=_.Z(_.Z(this.hostElement).querySelector("#message"));F.textContent="";W&&F.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(W))};
_.N.computeShowOnlyHeader=function(F,W){return!F||F.pdgLikeButton||F.replyButton||F.buyFlowButton?!1:this.isEmpty(F,W)&&!F.footer};
_.N.computeShowFooterDivider=function(F,W,E){return F?!!F.footer&&!this.isEmpty(F,W)&&!E:!1};
_.N.computeIsUserEditable=function(F){return!!F.inputField};
_.N.computeHasHeartButton=function(F){return(F==null?void 0:F.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||(F==null?void 0:F.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||(F==null?void 0:F.heartState)==="TOOLBAR_HEART_STATE_HEARTED"};
_.N.computeNoveltyImage=function(F){if(F.headerOverlayImage&&F.headerOverlayImage.thumbnails.length){var W=F.headerOverlayImage.thumbnails[0],E,h;if((E=F.pdgPurchasedNoveltyLoggingDirectives)==null?0:(h=E.loggingDirectives)==null?0:h.trackingParams){var d,V;ywY((d=F.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(V=d.loggingDirectives)==null?void 0:V.trackingParams)}return W.width||0}return 0};
_.N.computeAuthorPhotoSize=function(F){return(F==null?0:F.isV2Style)&&!this.dashboardMoneyFeed?32:40};
_.N.inputFocus=function(){var F=_.Z(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");F&&F.focus()};
_.N.inputInsertEmoji=function(F){var W=_.Z(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");W&&W.insertEmoji(F)};
_.N.inputMessage=function(){var F=_.Z(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer"),W;return F&&((W=this.data)==null?0:W.inputField)?(F.completeEmojis(),_.lz(F.liveChatRichMessageInput)):null};
_.N.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&this.set("data.message",null)};
_.N.isEmpty=function(F,W){return F?F.empty||!(F.message||F.inputField||W):!0};
_.N.onLowerBuyButtonClick=function(){var F,W=_.D((F=this.data)==null?void 0:F.buyButton,_.jt);W&&W.trackingParams&&!Njb(W.command)&&(F=_.ve(W.trackingParams))&&(W=_.JR())&&_.oj(W,F)};
_.N.shouldSupportWholeItemClick=function(){return!0};
_.Sn.Object.defineProperties(Tf.prototype,{hideLowerBumper:{configurable:!0,enumerable:!0,get:function(){var F;return((F=this.data)==null?0:F.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
Tf.prototype.isDeletedChanged=Tf.prototype.isDeletedChanged;Tf.prototype.messageChanged=Tf.prototype.messageChanged;Tf.prototype.dataChanged=Tf.prototype.dataChanged;_.T([_.J(ciH.YtPdgLiveChatItemBehavior),_.Y("design:type",Object)],Tf.prototype,"ytPdgLiveChatItemBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Tf.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.av),_.Y("design:type",Object)],Tf.prototype,"ytLiveChatReduxBehavior",void 0);
_.T([_.J(_.bD.YtLiveChatItemBehavior),_.Y("design:type",_.lD)],Tf.prototype,"ytLiveChatItemBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],Tf.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],Tf.prototype,"data",void 0);_.T([_.O({selectorArgs:["data.creatorHeartButton.creatorHeartViewModel.engagementStateKey"],selector:lcI}),_.Y("design:type",Object)],Tf.prototype,"engagementState",void 0);
_.T([_.O({reflectToAttribute:!0,computed:"computeIsUserEditable(data)"}),_.Y("design:type",Boolean)],Tf.prototype,"isUserEditable",void 0);_.T([_.O({reflectToAttribute:!0,computed:"computeHasHeartButton(engagementState)"}),_.Y("design:type",Boolean)],Tf.prototype,"hasHeartButton",void 0);_.T([_.O({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],Tf.prototype,"showOnlyHeader",void 0);
_.T([_.O({computed:"computeShowFooterDivider(data, isDeleted, isUserEditable)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],Tf.prototype,"showFooterDivider",void 0);_.T([_.O({reflectToAttribute:!0,value:!1}),_.Y("design:type",Object)],Tf.prototype,"allowAnimations",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Tf.prototype,"dashboardMoneyFeed",void 0);_.T([_.O({computed:"computeNoveltyImage(data)"}),_.Y("design:type",Number)],Tf.prototype,"noveltyWidth",void 0);
_.T([_.O({computed:"computeAuthorPhotoSize(data)"}),_.Y("design:type",Number)],Tf.prototype,"authorPhotoSize",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],Tf.prototype,"modern",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],Tf.prototype,"noPadding",void 0);_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Tf.prototype,"dataChanged",null);
_.T([_.ea("data.message"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Tf.prototype,"messageChanged",null);_.T([_.a("data","dashboardMoneyFeed"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Tf.prototype,"hideLowerBumper",null);_.T([_.ea("isDeleted"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Tf.prototype,"isDeletedChanged",null);
Tf=_.T([_.y({disableElementRegistration:!0,is:"yt-live-chat-paid-message-renderer"})],Tf);
_.r(Tf,"yt-live-chat-paid-message-renderer",function(){if(oq_===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-paid-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_live_chat_paid_message_renderer.yt.live.chat.paid.message.renderer.css.js--\x3e<div id="card" class="style-scope yt-live-chat-paid-message-renderer">\n  <div id="header" class="style-scope yt-live-chat-paid-message-renderer">\n    <template is="dom-if" if="[[data.authorPhoto]]" restamp="" class="style-scope yt-live-chat-paid-message-renderer">\n      <yt-img-shadow id="author-photo" height="[[authorPhotoSize]]" thumbnail="[[data.authorPhoto]]" width="[[authorPhotoSize]]" class="style-scope yt-live-chat-paid-message-renderer"></yt-img-shadow>\n    </template>\n    <template is="dom-if" if="[[!data.authorPhoto]]" class="style-scope yt-live-chat-paid-message-renderer">\n      <yt-icon id="author-photo" icon="yt-icons:avatar_anonymous" class="style-scope yt-live-chat-paid-message-renderer"></yt-icon>\n    </template>\n    <template is="dom-if" if="[[data.headerOverlayImage]]" restamp="" class="style-scope yt-live-chat-paid-message-renderer">\n      <yt-img-shadow id="overlay-image" thumbnail="[[data.headerOverlayImage]]" width="[[noveltyWidth]]" class="style-scope yt-live-chat-paid-message-renderer">\n      </yt-img-shadow>\n    </template>\n    <div id="header-content" class="style-scope yt-live-chat-paid-message-renderer">\n      <div id="header-content-primary-column" class="style-scope yt-live-chat-paid-message-renderer">\n        <div id="single-line" class="style-scope yt-live-chat-paid-message-renderer">\n          <div id="author-name-chip" is-deleted$="[[isDeleted]]" hidden$="[[!data.authorName]]" class="style-scope yt-live-chat-paid-message-renderer">\n            <yt-live-chat-author-chip author-badges="[[data.authorBadges]]" author-name="[[data.authorName]]" dashboard-money-feed="[[dashboardMoneyFeed]]" disable-highlighting="" single-line="" class="style-scope yt-live-chat-paid-message-renderer">\n            </yt-live-chat-author-chip>\n          </div>\n          <div id="leaderboard-badge" class="leaderboard-badge style-scope yt-live-chat-paid-message-renderer"></div>\n          <div id="purchase-amount-column" class="style-scope yt-live-chat-paid-message-renderer">\n            <yt-img-shadow id="currency-img" height="16" hidden$="[[!data.currencyImage.thumbnailDetails]]" thumbnail="[[data.currencyImage.thumbnailDetails]]" width="16" class="style-scope yt-live-chat-paid-message-renderer">\n            </yt-img-shadow>\n            <div id="purchase-amount" class="style-scope yt-live-chat-paid-message-renderer">\n              <yt-formatted-string text="[[data.purchaseAmountText]]" class="style-scope yt-live-chat-paid-message-renderer"></yt-formatted-string>\n            </div>\n          </div>\n        </div>\n      </div>\n      <span id="timestamp" class="style-scope yt-live-chat-paid-message-renderer">[[timestampString]]</span>\n      <div id="gradient-container" class="style-scope yt-live-chat-paid-message-renderer">\n        <div id="gradient" class="style-scope yt-live-chat-paid-message-renderer"></div>\n      </div>\n      <div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope yt-live-chat-paid-message-renderer">\n        <yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="showContextMenu" class="style-scope yt-live-chat-paid-message-renderer">\n          <yt-icon icon="more_vert" class="style-scope yt-live-chat-paid-message-renderer"></yt-icon>\n        </yt-icon-button>\n      </div>\n      <div id="creator-heart-button" class="style-scope yt-live-chat-paid-message-renderer"></div>\n    </div>\n  </div>\n  <div id="content" class="style-scope yt-live-chat-paid-message-renderer">\n    <div id="message" dir="auto" class="style-scope yt-live-chat-paid-message-renderer"></div>\n    <div id="input-container" class="style-scope yt-live-chat-paid-message-renderer">\n      <template is="dom-if" if="[[data.inputField]]" class="style-scope yt-live-chat-paid-message-renderer">\n        <yt-live-chat-text-input-field-renderer id="input-field" data="[[data.inputField.liveChatTextInputFieldRenderer]]" message-input="[[messageInput]]" participants-manager="[[participantsManager]]" class="style-scope yt-live-chat-paid-message-renderer">\n        </yt-live-chat-text-input-field-renderer>\n      </template>\n    </div>\n    <yt-formatted-string id="deleted-state" is-deleted$="[[isDeleted]]" text="[[data.deletedStateMessage]]" class="style-scope yt-live-chat-paid-message-renderer"></yt-formatted-string>\n    <div id="footer" class="style-scope yt-live-chat-paid-message-renderer"></div>\n    <div id="action-buttons" class="style-scope yt-live-chat-paid-message-renderer">\n      <div id="like-button" class="action-button style-scope yt-live-chat-paid-message-renderer"></div>\n      <div id="reply-button" class="action-button style-scope yt-live-chat-paid-message-renderer"></div>\n      <div id="buy-button" class="action-button style-scope yt-live-chat-paid-message-renderer"></div>\n    </div>\n  </div>\n</div>\n<div id="lower-bumper" hidden$="[[hideLowerBumper]]" class="style-scope yt-live-chat-paid-message-renderer"></div>\n<div id="lower-buy-button" hidden$="[[!data.buyButton]]" on-click="onLowerBuyButtonClick" class="style-scope yt-live-chat-paid-message-renderer"></div>\n<div id="inline-action-button-container" class="style-scope yt-live-chat-paid-message-renderer">\n  <div id="inline-action-buttons" class="style-scope yt-live-chat-paid-message-renderer"></div>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;Tmc===void 0&&(Tmc=document.createElement("template"));var h=Tmc;E.call(W,h.content.cloneNode(!0),F.content.firstChild);oq_=F}F=oq_;return F},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var nDM;var ydz;var o9=function(){var F=_.zK.apply(this,arguments)||this;F._noAccessors=!0;return F};
_.k(o9,_.zK);o9.prototype.created=function(){this.ytOpenPopupBehavior.openPopupConfig=_.b0("openPopupConfig")};
_.T([_.J(_.R9.YtOpenPopupBehavior),_.Y("design:type",Object)],o9.prototype,"ytOpenPopupBehavior",void 0);o9=_.T([_.tT()],o9);_.Gf=[_.R9.YtOpenPopupBehavior,o9.prototype];var jca;var YY=[_.BB,wYO,_.lE,_.vB,_.GM,_.doz,_.DP,_.tte,_.yT,frn];_.c("web_watch_get_updated_metadata_response_processing")&&YY.push(_.J7U);_.c("web_continuation_response_processing")&&YY.push(_.fQ);var sNG=new _.NG("RESPONSE_RECEIVED_COMMANDS"),HhY=new _.NG("RESPONSE_RECEIVED_COMMANDS");var A$w="accountDisconnectionEndpoint accountIntegrationEndpoint accountLinkCommand accountUnlinkCommand addToRemoteQueueEndpoint clearRemoteQueueEndpoint insertInRemoteQueueEndpoint offlineVideoEndpoint openPopupAction pingingEndpoint removeFromRemoteQueueEndpoint".split(" "),kxe=["updatedMetadataEndpoint","getBroadcastStatusEndpoint","getLiveAnalyticsEndpoint","getSearchInVideoCommand","ypcLogWalletAnalyticDataEndpoint"],xJR=["GET_UNSEEN_NOTIFICATION_COUNT"];var Yg=function(){var F=_.zK.apply(this,arguments)||this;F._noAccessors=!0;F.serviceEndpointHandlers=[];return F};
_.k(Yg,_.zK);Yg.prototype.created=function(){var F=this;this.endpointHandlerActionMap={"yt-service-request":function(W,E,h,d){var V;return DJY(F.hostElement,W,E,h,d,F.serviceEndpointHandlers,(V=F.onEntitiesUpdated)==null?void 0:V.bind(F))}}};
Yg.prototype.attached=function(){_.G5(_.o_.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
Yg.prototype.detached=function(){_.Yt(_.o_.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
Yg=_.T([_.tT()],Yg);_.i_z=[Yg.prototype];var rdc,TEB=function(){return rdc!==void 0?rdc:rdc=document.createElement("template")};
document.head.appendChild(TEB().content);var oDz;var Gj_=document.head,Ytc=Gj_.appendChild,wvp;if(oDz===void 0){var uuz=document.createElement("template");_.L(uuz,"\x3c!--css-build:shady--\x3e");uuz.content.insertBefore(TEB().content.cloneNode(!0),uuz.content.firstChild);oDz=uuz}wvp=oDz;Ytc.call(Gj_,wvp.content);var Stu,pvU=function(){return Stu!==void 0?Stu:Stu=document.createElement("template")};
document.head.appendChild(pvU().content);var mbu;var KUi=document.head,FHe=KUi.appendChild,WHX;if(mbu===void 0){var EsO=document.createElement("template");_.L(EsO,"\x3c!--css-build:shady--\x3e");EsO.content.insertBefore(pvU().content.cloneNode(!0),EsO.content.firstChild);mbu=EsO}WHX=mbu;FHe.call(KUi,WHX.content);var hOT;_.Hr("itemSectionRenderer","buttonRenderer","ytd-button-renderer");_.Hr("sharingRendererButtons","buttonRenderer","ytd-button-renderer");hOT=_.c("web_button_rework")&&_.l0("BUTTON_REWORK")||_.c("web_button_rework_with_live");_.w5=function(){var F=_.n.apply(this,arguments)||this;F.isPressed=!1;F.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};return F};
_.k(_.w5,_.n);_.N=_.w5.prototype;_.N.created=function(){this.showTooltips=!0};
_.N.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.N.onHintIdChanged=function(){var F=this,W,E,h=(W=this.ytButtonBehavior.data)==null?void 0:(E=W.hint)==null?void 0:E.hintRenderer;if(h&&h.hintId){W=_.Nc(this.hostElement,"yt-get-opened-popups-action");W=(W&&W.length===1?W[0]:[]).length>0;var d=null;h.hintId!=="sponsor-pre-purchase"||W?h.hintId.startsWith("sponsor-post-purchase")&&!W?d=yMX("membership-manage"):h.hintId.startsWith("sponsorships-premium-freebie-pre-purchase")&&!W&&(d=yMX("membership-freebie-join")):d=yMX("membership-join");d&&_.P0.addLowPriorityJob(function(){for(var V=
_.U(d),R=V.next();!R.done;R=V.next())F.ytComponentBehavior.resolveCommand(R.value)})}};
_.N.onPressedStateChanged=function(){this.ytButtonBehavior.setPressedState(this.isPressed)};
_.N.onYtNavigate=function(F){var W=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(F.detail.endpoint);W&&(F.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(W))};
_.N.onYtServiceRequestSent=function(F,W){this.handleServiceRequestActions(W);_.hF(this.hostElement,"yt-service-request-sent-button-renderer")};
_.N.onServiceRequestCompleted=function(F,W){this.handleServiceRequestActions(W);_.hF(this.hostElement,"yt-service-request-completed-button-renderer")};
_.N.updateButton=function(F){var W;if(F=(W=_.D(F,XKB))==null?void 0:W.updatedButton)this.ytButtonBehavior.data=_.D(F,_.jt)};
_.N.handleUpdateButtonAction=function(F){var W=this.ytButtonBehavior.data;W.targetId&&F.updateButtonAction.targetId&&W.targetId===F.updateButtonAction.targetId&&this.updateButton(F)};
_.N.handleServiceRequestActions=function(F){if(F=F.actions)for(var W=0;W<F.length;W++)this.updateButton(F[W])};
_.Sn.Object.defineProperties(_.w5,{template:{configurable:!0,enumerable:!0,get:function(){if(jca===void 0){var F=document.createElement("template");_.L(F,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);jca=F}F=jca;return F}}});
_.w5.prototype.onServiceRequestCompleted=_.w5.prototype.onServiceRequestCompleted;_.w5.prototype.onYtServiceRequestSent=_.w5.prototype.onYtServiceRequestSent;_.w5.prototype.onYtNavigate=_.w5.prototype.onYtNavigate;_.w5.prototype.onPressedStateChanged=_.w5.prototype.onPressedStateChanged;_.w5.prototype.onHintIdChanged=_.w5.prototype.onHintIdChanged;_.T([_.O(),_.Y("design:type",Object)],_.w5.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Object)],_.w5.prototype,"isPressed",void 0);
_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],_.w5.prototype,"ytActionHandlerBehavior",void 0);_.T([_.J(_.gqO.YtButtonBehavior),_.Y("design:type",Object)],_.w5.prototype,"ytButtonBehavior",void 0);_.T([_.J(_.Gf),_.Y("design:type",Object)],_.w5.prototype,"ytdOpenPopupBehavior",void 0);_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],_.w5.prototype,"ytComponentBehavior",void 0);
_.T([_.J(zf.YtRenderButtonBehavior),_.Y("design:type",Object)],_.w5.prototype,"ytRenderButtonBehavior",void 0);_.T([_.ea("data.hint.hintRenderer"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],_.w5.prototype,"onHintIdChanged",null);_.T([_.ea("isPressed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],_.w5.prototype,"onPressedStateChanged",null);
_.T([_.R4("yt-navigate"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],_.w5.prototype,"onYtNavigate",null);_.T([_.R4("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.nQ]),_.Y("design:returntype")],_.w5.prototype,"onYtServiceRequestSent",null);
_.T([_.R4("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.uz]),_.Y("design:returntype")],_.w5.prototype,"onServiceRequestCompleted",null);_.w5=_.T([_.y({is:"ytd-button-renderer",disableElementRegistration:hOT})],_.w5);var uD=function(){var F=_.n.apply(this,arguments)||this;F.modern=_.c("web_button_rework_with_live");F.buttonOverrides={style:"overlay",type:"filled"};return F};
_.k(uD,_.n);_.N=uD.prototype;_.N.configureRendererStamper=function(){return{"data.buyButton":{id:"buy-flow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},"data.lowerBumper":{id:"lower-bumper",mapping:{liveChatItemBumperViewModel:{component:"yt-live-chat-item-bumper-view-model"}}},"data.creatorHeartButton":{id:"creator-heart-button",mapping:{creatorHeartViewModel:{component:"yt-live-chat-creator-heart-view-model"}}}}};
_.N.ready=function(){var F=document.querySelector("yt-live-chat-app");F&&F.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.N.dataChanged=function(){if(this.data&&this.data.sticker){var F=_.m_(this.data.sticker.thumbnails,this.stickerWidth);F||_.lrW(F).thenCatch(function(){_.OB(new _.xC("Failed to load Super Sticker with url",F))})}};
_.N.computeAuthorPhotoSize=function(F){return(F==null?0:F.isV2Style)?32:40};
_.N.computeIsV2Style=function(F){return(F==null?0:F.isV2Style)?!0:!1};
_.N.onStickerLoaded=function(F){var W,E,h;(W=_.oo(F))==null||(E=W.parentNode)==null||(h=E.classList)==null||h.add("sticker-loaded")};
_.N.computeNoveltyImageWidth=function(F){var W,E;if(F==null?0:(W=F.headerOverlayImage)==null?0:(E=W.thumbnails)==null?0:E.length){W=F.headerOverlayImage.thumbnails[0];var h,d;if((h=F.pdgPurchasedNoveltyLoggingDirectives)==null?0:(d=h.loggingDirectives)==null?0:d.trackingParams){var V,R;ywY((V=F.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(R=V.loggingDirectives)==null?void 0:R.trackingParams)}return W.width||0}return 0};
_.N.isDeletedChanged=function(){this.isDeleted&&(this.set("data.detailText",null),this.set("data.superStickerIcon",null),this.set("data.sticker",null))};
_.N.updateStickerStyles=function(){var F=this.data;F&&(F={"--yt-live-chat-paid-sticker-chip-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(F.moneyChipBackgroundColor),"--yt-live-chat-paid-sticker-chip-text-color":this.ytLiveChatItemBehavior.colorFromDecimal(F.moneyChipTextColor),"--yt-live-chat-paid-sticker-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(F.backgroundColor),"--yt-live-chat-disable-highlight-message-author-name-color":this.ytLiveChatItemBehavior.colorFromDecimal(F.authorNameTextColor)},
_.V9(this.hostElement,F))};
_.N.onBuyButtonClick=function(){var F,W=_.D((F=this.data)==null?void 0:F.buyButton,_.jt);W&&!Njb(W.command)&&this.ytRendererBehavior.logExplicitClick(W)};
_.N.shouldSupportWholeItemClick=function(){return!0};
_.Sn.Object.defineProperties(uD.prototype,{stickerWidth:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.stickerDisplayWidth||96}},
stickerHeight:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.stickerDisplayWidth||96}},
hasHeartButton:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!!this.data.creatorHeartButton}},
hideLowerBumper:{configurable:!0,enumerable:!0,get:function(){var F;return((F=this.data)==null?0:F.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
uD.prototype.updateStickerStyles=uD.prototype.updateStickerStyles;uD.prototype.isDeletedChanged=uD.prototype.isDeletedChanged;uD.prototype.onStickerLoaded=uD.prototype.onStickerLoaded;uD.prototype.dataChanged=uD.prototype.dataChanged;_.T([_.J(ciH.YtPdgLiveChatItemBehavior),_.Y("design:type",Object)],uD.prototype,"ytPdgLiveChatItemBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],uD.prototype,"ytRendererBehavior",void 0);
_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],uD.prototype,"ytComponentBehavior",void 0);_.T([_.J(_.bD.YtLiveChatItemBehavior),_.Y("design:type",_.lD)],uD.prototype,"ytLiveChatItemBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],uD.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],uD.prototype,"data",void 0);
_.T([_.O({computed:"computeAuthorPhotoSize(data)"}),_.Y("design:type",Number)],uD.prototype,"authorPhotoSize",void 0);_.T([_.O(),_.Y("design:type",Boolean)],uD.prototype,"isDeleted",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],uD.prototype,"dashboardMoneyFeed",void 0);_.T([_.O({computed:"computeNoveltyImageWidth(data)"}),_.Y("design:type",Number)],uD.prototype,"noveltyWidth",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],uD.prototype,"modern",void 0);
_.T([_.O({reflectToAttribute:!0,computed:"computeIsV2Style(data)"}),_.Y("design:type",Boolean)],uD.prototype,"isV2Style",void 0);_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],uD.prototype,"dataChanged",null);_.T([_.R4("yt-img-shadow-loaded"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],uD.prototype,"onStickerLoaded",null);
_.T([_.a("data"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],uD.prototype,"stickerWidth",null);_.T([_.a("data"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],uD.prototype,"stickerHeight",null);_.T([_.O({reflectToAttribute:!0}),_.a("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],uD.prototype,"hasHeartButton",null);_.T([_.a("data","dashboardMoneyFeed"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],uD.prototype,"hideLowerBumper",null);
_.T([_.ea("isDeleted"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],uD.prototype,"isDeletedChanged",null);_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],uD.prototype,"updateStickerStyles",null);uD=_.T([_.$3({disableElementRegistration:!0,is:"yt-live-chat-paid-sticker-renderer",noInjection:!0})],uD);
_.r(uD,"yt-live-chat-paid-sticker-renderer",function(){if(ydz===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-paid-sticker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_live_chat_paid_sticker_renderer.yt.live.chat.paid.sticker.renderer.css.js--\x3e<div id="card" class="style-scope yt-live-chat-paid-sticker-renderer"><div id="author-info" tabindex="0" class="style-scope yt-live-chat-paid-sticker-renderer"><template is="dom-if" if="[[data.authorPhoto]]" restamp="" class="style-scope yt-live-chat-paid-sticker-renderer"><yt-img-shadow id="author-photo" class="no-transition style-scope yt-live-chat-paid-sticker-renderer" height="[[authorPhotoSize]]" thumbnail="[[data.authorPhoto]]" width="[[authorPhotoSize]]"></yt-img-shadow></template><template is="dom-if" if="[[!data.authorPhoto]]" class="style-scope yt-live-chat-paid-sticker-renderer"><yt-icon id="author-photo" icon="yt-icons:avatar_anonymous" class="style-scope yt-live-chat-paid-sticker-renderer"></yt-icon></template><template is="dom-if" if="[[data.headerOverlayImage]]" restamp="" class="style-scope yt-live-chat-paid-sticker-renderer"><yt-img-shadow id="overlay-image" thumbnail="[[data.headerOverlayImage]]" width="[[noveltyWidth]]" class="style-scope yt-live-chat-paid-sticker-renderer"></yt-img-shadow></template><div id="content" class="style-scope yt-live-chat-paid-sticker-renderer"><span id="timestamp" hidden$="[[!data.timestampUsec]]" class="style-scope yt-live-chat-paid-sticker-renderer">[[timestampString]]</span><div id="content-primary-column" class="style-scope yt-live-chat-paid-sticker-renderer"><div id="author-name-chip" is-deleted$="[[isDeleted]]" hidden$="[[!data.authorName]]" class="style-scope yt-live-chat-paid-sticker-renderer"><yt-live-chat-author-chip author-badges="[[data.authorBadges]]" author-name="[[data.authorName]]" dashboard-money-feed="[[dashboardMoneyFeed]]" disable-highlighting="" single-line="" class="style-scope yt-live-chat-paid-sticker-renderer"></yt-live-chat-author-chip></div><span id="price-column" class="style-scope yt-live-chat-paid-sticker-renderer"><yt-formatted-string id="purchase-amount-chip" text="[[data.purchaseAmountText]]" class="style-scope yt-live-chat-paid-sticker-renderer"></yt-formatted-string><yt-formatted-string id="deleted-state" is-deleted$="[[isDeleted]]" text="[[data.deletedStateMessage]]" class="style-scope yt-live-chat-paid-sticker-renderer"></yt-formatted-string></span></div></div></div><div id="sticker-container" hidden$="[[!data.sticker]]" class="style-scope yt-live-chat-paid-sticker-renderer"><yt-img-shadow id="sticker" height="[[stickerHeight]]" hidden$="[[!data.sticker]]" notify-on-loaded="" tabindex="0" thumbnail="[[data.sticker]]" width="[[stickerWidth]]" class="style-scope yt-live-chat-paid-sticker-renderer"></yt-img-shadow></div><yt-formatted-string id="dashboard-deleted-state" is-deleted$="[[isDeleted]]" text="[[data.deletedStateMessage]]" class="style-scope yt-live-chat-paid-sticker-renderer"></yt-formatted-string><div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope yt-live-chat-paid-sticker-renderer"><yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="showContextMenu" class="style-scope yt-live-chat-paid-sticker-renderer"><yt-icon icon="more_vert" class="style-scope yt-live-chat-paid-sticker-renderer"></yt-icon></yt-icon-button></div><div id="gradient-container" class="style-scope yt-live-chat-paid-sticker-renderer"><div id="gradient" class="style-scope yt-live-chat-paid-sticker-renderer"></div></div><div id="creator-heart-button" class="style-scope yt-live-chat-paid-sticker-renderer"></div></div><div id="lower-bumper" hidden$="[[hideLowerBumper]]" class="style-scope yt-live-chat-paid-sticker-renderer"></div><div id="buy-flow-button" hidden$="[[!data.buyButton]]" on-click="onBuyButtonClick" class="style-scope yt-live-chat-paid-sticker-renderer"></div><div id="inline-action-button-container" class="style-scope yt-live-chat-paid-sticker-renderer"><div id="inline-action-buttons" class="style-scope yt-live-chat-paid-sticker-renderer"></div></div>');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);var W=F.content,E=W.insertBefore;nDM===void 0&&(nDM=document.createElement("template"));var h=nDM;E.call(W,h.content.cloneNode(!0),F.content.firstChild);ydz=F}F=ydz;return F},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var dge;var NSu;var VZa,UgB=function(){return VZa!==void 0?VZa:VZa=document.createElement("template")};
document.head.appendChild(UgB().content);var RO_,eOc=function(){return RO_!==void 0?RO_:RO_=document.createElement("template")};
document.head.appendChild(eOc().content);var MZ_;var gsX,QFe=function(){return gsX!==void 0?gsX:gsX=document.createElement("template")};
document.head.appendChild(QFe().content);var zOe;var tZu=document.head,CeH=tZu.appendChild,BS_;if(zOe===void 0){var vsM=document.createElement("template");_.L(vsM,"\x3c!--css-build:shady--\x3e");vsM.content.insertBefore(QFe().content.cloneNode(!0),vsM.content.firstChild);zOe=vsM}BS_=zOe;CeH.call(tZu,BS_.content);var Ica=document.head,cwO=Ica.appendChild,Dgi;if(MZ_===void 0){var SB=document.createElement("template");_.L(SB,"\x3c!--css-build:shady--\x3e");SB.content.insertBefore(eOc().content.cloneNode(!0),SB.content.firstChild);SB.content.insertBefore(UgB().content.cloneNode(!0),SB.content.firstChild);MZ_=SB}Dgi=MZ_;cwO.call(Ica,Dgi.content);var p7=function(){var F=_.zK.apply(this,arguments)||this;F.focusedIndex=0;F.verticalOffset=0;F.verticalAlign="top";F.dynamicAlign=!0;return F};
_.k(p7,_.zK);p7.prototype.emojiUrl=function(F){F=_.a9(this.emojiManager,F);if(!F)return"";var W;F=(W=F.image)==null?void 0:W.thumbnails;return _.m_(F,24)||""};
var xgO=function(F){var W;F.emojiVariants&&(W=F.data)!=null&&W.target&&_.wT(F,function(){F.set("verticalOffset",-1*F.hostElement.clientHeight);var E=_.Z(F.hostElement).querySelector("img");E&&E.focus()})};
_.N=p7.prototype;_.N.onKeyboardEnter=function(){};
_.N.onVerticalOffsetOrPositionTargetChanged=function(){this.ironOverlayBehavior.position()};
_.N.onEmojiVariantsChanged=function(){this.emojiVariants&&(this.ironOverlayBehavior.noCancelOnOutsideClick=!0,this.ironOverlayBehavior.open())};
_.N.onKeyDown=function(F){switch(F.keyCode){case 13:this.onKeyboardEnter();F.preventDefault();break;case 40:this.changeFocus(1);F.preventDefault();break;case 38:this.changeFocus(-1);F.preventDefault();break;case 27:this.ironOverlayBehavior.restoreFocusOnClose=!0,this.ironOverlayBehavior.close()}};
_.N.onYtEmojiSelect=function(F){var W=this,E,h,d,V,R,M,g,t;return _.e(function(C){if(C.nextAddress==1)return h=(E=W.data)==null?void 0:E.emoji,R=((d=h)==null?void 0:d.stickyPrefId)||((V=h)==null?void 0:V.emojiId),g=(M=F.detail)==null?void 0:M.emojiId,R&&g&&R!==g?_.Q(C,(t=W.emojiManager)==null?void 0:qtz(t,h,g),2):C.return();_.dW(W.hostElement,"yt-live-chat-emoji-sticky-preference-changed",[h,g]);_.gG(C)})};
_.N.changeFocus=function(F){this.emojiVariants&&this.emojiVariants.length&&(this.focusedIndex=(this.focusedIndex+F+this.emojiVariants.length)%this.emojiVariants.length,this.focusedIndex<this.emojiVariants.length&&(F=_.Z(this.hostElement).querySelector("#variants"))&&F.children[this.focusedIndex].focus())};
_.Sn.Object.defineProperties(p7.prototype,{positionTarget:{configurable:!0,enumerable:!0,get:function(){var F;return((F=this.data)==null?void 0:F.target)||this.hostElement.parentElement}},
isPositioned:{configurable:!0,enumerable:!0,get:function(){return this.data&&!this.data.target||!!this.verticalOffset}}});
p7.prototype.onYtEmojiSelect=p7.prototype.onYtEmojiSelect;p7.prototype.onKeyDown=p7.prototype.onKeyDown;p7.prototype.onEmojiVariantsChanged=p7.prototype.onEmojiVariantsChanged;p7.prototype.onVerticalOffsetOrPositionTargetChanged=p7.prototype.onVerticalOffsetOrPositionTargetChanged;_.T([_.J(_.my),_.Y("design:type",Object)],p7.prototype,"ironOverlayBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],p7.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",_.Jq)],p7.prototype,"emojiManager",void 0);
_.T([_.O(),_.Y("design:type",Object)],p7.prototype,"emojiVariants",void 0);_.T([_.O(),_.Y("design:type",Object)],p7.prototype,"focusedIndex",void 0);_.T([_.a("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],p7.prototype,"positionTarget",null);_.T([_.O({reflectToAttribute:!0}),_.a("verticalOffset","data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],p7.prototype,"isPositioned",null);_.T([_.O(),_.Y("design:type",Object)],p7.prototype,"verticalOffset",void 0);
_.T([_.O(),_.Y("design:type",Object)],p7.prototype,"verticalAlign",void 0);_.T([_.O(),_.Y("design:type",Object)],p7.prototype,"dynamicAlign",void 0);_.T([_.ea("verticalOffset","positionTarget"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],p7.prototype,"onVerticalOffsetOrPositionTargetChanged",null);_.T([_.ea("emojiVariants"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],p7.prototype,"onEmojiVariantsChanged",null);
_.T([_.R4("keydown"),_.Y("design:type",Function),_.Y("design:paramtypes",[KeyboardEvent]),_.Y("design:returntype")],p7.prototype,"onKeyDown",null);_.T([_.R4("yt-emoji-select"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype",Promise)],p7.prototype,"onYtEmojiSelect",null);p7=_.T([_.tT()],p7);var kQe=[p7.prototype];var AwH;var sFu;var LHc=/medium-light|medium-dark|light|medium|dark/,qyM=/[\w-]*?(?=\/\w+\/\w+\.(?:svg|png)$)/,$gi=new Map([["dark","\ud83c\udfff"],["medium-dark","\ud83c\udffe"],["medium","\ud83c\udffd"],["medium-light","\ud83c\udffc"],["light","\ud83c\udffb"]]),m2=function(){var F=_.n.apply(this,arguments)||this;F.userSelection={left:null,right:null};F.scrollAction="lock";F.isEmojiDraftInProgress=!1;return F};
_.k(m2,_.n);_.N=m2.prototype;_.N.onClick=function(F){F=_.oo(F);F instanceof HTMLImageElement&&this.selectOrUpdateEmoji(F)};
_.N.selectOrUpdateEmoji=function(F){var W=F.getAttribute("selection");W&&(W==="default"?_.hF(this.hostElement,"yt-emoji-select",_.a9(this.emojiManager,F.id)):W==="left"?this.userSelection=Object.assign({},this.userSelection,{left:F.src}):W==="right"?this.userSelection=Object.assign({},this.userSelection,{right:F.src}):W==="user"&&this.userSelection.left&&this.userSelection.right&&_.hF(this.hostElement,"yt-emoji-select",_.a9(this.emojiManager,F.id)))};
_.N.openSelector=function(){this.ironOverlayBehavior.restoreFocusOnClose=!0;this.ironOverlayBehavior.open()};
_.N.onMultiSelectorThumbnailRowChanged=function(){var F,W,E;((F=this.data)==null?0:(W=F.emoji)==null?0:(E=W.multiSelectorThumbnailRow)==null?0:E.length)&&this.openSelector()};
_.N.getThumbnailFromEmojiRow=function(F){var W,E;return(F==null?void 0:(W=F.thumbnails)==null?void 0:(E=W[0])==null?void 0:E.url)||""};
_.N.getEmojiAltTextForPartialSelector=function(F){var W;return((W=this.getThumbnailFromEmojiRow(F).match(qyM))==null?void 0:W[0])||""};
_.N.getEmojiAltTextForDraftEmoji=function(){return this.composedEmojiSelection?this.composedEmojiSelection.emojiId||"":""};
_.N.getDraftEmojiAriaRole=function(){return this.composedEmojiSelection?"option":""};
_.N.getRowSelection=function(F){return["left","right"][F]};
_.N.getIdFromComposedEmoji=function(F){return(F==null?void 0:F.emojiId)||""};
_.N.getEmojiFromPartialSelections=function(F,W){if(!F&&!W)return null;var E,h,d=(E=this.data)==null?void 0:(h=E.emoji)==null?void 0:h.variantIds;if(!d||!d.length)return null;var V;F=(V=F.match(LHc))==null?void 0:V[0];var R;W=(R=W.match(LHc))==null?void 0:R[0];if(!F||!W)return null;var M=$gi.get(F);R=$gi.get(W);if(M===R){R=Array.from($gi.values()).filter(function(t){return t!==M}).join("|");
var g=new RegExp("^((?!("+R+")).)*"+M+"$")}else g=new RegExp(M+".*"+R);return(d=d.find(function(t){return g.test(t)}))&&_.a9(this.emojiManager,d)||null};
_.N.onUserSelectionSrcLoad=function(){if(!this.isEmojiDraftInProgress&&this.data){var F,W=this.ytEmojiSelectorBehavior.emojiUrl(((F=this.data.emoji)==null?void 0:F.emojiId)||"");_.Z(this.hostElement).querySelector('[selection="user"]').src.includes(W)||(this.isEmojiDraftInProgress=!0)}};
_.N.onDomChange=function(){xgO(this.ytEmojiSelectorBehavior)};
_.N.getFocusableElements=function(){return _.Z(this.hostElement).querySelectorAll("img").filter(function(F){return F.getAttribute("role")==="option"})};
_.N.changeFocus=function(F){var W=this.getFocusableElements();W!=null&&W.length&&(this.ytEmojiSelectorBehavior.focusedIndex=(this.ytEmojiSelectorBehavior.focusedIndex+F+W.length)%W.length,this.ytEmojiSelectorBehavior.focusedIndex<W.length&&(F=W[this.ytEmojiSelectorBehavior.focusedIndex])&&F.focus())};
_.N.onKeyboardEnter=function(){var F=this.getFocusableElements();F!=null&&F.length&&(F=F[this.ytEmojiSelectorBehavior.focusedIndex])&&F instanceof HTMLImageElement&&(this.selectOrUpdateEmoji(F),this.ytEmojiSelectorBehavior.changeFocus(0))};
_.Sn.Object.defineProperties(m2.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var F=this,W,E,h;return this.emojiManager&&((W=this.data)==null?0:(E=W.emoji)==null?0:(h=E.variantIds)==null?0:h.length)?this.data.emoji.variantIds.map(function(d){return!!d&&_.a9(F.emojiManager,d)}).filter(function(d){return!!d}):[]}},
composedEmojiSelection:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return null;var F,W=(F=this.userSelection)==null?void 0:F.left,E;F=(E=this.userSelection)==null?void 0:E.right;return W&&F?this.getEmojiFromPartialSelections(W,F):null}},
draftEmojiUrl:{configurable:!0,enumerable:!0,get:function(){var F;if((F=this.composedEmojiSelection)==null?0:F.emojiId)return this.ytEmojiSelectorBehavior.emojiUrl(this.composedEmojiSelection.emojiId)||"";if(!this.data)return"";var W;F=(W=this.userSelection)==null?void 0:W.left;var E;W=(E=this.userSelection)==null?void 0:E.right;if(!F&&!W){var h;return this.ytEmojiSelectorBehavior.emojiUrl(((h=this.data.emoji)==null?void 0:h.emojiId)||"")}return F&&!W?F:!F&&W?W:""}}});
m2.prototype.onMultiSelectorThumbnailRowChanged=m2.prototype.onMultiSelectorThumbnailRowChanged;m2.prototype.onClick=m2.prototype.onClick;_.T([_.J(_.my),_.Y("design:type",Object)],m2.prototype,"ironOverlayBehavior",void 0);_.T([_.J(kQe),_.Y("design:type",Object)],m2.prototype,"ytEmojiSelectorBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],m2.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",_.Jq)],m2.prototype,"emojiManager",void 0);
_.T([_.O(),_.Y("design:type",Object)],m2.prototype,"userSelection",void 0);_.T([_.O(),_.Y("design:type",Object)],m2.prototype,"scrollAction",void 0);_.T([_.O(),_.Y("design:type",Object)],m2.prototype,"isEmojiDraftInProgress",void 0);_.T([_.a("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],m2.prototype,"emojiVariants",null);_.T([_.a("data","userSelection"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],m2.prototype,"composedEmojiSelection",null);
_.T([_.R4("click"),_.Y("design:type",Function),_.Y("design:paramtypes",[MouseEvent]),_.Y("design:returntype")],m2.prototype,"onClick",null);_.T([_.ea("data.emoji.multiSelectorThumbnailRow"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],m2.prototype,"onMultiSelectorThumbnailRowChanged",null);_.T([_.a("data","userSelection","composedEmojiSelection"),_.Y("design:type",String),_.Y("design:paramtypes",[])],m2.prototype,"draftEmojiUrl",null);
m2=_.T([_.$3({is:"yt-emoji-multi-person-selector",disableElementRegistration:!0})],m2);
_.r(m2,"yt-emoji-multi-person-selector",function(){if(sFu===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-emoji-multi-person-selector--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_emoji_multi_person_selector.yt.emoji.multi.person.selector.css.js--\x3e<div id="options" class="style-scope yt-emoji-multi-person-selector">\n  <template is="dom-repeat" id="repeat" items="[[data.emoji.multiSelectorThumbnailRow]]" notify-dom-change="" as="row" index-as="rowIndex" on-dom-change="onDomChange" class="style-scope yt-emoji-multi-person-selector">\n    <div class="variant-thumbnail-row style-scope yt-emoji-multi-person-selector">\n      <template is="dom-repeat" id="thumbnail-row-repeat" items="[[row.thumbnails]]" as="thumbnail" class="style-scope yt-emoji-multi-person-selector">\n        \n        <img height="24" role="option" alt="[[getEmojiAltTextForPartialSelector(thumbnail)]]" src$="[[getThumbnailFromEmojiRow(thumbnail)]]" tabindex="-1" width="24" selection$="[[getRowSelection(rowIndex)]]" class="style-scope yt-emoji-multi-person-selector">\n      </template>\n    </div>\n  </template>\n</div>\n<div id="selections" class="style-scope yt-emoji-multi-person-selector">\n\n  <img id="[[data.emoji.emojiId]]" class="default-selection style-scope yt-emoji-multi-person-selector" alt="[[data.emoji.emojiId]]" height="36" role="option" src$="[[emojiUrl(data.emoji.emojiId)]]" tabindex="-1" width="36" selection="default">\n  <img id$="[[getIdFromComposedEmoji(composedEmojiSelection)]]" class="user-selection style-scope yt-emoji-multi-person-selector" is-draft$="[[isEmojiDraftInProgress]]" alt="[[getEmojiAltTextForDraftEmoji(composedEmojiSelection)]]" height="36" role$="[[getDraftEmojiAriaRole(composedEmojiSelection)]]" src$="[[draftEmojiUrl]]" selection="user" tabindex="-1" width="36" on-load="onUserSelectionSrcLoad">\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;AwH===void 0&&(AwH=document.createElement("template"));var h=AwH;E.call(W,h.content.cloneNode(!0),F.content.firstChild);sFu=F}F=sFu;return F},{mode:2});var Zac;var X9H;var K7=function(){var F=_.n.apply(this,arguments)||this;F.tooltip_=null;return F};
_.k(K7,_.n);_.N=K7.prototype;_.N.dataChanged_=function(){var F;if((F=this.data)==null?0:F.tooltip)this.tooltip_||(this.tooltip_=document.createElement("tp-yt-paper-tooltip"),_.Z(this.hostElement).querySelector("#button").appendChild(this.tooltip_)),(0,_.N3)(this.tooltip_).textContent=this.data.tooltip};
_.N.computeTargetId=function(){var F;return((F=this.data)==null?void 0:F.targetId)||""};
_.N.computeId_=function(F){return F};
_.N.computeIcon_=function(F){return _.Vd(F)};
_.N.onTap_=function(){this.active=!this.active;_.hF(this.hostElement,"yt-emoji-picker-select-category",{categoryId:this.hostElement.id})};
_.N.activeChangedForBinding=function(){this.hostElement.dispatchEvent(new _.yR("active-changed",this.active))};
_.Sn.Object.defineProperties(K7.prototype,{iconFilled:{configurable:!0,enumerable:!0,get:function(){var F,W;if((F=this.data)==null?0:(W=F.icon)==null?0:W.iconType)return this.data.icon.iconType==="SUPER_STICKER";var E,h;return((E=this.data)==null?void 0:(h=E.icon)==null?void 0:h.iconType)==="VIDEO_YOUTUBE"?!0:!1}}});
K7.prototype.activeChangedForBinding=K7.prototype.activeChangedForBinding;K7.prototype.dataChanged_=K7.prototype.dataChanged_;_.T([_.J(_.fy.YtLiveChatTooltipTargetingBehavior),_.Y("design:type",Object)],K7.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],K7.prototype,"data",void 0);_.T([_.O({computed:"computeId_(data.categoryId)",reflectToAttribute:!0}),_.Y("design:type",String)],K7.prototype,"id",void 0);
_.T([_.O({computed:"computeTargetId(data.targetId)"}),_.Y("design:type",String)],K7.prototype,"targetId",void 0);_.T([_.O({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],K7.prototype,"active",void 0);_.T([_.O({readOnly:!0,computed:"computeIcon_(data.icon.iconType)"}),_.Y("design:type",String)],K7.prototype,"icon",void 0);_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],K7.prototype,"dataChanged_",null);
_.T([_.a("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],K7.prototype,"iconFilled",null);_.T([_.ea("active"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],K7.prototype,"activeChangedForBinding",null);K7=_.T([_.$3({is:"yt-emoji-picker-category-button-renderer",disableElementRegistration:!0})],K7);
_.r(K7,"yt-emoji-picker-category-button-renderer",function(){if(X9H===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-emoji-picker-category-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_emoji_picker_category_button_renderer.yt.emoji.picker.category.button.renderer.css.js--\x3e<yt-icon-button id="button" label="[[data.accessibility.accessibilityData.label]]" on-tap="onTap_" class="style-scope yt-emoji-picker-category-button-renderer">\n  <yt-icon default-to-filled="[[iconFilled]]" icon="[[icon]]" class="style-scope yt-emoji-picker-category-button-renderer"></yt-icon>\n</yt-icon-button>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;Zac===void 0&&(Zac=document.createElement("template"));var h=Zac;E.call(W,h.content.cloneNode(!0),F.content.firstChild);X9H=F}F=X9H;return F},{mode:2});var Ha_;var Peu;var Fw=function(){var F=_.n.apply(this,arguments)||this;F.ariaLabel=null;F.ariaActivedescendant=null;F.actionMap={"yt-live-chat-emoji-skin-tone-changed":"emojiSkinToneChanged_","yt-close-emoji-variant-selector":"onCloseEmojiVariantSelector","yt-live-chat-emoji-sticky-preference-changed":"onEmojiStickyPreferenceChanged"};F.JSC$11932_ignoreNextFocus_=!1;F.longPressTimeoutId=-1;return F};
_.k(Fw,_.n);_.N=Fw.prototype;_.N.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","listbox");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.N.detached=function(){clearTimeout(this.longPressTimeoutId)};
_.N.emojiChanged_=function(){this.changeFocus_(0,!1);for(var F=_.z4(),W=0;W<this.emoji.length;W++){var E={veType:88013,elementIndex:W},h=this.emoji[W];h.isCustomEmoji&&(h=document.querySelector(("#"+h.emojiId).replace("/","\\/")))&&(E=_.Qd(F,E))&&(h.visualElement=E)}};
_.N.emojiManagerChanged_=function(){this.skinTone=this.emojiManager.skinTone};
_.N.disableIncrementalLoadingChanged_=function(){this.disableIncrementalLoading&&(this.domRepeatTargetFramerate=this.domRepeatInitialCount=0)};
_.N.emojiSkinToneChanged_=function(F){this.skinTone=F};
_.N.dataChanged=function(){this.data&&this.data.emojiData&&kju(this.emojiManager,this.data.emojiData)};
_.N.emojiUrl=function(F){F=this.getEmoji(F);if(!F)return"";var W;F=(W=F.image)==null?void 0:W.thumbnails;return _.m_(F,24)||""};
_.N.emojiAlt=function(F){var W=this.get("image.accessibility.accessibilityData.label",F);return W?W:F.isCustomEmoji?F.shortcuts[0]:F.emojiId};
_.N.emojiAriaLabel=function(F){return F.shortcuts?F.shortcuts[0]:""};
_.N.emojiAriaSelected=function(F,W,E){return F&&E==W?"true":"false"};
_.N.getEmoji=function(F){if(this.emojiManager)return this.shouldUseStickyPreferences?scM(this.emojiManager,F):f7(this.emojiManager,F)};
_.N.computeId_=function(F){return F.categoryId||""};
_.N.computeEmoji=function(F){var W=this;return this.emojiManager?F.emojiIds?F.emojiIds.map(function(E){return E?_.a9(W.emojiManager,E):null}).filter(n_o):F.emojiData?F.emojiData.map(function(E){var h=!!E.emojiId&&_.a9(W.emojiManager,E.emojiId);
return h?Object.assign({},h,E):null}).filter(n_o):[]:[]};
_.N.emojiLoading=function(){return this.data&&this.data.imageLoadingLazy?"lazy":"eager"};
_.N.computeAriaLabel_=function(F){return _.Yr(F)};
_.N.computeAriaActivedescendant_=function(F,W){return F&&F[W]?F[W].emojiId||"":""};
_.N.handleLongPressEmojiWithVariants=function(F,W){this.changeFocusToEmoji(F.emojiId,!1);this.openVariantSelector(F,W)};
_.N.onMouseDown=function(F){var W=this;this.hostElement!==document.activeElement&&(this.JSC$11932_ignoreNextFocus_=!0);if(F.button===0){var E=_.oo(F);if(E instanceof HTMLImageElement){var h=_.Z(this.hostElement).querySelector("#repeat").itemForElement(E);this.emojiContainsVariants(h)&&(this.longPressTimeoutId=setTimeout(function(){W.handleLongPressEmojiWithVariants(h,E)},500))}}};
_.N.onMouseUp=function(){clearTimeout(this.longPressTimeoutId)};
_.N.onFocus=function(){this.JSC$11932_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$11932_ignoreNextFocus_=!1};
_.N.onBlur_=function(){this.showFocus=!1};
_.N.emojiContainsVariants=function(F){return!!(F&&F.variantIds&&F.variantIds.length)};
_.N.onClick=function(F){clearTimeout(this.longPressTimeoutId);F=_.oo(F);if(F instanceof HTMLImageElement){var W=F.id;this.changeFocusToEmoji(W,!1);var E=this.getEmoji(W),h;if(h=this.shouldUseStickyPreferences&&this.emojiContainsVariants(E)){var d;h=!((d=this.emojiManager.emojiMap[W])!=null&&d.stickyPrefId)}h?(d=_.Z(this.hostElement).querySelector("#repeat").itemForElement(F),this.openVariantSelector(d,F)):_.hF(this.hostElement,"yt-emoji-select",E)}};
_.N.isActiveEmojiWithVariants=function(F,W){return F&&W?W.stickyPrefId?F===W.stickyPrefId:F===W.emojiId:!1};
_.N.onCloseEmojiVariantSelector=function(F){this.activeEmojiWithVariantsId===F&&(this.activeEmojiWithVariantsId="")};
_.N.onMouseOver_=function(F){F=_.oo(F);F instanceof HTMLImageElement&&_.hF(this.hostElement,"yt-emoji-hover",_.a9(this.emojiManager,F.id))};
_.N.changeFocus_=function(F,W){this.focusedIndex=(this.focusedIndex+F+this.emoji.length)%this.emoji.length;this.focusedIndex<this.emoji.length&&(F=this.emoji[this.focusedIndex],W&&(this.showFocus=!0,_.Z(this.hostElement).querySelector("#emoji").children[this.focusedIndex].scrollIntoView(!1),_.hF(this.hostElement,"yt-emoji-hover",F)))};
_.N.changeFocusToEmoji=function(F,W){if(F){var E=this.emoji.findIndex(function(h){return h.emojiId===F});
E!==-1&&this.changeFocus_(E-this.focusedIndex,W)}};
_.N.onKeyDown_=function(F){switch(F.keyCode){case 13:if(this.focusedIndex<this.emoji.length){var W=this.emoji[this.focusedIndex];if(W&&W.emojiId){if(this.emojiContainsVariants(W)){var E=_.Z(this.hostElement).querySelectorAll("img")[this.focusedIndex];this.openVariantSelector(W,E)}else _.hF(this.hostElement,"yt-emoji-select",f7(this.emojiManager,W.emojiId)),this.hostElement.focus();F.preventDefault()}}break;case 40:this.changeFocus_(1,!0);F.preventDefault();break;case 38:this.changeFocus_(-1,!0),F.preventDefault()}};
_.N.onEmojiStickyPreferenceChanged=function(F,W){this.shouldUseStickyPreferences&&this.activeEmojiWithVariantsId&&F.emojiId&&F.variantIds&&F.variantIds.includes(W)&&this.activeEmojiWithVariantsId!==W&&this.setStickyEmojiPreference(F.emojiId,W)};
_.N.openVariantSelector=function(F,W){this.activeEmojiWithVariantsId=F.stickyPrefId||F.emojiId||"";_.hF(this.hostElement,"yt-show-emoji-variant-selector",{emojiData:F,target:W})};
_.N.setStickyEmojiPreference=function(F,W){if(this.data){var E=this.emoji.findIndex(function(d){return d.emojiId===F});
if(E!==-1){var h=this.emoji[E];h.stickyPrefId=W;this.set("emoji."+E,Object.assign({},h));this.activeEmojiWithVariantsId=W}}};
Fw.prototype.onKeyDown_=Fw.prototype.onKeyDown_;Fw.prototype.onMouseOver_=Fw.prototype.onMouseOver_;Fw.prototype.onClick=Fw.prototype.onClick;Fw.prototype.onBlur_=Fw.prototype.onBlur_;Fw.prototype.onFocus=Fw.prototype.onFocus;Fw.prototype.onMouseUp=Fw.prototype.onMouseUp;Fw.prototype.onMouseDown=Fw.prototype.onMouseDown;Fw.prototype.dataChanged=Fw.prototype.dataChanged;Fw.prototype.disableIncrementalLoadingChanged_=Fw.prototype.disableIncrementalLoadingChanged_;Fw.prototype.emojiManagerChanged_=Fw.prototype.emojiManagerChanged_;
Fw.prototype.emojiChanged_=Fw.prototype.emojiChanged_;_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],Fw.prototype,"ytActionHandlerBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],Fw.prototype,"data",void 0);_.T([_.O({computed:"computeId_(data)"}),_.Y("design:type",String)],Fw.prototype,"id",void 0);_.T([_.O({computed:"computeEmoji(data)"}),_.Y("design:type",Array)],Fw.prototype,"emoji",void 0);_.T([_.O(),_.Y("design:type",Number)],Fw.prototype,"skinTone",void 0);
_.T([_.O(),_.Y("design:type",_.Jq)],Fw.prototype,"emojiManager",void 0);_.T([_.O(),_.Y("design:type",Boolean)],Fw.prototype,"disableIncrementalLoading",void 0);_.T([_.O({value:0}),_.Y("design:type",Number)],Fw.prototype,"focusedIndex",void 0);_.T([_.O({value:!1}),_.Y("design:type",Boolean)],Fw.prototype,"showFocus",void 0);_.T([_.O({reflectToAttribute:!0,computed:"computeAriaLabel_(data.title)"}),_.Y("design:type",Object)],Fw.prototype,"ariaLabel",void 0);
_.T([_.O({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(emoji, focusedIndex)"}),_.Y("design:type",Object)],Fw.prototype,"ariaActivedescendant",void 0);_.T([_.O({value:60}),_.Y("design:type",Number)],Fw.prototype,"domRepeatTargetFramerate",void 0);_.T([_.O({value:1}),_.Y("design:type",Number)],Fw.prototype,"domRepeatInitialCount",void 0);_.T([_.O({value:""}),_.Y("design:type",String)],Fw.prototype,"activeEmojiWithVariantsId",void 0);
_.T([_.O({value:!1}),_.Y("design:type",Boolean)],Fw.prototype,"shouldUseStickyPreferences",void 0);_.T([_.ea("emoji"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Fw.prototype,"emojiChanged_",null);_.T([_.ea("emojiManager"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Fw.prototype,"emojiManagerChanged_",null);
_.T([_.ea("disableIncrementalLoading"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Fw.prototype,"disableIncrementalLoadingChanged_",null);_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Fw.prototype,"dataChanged",null);_.T([_.R4("mousedown"),_.Y("design:type",Function),_.Y("design:paramtypes",[Object]),_.Y("design:returntype")],Fw.prototype,"onMouseDown",null);
_.T([_.R4("mouseup"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Fw.prototype,"onMouseUp",null);_.T([_.R4("focus"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Fw.prototype,"onFocus",null);_.T([_.R4("blur"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Fw.prototype,"onBlur_",null);
_.T([_.R4("click"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],Fw.prototype,"onClick",null);_.T([_.R4("mouseover"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],Fw.prototype,"onMouseOver_",null);_.T([_.R4("keydown"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],Fw.prototype,"onKeyDown_",null);
Fw=_.T([_.$3({is:"yt-emoji-picker-category-renderer",disableElementRegistration:!0})],Fw);
_.r(Fw,"yt-emoji-picker-category-renderer",function(){if(Peu===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-emoji-picker-category-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_emoji_picker_category_renderer.yt.emoji.picker.category.renderer.css.js--\x3e<yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope yt-emoji-picker-category-renderer"></yt-formatted-string><div class$="[[data.categoryType]] style-scope yt-emoji-picker-category-renderer" id="emoji" role="listbox" aria-label="[[computeAriaLabel_(data.title)]]"><template is="dom-repeat" id="repeat" items="[[emoji]]" initial-count="[[domRepeatInitialCount]]" target-framerate="[[domRepeatTargetFramerate]]" class="style-scope yt-emoji-picker-category-renderer"><img id="[[item.emojiId]]" alt="[[emojiAlt(item)]]" aria-label$="[[emojiAriaLabel(item)]]" aria-selected$="[[emojiAriaSelected(showFocus, focusedIndex, index)]]" contains-variants$="[[emojiContainsVariants(item)]]" height="24" is-active-emoji-with-variants$="[[isActiveEmojiWithVariants(activeEmojiWithVariantsId, item)]]" loading$="[[emojiLoading()]]" role="option" src$="[[emojiUrl(item.emojiId, skinTone)]]" width="24" class="style-scope yt-emoji-picker-category-renderer"></template></div>');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;Ha_===void 0&&(Ha_=document.createElement("template"));var h=Ha_;E.call(W,h.content.cloneNode(!0),F.content.firstChild);Peu=F}F=Peu;return F},{mode:2});var JwU;var aci;var fcT;var OaT;var WN=function(){var F=_.n.apply(this,arguments)||this;F.ariaLabel=null;F.ariaActivedescendant=null;F.getFormattedStringRawText=_.Yr;F.JSC$11938_ignoreNextFocus_=!1;return F};
_.k(WN,_.n);_.N=WN.prototype;_.N.attached=function(){this.hostElement.hasAttribute("aria-live")||this.hostElement.setAttribute("aria-live","polite");this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","listbox");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.N.emojiUrl=function(F){var W,E;F=(W=f7(this.emojiManager,F,!0))==null?void 0:(E=W.image)==null?void 0:E.thumbnails;return _.m_(F,24)||""};
_.N.emojiAlt=function(F){var W=this.get("image.accessibility.accessibilityData.label",F);return W?W:F.isCustomEmoji?F.shortcuts[0]:F.emojiId};
_.N.emojiId=function(F){return"emoji"+F};
_.N.computeId_=function(F){return F.categoryId||""};
_.N.computeAriaActivedescendant_=function(F){return this.emoji&&F<this.emoji.length?this.emojiId(F):""};
_.N.emojiChanged_=function(){this.changeFocus_(0,!1);for(var F=_.z4(),W=0;W<this.emoji.length;W++){var E={veType:88013,elementIndex:W},h=this.emoji[W];h.isCustomEmoji&&(h=document.querySelector(("#"+h.emojiId).replace("/","\\/")))&&(E=_.Qd(F,E))&&(h.visualElement=E)}};
_.N.computeEmoji_=function(F){var W=this;return this.emojiManager?F.emojiIds.map(function(E){return _.a9(W.emojiManager,E,!0)}).filter(y$o):[]};
_.N.titleOffsetChanged_=function(){var F=this.hostElement.getBoundingClientRect(),W=_.Z(this.hostElement).querySelector("#title").getBoundingClientRect();F=Math.max(0,Math.min(this.titleOffset,F.height-W.height));_.Z(this.hostElement).querySelector("#title").style.top=F+"px"};
_.N.onEmojiMouseOver_=function(F){_.hF(this.hostElement,"yt-emoji-hover",F.model.item)};
_.N.onEmojiTap_=function(F){this.data.command&&(F=w9o(_.WZ().resolve(_.Fd(r3)),this.data.command,F),_.hF(this.hostElement,"yt-navigate",F))};
_.N.emojiAriaLabel=function(F){return F.shortcuts[0]};
_.N.emojiAriaSelected=function(F,W,E){return F&&E==W?"true":"false"};
_.N.changeFocus_=function(F,W){var E=this.emoji.length;this.focusedIndex=(this.focusedIndex+F+E)%E;F=this.emoji[this.focusedIndex];if(W){var h;(h=_.Z(this.hostElement).querySelector("#"+this.emojiId(this.focusedIndex)))==null||h.scrollIntoView(!1);_.hF(this.hostElement,"yt-emoji-hover",F)}};
_.N.onMouseDown_=function(){this.JSC$11938_ignoreNextFocus_=!0};
_.N.onFocus_=function(){this.JSC$11938_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$11938_ignoreNextFocus_=!1};
_.N.onBlur_=function(){this.showFocus=!1};
_.N.onKeyDown_=function(F){switch(F.keyCode){case 13:this.onEmojiTap_(F);this.hostElement.focus();break;case 40:this.changeFocus_(1,!0);F.preventDefault();break;case 38:this.changeFocus_(-1,!0),F.preventDefault()}};
WN.prototype.onKeyDown_=WN.prototype.onKeyDown_;WN.prototype.onBlur_=WN.prototype.onBlur_;WN.prototype.onFocus_=WN.prototype.onFocus_;WN.prototype.onMouseDown_=WN.prototype.onMouseDown_;WN.prototype.onEmojiTap_=WN.prototype.onEmojiTap_;WN.prototype.titleOffsetChanged_=WN.prototype.titleOffsetChanged_;WN.prototype.emojiChanged_=WN.prototype.emojiChanged_;_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],WN.prototype,"ytComponentBehavior",void 0);
_.T([_.O(),_.Y("design:type",Object)],WN.prototype,"data",void 0);_.T([_.O({computed:"computeId_(data)"}),_.Y("design:type",String)],WN.prototype,"id",void 0);_.T([_.O({computed:"computeEmoji_(data)"}),_.Y("design:type",Array)],WN.prototype,"emoji",void 0);_.T([_.O({value:0}),_.Y("design:type",Number)],WN.prototype,"titleOffset",void 0);_.T([_.O({reflectToAttribute:!0,computed:"getFormattedStringRawText(data.upsell)"}),_.Y("design:type",Object)],WN.prototype,"ariaLabel",void 0);
_.T([_.O({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(focusedIndex)"}),_.Y("design:type",Object)],WN.prototype,"ariaActivedescendant",void 0);_.T([_.O({value:!1}),_.Y("design:type",Boolean)],WN.prototype,"showFocus",void 0);_.T([_.O({value:0}),_.Y("design:type",Number)],WN.prototype,"focusedIndex",void 0);_.T([_.O(),_.Y("design:type",_.Jq)],WN.prototype,"emojiManager",void 0);
_.T([_.ea("emoji"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],WN.prototype,"emojiChanged_",null);_.T([_.ea("titleOffset"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],WN.prototype,"titleOffsetChanged_",null);_.T([_.R4("click"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],WN.prototype,"onEmojiTap_",null);
_.T([_.R4("mousedown"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],WN.prototype,"onMouseDown_",null);_.T([_.R4("focus"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],WN.prototype,"onFocus_",null);_.T([_.R4("blur"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],WN.prototype,"onBlur_",null);
_.T([_.R4("keydown"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],WN.prototype,"onKeyDown_",null);WN=_.T([_.$3({is:"yt-emoji-picker-upsell-category-renderer",disableElementRegistration:!0})],WN);
_.r(WN,"yt-emoji-picker-upsell-category-renderer",function(){if(OaT===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-emoji-picker-upsell-category-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_emoji_picker_upsell_category_renderer.yt.emoji.picker.upsell.category.renderer.css.js--\x3e<yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope yt-emoji-picker-upsell-category-renderer"></yt-formatted-string><div id="emoji" class="style-scope yt-emoji-picker-upsell-category-renderer"><template is="dom-repeat" id="repeat" items="[[emoji]]" class="style-scope yt-emoji-picker-upsell-category-renderer"><div class="style-scope yt-emoji-picker-upsell-category-renderer"><img id="[[emojiId(index)]]" on-mouseover="onEmojiMouseOver_" shared-tooltip-text$="[[data.emojiTooltip]]" src$="[[emojiUrl(item.emojiId)]]" alt="[[emojiAlt(item)]]" aria-label$="[[emojiAriaLabel(item)]]" aria-selected$="[[emojiAriaSelected(showFocus, focusedIndex, index)]]" role="option" class="style-scope yt-emoji-picker-upsell-category-renderer"><svg viewBox="0 0 24 24" class="style-scope yt-emoji-picker-upsell-category-renderer"><path id="lock-border" d="M18.3809524 6.80952784c1.6455246.45922361 2.8571428 1.97242785 2.8571428 3.76190076v9.5238095C21.2380952 22.2474266 19.4855219 24 17.3333333 24H5.9047619C3.75257336 24 2 22.2474266 2 20.0952381v-9.5238095c0-1.78947291 1.21161828-3.30267715 2.85714286-3.76190076v-.04762308C4.85714286 3.02876383 7.88590669 0 11.6190476 0c3.7331409 0 6.7619048 3.02876383 6.7619048 6.76190476v.04762308z" class="style-scope yt-emoji-picker-upsell-category-renderer"></path><path d="M17.3333333 8.66666667c1.0476191 0 1.9047619.85714285 1.9047619 1.90476193v9.5238095c0 1.047619-.8571428 1.9047619-1.9047619 1.9047619H5.9047619C4.85714286 22 4 21.1428571 4 20.0952381v-9.5238095c0-1.04761908.85714286-1.90476193 1.9047619-1.90476193h.95238096V6.76190476C6.85714286 4.13333333 8.99047619 2 11.6190476 2c2.6285714 0 4.7619048 2.13333333 4.7619048 4.76190476v1.90476191h.9523809zm-5.7142857 8.57142853c1.0476191 0 1.9047619-.8571428 1.9047619-1.9047619 0-1.047619-.8571428-1.9047619-1.9047619-1.9047619-1.047619 0-1.90476189.8571429-1.90476189 1.9047619 0 1.0476191.85714289 1.9047619 1.90476189 1.9047619zm2.952381-8.57142853V6.76190476c0-1.62857143-1.3238096-2.95238095-2.952381-2.95238095-1.62857141 0-2.95238093 1.32380952-2.95238093 2.95238095v1.90476191h5.90476193z" class="style-scope yt-emoji-picker-upsell-category-renderer"></path></svg></div></template></div>');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;fcT===void 0&&(fcT=document.createElement("template"));var h=fcT;E.call(W,h.content.cloneNode(!0),F.content.firstChild);OaT=F}F=OaT;return F},{mode:2});var baX;var lcc;var E9=function(){var F=_.n.apply(this,arguments)||this;F.scrollAction="lock";F.verticalAlign="top";return F};
_.k(E9,_.n);_.N=E9.prototype;_.N.onClick=function(F){F=_.oo(F);F instanceof HTMLImageElement&&_.hF(this.hostElement,"yt-emoji-select",_.a9(this.emojiManager,F.id))};
_.N.openSelector=function(){this.ironOverlayBehavior.open()};
_.N.onDomChange=function(){xgO(this.ytEmojiSelectorBehavior)};
_.N.computeIsFamilySelector=function(F){var W;return(F==null?void 0:(W=F.emoji)==null?void 0:W.emojiId)==="\ud83d\udc6a"};
_.N.onKeyboardEnter=function(){if(this.emojiVariants&&this.ytEmojiSelectorBehavior.focusedIndex<this.emojiVariants.length){var F=this.emojiVariants[this.ytEmojiSelectorBehavior.focusedIndex];F&&F.emojiId&&(_.hF(this.hostElement,"yt-emoji-select",_.a9(this.emojiManager,F.emojiId)),this.ytEmojiSelectorBehavior.changeFocus(0))}};
_.Sn.Object.defineProperties(E9.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var F=this,W,E,h;return this.emojiManager&&((W=this.data)==null?0:(E=W.emoji)==null?0:(h=E.variantIds)==null?0:h.length)?this.data.emoji.variantIds.map(function(d){return!!d&&_.a9(F.emojiManager,d)}).filter(function(d){return!!d}):[]}}});
E9.prototype.onClick=E9.prototype.onClick;_.T([_.J(_.my),_.Y("design:type",Object)],E9.prototype,"ironOverlayBehavior",void 0);_.T([_.J(kQe),_.Y("design:type",Object)],E9.prototype,"ytEmojiSelectorBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],E9.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",_.Jq)],E9.prototype,"emojiManager",void 0);_.T([_.O(),_.Y("design:type",Object)],E9.prototype,"scrollAction",void 0);_.T([_.O(),_.Y("design:type",Object)],E9.prototype,"verticalAlign",void 0);
_.T([_.O({reflectToAttribute:!0,computed:"computeIsFamilySelector(data)"}),_.Y("design:type",Boolean)],E9.prototype,"isFamilySelector",void 0);_.T([_.a("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],E9.prototype,"emojiVariants",null);_.T([_.R4("click"),_.Y("design:type",Function),_.Y("design:paramtypes",[MouseEvent]),_.Y("design:returntype")],E9.prototype,"onClick",null);E9=_.T([_.$3({is:"yt-emoji-variant-selector",disableElementRegistration:!0})],E9);
_.r(E9,"yt-emoji-variant-selector",function(){if(lcc===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-emoji-variant-selector--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_emoji_variant_selector.yt.emoji.variant.selector.css.js--\x3e<div role="listbox" id="variants" class="style-scope yt-emoji-variant-selector">\n    <template is="dom-repeat" id="repeat" items="[[emojiVariants]]" notify-dom-change="" on-dom-change="onDomChange" class="style-scope yt-emoji-variant-selector">\n      \n      <img id="[[item.emojiId]]" alt="[[item.emojiId]]" height="24" role="option" tabindex="-1" src$="[[emojiUrl(item.emojiId)]]" width="24" class="style-scope yt-emoji-variant-selector">\n    </template>\n</div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);var W=F.content,E=W.insertBefore;baX===void 0&&(baX=document.createElement("template"));var h=baX;E.call(W,h.content.cloneNode(!0),F.content.firstChild);lcc=F}F=lcc;return F},{mode:2});var nsz=/:/g,ywX=["UCkszU2WH9gy1mb0dV-11UJg","UC4R8DWoMoI7CAwX8_LjQHig"],hA=function(){var F=_.n.apply(this,arguments)||this;F.emojiVariantSelector=null;F.emojiMultiPersonSelector=null;F.identity=_.io;F.lastAnimationTime_=0;F.animationStart_=null;F.animationEnd_=null;return F};
_.k(hA,_.n);_.N=hA.prototype;
_.N.configureRendererStamper=function(){return{categories:{id:"categories",mapping:{emojiPickerCategoryRenderer:{component:"yt-emoji-picker-category-renderer",properties:{disableIncrementalLoading:"[[disableIncrementalLoading]]",emojiManager:"[[emojiManager]]",shouldUseStickyPreferences:"[[shouldUseStickyPreferences]]"}},emojiPickerUpsellCategoryRenderer:{component:"yt-emoji-picker-upsell-category-renderer",properties:{emojiManager:"[[emojiManager]]"}}}},categoryButtons:{id:"category-buttons",mapping:{emojiPickerCategoryButtonRenderer:"yt-emoji-picker-category-button-renderer"}},
emojiVariantSelector:{id:"emoji-variant-selector",mapping:{ytEmojiVariantSelector:{component:"yt-emoji-variant-selector",properties:{emojiManager:"[[emojiManager]]"}}},reuseComponents:!1},emojiMultiPersonSelector:{id:"emoji-multi-person-selector",mapping:{ytEmojiMultiPersonSelector:{component:"yt-emoji-multi-person-selector",properties:{emojiManager:"[[emojiManager]]"}}},reuseComponents:!1}}};
_.N.created=function(){this.boundOnIronOverlayClosed=this.onIronOverlayClosed.bind(this);this.emojiManager||(this.emojiManager=_.Oz)};
_.N.attached=function(){_.tf&&(this.hostElement.style.height=this.hostElement.clientHeight+150+"px");this.shouldUseStickyPreferences&&AdH(this.emojiManager)};
_.N.dataChanged=function(){var F;if((F=this.data)==null?0:F.categories){F=this.emojiManager;var W=this.getCustomEmojiIds();F.pickerCustomEmojiIds=[].concat(_.x9(vD_),_.x9(W))}};
_.N.getCustomEmojiIds=function(){var F,W=(F=this.data.categories)==null?void 0:F.find(function(V){var R;return((R=V.emojiPickerCategoryRenderer)==null?void 0:R.categoryId)&&ywX.includes(V.emojiPickerCategoryRenderer.categoryId)}),E;
F=(E=this.data.categories)==null?void 0:E.find(function(V){return V.emojiPickerUpsellCategoryRenderer});
var h,d;return[W==null?void 0:(h=W.emojiPickerCategoryRenderer)==null?void 0:h.emojiIds,F==null?void 0:(d=F.emojiPickerUpsellCategoryRenderer)==null?void 0:d.emojiIds].flat().filter(function(V){return!!V})};
_.N.updateEmojiCategories=function(){this.updateCategoriesAndPlaceholderInternal(this.data,!0)};
_.N.updateCategoriesAndPlaceholder_=function(){this.updateCategoriesAndPlaceholderInternal(this.data,this.selected)};
_.N.updateCategoriesAndPlaceholderInternal=function(F,W){var E=this;F&&W&&(this.categories=F.categories||[],this.categoryButtons=F.categoryButtons||[],this.resetPlaceholder(),this.search="",_.fz(function(){E.updateButtons_()}))};
_.N.computeId_=function(F){return F.id||""};
_.N.computeShouldUseStickyPreferences=function(){return this.data&&this.data.categories?this.data.categories.some(function(F){return F.emojiPickerCategoryRenderer&&F.emojiPickerCategoryRenderer.emojiData}):!1};
_.N.onScroll_=function(){this.animationEnd_==null&&window.requestAnimationFrame(this.updateButtons_.bind(this))};
_.N.onShowEmojiVariantSelector=function(F){var W=F.detail.emojiData;W.variantIds&&W.variantIds.length&&(W.multiSelectorThumbnailRow&&W.multiSelectorThumbnailRow.length?this.set("emojiMultiPersonSelector",{ytEmojiMultiPersonSelector:{emoji:W,target:F.detail.target}}):this.set("emojiVariantSelector",{ytEmojiVariantSelector:{emoji:W,target:F.detail.target}}),this.variantSelectorOpened=!0,this.hostElement.addEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.N.onIronOverlayClosed=function(F){var W=scM(this.emojiManager,this.get((this.emojiVariantSelector?"emojiVariantSelector.ytEmojiVariantSelector.emoji":"emojiMultiPersonSelector.ytEmojiMultiPersonSelector.emoji")+".emojiId")||"");W&&F.composedPath&&(F.composedPath().includes(_.Z(this.hostElement).querySelector("#emoji-variant-selector"))||F.composedPath().includes(_.Z(this.hostElement).querySelector("#emoji-multi-person-selector")))&&(_.dW(this.hostElement,"yt-close-emoji-variant-selector",[W.emojiId]),
this.emojiMultiPersonSelector=this.emojiVariantSelector=null,this.variantSelectorOpened=!1,this.hostElement.removeEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.N.onEmojiVariantSelectorMouseup=function(F){var W=F.target.firstChild;this.variantSelectorOpened&&W&&_.fz(function(){W.noCancelOnOutsideClick=!1},100)};
_.N.onEmojiVariantSelectorMousedown=function(F){F=F.target.firstChild;this.variantSelectorOpened&&F&&(F.noCancelOnOutsideClick=!1)};
_.N.onSelectCategory_=function(F){var W=this.search!="";this.search="";for(var E=_.Z(this.hostElement).querySelector("#categories").children,h=0;h<E.length;h++){var d=E[h];if(d.id==F.detail.categoryId){W?(_.Z(this.hostElement).querySelector("#categories").scrollTop=d.offsetTop,this.updateButtons_()):(this.animationStart_=_.Z(this.hostElement).querySelector("#categories").scrollTop,this.animationEnd_=d.offsetTop,this.lastAnimationTime_=0,this.animateScroll_(this.lastAnimationTime_));break}}};
_.N.onEmojiHover_=function(F){this.placeholder=F.detail.shortcuts?F.detail.shortcuts[0]:""};
_.N.onSearchBoxFocused_=function(){this.resetPlaceholder()};
_.N.onSearchBoxBlur_=function(){this.resetPlaceholder()};
_.N.onMouseoutCategories=function(){this.variantSelectorOpened||this.resetPlaceholder()};
_.N.resetPlaceholder=function(){this.skinToneOpened||(this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.searchPlaceholderText))};
_.N.computeSearchCategory_=function(F){F=F.replace(nsz,"").toLowerCase().trim();if(!this.searching)return this.searchCategory;this.updateButtons_();F=F.split(" ");for(var W=[],E=this.emojiManager.emojis,h=0;h<E.length;h++){var d=E[h];if(d.searchTerms)for(var V=0;V<d.searchTerms.length;V++){for(var R=d.searchTerms[V].toLocaleLowerCase(),M=!1,g=0;g<F.length;g++)if(R.indexOf(F[g])!=-1){M=!0;break}if(M&&(!d.isCustomEmoji||!d.emojiId||this.emojiManager.pickerCustomEmojiIds.includes(d.emojiId))){W.push(d.emojiId);
break}}}return{categoryId:-1,emojiIds:W}};
_.N.computeSearchEmptyMessage_=function(F,W){return F&&W&&W.emojiIds&&W.emojiIds.length==0?this.data.searchNoResultsText||null:null};
_.N.computeSearching_=function(F){return this.emojiManager&&F.replace(nsz,"").length>1};
_.N.computeSkinToneHidden=function(){var F;return this.shouldUseStickyPreferences||this.skinToneOpened||this.categories.length===1||!((F=this.data)==null||!F.hideSkinTonePicker)};
_.N.computeDisableScroll=function(){return!!this.emojiVariantSelector};
_.N.openSkinToneSelector=function(){this.skinToneOpened=!0};
_.N.showSkinTonePlaceholder=function(){this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.pickSkinToneText)};
_.N.clearSearch=function(){this.resetPlaceholder();this.search=""};
_.N.selectSkinTone_=function(F){F=Number(F.target.getAttribute("tone"));this.set("emojiManager.skinTone",F);_.dW(this.hostElement,"yt-live-chat-emoji-skin-tone-changed",[F]);this.skinToneOpened=!1;this.resetPlaceholder()};
_.N.skinToneChanged_=function(){_.Z(this.hostElement).querySelector("#skin-tone").setAttribute("tone",String(this.skinTone));for(var F=_.Z(this.hostElement).querySelector("#dropdown-content").children,W=0;W<F.length;W++)W===this.skinTone?F[W].setAttribute("selected",""):F[W].removeAttribute("selected")};
_.N.animateScroll_=function(F){this.lastAnimationTime_||(this.lastAnimationTime_=F);F-=this.lastAnimationTime_;F<200?(_.Z(this.hostElement).querySelector("#categories").scrollTop=this.animationStart_+(this.animationEnd_-this.animationStart_)*F/200,window.requestAnimationFrame(this.animateScroll_.bind(this))):(this.animationEnd_!=null&&(_.Z(this.hostElement).querySelector("#categories").scrollTop=this.animationEnd_),this.animationEnd_=this.animationStart_=null,this.lastAnimationTime_=0);this.updateButtons_()};
_.N.searchChanged_=function(){this.updateButtons_()};
_.N.updateButtons_=function(){var F=null;if(!this.search)for(var W=_.Z(this.hostElement).querySelector("#categories").scrollTop,E=_.Z(this.hostElement).querySelector("#categories").children,h=0;h<E.length;h++){var d=E[h];d.offsetTop<=W&&(F=d.id)}W=_.Z(this.hostElement).querySelector("#category-buttons").children;for(E=0;E<W.length;E++)h=W[E],h.active=h.id===F};
hA.prototype.searchChanged_=hA.prototype.searchChanged_;hA.prototype.skinToneChanged_=hA.prototype.skinToneChanged_;hA.prototype.onEmojiHover_=hA.prototype.onEmojiHover_;hA.prototype.onSelectCategory_=hA.prototype.onSelectCategory_;hA.prototype.onShowEmojiVariantSelector=hA.prototype.onShowEmojiVariantSelector;hA.prototype.updateCategoriesAndPlaceholder_=hA.prototype.updateCategoriesAndPlaceholder_;hA.prototype.dataChanged=hA.prototype.dataChanged;
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],hA.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],hA.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],hA.prototype,"data",void 0);_.T([_.O({value:function(){return[]}}),
_.Y("design:type",Array)],hA.prototype,"categories",void 0);_.T([_.O({value:function(){return[]}}),
_.Y("design:type",Array)],hA.prototype,"categoryButtons",void 0);_.T([_.O({computed:"computeDisableScroll(emojiVariantSelector)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],hA.prototype,"disableScroll",void 0);_.T([_.O({computed:"computeId_(data)",reflectToAttribute:!0}),_.Y("design:type",String)],hA.prototype,"id",void 0);_.T([_.O({value:!1}),_.Y("design:type",Boolean)],hA.prototype,"selected",void 0);
_.T([_.O({value:!1}),_.Y("design:type",Boolean)],hA.prototype,"disableIncrementalLoading",void 0);_.T([_.O(),_.Y("design:type",String)],hA.prototype,"placeholder",void 0);_.T([_.O({value:""}),_.Y("design:type",String)],hA.prototype,"search",void 0);_.T([_.O({computed:"computeSearching_(search)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],hA.prototype,"searching",void 0);_.T([_.O({computed:"computeSearchCategory_(search)"}),_.Y("design:type",Object)],hA.prototype,"searchCategory",void 0);
_.T([_.O({computed:"computeSearchEmptyMessage_(searching, searchCategory)"}),_.Y("design:type",Object)],hA.prototype,"searchEmptyMessage",void 0);_.T([_.O({computed:"identity(emojiManager.skinTone)"}),_.Y("design:type",Number)],hA.prototype,"skinTone",void 0);_.T([_.O({value:!1}),_.Y("design:type",Boolean)],hA.prototype,"skinToneOpened",void 0);_.T([_.O({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],hA.prototype,"variantSelectorOpened",void 0);
_.T([_.O({computed:"computeSkinToneHidden(skinToneOpened, categories, shouldUseStickyPreferences, data.hideSkinTonePicker)"}),_.Y("design:type",Boolean)],hA.prototype,"skinToneHidden",void 0);_.T([_.O(),_.Y("design:type",_.Jq)],hA.prototype,"emojiManager",void 0);_.T([_.O(),_.Y("design:type",Object)],hA.prototype,"emojiVariantSelector",void 0);_.T([_.O(),_.Y("design:type",Object)],hA.prototype,"emojiMultiPersonSelector",void 0);
_.T([_.O({value:!1,computed:"computeShouldUseStickyPreferences(data)"}),_.Y("design:type",Boolean)],hA.prototype,"shouldUseStickyPreferences",void 0);_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],hA.prototype,"dataChanged",null);_.T([_.ea("data","selected"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],hA.prototype,"updateCategoriesAndPlaceholder_",null);
_.T([_.R4("yt-show-emoji-variant-selector"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],hA.prototype,"onShowEmojiVariantSelector",null);_.T([_.R4("yt-emoji-picker-select-category"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],hA.prototype,"onSelectCategory_",null);_.T([_.R4("yt-emoji-hover"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],hA.prototype,"onEmojiHover_",null);
_.T([_.ea("skinTone"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],hA.prototype,"skinToneChanged_",null);_.T([_.ea("search"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],hA.prototype,"searchChanged_",null);hA=_.T([_.$3({is:"yt-emoji-picker-renderer",disableElementRegistration:!0})],hA);
_.r(hA,"yt-emoji-picker-renderer",function(){if(aci===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-emoji-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_emoji_picker_renderer.yt.emoji.picker.renderer.css.js--\x3e<div id="search-panel" class="style-scope yt-emoji-picker-renderer"><tp-yt-paper-input id="search" no-label-float="" placeholder="[[placeholder]]" use-v2-underline="" value="{{search}}" on-blur="onSearchBoxBlur_" on-focus="onSearchBoxFocused_" class="style-scope yt-emoji-picker-renderer"></tp-yt-paper-input><yt-icon-button id="clear-search" hidden="[[!search]]" label="[[data.clearSearchLabel]]" on-tap="clearSearch" class="style-scope yt-emoji-picker-renderer"><yt-icon icon="close" class="style-scope yt-emoji-picker-renderer"></yt-icon></yt-icon-button><button id="skin-tone" aria-label$="[[getSimpleString(data.pickSkinToneText)]]" hidden="[[skinToneHidden]]" on-mouseout="resetPlaceholder" on-mouseover="showSkinTonePlaceholder" on-tap="openSkinToneSelector" selected="" class="style-scope yt-emoji-picker-renderer"></button><tp-yt-iron-dropdown id="dropdown" allow-outside-scroll="" horizontal-align="right" horizontal-offset="8" no-auto-focus="" opened="{{skinToneOpened}}" vertical-align="top" vertical-offset="8" class="style-scope yt-emoji-picker-renderer"><div id="dropdown-content" class="dropdown-content style-scope yt-emoji-picker-renderer" slot="dropdown-content"><button aria-label$="[[data.skinToneGenericLabel]]" on-tap="selectSkinTone_" tone="0" class="style-scope yt-emoji-picker-renderer"></button><button aria-label$="[[data.skinToneLightLabel]]" on-tap="selectSkinTone_" tone="1" class="style-scope yt-emoji-picker-renderer"></button><button aria-label$="[[data.skinToneMediumLightLabel]]" on-tap="selectSkinTone_" tone="2" class="style-scope yt-emoji-picker-renderer"></button><button aria-label$="[[data.skinToneMediumLabel]]" on-tap="selectSkinTone_" tone="3" class="style-scope yt-emoji-picker-renderer"></button><button aria-label$="[[data.skinToneMediumDarkLabel]]" on-tap="selectSkinTone_" tone="4" class="style-scope yt-emoji-picker-renderer"></button><button aria-label$="[[data.skinToneDarkLabel]]" on-tap="selectSkinTone_" tone="5" class="style-scope yt-emoji-picker-renderer"></button></div></tp-yt-iron-dropdown></div><div id="category-buttons" class="style-scope yt-emoji-picker-renderer"></div><yt-emoji-picker-category-renderer id="search-category" data="[[searchCategory]]" emoji-manager="[[emojiManager]]" should-use-sticky-preferences="[[shouldUseStickyPreferences]]" skin-tone="[[skinTone]]" class="style-scope yt-emoji-picker-renderer"></yt-emoji-picker-category-renderer><yt-formatted-string id="search-empty" hidden="[[!searchEmptyMessage]]" text="[[searchEmptyMessage]]" class="style-scope yt-emoji-picker-renderer"></yt-formatted-string><div id="categories-wrapper" class="style-scope yt-emoji-picker-renderer"><div id="categories" on-mouseout="onMouseoutCategories" on-scroll="onScroll_" class="style-scope yt-emoji-picker-renderer"></div></div><div id="emoji-variant-selector" hidden="[[!emojiVariantSelector]]" on-mouseup="onEmojiVariantSelectorMouseup" on-mousedown="onEmojiVariantSelectorMousedown" class="style-scope yt-emoji-picker-renderer"></div><div id="emoji-multi-person-selector" hidden="[[!emojiMultiPersonSelector]]" on-mouseup="onEmojiVariantSelectorMouseup" on-mousedown="onEmojiVariantSelectorMousedown" class="style-scope yt-emoji-picker-renderer"></div>');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;JwU===void 0&&(JwU=document.createElement("template"));var h=JwU;E.call(W,h.content.cloneNode(!0),F.content.firstChild);aci=F}F=aci;return F},{mode:2});var dt=function(){var F=_.n.apply(this,arguments)||this;F.emojiManager=_.Oz;F.isDarkTheme=document.documentElement.hasAttribute("dark");F.selectedIndex=1;F.actionMap={"yt-lwe-emoji-customization-visible":"handleEmojiCustomizationVisible"};return F};
_.k(dt,_.n);_.N=dt.prototype;_.N.handleEmojiCustomizationVisible=function(F){this.emojiPickerRenderer.selected=F;this.selectedIndex=1;F?(this.originalEmojiSet=this.emojiCustomizationSet,this.updateSaveButtonState(!1)):this.originalEmojiSet=void 0};
_.N.emojiCustomizationSetChanged=function(){var F;(F=this.data)!=null&&F.saveButtonEntityKey&&(this.originalEmojiSet||(this.originalEmojiSet=this.emojiCustomizationSet),this.originalEmojiSet&&this.emojiCustomizationSet&&!_.zz(this.originalEmojiSet.emojiId,this.emojiCustomizationSet.emojiId)?this.updateSaveButtonState(!0):this.updateSaveButtonState(!1))};
_.N.updateSaveButtonState=function(F){var W;(W=this.data)!=null&&W.saveButtonEntityKey&&this.ytLiveChatReduxBehavior.dispatch(_.AG("booleanEntity",this.data.saveButtonEntityKey,{key:this.data.saveButtonEntityKey,value:F}))};
_.N.emojiUrl=function(F){F=_.a9(this.emojiManager,F);if(!F)return"";var W;F=(W=F.image)==null?void 0:W.thumbnails;return _.m_(F,24)||""};
_.N.emojiAlt=function(F){var W=_.a9(this.emojiManager,F);if(!W)return F;var E,h,d,V=(W==null?void 0:(E=W.image)==null?void 0:(h=E.accessibility)==null?void 0:(d=h.accessibilityData)==null?void 0:d.label)||"";return V?V:W.isCustomEmoji?W.shortcuts[0]:W.emojiId||F};
_.N.emojiAriaLabel=function(F){var W,E;return((W=_.a9(this.emojiManager,F))==null?void 0:(E=W.shortcuts)==null?void 0:E[0])||F};
_.N.onEmojiClick=function(F){F.model.index!==0&&(this.selectedIndex=F.model.index)};
_.N.onEmojiSelect=function(F){F=F.detail;var W,E;((W=this.data)==null?0:W.emojiCustomizationSetEntityKey)&&((E=this.emojiCustomizationSet)==null?0:E.emojiId)&&F.emojiId&&this.canEditEmoji(this.emojiCustomizationSet.emojiId,F.emojiId,this.selectedIndex)&&this.ytLiveChatReduxBehavior.dispatch(_.AG("emojiCustomizationSetEntity",this.data.emojiCustomizationSetEntityKey,{key:this.data.emojiCustomizationSetEntityKey,emojiId:this.getUpdatedEmojiIdList(this.emojiCustomizationSet.emojiId,F.emojiId,this.selectedIndex)}))};
_.N.canEditEmoji=function(F,W,E){F=F.indexOf(W);return F===E||F===0||E===0?!1:!0};
_.N.getUpdatedEmojiIdList=function(F,W,E){var h=F.indexOf(W);F=[].concat(_.x9(F));h>=0&&(F[h]=F[E]);F[E]=W;return F};
_.Sn.Object.defineProperties(dt,{template:{configurable:!0,enumerable:!0,get:function(){if(NSu===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-emoji-customization-panel-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_emoji_customization_panel_view_model.yt.emoji.customization.panel.view.model.css.js--\x3e<yt-attributed-string id="description-text" data="[[data.descriptionText]]" class="style-scope yt-emoji-customization-panel-view-model"></yt-attributed-string>\n<div id="fab-container" class="style-scope yt-emoji-customization-panel-view-model">\n  <div id="expanded-buttons" class="style-scope yt-emoji-customization-panel-view-model">\n    <template is="dom-repeat" id="repeat" items="[[emojiCustomizationSet.emojiId]]" class="style-scope yt-emoji-customization-panel-view-model">\n      <button class="reaction-button style-scope yt-emoji-customization-panel-view-model" emoji-selected$="[[equals(selectedIndex, index)]]" on-click="onEmojiClick" disabled$="[[equals(index, 0)]]">\n        <img id="[[index]]" alt="[[emojiAlt(item)]]" aria-label$="[[emojiAriaLabel(item)]]" height="24" role="option" src$="[[emojiUrl(item)]]" width="24" class="style-scope yt-emoji-customization-panel-view-model">\n      </button>\n    </template>\n  </div>\n</div>\n<yt-button-view-model data="[[data.resetButton.buttonViewModel]]" scoping-class-name="[[is]]" class="style-scope yt-emoji-customization-panel-view-model">\n</yt-button-view-model>\n<yt-emoji-picker-renderer data="[[data.emojiPicker.emojiPickerRenderer]]" class="style-scope yt-emoji-customization-panel-view-model"></yt-emoji-picker-renderer>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);var W=F.content,E=W.insertBefore;dge===void 0&&(dge=document.createElement("template"));var h=dge;E.call(W,h.content.cloneNode(!0),F.content.firstChild);NSu=F}F=NSu;return F}}});
dt.prototype.onEmojiSelect=dt.prototype.onEmojiSelect;_.T([_.J(_.av),_.Y("design:type",Object)],dt.prototype,"ytLiveChatReduxBehavior",void 0);_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],dt.prototype,"ytActionHandlerBehavior",void 0);_.T([_.gQ("yt-emoji-picker-renderer"),_.Y("design:type",Object)],dt.prototype,"emojiPickerRenderer",void 0);
_.T([_.O({selectorArgs:["data.emojiCustomizationSetEntityKey"],selector:function(F,W){return _.Mn(F.entities,"emojiCustomizationSetEntity",W)},
observer:"emojiCustomizationSetChanged"}),_.Y("design:type",Object)],dt.prototype,"emojiCustomizationSet",void 0);_.T([_.O(),_.Y("design:type",Object)],dt.prototype,"originalEmojiSet",void 0);_.T([_.O(),_.Y("design:type",_.Jq)],dt.prototype,"emojiManager",void 0);_.T([_.O(),_.Y("design:type",Object)],dt.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],dt.prototype,"isDarkTheme",void 0);_.T([_.O(),_.Y("design:type",Object)],dt.prototype,"selectedIndex",void 0);
_.T([_.R4("yt-emoji-select"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],dt.prototype,"onEmojiSelect",null);dt=_.T([_.$3({is:"yt-emoji-customization-panel-view-model",noInjection:!0})],dt);var jFu;var iac;var rwi;var TSe;var Ne=function(){var F=_.n.apply(this,arguments)||this;F.authorBadges=[];return F};
_.k(Ne,_.n);_.N=Ne.prototype;_.N.created=function(){this.ytLiveChatItemBehavior.supportsInlineActionButtons=!0};
_.N.configureRendererStamper=function(){return{"data.inlineActionButtons":{id:"inline-action-buttons",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[filledButtonOverrides]]"}}}},"data.beforeContentButtons":{id:"before-content-buttons",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}}}}};
_.N.dataChanged=function(){var F=cik(this.data.authorBadges||[]);this.hostElement.setAttribute("author-type",F)};
_.N.updateMessage=function(){var F=this.data.message,W=_.Z(_.Z(this.hostElement).querySelector("#message"));W.textContent="";F&&W.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(F))};
_.N.shouldSupportWholeItemClick=function(){return!0};
_.N.onShowOriginalClick=function(F){F.preventDefault();this.showOriginal=!0};
_.N.computeShowBar=function(F,W,E){return F&&W||E};
_.N.computeAuthorBadges=function(F){return F.authorBadges||[]};
_.N.computeAuthorIsOwner=function(F){return!!D5k(F.authorBadges,"owner")};
_.N.computeAuthorNameColor=function(F){var W;if(_.c("live_chat_author_name_color_usernames")&&(F==null?0:(W=F.authorName)==null?0:W.simpleText))return _.qbn(_.$5I(F.authorName.simpleText));if(_.c("live_chat_seed_color_usernames")&&(F==null?0:F.authorSeedColorArgb))return _.qbn(_.dh(F.authorSeedColorArgb));if(_.c("live_chat_colored_usernames"))return"#cc0000";var E;return _.c("live_chat_simple_color_usernames")&&(F==null?0:(E=F.authorName)==null?0:E.simpleText)&&(F==null?0:F.authorUsernameColorLight)&&
(F==null?0:F.authorUsernameColorDark)&&!this.inBanner?document.documentElement.hasAttribute("dark")?_.dh(F.authorUsernameColorDark):_.dh(F.authorUsernameColorLight):""};
Ne.prototype.updateMessage=Ne.prototype.updateMessage;Ne.prototype.dataChanged=Ne.prototype.dataChanged;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Ne.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.bD.YtLiveChatItemBehavior),_.Y("design:type",_.lD)],Ne.prototype,"ytLiveChatItemBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],Ne.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],Ne.prototype,"data",void 0);
_.T([_.O({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],Ne.prototype,"showOriginal",void 0);_.T([_.O({value:!1,computed:"truthy(data.isDimmed)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],Ne.prototype,"isDimmed",void 0);_.T([_.O({computed:"computeShowBar(isDeleted, hasOriginalContent, isDimmed)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],Ne.prototype,"showBar",void 0);
_.T([_.O({computed:"computeAuthorBadges(data)"}),_.Y("design:type",Array)],Ne.prototype,"authorBadges",void 0);_.T([_.O({computed:"computeAuthorIsOwner(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],Ne.prototype,"authorIsOwner",void 0);_.T([_.O({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],Ne.prototype,"inCollapsedBanner",void 0);_.T([_.O({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],Ne.prototype,"inBanner",void 0);
_.T([_.O({value:_.c("live_chat_hide_avatars"),reflectToAttribute:!0}),_.Y("design:type",Boolean)],Ne.prototype,"avatarHidden",void 0);_.T([_.O({computed:"computeAuthorNameColor(data)"}),_.Y("design:type",String)],Ne.prototype,"authorNameColor",void 0);_.T([_.O(),_.Y("design:type",_.jB)],Ne.prototype,"participantsManager",void 0);_.T([_.O({value:{size:"XS",type:"filled",style:"overlay",iconPosition:"icon-only"}}),_.Y("design:type",Object)],Ne.prototype,"filledButtonOverrides",void 0);
_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Ne.prototype,"dataChanged",null);_.T([_.ea("data.message"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Ne.prototype,"updateMessage",null);Ne=_.T([_.$3({disableElementRegistration:!0,is:"yt-live-chat-text-message-renderer",noInjection:!0})],Ne);
_.r(Ne,"yt-live-chat-text-message-renderer",function(){if(TSe===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-text-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_text_message_renderer.yt.live.chat.text.message.renderer.css.js--\x3e<yt-img-shadow id="author-photo" class="no-transition style-scope yt-live-chat-text-message-renderer" height="24" thumbnail="[[data.authorPhoto]]" width="24"></yt-img-shadow><div id="content" class="style-scope yt-live-chat-text-message-renderer"><span id="timestamp" class="style-scope yt-live-chat-text-message-renderer">[[timestampString]]</span><yt-live-chat-author-chip author-badges="[[authorBadges]]" author-name="[[data.authorName]]" author-name-color="[[authorNameColor]]" class="style-scope yt-live-chat-text-message-renderer"></yt-live-chat-author-chip>\u200b<div id="before-content-buttons" class="style-scope yt-live-chat-text-message-renderer"></div>\u200b<span id="message" dir="auto" class="style-scope yt-live-chat-text-message-renderer"></span><span id="deleted-state" class="style-scope yt-live-chat-text-message-renderer">[[getSimpleString(data.deletedStateMessage)]]</span><a id="show-original" href="#" on-click="onShowOriginalClick" class="style-scope yt-live-chat-text-message-renderer">[[getSimpleString(data.showOriginalContentMessage)]]</a></div><div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope yt-live-chat-text-message-renderer"><yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="showContextMenu" class="style-scope yt-live-chat-text-message-renderer"><yt-icon icon="more_vert" class="style-scope yt-live-chat-text-message-renderer"></yt-icon></yt-icon-button></div><div id="inline-action-button-container" class="style-scope yt-live-chat-text-message-renderer"><div id="inline-action-buttons" class="style-scope yt-live-chat-text-message-renderer"></div></div>');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);var W=F.content,E=W.insertBefore;rwi===void 0&&(rwi=document.createElement("template"));var h=rwi;E.call(W,h.content.cloneNode(!0),F.content.firstChild);TSe=F}F=TSe;return F},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var V_=function(){var F=_.n.apply(this,arguments)||this;F.tonalButtonOverrides={type:"tonal",style:"overlay"};return F};
_.k(V_,_.n);
V_.prototype.configureRendererStamper=function(){return{"data.infoDialogButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.autoModeratedItem":{id:"auto-moderated-item",mapping:{liveChatTextMessageRenderer:{component:"yt-live-chat-text-message-renderer",properties:{participantsManager:"[[participantsManager]]"},attributes:{"hide-inline-action-buttons":!0,"no-hover-effect":!0}}}},"data.moderationButtons":{id:"moderation-buttons",mapping:{buttonRenderer:"yt-button-renderer"}},"data.additionalInlineActionButtons":{id:"additional-inline-action-buttons",
mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[tonalButtonOverrides]]"}}}}}};
V_.prototype.shouldSupportInlineActionButtons=function(){return!0};
V_.prototype.shouldSupportWholeItemClick=function(){return!0};
_.Sn.Object.defineProperties(V_.prototype,{hasInfoDialogButton:{configurable:!0,enumerable:!0,get:function(){return!!this.data.infoDialogButton}}});
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],V_.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.bD.YtLiveChatItemBehavior),_.Y("design:type",_.lD)],V_.prototype,"ytLiveChatItemBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],V_.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],V_.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",_.jB)],V_.prototype,"participantsManager",void 0);
_.T([_.O(),_.Y("design:type",Object)],V_.prototype,"tonalButtonOverrides",void 0);_.T([_.O({reflectToAttribute:!0}),_.a("data.infoDialogButton"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],V_.prototype,"hasInfoDialogButton",null);V_=_.T([_.$3({disableElementRegistration:!0,is:"yt-live-chat-auto-mod-message-renderer",noInjection:!0})],V_);
_.r(V_,"yt-live-chat-auto-mod-message-renderer",function(){if(iac===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-auto-mod-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_auto_mod_message_renderer.yt.live.chat.auto.mod.message.renderer.css.js--\x3e<div id="explanation" class="style-scope yt-live-chat-auto-mod-message-renderer">\n  <yt-icon id="warning-icon" hidden$="[[hasInfoDialogButton]]" icon="warning" class="style-scope yt-live-chat-auto-mod-message-renderer"></yt-icon>\n  <div id="button" hidden$="[[!hasInfoDialogButton]]" class="style-scope yt-live-chat-auto-mod-message-renderer"></div>\n  <yt-formatted-string text="[[data.headerText]]" class="style-scope yt-live-chat-auto-mod-message-renderer"></yt-formatted-string>\n</div>\n<div id="auto-moderated-item" class="style-scope yt-live-chat-auto-mod-message-renderer"></div>\n<div id="moderation-buttons" class="style-scope yt-live-chat-auto-mod-message-renderer"></div>\n<div id="inline-action-button-container" class="style-scope yt-live-chat-auto-mod-message-renderer">\n  <div id="inline-action-buttons" class="style-scope yt-live-chat-auto-mod-message-renderer"></div>\n  <div id="additional-inline-action-buttons" class="style-scope yt-live-chat-auto-mod-message-renderer"></div>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;jFu===void 0&&(jFu=document.createElement("template"));var h=jFu;E.call(W,h.content.cloneNode(!0),F.content.firstChild);iac=F}F=iac;return F},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var osa;var GQz;var YyU;var U9=function(){return _.n.apply(this,arguments)||this};
_.k(U9,_.n);_.T([_.O(),_.Y("design:type",Object)],U9.prototype,"data",void 0);U9=_.T([_.y({is:"ytd-factoid-renderer",disableElementRegistration:!0})],U9);
_.r(U9,"ytd-factoid-renderer",function(){if(YyU!==void 0)return YyU;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-factoid-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="factoid style-scope ytd-factoid-renderer" role="text" aria-label="[[data.accessibilityText]]">\n  <yt-formatted-string class="factoid-value style-scope ytd-factoid-renderer" text="[[data.value]]">\n  </yt-formatted-string>\n  <yt-formatted-string class="factoid-label style-scope ytd-factoid-renderer" text="[[data.label]]">\n  </yt-formatted-string>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return YyU=F},{mode:1});var Rm=function(){return _.n.apply(this,arguments)||this};
_.k(Rm,_.n);Rm.prototype.configureRendererStamper=function(){return{"data.factoids":{id:"factoids",mapping:{factoidRenderer:"ytd-factoid-renderer"}}}};
_.T([_.O(),_.Y("design:type",Object)],Rm.prototype,"data",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],Rm.prototype,"ytRendererstamperBehavior",void 0);Rm=_.T([_.$3({disableElementRegistration:!0,is:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0})],Rm);
_.r(Rm,"yt-live-chat-channel-activity-reputation-renderer",function(){if(GQz===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-channel-activity-reputation-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_channel_activity_reputation_renderer.yt.live.chat.channel.activity.reputation.renderer.css.js--\x3e<div id="factoids" class="style-scope yt-live-chat-channel-activity-reputation-renderer"></div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;osa===void 0&&(osa=document.createElement("template"));var h=osa;E.call(W,h.content.cloneNode(!0),F.content.firstChild);GQz=F}F=GQz;return F},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var w9M;var u9H;var eV=function(){return _.n.apply(this,arguments)||this};
_.k(eV,_.n);eV.prototype.ready=function(){var F=document.querySelector("yt-live-chat-app");F&&F.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],eV.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Boolean)],eV.prototype,"menuFocused",void 0);_.T([_.O(),_.Y("design:type",Object)],eV.prototype,"data",void 0);_.T([_.J(_.bD.YtLiveChatItemBehavior),_.Y("design:type",_.lD)],eV.prototype,"ytLiveChatItemBehavior",void 0);eV=_.T([_.$3({disableElementRegistration:!0,is:"yt-live-chat-donation-announcement-renderer",noInjection:!0})],eV);
_.r(eV,"yt-live-chat-donation-announcement-renderer",function(){if(u9H===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-donation-announcement-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_donation_announcement_renderer.yt.live.chat.donation.announcement.renderer.css.js--\x3e<div id="card" class="style-scope yt-live-chat-donation-announcement-renderer"><yt-img-shadow id="author-photo" height="40" thumbnail="[[data.authorPhoto]]" width="40" class="style-scope yt-live-chat-donation-announcement-renderer"></yt-img-shadow><div id="content" class="style-scope yt-live-chat-donation-announcement-renderer"><div id="content-header" class="style-scope yt-live-chat-donation-announcement-renderer"><div id="author-name" class="style-scope yt-live-chat-donation-announcement-renderer">[[getSimpleString(data.authorName)]]</div><div id="text" class="style-scope yt-live-chat-donation-announcement-renderer">[[getSimpleString(data.text)]]</div></div><div id="timestamp" class="style-scope yt-live-chat-donation-announcement-renderer">[[timestampString]]</div><yt-formatted-string id="subtext" text="[[data.subtext]]" class="style-scope yt-live-chat-donation-announcement-renderer"></yt-formatted-string></div><div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope yt-live-chat-donation-announcement-renderer"><yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="showContextMenu" class="style-scope yt-live-chat-donation-announcement-renderer"><yt-icon icon="more_vert" class="style-scope yt-live-chat-donation-announcement-renderer"></yt-icon></yt-icon-button></div></div>');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);var W=F.content,E=W.insertBefore;w9M===void 0&&(w9M=document.createElement("template"));var h=w9M;E.call(W,h.content.cloneNode(!0),F.content.firstChild);u9H=F}F=u9H;return F},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var Syc;var p9_,mgp=function(){if(p9_!==void 0)return p9_;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-empty-feed-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_empty_feed_view_model.yt.live.chat.empty.feed.view.model.css.js--\x3e<yt-image id="image" alt="empty_feed_image" data="[[data.emptyFeedImage]]" height="100" preserve-height="" preserve-width="" width="178" class="style-scope yt-live-chat-empty-feed-view-model">\n</yt-image>\n<yt-attributed-string id="message" data="[[data.message]]" class="style-scope yt-live-chat-empty-feed-view-model"></yt-attributed-string>');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);var W=F.content,E=W.insertBefore;Syc===void 0&&(Syc=document.createElement("template"));var h=Syc;E.call(W,h.content.cloneNode(!0),F.content.firstChild);return p9_=F};var Me=function(){return _.n.apply(this,arguments)||this};
_.k(Me,_.n);_.Sn.Object.defineProperties(Me,{template:{configurable:!0,enumerable:!0,get:function(){return mgp()}}});
_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],Me.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],Me.prototype,"data",void 0);Me=_.T([_.$3({is:"yt-live-chat-empty-feed-view-model",disableElementRegistration:!0,noInjection:!0})],Me);_.r(Me,"yt-live-chat-empty-feed-view-model",function(){return mgp()},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var KHX;var Fbz;var gt=function(){return _.n.apply(this,arguments)||this};
_.k(gt,_.n);gt.prototype.configureRendererStamper=function(){return{"data.channelAvatar.avatarViewModel":{id:"avatar",mapping:{image:{component:"yt-image",attributes:{height:"36",width:"36","preserve-height":"true","preserve-width":"true"}}}}}};
_.Sn.Object.defineProperties(gt.prototype,{channelName:{configurable:!0,enumerable:!0,get:function(){var F,W;return{runs:[{text:(F=this.data)==null?void 0:(W=F.channelName)==null?void 0:W.content}]}}},
channelBadges:{configurable:!0,enumerable:!0,get:function(){var F=[],W;if((W=this.data)==null||!W.channelBadges)return F;var E;W=_.U((E=this.data)==null?void 0:E.channelBadges);for(E=W.next();!E.done;E=W.next()){E=_.D(E.value,BsT);var h=void 0,d=void 0;if((h=E)==null?0:(d=h.badgeImage)==null?0:d.sources)h=void 0,d={liveChatAuthorBadgeRenderer:{tooltip:E.tooltip,accessibility:{accessibilityData:{label:(h=_.D(E.rendererContext,_.m9))==null?void 0:h.label}}}},E.badgeImage.sources[0].clientResource?d.liveChatAuthorBadgeRenderer.icon=
{iconType:E.badgeImage.sources[0].clientResource.imageName}:d.liveChatAuthorBadgeRenderer.customThumbnail={thumbnails:E.badgeImage.sources},F.push(d)}return F}}});
_.T([_.O(),_.Y("design:type",Object)],gt.prototype,"data",void 0);_.T([_.a("data.channelName"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],gt.prototype,"channelName",null);_.T([_.a("data.channelBadges"),_.Y("design:type",Array),_.Y("design:paramtypes",[])],gt.prototype,"channelBadges",null);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],gt.prototype,"ytRendererstamperBehavior",void 0);
gt=_.T([_.$3({disableElementRegistration:!0,is:"yt-live-chat-identity-view-model",noInjection:!0})],gt);
_.r(gt,"yt-live-chat-identity-view-model",function(){if(Fbz===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-identity-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_identity_view_model.yt.live.chat.identity.view.model.css.js--\x3e<div id="avatar" class="style-scope yt-live-chat-identity-view-model"></div>\n<div id="channel_info" class="style-scope yt-live-chat-identity-view-model">\n  <yt-live-chat-author-chip id="channel_name" author-badges="[[channelBadges]]" author-name="[[channelName]]" class="style-scope yt-live-chat-identity-view-model">\n  </yt-live-chat-author-chip>\n  <div id="channel_metadata" class="style-scope yt-live-chat-identity-view-model">\n    <yt-attributed-string id="create_time" data="[[data.channelCreateTime]]" class="style-scope yt-live-chat-identity-view-model"></yt-attributed-string>\n    <yt-attributed-string id="subscriber_count" data="[[data.channelSubscriberCount]]" class="style-scope yt-live-chat-identity-view-model"></yt-attributed-string>\n  </div>\n</div>');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;KHX===void 0&&(KHX=document.createElement("template"));var h=KHX;E.call(W,h.content.cloneNode(!0),F.content.firstChild);Fbz=F}F=Fbz;return F},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var Wbu;var E_H;var h$X;var dJH;var Q_=function(){var F=_.n.apply(this,arguments)||this;F.hidden=!1;F.supportsInlineActionButtons=!0;return F};
_.k(Q_,_.n);Q_.prototype.ready=function(){var F;((F=document.querySelector("yt-live-chat-app"))==null?0:F.hasAttribute("dashboard-money-feed"))&&this.hostElement.setAttribute("dashboard-money-feed","")};
Q_.prototype.dataChanged=function(F){var W=(0,_.N3)(_.Z(this.hostElement).querySelector("#detail-text"));W.textContent="";(F==null?0:F.detailText)&&W.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(F.detailText))};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Q_.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.bD.YtLiveChatItemBehavior),_.Y("design:type",_.lD)],Q_.prototype,"ytLiveChatItemBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],Q_.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O({observer:"dataChanged"}),_.Y("design:type",Object)],Q_.prototype,"data",void 0);
_.T([_.O({computed:"truthy(isDeleted)",reflectToAttribute:!0}),_.Y("design:type",Object)],Q_.prototype,"hidden",void 0);Q_=_.T([_.y({disableElementRegistration:!0,is:"yt-live-chat-legacy-paid-message-renderer"})],Q_);
_.r(Q_,"yt-live-chat-legacy-paid-message-renderer",function(){if(dJH===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-legacy-paid-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_legacy_paid_message_renderer.yt.live.chat.legacy.paid.message.renderer.css.js--\x3e<div id="card" class="style-scope yt-live-chat-legacy-paid-message-renderer">\n  <yt-img-shadow id="author-photo" height="40" thumbnail="[[data.authorPhoto]]" width="40" class="style-scope yt-live-chat-legacy-paid-message-renderer"></yt-img-shadow>\n  <div id="content" class="style-scope yt-live-chat-legacy-paid-message-renderer">\n    <div id="content-primary-column" class="style-scope yt-live-chat-legacy-paid-message-renderer">\n      <div id="author-name" class="style-scope yt-live-chat-legacy-paid-message-renderer">[[getSimpleString(data.authorName)]]</div>\n      <div id="event-text" class="style-scope yt-live-chat-legacy-paid-message-renderer">[[getSimpleString(data.eventText)]]</div>\n      <div id="detail-text" class="style-scope yt-live-chat-legacy-paid-message-renderer"></div>\n    </div>\n    <div id="timestamp" class="style-scope yt-live-chat-legacy-paid-message-renderer">[[timestampString]]</div>\n  </div>\n  <div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope yt-live-chat-legacy-paid-message-renderer">\n    <yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="showContextMenu" class="style-scope yt-live-chat-legacy-paid-message-renderer">\n      <yt-icon icon="more_vert" class="style-scope yt-live-chat-legacy-paid-message-renderer"></yt-icon>\n    </yt-icon-button>\n  </div>\n</div>\n<div id="inline-action-button-container" class="style-scope yt-live-chat-legacy-paid-message-renderer">\n  <div id="inline-action-buttons" class="style-scope yt-live-chat-legacy-paid-message-renderer"></div>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;h$X===void 0&&(h$X=document.createElement("template"));var h=h$X;E.call(W,h.content.cloneNode(!0),F.content.firstChild);dJH=F}F=dJH;return F},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var NMH;var V1H;var UJU={},z$=function(){return _.zK.apply(this,arguments)||this};
_.k(z$,_.zK);z$.prototype.onLiveChatMembershipItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
z$.prototype.onLiveChatMembershipItemBehaviorClick=z$.prototype.onLiveChatMembershipItemBehaviorClick;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],z$.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],z$.prototype,"data",void 0);_.T([_.R4("click"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],z$.prototype,"onLiveChatMembershipItemBehaviorClick",null);z$=_.T([_.tT()],z$);
UJU.YtLiveChatMembershipItemBehavior=[z$.prototype,_.K.YtRendererBehavior];var tA=function(){var F=_.n.apply(this,arguments)||this;F.supportsInlineActionButtons=!0;F.hasPrimaryHeaderText=!1;F.showOnlyHeader=!1;F.authorBadges=[];F.modern=_.c("web_button_rework_with_live");F.buttonOverrides={style:"overlay",type:"filled"};return F};
_.k(tA,_.n);_.N=tA.prototype;_.N.shouldSupportInlineActionButtons=function(){return!0};
_.N.configureRendererStamper=function(){return{"data.footerButton":{id:"footer-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}}}};
_.N.ready=function(){var F=document.querySelector("yt-live-chat-app");F&&F.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.N.messageChanged=function(){var F=this.data.message,W=(0,_.N3)(_.Z(this.hostElement).querySelector("#message"));W.textContent="";F&&W.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(F))};
_.N.computeHasPrimaryHeaderText=function(F){return!(!F||!F.headerPrimaryText)};
_.N.computeShowOnlyHeader=function(F,W){return this.isMessageEmpty(F,W)};
_.N.computeAuthorBadges=function(F){return F.authorBadges||[]};
_.N.isMessageEmpty=function(F,W){return!F||F.empty?!0:!F.message&&!F.inputField&&!W};
_.N.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&(this.set("data.authorName",null),this.set("data.authorPhoto",null),this.set("data.message",null))};
_.N.getInputElement=function(){return _.Z(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer")};
_.N.inputFocus=function(){var F=this.getInputElement();F&&F.focus()};
_.N.inputInsertEmoji=function(F){var W=this.getInputElement();W&&W.insertEmoji(F)};
_.N.inputMessage=function(){var F=this.getInputElement();return F&&this.data.inputField?(F.completeEmojis(),_.lz(F.liveChatRichMessageInput)):null};
_.N.onFooterButtonClick=function(){this.data.footerButton&&_.hF(this.hostElement,"yt-live-chat-clear-pinned-message")};
_.N.shouldSupportWholeItemClick=function(){return!0};
tA.prototype.isDeletedChanged=tA.prototype.isDeletedChanged;tA.prototype.messageChanged=tA.prototype.messageChanged;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],tA.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.bD.YtLiveChatItemBehavior),_.Y("design:type",_.lD)],tA.prototype,"ytLiveChatItemBehavior",void 0);_.T([_.J(UJU.YtLiveChatMembershipItemBehavior),_.Y("design:type",Object)],tA.prototype,"ytLiveChatMembershipItemBehavior",void 0);
_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],tA.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],tA.prototype,"data",void 0);_.T([_.O({computed:"computeHasPrimaryHeaderText(data)",reflectToAttribute:!0}),_.Y("design:type",Object)],tA.prototype,"hasPrimaryHeaderText",void 0);_.T([_.O({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.Y("design:type",Object)],tA.prototype,"showOnlyHeader",void 0);
_.T([_.O({computed:"computeAuthorBadges(data)"}),_.Y("design:type",Array)],tA.prototype,"authorBadges",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],tA.prototype,"modern",void 0);_.T([_.ea("data.message"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],tA.prototype,"messageChanged",null);_.T([_.ea("isDeleted"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],tA.prototype,"isDeletedChanged",null);
tA=_.T([_.$3({disableElementRegistration:!0,is:"yt-live-chat-membership-item-renderer",noInjection:!0})],tA);
_.r(tA,"yt-live-chat-membership-item-renderer",function(){if(V1H===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-membership-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_membership_item_renderer.yt.live.chat.membership.item.renderer.css.js--\x3e<div id="card" class="style-scope yt-live-chat-membership-item-renderer">\n  <div id="header" class="style-scope yt-live-chat-membership-item-renderer">\n    <template is="dom-if" if="[[data.authorPhoto]]" restamp="" class="style-scope yt-live-chat-membership-item-renderer">\n      <yt-img-shadow id="author-photo" height="40" thumbnail="[[data.authorPhoto]]" width="40" class="style-scope yt-live-chat-membership-item-renderer"></yt-img-shadow>\n    </template>\n    <template is="dom-if" if="[[!data.authorPhoto]]" class="style-scope yt-live-chat-membership-item-renderer">\n      <yt-icon id="author-photo" icon="yt-icons:avatar_anonymous" class="style-scope yt-live-chat-membership-item-renderer"></yt-icon>\n    </template>\n    <div id="header-content" class="style-scope yt-live-chat-membership-item-renderer">\n      <div id="header-content-primary-column" class="style-scope yt-live-chat-membership-item-renderer">\n        <div id="header-content-inner-column" class="style-scope yt-live-chat-membership-item-renderer">\n          <template is="dom-if" if="[[data.authorName]]" restamp="" class="style-scope yt-live-chat-membership-item-renderer">\n            <yt-live-chat-author-chip author-badges="[[authorBadges]]" author-name="[[data.authorName]]" class="style-scope yt-live-chat-membership-item-renderer">\n            </yt-live-chat-author-chip>\n          </template>\n          <div id="header-primary-text" class="style-scope yt-live-chat-membership-item-renderer">[[getSimpleString(data.headerPrimaryText)]]</div>\n        </div>\n        <div id="header-subtext" class="style-scope yt-live-chat-membership-item-renderer">[[getSimpleString(data.headerSubtext)]]</div>\n      </div>\n      <div id="timestamp" class="style-scope yt-live-chat-membership-item-renderer">[[timestampString]]</div>\n    </div>\n    <div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope yt-live-chat-membership-item-renderer">\n      <yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="showContextMenu" class="style-scope yt-live-chat-membership-item-renderer">\n        <yt-icon icon="more_vert" class="style-scope yt-live-chat-membership-item-renderer"></yt-icon>\n      </yt-icon-button>\n    </div>\n  </div>\n  <div id="content" class="style-scope yt-live-chat-membership-item-renderer">\n    <div id="message" dir="auto" class="style-scope yt-live-chat-membership-item-renderer"></div>\n    <div id="input-container" class="style-scope yt-live-chat-membership-item-renderer">\n      <template is="dom-if" if="[[data.inputField]]" class="style-scope yt-live-chat-membership-item-renderer">\n        <yt-live-chat-text-input-field-renderer id="input-field" data="[[data.inputField.liveChatTextInputFieldRenderer]]" participants-manager="[[participantsManager]]" class="style-scope yt-live-chat-membership-item-renderer">\n        </yt-live-chat-text-input-field-renderer>\n      </template>\n    </div>\n    <yt-formatted-string id="deleted-state" is-deleted$="[[isDeleted]]" text="[[data.deletedStateMessage]]" class="style-scope yt-live-chat-membership-item-renderer"></yt-formatted-string>\n  </div>\n</div>\n<div id="footer-button" hidden$="[[!data.footerButton]]" on-click="onFooterButtonClick" class="style-scope yt-live-chat-membership-item-renderer"></div>\n<div id="inline-action-button-container" class="style-scope yt-live-chat-membership-item-renderer">\n  <div id="inline-action-buttons" class="style-scope yt-live-chat-membership-item-renderer"></div>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;NMH===void 0&&(NMH=document.createElement("template"));var h=NMH;E.call(W,h.content.cloneNode(!0),F.content.firstChild);V1H=F}F=V1H;return F},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var R$i;var e$_;var CO=function(){return _.n.apply(this,arguments)||this};
_.k(CO,_.n);CO.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],CO.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],CO.prototype,"data",void 0);CO=_.T([_.$3({disableElementRegistration:!0,is:"yt-live-chat-mode-change-message-renderer",noInjection:!0})],CO);
_.r(CO,"yt-live-chat-mode-change-message-renderer",function(){if(e$_===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-mode-change-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_mode_change_message_renderer.yt.live.chat.mode.change.message.renderer.css.js--\x3e<div id="contents" class="style-scope yt-live-chat-mode-change-message-renderer">\n  <yt-icon icon="[[data.icon.iconType]]" class="style-scope yt-live-chat-mode-change-message-renderer"></yt-icon>\n  <div id="text-container" class="style-scope yt-live-chat-mode-change-message-renderer">\n    <yt-formatted-string id="text" text="[[data.text]]" class="style-scope yt-live-chat-mode-change-message-renderer"></yt-formatted-string>\n    <yt-formatted-string id="subtext" text="[[data.subtext]]" class="style-scope yt-live-chat-mode-change-message-renderer"></yt-formatted-string>\n  </div>\n  <div id="buttons" class="style-scope yt-live-chat-mode-change-message-renderer"></div>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;R$i===void 0&&(R$i=document.createElement("template"));var h=R$i;E.call(W,h.content.cloneNode(!0),F.content.firstChild);e$_=F}F=e$_;return F},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var M1z;var g_p;var BN=function(){return _.n.apply(this,arguments)||this};
_.k(BN,_.n);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],BN.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.bD.YtLiveChatItemBehavior),_.Y("design:type",_.lD)],BN.prototype,"ytLiveChatItemBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],BN.prototype,"data",void 0);BN=_.T([_.$3({disableElementRegistration:!0,is:"yt-live-chat-moderation-message-renderer"})],BN);
_.r(BN,"yt-live-chat-moderation-message-renderer",function(){if(g_p===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-moderation-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_moderation_message_renderer.yt.live.chat.moderation.message.renderer.css.js--\x3e<div id="container" class="style-scope yt-live-chat-moderation-message-renderer">\n  <span id="timestamp" class="style-scope yt-live-chat-moderation-message-renderer">[[timestampString]]</span>\n  <yt-formatted-string id="message" text="[[data.message]]" class="style-scope yt-live-chat-moderation-message-renderer"></yt-formatted-string>\n</div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);var W=F.content,E=W.insertBefore;M1z===void 0&&(M1z=document.createElement("template"));var h=M1z;E.call(W,h.content.cloneNode(!0),F.content.firstChild);g_p=F}F=g_p;return F},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var QQa;var z$X;var vN=function(){var F=_.n.apply(this,arguments)||this;F.modern=_.c("web_button_rework");return F};
_.k(vN,_.n);vN.prototype.onClick=function(){var F;if((F=this.data)!=null&&F.onClickCommand){var W;_.Ru.instance.resolveCommand((W=this.data)==null?void 0:W.onClickCommand)}};
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],vN.prototype,"modern",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],vN.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.av),_.Y("design:type",Object)],vN.prototype,"ytLiveChatReduxBehavior",void 0);_.T([_.J(_.bD.YtLiveChatItemBehavior),_.Y("design:type",_.lD)],vN.prototype,"ytLiveChatItemBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],vN.prototype,"ytRendererstamperBehavior",void 0);
_.T([_.O(),_.Y("design:type",Object)],vN.prototype,"data",void 0);vN=_.T([_.$3({disableElementRegistration:!0,is:"yt-live-chat-offer-click-count-message-renderer",noInjection:!0})],vN);
_.r(vN,"yt-live-chat-offer-click-count-message-renderer",function(){if(z$X===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-offer-click-count-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_offer_click_count_message_renderer.yt.live.chat.offer.click.count.message.renderer.css.js--\x3e<div id="container" class="style-scope yt-live-chat-offer-click-count-message-renderer">\n  <div id="icon-container" class="style-scope yt-live-chat-offer-click-count-message-renderer">\n    <div id="icon" class="style-scope yt-live-chat-offer-click-count-message-renderer">\n      <yt-icon icon="yt-icons:trending_up" class="style-scope yt-live-chat-offer-click-count-message-renderer"></yt-icon>\n    </div>\n  </div>\n  <div id="metadata-container" class="style-scope yt-live-chat-offer-click-count-message-renderer">\n    <div id="message-title" class="style-scope yt-live-chat-offer-click-count-message-renderer">\n      <yt-formatted-string text="[[data.messageTitle]]" class="style-scope yt-live-chat-offer-click-count-message-renderer"></yt-formatted-string>\n    </div>\n    <div id="product-title-container" class="style-scope yt-live-chat-offer-click-count-message-renderer">[[data.productTitle]]</div>\n    <div id="cta-container" class="style-scope yt-live-chat-offer-click-count-message-renderer">\n      <a id="cta-endpoint" href$="[[computeHref_(data.onClickCommand)]]" on-click="onClick" data="[[data.onClickCommand]]" class="style-scope yt-live-chat-offer-click-count-message-renderer">\n        [[data.ctaTitle]]\n        <yt-icon class="hover-icon style-scope yt-live-chat-offer-click-count-message-renderer" icon="open_in_new"></yt-icon>\n      </a>\n    </div>\n  </div>\n</div>');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;QQa===void 0&&(QQa=document.createElement("template"));var h=QQa;E.call(W,h.content.cloneNode(!0),F.content.firstChild);z$X=F}F=z$X;return F},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var t1H;var Im=function(){return _.n.apply(this,arguments)||this};
_.k(Im,_.n);_.T([_.O(),_.Y("design:type",Object)],Im.prototype,"data",void 0);Im=_.T([_.$3({disableElementRegistration:!0,is:"yt-live-chat-placeholder-item-renderer",noInjection:!0})],Im);
_.r(Im,"yt-live-chat-placeholder-item-renderer",function(){if(t1H===void 0){var F=document.createElement("template");_.L(F,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-placeholder-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);t1H=F}F=t1H;return F},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var Cl_;var BMO;var v__=new Tr(7),cN=function(){var F=_.n.apply(this,arguments)||this;F.data={};return F};
_.k(cN,_.n);cN.prototype.dataChanged=function(){var F;((F=this.data)==null?0:F.class)&&_.Wm(this.hostElement,this.data.class,!0);var W;((W=this.oldData)==null?0:W.class)&&_.Wm(this.hostElement,this.oldData.class,!1);this.oldData=this.data};
cN.prototype.computeTimestampString=function(F){return v__.format(new Date(F/1E3))};
cN.prototype.dataChanged=cN.prototype.dataChanged;_.T([_.O(),_.Y("design:type",Object)],cN.prototype,"data",void 0);_.T([_.O({computed:"computeTimestampString(data.timestampUsec)"}),_.Y("design:type",String)],cN.prototype,"timestampString",void 0);_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],cN.prototype,"dataChanged",null);cN=_.T([_.$3({disableElementRegistration:!0,is:"yt-live-chat-server-error-message",noInjection:!0})],cN);
_.r(cN,"yt-live-chat-server-error-message",function(){if(BMO===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-server-error-message--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_server_error_message.yt.live.chat.server.error.message.css.js--\x3e<span id="timestamp" class="style-scope yt-live-chat-server-error-message">[[timestampString]]</span>\n<span id="message" class="style-scope yt-live-chat-server-error-message">[[data.message]]</span>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);var W=F.content,E=W.insertBefore;Cl_===void 0&&(Cl_=document.createElement("template"));var h=Cl_;E.call(W,h.content.cloneNode(!0),F.content.firstChild);BMO=F}F=BMO;return F},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var Irz;var c$T;var DN=function(){var F=_.n.apply(this,arguments)||this;F.defaultToFilledIcon=!1;return F};
_.k(DN,_.n);DN.prototype.computeHasPrimaryColorIcon=function(F){return F==="SPARK"||F==="SPONSORSHIP_STAR"};
DN.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{style:"max-width: 100%"}}}}}};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],DN.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.bD.YtLiveChatItemBehavior),_.Y("design:type",_.lD)],DN.prototype,"ytLiveChatItemBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],DN.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],DN.prototype,"defaultToFilledIcon",void 0);_.T([_.O(),_.Y("design:type",Object)],DN.prototype,"data",void 0);
_.T([_.O({value:!1,computed:"computeHasPrimaryColorIcon(data.icon.iconType)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],DN.prototype,"hasPrimaryColorIcon",void 0);DN=_.T([_.$3({disableElementRegistration:!0,is:"yt-live-chat-viewer-engagement-message-renderer",noInjection:!0})],DN);
_.r(DN,"yt-live-chat-viewer-engagement-message-renderer",function(){if(c$T===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-viewer-engagement-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_viewer_engagement_message_renderer.yt.live.chat.viewer.engagement.message.renderer.css.js--\x3e<div id="card" class="style-scope yt-live-chat-viewer-engagement-message-renderer"><yt-icon id="icon" default-to-filled="[[defaultToFilledIcon]]" icon="[[data.icon.iconType]]" class="style-scope yt-live-chat-viewer-engagement-message-renderer"></yt-icon><div id="content" class="style-scope yt-live-chat-viewer-engagement-message-renderer"><div id="message-container" class="style-scope yt-live-chat-viewer-engagement-message-renderer"><yt-formatted-string id="message" split-lines="" text="[[data.message]]" class="style-scope yt-live-chat-viewer-engagement-message-renderer"></yt-formatted-string></div><div id="action-button" class="style-scope yt-live-chat-viewer-engagement-message-renderer"></div></div><div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope yt-live-chat-viewer-engagement-message-renderer"><yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="showContextMenu" class="style-scope yt-live-chat-viewer-engagement-message-renderer"><yt-icon icon="more_vert" class="style-scope yt-live-chat-viewer-engagement-message-renderer"></yt-icon></yt-icon-button></div></div>');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;Irz===void 0&&(Irz=document.createElement("template"));var h=Irz;E.call(W,h.content.cloneNode(!0),F.content.firstChild);c$T=F}F=c$T;return F},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var DJe;var xz=function(){var F=_.n.apply(this,arguments)||this;F.modernUpdate=!1;F.buttonStyle="overlay";F.buttonType="filled";return F};
_.k(xz,_.n);xz.prototype.computeTooltipPosition=function(){return this.modernUpdate?"left":"bottom"};
xz.prototype.computeButtonOverride=function(){if(this.modernUpdate)return{iconPosition:"icon-only",style:this.buttonStyle,type:this.buttonType,size:"M"}};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],xz.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],xz.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],xz.prototype,"modernUpdate",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",String)],xz.prototype,"buttonStyle",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",String)],xz.prototype,"buttonType",void 0);
xz=_.T([_.y({is:"ytd-ad-hover-text-button-renderer",disableElementRegistration:!0})],xz);
_.r(xz,"ytd-ad-hover-text-button-renderer",function(){if(DJe!==void 0)return DJe;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ad-hover-text-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-button-renderer id="info-button" data="[[data.button.buttonRenderer]]" hidden="[[!data.button]]" overrides="[[computeButtonOverride(modernUpdate)]]" class="style-scope ytd-ad-hover-text-button-renderer">\n</ytd-button-renderer>\n<tp-yt-paper-tooltip id="ad-info-tooltip" for="info-button" hidden="[[!data.hoverText]]" position="[[computeTooltipPosition(modernUpdate)]]" class="style-scope ytd-ad-hover-text-button-renderer">\n  [[getSimpleString(data.hoverText)]]\n</tp-yt-paper-tooltip>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return DJe=F},{mode:1});var xJz;var kz=function(){var F=_.n.apply(this,arguments)||this;F.buttonOverrides={size:"XS"};F.modern=_.c("web_button_rework");return F};
_.k(kz,_.n);kz.prototype.onHelpTap=function(F){this.data&&this.data.informationDialog&&(_.hF(this.hostElement,"yt-navigate",{endpoint:{liveChatDialogEndpoint:{content:this.data.informationDialog}}}),F.preventDefault(),F.stopPropagation())};
_.T([_.O(),_.Y("design:type",Object)],kz.prototype,"buttonOverrides",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],kz.prototype,"modern",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],kz.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],kz.prototype,"data",void 0);kz=_.T([_.y({disableElementRegistration:!0,is:"ytd-live-chat-purchased-product-message-renderer"})],kz);
_.r(kz,"ytd-live-chat-purchased-product-message-renderer",function(){if(xJz!==void 0)return xJz;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-live-chat-purchased-product-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n\n<div id="container" class="style-scope ytd-live-chat-purchased-product-message-renderer">\n  <a id="product-container" class="yt-simple-endpoint style-scope ytd-live-chat-purchased-product-message-renderer" href$="[[computeHref_(data.onClickCommand)]]" data="[[data.onClickCommand]]" data-offer-version-id$="[[data.debugOfferVersionId]]">\n    <div id="product-image" class="style-scope ytd-live-chat-purchased-product-message-renderer">\n      <yt-img-shadow class="no-transition style-scope ytd-live-chat-purchased-product-message-renderer" thumbnail="[[data.thumbnail]]"></yt-img-shadow>\n    </div>\n    <div id="product-info" class="style-scope ytd-live-chat-purchased-product-message-renderer">\n      <div id="purchased-message" class="style-scope ytd-live-chat-purchased-product-message-renderer">\n        <yt-formatted-string text="[[data.purchasedMessage]]" class="style-scope ytd-live-chat-purchased-product-message-renderer"></yt-formatted-string>\n      </div>\n      <div id="product-title-container" class="style-scope ytd-live-chat-purchased-product-message-renderer">\n        <div id="product-title" show-icon$="[[data.showExternalIcon]]" class="style-scope ytd-live-chat-purchased-product-message-renderer">[[data.productTitle]]\n          <template is="dom-if" if="[[data.showExternalIcon]]" class="style-scope ytd-live-chat-purchased-product-message-renderer">\n            <yt-icon class="hover-icon style-scope ytd-live-chat-purchased-product-message-renderer" icon="open_in_new"></yt-icon>\n          </template>\n        </div>\n      </div>\n    </div>\n  </a>\n  <div id="information-icon" on-tap="onHelpTap" class="style-scope ytd-live-chat-purchased-product-message-renderer">\n    <ytd-button-renderer id="info-button" data="[[data.informationButton.buttonRenderer]]" hidden="[[!data.informationButton]]" overrides="[[buttonOverrides]]" role="tooltip" tab-index="1" class="style-scope ytd-live-chat-purchased-product-message-renderer">\n    </ytd-button-renderer>\n  </div>\n</div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return xJz=F},{mode:1});var kxp;var A$U;var AA=function(){var F=_.n.apply(this,arguments)||this;F.isContainerDeleted=!1;return F};
_.k(AA,_.n);AA.prototype.onContextMenuClick=function(F){this.ytLiveChatItemBehavior.showContextMenu(F)};
AA.prototype.isContainerDeletedChanged=function(){this.isContainerDeleted&&(this.set("data.authorName",null),this.set("data.authorBadges",null),this.set("data.authorPhoto",null),this.set("data.primaryText",null),this.set("data.secondaryText",null),this.set("data.image",null))};
AA.prototype.isContainerDeletedChanged=AA.prototype.isContainerDeletedChanged;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],AA.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.bD.YtLiveChatItemBehavior),_.Y("design:type",_.lD)],AA.prototype,"ytLiveChatItemBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],AA.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Object)],AA.prototype,"isContainerDeleted",void 0);
_.T([_.O(),_.Y("design:type",String)],AA.prototype,"deletedStateMessage",void 0);_.T([_.ea("isContainerDeleted"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],AA.prototype,"isContainerDeletedChanged",null);AA=_.T([_.y({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-header-renderer"})],AA);
_.r(AA,"ytd-sponsorships-live-chat-header-renderer",function(){if(A$U!==void 0)return A$U;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-live-chat-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n  <div id="content" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n    <template is="dom-if" if="[[data.authorPhoto]]" restamp="" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n      <yt-img-shadow id="author-photo" height="40" thumbnail="[[data.authorPhoto]]" width="40" class="style-scope ytd-sponsorships-live-chat-header-renderer"></yt-img-shadow>\n    </template>\n    <template is="dom-if" if="[[!data.authorPhoto]]" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n      <yt-icon id="author-photo" icon="yt-icons:avatar_anonymous" class="style-scope ytd-sponsorships-live-chat-header-renderer"></yt-icon>\n    </template>\n    <div id="header-content" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n      <div id="header-content-primary-column" hidden$="[[isContainerDeleted]]" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n        <div id="header-content-inner-column" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n          <template is="dom-if" if="[[data.authorName]]" restamp="" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n            <yt-live-chat-author-chip author-badges="[[data.authorBadges]]" author-name="[[data.authorName]]" single-line="" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n            </yt-live-chat-author-chip>\n          </template>\n          <div id="primary-text" class="style-scope ytd-sponsorships-live-chat-header-renderer">[[getSimpleString(data.primaryText)]]</div>\n        </div>\n        <div id="secondary-text" class="style-scope ytd-sponsorships-live-chat-header-renderer">[[getSimpleString(data.secondaryText)]]</div>\n      </div>\n      <div id="header-content-deleted-state" hidden$="[[!isContainerDeleted]]" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n        <div id="deleted-primary-text" class="style-scope ytd-sponsorships-live-chat-header-renderer">[[deletedStateMessage]]</div>\n      </div>\n    </div>\n  </div>\n  <template is="dom-if" restamp="" if="[[data.image]]" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n    <yt-img-shadow class="rhs-image style-scope ytd-sponsorships-live-chat-header-renderer" height="104" thumbnail="[[data.image]]" width="104">\n    </yt-img-shadow>\n  </template>\n  <div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n    <yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="onContextMenuClick" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n      <yt-icon icon="more_vert" class="style-scope ytd-sponsorships-live-chat-header-renderer"></yt-icon>\n    </yt-icon-button>\n  </div>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return A$U=F},{mode:1});var s9=function(){var F=_.n.apply(this,arguments)||this;F.modern=_.c("web_button_rework_with_live");F.buttonOverrides={style:"overlay",type:"filled"};return F};
_.k(s9,_.n);s9.prototype.configureRendererStamper=function(){return{"data.optInPrompt":{id:"opt-in-prompt",mapping:{liveChatViewerEngagementMessageRenderer:{component:"yt-live-chat-viewer-engagement-message-renderer",params:{defaultToFilledIcon:!0}},buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}}}};
s9.prototype.onCtaButtonClick=function(){var F,W=_.D((F=this.data)==null?void 0:F.optInPrompt,_.jt);if(F=this.maybeGetButtonCommand(W)){var E;(E=_.z4())==null||E.clickCommand(F)}};
s9.prototype.maybeGetButtonCommand=function(F){return!F||!F.command||_.D(F.command,TZM)===void 0&&_.D(F.command,r7p)===void 0?null:F.command};
s9.prototype.shouldHideOptinPrompt=function(F,W){return!F||W};
_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],s9.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.bD.YtLiveChatItemBehavior),_.Y("design:type",_.lD)],s9.prototype,"ytLiveChatItemBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],s9.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],s9.prototype,"modern",void 0);s9=_.T([_.y({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer"})],s9);
_.r(s9,"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer",function(){if(kxp!==void 0)return kxp;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-live-chat-gift-purchase-announcement-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-sponsorships-live-chat-header-renderer id="header" data="[[data.header.liveChatSponsorshipsHeaderRenderer]]" deleted-state-message="[[getSimpleString(data.deletedStateMessage)]]" is-container-deleted="[[isDeleted]]" class="style-scope ytd-sponsorships-live-chat-gift-purchase-announcement-renderer">\n</ytd-sponsorships-live-chat-header-renderer>\n<div id="opt-in-prompt" on-click="onCtaButtonClick" hidden="[[shouldHideOptinPrompt(data.optInPrompt, isDeleted)]]" class="style-scope ytd-sponsorships-live-chat-gift-purchase-announcement-renderer"></div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return kxp=F},{mode:1});var sQu;var LO=function(){return _.n.apply(this,arguments)||this};
_.k(LO,_.n);LO.prototype.onContextMenuClick=function(F){this.ytLiveChatItemBehavior.showContextMenu(F)};
LO.prototype.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&(this.set("data.authorName",null),this.set("data.authorBadges",null),this.set("data.authorPhoto",null),this.set("data.message",null))};
LO.prototype.isDeletedChanged=LO.prototype.isDeletedChanged;_.T([_.J(_.bD.YtLiveChatItemBehavior),_.Y("design:type",_.lD)],LO.prototype,"ytLiveChatItemBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],LO.prototype,"data",void 0);_.T([_.ea("isDeleted"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],LO.prototype,"isDeletedChanged",null);LO=_.T([_.y({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"})],LO);
_.r(LO,"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer",function(){if(sQu!==void 0)return sQu;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-live-chat-gift-redemption-announcement-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.authorPhoto]]" restamp="" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <yt-img-shadow id="author-photo" height="24" thumbnail="[[data.authorPhoto]]" width="24" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-img-shadow>\n</template>\n<template is="dom-if" if="[[!data.authorPhoto]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <yt-icon id="author-photo" class="no-photo style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer" icon="yt-sys-icons:account_circle"></yt-icon>\n</template>\n<div id="content" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <span id="timestamp" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    [[timestampString]]\n  \n  </span><template is="dom-if" if="[[data.authorName]]" restamp="" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"><yt-live-chat-author-chip author-badges="[[data.authorBadges]]" author-name="[[data.authorName]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    </yt-live-chat-author-chip>\n  </template>\n  <yt-formatted-string id="message" hidden$="[[isDeleted]]" text="[[data.message]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-formatted-string>\n  <yt-icon id="gift-icon" default-to-filled="true" hidden$="[[isDeleted]]" icon="gift" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-icon>\n  <div id="deleted-message" hidden$="[[!isDeleted]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    [[getSimpleString(data.deletedStateMessage)]]\n  </div>\n</div>\n<div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="onContextMenuClick" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    <yt-icon icon="more_vert" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return sQu=F},{mode:1});var qe=function(){var F=_.n.apply(this,arguments)||this;F.actionMap={"yt-mark-chat-item-as-deleted-action":"handleLiveChatAction","yt-live-chat-actions":"handleLiveChatActions","yt-remove-chat-item-action":"handleLiveChatAction"};return F};
_.k(qe,_.n);_.N=qe.prototype;
_.N.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{liveChatAutoModMessageRenderer:"yt-live-chat-auto-mod-message-renderer",liveChatPaidMessageRenderer:"yt-live-chat-paid-message-renderer",liveChatLegacyPaidMessageRenderer:"yt-live-chat-legacy-paid-message-renderer",liveChatMembershipItemRenderer:"yt-live-chat-membership-item-renderer",liveChatTextMessageRenderer:"yt-live-chat-text-message-renderer",liveChatPaidStickerRenderer:"yt-live-chat-paid-sticker-renderer",liveChatDonationAnnouncementRenderer:"yt-live-chat-donation-announcement-renderer",
liveChatModeChangeMessageRenderer:"yt-live-chat-mode-change-message-renderer",liveChatModerationMessageRenderer:"yt-live-chat-moderation-message-renderer",liveChatOfferClickCountMessageRenderer:"yt-live-chat-offer-click-count-message-renderer",liveChatPlaceholderItemRenderer:"yt-live-chat-placeholder-item-renderer",liveChatPurchasedProductMessageRenderer:"ytd-live-chat-purchased-product-message-renderer",liveChatSponsorshipsGiftPurchaseAnnouncementRenderer:"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer",
liveChatSponsorshipsGiftRedemptionAnnouncementRenderer:"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer",liveChatViewerEngagementMessageRenderer:"yt-live-chat-viewer-engagement-message-renderer",serverErrorMessage:"yt-live-chat-server-error-message"}}}};
_.N.handleLiveChatAction=function(F){_.D(F,UDB)?this.handleMarkChatItemAsDeletedAction(_.D(F,UDB)):_.D(F,VjT)&&this.handleRemoveChatItemAction(_.D(F,VjT))};
_.N.handleLiveChatActions=function(F){F.forEach(this.handleLiveChatAction,this)};
_.N.handleMarkChatItemAsDeletedAction=function(F){var W=this,E;((E=this.data)==null?0:E.items)&&this.data.items.forEach(function(h,d){var V=Object.keys(h)[0];Object.values(h)[0].id===F.targetItemId&&W.markAsDeleted("data.items",d,V,F.deletedStateMessage,F.showOriginalContentMessage)})};
_.N.handleRemoveChatItemAction=function(F){var W=this,E;((E=this.data)==null?0:E.items)&&this.data.items.forEach(function(h,d){Object.values(h)[0].id===F.targetItemId&&W.splice("data.items",d,1)})};
_.N.markAsDeleted=function(F,W,E,h,d){F=[F,W,E].join(".");this.set(F+".deletedStateMessage",h);this.set(F+".showOriginalContentMessage",d)};
_.T([_.O(),_.Y("design:type",Object)],qe.prototype,"data",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],qe.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],qe.prototype,"ytActionHandlerBehavior",void 0);qe=_.T([_.$3({disableElementRegistration:!0,is:"yt-live-chat-item-display-list-renderer",noInjection:!0})],qe);
_.r(qe,"yt-live-chat-item-display-list-renderer",function(){if(E_H===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-item-display-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_item_display_list_renderer.yt.live.chat.item.display.list.renderer.css.js--\x3e<div id="items" class="style-scope yt-live-chat-item-display-list-renderer"></div>');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);var W=F.content,E=W.insertBefore;Wbu===void 0&&(Wbu=document.createElement("template"));var h=Wbu;E.call(W,h.content.cloneNode(!0),F.content.firstChild);E_H=F}F=E_H;return F},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var Lbe;var q4c,$Ja=function(){if(q4c!==void 0)return q4c;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-item-display-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_item_display_renderer.yt.live.chat.item.display.renderer.css.js--\x3e<div id="content" class="style-scope yt-live-chat-item-display-renderer"></div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);var W=F.content,E=W.insertBefore;Lbe===void 0&&(Lbe=document.createElement("template"));var h=Lbe;E.call(W,h.content.cloneNode(!0),F.content.firstChild);return q4c=F};var $z=function(){var F=_.n.apply(this,arguments)||this;F.isHeader=!1;return F};
_.k($z,_.n);$z.prototype.configureRendererStamper=function(){return{"data.item":{id:"content",mapping:{liveChatPaidMessageRenderer:{component:"yt-live-chat-paid-message-renderer",params:{noPadding:"[[isHeader]]"}}}}}};
_.Sn.Object.defineProperties($z,{template:{configurable:!0,enumerable:!0,get:function(){return $Ja()}}});
_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],$z.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],$z.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],$z.prototype,"isHeader",void 0);$z=_.T([_.$3({is:"yt-live-chat-item-display-renderer",disableElementRegistration:!0,noInjection:!0})],$z);_.r($z,"yt-live-chat-item-display-renderer",function(){return $Ja()},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var ZhT,XFT,fri,ar_;
ZhT={home:{"ytd-thumbnail":1,"ytd-topbar-menu-button-renderer":1,"ytd-item-section-renderer":5,"ytd-shelf-renderer":5,"yt-horizontal-list-renderer":5,"ytd-grid-video-renderer":30,"ytd-button-renderer":11,"tp-yt-paper-icon-button":7,"tp-yt-paper-button":5,"yt-formatted-string":5,"tp-yt-paper-tooltip":2,"yt-next-continuation":1,"~ytd-guide-entry-renderer":17,"~ytd-guide-signin-promo-renderer":1,"~ytd-browse":{count:1,signals:["yt-app-context","aa"]}},search:{"yt-next-continuation":1,"ytd-button-renderer":2,
"ytd-channel-renderer":2,"ytd-item-section-renderer":1,"ytd-video-renderer":20,"ytd-promoted-video-renderer":1,"ytd-search-pyv-renderer":1,"ytd-thumbnail":1,"ytd-thumbnail-overlay-time-status-renderer":20,"ytd-thumbnail-overlay-toggle-button-renderer":0,"ytd-shelf-renderer":1,"ytd-vertical-list-renderer":1,"ytd-thumbnail-overlay-hover-text-renderer":2,"ytd-thumbnail-overlay-side-panel-renderer":2,"yt-formatted-string":3,"iron-icon":1,"tp-yt-iron-icon":1,"tp-yt-paper-button":3,"tp-yt-paper-tooltip":33,
"yt-icon":1,"ytd-playlist-renderer":1,"ytd-playlist-video-thumbnail-renderer":1,"ytd-subscribe-button-renderer":1,"~ytd-search":{count:1,signals:["yt-app-context","aa"]}},watch:{"yt-next-continuation":2,"ytd-video-view-count-renderer":1,"ytd-button-renderer":3,"ytd-toggle-button-renderer":2,"ytd-menu-renderer":1,"ytd-compact-video-renderer":19,"ytd-compact-promoted-video-renderer":1,"ytd-compact-playlist-renderer":1,"ytd-compact-radio-renderer":1,"ytd-thumbnail":1,"ytd-thumbnail-overlay-time-status-renderer":20,
"ytd-thumbnail-overlay-toggle-button-renderer":0,"ytd-player-legacy-desktop-watch-ads-renderer":1,"tp-yt-paper-button":20,"tp-yt-paper-icon-button":20,"tp-yt-paper-tooltip":30,"yt-formatted-string":5}};XFT={home:"eohps",search:"eosps",watch:"eowps"};_.Hhe=["watch","search","home"];
_.ZN=function(){this.JSC$12049_isInitialized_=!1;this.isInitialPass_=!0;this.isSeenDuringInitialPass_={};this.JSC$12049_queue_=[];this.pendingPages_=[];this.pagePreparerJobId_=this.fragmentJobId_=0;this.DEFAULT_DELAY_=_.b0("PRECONSTRUCTION_DELAY",0);this.signals_=_.ip();this.targetPage_=""};
_.ZN.prototype.init=function(F,W){F=F===void 0?"":F;W=W===void 0?null:W;if(this.JSC$12049_isInitialized_)this.abort();else if(this.JSC$12049_isInitialized_=!0,F&&_.Plz(this,F),W){var E=_.rL(this.signals_,"pcl")?0:10,h=function(){for(var d=0,V;V=_.Hhe[d++];)V!=F&&V!=W&&this.pendingPages_.push(V);_.J$H(this)}.bind(this);
this.signals_.parkOrScheduleJob(h,E,"pcl")}};
_.ZN.prototype.abort=function(){this.fragmentJobId_&&(_.P0.cancelJob(this.fragmentJobId_),this.fragmentJobId_=0);ar_(this)};
_.Plz=function(F,W){F.JSC$12049_isInitialized_&&!F.targetPage_&&(F.targetPage_=W,fri(F,W),F.isInitialPass_=!1,fri(F,W),F.signals_.processSignal(XFT[F.targetPage_]),ar_(F),_.J$H(F))};
_.J$H=function(F){F.pendingPages_.length&&!F.pagePreparerJobId_&&(F.pagePreparerJobId_=_.sB(_.P0,function(){this.pagePreparerJobId_=0;this.pendingPages_.length&&!this.targetPage_&&_.Plz(this,this.pendingPages_.shift())}.bind(F),F.DEFAULT_DELAY_))};
fri=function(F,W){if(W=ZhT[W])for(var E in W){var h=!1,d=E;E.charAt(0)=="~"&&(h=!0,d=E.substring(1));var V=W[E];V=typeof V=="object"?V:{count:V};W[E]=V;V.componentName=d;V.count>0&&(F.isInitialPass_?h||F.isSeenDuringInitialPass_[d]||(F.JSC$12049_queue_.push({componentName:d,count:1,signals:V.signals}),F.isSeenDuringInitialPass_[d]=!0,V.count--):F.JSC$12049_queue_.push(V))}};
ar_=function(F){F.JSC$12049_queue_.length=0;F.targetPage_="";F.isInitialPass_=!0;F.signals_.processSignal("eop")};
_.ZN.getInstance=function(){return _.zF(_.ZN)};var Ohc=function(){this.signals=_.ip();this.init()};
Ohc.prototype.startPreconstruction=function(){_.ZN.getInstance().init(_.l0("IS_HOMEPAGE_COLD")?"home":null,"n/a")};
Ohc.prototype.init=function(){bh_(this);window.Polymer&&qmM&&U4o();this.signals.parkOrScheduleJob(this.startPreconstruction,10,"eor");a:{var F=_.EY.ytcsi;if(F&&F.gt&&(F=F.gt())&&F.tick&&(F.tick.aft>0||F.tick.pbs>0)&&(_.l0("IS_HOMEPAGE_COLD")||_.l0("IS_RESULTS_PAGE_COLD")||_.l0("IS_WATCH_PAGE_COLD"))){lrB(this);break a}tFo(WKY,this.onNotifications,this)}};
var bh_=function(F){var W=function(){F.signals.processSignal("dl")};
document.readyState==="complete"?(_.i0(Error("sh"),"WARNING"),W()):_.T2I(window,"load",W)};
Ohc.prototype.onNotifications=function(F){F.timer||(_.l0("IS_HOMEPAGE_COLD")||_.l0("IS_RESULTS_PAGE_COLD")||_.l0("IS_WATCH_PAGE_COLD"))&&lrB(this)};
var lrB=function(F){F.signals.parkOrScheduleJob(function(){F.signals.processSignal("eocs")},10,"eor")};
new Ohc;var Xw,HN=function(){return _.zK.apply(this,arguments)||this};
_.k(HN,_.zK);_.N=HN.prototype;_.N.enableActiveViewMeasurement=function(F){if(this.isActiveViewEnabled(F)){var W=this.getUrlPrefixesFromCommand(F.viewableCommands);F=this.getUrlPrefixesFromCommand(F.endOfSessionCommands);if(!Xw){var E=_.dV("active_view_tos_timeout_ms");Xw=E>0?new Z5n(this.getVersion(),E):new Z5n(this.getVersion())}H5o(Xw,this.hostElement);Pho(Xw,this.hostElement,W,F)}};
_.N.stopActiveViewMeasurement=function(){Xw&&H5o(Xw,this.hostElement)};
_.N.isActiveViewEnabled=function(F){return!!F&&(this.hasAtLeastOneUrl(F.viewableCommands)||this.hasAtLeastOneUrl(F.endOfSessionCommands))};
_.N.hasAtLeastOneUrl=function(F){return!!F&&F.length>0&&F[0].loggingUrls!=null&&F[0].loggingUrls.length>0};
_.N.getVersion=function(){var F=_.b0("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(F==null?void 0:F.length)===2?F[1]:null};
_.N.getUrlPrefixesFromCommand=function(F){if(!F)return[];var W=[];F=_.U(F);for(var E=F.next();!E.done;E=F.next())if(E=E.value,E.loggingUrls){E=_.U(E.loggingUrls);for(var h=E.next();!h.done;h=E.next())h=h.value,h.baseUrl&&W.push(h.baseUrl)}return W};
HN=_.T([_.tT()],HN);var PN=[HN.prototype];var JA=function(){return _.zK.apply(this,arguments)||this};
_.k(JA,_.zK);_.Sn.Object.defineProperties(JA.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return _.c("enable_entity_store_from_dependency_injection")?_.ja():_.uC()}}});
JA=_.T([_.tT()],JA);_.am=[sk.prototype,JA.prototype];var n_M=["ytd-rich-shelf-renderer"],fO=function(){var F=_.zK.apply(this,arguments)||this;F._noAccessors=!0;F.DISMISSED_CONTENT_KEYSPACE="DISMISSED_CONTENT_KEYSPACE:";F.followUpDialogPromise=null;F.followUpDialogPromiseResolve=null;F.followUpDialogPromiseReject=null;return F};
_.k(fO,_.zK);_.N=fO.prototype;_.N.dismissibleItemIsDismissedChanged_=function(F){_.c("kevlar_fluid_dismiss")&&(F?_.hF(this.hostElement,"yt-dismissible-item-dismissed"):_.hF(this.hostElement,"yt-dismissible-item-undismissed"))};
_.N.dismissibleItemDataChanged_=function(){this.dismissedContentId=void 0;this.dismissibleItemReset_()};
_.N.dismissibleItemReset_=function(){var F=this;this.isDismissed&&(this.isHideEnclosingAction=this.isDismissed=!1);this.dismissedRenderer&&(this.dismissedRenderer=void 0);this.followUpDialogPromiseReject&&(this.followUpDialogPromise.thenCatch(function(){}),this.followUpDialogPromiseReject());
this.followUpDialogPromise=new _.z5(function(W,E){F.followUpDialogPromiseResolve=W;F.followUpDialogPromiseReject=E});
_.hF(this.hostElement,"yt-enable-lockup-interaction")};
_.N.dismissibleItemOnYtServiceRequestSent_=function(F,W){W.actions&&this.dismissibleItemProcessActions(W.actions,F)};
_.N.dismissibleItemOnRequestSent=function(F){if(_.c("web_button_rework"))for(var W=_.U(F.detail),E=W.next();!E.done;E=W.next()){var h=void 0;(E=(h=_.D(E.value,_.Q7))==null?void 0:h.actions)&&this.dismissibleItemProcessActions(E,F)}};
_.N.dismissibleItemOnCommandSent=function(F,W){W&&this.dismissibleItemProcessActions(W,F)};
_.N.setAndGetDismissedContentId=function(F){return this.dismissedContentId=this.DISMISSED_CONTENT_KEYSPACE+F};
_.N.replayDismissAction=function(F){this.dismissibleItemProcessActions([F])};
_.N.dismissibleItemProcessActions=function(F,W){for(var E=0;E<F.length;E++){var h=F[E],d=void 0;((d=_.D(h,_.Mc))==null?0:d.commands)&&this.dismissibleItemProcessActions(_.D(h,_.Mc).commands,W);if(_.D(h,_.$J)){if(d=_.D(h,_.$J),!d.replaceParentSection||n_M.includes(this.hostElement.nodeName.toLowerCase()))_.c("web_see_fewer_shorts_reactive_dismissal")&&d.groupDismissal&&jQR(this,d.groupDismissal,!0),this.dismissibleItemHandleReplaceEnclosingAction_(d),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.AG("commandEntity",
this.dismissedContentId,{key:this.dismissedContentId,command:h})),h=void 0,(h=W)==null||h.stopPropagation()}else if(_.D(h,BHp))this.dismissibleItemHandleHideEnclosingAction_(),h=void 0,(h=W)==null||h.stopPropagation();else if(_.D(h,Zvp))_.c("web_see_fewer_shorts_reactive_dismissal")&&(h=_.D(h,Zvp),d=void 0,((d=h)==null?0:d.targetGroupId)&&jQR(this,{targetGroupId:h.targetGroupId},!1)),this.dismissibleItemHandleUndoFeedbackAction_(),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.AG("commandEntity",
this.dismissedContentId,{key:this.dismissedContentId,command:void 0})),h=void 0,(h=W)==null||h.stopPropagation();else if(_.D(h,_.Q7))(h=_.D(h,_.Q7).actions)&&_.Rj(this.hostElement,h,this.hostElement),h=void 0,(h=W)==null||h.stopPropagation();else{var V=d=void 0;((d=_.D(h,_.jh))==null?void 0:d.signal)!=="TELL_US_WHY"||((V=_.D(h,_.jh))==null?0:V.targetId)&&_.c("web_enable_feedback_endpoint_resolver_batch_2")||(this.dismissibleItemHandleTellUsWhySignalAction_(),h=void 0,(h=W)==null||h.stopPropagation())}}};
_.N.dismissibleItemOnYtServiceRequestCompleted_=function(F,W){var E=this.get("feedbackResponses.0.followUpDialog",W.data);E?this.followUpDialogPromiseResolve(E):W.actions&&!this.dismissedRenderer&&this.dismissibleItemProcessActions(W.actions,F)};
_.N.dismissibleItemHandleReplaceEnclosingAction_=function(F){this.dismissedRenderer=F.item;this.isDismissed=!0;var W=null;(W=_.Z(this.hostElement).querySelector("#dismissed"))&&_.wT(this,function(){_.SQ(W)});
_.hF(this.hostElement,"yt-disable-lockup-interaction",this.dismissedRenderer)};
_.N.dismissibleItemHandleHideEnclosingAction_=function(){this.isHideEnclosingAction=this.isDismissed=!0};
_.N.dismissibleItemHandleUndoFeedbackAction_=function(){_.hF(this.hostElement,"yt-dismissible-item-undo-feedback");this.dismissibleItemReset_()};
_.N.dismissibleItemHandleTellUsWhySignalAction_=function(){var F=this;this.followUpDialogPromise.then(function(W){F.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:W}})})};
fO.prototype.dismissibleItemOnYtServiceRequestCompleted_=fO.prototype.dismissibleItemOnYtServiceRequestCompleted_;fO.prototype.dismissibleItemOnCommandSent=fO.prototype.dismissibleItemOnCommandSent;fO.prototype.dismissibleItemOnRequestSent=fO.prototype.dismissibleItemOnRequestSent;fO.prototype.dismissibleItemOnYtServiceRequestSent_=fO.prototype.dismissibleItemOnYtServiceRequestSent_;fO.prototype.dismissibleItemDataChanged_=fO.prototype.dismissibleItemDataChanged_;
fO.prototype.dismissibleItemIsDismissedChanged_=fO.prototype.dismissibleItemIsDismissedChanged_;_.T([_.J(_.Gf),_.Y("design:type",Object)],fO.prototype,"ytdOpenPopupBehavior",void 0);_.T([_.J(_.am),_.Y("design:type",Object)],fO.prototype,"ytdReduxBehavior",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],fO.prototype,"isDismissed",void 0);_.T([_.O(),_.Y("design:type",Object)],fO.prototype,"dismissedRenderer",void 0);
_.T([_.ea("isDismissed"),_.Y("design:type",Function),_.Y("design:paramtypes",[Boolean]),_.Y("design:returntype")],fO.prototype,"dismissibleItemIsDismissedChanged_",null);_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],fO.prototype,"dismissibleItemDataChanged_",null);
_.T([_.R4("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.nQ]),_.Y("design:returntype")],fO.prototype,"dismissibleItemOnYtServiceRequestSent_",null);_.T([_.R4("yt-service-request-sent-button-renderer"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],fO.prototype,"dismissibleItemOnRequestSent",null);
_.T([_.R4("yt-dismissible-item-action"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Array]),_.Y("design:returntype")],fO.prototype,"dismissibleItemOnCommandSent",null);_.T([_.R4("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.uz]),_.Y("design:returntype")],fO.prototype,"dismissibleItemOnYtServiceRequestCompleted_",null);fO=_.T([_.tT()],fO);_.O9=[_.Gf,_.am,fO.prototype];var bU=function(){var F=_.zK.apply(this,arguments)||this;F.disableGridStateAware=!1;F.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};F.currentGridClass="";return F};
_.k(bU,_.zK);bU.prototype.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap);_.wT(this,this.handleUpdateGridStateAction);if(!this.disableGridStateAware){var F=this.gridStateAwareGetElement();_.Wm(F,"grid",!0)}};
bU.prototype.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.gridStateActionMap)};
bU.prototype.gridStateAwareGetElement=function(){return this.gridStateAwareSizingElementSelector?_.Z(this.hostElement).querySelector(this.gridStateAwareSizingElementSelector):this.hostElement};
bU.prototype.handleUpdateGridStateAction=function(){if(this.disableGridStateAware)var F="grid-disabled";else{F=_.T1O.getInstance();var W=this.get("pageSubtype");F=W&&jtU.includes(W)?"grid-disabled":F.currentSnapState_?F.currentSnapState_.className:null}(W=this.gridStateAwareGetElement())&&F!==this.currentGridClass&&(F&&_.Wm(W,F,!0),this.currentGridClass&&_.Wm(W,this.currentGridClass,!1),this.currentGridClass=F)};
_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],bU.prototype,"ytActionHandlerBehavior",void 0);_.T([_.O(),_.Y("design:type",String)],bU.prototype,"gridStateAwareSizingElementSelector",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],bU.prototype,"disableGridStateAware",void 0);bU=_.T([_.tT()],bU);_.lU=[bU.prototype,_.FM.YtActionHandlerBehavior];_.nO=new _.NG("GUIDE_TOKEN");var jV;_.y_={};jV=function(){var F=_.zK.apply(this,arguments)||this;F.guideStateActionMap={"ytd-update-guide-state-action":"handleGuideStateAction","ytd-update-mini-guide-state-action":"handleMiniGuideStateAction","ytd-update-guide-opened-action":"handleGuideOpenedAction","ytd-update-active-endpoint-action":"handleActiveEndpointAction"};return F};
_.k(jV,_.zK);_.N=jV.prototype;_.N.onActiveEndpointChange=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.N.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.guideStateActionMap);var F=_.WZ().resolve(_.Fd(_.nO));F&&(this.guidePersistentAndVisible=F.getGuidePersistentAndVisible(),this.activeEndpoint=F.getActiveEndpoint(),this.guideOpened=F.getGuideOpened(),this.miniGuideVisible=F.getMiniGuideVisible())};
_.N.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.guideStateActionMap)};
_.N.handleGuideStateAction=function(F){this.guidePersistentAndVisible=F};
_.N.handleMiniGuideStateAction=function(F){this.miniGuideVisible=F};
_.N.handleGuideOpenedAction=function(F){this.guideOpened=F};
_.N.handleActiveEndpointAction=function(F){this.activeEndpoint=F};
jV.prototype.onActiveEndpointChange=jV.prototype.onActiveEndpointChange;_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],jV.prototype,"ytActionHandlerBehavior",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],jV.prototype,"guidePersistentAndVisible",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],jV.prototype,"miniGuideVisible",void 0);_.T([_.O(),_.Y("design:type",Object)],jV.prototype,"activeEndpoint",void 0);
_.T([_.ea("activeEndpoint"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],jV.prototype,"onActiveEndpointChange",null);_.T([_.O(),_.Y("design:type",Boolean)],jV.prototype,"guideOpened",void 0);jV=_.T([_.tT()],jV);_.y_.YtdGuideStateAwareBehavior=[];_.y_.YtdGuideStateAwareBehavior.push(jV.prototype,_.FM.YtActionHandlerBehavior);var y$M=["ytd-compact-video-renderer","ytd-playlist-video-renderer","ytd-compact-movie-renderer","ytd-playlist-panel-video-renderer"],iU=function(){var F=_.zK.apply(this,arguments)||this;F.hoverJobId=0;F.JSC$12080_touched=!1;return F};
_.k(iU,_.zK);_.N=iU.prototype;_.N.created=function(){this.useExpandableTooltip=!y$M.includes(this.is)};
_.N.attached=function(){this.hostElement.hasAttribute("lockup")||this.hostElement.setAttribute("lockup","true")};
_.N.detached=function(){this.useExpandableTooltip=!1};
_.N.lockupOnDown=function(F){this.interactionElement&&!_.Sc(_.TB(F),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerDown()};
_.N.lockupOnUp=function(F){this.interactionElement&&!_.Sc(_.TB(F),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerUp()};
_.N.onTouchStart=function(){this.JSC$12080_touched=!0};
_.N.lockupOnMouseEnter=function(){var F=this,W=_.dV("kevlar_lockup_hover_delay",-1);this.JSC$12080_touched&&W>=0?(_.P0.cancelJob(this.hoverJobId),this.hoverJobId=_.P0.addJob(function(){F.lockupIsHovered=!0},8,W),this.JSC$12080_touched=!1):this.lockupIsHovered=!0};
_.N.lockupOnMouseLeave=function(){this.hoverJobId&&(_.P0.cancelJob(this.hoverJobId),this.hoverJobId=0);this.lockupIsHovered=!1};
_.N.lockupOnPopupClosed=function(F,W){var E;((E=W.popupRenderer)==null?void 0:E.is)==="ytd-menu-popup-renderer"&&(F=W.popupRenderer.veData,W=_.JR(),F&&W&&_.TJ(W,[F]))};
_.N.lockupOnLockupRequested=function(F){var W=F.detail.videoIds[0],E;F.detail&&W===((E=this.data)==null?void 0:E.videoId)&&(F.detail.returnValue=[this.data])};
_.N.lockupOnYtServiceRequestSent=function(F,W){if(F=W.actions)for(var E=0;E<F.length;E++){var h=F[E];if(h.action==="ACTION_REMOVE_VIDEO_BY_VIDEO_ID"&&W.ajaxPromise){var d=void 0,V=(d=_.D(W.endpoint,_.lE))==null?void 0:d.playlistId;d=void 0;h=(d=h.removedVideoId)!=null?d:"";Qtz(_.o0(),h,V)}else h.action==="ACTION_REMOVE_VIDEO"&&W.ajaxPromise&&(V=void 0,h=(V=h.setVideoId)!=null?V:"",_.z7H(_.o0(),h))}};
_.N.lockupOnLockupDisabled=function(){this.interactionElement&&(this.interactionElement.disabled=!0)};
_.N.lockupOnLockupEnabled=function(){if(!this.$){var F=_.WZ().resolve(_.KQ).getCurrentPage(),W=this.getParentRenderer?this.getParentRenderer():void 0;_.OB(new _.xC("component not ready",this.is,this.isAttached,F==null?void 0:F.is,W==null?void 0:W.is))}this.interactionElement&&(this.interactionElement.disabled=!1)};
iU.prototype.lockupOnLockupEnabled=iU.prototype.lockupOnLockupEnabled;iU.prototype.lockupOnLockupDisabled=iU.prototype.lockupOnLockupDisabled;iU.prototype.lockupOnYtServiceRequestSent=iU.prototype.lockupOnYtServiceRequestSent;iU.prototype.lockupOnLockupRequested=iU.prototype.lockupOnLockupRequested;iU.prototype.lockupOnPopupClosed=iU.prototype.lockupOnPopupClosed;iU.prototype.lockupOnMouseLeave=iU.prototype.lockupOnMouseLeave;iU.prototype.lockupOnMouseEnter=iU.prototype.lockupOnMouseEnter;
iU.prototype.onTouchStart=iU.prototype.onTouchStart;iU.prototype.lockupOnUp=iU.prototype.lockupOnUp;iU.prototype.lockupOnDown=iU.prototype.lockupOnDown;_.T([_.O(),_.Y("design:type",Object)],iU.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Boolean)],iU.prototype,"lockupIsHovered",void 0);_.T([_.O(),_.Y("design:type",Boolean)],iU.prototype,"lockupTouchTriggered",void 0);_.T([_.O(),_.Y("design:type",Boolean)],iU.prototype,"useExpandableTooltip",void 0);
_.T([_.gQ("#interaction"),_.Y("design:type",Object)],iU.prototype,"interactionElement",void 0);_.T([_.R4("down"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],iU.prototype,"lockupOnDown",null);_.T([_.R4("up"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],iU.prototype,"lockupOnUp",null);
_.T([_.R4("touchstart"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],iU.prototype,"onTouchStart",null);_.T([_.R4("mouseenter"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],iU.prototype,"lockupOnMouseEnter",null);_.T([_.R4("mouseleave"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],iU.prototype,"lockupOnMouseLeave",null);
_.T([_.R4("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],iU.prototype,"lockupOnPopupClosed",null);_.T([_.R4("yt-lockup-requested"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],iU.prototype,"lockupOnLockupRequested",null);
_.T([_.R4("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.nQ]),_.Y("design:returntype")],iU.prototype,"lockupOnYtServiceRequestSent",null);_.T([_.R4("yt-disable-lockup-interaction"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],iU.prototype,"lockupOnLockupDisabled",null);
_.T([_.R4("yt-enable-lockup-interaction"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],iU.prototype,"lockupOnLockupEnabled",null);iU=_.T([_.tT()],iU);_.rt=[iU.prototype];_.jQz={YtdReduxBehavior:[]};_.jQz.YtdReduxBehavior.push.apply(_.jQz.YtdReduxBehavior,_.am);var T$=function(){var F=_.zK.apply(this,arguments)||this;F._noAccessors=!0;F.disableNowPlaying=!1;F.disableTooltips=!1;F.useHoveredProperty=!1;F.hovered=!1;F.isThumbnailHovered_=!1;F.addBackground=_.c("kevlar_thumbnail_bg");F.nowPlaying=!1;F.disableRounding=!1;F.size="small";return F};
_.k(T$,_.zK);_.N=T$.prototype;_.N.computeThumbnailOverlaySidePanelWidth_=function(F,W){return F-W};
_.N.computeSize=function(F,W){if(!this.disableRounding){if(!F&&!W)return"small";F=Math.max(F||0,W||0);return F>=256?"large":F>=96?"medium":"small"}};
_.N.computeFinalHoveredState_=function(F,W,E){return this.nowPlaying?!1:_.c("kevlar_thumbnail_fluid")&&F?W:E};
_.N.computeHoverOverlays_=function(F,W){return F&&W?W:void 0};
_.N.onMouseEnter_=function(){this.isThumbnailHovered_=!0};
_.N.onMouseLeave_=function(){this.isThumbnailHovered_=!1};
_.N.checkMiniplayer_=function(){var F;if(((F=this.data)==null?0:F.playlistSetVideoId)&&_.c("web_enable_playlist_video_lockup_equalizer"))this.nowPlaying=!!this.data.selected;else{F=_.DT();var W=F.currentEndpoint;!this.disableNowPlaying&&W&&_.D(W,_.GM)&&this.data?(W=_.D(W,_.GM),this.nowPlaying=this.data.playlistId?W.playlistId===this.data.playlistId:W.videoId===this.data.videoId,this.isVideoPlaying=F==null?void 0:F.isVideoPlaying):this.nowPlaying=!1}};
T$.prototype.checkMiniplayer_=T$.prototype.checkMiniplayer_;T$.prototype.onMouseLeave_=T$.prototype.onMouseLeave_;T$.prototype.onMouseEnter_=T$.prototype.onMouseEnter_;T$.prototype.computeHoverOverlays_=T$.prototype.computeHoverOverlays_;T$.prototype.computeFinalHoveredState_=T$.prototype.computeFinalHoveredState_;T$.prototype.computeSize=T$.prototype.computeSize;T$.prototype.computeThumbnailOverlaySidePanelWidth_=T$.prototype.computeThumbnailOverlaySidePanelWidth_;
_.T([_.J(_.am),_.Y("design:type",Object)],T$.prototype,"ytdReduxBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],T$.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Number)],T$.prototype,"height",void 0);_.T([_.O(),_.Y("design:type",Boolean)],T$.prototype,"bottomSidePanel",void 0);_.T([_.O(),_.Y("design:type",Number)],T$.prototype,"width",void 0);_.T([_.O(),_.Y("design:type",Object)],T$.prototype,"disableNowPlaying",void 0);
_.T([_.O({selector:_.Pz}),_.Y("design:type",Boolean)],T$.prototype,"miniplayerIsActive",void 0);_.T([_.O(),_.Y("design:type",Object)],T$.prototype,"disableTooltips",void 0);_.T([_.O(),_.Y("design:type",Object)],T$.prototype,"useHoveredProperty",void 0);_.T([_.O(),_.Y("design:type",Object)],T$.prototype,"hovered",void 0);_.T([_.O(),_.Y("design:type",Object)],T$.prototype,"isThumbnailHovered_",void 0);
_.T([_.O({computed:"computeFinalHoveredState_(useHoveredProperty, hovered, isThumbnailHovered_)"}),_.Y("design:type",Boolean)],T$.prototype,"finalHoveredState_",void 0);_.T([_.O({computed:"computeThumbnailOverlaySidePanelWidth_(width, height)"}),_.Y("design:type",Number)],T$.prototype,"thumbnailOverlaySidePanelWidth_",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],T$.prototype,"addBackground",void 0);
_.T([_.O({computed:"computeHoverOverlays_(finalHoveredState_, data.thumbnailOverlays)"}),_.Y("design:type",Object)],T$.prototype,"hoverOverlays_",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],T$.prototype,"nowPlaying",void 0);_.T([_.O(),_.Y("design:type",Boolean)],T$.prototype,"isVideoPlaying",void 0);_.T([_.O(),_.Y("design:type",Object)],T$.prototype,"disableRounding",void 0);
_.T([_.O({reflectToAttribute:!0,computed:"computeSize(width, height, disableRounding)"}),_.Y("design:type",Object)],T$.prototype,"size",void 0);_.T([_.R4("mouseenter"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],T$.prototype,"onMouseEnter_",null);_.T([_.R4("mouseleave"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],T$.prototype,"onMouseLeave_",null);
_.T([_.ea("data","disableNowPlaying","miniplayerIsActive"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],T$.prototype,"checkMiniplayer_",null);T$=_.T([_.tT()],T$);var ihi=[T$.prototype];_.om={YtPlayerListenerBehavior:{created:function(){this.playerListeners_=new Map},
getPlayerListenerKey_:function(F,W){return F+":"+_.Ue(W)},
getPlayerListener_:function(F,W,E){F=this.getPlayerListenerKey_(F,W);W=this.playerListeners_.get(F);E&&this.playerListeners_.delete(F);return W},
savePlayerListener_:function(F,W){var E=W.bind(this);this.playerListeners_.set(this.getPlayerListenerKey_(F,W),E);return E},
listenToPlayerEvent:function(F,W,E){E=this.savePlayerListener_(W,E);F.addEventListener(W,E)},
listenToPlayerEvents:function(F,W){W.forEach(function(E,h){this.listenToPlayerEvent(F,h,E)}.bind(this))},
unlistenFromPlayerEvent:function(F,W,E){E=this.getPlayerListener_(W,E,!0);F.removeEventListener(W,E)},
unlistenFromPlayerEvents:function(F,W){W.forEach(function(E,h){this.unlistenFromPlayerEvent(F,h,E)}.bind(this))}}};
_.G$=function(){};_.r$_=new _.NG("PLAYER_API_TOKEN");var Gxb=!1,S4n,wFG=!1,mJR;var dk=function(F,W,E,h,d){_.xj.call(this);var V=this;this.playerId=W;this.webPlayerContextConfig=h;this.ezH=d;this.fRp=!1;this.api={};this.wGf=this.psI=null;this.oYM=new _.tc;this.z6={};this.dTP=this.uat=this.elementId=this.gch=this.config=null;this.xTI=!1;this.zf=this.fT0=null;this.rUP={};this.avt=["onReady"];this.lastError=null;this.mZq=NaN;this.eXs={};this.pfR=0;this.nD=this.targetElement=F;_.gl(this,this.oYM);TMi(this);E?this.pfR=setTimeout(function(){V.loadNewVideoConfig(E)},0):h&&(o_p(this),
GxT(this))};
_.k(dk,_.xj);dk.prototype.getId=function(){return this.playerId};
dk.prototype.loadNewVideoConfig=function(F){if(!this.isDisposed()){this.pfR&&(clearTimeout(this.pfR),this.pfR=0);var W=F||{};W instanceof kSM||(W=new kSM(W));this.config=W;this.setConfig(F);GxT(this);this.isReady()&&Y4i(this)}};
var o_p=function(F){var W;F.webPlayerContextConfig?W=F.webPlayerContextConfig.rootElementId:W=F.config.attrs.id;F.elementId=W||F.elementId;F.elementId==="video-player"&&(F.elementId=F.playerId,F.webPlayerContextConfig?F.webPlayerContextConfig.rootElementId=F.playerId:F.config.attrs.id=F.playerId);var E;((E=F.nD)==null?void 0:E.id)===F.elementId&&(F.elementId+="-player",F.webPlayerContextConfig?F.webPlayerContextConfig.rootElementId=F.elementId:F.config.attrs.id=F.elementId)};
dk.prototype.setConfig=function(F){this.gch=F;this.config=wFO(F);o_p(this);if(!this.uat){var W;this.uat=uyU(this,((W=this.config.args)==null?void 0:W.jsapicallback)||"onYouTubePlayerReady")}this.config.args?this.config.args.jsapicallback=null:this.config.args={jsapicallback:null};var E;if((E=this.config)==null?0:E.attrs)F=this.config.attrs,(W=F.width)&&this.nD&&(this.nD.style.width=ra(Number(W)||W,!0)),(F=F.height)&&this.nD&&(this.nD.style.height=ra(Number(F)||F,!0))};
var Y4i=function(F){if(F.config&&F.config.loaded!==!0)if(F.config.loaded=!0,!F.config.args||F.config.args.autoplay!=="0"&&F.config.args.autoplay!==0&&F.config.args.autoplay!==!1){var W;F.api.loadVideoByPlayerVars((W=F.config.args)!=null?W:null)}else F.api.cueVideoByPlayerVars(F.config.args)},pFa=function(F){var W=!0,E=F.getPlayerElement();
E&&F.config&&(W=E.dataset.version===S4i(F));return W&&!!_.ju("yt.player.Application.create")},GxT=function(F){if(!F.isDisposed()&&!F.xTI){var W=pFa(F);
if(W&&(F.getPlayerElement()?"html5":null)==="html5")F.dTP="html5",F.isReady()||mJz(F);else if(Kbe(F),F.dTP="html5",W&&F.zf&&F.targetElement)F.targetElement.appendChild(F.zf),mJz(F);else{F.config&&(F.config.loaded=!0);var E=!1;F.fT0=function(){E=!0;var h=FiM(F,"player_bootstrap_method")?_.ju("yt.player.Application.createAlternate")||_.ju("yt.player.Application.create"):_.ju("yt.player.Application.create");var d=F.config?wFO(F.config):void 0;h&&h(F.targetElement,d,F.webPlayerContextConfig,F.ezH);mJz(F)};
F.xTI=!0;W?F.fT0():(_.lI(S4i(F),F.fT0),(W=WiO(F))&&xDG(W||""),E2H(F)&&!E&&_.S5("yt.player.Application.create",null))}}};
dk.prototype.getPlayerElement=function(){var F=_.hG(document,this.elementId);!F&&this.nD&&this.nD.querySelector&&(F=this.nD.querySelector("#"+this.elementId));return F};
var mJz=function(F){if(!F.isDisposed()){var W=F.getPlayerElement(),E=!1;W&&W.getApiInterface&&W.getApiInterface()&&(E=!0);if(E){F.xTI=!1;if(!FiM(F,"html5_remove_not_servable_check_killswitch")){var h;if((W==null?0:W.isNotServable)&&F.config&&(W==null?0:W.isNotServable((h=F.config.args)==null?void 0:h.video_id)))return}hgX(F)}else F.mZq=setTimeout(function(){mJz(F)},50)}},hgX=function(F){TMi(F);
F.fRp=!0;var W=F.getPlayerElement();if(W){F.psI=dhO(F,W,"addEventListener");F.wGf=dhO(F,W,"removeEventListener");var E=W.getApiInterface();E=E.concat(W.getInternalApiInterface());for(var h=F.api,d=0;d<E.length;d++){var V=E[d];h[V]||(h[V]=dhO(F,W,V))}}for(var R in F.z6)F.z6.hasOwnProperty(R)&&F.psI&&F.psI(R,F.z6[R]);Y4i(F);F.uat&&F.uat(F.api);F.oYM.publish("onReady",F.api)},dhO=function(F,W,E){var h=W[E];
return function(){var d=_.Dd.apply(0,arguments);try{return F.lastError=null,h.apply(W,d)}catch(V){if(E!=="sendAbandonmentPing")throw V.params=E,F.lastError=V,d=new _.xC("PlayerProxy error in method call",{error:V,method:E,playerId:F.playerId}),d.level="WARNING",d;}}},TMi=function(F){F.fRp=!1;
if(F.wGf)for(var W in F.z6)F.z6.hasOwnProperty(W)&&F.wGf(W,F.z6[W]);for(var E in F.eXs)F.eXs.hasOwnProperty(E)&&clearTimeout(Number(E));F.eXs={};F.psI=null;F.wGf=null;W=F.api;for(var h in W)W.hasOwnProperty(h)&&(W[h]=null);W.addEventListener=function(d,V){F.addEventListener(d,V)};
W.removeEventListener=function(d,V){F.removeEventListener(d,V)};
W.destroy=function(){F.dispose()};
W.getLastError=function(){return F.getLastError()};
W.getPlayerType=function(){return F.getPlayerType()};
W.getCurrentVideoConfig=function(){return F.gch};
W.loadNewVideoConfig=function(d){F.loadNewVideoConfig(d)};
W.isReady=function(){return F.isReady()}};
dk.prototype.isReady=function(){return this.fRp};
dk.prototype.addEventListener=function(F,W){var E=this;this.isDisposed();var h=uyU(this,W);h&&(_.on(this.avt,F)||this.z6[F]||(W=Nzc(this,F),this.psI&&this.psI(F,W)),this.oYM.subscribe(F,h),F==="onReady"&&this.isReady()&&setTimeout(function(){h(E.api)},0))};
dk.prototype.removeEventListener=function(F,W){this.isDisposed()||(W=uyU(this,W))&&this.oYM.unsubscribe(F,W)};
var uyU=function(F,W){var E=W;if(typeof W==="string"){if(F.rUP[W])return F.rUP[W];E=function(){var h=_.Dd.apply(0,arguments),d=_.ju(W);if(d)try{d.apply(_.EY,h)}catch(V){throw h=new _.xC("PlayerProxy error when executing callback",{error:V}),h.level="ERROR",h;}};
F.rUP[W]=E}return E?E:null},Nzc=function(F,W){var E=function(h){var d=function(){F.isDisposed();
if(!F.isDisposed())try{F.oYM.publish(W,h!=null?h:void 0)}catch(M){var R=new _.xC("PlayerProxy error when creating global callback",{error:M.message,event:W,playerId:F.playerId,data:h,originalStack:M.stack,componentStack:M.componentStack});R.level="WARNING";throw R;}};
if(FiM(F,"web_player_publish_events_immediately"))d();else{var V=setTimeout(function(){d();_.xd.remove(F.eXs,String(V))},0);
_.xd.add(F.eXs,String(V),!0)}};
return F.z6[W]=E};
dk.prototype.getPlayerType=function(){return this.dTP||(this.getPlayerElement()?"html5":null)};
dk.prototype.getLastError=function(){return this.lastError};
var Kbe=function(F){F.cancel();TMi(F);F.dTP=null;F.config&&(F.config.loaded=!1);var W=F.getPlayerElement();W&&(pFa(F)||!E2H(F)?F.zf=W:(W&&W.destroy&&W.destroy(),F.zf=null));F.targetElement&&_.On(F.targetElement)};
dk.prototype.cancel=function(){this.fT0&&_.SsG(S4i(this),this.fT0);clearTimeout(this.mZq);this.xTI=!1};
dk.prototype.disposeInternal=function(){Kbe(this);if(this.zf&&this.config&&this.zf.destroy)try{this.zf.destroy()}catch(W){var F=new _.xC("PlayerProxy error during disposal",{error:W});F.level="ERROR";throw F;}this.rUP=null;for(F in this.z6)this.z6.hasOwnProperty(F)&&delete this.z6[F];this.gch=this.config=this.api=null;delete this.targetElement;delete this.nD;_.xj.prototype.disposeInternal.call(this)};
var E2H=function(F){var W,E;F=(W=F.config)==null?void 0:(E=W.args)==null?void 0:E.fflags;return!!F&&F.indexOf("player_destroy_old_version=true")!==-1},S4i=function(F){return F.webPlayerContextConfig?F.webPlayerContextConfig.jsUrl:(F=F.config.assets)?F.js:""},WiO=function(F){return F.webPlayerContextConfig?F.webPlayerContextConfig.cssUrl:(F=F.config.assets)?F.css:""},FiM=function(F,W){if(F.webPlayerContextConfig)var E=F.webPlayerContextConfig.serializedExperimentFlags;
else{var h;if((h=F.config)==null?0:h.args)E=F.config.args.fflags}return(E||"").split("&").includes(W+"=true")},wFO=function(F){for(var W={},E=_.U(Object.keys(F)),h=E.next();!h.done;h=E.next()){h=h.value;
var d=F[h];W[h]=typeof d==="object"?_.xd.clone(d):d}return W};var hgY={},E2k="player_uid_"+(Math.random()*1E9>>>0);var Yz=function(F,W,E,h,d,V){W=W===void 0?document.createElement("div"):W;this.webPlayerContextConfig=F;this.container=W;this.commandResolver=E;this.apiResolver=VGe();this.pageReadyOrDataAvailable=!1;this.pageReadyOrDataAvailableResolver=new _.eR;h||V?VGp(this):UhM(this);this.pendingPlayerResponse=h;this.pendingWatchNextResponse=d;this.pendingPlayerVars=V;RgH(this)};
Yz.prototype.loadVideoWithPlayerResponse=function(F,W,E){this.loadVideo(F,W,E)};
Yz.prototype.loadVideoWithPlayerVars=function(F){return this.loadVideo(void 0,void 0,F)};
Yz.prototype.destroy=function(F){if(F=_.hG(document,F))F=E2k+"_"+_.Ue(F),(F=hgY[F])&&F.dispose()};
var MGX=function(F,W){var E;_.e(function(h){if(h.nextAddress==1)return F.pendingWatchNextResponse=W,F.synchronousApi?(E=F.synchronousApi,h.jumpTo(2)):_.Q(h,F.api,3);h.nextAddress!=2&&(E=h.yieldResult);eg_(F,E);F.pendingWatchNextResponse&&(E.updateVideoData({raw_watch_next_response:F.pendingWatchNextResponse}),F.pendingWatchNextResponse=void 0);_.gG(h)})},eg_=function(F,W){var E;
if(!(W==null?0:(E=W.isReady)==null?0:E.call(W))){var h;F=new _.xC("playerApi is falsey",{synchronousApi:F.synchronousApi,apiResolved:F.apiResolver.resolved,playerApiUndefined:W===void 0,playerApiNull:W===null,playerApiReady:(W==null?void 0:(h=W.isReady)==null?void 0:h.call(W))===!0,playerApiMethods:W?Object.keys(W):[]});_.a_(F)}},g2M=function(F,W){if(typeof F[W]==="function")return F[W]()},QCU=function(F){var W=window,E,h=(E=W.ytplayer)==null?void 0:E.bootstrapPlayerContainer;
if((E=h==null?void 0:h.firstElementChild)&&_.YU(E,"html5-video-player")){var d,V,R=(d=W.ytplayer)==null?void 0:(V=d.bootstrapWebPlayerContextConfig)==null?void 0:V.contextId;d=F.webPlayerContextConfig.contextId;if(R&&R===d){h!==F.container&&(h=!1,g2M(E,"getPlayerState")===2&&(h=!0),F.container.appendChild(E),h||g2M(E,"playVideo"));var M;if((M=W.ytplayer)==null?0:M.bootstrapPlayerResponse)F.bootstrapPlayerResponse=W.ytplayer.bootstrapPlayerResponse}}},RgH=function(F){var W,E,h,d,V;
_.e(function(R){if(R.nextAddress==1)return F.pageReadyOrDataAvailable?R.jumpTo(2):_.Q(R,F.pageReadyOrDataAvailableResolver.promise,2);if(R.nextAddress!=4)return!_.c("kevlar_player_unified_player_loading")||Y4n()&&uyw()?R.jumpTo(4):_.Q(R,Fio(),4);QCU(F);if(F.pendingPlayerResponse||F.pendingPlayerVars)W=WiG(F.pendingPlayerResponse,F.pendingWatchNextResponse,F.pendingPlayerVars),F.pendingPlayerResponse&&F.pendingPlayerResponse===F.bootstrapPlayerResponse&&(W.loaded=!0),F.bootstrapPlayerResponse=void 0;
E=NzI(F.container,W,F.webPlayerContextConfig);((h=W)==null?0:h.loaded)&&F.pendingWatchNextResponse?(MGX(F,F.pendingWatchNextResponse),F.pendingPlayerResponse=void 0,F.pendingPlayerVars=void 0):zgB(F);d=function(M){E.removeEventListener("onReady",d);F.synchronousApi=M;F.apiResolver.resolve(M)};
E.addEventListener("onReady",d);F.commandResolver!==void 0&&(V=F.commandResolver,E.addEventListener("innertubeCommand",function(M){V(M)}));
_.gG(R)})};
Yz.prototype.loadVideo=function(F,W,E){var h=this,d,V,R,M,g,t,C,B,I;return _.e(function(x){if(x.nextAddress==1)return h.pendingPlayerResponse=F,h.pendingWatchNextResponse=W,h.pendingPlayerVars=E,VGp(h),h.synchronousApi?(d=h.synchronousApi,x.jumpTo(2)):_.Q(x,h.api,3);x.nextAddress!=2&&(d=x.yieldResult);eg_(h,d);R=new Promise(function(A){V=A});
M=function(){var A=d.getPlayerResponse();A&&(d.removeEventListener("onVideoDataChange",M),V(A))};
d.addEventListener("onVideoDataChange",M);if(h.pendingPlayerResponse||h.pendingPlayerVars)h.pendingPlayerResponse&&h.pendingPlayerResponse===h.bootstrapPlayerResponse?(V(h.pendingPlayerResponse),h.pendingWatchNextResponse&&MGX(h,h.pendingWatchNextResponse)):(g=WiG(h.pendingPlayerResponse,h.pendingWatchNextResponse,h.pendingPlayerVars),(I=(t=h.pendingPlayerResponse)==null?void 0:(C=t.playerConfig)==null?void 0:(B=C.playbackStartConfig)==null?void 0:B.startPaused)?d.cueVideoByPlayerVars(g.args):d.loadVideoByPlayerVars(g.args)),
zgB(h),h.bootstrapPlayerResponse=void 0;return x.return(R)})};
var UhM=function(F){if(document.readyState==="complete"||document.readyState==="interactive")VGp(F);else{var W=function(){document.removeEventListener("DOMContentLoaded",W);VGp(F)};
document.addEventListener("DOMContentLoaded",W)}},VGp=function(F){F.pageReadyOrDataAvailable=!0;
F.pageReadyOrDataAvailableResolver.resolve()},zgB=function(F){F.pendingPlayerResponse=void 0;
F.pendingWatchNextResponse=void 0;F.pendingPlayerVars=void 0};
_.Sn.Object.defineProperties(Yz.prototype,{api:{configurable:!0,enumerable:!0,get:function(){return this.apiResolver.promise}}});var wt=function(F){lV.call(this,F===void 0?"document_active":F);var W=this;this.overridePriority=10;this.hasRun=new Map;this.transitions=[{from:"document_active",to:"document_disposed_preventable",action:this.runPreventableDispose},{from:"document_active",to:"document_disposed",action:this.runDispose},{from:"document_disposed_preventable",to:"document_disposed",action:this.runDispose},{from:"document_disposed_preventable",to:"flush_logs",action:this.runFlush},{from:"document_disposed_preventable",
to:"document_active",action:this.runActive},{from:"document_disposed",to:"flush_logs",action:this.runFlush},{from:"document_disposed",to:"document_active",action:this.runActive},{from:"document_disposed",to:"document_disposed",action:function(){}},
{from:"flush_logs",to:"document_active",action:this.runActive}];window.addEventListener("pagehide",function(E){W.transition("document_disposed",{event:E})});
window.addEventListener("beforeunload",function(E){W.transition("document_disposed_preventable",{event:E})});
window.addEventListener("unload",function(E){W.transition("document_disposed",{event:E});W.hasRun=new Map})};
_.k(wt,lV);
wt.prototype.runPreventableDispose=function(F,W){if(!this.hasRun.get("document_disposed_preventable")){F(W==null?void 0:W.event);var E,h;if((W==null?0:(E=W.event)==null?0:E.defaultPrevented)||(W==null?0:(h=W.event)==null?0:h.returnValue)){W.event.returnValue||(W.event.returnValue=!0);W.event.defaultPrevented||W.event.preventDefault();this.hasRun=new Map;this.transition("document_active");return}}this.hasRun.set("document_disposed_preventable",!0);this.hasRun.get("document_disposed")?this.transition("flush_logs"):this.transition("document_disposed")};
wt.prototype.runDispose=function(F,W){this.hasRun.get("document_disposed")?this.transition("document_active"):(F(W==null?void 0:W.event),this.hasRun.set("document_disposed",!0),this.transition("flush_logs"))};
wt.prototype.runFlush=function(F,W){F(W==null?void 0:W.event);this.transition("document_active")};
wt.prototype.runActive=function(){};var uU=function(F){lV.call(this,F===void 0?"document_visibility_unknown":F);var W=this;this.transitions=[{from:"document_visibility_unknown",to:"document_visible",action:this.runVisible},{from:"document_visibility_unknown",to:"document_hidden",action:this.runHidden},{from:"document_visibility_unknown",to:"document_foregrounded",action:this.runForegrounded},{from:"document_visibility_unknown",to:"document_backgrounded",action:this.runBackgrounded},{from:"document_visible",to:"document_hidden",action:this.runHidden},
{from:"document_visible",to:"document_foregrounded",action:this.runForegrounded},{from:"document_visible",to:"document_visible",action:this.runVisible},{from:"document_foregrounded",to:"document_visible",action:this.runVisible},{from:"document_foregrounded",to:"document_hidden",action:this.runHidden},{from:"document_foregrounded",to:"document_foregrounded",action:this.runForegrounded},{from:"document_hidden",to:"document_visible",action:this.runVisible},{from:"document_hidden",to:"document_backgrounded",
action:this.runBackgrounded},{from:"document_hidden",to:"document_hidden",action:this.runHidden},{from:"document_backgrounded",to:"document_hidden",action:this.runHidden},{from:"document_backgrounded",to:"document_backgrounded",action:this.runBackgrounded},{from:"document_backgrounded",to:"document_visible",action:this.runVisible}];document.addEventListener("visibilitychange",function(E){document.visibilityState==="visible"?W.transition("document_visible",{event:E}):W.transition("document_hidden",
{event:E})});
_.c("visibility_lifecycles_dynamic_backgrounding")&&(window.addEventListener("blur",function(E){W.transition("document_backgrounded",{event:E})}),window.addEventListener("focus",function(E){W.transition("document_foregrounded",{event:E})}))};
_.k(uU,lV);uU.prototype.runVisible=function(F,W){F(W==null?void 0:W.event);_.c("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_foregrounded")};
uU.prototype.runHidden=function(F,W){F(W==null?void 0:W.event);_.c("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_backgrounded")};
uU.prototype.runBackgrounded=function(F,W){F(W==null?void 0:W.event)};
uU.prototype.runForegrounded=function(F,W){F(W==null?void 0:W.event)};var SV=function(){this.teardownLifecycle=new wt;this.visibilityLifecycle=new uU};
SV.prototype.install=function(){var F=_.Dd.apply(0,arguments),W=this;F.forEach(function(E){W.teardownLifecycle.install(E)});
F.forEach(function(E){W.visibilityLifecycle.install(E)})};var pO=function(){SV.call(this);var F={};this.install((F.document_disposed={callback:this.abortSlisAndFlush},F));_.c("combine_ve_grafts")&&(F={},this.install((F.document_disposed={callback:this.flushInteractionLoggingAttachVes},F)));F={};this.install((F.flush_logs={callback:this.logFinalPayload},F));_.c("web_log_cfg_cee_ks")||_.sB(_.P0,tGT)};
_.k(pO,SV);var Uho=function(){pO.loggingInstance||(pO.loggingInstance=new pO);return pO.loggingInstance};
pO.prototype.logFinalPayload=function(){if(_.c("web_fp_via_jspb")){var F=new Wrp,W=_.JR();W&&_.QJ(F,1,W);W=_.c("jspb_sparse_encoded_pivot")?new AV([{}]):new AV;_.dU(W,380,EOp,F);i3G("finalPayload",W);_.c("web_fp_via_jspb_and_json")&&_.Pc("finalPayload",{csn:_.JR()})}else _.Pc("finalPayload",{csn:_.JR()})};
pO.prototype.abortSlisAndFlush=function(){V8X(YJ);wZ!=null&&wZ.flush()};
pO.prototype.flushInteractionLoggingAttachVes=function(){q9_(_.z4())};
var tGT=function(){var F=_.b0("CLIENT_EXPERIMENT_EVENTS");if(F){var W=nWW();F=_.U(F);for(var E=F.next();!E.done;E=F.next())E=E.value,W(E)&&_.Pc("genericClientExperimentEvent",{eventType:E});delete _.fW.CLIENT_EXPERIMENT_EVENTS}};var CyO={};
CyO.YtPlayerBehavior=[_.om.YtPlayerListenerBehavior,{properties:{watchNextData:{type:Object,observer:"watchNextDataChanged_"},context:{type:String},playerId:{type:String},disableTouchGestures:{type:Boolean}},listeners:{pinchout:"onPinchOut_",pinchin:"onPinchIn_",touchstart:"onTouchStart_"},created:function(){var F=this;this.player_=null;this.useUnifiedPlayer_()&&(this.mainAppPlayer_=void 0);this.playerResolver_=new _.eR;this.playerContainer_=this.initPlayerPromise_=null;this.preparePlayerJobId_=0;
this.isResetForNewPlayback_=!0;this.bootstrapPlayerResponse_=void 0;Rgk(function(){F.maybeSendAbandonmentPing_()})},
attached:function(){this.disableTouchGestures||(_.Jt(this,"pan-down"),_.c("kevlar_pinch_fullscreen")&&_.zS().registerTouchEvents(this,void 0,void 0,"pinchout","pinchin"))},
detached:function(){!this.disableTouchGestures&&_.c("kevlar_pinch_fullscreen")&&_.zS().unregisterTouchEvents(this,"pinchout","pinchin")},
createMainAppPlayer_:function(F,W,E){var h=this;NY(this.useUnifiedPlayer_());if(this.mainAppPlayer_)NY(!1,"MainAppPlayer already created.");else{var d=_.c("kevlar_player_container_query_killswitch")?this.$.container:_.Z(this.hostElement).querySelector("#container");this.mainAppPlayer_=new Yz(this.getWebPlayerContextConfig_(),d,function(V){return _.ei(V,h.hostElement)},F,W,E);
this.mainAppPlayer_.api.then(function(V){h.player_=V;h.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&Lmu.resolve(V)})}},
loadVideoWithPlayerResponse:function(F,W){var E=this;if(this.useUnifiedPlayer_()){var h=this.watchNextData,d,V=(d=F.videoDetails)==null?void 0:d.videoId,R,M,g;(d=(R=this.watchNextData)==null?void 0:(M=R.currentVideoEndpoint)==null?void 0:(g=M.watchEndpoint)==null?void 0:g.videoId)&&V!=d&&(h=void 0,_.c("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0));this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerResponse(F,h,W):this.createMainAppPlayer_(F,h,W);this.mainAppPlayer_.api.then(function(){_.hF(E.hostElement,
"yt-player-updated")})}else this.update(r$o(F,W))},
loadVideoWithPlayerVars:function(F){var W=this;this.useUnifiedPlayer_()?(_.c("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0),this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerVars(F):this.createMainAppPlayer_(void 0,void 0,F),this.mainAppPlayer_.api.then(function(){_.hF(W.hostElement,"yt-player-updated")})):this.update({args:F})},
update:function(F){var W=this;if(this.useUnifiedPlayer_())NY(!1,"Invalid method call in kevlar_unified_player.");else{if(this.hasWebPlayerContextConfig_()){this.updateSwfConfig_(F);var E=NsR(F.args);E&&this.get("currentVideoEndpoint.watchEndpoint.videoId",this.watchNextData)==E&&Object.assign(F.args,this.computeWatchNextPlayerVars_(this.watchNextData));this.isResetForNewPlayback_=!1;return this.acquireApi_(F).then(function(h){_.hF(W.hostElement,"yt-player-updated",_.c("kevlar_player_updated_obsolete_player_killswitch")?
h:void 0)})}_.fn(new _.xC("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))}},
updatePlayerComponents:function(F){var W=this,E;return _.e(function(h){if(h.nextAddress==1)return _.Q(h,W.getPlayerPromise(),2);E=h.yieldResult;if(!E)throw Error("uh");F&&W.updatePlayerPlaylist_(F);_.gG(h)})},
acquireApi_:function(F){var W=this;if(this.useUnifiedPlayer_())NY(!1,"Invalid method call in kevlar_unified_player.");else return _.P0.cancelJob(this.preparePlayerJobId_),this.playerContainer_?(NY(this.initPlayerPromise_,"Missing initPlayerPromise_."),this.getPlayerPromise().then(function(E){W.shouldAutoplay_(F)?E.loadVideoByPlayerVars(F.args):E.cueVideoByPlayerVars(F.args)})):this.initPlayerPromise_=this.initPlayerContainer_(F),this.initPlayerPromise_},
initPlayerContainer_:function(F){var W=this;if(this.useUnifiedPlayer_())NY(!1,"Invalid method call in kevlar_unified_player.");else return NY(!this.initPlayerPromise_,"Player is already initialized."),this.initPlayerPromise_&&_.OB(Error("vh")),NY(!this.playerContainer_,"ytd-player should only be initialized once."),this.playerContainer_=_.c("kevlar_player_container_query_killswitch")?this.$.container:_.Z(this.hostElement).querySelector("#container"),Fio().then(function(){var E=W.initPlayer_(F);W.playerResolver_.resolve(E);
return E})},
onPlayerReady_:function(F,W){this.useUnifiedPlayer_()?NY(!1,"Invalid method call in kevlar_unified_player."):(F.removeEventListener("onReady",this.onPlayerReadyEvent_),this.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&Lmu.resolve(F),W(F))},
maybeCallApiMethodOnElement_:function(F,W){if(typeof F[W]==="function")return F[W]()},
maybeAdoptBootstrapPlayer_:function(){var F=window,W,E=(W=F.ytplayer)==null?void 0:W.bootstrapPlayerContainer;if((W=E==null?void 0:E.firstElementChild)&&W.classList.contains("html5-video-player")){var h,d,V=(h=F.ytplayer)==null?void 0:(d=h.bootstrapWebPlayerContextConfig)==null?void 0:d.contextId;h=this.getWebPlayerContextConfig_().contextId;if(V&&V===h){E!==this.playerContainer_&&(E=!1,this.maybeCallApiMethodOnElement_(W,"getPlayerState")===2&&(E=!0),this.playerContainer_.appendChild(W),E||this.maybeCallApiMethodOnElement_(W,
"playVideo"));var R;if((R=F.ytplayer)==null?0:R.bootstrapPlayerResponse)this.bootstrapPlayerResponse_=F.ytplayer.bootstrapPlayerResponse}}},
initPlayer_:function(F){var W=this;if(this.useUnifiedPlayer_())NY(!1,"Invalid method call in kevlar_unified_player.");else return new Promise(function(E){W.maybeAdoptBootstrapPlayer_();var h=F?TMn(F):void 0;h&&h==W.bootstrapPlayerResponse_&&(F.loaded=!0);h=W.playerContainer_;var d=W.getWebPlayerContextConfig_();h=NzI(h,F,d);W.player_=h;W.onPlayerReadyEvent_=W.onPlayerReady_.bind(W,W.player_,E);W.player_.addEventListener("onReady",W.onPlayerReadyEvent_);W.player_.addEventListener("innertubeCommand",
W.onPlayerInnerTubeCommand_.bind(W))})},
getPlayerPromise:function(){return this.useUnifiedPlayer_()?(this.mainAppPlayer_||this.createMainAppPlayer_(),this.mainAppPlayer_.api):this.playerResolver_.promise},
getPlayer:function(){return this.player_&&this.player_.isReady()?this.player_:null},
pause:function(){this.getPlayerPromise().then(function(F){F.pauseVideo()})},
play:function(){this.getPlayerPromise().then(function(F){F.playVideo()})},
onTouchStart_:function(){if(!this.disableTouchGestures){var F=_.WZ().resolve(_.KQ).getCurrentPage();F&&F.getScrollTop()<=0?_.Jt(this,"pan-down"):_.Jt(this,"manipulation")}},
onPinchOut_:function(){this.getPlayerPromise().then(function(F){F.isFullscreen()||F.toggleFullscreen()})},
onPinchIn_:function(){this.getPlayerPromise().then(function(F){F.isFullscreen()&&F.toggleFullscreen()})},
updatePlayerPlaylist_:function(F){var W=this,E,h,d;return _.e(function(V){if(V.nextAddress==1)return E=_.WZ().resolve(_.Fd(_.yH)),h=!!(E&&E.playlistComponent&&E.playlistComponent.loopOn),_.Q(V,W.getPlayerPromise(),2);var R=d=V.yieldResult,M=R.updatePlaylist,g=[];if(_.c("kevlar_player_playlist_use_local_index")){var t,C;var B=(C=(t=F.localCurrentIndex)!=null?t:F.currentIndex)!=null?C:0}else{var I;B=(I=F.currentIndex)!=null?I:0}if(F.contents)for(t=0;t<F.contents.length;t++)if((C=F.contents[t])&&C.playlistPanelVideoRenderer)if(K8Y(C)){C=
C.playlistPanelVideoRenderer;I="";C.shortBylineText&&(I=_.Yr(C.shortBylineText));var x="";C.title?x=_.Yr(C.title):C.unplayableText&&(x=_.Yr(C.unplayableText));g.push({author:I,title:x,encrypted_id:C.videoId})}else t<B&&--B;M.call(R,{index:B,list:F.playlistId?F.playlistId:"",loop:h,playlist_title:F.title,playlist_length:g.length,video:g,fetch:0,external_list:"1",title:F.title?F.title:"",playlist_author:F.ownerName?_.Yr(F.ownerName):void 0});_.gG(V)})},
focusOnPlayer:function(){_.wT(this,function(){if(this.playerContainer_&&this.playerContainer_.firstElementChild){var F=this.playerContainer_.querySelector(".html5-video-player");F&&(_.mC(_.WZ().resolve(_.$Y)),F.focus())}})},
preparePlayer:function(){var F=this;this.useUnifiedPlayer_()?this.mainAppPlayer_||this.createMainAppPlayer_():this.hasWebPlayerContextConfig_()?this.initPlayerPromise_||(new Promise(function(W){if(document.readyState=="complete"||document.readyState=="ready"||document.readyState=="interactive")W();else{var E=function(){document.removeEventListener("DOMContentLoaded",E);W()};
document.addEventListener("DOMContentLoaded",E)}})).then(function(){return Fio()}).then(function(){F.initPlayerPromise_||F.preparePlayerJobId_||(F.preparePlayerJobId_=_.sB(_.P0,function(){F.initPlayerPromise_||(F.initPlayerPromise_=F.initPlayerContainer_())}))}):_.fn(new _.xC("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))},
updateSwfConfig_:function(F){this.useUnifiedPlayer_()?NY(!1,"Invalid method callin kevlar_unified_player."):this.shouldAutoplay_(F)||(F.args.autoplay="0")},
shouldAutoplay_:function(F){if(this.useUnifiedPlayer_())NY(!1,"Invalid method call in kevlar_unified_player.");else{var W=this.get("args.el",F);return W&&W!="detailpage"&&this.isMiniplayerActive_()||W&&(W=="sponsorshipsoffer"||W=="handlesclaiming")&&this.get("args.autoplay",F)=="0"?!1:(F=TMn(F))&&this.get("playerConfig.playbackStartConfig.startPaused",F)?!1:!0}},
isMiniplayerActive_:function(){return _.WZ().resolve(_.GF).isMiniplayerActive()},
stop:function(){this.maybeSendAbandonmentPing_();var F=this.getPlayer();if(F){var W=F.getPlayerState();_.c("kevlar_player_check_ad_state_on_stop")&&(W=F.getPlayerState(F.getPresentingPlayerType()));W!=5&&F.stopVideo()}},
resetForNewPlayback:function(){this.isResetForNewPlayback_||(this.stop(),this.isResetForNewPlayback_=!0)},
appendTo:function(F,W,E){E=E===void 0?!1:E;var h=this,d,V,R,M;return _.e(function(g){if(g.nextAddress==1)return W||(W=h.hostElement),d=h.useUnifiedPlayer_()?!!h.mainAppPlayer_:!!h.initPlayerPromise_,d?_.Q(g,h.getPlayerPromise(),2):(E?F.insertBefore(W,F.firstChild):F.appendChild(W),g.return());V=g.yieldResult;R=V.getPlayerState(V.getPresentingPlayerType());M=!1;if(R==-1||R==1||R==3)M=!0;E?F.insertBefore(W,F.firstChild):F.appendChild(W);M&&V.playVideo();V.setSize(NaN,NaN);_.gG(g)})},
watchNextDataChanged_:function(F){var W=this;F&&(this.useUnifiedPlayer_()&&_.c("kevlar_unified_player_update_watch_next_killswitch")?this.mainAppPlayer_&&MGX(this.mainAppPlayer_,F):this.getPlayerPromise().then(function(E){E.updateVideoData(W.computeWatchNextPlayerVars_(F))}))},
computeWatchNextPlayerVars_:function(F){if(this.useUnifiedPlayer_()&&_.c("kevlar_unified_player_update_watch_next_killswitch"))NY(!1,"Invalid method call in kevlar_unified_player.");else return{raw_watch_next_response:F}},
maybeSendAbandonmentPing_:function(){var F=this.getPlayer();F&&F.getPlayerState()!=5&&F.getPlayerState()!=0&&F.sendAbandonmentPing()},
getWebPlayerContextConfig_:function(){var F=_.b0("WEB_PLAYER_CONTEXT_CONFIGS")[this.context];this.playerId&&(F=Object.assign({},F),F.rootElementId=this.playerId);F.serializedExperimentIds&&F.serializedExperimentFlags||_.OB(Error("wh"));return F},
hasWebPlayerContextConfig_:function(){return!!_.b0("WEB_PLAYER_CONTEXT_CONFIGS")&&!!this.getWebPlayerContextConfig_()},
onPlayerInnerTubeCommand_:function(F){this.useUnifiedPlayer_()?NY(!1,"Invalid method call in kevlar_unified_player."):_.ei(F,this.hostElement)},
useUnifiedPlayer_:function(){var F=_.c("kevlar_non_watch_unified_player")&&this.context!=="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH";return _.c("kevlar_unified_player")||F}}];var Bza={};Bza.YtPlaylistPanelBehavior=[_.K.YtRendererBehavior,{_noAccessors:!0,properties:{loopOn:Boolean,shuffleOn:Boolean},listeners:{"yt-toggle-button":"onYtToggleButton_"},onYtToggleButton_:function(F){F=F.detail;if(F.actions.loop!=void 0||F.actions["yt-icons:loop"]!=void 0)this.loopOn=F.actions.loop||F.actions["yt-icons:loop"];if(F.actions.shuffle!=void 0||F.actions["yt-icons:shuffle"]!=void 0)this.shuffleOn=F.actions.shuffle||F.actions["yt-icons:shuffle"]},
setMenuData_:function(F){if(!F||!F.playlistButtons||F.isInfinite)return null;for(var W=F.playlistButtons.menuRenderer.topLevelButtons,E=W.length,h=0;h<E;h++)if(W[h].toggleButtonRenderer){var d=W[h].toggleButtonRenderer;d.defaultIcon.iconType=="LOOP"&&this.loopOn?d.isToggled=this.loopOn:d.defaultIcon.iconType=="SHUFFLE"&&this.shuffleOn&&(d.isToggled=this.shuffleOn)}return F.playlistButtons}}];var v2i=function(F){d8.call(this,F,132);this.isDocument=F===document.documentElement};
_.k(v2i,d8);v2i.prototype.calculateScrollDelta=function(F,W,E){var h=0;F<W?h=F<W-100?-48:-8:F>W+E&&(h=F>W+E+100?48:8);return h};
v2i.prototype.JSC$9203_onMouseMove=function(F){this.isDocument||(F.clientX=F.event_.pageX,F.clientY=F.event_.pageY);d8.prototype.JSC$9203_onMouseMove.call(this,F)};var KO=function(){var F=_.zK.apply(this,arguments)||this;F._noAccessors=!0;F.scrollElement=document.documentElement;F.JSC$12139_dragListGroup=null;F.dragScrollSupport=null;F.onDraggerCreated=function(W){var E=W.JSC$9199_dragger;E.scrollTarget_=F.scrollElement;W=W.draggerEl;E&&W.menuOpened&&E.setEnabled(!1)};
F.onDragStart=function(W){var E=W.draggerEl;W=W.currDragItem;var h=Object.assign({},W==null?void 0:W.data);h.trackingParams=void 0;E.data=h;E.style.position="absolute";E.style.width=(W==null?void 0:W.clientWidth)+"px";E.style.zIndex="2030";E.onDrag&&E.onDrag();_.c("web_owner_document_fallback_killswitch")?(W=document.querySelector("ytd-app"))&&_.Z(W).appendChild(E):(W=_.qp(E),(h=W.querySelector("ytd-app"))?_.Z(h).appendChild(E):W.body.appendChild(E));F.dragScrollSupport=new v2i(F.scrollElement);F.dragScrollSupport.horizontalScrolling_=
!1;E=F.dragScrollSupport;E.constrainScroll_=!!E.margin_&&!1};
F.onDrop=function(W){F.handleDrop(W);F.dragScrollSupport&&(_.u5(F.dragScrollSupport),F.dragScrollSupport=null)};
F.onReorderableScroll=function(){if(F.JSC$12139_dragListGroup){var W=F.JSC$12139_dragListGroup;uD_(W,W.currDragItem_)}};
return F};
_.k(KO,_.zK);KO.prototype.detached=function(){_.IhX(this)};
_.IhX=function(F){F.JSC$12139_dragListGroup&&(_.LP(F.JSC$12139_dragListGroup,yEB,F.onDragStart),_.LP(F.JSC$12139_dragListGroup,TRT,F.onDragStart),F.JSC$12139_dragListGroup.dispose(),F.JSC$12139_dragListGroup=null);F.dragScrollSupport&&(_.u5(F.dragScrollSupport),F.dragScrollSupport=null);F.scrollElement.removeEventListener("scroll",F.onReorderableScroll)};
_.cOe=function(F,W,E,h){h=h===void 0?"":h;_.IhX(F);E&&(F.scrollElement=E);F.JSC$12139_dragListGroup=new o7;F.JSC$12139_dragListGroup.hysteresisDistance_=2;Gr_(F.JSC$12139_dragListGroup,W);F.JSC$12139_dragListGroup.draggerElClasses_=tr("dragging").split(" ");h&&Y_c(F.JSC$12139_dragListGroup,function(d){var V=d||document,R=null;V.getElementsByClassName?R=V.getElementsByClassName(h)[0]:R=l_O("*",h,d);return R||d});
_.ce(F.JSC$12139_dragListGroup,lsT,F.onDraggerCreated);_.ce(F.JSC$12139_dragListGroup,yEB,F.onDragStart);_.ce(F.JSC$12139_dragListGroup,TRT,F.onDrop);F.JSC$12139_dragListGroup.init();F.scrollElement.addEventListener("scroll",F.onReorderableScroll,{passive:!0})};
KO.prototype.handleDrop=function(){};
_.Sn.Object.defineProperties(KO.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
_.T([_.O({value:100}),_.Y("design:type",Number)],KO.prototype,"scrollMargin",void 0);KO=_.T([_.tT()],KO);_.Dh_=[KO.prototype];_.FJ={YtSparklesClickLocationBehavior:{clickTargetMap:null,containerId:null,handleClick:function(F,W,E){var h=this.getClickTarget_(W);if(h&&this.isClickAllowed_(h)){W.preventDefault();F=(0,_.xd.unsafeClone)(F);var d=this.getContainerBoundingRect();W=this.getRelativeClickXy_(W,d);this.expandEndpointUrlMacros_(F,{NX:W[0],NY:W[1],NB:h.code});E&&this.truncateWebCommendMetadataUrl_(F);_.hF(this.hostElement,"yt-navigate",{endpoint:F})}},
getClickTarget_:function(F){if(!this.clickTargetMap)return null;F=_.TB(F)||[];F=_.U(F);for(var W=F.next();!W.done;W=F.next()){W=W.value;if(W===_.Z(this.hostElement).querySelector("#menu"))break;if(W=this.clickTargetMap.get(W.id))return W}return null},
getRelativeClickXy_:function(F,W){var E=F.detail.x,h=F.detail.y;_.c("use_on_click_for_desktop_display_ad")&&F.clientX!=null&&F.clientY!=null&&(E=F.clientX,h=F.clientY);F=Math.round(E-W.left);W=Math.round(h-W.top);return F<0||W<0?[null,null]:[F,W]},
getContainerBoundingRect:function(){return _.Z(this.hostElement).querySelector("#"+this.containerId).getBoundingClientRect()},
expandEndpointUrlMacros_:function(F,W){for(var E=_.U(F.loggingUrls||[]),h=E.next();!h.done;h=E.next())h=h.value,h.baseUrl&&(h.baseUrl=kd(h.baseUrl,W));F.urlEndpoint&&F.urlEndpoint.url&&(F.urlEndpoint.url=kd(F.urlEndpoint.url,W));F.commandMetadata&&F.commandMetadata.webCommandMetadata&&F.commandMetadata.webCommandMetadata.url&&(F.commandMetadata.webCommandMetadata.url=kd(F.commandMetadata.webCommandMetadata.url,W))},
truncateWebCommendMetadataUrl_:function(F){if(F.commandMetadata&&F.commandMetadata.webCommandMetadata&&F.commandMetadata.webCommandMetadata.url){var W=F.commandMetadata.webCommandMetadata.url,E=W.indexOf("&pp=");if(E>0){var h=W.indexOf("&",E+1);F.commandMetadata.webCommandMetadata.url=h>E&&h<W.length?W.slice(0,E)+W.slice(h):W.slice(0,E)}}},
configureClickTargets:function(F,W,E){this.containerId=F;this.clickTargetMap=new Map;F=_.U(W);for(W=F.next();!W.done;W=F.next())if(W=W.value,W.location){var h=E.get(W.location);h&&(_.Wm(_.Z(this.hostElement).querySelector("#"+h),"yt-simple-endpoint",this.isClickAllowed_(W)),this.clickTargetMap.set(h,W))}},
isClickAllowed_:function(F){return F.behaviorType==="PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"||F.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"||F.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_CHANNEL"||F.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_ACTION_WEBSITE_URL"}}};_.W3={};
_.W3.YtLazyListBehavior=[_.ua.YtTaskEmitterBehavior,{_noAccessors:!0,properties:{initialCount:{type:Number,value:4},targetFramerate:{type:Number,value:20},minChunkSize:{type:Number,value:1},autoFill:{type:Boolean,value:!1},disableAutoFill:{type:Boolean,value:!1},shownItems:Array,shownCount:{type:Number,value:0},canShowMore:{type:Boolean,notify:!0,reflectToAttribute:!0,observer:"onCanShowMoreUpdated_"},renderDelay:Number,targetFrameTime_:{type:Number,computed:"computeFrameTime_(targetFramerate)"},canScheduleJobs:{type:Boolean,
value:!0,observer:"canScheduleJobsChanged_"}},itemsPath:"data.items",beforeRegister:function(){if(this.itemsPath)if(this.getItemsPath&&this.getItemsPath instanceof Function&&(this.itemsPath=this.getItemsPath()),this.useSignals)this.addReactiveSchema({type:"observe",method:{methodName:"deepLazyListObserver_",args:[{type:"wildcard",path:this.itemsPath}]}});else{var F=(this.constructor.generatedFrom||this).observers;F||(F=[]);F.push("deepLazyListObserver_("+this.itemsPath+".*)");this.constructor.generatedFrom.observers=
F}},
created:function(){this.boundRenderChunk_=this.renderChunk_.bind(this);this.items_=null;this.lazyListRenderJobId_=this.chunkCount_=this.lastChunkTime_=this.length_=0;this.nonDeferredItemCount=-1;this.renderElementsOutsideVisibleArea_=null;this.partiallyRenderedItems_=new WeakSet},
fillRemainingListItems:function(){this.fillRange_(this.shownCount,this.length_)},
renderDeferredElements:function(){var F=this.renderElementsOutsideVisibleArea_;F&&(XqB(F,4),F.processSignal())},
deepLazyListObserver_:function(F){var W=this;if(F){var E=F.value||[];if(this.itemsPath==F.path){var h=this.nonDeferredItemCount;F=0;h>-1&&E.length>h&&(F=_.b0("REMAINING_DOVA_DEFERRED_CHUNKS",-1));F>0?(h>0&&(h=E.slice(0,h),this.setInitialItemsOnDataChanged(h)),(h=this.renderElementsOutsideVisibleArea_)?h.cancel():(h=this.renderElementsOutsideVisibleArea_=new _.py(2,"eocs"),_.T2I(window,"scroll",function(){return W.renderDeferredElements()})),_.mo(h,function(){W.setInitialItemsOnDataChanged(E)}),_.OG("REMAINING_DOVA_DEFERRED_CHUNKS",
F-1)):this.setInitialItemsOnDataChanged(E)}else if(this.itemsPath+".splices"==F.path)this.onItemsUpdated_(E);
else h="shownItems"+F.path.substr(this.itemsPath.length),this.useSignals&&h==="shownItems.length"||this.notifyPath(h,F.value)}else this.cancelPendingTasks_()},
onItemsUpdated_:function(F){F&&(this.items_=this.get(this.itemsPath))&&(this.updateChangeRecord_(F),this.length_=this.items_.length,this.canShowMore=this.shownCount<this.length_,this.autoFill?(this.lastChunkTime_=Date.now(),this.tryRenderChunk_()):this.fillRemainingListItems())},
updateChangeRecord_:function(F){F=F.indexSplices;for(var W=0,E=F.length;W<E;W++){var h=F[W];if(h.index<this.shownCount&&(h.removed&&this.splice("shownItems",h.index,h.removed.length),h.addedCount)){var d=h.object.slice(h.index,h.index+h.addedCount);h=["shownItems",h.index,0];h.push.apply(h,d);this.splice.apply(this,h)}}this.shownCount=this.shownItems?this.shownItems.length:0},
setInitialItemsOnDataChanged:function(F){this.cancelPendingTasks_();F||(F=[]);this.items_=F;this.length_=this.items_.length;this.shownItems=this.items_.slice(0,this.initialCount);this.shownCount=this.shownItems.length;this.canShowMore=this.shownCount<this.length_;this.autoFill&&(_.l0("DISABLE_AUTOFILL")||this.disableAutoFill?this.fillRemainingListItems():(this.chunkCount_=this.initialCount,this.lastChunkTime_=Date.now(),this.canShowMore&&_.wT(this,this.tryRenderChunk_)))},
fillRange_:function(F,W){this.canShowMore&&this.items_&&(F=this.items_.slice(F,W),F.unshift("shownItems"),this.push.apply(this,F),this.shownCount=W,this.canShowMore=this.shownCount<this.length_)},
tryRenderChunk_:function(){var F=this;this.canShowMore&&_.OO(this,"renderChunk",function(){F.requestRenderChunk_()})},
requestRenderChunk_:function(){if(_.l0("SCHEDULED_LAZY_LIST")||this.renderDelay)return this.shouldUseTaskManager()||this.canScheduleJobs?(this.cancelPendingTasks_(),this.lazyListRenderJobId_=_.qY(this.getTaskManager(),this.boundRenderChunk_,this.renderDelay),!0):!1;requestAnimationFrame(this.boundRenderChunk_);return!0},
cancelPendingTasks_:function(){this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_);var F=this.renderElementsOutsideVisibleArea_;F&&(F.cancel(),this.renderElementsOutsideVisibleArea_=null)},
renderChunk_:function(){var F=Date.now();this.chunkCount_=Math.round(this.targetFrameTime_/(F-this.lastChunkTime_)*this.chunkCount_)||this.minChunkSize;this.lastChunkTime_=F;this.fillRange_(this.shownCount,Math.min(this.shownCount+this.chunkCount_,this.length_));this.lazyListRenderJobId_=0;this.tryRenderChunk_()},
computeFrameTime_:function(F){return Math.ceil(1E3/F)},
onCanShowMoreUpdated_:function(F){this.data&&this.items_!==null&&(F?this.partiallyRenderedItems_.add(this.items_):this.partiallyRenderedItems_.delete(this.items_))},
canScheduleJobsChanged_:function(F){!this.shouldUseTaskManager()&&this.data&&(!F&&this.canShowMore?(_.aMk(this,"renderChunk"),this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_)):F&&this.partiallyRenderedItems_.has(this.items_)&&(_.c("kevlar_lazy_list_resume_for_autofill")?this.autoFill&&this.tryRenderChunk_():this.tryRenderChunk_()))}}];var d7;_.EL={};
d7=function(){var F=_.zK.apply(this,arguments)||this;F.atStart=!0;F.atEnd=!0;F.startIndex=0;F.endIndex=0;F.scrollCount=0;F.initialStartIndex=0;F.disableScrollEventListener=!1;F.useFloorScrolling=!1;F.isSearch=!1;F.dragging=!1;F.dragMouseStart=0;F.dragOffsetStart=0;F.disableWheelScroll=!1;F.centerListItems=!1;F.offset=0;F.minComponentWidth=0;F.marginWidthRight=0;F.marginWidthLeft=0;F.setButtonsStateRequested=!1;F.itemsVisibilityObserver=null;F.fullyVisibleItemsIndices=[];F.JSC$12150_onWheelScroll=function(W){if(F.isSearch&&
!F.disableWheelScroll&&_.c("desktop_enable_dmpanel_wheel_scroll")){var E=W.shiftKey?Math.abs(W.deltaY)>Math.abs(W.deltaX)?W.deltaY:W.deltaX:W.deltaX;E!==0&&(W.preventDefault(),F.ytLazyListBehavior.fillRemainingListItems(),F.offset+=E,hL(F),F.reposition_())}};
F.onPointerDown=function(W){xhz(F)&&(F.dragMouseStart=W.clientX,F.dragOffsetStart=F.offset,F.dragging=!0)};
F.onPointerMove=function(W){xhz(F)&&F.dragging&&(F.ytLazyListBehavior.fillRemainingListItems(),F.offset=F.dragOffsetStart-(W.clientX-F.dragMouseStart),hL(F),F.reposition_())};
F.onPointerUp=function(){xhz(F)&&(F.dragging=!1)};
return F};
_.k(d7,_.zK);var k1a=function(F){var W=_.Z(F.hostElement).querySelector("#items").children;if(!W)return 0;var E=0;F=_.U(F.fullyVisibleItemsIndices);for(var h=F.next();!h.done;h=F.next())E+=W[h.value].clientWidth;return E},xhz=function(F){return F.isSearch&&_.c("desktop_enable_dmpanel_click_drag_scroll")};
d7.prototype.created=function(){this.cachedViewportWidth=_.b0("initialInnerWidth")||window.innerWidth;this.JSC$12150_cachedViewportHeight=_.b0("initialInnerHeight")||window.innerHeight;_.b0("REMAINING_DOVA_DEFERRED_CHUNKS",-1)==-1&&_.OG("REMAINING_DOVA_DEFERRED_CHUNKS",6)};
d7.prototype.attached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.addEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.c("desktop_enable_dmpanel_scroll")&&this.addScrollEventListeners();AOu(this)};
d7.prototype.detached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.removeEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.c("desktop_enable_dmpanel_scroll")&&this.removeScrollEventListeners();var F;(F=this.itemsVisibilityObserver)==null||F.disconnect();this.itemsVisibilityObserver=null;var W;(W=this.itemsObserver)==null||W.disconnect()};
var AOu=function(F){var W=_.Z(F.hostElement).querySelector("#scroll-container");if(W){if(!F.itemsVisibilityObserver){var E=window.getComputedStyle(W).marginRight;F.itemsVisibilityObserver=new IntersectionObserver(function(h){sCp(F,h)},{root:W,
rootMargin:E,threshold:.98})}if(W=_.Z(F.hostElement).querySelector("#items"))F.itemsObserver=new qTX(W,function(h){LiH(F,h)})}},LiH=function(F,W){qU_(F)&&(Array.from(W.addedNodes).filter(function(E){return E.nodeType===Node.ELEMENT_NODE}).forEach(function(E){F.itemsVisibilityObserver&&F.itemsVisibilityObserver.observe(E)}),Array.from(W.removedNodes).filter(function(E){return E.nodeType===Node.ELEMENT_NODE}).forEach(function(E){F.itemsVisibilityObserver&&F.itemsVisibilityObserver.unobserve(E)}))},
sCp=function(F,W){var E=new Set(F.fullyVisibleItemsIndices);
W=_.U(W);for(var h=W.next();!h.done;h=W.next()){h=h.value;var d=h.target.parentElement;d?(d=Array.from(d.children).indexOf(h.target),h.isIntersecting?E.add(d):E.has(d)&&E.delete(d)):_.OB(new _.xC("Parent element not found",h.target.nodeName))}F.fullyVisibleItemsIndices=Array.from(E).sort(function(V,R){return V-R});
E.size===0?_.OB(new _.xC("No visible entries in horizontal list")):(F.startIndex=F.fullyVisibleItemsIndices[0],F.endIndex=F.fullyVisibleItemsIndices[F.fullyVisibleItemsIndices.length-1])},qU_=function(F){F.data?F=(F=F.data)&&F.itemSizeConstraint?"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===F.itemSizeConstraint:!1:F=!1;
return F};
_.N=d7.prototype;_.N.addScrollEventListeners=function(){var F=_.Z(this.hostElement).querySelector("#scroll-container");F.style.touchAction="pan-y";F.addEventListener("wheel",this.JSC$12150_onWheelScroll);F.addEventListener("pointerdown",this.onPointerDown);F.addEventListener("pointermove",this.onPointerMove);window.addEventListener("pointerup",this.onPointerUp)};
_.N.removeScrollEventListeners=function(){var F=_.Z(this.hostElement).querySelector("#scroll-container");F.removeEventListener("wheel",this.JSC$12150_onWheelScroll);F.removeEventListener("pointerdown",this.onPointerDown);F.removeEventListener("pointermove",this.onPointerMove);window.removeEventListener("pointerup",this.onPointerUp)};
_.N.reset=function(){this.scrollCount=this.offset=0;this.reposition_();this.marginWidthLeft=this.marginWidthRight=this.minComponentWidth=0;this.initialStartIndex>0&&_.wT(this,this.setStartIndex,[this.initialStartIndex])};
_.N.reposition_=function(){var F=_.b0("HTML_DIR")=="rtl"?"":"-",W=_.Z(this.hostElement).querySelector("#items");W&&(W.style.transform="translateX("+F+this.offset+"px)");this.requestButtonsStateUpdate_()};
_.N.requestButtonsStateUpdate_=function(){this.setButtonsStateRequested||(this.setButtonsStateRequested=!0,_.wT(this,this.setButtonsState_))};
_.N.setButtonsState_=function(){this.setButtonsStateRequested=!1;var F=_.Z(this.hostElement).querySelector("#items").firstElementChild;if(F){this.minComponentWidth||(this.minComponentWidth=$hp(this,F));F=_.Z(this.hostElement).querySelector("#scroll-container").clientWidth;var W=_.Z(this.hostElement).querySelector("#items").clientWidth,E=this.get(this.ytLazyListBehavior.itemsPath,this);if(E){var h=Math.round(F/this.minComponentWidth)||1;this.fullyVisibleItemsIndices.length===0&&(this.startIndex=Math.round(this.offset/
this.minComponentWidth),this.endIndex=Math.min(this.startIndex+h,E.length)-1)}this.ytLazyListBehavior.canShowMore?W+this.minComponentWidth>=this.offset+F&&(this.atEnd=!1):this.atEnd=this.offset+F>=W-20?!0:!1;this.atStart=this.offset<=20}};
_.N.setStartIndex=function(F){if(!this.minComponentWidth){var W=_.Z(this.hostElement).querySelector("#items").firstElementChild;if(!W)return;this.minComponentWidth=$hp(this,W)}this.ytLazyListBehavior.fillRemainingListItems();this.offset=this.minComponentWidth*F;hL(this);this.reposition_()};
_.N.nextClick_=function(){this.ytLazyListBehavior.fillRemainingListItems();_.vD();var F=_.Z(this.hostElement).querySelector("#scroll-container").clientWidth;_.c("web_min_component_width_killswitch")||this.minComponentWidth||(this.minComponentWidth=$hp(this,_.Z(this.hostElement).querySelector("#items").firstElementChild));F=this.useFloorScrolling?Math.floor(F/this.minComponentWidth)||1:Math.round(F/this.minComponentWidth)||1;this.centerListItems&&this.scrollCount===0&&ZJU(this);this.offset+=qU_(this)?
k1a(this):F*this.minComponentWidth;hL(this);this.reposition_();this.scrollCount++};
_.N.prevClick_=function(){var F=_.Z(this.hostElement).querySelector("#scroll-container").clientWidth;F=this.useFloorScrolling?Math.floor(F/this.minComponentWidth)||1:Math.round(F/this.minComponentWidth)||1;this.resizeSupportEnabled?(this.scrollCount--,this.offset=qU_(this)?k1a(this):this.minComponentWidth*this.scrollCount-1):this.offset-=qU_(this)?k1a(this):F*this.minComponentWidth;this.centerListItems&&ZJU(this);hL(this);this.reposition_()};
_.N.onIronResize_=function(){this.resizeSupportEnabled&&_.wT(this,this.checkComponentWidthResize);this.requestButtonsStateUpdate_()};
_.N.onItemsTransitionEnd_=function(F){_.oo(F)===_.Z(this.hostElement).querySelector("#items")&&this.ytRendererBehavior.markDirty()};
_.N.onChildElementFocus_=function(F){F=F.target.closest("#items > *");var W=_.Z(this.hostElement).querySelector("#scroll-container");if(W.contains(F)){if(_.c("web_horizontal_list_behavior_focus_killswitch"))if(F.offsetLeft<this.offset)this.offset=Math.abs(F.offsetLeft)<F.clientWidth?0:F.offsetLeft;else if(F.offsetLeft+F.clientWidth>this.offset+W.clientWidth)this.ytLazyListBehavior.fillRemainingListItems(),_.vD(),this.offset=F.offsetLeft+F.clientWidth-W.clientWidth;else return;else{var E=_.Z(this.hostElement).querySelector("#items"),
h=_.b0("HTML_DIR")==="rtl",d=h?E.clientWidth-F.offsetLeft:F.offsetLeft;E=h?E.clientWidth-(F.offsetLeft+F.clientWidth):F.offsetLeft+F.clientWidth;var V=h?d>this.offset+W.clientWidth:d<this.offset,R=h?E<this.offset:E>this.offset+W.clientWidth,M=h?V:R;if(h?R:V)W=h?E:d,this.offset=Math.abs(W)<F.clientWidth?0:W;else if(M)this.ytLazyListBehavior.fillRemainingListItems(),_.vD(),this.offset=(h?d:E)-W.clientWidth;else return}hL(this);this.reposition_()}};
_.N.observeShownItems_=function(){this.reset()};
_.N.checkComponentWidthResize=function(){var F=_.Z(this.hostElement).querySelector("#items").firstElementChild;F&&(F=$hp(this,F),this.centerListItems||F!==this.minComponentWidth)&&(this.minComponentWidth=F,this.offset=F*this.scrollCount,this.centerListItems&&ZJU(this),hL(this),this.reposition_())};
var $hp=function(F,W){var E=window.getComputedStyle(W).marginRight;E=Math.floor(Number(E.replace("px","")));var h=window.getComputedStyle(W).marginLeft;h=Math.floor(Number(h.replace("px","")));F.centerListItems&&!F.marginWidthRight&&(F.marginWidthRight=E,F.marginWidthLeft=h);return F.resizeSupportEnabled?W.getBoundingClientRect().width+E:W.offsetWidth+E},hL=function(F){var W=_.Z(F.hostElement).querySelector("#scroll-container").clientWidth,E=_.Z(F.hostElement).querySelector("#items").clientWidth;
F.offset<0?F.offset=0:F.offset+W>=E&&(F.offset=E-W)},ZJU=function(F){F.offset-=(_.Z(F.hostElement).querySelector("#scroll-container").clientWidth+F.marginWidthRight-F.minComponentWidth)/2-F.marginWidthLeft};
_.Sn.Object.defineProperties(d7.prototype,{nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){var F=_.b0("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",-1);if(F==-1)F=this.JSC$12150_cachedViewportHeight,F=F>1320?5:F>1020?4:F>730?3:F>430?2:1;else if(F==0)return 0;_.OG("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",F-1);F=_.b0("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",-1);if(F>-1)return F;F=this.cachedViewportWidth;F=F>1600?6:F>1400?5:F>1300?4:F>1090?5:F>870?4:F>660?3:2;_.OG("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",
F);return F},
set:function(){}},
resizeSupportEnabled:{configurable:!0,enumerable:!0,get:function(){return!_.c("kevlar_disable_component_resizing_support")&&!!this.supportComponentResize}}});
d7.prototype.observeShownItems_=d7.prototype.observeShownItems_;d7.prototype.onChildElementFocus_=d7.prototype.onChildElementFocus_;d7.prototype.onItemsTransitionEnd_=d7.prototype.onItemsTransitionEnd_;d7.prototype.onIronResize_=d7.prototype.onIronResize_;d7.prototype.prevClick_=d7.prototype.prevClick_;d7.prototype.nextClick_=d7.prototype.nextClick_;d7.prototype.setButtonsState_=d7.prototype.setButtonsState_;d7.prototype.requestButtonsStateUpdate_=d7.prototype.requestButtonsStateUpdate_;
d7.prototype.reposition_=d7.prototype.reposition_;d7.prototype.reset=d7.prototype.reset;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],d7.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.W3.YtLazyListBehavior),_.Y("design:type",Object)],d7.prototype,"ytLazyListBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],d7.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],d7.prototype,"atStart",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],d7.prototype,"atEnd",void 0);_.T([_.O(),_.Y("design:type",Object)],d7.prototype,"startIndex",void 0);_.T([_.O(),_.Y("design:type",Object)],d7.prototype,"endIndex",void 0);_.T([_.O({value:6}),_.Y("design:type",Number)],d7.prototype,"initialCount",void 0);_.T([_.O(),_.Y("design:type",Object)],d7.prototype,"scrollCount",void 0);_.T([_.O(),_.Y("design:type",Object)],d7.prototype,"initialStartIndex",void 0);
_.T([_.O(),_.Y("design:type",Object)],d7.prototype,"disableScrollEventListener",void 0);_.T([_.O(),_.Y("design:type",Object)],d7.prototype,"supportComponentResize",void 0);_.T([_.O({value:function(){var F=this;return function(){return F.prevClick_()}}}),
_.Y("design:type",Function)],d7.prototype,"boundPrevClick",void 0);_.T([_.O({value:function(){var F=this;return function(){return F.nextClick_()}}}),
_.Y("design:type",Function)],d7.prototype,"boundNextClick",void 0);_.T([_.O(),_.Y("design:type",Object)],d7.prototype,"useFloorScrolling",void 0);_.T([_.O(),_.Y("design:type",Object)],d7.prototype,"isSearch",void 0);_.T([_.O(),_.Y("design:type",Object)],d7.prototype,"dragging",void 0);_.T([_.O(),_.Y("design:type",Object)],d7.prototype,"dragMouseStart",void 0);_.T([_.O(),_.Y("design:type",Object)],d7.prototype,"dragOffsetStart",void 0);
_.T([_.O(),_.Y("design:type",Object)],d7.prototype,"disableWheelScroll",void 0);_.T([_.O(),_.Y("design:type",Object)],d7.prototype,"centerListItems",void 0);_.T([_.R4("iron-resize"),_.ea("guideOpened"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],d7.prototype,"onIronResize_",null);_.T([_.R4("transitionend"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],d7.prototype,"onItemsTransitionEnd_",null);
_.T([_.R4("focusin"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],d7.prototype,"onChildElementFocus_",null);_.T([_.ea("shownItems"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],d7.prototype,"observeShownItems_",null);d7=_.T([_.tT()],d7);_.EL.YtdHorizontalListBehavior=[];_.EL.YtdHorizontalListBehavior.push(_.lB,_.K.YtRendererBehavior,_.W3.YtLazyListBehavior,_.y_.YtdGuideStateAwareBehavior,d7.prototype);var MGY=["APP_STATE","PI"];var XaX=_.Fc(["about:blank"]),HJO={pushState:window.history.pushState,replaceState:window.history.replaceState};var Nu=function(F){this.initialized=!1;this.internalReplaceState=this.internalPushState=null;this.history=F;this.internalPushState=F.pushState.bind(F);this.internalReplaceState=F.replaceState.bind(F)};
Nu.prototype.init=function(){this.initialized=!0};
Nu.prototype.pushState=function(F,W){this.initialized||this.init();this.internalPushState&&this.internalPushState(F,"",W)};
Nu.prototype.replaceState=function(F,W){this.initialized||this.init();this.internalReplaceState&&this.internalReplaceState(F,"",W)};
Nu.prototype.getState=function(){return this.history&&this.history.state};var Pyi=function(F){var W=function(){var E=F.apply(this,arguments)||this;E.boundHistoryPushState=!1;E.boundHistoryReplaceState=!1;E.debugInfo={};return E};
_.k(W,F);W.prototype.init=function(){var E=_.Cr("IFRAME");_.Hp(E,_.mv(XaX));E.sandbox="allow-same-origin";E.style.display="none";this.iframe=E;document.body.appendChild(E);this.bindHistoryStateFunctions();F.prototype.init.call(this)};
W.prototype.bindHistoryStateFunctions=function(){var E=this,h=[],d;this.iframe&&((d=this.iframe.contentWindow)==null?0:d.history)&&(d=this.iframe.contentWindow.history)&&(h.push(d),Object.getPrototypeOf(d)&&h.push(Object.getPrototypeOf(d)));window.history&&h.push(window.history);d=window.history;Object.getPrototypeOf(d)&&h.push(Object.getPrototypeOf(d));h.push(HJO);d=function(R){for(var M=null,g=0;g<h.length;g++){var t=h[g][R];if(typeof t==="function"){M=t.bind(window.history);E.debugInfo[R]=g;break}}return M};
if(!this.boundHistoryReplaceState){var V=d("replaceState");V&&(this.internalReplaceState=V,this.boundHistoryReplaceState=!0)}!this.boundHistoryPushState&&(d=d("pushState"))&&(this.internalPushState=d,this.boundHistoryPushState=!0)};
return W}(Nu),JOe=function(){return Pyi.call(this,window.history)||this};
_.k(JOe,Pyi);JOe.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.boundHistoryPushState!==this.boundHistoryReplaceState};var VC=function(F){this.browserHistory=F;this.initialized=!1};
VC.prototype.init=function(){this.initialized||(this.browserHistory.init(),this.initialized=!0,window.addEventListener("popstate",this.handlePopstate.bind(this)))};
VC.prototype.pushState=function(F,W){this.initialized||this.init();this.browserHistory.pushState(F,W)};
VC.prototype.replaceState=function(F,W){this.initialized||this.init();this.browserHistory.replaceState(F,W)};
VC.prototype.handlePopstate=function(F){return F.state};_.ahB=function(F,W,E,h,d){this.endpoint=F;this.forward=W;this.historyEntry=E;this.JSC$26410_savedComponentState=h;this.legacyBorder=d===void 0?!1:d};var fhO=function(F,W){this.rootData=F;this.scrollTop=W};var JU=new _.NG("PAGE_REQUEST_TOKEN"),W3O=new _.NG("FETCH_PBJ_TOKEN");_.UL=new _.NG("EPHEMERAL_STORE_TOKEN");_.RG=function(F){this.data=Object.assign({},F);var W;(W=this.data.innertubeResponse)==null||delete W.frameworkUpdates};
_.RG.prototype.isExpired=function(){return Number(this.data.expireTimestampMs||0)<(0,_.KU)()};
_.Ck=function(F){return Object.assign({},F.data.innertubeResponse,{cacheMetadata:{isCacheHit:!0}})};var OJB=function(){this.maxSize=100;this.timeToDataCache=new Map};
OJB.prototype.get=function(F){var W=this.timeToDataCache.get(F);W&&(this.timeToDataCache.delete(F),this.timeToDataCache.set(F,W));if(W&&W.rootData&&(_.c("web_use_response_store_for_history_cache")||_.c("mweb_use_new_history_manager"))){var E=_.WZ().resolve(_.UL),h=bJM(W),d=!!h;if(h){if(h.content){var V=eg(E,h.content);d&&V?W.rootData.response=_.Ck(V):d=!1}h.player&&(V=eg(E,h.player),d&&V?W.rootData.playerResponse=_.Ck(V):d=!1);h.reelSequence&&(E=eg(E,h.reelSequence),d&&E?W.rootData.reelWatchSequenceResponse=
_.Ck(E):d=!1)}d||(this.timeToDataCache.delete(F),W=void 0)}return W};
OJB.prototype.set=function(F,W){if(W.rootData&&(_.c("web_use_response_store_for_history_cache")||_.c("mweb_use_new_history_manager"))){var E=bJM(W),h=Object.assign({},W.rootData);E&&(E.content&&W.rootData.response&&(lhc(this,E.content,W.rootData.response),h.response=null),E.player&&W.rootData.playerResponse&&(lhc(this,E.player,W.rootData.playerResponse),h.playerResponse=null),E.reelSequence&&W.rootData.reelWatchSequenceResponse&&(lhc(this,E.reelSequence,W.rootData.reelWatchSequenceResponse),h.reelWatchSequenceResponse=
null));W=new fhO(h,W.scrollTop)}this.timeToDataCache.has(F)?this.timeToDataCache.delete(F):this.timeToDataCache.size>=this.maxSize&&(E=this.timeToDataCache.keys().next(),this.timeToDataCache.delete(E.value));this.maxSize!==0&&this.timeToDataCache.set(F,W)};
OJB.prototype.clear=function(){this.timeToDataCache.clear()};
var bJM=function(F){var W=_.WZ().resolve(_.Fd(JU)),E;if((E=F.rootData)==null?0:E.endpoint)return W==null?void 0:IkW(W,F.rootData.endpoint);var h;_.OB(new _.xC("History snapshot response data does not contain endpoint",(h=F.rootData)==null?void 0:h.url));return null},lhc=function(F,W,E){if(F.maxSize>0){var h;
(F=(h=E.responseContext)==null?void 0:h.maxAgeSeconds)&&Number(F)>0&&(h=_.WZ().resolve(_.UL),E=R6(E,F),h.put(W,new _.RG(E)))}};var n2e=function(F,W,E){this.endpoint=W;this.JSC$26415_savedComponentState=E===void 0?null:E;this.entryTime=F};var Bzr=1;var Mu=function(F){var W=function(){var E=F.apply(this,[].concat(_.x9(_.Dd.apply(0,arguments))))||this;E.historyEntryTime=0;E.historySnapshotCache=E.createHistoryCache();return E};
_.k(W,F);W.prototype.createHistoryCache=function(){return new OJB};
W.prototype.saveAndReplace=function(E,h,d){var V=window.location.href;var R=R===void 0?{}:R;var M=(M=this.browserHistory.getState())&&M.entryTime?M.entryTime:v2n();E=this.createNewHistoryEntry(E,R,M);this.saveSnapshot(M,h,d);this.replaceState(E,V||window.location.href)};
W.prototype.saveAndPush=function(E,h,d,V,R){R=R===void 0?{}:R;this.saveSnapshot(this.historyEntryTime,d,V);d=this.historySnapshotCache;V=this.historyEntryTime;var M=d.timeToDataCache.keys();M=_.U(M);for(var g=M.next();!g.done;g=M.next())g=g.value,g>V&&d.timeToDataCache.delete(g);h=this.createNewHistoryEntry(h,R);this.pushState(h,E)};
W.prototype.saveSnapshot=function(E,h,d){this.historySnapshotCache.set(E,new fhO(h,d))};
W.prototype.createNewHistoryEntry=function(E,h,d){d=d===void 0?v2n():d;return new n2e(d,E,h)};
W.prototype.handlePopstate=function(E){var h=F.prototype.handlePopstate.call(this,E),d=null,V=null,R=!1,M=null;h&&h.entryTime&&(M=this.historySnapshotCache.get(h.entryTime)||null,R=h.entryTime>this.historyEntryTime,this.historyEntryTime=h.entryTime,d=h.endpoint,V=h.JSC$26415_savedComponentState);this.handleHistoryCacheLoad(new _.ahB(d,R,M,V),E);return h};
W.prototype.pushState=function(E,h){Number(E==null?void 0:E.entryTime)>=0&&(this.historyEntryTime=E.entryTime);F.prototype.pushState.call(this,E,h)};
W.prototype.replaceState=function(E,h){Number(E==null?void 0:E.entryTime)>=0&&(this.historyEntryTime=E.entryTime);F.prototype.replaceState.call(this,E,h)};
W.prototype.handleHistoryCacheLoad=function(){};
return W}(VC),yOO=function(){var F=Mu.call(this,new JOe)||this;
F.dispatchElement=null;F.entryIndex=0;return F};
_.k(yOO,Mu);_.N=yOO.prototype;_.N.init=function(F){F=F===void 0?!0:F;Mu.prototype.init.call(this);this.initialized||(F||this.saveAndReplace(null,null,0),"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual"))};
_.N.handlePopstate=function(F){var W=null;F.state||(W="History popstate has no state - "+this.getDebugString());if(!this.dispatchElement)return Mu.prototype.handlePopstate.call(this,F);var E=new CustomEvent("yt-history-pop",{cancelable:!0});_.dW(this.dispatchElement,"yt-history-pop",[E,{errorMsg:W}]);_.Nc(this.dispatchElement,"yt-close-all-popups-action");if(!E.defaultPrevented){E=_.WZ().resolve(_.KQ);W=E.getCurrentData();var h=E.getCurrentPage();E=0;h?(h=_.dW(this.dispatchElement,"yt-get-page-offset",
[h]),h.length>0&&(E=h[0])):_.OB(new _.xC("getCurrentPage returned undefined",{debugString:this.getDebugString(),page:W?W.page:"undefined"}));W&&(W.csn=_.JR());this.saveSnapshot(this.historyEntryTime,W,E)}return Mu.prototype.handlePopstate.call(this,F)};
_.N.handleHistoryCacheLoad=function(F,W){F.forward?this.entryIndex++:this.entryIndex--;this.dispatchElement&&(_.U(_.Nc(this.dispatchElement,"yt-history-will-navigate",[W])).next().value||_.dW(this.dispatchElement,"yt-history-load",[W,F]))};
_.N.pushState=function(F,W){this.entryIndex++;if(!this.browserHistory.boundHistoryPushState){var E=new _.xC("history.pushState is not a function",this.getDebugString());_.a_(E)}Mu.prototype.pushState.call(this,F,W)};
_.N.replaceState=function(F,W){if(!this.browserHistory.boundHistoryReplaceState){var E=new _.xC("history.replaceState is not a function",this.getDebugString());_.a_(E)}Mu.prototype.replaceState.call(this,F,W)};
_.N.saveAndPush=function(F,W,E,h,d){d=d===void 0?{}:d;E&&(E.csn=_.JR());Mu.prototype.saveAndPush.call(this,F,W,E,h,d)};
_.N.getDebugString=function(){var F=[];this.initialized&&F.push("i");this.browserHistory.boundHistoryReplaceState&&F.push("bhr");this.browserHistory.boundHistoryPushState&&F.push("bhs");"replaceState"in this.browserHistory.debugInfo&&F.push("brs:"+String(this.browserHistory.debugInfo.replaceState));"pushState"in this.browserHistory.debugInfo&&F.push("bps:"+String(this.browserHistory.debugInfo.pushState));this.entryIndex>0&&F.push("ei:"+String(this.entryIndex));return F.join(",")};
_.g7=function(F,W){F.init(!0);var E=F.browserHistory.getState();F.replaceState(E,U8(W))};
yOO.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.browserHistory.getThirdPartyManipulationSuspected()};_.QC=new _.NG("DESKTOP_HISTORY_MANAGER_TOKEN");var jCp=[10,20,30,40,50,60],z9=function(){this.currentPartitionIndex=0},iJi=function(F){CaH({mainAppWeb:_.yc(),
survivalSli:{partitionMinute:F,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_START"}})},rOp=function(F){CaH({mainAppWeb:_.yc(),
survivalSli:{partitionMinute:F,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_END"}})},Tzc=function(F){return F.currentPartitionIndex>=0&&F.currentPartitionIndex<jCp.length?jCp[F.currentPartitionIndex]:-1},o2M=function(F){return F.currentPartitionIndex>0&&F.currentPartitionIndex-1<jCp.length?jCp[F.currentPartitionIndex-1]:-1};
z9.prototype.start=function(){if(this.intervalId===void 0){this.currentPartitionIndex=0;var F=o2M(this);F>0&&rOp(F);F=Tzc(this);F>0&&iJi(F);G1X(this)}};
var G1X=function(F){var W=Tzc(F);if(W>0){var E=o2M(F);E<0&&(E=0);F.intervalId=_.P0.addJob(function(){var h=o2M(F);h>0&&rOp(h);h=Tzc(F);h>0&&iJi(h);G1X(F)},3,(W-E)*6E4);
F.currentPartitionIndex+=1}else F.currentPartitionIndex=-1};var YUM=function(){this.skipNextNavigation=!1},waX=function(F,W,E){if(!W)return!1;
if(F.skipNextNavigation)return F.skipNextNavigation=!1;if(_.D(E,_.T5))return!1;var h,d,V;if((h=_.D(E,_.BB))==null?0:(d=h.browseEndpointContextSupportedConfigs)==null?0:(V=d.browseEndpointContextMainConfig)==null?0:V.skipConfirmation)return!1;var R;return((R=_.D(W.commandMetadata,_.m1))==null?void 0:R.webPageType)==="WEB_PAGE_TYPE_MINI_APP"};
YUM.prototype.showConfirmationDialog=function(F,W){this.navigateParams=W;this.customConfirmationCommand?_.WZ().resolve(_.EJ).resolveCommand(this.customConfirmationCommand):(W={openPopupAction:{popup:{confirmDialogRenderer:{title:_.Gr(_.CY("NAVIGATION_CONFIRMATION_TITLE")),dialogMessages:[_.Gr(_.CY("NAVIGATION_CONFIRMATION_DESCRIPTION"))],cancelButton:{buttonRenderer:{text:_.Gr(_.CY("CANCEL")),command:{signalAction:{signal:"CANCEL_NAVIGATION"}}}},confirmButton:{buttonRenderer:{text:_.Gr(_.CY("EXIT")),
command:{signalAction:{signal:"RESUME_NAVIGATION"}}}}}},popupType:"DIALOG"}},_.o_.getInstance().triggerAction("yt-open-popup-action",W,F))};
YUM.prototype.cancelPendingNavigation=function(){var F;((F=this.navigateParams)==null?void 0:F.navigationType)===2&&(this.skipNextNavigation=!0,this.navigateParams.isForwardHistoryNavigation?window.history.back():window.history.forward())};var u7T=function(){},pau=function(F,W,E,h,d,V,R){E=E===void 0?{}:E;
R=R===void 0?{}:R;var M=_.e8.instance,g,t=(g=_.D(W,_.T5))==null?void 0:g.url;return t?u$I(M,t,E,window.location.href,function(C,B){SUi(F,C,B,!1,!0,E,V,h)},function(){return!1}):uv(M,W,E,window.location.href,Io(W),function(C,B){SUi(F,C,B,!1,!0,E,V,h)},d,R)},SUi=function(F,W,E,h,d,V,R,M){if(!F.JSC$12208_chunkHandler)if(E.page==="watch"||E.page==="learning_journey_watch")if(d||h){if(_.c("kevlar_continue_playback_without_player_response")){var g;
var t=(g=_.D(M,_.GM))==null?void 0:g.videoId}F.JSC$12208_chunkHandler=new bpu(_.WS,{clientParams:{miniplayer:!1,autoSaveToQueue:!0,fromHistory:h,previousVideoId:t},tempData:V},R)}else F.JSC$12208_chunkHandler=new P6X(_.WS);else E.page==="shorts"&&d&&!h?F.JSC$12208_chunkHandler=new OpU(_.WS,{clientParams:{miniplayer:!1,autoSaveToQueue:!1,fromHistory:!1},tempData:V},R):F.JSC$12208_chunkHandler=new JMB(R);F.JSC$12208_chunkHandler.processChunk({endpoint:W,data:E});return F.JSC$12208_chunkHandler.xT.promise},
mhe=function(F,W,E,h,d){(E=_.Crz(E))&&SUi(F,W,E,!1,!0,h,void 0,d)};var KiM=function(){this.pendingNavigationPromise=null};
_.N=KiM.prototype;_.N.hasPendingNavigation=function(){return!!this.pendingNavigationPromise};
_.N.cancelPendingNavigation=function(){this.pendingNavigationPromise&&(this.pendingNavigationPromise=null)};
_.N.addEventListener=function(){throw Error("xh");};
_.N.dispatchEvent=function(){throw Error("xh");};
_.N.removeEventListener=function(){throw Error("xh");};var FQz=["__Secure-1PAPISID","SAPISID","__Secure-3PAPISID"],tL=function(){_.qo.call(this);this.pollingInterval=3E3;this.sessionCookies=[null,null,null];WQ_(this)};
_.k(tL,_.qo);tL.prototype.verifyUser=function(){var F=WQ_(this),W=F.logout;if(!F.sessionChange)return!0;this.dispatchEvent("ytsessionchange");W&&this.dispatchEvent("ytuserinvalid");return!1};
var WQ_=function(F){var W=FQz.map(function(d){var V;return(V=_.BZ.get(d))!=null?V:""}),E=W.some(function(d,V){return F.sessionCookies&&F.sessionCookies[V]!==""&&d===""}),h=W.some(function(d,V){return F.sessionCookies&&F.sessionCookies[V]!==d});
F.sessionCookies=W;return{logout:E,sessionChange:h}};
tL.prototype.clearTimeout=function(){this.scheduledJobId&&(_.P0.cancelJob(this.scheduledJobId),this.scheduledJobId=void 0)};var k1r=new _.NG("POSTMESSAGE_TUNNEL_TOKEN");var cOY=["/parent_tools","/file_download","/artist_roster"],Lik=[vW_,ISB,crp,xwB,DwH,BIM,kRX,Arz];var EyB=new _.NG("APP_ROOT");var C1=new _.NG("NAVIGATION_CONFIRMATION_SERVICE");var h3M="/account /account_advanced /account_billing /account_notifications /account_playback /account_privacy /account_sharing /cart /channel/ /clip /effect/ /feed/ /gaming /gaming/ /hashtag /learning /manage_red /minor_moment /musicpremium /new /originals /paid_memberships /place /playables /playlist /podcasts /post/ /premium /product/ /reporthistory /results /search /shopcollection/ /shorts/ /show/ /source/ /user/ /watch /youtuberedoriginals".split(" "),dfB=[{url:"/podcasts",expFlag:"enable_polymer_navigation_for_podcasts_destination_page"}],
B3=function(F,W){this.pendingNavigationPromise=null;this.JSC$12226_clientRoot=F;this.historyManager=W;this.logger=null;this.numNavigations=-1;this.lastNavigationUrl=null;this.resetWarmLoads=!1;this.searchDebugUrlMatcher=new RegExp(/\/results\?.*deb|\/scraper_results\?.*deb|\/results\?.*enable=|\/scraper_results\?.*enable=/);this.isMiniplayerExpansion=!1;this.currentEndpoint=null;this.pageFetcher=new u7T;this.debugString=F.is;F={"yt-signal-action-history-back":this.handleSignalActionHistoryBack,"yt-signal-action-reload-page":this.handleSignalActionReloadPage.bind(this),
"yt-signal-action-soft-reload-page":this.handleSignalActionSoftReloadPage.bind(this),"yt-signal-action-reset-warm-loads":this.handleSignalActionResetWarmLoads.bind(this),"yt-signal-action-close-window":this.handleSignalActionCloseWindow};_.G5(_.o_.getInstance(),F,this.JSC$12226_clientRoot)},e3c,MKM,gy_,QPX,R3z;
_.k(B3,KiM);B3.prototype.reload=function(){_.ao(window.location.href)};
var IMB=function(F){F.currentEndpoint&&_.D(F.currentEndpoint,_.DP)?F.reload():F.currentEndpoint&&F.navigate(F.currentEndpoint,!0,void 0,{disableCache:!0})};
B3.prototype.navigate=function(F,W,E,h,d,V,R,M){W=W===void 0?!1:W;E=E===void 0?{}:E;h=h===void 0?{}:h;var g=_.WZ().resolve(C1),t;if(!R&&waX(g,(t=this.currentEndpoint)!=null?t:void 0,F))return g.showConfirmationDialog(this.JSC$12226_clientRoot.parentElement,{endpoint:F,reload:W,params:E,tempData:h,requestType:d,createScreenConfig:V}),!1;var C=_.ip();_.rL(C,"eocs")||C.parkOrScheduleJob(function(){C.processSignal("eocs")},10,"eor");
R=Io(F);g=h.autonav==="1";t=_.JR();tL.instance||(tL.instance=new tL);var B=tL.instance.verifyUser(),I;if(_.c("enable_dark_theme_only_on_shorts")){var x=document.documentElement.hasAttribute("dark"),A=_.Oh(!0)==="USER_INTERFACE_THEME_DARK";if(R==="shorts"){if(!x)if(_.c("enable_dark_theme_only_on_shorts_control")){if(!window.location.href.includes("/shorts/")){var X;_.ao((X=_.D(F==null?void 0:F.commandMetadata,_.m1))==null?void 0:X.url,void 0,void 0,window.top)}}else{var P;_.ao(_.YF((P=_.D(F==null?
void 0:F.commandMetadata,_.m1))==null?void 0:P.url,{theme:"dark"}),void 0,void 0,window.top)}}else if(_.c("enable_dark_theme_only_on_shorts_control")){if(window.location.href.includes("/shorts/")&&!x){var b;_.ao(_.YF((b=_.D(F==null?void 0:F.commandMetadata,_.m1))==null?void 0:b.url,{themeRefresh:1}),void 0,void 0,window.top)}}else if(A!==x){var l;_.ao(_.YF((l=_.D(F==null?void 0:F.commandMetadata,_.m1))==null?void 0:l.url,{themeRefresh:1}),void 0,void 0,window.top)}}if(R==="watch"){if(Nx_(_.WZ().resolve(_.GF),
F)&&(B||_.c("fix_miniplayer_navigation_killswitch")))return!1;_.c("block_all_player_prefetch_requests")||(I=Bqc(_.zF(_.MX),F,g))}else{var w,G=(w=_.D(this.currentEndpoint,_.GM))==null?void 0:w.videoId;G&&_.Xb.getInstance().then(function(jk){jk&&jk.set("yt-miniplayer-shown-video-id",G)})}I&&(E.frags=I.missingFragments_.join(","));
X=null;var hr;P=(hr=_.D(F==null?void 0:F.commandMetadata,_.m1))==null?void 0:hr.ignoreNavigation;if(!P)if(_.c("kevlar_command_url")){var p;X=(p=_.D(F==null?void 0:F.commandMetadata,_.m1))==null?void 0:p.url}else X=_.PHo(F,E);if(X&&this.pendingNavigationPromise){if(this.lastNavigationUrl&&X==this.lastNavigationUrl)return _.$b({navigationRequestedSameUrl:!0}),!1;this.pendingNavigationPromise.cancel("canceled pendingNavigationPromise");_.xP(bI(),"CANCELLED")}X&&(this.lastNavigationUrl=X);d4e();_.OG("IS_HOMEPAGE_COLD",
!1);_.OG("IS_RESULTS_PAGE_COLD",!1);_.OG("IS_WATCH_PAGE_COLD",!1);F.loggingUrls&&F.loggingUrls.forEach(function(jk){jk.baseUrl&&_.iY(jk.baseUrl)});
_.XaY(F,V?V.layer:0)&&_.c("kevlar_flush_logs_on_away_navigation")&&_.JV();if(qUo(F))return!1;Wq_(R,d);if(!X)return P||_.OB(new _.xC("Can't construct url for endpoint",F)),_.xP(bI(),"FAILURE"),!1;_.IhY();hr=F&&_.D(F,_.BB)&&_.D(F,_.BB).browseId.startsWith("UC");E=(p=_.c("enable_dark_theme_only_on_shorts")&&R==="shorts"?!1:_.bb()&&document.documentElement.hasAttribute("dark")!==_.ff())?{themeRefresh:1}:{};p&&!_.IA()&&_.Oh()==="USER_INTERFACE_THEME_DARK"&&(E.theme="dark");hr=p||VKc(X)&&!hr&&!_.c("kevlar_disable_url_allowlist");
B||(hr=!0);if(hr||_.b0("DISABLE_WARM_LOADS")||this.resetWarmLoads){if(window.self!==window.top){try{var UY;var xW=(UY=window.top)==null?void 0:UY.location.href}catch(jk){var qw;xW=(qw=jk)==null?void 0:qw.message}_.OB(new _.xC("Attempting to redirect in iframe",{selfUrl:window.self.location.href,topUrl:xW}))}F=_.c("kevlar_redirect_on_window_killswitch")?window.top:window;Jg(X);_.ao(_.YF(X,E),void 0,void 0,F);_.xP(bI(),"ABORTED");return!1}_.c("kevlar_early_popup_close")&&_.dW(this.JSC$12226_clientRoot,
"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);this.pageFetcher.JSC$12208_chunkHandler=void 0;var Lb;xW=Io((Lb=this.currentEndpoint)!=null?Lb:void 0);(Lb=R==="shorts"&&xW==="shorts")||_.Nre();_.yn(YDG)("nr",void 0);g&&_.$b({webInfo:{navigationReason:"an"}});F.clickTrackingParams&&(h.itct=F.clickTrackingParams,h.csn=t);RPr(h);h.endpoint=JSON.stringify(F);_.c("enable_unknown_lact_fix_on_html5")&&(_.WZ().resolve(_.$Y),h.lact=_.hV());_.xd.isEmpty(h)||_.Sr(X,h);!_.c("disable_miniplayer_expansion_log")&&
this.isMiniplayerExpansion&&(V=Object.assign({},{layer:0},V,{parentLayer:3}));this.pendingNavigationPromise=V=pau(this.pageFetcher,F,h,this.currentEndpoint,this.JSC$12226_isNetworkPromiseStale.bind(this),V,M);V=V.then(this.handleNavigateSuccess.bind(this,V,F,I,h),this.handleNavigateFail.bind(this,V,F));_.DT().navigationFinishPromise=V;W={endpoint:F,pageType:R,url:U8(X),reload:!!W,noProgressBar:_.c("web_disable_page_navigation_progress")||Lb};d&&(W.type=d);this.fireEvent("yt-navigate-start",W);I&&
mhe(this.pageFetcher,F,I,h,this.currentEndpoint);return!0};
B3.prototype.JSC$12226_isNetworkPromiseStale=function(F){return F!=this.pendingNavigationPromise};
var UfO=function(F,W,E,h,d){var V=Io(W);W={endpoint:W,pageType:V};d&&(W.errorMessage=d);_.OB(E);W.navigationDoneMs=_.P5("nd");W.navigationErrorReason=h;F.fireEvent("yt-navigate-error",W)};
B3.prototype.handleNavigateFail=function(F,W,E){var h=void 0;E instanceof _.FR&&(h=E,Xeo(E));if(this.JSC$12226_isNetworkPromiseStale(F))return _.xT(h);_.xP(bI(),"FAILURE");UfO(this,W,E,"101");return _.xT(E)};
B3.prototype.handleNavigateSuccess=function(F,W,E,h,d){if(this.JSC$12226_isNetworkPromiseStale(F))return _.e7();this.pendingNavigationPromise=null;if(!d)return W=new _.xC("Missing data in response for navigation endpoint",W),_.xT(W);if(d.reload)return window.location.reload(!0),_.e7();E&&(F={},_.xd.extend(F,_.Crz(E),d),d=F);var V,R;E=(V=d)==null?void 0:(R=V.timing)==null?void 0:R.responseStart;E!=null&&_.P5("srt",E);_.P5("pdc");var M,g;V=(M=d)==null?void 0:(g=M.timing)==null?void 0:g.info;V!=null&&
(M=_.yn(_.pMo)(V),_.$b(M));_.xP(bI(),"SUCCESS");R3z(this,W,d,1,h);return _.e7()};
var VKc=function(F){var W=F;_.c("kevlar_no_redirect_to_classic_2_ks")||(W=(new _.Yx(F)).getPath());if(W==="/"||W==="/red")return!1;var E=!0;h3M.forEach(function(h){F.indexOf(h)===0&&(E=!1)});
dfB.forEach(function(h){var d=h.url;_.c(h.expFlag)&&F.indexOf(d)===0&&(E=!1)});
return E};
B3.prototype.publishPageData=function(F){this.fireEvent("yt-page-data-fetched",{pageData:F})};
e3c=function(F,W,E,h,d,V){var R=null;W.page!=="watch"||h?W.filler||_.dW(F.JSC$12226_clientRoot,"yt-stop-old-player",[W]):R=SUi(F.pageFetcher,d,W,E,!1,V,void 0,F.currentEndpoint);if(R)return R.then(F.publishPageData.bind(F,W));F.publishPageData(W);return _.e7()};
MKM=function(F,W,E){var h=null;if(!E)return h=new _.xC("Empty data",F.debugString,W);var d=E.response;if(!d)return h;var V={endpointType:Io(W)||"unknown"};d.responseContext?(d=d.responseContext.errors)&&(h=new _.xC("Errors in response context",F.debugString,W,d,V)):h=d.error||d.errorMetadata?new _.xC("Errors in response",F.debugString,W,d.error,d.errorMetadata,V):new _.xC("responseContext missing",F.debugString,W,Object.keys(d).sort().join(","),V);var R,M,g,t;if(F=E==null?void 0:(R=E.response)==null?
void 0:(M=R.responseContext)==null?void 0:(g=M.webResponseContextExtensionData)==null?void 0:(t=g.webResponseContextDebugData)==null?void 0:t.debugErrorMessages)for(R=0;R<F.length;R++);return h};
gy_=function(F){var W,E,h,d;return F==null?void 0:(W=F.response)==null?void 0:(E=W.responseContext)==null?void 0:(h=E.errors)==null?void 0:(d=h.error)==null?void 0:d["0"]};
QPX=function(F,W){var E;if(E=W.url&&!W.url.startsWith("/clip"))E=W.url,E=!_.c("webfe_parse_debug_param_in_resolveurl_service")&&F.searchDebugUrlMatcher.test(E)||OXW(E)?!0:!1;if(E)OXW(W.url)&&_.Gk(window.location.href).themeRefresh?(W=_.pg(W.url,"themeRefresh"),_.g7(F.historyManager,W)):W.url&&!tGb(W.url)&&_.g7(F.historyManager,W.url);else if(W.endpoint){var h,d,V;(E=(h=W.endpoint)==null?void 0:(d=h.commandMetadata)==null?void 0:(V=d.webCommandMetadata)==null?void 0:V.url)&&!tGb(E)&&_.g7(F.historyManager,
E);E&&W.url&&E!=W.url&&!W.url.match("playnext=1")&&new _.xC("Response url mismatch in response data",F.debugString,E,W.url)}};
_.z3T=function(F,W,E,h,d,V,R,M){V=V===void 0?!1:V;var g=_.WZ().resolve(C1),t;if(!M&&waX(g,(t=F.currentEndpoint)!=null?t:void 0,W))return g.showConfirmationDialog(F.JSC$12226_clientRoot.parentElement,{endpoint:W,data:E,navigationType:h,tempData:d,isMiniplayer:V,isForwardHistoryNavigation:R==null?void 0:R.forward}),_.e7();F.pageFetcher.JSC$12208_chunkHandler=void 0;return R3z(F,W,E,h,d,V)};
R3z=function(F,W,E,h,d,V){V=V===void 0?!1:V;F.isMiniplayerExpansion=V;var R=h===2;F.currentEndpoint=W;F.numNavigations++;F.numNavigations&&(uMG.navigationCount=F.numNavigations);_.OG("NUM_NAV",F.numNavigations);var M=MKM(F,W,E);if(M)return UfO(F,W,M,"102",gy_(E)),_.xT(M);var g,t,C,B;M=E.rootVe||(E==null?void 0:(g=E.response)==null?void 0:(t=g.responseContext)==null?void 0:(C=t.webResponseContextExtensionData)==null?void 0:(B=C.ytConfigData)==null?void 0:B.rootVisualElementType);!R&&E&&QPX(F,E);var I,
x;g=E==null?void 0:(I=E.response)==null?void 0:(x=I.responseContext)==null?void 0:x.maxAgeSeconds;if(!R&&!isNaN(g)){var A;_.c("kevlar_use_response_ttl_to_invalidate_cache")?A=(0,_.KU)()+1E3*g:_.c("kevlar_always_invalidate_cache")&&(A=0);isNaN(A)||(E.expirationTime=A)}_.c("html5_enable_ssap_entity_id")&&R&&E.playerResponse&&(E.playerResponse.cacheMetadata={isCacheHit:!0});_.zF(_.MX).prefetchCache_.clear();R||E.page!=="watch"||E.type!=="reduced"&&h!==1?h=e3c(F,E,R,!!V,W,d):(F.publishPageData(E),h=_.e7());
d=h.then(function(){var X=Io(W);X={endpoint:W,pageType:X,fromHistory:R,response:E};X.navigationDoneMs=_.P5("nd");F.fireEvent("yt-navigate-finish",X)});
E.csn&&M&&E.clientSideGrafts&&h.then(F.attachClientSideGrafts.bind(F,E,_.Pf()));return d};
_.N=B3.prototype;_.N.attachClientSideGrafts=function(F,W){F.clientSideGrafts&&W&&F.clientSideGrafts.forEach(function(E){if(W&&E){var h=_.ve(E);_.c("combine_ve_grafts")?_.z4().graftServerVe(E,W):_.y7(F.csn,W,h)}})};
_.N.handleSignalActionHistoryBack=function(){window.history.back()};
_.N.handleSignalActionCloseWindow=function(){window.close()};
_.N.handleSignalActionReloadPage=function(){this.reload()};
_.N.handleSignalActionSoftReloadPage=function(){IMB(this)};
_.N.handleSignalActionResetWarmLoads=function(){this.resetWarmLoads=!0};
_.N.fireEvent=function(F,W){F=new CustomEvent(F,{bubbles:!0,cancelable:!1,composed:!0,detail:W});this.dispatchEvent(F)};
_.N.addEventListener=function(F,W){this.JSC$12226_clientRoot.addEventListener(F,W)};
_.N.dispatchEvent=function(F){return this.JSC$12226_clientRoot.dispatchEvent(F)};
_.N.removeEventListener=function(F,W){this.JSC$12226_clientRoot.removeEventListener(F,W)};
B3[dr]=[EyB,_.QC];_.NKo=new q4("browse","h8y2qb");_.Vpn=new q4("search","JzFVk");_.UKo=new q4("shorts","xwEKAe");_.Ree=new q4("watchFixie","nmfa2d");_.een=new q4("watchFlexy","CF909");_.Mpn=new q4("watchGrid","Tm0L3c");_.gNI=new q4("watchLearningJourney","L3n37");var tKu;var v3=function(){return _.n.apply(this,arguments)||this};
_.k(v3,_.n);_.Sn.Object.defineProperties(v3,{template:{configurable:!0,enumerable:!0,get:function(){if(tKu===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-player--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-player">\n  \n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);tKu=F}F=tKu;return F}}});
_.T([_.J(CyO.YtPlayerBehavior),_.Y("design:type",Object)],v3.prototype,"ytPlayerBehavior",void 0);v3=_.T([_.y({is:"ytd-player"})],v3);var C$e;var BxH;var vyu;var IG=function(){var F=_.n.apply(this,arguments)||this;F.forceModernIconButton=!1;F.actionMap={"yt-account-linking-state-changed-command":"handleAccountLinkingStateChangedCommand","yt-signal-action-show-account-link-dialog":"handleShowAccountLinkDialog"};return F};
_.k(IG,_.n);IG.prototype.configureRendererStamper=function(){return{button:{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{forceIconButton:!0,styleActionButton:!0},properties:{overrides:"[[overrides]]",forceModernIconButton:"[[forceModernIconButton]]",disableTextTransform:"[[disableTextTransform]]",buttonTooltipPosition:"[[buttonTooltipPosition]]",forceIconButton:"[[forceIconButton]]"}}}}}};
IG.prototype.handleAccountLinkingStateChangedCommand=function(F){if(F=_.D(F,fZz)){var W,E=(W=this.data)==null?void 0:W.providerKey;W=F.providerKey;E&&W&&E.id===W.id&&E.subject===W.subject&&(F=F.linked,F!==void 0&&(this.set("data.linked",F),this.notifyPath("data.linked"),_.c("enable_account_linking_warning_account_link_button")&&(this.set("data.is_warning",!1),this.notifyPath("data.is_warning")),this.setPlayerAccountLinkState(F)))}};
IG.prototype.setPlayerAccountLinkState=function(F){var W=new UZn;Vvb(W,R8n(new e8Y,F));var E=_.WS();E&&E.getPlayerPromise().then(function(h){h.setAccountLinkState(_.FG(W.JSC$9977_serializeBinary(),4));h.updateAccountLinkingConfig(F)})};
IG.prototype.handleShowAccountLinkDialog=function(){var F=this.get("button.buttonRenderer.command");F&&_.gW([F],this.hostElement)};
_.Sn.Object.defineProperties(IG.prototype,{button:{configurable:!0,enumerable:!0,get:function(){if(this.data){if(this.data.linked&&this.data.warningButton&&this.data.isWarning)return this.data.warningButton;if(this.data.linked&&this.data.linkedButton)return this.data.linkedButton;if(!this.data.linked&&this.data.unlinkedButton)return this.data.unlinkedButton}}}});
_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],IG.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],IG.prototype,"ytRendererBehavior",void 0);_.T([_.J([_.FM.YtActionHandlerBehavior]),_.Y("design:type",Object)],IG.prototype,"actionHandlerBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],IG.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Object)],IG.prototype,"overrides",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],IG.prototype,"forceModernIconButton",void 0);_.T([_.O({value:"bottom"}),_.Y("design:type",String)],IG.prototype,"buttonTooltipPosition",void 0);_.T([_.O({value:!1}),_.Y("design:type",Boolean)],IG.prototype,"forceIconButton",void 0);_.T([_.O(),_.Y("design:type",Boolean)],IG.prototype,"disableTextTransform",void 0);
_.T([_.a("data","data.linked","data.isWarning"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],IG.prototype,"button",null);IG=_.T([_.y({is:"ytd-account-link-button-renderer",disableElementRegistration:!0})],IG);
_.r(IG,"ytd-account-link-button-renderer",function(){if(vyu!==void 0)return vyu;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-account-link-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="button" class="style-scope ytd-account-link-button-renderer"></div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return vyu=F},{mode:1});var Ig_;var c4H=["PLAYLIST_LOOP_STATE_ONE","PLAYLIST_LOOP_STATE_ALL"],c3=function(){return _.n.apply(this,arguments)||this};
_.k(c3,_.n);c3.prototype.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"bottom"},properties:{forceIconOnly:"[[forceIconOnly]]"}}}}}};
c3.prototype.updateButtonActiveState=function(){var F=this,W=!!c4H.find(function(E){return F.currentState===E});
this.button&&(this.button.isPressed=W)};
_.Sn.Object.defineProperties(c3.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){var F,W;return((F=this.playlistLoopStateEntity)==null?void 0:F.state)||((W=this.data)==null?void 0:W.currentState)}},
currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var F=void 0,W;if(this.currentState&&((W=this.data)==null?0:W.states)){W=_.U(this.data.states);for(var E=W.next();!E.done;E=W.next()){E=_.D(E.value,_.Fx_);var h=void 0;if(((h=E)==null?void 0:h.state)===this.currentState){F=E;break}}}return F}}});
c3.prototype.updateButtonActiveState=c3.prototype.updateButtonActiveState;_.T([_.J(_.am),_.Y("design:type",Object)],c3.prototype,"ytdReduxBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],c3.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],c3.prototype,"ytRendererstamperBehavior",void 0);
_.T([_.O({selectorArgs:["data.playlistLoopStateEntityKey"],selector:_.OJW}),_.Y("design:type",Object)],c3.prototype,"playlistLoopStateEntity",void 0);_.T([_.O(),_.Y("design:type",Object)],c3.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Boolean)],c3.prototype,"forceIconOnly",void 0);_.T([_.gQ("ytd-button-renderer"),_.Y("design:type",_.w5)],c3.prototype,"button",void 0);
_.T([_.a("data","playlistLoopStateEntity"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],c3.prototype,"currentState",null);_.T([_.ea("currentButtonStateRenderer"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],c3.prototype,"updateButtonActiveState",null);_.T([_.a("currentState"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],c3.prototype,"currentButtonStateRenderer",null);
c3=_.T([_.y({is:"ytd-playlist-loop-button-renderer",disableElementRegistration:!0})],c3);
_.r(c3,"ytd-playlist-loop-button-renderer",function(){if(Ig_!==void 0)return Ig_;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-loop-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="button" class="style-scope ytd-playlist-loop-button-renderer"></div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return Ig_=F},
{mode:1});var DfX;var xfX=_.CY("DOWNLOAD",{},"Download"),ku_=_.CY("DOWNLOADING",{},"Downloading"),A4_=_.CY("DOWNLOADED",{},"Downloaded"),sPB=_.CY("RETRY",{},"Retry"),Dj=function(){var F=_.n.apply(this,arguments)||this;F.forceIconButton=!1;F.forceIconOnly=!1;F.overrides=!1;F.buttonTooltipPosition=!1;F.styleActionButton=!1;F.disableTextTransform=!1;F.downloadProgress=0;F.isDownloadComplete=!1;F.isHidden=!0;F.transferState="TRANSFER_STATE_UNKNOWN";F.isVideoDeletedByUser=!1;F.offlineabilityState="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";
return F};
_.k(Dj,_.n);_.N=Dj.prototype;_.N.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.N.dataChanged=function(){var F;(F=this.data)!=null&&F.text||(F=_.ax(_.uC().getState(),this.videoId),this.updateButtonState(F))};
_.N.computeVideoId=function(F){return F};
_.N.showHideButton=function(){this.updateButtonVisibility()};
_.N.updateButtonVisibility=function(){this.disabled=this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!0:!1;this.isHidden=this.transferState!=="TRANSFER_STATE_UNKNOWN"?!1:this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0};
_.N.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.N.updateButtonState=function(F){if(this.data&&(this.ytRendererBehavior.getSimpleString(this.data.text)!==ku_||!_.cz(F))){this.updateButtonVisibility();this.isDownloadComplete=!1;switch(F){case "TRANSFER_STATE_UNKNOWN":F=xfX;var W="OFFLINE_DOWNLOAD";var E="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":F=sPB;W="OFFLINE_DOWNLOAD";E="ACTION_RETRY";break;case "TRANSFER_STATE_COMPLETE":F=A4_;W="OFFLINE_PIN";E="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_TRANSFERRING":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":F=
ku_;W="OFFLINE_DOWNLOADING_ZERO";E="ACTION_REMOVE_WITH_PROMPT";break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":F=sPB;W="OFFLINE_DOWNLOAD";E="ACTION_RETRY";break;default:F=xfX,W="OFFLINE_DOWNLOAD",E="ACTION_ADD"}this.isVideoDeletedByUser&&(F=xfX,W="OFFLINE_DOWNLOAD",E="ACTION_ADD");var h=Object.assign({},this.data);h.text=_.Gr(F);h.tooltip=F;h.icon={iconType:W};h.size="SIZE_DEFAULT";h.style="STYLE_DEFAULT";_.D(h.command,_.vS)&&(_.D(h.command,_.vS).action=E);this.set("data",h)}};
_.N.updateProgress=function(){if(this.data){this.isDownloadComplete=!1;var F="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?F="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?F="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?F="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?F="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<1?F="OFFLINE_DOWNLOADING_EIGHTY":
this.downloadProgress===1&&(F="OFFLINE_PIN",this.isDownloadComplete=!0);var W;F!==((W=this.data.icon)==null?void 0:W.iconType)&&(W=Object.assign({},this.data),W.text=_.Gr(ku_),W.tooltip=ku_,W.icon={iconType:F},_.D(W.command,_.vS)&&(_.D(W.command,_.vS).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",W))}};
Dj.prototype.updateProgress=Dj.prototype.updateProgress;Dj.prototype.onTransferStateChanged=Dj.prototype.onTransferStateChanged;Dj.prototype.showHideButton=Dj.prototype.showHideButton;Dj.prototype.dataChanged=Dj.prototype.dataChanged;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Dj.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.am),_.Y("design:type",Object)],Dj.prototype,"ytdReduxBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],Dj.prototype,"forceIconButton",void 0);
_.T([_.O(),_.Y("design:type",Object)],Dj.prototype,"forceIconOnly",void 0);_.T([_.O(),_.Y("design:type",Object)],Dj.prototype,"overrides",void 0);_.T([_.O(),_.Y("design:type",Object)],Dj.prototype,"buttonTooltipPosition",void 0);_.T([_.O(),_.Y("design:type",Object)],Dj.prototype,"styleActionButton",void 0);_.T([_.O(),_.Y("design:type",Object)],Dj.prototype,"disableTextTransform",void 0);
_.T([_.O({computed:"computeVideoId(data.command.offlineVideoEndpoint.videoId)"}),_.Y("design:type",String)],Dj.prototype,"videoId",void 0);_.T([_.O(),_.Y("design:type",Object)],Dj.prototype,"data",void 0);_.T([_.O({selector:O_,selectorArgs:["videoId"]}),_.Y("design:type",Object)],Dj.prototype,"downloadProgress",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],Dj.prototype,"isDownloadComplete",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],Dj.prototype,"isHidden",void 0);_.T([_.O({selector:_.ax,selectorArgs:["videoId"]}),_.Y("design:type",String)],Dj.prototype,"transferState",void 0);_.T([_.O({selector:_.jHr,selectorArgs:["videoId"]}),_.Y("design:type",Object)],Dj.prototype,"isVideoDeletedByUser",void 0);_.T([_.O({selector:Oio,selectorArgs:["videoId"]}),_.Y("design:type",Object)],Dj.prototype,"offlineabilityState",void 0);
_.T([_.O({value:!0}),_.Y("design:type",Boolean)],Dj.prototype,"showTooltips",void 0);_.T([_.O({value:!0}),_.Y("design:type",Boolean)],Dj.prototype,"sendCommandWhenDisabled",void 0);_.T([_.O({value:!1}),_.Y("design:type",Boolean)],Dj.prototype,"disabled",void 0);_.T([_.Cz("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Dj.prototype,"dataChanged",null);
_.T([_.Cz("offlineabilityState"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Dj.prototype,"showHideButton",null);_.T([_.Cz("transferState","isVideoDeletedByUser"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Dj.prototype,"onTransferStateChanged",null);_.T([_.Cz("downloadProgress"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Dj.prototype,"updateProgress",null);
Dj=_.T([_.y({disableElementRegistration:!0,is:"ytd-download-button-renderer"})],Dj);
_.r(Dj,"ytd-download-button-renderer",function(){if(DfX!==void 0)return DfX;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-download-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data]]" disable-text-transform="[[disableTextTransform]]" disabled="[[disabled]]" force-icon-button="[[forceIconButton]]" force-icon-only="[[forceIconOnly]]" force-modern-icon-button="" overrides="[[overrides]]" style-action-button="[[styleActionButton]]" class="style-scope ytd-download-button-renderer"></ytd-button-renderer>');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return DfX=F},{mode:2});var LQB;var q$B,$fa=function(){if(q$B!==void 0)return q$B;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e<yt-button-shape data="[[computedButtonShape]]" icon-name="[[computedIcon]]">\n</yt-button-shape>\n<tp-yt-paper-tooltip disable-upgrade$="[[!tooltip]]" fit-to-visible-bounds="" offset="8" position="[[buttonTooltipPosition]]">[[tooltip]]</tp-yt-paper-tooltip>\n');return q$B=F};var ZGO=_.c("web_button_rework")&&_.l0("BUTTON_REWORK")||_.c("web_button_rework_with_live"),XCX=_.dV("dynamic_metadata_update_interaction_delay_period_sec",5)*1E3,xf=function(){var F=_.n.apply(this,arguments)||this;F.isPressed=!1;F.forceIconButton=!1;F.forceIconOnly=!1;F.forceModernIconButton=!1;F.alignByText=!1;F.isShorts=!1;F.animatedText=!1;F.shouldAnimate=!1;F.JSC$12264_browserSupportsAnimation=_.c("web_supports_animations_api");F.actionMap={"yt-update-toggle-button-text-action":"handleUpdateToggleButtonTextAction",
"yt-update-toggle-button-state-command":"handleUpdateToggleButtonStateCommand"};F.onTap=function(){var W;if((W=F.data)==null||!W.defaultNavigationEndpoint){var E;W=!((E=F.data)==null?0:E.isToggled);var h;if((h=F.data)==null||!h.preventAutoToggle){F.shouldAnimate=!1;F.disableTextUpdateJobId&&_.P0.cancelJob(F.disableTextUpdateJobId);F.disableTextUpdateJobId=_.P0.addLowPriorityJob(function(){F.disableTextUpdateJobId=void 0},XCX);
var d;F.set("data.isToggled",!((d=F.data)==null?0:d.isToggled));E=F.getInnertubeIcon();h={toggled:W,actions:{}};E&&(h.actions[E.toLowerCase()]=W);_.hF(F.hostElement,"yt-toggle-button",h)}}};
return F};
_.k(xf,_.n);_.N=xf.prototype;_.N.resetAnimation=function(){this.shouldAnimate=!1;this.disableTextUpdateJobId&&(_.P0.cancelJob(this.disableTextUpdateJobId),this.disableTextUpdateJobId=void 0)};
_.N.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.N.toggle=function(F){var W;this.set("data.isToggled",F!==void 0?F:!((W=this.data)==null?0:W.isToggled))};
_.N.handleUpdateToggleButtonStateCommand=function(F){if(this.data){F=_.D(F,ocH);var W,E,h,d=(W=this.data)==null?void 0:(E=W.toggleButtonSupportedData)==null?void 0:(h=E.toggleButtonIdData)==null?void 0:h.id;d&&F&&d===(F==null?void 0:F.buttonId)&&this.set("data.isToggled",F.toggled)}};
_.N.handleUpdateToggleButtonTextAction=function(F){if(this.data){F=_.D(F,kYM);var W,E,h,d=(W=this.data)==null?void 0:(E=W.toggleButtonSupportedData)==null?void 0:(h=E.toggleButtonIdData)==null?void 0:h.id;d&&F&&d===(F==null?void 0:F.buttonId)&&!this.disableTextUpdateJobId&&(this.shouldAnimate=!0,this.textNumberValue=F.defaultNumericalValue,this.set("data.defaultText",F.defaultText),this.set("data.toggledText",F.toggledText),this.shouldAnimate=!1)}};
_.N.getInnertubeIcon=function(){var F=this.data;if(F){var W,E,h=((W=F.defaultIcon)==null?0:W.iconType)?(E=F.defaultIcon)==null?void 0:E.iconType:null,d,V;W=((d=F.toggledIcon)==null?0:d.iconType)?(V=F.toggledIcon)==null?void 0:V.iconType:h;return F.isToggled?W:h}};
_.N.computeTooltip=function(){return this.data?this.data.isToggled&&this.data.toggledTooltip||this.data.defaultTooltip||null:null};
_.Sn.Object.defineProperties(xf.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var F={renderer:this.data,element:this.hostElement,toggled:!!this.data.isToggled,onTapCallback:this.onTap,overrides:this.overrides,forceIcon:this.forceIconButton||this.forceIconOnly,forceModernIconButton:this.forceModernIconButton,forceDisabled:this.disabled,nextVersion:!0,useAnimatedText:this.animatedText&&this.JSC$12264_browserSupportsAnimation,animatedTextProps:{numberText:"",
numberValue:Number(this.textNumberValue),heightPx:36,shouldAnimate:this.shouldAnimate}};var W=F.renderer;var E=F.element;var h=F.toggled;var d=F.onTapCallback;var V=F.commandClientArgs;var R=F.overrides;var M=F.forceIcon;var g=F.forceModernIconButton;var t=F.forceDisabled;var C=F.useAnimatedText;var B=F.animatedTextProps;F=yOG(W,h);M=!W.defaultIcon||!M&&W.defaultText?W.defaultIcon?"leading":void 0:g?"icon-only":"icon-only-40";M==="icon-only-40"&&(F.type="text");var I;g=Object;var x=g.assign,A;a:switch((A=
W.style)==null?void 0:A.styleType){case "STYLE_COMPACT_GRAY":A={size:"S"};break a;default:A={size:"M"}}var X=!!h;var P=(P=h&&W.toggledText||W.defaultText)?_.qr(P):void 0;C?(C=_.Yr(h&&W.toggledText||W.defaultText))&&B&&!isNaN(Number(B.numberValue))?(B.numberText=C,h&&(B.numberValue+=1),C=B):C=void 0:C=void 0;var b,l,w,G;var hr=(B=((l=h?W.toggledAccessibilityData||((hr=W.toggledText)==null?void 0:hr.accessibility):W.accessibilityData||((b=W.defaultText)==null?void 0:b.accessibility))==null?void 0:(w=
l.accessibilityData)==null?void 0:w.label)||((G=W.accessibility)==null?void 0:G.label))?B:_.Yr(h&&W.toggledText||W.defaultText);t=t===void 0?W.isDisabled:t;E=n2Y(W,h,d,E,V);h=lhI(W,h);h!=null&&h.length?(h=_.Jm({innertubeCommand:JIR(h),forceNewState:!0}),h=au(h)?h:void 0):h=void 0;W=x.call(g,{},F,A,{iconPosition:M},R,{focused:!1,toggled:X,toggleable:!0,formattedButtonText:P,animatedTextProps:C,accessibilityLabel:hr,disabled:t,onTap:E,aTagConfig:h},h$Y((I=W.colorData)==null?void 0:I.basicColorPaletteData));
W.alignByText=this.alignByText;this.isShorts&&this.data.isToggled&&(W.type="filled");return W}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var F=this.getInnertubeIcon();if(F)return _.Vd(F)}}});
xf.prototype.resetAnimation=xf.prototype.resetAnimation;_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],xf.prototype,"ytComponentBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],xf.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],xf.prototype,"ytActionHandlerBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],xf.prototype,"data",void 0);
_.T([_.O(),_.Y("design:type",Object)],xf.prototype,"isPressed",void 0);_.T([_.O(),_.Y("design:type",Object)],xf.prototype,"forceIconButton",void 0);_.T([_.O(),_.Y("design:type",Object)],xf.prototype,"forceIconOnly",void 0);_.T([_.O(),_.Y("design:type",Object)],xf.prototype,"forceModernIconButton",void 0);_.T([_.O(),_.Y("design:type",Object)],xf.prototype,"alignByText",void 0);_.T([_.O(),_.Y("design:type",Object)],xf.prototype,"overrides",void 0);
_.T([_.O(),_.Y("design:type",Boolean)],xf.prototype,"disabled",void 0);_.T([_.O(),_.Y("design:type",Object)],xf.prototype,"isShorts",void 0);_.T([_.O(),_.Y("design:type",Object)],xf.prototype,"buttonTooltipPosition",void 0);_.T([_.O(),_.Y("design:type",Object)],xf.prototype,"animatedText",void 0);_.T([_.O(),_.Y("design:type",String)],xf.prototype,"textNumberValue",void 0);_.T([_.O({computed:"computeTooltip(data, data.isToggled)"}),_.Y("design:type",Object)],xf.prototype,"tooltip",void 0);
_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],xf.prototype,"resetAnimation",null);_.T([_.a("data.*","forceIconButton","forceIconOnly","forceModernIconButton","alignByText","overrides","disabled","isShorts"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],xf.prototype,"computedButtonShape",null);_.T([_.a("data.*"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],xf.prototype,"computedIcon",null);
xf=_.T([_.y({is:"ytd-toggle-button-renderer",disableElementRegistration:!0,cssBuildOptOut:!0})],xf);ZGO&&_.r(xf,"ytd-toggle-button-renderer",$fa,{mode:_.E6("kevlar_poly_si_batch_j081")?1:2});var SUn=[],par=!1;_.ht(FQR);var HGT=_.GK(function(F){function W(t){var C;return _.e(function(B){if(B.nextAddress==1)return(C=!rOe(t,M())||!M().enabled)?B.jumpTo(2):_.Q(B,waY(),3);B.nextAddress!=2&&(C=B.yieldResult);if(C)return B.return();E();setTimeout(function(){R(!1)},1500);
_.gG(B)})}
function E(){setTimeout(function(){R(!0);var t;(t=h.lottieEl)==null||t.goToAndPlay(0)},150)}
var h=_.tG(),d=_.U(_.g$(!1,void 0,"xffAp")),V=d.next().value,R=d.next().value,M=_.TK(F.settings,{uniqueId:"this is not intended behavior",enabled:!1,experimentEnabled:!1,timings:[]});_.Xk(function(){var t,C;((t=F.settings)==null?void 0:(C=t.call(F))==null?void 0:C.uniqueId)==="this is not intended behavior"&&_.OB(new _.xC("Smartimation Settings is undefined"))});
_.q6(function(){M().experimentEnabled&&(M().enabled?TzI(W):(R(!1),o2o(W)),_.$p(function(){o2o(W)}))});
_.q6(function(){M().timings.join("");M().experimentEnabled&&(G1Y(M()),_.$p(function(){YUo(M())}))});
var g=_.vX(function(){return jCe(h,M())},void 0,"d96jJc");
d={};return _.z("yt-smartimation",{class:_.ec(F.className,"smartimation",(d["smartimation--experiment-enabled"]=function(){return M().experimentEnabled},d["smartimation--active-border"]=V,d["smartimation--enable-masking"]=WQS(),d))},_.z(_.v,{cond:function(){return M().experimentEnabled},
then:function(){return _.z("div",{class:"smartimation__border"},_.z(_.Mj,{className:"smartimation__border-gradient",data:g,animationName:function(){return g().animationConfig.name}}))}}),_.z("div",{class:"smartimation__content"},F.children))},"x"),ypR=_.c("web_enable_sink_smartimations")?HGT:FQR,P$i=_.c("web_enable_sink_smartimations")?HGT:_.Qt(FQR);
HGT.idomCompat=!0;_.c("web_enable_sink_smartimations")?_.pK(P$i,"yt-smartimation",{props:{className:_.TS,settings:_.TS}}):_.Nj(ypR,"yt-smartimation",{propNames:["className","settings"]});var kf=function(){var F=_.n.apply(this,arguments)||this;F.likeButtonOverride={segmentedPosition:"start",style:"mono",type:"tonal"};F.dislikeButtonOverride={iconPosition:"icon-only",segmentedPosition:"end",style:"mono",type:"tonal"};F.shouldEnableSmartimation=!1;return F};
_.k(kf,_.n);kf.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
kf.prototype.onDataChanged=function(){var F,W;this.shouldEnableSmartimation=(((F=this.data)==null?void 0:(W=F.timedAnimationData)==null?void 0:W.animationTiming)||[]).length>0&&!this.isLikeOrDisliked()};
kf.prototype.isLikeOrDisliked=function(){if(!this.data)return!1;var F=_.D(this.data.likeButton,_.iE),W=_.D(this.data.dislikeButton,_.iE);return!!((F==null?0:F.isToggled)||(W==null?0:W.isToggled))};
kf.prototype.configureRendererStamper=function(){return{"data.likeButton":{id:"segmented-like-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[likeButtonOverride]]"}},toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{overrides:"[[likeButtonOverride]]",animatedText:"[[true]]",textNumberValue:"[[data.likeCount]]"}}}},"data.dislikeButton":{id:"segmented-dislike-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[dislikeButtonOverride]]"}},
toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{overrides:"[[dislikeButtonOverride]]"}}}}}};
_.Sn.Object.defineProperties(kf.prototype,{smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var F,W,E=((F=this.data)==null?void 0:(W=F.timedAnimationData)==null?void 0:W.animationTiming)||[];return{uniqueId:"like-dislike",timings:E,enabled:this.shouldEnableSmartimation,experimentEnabled:E.length>0}}}});
kf.prototype.onDataChanged=kf.prototype.onDataChanged;_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],kf.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],kf.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],kf.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Object)],kf.prototype,"likeButtonOverride",void 0);_.T([_.O(),_.Y("design:type",Object)],kf.prototype,"dislikeButtonOverride",void 0);
_.T([_.a("shouldEnableSmartimation"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],kf.prototype,"smartimationSettings",null);_.T([_.ea("data"),_.R4("yt-toggle-button"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],kf.prototype,"onDataChanged",null);kf=_.T([_.y({disableElementRegistration:!0,is:"ytd-segmented-like-dislike-button-renderer"})],kf);
_.r(kf,"ytd-segmented-like-dislike-button-renderer",function(){if(LQB!==void 0)return LQB;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-segmented-like-dislike-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-smartimation settings="[[smartimationSettings]]" class="style-scope ytd-segmented-like-dislike-button-renderer"><div id="segmented-buttons-wrapper" class="style-scope ytd-segmented-like-dislike-button-renderer"><div id="segmented-like-button" class="style-scope ytd-segmented-like-dislike-button-renderer"></div><div id="segmented-dislike-button" class="style-scope ytd-segmented-like-dislike-button-renderer"></div></div></yt-smartimation>');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return LQB=F},{mode:1});var J4c;var agB;(agB=document.body)==null||agB.setAttribute("rounded-container","");var fgO={};fgO.YtToggleButtonBehavior=[_.FM.YtActionHandlerBehavior,zf.YtRenderButtonBehavior,{_noAccessors:!0,properties:{data:Object},observers:["stateChanged_(data)","stateChanged_(data.isToggled)","stateChanged_(data.defaultText)","stateChanged_(data.toggledText)","stateChanged_(forceIconOnly)"],created:function(){this.toggleButtonActionMap_={"yt-update-toggle-button-text-action":"handleUpdateToggleButtonTextAction_","yt-update-toggle-button-state-command":"handleUpdateToggleButtonStateCommand_"}},
attached:function(){this.registerActionMap(this.toggleButtonActionMap_)},
detached:function(){this.unregisterActionMap(this.toggleButtonActionMap_)},
onYtToggleButtonTapHandler:function(){},
onYtButtonTapHandler:function(){var F=this.data.isToggled;if(!this.isModal_(F)){if(!this.data.preventAutoToggle){this.toggle();var W={toggled:this.data.isToggled,actions:{}};W.actions[this.buttonIcon]=this.data.isToggled;_.hF(this.hostElement,"yt-toggle-button",W)}W=this.data.defaultServiceEndpoint||null;var E=this.data.toggledServiceEndpoint||null;if(W&&E||W&&this.data.preventAutoToggle)F=F?E:W,W=this.disableCommandHandlerOverride,_.c("killswitch_toggle_button_behavior_resolve_command")||W?_.UT(this.hostElement,
[F]):_.ei(F,this.hostElement),_.hF(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:F})}},
stateChanged_:function(){var F=this.data;if(F){var W=F.isToggled;this._setEndpoint(this.computeEndpoint_(F));this._setServiceEndpoint(this.computeServiceEndpoint_(F));this._setButtonIcon(this.computeButtonIcon_(F,W));this._setButtonText(this.computeButtonText_(F,W));this._setButtonAccessibility(this.computeAccessibility_(F,W));this._setButtonTooltip(this.computeTooltip_(F,W));this._setButtonClass(this.computeButtonClass_(F,W));this._setIconPositionType(this.computeIconPositionType_(F));this.updateRenderedElements();
this.elements_.button&&(this.elements_.button.is==="yt-icon-button"?(this.elements_.button.toggleable=!0,this.elements_.button.pressed=W):this.elements_.button.setAttribute("aria-pressed",W));this.elements_.icon&&this.shouldSetIconActiveState_()&&(this.elements_.icon.active=W)}},
shouldSetIconActiveState_:function(){return _.c("kevlar_system_icons")},
toggle:function(F){this.set("data.isToggled",F!==void 0?F:!this.data.isToggled);_.c("web_toggle_button_force_update_killswitch")||this.notifyPath("data.isToggled")},
isModal_:function(F){if(F){var W,E;return!!((W=this.data)==null?0:(E=W.toggledServiceEndpoint)==null?0:E.confirmDialogEndpoint)}return!!this.endpoint&&(!!this.endpoint.modalEndpoint||!!this.endpoint.shareEndpoint||!!this.endpoint.shareEntityEndpoint)},
computeEndpoint_:function(F){return F&&F.defaultNavigationEndpoint||null},
computeButtonIcon_:function(F,W){var E=F&&F.defaultIcon?_.Vd(F.defaultIcon.iconType):null;F=F&&F.toggledIcon?_.Vd(F.toggledIcon.iconType):E;return W?F:E},
handleUpdateToggleButtonStateCommand_:function(F){F=F.updateToggleButtonStateCommand;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==F.buttonId&&this.toggle(F.toggled)},
computeButtonText_:function(F,W){return F?W&&F.toggledText||F.defaultText||null:null},
computeAccessibility_:function(F,W){return F?(W?this.get("toggledAccessibilityData.accessibilityData",F):this.get("accessibilityData.accessibilityData",F))||F.accessibility||null:null},
computeTooltip_:function(F,W){return F?W&&F.toggledTooltip||F.defaultTooltip||null:null},
computeButtonClass_:function(F,W){if(!F)return"";var E="",h=F.toggledStyle||F.style;if(W=W?h:F.style){W.styleType&&(W=W.styleType);try{E+=W.toLowerCase().replace(/_/g,"-")+" "}catch(d){_.bf(d,W,typeof W),_.OB(d)}}if(F=F.size){F.sizeType&&(F=F.sizeType);try{E+=F.toLowerCase().replace(/_/g,"-")+" "}catch(d){_.bf(d,F,typeof F),_.OB(d)}}return E.trim()},
computeIconPositionType_:function(F){return F&&F.iconPosition||null},
computeServiceEndpoint_:function(F){var W=F&&F.serviceEndpoint,E=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return W?W:E&&F.command?F.command:null},
handleUpdateToggleButtonTextAction_:function(F){F=F.updateToggleButtonTextAction;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==F.buttonId&&(this.set("data.defaultText",F.defaultText),this.notifyPath("data.defaultText"),this.set("data.toggledText",F.toggledText),this.notifyPath("data.toggledText"))}}];_.Hr("sharingToggleButtonAndDefaultButton","toggleButtonRenderer",{component:"ytd-toggle-button-renderer",params:{noink:!0}});var OG_=_.c("web_button_rework")&&_.l0("BUTTON_REWORK")||_.c("web_button_rework_with_live"),AL=function(){var F=_.n.apply(this,arguments)||this;F.systemIcons=_.c("kevlar_system_icons");F.roundedContainer=!0;return F};
_.k(AL,_.n);AL.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
AL.prototype.onYtButtonTapHandler=function(){if(!this.ytToggleButtonBehavior.isModal_()){var F=this.data.isToggled;if(!this.data.preventAutoToggle){this.ytToggleButtonBehavior.toggle();var W={toggled:!!this.data.isToggled,actions:{}};W.actions[this.ytToggleButtonBehavior.buttonIcon]=this.data.isToggled;var E,h;W.actions.playlistId=(E=this.data.defaultServiceEndpoint)==null?void 0:(h=E.playlistEditEndpoint)==null?void 0:h.playlistId;_.hF(this.hostElement,"yt-toggle-button",W)}(F=F?this.data.toggledServiceEndpoint:
this.data.defaultServiceEndpoint)&&this.ytComponentBehavior.resolveCommand(F)}};
AL.prototype.onYtNavigate=function(F){var W=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(F.detail.endpoint);W&&(F.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(W))};
_.Sn.Object.defineProperties(AL,{template:{configurable:!0,enumerable:!0,get:function(){if(J4c===void 0){var F=document.createElement("template");_.L(F,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-toggle-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n");F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);J4c=F}F=J4c;return F}}});
AL.prototype.onYtNavigate=AL.prototype.onYtNavigate;_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],AL.prototype,"ytComponentBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],AL.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Gf),_.Y("design:type",Object)],AL.prototype,"ytdOpenPopupBehavior",void 0);_.T([_.J(fgO.YtToggleButtonBehavior),_.Y("design:type",Object)],AL.prototype,"ytToggleButtonBehavior",void 0);
_.T([_.O(),_.Y("design:type",Object)],AL.prototype,"data",void 0);_.T([_.O({value:!0}),_.Y("design:type",Boolean)],AL.prototype,"showTooltips",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],AL.prototype,"systemIcons",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],AL.prototype,"roundedContainer",void 0);_.T([_.R4("yt-navigate"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],AL.prototype,"onYtNavigate",null);
AL=_.T([_.y({is:"ytd-toggle-button-renderer",disableElementRegistration:OG_})],AL);var bGi;_.sL=new _.NG("PANEL_CONTROLLER_TOKEN");_.L1=new _.NG("SHEET_CONTROLLER_TOKEN");_.qu=new _.NG("DIALOG_CONTROLLER_TOKEN");bGi=new _.NG("DIALOG_CONTAINER_TOKEN");var MKo=_.CY("DOWNLOAD",{},"Download"),gyS=_.CY("DOWNLOADING",{},"Downloading"),QPY=_.CY("DOWNLOADED",{},"Downloaded"),z3b=_.CY("RETRY",{},"Retry");var lgz=_.GK(function(F){var W=xfY,E=function(){return""},h=vyr(F.data),d=IgS(F.data),V=c4k(F.data),R=DfY(F.data);
W=function(){var M=F.data(),g=R3R(M,h(),d(),V(),R()),t=!!M.videoId,C=g.text;return{title:t?C:void 0,tooltip:t?void 0:C,accessibilityText:C,onTap:g.onTap,iconName:g.iconType,style:M.butonStyle,type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:g.disabled?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:M.buttonSize}};
E={};E=_.ec("ytDownloadButtonViewModelHost",(E.ytDownloadButtonViewModelIsHidden=function(){var M=F.data(),g=R();return M.playlistId||g()==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||g()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0},E));
return _.z("download-button-view-model",{class:E},_.z(_.rk,{data:W}))},"y");
lgz.idomCompat=!0;_.ht(sPW);_.ht(kuo);var y4B=_.GK(function(F){var W=F.backgroundLottieRef;var E=F.foregroundLottieRef;var h=F.children;var d=F.wrapperClass;var V=F.disableAnimation;F=function(){return(_.c("web_animated_actions")||_.c("web_animated_actions_v2"))&&!(V==null?0:V())};
return _.z("yt-animated-action",{class:_.ec("animated-action__container",d)},_.z("div",{class:"animated-action__content-with-background"},_.z(_.v,{cond:F,then:function(){return _.z(nye,{wrapperClass:"animated-action__background-container",lottieClass:"animated-action__background",lottiePlayerProps:function(){return{animationRef:W==null?void 0:W(),animationConfig:{name:"animated-actions-background",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_container_"+
(LQW()?"dark":"light")+"_v5.json"}}}})}}),h),_.z(_.v,{cond:F,
then:function(){return _.z(nye,{lottiePlayerProps:function(){return{animationRef:E==null?void 0:E(),animationConfig:{name:"animated-actions-foreground",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_sparkles_"+(LQW()?"dark":"light")+"_v4.json"}}}})}}))},"z");
y4B.idomCompat=!0;var EXe=_.c("web_enable_sink_animated_actions")?y4B:sPW,jPi=_.c("web_enable_sink_animated_actions")?y4B:_.Qt(sPW),nye=_.GK(function(F){var W=F.wrapperClass;var E=F.lottieClass;var h=F.lottiePlayerProps;return _.z("div",{class:_.ec("animated-action__lottie",W),"aria-hidden":"true"},_.z(_.Mj,{className:E,data:h,animationName:function(){return h().animationConfig.name}}))},"A");var q$W={isOpen:!1};var ZGG={isAllowed:!1};var HGb={errorMessage:"",title:"",privacy:"",isDisabled:!0};var J4I={isOpen:!1};var fgG={isFullscreen:!1,topPanelId:void 0,navigationButtons:{},secondaryHeader:{}};var iGM={response:void 0};var bGn=function(F,W){F=F===void 0?iGM:F;switch(W.type){case "LOCATION_COLLECTION_RESPONSE_CHANGE":return Object.assign({},F,{response:W.payload});default:return F}};var r4B={nextCommand:void 0,nextDisabled:!1,footerSubmissionData:void 0,isImpersonationValid:!1};var lgR=function(F,W){F=F===void 0?r4B:F;switch(W.type){case "REPORT_CHANNEL_NEXT_DISABLED_CHANGE":return Object.assign({},F,{nextDisabled:W.payload});case "REPORT_CHANNEL_NEXT_COMMAND_CHANGE":return Object.assign({},F,{nextCommand:W.payload});case "REPORT_CHANNEL_MODAL_FOOTER_RENDERER_SUBMISSION_DATA_CHANGE":return Object.assign({},F,{footerSubmissionData:W.payload});case "REPORT_CHANNEL_NEXT_IMPERSONATION_VALIDITY_CHANGE":return Object.assign({},F,{isImpersonationValid:W.payload});default:return F}};var TxT={reportFormData:void 0,reportDetailsFormData:void 0};var nyY=function(F,W){F=F===void 0?TxT:F;switch(W.type){case "REPORT_FORM_MODAL_RENDERER_DATA_CHANGE":return Object.assign({},F,{reportFormData:W.payload});case "REPORT_DETAILS_FORM_RENDERER_DATA_CHANGE":return Object.assign({},F,{reportDetailsFormData:W.payload});default:return F}};var oyp=void 0;_.c("mweb_enable_redux_store_on_demand")||(oyp=new wR(y4W()));var Wkb=_.GK(function(F){F=_.o4(F,{themeOverride:void 0,animationRef:{}});var W=F.animatedIconType,E=F.active,h=F.themeOverride,d=F.animationRef;F=F.staticIconFn;var V=_.U(_.g$(void 0,void 0,"P5a72b")),R=V.next().value,M=V.next().value,g=function(){a:{var P=W();var b=h==null?void 0:h();var l;b=(b==null?void 0:b.useDarkTheme)||((l=_.WZ().resolve(_.Fd(_.nK)))==null?void 0:l());switch(P){case "LIKE":b:{oyp||(oyp=new wR(y4W()));if((P=ydR(oyp.getState()))&&P.animationStyle)switch(P.animationStyle){case "ANIMATED_LIKE_ICON_ANIMATION_STYLE_VALENTINE25_DELHI":P=
iGo({name:b?"valentines25_heart_dark":"valentines25_heart_light",path:b?"animated_like_valentines25_heart_dark_v5":"animated_like_valentines25_heart_light_v5",totalFrames:60});break b;case "ANIMATED_LIKE_ICON_ANIMATION_STYLE_VALENTINE25_BROKEN_HEART_DELHI":P=iGo({name:b?"valentines25_broken_heart_dark":"valentines25_broken_heart_light",path:b?"animated_like_valentines25_broken_heart_dark_v5":"animated_like_valentines25_broken_heart_light_v5",totalFrames:60});break b;case "ANIMATED_LIKE_ICON_ANIMATION_STYLE_YOUTUBE_BIRTHDAY_DELHI":P=
iGo({name:b?"youtube_20th_birthday_dark":"youtube_20th_birthday_light",path:b?"animated_like_youtube_20th_birthday_dark":"animated_like_youtube_20th_birthday_light",totalFrames:60});break b}P=void 0}if(P){b=P;break a}b="animated_like_icon_"+(b?"dark_v4":"light_v4");b={lottiePlayerProps:{animationConfig:{name:b,path:jPn("animated_like_icon",b),loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"animated-like-icon"}}},totalFrames:60,lazyLoad:!0};break a;case "NOTIFICATION_BELL":b={lottiePlayerProps:{animationConfig:{name:b?
"notification_bell_dark":"notification_bell_light",path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_"+(b?"dark":"light")+".json",loop:!1,autoplay:!1,rendererSettings:{className:"animated-subscribe-icon"}}},totalFrames:79,lazyLoad:!1};break a}b=void 0}return b},t=function(){var P,b;
return(b=(P=g())==null?void 0:P.lottiePlayerProps.animationConfig.name)!=null?b:""},C=function(){if(g()){var P=g().lottiePlayerProps.animationConfig.path;
return R3.get(P)||R()}};
V=_.U(_.g$(!1,void 0,"h6xR3c"));var B=V.next().value;V=V.next().value;var I=Txb(V),x=function(){var P=g(),b,l,w;return(w=P==null?void 0:(b=P.lottiePlayerProps.animationConfig)==null?void 0:(l=b.rendererSettings)==null?void 0:l.className)!=null?w:""},A=void 0,X=void 0;
_.q6(function(){var P=g(),b=t(),l=C(),w=B(),G=E();if(P&&(X!==b&&(X=b,A=G,b=d(),I.animationConfig=P.lottiePlayerProps.animationConfig,I.animationRef=b,l&&(I.animationConfig.animationData=l,I.animationConfig.path=void 0),b=P.lottiePlayerProps.animationConfig.path,!R3.get(b)&&P.lazyLoad&&b&&r4W(b,M)),!(w||P.lazyLoad&&!l))){if(l=!d().lottieEl)G?(w=P.totalFrames,I.animationConfig.initialSegment=[w-1,w]):I.animationConfig.initialSegment=void 0;if(A!==G&&!l)if(l=d(),G){var hr;(hr=l.lottieEl)==null||hr.playSegments([0,
P.totalFrames],!0)}else{var p;(p=l.lottieEl)==null||p.playSegments([0,1],!0)}A=G}});
return _.z("animated-icon",{class:"ytAnimatedIconHost"},_.z(_.v,{cond:function(){var P,b;return!((P=g())==null||!P.lottiePlayerProps.animationConfig.path||((b=g())==null?0:b.lazyLoad)&&!C()||B())},
then:function(){return _.z(_.Mj,{data:I,animationName:t,className:x,animationRef:d})},
else:F}))},"B");_.ht(hEY);var GuO,wCa;GuO=_.GK(function(F){var W=_.uf(),E=_.uf(),h=_.uf(),d=_.tG(),V=_.tG(),R=_.tG(),M=_.D1(MY,function(){return F.data().stateEntityStoreKey}),g=_.D1(HJG,function(){var dc,VM;
return(VM=(dc=F.data().notificationStateEntityStoreKeys)==null?void 0:dc.subsNotificationStateKey)!=null?VM:""}),t=function(){return!F.data().enableSubscribeButtonPostClickAnimation},C=_.U(_.g$(0,void 0,"j8TVGc")),B=C.next().value,I=C.next().value;
C=_.U(_.g$(0,void 0,"LYLUoe"));var x=C.next().value,A=C.next().value;C=_.U(_.g$(!1,void 0,"CXkJEf"));var X=C.next().value,P=C.next().value;C=_.U(_.g$(!1,void 0,"OWieEd"));var b=C.next().value,l=C.next().value;C=_.U(_.g$(!1,void 0,"bHcaje"));var w=C.next().value,G=C.next().value,hr;C=_.U(_.g$(!1,void 0,"Cjx6se"));var p=C.next().value,UY=C.next().value,xW=function(){l(!0);_.qY(_.P0,function(){l(!1)},1500)};
_.q6(function(){var dc=b();M6(function(){dc&&!t()&&M()&&eEw(d,V,R)})});
_.q6(function(){var dc=M();M6(function(){if(!t()&&dc){var VM;((VM=F.animateWidth)==null?0:VM.call(F))&&REr(W.value,!!dc.subscribed,B(),x());var Z_,MU;((Z_=hr)==null?0:Z_.subscribed)||!dc.subscribed||dc.key!==((MU=hr)==null?void 0:MU.key)||xW();hr=dc}})});
C=_.vX(function(){var dc,VM,Z_,MU=F.data(),Ef=!((dc=M())==null||!dc.subscribed);dc=!((VM=F.isOverlay)==null||!VM.call(F));VM=X()?W.value:void 0;var kR=(Z_=g())==null?void 0:Z_.state;Z_=p();U9Y(MU,kR);return xV({model:MU,subscribed:Ef,isOverlay:dc,element:VM,notificationState:kR,disableTextEllipsis:!0,focused:Z_})},void 0,"g67gvb");
var qw=function(){var dc;if(!t()&&((dc=F.animateWidth)==null?0:dc.call(F))&&(E==null?0:E.value)&&(h==null?0:h.value)&&!w()){dc=M();var VM=_.U((dc==null?0:dc.subscribed)?[E,h]:[h,E]),Z_=VM.next().value;VM=VM.next().value;Z_=Math.ceil(Z_.value.getBoundingClientRect().width);VM=Math.ceil(VM.value.getBoundingClientRect().width);I(Z_);A(VM);REr(W.value,!(dc==null||!dc.subscribed),Z_,VM);G(!0)}},Lb=_.tb(function(dc){qw();
var VM=M();VM&&(dc.detail.endpoint.subscribeEndpoint||dc.detail.endpoint.unsubscribeEndpoint)&&NJr(W.value,!VM.subscribed,VM)}),jk=function(){var dc=_.WZ().resolve(_.Fd(_.$V));
dc&&UY(dc.isKeyBoardInUse())},Jr=function(){UY(!1)};
_.w3("yt-player-subscribe",function(dc){var VM=M();VM&&dc===F.data().channelId&&NJr(W.value,!0,VM)});
_.w3("yt-player-unsubscribe",function(dc){var VM=M();VM&&dc===F.data().channelId&&NJr(W.value,!1,VM)});
_.w3("yt-update-subscribe-button-action",function(dc){dc=_.D(dc,Fko);var VM=M();VM&&dc&&dc.channelId===F.data().channelId&&NJr(W.value,!!dc.subscribed,VM)});
_.Xk(function(){W.value&&(W.value.addEventListener("focusin",jk),W.value.addEventListener("focusout",Jr));var dc=_.sB(_.P0,function(){qw()});
P(!0);_.$p(function(){_.P0.cancelJob(dc);W.value&&(W.value.removeEventListener("focusin",jk),W.value.removeEventListener("focusout",Jr))})});
var nb=function(){var dc,VM,Z_;if(Z_=!((dc=M())==null||!dc.subscribed))dc=!!F.data().disableNotificationBell,Z_=(VM=g())==null?void 0:VM.state,Z_=!dc&&!!Z_;return Z_},bo=function(){var dc;
return!((dc=M())==null?0:dc.subscribed)},uo=function(){var dc,VM;
if(VM=bo()){VM=!!F.data().disableNotificationBell;var Z_=(dc=g())==null?void 0:dc.state;VM=!VM&&!!Z_}return VM},b_={},BO={};
return _.z("yt-subscribe-button-view-model",{class:_.ec(F.className,"yt-subscribe-button-view-model-wiz",(b_["yt-subscribe-button-view-model-wiz__can-animate-width"]=function(){var dc,VM;return!((dc=M())==null||!dc.subscribed)&&((VM=F.animateWidth)==null?void 0:VM.call(F))&&b()},b_["yt-subscribe-button-view-model-wiz--hidden"]=function(){var dc;
return!((dc=M())==null?0:dc.subscribed)&&F.data().hideWhenUnsubscribed},b_)),
el:W,"on:yt-service-request-sent":Lb},_.z(jPi,{backgroundLottieRef:d,foregroundLottieRef:V,wrapperClass:_.ec("yt-subscribe-button-view-model-wiz__animated-action-wrapper",(BO["yt-subscribe-button-view-model-wiz__animated-action-wrapper--is-animating"]=function(){var dc;return((dc=F.animateWidth)==null?void 0:dc.call(F))&&b()},BO["yt-subscribe-button-view-model-wiz__static-width"]=function(){var dc;
return!((dc=F.animateWidth)==null?0:dc.call(F))},BO)),
disableAnimation:t},_.z("div",{el:E,class:"yt-subscribe-button-view-model-wiz__container"},_.z(Vg,{data:C,icon:function(){return _.z(_.v,{cond:nb,then:function(){var dc=function(){var VM;return d9b((VM=g())==null?void 0:VM.state)};
return _.z(_.v,{cond:function(){return t()||dc()!=="NOTIFICATIONS_NONE"},
then:function(){return _.z(_.I3,{icon:dc})},
else:function(){return _.z(Wkb,{animatedIconType:"NOTIFICATION_BELL",active:!1,animationRef:R})}})}})},
secondaryIconName:function(){return nb()?"EXPAND":void 0}}))),_.z("div",{el:h,
class:"yt-subscribe-button-view-model-wiz__invisible"},_.z(_.v,{cond:function(){var dc;return((dc=F.animateWidth)==null?void 0:dc.call(F))&&!t()&&!w()},
then:function(){return _.z(Vg,{data:_.vX(function(){var dc;return xV({model:F.data(),subscribed:bo(),isOverlay:!((dc=F.isOverlay)==null||!dc.call(F)),element:W.value,disableTextEllipsis:!0})},void 0,"smNF2c"),
iconName:function(){var dc;return uo()?d9b((dc=g())==null?void 0:dc.state):void 0},
secondaryIconName:function(){return uo()?"EXPAND":void 0}})}})))},"C");
_.Y$i=_.c("web_enable_sink_yt_subscribe_button_view_model")?GuO:hEY;wCa=_.c("web_enable_sink_yt_subscribe_button_view_model")?GuO:_.Qt(hEY);GuO.idomCompat=!0;var MWY=new _.NG("RENDERER_STAMPER_OPTIONS_TOKEN");var PS;_.HS=new LVp;PS=new Map;var qEo="compactRadioRenderer compactPlaylistRenderer playlistVideoRenderer compactVideoRenderer feedNudgeRenderer gridVideoRenderer primetimePromoRenderer radioRenderer primetimePromoRenderer reelItemRenderer reelShelfRenderer richShelfRenderer searchHistoryQueryRenderer shelfRenderer videoWithContextRenderer videoCardRenderer statementBannerRenderer miniGameCardViewModel shortsLockupViewModel lockupViewModel".split(" "),ZZI=["notificationTextRenderer","notificationMultiActionRenderer"],$9o="primetimePromoRenderer statementBannerRenderer brandVideoShelfRenderer brandVideoSingletonRenderer feedNudgeRenderer playlistVideoRenderer".split(" "),
Lkn=IQS(function(F){return _.XO(F==null?void 0:F.targetId)}).useUpdatableData;var sDr=0;_.a6.debugName="EjJbCe";var uiM=_.GK(function(F){var W=F.data;var E=_.D1(MY,function(){return W().subscriptionStateEntityKey});
return _.z(_.v,{cond:function(){var h=W(),d=E();return!h.hideWhenUnsubscribed||(d==null?0:d.subscribed)?_.D(W().button,_.fx):void 0},
then:function(h){return _.z("yt-subscribe-plus-button-view-model",{class:"ytSubscribePlusButtonViewModelHost"},_.z(_.rk,{data:h,buttonOverrides:function(){return{toggled:!0}}}))}})},"D");var P3S=_.XF({buttonViewModel:_.rk,subscribeButtonViewModel:_.Y$i,downloadButtonViewModel:lgz,toggleButtonViewModel:_.bJ,subscribePlusButtonViewModel:uiM});_.ht(aQY);var S$p=_.GK(function(F){return _.z(_.a6,{data:function(){return F.actionRow().actions}},{buttonViewModel:function(W){var E=W.data;
return _.z($f,{isRow:F.isRow,isIconOnlyButton:function(){return fQe(E())},
useIntrinsicWidth:F.useIntrinsicWidth},_.z(_.rk,{data:E}))},
subscribeButtonViewModel:function(W){return _.z($f,{isRow:F.isRow},_.z(wCa,{data:W.data,isOverlay:!1,animateWidth:function(){return!F.isRow()}}))},
downloadButtonViewModel:function(W){var E=W.data;return _.z($f,{isRow:F.isRow,isIconOnlyButton:function(){return!!E().playlistId}},_.z(lgz,{data:E}))},
toggleButtonViewModel:function(W){var E=W.data;return _.z($f,{isRow:F.isRow,isIconOnlyButton:function(){var h=E();return fQe(_.D(h.isToggled?h.toggledButtonViewModel:h.defaultButtonViewModel,_.fx))}},_.z(_.bJ,{data:E}))},
subscribePlusButtonViewModel:function(W){return _.z($f,{isRow:F.isRow},_.z(uiM,{data:W.data}))}})},"E"),$f=_.GK(function(F){var W={};
return _.z("div",{class:_.ec("yt-flexible-actions-view-model-wiz__action",(W["yt-flexible-actions-view-model-wiz__action--row-action"]=F.isRow,W["yt-flexible-actions-view-model-wiz__action--intrinsic-width"]=F.useIntrinsicWidth,W["yt-flexible-actions-view-model-wiz__action--row-action-feature-phone"]=!1,W["yt-flexible-actions-view-model-wiz__action--icon-only-button"]=F.isIconOnlyButton,W))},F.children)},"F"),pCz=_.GK(function(F){var W=function(){var h;
return((h=F.layout)==null?void 0:h.call(F))===1},E={};
return _.z("yt-flexible-actions-view-model",{class:_.ec("yt-flexible-actions-view-model-wiz",F.className,(E["yt-flexible-actions-view-model-wiz--inline"]=function(){return!W()},E["yt-flexible-actions-view-model-wiz--scrollable"]=function(){return F.data().style==="FLEXIBLE_ACTIONS_STYLE_SCROLLING"},E))},_.z(_.xF,{each:function(){return F.data().actionsRows||[]}},function(h){return _.z(_.v,{cond:W,
then:function(){return _.z("div",{class:"yt-flexible-actions-view-model-wiz__action-row"},_.z(S$p,{actionRow:h,isRow:W,useIntrinsicWidth:function(){return!!F.data().respectActionIntrinsicWidth}}))},
else:function(){return _.z(S$p,{actionRow:h,isRow:W})}})}))},"G"),mfX=_.c("web_enable_sink_yt_flexible_actions_view_model")?pCz:aQY,Zj=_.c("web_enable_sink_yt_flexible_actions_view_model")?pCz:_.Qt(aQY);
pCz.idomCompat=!0;_.pK(Zj,"yt-flexible-actions-view-model",{props:{data:_.TS,layout:_.TS,justifyContentOverride:_.TS,className:_.TS}});_.ht(OZo);var KQB,iZo;KQB=_.GK(function(F){var W=_.D1(a3,function(){var d;return(d=F.data().dislikeEntityKey)!=null?d:""}),E=_.vX(function(){var d=W();
return d?d.likeStatus==="DISLIKE":_.D(F.data().toggleButtonViewModel,_.O8).isToggled},void 0,"D8oIFb"),h=_.vX(function(){return Object.assign({},_.D(F.data().toggleButtonViewModel,_.O8),{isToggled:E()})},void 0,"shaCXe");
return _.z("dislike-button-view-model",{class:"ytDislikeButtonViewModelHost"},_.z(_.bJ,{data:h,buttonShapeOverrides:F.buttonShapeOverrideables,onToggle:function(d){var V=W();V&&d!==(V.likeStatus==="DISLIKE")&&V.key&&_.rQ(_.lJ("likeStatusEntity",V.key,{likeStatus:d?"DISLIKE":"INDIFFERENT",hadUserInteraction:d}))}}))},"H");
iZo=_.c("web_enable_sink_dislike_button_view_model")?KQB:OZo;_.XJ=_.c("web_enable_sink_dislike_button_view_model")?KQB:_.Qt(OZo);KQB.idomCompat=!0;_.ht(lQe);var FkM,jDW;FkM=_.GK(function(F){var W=_.c("web_supports_animations_api"),E=wh(function(I){var x=t(),A,X=(x==null?void 0:(A=x.likeCountIfIndifferent)==null?void 0:A.content)!==I.numberText;if(M()||!X)return I;var P,b;return{numberText:(x==null?void 0:(P=x.likeCountIfIndifferent)==null?void 0:P.content)||"",numberValue:Number((b=x==null?void 0:x.likeCountIfIndifferentNumber)!=null?b:0),heightPx:36,shouldAnimate:!!x}},{initial:{numberText:"",
numberValue:0,heightPx:36,shouldAnimate:!1}}),h=wh(function(I){var x=t(),A,X=(x==null?void 0:(A=x.likeCountIfIndifferent)==null?void 0:A.content)!==I.numberText;if(M()||!X)return I;var P,b;return{numberText:(x==null?void 0:(P=x.likeCountIfLiked)==null?void 0:P.content)||"",numberValue:Number((b=x==null?void 0:x.likeCountIfLikedNumber)!=null?b:0),heightPx:36,shouldAnimate:!!x}},{initial:{numberText:"",
numberValue:0,heightPx:36,shouldAnimate:!1}}),d=_.U(_.g$(void 0,void 0,"T6jMHc")),V=d.next().value,R=d.next().value,M=V,g=_.D1(a3,function(){var I,x;return(x=(I=F.data())==null?void 0:I.likeStatusEntityKey)!=null?x:""}),t=_.D1(e$o,function(){var I,x;
return((I=F.likeCountEntity)==null?void 0:(x=I.call(F))==null?void 0:x.key)||""}),C=_.vX(function(){var I;
return((I=g())==null?void 0:I.likeStatus)==="LIKE"},void 0,"WxQBcd"),B=function(){var I;
return W&&!((I=F.likeCountEntity)==null||!I.call(F))};
return _.z("like-button-view-model",{class:"ytLikeButtonViewModelHost"},_.z(_.bJ,{data:function(){var I=Object,x=I.assign,A;var X=_.D((A=F.data())==null?void 0:A.toggleButtonViewModel,_.O8);return x.call(I,{},X||{},{isToggled:C()})},
buttonShapeOverrides:F.buttonShapeOverrideables,animatedTextPropsDefault:function(){return B()?E():void 0},
animatedTextPropsToggled:function(){return B()?h():void 0},
onToggle:function(I){nXn(I,g(),M(),R)},
style:function(){var I;return((I=F.disableIconAnimation)==null?0:I.call(F))?void 0:{animateIcon:"true"}}}))},"I");
jDW=_.c("web_enable_sink_like_button_view_model")?FkM:lQe;_.H3=_.c("web_enable_sink_like_button_view_model")?FkM:_.Qt(lQe);_.ht(rpb);var WkT=_.GK(function(F){var W=function(){return _.D(F.data().likeButtonViewModel,nx)},E=function(){var d;
return((d=W())==null?void 0:d.likeStatusEntityKey)||""},h=_.vX(function(){var d,V;
var R=(V=_.D1(a3,E)())!=null?V:(d=W())==null?void 0:d.likeStatusEntity;d=F.data();var M;d=(d==null?void 0:(M=d.timedAnimationData)==null?void 0:M.animationTiming)||[];return{uniqueId:"like-dislike",timings:d,enabled:(R==null?void 0:R.likeStatus)==="INDIFFERENT"&&d.length>0,experimentEnabled:d.length>0}},void 0,"e1fsz");
return _.z("segmented-like-dislike-button-view-model",{class:_.ec("ytSegmentedLikeDislikeButtonViewModelHost",F.className),"button-renderer":!0},_.z(P$i,{settings:h},_.z("div",{class:"ytSegmentedLikeDislikeButtonViewModelSegmentedButtonsWrapper"},_.z(_.v,{cond:W,then:function(d){return _.z(_.H3,{data:d,likeCountEntity:function(){return F.data().likeCountEntity},
buttonShapeOverrideables:{segmentedPosition:"start"}})}}),_.z(_.v,{cond:function(){return _.D(F.data().dislikeButtonViewModel,ya)},
then:function(d){return _.z(_.XJ,{data:d,buttonShapeOverrideables:{iconPosition:"icon-only",segmentedPosition:"end"}})}}))))},"J"),EXp=_.c("web_enable_sink_segmented_like_dislike_button_view_model")?WkT:rpb;
WkT.idomCompat=!0;_.c("web_enable_sink_segmented_like_dislike_button_view_model")?_.pK(EXp,"segmented-like-dislike-button-view-model",{props:{data:_.TS,className:_.TS}}):_.Nj(EXp,"segmented-like-dislike-button-view-model",{propNames:["data"]});var uSb=0;_.pK(MvY,"account-link-button-view-model",{props:{data:_.TS,className:_.Si,setMinWidth:_.Si,forceIconOnly:_.Si}});_.Hr("menuRenderer","menuRenderer","ytd-menu-renderer");
var hEX={buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverride]]",buttonTooltipPosition:"[[buttonTooltipPosition]]",forceIconButton:"[[forceIconButton]]",forceModernIconButton:"[[tonalOverride]]",styleActionButton:"[[styleActionButton]]",disableTextTransform:"[[disableTextTransformOnButtons]]",forceIconOnly:"[[topLevelIconsOnly]]"}},toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{overrides:"[[buttonOverride]]",buttonTooltipPosition:"[[buttonTooltipPosition]]",
forceIconButton:"[[forceIconButton]]",forceModernIconButton:"[[tonalOverride]]",styleActionButton:"[[styleActionButton]]",disableTextTransform:"[[disableTextTransformOnButtons]]",forceIconOnly:"[[topLevelIconsOnly]]"}},segmentedLikeDislikeButtonRenderer:{component:"ytd-segmented-like-dislike-button-renderer"},segmentedLikeDislikeButtonViewModel:{component:"segmented-like-dislike-button-view-model"},accountLinkButtonRenderer:{component:"ytd-account-link-button-renderer",properties:{overrides:"[[buttonOverride]]",
forceModernIconButton:"[[tonalOverride]]",disableTextTransform:"[[disableTextTransformOnButtons]]",buttonTooltipPosition:"[[buttonTooltipPosition]]",forceIconButton:"[[forceIconButton]]",forceIconOnly:"[[topLevelIconsOnly]]"}},accountLinkButtonViewModel:{component:"account-link-button-view-model",params:{className:"ytd-menu-renderer"},properties:{forceIconOnly:"[[topLevelIconsOnly]]"}},downloadButtonRenderer:{component:"ytd-download-button-renderer",properties:{overrides:"[[buttonOverride]]",buttonTooltipPosition:"[[buttonTooltipPosition]]",
forceIconButton:"[[forceIconButton]]",styleActionButton:"[[styleActionButton]]",disableTextTransform:"[[disableTextTransformOnButtons]]",forceIconOnly:"[[topLevelIconsOnly]]"}},playlistLoopButtonRenderer:{component:"ytd-playlist-loop-button-renderer",properties:{forceIconOnly:"[[topLevelIconsOnly]]"}},buttonViewModel:{component:"yt-button-view-model",properties:{buttonOverrides:"[[buttonOverrides]]",scopingClassName:"[[is]]"}},flexibleActionsViewModel:{component:"yt-flexible-actions-view-model"}},
d9T=_.c("web_fix_missing_action_buttons")?100:200,P3=function(){var F=_.n.apply(this,arguments)||this;F.safeArea=!_.c("kevlar_flex_menu_safe_area_killswitch");F.tonalOverride=!1;F.threeDotSize="M";F.isOverlay=!1;F.useOverlayDark=!1;F.topLevelIconsOnly=!1;F.JSC$12415_lastWidth=0;F.maybeUpdateFlexibleMenu=function(){_.c("web_fix_missing_action_buttons")?requestAnimationFrame(F.maybeUpdateFlexibleMenuImpl):F.maybeUpdateFlexibleMenuImpl()};
F.maybeUpdateFlexibleMenuImpl=function(){var W;if((W=F.data)!=null&&W.flexibleItems){F.maybeFlushDebouncer();W=F.hostElement.clientWidth;var E=W>F.JSC$12415_lastWidth,h,d=((h=F.topLevelButtonsContainer)==null?void 0:h.scrollHeight)||0,V;h=((V=F.flexibleItemButtonsContainer)==null?void 0:V.scrollHeight)||0;V=F.hostElement.scrollHeight>Math.max(d,h)+8;E?(F.resetFlexibleItems(),F.JSC$12415_lastWidth=F.hostElement.clientWidth,F.maybeUpdateFlexibleMenu()):V&&(F.shrinkFlexibleMenu(),F.JSC$12415_lastWidth=
W)}};
F.computeThreeDotButtonShape=function(){return Object.assign({},{onTap:function(){F.onOverflowTap()},
iconPosition:"icon-only",style:F.isOverlay?F.useOverlayDark?"overlay-dark":"overlay":"mono",type:"tonal",size:F.threeDotSize,state:"active",accessibilityLabel:F.computeAccessibilityLabel(F.data)},F.threeDotButtonOverride)};
F.onOverflowTap=function(){if(F.data.fetchMenuCommand)_.WZ().resolve(_.EJ).resolveCommand(F.data.fetchMenuCommand,{form:{element:F.hostElement}});else if(F.data.isDisabled&&F.data.disabledCommand)_.ei(F.data.disabledCommand,F.hostElement);else{var W=F.createMenuRendererVe(),E={items:F.items};F.data.menuPopupAccessibility&&(E.menuPopupAccessibility=F.data.menuPopupAccessibility);F.data.footer&&(E.footer=F.data.footer);W={openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:E},veData:W}};
_.WZ().resolve(_.L1).openSheet({openPopupActionCommand:W},F.hostElement)}};
return F};
_.k(P3,_.n);_.N=P3.prototype;_.N.updateButtonOverrides=function(){if(!_.c("menu_renderer_label_update_upkillswitch")){var F=_.Z(this.hostElement).querySelector("yt-button-view-model");F&&(F.buttonOverrides=this.buttonOverrides)}};
_.N.computeHasItems=function(){var F;return((F=this.topLevelButtonData)==null?void 0:F.length)||this.hasFlexibleItems};
_.N.created=function(){this.boundOnStamperFinished=this.onStamperFinished.bind(this)};
_.N.iconButtonColorChanged=function(){this.data&&this.data.iconColor&&(this.hasCustomIconColor=!0,_.V9(this.hostElement,{"--ytd-menu-renderer-button-color":_.ZP(this.data.iconColor)}))};
_.N.onStamperFinished=function(){this.JSC$12415_lastWidth=this.hostElement.clientWidth;this.maybeUpdateFlexibleMenu()};
_.N.setupFlexibleMenu=function(){var F=this,W;(W=this.data)!=null&&W.flexibleItems?window.ResizeObserver&&(this.hostElement.addEventListener("yt-rendererstamper-finished",this.boundOnStamperFinished),this.hostElement.addEventListener("yt-renderidom-finished",this.boundOnStamperFinished),this.resizeThrottle||(this.resizeThrottle=new _.Nv(this.maybeUpdateFlexibleMenu,d9T,this)),this.resizeObserver||(this.resizeObserver=new ResizeObserver(function(){F.resizeThrottle.fire()}),this.resizeObserver.observe(this.hostElement)),
this.resetFlexibleItems()):(this.flexAsTopLevelButtons=void 0,this.hostElement.removeEventListener("yt-rendererstamper-finished",this.boundOnStamperFinished),this.hostElement.removeEventListener("yt-renderidom-finished",this.boundOnStamperFinished),this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=void 0))};
_.N.maybeFlushDebouncer=function(){if(_.c("web_replace_formatted_with_attributed_string")){var F;(F=this.topLevelButtons)==null||F.forEach(function(E){var h;(E=(h=E.getElementsByTagName("yt-attributed-string"))==null?void 0:h[0])&&fMS(E)});
var W;(W=this.flexibleItemButtons)==null||W.forEach(function(E){var h;(E=(h=E.getElementsByTagName("yt-attributed-string"))==null?void 0:h[0])&&fMS(E)})}};
_.N.resetFlexibleItems=function(){var F;if((F=this.data)!=null&&F.flexibleItems){_.c("web_fix_missing_action_buttons")||this.hostElement.removeEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu);var W;this.flexAsTopLevelButtons=(W=this.data.flexibleItems)==null?void 0:W.map(function(E){return _.D(E,_.KMe).topLevelButton});
_.c("web_fix_missing_action_buttons")||this.hostElement.addEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu)}};
_.N.computeButtonOverride=function(){if(this.tonalOverride)return{style:"mono",type:"tonal"}};
_.N.shrinkFlexibleMenu=function(){var F;(F=this.flexAsTopLevelButtons)!=null&&F.length&&(this.flexAsTopLevelButtons=[].concat(_.x9(this.flexAsTopLevelButtons.slice(0,-1))))};
_.N.configureRendererStamper=function(){return{topLevelButtonData:{id:"top-level-buttons-computed",mapping:hEX,events:!0},flexAsTopLevelButtons:{id:"flexible-item-buttons",mapping:hEX,events:!0}}};
_.N.tonalOverrideChanged=function(){this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.N.ready=function(){this.menuFocused=!0;this.overlayOpen=!1;this.ytdOpenPopupBehavior.popupPositionTarget=this.button;this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.N.detached=function(){this.icon="yt-icons:more_vert"};
_.N.computeTopLevelButtonData=function(F){if(!F)return[];var W;F=(W=F==null?void 0:F.topLevelButtons)!=null?W:[];return _.xd.unsafeClone([].concat(_.x9(F)))};
_.N.computeItems=function(F,W){if(!F)return[];var E=[];if(W){var h=(F.flexibleItems||[]).map(function(R){return _.D(R,_.KMe)});
h=_.U(h);for(var d=h.next();!d.done;d=h.next())d=d.value,W.includes(d.topLevelButton)||(d=d.menuItem)&&E.push(d)}var V;F=(V=F==null?void 0:F.items)!=null?V:[];return[].concat(_.x9(E),_.x9(F))};
_.N.computeMenuActive=function(F,W){return F||W};
_.N.onPopupOpened=function(){this.overlayOpen=!0;_.hF(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen);this.menuFocused==null&&(this.menuFocused=!1)};
_.N.onPopupClosed=function(){this.overlayOpen=!1;_.hF(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.N.onPopupCanceled=function(){this.overlayOpen=!1;_.hF(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.N.computeAccessibilityLabel=function(F){return this.get("accessibility.accessibilityData.label",F)};
_.N.isHidden=function(F,W){return this.tonalOverride||!F?!0:F.fetchMenuCommand||F.isDisabled&&F.disabledCommand?!1:!(W==null?0:W.length)};
_.N.isModernOverflowHidden=function(F,W){return this.tonalOverride&&F?F.fetchMenuCommand?!1:!(W==null?0:W.length):!0};
_.N.createMenuRendererVe=function(){var F=this.data.trackingParams,W=_.JR(),E=_.Pf();return F&&W&&E?(F=_.ve(F),E=_.LQ(7591),_.c("combine_ve_grafts")?_.zY(_.z4(),E,F):_.y7(W,F,E),E):null};
_.Sn.Object.defineProperties(P3.prototype,{hasFlexibleItems:{configurable:!0,enumerable:!0,get:function(){var F;return!((F=this.flexAsTopLevelButtons)==null||!F.length)}},
buttonOverrides:{configurable:!0,enumerable:!0,get:function(){if(this.topLevelIconsOnly)return{iconPosition:"icon-only"}}}});
P3.prototype.onPopupCanceled=P3.prototype.onPopupCanceled;P3.prototype.onPopupClosed=P3.prototype.onPopupClosed;P3.prototype.onPopupOpened=P3.prototype.onPopupOpened;P3.prototype.tonalOverrideChanged=P3.prototype.tonalOverrideChanged;P3.prototype.resetFlexibleItems=P3.prototype.resetFlexibleItems;P3.prototype.setupFlexibleMenu=P3.prototype.setupFlexibleMenu;P3.prototype.iconButtonColorChanged=P3.prototype.iconButtonColorChanged;P3.prototype.updateButtonOverrides=P3.prototype.updateButtonOverrides;
_.T([_.J(_.Gf),_.Y("design:type",Object)],P3.prototype,"ytdOpenPopupBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],P3.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],P3.prototype,"ytRendererstamperBehavior",void 0);_.T([_.gQ("#button-shape"),_.Y("design:type",N4)],P3.prototype,"buttonShape",void 0);_.T([_.gQ("#button"),_.Y("design:type",Object)],P3.prototype,"button",void 0);
_.T([_.O(),_.Y("design:type",Object)],P3.prototype,"data",void 0);_.T([_.O({computed:"computeTopLevelButtonData(data)"}),_.Y("design:type",Array)],P3.prototype,"topLevelButtonData",void 0);_.T([_.O(),_.Y("design:type",Array)],P3.prototype,"flexAsTopLevelButtons",void 0);_.T([_.O({computed:"computeItems(data, flexAsTopLevelButtons)"}),_.Y("design:type",Array)],P3.prototype,"items",void 0);_.T([_.O({value:"yt-icons:more_vert"}),_.Y("design:type",String)],P3.prototype,"icon",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],P3.prototype,"safeArea",void 0);_.T([_.O({reflectToAttribute:!0,computed:"computeMenuActive(menuFocused, overlayOpen)"}),_.Y("design:type",Boolean)],P3.prototype,"menuActive",void 0);_.T([_.O(),_.Y("design:type",Boolean)],P3.prototype,"menuFocused",void 0);_.T([_.O({value:"bottom"}),_.Y("design:type",String)],P3.prototype,"buttonTooltipPosition",void 0);_.T([_.O(),_.Y("design:type",Boolean)],P3.prototype,"overlayOpen",void 0);
_.T([_.O({value:!0}),_.Y("design:type",Boolean)],P3.prototype,"forceIconButton",void 0);_.T([_.O(),_.Y("design:type",Boolean)],P3.prototype,"styleActionButton",void 0);_.T([_.O(),_.Y("design:type",Boolean)],P3.prototype,"disableTextTransformOnButtons",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],P3.prototype,"tonalOverride",void 0);_.T([_.O(),_.Y("design:type",Object)],P3.prototype,"threeDotSize",void 0);
_.T([_.O(),_.Y("design:type",Object)],P3.prototype,"threeDotButtonOverride",void 0);_.T([_.O(),_.Y("design:type",Object)],P3.prototype,"isOverlay",void 0);_.T([_.O(),_.Y("design:type",Object)],P3.prototype,"useOverlayDark",void 0);_.T([_.O({computed:"computeButtonOverride(tonalOverride)"}),_.Y("design:type",Object)],P3.prototype,"buttonOverride",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],P3.prototype,"hasCustomIconColor",void 0);
_.T([_.O({reflectToAttribute:!0}),_.a("flexAsTopLevelButtons"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],P3.prototype,"hasFlexibleItems",null);_.T([_.O({reflectToAttribute:!0,computed:"computeHasItems(topLevelButtonData, flexAsTopLevelButtons)"}),_.Y("design:type",Boolean)],P3.prototype,"hasItems",void 0);_.T([_.O(),_.Y("design:type",Object)],P3.prototype,"topLevelIconsOnly",void 0);
_.T([_.ea("topLevelIconsOnly"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],P3.prototype,"updateButtonOverrides",null);_.T([_.a("topLevelIconsOnly"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],P3.prototype,"buttonOverrides",null);_.T([_.gQ("#top-level-buttons-computed"),_.Y("design:type",HTMLElement)],P3.prototype,"topLevelButtonsContainer",void 0);_.T([_.Q9(".top-level-buttons > *"),_.Y("design:type",Array)],P3.prototype,"topLevelButtons",void 0);
_.T([_.gQ("#flexible-item-buttons"),_.Y("design:type",HTMLElement)],P3.prototype,"flexibleItemButtonsContainer",void 0);_.T([_.Q9("#flexible-item-buttons > *"),_.Y("design:type",Array)],P3.prototype,"flexibleItemButtons",void 0);_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],P3.prototype,"iconButtonColorChanged",null);
_.T([_.Cz("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],P3.prototype,"setupFlexibleMenu",null);_.T([_.Cz("topLevelIconsOnly"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],P3.prototype,"resetFlexibleItems",null);_.T([_.ea("tonalOverride"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],P3.prototype,"tonalOverrideChanged",null);
_.T([_.R4("yt-popup-opened"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],P3.prototype,"onPopupOpened",null);_.T([_.R4("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],P3.prototype,"onPopupClosed",null);_.T([_.R4("yt-popup-canceled"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],P3.prototype,"onPopupCanceled",null);
_.r(P3,"ytd-menu-renderer",function(){if(BxH===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-menu-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="top-level-buttons-computed" class="top-level-buttons style-scope ytd-menu-renderer"></div><div id="flexible-item-buttons" hidden="[[!flexAsTopLevelButtons]]" class="style-scope ytd-menu-renderer"></div><yt-icon-button id="button" class="dropdown-trigger style-scope ytd-menu-renderer" hidden="[[isHidden(data, items)]]" label="[[computeAccessibilityLabel(data)]]" style-target="button" on-click="onOverflowTap"><yt-icon icon="[[icon]]" class="style-scope ytd-menu-renderer"></yt-icon></yt-icon-button><yt-button-shape id="button-shape" data="[[computeThreeDotButtonShape(data, isOverlay, threeDotButtonOverride)]]" disable-upgrade$="[[!tonalOverride]]" hidden="[[isModernOverflowHidden(data, items, tonalOverride)]]" icon-name="[[icon]]" class="style-scope ytd-menu-renderer"></yt-button-shape>');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);BxH=F}F=BxH;return F},{mode:_.E6("kevlar_poly_si_batch_j030")?1:2});var NJa;var VW_;_.hD=_.GK(function(F){var W=F.data;var E=function(){if(W().icon)a:{var h={iconName:W().icon};for(var d=_.WZ().resolve(_.U6),V=_.U([12,24]),R=V.next();!R.done;R=V.next()){var M=R.value;R=Object.assign({},h,{iconStyle:"youtube_fill",iconSize:M});M=Object.assign({},h,{iconStyle:"youtube_outline",iconSize:M});if(d.resolveIcon(R)){h=R;break a}if(d.resolveIcon(M)){h=M;break a}}h=void 0}else h=void 0;return h};
F={};return _.z("badge-shape",{class:_.ec("badge-shape-wiz",function(){return z8W(W().type)},(F["badge-shape-wiz--overlay"]=function(){return W().isOverlay},F["badge-shape-wiz--ads-include-dot"]=function(){return W().adsIncludeDot},F["badge-shape-wiz--thumbnail-badge"]=function(){a:switch(W().type){case 16:case 17:case 18:var h=!0;
break a;default:h=!1}return h},F["badge-shape-wiz--status-badge"]=function(){a:switch(W().type){case 11:case 12:case 13:case 14:case 15:var h=!0;
break a;default:h=!1}return h},F["badge-shape-wiz--no-text"]=function(){return!W().text},F["badge-shape-wiz--modern"]=function(){return W().modern},F)),
style:_.vr({"background-color":function(){var h;return(h=W().customColors)==null?void 0:h.backgroundColor}}),
role:function(){return W().accessibilityText?"img":void 0},
"aria-label":function(){return W().accessibilityText}},_.z(_.v,{cond:function(){return W().animation},
then:function(h){return _.z(_.Mj,{className:"badge-shape-wiz__icon",data:h,animationName:function(){return h().animationConfig.name||""}})}}),_.z(_.v,{cond:function(){var h;
return E()&&!((h=W())==null?0:h.animation)},
then:function(){return _.z("div",{class:"badge-shape-wiz__icon"},_.z(FHY,{data:function(){return E()}}))}}),_.z("div",{class:"badge-shape-wiz__text"},function(){var h;
return(h=W())==null?void 0:h.text}))},"K");
_.hD.idomCompat=!0;_.pK(_.hD,"badge-shape",{props:{data:_.TS}});var JL=function(){var F=_.n.apply(this,arguments)||this;F.systemIcons=_.c("kevlar_system_icons");F.animated=_.c("animated_live_badge_icon");F.useBadgeShape=_.c("web_badge_shape_defrag");return F};
_.k(JL,_.n);_.N=JL.prototype;_.N.addTooltips=function(){for(var F=_.Z(this.hostElement).querySelectorAll(".badge"),W=0,E;E=F[W++];){var h=this.repeatElement.itemForElement(E);E=_.Z(E);E.lastChild&&E.lastChild.is==="tp-yt-paper-tooltip"&&E.removeChild(E.lastChild);if(h=h.metadataBadgeRenderer&&h.metadataBadgeRenderer.tooltip){var d=_.S8("tp-yt-paper-tooltip");(0,_.N3)(d).textContent=h;d.setAttribute("position","top");E.appendChild(d)}}};
_.N.badgesChanged=function(){var F=this;_.ip().parkOrScheduleJob(function(){F.addTooltips()},0,"eocs",16);
this.updateComputedBadges(this.badges,this.topStandaloneBadge)};
_.N.standaloneRoundedBadgeChanged=function(){var F=this.useRoundedBadge?this.useRoundedBadge:void 0;F&&(this.useRoundedBadge=F)};
_.N.standaloneBadgeChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.N.hiddenBadgeGroupsChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.N.computeStyle=function(F){_.c("enable_html5_teal_ad_badge")&&F==="BADGE_STYLE_TYPE_AD"&&(F="badge-style-type-ad-alternate");_.c("kevlar_ytb_live_badges")&&F==="BADGE_STYLE_TYPE_LIVE_NOW"&&(F="badge-style-type-live-now-alternate");return F?F.toLowerCase().replace(/_/g,"-"):""};
_.N.computeRole=function(F){return this.computeAriaLabel(F)?"img":"status"};
_.N.computeAriaLabel=function(F){var W;return(F==null?void 0:(W=F.accessibilityData)==null?void 0:W.label)||(F==null?void 0:F.label)};
_.N.computeBadgeShape=function(F){var W;if(F){var E,h=g$Y(F.style),d=QMk(F.style),V=F.label,R=((E=F.accessibilityData)==null?void 0:E.label)||F.label;F=(W=F.icon)==null?void 0:W.iconType;W={type:h,brNzRatingBadgeType:d,text:V,accessibilityText:R,icon:F!=="PREMIUM"?F:void 0}}else W={};return W};
_.N.updateComputedBadges=function(F,W,E){var h=this;(W=W?[W]:E?[E]:void 0)?this.computedBadges=W:this.computedBadges=F==null?void 0:F.filter(function(d){var V;if((V=d.metadataBadgeRenderer)==null?0:V.groups){V=!1;d=_.U(d.metadataBadgeRenderer.groups);for(var R=d.next();!R.done;R=d.next()){R=R.value;var M=void 0;V=V||((M=h.hiddenBadgeGroups)==null?void 0:M.includes(R))}return!V}return!0})};
_.N.useFilledIcons=function(F){return _.c("kevlar_system_icons")&&(F==="AUDIO_BADGE"||F==="CHECK_CIRCLE_THICK"||F==="OFFICIAL_ARTIST_BADGE"||F==="SPONSORSHIP_STAR"||F==="PERSON_RADAR_FILLED"||F==="PERSON_RADAR")};
_.N.computeIcon=function(F){var W,E;F=F==null?void 0:(W=F.metadataBadgeRenderer)==null?void 0:(E=W.icon)==null?void 0:E.iconType;if(F!=="PREMIUM"&&F)return _.Vd(F)};
_.N.computeStandaloneBadge=function(F){var W;F=F==null?void 0:(W=F.icon)==null?void 0:W.iconType;return F==="PREMIUM_STANDALONE"||F==="PREMIUM_STANDALONE_CAIRO"?"standalone-badge":""};
JL.prototype.hiddenBadgeGroupsChanged=JL.prototype.hiddenBadgeGroupsChanged;JL.prototype.standaloneBadgeChanged=JL.prototype.standaloneBadgeChanged;JL.prototype.standaloneRoundedBadgeChanged=JL.prototype.standaloneRoundedBadgeChanged;JL.prototype.badgesChanged=JL.prototype.badgesChanged;_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],JL.prototype,"hidden",void 0);_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],JL.prototype,"componentBehavior",void 0);
_.T([_.O(),_.Y("design:type",Array)],JL.prototype,"badges",void 0);_.T([_.O(),_.Y("design:type",Object)],JL.prototype,"topStandaloneBadge",void 0);_.T([_.O(),_.Y("design:type",Object)],JL.prototype,"bottomStandaloneBadge",void 0);_.T([_.O(),_.Y("design:type",Object)],JL.prototype,"computedBadges",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],JL.prototype,"mediumFontAdBadge",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],JL.prototype,"useRoundedBadge",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],JL.prototype,"largeFontAdBadge",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],JL.prototype,"overlayAd",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],JL.prototype,"overlayPremium",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],JL.prototype,"noDotAdBadge",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],JL.prototype,"collectionTruncate",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],JL.prototype,"isThumbnailBadge",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],JL.prototype,"wrapBadges",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],JL.prototype,"systemIcons",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],JL.prototype,"animated",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],JL.prototype,"useBadgeShape",void 0);_.T([_.O({value:[]}),_.Y("design:type",Array)],JL.prototype,"hiddenBadgeGroups",void 0);_.T([_.gQ("#repeat"),_.Y("design:type",AT)],JL.prototype,"repeatElement",void 0);_.T([_.Cz("badges"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],JL.prototype,"badgesChanged",null);
_.T([_.Cz("useRoundedBadge"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],JL.prototype,"standaloneRoundedBadgeChanged",null);_.T([_.Cz("topStandaloneBadge","bottomStandaloneBadge"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],JL.prototype,"standaloneBadgeChanged",null);_.T([_.Cz("hiddenBadgeGroups"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],JL.prototype,"hiddenBadgeGroupsChanged",null);
JL=_.T([_.y({is:"ytd-badge-supported-renderer",disableElementRegistration:!0})],JL);
var U9X=_.We()(JL,"ytd-badge-supported-renderer",function(){if(VW_===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-badge-supported-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" id="repeat" items="[[computedBadges]]" as="badge" class="style-scope ytd-badge-supported-renderer"><template is="dom-if" if="[[useBadgeShape]]" class="style-scope ytd-badge-supported-renderer"><badge-shape data="[[computeBadgeShape(badge.metadataBadgeRenderer)]]" class="style-scope ytd-badge-supported-renderer"></badge-shape></template><template is="dom-if" if="[[!useBadgeShape]]" class="style-scope ytd-badge-supported-renderer"><div class$="badge [[computeStandaloneBadge(badge.metadataBadgeRenderer)]] [[computeStyle(badge.metadataBadgeRenderer.style)]] style-scope ytd-badge-supported-renderer" role="[[computeRole(badge.metadataBadgeRenderer)]]" aria-label$="[[computeAriaLabel(badge.metadataBadgeRenderer)]]"><yt-icon default-to-filled="[[useFilledIcons(badge.metadataBadgeRenderer.icon.iconType)]]" disable-upgrade$="[[!badge.metadataBadgeRenderer.icon]]" hidden="[[!computeIcon(badge)]]" icon="[[computeIcon(badge)]]" size="16" class="style-scope ytd-badge-supported-renderer"></yt-icon><p class="style-scope ytd-badge-supported-renderer">[[badge.metadataBadgeRenderer.label]]</p></div></template></template>');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);VW_=F}F=VW_;return F},{allowedProps:"badges bottomStandaloneBadge collectionTruncate hidden hiddenBadgeGroups isThumbnailBadge largeFontAdBadge noDotAdBadge overlayAd overlayPremium topStandaloneBadge useRoundedBadge wrapBadges".split(" "),
mode:_.E6("kevlar_poly_si_batch_j053")?1:2});var aG=function(){var F=_.n.apply(this,arguments)||this;F.iconType="STAR";F.standardizeIconSize=_.c("kevlar_system_icons");F.mediaHoverOverlayInitialVisibility=_.c("enable_top_landscape_image_button_command_web");F.noBottomMargin=!1;F.thumbnailObjectFit="CONTAIN";F.thumbnailFitHeight=!0;F.actionMap={"yt-mute-ad-action":"handleMuteAd"};return F};
_.k(aG,_.n);_.N=aG.prototype;
_.N.configureRendererStamper=function(){return{"data.badge":{id:"badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"},params:{mediumFontAdBadge:!0}}}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.image":{id:"media",mapping:{thumbnail:{component:"yt-img-shadow",properties:{thumbnail:"[[data.image.thumbnail]]",width:"[[mediaThumbnailWidth]]",fitHeight:"[[thumbnailFitHeight]]",objectFit:"[[thumbnailObjectFit]]"}}}},
"data.mediaBadge":{id:"media-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.mediaBadge]]",useRoundedBadge:"[[useRoundedBadge]]"}}}},"data.mediaHoverOverlay":{id:"media-hover-overlay",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.ctaButton":{id:"call-to-action",mapping:{buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",
notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.N.dataChanged=function(){this.clickCommand=this.get("data.clickCommand.commandExecutorCommand.commands.0");this.clickCommand||(this.clickCommand=this.get("data.clickCommand"));this.clickCommand&&(this.updateMediaBackgroundImage(),this.ytSparklesClickLocationBehavior.configureClickTargets("root",aG.JSC$12427_DEFAULT_CLICK_LOCATION_BEHAVIOR,aG.JSC$12427_CLICK_LOCATION_ID_MAP))};
_.N.onTap=function(F){if(!_.c("use_on_click_for_desktop_display_ad"))this.onTapOrClick(F)};
_.N.onClick=function(F){if(_.c("use_on_click_for_desktop_display_ad"))this.onTapOrClick(F)};
_.N.onTapOrClick=function(F){this.clickCommand&&this.ytSparklesClickLocationBehavior.handleClick(this.clickCommand,F,!1)};
_.N.updateMediaBackgroundImage=function(){var F=this.get("data.image.thumbnail.thumbnails");F&&(F=_.m_(F,0))&&_.V9(this.hostElement,{"--ytd-display-ad-media-background-image":"url("+F+")"})};
_.N.impressionLog=function(){if(!this.data||!this.data.impressionsFired){if(this.data&&this.data.impressionEndpoints){for(var F=0;F<this.data.impressionEndpoints.length;F++){var W=this.data.impressionEndpoints[F];W.clickTrackingParams&&delete W.clickTrackingParams;_.WZ().resolve(_.EJ).resolveCommand(W,{form:{element:this.hostElement}})}this.data.impressionsFired=!0}var E;((E=this.data)==null?0:E.activeView)&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17)}};
_.N.handleMuteAd=function(){};
_.N.attached=function(){var F=this;_.c("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&F.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.N.detached=function(){_.c("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.Sn.Object.defineProperties(aG.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var F;if((F=this.data)==null||!F.titleText)return"";var W;return _.CY("AD_TITLE",{title:this.ytRendererBehavior.getSimpleString((W=this.data)==null?void 0:W.titleText)})}},
getRating:{configurable:!0,enumerable:!0,get:function(){var F;return((F=this.data)==null?0:F.rating)?Number(this.data.rating).toPrecision(2):null}},
getPrice:{configurable:!0,enumerable:!0,get:function(){var F;return((F=this.data)==null?0:F.price)?this.data.price:null}},
getThirdLine:{configurable:!0,enumerable:!0,get:function(){var F;return((F=this.data)==null?0:F.thirdLine)?this.data.thirdLine:null}},
getFourthLine:{configurable:!0,enumerable:!0,get:function(){var F;return((F=this.data)==null?0:F.fourthLine)?this.data.fourthLine:null}},
getFifthLine:{configurable:!0,enumerable:!0,get:function(){var F;return((F=this.data)==null?0:F.fifthLine)?this.data.fifthLine:null}},
computeRatingHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getRating}},
computePriceHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getPrice}},
computeThirdLineHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getThirdLine}},
computeFourthLineHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getFourthLine}},
computeFifthLineHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getFifthLine}},
hasEnergyIcon:{configurable:!0,enumerable:!0,get:function(){var F;return!((F=this.data)==null||!F.energyIcon)}},
computeSecondaryTextHidden:{configurable:!0,enumerable:!0,get:function(){return!(this.computeRatingHidden&&this.computePriceHidden)}},
layout:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.layout?this.data.layout.toLowerCase().replace(/_/g,"-"):""}},
mediaThumbnailWidth:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.layout&&this.data.layout==="DISPLAY_AD_LAYOUT_VERTICAL_CAROUSEL_ITEM")return 135}},
useRoundedBadge:{configurable:!0,enumerable:!0,get:function(){return this.layout==="display-ad-layout-top-landscape-image"}}});
aG.prototype.onClick=aG.prototype.onClick;aG.prototype.onTap=aG.prototype.onTap;aG.prototype.dataChanged=aG.prototype.dataChanged;
aG.JSC$12427_CLICK_LOCATION_ID_MAP=_.c("enable_web_home_top_landscape_image_layout_click_location")?new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","root"],["PROMOTED_SPARKLES_CLICK_LOCATION_DESCRIPTION","body-text"],["PROMOTED_SPARKLES_CLICK_LOCATION_AD_BADGE","badge"],["PROMOTED_SPARKLES_CLICK_LOCATION_TEXT_PRODUCT_ADVERTISER","secondary-text"],["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","media-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_ACTION_LABEL","media-hover-overlay"],["PROMOTED_SPARKLES_CLICK_LOCATION_INNER_BACKGROUND",
"media"],["PROMOTED_SPARKLES_CLICK_LOCATION_BORDER","media-background"]]):new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","root"]]);
aG.JSC$12427_DEFAULT_CLICK_LOCATION_BEHAVIOR=_.c("enable_web_home_top_landscape_image_layout_click_location")?[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND",code:2,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_DESCRIPTION",code:7,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_AD_BADGE",code:31,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_TEXT_PRODUCT_ADVERTISER",
code:1,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL",code:9,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_ACTION_LABEL",code:8,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_INNER_BACKGROUND",code:41,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_BORDER",
code:39,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"}]:[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND",code:2,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"}];_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],aG.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],aG.prototype,"ytRendererstamperBehavior",void 0);
_.T([_.J(_.O9),_.Y("design:type",Object)],aG.prototype,"ytdDismissibleItemBehavior",void 0);_.T([_.J(_.am),_.Y("design:type",Object)],aG.prototype,"ytdReduxBehavior",void 0);_.T([_.J(_.FJ.YtSparklesClickLocationBehavior),_.Y("design:type",Object)],aG.prototype,"ytSparklesClickLocationBehavior",void 0);_.T([_.J(PN),_.Y("design:type",Object)],aG.prototype,"ytdActiveViewBehavior",void 0);_.T([_.J([_.FM.YtActionHandlerBehavior]),_.Y("design:type",Object)],aG.prototype,"actionHandlerBehavior",void 0);
_.T([_.O(),_.Y("design:type",Object)],aG.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Object)],aG.prototype,"clickCommand",void 0);_.T([_.O({reflectToAttribute:!0,selector:_.XD}),_.Y("design:type",Boolean)],aG.prototype,"miniMode",void 0);_.T([_.O(),_.Y("design:type",String)],aG.prototype,"iconType",void 0);_.T([_.a("data.titleText"),_.Y("design:type",String),_.Y("design:paramtypes",[])],aG.prototype,"titleAriaLabel",null);
_.T([_.a("data.rating"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],aG.prototype,"getRating",null);_.T([_.a("data.price"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],aG.prototype,"getPrice",null);_.T([_.a("data.thirdLine"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],aG.prototype,"getThirdLine",null);_.T([_.a("data.fourthLine"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],aG.prototype,"getFourthLine",null);
_.T([_.a("data.fifthLine"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],aG.prototype,"getFifthLine",null);_.T([_.a("getRating"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],aG.prototype,"computeRatingHidden",null);_.T([_.a("getPrice"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],aG.prototype,"computePriceHidden",null);_.T([_.a("getThirdLine"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],aG.prototype,"computeThirdLineHidden",null);
_.T([_.a("getFourthLine"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],aG.prototype,"computeFourthLineHidden",null);_.T([_.a("getFifthLine"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],aG.prototype,"computeFifthLineHidden",null);_.T([_.O({reflectToAttribute:!0}),_.a("data.energyIcon"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],aG.prototype,"hasEnergyIcon",null);
_.T([_.a("computePriceHidden","computeRatingHidden"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],aG.prototype,"computeSecondaryTextHidden",null);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],aG.prototype,"standardizeIconSize",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],aG.prototype,"mediaHoverOverlayInitialVisibility",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],aG.prototype,"noBottomMargin",void 0);
_.T([_.O({reflectToAttribute:!0}),_.a("data.layout"),_.Y("design:type",String),_.Y("design:paramtypes",[])],aG.prototype,"layout",null);_.T([_.a("data.layout"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],aG.prototype,"mediaThumbnailWidth",null);_.T([_.a("layout"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],aG.prototype,"useRoundedBadge",null);_.T([_.O(),_.Y("design:type",String)],aG.prototype,"thumbnailObjectFit",void 0);
_.T([_.O(),_.Y("design:type",Object)],aG.prototype,"thumbnailFitHeight",void 0);_.T([_.Cz("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],aG.prototype,"dataChanged",null);_.T([_.R4("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],aG.prototype,"onTap",null);_.T([_.R4("click"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],aG.prototype,"onClick",null);
aG=_.T([_.y({is:"ytd-display-ad-renderer",disableElementRegistration:!0})],aG);
_.r(aG,"ytd-display-ad-renderer",function(){if(NJa!==void 0)return NJa;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-display-ad-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-display-ad-renderer">\n  <div id="root" class="style-scope ytd-display-ad-renderer">\n    <div id="media-container" aria-hidden="true" class="style-scope ytd-display-ad-renderer">\n      <div id="media-background" class="style-scope ytd-display-ad-renderer"></div>\n      <div id="media" class="style-scope ytd-display-ad-renderer"></div>\n      <div id="media-badge" class="style-scope ytd-display-ad-renderer"></div>\n      <div id="media-hover-overlay" class="style-scope ytd-display-ad-renderer"></div>\n    </div>\n    <div class="title style-scope ytd-display-ad-renderer">\n      <a class="yt-display-ad-renderer-endpoint title-link style-scope ytd-display-ad-renderer" aria-label$="[[titleAriaLabel]]" href$="[[computeHref_(clickCommand)]]">\n        <yt-formatted-string class="title-text style-scope ytd-display-ad-renderer" text="[[data.titleText]]" title="[[getSimpleString(data.titleText)]]">\n        </yt-formatted-string>\n      </a>\n      <div id="menu" class="style-scope ytd-display-ad-renderer"></div>\n    </div>\n    <div id="support" class="style-scope ytd-display-ad-renderer">\n      <yt-formatted-string id="body-text" text="[[data.bodyText]]" title="[[getSimpleString(data.bodyText)]]" class="style-scope ytd-display-ad-renderer">\n      </yt-formatted-string>\n      <div id="badge" class="badge style-scope ytd-display-ad-renderer"></div>\n      <yt-formatted-string id="secondary-text" hidden="[[computeSecondaryTextHidden]]" text="[[data.secondaryText]]" title="[[getSimpleString(data.secondaryText)]]" class="style-scope ytd-display-ad-renderer">\n      </yt-formatted-string>\n      <span id="rating" hidden="[[computeRatingHidden]]" class="style-scope ytd-display-ad-renderer">[[getRating]]</span>\n      <yt-icon id="icon" default-to-filled="true" hidden="[[computeRatingHidden]]" icon="[[iconType]]" class="style-scope ytd-display-ad-renderer"></yt-icon>\n      <yt-formatted-string id="price" hidden="[[computePriceHidden]]" text="[[getPrice]]" class="style-scope ytd-display-ad-renderer"></yt-formatted-string>\n    </div>\n    <div id="support" class="style-scope ytd-display-ad-renderer">\n      <yt-formatted-string id="third-line" hidden="[[computeThirdLineHidden]]" text="[[data.thirdLine]]" title="[[getSimpleString(data.thirdLine)]]" class="style-scope ytd-display-ad-renderer">\n      </yt-formatted-string>\n    </div>\n    <div id="support" class="style-scope ytd-display-ad-renderer">\n      <yt-formatted-string id="fourth-line" hidden="[[computeFourthLineHidden]]" text="[[data.fourthLine]]" title="[[getSimpleString(data.fourthLine)]]" class="style-scope ytd-display-ad-renderer">\n      </yt-formatted-string>\n    </div>\n    <div id="support" class="style-scope ytd-display-ad-renderer">\n      <yt-formatted-string id="fifth-line" hidden="[[computeFifthLineHidden]]" text="[[data.fifthLine]]" title="[[getSimpleString(data.fifthLine)]]" class="style-scope ytd-display-ad-renderer">\n      </yt-formatted-string>\n      <yt-img-shadow id="energy-icon" height="14" hidden="[[!data.energyIcon]]" thumbnail="[[data.energyIcon]]" class="style-scope ytd-display-ad-renderer"></yt-img-shadow>\n    </div>\n    <div id="call-to-action" class="style-scope ytd-display-ad-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-display-ad-renderer">\n  <div id="dismissed-content" class="style-scope ytd-display-ad-renderer"></div>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return NJa=F},{mode:1});var REa;var eEU;var MWe;var tvr=new Map;var gXH=!1;var f1=function(){var F=_.n.apply(this,arguments)||this;F.DEFAULT_TOOLTIP_OFFSET="10";F.TOOLTIP_OFFSET_NO_BANNER="-8";F.badges=null;F.noEndpoints=!1;F.wrapText=!1;F.forceVerified=!1;F.tooltipPosition="top";F.compactStyle=!1;F.height=0;F.lineHeight=0;return F};
_.k(f1,_.n);_.N=f1.prototype;_.N.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-window-resized":"handleWindowResized"}};
_.N.attached=function(){var F=this;this.observer=new MutationObserver(function(W,E){F.handleResized();E.disconnect()});
this.observer.observe(this.textEl,{childList:!0})};
_.N.detached=function(){this.observer&&this.observer.disconnect()};
_.N.logTooltipEvent=function(){_.c("kevlar_wiz_tooltip_event_killswitch")||gXH||(_.Cce("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP"),gXH=!0)};
_.N.handleWindowResized=function(){this.handleResized()};
_.N.onChannelNameChanged=function(){this.verified?this.handleResized():(this.textEl&&this.textEl.style.removeProperty("width"),this.textContainerEl&&(this.textContainerEl.style.removeProperty("padding"),this.textContainerEl.style.removeProperty("margin-right"),this.textContainerEl.style.removeProperty("margin-left")))};
_.N.onHeightChanged=function(){if(this.verified){var F=Math.ceil(this.height*Math.tan(30*Math.PI/180))+"px";_.b0("HTML_DIR")==="rtl"?this.textContainerEl.style.marginLeft=F:this.textContainerEl.style.marginRight=F}};
_.N.onLineHeightChanged=function(){this.verified&&(this.lineHeight>=24||this.lineHeight===0&&this.height>=24)&&(this.textContainerEl.style.padding=_.b0("HTML_DIR")==="rtl"?"0 6px 0 2px":"0 2px 0 6px")};
_.N.handleResized=function(){var F=this;this.verified&&_.P0.addLowPriorityJob(function(){F.fitBackgroundToText();var W=getComputedStyle(F.hostElement).lineHeight;W&&(W=W.match(/\d+/))&&W.length&&(F.lineHeight=Number(W[0]));F.height=F.lineHeight&&!F.wrapText?F.lineHeight:F.textEl.offsetHeight})};
_.N.fitBackgroundToText=function(){if(this.verified&&this.wrapText){this.textEl.style.width="unset";var F=document.createRange(),W=_.Z(this.textEl).children;W.length>0?F.selectNodeContents(W[0]):F.selectNodeContents(this.textEl);this.textEl.style.width=Math.ceil(F.getBoundingClientRect().width)+"px"}};
_.N.computeChannelBadgeStyle=function(F){var W;if((F==null?0:(W=F.runs)==null?0:W.length)&&F.runs[0].textColor)return"--ytd-badge-icon-color:"+_.ZP(F.runs[0].textColor)+";"};
_.Sn.Object.defineProperties(f1.prototype,{verified:{configurable:!0,enumerable:!0,get:function(){return!(!this.forceVerified&&this.get("badges.0.metadataBadgeRenderer.style")!=="BADGE_STYLE_TYPE_UNIFIED_VERIFIED")}},
hideBadges:{configurable:!0,enumerable:!0,get:function(){return this.verified||!this.badges||this.badges.length===0}},
formattedName:{configurable:!0,enumerable:!0,get:function(){return typeof this.channelName==="string"?_.Gr(this.channelName):this.channelName}},
tooltipText:{configurable:!0,enumerable:!0,get:function(){if(this.verified){if(this.tooltip)return this.tooltip;var F=this.get("badges.0.metadataBadgeRenderer.tooltip");if(F)return F}return _.Yr(this.formattedName)}},
tooltipOffset:{configurable:!0,enumerable:!0,get:function(){return this.hasChannelArt?this.DEFAULT_TOOLTIP_OFFSET:this.TOOLTIP_OFFSET_NO_BANNER}}});
f1.prototype.onLineHeightChanged=f1.prototype.onLineHeightChanged;f1.prototype.onHeightChanged=f1.prototype.onHeightChanged;f1.prototype.onChannelNameChanged=f1.prototype.onChannelNameChanged;_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],f1.prototype,"ytActionHandlerBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],f1.prototype,"badges",void 0);_.T([_.O(),_.Y("design:type",Object)],f1.prototype,"channelName",void 0);
_.T([_.O(),_.Y("design:type",Object)],f1.prototype,"noEndpoints",void 0);_.T([_.O(),_.Y("design:type",Object)],f1.prototype,"wrapText",void 0);_.T([_.O(),_.Y("design:type",Object)],f1.prototype,"forceVerified",void 0);_.T([_.O(),_.Y("design:type",Object)],f1.prototype,"tooltipPosition",void 0);_.T([_.O(),_.Y("design:type",String)],f1.prototype,"tooltip",void 0);_.T([_.O(),_.Y("design:type",Boolean)],f1.prototype,"hasChannelArt",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],f1.prototype,"compactStyle",void 0);_.T([_.gQ("#text-container"),_.Y("design:type",HTMLElement)],f1.prototype,"textContainerEl",void 0);_.T([_.gQ("#text"),_.Y("design:type",Object)],f1.prototype,"textEl",void 0);_.T([_.gQ("#verified-tooltip"),_.Y("design:type",HTMLElement)],f1.prototype,"verifiedTooltip",void 0);_.T([_.O(),_.Y("design:type",Object)],f1.prototype,"height",void 0);
_.T([_.O(),_.Y("design:type",Object)],f1.prototype,"lineHeight",void 0);_.T([_.O({reflectToAttribute:!0}),_.a("badges","forceVerified"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],f1.prototype,"verified",null);_.T([_.a("badges","verified"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],f1.prototype,"hideBadges",null);_.T([_.a("channelName"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],f1.prototype,"formattedName",null);
_.T([_.a("badges","verified","formattedName"),_.Y("design:type",String),_.Y("design:paramtypes",[])],f1.prototype,"tooltipText",null);_.T([_.a("hasChannelArt"),_.Y("design:type",String),_.Y("design:paramtypes",[])],f1.prototype,"tooltipOffset",null);_.T([_.ea("channelName"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],f1.prototype,"onChannelNameChanged",null);
_.T([_.ea("height"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],f1.prototype,"onHeightChanged",null);_.T([_.ea("lineHeight","height"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],f1.prototype,"onLineHeightChanged",null);f1=_.T([_.y({is:"ytd-channel-name",disableElementRegistration:!0})],f1);
_.r(f1,"ytd-channel-name",function(){if(MWe!==void 0)return MWe;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-name--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" on-mouseover="logTooltipEvent" class="style-scope ytd-channel-name">\n  <div id="text-container" class="style-scope ytd-channel-name">\n    <yt-formatted-string id="text" ellipsis-truncate="[[!wrapText]]" link-inherit-color="" no-endpoints="[[noEndpoints]]" respect-lang-dir="" text="[[formattedName]]" title="" class="style-scope ytd-channel-name">\n    </yt-formatted-string>\n  </div>\n  <tp-yt-paper-tooltip fit-to-visible-bounds="" offset="[[tooltipOffset]]" position="[[tooltipPosition]]" class="style-scope ytd-channel-name">\n    [[tooltipText]]\n  </tp-yt-paper-tooltip>\n</div>\n<ytd-badge-supported-renderer badges="[[badges]]" hidden="[[hideBadges]]" style$="[[computeChannelBadgeStyle(formattedName)]]" class="style-scope ytd-channel-name">\n</ytd-badge-supported-renderer>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return MWe=F},{mode:_.E6("kevlar_poly_si_batch_j036")?1:2});var OL=function(){var F=_.n.apply(this,arguments)||this;F.standardizeIconSize=_.c("kevlar_system_icons");F.enableModernCommentBadges=_.c("enable_modern_comment_badges");return F};
_.k(OL,_.n);OL.prototype.basicPaletteChanged=function(){var F;(F=this.data.color)!=null&&F.basicColorPaletteData&&_.ZR(this.hostElement,this.data.color.basicColorPaletteData)};
OL.prototype.colorChanged=function(){if(!this.enableModernCommentBadges){var F,W=this.get("basicColorPaletteData.backgroundColor",(F=this.data)==null?void 0:F.color),E;F=this.get("basicColorPaletteData.foregroundTitleColor",(E=this.data)==null?void 0:E.color);E={};W?(W=_.ZP(W),E["--ytd-author-comment-badge-background-color"]=W):(E["--ytd-author-comment-badge-icon-background-color"]="transparent",E["--ytd-author-comment-badge-background-color"]="transparent");F?(W=_.ZP(F),E["--ytd-author-comment-badge-name-color"]=
W,E["--ytd-author-comment-badge-icon-color"]=W):E["--ytd-author-comment-badge-name-color"]="var(--yt-spec-text-primary)";Object.keys(E).length>0&&_.V9(this.hostElement,E)}};
OL.prototype.useFilledIcons=function(F){return _.c("kevlar_system_icons")&&(F==="CHECK_CIRCLE_THICK"||F==="OFFICIAL_ARTIST_BADGE")};
_.Sn.Object.defineProperties(OL.prototype,{verified:{configurable:!0,enumerable:!0,get:function(){return!!this.data.authorUnifiedVerified}},
creator:{configurable:!0,enumerable:!0,get:function(){return this.data.authorCreator||!!this.get("data.color.basicColorPaletteData.backgroundColor")}}});
OL.prototype.colorChanged=OL.prototype.colorChanged;OL.prototype.basicPaletteChanged=OL.prototype.basicPaletteChanged;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],OL.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],OL.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],OL.prototype,"standardizeIconSize",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],OL.prototype,"enableModernCommentBadges",void 0);
_.T([_.O({reflectToAttribute:!0}),_.a("data.authorUnifiedVerified"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],OL.prototype,"verified",null);_.T([_.O({reflectToAttribute:!0}),_.a("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],OL.prototype,"creator",null);_.T([_.ea("data.color.basicColorPaletteData"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],OL.prototype,"basicPaletteChanged",null);
_.T([_.ea("data.color"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],OL.prototype,"colorChanged",null);OL=_.T([_.y({is:"ytd-author-comment-badge-renderer",disableElementRegistration:!0})],OL);
_.r(OL,"ytd-author-comment-badge-renderer",function(){if(eEU!==void 0)return eEU;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-author-comment-badge-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="name" class="yt-simple-endpoint style-scope ytd-author-comment-badge-renderer" href$="[[computeOptionalHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]">\n  <ytd-channel-name id="channel-name" channel-name="[[data.authorText]]" force-verified="[[verified]]" tooltip="[[data.iconTooltip]]" class="style-scope ytd-author-comment-badge-renderer">\n  </ytd-channel-name>\n</a>\n<yt-icon id="icon" default-to-filled="[[useFilledIcons(data.icon.iconType)]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" size="12" class="style-scope ytd-author-comment-badge-renderer">\n</yt-icon>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return eEU=F},{mode:1});var QDX;var bZ=function(){return _.n.apply(this,arguments)||this};
_.k(bZ,_.n);bZ.prototype.computeThumbnailWidth=function(F){if(F==="BACKSTAGE_SURFACE_TYPE_STREAM")return 638};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],bZ.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],bZ.prototype,"data",void 0);_.T([_.O({computed:"computeIcon_(data.icon)"}),_.Y("design:type",String)],bZ.prototype,"icon",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",String)],bZ.prototype,"surface",void 0);
_.T([_.O({reflectToAttribute:!0,value:_.c("enable_shrink_image_size_on_web_posts_singleton")}),_.Y("design:type",Boolean)],bZ.prototype,"searchSxsUx",void 0);bZ=_.T([_.y({is:"ytd-backstage-image-renderer",disableElementRegistration:!0})],bZ);
_.r(bZ,"ytd-backstage-image-renderer",function(){if(QDX!==void 0)return QDX;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-image-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<template is="dom-if" if="[[data.command]]" class="style-scope ytd-backstage-image-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-backstage-image-renderer" href$="[[computeHref_(data.command)]]" data="[[data.commmand]]" aria-label$="[[data.accessibility.accessibilityData.label]]">\n    <div id="image-container" class="style-scope ytd-backstage-image-renderer">\n      <yt-img-shadow thumbnail="[[data.image]]" width="[[computeThumbnailWidth(surface)]]" class="style-scope ytd-backstage-image-renderer">\n      </yt-img-shadow>\n      <div id="image-icon-container" class="image-icon-container style-scope ytd-backstage-image-renderer" hidden="[[!data.icon]]">\n        <yt-icon icon="[[computeIcon_(data.icon)]]" class="style-scope ytd-backstage-image-renderer"></yt-icon>\n      </div>\n    </div>\n  </a>\n</template>\n<template is="dom-if" if="[[!data.command]]" class="style-scope ytd-backstage-image-renderer">\n    <div id="image-container" class="style-scope ytd-backstage-image-renderer">\n      <yt-img-shadow thumbnail="[[data.image]]" width="[[computeThumbnailWidth(surface)]]" class="style-scope ytd-backstage-image-renderer">\n      </yt-img-shadow>\n      <div id="generated-image-identifier" class="generated-image-identifier style-scope ytd-backstage-image-renderer" hidden="[[!data.generatedImageMetadata]]">\n        <yt-icon class="generated-image-icon style-scope ytd-backstage-image-renderer" icon="[[computeIcon_(data.generatedImageMetadata.icon)]]"></yt-icon>\n        <span class="generated-image-label style-scope ytd-backstage-image-renderer">[[data.generatedImageMetadata.label]]</span>\n      </div>\n      <div id="image-icon-container" class="image-icon-container style-scope ytd-backstage-image-renderer" hidden="[[!data.icon]]">\n        <yt-icon icon="[[computeIcon_(data.icon)]]" class="style-scope ytd-backstage-image-renderer"></yt-icon>\n      </div>\n    </div>\n</template>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return QDX=F},{mode:1});var zEz;var lZ=function(){var F=_.n.apply(this,arguments)||this;F.isLoading=!1;F.selectedItemIndex=-1;return F};
_.k(lZ,_.n);_.N=lZ.prototype;_.N.computeIsChannelOwner=function(F){if(!F)return!0;F=F[0];return!(F&&(F.signinEndpoint||F.selectServiceEndpoint))};
_.N.computeIsImagePoll=function(F){return(F==null?void 0:F.type)==="POLL_TYPE_IMAGE"};
_.N.computeIsTotalVotesDisabled=function(F){return!(F==null?0:F.totalVotes)};
_.N.thumbnailSrc=function(F){var W,E,h,d;return(F==null?0:(W=F.thumbnails)==null?0:(E=W[0])==null?0:E.url)?_.II((h=F.thumbnails)==null?void 0:(d=h[0])==null?void 0:d.url):void 0};
_.N.progressWidth=function(F){return"width:"+(F?F*100:0)+"%;"};
_.N.textAreaWidth=function(F){return this.isImagePoll?null:"width:"+(F?F*100:0)+"%;"};
_.N.hasEndpointStyle=function(){return this.isChannelOwner?"":"yt-simple-endpoint"};
_.N.dataChanged=function(){if(this.data&&(this.isLoading=!1,this.previousPollInfo=null,this.data.choices))for(var F=this.data.choices,W=0;W<F.length;W++)if(F[W].selected){this.selectedItemIndex=W;break}};
_.N.onPopupClosed=function(F,W){F=Number(this.pollVotes.selected);W.confirmed&&(this.selectChoice(F,!1),_.dW(this.hostElement,"yt-remove-comment-action",[{removeCommentAction:{commentId:this.data.votedCommentId}}]));this.pollVotes.selected=-1};
_.N.onPollChoiceSelected=function(){this.isLoading||this.isChannelOwner||this.selectChoice(Number(this.pollVotes.selected),!1);this.pollVotes.selected=-1};
_.N.onYtCommentPollRevert=function(F,W){W&&(this.selectChoice(W.selectedChoiceIndex,!0),this.set("data.totalVotes",W.totalVotes))};
_.N.onYtServiceRequestSent=function(F,W){if(W.actions)for(F=0;F<W.actions.length;F++){var E=W.actions[F];_.D(E,PP)&&this.set("data.totalVotes",_.D(E,PP).totalVotes)}};
_.N.onYtServiceRequestCompleted=function(F){var W=this.get("detail.data.actionResults.0.feedback",F);F=this.get("detail.data.actionResults.0.status",F);if(W==="FEEDBACK_DESELECT"||W==="FEEDBACK_SELECT")this.isLoading=!1,F==="STATUS_FAILED"?_.hF(this.hostElement,"yt-comment-poll-revert",this.previousPollInfo):this.previousPollInfo=null};
_.N.getEndpoint=function(F,W){return W===F?this.data.choices[W].deselectServiceEndpoint||null:this.data.choices[F].selectServiceEndpoint||null};
_.N.selectChoice=function(F,W){this.previousPollInfo||(this.previousPollInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var E=0;E<this.data.choices.length;E++){var h;if(F===this.selectedItemIndex){var d=!1;var V=h=null}else h=(d=E===F)?this.data.choices[E].voteRatioIfSelected:this.data.choices[E].voteRatioIfNotSelected,V=d?this.data.choices[E].votePercentageIfSelected:this.data.choices[E].votePercentageIfNotSelected;this.set("data.choices."+E+".voteRatio",h);
this.set("data.choices."+E+".votePercentage",V);this.set("data.choices."+E+".selected",d)}W||(this.isLoading=!0,(W=this.getEndpoint(F,this.selectedItemIndex))&&_.WZ().resolve(_.EJ).resolveCommand(W,{form:{element:this.hostElement}}));this.selectedItemIndex=this.selectedItemIndex===F?-1:F};
_.Sn.Object.defineProperties(lZ.prototype,{endpointStyle:{configurable:!0,enumerable:!0,get:function(){return this.isChannelOwner?"yt-simple-endpoint disable-cursor":"yt-simple-endpoint"}}});
lZ.prototype.onYtServiceRequestCompleted=lZ.prototype.onYtServiceRequestCompleted;lZ.prototype.onYtServiceRequestSent=lZ.prototype.onYtServiceRequestSent;lZ.prototype.onYtCommentPollRevert=lZ.prototype.onYtCommentPollRevert;lZ.prototype.onPopupClosed=lZ.prototype.onPopupClosed;lZ.prototype.dataChanged=lZ.prototype.dataChanged;_.T([_.J(_.WP),_.Y("design:type",Object)],lZ.prototype,"paperItemBehavior",void 0);
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],lZ.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Gf),_.Y("design:type",Object)],lZ.prototype,"ytdOpenPopupBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],lZ.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Object)],lZ.prototype,"isLoading",void 0);_.T([_.O({computed:"computeIsChannelOwner(data.choices)"}),_.Y("design:type",Boolean)],lZ.prototype,"isChannelOwner",void 0);
_.T([_.O({reflectToAttribute:!0,computed:"computeIsImagePoll(data)"}),_.Y("design:type",Boolean)],lZ.prototype,"isImagePoll",void 0);_.T([_.O({computed:"computeIsTotalVotesDisabled(data)"}),_.Y("design:type",Boolean)],lZ.prototype,"isTotalVotesDisabled",void 0);_.T([_.O(),_.Y("design:type",Object)],lZ.prototype,"previousPollInfo",void 0);_.T([_.O(),_.Y("design:type",Object)],lZ.prototype,"selectedItemIndex",void 0);_.T([_.gQ("#poll-votes"),_.Y("design:type",Object)],lZ.prototype,"pollVotes",void 0);
_.T([_.a("isChannelOwner"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],lZ.prototype,"endpointStyle",null);_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],lZ.prototype,"dataChanged",null);_.T([_.R4("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],lZ.prototype,"onPopupClosed",null);
_.T([_.R4("yt-comment-poll-revert"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],lZ.prototype,"onYtCommentPollRevert",null);_.T([_.R4("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.nQ]),_.Y("design:returntype")],lZ.prototype,"onYtServiceRequestSent",null);
_.T([_.R4("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],lZ.prototype,"onYtServiceRequestCompleted",null);lZ=_.T([_.y({is:"ytd-backstage-poll-renderer",disableElementRegistration:!0})],lZ);
_.r(lZ,"ytd-backstage-poll-renderer",function(){if(zEz!==void 0)return zEz;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-poll-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="vote-info" hidden="[[isTotalVotesDisabled]]" text="[[data.totalVotes]]" class="style-scope ytd-backstage-poll-renderer">\n</yt-formatted-string>\n<tp-yt-paper-listbox id="poll-votes" on-iron-select="onPollChoiceSelected" class="style-scope ytd-backstage-poll-renderer">\n  <template is="dom-repeat" items="[[data.choices]]" class="style-scope ytd-backstage-poll-renderer">\n    <a id="sign-in" class$="[[endpointStyle]] style-scope ytd-backstage-poll-renderer" href$="[[computeHref_(item.signinEndpoint)]]" data="[[item.signinEndpoint]]" role="option">\n      <tp-yt-paper-item class="vote-choice style-scope ytd-backstage-poll-renderer" name="[[index]]" selected$="[[item.selected]]" show-percentage$="[[item.votePercentage]]">\n        <template is="dom-if" if="[[!isImagePoll]]" class="style-scope ytd-backstage-poll-renderer">\n          <tp-yt-paper-button class="check-icons style-scope ytd-backstage-poll-renderer" hidden="[[isChannelOwner]]">\n            <yt-icon hidden="[[item.selected]]" icon="radio-button-unchecked" class="style-scope ytd-backstage-poll-renderer"></yt-icon>\n            <yt-icon class="checked style-scope ytd-backstage-poll-renderer" hidden="[[!item.selected]]" icon="check-circle" default-to-filled="true"></yt-icon>\n          </tp-yt-paper-button>\n        </template>\n        <template is="dom-if" if="[[isImagePoll]]" class="style-scope ytd-backstage-poll-renderer">\n          <img class="choice-image style-scope ytd-backstage-poll-renderer" alt="" src$="[[thumbnailSrc(item.image)]]">\n        </template>\n        <div class="choice-info style-scope ytd-backstage-poll-renderer">\n          <div class="text-area style-scope ytd-backstage-poll-renderer">\n            <yt-formatted-string class="choice-text style-scope ytd-backstage-poll-renderer" text="[[item.text]]">\n            </yt-formatted-string>\n            <yt-formatted-string class="vote-percentage style-scope ytd-backstage-poll-renderer" hidden="[[!item.votePercentage]]" text="[[item.votePercentage]]">\n            </yt-formatted-string>\n          </div>\n          <div class="vote-percentage-area style-scope ytd-backstage-poll-renderer" style$="[[textAreaWidth(item.voteRatio)]]">\n          </div>\n          <div class="progress-bar style-scope ytd-backstage-poll-renderer" hidden="[[!item.votePercentage]]" style$="[[progressWidth(item.voteRatio)]]">\n          </div>\n        </div>\n      </tp-yt-paper-item>\n    </a>\n  </template>\n</tp-yt-paper-listbox>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return zEz=F},{mode:2});var tWe;var C3c={autoplay:!1,loop:!1},BJT={simpleText:""},n1=function(){var F=_.n.apply(this,arguments)||this;F.isLoading=!1;F.usesPanelLockup=!1;F.selectedItemIndex=-1;F.baseCorrectLottiePlayerAnimationConfig=Object.assign({},{name:"CORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizCorrect_LightTheme_01a.json",renderer:"svg"},C3c,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"12 20 80 80"}});F.baseIncorrectLottiePlayerAnimationConfig=Object.assign({},{name:"INCORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizIncorrect_LightTheme_01a.json",
renderer:"svg"},C3c,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"26 26 80 80"}});F.correctnessAnimationProps=[];F.correctnessAnimationRefs=[];return F};
_.k(n1,_.n);_.N=n1.prototype;_.N.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.ytRendererBehavior.markDirty()};
_.N.computeIsChannelOwner=function(F){if(!F)return!0;F=F[0];return!(F&&(F.signinEndpoint||F.selectServiceEndpoint))};
_.N.computeIsTotalVotesDisabled=function(F){return!(F==null?0:F.totalVotes)};
_.N.computeIsImageQuiz=function(F){return(F==null?void 0:F.type)==="POLL_TYPE_IMAGE"};
_.N.onExplanationChanged=function(){this.expander.reset()};
_.N.dataChanged=function(){if(this.data){this.isLoading=!1;this.previousQuizInfo=null;var F=this.data.choices;if(F){this.maybeInitializeQuizLotties(F);for(var W=0;W<F.length;W++)if(F[W].isSelected||this.isChannelOwner&&F[W].isCorrect){this.selectedItemIndex=W;return}this.selectedItemIndex=-1}}};
_.N.onQuizChoiceSelected=function(){if(this.isLoading||this.isChannelOwner||this.isQuizAnsweringDisabled)this.quizVotes.selected=-1;else{var F=this.selectedItemIndex,W=Number(this.quizVotes.selected);this.selectChoice(W);this.sendVoteAction(W,F);this.quizVotes.selected=-1;var E;F=!((E=this.data)==null?0:E.enableAnimation);this.maybePlayAnswerAnimations(F)}};
_.N.onYtCommentPollRevert=function(F,W){W&&(this.selectChoice(W.selectedChoiceIndex),this.set("data.totalVotes",W.totalVotes))};
_.N.onYtServiceRequestSent=function(F,W){if(W.actions)for(F=_.U(W.actions),W=F.next();!W.done;W=F.next())(W=_.D(W.value,PP))&&this.set("data.totalVotes",W.totalVotes)};
_.N.onYtServiceRequestCompleted=function(F){var W=this.get("detail.data.actionResults.0.feedback",F);F=this.get("detail.data.actionResults.0.status",F);if(W==="FEEDBACK_DESELECT"||W==="FEEDBACK_SELECT")this.isLoading=!1,F==="STATUS_FAILED"?_.hF(this.hostElement,"yt-comment-quiz-revert",this.previousQuizInfo):this.previousQuizInfo=null};
_.N.getAnimationPropsForChoiceIndex=function(F,W){return W[F]};
_.N.maybePlayAnswerAnimations=function(F){F=F===void 0?!1:F;var W;if((W=this.data)!=null&&W.choices&&!(this.correctnessAnimationRefs.length<this.data.choices.length)){W=_.U(this.correctnessAnimationRefs);for(var E=W.next();!E.done;E=W.next()){var h=void 0,d=void 0;(h=E.value)==null||(d=h.lottieEl)==null||d.stop()}if(!(this.selectedItemIndex<0)){W=0;F&&(W=this.isCorrect?37:25);var V,R;(V=this.correctnessAnimationRefs[this.selectedItemIndex])==null||(R=V.lottieEl)==null||R.goToAndPlay(F?W:0,!0);if(!(this.isCorrect||
(V=this.data.choices.findIndex(function(C){return C.isCorrect}),V<0))){var M,g;
(g=(M=this.correctnessAnimationRefs[V])==null?void 0:M.lottieEl)==null||g.goToAndPlay(37,!0);var t;M=(t=this.fadeContainers)==null?void 0:t.item(V);!F&&M&&this.fadeIn(M)}}}};
_.N.thumbnailSrc=function(F){var W,E,h,d;return(F==null?0:(W=F.thumbnails)==null?0:(E=W[0])==null?0:E.url)?_.II((h=F.thumbnails)==null?void 0:(d=h[0])==null?void 0:d.url):void 0};
_.N.a11yVotedText=function(F,W){var E,h,d=((E=this.data)==null?void 0:(h=E.correctVotedText)==null?void 0:h.simpleText)||"",V,R;E=((V=this.data)==null?void 0:(R=V.votedText)==null?void 0:R.simpleText)||"";if(!W)return"";var M,g;if((M=this.data)==null?0:(g=M.choices)==null?0:g[F].isCorrect)return d;var t,C;return((t=this.data)==null?0:(C=t.choices)==null?0:C[F].isSelected)?E:""};
_.N.getEndpoint=function(F,W){return W===F?this.data.choices[F].deselectServiceEndpoint||null:this.data.choices[F].selectServiceEndpoint||null};
_.N.sendVoteAction=function(F,W){if(F=this.getEndpoint(F,W))this.isLoading=!0,this.ytComponentBehavior.resolveCommand(F)};
_.N.selectChoice=function(F){this.previousQuizInfo||(this.previousQuizInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var W=0;W<this.data.choices.length;W++)this.set("data.choices."+W+".isSelected",F===this.selectedItemIndex?!1:W===F);this.selectedItemIndex=this.selectedItemIndex===F?-1:F};
_.N.maybeInitializeQuizLotties=function(F){var W=this;this.isDarkTheme&&(this.baseCorrectLottiePlayerAnimationConfig.path="https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizCorrect_DarkTheme_01a.json",this.baseIncorrectLottiePlayerAnimationConfig.path="https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizIncorrect_DarkTheme_01a.json");this.correctnessAnimationProps=F.map(function(E){return{animationConfig:E.isCorrect?W.baseCorrectLottiePlayerAnimationConfig:W.baseIncorrectLottiePlayerAnimationConfig,
animationRef:{},listeners:{DOMLoaded:function(){W.maybePlayAnswerAnimations(!0)}}}});
this.correctnessAnimationRefs=this.correctnessAnimationProps.map(function(E){return E.animationRef||{}})};
_.N.fadeIn=function(F){F.classList.add("fade-in");_.Ed(_.P0,function(){F.classList.remove("fade-in")},900)};
_.Sn.Object.defineProperties(n1.prototype,{shouldUseModernUi:{configurable:!0,enumerable:!0,get:function(){return _.c("enable_modern_quiz_consumption_ui")||this.usesPanelLockup}},
showExplanation:{configurable:!0,enumerable:!0,get:function(){return _.Yr(this.explanation).length>0&&this.showCorrectAnswer}},
showCorrectAnswer:{configurable:!0,enumerable:!0,get:function(){return this.isChannelOwner||this.isAttempted}},
isQuizAnsweringDisabled:{configurable:!0,enumerable:!0,get:function(){return this.isChannelOwner||this.isAttempted}},
endpointStyle:{configurable:!0,enumerable:!0,get:function(){return this.isQuizAnsweringDisabled?"yt-simple-endpoint disable-cursor":"yt-simple-endpoint"}},
isAttempted:{configurable:!0,enumerable:!0,get:function(){var F,W;return((F=this.data)==null?void 0:(W=F.choices)==null?void 0:W.some(function(E){return E.isSelected}))||!1}},
explanation:{configurable:!0,enumerable:!0,get:function(){var F;return(F=this.data)==null||!F.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?BJT:this.data.choices[this.selectedItemIndex].explanation||BJT}},
isCorrect:{configurable:!0,enumerable:!0,get:function(){var F;return(F=this.data)==null||!F.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?!1:this.data.choices[this.selectedItemIndex].isCorrect||!1}}});
n1.prototype.onYtServiceRequestCompleted=n1.prototype.onYtServiceRequestCompleted;n1.prototype.onYtServiceRequestSent=n1.prototype.onYtServiceRequestSent;n1.prototype.onYtCommentPollRevert=n1.prototype.onYtCommentPollRevert;n1.prototype.dataChanged=n1.prototype.dataChanged;n1.prototype.onExplanationChanged=n1.prototype.onExplanationChanged;_.T([_.J(_.WP),_.Y("design:type",Object)],n1.prototype,"paperItemBehavior",void 0);
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],n1.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],n1.prototype,"ytComponentBehavior",void 0);_.T([_.J(_.ua.YtTaskEmitterBehavior),_.Y("design:type",Object)],n1.prototype,"ytTaskEmitterBehavior",void 0);_.T([_.J(_.Gf),_.Y("design:type",Object)],n1.prototype,"ytdOpenPopupBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],n1.prototype,"data",void 0);
_.T([_.O(),_.Y("design:type",Object)],n1.prototype,"isLoading",void 0);_.T([_.O(),_.Y("design:type",Object)],n1.prototype,"usesPanelLockup",void 0);_.T([_.O({reflectToAttribute:!0,computed:"computeIsChannelOwner(data.choices)"}),_.Y("design:type",Boolean)],n1.prototype,"isChannelOwner",void 0);_.T([_.O({computed:"computeIsTotalVotesDisabled(data)"}),_.Y("design:type",Boolean)],n1.prototype,"isTotalVotesDisabled",void 0);
_.T([_.O({reflectToAttribute:!0,computed:"computeIsImageQuiz(data)"}),_.Y("design:type",Boolean)],n1.prototype,"isImageQuiz",void 0);_.T([_.O(),_.Y("design:type",Object)],n1.prototype,"previousQuizInfo",void 0);_.T([_.O(),_.Y("design:type",Object)],n1.prototype,"selectedItemIndex",void 0);_.T([_.O({reflectToAttribute:!0}),_.a("data","usesPanelLockup"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],n1.prototype,"shouldUseModernUi",null);
_.T([_.Q9(".fade-container"),_.Y("design:type",Object)],n1.prototype,"fadeContainers",void 0);_.T([_.O(),_.Y("design:type",Array)],n1.prototype,"correctnessAnimationProps",void 0);_.T([_.a("explanation","showCorrectAnswer"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],n1.prototype,"showExplanation",null);_.T([_.a("isChannelOwner","isAttempted"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],n1.prototype,"showCorrectAnswer",null);
_.T([_.a("isChannelOwner","isAttempted","data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],n1.prototype,"isQuizAnsweringDisabled",null);_.T([_.a("isQuizAnsweringDisabled"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],n1.prototype,"endpointStyle",null);_.T([_.a("data","selectedItemIndex"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],n1.prototype,"isAttempted",null);
_.T([_.a("data","selectedItemIndex"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],n1.prototype,"explanation",null);_.T([_.a("data","selectedItemIndex"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],n1.prototype,"isCorrect",null);_.T([_.gQ("ytd-expander"),_.Y("design:type",Object)],n1.prototype,"expander",void 0);_.T([_.gQ("#quiz-votes"),_.Y("design:type",Object)],n1.prototype,"quizVotes",void 0);
_.T([_.ea("explanation"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],n1.prototype,"onExplanationChanged",null);_.T([_.ea("data","isChannelOwner"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],n1.prototype,"dataChanged",null);_.T([_.R4("yt-comment-quiz-revert"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],n1.prototype,"onYtCommentPollRevert",null);
_.T([_.R4("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.nQ]),_.Y("design:returntype")],n1.prototype,"onYtServiceRequestSent",null);_.T([_.R4("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],n1.prototype,"onYtServiceRequestCompleted",null);n1=_.T([_.y({is:"ytd-backstage-quiz-renderer",disableElementRegistration:!0})],n1);
_.r(n1,"ytd-backstage-quiz-renderer",function(){if(tWe!==void 0)return tWe;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-quiz-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="vote-info" hidden="[[isTotalVotesDisabled]]" text="[[data.totalVotes]]" class="style-scope ytd-backstage-quiz-renderer">\n</yt-formatted-string>\n<tp-yt-paper-listbox id="quiz-votes" on-iron-select="onQuizChoiceSelected" class="style-scope ytd-backstage-quiz-renderer">\n  <template is="dom-repeat" items="[[data.choices]]" class="style-scope ytd-backstage-quiz-renderer">\n    <a id="sign-in" class$="[[endpointStyle]] style-scope ytd-backstage-quiz-renderer" aria-disabled="[[isQuizAnsweringDisabled]]" href$="[[computeHref_(item.signinEndpoint)]]" data="[[item.signinEndpoint]]" role="button">\n      <tp-yt-paper-item class="vote-choice style-scope ytd-backstage-quiz-renderer" aria-disabled="[[isQuizAnsweringDisabled]]" attempted$="[[isAttempted]]" correct$="[[item.isCorrect]]" is-channel-owner$="[[isChannelOwner]]" name="[[index]]" role="button" selected$="[[item.isSelected]]" show-correct-answer$="[[showCorrectAnswer]]">\n        <div class="choice-info style-scope ytd-backstage-quiz-renderer">\n          <template is="dom-if" if="[[isImageQuiz]]" class="style-scope ytd-backstage-quiz-renderer">\n            <img class="choice-image style-scope ytd-backstage-quiz-renderer" alt="" src$="[[thumbnailSrc(item.image)]]">\n          </template>\n          <div class="text-area style-scope ytd-backstage-quiz-renderer">\n            <yt-formatted-string class="choice-text style-scope ytd-backstage-quiz-renderer" text="[[item.text]]"> </yt-formatted-string>\n            \n            <div class="a11y-voted-text style-scope ytd-backstage-quiz-renderer" aria-label$="[[a11yVotedText(index, isAttempted)]]"> </div>\n            \n            <span style="user-select: none" class="style-scope ytd-backstage-quiz-renderer"> \u00a0 </span>\n            <div class="voted-box style-scope ytd-backstage-quiz-renderer">\n              <yt-formatted-string class="vote-percentage style-scope ytd-backstage-quiz-renderer" hidden="[[!item.votePercentage]]" text="[[item.votePercentage]]">\n              </yt-formatted-string>\n              <div class="fade-container animation-container style-scope ytd-backstage-quiz-renderer">\n                <ytd-lottie-player class-name="[[is]] correctness-lottie" data="[[getAnimationPropsForChoiceIndex(index, correctnessAnimationProps)]]" class="style-scope ytd-backstage-quiz-renderer">\n                </ytd-lottie-player>\n              </div>\n            </div>\n          </div>\n        </div>\n      </tp-yt-paper-item>\n    </a>\n  </template>\n</tp-yt-paper-listbox>\n<div class="explanation-box style-scope ytd-backstage-quiz-renderer" correct$="[[isCorrect]]" hidden="[[!showExplanation]]">\n  <yt-formatted-string class="explanation-header style-scope ytd-backstage-quiz-renderer" correct$="[[isCorrect]]" text="[[data.explanationHeaderText]]">\n  </yt-formatted-string>\n  <ytd-expander id="expander" max-number-of-lines="3" class="style-scope ytd-backstage-quiz-renderer">\n    <yt-formatted-string class="choice-explanation style-scope ytd-backstage-quiz-renderer" slot="content" force-default-style="" text="[[explanation]]">\n    </yt-formatted-string>\n    <span class="exp-button style-scope ytd-backstage-quiz-renderer" slot="more-button">[[getSimpleString(data.explanationExpandText)]]</span>\n    <span class="exp-button style-scope ytd-backstage-quiz-renderer" slot="less-button">[[getSimpleString(data.explanationCollapseText)]]</span>\n  </ytd-expander>\n</div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return tWe=F},{mode:1});var vXM;var yC=function(){return _.n.apply(this,arguments)||this};
_.k(yC,_.n);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],yC.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],yC.prototype,"data",void 0);yC=_.T([_.y({is:"ytd-post-uploaded-video-renderer",disableElementRegistration:!0})],yC);
_.r(yC,"ytd-post-uploaded-video-renderer",function(){if(vXM!==void 0)return vXM;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-post-uploaded-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="thumbnail-container" class="style-scope ytd-post-uploaded-video-renderer">\n  <yt-img-shadow thumbnail="[[data.thumbnail]]" class="style-scope ytd-post-uploaded-video-renderer">\n  </yt-img-shadow>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return vXM=F},{mode:1});var IQ_;var jg=function(){return _.n.apply(this,arguments)||this};
_.k(jg,_.n);jg.prototype.useFilledIcons=function(F){return F==="SPONSORSHIP_STAR"};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],jg.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],jg.prototype,"data",void 0);jg=_.T([_.y({is:"ytd-sponsors-only-badge-renderer",disableElementRegistration:!0})],jg);
_.r(jg,"ytd-sponsors-only-badge-renderer",function(){if(IQ_!==void 0)return IQ_;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsors-only-badge-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon id="icon" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" default-to-filled="[[useFilledIcons(data.icon.iconType)]]" class="style-scope ytd-sponsors-only-badge-renderer">\n</yt-icon>\n<yt-formatted-string id="label" text="[[data.label]]" class="style-scope ytd-sponsors-only-badge-renderer"></yt-formatted-string>\n<template is="dom-if" if="[[data.tooltip]]" class="style-scope ytd-sponsors-only-badge-renderer">\n  <tp-yt-paper-tooltip for="label" class="style-scope ytd-sponsors-only-badge-renderer">\n    <yt-formatted-string split-lines="true" text="[[data.tooltip]]" class="style-scope ytd-sponsors-only-badge-renderer"></yt-formatted-string>\n  </tp-yt-paper-tooltip>\n</template>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return IQ_=F},{mode:1});var cpT;var iZ=function(){return _.n.apply(this,arguments)||this};
_.k(iZ,_.n);_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],iZ.prototype,"componentBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],iZ.prototype,"data",void 0);iZ=_.T([_.y({is:"ytd-child-video-renderer",disableElementRegistration:!0})],iZ);
_.r(iZ,"ytd-child-video-renderer",function(){if(cpT!==void 0)return cpT;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-child-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-child-video-renderer" id="title" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]"><yt-formatted-string id="video-title" ellipsis-truncate="" text="[[data.title]]" class="style-scope ytd-child-video-renderer"></yt-formatted-string><div id="length" class="style-scope ytd-child-video-renderer">[[getSimpleString(data.lengthText)]]</div></a>');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return cpT=F},{mode:1});var D9e;var x9M;var r7=function(){var F=_.n.apply(this,arguments)||this;F.size=0;F.enableWebModernCollectionsV2=_.c("web_modern_collections_v2");F.fallbackImageSize={height:void 0,width:9999};F.webModernCollections=!1;return F};
_.k(r7,_.n);_.N=r7.prototype;_.N.computeBlurredImageSize=function(F){return F?{height:F*2,width:F*2}:this.fallbackImageSize};
_.N.computeImageSize=function(F){return F?{height:F,width:F}:this.fallbackImageSize};
_.N.computeObjectFit=function(F){return F?"FILL":"CONTAIN"};
_.N.computePreserve=function(F){return F?!0:!1};
_.N.setBackground=function(){var F,W;_.c("web_modern_collections_v2")&&((F=this.data)==null?0:(W=F.thumbnail)==null?0:W.sampledThumbnailColor)&&(F=this.data.thumbnail.sampledThumbnailColor,this.hostElement.style.background="rgba("+F.red+","+F.green+","+F.blue+",1)")};
r7.prototype.setBackground=r7.prototype.setBackground;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],r7.prototype,"ytRendererBehavior",void 0);_.T([_.O({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],r7.prototype,"watchFeedThumbnail",void 0);_.T([_.O(),_.Y("design:type",Object)],r7.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Object)],r7.prototype,"size",void 0);
_.T([_.O({computed:"computeBlurredImageSize(size)"}),_.Y("design:type",Object)],r7.prototype,"blurredImageSize",void 0);_.T([_.O({computed:"computeImageSize(size)"}),_.Y("design:type",Object)],r7.prototype,"imageSize",void 0);_.T([_.O({computed:"computePreserve(size)"}),_.Y("design:type",String)],r7.prototype,"preserve",void 0);_.T([_.O({computed:"computeObjectFit(size)"}),_.Y("design:type",String)],r7.prototype,"objectFit",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],r7.prototype,"enableWebModernCollectionsV2",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],r7.prototype,"webModernCollections",void 0);_.T([_.ea("data.thumbnail.sampledThumbnailColor"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],r7.prototype,"setBackground",null);r7=_.T([_.y({is:"ytd-playlist-custom-thumbnail-renderer",disableElementRegistration:!0})],r7);
_.r(r7,"ytd-playlist-custom-thumbnail-renderer",function(){if(x9M!==void 0)return x9M;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-custom-thumbnail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[webModernCollections]]" class="style-scope ytd-playlist-custom-thumbnail-renderer">\n    <div class="blurred-image-wrapper style-scope ytd-playlist-custom-thumbnail-renderer" style$="[[backgroundStyle]]">\n        <yt-image class="blurred-image style-scope ytd-playlist-custom-thumbnail-renderer" alt="hidden" aria-hidden="true" data="[[data.thumbnail]]" ftl-eligible="" height="[[blurredImageSize.height]]" object-position="TOP_START" preserve-height="[[preserve]]" preserve-width="[[preserve]]" width="[[blurredImageSize.width]]">\n        </yt-image>\n    </div>\n</template>\n<yt-image class="custom-thumbnail style-scope ytd-playlist-custom-thumbnail-renderer" alt="" data="[[data.thumbnail]]" ftl-eligible="" height="[[imageSize.height]]" object-fit="[[objectFit]]" object-position="TOP_START" preserve-height="[[preserve]]" preserve-width="[[preserve]]" width="[[imageSize.width]]">\n</yt-image>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return x9M=F},{mode:1});var kIT;var T9=function(){return _.n.apply(this,arguments)||this};
_.k(T9,_.n);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],T9.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],T9.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Number)],T9.prototype,"width",void 0);T9=_.T([_.y({is:"ytd-playlist-video-thumbnail-renderer",disableElementRegistration:!0})],T9);
_.r(T9,"ytd-playlist-video-thumbnail-renderer",function(){if(kIT!==void 0)return kIT;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-video-thumbnail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-image alt="" data="[[data.thumbnail]]" ftl-eligible="" width="[[width]]" class="style-scope ytd-playlist-video-thumbnail-renderer">\n</yt-image>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return kIT=F},{mode:1});var ApM;var oG=function(){return _.n.apply(this,arguments)||this};
_.k(oG,_.n);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],oG.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],oG.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Number)],oG.prototype,"width",void 0);oG=_.T([_.y({is:"ytd-show-custom-thumbnail-renderer",disableElementRegistration:!0})],oG);
_.r(oG,"ytd-show-custom-thumbnail-renderer",function(){if(ApM!==void 0)return ApM;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-show-custom-thumbnail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-image alt="" data="[[data.thumbnail]]" width="[[width]]" class="style-scope ytd-show-custom-thumbnail-renderer">\n</yt-image>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return ApM=F},{mode:1});var sDa;var G9=function(){return _.n.apply(this,arguments)||this};
_.k(G9,_.n);G9.prototype.useFilledIcons=function(F){return F==="MUSIC"||F==="COURSE"};
G9.prototype.overlayColorChanged=function(){if(typeof this.overlayColor==="number")this.hostElement.style.backgroundColor=HB(this.overlayColor,"0.8");else if(this.overlayColor){var F=this.overlayColor;this.hostElement.style.backgroundColor="rgba("+F.red+","+F.green+","+F.blue+",0.8)"}};
_.Sn.Object.defineProperties(G9.prototype,{overlayStyle:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.text||!this.data.icon)}},
overlayTextStyle:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.text||this.data.icon)}}});
G9.prototype.overlayColorChanged=G9.prototype.overlayColorChanged;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],G9.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],G9.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Object)],G9.prototype,"overlayColor",void 0);_.T([_.O({reflectToAttribute:!0}),_.a("data.icon","data.text"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],G9.prototype,"overlayStyle",null);
_.T([_.O({reflectToAttribute:!0}),_.a("data.icon","data.text"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],G9.prototype,"overlayTextStyle",null);_.T([_.ea("overlayColor"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],G9.prototype,"overlayColorChanged",null);G9=_.T([_.y({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-bottom-panel-renderer"})],G9);
_.r(G9,"ytd-thumbnail-overlay-bottom-panel-renderer",function(){if(sDa!==void 0)return sDa;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-bottom-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon default-to-filled="[[useFilledIcons(data.icon.iconType)]]" hidden="[[!data.icon]]" icon="[[data.icon.iconType]]" class="style-scope ytd-thumbnail-overlay-bottom-panel-renderer"></yt-icon>\n<yt-formatted-string text="[[data.text]]" class="style-scope ytd-thumbnail-overlay-bottom-panel-renderer"></yt-formatted-string>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return sDa=F},{mode:1});var Lki;var Yf=function(){var F=_.n.apply(this,arguments)||this;F.active=!1;return F};
_.k(Yf,_.n);Yf.prototype.computeIsSpinnerHidden=function(F){return(F==null?void 0:F.state)!=="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING"};
Yf.prototype.computeOverlayIcon=function(F){return(F==null?void 0:F.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED"?"ERROR_OUTLINE":(F==null?void 0:F.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER"?"OFFLINE_PAUSE":"OFFLINE_DOWNLOADING_SPINNER"};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Yf.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],Yf.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Object)],Yf.prototype,"active",void 0);Yf=_.T([_.y({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-downloading-renderer"})],Yf);
_.r(Yf,"ytd-thumbnail-overlay-downloading-renderer",function(){if(Lki!==void 0)return Lki;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-downloading-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon icon="[[computeOverlayIcon(data)]]" class="style-scope ytd-thumbnail-overlay-downloading-renderer"></yt-icon>\n<tp-yt-paper-spinner-lite active="[[active]]" hidden="[[computeIsSpinnerHidden(data)]]" class="style-scope ytd-thumbnail-overlay-downloading-renderer"></tp-yt-paper-spinner-lite>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return Lki=F},{mode:1});var qE_;var w7=function(){return _.n.apply(this,arguments)||this};
_.k(w7,_.n);_.Sn.Object.defineProperties(w7.prototype,{text:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.ytRendererBehavior.getSimpleString(this.data.text)}}});
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],w7.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],w7.prototype,"data",void 0);_.T([_.a("data.text"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],w7.prototype,"text",null);w7=_.T([_.y({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-hover-text-renderer"})],w7);
_.r(w7,"ytd-thumbnail-overlay-hover-text-renderer",function(){if(qE_!==void 0)return qE_;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-hover-text-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon icon="[[data.icon.iconType]]" class="style-scope ytd-thumbnail-overlay-hover-text-renderer"></yt-icon>\n<span class="style-scope ytd-thumbnail-overlay-hover-text-renderer">[[text]]</span>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return qE_=F},{mode:1});var $9M,ZZc=function(){if($9M!==void 0)return $9M;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-equalizer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<svg xmlns="http://www.w3.org/2000/svg" id="equalizer" viewBox="0 0 55 95" class="style-scope ytd-thumbnail-overlay-equalizer">\n  <g class="style-scope ytd-thumbnail-overlay-equalizer">\n    <rect class="bar style-scope ytd-thumbnail-overlay-equalizer" x="0"></rect>\n    <rect class="bar style-scope ytd-thumbnail-overlay-equalizer" x="20"></rect>\n    <rect class="bar style-scope ytd-thumbnail-overlay-equalizer" x="40"></rect>\n  </g>\n</svg>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return $9M=F};var uZ=function(){return _.n.apply(this,arguments)||this};
_.k(uZ,_.n);_.Sn.Object.defineProperties(uZ,{template:{configurable:!0,enumerable:!0,get:function(){return ZZc()}}});
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],uZ.prototype,"animateEqualizer",void 0);uZ=_.T([_.y({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-equalizer"})],uZ);_.We()(uZ,"ytd-thumbnail-overlay-equalizer",function(){return ZZc()},{allowedProps:["animateEqualizer"],
mode:1});var X7X;var Sg=function(){var F=_.n.apply(this,arguments)||this;F.nowPlayingBadge=_.c("web_now_playing_badge");F.actionMap={"yt-miniplayer-play-state-changed":"onMiniplayerPlayStateChanged"};return F};
_.k(Sg,_.n);Sg.prototype.activeChanged=function(){var F=this;_.c("web_enable_playlist_video_lockup_equalizer")&&this.isActive&&_.wT(this,function(){_.hF(F.hostElement,"yt-playlist-lockup-now-playing-active",F)})};
Sg.prototype.onMiniplayerPlayStateChanged=function(F){var W,E=(W=_.D(_.DT().currentEndpoint,_.GM))==null?void 0:W.videoId;this.isVideoPlaying=F&&(_.c("web_limit_now_playing_animation_killswitch")||this.videoId===E)};
Sg.prototype.activeChanged=Sg.prototype.activeChanged;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Sg.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],Sg.prototype,"ytActionHandlerBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],Sg.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Boolean)],Sg.prototype,"isVideoPlaying",void 0);_.T([_.O(),_.Y("design:type",String)],Sg.prototype,"videoId",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Sg.prototype,"equalizerOnly",void 0);_.T([_.O(),_.Y("design:type",Boolean)],Sg.prototype,"isActive",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],Sg.prototype,"nowPlayingBadge",void 0);_.T([_.ea("isActive"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Sg.prototype,"activeChanged",null);
Sg=_.T([_.y({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-now-playing-renderer"})],Sg);
_.r(Sg,"ytd-thumbnail-overlay-now-playing-renderer",function(){if(X7X!==void 0)return X7X;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-now-playing-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<span id="overlay-text" hidden="[[equalizerOnly]]" class="style-scope ytd-thumbnail-overlay-now-playing-renderer">[[getSimpleString(data.text)]]</span>\n<ytd-thumbnail-overlay-equalizer animate-equalizer="[[isVideoPlaying]]" class="style-scope ytd-thumbnail-overlay-now-playing-renderer">\n</ytd-thumbnail-overlay-equalizer>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return X7X=F},{mode:1});var HZp;var p1=function(){return _.n.apply(this,arguments)||this};
_.k(p1,_.n);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],p1.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],p1.prototype,"data",void 0);p1=_.T([_.y({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-playback-status-renderer"})],p1);
_.r(p1,"ytd-thumbnail-overlay-playback-status-renderer",function(){if(HZp!==void 0)return HZp;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-playback-status-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" items="[[data.texts]]" class="style-scope ytd-thumbnail-overlay-playback-status-renderer"><yt-formatted-string text="[[item]]" class="style-scope ytd-thumbnail-overlay-playback-status-renderer"></yt-formatted-string></template>');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return HZp=F},{mode:_.E6("kevlar_poly_si_batch_j025")?1:2});var P3_;var mm=function(){return _.n.apply(this,arguments)||this};
_.k(mm,_.n);mm.prototype.onDurationChanged=function(){var F,W;_.Z(this.hostElement).querySelector("#progress").style.width=((W=(F=this.data)==null?void 0:F.percentDurationWatched)!=null?W:0)+"%"};
mm.prototype.onDurationChanged=mm.prototype.onDurationChanged;_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],mm.prototype,"componentBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],mm.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],mm.prototype,"isLive",void 0);_.T([_.ea("data.percentDurationWatched"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],mm.prototype,"onDurationChanged",null);
mm=_.T([_.y({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-resume-playback-renderer"})],mm);
_.r(mm,"ytd-thumbnail-overlay-resume-playback-renderer",function(){if(P3_!==void 0)return P3_;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-resume-playback-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="progress" class="style-scope ytd-thumbnail-overlay-resume-playback-renderer"></div>');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return P3_=F},{mode:1});var JpH;var K1=function(){var F=_.n.apply(this,arguments)||this;F.bottomPanel=!1;F.richGridOverlay=!1;F.watchFeedOverlay=!1;F.isCompact=!1;return F};
_.k(K1,_.n);K1.prototype.widthChanged=function(){this.watchFeedOverlay?this.hostElement.style.width="":this.richGridOverlay||(this.hostElement.style.width=this.width+"px")};
_.Sn.Object.defineProperties(K1.prototype,{isIconFilled:{configurable:!0,enumerable:!0,get:function(){var F,W;return((F=this.data)==null?void 0:(W=F.icon)==null?void 0:W.iconType)==="PLAY_ALL"&&_.c("kevlar_system_icons")}}});
K1.prototype.widthChanged=K1.prototype.widthChanged;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],K1.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],K1.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Number)],K1.prototype,"width",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],K1.prototype,"bottomPanel",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],K1.prototype,"richGridOverlay",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],K1.prototype,"watchFeedOverlay",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],K1.prototype,"isCompact",void 0);_.T([_.a("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],K1.prototype,"isIconFilled",null);_.T([_.ea("width","watchFeedOverlay"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],K1.prototype,"widthChanged",null);
K1=_.T([_.y({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-side-panel-renderer"})],K1);
_.r(K1,"ytd-thumbnail-overlay-side-panel-renderer",function(){if(JpH!==void 0)return JpH;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-side-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.text]]" class="style-scope ytd-thumbnail-overlay-side-panel-renderer"></yt-formatted-string>\n<yt-icon default-to-filled="[[isIconFilled]]" icon="[[data.icon.iconType]]" class="style-scope ytd-thumbnail-overlay-side-panel-renderer"></yt-icon>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return JpH=F},{mode:1});var aQX;var fQp=["CLIP","SHORTS"],Ft=function(){var F=_.n.apply(this,arguments)||this;F.animated=_.c("animated_live_badge_icon");F.hasIcon=!1;F.updateTimerIntervalId=0;F.timeSinceLive=0;return F};
_.k(Ft,_.n);_.N=Ft.prototype;_.N.detached=function(){clearInterval(this.updateTimerIntervalId)};
_.N.dataChanged=function(){this.data&&(this.hasIcon=!!this.data.icon)};
_.N.computeHideTimeStatus=function(){return this.hideBadgeShape?!this.hasIconOrText():!0};
_.N.hasIconOrText=function(){var F,W;return!!(((F=this.data)==null?0:F.icon)||((W=this.data)==null?0:W.text))};
_.N.initializeLiveBadgeTimer=function(){var F=this,W,E=(W=this.liveBadgeData)==null?void 0:W.startTimestampSec;if(E&&this.canShowLiveBadgeTimer()){var h;W=Number((h=this.liveBadgeData)==null?void 0:h.tickIntervalUsec)/1E3||1E3;this.timeSinceLive=Date.now()/1E3-Number(E);this.updateTimerIntervalId=_.e5(function(){F.canShowLiveBadgeTimer()?F.timeSinceLive++:(F.timeSinceLive=0,window.clearInterval(F.updateTimerIntervalId))},W)}else this.timeSinceLive=0};
_.N.canShowLiveBadgeTimer=function(){var F=Date.now(),W,E;return F<(Number((W=this.liveBadgeData)==null?void 0:W.endTimestampSec)-1)*1E3&&F>Number((E=this.liveBadgeData)==null?void 0:E.startTimestampSec)*1E3};
_.Sn.Object.defineProperties(Ft.prototype,{badgeShapeData:{configurable:!0,enumerable:!0,get:function(){if(this.data){var F=this.data;var W=this.timeSinceLive;var E,h,d,V;a:{var R=F.style;if(R===void 0)R=16;else switch(R){case "LIVE":R=17;break a;default:R=16}}W={type:R,text:W?Ghw({seconds:W}):_.Yr(F.text),accessibilityText:(E=F.text)==null?void 0:(h=E.accessibility)==null?void 0:(d=h.accessibilityData)==null?void 0:d.label,icon:(V=F.icon)==null?void 0:V.iconType}}else W={};return W}},
hideBadgeShape:{configurable:!0,enumerable:!0,get:function(){return!this.data||!this.hasIconOrText()||this.overlayType==="OPEN_IN_NEW_TAB"}},
overlayStyle:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.style)return this.data.style}},
liveBadgeData:{configurable:!0,enumerable:!0,get:function(){var F;return(F=this.data)==null?void 0:F.liveBadgeData}},
overlayType:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.type)return this.data.type.replace("THUMBNAIL_OVERLAY_TIME_STATUS_TYPE_","")}},
useFilledIcon:{configurable:!0,enumerable:!0,get:function(){return fQp.indexOf(this.overlayType||this.overlayStyle||"")!==-1}}});
Ft.prototype.initializeLiveBadgeTimer=Ft.prototype.initializeLiveBadgeTimer;Ft.prototype.dataChanged=Ft.prototype.dataChanged;_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],Ft.prototype,"componentBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],Ft.prototype,"data",void 0);_.T([_.O({computed:"computeIcon_(data.icon)"}),_.Y("design:type",String)],Ft.prototype,"icon",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Ft.prototype,"animated",void 0);
_.T([_.O({reflectToAttribute:!0,computed:"computeHideTimeStatus(data,hideBadgeShape)"}),_.Y("design:type",Boolean)],Ft.prototype,"hideTimeStatus",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],Ft.prototype,"hasIcon",void 0);_.T([_.O(),_.Y("design:type",Object)],Ft.prototype,"timeSinceLive",void 0);_.T([_.a("data","timeSinceLive"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Ft.prototype,"badgeShapeData",null);
_.T([_.a("data","overlayType"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Ft.prototype,"hideBadgeShape",null);_.T([_.Cz("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Ft.prototype,"dataChanged",null);_.T([_.O({reflectToAttribute:!0}),_.a("data.style"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Ft.prototype,"overlayStyle",null);
_.T([_.a("data.liveBadgeData"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Ft.prototype,"liveBadgeData",null);_.T([_.O({reflectToAttribute:!0}),_.a("data.type"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Ft.prototype,"overlayType",null);_.T([_.a("overlayType","overlayStyle"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Ft.prototype,"useFilledIcon",null);
_.T([_.Cz("liveBadgeData"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Ft.prototype,"initializeLiveBadgeTimer",null);Ft=_.T([_.y({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-time-status-renderer"})],Ft);
_.r(Ft,"ytd-thumbnail-overlay-time-status-renderer",function(){if(aQX!==void 0)return aQX;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-time-status-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-badge-supported-renderer badges="[[data.badges]]" is-thumbnail-badge="" class="style-scope ytd-thumbnail-overlay-time-status-renderer"></ytd-badge-supported-renderer><div class="thumbnail-overlay-badge-shape style-scope ytd-thumbnail-overlay-time-status-renderer" hidden="[[hideBadgeShape]]"><badge-shape data="[[badgeShapeData]]" class="style-scope ytd-thumbnail-overlay-time-status-renderer"></badge-shape></div><div id="time-status" hidden="[[hideTimeStatus]]" class="style-scope ytd-thumbnail-overlay-time-status-renderer"><yt-icon active="[[useFilledIcon]]" disable-upgrade$="[[!icon]]" hidden="[[!icon]]" icon="[[icon]]" size="16" class="style-scope ytd-thumbnail-overlay-time-status-renderer"></yt-icon><span id="text" aria-label$="[[data.text.accessibility.accessibilityData.label]]" class="style-scope ytd-thumbnail-overlay-time-status-renderer">\n    [[getSimpleString(data.text)]]\n  </span></div>');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return aQX=F},{mode:_.E6("kevlar_poly_si_batch_j035")?1:2});var OZM;var W$=function(){return _.n.apply(this,arguments)||this};
_.k(W$,_.n);W$.prototype.configureRendererStamper=function(){return{"data.primaryActionButton":{id:"primary-action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.secondaryActionButton":{id:"secondary-action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
W$.prototype.computeThumbnailOverlayResumePlaybackRenderer=function(F){if(this.hasPlaybackProgressBar)return{percentDurationWatched:F.percentDurationWatched}};
W$.prototype.computeHasPlaybackProgressBar=function(F){return!!F.percentDurationWatched&&F.percentDurationWatched>0};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],W$.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],W$.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],W$.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0,computed:"computeHasPlaybackProgressBar(data)"}),_.Y("design:type",Boolean)],W$.prototype,"hasPlaybackProgressBar",void 0);
W$=_.T([_.y({disableElementRegistration:!0,is:"ytd-tvfilm-show-watch-forward-overlay-renderer"})],W$);
_.r(W$,"ytd-tvfilm-show-watch-forward-overlay-renderer",function(){if(OZM!==void 0)return OZM;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-tvfilm-show-watch-forward-overlay-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content-container" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer">\n  <yt-formatted-string id="header" text="[[data.header]]" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer"></yt-formatted-string>\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer"></yt-formatted-string>\n  <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer"></yt-formatted-string>\n  <div id="button-container" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer">\n    <div id="primary-action-button-container" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer">\n      <div id="primary-action-button" role="button" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer"></div>\n      <ytd-thumbnail-overlay-resume-playback-renderer id="playback-progress" data="[[computeThumbnailOverlayResumePlaybackRenderer(data)]]" hidden$="[[!hasPlaybackProgressBar]]" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer">\n      </ytd-thumbnail-overlay-resume-playback-renderer>\n    </div>\n    <div id="secondary-action-button" role="button" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer"></div>\n  </div>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return OZM=F},{mode:1});var bZe;_.ht(Ifk);var lQp=_.GK(function(F){var W=F.data;var E=F.children;var h=function(){return!!W().doubleStack};
return _.z("yt-collections-stack",{class:"collections-stack-wiz",hidden:function(){return!W().experimentEnabled}},_.z(_.v,{cond:W,
then:function(){return _.z("div",null,_.z(_.v,{cond:h,then:function(){var d={};return _.z("div",{class:_.ec("collections-stack-wiz__collection-stack2",function(){return W().customClassName2ndStack},(d["collections-stack-wiz__collection-stack2--responsive-mode"]=function(){return W().enableResponsiveMode},d)),
style:_.vr({"background-color":function(){return B0o(W())}})})}}),_.z("div",{class:_.ec("collections-stack-wiz__collection-stack1",function(){return W().customClassName1stStack},function(){return v$e(W().thumbnailSize?W().thumbnailSize:"medium")}),
style:_.vr({"background-color":function(){return B0o(W())}})}),E)}}))},"L");_.pK(lQp,"yt-collections-stack",{props:{data:_.TS}});var Ec=function(){var F=_.n.apply(this,arguments)||this;F.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};F.webModernCollections=!1;F.isSearch=!1;F.isDoubleStack=!1;F.thumbnailSize="medium";F.enableWebModernCollectionsV2=_.c("web_modern_collections_v2");return F};
_.k(Ec,_.n);_.N=Ec.prototype;
_.N.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayBottomPanelRenderer:{component:"ytd-thumbnail-overlay-bottom-panel-renderer",properties:{overlayColor:"[[overlayColor]]"}},thumbnailOverlayPlaybackStatusRenderer:"ytd-thumbnail-overlay-playback-status-renderer",thumbnailOverlayResumePlaybackRenderer:"ytd-thumbnail-overlay-resume-playback-renderer",thumbnailOverlaySidePanelRenderer:{component:"ytd-thumbnail-overlay-side-panel-renderer",properties:{width:"[[thumbnailOverlaySidePanelWidth_]]",
bottomPanel:"[[bottomSidePanel]]",watchFeedOverlay:"[[watchFeedThumbnail]]"}},thumbnailOverlayDownloadingRenderer:{component:"ytd-thumbnail-overlay-downloading-renderer",params:{active:!0}},thumbnailOverlayTimeStatusRenderer:"ytd-thumbnail-overlay-time-status-renderer",thumbnailOverlayNowPlayingRenderer:"ytd-thumbnail-overlay-now-playing-renderer",tvfilmShowWatchForwardOverlayRenderer:"ytd-tvfilm-show-watch-forward-overlay-renderer"}},hoverOverlays_:{id:"hover-overlays",mapping:{thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer"}},
"data.thumbnailRenderer":{id:"playlist-thumbnails",mapping:{playlistVideoThumbnailRenderer:{component:"ytd-playlist-video-thumbnail-renderer",properties:{width:"[[width]]"}},playlistCustomThumbnailRenderer:{component:"ytd-playlist-custom-thumbnail-renderer",properties:{size:"[[customThumbnailSize]]",watchFeedThumbnail:"[[watchFeedThumbnail]]",webModernCollections:"[[webModernCollections]]"}},showCustomThumbnailRenderer:{component:"ytd-show-custom-thumbnail-renderer",properties:{width:"[[width]]"}}}}}};
_.N.getThumbnailDetails=function(F){if(F!=null&&F.thumbnailRenderer){var W=F.thumbnailRenderer,E;if((E=W.playlistVideoThumbnailRenderer)==null?0:E.thumbnail)return W.playlistVideoThumbnailRenderer.thumbnail;var h;if((h=W.playlistCustomThumbnailRenderer)==null?0:h.thumbnail)return W.playlistCustomThumbnailRenderer.thumbnail;F=F.thumbnailRenderer;var d;if((d=F.showCustomThumbnailRenderer)==null?0:d.thumbnail)return F.showCustomThumbnailRenderer.thumbnail}};
_.N.computeOverlayColor=function(F){var W,E;if((W=this.getThumbnailDetails(F))==null?0:(E=W.darkColorPalette)==null?0:E.section2Color)return this.getThumbnailDetails(F).darkColorPalette.section2Color;var h;return(h=this.getThumbnailDetails(F))==null?void 0:h.sampledThumbnailColor};
_.N.computeWebModernCollections=function(F){if(F==null||!F.thumbnailOverlays)return!1;F=_.U(F.thumbnailOverlays);for(var W=F.next();!W.done;W=F.next()){var E=void 0;if((E=W.value)==null?0:E.thumbnailOverlayBottomPanelRenderer)return!0}return!1};
_.N.computeNavigationEndpoint=function(F){return Sjk(F==null?void 0:F.navigationEndpoint)};
_.Sn.Object.defineProperties(Ec.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var F=this.getThumbnailDetails(this.data);return{thumbnailSize:this.thumbnailSize,doubleStack:this.isDoubleStack,sampledThumbnailColor:F==null?void 0:F.sampledThumbnailColor,vibrantColorPalette:F==null?void 0:F.vibrantColorPalette,darkColorPalette:F==null?void 0:F.darkColorPalette,experimentEnabled:this.enableWebModernCollectionsV2}}}});
_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],Ec.prototype,"ytActionHandlerBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],Ec.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(ihi),_.Y("design:type",Object)],Ec.prototype,"ytdThumbnailBehavior",void 0);_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],Ec.prototype,"componentBehavior",void 0);
_.T([_.O({value:!1}),_.Y("design:type",Boolean)],Ec.prototype,"watchFeedThumbnail",void 0);_.T([_.O(),_.Y("design:type",Number)],Ec.prototype,"customThumbnailSize",void 0);_.T([_.O({value:!0}),_.Y("design:type",Boolean)],Ec.prototype,"hideAria",void 0);_.T([_.O(),_.Y("design:type",Object)],Ec.prototype,"data",void 0);_.T([_.O({computed:"computeOverlayColor(data)"}),_.Y("design:type",Object)],Ec.prototype,"overlayColor",void 0);
_.T([_.O({computed:"computeWebModernCollections(data)"}),_.Y("design:type",Object)],Ec.prototype,"webModernCollections",void 0);_.T([_.O({computed:"computeNavigationEndpoint(data)"}),_.Y("design:type",Object)],Ec.prototype,"computedNavigationEndpoint",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],Ec.prototype,"isSearch",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],Ec.prototype,"isDoubleStack",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",String)],Ec.prototype,"thumbnailSize",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Ec.prototype,"enableWebModernCollectionsV2",void 0);_.T([_.a("data","enableWebModernCollectionsV2","isDoubleStack","thumbnailSize"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Ec.prototype,"collectionStack",null);Ec=_.T([_.y({disableElementRegistration:!0,is:"ytd-playlist-thumbnail"})],Ec);
_.r(Ec,"ytd-playlist-thumbnail",function(){if(bZe!==void 0)return bZe;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-thumbnail--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-collections-stack data="[[collectionStack]]" class="style-scope ytd-playlist-thumbnail"></yt-collections-stack>\n<a id="thumbnail" class="yt-simple-endpoint style-scope ytd-playlist-thumbnail" aria-hidden="[[hideAria]]" href$="[[computeHref_(computedNavigationEndpoint)]]" data="[[computedNavigationEndpoint]]" tabindex="-1">\n  <div id="playlist-thumbnails" class="style-scope ytd-playlist-thumbnail"></div>\n  <yt-formatted-string id="length" hidden="[[!data.lengthText]]" text="[[data.lengthText]]" class="style-scope ytd-playlist-thumbnail">\n  </yt-formatted-string>\n  <div id="overlays" class="style-scope ytd-playlist-thumbnail"></div>\n  <div id="hover-overlays" class="style-scope ytd-playlist-thumbnail"></div>\n</a>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return bZe=F},{mode:_.E6("kevlar_poly_si_batch_j025")?1:2});var nXi;var hM=function(){var F=_.n.apply(this,arguments)||this;F.noEndpoints=!1;F.amsterdamPostMvp=_.c("web_amsterdam_post_mvp_playlists");F.badges=[];F.transferState="TRANSFER_STATE_UNKNOWN";return F};
_.k(hM,_.n);_.N=hM.prototype;_.N.getMetadata=function(F){if(!F)return[];var W=[],E=F.shortViewCountText||F.viewCountText;E&&W.push(_.Yr(E));F.publishedTimeText&&W.push(_.Yr(F.publishedTimeText));F.upcomingEventData&&F.upcomingEventData.upcomingEventText&&W.push(_.Tt(_.Yr(F.upcomingEventData.upcomingEventText),Number(F.upcomingEventData.startTime)));return W};
_.N.observeDataForBylineSeparator=function(){this.data&&_.Wm(this.hostElement,"byline-separated",this.getMetadata(this.data).length>0&&!this.data.ownerBadges||this.shouldShowVideoInfo)};
_.N.metadataColorChanged=function(){this.metadataColor||(this.metadataLine.style.color="");this.metadataLine.style.color=_.ZP(this.metadataColor)};
_.N.getSimpleString=function(F){return _.Yr(F)};
_.N.isBylineHidden=function(F){return this.noByline||!((F==null?0:F.longBylineText)||(F==null?0:F.shortBylineText))};
_.N.isMetadataHidden=function(F){var W;return((W=this.getMetadata(F))==null?void 0:W.length)===0};
_.N.isBylineMetadataSeparatorHidden=function(F){return this.isMetadataHidden(F)||!this.shouldShowVideoInfo};
_.N.isLongByline=function(F,W){return W&&!(F==null||!F.longBylineText)};
_.Sn.Object.defineProperties(hM.prototype,{shouldShowVideoInfo:{configurable:!0,enumerable:!0,get:function(){var F;return this.amsterdamPostMvp&&!((F=this.data)==null||!F.videoInfo)}},
inlineBadgeClass:{configurable:!0,enumerable:!0,get:function(){return this.badges&&this.badges.length>0?"metadata-line-with-badge":""}},
longBylineClass:{configurable:!0,enumerable:!0,get:function(){return this.longByline?"long-byline":""}},
bylineText:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.longByline?this.data.longBylineText:this.data.shortBylineText}},
watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.c("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}}});
hM.prototype.metadataColorChanged=hM.prototype.metadataColorChanged;hM.prototype.observeDataForBylineSeparator=hM.prototype.observeDataForBylineSeparator;_.T([_.J(_.am),_.Y("design:type",Object)],hM.prototype,"ytdReduxBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],hM.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Object)],hM.prototype,"noEndpoints",void 0);_.T([_.O({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],hM.prototype,"isSlimShort",void 0);
_.T([_.O({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],hM.prototype,"radioMeta",void 0);_.T([_.O({selector:_.o6}),_.Y("design:type",Object)],hM.prototype,"isGridViewEnabled",void 0);_.T([_.O({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],hM.prototype,"richMeta",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],hM.prototype,"amsterdamPostMvp",void 0);_.T([_.O(),_.Y("design:type",Boolean)],hM.prototype,"noByline",void 0);
_.T([_.O({computed:"isLongByline(data, radioMeta)"}),_.Y("design:type",Boolean)],hM.prototype,"longByline",void 0);_.T([_.O({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],hM.prototype,"truncateMetadataLine",void 0);_.T([_.O({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],hM.prototype,"miniMode",void 0);_.T([_.O(),_.Y("design:type",Number)],hM.prototype,"metadataColor",void 0);_.T([_.O(),_.Y("design:type",Array)],hM.prototype,"badges",void 0);
_.T([_.O({selector:_.ax,selectorArgs:["data.videoId"]}),_.Y("design:type",String)],hM.prototype,"transferState",void 0);_.T([_.O({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],hM.prototype,"isDownloading",void 0);_.T([_.O({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],hM.prototype,"typographyBump",void 0);_.T([_.gQ("#metadata-line"),_.Y("design:type",HTMLElement)],hM.prototype,"metadataLine",void 0);
_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],hM.prototype,"observeDataForBylineSeparator",null);_.T([_.ea("metadataColor"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],hM.prototype,"metadataColorChanged",null);_.T([_.a("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],hM.prototype,"shouldShowVideoInfo",null);
_.T([_.a("badges"),_.Y("design:type",String),_.Y("design:paramtypes",[])],hM.prototype,"inlineBadgeClass",null);_.T([_.a("longByline"),_.Y("design:type",String),_.Y("design:paramtypes",[])],hM.prototype,"longBylineClass",null);_.T([_.a("data","longByline"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],hM.prototype,"bylineText",null);_.T([_.a("isGridViewEnabled","data"),_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],hM.prototype,"watchFeedBigThumbs",null);
hM=_.T([_.y({is:"ytd-video-meta-block",disableElementRegistration:!0})],hM);
_.r(hM,"ytd-video-meta-block",function(){if(nXi!==void 0)return nXi;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-meta-block--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="metadata" class="style-scope ytd-video-meta-block">\n  <div id="byline-container" hidden="[[isBylineHidden(data, radioMeta)]]" class="style-scope ytd-video-meta-block">\n    <ytd-channel-name id="channel-name" class$="[[longBylineClass]] style-scope ytd-video-meta-block" badges="[[data.ownerBadges]]" channel-name="[[bylineText]]" no-endpoints="[[noEndpoints]]" wrap-text="[[longByline]]">\n    </ytd-channel-name>\n    <div id="separator" class="style-scope ytd-video-meta-block">\u2022</div>\n    <yt-formatted-string id="video-info" hidden="[[!shouldShowVideoInfo]]" text="[[data.videoInfo]]" class="style-scope ytd-video-meta-block">\n  </yt-formatted-string>\n  </div>\n  <div id="metadata-line" class="style-scope ytd-video-meta-block">\n    \n    <ytd-badge-supported-renderer class="inline-metadata-badge style-scope ytd-video-meta-block" badges="[[badges]]" hidden="[[!badges.length]]">\n    </ytd-badge-supported-renderer>\n    <div id="separator" hidden="[[isBylineMetadataSeparatorHidden(data)]]" class="style-scope ytd-video-meta-block">\u2022</div>\n    <template is="dom-repeat" items="[[getMetadata(data)]]" strip-whitespace="" class="style-scope ytd-video-meta-block">\n      <span class="inline-metadata-item style-scope ytd-video-meta-block">[[item]]</span>\n    </template>\n  </div>\n</div>\n<div id="additional-metadata-line" class="style-scope ytd-video-meta-block">\n  <template is="dom-repeat" items="[[data.additionalMetadatas]]" class="style-scope ytd-video-meta-block"><span class="style-scope ytd-video-meta-block">[[getSimpleString(item)]]</span></template>\n</div>\n\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return nXi=F},{mode:_.E6("kevlar_poly_si_batch_j080")?1:2});_.Hr("itemSectionRenderer","playlistRenderer","ytd-playlist-renderer");var d1=function(){var F=_.n.apply(this,arguments)||this;F.displayItemCount=2;F.isBackstagePlaylist=!1;F.isPostCompactPlaylist=!1;F.shouldShowChannelThumbnail=!1;F.useModernCollectionsV2=_.c("web_modern_collections_v2");return F};
_.k(d1,_.n);_.N=d1.prototype;_.N.computeFirstVideos=function(F,W){return F===void 0||W===void 0?[]:F.slice(0,W)};
_.N.dataChanged=function(){if(this.data&&this.data.thumbnailRenderer){var F=this.data.thumbnailRenderer;F.playlistVideoThumbnailRenderer&&this.set("data.thumbnail",F.playlistVideoThumbnailRenderer.thumbnail);F.playlistCustomThumbnailRenderer&&this.set("data.thumbnail",F.playlistCustomThumbnailRenderer.thumbnail)}};
_.N.computeThumbnailHeight=function(F,W,E,h,d){return h?d==="BIG"?280:d==="MASSIVE"?337:234:E?240:W?72:F?118:138};
_.N.computeThumbnailWidth=function(F,W,E,h,d){return h?d==="MEDIUM"?450:d==="BIG"?500:d==="MASSIVE"?600:420:E?360:W?128:F?210:246};
_.N.computeUseBiggerThumbs=function(F){return F&&_.c("enable_desktop_search_bigger_thumbs")};
_.N.computeShouldShowChannelThumbnail=function(F,W){return F&&!(W==null||!W.channelThumbnail)};
_.Sn.Object.defineProperties(d1.prototype,{stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"large":"medium"}}});
d1.prototype.dataChanged=d1.prototype.dataChanged;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],d1.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.rt),_.Y("design:type",Object)],d1.prototype,"ytdLockupBehavior",void 0);_.T([_.J(_.am),_.Y("design:type",Object)],d1.prototype,"ytdReduxBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],d1.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Object)],d1.prototype,"displayItemCount",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],d1.prototype,"isBackstagePlaylist",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],d1.prototype,"isPostCompactPlaylist",void 0);_.T([_.O({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],d1.prototype,"isSearch",void 0);_.T([_.O({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(isSearch)"}),_.Y("design:type",Boolean)],d1.prototype,"useBiggerThumbs",void 0);_.T([_.O({reflectToAttribute:!0,value:function(){return _.N0("desktop_search_bigger_thumbs_style")}}),
_.Y("design:type",String)],d1.prototype,"biggerThumbsStyle",void 0);_.T([_.O({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],d1.prototype,"isDownloads",void 0);_.T([_.O({computed:"computeShouldShowChannelThumbnail(isSearch, data)"}),_.Y("design:type",Object)],d1.prototype,"shouldShowChannelThumbnail",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],d1.prototype,"useModernCollectionsV2",void 0);
_.T([_.Cz("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],d1.prototype,"dataChanged",null);_.T([_.a("isSearch"),_.Y("design:type",String),_.Y("design:paramtypes",[])],d1.prototype,"stackThumbnailSize",null);d1=_.T([_.y({is:"ytd-playlist-renderer",disableElementRegistration:!0})],d1);
_.r(d1,"ytd-playlist-renderer",function(){if(D9e===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-playlist-thumbnail custom-thumbnail-size="[[computeThumbnailHeight(isBackstagePlaylist, isPostCompactPlaylist, isSearch)]]" data="[[data]]" height="[[computeThumbnailHeight(isBackstagePlaylist, isPostCompactPlaylist, isSearch, useBiggerThumbs, biggerThumbsStyle)]]" hovered="[[lockupIsHovered]]" is-double-stack="[[isSearch]]" thumbnail-size="[[stackThumbnailSize]]" use-hovered-property="" width="[[computeThumbnailWidth(isBackstagePlaylist, isPostCompactPlaylist, isSearch, useBiggerThumbs, biggerThumbsStyle)]]" class="style-scope ytd-playlist-renderer">\n</ytd-playlist-thumbnail>\n<div id="content" class="style-scope ytd-playlist-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-playlist-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <h3 class="style-scope ytd-playlist-renderer">\n      <ytd-badge-supported-renderer hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-playlist-renderer">\n      </ytd-badge-supported-renderer>\n      <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-playlist-renderer">\n        [[getSimpleString(data.title)]]\n      </span>\n    </h3>\n    <template is="dom-if" if="[[shouldShowChannelThumbnail]]" restamp="" class="style-scope ytd-playlist-renderer">\n      <div id="channel-info" class="style-scope ytd-playlist-renderer">\n        <a id="channel-thumbnail" hidden="[[!data.channelThumbnail.channelThumbnailWithLinkRenderer.thumbnail]]" aria-label$="[[data.channelThumbnail.channelThumbnailWithLinkRenderer.accessibility.accessibilityData.label]]" href$="[[computeHref_(data.channelThumbnail.channelThumbnailWithLinkRenderer.navigationEndpoint)]]" class="style-scope ytd-playlist-renderer">\n          <yt-img-shadow thumbnail="[[data.channelThumbnail.channelThumbnailWithLinkRenderer.thumbnail]]" width="24" class="style-scope ytd-playlist-renderer">\n          </yt-img-shadow>\n        </a>\n        <ytd-channel-name id="channel-name" class="long-byline style-scope ytd-playlist-renderer" badges="[[data.ownerBadges]]" channel-name="[[data.longBylineText]]" wrap-text="true">\n        </ytd-channel-name>\n      </div>\n    </template>\n    <ytd-video-meta-block id="meta" data="[[data]]" hidden="[[shouldShowChannelThumbnail]]" class="style-scope ytd-playlist-renderer"></ytd-video-meta-block>\n  </a>\n  <ytd-badge-supported-renderer class="allowlisted-metadata-badges style-scope ytd-playlist-renderer" badges="[[data.allowlistedMetadataBadges]]" hidden="[[!data.allowlistedMetadataBadges]]">\n  </ytd-badge-supported-renderer>\n  <yt-formatted-string id="description-text" hidden="[[!data.description]]" text="[[data.description]]" class="style-scope ytd-playlist-renderer"></yt-formatted-string>\n  <ul id="list" hidden="[[isPostCompactPlaylist]]" class="style-scope ytd-playlist-renderer">\n    <template is="dom-repeat" items="[[computeFirstVideos(data.videos, displayItemCount)]]" as="video" class="style-scope ytd-playlist-renderer">\n      <li class="style-scope ytd-playlist-renderer">\n        <ytd-child-video-renderer data="[[video.childVideoRenderer]]" class="style-scope ytd-playlist-renderer">\n        </ytd-child-video-renderer>\n      </li>\n    </template>\n  </ul>\n  <yt-formatted-string id="view-more" link-inherit-color="" text="[[data.viewPlaylistText]]" class="style-scope ytd-playlist-renderer"></yt-formatted-string>\n  <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" role="text" class="style-scope ytd-playlist-renderer">\n  </ytd-badge-supported-renderer>\n</div>\n<yt-interaction id="interaction" class="extended style-scope ytd-playlist-renderer"></yt-interaction>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);D9e=F}F=D9e;return F},{mode:1});var ypz;var jDB;var NM=function(){var F=_.n.apply(this,arguments)||this;F.collections=!!_.c("web_modern_collections_v2");F.startX=0;return F};
_.k(NM,_.n);NM.prototype.onEndpointMouseDown=function(F){this.startX=F.clientX};
NM.prototype.onEndpointClick=function(F){this.startX!==F.clientX&&(F.preventDefault(),F.stopPropagation())};
NM.prototype.computeObjectFit=function(F){return F==="CARD_RENDERER_STYLE_TYPE_UNIVERSAL_WATCH_CARD_MOVIE_POSTER"||F==="CARD_RENDERER_STYLE_TYPE_MOVIE_POSTER"||F==="CARD_RENDERER_STYLE_TYPE_CENTERED"?"COVER":"FILL"};
NM.prototype.computeCardStyle=function(F){return F?F.replace("CARD_RENDERER_STYLE_TYPE_","").toLowerCase():""};
_.Sn.Object.defineProperties(NM.prototype,{isAlbumCard:{configurable:!0,enumerable:!0,get:function(){var F,W;return this.collections&&((F=this.data)==null?void 0:(W=F.searchRefinementCardRendererStyle)==null?void 0:W.value)==="CARD_RENDERER_STYLE_TYPE_ALBUM_CARD"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){return this.isAlbumCard?{thumbnailSize:"small",doubleStack:!1,experimentEnabled:this.collections,customClassName1stStack:"collection-stack-1 style-scope "+this.is}:{experimentEnabled:!1}}}});
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],NM.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],NM.prototype,"data",void 0);_.T([_.O({computed:"computeObjectFit(data.searchRefinementCardRendererStyle.value)"}),_.Y("design:type",Number)],NM.prototype,"objectFit",void 0);_.T([_.O({reflectToAttribute:!0,computed:"computeCardStyle(data.searchRefinementCardRendererStyle.value)"}),_.Y("design:type",String)],NM.prototype,"cardStyle",void 0);
_.T([_.O({reflectToAttribute:!0,value:!0}),_.Y("design:type",Boolean)],NM.prototype,"roundContainer",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],NM.prototype,"collections",void 0);_.T([_.a("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],NM.prototype,"isAlbumCard",null);_.T([_.a("data","collections","isAlbumCard"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],NM.prototype,"collectionStack",null);
NM=_.T([_.y({is:"ytd-search-refinement-card-renderer",disableElementRegistration:!0})],NM);
_.r(NM,"ytd-search-refinement-card-renderer",function(){if(jDB!==void 0)return jDB;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-refinement-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-search-refinement-card-renderer" data="[[data.searchEndpoint]]" href$="[[computeHref_(data.searchEndpoint)]]" on-mousedown="onEndpointMouseDown" on-click="onEndpointClick" draggable="false">\n  <div id="card-thumbnail" class="style-scope ytd-search-refinement-card-renderer">\n    <yt-collections-stack data="[[collectionStack]]" class="style-scope ytd-search-refinement-card-renderer"></yt-collections-stack>\n    <yt-img-shadow object-fit="[[objectFit]]" rounded-container="[[isAlbumCard]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-search-refinement-card-renderer">\n    </yt-img-shadow>\n  </div>\n  <div id="card-title" class="style-scope ytd-search-refinement-card-renderer">\n    <div class="style-scope ytd-search-refinement-card-renderer">[[getSimpleString(data.query)]]</div>\n  </div>\n</a>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return jDB=F},{mode:1});var iZ_;var Vb=function(){var F=_.n.apply(this,arguments)||this;F.isRichGrid=!1;return F};
_.k(Vb,_.n);_.T([_.O(),_.Y("design:type",Object)],Vb.prototype,"data",void 0);_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],Vb.prototype,"componentBehavior",void 0);_.T([_.J(_.am),_.Y("design:type",Object)],Vb.prototype,"ytdReduxBehavior",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],Vb.prototype,"isRichGrid",void 0);_.T([_.O({reflectToAttribute:!0,selector:_.XD}),_.Y("design:type",Boolean)],Vb.prototype,"miniMode",void 0);
Vb=_.T([_.y({is:"ytd-game-details-renderer",disableElementRegistration:!0})],Vb);
_.r(Vb,"ytd-game-details-renderer",function(){if(iZ_!==void 0)return iZ_;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-game-details-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint focus-on-expand style-scope ytd-game-details-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]">\n  <yt-img-shadow height="290" object-fit="COVER" thumbnail="[[data.boxArt]]" width="210" class="style-scope ytd-game-details-renderer"></yt-img-shadow>\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-game-details-renderer"></yt-formatted-string>\n  <yt-formatted-string id="auto-generated" hidden="[[!data.autoGenerated]]" text="[[data.autoGenerated]]" class="style-scope ytd-game-details-renderer"></yt-formatted-string>\n  <yt-formatted-string id="live-viewers-count" hidden="[[!data.liveViewersText]]" text="[[data.liveViewersText]]" class="style-scope ytd-game-details-renderer">\n  </yt-formatted-string>\n</a>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return iZ_=F},{mode:1});var rpT;var TJz;var Uc=function(){var F=_.n.apply(this,arguments)||this;F.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};return F};
_.k(Uc,_.n);_.N=Uc.prototype;_.N.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.N.currentStateData=function(F){var W=F||this.data;return W&&W.states&&W.currentStateId!=null?W.states.find(function(E){return E.stateId===W.currentStateId})||null:null};
_.N.currentStateRendererData=function(F){return(F=this.currentStateData(F))&&F.state&&F.state.buttonRenderer?F.state.buttonRenderer:null};
_.N.stateChanged=function(){this&&this.data&&(this.ytRenderButtonBehavior._setEndpoint(null),this.ytRenderButtonBehavior._setServiceEndpoint(this.computeServiceEndpoint(this.data)),this.ytRenderButtonBehavior._setButtonIcon(this.computeButtonIcon(this.data)),this.ytRenderButtonBehavior._setButtonText(null),this.ytRenderButtonBehavior._setButtonAccessibility(this.computeAccessibility(this.data)),this.ytRenderButtonBehavior._setButtonClass(this.computeButtonClass(this.data)),this.ytRenderButtonBehavior.updateRenderedElements())};
_.N.computeButtonIcon=function(F){F=this.currentStateRendererData(F);var W;return(F==null?0:(W=F.icon)==null?0:W.iconType)?F.icon.iconType.toLowerCase():null};
_.N.computeAccessibility=function(F){return(F=this.currentStateRendererData(F))&&F.accessibilityData?F.accessibilityData.accessibilityData||null:null};
_.N.computeButtonClass=function(F){var W=this.currentStateRendererData(F);if(!W)return"";F="";var E=W.style;E&&(F+=E.toLowerCase().replace(/_/g,"-")+" ");(W=W.size)&&(F+=W.toLowerCase().replace(/_/g,"-")+" ");return F.trim()};
_.N.computeServiceEndpoint=function(F){if(!F)return null;var W=F&&F.serviceEndpoint,E=this.get("command.commandMetadata.webCommandMetadata.sendPost",F);return W?W:E&&F.command?F.command:null};
_.N.computeBellMenuItemParams=function(F){var W;F=(W=_.D(F==null?void 0:F.command,_.Mc))==null?void 0:W.commands;if(!F||F.length===0)return null;W=_.D(F[0],_.J7);var E,h;return(W==null?0:(E=W.popup)==null?0:(h=E.menuPopupRenderer)==null?0:h.items)?W.popup.menuPopupRenderer.items.map(function(d){return d.menuServiceItemRenderer.trackingParams}):null};
_.N.handleBellMenuOpenSelectedAction=function(F){var W=F.trackingParams,E=this.computeBellMenuItemParams(this.data);this.data&&W&&E&&E.includes(W)&&this.ytRenderButtonBehavior._setButtonIcon(F.icon.iconType.toLowerCase())};
_.N.onYtServiceRequestCompleted=function(F,W){(F=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",W))&&this.set("data",F)};
_.N.onYtServiceRequestError=function(){this.ytRenderButtonBehavior._setButtonIcon(this.computeButtonIcon(this.data))};
_.N.resetState=function(){this.set("data.currentStateId",3)};
_.N.onYtButtonTapHandler=function(){if(this.data){var F=this.currentStateRendererData(this.data);F&&this.ytRendererBehavior.logExplicitClick(F)}};
Uc.prototype.onYtServiceRequestError=Uc.prototype.onYtServiceRequestError;Uc.prototype.onYtServiceRequestCompleted=Uc.prototype.onYtServiceRequestCompleted;Uc.prototype.stateChanged=Uc.prototype.stateChanged;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Uc.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],Uc.prototype,"ytActionHandlerBehavior",void 0);
_.T([_.J(zf.YtRenderButtonBehavior),_.Y("design:type",Object)],Uc.prototype,"ytRenderButtonBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],Uc.prototype,"data",void 0);_.T([_.Cz("data","data.currentStateId"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Uc.prototype,"stateChanged",null);
_.T([_.R4("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.uz]),_.Y("design:returntype")],Uc.prototype,"onYtServiceRequestCompleted",null);_.T([_.R4("yt-service-request-error"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Uc.prototype,"onYtServiceRequestError",null);Uc=_.T([_.y({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer"})],Uc);
_.r(Uc,"ytd-subscription-notification-toggle-button-renderer",function(){if(TJz!==void 0)return TJz;var F=document.createElement("template");_.L(F,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-subscription-notification-toggle-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n");F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return TJz=F},{mode:1});var oXp;var Rt=function(){var F=_.n.apply(this,arguments)||this;F.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};F.tapHandler=function(){if(F.data){var W=F.currentStateRendererData();W&&F.ytRendererBehavior.logExplicitClick(W)}};
return F};
_.k(Rt,_.n);_.N=Rt.prototype;_.N.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.N.currentStateData=function(){var F=this;return this.data&&this.data.states&&this.data.currentStateId!=null?this.data.states.find(function(W){return W.stateId===F.data.currentStateId})||null:null};
_.N.currentStateRendererData=function(){var F=this.currentStateData();return F&&F.state&&F.state.buttonRenderer?F.state.buttonRenderer:null};
_.N.computeAccessibilityLabel=function(){var F,W,E;return(F=this.currentStateRendererData())==null?void 0:(W=F.accessibilityData)==null?void 0:(E=W.accessibilityData)==null?void 0:E.label};
_.N.computeBellMenuItemParams=function(){var F,W,E=(W=_.D((F=this.data)==null?void 0:F.command,_.Mc))==null?void 0:W.commands;if(!E||E.length===0)return null;F=_.D(E[0],_.J7);var h,d;return(F==null?0:(h=F.popup)==null?0:(d=h.menuPopupRenderer)==null?0:d.items)?F.popup.menuPopupRenderer.items.map(function(V){return V.menuServiceItemRenderer.trackingParams}):null};
_.N.handleBellMenuOpenSelectedAction=function(F){var W=F.trackingParams,E=this.computeBellMenuItemParams();if(this.data&&W&&E&&E.includes(W)&&(F==null||!F.isDisabled)){var h;((h=_.D(F.serviceEndpoint,_.Q7))==null?void 0:h.signal)!=="CLIENT_SIGNAL"&&(this.icon=F.icon.iconType)}};
_.N.resetState=function(){this.icon=void 0;this.set("data.currentStateId",3)};
_.N.onYtServiceRequestCompleted=function(F,W){if(F=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",W))this.icon=void 0,this.set("data",F)};
_.N.onYtServiceRequestError=function(){this.icon=void 0};
_.Sn.Object.defineProperties(Rt.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var F=this.data,W=this.textLabel,E=this.hostElement,h=this.computeAccessibilityLabel(),d=this.tapHandler,V=this.isOverlay?"overlay":"mono",R=(F==null?0:F.disableButton)?"disabled":"active";W=W?_.qr(W):void 0;return{style:V,type:"tonal",state:R,size:"M",focused:!1,formattedButtonText:W,iconPosition:"leading-trailing",onTap:xZo(F,d,E),accessibilityLabel:h}}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var F=this.currentStateRendererData(),W,E,h=(E=this.icon)!=null?E:F==null?void 0:(W=F.icon)==null?void 0:W.iconType;if(h)return _.Vd(h)}},
computedSecondaryIcon:{configurable:!0,enumerable:!0,get:function(){var F,W,E=(F=this.data)==null?void 0:(W=F.secondaryIcon)==null?void 0:W.iconType;if(E)return _.Vd(E)}}});
Rt.prototype.onYtServiceRequestError=Rt.prototype.onYtServiceRequestError;Rt.prototype.onYtServiceRequestCompleted=Rt.prototype.onYtServiceRequestCompleted;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Rt.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],Rt.prototype,"ytActionHandlerBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],Rt.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Object)],Rt.prototype,"textLabel",void 0);
_.T([_.O(),_.Y("design:type",String)],Rt.prototype,"icon",void 0);_.T([_.O(),_.Y("design:type",Boolean)],Rt.prototype,"isOverlay",void 0);_.T([_.a("data.*","textLabel"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Rt.prototype,"computedButtonShape",null);_.T([_.a("data.*","icon"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Rt.prototype,"computedIcon",null);_.T([_.a("data.*"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Rt.prototype,"computedSecondaryIcon",null);
_.T([_.R4("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.uz]),_.Y("design:returntype")],Rt.prototype,"onYtServiceRequestCompleted",null);_.T([_.R4("yt-service-request-error"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Rt.prototype,"onYtServiceRequestError",null);Rt=_.T([_.y({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer-next"})],Rt);
_.r(Rt,"ytd-subscription-notification-toggle-button-renderer-next",function(){if(oXp!==void 0)return oXp;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e<yt-button-shape data="[[computedButtonShape]]" icon-name="[[computedIcon]]" secondary-icon-name="[[computedSecondaryIcon]]">\n</yt-button-shape>\n');return oXp=F},{mode:_.E6("kevlar_poly_si_batch_j081")?1:2});var GIi;_.c("web_enable_sink_animated_actions")?_.pK(jPi,"yt-animated-action",{props:{backgroundLottieRef:_.TS,foregroundLottieRef:_.TS,wrapperClass:_.TS,disableAnimation:_.TS},unsafeExternallySettableAttributes:new Set(["key"])}):_.Nj(EXe,"yt-animated-action",{propNames:["backgroundLottieRef","foregroundLottieRef"]});var ed=function(){var F=_.n.apply(this,arguments)||this;F.animatedActionEnabled=_.c("web_animated_actions");F.foregroundLottieRef={};F.backgroundLottieRef={};F.forceIconOnly=!1;F.showTextWhileAnimating=!1;F.keyboardFocused=!1;F.isAnimating=!1;F.actionMap={"yt-player-subscribe":"onPlayerSubscribe","yt-player-unsubscribe":"onPlayerUnsubscribe","yt-update-subscribe-button-action":"handleUpdateSubscribeButtonAction"};return F};
_.k(ed,_.n);_.N=ed.prototype;_.N.maybeUpdateBellButtonText=function(){this.showTextWhileAnimating&&this.bellButton&&(this.bellButton.textLabel=this.subscribedButtonText)};
_.N.configureRendererStamper=function(){return{"data.notificationPreferenceToggleButton":{id:"notification-preference-toggle-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{forceIconOnly:"[[forceIconOnly]]"}}}},"data.notificationPreferenceButton":{id:"notification-preference-button",mapping:{subscriptionNotificationToggleButtonRenderer:{component:"ytd-subscription-notification-toggle-button-renderer-next",properties:{textLabel:"[[subscribedButtonText]]",
forceIconOnly:"[[forceIconOnly]]",isOverlay:"[[overlayButton]]"}}}}}};
_.N.attached=function(){this.keyboardFocused=!1};
_.N.onYtServiceRequestSent=function(F,W){(this.get("endpoint.subscribeEndpoint",W)||this.get("endpoint.unsubscribeEndpoint",W))&&this.updateSubscriptionState(!this.subscribed)};
_.N.onYtServiceRequestCompleted=function(F,W){(F=this.get("newNotificationButton.subscriptionNotificationToggleButtonRenderer",W.data))&&this.bellButton&&(this.bellButton.data=F)};
_.N.observedSubscribed=function(){this.isAnimating||this.clearContainerSize();_.V9(this.hostElement)};
_.N.onPlayerSubscribe=function(F){this.isCompactRed()||F!==this.data.channelId||(this.tryToSaveButtonWidths(),this.updateContainerToFitContent(!!this.subscribed),this.updateSubscriptionState(!0))};
_.N.onPlayerUnsubscribe=function(F){this.isCompactRed()||F!==this.data.channelId||this.updateSubscriptionState(!1)};
_.N.handleUpdateSubscribeButtonAction=function(F){F=_.D(F,Fko);var W;F&&F.channelId===((W=this.data)==null?void 0:W.channelId)&&this.updateSubscriptionState(!!F.subscribed)};
_.N.computeButtonStyle=function(F){return this.get("style.styleType",F)||null};
_.N.isCompactRed=function(){return this.computeButtonStyle(this.data)==="COMPACT_RED"};
_.N.computeSubscribed=function(){return this.subscriptionStateEntity?!!this.subscriptionStateEntity.subscribed:!(!this.data||!this.data.subscribed)};
_.N.updateSubscriptionState=function(F){if(F!==this.subscribed){this.set("data.subscribed",F);var W,E=(W=this.data)==null?void 0:W.subscribedEntityKey;E&&this.ytdReduxBehavior.dispatch(_.AG("subscriptionStateEntity",E,{key:E,subscribed:F}));this.isCompactRed()||_.hF(this.hostElement,"yt-subscription-changed",F);F||(_.dW(this.hostElement,"yt-unsubscribe-action"),this.resetNotificationBellState());this.animatedActionEnabled&&(this.updateContainerToFitContent(!!F),F&&this.hasBellButton&&this.startAnimation())}};
_.N.startAnimation=function(){var F=this;if(!this.isAnimating){var W=this.forceIconOnly&&this.showTextWhileAnimating?2E3:1500;this.isAnimating=!0;var E;(E=this.backgroundLottieRef.lottieEl)==null||E.goToAndPlay(0);var h;(h=this.foregroundLottieRef.lottieEl)==null||h.goToAndPlay(0);_.P0.addJob(function(){F.maybeAnimateBellIcon()},2,300);
this.forceIconOnly&&this.showTextWhileAnimating&&_.P0.addJob(function(){F.updateContainerToFitContent(!!F.subscribed,!0)},2,1500);
_.P0.addJob(function(){F.isAnimating=!1},2,W)}};
_.N.maybeAnimateBellIcon=function(){var F=_.Fm(this.hostElement).querySelector("yt-animated-icon");if(F){var W;(W=F.animationRef.lottieEl)==null||W.goToAndPlay(0)}};
_.N.onDataChanged=function(){this.animatedActionEnabled&&(this.hostElement.style.width="")};
_.N.onMouseDown=function(){this.tryToSaveButtonWidths();this.updateContainerToFitContent(!!this.subscribed)};
_.N.tryToSaveButtonWidths=function(){if(this.animatedActionEnabled&&!this.unsubscribedWidth){if(!this.subscribed){var F;this.unsubscribedWidth=(F=this.subscribeButtonShape)==null?void 0:F.getBoundingClientRect().width}var W;this.subscribedWidth=(W=this.bellButton)==null?void 0:W.getBoundingClientRect().width;this.maybeSetSubscribedButtonIconOnlyWidth()}};
_.N.updateContainerToFitContent=function(F,W){this.animatedActionEnabled&&this.subscribedWidth&&this.unsubscribedWidth&&(F?(F=this.subscribedWidth,W=this.isAnimating&&!W,this.subscribedIconOnlyWidth===void 0||W||(F=this.subscribedIconOnlyWidth),this.hostElement.style.width=F+"px"):this.hostElement.style.width=this.unsubscribedWidth+"px")};
_.N.clearContainerSize=function(){this.hostElement.style.width=""};
_.N.resetNotificationBellState=function(){this.get("notificationPreferenceButton.subscriptionNotificationToggleButtonRenderer",this.data)&&this.bellButton&&this.bellButton.resetState()};
_.N.maybeSetSubscribedButtonIconOnlyWidth=function(){var F=this;this.forceIconOnly&&this.showTextWhileAnimating&&this.subscribedIconOnlyWidth===void 0&&(this.subscribedIconOnlyWidth=0,this.subscribed?this.subscribedIconOnlyWidth=this.subscribedWidth:(this.bellButton&&(this.bellButton.textLabel=void 0),requestAnimationFrame(function(){var W;F.subscribedIconOnlyWidth=(W=F.bellButton)==null?void 0:W.getBoundingClientRect().width;requestAnimationFrame(function(){if(F.bellButton){var E;F.bellButton.textLabel=
(E=F.data)==null?void 0:E.subscribedButtonText}})})))};
_.Sn.Object.defineProperties(ed.prototype,{hasBellButton:{configurable:!0,enumerable:!0,get:function(){return!!this.get("notificationPreferenceButton.subscriptionNotificationToggleButtonRenderer",this.data)}},
subscribedButtonText:{configurable:!0,enumerable:!0,get:function(){if(this.showTextWhileAnimating&&(this.isAnimating||!this.subscribed)){var F;return(F=this.data)==null?void 0:F.subscribedButtonText}var W;return this.forceIconOnly?void 0:(W=this.data)==null?void 0:W.subscribedButtonText}},
smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var F,W,E=((F=this.data)==null?void 0:(W=F.timedAnimationData)==null?void 0:W.animationTiming)||[];return{uniqueId:"subscribe",timings:E,enabled:E.length>0&&!this.subscribed,experimentEnabled:E.length>0}}},
subscribeButtonHidden:{configurable:!0,enumerable:!0,get:function(){var F;return!this.subscribed&&((F=this.data)==null?void 0:F.hideWhenUnsubscribed)||!this.animatedActionEnabled&&this.hasBellButton&&this.subscribed}},
subscribeButtonInvisible:{configurable:!0,enumerable:!0,get:function(){return this.animatedActionEnabled&&this.hasBellButton&&this.subscribed}},
unsubscribeButtonHidden:{configurable:!0,enumerable:!0,get:function(){return!this.animatedActionEnabled&&!this.subscribed}},
buttonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var F={renderer:this.data,element:this.hostElement,subscribed:!!this.subscribed,isOverlay:!!this.overlayButton};var W=F.renderer;var E=F.element;var h=F.subscribed;var d=F.commandController;var V=F.isOverlay;F=F.config;var R=LSS(W,h);V&&(R.style="overlay");V=Object;var M=V.assign,g;a:switch((g=W.style)==null?void 0:g.styleType){case "COMPACT_GRAY":case "COMPACT_RED":g={size:"S"};break a;default:g={size:"M"}}var t=sMW(W,h);var C=
(C=h?W.subscribedButtonText:W.unsubscribedButtonText)?_.qr(C):void 0;return M.call(V,{},R,g,{focused:!1,toggled:h,accessibilityLabel:t,formattedButtonText:C,onTap:AuY(W,F,h,E,d)})}}}});
ed.prototype.onMouseDown=ed.prototype.onMouseDown;ed.prototype.onDataChanged=ed.prototype.onDataChanged;ed.prototype.observedSubscribed=ed.prototype.observedSubscribed;ed.prototype.onYtServiceRequestCompleted=ed.prototype.onYtServiceRequestCompleted;ed.prototype.onYtServiceRequestSent=ed.prototype.onYtServiceRequestSent;ed.prototype.maybeUpdateBellButtonText=ed.prototype.maybeUpdateBellButtonText;_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],ed.prototype,"ytComponentBehavior",void 0);
_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],ed.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],ed.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],ed.prototype,"ytActionHandlerBehavior",void 0);_.T([_.J(_.am),_.Y("design:type",Object)],ed.prototype,"ytdReduxBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],ed.prototype,"data",void 0);
_.T([_.O({selectorArgs:["data.subscribedEntityKey"],selector:MY}),_.Y("design:type",Object)],ed.prototype,"subscriptionStateEntity",void 0);_.T([_.O({computed:"computeSubscribed(data.subscribed, subscriptionStateEntity)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],ed.prototype,"subscribed",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],ed.prototype,"branded",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],ed.prototype,"animatedActionEnabled",void 0);
_.T([_.O(),_.Y("design:type",Object)],ed.prototype,"foregroundLottieRef",void 0);_.T([_.O(),_.Y("design:type",Object)],ed.prototype,"backgroundLottieRef",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],ed.prototype,"overlayButton",void 0);_.T([_.O({reflectToAttribute:!0,computed:"computeButtonStyle(data)"}),_.Y("design:type",Object)],ed.prototype,"buttonStyle",void 0);_.T([_.O(),_.Y("design:type",Object)],ed.prototype,"forceIconOnly",void 0);
_.T([_.O(),_.Y("design:type",Object)],ed.prototype,"showTextWhileAnimating",void 0);_.T([_.O({value:function(){return!!_.WZ().resolve(_.Fd(_.$V))&&_.c("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.Y("design:type",Boolean)],ed.prototype,"useKeyboardFocused",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],ed.prototype,"keyboardFocused",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],ed.prototype,"isAnimating",void 0);_.T([_.a("data.notificationPreferenceButton.*"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],ed.prototype,"hasBellButton",null);
_.T([_.ea("subscribedButtonText"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ed.prototype,"maybeUpdateBellButtonText",null);_.T([_.a("data.subscribedButtonText","forceIconOnly","isAnimating","subscribed"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],ed.prototype,"subscribedButtonText",null);_.T([_.a("data.timedAnimationData.animationTiming","subscribed"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],ed.prototype,"smartimationSettings",null);
_.T([_.O({reflectToAttribute:!0}),_.a("subscribed","hasBellButton","data.hideWhenUnsubscribed"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],ed.prototype,"subscribeButtonHidden",null);_.T([_.O({reflectToAttribute:!0}),_.a("subscribed","hasBellButton"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],ed.prototype,"subscribeButtonInvisible",null);
_.T([_.O({reflectToAttribute:!0}),_.a("subscribed"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],ed.prototype,"unsubscribeButtonHidden",null);_.T([_.gQ("ytd-subscription-notification-toggle-button-renderer-next"),_.Y("design:type",Object)],ed.prototype,"bellButton",void 0);_.T([_.gQ("#subscribe-button-shape"),_.Y("design:type",HTMLElement)],ed.prototype,"subscribeButtonShape",void 0);
_.T([_.a("overlayButton","subscribed","data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],ed.prototype,"buttonShape",null);_.T([_.R4("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.nQ]),_.Y("design:returntype")],ed.prototype,"onYtServiceRequestSent",null);_.T([_.R4("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.uz]),_.Y("design:returntype")],ed.prototype,"onYtServiceRequestCompleted",null);
_.T([_.ea("subscribed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ed.prototype,"observedSubscribed",null);_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ed.prototype,"onDataChanged",null);_.T([_.R4("mousedown"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],ed.prototype,"onMouseDown",null);
ed=_.T([_.y({disableElementRegistration:!0,is:"ytd-subscribe-button-renderer"})],ed);
_.r(ed,"ytd-subscribe-button-renderer",function(){if(GIi!==void 0)return GIi;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-subscribe-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-smartimation settings="[[smartimationSettings]]" class="style-scope ytd-subscribe-button-renderer">\n  <yt-button-shape id="subscribe-button-shape" data="[[buttonShape]]" hidden="[[subscribeButtonHidden]]" invisible$="[[subscribeButtonInvisible]]" class="style-scope ytd-subscribe-button-renderer">\n  </yt-button-shape>\n  <div id="notification-preference-toggle-button" hidden="[[!subscribed]]" class="style-scope ytd-subscribe-button-renderer"></div>\n  <yt-animated-action background-lottie-ref="[[backgroundLottieRef]]" foreground-lottie-ref="[[foregroundLottieRef]]" key="yt-animated-action" class="style-scope ytd-subscribe-button-renderer">\n    <div id="notification-preference-button" hidden="[[unsubscribeButtonHidden]]" invisible$="[[!subscribed]]" class="style-scope ytd-subscribe-button-renderer"></div>\n  </yt-animated-action>\n</yt-smartimation>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return GIi=F},{mode:1});var MM=function(){var F=_.n.apply(this,arguments)||this;F.isRichGrid=!1;return F};
_.k(MM,_.n);MM.prototype.configureRendererStamper=function(){return{"data.game":{id:"game",mapping:{gameDetailsRenderer:{component:"ytd-game-details-renderer",properties:{isRichGrid:"[[isRichGrid]]"}}}},"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],MM.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],MM.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],MM.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],MM.prototype,"isRichGrid",void 0);MM=_.T([_.y({is:"ytd-game-card-renderer",disableElementRegistration:!0})],MM);
_.r(MM,"ytd-game-card-renderer",function(){if(rpT!==void 0)return rpT;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-game-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="game" class="style-scope ytd-game-card-renderer"></div>\n<div id="subscribe-button" class="style-scope ytd-game-card-renderer"></div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return rpT=F},{mode:1});var g1={id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}},initialRenderPriority:_.c("defer_menus")&&!aMH?0:void 0,waitForSignal:"eocs"};var YEM;var w7c;var Qb=function(){var F=_.n.apply(this,arguments)||this;F.actionMap={"yt-update-upcoming-event-reminder-button-state-command":"handleUpdateUpcomingEventReminderButtonStateCommand"};return F};
_.k(Qb,_.n);_.N=Qb.prototype;_.N.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"top"}}}}}};
_.N.onSeriesReminderStateEntityChange=function(){var F,W,E;((F=this.eventReminderStateEntity)==null?0:F.key)&&((W=this.seriesReminderStateEntity)==null?void 0:W.state)==="SPORTS_SERIES_REMINDER_STATE_ALL"&&((E=this.eventReminderStateEntity)==null?void 0:E.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE"&&this.ytdReduxBehavior.dispatch(_.AG("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:"UPCOMING_EVENT_REMINDER_STATE_NONE"})))};
_.N.onYtServiceRequestCompleted=function(){this.set("data.currentState",this.getButtonStateFromReminderState())};
_.N.onYtServiceRequestError=function(){var F;this.updateReminderStateEntitiesFromButtonState((F=this.data)==null?void 0:F.currentState)};
_.N.handleUpdateUpcomingEventReminderButtonStateCommand=function(F){if(F=_.D(F,GhU)){var W,E=(W=this.data)==null?void 0:W.targetId;E&&F.targetId===E&&_.fz(this.updateReminderStateEntitiesFromButtonState.bind(this,F.state))}};
_.N.getButtonStateFromReminderState=function(){var F;if(((F=this.seriesReminderStateEntity)==null?void 0:F.state)==="SPORTS_SERIES_REMINDER_STATE_ALL")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES";var W;if(((W=this.eventReminderStateEntity)==null?void 0:W.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE";var E,h;if(((E=this.seriesReminderStateEntity)==null?void 0:E.state)==="SPORTS_SERIES_REMINDER_STATE_NONE"&&((h=this.eventReminderStateEntity)==
null?void 0:h.state)==="UPCOMING_EVENT_REMINDER_STATE_NONE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE";var d;return(d=this.data)==null?void 0:d.currentState};
_.N.updateReminderStateEntitiesFromButtonState=function(F){if(F){switch(F){case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES":F="UPCOMING_EVENT_REMINDER_STATE_NONE";var W="SPORTS_SERIES_REMINDER_STATE_ALL";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE":F="UPCOMING_EVENT_REMINDER_STATE_SINGLE";W="SPORTS_SERIES_REMINDER_STATE_NONE";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE":F="UPCOMING_EVENT_REMINDER_STATE_NONE";W="SPORTS_SERIES_REMINDER_STATE_NONE";break;default:return}var E;
((E=this.eventReminderStateEntity)==null?0:E.key)&&this.ytdReduxBehavior.dispatch(_.AG("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:F})));var h;((h=this.seriesReminderStateEntity)==null?0:h.key)&&this.ytdReduxBehavior.dispatch(_.AG("sportsSeriesReminderStateEntity",this.seriesReminderStateEntity.key,Object.assign({},this.seriesReminderStateEntity,{state:W})))}};
_.Sn.Object.defineProperties(Qb.prototype,{currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var F=this.getButtonStateFromReminderState(),W,E;if(F&&((W=this.data)==null?0:(E=W.states)==null?0:E.length))for(W=_.U(this.data.states),E=W.next();!E.done;E=W.next()){E=E.value;var h=void 0;if(((h=_.D(E,YaH))==null?void 0:h.state)===F)return _.D(E,YaH)}}}});
Qb.prototype.onYtServiceRequestError=Qb.prototype.onYtServiceRequestError;Qb.prototype.onYtServiceRequestCompleted=Qb.prototype.onYtServiceRequestCompleted;Qb.prototype.onSeriesReminderStateEntityChange=Qb.prototype.onSeriesReminderStateEntityChange;_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],Qb.prototype,"ytActionHandlerBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Qb.prototype,"ytRendererBehavior",void 0);
_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],Qb.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.am),_.Y("design:type",Object)],Qb.prototype,"ytdReduxBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],Qb.prototype,"data",void 0);_.T([_.O({selectorArgs:["data.upcomingEventData.reminderStateEntityKey"],selector:Pyn}),_.Y("design:type",Object)],Qb.prototype,"eventReminderStateEntity",void 0);
_.T([_.O({selectorArgs:["eventReminderStateEntity.seriesReminderState"],selector:function(F,W){return _.Mn(F.entities,"sportsSeriesReminderStateEntity",W)}}),
_.Y("design:type",Object)],Qb.prototype,"seriesReminderStateEntity",void 0);_.T([_.a("data.currentState","eventReminderStateEntity","seriesReminderStateEntity"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Qb.prototype,"currentButtonStateRenderer",null);_.T([_.ea("seriesReminderStateEntity"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Qb.prototype,"onSeriesReminderStateEntityChange",null);
_.T([_.R4("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Qb.prototype,"onYtServiceRequestCompleted",null);_.T([_.R4("yt-service-request-error"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Qb.prototype,"onYtServiceRequestError",null);Qb=_.T([_.y({disableElementRegistration:!0,is:"ytd-upcoming-event-reminder-button-renderer"})],Qb);
_.r(Qb,"ytd-upcoming-event-reminder-button-renderer",function(){if(w7c!==void 0)return w7c;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-upcoming-event-reminder-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="button" class="style-scope ytd-upcoming-event-reminder-button-renderer"></div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);
return w7c=F},{mode:1});var uST;var zd=function(){return _.n.apply(this,arguments)||this};
_.k(zd,_.n);zd.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{ellipsisTruncate:!0}}}}}};
_.Sn.Object.defineProperties(zd.prototype,{text:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.ytRendererBehavior.getSimpleString(this.data.responseText)}},
textAriaLabel:{configurable:!0,enumerable:!0,get:function(){if(_.c("web_announce_stop_seeing_this_ad_text_a11y_bugfix")&&this.data)return this.ytRendererBehavior.getSimpleString(this.data.responseText)}}});
_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],zd.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],zd.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],zd.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],zd.prototype,"shelfDismissal",void 0);_.T([_.a("data.responseText"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],zd.prototype,"text",null);
_.T([_.a("data.responseText"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],zd.prototype,"textAriaLabel",null);zd=_.T([_.y({disableElementRegistration:!0,is:"ytd-notification-multi-action-renderer"})],zd);
_.r(zd,"ytd-notification-multi-action-renderer",function(){if(uST!==void 0)return uST;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-notification-multi-action-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<span id="text" aria-label$="[[textAriaLabel]]" class="style-scope ytd-notification-multi-action-renderer">[[text]]</span>\n<div id="buttons" class="style-scope ytd-notification-multi-action-renderer"></div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return uST=F},{mode:1});var SEe;var tM=function(){return _.n.apply(this,arguments)||this};
_.k(tM,_.n);tM.prototype.ready=function(){var F=this;_.Z(this.hostElement).querySelector("#undo").addEventListener("tap",function(){F.onUndoTap()})};
tM.prototype.onUndoTap=function(){this.data.undoEndpoint&&_.WZ().resolve(_.EJ).resolveCommand(this.data.undoEndpoint,{form:{element:this.hostElement}})};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],tM.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],tM.prototype,"data",void 0);tM=_.T([_.y({disableElementRegistration:!0,is:"ytd-notification-text-renderer"})],tM);
_.r(tM,"ytd-notification-text-renderer",function(){if(SEe!==void 0)return SEe;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-notification-text-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.successResponseText]]" class="style-scope ytd-notification-text-renderer"></yt-formatted-string>\n<yt-formatted-string id="undo" text="[[data.undoText]]" class="style-scope ytd-notification-text-renderer"></yt-formatted-string>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return SEe=F},{mode:1});var p7B;var Cp=function(){var F=_.n.apply(this,arguments)||this;F.mouseOverDelayJobId=0;F.fadeInImageDelayJobId=0;F.startTimeMs=-1;F.loadingStartTimeMs=-1;F.loadingEndTimeMs=-1;F.hasVideoPreview=!1;return F};
_.k(Cp,_.n);_.N=Cp.prototype;_.N.attached=function(){this.data&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.N.detached=function(){this.isAttachedAndDataSet=!1;this.hideThumbnail();this.data=void 0;this.csn=null};
_.N.dataChanged=function(){this.data&&this.isAttached&&!this.isAttachedAndDataSet&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.N.showThumbnail=function(){var F=this;this.csn=_.JR();_.JF("fmth");_.P0.cancelJob(this.mouseOverDelayJobId);this.data&&this.data.movingThumbnailDetails&&this.data.movingThumbnailDetails.thumbnails?this.mouseOverDelayJobId=_.Ed(_.P0,function(){F.loadingStartTimeMs=(0,_.KU)();var W=_.Z(F.hostElement).querySelector("#thumbnail");W.complete?F.displayMouseOverImage():W.addEventListener("load",_.UO(F,F.displayMouseOverImage))},150):_.Wm(_.Z(this.hostElement).querySelector("#play"),"show",!0)};
_.N.hideThumbnail=function(){this.data&&this.data.enableHoveredLogging&&this.logHoverEvent();this.removeVideoPreview()};
_.N.onTap=function(){this.removeVideoPreview()};
_.N.logHoverEvent=function(){if(this.csn&&this.trackingParams&&!(this.loadingStartTimeMs<=0)){var F=this.videoId,W=this.csn,E=this.loadingEndTimeMs>0?this.loadingEndTimeMs-this.loadingStartTimeMs:0,h=this.startTimeMs,d=this.hasVideoPreview,V=_.ve(this.trackingParams),R={isMovingThumbnail:d};d&&h>0&&(E>0&&(R.movingThumbnailLoadingDurationMs=Math.round(E)),R.durationHoveredMs=Math.round((0,_.KU)()-h));F&&(R.videoId=F);_.GJ(W,V,"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{thumbnailHoveredData:R});this.startTimeMs=
this.loadingEndTimeMs=this.loadingStartTimeMs=-1;this.hasVideoPreview=!1}};
_.N.removeVideoPreview=function(){_.P0.cancelJob(this.mouseOverDelayJobId);_.P0.cancelJob(this.fadeInImageDelayJobId);var F=_.Z(this.hostElement).querySelector("#thumbnail");_.Wm(F,"fade-in",!1);F.removeEventListener("load",_.UO(this,this.displayMouseOverImage));F=_.Z(this.hostElement).querySelector("#play");_.Wm(F,"fade-in",!1);_.Wm(F,"show",!1)};
_.N.displayMouseOverImage=function(){var F=_.Z(this.hostElement).querySelector("#thumbnail"),W=_.Z(this.hostElement).querySelector("#play");this.isImageAvailable(F)?(this.hasVideoPreview=!0,this.loadingEndTimeMs=(0,_.KU)(),this.startTimeMs=(0,_.KU)(),this.fadeInImageDelayJobId=_.Ed(_.P0,function(){_.Wm(F,"fade-in",!0)},50)):_.Wm(W,"fade-in",!0)};
_.N.computeThumbnail=function(F,W){var E;F&&F.movingThumbnailDetails&&F.movingThumbnailDetails.thumbnails&&W?E=_.m_(F.movingThumbnailDetails.thumbnails,this.hostElement.clientWidth):E=W?"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7":"";if(E)return _.II(E)};
_.N.isImageAvailable=function(F){return!(!F.src||F.src==="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"||F.naturalWidth===120)};
Cp.prototype.onTap=Cp.prototype.onTap;Cp.prototype.dataChanged=Cp.prototype.dataChanged;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Cp.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],Cp.prototype,"ytComponentBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],Cp.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Object)],Cp.prototype,"csn",void 0);_.T([_.O(),_.Y("design:type",Object)],Cp.prototype,"trackingParams",void 0);
_.T([_.O(),_.Y("design:type",String)],Cp.prototype,"videoId",void 0);_.T([_.O(),_.Y("design:type",Boolean)],Cp.prototype,"isAttachedAndDataSet",void 0);_.T([_.Cz("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Cp.prototype,"dataChanged",null);_.T([_.R4("click"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Cp.prototype,"onTap",null);Cp=_.T([_.y({disableElementRegistration:!0,is:"ytd-moving-thumbnail-renderer"})],Cp);
_.r(Cp,"ytd-moving-thumbnail-renderer",function(){if(p7B!==void 0)return p7B;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-moving-thumbnail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<img id="thumbnail" alt="" src$="[[computeThumbnail(data, isAttachedAndDataSet)]]" class="style-scope ytd-moving-thumbnail-renderer">\n<yt-icon id="play" icon="play_all" class="style-scope ytd-moving-thumbnail-renderer"></yt-icon>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return p7B=F},{mode:1});var m9_;_.c6=function(F){this.hostElement=F;this.eventSink=null;this.eventList=[]};
_.c6.prototype.shouldForward=function(){var F,W;return(W=(F=this.eventSink)==null?void 0:F.isConnected)!=null?W:document.body.contains(this.eventSink)};
_.c6.prototype.start=function(F,W){this.eventSink&&this.stop();for(var E=0;E<F.length;E++)this.hostElement.addEventListener(F[E],_.UO(this,this.forwardEvent));var h;this.eventSink=(h=W.hostElement)!=null?h:W;this.eventList=F};
_.c6.prototype.stop=function(){for(var F=0;F<this.eventList.length;F++)this.hostElement.removeEventListener(this.eventList[F],_.UO(this,this.forwardEvent));this.eventSink=null;this.eventList=[]};
_.c6.prototype.forwardEvent=function(F,W){this.shouldForward()&&(F.stopPropagation(),this.eventSink instanceof Element?_.hF(this.eventSink,F.type,W):_.OB(new _.xC("eventSink is not an element")))};_.B$={YtEventForwardingBehavior:{created:function(){this.forwarder_=new _.c6(this.hostElement)},
shouldForward:function(){return this.forwarder_.shouldForward()},
startForwardingEvents:function(F,W){this.forwarder_.start(F,W)},
stopForwardingEvents:function(){this.forwarder_.stop()}}};var v$=function(){return _.n.apply(this,arguments)||this};
_.k(v$,_.n);_.N=v$.prototype;_.N.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("top-right-overlay")||this.hostElement.setAttribute("top-right-overlay","true");this.tooltip.position=_.b0("HTML_DIR")==="rtl"?"right":"left"};
_.N.dataChanged=function(){this.popupOpen=!1};
_.N.computeAriaLabel=function(F){return _.D(F,RDM).label};
_.N.onTap=function(F){F.stopPropagation();F.preventDefault();this.data.command&&_.WZ().resolve(_.EJ).resolveCommand(this.data.command,{form:{element:this.hostElement}})};
_.N.onPopupOpened=function(){this.popupOpen=!0;this.eventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.N.onPopupClosed=function(){this.popupOpen=!1;this.eventForwardingBehavior.stopForwardingEvents()};
v$.prototype.onPopupClosed=v$.prototype.onPopupClosed;v$.prototype.onPopupOpened=v$.prototype.onPopupOpened;v$.prototype.onTap=v$.prototype.onTap;v$.prototype.dataChanged=v$.prototype.dataChanged;_.T([_.J(_.B$.YtEventForwardingBehavior),_.Y("design:type",Object)],v$.prototype,"eventForwardingBehavior",void 0);_.T([_.J(_.yf),_.Y("design:type",Object)],v$.prototype,"ironButtonState",void 0);_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],v$.prototype,"componentBehavior",void 0);
_.T([_.O(),_.Y("design:type",Object)],v$.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0,value:-1}),_.Y("design:type",Number)],v$.prototype,"tabindex",void 0);_.T([_.O({reflectToAttribute:!0,computed:"computeAriaLabel(data.accessibility)"}),_.Y("design:type",Object)],v$.prototype,"ariaLabel",void 0);_.T([_.O({value:!1}),_.Y("design:type",Boolean)],v$.prototype,"disableTooltips",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],v$.prototype,"popupOpen",void 0);
_.T([_.O(),_.Y("design:type",Element)],v$.prototype,"eventSink",void 0);_.T([_.gQ("#tooltip"),_.Y("design:type",Object)],v$.prototype,"tooltip",void 0);_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],v$.prototype,"dataChanged",null);_.T([_.R4("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],v$.prototype,"onTap",null);
_.T([_.R4("yt-popup-opened"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],v$.prototype,"onPopupOpened",null);_.T([_.R4("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],v$.prototype,"onPopupClosed",null);v$=_.T([_.y({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-button-renderer"})],v$);
_.r(v$,"ytd-thumbnail-overlay-button-renderer",function(){if(m9_!==void 0)return m9_;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon icon="[[data.icon.iconType]]" on-click="onTap" class="style-scope ytd-thumbnail-overlay-button-renderer"></yt-icon><tp-yt-paper-tooltip id="tooltip" animation-delay="0" hidden="[[disableTooltips]]" offset="0" class="style-scope ytd-thumbnail-overlay-button-renderer">\n  [[data.tooltip]]\n</tp-yt-paper-tooltip>');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return m9_=F},{mode:1});var Kka;var It=function(){return _.n.apply(this,arguments)||this};
_.k(It,_.n);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],It.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],It.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],It.prototype,"disableAnimation",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],It.prototype,"rounded",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],It.prototype,"transparentBackground",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],It.prototype,"noPadding",void 0);It=_.T([_.y({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-endorsement-renderer"})],It);
_.r(It,"ytd-thumbnail-overlay-endorsement-renderer",function(){if(Kka!==void 0)return Kka;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-endorsement-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="inner-background" class="style-scope ytd-thumbnail-overlay-endorsement-renderer">\n  <yt-formatted-string text="[[data.text]]" class="style-scope ytd-thumbnail-overlay-endorsement-renderer"></yt-formatted-string>\n  <span id="bottom-right-corner" class="style-scope ytd-thumbnail-overlay-endorsement-renderer"></span>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return Kka=F},{mode:1});var FSB;var c$=function(){return _.n.apply(this,arguments)||this};
_.k(c$,_.n);c$.prototype.computeIconPosition=function(F){return this.get("iconPosition",F)||null};
c$.prototype.computeIconStyle=function(F){return this.get("iconStyle",F)||null};
c$.prototype.computeIsIconStyleFilled=function(F){if(!F)return!1;var W;return F.iconStyle==="THUMBNAIL_OVERLAY_ICON_RENDERER_ICON_STYLE_FILLED"||((W=F.icon)==null?void 0:W.iconType)==="ERROR_BLACK"};
_.T([_.O(),_.Y("design:type",Object)],c$.prototype,"data",void 0);_.T([_.O({computed:"computeIconPosition(data)",reflectToAttribute:!0}),_.Y("design:type",Object)],c$.prototype,"iconPosition",void 0);_.T([_.O({computed:"computeIconStyle(data)",reflectToAttribute:!0}),_.Y("design:type",Object)],c$.prototype,"iconStyle",void 0);_.T([_.O({computed:"computeIsIconStyleFilled(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],c$.prototype,"iconStyleFilled",void 0);
c$=_.T([_.y({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-icon-renderer"})],c$);
_.r(c$,"ytd-thumbnail-overlay-icon-renderer",function(){if(FSB!==void 0)return FSB;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-icon-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon default-to-filled="[[iconStyleFilled]]" icon="[[data.icon.iconType]]" class="style-scope ytd-thumbnail-overlay-icon-renderer"></yt-icon>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return FSB=F},{mode:1});var WSi;var DC=function(){return _.n.apply(this,arguments)||this};
_.k(DC,_.n);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],DC.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],DC.prototype,"data",void 0);DC=_.T([_.y({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-inline-unplayable-renderer"})],DC);
_.r(DC,"ytd-thumbnail-overlay-inline-unplayable-renderer",function(){if(WSi!==void 0)return WSi;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-inline-unplayable-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon id="icon" icon="[[data.icon.iconType]]" class="style-scope ytd-thumbnail-overlay-inline-unplayable-renderer"></yt-icon>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return WSi=F},{mode:1});var E$u;var xo=function(){var F=_.n.apply(this,arguments)||this;F.isPreviewLoading=!1;return F};
_.k(xo,_.n);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],xo.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],xo.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],xo.prototype,"isPreviewLoading",void 0);xo=_.T([_.y({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-loading-preview-renderer"})],xo);
_.r(xo,"ytd-thumbnail-overlay-loading-preview-renderer",function(){if(E$u!==void 0)return E$u;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-loading-preview-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<span class="style-scope ytd-thumbnail-overlay-loading-preview-renderer">[[getSimpleString(data.text)]]</span>');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return E$u=F},{mode:1});var h8u;var ko=function(){return _.n.apply(this,arguments)||this};
_.k(ko,_.n);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],ko.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],ko.prototype,"data",void 0);ko=_.T([_.y({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-pinking-renderer"})],ko);
_.r(ko,"ytd-thumbnail-overlay-pinking-renderer",function(){if(h8u!==void 0)return h8u;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-pinking-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<svg class="pinking-left style-scope ytd-thumbnail-overlay-pinking-renderer" shape-rendering="crispEdges">\n  <defs class="style-scope ytd-thumbnail-overlay-pinking-renderer">\n    <pattern id="left-pattern" width="5" height="8" patternUnits="userSpaceOnUse" class="style-scope ytd-thumbnail-overlay-pinking-renderer">\n      <polygon class="pinking style-scope ytd-thumbnail-overlay-pinking-renderer" points="0,0 1,0 5,4 1,8 0,8"></polygon>\n    </pattern>\n  </defs>\n  <rect fill="url(#left-pattern)" width="5" height="100%" class="style-scope ytd-thumbnail-overlay-pinking-renderer"></rect>\n</svg>\n<svg class="pinking-right style-scope ytd-thumbnail-overlay-pinking-renderer" shape-rendering="crispEdges">\n  <defs class="style-scope ytd-thumbnail-overlay-pinking-renderer">\n    <pattern id="right-pattern" width="5" height="8" patternUnits="userSpaceOnUse" class="style-scope ytd-thumbnail-overlay-pinking-renderer">\n      <polygon class="pinking style-scope ytd-thumbnail-overlay-pinking-renderer" points="4,0 0,4 4,8 5,8 5,0"></polygon>\n    </pattern>\n  </defs>\n  <rect fill="url(#right-pattern)" width="5" height="100%" class="style-scope ytd-thumbnail-overlay-pinking-renderer"></rect>\n</svg>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return h8u=F},{mode:1});var dZ_;var AM=function(){var F=_.n.apply(this,arguments)||this;F.disableTooltips=!1;F.isLoading=!1;F.useExpandableTooltip=!1;F.toggled=!1;F.hovered=!1;F.mouseoverDelayJobId=0;F.toggleDelayJobId=0;F.expandAnimationDelayJobId=0;return F};
_.k(AM,_.n);_.N=AM.prototype;_.N.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1");this.hostElement.hasAttribute("top-right-overlay")||this.hostElement.setAttribute("top-right-overlay","true");_.Z(this.hostElement).querySelector("#tooltip").position=_.b0("HTML_DIR")==="rtl"?"right":"left"};
_.N.detached=function(){this.useExpandableTooltip&&(this.isLoading=this.hovered=!1,this.data&&!this.data.toggledServiceEndpoint&&this.set("data.isToggled",!1),this.mouseoverDelayJobId&&_.P0.cancelJob(this.mouseoverDelayJobId),this.toggleDelayJobId&&_.P0.cancelJob(this.toggleDelayJobId),this.expandAnimationDelayJobId&&_.P0.cancelJob(this.expandAnimationDelayJobId),this.useExpandableTooltip=!1)};
_.N.dataChanged=function(){this.popupOpen=this.isLoading=!1;this.mouseoverDelayJobId&&_.P0.cancelJob(this.mouseoverDelayJobId);this.toggleDelayJobId&&_.P0.cancelJob(this.toggleDelayJobId);this.expandAnimationDelayJobId&&_.P0.cancelJob(this.expandAnimationDelayJobId)};
_.N.computeIcon=function(F,W,E){return(F=E?W:F)&&F.iconType?_.Vd(F.iconType):void 0};
_.N.computeAriaLabel=function(F,W,E){return _.D(E?W:F,RDM).label};
_.N.computeTooltip=function(F,W,E){return E?W:F};
_.N.computeToggled=function(){return!(!this.data||!this.data.isToggled)};
_.N.computeIconOnHover=function(F,W){if((F==null?0:F.iconType)&&!W)return _.Vd(F.iconType)};
_.N.onTap=function(F){var W=this;F.stopPropagation();F.preventDefault();if(!this.isLoading||this.useExpandableTooltip)if(F=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint)this.isLoading=!0,this.set("data.isToggled",!this.data.isToggled),this.ytComponentBehavior.resolveCommand(F),this.useExpandableTooltip&&(this.toggleDelayJobId=_.Ed(_.P0,function(){W.hovered=!1;W.data&&!W.data.toggledServiceEndpoint&&(W.expandAnimationDelayJobId=_.Ed(_.P0,function(){W.set("data.isToggled",
!1)},200))},2E3))};
_.N.onMouseenter=function(){var F=this;this.mouseoverDelayJobId=_.Ed(_.P0,function(){F.hovered=!0},300)};
_.N.onMouseleave=function(){_.P0.cancelJob(this.mouseoverDelayJobId);this.toggled||(this.hovered=!1)};
_.N.onPopupOpened=function(){this.popupOpen=!0;this.ytEventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.N.onPopupClosed=function(){this.popupOpen=!1;this.ytEventForwardingBehavior.stopForwardingEvents()};
_.N.onServiceRequestCompleted=function(F,W){this.isLoading=!1;if(!this.useExpandableTooltip||this.data.toggledServiceEndpoint&&this.data.untoggledServiceEndpoint)this.serviceRequestWasSuccessful(W)||this.set("data.isToggled",!this.data.isToggled)};
_.N.serviceRequestWasSuccessful=function(F){return _.D(this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint,_.lE)?F.data.status==="STATUS_SUCCEEDED":!0};
AM.prototype.onServiceRequestCompleted=AM.prototype.onServiceRequestCompleted;AM.prototype.onPopupClosed=AM.prototype.onPopupClosed;AM.prototype.onPopupOpened=AM.prototype.onPopupOpened;AM.prototype.onMouseleave=AM.prototype.onMouseleave;AM.prototype.dataChanged=AM.prototype.dataChanged;_.T([_.J(_.yf),_.Y("design:type",Object)],AM.prototype,"ironButtonState",void 0);_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],AM.prototype,"ytComponentBehavior",void 0);
_.T([_.J(_.B$.YtEventForwardingBehavior),_.Y("design:type",Object)],AM.prototype,"ytEventForwardingBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],AM.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0,computed:"computeAriaLabel(data.untoggledAccessibility, data.toggledAccessibility, data.isToggled)"}),_.Y("design:type",Object)],AM.prototype,"ariaLabel",void 0);_.T([_.O(),_.Y("design:type",Object)],AM.prototype,"disableTooltips",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],AM.prototype,"popupOpen",void 0);_.T([_.O(),_.Y("design:type",Object)],AM.prototype,"isLoading",void 0);_.T([_.O(),_.Y("design:type",Element)],AM.prototype,"eventSink",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],AM.prototype,"useExpandableTooltip",void 0);_.T([_.O({reflectToAttribute:!0,computed:"computeToggled(data.isToggled)"}),_.Y("design:type",Object)],AM.prototype,"toggled",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],AM.prototype,"hovered",void 0);_.T([_.O({reflectToAttribute:!0,computed:"computeIconOnHover(data.untoggledIconOnHover, isToggled)"}),_.Y("design:type",Object)],AM.prototype,"iconOnHover",void 0);_.T([_.Cz("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],AM.prototype,"dataChanged",null);
_.T([_.R4("mouseleave"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],AM.prototype,"onMouseleave",null);_.T([_.R4("yt-popup-opened"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],AM.prototype,"onPopupOpened",null);_.T([_.R4("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],AM.prototype,"onPopupClosed",null);
_.T([_.R4("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.uz]),_.Y("design:returntype")],AM.prototype,"onServiceRequestCompleted",null);AM=_.T([_.y({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-toggle-button-renderer"})],AM);
_.r(AM,"ytd-thumbnail-overlay-toggle-button-renderer",function(){if(dZ_!==void 0)return dZ_;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-toggle-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="label-container" class="style-scope ytd-thumbnail-overlay-toggle-button-renderer"><div id="label" on-click="onTap" hidden="[[disableTooltips]]" class="style-scope ytd-thumbnail-overlay-toggle-button-renderer">\n    [[computeTooltip(data.untoggledTooltip, data.toggledTooltip, data.isToggled)]]\n  </div></div><yt-icon id="icon-on-hover-element" icon="[[iconOnHover]]" class="style-scope ytd-thumbnail-overlay-toggle-button-renderer"></yt-icon><yt-icon id="icon" icon="[[computeIcon(data.untoggledIcon, data.toggledIcon, data.isToggled)]]" on-click="onTap" on-mouseenter="onMouseenter" class="style-scope ytd-thumbnail-overlay-toggle-button-renderer"></yt-icon><tp-yt-paper-tooltip id="tooltip" animation-delay="0" hidden="[[disableTooltips]]" offset="0" class="style-scope ytd-thumbnail-overlay-toggle-button-renderer">\n  [[computeTooltip(data.untoggledTooltip, data.toggledTooltip, data.isToggled)]]\n</tp-yt-paper-tooltip>');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return dZ_=F},{mode:_.E6("kevlar_poly_si_batch_j053")?1:2});var N0X;var VvT=_.GK(function(F){var W=F.data;var E=function(){return W().enableSegmentView};
return _.z("yt-thumbnail-overlay-progress-bar-view-model",{class:"ytThumbnailOverlayProgressBarHost"},_.z(_.v,{cond:E,then:function(){return _.z("div",{class:"ytThumbnailOverlayProgressBarHostProgressBar"},_.z("div",{class:_.gY("ytThumbnailOverlayProgressBarHostProgressBarLeftSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment","ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment"),style:function(){return"width:"+W().startPercent+"%"}}),_.z("div",{class:_.gY("ytThumbnailOverlayProgressBarHostProgressBarContainer"),
style:function(){return"width:"+W().segmentDurationPercent+"%"}},_.z("div",{class:_.gY("ytThumbnailOverlayProgressBarHostProgressBarActiveSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment")}),_.z("div",{class:"ytThumbnailOverlayProgressBarHostLabel"},_.z("div",null," ",function(){return W().segmentLabel})),_.z("div",{class:"ytThumbnailOverlayProgressBarHostLabelTriangle"})),_.z("div",{class:_.gY("ytThumbnailOverlayProgressBarHostProgressBarRightSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment",
"ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment")}))}}),_.z(_.v,{cond:function(){return!E()&&W().startPercent},
then:function(){var h={};return _.z("div",{class:_.gY("ytThumbnailOverlayProgressBarHostWatchedProgressBar",(h.ytThumbnailOverlayProgressBarHostUseLegacyBar=!_.c("web_enable_modern_progress_bar_overlay"),h))},_.z("div",{class:"ytThumbnailOverlayProgressBarHostWatchedProgressBarSegment",style:function(){return"width:"+W().startPercent+"%"}}))}}))},"M");
VvT.idomCompat=!0;var UZi=_.GK(function(F){var W=_.tG(),E=_.Jb(function(d){var V,R,M;a:{var g=(V=F.data())==null?void 0:V.animationActivationTargetId;V=((R=F.data())==null?void 0:R.animationActivationEntityKey)||"";R=(M=F.data())==null?void 0:M.animationActivationEntitySelectorType;if(V&&g)switch(R){case "THUMBNAIL_BADGE_ANIMATION_ENTITY_SELECTOR_TYPE_PLAYER_STATE":d=_.Mn(d.entities,"playerStateEntity",V);M=_.WZ().resolve(_.Fd(_.GF));g=!!(d&&d.videoId===g&&(M==null?0:M.isMiniplayerActive()));g={activated:g,playAnimation:g&&
d.playerState==="PLAYER_STATE_PLAYING"};break a}g=void 0}return g});
_.q6(function(){var d;if((d=E())==null?0:d.activated){var V;if((V=E())==null?0:V.playAnimation){var R;(R=W.lottieEl)==null||R.goToAndPlay(0)}else{var M;(M=W.lottieEl)==null||M.goToAndStop(0)}}});
var h=function(){var d,V=!((d=E())==null||!d.activated);if(F.data()){d=F.data();var R=void 0;d.icon&&(R=_.klR(d.icon),R=Xjo(R));var M=void 0,g;if((g=d.backgroundColor)==null?0:g.lightTheme){var t;M={backgroundColor:HB((t=d.backgroundColor)==null?void 0:t.lightTheme,"0.8")}}if(d.text||R||V){if(V&&d.lottieData&&W){t=d.lottieData;var C,B,I;g={animationConfig:{name:t.url,path:t.url,autoplay:(C=t.settings)==null?void 0:C.autoplay,loop:(I=(B=t.settings)==null?void 0:B.loop)!=null?I:!0},animationRef:W}}else g=
void 0;if(V)C=16;else b:switch(d.badgeStyle){case "THUMBNAIL_OVERLAY_BADGE_STYLE_LIVE":C=17;break b;case "THUMBNAIL_OVERLAY_BADGE_STYLE_SPECIAL":C=18;break b;default:C=16}V={type:C,text:V&&d.animatedText?d.animatedText:d.text,icon:R,customColors:M,animation:g}}else V=void 0}else V=void 0;return V};
return _.z("yt-thumbnail-badge-view-model",{class:_.ec("yt-thumbnail-badge-view-model-wiz",F.class)},_.z(_.v,{cond:h,then:function(){return _.z(_.hD,{data:function(){return h()}})}}))},"N");var R8i=_.GK(function(F){var W={};return _.z("yt-thumbnail-bottom-overlay-view-model",{class:_.ec("ytThumbnailBottomOverlayViewModelHost",(W.ytThumbnailBottomOverlayViewModelHostBackground=function(){return F.data().enableGradientBackground},W))},_.z("div",{class:"ytThumbnailBottomOverlayViewModelHostContainer"},_.z(_.a6,{data:function(){return F.data().progressBar}},{thumbnailOverlayProgressBarViewModel:VvT}),_.z(_.a6,{data:function(){return F.data().badge}},{thumbnailBadgeViewModel:function(E){return _.z(UZi,
{data:E.data,
class:"ytThumbnailBottomOverlayViewModelHostBadge"})}}),_.z(_.a6,{data:function(){return F.data().badges}},{thumbnailBadgeViewModel:function(E){return _.z(UZi,{data:E.data,
class:"ytThumbnailBottomOverlayViewModelHostBadge"})}})))},"O");
R8i.idomCompat=!0;_.pK(R8i,"yt-thumbnail-bottom-overlay-view-model",{props:{data:_.Si}});var lfW={calledOnce:!1,state:"visible"},n$r={calledOnce:!1,state:"hidden"};_.ht(jMe);var e8e=_.GK(function(F){var W=F.data;var E=F.className;F=F.alwaysShow;var h=_.uf();_.Sb(h,function(){return W().rendererContext});
var d=_.ZAe(),V={};return _.z("thumbnail-hover-overlay-view-model",{el:h,class:_.ec("ytThumbnailHoverOverlayViewModelHost",E,(V.ytThumbnailHoverOverlayViewModelHostForceHover=F,V)),"aria-label":function(){var R;return(R=_.D(W().rendererContext,_.m9))==null?void 0:R.label},
role:function(){return _.wk(W().rendererContext)!==void 0?"button":void 0},
tabindex:function(){return _.wk(W().rendererContext)!==void 0?0:void 0},
"on:keypress":d},_.z("div",{class:_.ec("ytThumbnailHoverOverlayViewModelScrim",function(){a:switch(W().style){case "THUMBNAIL_HOVER_OVERLAY_STYLE_BUTTON":var R="ytThumbnailHoverOverlayViewModelStyleButton";break a;default:R="ytThumbnailHoverOverlayViewModelStyleCover"}return R})},_.z(_.v,{cond:function(){return W().icon},
then:function(R){return _.z(_.T4,{data:R,alt:"",className:"ytThumbnailHoverOverlayViewModelIcon"})}}),_.z(_.v,{cond:function(){return W().text},
then:function(R){return _.z(_.Ab,{text:R,className:"ytThumbnailHoverOverlayViewModelText"})}})))},"P"),MvX=_.c("web_enable_sink_lockups_batch")?e8e:jMe,g$X=_.c("web_enable_sink_lockups_batch")?e8e:_.Qt(jMe);
e8e.idomCompat=!0;var QMH=_.GK(function(F){var W=F.data;return _.z(_.a6,{data:function(){return W==null?void 0:W().overlays}},{thumbnailHoverOverlayViewModel:g$X})},"Q");
QMH.idomCompat=!0;var z8B={};var tva=_.GK(function(F){var W=F.data;var E=F.image;var h=F.state;var d=F.iconType;var V=F.overlays;var R=F.isOverlay;var M=_.Sh();F=_.U(_.g$(!0,void 0,"AA4e7b"));var g=F.next().value,t=F.next().value,C=function(){return!!W().onTap},B=_.TK(d,"LIVE");
_.q6(function(){var x=W();requestAnimationFrame(function(){if(M.value===null)var A=!0;else{var X=M.value;A=x.badgeText;var P=iAY(x.size);A in z8B?X=z8B[A]:(X=X.clientWidth,z8B[A]=X);(A=X>P)?M.value.style.display="none":M.value.style.visibility="visible"}t(A)})});
var I=function(){var x={};return x["yt-spec-avatar-shape__image"]=!0,x["yt-spec-avatar-shape__image--ads-app"]=W().type===1,x};
return _.z("yt-avatar-shape",null,_.z("div",{el:_.G4(T0k(C,{keydown:function(x){if(x.key==="Enter"){var A;(A=x.currentTarget)==null||A.click()}},
click:function(x){var A,X;return void((X=(A=W()).onTap)==null?void 0:X.call(A,x))}})),
class:function(){var x={"yt-spec-avatar-shape":!0,"yt-spec-avatar-shape__button":!0},A=W();x=(x[A.clusterLayoutConfig?YSR(A.clusterLayoutConfig):wAw(A.size)]=!0,x["yt-spec-avatar-shape__button--tappable"]=C(),x);(A=W().avatarButtonCustomClassName)&&(x[A]=!0);return _.gY(x)},
"aria-label":function(){return C()?W().accessibilityText:""},
role:function(){return C()?"button":void 0},
tabindex:function(){return C()?0:void 0}},_.z("div",{class:function(){var x,A=W(),X=h==null?void 0:h(),P=R==null?void 0:R(),b=!((x=A.decorations)==null||!x.includes(2)||A.size!=="medium"&&A.size!=="large"),l=A.size==="tiny"||A.size==="extra-small",w,G,hr,p,UY={};
x=(UY["yt-spec-avatar-shape--live-ring"]=!!(((w=A.decorations)==null?0:w.includes(0))&&SSe(A.size)),UY["yt-spec-avatar-shape--stories-watched"]=b&&!(X==null||!X.storiesWatched),UY["yt-spec-avatar-shape--stories-unwatched"]=b&&!(X==null?0:X.storiesWatched),UY["yt-spec-avatar-shape--background-border"]=pAb(A.decorations)&&!l,UY["yt-spec-avatar-shape--background-border-thin"]=pAb(A.decorations)&&l,UY["yt-spec-avatar-shape__on-select-border"]=!((G=A.decorations)==null||!G.includes(4)),UY["yt-spec-avatar-shape__white-border"]=
!((hr=A.decorations)==null||!hr.includes(5)),UY["yt-spec-avatar-shape__white-border--white-border-thin"]=!!(((p=A.decorations)==null?0:p.includes(5))&&l),UY["yt-spec-avatar-shape--is-overlay"]=!!P,UY);return _.gY(x)}},_.z("div",{class:function(){var x={};
var A=W();x=(x[A.clusterLayoutConfig?o$k(A.clusterLayoutConfig):GPr(A.size)]=!0,x["yt-spec-avatar-shape--no-margin"]=pAb(W().decorations),x);return _.gY(x)}},_.z(_.T4,{data:E,
alt:function(){return!C()&&W().accessibilityText?W().accessibilityText:""},
targetWidth:function(){return uZR(W().size)},
targetHeight:function(){return uZR(W().size)},
className:function(){return _.gY(I())}}),_.z(_.v,{cond:function(){var x;
return((x=W().decorations)==null?void 0:x.includes(0))&&SSe(W().size)},
then:function(){return _.z("div",{class:function(){var x={};x=(x["yt-spec-avatar-shape__live-badge"]=!0,x["yt-spec-avatar-shape__live-badge--badge-small"]=W().size==="small",x["yt-spec-avatar-shape__live-badge--badge-medium"]=W().size==="medium"||W().size==="48",x["yt-spec-avatar-shape__live-badge--badge-large"]=W().size==="large",x["yt-spec-avatar-shape__live-badge--badge-extra-large"]=W().size==="extra-large"||W().size==="extra-extra-large"||W().size==="giant",x);return _.gY(x)}},_.z(_.v,{cond:function(){return W().badgeText},
then:function(x){return _.z("div",{class:"yt-spec-avatar-shape__badge-text",el:M},x)}}),_.z(_.v,{cond:g,
then:function(){return _.z("div",{class:"yt-spec-avatar-shape__badge-icon"},_.z(_.I3,{icon:B,size:function(){a:switch(W().size){case "extra-large":var x=16;break a;default:x=13}return x}}))}}))}}),_.z(_.v,{cond:function(){var x,A;
return((x=W().decorations)==null?void 0:x.includes(1))||((A=W().decorations)==null?void 0:A.includes(0))&&!SSe(W().size)},
then:function(){return _.z("div",{class:function(){var x=W(),A,X,P={};var b=(P["yt-spec-avatar-shape__live-dot"]=!((A=x.decorations)==null||!A.includes(0)||SSe(x.size)),P["yt-spec-avatar-shape__new-content"]=!((X=x.decorations)==null||!X.includes(1)),P);return _.gY(b)}})}}),_.z(_.v,{cond:function(){return!!V},
then:function(){return _.z("div",{class:function(){var x={};x=Object.assign((x["yt-spec-avatar-shape__image-overlays"]=!0,x),I());return _.gY(x)}},V==null?void 0:V())}})))))},"R");
tva.idomCompat={callbacks:{overlays:!0}};_.fI=_.GK(function(F){function W(){E().endpoint&&_.fK(E().endpoint)}
var E=F.data;var h=F.decorations;var d=F.avatarButtonCustomClassName;var V=F.isOverlay;var R=F.clusterLayoutConfig;return _.z("avatar-view-model",null,_.z(_.v,{cond:function(){return E().image},
then:function(M){return _.z(tva,{data:function(){return KSS({data:E(),onTap:E().endpoint?W:void 0,decorations:h==null?void 0:h(),badgeText:void 0,accessibilityText:E().accessibilityText,avatarButtonCustomClassName:d==null?void 0:d(),clusterLayoutConfig:R==null?void 0:R()})},
image:M,iconType:"RADAR_LIVE",overlays:function(){return _.z(QMH,{data:E})},
isOverlay:V})}}))},"S");
_.fI.idomCompat=!0;_.sc=_.GK(function(F){var W=F.data;F=F.className;var E=_.Sh(),h=function(){return _.D(W().avatar,_.Kx)},d=_.vX(function(){var V,R=W(),M=h(),g=_.wk(W().rendererContext),t=(V=E.value)!=null?V:void 0,C;
if(M){t={data:R,avatar:M,onTap:g,element:t};V=t.data;R=t.avatar;M=t.onTap;g=t.element;t=t.commandController;M=M?h1o(M,g,t):void 0;g=[];V.liveData&&g.push(0);var B;t=(B=V.liveData)==null?void 0:B.liveBadgeText;B=(C=_.D(V.rendererContext,_.m9))==null?void 0:C.label;C=KSS({data:R,onTap:M,decorations:g,badgeText:t,accessibilityText:B?B:V.a11yLabel})}else C={size:"medium"};return C},void 0,"H8tk9d");
return _.z("yt-decorated-avatar-view-model",{class:_.ec("yt-decorated-avatar-view-model-wiz",F),el:E},_.z(_.v,{cond:function(){var V;return(V=h())==null?void 0:V.image},
then:function(V){return _.z(tva,{data:d,image:V,iconType:"RADAR_LIVE",overlays:function(){return _.z(QMH,{data:h})}})}}))},"T");
_.sc.idomCompat=!0;_.Lp=_.GK(function(F){var W=function(){var M;return Object.assign({},F.data(),(M=F.overrides)==null?void 0:M.call(F))},E=_.uf(),h=function(){return E&&_.uJ(W().rendererContext)};
_.Sb(E,function(){return W().rendererContext});
var d=function(){var M=W().avatars,g,t;return(t=(g=(M==null?0:M[0])?_.D(M[0],_.Kx):void 0)==null?void 0:g.avatarImageSize)!=null?t:"AVATAR_SIZE_UNKNOWN"},V=function(){return Emo(W())},R={};
return _.z("yt-avatar-stack-view-model",{el:E,class:_.ec("yt-avatar-stack-view-model-wiz",F.className,(R["yt-avatar-stack-view-model-wiz--tappable"]=h,R["yt-avatar-stack-view-model-wiz--is-overlay"]=F.isOverlay,R["yt-avatar-stack-view-model-wiz--medium-text"]=F.useMediumText,R)),tabindex:function(){return h()?0:void 0},
role:function(){return h()?"link":void 0},
"aria-label":function(){var M,g;return(g=(M=_.D(W().rendererContext,_.m9))==null?void 0:M.label)!=null?g:""}},_.z(_.v,{cond:function(){var M;
return W().avatars&&!((M=F.hideAvatar)==null?0:M.call(F))},
then:function(){return _.z("div",{class:"yt-avatar-stack-view-model-wiz__avatars"},_.z(_.v,{cond:function(){return W().decoratedText},
then:function(M){var g={};return _.z("div",{class:_.ec("yt-avatar-stack-view-model-wiz__text-container",(g["yt-avatar-stack-view-model-wiz__text-container--thin-border"]=function(){return d()==="AVATAR_SIZE_XXS"||d()==="AVATAR_SIZE_XS"},g["yt-avatar-stack-view-model-wiz__text-container--thin-border-overlay"]=function(){var t;
return((t=F.isOverlay)==null?void 0:t.call(F))&&(d()==="AVATAR_SIZE_XXS"||d()==="AVATAR_SIZE_XS")},g)),
style:_.vr({width:function(){return V().avatarSizeInPx+"px"},
height:function(){return V().avatarSizeInPx+"px"}})},_.z(_.Ab,{text:M,
className:"yt-avatar-stack-view-model-wiz__avatar-decorated-text"}))}}),_.z("div",{style:function(){return _.vr(V().avatarStackStyle)()},
class:function(){return V().avatarStackClass}},_.z(_.a6,{data:function(){return V().avatars.reverse()}},{avatarViewModel:function(M,g){return _.z("div",{style:function(){var t,C;
return _.vr((C=(t=V()).avatarStyle)==null?void 0:C.call(t,g()))()},
class:function(){return V().avatarClass}},_.z(_.fI,{data:M.data,
decorations:function(){var t;if((t=F.decorations)==null?0:t.call(F))t=F.decorations();else{t=W();var C=0;t.avatars&&(C+=t.avatars.length);t.decoratedText&&(C+=1);t=C>1?[3]:[]}return t},
avatarButtonCustomClassName:function(){return V().avatarButtonCustomClassName},
isOverlay:F.isOverlay,clusterLayoutConfig:function(){var t,C;return(C=(t=V()).clusterLayoutConfig)==null?void 0:C.call(t,g())}}))},
decoratedAvatarViewModel:function(M,g){return _.z("div",{style:function(){var t,C;return _.vr((C=(t=V()).avatarStyle)==null?void 0:C.call(t,g()))()},
class:function(){return V().avatarClass}},_.z(_.sc,{data:M.data}))}})))}}),_.z(_.v,{cond:function(){return W().text},
then:function(M){return _.z(_.Ab,{text:M,className:"yt-avatar-stack-view-model-wiz__avatar-stack-text",linkInheritColor:!0})}}))},"U");
_.Lp.idomCompat=!0;_.pK(_.GK(function(F){var W=F.data;var E=F.thumbnailSize;return _.z("thumbnail-overlay-avatar-stack-view-model",{class:"ytThumbnailOverlayAvatarStackViewModelHost"},_.z("div",{class:_.ec("ytThumbnailOverlayAvatarStackViewModelavatarStack",function(){return dEW(E==null?void 0:E())})},_.z(_.a6,{data:function(){return W().avatarStack}},{avatarStackViewModel:function(h){return _.z(_.Lp,{data:h.data,
decorations:[5]})}})))},"V"),"thumbnail-overlay-avatar-stack-view-model",{props:{data:_.TS,
thumbnailSize:_.TS}});_.ht(NFk);var Ccp=_.GK(function(F){F=_.o4(F,{hidden:!1});var W=F.data;return _.z("yt-thumbnail-overlay-title-view-model",{class:"yt-thumbnail-overlay-title-view-model",hidden:F.hidden},_.z(_.Ab,{text:function(){return W().title},
className:"yt-thumbnail-overlay-title-view-model__title"}),_.z(_.v,{cond:function(){return W().subtitle},
then:function(){return _.z(_.Ab,{text:function(){return W().subtitle},
className:"yt-thumbnail-overlay-title-view-model__subtitle"})}}))},"W"),B0M=_.c("web_enable_sink_lockups_batch")?Ccp:NFk,v$p=_.c("web_enable_sink_lockups_batch")?Ccp:_.Qt(NFk);
Ccp.idomCompat=!0;_.c("web_enable_sink_lockups_batch")?_.pK(v$p,"yt-thumbnail-overlay-title-view-model",{props:{data:_.TS,hidden:_.TS}}):_.Nj(B0M,"yt-thumbnail-overlay-title-view-model",{propNames:["data"]});var IfH=_.GK(function(F){F=_.o4(F,{isClip:!1});var W=F.data,E=F.thumbnailSize,h={};return _.z("yt-thumbnail-overlay-badge-view-model",{class:_.ec("yt-thumbnail-overlay-badge-view-model-wiz",function(){a:switch(W().position){case "THUMBNAIL_OVERLAY_BADGE_POSITION_TOP_START":var d="yt-thumbnail-overlay-badge-view-model-wiz--top-start";break a;default:d="yt-thumbnail-overlay-badge-view-model-wiz--bottom-end"}return d},function(){return VxR(E==null?void 0:E())},(h["yt-thumbnail-overlay-badge-view-model-wiz--clip"]=
F.isClip,h))},_.z(_.a6,{data:function(){return W().thumbnailBadges}},{thumbnailBadgeViewModel:function(d){return _.z(UZi,{data:d.data,
class:"yt-thumbnail-overlay-badge-view-model-wiz__badge"})}}))},"X");
IfH.idomCompat=!0;_.pK(IfH,"yt-thumbnail-overlay-badge-view-model",{props:{data:_.TS,thumbnailSize:_.TS,isClip:_.TS}});_.ht(UEY);_.Nj(UEY,"yt-page-indicator-view-model",{propNames:["data"]});var qM=function(){var F=_.n.apply(this,arguments)||this;F.eventSink=function(){return F};
F.disableInteraction=!1;F.noRoundedCorners=!1;F.isPreviewLoading=!1;F.isOriginalAspectRatio=!1;F.computedObjectFit=!1;F.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};return F};
_.k(qM,_.n);_.N=qM.prototype;
_.N.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayBottomPanelRenderer:{component:"ytd-thumbnail-overlay-bottom-panel-renderer",properties:{overlayColor:"[[overlayColor]]"}},thumbnailOverlayPlaybackStatusRenderer:"ytd-thumbnail-overlay-playback-status-renderer",thumbnailOverlayResumePlaybackRenderer:{component:"ytd-thumbnail-overlay-resume-playback-renderer",properties:{isLive:"[[isLiveVideo]]"}},thumbnailOverlaySidePanelRenderer:{component:"ytd-thumbnail-overlay-side-panel-renderer",properties:{width:"[[thumbnailOverlaySidePanelWidth_]]",
bottomPanel:"[[bottomSidePanel]]",richGridOverlay:"[[richGridThumbnail]]",watchFeedOverlay:"[[watchFeedThumbnail]]"}},thumbnailOverlayTimeStatusRenderer:"ytd-thumbnail-overlay-time-status-renderer",thumbnailOverlayNowPlayingRenderer:{component:"ytd-thumbnail-overlay-now-playing-renderer",properties:{isVideoPlaying:"[[isVideoPlaying]]",equalizerOnly:"[[nowPlayingEqualizerOnly]]",isActive:"[[data.selected]]",videoId:"[[data.videoId]]"}},thumbnailOverlayPinkingRenderer:"ytd-thumbnail-overlay-pinking-renderer",
thumbnailOverlayDownloadingRenderer:{component:"ytd-thumbnail-overlay-downloading-renderer",params:{active:!0}},thumbnailOverlayIconRenderer:"ytd-thumbnail-overlay-icon-renderer",thumbnailOverlayTitleViewModel:"yt-thumbnail-overlay-title-view-model",pageIndicatorViewModel:"yt-page-indicator-view-model",thumbnailBottomOverlayViewModel:"yt-thumbnail-bottom-overlay-view-model",thumbnailOverlayAvatarStackViewModel:"thumbnail-overlay-avatar-stack-view-model",thumbnailOverlayBadgeViewModel:{component:"yt-thumbnail-overlay-badge-view-model",
properties:{thumbnailSize:"[[thumbnailSize]]"}}},initialRenderPriority:_.c("defer_overlays")?1:void 0,waitForSignal:void 0},hoverOverlays_:{id:"hover-overlays",reuseComponents:!1,mapping:{thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer",thumbnailOverlayInlineUnplayableRenderer:"ytd-thumbnail-overlay-inline-unplayable-renderer",thumbnailOverlayToggleButtonRenderer:{component:"ytd-thumbnail-overlay-toggle-button-renderer",properties:{disableTooltips:"[[disableTooltips]]",
eventSink:"[[eventSink]]",useExpandableTooltip:"[[useExpandableTooltip]]"}},thumbnailOverlayButtonRenderer:{component:"ytd-thumbnail-overlay-button-renderer",properties:{disableTooltips:"[[disableTooltips]]",eventSink:"[[eventSink]]"}},thumbnailOverlayEndorsementRenderer:"ytd-thumbnail-overlay-endorsement-renderer",thumbnailOverlayLoadingPreviewRenderer:{component:"ytd-thumbnail-overlay-loading-preview-renderer",properties:{isPreviewLoading:"[[isPreviewLoading]]"}}}},richThumbnail:{id:"mouseover-overlay",
mapping:{movingThumbnailRenderer:{component:"ytd-moving-thumbnail-renderer",properties:{trackingParams:"[[data.trackingParams]]",videoId:"[[data.videoId]]"}}},renderPriority:2,waitForSignal:"eocs"}}};
_.N.onImageLoaded=function(){this.loaded=!0};
_.N.onImageUnloaded=function(){this.loaded=!1};
_.N.computeRichThumbnail=function(F,W,E,h){if(F&&W&&!h&&!_.c("disable_moving_thumbs_handling")&&!E)return W};
_.N.computeImageWidth=function(F,W){return W||9999};
_.N.computeIsOriginalAspectRatio=function(F){return F};
_.N.computeIsLive=function(F){if(F==null?0:F.badges)for(var W=0;W<F.badges.length;W++){var E=F.badges[W];if(E.metadataBadgeRenderer&&E.metadataBadgeRenderer.style==="BADGE_STYLE_TYPE_LIVE_NOW")return!0}else if(F==null?0:F.thumbnailOverlays)for(W=0;W<F.thumbnailOverlays.length;W++)if(E=F.thumbnailOverlays[W],E.thumbnailOverlayTimeStatusRenderer&&E.thumbnailOverlayTimeStatusRenderer.style==="LIVE")return!0;return!1};
_.N.computeObjectFit=function(F,W){return W||(F?"CONTAIN":"")};
_.N.computeNavigationEndpoint=function(F,W,E){return F?W:E};
_.N.computeHasClip=function(F){F=_.U(F||[]);for(var W=F.next();!W.done;W=F.next())if(W.value.thumbnailOverlayPinkingRenderer)return!0;return!1};
_.N.computeOverlayColor=function(F){var W;return(F==null?0:(W=F.darkColorPalette)==null?0:W.section2Color)?F.darkColorPalette.section2Color:F==null?void 0:F.sampledThumbnailColor};
_.Sn.Object.defineProperties(qM.prototype,{isPreviewDisabled:{configurable:!0,enumerable:!0,get:function(){return!this.inlinePreviewIsEnabled}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){return mA(this.width)}}});
qM.prototype.onImageUnloaded=qM.prototype.onImageUnloaded;qM.prototype.onImageLoaded=qM.prototype.onImageLoaded;_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],qM.prototype,"ytActionHandlerBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],qM.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(ihi),_.Y("design:type",Object)],qM.prototype,"ytdThumbnailBehavior",void 0);
_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],qM.prototype,"componentBehavior",void 0);_.T([_.J(_.am),_.Y("design:type",Object)],qM.prototype,"ytdReduxBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],qM.prototype,"data",void 0);_.T([_.O({value:!1}),_.Y("design:type",Boolean)],qM.prototype,"circular",void 0);
_.T([_.O({computed:"computeRichThumbnail(finalHoveredState_, data.richThumbnail, isPreviewLoading, isPreviewDisabled)"}),_.Y("design:type",Object)],qM.prototype,"richThumbnail",void 0);_.T([_.O({reflectToAttribute:!0,computed:"computeHasClip(data.thumbnailOverlays)"}),_.Y("design:type",Boolean)],qM.prototype,"hasClip",void 0);_.T([_.O(),_.Y("design:type",Object)],qM.prototype,"eventSink",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],qM.prototype,"queued",void 0);
_.T([_.O({value:!1}),_.Y("design:type",Boolean)],qM.prototype,"richGridThumbnail",void 0);_.T([_.O({value:!1}),_.Y("design:type",Boolean)],qM.prototype,"useExpandableTooltip",void 0);_.T([_.O({value:!1}),_.Y("design:type",Boolean)],qM.prototype,"useUntranslatedNavigationEndpoint",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],qM.prototype,"disableInteraction",void 0);
_.T([_.O({computed:"computeNavigationEndpoint(useUntranslatedNavigationEndpoint, data.untranslatedNavigationEndpoint, data.navigationEndpoint)"}),_.Y("design:type",Object)],qM.prototype,"computedNavigationEndpoint",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],qM.prototype,"nowPlayingEqualizerOnly",void 0);_.T([_.O({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],qM.prototype,"hidePlaybackStatus",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",String)],qM.prototype,"objectFit",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],qM.prototype,"noRoundedCorners",void 0);_.T([_.O({value:!1}),_.Y("design:type",Boolean)],qM.prototype,"watchFeedThumbnail",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],qM.prototype,"isPreviewLoading",void 0);
_.T([_.O({reflectToAttribute:!0,computed:"computeIsOriginalAspectRatio(data.thumbnail.isOriginalAspectRatio)"}),_.Y("design:type",Object)],qM.prototype,"isOriginalAspectRatio",void 0);_.T([_.O({reflectToAttribute:!0,computed:"computeObjectFit(isOriginalAspectRatio, objectFit)"}),_.Y("design:type",Object)],qM.prototype,"computedObjectFit",void 0);_.T([_.O({reflectToAttribute:!0,computed:"computeIsLive(data)"}),_.Y("design:type",Boolean)],qM.prototype,"isLiveVideo",void 0);
_.T([_.O({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],qM.prototype,"loaded",void 0);_.T([_.O({computed:"computeOverlayColor(data.thumbnail)"}),_.Y("design:type",Object)],qM.prototype,"overlayColor",void 0);_.T([_.O({selector:_.A7o}),_.Y("design:type",Boolean)],qM.prototype,"inlinePreviewIsEnabled",void 0);_.T([_.O(),_.Y("design:type",Number)],qM.prototype,"width",void 0);
_.T([_.a("inlinePreviewIsEnabled"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],qM.prototype,"isPreviewDisabled",null);_.T([_.a("width"),_.Y("design:type",String),_.Y("design:paramtypes",[])],qM.prototype,"thumbnailSize",null);_.T([_.R4("image-loaded"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],qM.prototype,"onImageLoaded",null);
_.T([_.R4("image-unloaded"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],qM.prototype,"onImageUnloaded",null);qM=_.T([_.y({disableElementRegistration:!0,is:"ytd-thumbnail"})],qM);
var cu_=_.We()(qM,"ytd-thumbnail",function(){if(N0X===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="thumbnail" class="yt-simple-endpoint inline-block style-scope ytd-thumbnail" aria-hidden="true" href$="[[computeHref_(computedNavigationEndpoint)]]" data="[[computedNavigationEndpoint]]" rel="[[computeNofollow_(computedNavigationEndpoint)]]" tabindex="-1">\n  <yt-image alt="" data="[[data.thumbnail]]" ftl-eligible="" height="[[height]]" notify-on-loaded="" notify-on-unloaded="" object-fit="[[computedObjectFit]]" width="[[computeImageWidth(data, width)]]" class="style-scope ytd-thumbnail">\n  </yt-image>\n  \n  <div id="overlays" class="style-scope ytd-thumbnail"></div>\n  <div id="mouseover-overlay" class="style-scope ytd-thumbnail"></div>\n  <div id="hover-overlays" class="style-scope ytd-thumbnail"></div>\n</a>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);N0X=F}F=N0X;return F},{callbackProps:["onClick"],
allowedProps:"data disableInteraction noRoundedCorners objectFit useExpandableTooltip useUntranslatedNavigationEndpoint width circular watchFeedThumbnail queued".split(" "),allowedPropsFromBehaviors:"height bottomSidePanel size disableRounding disableNowPlaying disableTooltips useHoveredProperty hovered addBackground nowPlaying isVideoPlaying".split(" "),mode:2});var gmW=function(F){var W=this;this.inlinePreviewIsActive=this.inlinePreviewIsEnabledForUser=!1;this.unsubscribeFromInlinePreviewIsEnabled=function(){};
this.JSC$12695_unsubscribeFromInlinePreviewIsActive=function(){};
this.videoPreviewJobId=0;this.JSC$12695_touched=this.previewTriggered=!1;this.onMouseMoveFn=function(E){DZi(W,E)};
this.onLockupMouseLeaveFn=function(E){E=E.relatedTarget;var h,d;((h=document.getElementsByTagName("ytd-video-preview"))==null?0:(d=h.item(0))==null?0:d.contains(E))||(W.terminateVideoPreview(),$o(W))};
this.onThumbnailMouseDownFn=function(){W.terminateVideoPreview();$o(W)};
this.onTouchStart=function(){W.JSC$12695_touched=!0};
this.mediaRenderer=F.mediaRenderer;this.thumbnailElement=F.thumbnailElement;this.lockupElement=F.lockupElement;this.videoPreviewOptsInput=F.videoPreviewOpts;xZM(this);ZC(this)?this.thumbnailElement?this.lockupElement?(this.lockupElement.addEventListener("mouseenter",this.onMouseMoveFn),this.lockupElement.addEventListener("mouseleave",this.onLockupMouseLeaveFn),this.lockupElement.addEventListener("touchstart",this.onTouchStart),this.thumbnailElement.addEventListener("mousedown",this.onThumbnailMouseDownFn)):
_.OB(Error("Bh")):_.OB(Error("Ch")):kPc(this)},Qg=function(F){kPc(F);
var W;(W=F.lockupElement)==null||W.removeEventListener("mouseenter",F.onMouseMoveFn);var E;(E=F.lockupElement)==null||E.removeEventListener("mouseleave",F.onLockupMouseLeaveFn);var h;(h=F.lockupElement)==null||h.removeEventListener("touchstart",F.onTouchStart);var d;(d=F.thumbnailElement)==null||d.removeEventListener("mousedown",F.onThumbnailMouseDownFn);$o(F)},xZM=function(F){F.inlinePreviewIsEnabledForUser=_.uC().getState().ui.inlinePreviewIsEnabled;
F.unsubscribeFromInlinePreviewIsEnabled=_.kQ(_.uC(),_.A7o,function(W){(F.inlinePreviewIsEnabledForUser=W)||$o(F)});
F.JSC$12695_unsubscribeFromInlinePreviewIsActive=_.kQ(_.uC(),_.khY,function(W){(F.inlinePreviewIsActive=W)||$o(F)})},kPc=function(F){F.unsubscribeFromInlinePreviewIsEnabled();
F.unsubscribeFromInlinePreviewIsEnabled=function(){};
F.JSC$12695_unsubscribeFromInlinePreviewIsActive();F.JSC$12695_unsubscribeFromInlinePreviewIsActive=function(){}},DZi=function(F,W){W.buttons>0||(W=_.dV("kevlar_lockup_hover_delay",-1),F.JSC$12695_touched&&W>=0?(_.P0.cancelJob(F.videoPreviewJobId),F.videoPreviewJobId=_.Ed(_.P0,function(){AuX(F)},W),F.JSC$12695_touched=!1):AuX(F))},sMB=function(F){F.videoPreviewJobId=_.Ed(_.P0,function(){var W,E,h,d;
return _.e(function(V){if(V.nextAddress==1){if(!ZC(F))return V.return();W=F.getVideoPreviewOpts();if(!W)return V.return();W.isAutoplay=!0;return(h=(E=_.Nc(F.mediaRenderer.hostElement,"yt-open-video-preview-action",[W]))&&E[0])?_.Q(V,E[0],3):V.jumpTo(2)}V.nextAddress!=2&&(h=V.yieldResult===1);h&&e1n((d=F.mediaRenderer)==null?void 0:d.data);_.gG(V)})})},AuX=function(F){!F.previewTriggered&&ZC(F)&&(F.inlinePreviewIsActive&&F.terminateVideoPreview(),F.previewTriggered=!0,F.mediaRenderer.isInlinePreviewTriggered=
!0,_.P0.cancelJob(F.videoPreviewJobId),F.videoPreviewJobId=_.Ed(_.P0,function(){var W,E,h,d;
return _.e(function(V){if(V.nextAddress==1){if(!ZC(F))return V.return();W=F.getVideoPreviewOpts();return W?(h=(E=_.Nc(F.mediaRenderer.hostElement,"yt-open-video-preview-action",[W]))&&E[0])?_.Q(V,E[0],3):V.jumpTo(2):V.return()}V.nextAddress!=2&&(h=V.yieldResult===1);h&&e1n((d=F.mediaRenderer)==null?void 0:d.data);_.gG(V)})}))};
gmW.prototype.getVideoPreviewOpts=function(){if(this.mediaRenderer.data){var F,W;if((W=(F=this.videoPreviewOptsInput)==null?void 0:F.videoPreviewData)!=null)F=W;else if(F=this.mediaRenderer.data)if(R1G(F))F={inlinePlaybackEndpoint:_.He(F.inlinePlayerData.onVisible),navigationEndpoint:_.He(F.onTap),thumbnail:"image"in F?F.image:F.thumbnail,thumbnailOverlays:void 0,accessibilityText:MxY(F)};else if("multipleInlinePlaybackEndpoint"in F){var E=_.D(_.D(F.multipleInlinePlaybackEndpoint,etB),MfU);if(E!=
null&&E.playerDescriptors){W=[];E=_.U(E.playerDescriptors);for(var h=E.next();!h.done;h=E.next())h=h.value,W.push({inlinePlaybackEndpoint:h.inlinePlaybackEndpoint,navigationEndpoint:h.navigationEndpoint,thumbnail:h.thumbnail,thumbnailOverlays:h.thumbnailOverlays,accessibilityText:MxY(F)});F=W}else F=void 0}else F={inlinePlaybackEndpoint:F.inlinePlaybackEndpoint,navigationEndpoint:F.navigationEndpoint,thumbnail:F.thumbnail,thumbnailOverlays:F.thumbnailOverlays,accessibilityText:MxY(F)};else F=void 0;
return Object.assign({},{mediaRenderer:this.mediaRenderer.hostElement,thumbnail:this.thumbnailElement,videoPreviewData:F,showPlayerControls:!0},this.videoPreviewOptsInput)}};
var ZC=function(F){var W;if(W=F.inlinePreviewIsEnabledForUser)W=(F=F.mediaRenderer.data)?"inlinePlaybackEndpoint"in F&&F.inlinePlaybackEndpoint||R1G(F)&&F.inlinePlayerData||"multipleInlinePlaybackEndpoint"in F&&F.multipleInlinePlaybackEndpoint?!0:!1:!1;return W};
gmW.prototype.terminateVideoPreview=function(){_.dW(this.mediaRenderer.hostElement,"yt-terminate-video-preview-action")};
var $o=function(F){_.P0.cancelJob(F.videoPreviewJobId);F.inlinePreviewIsActive=!1;F.previewTriggered=!1;F.mediaRenderer.isInlinePreviewTriggered=!1};var LS_=_.Fc(["#"]),Xt=function(){var F=_.n.apply(this,arguments)||this;F.isDisabled=!1;return F};
_.k(Xt,_.n);_.N=Xt.prototype;_.N.configureRendererStamper=function(){return{"data.menu":g1,"data.buttons":{id:"buttons",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",params:{buttonTooltipPosition:"top"}},upcomingEventReminderButtonRenderer:"ytd-upcoming-event-reminder-button-renderer"}},dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.N.attached=function(){this.updateInlinePreviewHoverListeners()};
_.N.detached=function(){this.clearInlinePreviewHoverListeners()};
_.N.getMetadata=function(F){var W=[];if(F.metadataText&&Object.keys(F.metadataText).length>0){var E=this.ytRendererBehavior.getSimpleString(F.metadataText);F.upcomingEventData&&F.upcomingEventData.upcomingEventText&&(E=_.Tt(E,Number(F.upcomingEventData.startTime)));W.push(E)}else F.shortViewCountText&&W.push(this.ytRendererBehavior.getSimpleString(F.shortViewCountText)),F.publishedTimeText&&W.push(this.ytRendererBehavior.getSimpleString(F.publishedTimeText)),F.upcomingEventData&&F.upcomingEventData.upcomingEventText&&
(E=this.ytRendererBehavior.getSimpleString(F.upcomingEventData.upcomingEventText),W.push(_.Tt(E,Number(F.upcomingEventData.startTime))));return W};
_.N.calculateBylineText=function(F){return F.shortBylineText?F.shortBylineText:F.bylineText?F.bylineText:null};
_.N.calculateIsDisabled=function(F){return!!F.isDisabled};
_.N.computeHrefWithDefault=function(F){return this.ytComponentBehavior.computeHref_(F)||_.xw(LS_)};
_.N.onDetailsTap=function(F){var W=this.data&&this.data.navigationEndpoint;W&&!_.Sc(_.TB(F)||[],this.hostElement,["A".toString(),"BUTTON".toString()])&&(_.c("kevlar_grid_video_renderer_killswitch")?_.hF(this.hostElement,"yt-navigate",{endpoint:W}):this.ytComponentBehavior.resolveCommand(W))};
_.N.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.N.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$12700_inlinePreviewHoverListener=FY({mediaRenderer:this,lockupElement:_.Z(this.hostElement).querySelector("#dismissible"),thumbnailElement:_.Z(this.hostElement).querySelector("ytd-thumbnail")})};
_.N.clearInlinePreviewHoverListeners=function(){var F;(F=this.JSC$12700_inlinePreviewHoverListener)==null||Qg(F)};
_.N.computeThumbnailWidth=function(F,W){return W&&W>0?W:F?360:210};
_.N.computeShowChannelThumbnail=function(F,W){var E;return W&&!!(F==null?0:(E=F.channelThumbnailSupportedRenderers)==null?0:E.channelThumbnailWithLinkRenderer)};
_.Sn.Object.defineProperties(Xt.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var F;return!((F=this.JSC$12700_inlinePreviewHoverListener)==null?0:ZC(F))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
Xt.prototype.dataChanged=Xt.prototype.dataChanged;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Xt.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],Xt.prototype,"ytComponentBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],Xt.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.O9),_.Y("design:type",Object)],Xt.prototype,"ytdDismissibleItemBehavior",void 0);
_.T([_.J(_.rt),_.Y("design:type",Object)],Xt.prototype,"ytdLockupBehavior",void 0);_.T([_.J(_.am),_.Y("design:type",Object)],Xt.prototype,"ytdReduxBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],Xt.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Boolean)],Xt.prototype,"noEndpoints",void 0);_.T([_.O({computed:"calculateBylineText(data)"}),_.Y("design:type",Object)],Xt.prototype,"bylineText",void 0);
_.T([_.O({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],Xt.prototype,"isSearch",void 0);_.T([_.O({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],Xt.prototype,"isDownloading",void 0);_.T([_.O({reflectToAttribute:!0,value:0}),_.Y("design:type",Number)],Xt.prototype,"width",void 0);_.T([_.O({reflectToAttribute:!0,computed:"calculateIsDisabled(data)"}),_.Y("design:type",Object)],Xt.prototype,"isDisabled",void 0);
_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Xt.prototype,"dataChanged",null);_.T([_.a("lockupIsHovered"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Xt.prototype,"isHovered",null);Xt=_.T([_.y({is:"ytd-grid-video-renderer",disableElementRegistration:!0})],Xt);
_.r(Xt,"ytd-grid-video-renderer",function(){if(YEM!==void 0)return YEM;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-grid-video-renderer"><ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="[[computeThumbnailWidth(isSearch, width)]]" class="style-scope ytd-grid-video-renderer"></ytd-thumbnail><div id="details" on-tap="onDetailsTap" class="style-scope ytd-grid-video-renderer"><a id="channel-thumbnail" hidden="[[!computeShowChannelThumbnail(data, isSearch)]]" aria-label$="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.accessibility.accessibilityData.label]]" href$="[[computeHref_(data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.navigationEndpoint)]]" class="style-scope ytd-grid-video-renderer"><yt-img-shadow id="avatar" thumbnail="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.thumbnail]]" width="36" class="style-scope ytd-grid-video-renderer"></yt-img-shadow></a><div id="text-metadata" class="style-scope ytd-grid-video-renderer"><div id="meta" class="style-scope ytd-grid-video-renderer"><h3 class="style-scope ytd-grid-video-renderer"><ytd-badge-supported-renderer hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-grid-video-renderer"></ytd-badge-supported-renderer><a id="video-title" class="yt-simple-endpoint style-scope ytd-grid-video-renderer" href$="[[computeHrefWithDefault(data.navigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" data="[[data.navigationEndpoint]]">[[getSimpleString(data.title)]]</a></h3><div id="metadata-container" class="grid style-scope ytd-grid-video-renderer" meta-block=""><div id="metadata" class="style-scope ytd-grid-video-renderer"><div id="byline-container" hidden="[[!bylineText]]" class="style-scope ytd-grid-video-renderer"><ytd-channel-name id="channel-name" badges="[[data.ownerBadges]]" channel-name="[[bylineText]]" no-endpoints="[[noEndpoints]]" class="style-scope ytd-grid-video-renderer"></ytd-channel-name></div><div id="metadata-line" class="style-scope ytd-grid-video-renderer"><template is="dom-repeat" items="[[getMetadata(data)]]" strip-whitespace="" class="style-scope ytd-grid-video-renderer"><span class="style-scope ytd-grid-video-renderer">[[item]]</span></template></div></div><div id="additional-metadata-line" class="style-scope ytd-grid-video-renderer"><template is="dom-repeat" items="[[data.additionalMetadatas]]" strip-whitespace="" class="style-scope ytd-grid-video-renderer"><span class="style-scope ytd-grid-video-renderer">[[getSimpleString(item)]]</span></template></div></div></div><ytd-badge-supported-renderer id="video-badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-grid-video-renderer"></ytd-badge-supported-renderer></div><div id="menu" class="style-scope ytd-grid-video-renderer"></div></div><div id="buttons" class="style-scope ytd-grid-video-renderer"></div></div><div id="dismissed" class="style-scope ytd-grid-video-renderer"><div id="dismissed-content" class="style-scope ytd-grid-video-renderer"></div></div><yt-interaction id="interaction" class="extended style-scope ytd-grid-video-renderer"></yt-interaction>');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return YEM=F},{mode:_.E6("kevlar_poly_si_batch_j047")?1:2});var qSe;var H$=function(){var F=_.n.apply(this,arguments)||this;F.roundedContainer=!0;F.skipRoundingTop=!1;F.disableTopPadding=!1;F.amsterdamEnabled=_.c("enable_desktop_amsterdam_info_panels");return F};
_.k(H$,_.n);H$.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
H$.prototype.onClick=function(F){var W,E=(W=this.data)==null?void 0:W.sourceEndpoint;!_.Sc(_.TB(F),this.hostElement,["A".toString()])&&E&&_.hF(this.hostElement,"yt-navigate",{endpoint:E})};
_.Sn.Object.defineProperties(H$.prototype,{showMetadataAtTop:{configurable:!0,enumerable:!0,get:function(){return this.data&&!(!this.data.source&&!this.data.publishedTimeText)&&!!this.data.sourceAtTop}},
showMetadataBelowTitle:{configurable:!0,enumerable:!0,get:function(){return this.data&&!(!this.data.source&&!this.data.publishedTimeText)&&!this.data.sourceAtTop}},
hasMenu:{configurable:!0,enumerable:!0,get:function(){var F;return!((F=this.data)==null||!F.menu)}},
truncateParagraphs:{configurable:!0,enumerable:!0,get:function(){var F;return!((F=this.data)==null||!F.truncateParagraphs)}},
paragraphMaxLines:{configurable:!0,enumerable:!0,get:function(){var F,W;return(W=(F=this.data)==null?void 0:F.paragraphMaxLines)!=null?W:3}},
background:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.background?this.data.background.replace("INFO_PANEL_CONTENT_BACKGROUND_",""):""}}});
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],H$.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],H$.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],H$.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],H$.prototype,"showVerticalDividers",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],H$.prototype,"roundedContainer",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],H$.prototype,"skipRoundingTop",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],H$.prototype,"disableTopPadding",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],H$.prototype,"amsterdamEnabled",void 0);_.T([_.a("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],H$.prototype,"showMetadataAtTop",null);
_.T([_.a("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],H$.prototype,"showMetadataBelowTitle",null);_.T([_.O({reflectToAttribute:!0}),_.a("data.menu"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],H$.prototype,"hasMenu",null);_.T([_.O({reflectToAttribute:!0}),_.a("data.truncateParagraphs"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],H$.prototype,"truncateParagraphs",null);
_.T([_.O({reflectToAttribute:!0}),_.a("data.paragraphMaxLines"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],H$.prototype,"paragraphMaxLines",null);_.T([_.O({type:_.c("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.a("data.background"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],H$.prototype,"background",null);H$=_.T([_.y({is:"ytd-info-panel-content-renderer",disableElementRegistration:!0})],H$);
_.r(H$,"ytd-info-panel-content-renderer",function(){if(qSe!==void 0)return qSe;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-info-panel-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="content style-scope ytd-info-panel-content-renderer" on-click="onClick">\n  <yt-icon class="inline-icon style-scope ytd-info-panel-content-renderer" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]">\n  </yt-icon>\n  <div class="text-content style-scope ytd-info-panel-content-renderer">\n    <div class="metadata-container style-scope ytd-info-panel-content-renderer" hidden="[[!showMetadataAtTop]]">\n      <yt-formatted-string text="[[data.source]]" class="style-scope ytd-info-panel-content-renderer">\n      </yt-formatted-string>\n      <div class="published-time style-scope ytd-info-panel-content-renderer" hidden="[[!data.publishedTimeText]]">\n        \u2022\n        <yt-formatted-string text="[[data.publishedTimeText]]" class="style-scope ytd-info-panel-content-renderer">\n        </yt-formatted-string>\n      </div>\n    </div>\n    <a class="yt-simple-endpoint title-container style-scope ytd-info-panel-content-renderer" hidden="[[!data.title]]" href$="[[computeHref_(data.sourceEndpoint)]]" data="[[data.sourceEndpoint]]">\n      <yt-formatted-string text="[[data.title]]" class="style-scope ytd-info-panel-content-renderer"></yt-formatted-string>\n      <yt-icon class="inline-link-icon style-scope ytd-info-panel-content-renderer" disable-upgrade$="[[!data.inlineLinkIcon.iconType]]" hidden="[[!data.inlineLinkIcon.iconType]]" icon="[[data.inlineLinkIcon.iconType]]">\n      </yt-icon>\n    </a>\n    <div class="metadata-container style-scope ytd-info-panel-content-renderer" hidden="[[!showMetadataBelowTitle]]">\n      <yt-formatted-string text="[[data.source]]" class="style-scope ytd-info-panel-content-renderer">\n      </yt-formatted-string>\n      <div class="published-time style-scope ytd-info-panel-content-renderer" hidden="[[!data.publishedTimeText]]">\n        \u2022\n        <yt-formatted-string text="[[data.publishedTimeText]]" class="style-scope ytd-info-panel-content-renderer">\n        </yt-formatted-string>\n      </div>\n    </div>\n    <div class="paragraphs style-scope ytd-info-panel-content-renderer">\n      <template is="dom-repeat" items="[[data.paragraphs]]" class="style-scope ytd-info-panel-content-renderer">\n        <div hidden="[[!item.runs]]" class="style-scope ytd-info-panel-content-renderer">\n          <yt-formatted-string class="paragraph style-scope ytd-info-panel-content-renderer" text="[[item]]">\n          </yt-formatted-string>\n          <div class="inline-source style-scope ytd-info-panel-content-renderer" hidden="[[!data.inlineSource]]">\n            <yt-formatted-string force-default-style="" text="[[data.inlineSource]]" class="style-scope ytd-info-panel-content-renderer">\n            </yt-formatted-string>\n            <yt-icon class="inline-link-icon style-scope ytd-info-panel-content-renderer" disable-upgrade$="[[!data.inlineLinkIcon.iconType]]" hidden="[[!data.inlineLinkIcon.iconType]]" icon="[[data.inlineLinkIcon.iconType]]">\n            </yt-icon>\n          </div>\n        </div>\n      </template>\n      <template is="dom-repeat" items="[[data.attributedParagraphs]]" class="style-scope ytd-info-panel-content-renderer">\n        <div hidden="[[!item.content]]" class="style-scope ytd-info-panel-content-renderer">\n          <yt-attributed-string id="paragraph" class="attributed-paragraph style-scope ytd-info-panel-content-renderer" data="[[item]]">\n          </yt-attributed-string>\n        </div>\n      </template>\n      <div class="disclaimer-container style-scope ytd-info-panel-content-renderer" hidden="[[!data.disclaimer]]">\n        <a class="yt-simple-endpoint style-scope ytd-info-panel-content-renderer" href$="[[computeHref_(data.sourceEndpoint)]]" target="_blank" data="[[data.sourceEndpoint]]">\n          <yt-formatted-string class="disclaimer style-scope ytd-info-panel-content-renderer" text="[[data.disclaimer]]">\n          </yt-formatted-string>\n          <yt-icon class="inline-link-icon inline-disclaimer-icon style-scope ytd-info-panel-content-renderer" disable-upgrade$="[[!data.inlineDisclaimerIcon.iconType]]" hidden="[[!data.inlineDisclaimerIcon]]" icon="[[data.inlineDisclaimerIcon.iconType]]">\n          </yt-icon>\n        </a>\n      </div>\n    </div>\n  </div>\n  <yt-img-shadow class="thumbnail style-scope ytd-info-panel-content-renderer" hidden="[[!data.thumbnail]]" object-fit="COVER" thumbnail="[[data.thumbnail]]">\n  </yt-img-shadow>\n</div>\n<div id="menu" class="style-scope ytd-info-panel-content-renderer"></div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return qSe=F},{mode:_.E6("kevlar_poly_si_batch_j076")?1:2});var $Zu;var ZAp;var XAu;var HAT;var P$=function(){return _.n.apply(this,arguments)||this};
_.k(P$,_.n);P$.prototype.computeStyle=function(F){return F};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],P$.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],P$.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.Y("design:type",String)],P$.prototype,"style_",void 0);P$=_.T([_.$3({is:"yt-channel-thumbnail-with-link-renderer",disableElementRegistration:!0})],P$);
_.r(P$,"yt-channel-thumbnail-with-link-renderer",function(){if(HAT===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-channel-thumbnail-with-link-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_channel_thumbnail_with_link_renderer.yt.channel.thumbnail.with.link.renderer.css.js--\x3e<a href="[[computeHref_(data.navigationEndpoint)]]" title="[[data.accessibility.accessibilityData.label]]" class="style-scope yt-channel-thumbnail-with-link-renderer">\n  <yt-img-shadow id="avatar" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope yt-channel-thumbnail-with-link-renderer">\n  </yt-img-shadow>\n</a>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);var W=F.content,E=W.insertBefore;XAu===void 0&&(XAu=document.createElement("template"));var h=XAu;E.call(W,h.content.cloneNode(!0),F.content.firstChild);HAT=F}F=HAT;return F},{mode:2});var JM=function(){var F=_.n.apply(this,arguments)||this;F.modernTypography=_.c("web_modern_typography");return F};
_.k(JM,_.n);JM.prototype.configureRendererStamper=function(){return{"data.channelThumbnail":{id:"avatar",mapping:{channelThumbnailWithLinkRenderer:"yt-channel-thumbnail-with-link-renderer"}},"data.informationButton":{id:"information-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.navigationButton":{id:"navigation-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
JM.prototype.computeTitleStyle=function(F){return F||null};
JM.prototype.computeAvatarStyle=function(F){return F||null};
JM.prototype.computeShowNavigationButton=function(F,W){return!(F==null||!F.navigationButton||W)};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],JM.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],JM.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],JM.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0,computed:"computeTitleStyle(data.titleStyle.style)"}),_.Y("design:type",String)],JM.prototype,"titleStyle",void 0);
_.T([_.O({reflectToAttribute:!0,computed:"computeAvatarStyle(data.channelThumbnail.channelThumbnailWithLinkRenderer.style)"}),_.Y("design:type",String)],JM.prototype,"avatarStyle",void 0);_.T([_.O(),_.Y("design:type",Boolean)],JM.prototype,"hideNavigationButton",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],JM.prototype,"isModernSd",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],JM.prototype,"modernTypography",void 0);
JM=_.T([_.y({is:"ytd-rich-list-header-renderer",disableElementRegistration:!0})],JM);
_.r(JM,"ytd-rich-list-header-renderer",function(){if(ZAp!==void 0)return ZAp;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-list-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="title-row style-scope ytd-rich-list-header-renderer">\n  <div id="avatar" class="style-scope ytd-rich-list-header-renderer"></div>\n  <template is="dom-if" if="[[!data.endpoint]]" class="style-scope ytd-rich-list-header-renderer">\n    <div id="title-text" class="style-scope ytd-rich-list-header-renderer">\n      <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-rich-list-header-renderer"></yt-formatted-string>\n      <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-rich-list-header-renderer">\n      </yt-formatted-string>\n    </div>\n  </template>\n  <template is="dom-if" if="[[data.endpoint]]" class="style-scope ytd-rich-list-header-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-rich-list-header-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]">\n      <div id="image-container" class="style-scope ytd-rich-list-header-renderer">\n        <div id="avatar" class="style-scope ytd-rich-list-header-renderer"></div>\n        <div id="title-text" class="style-scope ytd-rich-list-header-renderer">\n          <span id="title" class="style-scope ytd-rich-list-header-renderer">[[getSimpleString(data.title)]]</span>\n          <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-rich-list-header-renderer">\n          </yt-formatted-string>\n        </div>\n      </div>\n    </a>\n  </template>\n  <ytd-badge-supported-renderer id="featured-badge" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-rich-list-header-renderer">\n  </ytd-badge-supported-renderer>\n  <yt-formatted-string id="title-annotation" hidden="[[!data.titleAnnotation]]" text="[[data.titleAnnotation]]" class="style-scope ytd-rich-list-header-renderer">\n  </yt-formatted-string>\n  <div id="information-button" hidden="[[!data.informationButton]]" class="style-scope ytd-rich-list-header-renderer"></div>\n  <div id="navigation-button" hidden="[[!computeShowNavigationButton(data, hideNavigationButton)]]" class="style-scope ytd-rich-list-header-renderer"></div>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return ZAp=F},{mode:_.E6("kevlar_poly_si_batch_j058")?1:2});var at=function(){return _.n.apply(this,arguments)||this};
_.k(at,_.n);at.prototype.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{richListHeaderRenderer:"ytd-rich-list-header-renderer"}},"data.contents":{id:"contents",mapping:{gridVideoRenderer:{component:"ytd-grid-video-renderer",properties:{isSearch:"[[isSearch]]"}}}}}};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],at.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],at.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],at.prototype,"data",void 0);_.T([_.O({value:!1}),_.Y("design:type",Boolean)],at.prototype,"isSearch",void 0);at=_.T([_.y({is:"ytd-preview-card-renderer",disableElementRegistration:!0})],at);
_.r(at,"ytd-preview-card-renderer",function(){if($Zu!==void 0)return $Zu;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-preview-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-preview-card-renderer"></div>\n<div id="contents" class="style-scope ytd-preview-card-renderer"></div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return $Zu=F},{mode:1});var Pcc;var fp=function(){return _.n.apply(this,arguments)||this};
_.k(fp,_.n);fp.prototype.configureRendererStamper=function(){return{"data.menu":g1}};
fp.prototype.dataChanged=function(){var F=this.get("colorExtractionPalette.section1Color",this.data);F=_.ZP(F);_.V9(this.hostElement,{"--ytd-channel-recommendation-card-avatar-overlay-color":F})};
fp.prototype.computeCardStyle=function(F){return this.get("style.value",F)||null};
fp.prototype.dataChanged=fp.prototype.dataChanged;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],fp.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],fp.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.O9),_.Y("design:type",Object)],fp.prototype,"ytdDismissibleItemBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],fp.prototype,"data",void 0);
_.T([_.O({reflectToAttribute:!0,computed:"computeCardStyle(data)"}),_.Y("design:type",String)],fp.prototype,"cardStyle",void 0);_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],fp.prototype,"dataChanged",null);fp=_.T([_.y({disableElementRegistration:!0,is:"ytd-compact-channel-recommendation-card-renderer"})],fp);
_.r(fp,"ytd-compact-channel-recommendation-card-renderer",function(){if(Pcc!==void 0)return Pcc;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-channel-recommendation-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="card-body" class="yt-simple-endpoint style-scope ytd-compact-channel-recommendation-card-renderer" href$="[[computeHref_(data.channelEndpoint)]]" title$="[[getSimpleString(data.channelTitle)]]" aria-label$="[[getSimpleString(data.channelTitle)]]" data="[[data.channelEndpoint]]">\n  <div id="banner" class="style-scope ytd-compact-channel-recommendation-card-renderer">\n    <yt-img-shadow id="channel-art" object-fit="COVER" thumbnail="[[data.backgroundImage]]" class="style-scope ytd-compact-channel-recommendation-card-renderer"></yt-img-shadow>\n    <svg id="avatar-protection" viewBox="0 0 210 56" preserveAspectRatio="none" class="style-scope ytd-compact-channel-recommendation-card-renderer">\n      <path id="lower-overlay" d="M 0 -12 L 126 56 L 0 56 z" class="style-scope ytd-compact-channel-recommendation-card-renderer"></path>\n      <path id="upper-overlay" d="M 0 -12 L 74 28 L 0 68 z" class="style-scope ytd-compact-channel-recommendation-card-renderer"></path>\n    </svg>\n    <yt-img-shadow id="avatar" thumbnail="[[data.channelAvatar]]" class="style-scope ytd-compact-channel-recommendation-card-renderer"></yt-img-shadow>\n  </div>\n  <div id="channel-info" class="style-scope ytd-compact-channel-recommendation-card-renderer">\n    <span id="title" class="style-scope ytd-compact-channel-recommendation-card-renderer">[[getSimpleString(data.channelTitle)]]</span>\n  </div>\n</a>\n<div id="subscribe-container" class="style-scope ytd-compact-channel-recommendation-card-renderer">\n  <ytd-subscribe-button-renderer id="subscribe" data="[[data.subscribeButton.subscribeButtonRenderer]]" class="style-scope ytd-compact-channel-recommendation-card-renderer">\n  </ytd-subscribe-button-renderer>\n</div>\n<div id="menu" class="style-scope ytd-compact-channel-recommendation-card-renderer"></div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return Pcc=F},{mode:1});var Ju_;var afT;var Oc=function(){var F=_.n.apply(this,arguments)||this;F.alignAuto=!1;F.collapsed=!0;F.isToggled=!1;F.alwaysCollapsed=!1;F.canToggle=!0;F.collapsedHeight=80;F.disableToggle=!1;F.alwaysToggleable=!1;F.reversed=!1;F.shouldUseNumberOfLines=!1;F.recomputeOnResize=!1;F.canToggleJobId=0;F.lastReversed=!1;return F};
_.k(Oc,_.n);_.N=Oc.prototype;_.N.alwaysToggleableChanged=function(){this.alwaysToggleable&&(this.canToggle=!0)};
_.N.toggledChanged=function(){this.collapsed=this.alwaysCollapsed||!this.isToggled};
_.N.reversedChanged=function(){if(this.reversed&&!this.lastReversed||this.lastReversed&&!this.reversed){for(var F=_.Z(this.hostElement),W=F.childNodes,E=document.createDocumentFragment(),h=F.childNodes.length-1;h>=0;h--)_.Z(E).appendChild(W[h]);_.c("enable_shadydom_free_scoped_node_methods")?_.Fm(this.hostElement).appendChild(E):F.appendChild(E)}};
_.N.ready=function(){var F=this;_.fz(function(){F.initChildrenObserver()},1)};
_.N.detached=function(){this.detachObserver()};
_.N.toggle=function(F,W){this.canToggle&&(this.isToggled=W,_.hF(this.hostElement,"yt-refit"),F&&F.stopPropagation())};
_.N.reset=function(){this.childrenChanged()};
_.N.onIronResize=function(){this.recomputeOnResize&&this.childrenChanged()};
_.N.computeIsMoreVisible=function(F,W){return F&&!W};
_.N.computeShouldUseNumberOfLines=function(F){try{return!!F&&window.CSS.supports("-webkit-line-clamp","1")}catch(W){}return!1};
_.N.computeIsLessVisible=function(F,W){return F&&W};
_.N.observeCollapsedHeightAndMaxLines=function(){var F=this.collapsedHeight,W=this.maxNumberOfLines;this.shouldUseNumberOfLines?_.V9(this.hostElement,{"--ytd-expander-max-lines":""+W,"--ytd-expander-collapsed-height":""}):_.V9(this.hostElement,{"--ytd-expander-collapsed-height":F+"px","--ytd-expander-max-lines":""})};
_.N.handleMoreTap=function(F){this.disableToggle||(_.hF(this.hostElement,"yt-expander-more-tapped"),this.toggle(F,!0))};
_.N.handleLessTap=function(F){_.hF(this.hostElement,"yt-expander-less-tapped");this.toggle(F,!1)};
_.N.initChildrenObserver=function(){var F=this;this.observer=new MutationObserver(function(){F.childrenChanged()});
this.observer.observe(this.content,{subtree:!0,childList:!0,attributes:!0,characterData:!0});this.childrenChanged()};
_.N.childrenChanged=function(){var F=this;this.alwaysToggleable?this.canToggle=this.alwaysToggleable:this.canToggleJobId||(this.canToggleJobId=window.requestAnimationFrame(function(){Wr(function(){F.canToggleJobId=0;F.calculateCanCollapse()})}))};
_.N.calculateCanCollapse=function(){this.canToggle=this.shouldUseNumberOfLines?this.alwaysToggleable||this.isToggled||this.content&&this.content.offsetHeight<this.content.scrollHeight:this.alwaysToggleable||this.isToggled||this.content&&this.content.scrollHeight>this.collapsedHeight};
_.N.detachObserver=function(){this.observer&&this.observer.disconnect()};
_.N.collapsedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.yR("collapsed-changed",this.collapsed))};
_.N.isToggledChangedForBinding=function(){this.hostElement.dispatchEvent(new _.yR("is-toggled-changed",this.isToggled))};
_.N.canToggleChangedForBinding=function(){this.hostElement.dispatchEvent(new _.yR("can-toggle-changed",this.canToggle))};
_.Sn.Object.defineProperties(Oc.prototype,{isResetting:{configurable:!0,enumerable:!0,get:function(){return this.canToggleJobId!==0}}});
Oc.prototype.canToggleChangedForBinding=Oc.prototype.canToggleChangedForBinding;Oc.prototype.isToggledChangedForBinding=Oc.prototype.isToggledChangedForBinding;Oc.prototype.collapsedChangedForBinding=Oc.prototype.collapsedChangedForBinding;Oc.prototype.observeCollapsedHeightAndMaxLines=Oc.prototype.observeCollapsedHeightAndMaxLines;Oc.prototype.onIronResize=Oc.prototype.onIronResize;Oc.prototype.reversedChanged=Oc.prototype.reversedChanged;Oc.prototype.toggledChanged=Oc.prototype.toggledChanged;
Oc.prototype.alwaysToggleableChanged=Oc.prototype.alwaysToggleableChanged;_.T([_.J(_.lB),_.Y("design:type",Object)],Oc.prototype,"ironResizableBehavior",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],Oc.prototype,"alignAuto",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],Oc.prototype,"collapsed",void 0);_.T([_.O(),_.Y("design:type",Object)],Oc.prototype,"isToggled",void 0);_.T([_.O(),_.Y("design:type",Object)],Oc.prototype,"alwaysCollapsed",void 0);
_.T([_.O(),_.Y("design:type",Object)],Oc.prototype,"canToggle",void 0);_.T([_.O(),_.Y("design:type",Object)],Oc.prototype,"collapsedHeight",void 0);_.T([_.O(),_.Y("design:type",Object)],Oc.prototype,"disableToggle",void 0);_.T([_.O(),_.Y("design:type",Object)],Oc.prototype,"alwaysToggleable",void 0);_.T([_.O(),_.Y("design:type",Object)],Oc.prototype,"reversed",void 0);_.T([_.O(),_.Y("design:type",Number)],Oc.prototype,"maxNumberOfLines",void 0);
_.T([_.O({reflectToAttribute:!0,computed:"computeShouldUseNumberOfLines(maxNumberOfLines)"}),_.Y("design:type",Object)],Oc.prototype,"shouldUseNumberOfLines",void 0);_.T([_.O(),_.Y("design:type",Object)],Oc.prototype,"recomputeOnResize",void 0);_.T([_.gQ("#content"),_.Y("design:type",HTMLDivElement)],Oc.prototype,"content",void 0);_.T([_.Cz("alwaysToggleable"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Oc.prototype,"alwaysToggleableChanged",null);
_.T([_.Cz("isToggled"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Oc.prototype,"toggledChanged",null);_.T([_.a("canToggleJobId"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Oc.prototype,"isResetting",null);_.T([_.ea("reversed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Oc.prototype,"reversedChanged",null);
_.T([_.R4("iron-resize"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Oc.prototype,"onIronResize",null);_.T([_.ea("maxNumberOfLines","collapsedHeight"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Oc.prototype,"observeCollapsedHeightAndMaxLines",null);_.T([_.ea("collapsed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Oc.prototype,"collapsedChangedForBinding",null);
_.T([_.ea("isToggled"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Oc.prototype,"isToggledChangedForBinding",null);_.T([_.ea("canToggle"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Oc.prototype,"canToggleChangedForBinding",null);Oc=_.T([_.y({disableElementRegistration:!0,is:"ytd-expander"})],Oc);
_.r(Oc,"ytd-expander",function(){if(afT!==void 0)return afT;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expander--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-expander">\n  \n  <slot id="container" name="content" class="style-scope ytd-expander"></slot>\n</div>\n<slot name="sticky" class="style-scope ytd-expander"></slot>\n<tp-yt-paper-button id="less" aria-expanded="true" hidden="[[!computeIsLessVisible(canToggle, isToggled)]]" noink="" on-tap="handleLessTap" class="style-scope ytd-expander">\n  <slot name="less-button" class="style-scope ytd-expander"></slot>\n</tp-yt-paper-button>\n<tp-yt-paper-button id="more" aria-expanded="false" hidden="[[!computeIsMoreVisible(canToggle, isToggled)]]" noink="" on-tap="handleMoreTap" class="style-scope ytd-expander">\n  <slot name="more-button" class="style-scope ytd-expander"></slot>\n</tp-yt-paper-button>\n<slot name="sticky-secondary" class="style-scope ytd-expander"></slot>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return afT=F},{mode:1});var b6=function(){return _.n.apply(this,arguments)||this};
_.k(b6,_.n);b6.prototype.computeIsCarousel=function(F){return!!F.isCarousel};
b6.prototype.observeLightsourcePalette=function(){var F,W=(F=this.data)==null?void 0:F.vibrantsourceColorPaletteData;W&&_.ZR(this.hostElement,W)};
b6.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
b6.prototype.observeLightsourcePalette=b6.prototype.observeLightsourcePalette;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],b6.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],b6.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],b6.prototype,"data",void 0);_.T([_.O({computed:"computeIsCarousel(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],b6.prototype,"isCarousel",void 0);
_.T([_.ea("data.vibrantsourceColorPaletteData"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],b6.prototype,"observeLightsourcePalette",null);b6=_.T([_.y({disableElementRegistration:!0,is:"ytd-media-upsell-renderer"})],b6);
_.r(b6,"ytd-media-upsell-renderer",function(){if(Ju_!==void 0)return Ju_;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-media-upsell-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="details-wrapper style-scope ytd-media-upsell-renderer">\n  <div class="image-wrapper style-scope ytd-media-upsell-renderer">\n    <yt-img-shadow class="media-thumbnail style-scope ytd-media-upsell-renderer" thumbnail="[[data.thumbnail]]">\n    </yt-img-shadow>\n    <div class="tv-show-season-wrapper style-scope ytd-media-upsell-renderer" hidden="[[!data.tvShowSeasons]]">\n      <yt-icon id="tv-show-icon" icon="tv" class="style-scope ytd-media-upsell-renderer"></yt-icon>\n      <p id="tv-show-season" class="style-scope ytd-media-upsell-renderer">\n        [[getSimpleString(data.tvShowSeasons)]]\n      </p>\n    </div>\n  </div>\n  <div class="details style-scope ytd-media-upsell-renderer">\n    <div class="metadata-wrapper style-scope ytd-media-upsell-renderer">\n      <span id="media-title" hidden="[[!data.mediaTitle]]" class="style-scope ytd-media-upsell-renderer">\n        [[getSimpleString(data.mediaTitle)]]\n      </span>\n      <span id="metadata" hidden="[[!data.metadata]]" class="style-scope ytd-media-upsell-renderer">\n        [[getSimpleString(data.metadata)]]\n      </span>\n    </div>\n    <div id="action-button" class="style-scope ytd-media-upsell-renderer"></div>\n  </div>\n</div>\n<ytd-expander id="expander" hidden="[[data.isCarousel]]" max-number-of-lines="4" class="style-scope ytd-media-upsell-renderer">\n  <yt-formatted-string id="synopsis" slot="content" disable-upgrade$="[[!data.synopsis]]" hidden="[[data.isCarousel]]" text="[[data.synopsis]]" class="style-scope ytd-media-upsell-renderer">\n  </yt-formatted-string>\n  <div class="more-button style-scope ytd-media-upsell-renderer" slot="more-button">\n    <span class="expander-text style-scope ytd-media-upsell-renderer">[[getSimpleString(data.moreButtonText)]]</span>\n    <yt-icon id="drop-down-icon" icon="arrow_drop_down" class="style-scope ytd-media-upsell-renderer"></yt-icon>\n  </div>\n  <div class="less-button style-scope ytd-media-upsell-renderer" slot="less-button">\n    <span class="expander-text style-scope ytd-media-upsell-renderer">[[getSimpleString(data.lessButtonText)]]</span>\n    <yt-icon id="drop-up-icon" icon="arrow_drop_up" class="style-scope ytd-media-upsell-renderer"></yt-icon>\n  </div>\n</ytd-expander>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return Ju_=F},{mode:2});var ffH;var l6=function(){var F=_.n.apply(this,arguments)||this;F.JSC$12728_playerEvents=new Map;F.listeningToPlayer=!1;F.startX=0;F.active=!1;F.shouldShowButtons=_.c("web_buttons_hidden_killswitch");F.isHighlighted=!1;F.useHighlightStyling=_.c("web_enable_deeper_metadata_highlight_styling");F.modern=_.c("kevlar_modern_sd");F.enableProblemWalkthrough=_.c("problem_walkthrough_sd");return F};
_.k(l6,_.n);_.N=l6.prototype;
_.N.configureRendererStamper=function(){return{"data.shareButton":{id:"share-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[customButtonProperties]]"}}}},"data.repeatButton":{id:"repeat-button",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{overrides:"[[customButtonProperties]]"}}}},"data.thumbnailOverlay":{id:"overlay",mapping:{thumbnailOverlayNowPlayingRenderer:{component:"ytd-thumbnail-overlay-now-playing-renderer",params:{isVideoPlaying:!0}}}}}};
_.N.created=function(){this.JSC$12728_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.N.attached=function(){this.repeatButton.addEventListener("yt-toggle-button",_.UO(this,this.onRepeatButtonToggle));_.c("synced_panel_scrolling_controller")&&this.hostElement.addEventListener("yt-synced-panel-active-item-update",_.UO(this,this.onActiveUpdate))};
_.N.detached=function(){this.removePlayerListeners();this.repeatButton.removeEventListener("yt-toggle-button",_.UO(this,this.onRepeatButtonToggle));_.c("synced_panel_scrolling_controller")&&this.hostElement.removeEventListener("yt-synced-panel-active-item-update",_.UO(this,this.onActiveUpdate))};
_.N.onDataChanged=function(){this.removePlayerListeners()};
_.N.onColorPaletteChange=function(){var F={},W;if(_.Oh()==="USER_INTERFACE_THEME_DARK"&&((W=this.data)==null?0:W.darkColorPalette)){var E=this.data.darkColorPalette;F["--ytd-macro-markers-list-item-background-color"]=_.XC(this.get("section2Color",E))}else{var h;_.Oh()==="USER_INTERFACE_THEME_LIGHT"&&((h=this.data)==null?0:h.lightColorPalette)&&(E=this.data.lightColorPalette,F["--ytd-macro-markers-list-item-background-color"]=_.XC(this.get("section3Color",E)))}E?(F["--ytd-macro-markers-list-item-title-color"]=
_.XC(this.get("primaryTitleColor",E)),F["--ytd-macro-markers-list-item-secondary-color"]=_.XC(this.get("secondaryTitleColor",E)),F["--ytd-macro-markers-list-item-timestamp-background-color"]=_.XC(this.get("section1Color",E)),this.customButtonProperties={customColors:{color:_.XC(this.get("primaryTitleColor",E))}},this.useColorSampling=!0):(F["--ytd-macro-markers-list-item-background-color"]="initial",F["--ytd-macro-markers-list-item-title-color"]="initial",F["--ytd-macro-markers-list-item-secondary-color"]=
"initial",F["--ytd-macro-markers-list-item-timestamp-background-color"]="initial",this.customButtonProperties=void 0,this.useColorSampling=!1);_.V9(this.hostElement,F)};
_.N.onEndpointMouseDown=function(F){this.startX=F.clientX};
_.N.onEndpointClick=function(F){var W=this,E,h,d;return _.e(function(V){if(V.nextAddress==1){if(W.startX!==F.clientX)return F.preventDefault(),V.return();W.data&&W.ytRendererBehavior.logExplicitClick(W.data);if(!W.seekWithAnimationOnClick)return V.jumpTo(0);if(F.button!==0||F.shiftKey||F.altKey||F.metaKey||F.ctrlKey||_.Sc(_.TB(F),W.hostElement,["BUTTON".toString()]))return V.return();F.stopPropagation();F.preventDefault();return W.data?_.Q(V,_.E8().getPlayerPromise(),3):V.return()}E=V.yieldResult;
d=(h=_.D(W.data.onTap,_.GM))==null?void 0:h.startTimeSeconds;d!==void 0&&E.seekToTimeWithAnimation(d*1E3,_.Yr(W.data.title));_.gG(V)})};
_.N.computeLayout=function(F){return F};
_.N.computeIsHighlighted=function(F){return!!F};
_.N.computeCarouselType=function(F){return F};
_.N.hideModernCarousel=function(F){return this.modern&&this.hideThumbnail(F)};
_.N.hideThumbnail=function(F){return this.enableProblemWalkthrough&&F!==null&&F==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"};
_.N.onRepeatButtonToggle=function(F){var W=this;F.detail.toggled&&_.E8().getPlayerPromise().then(function(E){W.ytPlayerListenerBehavior.listenToPlayerEvents(E,W.JSC$12728_playerEvents);W.listeningToPlayer=!0})};
_.N.onLoopRangeChange=function(F){var W=_.Z(this.hostElement).querySelector("#repeat-button").querySelector("ytd-toggle-button-renderer");if(W){var E=W.polymerController.get("defaultServiceEndpoint.repeatChapterCommand",W.polymerController.data);if(E){var h=Number(E.endTimeMs);if(Number(E.startTimeMs)!==(F==null?void 0:F.startTimeMs)||h!==(F==null?void 0:F.endTimeMs))W.polymerController.toggle(!1),this.removePlayerListeners()}}};
_.N.removePlayerListeners=function(){var F=this;this.listeningToPlayer&&_.E8().getPlayerPromise().then(function(W){F.ytPlayerListenerBehavior.unlistenFromPlayerEvents(W,F.JSC$12728_playerEvents);F.listeningToPlayer=!1})};
_.N.onActiveUpdate=function(F){this.active=F.detail.active};
l6.prototype.onColorPaletteChange=l6.prototype.onColorPaletteChange;l6.prototype.onDataChanged=l6.prototype.onDataChanged;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],l6.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],l6.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.om.YtPlayerListenerBehavior),_.Y("design:type",_.G$)],l6.prototype,"ytPlayerListenerBehavior",void 0);
_.T([_.O(),_.Y("design:type",Object)],l6.prototype,"data",void 0);_.T([_.O({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],l6.prototype,"useCustomColors",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],l6.prototype,"active",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],l6.prototype,"shouldShowButtons",void 0);_.T([_.O({reflectToAttribute:!0,computed:"computeLayout(data.layout)"}),_.Y("design:type",String)],l6.prototype,"layout",void 0);
_.T([_.O({reflectToAttribute:!0,computed:"computeIsHighlighted(data.isHighlighted)"}),_.Y("design:type",Object)],l6.prototype,"isHighlighted",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],l6.prototype,"useHighlightStyling",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],l6.prototype,"modern",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],l6.prototype,"enableProblemWalkthrough",void 0);
_.T([_.O({reflectToAttribute:!0,computed:"computeCarouselType(data.carouselType)"}),_.Y("design:type",String)],l6.prototype,"carouselType",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],l6.prototype,"useColorSampling",void 0);_.T([_.O(),_.Y("design:type",Boolean)],l6.prototype,"seekWithAnimationOnClick",void 0);_.T([_.O(),_.Y("design:type",Object)],l6.prototype,"customButtonProperties",void 0);
_.T([_.gQ("#repeat-button"),_.Y("design:type",HTMLElement)],l6.prototype,"repeatButton",void 0);_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],l6.prototype,"onDataChanged",null);_.T([_.ea("data.lightColorPalette","data.darkColorPalette"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],l6.prototype,"onColorPaletteChange",null);
l6=_.T([_.y({is:"ytd-macro-markers-list-item-renderer",disableElementRegistration:!0})],l6);
_.r(l6,"ytd-macro-markers-list-item-renderer",function(){if(ffH!==void 0)return ffH;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-macro-markers-list-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope ytd-macro-markers-list-item-renderer" data="[[data.onTap]]" href$="[[computeHref_(data.onTap)]]" on-click="onEndpointClick" on-mousedown="onEndpointMouseDown" draggable="false" hidden="[[hideModernCarousel(data.carouselType)]]">\n  <div hidden="[[hideThumbnail(data.carouselType)]]" id="thumbnail" class="style-scope ytd-macro-markers-list-item-renderer">\n    <yt-img-shadow hidden="[[!data.thumbnail]]" object-fit="FILL" thumbnail="[[data.thumbnail]]" class="style-scope ytd-macro-markers-list-item-renderer">\n    </yt-img-shadow>\n    <div id="overlay" class="style-scope ytd-macro-markers-list-item-renderer"></div>\n  </div>\n  <div id="details" class="style-scope ytd-macro-markers-list-item-renderer">\n    <h4 hidden="[[hideThumbnail(data.carouselType)]]" class="macro-markers style-scope ytd-macro-markers-list-item-renderer" title="[[getSimpleString(data.title)]]">[[getSimpleString(data.title)]]</h4>\n    <h4 hidden="[[!hideThumbnail(data.carouselType)]]" class="problem-walkthroughs style-scope ytd-macro-markers-list-item-renderer" title="[[getSimpleString(data.title)]]">[[getSimpleString(data.title)]]</h4>\n    <div id="time" class="style-scope ytd-macro-markers-list-item-renderer">[[getSimpleString(data.timeDescription)]]</div>\n  </div>\n</a>\n<div id="details" hidden="[[!hideModernCarousel(data.carouselType)]]" class="style-scope ytd-macro-markers-list-item-renderer">\n  <a id="endpoint" class="yt-simple-endpoint style-scope ytd-macro-markers-list-item-renderer" data="[[data.onTap]]" href$="[[computeHref_(data.onTap)]]" on-click="onEndpointClick" on-mousedown="onEndpointMouseDown" draggable="false" hidden="[[!hideThumbnail(data.carouselType)]]">\n    <h4 class="problem-walkthroughs style-scope ytd-macro-markers-list-item-renderer" title="[[getSimpleString(data.title)]]">[[getSimpleString(data.title)]]</h4>\n  </a>\n  <div id="time" class="style-scope ytd-macro-markers-list-item-renderer">[[getSimpleString(data.timeDescription)]]</div>\n</div>\n<div id="share-button" class="style-scope ytd-macro-markers-list-item-renderer"></div>\n<div id="repeat-button" class="style-scope ytd-macro-markers-list-item-renderer"></div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return ffH=F},{mode:1});var OAM;var bAi;var np=function(){var F=_.n.apply(this,arguments)||this;F.modernTypography=_.c("web_modern_typography");return F};
_.k(np,_.n);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],np.prototype,"ytRendererBehavior",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],np.prototype,"modernTypography",void 0);_.T([_.O(),_.Y("design:type",Object)],np.prototype,"data",void 0);np=_.T([_.y({disableElementRegistration:!0,is:"ytd-title-and-button-list-header-renderer"})],np);
_.r(np,"ytd-title-and-button-list-header-renderer",function(){if(bAi!==void 0)return bAi;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-title-and-button-list-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-title-and-button-list-header-renderer"></yt-formatted-string>\n\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return bAi=F},{mode:1});var lfB;var n$u=new _.NG("BUTTON_RENDERER_WIZ_TOKEN"),yua=new _.NG("BUTTON_RENDERER_TOKEN");_.yb=_.GK(function(F){var W=_.WZ().resolve(_.Fd(n$u));if(W)return _.z(W,Object.assign({},F));var E=_.WZ().resolve(yua);return E?_.z(cbG,null,function(){return _.z(pn,null,function(){var h,d,V,R,M,g,t,C,B,I,x,A;return void E(F.data(),{onButtonClickCallback:F.onButtonClickCallback,shouldShowIcons:(h=F.shouldShowIcons)==null?void 0:h.call(F),icon:(d=F.icon)==null?void 0:d.call(F),processAllEndpoints:(V=F.processAllEndpoints)==null?void 0:V.call(F),preventDefault:(R=F.preventDefault)==null?void 0:R.call(F),
stopPropagation:(M=F.stopPropagation)==null?void 0:M.call(F),disableButtonRendererClickHandling:(g=F.disableButtonRendererClickHandling)==null?void 0:g.call(F),className:(t=F.className)==null?void 0:t.call(F),buttonOverrides:(C=F.buttonOverrides)==null?void 0:C.call(F),forceModernIconButton:(B=F.forceModernIconButton)==null?void 0:B.call(F),isSubscribe:(I=F.isSubscribe)==null?void 0:I.call(F),alignByText:(x=F.alignByText)==null?void 0:x.call(F),forceDisabled:(A=F.forceDisabled)==null?void 0:A.call(F)})})}):
_.z(_.EG,null)},"Y");
_.yb.idomCompat=!0;var jMp=_.GK(function(F){var W=F.data,E=_.TK(F.useSquareAspectRatio,!1);return _.z("dismissed-mini-game-card-view-model",null,_.z(_.v,{cond:function(){var h,d;return(h=W().responseText)==null?void 0:(d=h.runs)==null?void 0:d.length},
then:function(){var h={};return _.z("div",{class:_.ec("yt-mini-game-card-view-model__dismissed-card",(h["yt-mini-game-card-view-model__dismissed-portrait-card"]=function(){return!E()},h["yt-mini-game-card-view-model--dismissed-square-card"]=E,h))},_.z("div",{class:"yt-mini-game-card-view-model__dismissed-mini-app-content"},_.z(_.v,{cond:function(){return W().responseText.runs[0].text},
then:function(d){return _.z("span",{class:"yt-mini-game-card-view-model__dismissed-text",title:d},d)}}),_.z(_.a6,{data:function(){return W().buttons}},{buttonRenderer:_.yb,
buttonViewModel:_.rk})))}}))},"Z");var YSz=_.GK(function(F){F=_.o4(F,{data:{},className:void 0,useFullWidth:!1,isDesktopWeb:!1,addSearchResultTopMargin:!1});var W=F.data,E=F.useFullWidth,h=F.isDesktopWeb,d=F.addSearchResultTopMargin,V=function(){return W().layout},R=function(){return W().title},M=function(){return W().genre},g=function(){return W().channelName},t=function(){return W().image},C=function(){return W().colorPalette},B=function(){return W().actionButton},I=function(){return W().overflowButton},x=function(){return W().avatar},
A=function(){var l={};
l=_.ec("yt-mini-game-card-view-model","yt-mini-game-card-view-model--singleton-card",(l["yt-mini-game-card-view-model--singleton-card-desktop"]=function(){return h()},l));
return _.z("div",{class:l},_.z(iAe,{imageData:t,colorPalette:C}),_.z(ruU,{onTap:function(){return W().onTap},
imageData:t,accessibilityText:function(){return W().accessibilityText},
overlayBadgeText:function(){return W().overlayBadgeText},
iconName:function(){return W().iconName},
unplayableInlinePlaybackIconName:function(){return W().unplayableInlinePlaybackIconName},
isDesktopWeb:h}),_.z(_.v,{cond:function(){return!h()},
then:function(){return _.z(_.EG,null,_.z(T0H,{layout:V,colorPalette:C,isDesktopWeb:h,overflowButton:I,avatar:x,onTap:function(){return W().onTap},
genre:M,title:R,channelName:g,entityRedesignExperiments:function(){return W().entityRedesignExperiments}}),_.z(jd,{actionButton:B}))}}))},X=function(){var l={};
l=_.ec((l["yt-mini-game-card-view-model--search-result-desktop"]=function(){return h()},l["yt-mini-game-card-view-model--search-result-mweb"]=function(){return!h()},l["yt-mini-game-card-view-model--search-result-top-margin"]=function(){return d()},l));
return _.z("div",{class:l},A(),_.z(o$H,{description:function(){return W().description},
isDesktopWeb:h,title:R,genre:M,onTap:function(){return W().onTap},
actionButton:B,overflowButton:I,avatar:x,channelName:g}))},P=function(){var l=function(){var G;
return(G=W().entityRedesignExperiments)==null?void 0:G.changePlayablesLayoutWithCta},w={};
w=_.ec("yt-mini-game-card-view-model","yt-mini-game-card-view-model--portrait-card",(w["yt-mini-game-card-view-model--change-layout-with-cta"]=function(){return l()},w["yt-mini-game-card-view-model--portrait-card-desktop"]=function(){return h()},w["yt-mini-game-card-view-model--portrait-card-desktop-skinny-width"]=function(){return h()&&W().width===135},w["yt-mini-game-card-view-model--show-unplayable-on-hover"]=function(){return h()},w["yt-mini-game-card-view-model--show-overflow-menu-on-hover"]=
function(){return!l()&&h()&&W().style==="MINI_GAME_CARD_STYLE_BIG_METADATA_FONT"},w["yt-mini-game-card-view-model--big-metadata-font"]=function(){return W().style==="MINI_GAME_CARD_STYLE_BIG_METADATA_FONT"},w["yt-mini-game-card-view-model--use-full-width"]=function(){return E()},w["yt-mini-game-card-view-model--extra-bottom-padding"]=function(){return!B()},w));
return _.z("div",{class:w},_.z(_.v,{cond:function(){return l()},
then:function(){return _.z(_.EG,null,_.z(GPu,{entityRedesignExperiments:function(){return W().entityRedesignExperiments},
colorPalette:C,isDesktopWeb:h,onTap:function(){return W().onTap},
accessibilityText:function(){return W().accessibilityText},
overlayBadgeText:function(){return W().overlayBadgeText},
iconName:function(){return W().iconName},
unplayableInlinePlaybackIconName:function(){return W().unplayableInlinePlaybackIconName},
actionButton:B,imageData:t}),_.z(T0H,{layout:V,colorPalette:C,isDesktopWeb:h,overflowButton:I,avatar:x,onTap:function(){return W().onTap},
genre:M,title:R,channelName:g,entityRedesignExperiments:function(){return W().entityRedesignExperiments}}),_.z(_.v,{cond:function(){return!!l()===!1&&B()},
then:function(){return _.z(jd,{actionButton:B})}}))},
else:function(){return _.z(_.EG,null,_.z(iAe,{imageData:t,colorPalette:C}),_.z(ruU,{onTap:function(){return W().onTap},
imageData:t,accessibilityText:function(){return W().accessibilityText},
overlayBadgeText:function(){return W().overlayBadgeText},
iconName:function(){return W().iconName},
unplayableInlinePlaybackIconName:function(){return W().unplayableInlinePlaybackIconName},
isDesktopWeb:h}),_.z(T0H,{layout:V,colorPalette:C,isDesktopWeb:h,overflowButton:I,avatar:x,onTap:function(){return W().onTap},
genre:M,title:R,channelName:g,entityRedesignExperiments:function(){return W().entityRedesignExperiments}}),_.z(jd,{actionButton:B}))}}))},b=function(){var l={};
l=_.ec("yt-mini-game-card-view-model","yt-mini-game-card-view-model--square-card",(l["yt-mini-game-card-view-model--square-card-desktop"]=function(){return h()},l["yt-mini-game-card-view-model--use-full-width"]=function(){return E()},l));
return _.z("div",{class:l},_.z(ruU,{onTap:function(){return W().onTap},
imageData:t,accessibilityText:function(){return W().accessibilityText},
overlayBadgeText:function(){return W().overlayBadgeText},
iconName:function(){return W().iconName},
unplayableInlinePlaybackIconName:function(){return W().unplayableInlinePlaybackIconName},
isDesktopWeb:h}),_.z(T0H,{layout:V,colorPalette:C,isDesktopWeb:h,overflowButton:I,avatar:x,onTap:function(){return W().onTap},
genre:M,title:R,channelName:g,entityRedesignExperiments:function(){return W().entityRedesignExperiments}}))};
return _.z("mini-game-card-view-model",{class:F.className},_.z(_.sG,null,_.z(_.kF,{when:function(){return V()==="MINI_APP_LAYOUT_PORTRAIT"}},function(){return P()}),_.z(_.kF,{when:function(){return V()==="MINI_APP_LAYOUT_SQUARE"}},function(){return b()}),_.z(_.kF,{when:function(){return V()==="MINI_APP_LAYOUT_SINGLETON"}},function(){return X()})))},"$");
YSz.idomCompat=!0;var jd=_.GK(function(F){var W=_.TK(F.wrapperClass,"yt-mini-game-card-view-model__card-action-button");return _.z(_.a6,{data:F.actionButton},{buttonViewModel:function(E){return _.z("div",{class:W},_.z(_.rk,{data:E.data}))}})},"aa"),ruU=_.GK(function(F){var W=F.onTap;
var E=F.imageData;var h=F.accessibilityText;var d=F.overlayBadgeText;var V=F.iconName;var R=F.unplayableInlinePlaybackIconName;F=F.isDesktopWeb;return _.z(_.kY,{className:"yt-mini-game-card-view-model__thumbnail-wrapper",command:W},_.z(_.T4,{data:E,className:"yt-mini-game-card-view-model__thumbnail-image",alt:function(){return(h==null?void 0:h())||""},
contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}),_.z(wAU,{overlayBadgeText:d,iconName:V,unplayableInlinePlaybackIconName:R,isDesktopWeb:F}))},"ba"),wAU=_.GK(function(F){var W=F.overlayBadgeText;
var E=F.iconName;var h=F.unplayableInlinePlaybackIconName;var d=F.isDesktopWeb;return _.z("div",{class:"yt-mini-game-card-view-model__badge-container"},_.z(_.v,{cond:E,then:function(V){return _.z("div",{class:"yt-mini-game-card-view-model__badge"},_.z("div",{class:"yt-mini-game-card-view-model__badge-high-score"},_.z(_.I3,{icon:V,className:"yt-mini-game-card-view-model__icon"}),_.z("span",{class:"yt-mini-game-card-view-model__badge-text","aria-hidden":!0},W)))}}),_.z(_.v,{cond:function(){return!E()&&
W()},
then:function(){return _.z("span",{class:"yt-mini-game-card-view-model__badge","aria-hidden":!0},W)}}),_.z(_.v,{cond:function(){return h()&&d()},
then:function(){return _.z("div",{class:"yt-mini-game-card-view-model__unplayable-badge"},_.z(_.I3,{icon:h,className:"yt-mini-game-card-view-model__unplayable-icon"}))}}))},"ca"),iAe=_.GK(function(F){var W=F.colorPalette;
var E=F.imageData;var h=function(){return W().vibrantColorPalette?W().vibrantColorPalette.section2Color:W().sectionTwoColor};
return _.z(_.EG,null,_.z("div",{class:"yt-mini-game-card-view-model__background-base",style:_.vr({"background-color":function(){return HB(h(),"1")}})}),_.z("div",{class:"yt-mini-game-card-view-model__background-blur",
style:_.vr({"background-image":function(){return"url("+E().sources[0].url+")"}})}),_.z("div",{class:"yt-mini-game-card-view-model__gradient-scrim",
style:_.vr({background:function(){return"linear-gradient(180deg,\n    "+HB(h(),".8")+" 0%,\n    "+HB(h(),".4")+" 25%,\n    "+HB(W().vibrantColorPalette?W().vibrantColorPalette.section4Color:W().sectionFourColor,".8")+" 100%)"}})}))},"da"),T0H=_.GK(function(F){var W=F.layout;
var E=F.colorPalette;var h=F.overflowButton;var d=F.avatar;var V=F.onTap;var R=F.title;var M=F.channelName;var g=F.entityRedesignExperiments;var t=F.genre;var C=function(){var I;return W()!=="MINI_APP_LAYOUT_SQUARE"&&((I=E())==null?0:I.textPrimaryColor)?"color: "+HB(E().textPrimaryColor,".7"):""},B=function(){var I;
return g==null?void 0:(I=g())==null?void 0:I.changePlayablesLayoutWithCta};
return _.z("div",{class:"yt-mini-game-card-view-model__card-metadata-wrapper"},_.z(_.v,{cond:d,then:function(){return _.z("div",{class:"yt-mini-game-card-view-model__avatar"},_.z(_.a6,{data:d},{avatarViewModel:_.fI}))}}),_.z(_.kY,{command:V,
className:"yt-mini-game-card-view-model__metadata-details"},_.z("h3",{class:"yt-mini-game-card-view-model__title",title:R},R),_.z(_.v,{cond:d,then:function(){return _.z("div",{class:"yt-mini-game-card-view-model__channel-metadata-line"},_.z("span",{class:"yt-mini-game-card-view-model__genre",title:M,style:C},M),_.z("span",{class:"yt-mini-game-card-view-model__genre-with-separator",style:C},t))},
else:function(){return _.z(_.v,{cond:B,then:function(){return _.z("span",{class:"yt-mini-game-card-view-model__genre",title:t},t)},
else:function(){return _.z("span",{class:"yt-mini-game-card-view-model__genre",title:t,style:C},t)}})}})),_.z("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.z(_.a6,{data:h},{buttonViewModel:function(I){var x=I.data;
return _.z(_.rk,{data:function(){return Object.assign({},x(),{customFontColor:B()?void 0:x().customFontColor})}})}})))},"ea"),GPu=_.GK(function(F){var W=F.entityRedesignExperiments;
var E=F.colorPalette;var h=F.isDesktopWeb;var d=F.onTap;var V=F.accessibilityText;var R=F.overlayBadgeText;var M=F.iconName;var g=F.unplayableInlinePlaybackIconName;var t=F.actionButton;F=F.imageData;var C=function(){var B;return W==null?void 0:(B=W())==null?void 0:B.changePlayablesLayoutWithCta};
return _.z("div",{class:"yt-mini-game-card-view-model__cinematic-background-wrapper"},_.z(iAe,{imageData:F,colorPalette:E}),_.z(ruU,{onTap:d,imageData:F,accessibilityText:V,overlayBadgeText:R,iconName:M,unplayableInlinePlaybackIconName:g,isDesktopWeb:h}),_.z(_.v,{cond:function(){return(C==null?void 0:C())&&(t==null?void 0:t())},
then:function(){return _.z(jd,{actionButton:t})}}))},"fa"),o$H=_.GK(function(F){var W=F.description;
var E=F.isDesktopWeb;var h=F.title;var d=F.genre;var V=F.onTap;var R=F.actionButton;var M=F.overflowButton;var g=F.avatar;F=F.channelName;var t={};t=_.ec("yt-mini-game-card-view-model--search-result-metadata-wrapper",(t["yt-mini-game-card-view-model--show-overflow-menu-on-hover"]=E,t["yt-mini-game-card-view-model--show-unplayable-on-hover"]=E,t["yt-mini-game-card-view-model--search-result-metadata-wrapper-mweb"]=function(){return!E()},t));
var C={};C=_.ec("yt-mini-game-card-view-model__search-result-info-row",(C["yt-mini-game-card-view-model__search-result-info-row-mweb"]=function(){return!E()},C));
return _.z("div",{class:t},_.z("div",{class:C},_.z(_.kY,{command:V,className:"yt-mini-game-card-view-model__metadata-details"},_.z("h3",{class:"yt-mini-game-card-view-model__title",title:h},h),_.z("span",{class:"yt-mini-game-card-view-model__genre",title:d},d)),_.z(jd,{actionButton:R,wrapperClass:"yt-mini-game-card-view-model__search-result-action-button"}),_.z("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.z(_.a6,{data:M},{buttonViewModel:_.rk}))),_.z("div",{class:"yt-mini-game-card-view-model__search-result-channel-row"},
_.z("div",{class:"yt-mini-game-card-view-model--search-result-channel-name"},_.z("div",{class:"yt-mini-game-card-view-model__avatar"},_.z(_.a6,{data:g},{avatarViewModel:function(B){var I=B.data;return _.z(_.fI,{data:function(){return Object.assign({},I(),{avatarImageSize:E()?"AVATAR_SIZE_XS":"AVATAR_SIZE_M"})}})}})),_.z(_.kY,{command:V,
className:"yt-mini-game-card-view-model__description"},_.z("p",{class:"yt-mini-game-card-view-model__search-result-channel-text"},F)),_.z(_.kY,{command:V,className:"yt-mini-game-card-view-model__metadata-row-extra-endpoint",tabIndex:-1},_.z("div",null)))),_.z(_.v,{cond:E,then:function(){return _.z(_.kY,{command:V,className:"yt-mini-game-card-view-model__description"},W)}}))},"ga");_.pK(YSz,"mini-game-card-view-model",{props:{data:_.TS,className:_.TS,useFullWidth:_.TS,isDesktopWeb:_.TS,addSearchResultTopMargin:_.TS}});_.pK(jMp,"dismissed-mini-game-card-view-model",{props:{data:_.TS,useSquareAspectRatio:_.TS}});var i6=function(){var F=_.n.apply(this,arguments)||this;F.isSearch=!1;F.isRichGrid=!1;return F};
_.k(i6,_.n);_.N=i6.prototype;_.N.dismissibleItemReset=function(){this.isDismissed&&(this.isDismissed=!1);this.dismissedRenderer&&(this.dismissedRenderer=void 0)};
_.N.dismissibleItemOnYtServiceRequestSent=function(F,W){W.actions&&this.dismissibleItemProcessActions(F,W.actions)};
_.N.dismissibleItemOnRequestSent=function(){this.dismissibleItemReset()};
_.N.dataChanged=function(){this.dismissibleItemReset()};
_.N.dismissibleItemProcessActions=function(F,W){for(var E=0;E<W.length;E++){var h=W[E];_.D(h,_.$J)&&(this.dismissibleItemHandleReplaceEnclosingAction(_.D(h,_.$J)),F.stopPropagation())}};
_.N.dismissibleItemHandleReplaceEnclosingAction=function(F){this.dismissedRenderer=F.item;this.isDismissed=!0};
_.N.experimentalPropertiesChanged=function(){_.c("kevlar_mini_game_card_c3po_to_wiz")||this.ytIdomTemplatingBehavior.debounceRender()};
_.N.renderIdom=function(){if(!_.c("kevlar_mini_game_card_c3po_to_wiz")&&this.data)if(this.dismissedRenderer&&this.dismissedRenderer.notificationMultiActionRenderer){var F=!!this.useSquareAspectRatio;iH(jMp)({data:this.dismissedRenderer.notificationMultiActionRenderer,useSquareAspectRatio:F===void 0?!1:F})}else iH(YSz)({data:this.data,addSearchResultTopMargin:this.isSearch,useFullWidth:this.isRichGrid,isDesktopWeb:!0})};
_.Sn.Object.defineProperties(i6.prototype,{useSquareAspectRatio:{configurable:!0,enumerable:!0,get:function(){var F;return((F=this.data)==null?void 0:F.layout)==="MINI_APP_LAYOUT_SQUARE"}},
showCard:{configurable:!0,enumerable:!0,get:function(){if(!_.c("kevlar_mini_game_card_c3po_to_wiz"))return!1;var F;return!!this.data&&!((F=this.dismissedRenderer)==null?0:F.notificationMultiActionRenderer)}},
showDismissed:{configurable:!0,enumerable:!0,get:function(){if(!_.c("kevlar_mini_game_card_c3po_to_wiz"))return!1;var F;return!((F=this.dismissedRenderer)==null||!F.notificationMultiActionRenderer)}}});
i6.prototype.experimentalPropertiesChanged=i6.prototype.experimentalPropertiesChanged;i6.prototype.dataChanged=i6.prototype.dataChanged;i6.prototype.dismissibleItemOnRequestSent=i6.prototype.dismissibleItemOnRequestSent;i6.prototype.dismissibleItemOnYtServiceRequestSent=i6.prototype.dismissibleItemOnYtServiceRequestSent;_.T([_.J(_.c("kevlar_mini_game_card_c3po_to_wiz")?{}:sJp),_.Y("design:type",Object)],i6.prototype,"ytIdomTemplatingBehavior",void 0);
_.T([_.O(),_.Y("design:type",Object)],i6.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],i6.prototype,"isSearch",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],i6.prototype,"isDismissed",void 0);_.T([_.O(),_.Y("design:type",Object)],i6.prototype,"dismissedRenderer",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],i6.prototype,"isRichGrid",void 0);
_.T([_.a("data.layout"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],i6.prototype,"useSquareAspectRatio",null);_.T([_.a("data","dismissedRenderer"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],i6.prototype,"showCard",null);_.T([_.a("data","dismissedRenderer"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],i6.prototype,"showDismissed",null);
_.T([_.R4("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.nQ]),_.Y("design:returntype")],i6.prototype,"dismissibleItemOnYtServiceRequestSent",null);_.T([_.R4("yt-service-request-sent-button-renderer"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],i6.prototype,"dismissibleItemOnRequestSent",null);
_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],i6.prototype,"dataChanged",null);_.T([_.ea("data.*","dismissedRenderer.*","isSearch","isRichGrid"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],i6.prototype,"experimentalPropertiesChanged",null);i6=_.T([_.$3({disableElementRegistration:!0,is:"ytd-mini-game-card-view-model",isInjectionRoot:!0})],i6);
_.r(i6,"ytd-mini-game-card-view-model",function(){if(lfB!==void 0)return lfB;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-mini-game-card-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" restamp="" if="[[showCard]]" class="style-scope ytd-mini-game-card-view-model"><mini-game-card-view-model add-search-result-top-margin="[[isSearch]]" data="[[data]]" is-desktop-web="" use-full-width="[[isRichGrid]]" class="style-scope ytd-mini-game-card-view-model"></mini-game-card-view-model></template><template is="dom-if" restamp="" if="[[showDismissed]]" class="style-scope ytd-mini-game-card-view-model"><dismissed-mini-game-card-view-model data="[[dismissedRenderer.notificationMultiActionRenderer]]" use-square-aspect-ratio="[[useSquareAspectRatio]]" class="style-scope ytd-mini-game-card-view-model"></dismissed-mini-game-card-view-model></template>');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return lfB=F},{mode:_.E6("kevlar_poly_si_batch_j081")?1:2});var uZz;var SSp;var r1=function(){return _.pX.apply(this,arguments)||this};
_.k(r1,_.pX);r1.prototype.trigger=function(){this.fire("yt-load-reload-continuation",this.getContinuationUrl.bind(this))};
r1.prototype.getContinuationUrl=function(F){var W={ctoken:this.data.continuation,continuation:this.data.continuation};this.data.clickTrackingParams&&(W.itct=this.data.clickTrackingParams);return _.wo(F,W)};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],r1.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],r1.prototype,"data",void 0);r1=_.T([_.$3({is:"yt-reload-continuation",noInjection:!0})],r1);var pAT;var mZz;var Td=function(){var F=_.n.apply(this,arguments)||this;F.notificationData={};return F};
_.k(Td,_.n);_.N=Td.prototype;_.N.isMenuExpanded=function(F){return F&&F.length<=1?"undefined":"false"};
_.N.dataChanged_=function(){this.selected=void 0;var F=this.computeSelectedIndex_(this.data);F>=0&&(this.selected=F);F=this.data&&this.data.length>1;_.Wm(this.hostElement,"has-items",F);_.Z(this.hostElement).querySelector("#label").tabIndex=F?0:-1};
_.N.onDropdownOpen=function(){var F=_.JR();if(this.parentTrackingParams&&this.data){var W=_.ve(this.parentTrackingParams);this.data.forEach(function(E){F&&W&&E.trackingParams&&(E=_.ve(E.trackingParams),_.y7(F,W,E),_.rW(F,[E]))})}else this.parentTrackingParams||_.OB(new _.xC("No parent tracking params passed in for yt-dropdown-menu."))};
_.N.hasNotification=function(F){var W;if(F.targetId&&((W=this.notificationData)==null?0:W.targetId)){var E;return F.targetId===((E=this.notificationData)==null?void 0:E.targetId)}};
_.N.computeSelectedIndex_=function(F){if(F)for(var W=0,E=F.length;W<E;W++)if(F[W].selected)return W;return-1};
_.N.computeLabel_=function(F){return this.data&&F!=void 0?this.data[F].title:""};
_.N.computeShowIcon_=function(F,W){return!W&&!!F};
_.N.computeVerticalOffset_=function(F){return F?36:0};
_.N.computeEndpoint_=function(F){return F.endpoint||F.navigationEndpoint};
_.N.onLabelClick_=function(F){this.data&&this.data.length<=1?F.stopPropagation():this.menuExpanded="true"};
_.N.onIronActivate_=function(F){F=F.detail.item;var W=_.Z(this.hostElement).querySelector("#repeat").itemForElement(F);if(W&&W.trackingParams){var E=_.JR(),h=_.ve(W.trackingParams);E&&_.oj(E,h)}if(W&&W.serviceEndpoint)_.c("web_use_resolve_command_for_service_endpoint_in_dropdown_killswitch")?this.ytComponentBehavior.resolveCommand(W.serviceEndpoint):_.UT(this.hostElement,[W.serviceEndpoint]),_.hF(this.hostElement,"yt-playlist-reloading");else a:{if((W=F.querySelector("yt-supported-renderers"))&&(W=
W.rendererElement)&&W.is=="yt-reload-continuation"){W.trigger();break a}(F=F.querySelector("yt-reload-continuation"))&&F.trigger()}};
_.N.onTap_=function(F){F.preventDefault()};
_.N.onItemTap_=function(F){this.ytEndpointBehavior.onEndpointTap_(F)};
_.N.onLinkFocus_=function(F){try{var W=F.target}catch(h){}if(W){var E=W.querySelector("tp-yt-paper-item");E&&_.OO(this,"focus",function(){E.focus()})}};
_.N.onMenuClose_=function(){this.menuExpanded="false"};
_.N.isLabelIconActive_=function(F){return F==="true"};
_.N.computeHasSubtitle_=function(F){return!!F};
_.N.computeHrefForItem_=function(F){return this.ytComponentBehavior.computeHref_(this.computeEndpoint_(F))};
_.N.updateSelectedFromBinding=function(F){this.selected=F.detail.value};
_.Sn.Object.defineProperties(Td.prototype,{computedAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.useComputedAriaLabel&&this.selected!==void 0?this.ariaLabel+": "+this.data[this.selected].title:this.ariaLabel}}});
Td.prototype.onMenuClose_=Td.prototype.onMenuClose_;Td.prototype.onTap_=Td.prototype.onTap_;Td.prototype.onIronActivate_=Td.prototype.onIronActivate_;Td.prototype.onDropdownOpen=Td.prototype.onDropdownOpen;Td.prototype.dataChanged_=Td.prototype.dataChanged_;_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],Td.prototype,"ytComponentBehavior",void 0);_.T([_.J(_.eB.YtEndpointBehavior),_.Y("design:type",Object)],Td.prototype,"ytEndpointBehavior",void 0);
_.T([_.O(),_.Y("design:type",Array)],Td.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Object)],Td.prototype,"parentTrackingParams",void 0);_.T([_.O(),_.Y("design:type",Object)],Td.prototype,"selected",void 0);_.T([_.O({value:!1}),_.Y("design:type",Boolean)],Td.prototype,"useLabel",void 0);_.T([_.O({value:!1}),_.Y("design:type",Boolean)],Td.prototype,"useComputedAriaLabel",void 0);_.T([_.O(),_.Y("design:type",String)],Td.prototype,"icon",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",String)],Td.prototype,"iconLabel",void 0);_.T([_.O(),_.Y("design:type",String)],Td.prototype,"ariaLabel",void 0);_.T([_.O({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],Td.prototype,"disabled",void 0);_.T([_.O({computed:"isMenuExpanded(data)"}),_.Y("design:type",String)],Td.prototype,"menuExpanded",void 0);_.T([_.O({value:!1}),_.Y("design:type",Boolean)],Td.prototype,"closeOnActivate",void 0);
_.T([_.O({reflectToAttribute:!0,value:_.c("web_modern_buttons")}),_.Y("design:type",Boolean)],Td.prototype,"modernButtons",void 0);_.T([_.O(),_.Y("design:type",Object)],Td.prototype,"notificationData",void 0);_.T([_.a("ariaLabel, selected"),_.O(),_.Y("design:type",String),_.Y("design:paramtypes",[])],Td.prototype,"computedAriaLabel",null);_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Td.prototype,"dataChanged_",null);
_.T([_.R4("paper-dropdown-open"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],Td.prototype,"onDropdownOpen",null);_.T([_.R4("iron-activate"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],Td.prototype,"onIronActivate_",null);_.T([_.R4("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Td.prototype,"onTap_",null);
_.T([_.R4("iron-overlay-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],Td.prototype,"onMenuClose_",null);Td=_.T([_.$3({is:"yt-dropdown-menu",disableElementRegistration:!0})],Td);
_.r(Td,"yt-dropdown-menu",function(){if(mZz===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-dropdown-menu--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_dropdown_menu.yt.dropdown.menu.css.js--\x3e<tp-yt-paper-menu-button close-on-activate="[[closeOnActivate]]" disabled="[[disabled]]" dynamic-align="" expand-sizing-target-for-scrollbars="" horizontal-align="[[horizontalAlign]]" vertical-offset="[[computeVerticalOffset_(icon)]]" class="style-scope yt-dropdown-menu">\n  <tp-yt-paper-button id="label" class="dropdown-trigger style-scope yt-dropdown-menu" slot="dropdown-trigger" aria-expanded$="[[menuExpanded]]" aria-label$="[[computedAriaLabel]]" on-tap="onLabelClick_">\n    <template is="dom-if" if="[[computeShowIcon_(icon, useLabel)]]" class="style-scope yt-dropdown-menu">\n      <yt-icon id="label-icon" active="[[isLabelIconActive_(menuExpanded)]]" icon="[[icon]]" class="style-scope yt-dropdown-menu">\n      </yt-icon>\n      <div id="icon-label" class="style-scope yt-dropdown-menu">[[iconLabel]]</div>\n    </template>\n    <template is="dom-if" if="[[useLabel]]" class="style-scope yt-dropdown-menu">\n      <div id="label-text" style-target="label-text" class="style-scope yt-dropdown-menu">[[computeLabel_(selected)]]</div>\n      <yt-icon id="label-icon" icon="expand" class="style-scope yt-dropdown-menu">\n      </yt-icon>\n    </template>\n  </tp-yt-paper-button>\n  <tp-yt-paper-listbox id="menu" class="dropdown-content style-scope yt-dropdown-menu" slot="dropdown-content" selected="[[selected]]" on-selected-changed="updateSelectedFromBinding">\n    <template id="repeat" is="dom-repeat" items="[[data]]" class="style-scope yt-dropdown-menu">\n      <a class="yt-simple-endpoint style-scope yt-dropdown-menu" href$="[[computeHrefForItem_(item)]]" data="[[computeEndpoint_(item)]]" on-focus="onLinkFocus_" on-tap="onItemTap_">\n        <tp-yt-paper-item class="style-scope yt-dropdown-menu">\n          <tp-yt-paper-item-body two-line$="[[computeHasSubtitle_(item.subtitle)]]" class="style-scope yt-dropdown-menu">\n            <div id="item-with-badge" class="style-scope yt-dropdown-menu">\n              <div class="item style-scope yt-dropdown-menu">[[item.title]]\n                <span class="notification style-scope yt-dropdown-menu" hidden$="[[!hasNotification(item,notificationData)]]"></span>\n              </div>\n              <ytd-badge-supported-renderer hidden="[[!item.badge]]" top-standalone-badge="[[item.badge]]" class="style-scope yt-dropdown-menu">\n              </ytd-badge-supported-renderer>\n            </div>\n            <div secondary="" id="subtitle" hidden="[[!computeHasSubtitle_(item.subtitle)]]" class="style-scope yt-dropdown-menu">\n              [[item.subtitle]]\n            </div>\n          </tp-yt-paper-item-body>\n          <yt-reload-continuation data="[[item.continuation.reloadContinuationData]]" class="style-scope yt-dropdown-menu">\n          </yt-reload-continuation>\n        </tp-yt-paper-item>\n      </a>\n    </template>\n  </tp-yt-paper-listbox>\n</tp-yt-paper-menu-button>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;pAT===void 0&&(pAT=document.createElement("template"));var h=pAT;E.call(W,h.content.cloneNode(!0),F.content.firstChild);mZz=F}F=mZz;return F},{mode:2});var ot=function(){var F=_.n.apply(this,arguments)||this;F.hasNotification=!1;return F};
_.k(ot,_.n);ot.prototype.computeId=function(F){return F};
ot.prototype.computeHorizontalAlign=function(F){return F?"right":"left"};
ot.prototype.computeAccessibilityLabel=function(F){var W,E;return((W=F.accessibility)==null?void 0:(E=W.accessibilityData)==null?void 0:E.label)||null};
ot.prototype.notificationDataChanged=function(){var F;this.hasNotification=!!this.notificationData&&!((F=this.data)==null?0:F.icon)};
ot.prototype.notificationDataChanged=ot.prototype.notificationDataChanged;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],ot.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.fy.YtLiveChatTooltipTargetingBehavior),_.Y("design:type",Object)],ot.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],ot.prototype,"data",void 0);_.T([_.O({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.Y("design:type",String)],ot.prototype,"id",void 0);
_.T([_.O({value:!1}),_.Y("design:type",Boolean)],ot.prototype,"isRightAligned",void 0);_.T([_.O({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],ot.prototype,"disabled",void 0);_.T([_.O({value:!1}),_.Y("design:type",Boolean)],ot.prototype,"closeOnActivate",void 0);_.T([_.O(),_.Y("design:type",Object)],ot.prototype,"notificationData",void 0);_.T([_.O(),_.Y("design:type",Object)],ot.prototype,"hasNotification",void 0);
_.T([_.O({value:!1}),_.Y("design:type",Boolean)],ot.prototype,"useComputedAriaLabel",void 0);_.T([_.ea("notificationData"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ot.prototype,"notificationDataChanged",null);ot=_.T([_.$3({is:"yt-sort-filter-sub-menu-renderer",disableElementRegistration:!0})],ot);
_.r(ot,"yt-sort-filter-sub-menu-renderer",function(){if(SSp===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-sort-filter-sub-menu-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_sort_filter_sub_menu_renderer.yt.sort.filter.sub.menu.renderer.css.js--\x3e<tp-yt-paper-tooltip class="style-scope yt-sort-filter-sub-menu-renderer">[[data.tooltip]]</tp-yt-paper-tooltip>\n<yt-dropdown-menu aria-label="[[computeAccessibilityLabel(data)]]" close-on-activate="[[closeOnActivate]]" data="[[data.subMenuItems]]" disabled="[[disabled]]" horizontal-align="[[computeHorizontalAlign(isRightAligned)]]" icon="[[data.icon.iconType]]" icon-label="[[data.title]]" notification-data="[[notificationData]]" parent-tracking-params="[[data.trackingParams]]" use-computed-aria-label="[[useComputedAriaLabel]]" use-label="[[!data.icon.iconType]]" class="style-scope yt-sort-filter-sub-menu-renderer">\n</yt-dropdown-menu>\n<div id="notification" hidden$="[[!hasNotification]]" class="style-scope yt-sort-filter-sub-menu-renderer"></div>');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;uZz===void 0&&(uZz=document.createElement("template"));var h=uZz;E.call(W,h.content.cloneNode(!0),F.content.firstChild);SSp=F}F=SSp;return F},{mode:2});_.ht(z1b);
var KS_=_.GK(function(F){var W=F.children;var E=F.className;var h=F.style;var d=F.role;var V=F.ariaSelected;var R=F.ariaLabel;var M=F.ariaHidden;var g=F.ariaLabelledby;var t=F.ariaDescribedby;var C=F.command;var B=F.elementsCommand;var I=F.forceNewState;var x=F.tabIdentifier;var A=F.target;var X=F.tabIndex;var P=F.stopPropagation;F=_.vX(function(){var b=_.Jm({innertubeCommand:C==null?void 0:C(),elementsCommand:B==null?void 0:B(),forceNewState:I==null?void 0:I(),stopPropagation:(P==null?void 0:P())!==
!1});b||(b={});b["aria-hidden$"]=M==null?void 0:M();var l;b.tabindex$=(l=X==null?void 0:X())!=null?l:b.tabindex$;var w;b["force-new-state$"]=(w=I==null?void 0:I())!=null?w:b["force-new-state$"];var G;b.role$=(G=d==null?void 0:d())!=null?G:b.role$;var hr;b["aria-hidden$"]=(hr=M==null?void 0:M())!=null?hr:b["aria-hidden$"];var p;b.target$=(p=A==null?void 0:A())!=null?p:b.target$;return b},void 0,"SU0Mnc");
return _.z(_.kY,{aTagConfig:F,className:E,style:h,ariaLabel:R,ariaLabelledby:g,ariaDescribedby:t,ariaSelected:V,tabIdentifier:x},W)},"ha");var txo=_.c("kevlar_modern_sd")?"yt-spec-place-data-view-model-shape__thumbnail-round":"",FdO=_.Qt(Cwk);_.ht(Cwk);_.pK(FdO,"place-data-view-model",{props:{data:_.TS}});var Wda=new _.NG("INLINE_PLAYBACK_HOOK_TOKEN");var X4G=function(F){this.setActiveSlideIndex=F;this.jobIds=[];this.isSlideshowPlaying=!1},Pwo=function(F){if(F.isSlideshowPlaying){F.isSlideshowPlaying=!1;
for(var W=F.jobIds,E=0,h=W.length;E<h;E++)_.P0.cancelJob(W[E]);F.jobIds.length=0}},Hek=function(F,W){F.isSlideshowPlaying||(F.isSlideshowPlaying=!0,Em_(F),h1_(F,W,0))},Em_=function(F){_.Ed(_.P0,function(){F.setActiveSlideIndex(0)},1)},h1_=function(F,W,E){F.jobIds.push(_.Ed(_.P0,function(){var h=E<W-1?E+1:0;
F.setActiveSlideIndex(h);h1_(F,W,h)},1800))};var k6Y=new _.NG("IMAGE_ON_LOAD_HANDLER_TOKEN");var dEB=_.GK(function(F){return _.z("animated-thumbnail-overlay-view-model",{class:"ytAnimatedThumbnailOverlayViewModelHost"},_.z(_.v,{cond:function(){var W;return(W=F.data())==null?void 0:W.thumbnail},
then:function(W){return _.z(_.T4,{data:W,alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL",hideOn404:!0})}}))},"ia");_.Gd=_.GK(function(F){var W=F.data;var E=F.lockupExperiments;F={};return _.z("thumbnail-overlay-button-view-model",{class:"ytThumbnailOverlayButtonViewModelHost"},_.z("div",{class:_.ec("ytThumbnailOverlayButtonViewModelButton",(F.ytThumbnailOverlayButtonViewModelButtonLegacyIcon=function(){var h;return E&&((h=E())==null?void 0:h.useLegacySizedIconButton)},F))},_.z(_.a6,{data:function(){return W().overlayButton}},{buttonViewModel:function(h){return _.z(_.rk,{data:h.data,
buttonOverrides:function(){var d;return E&&((d=E())==null?0:d.useLegacySizedIconButton)?{iconPosition:"icon-only-40",customColors:{backgroundColor:"rgba(0,0,0,0.6)"}}:void 0}})}})))},"ja");
_.Gd.idomCompat=!0;var NFH=_.GK(function(F){var W=_.tb(function(E){E.preventDefault();return!1});
return _.z("yt-thumbnail-hover-overlay-toggle-actions-view-model",{class:"ytThumbnailHoverOverlayToggleActionsViewModelHost","on:click":W},_.z(_.a6,{data:function(){return F.data().buttons}},{toggleButtonViewModel:function(E){return _.z("div",{class:"ytThumbnailHoverOverlayToggleActionsViewModelButton"},_.z(_.bJ,{data:E.data}))}}))},"ka");
NFH.idomCompat=!0;var Vxz=_.GK(function(F){var W=function(){var E;return((E=_.D(F.data().rendererContext,_.m9))==null?void 0:E.label)||""};
return _.z("yt-thumbnail-overlay-full-view-model",{class:"ytThumbnailOverlayFullViewModelHost"},_.z(_.v,{cond:function(){return F.data().image},
then:function(){return _.z("div",{class:"ytThumbnailOverlayFullViewModelIcon"},_.z(_.T4,{data:function(){return F.data().image},
alt:W}))}}),_.z(_.v,{cond:function(){return F.data().text},
then:function(){return _.z("div",{class:"ytThumbnailOverlayFullViewModelText"},function(){return F.data().text})}}))},"la");var sUY=_.XF({thumbnailOverlayTitleViewModel:B0M,thumbnailOverlayBadgeViewModel:IfH,thumbnailBottomOverlayViewModel:R8i,thumbnailOverlayFullViewModel:Vxz,thumbnailOverlayButtonViewModel:_.Gd}),Ldo=_.XF({thumbnailHoverOverlayViewModel:MvX,thumbnailHoverOverlayToggleActionsViewModel:NFH}),qoW=_.XF({animatedThumbnailOverlayViewModel:dEB});_.ht($Eb);var UEe,R1O;UEe=_.GK(function(F){var W=[],E=function(){var I,x;return mA((I=F.width)==null?void 0:I.call(F),(x=F.height)==null?void 0:x.call(F))},h=_.WZ().resolve(_.Fd(k6Y)),d=_.uf(function(){W.push("elRef.value set");
var I;(I=F.playbackRef)==null||I.call(F,{thumbnailElRef:d,thumbnail:F.data().image,thumbnailOverlays:F.data().overlays,thumbnailSize:E()})});
_.Xk(function(){W.push("onInit");_.$p(function(){W.push("onCleanup")})});
var V=_.Jb(vmr),R=function(){var I,x;return(x=(I=F.aspectRatio)==null?void 0:I.call(F))!=null?x:0},M=function(){return(F.data().image?_.x7b(F.data().image):R())<=1&&R()===0},g=function(){return M()?"CONTENT_MODE_SCALE_ASPECT_FIT":"CONTENT_MODE_SCALE_ASPECT_FILL"},t=function(){d.value||_.OB(new _.xC("Thumbnail elRef.value is null",W.join("\n")));
h&&d.value&&h(d.value)},C=function(){var I,x;
return((I=F.hovered)==null?void 0:I.call(F))&&E()!=="large"&&((x=F.data().overlays)==null?void 0:x.some(function(A){return _.D(A,Ask)}))},B={};
return _.z("yt-thumbnail-view-model",{class:_.ec("yt-thumbnail-view-model",F.className,function(){return ZeY(R())},function(){var I,x;
a:{var A=E(),X=(I=F.disableRounding)==null?void 0:I.call(F);I=(x=F.isClip)==null?void 0:x.call(F);if(!X&&!I)switch(A){case "large":x="yt-thumbnail-view-model--large";break a;case "small":x="yt-thumbnail-view-model--small";break a;default:x="yt-thumbnail-view-model--medium";break a}x=void 0}return x},(B["yt-thumbnail-view-model--cinematic"]=M,B)),
style:_.vr({"background-color":function(){var I,x=M()?(I=F.data().backgroundColor)==null?void 0:I.lightTheme:void 0;return x?HB(x,"1"):void 0}}),
el:d},_.z(_.v,{cond:M,then:function(){return _.z("div",{class:"yt-thumbnail-view-model__blurred-image"},_.z(_.T4,{data:function(){return F.data().image},
alt:"",contentMode:g,targetWidth:F.width,onload:t}))}}),_.z("div",{class:"yt-thumbnail-view-model__image"},_.z(_.T4,{data:function(){return F.data().image},
alt:"",contentMode:g,targetWidth:F.width,onload:t}),null),_.z(_.a6,{data:function(){return C()?void 0:F.data().overlays},
allowIncompleteMapping:!0},{thumbnailOverlayTitleViewModel:v$p,thumbnailOverlayBadgeViewModel:function(I){return _.z(IfH,{data:I.data,thumbnailSize:E,isClip:F.isClip})},
thumbnailBottomOverlayViewModel:R8i,thumbnailOverlayFullViewModel:Vxz,thumbnailOverlayButtonViewModel:function(I){return _.z(_.Gd,{data:I.data,lockupExperiments:F.lockupExperiments})}}),_.z(_.a6,{data:function(){var I;
return((I=F.hovered)==null?0:I.call(F))?F.data().overlays:void 0},
allowIncompleteMapping:!0},{thumbnailHoverOverlayViewModel:function(I){return _.z(g$X,{data:I.data,alwaysShow:!0})},
thumbnailHoverOverlayToggleActionsViewModel:NFH}),_.z(_.a6,{data:function(){var I;return((I=F.hovered)==null?0:I.call(F))&&V()?F.data().overlays:void 0},
allowIncompleteMapping:!0},{animatedThumbnailOverlayViewModel:dEB}),_.z(_.v,{cond:F.isClip,then:function(){return DEo()}}))},"ma");
R1O=_.c("web_enable_sink_lockups_batch")?UEe:$Eb;_.Yo=_.c("web_enable_sink_lockups_batch")?UEe:_.Qt(R1O,{callbacks:{playbackRef:!0}});UEe.idomCompat={callbacks:{playbackRef:!0}};var Jso=_.XF({thumbnailViewModel:R1O});_.ht(a3Y);var e1i=_.GK(function(F){var W=_.U(_.g$(-1,void 0,"GEkecf")),E=W.next().value,h=W.next().value;_.Xk(function(){var d=new X4G(h);Hek(d,F.data().thumbnails.length);_.$p(function(){Pwo(d)})});
return _.z("yt-collection-thumbnail-slideshow",{class:"yt-collection-thumbnail-slideshow"},_.z(_.a6,{data:function(){return F.data().thumbnails}},{thumbnailViewModel:function(d,V){return _.z("div",{class:function(){var R=!F.data().primaryThumbnail,M=V(),g=E(),t=["yt-collection-thumbnail-slideshow__slideshow-thumbnail"];
R&&M===0&&t.push("yt-collection-thumbnail-slideshow--first-slide");M<=g&&t.push("yt-collection-thumbnail-slideshow--show-slide");return t.join(" ")}},_.z(_.Yo,{data:d.data,
disableRounding:F.disableRounding}))}}))},"na"),nme=_.c("web_enable_sink_lockups_batch")?e1i:a3Y,MxX=_.c("web_enable_sink_lockups_batch")?e1i:_.Qt(a3Y);
e1i.idomCompat=!0;var f3Y=new _.NG("DWELL_DETECTOR_REGISTRY_TOKEN");var l3W=_.XF({thumbnailViewModel:R1O});_.ht(yso);var QUO=_.GK(function(F){var W=beI(F.triggeringElement),E=function(){return!!F.data().primaryThumbnail};
return _.z("yt-collection-thumbnail-view-model",{class:"yt-collection-thumbnail-view-model","aria-hidden":"true"},_.z(gmB,{stackEnabled:E,thumbnailSize:function(){var h,d;return mA((h=F.width)==null?void 0:h.call(F),(d=F.height)==null?void 0:d.call(F))},
doubleStack:F.doubleStack,stackColor:function(){return F.data().stackColor}},_.z("div",null,_.z(_.a6,{data:function(){return F.data().primaryThumbnail}},{thumbnailViewModel:function(h){var d={};
return _.z(_.Yo,{data:h.data,width:F.width,height:F.height,aspectRatio:F.aspectRatio,disableRounding:F.disableRounding,className:_.ec((d["yt-collection-thumbnail-view-model--has-stacks"]=E,d)),hovered:F.hovered,playbackRef:F.playbackRef})}}),_.z(_.v,{cond:function(){var h;
return W()&&((h=F.data().thumbnails)==null?void 0:h.length)},
then:function(){return _.z("div",{class:"yt-collection-thumbnail-view-model__slideshow"},_.z(MxX,{data:F.data,disableRounding:function(){return!E()}}))}}))))},"oa"),z1T=_.c("web_enable_sink_lockups_batch")?QUO:_.Qt(yso,{callbacks:{playbackRef:!0}});
QUO.idomCompat={callbacks:{playbackRef:!0}};
var gmB=_.GK(function(F){var W=F.children;var E=F.stackEnabled;var h=F.thumbnailSize;var d=F.doubleStack;var V=F.stackColor;var R,M=(R=_.WZ().resolve(_.Fd(_.nK)))==null?void 0:R();return _.z(_.v,{cond:E,then:function(){return _.z(lQp,{data:function(){var g,t;return{experimentEnabled:!0,thumbnailSize:h(),doubleStack:d==null?void 0:d(),color:M?V==null?void 0:(g=V())==null?void 0:g.darkTheme:V==null?void 0:(t=V())==null?void 0:t.lightTheme,enableResponsiveMode:!1}}},W)},
else:function(){return W}})},"pa");var txM=new _.NG("EXPANDABLE_METADATA_VIEW_MODEL_TOKEN");var u6;_.w1={calledOnce:!0,state:"visible"};u6={calledOnce:!0,state:"hidden"};_.Sd=_.GK(function(F){var W=F.data;var E=F.customCommandResolver;var h=F.className;var d=F.delayedClassName;F=F.animationEntityKey;var V=_.uf(),R=_.TK(F,""),M=_.D1(lLe,R),g=function(){var p,UY;return(UY=(p=M())==null?void 0:p.value)!=null?UY:!1},t=function(){_.rQ(_.AG("booleanEntity",R(),{key:R(),
value:!0}));b=void 0};
F=_.U(_.Br(g));var C=F.next().value,B=F.next().value;F=_.U(_.Br(g));var I=F.next().value,x=F.next().value;F=_.U(_.Br(function(){var p;return g()?(p=W().styleTransitionConfig)==null?void 0:p.destinationStyle:void 0}));
var A=F.next().value,X=F.next().value,P=function(){var p=Object.assign({},W(),A()&&{style:A()}),UY,xW,qw=p.label,Lb=(UY=p.interaction)==null?void 0:(xW=UY.accessibility)==null?void 0:xW.label;UY=p.iconImage?p.label&&p.label.content?p.iconLeading?"leading":"trailing":"icon-only":void 0;return{formattedButtonText:qw,accessibilityLabel:Lb,style:TFI(p.style),type:omr(p.style),state:"active",size:rsY(p.size),iconPosition:UY,disabled:!1,aTagConfig:iew(p,E)}},b;
_.ER(V,{visibilityCallback:function(p){var UY,xW=(UY=W().interaction)==null?void 0:UY.onFirstVisible;p&&xW&&_.fK(xW)},
showOption:_.w1});var l=function(){return cr(P(),!!W().iconImage)};
h=_.ec(function(){return"ytwAdButtonViewModelHost"},function(){return W().delayedAppearanceConfig?"ytwAdButtonViewModelHostHasAnimation":""},function(){var p=!!W().delayedAppearanceConfig,UY=C();
return p?UY?"ytwAdButtonViewModelFullHeight":"ytwAdButtonViewModelNoHeight":""},function(){var p=!!W().delayedAppearanceConfig,UY=I();
return p?UY?"ytwAdButtonViewModelShow":"ytwAdButtonViewModelHide":""},function(){return!W().delayedAppearanceConfig||C()?d==null?void 0:d():""},h!=null?h:"");
var w=function(){var p,UY=(p=W().delayedAppearanceConfig)==null?void 0:p.delayedInvisibleSeconds;UY&&(b=_.qY(_.P0,function(){B(!0);G()},UY*1E3))},G=function(){var p,UY=(p=W().delayedAppearanceConfig)==null?void 0:p.delayedVisibleSeconds;
UY&&(b=_.qY(_.P0,function(){x(!0);hr()},UY*1E3))},hr=function(){var p,UY=(p=W().styleTransitionConfig)==null?void 0:p.styleTransitionSeconds,xW,qw=(xW=W().styleTransitionConfig)==null?void 0:xW.destinationStyle;
UY&&qw?b=_.qY(_.P0,function(){X(qw);t()},UY*1E3):t()};
_.Xk(function(){var p;((p=W().delayedAppearanceConfig)==null?0:p.transitionDurationSeconds)&&V.value.style.setProperty("transition-duration",W().delayedAppearanceConfig.transitionDurationSeconds+"s");w()});
_.$p(function(){b&&_.P0.cancelJob(b)});
return _.z("ad-button-view-model",{class:h,el:V},_.z(_.v,{cond:P,then:function(){return _.z(Vg,{data:P,icon:function(){return _.z(_.v,{cond:function(){return W().iconImage},
then:function(p){return _.z(_.T4,{data:p,alt:"",targetWidth:l,targetHeight:l,preserveWidth:!0,preserveHeight:!0})}})}})}}))},"qa");var CwH=_.GK(function(F){var W=F.data;F=_.uf();_.ER(F,{visibilityCallback:function(E){var h,d=(h=W().interaction)==null?void 0:h.onFirstVisible;E&&d&&_.fK(d)},
showOption:_.w1});return _.z("ad-button-group-view-model",{class:function(){return"ytwAdButtonGroupViewModelHost"},
el:F},_.z("div",{class:"ytwAdButtonGroupViewModelHostSecondaryButton"},_.z(_.a6,{data:function(){return W().secondaryAdButton}},{adButtonViewModel:function(E){return _.z(_.Sd,{data:E.data})}})),_.z("div",{class:"ytwAdButtonGroupViewModelHostPrimaryButton"},_.z(_.a6,{data:function(){return W().primaryAdButton}},{adButtonViewModel:function(E){return _.z(_.Sd,{data:E.data})}})))},"ra");var BFT=_.GK(function(F){var W=function(){var E;return((E=F.data())==null?void 0:E.answers)||[]};
return _.z("yt-survey-icons",{class:"ytSurveyIconsHost"},_.z("div",{class:"ytSurveyIconsHeader"},_.z("div",{class:"ytSurveyIconsTitle"},function(){var E;return(E=F.data())==null?void 0:E.text}),_.z("div",null,_.z(Vg,{data:function(){return{style:"mono",
type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){var E;(E=F.onDismiss)==null||E.call(F)}}},
iconName:"DISMISSAL"}))),_.z("div",null,_.z("div",{class:"ytSurveyIconsAnswers"},_.z(_.xF,{each:function(){return W()},
keyBy:"INDEX"},function(E,h){return _.z("div",null,_.z(Vg,{data:function(){return{style:"mono",type:"text",state:"active",size:"XL",iconPosition:"icon-only",onTap:function(){var d;(d=F.onSelect)==null||d.call(F,E(),h)}}},
icon:function(){return _.z(_.I3,{icon:function(){var d,V;return(d=E())==null?void 0:(V=d.icon)==null?void 0:V.iconType},
className:"ytSurveyIconsIcon"})}}))})),_.z("div",{class:"ytSurveyIconsAnswersText"},_.z("div",null,function(){return W().length?W()[0].text:""}),_.z("div",null,function(){return W().length?W()[W().length-1].text:""}))))},"sa");var vma=_.GK(function(F){var W=_.U(_.g$(!1,void 0,"s8HkOb")),E=W.next().value,h=W.next().value,d=_.D1(h8r,function(){var M;return(M=F.data().keys)==null?void 0:M.surveyEntityKey}),V=_.D1(dZS,function(){var M;
return(M=F.data().keys)==null?void 0:M.surveyStateEntityKey});
_.w3("ytd-slimline-survey-show-action",function(){h(!1)});
var R=function(){var M,g;var t=(M=V())==null?void 0:(g=M.questionStack)==null?void 0:g[0];if(t!==void 0){var C,B;return(C=d())==null?void 0:(B=C.questions)==null?void 0:B[t]}};
W={};return _.z("yt-slimline-survey-view-model",{class:_.ec("ytSlimlineSurveyViewModelHost",(W.ytSlimlineSurveyViewModelCollapsed=function(){return E()},W))},_.z("div",{class:"ytSlimlineSurveyViewModelContainer"},_.z(_.v,{cond:function(){var M;
return((M=R())==null?void 0:M.layout)==="SURVEY_LAYOUT_TYPE_ICONS"},
then:function(){return _.z(BFT,{data:function(){return R()},
onSelect:function(M,g){var t,C;return _.e(function(B){h(!0);if(C=(t=F.data())==null?void 0:t.onSelectRating)_.fK(C),_.rQ(PZp(g));_.gG(B)})},
onDismiss:function(){h(!0)}})}})))},"ta");var I3c=_.GK(function(F){return _.z("lockup-attachments-view-model",{class:"ytLockupAttachmentsViewModelHost"},_.z(_.a6,{data:function(){var W;return(W=F.data())==null?void 0:W.attachments}},{flexibleActionsViewModel:function(W){return _.z("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.z(pCz,{data:W.data,
layout:function(){var E;return((E=F.lockupStyle())==null?void 0:E.arrangement)===1?0:1},
justifyContentOverride:function(){var E;return((E=F.lockupStyle())==null?void 0:E.arrangement)===1?"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_START":"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_EVENLY"}}))},
slimlineSurveyViewModel:function(W){return _.z("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.z(vma,{data:W.data}))},
expandableMetadataViewModel:function(W){W=W.data;var E;return _.z("div",{class:"ytLockupAttachmentsViewModelAttachment"},(E=_.WZ().resolve(_.Fd(txM)))==null?void 0:E({data:W}))},
adButtonGroupViewModel:function(W){return _.z("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.z(CwH,{data:W.data}))}}))},"ua");var p4r=_.dV("rich_grid_min_item_width",310),uln=_.dV("rich_grid_max_item_width",500);var eSo=_.GK(function(F){var W=F.data;return _.z("br-nz-badge-shape",{class:_.ec(function(){return Nfr(W().brNzRatingBadgeType)}),
role:function(){return W().accessibilityText?"img":void 0},
"aria-label":function(){return W().accessibilityText}},function(){var E;
return(E=W())==null?void 0:E.text})},"va");_.ht(MNw);var csc,EGn;csc=_.GK(function(F){var W=function(){var E=F.data(),h,d;return E?RSn(E,!((h=F.workaroundShortsIsThumbnailBadge)==null||!h.call(F)),(d=F.modern)==null?void 0:d.call(F)):void 0};
return _.z("yt-badge-view-model",{class:_.ec("yt-badge-view-model-wiz",F.class)},_.z(_.sG,null,_.z(_.kF,{when:function(){var E;return!((E=W())==null||!E.brNzRatingBadgeType)}},function(){return _.z(eSo,{data:function(){return W()}})}),_.z(_.kF,{when:function(){return!!W()&&!W().brNzRatingBadgeType}},function(){return _.z(_.hD,{data:function(){return W()}})})))},"wa");
EGn=_.c("web_enable_sink_yt_badge_view_model")?csc:MNw;_.pp=_.c("web_enable_sink_yt_badge_view_model")?csc:_.Qt(MNw);csc.idomCompat=!0;var QhY,g0e;QhY=16/9;g0e=2/3;_.mO=_.GK(function(F){var W=F.data;var E=F.className;var h=F.imageSizeConfig;var d=F.notifyOnLoaded;F=_.uf();var V=function(){return W().style||"CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},R=function(){var C;
return _.uJ((C=W())==null?void 0:C.rendererContext)},M={};
M=(M["yt-content-preview-image-view-model-wiz"]=!0,M["yt-content-preview-image-view-model-wiz--circle-image"]=function(){return V()==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},M["yt-content-preview-image-view-model-wiz--tappable"]=function(){return R()},M);
var g=function(){var C,B;return(B=(C=_.D(W().rendererContext,_.m9))==null?void 0:C.label)!=null?B:""},t=function(){return tNo(W())};
_.Sb(F,function(){var C;return(C=W())==null?void 0:C.rendererContext});
return _.z("yt-content-preview-image-view-model",{el:F,role:function(){return R()?"link":void 0},
tabindex:function(){return R()?0:void 0},
class:_.ec(E,M,function(){var C=V();var B=h==null?void 0:h();C=C==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||C==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||C==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||C==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"?(B==null?void 0:B.size)!=null&&B.size<=16?"yt-content-preview-image-view-model-wiz--extra-small-rounded-image":(B==null?void 0:B.size)!=null&&B.size<=24?"yt-content-preview-image-view-model-wiz--small-rounded-image":"yt-content-preview-image-view-model-wiz--large-rounded-image":
void 0;return C}),
style:function(){return zSW(V(),W().layoutMode||"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_UNKNOWN",h==null?void 0:h(),CQn(t()),W().layoutWidth,W().layoutHeight)}},_.z(_.v,{cond:t,
then:function(C){return _.z(_.T4,{data:C,alt:g,"data-disabled$":function(){return!g()},
notifyOnLoaded:d})}}),_.z(_.a6,{data:function(){var C;
return(C=W())==null?void 0:C.overlays}},{thumbnailHoverOverlayViewModel:g$X,
thumbnailOverlayButtonViewModel:_.Gd}))},"xa");
_.mO.idomCompat=!0;var Kp=_.GK(function(F){var W=F.data;var E=F.className;var h=F.useSmallLayout;var d=F.useMediumText;F=_.uf();var V={};d=(V["yt-attribution-view-model-wiz"]=!0,V["yt-attribution-view-model-wiz--medium-text"]=d,V);_.Sb(F,function(){var R;return(R=W())==null?void 0:R.rendererContext});
return _.z("yt-attribution-view-model",{el:F,class:_.ec(E,d)},_.z(_.v,{cond:function(){return _.uJ(W().rendererContext)},
then:function(){return _.z("button",{class:"yt-attribution-view-model-wiz--tappable"},_.z(DE_,{data:W,useSmallLayout:h}))},
else:function(){return _.z(DE_,{data:W,useSmallLayout:h})}}))},"ya"),DE_=_.GK(function(F){var W=F.data;
var E=F.useSmallLayout;var h=function(){return{size:(E==null?0:E())?16:24}};
return _.z(_.EG,null,_.z(_.a6,{data:function(){return W().contentPreviewImage}},{contentPreviewImageViewModel:function(d){return _.z(_.mO,{data:d.data,
className:"yt-attribution-view-model-wiz__attribution-image",imageSizeConfig:h})}}),_.z(_.a6,{data:function(){return W().badge}},{badgeViewModel:function(d){return _.z(_.pp,{data:d.data,
class:"yt-attribution-view-model-wiz__badge",modern:!0})}}),_.z(_.v,{cond:function(){return W().text},
then:function(){return _.z(_.Ab,{text:function(){return W().text},
noWrap:!0,linkInheritColor:!0,className:"yt-attribution-view-model-wiz__attribution-text"})}}),_.z(_.v,{cond:function(){return W().suffix},
then:function(){return _.z(_.Ab,{text:function(){return W().suffix},
linkInheritColor:!0,className:"yt-attribution-view-model-wiz__suffix"})}}))},"za");
Kp.idomCompat=!0;var ksw=_.XF({avatarStackViewModel:_.Lp,badgeViewModel:EGn});_.ht(Lzw);var xEe,k6e,AsH,sUX,Ld_,qoB,$ET;xEe=_.GK(function(F){var W=F.delimiter;var E=F.max;var h=F.index;var d=F.isStandalone;return _.z(_.v,{cond:function(){return E()-1>h()},
then:function(){var V={};return _.z("span",{class:_.ec("yt-content-metadata-view-model-wiz__delimiter",(V["yt-content-metadata-view-model-wiz__delimiter--standalone"]=d,V)),"aria-hidden":!0},W)}})},"Aa");
k6e=_.GK(function(F){var W=F.metadataPart;var E=F.maxLines;return _.z(_.Ab,{text:function(){return W().text},
linkInheritColor:!0,className:function(){return qCI(E())},
userInput:!0})},"Ba");
AsH=_.GK(function(F){var W=F.metadataPart;var E=F.maxLines;return _.z(_.v,{cond:function(){return W().tooltip},
then:function(h){return _.z("span",{title:h,role:"tooltip"},_.z(k6e,{metadataPart:W,maxLines:E}))},
else:function(){return _.z(k6e,{metadataPart:W,maxLines:E})}})},"Ca");
sUX=_.GK(function(F){var W=F.metadataPart;var E=F.isOverlay;var h=F.useMediumText;var d=F.hideAvatar;var V=function(){return W().maxLines!==void 0?W().maxLines:1};
return _.z(_.EG,null,_.z(_.a6,{data:function(){return W().avatarStack}},{avatarStackViewModel:function(R){return _.z(_.Lp,{data:R.data,
isOverlay:E,useMediumText:h,hideAvatar:d})},
badgeViewModel:_.pp}),_.z(_.v,{cond:function(){return W().text},
then:function(){return _.z(AsH,{metadataPart:W,maxLines:V})}}))},"Da");
Ld_=_.GK(function(F){var W=F.metadataRow;var E=F.isInline;var h=F.delimiter;var d=F.isOverlay;var V=F.useMediumText;var R=F.extensions;var M=function(){var t;return v0S(R==null?void 0:(t=R())==null?void 0:t.lockupMetadata,W())},g=function(){return W().metadataParts||[]};
F={};return _.z("div",{class:_.ec("yt-content-metadata-view-model-wiz__metadata-row",(F["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-inline"]=E,F["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-padding"]=function(){var t;return IxW(R==null?void 0:(t=R())==null?void 0:t.lockupMetadata,W())},F["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-wrap"]=function(){var t;
return!!(R==null?0:(t=R())==null?0:t.lockupMetadata)&&W().badges},F))},_.z(_.a6,{data:function(){return W().badges}},{badgeViewModel:function(t){return _.z("div",{class:"yt-content-metadata-view-model-wiz__badge"},_.z(_.pp,{data:t.data}))}}),_.z(_.xF,{each:g},function(t,C){return _.z(_.EG,null,_.z(sUX,{metadataPart:t,
isOverlay:d,useMediumText:V,hideAvatar:M}),_.z(xEe,{delimiter:h,max:function(){return g().length},
index:C,isStandalone:!1}))}),_.z(_.v,{cond:function(){return W().isSpacerRow&&!E()},
then:function(){return _.z("div",{class:"yt-content-metadata-view-model-wiz__spacer"})}}))},"Ea");
qoB=_.GK(function(F){var W=_.o4(F,{layout:0,isOverlay:!1});F=W.className;var E=W.data,h=W.layout,d=W.isOverlay,V=W.useMediumText,R=W.extensions;W=_.uf();var M=function(){return h()===0};
_.Sb(W,function(){return E().rendererContext});
var g=function(){return E().metadataRows||[]},t={};
return _.z("yt-content-metadata-view-model",{class:_.ec(F,"yt-content-metadata-view-model-wiz",(t["yt-content-metadata-view-model-wiz--inline"]=M,t["yt-content-metadata-view-model-wiz--tappable"]=function(){return _.uJ(E().rendererContext)},t["yt-content-metadata-view-model-wiz--medium-text"]=V,t)),
el:W},_.z(_.xF,{each:g},function(C,B){return _.z(_.EG,null,_.z(Ld_,{metadataRow:C,isInline:M,delimiter:function(){return E().delimiter},
isOverlay:d,useMediumText:V,extensions:R}),_.z(_.v,{cond:function(){return M()&&!C.isSpacerRow},
then:function(){return _.z(xEe,{delimiter:function(){return E().delimiter},
max:function(){return g().length},
index:B,isStandalone:!0})}}))}))},"Fa");
$ET=_.c("web_enable_sink_yt_content_metadata_view_model")?qoB:Lzw;_.Zee=_.c("web_enable_sink_yt_content_metadata_view_model")?qoB:_.Qt(Lzw);qoB.idomCompat=!0;var X1w=_.XF({avatarViewModel:_.fI,decoratedAvatarViewModel:_.sc,avatarStackViewModel:_.Lp,contentMetadataViewModel:$ET,buttonViewModel:_.rk,attributionViewModel:Kp});_.ht(HDe);var X4O=_.GK(function(F){var W={};return _.z("yt-lockup-metadata-view-model",{class:_.ec("yt-lockup-metadata-view-model-wiz",function(){a:{var E=F.lockupStyle();if(E==null?0:E.isOverlay)E="yt-lockup-metadata-view-model-wiz--overlay";else switch(E==null?void 0:E.arrangement){case 1:E="yt-lockup-metadata-view-model-wiz--horizontal";break a;default:E="yt-lockup-metadata-view-model-wiz--vertical"}}return E},function(){a:{var E=F.lockupStyle();
if(E==null?0:E.isTiny)E="yt-lockup-metadata-view-model-wiz--tiny";else switch(E==null?void 0:E.sizing){case "MINI":case "EXTRA_COMPACT":case "COMPACT":E="yt-lockup-metadata-view-model-wiz--compact";break a;default:E="yt-lockup-metadata-view-model-wiz--standard"}}return E},(W["yt-lockup-metadata-view-model-wiz--overlay"]=function(){var E;
return(E=F.lockupStyle())==null?void 0:E.isOverlay},W["yt-lockup-metadata-view-model-wiz--card"]=function(){var E;
return(E=F.lockupStyle())==null?void 0:E.isCard},W["yt-lockup-metadata-view-model-wiz--centered"]=function(){var E;
return(E=F.lockupStyle())==null?void 0:E.isCentered},W["yt-lockup-metadata-view-model-wiz--typography-bump"]=function(){var E;
return(E=F.lockupStyle())==null?void 0:E.typographyBump},W["yt-lockup-metadata-view-model-wiz--legacy-typography"]=function(){var E;
return(E=F.lockupStyle())==null?void 0:E.useLegacyTypography},W["yt-lockup-metadata-view-model-wiz--rich-grid-legacy-typography"]=function(){var E;
return(E=F.lockupStyle())==null?void 0:E.useRichGridLegacyTypography},W))},_.z(_.a6,{data:function(){return F.data().image}},{avatarStackViewModel:function(E){return _.z("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.z(_.Lp,{data:E.data,
overrides:{layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"}}))},
avatarViewModel:function(E){return _.z("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.z(_.fI,{data:E.data}))},
decoratedAvatarViewModel:function(E){return _.z("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.z(_.sc,{data:E.data}))}}),_.z("div",{class:"yt-lockup-metadata-view-model-wiz__text-container"},_.z("h3",{class:"yt-lockup-metadata-view-model-wiz__heading-reset",
title:function(){var E;return(E=F.data().title)==null?void 0:E.content}},_.z(_.v,{cond:function(){return F.data().title},
then:function(E){return _.z(_.kY,{command:F.lockupCommand,className:"yt-lockup-metadata-view-model-wiz__title",ariaLabel:F.lockupAccessibilityLabel},_.z(_.Ab,{text:E}))}})),_.z("div",{class:"yt-lockup-metadata-view-model-wiz__metadata"},_.z(_.a6,{data:function(){return F.data().metadata}},{contentMetadataViewModel:function(E){return _.z(_.Zee,{data:E.data,
layout:1,useMediumText:function(){var h,d;return((h=F.lockupStyle())==null?void 0:h.typographyBump)||((d=F.lockupStyle())==null?void 0:d.useRichGridLegacyTypography)},
extensions:function(){var h,d;return{lockupMetadata:{byline:{hideAvatar:((h=F.lockupStyle())==null?void 0:h.arrangement)===0,addPadding:((d=F.lockupStyle())==null?void 0:d.arrangement)===1}}}}})}})),_.z(_.a6,{data:function(){return F.data().attribution}},{attributionViewModel:function(E){return _.z("div",{class:"yt-lockup-metadata-view-model-wiz__attribution"},_.z(Kp,{data:E.data,
useSmallLayout:!0}))}})),_.z("div",{class:"yt-lockup-metadata-view-model-wiz__menu-button"},_.z(_.a6,{data:function(){return F.data().menuButton}},{buttonViewModel:function(E){return _.z(_.rk,{data:E.data,
buttonOverrides:function(){var h;return((h=F.lockupStyle())==null?0:h.isOverlay)?{style:"overlay"}:void 0}})}})))},"Ga"),HeH=_.c("web_enable_sink_lockups_batch")?X4O:_.Qt(HDe);
X4O.idomCompat=!0;var Pw_=_.GK(function(F){var W=_.uf();_.$F(function(){requestAnimationFrame(function(){_.SQ(W.value)})});
var E={},h={},d={};return _.z("notification-multi-action-renderer",{class:_.ec("ytNotificationMultiActionRendererHost",(E.ytNotificationMultiActionRendererHostLegacyShelfStyle=function(){var V;return(V=F.useLegacyShelfStyle)==null?void 0:V.call(F)},E)),
el:W},_.z("span",{"aria-live":"polite",class:_.ec("ytNotificationMultiActionRendererTextContainer",(h.ytNotificationMultiActionRendererTextContainerLegacyShelfStyle=function(){var V;return(V=F.useLegacyShelfStyle)==null?void 0:V.call(F)},h))},_.z(_.Ab,{text:function(){return F.data().responseText}})),_.z("div",{class:_.ec("ytNotificationMultiActionRendererButtonContainer",(d.ytNotificationMultiActionRendererButtonContainerLegacyShelfStyle=function(){var V;
return(V=F.useLegacyShelfStyle)==null?void 0:V.call(F)},d))},_.z(_.a6,{data:function(){var V;
return(V=F.data().buttons)==null?void 0:V.map(function(R){if(R=R.buttonRenderer){var M,g=Object,t=g.assign,C=(M=R.icon)==null?void 0:M.iconType;M=(M=R.command||R.serviceEndpoint||R.navigationEndpoint)?{innertubeCommand:M}:void 0;R={buttonViewModel:t.call(g,{},{iconName:C,onTap:M,trackingParams:R.trackingParams,titleFormatted:R.text?_.qr(R.text):void 0},PQI(R))}}else R=void 0;return R}).filter(function(R){return!!R})}},{buttonViewModel:function(V,R){return _.z("div",null,_.z(_.rk,{data:V.data,
className:"ytNotificationMultiActionRendererButton",buttonOverrides:function(){var M;return((M=F.useModernStyles)==null?0:M.call(F))?{type:R()?"filled":"tonal",style:"mono"}:void 0}}))}})))},"Ha");var JsM=_.GK(function(F){var W=_.uf();_.$F(function(){requestAnimationFrame(function(){_.SQ(W.value)})});
return _.z("notification-text-renderer",{el:W,class:"ytNotificationTextRendererHost","aria-live":"polite"},_.z(_.Ab,{text:function(){return F.data().successResponseText}}))},"Ia");_.a3e=_.GK(function(F){var W=_.D1(bJo,function(){var h;return JSI((h=F.contentId)==null?void 0:h.call(F))}),E=function(){var h;
return _.D((h=W())==null?void 0:h.command,_.$J)};
return _.z(_.v,{cond:function(){var h;if(!(h=E())){var d;h=_.D((d=W())==null?void 0:d.command,BHp)}return h},
then:function(){return _.z(_.v,{cond:E,then:function(){var h={};return _.z("div",{class:_.ec("ytDismissibleItemReplacedContent",function(){var d;return axo((d=F.aspectRatio)==null?void 0:d.call(F))})},_.z("div",{class:_.ec((h.ytDismissibleItemAspectRatioContainer=function(){var d;
return((d=F.aspectRatio)==null?void 0:d.call(F))!==void 0},h))},_.z(_.a6,{data:function(){var d;
return(d=E())==null?void 0:d.item}},{notificationMultiActionRenderer:function(d){return _.z(Pw_,{data:d.data,
useModernStyles:F.useModernStyle,useLegacyShelfStyle:F.useLegacyShelfStyle})},
notificationTextRenderer:JsM})))}})},
else:F.children})},"Ja");_.f3e=_.GK(function(F){var W=F.data;var E=F.customCommandResolver;F=_.Sh();var h=function(){var V;return((V=W().interaction)==null?0:V.onTap)?function(R){var M;jUk(R,(M=W().interaction)==null?void 0:M.onTap,E)}:void 0},d=function(){var V,R=W(),M=h(),g=(V=_.D(W().rendererContext,_.m9))==null?void 0:V.label;
a:switch(R.style){case "AD_AVATAR_STYLE_ROUNDED_CORNER":V=1;break a;default:V=0}return{size:bDn(R.size),type:V,onTap:M,accessibilityText:g}};
_.ER(F,{visibilityCallback:function(V){var R,M=(R=W().interaction)==null?void 0:R.onFirstVisible;V&&M&&_.fK(M)},
showOption:_.w1});return _.z("ad-avatar-view-model",{class:function(){var V;return((V=W().interaction)==null?0:V.onTap)?"ytwAdAvatarViewModelHostIsClickableAdComponent":"ytwAdAvatarViewModelHost"},
el:F},_.z(_.v,{cond:function(){return W().image},
then:function(V){return _.z(tva,{data:d,image:V})}}))},"Ka");_.FI=_.GK(function(F){F=_.o4(F,{hasDot:!1});var W=Object.assign({},F),E=F.data,h=F.hasDot;F=F.customCommandResolver;var d=(delete W.data,delete W.hasDot,delete W.customCommandResolver,W);W=function(){return E().style};
W!==void 0&&W!==null||_.i0(Error("Dh"));W=_.uf();_.WH(W,function(){return E().interaction},F);
return _.z("ad-badge-view-model",{class:_.ec(function(){var V;return((V=E().interaction)==null?0:V.onTap)?"ytwAdBadgeViewModelHostIsClickableAdComponent":"ytwAdBadgeViewModelHost"},function(){var V=d.adRenderingContextType();
E();return V==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdBadgeViewModelHostStyleStandardBrowse":"ytwAdBadgeViewModelHostStyleStandard"}),
el:W},_.z(_.hD,{data:function(){var V;E();return{type:2,text:(V=E().label)==null?void 0:V.content,adsIncludeDot:h(),isOverlay:E().style==="AD_BADGE_STYLE_STARK_OVERLAY"}}}))},"La");var OeU;_.Wh=_.GK(function(F){var W=F.data;var E=F.customCommandResolver;var h=F.adRenderingContextType;F=_.uf();_.WH(F,function(){return W().interaction},E);
_.ER(F,{visibilityCallback:function(d){var V,R=(V=W().interaction)==null?void 0:V.onFirstVisible;d&&R&&_.fK(R)},
showOption:_.w1});return _.z("ad-details-line-view-model",{class:function(){var d;return((d=W().interaction)==null?0:d.onTap)?"ytwAdDetailsLineViewModelHostIsClickableAdComponent":"ytwAdDetailsLineViewModelHost"},
el:F},_.z(_.v,{cond:function(){return W().style},
then:function(d){return _.z(_.xF,{each:function(){var V;return((V=W())==null?void 0:V.attributes)||[]},
keyBy:"INDEX"},function(V){return _.z(OeU,{attribute:V,style:d,adRenderingContextType:function(){return h()}})})}}))},"Ma");
OeU=_.GK(function(F){var W=F.attribute;var E=F.style;var h=F.adRenderingContextType;return _.z(_.v,{cond:function(){return W().text},
then:function(d){return _.z(_.Ab,{text:d,className:function(){var V=h();E();return V==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdDetailsLineViewModelHostTextStyleStandardBrowse":"ytwAdDetailsLineViewModelHostTextStyleStandard"}})}})},"Na");var bec=_.GK(function(F){var W=F.data;var E=F.typographyBump;var h=function(){return W().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_SEARCH"};
F={};return _.z(_.EG,null,_.z("div",{class:"ytwFeedAdMetadataViewModelHostMetadata"},_.z(_.Ab,{text:function(){return W().headline},
className:_.ec("ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadline",(F.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineSearch=function(){return h==null?void 0:h()},F.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineTypographyBump=function(){return(E==null?void 0:E())&&!(h==null?0:h())},F)),
linkInheritColor:!0}),_.z(_.v,{cond:function(){return W().description},
then:function(d){var V={};return _.z(_.Ab,{text:d,className:_.ec("ytwFeedAdMetadataViewModelHostTextsStyleCompactDescription",(V.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionSearch=function(){return h==null?void 0:h()},V.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionTypographyBump=function(){return(E==null?void 0:E())&&!(h==null?0:h())},V)),
linkInheritColor:!0})}}),_.z(_.v,{cond:function(){return W().secondaryDescription},
then:function(d){var V={};return _.z(_.Ab,{text:d,className:_.ec("ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescription",(V.ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescriptionTypographyBump=function(){return E==null?void 0:E()},V)),
linkInheritColor:!0})}}),_.z("div",{class:function(){return h()?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleCompactSearch":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainer"}},_.z(_.a6,{data:function(){return W().adBadge}},{adBadgeViewModel:function(d){return _.z(_.FI,{data:d.data,
hasDot:function(){return!!W().adDetailsLine},
adRenderingContextType:function(){return W().adRenderingContextType}})}}),_.z(_.a6,{data:function(){return W().adDetailsLine}},{adDetailsLineViewModel:function(d){return _.z(_.Wh,{data:d.data,
adRenderingContextType:function(){return W().adRenderingContextType}})}}))),_.z("div",{class:function(){return h()?"ytwFeedAdMetadataViewModelHostMenuSearch":"ytwFeedAdMetadataViewModelHostMenu"}},_.z(_.a6,{data:function(){return W().menu}},{buttonViewModel:function(d){return _.z(_.rk,{data:d.data,
buttonOverrides:function(){a:switch(W().adRenderingContextType){case "AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT":var V="S";break a;default:V="M"}return{size:V}}})}})))},"Oa"),l3B=_.GK(function(F){var W=F.data;
var E=F.noBottomMargin;var h=F.useVideoLockupTopPadding;var d=F.typographyBump;F={};F=_.ec("ytwFeedAdMetadataViewModelHostMetadata",(F.ytwFeedAdMetadataViewModelHostMetadataNoBottomMargin=function(){return E==null?void 0:E()},F.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return h==null?void 0:h()},F));
var V=function(){return W().adBadge};
V!==void 0&&V!==null||_.i0(Error("Eh"));V={};var R={};return _.z(_.EG,null,_.z(_.v,{cond:function(){return W().adAvatar},
then:function(){return _.z("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleStandard"},_.z(_.a6,{data:function(){return W().adAvatar}},{adAvatarViewModel:function(M){return _.z(_.f3e,{data:M.data})}}))}}),_.z("div",{class:F},_.z("div",{class:_.ec("ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadline",(V.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBump=function(){return d==null?void 0:d()},V.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBumpV2=function(){return(d==
null?void 0:d())&&_.c("web_enable_typography_bump_v2")},V))},_.z(_.Ab,{text:function(){return W().headline},
linkInheritColor:!0})),_.z(_.v,{cond:function(){return W().description},
then:function(M){return _.z(_.Ab,{text:M,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardDescription",linkInheritColor:!0})}}),_.z("div",{class:function(){return W().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_BROWSE"&&_.c("enable_top_landscape_image_components_legacy_ui_web")?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandardLegacy":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandard"}},_.z(_.a6,{data:function(){return W().adBadge}},
{adBadgeViewModel:function(M){return _.z(_.FI,{data:M.data,
hasDot:function(){return!!W().adDetailsLine},
adRenderingContextType:function(){return W().adRenderingContextType}})}}),_.z(_.a6,{data:function(){return W().adDetailsLine}},{adDetailsLineViewModel:function(M){return _.z(_.Wh,{data:M.data,
adRenderingContextType:function(){return W().adRenderingContextType}})}})),_.z(_.v,{cond:function(){return W().secondaryDescription},
then:function(M){return _.z(_.Ab,{text:M,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardSecondaryDescription",linkInheritColor:!0})}})),_.z("div",{class:_.ec("ytwFeedAdMetadataViewModelHostMenuStyleStandard",(R.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return h==null?void 0:h()},R))},_.z(_.a6,{data:function(){return W().menu}},{buttonViewModel:_.rk})))},"Pa"),nmp=_.GK(function(F){var W=F.data;
var E=F.noBottomMargin;var h=F.listenToTapEvent;var d=F.setTouchEndHandler;var V=F.useVideoLockupTopPadding;var R=F.typographyBump;var M=_.uf();_.WH(M,function(){return W().interaction},void 0,function(){return h==null?void 0:h()});
F=_.U(_.g$(!1,void 0,"A6DxNe"));var g=F.next().value,t=F.next().value;F=_.tb(function(){(d==null?0:d())&&!g()&&(M.value.click(),t(!0),setTimeout(function(){t(!1)},100));
return!1});
_.ER(M,{visibilityCallback:function(C){var B,I=(B=W().interaction)==null?void 0:B.onFirstVisible;C&&I&&_.fK(I)},
showOption:_.w1});return _.z("feed-ad-metadata-view-model",{class:function(){var C;return((C=W().interaction)==null?0:C.onTap)?"ytwFeedAdMetadataViewModelHostIsClickableAdComponent":"ytwFeedAdMetadataViewModelHost"},
el:M,"on:touchend":F},_.z(_.sG,null,_.z(_.kF,{when:function(){return W().style==="FEED_AD_METADATA_STYLE_COMPACT"}},function(){return _.z(bec,{data:W,
typographyBump:R})}),_.z(_.kF,{when:function(){return W().style==="FEED_AD_METADATA_STYLE_STANDARD"}},function(){return _.z(l3B,{data:W,
noBottomMargin:E,useVideoLockupTopPadding:V,typographyBump:R})})))},"Qa");var ys_;_.EN=_.GK(function(F){return _.z("yt-lockup-view-model",{class:_.ec(F.className)},_.z(_.a3e,{contentId:function(){return F.data().contentId},
useModernStyle:!0,aspectRatio:function(){var W,E;return((W=F.containerType)==null?void 0:W.call(F))!==3?hSS(F.data().contentType,(E=F.force16By9ThumbnailAspectRatio)==null?void 0:E.call(F)):void 0}},function(){return _.z(ys_,Object.assign({},F))}))},"Ra");
ys_=_.GK(function(F){F=_.o4(F,{containerLayoutConfig:void 0,protectBackground:void 0,containerType:void 0,sizing:void 0,typographyBump:!1,force16By9ThumbnailAspectRatio:!1,thumbnailFixedWidth:void 0,thumbnailTargetWidth:void 0,lockupExperiments:void 0,elementsPerRow:void 0});var W=F.data,E=F.containerLayoutConfig,h=F.containerType,d=F.sizing,V=F.protectBackground,R=F.typographyBump,M=F.force16By9ThumbnailAspectRatio,g=F.thumbnailFixedWidth,t=F.thumbnailTargetWidth,C=F.lockupExperiments,B=F.elementsPerRow;
F=_.uf();_.Sb(F,function(){var Jr;return(Jr=W())==null?void 0:Jr.rendererContext},void 0,void 0,["A".toString(),
"BUTTON".toString(),"YT-EXPANDABLE-METADATA-VIEW-MODEL","FEED-AD-METADATA-VIEW-MODEL","AD-BADGE-VIEW-MODEL","AD-DETAILS-LINE-VIEW-MODEL"],!0);var I=_.Jb(I3I),x=_.WZ().resolve(_.Fd(Wda)),A=x?{}:void 0,X=function(){var Jr,nb,bo;return(bo=(nb=_.D((Jr=W())==null?void 0:Jr.rendererContext,_.m9))==null?void 0:nb.label)!=null?bo:void 0},P=function(){var Jr=E==null?void 0:E(),nb;
if(Jr==null?0:Jr.containerType){var bo=(nb=W())==null?void 0:nb.contentType;nb=C();var uo=R(),b_=t(),BO=V();Jr=Object.assign({},dqb(FzI(Jr),mEY(Jr.responsiveSize),uo,bo,Jr.force16By9ThumbnailAspectRatio,b_,BO,nb),{thumbnailFixedWidth:Jr.contentPreviewWidth})}else Jr=dqb(h(),d(),R(),(bo=W())==null?void 0:bo.contentType,M(),t(),V(),C());return Jr};
x&&A&&x({enabled:function(){return I()},
itemPlaybackModel:function(){return W().itemPlayback},
thumbnailElRef:function(){return A.thumbnailElRef},
containerElRef:F,options:function(){var Jr,nb=(Jr=_.D(W().metadata,hI_))==null?void 0:Jr.endorsement;Jr=A.thumbnailOverlays||[];nb&&Jr.push(nb);var bo,uo;return{thumbnail:A.thumbnail,thumbnailOverlays:Jr,accessibilityText:X(),thumbnailSize:A.thumbnailSize,enableRounding:P().isCollection,containPlayerWithinThumbnail:P().isCollection,trackingParams:(bo=_.D(W().rendererContext,_.GWR))==null?void 0:(uo=bo.loggingDirectives)==null?void 0:uo.trackingParams}}});
var b=0;x=_.U(_.g$(!1,void 0,"HzAs3"));var l=x.next().value,w=x.next().value;x=_.U(_.g$(!1,void 0,"ujOXud"));var G=x.next().value,hr=x.next().value;x=_.tb(function(){var Jr=I()&&W().itemPlayback;G()?(_.P0.cancelJob(b),b=_.P0.addJob(function(){w(!Jr)},8,32)):w(!Jr);
return!0});
var p=_.tb(function(){b&&(_.P0.cancelJob(b),b=0);w(!1)});
_.$p(function(){b&&(_.P0.cancelJob(b),b=0)});
var UY=ODo(function(){hr(!0)}),xW=UY.touchFeedbackEvents,qw=UY.touchFeedbackOnPointerUp,Lb=UY.touchFeedbackOnPointerDown;
UY=UY.touchFeedbackOnPointerLeave;var jk={};return _.z("div",{el:F,class:_.ec("yt-lockup-view-model-wiz",function(){a:{var Jr=P();if(Jr.isOverlay)Jr="yt-lockup-view-model-wiz--overlay";else switch(Jr.arrangement){case 1:Jr="yt-lockup-view-model-wiz--horizontal";break a;default:Jr="yt-lockup-view-model-wiz--vertical"}}return Jr},function(){a:{var Jr=P();
if(Jr.isOverlay)Jr="yt-lockup-view-model-wiz--overlay";else{switch(Jr.collectionStackNumber){case 1:Jr="yt-lockup-view-model-wiz--collection-stack-1";break a;case 2:Jr="yt-lockup-view-model-wiz--collection-stack-2";break a}Jr=void 0}}return Jr},(jk["yt-lockup-view-model-wiz--card"]=function(){return P().isCard},jk["yt-lockup-view-model-wiz--compact"]=function(){return P().isTiny||P().sizing!=="STANDARD"},jk["yt-lockup-view-model-wiz--protect-background"]=V,jk["yt-lockup-view-model-wiz--add-margins"]=
function(){return P().addMarginForFullbleed},jk["yt-lockup-view-model-wiz--centered"]=function(){return P().isCentered},jk["yt-lockup-view-model-wiz--fullbleed"]=function(){return P().fullbleed},jk["yt-lockup-view-model-wiz--single-column-grid"]=function(){return B()===1&&h()===2},jk["yt-lockup-view-model-wiz--rich-grid-legacy-margin"]=function(){var Jr;
return(Jr=C())==null?void 0:Jr.useRichGridLegacyMargin},jk)),
"on:mousedown":Lb,"on:mouseleave":p,"on:mouseup":qw,"on:mouseover":x,"on:touchstart":Lb,"on:touchend":qw,"on:pointerleave":UY},_.z(_.kY,{command:function(){var Jr;return _.wk((Jr=W())==null?void 0:Jr.rendererContext)},
ariaHidden:!0,tabIndex:-1,className:"yt-lockup-view-model-wiz__content-image",style:function(){return g()&&P().arrangement===1?"width: "+g():""}},_.z(_.a6,{data:function(){var Jr;
return(Jr=W())==null?void 0:Jr.contentImage}},{thumbnailViewModel:function(Jr){return _.z(_.Yo,{data:Jr.data,
aspectRatio:function(){return P().aspectRatio},
disableRounding:function(){return P().disableRounding},
width:t,hovered:l,isClip:function(){var nb;return((nb=W())==null?void 0:nb.contentType)==="LOCKUP_CONTENT_TYPE_CLIP"},
playbackRef:BFb(A),lockupExperiments:function(){return C()}})},
collectionThumbnailViewModel:function(Jr){return _.z(z1T,{data:Jr.data,aspectRatio:function(){return P().aspectRatio},
disableRounding:function(){return P().disableRounding},
width:t,doubleStack:function(){return P().collectionStackNumber===2},
hovered:l,playbackRef:BFb(A)})},
decoratedAvatarViewModel:_.sc})),_.z("div",{class:"yt-lockup-view-model-wiz__metadata"},_.z(_.a6,{data:function(){var Jr;return(Jr=W())==null?void 0:Jr.metadata}},{lockupMetadataViewModel:function(Jr){return _.z(HeH,{data:Jr.data,
lockupStyle:P,lockupCommand:function(){var nb;return _.wk((nb=W())==null?void 0:nb.rendererContext)},
lockupAccessibilityLabel:function(){return X()}})},
feedAdMetadataViewModel:function(Jr){return _.z(nmp,{data:Jr.data,noBottomMargin:function(){return!0},
useVideoLockupTopPadding:function(){return!0},
typographyBump:R})}}),_.z(_.a6,{data:function(){var Jr;
return(Jr=W())==null?void 0:Jr.attachmentSlot}},{lockupAttachmentsViewModel:function(Jr){return _.z(I3c,{data:Jr.data,
lockupStyle:P})}})),_.z(_.xY,{model:function(){a:{switch(P().collectionStackNumber){case 1:var Jr=8;
break a;case 2:Jr=12;break a}Jr=void 0}return{isExtended:!0,triggerEvents:!0,customTopExtend:Jr}},
pointerDownEvent:xW.pointerDownEvent,pointerUpEvent:xW.pointerUpEvent,pointerLeaveEvent:xW.pointerLeaveEvent}))},"Sa");
_.EN.idomCompat=!0;_.pK(_.EN,"yt-lockup-view-model",{props:{data:_.TS,containerLayoutConfig:_.TS,containerType:_.TS,sizing:_.TS,protectBackground:_.TS,typographyBump:_.TS,thumbnailFixedWidth:_.TS,thumbnailTargetWidth:_.TS,force16By9ThumbnailAspectRatio:_.TS,className:_.TS,lockupExperiments:_.TS,elementsPerRow:_.TS}});_.ht(rSe);var jUH=_.Qt(rSe,{callbacks:{onExpandClick:!0}});var uzo=_.XF({buttonViewModel:_.rk}),ieU=_.Qt(YCY);_.ht(YCY);_.ht(o0r);_.ht(Gsk);_.pK(ieU,"yt-video-attribute-view-model",{props:{data:_.TS,className:_.TS}});var hn=function(){var F=_.n.apply(this,arguments)||this;F.useHighlightStyling=_.c("web_enable_deeper_metadata_highlight_styling");F.isSearch=!1;F.JSC$12948_lastScrollContainerWidth=NaN;F.pageLoadingFromNavigation=!1;F.currentIndex=0;F.supportComponentResize=!1;return F};
_.k(hn,_.n);_.N=hn.prototype;
_.N.configureRendererStamper=function(){return{shownItems:{id:"items",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-horizontal-card-list-renderer lockup",containerType:4,sizing:"COMPACT"}},searchRefinementCardRenderer:"ytd-search-refinement-card-renderer",compactChannelRecommendationCardRenderer:"ytd-compact-channel-recommendation-card-renderer",videoCardRenderer:"ytd-grid-video-renderer",gameCardRenderer:"ytd-game-card-renderer",miniGameCardViewModel:"ytd-mini-game-card-view-model",mediaUpsellRenderer:"ytd-media-upsell-renderer",
infoPanelContentRenderer:{component:"ytd-info-panel-content-renderer",params:{showVerticalDividers:!0}},previewCardRenderer:{component:"ytd-preview-card-renderer",properties:{isSearch:"[[isSearch]]"}},macroMarkersListItemRenderer:{component:"ytd-macro-markers-list-item-renderer",properties:{useCustomColors:"[[useCustomColors]]"}},placeDataViewModel:"place-data-view-model",videoAttributeViewModel:{component:"yt-video-attribute-view-model",properties:{className:"[[is]]"}}}},"data.header":{id:"header",
mapping:{titleAndButtonListHeaderRenderer:"ytd-title-and-button-list-header-renderer",richListHeaderRenderer:{component:"ytd-rich-list-header-renderer",properties:{hideNavigationButton:"[[hideNavigationButton]]",isModernSd:"[[modernChapters]]"}}}},"data.sortFilter":{id:"sort-filter",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}},"data.button":{id:"header-button",mapping:{buttonRenderer:"ytd-button-renderer",menuRenderer:"ytd-menu-renderer"}},"data.previousButton":{id:"left-arrow-button",
mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundPrevClick]]"},attributes:{arrow:!0}}},initialRenderPriority:0,waitForSignal:"eocs"},"data.nextButton":{id:"right-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundNextClick]]"},attributes:{arrow:!0}}}},"data.footerButton":{id:"footer-section",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}}},dismissedRenderer:{id:"dismissed",
mapping:{notificationMultiActionRenderer:{component:"ytd-notification-multi-action-renderer",params:{shelfDismissal:!0}}}}}};
_.N.attached=function(){document.addEventListener("yt-page-type-changed",_.UO(this,this.onPageChange))};
_.N.detached=function(){document.removeEventListener("yt-page-type-changed",_.UO(this,this.onPageChange))};
_.N.getItemsPath=function(){return"data.cards"};
_.N.onIronResize=function(){this.updateListStyles()};
_.N.dataChanged=function(){this.updateListStyles();this.supportComponentResize=!!this.centerItems;var F;this.ytdHorizontalListBehavior.initialStartIndex=(this==null?void 0:(F=this.data)==null?void 0:F.scrollToIndex)||0;this.ytdHorizontalListBehavior.reset();this.ytdHorizontalListBehavior.centerListItems=_.c("problem_walkthrough_sd")&&!!this.centerItems};
_.N.computeCardListStyle=function(F){return F||null};
_.N.computeEmpty=function(F){return!this.get("cards.length",F)};
_.N.computeThumbnailStyle=function(F){return this.get("header.richListHeaderRenderer.channelThumbnail.channelThumbnailWithLinkRenderer.style",F)||null};
_.N.computeHasSubtitle=function(F){return!!this.get("header.richListHeaderRenderer.subtitle",F)};
_.N.computeInitialCountNumber=function(F){return this.hasSquareMiniApp&&F==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?12:this.hasSkinnyWidthPortraitMiniApp&&F==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?7:F==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?6:F==="HORIZONTAL_CARD_LIST_STYLE_TYPE_INLINE_RECOMMENDATIONS"?8:F==="HORIZONTAL_CARD_LIST_STYLE_TYPE_NARROW_SHELF"?10:this.isSearch&&F==="HORIZONTAL_CARD_LIST_STYLE_TYPE_ENGAGEMENT_PANEL_SECTION"?7:this.inlineStructuredDescription?
8:4};
_.N.computeUseFloorScrolling=function(F){return F==="HORIZONTAL_CARD_LIST_STYLE_TYPE_RELATED_CHANNELS"||this.hasSquareMiniApp};
_.N.computeHasGameCard=function(F){return(F=this.get("cards",F))?F.some(function(W){return W.gameCardRenderer}):!1};
_.N.computeCenterHeaderTitle=function(F){return!(F==null||!F.centerHeaderTitle)};
_.N.computeHasPortraitMiniApp=function(F){return(F=F==null?void 0:F.cards)?F.some(function(W){return W.miniGameCardViewModel&&W.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_PORTRAIT"}):!1};
_.N.computeHasSquareMiniApp=function(F){return(F=F==null?void 0:F.cards)?F.some(function(W){return W.miniGameCardViewModel&&W.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_SQUARE"}):!1};
_.N.computeHasSkinnyWidthPortraitMiniApp=function(F){return(F=F==null?void 0:F.cards)?F.some(function(W){return W.miniGameCardViewModel&&W.miniGameCardViewModel.width===135}):!1};
_.N.computeCenterItems=function(F){return!!F};
_.N.computeHasInfoPanel=function(F){var W;return F==null?void 0:(W=F.cards)==null?void 0:W.some(function(E){return E.infoPanelContentRenderer})};
_.N.handleKeyDown=function(){this.ytdHorizontalListBehavior.fillRemainingListItems();this.ytRendererBehavior.markDirty()};
_.N.getItemByIndex=function(F){var W=this.items.children;return W&&W.length>F?W[F]:void 0};
_.N.onPageChange=function(){var F=this;this.pageLoadingFromNavigation=!0;_.P0.addJob(function(){F.pageLoadingFromNavigation=!1;_.Nc(F.hostElement,"yt-terminate-video-preview-action")},8)};
_.N.updateListStyles=function(){if(_.c("problem_walkthrough_sd")&&this.JSC$12948_scrollContainer!==void 0){var F=this.JSC$12948_scrollContainer.clientWidth;F!==this.JSC$12948_lastScrollContainerWidth&&(this.JSC$12948_lastScrollContainerWidth=F,_.V9(this.hostElement,{"--ytd-horizontal-card-list-item-width":Math.min(F*.8,415)+"px"}),_.hF(this.hostElement,"iron-resize"))}};
_.Sn.Object.defineProperties(hn.prototype,{hideNavigationButton:{configurable:!0,enumerable:!0,get:function(){return!(!this.inlineStructuredDescription||!_.c("sd_horizontal_list_show_nav_killswitch"))}},
modernChapters:{configurable:!0,enumerable:!0,get:function(){var F,W,E;return _.c("kevlar_modern_sd")&&!!((F=this.data)==null?0:(W=F.cards)==null?0:(E=W[0])==null?0:E.macroMarkersListItemRenderer)}},
hasVideoAttributeViewModels:{configurable:!0,enumerable:!0,get:function(){var F,W,E;return!!((F=this.data)==null?0:(W=F.cards)==null?0:(E=W[0])==null?0:E.videoAttributeViewModel)}},
modernInfoPanels:{configurable:!0,enumerable:!0,get:function(){var F,W,E;return _.c("enable_desktop_amsterdam_info_panels")&&!!((F=this.data)==null?0:(W=F.cards)==null?0:(E=W[0])==null?0:E.infoPanelContentRenderer)}}});
hn.prototype.dataChanged=hn.prototype.dataChanged;hn.prototype.onIronResize=hn.prototype.onIronResize;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],hn.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],hn.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.EL.YtdHorizontalListBehavior),_.Y("design:type",Object)],hn.prototype,"ytdHorizontalListBehavior",void 0);
_.T([_.J(_.O9),_.Y("design:type",Object)],hn.prototype,"ytdDismissibleItemBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],hn.prototype,"data",void 0);_.T([_.O({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],hn.prototype,"useCustomColors",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],hn.prototype,"useHighlightStyling",void 0);
_.T([_.O({reflectToAttribute:!0,computed:"computeCardListStyle(data.style.type)"}),_.Y("design:type",Object)],hn.prototype,"cardListStyle",void 0);_.T([_.O({value:!0,reflectToAttribute:!0,computed:"computeEmpty(data)"}),_.Y("design:type",Boolean)],hn.prototype,"empty",void 0);_.T([_.O({reflectToAttribute:!0,computed:"computeHasSubtitle(data)"}),_.Y("design:type",Boolean)],hn.prototype,"hasSubtitle",void 0);
_.T([_.O({reflectToAttribute:!0,computed:"computeThumbnailStyle(data)"}),_.Y("design:type",Boolean)],hn.prototype,"thumbnailStyle",void 0);_.T([_.O({readOnly:!0,reflectToAttribute:!0,computed:"computeHasGameCard(data)"}),_.Y("design:type",Boolean)],hn.prototype,"hasGameCard",void 0);_.T([_.O({readOnly:!0,reflectToAttribute:!0,computed:"computeCenterHeaderTitle(data)"}),_.Y("design:type",Boolean)],hn.prototype,"centerHeaderTitle",void 0);
_.T([_.O({readOnly:!0,reflectToAttribute:!0,computed:"computeHasPortraitMiniApp(data)"}),_.Y("design:type",Boolean)],hn.prototype,"hasPortraitMiniApp",void 0);_.T([_.O({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSquareMiniApp(data)"}),_.Y("design:type",Boolean)],hn.prototype,"hasSquareMiniApp",void 0);_.T([_.O({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSkinnyWidthPortraitMiniApp(data)"}),_.Y("design:type",Boolean)],hn.prototype,"hasSkinnyWidthPortraitMiniApp",void 0);
_.T([_.O({readOnly:!0,reflectToAttribute:!0,computed:"computeHasInfoPanel(data)"}),_.Y("design:type",Boolean)],hn.prototype,"hasInfoPanel",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],hn.prototype,"isSearch",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],hn.prototype,"inlineStructuredDescription",void 0);_.T([_.gQ("#scroll-container"),_.Y("design:type",HTMLDivElement)],hn.prototype,"JSC$12948_scrollContainer",void 0);
_.T([_.O({computed:"computeInitialCountNumber(data.style.type)"}),_.Y("design:type",Number)],hn.prototype,"initialCount",void 0);_.T([_.O({computed:"computeUseFloorScrolling(data.style.type)"}),_.Y("design:type",Boolean)],hn.prototype,"useFloorScrolling",void 0);_.T([_.O({reflectToAttribute:!0,computed:"computeCenterItems(data.centerItems)"}),_.Y("design:type",Boolean)],hn.prototype,"centerItems",void 0);_.T([_.O(),_.Y("design:type",Object)],hn.prototype,"pageLoadingFromNavigation",void 0);
_.T([_.O(),_.Y("design:type",Object)],hn.prototype,"currentIndex",void 0);_.T([_.O(),_.Y("design:type",Number)],hn.prototype,"scrollCount",void 0);_.T([_.O(),_.Y("design:type",Object)],hn.prototype,"supportComponentResize",void 0);_.T([_.gQ("#items"),_.Y("design:type",HTMLDivElement)],hn.prototype,"items",void 0);_.T([_.R4("iron-resize"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],hn.prototype,"onIronResize",null);
_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],hn.prototype,"dataChanged",null);_.T([_.O({reflectToAttribute:!0}),_.a("inlineStructuredDescription"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],hn.prototype,"hideNavigationButton",null);_.T([_.O({reflectToAttribute:!0}),_.a("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],hn.prototype,"modernChapters",null);
_.T([_.O({reflectToAttribute:!0}),_.a("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],hn.prototype,"hasVideoAttributeViewModels",null);_.T([_.O({reflectToAttribute:!0}),_.a("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],hn.prototype,"modernInfoPanels",null);hn=_.T([_.y({disableElementRegistration:!0,is:"ytd-horizontal-card-list-renderer"})],hn);
_.r(hn,"ytd-horizontal-card-list-renderer",function(){if(OAM!==void 0)return OAM;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-horizontal-card-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-horizontal-card-list-renderer">\n<div id="header-container" class="style-scope ytd-horizontal-card-list-renderer">\n  <h2 id="header" hidden$="[[!data.header]]" class="style-scope ytd-horizontal-card-list-renderer"></h2>\n  <div id="sort-filter" class="style-scope ytd-horizontal-card-list-renderer"></div>\n  <div id="header-button" class="style-scope ytd-horizontal-card-list-renderer"></div>\n</div>\n<div id="shelf-container" class="style-scope ytd-horizontal-card-list-renderer">\n  <div id="left-arrow-container" class="arrow-container style-scope ytd-horizontal-card-list-renderer" hidden="[[atStart]]">\n    <div id="left-arrow" class="arrow center-aligned style-scope ytd-horizontal-card-list-renderer" on-click="prevClick_" hidden="[[data.previousButton]]">\n       <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-horizontal-card-list-renderer"></yt-icon>\n    </div>\n    <div id="left-arrow-button" hidden="[[!data.previousButton]]" class="style-scope ytd-horizontal-card-list-renderer"></div>\n  </div>\n  <div id="scroll-container" on-keydown="handleKeyDown" class="style-scope ytd-horizontal-card-list-renderer">\n    <div id="items" class="style-scope ytd-horizontal-card-list-renderer"></div>\n  </div>\n  <div id="right-arrow-container" class="arrow-container style-scope ytd-horizontal-card-list-renderer" hidden="[[atEnd]]">\n    <div id="right-arrow" class="arrow center-aligned style-scope ytd-horizontal-card-list-renderer" on-click="nextClick_" hidden="[[data.nextButton]]">\n       <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-horizontal-card-list-renderer"></yt-icon>\n    </div>\n    <div id="right-arrow-button" hidden="[[!data.nextButton]]" class="style-scope ytd-horizontal-card-list-renderer"></div>\n  </div>\n</div>\n<div id="footer-section" hidden="[[!data.footerButton]]" class="style-scope ytd-horizontal-card-list-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-horizontal-card-list-renderer"></div>');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return OAM=F},{mode:_.E6("kevlar_poly_si_batch_j072")?1:2});_.ht(p1w);var rse=_.GK(function(F){var W=F.data;var E={};return _.z("video-summary-content-view-model",{class:_.ec("video-summary-content-view-model-wiz",F.className,(E["video-summary-content-view-model-wiz--is-search"]=F.isSearch,E))},_.z(_.xF,{each:function(){var h=[],d=W().paragraphs;if(d==null||!d.length)return[];for(var V=0;V<d.length;V++){var R=_.D(d[V],SCk),M=void 0;V>0&&(M=_.D(d[V-1],SCk));M&&!!M.marker===!!R.marker?h[h.length-1].paragraphs.push(R):h.push({isList:!!R.marker,paragraphs:[R]})}return h},
keyBy:"INDEX"},function(h){return _.z(_.v,{cond:function(){return h().isList},
then:function(){return _.z("ul",{class:"video-summary-content-view-model-wiz__list"},_.z(_.xF,{each:function(){return h().paragraphs},
keyBy:"INDEX"},function(d){return _.z("li",{class:"video-summary-content-view-model-wiz__list-item"},_.z(_.Ab,{text:function(){return d().text}}))}))},
else:function(){return _.z(_.xF,{each:function(){return h().paragraphs},
keyBy:"INDEX"},function(d){return _.z("p",{class:"video-summary-content-view-model-wiz__paragraph"},_.z(_.Ab,{text:function(){return d().text}}))})}})}),_.z(_.v,{cond:function(){return!!_.D(W().likeButtonViewModel,nx)&&!!_.D(W().dislikeButtonViewModel,ya)},
then:function(){return _.z("div",{class:"video-summary-content-view-model-wiz__bottomButtonsContainer"},_.z("div",{class:"video-summary-content-view-model-wiz__likeButton"},_.z(_.H3,{data:function(){return _.D(W().likeButtonViewModel,nx)},
disableIconAnimation:!0})),_.z(_.XJ,{data:function(){return _.D(W().dislikeButtonViewModel,ya)}}))}}))},"Ta"),TFc=_.c("web_enable_sink_video_summary_content_view_model")?rse:p1w,omu=_.c("web_enable_sink_video_summary_content_view_model")?rse:_.Qt(p1w);
rse.idomCompat=!0;_.c("web_enable_sink_video_summary_content_view_model")?_.pK(TFc,"video-summary-content-view-model",{props:{data:_.TS,isSearch:_.TS,className:_.TS}}):_.Nj(TFc,"video-summary-content-view-model",{propNames:["data","isSearch","className"]});var dq=function(){var F=_.n.apply(this,arguments)||this;var W,E;F.isExpanded=(E=(W=F.data)==null?void 0:W.isExpanded)!=null?E:!1;F.disableExpand=!1;F.showProminentLabel=!1;F.showRightSideLabel=!0;F.toggleExpandableContent=function(h){F.disableExpand||(h.stopPropagation(),_.pQ(_.TB(h),F.hostElement,["info","expanded-subtitle"])||(F.isExpanded=!F.isExpanded,F.ytRendererBehavior.logExplicitClick(F.data),F.JSC$12961_cardList&&!_.c("expandable_metadata_a11y_fix_ks")&&_.wT(F,function(){_.Y7(F.hostElement)})))};
F.useSquareThumbnail=!1;F.startX=0;return F};
_.k(dq,_.n);_.N=dq.prototype;_.N.computeUseSquareThumbnail=function(){var F;return(F=this.data)==null?void 0:F.useSquareThumbnail};
_.N.configureRendererStamper=function(){return{"data.expandedContent":{id:"content",mapping:{horizontalCardListRenderer:{component:"ytd-horizontal-card-list-renderer",properties:{isSearch:"[[isSearch]]",useCustomColors:"[[useCustomColors]]"}},horizontalListRenderer:{component:"yt-horizontal-list-renderer",properties:{isSearch:"[[isSearch]]"},params:{isExpandableContent:!0}},videoSummaryContentViewModel:{component:"video-summary-content-view-model",params:{isExpandableContent:!0},properties:{isSearch:"[[isSearch]]"}},
lockupViewModel:{component:"yt-lockup-view-model",params:{isExpandableContent:!0,className:"ytd-expandable-metadata-renderer lockup",thumbnailFixedWidth:"168px",containerType:3,sizing:"COMPACT"}}}},"data.expandButton":{id:"expand",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-click":"[[toggleExpandableContent]]"}}}},"data.collapseButton":{id:"collapse",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-click":"[[toggleExpandableContent]]"}}}},"data.infoButton":{id:"info",
mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.expandedMenuFooter":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}}}};
_.N.dataChanged=function(){if(this.data){var F,W;this.isExpanded=(W=(F=this.data)==null?void 0:F.isExpanded)!=null?W:!1;var E,h,d,V;if(F=this.isDarkTheme()?(E=this.data)==null?void 0:(h=E.colorData)==null?void 0:h.darkColorPalette:(d=this.data)==null?void 0:(V=d.colorData)==null?void 0:V.lightColorPalette){var R,M;if((R=this.data)==null?0:(M=R.colorData)==null?0:M.vibrantColorPalette)F.section1Color=this.data.colorData.vibrantColorPalette.section1Color,_.ZR(this.hostElement,F)}}};
_.N.isExpandedChanged=function(){this.isExpanded&&this.JSC$12961_cardList&&_.hF(this.JSC$12961_cardList,"iron-resize")};
_.N.computeIsExpanded=function(F){return!!F.isExpanded};
_.N.computeShowProminentLabel=function(F,W){var E;return!!(F==null?0:(E=F.header)==null?0:E.showLeadingCollapsedLabel)&&!W};
_.N.computeShowRightSideLabel=function(F,W){var E;return!(F==null?0:(E=F.header)==null?0:E.showLeadingCollapsedLabel)&&!W};
_.N.captureContentClick=function(F){if(!this.disableExpand)if(_.c("expandable_metadata_fix_killswitch")){var W=F.target;_.R6_(W,"ytd-macro-markers-list-item-renderer")||F.stopPropagation();(W==null?void 0:W.id)==="scroll-container"&&(this.isExpanded=!this.isExpanded)}else _.pQ(_.TB(F),this.hostElement,["items"])||_.Sc(_.TB(F),this.hostElement,["BUTTON"])||(this.isExpanded=!this.isExpanded)};
_.N.timestampClick=function(F){F.stopPropagation();var W,E;(F=(W=this.data)==null?void 0:(E=W.header)==null?void 0:E.jumpToTimestampEndpoint)&&this.ytComponentBehavior.resolveCommand(F)};
_.N.onDown=function(F){F.stopPropagation();this.startX=F.detail?F.detail.x:0};
_.N.onUp=function(F){this.skipKeyInteraction(F)&&F.stopPropagation()};
_.N.skipKeyInteraction=function(F){var W=F.target;if((W==null?void 0:W.id)==="scroll-container"||(W==null?void 0:W.id)==="items"||F.detail&&F.detail.x!==this.startX)return!0;F=_.TB(F);F=_.U(F);for(W=F.next();!W.done;W=F.next()){W=W.value;if(W===this.hostElement)break;if(W.hasAttribute&&W.hasAttribute("skip-key-interaction"))return!0}return!1};
_.N.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.Sn.Object.defineProperties(dq.prototype,{hasVideoSummary:{configurable:!0,enumerable:!0,get:function(){var F;return!!_.D((F=this.data)==null?void 0:F.expandedContent,gZc)}},
hasLockupViewModel:{configurable:!0,enumerable:!0,get:function(){var F;return!!_.D((F=this.data)==null?void 0:F.expandedContent,_.dI_)}},
useCustomColors:{configurable:!0,enumerable:!0,get:function(){var F,W;return!((F=this.data)==null||!F.useCustomColors)&&!((W=this.data)==null||!W.colorData)&&!this.isWatch}},
showInfoButton:{configurable:!0,enumerable:!0,get:function(){var F;return!((F=this.data)==null||!F.infoButton)&&!!this.isExpanded}},
showTimestamp:{configurable:!0,enumerable:!0,get:function(){var F,W;return!!((F=this.data)==null?0:(W=F.header)==null?0:W.collapsedJumpToTimestamp)&&!this.isExpanded}},
showExpandedSubtitle:{configurable:!0,enumerable:!0,get:function(){var F,W;return!!((F=this.data)==null?0:(W=F.header)==null?0:W.expandedSubtitle)&&this.isExpanded}},
showThumbnail:{configurable:!0,enumerable:!0,get:function(){var F,W;return!!((F=this.data)==null?0:(W=F.header)==null?0:W.collapsedThumbnail)&&!this.isExpanded}},
useVppShoppingDestinationStyle:{configurable:!0,enumerable:!0,get:function(){var F;return((F=this.data)==null?void 0:F.style)==="EXPANDABLE_METADATA_STYLE_VPP_SHOPPING_DESTINATION"}}});
dq.prototype.onUp=dq.prototype.onUp;dq.prototype.onDown=dq.prototype.onDown;dq.prototype.isExpandedChanged=dq.prototype.isExpandedChanged;dq.prototype.dataChanged=dq.prototype.dataChanged;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],dq.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],dq.prototype,"ytRendererstamperBehavior",void 0);
_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],dq.prototype,"ytComponentBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],dq.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],dq.prototype,"isExpanded",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],dq.prototype,"disableExpand",void 0);_.T([_.O({value:!1}),_.Y("design:type",Boolean)],dq.prototype,"isSearch",void 0);
_.T([_.O({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],dq.prototype,"isWatch",void 0);_.T([_.O({reflectToAttribute:!0,computed:"computeShowProminentLabel(data, isExpanded)"}),_.Y("design:type",Object)],dq.prototype,"showProminentLabel",void 0);_.T([_.O({reflectToAttribute:!0,computed:"computeShowRightSideLabel(data, isExpanded)"}),_.Y("design:type",Object)],dq.prototype,"showRightSideLabel",void 0);
_.T([_.O({value:!1,reflectToAttribute:!0}),_.a("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],dq.prototype,"hasVideoSummary",null);_.T([_.O({value:!1,reflectToAttribute:!0}),_.a("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],dq.prototype,"hasLockupViewModel",null);_.T([_.O({reflectToAttribute:!0}),_.a("data","isWatch"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],dq.prototype,"useCustomColors",null);
_.T([_.O({reflectToAttribute:!0}),_.a("data","isExpanded"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],dq.prototype,"showInfoButton",null);_.T([_.a("data","isExpanded"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],dq.prototype,"showTimestamp",null);_.T([_.a("data","isExpanded"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],dq.prototype,"showExpandedSubtitle",null);
_.T([_.a("data","isExpanded"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],dq.prototype,"showThumbnail",null);_.T([_.O({reflectToAttribute:!0}),_.a("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],dq.prototype,"useVppShoppingDestinationStyle",null);_.T([_.O(),_.Y("design:type",Object)],dq.prototype,"toggleExpandableContent",void 0);_.T([_.gQ("ytd-horizontal-card-list-renderer"),_.Y("design:type",Object)],dq.prototype,"JSC$12961_cardList",void 0);
_.T([_.O({reflectToAttribute:!0,computed:"computeUseSquareThumbnail(data.useSquareThumbnail)"}),_.Y("design:type",Object)],dq.prototype,"useSquareThumbnail",void 0);_.T([_.Cz("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],dq.prototype,"dataChanged",null);_.T([_.ea("isExpanded"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],dq.prototype,"isExpandedChanged",null);
_.T([_.R4("down"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],dq.prototype,"onDown",null);_.T([_.R4("up"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],dq.prototype,"onUp",null);dq=_.T([_.y({is:"ytd-expandable-metadata-renderer",disableElementRegistration:!0})],dq);
_.r(dq,"ytd-expandable-metadata-renderer",function(){if(ypz!==void 0)return ypz;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expandable-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" on-click="toggleExpandableContent" skip-key-interaction="" class="style-scope ytd-expandable-metadata-renderer">\n  <div id="left-section" class="style-scope ytd-expandable-metadata-renderer">\n    <div id="thumbnail" hidden="[[!showThumbnail]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-img-shadow object-fit="FILL" thumbnail="[[data.header.collapsedThumbnail]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-img-shadow>\n    </div>\n    <div id="prominent-collapsed-label" hidden="[[!showProminentLabel]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string id="prominent-label-text" text="[[data.header.collapsedLabel]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="timestamp" hidden="[[!showTimestamp]]" raised="" on-click="timestampClick" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string text="[[data.header.collapsedJumpToTimestamp]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="collapsed-title" hidden="[[isExpanded]]" role="button" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string text="[[data.header.collapsedTitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="expanded-title-subtitle-group" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-icon id="expanded-title-icon" disable-upgrade$="[[!data.header.expandedTitleIcon.iconType]]" hidden="[[!data.header.expandedTitleIcon.iconType]]" icon="[[data.header.expandedTitleIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-icon>\n      <div id="expanded-title-subtitle-text" class="style-scope ytd-expandable-metadata-renderer">\n        <div id="expanded-title" class="style-scope ytd-expandable-metadata-renderer">\n          <yt-formatted-string text="[[data.header.expandedTitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n        </div>\n        <div id="expanded-subtitle" hidden="[[!showExpandedSubtitle]]" class="style-scope ytd-expandable-metadata-renderer">\n          <a class="yt-simple-endpoint style-scope ytd-expandable-metadata-renderer" href$="[[computeHref_(data.header.expandedSubtitleTapCommand)]]" data="[[data.header.expandedSubtitleTapCommand]]">\n            <yt-formatted-string text="[[data.header.expandedSubtitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n            <yt-icon disable-upgrade$="[[!data.header.expandedSubtitleTrailingIcon.iconType]]" hidden="[[!data.header.expandedSubtitleTrailingIcon.iconType]]" icon="[[data.header.expandedSubtitleTrailingIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n            </yt-icon>\n          </a>\n        </div>\n      </div>\n    </div>\n  </div>\n  <div id="right-section" class="style-scope ytd-expandable-metadata-renderer">\n    <div id="info" hidden="[[!showInfoButton]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n    <div id="collapsed-label" hidden="[[!showRightSideLabel]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-icon disable-upgrade$="[[!data.header.collapsedLabelIcon.iconType]]" hidden="[[!data.header.collapsedLabelIcon.iconType]]" icon="[[data.header.collapsedLabelIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-icon>\n      <yt-formatted-string text="[[data.header.collapsedLabel]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="expand" hidden="[[isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n    <div id="collapse" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n  </div>\n</div>\n<div id="content" on-click="captureContentClick" class="style-scope ytd-expandable-metadata-renderer"></div>\n<div id="menu" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return ypz=F},{mode:1});var G6B,Yoi=function(){if(G6B!==void 0)return G6B;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-video-renderer">\n  <ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" use-untranslated-navigation-endpoint="[[hideTranslation]]" width="[[computeThumbnailWidth(isBackstageVideo, isPostCompactVideo, useSearchUi, useBiggerThumbs, biggerThumbsStyle, videoStyle)]]" class="style-scope ytd-video-renderer">\n  </ytd-thumbnail>\n  <div class="text-wrapper style-scope ytd-video-renderer" on-click="onTextWrapperClick">\n    <div id="meta" class="style-scope ytd-video-renderer">\n      <div id="title-wrapper" class="style-scope ytd-video-renderer">\n        <h3 class="title-and-badge style-scope ytd-video-renderer">\n          <ytd-badge-supported-renderer collection-truncate="" hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-video-renderer">\n          </ytd-badge-supported-renderer>\n          <a id="video-title" class="yt-simple-endpoint style-scope ytd-video-renderer" aria-label$="[[data.title.accessibility.accessibilityData.label]]" href$="[[computeHref_(computedNavigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" data="[[computedNavigationEndpoint]]">\n            <yt-icon id="inline-title-icon" hidden="[[hideInlineTitleIcon(hideTranslation, inlineTitleIcon)]]" icon="[[inlineTitleIcon]]" class="style-scope ytd-video-renderer">\n            </yt-icon>\n            <yt-formatted-string text="[[computeTitleText(hideTranslation, data.title, data.untranslatedTitle)]]" class="style-scope ytd-video-renderer">\n            </yt-formatted-string>\n          </a>\n        </h3>\n        <div id="menu" class="style-scope ytd-video-renderer"></div>\n      </div>\n      <ytd-video-meta-block data="[[data]]" no-byline="[[shouldShowChannelInfo]]" truncate-metadata-line="[[isRichGridVideoPost]]" class="style-scope ytd-video-renderer">\n      </ytd-video-meta-block>\n    </div>\n    <div id="channel-info" hidden="[[!shouldShowChannelInfo]]" class="style-scope ytd-video-renderer">\n      <a id="channel-thumbnail" hidden="[[!shouldShowChannelThumbnail]]" aria-label$="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.accessibility.accessibilityData.label]]" href$="[[computeHref_(data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.navigationEndpoint)]]" class="style-scope ytd-video-renderer">\n        <yt-img-shadow thumbnail="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.thumbnail]]" width="24" class="style-scope ytd-video-renderer">\n        </yt-img-shadow>\n      </a>\n      <div id="avatar" hidden="[[!useAvatar]]" class="style-scope ytd-video-renderer"></div>\n      <ytd-channel-name id="channel-name" class="long-byline style-scope ytd-video-renderer" badges="[[data.ownerBadges]]" channel-name="[[data.longBylineText]]" wrap-text="true">\n      </ytd-channel-name>\n    </div>\n    <yt-formatted-string id="description-text" hidden="[[!data.descriptionSnippet]]" text="[[computeDescriptionSnippet(hideTranslation, data.descriptionSnippet, data.untranslatedDescriptionSnippet)]]" class="style-scope ytd-video-renderer">\n    </yt-formatted-string>\n    <template is="dom-repeat" items="[[data.detailedMetadataSnippets]]" hidden="[[!data.detailedMetadataSnippets]]" class="style-scope ytd-video-renderer">\n      <div class$="[[getMetadataSnippetContainerClass(item.maxOneLine)]] style-scope ytd-video-renderer">\n        <a class="yt-simple-endpoint metadata-snippet-timestamp style-scope ytd-video-renderer" aria-label$="[[item.snippetTimestamp.accessibility.accessibilityData.label]]" hidden="[[!item.snippetTimestamp]]" href$="[[computeHref_(item.timestampEndpoint)]]" data="[[item.timestampEndpoint]]">\n          <span id="time" class="style-scope ytd-video-renderer">[[getSimpleString(item.snippetTimestamp)]]</span>\n          <yt-formatted-string class="metadata-snippet-text-navigation style-scope ytd-video-renderer" text="[[item.snippetText]]">\n          </yt-formatted-string>\n        </a>\n        <yt-formatted-string class="metadata-snippet-text style-scope ytd-video-renderer" hidden="[[item.snippetTimestamp]]" text="[[computeSnippetText(hideTranslation, item.snippetText, item.untranslatedSnippetText)]]">\n        </yt-formatted-string>\n        <tp-yt-paper-tooltip class="style-scope ytd-video-renderer">[[getSimpleString(item.snippetHoverText)]]</tp-yt-paper-tooltip>\n      </div>\n    </template>\n    <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" hidden-badge-groups="[[hiddenBadgeGroups]]" class="style-scope ytd-video-renderer">\n    </ytd-badge-supported-renderer>\n    <div id="expandable-metadata" class="style-scope ytd-video-renderer"></div>\n    <div id="buttons" class="style-scope ytd-video-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-video-renderer"></div>\n<yt-interaction id="interaction" class="extended style-scope ytd-video-renderer"></yt-interaction>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return G6B=F};_.pK(_.Lp,"yt-avatar-stack-view-model",{props:{className:_.TS,data:_.TS,overrides:_.TS,isOverlay:_.TS,useMediumText:_.TS,decorations:_.TS,hideAvatar:_.TS}});_.Hr("itemSectionRenderer","videoRenderer","ytd-video-renderer");var N_=function(){var F=_.n.apply(this,arguments)||this;F.disableExpand=!1;F.shouldShowChannelInfo=!1;F.actionMap={"yt-hide-item-section-videos-by-id-command":"handleHideItemSectionVideosByIdCommand"};return F};
_.k(N_,_.n);_.N=N_.prototype;_.N.computeUseSearchUi=function(){var F,W;return this.isSearch||((F=this.data)==null?void 0:(W=F.style)==null?void 0:W.value)==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.N.computeUseThreeLineTitle=function(){var F;return((F=this.data)==null?void 0:F.maxTitleLines)===3};
_.N.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"},initialRenderPriority:_.c("polymer_video_renderer_defer_menu")&&!aMH?0:void 0},"data.buttons":{id:"buttons",mapping:{toggleButtonRenderer:"ytd-toggle-button-renderer",upcomingEventReminderButtonRenderer:"ytd-upcoming-event-reminder-button-renderer",buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",
notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}},"data.expandableMetadata":{id:"expandable-metadata",mapping:{expandableMetadataRenderer:{component:"ytd-expandable-metadata-renderer",properties:{isSearch:"[[useSearchUi]]",disableExpand:"[[disableExpand]]"}}}},"data.avatar":{id:"avatar",mapping:{avatarStackViewModel:"yt-avatar-stack-view-model"}}}};
_.N.attached=function(){_.Wm(this.hostElement,"blue-links",_.c("kevlar_video_blue_links"));this.updateInlinePreviewHoverListeners()};
_.N.detached=function(){this.clearInlinePreviewHoverListeners()};
_.N.dataChanged=function(){this.isHistory=window.location.pathname.indexOf("/feed/history")!==-1;_.EO(_.Z(this.hostElement).querySelector("#description-text"),"ellipsis-truncate",!!this.data.topStandaloneBadge);var F=this.get("data.buttons.buttonRenderer.serviceEndpoint"),W;F&&((W=_.D(F.commandMetadata,_.aH))==null?0:W.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(F);this.updateInlinePreviewHoverListeners()};
_.N.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$12966_inlinePreviewHoverListener=FY({mediaRenderer:this,lockupElement:this.JSC$12966_dismissibleMedia,thumbnailElement:this.thumbnail})};
_.N.clearInlinePreviewHoverListeners=function(){var F;(F=this.JSC$12966_inlinePreviewHoverListener)==null||Qg(F)};
_.N.onTextWrapperClick=function(F){var W,E,h=this.hideTranslation?(W=this.data)==null?void 0:W.untranslatedNavigationEndpoint:(E=this.data)==null?void 0:E.navigationEndpoint;W=_.pQ(_.TB(F),this.hostElement,["expandable-metadata"]);!h||W&&!_.c("expandable_metadata_fix_killswitch")||_.Sc(_.TB(F),this.hostElement,["A".toString(),"BUTTON".toString()])||_.hF(this.hostElement,"yt-navigate",{endpoint:h})};
_.N.computeThumbnailWidth=function(F,W,E,h,d){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"?500:h?d==="MASSIVE"?600:d==="BIG"?500:d==="MEDIUM"?450:420:E?360:W?128:F?210:246};
_.N.computeUseBiggerThumbs=function(F){return F&&_.c("enable_desktop_search_bigger_thumbs")};
_.N.computeShouldShowChannelInfo=function(){return this.useSearchUi};
_.N.computeVideoStyle=function(){if(_.c("enable_video_style")){var F,W;return(F=this.data)==null?void 0:(W=F.style)==null?void 0:W.value}};
_.N.computeDisableExpand=function(){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.N.handleHideItemSectionVideosByIdCommand=function(F){var W;F=(W=_.D(F,aa_))==null?void 0:W.videoId;this.data&&this.data.videoId===F&&(this.isHidden=!0)};
_.N.getMetadataSnippetContainerClass=function(F){return F?"metadata-snippet-container-one-line":"metadata-snippet-container"};
_.N.computeTitleText=function(F,W,E){return F?E:W};
_.N.computeDescriptionSnippet=function(F,W,E){return F?E:W};
_.N.computeSnippetText=function(F,W,E){return F?E:W};
_.N.computeNavigationEndpoint=function(F,W){return F?W==null?void 0:W.untranslatedNavigationEndpoint:W==null?void 0:W.navigationEndpoint};
_.N.hideInlineTitleIcon=function(F,W){return F||!W};
_.Sn.Object.defineProperties(N_.prototype,{hideTranslation:{configurable:!0,enumerable:!0,get:function(){return this.searchVideoResultEntity?!!this.searchVideoResultEntity.hasOptedOutTranslation:!1}},
hiddenBadgeGroups:{configurable:!0,enumerable:!0,get:function(){if(this.searchVideoResultEntity){var F;return(F=this.searchVideoResultEntity.hiddenBadgeGroups)!=null?F:[]}return[]}},
shouldShowChannelThumbnail:{configurable:!0,enumerable:!0,get:function(){var F,W,E;return!!(this==null?0:(F=this.data)==null?0:(W=F.channelThumbnailSupportedRenderers)==null?0:(E=W.channelThumbnailWithLinkRenderer)==null?0:E.thumbnail)&&!this.useAvatar}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var F;return!!_.D((F=this.data)==null?void 0:F.avatar,NLT)}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var F;return!((F=this.JSC$12966_inlinePreviewHoverListener)==null?0:ZC(F))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
_.Sn.Object.defineProperties(N_,{template:{configurable:!0,enumerable:!0,get:function(){return Yoi()}}});
N_.prototype.dataChanged=N_.prototype.dataChanged;_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],N_.prototype,"ytComponentBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],N_.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],N_.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.O9),_.Y("design:type",Object)],N_.prototype,"ytdDismissibleItemBehavior",void 0);
_.T([_.J(_.rt),_.Y("design:type",Object)],N_.prototype,"ytdLockupBehavior",void 0);_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],N_.prototype,"ytActionHandlerBehavior",void 0);_.T([_.J(_.am),_.Y("design:type",Object)],N_.prototype,"ytdReduxBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],N_.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],N_.prototype,"isBackstageVideo",void 0);
_.T([_.O({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],N_.prototype,"isPostCompactVideo",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],N_.prototype,"isHistory",void 0);_.T([_.O({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],N_.prototype,"isRichGridVideoPost",void 0);_.T([_.O({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],N_.prototype,"isHidden",void 0);
_.T([_.O({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],N_.prototype,"isSearch",void 0);_.T([_.O({reflectToAttribute:!0,value:!1,computed:"computeUseSearchUi(isSearch, data)"}),_.Y("design:type",Boolean)],N_.prototype,"useSearchUi",void 0);_.T([_.O({reflectToAttribute:!0,value:!1,computed:"computeUseThreeLineTitle(data)"}),_.Y("design:type",Boolean)],N_.prototype,"useThreeLineTitle",void 0);
_.T([_.O({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(useSearchUi)"}),_.Y("design:type",Boolean)],N_.prototype,"useBiggerThumbs",void 0);_.T([_.O({reflectToAttribute:!0,computed:"computeVideoStyle(data.style.value)"}),_.Y("design:type",Object)],N_.prototype,"videoStyle",void 0);_.T([_.O({computed:"computeDisableExpand(videoStyle)"}),_.Y("design:type",Object)],N_.prototype,"disableExpand",void 0);
_.T([_.O({computed:"computeShouldShowChannelInfo(useSearchUi)"}),_.Y("design:type",Object)],N_.prototype,"shouldShowChannelInfo",void 0);_.T([_.O({reflectToAttribute:!0,value:function(){return _.N0("desktop_search_bigger_thumbs_style")}}),
_.Y("design:type",String)],N_.prototype,"biggerThumbsStyle",void 0);_.T([_.O({reflectToAttribute:!0,computed:"computeIcon_(data.inlineTitleIcon)"}),_.Y("design:type",String)],N_.prototype,"inlineTitleIcon",void 0);_.T([_.O({computed:"computeNavigationEndpoint(hideTranslation, data)"}),_.Y("design:type",Object)],N_.prototype,"computedNavigationEndpoint",void 0);_.T([_.O({selectorArgs:["data.searchVideoResultEntityKey"],selector:function(F,W){return _.Mn(F.entities,"searchVideoResultEntity",W)}}),
_.Y("design:type",Object)],N_.prototype,"searchVideoResultEntity",void 0);_.T([_.gQ("ytd-thumbnail"),_.Y("design:type",HTMLElement)],N_.prototype,"thumbnail",void 0);_.T([_.gQ("#dismissible"),_.Y("design:type",HTMLElement)],N_.prototype,"JSC$12966_dismissibleMedia",void 0);_.T([_.Cz("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],N_.prototype,"dataChanged",null);
_.T([_.a("searchVideoResultEntity"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],N_.prototype,"hideTranslation",null);_.T([_.a("searchVideoResultEntity"),_.Y("design:type",Array),_.Y("design:paramtypes",[])],N_.prototype,"hiddenBadgeGroups",null);_.T([_.a("data","useAvatar"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],N_.prototype,"shouldShowChannelThumbnail",null);_.T([_.a("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],N_.prototype,"useAvatar",null);
_.T([_.a("lockupIsHovered"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],N_.prototype,"isHovered",null);N_=_.T([_.y({is:"ytd-video-renderer",disableElementRegistration:!0})],N_);_.r(N_,"ytd-video-renderer",function(){return Yoi()},{mode:_.E6("kevlar_poly_si_batch_j047")?1:2});var Vj=function(){var F=_.n.apply(this,arguments)||this;F.editDialog=null;F.roundedContainer=!0;F.isLoading=!1;F.isRichGrid=!1;F.isRichGridRepost=!1;F.reduceSidePaddings=_.c("reduce_side_paddings_in_shelf");F.JSC$12973_spinnerEl=null;return F};
_.k(Vj,_.n);_.N=Vj.prototype;
_.N.configureRendererStamper=function(){return{"data.actionMenu":{id:"action-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.authorCommentBadge":{id:"author-comment-badge",mapping:{authorCommentBadgeRenderer:"ytd-author-comment-badge-renderer"}},"data.sponsorsOnlyBadge":{id:"sponsors-only-badge",mapping:{sponsorsOnlyBadgeRenderer:"ytd-sponsors-only-badge-renderer"}},"data.backstageAttachment":{id:"content-attachment",mapping:{videoRenderer:{component:"ytd-video-renderer",properties:{isPostCompactVideo:"[[usesCompactLockup]]",
isRichGridVideoPost:"[[isRichGrid]]"}},backstageImageRenderer:{component:"ytd-backstage-image-renderer",properties:{surface:"[[data.surface]]"}},playlistRenderer:{component:"ytd-playlist-renderer",properties:{isPostCompactPlaylist:"[[usesCompactLockup]]"}},uploadedVideoRenderer:{component:"ytd-post-uploaded-video-renderer"}}},"data.voteButton":{id:"vote-button",mapping:{buttonRenderer:"ytd-button-renderer"}},editDialog:{id:"edit-dialog",mapping:{backstagePostDialogRenderer:"ytd-backstage-post-dialog-renderer"}},
dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.N.contentTextChanged=function(){this.expander.reset()};
_.N.dataChanged=function(){var F=this;if(this.data){this.isLoading=!1;this.editDialog=null;for(var W=0,E=this.data.actions&&this.data.actions.length;W<E;W++)this.openEditDialog(_.D(this.data.actions[W],h4M));if((W=this.get("actionButtons.commentActionButtonsRenderer.shareButton",this.data))&&(W=this.get("buttonRenderer.hint.hintRenderer.hintId",W))&&W.startsWith("share-post-hint")){var h=this.get("children.dismissible.children.toolbar.children.action-buttons.children.toolbar.children.share-button",
this);if(h){_.d_.getInstance();var d=NX(_.Gr(_.CY("SHARE_POST_EDU_TEXT")),"share-post-edu-displayed","OPEN_POPUP_POSITION_TOPRIGHT");_.P0.addLowPriorityJob(function(){_.Rj(F.hostElement,d,h)})}}}};
_.N.updatePoll=function(F){F>=0?this.actionButtons.reply():this.actionButtons.hideReplyDialog()};
_.N.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$12973_spinnerEl||(this.JSC$12973_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.Z(this.hostElement).appendChild(this.JSC$12973_spinnerEl));this.JSC$12973_spinnerEl&&(this.JSC$12973_spinnerEl.active=this.isLoading)};
_.N.onYtNavigate=function(F){var W=this.get("updateCommentDialogEndpoint",F.detail.endpoint);W&&(this.openEditDialog(W),F.stopPropagation())};
_.N.onYtCommentboxDismiss=function(){this.editDialog=null};
_.N.onYtCommentPollRevert=function(F,W){W&&this.updatePoll(W.selectedChoiceIndex)};
_.N.onYtServiceRequestSent=function(F,W){var E;W.endpoint&&(_.D(W.endpoint,A7_)||_.D(W.endpoint,khX)&&((E=_.D(W.endpoint,khX))==null||!E.clientActions))&&(this.isLoading=!0);if(W.actions)for(F=0;F<W.actions.length;F++)E=W.actions[F],_.D(E,PP)&&(E=this.get("updateBackstagePollAction.selectedChoiceIndex",E),E==void 0&&(E=-1),this.updatePoll(E))};
_.N.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.N.openEditDialog=function(F){F&&F.dialog&&(this.editDialog=F.dialog,F=this.editDialogEl.firstElementChild)&&(F.focus(),F.openDialog&&F.openDialog())};
_.N.computeIsPostHidden=function(F,W){return!!F||W};
_.N.computeSurfaceType=function(F){return F?F.toLowerCase().replace(/_/g,"-"):""};
_.N.computeUsesCompactLockup=function(F){return F==="BACKSTAGE_SURFACE_TYPE_HOME"||F==="BACKSTAGE_SURFACE_TYPE_SEARCH"||F==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||F==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||F==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||F==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.N.computeShowWithoutToolbar=function(F){return!F.actionButtons&&!F.actionMenu};
_.N.computePostAttachment=function(F){if(F.backstageAttachment){if(_.D(F.backstageAttachment,Fyp))return"poll";if(_.D(F.backstageAttachment,l5H))return"quiz";if(_.D(F.backstageAttachment,_.rZ))return"video";if(_.D(F.backstageAttachment,n4T))return"uploaded-videos";if(_.D(F.backstageAttachment,PjH))return F.contentText?"image":"image-only";if(_.D(F.backstageAttachment,a5c))return"playlist"}return"none"};
_.N.computePostTabIndex=function(F){return F?0:-1};
_.N.computeButtonTooltipPosition=function(F){return this.computeUsesCompactLockup(F)?"top":"bottom"};
_.N.computeHasText=function(F){return!(F==null||!F.contentText)};
_.N.onTap=function(F){var W,E;if(((W=this.data)==null?0:W.navigationEndpoint)&&((E=this.data)==null?void 0:E.surface)==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION")this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);else{var h;((h=this.data)==null?0:h.navigationEndpoint)&&!_.Sc(_.TB(F)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"YTD-VIDEO-RENDERER","YTD-PLAYLIST-RENDERER"])&&_.hF(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.Sn.Object.defineProperties(Vj.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var F;return((F=this.data)==null?void 0:F.voteCount)||_.Gr("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var F;return(F=this.data)==null?void 0:F.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.D(this.data.backstageAttachment,Fyp))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.D(this.data.backstageAttachment,n4T))}}});
Vj.prototype.onYtServiceRequestCompleted=Vj.prototype.onYtServiceRequestCompleted;Vj.prototype.onYtServiceRequestSent=Vj.prototype.onYtServiceRequestSent;Vj.prototype.onYtCommentPollRevert=Vj.prototype.onYtCommentPollRevert;Vj.prototype.onYtCommentboxDismiss=Vj.prototype.onYtCommentboxDismiss;Vj.prototype.onYtNavigate=Vj.prototype.onYtNavigate;Vj.prototype.isLoadingChanged=Vj.prototype.isLoadingChanged;Vj.prototype.dataChanged=Vj.prototype.dataChanged;Vj.prototype.contentTextChanged=Vj.prototype.contentTextChanged;
_.T([_.J(_.O9),_.Y("design:type",Object)],Vj.prototype,"ytdDismissibleItemBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Vj.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],Vj.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],Vj.prototype,"ytComponentBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],Vj.prototype,"data",void 0);
_.T([_.O(),_.Y("design:type",Object)],Vj.prototype,"editDialog",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],Vj.prototype,"roundedContainer",void 0);_.T([_.O(),_.Y("design:type",Object)],Vj.prototype,"isLoading",void 0);_.T([_.O({computed:"computeSurfaceType(data.surface)",reflectToAttribute:!0}),_.Y("design:type",String)],Vj.prototype,"surface",void 0);
_.T([_.O({computed:"computeUsesCompactLockup(data.surface)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],Vj.prototype,"usesCompactLockup",void 0);_.T([_.O({computed:"computeShowWithoutToolbar(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],Vj.prototype,"showWithoutToolbar",void 0);_.T([_.O({computed:"computePostAttachment(data)",reflectToAttribute:!0}),_.Y("design:type",String)],Vj.prototype,"attachment",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],Vj.prototype,"isRichGrid",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],Vj.prototype,"isRichGridRepost",void 0);_.T([_.O({reflectToAttribute:!0,value:_.c("use_better_post_dismissals")}),_.Y("design:type",Boolean)],Vj.prototype,"useBetterPostDismissals",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],Vj.prototype,"reduceSidePaddings",void 0);
_.T([_.O({computed:"computeHasText(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],Vj.prototype,"hasText",void 0);_.T([_.gQ("#expander"),_.Y("design:type",Object)],Vj.prototype,"expander",void 0);_.T([_.gQ("#action-buttons"),_.Y("design:type",Object)],Vj.prototype,"actionButtons",void 0);_.T([_.gQ("#edit-dialog"),_.Y("design:type",HTMLElement)],Vj.prototype,"editDialogEl",void 0);
_.T([_.ea("data.contentText"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Vj.prototype,"contentTextChanged",null);_.T([_.Cz("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Vj.prototype,"dataChanged",null);_.T([_.ea("isLoading"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Vj.prototype,"isLoadingChanged",null);
_.T([_.R4("yt-navigate"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Vj.prototype,"onYtNavigate",null);_.T([_.R4("yt-commentbox-dismiss"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Vj.prototype,"onYtCommentboxDismiss",null);_.T([_.R4("yt-comment-poll-revert"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],Vj.prototype,"onYtCommentPollRevert",null);
_.T([_.R4("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.nQ]),_.Y("design:returntype")],Vj.prototype,"onYtServiceRequestSent",null);_.T([_.R4("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.uz]),_.Y("design:returntype")],Vj.prototype,"onYtServiceRequestCompleted",null);_.T([_.a("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Vj.prototype,"voteCount",null);
_.T([_.a("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Vj.prototype,"commentCount",null);_.T([_.a("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Vj.prototype,"hasPoll",null);_.T([_.a("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Vj.prototype,"hasUploadedVideo",null);Vj=_.T([_.y({is:"ytd-post-renderer",disableElementRegistration:!0})],Vj);
_.r(Vj,"ytd-post-renderer",function(){if(REa!==void 0)return REa;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-post-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" role="link" hidden="[[computeIsPostHidden(editDialog, isLoading)]]" tabindex="[[computePostTabIndex(data.navigationEndpoint)]]" on-tap="onTap" class="style-scope ytd-post-renderer">\n  <div id="header" class="style-scope ytd-post-renderer">\n    <div id="author-thumbnail" class="style-scope ytd-post-renderer">\n      <a aria-hidden="true" class="yt-simple-endpoint style-scope ytd-post-renderer" href$="[[computeHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]" tabindex="-1">\n        <yt-img-shadow fit="" height="32" thumbnail="[[data.authorThumbnail]]" width="32" class="style-scope ytd-post-renderer">\n        </yt-img-shadow>\n      </a>\n    </div>\n    <div id="author" class="style-scope ytd-post-renderer">\n      <a id="author-text" class="yt-simple-endpoint style-scope ytd-post-renderer" href$="[[computeHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]" hidden="[[data.authorCommentBadge]]">\n        <span class="style-scope ytd-post-renderer">[[getSimpleString(data.authorText)]]</span>\n      </a>\n      <span id="author-comment-badge" hidden="[[!data.authorCommentBadge]]" class="style-scope ytd-post-renderer"></span>\n    </div>\n    <span id="author-divider" class="style-scope ytd-post-renderer">\u2022</span>\n    <yt-formatted-string id="published-time-text" link-inherit-color="" text="[[data.publishedTimeText]]" class="style-scope ytd-post-renderer">\n    </yt-formatted-string>\n    <span id="sponsors-only-badge" hidden="[[!data.sponsorsOnlyBadge]]" class="style-scope ytd-post-renderer"></span>\n  </div>\n  <div id="body" class="style-scope ytd-post-renderer">\n    <div id="post-text" class="style-scope ytd-post-renderer">\n\n      \n      <ytd-expander id="expander" hidden="[[usesCompactLockup]]" class="style-scope ytd-post-renderer">\n        <yt-formatted-string id="content-text" slot="content" dir="auto" force-default-style="" split-lines="" text="[[data.contentText]]" class="style-scope ytd-post-renderer">\n        </yt-formatted-string>\n        <span class="more-button style-scope ytd-post-renderer" slot="more-button">\n          [[getSimpleString(data.expandButton.buttonRenderer.text)]]\n        </span>\n        <span class="less-button style-scope ytd-post-renderer" slot="less-button">\n          [[getSimpleString(data.collapseButton.buttonRenderer.text)]]\n        </span>\n      </ytd-expander>\n      <yt-formatted-string id="home-content-text" slot="content" hidden="[[!usesCompactLockup]]" split-lines="[[!usesCompactLockup]]" text="[[data.contentText]]" class="style-scope ytd-post-renderer">\n        </yt-formatted-string>\n    </div>\n    <div id="attachments" class="style-scope ytd-post-renderer">\n      <div id="content-attachment" hidden="[[!data.backstageAttachment]]" class="style-scope ytd-post-renderer"></div>\n      \n      <div id="answer-count-text" class="style-scope ytd-post-renderer">\n        [[getSimpleString(data.backstageAttachment.quizRenderer.totalVotes)]]\n      </div>\n      <div id="vote-count-text" class="style-scope ytd-post-renderer">\n        [[getSimpleString(data.backstageAttachment.pollRenderer.totalVotes)]]\n      </div>\n      <div id="vote-button" class="style-scope ytd-post-renderer"></div>\n      <ytd-backstage-poll-renderer id="poll-attachment" aria-label$="[[data.backstageAttachment.pollRenderer.accessibilityData.accessibilityData.label]]" data="[[data.backstageAttachment.pollRenderer]]" disable-upgrade$="[[!hasPoll]]" role="group" class="style-scope ytd-post-renderer">\n      </ytd-backstage-poll-renderer>\n    </div>\n  </div>\n  <div id="toolbar" hidden="[[showWithoutToolbar]]" class="style-scope ytd-post-renderer">\n    <ytd-comment-action-buttons-renderer id="action-buttons" button-tooltip-position="[[computeButtonTooltipPosition(data.surface)]]" comment-count="[[commentCount]]" data="[[data.actionButtons.commentActionButtonsRenderer]]" has-creator-reply="[[hasCreatorReply_]]" hidden="[[!data.actionButtons.commentActionButtonsRenderer]]" use-comment-icon="" vote-count="[[voteCount]]" class="style-scope ytd-post-renderer">\n    </ytd-comment-action-buttons-renderer>\n    <div id="action-menu" class="style-scope ytd-post-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-post-renderer">\n  <div id="dismissed-content" class="style-scope ytd-post-renderer"></div>\n</div>\n<div id="edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-post-renderer"></div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return REa=F},{mode:1});var w4c;var uli;var UN=function(){return _.n.apply(this,arguments)||this};
_.k(UN,_.n);UN.prototype.configureRendererStamper=function(){return{"data.images":{id:"items",mapping:{backstageImageRenderer:{component:"ytd-backstage-image-renderer",properties:{surface:"[[surface]]"}}}}}};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],UN.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],UN.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.EL.YtdHorizontalListBehavior),_.Y("design:type",Object)],UN.prototype,"ytdHorizontalListBehavior",void 0);_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],UN.prototype,"componentBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],UN.prototype,"data",void 0);
_.T([_.O({value:"$.items.children"}),_.Y("design:type",String)],UN.prototype,"itemsPath",void 0);_.T([_.O({value:1}),_.Y("design:type",Number)],UN.prototype,"initialCount",void 0);_.T([_.O(),_.Y("design:type",String)],UN.prototype,"surface",void 0);UN=_.T([_.y({is:"ytd-post-multi-image-renderer",disableElementRegistration:!0})],UN);
_.r(UN,"ytd-post-multi-image-renderer",function(){if(uli!==void 0)return uli;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-post-multi-image-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="shelf-container" class="style-scope ytd-post-multi-image-renderer">\n  <div id="left-arrow-container" class="arrow-container style-scope ytd-post-multi-image-renderer">\n      <div id="left-arrow" class="arrow center-aligned style-scope ytd-post-multi-image-renderer" on-click="prevClick_" hidden="[[atStart]]">\n         <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-post-multi-image-renderer"></yt-icon>\n      </div>\n  </div>\n  <div id="scroll-container" on-keydown="handleKeyDown_" class="style-scope ytd-post-multi-image-renderer">\n    <div id="items" class="style-scope ytd-post-multi-image-renderer"></div>\n  </div>\n  <div id="right-arrow-container" class="arrow-container style-scope ytd-post-multi-image-renderer">\n    <div id="right-arrow" class="arrow center-aligned style-scope ytd-post-multi-image-renderer" on-click="nextClick_" hidden="[[atEnd]]">\n       <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-post-multi-image-renderer"></yt-icon>\n    </div>\n  </div>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return uli=F},{mode:_.E6("kevlar_poly_si_batch_j079")?1:2});var SoX={"data.actionMenu":{id:"action-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.authorCommentBadge":{id:"author-comment-badge",mapping:{authorCommentBadgeRenderer:"ytd-author-comment-badge-renderer"}},"data.sponsorsOnlyBadge":{id:"sponsors-only-badge",mapping:{sponsorsOnlyBadgeRenderer:"ytd-sponsors-only-badge-renderer"}},"data.backstageAttachment":{id:"content-attachment",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isBackstageVideo:!0}},backstageImageRenderer:{component:"ytd-backstage-image-renderer",
properties:{surface:"[[data.surface]]"}},postMultiImageRenderer:{component:"ytd-post-multi-image-renderer",properties:{surface:"[[data.surface]]"}},playlistRenderer:{component:"ytd-playlist-renderer",params:{isBackstagePlaylist:!0}}}},editDialog:{id:"edit-dialog",mapping:{backstagePostDialogRenderer:"ytd-backstage-post-dialog-renderer"}}},R8=function(){var F=_.n.apply(this,arguments)||this;F.hasInlineCommentSection=!1;F.editDialog=null;F.isLoading=!1;F.shouldHideAuthor=!1;F.shouldShowVideoTime=!1;
F.isInEngagementPanel=!1;F.hideBorder=!1;F.usesFullLockup=!1;F.shouldShowMenuInCompactView=!1;F.JSC$12989_spinnerEl=null;F.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return F};
_.k(R8,_.n);_.N=R8.prototype;_.N.configureRendererStamper=function(){return SoX};
_.N.computeIsPollHeaderEnabled=function(F){return(F==null?void 0:F.pollMetadataIcon)!=null};
_.N.getPublishTimeStampString=function(F,W){W=new Date((Number(W)-60*((new Date).getTimezoneOffset()-(new Date(Number(W)*1E3)).getTimezoneOffset()))*1E3);W=(new Tr(10)).format(W);if(F&&F.runs&&F.runs.length)for(var E=0;E<F.runs.length;E++)F.runs[E].text&&(F.runs[E].text=F.runs[E].text.replace("POST_SCHEDULED_TIMESTAMP_PLACEHOLDER",W));return F};
_.N.created=function(){this.JSC$12989_spinnerEl=null};
_.N.contentTextChanged=function(){this.expander.reset()};
_.N.dataChanged=function(){this.isLoading=!1;this.editDialog=null;var F;if((F=this.data)==null?0:F.actions){F=_.U(this.data.actions);for(var W=F.next();!W.done;W=F.next())this.openEditDialog(_.D(W.value,h4M))}};
_.N.handleSignalActionOpenPostCommentDialogAction=function(){_.Z(this.hostElement).querySelector("#action-buttons").reply()};
_.N.updatePoll=function(F,W){W&&this.set("data.pollMetadataVoteCountText",W);this.hasInlineCommentSection&&(F=F>=0,W=_.Z(this.hostElement).querySelector("#action-buttons"),F?W.reply():W.hideReplyDialog())};
_.N.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$12989_spinnerEl||(this.JSC$12989_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.Z(this.hostElement).appendChild(this.JSC$12989_spinnerEl));this.JSC$12989_spinnerEl&&(this.JSC$12989_spinnerEl.active=this.isLoading)};
_.N.onYtNavigate=function(F){var W=this.get("updateCommentDialogEndpoint",F.detail.endpoint);W&&(this.openEditDialog(W),F.stopPropagation())};
_.N.onYtCommentboxDismiss=function(){this.editDialog=null};
_.N.onYtCommentPollRevert=function(F,W){W&&this.updatePoll(W.selectedChoiceIndex,W.totalVotes)};
_.N.onYtServiceRequestSent=function(F,W){F.stopPropagation();F=_.D(W.endpoint,khX);if(_.D(W.endpoint,A7_)||F&&!F.clientActions)this.isLoading=!0;if(W.actions)for(F=0;F<W.actions.length;F++){var E=W.actions[F],h=_.D(E,PP);h&&(E=this.get("updateBackstagePollAction.selectedChoiceIndex",E),E===void 0&&(E=-1),this.updatePoll(E,h.totalVotes))}};
_.N.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.N.openEditDialog=function(F){F&&F.dialog&&(this.editDialog=F.dialog,F=this.editDialogElement.firstElementChild)&&(F.focus(),F.openDialog&&F.openDialog())};
_.N.computeIsBodyHidden=function(F,W){return!!F||W};
_.Sn.Object.defineProperties(R8.prototype,{postTextMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.isInEngagementPanel?10:4}},
pollIcon:{configurable:!0,enumerable:!0,get:function(){var F,W;if((F=this.data)==null?0:(W=F.pollMetadataIcon)==null?0:W.iconType)return _.Vd(this.data.pollMetadataIcon.iconType)}},
voteCount:{configurable:!0,enumerable:!0,get:function(){var F;return((F=this.data)==null?void 0:F.voteCount)||_.Gr("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var F;return(F=this.data)==null?void 0:F.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.D(this.data.backstageAttachment,Fyp))}},
hasQuiz:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.D(this.data.backstageAttachment,l5H))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.D(this.data.backstageAttachment,n4T))}}});
R8.prototype.onYtServiceRequestCompleted=R8.prototype.onYtServiceRequestCompleted;R8.prototype.onYtServiceRequestSent=R8.prototype.onYtServiceRequestSent;R8.prototype.onYtCommentPollRevert=R8.prototype.onYtCommentPollRevert;R8.prototype.onYtCommentboxDismiss=R8.prototype.onYtCommentboxDismiss;R8.prototype.onYtNavigate=R8.prototype.onYtNavigate;R8.prototype.isLoadingChanged=R8.prototype.isLoadingChanged;R8.prototype.dataChanged=R8.prototype.dataChanged;R8.prototype.contentTextChanged=R8.prototype.contentTextChanged;
_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],R8.prototype,"actionHandlerBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],R8.prototype,"rendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],R8.prototype,"rendererstamperBehavior",void 0);_.T([_.gQ("#contentTextExpander"),_.Y("design:type",Object)],R8.prototype,"expander",void 0);
_.T([_.gQ("#edit-dialog"),_.Y("design:type",Element)],R8.prototype,"editDialogElement",void 0);_.T([_.O(),_.Y("design:type",Object)],R8.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Object)],R8.prototype,"hasInlineCommentSection",void 0);_.T([_.O(),_.Y("design:type",Object)],R8.prototype,"editDialog",void 0);_.T([_.O(),_.Y("design:type",Object)],R8.prototype,"isLoading",void 0);
_.T([_.O({computed:"computeIsPollHeaderEnabled(data)"}),_.Y("design:type",Boolean)],R8.prototype,"isPollHeaderEnabled",void 0);_.T([_.O(),_.Y("design:type",Object)],R8.prototype,"shouldHideAuthor",void 0);_.T([_.O(),_.Y("design:type",Object)],R8.prototype,"shouldShowVideoTime",void 0);_.T([_.O(),_.Y("design:type",Object)],R8.prototype,"isInEngagementPanel",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],R8.prototype,"hideBorder",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],R8.prototype,"usesFullLockup",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],R8.prototype,"shouldShowMenuInCompactView",void 0);_.T([_.a("isInEngagementPanel"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],R8.prototype,"postTextMaxLines",null);_.T([_.a("data.icon.iconType"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],R8.prototype,"pollIcon",null);
_.T([_.ea("data.contentText"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],R8.prototype,"contentTextChanged",null);_.T([_.Cz("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],R8.prototype,"dataChanged",null);_.T([_.ea("isLoading"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],R8.prototype,"isLoadingChanged",null);
_.T([_.R4("yt-navigate"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],R8.prototype,"onYtNavigate",null);_.T([_.R4("yt-commentbox-dismiss"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],R8.prototype,"onYtCommentboxDismiss",null);_.T([_.R4("yt-comment-poll-revert"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],R8.prototype,"onYtCommentPollRevert",null);
_.T([_.R4("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.nQ]),_.Y("design:returntype")],R8.prototype,"onYtServiceRequestSent",null);_.T([_.R4("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],R8.prototype,"onYtServiceRequestCompleted",null);_.T([_.a("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],R8.prototype,"voteCount",null);
_.T([_.a("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],R8.prototype,"commentCount",null);_.T([_.a("data.backstageAttachment"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],R8.prototype,"hasPoll",null);_.T([_.a("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],R8.prototype,"hasQuiz",null);_.T([_.a("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],R8.prototype,"hasUploadedVideo",null);
R8=_.T([_.y({is:"ytd-backstage-post-renderer",disableElementRegistration:!0})],R8);
_.r(R8,"ytd-backstage-post-renderer",function(){if(w4c!==void 0)return w4c;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-post-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="body" hidden="[[computeIsBodyHidden(editDialog, isLoading)]]" class="style-scope ytd-backstage-post-renderer">\n  <div id="author-thumbnail" hidden="[[shouldHideAuthor]]" class="style-scope ytd-backstage-post-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-backstage-post-renderer" href$="[[computeHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]">\n      <yt-img-shadow fit="" height="40" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-backstage-post-renderer">\n      </yt-img-shadow>\n    </a>\n  </div>\n  <div id="main" class="style-scope ytd-backstage-post-renderer">\n    <div id="header" class="style-scope ytd-backstage-post-renderer">\n      <div id="header-author" hidden="[[shouldHideAuthor]]" class="style-scope ytd-backstage-post-renderer">\n        <a id="author-text" class="yt-simple-endpoint style-scope ytd-backstage-post-renderer" href$="[[computeHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]" hidden="[[data.authorCommentBadge]]">\n          <span class="style-scope ytd-backstage-post-renderer">[[getSimpleString(data.authorText)]]</span>\n        </a>\n        <span id="author-comment-badge" hidden="[[!data.authorCommentBadge]]" class="style-scope ytd-backstage-post-renderer"></span>\n        <template is="dom-if" if="[[isPollHeaderEnabled]]" class="style-scope ytd-backstage-post-renderer">\n          <yt-icon id="poll-icon" icon="[[pollIcon]]" class="style-scope ytd-backstage-post-renderer"></yt-icon>\n          <yt-formatted-string class="poll-metadata-text style-scope ytd-backstage-post-renderer" text="[[data.pollMetadataText]]">\n          </yt-formatted-string>\n          <span class="poll-metadata-text-separator style-scope ytd-backstage-post-renderer">\u00b7</span>\n          <yt-formatted-string class="poll-metadata-text style-scope ytd-backstage-post-renderer" text="[[data.pollMetadataVoteCountText]]">\n          </yt-formatted-string>\n          <span class="poll-metadata-text-separator style-scope ytd-backstage-post-renderer">\u00b7</span>\n        </template>\n        <yt-formatted-string id="published-time-text" link-inherit-color="" text="[[getPublishTimeStampString(data.publishedTimeText, data.scheduledPublishTimeSec)]]" class="style-scope ytd-backstage-post-renderer">\n        </yt-formatted-string>\n        <span id="sponsors-only-badge" hidden="[[!data.sponsorsOnlyBadge]]" class="style-scope ytd-backstage-post-renderer"></span>\n      </div>\n      <yt-formatted-string id="video-time-text" force-default-style="" hidden="[[!shouldShowVideoTime]]" link-inherit-color="" text="[[data.publishedTimeText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n    </div>\n    <ytd-expander id="contentTextExpander" max-number-of-lines="[[postTextMaxLines]]" class="style-scope ytd-backstage-post-renderer">\n      <yt-formatted-string id="voted-option" slot="content" disable-upgrade$="[[!data.prologueText]]" hidden="[[!data.prologueText]]" text="[[data.prologueText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="content-text" slot="content" dir="auto" force-default-style="" split-lines="" text="[[data.contentText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n      <span class="more-button style-scope ytd-backstage-post-renderer" slot="more-button">[[getSimpleString(data.expandButton.buttonRenderer.text)]]</span>\n      <span class="less-button style-scope ytd-backstage-post-renderer" slot="less-button">[[getSimpleString(data.collapseButton.buttonRenderer.text)]]</span>\n    </ytd-expander>\n    <div id="content-attachment" hidden="[[!data.backstageAttachment]]" class="style-scope ytd-backstage-post-renderer"></div>\n    <ytd-backstage-poll-renderer id="poll-attachment" aria-label$="[[data.backstageAttachment.pollRenderer.accessibilityData.accessibilityData.label]]" data="[[data.backstageAttachment.pollRenderer]]" disable-upgrade$="[[!hasPoll]]" hidden="[[!hasPoll]]" role="group" class="style-scope ytd-backstage-post-renderer">\n    </ytd-backstage-poll-renderer>\n    <ytd-backstage-quiz-renderer id="quiz-attachment" aria-label$="[[data.backstageAttachment.quizRenderer.accessibilityData.accessibilityData.label]]" data="[[data.backstageAttachment.quizRenderer]]" hidden="[[!hasQuiz]]" role="group" uses-panel-lockup$="[[isInEngagementPanel]]" class="style-scope ytd-backstage-post-renderer">\n    </ytd-backstage-quiz-renderer>\n    <ytd-post-uploaded-video-renderer id="uploaded-video-attachment" data="[[data.backstageAttachment.uploadedVideoRenderer]]" hidden="[[!hasUploadedVideo]]" role="group" class="style-scope ytd-backstage-post-renderer">\n    </ytd-post-uploaded-video-renderer>\n    <ytd-comment-action-buttons-renderer id="action-buttons" comment-count="[[commentCount]]" data="[[data.actionButtons.commentActionButtonsRenderer]]" has-poll="[[hasPoll]]" hidden="[[!data.actionButtons.commentActionButtonsRenderer]]" vote-count="[[voteCount]]" class="style-scope ytd-backstage-post-renderer">\n    </ytd-comment-action-buttons-renderer>\n  </div>\n\n  <div id="action-menu" class="style-scope ytd-backstage-post-renderer"></div>\n</div>\n<div id="edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-backstage-post-renderer"></div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return w4c=F},{mode:1});var p4a;var e6=function(){var F=_.n.apply(this,arguments)||this;F.editDialog=null;F.showExpandButton=!1;F.isRichGrid=!1;F.usesFullLockup=!1;return F};
_.k(e6,_.n);_.N=e6.prototype;_.N.configureRendererStamper=function(){return{"data.actionMenu":{id:"action-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.originalPost":{id:"original-post",mapping:{backstagePostRenderer:{component:"ytd-backstage-post-renderer",properties:{usesFullLockup:"[[usesFullLockup]]"}},postRenderer:{component:"ytd-post-renderer",properties:{isRichGridRepost:"[[isRichGrid]]"}}}},editDialog:{id:"repost-edit-dialog",mapping:{backstagePostDialogRenderer:"ytd-backstage-post-dialog-renderer"}}}};
_.N.dataChanged=function(){this.editDialog=null;this.showExpandButton=this.computeShowExpandButton(this.data)};
_.N.computeShowExpandButton=function(F){return this.usesCompactLockup||F&&F.showFullContentText?!1:this.repostContentTextEl.scrollHeight>this.repostContentTextEl.clientHeight};
_.N.computeUsesCompactLockup=function(F){return!!F.condensedContent};
_.N.computeShowFullContentText=function(F){return!F};
_.N.onYtNavigate=function(F){F=this.get("updateCommentDialogEndpoint",F.detail.endpoint);this.openEditDialog(F)};
_.N.onYtCommentboxDismiss=function(){this.editDialog=null};
_.N.openEditDialog=function(F){F&&F.dialog&&(this.editDialog=F.dialog,F=this.repostEditDialogEl.firstElementChild)&&(F.focus(),F.openDialog&&F.openDialog())};
_.N.onTap=function(F){if(this.data){var W=null;this.usesCompactLockup&&!_.Sc(_.TB(F)||[],this.hostElement,["YT-IMG-SHADOW"])?W=this.get("navigationEndpoint",this.data):F.target===this.moreButtonEl&&(W=this.get("navigationEndpoint",F.target.data));W&&_.hF(this.hostElement,"yt-navigate",{endpoint:W})}};
e6.prototype.onYtCommentboxDismiss=e6.prototype.onYtCommentboxDismiss;e6.prototype.onYtNavigate=e6.prototype.onYtNavigate;e6.prototype.dataChanged=e6.prototype.dataChanged;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],e6.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],e6.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],e6.prototype,"data",void 0);
_.T([_.O(),_.Y("design:type",Object)],e6.prototype,"editDialog",void 0);_.T([_.O({computed:"computeUsesCompactLockup(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],e6.prototype,"usesCompactLockup",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],e6.prototype,"showExpandButton",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],e6.prototype,"isRichGrid",void 0);
_.T([_.O({computed:"computeShowFullContentText(data.showFullContentText)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],e6.prototype,"showFullContentText",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],e6.prototype,"usesFullLockup",void 0);_.T([_.gQ("#more"),_.Y("design:type",Object)],e6.prototype,"moreButtonEl",void 0);_.T([_.gQ("#repost-content-text"),_.Y("design:type",HTMLElement)],e6.prototype,"repostContentTextEl",void 0);
_.T([_.gQ("#repost-edit-dialog"),_.Y("design:type",HTMLElement)],e6.prototype,"repostEditDialogEl",void 0);_.T([_.Cz("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],e6.prototype,"dataChanged",null);_.T([_.R4("yt-navigate"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],e6.prototype,"onYtNavigate",null);
_.T([_.R4("yt-commentbox-dismiss"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],e6.prototype,"onYtCommentboxDismiss",null);e6=_.T([_.y({is:"ytd-shared-post-renderer",disableElementRegistration:!0})],e6);
_.r(e6,"ytd-shared-post-renderer",function(){if(p4a!==void 0)return p4a;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shared-post-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="repost-context" hidden="[[editDialog]]" on-tap="onTap" class="style-scope ytd-shared-post-renderer">\n  <div id="repost-author-thumbnail" class="style-scope ytd-shared-post-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-shared-post-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]">\n      <yt-img-shadow fit="" height="40" thumbnail="[[data.thumbnail]]" width="40" class="style-scope ytd-shared-post-renderer"></yt-img-shadow>\n    </a>\n  </div>\n  <div id="repost-main" hidden="[[usesCompactLockup]]" class="style-scope ytd-shared-post-renderer">\n    <div id="repost-header" class="style-scope ytd-shared-post-renderer">\n      <div id="repost-header-author" class="style-scope ytd-shared-post-renderer">\n        <a id="repost-author-text" class="yt-simple-endpoint style-scope ytd-shared-post-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]">\n          <span class="style-scope ytd-shared-post-renderer">[[getSimpleString(data.displayName)]]</span>\n        </a>\n        <yt-formatted-string id="repost-published-time-text" link-inherit-color="" text="[[data.publishedTimeText]]" class="style-scope ytd-shared-post-renderer">\n        </yt-formatted-string>\n      </div>\n    </div>\n    <yt-formatted-string id="repost-content-text" force-default-style="" split-lines="[[!showFullContentText]]" text="[[data.content]]" class="style-scope ytd-shared-post-renderer">\n    </yt-formatted-string>\n    <tp-yt-paper-button id="more" data="[[data.expandButton.buttonRenderer]]" hidden="[[!showExpandButton]]" noink="" class="style-scope ytd-shared-post-renderer">\n      [[getSimpleString(data.expandButton.buttonRenderer.text)]]\n    </tp-yt-paper-button>\n  </div>\n  <div id="repost-main-compact" hidden="[[!usesCompactLockup]]" class="style-scope ytd-shared-post-renderer">\n    <yt-formatted-string id="condensed-repost-content-text" ellipsis-truncate="" force-default-style="" text="[[data.condensedContent]]" class="style-scope ytd-shared-post-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="action-menu" hidden="[[usesCompactLockup]]" class="style-scope ytd-shared-post-renderer"></div>\n</div>\n<div id="divider-line-container" hidden="[[!usesCompactLockup]]" class="style-scope ytd-shared-post-renderer">\n  <div id="divider-line" class="style-scope ytd-shared-post-renderer"></div>\n</div>\n<div id="repost-edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-shared-post-renderer"></div>\n<div id="original-post" hidden="[[data.originalPostDeletedMessage]]" class="style-scope ytd-shared-post-renderer"></div>\n<div id="original-post-deleted-message" hidden="[[!data.originalPostDeletedMessage]]" class="style-scope ytd-shared-post-renderer">\n  [[data.originalPostDeletedMessage]]\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return p4a=F},{mode:1});var mEe;var KdB;var M_=function(){return _.n.apply(this,arguments)||this};
_.k(M_,_.n);M_.prototype.attached=function(){var F=this;this.networkStatusManager||(this.networkStatusManager=new _.TX,this.networkStatusManager.listen("publicytnetworkstatus-online",function(){F.onlineHandler()}))};
M_.prototype.detached=function(){var F=this;this.networkStatusManager&&(this.networkStatusManager.unlisten("publicytnetworkstatus-online",function(){F.onlineHandler()}),delete this.networkStatusManager)};
M_.prototype.onlineHandler=function(){this.data.serviceEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint)};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],M_.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],M_.prototype,"ytComponentBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],M_.prototype,"data",void 0);M_=_.T([_.y({disableElementRegistration:!0,is:"ytd-reload-page-button-renderer"})],M_);
_.r(M_,"ytd-reload-page-button-renderer",function(){if(KdB!==void 0)return KdB;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reload-page-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-button-renderer data="[[data]]" class="style-scope ytd-reload-page-button-renderer"></ytd-button-renderer>');F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);
return KdB=F},{mode:1});var Fzc={EMPTY_SEARCH:"promo-full-height",HASHTAG_LANDING_PAGE_EMPTY:"hashtag-landing-page",HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE:"hashtag-landing-page",HASHTAG_LANDING_PAGE_ERROR:"hashtag-landing-page",HASHTAG_LANDING_PAGE_ERROR_DARK_MODE:"hashtag-landing-page",OFFLINE_NO_CONTENT:"offline-no-content"},gq=function(){var F=_.n.apply(this,arguments)||this;F.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return F};
_.k(gq,_.n);_.N=gq.prototype;_.N.attached=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.N.configureRendererStamper=function(){return{buttons:{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer",reloadPageButtonRenderer:"ytd-reload-page-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.N.computeHasBodyText=function(F){return!!F.bodyText};
_.N.computeButtons=function(F){var W=[];F.ctaButton&&W.push(F.ctaButton);F.secondaryButton&&W.push(F.secondaryButton);return W};
_.N.computeRendererStyle=function(F){return F.style?F.style.value.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():F.icon?"":"no-icon"};
_.N.getIconName=function(F,W){W=W===void 0?!1:W;if(F===void 0)return"";F=this.get("icon.iconType",F);var E;_.c("enable_hlp_client_icon_pick")?E=this.getThemedIcon(F,W):E=F;(W=Fzc[E])||(W="yt-icons");return[W,E].join(":")};
_.N.getThemedIcon=function(F,W){return["HASHTAG_LANDING_PAGE_EMPTY","HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE"].includes(F)?W?"HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE":"HASHTAG_LANDING_PAGE_EMPTY":["HASHTAG_LANDING_PAGE_ERROR","HASHTAG_LANDING_PAGE_ERROR_DARK_MODE"].includes(F)?W?"HASHTAG_LANDING_PAGE_ERROR_DARK_MODE":"HASHTAG_LANDING_PAGE_ERROR":F};
_.N.isThumbnail=function(F){return!!F.thumbnail};
_.N.onDarkModeToggledAction=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.N.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],gq.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],gq.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],gq.prototype,"ytActionHandlerBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],gq.prototype,"data",void 0);
_.T([_.O({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.Y("design:type",String)],gq.prototype,"rendererStyle",void 0);_.T([_.O({computed:"getIconName(data, isDarkTheme)",reflectToAttribute:!0}),_.Y("design:type",String)],gq.prototype,"iconName",void 0);_.T([_.O({computed:"isThumbnail(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],gq.prototype,"thumbnail",void 0);_.T([_.O({computed:"computeButtons(data)"}),_.Y("design:type",Array)],gq.prototype,"buttons",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],gq.prototype,"isDarkTheme",void 0);_.T([_.O({computed:"computeHasBodyText(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],gq.prototype,"hasBodyText",void 0);gq=_.T([_.y({is:"ytd-background-promo-renderer",disableElementRegistration:!0})],gq);
_.r(gq,"ytd-background-promo-renderer",function(){if(mEe!==void 0)return mEe;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-background-promo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon class="image style-scope ytd-background-promo-renderer" hidden="[[!data.icon]]" icon="[[iconName]]"></yt-icon>\n<yt-img-shadow class="image style-scope ytd-background-promo-renderer" height="[[data.thumbnail.thumbnails.height]]" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" width="[[data.thumbnail.thumbnails.width]]">\n</yt-img-shadow>\n<div class="promo-message style-scope ytd-background-promo-renderer">\n  <div class="promo-title style-scope ytd-background-promo-renderer">[[getSimpleString(data.title)]]</div>\n  <yt-formatted-string class="promo-body-text style-scope ytd-background-promo-renderer" split-lines="" text="[[data.bodyText]]">\n  </yt-formatted-string>\n</div>\n<div id="buttons" hidden="[[!data.ctaButton]]" class="style-scope ytd-background-promo-renderer"></div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return mEe=F},{mode:1});var Wzz;var Qj=function(){var F=_.n.apply(this,arguments)||this;F.collections=_.c("web_modern_collections_v2");return F};
_.k(Qj,_.n);_.Sn.Object.defineProperties(Qj.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var F,W,E,h,d,V;return{thumbnailSize:"small",doubleStack:!1,sampledThumbnailColor:(F=this.data)==null?void 0:(W=F.thumbnail)==null?void 0:W.sampledThumbnailColor,vibrantColorPalette:(E=this.data)==null?void 0:(h=E.thumbnail)==null?void 0:h.vibrantColorPalette,darkColorPalette:(d=this.data)==null?void 0:(V=d.thumbnail)==null?void 0:V.darkColorPalette,experimentEnabled:this.collections}}}});
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Qj.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],Qj.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Qj.prototype,"collections",void 0);_.T([_.a("data","collections"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Qj.prototype,"collectionStack",null);Qj=_.T([_.y({is:"ytd-compact-station-renderer",disableElementRegistration:!0})],Qj);
_.r(Qj,"ytd-compact-station-renderer",function(){if(Wzz!==void 0)return Wzz;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-station-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="flex-container style-scope ytd-compact-station-renderer">\n  <div class="modern-collection-parent style-scope ytd-compact-station-renderer">\n    <yt-collections-stack data="[[collectionStack]]" class="style-scope ytd-compact-station-renderer"></yt-collections-stack>\n    <ytd-thumbnail data="[[data]]" width="118" class="style-scope ytd-compact-station-renderer"></ytd-thumbnail>\n  </div>\n  <a class="yt-simple-endpoint style-scope ytd-compact-station-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <h3 class="style-scope ytd-compact-station-renderer">\n      [[getSimpleString(data.title)]]\n    </h3>\n    <div id="flex-item" class="style-scope ytd-compact-station-renderer">\n      <p id="description" title$="[[getSimpleString(data.description)]]" class="style-scope ytd-compact-station-renderer">\n        [[getSimpleString(data.description)]]\n      </p>\n    </div>\n    <p id="video-count-text" class="style-scope ytd-compact-station-renderer">\n      [[getSimpleString(data.videoCountText)]]\n    </p>\n  </a>\n</div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return Wzz=F},{mode:1});var E0p;var zD=function(){var F=_.n.apply(this,arguments)||this;F.isRichGrid=!1;return F};
_.k(zD,_.n);zD.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer",subscriptionNotificationToggleButtonRenderer:"ytd-subscription-notification-toggle-button-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}}}}};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],zD.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],zD.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],zD.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],zD.prototype,"isRichGrid",void 0);zD=_.T([_.y({is:"ytd-grid-channel-renderer",disableElementRegistration:!0})],zD);
_.r(zD,"ytd-grid-channel-renderer",function(){if(E0p!==void 0)return E0p;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-channel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="channel" class="style-scope ytd-grid-channel-renderer">\n  <a id="channel-info" class="yt-simple-endpoint style-scope ytd-grid-channel-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <yt-img-shadow height="103" thumbnail="[[data.thumbnail]]" width="103" class="style-scope ytd-grid-channel-renderer"> </yt-img-shadow>\n    <span id="title" class="style-scope ytd-grid-channel-renderer">[[getSimpleString(data.title)]]</span>\n    <span id="thumbnail-attribution" class="style-scope ytd-grid-channel-renderer">[[getSimpleString(data.subscriberCountText)]]</span>\n    <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-grid-channel-renderer">\n    </ytd-badge-supported-renderer>\n  </a>\n  <div id="subscribe" hidden="[[!data.subscribeButton]]" class="style-scope ytd-grid-channel-renderer"></div>\n  <div id="action-button" hidden="[[!data.actionButton]]" class="style-scope ytd-grid-channel-renderer"></div>\n</div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return E0p=F},{mode:1});var hS_;var tn=function(){return _.n.apply(this,arguments)||this};
_.k(tn,_.n);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],tn.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],tn.prototype,"data",void 0);tn=_.T([_.y({is:"ytd-grid-movie-playlist-renderer",disableElementRegistration:!0})],tn);
_.r(tn,"ytd-grid-movie-playlist-renderer",function(){if(hS_!==void 0)return hS_;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-movie-playlist-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-thumbnail width="210" data="[[data]]" bottom-side-panel="" class="style-scope ytd-grid-movie-playlist-renderer"></ytd-thumbnail>\n<a class="yt-simple-endpoint style-scope ytd-grid-movie-playlist-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <h3 class="style-scope ytd-grid-movie-playlist-renderer">\n    <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-grid-movie-playlist-renderer">\n    </ytd-badge-supported-renderer>\n    <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-grid-movie-playlist-renderer">\n      [[getSimpleString(data.title)]]\n    </span>\n  </h3>\n  <ytd-video-meta-block class="grid style-scope ytd-grid-movie-playlist-renderer" data="[[data]]"></ytd-video-meta-block>\n</a>\n<ytd-badge-supported-renderer id="badges" badges="[[data.ownerBadges]]" hidden="[[!data.ownerBadges]]" class="style-scope ytd-grid-movie-playlist-renderer">\n</ytd-badge-supported-renderer>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return hS_=F},{mode:1});var dqT;var CS=function(){var F=_.n.apply(this,arguments)||this;F.downloadProgress=0;F.transferState="TRANSFER_STATE_UNKNOWN";F.modernButtons=_.c("web_modern_buttons");F.useModernCollectionsV2=_.c("web_modern_collections_v2");return F};
_.k(CS,_.n);CS.prototype.detached=function(){this.ytdLockupBehavior.lockupIsHovered=!1};
CS.prototype.configureRendererStamper=function(){return{"data.menu":g1}};
CS.prototype.dataChanged=function(){this.data&&this.transferStateChanged()};
CS.prototype.transferStateChanged=function(){this.isDownloads=!1;if(this.transferState!=="TRANSFER_STATE_UNKNOWN"&&this.entityInfo&&!_.c("woffle_playlist_renderer_killswitch")){var F,W=vQn(this.entityInfo,this.transferState,this.downloadProgress,(F=this.data)==null?void 0:F.playlistId,this.isOnline);F=W.viewPlaylistText;var E=W.badges;W=W.thumbnailOverlays;this.isDownloads=!!F||!!E;this.set("data.viewPlaylistText",F);E&&E.length>0&&this.set("data.badges",E);W&&W.length>0&&this.set("data.thumbnailOverlays",
W)}};
_.Sn.Object.defineProperties(CS.prototype,{downloadState:{configurable:!0,enumerable:!0,get:function(){return this.transferState&&this.transferState!=="TRANSFER_STATE_UNKNOWN"?this.transferState==="TRANSFER_STATE_COMPLETE"?"DOWNLOADED":"DOWNLOADING":""}},
menuHidden:{configurable:!0,enumerable:!0,get:function(){var F;return!((F=this.data)==null?0:F.menu)}}});
CS.prototype.transferStateChanged=CS.prototype.transferStateChanged;CS.prototype.dataChanged=CS.prototype.dataChanged;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],CS.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.rt),_.Y("design:type",Object)],CS.prototype,"ytdLockupBehavior",void 0);_.T([_.J(_.am),_.Y("design:type",Object)],CS.prototype,"ytdReduxBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],CS.prototype,"ytRendererstamperBehavior",void 0);
_.T([_.O({selector:_.J7w,selectorArgs:["data.playlistId"]}),_.Y("design:type",Object)],CS.prototype,"downloadProgress",void 0);_.T([_.O({selector:_.fV,selectorArgs:["data.playlistId"]}),_.Y("design:type",Object)],CS.prototype,"transferState",void 0);_.T([_.O({selector:PEb,selectorArgs:["data.playlistId"]}),_.Y("design:type",Object)],CS.prototype,"entityInfo",void 0);_.T([_.O({selector:L4G}),_.Y("design:type",Boolean)],CS.prototype,"isOnline",void 0);
_.T([_.O(),_.Y("design:type",Object)],CS.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Object)],CS.prototype,"downloadRenderData",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],CS.prototype,"modernButtons",void 0);_.T([_.O({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],CS.prototype,"isDownloads",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],CS.prototype,"useModernCollectionsV2",void 0);
_.T([_.a("transferState"),_.O({reflectToAttribute:!0}),_.Y("design:type",String),_.Y("design:paramtypes",[])],CS.prototype,"downloadState",null);_.T([_.a("data"),_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],CS.prototype,"menuHidden",null);_.T([_.Cz("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],CS.prototype,"dataChanged",null);
_.T([_.Cz("transferState","downloadProgress","isOnline"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],CS.prototype,"transferStateChanged",null);CS=_.T([_.y({is:"ytd-grid-playlist-renderer",disableElementRegistration:!0})],CS);
_.r(CS,"ytd-grid-playlist-renderer",function(){if(dqT!==void 0)return dqT;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-playlist-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-playlist-thumbnail custom-thumbnail-size="118" data="[[data]]" height="118" hovered="[[lockupIsHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="210" class="style-scope ytd-grid-playlist-renderer">\n</ytd-playlist-thumbnail>\n<div id="details" class="style-scope ytd-grid-playlist-renderer">\n  <h3 class="style-scope ytd-grid-playlist-renderer">\n    <a id="video-title" class="yt-simple-endpoint style-scope ytd-grid-playlist-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" data="[[data.navigationEndpoint]]">[[getSimpleString(data.title)]]</a>\n  </h3>\n  <ytd-video-meta-block class="grid style-scope ytd-grid-playlist-renderer" data="[[data]]"></ytd-video-meta-block>\n  <ytd-badge-supported-renderer badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-grid-playlist-renderer">\n  </ytd-badge-supported-renderer>\n  <div id="menu" class="style-scope ytd-grid-playlist-renderer"></div>\n  <yt-formatted-string id="view-more" hidden="[[!data.viewPlaylistText]]" link-inherit-color="" text="[[data.viewPlaylistText]]" class="style-scope ytd-grid-playlist-renderer">\n  </yt-formatted-string>\n  <yt-interaction id="interaction" class="extended style-scope ytd-grid-playlist-renderer"></yt-interaction>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return dqT=F},{mode:1});var Nfa;var Bh=function(){var F=_.n.apply(this,arguments)||this;F.collections=_.c("web_modern_collections_v2");return F};
_.k(Bh,_.n);Bh.prototype.configureRendererStamper=function(){return{"data.menu":g1,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.Sn.Object.defineProperties(Bh.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var F,W,E,h,d,V;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(F=this.data)==null?void 0:(W=F.thumbnail)==null?void 0:W.sampledThumbnailColor,vibrantColorPalette:(E=this.data)==null?void 0:(h=E.thumbnail)==null?void 0:h.vibrantColorPalette,darkColorPalette:(d=this.data)==null?void 0:(V=d.thumbnail)==null?void 0:V.darkColorPalette,experimentEnabled:this.collections}}}});
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Bh.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.O9),_.Y("design:type",Object)],Bh.prototype,"ytdDismissibleItemBehavior",void 0);_.T([_.J(_.rt),_.Y("design:type",Object)],Bh.prototype,"ytdLockupBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],Bh.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],Bh.prototype,"data",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Bh.prototype,"collections",void 0);_.T([_.a("data","collections"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Bh.prototype,"collectionStack",null);Bh=_.T([_.y({is:"ytd-grid-radio-renderer",disableElementRegistration:!0})],Bh);
_.r(Bh,"ytd-grid-radio-renderer",function(){if(Nfa!==void 0)return Nfa;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-radio-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-grid-radio-renderer">\n  <div class="modern-collection-parent style-scope ytd-grid-radio-renderer">\n    <yt-collections-stack data="[[collectionStack]]" class="style-scope ytd-grid-radio-renderer"></yt-collections-stack>\n    <ytd-thumbnail data="[[data]]" height="118" hovered="[[lockupIsHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="210" class="style-scope ytd-grid-radio-renderer">\n    </ytd-thumbnail>\n  </div>\n  <div id="details" class="style-scope ytd-grid-radio-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-grid-radio-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n      <h3 class="style-scope ytd-grid-radio-renderer">\n        <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-grid-radio-renderer">\n        </ytd-badge-supported-renderer>\n        <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-grid-radio-renderer">\n          [[getSimpleString(data.title)]]\n        </span>\n      </h3>\n      <ytd-video-meta-block class="grid style-scope ytd-grid-radio-renderer" data="[[data]]" radio-meta=""></ytd-video-meta-block>\n    </a>\n    <div id="menu" class="style-scope ytd-grid-radio-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-grid-radio-renderer">\n  <div id="dismissed-content" class="style-scope ytd-grid-radio-renderer"></div>\n</div>\n<yt-interaction id="interaction" class="extended style-scope ytd-grid-radio-renderer"></yt-interaction>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return Nfa=F},{mode:1});var VNO;var vh=function(){var F=_.n.apply(this,arguments)||this;F.useModernCollectionsV2=_.c("web_modern_collections_v2");return F};
_.k(vh,_.n);vh.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
vh.prototype.computeNavigationEndpoint=function(F){return Sjk(F==null?void 0:F.navigationEndpoint)};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],vh.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],vh.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.rt),_.Y("design:type",Object)],vh.prototype,"ytdLockupBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],vh.prototype,"data",void 0);_.T([_.O({computed:"computeNavigationEndpoint(data)"}),_.Y("design:type",Object)],vh.prototype,"computedNavigationEndpoint",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],vh.prototype,"useModernCollectionsV2",void 0);vh=_.T([_.y({is:"ytd-grid-show-renderer",disableElementRegistration:!0})],vh);
_.r(vh,"ytd-grid-show-renderer",function(){if(VNO!==void 0)return VNO;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-show-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-playlist-thumbnail data="[[data]]" width="210" class="style-scope ytd-grid-show-renderer"></ytd-playlist-thumbnail>\n<div id="details" class="style-scope ytd-grid-show-renderer">\n  <a id="title" class="yt-simple-endpoint style-scope ytd-grid-show-renderer" href$="[[computeHref_(computedNavigationEndpoint)]]" data="[[computedNavigationEndpoint]]">\n    <h3 class="style-scope ytd-grid-show-renderer">\n      <ytd-badge-supported-renderer class="badge style-scope ytd-grid-show-renderer" hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]">\n      </ytd-badge-supported-renderer>\n      <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-grid-show-renderer">\n        [[getSimpleString(data.title)]]\n      </span>\n    </h3>\n    <ytd-video-meta-block class="grid style-scope ytd-grid-show-renderer" data="[[data]]"></ytd-video-meta-block>\n  </a>\n  <ytd-badge-supported-renderer class="badge style-scope ytd-grid-show-renderer" hidden="[[!data.bottomStandaloneBadge]]" top-standalone-badge="[[data.bottomStandaloneBadge]]">\n  </ytd-badge-supported-renderer>\n  <ytd-badge-supported-renderer class="badge style-scope ytd-grid-show-renderer" badges="[[data.badges]]" hidden="[[!data.badges]]">\n  </ytd-badge-supported-renderer>\n  <div id="offer-button" class="style-scope ytd-grid-show-renderer"></div>\n  <div id="menu" class="style-scope ytd-grid-show-renderer"></div>\n</div>\n<yt-interaction id="interaction" class="extended style-scope ytd-grid-show-renderer"></yt-interaction>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return VNO=F},{mode:1});var Uqa;_.I8=function(F){this.playerClient=F};
_.RSi=function(F,W,E){E=E===void 0?{}:E;return F.playerClient.setOption("ad",W,E)};
_.I8.prototype.getOptions=function(){return this.playerClient.getOptions("ad")||[]};
_.I8.prototype.executeCommand=function(F,W){this.getOptions().includes("executeCommand")?_.RSi(this,"executeCommand",{command:F,layoutId:W}):_.UQ("Calling executeCommand when adModule is not loaded")};var ch=function(){return _.n.apply(this,arguments)||this};
_.k(ch,_.n);ch.prototype.getLayoutId=function(){var F=_.ju("yt.www.ads.eventcache.getLastCompanionData");return F?(F=F())&&F.layoutId:null};
ch.prototype.onTap=function(){if(this.data&&this.data.clickthroughEndpoint){var F=_.WS(),W=this.getLayoutId(),E=this.data.clickthroughEndpoint;F&&W&&_.c("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?F.getPlayerPromise().then(function(h){(new _.I8(h)).executeCommand(E,W)}):_.hF(this.hostElement,"yt-navigate",{endpoint:E})}};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],ch.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],ch.prototype,"data",void 0);ch=_.T([_.y({is:"ytd-shopping-companion-item-renderer",disableElementRegistration:!0})],ch);
_.r(ch,"ytd-shopping-companion-item-renderer",function(){if(Uqa!==void 0)return Uqa;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shopping-companion-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="shopping-companion-item-container" on-tap="onTap" class="style-scope ytd-shopping-companion-item-renderer">\n  <div id="card" class="style-scope ytd-shopping-companion-item-renderer">\n    <yt-img-shadow id="image" thumbnail="[[data.image]]" class="style-scope ytd-shopping-companion-item-renderer"></yt-img-shadow>\n    <div id="info" class="style-scope ytd-shopping-companion-item-renderer">\n      <span id="headline" class="style-scope ytd-shopping-companion-item-renderer">[[getSimpleString(data.headline)]]</span>\n      <span id="price" class="style-scope ytd-shopping-companion-item-renderer">[[getSimpleString(data.priceText)]]</span>\n    </div>\n  </div>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return Uqa=F},{mode:1});var eSM;var DM=function(){var F=_.n.apply(this,arguments)||this;F.isExpandableContent=!1;return F};
_.k(DM,_.n);_.Sn.Object.defineProperties(DM.prototype,{showCta:{configurable:!0,enumerable:!0,get:function(){var F;return!((F=this.data)==null||!F.ctaText)}},
ctaText:{configurable:!0,enumerable:!0,get:function(){var F;return(F=this.data)==null?void 0:F.ctaText}},
hasPriceTopPosition:{configurable:!0,enumerable:!0,get:function(){var F;return((F=this.data)==null?void 0:F.layoutStyle)!=="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
hasPriceBottomPosition:{configurable:!0,enumerable:!0,get:function(){var F;return((F=this.data)==null?void 0:F.layoutStyle)==="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
useNewStyle:{configurable:!0,enumerable:!0,get:function(){var F;return(F=this.data)==null?void 0:F.useNewStyle}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var F;return!((F=this.data)==null||!F.priceReplacementText)}},
priceValue:{configurable:!0,enumerable:!0,get:function(){var F,W,E;return((F=this.data)==null?void 0:F.price)||((W=this.data)==null?void 0:(E=W.dealsData)==null?void 0:E.currentPrice)}},
showDeal:{configurable:!0,enumerable:!0,get:function(){var F,W;if((F=this.data)!=null&&F.dealsData&&((W=this.data)==null||!W.priceReplacementText)){F=this.data.dealsData;var E,h,d;return((E=F.salesData)==null?void 0:E.originalPrice)||((h=F.priceDropData)==null?void 0:h.referencePrice)||((d=F.promotionData)==null?void 0:d.promotionLabel)}}},
showAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var F;return!((F=this.data)==null||!F.affiliateDisclaimer)}},
useSaleStyle:{configurable:!0,enumerable:!0,get:function(){var F,W;return(F=this.data)==null?void 0:(W=F.dealsData)==null?void 0:W.salesData}},
useFromBrandCtaStyle:{configurable:!0,enumerable:!0,get:function(){var F;return((F=this.data)==null?void 0:F.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_BRAND"}},
useFromVendorCtaStyle:{configurable:!0,enumerable:!0,get:function(){var F;return((F=this.data)==null?void 0:F.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_VENDOR"}},
useShoppingCollectionCtaStyle:{configurable:!0,enumerable:!0,get:function(){var F;return((F=this.data)==null?void 0:F.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_SHOPPING_COLLECTION"}}});
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],DM.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],DM.prototype,"componentBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],DM.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],DM.prototype,"isExpandableContent",void 0);_.T([_.a("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],DM.prototype,"showCta",null);
_.T([_.a("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],DM.prototype,"ctaText",null);_.T([_.a("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],DM.prototype,"hasPriceTopPosition",null);_.T([_.a("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],DM.prototype,"hasPriceBottomPosition",null);_.T([_.O({reflectToAttribute:!0}),_.a("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],DM.prototype,"useNewStyle",null);
_.T([_.a("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],DM.prototype,"showPriceReplacementText",null);_.T([_.O({reflectToAttribute:!0}),_.a("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],DM.prototype,"priceValue",null);_.T([_.O({reflectToAttribute:!0}),_.a("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],DM.prototype,"showDeal",null);_.T([_.a("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],DM.prototype,"showAffiliateDisclaimer",null);
_.T([_.O({reflectToAttribute:!0}),_.a("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],DM.prototype,"useSaleStyle",null);_.T([_.O({reflectToAttribute:!0}),_.a("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],DM.prototype,"useFromBrandCtaStyle",null);_.T([_.O({reflectToAttribute:!0}),_.a("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],DM.prototype,"useFromVendorCtaStyle",null);
_.T([_.O({reflectToAttribute:!0}),_.a("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],DM.prototype,"useShoppingCollectionCtaStyle",null);DM=_.T([_.y({disableElementRegistration:!0,is:"ytd-vertical-product-card-renderer"})],DM);
_.r(DM,"ytd-vertical-product-card-renderer",function(){if(eSM!==void 0)return eSM;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-vertical-product-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n\n<a id="product-card-renderer-container" class="yt-simple-endpoint style-scope ytd-vertical-product-card-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" rel="[[computeNofollow_(data.navigationEndpoint)]]" aria-label="[[data.accessibilityTitle]]">\n  <div id="card-with-protection" data-offer-version-id$="[[data.debugOfferVersionId]]" class="style-scope ytd-vertical-product-card-renderer">\n    <div id="product-image" class="product-info-row style-scope ytd-vertical-product-card-renderer">\n      <yt-img-shadow thumbnail="[[data.thumbnail]]" class="style-scope ytd-vertical-product-card-renderer"></yt-img-shadow>\n    </div>\n    <div id="product-info" class="style-scope ytd-vertical-product-card-renderer">\n      <div id="product-name" class="product-info-row style-scope ytd-vertical-product-card-renderer">[[data.title]]</div>\n\n      <template is="dom-if" restamp="" if="[[hasPriceTopPosition]]" class="style-scope ytd-vertical-product-card-renderer">\n        <div class="product-info-row style-scope ytd-vertical-product-card-renderer">\n          <template is="dom-if" restamp="" if="[[showPriceReplacementText]]" class="style-scope ytd-vertical-product-card-renderer">\n            <span id="price-replacement" class="style-scope ytd-vertical-product-card-renderer">[[data.priceReplacementText]]</span>\n          </template>\n          <template is="dom-if" restamp="" if="[[!showPriceReplacementText]]" class="style-scope ytd-vertical-product-card-renderer">\n            <span id="price" class="style-scope ytd-vertical-product-card-renderer">[[priceValue]]</span>\n            <template is="dom-if" restamp="" if="[[data.additionalFeesText]]" class="style-scope ytd-vertical-product-card-renderer">\n              <span id="additional-taxes" class="style-scope ytd-vertical-product-card-renderer">[[data.additionalFeesText]]</span>\n            </template>\n          </template>\n        </div>\n        <div id="product-deal" class="product-info-row style-scope ytd-vertical-product-card-renderer" aria-label="[[data.dealsData.salesData.salesPriceAccessibilityLabel]]">\n          [[showDeal]]\n        </div>\n      </template>\n\n      <div id="variants-description" class="product-info-row style-scope ytd-vertical-product-card-renderer">\n        [[data.variantsDescription]]\n      </div>\n\n      <template is="dom-if" restamp="" if="[[showCta]]" class="style-scope ytd-vertical-product-card-renderer">\n        <div class="product-info-row style-scope ytd-vertical-product-card-renderer">\n          <yt-formatted-string class="cta-row style-scope ytd-vertical-product-card-renderer" text="[[ctaText]]">\n          </yt-formatted-string>\n          <template is="dom-if" restamp="" if="[[data.showOpenInNewIcon]]" class="style-scope ytd-vertical-product-card-renderer">\n            <yt-icon class="cta-row hover-icon style-scope ytd-vertical-product-card-renderer" icon="open_in_new"></yt-icon>\n          </template>\n        </div>\n      </template>\n\n      <template is="dom-if" restamp="" if="[[hasPriceBottomPosition]]" class="style-scope ytd-vertical-product-card-renderer">\n        <div class="product-info-row style-scope ytd-vertical-product-card-renderer">\n          <template is="dom-if" restamp="" if="[[showPriceReplacementText]]" class="style-scope ytd-vertical-product-card-renderer">\n            <span id="price-replacement" class="style-scope ytd-vertical-product-card-renderer">[[data.priceReplacementText]]</span>\n          </template>\n          <template is="dom-if" restamp="" if="[[!showPriceReplacementText]]" class="style-scope ytd-vertical-product-card-renderer">\n            <span id="price" class="style-scope ytd-vertical-product-card-renderer">[[priceValue]]</span>\n            <template is="dom-if" restamp="" if="[[data.additionalFeesText]]" class="style-scope ytd-vertical-product-card-renderer">\n              <span id="additional-taxes" class="style-scope ytd-vertical-product-card-renderer">[[data.additionalFeesText]]</span>\n            </template>\n          </template>\n        </div>\n        <div id="product-deal" class="product-info-row style-scope ytd-vertical-product-card-renderer" aria-label="[[data.dealsData.salesData.salesPriceAccessibilityLabel]]">\n          [[showDeal]]\n        </div>\n      </template>\n\n      <template is="dom-if" restamp="" if="[[showAffiliateDisclaimer]]" class="style-scope ytd-vertical-product-card-renderer">\n        <div class="product-info-row style-scope ytd-vertical-product-card-renderer">\n          <div id="affiliate-disclaimer" class="style-scope ytd-vertical-product-card-renderer">[[data.affiliateDisclaimer]]</div>\n        </div>\n      </template>\n    </div>\n  </div>\n</a>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return eSM=F},{mode:1});var MNU;var x6=function(){return _.n.apply(this,arguments)||this};
_.k(x6,_.n);x6.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],x6.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],x6.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.rt),_.Y("design:type",Object)],x6.prototype,"ytdLockupBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],x6.prototype,"data",void 0);x6=_.T([_.y({disableElementRegistration:!0,is:"ytd-grid-movie-renderer"})],x6);
_.r(x6,"ytd-grid-movie-renderer",function(){if(MNU!==void 0)return MNU;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-movie-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-thumbnail data="[[data]]" hovered="[[lockupIsHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="210" class="style-scope ytd-grid-movie-renderer">\n</ytd-thumbnail>\n<a class="yt-simple-endpoint style-scope ytd-grid-movie-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <h3 class="style-scope ytd-grid-movie-renderer">\n    <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-grid-movie-renderer">\n    </ytd-badge-supported-renderer>\n    <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-grid-movie-renderer">\n      [[getSimpleString(data.title)]]\n    </span>\n  </h3>\n  <span class="grid-movie-renderer-metadata style-scope ytd-grid-movie-renderer" hidden="[[!data.metadata]]">\n    [[getSimpleString(data.metadata)]]\n  </span>\n  \n  <ytd-video-meta-block class="grid style-scope ytd-grid-movie-renderer" data="[[data]]"></ytd-video-meta-block>\n</a>\n<ytd-badge-supported-renderer class="badges style-scope ytd-grid-movie-renderer" badges="[[data.badges]]" hidden="[[!data.badges]]">\n</ytd-badge-supported-renderer>\n<div id="offer-button" class="style-scope ytd-grid-movie-renderer"></div>\n<yt-interaction id="interaction" class="extended style-scope ytd-grid-movie-renderer"></yt-interaction>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return MNU=F},{mode:1});var g0p;var An=function(){var F=_.n.apply(this,arguments)||this;F.rounded=!0;F.itemStyle="small-item";return F};
_.k(An,_.n);An.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var F,W,E,h,d=(W=_.D((F=this.data)==null?void 0:F.buttonCommand,_.CjB))==null?void 0:(E=W.item)==null?void 0:(h=E.notificationTextRenderer)==null?void 0:h.successResponseText;d&&_.mqW(this.hostElement,d)}};
_.Sn.Object.defineProperties(An.prototype,{hasPrice:{configurable:!0,enumerable:!0,get:function(){var F;return((F=this.data)==null?void 0:F.price)!==void 0}},
hasPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var F;return!((F=this.data)==null||!F.priceReplacementText)}},
hasAdditionalFeesText:{configurable:!0,enumerable:!0,get:function(){var F;return((F=this.data)==null?void 0:F.additionalFeesText)!==void 0}},
hasAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var F;return((F=this.data)==null?void 0:F.affiliateDisclaimer)!==void 0}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var F,W;return((F=this.data)==null?void 0:F.isProductPlaceholder)!==void 0&&((W=this.data)==null?void 0:W.isProductPlaceholder)}},
hideOpenInNewIcon:{configurable:!0,enumerable:!0,get:function(){var F;return((F=this.data)==null?void 0:F.showOpenInNewIcon)===!1}},
ariaLabel:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.accessibilityTitle?this.data.accessibilityTitle:this.data.title+", "+this.data.price+", "+this.data.additionalFeesText+", "+this.data.vendorName}}});
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],An.prototype,"ytRendererBehavior",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],An.prototype,"rounded",void 0);_.T([_.O(),_.Y("design:type",Object)],An.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",String)],An.prototype,"itemStyle",void 0);_.T([_.a("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],An.prototype,"hasPrice",null);
_.T([_.a("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],An.prototype,"hasPriceReplacementText",null);_.T([_.a("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],An.prototype,"hasAdditionalFeesText",null);_.T([_.a("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],An.prototype,"hasAffiliateDisclaimer",null);_.T([_.a("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],An.prototype,"isProductPlaceholder",null);
_.T([_.O(),_.a("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],An.prototype,"hideOpenInNewIcon",null);_.T([_.a("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],An.prototype,"ariaLabel",null);An=_.T([_.y({disableElementRegistration:!0,is:"ytd-merch-shelf-item-renderer"})],An);
_.r(An,"ytd-merch-shelf-item-renderer",function(){if(g0p!==void 0)return g0p;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-merch-shelf-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n\n<a class="yt-simple-endpoint style-scope ytd-merch-shelf-item-renderer" href$="[[computeHref_(data.buttonCommand)]]" data="[[data.buttonCommand]]" aria-label$="[[ariaLabel]]" data-offer-version-id$="[[data.debugOfferVersionId]]" on-click="showSnackbarIfPlaceholder">\n  <div class="product-item style-scope ytd-merch-shelf-item-renderer">\n    <yt-img-shadow class="product-item-image style-scope ytd-merch-shelf-item-renderer" height="90" object-fit="CONTAIN" thumbnail="[[data.thumbnail]]" width="90"></yt-img-shadow>\n    <template is="dom-if" restamp="" if="[[isProductPlaceholder]]" class="style-scope ytd-merch-shelf-item-renderer">\n      <div class="product-item-info style-scope ytd-merch-shelf-item-renderer">\n        <div class="product-item-info-wrapper product-placeholder-item-info-center style-scope ytd-merch-shelf-item-renderer">\n          <div class="small-item-hide product-item-title style-scope ytd-merch-shelf-item-renderer">[[data.title]]</div>\n        </div>\n      </div>\n    </template>\n    <template is="dom-if" restamp="" if="[[!isProductPlaceholder]]" class="style-scope ytd-merch-shelf-item-renderer">\n      <div class="product-item-info style-scope ytd-merch-shelf-item-renderer">\n        <div class="product-item-info-wrapper style-scope ytd-merch-shelf-item-renderer">\n          <div class="product-item-info-wrapper-row-1 style-scope ytd-merch-shelf-item-renderer">\n            <div class="small-item-hide product-item-title style-scope ytd-merch-shelf-item-renderer">[[data.title]]</div>\n            <template is="dom-if" restamp="" if="[[hasPrice]]" class="style-scope ytd-merch-shelf-item-renderer">\n              <div class="product-item-price-wrapper style-scope ytd-merch-shelf-item-renderer">\n                <template is="dom-if" restamp="" if="[[hasPriceReplacementText]]" class="style-scope ytd-merch-shelf-item-renderer">\n                  <div class="product-item-price style-scope ytd-merch-shelf-item-renderer">[[data.priceReplacementText]]</div>\n                </template>\n                <template is="dom-if" restamp="" if="[[!hasPriceReplacementText]]" class="style-scope ytd-merch-shelf-item-renderer">\n                  <div class="product-item-price style-scope ytd-merch-shelf-item-renderer">[[data.price]]</div>\n                  <div class="product-item-additional-fees-text style-scope ytd-merch-shelf-item-renderer" hidden="[[!hasAdditionalFeesText]]">\n                    [[data.additionalFeesText]]\n                  </div>\n                </template>\n              </div>\n            </template>\n            <div no-price$="[[!hasPrice]]" class="cta-item-hide link-item-hide product-item-merchant style-scope ytd-merch-shelf-item-renderer">\n              <div class="product-item-merchant-text style-scope ytd-merch-shelf-item-renderer">\n                [[data.vendorName]]\n                <yt-icon class="product-item-merchant-icon product-item-merchant-icon--inline style-scope ytd-merch-shelf-item-renderer" hidden="[[hideOpenInNewIcon]]" icon="open_in_new" size="15"></yt-icon>\n              </div>\n              \n              <yt-icon class="product-item-merchant-icon style-scope ytd-merch-shelf-item-renderer" hidden="[[hideOpenInNewIcon]]" icon="open_in_new" size="15"></yt-icon>\n            </div>\n          </div>\n          <div class="small-item-hide large-item-hide product-item-info-wrapper-row-2 style-scope ytd-merch-shelf-item-renderer">\n            <div class="affiliate-disclaimer-text style-scope ytd-merch-shelf-item-renderer" hidden="[[!hasAffiliateDisclaimer]]">\n              [[data.affiliateDisclaimer]]\n            </div>\n            <div class="product-item-description style-scope ytd-merch-shelf-item-renderer">[[data.description]]</div>\n          </div>\n        </div>\n      </div>\n      <div class="small-item-hide large-item-hide link-item-hide product-item-button-wrapper style-scope ytd-merch-shelf-item-renderer" hidden="[[isProductPlaceholder]]">\n        <div class="product-item-button style-scope ytd-merch-shelf-item-renderer">[[data.buttonText]]</div>\n        <div class="product-item-merchant style-scope ytd-merch-shelf-item-renderer">\n          <div class="product-item-merchant-text style-scope ytd-merch-shelf-item-renderer">[[data.vendorName]]</div>\n          <yt-icon class="product-item-merchant-icon style-scope ytd-merch-shelf-item-renderer" hidden="[[hideOpenInNewIcon]]" icon="open_in_new" size="15"></yt-icon>\n        </div>\n      </div>\n    </template>\n  </div>\n</a>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return g0p=F},{mode:1});var Qhe=_.GK(function(F){var W=_.uf();_.Sb(W,function(){return F.data().rendererContext});
return _.z("button-card-view-model",{el:W,class:"ytwButtonCardViewModelHost",tabindex:0,"aria-label":function(){return F.data().title},
role:"button"},_.z(_.xY,{model:{}}),_.z("div",{class:"ytwButtonCardViewModelHostContentContainer"},_.z("div",{class:"ytwButtonCardViewModelHostContentContainerIconContainer"},_.z(_.v,{cond:function(){return F.data().image},
then:function(E){return _.z(_.T4,{data:E,alt:function(){var h;return(h=F.data().title)!=null?h:""},
className:"ytwButtonCardViewModelHostImage"})}})),_.z("div",{class:"ytwButtonCardViewModelHostContentContainerTitleContainer"},function(){return F.data().title})))},"Ua");_.c("web_button_view_model_wcw_registration_killswitch")||_.pK(Qhe,"button-card-view-model",{props:{data:_.TS}});_.pK(_.GK(function(F){F=_.o4(F,{className:void 0});var W=F.data;F=F.className;var E=_.vX(function(){return W().onTapCommand},void 0,"NprDr");
return _.z("ytd-shopping-item-card",{class:_.ec("ytdShoppingItemCardHost",F)},_.z(_.kY,{command:E,className:"ytdShoppingItemCardHostLink"},_.z("div",{class:"ytdShoppingItemCardHostThumbnailViewModel"},_.z(_.a6,{data:function(){return W().thumbnailViewModel}},{thumbnailViewModel:function(h){return _.z(_.Yo,{data:h.data,
aspectRatio:3})}})),_.z("div",null,_.z("p",{class:"ytdShoppingItemCardHostItemTitle"},_.z(_.Ab,{text:function(){return W().itemTitle}})),_.z("p",{class:"ytdShoppingItemCardHostPrice"},_.z(_.Ab,{text:function(){return W().priceOrStatus}})))))},"Va"),"ytd-shopping-item-card",{props:{data:_.TS,
className:_.TS}});var zSB={isAdsVideo:!0},tNM={showPlayerControls:!1,forceMutedVolume:!0,roundedCornersSize:3},CQi={showPlayerControls:!1,videoPreviewDurationMs:15E3},ULW={showPlayerControls:!1,videoPreviewDurationMs:5E3,forceCaptionsOff:!0,forceMutedVolume:!0,roundedCornersSize:2,cropPlayerToFillThumbnailHorizontally:!_.c("web_shorts_imp_fullwidth_killswitch")};var em=null,Kzn={};var EHe="WEB_PAGE_TYPE_ACCOUNTS WEB_PAGE_TYPE_WELCOME WEB_PAGE_TYPE_ACCOUNT_SELECTOR WEB_PAGE_TYPE_SIGN_IN_IDENTIFIER_ENTRY WEB_PAGE_TYPE_SIGN_IN_PASSWORD_ENTRY WEB_PAGE_TYPE_SIGN_IN_DEVICE_PROMPT_CHALLENGE WEB_PAGE_TYPE_UNKNOWN".split(" "),sN={},hCo=(sN.FEwhat_to_watch="home",sN.FEhashtag="hashtag",sN.FEtrending="trending",sN.FEhistory="history",sN.SPunlimited="premium",sN.FEmemberships_and_purchases="paid_memberships",sN.SPredeem_code="redeem",sN.SPverify_location="locate",sN.SPminor_moment="minor_moment",
sN.FEmini_app_container="mini_app",sN.FEnews_destination="news",sN.SPopen_in_app="open_in_app",sN.FEexplore="explore",sN.FEsubscriptions="subscriptions",sN.FEsfv_audio_pivot="sfv_audio_pivot",sN.FEplaylist_aggregation="playlist_aggregation",sN);document.getElementById("theme-meta");document.getElementById("app");document.getElementById("player");document.getElementById("player-container-id");document.getElementById("player-control-container");document.getElementById("player-endscreen-container");document.getElementById("player-shorts-container");document.getElementById("player-cinematics-container");document.getElementById("full-screen-content-id");_.e7("init");var BfB=function(){},Dqi=_.GK(function(F){var W=F.data;
var E=F.inlineMetadata;var h=F.aspectRatio;var d=F.scrimStyle;var V=F.className;var R=F.useDefaultStyle;var M=new BfB,g=_.c("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",t=_.vX(function(){return(R==null?0:R())?g==="SHORTS_LOCKUP_STYLE_SLIM":W().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"x5GdUe"),C=_.vX(function(){return _.XO(E)||t()||!1},void 0,"pcPnBf"),B=function(){return(d==null?void 0:d())!==void 0?d==null?void 0:d():1};
F=_.uf(function(w){M&&(M.hostElement=w,X())});
_.ER(F,{visibilityCallback:function(w){var G=W().onFirstVisible;w&&G&&_.fK(G)},
showOption:{calledOnce:!0,state:"visible"}});V=_.ec("shortsLockupViewModelHost",V);var I=_.uf(),x={};x=_.ec(function(){return t(),"shortsLockupViewModelHostThumbnailContainer"},(x.shortsLockupViewModelHostThumbnailContainerAspectRatioTwoByThree=function(){return _.XO(h)===1},x.shortsLockupViewModelHostThumbnailContainerAspectRatioThreeByFour=function(){return _.XO(h)===2},x.shortsLockupViewModelHostThumbnailContainerRounded=function(){return!t()},x.shortsLockupViewModelHostThumbnailContainerCustomDimensions=
function(){return!_.c("web_shorts_2_by_3_lockups_study")&&!_.c("desktop_search_enable_two_by_three_shorts_aspect_ratio")},x));
var A,X=function(){if(M){var w;(w=A)==null||Qg(w);var G;M.hostElement&&((G=M.data)==null?0:G.inlinePlayerData)&&(A=FY({mediaRenderer:M,lockupElement:M.hostElement,thumbnailElement:I.value,videoPreviewOpts:ULW}))}};
_.q6(function(){M&&(M.data=W(),X())});
var P=_.vX(function(){return W().thumbnail},void 0,"FXJKOd"),b=_.vX(function(){return W().badge},void 0,"RHSDwe"),l=_.vX(function(){return W().onTap},void 0,"twXQme");
return _.z("ytm-shorts-lockup-view-model",{el:F,class:V},_.z(_.EG,null,_.z(_.kY,{command:l,className:_.ec("shortsLockupViewModelHostEndpoint","reel-item-endpoint",""),ariaHidden:function(){return!C()},
tabIndex:function(){return C()?0:-1}},_.z("div",{el:I,
class:x},_.z(_.v,{cond:P,then:function(){return _.z(_.T4,{data:function(){return P()},
alt:"",className:"shortsLockupViewModelHostThumbnail",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}}),null),_.z(_.v,{cond:C,
then:function(){return _.z(v0_,{data:W,scrimStyle:B,useDefaultStyle:R})}}),_.z(_.a6,{data:b},{badgeViewModel:function(w){return _.z(_.pp,{data:w.data,
class:"shortsLockupViewModelHostBadge",workaroundShortsIsThumbnailBadge:!0})}})),_.z(_.v,{cond:function(){return C()&&W().menuOnTap},
then:function(){return _.z(IxB,{data:W,inlineMetadata:!0})}}),_.z(_.v,{cond:function(){return!C()},
then:function(){return _.z(cSB,{data:W,useDefaultStyle:R})}})))},"Wa"),v0_=_.GK(function(F){var W=F.data;
var E=F.scrimStyle;var h=F.useDefaultStyle;var d=_.c("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",V=h&&_.c("web_hide_primary_text_for_pivot_panel"),R=_.vX(function(){return(h==null?0:h())?d==="SHORTS_LOCKUP_STYLE_SLIM":W().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"qtqqA");
F={};F=_.ec("shortsLockupViewModelHostInlineMetadata",(F.shortsLockupViewModelHostMetadataRounded=function(){return!R()},F.shortsLockupViewModelHostInlineMetadataShortScrim=function(){return(E==null?void 0:E())===3&&!_.c("enable_shorts_lockup_new_scrim")},F.shortsLockupViewModelHostInlineMetadataShortScrimNew=function(){return(E==null?void 0:E())===3&&_.c("enable_shorts_lockup_new_scrim")},F.shortsLockupViewModelHostInlineMetadataMediumScrim=function(){return(E==null?void 0:E())===2||(E==null?void 0:
E())===4},F.shortsLockupViewModelHostShowOverPlayer=function(){return!0},F),"image-overlay-text");
var M={};return _.z("div",{class:F},_.z("h3",{class:_.ec("shortsLockupViewModelHostMetadataTitle",(M.shortsLockupViewModelHostMetadataTitleTextShadow=function(){return(E==null?void 0:E())===4},M)),
"aria-label":function(){return W().accessibilityText}},_.z(_.v,{cond:function(){var g;
return!((g=W().overlayMetadata)==null||!g.primaryText)&&!V},
then:function(){return _.z(_.Ab,{text:function(){var g;return(g=W().overlayMetadata)==null?void 0:g.primaryText},
noEndpoints:!0,noStyleRuns:!0})}})),_.z(_.v,{cond:function(){var g;
return(g=W().overlayMetadata)==null?void 0:g.secondaryText},
then:function(){return _.z(xqa,{data:W,scrimStyle:E,className:void 0})}}))},"Xa"),cSB=_.GK(function(F){var W=F.data;
var E=F.useDefaultStyle;var h=_.c("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",d=_.vX(function(){return(E==null?0:E())?h==="SHORTS_LOCKUP_STYLE_SLIM":W().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"VQCGke");
F=_.ec(function(){return d()?"shortsLockupViewModelHostOutsideMetadata":"shortsLockupViewModelHostOutsideMetadata shortsLockupViewModelHostMetadataRounded"},"image-overlay-text");
var V,R=_.tb(function(){var g;(g=V)==null||g.click();return!1}),M={};
return _.z("div",{class:F,"on:click":R},_.z("h3",{class:_.ec("shortsLockupViewModelHostMetadataTitle","shortsLockupViewModelHostOutsideMetadataTitle","",(M.shortsLockupViewModelHostOutsideMetadataMissingTitle=function(){var g,t;return!((g=W().overlayMetadata)==null?0:(t=g.primaryText)==null?0:t.content)},M)),
"aria-label":function(){return W().accessibilityText}},_.z(_.kY,{ref:function(g){return void(V=g)},
command:function(){return W().onTap},
className:_.ec("shortsLockupViewModelHostEndpoint","shortsLockupViewModelHostOutsideMetadataEndpoint"),title:function(){var g,t;return(g=W().overlayMetadata)==null?void 0:(t=g.primaryText)==null?void 0:t.content}},_.z(_.v,{cond:function(){return!!W().overlayMetadata},
then:function(){return _.z(_.Ab,{text:function(){var g;return(g=W().overlayMetadata)==null?void 0:g.primaryText},
noEndpoints:!0,noStyleRuns:!0})}}))),_.z(_.v,{cond:function(){var g;
return(g=W().overlayMetadata)==null?void 0:g.secondaryText},
then:function(){return _.z(xqa,{data:W,className:"shortsLockupViewModelHostOutsideMetadataSubhead"})}}),_.z(_.v,{cond:function(){return W().menuOnTap},
then:function(){return _.z(IxB,{data:W,inlineMetadata:!1})}}))},"Ya"),xqa=_.GK(function(F){var W=F.data;
var E=F.scrimStyle;F=F.className;var h={};return _.z("div",{class:_.ec((h.shortsLockupViewModelHostMetadataSubhead=function(){return(E==null?void 0:E())!==4},h.shortsLockupViewModelHostMetadataSubheadNew=_.c("enable_shorts_lockup_new_scrim"),h.shortsLockupViewModelHostMetadataSubheadTextShadow=function(){return(E==null?void 0:E())===4},h),F),
"aria-hidden":"true"},_.z(_.Ab,{text:function(){var d;return(d=W().overlayMetadata)==null?void 0:d.secondaryText},
noStyleRuns:!0}))},"Za"),IxB=_.GK(function(F){var W=F.data;
var E=F.inlineMetadata;F={};F=_.ec((F.shortsLockupViewModelHostInlineMetadataMenu=function(){return E()},F.shortsLockupViewModelHostOutsideMetadataMenu=function(){return!E()},F.shortsLockupViewModelHostShowOverPlayer=function(){return!0},F),"image-overlay-text");
return _.z("div",{class:F},_.z(Vg,{data:function(){return{style:E()?"overlay":"mono",accessibilityLabel:W().menuOnTapA11yLabel,type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(h){h.preventDefault();h.stopPropagation();var d=_.Jm({elementsCommand:W().menuOnTap,forceNewState:!0});if(d==null?0:d.onclick)d.onclick(h)}}},
iconName:"MORE_VERT"}))},"$a");var eCk=_.XF({badgeViewModel:EGn}),VYo=function(){},ksU=_.Qt(QXY),AS_=_.GK(function(F){var W=F.data;
var E=F.inlineMetadata;var h=F.aspectRatio;var d=F.scrimStyle;var V=F.className;var R=F.useDefaultStyle;F=_.vX(function(){var g=W().entityId;return g?g.replace("shorts-shelf-item-","").replace("subscriptions-",""):""},void 0,"FWALZc");
var M=_.c("web_shorts_lockup_view_model_sink")?Dqi:ksU;return _.z("ytm-shorts-lockup-view-model-v2",{class:_.ec("shortsLockupViewModelHost",V)},_.z(_.a3e,{contentId:F,aspectRatio:function(){return(h==null?void 0:h())===1?1:(h==null?void 0:h())===2?2:4}},function(){return _.z(M,{data:W,
inlineMetadata:E,aspectRatio:h,scrimStyle:d,className:V,useDefaultStyle:R})}))},"ab");
_.ht(QXY);_.ht(RCk);_.ht(gHb);_.ht(zCY);_.ht(MYr);_.pK(AS_,"ytm-shorts-lockup-view-model-v2",{props:{data:_.Si,inlineMetadata:_.Si,aspectRatio:_.Si,scrimStyle:_.Si,className:_.Si,useDefaultStyle:_.Si}});var shO=16/9*210,LS=function(){var F=_.n.apply(this,arguments)||this;F.isExpandableContent=!1;F.hideShelfHeader=!1;F.engagementPanel=!1;F.buttonClasses=["arrow"];F.isSearch=!1;F.disableScrollEventListener=!1;F.containsLockup=!1;F.overrideArrowPositionForProductCard=!1;F.overrideArrowPositionForShoppingItemCard=!1;F.overrideArrowPositionForReelItems=!1;F.overrideArrowPositionForGridMovie=!1;F.overrideArrowPositionToCenter=!1;F.isSearchPostShelf=!1;F.overrideArrowPositionForMixedShelf=!1;F.overrideArrowPositionForMixedShelfShortsOnly=
!1;F.hasBigThumbsReelItems=!1;F.shouldUseMixedListHeight=!1;F.shouldUseShortsListHeight=!1;F.gridVideoWidth=0;F.isSearchVodShelf=!1;F.disableWheelScroll=!1;F.sizing="COMPACT";F.shortsLockupAspectRatio=0;return F};
_.k(LS,_.n);_.N=LS.prototype;
_.N.configureRendererStamper=function(){return{shownItems:{id:"items",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"yt-horizontal-list-renderer lockup",containerType:4},properties:{force16By9ThumbnailAspectRatio:"[[data.force16By9ThumbnailAspectRatio]]",sizing:"[[sizing]]"}},backgroundPromoRenderer:"ytd-background-promo-renderer",compactStationRenderer:"ytd-compact-station-renderer",gridChannelRenderer:"ytd-grid-channel-renderer",gridMoviePlaylistRenderer:"ytd-grid-movie-playlist-renderer",shoppingItemCardViewModel:{component:"ytd-shopping-item-card",
params:{className:"yt-horizontal-list-renderer"}},gridMovieRenderer:"ytd-grid-movie-renderer",gridPlaylistRenderer:"ytd-grid-playlist-renderer",gridRadioRenderer:"ytd-grid-radio-renderer",gridShowRenderer:"ytd-grid-show-renderer",gridVideoRenderer:{component:"ytd-grid-video-renderer",properties:{isSearch:"[[isSearch]]",width:"[[gridVideoWidth]]"}},merchShelfItemRenderer:"ytd-merch-shelf-item-renderer",shoppingCompanionCarouselItemRenderer:"ytd-shopping-companion-item-renderer",displayAdRenderer:"ytd-display-ad-renderer",
compactChannelRecommendationCardRenderer:"ytd-compact-channel-recommendation-card-renderer",postRenderer:"ytd-post-renderer",reelItemRenderer:{component:"ytd-reel-item-renderer",properties:{isSearch:"[[isSearch]]"}},shortsLockupViewModel:{component:"ytm-shorts-lockup-view-model-v2",params:{className:"yt-horizontal-list-renderer"},properties:{aspectRatio:"[[shortsLockupAspectRatio]]"}},sharedPostRenderer:"ytd-shared-post-renderer",verticalProductCardRenderer:{component:"ytd-vertical-product-card-renderer",
properties:{isExpandableContent:"[[isExpandableContent]]"}},buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer",buttonCardViewModel:{component:"button-card-view-model"}}},"data.previousButton":{id:"left-arrow",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundPrevClick]]"},classListBinding:"[[buttonClasses]]"}},initialRenderPriority:0,waitForSignal:"eocs"},"data.nextButton":{id:"right-arrow",mapping:{buttonRenderer:{component:"ytd-button-renderer",
properties:{"on-tap":"[[boundNextClick]]"},classListBinding:"[[buttonClasses]]"}}}}};
_.N.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.data&&this.data.items&&(this.ytdHorizontalListBehavior.useFloorScrolling=this.computeContainsPost(this.data),this.maybeUpdateSearchReelItemDimensions(),_.c("web_horizontal_list_lockup_arrow_killswitch")||this.maybeUpdateLockupAspectRatio())};
_.N.computeInitialCountNumber=function(F){if(!F)return 6;var W=F.items.some(function(V){return!!V.topicRecommendationsChipRenderer}),E=F.items.some(function(V){return!!V.displayAdRenderer}),h=this.computeShouldListItemsHaveEqualHeight(F),d=F.items.some(function(V){return!!V.gridPlaylistRenderer});
F=F.items.some(function(V){return!!V.shoppingItemCardViewModel});
return W?9:E?8:d||h?10:F?7:6};
_.N.computeContainsPost=function(F){return!!F&&!!F.items&&F.items.some(function(W){return!!W.postRenderer})};
_.N.computeContainsLockup=function(){if(_.c("web_horizontal_list_lockup_arrow_killswitch"))return!1;var F,W;return(F=this.data)==null?void 0:(W=F.items)==null?void 0:W.some(function(E){return!!E.lockupViewModel})};
_.N.maybeUpdateLockupAspectRatio=function(){var F,W;if(this.computeContainsLockup()&&((F=this.data)==null?0:(W=F.items)==null?0:W.length)){var E;F=hSS((E=this.data.items[0].lockupViewModel)==null?void 0:E.contentType,this.data.force16By9ThumbnailAspectRatio);E=ihn(F);E=this.computeLockupWidth()/E;_.V9(this.hostElement,{"--yt-horizontal-list-content-height":E+"px"})}};
_.N.computeOverrideArrowPositionForProductCard=function(F){if(this.isExpandableContent)return!1;var W;return!!(F==null?0:(W=F.items)==null?0:W.some(function(E){return!!E.verticalProductCardRenderer}))};
_.N.computeOverrideArrowPositionForShoppingItemCard=function(F){var W;return!!(F==null?0:(W=F.items)==null?0:W.some(function(E){return!!E.shoppingItemCardViewModel}))};
_.N.computeOverrideArrowPositionForReelItemRenderer=function(F){return this.containsReelItemRenderer(F)};
_.N.computeHasBigThumbsReelItems=function(F,W){return F&&this.containsReelItemRenderer(W)};
_.N.computeShouldListItemsHaveEqualHeight=function(F){return"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===(F==null?void 0:F.itemSizeConstraint)};
_.N.computeShouldListItemsHaveShortsHeight=function(F){return this.computeShouldListItemsHaveEqualHeight(F)&&!this.containsGridVideoRenderer(F)};
_.N.computeLockupWidth=function(){return this.isSearchVodShelf?360:210};
_.N.computeGridVideoWidth=function(){return this.shouldUseMixedListHeight?354:0};
_.N.containsReelItemRenderer=function(F){var W;return!!(F==null?0:(W=F.items)==null?0:W.some(function(E){return!(!E.reelItemRenderer&&!E.shortsLockupViewModel)}))};
_.N.containsGridVideoRenderer=function(F){var W;return!!(F==null?0:(W=F.items)==null?0:W.some(function(E){return!!E.gridVideoRenderer||!!E.lockupViewModel}))};
_.N.computeContainsGridMovieRenderer=function(F){var W;return!!(F==null?0:(W=F.items)==null?0:W.some(function(E){return!!E.gridMovieRenderer}))};
_.N.computeOverrideArrowPositionToCenter=function(F){return this.computeIsSearchPostShelf(F)};
_.N.computeIsSearchPostShelf=function(F){var W;return!!(F==null?0:(W=F.items)==null?0:W.some(function(E){var h,d;return((d=(h=E.postRenderer)==null?void 0:h.surface)!=null?d:"BACKSTAGE_SURFACE_TYPE_UNKNOWN")==="BACKSTAGE_SURFACE_TYPE_SEARCH"}))};
_.N.computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle=function(F){var W;return!!(F==null?0:(W=F.items)==null?0:W.some(function(E){var h,d,V;return((V=(h=E.backgroundPromoRenderer)==null?void 0:(d=h.style)==null?void 0:d.value)!=null?V:"BACKGROUND_PROMO_STYLE_TYPE_UNKNOWN")==="BACKGROUND_PROMO_STYLE_TYPE_EMBEDDED_CONTAINER"}))};
_.N.computeIsSearchVodShelf=function(F,W){return F&&this.containsGridVideoRenderer(W)};
_.N.computeDisableWheelScroll=function(F,W){return this.computeIsSearchVodShelf(F,W)};
_.N.computeSizing=function(){return this.isSearch?"STANDARD":"COMPACT"};
_.N.computeShortsLockupAspectRatio=function(F){return F&&_.c("web_shorts_2_by_3_lockups_no_search")&&!_.c("desktop_search_enable_two_by_three_shorts_aspect_ratio")?0:1};
_.N.maybeUpdateSearchReelItemDimensions=function(){this.isSearch&&this.hasBigThumbsReelItems&&_.V9(this.hostElement,{"--ytd-reel-item-thumbnail-height":shO+"px"})};
LS.prototype.dataChanged=LS.prototype.dataChanged;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],LS.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],LS.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.EL.YtdHorizontalListBehavior),_.Y("design:type",Object)],LS.prototype,"ytdHorizontalListBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],LS.prototype,"data",void 0);
_.T([_.O(),_.Y("design:type",Object)],LS.prototype,"isExpandableContent",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],LS.prototype,"hideShelfHeader",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],LS.prototype,"engagementPanel",void 0);_.T([_.O(),_.Y("design:type",Array)],LS.prototype,"buttonClasses",void 0);_.T([_.O(),_.Y("design:type",Object)],LS.prototype,"isSearch",void 0);
_.T([_.O(),_.Y("design:type",Object)],LS.prototype,"disableScrollEventListener",void 0);_.T([_.O({computed:"computeInitialCountNumber(data)"}),_.Y("design:type",Number)],LS.prototype,"initialCount",void 0);_.T([_.O({computed:"computeContainsPost(data)"}),_.Y("design:type",Boolean)],LS.prototype,"supportComponentResize",void 0);_.T([_.O({computed:"computeContainsPost(data)"}),_.Y("design:type",Boolean)],LS.prototype,"containsPost",void 0);
_.T([_.O({computed:"computeContainsLockup(data)",reflectToAttribute:!0}),_.Y("design:type",Object)],LS.prototype,"containsLockup",void 0);_.T([_.O({computed:"computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],LS.prototype,"containsBackgroundPromoRendererWithEmbeddedContainerStyle",void 0);
_.T([_.O({computed:"computeOverrideArrowPositionForProductCard(data)",reflectToAttribute:!0}),_.Y("design:type",Object)],LS.prototype,"overrideArrowPositionForProductCard",void 0);_.T([_.O({computed:"computeOverrideArrowPositionForShoppingItemCard(data)",reflectToAttribute:!0}),_.Y("design:type",Object)],LS.prototype,"overrideArrowPositionForShoppingItemCard",void 0);
_.T([_.O({computed:"computeOverrideArrowPositionForReelItemRenderer(data)",reflectToAttribute:!0}),_.Y("design:type",Object)],LS.prototype,"overrideArrowPositionForReelItems",void 0);_.T([_.O({computed:"computeContainsGridMovieRenderer(data)",reflectToAttribute:!0}),_.Y("design:type",Object)],LS.prototype,"overrideArrowPositionForGridMovie",void 0);
_.T([_.O({computed:"computeOverrideArrowPositionToCenter(data)",reflectToAttribute:!0}),_.Y("design:type",Object)],LS.prototype,"overrideArrowPositionToCenter",void 0);_.T([_.O({computed:"computeIsSearchPostShelf(data)",reflectToAttribute:!0}),_.Y("design:type",Object)],LS.prototype,"isSearchPostShelf",void 0);_.T([_.O({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.Y("design:type",Object)],LS.prototype,"overrideArrowPositionForMixedShelf",void 0);
_.T([_.O({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.Y("design:type",Object)],LS.prototype,"overrideArrowPositionForMixedShelfShortsOnly",void 0);_.T([_.O({computed:"computeHasBigThumbsReelItems(isSearch, data)",reflectToAttribute:!0}),_.Y("design:type",Object)],LS.prototype,"hasBigThumbsReelItems",void 0);
_.T([_.O({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.Y("design:type",Object)],LS.prototype,"shouldUseMixedListHeight",void 0);_.T([_.O({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.Y("design:type",Object)],LS.prototype,"shouldUseShortsListHeight",void 0);_.T([_.O({computed:"computeGridVideoWidth(data)",reflectToAttribute:!0}),_.Y("design:type",Object)],LS.prototype,"gridVideoWidth",void 0);
_.T([_.O({computed:"computeIsSearchVodShelf(isSearch, data)",reflectToAttribute:!0}),_.Y("design:type",Object)],LS.prototype,"isSearchVodShelf",void 0);_.T([_.O({computed:"computeDisableWheelScroll(isSearch, data)",reflectToAttribute:!0}),_.Y("design:type",Object)],LS.prototype,"disableWheelScroll",void 0);_.T([_.O({computed:"computeSizing(isSearch)"}),_.Y("design:type",Object)],LS.prototype,"sizing",void 0);
_.T([_.O({computed:"computeShortsLockupAspectRatio(isSearch)"}),_.Y("design:type",Object)],LS.prototype,"shortsLockupAspectRatio",void 0);_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],LS.prototype,"dataChanged",null);
_.r(LS,"yt-horizontal-list-renderer",function(){if(C$e===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-horizontal-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="left-arrow" class="style-scope yt-horizontal-list-renderer"></div>\n<div id="scroll-outer-container" class="style-scope yt-horizontal-list-renderer">\n  <div id="scroll-container" class="style-scope yt-horizontal-list-renderer">\n    <div id="items" class="style-scope yt-horizontal-list-renderer"></div>\n  </div>\n</div>\n<div id="right-arrow" class="style-scope yt-horizontal-list-renderer"></div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);C$e=F}F=C$e;return F},{mode:1});var LzU;var qCc=[10,12,14,16,18,20,24,28,32,36],$qH=[20,22,24,26,28,32,36,40,48,56,64,72,84,96,120],q_=function(){var F=_.n.apply(this,arguments)||this;F.fontFamily="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD";F.hideOverflow=!1;F.useRoboto=!1;F.fontClass="";F.overflown=!1;F.actionMap={"yt-window-resized":"resize"};return F};
_.k(q_,_.n);_.N=q_.prototype;
_.N.attached=function(){var F=this;switch(this.fontFamily){case "PROMO_FONT_FAMILY_ROBOTO_BOLD":this.useRoboto=!0;this.fontWeight=700;break;case "PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD":this.useRoboto=!1;this.fontWeight=700;break;case "PROMO_FONT_FAMILY_YOUTUBE_SANS_MEDIUM":this.useRoboto=!1;this.fontWeight=500;break;case "PROMO_FONT_FAMILY_YOUTUBE_SANS_SEMIBOLD":this.useRoboto=!1;this.fontWeight=600;break;case "PROMO_FONT_FAMILY_YOUTUBE_SANS_LIGHT":this.useRoboto=!1;this.fontWeight=400;break;default:this.useRoboto=
!1,this.fontWeight=700}this.setParentConstraints();_.wT(this,function(){F.resize()});
if(!_.tf){var W,E,h;(W=document)==null||(E=W.fonts)==null||(h=E.ready)==null||h.then(function(){F.resize()})}};
_.N.dataChanged=function(){this.resize()};
_.N.guideIsExpandedChanged=function(){this.resize()};
_.N.resize=function(){if(this.textNode.offsetWidth||this.textNode.offsetWidth){this.overflown&&(this.overflown=!1,this.textNode.classList.remove("overflown"));this.textNode.style.visibility="hidden";var F=this.getMaxNumLines(),W=this.getMinFont(),E=this.getMaxFont(),h=this.useRoboto?qCc:$qH;for(h=h.filter(function(V){return V<=E&&V>=W});h.length>1;){var d=Math.floor(h.length/2);
this.updateFontSize(h[d]);if(this.textNode.offsetWidth<=this.getMaxWidth()&&this.textNode.offsetHeight<=this.getMaxHeight()&&this.textNode.getClientRects().length<=F)h=h.slice(d,h.length);else if(this.textNode.offsetWidth>this.getMaxWidth()||this.textNode.offsetHeight>this.getMaxHeight()||this.textNode.getClientRects().length>F)h=h.slice(0,d);else break}this.updateFontSize(h[h.length-1]);this.textNode.style.visibility="inherit";this.handleOverflow(F)}};
_.N.handleOverflow=function(F){this.hideOverflow&&this.maxLines&&this.textNode.getClientRects().length>F&&(this.overflown=!0,this.textNode.classList.add("overflown"),this.textNode.style.setProperty("-webkit-line-clamp",F.toString()))};
_.N.updateFontSize=function(F){this.fontClass&&this.textNode.classList.remove(this.fontClass);this.fontClass=(this.useRoboto?"roboto-":"yt-sans-")+F;this.textNode.classList.add(this.fontClass)};
_.N.getMaxFont=function(){var F=this.useRoboto?qCc:$qH;F=F[F.length-1];return this.maxFontSize&&this.maxFontSize<=F?this.maxFontSize:F};
_.N.getMinFont=function(){var F=(this.useRoboto?qCc:$qH)[0];return this.minFontSize&&this.minFontSize>=F?this.minFontSize:F};
_.N.getMaxWidth=function(){return this.maxWidth?this.maxWidth:this.containerNode.offsetWidth};
_.N.getMaxHeight=function(){return this.maxHeight?this.maxHeight:this.containerNode.offsetHeight};
_.N.getMaxNumLines=function(){return this.maxLines&&this.text?this.maxLines+_.Yr(this.text).split("\n").length-1:Infinity};
_.N.setParentConstraints=function(){this.maxWidth&&(this.containerNode.style.maxWidth=this.maxWidth+"px");this.maxHeight&&(this.containerNode.style.maxHeight=this.maxHeight+"px");if(this.fontWeight){if(this.useRoboto&&this.fontWeight!==400&&this.fontWeight!==500)throw Error("Fh`"+this.fontWeight);this.textNode.style.fontWeight=this.fontWeight.toString()}};
q_.prototype.guideIsExpandedChanged=q_.prototype.guideIsExpandedChanged;q_.prototype.dataChanged=q_.prototype.dataChanged;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],q_.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.am),_.Y("design:type",Object)],q_.prototype,"ytdReduxBehavior",void 0);_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],q_.prototype,"actionHandlerBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],q_.prototype,"text",void 0);
_.T([_.O(),_.Y("design:type",String)],q_.prototype,"fontFamily",void 0);_.T([_.O(),_.Y("design:type",Number)],q_.prototype,"maxWidth",void 0);_.T([_.O(),_.Y("design:type",Number)],q_.prototype,"maxHeight",void 0);_.T([_.O(),_.Y("design:type",Number)],q_.prototype,"maxFontSize",void 0);_.T([_.O(),_.Y("design:type",Number)],q_.prototype,"minFontSize",void 0);_.T([_.O(),_.Y("design:type",Number)],q_.prototype,"maxLines",void 0);_.T([_.O(),_.Y("design:type",Object)],q_.prototype,"hideOverflow",void 0);
_.T([_.O({selector:_.c7I}),_.Y("design:type",Boolean)],q_.prototype,"guideIsExpanded",void 0);_.T([_.gQ("#container"),_.Y("design:type",HTMLElement)],q_.prototype,"containerNode",void 0);_.T([_.gQ("#text"),_.Y("design:type",HTMLElement)],q_.prototype,"textNode",void 0);_.T([_.Cz("text"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],q_.prototype,"dataChanged",null);
_.T([_.Cz("guideIsExpanded"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],q_.prototype,"guideIsExpandedChanged",null);q_=_.T([_.y({disableElementRegistration:!0,is:"yt-dynamic-sizing-formatted-string"})],q_);
_.r(q_,"yt-dynamic-sizing-formatted-string",function(){if(LzU!==void 0)return LzU;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-dynamic-sizing-formatted-string--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="dynamic-text-container style-scope yt-dynamic-sizing-formatted-string">\n  <yt-formatted-string id="text" disable-attributed-string="" text="[[text]]" class="style-scope yt-dynamic-sizing-formatted-string"></yt-formatted-string>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return LzU=F},{mode:1});var ZDu;_.X1U=function(F){_.Fe.call(this,F)};
_.k(_.X1U,_.Fe);var HDp=function(F){_.Fe.call(this,F)};
_.k(HDp,_.X1U);var $6=function(){return _.n.apply(this,arguments)||this};
_.k($6,_.n);$6.prototype.onTapSuspendedChannel=function(){var F;if((F=this.data)!=null&&F.serviceEndpoint){var W,E;(F=(E=_.D((W=this.data)==null?void 0:W.serviceEndpoint,_.T5))==null?void 0:E.url)?_.ao(F,void 0,void 0,window.top):(W=new HDp("Did not handle suspended account tap. No appealUrl."),_.a_(W))}else W=new HDp("Did not handle suspended account tap. No serviceEndpoint."),_.a_(W)};
$6.prototype.onTap=function(){var F=this,W=_.z4(),E,h=(E=_.Qd(W,{veType:7116}))!=null?E:void 0;_.jc(W,{visualElement:h});_.PB();this.saveRoleText();var d;if((d=this.data)==null?0:d.youtubeSuspended)this.onTapSuspendedChannel();else{var V=!1,R,M;(W=(M=_.D((R=this.data)==null?void 0:R.serviceEndpoint,_.XPa))==null?void 0:M.supportedTokens)&&W.forEach(function(g){if(g.accountSigninToken)if(V=!0,F.onAccountItemTap)F.onAccountItemTap(g.accountSigninToken.signinUrl);else _.ao(g.accountSigninToken.signinUrl,
void 0,void 0,window.top)});
if(!V){if(R=this.get("serviceEndpoint",this.data))V=!0,this.ytComponentBehavior.resolveCommand(R);V||_.fn(new HDp("Did not handle account switch tap. No token."))}}};
$6.prototype.saveRoleText=function(){if(this.data){var F=this.data,W=F.channelDelegationRole;if(W){var E,h=(E=_.D(F==null?void 0:F.serviceEndpoint,_.XPa))==null?void 0:E.supportedTokens;if(!h){var d,V,R,M;h=(d=_.D(F==null?void 0:F.serviceEndpoint,_.J7))==null?void 0:(V=d.popup)==null?void 0:(R=V.confirmDialogRenderer)==null?void 0:(M=R.confirmButton)==null?void 0:M.buttonRenderer;var g;h=(g=_.D(h==null?void 0:h.command,_.Mc))==null?void 0:g.commands;if(!h)return;var t;h=(t=_.D(h[1],_.XPa))==null?
void 0:t.supportedTokens}if(h){g=void 0;t=_.U(h);for(h=t.next();!h.done;h=t.next())if(h=h.value,h.datasyncIdToken){g=h.datasyncIdToken.datasyncIdToken;break}if(g){var C;a:{if(_.WCS()&&(t=_.B8w(g+"::pom"))){t=new v2(t);break a}t=void 0}(C=t)==null||C.set("role_text",W);if((tVr?tVr:window.location).href.indexOf("studio")!==-1&&(C=Ezr())){t=C.src?(new URL(C.src)).origin:"*";var B;(B=C.contentWindow)==null||B.postMessage({action:"save_pom_role",datasyncId:g,roleText:W},t)}}}}}};
_.Sn.Object.defineProperties($6.prototype,{enableRingForActiveAccount:{configurable:!0,enumerable:!0,get:function(){var F;return!((F=this.data)==null||!F.isSelected)}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){var F,W,E=(F=this.data)==null?void 0:(W=F.accountPhoto)==null?void 0:W.thumbnails;return E&&E.length>0&&(E[0].height===36||E[0].height===48)?E[0].height:40}}});
$6.prototype.onTap=$6.prototype.onTap;_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],$6.prototype,"ytComponentBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],$6.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],$6.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!1}),_.Y("design:type",Function)],$6.prototype,"onAccountItemTap",void 0);
_.T([_.O({reflectToAttribute:!0}),_.a("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],$6.prototype,"enableRingForActiveAccount",null);_.T([_.O({reflectToAttribute:!0}),_.a("data"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],$6.prototype,"thumbnailSize",null);_.T([_.R4("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],$6.prototype,"onTap",null);$6=_.T([_.y({is:"ytd-account-item-renderer",disableElementRegistration:!0})],$6);
_.r($6,"ytd-account-item-renderer",function(){if(ZDu!==void 0)return ZDu;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-account-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-icon-item class="style-scope ytd-account-item-renderer">\n  <yt-img-shadow slot="item-icon" height="[[thumbnailSize]]" item-icon="" thumbnail="[[data.accountPhoto]]" width="[[thumbnailSize]]" class="style-scope ytd-account-item-renderer">\n  </yt-img-shadow>\n  <tp-yt-paper-item-body two-line="" class="style-scope ytd-account-item-renderer">\n    <yt-formatted-string id="channel-title" text="[[data.accountName]]" class="style-scope ytd-account-item-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string respect-lang-dir="" secondary="" text="[[data.channelHandle]]" class="style-scope ytd-account-item-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string secondary="" text="[[data.accountByline]]" class="style-scope ytd-account-item-renderer">\n    </yt-formatted-string>\n  </tp-yt-paper-item-body>\n  <yt-icon id="selected" hidden="[[!data.isSelected]]" icon="yt-icons:check" class="style-scope ytd-account-item-renderer">\n  </yt-icon>\n  <yt-icon id="studio-redirect" aria-label$="[[getSimpleString(data.studioRedirectVisualHint)]]" hidden="[[!data.isRedirectToStudio]]" icon="yt-icons:open_in_new" class="style-scope ytd-account-item-renderer">\n  </yt-icon>\n  <tp-yt-paper-tooltip for="studio-redirect" hidden="[[!data.isRedirectToStudio]]" position="left" class="style-scope ytd-account-item-renderer">\n    [[getSimpleString(data.studioRedirectVisualHint)]]\n  </tp-yt-paper-tooltip>\n</tp-yt-paper-icon-item>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return ZDu=F},{mode:1});var PQc;var ZM=function(){return _.n.apply(this,arguments)||this};
_.k(ZM,_.n);ZM.prototype.onClickEditIcon=function(){this.data&&this.data.onTapCommand&&_.WZ().resolve(_.EJ).resolveCommand(this.data.onTapCommand,{form:{element:this.hostElement}})};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],ZM.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],ZM.prototype,"data",void 0);ZM=_.T([_.y({is:"ytd-identity-chip-renderer",disableElementRegistration:!0})],ZM);
_.r(ZM,"ytd-identity-chip-renderer",function(){if(PQc!==void 0)return PQc;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-identity-chip-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-identity-chip-renderer">\n  <h3 id="header-text" class="style-scope ytd-identity-chip-renderer">[[data.headerText]]</h3>\n</div>\n<div id="content-row" class="style-scope ytd-identity-chip-renderer">\n  <div id="info-div" class="style-scope ytd-identity-chip-renderer">\n    <img id="avatar-image" alt="" src$="[[data.avatarUrl]]" class="style-scope ytd-identity-chip-renderer">\n    <div id="name-handle-div" class="style-scope ytd-identity-chip-renderer">\n      <p id="name" class="style-scope ytd-identity-chip-renderer">[[data.name]]</p>\n      <p id="handle" hidden="[[!data.handle]]" dir="auto" class="style-scope ytd-identity-chip-renderer"><span class="style-scope ytd-identity-chip-renderer">@</span>[[data.handle]]</p>\n    </div>\n  </div>\n  <div id="edit-icon" class="style-scope ytd-identity-chip-renderer">\n    <yt-icon-button id="edit-icon-button" aria-label$="[[data.onTapLabel]]" on-click="onClickEditIcon" class="style-scope ytd-identity-chip-renderer">\n      <yt-icon id="edit-icon" icon="yt-icons:edit" class="style-scope ytd-identity-chip-renderer"></yt-icon>\n    </yt-icon-button>\n  </div>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return PQc=F},{mode:1});var JSc;var axM;var fxp;var OD_;var XI=function(){var F=_.n.apply(this,arguments)||this;F.richItemMinWidth=_.dV("wn_grid_min_item_width",310);F.isShorts=!1;F.isWatchNext=!1;F.isExploreHub=!1;return F};
_.k(XI,_.n);_.Sn.Object.defineProperties(XI.prototype,{cardItems:{configurable:!0,enumerable:!0,get:function(){var F=[],W=this.isShorts?this.slimItemsPerRow:this.itemsPerRow;this.isWatchNext&&_.V9(this.hostElement,{"--ytd-ghost-grid-items-per-row":""+this.itemsPerRow,"--ytd-ghost-grid-min-width":this.richItemMinWidth+"px"});var E;if(((E=this.data)==null?0:E.rows)&&W)for(W*=this.data.rows,E=0;E<W;E++)F.push({});return F}}});
_.T([_.J(_.am),_.Y("design:type",Object)],XI.prototype,"ytdReduxBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],XI.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],XI.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0,selector:_.Hz,value:3}),_.Y("design:type",Number)],XI.prototype,"itemsPerRow",void 0);_.T([_.O({selector:_.IIR,value:6}),_.Y("design:type",Number)],XI.prototype,"slimItemsPerRow",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Number)],XI.prototype,"richItemMinWidth",void 0);_.T([_.O({reflectToAttribute:!0,selector:_.XD}),_.Y("design:type",Boolean)],XI.prototype,"miniMode",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],XI.prototype,"isShorts",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],XI.prototype,"isWatchNext",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],XI.prototype,"isExploreHub",void 0);
_.T([_.a("data.rows","isShorts","slimItemsPerRow","itemsPerRow"),_.Y("design:type",Array),_.Y("design:paramtypes",[])],XI.prototype,"cardItems",null);XI=_.T([_.y({is:"ytd-ghost-grid-renderer",disableElementRegistration:!0})],XI);
_.bDi=_.We()(XI,"ytd-ghost-grid-renderer",function(){if(OD_===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ghost-grid-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="ghost-grid style-scope ytd-ghost-grid-renderer">\n  <template is="dom-repeat" items="[[cardItems]]" class="style-scope ytd-ghost-grid-renderer">\n    <div class="ghost-card style-scope ytd-ghost-grid-renderer">\n      <div class="rich-thumbnail skeleton-bg-color style-scope ytd-ghost-grid-renderer"></div>\n      <div class="details style-scope ytd-ghost-grid-renderer">\n        <div class="channel-avatar skeleton-bg-color style-scope ytd-ghost-grid-renderer"></div>\n        <div class="details-text-shell style-scope ytd-ghost-grid-renderer">\n          <div class="rich-video-title text-shell skeleton-bg-color style-scope ytd-ghost-grid-renderer"></div>\n          <div class="video-meta rich-video-meta text-shell skeleton-bg-color style-scope ytd-ghost-grid-renderer"></div>\n        </div>\n      </div>\n    </div>\n  </template>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);OD_=F}F=OD_;return F},{allowedProps:["data",
"isShorts","isWatchNext","isExploreHub","richItemMinWidth"],mode:1});_.pK(_.GK(function(F){var W=_.o4(F,{numberOfComments:3}).numberOfComments,E=_.o4(F,{isInitialLoad:!1}).isInitialLoad,h=_.o4(F,{engagementPanel:!1}).engagementPanel,d=function(){return Math.min(Number(W==null?void 0:W())||20,20)};
return _.z("yt-ghost-comments",{class:"ytGhostCommentsHost"},_.z(_.v,{cond:function(){return!(h==null?0:h())&&(E==null?void 0:E())},
then:function(){return _.z("div",{class:"ytGhostCommentsComments"},_.z("div",{class:"ytGhostCommentsGhostCommentsHeader"},_.z("div",{class:_.ec("ytGhostCommentsGhostCommentCount","ytGhostCommentsGhostFill")}),_.z("div",{class:_.ec("ytGhostCommentsGhostSort","ytGhostCommentsGhostFill")})),_.z("div",{class:"ytGhostCommentsGhostCard"},_.z("div",{class:"ytGhostCommentsAvatar"},_.z("div",{class:"ytGhostCommentsCircle"})),_.z("div",{class:"ytGhostCommentsComments"},_.z("div",{class:"ytGhostCommentsMeta"},
_.z("div",{class:_.ec("ytGhostCommentsGhostInputPlaceholder","ytGhostCommentsGhostFill")})),_.z("div",{class:_.ec("ytGhostCommentsGhostInputUnderline","ytGhostCommentsGhostFill")}))))}}),_.z("div",{class:"ytGhostCommentsComments"},_.z(_.xF,{each:function(){return Array((d==null?void 0:d())||3)}},function(){return _.z("div",{class:"ytGhostCommentsGhostCard"},_.z("div",{class:"ytGhostCommentsAvatar"},_.z("div",{class:"ytGhostCommentsCircle"})),_.z("div",{class:"ytGhostCommentsHost"},_.z("div",{class:"ytGhostCommentsMeta"},
_.z("div",{class:_.ec("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")})),_.z("div",{class:_.ec("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.z("div",{class:_.ec("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.z("div",{class:"ytGhostCommentsGhostLikeDislike"},_.z("div",{class:_.ec("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.z("div",{class:_.ec("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}))))})))},"bb"),"yt-ghost-comments",{props:{numberOfComments:_.TS,
isInitialLoad:_.TS,engagementPanel:_.TS}});_.Hr("multiPageMenuSectionItems","continuationItemRenderer","ytd-continuation-item-renderer");var Hh=function(){var F=_.n.apply(this,arguments)||this;F.isOverridable=!1;F.spinnerActive=!1;F.showButton=!1;F.isCommentsSection=!1;F.engagementPanel=!0;F.isShortsGrid=!1;F.isShortsPage=!1;F.isWatchPage=!1;F.ghostCardExperimentEnabled=_.c("show_ghost_comments_shorts_watch")||_.c("show_ghost_comments_desktop_watch");F.originalShowButton=!1;F.endOfList=!1;return F};
_.k(Hh,_.n);_.N=Hh.prototype;_.N.resetIntersectionObserver=function(){var F;(F=this.observer)==null||F.disconnect();this.observer=void 0};
_.N.triggerContinuation=function(){if(!this.showButton&&!this.endOfList){this.spinnerActive=!0;var F,W;((F=this.data)==null?void 0:F.trigger)==="CONTINUATION_TRIGGER_ON_ITEM_SHOWN"&&((W=this.data)==null?0:W.continuationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.continuationEndpoint)}};
_.N.initializeIntersectionObserver=function(){var F=this;this.resetIntersectionObserver();this.continuationTriggerOffset&&(this.observer=new IntersectionObserver(function(W){W=_.U(W);for(var E=W.next();!E.done;E=W.next())E.value.isIntersecting&&(F.triggerContinuation(),F.resetIntersectionObserver())},{rootMargin:"0px 0px "+this.continuationTriggerOffset+"px",
threshold:0}),this.observer.observe(this.hostElement))};
_.N.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},isShortsCommentsSection:{id:"ghost-comment-section",mapping:{ghostCommentsSectionRenderer:{component:"yt-ghost-comments"}}},"data.ghostCards":{id:"ghost-cards",mapping:{ghostGridRenderer:{component:"ytd-ghost-grid-renderer",properties:{isShorts:"[[isShortsGrid]]"}}}}}};
_.N.observeData=function(){this.endOfList=this.spinnerActive=!1;this.ytRendererBehavior.invalidate(!1);var F;((F=this.data)==null?0:F.continuationEndpoint)&&(F=_.D(this.data.continuationEndpoint,_.fQ))&&this.ytdReduxBehavior.dispatch(_.dR({type:"SET_CONTINUATION_COMMAND",payload:{continuationCommand:F}}))};
_.N.onShow=function(){this.numberOfGhostCommentsChanged();this.continuationTriggerOffset||this.triggerContinuation()};
_.N.onYtServiceRequestSentForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!0,this.originalShowButton=this.showButton,this.showButton=!1)};
_.N.onServiceRequestCompleted=function(F,W){if(!_.c("kevlar_hide_spinner_on_empty_continuation_killswitch")){var E;(E=W.actions)!=null&&E.length||(this.spinnerActive=!1,this.endOfList=!0)}};
_.N.onYtServiceRequestCompletedForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!1,this.showButton=this.originalShowButton)};
_.N.showButtonChanged=function(){this.showButton&&(this.spinnerActive=!1);this.ytRendererBehavior.invalidate(!1)};
_.N.continuationTriggerOffsetChanged=function(){this.initializeIntersectionObserver()};
_.N.numberOfGhostCommentsChanged=function(){if(this.ghostCardExperimentEnabled){var F=3;if(this.engagementPanel){var W,E,h;F=Math.floor(((((W=this.hostElement)==null?void 0:(E=W.parentElement)==null?void 0:(h=E.parentElement)==null?void 0:h.scrollHeight)||108)-108)/108);F=this.isInitialLoad?Math.max(F,3):3}W=[].concat(_.x9(this.hostElement.querySelectorAll("yt-ghost-comments")));W=_.U(W);for(E=W.next();!E.done;E=W.next())E=E.value,E.numberOfComments=F,E.isInitialLoad=this.isInitialLoad,E.engagementPanel=
this.engagementPanel}};
_.N.detached=function(){this.resetIntersectionObserver()};
_.Sn.Object.defineProperties(Hh.prototype,{isShortsCommentsSection:{configurable:!0,enumerable:!0,get:function(){return this.isCommentsSection&&!this.showButton&&(_.c("show_ghost_comments_shorts_watch")&&this.engagementPanel||_.c("show_ghost_comments_desktop_watch"))?{ghostCommentsSectionRenderer:!0}:!1}}});
Hh.prototype.numberOfGhostCommentsChanged=Hh.prototype.numberOfGhostCommentsChanged;Hh.prototype.continuationTriggerOffsetChanged=Hh.prototype.continuationTriggerOffsetChanged;Hh.prototype.showButtonChanged=Hh.prototype.showButtonChanged;Hh.prototype.onYtServiceRequestCompletedForButtonRenderer=Hh.prototype.onYtServiceRequestCompletedForButtonRenderer;Hh.prototype.onServiceRequestCompleted=Hh.prototype.onServiceRequestCompleted;Hh.prototype.onYtServiceRequestSentForButtonRenderer=Hh.prototype.onYtServiceRequestSentForButtonRenderer;
Hh.prototype.observeData=Hh.prototype.observeData;_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],Hh.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Hh.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.ny.YtVisibilityBehavior),_.Y("design:type",Object)],Hh.prototype,"ytVisibilityBehavior",void 0);_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],Hh.prototype,"ytComponentBehavior",void 0);
_.T([_.J(_.am),_.Y("design:type",Object)],Hh.prototype,"ytdReduxBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],Hh.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Object)],Hh.prototype,"isOverridable",void 0);_.T([_.O(),_.Y("design:type",Object)],Hh.prototype,"spinnerActive",void 0);_.T([_.O(),_.Y("design:type",Object)],Hh.prototype,"showButton",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],Hh.prototype,"isCommentsSection",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],Hh.prototype,"engagementPanel",void 0);_.T([_.O(),_.Y("design:type",Object)],Hh.prototype,"isShortsGrid",void 0);_.T([_.O({reflectToAttribute:!0,selector:_.xCo}),_.Y("design:type",Object)],Hh.prototype,"isShortsPage",void 0);_.T([_.O({reflectToAttribute:!0,selector:_.JE}),_.Y("design:type",Object)],Hh.prototype,"isWatchPage",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],Hh.prototype,"ghostCardExperimentEnabled",void 0);
_.T([_.O(),_.Y("design:type",Number)],Hh.prototype,"continuationTriggerOffset",void 0);_.T([_.O(),_.Y("design:type",Object)],Hh.prototype,"endOfList",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Hh.prototype,"isInitialLoad",void 0);_.T([_.gQ("ytd-button-renderer"),_.Y("design:type",_.w5)],Hh.prototype,"buttonRenderer",void 0);_.T([_.O(),_.Y("design:type",Object)],Hh.prototype,"buttonOverrides",void 0);
_.T([_.O(),_.a("engagementPanel","isCommentsSection","showButton","isShortsPage","isWatchPage"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Hh.prototype,"isShortsCommentsSection",null);_.T([_.Cz("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Hh.prototype,"observeData",null);
_.T([_.R4("yt-service-request-sent-button-renderer"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Hh.prototype,"onYtServiceRequestSentForButtonRenderer",null);_.T([_.R4("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.uz]),_.Y("design:returntype")],Hh.prototype,"onServiceRequestCompleted",null);
_.T([_.R4("yt-service-request-completed-button-renderer"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Hh.prototype,"onYtServiceRequestCompletedForButtonRenderer",null);_.T([_.Cz("showButton"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Hh.prototype,"showButtonChanged",null);
_.T([_.Cz("continuationTriggerOffset"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Hh.prototype,"continuationTriggerOffsetChanged",null);_.T([_.ea("isInitialLoad","engagementPanel"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Hh.prototype,"numberOfGhostCommentsChanged",null);Hh=_.T([_.y({is:"ytd-continuation-item-renderer",disableElementRegistration:!0})],Hh);
_.r(Hh,"ytd-continuation-item-renderer",function(){if(fxp!==void 0)return fxp;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-continuation-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="ghost-cards" class="style-scope ytd-continuation-item-renderer"></div>\n<div id="ghost-comment-section" class="style-scope ytd-continuation-item-renderer"></div>\n<tp-yt-paper-spinner id="spinner" active="[[spinnerActive]]" hidden="[[showButton]]" class="style-scope ytd-continuation-item-renderer">\n</tp-yt-paper-spinner>\n<div id="button" hidden="[[!showButton]]" class="style-scope ytd-continuation-item-renderer"></div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return fxp=F},{mode:1});var lxM;var Ph=function(){var F=_.n.apply(this,arguments)||this;F.downloadProgress=0;F.transferState="TRANSFER_STATE_UNKNOWN";F.downloadState="DOWNLOAD_STATE_UNKNOWN";F.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";F.offlineVideoPolicyExpirationTimestamp=0;F.downloadedVideoPlaybackPosition=0;return F};
_.k(Ph,_.n);Ph.prototype.dataChanged=function(){var F;this.videoData=_.D((F=this.data)==null?void 0:F.renderer,NNe);this.transferStateChanged()};
Ph.prototype.downloadProgressChanged=function(){if(this.entityInfo){var F=Object.assign({},this.videoData),W=ITb(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),E=W.publishedTimeText,h=W.badges;F.shortViewCountText=W.shortViewCountText;F.publishedTimeText=E;F.badges=h;this.set("videoData",F)}};
Ph.prototype.transferStateChanged=function(){if(this.entityInfo){var F=this.transferState==="TRANSFER_STATE_PAUSED_BY_USER",W=_.cz(this.transferState)||this.transferState==="TRANSFER_STATE_FAILED"||this.transferState==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!Ix(this.entityInfo.policyEntity),E=Object.assign({},this.videoData),h=ITb(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),d=h.publishedTimeText,V=h.badges;E.shortViewCountText=
h.shortViewCountText;E.publishedTimeText=d;E.badges=V;E.isDisabled=W;E.isWatched=this.downloadedVideoPlaybackPosition>0;E.navigationEndpoint=W?void 0:wye(this.videoData.videoId,this.downloadedVideoPlaybackPosition,this.entityInfo.videoEntity.lengthSeconds);var R;F&&((R=this.videoData)==null?0:R.videoId)&&!_.c("dl_resume_click_killswitch")&&(E.isDisabled=!1,E.navigationEndpoint={offlineVideoEndpoint:{videoId:this.videoData.videoId,action:"ACTION_RESUME"}});E.thumbnailOverlays=BLG(this.entityInfo,this.transferState,
this.downloadState,this.downloadedVideoPlaybackPosition);this.set("videoData",E)}};
Ph.prototype.transferStateChanged=Ph.prototype.transferStateChanged;Ph.prototype.downloadProgressChanged=Ph.prototype.downloadProgressChanged;Ph.prototype.dataChanged=Ph.prototype.dataChanged;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Ph.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.am),_.Y("design:type",Object)],Ph.prototype,"ytdReduxBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],Ph.prototype,"data",void 0);
_.T([_.O(),_.Y("design:type",Object)],Ph.prototype,"videoData",void 0);_.T([_.O({selector:O_,selectorArgs:["videoData.videoId"]}),_.Y("design:type",Object)],Ph.prototype,"downloadProgress",void 0);_.T([_.O(),_.Y("design:type",Number)],Ph.prototype,"relativeDateReference",void 0);_.T([_.O({selector:_.ax,selectorArgs:["videoData.videoId"]}),_.Y("design:type",Object)],Ph.prototype,"transferState",void 0);
_.T([_.O({selector:iio,selectorArgs:["videoData.videoId"]}),_.Y("design:type",Object)],Ph.prototype,"downloadState",void 0);_.T([_.O({selector:$Cr,selectorArgs:["videoData.videoId"]}),_.Y("design:type",Object)],Ph.prototype,"offlinePolicyAction",void 0);_.T([_.O({selector:Zio,selectorArgs:["videoData.videoId"]}),_.Y("design:type",Object)],Ph.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);
_.T([_.O({selector:lC,selectorArgs:["videoData.videoId"]}),_.Y("design:type",Object)],Ph.prototype,"downloadedVideoPlaybackPosition",void 0);_.T([_.O({selector:HiY,selectorArgs:["videoData.videoId"]}),_.Y("design:type",Object)],Ph.prototype,"entityInfo",void 0);_.T([_.O({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],Ph.prototype,"isDownloading",void 0);_.T([_.Cz("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Ph.prototype,"dataChanged",null);
_.T([_.Cz("downloadProgress"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Ph.prototype,"downloadProgressChanged",null);_.T([_.Cz("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadState","downloadedVideoPlaybackPosition"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Ph.prototype,"transferStateChanged",null);
Ph=_.T([_.y({is:"ytd-downloaded-video-grid-video-renderer",disableElementRegistration:!0})],Ph);
_.r(Ph,"ytd-downloaded-video-grid-video-renderer",function(){if(lxM!==void 0)return lxM;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-downloaded-video-grid-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-grid-video-renderer id="video" data="[[videoData]]" is-downloading="[[isDownloading]]" class="style-scope ytd-downloaded-video-grid-video-renderer"></ytd-grid-video-renderer>');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return lxM=F},{mode:_.E6("kevlar_poly_si_batch_j025")?1:2});var n0_;var Jn=function(){};
Jn.prototype.resolve=function(F,W){var E=this;return _.e(function(h){return _.Q(h,E.resolveCommand(F,W),0)})};var ySp,a8;ySp=IQS(function(F){return F.targetId},{shouldPersist:!1});
a8=ySp.updateData;_.jhu=ySp.useUpdatableData;var iDX,rSp;iDX=IQS(function(F){return F.targetId});
rSp=iDX.updateData;_.Tfi=iDX.useUpdatableData;var o0a=tYr.bind(null,a8),GsH=tYr.bind(null,rSp);(function(F,W,E){var h=_.D(E==null?void 0:E.updatedRenderer,_.f5_);return h?F({targetId:W},function(){return h}):!1}).bind(null,a8);var fS=function(){};
_.k(fS,Jn);fS.prototype.resolveCommand=function(F){var W;return _.e(function(E){W=_.D(F,_.J$k);if(!W)return E.return();o0a(W.targetId,W);_.gG(E)})};var ON=function(){var F=_.zK.apply(this,arguments)||this;F.continuationActionMap={"yt-append-continuation-items-action":"handleAppendContinuationItemsAction","yt-reload-continuation-items-command":"handleReloadContinuationItemsCommand","yt-show-reload-ui-command":"handleShowReloadUiCommand"};return F};
_.k(ON,_.zK);_.N=ON.prototype;_.N.configureContinuationPathMap=function(){return{}};
_.N.beforeRegister=function(){this.continuationPathMap=this.configureContinuationPathMap()};
_.N.attached=function(){this.actionHandlerBehavior.registerActionMap(this.continuationActionMap)};
_.N.detached=function(){this.actionHandlerBehavior.unregisterActionMap(this.continuationActionMap)};
_.N.observeData=function(){this.data&&(this.continuationIsReloading=!1)};
_.N.handleAppendContinuationItemsAction=function(F){var W=_.D(F,_.z4e);if(this.data&&this.data.targetId&&W&&this.continuationPathMap&&W.targetId===this.data.targetId){var E=OKb(F);if((F=E&&this.continuationPathMap[E])&&E){E=this.get(F,this.data);var h;a:{for(h=0;h<E.length;h++){var d=E[h],V=void 0,R=!!_.D((V=_.D(d,SnM))==null?void 0:V.content,_.WyM);if(_.D(d,_.QT)||R)break a}h=E.length}F="data."+F;W.continuationItems?h===E.length-1?(this.pop(F),this.push.apply(this,[F].concat(_.x9(W.continuationItems)))):
h===E.length?this.push.apply(this,[F].concat(_.x9(W.continuationItems))):this.splice.apply(this,[F,h,1].concat(_.x9(W.continuationItems))):this.splice(F,h,1);(_.c("web_enable_voting_animation")||_.c("enable_music_web_cairo_voting_animation"))&&_.hF(this.hostElement,"yt-append-continuation-items-action-finished");_.hF(this.hostElement,"yt-next-continuation-data-updated",null,{bubbles:!1})}else _.OB(new _.xC("append continuation path does not exist",E))}};
_.N.handleReloadContinuationItemsCommand=function(F){var W=_.D(F,_.J$k);if(this.data&&W){if(_.c("web_explore_hub")||_.c("web_client_explore_hub")||_.c("web_explore_hub_on_hover")||_.c("web_client_explore_hub_on_hover"))try{_.WZ().resolve(fS).resolveCommand(F)}catch(V){}if(this.data.targetId&&this.continuationPathMap&&W.targetId===this.data.targetId&&(!_.c("web_enable_channel_pivot_panel")||this.data.targetId!=="browse-feedFEsfv_channel_pivot"||W.slot!=="RELOAD_CONTINUATION_SLOT_HEADER")){var E,h=
(E=W.slot)==null?void 0:E.replace("RELOAD_CONTINUATION_SLOT_","");E=(F=OKb(F)+"-"+(h==null?void 0:h.toLowerCase()))&&this.continuationPathMap[F];if(!E||!F||!h)_.OB(new _.xC("reload continuation path does not exist",F));else if(!this.reloadContinuationItemsCommandMatcher||this.reloadContinuationItemsCommandMatcher(W)){if(W.replaceWithFirstItem){var d;this.set("data."+E,((d=W.continuationItems)==null?0:d.length)?W.continuationItems[0]:{})}else this.set("data."+E,W.continuationItems?W.continuationItems:
[]);this.continuationIsReloading=!1;_.hF(this.hostElement,"yt-reload-continuation-finish",null,{bubbles:!1})}}}};
_.N.handleShowReloadUiCommand=function(F){F=_.D(F,$Si);var W;((W=this.data)==null?0:W.targetId)&&(F==null?0:F.targetId)&&F.targetId===this.data.targetId&&(this.continuationIsReloading=!0)};
ON.prototype.observeData=ON.prototype.observeData;_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],ON.prototype,"actionHandlerBehavior",void 0);_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],ON.prototype,"componentBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],ON.prototype,"data",void 0);_.T([_.O({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],ON.prototype,"continuationIsReloading",void 0);
_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ON.prototype,"observeData",null);ON=_.T([_.tT()],ON);_.br=[_.Ok.YtComponentBehavior,_.FM.YtActionHandlerBehavior,ON.prototype];_.lr={};_.lr.YtNextContinuationBehavior=[_.ua.YtTaskEmitterBehavior,{_noAccessors:!0,listeners:{"yt-load-next-continuation":"onLoadNextContinuation_"},nextContinuation:void 0,pendingContinuationRequest_:void 0,listeningForNavigate_:!1,created:function(){},
detached:function(){this.stopListeningForNavigate_()},
canUseContextualNetworkManager_:function(){return this.shouldUseTaskManager()&&!!this.getNetworkManager()},
startListeningForNavigate_:function(){this.canUseContextualNetworkManager_()||this.listeningForNavigate_||(document.addEventListener("yt-navigate-start",_.UO(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!0)},
stopListeningForNavigate_:function(){this.canUseContextualNetworkManager_()||(document.removeEventListener("yt-navigate-start",_.UO(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!1)},
onLoadNextContinuation_:function(F,W){F.stopPropagation();this.nextContinuation.requestPath?this.makeNextContinuationRequest_(this.nextContinuation.requestPath,W,{}):(F={locationRetrieved:function(E){this.makeNextContinuationRequest_(E,W,{})}.bind(this)},_.hF(this.hostElement,"yt-retrieve-location",F))},
makeNextContinuationRequest_:function(F,W,E){_.JF("nct");this.pendingContinuationRequest_&&this.pendingContinuationRequest_.cancel();F=W(F);var h;this.canUseContextualNetworkManager_()&&(h=this.getNetworkManager());h||(h=_.WZ().resolve(_.Ag));W=_.iz.instance;if(_.b0("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"&&W){h=_.SF([F.startsWith("/")?F.substr(1):F]);var d,V;E=_.no(W,{},h,E==null?void 0:(d=E.context)==null?void 0:(V=d.clickTracking)==null?void 0:V.clickTrackingParams).then(function(R){return{response:R}})}else E=
this.nextContinuation.usePost?h.postData(F,E):h.fetchData(F);
E.then(this.updateNextContinuationData_.bind(this,F));this.pendingContinuationRequest_=E;this.startListeningForNavigate_()},
updateNextContinuationData_:function(F,W){var E=this;_.JF("ncl");this.pendingContinuationRequest_=void 0;if(W){var h={};this.nextContinuation&&(h=this.nextContinuation);if(W.response&&W.response.continuationContents&&W.response.continuationContents[h.continuationType]){F=W.response.continuationContents[h.continuationType];var d=h.header||"data.header",V=F[h.responseHeaderKey||"header"];V&&this.set(d,V);d=h.contentsArray||"data.contents";V=this.getContents_(F,h.responseContentsKey||"contents")||[];
this.pathExists_(d)?(V.unshift(d),this.push.apply(this,V)):this.set(d,V);V&&(ChS(_.z4(),W.response,this.hostElement,function(R){_.dW(E.hostElement,"yt-store-grafted-ve-action",[R])}),_.hF(this.hostElement,"yt-next-continuation-data-updated",{continuationData:W,
page:this,contentsArray:d}));this.set(h.continuationsArray||"data.continuations",F[h.responseContinuationsKey||"continuations"]||[])}else W.reload?_.OB(new _.xC("Reloading from continuation is unsupported")):W.responseContext&&W.responseContext.errors||(delete W.xsrf_token,delete W.timing,delete W.endpoint,delete W.csn,W.responseContext&&delete W.responseContext.serviceTrackingParams,d={request:_.YF(F,{ctoken:"x",continuation:"x",itct:"x"}),responseKeys:Object.keys(W).sort()},W.response&&(d.responseContentKeys=
Object.keys(W.response).sort()),this.nextContinuation&&this.nextContinuation.continuationType&&(d.continuationType=this.nextContinuation.continuationType.substr(0,256)),W=new _.xC("Malformed continuation",d),F.indexOf("/comment_service_ajax")==0?_.OB(W):_.a_(W)),this.set(h.continuationsArray||"data.continuations",[])}else _.fn(new _.xC("Missing continuation response",F))},
getContents_:function(F,W){W=W.split(".");return _.xd.getValueByKeys(F,W)},
pathExists_:function(F){var W=this;F=F.toString().split(".");for(var E=0;E<F.length;E++)if(W=W[F[E]],W===void 0)return!1;return!0},
onYtNavigateStart_:function(){this.pendingContinuationRequest_&&(this.pendingContinuationRequest_.cancel(),this.pendingContinuationRequest_=void 0);this.stopListeningForNavigate_()}}];var YCe;var w1X;var nS=function(){var F=_.n.apply(this,arguments)||this;F.triggered_=!1;return F};
_.k(nS,_.n);_.N=nS.prototype;_.N.attached=function(){this.maybeTriggerAutoload()};
_.N.detached=function(){this.hasBeenTriggered_=!1};
_.N.onPrescanVisible=function(){this.onShow()};
_.N.onShow=function(){this.showButton||this.trigger()};
_.N.trigger=function(){this.data&&this.data.continuation&&(this.spinnerActive_=!0,this.showButton=!1,this.triggered_||(_.hF(this.hostElement,"yt-load-next-continuation",this.getContinuationUrl.bind(this)),this.hasBeenTriggered_=this.triggered_=!0))};
_.N.triggerIfNotPreviouslyTriggered=function(){this.hasBeenTriggered_||this.trigger()};
_.N.maybeTriggerAutoload=function(){this.data&&this.isAttached&&this.data.autoloadEnabled&&this.data.autoloadImmediately&&this.trigger()};
_.N.computeLabel_=function(F,W){return F===void 0?null:F.label||!W?F.label:this.showMoreText_};
_.N.observeData_=function(){this.spinnerActive_=this.triggered_=!1;this.ytRendererBehavior.invalidate(!1);this.maybeTriggerAutoload()};
_.N.getContinuationUrl=function(F){var W={ctoken:this.data.continuation,continuation:this.data.continuation,type:"next"};this.data.clickTrackingParams&&(W.itct=this.data.clickTrackingParams);return _.wo(F,W)};
_.N.showButtonChanged_=function(){this.ytRendererBehavior.invalidate(!1)};
nS.prototype.showButtonChanged_=nS.prototype.showButtonChanged_;nS.prototype.observeData_=nS.prototype.observeData_;_.T([_.J(_.ny.YtVisibilityBehavior),_.Y("design:type",Object)],nS.prototype,"ytVisibilityBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],nS.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],nS.prototype,"data",void 0);_.T([_.O({value:!1}),_.Y("design:type",Boolean)],nS.prototype,"showButton",void 0);
_.T([_.O({value:!1}),_.Y("design:type",Boolean)],nS.prototype,"showIcon",void 0);_.T([_.O({computed:"computeLabel_(data, showButton)"}),_.Y("design:type",Object)],nS.prototype,"label",void 0);_.T([_.O({value:_.Gr(_.CY("SHOW_MORE",void 0,"Show More"))}),_.Y("design:type",Object)],nS.prototype,"showMoreText_",void 0);_.T([_.O({value:!1}),_.Y("design:type",Boolean)],nS.prototype,"spinnerActive_",void 0);_.T([_.O({value:!1}),_.Y("design:type",Boolean)],nS.prototype,"hasBeenTriggered_",void 0);
_.T([_.O({value:void 0}),_.Y("design:type",String)],nS.prototype,"observeVisibleOption",void 0);_.T([_.O({value:void 0}),_.Y("design:type",String)],nS.prototype,"observeHiddenOption",void 0);_.T([_.O({value:"observe_once"}),_.Y("design:type",Object)],nS.prototype,"observePrescanOption",void 0);_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],nS.prototype,"observeData_",null);
_.T([_.ea("showButton"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],nS.prototype,"showButtonChanged_",null);nS=_.T([_.$3({is:"yt-next-continuation",disableElementRegistration:!0})],nS);
_.r(nS,"yt-next-continuation",function(){if(w1X===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-next-continuation--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.continuations.yt_next_continuation.yt.next.continuation.css.js--\x3e\n<template is="dom-if" if="[[!showButton]]" class="style-scope yt-next-continuation">\n  <tp-yt-paper-spinner id="spinner" active="[[spinnerActive_]]" class="style-scope yt-next-continuation"></tp-yt-paper-spinner>\n</template>\n<template is="dom-if" if="[[showButton]]" class="style-scope yt-next-continuation">\n  <tp-yt-paper-button on-tap="trigger" class="style-scope yt-next-continuation">\n    <yt-icon hidden$="[[!showIcon]]" icon="subdirectory_arrow_right" class="style-scope yt-next-continuation"></yt-icon>\n    <yt-formatted-string text="[[label]]" class="style-scope yt-next-continuation"></yt-formatted-string>\n  </tp-yt-paper-button>\n</template>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;YCe===void 0&&(YCe=document.createElement("template"));var h=YCe;E.call(W,h.content.cloneNode(!0),F.content.firstChild);w1X=F}F=w1X;return F},{mode:2});var uz_;var SCH;var yj=function(){return _.n.apply(this,arguments)||this};
_.k(yj,_.n);yj.prototype.attached=function(){this.hostElement.parentNode.style.justifyContent="center"};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],yj.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],yj.prototype,"data",void 0);yj=_.T([_.$3({is:"yt-music-pass-small-feature-info-renderer",disableElementRegistration:!0})],yj);
_.r(yj,"yt-music-pass-small-feature-info-renderer",function(){if(SCH===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-music-pass-small-feature-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_music_pass_small_feature_info_renderer.yt.music.pass.small.feature.info.renderer.css.js--\x3e<yt-img-shadow thumbnail="[[data.icon]]" width="84" class="style-scope yt-music-pass-small-feature-info-renderer"></yt-img-shadow>\n<yt-formatted-string id="header" respect-html-dir="" text="[[data.header]]" class="style-scope yt-music-pass-small-feature-info-renderer"></yt-formatted-string>\n<yt-formatted-string id="description" respect-html-dir="" text="[[data.description]]" class="style-scope yt-music-pass-small-feature-info-renderer"></yt-formatted-string>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;uz_===void 0&&(uz_=document.createElement("template"));var h=uz_;E.call(W,h.content.cloneNode(!0),F.content.firstChild);SCH=F}F=SCH;return F},{mode:2});_.Hr("itemSectionRenderer","gridRenderer","ytd-grid-renderer");var j6=function(){var F=_.n.apply(this,arguments)||this;F.isCollapsible=!1;F.nextContinuation={continuationType:"gridContinuation",contentsArray:"data.items",responseContentsKey:"items"};return F};
_.k(j6,_.n);_.N=j6.prototype;_.N.computeIsCollapsible=function(F){return!!(((F==null?0:F.showMoreText)||(F==null?0:F.visibleRowCount))&&(F==null?0:F.isCollapsible))};
_.N.configureRendererStamper=function(){return{shownItems:{id:"items",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-grid-renderer lockup",containerType:2,sizing:"COMPACT",force16By9ThumbnailAspectRatio:!0}},continuationItemRenderer:"ytd-continuation-item-renderer",gridChannelRenderer:"ytd-grid-channel-renderer",gridMoviePlaylistRenderer:"ytd-grid-movie-playlist-renderer",gridMovieRenderer:"ytd-grid-movie-renderer",gridPlaylistRenderer:"ytd-grid-playlist-renderer",
playlistRenderer:"ytd-playlist-renderer",gridShowRenderer:"ytd-grid-show-renderer",gridVideoRenderer:"ytd-grid-video-renderer",downloadedVideoGridVideoRenderer:"ytd-downloaded-video-grid-video-renderer",gridRadioRenderer:"ytd-grid-radio-renderer",musicPassSmallFeatureInfoRenderer:"yt-music-pass-small-feature-info-renderer",gameCardRenderer:"ytd-game-card-renderer",verticalProductCardRenderer:{component:"ytd-vertical-product-card-renderer",noInjection:!0}}},"data.continuations":{id:"continuations",
mapping:{nextContinuationData:"yt-next-continuation"}}}};
_.N.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"items"}};
_.N.persistentGuideChanged=function(){this.maybeUpdateInitialItemsDisplayed()};
_.N.onIronResize=function(){var F=this;_.OO(this,"updateGridInitItems",function(){F.maybeUpdateInitialItemsDisplayed()})};
_.N.maybeUpdateInitialItemsDisplayed=function(){if(this.collapsed){var F=this.getVisibleWidth();F!==0&&(F=Math.floor(F/214)*(this.data.visibleRowCount||2),F!==this.initialCount&&(this.initialCount=F,this.data&&this.data.items&&this.ytLazyListBehavior.setInitialItemsOnDataChanged(this.data.items)))}};
_.N.getVisibleWidth=function(){return this.hostElement.offsetWidth};
_.N.computeExpandVisible=function(F,W,E,h){return F&&W&&E&&!!h&&!!h.showMoreText};
_.N.computeShowMoreButton=function(F){return{text:F,style:"STYLE_TEXT",size:"SIZE_DEFAULT"}};
_.N.onExpandTap=function(){this.collapsed=!1;this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
_.N.initCollapsed=function(){var F=this;this.ytLazyListBehavior.canShowMore=!1;var W;(this.collapsed=!((W=this.data)==null||!W.isCollapsible))&&this.maybeUpdateInitialItemsDisplayed();_.wT(this,function(){_.Nc(F.hostElement,"yt-refit-popups-action")})};
_.N.fillRestIfNotCollapsible=function(){var F=this.ytLazyListBehavior.canShowMore;this.data&&this.isCollapsible||!F||this.ytLazyListBehavior.fillRemainingListItems()};
_.N.computeViewAllHidden=function(F,W){return F||!W.viewAllEndpoint};
j6.prototype.fillRestIfNotCollapsible=j6.prototype.fillRestIfNotCollapsible;j6.prototype.initCollapsed=j6.prototype.initCollapsed;j6.prototype.onIronResize=j6.prototype.onIronResize;j6.prototype.persistentGuideChanged=j6.prototype.persistentGuideChanged;_.T([_.J(_.lB),_.Y("design:type",Object)],j6.prototype,"ironResizableBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],j6.prototype,"ytRendererBehavior",void 0);
_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],j6.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.W3.YtLazyListBehavior),_.Y("design:type",Object)],j6.prototype,"ytLazyListBehavior",void 0);_.T([_.J(_.lr.YtNextContinuationBehavior),_.Y("design:type",Object)],j6.prototype,"ytNextContinuationBehavior",void 0);_.T([_.J(_.y_.YtdGuideStateAwareBehavior),_.Y("design:type",Object)],j6.prototype,"ytdGuideStateAwareBehavior",void 0);
_.T([_.J(_.br),_.Y("design:type",Object)],j6.prototype,"ytContinuationHandlerBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],j6.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Boolean)],j6.prototype,"collapsed",void 0);_.T([_.O(),_.Y("design:type",Number)],j6.prototype,"initialCount",void 0);_.T([_.O({computed:"computeShowMoreButton(data.showMoreText)"}),_.Y("design:type",Object)],j6.prototype,"showMoreButton",void 0);
_.T([_.O({computed:"computeIsCollapsible(data)"}),_.Y("design:type",Object)],j6.prototype,"isCollapsible",void 0);_.T([_.gQ("#items"),_.Y("design:type",HTMLElement)],j6.prototype,"items",void 0);_.T([_.Cz("guidePersistentAndVisible"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],j6.prototype,"persistentGuideChanged",null);_.T([_.R4("iron-resize"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],j6.prototype,"onIronResize",null);
_.T([_.Cz("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],j6.prototype,"initCollapsed",null);_.T([_.Cz("canShowMore"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],j6.prototype,"fillRestIfNotCollapsible",null);j6=_.T([_.y({is:"ytd-grid-renderer",disableElementRegistration:!0})],j6);
_.r(j6,"ytd-grid-renderer",function(){if(n0_!==void 0)return n0_;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.title]]" class="style-scope ytd-grid-renderer">\n  <h3 class="channel-link style-scope ytd-grid-renderer">\n    <yt-formatted-string text="[[data.title]]" class="style-scope ytd-grid-renderer"></yt-formatted-string>\n  </h3>\n</template>\n<div id="items" class="style-scope ytd-grid-renderer"></div>\n<ytd-button-renderer id="show-more-button" align-by-text="" data="[[showMoreButton]]" hidden="[[!computeExpandVisible(isCollapsible, collapsed, canShowMore, data)]]" on-tap="onExpandTap" class="style-scope ytd-grid-renderer">\n</ytd-button-renderer>\n<yt-formatted-string id="view-all" hidden="[[computeViewAllHidden(canShowMore, data)]]" text="[[data.viewAllText]]" class="style-scope ytd-grid-renderer">\n</yt-formatted-string>\n<div id="continuations" class="style-scope ytd-grid-renderer"></div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return n0_=F},{mode:_.E6("kevlar_poly_si_batch_j025")?1:2});var ir=function(){return _.n.apply(this,arguments)||this};
_.k(ir,_.n);
ir.prototype.configureRendererStamper=function(){return{"data.adMetadata.displayAdRenderer":{id:"badge",mapping:{badge:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.adMetadata.displayAdRenderer.badge]]"},params:{largeFontAdBadge:!0}}}},"data.adMetadata.displayAdRenderer.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.content":{id:"content",mapping:{horizontalListRenderer:{component:"yt-horizontal-list-renderer",params:{useFloorScrolling:!0}},gridRenderer:"ytd-grid-renderer"}}}};
_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],ir.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],ir.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],ir.prototype,"data",void 0);ir=_.T([_.y({is:"ytd-carousel-ad-renderer",disableElementRegistration:!0})],ir);
_.r(ir,"ytd-carousel-ad-renderer",function(){if(axM!==void 0)return axM;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-carousel-ad-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" class="style-scope ytd-carousel-ad-renderer">\n  <div id="badge" class="style-scope ytd-carousel-ad-renderer"></div>\n  <h3 id="title-text" class="style-scope ytd-carousel-ad-renderer">\n    <yt-formatted-string text="[[data.adMetadata.displayAdRenderer.titleText]]" class="style-scope ytd-carousel-ad-renderer">\n    </yt-formatted-string>\n  </h3>\n  <div id="menu" class="style-scope ytd-carousel-ad-renderer"></div>\n</div>\n<div id="content" class="style-scope ytd-carousel-ad-renderer"></div>\n<div id="footer" class="style-scope ytd-carousel-ad-renderer">\n  <yt-formatted-string id="footer-string" text="[[data.adMetadata.displayAdRenderer.footerString]]" title="[[getSimpleString(data.adMetadata.displayAdRenderer.footerString)]]" class="style-scope ytd-carousel-ad-renderer">\n  </yt-formatted-string>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return axM=F},{mode:1});var p1U;var rq=function(){return _.n.apply(this,arguments)||this};
_.k(rq,_.n);_.N=rq.prototype;_.N.configureRendererStamper=function(){return{"data.content.adBadge":{id:"ad-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.content.adBadge]]"}}}},"data.content.closeButton":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.content.ctaButton":{id:"call-to-action",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.N.dataChanged=function(){this.data&&this.data.content&&this.data.clickLocationTargets&&this.data.content.navigationEndpoint&&(this.sendImpression(),this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,rq.JSC$13171_CLICK_LOCATION_ID_MAP))};
_.N.onSitelinkTap=function(F){F.stopPropagation();var W,E,h=F==null?void 0:(W=F.model)==null?void 0:(E=W.item)==null?void 0:E.onTap;h&&this.ytSparklesClickLocationBehavior.handleClick(h,F,!1)};
_.N.onTap=function(F){var W=this.data&&this.data.content&&this.data.content.navigationEndpoint;W&&this.ytSparklesClickLocationBehavior.handleClick(W,F,!1)};
_.N.sendImpression=function(){if(this.data&&this.data.content)for(var F=_.U(this.data.content.impressionEndpoints||[]),W=F.next();!W.done;W=F.next()){W=_.U(W.value.loggingUrls||[]);for(var E=W.next();!E.done;E=W.next())E=E.value,E.baseUrl&&re(E.baseUrl,E.attributionSrcMode)}};
rq.prototype.onTap=rq.prototype.onTap;rq.prototype.dataChanged=rq.prototype.dataChanged;rq.JSC$13171_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_TITLE","title"],["PROMOTED_SPARKLES_CLICK_LOCATION_DESCRIPTION","description"],["PROMOTED_SPARKLES_CLICK_LOCATION_AD_BADGE","ad-badge"],["PROMOTED_SPARKLES_CLICK_LOCATION_TEXT_AD_WEBSITE","display-url"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","root-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_SITELINK","sitelinks-table"]]);
_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],rq.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],rq.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.FJ.YtSparklesClickLocationBehavior),_.Y("design:type",Object)],rq.prototype,"ytSparklesClickLocationBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],rq.prototype,"data",void 0);
_.T([_.Cz("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],rq.prototype,"dataChanged",null);_.T([_.R4("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],rq.prototype,"onTap",null);rq=_.T([_.y({is:"ytd-promoted-sparkles-text-search-renderer",disableElementRegistration:!0})],rq);
_.r(rq,"ytd-promoted-sparkles-text-search-renderer",function(){if(p1U!==void 0)return p1U;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-promoted-sparkles-text-search-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="root-container" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n  <div id="main-container" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n    <h3 id="title" aria-label$="[[data.content.title.accessibility.accessibilityData.label]]" title$="[[getSimpleString(data.content.title)]]" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n        <yt-img-shadow id="favicon" hidden="[[!data.content.favicon]]" thumbnail="[[data.content.favicon]]" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n        </yt-img-shadow>\n        [[getSimpleString(data.content.title)]]\n    </h3>\n    <yt-formatted-string id="description" no-endpoints="[[noEndpoints]]" text="[[data.content.descriptionText]]" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n    </yt-formatted-string>\n    <div id="sitelinks-table" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n      <template id="sitelinks-dom-repeat" is="dom-repeat" items="[[data.content.sitelinks]]" as="item" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n        <yt-formatted-string id="sitelinks" ellipsis-truncate="" no-endpoints="[[noEndpoints]]" role="link" text="[[item.title]]" on-click="onSitelinkTap" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n        </yt-formatted-string>\n      </template>\n    </div>\n    <div id="format-container" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n      <div id="ad-badge" class="style-scope ytd-promoted-sparkles-text-search-renderer"></div>\n      <yt-formatted-string id="display-url" ellipsis-truncate="" no-endpoints="[[noEndpoints]]" text="[[data.content.websiteText]]" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n      </yt-formatted-string>\n    </div>\n  </div>\n  <div id="right-container" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n    <div id="menu" class="style-scope ytd-promoted-sparkles-text-search-renderer"></div>\n    <div id="call-to-action" class="style-scope ytd-promoted-sparkles-text-search-renderer"></div>\n  </div>\n</div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return p1U=F},{mode:1});var mqB;var TD=function(){var F=_.n.apply(this,arguments)||this;F.actionMap={"yt-mute-ad-action":"handleMuteAd"};return F};
_.k(TD,_.n);_.N=TD.prototype;
_.N.configureRendererStamper=function(){return{"data.menu":{id:_.c("fix_alignment_search_desktop_text_image_ads_small_screens")?"menu":"old-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverride]]"}}}},"data.mediaHoverOverlay":{id:"media-hover-overlay",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{verticallyAligned:!0}}}},"data.mediaBadge":{id:"media-badge-search",
mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.mediaBadge]]",useRoundedBadge:"[[useRoundedBadge]]"}}}},"data.adBadge":{id:"ad-badge-new",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.adBadge]]"}}}}}};
_.N.computeButtonOverride=function(){return{style:"call-to-action",type:"tonal"}};
_.N.computeHasAdBadge=function(F){return!(F==null||!F.adBadge)};
_.N.dataChanged=function(){this.data&&this.data.impressionCommands&&this.data.clickLocationTargets&&(this.data.adBadge||this.set("data.adBadge",TD.JSC$13180_DEFAULT_AD_BADGE_RENDERER),_.Wm(this.hostElement,"sparkles-light-cta",!0),this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17),this.ytSparklesClickLocationBehavior.configureClickTargets("sparkles-container",this.data.clickLocationTargets,TD.JSC$13180_CLICK_LOCATION_ID_MAP))};
_.N.impressionLog=function(){if(!this.data||!this.data.impressionsFired){var F;(((F=this.data)==null?void 0:F.impressionCommands)||[]).forEach(function(W){W=_.U(W.loggingUrls||[]);for(var E=W.next();!E.done;E=W.next())E=E.value,E.baseUrl&&re(E.baseUrl,E.attributionSrcMode)});
this.data.impressionsFired=!0}};
_.N.onTap=function(F){var W,E=(W=this.data)==null?void 0:W.navigationEndpoint,h;(W=(h=this.data)==null?void 0:h.thumbnailNavigationEndpoint)&&_.pQ(_.TB(F),this.hostElement,["thumbnail-container"])?this.ytSparklesClickLocationBehavior.handleClick(W,F,!1):E&&this.ytSparklesClickLocationBehavior.handleClick(E,F,!1)};
_.N.handleMuteAd=function(){this.collapsed=!0};
_.N.attached=function(){var F=this;_.c("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&F.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.N.detached=function(){_.c("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.Sn.Object.defineProperties(TD.prototype,{hideHoverOverlay:{configurable:!0,enumerable:!0,get:function(){return!this.data||!this.data.mediaHoverOverlay}},
webSearchLayout:{configurable:!0,enumerable:!0,get:function(){var F;return((F=this.data)==null?void 0:F.promotedSparklesWebStyle)==="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"}},
webSearchLayoutLandscape:{configurable:!0,enumerable:!0,get:function(){var F;return!(((F=this.data)==null?void 0:F.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||this.data.isSquareThumbnail)}},
webSearchLayoutSquare:{configurable:!0,enumerable:!0,get:function(){var F;return!(((F=this.data)==null?void 0:F.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||!this.data.isSquareThumbnail)}},
sparklesCtaNoBackground:{configurable:!0,enumerable:!0,get:function(){var F;return((F=this.data)==null?void 0:F.promotedSparklesWebStyle)==="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"}},
hideActionButton:{configurable:!0,enumerable:!0,get:function(){return!(this.data&&this.data.actionButton)}},
useRoundedBadge:{configurable:!0,enumerable:!0,get:function(){return this.webSearchLayout}}});
TD.prototype.dataChanged=TD.prototype.dataChanged;
TD.JSC$13180_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_TITLE","title"],["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_DESCRIPTION","description"],["PROMOTED_SPARKLES_CLICK_LOCATION_ACTION_LABEL","action-button"],["PROMOTED_SPARKLES_CLICK_LOCATION_AD_BADGE","ad-badge-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_TEXT_AD_WEBSITE","website-text"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","sparkles-container"]]);
TD.JSC$13180_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.CY("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],TD.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],TD.prototype,"ytRendererBehavior",void 0);_.T([_.J(PN),_.Y("design:type",Object)],TD.prototype,"ytdActiveViewBehavior",void 0);
_.T([_.J([_.FM.YtActionHandlerBehavior]),_.Y("design:type",Object)],TD.prototype,"actionHandlerBehavior",void 0);_.T([_.J(_.FJ.YtSparklesClickLocationBehavior),_.Y("design:type",Object)],TD.prototype,"ytSparklesClickLocationBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],TD.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],TD.prototype,"collapsed",void 0);_.T([_.O({reflectToAttribute:!0,value:function(){return _.c("enable_desktop_search_bigger_thumbs")}}),
_.Y("design:type",Boolean)],TD.prototype,"useBiggerThumbs",void 0);_.T([_.O({reflectToAttribute:!0,value:function(){return _.N0("desktop_search_bigger_thumbs_style")}}),
_.Y("design:type",String)],TD.prototype,"biggerThumbsStyle",void 0);_.T([_.O({reflectToAttribute:!0,value:function(){return _.c("fix_alignment_search_desktop_text_image_ads_small_screens")}}),
_.Y("design:type",Boolean)],TD.prototype,"fixAlignmentSmallScreens",void 0);_.T([_.O({reflectToAttribute:!0,value:function(){return _.c("enable_desktop_search_bigger_thumbs_square")}}),
_.Y("design:type",Boolean)],TD.prototype,"useBiggerThumbsSquare",void 0);_.T([_.O({reflectToAttribute:!0}),_.a("data.mediaHoverOverlay"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],TD.prototype,"hideHoverOverlay",null);_.T([_.O({reflectToAttribute:!0}),_.a("data.promotedSparklesWebStyle"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],TD.prototype,"webSearchLayout",null);
_.T([_.O({reflectToAttribute:!0}),_.a("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],TD.prototype,"webSearchLayoutLandscape",null);_.T([_.O({reflectToAttribute:!0}),_.a("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],TD.prototype,"webSearchLayoutSquare",null);
_.T([_.O({reflectToAttribute:!0}),_.a("data.promotedSparklesWebStyle"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],TD.prototype,"sparklesCtaNoBackground",null);_.T([_.O({reflectToAttribute:!0}),_.a("data.actionButton"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],TD.prototype,"hideActionButton",null);_.T([_.O({computed:"computeButtonOverride(uiUpdate)"}),_.Y("design:type",Object)],TD.prototype,"buttonOverride",void 0);
_.T([_.O({reflectToAttribute:!0,computed:"computeHasAdBadge(data)"}),_.Y("design:type",Boolean)],TD.prototype,"hasNewAdBadge",void 0);_.T([_.a("data.promotedSparklesWebStyle"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],TD.prototype,"useRoundedBadge",null);_.T([_.Cz("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],TD.prototype,"dataChanged",null);TD=_.T([_.y({is:"ytd-promoted-sparkles-web-renderer",disableElementRegistration:!0})],TD);
_.r(TD,"ytd-promoted-sparkles-web-renderer",function(){if(mqB!==void 0)return mqB;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-promoted-sparkles-web-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="sparkles-container" on-tap="onTap" class="style-scope ytd-promoted-sparkles-web-renderer">\n  <div id="thumbnail-container" class="style-scope ytd-promoted-sparkles-web-renderer">\n    <div id="thumbnail-hover-container" class="style-scope ytd-promoted-sparkles-web-renderer">\n      <div id="thumbnail-deep-container" class="style-scope ytd-promoted-sparkles-web-renderer">\n        <yt-img-shadow id="thumbnail" object-fit="CONTAIN" thumbnail="[[data.thumbnail]]" class="style-scope ytd-promoted-sparkles-web-renderer">\n        </yt-img-shadow>\n        <div id="media-badge-search" class="style-scope ytd-promoted-sparkles-web-renderer"></div>\n      </div>\n      <div id="media-hover-overlay" class="style-scope ytd-promoted-sparkles-web-renderer"></div>\n    </div>\n  </div>\n  <div id="sparkles-body-container" class="style-scope ytd-promoted-sparkles-web-renderer">\n    <div id="sparkles-body" class="style-scope ytd-promoted-sparkles-web-renderer">\n      <h3 id="title" title$="[[getSimpleString(data.title)]]" class="style-scope ytd-promoted-sparkles-web-renderer">\n          [[getSimpleString(data.title)]]\n      </h3>\n      <div id="description" class="style-scope ytd-promoted-sparkles-web-renderer">\n        [[getSimpleString(data.description)]]\n      </div>\n      <div id="website-text-container" class="style-scope ytd-promoted-sparkles-web-renderer">\n        <span id="ad-badge-container" class="style-scope ytd-promoted-sparkles-web-renderer">\n          <ytd-badge-supported-renderer id="ad-badge" top-standalone-badge="[[data.adBadge]]" class="style-scope ytd-promoted-sparkles-web-renderer">\n          </ytd-badge-supported-renderer>\n          <div id="ad-badge-new" class="style-scope ytd-promoted-sparkles-web-renderer"></div>\n        </span>\n        <div id="website-text" class="style-scope ytd-promoted-sparkles-web-renderer">\n          [[getSimpleString(data.websiteText)]]\n        </div>\n      </div>\n      <div id="action-button" class="style-scope ytd-promoted-sparkles-web-renderer"></div>\n    </div>\n    <div id="menu" class="style-scope ytd-promoted-sparkles-web-renderer"></div>\n  </div>\n</div>\n<div id="old-menu" class="style-scope ytd-promoted-sparkles-web-renderer"></div>');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return mqB=F},{mode:1});var Kzi;var o8=function(){return _.n.apply(this,arguments)||this};
_.k(o8,_.n);_.N=o8.prototype;_.N.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.ctaRenderer":{id:"call-to-action",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverride]]"}}}}}};
_.N.computeShowCta=function(F){return!(F==null||!F.ctaRenderer)};
_.N.onCtaClick=function(){var F,W,E,h=(F=this.data)==null?void 0:(W=F.ctaRenderer)==null?void 0:(E=W.buttonRenderer)==null?void 0:E.command;h&&this.ytComponentBehavior.resolveCommand(h)};
_.N.onWatchButtonClick=function(){var F,W,E,h=(F=this.data)==null?void 0:(W=F.watchButtonRenderer)==null?void 0:(E=W.buttonRenderer)==null?void 0:E.command;h&&this.ytComponentBehavior.resolveCommand(h)};
_.N.onTap=function(){};
_.N.dataChanged=function(){if(this.data&&(this.data.adBadge||this.set("data.adBadge",o8.JSC$13183_DEFAULT_AD_BADGE_RENDERER),this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17),this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",o8.JSC$13183_DEFAULT_CLICK_LOCATION_BEHAVIOR,o8.JSC$13183_CLICK_LOCATION_ID_MAP),this.thumbnail)){var F=this.thumbnail.getElementsByTagName("a");F.length>0&&(F=F.namedItem("thumbnail"))&&F.removeAttribute("href")}};
_.N.impressionLog=function(){if(this.data&&this.data.impressionUrls&&!this.data.impressionsFired){for(var F=_.U(this.data.impressionUrls),W=F.next();!W.done;W=F.next())W=W.value,IPW(W,DzS(W));this.data.impressionsFired=!0}};
_.N.maybeComputeHref=function(){return null};
_.N.computeIsShortDR=function(F){return!(F==null||!F.watchButtonRenderer)&&!(F==null||!F.ctaRenderer)&&!!this.enableShortDR};
_.N.computeIsNewUiOrShortDr=function(F){return!!this.enableUiUpdate||this.computeIsShortDR(F)};
_.N.computeIsNewUiAndNotShortDr=function(F){return!!this.enableUiUpdate&&!this.computeIsShortDR(F)};
_.N.computeHideAvatar=function(F){return!((F==null?0:F.channelThumbnail)&&this.computeIsNewUiOrShortDr(F))};
_.N.onClick=function(F){var W,E=(W=this.data)==null?void 0:W.navigationEndpoint;if(this.enableShortDR&&E&&(_.D(E,_.GM)||this.computeIsShortDR(this.data)))this.ytSparklesClickLocationBehavior.handleClick(E,F,!!_.D(E,_.GM)),F.stopPropagation();else if(E&&_.D(E,_.GM))this.ytSparklesClickLocationBehavior.handleClick(E,F,!0),F.stopPropagation();else if(E){var h,d;((h=this.data)==null?0:h.navigationEndpoint)&&((d=this.data)==null?0:d.adPlaybackContextParams)&&gAw(this.data.navigationEndpoint,this.data.adPlaybackContextParams);
this.ytComponentBehavior.resolveCommand(E)}};
_.N.computeButtonOverride=function(F){if(this.computeIsNewUiOrShortDr(F))return{style:"call-to-action",type:"tonal",iconPosition:"none"}};
_.N.computeSecondaryButtonOverride=function(){return{style:"call-to-action",type:"outline",iconPosition:"none"}};
_.N.onThumbnailContainerClick=function(F){this.onClick(F)};
_.N.computeThumbnailWidth=function(F,W){return F?W==="MASSIVE"?600:W==="BIG"?500:W==="MEDIUM"?450:420:360};
_.N.attached=function(){var F=this;_.c("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&F.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.N.detached=function(){_.c("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
o8.prototype.dataChanged=o8.prototype.dataChanged;o8.prototype.onTap=o8.prototype.onTap;o8.JSC$13183_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.CY("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};o8.JSC$13183_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
o8.JSC$13183_DEFAULT_CLICK_LOCATION_BEHAVIOR=[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL",code:21,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND",code:2,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"}];_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],o8.prototype,"ytRendererstamperBehavior",void 0);
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],o8.prototype,"ytRendererBehavior",void 0);_.T([_.J(PN),_.Y("design:type",Object)],o8.prototype,"ytdActiveViewBehavior",void 0);_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],o8.prototype,"ytComponentBehavior",void 0);_.T([_.J(_.FJ.YtSparklesClickLocationBehavior),_.Y("design:type",Object)],o8.prototype,"ytSparklesClickLocationBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],o8.prototype,"data",void 0);
_.T([_.O({reflectToAttribute:!0,value:function(){return _.c("enable_desktop_search_bigger_thumbs")}}),
_.Y("design:type",Boolean)],o8.prototype,"useBiggerThumbs",void 0);_.T([_.O({reflectToAttribute:!0,value:function(){return _.c("enable_video_display_compact_button_group_for_desktop_search")}}),
_.Y("design:type",Boolean)],o8.prototype,"enableShortDR",void 0);_.T([_.O({reflectToAttribute:!0,value:function(){return _.c("enable_vac_ui_update_for_desktop_search")}}),
_.Y("design:type",Boolean)],o8.prototype,"enableUiUpdate",void 0);_.T([_.O({reflectToAttribute:!0,value:function(){return _.N0("desktop_search_bigger_thumbs_style")}}),
_.Y("design:type",String)],o8.prototype,"biggerThumbsStyle",void 0);_.T([_.O({reflectToAttribute:!0,computed:"computeShowCta(data)"}),_.Y("design:type",Boolean)],o8.prototype,"showCta",void 0);_.T([_.O({reflectToAttribute:!0,computed:"computeIsShortDR(data)"}),_.Y("design:type",Boolean)],o8.prototype,"isShortDr",void 0);_.T([_.O({reflectToAttribute:!0,computed:"computeIsNewUiOrShortDr(data)"}),_.Y("design:type",Boolean)],o8.prototype,"isShortDrOrNewUi",void 0);
_.T([_.O({reflectToAttribute:!0,computed:"computeIsNewUiAndNotShortDr(data)"}),_.Y("design:type",Boolean)],o8.prototype,"isNewUiAndNotShortDr",void 0);_.T([_.O({computed:"computeButtonOverride(data)"}),_.Y("design:type",Object)],o8.prototype,"buttonOverride",void 0);_.T([_.O({computed:"computeSecondaryButtonOverride(data)"}),_.Y("design:type",Object)],o8.prototype,"secondaryButtonOverride",void 0);_.T([_.gQ("ytd-thumbnail"),_.Y("design:type",HTMLElement)],o8.prototype,"thumbnail",void 0);
_.T([_.R4("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],o8.prototype,"onTap",null);_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],o8.prototype,"dataChanged",null);o8=_.T([_.y({is:"ytd-promoted-video-renderer",disableElementRegistration:!0})],o8);
_.r(o8,"ytd-promoted-video-renderer",function(){if(Kzi!==void 0)return Kzi;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-promoted-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="main-container" class="style-scope ytd-promoted-video-renderer">\n  <ytd-thumbnail id="thumbnail-container" data="[[data]]" width="[[computeThumbnailWidth(useBiggerThumbs, biggerThumbsStyle)]]" on-click="onThumbnailContainerClick" class="style-scope ytd-promoted-video-renderer">\n  </ytd-thumbnail>\n  <div id="metadata-container" class="style-scope ytd-promoted-video-renderer">\n    <div id="text-container" class="style-scope ytd-promoted-video-renderer">\n      <a id="endpoint" class="yt-simple-endpoint style-scope ytd-promoted-video-renderer" data="[[data.navigationEndpoint]]" href$="[[maybeComputeHref(data.navigationEndpoint)]]" on-click="onClick">\n        <div id="meta" class="style-scope ytd-promoted-video-renderer">\n          <div id="title-wrapper" class="style-scope ytd-promoted-video-renderer">\n            \n            <h3 id="video-title" aria-label$="[[data.title.accessibility.accessibilityData.label]]" title$="[[getSimpleString(data.title)]]" class="style-scope ytd-promoted-video-renderer">\n              [[getSimpleString(data.title)]]\n            </h3>\n          </div>\n          \n          <span id="description-text" hidden="[[!computeIsNewUiOrShortDr(data)]]" class="style-scope ytd-promoted-video-renderer">[[getSimpleString(data.description)]]</span>\n          <div id="byline" class="style-scope ytd-promoted-video-renderer">\n            <div id="channel-thumbnail-container" title="[[getSimpleString(data.shortBylineText)]]" aria-label$="[[data.shortBylineText.accessibility.accessibilityData.label]]" hidden="[[computeHideAvatar(data)]]" class="style-scope ytd-promoted-video-renderer">\n                <yt-img-shadow id="avatar" disable-upgrade$="[[!data.channelThumbnail]]" thumbnail="[[data.channelThumbnail]]" class="style-scope ytd-promoted-video-renderer">\n                </yt-img-shadow>\n            </div>\n            <div id="ad-badge-container" hidden="[[!data.adBadge]]" class="style-scope ytd-promoted-video-renderer">\n              <ytd-badge-supported-renderer top-standalone-badge="[[data.adBadge]]" class="style-scope ytd-promoted-video-renderer">\n              </ytd-badge-supported-renderer>\n            </div>\n            <ytd-video-meta-block id="ad-badge-metablock" data="[[data]]" class="style-scope ytd-promoted-video-renderer"></ytd-video-meta-block>\n          </div>\n        </div>\n        <span id="description-text" hidden="[[computeIsNewUiOrShortDr(data)]]" class="style-scope ytd-promoted-video-renderer">[[getSimpleString(data.description)]]</span>\n        <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-promoted-video-renderer">\n        </ytd-badge-supported-renderer>\n      </a>\n      <div id="button-container" class="style-scope ytd-promoted-video-renderer">\n        <template is="dom-if" if="[[computeIsShortDR(data)]]" class="style-scope ytd-promoted-video-renderer">\n          <ytd-button-renderer id="secondary-button" data="[[data.watchButtonRenderer.buttonRenderer]]" overrides="[[computeSecondaryButtonOverride(data)]]" on-click="onWatchButtonClick" class="style-scope ytd-promoted-video-renderer">\n          </ytd-button-renderer>\n        </template>\n        <div id="call-to-action" on-click="onCtaClick" class="style-scope ytd-promoted-video-renderer"></div>\n      </div>\n    </div>\n    <div id="menu" class="style-scope ytd-promoted-video-renderer"></div>\n  </div>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return Kzi=F},{mode:1});var FwH;var GD=function(){var F=_.n.apply(this,arguments)||this;F.useRoundedBadge=!0;F.sitelinkIds=[];return F};
_.k(GD,_.n);_.N=GD.prototype;
_.N.configureRendererStamper=function(){return{"data.menu":{id:_.c("enable_text_ad_web_thumbnail_scaling_fix")?"new-menu":"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.mediaHoverOverlay":{id:"media-hover-overlay",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{verticallyAligned:!0}}}},"data.mediaBadge":{id:"media-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.mediaBadge]]",useRoundedBadge:"[[useRoundedBadge]]"}}}},
"data.adBadge":{id:"ad-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.adBadge]]"}}}}}};
_.N.dataChanged=function(){var F;(F=this.data)!=null&&F.clickLocationTargets&&this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,GD.JSC$13190_CLICK_LOCATION_ID_MAP)};
_.N.onTap=function(F){var W,E=(W=this.data)==null?void 0:W.navigationCommand;E&&!_.pQ(_.TB(F),this.hostElement,this.sitelinkIds)&&this.ytSparklesClickLocationBehavior.handleClick(E,F,!1)};
_.N.onSitelinkTap=function(F){var W,E,h=F==null?void 0:(W=F.model)==null?void 0:(E=W.item)==null?void 0:E.onTap;h&&this.ytSparklesClickLocationBehavior.handleClick(h,F,!1)};
_.N.configureSitelinkClickTargets=function(){var F=this,W,E,h=(W=this.data)==null?void 0:(E=W.clickLocationTargets)==null?void 0:E.find(function(d){return d.location==="PROMOTED_SPARKLES_CLICK_LOCATION_SITELINK"});
h&&_.Z(this.hostElement).querySelectorAll(".sitelink").forEach(function(d){_.Wm(d,"yt-simple-endpoint",!0);F.sitelinkIds.push(d.id);var V,R;(V=F.ytSparklesClickLocationBehavior)==null||(R=V.clickTargetMap)==null||R.set(d.id,h)})};
_.N.sendImpression=function(){var F,W,E=((F=this.data)==null?void 0:(W=F.impressionCommand)==null?void 0:W.loggingUrls)||[];F=_.U(E);for(W=F.next();!W.done;W=F.next())W=W.value,W.baseUrl&&re(W.baseUrl,W.attributionSrcMode)};
_.N.impressionLog=function(){this.data&&this.data.impressionsFired||(this.sendImpression(),this.data.impressionsFired=!0)};
_.Sn.Object.defineProperties(GD.prototype,{showFavicon:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!!this.data.favicon}}});
GD.prototype.onTap=GD.prototype.onTap;GD.prototype.dataChanged=GD.prototype.dataChanged;GD.JSC$13190_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_INNER_BACKGROUND","text-image-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_TITLE","headline"],["PROMOTED_SPARKLES_CLICK_LOCATION_DESCRIPTION","description"],["PROMOTED_SPARKLES_CLICK_LOCATION_AD_BADGE","ad-badge"],["PROMOTED_SPARKLES_CLICK_LOCATION_TEXT_AD_WEBSITE","website-text"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","root-container"]]);
_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],GD.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],GD.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.FJ.YtSparklesClickLocationBehavior),_.Y("design:type",Object)],GD.prototype,"ytSparklesClickLocationBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],GD.prototype,"data",void 0);
_.T([_.O({reflectToAttribute:!0}),_.a("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],GD.prototype,"showFavicon",null);_.T([_.O({reflectToAttribute:!0,value:function(){return _.c("enable_desktop_search_bigger_thumbs")}}),
_.Y("design:type",Boolean)],GD.prototype,"useBiggerThumbs",void 0);_.T([_.O({reflectToAttribute:!0,value:function(){return _.N0("desktop_search_bigger_thumbs_style")}}),
_.Y("design:type",String)],GD.prototype,"biggerThumbsStyle",void 0);_.T([_.O({reflectToAttribute:!0,value:function(){return _.c("enable_text_ad_web_thumbnail_scaling_fix")}}),
_.Y("design:type",Boolean)],GD.prototype,"enableThumbnailScalingFix",void 0);_.T([_.Cz("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],GD.prototype,"dataChanged",null);_.T([_.R4("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],GD.prototype,"onTap",null);GD=_.T([_.y({is:"ytd-text-image-no-button-layout-renderer",disableElementRegistration:!0})],GD);
_.r(GD,"ytd-text-image-no-button-layout-renderer",function(){if(FwH!==void 0)return FwH;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-text-image-no-button-layout-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="root-container" class="style-scope ytd-text-image-no-button-layout-renderer">\n  <div id="text-image-container" class="style-scope ytd-text-image-no-button-layout-renderer">\n    <div id="media-hover-overlay" class="style-scope ytd-text-image-no-button-layout-renderer"></div>\n    <div id="text-image" class="style-scope ytd-text-image-no-button-layout-renderer">\n      <yt-img-shadow id="text-image-favicon" hidden="[[!showFavicon]]" thumbnail="[[data.favicon]]" class="style-scope ytd-text-image-no-button-layout-renderer"></yt-img-shadow>\n      <h3 id="text-image-title" class="style-scope ytd-text-image-no-button-layout-renderer">[[getSimpleString(data.title)]]</h3>\n    </div>\n    <div id="media-badge" class="style-scope ytd-text-image-no-button-layout-renderer"></div>\n  </div>\n  <div id="metadata-container" class="style-scope ytd-text-image-no-button-layout-renderer">\n    <div id="metadata-body" class="style-scope ytd-text-image-no-button-layout-renderer">\n      <yt-formatted-string id="headline" ellipsis-truncate="" no-endpoints="" text="[[data.headline]]" class="style-scope ytd-text-image-no-button-layout-renderer"></yt-formatted-string>\n      <yt-formatted-string id="description" ellipsis-truncate="" no-endpoints="" text="[[data.description]]" class="style-scope ytd-text-image-no-button-layout-renderer"></yt-formatted-string>\n      <div id="details-line" class="style-scope ytd-text-image-no-button-layout-renderer">\n        <div id="ad-badge" class="style-scope ytd-text-image-no-button-layout-renderer"></div>\n        <div id="website-text" class="style-scope ytd-text-image-no-button-layout-renderer">[[getSimpleString(data.websiteText)]]</div>\n      </div>\n      <div id="sitelinks-carousel" class="style-scope ytd-text-image-no-button-layout-renderer">\n        <template is="dom-repeat" items="[[data.sitelinks]]" as="item" on-dom-change="configureSitelinkClickTargets" class="style-scope ytd-text-image-no-button-layout-renderer">\n          <div class="sitelink-container style-scope ytd-text-image-no-button-layout-renderer">\n            <yt-formatted-string id="sitelink-[[index]]" class="sitelink style-scope ytd-text-image-no-button-layout-renderer" ellipsis-truncate="" no-endpoints="" role="link" text="[[item.title]]" on-click="onSitelinkTap"></yt-formatted-string>\n          </div>\n        </template>\n      </div>\n    </div>\n    <div id="new-menu" class="style-scope ytd-text-image-no-button-layout-renderer"></div>\n  </div>\n  <div id="menu" class="style-scope ytd-text-image-no-button-layout-renderer"></div>\n</div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return FwH=F},{mode:_.E6("kevlar_poly_si_batch_j028")?1:2});var Ww_;var Y6=function(){var F=_.n.apply(this,arguments)||this;F.isInlinePlaybackState=!1;F.uiUpdate=_.c("web_modern_buttons");F.hideCta=_.c("hide_cta_for_home_web_video_ads");F.noBottomMargin=!1;F.animateInTimeStamp=_.dV("hide_cta_for_home_web_video_ads_animate_in_time");F.animateInCta=!1;F.isHovered=!1;F.player=null;F.JSC$13197_playerEvents=new Map;F.JSC$13197_preventProgressSaveTimer=null;F.delayedCtaJobId=null;return F};
_.k(Y6,_.n);_.N=Y6.prototype;_.N.configureRendererStamper=function(){return{"data.badge":{id:"badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.adCtaButton":{id:"call-to-action",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverride]]"}}}}}};
_.N.attached=function(){this.JSC$13197_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$13197_playerEvents.set("onVideoProgress",this.onVideoProgress);this.hideCta&&this.setPlayer();_.c("enable_delayed_cta_on_web")&&this.buttonContainer.classList.add("hide-delayed-buttons")};
_.N.detached=function(){this.resetPreventProgressSaveTimer();this.hideCta&&this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$13197_playerEvents)};
_.N.dataChanged=function(){this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint&&(this.animateInCta=!1,this.ytSparklesClickLocationBehavior.configureClickTargets("ad-inline-playback-metadata",Y6.JSC$13196_DEFAULT_CLICK_LOCATION_BEHAVIOR,Y6.JSC$13196_CLICK_LOCATION_ID_MAP),this.isInlinePlaybackState&&!this.hideCta&&this.setPlayer())};
_.N.hoverChanged=function(){var F=this;this.delayedCtaJobId&&(_.P0.cancelJob(this.delayedCtaJobId),this.delayedCtaJobId=null);this.isHovered&&!this.buttonContainer.classList.contains("show-delayed-buttons")&&_.c("enable_delayed_cta_on_web")&&(this.delayedCtaJobId=_.qY(_.P0,function(){F.buttonContainer.classList.add("show-delayed-buttons")},_.dV("delayed_cta_on_web_delay_milliseconds")))};
_.N.setPlayer=function(){var F=this,W;return _.e(function(E){if(E.nextAddress==1)return(W=_.Nc(F.hostElement,"yt-get-inline-preview-player-action"))&&W[0]?_.Q(E,W[0].getPlayerPromise(),3):E.jumpTo(0);F.player=E.yieldResult;F.ytPlayerListenerBehavior.listenToPlayerEvents(F.player,F.JSC$13197_playerEvents);_.gG(E)})};
_.N.onPlaybackStart=function(){var F=this;this.player&&(this.resetPreventProgressSaveTimer(),this.JSC$13197_preventProgressSaveTimer=_.Ed(_.P0,function(){F.JSC$13197_preventProgressSaveTimer=null},1E4))};
_.N.onVideoProgress=function(F){this.hideCta&&this.isHovered&&!(this.animateInTimeStamp<0)&&F>=this.animateInTimeStamp&&!this.animateInCta&&(this.animateInCta=!0)};
_.N.resetPreventProgressSaveTimer=function(){_.P0.cancelJob(this.JSC$13197_preventProgressSaveTimer);this.JSC$13197_preventProgressSaveTimer=null};
_.N.getSimpleString=function(F){return _.Yr(F)};
_.N.onClick=function(F){if(this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint){var W,E=(W=this.data)==null?void 0:W.navigationEndpoint,h;W=(h=this.data)==null?void 0:h.channelEndpoint;var d,V;(h=(V=_.D((d=this.data)==null?void 0:d.adCtaButton,_.jt))==null?void 0:V.command)&&_.pQ(_.TB(F),this.hostElement,["call-to-action"])?_.c("enable_fix_two_tab_short_dr")||this.ytSparklesClickLocationBehavior.handleClick(h,F,!1):W&&_.pQ(_.TB(F),this.hostElement,["channel-thumbnail-container","short-byline-text"])?
this.ytSparklesClickLocationBehavior.handleClick(W,F,!1):!_.pQ(_.TB(F),this.hostElement,["secondary-button"])&&E&&(_.c("enable_short_dr_for_desktop_launchable")?(d=!!_.D(E,_.GM),this.isInlinePlaybackState&&d&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(E,F,d)):(this.isInlinePlaybackState&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(E,F,!0)))}};
_.N.updateWatchEndpointStartTime=function(){var F,W;this.player&&((F=this.data)==null?0:F.inlinePlaybackEndpoint)&&((W=this.data)==null?0:W.navigationEndpoint)&&!this.JSC$13197_preventProgressSaveTimer&&(F=Math.floor(this.player.getCurrentTime()),_.D(this.data.navigationEndpoint,_.GM).startTimeSeconds=F,_.D(this.data.inlinePlaybackEndpoint,_.GM).startTimeSeconds=F)};
_.N.computeButtonOverride=function(){if(this.uiUpdate)return{style:"call-to-action",type:"tonal"}};
_.N.computeSecondaryButtonOverride=function(){return{style:"call-to-action",type:"outline",iconPosition:"none"}};
_.Sn.Object.defineProperties(Y6.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.c("web_enable_typography_bump_v2")}},
isButtonGroup:{configurable:!0,enumerable:!0,get:function(){var F,W;return!((F=this.data)==null||!F.watchButton)&&!((W=this.data)==null||!W.adCtaButton)}}});
Y6.prototype.hoverChanged=Y6.prototype.hoverChanged;Y6.prototype.dataChanged=Y6.prototype.dataChanged;
Y6.JSC$13196_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_TITLE","title-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","channel-thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_TEXT_PRODUCT_ADVERTISER","short-byline-text"],["PROMOTED_SPARKLES_CLICK_LOCATION_AD_BADGE","badge"],["PROMOTED_SPARKLES_CLICK_LOCATION_ACTION_LABEL","call-to-action"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","ad-inline-playback-metadata"]]);
Y6.JSC$13196_DEFAULT_CLICK_LOCATION_BEHAVIOR=[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_TITLE",code:0,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL",code:19,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_CHANNEL"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_TEXT_PRODUCT_ADVERTISER",code:20,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_CHANNEL"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_AD_BADGE",
code:31,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_ACTION_LABEL",code:8,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_ACTION_WEBSITE_URL"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND",code:2,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"}];
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Y6.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],Y6.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.am),_.Y("design:type",Object)],Y6.prototype,"ytdReduxBehavior",void 0);_.T([_.J(_.FJ.YtSparklesClickLocationBehavior),_.Y("design:type",Object)],Y6.prototype,"ytSparklesClickLocationBehavior",void 0);
_.T([_.J(_.om.YtPlayerListenerBehavior),_.Y("design:type",_.G$)],Y6.prototype,"ytPlayerListenerBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],Y6.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],Y6.prototype,"isInlinePlaybackState",void 0);_.T([_.O({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],Y6.prototype,"miniMode",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],Y6.prototype,"uiUpdate",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],Y6.prototype,"hideCta",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],Y6.prototype,"noBottomMargin",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],Y6.prototype,"animateInCta",void 0);_.T([_.O({computed:"computeButtonOverride(uiUpdate)"}),_.Y("design:type",Object)],Y6.prototype,"buttonOverride",void 0);
_.T([_.O({computed:"computeSecondaryButtonOverride(uiUpdate)"}),_.Y("design:type",Object)],Y6.prototype,"secondaryButtonOverride",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],Y6.prototype,"isHovered",void 0);_.T([_.gQ("#button-container"),_.Y("design:type",HTMLElement)],Y6.prototype,"buttonContainer",void 0);_.T([_.O({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],Y6.prototype,"typographyBump",void 0);
_.T([_.O({reflectToAttribute:!0}),_.a("typographyBump"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Y6.prototype,"typographyBumpV2",null);_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Y6.prototype,"dataChanged",null);_.T([_.ea("isHovered"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Y6.prototype,"hoverChanged",null);
_.T([_.a("data"),_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Y6.prototype,"isButtonGroup",null);Y6=_.T([_.y({is:"ytd-ad-inline-playback-meta-block",disableElementRegistration:!0})],Y6);
_.r(Y6,"ytd-ad-inline-playback-meta-block",function(){if(Ww_!==void 0)return Ww_;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ad-inline-playback-meta-block--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="ad-inline-playback-metadata" on-click="onClick" class="style-scope ytd-ad-inline-playback-meta-block">\n  <div id="meta-container" class="style-scope ytd-ad-inline-playback-meta-block">\n    <div id="channel-thumbnail-container" class="style-scope ytd-ad-inline-playback-meta-block">\n      <a id="avatar-link" class="yt-simple-endpoint style-scope ytd-ad-inline-playback-meta-block" hidden="[[!data.channelThumbnail]]" href$="[[computeHref_(data.channelEndpoint)]]" data="[[data.channelEndpoint]]" title="[[getSimpleString(data.shortBylineText)]]" aria-label$="[[data.shortBylineText.accessibility.accessibilityData.label]]" tabindex="-1">\n        <yt-img-shadow id="avatar" disable-upgrade$="[[!data.channelThumbnail]]" thumbnail="[[data.channelThumbnail]]" width="48" class="style-scope ytd-ad-inline-playback-meta-block">\n        </yt-img-shadow>\n      </a>\n    </div>\n    <div id="info-container" class="style-scope ytd-ad-inline-playback-meta-block">\n      <div id="title-container" aria-hidden="true" class="style-scope ytd-ad-inline-playback-meta-block">\n        <yt-formatted-string id="video-title" text="[[data.title]]" title="[[getSimpleString(data.title)]]" class="style-scope ytd-ad-inline-playback-meta-block"></yt-formatted-string>\n      </div>\n      <div id="menu" class="style-scope ytd-ad-inline-playback-meta-block"></div>\n      <div id="description-container" aria-hidden="true" class="style-scope ytd-ad-inline-playback-meta-block">\n        <yt-formatted-string id="description" text="[[data.description]]" title="[[getSimpleString(data.description)]]" class="style-scope ytd-ad-inline-playback-meta-block"></yt-formatted-string>\n      </div>\n      <div id="byline-container" aria-hidden="true" class="style-scope ytd-ad-inline-playback-meta-block">\n        <div id="badge" class="style-scope ytd-ad-inline-playback-meta-block"></div>\n        <ytd-channel-name id="short-byline-text" channel-name="[[data.shortBylineText]]" no-endpoints="true" wrap-text="true" class="style-scope ytd-ad-inline-playback-meta-block"></ytd-channel-name>\n      </div>\n      <div id="secondary-description-container" aria-hidden="true" hidden="[[!data.secondaryDescription]]" "="" class="style-scope ytd-ad-inline-playback-meta-block">\n        <yt-formatted-string id="secondary-description" text="[[data.secondaryDescription]]" title="[[getSimpleString(data.secondaryDescription)]]" class="style-scope ytd-ad-inline-playback-meta-block"></yt-formatted-string>\n      </div>\n    </div>\n  </div>\n  <div id="button-container" class="style-scope ytd-ad-inline-playback-meta-block">\n    <template is="dom-if" if="[[data.watchButton.buttonRenderer]]" class="style-scope ytd-ad-inline-playback-meta-block">\n      <ytd-button-renderer id="secondary-button" data="[[data.watchButton.buttonRenderer]]" overrides="[[computeSecondaryButtonOverride(data.watchButton.buttonRenderer)]]" class="style-scope ytd-ad-inline-playback-meta-block">\n      </ytd-button-renderer>\n    </template>\n    <div id="call-to-action" class="style-scope ytd-ad-inline-playback-meta-block"></div>\n  </div>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return Ww_=F},{mode:_.E6("kevlar_poly_si_batch_j065")?1:2});var EHp;var wq=function(){var F=_.n.apply(this,arguments)||this;F.noBottomMargin=!1;F.isInlinePreviewTriggered=!1;F.JSC$13202_activeViewMeasurementDataResolver=_.G_();return F};
_.k(wq,_.n);_.N=wq.prototype;_.N.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.N.attached=function(){var F=this;this.updateInlinePreviewHoverListeners();this.JSC$13202_activeViewMeasurementDataResolver.promise.then(function(W){F.ytdActiveViewBehavior.enableActiveViewMeasurement(W,15)});
_.c("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&F.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.N.detached=function(){this.clearInlinePreviewHoverListeners();_.c("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.N.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13202_inlinePreviewHoverListener=FY({mediaRenderer:this,lockupElement:this.JSC$13202_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:zSB})};
_.N.clearInlinePreviewHoverListeners=function(){var F;(F=this.JSC$13202_inlinePreviewHoverListener)==null||Qg(F)};
_.N.onDataChanged=function(){var F;((F=this.data)==null?0:F.activeView)&&this.JSC$13202_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",wq.JSC$13201_DEFAULT_CLICK_LOCATION_BEHAVIOR,wq.JSC$13201_CLICK_LOCATION_ID_MAP);this.thumbnail&&(F=this.thumbnail.getElementsByTagName("a"),F.length>0&&(F=F.namedItem("thumbnail"))&&F.removeAttribute("href"));var W,E;if(((W=this.data)==
null?0:W.hasAutoplay)||((E=this.data)==null?0:E.forceImpAutoplay)){var h;(h=this.JSC$13202_inlinePreviewHoverListener)==null||sMB(h)}};
_.N.onTypographyBumpChanged=function(){this.adInlinePlaybackMetaBlock&&(this.adInlinePlaybackMetaBlock.typographyBump=this.typographyBump)};
_.N.onThumbnailContainerClick=function(F){if(this.data&&this.data.navigationEndpoint){var W,E=(W=this.data)==null?void 0:W.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(E,F,!!_.D(E,_.GM));F.stopPropagation()}};
_.N.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.N.impressionLog=function(){var F=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var W,E,h=(E=_.D((W=this.data)==null?void 0:W.onImpression,_.Mc))==null?void 0:E.commands;h&&(h.forEach(function(d){d.clickTrackingParams&&delete d.clickTrackingParams;F.ytComponentBehavior.resolveCommand(d)}),this.data.impressionsFired=!0)}};
_.Sn.Object.defineProperties(wq.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var F;return!((F=this.JSC$13202_inlinePreviewHoverListener)==null?0:ZC(F))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
wq.prototype.onTypographyBumpChanged=wq.prototype.onTypographyBumpChanged;wq.prototype.onDataChanged=wq.prototype.onDataChanged;wq.JSC$13201_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);wq.JSC$13201_DEFAULT_CLICK_LOCATION_BEHAVIOR=[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL",code:21,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"}];
_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],wq.prototype,"ytComponentBehavior",void 0);_.T([_.J(PN),_.Y("design:type",Object)],wq.prototype,"ytdActiveViewBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],wq.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],wq.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.O9),_.Y("design:type",Object)],wq.prototype,"ytdDismissibleItemBehavior",void 0);
_.T([_.J(_.rt),_.Y("design:type",Object)],wq.prototype,"ytdLockupBehavior",void 0);_.T([_.J(_.am),_.Y("design:type",Object)],wq.prototype,"ytdReduxBehavior",void 0);_.T([_.J(_.FJ.YtSparklesClickLocationBehavior),_.Y("design:type",Object)],wq.prototype,"ytSparklesClickLocationBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],wq.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Object)],wq.prototype,"noBottomMargin",void 0);
_.T([_.O(),_.Y("design:type",Object)],wq.prototype,"isInlinePreviewTriggered",void 0);_.T([_.O({reflectToAttribute:!0,selector:_.XD}),_.Y("design:type",Boolean)],wq.prototype,"miniMode",void 0);_.T([_.O({value:!1}),_.Y("design:type",Boolean)],wq.prototype,"typographyBump",void 0);_.T([_.gQ("ytd-thumbnail"),_.Y("design:type",HTMLElement)],wq.prototype,"thumbnail",void 0);_.T([_.gQ("#dismissible"),_.Y("design:type",HTMLElement)],wq.prototype,"JSC$13202_dismissibleMedia",void 0);
_.T([_.gQ("ytd-ad-inline-playback-meta-block"),_.Y("design:type",HTMLElement)],wq.prototype,"adInlinePlaybackMetaBlock",void 0);_.T([_.Cz("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],wq.prototype,"onDataChanged",null);_.T([_.Cz("typographyBump"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],wq.prototype,"onTypographyBumpChanged",null);
_.T([_.a("lockupIsHovered"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],wq.prototype,"isHovered",null);wq=_.T([_.y({is:"ytd-video-display-full-buttoned-and-button-group-renderer",disableElementRegistration:!0})],wq);
_.r(wq,"ytd-video-display-full-buttoned-and-button-group-renderer",function(){if(EHp!==void 0)return EHp;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-display-full-buttoned-and-button-group-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer">\n  <div id="root" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer">\n    <div id="thumbnail-container" role="button" aria-label$="[[data.title.accessibility.accessibilityData.label]]" on-click="onThumbnailContainerClick" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer">\n      <ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" rich-grid-thumbnail="" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="9999" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer">\n      </ytd-thumbnail>\n    </div>\n    <ytd-ad-inline-playback-meta-block data="[[data]]" is-hovered="[[isInlinePreviewTriggered]]" mini-mode="[[miniMode]]" no-bottom-margin="[[noBottomMargin]]" typography-bump="[[typographyBump]]" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer">\n    </ytd-ad-inline-playback-meta-block>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer">\n  <div id="dismissed-content" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer"></div>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return EHp=F},{mode:1});var hC_;var ur=function(){var F=_.n.apply(this,arguments)||this;F.isInlinePreviewTriggered=!1;F.JSC$13205_activeViewMeasurementDataResolver=_.G_();return F};
_.k(ur,_.n);_.N=ur.prototype;_.N.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.N.attached=function(){var F=this;this.updateInlinePreviewHoverListeners();this.JSC$13205_activeViewMeasurementDataResolver.promise.then(function(W){F.ytdActiveViewBehavior.enableActiveViewMeasurement(W,15)})};
_.N.detached=function(){this.clearInlinePreviewHoverListeners()};
_.N.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13205_inlinePreviewHoverListener=FY({mediaRenderer:this,lockupElement:this.JSC$13205_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:zSB})};
_.N.clearInlinePreviewHoverListeners=function(){var F;(F=this.JSC$13205_inlinePreviewHoverListener)==null||Qg(F)};
_.N.onDataChanged=function(){var F;((F=this.data)==null?0:F.activeView)&&this.JSC$13205_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",ur.JSC$13204_DEFAULT_CLICK_LOCATION_BEHAVIOR,ur.JSC$13204_CLICK_LOCATION_ID_MAP);this.thumbnail&&(F=this.thumbnail.getElementsByTagName("a"),F.length>0&&(F=F.namedItem("thumbnail"))&&F.removeAttribute("href"))};
_.N.onThumbnailContainerClick=function(F){if(this.data&&this.data.navigationEndpoint){var W,E=(W=this.data)==null?void 0:W.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(E,F,!0);F.stopPropagation()}};
_.N.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.N.impressionLog=function(){var F=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var W,E,h=(E=_.D((W=this.data)==null?void 0:W.onImpression,_.Mc))==null?void 0:E.commands;h&&(h.forEach(function(d){d.clickTrackingParams&&delete d.clickTrackingParams;_.WZ().resolve(_.EJ).resolveCommand(d,{form:{element:F.hostElement}})}),this.data.impressionsFired=!0)}};
_.Sn.Object.defineProperties(ur.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var F;return!((F=this.JSC$13205_inlinePreviewHoverListener)==null?0:ZC(F))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
ur.prototype.onDataChanged=ur.prototype.onDataChanged;ur.JSC$13204_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);ur.JSC$13204_DEFAULT_CLICK_LOCATION_BEHAVIOR=[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL",code:21,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"}];_.T([_.J(PN),_.Y("design:type",Object)],ur.prototype,"ytdActiveViewBehavior",void 0);
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],ur.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],ur.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.O9),_.Y("design:type",Object)],ur.prototype,"ytdDismissibleItemBehavior",void 0);_.T([_.J(_.rt),_.Y("design:type",Object)],ur.prototype,"ytdLockupBehavior",void 0);_.T([_.J(_.am),_.Y("design:type",Object)],ur.prototype,"ytdReduxBehavior",void 0);
_.T([_.J(_.FJ.YtSparklesClickLocationBehavior),_.Y("design:type",Object)],ur.prototype,"ytSparklesClickLocationBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],ur.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Object)],ur.prototype,"isInlinePreviewTriggered",void 0);_.T([_.O({reflectToAttribute:!0,selector:_.XD}),_.Y("design:type",Boolean)],ur.prototype,"miniMode",void 0);_.T([_.gQ("ytd-thumbnail"),_.Y("design:type",HTMLElement)],ur.prototype,"thumbnail",void 0);
_.T([_.gQ("#dismissible"),_.Y("design:type",HTMLElement)],ur.prototype,"JSC$13205_dismissibleMedia",void 0);_.T([_.Cz("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ur.prototype,"onDataChanged",null);_.T([_.a("lockupIsHovered"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],ur.prototype,"isHovered",null);ur=_.T([_.y({is:"ytd-video-display-full-buttoned-renderer",disableElementRegistration:!0})],ur);
_.r(ur,"ytd-video-display-full-buttoned-renderer",function(){if(hC_!==void 0)return hC_;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-display-full-buttoned-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-video-display-full-buttoned-renderer">\n  <div id="root" class="style-scope ytd-video-display-full-buttoned-renderer">\n    <div id="thumbnail-container" role="button" aria-label$="[[data.title.accessibility.accessibilityData.label]]" on-click="onThumbnailContainerClick" class="style-scope ytd-video-display-full-buttoned-renderer">\n      <ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" rich-grid-thumbnail="" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="9999" class="style-scope ytd-video-display-full-buttoned-renderer">\n      </ytd-thumbnail>\n    </div>\n    <ytd-ad-inline-playback-meta-block data="[[data]]" is-hovered="[[isInlinePreviewTriggered]]" mini-mode="[[miniMode]]" class="style-scope ytd-video-display-full-buttoned-renderer">\n    </ytd-ad-inline-playback-meta-block>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-video-display-full-buttoned-renderer">\n  <div id="dismissed-content" class="style-scope ytd-video-display-full-buttoned-renderer"></div>\n</div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return hC_=F},{mode:1});var vH=function(F,W,E,h){h=h===void 0?!1:h;_.Fe.call(this,F);this.adsClientErrorMessage=E;this.aggressivelySample=h;this.args=[];W&&this.args.push(W)};
_.k(vH,_.Fe);var CI=function(F,W,E,h){h=h===void 0?!1:h;_.Fe.call(this,F);this.adsClientErrorMessage=E;this.aggressivelySample=h;this.args=[];W&&this.args.push(W)};
_.k(CI,_.Fe);var dLa=function(F){_.xj.call(this);var W=this;this.initializationFunction=F;this.instance=null;this.addOnDisposeCallback(function(){_.u5(W.instance);W.instance=null})};
_.k(dLa,_.xj);dLa.prototype.get=function(){Math.random()<.001&&this.isDisposed()&&_.UQ("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.instance});this.instance||(this.instance=this.initializationFunction());return this.instance};var AQr=function(){var F=new Map;[].forEach(function(W){F.set(W.JSC$26749_getType(),W)})};new Promise(function(){});var IiR=new Map([["unspecified","CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"],["core","CONTROL_FLOW_MANAGER_LAYER_CORE"],["adapter","CONTROL_FLOW_MANAGER_LAYER_ADAPTER"],["surface","CONTROL_FLOW_MANAGER_LAYER_SURFACE"],["external","CONTROL_FLOW_MANAGER_LAYER_EXTERNAL"]]),BOI=new Map([["normal",{requestEvent:"ADS_CLIENT_EVENT_TYPE_NORMAL_EXIT_LAYOUT_REQUESTED",successEvent:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_NORMALLY"}],["skipped",{requestEvent:"ADS_CLIENT_EVENT_TYPE_SKIP_EXIT_LAYOUT_REQUESTED",successEvent:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_SKIP"}],
["muted",{requestEvent:"ADS_CLIENT_EVENT_TYPE_MUTE_EXIT_LAYOUT_REQUESTED",successEvent:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_MUTE"}],["abandoned",{requestEvent:"ADS_CLIENT_EVENT_TYPE_ABANDON_EXIT_LAYOUT_REQUESTED",successEvent:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABANDON"}],["user_input_submitted",{requestEvent:"ADS_CLIENT_EVENT_TYPE_USER_INPUT_SUBMITTED_EXIT_LAYOUT_REQUESTED",successEvent:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_INPUT_SUBMITTED"}],["user_cancelled",{requestEvent:"ADS_CLIENT_EVENT_TYPE_USER_CANCELLED_EXIT_LAYOUT_REQUESTED",
successEvent:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_CANCELLED"}],["error",{requestEvent:"ADS_CLIENT_EVENT_TYPE_ABORTED_EXIT_LAYOUT_REQUESTED",successEvent:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABORTED"}]]),NOB=function(F){this.experimentApiProvider=F;F=Math.random();this.experimentApiProvider.get();this.alwaysIncludeDebugData=F<.1};var S6=function(F,W,E,h){_.xj.call(this);this.adsControlFlowEventListeners=W;this.adEventLogger=E;this.experimentApiProvider=h;this.adsControlFlowManagerHelper=F(this,this,this,this,this);_.gl(this,this.adsControlFlowManagerHelper);F=_.U(W);for(W=F.next();!W.done;W=F.next())_.gl(this,W.value)};
_.k(S6,_.xj);var VY_=function(F,W,E,h){pS(F.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",W,E,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,h);F=_.U(F.adsControlFlowEventListeners);for(h=F.next();!h.done;h=F.next())VY_(h.value,W,E)};
_.N=S6.prototype;_.N.onOpportunityProcessedExternallyManaged=function(F,W,E,h){pS(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",F,E,W,void 0,void 0,void 0,void 0,void 0,void 0,void 0,h)};
_.N.onSlotReceivedExternallyManaged=function(F,W){m3(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",F,W)};
_.N.onSlotEntered=function(F){if(KS(this.adsControlFlowManagerHelper,F)!=null){m3(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",F);this.adsControlFlowManagerHelper.onSlotEntered(F);for(var W=_.U(this.adsControlFlowEventListeners),E=W.next();!E.done;E=W.next())E.value.onSlotEntered(F);if(KS(this.adsControlFlowManagerHelper,F)!=null&&KS(this.adsControlFlowManagerHelper,F).isOccupyingSlotType()&&Fs(this.adsControlFlowManagerHelper,F)&&!ULB(this.adsControlFlowManagerHelper,F)){var h;WJ(this.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",F,(h=Fs(this.adsControlFlowManagerHelper,F))!=null?h:void 0);F=KS(this.adsControlFlowManagerHelper,F);F.slotLifecycleStage!=="entered"&&EK(F.slot,F.slotLifecycleStage,"enterLayoutForSlot");F.slotLifecycleStage="rendering";F.registeredLayoutRenderingAdapter.startRendering(F.layout)}}};
_.N.onSlotExited=function(F){if(KS(this.adsControlFlowManagerHelper,F)!=null){m3(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",F);this.adsControlFlowManagerHelper.onSlotExited(F);for(var W=_.U(this.adsControlFlowEventListeners),E=W.next();!E.done;E=W.next())E.value.onSlotExited(F);KS(this.adsControlFlowManagerHelper,F)!=null&&KS(this.adsControlFlowManagerHelper,F).markedForUnscheduleAfterOutboundAdapterRequests&&RCH(this,F)}};
_.N.onLayoutReceivedExternallyManaged=function(F,W,E){F.managerLayer!=="core"&&WJ(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",F,W,E)};
var eCH=function(F,W,E){if(KS(F.adsControlFlowManagerHelper,W)!=null){WJ(F.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",W,E);F=_.U(F.adsControlFlowEventListeners);for(var h=F.next();!h.done;h=F.next())eCH(h.value,W,E)}};
S6.prototype.onLayoutExited=function(F,W,E){if(KS(this.adsControlFlowManagerHelper,F)!=null){WJ(this.adEventLogger,vHR(E),F,W);this.adsControlFlowManagerHelper.onLayoutExited(F,W);for(var h=_.U(this.adsControlFlowEventListeners),d=h.next();!d.done;d=h.next())d.value.onLayoutExited(F,W,E);(E=Fs(this.adsControlFlowManagerHelper,F))&&W.layoutId===E.layoutId&&MYu(this,F)}};
S6.prototype.disposeInternal=function(){var F=gHT(this.adsControlFlowManagerHelper);F=_.U(F);for(var W=F.next();!W.done;W=F.next())RCH(this,W.value);_.xj.prototype.disposeInternal.call(this)};
var RCH=function(F,W){if(KS(F.adsControlFlowManagerHelper,W)!=null)if(KS(F.adsControlFlowManagerHelper,W).JSC$26780_isSlotExitRequested()||KS(F.adsControlFlowManagerHelper,W).JSC$26780_isLayoutExitRequested())KS(F.adsControlFlowManagerHelper,W).markedForUnscheduleAfterOutboundAdapterRequests=!0;else if(KS(F.adsControlFlowManagerHelper,W).isOccupyingSlotType())KS(F.adsControlFlowManagerHelper,W).markedForUnscheduleAfterOutboundAdapterRequests=!0,MYu(F,W);else if(KS(F.adsControlFlowManagerHelper,W).JSC$26780_isSlotFillRequested())KS(F.adsControlFlowManagerHelper,
W).markedForUnscheduleAfterOutboundAdapterRequests=!0,KS(F.adsControlFlowManagerHelper,W)!=null&&(m3(F.adEventLogger,"ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",W),W=KS(F.adsControlFlowManagerHelper,W),W.fulfillmentLifecycleStage="fill_cancel_requested",W.registeredFulfillmentAdapter.cancelSlotFilling());else{var E=Fs(F.adsControlFlowManagerHelper,W),h;F.experimentApiProvider.get();(h=_.c("h5_enable_layout_unscheduling_events"))&&(E?QXX(F,W,E):_.UQ(Error("Hh"),W,E,void 0,!1));m3(F.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",W);var d=KS(F.adsControlFlowManagerHelper,W),V=W.slotEntryTrigger,R=d.registeredSlotEntryTriggerAdapters.get(V.triggerId);R&&(R.unregisterTrigger(V),d.registeredSlotEntryTriggerAdapters.delete(V.triggerId));V=_.U(W.slotFulfillmentTriggers);for(R=V.next();!R.done;R=V.next()){R=R.value;var M=d.registeredFulfillmentTriggerAdapters.get(R.triggerId);M&&(M.unregisterTrigger(R),d.registeredFulfillmentTriggerAdapters.delete(R.triggerId))}V=_.U(W.slotExpirationTriggers);
for(R=V.next();!R.done;R=V.next())if(R=R.value,M=d.registeredExpirationTriggerAdapters.get(R.triggerId))M.unregisterTrigger(R),d.registeredExpirationTriggerAdapters.delete(R.triggerId);d.hasLayout()&&(V=d.layout,h3(d,V.layoutExitNormalTriggers),h3(d,V.layoutExitSkipTriggers),h3(d,V.layoutExitMuteTriggers),h3(d,V.layoutExitUserInputSubmittedTriggers),h3(d,V.layoutExitUserCancelledTriggers));d.registeredFulfillmentAdapter=void 0;d.registeredSlotAdapter!=null&&(d.registeredSlotAdapter.release(),d.registeredSlotAdapter=
void 0);d.registeredLayoutRenderingAdapter!=null&&(d.registeredLayoutRenderingAdapter.release(),d.registeredLayoutRenderingAdapter=void 0);d=F.adsControlFlowManagerHelper;KS(d,W)&&(d=zCe(d,W.slotType+"_"+W.slotPhysicalPosition))&&d.delete(W.slotId);m3(F.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",W);F=_.U(F.adsControlFlowEventListeners);for(d=F.next();!d.done;d=F.next())d=d.value,d.onSlotUnscheduled(W),E&&!h&&QXX(d,W,E)}},QXX=function(F,W,E){WJ(F.adEventLogger,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_LAYOUT_REQUESTED",
W,E);
WJ(F.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_UNSCHEDULED",W,E);F=_.U(F.adsControlFlowEventListeners);for(var h=F.next();!h.done;h=F.next())h=h.value,E&&QXX(h,W,E)},MYu=function(F,W){if(KS(F.adsControlFlowManagerHelper,W)!=null&&KS(F.adsControlFlowManagerHelper,W).isOccupyingSlotType()){var E=Fs(F.adsControlFlowManagerHelper,W);
if(E&&ULB(F.adsControlFlowManagerHelper,W)){if(KS(F.adsControlFlowManagerHelper,W)!=null){var h=F.adEventLogger,d;var V=((d=BOI.get("abandoned"))==null?void 0:d.requestEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";WJ(h,V,W,E);F=KS(F.adsControlFlowManagerHelper,W);F.slotLifecycleStage!=="rendering"&&EK(F.slot,F.slotLifecycleStage,"exitLayout");F.slotLifecycleStage="rendering_stop_requested";F.registeredLayoutRenderingAdapter.stopRendering(E,"abandoned")}}else{m3(F.adEventLogger,"ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",
W);try{h=KS(F.adsControlFlowManagerHelper,W);if(!h)throw new CI("Cannot exit slot it is unregistered",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_WAS_UNREGISTERED");h.slotLifecycleStage!=="enter_requested"&&h.slotLifecycleStage!=="entered"&&h.slotLifecycleStage!=="rendering"&&EK(h.slot,h.slotLifecycleStage,"exitSlot");h.slotLifecycleStage="exit_requested";if(h.registeredSlotAdapter===void 0)throw h.slotLifecycleStage="scheduled",new CI("Cannot exit slot because adapter is not defined",void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");
h.registeredSlotAdapter.exit()}catch(R){R instanceof CI&&R.adsClientErrorMessage?(tYa(F.adEventLogger,R.adsClientErrorMessage,W),_.UQ(R,W,void 0,void 0,R.aggressivelySample)):(tYa(F.adEventLogger,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",W),_.UQ(R,W))}}}};var dD=function(F,W,E,h,d,V){_.xj.call(this);this.registry=F;this.experimentApiProvider=V;this.slotMap=new Map};
_.k(dD,_.xj);var zCe=function(F,W){return(F=F.slotMap.get(W))?F:new Map},KS=function(F,W){return zCe(F,W.slotType+"_"+W.slotPhysicalPosition).get(W.slotId)},gHT=function(F){var W=[];
F.slotMap.forEach(function(E){E=_.U(E.values());for(var h=E.next();!h.done;h=E.next())W.push(h.value.slot)});
return W};
dD.prototype.onSlotEntered=function(F){F=KS(this,F);F.slotLifecycleStage!=="enter_requested"&&EK(F.slot,F.slotLifecycleStage,"onSlotEntered");F.slotLifecycleStage="entered"};
var ULB=function(F,W){F=KS(F,W);return F.hasLayout()&&F.isRendering()},Fs=function(F,W){(F=KS(F,W))?F.hasLayout()&&!F.layout&&_.UQ("Unexpected empty layout",W):_.UQ("Unexpected undefined slotState",W);
return(F==null?void 0:F.layout)||null};
dD.prototype.onSlotExited=function(F){F=KS(this,F);F.slotLifecycleStage!=="exit_requested"&&EK(F.slot,F.slotLifecycleStage,"onSlotExited");F.slotLifecycleStage="scheduled"};
dD.prototype.onLayoutExited=function(F,W){F=KS(this,F);F.isPrimaryLayout(W)&&(F.slotLifecycleStage!=="rendering_stop_requested"&&EK(F.slot,F.slotLifecycleStage,"onLayoutExited"),F.slotLifecycleStage="entered")};
var h3=function(F,W){W=_.U(W);for(var E=W.next();!E.done;E=W.next()){E=E.value;var h=F.registeredLayoutExitTriggerAdapters.get(E.triggerId);h&&(h.unregisterTrigger(E),F.registeredLayoutExitTriggerAdapters.delete(E.triggerId))}},EK=function(F,W,E){_.UQ("Slot stage was "+W+" when calling method "+E,F)};var BOc=function(F){_.xj.call(this);this.deps=F;this.JSC$13254_adsControlFlowManager=Ch_(this)};
_.k(BOc,_.xj);var Ch_=function(F){var W=new S6(function(E,h,d,V){return new dD(F.deps.registry,E,h,d,V,F.deps.experimentApiProvider)},new Set(kvr(F.deps.registry).concat(F.deps.listeners)),F.deps.adEventLogger,F.deps.experimentApiProvider);
_.gl(F,W);return W};var vHz=function(F,W){_.xj.call(this);this.experimentApiProvider=F;this.eventLoggingSettingsProvider=W;this.eventCount=0};
_.k(vHz,_.xj);vHz.prototype.logEvent=function(F){pS(this,F)};
var m3=function(F,W,E,h){pS(F,W,void 0,void 0,void 0,E,void 0,void 0,void 0,E.adSlotLoggingData,void 0,void 0,h)},WJ=function(F,W,E,h,d){pS(F,W,void 0,void 0,void 0,E,h?h:void 0,void 0,void 0,E.adSlotLoggingData,h?h.adLayoutLoggingData:void 0,void 0,d)},tYa=function(F,W,E){pS(F,"ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,E,void 0,void 0,void 0,E.adSlotLoggingData,void 0,{errorType:"ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED",
errorMessage:W})},pS=function(F,W,E,h,d,V,R,M,g,t,C,B,I){I=I===void 0?0:I;
Iiz(F.experimentApiProvider.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+W,"slot:",V,"layout:",R,"ping:",M,"Opportunity:",{opportunityType:E,associatedSlotId:h,slotsFromOpportunity:d,triggerBundle:g,adSlotLoggingData:t,adLayoutLoggingData:C});try{var x=function(){F.experimentApiProvider.get();if(W!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){W||_.UQ("Empty PACF event type",V,R);var A=F.eventLoggingSettingsProvider.get();var X;(X=A.alwaysIncludeDebugData)||(A.experimentApiProvider.get(),X=
!1);A=X;X={eventType:W,eventOrder:++F.eventCount};var P={};V&&(P.slotData=DLR(A,V));if(R){var b={type:R.layoutType,controlFlowManagerLayer:IiR.get(R.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};A&&(b.debugData={layoutId:R.layoutId});P.layoutData=b}M&&(P.pingData={pingDispatchStatus:M.dispatchStatus,serializedAdPingMetadata:M.ping.serializedAdPingMetadata,pingIndex:M.index});g&&(P.triggerData=cQe(g.trigger,g.category));E&&(P.opportunityData=xLb(A,E,h,d));X.adClientData=P;t&&(X.serializedSlotAdServingData=
t.serializedSlotAdServingDataEntry);C&&(X.serializedAdServingData=C.serializedAdServingDataEntry);B&&(X.errorInfo=B);_.Pc("adsClientStateChange",{adsClientEvent:X})}};
I&&I>0?_.sB(_.OZ(),function(){return x()},I):x()}catch(A){Iiz(F.experimentApiProvider.get(),"html5_log_pacf_logging_errors")&&_.sB(_.OZ(),function(){_.UQ(A instanceof Error?A:String(A),V,R,{pacf_message:"exception during pacf logging"})})}};var cQp=function(F,W){vHz.call(this,F,W)};
_.k(cQp,vHz);var DLz=function(){},Iiz=function(F,W){return _.c(W)};var kvu=function(){var F=new xLT;this.JSC$13273_adsControlFlowManager=(new BOc(F)).JSC$13254_adsControlFlowManager},xLT=function(){_.xj.call(this);
var F=this;this.experimentApiProvider=new dLa(function(){return new DLz});
var W=new dLa(function(){return new NOB(F.experimentApiProvider)});
this.adEventLogger=new cQp(this.experimentApiProvider,W);this.registry={opportunityAdapterMap:new Map,fulfillmentAdapterFactoryMap:new Map,triggerAdapterMap:new Map,slotAdapterFactoryMap:new Map,layoutRenderingAdapterFactoryMap:new Map};this.listeners=[]};
_.k(xLT,_.xj);var AQa=function(){},sXe,N2=function(){sXe||(sXe=new AQa);
return sXe},Vp=function(F){if(!F.JSC$13284_externallyManagedSlotAdapterCallback){var W=(new kvu).JSC$13273_adsControlFlowManager;
F.JSC$13284_externallyManagedSlotAdapterCallback=W}return F.JSC$13284_externallyManagedSlotAdapterCallback},LwO=function(F,W,E){var h=W.opportunityType,d=Error("Ih");
if(h!==void 0){var V=Vp(F);VY_(V,h,void 0,E)}else _.UQ(d,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});V=[];if(W.adSlotAndLayoutMetadata!==void 0){W=_.U(W.adSlotAndLayoutMetadata);for(var R=W.next();!R.done;R=W.next()){var M=R.value;if(R=M.adSlotMetadata)if(V.push(R),F.onSlotReceivedExternallyManaged(R,E),M.adLayoutMetadata){M=_.U(M.adLayoutMetadata);for(var g=M.next();!g.done;g=M.next())F.onLayoutReceivedExternallyManaged(R,g.value,E)}else E>0&&_.UQ("AdLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+
h,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});else E>0&&_.UQ("AdSlotMetadata is not filled for PACFied response on TV for opportunity type: "+h,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"})}}else E>0&&_.UQ("AdSlotAndLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+h,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});if(h!==void 0)F.onOpportunityProcessedExternallyManaged(h,V,void 0,E);else _.UQ(d,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"})};
AQa.prototype.onSlotReceivedExternallyManaged=function(F,W){F=BH(F);if(F instanceof CI)_.UQ(F,void 0,void 0,{event:"onSlotReceivedExternallyManaged"});else Vp(this).onSlotReceivedExternallyManaged(F,W)};
AQa.prototype.onLayoutReceivedExternallyManaged=function(F,W,E){F=BH(F);W=sXY(W);if(F instanceof CI)_.UQ(F,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else if(W instanceof vH)_.UQ(W,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else Vp(this).onLayoutReceivedExternallyManaged(F,W,E)};
AQa.prototype.onOpportunityProcessedExternallyManaged=function(F,W,E,h){var d=[];W=_.U(W);for(var V=W.next();!V.done;V=W.next())V=BH(V.value),V instanceof CI?_.UQ(V,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"}):d.push(V);Vp(this).onOpportunityProcessedExternallyManaged(F,d,E,h)};
var qH_=function(F,W){W=BH(W);if(W instanceof CI)_.UQ(W,void 0,void 0,{event:"onSlotScheduledAndEnteredExternallyManaged"});else{var E=Vp(F);m3(E.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",W);E=_.U(E.adsControlFlowEventListeners);for(var h=E.next();!h.done;h=E.next())h=KS(h.value,W),h.slotLifecycleStage!=="not_scheduled"&&EK(h.slot,h.slotLifecycleStage,"onSlotScheduled"),h.slotLifecycleStage="scheduled";F=Vp(F);m3(F.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",W);F=_.U(F.adsControlFlowEventListeners);
for(E=F.next();!E.done;E=F.next())E.value.onSlotEntered(W)}},$Li=function(F,W){W=BH(W);
if(W instanceof CI)_.UQ(W,void 0,void 0,{event:"onSlotExitedAndUnscheduledExternallyManaged"});else{var E=Vp(F);m3(E.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",W);E=_.U(E.adsControlFlowEventListeners);for(var h=E.next();!h.done;h=E.next())h.value.onSlotExited(W);F=Vp(F);m3(F.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",W);F=_.U(F.adsControlFlowEventListeners);for(E=F.next();!E.done;E=F.next())E.value.onSlotUnscheduled(W)}},Z5i=function(F,W,E){W=BH(W);
E=sXY(E);if(W instanceof CI)_.UQ(W,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else if(E instanceof vH)_.UQ(E,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else{var h=Vp(F);WJ(h.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",W,E);h=_.U(h.adsControlFlowEventListeners);for(var d=h.next();!d.done;d=h.next())d.value.onLayoutScheduled(W,E);F=Vp(F);WJ(F.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",W,E);F=_.U(F.adsControlFlowEventListeners);
for(h=F.next();!h.done;h=F.next())eCH(h.value,W,E)}},UK=function(F,W,E){W=BH(W);
E=sXY(E);if(W instanceof CI)_.UQ(W,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else if(E instanceof vH)_.UQ(E,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else{var h=Vp(F);WJ(h.adEventLogger,vHR("normal"),W,E);h=_.U(h.adsControlFlowEventListeners);for(var d=h.next();!d.done;d=h.next())d.value.onLayoutExited(W,E,"normal");F=Vp(F);F=_.U(F.adsControlFlowEventListeners);for(h=F.next();!h.done;h=F.next())QXX(h.value,W,E)}};_.Rz=_.GK(function(F){var W=_.o4(F,{targetHeight:void 0,targetWidth:void 0,preserveHeight:!1,preserveWidth:!1,useWidth:!1,setOnErrorHandler:!1,setProgressiveImageLoading:!1,listenToTapEvent:!1,isGridViewEnabled:!1});F=Object.assign({},W);var E=W.data;W=W.customCommandResolver;var h=(delete F.data,delete F.customCommandResolver,F),d=_.uf();_.WH(d,function(){return E().interaction},W,function(){var M;
return(M=h.listenToTapEvent)==null?void 0:M.call(h)});
_.ER(d,{visibilityCallback:function(M){var g,t=(g=E().interaction)==null?void 0:g.onFirstVisible;M&&(t&&_.fK(t),h.setOnErrorHandler()&&LwG(d))},
showOption:_.w1});F=_.U(_.g$(!1,void 0,"eiYvIe"));var V=F.next().value,R=F.next().value;F=_.tb(function(){var M;((M=h.setTouchEndHandler)==null?0:M.call(h))&&!V()&&(d.value.click(),R(!0),setTimeout(function(){R(!1)},100));
return!1});
return _.z("ad-image-view-model",{class:function(){var M,g=[((M=E().interaction)==null?0:M.onTap)?"ytwAdImageViewModelHostIsClickableAdComponent":"ytwAdImageViewModelHost"],t;((t=h.isGridViewEnabled)==null?0:t.call(h))&&g.push("ytwAdImageViewModelHostInGridView");return g.join(" ")},
el:d,"on:touchend":F},_.z("div",{class:"ytwAdImageViewModelHostImageContainer"},_.z(_.T4,{data:function(){var M;return{sources:E().imageSources,contentMode:(M=E().imageProperties)==null?void 0:M.contentMode}},
alt:function(){var M,g;return((M=E().interaction)==null?void 0:(g=M.accessibility)==null?void 0:g.label)||""},
targetHeight:h.targetHeight,targetWidth:h.targetWidth,preserveHeight:h.preserveHeight,preserveWidth:h.preserveWidth,useWidth:h.useWidth,style:function(){var M,g;return"vertical-align: bottom;"+(((M=E().background)==null?0:M.color)?"background-color:"+_.ZP((g=E().background)==null?void 0:g.color)+";":"")},
className:function(){return h.setProgressiveImageLoading()?"ytwAdImageViewModelHostImage":void 0},
draggable:function(){var M,g;return(g=(M=h.setDraggable)==null?void 0:M.call(h))!=null?g:void 0}})))},"cb");var XLX=_.GK(function(F){var W=F.data,E=F.listenToTapEvent,h=_.uf();_.c("enable_web_home_top_landscape_image_layout_legacy_click_command")||_.WH(h,function(){return W().interaction},void 0,function(){return E==null?void 0:E()});
_.ER(h,{visibilityCallback:function(V){var R,M=(R=W().interaction)==null?void 0:R.onFirstVisible;V&&M&&_.fK(M)},
showOption:_.w1});F=_.tb(function(){if(_.c("enable_web_home_top_landscape_image_layout_legacy_click_command")){var V,R=(V=W().interaction)==null?void 0:V.onTap;R&&_.hF(h.value,"yt-navigate",{endpoint:_.He(R)})}});
var d=function(){};
return _.z("ad-button-hover-overlay-view-model",{"on:click":F,class:function(){var V;return((V=W().interaction)==null?0:V.onTap)?"ytwAdButtonHoverOverlayViewModelHostIsClickableAdComponent":"ytwAdButtonHoverOverlayViewModelHost"},
el:h},function(){return _.c("enable_web_home_top_landscape_image_layout_legacy_click_command")?_.z(_.a6,{data:function(){return W().button}},{adButtonViewModel:function(V){return _.z(_.Sd,{data:V.data,
customCommandResolver:d})}}):_.z(_.a6,{data:function(){return W().button}},{adButtonViewModel:_.Sd})}())},"db");var I$;_.pK(_.GK(function(F){var W=F.data;var E=_.uf();_.c("stop_av_measurement_on_detach")&&_.$p(function(){D6(E)});
_.WH(E,function(){return W().interaction},void 0,function(){return!0});
_.ER(E,{visibilityCallback:function(R){if(R){var M;(R=(M=W().interaction)==null?void 0:M.onFirstVisible)&&_.fK(R);var g;if(M=(g=W().adLayoutData)==null?void 0:g.activeViewData)cH(E,M),_.c("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&D6(E)})}else _.c("stop_av_measurement_on_detach")&&D6(E)},
showOption:_.w1,hideOption:u6});F=_.U(_.g$(!1,void 0,"yzu6qe"));var h=F.next().value,d=F.next().value;F=_.tb(function(){d(!0)});
var V=_.tb(function(){d(!1)});
return _.z("compact-landscape-no-button-layout-view-model",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHost",el:E,"on:mouseenter":F,"on:mouseleave":V},_.z("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainer",style:_.vr({"max-width":function(){return _.c("enable_desktop_search_bigger_thumbs")?"500px":"360px"}})},_.z("div",{class:function(){var R;
a:{var M;switch((R=_.D(W().thumbnailImage,ZI))==null?void 0:(M=R.imageProperties)==null?void 0:M.renderingAspect){case "RENDERING_ASPECT_SQUARE":R="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerSquareImageContainer";break a;case "RENDERING_ASPECT_LANDSCAPE":R="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerLandscapeImageContainer";break a}R=void 0}return R}},_.z(_.a6,{data:function(){return W().thumbnailImage}},{adImageViewModel:function(R){return _.z(_.Rz,
{data:R.data,
listenToTapEvent:!0,setTouchEndHandler:_.c("enable_top_landscape_image_experiment_dom_id_web")})}})),_.z("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.z(_.v,{cond:function(){var R,M,g;
return(R=_.D(W().thumbnailImage,ZI))==null?void 0:(M=R.imageProperties)==null?void 0:(g=M.overlayIcon)==null?void 0:g.iconImage},
then:function(R){return _.z(_.T4,{data:R,alt:"",className:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"})}})),_.z("div",{class:function(){return h()?"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"}},_.z(_.a6,{data:function(){return W().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:function(R){return _.z(XLX,
{data:R.data,
listenToTapEvent:!0})}}))),_.z("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostMetadata"},_.z(_.a6,{data:function(){return W().feedAdMetadata}},{feedAdMetadataViewModel:function(R){return _.z(nmp,{data:R.data,
listenToTapEvent:!0,setTouchEndHandler:_.c("enable_top_landscape_image_experiment_dom_id_web")})}})))},"eb"),"compact-landscape-no-button-layout-view-model",{props:{data:_.TS}});_.pK(_.GK(function(F){var W=F.data;var E=_.uf();_.c("stop_av_measurement_on_detach")&&_.$p(function(){D6(E)});
var h=_.Jb(_.o6);_.WH(E,function(){return W().interaction});
_.ER(E,{visibilityCallback:function(t){if(t){var C;(t=(C=W().interaction)==null?void 0:C.onFirstVisible)&&_.fK(t);var B;if(C=(B=W().adLayoutData)==null?void 0:B.activeViewData)cH(E,C),_.c("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&D6(E)})}else _.c("stop_av_measurement_on_detach")&&D6(E)},
showOption:_.w1,hideOption:u6});var d=_.tb(function(t){var C,B,I=(C=_.D(W().adImage,ZI))==null?void 0:(B=C.interaction)==null?void 0:B.onTap;I&&(_.c("enable_square_image_components_ui_web_with_custom_event")?_.hF(E.value,"yt-navigate",{endpoint:_.He(I)}):jUk(t,I))}),V=_.tb(function(){var t,C,B=(t=_.D(W().adButton,$ac))==null?void 0:(C=t.interaction)==null?void 0:C.onTap;
B&&_.hF(E.value,"yt-navigate",{endpoint:_.He(B)})}),R=function(){};
F={};var M={},g={};return _.z("square-image-layout-view-model",{class:_.ec("ytwSquareImageLayoutViewModelHost",(F.ytwSquareImageLayoutViewModelHostColumn=h,F)),el:E},_.z("div",{class:_.ec("ytwSquareImageLayoutViewModelHostImage",(M.ytwSquareImageLayoutViewModelHostColumnImage=h,M))},function(){return _.c("enable_square_image_components_ui_web_with_native_img")?_.z("img",{class:"ytwSquareImageLayoutViewModelHostImageExp",src:function(){var t,C,B;return((t=_.D(W().adImage,ZI))==null?void 0:(C=t.imageSources)==
null?void 0:(B=C[0])==null?void 0:B.url)||"data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII="},
draggable:"false","on:click":d}):_.z(_.a6,{data:function(){return W().adImage}},{adImageViewModel:function(t){return _.z(_.Rz,{data:t.data,
isGridViewEnabled:h,targetHeight:168,setOnErrorHandler:!0,setDraggable:!1,setProgressiveImageLoading:!0})}})}()),_.z("div",{class:_.ec("ytwSquareImageLayoutViewModelHostMetadataButtonContainer",(g.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainer=h,g))},_.z(_.a6,{data:function(){return W().feedAdMetadata}},{feedAdMetadataViewModel:nmp}),function(){return _.c("enable_square_image_components_ui_web_with_float_button")?_.z("div",{"on:click":V},_.z(_.a6,{data:function(){return W().adButton}},
{adButtonViewModel:function(t){var C={};
return _.z(_.Sd,{data:t.data,customCommandResolver:R,className:_.ec((C.ytwSquareImageLayoutViewModelHostMetadataButtonContainerButton=!0,C.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainerButton=h,C))})}})):_.z(_.a6,{data:function(){return W().adButton}},{adButtonViewModel:function(t){var C={};
return _.z(_.Sd,{data:t.data,className:_.ec((C.ytwSquareImageLayoutViewModelHostMetadataButtonContainerButton=!0,C.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainerButton=h,C))})}})}()))},"fb"),"square-image-layout-view-model",{props:{data:_.TS}});_.pK(_.GK(function(F){var W=F.data;var E=F.noBottomMargin;var h=F.typographyBump;var d=_.uf();_.c("stop_av_measurement_on_detach")&&_.$p(function(){D6(d)});
_.c("enable_web_home_top_landscape_image_layout_level_click")&&_.WH(d,function(){return W().interaction},void 0,function(){return!0});
F=function(){return W().interaction};
F!==void 0&&F!==null||_.i0(Error("Jh"));_.ER(d,{visibilityCallback:function(C){if(C){var B;(C=(B=W().interaction)==null?void 0:B.onFirstVisible)&&_.fK(C);var I;if(B=(I=W().adLayoutData)==null?void 0:I.activeViewData)cH(d,B),_.c("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&D6(d)})}else _.c("stop_av_measurement_on_detach")&&D6(d)},
showOption:_.w1,hideOption:u6});var V=function(){var C,B,I;return(C=_.D(W().thumbnailImage,ZI))==null?void 0:(B=C.background)==null?void 0:(I=B.backgroundImageSource)==null?void 0:I.imageSources};
F=_.U(_.g$(!1,void 0,"GIwTMc"));var R=F.next().value,M=F.next().value;F=_.tb(function(){M(!0)});
var g=_.tb(function(){M(!1)}),t=function(){return R()?"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"};
return _.z("top-landscape-image-layout-view-model",{class:function(){var C;return((C=W().interaction)==null?0:C.onTap)&&_.c("enable_web_home_top_landscape_image_layout_level_click")?"ytwTopLandscapeImageLayoutViewModelHostIsClickableAdComponent":"ytwTopLandscapeImageLayoutViewModelHost"},
el:d,"on:mouseenter":F,"on:mouseleave":g},_.z("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainer"},_.z(_.v,{cond:function(){return V()&&V().length>0},
then:function(){return _.z("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerBackgroundImage",style:_.vr({top:"0","background-image":function(){return"url("+String(V()[0].url)+")"},
"background-position":"center","background-repeat":"no-repeat","background-size":"100% 100%"})})}}),_.z(_.v,{cond:function(){return!!W().adButtonHoverOverlay},
then:function(){return _.z("div",{class:t},_.z(_.a6,{data:function(){return W().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:XLX}))}}),_.z("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerImage"},_.z(_.a6,{data:function(){return W().thumbnailImage}},{adImageViewModel:function(C){return _.z(_.Rz,{data:C.data,
targetWidth:1152,useWidth:!0,setTouchEndHandler:!1,listenToTapEvent:_.c("enable_web_home_top_landscape_image_layout_level_click")})}})),_.z("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.z(_.T4,{data:{sources:[{clientResource:{imageName:_.c("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"EXTERNAL_LINK"}}]},
alt:"",className:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"}))),_.z("div",{class:"ytwTopLandscapeImageLayoutViewModelHostMetadata"},_.z(_.a6,{data:function(){return W().feedAdMetadata}},{feedAdMetadataViewModel:function(C){return _.z(nmp,{data:C.data,
noBottomMargin:function(){return E==null?void 0:E()},
listenToTapEvent:function(){return _.c("enable_web_home_top_landscape_image_layout_level_click")},
typographyBump:function(){return h==null?void 0:h()}})}})))},"gb"),"top-landscape-image-layout-view-model",{props:{data:_.TS,
noBottomMargin:_.TS,typographyBump:_.TS}});_.pK(_.GK(function(F){var W=F.data;var E=F.typographyBump;var h=_.uf();_.c("stop_av_measurement_on_detach")&&_.$p(function(){D6(h)});
_.ER(h,{visibilityCallback:function(d){if(d){var V;(d=(V=W().interaction)==null?void 0:V.onFirstVisible)&&_.fK(d);var R;if(V=(R=W().adLayoutData)==null?void 0:R.activeViewData)cH(h,V),_.c("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&D6(h)})}else _.c("stop_av_measurement_on_detach")&&D6(h)},
showOption:_.w1,hideOption:u6});return _.z("video-display-button-group-layout-view-model",{class:"ytwVideoDisplayButtonGroupLayoutViewModelHost",el:h},_.z("div",null,_.z(_.a6,{data:function(){return W().videoLockup}},{lockupViewModel:function(d){return _.z(_.EN,{data:d.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailTargetWidth:9999,typographyBump:E})}})))},"hb"),"video-display-button-group-layout-view-model",{props:{data:_.TS,
noBottomMargin:_.TS,typographyBump:_.TS}});_.pK(_.GK(function(F){var W=F.data;var E=F.typographyBump;var h=_.uf();_.c("stop_av_measurement_on_detach")&&_.$p(function(){D6(h)});
_.ER(h,{visibilityCallback:function(d){if(d){var V;(d=(V=W().interaction)==null?void 0:V.onFirstVisible)&&_.fK(d);var R;if(V=(R=W().adLayoutData)==null?void 0:R.activeViewData)cH(h,V),_.c("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&D6(h)})}else _.c("stop_av_measurement_on_detach")&&D6(h)},
showOption:_.w1,hideOption:u6});return _.z("video-display-full-layout-view-model",{class:"ytwVideoDisplayFullLayoutViewModelHost",el:h},_.z("div",null,_.z(_.a6,{data:function(){return W().videoLockup}},{lockupViewModel:function(d){return _.z(_.EN,{data:d.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0},thumbnailTargetWidth:9999,typographyBump:E})}})))},"ib"),"video-display-full-layout-view-model",{props:{data:_.TS,
noBottomMargin:_.TS,typographyBump:_.TS}});_.H5_=_.GK(function(F){var W=F.data;F=_.uf();return _.z("ad-card-badge-view-model",{class:function(){return"ytwAdCardBadgeViewModelHost"},
el:F},_.z(_.v,{cond:function(){return W().imageBadge},
then:function(E){return _.z(_.T4,{data:E,alt:""})}}))},"jb");var PhM=_.GK(function(F){var W=F.data;var E=F.customCommandResolver;F=_.uf();_.WH(F,function(){return W().interaction},E);
_.ER(F,{visibilityCallback:function(h){var d,V=(d=W().interaction)==null?void 0:d.onFirstVisible;h&&V&&_.fK(V)},
showOption:_.w1});return _.z("carousel-ad-card-image-view-model",{class:function(){var h;return((h=W().interaction)==null?0:h.onTap)?"ytwCarouselAdCardImageViewModelHostIsClickableAdComponent":"ytwCarouselAdCardImageViewModelHost"},
el:F,"aria-label":function(){var h,d;return(h=W().interaction)==null?void 0:(d=h.accessibility)==null?void 0:d.label}},_.z(_.a6,{data:function(){return W().adImage}},{adImageViewModel:function(h){return _.z(_.Rz,{data:h.data,
customCommandResolver:E})}}),_.z("div",{class:"ytwCarouselAdCardImageViewModelHostCardBadge"},_.z(_.a6,{data:function(){return W().badge}},{adCardBadgeViewModel:_.H5_})),_.z(_.xY,{model:{color:4}}))},"kb");var JQ_=_.GK(function(F){var W=_.U(_.g$(0,void 0,"o9Bzd")),E=W.next().value;W.next();var h=W.next().value,d=_.U(_.g$(!1,void 0,"KLdzYe"));W=d.next().value;var V=d.next().value,R;_.$p(function(){clearTimeout(R)});
d=_.tb(function(){var t;((t=F.animate)==null?0:t.call(F))?(V(!0),R=setTimeout(function(){V(!1);M()},200)):M();
return!1});
var M=function(){h(function(t){return(t+F.numShownItems())%F.data().length})},g={};
return _.z("horizontal-carousel",{class:"ytwHorizontalCarouselHost"},_.z("div",{class:_.ec("ytwHorizontalCarouselCarouselWrapper")},_.z("div",{class:_.ec("ytwHorizontalCarouselCarouselInnerWrapper",(g.ytwHorizontalCarouselAnimating=W,g))},_.z(_.xF,{each:F.data,keyBy:"INDEX"},function(t,C){return _.z("div",{class:"ytwHorizontalCarouselCarouselItem",style:_.vr({"flex-basis":function(){return"calc((100% - (8px * "+(F.numShownItems()-1)+")) / "+F.numShownItems()+")"},
order:function(){var B=C-E();B<0&&(B+=F.data().length);return B}})},F.children(t,C))}))),_.z("div",{class:"ytwHorizontalCarouselNextButton",
"on:click":d},F.nextButton()))},"lb");var aiu=_.GK(function(F){var W=F.data;var E=F.customCommandResolver;var h=F.expansive;F=_.uf();_.ER(F,{visibilityCallback:function(d){var V,R=(V=W().interaction)==null?void 0:V.onFirstVisible;d&&R&&_.fK(R)},
showOption:_.w1});return _.z("carousel-ad-card-collection-view-model",{class:"ytwCarouselAdCardCollectionViewModelHost",el:F},_.z(JQ_,{data:function(){var d;return((d=W())==null?void 0:d.carouselAdCards)||[]},
nextButton:function(){return _.z(_.a6,{data:function(){return W().nextButton}},{buttonViewModel:function(d){var V=d.data;
return _.z(_.rk,{data:function(){return(h==null?0:h())?Object.assign({},V(),{style:"mono"}):V()},
className:_.c("web_enable_full_height_carousel_next_button")?"ytwCarouselAdCardCollectionViewModelFullHeightButton":""})}})},
numShownItems:3,animate:!0},function(d){return _.z(_.a6,{data:d},{carouselAdCardImageViewModel:function(V){return _.z(PhM,{data:V.data,customCommandResolver:E})}})}))},"mb");var fi_=_.GK(function(F){var W=F.data;var E=F.customCommandResolver;var h=F.className;var d=F.buttonClassName;var V=F.animationEntityKey;var R=F.expansive;return _.z("carousel-button-view-model",{class:_.ec("ytwCarouselButtonViewModelHost",h)},_.z(_.a6,{data:function(){return W().carousel}},{carouselAdCardCollectionViewModel:function(M){return _.z(aiu,{data:M.data,
customCommandResolver:E,expansive:R})}}),_.z(_.a6,{data:function(){return W().button}},{adButtonViewModel:function(M){var g=M.data;
return _.z(_.Sd,{data:function(){return(R==null?0:R())?Object.assign({},g(),{style:"AD_BUTTON_STYLE_TONAL"}):g()},
className:d,customCommandResolver:E,animationEntityKey:V})}}))},"nb");_.O5T=_.GK(function(F){var W=F.data;F=F.className;var E=_.uf();_.Xk(function(){var h;((h=W())==null?0:h.backgroundColor)&&E.value.setAttribute("data-background-color",String(W().backgroundColor))});
return _.z("pivot-button-view-model",{el:E,class:_.ec("ytwPivotButtonViewModelHost",F)},_.z(_.kY,{command:function(){var h=W();h=h.onClickCommand?_.He(h.onClickCommand):h.contentDescription?_.mf(h.contentDescription):void 0;return h},
ariaLabel:function(){return W().contentDescription}},_.z(_.v,{cond:function(){return W().thumbnail},
then:function(h){return _.z(_.T4,{data:h,alt:"",className:"ytwPivotButtonViewModelHostImage"})},
else:function(){return _.z(_.v,{cond:function(){return W().icon},
then:function(h){return _.z(_.I3,{icon:function(){return h().iconType},
className:"ytwPivotButtonViewModelHostIcon"})}})}})))},"ob");_.b5T=_.GK(function(F){var W=F.data;var E=F.buttonShapeOverrideables;return _.z("reel-action-bar-view-model",{class:"ytwReelActionBarViewModelHost"},_.z(_.a6,{data:function(){return W().buttonViewModels}},{buttonViewModel:function(h){return _.z(_.rk,{data:h.data,
buttonOverrides:E})},
likeButtonViewModel:function(h){return _.z(_.H3,{data:h.data,buttonShapeOverrideables:E})},
dislikeButtonViewModel:function(h){return _.z(_.XJ,{data:h.data,buttonShapeOverrideables:E})}}))},"pb");var liO=_.GK(function(F){var W=F.avatar;var E=F.headline;var h=F.badge;var d=F.description;var V=F.expansive;F={};return _.z("yt-ad-metadata-shape",{class:_.ec("ytAdMetadataShapeHost",(F.ytAdMetadataShapeHostLarge=V,F))},_.z("div",{class:"ytAdMetadataShapeHostAvatarLockup"},_.z(_.v,{cond:W,then:function(R){return _.z(_.f3e,{data:function(){return(V==null?0:V())?Object.assign({},R(),{size:"AD_AVATAR_SIZE_MPLUS"}):R()}})}}),_.z("div",{class:"ytAdMetadataShapeHostHeadlineContainer"},_.z(_.Ab,{text:E,
className:"ytAdMetadataShapeHostHeadline",linkInheritColor:!0}),_.z(_.v,{cond:h,then:function(R){return _.z(_.FI,{data:function(){return(V==null?0:V())?Object.assign({},R(),{style:"AD_BADGE_STYLE_STARK"}):R()},
adRenderingContextType:"AD_RENDERING_CONTEXT_TYPE_REELS"})}}))),_.z("h2",{class:"ytAdMetadataShapeHostDescription"},_.z(_.Ab,{text:d,
linkInheritColor:!0})))},"qb");var nH_=_.GK(function(F){var W=F.data;var E=F.onShow;var h=F.expansive;F=_.uf();_.WH(F,function(){return W().interaction});
_.Xk(function(){var V,R=(V=W().animatedRenderingConfig)==null?void 0:V.delayedSecondsToVisible;if(R){var M=setTimeout(E,R*1E3);_.$p(function(){clearTimeout(M)})}});
var d={};return _.z("reels-ad-card-buttoned-view-model",{class:_.ec(function(){var V;return((V=W().interaction)==null?0:V.onTap)?"ytwReelsAdCardButtonedViewModelHostIsClickableAdComponent":"ytwReelsAdCardButtonedViewModelHost"},(d.ytwReelsAdCardButtonedViewModelHostExpansive=h,d)),
el:F},_.z(liO,{avatar:function(){return _.D(W().avatar,LNi)},
headline:function(){return W().headline},
badge:function(){return _.D(W().adBadge,qVO)},
description:function(){return W().description},
expansive:h}),_.z(_.a6,{data:function(){return W().ctaButton}},{adButtonViewModel:function(V){var R=V.data;
return _.z(_.Sd,{data:function(){return(h==null?0:h())?Object.assign({},R(),{style:"AD_BUTTON_STYLE_FILLED"}):R()}})}}))},"rb");var yQ_=_.GK(function(F){var W=F.data;F=F.expansive;var E=_.uf();_.c("web_ad_metadata_clickable")&&_.WH(E,function(){return W().interaction});
var h={};h=_.gY("ytwReelsAdMetadataViewModelHost",(h.ytwReelsAdMetadataViewModelHostIsClickableAdComponent=_.c("web_ad_metadata_clickable"),h));return _.z("reels-ad-metadata-view-model",{class:h,el:E},_.z(liO,{avatar:function(){return _.D(W().avatar,LNi)},
headline:function(){return W().headline},
badge:function(){return _.D(W().adBadge,qVO)},
description:function(){return W().description},
expansive:F}))},"sb");var jXi={iconPosition:"icon-with-label",size:"L"},i5p=_.GK(function(F){var W=F.data;F=F.overlayDensity;var E=_.uf(),h=_.TK(F,0);_.q6(function(){E.value.setAttribute("overlay-density",String(h()))});
var d=function(){var B;return(B=W().reelsAdCardButtonedEntityKey)!=null?B:""},V=function(){return d()+"/ad_button"},R=_.D1(lLe,d),M=function(){var B,I;
return(I=(B=R())==null?void 0:B.value)!=null?I:!1},g=_.Jb(JQS),t=function(){return Object.assign({},jXi,(g()||h()===2)&&{style:"overlay-dark"})};
F={};var C={};return _.z("reels-player-overlay-layout-view-model",{class:_.ec("ytwReelsPlayerOverlayLayoutViewModelHost",(F.ytwReelsPlayerOverlayLayoutViewModelHostHasExtension=function(){return!!W().extension},F.ytwReelsPlayerOverlayLayoutViewModelHostDesktop=function(){return!0},F)),
el:E},_.z("div",{class:_.ec("ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainer",(C.ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainerEnableBorderRadius=function(){return!0},C))},_.z("div",{"aria-hidden":function(){return M()},
class:_.ec("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return M()?"ytwReelsPlayerOverlayLayoutViewModelHide":"ytwReelsPlayerOverlayLayoutViewModelShow"}),
style:_.vr({"transition-duration":function(){return O5b(W())}})},_.z(_.a6,{data:function(){return W().adMetadata}},{reelsAdMetadataViewModel:function(B){return _.z(yQ_,{data:B.data,
expansive:function(){return h()===1}})}}),_.z(_.v,{cond:function(){return W().extension},
then:function(B){return _.z("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostExtension"},_.z(_.a6,{data:B},{adButtonViewModel:function(I){return _.z(_.Sd,{data:I.data,animationEntityKey:V,delayedClassName:"ytwReelsPlayerOverlayLayoutViewModelTopMargin"})},
carouselButtonViewModel:function(I){return _.z(fi_,{data:I.data,animationEntityKey:V,className:"ytwReelsPlayerOverlayLayoutViewModelTopMargin",expansive:function(){return h()===1}})}}))}})),_.z("div",{"aria-hidden":function(){return!M()},
class:_.ec("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return M()?"ytwReelsPlayerOverlayLayoutViewModelShow":"ytwReelsPlayerOverlayLayoutViewModelHide"}),
style:_.vr({"transition-duration":function(){return O5b(W())}})},_.z(_.a6,{data:function(){return W().reelsAdCardButtoned}},{reelsAdCardButtonedViewModel:function(B){return _.z(nH_,{data:B.data,
onShow:function(){_.rQ(_.AG("booleanEntity",d(),{key:d(),value:!0}))},
expansive:function(){return h()===1}})}}))),_.z("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostActionBar"},_.z(_.a6,{data:function(){return W().actions}},{reelActionBarViewModel:function(B){return _.z(_.b5T,{data:B.data,
buttonShapeOverrideables:t})}}),_.z(_.a6,{data:function(){return W().menu}},{buttonViewModel:function(B){return _.z(_.rk,{data:B.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostMenuButton",buttonOverrides:function(){return Object.assign({},t(),{type:"tonal"})}})}}),_.z(_.a6,{data:function(){return W().pivotButton}},{pivotButtonViewModel:function(B){return _.z(_.O5T,{data:B.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostPivotButton"})}})))},"tb");_.pK(i5p,"reels-player-overlay-layout-view-model",{props:{data:_.TS,overlayDensity:_.TS}});var ey=function(){var F=_.n.apply(this,arguments)||this;F.noBottomMargin=!1;F.overlayDensity=0;return F};
_.k(ey,_.n);_.N=ey.prototype;
_.N.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{carouselAdRenderer:"ytd-carousel-ad-renderer",compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",displayAdRenderer:{component:"ytd-display-ad-renderer",properties:{noBottomMargin:"[[noBottomMargin]]"}},promotedSparklesTextSearchRenderer:"ytd-promoted-sparkles-text-search-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",squareImageLayoutViewModel:"square-image-layout-view-model",topLandscapeImageLayoutViewModel:{component:"top-landscape-image-layout-view-model",
properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayButtonGroupLayoutViewModel:{component:"video-display-button-group-layout-view-model",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayFullLayoutViewModel:{component:"video-display-full-layout-view-model",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},compactLandscapeNoButtonLayoutViewModel:"compact-landscape-no-button-layout-view-model",
promotedVideoRenderer:"ytd-promoted-video-renderer",videoDisplayFullButtonedRenderer:_.c("enable_short_dr_for_desktop_launchable")?{component:"ytd-video-display-full-buttoned-and-button-group-renderer",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}}:"ytd-video-display-full-buttoned-renderer",videoDisplayButtonGroupRenderer:{component:"ytd-video-display-full-buttoned-and-button-group-renderer",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},
textImageNoButtonLayoutRenderer:"ytd-text-image-no-button-layout-renderer",reelsPlayerOverlayLayoutViewModel:{component:"reels-player-overlay-layout-view-model",properties:{overlayDensity:"[[overlayDensity]]"}}}}}};
_.N.ready=function(){var F=this;Rgk(function(){F.isAttached&&zc(F.JSC$13327_storedAdSlotMetadata,F.JSC$13327_storedAdLayoutMetadata,F.adSlotMetadata,F.adLayoutMetadata)&&UK(N2(),F.JSC$13327_storedAdSlotMetadata,F.JSC$13327_storedAdLayoutMetadata)})};
_.N.attached=function(){zc(this.JSC$13327_storedAdSlotMetadata,this.JSC$13327_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&Z5i(N2(),this.JSC$13327_storedAdSlotMetadata,this.JSC$13327_storedAdLayoutMetadata)};
_.N.detached=function(){zc(this.JSC$13327_storedAdSlotMetadata,this.JSC$13327_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&UK(N2(),this.JSC$13327_storedAdSlotMetadata,this.JSC$13327_storedAdLayoutMetadata)};
_.N.onTypographyBumpChanged=function(){this.videoDisplayFullButtonedGroupRenderer&&(this.videoDisplayFullButtonedGroupRenderer.typographyBump=this.typographyBump)};
_.N.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$13327_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$13327_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$13327_storedAdLayoutMetadata!==void 0&&this.JSC$13327_storedAdSlotMetadata!==void 0&&UK(N2(),this.JSC$13327_storedAdSlotMetadata,this.JSC$13327_storedAdLayoutMetadata),Z5i(N2(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$13327_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$13327_storedAdSlotMetadata=this.adSlotMetadata)};
_.Sn.Object.defineProperties(ey.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var F;return(F=this.data)==null?void 0:F.adLayoutMetadata}}});
ey.prototype.onAdMetadataChanged=ey.prototype.onAdMetadataChanged;ey.prototype.onTypographyBumpChanged=ey.prototype.onTypographyBumpChanged;_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],ey.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],ey.prototype,"rendererBehavior",void 0);_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],ey.prototype,"ytComponentBehavior",void 0);
_.T([_.O(),_.Y("design:type",Object)],ey.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Object)],ey.prototype,"noBottomMargin",void 0);_.T([_.O(),_.Y("design:type",Object)],ey.prototype,"overlayDensity",void 0);_.T([_.O({value:!1}),_.Y("design:type",Boolean)],ey.prototype,"typographyBump",void 0);_.T([_.a("data.adLayoutMetadata"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],ey.prototype,"adLayoutMetadata",null);_.T([_.O(),_.Y("design:type",Object)],ey.prototype,"adSlotMetadata",void 0);
_.T([_.gQ("ytd-video-display-full-buttoned-and-button-group-renderer"),_.Y("design:type",HTMLElement)],ey.prototype,"videoDisplayFullButtonedGroupRenderer",void 0);_.T([_.ea("typographyBump"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ey.prototype,"onTypographyBumpChanged",null);_.T([_.ea("adLayoutMetadata","adSlotMetadata"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ey.prototype,"onAdMetadataChanged",null);
ey=_.T([_.y({is:"ytd-in-feed-ad-layout-renderer",disableElementRegistration:!0})],ey);
_.r(ey,"ytd-in-feed-ad-layout-renderer",function(){if(JSc!==void 0)return JSc;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-in-feed-ad-layout-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="rendering-content" class="style-scope ytd-in-feed-ad-layout-renderer"></div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return JSc=F},
{mode:_.E6("kevlar_poly_si_batch_j028")?1:2});var rQH;var TOe;var M2=function(){var F=_.n.apply(this,arguments)||this;F.actionMap={"ytd-video-masthead-ad-primary-video-renderer-playing":"onPlayerReady"};return F};
_.k(M2,_.n);_.N=M2.prototype;_.N.computeHasLiveDescription=function(F){return!(F==null||!F.liveDescription)};
_.N.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more_vert"}}}}}};
_.N.onYtToggleButton=function(F){var W,E=(W=this.data)==null?void 0:W.videoReminderEntityKey;E&&this.ytdReduxBehavior.dispatch(_.AG("upcomingEventReminderStateEntity",E,{key:E,state:F.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
_.N.attached=function(){this.updateChannelBanner()};
_.N.dataChanged=function(){this.updateChannelBanner()};
_.N.videoReminderStateChanged=function(){var F;this.videoReminderState&&_.D((F=this.data)==null?void 0:F.cta,_.iE)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
_.N.updateChannelBanner=function(){if(this.data&&this.data.channelBanner){var F=_.m_(this.data.channelBanner.thumbnails,this.hostElement.clientWidth);F&&(F.startsWith("//")&&(F="https:"+F),this.hostElement.classList.add("channel-banner"),_.V9(this.hostElement,{"--ytvmh-channel-banner":"url("+F+")"}))}else _.c("remove_masthead_channel_banner_on_refresh")&&this.hostElement.classList.remove("channel-banner")};
_.N.onPlayerReady=function(){this.onIronResize()};
_.N.maybeFlushDebouncer=function(){_.c("web_replace_formatted_with_attributed_string")&&this.formattedStrings.forEach(function(F){var W;F=(W=F.getElementsByTagName("yt-attributed-string"))==null?void 0:W[0];fMS(F==null?void 0:F.polymerController)})};
_.N.onIronResize=function(){this.maybeFlushDebouncer();this.hostElement.clientWidth<370?this.hostElement.classList.add("no-thumbnail"):this.hostElement.classList.remove("no-thumbnail");var F=_.Z(this.hostElement).querySelector("#live-description"),W;F&&((W=this.data)==null?0:W.shortLiveDescription)&&F.clientWidth<F.scrollWidth?this.hostElement.classList.add("short-live-description"):this.hostElement.classList.remove("short-live-description")};
M2.prototype.onIronResize=M2.prototype.onIronResize;M2.prototype.videoReminderStateChanged=M2.prototype.videoReminderStateChanged;M2.prototype.dataChanged=M2.prototype.dataChanged;M2.prototype.onYtToggleButton=M2.prototype.onYtToggleButton;_.T([_.J(_.lB),_.Y("design:type",Object)],M2.prototype,"ironResizableBehavior",void 0);_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],M2.prototype,"ytActionHandlerBehavior",void 0);
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],M2.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],M2.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.am),_.Y("design:type",Object)],M2.prototype,"ytdReduxBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],M2.prototype,"data",void 0);_.T([_.O({selectorArgs:["data.videoReminderEntityKey"],selector:Pyn}),_.Y("design:type",Object)],M2.prototype,"videoReminderState",void 0);
_.T([_.O({reflectToAttribute:!0,value:_.c("web_modern_buttons")}),_.Y("design:type",Boolean)],M2.prototype,"rounded",void 0);_.T([_.O({reflectToAttribute:!0,computed:"computeHasLiveDescription(data)"}),_.Y("design:type",Boolean)],M2.prototype,"hasLiveDescription",void 0);_.T([_.O({reflectToAttribute:!0,value:_.c("web_resizable_advertiser_banner_on_masthead_safari_fix")}),_.Y("design:type",Boolean)],M2.prototype,"resizableAdBannerSafariFix",void 0);
_.T([_.O({reflectToAttribute:!0,value:_.c("align_three_dot_menu_with_title_description")}),_.Y("design:type",Boolean)],M2.prototype,"menuFix",void 0);_.T([_.Q9("yt-formatted-string"),_.Y("design:type",Array)],M2.prototype,"formattedStrings",void 0);_.T([_.gQ("#cta-button"),_.Y("design:type",HTMLElement)],M2.prototype,"ctaButton",void 0);_.T([_.R4("yt-toggle-button"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],M2.prototype,"onYtToggleButton",null);
_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],M2.prototype,"dataChanged",null);_.T([_.ea("videoReminderState"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],M2.prototype,"videoReminderStateChanged",null);_.T([_.R4("iron-resize"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],M2.prototype,"onIronResize",null);
M2=_.T([_.y({is:"ytd-video-masthead-ad-advertiser-info-renderer",disableElementRegistration:!0})],M2);
_.r(M2,"ytd-video-masthead-ad-advertiser-info-renderer",function(){if(TOe!==void 0)return TOe;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-masthead-ad-advertiser-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="banner" class="yt-simple-endpoint style-scope ytd-video-masthead-ad-advertiser-info-renderer" aria-hidden="true" href$="[[computeHref_(data.channelEndpoint)]]" data="[[data.channelEndpoint]]" tabindex="-1">\n</a>\n<div id="info-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n  <div id="thumbnail-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n    <a id="thumbnail-endpoint" class="yt-simple-endpoint inline-block style-scope ytd-video-masthead-ad-advertiser-info-renderer" aria-hidden="true" href$="[[computeHref_(data.channelEndpoint)]]" data="[[data.channelEndpoint]]" tabindex="-1">\n      <yt-img-shadow id="thumbnail" thumbnail="[[data.channelThumbnail]]" width="80" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-img-shadow>\n    </a>\n  </div>\n  <div id="right-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n    <div id="title-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <yt-formatted-string id="title" ellipsis-truncate="" text="[[data.title]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-formatted-string>\n      <div id="menu" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer"></div>\n    </div>\n    <div id="byline-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-badge-supported-renderer>\n      <yt-formatted-string id="byline" ellipsis-truncate="[[!data.liveDescription]]" link-inherit-color="" text="[[data.byline]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-formatted-string>\n      <template is="dom-if" restamp="" if="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n        <div id="live-description-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          <yt-formatted-string id="short-live-description" text="[[data.shortLiveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          </yt-formatted-string>\n          <yt-formatted-string id="live-description" text="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          </yt-formatted-string>\n        </div>\n      </template>\n    </div>\n    <div id="cta-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <ytd-button-renderer id="cta-button" data="[[data.cta.buttonRenderer]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-button-renderer>\n      <ytd-toggle-button-renderer id="reminder-button" data="[[data.cta.toggleButtonRenderer]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-toggle-button-renderer>\n    </div>\n  </div>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return TOe=F},{mode:1});var oHO;var gD=function(){var F=_.n.apply(this,arguments)||this;F.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};F.isLocked=!1;return F};
_.k(gD,_.n);_.N=gD.prototype;_.N.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.N.onExpandedChanged=function(){this.expanded&&_.Nc(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this])};
_.N.onMouseOver=function(){this.maybeExpand()};
_.N.onTap=function(){this.maybeExpand()};
_.N.onExpandableTileExpanding=function(F){F!==this&&(this.expanded=!1)};
_.N.onExpandableTileLockAndCollapse=function(F){this.isLocked=!0;F!==this&&(this.expanded=!1)};
_.N.onExpandableTileUnlock=function(){this.isLocked=!1};
gD.prototype.onTap=gD.prototype.onTap;gD.prototype.onMouseOver=gD.prototype.onMouseOver;gD.prototype.onExpandedChanged=gD.prototype.onExpandedChanged;_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],gD.prototype,"ytActionHandlerBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],gD.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],gD.prototype,"data",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],gD.prototype,"expanded",void 0);_.T([_.Cz("expanded"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],gD.prototype,"onExpandedChanged",null);_.T([_.R4("mouseover"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],gD.prototype,"onMouseOver",null);_.T([_.R4("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],gD.prototype,"onTap",null);
gD=_.T([_.y({is:"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",disableElementRegistration:!0})],gD);
_.r(gD,"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",function(){if(oHO!==void 0)return oHO;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-masthead-ad-expandable-thumbnail-tile-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a href="[[computeHref_(data.navigationEndpoint)]]" class="yt-simple-endpoint style-scope ytd-video-masthead-ad-expandable-thumbnail-tile-renderer" data="[[data.navigationEndpoint]]" aria-hidden="true" tabindex="-1" id="endpoint">\n <div id="overlay" class="style-scope ytd-video-masthead-ad-expandable-thumbnail-tile-renderer">\n   <div id="play-button" class="style-scope ytd-video-masthead-ad-expandable-thumbnail-tile-renderer">\n     \n     <svg width="100%" height="100%" viewBox="0 0 68 48" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" class="style-scope ytd-video-masthead-ad-expandable-thumbnail-tile-renderer">\n       <path id="play-button-bg" d="M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,0.13,34,0,34,0S12.21,0.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z" class="ytp-large-play-button-bg style-scope ytd-video-masthead-ad-expandable-thumbnail-tile-renderer" fill="#212121" fill-opacity="0.8"></path>\n       <path d="M 45,24 27,14 27,34" fill="#FFFFFF" class="style-scope ytd-video-masthead-ad-expandable-thumbnail-tile-renderer"></path>\n     </svg>\n   </div>\n </div>\n <yt-img-shadow id="thumbnail" thumbnail="[[data.thumbnail]]" width="424" class="style-scope ytd-video-masthead-ad-expandable-thumbnail-tile-renderer">\n </yt-img-shadow>\n    </a>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return oHO=F},{mode:1});var GvH;var Qp=function(){var F=_.n.apply(this,arguments)||this;F.buttonOverrides={style:"overlay"};F.useYtdPlayer=_.c("use_ytd_player_for_desktop_masthead");F.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};F.playbackFinished=!1;F.JSC$13339_playerManager=null;F.JSC$13339_mastheadCounter=new XEz;return F};
_.k(Qp,_.n);_.N=Qp.prototype;_.N.configureRendererStamper=function(){return{"data.muteButton":{id:"mute-button",mapping:{toggleButtonRenderer:"ytd-toggle-button-renderer"}},"data.replayButton":{id:"replay-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},"data.thumbnailOverlays":{id:"thumbnail-overlays",mapping:{thumbnailOverlayTimeStatusRenderer:"ytd-thumbnail-overlay-time-status-renderer"}}}};
_.N.created=function(){this.JSC$13339_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!0);this.useYtdPlayer||(this.JSC$13339_playerManager=new Iv)};
_.N.ready=function(){var F=this;this.JSC$13339_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!0);var W=_.Z(this.hostElement).querySelector("#player");this.useYtdPlayer?W.style.display="none":(this.ytdPlayer.style.display="none",uIp(this.JSC$13339_playerManager,W,function(){F.onPlaybackEnded()}),_.Z(this.hostElement).querySelector("#replay-button").addEventListener("click",function(){var E;
((E=F.data)==null?0:E.navigationEndpoint)&&_.hF(F.hostElement,"yt-navigate",{endpoint:F.data.navigationEndpoint})}))};
_.N.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.unlockExpandableTiles();this.playbackFinished=!0;this.JSC$13339_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!0)};
_.N.attached=function(){var F=this;_.fz(function(){F.maybePlayVideo()})};
_.N.maybePlayVideo=function(){var F=this;!(this.expanded&&this.isAttached&&this.data&&this.data.videoId)||this.playbackFinished||this.useYtdPlayer&&this.data.disableAutoPlayback||(this.hostElement.classList.add("video-playing"),this.lockAndCollapseExpandableTiles(),this.useYtdPlayer?this.ytdPlayer.play():(this.JSC$13339_playerManager.playVideo(),this.getPlayerPromise().then(function(){F.JSC$13339_mastheadCounter.increment("VIDEO_START",!1,!0)})))};
_.N.stopVideo=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$13339_playerManager.stopVideo()};
_.N.dataChanged=function(){if(this.data)if(this.useYtdPlayer){var F,W={autoplay:0,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((F=this.data.playbackStartMs)!=null?F:0)/1E3,player_params:this.data.playerParams};this.ytdPlayer.loadVideoWithPlayerVars(W);this.setupYtdPlayer()}else phT(this.JSC$13339_playerManager,this.data.videoId,this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams),this.data.disableAutoPlayback&&(SN_(this.JSC$13339_playerManager),
this.hostElement.classList.add("video-ended"),this.playbackFinished=!0),this.maybePlayVideo()};
_.N.getPlayerPromise=function(){return this.JSC$13339_playerManager.getPlayerPromise()};
_.N.onYtToggleButton=function(F){this.useYtdPlayer?this.toggleMute(F.detail.toggled):F.detail.toggled?this.JSC$13339_playerManager.mute():this.JSC$13339_playerManager.unMute()};
_.N.onYtNavigate=function(F){var W=Btw(F.detail.endpoint),E=vzo(this.data.clickthroughReportingData);W&&E&&(F.detail.endpoint.watchEndpoint?F.detail.tempData=E:_.Sr(W,E,30))};
_.N.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.N.onExpandedChanged=function(){this.expanded?(_.Nc(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this]),this.maybePlayVideo()):this.stopVideo()};
_.N.onMouseOver=function(){this.maybeExpand()};
_.N.onTap=function(){this.maybeExpand()};
_.N.onExpandableTileExpanding=function(F){F!==this&&(this.stopVideo(),this.expanded=!1)};
_.N.onExpandableTileLockAndCollapse=function(F){F!==this&&(this.isLocked=!0,this.expanded=!1)};
_.N.onExpandableTileUnlock=function(){this.isLocked=!1};
_.N.lockAndCollapseExpandableTiles=function(){_.dW(this.hostElement,"ytd-video-masthead-expandable-tile-lock-and-collapse",[this])};
_.N.unlockExpandableTiles=function(){_.dW(this.hostElement,"ytd-video-masthead-expandable-tile-unlock")};
_.N.setupYtdPlayer=function(){var F=this,W;return _.e(function(E){if(E.nextAddress==1)return _.Q(E,F.ytdPlayer.getPlayerPromise(),2);W=E.yieldResult;W.addEventListener("onStateChange",function(h){F.onPlayerStateChange(h)});
W.addEventListener("onCueRangeExit",function(h){F.onCueRangeExit(h)});
_.gG(E)})};
_.N.onPlayerStateChange=function(F){if(F===1&&(F=this.ytdPlayer.getPlayer())){var W=F.getCurrentTime(),E,h,d=W+((h=(E=this.data)==null?void 0:E.playbackDurationMs)!=null?h:0)/1E3;F.addCueRange("playback",W,d);this.JSC$13339_mastheadCounter.increment("VIDEO_START",!0,!0)}};
_.N.onCueRangeExit=function(F){F==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.N.toggleMute=function(F){var W=this,E;return _.e(function(h){if(h.nextAddress==1)return _.Q(h,W.ytdPlayer.getPlayerPromise(),2);E=h.yieldResult;F?E.mute():E.unMute();_.gG(h)})};
Qp.prototype.onTap=Qp.prototype.onTap;Qp.prototype.onMouseOver=Qp.prototype.onMouseOver;Qp.prototype.onExpandedChanged=Qp.prototype.onExpandedChanged;Qp.prototype.onYtNavigate=Qp.prototype.onYtNavigate;Qp.prototype.onYtToggleButton=Qp.prototype.onYtToggleButton;Qp.prototype.dataChanged=Qp.prototype.dataChanged;_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],Qp.prototype,"ytRendererstamperBehavior",void 0);
_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],Qp.prototype,"ytActionHandlerBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Qp.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],Qp.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Qp.prototype,"expanded",void 0);_.T([_.O(),_.Y("design:type",Object)],Qp.prototype,"buttonOverrides",void 0);
_.T([_.O(),_.Y("design:type",Object)],Qp.prototype,"useYtdPlayer",void 0);_.T([_.gQ("#ytd-player"),_.Y("design:type",Object)],Qp.prototype,"ytdPlayer",void 0);_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Qp.prototype,"dataChanged",null);_.T([_.R4("yt-toggle-button"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Qp.prototype,"onYtToggleButton",null);
_.T([_.R4("yt-navigate"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Qp.prototype,"onYtNavigate",null);_.T([_.Cz("expanded"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Qp.prototype,"onExpandedChanged",null);_.T([_.R4("mouseover"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Qp.prototype,"onMouseOver",null);
_.T([_.R4("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Qp.prototype,"onTap",null);Qp=_.T([_.y({is:"ytd-video-masthead-ad-expandable-video-tile-renderer",disableElementRegistration:!0})],Qp);
_.r(Qp,"ytd-video-masthead-ad-expandable-video-tile-renderer",function(){if(GvH!==void 0)return GvH;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-masthead-ad-expandable-video-tile-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer">\n  <div id="overlay" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer">\n    <div id="mute-button" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer"></div>\n    <div id="replay-button" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer"></div>\n    <div id="thumbnail-overlays" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer"></div>\n    <template is="dom-if" if="[[data.liveBadgeLabel]]" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer">\n      <yt-formatted-string id="live-badge" text="[[data.liveBadgeLabel]]" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer">\n      </yt-formatted-string>\n    </template>\n  </div>\n  <div id="player-container" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer">\n    <a id="click-target" class="yt-simple-endpoint style-scope ytd-video-masthead-ad-expandable-video-tile-renderer" data="[[data.navigationEndpoint]]"></a>\n    <div id="player" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer"></div>\n    <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_MASTHEAD_AD" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer">\n    </ytd-player>\n  </div>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return GvH=F},{mode:1});var YHU;var zp=function(){return _.n.apply(this,arguments)||this};
_.k(zp,_.n);zp.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
zp.prototype.onShow=function(){var F=_.Z(this.hostElement).querySelector("#live-description"),W;F&&((W=this.data)==null?0:W.shortLiveDescription)&&F.clientWidth<F.scrollWidth&&this.hostElement.classList.add("short-live-description")};
zp.prototype.onYtToggleButton=function(F){var W,E=(W=this.data)==null?void 0:W.videoReminderEntityKey;E&&this.ytdReduxBehavior.dispatch(_.AG("upcomingEventReminderStateEntity",E,{key:E,state:F.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
zp.prototype.videoReminderStateChanged=function(){var F;this.videoReminderState&&_.D((F=this.data)==null?void 0:F.cta,_.iE)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
zp.prototype.videoReminderStateChanged=zp.prototype.videoReminderStateChanged;zp.prototype.onYtToggleButton=zp.prototype.onYtToggleButton;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],zp.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],zp.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.am),_.Y("design:type",Object)],zp.prototype,"ytdReduxBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],zp.prototype,"data",void 0);
_.T([_.O({selectorArgs:["data.videoReminderEntityKey"],selector:Pyn}),_.Y("design:type",Object)],zp.prototype,"videoReminderState",void 0);_.T([_.R4("yt-toggle-button"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],zp.prototype,"onYtToggleButton",null);_.T([_.ea("videoReminderState"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],zp.prototype,"videoReminderStateChanged",null);
zp=_.T([_.y({is:"ytd-video-masthead-ad-primary-video-overlay-renderer",disableElementRegistration:!0})],zp);
_.r(zp,"ytd-video-masthead-ad-primary-video-overlay-renderer",function(){if(YHU!==void 0)return YHU;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-masthead-ad-primary-video-overlay-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="advertiser-info" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n  <yt-formatted-string id="title" ellipsis-truncate="" text="[[data.title]]" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n  </yt-formatted-string>\n  <div id="byline-container" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n    <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" overlay-ad="true" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n    </ytd-badge-supported-renderer>\n    <yt-formatted-string id="byline" ellipsis-truncate="[[!data.liveDescription]]" link-inherit-color="" text="[[data.byline]]" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n    </yt-formatted-string>\n    <template is="dom-if" restamp="" if="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n      <div id="live-description-container" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n        <yt-formatted-string id="short-live-description" text="[[data.shortLiveDescription]]" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n        </yt-formatted-string>\n        <yt-formatted-string id="live-description" text="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n        </yt-formatted-string>\n      </div>\n    </template>\n  </div>\n  <div id="cta-container" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n    <ytd-toggle-button-renderer id="reminder-button" data="[[data.cta.toggleButtonRenderer]]" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n    </ytd-toggle-button-renderer>\n  </div>\n</div>\n<div id="menu" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer"></div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return YHU=F},{mode:_.E6("kevlar_poly_si_batch_j065")?1:2});var wLH;var t3=function(){var F=_.n.apply(this,arguments)||this;F.useYtdPlayer=_.c("use_ytd_player_for_desktop_masthead");F.buttonOverrides={style:"overlay"};F.JSC$13347_playerManager=null;F.JSC$13347_mastheadCounter=new XEz;F.actionMap={"yt-masthead-hidden":"onYtMastheadHidden"};return F};
_.k(t3,_.n);_.N=t3.prototype;_.N.configureRendererStamper=function(){return{"data.muteButton":{id:"mute-button",mapping:{toggleButtonRenderer:"ytd-toggle-button-renderer"}},"data.replayButton":{id:"replay-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},"data.thumbnailOverlays":{id:"thumbnail-overlays",mapping:{thumbnailOverlayTimeStatusRenderer:"ytd-thumbnail-overlay-time-status-renderer"}}}};
_.N.created=function(){this.JSC$13347_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!1);this.useYtdPlayer||(this.JSC$13347_playerManager=new Iv)};
_.N.ready=function(){var F=this;this.JSC$13347_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!1);if(this.useYtdPlayer){var W;(W=this.embeddedPlayer)==null||W.remove()}else{var E;(E=this.ytdPlayer)==null||E.remove();uIp(this.JSC$13347_playerManager,this.embeddedPlayer,function(){F.onPlaybackEnded()});
this.replayButton.addEventListener("click",function(){F.data&&F.data.navigationEndpoint&&_.hF(F.hostElement,"yt-navigate",{endpoint:F.data.navigationEndpoint})})}};
_.N.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.JSC$13347_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!1)};
_.N.dataChanged=function(){var F=this;if(this.data){if(typeof this.data.videoId==="string")if(this.useYtdPlayer){var W=!this.data.disableAutoPlayback,E,h={autoplay:W,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((E=this.data.playbackStartMs)!=null?E:0)/1E3,player_params:this.data.playerParams};this.hostElement.classList.add(W?"video-playing":"video-ended");this.ytdPlayer.loadVideoWithPlayerVars(h);this.setupYtdPlayer()}else phT(this.JSC$13347_playerManager,this.data.videoId,
this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams||void 0),this.data.disableAutoPlayback?(SN_(this.JSC$13347_playerManager),this.hostElement.classList.add("video-ended")):(this.JSC$13347_playerManager.playVideo(),this.hostElement.classList.add("video-playing"),this.getPlayerPromise().then(function(){_.dW(F.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");F.JSC$13347_mastheadCounter.increment("VIDEO_START",!1,!1)}));
this.data.isWidescreen&&this.playerContainer.classList.add("widescreen")}};
_.N.getPlayerPromise=function(){return this.JSC$13347_playerManager.getPlayerPromise()};
_.N.onYtToggleButton=function(F){this.useYtdPlayer?this.toggleMute(F.detail.toggled):F.detail.toggled?this.JSC$13347_playerManager.mute():this.JSC$13347_playerManager.unMute()};
_.N.onYtNavigate=function(F){var W=Btw(F.detail.endpoint),E=vzo(this.data.clickthroughReportingData);W&&E&&(F.detail.endpoint.watchEndpoint?F.detail.tempData=E:_.Sr(W,E,30))};
_.N.onYtMastheadHidden=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$13347_playerManager.stopVideo()};
_.N.setupYtdPlayer=function(){var F=this,W;return _.e(function(E){if(E.nextAddress==1)return _.Q(E,F.ytdPlayer.getPlayerPromise(),2);W=E.yieldResult;W.addEventListener("onStateChange",function(h){F.onPlayerStateChange(h)});
W.addEventListener("onCueRangeExit",function(h){F.onCueRangeExit(h)});
_.gG(E)})};
_.N.onPlayerStateChange=function(F){if(F===1&&(F=this.ytdPlayer.getPlayer())){var W=F.getCurrentTime(),E,h,d=W+((h=(E=this.data)==null?void 0:E.playbackDurationMs)!=null?h:0)/1E3;F.addCueRange("playback",W,d);_.dW(this.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");this.JSC$13347_mastheadCounter.increment("VIDEO_START",!0,!1)}};
_.N.onCueRangeExit=function(F){F==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.N.toggleMute=function(F){var W=this,E;return _.e(function(h){if(h.nextAddress==1)return _.Q(h,W.ytdPlayer.getPlayerPromise(),2);E=h.yieldResult;F?E.mute():E.unMute();_.gG(h)})};
_.Sn.Object.defineProperties(t3.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var F,W;if(!((F=this.data)==null?0:(W=F.accessibilityData)==null?0:W.label))return"Ad primary link";var E,h;return _.CY("AD_TITLE",{title:(E=this.data)==null?void 0:(h=E.accessibilityData)==null?void 0:h.label})}}});
t3.prototype.onYtMastheadHidden=t3.prototype.onYtMastheadHidden;t3.prototype.onYtNavigate=t3.prototype.onYtNavigate;t3.prototype.onYtToggleButton=t3.prototype.onYtToggleButton;t3.prototype.dataChanged=t3.prototype.dataChanged;_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],t3.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],t3.prototype,"ytRendererBehavior",void 0);
_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],t3.prototype,"ytActionHandlerBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],t3.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Object)],t3.prototype,"useYtdPlayer",void 0);_.T([_.gQ("ytd-toggle-button-renderer"),_.Y("design:type",Object)],t3.prototype,"muteButton",void 0);_.T([_.O(),_.Y("design:type",Object)],t3.prototype,"buttonOverrides",void 0);
_.T([_.a("data.accessibilityData.label"),_.Y("design:type",String),_.Y("design:paramtypes",[])],t3.prototype,"titleAriaLabel",null);_.T([_.gQ("#replay-button"),_.Y("design:type",Object)],t3.prototype,"replayButton",void 0);_.T([_.gQ("#player-container"),_.Y("design:type",Object)],t3.prototype,"playerContainer",void 0);_.T([_.gQ("#player"),_.Y("design:type",Object)],t3.prototype,"embeddedPlayer",void 0);_.T([_.gQ("#ytd-player"),_.Y("design:type",Object)],t3.prototype,"ytdPlayer",void 0);
_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],t3.prototype,"dataChanged",null);_.T([_.R4("yt-toggle-button"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],t3.prototype,"onYtToggleButton",null);_.T([_.R4("yt-navigate"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],t3.prototype,"onYtNavigate",null);
_.T([_.R4("yt-masthead-hidden"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],t3.prototype,"onYtMastheadHidden",null);t3=_.T([_.y({is:"ytd-video-masthead-ad-primary-video-renderer",disableElementRegistration:!0})],t3);
_.r(t3,"ytd-video-masthead-ad-primary-video-renderer",function(){if(wLH!==void 0)return wLH;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-masthead-ad-primary-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="overlay" class="style-scope ytd-video-masthead-ad-primary-video-renderer">\n  <div id="mute-button" class="style-scope ytd-video-masthead-ad-primary-video-renderer"></div>\n  <div id="replay-button" class="style-scope ytd-video-masthead-ad-primary-video-renderer"></div>\n  <div id="thumbnail-overlays" class="style-scope ytd-video-masthead-ad-primary-video-renderer"></div>\n  <template is="dom-if" if="[[data.liveBadgeLabel]]" class="style-scope ytd-video-masthead-ad-primary-video-renderer">\n    <yt-formatted-string id="live-badge" text="[[data.liveBadgeLabel]]" class="style-scope ytd-video-masthead-ad-primary-video-renderer">\n    </yt-formatted-string>\n  </template>\n</div>\n<div id="player-container" class="style-scope ytd-video-masthead-ad-primary-video-renderer">\n  <a id="click-target" class="yt-simple-endpoint style-scope ytd-video-masthead-ad-primary-video-renderer" aria-label$="[[titleAriaLabel]]" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]"></a>\n  <div id="player" class="style-scope ytd-video-masthead-ad-primary-video-renderer"></div>\n  <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_MASTHEAD_AD" class="style-scope ytd-video-masthead-ad-primary-video-renderer">\n  </ytd-player>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return wLH=F},{mode:2});var uKa;var Cj=function(){var F=_.n.apply(this,arguments)||this;F.collapsed=!1;F.impressionResolver=_.G_();F.JSC$13351_activeViewMeasurementDataResolver=_.G_();F.actionMap={"yt-mute-ad-action":"handleMuteAd"};return F};
_.k(Cj,_.n);_.N=Cj.prototype;_.N.configureRendererStamper=function(){return{"data.expandableTiles":{id:"expandable-tile-container",mapping:{videoMastheadAdExpandableThumbnailTileRenderer:"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",videoMastheadAdExpandableVideoTileRenderer:"ytd-video-masthead-ad-expandable-video-tile-renderer"}},"data.showAdRenderer":{id:"show-ad",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.N.ready=function(){var F=this;_.Z(this.hostElement).querySelector("#show-ad").addEventListener("click",function(){F.expandAd()});
this.hostElement.addEventListener("yt-action",function(W){if(W.detail.actionName==="yt-service-request"){var E=W.detail.args[1];E.videoMastheadAdMuteCommand&&(F.collapseAd(E.videoMastheadAdMuteCommand.encryptedMastheadId),W.stopPropagation())}})};
_.N.attached=function(){var F=this;_.fz(function(){F.ironResizableBehavior.notifyResize()});
this.impressionResolver.promise.then(function(W){if(!F.collapsed){W=_.U(W);for(var E=W.next();!E.done;E=W.next())E=E.value,re(E.baseUrl,E.attributionSrcMode);F.data.impressionCommand=void 0}});
this.JSC$13351_activeViewMeasurementDataResolver.promise.then(function(W){F.ytdActiveViewBehavior.enableActiveViewMeasurement(W,15)});
_.c("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&F.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.N.dataChanged=function(){var F;((F=this.data.impressionCommand)==null?0:F.loggingUrls)&&this.impressionResolver.resolve(this.data.impressionCommand.loggingUrls);var W;((W=this.data)==null?0:W.activeView)&&this.JSC$13351_activeViewMeasurementDataResolver.resolve(this.data.activeView);(F=this.get("data.showAdRenderer.buttonRenderer.command.videoMastheadAdMuteCommand"))&&this.restoreCollapsedState(F.encryptedMastheadId);this.collapsed&&(this.data.primaryVideo&&(this.data.primaryVideo=void 0),this.data.expandableTiles&&
(this.data.expandableTiles=void 0))};
_.N.computeWidescreen=function(F){var W;return!!(F&&((W=_.D(F,Dac))==null?0:W.isWidescreen))};
_.N.computeExpandable=function(F){return!!(F&&F.length>0)};
_.N.onIronResize=function(){if(this.expandable){var F=_.Z(this.hostElement).querySelector("#expandable-tile-container :first-child");F&&!F.expanded&&(F.expanded=!0)}};
_.N.handleMuteAd=function(){this.collapseAd(null)};
_.N.restoreCollapsedState=function(F){this.collapsed=_.Ij().get("HIDDEN_MASTHEAD_ID")===F};
_.N.collapseAd=function(F){if(F){var W=_.Ij();W.set("HIDDEN_MASTHEAD_ID",F);W.save()}(F=_.Z(this.hostElement).querySelector("#video"))&&_.hF(F,"yt-masthead-hidden");this.collapsed=!0};
_.N.expandAd=function(){var F=_.Ij();F.set("HIDDEN_MASTHEAD_ID",!1);F.save();location.reload()};
_.N.detached=function(){_.c("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
Cj.prototype.onIronResize=Cj.prototype.onIronResize;Cj.prototype.dataChanged=Cj.prototype.dataChanged;_.T([_.J(_.lB),_.Y("design:type",Object)],Cj.prototype,"ironResizableBehavior",void 0);_.T([_.J(PN),_.Y("design:type",Object)],Cj.prototype,"ytdActiveViewBehavior",void 0);_.T([_.J(_.lU),_.Y("design:type",Object)],Cj.prototype,"ytdGridStateAwareBehavior",void 0);_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],Cj.prototype,"ytActionHandlerBehavior",void 0);
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Cj.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],Cj.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],Cj.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0,computed:"computeWidescreen(data.primaryVideo)"}),_.Y("design:type",Boolean)],Cj.prototype,"widescreen",void 0);
_.T([_.O({reflectToAttribute:!0,computed:"computeExpandable(data.expandableTiles)"}),_.Y("design:type",Boolean)],Cj.prototype,"expandable",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],Cj.prototype,"collapsed",void 0);_.T([_.Cz("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Cj.prototype,"dataChanged",null);
_.T([_.R4("iron-resize"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Cj.prototype,"onIronResize",null);Cj=_.T([_.y({is:"ytd-video-masthead-ad-v3-renderer",disableElementRegistration:!0})],Cj);
_.r(Cj,"ytd-video-masthead-ad-v3-renderer",function(){if(uKa!==void 0)return uKa;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-masthead-ad-v3-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="top-container" class="style-scope ytd-video-masthead-ad-v3-renderer">\n  <div id="video-overlay" class="style-scope ytd-video-masthead-ad-v3-renderer">\n    <ytd-video-masthead-ad-primary-video-overlay-renderer data="[[data.primaryVideoOverlay.videoMastheadAdPrimaryVideoOverlayRenderer]]" class="style-scope ytd-video-masthead-ad-v3-renderer">\n    </ytd-video-masthead-ad-primary-video-overlay-renderer>\n  </div>\n  <template is="dom-if" if="[[data.primaryVideo]]" class="style-scope ytd-video-masthead-ad-v3-renderer">\n    <div id="video-container" class="style-scope ytd-video-masthead-ad-v3-renderer">\n      <ytd-video-masthead-ad-primary-video-renderer id="video" data="[[data.primaryVideo.videoMastheadAdPrimaryVideoRenderer]]" class="style-scope ytd-video-masthead-ad-v3-renderer">\n      </ytd-video-masthead-ad-primary-video-renderer>\n    </div>\n  </template>\n  <div id="expandable-tile-container" class="style-scope ytd-video-masthead-ad-v3-renderer"></div>\n  <div id="right-container" class="style-scope ytd-video-masthead-ad-v3-renderer">\n    <ytd-video-masthead-ad-advertiser-info-renderer data="[[data.advertiserInfo.videoMastheadAdAdvertiserInfoRenderer]]" class="style-scope ytd-video-masthead-ad-v3-renderer">\n    </ytd-video-masthead-ad-advertiser-info-renderer>\n    <div id="compact-tile-container" class="style-scope ytd-video-masthead-ad-v3-renderer">\n      <template is="dom-repeat" items="[[data.compactVideoTiles]]" as="tile" class="style-scope ytd-video-masthead-ad-v3-renderer">\n        <ytd-thumbnail data="[[tile.videoMastheadAdCompactVideoTileRenderer]]" width="210" class="style-scope ytd-video-masthead-ad-v3-renderer">\n        </ytd-thumbnail>\n      </template>\n    </div>\n  </div>\n  <div id="show-ad" class="style-scope ytd-video-masthead-ad-v3-renderer"></div>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return uKa=F},{mode:2});var BJ=function(){return _.n.apply(this,arguments)||this};
_.k(BJ,_.n);_.N=BJ.prototype;_.N.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{videoMastheadAdV3Renderer:"ytd-video-masthead-ad-v3-renderer"}}}};
_.N.ready=function(){var F=this;Rgk(function(){F.isAttached&&zc(F.JSC$13356_storedAdSlotMetadata,F.JSC$13356_storedAdLayoutMetadata,F.adSlotMetadata,F.adLayoutMetadata)&&UK(N2(),F.JSC$13356_storedAdSlotMetadata,F.JSC$13356_storedAdLayoutMetadata)})};
_.N.attached=function(){zc(this.JSC$13356_storedAdSlotMetadata,this.JSC$13356_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&Z5i(N2(),this.JSC$13356_storedAdSlotMetadata,this.JSC$13356_storedAdLayoutMetadata)};
_.N.detached=function(){zc(this.JSC$13356_storedAdSlotMetadata,this.JSC$13356_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&UK(N2(),this.JSC$13356_storedAdSlotMetadata,this.JSC$13356_storedAdLayoutMetadata)};
_.N.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$13356_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$13356_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$13356_storedAdLayoutMetadata!==void 0&&this.JSC$13356_storedAdSlotMetadata!==void 0&&UK(N2(),this.JSC$13356_storedAdSlotMetadata,this.JSC$13356_storedAdLayoutMetadata),Z5i(N2(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$13356_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$13356_storedAdSlotMetadata=this.adSlotMetadata)};
_.Sn.Object.defineProperties(BJ.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var F;return(F=this.data)==null?void 0:F.adLayoutMetadata}}});
BJ.prototype.onAdMetadataChanged=BJ.prototype.onAdMetadataChanged;_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],BJ.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],BJ.prototype,"ytComponentBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],BJ.prototype,"data",void 0);_.T([_.a("data.adLayoutMetadata"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],BJ.prototype,"adLayoutMetadata",null);
_.T([_.O(),_.Y("design:type",Object)],BJ.prototype,"adSlotMetadata",void 0);_.T([_.ea("adLayoutMetadata","adSlotMetadata"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],BJ.prototype,"onAdMetadataChanged",null);BJ=_.T([_.y({is:"ytd-page-top-ad-layout-renderer",disableElementRegistration:!0})],BJ);
_.r(BJ,"ytd-page-top-ad-layout-renderer",function(){if(rQH!==void 0)return rQH;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-page-top-ad-layout-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="rendering-content" class="style-scope ytd-page-top-ad-layout-renderer"></div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return rQH=
F},{mode:_.E6("kevlar_poly_si_batch_j070")?1:2});var SHU;var vJ=function(){var F=_.n.apply(this,arguments)||this;F.noBottomMargin=!1;F.overlayDensity=0;F.typographyBump=!1;return F};
_.k(vJ,_.n);_.N=vJ.prototype;
_.N.configureRendererStamper=function(){return{"data.fulfillmentContent.fulfilledLayout":{id:"fulfilled-layout",mapping:{inFeedAdLayoutRenderer:{component:"ytd-in-feed-ad-layout-renderer",properties:{adSlotMetadata:"[[data.adSlotMetadata]]",noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},pageTopAdLayoutRenderer:{component:"ytd-page-top-ad-layout-renderer",properties:{adSlotMetadata:"[[data.adSlotMetadata]]"}},sequenceItemInPlayerAdLayoutRenderer:{component:"ytd-in-feed-ad-layout-renderer",properties:{adSlotMetadata:"[[data.adSlotMetadata]]",
noBottomMargin:"[[noBottomMargin]]",overlayDensity:"[[overlayDensity]]"}}}}}};
_.N.ready=function(){var F=this;Rgk(function(){F.isAttached&&F.adSlotMetadata&&$Li(N2(),F.adSlotMetadata)})};
_.N.attached=function(){if(this.adSlotMetadata){var F;if(this.adSlotMetadata===((F=this.data)==null?void 0:F.adSlotMetadata))qH_(N2(),this.adSlotMetadata);else{var W;_.OB(Error("Kh`"+this.adSlotMetadata+"`"+((W=this.data)==null?void 0:W.adSlotMetadata)))}}};
_.N.detached=function(){this.adSlotMetadata&&$Li(N2(),this.adSlotMetadata)};
_.N.onTypographyBumpChanged=function(){this.inFeedAdLayoutRenderer&&(this.inFeedAdLayoutRenderer.typographyBump=this.typographyBump)};
_.N.onAdSlotMetadataChanged=function(){this.data&&this.data.adSlotMetadata&&(this.isAttached&&this.adSlotMetadata!==this.data.adSlotMetadata&&(this.adSlotMetadata!==void 0&&$Li(N2(),this.adSlotMetadata),qH_(N2(),this.data.adSlotMetadata)),this.adSlotMetadata=this.data.adSlotMetadata)};
_.Sn.Object.defineProperties(vJ.prototype,{layout:{configurable:!0,enumerable:!0,get:function(){var F,W,E=_.D((F=this.data)==null?void 0:(W=F.fulfillmentContent)==null?void 0:W.fulfilledLayout,_.kAc),h;return(F=(h=_.D(E==null?void 0:E.renderingContent,xaa))==null?void 0:h.layout)?F.toLowerCase().replace(/_/g,"-"):""}}});
vJ.prototype.onAdSlotMetadataChanged=vJ.prototype.onAdSlotMetadataChanged;vJ.prototype.onTypographyBumpChanged=vJ.prototype.onTypographyBumpChanged;_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],vJ.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],vJ.prototype,"ytComponentBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],vJ.prototype,"rendererBehavior",void 0);
_.T([_.O(),_.Y("design:type",Object)],vJ.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Object)],vJ.prototype,"noBottomMargin",void 0);_.T([_.O(),_.Y("design:type",Object)],vJ.prototype,"overlayDensity",void 0);_.T([_.O(),_.Y("design:type",Object)],vJ.prototype,"typographyBump",void 0);_.T([_.gQ("ytd-in-feed-ad-layout-renderer"),_.Y("design:type",HTMLElement)],vJ.prototype,"inFeedAdLayoutRenderer",void 0);
_.T([_.O({reflectToAttribute:!0}),_.a("data"),_.Y("design:type",String),_.Y("design:paramtypes",[])],vJ.prototype,"layout",null);_.T([_.ea("typographyBump"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],vJ.prototype,"onTypographyBumpChanged",null);_.T([_.ea("data.adSlotMetadata"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],vJ.prototype,"onAdSlotMetadataChanged",null);
vJ=_.T([_.y({is:"ytd-ad-slot-renderer",disableElementRegistration:!0})],vJ);
_.r(vJ,"ytd-ad-slot-renderer",function(){if(SHU!==void 0)return SHU;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ad-slot-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="fulfilled-layout" class="style-scope ytd-ad-slot-renderer"></div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return SHU=F},{mode:_.E6("kevlar_poly_si_batch_j077")?
1:2});var pLM;var Iz=function(){return _.n.apply(this,arguments)||this};
_.k(Iz,_.n);_.N=Iz.prototype;_.N.configureRendererStamper=function(){return{"data.adBadge":{id:"ad-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.adBadge]]"},params:{noDotAdBadge:!0}}}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.N.onTap=function(){this.data&&this.data.navigationEndpoint&&this.data.adPlaybackContextParams&&gAw(this.data.navigationEndpoint,this.data.adPlaybackContextParams)};
_.N.dataChanged=function(){if(this.data&&this.data.impressionUrls)for(var F=_.U(this.data.impressionUrls),W=F.next();!W.done;W=F.next())W=W.value,IPW(W,DzS(W));this.data&&this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17)};
_.N.attached=function(){var F=this;_.c("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&F.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.N.detached=function(){_.c("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.Sn.Object.defineProperties(Iz.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.c("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.c("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
Iz.prototype.dataChanged=Iz.prototype.dataChanged;Iz.prototype.onTap=Iz.prototype.onTap;_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],Iz.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Iz.prototype,"ytRendererBehavior",void 0);_.T([_.J(PN),_.Y("design:type",Object)],Iz.prototype,"ytdActiveViewBehavior",void 0);_.T([_.J(_.am),_.Y("design:type",Object)],Iz.prototype,"ytdReduxBehavior",void 0);
_.T([_.O({selector:_.o6}),_.Y("design:type",Object)],Iz.prototype,"isGridViewEnabled",void 0);_.T([_.a("isGridViewEnabled"),_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Iz.prototype,"watchFeedBigThumbs",null);_.T([_.a("isGridViewEnabled"),_.O({reflectToAttribute:!0}),_.Y("design:type",String),_.Y("design:paramtypes",[])],Iz.prototype,"thumbnailWidth",null);_.T([_.O(),_.Y("design:type",Object)],Iz.prototype,"data",void 0);
_.T([_.R4("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Iz.prototype,"onTap",null);_.T([_.Cz("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Iz.prototype,"dataChanged",null);Iz=_.T([_.y({is:"ytd-compact-promoted-video-renderer",disableElementRegistration:!0})],Iz);
_.r(Iz,"ytd-compact-promoted-video-renderer",function(){if(pLM!==void 0)return pLM;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-promoted-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-thumbnail data="[[data]]" width="[[thumbnailWidth]]" class="style-scope ytd-compact-promoted-video-renderer">\n</ytd-thumbnail>\n<div class="details style-scope ytd-compact-promoted-video-renderer">\n  <a id="endpoint-link" class="yt-simple-endpoint style-scope ytd-compact-promoted-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <h3 class="style-scope ytd-compact-promoted-video-renderer">\n      <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-compact-promoted-video-renderer">\n      </ytd-badge-supported-renderer>\n      <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-compact-promoted-video-renderer">\n        [[getSimpleString(data.title)]]\n      </span>\n    </h3>\n    <div class="secondary-metadata style-scope ytd-compact-promoted-video-renderer">\n      <ytd-video-meta-block class="compact style-scope ytd-compact-promoted-video-renderer" data="[[data]]" watch-feed-big-thumbs="[[watchFeedBigThumbs]]">\n      </ytd-video-meta-block>\n      <div id="ad-badge-container" class="style-scope ytd-compact-promoted-video-renderer">\n        <div id="ad-badge" class="style-scope ytd-compact-promoted-video-renderer"></div>\n      </div>\n    </div>\n  </a>\n  <div id="menu" class="style-scope ytd-compact-promoted-video-renderer"></div>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return pLM=F},{mode:1});var mLB;_.Hr("itemSectionRenderer","searchPyvRenderer","ytd-search-pyv-renderer");var cJ=function(){return _.n.apply(this,arguments)||this};
_.k(cJ,_.n);cJ.prototype.configureRendererStamper=function(){return{"data.ads":{id:"contents",mapping:{adSlotRenderer:"ytd-ad-slot-renderer",promotedVideoRenderer:"ytd-promoted-video-renderer"}}}};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],cJ.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],cJ.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],cJ.prototype,"data",void 0);cJ=_.T([_.y({is:"ytd-search-pyv-renderer",disableElementRegistration:!0})],cJ);
_.r(cJ,"ytd-search-pyv-renderer",function(){if(mLB!==void 0)return mLB;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-pyv-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-search-pyv-renderer"></div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return mLB=F},{mode:1});var Kwe;_.Hr("itemSectionRenderer","backstagePostThreadRenderer","ytd-backstage-post-thread-renderer");var Db=function(){var F=_.n.apply(this,arguments)||this;F.roundedContainer=!0;F.JSC$13372_handleOpenPostCommentDialogActionAfterStamp=!1;F.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return F};
_.k(Db,_.n);_.N=Db.prototype;
_.N.configureRendererStamper=function(){return{"data.post":{id:"post",mapping:{backstagePostRenderer:{component:"ytd-backstage-post-renderer",properties:{shouldHideAuthor:"[[isInEngagementPanel]]",shouldShowVideoTime:"[[isInEngagementPanel]]",shouldShowMenuInCompactView:"[[isInEngagementPanel]]",isInEngagementPanel:"[[isInEngagementPanel]]",usesFullLockup:"[[usesFullLockup]]",hideBorder:"[[hideBorder]]"}},postRenderer:"ytd-post-renderer",sharedPostRenderer:{component:"ytd-shared-post-renderer",properties:{usesFullLockup:"[[usesFullLockup]]"}}}},
"data.commentDialog":{id:"comment-dialog",mapping:{commentReplyDialogRenderer:"ytd-comment-reply-dialog-renderer"},events:!0}}};
_.N.onStampFinished=function(){this.JSC$13372_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.N.handleSignalActionOpenPostCommentDialogAction=function(){var F=_.Z(this.hostElement).querySelector("ytd-comment-reply-dialog-renderer");F?F.openDialog():this.JSC$13372_handleOpenPostCommentDialogActionAfterStamp=!0};
_.N.onYtCommentModerationPanelEmpty=function(){this.set("data.moderationPanel",{})};
_.N.computeHideBorder=function(){return this.isInEngagementPanel};
_.N.computeIsCompact=function(){return this.isInEngagementPanel};
_.N.computeUsesCompactLockup=function(F){return F==="BACKSTAGE_SURFACE_TYPE_HOME"||F==="BACKSTAGE_SURFACE_TYPE_SEARCH"||F==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||F==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||F==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||F==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.N.computeUsesFullLockup=function(){var F,W=(F=this.data)==null?void 0:F.post,E;F=(E=_.D(W,Jfz))==null?void 0:E.surface;var h;E=(h=_.D(W,fEX))==null?void 0:h.originalPost;var d;if(h=F||((d=_.D(E,Jfz))==null?void 0:d.surface))return!this.computeUsesCompactLockup(h)&&this.useUpdatedRepostUi;var V;return((V=_.D(W,fEX))==null?void 0:V.originalPostDeletedMessage)!==void 0&&this.useUpdatedRepostUi};
_.Sn.Object.defineProperties(Db.prototype,{isInEngagementPanel:{configurable:!0,enumerable:!0,get:function(){var F,W;return((W=_.D((F=this.data)==null?void 0:F.post,Jfz))==null?void 0:W.surface)==="BACKSTAGE_SURFACE_TYPE_ENGAGEMENT_PANEL"}},
useUpdatedRepostUi:{configurable:!0,enumerable:!0,get:function(){var F;return(F=this.data)==null?void 0:F.useUpdatedRepostUi}}});
Db.prototype.onYtCommentModerationPanelEmpty=Db.prototype.onYtCommentModerationPanelEmpty;Db.prototype.onStampFinished=Db.prototype.onStampFinished;_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],Db.prototype,"ytActionHandlerBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Db.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],Db.prototype,"ytRendererstamperBehavior",void 0);
_.T([_.O(),_.Y("design:type",Object)],Db.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],Db.prototype,"roundedContainer",void 0);_.T([_.O({computed:"computeHideBorder(data, isInEngagementPanel)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],Db.prototype,"hideBorder",void 0);_.T([_.O({computed:"computeIsCompact(data, isInEngagementPanel)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],Db.prototype,"isCompact",void 0);
_.T([_.O({computed:"computeUsesFullLockup(data, useUpdatedRepostUi)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],Db.prototype,"usesFullLockup",void 0);_.T([_.R4("yt-rendererstamper-finished"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Db.prototype,"onStampFinished",null);
_.T([_.R4("ytd-comment-moderation-panel-empty"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Db.prototype,"onYtCommentModerationPanelEmpty",null);_.T([_.a("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Db.prototype,"isInEngagementPanel",null);_.T([_.a("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Db.prototype,"useUpdatedRepostUi",null);
Db=_.T([_.y({is:"ytd-backstage-post-thread-renderer",disableElementRegistration:!0})],Db);
_.r(Db,"ytd-backstage-post-thread-renderer",function(){if(Kwe!==void 0)return Kwe;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-post-thread-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="post" hidden="[[!data.post]]" class="style-scope ytd-backstage-post-thread-renderer"></div>\n<div id="comments-disabled" hidden="[[!data.commentsDisabledMessage]]" class="style-scope ytd-backstage-post-thread-renderer">[[getSimpleString(data.commentsDisabledMessage)]]</div>\n<div id="moderation-panel" hidden="[[!data.moderationPanel]]" class="style-scope ytd-backstage-post-thread-renderer"></div>\n<div id="comment-dialog" hidden="[[!data.commentDialog]]" class="style-scope ytd-backstage-post-thread-renderer"></div>');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return Kwe=F},{mode:1});var FWO;var xh=function(){var F=_.n.apply(this,arguments)||this;F.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return F};
_.k(xh,_.n);xh.prototype.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
xh.prototype.computeBannerImageUrl=function(){if(this.data!==void 0){var F=this.data.thumbnail.thumbnails;this.isDarkTheme&&(F=this.data.thumbnailDark.thumbnails);this.bannerImageUrl=(F=_.m_(F,24,void 0,"height"))?F:void 0}};
xh.prototype.onDarkModeToggledAction=function(F){this.isDarkTheme=F};
xh.prototype.computeHasText=function(){var F;return!((F=this.data)==null||!F.text)};
_.Sn.Object.defineProperties(xh.prototype,{bannerStyle:{configurable:!0,enumerable:!0,get:function(){if(this.bannerImageUrl)return'background-image:url("'+String(_.II(this.bannerImageUrl))+'");'}}});
xh.prototype.computeHasText=xh.prototype.computeHasText;xh.prototype.computeBannerImageUrl=xh.prototype.computeBannerImageUrl;_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],xh.prototype,"ytActionHandlerBehavior",void 0);_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],xh.prototype,"actionHandlerBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],xh.prototype,"ytRendererBehavior",void 0);
_.T([_.O(),_.Y("design:type",Object)],xh.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Boolean)],xh.prototype,"isDarkTheme",void 0);_.T([_.O(),_.Y("design:type",String)],xh.prototype,"bannerImageUrl",void 0);_.T([_.O({reflectToAttribute:!0,computed:"computeHasText(data.text)"}),_.Y("design:type",Boolean)],xh.prototype,"hasText",void 0);_.T([_.ea("data","isDarkTheme"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],xh.prototype,"computeBannerImageUrl",null);
_.T([_.ea("data.text"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],xh.prototype,"computeHasText",null);_.T([_.a("bannerImageUrl"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],xh.prototype,"bannerStyle",null);xh=_.T([_.y({is:"ytd-backstage-prefilled-post-dialog-header-renderer",disableElementRegistration:!0})],xh);
_.r(xh,"ytd-backstage-prefilled-post-dialog-header-renderer",function(){if(FWO!==void 0)return FWO;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-prefilled-post-dialog-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="banner" hidden="[[!bannerImageUrl]]" style$="[[bannerStyle]]" class="style-scope ytd-backstage-prefilled-post-dialog-header-renderer">\n</div>\n<div id="message" class="style-scope ytd-backstage-prefilled-post-dialog-header-renderer">\n  <p id="title" hidden="[[!getSimpleString(data.title)]]" class="style-scope ytd-backstage-prefilled-post-dialog-header-renderer">[[getSimpleString(data.title)]]</p>\n  <p id="text" hidden="[[!hasText]]" class="style-scope ytd-backstage-prefilled-post-dialog-header-renderer">[[getSimpleString(data.text)]]</p>\n</div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return FWO=F},{mode:1});var WWc;var kh=function(){return _.n.apply(this,arguments)||this};
_.k(kh,_.n);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],kh.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],kh.prototype,"data",void 0);kh=_.T([_.y({is:"ytd-backstage-zero-state-renderer",disableElementRegistration:!0})],kh);
_.r(kh,"ytd-backstage-zero-state-renderer",function(){if(WWc!==void 0)return WWc;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-zero-state-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon id="image" icon="backstage:artwork" class="style-scope ytd-backstage-zero-state-renderer"></yt-icon>\n<span id="title" class="style-scope ytd-backstage-zero-state-renderer">[[getSimpleString(data.title)]]</span>\n<span id="text" class="style-scope ytd-backstage-zero-state-renderer">[[getSimpleString(data.text)]]</span>\n<yt-formatted-string id="link" force-default-style="" text="[[data.link]]" class="style-scope ytd-backstage-zero-state-renderer"></yt-formatted-string>\n<span id="footer" class="style-scope ytd-backstage-zero-state-renderer">[[getSimpleString(data.footer)]]</span>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return WWc=F},{mode:1});var EnB;var A3=function(){return _.n.apply(this,arguments)||this};
_.k(A3,_.n);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],A3.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],A3.prototype,"data",void 0);_.T([_.O({computed:"computeIcon_(data.icon)"}),_.Y("design:type",String)],A3.prototype,"icon",void 0);A3=_.T([_.y({is:"ytd-post-filter-zero-state-renderer",disableElementRegistration:!0})],A3);
_.r(A3,"ytd-post-filter-zero-state-renderer",function(){if(EnB!==void 0)return EnB;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-post-filter-zero-state-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="icon-container" class="style-scope ytd-post-filter-zero-state-renderer"><yt-icon id="icon" icon="[[computeIcon_(data.icon)]]" class="style-scope ytd-post-filter-zero-state-renderer"></yt-icon></div>\n<div id="title" class="style-scope ytd-post-filter-zero-state-renderer">[[getSimpleString(data.title)]]</div>\n<div id="subtitle" class="style-scope ytd-post-filter-zero-state-renderer">[[getSimpleString(data.subtitle)]]</div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return EnB=F},{mode:1});var hbM;var dAp={"data.actionButton":{id:"schedule-button",mapping:{buttonRenderer:"ytd-button-renderer"}}},sK=function(){return _.n.apply(this,arguments)||this};
_.k(sK,_.n);sK.prototype.configureRendererStamper=function(){return dAp};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],sK.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],sK.prototype,"rendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],sK.prototype,"data",void 0);_.T([_.O({computed:"computeIcon_(data.icon)"}),_.Y("design:type",String)],sK.prototype,"icon",void 0);sK=_.T([_.y({is:"ytd-post-scheduling-zero-state-renderer",disableElementRegistration:!0})],sK);
_.r(sK,"ytd-post-scheduling-zero-state-renderer",function(){if(hbM!==void 0)return hbM;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-post-scheduling-zero-state-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon id="image" icon="[[computeIcon_(data.icon)]]" class="style-scope ytd-post-scheduling-zero-state-renderer"></yt-icon>\n<span id="title" class="style-scope ytd-post-scheduling-zero-state-renderer">[[getSimpleString(data.title)]]</span>\n<div id="schedule-button" class="style-scope ytd-post-scheduling-zero-state-renderer"></div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return hbM=F},{mode:1});var NiX;var Lj=function(){var F=_.n.apply(this,arguments)||this;F.actionMap={"yt-update-posts-total-count-action":"handleUpdatePostsTotalCountAction"};return F};
_.k(Lj,_.n);Lj.prototype.onTabsActivate=function(F){this.data&&this.data.tabs&&_.hF(this.hostElement,"yt-navigate",{endpoint:this.data.tabs[F.detail.selected].navigationEndpoint})};
Lj.prototype.shouldShowTotalCount=function(F){return F&&F.totalCount!==void 0};
Lj.prototype.handleUpdatePostsTotalCountAction=function(F){var W=this.get(["data.tabs",1,"totalCount"]),E=this.get("updatePostsTotalCountAction.updateType",F);F=this.get("updatePostsTotalCountAction.number",F);W!==void 0&&E!=="UPDATE_POSTS_TOTAL_COUNT_TYPE_UNKNOWN"&&F&&(E==="UPDATE_POSTS_TOTAL_COUNT_TYPE_ADD"?this.set(["data.tabs",1,"totalCount"],Number(W)+F):E==="UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE"&&this.set(["data.tabs",1,"totalCount"],Number(W)-F))};
_.Sn.Object.defineProperties(Lj.prototype,{selected:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.tabs)for(var F=0,W=this.data.tabs.length;F<W;F++)if(this.data.tabs[F].selected)return F;return 0}}});
_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],Lj.prototype,"actionHandlerBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Lj.prototype,"rendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],Lj.prototype,"data",void 0);_.T([_.a("data.tabs"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],Lj.prototype,"selected",null);Lj=_.T([_.y({is:"ytd-post-stream-filter-renderer",disableElementRegistration:!0})],Lj);
_.r(Lj,"ytd-post-stream-filter-renderer",function(){if(NiX!==void 0)return NiX;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-post-stream-filter-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="filter-container" class="style-scope ytd-post-stream-filter-renderer">\n  <tp-yt-paper-tabs selected="[[selected]]" on-iron-activate="onTabsActivate" class="style-scope ytd-post-stream-filter-renderer">\n    <template is="dom-repeat" items="[[data.tabs]]" class="style-scope ytd-post-stream-filter-renderer">\n      <tp-yt-paper-tab class="style-scope ytd-post-stream-filter-renderer">\n        [[getSimpleString(item.title)]]\n        <template is="dom-if" if="[[shouldShowTotalCount(item)]]" class="style-scope ytd-post-stream-filter-renderer">\n          <span class="posts-count style-scope ytd-post-stream-filter-renderer">[[item.totalCount]]</span>\n        </template>\n      </tp-yt-paper-tab>\n    </template>\n  </tp-yt-paper-tabs>\n</div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return NiX=F},{mode:1});var V0H;var q2=function(){return _.n.apply(this,arguments)||this};
_.k(q2,_.n);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],q2.prototype,"kevlarBehaviors",void 0);_.T([_.O(),_.Y("design:type",Object)],q2.prototype,"data",void 0);q2=_.T([_.y({is:"ytd-channel-age-gate-renderer",disableElementRegistration:!0})],q2);
_.r(q2,"ytd-channel-age-gate-renderer",function(){if(V0H!==void 0)return V0H;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-age-gate-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-channel-age-gate-renderer">\n  <div id="channel-container" class="style-scope ytd-channel-age-gate-renderer">\n    <div id="channel" class="style-scope ytd-channel-age-gate-renderer">[[data.channelTitle]]</div>\n    <yt-img-shadow thumbnail="[[data.avatar]]" width="144" class="style-scope ytd-channel-age-gate-renderer"></yt-img-shadow>\n  </div>\n  <div id="info" class="style-scope ytd-channel-age-gate-renderer">\n    <yt-formatted-string id="header" text="[[data.header]]" class="style-scope ytd-channel-age-gate-renderer"></yt-formatted-string>\n    <yt-formatted-string text="[[data.mainText]]" class="style-scope ytd-channel-age-gate-renderer"></yt-formatted-string>\n    <ytd-button-renderer align-by-text="" data="[[data.signInButton.buttonRenderer]]" class="style-scope ytd-channel-age-gate-renderer">\n    </ytd-button-renderer>\n    <yt-formatted-string text="[[data.secondaryText]]" class="style-scope ytd-channel-age-gate-renderer">\n    </yt-formatted-string>\n  </div>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return V0H=F},{mode:1});var UAp;_.Hr("sharingItemSection","channelOwnerEmptyStateRenderer","ytd-channel-owner-empty-state-renderer");var $h=function(){var F=_.n.apply(this,arguments)||this;F.data=null;return F};
_.k($h,_.n);$h.prototype.configureRendererStamper=function(){return{"data.uploadVideoButton":{id:"upload-video-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.Sn.Object.defineProperties($h.prototype,{imageSizePx:{configurable:!0,enumerable:!0,get:function(){var F,W,E;return((F=this.data)==null?0:(W=F.title)==null?0:(E=W.runs)==null?0:E.length)?147:160}}});
_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],$h.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],$h.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0}),_.a("data"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],$h.prototype,"imageSizePx",null);$h=_.T([_.y({is:"ytd-channel-owner-empty-state-renderer",disableElementRegistration:!0})],$h);
_.r($h,"ytd-channel-owner-empty-state-renderer",function(){if(UAp!==void 0)return UAp;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-owner-empty-state-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container ytd-channel-owner-empty-state-renderer style-scope ytd-channel-owner-empty-state-renderer">\n  <div class="illustration style-scope ytd-channel-owner-empty-state-renderer">\n    <yt-img-shadow height="[[imageSizePx]]" thumbnail="[[data.illustration]]" class="style-scope ytd-channel-owner-empty-state-renderer">\n    </yt-img-shadow>\n  </div>\n  <div class="content style-scope ytd-channel-owner-empty-state-renderer">\n    <div class="header style-scope ytd-channel-owner-empty-state-renderer" hidden="[[!data.title]]">\n      <h2 class="style-scope ytd-channel-owner-empty-state-renderer">\n        <yt-formatted-string id="title" class="header-title style-scope ytd-channel-owner-empty-state-renderer" text="[[data.title]]">\n        </yt-formatted-string>\n      </h2>\n    </div>\n    <div class="description style-scope ytd-channel-owner-empty-state-renderer">\n      <yt-formatted-string id="description" class="description-text style-scope ytd-channel-owner-empty-state-renderer" text="[[data.description]]">\n      </yt-formatted-string>\n    </div>\n      <div class="button-layer style-scope ytd-channel-owner-empty-state-renderer" hidden="[[!data.uploadVideoButton]]">\n        <span id="upload-video-button" class="style-scope ytd-channel-owner-empty-state-renderer"></span>\n      </div>\n    <div class="learn-more style-scope ytd-channel-owner-empty-state-renderer">\n      <template is="dom-repeat" items="[[data.additionalInfos]]" class="style-scope ytd-channel-owner-empty-state-renderer">\n        <yt-formatted-string text="[[item]]" class="style-scope ytd-channel-owner-empty-state-renderer"></yt-formatted-string>\n      </template>\n    </div>\n  </div>\n</div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return UAp=F},{mode:1});var Rb_;var ebc;var Zb=function(){var F=_.n.apply(this,arguments)||this;F.boundSubmitSearch=function(){F.submitSearch()};
F.boundClearSearch=function(){F.clearSearch()};
return F};
_.k(Zb,_.n);_.N=Zb.prototype;_.N.configureRendererStamper=function(){return{"data.searchButton":{id:"search-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundSubmitSearch]]"}}}},"data.clearButton":{id:"clear-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundClearSearch]]"}}}}}};
_.N.toggleClearButton=function(){this.hideClearButton=sEG||!this.input.value};
_.N.submitOnEnterKeyUp=function(F){F.keyCode!==13||this.input.invalid||this.submit(this.input.value)};
_.N.clearSearch=function(){this.input.value="";this.submit(this.input.value)};
_.N.submitSearch=function(){this.input.invalid||this.submit(this.input.value)};
_.N.submit=function(){_.hF(this.hostElement,"search-query-changed",this.input.value)};
Zb.prototype.toggleClearButton=Zb.prototype.toggleClearButton;_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],Zb.prototype,"ytComponentBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Zb.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],Zb.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],Zb.prototype,"data",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Zb.prototype,"hideClearButton",void 0);_.T([_.O(),_.Y("design:type",Object)],Zb.prototype,"boundSubmitSearch",void 0);_.T([_.O(),_.Y("design:type",Object)],Zb.prototype,"boundClearSearch",void 0);_.T([_.gQ("#input"),_.Y("design:type",Object)],Zb.prototype,"input",void 0);_.T([_.Cz("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Zb.prototype,"toggleClearButton",null);
Zb=_.T([_.y({is:"ytd-channel-switcher-search-box-renderer",disableElementRegistration:!0})],Zb);
_.r(Zb,"ytd-channel-switcher-search-box-renderer",function(){if(ebc!==void 0)return ebc;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-switcher-search-box-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-input id="input" auto-validate="true" autocomplete="off" error-message="[[getSimpleString(data.invalidQueryErrorMessage)]]" label="[[getSimpleString(data.placeholderText)]]" maxlength="100" minlength="3" name="query" no-label-float="" use-v2-underline="" value="[[getSimpleString(data.searchText)]]" on-input="toggleClearButton" on-keyup="submitOnEnterKeyUp" class="style-scope ytd-channel-switcher-search-box-renderer">\n  <div id="search-button" slot="prefix" prefix="" class="style-scope ytd-channel-switcher-search-box-renderer"></div>\n  <div id="clear-button" slot="suffix" suffix="" class="style-scope ytd-channel-switcher-search-box-renderer"></div>\n</tp-yt-paper-input>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return ebc=F},{mode:1});var M0_;var Xs=function(){var F=_.n.apply(this,arguments)||this;F.boundSubmit=function(){F.submit()};
return F};
_.k(Xs,_.n);_.N=Xs.prototype;_.N.configureRendererStamper=function(){return{"data.searchButton":{id:"search-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundSubmit]]"}}}},"data.clearButton":{id:"clear-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.N.ready=function(){var F=this;this.form.addEventListener("submit",function(W){return F.onSubmit(W)})};
_.N.onSubmit=function(F){F.preventDefault();return!1};
_.N.toggleClearButton=function(){this.hideClearButton=sEG||!this.input.value};
_.N.submitOnEnterKeyUp=function(F){F.keyCode===13&&this.submit()};
_.N.submit=function(){var F=this.data.endpoint,W=(0,_.xd.unsafeClone)(F);_.D(W,_.BB)?_.D(W,_.BB).query=this.input.value:_.D(W,_.vB)&&(_.D(W,_.vB).query=this.input.value);var E=_.D(W.commandMetadata,_.m1);(E==null?0:E.url)?(E.url=_.nn(E.url,"query",this.input.value),_.hF(this.hostElement,"yt-navigate",{endpoint:W})):_.D(W,t2p)?(_.D(W,t2p).channelSwitcherQuery=this.input.value,_.WZ().resolve(_.EJ).resolveCommand(W,{form:{element:this.hostElement}})):(F=Error("Lh`"+JSON.stringify(F)),_.a_(F))};
_.N.getUrl=function(F){return this.get("commandMetadata.webCommandMetadata.url",F)};
Xs.prototype.toggleClearButton=Xs.prototype.toggleClearButton;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Xs.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],Xs.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],Xs.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Xs.prototype,"hideClearButton",void 0);
_.T([_.O(),_.Y("design:type",Object)],Xs.prototype,"boundSubmit",void 0);_.T([_.gQ("#form"),_.Y("design:type",HTMLFormElement)],Xs.prototype,"form",void 0);_.T([_.gQ("#input"),_.Y("design:type",Object)],Xs.prototype,"input",void 0);_.T([_.Cz("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Xs.prototype,"toggleClearButton",null);Xs=_.T([_.y({disableElementRegistration:!0,is:"ytd-search-box-renderer"})],Xs);
_.r(Xs,"ytd-search-box-renderer",function(){if(M0_!==void 0)return M0_;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-box-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<form id="form" action="[[getUrl(data.endpoint)]]" class="style-scope ytd-search-box-renderer">\n  <tp-yt-paper-input id="input" autocomplete="off" label="[[getSimpleString(data.placeholderText)]]" max-length="100" name="query" no-label-float="" use-v2-underline="" value="[[getSimpleString(data.searchText)]]" on-input="toggleClearButton" on-keyup="submitOnEnterKeyUp" class="style-scope ytd-search-box-renderer">\n    <div id="search-button" slot="prefix" prefix="" class="style-scope ytd-search-box-renderer"></div>\n    <div id="clear-button" slot="suffix" suffix="" class="style-scope ytd-search-box-renderer"></div>\n  </tp-yt-paper-input>\n</form>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return M0_=F},{mode:2});var HJ=function(){var F=_.n.apply(this,arguments)||this;F.showSearchBox=!0;return F};
_.k(HJ,_.n);HJ.prototype.configureRendererStamper=function(){return{"data.searchBox":{id:"search-box",mapping:{searchBoxRenderer:"ytd-search-box-renderer",channelSwitcherSearchBoxRenderer:"ytd-channel-switcher-search-box-renderer"}}}};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],HJ.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],HJ.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],HJ.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],HJ.prototype,"showSearchBox",void 0);HJ=_.T([_.y({is:"ytd-channel-switcher-header-renderer",disableElementRegistration:!0})],HJ);
_.r(HJ,"ytd-channel-switcher-header-renderer",function(){if(Rb_!==void 0)return Rb_;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-switcher-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h2 class="style-scope ytd-channel-switcher-header-renderer">\n  <yt-formatted-string text="[[data.title]]" class="style-scope ytd-channel-switcher-header-renderer"></yt-formatted-string>\n</h2>\n<div id="search-box" hidden="[[!showSearchBox]]" class="style-scope ytd-channel-switcher-header-renderer"></div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return Rb_=F},{mode:1});var gnO;var Qf_;var PJ=function(){var F=_.n.apply(this,arguments)||this;F.isDisplayed=!0;return F};
_.k(PJ,_.n);_.N=PJ.prototype;_.N.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.N.dataChanged=function(){this.isDisplayed=!0};
_.N.computeType=function(F){return F||"UNKNOWN"};
_.N.onYtServiceRequestCompleted=function(F){F.stopPropagation();this.isDisplayed=!1};
_.N.onClose=function(){this.isDisplayed=!1};
PJ.prototype.onYtServiceRequestCompleted=PJ.prototype.onYtServiceRequestCompleted;PJ.prototype.dataChanged=PJ.prototype.dataChanged;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],PJ.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],PJ.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],PJ.prototype,"data",void 0);
_.T([_.O({computed:"computeType(data.type)",reflectToAttribute:!0}),_.Y("design:type",String)],PJ.prototype,"type",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],PJ.prototype,"isDisplayed",void 0);_.T([_.Cz("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],PJ.prototype,"dataChanged",null);
_.T([_.R4("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],PJ.prototype,"onYtServiceRequestCompleted",null);PJ=_.T([_.y({disableElementRegistration:!0,is:"ytd-alert-with-button-renderer"})],PJ);
_.r(PJ,"ytd-alert-with-button-renderer",function(){if(Qf_!==void 0)return Qf_;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-alert-with-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="text" text="[[data.text]]" class="style-scope ytd-alert-with-button-renderer"></yt-formatted-string>\n<div id="buttons" class="style-scope ytd-alert-with-button-renderer">\n  <div id="button" class="style-scope ytd-alert-with-button-renderer"></div>\n  <div id="dismiss-button" on-click="onClose" class="style-scope ytd-alert-with-button-renderer"></div>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return Qf_=F},{mode:1});var J3=function(){var F=_.n.apply(this,arguments)||this;F.noResult=!1;F.enableAlertBanner=!1;F.dismissedAlertBanner=!1;F.hideCreateChannelButton=!1;F.boundDismissAlertBanner=function(){F.dismissAlertBanner()};
F.actionMap={"yt-update-channel-switcher-page-action":"updateChannelSwitcherAction"};return F};
_.k(J3,_.n);_.N=J3.prototype;_.N.computeButtonOverride=function(){return{style:"mono",type:"tonal"}};
_.N.onDataChanged=function(){this.setShowSearchBox(this.data)};
_.N.updateChannelSwitcherAction=function(F){var W;F=(W=_.D(F,u0T))==null?void 0:W.page;_.D(F,wKM)!==void 0&&(this.data=_.D(F,wKM))};
_.N.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{channelSwitcherHeaderRenderer:"ytd-channel-switcher-header-renderer"}},"data.contents":{id:"contents",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverride]]"}},accountItemRenderer:"ytd-account-item-renderer",continuationItemRenderer:"ytd-continuation-item-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundDismissAlertBanner]]"}}}}}};
_.N.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.N.searchQueryChanged=function(F,W){if(this.data&&this.data.contents&&this.data.contents.length){F=[];var E=[];this.hideCreateChannelButton=this.noResult=!1;for(var h=document.querySelectorAll("ytd-account-item-renderer"),d=_.U(h),V=d.next();!V.done;V=d.next())V=V.value,E.push(V),V.style.display="block";this.resetRightBorder(E);if(W){this.hideCreateChannelButton=!0;for(E=1;E<this.data.contents.length;E++)if(V=this.data.contents[E],_.D(V,giT)){var R=void 0,M=void 0;d=(R=_.D(V,giT))==null?void 0:(M=
R.accountName)==null?void 0:M.simpleText;M=R=void 0;V=(R=_.D(V,giT))==null?void 0:(M=R.channelHandle)==null?void 0:M.simpleText;(R=h[E-1])&&d&&_.zR(d,W)?F.push(R):_.c("enable_handle_search_on_channel_switcher")&&R&&V&&_.zR(V.toString(),W.toString())?F.push(R):R.style.display="none"}F.length===0&&(this.noResult=!0);this.resetRightBorder(F)}}};
_.N.resetRightBorder=function(F){for(var W=0;W<F.length;W++)F[W].style.borderRight=!this.hideCreateChannelButton&&(W+2)%3===0||this.hideCreateChannelButton&&(W+1)%3===0?"none":"1px solid var(--yt-spec-10-percent-layer)"};
_.N.onContinuationItemsUpdated=function(){this.setShowSearchBox(this.data)};
_.N.setShowSearchBox=function(F){if(F&&F.contents&&this.channelSwitcherHeaderRenderer){this.enableAlertBanner=!1;this.channelSwitcherHeaderRenderer.showSearchBox=!0;for(var W=0;W<F.contents.length;W++)_.D(F.contents[W],_.QT)&&(this.enableAlertBanner=!0,this.channelSwitcherHeaderRenderer.showSearchBox=!1);this.dismissedAlertBanner&&(this.enableAlertBanner=!1)}};
_.N.dismissAlertBanner=function(){this.dismissedAlertBanner=!0;this.enableAlertBanner=!1};
_.Sn.Object.defineProperties(J3.prototype,{isLoading:{configurable:!0,enumerable:!0,get:function(){var F;return!((F=this.data)==null?0:F.contents)}}});
J3.prototype.onContinuationItemsUpdated=J3.prototype.onContinuationItemsUpdated;J3.prototype.searchQueryChanged=J3.prototype.searchQueryChanged;J3.prototype.onDataChanged=J3.prototype.onDataChanged;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],J3.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],J3.prototype,"ytRendererstamperBehavior",void 0);
_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],J3.prototype,"actionHandlerBehavior",void 0);_.T([_.J(_.br),_.Y("design:type",Object)],J3.prototype,"ytContinuationHandlerBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],J3.prototype,"data",void 0);_.T([_.gQ("ytd-channel-switcher-header-renderer"),_.Y("design:type",Object)],J3.prototype,"channelSwitcherHeaderRenderer",void 0);_.T([_.O(),_.Y("design:type",Object)],J3.prototype,"noResult",void 0);
_.T([_.O(),_.Y("design:type",Object)],J3.prototype,"enableAlertBanner",void 0);_.T([_.O(),_.Y("design:type",Object)],J3.prototype,"dismissedAlertBanner",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],J3.prototype,"hideCreateChannelButton",void 0);_.T([_.a("data.contents"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],J3.prototype,"isLoading",null);_.T([_.O(),_.Y("design:type",Object)],J3.prototype,"boundDismissAlertBanner",void 0);
_.T([_.O({computed:"computeButtonOverride()"}),_.Y("design:type",Object)],J3.prototype,"buttonOverride",void 0);_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],J3.prototype,"onDataChanged",null);_.T([_.R4("search-query-changed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,String]),_.Y("design:returntype")],J3.prototype,"searchQueryChanged",null);
_.T([_.R4("yt-next-continuation-data-updated"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],J3.prototype,"onContinuationItemsUpdated",null);J3=_.T([_.y({is:"ytd-channel-switcher-page-renderer",disableElementRegistration:!0})],J3);
_.r(J3,"ytd-channel-switcher-page-renderer",function(){if(gnO!==void 0)return gnO;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-switcher-page-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-channel-switcher-page-renderer"></div>\n<div id="body" class="style-scope ytd-channel-switcher-page-renderer">\n  <div class="spinner-container style-scope ytd-channel-switcher-page-renderer" hidden="[[!isLoading]]">\n    <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-channel-switcher-page-renderer"></tp-yt-paper-spinner-lite>\n  </div>\n  <div id="alert" hidden="[[!enableAlertBanner]]" class="style-scope ytd-channel-switcher-page-renderer">\n      <yt-formatted-string id="alert-message" text="[[data.alertMessage]]" class="style-scope ytd-channel-switcher-page-renderer"></yt-formatted-string>\n      <div id="dismiss-button" class="style-scope ytd-channel-switcher-page-renderer"></div>\n  </div>\n  <div id="contents" class="style-scope ytd-channel-switcher-page-renderer"></div>\n</div>\n<yt-formatted-string id="no-result" hidden="[[!noResult]]" text="[[data.noResult]]" class="style-scope ytd-channel-switcher-page-renderer">\n</yt-formatted-string>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return gnO=F},{mode:1});var zbc;var t0X;var az=function(){var F=_.n.apply(this,arguments)||this;F.images=[];F.selectedImageIndex=0;return F};
_.k(az,_.n);_.N=az.prototype;
_.N.ready=function(){_.ce(this.thumbnailImagesContainer,"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this);_.ce(this.JSC$13417_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-update",this.updateImageThumbnails,!1,this);_.ce(this.JSC$13417_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.saveImageRepositions,!1,this);_.ce(this.JSC$13417_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-cancel",this.cancelImageRepositions,
!1,this)};
_.N.onThumbnailClick=function(F){if(F=F.event_.detail)this.selectedImageIndex=this.images.indexOf(F)};
_.N.updateImageThumbnails=function(F){F=Object.assign({},this.images[this.selectedImageIndex],{previewCoordinates:F.event_.detail});this.images.splice(this.selectedImageIndex,1,F);this.images=[].concat(_.x9(this.images))};
_.N.cancelImageRepositions=function(){this.selectedImageIndex=0;_.hF(this.hostElement,"ytd-backstage-image-reposition-cancel")};
_.N.saveImageRepositions=function(){this.selectedImageIndex=0;_.hF(this.hostElement,"ytd-backstage-image-reposition-save",this.images)};
_.Sn.Object.defineProperties(az.prototype,{thumbnailRendererDatas:{configurable:!0,enumerable:!0,get:function(){var F=this;return(this.images||[]).map(function(W,E){return{image:W,selected:E===F.selectedImageIndex}})}},
selectedImageData:{configurable:!0,enumerable:!0,get:function(){return this.images[this.selectedImageIndex]}}});
_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],az.prototype,"ytRendererstamperBehavior",void 0);_.T([_.gQ("ytd-backstage-image-preview-renderer"),_.Y("design:type",Object)],az.prototype,"JSC$13417_imagePreviewContainer",void 0);_.T([_.gQ(".thumbnail-images-container"),_.Y("design:type",HTMLElement)],az.prototype,"thumbnailImagesContainer",void 0);_.T([_.O(),_.Y("design:type",Array)],az.prototype,"images",void 0);
_.T([_.O(),_.Y("design:type",Object)],az.prototype,"repositionInstructions",void 0);_.T([_.O(),_.Y("design:type",Object)],az.prototype,"selectedImageIndex",void 0);_.T([_.a("images","selectedImageIndex"),_.Y("design:type",Array),_.Y("design:paramtypes",[])],az.prototype,"thumbnailRendererDatas",null);_.T([_.a("images","selectedImageIndex"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],az.prototype,"selectedImageData",null);
az=_.T([_.y({is:"ytd-backstage-multi-image-reposition-renderer",disableElementRegistration:!0})],az);
_.r(az,"ytd-backstage-multi-image-reposition-renderer",function(){if(t0X!==void 0)return t0X;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-multi-image-reposition-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="image-reposition-container style-scope ytd-backstage-multi-image-reposition-renderer">\n  <div class="thumbnail-images-container style-scope ytd-backstage-multi-image-reposition-renderer">\n    <template is="dom-repeat" items="[[thumbnailRendererDatas]]" class="style-scope ytd-backstage-multi-image-reposition-renderer">\n      <div class="image-thumbnail style-scope ytd-backstage-multi-image-reposition-renderer">\n        <ytd-backstage-multi-image-thumbnail-renderer id="thumbnail-renderer" data="[[item]]" class="style-scope ytd-backstage-multi-image-reposition-renderer">\n        </ytd-backstage-multi-image-thumbnail-renderer>\n      </div>\n    </template>\n  </div>\n  <div class="image-reposition style-scope ytd-backstage-multi-image-reposition-renderer">\n    <ytd-backstage-image-preview-renderer edit-only-mode="" image-data="[[selectedImageData]]" instruction="[[repositionInstructions]]" class="style-scope ytd-backstage-multi-image-reposition-renderer">\n    </ytd-backstage-image-preview-renderer>\n  </div>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return t0X=F},{mode:1});var fj=function(F,W){_.qo.call(this);this.uploadUrl=F;this.channelId=W;this.imagesUploadData=[]};
_.k(fj,_.qo);fj.prototype.getAllUploadStatuses=function(){var F=this,W,E,h;return _.e(function(d){if(d.nextAddress==1)return _.Q(d,CXp(F),2);W=d.yieldResult;E=W.get("succeed");h=W.get("failed");return d.return(E.concat(h))})};
var vnu=function(F){var W,E;return _.e(function(h){if(h.nextAddress==1)return _.Q(h,CXp(F),2);W=h.yieldResult;E=W.get("failed");E.length>0&&Bic(F,E);return h.return(F.getAllUploadStatuses())})},CXp=function(F){var W,E,h,d,V,R,M;
return _.e(function(g){if(g.nextAddress==1)return W=new Map,_.Q(g,Promise.allSettled(F.imagesUploadData.map(function(t){return t.uploadPromise})),2);
E=g.yieldResult;h=[];d=_.U(E);for(V=d.next();!V.done;V=d.next())R=V.value,R.status==="fulfilled"&&h.push(R.value);M=F.imagesUploadData.map(function(t){return t.image}).filter(function(t){return h.every(function(C){return C.id!==t.id})});
W.set("succeed",h);W.set("failed",M);return g.return(W)})},Bic=function(F,W){W=_.U(W);
for(var E=W.next();!E.done;E=W.next()){var h=F;E=E.value;Iw_(h,E.id)>=0&&h.cancel(E.id);var d=new c6O(E),V=_.KEp(h.uploadUrl,{"X-YouTube-ChannelId":h.channelId},E.imageBlob);d.transfer=V;d.uploadPromise=DA_(V,E);h.imagesUploadData.push(d);V.run()}};
fj.prototype.cancel=function(F){var W=Iw_(this,F);W!==-1&&((W=this.imagesUploadData[W].transfer)&&W.cancel(),this.imagesUploadData=this.imagesUploadData.filter(function(E){return E.image.id!==F}))};
var Iw_=function(F,W){return F.imagesUploadData.findIndex(function(E){return E.image.id===W})},DA_=function(F,W){return new Promise(function(E,h){F.listen("l",function(){var d=F.getResponseText();
d?(d=JSON.parse(d).encryptedBlobId,W.encryptedBlobId=d,E(W)):h("upload failed")});
F.listen("n",function(){h("upload failed")})})},c6O=function(F){this.image=F};var b5b=function(F,W,E,h,d){this.id=F;this.imageBlob=W;this.localImageSrc=E;this.naturalWidth=h;this.naturalHeight=d;this.previewCoordinates=this.naturalHeight>this.naturalWidth?{top:(this.naturalHeight-this.naturalWidth)/2/this.naturalHeight,right:1,bottom:(this.naturalHeight+this.naturalWidth)/2/this.naturalHeight,left:0}:{top:0,right:(this.naturalWidth+this.naturalHeight)/2/this.naturalWidth,bottom:1,left:(this.naturalWidth-this.naturalHeight)/2/this.naturalWidth}};var xAa=[".jpeg",".jpg",".png"],OK=function(){var F=_.n.apply(this,arguments)||this;F.showImagesPreview=!1;F.pollOptions=[];F.errorMessage="";F.optionPlaceholderText="";F.optionDefaultText="";F.JSC$13428_imageId=0;F.maxFileSizeMb=0;F.maxAspectRatio=0;F.invalidFileSizeError="";F.invalidAspectRatioError="";F.invalidFileTypeError="";F.imageSelector=new cP(null,"single_file",xAa);return F};
_.k(OK,_.n);_.N=OK.prototype;_.N.ready=function(){_.ce(this.imageSelector,"j",this.onImageSelect,!1,this);_.ce(this.imageRepositionContainer,"ytd-backstage-image-reposition-save",this.saveImageRepositions,!1,this);_.ce(this.imageRepositionContainer,"ytd-backstage-image-reposition-cancel",this.cancelImageRepositions,!1,this)};
_.N.dataChanged=function(){var F,W,E=_.D((F=this.data)==null?void 0:(W=F.cellTemplate)==null?void 0:W.onEmptyCellTap,wyp);if(E&&E.uploadUrl&&E.channelId){var h;this.maxFileSizeMb=((h=E.imageValidationInfo)==null?void 0:h.maxFileSizeMb)||0;var d;this.maxAspectRatio=((d=E.imageValidationInfo)==null?void 0:d.allowedMaxAspectRatio)||0;var V;this.invalidFileSizeError=this.getSimpleString((V=this.data)==null?void 0:V.invalidFileSizeError);var R;this.invalidAspectRatioError=this.getSimpleString((R=this.data)==
null?void 0:R.invalidAspectRatioError);var M;this.invalidFileTypeError=this.getSimpleString((M=this.data)==null?void 0:M.invalidFileTypeError);this.uploadManager=new fj(E.uploadUrl,E.channelId)}};
_.N.onEditorInfoChange=function(){this.optionPlaceholderText=_.Yr(this.editorInfo.optionPlaceholderText);this.optionDefaultText=_.Yr(this.editorInfo.optionDefaultText);this.pollOptions=this.createPollOptions(this.editorInfo)};
_.N.observeAddImageError=function(){this.errorMessage!==""&&_.hF(this.hostElement,"yt-backstage-add-image-error",this.errorMessage)};
_.N.onPollOptionsChange=function(){for(var F=!1,W=[],E=0;E<this.pollOptions.length;E++){var h=this.hasCustomOptionText?this.optionPlaceholderText:this.optionDefaultText+" "+(E+1);this.pollOptions[E].placeholderText!==h?(F=!0,W.push(Object.assign({},this.pollOptions[E],{placeholderText:h}))):W.push(this.pollOptions[E])}F&&(this.pollOptions=W);this.isValid()?_.hF(this.hostElement,"yt-commentbox-post-enable"):_.hF(this.hostElement,"yt-commentbox-post-disable")};
_.N.createPollOptions=function(F){var W=[],E;F=(E=F==null?void 0:F.minPollOptions)!=null?E:0;for(E=0;E<F;E++)W.push(this.createPollOption());return W};
_.N.onImageSelect=function(F){var W=this,E,h,d,V,R,M;return _.e(function(g){if(g.nextAddress==1){if(W.selectedImageIndex===void 0)return g.jumpTo(0);E=F.files[0];W.errorMessage="";h=W.validateImage(E);if(h!=="")return W.errorMessage=h,g.return();d=new pi(W.maxAspectRatio,!1,!0);return _.Q(g,d.transform(E),3)}if(g.nextAddress!=4)return V=g.yieldResult,V.transformedData?V.invalidAspectRatio?(W.errorMessage=W.invalidAspectRatioError,g.return()):_.Q(g,liG(W.JSC$13428_imageId,F.files[0],V.transformedData),
4):(W.errorMessage=W.invalidFileTypeError,g.return());R=g.yieldResult;W.JSC$13428_imageId++;Bic(W.uploadManager,[R]);M=Object.assign({},W.pollOptions[W.selectedImageIndex],{image:R});W.pollOptions.splice(W.selectedImageIndex,1,M);W.refreshPollOptions();_.hF(W.hostElement,"yt-backstage-poll-image-select");_.gG(g)})};
_.N.validateImage=function(F){return F.size>1048576*this.maxFileSizeMb?this.invalidFileSizeError:""};
_.N.refreshPollOptions=function(){this.pollOptions=[].concat(_.x9(this.pollOptions))};
_.N.onAddPollOption=function(){this.isAllowedToAddOption&&(this.pollOptions=[].concat(_.x9(this.pollOptions),[this.createPollOption()]))};
_.N.onRemovePollOption=function(F){var W=this.pollOptions[F.model.index];W&&W.image&&this.uploadManager.cancel(W.image.id);this.pollOptions.splice(F.model.index,1);this.refreshPollOptions();this.pollOptions.length===0&&_.hF(this.hostElement,"yt-image-poll-attachment-dismiss")};
_.N.onTextInput=function(){this.refreshPollOptions()};
_.N.onImageButtonClick=function(F){this.selectedImageIndex=F.model.index;this.imageSelector.click()};
_.N.onRepositionImages=function(){this.hasImages&&(this.showImagesPreview=!0,this.refreshPollOptions())};
_.N.cancelImageRepositions=function(){this.showImagesPreview=!1;this.refreshPollOptions()};
_.N.saveImageRepositions=function(F){F=F.event_.detail;for(var W=0,E=[],h=_.U(this.pollOptions),d=h.next();!d.done;d=h.next())d=d.value,d.image!==void 0?(d=Object.assign({},d,{image:F[W]}),E.push(d),W++):E.push(d);this.showImagesPreview=!1;this.pollOptions=[].concat(_.x9(E))};
_.N.isValid=function(){if(!this.editorInfo||this.showImagesPreview||this.pollOptions.length<Number(this.editorInfo.minPollOptions)||this.pollOptions.length>Number(this.editorInfo.maxPollOptions))return!1;for(var F=0,W=_.U(this.pollOptions),E=W.next();!E.done;E=W.next())if(E=E.value,E.optionText.trim()!==""||E.image!==void 0){if(!E.image||this.hasCustomOptionText&&E.optionText.trim().length<Number(this.editorInfo.minPollOptionChars))return!1;F++}return F>=Number(this.editorInfo.minPollOptions)};
_.N.getAllUploadStatuses=function(){var F=this,W,E,h,d;return _.e(function(V){if(V.nextAddress==1)return _.Q(V,F.uploadManager.getAllUploadStatuses(),2);W=V.yieldResult;E=_.U(W);for(h=E.next();!h.done;h=E.next())if(d=h.value,d.encryptedBlobId===void 0)return V.return(vnu(F.uploadManager));return V.return(W)})};
_.N.getPostCreateOptions=function(){for(var F=[],W=_.U(this.pollOptions),E=W.next();!E.done;E=W.next())E=E.value,E.image!==void 0&&F.push({text:this.hasCustomOptionText?E.optionText:E.placeholderText,image:E.image});return F};
_.N.resetPollOptions=function(){this.pollOptions=this.createPollOptions(this.editorInfo);this.showImagesPreview=!1};
_.N.createButtonRenderer=function(F,W){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:F,accessibilityData:{accessibilityData:{label:this.getSimpleString(F)}},isDisabled:W}};
_.N.createPollOption=function(){return{optionText:"",placeholderText:""}};
_.N.computeThumbnailRendererData=function(F){return F?{image:F,selected:!1}:void 0};
_.N.getSimpleString=function(F){return _.Yr(F)};
_.N.updateOptionTextFromBinding=function(F){if(F.target){var W=Array.from(_.Z(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.poll-option-input-text")).indexOf(F.target);if(W>=0){var E;this.pollOptions[W].optionText=(E=F.detail.value)!=null?E:""}}};
_.Sn.Object.defineProperties(OK.prototype,{isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var F,W;return this.pollOptions.length<((W=(F=this.editorInfo)==null?void 0:F.maxPollOptions)!=null?W:0)}},
hasImages:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(F){return F.image})}},
imagesToReposition:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.filter(function(F){return F.image}).map(function(F){return F.image})}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(F){return F.optionText.trim()})}},
addOptionButton:{configurable:!0,enumerable:!0,get:function(){var F,W=(F=this.data)==null?void 0:F.addOptionButtonText;return W?this.createButtonRenderer(W,!this.isAllowedToAddOption):void 0}},
repositionImagesButton:{configurable:!0,enumerable:!0,get:function(){var F,W=(F=this.data)==null?void 0:F.repositionImagesButtonLabel;return W?this.createButtonRenderer(W,!this.hasImages):void 0}}});
OK.prototype.onPollOptionsChange=OK.prototype.onPollOptionsChange;OK.prototype.observeAddImageError=OK.prototype.observeAddImageError;OK.prototype.onEditorInfoChange=OK.prototype.onEditorInfoChange;OK.prototype.dataChanged=OK.prototype.dataChanged;_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],OK.prototype,"ytRendererstamperBehavior",void 0);_.T([_.gQ("ytd-backstage-multi-image-reposition-renderer"),_.Y("design:type",Object)],OK.prototype,"imageRepositionContainer",void 0);
_.T([_.O(),_.Y("design:type",Object)],OK.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Object)],OK.prototype,"editorInfo",void 0);_.T([_.O(),_.Y("design:type",fj)],OK.prototype,"uploadManager",void 0);_.T([_.O(),_.Y("design:type",Object)],OK.prototype,"showImagesPreview",void 0);_.T([_.O(),_.Y("design:type",Array)],OK.prototype,"pollOptions",void 0);_.T([_.O(),_.Y("design:type",Object)],OK.prototype,"errorMessage",void 0);
_.T([_.Cz("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],OK.prototype,"dataChanged",null);_.T([_.Cz("editorInfo"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],OK.prototype,"onEditorInfoChange",null);_.T([_.ea("errorMessage"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],OK.prototype,"observeAddImageError",null);
_.T([_.Cz("pollOptions"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],OK.prototype,"onPollOptionsChange",null);_.T([_.a("pollOptions","editorInfo"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],OK.prototype,"isAllowedToAddOption",null);_.T([_.a("pollOptions"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],OK.prototype,"hasImages",null);
_.T([_.a("pollOptions"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],OK.prototype,"imagesToReposition",null);_.T([_.a("pollOptions"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],OK.prototype,"hasCustomOptionText",null);_.T([_.a("data","isAllowedToAddOption"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],OK.prototype,"addOptionButton",null);_.T([_.a("data","hasImages"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],OK.prototype,"repositionImagesButton",null);
OK=_.T([_.y({is:"ytd-backstage-image-poll-editor-renderer",disableElementRegistration:!0})],OK);
_.r(OK,"ytd-backstage-image-poll-editor-renderer",function(){if(zbc!==void 0)return zbc;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-image-poll-editor-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div hidden="[[showImagesPreview]]" class="style-scope ytd-backstage-image-poll-editor-renderer">\n  <template is="dom-repeat" items="[[pollOptions]]" class="style-scope ytd-backstage-image-poll-editor-renderer">\n    <div class="poll-option style-scope ytd-backstage-image-poll-editor-renderer">\n      <div class="image-thumbnail-container style-scope ytd-backstage-image-poll-editor-renderer">\n        <div class="image-thumbnail style-scope ytd-backstage-image-poll-editor-renderer" hidden="[[!item.image]]">\n          <ytd-backstage-multi-image-thumbnail-renderer data="[[computeThumbnailRendererData(item.image)]]" class="style-scope ytd-backstage-image-poll-editor-renderer">\n          </ytd-backstage-multi-image-thumbnail-renderer>\n        </div>\n        <div class="image-select-container style-scope ytd-backstage-image-poll-editor-renderer" hidden="[[item.image]]">\n          <yt-icon-button class="add-image-icon-button style-scope ytd-backstage-image-poll-editor-renderer" on-click="onImageButtonClick">\n            <yt-icon class="add-image-icon style-scope ytd-backstage-image-poll-editor-renderer" icon="yt-icons:image"></yt-icon>\n          </yt-icon-button>\n        </div>\n      </div>\n      <tp-yt-paper-input-container class="poll-option-input style-scope ytd-backstage-image-poll-editor-renderer" no-label-float="">\n        <tp-yt-iron-autogrow-textarea class="paper-input-input poll-option-input-text style-scope ytd-backstage-image-poll-editor-renderer" slot="input" maxlength$="[[editorInfo.maxPollOptionChars]]" no-label-float="" placeholder$="[[item.placeholderText]]" value="[[item.optionText]]" on-input="onTextInput" on-value-changed="updateOptionTextFromBinding">\n        </tp-yt-iron-autogrow-textarea>\n        <tp-yt-paper-input-char-counter slot="add-on" class="style-scope ytd-backstage-image-poll-editor-renderer"></tp-yt-paper-input-char-counter>\n      </tp-yt-paper-input-container>\n      <yt-icon-button class="remove-button style-scope ytd-backstage-image-poll-editor-renderer" on-click="onRemovePollOption">\n        <yt-icon class="remove-option style-scope ytd-backstage-image-poll-editor-renderer" icon="yt-icons:delete"></yt-icon>\n      </yt-icon-button>\n    </div>\n  </template>\n  <div class="button-container style-scope ytd-backstage-image-poll-editor-renderer">\n    <yt-button-renderer class="add-option style-scope ytd-backstage-image-poll-editor-renderer" data="[[addOptionButton]]" on-click="onAddPollOption">\n    </yt-button-renderer>\n    <yt-button-renderer class="reposition-images style-scope ytd-backstage-image-poll-editor-renderer" data="[[repositionImagesButton]]" on-click="onRepositionImages">\n    </yt-button-renderer>\n  </div>\n</div>\n\n\n<div class="image-reposition-container style-scope ytd-backstage-image-poll-editor-renderer" hidden="[[!showImagesPreview]]">\n  <ytd-backstage-multi-image-reposition-renderer images="[[imagesToReposition]]" reposition-instructions="[[data.imagePreviewSelectMetadata]]" class="style-scope ytd-backstage-image-poll-editor-renderer">\n  </ytd-backstage-multi-image-reposition-renderer>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return zbc=F},{mode:2});var kmM={imageHorizontalPosition:"IMAGE_HORIZONTAL_POSITION_LABEL",imageVerticalPosition:"IMAGE_VERTICAL_POSITION_LABEL",horizontalRepositionInstruction:"REPOSITION_IMAGE_HORIZONTALLY_LABEL",verticalRepositionInstruction:"REPOSITION_IMAGE_VERTICALLY_LABEL",reachTopOfImage:"REACH_TOP_OF_IMAGE_TEXT",reachBottomOfImage:"REACH_BOTTOM_OF_IMAGE_TEXT",reachLeftOfImage:"REACH_LEFT_OF_IMAGE_TEXT",reachRightOfImage:"REACH_RIGHT_OF_IMAGE_TEXT"};var A6M;var b4=function(){var F=_.n.apply(this,arguments)||this;F.a11yConfig=kmM;F.imageDisplayOffsetTop=0;F.imageDisplayOffsetLeft=0;F.pickerDisplayOffsetTop=0;F.pickerDisplayOffsetLeft=0;F.showPreviewContainer=!0;F.startPicker=!1;F.repositionOptional=!1;F.editOnlyMode=!1;F.savedImageDisplayOffsetTop=0;F.savedImageDisplayOffsetLeft=0;return F};
_.k(b4,_.n);_.N=b4.prototype;_.N.created=function(){_.Y5.requestAvailability()};
_.N.ready=function(){};
_.N.onArrowKeysDown=function(F){if(!this.showPreviewContainer&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){F.detail.keyboardEvent.preventDefault();var W=0,E=0,h="";switch(F.detail.keyboardEvent.key){case "ArrowUp":nHo(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?h=this.a11yConfig.reachBottomOfImage:W=this.imageHeight*.05*-1;break;case "ArrowDown":nHo(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?h=this.a11yConfig.reachTopOfImage:
W=this.imageHeight*.05;break;case "ArrowLeft":nHo(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?h=this.a11yConfig.reachRightOfImage:E=this.imageWidth*.05*-1;break;case "ArrowRight":nHo(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?h=this.a11yConfig.reachLeftOfImage:E=this.imageWidth*.05}h&&_.CY(h)&&_.hF(this.hostElement,"iron-announce",{text:_.CY(h)});if(E||W)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+W)),F=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),F=_.CY(this.a11yConfig.imageVerticalPosition,{x_percent:""+F,y_percent:""+(100-F)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+E)),F=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),F=_.CY(this.a11yConfig.imageHorizontalPosition,{x_percent:""+F,y_percent:""+(100-F)})),F&&_.hF(this.hostElement,"iron-announce",{text:F})}};
_.N.getPreviewPosition=function(F,W,E,h){return Math.round(100*(F+W*.5-E)/h)};
_.N.calculateDisplayPosition=function(){var F=this.imageData.naturalWidth,W=this.imageData.naturalHeight;this.displayScale=Math.max(200/F,200/W);this.pickerDisplayOffsetTop=this.pickerDisplayOffsetLeft=50;var E=F*this.displayScale*this.imageData.previewCoordinates.left,h=W*this.displayScale*this.imageData.previewCoordinates.top;this.imageDisplayOffsetLeft=W>F?this.pickerDisplayOffsetLeft:this.pickerDisplayOffsetLeft-E;this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop=F>W?this.pickerDisplayOffsetTop:
this.pickerDisplayOffsetTop-h;this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft;this.imageWidth=F*this.displayScale;this.imageHeight=W*this.displayScale};
_.N.onImageChange=function(){this.imageData&&(this.editOnlyMode||(this.showPreviewContainer=!0),this.calculateDisplayPosition())};
_.N.onEditOnlyModeUpdate=function(){this.showPreviewContainer=!this.editOnlyMode};
_.N.getSignedPosition=function(F,W,E){return W==="X"&&_.b0("HTML_DIR")==="rtl"?E==="-"?F+"px":F*-1+"px":E==="-"?F*-1+"px":F+"px"};
_.N.pickerMove=function(F){if(this.startPicker&&!this.showPreviewContainer&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var W=this.pickerOffsetX-F.clientX,E=this.pickerOffsetY-F.clientY;this.pickerOffsetX=F.clientX;this.pickerOffsetY=F.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
E)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-W))}};
_.N.pickerMoveStart=function(F){this.startPicker=!0;this.pickerOffsetX=F.clientX;this.pickerOffsetY=F.clientY};
_.N.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0;var F=this.generateCropPreview();F&&_.hF(this.hostElement,"ytd-backstage-image-preview-coordinates-update",F)};
_.N.cancelReposition=function(){this.editOnlyMode||(this.imageDisplayOffsetTop=this.savedImageDisplayOffsetTop,this.imageDisplayOffsetLeft=this.savedImageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);_.hF(this.hostElement,"ytd-backstage-image-preview-coordinates-cancel")};
_.N.deleteImage=function(){_.hF(this.hostElement,"ytd-backstage-image-preview-delete")};
_.N.editCropCoordinates=function(){this.showPreviewContainer=!1};
_.N.saveCropCoordinates=function(){this.editOnlyMode||(this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop,this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);var F=this.generateCropPreview();F&&_.hF(this.hostElement,"ytd-backstage-image-preview-coordinates-save",F)};
_.N.getPreviewOffset=function(F,W,E){return W&&F?(E==="X"&&_.b0("HTML_DIR")==="rtl"?300/W*F:300/W*F*-1)+"px":"0px"};
_.N.getSimpleText=function(F){return F?_.Yr(F):""};
_.N.generateCropPreview=function(){if(this.imageWidth&&this.imageHeight&&this.pickerSize)return{top:this.cropOffsetTop/this.imageHeight,right:(this.cropOffsetLeft+this.pickerSize)/this.imageWidth,bottom:(this.cropOffsetTop+this.pickerSize)/this.imageHeight,left:this.cropOffsetLeft/this.imageWidth}};
_.Sn.Object.defineProperties(b4.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var F=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.CY(this.a11yConfig.imageVerticalPosition,{x_percent:""+F,y_percent:""+(100-F)})+"\n"+_.CY(this.a11yConfig.verticalRepositionInstruction)}F=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.CY(this.a11yConfig.imageHorizontalPosition,{x_percent:""+F,y_percent:""+(100-F)})+"\n"+_.CY(this.a11yConfig.horizontalRepositionInstruction)}},
pickerSize:{configurable:!0,enumerable:!0,get:function(){return this.imageHeight&&this.imageWidth?this.imageHeight>this.imageWidth?this.imageWidth:this.imageHeight:0}},
imageOrientationStyle:{configurable:!0,enumerable:!0,get:function(){if(this.imageHeight&&this.imageWidth)return this.imageHeight===this.imageWidth?"SQUARE":this.imageHeight>this.imageWidth?"PORTRAIT":"LANDSCAPE"}},
editButton:{configurable:!0,enumerable:!0,get:function(){var F,W,E=(F=this.instruction)==null?void 0:(W=F.previewInstruction)==null?void 0:W.editButtonLabel;return E?{size:"SIZE_SMALL",style:"STYLE_SUGGESTIVE",text:E,accessibilityData:{accessibilityData:{label:this.getSimpleText(E)}}}:void 0}},
saveButton:{configurable:!0,enumerable:!0,get:function(){var F,W,E,h,d=this.editOnlyMode?(F=this.instruction)==null?void 0:(W=F.editInstruction)==null?void 0:W.saveImagesButtonLabel:(E=this.instruction)==null?void 0:(h=E.editInstruction)==null?void 0:h.saveButtonLabel;return d?{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:d,accessibilityData:{accessibilityData:{label:this.getSimpleText(d)}}}:void 0}},
deleteButton:{configurable:!0,enumerable:!0,get:function(){var F,W,E=(F=this.instruction)==null?void 0:(W=F.previewInstruction)==null?void 0:W.deleteButtonLabel;return E?{size:"SIZE_SMALL",text:E,accessibilityData:{accessibilityData:{label:this.getSimpleText(E)}}}:void 0}},
cancelButton:{configurable:!0,enumerable:!0,get:function(){var F,W,E=(F=this.instruction)==null?void 0:(W=F.editInstruction)==null?void 0:W.cancelButtonLabel;F=this.editOnlyMode?"STYLE_BLUE_TEXT":"STYLE_TEXT";return E?{style:F,size:"SIZE_SMALL",text:E,accessibilityData:{accessibilityData:{label:this.getSimpleText(E)}}}:void 0}},
cropOffsetTop:{configurable:!0,enumerable:!0,get:function(){return this.imageDisplayOffsetTop===void 0||this.pickerDisplayOffsetTop===void 0?0:this.pickerDisplayOffsetTop-this.imageDisplayOffsetTop}},
cropOffsetLeft:{configurable:!0,enumerable:!0,get:function(){return this.imageDisplayOffsetLeft===void 0||this.pickerDisplayOffsetLeft===void 0?0:this.pickerDisplayOffsetLeft-this.imageDisplayOffsetLeft}},
pickerBackgroundStyle:{configurable:!0,enumerable:!0,get:function(){return"transform:translateX("+this.getSignedPosition(this.imageDisplayOffsetLeft,"X",void 0)+") translateY("+this.getSignedPosition(this.imageDisplayOffsetTop,"Y",void 0)+");"}},
pickerDisplayStyle:{configurable:!0,enumerable:!0,get:function(){return"width:"+this.pickerSize+"px;height:"+this.pickerSize+"px;transform:translateX("+this.getSignedPosition(this.pickerDisplayOffsetLeft,"X",void 0)+") translateY("+this.getSignedPosition(this.pickerDisplayOffsetTop,"Y",void 0)+");"}},
imageInPickerStyle:{configurable:!0,enumerable:!0,get:function(){return"transform:translateX("+this.getSignedPosition(this.cropOffsetLeft,"X","-")+") translateY("+this.getSignedPosition(this.cropOffsetTop,"Y","-")+");"}},
previewClipperStyle:{configurable:!0,enumerable:!0,get:function(){return"transform:translateX("+this.getPreviewOffset(this.cropOffsetLeft,this.pickerSize,"X")+") translateY("+this.getPreviewOffset(this.cropOffsetTop,this.pickerSize,"Y")+");"}},
pickerModeStyle:{configurable:!0,enumerable:!0,get:function(){return this.showPreviewContainer?"preview":"edit"}}});
b4.prototype.onEditOnlyModeUpdate=b4.prototype.onEditOnlyModeUpdate;b4.prototype.onImageChange=b4.prototype.onImageChange;_.T([_.O(),_.Y("design:type",b5b)],b4.prototype,"imageData",void 0);_.T([_.O(),_.Y("design:type",Object)],b4.prototype,"instruction",void 0);_.T([_.O(),_.Y("design:type",Object)],b4.prototype,"a11yConfig",void 0);_.T([_.O(),_.Y("design:type",Number)],b4.prototype,"imageWidth",void 0);_.T([_.O(),_.Y("design:type",Number)],b4.prototype,"imageHeight",void 0);
_.T([_.O(),_.Y("design:type",Number)],b4.prototype,"displayScale",void 0);_.T([_.O(),_.Y("design:type",Object)],b4.prototype,"imageDisplayOffsetTop",void 0);_.T([_.O(),_.Y("design:type",Object)],b4.prototype,"imageDisplayOffsetLeft",void 0);_.T([_.O(),_.Y("design:type",Object)],b4.prototype,"pickerDisplayOffsetTop",void 0);_.T([_.O(),_.Y("design:type",Object)],b4.prototype,"pickerDisplayOffsetLeft",void 0);_.T([_.O(),_.Y("design:type",Object)],b4.prototype,"showPreviewContainer",void 0);
_.T([_.O(),_.Y("design:type",Object)],b4.prototype,"startPicker",void 0);_.T([_.O(),_.Y("design:type",Number)],b4.prototype,"pickerOffsetX",void 0);_.T([_.O(),_.Y("design:type",Number)],b4.prototype,"pickerOffsetY",void 0);_.T([_.O(),_.Y("design:type",Object)],b4.prototype,"repositionOptional",void 0);_.T([_.O(),_.Y("design:type",Object)],b4.prototype,"editOnlyMode",void 0);_.T([_.gQ("#picker-container"),_.Y("design:type",HTMLElement)],b4.prototype,"JSC$13441_pickerContainer",void 0);
_.T([_.gQ("#picker"),_.Y("design:type",HTMLElement)],b4.prototype,"picker",void 0);_.T([_.gQ("#preview-clipper"),_.Y("design:type",HTMLElement)],b4.prototype,"previewClipper",void 0);_.T([_.gQ("#image-in-picker-background"),_.Y("design:type",HTMLImageElement)],b4.prototype,"JSC$13441_imageInBackground",void 0);_.T([_.gQ("#image-in-picker"),_.Y("design:type",HTMLImageElement)],b4.prototype,"JSC$13441_imageInPicker",void 0);
_.T([_.gQ("#image-in-preview-clipper"),_.Y("design:type",HTMLImageElement)],b4.prototype,"JSC$13441_imageInPreviewClipper",void 0);_.T([_.a("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.Y("design:type",String),_.Y("design:paramtypes",[])],b4.prototype,"altLabelForImage",null);_.T([_.a("imageHeight","imageWidth"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],b4.prototype,"pickerSize",null);
_.T([_.a("imageHeight","imageWidth"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],b4.prototype,"imageOrientationStyle",null);_.T([_.a("instruction"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],b4.prototype,"editButton",null);_.T([_.a("instruction","editOnlyMode"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],b4.prototype,"saveButton",null);_.T([_.a("instruction"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],b4.prototype,"deleteButton",null);
_.T([_.a("instruction","editOnlyMode"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],b4.prototype,"cancelButton",null);_.T([_.a("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],b4.prototype,"cropOffsetTop",null);_.T([_.a("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],b4.prototype,"cropOffsetLeft",null);
_.T([_.a("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.Y("design:type",String),_.Y("design:paramtypes",[])],b4.prototype,"pickerBackgroundStyle",null);_.T([_.a("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.Y("design:type",String),_.Y("design:paramtypes",[])],b4.prototype,"pickerDisplayStyle",null);_.T([_.a("cropOffsetLeft","cropOffsetTop"),_.Y("design:type",String),_.Y("design:paramtypes",[])],b4.prototype,"imageInPickerStyle",null);
_.T([_.a("cropOffsetLeft","cropOffsetTop","pickerSize"),_.Y("design:type",String),_.Y("design:paramtypes",[])],b4.prototype,"previewClipperStyle",null);_.T([_.Cz("imageData"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],b4.prototype,"onImageChange",null);_.T([_.Cz("editOnlyMode"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],b4.prototype,"onEditOnlyModeUpdate",null);
_.T([_.a("showPreviewContainer"),_.Y("design:type",String),_.Y("design:paramtypes",[])],b4.prototype,"pickerModeStyle",null);b4=_.T([_.y({is:"ytd-backstage-image-preview-renderer",disableElementRegistration:!0})],b4);
_.r(b4,"ytd-backstage-image-preview-renderer",function(){if(A6M!==void 0)return A6M;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-image-preview-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class$="[[pickerModeStyle]] style-scope ytd-backstage-image-preview-renderer">\n  <div id="preview-container" hidden="[[!showPreviewContainer]]" class="style-scope ytd-backstage-image-preview-renderer">\n    <div id="preview-clipper" class="style-scope ytd-backstage-image-preview-renderer">\n      <img id="image-in-preview-clipper" class$="[[imageOrientationStyle]] style-scope ytd-backstage-image-preview-renderer" src$="[[imageData.localImageSrc]]" style$="[[previewClipperStyle]]">\n    </div>\n    <div class="buttons-container style-scope ytd-backstage-image-preview-renderer">\n      <yt-button-renderer id="delete-button" data="[[deleteButton]]" on-click="deleteImage" class="style-scope ytd-backstage-image-preview-renderer">\n      </yt-button-renderer>\n      <yt-button-renderer id="edit-button" data="[[editButton]]" on-click="editCropCoordinates" class="style-scope ytd-backstage-image-preview-renderer">\n      </yt-button-renderer>\n    </div>\n  </div>\n  <div id="edit-container" hidden="[[showPreviewContainer]]" class="style-scope ytd-backstage-image-preview-renderer">\n    <div id="picker-container" class="style-scope ytd-backstage-image-preview-renderer">\n      <img id="image-in-picker-background" class$="[[imageOrientationStyle]] style-scope ytd-backstage-image-preview-renderer" src$="[[imageData.localImageSrc]]" width$="[[imageWidth]]" height$="[[imageHeight]]" style$="[[pickerBackgroundStyle]]" alt="[[altLabelForImage]]">\n      <div id="overlay" on-mousemove="pickerMove" on-mousedown="pickerMoveStart" on-mouseup="pickerMoveComplete" on-mouseleave="pickerMoveComplete" class="style-scope ytd-backstage-image-preview-renderer">\n      </div>\n      <div id="picker" style$="[[pickerDisplayStyle]]" class="style-scope ytd-backstage-image-preview-renderer">\n        <img id="image-in-picker" class$="[[imageOrientationStyle]] style-scope ytd-backstage-image-preview-renderer" src$="[[imageData.localImageSrc]]" width$="[[imageWidth]]" height$="[[imageHeight]]" style$="[[imageInPickerStyle]]" alt="">\n      </div>\n    </div>\n    <div class="buttons-container style-scope ytd-backstage-image-preview-renderer">\n      <yt-button-renderer id="cancel-button" data="[[cancelButton]]" on-click="cancelReposition" class="style-scope ytd-backstage-image-preview-renderer">\n      </yt-button-renderer>\n      <yt-button-renderer id="save-button" data="[[saveButton]]" on-click="saveCropCoordinates" class="style-scope ytd-backstage-image-preview-renderer">\n      </yt-button-renderer>\n    </div>\n  </div>\n</div>\n<iron-a11y-keys keys="up down left right" target="[[keyboardInterfaceTarget]]" on-keys-pressed="onArrowKeysDown" class="style-scope ytd-backstage-image-preview-renderer">\n</iron-a11y-keys>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return A6M=F},{mode:1});var sfB;var LWB={imageHorizontalPosition:"IMAGE_HORIZONTAL_POSITION_LABEL",imageVerticalPosition:"IMAGE_VERTICAL_POSITION_LABEL",horizontalRepositionInstruction:"REPOSITION_IMAGE_HORIZONTALLY_LABEL",verticalRepositionInstruction:"REPOSITION_IMAGE_VERTICALLY_LABEL",reachTopOfImage:"REACH_TOP_OF_IMAGE_TEXT",reachBottomOfImage:"REACH_BOTTOM_OF_IMAGE_TEXT",reachLeftOfImage:"REACH_LEFT_OF_IMAGE_TEXT",reachRightOfImage:"REACH_RIGHT_OF_IMAGE_TEXT"};var quM;var $AT;var l4=function(){var F=_.n.apply(this,arguments)||this;F.a11yConfig=LWB;F.imageDisplayOffsetTop=0;F.imageDisplayOffsetLeft=0;F.pickerDisplayOffsetTop=0;F.pickerDisplayOffsetLeft=0;F.cropCoordinatesSaved=!1;F.previewSize=0;F.startPicker=!1;F.repositionOptional=!1;return F};
_.k(l4,_.n);_.N=l4.prototype;_.N.created=function(){_.Y5.requestAvailability()};
_.N.ready=function(){};
_.N.onArrowKeysDown=function(F){if(!this.cropCoordinatesSaved&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){F.detail.keyboardEvent.preventDefault();var W=0,E=0,h="";switch(F.detail.keyboardEvent.key){case "ArrowUp":yQS(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?h=this.a11yConfig.reachBottomOfImage:W=this.imageHeight*.05*-1;break;case "ArrowDown":yQS(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?h=this.a11yConfig.reachTopOfImage:
W=this.imageHeight*.05;break;case "ArrowLeft":yQS(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?h=this.a11yConfig.reachRightOfImage:E=this.imageWidth*.05*-1;break;case "ArrowRight":yQS(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?h=this.a11yConfig.reachLeftOfImage:E=this.imageWidth*.05}h&&_.CY(h)&&_.hF(this.hostElement,"iron-announce",{text:_.CY(h)});if(E||W)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+W)),F=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),F=_.CY(this.a11yConfig.imageVerticalPosition,{x_percent:""+F,y_percent:""+(100-F)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+E)),F=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),F=_.CY(this.a11yConfig.imageHorizontalPosition,{x_percent:""+F,y_percent:""+(100-F)})),F&&_.hF(this.hostElement,"iron-announce",{text:F})}};
_.N.getPreviewPosition=function(F,W,E,h){return Math.round(100*(F+W*.5-E)/h)};
_.N.displayImage=function(){var F=this.JSC$13452_pickerContainer.getBoundingClientRect().width,W=this.JSC$13452_pickerContainer.getBoundingClientRect().height,E=Math.min(this.picker.getBoundingClientRect().height,this.picker.getBoundingClientRect().width),h=this.JSC$13452_imageInBackground.naturalWidth,d=this.JSC$13452_imageInBackground.naturalHeight;this.displayScale=Math.max(E/h,E/d);this.imageWidth=h*this.displayScale;this.imageHeight=d*this.displayScale;this.pickerDisplayOffsetLeft=(F-E)/2;this.pickerDisplayOffsetTop=
(W-E)/2;this.imageDisplayOffsetLeft=d>h?this.pickerDisplayOffsetLeft:(F-this.imageWidth)/2;this.imageDisplayOffsetTop=h>d?this.pickerDisplayOffsetTop:(W-this.imageHeight)/2;this.repositionOptional&&this.saveCropCoordinates()};
_.N.onImageDataChange=function(){this.imageData&&(this.pickerDisplayOffsetLeft=this.pickerDisplayOffsetTop=0,this.cropCoordinatesSaved=!1,this.JSC$13452_imageInBackground.src=this.imageData.toString(),this.JSC$13452_imageInPicker.src=this.imageData.toString(),this.JSC$13452_imageInPreviewClipper.src=this.imageData.toString(),this.imageAsPreview.src=this.imageData.toString())};
_.N.getSignedPosition=function(F,W,E){return W==="X"&&_.b0("HTML_DIR")==="rtl"?E==="-"?F+"px":F*-1+"px":E==="-"?F*-1+"px":F+"px"};
_.N.pickerMove=function(F){if(this.startPicker&&!this.cropCoordinatesSaved&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var W=this.pickerOffsetX-F.clientX,E=this.pickerOffsetY-F.clientY;this.pickerOffsetX=F.clientX;this.pickerOffsetY=F.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
E)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-W))}};
_.N.pickerMoveStart=function(F){this.startPicker=!0;this.pickerOffsetX=F.clientX;this.pickerOffsetY=F.clientY};
_.N.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0};
_.N.saveCropCoordinates=function(){this.cropCoordinatesSaved?(this.cropCoordinatesSaved=!1,this.previewSize=0,_.hF(this.hostElement,"yt-img-crop-reposition")):(this.startPicker=!1,this.generateCropPreview())};
_.N.getPreviewOffset=function(F,W,E,h){return W&&F&&E?(h==="X"&&_.b0("HTML_DIR")==="rtl"?E/W*F:E/W*F*-1)+"px":"0px"};
_.N.getSimpleText=function(F){return F?_.Yr(F):""};
_.N.generateCropPreview=function(){if(this.imageWidth&&this.imageHeight&&this.pickerSize){this.cropCoordinatesSaved=!0;var F=this.cropOffsetTop/this.imageHeight,W=(this.cropOffsetLeft+this.pickerSize)/this.imageWidth,E=(this.cropOffsetTop+this.pickerSize)/this.imageHeight,h=this.cropOffsetLeft/this.imageWidth;this.previewSize=_.Z(this.hostElement).querySelector("#preview-clipper").getBoundingClientRect().width;_.hF(this.hostElement,"yt-img-crop-coordinates-update",{top:F,right:W,bottom:E,left:h})}};
_.Sn.Object.defineProperties(l4.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var F=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.CY(this.a11yConfig.imageVerticalPosition,{x_percent:""+F,y_percent:""+(100-F)})+"\n"+_.CY(this.a11yConfig.verticalRepositionInstruction)}F=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.CY(this.a11yConfig.imageHorizontalPosition,{x_percent:""+F,y_percent:""+(100-F)})+"\n"+_.CY(this.a11yConfig.horizontalRepositionInstruction)}},
pickerSize:{configurable:!0,enumerable:!0,get:function(){return this.imageHeight&&this.imageWidth?this.imageHeight>this.imageWidth?this.imageWidth:this.imageHeight:0}},
imageOrientationStyle:{configurable:!0,enumerable:!0,get:function(){if(this.imageHeight&&this.imageWidth)return this.imageHeight===this.imageWidth?"SQUARE":this.imageHeight>this.imageWidth?"PORTRAIT":"LANDSCAPE"}},
editButton:{configurable:!0,enumerable:!0,get:function(){if(this.instruction&&this.instruction.previewInstruction&&this.instruction.previewInstruction.editButtonLabel)return{size:"SIZE_SMALL",style:"STYLE_SUGGESTIVE",text:this.instruction.previewInstruction.editButtonLabel,accessibilityData:{accessibilityData:{label:this.getSimpleText(this.instruction.previewInstruction.editButtonLabel)}}}}},
saveButton:{configurable:!0,enumerable:!0,get:function(){if(this.instruction&&this.instruction.editInstruction&&this.instruction.editInstruction.saveButtonLabel)return{style:"STYLE_PRIMARY",size:"SIZE_SMALL",text:this.instruction.editInstruction.saveButtonLabel,accessibilityData:{accessibilityData:{label:this.getSimpleText(this.instruction.editInstruction.saveButtonLabel)}}}}},
cropOffsetTop:{configurable:!0,enumerable:!0,get:function(){return this.imageDisplayOffsetTop===void 0||this.pickerDisplayOffsetTop===void 0?0:this.pickerDisplayOffsetTop-this.imageDisplayOffsetTop}},
cropOffsetLeft:{configurable:!0,enumerable:!0,get:function(){return this.imageDisplayOffsetLeft===void 0||this.pickerDisplayOffsetLeft===void 0?0:this.pickerDisplayOffsetLeft-this.imageDisplayOffsetLeft}},
pickerBackgroundStyle:{configurable:!0,enumerable:!0,get:function(){return"transform:translateX("+this.getSignedPosition(this.imageDisplayOffsetLeft,"X",void 0)+") translateY("+this.getSignedPosition(this.imageDisplayOffsetTop,"Y",void 0)+");"}},
pickerDisplayStyle:{configurable:!0,enumerable:!0,get:function(){return"width:"+this.pickerSize+"px;height:"+this.pickerSize+"px;transform:translateX("+this.getSignedPosition(this.pickerDisplayOffsetLeft,"X",void 0)+") translateY("+this.getSignedPosition(this.pickerDisplayOffsetTop,"Y",void 0)+");"}},
imageInPickerStyle:{configurable:!0,enumerable:!0,get:function(){return"transform:translateX("+this.getSignedPosition(this.cropOffsetLeft,"X","-")+") translateY("+this.getSignedPosition(this.cropOffsetTop,"Y","-")+");"}},
previewClipperStyle:{configurable:!0,enumerable:!0,get:function(){return"transform:translateX("+this.getPreviewOffset(this.cropOffsetLeft,this.pickerSize,this.previewSize,"X")+") translateY("+this.getPreviewOffset(this.cropOffsetTop,this.pickerSize,this.previewSize,"Y")+");"}},
pickerModeStyle:{configurable:!0,enumerable:!0,get:function(){return this.cropCoordinatesSaved?"preview":"edit"}},
learnMore:{configurable:!0,enumerable:!0,get:function(){if(this.instruction&&this.instruction.editInstruction)return this.instruction.editInstruction.learnMore}},
learnMoreUrl:{configurable:!0,enumerable:!0,get:function(){if(this.learnMore&&this.learnMore.runs&&this.learnMore.runs[0]){var F,W=(F=this.learnMore.runs[0])==null?void 0:F.navigationEndpoint,E;return((E=_.D(W,_.T5))==null?void 0:E.url)||void 0}}}});
l4.prototype.onImageDataChange=l4.prototype.onImageDataChange;_.T([_.O(),_.Y("design:type",Object)],l4.prototype,"imageData",void 0);_.T([_.O(),_.Y("design:type",Object)],l4.prototype,"instruction",void 0);_.T([_.O(),_.Y("design:type",Object)],l4.prototype,"a11yConfig",void 0);_.T([_.O(),_.Y("design:type",Number)],l4.prototype,"imageWidth",void 0);_.T([_.O(),_.Y("design:type",Number)],l4.prototype,"imageHeight",void 0);_.T([_.O(),_.Y("design:type",Number)],l4.prototype,"displayScale",void 0);
_.T([_.O(),_.Y("design:type",Object)],l4.prototype,"imageDisplayOffsetTop",void 0);_.T([_.O(),_.Y("design:type",Object)],l4.prototype,"imageDisplayOffsetLeft",void 0);_.T([_.O(),_.Y("design:type",Object)],l4.prototype,"pickerDisplayOffsetTop",void 0);_.T([_.O(),_.Y("design:type",Object)],l4.prototype,"pickerDisplayOffsetLeft",void 0);_.T([_.O(),_.Y("design:type",Object)],l4.prototype,"cropCoordinatesSaved",void 0);_.T([_.O(),_.Y("design:type",Object)],l4.prototype,"previewSize",void 0);
_.T([_.O(),_.Y("design:type",Object)],l4.prototype,"startPicker",void 0);_.T([_.O(),_.Y("design:type",Number)],l4.prototype,"pickerOffsetX",void 0);_.T([_.O(),_.Y("design:type",Number)],l4.prototype,"pickerOffsetY",void 0);_.T([_.O(),_.Y("design:type",Object)],l4.prototype,"repositionOptional",void 0);_.T([_.gQ("#picker-container"),_.Y("design:type",HTMLElement)],l4.prototype,"JSC$13452_pickerContainer",void 0);_.T([_.gQ("#picker"),_.Y("design:type",HTMLElement)],l4.prototype,"picker",void 0);
_.T([_.gQ("#image-in-picker-background"),_.Y("design:type",HTMLImageElement)],l4.prototype,"JSC$13452_imageInBackground",void 0);_.T([_.gQ("#image-in-picker"),_.Y("design:type",HTMLImageElement)],l4.prototype,"JSC$13452_imageInPicker",void 0);_.T([_.gQ("#image-in-preview-clipper"),_.Y("design:type",HTMLImageElement)],l4.prototype,"JSC$13452_imageInPreviewClipper",void 0);_.T([_.gQ("#full-image-as-preview"),_.Y("design:type",HTMLImageElement)],l4.prototype,"imageAsPreview",void 0);
_.T([_.a("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.Y("design:type",String),_.Y("design:paramtypes",[])],l4.prototype,"altLabelForImage",null);_.T([_.a("imageHeight","imageWidth"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],l4.prototype,"pickerSize",null);_.T([_.a("imageHeight","imageWidth"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],l4.prototype,"imageOrientationStyle",null);
_.T([_.a("instruction.previewInstruction.editButtonLabel"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],l4.prototype,"editButton",null);_.T([_.a("instruction.editInstruction.saveButtonLabel"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],l4.prototype,"saveButton",null);_.T([_.a("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],l4.prototype,"cropOffsetTop",null);
_.T([_.a("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],l4.prototype,"cropOffsetLeft",null);_.T([_.a("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.Y("design:type",String),_.Y("design:paramtypes",[])],l4.prototype,"pickerBackgroundStyle",null);_.T([_.a("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.Y("design:type",String),_.Y("design:paramtypes",[])],l4.prototype,"pickerDisplayStyle",null);
_.T([_.a("cropOffsetLeft","cropOffsetTop"),_.Y("design:type",String),_.Y("design:paramtypes",[])],l4.prototype,"imageInPickerStyle",null);_.T([_.a("cropOffsetLeft","cropOffsetTop","pickerSize","previewSize"),_.Y("design:type",String),_.Y("design:paramtypes",[])],l4.prototype,"previewClipperStyle",null);_.T([_.ea("imageData"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],l4.prototype,"onImageDataChange",null);
_.T([_.a("cropCoordinatesSaved"),_.Y("design:type",String),_.Y("design:paramtypes",[])],l4.prototype,"pickerModeStyle",null);_.T([_.a("instruction.editInstruction.learnMore"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],l4.prototype,"learnMore",null);_.T([_.a("learnMore"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],l4.prototype,"learnMoreUrl",null);l4=_.T([_.$3({is:"yt-img-crop-picker",disableElementRegistration:!0})],l4);
_.r(l4,"yt-img-crop-picker",function(){if($AT===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-img-crop-picker--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_img_crop_picker.yt.img.crop.picker.css.js--\x3e<div id="left-container" class$="[[pickerModeStyle]] style-scope yt-img-crop-picker"><div id="picker-container" class="style-scope yt-img-crop-picker"><img id="image-in-picker-background" class$="[[imageOrientationStyle]] style-scope yt-img-crop-picker" width$="[[imageWidth]]" height$="[[imageHeight]]" style$="[[pickerBackgroundStyle]]" on-load="displayImage" tabindex="0" alt="[[altLabelForImage]]"><div id="overlay" hidden="[[cropCoordinatesSaved]]" on-mousemove="pickerMove" on-mousedown="pickerMoveStart" on-mouseup="pickerMoveComplete" on-mouseleave="pickerMoveComplete" class="style-scope yt-img-crop-picker"></div><div id="picker" style$="[[pickerDisplayStyle]]" class="style-scope yt-img-crop-picker"><img id="image-in-picker" class$="[[imageOrientationStyle]] style-scope yt-img-crop-picker" width$="[[imageWidth]]" height$="[[imageHeight]]" style$="[[imageInPickerStyle]]" alt=""></div></div><div id="preview-container" hidden="[[!cropCoordinatesSaved]]" class="style-scope yt-img-crop-picker"><yt-formatted-string class="header style-scope yt-img-crop-picker" text="[[instruction.previewInstruction.previewHeader]]"></yt-formatted-string><yt-formatted-string class="details style-scope yt-img-crop-picker" text="[[instruction.previewInstruction.previewDetails]]"></yt-formatted-string><div id="preview-clipper" class="style-scope yt-img-crop-picker"><img id="image-in-preview-clipper" class$="[[imageOrientationStyle]] style-scope yt-img-crop-picker" style$="[[previewClipperStyle]]" alt="[[getSimpleText(instruction.previewInstruction.previewHeader)]]"></div><yt-button-renderer id="edit-button" data="[[editButton]]" on-tap="saveCropCoordinates" class="style-scope yt-img-crop-picker"></yt-button-renderer></div></div><div id="right-container" class$="[[pickerModeStyle]] style-scope yt-img-crop-picker"><div id="edit-instruction" hidden="[[cropCoordinatesSaved]]" class="style-scope yt-img-crop-picker"><div class="instruction-container style-scope yt-img-crop-picker"><yt-formatted-string class="header style-scope yt-img-crop-picker" text="[[instruction.editInstruction.header]]"></yt-formatted-string><div class="details style-scope yt-img-crop-picker"><yt-formatted-string text="[[instruction.editInstruction.details]]" class="style-scope yt-img-crop-picker"></yt-formatted-string></div><div class="details style-scope yt-img-crop-picker" id="learnmore-text"><a class="yt-simple-endpoint style-scope yt-img-crop-picker" target="_blank" href$="[[learnMoreUrl]]"><span class="style-scope yt-img-crop-picker">[[getSimpleText(learnMore)]]</span><yt-icon id="open-in-new" icon="yt-icons:open_in_new" class="style-scope yt-img-crop-picker"></yt-icon></a></div></div><yt-button-renderer id="save-button" data="[[saveButton]]" on-tap="saveCropCoordinates" class="style-scope yt-img-crop-picker"></yt-button-renderer></div><div id="preview-instruction" hidden="[[!cropCoordinatesSaved]]" class="style-scope yt-img-crop-picker"><div class="instruction-container style-scope yt-img-crop-picker"><yt-formatted-string class="header style-scope yt-img-crop-picker" text="[[instruction.previewInstruction.fullImageHeader]]"></yt-formatted-string><yt-formatted-string class="details style-scope yt-img-crop-picker" text="[[instruction.previewInstruction.fullImageDetails]]"></yt-formatted-string></div><div id="full-image-container" class="style-scope yt-img-crop-picker"><img id="full-image-as-preview" class$="[[imageOrientationStyle]] style-scope yt-img-crop-picker" alt="[[getSimpleText(instruction.previewInstruction.fullImageHeader)]]"></div></div></div><iron-a11y-keys keys="up down left right" target="[[keyboardInterfaceTarget]]" on-keys-pressed="onArrowKeysDown" class="style-scope yt-img-crop-picker"></iron-a11y-keys>');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);var W=F.content,E=W.insertBefore;quM===void 0&&(quM=document.createElement("template"));var h=quM;E.call(W,h.content.cloneNode(!0),F.content.firstChild);$AT=F}F=$AT;return F},{mode:2});var nj=function(){var F=_.n.apply(this,arguments)||this;F.errorMessage="";F.hasPreview=!1;F.isBackstagePost=!1;F.dismissButtonOverrides={size:"XS"};return F};
_.k(nj,_.n);_.N=nj.prototype;_.N.configureRendererStamper=function(){return{selectionCancel:{id:"selection-cancel-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[dismissButtonOverrides]]"},params:{forceModernIconButton:!0}}}},previewCancel:{id:"preview-cancel-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[dismissButtonOverrides]]"},params:{forceModernIconButton:!0}}}},"data.selectButton":{id:"select",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.N.detached=function(){this.removeOverlay()};
_.N.setPreview=function(F){_.Z(this.hostElement).querySelector("#preview-picker").imageData=F;this.hasPreview=!0;_.hF(this.hostElement,"yt-backstage-image-select-preview")};
_.N.cancel=function(){this.errorMessage="";this.overlay&&this.overlay.cancel();this.hasPreview=!1;var F=_.Z(this.hostElement).querySelector("#dropzone");F.classList.remove("dragover");F.classList.remove("error");_.hF(this.hostElement,"yt-backstage-image-select-cancel")};
_.N.setupOverlay=function(){var F=this.imageUploadEndpoint;this.removeOverlay();if(F&&F.imageValidationInfo){var W=_.Z(this.hostElement).querySelector("#dropzone"),E=_.Z(this.hostElement).querySelector("#select");this.overlay=new Ki(F.uploadUrl,F.channelId,F.imageValidationInfo.maxFileSizeMb,F.imageValidationInfo.allowedMaxAspectRatio,W,E,!0);_.ce(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,!1,this);_.ce(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",
this.onImageError,!1,this);_.ce(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this);_.ce(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this);_.ce(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this)}};
_.N.removeOverlay=function(){this.overlay&&(_.LP(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this),_.LP(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this),_.LP(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",this.onImageError,!1,this),_.LP(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this),_.LP(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,
!1,this),this.overlay.dispose(),this.overlay=void 0)};
_.N.onDragOver=function(F){var W=_.Z(this.hostElement).querySelector("#dropzone");_.Wm(W,"dragover",F.value)};
_.N.onPreview=function(F){this.setPreview(F.value)};
_.N.onImageError=function(F){if(F.type==="yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"){var W;F=(W=this.data)==null?void 0:W.fileSizeError}else if(F.type==="yt.comments.ImageUploadOverlay.INVALID_EVENT"){var E;F=(E=this.data)==null?void 0:E.invalidError}else if(F.type==="yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT"){var h;F=(h=this.data)==null?void 0:h.invalidAspectRatioError}else return;this.errorMessage=_.Yr(F);_.Z(this.hostElement).querySelector("#dropzone").classList.add("error")};
_.N.onImageAlert=function(F){this.onImageError(F)};
_.N.uploadPromise=function(){var F=this,W=this.overlay&&this.overlay.uploadPromise();if(W)return W.catch(function(){throw Error(F.data?_.Yr(F.data.uploadFailureError):"");})};
_.Sn.Object.defineProperties(nj.prototype,{selectionCancel:{configurable:!0,enumerable:!0,get:function(){var F;return(F=this.data)==null?void 0:F.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var F;return(F=this.data)==null?void 0:F.cancelButton}},
icon:{configurable:!0,enumerable:!0,get:function(){var F,W;if((F=this.data)==null?0:(W=F.icon)==null?0:W.iconType)return _.Vd(this.data.icon.iconType)}}});
nj.prototype.setupOverlay=nj.prototype.setupOverlay;_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],nj.prototype,"rendererStamperBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],nj.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],nj.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Object)],nj.prototype,"imageUploadEndpoint",void 0);_.T([_.O(),_.Y("design:type",Object)],nj.prototype,"errorMessage",void 0);
_.T([_.O(),_.Y("design:type",Ki)],nj.prototype,"overlay",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],nj.prototype,"hasPreview",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],nj.prototype,"isBackstagePost",void 0);_.T([_.a("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],nj.prototype,"selectionCancel",null);_.T([_.a("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],nj.prototype,"previewCancel",null);
_.T([_.a("data.icon.iconType"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],nj.prototype,"icon",null);_.T([_.O(),_.Y("design:type",Object)],nj.prototype,"dismissButtonOverrides",void 0);_.T([_.ea("imageUploadEndpoint"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],nj.prototype,"setupOverlay",null);nj=_.T([_.y({is:"ytd-backstage-image-select-renderer",disableElementRegistration:!0})],nj);
_.r(nj,"ytd-backstage-image-select-renderer",function(){if(sfB!==void 0)return sfB;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-image-select-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dropzone" hidden="[[hasPreview]]" class="style-scope ytd-backstage-image-select-renderer">\n  <div id="selection-cancel-button" class="cancel style-scope ytd-backstage-image-select-renderer" on-tap="cancel"></div>\n  <yt-icon id="drop-icon" icon="[[icon]]" class="style-scope ytd-backstage-image-select-renderer"></yt-icon>\n  <span id="prompt" class="style-scope ytd-backstage-image-select-renderer">[[getSimpleString(data.dragLabel)]]</span>\n  <div id="select" class="style-scope ytd-backstage-image-select-renderer"></div>\n  <div class="messages style-scope ytd-backstage-image-select-renderer">\n    <span id="aspect-ratio-message" class="style-scope ytd-backstage-image-select-renderer">\n      [[getSimpleString(data.aspectRatioRequirement)]]\n    </span>\n    <span id="license-text" class="style-scope ytd-backstage-image-select-renderer">[[getSimpleString(data.licenseText)]]</span>\n    <span id="error-message" hidden="[[!errorMessage]]" class="style-scope ytd-backstage-image-select-renderer">[[errorMessage]]</span>\n  </div>\n</div>\n<div id="image-preview" hidden="[[!hasPreview]]" class="style-scope ytd-backstage-image-select-renderer">\n  <div id="preview-cancel-button" class="cancel style-scope ytd-backstage-image-select-renderer" on-tap="cancel"></div>\n  <yt-img-crop-picker id="preview-picker" instruction="[[data.imagePreviewSelectMetadata]]" reposition-optional="true" class="style-scope ytd-backstage-image-select-renderer">\n  </yt-img-crop-picker>\n</div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return sfB=F},{mode:1});var Z6M;var XV_;var oz=function(){var F=_.n.apply(this,arguments)||this;F.selected=!1;return F};
_.k(oz,_.n);_.N=oz.prototype;_.N.computeSelected=function(F){return F==null?void 0:F.selected};
_.N.computeTransform=function(F,W,E){var h,d,V=(d=(h=this.imageContainer)==null?void 0:h.getBoundingClientRect())!=null?d:{width:0,height:0};h=Math.max(V.width/W,V.height/E);E=E*h*F.top;return"translateX("+this.getSignedPosition(W*h*F.left,"X","-")+") translateY("+this.getSignedPosition(E,"Y","-")+")"};
_.N.getSignedPosition=function(F,W,E){return W==="X"&&_.b0("HTML_DIR")==="rtl"?E==="-"?F+"px":F*-1+"px":E==="-"?F*-1+"px":F+"px"};
_.N.onClick=function(){var F;_.hF(this.hostElement,"ytb-backstage-multi-image-thumbnail-render-click",(F=this.data)==null?void 0:F.image)};
_.N.onKeyPress=function(F){if(F.keyCode===13)this.onClick()};
_.Sn.Object.defineProperties(oz.prototype,{thumbnailUrl:{configurable:!0,enumerable:!0,get:function(){var F,W;return((F=this.data)==null?void 0:(W=F.image)==null?void 0:W.localImageSrc)||void 0}},
thumbnailStyle:{configurable:!0,enumerable:!0,get:function(){var F;if((F=this.data)!=null&&F.image){var W;F=(W=this.data)==null?void 0:W.image;return F.previewCoordinates.top!==0||F.previewCoordinates.left!==0?(W=this.computeTransform(F.previewCoordinates,F.naturalWidth,F.naturalHeight),F.naturalHeight>=F.naturalWidth?"width:inherit;transform:"+W+";":"height:inherit;transform:"+W+";"):F.naturalHeight>=F.naturalWidth?"width:inherit;":"height:inherit;"}}}});
oz.prototype.onKeyPress=oz.prototype.onKeyPress;_.T([_.gQ(".image-container"),_.Y("design:type",HTMLElement)],oz.prototype,"imageContainer",void 0);_.T([_.O(),_.Y("design:type",Object)],oz.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0,computed:"computeSelected(data)"}),_.Y("design:type",Object)],oz.prototype,"selected",void 0);_.T([_.a("data.image"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],oz.prototype,"thumbnailUrl",null);
_.T([_.a("data.image","data.image.previewCoordinates"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],oz.prototype,"thumbnailStyle",null);_.T([_.R4("keypress"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],oz.prototype,"onKeyPress",null);oz=_.T([_.y({is:"ytd-backstage-multi-image-thumbnail-renderer",disableElementRegistration:!0})],oz);
_.r(oz,"ytd-backstage-multi-image-thumbnail-renderer",function(){if(XV_!==void 0)return XV_;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-multi-image-thumbnail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-backstage-multi-image-thumbnail-renderer">\n  <div class="image-container style-scope ytd-backstage-multi-image-thumbnail-renderer" role="button" tabindex="0" on-click="onClick">\n    <img class="thumbnail-image style-scope ytd-backstage-multi-image-thumbnail-renderer" style$="[[thumbnailStyle]]" src$="[[thumbnailUrl]]" alt="">\n  </div>\n</div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return XV_=F},{mode:2});var Gp=function(F,W,E){E=E===void 0?!1:E;_.qo.call(this);var h=this;this.dropZoneOverlay=new IH(F);this.selectOverlay=E?new cP(W,"multiple_file",["image/*"]):new cP(W,"single_file",["image/*"]);this.handler=new _.hR(this);_.gl(this,this.handler);this.handler.listen(this.dropZoneOverlay,"f",this.onChange).listen(W,"click",function(){h.selectOverlay.click()}).listen(this.selectOverlay,"j",this.onChange)};
_.k(Gp,_.qo);Gp.prototype.onChange=function(F){var W;(W=F.files)!=null&&W.length&&this.dispatchEvent(new CustomEvent("yt.comments.ImagePicker.select",{detail:F.files}))};var Yh=function(){var F=_.n.apply(this,arguments)||this;F.addImageErrorMessage="";F.errorMessage="";F.images=[];F.selectedImageIndex=0;F.modern=_.c("web_modern_buttons");F.maxNumImagesPerPost=_.dV("max_num_images_per_post_web_ui");F.JSC$13467_imageId=0;return F};
_.k(Yh,_.n);_.N=Yh.prototype;_.N.observeAddImageError=function(){this.addImageErrorMessage!==""&&_.hF(this.hostElement,"yt-backstage-add-image-error",this.addImageErrorMessage)};
_.N.observeDragToReorder=function(){var F=this;if(this.showImagesPreview){var W,E=Yc_(_.d_.getInstance(),(W=this.data)==null?void 0:W.dragToReorderTooltip);_.P0.addLowPriorityJob(function(){_.Rj(F.hostElement,E,F.thumbnailDragDropArea)})}};
_.N.configureRendererStamper=function(){return{selectionCancel:{id:"selection-cancel-button",mapping:{buttonRenderer:"ytd-button-renderer"}},previewCancel:{id:"preview-cancel-button",mapping:{buttonRenderer:"ytd-button-renderer"}},dataForAddImageButton:{id:"add-image-button",mapping:{buttonRenderer:"ytd-button-renderer"}},thumbnailRenderers:{id:"thumbnail-drag-drop-area",mapping:{renderer:"ytd-backstage-multi-image-thumbnail-renderer"},events:!0,reuseComponents:!0,stamperStableList:!0}}};
_.N.computeThumbnail=function(F){return(F==null?void 0:F.localImageSrc)||void 0};
_.N.onRendererstamperFinished=function(){_.cOe(this.ytReorderableBehavior,_.Z(this.hostElement).querySelector("#thumbnail-drag-drop-area"),_.Z(this.hostElement).querySelector("#thumbnail-drag-drop-area"))};
_.N.handleDrop=function(F){var W=F.currDragItem;if(W!=null&&W.data){F=this.images[this.selectedImageIndex];var E=W.data.image,h=this.images.indexOf(E)||0;W=_.TR(W.parentNode.children,W);this.images.splice(h,1);this.images.splice(W,0,E);this.images=[].concat(_.x9(this.images));this.selectedImageIndex=this.images.indexOf(F)}};
_.N.setUpImagePicker=function(){var F=this.imageUploadEndpoint;F&&F.imageValidationInfo&&(this.uploadManager=new fj(F.uploadUrl,F.channelId),this.initialPicker||(this.initialPicker=new Gp(this.dropzone,this.selectLink,!0),_.ce(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this)),this.addImagePicker||(this.addImagePicker=new Gp(this.addImageButtonContainer,this.addImageSelectButton),_.ce(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this)),
_.ce(this.JSC$13467_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.repositionImage,!1,this),_.ce(this.JSC$13467_imagePreviewContainer,"ytd-backstage-image-preview-delete",this.deleteImage,!1,this),_.ce(_.Z(this.hostElement).querySelector("#thumbnail-drag-drop-area"),"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this))};
_.N.detached=function(){this.initialPicker&&(_.LP(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this),this.initialPicker.dispose(),this.initialPicker=void 0);this.addImagePicker&&(_.LP(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this),this.addImagePicker.dispose(),this.addImagePicker=void 0)};
_.N.onInitialSelectImages=function(F){var W=this;return _.e(function(E){return _.Q(E,W.onSelectImages(F,!1),0)})};
_.N.onAddImage=function(F){var W=this;return _.e(function(E){return _.Q(E,W.onSelectImages(F,!0),0)})};
_.N.onSelectImages=function(F,W){var E=this,h,d,V,R,M,g,t,C,B,I,x,A,X,P,b,l,w,G,hr,p;return _.e(function(UY){switch(UY.nextAddress){case 1:W?E.addImageErrorMessage="":(E.images=[],E.errorMessage="");h=F.detail;d=E.validateImages([].concat(_.x9(h)));if(d!=="")return W?E.addImageErrorMessage=d:E.errorMessage=d,UY.return();V=[].concat(_.x9(h)).map(function(xW){return(new pi(E.maxAspectRatio,!1,!0)).transform(xW)});
return _.Q(UY,Promise.allSettled(V),2);case 2:R=UY.yieldResult,M=_.U(R.entries()),g=M.next();case 3:if(g.done){UY.jumpTo(5);break}t=g.value;C=_.U(t);B=C.next().value;I=C.next().value;x=B;A=I;if(A.status!=="fulfilled"){b=P=X=void 0;W?E.addImageErrorMessage=_.Yr((X=E.data)==null?void 0:X.invalidError):E.errorMessage=E.errorMessage===""?_.Yr((P=E.data)==null?void 0:P.invalidError):_.Yr((b=E.data)==null?void 0:b.multiFileError);UY.jumpTo(4);break}l=A.value;l.cropped&&_.hF(E.hostElement,"yt-backstage-multi-image-cropped");
if(l.invalidAspectRatio){hr=G=w=void 0;W?E.addImageErrorMessage=_.Yr((w=E.data)==null?void 0:w.invalidAspectRatioError):E.errorMessage=E.errorMessage===""?_.Yr((G=E.data)==null?void 0:G.invalidAspectRatioError):_.Yr((hr=E.data)==null?void 0:hr.multiFileError);UY.jumpTo(4);break}return _.Q(UY,liG(E.JSC$13467_imageId,F.detail[x],l.transformedData),8);case 8:p=UY.yieldResult,E.images.push(p),E.JSC$13467_imageId++;case 4:g=M.next();UY.jumpTo(3);break;case 5:if(E.errorMessage!==""||E.addImageErrorMessage!==
"")return UY.return();W?Bic(E.uploadManager,[E.images[E.images.length-1]]):Bic(E.uploadManager,E.images);E.images=[].concat(_.x9(E.images));E.selectedImageIndex=W?Math.max(E.images.length-1,0):0;_.hF(E.hostElement,"yt-backstage-multi-image-select");_.gG(UY)}})};
_.N.onThumbnailClick=function(F){if(F=F.event_.detail)this.selectedImageIndex=this.images.indexOf(F)};
_.N.validateImages=function(F){if(F.length>this.maxNumImagesPerPost){var W;return _.Yr((W=this.data)==null?void 0:W.multiImageExceedMaxImageCountError)}var E=1048576*this.maxFileSizeMb;F=F.filter(function(V){return V.size>E}).length;
if(F===0)return"";var h,d;F=F>1?(h=this.data)==null?void 0:h.multiFileError:(d=this.data)==null?void 0:d.fileSizeError;return _.Yr(F)};
_.N.deleteImage=function(){this.uploadManager.cancel(this.images[this.selectedImageIndex].id);this.images.splice(this.selectedImageIndex,1);this.images=[].concat(_.x9(this.images));this.selectedImageIndex=0};
_.N.repositionImage=function(F){this.images[this.selectedImageIndex].previewCoordinates=F.event_.detail;this.images=[].concat(_.x9(this.images))};
_.N.getAllUploadStatuses=function(){var F=this,W,E,h,d;return _.e(function(V){if(V.nextAddress==1)return _.Q(V,F.uploadManager.getAllUploadStatuses(),2);W=V.yieldResult;E=_.U(W);for(h=E.next();!h.done;h=E.next())if(d=h.value,d.encryptedBlobId===void 0)return V.return(vnu(F.uploadManager));return V.return(W)})};
_.N.hasImages=function(){return this.images.length>0};
_.N.cancel=function(){for(var F=this.uploadManager,W=_.U(F.imagesUploadData),E=W.next();!E.done;E=W.next())F.cancel(E.value.image.id);this.addImageErrorMessage=this.errorMessage="";this.images=[];_.hF(this.hostElement,"yt-backstage-multi-image-cancel")};
_.Sn.Object.defineProperties(Yh.prototype,{maxAspectRatio:{configurable:!0,enumerable:!0,get:function(){var F,W;return((F=this.imageUploadEndpoint)==null?void 0:(W=F.imageValidationInfo)==null?void 0:W.allowedMaxAspectRatio)||0}},
maxFileSizeMb:{configurable:!0,enumerable:!0,get:function(){var F,W;return((F=this.imageUploadEndpoint)==null?void 0:(W=F.imageValidationInfo)==null?void 0:W.maxFileSizeMb)||0}},
dropIcon:{configurable:!0,enumerable:!0,get:function(){var F,W;if((F=this.data)==null?0:(W=F.icon)==null?0:W.iconType)return _.Vd(this.data.icon.iconType)}},
selectionCancel:{configurable:!0,enumerable:!0,get:function(){var F;return(F=this.data)==null?void 0:F.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var F;return(F=this.data)==null?void 0:F.cancelButton}},
dataForAddImageButton:{configurable:!0,enumerable:!0,get:function(){var F;return(F=this.data)==null?void 0:F.addImageButton}},
dropzoneClass:{configurable:!0,enumerable:!0,get:function(){return this.errorMessage===""?"":"error"}},
showImagesPreview:{configurable:!0,enumerable:!0,get:function(){return this.images.length>0&&this.errorMessage===""}},
containMaxImages:{configurable:!0,enumerable:!0,get:function(){return this.images.length>=this.maxNumImagesPerPost}},
selectedImageData:{configurable:!0,enumerable:!0,get:function(){return this.images[this.selectedImageIndex]||void 0}},
thumbnailRenderers:{configurable:!0,enumerable:!0,get:function(){var F=this;return(this.images||[]).map(function(W,E){return{renderer:{image:W,selected:E===F.selectedImageIndex}}})}}});
Yh.prototype.setUpImagePicker=Yh.prototype.setUpImagePicker;Yh.prototype.onRendererstamperFinished=Yh.prototype.onRendererstamperFinished;Yh.prototype.observeDragToReorder=Yh.prototype.observeDragToReorder;Yh.prototype.observeAddImageError=Yh.prototype.observeAddImageError;_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],Yh.prototype,"rendererStamperBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Yh.prototype,"ytRendererBehavior",void 0);
_.T([_.J(_.Dh_),_.Y("design:type",Object)],Yh.prototype,"ytReorderableBehavior",void 0);_.T([_.gQ("#dropzone"),_.Y("design:type",HTMLElement)],Yh.prototype,"dropzone",void 0);_.T([_.gQ("#select-link"),_.Y("design:type",HTMLElement)],Yh.prototype,"selectLink",void 0);_.T([_.gQ("#thumbnail-drag-drop-area"),_.Y("design:type",HTMLElement)],Yh.prototype,"thumbnailDragDropArea",void 0);_.T([_.gQ("#add-image-button-container"),_.Y("design:type",HTMLElement)],Yh.prototype,"addImageButtonContainer",void 0);
_.T([_.gQ("#add-image-button"),_.Y("design:type",HTMLElement)],Yh.prototype,"addImageSelectButton",void 0);_.T([_.gQ("#image-preview-container"),_.Y("design:type",Object)],Yh.prototype,"JSC$13467_imagePreviewContainer",void 0);_.T([_.O(),_.Y("design:type",Object)],Yh.prototype,"addImageErrorMessage",void 0);_.T([_.O(),_.Y("design:type",Object)],Yh.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Object)],Yh.prototype,"errorMessage",void 0);
_.T([_.O(),_.Y("design:type",Object)],Yh.prototype,"imageUploadEndpoint",void 0);_.T([_.O(),_.Y("design:type",Array)],Yh.prototype,"images",void 0);_.T([_.O(),_.Y("design:type",Gp)],Yh.prototype,"initialPicker",void 0);_.T([_.O(),_.Y("design:type",Gp)],Yh.prototype,"addImagePicker",void 0);_.T([_.O(),_.Y("design:type",fj)],Yh.prototype,"uploadManager",void 0);_.T([_.O(),_.Y("design:type",Object)],Yh.prototype,"selectedImageIndex",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],Yh.prototype,"modern",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],Yh.prototype,"maxNumImagesPerPost",void 0);_.T([_.a("imageUploadEndpoint"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],Yh.prototype,"maxAspectRatio",null);_.T([_.a("imageUploadEndpoint"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],Yh.prototype,"maxFileSizeMb",null);
_.T([_.a("data.icon.iconType"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Yh.prototype,"dropIcon",null);_.T([_.a("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Yh.prototype,"selectionCancel",null);_.T([_.a("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Yh.prototype,"previewCancel",null);_.T([_.a("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Yh.prototype,"dataForAddImageButton",null);
_.T([_.a("errorMessage"),_.Y("design:type",String),_.Y("design:paramtypes",[])],Yh.prototype,"dropzoneClass",null);_.T([_.a("images"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Yh.prototype,"showImagesPreview",null);_.T([_.a("images"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Yh.prototype,"containMaxImages",null);_.T([_.ea("addImageErrorMessage"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Yh.prototype,"observeAddImageError",null);
_.T([_.ea("showImagesPreview"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Yh.prototype,"observeDragToReorder",null);_.T([_.a("images","selectedImageIndex"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Yh.prototype,"selectedImageData",null);_.T([_.a("images","selectedImageIndex"),_.Y("design:type",Array),_.Y("design:paramtypes",[])],Yh.prototype,"thumbnailRenderers",null);
_.T([_.R4("yt-rendererstamper-finished"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Yh.prototype,"onRendererstamperFinished",null);_.T([_.ea("imageUploadEndpoint"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Yh.prototype,"setUpImagePicker",null);Yh=_.T([_.y({is:"ytd-backstage-multi-image-select-renderer",disableElementRegistration:!0})],Yh);
_.r(Yh,"ytd-backstage-multi-image-select-renderer",function(){if(Z6M!==void 0)return Z6M;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-multi-image-select-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="dropzone" class$="[[dropzoneClass]] style-scope ytd-backstage-multi-image-select-renderer" hidden="[[showImagesPreview]]">\n  <div id="selection-cancel-button" class="cancel style-scope ytd-backstage-multi-image-select-renderer" on-click="cancel"></div>\n  <div id="drop-icon-container" class="style-scope ytd-backstage-multi-image-select-renderer">\n    <yt-icon id="drop-icon" icon="[[dropIcon]]" class="style-scope ytd-backstage-multi-image-select-renderer"></yt-icon>\n  </div>\n  <span id="prompt" class="style-scope ytd-backstage-multi-image-select-renderer">[[getSimpleString(data.dragLabel)]]</span>\n  <a id="select-link" class="style-scope ytd-backstage-multi-image-select-renderer">\n     [[getSimpleString(data.selectButton)]]\n  </a>\n  <div class="messages style-scope ytd-backstage-multi-image-select-renderer">\n    <span id="aspect-ratio-message" class="style-scope ytd-backstage-multi-image-select-renderer">\n       [[getSimpleString(data.aspectRatioRequirement)]]\n    </span>\n    <span id="license-text" class="style-scope ytd-backstage-multi-image-select-renderer">[[getSimpleString(data.licenseText)]]</span>\n    <span id="error-message" hidden="[[!errorMessage]]" class="style-scope ytd-backstage-multi-image-select-renderer">[[errorMessage]]</span>\n  </div>\n</div>\n\n\n<div id="multi-image-container" hidden="[[!showImagesPreview]]" class="style-scope ytd-backstage-multi-image-select-renderer">\n  <div id="preview-cancel-button" class="cancel style-scope ytd-backstage-multi-image-select-renderer" on-click="cancel"></div>\n  <div id="thumbnail-images-container" class="style-scope ytd-backstage-multi-image-select-renderer">\n    <div id="thumbnail-drag-drop-area" class="style-scope ytd-backstage-multi-image-select-renderer"></div>\n    <div id="add-image-button-container" hidden="[[containMaxImages]]" class="style-scope ytd-backstage-multi-image-select-renderer">\n       <div id="add-image-button" class="style-scope ytd-backstage-multi-image-select-renderer"></div>\n    </div>\n  </div>\n  <div id="preview" class="style-scope ytd-backstage-multi-image-select-renderer">\n    <ytd-backstage-image-preview-renderer id="image-preview-container" image-data="[[selectedImageData]]" instruction="[[data.imagePreviewSelectMetadata]]" class="style-scope ytd-backstage-multi-image-select-renderer">\n    </ytd-backstage-image-preview-renderer>\n  </div>\n</div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return Z6M=F},{mode:1});var H6T;var PXe;var J6c;var wD=function(){var F=_.n.apply(this,arguments)||this;F.boundCaptureFocus=function(W){F.onCaptureFocus(W)};
return F};
_.k(wD,_.n);_.N=wD.prototype;_.N.attached=function(){document.addEventListener("focus",this.boundCaptureFocus,!0)};
_.N.detached=function(){document.removeEventListener("focus",this.boundCaptureFocus)};
_.N.onCaptureFocus=function(F){_.TB(F).indexOf(this.hostElement)!==-1&&this.item.focus()};
_.N.getIconType=function(F){return F?"yt-icons:"+F.toLowerCase():null};
_.N.onSelect=function(){var F;if((F=this.data)==null?0:F.onSelectCommand)if(_.c("refresh_upon_dismiss_channel_creation_from_playlists"))this.ytComponentBehavior.resolveCommand(this.data.onSelectCommand);else{var W;((W=_.D(this.data.onSelectCommand.commandMetadata,_.m1))==null?0:W.url)?_.hF(this.hostElement,"yt-navigate",{endpoint:this.data.onSelectCommand}):_.WZ().resolve(_.EJ).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})}};
_.Sn.Object.defineProperties(wD.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data?_.Yr(this.data.label):""}},
value:{configurable:!0,enumerable:!0,get:function(){return this.data?typeof this.data.stringValue==="string"?this.data.stringValue:typeof this.data.int32Value==="number"?this.data.int32Value:null:null}}});
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],wD.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],wD.prototype,"ytComponentBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],wD.prototype,"data",void 0);_.T([_.gQ("#item"),_.Y("design:type",HTMLElement)],wD.prototype,"item",void 0);_.T([_.a("data.label"),_.Y("design:type",String),_.Y("design:paramtypes",[])],wD.prototype,"label",null);
_.T([_.a("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],wD.prototype,"value",null);wD=_.T([_.y({is:"ytd-privacy-dropdown-item-renderer",disableElementRegistration:!0})],wD);
_.r(wD,"ytd-privacy-dropdown-item-renderer",function(){if(J6c!==void 0)return J6c;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-privacy-dropdown-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-item id="item" on-click="onSelect" class="style-scope ytd-privacy-dropdown-item-renderer">\n  <yt-icon id="dropdown-icon" hidden="[[!data.icon.iconType]]" icon="[[getIconType(data.icon.iconType)]]" class="style-scope ytd-privacy-dropdown-item-renderer">\n  </yt-icon>\n  <tp-yt-paper-item-body two-line="" class="style-scope ytd-privacy-dropdown-item-renderer">\n    <yt-formatted-string id="label" text="[[data.label]]" class="style-scope ytd-privacy-dropdown-item-renderer"></yt-formatted-string>\n    <yt-formatted-string id="description" text="[[data.description]]" class="style-scope ytd-privacy-dropdown-item-renderer"></yt-formatted-string>\n  </tp-yt-paper-item-body>\n</tp-yt-paper-item>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return J6c=F},{mode:1});var u4=function(){var F=_.n.apply(this,arguments)||this;F.value="";F.label="";F.disabled=!1;return F};
_.k(u4,_.n);_.N=u4.prototype;_.N.configureRendererStamper=function(){return{"data.entries":{id:"entries",mapping:{dropdownItemRenderer:"ytd-dropdown-item-renderer",privacyDropdownItemRenderer:"ytd-privacy-dropdown-item-renderer",navigationDropdownItemRenderer:"ytd-navigation-dropdown-item-renderer"}}}};
_.N.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getInitiallySelectedItem());this.setInitialLabel()};
_.N.dataChanged=function(){this.reset()};
_.N.valueChanged=function(){var F;if(this.value&&(F=this.data)!=null&&F.entries){F=_.U(this.data.entries);for(var W=F.next();!W.done;W=F.next())if((W=this.getRendererForEntry(W.value))&&this.getItemRendererValue(W)===this.value){this.label=this.ytComponentBehavior.getSimpleString(W.label);break}}};
_.N.setInitialLabel=function(){if(this.data&&this.data.entries)for(var F=_.U(this.data.entries),W=F.next();!W.done;W=F.next())if(W=this.getRendererForEntry(W.value)){if(W.isSelected){this.label=this.ytComponentBehavior.getSimpleString(W.label);break}this.data.label&&(this.label=this.data.label)}};
_.N.getInitiallySelectedItem=function(){if(!this.data||!this.data.entries)return-1;for(var F=_.U(this.data.entries),W=F.next();!W.done;W=F.next()){W=this.getRendererForEntry(W.value);var E=void 0;if((E=W)==null?0:E.isSelected)return this.getItemRendererValue(W)||-1}return-1};
_.N.getItemRendererValue=function(F){return"stringValue"in F||"int32Value"in F?F.stringValue||F.int32Value||null:null};
_.N.getRendererForEntry=function(F){return F.dropdownItemRenderer||F.privacyDropdownItemRenderer||F.navigationDropdownItemRenderer||null};
_.N.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.yR("value-changed",this.value))};
_.N.updateValueFromBinding=function(F){this.value=F.detail.value};
u4.prototype.valueChangedForBinding=u4.prototype.valueChangedForBinding;u4.prototype.valueChanged=u4.prototype.valueChanged;u4.prototype.dataChanged=u4.prototype.dataChanged;_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],u4.prototype,"ytComponentBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],u4.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],u4.prototype,"ytRendererstamperBehavior",void 0);
_.T([_.O(),_.Y("design:type",Object)],u4.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Object)],u4.prototype,"value",void 0);_.T([_.O(),_.Y("design:type",Object)],u4.prototype,"label",void 0);_.T([_.gQ("#entries"),_.Y("design:type",Object)],u4.prototype,"entries",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],u4.prototype,"disabled",void 0);_.T([_.Cz("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],u4.prototype,"dataChanged",null);
_.T([_.Cz("value"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],u4.prototype,"valueChanged",null);_.T([_.ea("value"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],u4.prototype,"valueChangedForBinding",null);u4=_.T([_.y({disableElementRegistration:!0,is:"ytd-flat-dropdown-renderer"})],u4);
_.r(u4,"ytd-flat-dropdown-renderer",function(){if(PXe!==void 0)return PXe;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flat-dropdown-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-menu-button disabled="[[disabled]]" dynamic-align="" horizontal-align="left" class="style-scope ytd-flat-dropdown-renderer">\n  <tp-yt-paper-button id="label" class="dropdown-trigger style-scope ytd-flat-dropdown-renderer" slot="dropdown-trigger" aria-label$="[[label]]">\n    <div id="label-text" class="style-scope ytd-flat-dropdown-renderer">[[label]]</div>\n    <yt-icon id="label-icon" icon="yt-icons:arrow_drop_down" class="style-scope ytd-flat-dropdown-renderer">\n    </yt-icon>\n  </tp-yt-paper-button>\n  <tp-yt-paper-listbox id="entries" class="dropdown-content style-scope ytd-flat-dropdown-renderer" slot="dropdown-content" attr-for-selected="value" selected="[[value]]" on-selected-changed="updateValueFromBinding">\n  </tp-yt-paper-listbox>\n</tp-yt-paper-menu-button>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return PXe=F},{mode:1});var awX;var Sy=function(){var F=_.n.apply(this,arguments)||this;F.quizOptions=[];F.explanationPlaceholderText="";F.optionPlaceholderText="";F.correctAnswerIndex=-1;F.isMarkAnswerTooltipShown=!1;F.timer=0;return F};
_.k(Sy,_.n);_.N=Sy.prototype;_.N.dataChanged=function(){this.optionPlaceholderText=_.Yr(this.editorInfo.optionPlaceholderText);this.explanationPlaceholderText=_.Yr(this.editorInfo.explanationPlaceholderText);this.quizOptions.length===0&&(this.quizOptions=this.createQuizOptions(this.editorInfo))};
_.N.onMarkCorrectAnswer=function(F){var W,E=((W=this.quizOptions[this.correctAnswerIndex])==null?void 0:W.explanationText)||"";this.correctAnswerIndex>=0&&(this.quizOptions[this.correctAnswerIndex]=Object.assign({},this.quizOptions[this.correctAnswerIndex],{isCorrect:!1,explanationText:""}));this.quizOptions[F.model.index]=Object.assign({},this.quizOptions[F.model.index],{explanationText:E,isCorrect:!0});this.correctAnswerIndex=F.model.index;this.quizOptions=[].concat(_.x9(this.quizOptions))};
_.N.updatePlaceholderTexts=function(){for(var F=!1,W=[],E=0;E<this.quizOptions.length;E++){var h=this.optionPlaceholderText+" "+(E+1),d=void 0;((d=this.quizOptions[E])==null?void 0:d.placeholderText)!==h?(F=!0,W.push(Object.assign({},this.quizOptions[E],{placeholderText:h}))):W.push(this.quizOptions[E])}F&&(this.quizOptions=W);this.isValid()?_.hF(this.hostElement,"yt-commentbox-post-enable"):_.hF(this.hostElement,"yt-commentbox-post-disable")};
_.N.getSimpleString=function(F){return _.Yr(F)};
_.N.createQuizOptions=function(F){var W=[],E;F=(E=F==null?void 0:F.minQuizOptions)!=null?E:0;for(E=0;E<F;E++)W.push(this.createQuizOption());return W};
_.N.onAddQuizOption=function(){this.isAllowedToAddOption&&(this.quizOptions=[].concat(_.x9(this.quizOptions),[this.createQuizOption()]))};
_.N.onInput=function(){this.quizOptions=[].concat(_.x9(this.quizOptions))};
_.N.onExplanationInput=function(){_.hF(this.hostElement,"yt-quiz-attachment-explanation-update")};
_.N.onRemoveQuizOption=function(F){this.quizOptions.splice(F.model.index,1);F.model.index<this.correctAnswerIndex?--this.correctAnswerIndex:F.model.index===this.correctAnswerIndex&&(this.correctAnswerIndex=-1);this.quizOptions=[].concat(_.x9(this.quizOptions));this.quizOptions.length===0&&_.hF(this.hostElement,"yt-quiz-attachment-dismiss")};
_.N.updateHintRenderer=function(){var F=this;clearTimeout(this.timer);this.timer=setTimeout(function(){F.maybeDisplayMarkAnswerEduToolTip()},4E3)};
_.N.isValid=function(){if(!this.editorInfo||this.quizOptions.length<Number(this.editorInfo.minQuizOptions)||this.quizOptions.length>Number(this.editorInfo.maxQuizOptions))return!1;for(var F=0,W=0,E=_.U(this.quizOptions),h=E.next();!h.done;h=E.next()){h=h.value;var d=void 0;if(((d=h.optionText)==null?void 0:d.trim())!==""||h.isCorrect){h.isCorrect&&W++;d=void 0;if(this.hasCustomOptionText&&((d=h.optionText)==null?void 0:d.trim().length)<Number(this.editorInfo.minQuizOptionChars))return!1;F++}}return F>=
Number(this.editorInfo.minQuizOptions)&&W===1};
_.N.getPostCreateOptions=function(){for(var F=[],W=_.U(this.quizOptions),E=W.next();!E.done;E=W.next()){E=E.value;var h=void 0;((h=E.optionText)==null?void 0:h.trim())!==""&&F.push({pollOption:{text:E.optionText,explanation:E.explanationText},isCorrect:E.isCorrect})}return F};
_.N.getExplanationText=function(){var F;return((F=this.quizOptions[this.correctAnswerIndex])==null?void 0:F.explanationText)||""};
_.N.maybeDisplayMarkAnswerEduToolTip=function(){var F,W,E,h,d,V,R;this.shouldShowMarkAnswerTooltip()&&((F=this.editorInfo)==null?0:(W=F.markAnswerButton)==null?0:(E=W.buttonRenderer)==null?0:(h=E.hint)==null?0:(d=h.hintRenderer)==null?0:(V=d.content)==null?0:(R=V.bubbleHintRenderer)==null?0:R.text)&&(_.d_.getInstance(),F=NX(this.editorInfo.markAnswerButton.buttonRenderer.hint.hintRenderer.content.bubbleHintRenderer.text,void 0,"OPEN_POPUP_POSITION_TOP",void 0,"mark-answer-button-edu-displayed-impression"),
this.isMarkAnswerTooltipShown=!0,(F==null?void 0:F.length)>0&&this.optionSelectors&&_.ei(F[0],this.optionSelectors[0]))};
_.N.shouldShowMarkAnswerTooltip=function(){if(this.isMarkAnswerTooltipShown||this.quizOptions.length<=1)return!1;for(var F=0,W=_.U(this.quizOptions),E=W.next();!E.done;E=W.next()){E=E.value;var h=void 0;((h=E.optionText)==null?void 0:h.trim())!==""&&F++;if(E.isCorrect)return!1}return F<2?!1:!0};
_.N.resetQuizOptions=function(){this.quizOptions=this.createQuizOptions(this.editorInfo);this.isMarkAnswerTooltipShown=!1};
_.N.createQuizOption=function(){return{optionText:"",placeholderText:"",explanationText:"",isCorrect:!1}};
_.N.updateOptionTextFromBinding=function(F){if(F.target){var W=Array.from(_.Z(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.quiz-option-input-input")).indexOf(F.target);if(W>=0){var E;this.quizOptions[W].optionText=(E=F.detail.value)!=null?E:""}}};
_.Sn.Object.defineProperties(Sy.prototype,{addAnswerButton:{configurable:!0,enumerable:!0,get:function(){var F,W,E=(F=this.editorInfo)==null?void 0:(W=F.addOptionButton)==null?void 0:W.buttonRenderer;E&&(E.style="STYLE_SUGGESTIVE",E.size="SIZE_SMALL",E.isDisabled=!this.isAllowedToAddOption);return(E==null?0:E.text)?E:void 0}},
isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var F,W;return this.quizOptions.length<((W=(F=this.editorInfo)==null?void 0:F.maxQuizOptions)!=null?W:0)}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.quizOptions.some(function(F){var W;return(W=F.optionText)==null?void 0:W.trim()})}}});
Sy.prototype.updatePlaceholderTexts=Sy.prototype.updatePlaceholderTexts;Sy.prototype.dataChanged=Sy.prototype.dataChanged;_.T([_.O(),_.Y("design:type",Object)],Sy.prototype,"editorInfo",void 0);_.T([_.O(),_.Y("design:type",Array)],Sy.prototype,"quizOptions",void 0);_.T([_.O(),_.Y("design:type",Object)],Sy.prototype,"explanationPlaceholderText",void 0);_.T([_.Q9(".option-selector-button"),_.Y("design:type",Array)],Sy.prototype,"optionSelectors",void 0);
_.T([_.Cz("editorInfo"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Sy.prototype,"dataChanged",null);_.T([_.a("editorInfo","isAllowedToAddOption","quizOptions"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Sy.prototype,"addAnswerButton",null);_.T([_.a("editorInfo","quizOptions"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Sy.prototype,"isAllowedToAddOption",null);
_.T([_.Cz("quizOptions"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Sy.prototype,"updatePlaceholderTexts",null);_.T([_.a("quizOptions"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Sy.prototype,"hasCustomOptionText",null);Sy=_.T([_.y({is:"ytd-backstage-quiz-editor-renderer",disableElementRegistration:!0})],Sy);
_.r(Sy,"ytd-backstage-quiz-editor-renderer",function(){if(awX!==void 0)return awX;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-quiz-editor-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="style-scope ytd-backstage-quiz-editor-renderer">\n  <template is="dom-repeat" items="[[quizOptions]]" index="quizAnswerIndex" class="style-scope ytd-backstage-quiz-editor-renderer">\n    <div class="quiz-option style-scope ytd-backstage-quiz-editor-renderer">\n      <div class="quiz-option-container style-scope ytd-backstage-quiz-editor-renderer">\n        <div class="quiz-thumbnail-container style-scope ytd-backstage-quiz-editor-renderer">\n          <div class="quiz-select-container style-scope ytd-backstage-quiz-editor-renderer">\n            <yt-icon-button class="option-selector-button style-scope ytd-backstage-quiz-editor-renderer" aria-label="[[editorInfo.markAnswerButton.buttonRenderer.accessibilityData.accessibilityData.label]]" on-click="onMarkCorrectAnswer">\n              <yt-icon class="option-selector style-scope ytd-backstage-quiz-editor-renderer" hidden="[[item.isCorrect]]" icon="yt-icons:radio-button-unchecked">\n              </yt-icon>\n              <yt-icon class="option-selector-correct style-scope ytd-backstage-quiz-editor-renderer" hidden="[[!item.isCorrect]]" default-to-filled="true" icon="yt-icons:check-circle">\n              </yt-icon>\n            </yt-icon-button>\n          </div>\n        </div>\n        <tp-yt-paper-input-container class="quiz-option-input style-scope ytd-backstage-quiz-editor-renderer" no-label-float="">\n          <tp-yt-iron-autogrow-textarea class="quiz-option-input-input paper-input-input style-scope ytd-backstage-quiz-editor-renderer" slot="input" maxlength$="[[editorInfo.maxQuizOptionChars]]" no-label-float="" placeholder$="[[item.placeholderText]]" value="[[item.optionText]]" on-input="onInput" on-keyup="updateHintRenderer" on-value-changed="updateOptionTextFromBinding">\n          </tp-yt-iron-autogrow-textarea>\n          <tp-yt-paper-input-char-counter class="option-counter style-scope ytd-backstage-quiz-editor-renderer" slot="add-on">\n          </tp-yt-paper-input-char-counter>\n        </tp-yt-paper-input-container>\n        <yt-icon-button class="remove-button style-scope ytd-backstage-quiz-editor-renderer" aria-label="[[editorInfo.removeOptionButtonA11yText.accessibilityData.label]]" on-click="onRemoveQuizOption">\n          <yt-icon class="remove-option style-scope ytd-backstage-quiz-editor-renderer" icon="yt-icons:delete"></yt-icon>\n        </yt-icon-button>\n      </div>\n      <div class="quiz-explanation style-scope ytd-backstage-quiz-editor-renderer">\n        <tp-yt-paper-input-container class="quiz-explanation-input style-scope ytd-backstage-quiz-editor-renderer" hidden="[[!item.isCorrect]]" no-label-float="">\n          <tp-yt-iron-autogrow-textarea class="quiz-explanation-input-input paper-input-input style-scope ytd-backstage-quiz-editor-renderer" slot="input" maxlength$="[[editorInfo.maxQuizExplanationChars]]" no-label-float="" placeholder$="[[explanationPlaceholderText]]" value="{{item.explanationText}}" on-input="onExplanationInput">\n          </tp-yt-iron-autogrow-textarea>\n          <tp-yt-paper-input-char-counter class="explanation-counter style-scope ytd-backstage-quiz-editor-renderer" slot="add-on">\n          </tp-yt-paper-input-char-counter>\n        </tp-yt-paper-input-container>\n      </div>\n    </div>\n  </template>\n</div>\n<div class="button-container style-scope ytd-backstage-quiz-editor-renderer">\n  <yt-button-renderer class="add-answer style-scope ytd-backstage-quiz-editor-renderer" data="[[addAnswerButton]]" hidden="[[!isAllowedToAddOption]]" on-click="onAddQuizOption">\n  </yt-button-renderer>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return awX=F},{mode:2});var fwM;var O6_=(PH.FIRSTDAYOFWEEK+1)%7;var b6O;var lwO=[],nn_=0,y6O=0;nn_=0;y6O=24;if(.25*(y6O-nn_)<0)b6O=[];else{for(var jfe=nn_;jfe<y6O;jfe+=.25)lwO.push(jfe);b6O=lwO}var i6p=b6O.map(function(F){F=F*60*60;return{secondsSinceMidnight:F,text:(new Tr(7)).format(new Date(0,0,0,0,0,F))}});var r6e;var pj=function(){var F=_.n.apply(this,arguments)||this;F.skipNextOpenDialog=!1;F.errorMessage="";return F};
_.k(pj,_.n);_.N=pj.prototype;_.N.attached=function(){var F=this,W=new MutationObserver(function(){F.JSC$13510_calendarMain.scrollHeight>0&&(W.disconnect(),F.calendarConfig&&F.calendarConfig.selectedDate&&F.scrollToDate())});
W.observe(this.JSC$13510_calendarMain,{childList:!0,subtree:!0});window.setTimeout(function(){W.disconnect()},1E3)};
_.N.openPicker=function(){this.skipNextOpenDialog?this.skipNextOpenDialog=!1:(this.dialog.positionTarget=this.dropdownButton,this.dialog.open())};
_.N.onDateTextChange=function(){if(this.calendarConfig){var F=this.validateDateText();F.isValid?(this.textbox.removeAttribute("invalid"),this.commitDate(F.details)):this.textbox.setAttribute("invalid","")}};
_.N.handleDayClick=function(F){F.model.day.date&&(this.commitDate(F.model.day.date),this.dialog.close())};
_.N.scrollToDate=function(){if(this.calendarConfig&&this.calendarConfig.selectedDate&&this.renderData){var F=uKr(this.calendarConfig.selectedDate,this.renderData);F!==void 0&&this.JSC$13510_calendarMain.scrollToIndex(F)}};
_.N.scrollToNextMonth=function(){this.JSC$13510_calendarMain.scrollToIndex(this.JSC$13510_calendarMain.firstVisibleIndex+1)};
_.N.scrollToPrevMonth=function(){this.JSC$13510_calendarMain.firstVisibleIndex===0&&this.JSC$13510_calendarMain.scrollTo(0,0);this.JSC$13510_calendarMain.scrollToIndex(this.JSC$13510_calendarMain.firstVisibleIndex-1)};
_.N.onFormSubmit=function(F){F.preventDefault();this.calendarConfig&&(F=this.validateDateText(),F.isValid&&(this.commitDate(F.details),this.dialog.close()))};
_.N.onEscOrClickingOutside=function(F){F=F.detail.path&&!!F.detail.path.length&&F.detail.path[0];if(F.classList.contains("ytd-calendar-date-picker")){F===this.dropdownButton&&(this.skipNextOpenDialog=!0);for(var W=0;W<this.dropdownButton.children.length;W++)this.dropdownButton.children[W]===F&&(this.skipNextOpenDialog=!0);if(!this.skipNextOpenDialog)return}F=this.textbox.value!==this.dateText;W=this.validateDateText();F&&W.isValid&&this.commitDate(W.details);this.dialog.close();this.textbox.value=
this.dateText};
_.N.commitDate=function(F){this.calendarConfig&&(this.set("calendarConfig.selectedDate",F),_.hF(this.hostElement,"ytd-calendar-date-selected",F))};
_.N.validateDateText=function(){if(!this.calendarConfig||!this.textbox)return{isValid:!1,details:void 0};var F=this.textbox.value;var W=new Date;F=(new t0Y(2)).parse(F,W,{validate:!0})===F.length?YHw(W):void 0;if(!F)return this.errorMessage=_.CY("INVALID_DATE_ERROR"),{isValid:!1,details:void 0};W=this.calendarConfig.start;var E=this.calendarConfig.end;if(i5e(F,W))return this.errorMessage=_.CY("ENTER_DATE_OR_LATER",{allowed_date:Gvk(W)}),{isValid:!1,details:void 0};if(i5e(E,F))return this.errorMessage=
_.CY("ENTER_DATE_OR_EARLIER",{allowed_date:Gvk(E)}),{isValid:!1,details:void 0};this.errorMessage="";return{isValid:!0,details:F}};
_.Sn.Object.defineProperties(pj.prototype,{dateText:{configurable:!0,enumerable:!0,get:function(){return this.calendarConfig&&this.calendarConfig.selectedDate?Gvk(this.calendarConfig.selectedDate):""}},
renderData:{configurable:!0,enumerable:!0,get:function(){if(this.calendarConfig){for(var F=this.calendarConfig,W=[],E=0;E<7;E++)W.push(PH.NARROWWEEKDAYS[(E+O6_)%7]);E=[];for(var h=new Date(F.start.year,F.start.month);h.getFullYear()<F.end.year||h.getFullYear()===F.end.year&&h.getMonth()<=F.end.month;){var d=E,V=d.push,R=h.getFullYear(),M=h.getMonth(),g=F,t=void 0,C=[],B=Object.freeze({extraCssClass:"invisible",debugClass:""}),I=new Date(R,M),x=YHw(I);I=I.getDay();for(var A=YHw(new Date);x.month===
M;){I!==O6_&&t||(t=Array.from({length:7}).fill(B),C.push(t));var X={date:{year:R,month:M,day:x.day},extraCssClass:"",debugClass:""};g.selectedDate&&X.date&&jXn(X.date,g.selectedDate)&&(X.extraCssClass+=" selected");if(i5e(x,g.start)||i5e(g.end,x))X.extraCssClass+=" disabled";jXn(x,A)&&(X.extraCssClass+=" today");X.extraCssClass=X.extraCssClass.trim();t[(I-O6_+7)%7]=X;x=TOY(x);I=(I+1)%7}V.call(d,{weeks:C,monthLabel:PH.SHORTMONTHS[M]+" "+R,year:R,month:M,monthLabelExtraCssClass:C[0][2]===B?"shift-down-label":
""});h.setMonth(h.getMonth()+1)}return{months:E,daysOfWeekLabel:W}}}}});
pj.prototype.onEscOrClickingOutside=pj.prototype.onEscOrClickingOutside;pj.prototype.scrollToDate=pj.prototype.scrollToDate;_.T([_.O(),_.Y("design:type",Object)],pj.prototype,"calendarConfig",void 0);_.T([_.O(),_.Y("design:type",Object)],pj.prototype,"skipNextOpenDialog",void 0);_.T([_.O(),_.Y("design:type",Object)],pj.prototype,"errorMessage",void 0);_.T([_.gQ("#textbox"),_.Y("design:type",HTMLInputElement)],pj.prototype,"textbox",void 0);
_.T([_.gQ("#calendar-dialog"),_.Y("design:type",Object)],pj.prototype,"dialog",void 0);_.T([_.gQ("#calendar-main"),_.Y("design:type",Object)],pj.prototype,"JSC$13510_calendarMain",void 0);_.T([_.gQ("#date-picker"),_.Y("design:type",HTMLElement)],pj.prototype,"dropdownButton",void 0);_.T([_.a("calendarConfig.selectedDate"),_.Y("design:type",String),_.Y("design:paramtypes",[])],pj.prototype,"dateText",null);
_.T([_.a("calendarConfig","calendarConfig.selectedDate"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],pj.prototype,"renderData",null);_.T([_.ea("renderData","calendarConfig.selectedDate"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],pj.prototype,"scrollToDate",null);_.T([_.R4("iron-overlay-canceled"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],pj.prototype,"onEscOrClickingOutside",null);
pj=_.T([_.$3({disableElementRegistration:!0,is:"ytd-calendar-date-picker",noInjection:!0})],pj);
_.r(pj,"ytd-calendar-date-picker",function(){if(r6e!==void 0)return r6e;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-calendar-date-picker--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-menu-button class="style-scope ytd-calendar-date-picker">\n  <tp-yt-paper-button id="date-picker" class="dropdown-trigger style-scope ytd-calendar-date-picker" slot="dropdown-trigger" aria-labelledby="date-label-text" on-tap="openPicker">\n    <div id="date-label-text" class="style-scope ytd-calendar-date-picker">[[dateText]]</div>\n    <yt-icon id="label-icon" icon="yt-icons:arrow_drop_down" class="style-scope ytd-calendar-date-picker">\n    </yt-icon>\n  </tp-yt-paper-button>\n</tp-yt-paper-menu-button>\n\n<tp-yt-paper-dialog id="calendar-dialog" dynamic-align="" horizontal-align="left" vertical-align="top" vertical-offset="44" class="style-scope ytd-calendar-date-picker">\n  <div id="control-area" class="style-scope ytd-calendar-date-picker">\n    <form id="date-input" on-submit="onFormSubmit" autocomplete="off" class="style-scope ytd-calendar-date-picker">\n      <tp-yt-paper-input-container aria-label="Enter date" invalid="[[errorMessage]]" no-label-float="" use-v2-underline="" on-input="onDateTextChange" class="style-scope ytd-calendar-date-picker">\n        <tp-yt-iron-input slot="input" bind-value="[[dateText]]" class="style-scope ytd-calendar-date-picker">\n          <input id="textbox" autofocus="" class="style-scope ytd-calendar-date-picker"></tp-yt-iron-input>\n        <tp-yt-paper-input-error slot="add-on" class="style-scope ytd-calendar-date-picker">[[errorMessage]]</tp-yt-paper-input-error>\n      </tp-yt-paper-input-container>\n    </form>\n    <div id="month-controller" class="style-scope ytd-calendar-date-picker">\n      <yt-icon-button id="prev-month" on-tap="scrollToPrevMonth" class="style-scope ytd-calendar-date-picker">\n        <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-calendar-date-picker"></yt-icon>\n      </yt-icon-button>\n      <yt-icon-button id="next-month" on-tap="scrollToNextMonth" class="style-scope ytd-calendar-date-picker">\n        <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-calendar-date-picker"></yt-icon>\n      </yt-icon-button>\n    </div>\n  </div>\n  <div class="calendar-container style-scope ytd-calendar-date-picker">\n    <div class="calendar-header style-scope ytd-calendar-date-picker">\n      <template is="dom-repeat" items="[[renderData.daysOfWeekLabel]]" as="dayLabel" class="style-scope ytd-calendar-date-picker">\n        <span class="calendar-header-day style-scope ytd-calendar-date-picker">[[dayLabel]]</span>\n      </template>\n    </div>\n    <tp-yt-iron-list id="calendar-main" as="month" items="[[renderData.months]]" tabindex="-1" class="style-scope ytd-calendar-date-picker">\n      <template class="style-scope ytd-calendar-date-picker">\n        <div class="calendar-month style-scope ytd-calendar-date-picker">\n          <div class$="calendar-month-label [[month.monthLabelExtraCssClass]] style-scope ytd-calendar-date-picker">\n            [[month.monthLabel]]\n          </div>\n          <template is="dom-repeat" items="[[month.weeks]]" as="week" class="style-scope ytd-calendar-date-picker">\n            <div class="calendar-week style-scope ytd-calendar-date-picker">\n              <template is="dom-repeat" items="[[week]]" as="day" class="style-scope ytd-calendar-date-picker">\n                <span class$="calendar-day [[day.extraCssClass]] [[day.debugClass]] style-scope ytd-calendar-date-picker" on-tap="handleDayClick">\n                  [[day.date.day]]\n                </span>\n              </template> \n            </div>\n          </template> \n        </div>\n      </template>\n    </tp-yt-iron-list> \n  </div>\n</tp-yt-paper-dialog>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return r6e=F},{mode:2});var TiB=_.CY("UTC_OFFSET_FORMAT",{utc_offset:(new Tr("Z")).format(new Date)}),onc=(new Date).getTimezoneOffset()*-60,GmM=new Date,Yup,wVO=rR(GmM.getTimezoneOffset());Yup=VRM(Rna(wVO,GmM));var uQp=_.CY("LOCAL_TIME_GMT_LABEL",{gmt_text:Yup.replace("+0","+").replace("-0","-").replace(":00","")}),mq=function(){var F=_.n.apply(this,arguments)||this;F.selectedTimeIndex=0;F.selectedTimezoneIndex=0;F.timeOfDayOptions=i6p;return F};
_.k(mq,_.n);_.N=mq.prototype;_.N.configureRendererStamper=function(){return{"data.dismissButton":{id:"cancel-button-wrapper",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.N.updateDefaultSelectedValue=function(){if(this.timeZones&&this.timeZones.length&&this.data){var F=oHG();if(this.data.defaultTimeSec===void 0||isNaN(Number(this.data.defaultTimeSec)))this.calendarConfig=F,this.selectedTimeIndex=0;else{var W=wLk(Number(this.data.defaultTimeSec),this.timeZones[0]);this.calendarConfig=Object.assign({},F,{selectedDate:W.date});this.selectedTimeIndex=this.timeOfDayOptions.findIndex(function(E){return E.secondsSinceMidnight===W.secondsSinceMidnight})}this.selectedTimezoneIndex=
0;
this.selectedDate=this.calendarConfig.selectedDate}};
_.N.onDatePicked=function(F){this.selectedDate=F.detail};
_.N.onCancelButtonTap=function(){this.data&&this.data.dismissButton&&_.hF(this.hostElement,"ytd-date-time-selection-cancelled")};
_.N.onDateTimeTimezoneChange=function(){if(this.selectedTimezone&&this.selectedTime&&this.selectedDate){var F=this.selectedDate;F=new Date(F.year,F.month,F.day);_.hF(this.hostElement,"ytd-date-time-selection-update",Math.floor(F.getTime()/1E3)+this.selectedTime.secondsSinceMidnight-(Number(this.selectedTimezone.utcOffsetSec)+F.getTimezoneOffset()*60))}};
_.N.getTimezoneFormat=function(F){return F.localizedDisplayText?F.localizedDisplayText:_.CY("TIMEZONE_FORMAT",{utc_offset_text:""+F.localizedUtcOffset,city_name:""+F.localizedName})};
_.N.updateSelectedTimeIndexFromBinding=function(F){this.selectedTimeIndex=F.detail.value};
_.N.updateSelectedTimezoneIndexFromBinding=function(F){this.selectedTimezoneIndex=F.detail.value};
_.Sn.Object.defineProperties(mq.prototype,{timeZones:{configurable:!0,enumerable:!0,get:function(){if(this.data){var F=this.data.timezoneOptions;var W={name:"Etc/Unknown",localizedName:_.CY("LOCAL_TIME_LABEL"),localizedUtcOffset:TiB,utcOffsetSec:""+onc,localizedDisplayText:uQp};F?F.length&&F[0].name!==W.name&&(F[0].localizedDisplayText||(W.localizedDisplayText=""),F.unshift(W)):F=[W];return F}}},
selectedTimezone:{configurable:!0,enumerable:!0,get:function(){if(this.timeZones&&!(this.selectedTimezoneIndex>=this.timeZones.length))return this.timeZones[this.selectedTimezoneIndex]}},
selectedTime:{configurable:!0,enumerable:!0,get:function(){return this.timeOfDayOptions[this.selectedTimeIndex]}}});
mq.prototype.onDateTimeTimezoneChange=mq.prototype.onDateTimeTimezoneChange;mq.prototype.onDatePicked=mq.prototype.onDatePicked;mq.prototype.updateDefaultSelectedValue=mq.prototype.updateDefaultSelectedValue;_.T([_.O(),_.Y("design:type",Object)],mq.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Object)],mq.prototype,"calendarConfig",void 0);_.T([_.O(),_.Y("design:type",Object)],mq.prototype,"selectedDate",void 0);_.T([_.O(),_.Y("design:type",Object)],mq.prototype,"selectedTimeIndex",void 0);
_.T([_.O(),_.Y("design:type",Object)],mq.prototype,"selectedTimezoneIndex",void 0);_.T([_.gQ("#time-listbox"),_.Y("design:type",Object)],mq.prototype,"timeListBox",void 0);_.T([_.gQ("#timezone-listbox"),_.Y("design:type",Object)],mq.prototype,"timezoneListBox",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],mq.prototype,"rendererStamperBehavior",void 0);_.T([_.a("data.timezoneOptions"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],mq.prototype,"timeZones",null);
_.T([_.Cz("data","timeZones"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],mq.prototype,"updateDefaultSelectedValue",null);_.T([_.a("selectedTimezoneIndex","timeZones"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],mq.prototype,"selectedTimezone",null);_.T([_.a("selectedTimeIndex"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],mq.prototype,"selectedTime",null);
_.T([_.R4("ytd-calendar-date-selected"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],mq.prototype,"onDatePicked",null);_.T([_.ea("selectedTimezone","selectedTime","selectedDate"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],mq.prototype,"onDateTimeTimezoneChange",null);mq=_.T([_.y({disableElementRegistration:!0,is:"ytd-date-time-picker-renderer"})],mq);
_.r(mq,"ytd-date-time-picker-renderer",function(){if(fwM!==void 0)return fwM;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-date-time-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="cancel-button-wrapper" hidden="[[!data.dismissButton]]" on-tap="onCancelButtonTap" class="style-scope ytd-date-time-picker-renderer">\n</div>\n<div id="hint" hidden="[[!data.header]]" class="style-scope ytd-date-time-picker-renderer">\n  <yt-formatted-string text="[[data.header]]" class="style-scope ytd-date-time-picker-renderer"></yt-formatted-string>\n</div>\n<div id="picker-component" class="style-scope ytd-date-time-picker-renderer">\n  <ytd-calendar-date-picker calendar-config="[[calendarConfig]]" class="style-scope ytd-date-time-picker-renderer"></ytd-calendar-date-picker>\n  <tp-yt-paper-menu-button dynamic-align="" horizontal-align="left" vertical-align="top" vertical-offset="44" class="style-scope ytd-date-time-picker-renderer">\n    <tp-yt-paper-button id="time-picker" class="dropdown-trigger style-scope ytd-date-time-picker-renderer" slot="dropdown-trigger" aria-labelledby="time-label-text">\n      <div id="time-label-text" class="style-scope ytd-date-time-picker-renderer">[[selectedTime.text]]</div>\n      <yt-icon id="label-icon" icon="yt-icons:arrow_drop_down" class="style-scope ytd-date-time-picker-renderer">\n      </yt-icon>\n    </tp-yt-paper-button>\n    <tp-yt-paper-listbox id="time-listbox" class="dropdown-content style-scope ytd-date-time-picker-renderer" slot="dropdown-content" selected="[[selectedTimeIndex]]" on-selected-changed="updateSelectedTimeIndexFromBinding">\n      <template is="dom-repeat" items="[[timeOfDayOptions]]" class="style-scope ytd-date-time-picker-renderer">\n        <tp-yt-paper-item class="style-scope ytd-date-time-picker-renderer">\n          [[item.text]]\n        </tp-yt-paper-item>\n      </template>\n    </tp-yt-paper-listbox>\n  </tp-yt-paper-menu-button>\n  <tp-yt-paper-menu-button dynamic-align="" horizontal-align="left" vertical-align="top" vertical-offset="44" class="style-scope ytd-date-time-picker-renderer">\n    <tp-yt-paper-button id="timezone-picker" class="dropdown-trigger style-scope ytd-date-time-picker-renderer" slot="dropdown-trigger" aria-labelledby="timezone-label-text">\n      <div id="timezone-label-text" class="style-scope ytd-date-time-picker-renderer">[[getTimezoneFormat(selectedTimezone)]]</div>\n      <yt-icon id="label-icon" icon="yt-icons:arrow_drop_down" class="style-scope ytd-date-time-picker-renderer">\n      </yt-icon>\n    </tp-yt-paper-button>\n    <tp-yt-paper-listbox id="timezone-listbox" class="dropdown-content style-scope ytd-date-time-picker-renderer" slot="dropdown-content" selected="[[selectedTimezoneIndex]]" on-selected-changed="updateSelectedTimezoneIndexFromBinding">\n      <template is="dom-repeat" items="[[timeZones]]" class="style-scope ytd-date-time-picker-renderer">\n        <tp-yt-paper-item class="style-scope ytd-date-time-picker-renderer">\n          [[getTimezoneFormat(item)]]\n        </tp-yt-paper-item>\n      </template>\n    </tp-yt-paper-listbox>\n  </tp-yt-paper-menu-button>\n</div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return fwM=F},{mode:1});var Su_;var Kj=function(){var F=_.n.apply(this,arguments)||this;F.boundOnTapDismissButton=function(){F.dismissTapHandler()};
F.dismissButtonOverrides={size:"XS"};return F};
_.k(Kj,_.n);Kj.prototype.configureRendererStamper=function(){return{attachmentPreview:{id:"attachment-preview",mapping:{backstageImageRenderer:"ytd-backstage-image-renderer",videoRenderer:{component:"ytd-video-renderer",params:{isBackstageVideo:!0}}}},dismissButton:{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[dismissButtonOverrides]]","on-tap":"[[boundOnTapDismissButton]]"},params:{forceModernIconButton:!0}}}}}};
Kj.prototype.dismissTapHandler=function(){_.hF(this.hostElement,"yt-backstage-attachment-dismissed")};
Kj.prototype.computeAttachmentType=function(F){return F?F.backstageImageRenderer?"image":F.videoRenderer?"video":"none":"none"};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Kj.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],Kj.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],Kj.prototype,"attachmentPreview",void 0);_.T([_.O(),_.Y("design:type",Object)],Kj.prototype,"dismissButton",void 0);_.T([_.O(),_.Y("design:type",Object)],Kj.prototype,"boundOnTapDismissButton",void 0);
_.T([_.O(),_.Y("design:type",Object)],Kj.prototype,"dismissButtonOverrides",void 0);_.T([_.O({reflectToAttribute:!0,readOnly:!0,computed:"computeAttachmentType(attachmentPreview)"}),_.Y("design:type",String)],Kj.prototype,"attachmentType",void 0);Kj=_.T([_.y({disableElementRegistration:!0,is:"ytd-backstage-dismissable-attachment"})],Kj);
_.r(Kj,"ytd-backstage-dismissable-attachment",function(){if(Su_!==void 0)return Su_;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-dismissable-attachment--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="attachment-preview-container" class="style-scope ytd-backstage-dismissable-attachment">\n  <div id="attachment-preview" class="style-scope ytd-backstage-dismissable-attachment"></div>\n  <div id="dismiss-button" class="style-scope ytd-backstage-dismissable-attachment"></div>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return Su_=F},{mode:1});var pVu;var Fr=function(){var F=_.n.apply(this,arguments)||this;F.selectedVideoId=void 0;F.picker=void 0;F.dismissButtonOverrides={size:"XS"};F.actionMap={"yt-add-video-preview-action":"handleAddVideoPreviewAction"};return F};
_.k(Fr,_.n);_.N=Fr.prototype;_.N.onServiceRequestCompleted=function(F){F.stopPropagation()};
_.N.handleAddVideoPreviewAction=function(F){F=this.get("addVideoPreviewAction",F);this.onGetVideoPreviewSuccess(F)};
_.N.configureRendererStamper=function(){return{videoPreview:{id:"video-preview",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isBackstageVideo:!0}}}},cancelButton:{id:"cancel-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[dismissButtonOverrides]]"},params:{forceModernIconButton:!0}}}}}};
_.N.onLaunchVideoPicker=function(F){var W=this,E=_.Yr(this.get("addVideoLinkAction.title",F)),h=this.get("addVideoLinkAction.onePickHostId",F);this.getVideoPreviewCommand=this.get("addVideoLinkAction.onVideoSelectCommand",F);h&&(this.picker||(E=_.Noi(_.D4r(h).setTitle(E).addView(W0_()).addView(F0u()),function(d){W.onPickVideo(d)}),this.get("addVideoLinkAction.hideYourYoutubeVideos",F)||E.addView("youtube"),this.picker=E.build()),this.picker.setVisible(!0))};
_.N.onPickVideo=function(F){if(F)if(F.action==="cancel")_.hF(this.hostElement,"yt-video-link-button-cancel");else if(F.action==="picked"){F=F.docs;if(!F||F.length===0)this.onGetVideoPreviewError("No valid docs in response");this.selectedVideoId=(F=(F==null?0:F.length)?F[0]:void 0)?F.id:void 0;this.setVideoPreview()}};
_.N.setVideoPreview=function(){var F=this;if(this.getVideoPreviewCommand)this.ytComponentBehavior.resolveCommand(this.getVideoPreviewCommand,{form:{video_id:this.selectedVideoId},onError:function(){F.onGetVideoPreviewError("Error executing command")}});
else this.onGetVideoPreviewError("Video preview command not set.")};
_.N.onGetVideoPreviewSuccess=function(F){if(F&&F.videoPreview&&F.cancelButton)this.videoPreview=F.videoPreview,this.cancelButton=F.cancelButton,_.hF(this.hostElement,"yt-video-link-selected",{videoId:this.selectedVideoId});else this.onGetVideoPreviewError("Empty data from ajax")};
_.N.onGetVideoPreviewError=function(){this.cancel()};
_.N.cancel=function(){this.videoPreview=this.cancelButton=this.selectedVideoId=void 0;_.hF(this.hostElement,"yt-video-link-cancel")};
_.N.isValid=function(){return!(!this.videoPreview||!this.selectedVideoId)};
Fr.prototype.onServiceRequestCompleted=Fr.prototype.onServiceRequestCompleted;_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],Fr.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],Fr.prototype,"ytActionHandlerBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Fr.prototype,"ytRendererBehavior",void 0);
_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],Fr.prototype,"ytComponentBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],Fr.prototype,"videoPreview",void 0);_.T([_.O(),_.Y("design:type",Object)],Fr.prototype,"cancelButton",void 0);_.T([_.O(),_.Y("design:type",Object)],Fr.prototype,"getVideoPreviewCommand",void 0);_.T([_.O(),_.Y("design:type",Object)],Fr.prototype,"dismissButtonOverrides",void 0);
_.T([_.R4("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Fr.prototype,"onServiceRequestCompleted",null);Fr=_.T([_.y({disableElementRegistration:!0,is:"ytd-backstage-video-link-attachment"})],Fr);
_.r(Fr,"ytd-backstage-video-link-attachment",function(){if(pVu!==void 0)return pVu;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-video-link-attachment--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="video-preview" class="style-scope ytd-backstage-video-link-attachment"></div>\n<div id="cancel-button" on-tap="cancel" class="style-scope ytd-backstage-video-link-attachment"></div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return pVu=F},{mode:1});var mAX;var KWH;var F5a;var Wu=function(){return _.n.apply(this,arguments)||this};
_.k(Wu,_.n);Wu.prototype.dataChanged=function(){this.active=!1};
Wu.prototype.onTap=function(){_.hF(this.hostElement,"yt-select-emoji-suggestion",this.data)};
Wu.prototype.identity=function(F){return F};
_.Sn.Object.defineProperties(Wu.prototype,{imageSrc:{configurable:!0,enumerable:!0,get:function(){var F,W,E,h;if((F=this.data)==null?0:(W=F.image)==null?0:(E=W.thumbnails)==null?0:(h=E[0])==null?0:h.url)return F=this.data.image.thumbnails[0].url,F.startsWith("data:image/svg+xml")?QK(F):_.II(F)}}});
Wu.prototype.dataChanged=Wu.prototype.dataChanged;_.T([_.O(),_.Y("design:type",Object)],Wu.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Wu.prototype,"active",void 0);_.T([_.Cz("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Wu.prototype,"dataChanged",null);_.T([_.a("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Wu.prototype,"imageSrc",null);
Wu=_.T([_.y({disableElementRegistration:!0,is:"ytd-emoji-suggestion"})],Wu);
_.r(Wu,"ytd-emoji-suggestion",function(){if(F5a!==void 0)return F5a;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-emoji-suggestion--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-item active="[[active]]" on-tap="onTap" class="style-scope ytd-emoji-suggestion">\n  <img alt="[[data.alt]]" hidden$="[[!identity(data.image)]]" src$="[[imageSrc]]" author$="[[data.author]]" class="style-scope ytd-emoji-suggestion">\n  [[data.text]]\n</tp-yt-paper-item>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return F5a=F},{mode:1});var W5_=/.*([:@#].*?)$/,Eb=function(){var F=_.n.apply(this,arguments)||this;F.suggestions=[];F.suggestionIndex=-1;F.JSC$13538_lastSuggestionRange=null;return F};
_.k(Eb,_.n);_.N=Eb.prototype;_.N.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"ytd-emoji-suggestion"},reuseComponents:!0}}};
_.N.getSuggestions=function(F){var W=[],E=LUc(this.emojiManager,F.substr(0,3));if(E)for(var h in E)if(h.toLocaleLowerCase().indexOf(F)===0){var d=E[h];if(d&&d.emojiId){d=f7(this.emojiManager,d.emojiId);var V=void 0,R=void 0,M=void 0,g=void 0,t=((V=d)==null?0:V.isCustomEmoji)?(R=d)==null?void 0:(M=R.shortcuts)==null?void 0:M[0]:(g=d)==null?void 0:g.emojiId;V=void 0;W.push({suggestion:{image:(V=d)==null?void 0:V.image,alt:t,text:h}});if(W.length>=64)break}}return W?W.sort(function(C,B){return B.suggestion.text<
C.suggestion.text?-1:B.suggestion.text===C.suggestion.text?0:1}):null};
_.N.insertSuggestion=function(F){_.hF(this.hostElement,"yt-insert-suggestion",{range:this.JSC$13538_lastSuggestionRange,text:F.alt});this.dropdown.opened=!1};
_.N.updateSuggestionsAtCaret=function(F){this.updateSuggestions(F,this.retrieveTextBeforeRange(F))};
_.N.offsetStartOfRangeBy=function(F,W){F.startOffset>=W&&F.setStart(F.startContainer,F.startOffset-W)};
_.N.updateSuggestions=function(F,W){var E=this;this.JSC$13538_lastSuggestionRange&&(this.JSC$13538_lastSuggestionRange.detach(),this.JSC$13538_lastSuggestionRange=null);if((W=W5_.exec(W))&&W.length&&(W=W[W.length-1].toLocaleLowerCase(),W.length>2||W===":_")&&(this.offsetStartOfRangeBy(F,W.length),this.JSC$13538_lastSuggestionRange=F,(F=this.getSuggestions(W))&&F.length)){this.suggestions=F;_.wT(this,function(){E.dropdownContent.scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(F.length-1);return}this.dropdown.opened=!1};
_.N.onKeyDown=function(F){if(this.dropdown.opened)switch(F.key){case "Escape":this.dropdown.opened=!1;F.stopPropagation();break;case "Tab":this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);F.preventDefault();break;case "ArrowUp":this.changeSuggestionIndex(this.suggestionIndex-1);F.preventDefault();break;case "ArrowDown":this.changeSuggestionIndex(this.suggestionIndex+1),F.preventDefault()}};
_.N.onKeyUp=function(F,W){switch(F.key){case "ArrowLeft":case "ArrowRight":this.updateSuggestionsAtCaret(W);break;case "ArrowUp":case "ArrowDown":this.dropdown.opened||this.updateSuggestionsAtCaret(W)}};
_.N.onKeyPress=function(F){F.key==="Enter"&&this.dropdown.opened&&(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),F.preventDefault())};
_.N.changeSuggestionIndex=function(F){this.dropdown.opened&&(this.suggestionIndex>=0&&this.suggestionIndex<this.dropdownContent.children.length&&(this.dropdownContent.children[this.suggestionIndex].active=!1),this.suggestionIndex=(F+this.suggestions.length)%this.suggestions.length,F=this.dropdownContent.children[this.suggestionIndex],F.active=!0,this.dropdownContent.scrollTop=F.offsetTop)};
_.N.retrieveTextBeforeRange=function(F){var W=F.startContainer;return W&&W.nodeType===Node.TEXT_NODE?W.textContent.substr(0,F.startOffset):""};
Eb.prototype.onKeyPress=Eb.prototype.onKeyPress;Eb.prototype.onKeyUp=Eb.prototype.onKeyUp;Eb.prototype.onKeyDown=Eb.prototype.onKeyDown;_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],Eb.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Array)],Eb.prototype,"suggestions",void 0);_.T([_.O(),_.Y("design:type",_.Jq)],Eb.prototype,"emojiManager",void 0);_.T([_.O(),_.Y("design:type",Number)],Eb.prototype,"verticalSuggestionsOffset",void 0);
_.T([_.gQ("#dropdown"),_.Y("design:type",Object)],Eb.prototype,"dropdown",void 0);_.T([_.gQ("#dropdown-content"),_.Y("design:type",HTMLDivElement)],Eb.prototype,"dropdownContent",void 0);_.T([_.R4("keydown"),_.Y("design:type",Function),_.Y("design:paramtypes",[KeyboardEvent]),_.Y("design:returntype")],Eb.prototype,"onKeyDown",null);_.T([_.R4("keyup"),_.Y("design:type",Function),_.Y("design:paramtypes",[KeyboardEvent,Range]),_.Y("design:returntype")],Eb.prototype,"onKeyUp",null);
_.T([_.R4("keypress"),_.Y("design:type",Function),_.Y("design:paramtypes",[KeyboardEvent]),_.Y("design:returntype")],Eb.prototype,"onKeyPress",null);Eb=_.T([_.y({disableElementRegistration:!0,is:"ytd-emoji-input"})],Eb);
_.r(Eb,"ytd-emoji-input",function(){if(KWH!==void 0)return KWH;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-emoji-input--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<slot name="input" class="style-scope ytd-emoji-input"></slot>\n<tp-yt-iron-dropdown id="dropdown" allow-outside-scroll="" no-auto-focus="" vertical-align="bottom" vertical-offset="[[verticalSuggestionsOffset]]" class="style-scope ytd-emoji-input">\n  <div id="dropdown-content" class="dropdown-content style-scope ytd-emoji-input" slot="dropdown-content">\n  </div>\n</tp-yt-iron-dropdown>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return KWH=F},{mode:2});var EGi;var hi=function(){var F=_.n.apply(this,arguments)||this;F.hasMaxOptions=!1;return F};
_.k(hi,_.n);_.N=hi.prototype;_.N.configureRendererStamper=function(){return{"data.addOptionButton":{id:"add-option",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.N.dataChanged=function(){this.pollOptions=this.setPollOptions(this.data)};
_.N.setPrefilledChoices=function(F){var W=this;this.set("pollOptions",[]);var E;for(E=0;E<Math.min(F.length,this.data.maxPollOptions);E++)this.push("pollOptions",F[E].substring(0,this.data.maxPollOptionChars));for(;E<this.data.minPollOptions;E++)this.push("pollOptions","");this.hasMaxOptions=E>=this.data.maxPollOptions;_.wT(this,function(){for(var h=W.pollOptions,d=_.Z(W.hostElement).querySelectorAll(".poll-option-input"),V=0;V<d.length;V++)d[V].value=h[V]})};
_.N.focusChanged=function(){_.V9(this.hostElement)};
_.N.onInput=function(){var F=this;_.OO(this,"onInput",function(){F.isValid()?_.hF(F.hostElement,"yt-commentbox-post-enable"):_.hF(F.hostElement,"yt-commentbox-post-disable")},300)};
_.N.setPollOptions=function(){var F=[],W,E=((W=this.data)==null?0:W.minPollOptions)?this.data.minPollOptions:0;for(W=0;W<E;W++)F.push("");return F};
_.N.addPollOption=function(){var F=this;_.hF(this.hostElement,"yt-commentbox-post-disable");this.push("pollOptions","");this.data.maxPollOptions&&this.pollOptions.length===this.data.maxPollOptions&&(this.hasMaxOptions=!0);_.P0.addLowPriorityJob(function(){var W;(W=_.Z(F.hostElement).querySelector(".poll-option:last-of-type > .poll-option-input"))==null||W.focus()})};
_.N.onRemovePollOption=function(F){this.setPollOptionsFromInputs();this.data.minPollOptions&&this.pollOptions.length===this.data.minPollOptions?(this.clearPollOptions(),_.hF(this.hostElement,"yt-poll-attachment-dismiss")):(F=this.repeat.indexForElement(F.target.parentNode),F!==null&&(this.splice("pollOptions",F,1),this.hasMaxOptions=!1,this.areAllOptionsValid()&&(this.repeat.render(),_.hF(this.hostElement,"yt-commentbox-post-enable"))))};
_.N.isValid=function(){this.setPollOptionsFromInputs();return this.areAllOptionsValid()};
_.N.areAllOptionsValid=function(){if(this.data.minPollOptionChars)for(var F=0,W=this.pollOptions.length;F<W;F++)if(this.pollOptions[F].length<Number(this.data.minPollOptionChars))return!1;return!0};
_.N.getPollOptions=function(){return this.pollOptions};
_.N.setPollOptionsFromInputs=function(){for(var F=_.Z(this.hostElement).querySelectorAll(".poll-option-input"),W=0;W<F.length;W++)this.pollOptions[W]=F[W].value.trim()};
_.N.clearPollOptions=function(){var F=_.Z(this.hostElement).querySelectorAll(".poll-option-input");F=_.U(F);for(var W=F.next();!W.done;W=F.next())W.value.value="";this.pollOptions=this.setPollOptions(this.data);this.hasMaxOptions=!1};
_.N.getSimpleString=function(F){return _.Yr(F)};
_.N.updateValueFromBinding=function(F){if(F.target&&this.pollOptions){var W=Array.from(_.Z(this.hostElement).querySelectorAll("tp-yt-paper-input.poll-option-input")).indexOf(F.target);if(W>=0){var E;this.pollOptions[W]=(E=F.detail.value)!=null?E:"";this.notifyPath("pollOptions."+W)}}};
hi.prototype.dataChanged=hi.prototype.dataChanged;_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],hi.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],hi.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Array)],hi.prototype,"pollOptions",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],hi.prototype,"hasMaxOptions",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],hi.prototype,"enableCreationBox",void 0);
_.T([_.gQ("#repeat"),_.Y("design:type",AT)],hi.prototype,"repeat",void 0);_.T([_.Cz("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],hi.prototype,"dataChanged",null);hi=_.T([_.y({disableElementRegistration:!0,is:"ytd-poll-attachment"})],hi);
_.r(hi,"ytd-poll-attachment",function(){if(EGi!==void 0)return EGi;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-poll-attachment--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="poll-options" class="style-scope ytd-poll-attachment">\n  <template is="dom-repeat" id="repeat" items="[[pollOptions]]" class="style-scope ytd-poll-attachment">\n    <div class="poll-option style-scope ytd-poll-attachment">\n      <yt-icon-button class="remove-button style-scope ytd-poll-attachment" on-click="onRemovePollOption">\n        <yt-icon class="remove-option style-scope ytd-poll-attachment" icon="yt-icons:close"></yt-icon>\n      </yt-icon-button>\n      <tp-yt-paper-input class="poll-option-input style-scope ytd-poll-attachment" char-counter="" maxlength$="[[data.maxPollOptionChars]]" no-label-float="" placeholder="[[getSimpleString(data.optionPlaceholderText)]]" use-v2-underline="" value="[[item]]" on-focused-changed="focusChanged" on-input="onInput" on-value-changed="updateValueFromBinding">\n      </tp-yt-paper-input>\n    </div>\n  </template>\n</div>\n<div id="add-option" hidden="[[hasMaxOptions]]" on-click="addPollOption" class="style-scope ytd-poll-attachment"></div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return EGi=F},{mode:2});var hjT;var dt_;var NBp;var VAX;var d4=function(){return _.n.apply(this,arguments)||this};
_.k(d4,_.n);_.Sn.Object.defineProperties(d4.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){return this.focused?"true":null}}});
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],d4.prototype,"rendererBehaviors",void 0);_.T([_.O(),_.Y("design:type",Object)],d4.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],d4.prototype,"focused",void 0);_.T([_.O({reflectToAttribute:!0}),_.a("focused"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],d4.prototype,"ariaSelected",null);d4=_.T([_.$3({is:"yt-user-mention-suggestion-renderer",disableElementRegistration:!0})],d4);
_.r(d4,"yt-user-mention-suggestion-renderer",function(){if(VAX===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-user-mention-suggestion-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.social.yt_user_mention_suggestion_renderer.yt.user.mention.suggestion.renderer.css.js--\x3e<yt-img-shadow id="thumbnail" thumbnail="[[data.thumbnail]]" class="style-scope yt-user-mention-suggestion-renderer">\n</yt-img-shadow>\n<div id="info" class="style-scope yt-user-mention-suggestion-renderer">\n  <div id="display-name" aria-label="[[data.displayName]]" class="style-scope yt-user-mention-suggestion-renderer">[[data.displayName]]</div>\n  <yt-formatted-string id="channel-info" text="[[data.details]]" class="style-scope yt-user-mention-suggestion-renderer">\n  </yt-formatted-string>\n</div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);var W=F.content,E=W.insertBefore;NBp===void 0&&(NBp=document.createElement("template"));var h=NBp;E.call(W,h.content.cloneNode(!0),F.content.firstChild);VAX=F}F=VAX;return F},{mode:2});var Utu;var RjH;var N5=function(){var F=_.n.apply(this,arguments)||this;F.focusedSuggestionIndex=-1;return F};
_.k(N5,_.n);_.N=N5.prototype;_.N.created=function(){this.ytRendererBehavior.monitorScroll=!0};
_.N.clearFocusedSuggestion=function(){this.focusedSuggestionIndex=-1;this._setFocusedSuggestionId(void 0)};
_.N.setFocusedSuggestionIndex=function(F){!this.data||!this.data.suggestions||F<0||F>=this.data.suggestions.length||(this.focusedSuggestionIndex=F,F=this.getSuggestionId(F),this._setFocusedSuggestionId(F))};
_.N.advanceSuggestion=function(F){this.focusedSuggestionIndex===-1||F!==-1&&F!==1||(this.setFocusedSuggestionIndex(this.focusedSuggestionIndex+F),this.ensureSuggestionVisible(this.focusedSuggestionIndex))};
_.N.ensureSuggestionVisible=function(F){F=this.getSuggestionId(F);F=_.Z(this.hostElement).querySelector("[id="+F+"]");F!=null&&(F.offsetTop<this.hostElement.scrollTop?F.scrollIntoView(!0):F.offsetTop+F.clientHeight>this.hostElement.scrollTop+this.hostElement.clientHeight&&F.scrollIntoView(!1))};
_.N.getSuggestionId=function(F){return"user-mention-suggestion-"+F};
_.N.onSuggestionTap=function(F){var W=_.D(F.model.item,ii_);this.ytRendererBehavior.logExplicitClick(W);_.hF(this.hostElement,"yt-user-mention-suggestion-selected",{data:W,index:F.model.index})};
_.N.onSuggestionMouseMove=function(F){F.model.index!==this.focusedSuggestionIndex&&this.setFocusedSuggestionIndex(F.model.index)};
_.N.isSuggestionFocused=function(F,W){return F===W};
_.N.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.N.focusedSuggestionIdChangedForBinding=function(){this.hostElement.dispatchEvent(new _.yR("focused-suggestion-id-changed",this.focusedSuggestionId))};
N5.prototype.focusedSuggestionIdChangedForBinding=N5.prototype.focusedSuggestionIdChangedForBinding;N5.prototype.onDomChange=N5.prototype.onDomChange;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],N5.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],N5.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Object)],N5.prototype,"focusedSuggestionIndex",void 0);_.T([_.O({readOnly:!0}),_.Y("design:type",String)],N5.prototype,"focusedSuggestionId",void 0);
_.T([_.R4("dom-change"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],N5.prototype,"onDomChange",null);_.T([_.ea("focusedSuggestionId"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],N5.prototype,"focusedSuggestionIdChangedForBinding",null);N5=_.T([_.$3({is:"yt-user-mention-suggestions-dropdown",disableElementRegistration:!0})],N5);
_.r(N5,"yt-user-mention-suggestions-dropdown",function(){if(RjH===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-user-mention-suggestions-dropdown--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.social.yt_user_mention_suggestions_dropdown.yt.user.mention.suggestions.dropdown.css.js--\x3e\n<template is="dom-repeat" items="[[data.suggestions]]" index-as="index" notify-dom-change="" class="style-scope yt-user-mention-suggestions-dropdown">\n  <yt-user-mention-suggestion-renderer data="[[item.userMentionSuggestionRenderer]]" focused="[[isSuggestionFocused(index, focusedSuggestionIndex)]]" id$="[[getSuggestionId(index)]]" role="option" on-mousemove="onSuggestionMouseMove" on-tap="onSuggestionTap" class="style-scope yt-user-mention-suggestions-dropdown">\n  </yt-user-mention-suggestion-renderer>\n</template>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);var W=F.content,E=W.insertBefore;Utu===void 0&&(Utu=document.createElement("template"));var h=Utu;E.call(W,h.content.cloneNode(!0),F.content.firstChild);RjH=F}F=RjH;return F},{mode:2});var VN=function(){var F=_.n.apply(this,arguments)||this;F.suggestionsResponse=null;F.activeMention=null;F.selectionChangeListener=F.onSelectionChange.bind(F);F.handlesEnabled=_.c("enable_handles_in_mention_suggest_posts");F.handlesInMentionSuggestionsEnabled=_.c("handles_in_mention_suggest_posts");F.zeroPrefixMentionSuggestionEnabled=_.c("enable_zero_prefix_mention_suggestion_web");F.pendingQuery=null;F.flowNonce=null;return F};
_.k(VN,_.n);_.N=VN.prototype;_.N.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={up:"focusPreviousSuggestion",down:"focusNextSuggestion","tab enter":"selectFocusedSuggestion",esc:"cancelActiveMention"}};
_.N.attached=function(){document.addEventListener("selectionchange",this.selectionChangeListener)};
_.N.detached=function(){document.removeEventListener("selectionchange",this.selectionChangeListener)};
_.N.hasSuggestions=function(F){return!!(F&&F.suggestions&&F.suggestions.length>0)};
_.N.onInput=function(){var F=this;if(this.suggestionsEndpoint){if(!this.activeMention&&(this.maybeStartSuggest(),!this.zeroPrefixMentionSuggestionEnabled))return;if(this.activeMention){this.updateActiveMention();var W=this.suggestionsResponse!=null&&!this.hasSuggestions(this.suggestionsResponse),E=this.activeMention.JSC$9155_getText().slice(-1)===" ",h=this.activeMention.JSC$9155_getText().slice(-2,-1)===" ",d="@\ufe6b\uff20+\ufe62\uff0b".indexOf(this.activeMention.JSC$9155_getText().slice(-2,-1))>=
0;d=this.zeroPrefixMentionSuggestionEnabled&&d;if(this.activeMention.isCollapsed()||(W||h||d)&&E)this.cancelActiveMention();else{var V=this.activeMention.JSC$9155_getText().substring(1).trim();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_INPUT_TEXT_UPDATED");_.OO(this,"requestSuggestions",function(){F.requestSuggestions(V)},100)}}}};
_.N.onServiceRequestSent=function(F){F.stopPropagation()};
_.N.onServiceRequestCompleted=function(F){F.stopPropagation();F=F.detail.data;F.query&&(!this.pendingQuery||this.pendingQuery!==F.query)||!this.zeroPrefixMentionSuggestionEnabled&&F.query===""||this.zeroPrefixMentionSuggestionEnabled&&this.activeMention==null||(this.pendingQuery=null,this.suggestionsResponse=F,this.hasSuggestions(F)&&this.dropdown.setFocusedSuggestionIndex(0))};
_.N.onServiceRequestError=function(F){F.stopPropagation()};
_.N.onUserMentionSuggestionSelected=function(F){this.selectSuggestion(F.detail.data,F.detail.index)};
_.N.onSelectionChange=function(){if(this.activeMention){var F=_.qv(),W=this.activeMention.JSC$9155_containsRange(F);F=F&&this.containsHelper(this.dropdown,F.getContainer());W||F||this.cancelActiveMention()}};
_.N.containsHelper=function(F,W){var E;if(((E=window.ShadyDOM)==null?void 0:E.noPatch)===!0)return F.contains(W);for(;W;){if(W===F)return!0;W=W instanceof ShadowRoot?W.host:W.parentNode}return!1};
_.N.maybeStartSuggest=function(){var F=_.qv();if(F&&F.isCollapsed()){var W=F.JSC$9155_getStartNode(),E=F.JSC$9155_getStartOffset();if(W instanceof Text&&!(E<1)){var h=W.textContent;!(h=h&&h.charAt(E-1))||"@\ufe6b\uff20+\ufe62\uff0b".indexOf(h)<0||(this.activeMention=_.rp(W,E-1,F.JSC$9155_getEndNode(),F.JSC$9155_getEndOffset()),this.flowNonce=Xf(16),this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_MENTION_FLOW_STARTED"))}}};
_.N.updateActiveMention=function(){if(this.activeMention){var F=_.qv();F&&F.isCollapsed()&&(this.activeMention=_.rp(this.activeMention.JSC$9155_getStartNode(),this.activeMention.JSC$9155_getStartOffset(),F.JSC$9155_getEndNode(),F.JSC$9155_getEndOffset()))}};
_.N.requestSuggestions=function(F){if(this.activeMention){var W={suggestions_query:F};this.pendingQuery=F;_.UT(this.hostElement,[this.suggestionsEndpoint,W])}};
_.N.cancelActiveMention=function(){this.activeMention&&this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_MENTION_FLOW_STOPPED");this.suggestionsResponse=this.pendingQuery=this.activeMention=null;this.dropdown.clearFocusedSuggestion()};
_.N.focusPreviousSuggestion=function(F){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(-1),F.preventDefault())};
_.N.focusNextSuggestion=function(F){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(1),F.preventDefault())};
_.N.selectFocusedSuggestion=function(F){if(this.hasSuggestions(this.suggestionsResponse)){var W=this.suggestionsResponse.suggestions[this.dropdown.focusedSuggestionIndex];_.D(W,ii_)&&(this.selectSuggestion(_.D(W,ii_),this.dropdown.focusedSuggestionIndex),F.preventDefault())}};
_.N.selectSuggestion=function(F,W){if(F){var E=this.activeMention;if(E){var h=document.createElement("a");this.handlesInMentionSuggestionsEnabled&&F.handle?_.yB(h,"\u00a0\u2068@"+F.handle+"\u2069\u00a0"):this.handlesEnabled?_.yB(h,"\u00a0"+F.displayName+"\u00a0"):_.yB(h,"\u00a0@"+F.displayName+"\u00a0");Lu(h,"/channel/"+F.channelId);h.classList.add("yt-formatted-string","yt-simple-endpoint");h.setAttribute("spellcheck","false");E.isCollapsed()||E.JSC$9155_removeContents();E.insertNode(h,!0);F=document.createTextNode(" ");
h.parentNode.insertBefore(F,h.nextSibling);window.getSelection().collapse(F,1);W={suggestionSelected:{suggestionIndex:W}};if(this.zeroPrefixMentionSuggestionEnabled){var d;W.suggestionSelected.isZeroPrefix=((d=this.suggestionsResponse)==null?void 0:d.query)===""}this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_SUGGESTION_SELECTED",W);this.cancelActiveMention();_.hF(this.hostElement,"yt-mention-inserted")}}};
_.N.getPositionTarget=function(F){return F&&F.getBrowserRangeObject()};
_.N.onDomChange=function(){this.ironDropdown.refit();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_CONTENT_UPDATED")};
_.N.onFocusedSuggestionIdChanged=function(F){var W=_.X3Y(this.hostElement)[0];W&&(F.detail.value?W.setAttribute("aria-activedescendant",F.detail.value):W.removeAttribute("aria-activedescendant"))};
_.N.onDropdownOpened=function(){this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_BOX_OPENED")};
_.N.logGELEvent=function(F,W){F={eventType:F,flowNonce:this.flowNonce,source:"USER_MENTION_AUTO_COMPLETE_SOURCE_BACKSTAGE_POST"};W&&(F=Object.assign(F,W));_.Pc("userMentionAutoCompleteBoxEvent",F)};
VN.prototype.onDomChange=VN.prototype.onDomChange;VN.prototype.onUserMentionSuggestionSelected=VN.prototype.onUserMentionSuggestionSelected;VN.prototype.onServiceRequestError=VN.prototype.onServiceRequestError;VN.prototype.onServiceRequestCompleted=VN.prototype.onServiceRequestCompleted;VN.prototype.onServiceRequestSent=VN.prototype.onServiceRequestSent;VN.prototype.onInput=VN.prototype.onInput;_.T([_.J(_.$5),_.Y("design:type",Object)],VN.prototype,"ironA11yKeysBehavior",void 0);
_.T([_.O(),_.Y("design:type",Object)],VN.prototype,"suggestionsEndpoint",void 0);_.T([_.O(),_.Y("design:type",Object)],VN.prototype,"suggestionsResponse",void 0);_.T([_.O(),_.Y("design:type",Object)],VN.prototype,"activeMention",void 0);_.T([_.gQ("#dropdown"),_.Y("design:type",Object)],VN.prototype,"dropdown",void 0);_.T([_.gQ("#iron-dropdown"),_.Y("design:type",Object)],VN.prototype,"ironDropdown",void 0);
_.T([_.R4("input"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],VN.prototype,"onInput",null);_.T([_.R4("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],VN.prototype,"onServiceRequestSent",null);_.T([_.R4("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],VN.prototype,"onServiceRequestCompleted",null);
_.T([_.R4("yt-service-request-error"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],VN.prototype,"onServiceRequestError",null);_.T([_.R4("yt-user-mention-suggestion-selected"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],VN.prototype,"onUserMentionSuggestionSelected",null);
_.T([_.R4("dom-change"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],VN.prototype,"onDomChange",null);VN=_.T([_.$3({is:"yt-user-mention-autosuggest-input",disableElementRegistration:!0})],VN);
_.r(VN,"yt-user-mention-autosuggest-input",function(){if(dt_===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-user-mention-autosuggest-input--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.social.yt_user_mention_autosuggest_input.yt.user.mention.autosuggest.input.css.js--\x3e<slot name="input" class="style-scope yt-user-mention-autosuggest-input"></slot>\n<tp-yt-iron-dropdown id="iron-dropdown" horizontal-align="auto" no-auto-focus="" no-overlap="true" opened="[[hasSuggestions(suggestionsResponse)]]" position-target="[[getPositionTarget(activeMention)]]" on-iron-overlay-opened="onDropdownOpened" class="style-scope yt-user-mention-autosuggest-input">\n  <yt-user-mention-suggestions-dropdown id="dropdown" class="dropdown-content style-scope yt-user-mention-autosuggest-input" slot="dropdown-content" data="[[suggestionsResponse]]" role="listbox" on-focused-suggestion-id-changed="onFocusedSuggestionIdChanged">\n  </yt-user-mention-suggestions-dropdown>\n</tp-yt-iron-dropdown>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;hjT===void 0&&(hjT=document.createElement("template"));var h=hjT;E.call(W,h.content.cloneNode(!0),F.content.firstChild);dt_=F}F=dt_;return F},{mode:2});var Ub=null;
_.k3({is:"ytd-commentbox",_template:function(){if(mAX!==void 0)return mAX;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commentbox--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="identity-chip" hidden="[[computeHideIdentityChipRenderer_(isLoading, zeroStepChannelCreationRenderer)]]" class="style-scope ytd-commentbox"></div>\n<div id="thumbnail-input-row" class="style-scope ytd-commentbox">\n  <yt-img-shadow id="author-thumbnail" height="[[computeAuthorThumbnailDimension_(isReply, isBackstageComment)]]" hidden="[[computeHideAuthorThumbnail_(isLoading, zeroStepChannelCreationRenderer)]]" thumbnail="[[data.authorThumbnail]]" width="[[computeAuthorThumbnailDimension_(isReply, isBackstageComment)]]" class="style-scope ytd-commentbox">\n  </yt-img-shadow>\n  <div id="main" hidden="[[isLoading]]" class="style-scope ytd-commentbox">\n    <div id="divider-line" class="style-scope ytd-commentbox"></div>\n    \n    <div id="creation-box" class$="[[computeCreationBoxClass_(isInputFocus_)]] style-scope ytd-commentbox" hidden="[[hasPollOrQuizRendererInEditDialog_]]">\n      <tp-yt-paper-input-container id="input-container" focused="{{isInputFocus_}}" no-label-float="" use-v2-underline="" class="style-scope ytd-commentbox">\n        <div slot="after-input" class="paper-input-input style-scope ytd-commentbox">\n          <ytd-emoji-input id="emoji" emoji-manager="[[emojiManager]]" vertical-suggestions-offset="[[verticalSuggestionsOffset]]" class="style-scope ytd-commentbox">\n            <yt-user-mention-autosuggest-input slot="input" suggestions-endpoint="[[data.userMentionSuggestionsEndpoint]]" class="style-scope ytd-commentbox">\n              <yt-formatted-string id="contenteditable-textarea" slot="input" enable-content-editable="true" maxlength="10000" override-aria-label="[[getSimpleString(placeholderFormattedText_)]]" plaintext-only="true" required="true" split-lines="1" text="[[data.editableText]]" on-dragenter="preventDefault_" on-dragleave="preventDefault_" on-dragover="preventDefault_" on-drop="plaintextDrop_" on-focus="focus" on-input="onInput_" on-keyup="onKeyUp_" on-paste="onPaste_" class="style-scope ytd-commentbox"></yt-formatted-string>\n            </yt-user-mention-autosuggest-input>\n          </ytd-emoji-input>\n          <div id="external-links-banner" hidden="[[!isExternalLinksBannerDisplayed]]" class="style-scope ytd-commentbox">\n            <yt-formatted-string text="[[data.advancedTierFeatures.externalLinks.verificationBannerMessage]]" class="style-scope ytd-commentbox">\n            </yt-formatted-string>\n            <ytd-button-renderer id="verification-button" data="[[data.advancedTierFeatures.externalLinks.verificationButton.buttonRenderer]]" class="style-scope ytd-commentbox">\n            </ytd-button-renderer>\n          </div>\n        </div>\n        <ytd-backstage-dismissable-attachment id="dismissable-attachment" slot="after-input" attachment-preview="[[prefilledContent_]]" dismiss-button="[[data.attachmentDismissButton]]" hidden="[[computeHideDismissableAttachment_(prefilledAttachment_)]]" class="style-scope ytd-commentbox">\n        </ytd-backstage-dismissable-attachment>\n        <div id="attachment-preview" slot="after-input" class="style-scope ytd-commentbox"></div>\n        <div id="image-select" class="paper-input-input style-scope ytd-commentbox" hidden="[[!hasImage_]]" slot="after-input"></div>\n        <ytd-backstage-video-link-attachment id="video-link-attachment" slot="after-input" hidden="[[!hasVideo_]]" class="style-scope ytd-commentbox">\n        </ytd-backstage-video-link-attachment>\n      </tp-yt-paper-input-container>\n    </div>\n    <ytd-poll-attachment id="poll-attachment" data="[[data.pollEditorInfo]]" hidden="[[!hasPoll_]]" class="style-scope ytd-commentbox">\n    </ytd-poll-attachment>\n    <ytd-backstage-image-poll-editor-renderer id="image-poll-attachment" data="[[data.imagePollEditorRenderer.imagePollEditorRenderer]]" editor-info="[[data.imagePollEditorInfo]]" hidden="[[!hasImagePoll_]]" class="style-scope ytd-commentbox">\n    </ytd-backstage-image-poll-editor-renderer>\n    <ytd-backstage-quiz-editor-renderer id="quiz-attachment" editor-info="[[data.quizEditorInfo]]" hidden="[[!hasQuiz_]]" class="style-scope ytd-commentbox">\n  </ytd-backstage-quiz-editor-renderer>\n    <slot name="repost-preview" class="style-scope ytd-commentbox"></slot>\n    <div id="poll-preview-edit-dialog" hidden="[[!hasPollOrQuizRendererInEditDialog_]]" class="style-scope ytd-commentbox">\n      <yt-formatted-string text="[[data.editableText]]" class="style-scope ytd-commentbox"></yt-formatted-string>\n      <div id="poll-preview" class="style-scope ytd-commentbox"></div>\n    </div>\n    <div id="footer" class="style-scope ytd-commentbox">\n      <span id="emoji-button" on-tap="onEmojiButtonTap_" hidden="[[!isEmojiButtonDisplayed]]" class="style-scope ytd-commentbox"></span>\n      <div id="attachments" hidden="[[computeHideAttachmentButtons_(data, addedAttachment, prefilledAttachment_, errorMessage_)]]" class="style-scope ytd-commentbox">\n        <template is="dom-repeat" items="[[attachmentButtonIds]]" as="buttonId" class="style-scope ytd-commentbox">\n          <ytd-button-renderer id="[[buttonId]]" data="[[getButtonRenderer(data, buttonId)]]" class="style-scope ytd-commentbox">\n          </ytd-button-renderer>\n        </template>\n      </div>\n      <div id="inline-scheduling-panel" hidden="[[!inlineSchedulePanel_]]" class="style-scope ytd-commentbox"></div>\n      <div id="footer-text" class="style-scope ytd-commentbox">\n        <yt-formatted-string id="footer-message" class$="[[computeFooterMessageClass_(alertMessage_, errorMessage_)]] style-scope ytd-commentbox" hidden="[[computeFooterMessageHidden_(alertMessage_, errorMessage_)]]" text="[[computeFooterMessage_(alertMessage_, errorMessage_)]]">\n        </yt-formatted-string>\n        <yt-formatted-string id="zero-step-footer-text" hidden="[[!zeroStepChannelCreationRenderer.footerText]]" text="[[zeroStepChannelCreationRenderer.footerText]]" class="style-scope ytd-commentbox">\n        </yt-formatted-string>\n      </div>\n      <div id="access-restrictions-selector" class="style-scope ytd-commentbox"></div>\n      <span id="char-count" hidden="[[!charLimit_]]" class="style-scope ytd-commentbox">[[charCount_]]/[[charLimit_]]</span>\n      <div id="buttons" class$="[[computeSubmitButtonClass_(dropdownSchedulePanel_, data.postOptionsMenu)]] style-scope ytd-commentbox">\n        <ytd-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" on-tap="onCancel_" class="style-scope ytd-commentbox">\n        </ytd-button-renderer>\n        <ytd-button-renderer id="submit-button" data="[[computeSubmitButton_(data, scheduleButton_)]]" disabled="[[submitButtonDisabled]]" overrides="[[computeSubmitButtonOverride(data, submitButtonDisabled, dropdownSchedulePanel_)]]" on-tap="onSubmit_" class="style-scope ytd-commentbox">\n        </ytd-button-renderer>\n        <div id="option-menu" hidden="[[dropdownSchedulePanel_]]" class="style-scope ytd-commentbox">\n          <ytd-menu-renderer data="[[data.postOptionsMenu.menuRenderer]]" disable-upgrade="[[!data.postOptionsMenu.menuRenderer]]" hidden="[[!data.postOptionsMenu.menuRenderer]]" icon="yt-icons:arrow_drop_down" no-ink-on-dropdown-button="" three-dot-button-override="[[computeThreeDotButtonOverride(submitButtonDisabled)]]" tonal-override="[[modern]]" class="style-scope ytd-commentbox">\n          </ytd-menu-renderer>\n        </div>\n      </div>\n    </div>\n    <div id="scheduling-panel" hidden="[[!dropdownSchedulePanel_]]" class="style-scope ytd-commentbox"></div>\n    <div id="emojis" hidden="[[!isEmojiPickerDisplayed]]" class="style-scope ytd-commentbox">\n      <span id="emoji-picker" class="style-scope ytd-commentbox"></span>\n    </div>\n  </div>\n  <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-commentbox"></tp-yt-paper-spinner-lite>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return mAX=F},
behaviors:[_.QtR.YtHostElementBehavior,_.$5,_.FM.YtActionHandlerBehavior,_.Ok.YtComponentBehavior,_.Ky.YtRendererstamperBehavior,_.jQz.YtdReduxBehavior],keyBindings:{left:"leftKeyPressed_",right:"rightKeyPressed_",end:"endKeyPressed_",backspace:"maybeBackspaceChip_","delete":"maybeDeleteChip_","ctrl+enter meta+enter":"submitIfNotBackstagePost_","ctrl+backspace alt+backspace":"maybeBackspaceChipWordMode_","ctrl+delete alt+delete":"maybeDeleteChipWordMode_"},properties:{data:{type:Object,observer:"dataChanged_"},
placeholderFormattedText_:{type:Object,computed:"computePlaceholderText_(data, addedAttachment, prefilledAttachment_)"},aadcGuidelinesState_:{type:Object,selectorArgs:["data.aadcGuidelinesStateEntityKey"],selector:function(F,W){return _.Mn(F.entities,"aadcGuidelinesStateEntityPayload",W)}},
dismissData_:{type:Object,value:null},commentboxStateKey_:{type:String,value:void 0},commentboxState_:{type:Object,selectorArgs:["commentboxStateKey_"],selector:function(F,W){return _.Mn(F.entities,"commentboxStateEntity",W)},
observer:"commentboxStateEntityChanged_"},receivedFocusPreviously_:{type:Boolean,value:!1},isReply:{type:Boolean,value:!1},isBackstageComment:{type:Boolean,computed:"computeIsBackstageComment_(data.avatarSize)",reflectToAttribute:!0},attachmentButtonIds:{type:Object,readOnly:!0,computed:"computeAttachmentButtonIds_()"},isBackstagePost:{type:Boolean,value:!1,reflectToAttribute:!0},serviceEndpoint:{type:Object,readOnly:!0,computed:"computeServiceEndpoint_(data)"},submitButtonDisabled:{type:Boolean,
value:!1},attachment:Object,isLoading:{type:Boolean,observer:"isLoadingChanged_"},errorMessage_:{type:Object,value:null},alertMessage_:{type:Object,value:null},imageUploadEndpoint_:{type:Object,computed:"computeImageUploadEndpoint_(data)"},rateLimitErrorCommands:{type:Object,computed:"computeRateLimitErrorCommands_(data)"},addedAttachment:{type:String,value:"none",reflectToAttribute:!0},prefilledAttachment_:{type:String,value:"none",reflectToAttribute:!0},previousText_:String,inlineSchedulePanel_:{type:Object,
computed:"computeInlineSchedulingPanel_(data.purpose, data.schedulingDateTimePicker)"},dropdownSchedulePanel_:{type:Object,computed:"computeDropdownSchedulingPanel_(data.purpose, data.schedulingDateTimePicker)"},scheduleButton_:Object,zeroStepChannelCreationRenderer:Object,enableCreationBox:{type:Boolean,reflectToAttribute:!0},isInputFocus_:{type:Boolean,observer:"onIsInputFocusChanged_"},hasImage_:{type:Boolean,computed:"computeHasImage_(addedAttachment)"},hasPollOrQuizRendererInEditDialog_:{type:Boolean,
computed:"computeHasPollOrQuizRendererInEditDialog_(data)"},hasVideo_:{type:Boolean,computed:"computeHasVideo_(addedAttachment)"},hasPoll_:{type:Boolean,computed:"computeHasPoll_(addedAttachment)"},hasImagePoll_:{type:Boolean,computed:"computeHasImagePoll_(addedAttachment)"},hasQuiz_:{type:Boolean,computed:"computeHasQuiz_(addedAttachment)"},prefilledContent_:{type:Object,readOnly:!0,computed:"computePrefilledContent_(data)"},editAttachment_:{type:Object,readOnly:!0,computed:"computeEditAttachment_(data)"},
isCreationBox:{type:Boolean,reflectToAttribute:!0,value:!1},isPopupBox:{type:Boolean,reflectToAttribute:!0,value:!1},emojiManager:{type:Object,readOnly:!0,value:function(){return _.Oz}},
isEmojiButtonDisplayed:{type:Boolean,computed:"computeIsEmojiButtonDisplayed_(data)",value:!1},isEmojiPickerDisplayed:{type:Boolean,value:!1,reflectToAttribute:!0},hasExternalLinksAccess_:{type:Boolean,computed:"computeHasExternalLinksAccess_(data)",value:!0},isExternalLinksBannerDisplayed:{type:Boolean,value:!1,reflectToAttribute:!0},emojiInput:Object,verticalSuggestionsOffset:{type:Number,value:30},isPostCreationDialogV2:{type:Boolean,reflectToAttribute:!0,value:!1},accessRestriction:{type:String},
charCount_:{type:Number,value:0},charLimit_:{type:Number,computed:"computeCharLimit_(data)"},aboveCharLimit_:{type:Boolean,reflectToAttribute:!0,value:!1},inputEventSupported_:{type:Boolean,value:!1},textRequiresScrolling:{type:Boolean,reflectToAttribute:!0,value:!1},localStorage:Object,modern:{type:Boolean,reflectToAttribute:!0,value:_.c("web_modern_buttons")},swatcheroo:{type:Boolean,reflectToAttribute:!0,value:_.c("kevlar_watch_grid")}},observers:["observePrefilledImage_(data.purpose, data.prefilledImageData, data.backstageAttachment)",
"observePrefilledVideo_(data.purpose, data.backstageAttachment)","observePrefilledPoll_(data.prefilledAttachment)"],listeners:{"yt-service-request-completed":"onYtServiceRequestCompleted_","yt-service-request-error":"onYtServiceRequestError_","yt-service-request-sent":"onYtServiceRequestSent_","yt-backstage-image-select-cancel":"onAttachmentDismiss_","yt-backstage-multi-image-cancel":"onAttachmentDismiss_","yt-backstage-image-select-alert":"onImageAlert_","yt-backstage-image-select-preview":"onImageSelected_",
"yt-backstage-multi-image-select":"onImagesSelected_","yt-backstage-poll-image-select":"onImagesSelected_","yt-img-crop-coordinates-update":"onImagePreviewCoordinatesUpdated_","yt-img-crop-reposition":"onImagePreviewReposition_","yt-poll-attachment-dismiss":"onAttachmentDismiss_","yt-image-poll-attachment-dismiss":"onAttachmentDismiss_","yt-quiz-attachment-dismiss":"onAttachmentDismiss_","yt-quiz-attachment-explanation-update":"onQuizExplanationUpdated_","yt-navigate":"onYtNavigate_","yt-video-link-selected":"onVideoLinkSelected_",
"yt-backstage-add-image-error":"onAddImageError_","yt-video-link-cancel":"onAttachmentDismiss_","yt-video-link-button-cancel":"onVideoLinkButtonCancel_","yt-commentbox-post-enable":"onSubmitButtonEnable_","yt-commentbox-post-disable":"onSubmitButtonDisable_","yt-backstage-attachment-dismissed":"onPrefilledContentDismissed_","yt-emoji-select":"onEmojiSelect_","yt-insert-suggestion":"onSuggestionInsert_","yt-select-emoji-suggestion":"onEmojiSuggestionClick_","ytd-date-time-selection-update":"onDateTimeSelectionUpdate_",
"ytd-date-time-selection-cancelled":"onDateTimeSelectionCancelled_","yt-mention-inserted":"onInsertMention_"},actionMap:{"yt-signal-action-ack-post-aadc-notice":"onAadcNoticeConfirm_","yt-hide-identity-chip-action":"onHideIdentityChip"},stampDom:{editAttachment_:{id:"attachment-preview",mapping:{backstageImageRenderer:"ytd-backstage-image-renderer",videoRenderer:{component:"ytd-video-renderer",properties:{isBackstageVideo:"[[isBackstagePost]]"}},playlistRenderer:{component:"ytd-playlist-renderer",
properties:{isBackstagePlaylist:"[[isBackstagePost]]"}},postMultiImageRenderer:"ytd-post-multi-image-renderer"}},"data.accessRestrictionsSelector":{id:"access-restrictions-selector",mapping:{dropdownRenderer:"ytd-flat-dropdown-renderer"}},"data.backstageAttachment":{id:"poll-preview",mapping:{pollRenderer:"ytd-backstage-poll-renderer",quizRenderer:"ytd-backstage-quiz-renderer"}},"imageUploadEndpoint_.imageEditor":{id:"image-select",mapping:{backstageImageSelectRenderer:{component:"ytd-backstage-image-select-renderer",
properties:{imageUploadEndpoint:"[[imageUploadEndpoint_]]",isBackstagePost:"[[isBackstagePost]]"}},backstageMultiImageSelectRenderer:{component:"ytd-backstage-multi-image-select-renderer",properties:{imageUploadEndpoint:"[[imageUploadEndpoint_]]"}}}},"data.emojiButton":{id:"emoji-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.emojiPicker":{id:"emoji-picker",mapping:{emojiPickerRenderer:{component:"yt-emoji-picker-renderer",properties:{emojiManager:"[[emojiManager]]"}}}},dropdownSchedulePanel_:{id:"scheduling-panel",
mapping:{dateTimePickerRenderer:"ytd-date-time-picker-renderer"}},inlineSchedulePanel_:{id:"inline-scheduling-panel",mapping:{dateTimePickerRenderer:"ytd-date-time-picker-renderer"}},"zeroStepChannelCreationRenderer.identityChipRenderer":{id:"identity-chip",mapping:{identityChipRenderer:"ytd-identity-chip-renderer"}}},ready:function(){document.addEventListener("tap",_.UO(this,this.onTap_));this.emojiInput=this.$.emoji},
isLoadingChanged_:function(F){this.fire(F?"yt-commentbox-loading-start":"yt-commentbox-loading-end")},
dataChanged_:function(F){this.set("submitButtonDisabled",void 0);this.clear();F&&this.computeIsEmojiButtonDisplayed_(F)&&(F=this.$$("#emoji-picker > yt-emoji-picker-renderer"))&&F.updateEmojiCategories()},
observePrefilledImage_:function(F,W,E){this.isValidPrefilledImage_(F,W,E)&&(this.prefilledAttachment_="image",this.prefilledImageData_=W,this.submitButtonDisabled=!1)},
observePrefilledVideo_:function(F,W){this.isValidPrefilledVideo_(F,W)&&(this.prefilledAttachment_="video")},
observePrefilledPoll_:function(F){F&&F.pollData&&F.pollData.choices&&(this.addedAttachment="poll",this.$["poll-attachment"].setPrefilledChoices(F.pollData.choices))},
attached:function(){this.$["input-container"].getElementsByClassName("underline")[0].style.height=0;_.vD();this.focus()},
detached:function(){document.removeEventListener("tap",_.UO(this,this.onTap_))},
created:function(){this.scheduledPublishTimeSec_=this.prefilledImageData_=this.imagePreviewCoordinates_=this.taggedVideoId_=this.selectedVideoId_=void 0;document.addEventListener("selectionchange",this.onSelectionChange_);this.textRequiresScrolling=!1;this.TEST_ONLY=void 0},
onEmojiButtonTap_:function(){this.isEmojiPickerDisplayed=!this.isEmojiPickerDisplayed;this.$$("#emoji-picker > yt-emoji-picker-renderer").selected=!this.$$("#emoji-picker > yt-emoji-picker-renderer").selected},
onEmojiSelect_:function(F){F=F.detail;F=F.isCustomEmoji?F.shortcuts[0]:F.emojiId;var W=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(W,F);this.maybeUpdateTextDirection_()},
getInputRange_:function(){var F=_.qv();if(F){F=F.getBrowserRangeObject();for(var W=F.commonAncestorContainer;W;){if(W===this.getEditableTextArea_())return F;W=W.parentNode}}F=this.getEditableTextArea_();F=_.jC(F,F.childNodes.length);F.select();return F.getBrowserRangeObject()},
insertTextWithEmojis_:function(F,W,E){(W=this.emojiManager.createDocumentFragment(W,!0,!1,E===void 0?!0:E))&&W.childNodes.length!==0&&(F.collapsed||F.deleteContents(),E=W.lastChild,F.insertNode(W),_.$nz(E).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize(),this.submitButtonDisabled=!1)},
onSelectionChange_:function(){var F=_.qv();if(F){var W=F.JSC$9155_getStartNode(),E=F.JSC$9155_getEndNode();if(SHw(W)&&SHw(E)){var h=F.JSC$9155_getStartOffset(),d;if(_.IZ&&W.nodeType===Node.ELEMENT_NODE&&(d=_.nBi(W)))_.jC(d,0).select();else{d=AD(W)?W:_.HE(W,AD);var V=AD(E)?E:_.HE(E,AD);if(d||V)if(F.isCollapsed()){if(W.nodeType===Node.TEXT_NODE){F=!0;h===W.length&&(F=!1);if(Ub==="end"||Ub==="right")F=!1;W=W.parentNode;F=[].concat(_.x9(W.parentNode.childNodes)).indexOf(W)+(F?0:1);_.jC(W.parentNode,F).select()}}else d?
d.previousSibling&&d.previousSibling.length>0?_.rp(E,F.JSC$9155_getEndOffset(),d.previousSibling,d.previousSibling.length-1).select():(W=document.createTextNode("\u200b"),d.parentNode.insertBefore(W,d),_.rp(E,F.JSC$9155_getEndOffset(),W,0).select()):V&&(V.nextSibling&&V.nextSibling.length>0?_.rp(W,F.JSC$9155_getStartOffset(),V.nextSibling,1).select():(E=document.createTextNode("\u200b"),V.parentNode.insertBefore(E,V.nextSibling),_.rp(W,F.JSC$9155_getStartOffset(),E,E.length).select()));Ub=null}}else Ub=
null}else Ub=null},
leftKeyPressed_:function(){Ub="left"},
rightKeyPressed_:function(){Ub="right"},
endKeyPressed_:function(){Ub="end"},
maybeDeleteChip_:function(){var F=EnW(!0);if(F){var W=_.qv(),E=W.JSC$9155_getStartNode();W=W.JSC$9155_getStartOffset();_.Ow(E,W,F,F.childNodes.length).select()}},
maybeBackspaceChip_:function(){var F=EnW(!1);if(F){var W=_.qv(),E=W.JSC$9155_getStartNode();W=W.JSC$9155_getStartOffset();_.Ow(E,W,F,0).select()}},
maybeBackspaceChipWordMode_:function(F){var W=_.qv();if(W.isCollapsed()){var E=W.JSC$9155_getStartNode();W=W.JSC$9155_getStartOffset();var h=hbo(E,W,!0);h&&(_.Ow(E,W,h,0).select(),document.execCommand("delete"),F.preventDefault(),F.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(F){var W=_.qv();if(W.isCollapsed()){var E=W.JSC$9155_getStartNode();W=W.JSC$9155_getStartOffset();var h=hbo(E,W,!1);h&&(_.Ow(E,W,h,h.childNodes.length).select(),document.execCommand("delete"),F.preventDefault(),F.stopImmediatePropagation())}},
onTap_:function(F){if(!F.defaultPrevented&&(F.currentTarget.tagName==="YTD-COMMENTBOX"&&AD(F.target)&&F.preventDefault(),this.isEmojiPickerDisplayed)){var W=this.$$("#emojis"),E=this.$$("#emoji-button"),h=this.getEditableTextArea_();if((F=F.path?F.path:F.composedPath&&F.composedPath())&&!F.includes(W)&&!F.includes(h)&&!F.includes(E))this.onEmojiButtonTap_()}},
isValidPrefilledImage_:function(F,W,E){return F==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&W!==void 0&&W.encryptedBlobId!==null&&W.sourceExternalVideoId!==null&&E!==void 0&&E.backstageImageRenderer!==null},
isValidPrefilledVideo_:function(F,W){return F==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&!!W&&!!W.videoRenderer&&!!W.videoRenderer.videoId},
isValidPrefilledAttachment_:function(F,W,E){return this.isValidPrefilledImage_(F,W,E)||this.isValidPrefilledVideo_(F,E)},
dismissPrefilledContent_:function(){this.prefilledImageData_=void 0;this.prefilledAttachment_="none"},
clear:function(){this.errorMessage_=this.alertMessage_=null;this.taggedVideoId_=void 0;if(_.c("enable_multi_image_post_creation")){var F=this.$$("ytd-backstage-multi-image-select-renderer");F&&F.hasImages()&&F.cancel()}else(F=this.$$("ytd-backstage-image-select-renderer"))&&this.hasImage_&&F.cancel();(F=this.$["poll-attachment"])&&this.hasPoll_&&F.clearPollOptions();(F=this.$["image-poll-attachment"])&&this.hasImagePoll_&&F.resetPollOptions();(F=this.$["quiz-attachment"])&&this.hasQuiz_&&F.resetQuizOptions();
(F=this.$["video-link-attachment"])&&this.hasVideo_&&F.cancel();(F=this.$["access-restrictions-selector"].firstElementChild)&&F.reset();this.prefilledAttachment_!=="none"&&this.dismissPrefilledContent_();this.addedAttachment="none";this.prefilledImageData_=this.scheduledPublishTimeSec_=this.imagePreviewCoordinates_=this.selectedVideoId_=void 0;this.submitButtonDisabled=!0;this.setTextAreaValue_(this.data.editableText);this.previousText_=this.getTextAreaValue().trim();this.updateCharCount_();this.isExternalLinksBannerDisplayed=
this.isEmojiPickerDisplayed=this.receivedFocusPreviously_=!1;if(this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE")this.onDateTimeSelectionCancelled_()},
getEditableTextArea_:function(){return _.Z(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.Z(this.hostElement).querySelector("#contenteditable-textarea")},
getTextAreaValue:function(){return this.convertHrefToAtMentionAndImgToEmoji_(this.getEditableTextArea_(),!0)},
getTextLength:function(){return this.convertHrefToAtMentionAndImgToEmoji_(this.getEditableTextArea_(),!1).trim().length},
convertHrefToAtMentionAndImgToEmoji_:function(F,W){F=mLW(F,this.emojiManager,W).cloneNode(!0);for(W=F.firstChild;W;)if(W.nodeType!==1)W=W.nextSibling;else switch(W.tagName){case "BR":var E=_.aY();_.Yea(E,W);W=E.nextSibling;break;case "DIV":(E=W.lastChild)&&W.nextSibling&&_.lk(_.aY(),E);W.previousSibling&&(W.previousSibling.nodeType===1||W.previousSibling.nodeType===3&&!W.previousSibling.textContent.endsWith("\n"))&&_.bk(_.aY(),W);E&&E.nodeName==="BR"&&_.Bb(E);E=W;W.hasChildNodes()?(W=W.firstChild,
_.wOO(E)):(W=W.nextSibling,_.Bb(E));break;default:W=W.nextSibling}return dAe(F)},
onAddImageError_:function(F){F.stopPropagation();this.errorMessage_=_.Gr(F.detail)},
setTextAreaValue_:function(F){F||(F="");var W=this.getEditableFormattedString_();W.text="";this.getEditableTextArea_().innerText="";typeof F==="string"&&(F={runs:[{text:F}]});W.text=F},
focus:function(){this.$["author-thumbnail"].markDirty();this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();Ub=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var F=this.getEditableTextArea_();F&&(_.jC(F,F.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.b0("HTML_DIR")==="rtl"){var F=this.getEditableTextArea_(),W=this.getTextAreaValue()!==""?"auto":"rtl";F.setAttribute("dir",W)}},
maybeUpdateExternalLinksBanner_:function(){!this.hasExternalLinksAccess_&&this.computePostHasExternaLink_()?this.isExternalLinksBannerDisplayed=!0:this.isExternalLinksBannerDisplayed=!1},
computePostHasExternaLink_:function(){var F;return QdY((F=this.$["quiz-attachment"])==null?void 0:F.getExplanationText())||QdY(this.getTextAreaValue().trim())},
handleInputEvent_:function(){var F=null;if(this.isEmojiButtonDisplayed){var W=this.getInputRange_();W&&(F=this.emojiInput.retrieveTextBeforeRange(W))}this.insertText_(F,!0);this.updateCharCount_();this.setSubmitButton_();F=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=F.scrollHeight>F.clientHeight,this.maybeUpdateExternalLinksBanner_());this.maybeHeightChanged()},
maybeHeightChanged:function(){var F=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:F})},
onInput_:function(){this.inputEventSupported_=!0;this.handleInputEvent_()},
onKeyUp_:function(){this.inputEventSupported_||this.handleInputEvent_()},
updateCharCount_:function(){this.charCount_=this.getTextLength();this.aboveCharLimit_=!!this.charLimit_&&this.charCount_>this.charLimit_},
onPaste_:function(F){if(this.isEmojiButtonDisplayed)this.onPasteEmoji_(F)},
onPasteEmoji_:function(F){F.preventDefault();F.stopImmediatePropagation();F=F.clipboardData.getData("text/plain");this.insertText_(F,!1,!1)},
insertText_:function(F,W,E){W=W===void 0?!1:W;E=E===void 0?!0:E;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&F){var h=this.getInputRange_().cloneRange();this.emojiManager&&h&&(W&&this.emojiInput.offsetStartOfRangeBy(h,F.length),this.insertTextWithEmojis_(h,F,E),pLo(this.getEditableTextArea_().lastChild)||(h=this.getInputRange_().cloneRange()),h&&(this.emojiInput.updateSuggestions(h,F),this.updateSuggestionOffset_(h)))}},
setSubmitButton_:function(){if(this.data){var F=this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT",W=this.data&&this.data.editableText&&this.data.purpose!=="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE";if(F||W){var E=this.getTextAreaValue().trim();W=E===this.previousText_;E=!E||this.aboveCharLimit_;F&&this.data&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(E=this.aboveCharLimit_);this.submitButtonDisabled=
W||E||!this.getTextLength();F&&_.c("enable_post_scheduling")&&(this.submitButtonDisabled=W&&!this.scheduledPublishTimeSec_||E)}else this.submitButtonDisabled=!this.isValidInput_()}},
onSubmitButtonEnable_:function(){this.setSubmitButton_()},
onSubmitButtonDisable_:function(){this.submitButtonDisabled=!0},
getSimpleString:_.Yr,computeCreationBoxClass_:function(F){return F?"focused":"not-focused"},
computeFooterMessageClass_:function(F,W){return W?"footer-error-message":"footer-alert-message"},
computeFooterMessage_:function(F,W){return W?W:F},
computeFooterMessageHidden_:function(F,W){return!W&&!F},
computePlaceholderText_:function(F,W,E){return(E==="video"||E==="image")&&(F==null?0:F.prefilledPlaceholderText)?F==null?void 0:F.prefilledPlaceholderText:W==="poll"||W==="image-poll"?F==null?void 0:F.pollPostPlaceholderText:W==="quiz"?F==null?void 0:F.quizPostPlaceholderText:W==="image"?F==null?void 0:F.imagePostPlaceholderText:F==null?void 0:F.placeholderText},
computeHideAttachmentButtons_:function(F,W,E,h){return F===void 0?!1:h&&this.getSimpleString(h)===this.getSimpleString(F.rateLimitErrorMessage)?!0:W!=="none"||E!=="none"||!F.videoLinkButton&&!F.pollButton&&!F.imagePollButton&&!F.quizButton&&!F.imageButton},
computeHideDismissableAttachment_:function(F){return F!=="image"&&F!=="video"},
computeHasVideo_:function(F){return F==="video"},
computeHasImage_:function(F){return F==="image"},
computeHasPoll_:function(F){return F==="poll"},
computeHasImagePoll_:function(F){return F==="image-poll"},
computeHasQuiz_:function(F){return F==="quiz"},
computeHasPollOrQuizRendererInEditDialog_:function(F){return F&&F.backstageAttachment?F.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&!(!F.backstageAttachment.quizRenderer&&!F.backstageAttachment.pollRenderer):!1},
computePrefilledContent_:function(F){if(this.isValidPrefilledAttachment_(F.purpose,F.prefilledImageData,F.backstageAttachment))return F.backstageAttachment},
computeEditAttachment_:function(F){if(this.computePrefilledContent_(F)===void 0)return F.backstageAttachment},
computeAuthorThumbnailDimension_:function(F,W){return F&&!W?24:40},
computeImageUploadEndpoint_:function(F){return this.get("imageButton.buttonRenderer.navigationEndpoint.backstageImageUploadEndpoint",F)},
computeRateLimitErrorCommands_:function(F){var W,E;return F==null?void 0:(W=F.advancedTierFeatures)==null?void 0:(E=W.rateLimit)==null?void 0:E.rateLimitCommands},
computeIsBackstageComment_:function(F){return!(!F||F!=="COMMENT_DIALOG_AVATAR_SIZE_TYPE_BACKSTAGE_COMMENT")},
computeServiceEndpoint_:function(F){return this.get("submitButton.buttonRenderer.serviceEndpoint",F)||this.get("replyButton.buttonRenderer.serviceEndpoint",F)||this.get("postButton.buttonRenderer.serviceEndpoint",F)},
computeSubmitButtonOverride:function(){if(_.c("web_modern_buttons")){var F,W;return{segmentedPosition:this.dropdownSchedulePanel_||!((F=this.data)==null?0:(W=F.postOptionsMenu)==null?0:W.menuRenderer)?void 0:"start",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}}},
computeThreeDotButtonOverride:function(){if(_.c("web_modern_buttons"))return{segmentedPosition:"end",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}},
computeSubmitButton_:function(F,W){F=this.get("submitButton.buttonRenderer",F)||this.get("replyButton.buttonRenderer",F)||this.get("postButton.buttonRenderer",F);W&&(F=W);F&&(F=Object.assign({},F),F.serviceEndpoint=void 0,F.isDisabled=this.submitButtonDisabled);return F},
computeHasExternalLinksAccess_:function(F){if(_.c("enable_rfa_external_links")){var W,E,h;return(h=F==null?void 0:(W=F.advancedTierFeatures)==null?void 0:(E=W.externalLinks)==null?void 0:E.allowExternalLinks)!=null?h:!0}return!0},
computeIsEmojiButtonDisplayed_:function(F){return F.emojiButton&&F.emojiPicker&&F.emojiPicker.emojiPickerRenderer&&F.emojiPicker.emojiPickerRenderer.categories?F.emojiPicker.emojiPickerRenderer.categories.find(function(W){return W.emojiPickerCategoryRenderer?W.emojiPickerCategoryRenderer.emojiIds&&W.emojiPickerCategoryRenderer.emojiIds.length>0:W.emojiPickerUpsellCategoryRenderer?W.emojiPickerUpsellCategoryRenderer.emojis&&W.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1}):!1},
computeCharLimit_:function(F){return F.charLimit?F.charLimit:null},
computeDropdownSchedulingPanel_:function(F,W){if(F==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&W)return W},
computeInlineSchedulingPanel_:function(F,W){if(F==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&W)return W},
computeHideAuthorThumbnail_:function(F,W){return F||this.computeUseIdentityChip_(W)},
computeHideIdentityChipRenderer_:function(F,W){return F||!this.computeUseIdentityChip_(W)},
computeUseIdentityChip_:function(F){return!!F&&!!F.identityChipRenderer},
getSharedPostId_:function(){return this.data.backstageAttachment&&this.data.backstageAttachment.postRenderer&&this.data.backstageAttachment.postRenderer.postId?this.data.backstageAttachment.postRenderer.postId:void 0},
onYtNavigate_:function(F){var W,E,h,d;(F==null?0:(W=F.detail)==null?0:(E=W.endpoint)==null?0:E.ypcGetOffersEndpoint)||(F==null?0:(h=F.detail)==null?0:(d=h.endpoint)==null?0:d.ypcOffersEndpoint)?(F.stopPropagation(),_.UT(this,[F.detail.endpoint])):this.get("detail.endpoint.backstageImageUploadEndpoint",F)&&(F.stopPropagation(),this.addedAttachment="image",this.submitButtonDisabled=!0)},
onVideoLinkSelected_:function(F){this.addedAttachment="video";this.selectedVideoId_=F.detail.videoId},
commentboxStateEntityChanged_:function(F){var W=this;(F==null?void 0:F.state)=="COMMENTBOX_STATE_INITIAL"?(this.clear(),this.fire("yt-commentbox-dismiss",this.dismissData_),this.dismissData_=null):(F==null?void 0:F.state)=="COMMENTBOX_STATE_WRITING"&&Promise.resolve().then(function(){W.focus()})},
onYtServiceRequestSent_:function(F,W){if(W.actions)for(F=_.U(W.actions),W=F.next();!W.done;W=F.next())W.value.createPollAction&&(this.submitButtonDisabled=!0)},
onYtServiceRequestCompleted_:function(F){this.isLoading=!1;var W=this.get("detail.actions.0.showErrorAction.errorMessage.messageRenderer.text",F),E,h,d,V=F==null?void 0:(E=F.detail)==null?void 0:(h=E.data)==null?void 0:(d=h.actionResult)==null?void 0:d.commentboxStateEntityKey;if(W)this.errorMessage_=W;else if(V){var R;this.dismissData_=F==null?void 0:(R=F.detail)==null?void 0:R.data;this.commentboxStateKey_=V}else{this.clear();var M;this.fire("yt-commentbox-dismiss",F==null?void 0:(M=F.detail)==
null?void 0:M.data)}},
onYtServiceRequestError_:function(F){F.stopPropagation();this.isLoading=!1;var W,E;if(((W=this.data)==null?void 0:W.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"||((E=this.data)==null?void 0:E.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE")if(W=this.get("detail.error.args",F)||[],W.length>1&&W[1].message){this.handlePostsServiceRequestError_(W[1].message);return}(F=this.get("detail.error.message",F))?this.errorMessage_=this.data.errorMessage||_.Gr(F):(this.clear(),this.fire("yt-commentbox-dismiss"))},
handlePostsServiceRequestError_:function(F){if(_.c("enable_rfa_rate_limits")&&this.rateLimitErrorCommands)for(var W=_.U(this.rateLimitErrorCommands),E=W.next();!E.done;E=W.next())if(E=E.value,E.errorLabel===F){_.ei(E.command,this.hostElement);return}this.errorMessage_=_.Gr(F)},
submitIfNotBackstagePost_:function(F){if(!this.isBackstagePost)this.onSubmit_(F)},
onSubmit_:function(F){var W=this,E,h,d,V,R,M,g,t,C,B,I,x,A,X,P;return _.e(function(b){switch(b.nextAddress){case 1:F.stopPropagation();if(!W.serviceEndpoint||!W.isValidInput_())return b.return();if(W.shouldShowPostAadcNotice_())return W.showPostAadcNotice_(),b.return();if(W.shouldShowCommentAadcNotice_())return W.showCommentAadcNotice_(),b.return();if(!(W.$$("ytd-backstage-multi-image-select-renderer")&&W.hasImage_&&_.c("enable_multi_image_post_creation"))){b.jumpTo(2);break}E=W.$$("ytd-backstage-multi-image-select-renderer");
return _.Q(b,E.getAllUploadStatuses(),3);case 3:h=b.yieldResult;if(!h)return b.return();d=_.U(h);for(V=d.next();!V.done;V=d.next())if(R=V.value,R.encryptedBlobId===void 0)return W.isLoading=!1,g=M=void 0,W.errorMessage_=(g=(M=W.imageUploadEndpoint_)==null?void 0:M.imageEditor.backstageMultiImageSelectRenderer.uploadFailureError)!=null?g:null,b.return();return b.return(W.submitForm_(void 0,void 0,void 0,void 0,E.images,W.taggedVideoId_));case 2:if(!W.hasImagePoll_||!W.$["image-poll-attachment"]){b.jumpTo(4);
break}return _.Q(b,W.$["image-poll-attachment"].getAllUploadStatuses(),5);case 5:t=b.yieldResult;if(!t)return b.return();C=_.U(t);for(B=C.next();!B.done;B=C.next())if(I=B.value,!I.encryptedBlobId)return W.isLoading=!1,x=void 0,W.errorMessage_=(x=W.data.errorMessage)!=null?x:null,b.return();case 4:X=(A=W.$$("ytd-backstage-image-select-renderer"))&&A.uploadPromise(),P=W.getSharedPostId_(),X?X.then(function(){W.submitForm_.apply(W,_.x9(_.Dd.apply(0,arguments)))}).catch(function(l){W.isLoading=!1;
W.errorMessage_=_.Gr(l.message)}):W.selectedVideoId_?W.submitForm_(void 0,W.selectedVideoId_):W.prefilledAttachment_==="image"?W.submitForm_(W.prefilledImageData_.encryptedBlobId,void 0,void 0,W.prefilledImageData_.sourceExternalVideoId,void 0,W.taggedVideoId_):W.prefilledAttachment_==="video"?W.submitForm_(void 0,W.data.backstageAttachment.videoRenderer.videoId):P?W.submitForm_(void 0,void 0,P):W.taggedVideoId_!==void 0?W.submitForm_(void 0,void 0,void 0,void 0,void 0,W.taggedVideoId_):W.submitForm_(),
_.gG(b)}})},
openSchedulingPanel:function(F){F&&F.scheduleButton&&F.scheduleButton.buttonRenderer&&(this.scheduleButton_=F.scheduleButton.buttonRenderer);F&&F.dateTimePicker&&this.set("data.schedulingDateTimePicker",F.dateTimePicker)},
openImagePollComponent:function(){this.addedAttachment="image-poll";this.$["image-poll-attachment"]&&this.$["image-poll-attachment"].resetPollOptions()},
openQuizComponent:function(){this.addedAttachment="quiz";this.$["quiz-attachment"]&&this.$["quiz-attachment"].resetQuizOptions()},
onCancel_:function(F){F.stopPropagation();this.clear();this.fire("yt-commentbox-dismiss")},
onPrefilledContentDismissed_:function(F){F.stopPropagation();this.dismissPrefilledContent_();this.setSubmitButton_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
onQuizExplanationUpdated_:function(){this.maybeUpdateExternalLinksBanner_()},
onImageAlert_:function(F){F.stopPropagation();F.detail.alertMessage&&(this.alertMessage_=F.detail.alertMessage)},
onImageSelected_:function(F){F.stopPropagation();this.setSubmitButton_()},
onImagesSelected_:function(F){F.stopPropagation();this.errorMessage_=null;this.setSubmitButton_()},
onImagePreviewCoordinatesUpdated_:function(F){F.stopPropagation();this.imagePreviewCoordinates_=JSON.stringify(F.detail);this.setSubmitButton_()},
onImagePreviewReposition_:function(F){F.stopPropagation();this.imagePreviewCoordinates_=void 0;this.submitButtonDisabled=!0},
onVideoLinkButtonCancel_:function(){this.getEditableTextArea_().focus()},
onAddVideoLink:function(F){var W=this.$["video-link-attachment"];W&&W.onLaunchVideoPicker(F)},
onAttachmentDismiss_:function(F){F.stopPropagation();this.addedAttachment="none";this.alertMessage_=this.errorMessage_=null;this.imagePreviewCoordinates_=this.selectedVideoId_=void 0;this.setSubmitButton_();this.getEditableTextArea_().focus()},
isValidInput_:function(){if(this.prefilledAttachment_==="image"&&!this.prefilledImageData_||this.prefilledAttachment_==="video"&&!this.data.backstageAttachment.videoRenderer.videoId||this.addedAttachment==="image"&&_.c("enable_multi_image_post_creation")&&(!this.$$("ytd-backstage-multi-image-select-renderer")||!this.$$("ytd-backstage-multi-image-select-renderer").hasImages())||!(this.addedAttachment!=="image"||_.c("enable_multi_image_post_creation")||this.$$("ytd-backstage-image-select-renderer")&&
this.$$("ytd-backstage-image-select-renderer").hasPreview&&this.imagePreviewCoordinates_)||this.addedAttachment==="poll"&&this.$["poll-attachment"]&&!this.$["poll-attachment"].isValid())return!1;var F;if(this.addedAttachment==="image-poll"&&((F=this.$["image-poll-attachment"])==null||!F.isValid()))return!1;var W;if(this.addedAttachment==="quiz"&&((W=this.$["quiz-attachment"])==null||!W.isValid())||this.addedAttachment==="video"&&this.$["video-link-attachment"]&&!this.$["video-link-attachment"].isValid()||
this.aboveCharLimit_||this.dropdownSchedulePanel_&&!this.scheduledPublishTimeSec_)return!1;F=!1;this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(F=!0);if(this.addedAttachment==="image"||this.prefilledAttachment_==="image")F=!0;return F||!!this.getTextAreaValue().trim()},
submitForm_:function(F,W,E,h,d,V){var R=this.getTextAreaValue().trim(),M={};this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&R===this.previousText_&&(R=void 0);R!==void 0&&(M.comment_text=R);this.isLoading=!0;V!=void 0&&(M.tagged_video_id=V);F?(M.image_blob_id=F,this.imagePreviewCoordinates_&&(M.image_preview_coordinates=this.imagePreviewCoordinates_)):W?M.attached_video_id=W:E?M.shared_post_id=E:d&&d.length>0&&(M.images_data=d.map(function(g){return{encryptedBlobId:g.encryptedBlobId,
previewCoordinates:g.previewCoordinates}}));
h&&(M.source_video_id=h);this.data.accessRestrictionsSelector&&this.data.accessRestrictionsSelector.dropdownRenderer&&(M.access_restrictions=this.accessRestriction?this.accessRestriction:this.$["access-restrictions-selector"].firstElementChild.value);this.addedAttachment==="poll"&&(M.poll_options=this.$["poll-attachment"].getPollOptions());this.addedAttachment==="image-poll"&&(M.image_poll_options=this.$["image-poll-attachment"].getPostCreateOptions());_.c("enable_quiz_creation")&&this.addedAttachment===
"quiz"&&(M.quiz_options=this.$["quiz-attachment"].getPostCreateOptions());_.c("enable_post_scheduling")&&this.scheduledPublishTimeSec_&&(M.scheduled_publish_time_sec=this.scheduledPublishTimeSec_);_.UT(this,[this.serviceEndpoint,M])},
onIsInputFocusChanged_:function(F,W){F?this.fire("yt-autonav-pause-focus"):W!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(F){var W=this.getEditableTextArea_();[].concat(_.x9(F.dataTransfer.items)).forEach(function(E){E.kind==="string"&&E.type.match("^text/plain")&&E.getAsString(function(h){W.appendChild(document.createTextNode(h))})});
F.preventDefault()},
preventDefault_:function(F){F.preventDefault()},
onSuggestionInsert_:function(F){this.insertTextWithEmojis_(F.detail.range,F.detail.text)},
onEmojiSuggestionClick_:function(F){this.emojiInput.insertSuggestion(F.detail)},
computeSubmitButtonClass_:function(F,W){return!W||F?"":"with-options"},
updateSuggestionOffset_:function(F){if(this.emojiInput&&_.Z(this.emojiInput).querySelector("#dropdown")){var W=this.getEditableTextArea_().getBoundingClientRect().bottom,E=F.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(W-E)+5;W=this.getEditableTextArea_().getBoundingClientRect().left;F=F.getBoundingClientRect().left-W;_.Z(this.emojiInput).querySelector("#dropdown").style.marginLeft=F+"px"}},
onDateTimeSelectionCancelled_:function(){this.scheduleButton_=void 0;this.set("data.schedulingDateTimePicker",null);this.scheduledPublishTimeSec_=void 0;this.setSubmitButton_()},
onDateTimeSelectionUpdate_:function(F){if(_.c("enable_post_scheduling")&&this.data&&this.data.purpose){F=F.detail;if(Math.floor(Date.now()/1E3)>=F)this.scheduledPublishTimeSec_=void 0;else if(this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"){var W=parseInt(this.get("schedulingDateTimePicker.dateTimePickerRenderer.defaultTimeSec",this.data),10);isNaN(W)||W!==F?this.scheduledPublishTimeSec_=F:this.scheduledPublishTimeSec_=void 0}else this.scheduledPublishTimeSec_=F;this.setSubmitButton_()}},
computeAttachmentButtonIds_:function(){var F=["image-button","image-poll-button","poll-button"];_.c("enable_quiz_creation")&&F.push("quiz-button");_.c("auto_convert_posts_video_tag")||F.push("video-link-button");return F},
getButtonRenderer:function(F,W){if(F)switch(W){case "video-link-button":var E;return((E=F.videoLinkButton)==null?void 0:E.buttonRenderer)||void 0;case "image-button":var h;return((h=F.imageButton)==null?void 0:h.buttonRenderer)||void 0;case "poll-button":var d;return((d=F.pollButton)==null?void 0:d.buttonRenderer)||void 0;case "image-poll-button":var V;return((V=F.imagePollButton)==null?void 0:V.buttonRenderer)||void 0;case "quiz-button":var R;return((R=F.quizButton)==null?void 0:R.buttonRenderer)||
void 0}},
shouldShowPostAadcNotice_:function(){var F;return(F=this.data)==null||!F.showAadcNoticeCommand||this.getLocalStorage_().get(this.getAadcNoticeShownKey_())?!1:!0},
shouldShowCommentAadcNotice_:function(){var F,W;return!((F=this.data)==null||!F.openAadcDialog)&&!((W=this.aadcGuidelinesState_)==null||!W.shouldRequireViewerAck)},
getAadcNoticeShownKey_:function(){return"post-aadc-notice-shown-"+_.b0("DATASYNC_ID","unknown")},
showPostAadcNotice_:function(){var F;((F=this.data)==null?0:F.showAadcNoticeCommand)&&this.resolveCommand(this.data.showAadcNoticeCommand)},
showCommentAadcNotice_:function(){this.resolveCommand(this.data.openAadcDialog)},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.bY("yt-post"));return this.localStorage},
onAadcNoticeConfirm_:function(F){F.clickTrackingParams&&_.z4().clickCommand(F);this.getLocalStorage_().set(this.getAadcNoticeShownKey_(),!0);_.dW(this,"yt-close-popup-action")},
onHideIdentityChip:function(F){var W;this.set("data.placeholderText",(W=F.hideIdentityChipAction)==null?void 0:W.placeholderText);this.set("zeroStepChannelCreationRenderer",{})}});var RJ=function(){var F=_.n.apply(this,arguments)||this;F.isOpen=!1;F.modern=_.c("web_modern_buttons");F.roundedContainer=!0;F.dropdownButtonOverride=_.c("web_modern_buttons")?{segmentedPosition:"end",state:"disabled",type:"filled"}:void 0;F.inPopupContainer=!1;F.isCommentboxLoading=!1;var W=["image-button","image-poll-button","poll-button"];_.c("enable_quiz_creation")&&W.push("quiz-button");_.c("auto_convert_posts_video_tag")||W.push("video-link-button");F.attachmentButtonIds=W;F.actionMap={"yt-create-comment-action":"onCreateCommentAction",
"yt-create-poll-action":"onCreatePollAction","yt-add-video-link-action":"onAddVideoLinkAction","yt-show-scheduling-panel-command":"onShowSchedulingPanelCommand","yt-create-image-poll-command":"onCreateImagePollCommand","yt-create-quiz-command":"onCreateQuizCommand"};return F};
_.k(RJ,_.n);_.N=RJ.prototype;_.N.computeButtonOverride=function(){var F;return((F=this.data)==null?0:F.postOptionsMenu)&&_.c("web_modern_buttons")?{segmentedPosition:"start"}:void 0};
_.N.configureRendererStamper=function(){var F={"data.accessRestrictionsSelector":{id:"access-restrictions-selector",mapping:{dropdownRenderer:{component:"ytd-flat-dropdown-renderer",classListBinding:"[[dropdownRendererClasses]]"}}},"data.pollButton":{id:"poll-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.imagePollButton":{id:"image-poll-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.imageButton":{id:"image-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.quizButton":{id:"quiz-button",
mapping:{buttonRenderer:"ytd-button-renderer"}},"data.postOptionsMenu":{id:"option-menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:arrow_drop_down"},properties:{tonalOverride:"[[modern]]",threeDotButtonOverride:"[[dropdownButtonOverride]]"}}}}};_.c("auto_convert_posts_video_tag")||(F["data.videoLinkButton"]={id:"video-link-button",mapping:{buttonRenderer:"ytd-button-renderer"}});return F};
_.N.ready=function(){var F=this,W=_.Z(this.hostElement).querySelector("#placeholder-area"),E=function(h){F.onOpen(h)};
W.addEventListener("tap",E);W.addEventListener("keypress",E)};
_.N.showButtonEduTooltip=function(){var F,W,E,h,d,V,R;if(_.c("enable_quiz_creation")&&((F=this.data)==null?0:(W=F.quizButton)==null?0:(E=W.buttonRenderer)==null?0:(h=E.hint)==null?0:(d=h.hintRenderer)==null?0:(V=d.content)==null?0:(R=V.bubbleHintRenderer)==null?0:R.text)&&(_.d_.getInstance(),F=NX(this.data.quizButton.buttonRenderer.hint.hintRenderer.content.bubbleHintRenderer.text,"quiz-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"quiz-button-edu-displayed-impression",3),(F==null?void 0:
F.length)>0)){this.ytComponentBehavior.resolveCommand(F[0],{form:{element:this.quizButton}});return}var M;if((M=this.data)==null?0:M.imagePollButtonTooltip)if(_.d_.getInstance(),M=NX(this.data.imagePollButtonTooltip,"image-poll-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"image-poll-button-edu-displayed-impression",3),(M==null?void 0:M.length)>0){this.ytComponentBehavior.resolveCommand(M[0],{form:{element:this.imagePollButton}});return}var g;_.c("enable_multi_image_post_creation")&&
((g=this.data)==null?0:g.multiImageButtonTooltip)&&(_.d_.getInstance(),g=NX(this.data.multiImageButtonTooltip,"multi-image-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"multi-image-button-edu-displayed-impression",3),(g==null?void 0:g.length)>0&&this.ytComponentBehavior.resolveCommand(g[0],{form:{element:this.imageButton}}))};
_.N.onCreatePollAction=function(F){_.D(F,WZu)&&(this.JSC$13593_commentbox.addedAttachment="poll",this.openDialog())};
_.N.onAddVideoLinkAction=function(F){if(_.D(F,FZ_))this.JSC$13593_commentbox.onAddVideoLink(F)};
_.N.onShowSchedulingPanelCommand=function(F){(F=_.D(F,XYp))&&this.openSchedulingPanel(F)};
_.N.onCreateImagePollCommand=function(F){_.D(F,OBu)&&(this.JSC$13593_commentbox.openImagePollComponent(),this.openDialog())};
_.N.onCreateQuizCommand=function(F){_.D(F,bB_)&&(this.JSC$13593_commentbox.openQuizComponent(),this.openDialog())};
_.N.openSchedulingPanel=function(F){_.c("enable_post_scheduling")&&(this.openDialog(),this.JSC$13593_commentbox.openSchedulingPanel(F))};
_.N.onCreateCommentAction=function(F){this.get("createCommentAction.contents",F)&&(this.JSC$13593_commentbox.clear(),this.closeDialog())};
_.N.onOpen=function(F){F instanceof KeyboardEvent&&F.type==="keypress"&&F.keyCode!==13&&F.keyCode!==32||(this.data.prepareAccountEndpoint?_.hF(this.hostElement,"yt-navigate",{endpoint:this.data.prepareAccountEndpoint}):this.openDialog())};
_.N.onYtCommentboxDismiss=function(){this.closeDialog()};
_.N.onYtCommentboxLoadingStart=function(F){F.stopPropagation();this.isCommentboxLoading=!0};
_.N.onYtCommentboxLoadingEnd=function(F){F.stopPropagation();this.isCommentboxLoading=!1};
_.N.onYtVideoLinkButtonCancel=function(F){F.stopPropagation();this.onOpen(F)};
_.N.onYtVideoLinkSelected=function(F){F.stopPropagation();this.onOpen(F)};
_.N.onIronSelect=function(F){F.stopPropagation();F.detail.item.tagName==="YTD-PRIVACY-DROPDOWN-ITEM-RENDERER"&&this.accessRestriction!=F.detail.item.value&&(this.accessRestriction?(this.accessRestriction=F.detail.item.value,this.onOpen(F)):this.accessRestriction=F.detail.item.value)};
_.N.onYtNavigate=function(F){this.get("detail.endpoint.backstageImageUploadEndpoint",F)&&(this.JSC$13593_commentbox.addedAttachment="image",this.JSC$13593_commentbox.submitButtonDisabled=!0,this.onOpen(F))};
_.N.onRequestSent=function(F){if(_.c("web_button_rework"))for(var W=_.U(F.detail),E=W.next();!E.done;E=W.next())_.D(E.value,wyp)&&(this.JSC$13593_commentbox.addedAttachment="image",this.JSC$13593_commentbox.submitButtonDisabled=!0,this.onOpen(F))};
_.N.openDialog=function(){this.JSC$13593_commentbox.accessRestriction=this.accessRestriction;this.isOpen=!0;this.JSC$13593_commentbox.focus()};
_.N.onPopupClosed=function(){_.d_.getInstance()};
_.N.computeCreationDisabled=function(F){return!!F};
_.N.computeIsCreationDialog=function(F){return!!F&&F==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"};
_.N.computeDisabledPostButton=function(F){if(!F)return null;F.isDisabled=!0;return F};
_.N.computeIsCreationDialogWithHeader=function(F){return!this.inPopupContainer&&!!F&&!!F.authorText&&F.purpose!="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"};
_.N.computeIsHeaderHidden=function(F,W){return!F||W};
_.N.computeDropdownRendererClasses=function(F){return F?["text-secondary-style"]:[]};
_.N.closeDialog=function(){this.isCommentboxLoading=this.isOpen=!1;var F=_.Z(this.hostElement).querySelector("#access-restrictions-selector").firstElementChild;F&&F.reset()};
RJ.prototype.onPopupClosed=RJ.prototype.onPopupClosed;RJ.prototype.onRequestSent=RJ.prototype.onRequestSent;RJ.prototype.onYtNavigate=RJ.prototype.onYtNavigate;RJ.prototype.onIronSelect=RJ.prototype.onIronSelect;RJ.prototype.onYtVideoLinkSelected=RJ.prototype.onYtVideoLinkSelected;RJ.prototype.onYtVideoLinkButtonCancel=RJ.prototype.onYtVideoLinkButtonCancel;RJ.prototype.onYtCommentboxLoadingEnd=RJ.prototype.onYtCommentboxLoadingEnd;RJ.prototype.onYtCommentboxLoadingStart=RJ.prototype.onYtCommentboxLoadingStart;
RJ.prototype.onYtCommentboxDismiss=RJ.prototype.onYtCommentboxDismiss;RJ.prototype.showButtonEduTooltip=RJ.prototype.showButtonEduTooltip;_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],RJ.prototype,"ytComponentBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],RJ.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],RJ.prototype,"ytRendererBehavior",void 0);
_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],RJ.prototype,"ytActionHandlerBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],RJ.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],RJ.prototype,"isOpen",void 0);_.T([_.O({computed:"computeButtonOverride(data)"}),_.Y("design:type",Object)],RJ.prototype,"buttonOverride",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],RJ.prototype,"modern",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],RJ.prototype,"roundedContainer",void 0);_.T([_.O(),_.Y("design:type",Object)],RJ.prototype,"dropdownButtonOverride",void 0);_.T([_.O({computed:"computeCreationDisabled(data.postCreationDisabledText)"}),_.Y("design:type",Boolean)],RJ.prototype,"creationDisabled",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],RJ.prototype,"enableCreationBox",void 0);
_.T([_.O({reflectToAttribute:!0,computed:"computeIsCreationDialog(data.purpose)"}),_.Y("design:type",Boolean)],RJ.prototype,"isCreationDialog",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],RJ.prototype,"inPopupContainer",void 0);_.T([_.O({reflectToAttribute:!0,computed:"computeIsCreationDialogWithHeader(data)"}),_.Y("design:type",Boolean)],RJ.prototype,"isCreationDialogWithHeader",void 0);_.T([_.O(),_.Y("design:type",Object)],RJ.prototype,"accessRestriction",void 0);
_.T([_.O({computed:"computeDropdownRendererClasses(isCreationDialogWithHeader)"}),_.Y("design:type",Array)],RJ.prototype,"dropdownRendererClasses",void 0);_.T([_.O(),_.Y("design:type",Object)],RJ.prototype,"isCommentboxLoading",void 0);_.T([_.O(),_.Y("design:type",Array)],RJ.prototype,"attachmentButtonIds",void 0);_.T([_.gQ("#image-button"),_.Y("design:type",HTMLElement)],RJ.prototype,"imageButton",void 0);
_.T([_.gQ("#image-poll-button"),_.Y("design:type",HTMLElement)],RJ.prototype,"imagePollButton",void 0);_.T([_.gQ("#quiz-button"),_.Y("design:type",HTMLElement)],RJ.prototype,"quizButton",void 0);_.T([_.gQ("#commentbox"),_.Y("design:type",Object)],RJ.prototype,"JSC$13593_commentbox",void 0);_.T([_.ea("data.multiImageButtonTooltip","data.imagePollButtonTooltip","data.quizButton"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],RJ.prototype,"showButtonEduTooltip",null);
_.T([_.R4("yt-commentbox-dismiss"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],RJ.prototype,"onYtCommentboxDismiss",null);_.T([_.R4("yt-commentbox-loading-start"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],RJ.prototype,"onYtCommentboxLoadingStart",null);
_.T([_.R4("yt-commentbox-loading-end"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],RJ.prototype,"onYtCommentboxLoadingEnd",null);_.T([_.R4("yt-video-link-button-cancel"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],RJ.prototype,"onYtVideoLinkButtonCancel",null);
_.T([_.R4("yt-video-link-selected"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],RJ.prototype,"onYtVideoLinkSelected",null);_.T([_.R4("iron-select"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],RJ.prototype,"onIronSelect",null);_.T([_.R4("yt-navigate"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],RJ.prototype,"onYtNavigate",null);
_.T([_.R4("yt-service-request-sent-button-renderer"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],RJ.prototype,"onRequestSent",null);_.T([_.R4("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],RJ.prototype,"onPopupClosed",null);RJ=_.T([_.y({is:"ytd-backstage-post-dialog-renderer",disableElementRegistration:!0})],RJ);
_.r(RJ,"ytd-backstage-post-dialog-renderer",function(){if(H6T!==void 0)return H6T;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-post-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="disabled-message" hidden="[[!creationDisabled]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  <div id="disabled-message-annotation" class="style-scope ytd-backstage-post-dialog-renderer">\n  [[getSimpleString(data.postCreationDisabledAnnotation)]]\n  </div>\n  <yt-formatted-string id="disabled-message-text" text="[[data.postCreationDisabledText]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  </yt-formatted-string>\n</div>\n<div hidden="[[creationDisabled]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  <div id="dialog-header" hidden="[[computeIsHeaderHidden(isCreationDialogWithHeader, isCommentboxLoading)]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <yt-img-shadow id="header-author-thumbnail" thumbnail="[[data.authorThumbnail]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="header-channel-name" text="[[data.authorText]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string id="header-visibility-label" text="[[data.visibilityLabel]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-formatted-string>\n    <div id="access-restrictions-selector" class="style-scope ytd-backstage-post-dialog-renderer"></div>\n    <yt-formatted-string id="header-default-visibility" hidden="[[!data.accessRestrictionsSelector.postVisibilityLabelRenderer.text]]" text="[[data.accessRestrictionsSelector.postVisibilityLabelRenderer.text]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="unopened-dialog" hidden="[[isOpen]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <yt-img-shadow id="author-thumbnail" height="40" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-img-shadow>\n    <div id="main" class="style-scope ytd-backstage-post-dialog-renderer">\n      <div id="placeholder-area" class="style-scope ytd-backstage-post-dialog-renderer">\n        <yt-formatted-string id="commentbox-placeholder" role="button" tabindex="0" text="[[data.placeholderText]]" class="style-scope ytd-backstage-post-dialog-renderer">\n        </yt-formatted-string>\n      </div>\n      <div id="attachments" class="style-scope ytd-backstage-post-dialog-renderer">\n        <template is="dom-repeat" items="[[attachmentButtonIds]]" as="buttonId" class="style-scope ytd-backstage-post-dialog-renderer">\n          <span id="[[buttonId]]" class="style-scope ytd-backstage-post-dialog-renderer"></span>\n        </template>\n        <div id="post-buttons-wrapper" class="style-scope ytd-backstage-post-dialog-renderer">\n          <ytd-button-renderer id="post-button" data="[[computeDisabledPostButton(data.postButton.buttonRenderer)]]" hidden="[[!isCreationDialog]]" overrides="[[buttonOverride]]" class="style-scope ytd-backstage-post-dialog-renderer">\n          </ytd-button-renderer>\n          <div id="option-menu" class="style-scope ytd-backstage-post-dialog-renderer"></div>\n        </div>\n      </div>\n    </div>\n  </div>\n  <ytd-commentbox id="commentbox" data="[[data]]" hidden="[[!isOpen]]" is-backstage-post="" is-creation-box="[[isCreationDialog]]" is-popup-box="[[inPopupContainer]]" is-post-creation-dialog-v2="[[isCreationDialogWithHeader]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <div slot="repost-preview" hidden="[[!data.backstageAttachment.postRenderer]]" class="style-scope ytd-backstage-post-dialog-renderer">\n      <slot name="repost-preview" class="style-scope ytd-backstage-post-dialog-renderer"></slot>\n    </div>\n  </ytd-commentbox>\n</div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return H6T=F},{mode:1});var eje;var MAu;var e_=function(){return _.n.apply(this,arguments)||this};
_.k(e_,_.n);_.N=e_.prototype;_.N.computeHeartButtonStyle=function(F){return(F==null?0:F.styleType)?F.styleType.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.N.onYtButtonTap=function(){if(this.data.isEnabled){var F=this.data.isHearted;this.toggle();this.ytRendererBehavior.markDirty();(F=this.getEndpoint(F))&&_.WZ().resolve(_.EJ).resolveCommand(F,{form:{element:this.hostElement}})}else(F=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.disabledEndpoint))&&this.ytdOpenPopupBehavior.openPopup(F)};
_.N.toggle=function(F){this.set("data.isHearted",F!==void 0?F:!this.data.isHearted)};
_.N.getEndpoint=function(F){var W,E=(W=this.data)==null?void 0:W.heartEndpoint,h;W=(h=this.data)==null?void 0:h.unheartEndpoint;if(E&&W)return F?W:E};
_.N.computeButtonAccessibility=function(F,W){var E,h,d=F==null?void 0:(E=F.heartedAccessibility)==null?void 0:(h=E.accessibilityData)==null?void 0:h.label,V,R;F=F==null?void 0:(V=F.unheartedAccessibility)==null?void 0:(R=V.accessibilityData)==null?void 0:R.label;return W?d:F};
_.Sn.Object.defineProperties(e_.prototype,{heartTooltip:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.data.isHearted?this.data.heartedTooltip:this.data.unheartedTooltip}},
iconFilled:{configurable:!0,enumerable:!0,get:function(){var F;return _.c("kevlar_system_icons")&&!((F=this.data)==null||!F.isHearted)}}});
e_.prototype.onYtButtonTap=e_.prototype.onYtButtonTap;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],e_.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Gf),_.Y("design:type",Object)],e_.prototype,"ytdOpenPopupBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],e_.prototype,"data",void 0);_.T([_.a("data.isHearted"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],e_.prototype,"heartTooltip",null);
_.T([_.a("data.isHearted"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],e_.prototype,"iconFilled",null);_.T([_.O({computed:"computeButtonAccessibility(data,data.isHearted)"}),_.Y("design:type",String)],e_.prototype,"buttonAccessibility",void 0);_.T([_.O({computed:"computeHeartButtonStyle(data)",reflectToAttribute:!0}),_.Y("design:type",String)],e_.prototype,"heartButtonStyle",void 0);
_.T([_.R4("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],e_.prototype,"onYtButtonTap",null);e_=_.T([_.y({is:"ytd-creator-heart-renderer",disableElementRegistration:!0})],e_);
_.r(e_,"ytd-creator-heart-renderer",function(){if(MAu!==void 0)return MAu;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-creator-heart-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon-button id="creator-heart-button" disabled="[[!data.isEnabled]]" label="[[buttonAccessibility]]" class="style-scope ytd-creator-heart-renderer">\n  <template is="dom-if" if="[[data.isHearted]]" class="style-scope ytd-creator-heart-renderer">\n    <yt-img-shadow id="hearted-thumbnail" thumbnail="[[data.creatorThumbnail]]" class="style-scope ytd-creator-heart-renderer"></yt-img-shadow>\n    <yt-icon id="hearted-border" icon="[[data.heartIcon.iconType]]" class="style-scope ytd-creator-heart-renderer"></yt-icon>\n    <yt-icon id="hearted" default-to-filled="[[iconFilled]]" icon="[[data.heartIcon.iconType]]" class="style-scope ytd-creator-heart-renderer"></yt-icon>\n  </template>\n  <template is="dom-if" if="[[!data.isHearted]]" class="style-scope ytd-creator-heart-renderer">\n    <yt-icon id="unhearted" icon="[[data.heartIcon.iconType]]" class="style-scope ytd-creator-heart-renderer"></yt-icon>\n  </template>\n</yt-icon-button>\n<tp-yt-paper-tooltip class="style-scope ytd-creator-heart-renderer">[[heartTooltip]]</tp-yt-paper-tooltip>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return MAu=F},{mode:1});var M5=function(){var F=_.n.apply(this,arguments)||this;F.hasCreatorReply=!1;F.buttonOverrides={size:"S",iconPosition:"icon-only"};F.replyButtonOverrides={size:"S",type:"text"};F.forceIconButton=!_.c("web_modern_buttons");F.modern=_.c("web_modern_buttons");F.buttonTooltipPosition="bottom";F.systemIcons=_.c("kevlar_system_icons");F.replyDialog=null;return F};
_.k(M5,_.n);_.N=M5.prototype;
_.N.configureRendererStamper=function(){return{"data.creatorHeart":{id:"creator-heart",mapping:{creatorHeartRenderer:{component:"ytd-creator-heart-renderer"}}},replyButtonBeginning:{id:"reply-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}},replyButtonEnd:{id:"reply-button-end",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{forceIconButton:!0},properties:{buttonTooltipPosition:"[[buttonTooltipPosition]]",overrides:"[[replyButtonOverrides]]",forceIconButton:"[[forceIconButton]]"}}}},
"data.shareButton":{id:"share-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{buttonTooltipPosition:"[[buttonTooltipPosition]]"}}}}}};
_.N.detached=function(){this.replyDialog&&this.replyDialog.remove();this.replyDialog=null};
_.N.dataChange=function(){this.replyDialog&&_.Z(this.replyDialogElement).removeChild(this.replyDialog);this.replyDialog=null;var F,W,E;this.isLiked=this.systemIcons&&!!((F=this.data)==null?0:(W=F.likeButton)==null?0:(E=W.toggleButtonRenderer)==null?0:E.isToggled)};
_.N.computeShowVoteCountBeginning=function(F,W){return F===void 0||W===void 0?!0:F.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!W&&this.ytRendererBehavior.getSimpleString(W)!=="0"};
_.N.computeShowVoteCountEnd=function(F,W){return F===void 0||W===void 0?!0:F.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!W&&this.ytRendererBehavior.getSimpleString(W)!=="0"};
_.N.computeShowCommentCount=function(F,W){return F===void 0||W===void 0?!0:F.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!W&&this.ytRendererBehavior.getSimpleString(W)!=="0"};
_.N.hideReplyDialog=function(){this.replyDialogElement.hidden=!0};
_.N.reply=function(){this.replyButtonElement.firstElementChild?this.replyButtonElement.firstElementChild.firstElementChild.click():this.replyButtonEndElement.firstElementChild&&this.replyButtonEndElement.firstElementChild.firstElementChild.click()};
_.N.showReplyDialog=function(F){F&&(this.replyDialog||(this.replyDialog=document.createElement("ytd-comment-reply-dialog-renderer"),this.replyDialog.id="replybox"),this.replyDialog.isAttached||_.Z(this.replyDialogElement).appendChild(this.replyDialog),this.replyDialog.data=F,this.replyDialogElement.hidden=!1,this.replyDialog.openDialog())};
_.N.onYtCommentboxDismiss=function(){this.hideReplyDialog()};
_.N.onRequestSent=function(F){if(_.c("web_button_rework")){F=_.U(F.detail);for(var W=F.next();!W.done;W=F.next())(W=this.get("createCommentReplyDialogEndpoint.dialog.commentReplyDialogRenderer",W.value))&&this.showReplyDialog(W)}};
_.N.onYtNavigate=function(F){var W,E;(F=(W=_.D(F.detail.endpoint,_.SjH))==null?void 0:(E=W.dialog)==null?void 0:E.commentReplyDialogRenderer)&&this.showReplyDialog(F)};
_.N.onYtServiceRequestSent=function(F,W){F.stopPropagation();if(W.actions)for(F=0;F<W.actions.length;F++){var E=_.D(W.actions[F],dST);E&&this.handleUpdateCommentVoteAction(E)}};
_.N.handleUpdateCommentVoteAction=function(F){this.voteCount=F.voteCount||_.Gr("0");F.voteStatus==="LIKE"?this.JSC$13604_ytdDislikeToggleButtonRenderer.toggle(!1):F.voteStatus==="DISLIKE"?this.JSC$13604_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$13604_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$13604_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.N.computeReplyButtonHidden=function(F){return F};
_.N.computeReplyButtonBeginning=function(F){return(F==null?0:F.replyButton)&&F.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?F.replyButton:void 0};
_.N.computeReplyButtonEnd=function(F){return(F==null?0:F.replyButton)&&F.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?F.replyButton:void 0};
_.N.computeActionButtonStyle=function(F){return(F==null?0:F.style)?F.style.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.N.onButtonTooltipPositionChanged=function(){this.ytdReplyButtonRenderer&&(this.ytdReplyButtonRenderer.buttonTooltipPosition=this.buttonTooltipPosition)};
_.N.onYtToggleButton=function(F){var W,E;this.isLiked=this.systemIcons&&!!((W=F.detail)==null?0:(E=W.actions)==null?0:E.like)};
M5.prototype.onYtToggleButton=M5.prototype.onYtToggleButton;M5.prototype.onButtonTooltipPositionChanged=M5.prototype.onButtonTooltipPositionChanged;M5.prototype.onYtServiceRequestSent=M5.prototype.onYtServiceRequestSent;M5.prototype.onYtNavigate=M5.prototype.onYtNavigate;M5.prototype.onRequestSent=M5.prototype.onRequestSent;M5.prototype.onYtCommentboxDismiss=M5.prototype.onYtCommentboxDismiss;M5.prototype.dataChange=M5.prototype.dataChange;
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],M5.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],M5.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],M5.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Object)],M5.prototype,"voteCount",void 0);_.T([_.O(),_.Y("design:type",Object)],M5.prototype,"commentCount",void 0);_.T([_.O(),_.Y("design:type",Object)],M5.prototype,"replyThumbnail",void 0);
_.T([_.O(),_.Y("design:type",Object)],M5.prototype,"hasCreatorReply",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],M5.prototype,"enableCreationBox",void 0);_.T([_.O({computed:"computeActionButtonStyle(data)",reflectToAttribute:!0}),_.Y("design:type",String)],M5.prototype,"actionButtonsStyle",void 0);_.T([_.O({computed:"computeReplyButtonBeginning(data)"}),_.Y("design:type",Object)],M5.prototype,"replyButtonBeginning",void 0);
_.T([_.O({computed:"computeReplyButtonEnd(data)"}),_.Y("design:type",Object)],M5.prototype,"replyButtonEnd",void 0);_.T([_.O(),_.Y("design:type",Object)],M5.prototype,"buttonOverrides",void 0);_.T([_.O(),_.Y("design:type",Object)],M5.prototype,"replyButtonOverrides",void 0);_.T([_.O(),_.Y("design:type",Object)],M5.prototype,"forceIconButton",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],M5.prototype,"useCommentIcon",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],M5.prototype,"modern",void 0);_.T([_.O(),_.Y("design:type",Object)],M5.prototype,"buttonTooltipPosition",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],M5.prototype,"systemIcons",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],M5.prototype,"isLiked",void 0);_.T([_.gQ("ytd-button-renderer"),_.Y("design:type",Object)],M5.prototype,"ytdReplyButtonRenderer",void 0);
_.T([_.gQ("#like-button"),_.Y("design:type",Object)],M5.prototype,"JSC$13604_ytdLikeToggleButtonRenderer",void 0);_.T([_.gQ("#dislike-button"),_.Y("design:type",Object)],M5.prototype,"JSC$13604_ytdDislikeToggleButtonRenderer",void 0);_.T([_.gQ("#reply-dialog"),_.Y("design:type",HTMLElement)],M5.prototype,"replyDialogElement",void 0);_.T([_.gQ("#reply-button"),_.Y("design:type",HTMLElement)],M5.prototype,"replyButtonElement",void 0);
_.T([_.gQ("#reply-button-end"),_.Y("design:type",HTMLElement)],M5.prototype,"replyButtonEndElement",void 0);_.T([_.Cz("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],M5.prototype,"dataChange",null);_.T([_.R4("yt-commentbox-dismiss"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],M5.prototype,"onYtCommentboxDismiss",null);
_.T([_.R4("yt-service-request-sent-button-renderer"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],M5.prototype,"onRequestSent",null);_.T([_.R4("yt-navigate"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],M5.prototype,"onYtNavigate",null);
_.T([_.R4("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.nQ]),_.Y("design:returntype")],M5.prototype,"onYtServiceRequestSent",null);_.T([_.ea("buttonTooltipPosition"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],M5.prototype,"onButtonTooltipPositionChanged",null);
_.T([_.R4("yt-toggle-button"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],M5.prototype,"onYtToggleButton",null);M5=_.T([_.y({is:"ytd-comment-action-buttons-renderer",disableElementRegistration:!0})],M5);
_.r(M5,"ytd-comment-action-buttons-renderer",function(){if(eje!==void 0)return eje;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-action-buttons-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="toolbar" class="style-scope ytd-comment-action-buttons-renderer">\n  <div id="reply-button" hidden="[[computeReplyButtonHidden(hasCreatorReply)]]" class="style-scope ytd-comment-action-buttons-renderer">\n  </div>\n  <span id="vote-count-left" hidden="[[!computeShowVoteCountBeginning(data, voteCount)]]" aria-label$="[[voteCount.accessibility.accessibilityData.label]]" class="style-scope ytd-comment-action-buttons-renderer">\n    [[getSimpleString(voteCount)]]\n  </span>\n  <ytd-toggle-button-renderer id="like-button" button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.likeButton.toggleButtonRenderer]]" icon-size="16" overrides="[[buttonOverrides]]" class="style-scope ytd-comment-action-buttons-renderer">\n  </ytd-toggle-button-renderer>\n  <span id="vote-count-middle" hidden="[[!computeShowVoteCountEnd(data, voteCount)]]" aria-label$="[[voteCount.accessibility.accessibilityData.label]]" class="style-scope ytd-comment-action-buttons-renderer">\n    [[getSimpleString(voteCount)]]\n  </span>\n  <ytd-toggle-button-renderer id="dislike-button" button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.dislikeButton.toggleButtonRenderer]]" icon-size="16" overrides="[[buttonOverrides]]" class="style-scope ytd-comment-action-buttons-renderer">\n  </ytd-toggle-button-renderer>\n  <div id="creator-heart" class="style-scope ytd-comment-action-buttons-renderer"></div>\n  <div id="share-button" hidden="[[!data.shareButton]]" class="style-scope ytd-comment-action-buttons-renderer">\n  </div>\n  <div id="reply-button-end" hidden="[[computeReplyButtonHidden(hasCreatorReply)]]" class="style-scope ytd-comment-action-buttons-renderer">\n  </div>\n  \n  <span id="comment-count" hidden="[[!computeShowCommentCount(data, commentCount)]]" class="style-scope ytd-comment-action-buttons-renderer">\n    [[getSimpleString(commentCount)]]\n  </span>\n</div>\n<div id="reply-dialog" class="style-scope ytd-comment-action-buttons-renderer"></div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return eje=F},{mode:1});var gGc;var g4=function(){return _.n.apply(this,arguments)||this};
_.k(g4,_.n);g4.prototype.focus=function(){_.Z(this.hostElement).querySelector("#commentbox").focus()};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],g4.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],g4.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Object)],g4.prototype,"zeroStepChannelCreationRenderer",void 0);g4=_.T([_.y({is:"ytd-comment-dialog-renderer",disableElementRegistration:!0})],g4);
_.r(g4,"ytd-comment-dialog-renderer",function(){if(gGc!==void 0)return gGc;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-commentbox id="commentbox" data="[[data]]" zero-step-channel-creation-renderer="[[zeroStepChannelCreationRenderer]]" class="style-scope ytd-comment-dialog-renderer">\n</ytd-commentbox>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return gGc=F},{mode:1});var QpH;var QN=function(){var F=_.n.apply(this,arguments)||this;F.buttonOverrides={size:"S",iconPosition:"icon-only"};F.replyButtonOverrides={size:"S",type:"text"};return F};
_.k(QN,_.n);_.N=QN.prototype;_.N.configureRendererStamper=function(){return{creatorHeartSupportedRenderer:{id:"creator-heart",mapping:{creatorHeartRenderer:{component:"ytd-creator-heart-renderer"}}}}};
_.N.detached=function(){this.replyBox&&this.replyBox.remove()};
_.N.showReplyDialog=function(F){if(F){var W=this.replyBox;W||(W=document.createElement("ytd-comment-reply-dialog-renderer"),W.id="replybox",_.Z(this.replyDialogDiv).appendChild(W));W.data=F;this.replyDialogDiv.hidden=!1;W.openDialog()}};
_.N.hideReplyDialogDiv=function(){this.replyDialogDiv.hidden=!0};
_.N.onYtServiceRequestSent=function(F,W){F.stopPropagation();if(W.actions)for(var E=0;E<W.actions.length;E++){var h=_.D(W.actions[E],dST);h?this.handleUpdateCommentVoteAction(h):F.target===this.heartButton&&this.toggleHeartState()}};
_.N.handleUpdateCommentVoteAction=function(F){var W;(W=this.toolbarState)!=null&&W.key&&this.ytdReduxBehavior.dispatch(_.lJ("engagementToolbarStateEntityPayload",this.toolbarState.key,{likeState:F.voteStatus==="LIKE"?"TOOLBAR_LIKE_STATE_LIKED":F.voteStatus==="DISLIKE"?"TOOLBAR_LIKE_STATE_DISLIKED":"TOOLBAR_LIKE_STATE_INDIFFERENT"}))};
_.N.toggleHeartState=function(){var F;(F=this.toolbarState)!=null&&F.key&&this.ytdReduxBehavior.dispatch(_.lJ("engagementToolbarStateEntityPayload",this.toolbarState.key,{heartState:this.toolbarState.heartState==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}))};
_.Sn.Object.defineProperties(QN.prototype,{likeCount:{configurable:!0,enumerable:!0,get:function(){var F,W,E;return(((F=this.toolbarState)==null?void 0:F.likeState)==="TOOLBAR_LIKE_STATE_LIKED"?(W=this.toolbarData)==null?void 0:W.likeCountLiked:(E=this.toolbarData)==null?void 0:E.likeCountNotliked)||""}},
showLikeCount:{configurable:!0,enumerable:!0,get:function(){return this.likeCount.trim().length>0}},
isVisiblyDisabled:{configurable:!0,enumerable:!0,get:function(){var F;return((F=this.toolbarSurface)==null?void 0:F.commentDisabledActionCommand)!==void 0}},
isSubscribersOnlyComments:{configurable:!0,enumerable:!0,get:function(){var F;return((F=this.toolbarSurface)==null?void 0:F.subscribersOnlySnackbarCommand)!==void 0}},
hasPrepareAccountCommand:{configurable:!0,enumerable:!0,get:function(){var F;return((F=this.toolbarSurface)==null?void 0:F.prepareAccountCommand)!==void 0&&!_.c("comment_prepare_account_command_killswitch")}},
likeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var F,W=_.D((F=this.toolbarSurface)==null?void 0:F.prepareAccountCommand,_.XP),E,h,d,V,R,M,g,t,C;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((E=this.toolbarSharedData)==null||!E.disabledLikeCommand),isToggled:!this.isVisiblyDisabled&&((h=this.toolbarState)==null?void 0:h.likeState)==="TOOLBAR_LIKE_STATE_LIKED",defaultIcon:{iconType:"LIKE"},defaultServiceEndpoint:this.isVisiblyDisabled?
void 0:W!=null?W:_.D((d=this.toolbarSurface)==null?void 0:d.likeCommand,_.XP),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:W!=null?W:_.D((V=this.toolbarSurface)==null?void 0:V.unlikeCommand,_.XP),defaultCommand:this.isVisiblyDisabled?_.D((R=this.toolbarSurface)==null?void 0:R.commentDisabledActionCommand,_.XP):void 0,defaultTooltip:(M=this.toolbarData)==null?void 0:M.likeInactiveTooltip,toggledTooltip:(g=this.toolbarData)==null?void 0:g.likeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?
"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:(t=this.toolbarData)==null?void 0:t.likeButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(C=this.toolbarSharedData)==null?void 0:C.unlikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
dislikeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var F,W=_.D((F=this.toolbarSurface)==null?void 0:F.prepareAccountCommand,_.XP),E,h,d,V,R,M,g,t,C,B;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((E=this.toolbarSharedData)==null||!E.disabledDislikeCommand),isToggled:!this.isVisiblyDisabled&&((h=this.toolbarState)==null?void 0:h.likeState)==="TOOLBAR_LIKE_STATE_DISLIKED",defaultIcon:{iconType:"DISLIKE"},
defaultServiceEndpoint:this.isVisiblyDisabled?void 0:W!=null?W:_.D((d=this.toolbarSurface)==null?void 0:d.dislikeCommand,_.XP),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:W!=null?W:_.D((V=this.toolbarSurface)==null?void 0:V.undislikeCommand,_.XP),defaultCommand:this.isVisiblyDisabled?_.D((R=this.toolbarSurface)==null?void 0:R.commentDisabledActionCommand,_.XP):void 0,defaultTooltip:(M=this.toolbarData)==null?void 0:M.dislikeInactiveTooltip,toggledTooltip:(g=this.toolbarData)==null?void 0:
g.dislikeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:this.isReply?(t=this.toolbarSharedData)==null?void 0:t.dislikeReplyButtonA11y:(C=this.toolbarSharedData)==null?void 0:C.dislikeCommentButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(B=this.toolbarSharedData)==null?void 0:B.undislikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
creatorHeartSupportedRenderer:{configurable:!0,enumerable:!0,get:function(){var F,W,E;if(((F=this.toolbarState)==null?void 0:F.heartState)!==void 0&&((W=this.toolbarState)==null?void 0:W.heartState)!=="TOOLBAR_HEART_STATE_UNKNOWN"&&((E=this.toolbarState)==null?void 0:E.heartState)!=="TOOLBAR_HEART_STATE_UNHEARTED"){var h,d,V,R,M,g,t,C,B,I,x,A,X,P;return{creatorHeartRenderer:{creatorThumbnail:{thumbnails:[{url:(h=this.toolbarData)==null?void 0:h.creatorThumbnailUrl,width:32,height:32}]},heartIcon:{iconType:"FULL_HEART"},
isHearted:((d=this.toolbarState)==null?void 0:d.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((V=this.toolbarState)==null?void 0:V.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE",isEnabled:!this.isVisiblyDisabled&&(((R=this.toolbarState)==null?void 0:R.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((M=this.toolbarState)==null?void 0:M.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"),heartEndpoint:this.isVisiblyDisabled?void 0:_.D((g=this.toolbarSurface)==null?void 0:g.heartCommand,
_.XP),unheartEndpoint:this.isVisiblyDisabled?void 0:_.D((t=this.toolbarSurface)==null?void 0:t.unheartCommand,_.XP),disabledEndpoint:this.isVisiblyDisabled?_.D((C=this.toolbarSurface)==null?void 0:C.commentDisabledActionCommand,_.XP):void 0,styleType:this.isVisiblyDisabled?"CREATOR_HEART_STYLE_TYPE_VISIBLY_DISABLED":void 0,heartedTooltip:(B=this.toolbarData)==null?void 0:B.heartActiveTooltip,unheartedTooltip:(I=this.toolbarData)==null?void 0:I.heartInactiveTooltip,heartedAccessibility:{accessibilityData:{label:((x=
this.toolbarState)==null?void 0:x.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?(A=this.toolbarSharedData)==null?void 0:A.unheartButtonA11y:(X=this.toolbarSharedData)==null?void 0:X.heartButtonA11y}},unheartedAccessibility:{accessibilityData:{label:(P=this.toolbarSharedData)==null?void 0:P.heartButtonA11y}}}}}}},
hasReplyCommand:{configurable:!0,enumerable:!0,get:function(){var F;return!((F=this.toolbarSurface)==null||!F.replyCommand)}},
replyButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var F,W,E,h;return{size:"SIZE_DEFAULT",style:this.isVisiblyDisabled||this.isSubscribersOnlyComments?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT",text:{runs:[{text:(F=this.commentStrings)==null?void 0:F.replyButtonText}]},navigationEndpoint:this.isVisiblyDisabled||this.isSubscribersOnlyComments?void 0:_.D((W=this.toolbarSurface)==null?void 0:W.replyCommand,_.XP),command:this.isVisiblyDisabled?_.D((E=this.toolbarSurface)==null?void 0:E.commentDisabledActionCommand,
_.XP):this.isSubscribersOnlyComments?_.D((h=this.toolbarSurface)==null?void 0:h.subscribersOnlySnackbarCommand,_.XP):void 0}}}});
QN.prototype.onYtServiceRequestSent=QN.prototype.onYtServiceRequestSent;QN.prototype.hideReplyDialogDiv=QN.prototype.hideReplyDialogDiv;_.T([_.O(),_.Y("design:type",Object)],QN.prototype,"commentStrings",void 0);_.T([_.O(),_.Y("design:type",Boolean)],QN.prototype,"isReply",void 0);_.T([_.O(),_.Y("design:type",Object)],QN.prototype,"toolbarData",void 0);_.T([_.O(),_.Y("design:type",Object)],QN.prototype,"toolbarSharedData",void 0);
_.T([_.O(),_.Y("design:type",String)],QN.prototype,"toolbarStateKey",void 0);_.T([_.O(),_.Y("design:type",String)],QN.prototype,"toolbarSurfaceKey",void 0);_.T([_.J(_.am),_.Y("design:type",Object)],QN.prototype,"ytdReduxBehavior",void 0);_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],QN.prototype,"ytComponentBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],QN.prototype,"ytRendererstamperBehavior",void 0);
_.T([_.gQ("#reply-dialog"),_.Y("design:type",HTMLElement)],QN.prototype,"replyDialogDiv",void 0);_.T([_.gQ("#replybox"),_.Y("design:type",Object)],QN.prototype,"replyBox",void 0);_.T([_.gQ("ytd-creator-heart-renderer"),_.Y("design:type",Object)],QN.prototype,"heartButton",void 0);_.T([_.O({selector:function(F,W){return _.Mn(F.entities,"engagementToolbarStateEntityPayload",W)},
selectorArgs:["toolbarStateKey"]}),_.Y("design:type",Object)],QN.prototype,"toolbarState",void 0);_.T([_.O({selector:JOY,selectorArgs:["toolbarSurfaceKey"]}),_.Y("design:type",Object)],QN.prototype,"toolbarSurface",void 0);_.T([_.O(),_.Y("design:type",Object)],QN.prototype,"buttonOverrides",void 0);_.T([_.R4("yt-commentbox-dismiss"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],QN.prototype,"hideReplyDialogDiv",null);
_.T([_.a("toolbarData","toolbarState"),_.Y("design:type",String),_.Y("design:paramtypes",[])],QN.prototype,"likeCount",null);_.T([_.a("likeCount"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],QN.prototype,"showLikeCount",null);_.T([_.a("toolbarSurface"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],QN.prototype,"isVisiblyDisabled",null);_.T([_.a("toolbarSurface"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],QN.prototype,"isSubscribersOnlyComments",null);
_.T([_.a("toolbarSurface"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],QN.prototype,"hasPrepareAccountCommand",null);_.T([_.a("toolbarData","toolbarState","toolbarSurface"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],QN.prototype,"likeToggleButtonRenderer",null);_.T([_.a("isReply","toolbarData","toolbarState","toolbarSurface"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],QN.prototype,"dislikeToggleButtonRenderer",null);
_.T([_.a("toolbarData","toolbarState","toolbarSurface"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],QN.prototype,"creatorHeartSupportedRenderer",null);_.T([_.a("toolbarSurface"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],QN.prototype,"hasReplyCommand",null);_.T([_.a("toolbarSurface","commentStrings","isVisiblyDisabled"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],QN.prototype,"replyButtonRenderer",null);
_.T([_.O(),_.Y("design:type",Object)],QN.prototype,"replyButtonOverrides",void 0);_.T([_.R4("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.nQ]),_.Y("design:returntype")],QN.prototype,"onYtServiceRequestSent",null);QN=_.T([_.y({is:"ytd-comment-engagement-bar",disableElementRegistration:!0})],QN);
_.r(QN,"ytd-comment-engagement-bar",function(){if(QpH!==void 0)return QpH;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-engagement-bar--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="toolbar" class="style-scope ytd-comment-engagement-bar">\n  \n  <ytd-toggle-button-renderer id="like-button" button-tooltip-position="bottom" data="[[likeToggleButtonRenderer]]" icon-size="16" overrides="[[buttonOverrides]]" class="style-scope ytd-comment-engagement-bar">\n  </ytd-toggle-button-renderer>\n  <span id="vote-count-middle" hidden="[[!showLikeCount]]" aria-label$="[[voteCount.accessibility.accessibilityData.label]]" class="style-scope ytd-comment-engagement-bar">\n    [[likeCount]]\n  </span>\n  \n  <ytd-toggle-button-renderer id="dislike-button" button-tooltip-position="bottom" data="[[dislikeToggleButtonRenderer]]" icon-size="16" overrides="[[buttonOverrides]]" class="style-scope ytd-comment-engagement-bar">\n  </ytd-toggle-button-renderer>\n  \n  <div id="creator-heart" class="style-scope ytd-comment-engagement-bar"></div>\n  \n  <ytd-button-renderer id="reply-button-end" data="[[replyButtonRenderer]]" force-icon-button="true" hidden="[[!hasReplyCommand]]" overrides="[[replyButtonOverrides]]" class="style-scope ytd-comment-engagement-bar">\n  </ytd-button-renderer>\n</div>\n\n<div id="reply-dialog" class="style-scope ytd-comment-engagement-bar"></div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return QpH=F},{mode:1});var zj_;var zW=function(){return _.n.apply(this,arguments)||this};
_.k(zW,_.n);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],zW.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],zW.prototype,"data",void 0);zW=_.T([_.y({is:"ytd-comment-inline-thumbnail-renderer",disableElementRegistration:!0})],zW);
_.r(zW,"ytd-comment-inline-thumbnail-renderer",function(){if(zj_!==void 0)return zj_;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-inline-thumbnail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-comment-inline-thumbnail-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <div class="thumbnail-container style-scope ytd-comment-inline-thumbnail-renderer" hidden="[[!data.thumbnail]]">\n    <yt-img-shadow disable-upgrade$="[[!data.thumbnail]]" object-fit="COVER" thumbnail="[[data.thumbnail]]" class="style-scope ytd-comment-inline-thumbnail-renderer">\n    </yt-img-shadow>\n  </div>\n</a>');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return zj_=F},{mode:1});var tAi;var ti=function(){return _.n.apply(this,arguments)||this};
_.k(ti,_.n);_.T([_.O(),_.Y("design:type",Object)],ti.prototype,"data",void 0);ti=_.T([_.y({is:"ytd-comment-pause-composer-renderer",disableElementRegistration:!0})],ti);
_.r(ti,"ytd-comment-pause-composer-renderer",function(){if(tAi!==void 0)return tAi;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-pause-composer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="pause-composer" class="style-scope ytd-comment-pause-composer-renderer">\n  <yt-attributed-string data="[[data.text]]" class="style-scope ytd-comment-pause-composer-renderer">\n  </yt-attributed-string>\n  <yt-attributed-string data="[[data.termsText]]" force-default-style="" class="style-scope ytd-comment-pause-composer-renderer">\n  </yt-attributed-string>\n</div>');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return tAi=F},{mode:1});var CN_;var BBT;var C8=function(){var F=_.n.apply(this,arguments)||this;F.isOpen=!1;return F};
_.k(C8,_.n);_.N=C8.prototype;_.N.dataChanged=function(){this.isOpen=!1};
_.N.onTap=function(){this.data&&(this.data.navigationEndpoint?_.hF(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):this.openDialog())};
_.N.focus=function(){this.JSC$13630_commentbox.focus()};
_.N.onYtCommentboxDismiss=function(){this.isOpen=!1};
_.N.openDialog=function(){this.isOpen=!0;this.JSC$13630_commentbox.focus();this.JSC$13630_commentbox.maybeHeightChanged()};
C8.prototype.onYtCommentboxDismiss=C8.prototype.onYtCommentboxDismiss;C8.prototype.dataChanged=C8.prototype.dataChanged;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],C8.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],C8.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Object)],C8.prototype,"isOpen",void 0);_.T([_.gQ("#commentbox"),_.Y("design:type",Object)],C8.prototype,"JSC$13630_commentbox",void 0);
_.T([_.Cz("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],C8.prototype,"dataChanged",null);_.T([_.R4("yt-commentbox-dismiss"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],C8.prototype,"onYtCommentboxDismiss",null);C8=_.T([_.y({is:"ytd-comment-reply-dialog-renderer",disableElementRegistration:!0})],C8);
_.r(C8,"ytd-comment-reply-dialog-renderer",function(){if(BBT!==void 0)return BBT;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-reply-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-commentbox id="commentbox" data="[[data]]" hidden="[[!isOpen]]" is-reply="" class="style-scope ytd-comment-reply-dialog-renderer">\n</ytd-commentbox>\n<div id="unopened-dialog" hidden="[[isOpen]]" class="style-scope ytd-comment-reply-dialog-renderer">\n  <yt-img-shadow id="author-thumbnail" height="40" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-comment-reply-dialog-renderer">\n  </yt-img-shadow>\n  <div id="placeholder-area" on-tap="onTap" on-keydown="onTap" class="style-scope ytd-comment-reply-dialog-renderer">\n    <yt-formatted-string id="placeholder-text" role="textbox" tabindex="0" text="[[data.placeholderText]]" class="style-scope ytd-comment-reply-dialog-renderer">\n    </yt-formatted-string>\n  </div>\n</div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return BBT=F},{mode:1});var vGH;var Bu=function(){return _.n.apply(this,arguments)||this};
_.k(Bu,_.n);_.Sn.Object.defineProperties(Bu.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var F,W,E=(F=this.data)==null?void 0:(W=F.icon)==null?void 0:W.iconType;return E?"yt-icons:"+E.toLowerCase():null}}});
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Bu.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],Bu.prototype,"data",void 0);_.T([_.O(),_.a("data.icon"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Bu.prototype,"icon",null);Bu=_.T([_.y({is:"ytd-pinned-comment-badge-renderer",disableElementRegistration:!0})],Bu);
_.r(Bu,"ytd-pinned-comment-badge-renderer",function(){if(vGH!==void 0)return vGH;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-pinned-comment-badge-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon hidden="[[!icon]]" icon="[[icon]]" size="12" class="style-scope ytd-pinned-comment-badge-renderer"></yt-icon>\n<yt-formatted-string id="label" text="[[data.label]]" class="style-scope ytd-pinned-comment-badge-renderer"></yt-formatted-string>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return vGH=F},{mode:1});var ItU;var c9u={},Dti={input:!0,meta:!0,br:!0,link:!0,img:!0},vu=null;c9u.YtSharedTooltipBehavior={properties:{sharedTooltipPosition:{type:String,value:"bottom"},sharedTooltipAnimationDelay:{type:Number,value:500}},attached:function(){this.hostElement.addEventListener("mouseover",this.onMouseOver_,!0)},
detached:function(){this.hostElement.removeEventListener("mouseover",this.onMouseOver_,!0)},
createTooltipIfRequired_:function(){vu==null&&(vu=document.createElement("tp-yt-paper-tooltip"),vu.offset=8,vu.fitToVisibleBounds=!0)},
onMouseOver_:function(F){if(F=_.HE(F.target,function(d){return d==this||d.getAttribute&&d.getAttribute("shared-tooltip-text")}.bind(this),!0)){var W=F.getAttribute("shared-tooltip-text");
if(W){var E=this,h=null;F!=this&&(F.tagName.toLowerCase()in Dti?E=F.parentElement:E=F,F.id&&(h=F.id));this.polymerController.createTooltipIfRequired_();if(vu.parentElement!=E||vu.for!=h)(0,_.N3)(vu).textContent=W,_.Z(E).appendChild(vu),vu.for=h,vu.animationDelay=this.polymerController.sharedTooltipAnimationDelay,vu.position=this.polymerController.sharedTooltipPosition}}}};var IJ=function(){return _.n.apply(this,arguments)||this};
_.k(IJ,_.n);IJ.prototype.configureRendererStamper=function(){return{"data.icon":{id:"icon",mapping:{iconType:{component:"yt-icon",properties:{icon:"[[data.icon.iconType]]",sharedTooltipText:"[[data.tooltip]]"}}}},data:{id:"custom-badge",mapping:{customBadge:{component:"yt-img-shadow",properties:{thumbnail:"[[data.customBadge]]",sharedTooltipText:"[[data.tooltip]]"}}}}}};
IJ.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","img")};
IJ.prototype.colorChanged=function(){var F,W,E,h=(F=this.data)==null?void 0:(W=F.color)==null?void 0:(E=W.basicColorPaletteData)==null?void 0:E.foregroundBodyColor;h&&(this.rgbBadgeColor=_.ZP(h));_.Z(this.hostElement).querySelector("#icon").style.color=this.rgbBadgeColor};
IJ.prototype.tooltipChanged=function(){var F;((F=this.data)==null?0:F.tooltip)?this.hostElement.setAttribute("aria-label",this.data.tooltip):this.hostElement.removeAttribute("aria-label")};
IJ.prototype.tooltipChanged=IJ.prototype.tooltipChanged;IJ.prototype.colorChanged=IJ.prototype.colorChanged;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],IJ.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],IJ.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(c9u.YtSharedTooltipBehavior),_.Y("design:type",Object)],IJ.prototype,"ytSharedTooltipBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],IJ.prototype,"data",void 0);
_.T([_.O({value:"#4285F4"}),_.Y("design:type",String)],IJ.prototype,"rgbBadgeColor",void 0);_.T([_.ea("data.color"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],IJ.prototype,"colorChanged",null);_.T([_.ea("data.tooltip"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],IJ.prototype,"tooltipChanged",null);IJ=_.T([_.y({is:"ytd-sponsor-comment-badge-renderer",disableElementRegistration:!0})],IJ);
_.r(IJ,"ytd-sponsor-comment-badge-renderer",function(){if(ItU!==void 0)return ItU;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsor-comment-badge-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="icon" aria-hidden="true" class="style-scope ytd-sponsor-comment-badge-renderer"></div>\n<div id="custom-badge" aria-hidden="true" class="style-scope ytd-sponsor-comment-badge-renderer"></div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return ItU=F},{mode:1});var xtu;var kVp;var cu=function(){return _.n.apply(this,arguments)||this};
_.k(cu,_.n);cu.prototype.computeState=function(F){switch(F==null?void 0:F.stateIdentifier){case "TRI_STATE_IDENTIFIER_UNTOGGLED_STATE":return"untoggled";case "TRI_STATE_IDENTIFIER_TOGGLING_STATE":return"toggling";case "TRI_STATE_IDENTIFIER_TOGGLED_STATE":return"toggled";default:return"unknown"}};
cu.prototype.updateStateIdentifier=function(F){if(this.viewModel.triStateKey){var W=this.viewModel.triStateKey;this.ytdReduxBehavior.dispatch(_.lJ("triStateButtonStateEntityPayload",W,{key:W,stateIdentifier:F}))}};
cu.prototype.onClick=function(){var F=this;if(this.data)switch(this.ytRendererBehavior.logExplicitClick(this.data),this.state){case "toggled":this.updateStateIdentifier("TRI_STATE_IDENTIFIER_UNTOGGLED_STATE");break;case "untoggled":this.viewModel.transitionCommand?(this.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLING_STATE"),this.ytComponentBehavior.resolveCommand(this.viewModel.transitionCommand,{commandController:{onSuccess:function(){F.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")},
onServerError:function(){F.updateStateIdentifier("TRI_STATE_IDENTIFIER_UNTOGGLED_STATE")}}})):this.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")}};
_.Sn.Object.defineProperties(cu.prototype,{data:{configurable:!0,enumerable:!0,get:function(){switch(this.state){case "untoggled":return this.viewModel.untoggledStateData;case "toggling":return this.viewModel.togglingStateData;case "toggled":return this.viewModel.toggledStateData}}},
buttonText:{configurable:!0,enumerable:!0,get:function(){var F;return((F=this.data)==null?void 0:F.buttonText)||""}}});
_.T([_.O(),_.Y("design:type",Object)],cu.prototype,"viewModel",void 0);_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],cu.prototype,"ytComponentBehavior",void 0);_.T([_.J(_.am),_.Y("design:type",Object)],cu.prototype,"ytdReduxBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],cu.prototype,"ytRendererBehavior",void 0);_.T([_.O({selector:ahW,selectorArgs:["viewModel.triStateKey"]}),_.Y("design:type",Object)],cu.prototype,"triStateButtonStateEntity",void 0);
_.T([_.O({computed:"computeState(triStateButtonStateEntity)",reflectToAttribute:!0}),_.Y("design:type",String)],cu.prototype,"state",void 0);_.T([_.a("viewModel","state"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],cu.prototype,"data",null);_.T([_.a("data"),_.Y("design:type",String),_.Y("design:paramtypes",[])],cu.prototype,"buttonText",null);cu=_.T([_.y({disableElementRegistration:!0,is:"ytd-tri-state-button-view-model"})],cu);
_.r(cu,"ytd-tri-state-button-view-model",function(){if(kVp!==void 0)return kVp;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-tri-state-button-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-button noink="" on-click="onClick" class="style-scope ytd-tri-state-button-view-model">\n  [[buttonText]]\n</tp-yt-paper-button>');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return kVp=F},{mode:1});var A9X;var spH;var DH=function(){var F=_.n.apply(this,arguments)||this;F.defaultIconToFilled=!_.c("kevlar_fill_comment_chip_icon_killswitch");return F};
_.k(DH,_.n);DH.prototype.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onTap","space:keydown":"onTap"}};
DH.prototype.dataChanged=function(){if(this.data){var F,W;((F=this.data.chipColorPalette)==null?0:F.backgroundColor)&&((W=this.data.chipColorPalette)==null?0:W.foregroundTitleColor)&&_.V9(this.hostElement,{"--yt-pdg-comment-chip-background-color":_.XC(this.data.chipColorPalette.backgroundColor),"--yt-pdg-comment-chip-font-color":_.XC(this.data.chipColorPalette.foregroundTitleColor)});var E;((E=this.data)==null?0:E.command)?(_.V9(this.hostElement,{"--yt-pdg-comment-chip-cursor":"pointer"}),this.hostElement.setAttribute("role",
"button"),this.hostElement.setAttribute("tabindex","0")):(_.V9(this.hostElement,{"--yt-pdg-comment-chip-cursor":"initial"}),this.hostElement.removeAttribute("role"),this.hostElement.removeAttribute("tabindex"));this.basePriceText=this.data.chipText;this.chipIcon=this.data.chipIcon}};
DH.prototype.onTap=function(){var F;if(this.data&&(F=this.data)!=null&&F.command){var W;this.ytComponentBehavior.resolveCommand((W=this.data)==null?void 0:W.command)}};
DH.prototype.getIconSize=function(){return _.c("kevlar_fill_comment_chip_icon_killswitch")?24:12};
DH.prototype.onTap=DH.prototype.onTap;DH.prototype.dataChanged=DH.prototype.dataChanged;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],DH.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],DH.prototype,"ytComponentBehavior",void 0);_.T([_.J(_.$5),_.Y("design:type",Object)],DH.prototype,"ironA11yKeysBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],DH.prototype,"data",void 0);
_.T([_.O(),_.Y("design:type",Object)],DH.prototype,"basePriceText",void 0);_.T([_.O(),_.Y("design:type",Object)],DH.prototype,"chipIcon",void 0);_.T([_.O(),_.Y("design:type",Object)],DH.prototype,"defaultIconToFilled",void 0);_.T([_.Cz("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],DH.prototype,"dataChanged",null);_.T([_.R4("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],DH.prototype,"onTap",null);
DH=_.T([_.$3({is:"yt-pdg-comment-chip-renderer",disableElementRegistration:!0})],DH);
_.r(DH,"yt-pdg-comment-chip-renderer",function(){if(spH===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-pdg-comment-chip-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.pdg.yt_pdg_comment_chip_renderer.yt.pdg.comment.chip.renderer.css.js--\x3e<div id="comment-chip-container" class="style-scope yt-pdg-comment-chip-renderer"><yt-icon default-to-filled="[[defaultIconToFilled]]" icon="[[chipIcon.iconType]]" size="[[getIconSize()]]" class="style-scope yt-pdg-comment-chip-renderer"></yt-icon><span id="comment-chip-price" class="style-scope yt-pdg-comment-chip-renderer"> [[getSimpleString(basePriceText)]] </span></div>');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;A9X===void 0&&(A9X=document.createElement("template"));var h=A9X;E.call(W,h.content.cloneNode(!0),F.content.firstChild);spH=F}F=spH;return F},{mode:2});var x8=function(){var F=_.n.apply(this,arguments)||this;F.useSmallAvatars=_.c("small_avatars_for_comments");F.webWatchCompactComments=_.c("web_watch_compact_comments");F.editDialog=null;return F};
_.k(x8,_.n);_.N=x8.prototype;_.N.onShow=function(){_.JF("cmv",void 0,"wn_comments")};
_.N.configureRendererStamper=function(){return{authorCommentBadge:{id:"author-comment-badge",mapping:{renderer:"ytd-author-comment-badge-renderer"}},linkedCommentBadge:{id:"linked-comment-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[linkedCommentBadge]]"}}}},pinnedCommentBadge:{id:"pinned-comment-badge",mapping:{renderer:"ytd-pinned-comment-badge-renderer"}},sponsorCommentBadge:{id:"sponsor-comment-badge",mapping:{renderer:"ytd-sponsor-comment-badge-renderer"}},
editDialog:{id:"edit-dialog",mapping:{commentDialogRenderer:"ytd-comment-dialog-renderer",commentReplyDialogRenderer:"ytd-comment-reply-dialog-renderer"}}}};
_.N.detached=function(){this.editDialog=null;this.expander.reset()};
_.N.updateBackgroundColor=function(){if(this.backgroundColor){var F={"--ytd-comment-paid-background-color":_.XC(this.backgroundColor),"--ytd-decorated-comment-background-offset-left":"8px","--ytd-decorated-comment-background-offset-top":"8px"};_.V9(this.hostElement,F)}else _.V9(this.hostElement,{"--ytd-comment-paid-background-color":"initial"})};
_.N.resetExpander=function(){var F;(F=this.expander)==null||F.reset()};
_.N.openEditDialog=function(F){F.dialog&&(this.editDialog=F.dialog,this.editReplyDialogContainer?this.editReplyDialogContainer.openDialog():this.editCommentDialogContainer&&this.editCommentDialogContainer.focus())};
_.N.onYtNavigate=function(F){var W=F.detail.endpoint;if(W=_.D(W,_.pyT)||_.D(W,_.mGO))F.stopPropagation(),this.openEditDialog(W)};
_.N.onYtCommentboxDismiss=function(){this.editDialog=null;_.V9(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":"0px"})};
_.N.onAuthorThumbnailClicked=function(){var F=this;_.c("enable_profile_cards_on_comments")&&this!=null&&this.authorThumbnailEndpoint&&this.ytComponentBehavior.resolveCommand(this.authorThumbnailEndpoint,{commandController:{onSuccess:function(W,E){F.onAuthorThumbnailEndpointSuccess(E)},
onServerError:function(W,E){_.OB(new _.xC("Failed to resolve the command",E))}}})};
_.N.onAuthorThumbnailEndpointSuccess=function(F){if((F=F==null?void 0:F.popupCommand)&&this.authorThumbnailAnchor){this.ytComponentBehavior.resolveCommand(F,{form:{element:this.authorThumbnailAnchor}});this.logScreenVe();F=F==null?void 0:F.clickTrackingParams;var W=_.Pf();F&&W&&_.z4().graftServerVe(F,W)}};
_.N.logScreenVe=function(){_.QH(_.z4(),66557)};
_.N.onYtCommentboxResize=function(F){var W;(F==null?0:(W=F.detail)==null?0:W.height)&&_.V9(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":F.detail.height+"px"})};
_.Sn.Object.defineProperties(x8.prototype,{linked:{configurable:!0,enumerable:!0,get:function(){return!!this.viewModel.linkedCommentText}},
linkedCommentBadge:{configurable:!0,enumerable:!0,get:function(){return this.viewModel&&this.linked?{metadataBadgeRenderer:{label:this.viewModel.linkedCommentText,style:"BADGE_STYLE_TYPE_SIMPLE"}}:null}},
pinned:{configurable:!0,enumerable:!0,get:function(){return!!this.viewModel.pinnedText}},
pinnedCommentBadge:{configurable:!0,enumerable:!0,get:function(){return this.viewModel&&this.pinned?{renderer:{icon:{iconType:"KEEP"},label:{runs:[{text:this.viewModel.pinnedText}]}}}:null}},
authorCommentBadge:{configurable:!0,enumerable:!0,get:function(){var F,W=(F=this.commentEntity)==null?void 0:F.author;return W&&(W.isCreator||W.isVerified||W.isArtist)?{renderer:{authorEndpoint:W.channelPageEndpoint?_.D(W.channelPageEndpoint,_.XP):_.D(W.channelCommand,_.XP),authorText:{runs:[{text:W.displayName}]},color:W.isCreator?{basicColorPaletteData:{backgroundColor:Number.parseInt("ff888888",16),foregroundTitleColor:Number.parseInt("ffffffff",16)}}:void 0,icon:W.isArtist?{iconType:"AUDIO_BADGE"}:
W.isVerified?{iconType:W.isCreator?"CHECK_CIRCLE_THICK":"CHECK"}:void 0,iconTooltip:W.isArtist||W.isVerified?W.innerBadgeA11y:void 0}}:null}},
hasAuthorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.authorCommentBadge}},
sponsorCommentBadge:{configurable:!0,enumerable:!0,get:function(){var F,W=(F=this.commentEntity)==null?void 0:F.author;return W!=null&&W.sponsorBadgeUrl?{renderer:{customBadge:{thumbnails:[{url:W.sponsorBadgeUrl}]},tooltip:W.sponsorBadgeA11y}}:null}},
hasSponsorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.sponsorCommentBadge}},
pdgCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var F;return _.D((F=this.commentSurfaceEntity)==null?void 0:F.pdgCommentChip,_.qwT)||null}},
hasVoiceReply:{configurable:!0,enumerable:!0,get:function(){var F;return this.voiceReplyContainerViewModel&&((F=this.voiceReplyContainerViewModel)==null?void 0:F.transcriptText)}},
voiceReplyContainerViewModel:{configurable:!0,enumerable:!0,get:function(){var F;return _.D((F=this.commentSurfaceEntity)==null?void 0:F.voiceReplyContainerViewModel,gcT)||null}},
voiceReplyUnavailableText:{configurable:!0,enumerable:!0,get:function(){var F;return this.voiceReplyContainerViewModel&&(F=this.voiceReplyContainerViewModel)!=null&&F.voiceReplyUnavailableText?this.voiceReplyContainerViewModel.voiceReplyUnavailableText:null}},
viewModel:{configurable:!0,enumerable:!0,get:function(){return this.data||{}}},
backgroundColor:{configurable:!0,enumerable:!0,get:function(){var F,W;return(W=(F=this.commentSurfaceEntity)==null?void 0:F.commentBackgroundColor)!=null?W:null}},
optimalReadingWidthComments:{configurable:!0,enumerable:!0,get:function(){return _.c("web_watch_compact_comments")}},
isReply:{configurable:!0,enumerable:!0,get:function(){var F,W;return(((F=this.commentEntity)==null?void 0:(W=F.properties)==null?void 0:W.replyLevel)||0)>0}},
authorThumbnailEndpoint:{configurable:!0,enumerable:!0,get:function(){var F,W;if(_.c("enable_profile_cards_on_comments")&&((F=this.commentEntity)==null?0:(W=F.author)==null?0:W.profileCardEndpoint)&&this.viewModel.allowProfileCard){var E,h;return _.D((E=this.commentEntity)==null?void 0:(h=E.author)==null?void 0:h.profileCardEndpoint,_.XP)}var d,V;return _.D((d=this.commentEntity)==null?void 0:(V=d.avatar)==null?void 0:V.endpoint,_.XP)}},
authorNameEndpoint:{configurable:!0,enumerable:!0,get:function(){var F,W;if(_.c("enable_profile_cards_on_comments")&&((F=this.commentEntity)==null?0:(W=F.author)==null?0:W.channelPageEndpoint)){var E,h;return _.D((E=this.commentEntity)==null?void 0:(h=E.author)==null?void 0:h.channelPageEndpoint,_.XP)}var d,V;return _.D((d=this.commentEntity)==null?void 0:(V=d.avatar)==null?void 0:V.endpoint,_.XP)}},
authorThumbnail:{configurable:!0,enumerable:!0,get:function(){var F,W,E,h,d=(F=this.commentEntity)==null?void 0:(W=F.avatar)==null?void 0:(E=W.image)==null?void 0:(h=E.sources)==null?void 0:h[0];return d?{thumbnails:[{url:d.url,width:d.width,height:d.height}]}:null}},
authorTextClass:{configurable:!0,enumerable:!0,get:function(){var F,W;return((F=this.commentEntity)==null?0:(W=F.author)==null?0:W.isCreator)?"channel-owner":""}},
authorChannelName:{configurable:!0,enumerable:!0,get:function(){var F,W;return((F=this.commentEntity)==null?void 0:(W=F.author)==null?void 0:W.displayName)||""}},
publishedTime:{configurable:!0,enumerable:!0,get:function(){var F,W;return((F=this.commentEntity)==null?void 0:(W=F.properties)==null?void 0:W.publishedTime)||null}},
publishedTimeCommand:{configurable:!0,enumerable:!0,get:function(){var F;return _.D((F=this.commentSurfaceEntity)==null?void 0:F.publishedTimeCommand,_.XP)||null}},
contentText:{configurable:!0,enumerable:!0,get:function(){var F,W;if(((F=this.commentEntity)==null?0:F.translatedContent)&&((W=this.translateButtonState)==null?void 0:W.stateIdentifier)==="TRI_STATE_IDENTIFIER_TOGGLED_STATE")return this.commentEntity.translatedContent;var E;if((E=this.voiceReplyContainerViewModel)==null?0:E.transcriptText)return this.voiceReplyContainerViewModel.transcriptText;var h,d;return((h=this.commentEntity)==null?void 0:(d=h.properties)==null?void 0:d.content)||null}},
shouldShowReadMoreInitially:{configurable:!0,enumerable:!0,get:function(){return!1}},
expandText:{configurable:!0,enumerable:!0,get:function(){var F,W;return((F=this.commentSharedEntity)==null?void 0:(W=F.strings)==null?void 0:W.expandText)||""}},
collapseText:{configurable:!0,enumerable:!0,get:function(){var F,W;return((F=this.commentSharedEntity)==null?void 0:(W=F.strings)==null?void 0:W.collapseText)||""}},
shouldShowTranslateButton:{configurable:!0,enumerable:!0,get:function(){var F;return!((F=this.commentEntity)==null||!F.isTranslationAvailable)}},
translateButton:{configurable:!0,enumerable:!0,get:function(){if(!this.commentEntity||!this.commentSharedEntity)return{};var F,W,E=(W=_.D((F=this.viewModel)==null?void 0:F.translateButton,MPe))!=null?W:{},h,d,V,R,M,g,t,C,B,I,x;return Object.assign({},E,{untoggledStateData:Object.assign({},E.untoggledStateData,{buttonText:(h=this.commentEntity)==null?void 0:(d=h.translateData)==null?void 0:d.text}),togglingStateData:Object.assign({},E.togglingStateData,{buttonText:(V=this.commentSharedEntity)==null?
void 0:(R=V.strings)==null?void 0:R.translatingText}),toggledStateData:Object.assign({},E.toggledStateData,{buttonText:(M=this.commentSharedEntity)==null?void 0:(g=M.strings)==null?void 0:g.seeOriginalText}),transitionCommand:((t=this.commentEntity)==null?0:t.translatedContent)?void 0:_.D((C=this.commentEntity)==null?void 0:(B=C.translateData)==null?void 0:B.translateComment,_.XP),triStateKey:(I=this.commentEntity)==null?void 0:(x=I.properties)==null?void 0:x.translateButtonEntityKey})}},
overflowMenuRenderer:{configurable:!0,enumerable:!0,get:function(){var F,W,E;return((W=_.D(_.D((F=this.toolbarSurface)==null?void 0:F.menuCommand,_.XP),KKT))==null?void 0:(E=W.menu)==null?void 0:E.menuRenderer)||null}}});
x8.prototype.onYtCommentboxResize=x8.prototype.onYtCommentboxResize;x8.prototype.onYtCommentboxDismiss=x8.prototype.onYtCommentboxDismiss;x8.prototype.onYtNavigate=x8.prototype.onYtNavigate;x8.prototype.resetExpander=x8.prototype.resetExpander;x8.prototype.updateBackgroundColor=x8.prototype.updateBackgroundColor;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],x8.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.am),_.Y("design:type",Object)],x8.prototype,"ytdReduxBehavior",void 0);
_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],x8.prototype,"ytComponentBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],x8.prototype,"ytRendererstamperBehavior",void 0);_.T([_.gQ("#author-thumbnail > button"),_.Y("design:type",HTMLElement)],x8.prototype,"authorThumbnailAnchor",void 0);_.T([_.O({reflectToAttribute:!0}),_.a("viewModel"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],x8.prototype,"linked",null);
_.T([_.a("viewModel","linked"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],x8.prototype,"linkedCommentBadge",null);_.T([_.O({reflectToAttribute:!0}),_.a("viewModel"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],x8.prototype,"pinned",null);_.T([_.a("viewModel","pinned"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],x8.prototype,"pinnedCommentBadge",null);
_.T([_.a("commentEntity","commentSharedEntity"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],x8.prototype,"authorCommentBadge",null);_.T([_.O({reflectToAttribute:!0}),_.a("authorCommentBadge"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],x8.prototype,"hasAuthorBadge",null);_.T([_.a("commentEntity"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],x8.prototype,"sponsorCommentBadge",null);
_.T([_.O({reflectToAttribute:!0}),_.a("sponsorCommentBadge"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],x8.prototype,"hasSponsorBadge",null);_.T([_.a("commentSurfaceEntity"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],x8.prototype,"pdgCommentChipRenderer",null);_.T([_.O({reflectToAttribute:!0}),_.a("voiceReplyContainerViewModel"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],x8.prototype,"hasVoiceReply",null);
_.T([_.a("commentSurfaceEntity"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],x8.prototype,"voiceReplyContainerViewModel",null);_.T([_.a("voiceReplyContainerViewModel"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],x8.prototype,"voiceReplyUnavailableText",null);_.T([_.O(),_.Y("design:type",Object)],x8.prototype,"data",void 0);_.T([_.a("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],x8.prototype,"viewModel",null);
_.T([_.O({selector:function(F,W){return _.Mn(F.entities,"commentSharedEntityPayload",W)},
selectorArgs:["viewModel.sharedKey"]}),_.Y("design:type",Object)],x8.prototype,"commentSharedEntity",void 0);_.T([_.O({selector:function(F,W){return _.Mn(F.entities,"commentEntityPayload",W)},
selectorArgs:["viewModel.commentKey"]}),_.Y("design:type",Object)],x8.prototype,"commentEntity",void 0);_.T([_.O({selector:function(F,W){return _.Mn(F.entities,"commentSurfaceEntityPayload",W)},
selectorArgs:["viewModel.commentSurfaceKey"]}),_.Y("design:type",Object)],x8.prototype,"commentSurfaceEntity",void 0);_.T([_.O({selector:JOY,selectorArgs:["viewModel.toolbarSurfaceKey"]}),_.Y("design:type",Object)],x8.prototype,"toolbarSurface",void 0);_.T([_.O({selector:ahW,selectorArgs:["commentEntity.properties.translateButtonEntityKey"]}),_.Y("design:type",Object)],x8.prototype,"translateButtonState",void 0);
_.T([_.a("commentSurfaceEntity"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],x8.prototype,"backgroundColor",null);_.T([_.O({reflectToAttribute:!0}),_.a("viewModel"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],x8.prototype,"optimalReadingWidthComments",null);_.T([_.gQ("ytd-expander"),_.Y("design:type",Object)],x8.prototype,"expander",void 0);
_.T([_.ea("backgroundColor"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],x8.prototype,"updateBackgroundColor",null);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],x8.prototype,"useSmallAvatars",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],x8.prototype,"webWatchCompactComments",void 0);_.T([_.O({reflectToAttribute:!0}),_.a("commentEntity"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],x8.prototype,"isReply",null);
_.T([_.a("commentEntity"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],x8.prototype,"authorThumbnailEndpoint",null);_.T([_.a("commentEntity"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],x8.prototype,"authorNameEndpoint",null);_.T([_.a("commentEntity"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],x8.prototype,"authorThumbnail",null);_.T([_.a("commentEntity"),_.Y("design:type",String),_.Y("design:paramtypes",[])],x8.prototype,"authorTextClass",null);
_.T([_.a("commentEntity"),_.Y("design:type",String),_.Y("design:paramtypes",[])],x8.prototype,"authorChannelName",null);_.T([_.a("commentEntity"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],x8.prototype,"publishedTime",null);_.T([_.a("commentSurfaceEntity"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],x8.prototype,"publishedTimeCommand",null);
_.T([_.a("commentEntity","translateButtonState","voiceReplyContainerViewModel"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],x8.prototype,"contentText",null);_.T([_.ea("contentText"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],x8.prototype,"resetExpander",null);_.T([_.a("commentEntity"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],x8.prototype,"shouldShowReadMoreInitially",null);
_.T([_.a("commentSharedEntity"),_.Y("design:type",String),_.Y("design:paramtypes",[])],x8.prototype,"expandText",null);_.T([_.a("commentSharedEntity"),_.Y("design:type",String),_.Y("design:paramtypes",[])],x8.prototype,"collapseText",null);_.T([_.a("commentEntity"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],x8.prototype,"shouldShowTranslateButton",null);
_.T([_.a("commentEntity","commentSharedEntity"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],x8.prototype,"translateButton",null);_.T([_.a("toolbarSurface"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],x8.prototype,"overflowMenuRenderer",null);_.T([_.O(),_.Y("design:type",Object)],x8.prototype,"editDialog",void 0);_.T([_.gQ("ytd-comment-dialog-renderer"),_.Y("design:type",Object)],x8.prototype,"editCommentDialogContainer",void 0);
_.T([_.gQ("ytd-comment-reply-dialog-renderer"),_.Y("design:type",Object)],x8.prototype,"editReplyDialogContainer",void 0);_.T([_.R4("yt-navigate"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],x8.prototype,"onYtNavigate",null);_.T([_.R4("yt-commentbox-dismiss"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],x8.prototype,"onYtCommentboxDismiss",null);
_.T([_.R4("yt-commentbox-resize"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],x8.prototype,"onYtCommentboxResize",null);x8=_.T([_.y({disableElementRegistration:!0,is:"ytd-comment-view-model"})],x8);
_.r(x8,"ytd-comment-view-model",function(){if(xtu!==void 0)return xtu;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="paid-comment-background" class="style-scope ytd-comment-view-model"></div>\n<div id="linked-comment-badge" class="style-scope ytd-comment-view-model"></div>\n\n<div id="body" hidden="[[editDialog]]" class="style-scope ytd-comment-view-model">\n  \n  <div id="author-thumbnail" class="style-scope ytd-comment-view-model">\n    <button id="author-thumbnail-button" aria-label="[[authorChannelName]]" on-click="onAuthorThumbnailClicked" class="style-scope ytd-comment-view-model">\n      <yt-img-shadow fit="" height="40" thumbnail="[[authorThumbnail]]" width="40" class="style-scope ytd-comment-view-model">\n      </yt-img-shadow>\n    </button>\n  </div>\n  <div id="main" class="style-scope ytd-comment-view-model">\n    <div id="header" class="style-scope ytd-comment-view-model">\n      <div id="pinned-comment-badge" class="style-scope ytd-comment-view-model"></div>\n      <div id="header-author" class="style-scope ytd-comment-view-model">\n        \n        <h3 class="style-scope ytd-comment-view-model"> \n          <a id="author-text" class="yt-simple-endpoint style-scope ytd-comment-view-model" href$="[[computeOptionalHref_(authorNameEndpoint)]]" data="[[authorNameEndpoint]]" hidden="[[authorCommentBadge]]">\n            <span class$="[[authorTextClass]] style-scope ytd-comment-view-model">\n              [[authorChannelName]]\n            </span>\n          </a>\n        </h3>\n        <span id="author-comment-badge" class="style-scope ytd-comment-view-model"></span>\n        <span id="sponsor-comment-badge" class="style-scope ytd-comment-view-model"></span>\n        <span dir="auto" id="published-time-text" class="style-scope ytd-comment-view-model">\n          <a class="yt-simple-endpoint style-scope ytd-comment-view-model" href$="[[computeHref_(publishedTimeCommand)]]" data="[[publishedTimeCommand]]">\n            [[publishedTime]]\n          </a>\n        </span>\n      </div>\n    </div>\n    \n    <ytd-expander id="expander" can-toggle="[[shouldShowReadMoreInitially]]" max-number-of-lines="4" class="style-scope ytd-comment-view-model">\n      \n      <yt-pdg-comment-chip-renderer id="paid-comment-chip" slot="content" data="[[pdgCommentChipRenderer]]" hidden="[[!pdgCommentChipRenderer]]" class="style-scope ytd-comment-view-model">\n      </yt-pdg-comment-chip-renderer>\n      <yt-attributed-string id="content-text" slot="content" data="[[contentText]]" user-input="" class="style-scope ytd-comment-view-model">\n      </yt-attributed-string>\n      <span class="more-button style-scope ytd-comment-view-model" slot="more-button">[[expandText]]</span>\n      <span class="less-button style-scope ytd-comment-view-model" slot="less-button">[[collapseText]]</span>\n    </ytd-expander>\n    <yt-attributed-string id="error-text" data="[[voiceReplyUnavailableText]]" hidden="[[!voiceReplyUnavailableText]]" class="style-scope ytd-comment-view-model">\n    </yt-attributed-string>\n    <ytd-tri-state-button-view-model class="translate-button style-scope ytd-comment-view-model" hidden="[[!shouldShowTranslateButton]]" view-model="[[translateButton]]">\n    </ytd-tri-state-button-view-model>\n    <ytd-comment-engagement-bar id="action-buttons" comment-strings="[[commentSharedEntity.strings]]" is-reply="[[isReply]]" toolbar-data="[[commentEntity.toolbar]]" toolbar-shared-data="[[commentSharedEntity.toolbarShared]]" toolbar-state-key="[[viewModel.toolbarStateKey]]" toolbar-surface-key="[[viewModel.toolbarSurfaceKey]]" class="style-scope ytd-comment-view-model">\n    </ytd-comment-engagement-bar>\n  </div>\n  \n  <div id="action-menu" class="style-scope ytd-comment-view-model">\n    <ytd-menu-renderer data="[[overflowMenuRenderer]]" class="style-scope ytd-comment-view-model"></ytd-menu-renderer>\n  </div>\n</div>\n<div id="edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-comment-view-model"></div>\n\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return xtu=F},{mode:_.E6("kevlar_poly_si_batch_j025")?1:2});var k8=function(){var F=_.n.apply(this,arguments)||this;F.modern=_.c("web_modern_buttons");F.isWatchGrid=_.c("kevlar_watch_grid");F.buttonOverrides={style:"call-to-action"};F.JSC$13676_spinnerEl=null;return F};
_.k(k8,_.n);_.N=k8.prototype;_.N.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.N.configureRendererStamper=function(){return{"data.teaserContents":{id:"teaser-replies",mapping:{commentViewModel:{component:"ytd-comment-view-model"}}},"data.contents":{id:"contents",mapping:{commentViewModel:{component:"ytd-comment-view-model"},continuationItemRenderer:{component:"ytd-continuation-item-renderer",params:{showButton:!0,isCommentsSection:!1},properties:{buttonOverrides:"[[buttonOverrides]]"}}}}}};
_.N.attached=function(){this.isShowRepliesVisible=!0};
_.N.dataChanged=function(){var F=this.expanderContents;F&&(F.hidden=!0);this.isLoading=!1};
_.N.triggerFirstContinuation=function(){this.continuationItemRenderer&&!this.continuationItemRenderer.buttonRenderer&&(this.continuationItemRenderer.showButton=!1)};
_.N.isLoadingChanged=function(){this.isLoading&&!this.JSC$13676_spinnerEl&&(this.JSC$13676_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.Z(this.expanderContents).appendChild(this.JSC$13676_spinnerEl));this.JSC$13676_spinnerEl&&(this.JSC$13676_spinnerEl.active=this.isLoading);if(this.isLoading)this.contents.classList.add("reloading");else{var F;(F=this.contents)==null||F.classList.remove("reloading")}};
_.N.handleIsShowMoreTap=function(){this.isShowRepliesVisible=!1;this.triggerFirstContinuation();var F=_.D(this.data.viewReplies,_.jt);F&&this.ytRendererBehavior.logExplicitClick(F)};
_.N.handleIsShowLessTap=function(){this.isShowRepliesVisible=!0;var F=_.D(this.data.hideReplies,_.jt);F&&this.ytRendererBehavior.logExplicitClick(F)};
_.N.isShowMoreChanged=function(){var F=_.Z(this.hostElement).querySelector("#expander-contents");F&&(F.hidden=this.isShowRepliesVisible)};
_.N.computeAlign=function(){if(this.modern){var F;return!((F=this.data)==null?0:F.viewRepliesCreatorThumbnail)}};
_.Sn.Object.defineProperties(k8.prototype,{hasContinuation:{configurable:!0,enumerable:!0,get:function(){var F,W=(F=this.data)==null?void 0:F.contents;return!!W&&W.length>0&&!!W[W.length-1].continuationItemRenderer}}});
k8.prototype.isShowMoreChanged=k8.prototype.isShowMoreChanged;k8.prototype.isLoadingChanged=k8.prototype.isLoadingChanged;k8.prototype.triggerFirstContinuation=k8.prototype.triggerFirstContinuation;k8.prototype.dataChanged=k8.prototype.dataChanged;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],k8.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],k8.prototype,"ytRendererstamperBehavior",void 0);
_.T([_.J(_.br),_.Y("design:type",Object)],k8.prototype,"ytContinuationHandlerBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],k8.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],k8.prototype,"modern",void 0);_.T([_.O(),_.Y("design:type",Boolean)],k8.prototype,"isLoading",void 0);_.T([_.O({value:!0}),_.Y("design:type",Boolean)],k8.prototype,"isShowRepliesVisible",void 0);_.T([_.O({value:!1}),_.Y("design:type",Boolean)],k8.prototype,"useNewFormatting",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],k8.prototype,"isWatchGrid",void 0);_.T([_.O(),_.Y("design:type",Object)],k8.prototype,"buttonOverrides",void 0);_.T([_.gQ("#expander-contents"),_.Y("design:type",HTMLElement)],k8.prototype,"expanderContents",void 0);_.T([_.gQ("ytd-continuation-item-renderer"),_.Y("design:type",Object)],k8.prototype,"continuationItemRenderer",void 0);_.T([_.gQ("#contents"),_.Y("design:type",HTMLElement)],k8.prototype,"contents",void 0);
_.T([_.Cz("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],k8.prototype,"dataChanged",null);_.T([_.a("data.contents"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],k8.prototype,"hasContinuation",null);_.T([_.R4("yt-expander-more-tapped"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],k8.prototype,"triggerFirstContinuation",null);
_.T([_.ea("isLoading"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],k8.prototype,"isLoadingChanged",null);_.T([_.ea("isShowRepliesVisible"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],k8.prototype,"isShowMoreChanged",null);k8=_.T([_.y({is:"ytd-comment-replies-renderer",disableElementRegistration:!0})],k8);
_.r(k8,"ytd-comment-replies-renderer",function(){if(CN_!==void 0)return CN_;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-replies-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="expander" hidden="[[!hasContinuation]]" class="style-scope ytd-comment-replies-renderer">\n  <div class="expander-header style-scope ytd-comment-replies-renderer" teaser$="[[data.viewRepliesCreatorThumbnail]]">\n    <div class="more-button style-scope ytd-comment-replies-renderer" aria-expanded="false" hidden="[[!isShowRepliesVisible]]" on-click="handleIsShowMoreTap">\n      <template is="dom-if" if="[[data.viewRepliesIcon]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-button-renderer id="more-replies-icon" class="more-button style-scope ytd-comment-replies-renderer" align-by-text="[[modern]]" data="[[data.viewRepliesIcon.buttonRenderer]]" hidden="[[!isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n        </ytd-button-renderer>\n      </template>\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="creator-thumbnail style-scope ytd-comment-replies-renderer">\n            <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n            </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="more-replies" class="more-button style-scope ytd-comment-replies-renderer" align-by-text="[[computeAlign(modern, data.viewRepliesCreatorThumbnail)]]" data="[[data.viewReplies.buttonRenderer]]" hidden="[[!isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n      </ytd-button-renderer>\n    </div>\n    <div class="less-button style-scope ytd-comment-replies-renderer" aria-expanded="true" hidden="[[isShowRepliesVisible]]" on-click="handleIsShowLessTap">\n      <template is="dom-if" if="[[data.hideRepliesIcon]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-button-renderer id="less-replies-icon" class="less-button style-scope ytd-comment-replies-renderer" align-by-text="[[modern]]" data="[[data.hideRepliesIcon.buttonRenderer]]" hidden="[[isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n        </ytd-button-renderer>\n      </template>\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="creator-thumbnail style-scope ytd-comment-replies-renderer">\n            <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n            </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="less-replies" class="less-button style-scope ytd-comment-replies-renderer" align-by-text="[[computeAlign(modern, data.viewRepliesCreatorThumbnail)]]" data="[[data.hideReplies.buttonRenderer]]" hidden="[[isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n      </ytd-button-renderer>\n    </div>\n  </div>\n  <div id="expander-contents" class="style-scope ytd-comment-replies-renderer">\n    <div id="contents" class="style-scope ytd-comment-replies-renderer"></div>\n    <div class="cont-button style-scope ytd-comment-replies-renderer" id="continuation"></div>\n  </div>\n</div>\n<div hidden="[[!isShowRepliesVisible]]" id="teaser-replies" class="style-scope ytd-comment-replies-renderer"></div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return CN_=F},{mode:1});var L5X;var Ai=function(){var F=_.n.apply(this,arguments)||this;F.isOpen=!1;F.commentDialog=null;F.useSmallAvatars=_.c("small_avatars_for_comments");F.useSmallAvatarsEngagementPanelOnly=_.c("small_avatars_for_comments_ep");F.placeholderFocusListener=null;F.actionMap={"yt-create-comment-action":"onCreateCommentAction","yt-hide-identity-chip-action":"onHideIdentityChip"};return F};
_.k(Ai,_.n);_.N=Ai.prototype;_.N.configureRendererStamper=function(){return{"data.imageButton":{id:"image-button",mapping:{buttonRenderer:"ytd-button-renderer"}},commentDialog:{id:"comment-dialog",mapping:{commentDialogRenderer:{component:"ytd-comment-dialog-renderer",properties:{zeroStepChannelCreationRenderer:"[[data.zeroStep.zeroStepChannelCreationRenderer]]"}}}}}};
_.N.ready=function(){var F=this,W=_.Z(this.hostElement).querySelector("#placeholder-area"),E=_.Z(this.hostElement).querySelector("#simplebox-placeholder"),h=function(d){d.stopPropagation();d instanceof KeyboardEvent&&d.type==="keypress"&&d.keyCode!==13&&d.keyCode!==32||F.openDialog()};
this.placeholderFocusListener=h;E.addEventListener("focus",this.placeholderFocusListener);W.addEventListener("tap",h);W.addEventListener("keypress",h)};
_.N.maybeRemoveFocusEventListener=function(){var F;(F=this.data)!=null&&F.prepareAccountEndpoint&&!_.c("web_comments_simplebox_modal_focus_on_tap_ks")&&(F=_.Z(this.hostElement).querySelector("#simplebox-placeholder"),this.placeholderFocusListener&&(F.removeEventListener("focus",this.placeholderFocusListener),this.placeholderFocusListener=null))};
_.N.dataChanged=function(){this.maybeRemoveFocusEventListener();this.commentDialog=null;this.isOpen=!1;this.showCreateDialog&&this.openDialog()};
_.N.openDialog=function(){this.data&&(this.data.prepareAccountEndpoint?_.c("web_comment_simplebox_resolve_polymer_command_ks")?_.Ru.instance.resolveCommand(this.data.prepareAccountEndpoint):_.ei(this.data.prepareAccountEndpoint,this.hostElement):(this.commentDialog||(this.commentDialog={commentDialogRenderer:this.computeCommentDialog(this.data)}),this.isOpen=!0,_.Z(this.hostElement).querySelector("#comment-dialog").firstElementChild.focus()))};
_.N.onYtCommentboxDismiss=function(F){F.stopPropagation();this.isOpen=!1};
_.N.onCreateCommentAction=function(F){this.get("createCommentAction.contents",F)&&(this.isOpen=!1)};
_.N.computeCommentDialog=function(F){return{placeholderText:F.placeholderText,authorThumbnail:F.authorThumbnail,submitButton:F.submitButton,imageButton:F.imageButton,cancelButton:F.cancelButton,emojiButton:F.emojiButton,emojis:F.emojis,emojiPicker:F.emojiPicker,aadcGuidelinesStateEntityKey:F.aadcGuidelinesStateEntityKey,openAadcDialog:F.openAadcDialog,unicodeEmojisUrl:F.unicodeEmojisUrl}};
_.N.onHideIdentityChip=function(F){_.D(F,Ecu)&&this.set("data.placeholderText",_.D(F,Ecu).placeholderText)};
Ai.prototype.onYtCommentboxDismiss=Ai.prototype.onYtCommentboxDismiss;Ai.prototype.dataChanged=Ai.prototype.dataChanged;_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],Ai.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Ai.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],Ai.prototype,"ytActionHandlerBehavior",void 0);
_.T([_.O(),_.Y("design:type",Object)],Ai.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Object)],Ai.prototype,"isOpen",void 0);_.T([_.O(),_.Y("design:type",Object)],Ai.prototype,"commentDialog",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Ai.prototype,"engagementPanel",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],Ai.prototype,"useSmallAvatars",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],Ai.prototype,"useSmallAvatarsEngagementPanelOnly",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Ai.prototype,"enableCreationBox",void 0);_.T([_.O(),_.Y("design:type",Boolean)],Ai.prototype,"showCreateDialog",void 0);_.T([_.Cz("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Ai.prototype,"dataChanged",null);
_.T([_.R4("yt-commentbox-dismiss"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Ai.prototype,"onYtCommentboxDismiss",null);Ai=_.T([_.y({is:"ytd-comment-simplebox-renderer",disableElementRegistration:!0})],Ai);
_.r(Ai,"ytd-comment-simplebox-renderer",function(){if(L5X!==void 0)return L5X;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-simplebox-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow id="author-thumbnail" fit="" height="40" hidden="[[isOpen]]" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-comment-simplebox-renderer">\n</yt-img-shadow>\n<div id="placeholder-area" hidden="[[isOpen]]" class="style-scope ytd-comment-simplebox-renderer">\n  <yt-formatted-string id="simplebox-placeholder" role="textbox" tabindex="0" text="[[data.placeholderText]]" class="style-scope ytd-comment-simplebox-renderer">\n  </yt-formatted-string>\n</div>\n<div id="attachments" hidden="[[isOpen]]" class="style-scope ytd-comment-simplebox-renderer">\n  <div id="image-button" class="style-scope ytd-comment-simplebox-renderer"></div>\n</div>\n<div id="comment-dialog" hidden="[[!isOpen]]" class="style-scope ytd-comment-simplebox-renderer"></div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return L5X=F},{mode:1});var qlp;_.Hr("itemSectionRenderer","commentThreadRenderer","ytd-comment-thread-renderer");var sb=function(){var F=_.n.apply(this,arguments)||this;F.addHoverEffect=_.c("swatcheroo_comments_hover_effect");return F};
_.k(sb,_.n);sb.prototype.onTap=function(F){if(this.addHoverEffect&&!this.engagementPanel&&!_.Sc(_.TB(F)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var W;((W=window.getSelection())==null?0:W.toString().length)||_.ei({changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},this.hostElement)}};
sb.prototype.configureRendererStamper=function(){return{"data.replies":{id:"replies",mapping:{commentRepliesRenderer:{component:"ytd-comment-replies-renderer",noInjection:!0}}}}};
_.Sn.Object.defineProperties(sb.prototype,{commentViewModel:{configurable:!0,enumerable:!0,get:function(){var F;if((F=this.data)!=null&&F.commentViewModel)return _.D(this.data.commentViewModel,e4e)}}});
sb.prototype.onTap=sb.prototype.onTap;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],sb.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],sb.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],sb.prototype,"addHoverEffect",void 0);_.T([_.O(),_.Y("design:type",Object)],sb.prototype,"data",void 0);
_.T([_.a("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],sb.prototype,"commentViewModel",null);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],sb.prototype,"engagementPanel",void 0);_.T([_.R4("tap"),_.R4("click"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],sb.prototype,"onTap",null);sb=_.T([_.y({is:"ytd-comment-thread-renderer",disableElementRegistration:!0})],sb);
_.r(sb,"ytd-comment-thread-renderer",function(){if(qlp!==void 0)return qlp;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-thread-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-comment-view-model id="comment" data="[[commentViewModel]]" class="style-scope ytd-comment-thread-renderer"> </ytd-comment-view-model>\n<div id="replies" hidden="[[!data.replies]]" class="style-scope ytd-comment-thread-renderer"></div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return qlp=F},{mode:_.E6("kevlar_poly_si_batch_j025")?1:2});var $tu;var L8=function(){var F=_.n.apply(this,arguments)||this;F.modernTypography=_.c("web_modern_typography");F.compactHeader=_.c("web_watch_compact_comments_header");F.hidePanelButton=!1;F.isPostSchedulingEnabled=_.c("enable_post_scheduling");F.hasFinishedStamping=!1;F.JSC$13694_handleOpenPostCommentDialogActionAfterStamp=!1;F.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return F};
_.k(L8,_.n);_.N=L8.prototype;
_.N.configureRendererStamper=function(){return{"data.createRenderer":{id:"simple-box",mapping:{commentSimpleboxRenderer:{component:"ytd-comment-simplebox-renderer",properties:{engagementPanel:"[[engagementPanel]]",showCreateDialog:"[[data.showCreateDialog]]"}}}},"data.pausedCommentsMessage":{id:"paused-comments-message",mapping:{messageRenderer:"ytd-comment-pause-composer-renderer"}},backstagePostDialog:{id:"backstage-post-dialog",mapping:{backstagePostDialogRenderer:{component:"ytd-backstage-post-dialog-renderer"}},events:!0},
"data.sortMenu":{id:"sort-menu",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}},"data.alerts":{id:"alert",mapping:{alertWithButtonRenderer:"ytd-alert-with-button-renderer"},renderPriority:0,waitForSignal:"eocs"},"data.zeroStateMessage":{id:"zero-state-message",mapping:{backstageZeroStateRenderer:"ytd-backstage-zero-state-renderer",postFilterZeroStateRenderer:"ytd-post-filter-zero-state-renderer"}},"data.prefilledCreateDialogHeaderMessage":{id:"prefilled-dialog-header",mapping:{backstagePrefilledPostDialogHeaderRenderer:"ytd-backstage-prefilled-post-dialog-header-renderer"}},
"data.postStreamFilter":{id:"post-stream-filter",mapping:{postStreamFilterRenderer:"ytd-post-stream-filter-renderer"}},"data.schedulingZeroStateMessage":{id:"scheduling-zero-state-message",mapping:{postSchedulingZeroStateRenderer:"ytd-post-scheduling-zero-state-renderer"}}}};
_.N.attached=function(){this.hasActionsChange&&this.observePrefilledBackstagePostDialog()};
_.N.onStampFinished=function(){this.hasFinishedStamping=!0;this.hasActionsChange&&this.observePrefilledBackstagePostDialog();this.JSC$13694_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.N.onYtServiceRequestSent=function(F,W){if(!_.c("kevlar_command_handler")&&W.actions)for(F=0;F<W.actions.length;F++){var E=W.actions[F];_.D(E,XYp)&&_.Z(this.hostElement).querySelector("#backstage-post-dialog > ytd-backstage-post-dialog-renderer").openSchedulingPanel(_.D(E,XYp))}};
_.N.observePrefilledBackstagePostDialog=function(){if(this.hasFinishedStamping){this.hasActionsChange=!1;var F;if(this.getPrefilledBackstagePostDialog((F=this.data)==null?void 0:F.actions)){_.Z(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!1;var W=_.Z(this.hostElement).querySelector("#backstage-post-dialog").firstElementChild;W&&_.wT(this,function(){W.focus();W.openDialog&&W.openDialog()})}}else this.hasActionsChange=!0};
_.N.computeIsBackstage=function(F){return F};
_.N.onYtCommentboxDismiss=function(){_.Z(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!0;this.removePrefilledDialog(this.data)};
_.N.removePrefilledDialog=function(F){if(F==null?0:F.actions){for(var W=F.actions.length-1;W>=0;W--){var E=void 0;((E=_.D(F.actions[W],uUU))==null?0:E.dialog)&&delete F.actions[W]}this.set("data",void 0);this.set("data",F)}};
_.N.getPrefilledBackstagePostDialog=function(F){if(F)for(var W=0;W<F.length;W++){var E=F[W],h=void 0;if((h=_.D(E,uUU))==null?0:h.dialog)return _.D(E,uUU).dialog}return null};
_.N.computeBackstagePostDialog=function(F){return F&&(this.getPrefilledBackstagePostDialog(F.actions)||F.createRenderer)};
_.N.dataChanged=function(){if(this.data){var F=this.data.customEmojis,W=this.data.unicodeEmojisUrl;_.Oz.clear();W&&_.DbM(_.Oz,W);F&&_.Oz.load(F)}};
_.N.handleSignalActionOpenPostCommentDialogAction=function(){var F=_.Z(this.hostElement).querySelector("ytd-comment-simplebox-renderer");F?F.openDialog():this.JSC$13694_handleOpenPostCommentDialogActionAfterStamp=!0};
_.Sn.Object.defineProperties(L8.prototype,{useSpaceBetween:{configurable:!0,enumerable:!0,get:function(){return this.showCommentsPanelButton||_.c("kevlar_watch_grid")}},
showCommentsPanelButton:{configurable:!0,enumerable:!0,get:function(){var F,W,E,h,d,V,R;return!this.hidePanelButton&&_.c("kevlar_watch_comments_panel_button")&&((R=_.D((F=this.data)==null?void 0:(W=F.sortMenu)==null?void 0:(E=W.sortFilterSubMenuRenderer)==null?void 0:(h=E.subMenuItems)==null?void 0:(d=h[0])==null?void 0:(V=d.serviceEndpoint)==null?void 0:V.commandMetadata,_.m1))==null?void 0:R.apiUrl)==="/youtubei/v1/next"}},
commentsPanelButtonData:{configurable:!0,enumerable:!0,get:function(){if(this.showCommentsPanelButton)return{icon:{iconType:"EXPAND_ALL"},tooltip:_.CY("MINIPLAYER_EXPAND_LABEL"),text:_.Gr(_.CY("MINIPLAYER_EXPAND_LABEL")),command:{commandExecutorCommand:{commands:[{changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},{scrollToEngagementPanelCommand:{targetId:"engagement-panel-comments-section"}}]}}}}}});
L8.prototype.dataChanged=L8.prototype.dataChanged;L8.prototype.onYtCommentboxDismiss=L8.prototype.onYtCommentboxDismiss;L8.prototype.observePrefilledBackstagePostDialog=L8.prototype.observePrefilledBackstagePostDialog;L8.prototype.onYtServiceRequestSent=L8.prototype.onYtServiceRequestSent;L8.prototype.onStampFinished=L8.prototype.onStampFinished;_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],L8.prototype,"ytActionHandlerBehavior",void 0);
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],L8.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],L8.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],L8.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],L8.prototype,"modernTypography",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],L8.prototype,"compactHeader",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],L8.prototype,"engagementPanel",void 0);_.T([_.O(),_.Y("design:type",Object)],L8.prototype,"hidePanelButton",void 0);_.T([_.O({computed:"computeIsBackstage(data.isBackstageContent)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],L8.prototype,"isBackstage",void 0);_.T([_.O({readOnly:!0,computed:"computeBackstagePostDialog(data)"}),_.Y("design:type",Object)],L8.prototype,"backstagePostDialog",void 0);
_.T([_.O(),_.Y("design:type",Object)],L8.prototype,"isPostSchedulingEnabled",void 0);_.T([_.O({reflectToAttribute:!0}),_.a("data","showCommentsPanelButton"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],L8.prototype,"useSpaceBetween",null);_.T([_.O({reflectToAttribute:!0}),_.a("data","hidePanelButton"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],L8.prototype,"showCommentsPanelButton",null);
_.T([_.a("data","showCommentsPanelButton"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],L8.prototype,"commentsPanelButtonData",null);_.T([_.R4("yt-rendererstamper-finished"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],L8.prototype,"onStampFinished",null);_.T([_.R4("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.nQ]),_.Y("design:returntype")],L8.prototype,"onYtServiceRequestSent",null);
_.T([_.ea("data.actions"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],L8.prototype,"observePrefilledBackstagePostDialog",null);_.T([_.R4("yt-commentbox-dismiss"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],L8.prototype,"onYtCommentboxDismiss",null);_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],L8.prototype,"dataChanged",null);
L8=_.T([_.y({is:"ytd-comments-header-renderer",disableElementRegistration:!0})],L8);
_.r(L8,"ytd-comments-header-renderer",function(){if($tu!==void 0)return $tu;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comments-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" hidden="[[!data.countText]]" class="style-scope ytd-comments-header-renderer">\n  <div id="leading-section" class="style-scope ytd-comments-header-renderer">\n    <h2 id="count" class="style-scope ytd-comments-header-renderer">\n      <yt-formatted-string class="count-text style-scope ytd-comments-header-renderer" text="[[data.countText]]"> </yt-formatted-string>\n    </h2>\n  </div>\n  <div id="additional-section" class="style-scope ytd-comments-header-renderer">\n    <span id="sort-menu" class="style-scope ytd-comments-header-renderer"></span>\n    <div id="panel-button" hidden="[[!showCommentsPanelButton]]" class="style-scope ytd-comments-header-renderer">\n      <ytd-button-renderer data="[[commentsPanelButtonData]]" class="style-scope ytd-comments-header-renderer"> </ytd-button-renderer>\n    </div>\n  </div>\n</div>\n<div id="red-commenting-div" hidden="[[!data.redCommentingText]]" class="style-scope ytd-comments-header-renderer">\n  <yt-formatted-string id="red-commenting-text" text="[[data.redCommentingText]]" class="style-scope ytd-comments-header-renderer">\n  </yt-formatted-string>\n</div>\n<div id="alert" class="style-scope ytd-comments-header-renderer"></div>\n<div id="prefilled-dialog-header" class="style-scope ytd-comments-header-renderer"></div>\n<div id="simple-box" class="style-scope ytd-comments-header-renderer"></div>\n<div id="paused-comments-message" class="style-scope ytd-comments-header-renderer"></div>\n<div id="backstage-post-dialog" class="style-scope ytd-comments-header-renderer"></div>\n<div id="post-stream-filter" hidden="[[!isPostSchedulingEnabled]]" class="style-scope ytd-comments-header-renderer"></div>\n<div id="zero-state-message" class="style-scope ytd-comments-header-renderer"></div>\n<div id="scheduling-zero-state-message" hidden="[[!isPostSchedulingEnabled]]" class="style-scope ytd-comments-header-renderer"></div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return $tu=F},{mode:1});var Zla;var q5=function(){return _.n.apply(this,arguments)||this};
_.k(q5,_.n);_.T([_.O(),_.Y("design:type",Object)],q5.prototype,"data",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],q5.prototype,"ytRendererBehavior",void 0);q5=_.T([_.y({is:"ytd-destination-button-renderer",disableElementRegistration:!0})],q5);
_.r(q5,"ytd-destination-button-renderer",function(){if(Zla!==void 0)return Zla;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-destination-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="destination-content-root" class="yt-simple-endpoint style-scope ytd-destination-button-renderer" href$="[[computeHref_(data.onTap)]]" data="[[data.onTap]]">\n  <yt-img-shadow id="destination-icon" height="32" thumbnail="[[data.iconImage]]" width="32" class="style-scope ytd-destination-button-renderer"></yt-img-shadow>\n  <div id="destination-label-wrapper" class="style-scope ytd-destination-button-renderer">\n     <yt-formatted-string id="destination-label" text="[[data.label]]" class="style-scope ytd-destination-button-renderer"></yt-formatted-string>\n  </div>\n</a>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return Zla=F},{mode:1});var Xle;var $8=function(){var F=_.n.apply(this,arguments)||this;F.isRichGrid=!1;F.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};F.modernTypography=_.c("web_modern_typography");return F};
_.k($8,_.n);_.N=$8.prototype;_.N.configureRendererStamper=function(){return{"data.destinationButtons":{id:"destination-buttons",mapping:{destinationButtonRenderer:{component:"ytd-destination-button-renderer"}}}}};
_.N.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap)};
_.N.handleUpdateGridStateAction=function(){this.updateDestinationButtonsVisibility()};
_.N.updateDestinationButtonsVisibility=function(){if(!this.isRichGrid){var F;if((F=this.data)==null||!F.isExpanded){F=this.hostElement.clientWidth;var W;if(F&&(W=this.data)!=null&&W.destinationButtons){W=Math.floor((F+4)/214);F=this.data.destinationButtons.length;var E=Math.ceil(F/W);this.fullyVisibleRows=F%W===1&&E===2?1:Math.min(E,2);this.isShowMoreVisible=this.fullyVisibleRows<E}}}};
_.N.updateRichGridDestinationButtonsVisibility=function(){var F,W;if(this.isRichGrid&&((F=this.data)==null||!F.isExpanded)&&(W=this.data)!=null&&W.destinationButtons){F=this.richGridItemsPerRow+1;W=this.data.destinationButtons.length;var E=Math.ceil(W/F);this.fullyVisibleRows=W%F===1&&E===2?1:Math.min(E,2);this.isShowMoreVisible=this.fullyVisibleRows<E}};
_.N.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
$8.prototype.updateRichGridDestinationButtonsVisibility=$8.prototype.updateRichGridDestinationButtonsVisibility;_.T([_.O(),_.Y("design:type",Object)],$8.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Number)],$8.prototype,"fullyVisibleRows",void 0);_.T([_.O({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],$8.prototype,"isShowMoreVisible",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],$8.prototype,"isRichGrid",void 0);
_.T([_.O({selector:_.Hz,value:0}),_.Y("design:type",Number)],$8.prototype,"richGridItemsPerRow",void 0);_.T([_.O(),_.Y("design:type",Object)],$8.prototype,"gridStateActionMap",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],$8.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],$8.prototype,"ytRendererstamperBehavior",void 0);
_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],$8.prototype,"ytActionHandlerBehavior",void 0);_.T([_.J(_.am),_.Y("design:type",Object)],$8.prototype,"ytdReduxBehavior",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],$8.prototype,"modernTypography",void 0);_.T([_.ea("data","richGridItemsPerRow"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],$8.prototype,"updateRichGridDestinationButtonsVisibility",null);
$8=_.T([_.y({is:"ytd-destination-shelf-renderer",disableElementRegistration:!0})],$8);
_.r($8,"ytd-destination-shelf-renderer",function(){if(Xle!==void 0)return Xle;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-destination-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-destination-shelf-renderer">\n  <yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope ytd-destination-shelf-renderer"></yt-formatted-string>\n  <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-destination-shelf-renderer"></yt-formatted-string>\n</div>\n<div id="destination-buttons" class="style-scope ytd-destination-shelf-renderer"></div>\n<tp-yt-paper-button id="show-more-button" aria-label$="[[data.expandButtonText]]" noink="" on-click="onShowMoreClick" class="style-scope ytd-destination-shelf-renderer">\n  <yt-icon id="show-more-button-icon" icon="yt-icons:expand" class="style-scope ytd-destination-shelf-renderer"></yt-icon>\n</tp-yt-paper-button>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return Xle=F},{mode:1});var Hli;var ZH=function(){return _.n.apply(this,arguments)||this};
_.k(ZH,_.n);ZH.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}},"data.informationButton":{id:"information-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],ZH.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],ZH.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],ZH.prototype,"data",void 0);ZH=_.T([_.y({is:"ytd-brandconnect-cta-shelf-card-renderer",disableElementRegistration:!0})],ZH);
_.r(ZH,"ytd-brandconnect-cta-shelf-card-renderer",function(){if(Hli!==void 0)return Hli;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-brandconnect-cta-shelf-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="cta-renderer style-scope ytd-brandconnect-cta-shelf-card-renderer">\n  <yt-img-shadow class="thumbnail style-scope ytd-brandconnect-cta-shelf-card-renderer" fit="" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]">\n  </yt-img-shadow>\n  <div class="provider-details style-scope ytd-brandconnect-cta-shelf-card-renderer">\n    <p id="header-line" hidden="[[!data.headline]]" class="style-scope ytd-brandconnect-cta-shelf-card-renderer">\n      [[getSimpleString(data.headline)]]\n    </p>\n    <p id="brand-name" hidden="[[!data.brandName]]" class="style-scope ytd-brandconnect-cta-shelf-card-renderer">\n      [[getSimpleString(data.brandName)]]\n    </p>\n    <p id="description" hidden="[[!data.description]]" class="style-scope ytd-brandconnect-cta-shelf-card-renderer">\n      [[getSimpleString(data.description)]]\n    </p>\n    <div id="action-button" class="style-scope ytd-brandconnect-cta-shelf-card-renderer"></div>\n  </div>\n  <div id="information-button" hidden="[[!data.informationButton]]" class="style-scope ytd-brandconnect-cta-shelf-card-renderer"></div>\n</div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return Hli=F},{mode:1});var PNH;var Xr=function(){var F=_.n.apply(this,arguments)||this;F.disableAnimation=!1;F.isSlimlineSurvey=!1;F.isSlimlineSurveyFollowUp=!1;F.isShortsStyle=!1;return F};
_.k(Xr,_.n);Xr.prototype.onTap=function(F){F.preventDefault();this.data&&_.hF(this.hostElement,"ytd-rating-survey-option-changed",this.data)};
_.Sn.Object.defineProperties(Xr.prototype,{isAnimatedIcon:{configurable:!0,enumerable:!0,get:function(){return!this.disableAnimation&&(this.isSlimlineSurveyFollowUp||this.isShortsStyle)}},
iconSize:{configurable:!0,enumerable:!0,get:function(){return this.isSlimlineSurvey||this.isSlimlineSurveyFollowUp||this.isShortsStyle?36:24}},
isDarkTheme:{configurable:!0,enumerable:!0,get:function(){return this.isShortsStyle||document.documentElement.hasAttribute("dark")}},
icon:{configurable:!0,enumerable:!0,get:function(){var F,W,E,h,d;return((F=this.data)==null?0:F.checked)?(W=this.data)==null?void 0:(E=W.onStateIcon)==null?void 0:E.iconType:(h=this.data)==null?void 0:(d=h.defaultStateIcon)==null?void 0:d.iconType}}});
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Xr.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],Xr.prototype,"ytComponentBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],Xr.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Object)],Xr.prototype,"disableAnimation",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],Xr.prototype,"isSlimlineSurvey",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],Xr.prototype,"isSlimlineSurveyFollowUp",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],Xr.prototype,"isShortsStyle",void 0);_.T([_.a("disableAnimation","isSlimlineSurveyFollowUp","isShortsStyle"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Xr.prototype,"isAnimatedIcon",null);
_.T([_.a("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],Xr.prototype,"iconSize",null);_.T([_.a("isShortsStyle"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Xr.prototype,"isDarkTheme",null);_.T([_.a("data.checked"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Xr.prototype,"icon",null);Xr=_.T([_.y({is:"ytd-rating-survey-option-renderer",disableElementRegistration:!0})],Xr);
_.r(Xr,"ytd-rating-survey-option-renderer",function(){if(PNH!==void 0)return PNH;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rating-survey-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon-button id="rating-survey-button" label="[[getSimpleString(data.responseText)]]" pressed="[[data.checked]]" toggleable="" on-tap="onTap" class="style-scope ytd-rating-survey-option-renderer">\n    <yt-icon icon="[[icon]]" is-animated-icon="[[isAnimatedIcon]]" is-dark-theme="[[isDarkTheme]]" size="[[iconSize]]" class="style-scope ytd-rating-survey-option-renderer"></yt-icon>\n</yt-icon-button>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return PNH=F},{mode:2});var J9z;var Hu=function(){var F=_.n.apply(this,arguments)||this;F.firstResponseText=null;F.lastResponseText=null;F.selectedNonStarOption=null;F.hideOptions=!1;F.hideUndoButton=!0;F.disableAnimation=!1;F.showResponseRangeText=!1;F.selectedRatingIndex=-1;F.isSlimlineSurvey=!1;F.isSlimlineSurveyFollowUp=!1;F.isShortsStyle=!1;F.slimlineSurveyRatingSelectedIndex=-1;return F};
_.k(Hu,_.n);_.N=Hu.prototype;_.N.configureRendererStamper=function(){return{"data.ratings":{id:"ratings",mapping:{ratingSurveyOptionRenderer:{component:"ytd-rating-survey-option-renderer",properties:{disableAnimation:"[[disableAnimation]]",isSlimlineSurvey:"[[isSlimlineSurvey]]",isSlimlineSurveyFollowUp:"[[isSlimlineSurveyFollowUp]]",isShortsStyle:"[[isShortsStyle]]"}}}}}};
_.N.dataChanged=function(){this.resetComponent();this.isSlimlineSurveyFollowUp&&this.slimlineSurveyRatingSelectedIndex>-1&&this.showSelectedOption()};
_.N.onOptionChange=function(F,W){var E=this;F=W.onStateIcon&&W.defaultStateIcon&&W.onStateIcon.iconType===W.defaultStateIcon.iconType;this.hideUndoButton=this.isSlimlineSurvey;if(this.isSingleSelect)this.getOptionRenderers().forEach(function(R,M){R.responseText===W.responseText?E.isSlimlineSurvey?(E.selectedRatingIndex=M,E.ytdReduxBehavior.dispatch(PZp(M))):(E.setSurveyOptionValue(M,!0,"checked"),E.setSurveyOptionValue(M,!0,"selected")):(E.setSurveyOptionValue(M,!1,"checked"),E.setSurveyOptionValue(M,
!1,"selected"))});
else if(F)this.selectedNonStarOption=W,this.hideOptions=!0;else{var h=this.ytRendererBehavior.getSimpleString(W.responseText),d=!0;this.getOptionRenderers().forEach(function(R,M){E.setSurveyOptionValue(M,d,"checked");E.setSurveyOptionValue(M,!1,"selected");E.ytRendererBehavior.getSimpleString(R.responseText)===h&&(d=!1,E.setSurveyOptionValue(M,!0,"selected"))})}F=W.responseEndpoint;
var V;W.followUpCommand&&(V=_.D(W.followUpCommand,k0M));this.isSlimlineSurvey?(this.resetComponent(),_.dW(this.hostElement,"ytd-slimline-survey-rating-select-action")):_.dW(this.hostElement,"ytd-inline-survey-rating-select-action",[F,V])};
_.N.showSelectedOption=function(){var F=this;_.P0.addJob(function(){var W=F.getOptionRenderers()[F.slimlineSurveyRatingSelectedIndex];F.onOptionChange(new CustomEvent("ytd-rating-survey-option-changed"),W)},8,100)};
_.N.getOptionRenderers=function(){return this.data&&this.data.ratings?this.data.ratings.map(function(F){var W;return(W=_.D(F,sda))!=null?W:{}}):[]};
_.N.onUndoClick=function(){this.resetComponent();_.dW(this.hostElement,"ytd-inline-survey-rating-select-action",[null,null])};
_.N.setSurveyOptionValue=function(F,W,E){this.notifyPath("data.ratings."+F+".ratingSurveyOptionRenderer."+E);this.set("data.ratings."+F+".ratingSurveyOptionRenderer."+E,W)};
_.N.resetComponent=function(){var F=this;this.selectedNonStarOption=null;this.hideOptions=!1;this.hideUndoButton=!0;var W=this.getOptionRenderers(),E,h;this.firstResponseText=(h=(E=W[0])==null?void 0:E.responseText)!=null?h:null;var d,V;this.lastResponseText=(V=(d=W[W.length-1])==null?void 0:d.responseText)!=null?V:null;W.forEach(function(R,M){F.setSurveyOptionValue(M,!1,"checked");F.setSurveyOptionValue(M,!1,"selected")})};
_.Sn.Object.defineProperties(Hu.prototype,{isSingleSelect:{configurable:!0,enumerable:!0,get:function(){return this.isSlimlineSurvey||this.isSlimlineSurveyFollowUp||this.isShortsStyle}}});
Hu.prototype.onOptionChange=Hu.prototype.onOptionChange;Hu.prototype.dataChanged=Hu.prototype.dataChanged;_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],Hu.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Hu.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.am),_.Y("design:type",Object)],Hu.prototype,"ytdReduxBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],Hu.prototype,"data",void 0);
_.T([_.O(),_.Y("design:type",Object)],Hu.prototype,"firstResponseText",void 0);_.T([_.O(),_.Y("design:type",Object)],Hu.prototype,"lastResponseText",void 0);_.T([_.O(),_.Y("design:type",Object)],Hu.prototype,"selectedNonStarOption",void 0);_.T([_.O(),_.Y("design:type",Object)],Hu.prototype,"hideOptions",void 0);_.T([_.O(),_.Y("design:type",Object)],Hu.prototype,"hideUndoButton",void 0);_.T([_.O(),_.Y("design:type",Object)],Hu.prototype,"disableAnimation",void 0);
_.T([_.O(),_.Y("design:type",Object)],Hu.prototype,"showResponseRangeText",void 0);_.T([_.O(),_.Y("design:type",Object)],Hu.prototype,"selectedRatingIndex",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],Hu.prototype,"isSlimlineSurvey",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],Hu.prototype,"isSlimlineSurveyFollowUp",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],Hu.prototype,"isShortsStyle",void 0);_.T([_.O({selector:function(F){return F.ui.slimlineSurveyRatingSelectedIndex}}),
_.Y("design:type",Object)],Hu.prototype,"slimlineSurveyRatingSelectedIndex",void 0);_.T([_.a("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Hu.prototype,"isSingleSelect",null);_.T([_.Cz("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Hu.prototype,"dataChanged",null);
_.T([_.R4("ytd-rating-survey-option-changed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],Hu.prototype,"onOptionChange",null);Hu=_.T([_.y({is:"ytd-rating-survey-renderer",disableElementRegistration:!0})],Hu);
_.r(Hu,"ytd-rating-survey-renderer",function(){if(J9z!==void 0)return J9z;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rating-survey-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="selection-panel" class="style-scope ytd-rating-survey-renderer">\n  <div id="options" class="style-scope ytd-rating-survey-renderer">\n    <div id="ratings" hidden="[[hideOptions]]" class="style-scope ytd-rating-survey-renderer"></div>\n  </div>\n  <div id="selected-response-icon" hidden="[[!selectedNonStarOption]]" class="style-scope ytd-rating-survey-renderer">\n    <yt-icon icon="[[selectedNonStarOption.onStateIcon.iconType]]" class="style-scope ytd-rating-survey-renderer"></yt-icon>\n  </div>\n  <div id="bottom-text-container" hidden="[[!showResponseRangeText]]" class="style-scope ytd-rating-survey-renderer">\n    <div id="first-response-text" class="style-scope ytd-rating-survey-renderer">\n      <yt-formatted-string text="[[firstResponseText]]" class="style-scope ytd-rating-survey-renderer"></yt-formatted-string>\n    </div>\n    <div id="last-response-text" class="style-scope ytd-rating-survey-renderer">\n      <yt-formatted-string text="[[lastResponseText]]" class="style-scope ytd-rating-survey-renderer"></yt-formatted-string>\n    </div>\n  </div>\n</div>\n<ytd-button-renderer id="undo-button" data="[[data.undoButton.buttonRenderer]]" hidden="[[hideUndoButton]]" on-click="onUndoClick" class="style-scope ytd-rating-survey-renderer">\n</ytd-button-renderer>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return J9z=F},{mode:1});var atT;var ftO;var Olu;var gnG=(PH.FIRSTDAYOFWEEK+1)%7,blO=function(F,W,E,h){var d="";if(h.selection&&UAe(h.selection))Z6(F,h.selection)&&(d+=" selected");else if(h.selection&&Rbo(h.selection)){var V=h.selection.selectionState||"START_DATE";Z6(F,h.selection.start)&&(d+=" period-start ",V==="START_DATE"&&(d+="selected"));Z6(F,h.selection.end)&&(d+=" period-end ",V==="END_DATE"&&(d+="selected"));XY(F,h.selection.start)||XY(h.selection.end,F)||(d+=" highlighted")}if(XY(W,h.start)||XY(h.end,W))d+=" disabled";h.circleToday&&
Z6(W,E)&&(d+=" today");return d};var Pu=function(){return _.n.apply(this,arguments)||this};
_.k(Pu,_.n);_.N=Pu.prototype;_.N.attached=function(){var F=this;_.wT(this,function(){F.JSC$13728_calendarMain.scrollHeight>0&&(F.calendarConfig.selection?F.scrollToDate(ebI(F.calendarConfig.selection)):F.scrollToDate(F.calendarConfig.end))})};
_.N.updateSelection=function(F){F=QfS(Object.assign({},this.calendarConfig,{selection:F}),blO);this.splice.apply(this,["renderData.months",0,F.length].concat(_.x9(F)))};
_.N.scrollToDate=function(F){this.renderData&&(F=zbI(F,this.renderData),F!==void 0&&this.JSC$13728_calendarMain.scrollToIndex(F))};
_.N.scrollToNextMonth=function(){this.JSC$13728_calendarMain.scrollToIndex(this.JSC$13728_calendarMain.firstVisibleIndex+1)};
_.N.scrollToPrevMonth=function(){this.JSC$13728_calendarMain.firstVisibleIndex===0&&this.JSC$13728_calendarMain.scrollTo(0,0);this.JSC$13728_calendarMain.scrollToIndex(this.JSC$13728_calendarMain.firstVisibleIndex-1)};
_.N.handleDayClick=function(F){_.dW(this.hostElement,"ytd-calendar-date-clicked",[F.model.day.date])};
_.N.handleDayMouseDown=function(F){F.preventDefault();_.dW(this.hostElement,"ytd-calendar-date-mousedown",[F.model.day.date])};
_.N.handleDayMouseUp=function(F){_.dW(this.hostElement,"ytd-calendar-date-mouseup",[F.model.day.date])};
_.N.handleDayMouseEnter=function(F){F.preventDefault();_.dW(this.hostElement,"ytd-calendar-date-mouseenter",[F.model.day.date])};
_.N.handleDayMouseLeave=function(F){_.dW(this.hostElement,"ytd-calendar-date-mouseleave",[F.model.day.date])};
_.Sn.Object.defineProperties(Pu.prototype,{renderData:{configurable:!0,enumerable:!0,get:function(){var F=this.calendarConfig,W=blO;W=W===void 0?blO:W;for(var E=[],h=0;h<7;h++)E.push(PH.NARROWWEEKDAYS[(h+gnG)%7]);return{months:QfS(F,W),daysOfWeekLabel:E}}}});
_.T([_.O(),_.Y("design:type",Object)],Pu.prototype,"calendarConfig",void 0);_.T([_.gQ("#calendar-main"),_.Y("design:type",Object)],Pu.prototype,"JSC$13728_calendarMain",void 0);_.T([_.a("calendarConfig"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Pu.prototype,"renderData",null);Pu=_.T([_.y({disableElementRegistration:!0,is:"ytd-scrollable-calendar"})],Pu);
_.r(Pu,"ytd-scrollable-calendar",function(){if(Olu!==void 0)return Olu;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-scrollable-calendar--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="calendar-container style-scope ytd-scrollable-calendar">\n  <div class="calendar-header style-scope ytd-scrollable-calendar">\n    <template is="dom-repeat" items="[[renderData.daysOfWeekLabel]]" as="dayLabel" class="style-scope ytd-scrollable-calendar">\n      <span class="calendar-header-day style-scope ytd-scrollable-calendar">[[dayLabel]]</span>\n    </template>\n  </div>\n\n  <tp-yt-iron-list id="calendar-main" as="month" items="[[renderData.months]]" tabindex="-1" class="style-scope ytd-scrollable-calendar">\n    <template class="style-scope ytd-scrollable-calendar">\n      <div class="calendar-month style-scope ytd-scrollable-calendar">\n        <div class$="calendar-month-label [[month.monthLabelExtraCssClass]] style-scope ytd-scrollable-calendar">\n          [[month.monthLabel]]\n        </div>\n        <template is="dom-repeat" items="[[month.weeks]]" as="week" class="style-scope ytd-scrollable-calendar">\n          <div class="calendar-week style-scope ytd-scrollable-calendar">\n            <template is="dom-repeat" items="[[week]]" as="day" class="style-scope ytd-scrollable-calendar">\n              <span class$="calendar-day [[day.extraCssClass]] [[day.debugClass]] style-scope ytd-scrollable-calendar" on-tap="handleDayClick" on-mouseenter="handleDayMouseEnter" on-mouseleave="handleDayMouseLeave" on-mousedown="handleDayMouseDown" on-mouseup="handleDayMouseUp">\n                [[day.date.day]]\n              </span>\n            </template> \n          </div>\n        </template> \n      </div>\n    </template>\n  </tp-yt-iron-list> \n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return Olu=F},{mode:2});var ltz;var nGX;var Ji=function(){var F=_.n.apply(this,arguments)||this;F.hideCharCounter=!1;F.hideLabel=!1;F.noLabelFloat=!1;F.autoValidate=!0;F.invalid=!1;F.disabled=!1;F.actionMap={"yt-update-text-input-form-field-renderer-command":"handleUpdateTextInputFormFieldRendererCommand"};return F};
_.k(Ji,_.n);_.N=Ji.prototype;_.N.reset=function(F){this.value=F&&this.data?this.data.value=F:"";this.input.invalid=!1;this.input.autoValidate=!1};
_.N.save=function(){this.data&&this.data.onChange&&this.ytComponentBehavior.resolveCommand(this.data.onChange)};
_.N.focusTextInput=function(){this.input.focus()};
_.N.validate=function(){if(!this.autoValidate)return!this.invalid;if(!this.input)return!1;if(this.isMultiline&&this.data&&this.value!=null&&this.data.validValueRegexp&&!RegExp("^"+this.data.validValueRegexp+"$").test(this.input.value))return this.input.autoValidate=!1,this.invalid=!0,!1;this.input.autoValidate=!0;return this.input.validate()};
_.N.valueChanged=function(){var F,W;if(((F=this.data)==null?0:F.value)||((W=this.data)==null?void 0:W.value)==="")this.value=this.data.value;else{var E;((E=this.data)==null?void 0:E.value)!==void 0||this.value||(this.value="")}};
_.N.computeLabel=function(F,W){return W?"":_.Yr(F)};
_.N.computeAriaLabel=function(F,W){return W?_.Yr(F):""};
_.N.computeErrorMessage=function(F,W,E,h){!F&&W?F=E||this.strings.REQUIRED_LABEL:(F=_.Yr(h),F=_.gI(F,"&")?"document"in _.EY?HbX(F):Pop(F):F);return F};
_.N.computeType=function(F){return F==="TEXT_INPUT_FORM_FIELD_TYPE_PASSWORD"?"password":null};
_.N.onTextValueChanged=function(F){this.value=F.detail.value;var W;(W=this.onValueChanged)==null||W.call(this);this.validate()&&this.data&&this.data.key&&this.data.onChange&&this.set(this.data.key,this.input.value,this.data.onChange)};
_.N.handleUpdateTextInputFormFieldRendererCommand=function(F){(F=_.D(F,Ta_))&&this.data&&this.data.id===F.id&&(F.invalid!==void 0&&(this.invalid=F.invalid),F.invalidValueErrorMessage!==void 0&&this.set("data.invalidValueErrorMessage",F.invalidValueErrorMessage))};
_.N.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.yR("value-changed",this.value))};
_.N.updateInvalidFromBinding=function(F){this.invalid=F.detail.value};
_.Sn.Object.defineProperties(Ji.prototype,{isMultiline:{configurable:!0,enumerable:!0,get:function(){if(this.isMultilineOverride!==void 0)return this.isMultilineOverride;var F;return!((F=this.data)==null||!F.isMultiline)}}});
Ji.prototype.valueChangedForBinding=Ji.prototype.valueChangedForBinding;Ji.prototype.valueChanged=Ji.prototype.valueChanged;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Ji.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],Ji.prototype,"ytComponentBehavior",void 0);_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],Ji.prototype,"ytActionHandlerBehavior",void 0);
_.T([_.O(),_.Y("design:type",Object)],Ji.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",String)],Ji.prototype,"value",void 0);_.T([_.O(),_.Y("design:type",String)],Ji.prototype,"pattern",void 0);_.T([_.O(),_.Y("design:type",String)],Ji.prototype,"errorMessage",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",String)],Ji.prototype,"componentStyle",void 0);_.T([_.O(),_.Y("design:type",Object)],Ji.prototype,"hideCharCounter",void 0);
_.T([_.O(),_.Y("design:type",Object)],Ji.prototype,"hideLabel",void 0);_.T([_.O(),_.Y("design:type",Object)],Ji.prototype,"noLabelFloat",void 0);_.T([_.O(),_.Y("design:type",Function)],Ji.prototype,"onValueChanged",void 0);_.T([_.O(),_.Y("design:type",Boolean)],Ji.prototype,"isMultilineOverride",void 0);_.T([_.O(),_.Y("design:type",Object)],Ji.prototype,"autoValidate",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],Ji.prototype,"invalid",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],Ji.prototype,"disabled",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Ji.prototype,"enableOverlayTheme",void 0);_.T([_.O({value:{REQUIRED_LABEL:_.CY("REQUIRED_LABEL",void 0,"Required")}}),_.Y("design:type",Object)],Ji.prototype,"strings",void 0);_.T([_.gQ("#input"),_.Y("design:type",Object)],Ji.prototype,"input",void 0);
_.T([_.a("data","isMultilineOverride"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Ji.prototype,"isMultiline",null);_.T([_.Cz("data.value"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Ji.prototype,"valueChanged",null);_.T([_.ea("value"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Ji.prototype,"valueChangedForBinding",null);Ji=_.T([_.$3({is:"yt-text-input-form-field-renderer",disableElementRegistration:!0})],Ji);
_.r(Ji,"yt-text-input-form-field-renderer",function(){if(nGX===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-text-input-form-field-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.playlist.yt_text_input_form_field_renderer.yt.text.input.form.field.renderer.css.js--\x3e<template is="dom-if" if="[[isMultiline]]" class="style-scope yt-text-input-form-field-renderer">\n  <tp-yt-paper-textarea id="input" always-float-label="" aria-label$="[[computeAriaLabel(data.label, hideLabel)]]" char-counter="" disabled="[[disabled]]" error-message="[[computeErrorMessage(value, data.required, requiredErrorMessage, data.invalidValueErrorMessage)]]" invalid="[[invalid]]" label="[[computeLabel(data.label, hideLabel)]]" max-rows="5" maxlength="[[data.maxCharacterLimit]]" no-label-float="[[noLabelFloat]]" pattern="[[data.validValueRegexp]]" placeholder="[[data.placeholderText]]" required="[[data.required]]" rows="[[data.rows]]" use-v2-underline="" value="[[value]]" on-invalid-changed="updateInvalidFromBinding" on-value-changed="onTextValueChanged" class="style-scope yt-text-input-form-field-renderer">\n  </tp-yt-paper-textarea>\n</template>\n<template is="dom-if" if="[[!isMultiline]]" class="style-scope yt-text-input-form-field-renderer">\n  <tp-yt-paper-input id="input" always-float-label="" aria-label$="[[computeAriaLabel(data.label, hideLabel)]]" char-counter="[[!data.hideCharCounter]]" disabled="[[disabled]]" error-message="[[computeErrorMessage(value, data.required, requiredErrorMessage, data.invalidValueErrorMessage)]]" invalid="[[invalid]]" label="[[computeLabel(data.label, hideLabel)]]" maxlength="[[data.maxCharacterLimit]]" no-label-float="[[noLabelFloat]]" pattern="[[data.validValueRegexp]]" placeholder="[[data.placeholderText]]" required="[[data.required]]" type="[[computeType(data.type)]]" use-v2-underline="" value="[[value]]" on-invalid-changed="updateInvalidFromBinding" on-value-changed="onTextValueChanged" class="style-scope yt-text-input-form-field-renderer">\n  </tp-yt-paper-input>\n</template>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);var W=F.content,E=W.insertBefore;ltz===void 0&&(ltz=document.createElement("template"));var h=ltz;E.call(W,h.content.cloneNode(!0),F.content.firstChild);nGX=F}F=nGX;return F},{mode:2});var aJ=function(){var F=_.n.apply(this,arguments)||this;F.data=void 0;F.selectionState="START_DATE";F.isStartDateInvalid=!1;F.isEndDateInvalid=!1;F.autoapply=!1;F.actionMap={"ytd-calendar-date-clicked":"handleCalendarDateClicked","ytd-calendar-date-mousedown":"handleCalendarDateMouseDown","ytd-calendar-date-mouseup":"handleCalendarDateMouseUp","ytd-calendar-date-mouseenter":"handleCalendarDateMouseEnter","ytd-calendar-date-mouseleave":"handleCalendarDateMouseLeave","yt-signal-action-submit-form":"handleCalendarSubmitDateRange"};
return F};
_.k(aJ,_.n);_.N=aJ.prototype;_.N.configureRendererStamper=function(){return{"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:{attributes:{"dialog-dismiss":!0},component:"ytd-button-renderer"}}},"data.applyButton":{id:"apply-button",mapping:{buttonRenderer:{attributes:{"dialog-dismiss":!0},component:"ytd-button-renderer"}}}}};
_.N.focus=function(){this.startDateInput.focus()};
_.N.dataChanged=function(){this.data&&this.data.selection&&(this.selection={start:HH(this.data.selection.start),end:HH(this.data.selection.end)})};
_.N.observeSelection=function(){this.selection&&this.updateCalendarSelection(this.selection);this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.N.resetTextboxes=function(){switch(this.selectionState){case "START_DATE":this.isStartDateInvalid=!1;break;case "END_DATE":this.isEndDateInvalid=!1;break;default:_.RO(this.selectionState)}};
_.N.onDateInputBlur=function(){this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.N.onStartDateTapOrFocus=function(){this.startDate&&this.calendar.scrollToDate(this.startDate);this.selectionState="START_DATE"};
_.N.onEndDateTapOrFocus=function(){this.endDate&&this.calendar.scrollToDate(this.endDate);this.selectionState="END_DATE"};
_.N.onStartDateTextChange=function(){if(this.calendar.calendarConfig){var F=this.calendar.calendarConfig,W=F.end;F=CXe({start:F.start,end:this.endDate||W},this.startDateInput.value||"");this.isStartDateInvalid=!F.isValid;F.isValid&&(F=F.value,this.selection=this.endDate?{start:F,end:this.endDate}:F,this.calendar.scrollToDate(F));this.updateInvalidState()}};
_.N.onEndDateTextChange=function(){if(this.calendar.calendarConfig){var F=this.calendar.calendarConfig,W=F.start;F=CXe({start:this.startDate||W,end:F.end},this.endDateInput.value||"");this.isEndDateInvalid=!F.isValid;F.isValid&&(F=F.value,this.selection={start:this.startDate,end:F},this.calendar.scrollToDate(F));this.updateInvalidState()}};
_.N.handleCalendarDateClicked=function(F){var W=this.selection&&ebI(this.selection),E=this.selection&&M0S(this.selection);W&&!XY(F,W)&&this.selectionState==="END_DATE"?(this.selection={start:W,end:F},this.selectionState="START_DATE"):(E&&!XY(E,F)?this.selection={start:F,end:E}:this.selection=F,this.selectionState="END_DATE")};
_.N.handleCalendarDateMouseDown=function(F){this.selection&&!UAe(this.selection)&&(this.dragPivot=Z6(F,this.selection.start)?this.selection.end:Z6(F,this.selection.end)?this.selection.start:F)};
_.N.handleCalendarDateMouseUp=function(){this.dragPivot=void 0};
_.N.handleCalendarDateMouseEnter=function(F){this.dragPivot&&(this.selection={start:function(W,E){return XY(W,E)?W:E}(this.dragPivot,F),
end:function(W,E){return XY(W,E)?E:W}(this.dragPivot,F)},this.dragPivot||(this.selectionState="START_DATE"))};
_.N.handleCalendarDateMouseLeave=function(){};
_.N.handleCalendarSubmitDateRange=function(){this.selection&&!UAe(this.selection)&&_.dW(this.hostElement,"ytd-date-period-picker-apply",[this.selection])};
_.N.updateInvalidState=function(){var F=function(W,E){E?W.setAttribute("invalid",""):W.removeAttribute("invalid")};
F(this.startDateInput,this.isStartDateInvalid);F(this.endDateInput,this.isEndDateInvalid)};
_.N.updateDateStrings=function(){this.selection&&(UAe(this.selection)?V0k(this.selection):(V0k(this.selection.start),V0k(this.selection.end)))};
_.N.updateCalendarSelection=function(F){this.calendar.updateSelection(Object.assign({},F,{selectionState:this.selectionState}))};
_.N.updateIsStartDateInvalidFromBinding=function(F){this.isStartDateInvalid=F.detail.value};
_.N.updateIsEndDateInvalidFromBinding=function(F){this.isEndDateInvalid=F.detail.value};
_.N.updateStartDateStringFromBinding=function(){};
_.N.updateEndDateStringFromBinding=function(){};
_.Sn.Object.defineProperties(aJ.prototype,{calendarConfig:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.selection?{start:HH(this.data.dateRangeStart),end:HH(this.data.dateRangeEnd),selection:{start:HH(this.data.selection.start),end:HH(this.data.selection.end)},circleToday:!0}:{}}},
errorMessage:{configurable:!0,enumerable:!0,get:function(){var F;return(F=this.data)==null?void 0:F.errorMessage}},
startDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&ebI(this.selection)}},
endDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&M0S(this.selection)}}});
aJ.prototype.resetTextboxes=aJ.prototype.resetTextboxes;aJ.prototype.observeSelection=aJ.prototype.observeSelection;aJ.prototype.dataChanged=aJ.prototype.dataChanged;_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],aJ.prototype,"ytActionHandlerBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],aJ.prototype,"ytRendererstamperBehavior",void 0);_.T([_.gQ("#calendar"),_.Y("design:type",Object)],aJ.prototype,"calendar",void 0);
_.T([_.gQ("#start-date"),_.Y("design:type",Object)],aJ.prototype,"startDateInput",void 0);_.T([_.gQ("#end-date"),_.Y("design:type",Object)],aJ.prototype,"endDateInput",void 0);_.T([_.O(),_.Y("design:type",Object)],aJ.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Object)],aJ.prototype,"selection",void 0);_.T([_.O(),_.Y("design:type",String)],aJ.prototype,"selectionState",void 0);_.T([_.a("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],aJ.prototype,"calendarConfig",null);
_.T([_.a("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],aJ.prototype,"errorMessage",null);_.T([_.a("selection"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],aJ.prototype,"startDate",null);_.T([_.a("selection"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],aJ.prototype,"endDate",null);_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],aJ.prototype,"dataChanged",null);
_.T([_.ea("selection","selectionState"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],aJ.prototype,"observeSelection",null);_.T([_.ea("selectionState"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],aJ.prototype,"resetTextboxes",null);aJ=_.T([_.y({disableElementRegistration:!0,is:"ytd-date-period-picker-renderer"})],aJ);
_.r(aJ,"ytd-date-period-picker-renderer",function(){if(ftO!==void 0)return ftO;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-date-period-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="control-area" class="style-scope ytd-date-period-picker-renderer">\n  <form id="form" class="style-scope ytd-date-period-picker-renderer">\n    <div class="input-and-error style-scope ytd-date-period-picker-renderer">\n      <yt-text-input-form-field-renderer id="start-date" auto-validate="[[autoValidate]]" component-style="BOLD_INPUT_TEXT" data="[[data.startDateField.textInputFormFieldRenderer]]" invalid="[[isStartDateInvalid]]" value="[[startDateString]]" on-blur="onDateInputBlur" on-focusin="onStartDateTapOrFocus" on-input="onStartDateTextChange" on-invalid-changed="updateIsStartDateInvalidFromBinding" on-tap="onStartDateTapOrFocus" on-value-changed="updateStartDateStringFromBinding" class="style-scope ytd-date-period-picker-renderer">\n      </yt-text-input-form-field-renderer>\n      <div class="error-message style-scope ytd-date-period-picker-renderer" role="alert">\n        <yt-formatted-string hidden="[[!isStartDateInvalid]]" text="[[data.errorMessage]]" class="style-scope ytd-date-period-picker-renderer">\n        </yt-formatted-string>\n      </div>\n    </div>\n    <div id="separator" class="style-scope ytd-date-period-picker-renderer">\u2013</div>\n    <div class="input-and-error style-scope ytd-date-period-picker-renderer">\n      <yt-text-input-form-field-renderer id="end-date" auto-validate="[[autoValidate]]" component-style="BOLD_INPUT_TEXT" data="[[data.endDateField.textInputFormFieldRenderer]]" invalid="[[isEndDateInvalid]]" value="[[endDateString]]" on-blur="onDateInputBlur" on-focusin="onEndDateTapOrFocus" on-input="onEndDateTextChange" on-invalid-changed="updateIsEndDateInvalidFromBinding" on-tap="onEndDateTapOrFocus" on-value-changed="updateEndDateStringFromBinding" class="style-scope ytd-date-period-picker-renderer">\n      </yt-text-input-form-field-renderer>\n      <div class="error-message style-scope ytd-date-period-picker-renderer" role="alert">\n        <yt-formatted-string hidden="[[!isEndDateInvalid]]" text="[[data.errorMessage]]" class="style-scope ytd-date-period-picker-renderer">\n        </yt-formatted-string>\n      </div>\n    </div>\n  </form>\n</div>\n\n<ytd-scrollable-calendar id="calendar" calendar-config="[[calendarConfig]]" class="style-scope ytd-date-period-picker-renderer">\n</ytd-scrollable-calendar>\n\n<div id="buttons" class="style-scope ytd-date-period-picker-renderer">\n  <div id="cancel-button" class="style-scope ytd-date-period-picker-renderer"></div>\n  <div id="apply-button" class="style-scope ytd-date-period-picker-renderer"></div>\n</div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return ftO=F},{mode:1});var f8=function(){var F=_.n.apply(this,arguments)||this;var W={};F.actionMap=(W["ytd-date-period-picker-apply"]="handleDateRangeUpdated",W);return F};
_.k(f8,_.n);f8.prototype.configureRendererStamper=function(){return{"data.timeRangeDropdown":{id:"time-range-dropdown",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
f8.prototype.handleDateRangeUpdated=function(){};
_.T([_.O(),_.Y("design:type",Object)],f8.prototype,"data",void 0);_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],f8.prototype,"actionHandlerBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],f8.prototype,"rendererstamperBehavior",void 0);f8=_.T([_.y({is:"ytd-report-history-section-header-renderer",disableElementRegistration:!0})],f8);
_.r(f8,"ytd-report-history-section-header-renderer",function(){if(atT!==void 0)return atT;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-history-section-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="header-content style-scope ytd-report-history-section-header-renderer">\n  <div id="time-range-dropdown" class="filter style-scope ytd-report-history-section-header-renderer"></div>\n</div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return atT=F},{mode:1});var y9T;var jpa;var ila;var Ob=function(){return _.n.apply(this,arguments)||this};
_.k(Ob,_.n);_.Sn.Object.defineProperties(Ob.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var F,W;return((F=this.data)==null?0:(W=F.icon)==null?0:W.iconType)?_.Vd(this.data.icon.iconType):""}}});
_.T([_.O(),_.Y("design:type",Object)],Ob.prototype,"data",void 0);_.T([_.a("data"),_.Y("design:type",String),_.Y("design:paramtypes",[])],Ob.prototype,"icon",null);Ob=_.T([_.y({is:"ytd-report-history-table-text-cell-renderer",disableElementRegistration:!0})],Ob);
_.r(Ob,"ytd-report-history-table-text-cell-renderer",function(){if(ila!==void 0)return ila;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-history-table-text-cell-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="icon-wrapper style-scope ytd-report-history-table-text-cell-renderer" hidden="[[!icon]]">\n  <yt-icon icon="[[icon]]" class="style-scope ytd-report-history-table-text-cell-renderer"></yt-icon>\n</div>\n<div class="text style-scope ytd-report-history-table-text-cell-renderer">\n  <yt-formatted-string class="main-text style-scope ytd-report-history-table-text-cell-renderer" split-lines="" text="[[data.text]]">\n  </yt-formatted-string>\n  <yt-formatted-string class="sub-text style-scope ytd-report-history-table-text-cell-renderer" split-lines="" text="[[data.shortByLineText]]">\n  </yt-formatted-string>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return ila=F},{mode:1});var bm=function(){return _.n.apply(this,arguments)||this};
_.k(bm,_.n);bm.prototype.configureRendererStamper=function(){return{"data.latestReason":{id:"latest-reason",mapping:{reportHistoryTableTextCellRenderer:"ytd-report-history-table-text-cell-renderer"}}}};
_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],bm.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],bm.prototype,"data",void 0);bm=_.T([_.y({is:"ytd-report-history-table-reason-cell-renderer",disableElementRegistration:!0})],bm);
_.r(bm,"ytd-report-history-table-reason-cell-renderer",function(){if(jpa!==void 0)return jpa;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-history-table-reason-cell-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="latest-reason" class="style-scope ytd-report-history-table-reason-cell-renderer"></div>\n<div id="show-all-reasons" hidden="[[!data.showAllReasons]]" class="style-scope ytd-report-history-table-reason-cell-renderer">\n  <yt-formatted-string text="[[data.showAllReasons]]" class="style-scope ytd-report-history-table-reason-cell-renderer"></yt-formatted-string>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return jpa=F},{mode:1});var lm=function(){return _.n.apply(this,arguments)||this};
_.k(lm,_.n);lm.prototype.configureRendererStamper=function(){return{"data.cell":{id:"cell-container",mapping:{reportHistoryTableTextCellRenderer:"ytd-report-history-table-text-cell-renderer",reportHistoryTableReasonCellRenderer:"ytd-report-history-table-reason-cell-renderer"}}}};
_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],lm.prototype,"rendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],lm.prototype,"data",void 0);lm=_.T([_.y({is:"ytd-report-history-table-cell-renderer",disableElementRegistration:!0})],lm);
_.r(lm,"ytd-report-history-table-cell-renderer",function(){if(y9T!==void 0)return y9T;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-history-table-cell-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="cell-container" class="style-scope ytd-report-history-table-cell-renderer"></div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);
return y9T=F},{mode:1});var r9X;var n8=function(){var F=_.n.apply(this,arguments)||this;F.columnType={type:"REPORT_HISTORY_COLUMN_TYPE",content:"REPORT_HISTORY_COLUMN_CONTENT",reason:"REPORT_HISTORY_COLUMN_REASON",status:"REPORT_HISTORY_COLUMN_STATUS",date:"REPORT_HISTORY_COLUMN_DATE"};return F};
_.k(n8,_.n);n8.prototype.onDataChanged=function(){var F;if((F=this.data)==null?0:F.style)this.componentStyle=this.getStyleName(this.data.style)};
n8.prototype.getCellForColumn=function(F){return this.cells.find(function(W){var E;return((E=_.D(W==null?void 0:W.cell,$oT)||_.D(W==null?void 0:W.cell,qsH))==null?void 0:E.columnId)===F.type})};
n8.prototype.getClassForColumn=function(F){switch(F){case "REPORT_HISTORY_COLUMN_DATE":return"date";default:return""}};
n8.prototype.getStyleName=function(F){switch(F){case "REPORT_HISTORY_ROW_STYLE_COMPACT":return"COMPACT_ROW";default:return""}};
_.Sn.Object.defineProperties(n8.prototype,{cells:{configurable:!0,enumerable:!0,get:function(){var F;return(((F=this.data)==null?void 0:F.cells)||[]).map(function(W){return _.D(W,LxU)})}}});
n8.prototype.onDataChanged=n8.prototype.onDataChanged;_.T([_.O(),_.Y("design:type",Object)],n8.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Array)],n8.prototype,"columnRenderData",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",String)],n8.prototype,"componentStyle",void 0);_.T([_.a("data"),_.Y("design:type",Array),_.Y("design:paramtypes",[])],n8.prototype,"cells",null);
_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],n8.prototype,"onDataChanged",null);n8=_.T([_.y({is:"ytd-report-history-table-row-renderer",disableElementRegistration:!0})],n8);
_.r(n8,"ytd-report-history-table-row-renderer",function(){if(r9X!==void 0)return r9X;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-history-table-row-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="row-container" class="style-scope ytd-report-history-table-row-renderer">\n  <template is="dom-repeat" items="[[columnRenderData]]" as="column" class="style-scope ytd-report-history-table-row-renderer">\n    <div class$="[[column.classes]] cell-body style-scope ytd-report-history-table-row-renderer" role="cell" style$="[[column.style]]">\n      <ytd-report-history-table-cell-renderer class$="[[getClassForColumn(column.type)]] style-scope ytd-report-history-table-row-renderer" data="[[getCellForColumn(column)]]"></ytd-report-history-table-cell-renderer>\n    </div>\n  </template>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return r9X=F},{mode:1});var TB_;var oGe;var BiI={padding:12,paddingLeftFirstColumn:0,paddingRightLastColumn:0,minWidth:50,maxWidth:Infinity,flexGrow:1},vnr={padding:12,paddingLeftFirstColumn:24,paddingRightLastColumn:24,minWidth:50,maxWidth:Infinity,flexGrow:0};var yN=function(){return _.n.apply(this,arguments)||this};
_.k(yN,_.n);yN.prototype.configureRendererStamper=function(){return{"data.rows":{id:"table-body",mapping:{reportHistoryTableRowRenderer:{component:"ytd-report-history-table-row-renderer",properties:{columnRenderData:"[[columnRenderData]]"},attributes:{role:"row"}},continuationItemRenderer:{component:"ytd-continuation-item-renderer",attributes:{role:"row"}}}}}};
yN.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"rows","yt-reload-continuation-items-command-body":"rows"}};
_.Sn.Object.defineProperties(yN.prototype,{tableSpec:{configurable:!0,enumerable:!0,get:function(){var F;return((F=this.data)==null?0:F.columns)?kmo(this.data.columns):{columns:{},columnsToShow:[]}}},
columnRenderData:{configurable:!0,enumerable:!0,get:function(){return DAS(this.tableSpec)}},
totalMinWidth:{configurable:!0,enumerable:!0,get:function(){var F=this.tableSpec,W=BiI;W=W===void 0?vnr:W;W=xAr(F.columnDimensions,F.columnsToShow||[],W);F=0;W=_.U(W);for(var E=W.next();!E.done;E=W.next())E=E.value,F+=E.minWidth+E.paddingLeft+E.paddingRight;return F}},
tableWidthStyle:{configurable:!0,enumerable:!0,get:function(){return"min-width:"+this.totalMinWidth+"px;"}}});
_.T([_.J(_.br),_.Y("design:type",Object)],yN.prototype,"ytContinuationHandlerBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],yN.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],yN.prototype,"data",void 0);_.T([_.a("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],yN.prototype,"tableSpec",null);_.T([_.a("tableSpec"),_.Y("design:type",Array),_.Y("design:paramtypes",[])],yN.prototype,"columnRenderData",null);
_.T([_.a("tableSpec"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],yN.prototype,"totalMinWidth",null);_.T([_.a("totalMinWidth"),_.Y("design:type",String),_.Y("design:paramtypes",[])],yN.prototype,"tableWidthStyle",null);yN=_.T([_.y({is:"ytd-table-renderer",disableElementRegistration:!0})],yN);
_.r(yN,"ytd-table-renderer",function(){if(oGe!==void 0)return oGe;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-table-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="table-content" role="table" style$="[[tableWidthStyle]]" class="style-scope ytd-table-renderer">\n  <div id="table-header" role="row" class="style-scope ytd-table-renderer">\n    <template is="dom-repeat" items="[[columnRenderData]]" as="column" class="style-scope ytd-table-renderer">\n      <div class$="[[column.classes]] cell-header style-scope ytd-table-renderer" style$="[[column.style]]" role="columnheader">\n        <h4 id="[[column.type]]-header-name" class="header-name style-scope ytd-table-renderer">\n          <span class="style-scope ytd-table-renderer">[[column.headerName]]</span>\n        </h4>\n        <div class="cell-header-icon style-scope ytd-table-renderer" hidden="[[!column.headerIcon]]">\n          <yt-icon icon="[[column.headerIcon]]" class="style-scope ytd-table-renderer"></yt-icon>\n        </div>\n      </div>\n    </template> \n  </div>\n  <div id="table-body" class="style-scope ytd-table-renderer">\n  </div>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return oGe=F},{mode:1});var j_=function(){return _.n.apply(this,arguments)||this};
_.k(j_,_.n);j_.prototype.configureRendererStamper=function(){return{"data.reportedContent":{id:"content-info",mapping:{reportHistoryTableTextCellRenderer:"ytd-report-history-table-text-cell-renderer"}},"data.reasonsTable":{id:"reasons-table",mapping:{tableRenderer:"ytd-table-renderer"}},"data.doneButton":{id:"done-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],j_.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],j_.prototype,"data",void 0);j_=_.T([_.y({is:"ytd-report-reason-history-modal-renderer",disableElementRegistration:!0})],j_);
_.r(j_,"ytd-report-reason-history-modal-renderer",function(){if(TB_!==void 0)return TB_;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-reason-history-modal-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="report-history-modal-body" class="style-scope ytd-report-reason-history-modal-renderer">\n  <h4 class="title style-scope ytd-report-reason-history-modal-renderer">\n    <yt-formatted-string text="[[data.title]]" class="style-scope ytd-report-reason-history-modal-renderer"></yt-formatted-string>\n  </h4>\n  <div id="content-info" class="style-scope ytd-report-reason-history-modal-renderer"></div>\n  <tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-report-reason-history-modal-renderer">\n    <div id="reasons-table" class="style-scope ytd-report-reason-history-modal-renderer"></div>\n  </tp-yt-paper-dialog-scrollable>\n</div>\n<div id="report-history-modal-footer" class="style-scope ytd-report-reason-history-modal-renderer">\n  <div id="done-button" class="style-scope ytd-report-reason-history-modal-renderer"></div>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return TB_=F},{mode:1});var GVU;var Yle;var wlu;var im=function(){return _.n.apply(this,arguments)||this};
_.k(im,_.n);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],im.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],im.prototype,"data",void 0);im=_.T([_.y({is:"ytd-profile-column-stats-entry-renderer",disableElementRegistration:!0})],im);
_.r(im,"ytd-profile-column-stats-entry-renderer",function(){if(wlu!==void 0)return wlu;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-profile-column-stats-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="label" class="style-scope ytd-profile-column-stats-entry-renderer">[[getSimpleString(data.label)]]</div>\n<div id="value" class="style-scope ytd-profile-column-stats-entry-renderer">[[getSimpleString(data.value)]]</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return wlu=F},{mode:1});var uNz;var r4=function(){return _.n.apply(this,arguments)||this};
_.k(r4,_.n);r4.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{profileColumnStatsEntryRenderer:{component:"ytd-profile-column-stats-entry-renderer",noInjection:!0}}}}};
_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],r4.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],r4.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],r4.prototype,"data",void 0);r4=_.T([_.y({is:"ytd-profile-column-stats-renderer",disableElementRegistration:!0})],r4);
_.r(r4,"ytd-profile-column-stats-renderer",function(){if(uNz!==void 0)return uNz;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-profile-column-stats-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="items" class="style-scope ytd-profile-column-stats-renderer"></div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return uNz=F},{mode:1});var Slu;var TW=function(){return _.n.apply(this,arguments)||this};
_.k(TW,_.n);_.Sn.Object.defineProperties(TW.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){var F;if((F=this.data)==null||!F.useThumbnailSize)return 80;var W,E;F=(W=this.data)==null?void 0:(E=W.thumbnail)==null?void 0:E.thumbnails;var h;return F&&((h=F[0])==null?void 0:h.width)||80}},
thumbnailHeight:{configurable:!0,enumerable:!0,get:function(){var F;if((F=this.data)==null||!F.useThumbnailSize)return 80;var W,E;F=(W=this.data)==null?void 0:(E=W.thumbnail)==null?void 0:E.thumbnails;var h;return F&&((h=F[0])==null?void 0:h.height)||80}}});
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],TW.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],TW.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",String)],TW.prototype,"componentStyle",void 0);_.T([_.a("data.useThumbnailSize"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],TW.prototype,"thumbnailWidth",null);
_.T([_.a("data.useThumbnailSize"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],TW.prototype,"thumbnailHeight",null);TW=_.T([_.y({is:"ytd-profile-column-user-info-renderer",disableElementRegistration:!0})],TW);
_.r(TW,"ytd-profile-column-user-info-renderer",function(){if(Slu!==void 0)return Slu;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-profile-column-user-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow id="thumbnail" height="[[thumbnailHeight]]" thumbnail="[[data.thumbnail]]" width="[[thumbnailWidth]]" class="style-scope ytd-profile-column-user-info-renderer">\n</yt-img-shadow>\n<div id="title" class="style-scope ytd-profile-column-user-info-renderer">[[getSimpleString(data.title)]]</div>\n<div id="subtitle" class="style-scope ytd-profile-column-user-info-renderer">[[getSimpleString(data.subtitle)]]</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return Slu=F},{mode:1});var oJ=function(){return _.n.apply(this,arguments)||this};
_.k(oJ,_.n);oJ.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{profileColumnStatsRenderer:{component:"ytd-profile-column-stats-renderer",noInjection:!0},profileColumnUserInfoRenderer:{component:"ytd-profile-column-user-info-renderer",noInjection:!0,properties:{componentStyle:"[[componentStyle]]"}}}}}};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],oJ.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],oJ.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],oJ.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",String)],oJ.prototype,"componentStyle",void 0);oJ=_.T([_.y({is:"ytd-profile-column-renderer",disableElementRegistration:!0})],oJ);
_.r(oJ,"ytd-profile-column-renderer",function(){if(Yle!==void 0)return Yle;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-profile-column-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="items" class="style-scope ytd-profile-column-renderer"></div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return Yle=F},{mode:1});var GW=function(){var F=_.n.apply(this,arguments)||this;F.componentStyle="NON_CENTERED_PROFILE";return F};
_.k(GW,_.n);GW.prototype.configureRendererStamper=function(){return{"data.reportStats":{id:"report-stats",mapping:{profileColumnRenderer:{component:"ytd-profile-column-renderer",properties:{componentStyle:"[[componentStyle]]"}}}}}};
GW.prototype.getIcon=function(F){return F?"settings:"+F.toLowerCase():null};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],GW.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],GW.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],GW.prototype,"data",void 0);GW=_.T([_.y({is:"ytd-page-introduction-renderer",disableElementRegistration:!0})],GW);
_.r(GW,"ytd-page-introduction-renderer",function(){if(GVU!==void 0)return GVU;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-page-introduction-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="primary-content" class="style-scope ytd-page-introduction-renderer">\n  <div id="introduction-text" class="style-scope ytd-page-introduction-renderer">\n    <div id="name" class="style-scope ytd-page-introduction-renderer">[[getSimpleString(data.pageTitle)]]</div>\n    <div id="title" class="style-scope ytd-page-introduction-renderer">[[getSimpleString(data.headerText)]]</div>\n    <yt-formatted-string id="text" split-lines="" text="[[data.bodyText]]" class="style-scope ytd-page-introduction-renderer">\n    </yt-formatted-string>\n    <ul class="introduction-bullet-items style-scope ytd-page-introduction-renderer" hidden="[[!data.bulletMessages]]">\n      <template is="dom-repeat" items="[[data.bulletMessages]]" as="bullet" class="style-scope ytd-page-introduction-renderer">\n        <li class="style-scope ytd-page-introduction-renderer">\n          <yt-formatted-string id="text" text="[[bullet]]" class="style-scope ytd-page-introduction-renderer"></yt-formatted-string>\n        </li>\n      </template>\n    </ul>\n    <div class="introduction-additional-lines style-scope ytd-page-introduction-renderer" hidden="[[!data.additionalLines]]">\n      <template is="dom-repeat" items="[[data.additionalLines]]" as="line" class="style-scope ytd-page-introduction-renderer">\n        <p class="style-scope ytd-page-introduction-renderer"> <yt-formatted-string id="text" text="[[line]]" class="style-scope ytd-page-introduction-renderer"></yt-formatted-string> </p>\n      </template>\n    </div>\n    <yt-formatted-string id="text" force-default-style="" text="[[data.footerText]]" class="style-scope ytd-page-introduction-renderer">\n    </yt-formatted-string>\n  </div>\n  <yt-icon hidden="[[!data.headerIcon]]" icon="[[getIcon(data.headerIcon.iconType)]]" class="style-scope ytd-page-introduction-renderer"></yt-icon>\n  <yt-img-shadow height="160" hidden="[[!data.headerImage]]" thumbnail="[[data.headerImage]]" class="style-scope ytd-page-introduction-renderer">\n  </yt-img-shadow>\n</div>\n<div id="report-stats" hidden="[[!data.reportStats]]" class="style-scope ytd-page-introduction-renderer"></div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return GVU=F},{mode:1});var plU;var Y8=function(){return _.n.apply(this,arguments)||this};
_.k(Y8,_.n);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Y8.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],Y8.prototype,"data",void 0);Y8=_.T([_.y({is:"ytd-report-description-renderer",disableElementRegistration:!0})],Y8);
_.r(Y8,"ytd-report-description-renderer",function(){if(plU!==void 0)return plU;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-description-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="report-description-vertical-line style-scope ytd-report-description-renderer"></div>\n<div class="report-description style-scope ytd-report-description-renderer">\n  <div class="report-description-item style-scope ytd-report-description-renderer">\n    <div class="report-description-upper-bullet report-description-bullet style-scope ytd-report-description-renderer"></div>\n    <yt-formatted-string class="report-receipt style-scope ytd-report-description-renderer" text="[[data.receipt]]">\n    </yt-formatted-string>\n  </div>\n  <div class="report-description-item style-scope ytd-report-description-renderer">\n    <div class="report-description-lower-bullet report-description-bullet style-scope ytd-report-description-renderer"></div>\n    <yt-formatted-string class="report-state style-scope ytd-report-description-renderer" text="[[data.state]]">\n    </yt-formatted-string>\n  </div>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return plU=F},{mode:1});var mt_;var K5H;var w4=function(){return _.n.apply(this,arguments)||this};
_.k(w4,_.n);w4.prototype.configureRendererStamper=function(){return{"data.description":{id:"description",mapping:{reportDescriptionRenderer:"ytd-report-description-renderer"}}}};
_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],w4.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],w4.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],w4.prototype,"data",void 0);w4=_.T([_.y({is:"ytd-video-report-renderer",disableElementRegistration:!0})],w4);
_.r(w4,"ytd-video-report-renderer",function(){if(K5H!==void 0)return K5H;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-report-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="report-thumbnail style-scope ytd-video-report-renderer"></div>\n<div class="report-info style-scope ytd-video-report-renderer">\n  <yt-formatted-string class="report-title style-scope ytd-video-report-renderer" text="[[data.title]]">\n  </yt-formatted-string>\n  <yt-formatted-string class="report-subtitle style-scope ytd-video-report-renderer" text="[[data.shortBylineText]]">\n  </yt-formatted-string>\n</div>\n<div id="description" class="style-scope ytd-video-report-renderer"></div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return K5H=F},{mode:1});var Fuu;_.Hr("itemSectionRenderer","messageRenderer","ytd-message-renderer");_.Hr("multiPageMenuSectionItems","messageRenderer","ytd-message-renderer");var um=function(){return _.n.apply(this,arguments)||this};
_.k(um,_.n);um.prototype.configureRendererStamper=function(){return{"data.button":{id:"message-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverride]]"}}}},"data.icon":{id:"icon",mapping:{iconType:{component:"yt-icon",properties:{icon:"[[data.icon.iconType]]"}}}}}};
um.prototype.computeMessageStyle=function(F){return F};
um.prototype.computeButtonOverride=function(F){var W;if((F==null?0:(W=F.style)==null?0:W.value)&&F.style.value==="RENDER_STYLE_BANNER_PANEL")return{size:"S"}};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],um.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],um.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],um.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],um.prototype,"shelf",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],um.prototype,"panel",void 0);
_.T([_.O({reflectToAttribute:!0,computed:"computeMessageStyle(data.style.value)"}),_.Y("design:type",Boolean)],um.prototype,"componentStyle",void 0);_.T([_.O({computed:"computeButtonOverride(data)"}),_.Y("design:type",Object)],um.prototype,"buttonOverride",void 0);um=_.T([_.y({is:"ytd-message-renderer",disableElementRegistration:!0})],um);
_.r(um,"ytd-message-renderer",function(){if(Fuu!==void 0)return Fuu;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="icon" class="style-scope ytd-message-renderer"></div>\n<yt-formatted-string id="message" hidden$="[[!data.text]]" split-lines="" text="[[data.text]]" class="style-scope ytd-message-renderer"></yt-formatted-string>\n<yt-formatted-string id="submessage" hidden$="[[!data.subtext]]" split-lines="" text="[[data.subtext.messageSubtextRenderer.text]]" class="style-scope ytd-message-renderer"></yt-formatted-string>\n<div id="message-button" class="style-scope ytd-message-renderer"></div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return Fuu=F},{mode:1});var S_=function(){return _.n.apply(this,arguments)||this};
_.k(S_,_.n);S_.prototype.configureRendererStamper=function(){return{"data.reportHistorySectionRenderers":{id:"items",mapping:{videoReportRenderer:"ytd-video-report-renderer"}},"data.header":{id:"header",mapping:{reportHistorySectionHeaderRenderer:"ytd-report-history-section-header-renderer"}},"data.table":{id:"history-table",mapping:{tableRenderer:"ytd-table-renderer",messageRenderer:"ytd-message-renderer"}}}};
S_.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"table"}};
S_.prototype.onRequestError=function(){this.ytContinuationHandlerBehavior.continuationIsReloading=!1};
_.Sn.Object.defineProperties(S_.prototype,{isUnifiedReportHistory:{configurable:!0,enumerable:!0,get:function(){var F,W;return!!(((F=this.data)==null?0:F.header)&&((W=this.data)==null?0:W.table))}}});
S_.prototype.onRequestError=S_.prototype.onRequestError;_.T([_.J(_.br),_.Y("design:type",Object)],S_.prototype,"ytContinuationHandlerBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],S_.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],S_.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],S_.prototype,"data",void 0);
_.T([_.a("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],S_.prototype,"isUnifiedReportHistory",null);_.T([_.R4("yt-service-request-error"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],S_.prototype,"onRequestError",null);S_=_.T([_.y({is:"ytd-report-history-section-renderer",disableElementRegistration:!0})],S_);
_.r(S_,"ytd-report-history-section-renderer",function(){if(mt_!==void 0)return mt_;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-history-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="items" hidden="[[isUnifiedReportHistory]]" class="style-scope ytd-report-history-section-renderer"></div>\n\n\n<div id="unified-report-history" hidden="[[!isUnifiedReportHistory]]" class="style-scope ytd-report-history-section-renderer">\n  <div id="header" class="style-scope ytd-report-history-section-renderer"></div>\n  <div class="table-container style-scope ytd-report-history-section-renderer">\n    <div id="history-table" class="style-scope ytd-report-history-section-renderer"></div>\n    <div class="spinner-container style-scope ytd-report-history-section-renderer" hidden="[[!continuationIsReloading]]">\n      <tp-yt-paper-spinner active="" class="style-scope ytd-report-history-section-renderer"></tp-yt-paper-spinner>\n    </div>\n  </div>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return mt_=F},{mode:1});var WuO;var p8=function(){var F=_.n.apply(this,arguments)||this;F.answerExpanded=!1;return F};
_.k(p8,_.n);p8.prototype.toggleAnswer=function(){this.answerExpanded=!this.answerExpanded};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],p8.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],p8.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],p8.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],p8.prototype,"answerExpanded",void 0);p8=_.T([_.y({is:"ytd-handles-claiming-faq-renderer",disableElementRegistration:!0})],p8);
_.r(p8,"ytd-handles-claiming-faq-renderer",function(){if(WuO!==void 0)return WuO;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-faq-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="head style-scope ytd-handles-claiming-faq-renderer" on-click="toggleAnswer">\n  <span class="question style-scope ytd-handles-claiming-faq-renderer">[[getSimpleString(data.question)]]</span>\n  <yt-icon id="expand-arrow" class="answer-arrow style-scope ytd-handles-claiming-faq-renderer" hidden="[[answerExpanded]]" icon="yt-icons:expand-more">\n  </yt-icon>\n  <yt-icon id="collapse-arrow" class="answer-arrow style-scope ytd-handles-claiming-faq-renderer" hidden="[[!answerExpanded]]" icon="yt-icons:expand-less">\n  </yt-icon>\n</div>\n<tp-yt-iron-collapse id="collapse" opened="[[answerExpanded]]" class="style-scope ytd-handles-claiming-faq-renderer">\n  <template is="dom-repeat" items="[[data.answers]]" class="style-scope ytd-handles-claiming-faq-renderer">\n    <yt-formatted-string class="answer style-scope ytd-handles-claiming-faq-renderer" split-lines="" text="[[item]]"></yt-formatted-string>\n  </template>\n</tp-yt-iron-collapse>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return WuO=F},{mode:1});var Eea;var ml=function(){return _.n.apply(this,arguments)||this};
_.k(ml,_.n);_.T([_.O(),_.Y("design:type",Object)],ml.prototype,"data",void 0);ml=_.T([_.y({is:"ytd-handles-claiming-faq-section-renderer",disableElementRegistration:!0})],ml);
_.r(ml,"ytd-handles-claiming-faq-section-renderer",function(){if(Eea!==void 0)return Eea;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-faq-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="wrapper" class="style-scope ytd-handles-claiming-faq-section-renderer">\n  <yt-formatted-string id="title" text="[[data.header]]" class="style-scope ytd-handles-claiming-faq-section-renderer"></yt-formatted-string>\n  <template is="dom-repeat" items="[[data.faqs]]" class="style-scope ytd-handles-claiming-faq-section-renderer">\n    <ytd-handles-claiming-faq-renderer data="[[item]]" class="style-scope ytd-handles-claiming-faq-section-renderer"></ytd-handles-claiming-faq-renderer>\n  </template>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return Eea=F},{mode:1});var hkB;var K8=function(){var F=_.n.apply(this,arguments)||this;F.rightSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_dark_v1.svg";F.rightSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_light_v1.svg";F.leftSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_dark_v1.svg";F.leftSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_light_v1.svg";F.leftSquiggly=F.leftSquigglyLight;F.rightSquiggly=F.rightSquigglyLight;
F.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};F.actionButtonOverride={style:"mono",type:"filled",size:"XL"};return F};
_.k(K8,_.n);_.N=K8.prototype;_.N.updateLeftSquigglyStyle=function(){_.V9(this.hostElement,{"--yt-left-squiggly-background":"url("+this.leftSquiggly+")"})};
_.N.updateRightSquigglyStyle=function(){_.V9(this.hostElement,{"--yt-right-squiggly-background":"url("+this.rightSquiggly+")"})};
_.N.ready=function(){var F=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(F)};
_.N.onDarkModeToggledAction=function(F){F!==this.isDarkTheme&&(this.set("isDarkTheme",F),F?(this.leftSquiggly=this.leftSquigglyDark,this.rightSquiggly=this.rightSquigglyDark):(this.leftSquiggly=this.leftSquigglyLight,this.rightSquiggly=this.rightSquigglyLight))};
_.N.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[actionButtonOverride]]"}}}}}};
K8.prototype.updateRightSquigglyStyle=K8.prototype.updateRightSquigglyStyle;K8.prototype.updateLeftSquigglyStyle=K8.prototype.updateLeftSquigglyStyle;_.T([_.O(),_.Y("design:type",Object)],K8.prototype,"data",void 0);_.T([_.O({value:!1}),_.Y("design:type",Boolean)],K8.prototype,"isDarkTheme",void 0);_.T([_.O(),_.Y("design:type",String)],K8.prototype,"leftSquiggly",void 0);_.T([_.O(),_.Y("design:type",String)],K8.prototype,"rightSquiggly",void 0);
_.T([_.ea("leftSquiggly"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],K8.prototype,"updateLeftSquigglyStyle",null);_.T([_.ea("rightSquiggly"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],K8.prototype,"updateRightSquigglyStyle",null);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],K8.prototype,"ytRendererBehavior",void 0);
_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],K8.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],K8.prototype,"ytActionHandlerBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],K8.prototype,"actionButtonOverride",void 0);K8=_.T([_.y({is:"ytd-handles-claiming-header-renderer",disableElementRegistration:!0})],K8);
_.r(K8,"ytd-handles-claiming-header-renderer",function(){if(hkB!==void 0)return hkB;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="left-container" class="style-scope ytd-handles-claiming-header-renderer">\n  <div id="left-image" class="style-scope ytd-handles-claiming-header-renderer"></div>\n</div>\n<div id="outer-container" class="style-scope ytd-handles-claiming-header-renderer">\n  <yt-img-shadow id="profile-picture" height="150" thumbnail="[[data.profilePicture]]" width="150" class="style-scope ytd-handles-claiming-header-renderer">\n  </yt-img-shadow>\n  <yt-formatted-string id="display-name" text="[[data.displayName]]" class="style-scope ytd-handles-claiming-header-renderer"></yt-formatted-string>\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-handles-claiming-header-renderer"></yt-formatted-string>\n  <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-handles-claiming-header-renderer"></yt-formatted-string>\n  <div id="action-button" class="style-scope ytd-handles-claiming-header-renderer">\n  </div>\n</div>\n<div id="right-container" class="style-scope ytd-handles-claiming-header-renderer">\n  <div id="right-image" class="style-scope ytd-handles-claiming-header-renderer"></div>\n</div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return hkB=F},{mode:1});var dsM;var FX=function(){var F=_.n.apply(this,arguments)||this;F.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};F.image0DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_dark.svg";F.image0LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_light.svg";F.image1DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_dark.svg";F.image1LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_light.svg";
F.image3DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_dark.svg";F.image3LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_light_v2.svg";F.image0SquigglyBackground=F.image0LightSquigglyBackground;F.image1SquigglyBackground=F.image1LightSquigglyBackground;F.image3SquigglyBackground=F.image3LightSquigglyBackground;return F};
_.k(FX,_.n);_.N=FX.prototype;_.N.ready=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.updateTitleAndImages()};
_.N.onDataChanged=function(){this.updateTitleAndImages()};
_.N.onThemeChanged=function(){this.updateTitleAndImages()};
_.N.onDarkModeToggledAction=function(F){F!==this.isDarkTheme&&(this.isDarkTheme=F)};
_.N.updateImage0SquigglyBackground=function(){_.V9(this.hostElement,{"--yt-image0-squiggly-background":"url("+this.image0SquigglyBackground+")"})};
_.N.updateImage1SquigglyBackground=function(){_.V9(this.hostElement,{"--yt-image1-squiggly-background":"url("+this.image1SquigglyBackground+")"})};
_.N.updateImage3SquigglyBackground=function(){_.V9(this.hostElement,{"--yt-image3-squiggly-background":"url("+this.image3SquigglyBackground+")"})};
_.N.updateTitleAndImages=function(){var F,W;((F=this.data)==null?void 0:(W=F.titleImages)==null?void 0:W.length)===5&&(this.title0=this.data.titleImages[0].title,this.title1=this.data.titleImages[1].title,this.title2=this.data.titleImages[2].title,this.title3=this.data.titleImages[3].title,this.title4=this.data.titleImages[4].title,this.isDarkTheme?(this.image0=this.data.titleImages[0].darkImage,this.image1=this.data.titleImages[1].darkImage,this.image2=this.data.titleImages[2].darkImage,this.image3=
this.data.titleImages[3].darkImage,this.image4=this.data.titleImages[4].darkImage,this.image0SquigglyBackground=this.image0DarkSquigglyBackground,this.image1SquigglyBackground=this.image1DarkSquigglyBackground,this.image3SquigglyBackground=this.image3DarkSquigglyBackground):(this.image0=this.data.titleImages[0].lightImage,this.image1=this.data.titleImages[1].lightImage,this.image2=this.data.titleImages[2].lightImage,this.image3=this.data.titleImages[3].lightImage,this.image4=this.data.titleImages[4].lightImage,
this.image0SquigglyBackground=this.image0LightSquigglyBackground,this.image1SquigglyBackground=this.image1LightSquigglyBackground,this.image3SquigglyBackground=this.image3LightSquigglyBackground))};
FX.prototype.updateImage3SquigglyBackground=FX.prototype.updateImage3SquigglyBackground;FX.prototype.updateImage1SquigglyBackground=FX.prototype.updateImage1SquigglyBackground;FX.prototype.updateImage0SquigglyBackground=FX.prototype.updateImage0SquigglyBackground;FX.prototype.onThemeChanged=FX.prototype.onThemeChanged;FX.prototype.onDataChanged=FX.prototype.onDataChanged;_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],FX.prototype,"ytActionHandlerBehavior",void 0);
_.T([_.O({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],FX.prototype,"isDarkTheme",void 0);_.T([_.O(),_.Y("design:type",Object)],FX.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Object)],FX.prototype,"title0",void 0);_.T([_.O(),_.Y("design:type",Object)],FX.prototype,"title1",void 0);_.T([_.O(),_.Y("design:type",Object)],FX.prototype,"title2",void 0);_.T([_.O(),_.Y("design:type",Object)],FX.prototype,"title3",void 0);
_.T([_.O(),_.Y("design:type",Object)],FX.prototype,"title4",void 0);_.T([_.O(),_.Y("design:type",Object)],FX.prototype,"image0",void 0);_.T([_.O(),_.Y("design:type",Object)],FX.prototype,"image1",void 0);_.T([_.O(),_.Y("design:type",Object)],FX.prototype,"image2",void 0);_.T([_.O(),_.Y("design:type",Object)],FX.prototype,"image3",void 0);_.T([_.O(),_.Y("design:type",Object)],FX.prototype,"image4",void 0);_.T([_.O(),_.Y("design:type",String)],FX.prototype,"image0SquigglyBackground",void 0);
_.T([_.O(),_.Y("design:type",String)],FX.prototype,"image1SquigglyBackground",void 0);_.T([_.O(),_.Y("design:type",String)],FX.prototype,"image3SquigglyBackground",void 0);_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],FX.prototype,"onDataChanged",null);_.T([_.ea("isDarkTheme"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],FX.prototype,"onThemeChanged",null);
_.T([_.ea("image0SquigglyBackground"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],FX.prototype,"updateImage0SquigglyBackground",null);_.T([_.ea("image1SquigglyBackground"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],FX.prototype,"updateImage1SquigglyBackground",null);
_.T([_.ea("image3SquigglyBackground"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],FX.prototype,"updateImage3SquigglyBackground",null);FX=_.T([_.y({is:"ytd-handles-claiming-title-images-section-renderer",disableElementRegistration:!0})],FX);
_.r(FX,"ytd-handles-claiming-title-images-section-renderer",function(){if(dsM!==void 0)return dsM;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-title-images-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-handles-claiming-title-images-section-renderer"></yt-formatted-string>\n<div id="image-container" class="style-scope ytd-handles-claiming-title-images-section-renderer">\n  <div id="left-container" class="style-scope ytd-handles-claiming-title-images-section-renderer">\n    <div id="background-image0" class="style-scope ytd-handles-claiming-title-images-section-renderer"></div>\n    <div id="background-image1" class="style-scope ytd-handles-claiming-title-images-section-renderer"></div>\n    <yt-formatted-string id="title0" class="image-title style-scope ytd-handles-claiming-title-images-section-renderer" text="[[title0]]"></yt-formatted-string>\n    <yt-img-shadow id="image0" height="802.21" thumbnail="[[image0]]" width="421.6" class="style-scope ytd-handles-claiming-title-images-section-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="title1" class="image-title style-scope ytd-handles-claiming-title-images-section-renderer" text="[[title1]]"></yt-formatted-string>\n    <yt-img-shadow id="image1" height="436.87" thumbnail="[[image1]]" width="421.6" class="style-scope ytd-handles-claiming-title-images-section-renderer">\n    </yt-img-shadow>\n  </div>\n  <div id="right-container" class="style-scope ytd-handles-claiming-title-images-section-renderer">\n    <div id="background-image3" class="style-scope ytd-handles-claiming-title-images-section-renderer"></div>\n    <yt-formatted-string id="title2" class="image-title style-scope ytd-handles-claiming-title-images-section-renderer" text="[[title2]]"></yt-formatted-string>\n    <yt-img-shadow id="image2" height="439.5" thumbnail="[[image2]]" width="421.6" class="style-scope ytd-handles-claiming-title-images-section-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="title3" class="image-title style-scope ytd-handles-claiming-title-images-section-renderer" text="[[title3]]"></yt-formatted-string>\n    <yt-img-shadow id="image3" height="334.9" thumbnail="[[image3]]" width="421.6" class="style-scope ytd-handles-claiming-title-images-section-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="title4" class="image-title style-scope ytd-handles-claiming-title-images-section-renderer" text="[[title4]]"></yt-formatted-string>\n    <yt-img-shadow id="image4" height="334.9" thumbnail="[[image4]]" width="421.6" class="style-scope ytd-handles-claiming-title-images-section-renderer">\n    </yt-img-shadow>\n  </div>\n</div>\n\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return dsM=F},{mode:1});var Ny_;var Wq=function(){var F=_.n.apply(this,arguments)||this;F.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return F};
_.k(Wq,_.n);Wq.prototype.ready=function(){var F=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(F)};
Wq.prototype.onDarkModeToggledAction=function(F){F!==this.isDarkTheme&&this.set("isDarkTheme",F)};
Wq.prototype.onCopyButtonClick=function(){var F=this,W,E,h;return _.e(function(d){return(W=F.data)!=null&&W.primaryChannelUrl?_.Q(d,navigator.clipboard.writeText(((E=F.data)==null?0:E.encodedChannelUrl)?F.data.encodedChannelUrl:"https://"+_.Yr((h=F.data)==null?void 0:h.primaryChannelUrl)),0):d.jumpTo(0)})};
_.T([_.O(),_.Y("design:type",Object)],Wq.prototype,"data",void 0);_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],Wq.prototype,"ytComponentBehavior",void 0);_.T([_.O({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],Wq.prototype,"isDarkTheme",void 0);_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],Wq.prototype,"ytActionHandlerBehavior",void 0);Wq=_.T([_.y({is:"ytd-handles-claiming-update-social-renderer",disableElementRegistration:!0})],Wq);
_.r(Wq,"ytd-handles-claiming-update-social-renderer",function(){if(Ny_!==void 0)return Ny_;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-update-social-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="wrapper" class="style-scope ytd-handles-claiming-update-social-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-handles-claiming-update-social-renderer"></yt-formatted-string>\n  <yt-formatted-string id="channel-info" text="[[data.primaryChannelInfoText]]" class="style-scope ytd-handles-claiming-update-social-renderer"></yt-formatted-string>\n  <div id="primary-url" class="style-scope ytd-handles-claiming-update-social-renderer">\n    <yt-formatted-string id="primary-channel-url" text="[[data.primaryChannelUrl]]" class="style-scope ytd-handles-claiming-update-social-renderer"></yt-formatted-string>\n    <yt-icon-button id="copy-icon-button" label="[[data.copyText]]" on-click="onCopyButtonClick" class="style-scope ytd-handles-claiming-update-social-renderer">\n      <yt-icon id="copy-icon" icon="yt-icons:copy" class="style-scope ytd-handles-claiming-update-social-renderer"></yt-icon>\n    </yt-icon-button>\n  </div>\n  <yt-formatted-string id="social-title" text="[[data.socialTitle]]" class="style-scope ytd-handles-claiming-update-social-renderer"></yt-formatted-string>\n  <div id="socials-container" class="style-scope ytd-handles-claiming-update-social-renderer">\n    <template is="dom-repeat" items="[[data.socialIcons]]" class="style-scope ytd-handles-claiming-update-social-renderer">\n      <a id="social-icon" class="yt-simple-endpoint style-scope ytd-handles-claiming-update-social-renderer" href$="[[computeHref_(item.onTap)]]" data="[[item.onTap]]" tabindex="-1">\n        <yt-img-shadow height="48" thumbnail="[[item.icon]]" width="48" class="style-scope ytd-handles-claiming-update-social-renderer">\n        </yt-img-shadow>\n      </a>\n    </template>\n  </div>\n</div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return Ny_=F},{mode:1});var Vsi;var Ev=function(){var F=_.n.apply(this,arguments)||this;F.JSC$13823_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_dark_v1.svg";F.JSC$13823_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_light_v1.svg";F.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};F.squigglyBackground=F.JSC$13823_squigglyBackgroundLight;return F};
_.k(Ev,_.n);Ev.prototype.updateSquigglyBackgroundStyle=function(){_.V9(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
Ev.prototype.ready=function(){var F=document.documentElement.hasAttribute("dark");this.set("isDarkTheme",F);this.squigglyBackground=F?this.JSC$13823_squigglyBackgroundDark:this.JSC$13823_squigglyBackgroundLight};
Ev.prototype.onDarkModeToggledAction=function(F){F!==this.isDarkTheme&&(this.set("isDarkTheme",F),this.squigglyBackground=F?this.JSC$13823_squigglyBackgroundDark:this.JSC$13823_squigglyBackgroundLight)};
Ev.prototype.updateSquigglyBackgroundStyle=Ev.prototype.updateSquigglyBackgroundStyle;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Ev.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],Ev.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],Ev.prototype,"ytActionHandlerBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],Ev.prototype,"data",void 0);
_.T([_.O({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],Ev.prototype,"isDarkTheme",void 0);_.T([_.O(),_.Y("design:type",String)],Ev.prototype,"squigglyBackground",void 0);_.T([_.ea("squigglyBackground"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Ev.prototype,"updateSquigglyBackgroundStyle",null);Ev=_.T([_.y({is:"ytd-handles-claiming-vanity-info-renderer",disableElementRegistration:!0})],Ev);
_.r(Ev,"ytd-handles-claiming-vanity-info-renderer",function(){if(Vsi!==void 0)return Vsi;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-vanity-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="wrapper" class="style-scope ytd-handles-claiming-vanity-info-renderer">\n  <div id="text-pic-container" class="style-scope ytd-handles-claiming-vanity-info-renderer">\n    <div id="pic-container" class="style-scope ytd-handles-claiming-vanity-info-renderer"></div>\n    <div id="text-container" class="style-scope ytd-handles-claiming-vanity-info-renderer">\n      <yt-formatted-string id="info-title" text="[[data.infoTitle]]" class="style-scope ytd-handles-claiming-vanity-info-renderer"></yt-formatted-string>\n      <yt-formatted-string id="info-text" split-lines="" text="[[data.infoText]]" class="style-scope ytd-handles-claiming-vanity-info-renderer"></yt-formatted-string>\n    </div>\n  </div>\n  <template is="dom-if" restamp="" if="[[data.vanities]]" class="style-scope ytd-handles-claiming-vanity-info-renderer">\n    <div id="vanity-container" class="style-scope ytd-handles-claiming-vanity-info-renderer">\n      <yt-formatted-string id="vanity-title" text="[[data.vanityTitle]]" class="style-scope ytd-handles-claiming-vanity-info-renderer"></yt-formatted-string>\n      <div id="vanities" class="style-scope ytd-handles-claiming-vanity-info-renderer">\n        <template is="dom-repeat" items="[[data.vanities]]" class="style-scope ytd-handles-claiming-vanity-info-renderer">\n          <yt-formatted-string class="vanity style-scope ytd-handles-claiming-vanity-info-renderer" force-default-style="" link-inherit-color="" split-lines="" text="[[item]]"></yt-formatted-string>\n        </template>\n      </div>\n    </div>\n  </template>\n</div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return Vsi=F},{mode:1});var UsX;var hI=function(){var F=_.n.apply(this,arguments)||this;F.JSC$13826_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_dark.svg";F.JSC$13826_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_light.svg";F.squigglyBackground=F.JSC$13826_squigglyBackgroundLight;F.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return F};
_.k(hI,_.n);_.N=hI.prototype;_.N.ready=function(){var F=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(F)};
_.N.onDarkModeToggledAction=function(F){F!==this.isDarkTheme&&(this.set("isDarkTheme",F),this.squigglyBackground=F?this.JSC$13826_squigglyBackgroundDark:this.JSC$13826_squigglyBackgroundLight)};
_.N.updateSquigglyBackgroundStyle=function(){_.V9(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
_.N.onDataChanged=function(){this.data&&this.setupVideoPlayer()};
_.N.detached=function(){this.stop()};
_.N.stop=function(){this.playerElement.stop()};
_.N.setupVideoPlayer=function(){var F=this,W,E;return _.e(function(h){W=F.data.videoId;E="http://i1.ytimg.com/vi/"+W+"/maxresdefault.jpg";F.playerElement.loadVideoWithPlayerVars({video_id:W,iurlhq:E});_.gG(h)})};
hI.prototype.onDataChanged=hI.prototype.onDataChanged;hI.prototype.updateSquigglyBackgroundStyle=hI.prototype.updateSquigglyBackgroundStyle;_.T([_.O({value:!1}),_.Y("design:type",Boolean)],hI.prototype,"isDarkTheme",void 0);_.T([_.O(),_.Y("design:type",String)],hI.prototype,"squigglyBackground",void 0);_.T([_.gQ("#player"),_.Y("design:type",Object)],hI.prototype,"playerElement",void 0);_.T([_.O(),_.Y("design:type",Object)],hI.prototype,"data",void 0);
_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],hI.prototype,"ytActionHandlerBehavior",void 0);_.T([_.ea("squigglyBackground"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],hI.prototype,"updateSquigglyBackgroundStyle",null);_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],hI.prototype,"onDataChanged",null);
hI=_.T([_.y({is:"ytd-handles-claiming-video-item-renderer",disableElementRegistration:!0})],hI);
_.r(hI,"ytd-handles-claiming-video-item-renderer",function(){if(UsX!==void 0)return UsX;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-video-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-handles-claiming-video-item-renderer">\n  <div id="player-container" class="style-scope ytd-handles-claiming-video-item-renderer">\n    <ytd-player id="player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_HANDLES_CLAIMING" player-id="handlesclaiming" class="style-scope ytd-handles-claiming-video-item-renderer">\n    </ytd-player>\n  </div>\n  <div id="text-pic-container" class="style-scope ytd-handles-claiming-video-item-renderer">\n    <div id="text-container" class="style-scope ytd-handles-claiming-video-item-renderer">\n        <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-handles-claiming-video-item-renderer"></yt-formatted-string>\n        <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-handles-claiming-video-item-renderer"></yt-formatted-string>\n    </div>\n    <div id="pic-container" class="style-scope ytd-handles-claiming-video-item-renderer"></div>\n  </div>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return UsX=F},{mode:1});var RkO;var Nx=function(){var F=_.zK.apply(this,arguments)||this;F.dragging=!1;F.dragMouseStart=0;F.dragOffsetStart=0;F.containerWidthDiff=0;F.boundPrevClick=function(){F.set("offset",dj(F,F.offset-(F.scrollDistance||320)))};
F.boundNextClick=function(){F.set("offset",dj(F,F.offset+(F.scrollDistance||320)))};
F.boundScrollContainerMouseDown=function(W){F.dragMouseStart=W.clientX;F.dragOffsetStart=F.offset;F.dragging=!0};
F.boundScrollContainerDrag=function(W){F.dragging&&F.set("offset",dj(F,F.dragOffsetStart-(W.clientX-F.dragMouseStart)))};
F.boundMouseUp=function(){F.onMouseUp()};
F.boundWheelScroll=function(W){var E=0;Math.abs(W.deltaX)>=Math.abs(W.deltaY)?E=W.deltaX:W.shiftKey&&(E=W.deltaY);E!==0&&(F.offset+=E,W.stopPropagation(),W.preventDefault())};
F.boundChipCloudChipScrollIntoView=function(W){(W=W.detail)&&F.scrollChipIntoView(W)};
return F};
_.k(Nx,_.zK);Nx.prototype.attached=function(){var F=_.Z(this.hostElement).querySelector("#scroll-container");F.addEventListener("wheel",this.boundWheelScroll);F.addEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);F.style.touchAction="pan-y";F.addEventListener("pointerdown",this.boundScrollContainerMouseDown);F.addEventListener("pointermove",this.boundScrollContainerDrag);window.addEventListener("pointerup",this.boundMouseUp)};
Nx.prototype.detached=function(){var F=_.Z(this.hostElement).querySelector("#scroll-container");F.removeEventListener("wheel",this.boundWheelScroll);F.removeEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);F.removeEventListener("pointerdown",this.boundScrollContainerMouseDown);F.removeEventListener("pointermove",this.boundScrollContainerDrag);window.removeEventListener("pointerup",this.boundMouseUp)};
Nx.prototype.reset=function(){this.set("offset",0);_.wT(this,this.setContainerWidthDiff);Vq(this)};
var dj=function(F,W){return Math.min(Math.max(W,0),F.containerWidthDiff)};
Nx.prototype.onMouseUp=function(){this.dragging=!1};
Nx.prototype.transformContainer=function(){this.offset=dj(this,this.offset);var F=_.b0("HTML_DIR")==="rtl"?"":"-";_.Z(this.hostElement).querySelector("#chips").style.transform="translateX("+F+this.offset+"px)";Vq(this)};
var Vq=function(F){_.wT(F,F.setButtonsState)};
Nx.prototype.setButtonsState=function(){(this.atEnd=this.offset>=this.containerWidthDiff)&&!this.atStart&&(this.offset=dj(this,this.offset));this.atStart=this.offset<=0};
Nx.prototype.setContainerWidthDiff=function(){var F=_.Z(this.hostElement).querySelector("#scroll-container"),W=_.Z(this.hostElement).querySelector("#chips");F&&W&&(this.containerWidthDiff=W.clientWidth-F.clientWidth)};
Nx.prototype.scrollChipIntoView=function(F){var W=_.Z(this.hostElement).querySelector("#scroll-container");if(W){var E=this.atStart?0:106,h=this.atEnd?0:106;F.offsetLeft<this.offset+E?this.offset=dj(this,F.offsetLeft-E):F.offsetLeft+F.clientWidth>this.offset+W.clientWidth-h&&(this.offset=dj(this,F.offsetLeft+F.clientWidth+h-W.clientWidth))}};
Nx.prototype.transformContainer=Nx.prototype.transformContainer;_.T([_.O({value:0}),_.Y("design:type",Number)],Nx.prototype,"offset",void 0);_.T([_.O({value:!0,reflectToAttribute:!0}),_.Y("design:type",Boolean)],Nx.prototype,"atStart",void 0);_.T([_.O({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],Nx.prototype,"atEnd",void 0);_.T([_.O(),_.Y("design:type",Number)],Nx.prototype,"scrollDistance",void 0);
_.T([_.ea("offset"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Nx.prototype,"transformContainer",null);Nx=_.T([_.tT()],Nx);var ekT;var Msi;var zkH=_.GK(function(F){var W=F.data;F=_.U(_.g$(!1,void 0,"icHmSe"));var E=F.next().value,h=F.next().value;F={};F=_.ec("ytChipShapeChip",function(){a:switch(W==null?void 0:W().state){case 0:var M="ytChipShapeActive";break a;case 1:M="ytChipShapeDisabled";break a;default:M="ytChipShapeInactive"}return M},function(){var M=W().type===1||W().type===2,g=W();
return M||g!=null&&g.startIcon?g==null||!g.startIcon||g!=null&&g.text?M?"ytChipShapeEndIconPadding":(g==null?0:g.startIcon)?"ytChipShapeStartIconPadding":"":"ytChipShapeOnlyIconPadding":"ytChipShapeOnlyTextPadding"},(F.ytChipShapeFocused=function(){var M;
return E()&&((M=W())==null?void 0:M.state)!==1},F));
var d=function(M){if((W==null?void 0:W().state)!==1){var g,t;(t=(g=W()).onTap)==null||t.call(g,M)}},V=_.tb(function(){var M=_.WZ().resolve(_.Fd(_.$V));
if(M){h(M.isKeyBoardInUse());var g,t;(t=(g=W()).onFocusIn)==null||t.call(g)}return!1}),R=_.tb(function(){h(!1);
return!1});
return _.z("chip-shape",{class:"ytChipShapeHost","on:focusin":V,"on:focusout":R},_.z(gep,{shouldWrapInButton:function(){return W().type!==2},
selected:function(){return W().state===0},
onClick:d,isDropdown:function(){return W().type===1},
accessibilityLabel:function(){return W().accessibilityLabel}},_.z("div",{class:F},_.z(_.v,{cond:function(){return W().startIcon},
then:function(){return _.z(_.I3,{icon:function(){var M;return(M=W())==null?void 0:M.startIcon},
className:function(){return W().text?"ytChipShapeIconStart":"ytChipShapeIconOnly"}})}}),function(){return W().text},_.z(QBc,{shape:W,
onClick:d}))))},"ub");
zkH.idomCompat=!0;var gep=_.GK(function(F){var W=_.tb(function(E){F.onClick(E);return!1});
return _.z(_.v,{cond:F.shouldWrapInButton,then:function(){return _.z("button",{class:"ytChipShapeButtonReset","on:click":W,role:function(){return F.isDropdown()?"combobox":"tab"},
"aria-label":F.accessibilityLabel,"aria-selected":F.selected},F.children)},
else:function(){return F.children}})},"vb"),QBc=_.GK(function(F){var W=F.shape;
var E=F.onClick;var h=_.tb(function(d){E(d);return!1});
return _.z(_.sG,null,_.z(_.kF,{when:function(){return W().type===1}},function(){return _.z(_.I3,{icon:"EXPAND",
className:"ytChipShapeIconEnd"})}),_.z(_.kF,{when:function(){return W().type===2}},function(){return _.z("button",{class:"ytChipShapeButtonReset",
"on:click":h},_.z(_.I3,{icon:"CLOSE",className:"ytChipShapeIconEnd"}))}),_.z(_.kF,{when:function(){return W().type===0}},function(){return _.z(_.EG,null)}))},"wb");_.pK(zkH,"chip-shape",{props:{data:_.TS}});var Uv=function(){var F=_.n.apply(this,arguments)||this;F.disableDeselectEvent=!1;F.modern=_.c("web_modern_typography");F.useChipShape=_.c("web_chip_shape_defrag");F.actionMap={"yt-select-chip-command":"onSelectChipCommand","yt-filter-chip-transform-command":"onFilterChipTransformCommand"};return F};
_.k(Uv,_.n);_.N=Uv.prototype;_.N.beforeRegister=function(){_.c("web_chip_shape_defrag")||(this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onTap","space:keydown":"onTap"})};
_.N.attached=function(){this.useChipShape||(this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","tab"),this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0"))};
_.N.onSelectChipCommand=function(F){if(!this.selected&&this.data&&(F=_.D(F,f9a),F.targetId&&F.targetId===this.data.targetId))this.onTap()};
_.N.onFilterChipTransformCommand=function(F){if(!this.selected&&this.data){var W;(F=(W=_.D(F,niT))==null?void 0:W.chipUniqueId)&&F===this.data.uniqueId&&(this.scrollChipIntoView(),this.onTap())}};
_.N.dataChanged=function(){var F=this;_.wT(this,function(){F.data&&F.data.isSelected&&!F.selected&&(F.scrollChipIntoView(),F.onTap())})};
_.N.selectionChanged=function(){this.useChipShape||this.hostElement.setAttribute("aria-selected",""+this.selected)};
_.N.computeChipStyle=function(F){return F!=null?F:"STYLE_DEFAULT"};
_.N.onTap=function(){!this.data||this.selected&&this.disableDeselectEvent||(this.ytRendererBehavior.logExplicitClick(this.data),this.selected||!this.data.navigationEndpoint&&!this.isGnomeChip?_.dW(this.hostElement,"yt-chip-cloud-chip-deselect-action"):(_.dW(this.hostElement,"yt-chip-cloud-chip-select-action",[this.hostElement,this.isGnomeChip]),this.data&&this.data.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)))};
_.N.onFocus=function(){var F=_.WZ().resolve(_.Fd(_.$V));F&&F.isKeyBoardInUse()&&this.scrollChipIntoView()};
_.N.scrollChipIntoView=function(){_.hF(this.hostElement,"yt-chip-cloud-chip-scroll-into-view",this.hostElement)};
_.Sn.Object.defineProperties(Uv.prototype,{hasIcon:{configurable:!0,enumerable:!0,get:function(){var F;return!((F=this.data)==null||!F.icon)}},
isGnomeChip:{configurable:!0,enumerable:!0,get:function(){var F;return((F=this.data)==null?void 0:F.uniqueId)==="gnome_chip"}},
chipShapeData:{configurable:!0,enumerable:!0,get:function(){return Z6o({data:this.data,onTap:this.onTap.bind(this),isSelected:this.selected,onFocusIn:this.onFocus.bind(this)})}}});
Uv.prototype.onFocus=Uv.prototype.onFocus;Uv.prototype.onTap=Uv.prototype.onTap;Uv.prototype.selectionChanged=Uv.prototype.selectionChanged;Uv.prototype.dataChanged=Uv.prototype.dataChanged;_.T([_.J(_.Hi),_.Y("design:type",Object)],Uv.prototype,"ironButtonState",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Uv.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],Uv.prototype,"ytActionHandlerBehavior",void 0);
_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],Uv.prototype,"ytComponentBehavior",void 0);_.T([_.J(_.$5),_.Y("design:type",Object)],Uv.prototype,"ironA11yKeysBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],Uv.prototype,"disableDeselectEvent",void 0);_.T([_.O(),_.Y("design:type",Object)],Uv.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0}),_.a("data.icon"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Uv.prototype,"hasIcon",null);
_.T([_.O({reflectToAttribute:!0}),_.a("data.uniqueId"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Uv.prototype,"isGnomeChip",null);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],Uv.prototype,"modern",void 0);_.T([_.O({computed:"computeChipStyle(data.style.styleType)",reflectToAttribute:!0}),_.Y("design:type",String)],Uv.prototype,"chipStyle",void 0);_.T([_.O({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],Uv.prototype,"selected",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],Uv.prototype,"useChipShape",void 0);_.T([_.a("data","selected"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Uv.prototype,"chipShapeData",null);_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Uv.prototype,"dataChanged",null);_.T([_.ea("selected"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Uv.prototype,"selectionChanged",null);
_.T([_.R4("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Uv.prototype,"onTap",null);_.T([_.R4("focus"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Uv.prototype,"onFocus",null);Uv=_.T([_.$3({is:"yt-chip-cloud-chip-renderer",disableElementRegistration:!0})],Uv);
_.r(Uv,"yt-chip-cloud-chip-renderer",function(){if(Msi===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-chip-cloud-chip-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_chip_cloud_chip_renderer.yt.chip.cloud.chip.renderer.css.js--\x3e<div id="chip-shape-container" class="style-scope yt-chip-cloud-chip-renderer">\n    <chip-shape data="[[chipShapeData]]" class="style-scope yt-chip-cloud-chip-renderer"></chip-shape>\n</div>\n<div id="chip-container" class="style-scope yt-chip-cloud-chip-renderer">\n    <yt-icon class="leading-icon style-scope yt-chip-cloud-chip-renderer" hidden="[[!hasIcon]]" icon="[[data.icon.iconType]]">\n    </yt-icon>\n    <yt-formatted-string id="text" ellipsis-truncate="" text="[[data.text]]" class="style-scope yt-chip-cloud-chip-renderer">\n    </yt-formatted-string>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;ekT===void 0&&(ekT=document.createElement("template"));var h=ekT;E.call(W,h.content.cloneNode(!0),F.content.firstChild);Msi=F}F=Msi;return F},{mode:2});var RR=function(){var F=_.n.apply(this,arguments)||this;F.isDarkTheme=!1;F.notSticky=!1;F.transparentBackground=!1;F.shouldHide=!1;F.disableSticky=!1;F.fluidWidth=!1;F.isClipList=!1;F.defaultChipIndex=0;F.isPlaylist=!1;F.playlistVotingAnimationEnabled=_.c("web_enable_voting_animation");F.toolbarHeight=0;F.actionMap={"yt-chip-cloud-chip-select-action":"handleChipCloudChipSelectAction","yt-chip-cloud-chip-deselect-action":"handleChipCloudChipDeselectAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};
return F};
_.k(RR,_.n);_.N=RR.prototype;
_.N.configureRendererStamper=function(){return{"data.contents":{id:"chips",mapping:{chipCloudChipRenderer:{component:"yt-chip-cloud-chip-renderer",properties:{disableDeselectEvent:"[[isDisableDeselectEvent]]"}}}},sortFilterHeaderRendererData:{id:"filter",mapping:{sortFilterHeaderRenderer:{component:"ytd-sort-filter-header-renderer",properties:{isClipList:"[[isClipList]]",isPlaylistPageWithFilters:"[[isPlaylistPage]]"}}}},"data.previousButton":{id:"left-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundPrevClick]]"},
params:{iconSize:16}}}},"data.nextButton":{id:"right-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundNextClick]]"},params:{iconSize:16}}}}}};
_.N.attached=function(){var F=this;document.addEventListener("scroll",_.UO(this,this.updateChipBarWidthAndTop));this.isDarkTheme=document.documentElement.hasAttribute("dark");var W;this.toolbarHeight=((W=document.querySelector("ytd-masthead"))==null?void 0:W.clientHeight)||0;window.IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver(function(E){F.handleIntersect(E)},{rootMargin:"-"+(this.toolbarHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){F.updateChipBarWidthAndTop()}),this.resizeObserver.observe(this.hostElement))};
_.N.detached=function(){var F;(F=this.intersectionObserver)==null||F.disconnect();var W;(W=this.resizeObserver)==null||W.disconnect();document.removeEventListener("scroll",_.UO(this,this.updateChipBarWidthAndTop))};
_.N.dataChanged=function(){var F=this,W,E,h;((h=_.D((W=this.data)==null?void 0:(E=W.contents)==null?void 0:E[0],hRM))==null?void 0:h.uniqueId)==="gnome_chip"&&(this.defaultChipIndex=1);this.updating=!0;var d=this.findSelectedChipIndex();this.selectedIndex!==d&&(this.selectedIndex=-1);_.wT(this,function(){F.selectedIndex=d;F.updating=!1;F.ytScrollableChipCloudBehavior.reset()})};
_.N.findSelectedChipIndex=function(){var F;if((F=this.data)==null||!F.contents)return 0;F=this.data.contents;for(var W=0;W<F.length;W++){var E=void 0;if((E=_.D(F[W],hRM))==null?0:E.isSelected)return W}return 0};
_.N.computeStyle=function(F){return F};
_.N.handleChipCloudChipSelectAction=function(F){F=this.JSC$13845_chipsSelector.indexOf(F);F>-1&&this.JSC$13845_chipsSelector.selectIndex(F)};
_.N.handleChipCloudChipDeselectAction=function(){if(_.c("kevlar_chips_check_index_zero_killswitch")||![this.defaultChipIndex,-1].includes(this.selectedIndex)){var F,W,E,h=(E=_.D((F=this.data)==null?void 0:(W=F.contents)==null?void 0:W[0],hRM))==null?void 0:E.navigationEndpoint;h&&_.dW(this.hostElement,"yt-browse-section-list-reload-endpoint",[h]);this.JSC$13845_chipsSelector.selectIndex(this.defaultChipIndex);this.ytScrollableChipCloudBehavior.reset()}};
_.N.onGuideIsExpandedChanged=function(){var F=this.ytScrollableChipCloudBehavior;_.wT(F,F.setContainerWidthDiff);Vq(this.ytScrollableChipCloudBehavior)};
_.N.onResize=function(){var F=this.ytScrollableChipCloudBehavior;_.wT(F,F.setContainerWidthDiff);Vq(this.ytScrollableChipCloudBehavior)};
_.N.onDarkModeToggledAction=function(F){this.isDarkTheme=F};
_.N.updateChipBarWidthAndTop=function(){this.updateDimensions();this.notSticky=this.isChannelPageGrid||this.disableSticky||this.hostElement.getBoundingClientRect().y>this.toolbarHeight};
_.N.handleIntersect=function(F){_.c("disable_chips_intersection_observer")||(this.notSticky=this.isChannelPageGrid||this.disableSticky||F[0].intersectionRatio===1)};
_.N.updateDimensions=function(){var F=this.ytRendererBehavior.parentComponent;if(F){var W,E=(W=F.headerElement)!=null?W:F;_.V9(this.hostElement,{"--ytd-rich-grid-chips-bar-width":E.clientWidth+"px","--ytd-rich-grid-chips-bar-top":this.toolbarHeight+"px"})}};
_.N.updateSelectedIndexFromBinding=function(F){this.selectedIndex=F.detail.value};
_.N.isPlaylistPageChanged=function(){if(this.isPlaylistPage){var F;(F=this.sortFilterHeaderRendererElement)==null||F.setAttribute("is-playlist-page-with-filters","")}};
_.N.dispatchChipBarIsSticky=function(){this.ytdReduxBehavior.dispatch(_.dR({type:"SET_CHIP_BAR_IS_STICKY",payload:!this.notSticky}))};
_.Sn.Object.defineProperties(RR.prototype,{isChannelPageGrid:{configurable:!0,enumerable:!0,get:function(){return this.componentStyle==="FEED_FILTER_CHIP_BAR_STYLE_TYPE_CHANNEL_PAGE_GRID"}},
isHashtagLandingPage:{configurable:!0,enumerable:!0,get:function(){return this.componentStyle==="FEED_FILTER_CHIP_BAR_STYLE_TYPE_HASHTAG_LANDING_PAGE"}},
isPlaylistPage:{configurable:!0,enumerable:!0,get:function(){return this.componentStyle==="FEED_FILTER_CHIP_BAR_STYLE_TYPE_PLAYLIST_PAGE"}},
isDisableDeselectEvent:{configurable:!0,enumerable:!0,get:function(){return this.isChannelPageGrid||this.isHashtagLandingPage||this.isPlaylistPage}},
sortFilterHeaderRendererData:{configurable:!0,enumerable:!0,get:function(){var F,W,E=(F=this.data)==null?void 0:(W=F.contents)==null?void 0:W.find(function(h){return _.D(h,Udi)});
return{sortFilterHeaderRenderer:_.D(E,Udi)}}}});
RR.prototype.dispatchChipBarIsSticky=RR.prototype.dispatchChipBarIsSticky;RR.prototype.isPlaylistPageChanged=RR.prototype.isPlaylistPageChanged;RR.prototype.updateChipBarWidthAndTop=RR.prototype.updateChipBarWidthAndTop;RR.prototype.onResize=RR.prototype.onResize;RR.prototype.onGuideIsExpandedChanged=RR.prototype.onGuideIsExpandedChanged;RR.prototype.dataChanged=RR.prototype.dataChanged;_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],RR.prototype,"ytRendererstamperBehavior",void 0);
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],RR.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],RR.prototype,"actionHandlerBehavior",void 0);_.T([_.J(_.lB),_.Y("design:type",Object)],RR.prototype,"ironResizableBehavior",void 0);_.T([_.J(),_.Y("design:type",Nx)],RR.prototype,"ytScrollableChipCloudBehavior",void 0);_.T([_.J(_.am),_.Y("design:type",Object)],RR.prototype,"ytdReduxBehavior",void 0);
_.T([_.O(),_.Y("design:type",Object)],RR.prototype,"data",void 0);_.T([_.O({value:0}),_.Y("design:type",Number)],RR.prototype,"selectedIndex",void 0);_.T([_.O({value:320}),_.Y("design:type",Number)],RR.prototype,"scrollDistance",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],RR.prototype,"isDarkTheme",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],RR.prototype,"notSticky",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],RR.prototype,"transparentBackground",void 0);_.T([_.O({reflectToAttribute:!0,computed:"computeStyle(data.styleType)"}),_.Y("design:type",String)],RR.prototype,"componentStyle",void 0);_.T([_.O({selector:_.c7I}),_.Y("design:type",Boolean)],RR.prototype,"guideIsExpanded",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],RR.prototype,"shouldHide",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],RR.prototype,"disableSticky",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],RR.prototype,"fluidWidth",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],RR.prototype,"isClipList",void 0);_.T([_.O(),_.Y("design:type",Object)],RR.prototype,"defaultChipIndex",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],RR.prototype,"isPlaylist",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],RR.prototype,"playlistVotingAnimationEnabled",void 0);_.T([_.gQ("#chips"),_.Y("design:type",Object)],RR.prototype,"JSC$13845_chipsSelector",void 0);_.T([_.gQ("ytd-sort-filter-header-renderer"),_.Y("design:type",HTMLElement)],RR.prototype,"sortFilterHeaderRendererElement",void 0);_.T([_.O({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],RR.prototype,"updating",void 0);
_.T([_.Cz("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],RR.prototype,"dataChanged",null);_.T([_.ea("guideIsExpanded"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],RR.prototype,"onGuideIsExpandedChanged",null);_.T([_.R4("iron-resize"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],RR.prototype,"onResize",null);
_.T([_.Cz("isChannelPageGrid","disableSticky","data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],RR.prototype,"updateChipBarWidthAndTop",null);_.T([_.a("componentStyle"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],RR.prototype,"isChannelPageGrid",null);_.T([_.a("componentStyle"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],RR.prototype,"isHashtagLandingPage",null);
_.T([_.ea("isPlaylistPage"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],RR.prototype,"isPlaylistPageChanged",null);_.T([_.a("componentStyle"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],RR.prototype,"isPlaylistPage",null);_.T([_.a("componentStyle"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],RR.prototype,"isDisableDeselectEvent",null);
_.T([_.a("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],RR.prototype,"sortFilterHeaderRendererData",null);_.T([_.O({reflectToAttribute:!0,selector:_.qak}),_.Y("design:type",String)],RR.prototype,"frostedGlassMode",void 0);_.T([_.ea("notSticky"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],RR.prototype,"dispatchChipBarIsSticky",null);RR=_.T([_.y({is:"ytd-feed-filter-chip-bar-renderer",disableElementRegistration:!0})],RR);
_.r(RR,"ytd-feed-filter-chip-bar-renderer",function(){if(RkO!==void 0)return RkO;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feed-filter-chip-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="chips-wrapper" class="style-scope ytd-feed-filter-chip-bar-renderer">\n  <div id="chips-content" class="style-scope ytd-feed-filter-chip-bar-renderer">\n    <div id="left-arrow" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      <div id="left-arrow-button" class="style-scope ytd-feed-filter-chip-bar-renderer"></div>\n    </div>\n    <div id="filter" class="style-scope ytd-feed-filter-chip-bar-renderer"></div>\n    <div id="scroll-container" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      <iron-selector id="chips" activate-event="" role="tablist" selected="[[selectedIndex]]" selected-attribute="selected" on-selected-changed="updateSelectedIndexFromBinding" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      </iron-selector>\n    </div>\n    <div id="right-arrow" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      <div id="right-arrow-button" class="style-scope ytd-feed-filter-chip-bar-renderer"></div>\n    </div>\n  </div>\n</div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return RkO=F},{mode:1});var tsu;var Cqp=_.GK(function(F){var W=F.data;var E=F.buttonIndex;var h=F.selectedIndex;var d=F.onSelect;var V=function(){return E()===h()},R=function(){var g,t;
return(t=(g=W().text)==null?void 0:g.content)!=null?t:""};
_.tb(function(){});
F=_.$Zr();var M=_.tb(function(){d(W().onSubmitCommand);return!1});
return _.z("yt-toggleable-image-button-view-model",{class:function(){var g={};g=(g["toggleable-image-button-view-model-wiz"]=!0,g[""]=!0,g["toggleable-image-button-view-model-wiz__semi-transparent"]=h()!==-1&&!V(),g);return _.gY(g)},
tabindex:0,"aria-label":R,"aria-pressed":V,role:"button","on:keydown":F,"on:click":M},_.z(_.v,{cond:function(){return W().logo},
then:function(g){return _.z(_.T4,{data:g,className:function(){var t={};t=(t["toggleable-image-button-view-model-wiz__image"]=!0,t["toggleable-image-button-view-model-wiz__circular-radius"]=!(!W().backgroundColor||!W().backgroundColorDarkMode),t["toggleable-image-button-view-model-wiz__gradient-ring"]=!!(V()&&W().backgroundColor&&W().backgroundColorDarkMode),t);return _.gY(t)},
alt:R,useWidth:!1,style:function(){if(V()&&W().backgroundColor&&W().backgroundColorDarkMode){var t=HB(Number(W().backgroundColorDarkMode),"1");var C=HB(Number(W().backgroundColor),"1");t="background: linear-gradient(180deg,"+t+","+C+") border-box;"}else t="";return t}})}}),_.z(_.xY,{model:{borderRadius:"16px"}}),_.z("p",{class:function(){var g={};
g=(g["toggleable-image-button-view-model-wiz__label"]=!0,g["toggleable-image-button-view-model-wiz__bold-text"]=V(),g);return _.gY(g)}},_.z(_.Ab,{text:function(){return W().text}})))},"xb");
Cqp.idomCompat=!0;var veU=_.GK(function(F){var W=F.data;F=_.U(_.g$({index:-1,command:{}},void 0,"Zcqtsb"));var E=F.next().value,h=F.next().value;return _.z("yt-nudge-form-view-model",{class:"nudge-form-view-model-wiz"},_.z("div",{class:"nudge-form-view-model-wiz__form-options"},_.z(_.a6,{data:function(){return W().inputFields},
allowIncompleteMapping:!0},{toggleableImageButtonViewModel:function(d,V){return _.z(Cqp,{data:d.data,buttonIndex:V,selectedIndex:function(){return E().index},
onSelect:function(R){h({index:V(),command:R})}})}})),_.z(_.Ab,{text:function(){return W().subtitle},
className:"nudge-form-view-model-wiz__subtitle"}),_.z("div",{class:"nudge-form-view-model-wiz__submit"},_.z(_.a6,{data:function(){return W().submitButton}},{buttonViewModel:function(d){return _.z(Bya,{data:d.data,
isDisabled:function(){return E().index===-1},
onClick:function(){_.fK(E().command)}})}})))},"yb");
veU.idomCompat=!0;var Bya=_.GK(function(F){var W=_.vX(function(){return Object.assign({},F.data(),{state:F.isDisabled()?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE"})},void 0,"rgD0re");
return _.z(_.rk,{data:W,onClick:F.onClick})},"zb");_.pK(veU,"yt-nudge-form-view-model",{props:{data:_.TS}});var e4=function(){var F=_.n.apply(this,arguments)||this;F.roundedContainer=!0;F.buttonUpdate=_.c("web_modern_buttons");F.isDarkMode=!1;F.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return F};
_.k(e4,_.n);_.N=e4.prototype;_.N.computeNudgeStyle=function(F){return F?"modernized-nudge":""};
_.N.handleDarkModeToggledAction=function(F){this.isDarkMode=F};
_.N.attached=function(){this.handleDarkModeToggledAction(document.documentElement.hasAttribute("dark"))};
_.N.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{chipCloudChipRenderer:"yt-chip-cloud-chip-renderer",nudgeFormViewModel:"yt-nudge-form-view-model"}},"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"dismissed-content",
mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.N.computeIsHorizontalButtons=function(F){return F?!!F.applyModernizedStyle&&!!F.enableHorizontalButtons&&!!F.secondaryButton:!1};
_.Sn.Object.defineProperties(e4.prototype,{isHidden:{configurable:!0,enumerable:!0,get:function(){return!!this.ytdDismissibleItemBehavior.isHideEnclosingAction}},
trimStyle:{configurable:!0,enumerable:!0,get:function(){var F;return((F=this.data)==null?void 0:F.trimStyle)==="FEED_NUDGE_TRIM_STYLE_NO_TRIM"?"no-trim":"gradient-trim-1"}},
backgroundStyle:{configurable:!0,enumerable:!0,get:function(){var F,W;return(W=(F=this.data)==null?void 0:F.backgroundStyle)!=null?W:"FEED_NUDGE_BACKGROUND_STYLE_UNKNOWN"}},
contentsLocation:{configurable:!0,enumerable:!0,get:function(){var F,W;return(W=(F=this.data)==null?void 0:F.contentsLocation)!=null?W:"FEED_NUDGE_CONTENTS_LOCATION_UNKNOWN"}},
noShadow:{configurable:!0,enumerable:!0,get:function(){var F;return!((F=this.data)==null||!F.disableDropShadow)}},
noIcon:{configurable:!0,enumerable:!0,get:function(){var F;return!((F=this.data)==null?0:F.lightIconImage)}}});
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],e4.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],e4.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.O9),_.Y("design:type",Object)],e4.prototype,"ytdDismissibleItemBehavior",void 0);_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],e4.prototype,"actionHandlerBehavior",void 0);
_.T([_.O({reflectToAttribute:!0}),_.a("isHideEnclosingAction"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],e4.prototype,"isHidden",null);_.T([_.O(),_.Y("design:type",Object)],e4.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],e4.prototype,"roundedContainer",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],e4.prototype,"buttonUpdate",void 0);
_.T([_.O({reflectToAttribute:!0,computed:"computeNudgeStyle(data.applyModernizedStyle)"}),_.Y("design:type",String)],e4.prototype,"nudgeStyle",void 0);_.T([_.O({reflectToAttribute:!0}),_.a("data.trimStyle"),_.Y("design:type",String),_.Y("design:paramtypes",[])],e4.prototype,"trimStyle",null);_.T([_.O({reflectToAttribute:!0}),_.a("data.backgroundStyle"),_.Y("design:type",String),_.Y("design:paramtypes",[])],e4.prototype,"backgroundStyle",null);
_.T([_.O({reflectToAttribute:!0}),_.a("data.contentsLocation"),_.Y("design:type",String),_.Y("design:paramtypes",[])],e4.prototype,"contentsLocation",null);_.T([_.O({reflectToAttribute:!0}),_.a("data.disableDropShadow"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],e4.prototype,"noShadow",null);_.T([_.O({reflectToAttribute:!0}),_.a("data.lightIconImage"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],e4.prototype,"noIcon",null);
_.T([_.O({reflectToAttribute:!0,computed:"computeIsHorizontalButtons(data)"}),_.Y("design:type",Boolean)],e4.prototype,"isHorizontalButtons",void 0);_.T([_.O({reflectToAttribute:!0,value:!1}),_.Y("design:type",Object)],e4.prototype,"isDarkMode",void 0);e4=_.T([_.y({is:"ytd-feed-nudge-renderer",disableElementRegistration:!0})],e4);
_.r(e4,"ytd-feed-nudge-renderer",function(){if(tsu!==void 0)return tsu;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feed-nudge-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-feed-nudge-renderer">\n  <div id="dismiss-button" class="style-scope ytd-feed-nudge-renderer"></div>\n  <div id="content-wrapper" class="style-scope ytd-feed-nudge-renderer">\n    <div id="header-container" class="style-scope ytd-feed-nudge-renderer">\n      <div id="image-container" hidden="[[!data.lightIconImage]]" class="style-scope ytd-feed-nudge-renderer">\n        <yt-img-shadow id="nudge-image" height="32" thumbnail="[[data.lightIconImage]]" class="style-scope ytd-feed-nudge-renderer">\n        </yt-img-shadow>\n      </div>\n    </div>\n    <div id="text-container" class="style-scope ytd-feed-nudge-renderer">\n      <div id="title-container" class="style-scope ytd-feed-nudge-renderer">\n        <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-feed-nudge-renderer"></yt-formatted-string>\n      </div>\n      <div id="subtitle-container" class="style-scope ytd-feed-nudge-renderer">\n        <yt-formatted-string id="subtitle" split-lines="" text="[[data.subtitle]]" class="style-scope ytd-feed-nudge-renderer"></yt-formatted-string>\n      </div>\n    </div>\n    <div id="contents" hidden="[[!data.contents]]" class="style-scope ytd-feed-nudge-renderer"></div>\n    <div id="button-container" hidden="[[!data.primaryButton]]" class="style-scope ytd-feed-nudge-renderer">\n      <div id="primary-button" class="style-scope ytd-feed-nudge-renderer"></div>\n      <div id="secondary-button" class="style-scope ytd-feed-nudge-renderer"></div>\n    </div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-feed-nudge-renderer">\n  <div id="dismissed-content" class="style-scope ytd-feed-nudge-renderer"></div>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return tsu=F},{mode:_.E6("kevlar_poly_si_batch_j028")?1:2});var IKB;var coO;var Mx=function(){var F=_.n.apply(this,arguments)||this;F.collapsed=!1;F.actionMap={"ytd-slimline-survey-rating-select-action":"handleRatingSelect","ytd-slimline-survey-show-action":"handleShowSurvey"};return F};
_.k(Mx,_.n);Mx.prototype.configureRendererStamper=function(){return{"data.content":{id:"rating-survey",mapping:{ratingSurveyRenderer:{component:"ytd-rating-survey-renderer",params:{isSlimlineSurvey:!0,showResponseRangeText:!0}}}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
Mx.prototype.handleRatingSelect=function(){var F;((F=this.data)==null?0:F.onSelectRating)&&this.ytComponentBehavior.resolveCommand(this.data.onSelectRating);this.collapsed=!0};
Mx.prototype.handleShowSurvey=function(){this.collapsed=!1};
_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],Mx.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],Mx.prototype,"actionHandlerBehavior",void 0);_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],Mx.prototype,"ytComponentBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Mx.prototype,"ytRendererBehavior",void 0);
_.T([_.J(_.O9),_.Y("design:type",Object)],Mx.prototype,"ytdDismissibleItemBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],Mx.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],Mx.prototype,"collapsed",void 0);Mx=_.T([_.y({is:"ytd-slimline-survey-renderer",disableElementRegistration:!0})],Mx);
_.r(Mx,"ytd-slimline-survey-renderer",function(){if(coO!==void 0)return coO;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-slimline-survey-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-slimline-survey-renderer">\n  <div id="content-wrapper" class="style-scope ytd-slimline-survey-renderer">\n    <div id="header-container" class="style-scope ytd-slimline-survey-renderer">\n      <div id="title-container" class="style-scope ytd-slimline-survey-renderer">\n        <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-slimline-survey-renderer"></yt-formatted-string>\n      </div>\n      <div id="dismiss-button" class="style-scope ytd-slimline-survey-renderer"></div>\n    </div>\n    <div id="rating-survey" class="style-scope ytd-slimline-survey-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-slimline-survey-renderer">\n  <div id="dismissed-content" class="style-scope ytd-slimline-survey-renderer"></div>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return coO=F},{mode:1});var DsM;var gj=function(){return _.n.apply(this,arguments)||this};
_.k(gj,_.n);gj.prototype.maybeGetBackgroundColor=function(F){return this.isDarkMode?F.section2Color:F.section3Color};
gj.prototype.colorPaletteChanged=function(){var F=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;F&&(F==null?0:F.secondaryTitleColor)&&this.maybeGetBackgroundColor(F)?(this.hostElement.style.backgroundColor=_.ZP(this.maybeGetBackgroundColor(F)),this.hostElement.style.color=_.ZP(F.secondaryTitleColor)):(this.hostElement.style.backgroundColor="",this.hostElement.style.color="")};
gj.prototype.colorPaletteChanged=gj.prototype.colorPaletteChanged;_.T([_.J(_.am),_.Y("design:type",Object)],gj.prototype,"ytdReduxBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],gj.prototype,"data",void 0);_.T([_.O({selector:function(F){return F.ui.darkModeIsEnabled}}),
_.Y("design:type",Boolean)],gj.prototype,"isDarkMode",void 0);_.T([_.O(),_.Y("design:type",Object)],gj.prototype,"lightColorPalette",void 0);_.T([_.O(),_.Y("design:type",Object)],gj.prototype,"darkColorPalette",void 0);_.T([_.ea("darkColorPalette","lightColorPalette","data","isDarkMode"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],gj.prototype,"colorPaletteChanged",null);gj=_.T([_.y({disableElementRegistration:!0,is:"ytd-endorsement-header-renderer"})],gj);
_.r(gj,"ytd-endorsement-header-renderer",function(){if(DsM!==void 0)return DsM;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-endorsement-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon id="icon" hidden="[[!data.icon]]" icon="[[data.icon.iconType]]" class="style-scope ytd-endorsement-header-renderer"></yt-icon>\n<yt-formatted-string id="text" text="[[data.title]]" class="style-scope ytd-endorsement-header-renderer"></yt-formatted-string>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return DsM=F},{mode:1});_.pK(_.sc,"yt-decorated-avatar-view-model",{props:{data:_.TS,className:_.TS}});var Qq=function(){var F=_.n.apply(this,arguments)||this;F.fullHeight=_.c("web_rich_grid_media_full_height");F.showChannelAvatar=!0;F.hasPlaylistThumbnail=!1;F.avatarStackViewModelOverrides={layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"};F.prepareThumbnailForPageTransition=function(){_.c("web_thumbnail_to_watch_transition")&&(F.thumbnail.style.viewTransitionName="thumbnail-to-watch",F.cleanupThumbnailAfterPageTransition(F.thumbnail))};
return F};
_.k(Qq,_.n);_.N=Qq.prototype;
_.N.configureRendererStamper=function(){return{lazyLoadMenu:g1,immediateLoadMenu:{id:"immediate-load-menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},"data.thumbnailUnderlay":{id:"thumbnail-underlay",mapping:{endorsementHeaderRenderer:{component:"ytd-endorsement-header-renderer",properties:{lightColorPalette:"[[data.thumbnail.lightColorPalette]]",darkColorPalette:"[[data.thumbnail.darkColorPalette]]"}}}},"data.attachedSurvey":{id:"attached-survey",mapping:{slimlineSurveyRenderer:"ytd-slimline-survey-renderer"}},"data.buttons":{id:"buttons",
mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",params:{buttonTooltipPosition:"top"}},upcomingEventReminderButtonRenderer:"ytd-upcoming-event-reminder-button-renderer"}},dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}},"data.avatar":{id:"avatar",mapping:{avatarStackViewModel:{component:"yt-avatar-stack-view-model",properties:{overrides:"[[avatarStackViewModelOverrides]]"}},
decoratedAvatarViewModel:"yt-decorated-avatar-view-model"}}}};
_.N.attached=function(){this.updateInlinePreviewHoverListeners()};
_.N.detached=function(){this.clearInlinePreviewHoverListeners()};
_.N.shouldLazyLoadMenu=function(){var F=this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"||this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST";return!_.c("kevlar_modern_downloads_page")||!F};
_.N.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13871_inlinePreviewHoverListener=FY({mediaRenderer:this,lockupElement:this.JSC$13871_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:this.getVideoPreviewOpts()})};
_.N.getVideoPreviewOpts=function(){var F={},W;if((W=this.data)==null?0:W.multipleInlinePlaybackEndpoint)F=CQi;this.isRadio&&(F=tNM);return _.c("web_thumbnail_to_watch_transition")?Object.assign({},F,{onNavigateToWatchCallback:this.prepareThumbnailForPageTransition}):F};
_.N.clearInlinePreviewHoverListeners=function(){var F;(F=this.JSC$13871_inlinePreviewHoverListener)==null||Qg(F)};
_.N.getOwner=function(){var F,W,E;return((F=this.data)==null?void 0:(W=F.channelThumbnailSupportedRenderers)==null?void 0:W.channelThumbnailWithLinkRenderer)||_.D((E=this.data)==null?void 0:E.showProviderChannelThumbnail,SV_)};
_.N.updateLockupSize=function(){var F;((F=this.getOwner())==null?0:F.thumbnail)?this.showChannelAvatar=!0:this.showChannelAvatar=!1};
_.N.getFeedbackEndpoint=function(F){if(_.D(F,_.yT))return F;var W,E;F=(E=(W=_.D(F,_.Mc))==null?void 0:W.commands)!=null?E:[];W=_.U(F);for(E=W.next();!E.done;E=W.next())if(E=this.getFeedbackEndpoint(E.value))return E;return null};
_.N.computeNavigationEndpoint=function(F){return Sjk(F==null?void 0:F.navigationEndpoint)};
_.N.handleReloadDownloadsInfo=function(){if(this.entityDrivenState){var F=Object.assign({},this.data,this.entityDrivenState);JSON.stringify(F)!==JSON.stringify(this.data)&&this.set("data",F)}};
_.N.onDataChanged=function(){var F=this,W=this.getOwner();if(W){this.set("data.owner",W);var E,h,d,V,R,M=((E=this.data)==null?void 0:(h=E.shortBylineText)==null?void 0:(d=h.runs)==null?void 0:(V=d[0])==null?void 0:V.text)||((R=W.name)==null?void 0:R.simpleText);this.set("data.owner.title",M)}var g,t,C,B,I,x;W=((g=this.data)==null?void 0:(t=g.thumbnailRenderer)==null?void 0:t.playlistVideoThumbnailRenderer)||((C=this.data)==null?void 0:(B=C.thumbnailRenderer)==null?void 0:B.playlistCustomThumbnailRenderer)||
((I=this.data)==null?void 0:(x=I.thumbnailRenderer)==null?void 0:x.showCustomThumbnailRenderer);var A;((A=this.data)==null?0:A.thumbnail)||!W||this.set("data.thumbnail",W.thumbnail);this.updateInlinePreviewHoverListeners();requestAnimationFrame(function(){F.updateLockupSize()});
var X;if(g=((X=this.data)==null?void 0:X.trackingParams)||"")this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(g);var P;((P=this.dismissActionToReplayEntity)==null?0:P.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command)};
_.N.onHiddenChanged=function(){this.updateLockupSize()};
_.N.onIsDismissedChanged=function(){if(this.ytdDismissibleItemBehavior.isDismissed)_.dW(this.hostElement,"yt-terminate-video-preview-action");else{var F;(F=this.videoTitleLink)==null||F.focus()}};
_.N.metadataColorChanged=function(){var F;if(this.metadataColor&&((F=this.videoTitle)==null?0:F.style))this.videoTitle.style.color=_.ZP(this.metadataColor);else{var W,E;!this.metadataColor&&((W=this.videoTitle)==null?0:(E=W.style)==null?0:E.color)&&(this.videoTitle.style.color="")}};
_.N.onDetailsClick=function(F){var W=this.computedNavigationEndpoint;W&&(_.Sc(_.TB(F),this.hostElement,["A","BUTTON"])||_.hF(this.hostElement,"yt-navigate",{endpoint:W}))};
_.N.cleanupThumbnailAfterPageTransition=function(F){_.T2I(document,"yt-page-type-changed",function(){F.style.viewTransitionName=""})};
_.N.onRendererTap=function(){this.prepareThumbnailForPageTransition();var F,W,E=((F=this.data)==null?void 0:F.serviceEndpoint)||this.getFeedbackEndpoint((W=this.data)==null?void 0:W.navigationEndpoint);E&&_.D(E,_.yT)&&this.ytComponentBehavior.resolveCommand(E)};
_.N.onMouseDown=function(F){var W=F.target,E=this.computedNavigationEndpoint,h;F=W.href||((h=_.D(E==null?void 0:E.commandMetadata,_.m1))==null?void 0:h.url);h=W.data||E;F&&h&&mge(F,h)};
_.N.computeVideoTitleText=function(){var F;if((F=this.data)==null?0:F.title)return Object.assign({},this.data.title,{accessibility:void 0})};
_.N.computeHasPlaylistThumbnail=function(F){var W,E,h,d,V;if((((W=F.thumbnailRenderer)==null?0:W.playlistVideoThumbnailRenderer)||((E=F.thumbnailRenderer)==null?0:E.playlistCustomThumbnailRenderer)||((h=F.thumbnailRenderer)==null?0:h.showCustomThumbnailRenderer)||((d=F.thumbnailRenderer)==null?0:d.playlistVideoThumbnailRenderer)||((V=F.thumbnailRenderer)==null?0:V.playlistCustomThumbnailRenderer))&&F.thumbnailOverlays)for(W=0;W<F.thumbnailOverlays.length;W++)if(E=void 0,(E=F.thumbnailOverlays[W])==
null?0:E.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.Sn.Object.defineProperties(Qq.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.c("web_enable_typography_bump_v2")}},
lazyLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(this.shouldLazyLoadMenu()){var F;return(F=this.data)==null?void 0:F.menu}}},
immediateLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(!this.shouldLazyLoadMenu()){var F;return(F=this.data)==null?void 0:F.menu}}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var F;return!((F=this.JSC$13871_inlinePreviewHoverListener)==null?0:ZC(F))&&!!this.ytdLockupBehavior.lockupIsHovered}},
stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return _.tg(location.pathname)==="home"?"large":"medium"}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var F;return!((F=this.data)==null||!F.avatar)}},
mediaId:{configurable:!0,enumerable:!0,get:function(){var F,W;return((F=this.data)==null?void 0:F.videoId)||((W=this.data)==null?void 0:W.playlistId)||""}}});
Qq.prototype.onMouseDown=Qq.prototype.onMouseDown;Qq.prototype.metadataColorChanged=Qq.prototype.metadataColorChanged;Qq.prototype.onIsDismissedChanged=Qq.prototype.onIsDismissedChanged;Qq.prototype.onHiddenChanged=Qq.prototype.onHiddenChanged;Qq.prototype.onDataChanged=Qq.prototype.onDataChanged;Qq.prototype.handleReloadDownloadsInfo=Qq.prototype.handleReloadDownloadsInfo;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Qq.prototype,"ytRendererBehavior",void 0);
_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],Qq.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],Qq.prototype,"ytComponentBehavior",void 0);_.T([_.J(_.O9),_.Y("design:type",Object)],Qq.prototype,"ytdDismissibleItemBehavior",void 0);_.T([_.J(_.rt),_.Y("design:type",Object)],Qq.prototype,"ytdLockupBehavior",void 0);_.T([_.J(_.am),_.Y("design:type",Object)],Qq.prototype,"ytdReduxBehavior",void 0);
_.T([_.O(),_.Y("design:type",Object)],Qq.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",String)],Qq.prototype,"entitySelectorType",void 0);_.T([_.O(),_.Y("design:type",Boolean)],Qq.prototype,"noEndpoints",void 0);_.T([_.O({value:!1}),_.Y("design:type",Boolean)],Qq.prototype,"isRadio",void 0);_.T([_.O({reflectToAttribute:!0,selector:_.XD}),_.Y("design:type",Boolean)],Qq.prototype,"miniMode",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],Qq.prototype,"fullHeight",void 0);
_.T([_.O(),_.Y("design:type",Boolean)],Qq.prototype,"showDarkVideoMetadata",void 0);_.T([_.O(),_.Y("design:type",Boolean)],Qq.prototype,"showLightVideoMetadata",void 0);_.T([_.O(),_.Y("design:type",Number)],Qq.prototype,"metadataColor",void 0);_.T([_.O(),_.Y("design:type",Object)],Qq.prototype,"showChannelAvatar",void 0);_.T([_.O(),_.Y("design:type",Boolean)],Qq.prototype,"hidden",void 0);_.T([_.O({value:!0}),_.Y("design:type",Boolean)],Qq.prototype,"showYtInteraction",void 0);
_.T([_.O(),_.Y("design:type",String)],Qq.prototype,"dismissedContentId",void 0);_.T([_.O({selectorArgs:["dismissedContentId"],selector:bJo}),_.Y("design:type",Object)],Qq.prototype,"dismissActionToReplayEntity",void 0);
_.T([_.O({selectorArgs:["entitySelectorType","mediaId"],selector:function(F,W,E){if(_.c("kevlar_modern_downloads_page")&&E&&W&&W!=="RICH_ITEM_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(W){case "RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO":var h=HiY(F,E);if(h){W=_.ax(F,E);var d=O_(F,E),V=iio(F,E);F=lC(F,E);var R=ITb(h,W,d,V);d=R.shortViewCountText;var M=R.publishedTimeText;R=R.badges;var g=F>0;V=BLG(h,W,V,F);h=_.cz(W)||W==="TRANSFER_STATE_FAILED"||W==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!Ix(h.policyEntity)?
void 0:wye(E,F,h.videoEntity.lengthSeconds);W==="TRANSFER_STATE_PAUSED_BY_USER"&&E&&!_.c("dl_resume_click_killswitch")&&(h={offlineVideoEndpoint:{videoId:E,action:"ACTION_RESUME"}});E={shortViewCountText:d,publishedTimeText:M,badges:R,isWatched:g,navigationEndpoint:h,thumbnailOverlays:V}}else E=void 0;return E;case "RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST":a:{if(W=PEb(F,E))if(h=_.fV(F,E),V=_.J7w(F,E),h!=="TRANSFER_STATE_UNKNOWN"){E=vQn(W,h,V,E,L4G(F));break a}E=void 0}return E;default:_.OB(new _.xC("Error: entitySelectorType defined but not matched in selector.",
F,W))}}}),
_.Y("design:type",Object)],Qq.prototype,"entityDrivenState",void 0);_.T([_.O({computed:"computeVideoTitleText(data)"}),_.Y("design:type",Object)],Qq.prototype,"videoTitleText",void 0);_.T([_.O({computed:"computeHasPlaylistThumbnail(data)"}),_.Y("design:type",Object)],Qq.prototype,"hasPlaylistThumbnail",void 0);_.T([_.O({computed:"computeNavigationEndpoint(data)"}),_.Y("design:type",Object)],Qq.prototype,"computedNavigationEndpoint",void 0);
_.T([_.O({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],Qq.prototype,"typographyBump",void 0);_.T([_.O({reflectToAttribute:!0}),_.a("typographyBump"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Qq.prototype,"typographyBumpV2",null);_.T([_.gQ("#video-title"),_.Y("design:type",HTMLElement)],Qq.prototype,"videoTitle",void 0);_.T([_.gQ("#video-title-link"),_.Y("design:type",HTMLElement)],Qq.prototype,"videoTitleLink",void 0);
_.T([_.gQ("#thumbnail"),_.Y("design:type",HTMLElement)],Qq.prototype,"thumbnail",void 0);_.T([_.gQ("#dismissible"),_.Y("design:type",HTMLElement)],Qq.prototype,"JSC$13871_dismissibleMedia",void 0);_.T([_.a("data.menu"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Qq.prototype,"lazyLoadMenu",null);_.T([_.a("data.menu"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Qq.prototype,"immediateLoadMenu",null);
_.T([_.Cz("entityDrivenState"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Qq.prototype,"handleReloadDownloadsInfo",null);_.T([_.Cz("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Qq.prototype,"onDataChanged",null);_.T([_.Cz("hidden"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Qq.prototype,"onHiddenChanged",null);
_.T([_.ea("isDismissed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Qq.prototype,"onIsDismissedChanged",null);_.T([_.ea("metadataColor"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Qq.prototype,"metadataColorChanged",null);_.T([_.R4("mousedown"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Qq.prototype,"onMouseDown",null);
_.T([_.a("lockupIsHovered"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Qq.prototype,"isHovered",null);_.T([_.a("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Qq.prototype,"useAvatar",null);_.T([_.a("data","entitySelectorType"),_.Y("design:type",String),_.Y("design:paramtypes",[])],Qq.prototype,"mediaId",null);Qq=_.T([_.y({is:"ytd-rich-grid-media",disableElementRegistration:!0})],Qq);
var xsp=_.We()(Qq,"ytd-rich-grid-media",function(){if(IKB!==void 0)return IKB;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-grid-media--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" dark$="[[showDarkVideoMetadata]]" hidden="[[hidden]]" light$="[[showLightVideoMetadata]]" on-click="onRendererTap" class="style-scope ytd-rich-grid-media"><div id="thumbnail" class="style-scope ytd-rich-grid-media"><ytd-thumbnail data="[[data]]" hidden$="[[hasPlaylistThumbnail]]" hovered="[[isHovered]]" rich-grid-thumbnail="" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="9999" class="style-scope ytd-rich-grid-media"></ytd-thumbnail><ytd-playlist-thumbnail data="[[data]]" hidden="[[!hasPlaylistThumbnail]]" hovered="[[isHovered]]" is-double-stack="" thumbnail-size="[[stackThumbnailSize]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="9999" class="style-scope ytd-rich-grid-media"></ytd-playlist-thumbnail></div><div id="thumbnail-underlay" on-click="onDetailsClick" hidden="[[!data.thumbnailUnderlay]]" class="style-scope ytd-rich-grid-media"></div><div id="details" on-click="onDetailsClick" class="style-scope ytd-rich-grid-media"><div id="avatar-container" class="yt-simple-endpoint style-scope ytd-rich-grid-media" hidden="[[!showChannelAvatar]]"><a id="avatar-link" class="yt-simple-endpoint style-scope ytd-rich-grid-media" href$="[[computeHref_(data.owner.navigationEndpoint)]]" data="[[data.owner.navigationEndpoint]]" title="[[data.owner.title]]" tabindex="-1" hidden="[[useAvatar]]"><yt-img-shadow id="avatar-image" thumbnail="[[data.owner.thumbnail]]" width="48" class="style-scope ytd-rich-grid-media"></yt-img-shadow></a><div id="avatar" hidden="[[!useAvatar]]" class="style-scope ytd-rich-grid-media"></div></div><div id="meta" class="style-scope ytd-rich-grid-media"><h3 class="style-scope ytd-rich-grid-media"><ytd-badge-supported-renderer class="top-badge style-scope ytd-rich-grid-media" collection-truncate="" hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]"></ytd-badge-supported-renderer><a id="video-title-link" class="yt-simple-endpoint focus-on-expand style-scope ytd-rich-grid-media" href$="[[computeHref_(computedNavigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" data="[[computedNavigationEndpoint]]"><yt-formatted-string id="video-title" text="[[videoTitleText]]" class="style-scope ytd-rich-grid-media"></yt-formatted-string></a></h3><ytd-video-meta-block class="grid style-scope ytd-rich-grid-media" data="[[data]]" metadata-color="[[metadataColor]]" mini-mode="[[miniMode]]" radio-meta="[[isRadio]]" rich-meta="" typography-bump="[[typographyBump]]"></ytd-video-meta-block><ytd-badge-supported-renderer class="video-badge style-scope ytd-rich-grid-media" badges="[[data.badges]]" hidden="[[!data.badges]]"></ytd-badge-supported-renderer><ytd-badge-supported-renderer class="title-badge style-scope ytd-rich-grid-media" hidden="[[!data.bottomStandaloneBadge]]" top-standalone-badge="[[data.bottomStandaloneBadge]]"></ytd-badge-supported-renderer><yt-formatted-string id="view-more" hidden="[[!data.viewPlaylistText]]" link-inherit-color="" text="[[data.viewPlaylistText]]" class="style-scope ytd-rich-grid-media"></yt-formatted-string><div id="buttons" class="style-scope ytd-rich-grid-media"></div></div><div id="menu" class="style-scope ytd-rich-grid-media"></div><div id="immediate-load-menu" class="style-scope ytd-rich-grid-media"></div></div><div id="attached-survey" class="style-scope ytd-rich-grid-media"></div></div><div id="dismissed" light$="[[showLightVideoMetadata]]" dark$="[[showDarkVideoMetadata]]" class="style-scope ytd-rich-grid-media"><div id="dismissed-content" class="style-scope ytd-rich-grid-media"></div></div><yt-interaction id="interaction" class="extended style-scope ytd-rich-grid-media" hidden="[[!showYtInteraction]]"></yt-interaction>');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return IKB=F},{mode:_.E6("kevlar_poly_si_batch_j072")?1:2});var kbT;var zZ=function(){var F=_.n.apply(this,arguments)||this;F.removeMaxWidth=!0;F.insetMetadata=!1;return F};
_.k(zZ,_.n);_.N=zZ.prototype;_.N.configureRendererStamper=function(){return{innerMenu:g1,outerMenu:Object.assign({},g1,{id:"menu-outer"}),dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.N.onDataChanged=function(){var F,W=((F=this.data)==null?void 0:F.trackingParams)||"";W&&(this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(W));var E;((E=this.dismissActionToReplayEntity)==null?0:E.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command);this.updateInlinePreviewHoverListeners()};
_.N.attached=function(){this.updateInlinePreviewHoverListeners()};
_.N.detached=function(){this.clearInlinePreviewHoverListeners()};
_.N.updateInlinePreviewHoverListeners=function(){if(this.isShort||this.isSlimShort)this.clearInlinePreviewHoverListeners(),this.JSC$13876_inlinePreviewHoverListener=FY({mediaRenderer:this,lockupElement:this.JSC$13876_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:ULW})};
_.N.clearInlinePreviewHoverListeners=function(){var F;(F=this.JSC$13876_inlinePreviewHoverListener)==null||Qg(F)};
_.N.onRendererTap=function(){var F,W,E=(F=this.data)==null?void 0:(W=F.serviceEndpoints)==null?void 0:W[0];_.D(E,_.yT)&&this.componentBehavior.resolveCommand(E)};
_.N.onDetailsClick=function(F){var W,E=(W=this.data)==null?void 0:W.navigationEndpoint;E&&(_.Sc(_.TB(F),this.hostElement,["A","BUTTON"])||this.componentBehavior.resolveCommand(E))};
_.N.onShow=function(){var F=this.data;F.onFirstVisibleCommand&&(this.componentBehavior.resolveCommand(F.onFirstVisibleCommand),delete F.onFirstVisibleCommand)};
_.Sn.Object.defineProperties(zZ.prototype,{thumbnailObjectFit:{configurable:!0,enumerable:!0,get:function(){return this.insetMetadata?"COVER":void 0}},
innerMenu:{configurable:!0,enumerable:!0,get:function(){var F;return this.insetMetadata?void 0:(F=this.data)==null?void 0:F.menu}},
outerMenu:{configurable:!0,enumerable:!0,get:function(){var F;return this.insetMetadata?(F=this.data)==null?void 0:F.menu:void 0}},
shortsBadges:{configurable:!0,enumerable:!0,get:function(){var F=this.data;if(F!=null&&F.badge&&(F=_.D(F.badge,Swp))){var W,E,h;return[{metadataBadgeRenderer:{label:((W=F.label)==null?void 0:(E=W.runs)==null?void 0:E[0].text)||((h=F.label)==null?void 0:h.simpleText),style:"BADGE_STYLE_TYPE_SHORTS_PLAYER"}}]}}},
isShort:{configurable:!0,enumerable:!0,get:function(){var F;return((F=this.data)==null?void 0:F.videoType)==="REEL_VIDEO_TYPE_VIDEO"}},
isSlimShort:{configurable:!0,enumerable:!0,get:function(){var F;return((F=this.data)==null?void 0:F.style)==="REEL_ITEM_STYLE_SHORTS_SLIM"}},
computedTitle:{configurable:!0,enumerable:!0,get:function(){if(this.isShort){var F=this.data;return Object.assign({},F.headline,{accessibility:F.accessibility})}return this.data.title}},
computedAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var F,W,E;return this.isSlimShort?(F=this.computedTitle)==null?void 0:(W=F.accessibility)==null?void 0:(E=W.accessibilityData)==null?void 0:E.label:void 0}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var F;return!((F=this.JSC$13876_inlinePreviewHoverListener)==null?0:ZC(F))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
zZ.prototype.onDataChanged=zZ.prototype.onDataChanged;_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],zZ.prototype,"componentBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],zZ.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.rt),_.Y("design:type",Object)],zZ.prototype,"ytdLockupBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],zZ.prototype,"ytRendererstamperBehavior",void 0);
_.T([_.J(_.O9),_.Y("design:type",Object)],zZ.prototype,"ytdDismissibleItemBehavior",void 0);_.T([_.J(_.am),_.Y("design:type",Object)],zZ.prototype,"ytdReduxBehavior",void 0);_.T([_.gQ("ytd-thumbnail"),_.Y("design:type",HTMLElement)],zZ.prototype,"thumbnail",void 0);_.T([_.gQ("#dismissible"),_.Y("design:type",HTMLElement)],zZ.prototype,"JSC$13876_dismissibleMedia",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],zZ.prototype,"removeMaxWidth",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],zZ.prototype,"insetMetadata",void 0);_.T([_.O(),_.Y("design:type",String)],zZ.prototype,"dismissedContentId",void 0);_.T([_.O({selectorArgs:["dismissedContentId"],selector:bJo}),_.Y("design:type",Object)],zZ.prototype,"dismissActionToReplayEntity",void 0);_.T([_.a("insetMetadata"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],zZ.prototype,"thumbnailObjectFit",null);
_.T([_.a("data","insetMetadata"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],zZ.prototype,"innerMenu",null);_.T([_.a("data","insetMetadata"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],zZ.prototype,"outerMenu",null);_.T([_.O(),_.Y("design:type",Object)],zZ.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0,selector:_.XD}),_.Y("design:type",Boolean)],zZ.prototype,"miniMode",void 0);
_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],zZ.prototype,"onDataChanged",null);_.T([_.a("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],zZ.prototype,"shortsBadges",null);_.T([_.a("data"),_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],zZ.prototype,"isShort",null);
_.T([_.a("data"),_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],zZ.prototype,"isSlimShort",null);_.T([_.a("data","isShort"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],zZ.prototype,"computedTitle",null);_.T([_.a("isSlimShort","computedTitle"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],zZ.prototype,"computedAccessibilityLabel",null);
_.T([_.a("lockupIsHovered"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],zZ.prototype,"isHovered",null);zZ=_.T([_.y({is:"ytd-rich-grid-slim-media",disableElementRegistration:!0})],zZ);
_.r(zZ,"ytd-rich-grid-slim-media",function(){if(kbT!==void 0)return kbT;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-grid-slim-media--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" on-click="onRendererTap" class="style-scope ytd-rich-grid-slim-media">\n  <ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" no-rounded-corners="[[isSlimShort]]" object-fit="[[thumbnailObjectFit]]" rich-grid-thumbnail="" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="9999" class="style-scope ytd-rich-grid-slim-media">\n  </ytd-thumbnail>\n  <div id="details" on-click="onDetailsClick" role="heading" aria-label$="[[computedAccessibilityLabel]]" class="style-scope ytd-rich-grid-slim-media">\n    <h3 class="style-scope ytd-rich-grid-slim-media">\n      <a class="yt-simple-endpoint focus-on-expand style-scope ytd-rich-grid-slim-media" href$="[[computeHref_(data.navigationEndpoint)]]" title$="[[getSimpleString(computedTitle)]]" aria-label$="[[computedTitle.accessibility.accessibilityData.label]]" data="[[data.navigationEndpoint]]">\n        <ytd-badge-supported-renderer hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-rich-grid-slim-media">\n        </ytd-badge-supported-renderer>\n        <span id="video-title" class="style-scope ytd-rich-grid-slim-media">[[getSimpleString(computedTitle)]]</span>\n      </a>\n    </h3>\n    <span id="metadata" hidden="[[!data.metadata]]" class="style-scope ytd-rich-grid-slim-media"> [[getSimpleString(data.metadata)]] </span>\n    <ytd-video-meta-block class="grid style-scope ytd-rich-grid-slim-media" data="[[data]]" is-slim-short="[[isSlimShort]]" rich-meta="">\n    </ytd-video-meta-block>\n    <div id="menu" class="style-scope ytd-rich-grid-slim-media"></div>\n  </div>\n  <div id="menu-outer" class="style-scope ytd-rich-grid-slim-media"></div>\n  \n  <template is="dom-if" if="[[!isShort]]" class="style-scope ytd-rich-grid-slim-media">\n    <ytd-badge-supported-renderer class="video-badge style-scope ytd-rich-grid-slim-media" badges="[[data.badges]]" hidden="[[!data.badges]]">\n    </ytd-badge-supported-renderer>\n  </template>\n  <template is="dom-if" if="[[isShort]]" class="style-scope ytd-rich-grid-slim-media">\n    <ytd-badge-supported-renderer class="video-badge style-scope ytd-rich-grid-slim-media" badges="[[shortsBadges]]" hidden="[[!shortsBadges]]">\n    </ytd-badge-supported-renderer>\n  </template>\n</div>\n<div id="dismissed" class="style-scope ytd-rich-grid-slim-media">\n  <div id="dismissed-content" class="style-scope ytd-rich-grid-slim-media"></div>\n</div>\n<yt-interaction id="interaction" class="extended style-scope ytd-rich-grid-slim-media"></yt-interaction>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return kbT=F},{mode:_.E6("kevlar_poly_si_batch_j063")?1:2});var AoT;var sB_;var tI=function(){var F=_.n.apply(this,arguments)||this;F.darkerDarkTheme=_.c("web_darker_dark_theme");return F};
_.k(tI,_.n);tI.prototype.computeIcon=function(F){return F&&F.iconType?"yt-sys-icons:"+F.iconType.toLowerCase():""};
tI.prototype.onMouseEnter=function(){this.isHovered=!0};
tI.prototype.onMouseLeave=function(){this.isHovered=!1};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],tI.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],tI.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],tI.prototype,"ytComponentBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],tI.prototype,"data",void 0);_.T([_.O({value:!1}),_.Y("design:type",Boolean)],tI.prototype,"isHovered",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],tI.prototype,"darkerDarkTheme",void 0);tI=_.T([_.y({is:"ytd-expand-on-hover-card-renderer",disableElementRegistration:!0})],tI);
_.r(tI,"ytd-expand-on-hover-card-renderer",function(){if(sB_!==void 0)return sB_;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expand-on-hover-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="card" class="style-scope ytd-expand-on-hover-card-renderer"><div class="content style-scope ytd-expand-on-hover-card-renderer"><div class="icon-line style-scope ytd-expand-on-hover-card-renderer"><yt-icon class="icon style-scope ytd-expand-on-hover-card-renderer" hidden="[[!data.icon]]" icon="[[computeIcon(data.icon)]]"></yt-icon><yt-icon class="info style-scope ytd-expand-on-hover-card-renderer" icon="info_outline" on-mouseenter="onMouseEnter"></yt-icon></div><yt-formatted-string class="title style-scope ytd-expand-on-hover-card-renderer" hidden="[[!data.title]]" text="[[data.title]]"></yt-formatted-string><yt-formatted-string class="subtitle style-scope ytd-expand-on-hover-card-renderer" hidden="[[!data.subtitle]]" text="[[data.subtitle]]"></yt-formatted-string></div></div><div id="overlay" hidden="[[!isHovered]]" on-mouseleave="onMouseLeave" class="style-scope ytd-expand-on-hover-card-renderer"><div class="content style-scope ytd-expand-on-hover-card-renderer"><div class="icon-line style-scope ytd-expand-on-hover-card-renderer"><yt-icon class="icon style-scope ytd-expand-on-hover-card-renderer" hidden="[[!data.icon]]" icon="[[computeIcon(data.icon)]]"></yt-icon><yt-icon class="info style-scope ytd-expand-on-hover-card-renderer" icon="info_outline"></yt-icon></div><yt-formatted-string class="title style-scope ytd-expand-on-hover-card-renderer" hidden="[[!data.title]]" text="[[data.title]]"></yt-formatted-string><yt-formatted-string class="subtitle style-scope ytd-expand-on-hover-card-renderer" hidden="[[!data.subtitle]]" text="[[data.subtitle]]"></yt-formatted-string><yt-formatted-string class="details style-scope ytd-expand-on-hover-card-renderer" hidden="[[!data.details]]" text="[[data.details]]"></yt-formatted-string></div></div>');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return sB_=F},{mode:1});var Lu_,q3O=function(){if(Lu_!==void 0)return Lu_;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="channel-user-state" hidden="[[!data.channelUserStateDescription]]" text="[[data.channelUserStateDescription]]" class="style-scope ytd-channel-renderer"></yt-formatted-string><div id="content-section" class="style-scope ytd-channel-renderer"><div id="avatar-section" class="style-scope ytd-channel-renderer"><a class="channel-link yt-simple-endpoint style-scope ytd-channel-renderer" on-tap="onTap" href$="[[computeHrefEndpoint(data.navigationEndpoint)]]" data="[[computeChannelEndpoint(data.navigationEndpoint)]]"><div id="avatar" class="style-scope ytd-channel-renderer"><yt-img-shadow height="[[computeIconSize(compactStyle)]]" thumbnail="[[data.thumbnail]]" width="[[computeIconSize(compactStyle)]]" class="style-scope ytd-channel-renderer"></yt-img-shadow></div></a></div><div id="info-section" class="style-scope ytd-channel-renderer"><a id="main-link" class="channel-link yt-simple-endpoint style-scope ytd-channel-renderer" on-tap="onTap" href$="[[computeHrefEndpoint(data.navigationEndpoint)]]" data="[[computeChannelEndpoint(data.navigationEndpoint)]]"><div id="info" class="style-scope ytd-channel-renderer"><ytd-channel-name id="channel-title" badges="[[data.ownerBadges]]" channel-name="[[getSimpleString(data.title)]]" compact-style="[[compactStyle]]" wrap-text="" class="style-scope ytd-channel-renderer"></ytd-channel-name><div id="metadata" class="style-scope ytd-channel-renderer"><yt-formatted-string id="subscribers" respect-lang-dir="" text="[[data.subscriberCountText]]" class="style-scope ytd-channel-renderer"></yt-formatted-string><span id="dot" hidden="[[computeHideDot(data)]]" class="style-scope ytd-channel-renderer">\u2022</span><span id="video-count" class="style-scope ytd-channel-renderer">[[getSimpleString(data.videoCountText)]]</span></div><yt-formatted-string id="description" hidden="[[compactStyle]]" text="[[data.descriptionSnippet]]" class="style-scope ytd-channel-renderer"></yt-formatted-string><ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-channel-renderer"></ytd-badge-supported-renderer></div><div id="navigation-icon" hidden="[[!data.navigationIcon.iconType]]" class="style-scope ytd-channel-renderer"><yt-icon disable-upgrade$="[[!data.navigationIcon.iconType]]" icon="[[data.navigationIcon.iconType]]" class="style-scope ytd-channel-renderer"></yt-icon></div></a><div id="buttons" class="style-scope ytd-channel-renderer"><div id="purchase-button" hidden="[[!data.purchaseButton]]" class="style-scope ytd-channel-renderer"></div><div id="subscribe-button" hidden="[[!data.subscribeButton]]" class="style-scope ytd-channel-renderer"></div></div><div id="channel-memberships-button" hidden="[[!data.channelMembershipsButton]]" class="style-scope ytd-channel-renderer"></div></div></div>');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return Lu_=F};_.Hr("itemSectionRenderer","channelRenderer","ytd-channel-renderer");var Cs=function(){var F=_.n.apply(this,arguments)||this;F.compactStyle=!1;F.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return F};
_.k(Cs,_.n);_.N=Cs.prototype;_.N.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.N.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer",subscriptionNotificationToggleButtonRenderer:"ytd-subscription-notification-toggle-button-renderer"}},"data.purchaseButton":{id:"purchase-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.channelMembershipsButton":{id:"channel-memberships-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.N.computeHideDot=function(F){return!(F&&F.subscriberCountText&&F.videoCountText)||this.compactStyle};
_.N.hasDualButtons=function(F){return F&&F.purchaseButton&&F.subscribeButton};
_.N.backgroundColorChanged=function(){if(this.data!==void 0){var F=this.data.backgroundColor;this.isDarkTheme&&(F=this.data.backgroundColorDarkTheme);this.hostElement.style.backgroundColor=F!=null?_.ZP(F):"transparent"}};
_.N.onDarkModeToggledAction=function(F){this.isDarkTheme=F};
_.N.onTap=function(F){var W,E,h=((W=this.data)==null?void 0:W.navigationEndpoint)||((E=this.data)==null?void 0:E.serviceEndpoint);_.D(h,_.g9)&&(h&&_.WZ().resolve(_.EJ).resolveCommand(h,{form:{element:this.hostElement}}),F.preventDefault())};
_.N.computeChannelEndpoint=function(F){return _.D(F,_.g9)?null:F};
_.N.computeHrefEndpoint=function(F){return _.D(F,_.g9)?null:this.componentBehavior.computeHref_(F)};
_.N.computeChannelRendererStyle=function(F){return F};
_.N.computeIconSize=function(F){return F?108:136};
_.Sn.Object.defineProperties(Cs,{template:{configurable:!0,enumerable:!0,get:function(){return q3O()}}});
Cs.prototype.backgroundColorChanged=Cs.prototype.backgroundColorChanged;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Cs.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],Cs.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.Gf),_.Y("design:type",Object)],Cs.prototype,"ytdOpenPopupBehavior",void 0);_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],Cs.prototype,"componentBehavior",void 0);
_.T([_.O(),_.Y("design:type",Object)],Cs.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Boolean)],Cs.prototype,"isDarkTheme",void 0);_.T([_.O({computed:"computeChannelRendererStyle(data.channelRendererStyle)",reflectToAttribute:!0}),_.Y("design:type",String)],Cs.prototype,"channelRendererStyle",void 0);_.T([_.O({computed:"hasDualButtons(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],Cs.prototype,"dualButtons",void 0);_.T([_.O({reflectToAttribute:!0,value:function(){return _.c("enable_desktop_search_bigger_thumbs")}}),
_.Y("design:type",Boolean)],Cs.prototype,"useBiggerThumbs",void 0);_.T([_.O({reflectToAttribute:!0,value:function(){return _.N0("desktop_search_bigger_thumbs_style")}}),
_.Y("design:type",String)],Cs.prototype,"biggerThumbStyle",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],Cs.prototype,"compactStyle",void 0);_.T([_.ea("data","isDarkTheme"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Cs.prototype,"backgroundColorChanged",null);Cs=_.T([_.y({is:"ytd-channel-renderer",disableElementRegistration:!0})],Cs);_.r(Cs,"ytd-channel-renderer",function(){return q3O()},{mode:1});var $si;var Z4_;_.Hr("itemSectionRenderer","radioRenderer","ytd-radio-renderer");var Bq=function(){var F=_.n.apply(this,arguments)||this;F.displayItemCount=2;F.collections=_.c("web_modern_collections_v2");F.hasPlaylistThumbnail=!1;F.stackThumbnailSize="large";return F};
_.k(Bq,_.n);_.N=Bq.prototype;_.N.attached=function(){this.updateInlinePreviewHoverListeners()};
_.N.detached=function(){this.clearInlinePreviewHoverListeners()};
_.N.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.N.computeFirstVideos=function(F,W){return F&&W?F.slice(0,W):[]};
_.N.computeThumbnailWidth=function(F,W){return F?W==="BIG"?500:W==="MASSIVE"?600:W==="MEDIUM"?450:420:360};
_.N.computeThumbnailHeight=function(F,W){return F?W==="BIG"?280:W==="MASSIVE"?337:234:202};
_.N.clearInlinePreviewHoverListeners=function(){var F;(F=this.JSC$13889_inlinePreviewHoverListener)==null||Qg(F)};
_.N.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13889_inlinePreviewHoverListener=FY({mediaRenderer:this,lockupElement:this.hostElement,videoPreviewOpts:CQi,thumbnailElement:this.thumbnail})};
_.N.computeHasPlaylistThumbnail=function(F){var W,E;if((((W=F.thumbnailRenderer)==null?0:W.playlistVideoThumbnailRenderer)||((E=F.thumbnailRenderer)==null?0:E.playlistCustomThumbnailRenderer))&&F.thumbnailOverlays)for(W=0;W<F.thumbnailOverlays.length;W++)if(E=void 0,(E=F.thumbnailOverlays[W])==null?0:E.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.Sn.Object.defineProperties(Bq.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var F;return!((F=this.JSC$13889_inlinePreviewHoverListener)==null?0:ZC(F))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
Bq.prototype.dataChanged=Bq.prototype.dataChanged;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Bq.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.rt),_.Y("design:type",Object)],Bq.prototype,"ytdLockupBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],Bq.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Object)],Bq.prototype,"displayItemCount",void 0);_.T([_.O({reflectToAttribute:!0,value:function(){return _.c("enable_desktop_search_bigger_thumbs")}}),
_.Y("design:type",Boolean)],Bq.prototype,"useBiggerThumbs",void 0);_.T([_.O({reflectToAttribute:!0,value:function(){return _.N0("desktop_search_bigger_thumbs_style")}}),
_.Y("design:type",String)],Bq.prototype,"biggerThumbsStyle",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Bq.prototype,"collections",void 0);_.T([_.O({computed:"computeHasPlaylistThumbnail(data)"}),_.Y("design:type",Object)],Bq.prototype,"hasPlaylistThumbnail",void 0);_.T([_.O(),_.Y("design:type",String)],Bq.prototype,"stackThumbnailSize",void 0);_.T([_.gQ("ytd-thumbnail"),_.Y("design:type",HTMLElement)],Bq.prototype,"thumbnail",void 0);
_.T([_.Cz("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Bq.prototype,"dataChanged",null);_.T([_.a("lockupIsHovered"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Bq.prototype,"isHovered",null);Bq=_.T([_.y({is:"ytd-radio-renderer",disableElementRegistration:!0})],Bq);
_.r(Bq,"ytd-radio-renderer",function(){if(Z4_!==void 0)return Z4_;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-radio-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-thumbnail data="[[data]]" height="[[computeThumbnailHeight(useBiggerThumbs, biggerThumbsStyle)]]" hidden$="[[hasPlaylistThumbnail]]" hovered="[[isHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="[[computeThumbnailWidth(useBiggerThumbs, biggerThumbsStyle)]]" class="style-scope ytd-radio-renderer">\n</ytd-thumbnail>\n<ytd-playlist-thumbnail data="[[data]]" height="[[computeThumbnailHeight(useBiggerThumbs, biggerThumbsStyle)]]" hidden="[[!hasPlaylistThumbnail]]" hovered="[[isHovered]]" is-double-stack="true" thumbnail-size="[[stackThumbnailSize]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="[[computeThumbnailWidth(useBiggerThumbs, biggerThumbsStyle)]]" class="style-scope ytd-radio-renderer">\n</ytd-playlist-thumbnail>\n<div id="content" class="style-scope ytd-radio-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-radio-renderer" href="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <h3 class="style-scope ytd-radio-renderer">\n      <ytd-badge-supported-renderer hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-radio-renderer">\n      </ytd-badge-supported-renderer>\n      <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-radio-renderer">\n        [[getSimpleString(data.title)]]\n      </span>\n    </h3>\n    <ytd-video-meta-block id="meta" data="[[data]]" radio-meta="" class="style-scope ytd-radio-renderer"></ytd-video-meta-block>\n  </a>\n  <ul id="list" class="style-scope ytd-radio-renderer">\n    <template is="dom-repeat" items="[[computeFirstVideos(data.videos, displayItemCount)]]" as="video" class="style-scope ytd-radio-renderer">\n      <li class="style-scope ytd-radio-renderer">\n        <ytd-child-video-renderer data="[[video.childVideoRenderer]]" class="style-scope ytd-radio-renderer">\n        </ytd-child-video-renderer>\n      </li>\n    </template>\n  </ul>\n</div>\n<yt-interaction id="interaction" class="extended style-scope ytd-radio-renderer"></yt-interaction>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return Z4_=F},{mode:_.E6("kevlar_poly_si_batch_j058")?1:2});var Xni;_.Hr("itemSectionRenderer","showRenderer","ytd-show-renderer");var vq=function(){return _.n.apply(this,arguments)||this};
_.k(vq,_.n);vq.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
vq.prototype.computeThumbnailWidth=function(F){return F?360:246};
vq.prototype.computeUseProminentThumbs=function(F){return F};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],vq.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],vq.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],vq.prototype,"data",void 0);_.T([_.O({value:!1}),_.Y("design:type",Boolean)],vq.prototype,"isSearch",void 0);
_.T([_.O({reflectToAttribute:!0,computed:"computeUseProminentThumbs(isSearch)"}),_.Y("design:type",Boolean)],vq.prototype,"useProminentThumbs",void 0);vq=_.T([_.y({is:"ytd-show-renderer",disableElementRegistration:!0})],vq);
_.r(vq,"ytd-show-renderer",function(){if(Xni!==void 0)return Xni;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-show-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-playlist-thumbnail data="[[data]]" width="[[computeThumbnailWidth(useProminentThumbs)]]" class="style-scope ytd-show-renderer">\n</ytd-playlist-thumbnail>\n<div id="content" class="style-scope ytd-show-renderer">\n<a id="logo-container" class="yt-simple-endpoint style-scope ytd-show-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <h3 class="style-scope ytd-show-renderer">\n      <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-show-renderer">\n      </ytd-badge-supported-renderer>\n      <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-show-renderer">\n        [[getSimpleString(data.title)]]\n      </span>\n    </h3>\n    <ytd-video-meta-block data="[[data]]" class="style-scope ytd-show-renderer"></ytd-video-meta-block>\n  </a>\n  <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" class="style-scope ytd-show-renderer">\n  </ytd-badge-supported-renderer>\n  <ytd-badge-supported-renderer id="bottom-standalone-badge" bottom-standalone-badge="[[data.bottomStandaloneBadge]]" hidden="[[!data.bottomStandaloneBadge]]" class="style-scope ytd-show-renderer">\n  </ytd-badge-supported-renderer>\n</div>\n<div id="menu" class="style-scope ytd-show-renderer"></div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return Xni=F},{mode:1});_.Hr("itemSectionRenderer","feedEntryRenderer","ytd-feed-entry-renderer");var IR=function(){var F=_.n.apply(this,arguments)||this;F.isRichGrid=!1;return F};
_.k(IR,_.n);IR.prototype.configureRendererStamper=function(){return{"data.item":{id:"contents",mapping:{channelRenderer:"ytd-channel-renderer",playlistRenderer:"ytd-playlist-renderer",radioRenderer:"ytd-radio-renderer",showRenderer:"ytd-show-renderer",videoRenderer:{matcher:function(){return this.isRichGrid?"ytd-rich-grid-media":"ytd-video-renderer"}}}}}};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],IR.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],IR.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],IR.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],IR.prototype,"isRichGrid",void 0);IR=_.T([_.y({is:"ytd-feed-entry-renderer",disableElementRegistration:!0})],IR);
_.r(IR,"ytd-feed-entry-renderer",function(){if($si!==void 0)return $si;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feed-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow hidden="[[isRichGrid]]" thumbnail="[[data.ownerThumbnail]]" width="48" class="style-scope ytd-feed-entry-renderer"></yt-img-shadow>\n<div class="info style-scope ytd-feed-entry-renderer">\n  <div id="title-container" hidden="[[isRichGrid]]" class="style-scope ytd-feed-entry-renderer">\n    <yt-formatted-string id="title" link-inherit-color="" text="[[data.title]]" class="style-scope ytd-feed-entry-renderer"></yt-formatted-string>\n  </div>\n  <yt-formatted-string id="post" text="[[data.postText]]" class="style-scope ytd-feed-entry-renderer"></yt-formatted-string>\n  <div id="contents" class="style-scope ytd-feed-entry-renderer"></div>\n</div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return $si=F},{mode:1});var H4T;var cq=function(){return _.n.apply(this,arguments)||this};
_.k(cq,_.n);cq.prototype.showChevronIcon=function(){return this.itemsPerRow>1};
_.T([_.J(_.am),_.Y("design:type",Object)],cq.prototype,"ytdReduxBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],cq.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],cq.prototype,"ytComponentBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],cq.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0,selector:_.Hz,value:3}),_.Y("design:type",Number)],cq.prototype,"itemsPerRow",void 0);
cq=_.T([_.y({is:"ytd-link-card-renderer",disableElementRegistration:!0})],cq);
_.r(cq,"ytd-link-card-renderer",function(){if(H4T!==void 0)return H4T;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-link-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-link-card-renderer">\n  <a id="card-link" class="yt-simple-endpoint style-scope ytd-link-card-renderer" href$="[[computeHref_(data.command)]]" data="[[data.command]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]">\n    <yt-img-shadow id="thumbnail" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-link-card-renderer">\n    </yt-img-shadow>\n    <div id="text-container" class="style-scope ytd-link-card-renderer">\n      <yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope ytd-link-card-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-link-card-renderer">\n      </yt-formatted-string>\n    </div>\n    <yt-icon id="chevron" hidden="[[!showChevronIcon(itemsPerRow)]]" icon="chevron_right" class="style-scope ytd-link-card-renderer">\n    </yt-icon>\n  </a>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return H4T=F},{mode:1});var Pqp;var DO=function(){return _.n.apply(this,arguments)||this};
_.k(DO,_.n);_.N=DO.prototype;_.N.configureRendererStamper=function(){return{"data.menu":g1,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.N.onRendererTap=function(F){if(!this.ytdDismissibleItemBehavior.isDismissed){var W,E=(W=this.data)==null?void 0:W.navigationEndpoint;E&&!_.Sc(_.TB(F),this.hostElement,["BUTTON"])&&(this.isNavigationCommand(E)?_.Sc(_.TB(F),this.hostElement,["A"])||_.hF(this.hostElement,"yt-navigate",{endpoint:E}):this.ytComponentBehavior.resolveCommand(E,{}))}};
_.N.maybeComputeHref=function(F){return this.ytComponentBehavior.computeHref_(F,!0)};
_.N.getNavigationCommand=function(F){return this.isNavigationCommand(F)?F:null};
_.N.isNavigationCommand=function(F){return F?_.D(F,_.BB)||_.D(F,_.GM)||_.D(F,_.T5)?!0:!1:!1};
DO.prototype.onRendererTap=DO.prototype.onRendererTap;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],DO.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],DO.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.O9),_.Y("design:type",Object)],DO.prototype,"ytdDismissibleItemBehavior",void 0);_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],DO.prototype,"ytComponentBehavior",void 0);
_.T([_.O(),_.Y("design:type",Object)],DO.prototype,"data",void 0);_.T([_.R4("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],DO.prototype,"onRendererTap",null);DO=_.T([_.y({is:"ytd-lumiere-promo-item-image-renderer",disableElementRegistration:!0})],DO);
_.r(DO,"ytd-lumiere-promo-item-image-renderer",function(){if(Pqp!==void 0)return Pqp;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-lumiere-promo-item-image-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-lumiere-promo-item-image-renderer"><a id="thumbnail-link" class="yt-simple-endpoint style-scope ytd-lumiere-promo-item-image-renderer" href$="[[maybeComputeHref(data.navigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" data="[[getNavigationCommand(data.navigationEndpoint)]]" rel="[[computeNofollow_(data.navigationEndpoint)]]"><yt-img-shadow thumbnail="[[data.thumbnail]]" class="style-scope ytd-lumiere-promo-item-image-renderer"></yt-img-shadow></a><div id="metadata" class="style-scope ytd-lumiere-promo-item-image-renderer"><div id="item-details" class="style-scope ytd-lumiere-promo-item-image-renderer"><div id="title" class="style-scope ytd-lumiere-promo-item-image-renderer"><h3 class="style-scope ytd-lumiere-promo-item-image-renderer"><a id="title-link" class="yt-simple-endpoint style-scope ytd-lumiere-promo-item-image-renderer" href$="[[maybeComputeHref(data.navigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" data="[[getNavigationCommand(data.navigationEndpoint)]]" rel="[[computeNofollow_(data.navigationEndpoint)]]"><yt-formatted-string id="item-title" text="[[data.title]]" class="style-scope ytd-lumiere-promo-item-image-renderer"></yt-formatted-string><yt-icon class="hover-icon style-scope ytd-lumiere-promo-item-image-renderer" hidden="[[!data.showLauncherIcon]]" icon="open_in_new"></yt-icon></a></h3></div><yt-formatted-string id="item-subtitle" text="[[data.subtitle]]" class="style-scope ytd-lumiere-promo-item-image-renderer"></yt-formatted-string></div><div id="menu" class="style-scope ytd-lumiere-promo-item-image-renderer"></div></div></div><div id="dismissed" class="style-scope ytd-lumiere-promo-item-image-renderer"><div id="dismissed-content" class="style-scope ytd-lumiere-promo-item-image-renderer"></div></div>');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return Pqp=F},{mode:1});var Jo_;var xS=function(){return _.n.apply(this,arguments)||this};
_.k(xS,_.n);xS.prototype.computeLandscapeThumbnail=function(){var F;return((F=this.data)==null?void 0:F.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_16_9"};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],xS.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.am),_.Y("design:type",Object)],xS.prototype,"ytdReduxBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],xS.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0,selector:_.XD}),_.Y("design:type",Boolean)],xS.prototype,"miniMode",void 0);_.T([_.O({reflectToAttribute:!0,selector:_.Hz}),_.Y("design:type",Number)],xS.prototype,"itemsPerRow",void 0);
_.T([_.O({reflectToAttribute:!0,computed:"computeLandscapeThumbnail(data)"}),_.Y("design:type",Boolean)],xS.prototype,"landscapeThumbnail",void 0);xS=_.T([_.y({is:"ytd-lumiere-shelf-details-renderer",disableElementRegistration:!0})],xS);
_.r(xS,"ytd-lumiere-shelf-details-renderer",function(){if(Jo_!==void 0)return Jo_;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-lumiere-shelf-details-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="style-scope ytd-lumiere-shelf-details-renderer">\n  <div id="lumiere-shelf-details" class="style-scope ytd-lumiere-shelf-details-renderer">\n    <div id="title" class="style-scope ytd-lumiere-shelf-details-renderer">\n       <yt-formatted-string id="item-title" text="[[data.title]]" class="style-scope ytd-lumiere-shelf-details-renderer"></yt-formatted-string>\n    </div>\n    <div id="subtitle" class="style-scope ytd-lumiere-shelf-details-renderer">\n      <yt-formatted-string id="item-subtitle" text="[[data.subtitle]]" class="style-scope ytd-lumiere-shelf-details-renderer">\n      </yt-formatted-string>\n    </div>\n    <ytd-badge-supported-renderer id="badge" hidden="[[!data.badge]]" top-standalone-badge="[[data.badge]]" class="style-scope ytd-lumiere-shelf-details-renderer">\n    </ytd-badge-supported-renderer>\n  </div>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return Jo_=F},{mode:_.E6("kevlar_poly_si_batch_j076")?1:2});var aKH;var kS=function(){return _.n.apply(this,arguments)||this};
_.k(kS,_.n);kS.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],kS.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],kS.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],kS.prototype,"data",void 0);kS=_.T([_.y({is:"ytd-primetime-promo-details-renderer",disableElementRegistration:!0})],kS);
_.r(kS,"ytd-primetime-promo-details-renderer",function(){if(aKH!==void 0)return aKH;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-primetime-promo-details-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" hidden="[[!data.headline]]" class="style-scope ytd-primetime-promo-details-renderer"><div id="centered-container" class="style-scope ytd-primetime-promo-details-renderer"><yt-formatted-string id="headline" text="[[data.headline]]" class="style-scope ytd-primetime-promo-details-renderer"></yt-formatted-string><ytd-badge-supported-renderer top-standalone-badge="[[data.priceText]]" class="style-scope ytd-primetime-promo-details-renderer"></ytd-badge-supported-renderer><yt-formatted-string id="detail-text" text="[[data.detailText]]" class="style-scope ytd-primetime-promo-details-renderer"></yt-formatted-string><div id="action-button" class="style-scope ytd-primetime-promo-details-renderer"></div></div></div><div id="header" hidden="[[data.headline]]" class="style-scope ytd-primetime-promo-details-renderer"><ytd-badge-supported-renderer top-standalone-badge="[[data.priceText]]" class="style-scope ytd-primetime-promo-details-renderer"></ytd-badge-supported-renderer><yt-formatted-string id="detail-text" text="[[data.detailText]]" class="style-scope ytd-primetime-promo-details-renderer"></yt-formatted-string></div>');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return aKH=F},{mode:1});var fKU;var AI=function(){return _.n.apply(this,arguments)||this};
_.k(AI,_.n);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],AI.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],AI.prototype,"data",void 0);AI=_.T([_.y({is:"ytd-panel-show-style-metadata-renderer",disableElementRegistration:!0})],AI);
_.r(AI,"ytd-panel-show-style-metadata-renderer",function(){if(fKU!==void 0)return fKU;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-panel-show-style-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.text]]" class="style-scope ytd-panel-show-style-metadata-renderer"></yt-formatted-string>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return fKU=F},{mode:1});var O4i;var sv=function(){return _.n.apply(this,arguments)||this};
_.k(sv,_.n);_.N=sv.prototype;_.N.onPanelTap=function(){if(this.data&&this.data.command&&!this.isNavigationCommand(this.data.command))return this.ytComponentBehavior.resolveCommand(this.data.command,{})};
_.N.configureRendererStamper=function(){return{"data.metadata":{id:"panel-metadata",mapping:{panelShowStyleMetadataRenderer:{component:"ytd-panel-show-style-metadata-renderer"}}}}};
_.N.computeThumbnail=function(F){if(F)return F.smallFormFactorBackgroundThumbnail||F.largeFormFactorBackgroundThumbnail};
_.N.maybeComputeHref=function(F){return this.ytComponentBehavior.computeHref_(F,!0)};
_.N.isNavigationCommand=function(F){return F?_.D(F,_.BB)||_.D(F,_.GM)||_.D(F,_.T5)?!0:!1:!1};
_.N.getNavigationCommand=function(F){return this.isNavigationCommand(F)?F:null};
sv.prototype.onPanelTap=sv.prototype.onPanelTap;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],sv.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],sv.prototype,"ytComponentBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],sv.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],sv.prototype,"data",void 0);
_.T([_.O({reflectToAttribute:!0,value:!0}),_.Y("design:type",Boolean)],sv.prototype,"roundedContainer",void 0);_.T([_.O({reflectToAttribute:!0,value:_.c("web_modern_buttons")}),_.Y("design:type",Boolean)],sv.prototype,"modernButtons",void 0);_.T([_.R4("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],sv.prototype,"onPanelTap",null);sv=_.T([_.y({is:"ytd-primetime-promo-panel-renderer",disableElementRegistration:!0})],sv);
_.r(sv,"ytd-primetime-promo-panel-renderer",function(){if(O4i!==void 0)return O4i;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-primetime-promo-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="thumbnail" class="yt-simple-endpoint style-scope ytd-primetime-promo-panel-renderer" href$="[[maybeComputeHref(data.command)]]" data="[[getNavigationCommand(data.command)]]" rel="[[computeNofollow_(data.command)]]"><yt-img-shadow thumbnail="[[computeThumbnail(data)]]" width="420" class="style-scope ytd-primetime-promo-panel-renderer"></yt-img-shadow><div id="action-button" class="style-scope ytd-primetime-promo-panel-renderer"><yt-formatted-string text="[[data.buttonText]]" class="style-scope ytd-primetime-promo-panel-renderer"></yt-formatted-string><yt-icon icon="[[data.contentIcon.iconType]]" class="style-scope ytd-primetime-promo-panel-renderer"></yt-icon></div></a><div id="panel-metadata" class="style-scope ytd-primetime-promo-panel-renderer"></div>');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return O4i=F},{mode:1});_.pK(_.GK(function(F){F=_.o4(F,{data:{},useFullWidth:!1});var W=F.data,E=F.useFullWidth,h=function(){return W().caption},d=function(){return W().image},V=function(){return _.He(W().onTap)};
F={};F=_.ec("ytTeaserCardViewModelHost",(F.ytTeaserCardViewModelUseFullWidth=function(){return E()},F));
return _.z("teaser-card-view-model",{class:F},_.z(_.v,{cond:function(){return V()},
then:function(){return _.z(KS_,{className:"ytTeaserCardViewModelLink",command:V,forceNewState:!0,useATagConfig:!0},_.z("div",{class:"ytTeaserCardViewModelImageContainer"},_.z(_.v,{cond:d,then:function(R){return _.z(_.T4,{data:R,className:"ytTeaserCardViewModelImage",alt:""})}})),_.z("p",{class:"ytTeaserCardViewModelCaption"},h))}}))},"Ab"),"teaser-card-view-model",{props:{data:_.TS,
useFullWidth:_.TS}});var b4T=new _.NG("RICH_GRID_VIDEO_RENDERER_TOKEN");_.pK(_.GK(function(F){var W=F.data;var E=F.showYtInteractionInContent;var h=function(){return!!W().selectableFeedback};
F=_.U(_.g$(!1,void 0,"nblDw"));var d=F.next().value,V=F.next().value;_.Xk(function(){var I=_.D(W().primaryButton,_.O8);(I==null?0:I.isToggled)&&V(I.isToggled)});
F=_.tb(function(I){if(!h())return!1;if(d()){var x;var A=(x=W().selectableFeedback)==null?void 0:x.onDeselect}else{var X;A=(X=W().selectableFeedback)==null?void 0:X.onSelect}A&&_.fK(A,{form:{element:I.target}});V(!d());if(I=_.D(W().primaryButton,_.O8))I.isToggled=d();return!1});
var R=function(){if(!h()){var I,x=(I=W().loggingDirectives)==null?void 0:I.trackingParams;x&&_.Bt(_.WZ().resolve(_.cU),x)}},M=_.ZAe(),g=function(){var I;
return h()?(I=W().selectableFeedback)==null?void 0:I.a11yLabel:void 0},t=function(){return h()?{toggled:d()}:{}},C=_.WZ().resolve(_.Fd(b4T)),B={};
return _.z("yt-feedback-item-renderer",{class:_.ec("ytFeedbackItemRendererHost",(B.ytFeedbackItemRendererSelectableFeedback=h,B)),"on:click":F,"on:keydown":M,title:g,"aria-label":g,"aria-pressed":function(){return h()?d():void 0},
tabindex:function(){return h()?0:void 0},
role:function(){return h()?"button":void 0}},_.z("div",{class:"ytFeedbackItemRendererContentContainer"},_.z(_.a6,{data:function(){return W().content}},{videoRenderer:function(I){return _.z(C,{data:I.data,
showYtInteraction:E})},
lockupViewModel:function(I){return _.z(_.EN,{data:I.data,containerType:2})}})),_.z("div",{class:"ytFeedbackItemRendererButtonsContainer"},_.z(_.a6,{data:function(){return W().primaryButton}},{toggleButtonViewModel:function(I){return _.z(_.bJ,{data:I.data,
buttonShapeOverrides:t,disableExplicitClickLogging:!0,onToggle:R})}})))},"Bb"),"yt-feedback-item-renderer",{props:{data:_.TS,
showYtInteractionInContent:_.TS}});var Ls=function(){var F=_.n.apply(this,arguments)||this;F.isShortsGrid=!1;F.isCompactGrid=!1;F.isShortsPanelGrid=!1;F.renderedFromRichGrid=!1;F.isInFirstColumn=!1;F.noGutterMargins=!1;F.isInlineGroupItem=!1;F.insetMetadata=!1;F.noBottomMarginInAds=_.c("web_no_bottom_margin_for_home_ad_buttons");F.force16By9ThumbnailAspectRatio=!1;F.useCompactList=!1;F.containerType=2;F.thumbnailTargetWidth=9999;F.isResponsiveGrid=!1;F.lockupExperiments={useRichGridLegacyTypography:!0,useRichGridLegacyMargin:!0};F.actionMap=
{"ytd-rich-item-index-update-action":"onIndexUpdateAction"};F.hoverListener=F.hover.bind(F);F.leaveListener=F.leave.bind(F);F.highlighted=!1;F.JSC$13924_unsubscribeFromInlinePreviewIsActive=function(){};
return F};
_.k(Ls,_.n);_.N=Ls.prototype;_.N.computeContainerType=function(){return this.useCompactList?3:2};
_.N.computeThumbnailTargetWidth=function(){var F;return(F=this.itemWidth)!=null?F:9999};
_.N.updateIsInFirstColumn=function(){var F;this.isInFirstColumn=((F=this.data)==null?void 0:F.colIndex)===0};
_.N.observerContainerType=function(){if(this.lockup){var F=this.lockup;F.containerType=this.containerType;F.sizing=this.sizing;F.typographyBump=this.typographyBump;F.itemWidth=this.itemWidth}this.richGridMedia&&_.c("rich_grid_enable_dynamic_offset")&&(this.richGridMedia.typographyBump=this.richTypographyBump);this.adSlotRenderer&&_.c("rich_grid_enable_dynamic_offset")&&(this.adSlotRenderer.typographyBump=this.richTypographyBump)};
_.N.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-rich-item-renderer lockup",thumbnailFixedWidth:"50%"},properties:{force16By9ThumbnailAspectRatio:"[[force16By9ThumbnailAspectRatio]]",containerType:"[[containerType]]",sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",thumbnailTargetWidth:"[[thumbnailTargetWidth]]",lockupExperiments:"[[lockupExperiments]]"}},postRenderer:{component:"ytd-post-renderer",
params:{isRichGrid:!0}},sharedPostRenderer:{component:"ytd-shared-post-renderer",params:{isRichGrid:!0}},primetimePromoDetailsRenderer:"ytd-primetime-promo-details-renderer",primetimePromoPanelRenderer:"ytd-primetime-promo-panel-renderer",movieRenderer:{component:"ytd-rich-grid-slim-media"},compactMovieRenderer:{component:"ytd-rich-grid-media",properties:{typographyBump:"[[richTypographyBump]]",showYtInteraction:"[[showYtInteractionOnRichGridMedia]]"}},reelItemRenderer:{component:"ytd-rich-grid-slim-media",
properties:{insetMetadata:"[[insetMetadata]]"}},shortsLockupViewModel:{component:"ytm-shorts-lockup-view-model-v2",properties:{aspectRatio:"[[shortsLockupViewModelAspectRatio]]",inlineMetadata:"[[insetMetadata]]",scrimStyle:"[[shortsLockupViewModelScrimStyle]]",useDefaultStyle:"[[isShortsPanelGrid]]"}},feedbackItemRenderer:{component:"yt-feedback-item-renderer",properties:{showYtInteractionInContent:"[[showYtInteractionOnRichGridMedia]]"}},videoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},
properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",entitySelectorType:"[[data.entitySelectorType]]",typographyBump:"[[richTypographyBump]]"}},radioRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!0},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}},playlistRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",entitySelectorType:"[[data.entitySelectorType]]",
typographyBump:"[[richTypographyBump]]"}},gridShowRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}},promotedVideoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1,isPromotedVideo:!0},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}},feedEntryRenderer:{component:"ytd-feed-entry-renderer",params:{isRichGrid:!0}},
displayAdRenderer:{component:"ytd-display-ad-renderer"},adSlotRenderer:{component:"ytd-ad-slot-renderer",properties:{noBottomMargin:"[[noBottomMarginInAds]]",typographyBump:"[[richTypographyBump]]"}},lumiereShelfDetailsRenderer:"ytd-lumiere-shelf-details-renderer",lumierePromoItemImageRenderer:"ytd-lumiere-promo-item-image-renderer",feedNudgeRenderer:"ytd-feed-nudge-renderer",gameCardRenderer:{component:"ytd-game-card-renderer",params:{isRichGrid:!0}},miniGameCardViewModel:{component:"ytd-mini-game-card-view-model",
params:{isRichGrid:!0}},expandOnHoverCardRenderer:"ytd-expand-on-hover-card-renderer",linkCardRenderer:"ytd-link-card-renderer",gridMovieRenderer:{component:"ytd-rich-grid-slim-media"},gridChannelRenderer:{component:"ytd-grid-channel-renderer",params:{isRichGrid:!0}},teaserCardViewModel:{component:"teaser-card-view-model",params:{useFullWidth:!0}},gridVideoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}}}}}};
_.N.leave=function(F){F=F.relatedTarget;var W=document.querySelector("ytd-video-preview");F&&W&&_.Fm(W).contains(F)||this.removeAndCleanupHighlight()};
_.N.hover=function(){var F;if(!this.highlighted&&(!_.c("web_enable_rich_item_on_focus_effect")||(F=this.data)!=null&&F.onFocusEffect)){var W,E;((W=this.data)==null?void 0:(E=W.onFocusEffect)==null?void 0:E.onFocusStyle)==="ON_FOCUS_STYLE_BACKGROUND"&&(this.hostElement.classList.add("ytd-rich-item-renderer-highlight"),(F=this.getBackgroundColor())&&Object.assign(this.hostElement.style,{backgroundColor:F,boxShadow:"0 0 0 10px "+F}));var h,d;((h=this.data)==null?void 0:(d=h.onFocusEffect)==null?void 0:
d.onFocusStyle)==="ON_FOCUS_STYLE_BORDER"&&this.hostElement.classList.add("ytd-rich-item-renderer-highlight-border");this.highlighted=!0}};
_.N.removeAndCleanupHighlight=function(){this.hostElement.classList.remove("ytd-rich-item-renderer-highlight");this.hostElement.classList.remove("ytd-rich-item-renderer-highlight-border");Object.assign(this.hostElement.style,{backgroundColor:"",boxShadow:""});this.highlighted=!1};
_.N.registerHoverHighlightListeners=function(){var F=this;this.hostElement.addEventListener("mouseover",this.hoverListener);this.hostElement.addEventListener("mouseleave",this.leaveListener);this.JSC$13924_unsubscribeFromInlinePreviewIsActive=_.kQ(_.uC(),_.khY,function(W){F.highlighted&&!W&&F.removeAndCleanupHighlight()})};
_.N.removeHoverHighlightListeners=function(){this.hostElement.removeEventListener("mouseover",this.hoverListener);this.hostElement.removeEventListener("mouseleave",this.leaveListener);this.JSC$13924_unsubscribeFromInlinePreviewIsActive()};
_.N.richGridHoverHighlightChanged=function(){this.richGridHoverHighlight?this.registerHoverHighlightListeners():this.removeHoverHighlightListeners()};
_.N.detached=function(){this.richGridHoverHighlight&&this.removeHoverHighlightListeners()};
_.N.getBackgroundColor=function(){var F,W,E=(F=this.data)==null?void 0:(W=F.onFocusEffect)==null?void 0:W.onFocusColor;if(E){if(document.documentElement.hasAttribute("dark")&&(E==null?0:E.darkTheme))return _.ZP(E==null?void 0:E.darkTheme);if(E==null?0:E.lightTheme)return _.ZP(E==null?void 0:E.lightTheme)}};
_.N.onIndexUpdateAction=function(){this.updateIsInFirstColumn();if(this.hostElement.offsetParent!==null){var F=_.JR(),W,E,h;F&&((W=this.data)==null?0:W.trackingParams)&&((E=this.data)==null?void 0:E.colIndex)!=null&&((h=this.data)==null?void 0:h.rowIndex)!=null&&_.Yb(F,_.ve(this.data.trackingParams),{gridData:{veColumnCoordinate:this.data.colIndex,veRowCoordinate:this.data.rowIndex}})}};
_.N.isSlimMediaRenderer=function(F){return!!_.D(F==null?void 0:F.content,_.qjp)||!!_.D(F==null?void 0:F.content,LKH)||!!_.D(F==null?void 0:F.content,_.yE)||!!_.D(F==null?void 0:F.content,YwU)};
_.N.isPostRenderer=function(){var F,W;return!!_.D((F=this.data)==null?void 0:F.content,aEe)||!!_.D((W=this.data)==null?void 0:W.content,fEX)};
_.N.computeIsGameCardShelf=function(){var F;return!!_.D((F=this.data)==null?void 0:F.content,aZ_)};
_.N.computeIsMiniGameCardShelf=function(){var F,W;return!!_.D((F=this.data)==null?void 0:F.content,SsO)||!!_.D((W=this.data)==null?void 0:W.content,pIB)};
_.N.computeIsTeaserCard=function(){var F;return!!_.D((F=this.data)==null?void 0:F.content,pIB)};
_.N.computeIsSelectableFeedbackItem=function(){var F,W;return!((W=_.D((F=this.data)==null?void 0:F.content,_.KxH))==null||!W.selectableFeedback)};
_.N.computeContainsLumierePosters=function(){var F,W;return((W=_.D((F=this.data)==null?void 0:F.content,oi_))==null?void 0:W.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.N.computeIsExpandOnHoverCardShelf=function(){var F;return!!_.D((F=this.data)==null?void 0:F.content,TH_)};
_.N.computeIsLinkCardShelf=function(){var F;return!!_.D((F=this.data)==null?void 0:F.content,SXe)};
_.N.computeIsReelItemStyleAvatarCircle=function(F){var W;return((W=_.D(F==null?void 0:F.content,_.yE))==null?void 0:W.style)==="REEL_ITEM_STYLE_AVATAR_CIRCLE"};
_.N.computeIsLinkCardFullWidth=function(F,W){var E;return((E=_.D(F==null?void 0:F.content,SXe))==null?void 0:E.useFullWidth)||W<=2};
_.Sn.Object.defineProperties(Ls.prototype,{showYtInteractionOnRichGridMedia:{configurable:!0,enumerable:!0,get:function(){return!this.showYtInteractionOnRichItem}},
showYtInteractionOnRichItem:{configurable:!0,enumerable:!0,get:function(){return this.richGridHoverHighlight||this.isSelectableFeedbackItem}},
richTypographyBump:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&!!this.isHomeGrid&&_.c("web_enable_typography_bump")}},
richGridHoverHighlight:{configurable:!0,enumerable:!0,get:function(){return _.c("web_enable_rich_item_on_focus_effect")||_.c("rich_grid_hover_highlight")&&!this.isShortsGrid&&!this.isCompactGrid}},
shortsLockupViewModelAspectRatio:{configurable:!0,enumerable:!0,get:function(){return _.c("web_shorts_2_by_3_lockups_no_home")&&this.isHomeShelf?0:this.isInlineGroupItem?2:this.isShortsPanelGrid||_.c("web_shorts_2_by_3_lockups_study")||_.c("web_shorts_2_by_3_lockups_home")&&this.isHomeShelf?1:0}},
shortsLockupViewModelScrimStyle:{configurable:!0,enumerable:!0,get:function(){return this.isInlineGroupItem?4:3}}});
Ls.prototype.richGridHoverHighlightChanged=Ls.prototype.richGridHoverHighlightChanged;Ls.prototype.observerContainerType=Ls.prototype.observerContainerType;Ls.prototype.updateIsInFirstColumn=Ls.prototype.updateIsInFirstColumn;_.T([_.J(_.am),_.Y("design:type",Object)],Ls.prototype,"ytdReduxBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],Ls.prototype,"ytRendererstamperBehavior",void 0);
_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],Ls.prototype,"ytActionHandlerBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Ls.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.rt),_.Y("design:type",Object)],Ls.prototype,"ytdLockupBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],Ls.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0,computed:"isPostRenderer(data)"}),_.Y("design:type",Boolean)],Ls.prototype,"isPost",void 0);
_.T([_.O({reflectToAttribute:!0,computed:"computeContainsLumierePosters(data)"}),_.Y("design:type",Boolean)],Ls.prototype,"containsLumierePosters",void 0);_.T([_.O({reflectToAttribute:!0,computed:"isSlimMediaRenderer(data)"}),_.Y("design:type",Boolean)],Ls.prototype,"isSlimMedia",void 0);_.T([_.O({reflectToAttribute:!0,computed:"computeIsGameCardShelf(data)"}),_.Y("design:type",Boolean)],Ls.prototype,"isGameCardShelf",void 0);
_.T([_.O({reflectToAttribute:!0,computed:"computeIsMiniGameCardShelf(data)"}),_.Y("design:type",Boolean)],Ls.prototype,"isMiniGameCardShelf",void 0);_.T([_.O({reflectToAttribute:!0,computed:"computeIsTeaserCard(data)"}),_.Y("design:type",Boolean)],Ls.prototype,"isTeaserCard",void 0);_.T([_.O({computed:"computeIsSelectableFeedbackItem(data)"}),_.Y("design:type",Boolean)],Ls.prototype,"isSelectableFeedbackItem",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],Ls.prototype,"isShortsGrid",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Ls.prototype,"isSlimGrid",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],Ls.prototype,"isCompactGrid",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],Ls.prototype,"isShortsPanelGrid",void 0);
_.T([_.O({reflectToAttribute:!0,computed:"computeIsExpandOnHoverCardShelf(data)"}),_.Y("design:type",Boolean)],Ls.prototype,"isExpandOnHoverCardShelf",void 0);_.T([_.O({reflectToAttribute:!0,computed:"computeIsLinkCardShelf(data)"}),_.Y("design:type",Boolean)],Ls.prototype,"isLinkCardShelf",void 0);_.T([_.O({reflectToAttribute:!0,selector:_.Hz,value:3}),_.Y("design:type",Number)],Ls.prototype,"itemsPerRow",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],Ls.prototype,"renderedFromRichGrid",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],Ls.prototype,"isInFirstColumn",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],Ls.prototype,"noGutterMargins",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],Ls.prototype,"isInlineGroupItem",void 0);_.T([_.O(),_.Y("design:type",Object)],Ls.prototype,"insetMetadata",void 0);
_.T([_.O(),_.Y("design:type",Object)],Ls.prototype,"noBottomMarginInAds",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Ls.prototype,"isShelfItem",void 0);_.T([_.O({reflectToAttribute:!0,computed:"computeIsReelItemStyleAvatarCircle(data)"}),_.Y("design:type",Boolean)],Ls.prototype,"isReelItemStyleAvatarCircle",void 0);_.T([_.O({reflectToAttribute:!0,computed:"computeIsLinkCardFullWidth(data, itemsPerRow)"}),_.Y("design:type",Boolean)],Ls.prototype,"isLinkCardFullWidth",void 0);
_.T([_.O(),_.Y("design:type",Object)],Ls.prototype,"force16By9ThumbnailAspectRatio",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],Ls.prototype,"useCompactList",void 0);_.T([_.O(),_.Y("design:type",String)],Ls.prototype,"sizing",void 0);_.T([_.O({value:!1}),_.Y("design:type",Boolean)],Ls.prototype,"typographyBump",void 0);_.T([_.O(),_.Y("design:type",Number)],Ls.prototype,"itemWidth",void 0);_.T([_.O(),_.Y("design:type",Boolean)],Ls.prototype,"isHomeShelf",void 0);
_.T([_.O(),_.Y("design:type",Boolean)],Ls.prototype,"isHomeGrid",void 0);_.T([_.gQ("yt-lockup-view-model"),_.Y("design:type",HTMLElement)],Ls.prototype,"lockup",void 0);_.T([_.gQ("ytd-rich-grid-media"),_.Y("design:type",HTMLElement)],Ls.prototype,"richGridMedia",void 0);_.T([_.gQ("ytd-ad-slot-renderer"),_.Y("design:type",HTMLElement)],Ls.prototype,"adSlotRenderer",void 0);_.T([_.O({computed:"computeContainerType(useCompactList)"}),_.Y("design:type",Object)],Ls.prototype,"containerType",void 0);
_.T([_.O({computed:"computeThumbnailTargetWidth(itemWidth)"}),_.Y("design:type",Object)],Ls.prototype,"thumbnailTargetWidth",void 0);_.T([_.a("showYtInteractionOnRichItem"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Ls.prototype,"showYtInteractionOnRichGridMedia",null);_.T([_.a("isSelectableFeedbackItem","richGridHoverHighlight"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Ls.prototype,"showYtInteractionOnRichItem",null);
_.T([_.a("typographyBump","isHomeGrid"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Ls.prototype,"richTypographyBump",null);_.T([_.O({reflectToAttribute:!0}),_.a("isShortsGrid","isCompactGrid"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Ls.prototype,"richGridHoverHighlight",null);_.T([_.a("isShortsPanelGrid","isHomeShelf","isInlineGroupItem"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],Ls.prototype,"shortsLockupViewModelAspectRatio",null);
_.T([_.a("isInlineGroupItem"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],Ls.prototype,"shortsLockupViewModelScrimStyle",null);_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Ls.prototype,"updateIsInFirstColumn",null);_.T([_.ea("containerType","sizing","typographyBump"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Ls.prototype,"observerContainerType",null);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],Ls.prototype,"isResponsiveGrid",void 0);_.T([_.O(),_.Y("design:type",Object)],Ls.prototype,"lockupExperiments",void 0);_.T([_.ea("richGridHoverHighlight"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Ls.prototype,"richGridHoverHighlightChanged",null);Ls=_.T([_.y({is:"ytd-rich-item-renderer",disableElementRegistration:!0})],Ls);
_.lKc=_.We()(Ls,"ytd-rich-item-renderer",function(){if(AoT===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-rich-item-renderer"></div>\n<yt-interaction id="interaction" class="extended rounded-large style-scope ytd-rich-item-renderer" hidden="[[!showYtInteractionOnRichItem]]"></yt-interaction>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);AoT=F}F=AoT;return F},{mode:_.E6("kevlar_poly_si_batch_j028")?1:2});var lwG={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.gif"};var Gmo=_.Gr(_.CY("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var neX;var qx=function(){var F=_.n.apply(this,arguments)||this;F.useResponsiveGrid=!1;F.hidden=!1;F.standardShelfMargins=_.c("web_rich_grid_standard_shelf_margins");F.isShowMoreHidden=!1;F.isExpanded=!1;F.isInnerShelf=!1;F.allVideosCount=0;F.allPlaylistCount=0;F.haveSmartDownloadsCompleted=!1;F.isShowLessHidden=!0;F.restrictContentsOverflow=!1;F.firstShownIndex=0;F.horizontalOffset=0;F.atEnd=!0;F.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-rich-grid-resize-observed":"resizeObserved",
"yt-section-reactive-dismissal":"onSectionReactiveDismissal"};F.nextClick=function(){var W;(W=F.data)!=null&&W.contents&&(F.firstShownIndex+=F.currentElementsPerRow,F.updateHorizontalOffset(),F.updateHorizontalItemVisibility())};
F.previousClick=function(){var W;(W=F.data)!=null&&W.contents&&(F.firstShownIndex-=F.currentElementsPerRow,F.updateHorizontalOffset(),F.updateHorizontalItemVisibility())};
return F};
_.k(qx,_.n);_.N=qx.prototype;
_.N.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richItemRenderer:{component:"ytd-rich-item-renderer",properties:{isResponsiveGrid:"[[useResponsiveGrid]]",sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",itemWidth:"[[itemWidth]]",isHomeShelf:"[[isHomePage]]",force16By9ThumbnailAspectRatio:"[[force16By9ThumbnailAspectRatio]]"},params:{isShelfItem:!0}}}},"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{buttonTooltipPosition:_.b0("HTML_DIR")===
"rtl"?"right":"left"}}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:{component:"ytd-notification-multi-action-renderer",params:{shelfDismissal:!0}}}}}};
_.N.attached=function(){this.requestElementsPerRow()};
_.N.refreshGridLayoutNew=function(){var F;if((F=this.data)!=null&&F.contents&&this.containerWidth){var W;((W=this.data.responsiveContainerConfiguration)==null?0:W.responsiveSize)?(F=_.uQe(this.data.responsiveContainerConfiguration,this.containerWidth),F=_.EQ(Object.assign({},F,{standardUnitMinWidth:this.standardUnitMinWidth}))):F=_.EQ({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,standardUnitMinWidth:this.standardUnitMinWidth});this.typographyBump=F.typographyBump;if(this.elementsPerRow!==
F.numItems||this.gutter!==F.gutter)this.elementsPerRow=F.numItems,this.gutter=F.gutter,this.itemWidth=F.itemWidth,_.V9(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":F.gutter+"px"})}};
_.N.computeSizing=function(){if(!this.isLumiere){var F=_.KdW(this.data);if(F)return F;if(_.c("web_use_layout_library_for_rich_grid"))return this.isGameCardShelf()||this.isMiniGameCardShelf()||this.isSlimMediaShelfRenderer()||this.isLumiereShelfWithPosters()||this.isShortsShelf()?"EXTRA_COMPACT":"STANDARD"}};
_.N.computeUseResponsiveGrid=function(){return!this.isLumiere&&this.sizing};
_.N.computeButton=function(F){var W=_.D(F,_.jt);F=Object.assign({},_.D(F,_.jt));return W?(F.text||(F.text={simpleText:F.tooltip}),F.style="STYLE_MONO_OUTLINE",F.iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT",F):W};
_.N.onRowIndexChange=function(){var F=_.JR(),W,E;((W=this.data)==null?0:W.trackingParams)&&((E=this.data)==null?void 0:E.rowIndex)!=null&&F&&_.Yb(F,_.ve(this.data.trackingParams),{gridData:{veRowCoordinate:this.data.rowIndex}})};
_.N.resizeObserved=function(){if(this.hasChevronButtons&&this.horizontalOffset!==0){var F,W=((F=this.getRichItemRenderers()[0])==null?void 0:F.clientWidth)+this.gutter;this.horizontalOffset=this.firstShownIndex*W;this.updateHorizontalItemVisibility()}else this.contents.style.transform="translateX(0px)"};
_.N.requestElementsPerRow=function(){_.hF(this.hostElement,"yt-request-elements-per-row")};
_.N.onUpdateElementsPerRowAction=function(F,W,E,h,d,V){if(this.containerWidth!==V&&(this.containerWidth=V,this.useResponsiveGrid)){this.refreshGridLayoutNew();this.updateItemVisibility();return}!this.useResponsiveGrid&&F&&W&&E&&h&&d&&(this.elementsPerRow!==F||this.postsPerRow!==W||this.slimItemsPerRow!==E||this.gameCardsPerRow!==h||this.miniGameCardsPerRow!==d)&&(this.elementsPerRow=F,this.postsPerRow=W,this.slimItemsPerRow=E,this.gameCardsPerRow=h,this.miniGameCardsPerRow=d,this.updateItemVisibility())};
_.N.getRichItemRenderers=function(){return _.Z(this.hostElement).querySelectorAll("ytd-rich-item-renderer")};
_.N.updateItemVisibility=function(){var F=this;if(this.data&&this.data.contents){var W=this.data.contents.length;if(this.hasChevronButtons)this.updateArrowButtonStatus();else{this.getRichItemRenderers().forEach(function(h,d){var V;((V=F.data)==null?0:V.isExpanded)?(h.hidden=d>W-1,h.ytRendererBehavior.markDirty()):h.hidden=d>F.currentElementsPerRow-1||d>W-1});
var E=this.data.contents.length<=this.currentElementsPerRow;this.isExpanded=!!this.data.isExpanded;this.isShowMoreHidden=!this.data.showMoreButton||E||!!this.data.isExpanded||this.isTruncated;this.isShowLessHidden=!this.data.showLessButton||E||!this.data.isExpanded||this.isTruncated}this.contents.style.visibility="visible"}};
_.N.setHeightToSingleRow=function(){var F=this.getRichItemRenderers(),W=Number.parseInt(getComputedStyle(F[0]).marginBottom,10)||0;F=F.slice(0,this.currentElementsPerRow).reduce(function(E,h){return Math.max(E,h.getBoundingClientRect().height+W)},0);
this.contents.style.height=F+"px"};
_.N.focusNextExpandedItem=function(){var F;((F=this.data)==null?0:F.isExpanded)&&this.focusItem(this.currentElementsPerRow,!0)};
_.N.focusItem=function(F,W){var E=this.getRichItemRenderers();if(E[F]&&(F=E[F].querySelector(".focus-on-expand"))){if(W){var h;(h=E[this.currentElementsPerRow])==null||h.scrollIntoView({behavior:"smooth",block:"center"})}F.focus({preventScroll:!0})}};
_.N.onDataChange=function(){var F=this;this.useResponsiveGrid&&this.containerWidth&&this.refreshGridLayoutNew();_.wT(this,function(){F.updateItemVisibility()});
var W;if((W=this.data)==null?0:W.contents)for(this.restrictContentsOverflow=!this.isExpandOnHoverCardShelf(),_.V9(this.hostElement,{"--ytd-rich-shelf-items-count":""+this.data.contents.length}),W=0;W<this.data.contents.length;W++){var E=_.D(this.data.contents[W],_.fi)||{};E.colIndex=W;E.rowIndex=this.data.rowIndex}};
_.N.handleRerenderDownloadsData=function(){_.c("kevlar_modern_downloads_page")&&this.entityDrivenRichShelfData&&(this.set("data.contents",this.entityDrivenRichShelfData.contents),this.entityDrivenRichShelfData.subtitle&&this.set("data.subtitle",this.entityDrivenRichShelfData.subtitle),this.updateItemVisibility())};
_.N.blockInlinePreview=function(F){var W=this,E;return _.e(function(h){(E=W.inlinePreviewIsEnabled)&&W.ytdReduxBehavior.dispatch(_.aju(!1));return h.return(new Promise(function(d){F(function(){E&&W.ytdReduxBehavior.dispatch(_.aju(!0));d()})}))})};
_.N.expandShelf=function(){var F=this;if(this.data){var W,E=(W=_.D(this.data.showMoreButton,_.jt))==null?void 0:W.trackingParams;E&&_.Bt(_.z4(),E);this.data.isExpanded=!0;this.blockInlinePreview(function(h){F.setHeightToSingleRow();F.updateItemVisibility();F.contents.style.height=F.contents.scrollHeight+"px";_.P0.addJob(function(){F.contents.style.height="auto";F.focusNextExpandedItem();h()},2,200)})}};
_.N.collapseShelf=function(){var F=this;return _.e(function(W){if(W.nextAddress==1){if(!F.data)return W.return();F.data.isExpanded=!1;return _.Q(W,F.blockInlinePreview(function(E){F.contents.style.height=F.contents.scrollHeight+"px";F.setHeightToSingleRow();_.P0.addJob(function(){F.updateItemVisibility();F.contents.style.height="auto";E()},2,200)}),2)}_.hF(F.hostElement,"yt-rich-shelf-renderer-collapse",F.data.trackingParams);
F.focusItem(0,!1);_.gG(W)})};
_.N.updateArrowButtonStatus=function(){var F=this.getRichItemRenderers().length;if(!_.c("web_rich_shelf_renderer_use_data_contents_killswitch")){var W,E;F=((W=this.data)==null?void 0:(E=W.contents)==null?void 0:E.length)||0}this.atEnd=this.firstShownIndex+this.currentElementsPerRow>=F};
_.N.onChildElementFocus=function(F){this.hasChevronButtons&&(F=F.target.closest("#contents > *"),this.contents.contains(F)&&(F.offsetLeft<this.horizontalOffset?this.previousClick():F.offsetLeft+F.clientWidth>this.horizontalOffset+this.contents.clientWidth&&(this.contents.parentElement&&(this.contents.parentElement.scrollLeft=0),this.nextClick())))};
_.N.updateHorizontalItemVisibility=function(){this.updateArrowButtonStatus();this.contents.style.transform="translateX("+(_.b0("HTML_DIR")==="rtl"?"":"-")+this.horizontalOffset+"px)"};
_.N.updateHorizontalOffset=function(){var F=this.getRichItemRenderers(),W=F.length;if(!_.c("web_rich_shelf_renderer_use_data_contents_killswitch")){var E,h;W=((E=this.data)==null?void 0:(h=E.contents)==null?void 0:h.length)||0}var d;F=((d=F[0])==null?void 0:d.clientWidth)+this.gutter;this.firstShownIndex+this.currentElementsPerRow>W?this.firstShownIndex=W-this.currentElementsPerRow:this.firstShownIndex<0&&(this.firstShownIndex=0);this.horizontalOffset=this.firstShownIndex*F};
_.N.isSlimMediaShelfRenderer=function(){var F,W,E,h=(E=_.D((F=this.data)==null?void 0:(W=F.contents)==null?void 0:W[0],_.fi))==null?void 0:E.content;return!!(_.D(h,_.qjp)||_.D(h,LKH)||_.D(h,_.yE)||_.D(h,YwU))};
_.N.isGameCardShelf=function(){var F,W,E,h=(E=_.D((F=this.data)==null?void 0:(W=F.contents)==null?void 0:W[0],_.fi))==null?void 0:E.content;return!!_.D(h,aZ_)};
_.N.isGnomeShelf=function(){var F,W,E,h=(E=_.D((F=this.data)==null?void 0:(W=F.contents)==null?void 0:W[0],_.fi))==null?void 0:E.content;return!!_.D(h,_.KxH)};
_.N.isMiniGameCardShelf=function(){var F,W,E,h=(E=_.D((F=this.data)==null?void 0:(W=F.contents)==null?void 0:W[0],_.fi))==null?void 0:E.content;return!!_.D(h,SsO)||!!_.D(h,pIB)};
_.N.hasGameBoxArtAvatarStyle=function(){var F;return((F=this.data)==null?void 0:F.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART"};
_.N.hasRoundedGameBoxArtAvatarStyle=function(){var F;return((F=this.data)==null?void 0:F.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"};
_.N.isShortsShelf=function(){var F,W,E,h=(E=_.D((F=this.data)==null?void 0:(W=F.contents)==null?void 0:W[0],_.fi))==null?void 0:E.content;return!!_.D(h,_.yE)||!!_.D(h,YwU)};
_.N.isPostShelfRenderer=function(){var F,W,E,h=(E=_.D((F=this.data)==null?void 0:(W=F.contents)==null?void 0:W[0],_.fi))==null?void 0:E.content;return!(!_.D(h,aEe)&&!_.D(h,fEX))};
_.N.isLumiereShelf=function(){var F,W,E=_.D((F=this.data)==null?void 0:(W=F.contents)==null?void 0:W[0],_.fi);return!!_.D(E==null?void 0:E.content,oi_)};
_.N.isLumiereShelfWithPosters=function(){var F,W,E=_.D((F=this.data)==null?void 0:(W=F.contents)==null?void 0:W[0],_.fi),h;return((h=_.D(E==null?void 0:E.content,oi_))==null?void 0:h.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.N.isExpandOnHoverCardShelf=function(){var F,W,E,h=(E=_.D((F=this.data)==null?void 0:(W=F.contents)==null?void 0:W[0],_.fi))==null?void 0:E.content;return!!_.D(h,TH_)};
_.N.computeHasFeaturedBadge=function(){var F,W,E=_.D((F=this.data)==null?void 0:(W=F.badges)==null?void 0:W[0],_.mSU);return E?E.style!=="BADGE_STYLE_TYPE_SIMPLE":!1};
_.N.computeHasPaygatedFeaturedBadge=function(){var F,W,E=_.D((F=this.data)==null?void 0:(W=F.badges)==null?void 0:W[0],_.mSU);return E?(E==null?void 0:E.style)==="BADGE_STYLE_TYPE_SIMPLE":!1};
_.N.computeHeaderHidden=function(){var F,W,E,h,d,V;return!((F=this.data)==null?0:F.icon)&&!((W=this.data)==null?0:W.title)&&!((E=this.data)==null?0:E.subtitle)&&!((h=this.data)==null?0:h.thumbnail)&&!((d=this.data)==null?0:d.badges)&&!((V=this.data)==null?0:V.menu)};
_.N.showCtaButton=function(){var F;return!((F=this.data)==null||!F.ctaButton)&&!this.isPostShelfRenderer()&&!this.isGameCardShelf()&&!this.isMiniGameCardShelf()};
_.N.showTopCtaButton=function(){return this.showCtaButton()?this.isSlimMediaShelfRenderer()?this.slimItemsPerRow>=4:this.elementsPerRow>=3:!1};
_.N.showBottomCtaButton=function(){return this.showCtaButton()?!this.showTopCtaButton():!1};
_.N.computeForce16By9ThumbnailAspectRatio=function(){var F,W;return((F=this.data)==null?void 0:(W=F.responsiveContainerConfiguration)==null?void 0:W.enableContentSpecificAspectRatio)!==void 0?!this.data.responsiveContainerConfiguration.enableContentSpecificAspectRatio:!1};
_.N.onSectionReactiveDismissal=function(F,W,E){var h,d;var V=(h=this.data)==null?void 0:(d=h.targetingContext)==null?void 0:d.targetGroupId;this&&V&&W.targetGroupId&&V.includes(W.targetGroupId)?(h=this.rowIndex,F=h===void 0?!1:!(W.behavior==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&h<=F)):F=!1;F&&(this.hidden=E)};
_.Sn.Object.defineProperties(qx.prototype,{currentElementsPerRow:{configurable:!0,enumerable:!0,get:function(){if(this.useResponsiveGrid)return this.elementsPerRow;var F=this.elementsPerRow;this.isPostShelfRenderer()?F=this.postsPerRow:this.isSlimMediaShelfRenderer()?F=this.slimItemsPerRow:this.isLumiereShelfWithPosters()?F=this.slimItemsPerRow-1:this.isGameCardShelf()?F=this.gameCardsPerRow:this.isMiniGameCardShelf()&&(F=this.miniGameCardsPerRow);return F}},
isTruncated:{configurable:!0,enumerable:!0,get:function(){return this.isShortsShelf()&&_.c("kevlar_clean_feeds_show_more")&&this.isHomePage}},
hideBottomDivider:{configurable:!0,enumerable:!0,get:function(){var F;return!((F=this.data)==null||!F.isBottomDividerHidden)}},
hasChevronButtons:{configurable:!0,enumerable:!0,get:function(){var F,W;return!((F=this.data)==null||!F.previousButton)&&!((W=this.data)==null||!W.nextButton)}},
previousButtonOverride:{configurable:!0,enumerable:!0,get:function(){return{disabled:this.firstShownIndex===0,ariaHidden:!0,tabIndex:-1}}},
nextButtonOverride:{configurable:!0,enumerable:!0,get:function(){return{disabled:this.atEnd,ariaHidden:!0,tabIndex:-1}}},
isHomePage:{configurable:!0,enumerable:!0,get:function(){var F;return((F=_.WZ().resolve(_.KQ).getCurrentPage())==null?void 0:F.pageSubtype)==="home"}},
thumbnailAriaHidden:{configurable:!0,enumerable:!0,get:function(){var F,W,E,h;return!((F=this.data)==null?0:(W=F.thumbnail)==null?0:(E=W.accessibility)==null?0:(h=E.accessibilityData)==null?0:h.label)}},
initiallyIsExpanded:{configurable:!0,enumerable:!0,get:function(){var F;return!((F=this.data)==null||!F.isExpanded)}},
entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var F;return((F=this.data)==null?void 0:F.entitySelectorType)||"RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
rowIndex:{configurable:!0,enumerable:!0,get:function(){return this.data.rowIndex}}});
qx.prototype.onChildElementFocus=qx.prototype.onChildElementFocus;qx.prototype.handleRerenderDownloadsData=qx.prototype.handleRerenderDownloadsData;qx.prototype.onDataChange=qx.prototype.onDataChange;qx.prototype.onRowIndexChange=qx.prototype.onRowIndexChange;_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],qx.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],qx.prototype,"ytRendererBehavior",void 0);
_.T([_.J(_.O9),_.Y("design:type",Object)],qx.prototype,"ytdDismissibleItemBehavior",void 0);_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],qx.prototype,"actionHandlerBehavior",void 0);_.T([_.J(_.am),_.Y("design:type",Object)],qx.prototype,"ytdReduxBehavior",void 0);_.T([_.O({computed:"computeUseResponsiveGrid(isLumiere, sizing)"}),_.Y("design:type",Object)],qx.prototype,"useResponsiveGrid",void 0);_.T([_.O(),_.Y("design:type",Object)],qx.prototype,"data",void 0);
_.T([_.O(),_.Y("design:type",Number)],qx.prototype,"standardUnitMinWidth",void 0);_.T([_.O({reflectToAttribute:!0,value:3}),_.Y("design:type",Number)],qx.prototype,"elementsPerRow",void 0);_.T([_.O({value:3}),_.Y("design:type",Number)],qx.prototype,"postsPerRow",void 0);_.T([_.O({value:6}),_.Y("design:type",Number)],qx.prototype,"slimItemsPerRow",void 0);_.T([_.O({value:6}),_.Y("design:type",Number)],qx.prototype,"gameCardsPerRow",void 0);
_.T([_.O({value:6}),_.Y("design:type",Number)],qx.prototype,"miniGameCardsPerRow",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],qx.prototype,"hidden",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],qx.prototype,"standardShelfMargins",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],qx.prototype,"isShowMoreHidden",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],qx.prototype,"isExpanded",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],qx.prototype,"isInnerShelf",void 0);_.T([_.O({reflectToAttribute:!0,computed:"isShortsShelf(data)"}),_.Y("design:type",Boolean)],qx.prototype,"isShorts",void 0);_.T([_.O({reflectToAttribute:!0,computed:"isLumiereShelf(data)"}),_.Y("design:type",Boolean)],qx.prototype,"isLumiere",void 0);_.T([_.O({reflectToAttribute:!0,computed:"hasGameBoxArtAvatarStyle(data)"}),_.Y("design:type",Boolean)],qx.prototype,"hasBoxArtThumbnailStyle",void 0);
_.T([_.O({reflectToAttribute:!0,computed:"hasRoundedGameBoxArtAvatarStyle(data)"}),_.Y("design:type",Boolean)],qx.prototype,"hasRoundedBoxArtThumbnailStyle",void 0);_.T([_.O({reflectToAttribute:!0,computed:"computeHasFeaturedBadge(data)"}),_.Y("design:type",Boolean)],qx.prototype,"hasFeaturedBadge",void 0);_.T([_.O({reflectToAttribute:!0,computed:"computeHasPaygatedFeaturedBadge(data)"}),_.Y("design:type",Boolean)],qx.prototype,"hasPaygatedFeaturedBadge",void 0);
_.T([_.O({reflectToAttribute:!0,computed:"computeHeaderHidden(data)"}),_.Y("design:type",Boolean)],qx.prototype,"isHeaderHidden",void 0);_.T([_.O({selector:_.XPr}),_.Y("design:type",Object)],qx.prototype,"allVideosCount",void 0);_.T([_.O({selector:wVG}),_.Y("design:type",Object)],qx.prototype,"allPlaylistCount",void 0);_.T([_.O({selector:y7r}),_.Y("design:type",Object)],qx.prototype,"haveSmartDownloadsCompleted",void 0);
_.T([_.O({selectorArgs:["entitySelectorType"],selector:function(F,W){if(_.c("kevlar_modern_downloads_page")&&W&&W!=="RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"){var E=F.entities;switch(W){case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS":W=_.qn(E);F=a$(W);var h=_.Ds(W);E=_.Zs(E);E=_.Wz(y6G(h,E,W.length));return{contents:F,subtitle:E};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE":return E=_.qn(E),{contents:a$(E)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS":return E=
_.$r(E),{contents:a$(E)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE":return E=_.UCb(E),{contents:a$(E)};default:_.OB(new _.xC("Error: entitySelectorType defined but not matched in selector.",F,W))}}}}),
_.Y("design:type",Object)],qx.prototype,"entityDrivenRichShelfData",void 0);_.T([_.O({reflectToAttribute:!0,computed:"showTopCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.Y("design:type",Boolean)],qx.prototype,"hasTopCtaButton",void 0);_.T([_.O({reflectToAttribute:!0,computed:"showBottomCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.Y("design:type",Boolean)],qx.prototype,"hasBottomCtaButton",void 0);
_.T([_.O({reflectToAttribute:!0,computed:"computeForce16By9ThumbnailAspectRatio(data)"}),_.Y("design:type",Boolean)],qx.prototype,"force16By9ThumbnailAspectRatio",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],qx.prototype,"isShowLessHidden",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],qx.prototype,"restrictContentsOverflow",void 0);_.T([_.O({selector:_.A7o}),_.Y("design:type",Boolean)],qx.prototype,"inlinePreviewIsEnabled",void 0);
_.T([_.O({computed:"computeSizing(data)"}),_.Y("design:type",String)],qx.prototype,"sizing",void 0);_.T([_.O(),_.Y("design:type",Boolean)],qx.prototype,"typographyBump",void 0);_.T([_.O(),_.Y("design:type",Number)],qx.prototype,"itemWidth",void 0);_.T([_.O(),_.Y("design:type",Object)],qx.prototype,"firstShownIndex",void 0);_.T([_.O(),_.Y("design:type",Object)],qx.prototype,"horizontalOffset",void 0);_.T([_.O(),_.Y("design:type",Object)],qx.prototype,"atEnd",void 0);
_.T([_.gQ("#contents"),_.Y("design:type",HTMLElement)],qx.prototype,"contents",void 0);_.T([_.ea("data.rowIndex"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],qx.prototype,"onRowIndexChange",null);_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],qx.prototype,"onDataChange",null);
_.T([_.ea("allVideosCount","allPlaylistsCount","haveSmartDownloadsCompleted"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],qx.prototype,"handleRerenderDownloadsData",null);_.T([_.R4("focusin"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],qx.prototype,"onChildElementFocus",null);_.T([_.O({reflectToAttribute:!0}),_.a("data","isHomePage"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],qx.prototype,"isTruncated",null);
_.T([_.O({reflectToAttribute:!0}),_.a("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],qx.prototype,"hideBottomDivider",null);_.T([_.O({reflectToAttribute:!0}),_.a("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],qx.prototype,"hasChevronButtons",null);_.T([_.a("firstShownIndex"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],qx.prototype,"previousButtonOverride",null);
_.T([_.a("atEnd"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],qx.prototype,"nextButtonOverride",null);_.T([_.a("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],qx.prototype,"isHomePage",null);_.T([_.a("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],qx.prototype,"thumbnailAriaHidden",null);_.T([_.O({reflectToAttribute:!0}),_.a("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],qx.prototype,"initiallyIsExpanded",null);
_.T([_.a("data"),_.Y("design:type",String),_.Y("design:paramtypes",[])],qx.prototype,"entitySelectorType",null);qx=_.T([_.y({is:"ytd-rich-shelf-renderer",disableElementRegistration:!0})],qx);
_.yoT=_.We()(qx,"ytd-rich-shelf-renderer",function(){if(neX===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-rich-shelf-renderer">\n  <div id="rich-shelf-header-container" class="style-scope ytd-rich-shelf-renderer">\n    <div id="rich-shelf-header" class="style-scope ytd-rich-shelf-renderer">\n      <h2 class="style-scope ytd-rich-shelf-renderer">\n        <template is="dom-if" if="[[!data.endpoint]]" class="style-scope ytd-rich-shelf-renderer">\n          <yt-icon id="icon" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" class="style-scope ytd-rich-shelf-renderer">\n          </yt-icon>\n          <yt-img-shadow id="avatar" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-rich-shelf-renderer">\n          </yt-img-shadow>\n          <div id="title-container" class="style-scope ytd-rich-shelf-renderer">\n            <div id="title-text" class="style-scope ytd-rich-shelf-renderer">\n              <span id="title" class="style-scope ytd-rich-shelf-renderer">[[getSimpleString(data.title)]]</span>\n              <ytd-badge-supported-renderer id="featured-badge" badges="[[data.badges]]" hidden="[[!hasFeaturedBadge]]" class="style-scope ytd-rich-shelf-renderer">\n              </ytd-badge-supported-renderer>\n            </div>\n            <div id="subtitle-text" class="style-scope ytd-rich-shelf-renderer">\n              <ytd-badge-supported-renderer id="paygated-featured-badge" badges="[[data.badges]]" hidden="[[!hasPaygatedFeaturedBadge]]" class="style-scope ytd-rich-shelf-renderer">\n              </ytd-badge-supported-renderer>\n              <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-rich-shelf-renderer"> </yt-formatted-string>\n            </div>\n          </div>\n        </template>\n        <template is="dom-if" if="[[data.endpoint]]" class="style-scope ytd-rich-shelf-renderer">\n          <div id="image-container" class="style-scope ytd-rich-shelf-renderer">\n            <a class="yt-simple-endpoint style-scope ytd-rich-shelf-renderer" aria-hidden="[[thumbnailAriaHidden]]" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]" tabindex="-1" title="[[getSimpleString(data.title)]]">\n              <yt-img-shadow id="avatar" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-rich-shelf-renderer">\n              </yt-img-shadow>\n            </a>\n            <div id="title-container" class="style-scope ytd-rich-shelf-renderer">\n              <div id="title-text" class="style-scope ytd-rich-shelf-renderer">\n                <a class="yt-simple-endpoint style-scope ytd-rich-shelf-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]">\n                  <span id="title" class="style-scope ytd-rich-shelf-renderer">[[getSimpleString(data.title)]]</span>\n                </a>\n                <ytd-badge-supported-renderer id="featured-badge" badges="[[data.badges]]" hidden="[[!hasFeaturedBadge]]" class="style-scope ytd-rich-shelf-renderer">\n                </ytd-badge-supported-renderer>\n              </div>\n              <div id="subtitle-text" class="style-scope ytd-rich-shelf-renderer">\n                <ytd-badge-supported-renderer id="paygated-featured-badge" badges="[[data.badges]]" hidden="[[!hasPaygatedFeaturedBadge]]" class="style-scope ytd-rich-shelf-renderer">\n                </ytd-badge-supported-renderer>\n                <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-rich-shelf-renderer"> </yt-formatted-string>\n              </div>\n            </div>\n          </div>\n        </template>\n      </h2>\n      <div id="menu-container" class="style-scope ytd-rich-shelf-renderer">\n        <div class="cta-button-container style-scope ytd-rich-shelf-renderer" hidden="[[!hasTopCtaButton]]">\n          <ytd-button-renderer class="cta-button style-scope ytd-rich-shelf-renderer" data="[[data.ctaButton.buttonRenderer]]">\n          </ytd-button-renderer>\n        </div>\n        <div id="menu" hidden="[[isDismissedButtonHidden]]" class="style-scope ytd-rich-shelf-renderer"></div>\n        <yt-button-view-model id="previous-button" button-overrides="[[previousButtonOverride]]" data="[[data.previousButton.buttonViewModel]]" scoping-class-name="[[is]]" on-click="previousClick" class="style-scope ytd-rich-shelf-renderer">\n        </yt-button-view-model>\n        <yt-button-view-model id="next-button" button-overrides="[[nextButtonOverride]]" data="[[data.nextButton.buttonViewModel]]" scoping-class-name="[[is]]" on-click="nextClick" class="style-scope ytd-rich-shelf-renderer">\n      </yt-button-view-model>\n      </div>\n    </div>\n    <div id="cta-bottom-button-container" hidden="[[!hasBottomCtaButton]]" class="style-scope ytd-rich-shelf-renderer">\n      <ytd-button-renderer class="cta-button style-scope ytd-rich-shelf-renderer" data="[[data.ctaButton.buttonRenderer]]">\n      </ytd-button-renderer>\n    </div>\n  </div>\n  <div id="contents-container" class="style-scope ytd-rich-shelf-renderer">\n    <div id="contents" class="style-scope ytd-rich-shelf-renderer"></div>\n  </div>\n  <div class="button-container style-scope ytd-rich-shelf-renderer" hidden="[[isShowMoreHidden]]">\n    <ytd-button-renderer class="expand-collapse-button style-scope ytd-rich-shelf-renderer" data="[[computeButton(data.showMoreButton)]]" on-click="expandShelf">\n    </ytd-button-renderer>\n  </div>\n  <div class="button-container style-scope ytd-rich-shelf-renderer" hidden="[[isShowLessHidden]]">\n    <ytd-button-renderer class="expand-collapse-button style-scope ytd-rich-shelf-renderer" data="[[computeButton(data.showLessButton)]]" on-click="collapseShelf">\n    </ytd-button-renderer>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-rich-shelf-renderer"></div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);neX=F}F=neX;return F},{allowedProps:["data",
"isInnerShelf","standardUnitMinWidth"],mode:_.E6("kevlar_poly_si_batch_j028")?1:2});var jBa;_.pK(vma,"yt-slimline-survey-view-model",{props:{data:_.TS}});var $S=function(){var F=_.n.apply(this,arguments)||this;F.tileLottieAnimationRef={};F.backgroundLottieAnimationRef={};F.isOnHoverBehaviorForLottieEnabled=!0;F.useBiggerShowcaseImage=_.c("enable_desktop_search_bigger_thumbs");F.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-open-video-preview-action":"pauseLottie"};return F};
_.k($S,_.n);_.N=$S.prototype;_.N.attached=function(){this.requestElementsPerRow();this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.data&&(this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData)};
_.N.configureRendererStamper=function(){return{primaryButton:{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"},reuseComponents:!0},secondaryButton:{id:"secondary-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"},reuseComponents:!0},"data.overflowButton":{id:"overflow-button",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}},
dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}},"data.attachedSurvey":{id:"attached-survey",mapping:{slimlineSurveyViewModel:"yt-slimline-survey-view-model"}}}};
_.N.dataChanged=function(){if(this.data){this.requestElementsPerRow();this.updateButtonPalette();var F=this.hasStaticTile(this.data)||this.hasTileLottie(this.data);F!==this.hasTile&&this.set("hasTile",F);F=this.hasLogo(this.data)||!!this.data.badgeText;F!==this.hasMetadata&&this.set("hasMetadata",F);F=this.data.overflowButton?!1:F;F!==this.showLogoImage&&this.set("showLogoImage",F);this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData;this.maybeInitializeTileLottie();
this.maybeInitializeBackgroundLottie()}};
_.N.themeChanged=function(){this.data&&(this.set("currentColorData",this.isDarkTheme?this.data.darkColorData:this.data.lightColorData),this.maybeInitializeTileLottie(),this.maybeInitializeBackgroundLottie())};
_.N.currentColorChanged=function(){this.updateButtonPalette()};
_.N.computeBackgroundStyle=function(F){if(F&&this.data){var W=[];if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var E=_.KK((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);E&&W.push('background-image: url("'+E+'");')}var h;((h=F.basicColorData)==null?void 0:h.backgroundColor)!==void 0&&W.push("background-color: "+_.XC(F.basicColorData.backgroundColor)+";");return W.join("")}};
_.N.onDarkModeToggledAction=function(F){F!==this.isDarkTheme&&this.set("isDarkTheme",F)};
_.N.getCurrentLogo=function(F,W){if(F)return W?F.darkLogoImage:F.lightLogoImage};
_.N.getCurrentStaticTileImage=function(F,W){if(this.hasStaticTile(F))return F.darkTileImage?W?F.darkTileImage:F.tileImage:F.tileImage};
_.N.computeTitleStyle=function(F){if(this.data&&this.data.title&&F&&F.basicColorData&&F.basicColorData.foregroundTitleColor!==void 0)return"color:"+_.ZP(F.basicColorData.foregroundTitleColor)+";"};
_.N.computeSubtitleStyle=function(F){if(this.data&&this.data.subtitle&&F&&F.basicColorData&&F.basicColorData.foregroundBodyColor!==void 0)return"color:"+_.ZP(F.basicColorData.foregroundBodyColor)+";"};
_.N.computeSupplementalStyle=function(F){if(this.data&&this.data.supplementalText&&F&&F.supplementalTextColor!==void 0)return F=_.ZP(F.supplementalTextColor),"color:"+F+";--yt-endpoint-color:"+F+";--yt-endpoint-hover-color:"+F+";--yt-endpoint-visited-color:"+F+";--yt-formatted-string-bold-font-weight:700;"};
_.N.computeBadgeStyle=function(F){if(this.data&&this.data.badgeText&&F&&F.basicColorData&&F.basicColorData.foregroundActivatedColor!==void 0)return"color:"+_.ZP(F.basicColorData.foregroundActivatedColor)+";"};
_.N.computeDismissIconStyle=function(F){var W,E;if((F==null?0:(W=F.dismissButtonColorData)==null?0:W.foregroundTitleColor)&&(F==null?0:(E=F.dismissButtonColorData)==null?0:E.backgroundColor))return"--yt-button-color:"+_.XC(F.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.XC(F.dismissButtonColorData.backgroundColor)+";"};
_.N.computeOverflowIconStyle=function(F){var W,E;if((F==null?0:(W=F.dismissButtonColorData)==null?0:W.foregroundTitleColor)&&(F==null?0:(E=F.dismissButtonColorData)==null?0:E.backgroundColor))return"--ytd-menu-renderer-button-color:"+_.XC(F.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.XC(F.dismissButtonColorData.backgroundColor)+";--yt-spec-icon-active-other:"+_.XC(F.dismissButtonColorData.foregroundTitleColor)+";"};
_.N.computeBannerStyle=function(F){return F?F.toLowerCase().replace(/_/g,"-"):""};
_.N.computeLocation=function(F){switch(F==null?void 0:F.location){case "LOCATION_CONTEXT_SEARCH_PAGE":return"search";case "LOCATION_CONTEXT_SLOT_ZERO_HOME":return"slot-zero-home"}};
_.N.shouldShowTileSection=function(F,W,E){return!this.shouldExpandLogo(F,W,E)&&W};
_.N.shouldShowExpandedLogoSection=function(F,W,E){return this.shouldExpandLogo(F,W,E)&&F!==void 0&&this.hasLogo(F)};
_.N.shouldExpandLogo=function(F,W,E){return F&&W?!1:E>=2};
_.N.hasStaticTile=function(F){return!(F==null||!F.tileImage)};
_.N.hasTileLottie=function(F){var W;return!!(F==null?0:(W=F.tileLottie)==null?0:W.url)};
_.N.hasLogo=function(F){return this.getCurrentLogo(F,this.isDarkTheme)!==void 0};
_.N.getLogoHeight=function(F){return this.logoWithPadding(F)?"26":"20"};
_.N.getExpandedLogoHeight=function(F){return this.logoWithPadding(F)?"31":"24"};
_.N.getLogoImageId=function(F){return this.logoWithPadding(F)?"logo-image-with-padding":"logo-image"};
_.N.hasBackgroundLottie=function(F){var W;return!!(F==null?0:(W=F.backgroundLottie)==null?0:W.url)};
_.N.maybePlayLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var F,W;(F=this.tileLottieAnimationRef)==null||(W=F.lottieEl)==null||W.play();var E,h;(E=this.backgroundLottieAnimationRef)==null||(h=E.lottieEl)==null||h.play()}};
_.N.maybePauseLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var F,W;(F=this.tileLottieAnimationRef)==null||(W=F.lottieEl)==null||W.pause();var E,h;(E=this.backgroundLottieAnimationRef)==null||(h=E.lottieEl)==null||h.pause()}};
_.N.pauseLottie=function(){var F,W;(F=this.tileLottieAnimationRef)==null||(W=F.lottieEl)==null||W.pause();var E,h;(E=this.backgroundLottieAnimationRef)==null||(h=E.lottieEl)==null||h.pause();this.isOnHoverBehaviorForLottieEnabled||(this.isOnHoverBehaviorForLottieEnabled=!0)};
_.N.performPrimaryButtonAction=function(){var F,W,E;((F=this.data)==null?0:(W=F.primaryButton)==null?0:(E=W.buttonRenderer)==null?0:E.command)&&this.ytComponentBehavior.resolveCommand(this.data.primaryButton.buttonRenderer.command)};
_.N.requestElementsPerRow=function(){_.hF(this.hostElement,"yt-request-elements-per-row")};
_.N.updateButtonPalette=function(){if(this.data&&this.currentColorData){var F;((F=this.data.dismissButton)==null?0:F.buttonRenderer)&&this.currentColorData.dismissButtonColorData&&(this.data.dismissButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorData.dismissButtonColorData},this.data.dismissButton.buttonRenderer.style=void 0,this.set("dismissButton",{buttonRenderer:Object.assign({},this.data.dismissButton.buttonRenderer)}));var W;if((W=this.data.primaryButton)==null?0:W.buttonRenderer)this.currentColorData.primaryButtonColorData?
(this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorData.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0):this.currentColorData.primaryButtonStyleType&&(this.data.primaryButton.buttonRenderer.style=this.currentColorData.primaryButtonStyleType,this.data.primaryButton.buttonRenderer.colorData=void 0),this.set("primaryButton",{buttonRenderer:Object.assign({},this.data.primaryButton.buttonRenderer)});var E;if((E=this.data.secondaryButton)==
null?0:E.buttonRenderer)this.currentColorData.secondaryButtonColorData?(this.data.secondaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorData.secondaryButtonColorData},this.data.secondaryButton.buttonRenderer.style=void 0):this.currentColorData.secondaryButtonStyleType&&(this.data.secondaryButton.buttonRenderer.style=this.currentColorData.secondaryButtonStyleType,this.data.secondaryButton.buttonRenderer.colorData=void 0),this.set("secondaryButton",{buttonRenderer:Object.assign({},
this.data.secondaryButton.buttonRenderer)});var h;((h=this.data.primaryButton)==null?0:h.toggleButtonRenderer)&&this.set("primaryButton",{toggleButtonRenderer:Object.assign({},this.data.primaryButton.toggleButtonRenderer)});var d;((d=this.data.secondaryButton)==null?0:d.toggleButtonRenderer)&&this.set("secondaryButton",{toggleButtonRenderer:Object.assign({},this.data.secondaryButton.toggleButtonRenderer)})}};
_.N.maybeInitializeTileLottie=function(){if(this.hasTileLottie(this.data)){var F=this.getTileLottieDataBasedOnTheme(),W,E;if(F.url!==((W=this.tileLottiePlayerProps)==null?void 0:(E=W.animationConfig)==null?void 0:E.path)){var h,d;(h=this.tileLottieAnimationRef)==null||(d=h.lottieEl)==null||d.destroy();var V;this.isOnHoverBehaviorForLottieEnabled=!((V=F.settings)==null?0:V.autoplay);var R,M;this.tileLottiePlayerProps={animationRef:this.tileLottieAnimationRef,animationConfig:{name:this.isDarkTheme?
"STATEMENT_BANNER_TILE_LOTTIE_DARK":"STATEMENT_BANNER_TILE_LOTTIE_LIGHT",autoplay:(M=(R=F.settings)==null?void 0:R.autoplay)!=null?M:!1,loop:this.getLottieLoopValue(F.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof F.url==="string"?this.tileLottiePlayerProps.animationConfig.path=F.url:this.tileLottiePlayerProps.animationConfig.animationData=F.url}}};
_.N.getOverflowButton=function(F){return _.D(F.overflowButton,mH_)};
_.N.maybeInitializeBackgroundLottie=function(){if(this.hasBackgroundLottie(this.data)){var F=this.getBackgroundLottieDataBasedOnTheme(),W,E;if(F.url!==((W=this.backgroundLottiePlayerProps)==null?void 0:(E=W.animationConfig)==null?void 0:E.path)){var h,d;(h=this.backgroundLottieAnimationRef)==null||(d=h.lottieEl)==null||d.destroy();var V;this.isOnHoverBehaviorForLottieEnabled=!((V=F.settings)==null?0:V.autoplay);var R,M;this.backgroundLottiePlayerProps={animationRef:this.backgroundLottieAnimationRef,
animationConfig:{name:this.isDarkTheme?"STATEMENT_BANNER_BACKGROUND_LOTTIE_DARK":"STATEMENT_BANNER_BACKGROUND_LOTTIE_LIGHT",autoplay:(M=(R=F.settings)==null?void 0:R.autoplay)!=null?M:!1,loop:this.getLottieLoopValue(F.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof F.url==="string"?this.backgroundLottiePlayerProps.animationConfig.path=F.url:this.backgroundLottiePlayerProps.animationConfig.animationData=
F.url}}};
_.N.onLottieComplete=function(){if(!this.isOnHoverBehaviorForLottieEnabled){var F;((F=this.tileLottieAnimationRef)==null?void 0:F.lottieEl)!==void 0&&(this.tileLottieAnimationRef.lottieEl.loop=!0);var W;((W=this.backgroundLottieAnimationRef)==null?void 0:W.lottieEl)!==void 0&&(this.backgroundLottieAnimationRef.lottieEl.loop=!0);this.isOnHoverBehaviorForLottieEnabled=!0}};
_.N.getTileLottieDataBasedOnTheme=function(){var F;if(this.isDarkTheme&&((F=this.data)==null?0:F.darkThemeTileLottie))return this.data.darkThemeTileLottie;var W;return((W=this.data)==null?0:W.tileLottie)?this.data.tileLottie:{}};
_.N.getBackgroundLottieDataBasedOnTheme=function(){var F;if(this.isDarkTheme&&((F=this.data)==null?0:F.darkThemeBackgroundLottie))return this.data.darkThemeBackgroundLottie;var W;return((W=this.data)==null?0:W.backgroundLottie)?this.data.backgroundLottie:{}};
_.N.onUpdateElementsPerRowAction=function(F){F&&this.elementsPerRow!==F&&(this.elementsPerRow=F)};
_.N.getLottieLoopValue=function(F){return F?F.loop!==void 0?F.loop:F.loopCount?F.loopCount-1:!0:!0};
_.N.logoWithPadding=function(F){var W,E,h;return(F=(W=this.getCurrentLogo(F,this.isDarkTheme))==null?void 0:(E=W.thumbnails)==null?void 0:(h=E[0])==null?void 0:h.height)&&F%31===0?!0:!1};
$S.prototype.currentColorChanged=$S.prototype.currentColorChanged;$S.prototype.themeChanged=$S.prototype.themeChanged;$S.prototype.dataChanged=$S.prototype.dataChanged;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],$S.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],$S.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.O9),_.Y("design:type",Object)],$S.prototype,"ytdDismissibleItemBehavior",void 0);
_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],$S.prototype,"actionHandlerBehavior",void 0);_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],$S.prototype,"ytComponentBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],$S.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Object)],$S.prototype,"primaryButton",void 0);_.T([_.O(),_.Y("design:type",Object)],$S.prototype,"secondaryButton",void 0);
_.T([_.O({reflectToAttribute:!0,value:3}),_.Y("design:type",Number)],$S.prototype,"elementsPerRow",void 0);_.T([_.O({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],$S.prototype,"isDarkTheme",void 0);_.T([_.O({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],$S.prototype,"hasTile",void 0);_.T([_.O({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],$S.prototype,"hasMetadata",void 0);
_.T([_.O({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],$S.prototype,"showLogoImage",void 0);_.T([_.O(),_.Y("design:type",Object)],$S.prototype,"currentColorData",void 0);_.T([_.O({reflectToAttribute:!0,computed:"computeBannerStyle(data.style)"}),_.Y("design:type",String)],$S.prototype,"bannerStyle",void 0);_.T([_.O({reflectToAttribute:!0,computed:"computeLocation(data.shelfContext)"}),_.Y("design:type",String)],$S.prototype,"location",void 0);
_.T([_.O(),_.Y("design:type",Object)],$S.prototype,"tileLottiePlayerProps",void 0);_.T([_.O(),_.Y("design:type",Object)],$S.prototype,"tileLottieAnimationRef",void 0);_.T([_.O(),_.Y("design:type",Object)],$S.prototype,"backgroundLottiePlayerProps",void 0);_.T([_.O(),_.Y("design:type",Object)],$S.prototype,"backgroundLottieAnimationRef",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],$S.prototype,"useBiggerShowcaseImage",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],$S.prototype,"isHideEnclosingAction",void 0);_.T([_.Cz("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],$S.prototype,"dataChanged",null);_.T([_.Cz("isDarkTheme"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],$S.prototype,"themeChanged",null);
_.T([_.Cz("currentColorData"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],$S.prototype,"currentColorChanged",null);$S=_.T([_.y({is:"ytd-statement-banner-renderer",disableElementRegistration:!0})],$S);
_.r($S,"ytd-statement-banner-renderer",function(){if(jBa!==void 0)return jBa;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-statement-banner-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" on-mouseleave="maybePauseLottie" on-mouseover="maybePlayLottie" class="style-scope ytd-statement-banner-renderer">\n  <div id="statement-banner-content" class="style-scope ytd-statement-banner-renderer">\n    <div id="background-content" style$="[[computeBackgroundStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n      <ytd-lottie-player id="background-lottie" data="[[backgroundLottiePlayerProps]]" hidden="[[!hasBackgroundLottie(data)]]" class="style-scope ytd-statement-banner-renderer">\n    </ytd-lottie-player></div>\n    <div id="foreground-content" class="style-scope ytd-statement-banner-renderer">\n      <div class="showcase-image style-scope ytd-statement-banner-renderer" hidden="[[!shouldShowTileSection(data, hasTile, elementsPerRow)]]">\n        <div hidden="[[!hasTile]]" id="tile-container" on-click="performPrimaryButtonAction" class="style-scope ytd-statement-banner-renderer">\n          <yt-img-shadow id="tile-image" hidden="[[!hasStaticTile(data)]]" object-fit="CONTAIN" thumbnail="[[getCurrentStaticTileImage(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n          </yt-img-shadow>\n          <ytd-lottie-player id="tile-lottie" data="[[tileLottiePlayerProps]]" hidden="[[!hasTileLottie(data)]]" class="style-scope ytd-statement-banner-renderer">\n        </ytd-lottie-player></div>\n      </div>\n      <div class="showcase-image style-scope ytd-statement-banner-renderer" hidden="[[!shouldShowExpandedLogoSection(data, hasTile, elementsPerRow)]]" id="logo-container">\n        <div id="logo-wrapper" class="style-scope ytd-statement-banner-renderer">\n          <yt-img-shadow id="logo-image" height="[[getExpandedLogoHeight(data)]]" thumbnail="[[getCurrentLogo(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n          </yt-img-shadow>\n        </div>\n      </div>\n      <div id="details-container" class="style-scope ytd-statement-banner-renderer">\n        <div id="text-container" class="style-scope ytd-statement-banner-renderer">\n          <div id="metadata-container" hidden="[[!showLogoImage]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-img-shadow dimension="height" height$="[[getLogoHeight(data)]]" hidden="[[shouldExpandLogo(data, hasTile, elementsPerRow)]]" id$="[[getLogoImageId(data)]]" thumbnail="[[getCurrentLogo(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n            </yt-img-shadow>\n            <div id="badge-container" style$="[[computeBadgeStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n              <yt-formatted-string id="badge" text="[[data.badgeText]]" class="style-scope ytd-statement-banner-renderer"></yt-formatted-string>\n            </div>\n          </div>\n          <div id="dynamic-title" style$="[[computeTitleStyle(currentColorData)]]" on-click="performPrimaryButtonAction" class="style-scope ytd-statement-banner-renderer">\n            <yt-dynamic-sizing-formatted-string font-family="[[data.titleFontFamily]]" max-font-size="36" max-height="110" max-lines="2" min-font-size="20" text="[[data.title]]" class="style-scope ytd-statement-banner-renderer">\n            </yt-dynamic-sizing-formatted-string>\n            <div id="new-badge-container" hidden="[[!data.overflowButton]]" style$="[[computeTitleStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n              <yt-formatted-string id="badge" text="[[data.badgeText]]" class="style-scope ytd-statement-banner-renderer"></yt-formatted-string>\n            </div>\n          </div>\n          <div id="subtitle-container" style$="[[computeSubtitleStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-statement-banner-renderer"></yt-formatted-string>\n          </div>\n          <div id="supplemental-text-container" hidden="[[!data.supplementalText]]" style$="[[computeSupplementalStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-formatted-string id="supplemental-text" text="[[data.supplementalText]]" class="style-scope ytd-statement-banner-renderer">\n            </yt-formatted-string>\n          </div>\n        </div>\n        <div id="button-container" class="style-scope ytd-statement-banner-renderer">\n          <div id="button-wrapper" class="style-scope ytd-statement-banner-renderer">\n            <div id="primary-button" class="style-scope ytd-statement-banner-renderer"></div>\n            <div id="secondary-button" class="style-scope ytd-statement-banner-renderer"></div>\n          </div>\n        </div>\n      </div>\n      <div id="dismiss-button" hidden="[[data.overflowButton]]" style$="[[computeDismissIconStyle(currentColorData, elementsPerRow)]]" class="style-scope ytd-statement-banner-renderer"></div>\n      <div id="overflow-button" hidden="[[!data.overflowButton]]" style$="[[computeOverflowIconStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer"></div>\n    </div>\n  </div>\n  <div id="attached-survey" class="style-scope ytd-statement-banner-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-statement-banner-renderer"></div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return jBa=F},{mode:1});var i4H;var ZO=function(){var F=_.n.apply(this,arguments)||this;F.isSearch=!1;F.hideShelfHeader=!1;F.engagementPanel=!1;F.disableMouseScroll=!0;F.useFloorScrolling=!0;F.modernTypography=_.c("web_modern_typography");return F};
_.k(ZO,_.n);ZO.prototype.onDataChanged=function(){this.set("data.nextButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_RIGHT"},accessibility:{label:_.CY("HORIZONTAL_LIST_NEXT_LABEL",void 0,"Next")}}});this.set("data.previousButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_LEFT"},accessibility:{label:_.CY("HORIZONTAL_LIST_PREVIOUS_LABEL",void 0,"Previous")}}})};
ZO.prototype.configureRendererStamper=function(){return{"data.button":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
ZO.prototype.onDataChanged=ZO.prototype.onDataChanged;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],ZO.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],ZO.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],ZO.prototype,"isSearch",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],ZO.prototype,"hideShelfHeader",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],ZO.prototype,"engagementPanel",void 0);_.T([_.O(),_.Y("design:type",Object)],ZO.prototype,"disableMouseScroll",void 0);_.T([_.O(),_.Y("design:type",Object)],ZO.prototype,"useFloorScrolling",void 0);_.T([_.O(),_.Y("design:type",Object)],ZO.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],ZO.prototype,"modernTypography",void 0);
_.T([_.Cz("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ZO.prototype,"onDataChanged",null);ZO=_.T([_.y({is:"ytd-reel-shelf-renderer",disableElementRegistration:!0})],ZO);
_.r(ZO,"ytd-reel-shelf-renderer",function(){if(i4H!==void 0)return i4H;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title-container" hidden="[[!data.title]]" class="style-scope ytd-reel-shelf-renderer">\n  <h2 class="style-scope ytd-reel-shelf-renderer">\n    <yt-icon id="icon" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" class="style-scope ytd-reel-shelf-renderer">\n    </yt-icon>\n    <span id="title" class="style-scope ytd-reel-shelf-renderer">[[getSimpleString(data.title)]]</span>\n    <span id="title-superscript" class="style-scope ytd-reel-shelf-renderer">[[getSimpleString(data.titleSuperscript)]]</span>\n  </h2>\n  <div id="menu" class="style-scope ytd-reel-shelf-renderer"></div>\n</div>\n<div id="contents" class="style-scope ytd-reel-shelf-renderer">\n  <yt-horizontal-list-renderer data="[[data]]" disable-scroll-event-listener="[[disableMouseScroll]]" engagement-panel="[[engagementPanel]]" hide-shelf-header="[[hideShelfHeader]]" is-search="[[isSearch]]" thumbnail-height="[[thumbnailHeight]]" use-floor-scrolling="[[useFloorScrolling]]" class="style-scope ytd-reel-shelf-renderer">\n  </yt-horizontal-list-renderer>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return i4H=F},{mode:_.E6("kevlar_poly_si_batch_j028")?1:2});var roc;var Tye=_.GK(function(F){var W=F.data;F=F.useSmallFont;var E={},h={};return _.z("yt-channel-external-link-view-model",{class:"yt-channel-external-link-view-model-wiz"},_.z(_.v,{cond:function(){return W().favicon},
then:function(d){return _.z(_.T4,{data:d,className:"yt-channel-external-link-view-model-wiz__favicon",alt:"",preserveWidth:!0,preserveHeight:!0,targetWidth:24,targetHeight:24})}}),_.z("div",{class:"yt-channel-external-link-view-model-wiz__container"},_.z(_.Ab,{text:function(){return W().title},
className:_.ec("yt-channel-external-link-view-model-wiz__title",(E["yt-channel-external-link-view-model-wiz__title--title-small-font"]=F,E)),ellipsisTruncate:!0,userInput:!0}),_.z(_.Ab,{text:function(){return W().link},
className:_.ec("yt-channel-external-link-view-model-wiz__link",(h["yt-channel-external-link-view-model-wiz__link--link-small-font"]=F,h)),ellipsisTruncate:!0,linkInheritColor:!0,userInput:!0})))},"Cb");
Tye.idomCompat=!0;_.pK(Tye,"yt-channel-external-link-view-model",{props:{data:_.TS,useSmallFont:_.TS}});_.Hr("itemSectionRenderer","aboutChannelRenderer","ytd-about-channel-renderer");var XX=function(){var F=_.n.apply(this,arguments)||this;F.revealButtonClass="button";F.businessEmailDisplayState="HIDE_SECTION";return F};
_.k(XX,_.n);_.N=XX.prototype;_.N.refit=function(){var F=this;_.fz(function(){_.Nc(F.hostElement,"yt-refit-popups-action")});
_.wT(this,function(){_.Nc(F.hostElement,"yt-refit-popups-action")})};
_.N.onBusinessEmailClick=function(){this.metadata.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.lI("https://www.google.com/recaptcha/api.js?trustedtypes=true"),this.businessEmailDisplayState="CAPTCHA")};
_.N.businessEmailMetadataChanged=function(){this.revealButton||this.businessEmail||this.metadata.signInForBusinessEmail?this.metadata.signInForBusinessEmail?this.businessEmailDisplayState="SIGN_IN_REQUIRED":this.businessEmailErrorMessage?this.businessEmailDisplayState="ERROR_MESSAGE":(this.businessEmailDisplayState="REVEAL_BUTTON",this.metadata.businessEmail&&(this.businessEmail=this.metadata.businessEmail)):this.businessEmailDisplayState="HIDE_SECTION"};
_.N.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.N.configureRendererStamper=function(){return{"data.flaggingButton":{id:"flagging-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.shareChannel":{id:"share-channel",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}},"metadata.links":{id:"link-list-container",mapping:{channelExternalLinkViewModel:"yt-channel-external-link-view-model"}}}};
_.N.computeEmailHref=function(F){return"mailto:"+F};
_.N.computeSafeUrl=function(F){if(F)return _.II(F)};
_.N.linkEndpoint=function(F){return _.D(F.onTap,_.XP)};
_.N.linkEndpointToHref=function(F){return this.ytComponentBehavior.computeHref_(this.linkEndpoint(F))};
_.N.onYtServiceRequestCompleted=function(F){var W;if((W=F.detail.data)==null?0:W.businessEmail)this.businessEmail=F.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var E;if((E=F.detail.data)==null?0:E.errorMessage)this.businessEmailErrorMessage=F.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.N.onBusinessEmailCaptchaSubmit=function(){if(this.metadata.channelId&&this.metadata.onBusinessEmailRevealClickCommand){var F=this.JSC$14027_captchaTextarea.value;if(F){F={recaptcha_response_token:F,channel_id:this.metadata.channelId};var W=_.D(this.metadata.onBusinessEmailRevealClickCommand,_.XP);W&&this.ytComponentBehavior.resolveCommand(W,{form:F})}}};
_.N.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.Sn.Object.defineProperties(XX.prototype,{metadata:{configurable:!0,enumerable:!0,get:function(){var F;return _.D((F=this.data)==null?void 0:F.metadata,uci)}},
revealButton:{configurable:!0,enumerable:!0,get:function(){return _.D(this.metadata.businessEmailRevealButton,_.fx)}},
channelDisplayUrl:{configurable:!0,enumerable:!0,get:function(){if(this.metadata.displayCanonicalChannelUrl)return this.metadata.displayCanonicalChannelUrl;if(this.metadata.canonicalChannelUrl){var F=new URL(this.metadata.canonicalChannelUrl);return F.host+F.pathname}}},
formattedDescription:{configurable:!0,enumerable:!0,get:function(){return this.metadata.description?{simpleText:this.metadata.description}:void 0}},
shouldRendereVerifiedPhoneStatus:{configurable:!0,enumerable:!0,get:function(){return this.metadata.phoneVerifiedLabel!==""&&this.learnMoreCommand!==void 0}},
learnMoreCommand:{configurable:!0,enumerable:!0,get:function(){return _.D(this.metadata.learnMoreOnTap,_.XP)}}});
XX.prototype.onYtServiceRequestCompleted=XX.prototype.onYtServiceRequestCompleted;XX.prototype.businessEmailMetadataChanged=XX.prototype.businessEmailMetadataChanged;XX.prototype.refit=XX.prototype.refit;_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],XX.prototype,"ytComponentBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],XX.prototype,"ytRendererBehavior",void 0);
_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],XX.prototype,"ytRendererstamperBehavior",void 0);_.T([_.gQ("#g-recaptcha-response"),_.Y("design:type",HTMLTextAreaElement)],XX.prototype,"JSC$14027_captchaTextarea",void 0);_.T([_.O(),_.Y("design:type",Object)],XX.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Object)],XX.prototype,"revealButtonClass",void 0);_.T([_.a("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],XX.prototype,"metadata",null);
_.T([_.a("metadata"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],XX.prototype,"revealButton",null);_.T([_.a("metadata"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],XX.prototype,"channelDisplayUrl",null);_.T([_.Cz("metadata"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],XX.prototype,"refit",null);_.T([_.a("metadata"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],XX.prototype,"formattedDescription",null);
_.T([_.a("metadata","learnMoreCommand"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],XX.prototype,"shouldRendereVerifiedPhoneStatus",null);_.T([_.a("metadata"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],XX.prototype,"learnMoreCommand",null);_.T([_.O(),_.Y("design:type",String)],XX.prototype,"businessEmailDisplayState",void 0);_.T([_.O(),_.Y("design:type",String)],XX.prototype,"businessEmail",void 0);
_.T([_.O(),_.Y("design:type",String)],XX.prototype,"businessEmailErrorMessage",void 0);_.T([_.Cz("metadata"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],XX.prototype,"businessEmailMetadataChanged",null);_.T([_.R4("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],XX.prototype,"onYtServiceRequestCompleted",null);
XX=_.T([_.y({is:"ytd-about-channel-renderer",disableElementRegistration:!0})],XX);
_.r(XX,"ytd-about-channel-renderer",function(){if(roc!==void 0)return roc;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-about-channel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="about-container" class="style-scope ytd-about-channel-renderer">\n  <div id="header-row" hidden="[[!metadata.aboutPanelTitle]]" class="style-scope ytd-about-channel-renderer">\n    <h1 class="style-scope ytd-about-channel-renderer">[[metadata.aboutPanelTitle]]</h1>\n    <div id="dismiss-button" class="style-scope ytd-about-channel-renderer"></div>\n  </div>\n\n  <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.descriptionLabel]]" hidden="[[!formattedDescription]]">\n  </yt-attributed-string>\n  <yt-attributed-string id="description-container" class="about-section style-scope ytd-about-channel-renderer" data="[[formattedDescription]]" hidden="[[!formattedDescription]]" user-input="true">\n  </yt-attributed-string>\n\n  <div id="bio-container" class="about-section style-scope ytd-about-channel-renderer" hidden="[[!metadata.formattedBio]]">\n    <h2 class="subheadline style-scope ytd-about-channel-renderer">[[metadata.artistBioLabel]]</h2>\n    <yt-attributed-string id="bio-container" class="about-section style-scope ytd-about-channel-renderer" data="[[metadata.artistBio]]" hidden="[[!metadata.artistBio]]" user-input="true">\n    </yt-attributed-string>\n    <p class="style-scope ytd-about-channel-renderer">[[metadata.artistBio]]</p>\n  </div>\n\n  <div id="links-section" hidden="[[!metadata.links]]" class="style-scope ytd-about-channel-renderer">\n    <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.customLinksLabel]]">\n    </yt-attributed-string>\n    <div id="link-list-container" class="style-scope ytd-about-channel-renderer">\n    </div>\n  </div>\n  <div id="custom-links-section" hidden="[[!metadata.customLinks]]" class="style-scope ytd-about-channel-renderer">\n    <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.customLinksLabel]]">\n    </yt-attributed-string>\n    <table id="links-container" class="about-section style-scope ytd-about-channel-renderer">\n      <template is="dom-repeat" items="[[metadata.customLinks]]" as="link" class="style-scope ytd-about-channel-renderer">\n        <tr hidden="[[!linkEndpointToHref(link)]]" class="style-scope ytd-about-channel-renderer">\n          <td class="image-container style-scope ytd-about-channel-renderer">\n            <yt-image data="[[link.favicon]]" width="32" class="style-scope ytd-about-channel-renderer"></yt-image>\n          </td>\n          <td class="href-container style-scope ytd-about-channel-renderer">\n            <a class="yt-simple-endpoint style-scope ytd-about-channel-renderer" href$="[[linkEndpointToHref(link)]]" data="[[linkEndpoint(link)]]">[[link.label]]</a>\n          </td>\n        </tr>\n      </template>\n    </table>\n  </div>\n\n  <div id="additional-info-container" class="about-section style-scope ytd-about-channel-renderer">\n    <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.additionalInfoLabel]]"></yt-attributed-string>\n    <table class="style-scope ytd-about-channel-renderer">\n      <tbody class="style-scope ytd-about-channel-renderer"><tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[equals(businessEmailDisplayState, \'HIDE_SECTION\')]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon icon="mail" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'SIGN_IN_REQUIRED\')]]" class="style-scope ytd-about-channel-renderer">\n          <yt-attributed-string data="[[metadata.signInForBusinessEmail]]" class="style-scope ytd-about-channel-renderer"></yt-attributed-string>\n        </td>\n\n        <td id="view-email-button-container" hidden="[[!equals(businessEmailDisplayState, \'REVEAL_BUTTON\')]]" class="style-scope ytd-about-channel-renderer">\n          <yt-button-view-model classes="[[revealButtonClass]]" data="[[revealButton]]" scoping-class-name="[[is]]" on-click="onBusinessEmailClick" class="style-scope ytd-about-channel-renderer">\n          </yt-button-view-model>\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'CAPTCHA\')]]" class="style-scope ytd-about-channel-renderer">\n          \n          <div id="recaptcha" class="g-recaptcha style-scope ytd-about-channel-renderer" data-sitekey$="[[recaptchaSiteKey()]]"></div>\n          <button id="submit-btn" class="yt-uix-button yt-uix-button-size-default yt-uix-button-primary style-scope ytd-about-channel-renderer" on-click="onBusinessEmailCaptchaSubmit">\n            <span class="yt-uix-button-content style-scope ytd-about-channel-renderer">[[metadata.businessEmailSubmitCaptchaLabel]] </span>\n          </button>\n        </td>\n        <td hidden="[[!equals(businessEmailDisplayState, \'ERROR_MESSAGE\')]]" class="style-scope ytd-about-channel-renderer">\n          [[businessEmailErrorMessage]]\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'BUSINESS_EMAIL\')]]" class="style-scope ytd-about-channel-renderer">\n          <a id="email" class="yt-simple-endpoint style-scope ytd-about-channel-renderer" href$="[[computeEmailHref(businessEmail)]]" target="_blank">[[businessEmail]]</a>\n        </td>\n      </tr>\n\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!shouldRendereVerifiedPhoneStatus]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon icon="phone" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">\n          <span class="style-scope ytd-about-channel-renderer">[[metadata.phoneVerifiedLabel]]</span>\n          <a class="yt-simple-endpoint phone-status-info style-scope ytd-about-channel-renderer" href$="[[computeHref_(learnMoreCommand)]]" target="_blank">\n            <yt-icon icon="info" class="style-scope ytd-about-channel-renderer"></yt-icon>\n          </a>\n        </td>\n      </tr>\n\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!channelDisplayUrl]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon icon="language" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">\n          <a class="yt-simple-endpoint style-scope ytd-about-channel-renderer" href$="[[metadata.canonicalChannelUrl]]">[[channelDisplayUrl]]</a>\n        </td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.country]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon hidden="[[!metadata.country]]" icon="privacy_public" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">[[metadata.country]]</td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.joinedDateText]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon hidden="[[!metadata.joinedDateText]]" icon="info_outline" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-attributed-string data="[[metadata.joinedDateText]]" class="style-scope ytd-about-channel-renderer"></yt-attributed-string>\n        </td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.subscriberCountText]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon icon="person_radar" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">[[metadata.subscriberCountText]]</td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.videoCountText]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon hidden="[[!metadata.videoCountText]]" icon="my_videos" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">[[metadata.videoCountText]]</td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.viewCountText]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon hidden="[[!metadata.viewCountText]]" icon="trending_up" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">[[metadata.viewCountText]]</td>\n      </tr>\n    </tbody></table>\n  </div>\n\n  <div id="button-container" class="style-scope ytd-about-channel-renderer">\n    <div id="share-channel" class="button style-scope ytd-about-channel-renderer"></div>\n    <div id="flagging-button" class="button style-scope ytd-about-channel-renderer"></div>\n  </div>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return roc=F},{mode:1});var oeT;var Hq=function(){return _.n.apply(this,arguments)||this};
_.k(Hq,_.n);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Hq.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],Hq.prototype,"data",void 0);Hq=_.T([_.y({is:"ytd-channel-list-sub-menu-avatar-renderer",disableElementRegistration:!0})],Hq);
_.r(Hq,"ytd-channel-list-sub-menu-avatar-renderer",function(){if(oeT!==void 0)return oeT;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-list-sub-menu-avatar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-channel-list-sub-menu-avatar-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <yt-img-shadow thumbnail="[[data.thumbnail]]" width="80" class="style-scope ytd-channel-list-sub-menu-avatar-renderer">\n  </yt-img-shadow>\n  <div id="title" class="style-scope ytd-channel-list-sub-menu-avatar-renderer">[[getSimpleString(data.title)]]</div>\n</a>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return oeT=F},{mode:1});var Gba;var Pq=function(){return _.n.apply(this,arguments)||this};
_.k(Pq,_.n);Pq.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{channelListSubMenuAvatarRenderer:"ytd-channel-list-sub-menu-avatar-renderer"}}}};
_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],Pq.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],Pq.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",String)],Pq.prototype,"aligment",void 0);Pq=_.T([_.y({is:"ytd-channel-list-sub-menu-renderer",disableElementRegistration:!0})],Pq);
_.r(Pq,"ytd-channel-list-sub-menu-renderer",function(){if(Gba!==void 0)return Gba;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-list-sub-menu-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-channel-list-sub-menu-renderer"></div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return Gba=
F},{mode:1});var Y3i;var JI=function(){return _.n.apply(this,arguments)||this};
_.k(JI,_.n);JI.prototype.configureRendererStamper=function(){return{"data.playAllButton":{id:"play-all",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.rightButtons":{id:"right-buttons",mapping:{buttonRenderer:"ytd-button-renderer",menuRenderer:"ytd-menu-renderer"}},"data.sortSetting":{id:"sort-menu",mapping:{sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",params:{isRightAligned:!0}}}}}};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],JI.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],JI.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],JI.prototype,"data",void 0);JI=_.T([_.y({is:"ytd-channel-sub-menu-renderer",disableElementRegistration:!0})],JI);
_.r(JI,"ytd-channel-sub-menu-renderer",function(){if(Y3i!==void 0)return Y3i;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-sub-menu-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="primary-items" class="style-scope ytd-channel-sub-menu-renderer">\n  <yt-dropdown-menu class="content-sub-menu style-scope ytd-channel-sub-menu-renderer" data="[[data.contentTypeSubMenuItems]]" parent-tracking-params="[[data.trackingParams]]" use-label="">\n  </yt-dropdown-menu>\n  <div id="play-all" class="style-scope ytd-channel-sub-menu-renderer"></div>\n</div>\n<div id="sort-menu" class="style-scope ytd-channel-sub-menu-renderer"></div>\n<div id="right-buttons" class="style-scope ytd-channel-sub-menu-renderer"></div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return Y3i=F},{mode:1});var wnB;var uqT;var aR=function(){var F=_.n.apply(this,arguments)||this;F.isCompact=!1;return F};
_.k(aR,_.n);_.Sn.Object.defineProperties(aR.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isCompact?112:80}},
openNewWindow:{configurable:!0,enumerable:!0,get:function(){var F,W;return((W=_.D((F=this.data)==null?void 0:F.endpoint,_.T5))==null?void 0:W.target)==="TARGET_NEW_WINDOW"}}});
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],aR.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],aR.prototype,"componentBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],aR.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],aR.prototype,"isCompact",void 0);_.T([_.a("isCompact"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],aR.prototype,"thumbnailWidth",null);
_.T([_.a("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],aR.prototype,"openNewWindow",null);aR=_.T([_.y({is:"ytd-media-lockup-renderer",disableElementRegistration:!0})],aR);
_.r(aR,"ytd-media-lockup-renderer",function(){if(uqT!==void 0)return uqT;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-media-lockup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="lockup-container" class="yt-simple-endpoint style-scope ytd-media-lockup-renderer" data="[[data.endpoint]]" href$="[[computeOptionalHref_(data.endpoint)]]">\n  <div id="thumbnail-container" class="style-scope ytd-media-lockup-renderer">\n    <yt-img-shadow id="thumbnail" alt="[[getSimpleString(data.title)]]" fit-width="" thumbnail="[[data.thumbnailDetails]]" width="[[thumbnailWidth]]" class="style-scope ytd-media-lockup-renderer">\n    </yt-img-shadow>\n  </div>\n  <div id="description" class="style-scope ytd-media-lockup-renderer">\n    <div id="title" class="style-scope ytd-media-lockup-renderer">[[getSimpleString(data.title)]]</div>\n    <div id="subtitle" class="style-scope ytd-media-lockup-renderer">\n      <span id="subtitle-text" class="style-scope ytd-media-lockup-renderer">[[getSimpleString(data.subtitle)]]</span>\n      \n      <yt-icon class="media-lockup-icon style-scope ytd-media-lockup-renderer" default-to-filled="true" hidden="[[!openNewWindow]]" icon="open_in_new" size="15"></yt-icon>\n    </div>\n  </div>\n</a>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return uqT=F},{mode:1});var S3_;var fs=function(){return _.n.apply(this,arguments)||this};
_.k(fs,_.n);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],fs.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],fs.prototype,"componentBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],fs.prototype,"data",void 0);fs=_.T([_.y({is:"ytd-structured-description-channel-lockup-renderer",disableElementRegistration:!0})],fs);
_.r(fs,"ytd-structured-description-channel-lockup-renderer",function(){if(S3_!==void 0)return S3_;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-structured-description-channel-lockup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="thumbnail-container" class="style-scope ytd-structured-description-channel-lockup-renderer">\n  <ytd-thumbnail data="[[data]]" width="[[data.thumbnailWidth]]" class="style-scope ytd-structured-description-channel-lockup-renderer">\n  </ytd-thumbnail>\n</div>\n<a id="text-wrapper" class="yt-simple-endpoint style-scope ytd-structured-description-channel-lockup-renderer" data="[[data.navigationEndpoint]]" href$="[[computeOptionalHref_(data.navigationEndpoint)]]">\n  <div id="description" class="style-scope ytd-structured-description-channel-lockup-renderer">\n    <div id="title" class="style-scope ytd-structured-description-channel-lockup-renderer">[[getSimpleString(data.title)]]</div>\n    <div id="subscriber-count" class="style-scope ytd-structured-description-channel-lockup-renderer">\n      [[getSimpleString(data.subscriberCountText)]]\n    </div>\n  </div>\n</a>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return S3_=F},{mode:1});var pn_;var Ov=function(){var F=_.n.apply(this,arguments)||this;F.isCompact=!1;F.collections=_.c("web_modern_collections_v2");F.collectionsStackColor=_.c("modernize_structured_description_playlist_lockups_v2");return F};
_.k(Ov,_.n);Ov.prototype.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlaySidePanelRenderer:{component:"ytd-thumbnail-overlay-side-panel-renderer",params:{isCompact:!0}},thumbnailOverlayBottomPanelRenderer:{component:"ytd-thumbnail-overlay-bottom-panel-renderer"}},initialRenderPriority:_.c("defer_overlays")?1:void 0,waitForSignal:"eocs"}}};
_.Sn.Object.defineProperties(Ov.prototype,{twoLineTitle:{configurable:!0,enumerable:!0,get:function(){var F;return((F=this.data)==null?void 0:F.maxLinesTitle)===2}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var F,W,E,h,d,V;return{thumbnailSize:"small",doubleStack:!1,experimentEnabled:this.collections,sampledThumbnailColor:this.collectionsStackColor?(F=this.data)==null?void 0:(W=F.thumbnail)==null?void 0:W.sampledThumbnailColor:void 0,darkColorPalette:this.collectionsStackColor?(E=this.data)==null?void 0:(h=E.thumbnail)==null?void 0:h.darkColorPalette:void 0,vibrantColorPalette:this.collectionsStackColor?(d=this.data)==null?void 0:(V=d.thumbnail)==
null?void 0:V.vibrantColorPalette:void 0}}}});
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Ov.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],Ov.prototype,"componentBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],Ov.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],Ov.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Ov.prototype,"showSidePanelThumbnailOverlay",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],Ov.prototype,"isCompact",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Ov.prototype,"collections",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],Ov.prototype,"collectionsStackColor",void 0);_.T([_.a("data"),_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Ov.prototype,"twoLineTitle",null);
_.T([_.a("data","collections","collectionsStackColor"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Ov.prototype,"collectionStack",null);Ov=_.T([_.y({is:"ytd-structured-description-playlist-lockup-renderer",disableElementRegistration:!0})],Ov);
_.r(Ov,"ytd-structured-description-playlist-lockup-renderer",function(){if(pn_!==void 0)return pn_;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-structured-description-playlist-lockup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="lockup-container" class="yt-simple-endpoint style-scope ytd-structured-description-playlist-lockup-renderer" data="[[data.navigationEndpoint]]" href$="[[computeOptionalHref_(data.navigationEndpoint)]]">\n  <yt-collections-stack data="[[collectionStack]]" class="style-scope ytd-structured-description-playlist-lockup-renderer"></yt-collections-stack>\n  <div id="playlist-thumbnail" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n    <yt-img-shadow id="thumbnail" alt="[[getSimpleString(data.title)]]" thumbnail="[[data.thumbnail]]" width="[[data.thumbnailWidth]]" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n    </yt-img-shadow>\n    <span id="overlay" hidden="[[showSidePanelThumbnailOverlay]]" class="style-scope ytd-structured-description-playlist-lockup-renderer">[[getSimpleString(data.videoCountShortText)]]</span>\n    <div id="overlays" class="style-scope ytd-structured-description-playlist-lockup-renderer"></div>\n  </div>\n</a>\n<div id="description" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n  <div id="title" class="style-scope ytd-structured-description-playlist-lockup-renderer">[[getSimpleString(data.title)]]</div>\n  <div id="subtitle" class="style-scope ytd-structured-description-playlist-lockup-renderer">[[getSimpleString(data.shortBylineText)]]</div>\n  <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" role="text" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n  </ytd-badge-supported-renderer>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return pn_=F},{mode:1});var msO;var bt=function(){return _.n.apply(this,arguments)||this};
_.k(bt,_.n);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],bt.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],bt.prototype,"componentBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],bt.prototype,"data",void 0);bt=_.T([_.y({is:"ytd-structured-description-video-lockup-renderer",disableElementRegistration:!0})],bt);
_.r(bt,"ytd-structured-description-video-lockup-renderer",function(){if(msO!==void 0)return msO;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-structured-description-video-lockup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-thumbnail data="[[data]]" hovered="[[lockupIsHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" width="[[data.thumbnailWidth]]" class="style-scope ytd-structured-description-video-lockup-renderer">\n</ytd-thumbnail>\n<a id="text-wrapper" class="yt-simple-endpoint style-scope ytd-structured-description-video-lockup-renderer" data="[[data.navigationEndpoint]]" href$="[[computeOptionalHref_(data.navigationEndpoint)]]">\n  <div id="description" class="style-scope ytd-structured-description-video-lockup-renderer">\n    <div id="title" class="style-scope ytd-structured-description-video-lockup-renderer">[[getSimpleString(data.title)]]</div>\n    <div id="subtitle" class="style-scope ytd-structured-description-video-lockup-renderer">[[getSimpleString(data.shortBylineText)]]</div>\n    <yt-formatted-string id="metadata-details" disable-upgrade$="[[!data.metadataDetails]]" hidden="[[!data.metadataDetails]]" no-endpoints="" text="[[data.metadataDetails]]" class="style-scope ytd-structured-description-video-lockup-renderer">\n    </yt-formatted-string>\n  </div>\n</a>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return msO=F},{mode:2});var lt=function(){return _.n.apply(this,arguments)||this};
_.k(lt,_.n);
lt.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{structuredDescriptionPlaylistLockupRenderer:{component:"ytd-structured-description-playlist-lockup-renderer",params:{showSidePanelThumbnailOverlay:!0,isCompact:!0}},structuredDescriptionVideoLockupRenderer:"ytd-structured-description-video-lockup-renderer",structuredDescriptionChannelLockupRenderer:"ytd-structured-description-channel-lockup-renderer",mediaLockupRenderer:{component:"ytd-media-lockup-renderer",params:{isCompact:!0}}}}}};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],lt.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],lt.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],lt.prototype,"data",void 0);lt=_.T([_.y({is:"ytd-compact-infocard-renderer",disableElementRegistration:!0})],lt);
_.r(lt,"ytd-compact-infocard-renderer",function(){if(wnB!==void 0)return wnB;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-infocard-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-compact-infocard-renderer"></div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return wnB=F},{mode:1});var KuM;var ns=function(){var F=_.n.apply(this,arguments)||this;F.useModernCollectionsV2=_.c("web_modern_collections_v2");return F};
_.k(ns,_.n);ns.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.Sn.Object.defineProperties(ns.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.c("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.c("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
customThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.c("kevlar_watch_feed_big_thumbs")?"":"94"}}});
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],ns.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],ns.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.O9),_.Y("design:type",Object)],ns.prototype,"ytdDismissibleItemBehavior",void 0);_.T([_.J(_.am),_.Y("design:type",Object)],ns.prototype,"ytdReduxBehavior",void 0);_.T([_.O({selector:_.o6}),_.Y("design:type",Object)],ns.prototype,"isGridViewEnabled",void 0);
_.T([_.a("isGridViewEnabled"),_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],ns.prototype,"watchFeedBigThumbs",null);_.T([_.a("isGridViewEnabled","data"),_.O({reflectToAttribute:!0,value:"168"}),_.Y("design:type",String),_.Y("design:paramtypes",[])],ns.prototype,"thumbnailWidth",null);_.T([_.a("isGridViewEnabled","data"),_.O({reflectToAttribute:!0,value:"94"}),_.Y("design:type",String),_.Y("design:paramtypes",[])],ns.prototype,"customThumbnailSize",null);
_.T([_.O(),_.Y("design:type",Object)],ns.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],ns.prototype,"useModernCollectionsV2",void 0);ns=_.T([_.y({is:"ytd-compact-playlist-renderer",disableElementRegistration:!0})],ns);
_.r(ns,"ytd-compact-playlist-renderer",function(){if(KuM!==void 0)return KuM;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-playlist-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-compact-playlist-renderer">\n  <ytd-playlist-thumbnail custom-thumbnail-size="[[customThumbnailSize]]" data="[[data]]" height="94" watch-feed-thumbnail="[[watchFeedBigThumbs]]" width="[[thumbnailWidth]]" class="style-scope ytd-compact-playlist-renderer">\n  </ytd-playlist-thumbnail>\n  <div class="details style-scope ytd-compact-playlist-renderer">\n    <div class="metadata style-scope ytd-compact-playlist-renderer">\n      <a id="title" class="yt-simple-endpoint style-scope ytd-compact-playlist-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n        <h3 class="style-scope ytd-compact-playlist-renderer">\n          <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-compact-playlist-renderer">\n          </ytd-badge-supported-renderer>\n          <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-compact-playlist-renderer">\n            [[getSimpleString(data.title)]]\n          </span>\n        </h3>\n        <div class="secondary-metadata style-scope ytd-compact-playlist-renderer">\n          <ytd-video-meta-block class="compact style-scope ytd-compact-playlist-renderer" data="[[data]]" no-endpoints="" watch-feed-big-thumbs="[[watchFeedBigThumbs]]">\n          </ytd-video-meta-block>\n          <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-compact-playlist-renderer">\n          </ytd-badge-supported-renderer>\n        </div>\n      </a>\n    </div>\n    <div id="menu" class="style-scope ytd-compact-playlist-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-compact-playlist-renderer"></div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return KuM=F},{mode:1});var FDz;var yq=function(){var F=_.n.apply(this,arguments)||this;F.darkerDarkTheme=_.c("web_darker_dark_theme");F.roundedContainer=!0;F.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return F};
_.k(yq,_.n);_.N=yq.prototype;_.N.attached=function(){this.requestElementsPerRow()};
_.N.configureRendererStamper=function(){return{"data.actionButton":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.N.dataChanged=function(){this.hideThumbnail=!1;this.requestElementsPerRow()};
_.N.computeViewStyle=function(F){return F.style?F.style:"COMPACT_PROMOTED_ITEM_STYLE_UNSPECIFIED"};
_.N.onUpdateElementsPerRowAction=function(F){this.hideThumbnail=this.viewStyle==="COMPACT_PROMOTED_ITEM_STYLE_RICH_GRID"&&F===1};
_.N.requestElementsPerRow=function(){_.hF(this.hostElement,"yt-request-elements-per-row")};
yq.prototype.dataChanged=yq.prototype.dataChanged;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],yq.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],yq.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.O9),_.Y("design:type",Object)],yq.prototype,"ytdDismissibleItemBehavior",void 0);_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],yq.prototype,"actionHandlerBehavior",void 0);
_.T([_.O(),_.Y("design:type",Object)],yq.prototype,"data",void 0);_.T([_.O({value:!1}),_.Y("design:type",Boolean)],yq.prototype,"hideThumbnail",void 0);_.T([_.O({reflectToAttribute:!0,computed:"computeViewStyle(data)"}),_.Y("design:type",String)],yq.prototype,"viewStyle",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],yq.prototype,"darkerDarkTheme",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],yq.prototype,"roundedContainer",void 0);
_.T([_.Cz("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],yq.prototype,"dataChanged",null);yq=_.T([_.y({is:"ytd-compact-promoted-item-renderer",disableElementRegistration:!0})],yq);
_.r(yq,"ytd-compact-promoted-item-renderer",function(){if(FDz!==void 0)return FDz;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-promoted-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-compact-promoted-item-renderer">\n<ytd-thumbnail data="[[data]]" hidden$="[[hideThumbnail]]" width="100" class="style-scope ytd-compact-promoted-item-renderer"></ytd-thumbnail>\n  <div id="content" class="style-scope ytd-compact-promoted-item-renderer">\n    <div id="info" class="style-scope ytd-compact-promoted-item-renderer">\n      <h3 class="style-scope ytd-compact-promoted-item-renderer">\n        <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-compact-promoted-item-renderer"></yt-formatted-string>\n      </h3>\n      <div id="subtitle-container" class="style-scope ytd-compact-promoted-item-renderer">\n        <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-compact-promoted-item-renderer"></yt-formatted-string>\n        <ytd-badge-supported-renderer id="featured-badge" hidden="[[!data.badge]]" top-standalone-badge="[[data.badge]]" class="style-scope ytd-compact-promoted-item-renderer">\n        </ytd-badge-supported-renderer>\n      </div>\n    </div>\n    <div id="button" class="style-scope ytd-compact-promoted-item-renderer"></div>\n  </div>\n  <div id="dismiss-button" class="style-scope ytd-compact-promoted-item-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-compact-promoted-item-renderer"></div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return FDz=F},{mode:1});var WDi;var j4=function(){var F=_.n.apply(this,arguments)||this;F.collections=_.c("web_modern_collections_v2");return F};
_.k(j4,_.n);j4.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
j4.prototype.attached=function(){this.hostElement.classList.add("use-ellipsis")};
j4.prototype.onYtNavigate=function(F,W){var E=this;if(W.endpoint===this.data.navigationEndpoint&&this.get("endpoint.watchEndpoint.continuePlayback",W)){var h=this.get("watchEndpoint.videoId",W.endpoint),d=_.Nc(this.hostElement,"yt-get-current-video-id-action")[0];_.c("kevlar_mix_handle_first_endpoint_different")&&h&&d&&h!==d||(F.stopPropagation(),_.E8().getPlayerPromise().then(function(V){if(V.getPlayerState()===0&&E.data.secondaryNavigationEndpoint)var R=E.data.secondaryNavigationEndpoint;else{R=
Object.assign({},W.endpoint);var M=_.D(R.commandMetadata,_.m1);M&&(V=Math.floor(V.getCurrentTime()),M.url=_.wo(M.url,{t:V}),!_.c("kevlar_add_start_time_to_mix_endpoint_killswitch")&&(M=_.D(R,_.GM)))&&(M.startTimeSeconds=V)}_.hF(E.hostElement,"yt-navigate",{endpoint:R})}))}};
_.Sn.Object.defineProperties(j4.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.c("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.c("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var F,W,E,h,d,V;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(F=this.data)==null?void 0:(W=F.thumbnail)==null?void 0:W.sampledThumbnailColor,vibrantColorPalette:(E=this.data)==null?void 0:(h=E.thumbnail)==null?void 0:h.vibrantColorPalette,darkColorPalette:(d=this.data)==null?void 0:(V=d.thumbnail)==null?void 0:V.darkColorPalette,experimentEnabled:this.collections}}}});
j4.prototype.onYtNavigate=j4.prototype.onYtNavigate;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],j4.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.eB.YtEndpointBehavior),_.Y("design:type",Object)],j4.prototype,"ytEndpointBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],j4.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.O9),_.Y("design:type",Object)],j4.prototype,"ytdDismissibleItemBehavior",void 0);
_.T([_.J(_.rt),_.Y("design:type",Object)],j4.prototype,"ytdLockupBehavior",void 0);_.T([_.J(_.am),_.Y("design:type",Object)],j4.prototype,"ytdReduxBehavior",void 0);_.T([_.O({selector:_.o6}),_.Y("design:type",Object)],j4.prototype,"isGridViewEnabled",void 0);_.T([_.a("isGridViewEnabled"),_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],j4.prototype,"watchFeedBigThumbs",null);
_.T([_.a("isGridViewEnabled"),_.O({reflectToAttribute:!0}),_.Y("design:type",String),_.Y("design:paramtypes",[])],j4.prototype,"thumbnailWidth",null);_.T([_.O(),_.Y("design:type",Object)],j4.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],j4.prototype,"collections",void 0);_.T([_.a("data","collections"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],j4.prototype,"collectionStack",null);
_.T([_.R4("yt-navigate"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],j4.prototype,"onYtNavigate",null);j4=_.T([_.y({is:"ytd-compact-radio-renderer",disableElementRegistration:!0})],j4);
_.r(j4,"ytd-compact-radio-renderer",function(){if(WDi!==void 0)return WDi;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-radio-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-compact-radio-renderer">\n  <div class="modern-collection-parent style-scope ytd-compact-radio-renderer">\n    <yt-collections-stack data="[[collectionStack]]" class="style-scope ytd-compact-radio-renderer"></yt-collections-stack>\n    <ytd-thumbnail data="[[data]]" height="94" hovered="[[lockupIsHovered]]" use-hovered-property="" watch-feed-thumbnail="[[watchFeedBigThumbs]]" width="[[thumbnailWidth]]" class="style-scope ytd-compact-radio-renderer">\n    </ytd-thumbnail>\n  </div>\n  <div class="details style-scope ytd-compact-radio-renderer">\n    <div class="metadata style-scope ytd-compact-radio-renderer">\n      <a id="title" class="yt-simple-endpoint style-scope ytd-compact-radio-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n        <h3 class="style-scope ytd-compact-radio-renderer">\n          <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-compact-radio-renderer">\n          </ytd-badge-supported-renderer>\n          <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-compact-radio-renderer">\n            [[getSimpleString(data.title)]]\n          </span>\n        </h3>\n        <ytd-video-meta-block class="compact style-scope ytd-compact-radio-renderer" data="[[data]]" no-endpoints="" radio-meta="">\n        </ytd-video-meta-block>\n      </a>\n    </div>\n    <div id="menu" class="style-scope ytd-compact-radio-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-compact-radio-renderer"></div>\n<yt-interaction id="interaction" class="extended style-scope ytd-compact-radio-renderer"></yt-interaction>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return WDi=F},{mode:1});var EMu;var rj=function(){return _.n.apply(this,arguments)||this};
_.k(rj,_.n);rj.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
rj.prototype.computeRendererStyle=function(F){return F.style?F.style.split("STYLE_")[1].replace(/_/g,"-").toLowerCase():""};
_.T([_.O(),_.Y("design:type",Object)],rj.prototype,"data",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],rj.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],rj.prototype,"rendererBehavior",void 0);_.T([_.O({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.Y("design:type",String)],rj.prototype,"rendererStyle",void 0);
rj=_.T([_.y({is:"ytd-compact-text-promo-renderer",disableElementRegistration:!0})],rj);
_.r(rj,"ytd-compact-text-promo-renderer",function(){if(EMu!==void 0)return EMu;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-text-promo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-badge-supported-renderer id="featured-badge" hidden="[[!data.badge]]" top-standalone-badge="[[data.badge]]" class="style-scope ytd-compact-text-promo-renderer">\n</ytd-badge-supported-renderer>\n<yt-formatted-string class="title style-scope ytd-compact-text-promo-renderer" text="[[data.title]]">\n</yt-formatted-string>\n<yt-formatted-string class="subtitle style-scope ytd-compact-text-promo-renderer" force-default-style="" text="[[data.subTitle]]">\n</yt-formatted-string>\n<div id="action-button" class="style-scope ytd-compact-text-promo-renderer"></div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return EMu=F},{mode:1});var hqp;var TZ=function(){var F=_.n.apply(this,arguments)||this;F.isShortsStyle=!1;return F};
_.k(TZ,_.n);_.N=TZ.prototype;_.N.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},"data.buttons":{id:"buttons",mapping:{toggleButtonRenderer:"ytd-toggle-button-renderer",upcomingEventReminderButtonRenderer:"ytd-upcoming-event-reminder-button-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.N.disableInteractionChanged=function(){this.isShortsStyle||(this.disableInteraction?_.hF(this.hostElement,"yt-disable-lockup-interaction"):_.hF(this.hostElement,"yt-enable-lockup-interaction"))};
_.N.isMetaBlockEmpty=function(F){return!F||!F.longBylineText&&!F.shortBylineText&&!F.shortViewCountText&&!F.viewCountText};
_.N.computeHasOneLineTitle=function(F){return this.forceOneLineTitle||!(F==null||!F.buttons)};
_.N.computeDisableInteraction=function(){var F;return!((F=this.data)==null?0:F.navigationEndpoint)};
_.N.hasSingularTopStandaloneBadge=function(){var F;return!((F=this.data)==null||!F.topStandaloneBadge)};
_.Sn.Object.defineProperties(TZ.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.c("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.c("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
shouldShowTopBadges:{configurable:!0,enumerable:!0,get:function(){return this.hasSingularTopStandaloneBadge()}},
topBadges:{configurable:!0,enumerable:!0,get:function(){var F;return this.hasSingularTopStandaloneBadge()?[(F=this.data)==null?void 0:F.topStandaloneBadge]:[]}},
inlineMetadataBadges:{configurable:!0,enumerable:!0,get:function(){var F;return this.shouldShowTopBadges?((F=this.data)==null?void 0:F.badges)||[]:[]}},
shouldShowBadgesBelowMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.shouldShowTopBadges}},
compactTitleClass:{configurable:!0,enumerable:!0,get:function(){return this.shouldShowTopBadges?"compact-title":""}}});
TZ.prototype.disableInteractionChanged=TZ.prototype.disableInteractionChanged;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],TZ.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],TZ.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.O9),_.Y("design:type",Object)],TZ.prototype,"ytdDismissibleItemBehavior",void 0);_.T([_.J(_.rt),_.Y("design:type",Object)],TZ.prototype,"ytdLockupBehavior",void 0);
_.T([_.J(_.am),_.Y("design:type",Object)],TZ.prototype,"ytdReduxBehavior",void 0);_.T([_.O({reflectToAttribute:!0,computed:"isMetaBlockEmpty(data)"}),_.Y("design:type",Boolean)],TZ.prototype,"metaBlockEmpty",void 0);_.T([_.O({selector:_.o6}),_.Y("design:type",Object)],TZ.prototype,"isGridViewEnabled",void 0);_.T([_.a("isGridViewEnabled"),_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],TZ.prototype,"watchFeedBigThumbs",null);
_.T([_.a("isGridViewEnabled"),_.O({reflectToAttribute:!0}),_.Y("design:type",String),_.Y("design:paramtypes",[])],TZ.prototype,"thumbnailWidth",null);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],TZ.prototype,"isShortsStyle",void 0);_.T([_.O(),_.Y("design:type",Object)],TZ.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0,computed:"computeHasOneLineTitle(data)"}),_.Y("design:type",Boolean)],TZ.prototype,"hasOneLineTitle",void 0);
_.T([_.O(),_.Y("design:type",Boolean)],TZ.prototype,"hideThumbnail",void 0);_.T([_.O(),_.Y("design:type",Boolean)],TZ.prototype,"forceOneLineTitle",void 0);_.T([_.O({reflectToAttribute:!0,computed:"computeDisableInteraction(data)"}),_.Y("design:type",Boolean)],TZ.prototype,"disableInteraction",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],TZ.prototype,"musicMetadataVideoLockup",void 0);
_.T([_.ea("disableInteraction"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],TZ.prototype,"disableInteractionChanged",null);_.T([_.a("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],TZ.prototype,"shouldShowTopBadges",null);_.T([_.a("data"),_.Y("design:type",Array),_.Y("design:paramtypes",[])],TZ.prototype,"topBadges",null);
_.T([_.a("shouldShowTopBadges","data"),_.Y("design:type",Array),_.Y("design:paramtypes",[])],TZ.prototype,"inlineMetadataBadges",null);_.T([_.a("shouldShowTopBadges"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],TZ.prototype,"shouldShowBadgesBelowMetadata",null);_.T([_.a("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],TZ.prototype,"compactTitleClass",null);TZ=_.T([_.y({is:"ytd-compact-video-renderer",disableElementRegistration:!0})],TZ);
_.r(TZ,"ytd-compact-video-renderer",function(){if(hqp!==void 0)return hqp;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-compact-video-renderer">\n  <ytd-thumbnail data="[[data]]" disable-interaction="[[disableInteraction]]" hidden$="[[hideThumbnail]]" hovered="[[lockupIsHovered]]" queued="[[queued]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="[[thumbnailWidth]]" class="style-scope ytd-compact-video-renderer">\n  </ytd-thumbnail>\n  <div class="details style-scope ytd-compact-video-renderer">\n    <div class="metadata style-scope ytd-compact-video-renderer">\n      <a class="yt-simple-endpoint style-scope ytd-compact-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" rel="[[computeNofollow_(data.navigationEndpoint)]]">\n        <h3 class="style-scope ytd-compact-video-renderer">\n          \n          <ytd-badge-supported-renderer class="top-badge style-scope ytd-compact-video-renderer" badges="[[topBadges]]" collection-truncate="" hidden="[[!shouldShowTopBadges]]">\n          </ytd-badge-supported-renderer>\n          <span class$="[[compactTitleClass]] style-scope ytd-compact-video-renderer" id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]">\n            [[getSimpleString(data.title)]]\n          </span>\n        </h3>\n        <div class="secondary-metadata style-scope ytd-compact-video-renderer">\n          \n          <ytd-video-meta-block class="compact style-scope ytd-compact-video-renderer" badges="[[inlineMetadataBadges]]" data="[[data]]" inline-badges="" no-endpoints="" truncate-metadata-line="" watch-feed-big-thumbs="[[watchFeedBigThumbs]]"></ytd-video-meta-block>\n          \n          <ytd-badge-supported-renderer class="badges style-scope ytd-compact-video-renderer" badges="[[data.badges]]" hidden="[[!shouldShowBadgesBelowMetadata]]" wrap-badges="">\n          </ytd-badge-supported-renderer>\n        </div>\n      </a>\n      <div id="buttons" class="style-scope ytd-compact-video-renderer"></div>\n    </div>\n    <div id="menu" class="style-scope ytd-compact-video-renderer"></div>\n    <div id="queue-button" class="style-scope ytd-compact-video-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-compact-video-renderer"></div>\n<yt-interaction id="interaction" class="extended style-scope ytd-compact-video-renderer"></yt-interaction>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return hqp=F},{mode:_.E6("kevlar_poly_si_batch_j067")?1:2});var dkT;_.Hr("itemSectionRenderer","counterfactualRenderer","ytd-counterfactual-renderer");var oR=function(){return _.n.apply(this,arguments)||this};
_.k(oR,_.n);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],oR.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],oR.prototype,"data",void 0);oR=_.T([_.y({is:"ytd-counterfactual-renderer",disableElementRegistration:!0})],oR);
_.r(oR,"ytd-counterfactual-renderer",function(){if(dkT!==void 0)return dkT;var F=document.createElement("template");_.L(F,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-counterfactual-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return dkT=F},{mode:1});var Nbz;var GZ=function(){var F=_.n.apply(this,arguments)||this;F.hidden=!1;return F};
_.k(GZ,_.n);GZ.prototype.onSelect=function(){this.data&&this.data.onSelectCommand&&_.WZ().resolve(_.EJ).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})};
GZ.prototype.computeHidden=function(F){return!!F};
_.Sn.Object.defineProperties(GZ.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.ytRendererBehavior.getSimpleString(this.data.label)}},
value:{configurable:!0,enumerable:!0,get:function(){if(this.data&&(typeof this.data.stringValue==="string"||typeof this.data.int32Value==="number"))return this.data.stringValue?this.data.stringValue:this.data.int32Value}}});
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],GZ.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],GZ.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0,computed:"computeHidden(data.isHidden)"}),_.Y("design:type",Object)],GZ.prototype,"hidden",void 0);_.T([_.a("data.label"),_.Y("design:type",String),_.Y("design:paramtypes",[])],GZ.prototype,"label",null);_.T([_.a("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],GZ.prototype,"value",null);
GZ=_.T([_.y({is:"ytd-dropdown-item-renderer",disableElementRegistration:!0})],GZ);
_.r(GZ,"ytd-dropdown-item-renderer",function(){if(Nbz!==void 0)return Nbz;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-dropdown-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-item id="item" aria-label$="[[data.accessibility.label]]" on-tap="onSelect" class="style-scope ytd-dropdown-item-renderer">\n  <yt-formatted-string id="label" text="[[data.label]]" class="style-scope ytd-dropdown-item-renderer">\n  </yt-formatted-string>\n</tp-yt-paper-item>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return Nbz=F},{mode:1});var VDu;var Ukc;var YS=function(){return _.n.apply(this,arguments)||this};
_.k(YS,_.n);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],YS.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],YS.prototype,"data",void 0);_.T([_.O({computed:"getSimpleString(data.label)"}),_.Y("design:type",String)],YS.prototype,"label",void 0);YS=_.T([_.y({is:"ytd-navigation-dropdown-item-renderer",disableElementRegistration:!0})],YS);
_.r(YS,"ytd-navigation-dropdown-item-renderer",function(){if(Ukc!==void 0)return Ukc;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-navigation-dropdown-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e  <a class="yt-simple-endpoint style-scope ytd-navigation-dropdown-item-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]" aria-label$="[[data.accessibility.accessibilityData.label]]">\n  <tp-yt-paper-item id="item" class="style-scope ytd-navigation-dropdown-item-renderer">\n    <yt-formatted-string id="label" text="[[data.label]]" class="style-scope ytd-navigation-dropdown-item-renderer"></yt-formatted-string>\n  </tp-yt-paper-item>\n</a>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return Ukc=F},{mode:1});var wj=function(){var F=_.n.apply(this,arguments)||this;F.disabled=!1;F.value="";F.noLabelFloat=!1;F.noUnderline=!1;F.usePrimaryColor=!1;F.hasBackground=!1;F.verticalAlign="top";F.autosize=!1;F.minAutosizeWidth=100;F.autosizeFont="14px Roboto";return F};
_.k(wj,_.n);_.N=wj.prototype;_.N.configureRendererStamper=function(){return{"data.entries":{id:"entries",mapping:{dropdownItemRenderer:"ytd-dropdown-item-renderer",privacyDropdownItemRenderer:"ytd-privacy-dropdown-item-renderer",navigationDropdownItemRenderer:"ytd-navigation-dropdown-item-renderer"}}}};
_.N.open=function(){this.inputEl.open()};
_.N.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getSelectedItem())};
_.N.dataChanged=function(){this.reset()};
_.N.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.yR("value-changed",this.value))};
_.N.stopPropagation=function(F){F.stopPropagation()};
_.N.autoSizeLabel=function(){if(this.autosizeFont&&this.autosize){this.canvas||(this.canvas=document.createElement("canvas"));var F=this.canvas.getContext("2d");F&&(F.font=this.autosizeFont,this.inputEl.style.width=Math.max(this.minAutosizeWidth,Number(F.measureText(this.inputEl.value).width)+24)+"px")}};
_.N.getSelectedItem=function(){if(!this.data||!this.data.entries)return null;for(var F=0,W=this.data.entries.length;F<W;F++){var E=this.data.entries[F],h;for(h in E)if(E.hasOwnProperty(h)){var d=E[h];if("isSelected"in d&&d.isSelected)return"stringValue"in d?d.stringValue||"":"int32Value"in d?d.int32Value||0:0}}return null};
_.N.updateValueFromBinding=function(F){this.value=F.detail.value};
_.Sn.Object.defineProperties(wj.prototype,{label:{configurable:!0,enumerable:!0,get:function(){if(!this.data||!this.data.entries)return null;if(this.data.label)return this.data.label;for(var F=0,W=this.data.entries.length;F<W;F++){var E=this.data.entries[F],h;for(h in E)if(E.hasOwnProperty(h)){var d=E[h];if("isSelected"in d&&d.isSelected&&"label"in d)return this.ytRendererBehavior.getSimpleString(d.label)}}return null}}});
wj.prototype.autoSizeLabel=wj.prototype.autoSizeLabel;wj.prototype.stopPropagation=wj.prototype.stopPropagation;wj.prototype.valueChangedForBinding=wj.prototype.valueChangedForBinding;wj.prototype.dataChanged=wj.prototype.dataChanged;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],wj.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],wj.prototype,"ytRendererStamperBehavior",void 0);
_.T([_.O(),_.Y("design:type",Object)],wj.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],wj.prototype,"disabled",void 0);_.T([_.O(),_.Y("design:type",Object)],wj.prototype,"value",void 0);_.T([_.O(),_.Y("design:type",Object)],wj.prototype,"noLabelFloat",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],wj.prototype,"noUnderline",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",String)],wj.prototype,"theme",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],wj.prototype,"usePrimaryColor",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],wj.prototype,"hasBackground",void 0);_.T([_.O(),_.Y("design:type",Object)],wj.prototype,"verticalAlign",void 0);_.T([_.O(),_.Y("design:type",Object)],wj.prototype,"autosize",void 0);_.T([_.O(),_.Y("design:type",Object)],wj.prototype,"minAutosizeWidth",void 0);_.T([_.O(),_.Y("design:type",Object)],wj.prototype,"autosizeFont",void 0);
_.T([_.gQ("#entries"),_.Y("design:type",Object)],wj.prototype,"entries",void 0);_.T([_.gQ("#input"),_.Y("design:type",Object)],wj.prototype,"inputEl",void 0);_.T([_.Cz("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],wj.prototype,"dataChanged",null);_.T([_.Cz("value"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],wj.prototype,"valueChangedForBinding",null);
_.T([_.R4("iron-overlay-opened"),_.R4("iron-overlay-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],wj.prototype,"stopPropagation",null);_.T([_.R4("iron-select"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],wj.prototype,"autoSizeLabel",null);_.T([_.a("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],wj.prototype,"label",null);
wj=_.T([_.y({disableElementRegistration:!0,is:"ytd-dropdown-renderer"})],wj);
_.r(wj,"ytd-dropdown-renderer",function(){if(VDu!==void 0)return VDu;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-dropdown-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dropdown-menu-light id="input" aria-label$="[[label]]" disabled="[[disabled]]" horizontal-align="left" label="[[label]]" no-label-float="[[noLabelFloat]]" vertical-align="[[verticalAlign]]" class="style-scope ytd-dropdown-renderer">\n  <tp-yt-paper-listbox id="entries" class="dropdown-content style-scope ytd-dropdown-renderer" slot="dropdown-content" attr-for-selected="value" selected="[[value]]" on-selected-changed="updateValueFromBinding">\n  </tp-yt-paper-listbox>\n</tp-yt-paper-dropdown-menu-light>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return VDu=F},{mode:1});var RqB;var ut=function(){var F=_.n.apply(this,arguments)||this;F.isConstrainedList=!1;return F};
_.k(ut,_.n);ut.prototype.configureRendererStamper=function(){return{shownItems:{id:"grid-container",mapping:{channelRenderer:"ytd-channel-renderer",compactPromotedItemRenderer:"ytd-compact-promoted-item-renderer",playlistRenderer:"ytd-playlist-renderer",radioRenderer:"ytd-radio-renderer",showRenderer:"ytd-show-renderer",videoRenderer:"ytd-video-renderer"}}}};
ut.prototype.fillRestIfNoShowMore=function(){this.data&&!this.data.showMoreText&&this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
ut.prototype.onShowMoreClick=function(){this.ytLazyListBehavior.fillRemainingListItems()};
ut.prototype.computeViewAllHidden=function(F,W){return F||!W.viewAllEndpoint};
ut.prototype.fillRestIfNoShowMore=ut.prototype.fillRestIfNoShowMore;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],ut.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],ut.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.W3.YtLazyListBehavior),_.Y("design:type",Object)],ut.prototype,"ytLazyListBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],ut.prototype,"data",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],ut.prototype,"isConstrainedList",void 0);_.T([_.Cz("data","canShowMore"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ut.prototype,"fillRestIfNoShowMore",null);ut=_.T([_.y({is:"ytd-expanded-shelf-contents-renderer",disableElementRegistration:!0})],ut);
_.r(ut,"ytd-expanded-shelf-contents-renderer",function(){if(RqB!==void 0)return RqB;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expanded-shelf-contents-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="grid-container" class="style-scope ytd-expanded-shelf-contents-renderer"></div>\n<yt-formatted-string aria-role="button" hidden="[[!canShowMore]]" text="[[data.showMoreText]]" on-click="onShowMoreClick" class="style-scope ytd-expanded-shelf-contents-renderer">\n</yt-formatted-string>\n  <a class="yt-simple-endpoint style-scope ytd-expanded-shelf-contents-renderer" href$="[[computeHref_(data.viewAllEndpoint)]]" data="[[data.viewAllEndpoint]]" hidden="[[computeViewAllHidden(canShowMore,data)]]">\n  <yt-formatted-string text="[[data.viewAllText]]" class="style-scope ytd-expanded-shelf-contents-renderer"></yt-formatted-string>\n</a>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return RqB=F},{mode:_.E6("kevlar_poly_si_batch_j025")?1:2});var eq_;var S4=function(){return _.n.apply(this,arguments)||this};
_.k(S4,_.n);S4.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.viewChannelButton":{id:"view-channel-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],S4.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],S4.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],S4.prototype,"data",void 0);S4=_.T([_.y({is:"ytd-feed-channel-filter-header-renderer",disableElementRegistration:!0})],S4);
_.r(S4,"ytd-feed-channel-filter-header-renderer",function(){if(eq_!==void 0)return eq_;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feed-channel-filter-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h2 class="style-scope ytd-feed-channel-filter-header-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-feed-channel-filter-header-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <yt-img-shadow id="avatar" height="56" hidden="[[!data.avatar]]" thumbnail="[[data.avatar]]" width="56" class="style-scope ytd-feed-channel-filter-header-renderer">\n    </yt-img-shadow>\n    <div id="channel" class="style-scope ytd-feed-channel-filter-header-renderer">\n      <span id="title" class="style-scope ytd-feed-channel-filter-header-renderer">[[getSimpleString(data.title)]]</span>\n      <div id="view-channel-button" aria-hidden="" class="style-scope ytd-feed-channel-filter-header-renderer"></div>\n    </div>\n  </a>\n</h2>\n<div id="buttons" class="style-scope ytd-feed-channel-filter-header-renderer"></div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return eq_=F},{mode:1});var MDM;var gM_;var Qbe;var ps=function(){return _.n.apply(this,arguments)||this};
_.k(ps,_.n);_.N=ps.prototype;_.N.onClick=function(F){var W,E=(W=this.data)==null?void 0:W.sectionEndpoint;!_.Sc(_.TB(F),this.hostElement,["A".toString()])&&E&&_.hF(this.hostElement,"yt-navigate",{endpoint:E})};
_.N.computeHasSectionEndpoint=function(F){return(F==null?void 0:F.sectionEndpoint)!==void 0};
_.N.computeShowHeaderAsLink=function(F){return(F==null?void 0:F.header)!==void 0&&(F==null?void 0:F.sectionEndpoint)!==void 0};
_.N.computeShowSubheaderAsLink=function(F){return(F==null?void 0:F.subheader)!==void 0&&(F==null?void 0:F.sectionEndpoint)!==void 0&&(F==null?void 0:F.header)===void 0};
_.N.getHeaderAsLinkClass=function(F){var W=[],E;(F==null?0:(E=F.headerIcon)==null?0:E.iconType)&&W.push("header-link-active");return W.join(" ")};
_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],ps.prototype,"ytComponentBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],ps.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],ps.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],ps.prototype,"data",void 0);
_.T([_.O({computed:"computeHasSectionEndpoint(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],ps.prototype,"hasSectionEndpoint",void 0);_.T([_.O({computed:"computeShowHeaderAsLink(data)"}),_.Y("design:type",Boolean)],ps.prototype,"showHeaderAsLink",void 0);_.T([_.O({computed:"computeShowSubheaderAsLink(data)"}),_.Y("design:type",Boolean)],ps.prototype,"showSubheaderAsLink",void 0);ps=_.T([_.y({is:"ytd-medical-panel-section-renderer",disableElementRegistration:!0})],ps);
_.r(ps,"ytd-medical-panel-section-renderer",function(){if(Qbe!==void 0)return Qbe;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-medical-panel-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="section" on-click="onClick" class="style-scope ytd-medical-panel-section-renderer">\n  <div id="header" hidden="[[!data.header]]" class="style-scope ytd-medical-panel-section-renderer">\n    <yt-formatted-string hidden="[[showHeaderAsLink]]" text="[[data.header]]" class="style-scope ytd-medical-panel-section-renderer"></yt-formatted-string>\n    <a id="header-link" class$="yt-simple-endpoint [[getHeaderAsLinkClass(data)]] style-scope ytd-medical-panel-section-renderer" hidden="[[!showHeaderAsLink]]" href$="[[computeHref_(data.sectionEndpoint)]]" data="[[data.sectionEndpoint]]">\n      <yt-formatted-string text="[[data.header]]" class="style-scope ytd-medical-panel-section-renderer"></yt-formatted-string>\n      <yt-icon class="icons style-scope ytd-medical-panel-section-renderer" hidden="[[!data.headerIcon.iconType]]" icon="[[data.headerIcon.iconType]]">\n      </yt-icon>\n    </a>\n  </div>\n\n  <div id="subheader" hidden="[[!data.subheader]]" class="style-scope ytd-medical-panel-section-renderer">\n    <yt-formatted-string hidden="[[showSubheaderAsLink]]" text="[[data.subheader]]" class="style-scope ytd-medical-panel-section-renderer">\n    </yt-formatted-string>\n    <a id="subheader-link" class="yt-simple-endpoint style-scope ytd-medical-panel-section-renderer" hidden="[[!showSubheaderAsLink]]" href$="[[computeHref_(data.sectionEndpoint)]]" data="[[data.sectionEndpoint]]">\n      <yt-formatted-string text="[[data.subheader]]" class="style-scope ytd-medical-panel-section-renderer"></yt-formatted-string>\n    </a>\n  </div>\n  <div id="paragraphs" class="style-scope ytd-medical-panel-section-renderer">\n    <template is="dom-repeat" items="[[data.paragraphs]]" class="style-scope ytd-medical-panel-section-renderer">\n      <div class="paragraph style-scope ytd-medical-panel-section-renderer">\n        <yt-formatted-string split-lines="" text="[[item]]" class="style-scope ytd-medical-panel-section-renderer"></yt-formatted-string>\n      </div>\n    </template>\n  </div>\n  <div id="footer" hidden="[[!data.footer]]" class="style-scope ytd-medical-panel-section-renderer">\n    <yt-formatted-string link-inherit-color="" text="[[data.footer]]" class="style-scope ytd-medical-panel-section-renderer"></yt-formatted-string>\n  </div>\n</div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return Qbe=F},{mode:1});var mn=function(){var F=_.n.apply(this,arguments)||this;F.isExpanded=!1;F.roundedContainer=!0;F.skipRoundingTop=!1;F.toggleExpandableSection=function(){F.isExpanded=!F.isExpanded};
return F};
_.k(mn,_.n);
mn.prototype.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{medicalPanelSectionRenderer:{component:"ytd-medical-panel-section-renderer"}}},"data.expandableSections":{id:"expandable-sections",mapping:{medicalPanelSectionRenderer:{component:"ytd-medical-panel-section-renderer"}}},"data.expandButton":{id:"expand",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[toggleExpandableSection]]"}}}},"data.collapseButton":{id:"collapse",mapping:{buttonRenderer:{component:"ytd-button-renderer",
properties:{"on-tap":"[[toggleExpandableSection]]"}}}}}};
mn.prototype.dataChanged=function(){this.data&&(this.isExpanded=!1)};
mn.prototype.dataChanged=mn.prototype.dataChanged;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],mn.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],mn.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],mn.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Object)],mn.prototype,"isExpanded",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],mn.prototype,"roundedContainer",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],mn.prototype,"skipRoundingTop",void 0);_.T([_.O(),_.Y("design:type",Object)],mn.prototype,"toggleExpandableSection",void 0);_.T([_.Cz("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],mn.prototype,"dataChanged",null);mn=_.T([_.y({is:"ytd-medical-panel-content-renderer",disableElementRegistration:!0})],mn);
_.r(mn,"ytd-medical-panel-content-renderer",function(){if(gM_!==void 0)return gM_;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-medical-panel-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="content style-scope ytd-medical-panel-content-renderer">\n  <div id="sections" class="style-scope ytd-medical-panel-content-renderer"></div>\n  <div class="footer style-scope ytd-medical-panel-content-renderer" id="expand" hidden="[[isExpanded]]"></div>\n  <div id="expandable-sections" hidden="[[!isExpanded]]" class="style-scope ytd-medical-panel-content-renderer"></div>\n  <div class="footer style-scope ytd-medical-panel-content-renderer" id="collapse" hidden="[[!isExpanded]]"></div>\n</div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return gM_=F},{mode:1});_.Hr("itemSectionRenderer","infoPanelContainerRenderer","ytd-info-panel-container-renderer");var Ks=function(){var F=_.n.apply(this,arguments)||this;F.roundedContainer=!0;F.amsterdamEnabled=_.c("enable_desktop_amsterdam_info_panels");F.hasTitle=!1;F.linkIcon="OPEN_IN_NEW";F.isDismissed=!1;return F};
_.k(Ks,_.n);
Ks.prototype.configureRendererStamper=function(){return{"data.menu":{id:"header-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.content":{id:"content",mapping:{infoPanelContentRenderer:{component:"ytd-info-panel-content-renderer",properties:{skipRoundingTop:"[[hasTitle]]",disableTopPadding:"[[data.disableBottomDivider]]",roundedContainer:"[[roundedContainer]]"}},medicalPanelContentRenderer:{component:"ytd-medical-panel-content-renderer",properties:{skipRoundingTop:"[[hasTitle]]",roundedContainer:"[[roundedContainer]]"}},
horizontalCardListRenderer:"ytd-horizontal-card-list-renderer"}}}};
Ks.prototype.computeHasTitle=function(F){return!(F==null||!F.title)};
Ks.prototype.onClick=function(F){var W,E=(W=this.data)==null?void 0:W.headerEndpoint;!_.Sc(_.TB(F),this.hostElement,["BUTTON".toString()])&&E&&this.ytComponentBehavior.resolveCommand(E)};
_.Sn.Object.defineProperties(Ks.prototype,{background:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.background?this.data.background.replace("INFO_PANEL_CONTAINER_BACKGROUND_",""):""}},
titleStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.titleStyle?this.data.titleStyle.replace("INFO_PANEL_CONTAINER_TITLE_STYLE_",""):""}},
showLinkIcon:{configurable:!0,enumerable:!0,get:function(){var F;return((F=this.data)==null?void 0:F.titleStyle)==="INFO_PANEL_CONTAINER_TITLE_STYLE_LINK"}},
hideDivider:{configurable:!0,enumerable:!0,get:function(){var F,W;return((F=this.data)==null?void 0:F.disableBottomDivider)||!((W=this.data)==null?0:W.title)}}});
_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],Ks.prototype,"ytComponentBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Ks.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],Ks.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.am),_.Y("design:type",Object)],Ks.prototype,"ytdReduxBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],Ks.prototype,"data",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],Ks.prototype,"roundedContainer",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Ks.prototype,"amsterdamEnabled",void 0);_.T([_.O({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.Y("design:type",Object)],Ks.prototype,"hasTitle",void 0);
_.T([_.O({type:_.c("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.a("data.background"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Ks.prototype,"background",null);_.T([_.O({type:_.c("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.a("data.titleStyle"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Ks.prototype,"titleStyle",null);
_.T([_.O({type:_.c("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.a("data.titleStyle"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Ks.prototype,"showLinkIcon",null);_.T([_.O(),_.Y("design:type",String)],Ks.prototype,"linkIcon",void 0);_.T([_.O({type:_.c("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.a("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Ks.prototype,"hideDivider",null);
_.T([_.O({selectorArgs:["data.dismissStateEntityKey"],selector:function(F,W){F=_.Mn(F.entities,"dismissState",W);return(F==null?void 0:F.isDismissed)||(F==null?void 0:F.vwcDismissState)==="VWC_DISMISS_STATE_NOT_INTERESTED"||(F==null?void 0:F.vwcDismissState)==="VWC_DISMISS_STATE_BLOCK_CHANNEL"}}),
_.Y("design:type",Object)],Ks.prototype,"isDismissed",void 0);Ks=_.T([_.y({is:"ytd-info-panel-container-renderer",disableElementRegistration:!0})],Ks);
_.r(Ks,"ytd-info-panel-container-renderer",function(){if(MDM!==void 0)return MDM;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-info-panel-container-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div hidden="[[isDismissed]]" class="style-scope ytd-info-panel-container-renderer">\n  <div class="header style-scope ytd-info-panel-container-renderer" hidden="[[!data.title]]" on-click="onClick">\n    <h2 class="header-left-items style-scope ytd-info-panel-container-renderer">\n      <yt-icon class="header-icon style-scope ytd-info-panel-container-renderer" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]">\n      </yt-icon>\n      <yt-formatted-string class="title style-scope ytd-info-panel-container-renderer" text="[[data.title]]"></yt-formatted-string>\n      <yt-icon class="link-icon style-scope ytd-info-panel-container-renderer" disable-upgrade$="[[!linkIcon]]" hidden="[[!showLinkIcon]]" icon="[[linkIcon]]">\n      </yt-icon>\n    </h2>\n    <div id="header-menu" class="style-scope ytd-info-panel-container-renderer"></div>\n  </div>\n  <div class="divider-container style-scope ytd-info-panel-container-renderer" hidden="[[hideDivider]]">\n    <div class="divider-offset style-scope ytd-info-panel-container-renderer"></div>\n    <div class="divider style-scope ytd-info-panel-container-renderer"></div>\n    <div class="divider-offset style-scope ytd-info-panel-container-renderer"></div>\n  </div>\n  <div id="content" class="style-scope ytd-info-panel-container-renderer"></div>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return MDM=F},{mode:1});var zqe;_.Hr("sharingItemSection","itemSectionHeaderRenderer","ytd-item-section-header-renderer");var F5=function(){var F=_.n.apply(this,arguments)||this;F.modernTypography=_.c("web_modern_typography");return F};
_.k(F5,_.n);F5.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
F5.prototype.computeStyle=function(F){return F?F:""};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],F5.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],F5.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],F5.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0,computed:"computeStyle(data.titleStyle)"}),_.Y("design:type",String)],F5.prototype,"titleStyle",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],F5.prototype,"modernTypography",void 0);F5=_.T([_.y({is:"ytd-item-section-header-renderer",disableElementRegistration:!0})],F5);
_.r(F5,"ytd-item-section-header-renderer",function(){if(zqe!==void 0)return zqe;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-item-section-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-item-section-header-renderer">\n  <div id="title" class="style-scope ytd-item-section-header-renderer">[[getSimpleString(data.title)]]</div>\n  <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-item-section-header-renderer"></yt-formatted-string>\n</div>\n<div id="buttons" class="style-scope ytd-item-section-header-renderer"></div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return zqe=F},{mode:1});var tDu;var CFO,Bbp=function(){return CFO!==void 0?CFO:CFO=document.createElement("template")};
document.head.appendChild(Bbp().content);var vMX;_.Wj=new _.NG("VOTING_ANIMATION_CONTROLLER_TOKEN");var cxu=_.GK(function(F){var W=F.data;var E=_.uf(),h=_.uf();F=_.U(_.g$("VOTE_STATUS_NONE",void 0,"FVF7mc"));var d=F.next().value,V=F.next().value,R=_.D1(Suo,function(){var I;return(I=W())==null?void 0:I.entityKey}),M=_.c("web_enable_voting_animation")||_.c("enable_music_web_cairo_voting_animation");
_.Xk(function(){var I;((I=W().initialState)==null?0:I.status)&&V(W().initialState.status)});
var g=function(){var I,x,A=(x=(I=W().initialState)==null?void 0:I.votes)!=null?x:0,X;I=(X=W().initialState)==null?void 0:X.status;return I==="VOTE_STATUS_UPVOTED"?A-1:I==="VOTE_STATUS_DOWNVOTED"?A+1:A},t=function(){return d()==="VOTE_STATUS_UPVOTED"?g()+1:d()==="VOTE_STATUS_DOWNVOTED"?g()-1:g()},C=function(I){var x=I?"VOTE_STATUS_UPVOTED":"VOTE_STATUS_NONE";
V(x);var A=t(),X=_.WZ().resolve(_.Fd(_.Wj)),P=R();P&&(I&&(P==null?0:P.upvoteDefaultButtonOnTap)?_.fK(P.upvoteDefaultButtonOnTap,{form:{element:E.value},disableClickTracking:!0}):(P==null?0:P.upvoteToggledButtonOnTap)&&_.fK(P.upvoteToggledButtonOnTap,{form:{element:E.value},disableClickTracking:!0}));var b;I=(b=P==null?void 0:P.enableOptimisticReordering)!=null?b:W().enableOptimisticReordering;M&&X&&W().itemId&&I&&IlM(X,W().itemId,A,x)},B=function(I){var x=I?"VOTE_STATUS_DOWNVOTED":"VOTE_STATUS_NONE";
V(x);var A=t(),X=_.WZ().resolve(_.Fd(_.Wj)),P=R();P&&(I&&(P==null?0:P.downvoteDefaultButtonOnTap)?_.fK(P.downvoteDefaultButtonOnTap,{form:{element:h.value},disableClickTracking:!0}):(P==null?0:P.downvoteToggledButtonOnTap)&&_.fK(P.downvoteToggledButtonOnTap,{form:{element:h.value},disableClickTracking:!0}));var b;I=(b=P==null?void 0:P.enableOptimisticReordering)!=null?b:W().enableOptimisticReordering;M&&X&&W().itemId&&I&&IlM(X,W().itemId,A,x)};
F={};F=_.ec("ytVotingViewModelVoteCount",(F.ytVotingViewModelVoteCountDisabled=function(){return W().isDisabled},F));
return _.z("voting-view-model",{class:"ytVotingViewModelHost"},_.z("div",{el:E},_.z(_.a6,{data:function(){var I=_.D(W().upvoteButton,_.O8);return{toggleButtonViewModel:Object.assign({},I,{isToggled:d()==="VOTE_STATUS_UPVOTED"})}}},{toggleButtonViewModel:function(I){return _.z(_.bJ,{data:I.data,
onToggle:C})}})),_.z("div",{class:F},function(){var I,x,A;
return d()==="VOTE_STATUS_UPVOTED"?(I=W().initialState)==null?void 0:I.compactVotesUpvoted:d()==="VOTE_STATUS_DOWNVOTED"?(x=W().initialState)==null?void 0:x.compactVotesDownvoted:(A=W().initialState)==null?void 0:A.compactVotes}),_.z("div",{el:h},_.z(_.a6,{data:function(){var I=_.D(W().downvoteButton,_.O8);
return{toggleButtonViewModel:Object.assign({},I,{isToggled:d()==="VOTE_STATUS_DOWNVOTED"})}}},{toggleButtonViewModel:function(I){return _.z(_.bJ,{data:I.data,
onToggle:B})}})))},"Db");_.pK(_.GK(function(F){var W=F.data;return _.z("engagement-bar-view-model",{class:"ytEngagementBarViewModelHost"},_.z("div",{class:_.ec("ytEngagementBarViewModelEngagementBarWrapper",F.className)},_.z(_.a6,{data:function(){return W().actions}},{votingViewModel:cxu})))},"Eb"),"engagement-bar-view-model",{props:{data:_.TS,
className:_.TS}});var Ex=function(){var F=_.n.apply(this,arguments)||this;F.amsterdamPostMvp=_.c("web_amsterdam_post_mvp_playlists");F.cairoCollabPlaylistPostMvp=_.c("web_collab_playlist_thumbnail_size");F.playlistVotingAnimationEnabled=_.c("web_enable_voting_animation");F.downloadProgress=0;F.transferState="TRANSFER_STATE_UNKNOWN";F.downloadState="DOWNLOAD_STATE_UNKNOWN";F.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";F.offlineVideoPolicyExpirationTimestamp=0;return F};
_.k(Ex,_.n);_.N=Ex.prototype;_.N.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.engagementBar":{id:"engagement-bar",mapping:{engagementBarViewModel:"engagement-bar-view-model"}}}};
_.N.canReorderChanged=function(){this.persistentDragHandle=_.c("kevlar_playlist_drag_handles")&&this.canReorder};
_.N.onDrag=function(){if(this.thumbnail){var F=_.Z(this.thumbnail).querySelector("yt-image");F&&(F.shouldRenderLazy=!1)}};
_.N.onMenuOverlayChanged=function(F,W){this.menuOpened=W};
_.N.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.N.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.N.onContentsTap=function(F){var W,E=(W=this.data)==null?void 0:W.serviceEndpoints;if(E&&E.length===1&&_.D(E[0],dLr)&&!_.Sc(_.TB(F),this.hostElement,["TP-YT-PAPER-BUTTON"]))this.ytComponentBehavior.resolveCommand(E[0]);else{var h;(W=(h=this.data)==null?void 0:h.navigationEndpoint)&&_.c("music_on_main_open_playlist_recommended_videos_in_miniplayer")&&this.styleType==="playlist-video-renderer-style-recommended-video"?this.miniplayerIsActive?DkO(_.WZ().resolve(_.GF),W):(_.DT().playlistSuggestionsShelfActivation=
!0,_.xkT(_.WZ().resolve(_.GF),W)):W&&!_.Sc(_.TB(F),this.hostElement,["A".toString(),"BUTTON".toString(),"ENGAGEMENT-BAR-VIEW-MODEL"])&&(_.c("kevlar_playlist_video_resolve_nav_endpoint_killswitch")?_.hF(this.hostElement,"yt-navigate",{endpoint:W}):this.ytComponentBehavior.resolveCommand(W))}};
_.N.computeStyle=function(F){return F?F.toLowerCase().replace(/_/g,"-"):""};
_.N.computeThumbnailWidth=function(F){return F==="PLAYLIST_VIDEO_RENDERER_STYLE_EPISODE"?170:this.amsterdamPostMvp?160:this.cairoCollabPlaylistPostMvp?200:120};
_.N.downloadStateChanged=function(){this.isDownloads=!1;if(this.entityInfo||this.downloadRenderData){if(!this.entityInfo&&this.downloadRenderData)this.downloadRenderData={shortViewCountText:void 0,publishedTimeText:void 0,badges:void 0,thumbnailOverlays:void 0};else{if(!this.entityInfo)return;this.downloadRenderData=ITb(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference,!0);this.isDownloads=Object.keys(this.downloadRenderData).length>0}this.set("data",
Object.assign({},this.data,this.downloadRenderData))}};
_.N.created=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.N.detached=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.N.dataChanged=function(){if(this.data){var F,W,E,h=((F=this.downloadRenderData)==null?void 0:F.badges)&&((W=this.downloadRenderData)==null?void 0:W.badges)!==((E=this.data)==null?void 0:E.badges),d,V,R;F=((d=this.downloadRenderData)==null?void 0:d.thumbnailOverlays)&&((V=this.downloadRenderData)==null?void 0:V.thumbnailOverlays)!==((R=this.data)==null?void 0:R.thumbnailOverlays);(!this.downloadRenderData||h||F)&&this.downloadStateChanged()}};
_.N.setVideoIdChanged=function(){if(this.data&&this.data.setVideoId){var F,W,E=(F=this.data.menu)==null?void 0:(W=F.menuRenderer)==null?void 0:W.items;if(E)for(F=_.U(E),W=F.next();!W.done;W=F.next())if(W=W.value,E=void 0,_.D((E=W.menuServiceItemRenderer)==null?void 0:E.serviceEndpoint,_.lE)){var h=E=void 0,d=void 0;W=(E=W)==null?void 0:(h=E.menuServiceItemRenderer)==null?void 0:(d=h.serviceEndpoint)==null?void 0:d.playlistEditEndpoint;d=h=void 0;if(E=(h=W)==null?void 0:(d=h.actions)==null?void 0:
d[0])h=void 0,E.setVideoId=(h=this.data)==null?void 0:h.setVideoId;d=h=E=void 0;if(W=(E=W)==null?void 0:(h=E.clientActions)==null?void 0:(d=h[0])==null?void 0:d.playlistRemoveVideosAction)E=void 0,W.setVideoIds=[(E=this.data)==null?void 0:E.setVideoId]}}};
_.Sn.Object.defineProperties(Ex.prototype,{playlistVideoId:{configurable:!0,enumerable:!0,get:function(){return this.data.videoId}}});
Ex.prototype.setVideoIdChanged=Ex.prototype.setVideoIdChanged;Ex.prototype.dataChanged=Ex.prototype.dataChanged;Ex.prototype.downloadStateChanged=Ex.prototype.downloadStateChanged;Ex.prototype.onMenuOverlayChanged=Ex.prototype.onMenuOverlayChanged;Ex.prototype.canReorderChanged=Ex.prototype.canReorderChanged;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Ex.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.am),_.Y("design:type",Object)],Ex.prototype,"ytdReduxBehavior",void 0);
_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],Ex.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.rt),_.Y("design:type",Object)],Ex.prototype,"ytdLockupBehavior",void 0);_.T([_.J(_.O9),_.Y("design:type",Object)],Ex.prototype,"ytdDismissibleItemBehavior",void 0);_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],Ex.prototype,"ytComponentBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],Ex.prototype,"data",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],Ex.prototype,"amsterdamPostMvp",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Ex.prototype,"canReorder",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Ex.prototype,"menuOpened",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Ex.prototype,"handleIsHovered",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Ex.prototype,"persistentDragHandle",void 0);
_.T([_.O(),_.Y("design:type",Object)],Ex.prototype,"downloadRenderData",void 0);_.T([_.O({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.Y("design:type",String)],Ex.prototype,"styleType",void 0);_.T([_.O({computed:"computeThumbnailWidth(data.style)"}),_.Y("design:type",Number)],Ex.prototype,"thumbnailWidth",void 0);_.T([_.O({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],Ex.prototype,"isDownloads",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],Ex.prototype,"cairoCollabPlaylistPostMvp",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Ex.prototype,"playlistVotingAnimationEnabled",void 0);_.T([_.O({selector:O_,selectorArgs:["data.videoId"]}),_.Y("design:type",Object)],Ex.prototype,"downloadProgress",void 0);_.T([_.O(),_.Y("design:type",Number)],Ex.prototype,"relativeDateReference",void 0);
_.T([_.O({selector:_.ax,selectorArgs:["data.videoId"]}),_.Y("design:type",Object)],Ex.prototype,"transferState",void 0);_.T([_.O({selector:iio,selectorArgs:["data.videoId"]}),_.Y("design:type",Object)],Ex.prototype,"downloadState",void 0);_.T([_.O({selector:$Cr,selectorArgs:["data.videoId"]}),_.Y("design:type",Object)],Ex.prototype,"offlinePolicyAction",void 0);_.T([_.O({selector:Zio,selectorArgs:["data.videoId"]}),_.Y("design:type",Object)],Ex.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);
_.T([_.O({selector:HiY,selectorArgs:["data.videoId"]}),_.Y("design:type",Object)],Ex.prototype,"entityInfo",void 0);_.T([_.O({selector:_.Pz}),_.Y("design:type",Boolean)],Ex.prototype,"miniplayerIsActive",void 0);_.T([_.a("data"),_.Y("design:type",String),_.Y("design:paramtypes",[])],Ex.prototype,"playlistVideoId",null);_.T([_.gQ("#thumbnail"),_.Y("design:type",Object)],Ex.prototype,"thumbnail",void 0);
_.T([_.Cz("canReorder"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Ex.prototype,"canReorderChanged",null);_.T([_.R4("yt-menu-overlay-changed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Boolean]),_.Y("design:returntype")],Ex.prototype,"onMenuOverlayChanged",null);
_.T([_.Cz("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadProgress","downloadState"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Ex.prototype,"downloadStateChanged",null);_.T([_.Cz("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Ex.prototype,"dataChanged",null);
_.T([_.Cz("data.setVideoId"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Ex.prototype,"setVideoIdChanged",null);Ex=_.T([_.y({is:"ytd-playlist-video-renderer",disableElementRegistration:!0})],Ex);
_.r(Ex,"ytd-playlist-video-renderer",function(){if(vMX!==void 0)return vMX;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.main_desktop.ui.renderers.sections.ytd_playlist_video_renderer.ytd.playlist.video.renderer.transition.css.js--\x3e<div id="index-container" class="playlist-drag-handle style-scope ytd-playlist-video-renderer" on-mouseenter="onHandleMouseenter" on-mouseleave="onHandleMouseleave">\n  <yt-icon id="reorder" icon="yt-icons:drag_handle" class="style-scope ytd-playlist-video-renderer"></yt-icon>\n  <yt-formatted-string id="index" text="[[data.index]]" class="style-scope ytd-playlist-video-renderer"></yt-formatted-string>\n</div>\n<div id="content" on-click="onContentsTap" class="style-scope ytd-playlist-video-renderer">\n  <div id="container" class="style-scope ytd-playlist-video-renderer">\n    <ytd-thumbnail id="thumbnail" data="[[data]]" hide-playback-status="" use-expandable-tooltip="[[useExpandableTooltip_]]" width="[[thumbnailWidth]]" class="style-scope ytd-playlist-video-renderer">\n    </ytd-thumbnail>\n    <div id="meta" class="style-scope ytd-playlist-video-renderer">\n      <h3 aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-playlist-video-renderer">\n        <ytd-badge-supported-renderer id="top-standalone-badge" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-playlist-video-renderer">\n        </ytd-badge-supported-renderer>\n        <a id="video-title" title$="[[getSimpleString(data.title)]]" class="yt-simple-endpoint style-scope ytd-playlist-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n          [[getSimpleString(data.title)]]\n        </a>\n      </h3>\n      <ytd-video-meta-block class="playlist style-scope ytd-playlist-video-renderer" data="[[data]]" is-downloading="[[isDownloads]]"></ytd-video-meta-block>\n      <ytd-badge-supported-renderer id="bottom-badges" badges="[[data.bottomBadges]]" hidden="[[!data.bottomBadges]]" class="style-scope ytd-playlist-video-renderer">\n      </ytd-badge-supported-renderer>\n      <ytd-badge-supported-renderer id="bottom-standalone-badge" hidden="[[!data.bottomStandaloneBadge]]" top-standalone-badge="[[data.bottomStandaloneBadge]]" class="style-scope ytd-playlist-video-renderer">\n      </ytd-badge-supported-renderer>\n      <div id="engagement-bar" class="style-scope ytd-playlist-video-renderer"></div>\n    </div>\n  </div>\n  <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-playlist-video-renderer">\n  </ytd-badge-supported-renderer>\n  <yt-formatted-string id="contributor" hidden="[[!data.contributorName]]" link-inherit-color="" text="[[data.contributorName]]" class="style-scope ytd-playlist-video-renderer">\n  </yt-formatted-string>\n  <div id="offer-button" class="style-scope ytd-playlist-video-renderer"></div>\n</div>\n<div id="menu" hidden="[[!data.menu]]" class="style-scope ytd-playlist-video-renderer"></div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);F.content.insertBefore(Bbp().content.cloneNode(!0),F.content.firstChild);return vMX=F},{mode:1});var kgz;var he=function(){return _.n.apply(this,arguments)||this};
_.k(he,_.n);_.T([_.O(),_.Y("design:type",Object)],he.prototype,"data",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],he.prototype,"rendererBehavior",void 0);he=_.T([_.y({is:"ytd-premium-browse-footer-renderer",disableElementRegistration:!0})],he);
_.r(he,"ytd-premium-browse-footer-renderer",function(){if(kgz!==void 0)return kgz;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-premium-browse-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string class="title style-scope ytd-premium-browse-footer-renderer" text="[[data.title]]">\n</yt-formatted-string>\n<yt-formatted-string class="subtitle style-scope ytd-premium-browse-footer-renderer" text="[[data.subtitle]]">\n</yt-formatted-string>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return kgz=F},{mode:1});var AxH;var dm=function(){var F=_.n.apply(this,arguments)||this;F.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return F};
_.k(dm,_.n);_.N=dm.prototype;_.N.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.N.handleDarkModeToggledAction=function(F){this.isDarkTheme=F};
_.N.computeHeaderLogoThumbnail=function(F,W){if(F)return W?F.darkLogo:F.lightLogo};
_.N.computeHeaderLogoHeight=function(F,W){var E,h,d;return(F=(E=this.computeHeaderLogoThumbnail(F,W))==null?void 0:(h=E.thumbnails)==null?void 0:(d=h[0])==null?void 0:d.height)&&F%31===0?"31":"24"};
_.N.computeHeaderLogoMarginBottom=function(F,W){return this.computeHeaderLogoHeight(F,W)==="24"?"0":"-7"};
_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],dm.prototype,"actionHandlerBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],dm.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],dm.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Boolean)],dm.prototype,"isDarkTheme",void 0);_.T([_.O({computed:"computeHeaderLogoThumbnail(data,isDarkTheme)"}),_.Y("design:type",Object)],dm.prototype,"themeLogo",void 0);
_.T([_.O({computed:"computeHeaderLogoHeight(data,isDarkTheme)"}),_.Y("design:type",String)],dm.prototype,"logoHeight",void 0);_.T([_.O({computed:"computeHeaderLogoMarginBottom(data,isDarkTheme)"}),_.Y("design:type",String)],dm.prototype,"logoMarginBottom",void 0);dm=_.T([_.y({is:"ytd-primetime-promo-header-renderer",disableElementRegistration:!0})],dm);
_.r(dm,"ytd-primetime-promo-header-renderer",function(){if(AxH!==void 0)return AxH;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-primetime-promo-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="logo" class="style-scope ytd-primetime-promo-header-renderer"><yt-img-shadow dimension="height" height$="[[logoHeight]]" margin-bottom$="[[logoMarginBottom]]" thumbnail="[[themeLogo]]" class="style-scope ytd-primetime-promo-header-renderer"></yt-img-shadow><ytd-badge-supported-renderer hidden="[[!data.badge]]" top-standalone-badge="[[data.badge]]" class="style-scope ytd-primetime-promo-header-renderer"></ytd-badge-supported-renderer></div>');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return AxH=F},{mode:1});var sbc;_.ht(KWk);var LDO=_.GK(function(F){var W=F.text;var E=F.className;var h=F.tagLevel;return _.z(_.sG,null,_.z(_.kF,{when:function(){return(h==null?void 0:h())===0}},function(){return _.z("h2",{class:E},W())}),_.z(_.kF,{when:function(){return(h==null?void 0:h())===1}},function(){return _.z("h3",{class:E},W())}),_.z(_.kF,{when:function(){return(h==null?void 0:h())===2}},function(){return _.z("h4",{class:E},W())}),_.z(_.A8,null,function(){return _.z("h2",{class:E},W())}))},"Fb"),qAT=_.GK(function(F){var W=_.tb(function(d){var V;
(V=F.onClick)==null||V.call(F,d)}),E={},h={};
return _.z("yt-shelf-header-layout",{class:_.ec("shelf-header-layout-wiz",(E["shelf-header-layout-wiz--disable-horizontal-padding"]=F.disableHorizontalPadding,E["shelf-header-layout-wiz--disable-vertical-padding"]=F.disableVerticalPadding,E["shelf-header-layout-wiz--responsive"]=F.useResponsiveLayout,E["shelf-header-layout-wiz--narrow"]=function(){var d,V;return((d=F.useResponsiveLayout)==null?void 0:d.call(F))&&((V=F.forceSmallLayout)==null?void 0:V.call(F))},E["shelf-header-layout-wiz--is-overlay"]=
F.isOverlay,E["shelf-header-layout-wiz--tappable"]=!!F.onClick,E)),
"on:click":W,tabindex:F.onClick?0:void 0},_.z(_.v,{cond:F.leadingIcon,then:function(d){return _.z("div",{class:"shelf-header-layout-wiz__leading-icon"},_.z(_.I3,{icon:d}))},
else:function(){return _.z(_.v,{cond:F.hasLeadingImage,then:function(){var d,V={};return _.z("div",{class:_.ec("shelf-header-layout-wiz__leading-image",(V["shelf-header-layout-wiz__leading-image--circular-image"]=F.circularImage,V))},(d=F.leadingImage)==null?void 0:d.call(F))}})}}),_.z("div",{class:"shelf-header-layout-wiz__label-container"},_.z(_.v,{cond:F.hasSuperlabel,
then:function(){var d;return _.z("div",{class:"shelf-header-layout-wiz__superlabel"},(d=F.superlabel)==null?void 0:d.call(F))}}),_.z("div",{class:"shelf-header-layout-wiz__title-row"},_.z(LDO,{text:F.title,
className:_.ec("shelf-header-layout-wiz__title",(h["shelf-header-layout-wiz__title--small-title"]=F.forceSmallLayout,h)),tagLevel:F.tagLevel}),_.z(_.v,{cond:F.hasDetail,then:function(){var d;return _.z("div",{class:"shelf-header-layout-wiz__detail"},(d=F.detail)==null?void 0:d.call(F))}})),_.z(_.v,{cond:F.hasSublabel,
then:function(){var d;return _.z("div",{class:"shelf-header-layout-wiz__sublabel"},(d=F.sublabel)==null?void 0:d.call(F))}})),_.z(_.v,{cond:F.hasTrailingActions,
then:function(){var d;return _.z("div",{class:"shelf-header-layout-wiz__trailing-actions"},(d=F.trailingActions)==null?void 0:d.call(F))}}))},"Gb"),VAY=_.c("web_enable_sink_section_header")?qAT:KWk,$kz=_.c("web_enable_sink_section_header")?qAT:_.Qt(KWk,{callbacks:{title:!0,
detail:!0,sublabel:!0,superlabel:!0,leadingImage:!0,trailingActions:!0,onClick:!0}});qAT.idomCompat={callbacks:{title:!0,detail:!0,sublabel:!0,superlabel:!0,leadingImage:!0,trailingActions:!0,onClick:!0}};var NBe=_.XF({flexibleActionsViewModel:mfX});_.ht(Utr);var PFp;PFp=_.GK(function(F){var W=F.data;return _.z("yt-section-header-view-model",{class:"ytSectionHeaderViewModelHost",style:_.vr({"background-color":function(){return pVr(W().backgroundColor)?_.XC(pVr(W().backgroundColor)):void 0}})},_.z($kz,{hasDetail:!1,
title:function(){return _.z(_.Ab,{text:function(){return W().headline}})},
hasTitle:!0,sublabel:function(){return _.z(ZFT,{data:W})},
hasSublabel:function(){return!!W().sublabel||!!W().bottomBadge},
superlabel:function(){return _.z(XWM,{data:W})},
hasSuperlabel:function(){return!!W().superlabel||!!W().topBadge},
leadingImage:function(){return _.z(HFO,{leadingAccessory:function(){return W().leadingAccessory}})},
hasLeadingImage:function(){return!!W().leadingAccessory},
trailingActions:function(){return _.z(_.a6,{data:function(){return W().trailingActions}},{flexibleActionsViewModel:Zj})},
hasTrailingActions:function(){return!!W().trailingActions},
disableHorizontalPadding:F.disableHorizontalPadding,disableVerticalPadding:F.disableVerticalPadding,forceSmallLayout:F.forceSmallLayout,useResponsiveLayout:F.useResponsiveLayout,isOverlay:F.isOverlay,onClick:function(E){if(_.uJ(W().rendererContext)){var h=_.wk(W().rendererContext);h&&_.Pe(h,{form:{element:E.target,event:E}})}}}))},"Hb");
_.N7=_.c("web_enable_sink_section_header")?PFp:_.Qt(Utr);PFp.idomCompat=!0;var HFO=_.GK(function(F){var W=F.leadingAccessory;return _.z(_.EG,null,_.z(_.v,{cond:function(){var E;return(E=W().image)!=null?E:_.d9(W().themedImage)},
then:function(E){return _.z(_.T4,{data:E,alt:"",preserveWidth:!0,preserveHeight:!0})}}),_.z(_.v,{cond:function(){return _.D(W().avatar,_.Kx)},
then:function(E){return _.z(_.fI,{data:E})}}))},"Ib"),ZFT=_.GK(function(F){var W=F.data;
return _.z(_.EG,null,_.z(_.v,{cond:function(){return _.D(W().bottomBadge,W5S)},
then:function(E){var h={};return _.z(_.pp,{data:E,class:_.ec((h.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!E()&&!!W().sublabel},h))})}}),_.z(_.v,{cond:function(){return W().sublabel},
then:function(E){return _.z(_.Ab,{text:E})}}))},"Jb"),XWM=_.GK(function(F){var W=F.data;
return _.z(_.EG,null,_.z(_.v,{cond:function(){return _.D(W().topBadge,W5S)},
then:function(E){var h={};return _.z(_.pp,{data:E,class:_.ec((h.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!E()&&!!W().superlabel},h))})}}),_.z(_.v,{cond:function(){return W().superlabel},
then:function(E){return _.z(_.Ab,{text:E})}}))},"Kb");_.pK(_.N7,"yt-section-header-view-model",{props:{data:_.TS,className:_.TS,disableHorizontalPadding:_.TS,disableVerticalPadding:_.TS,forceSmallLayout:_.TS,useResponsiveLayout:_.TS,isOverlay:_.TS}});_.Hr("itemSectionRenderer","primetimePromoRenderer","ytd-primetime-promo-renderer");var VL=function(){var F=_.n.apply(this,arguments)||this;F.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return F};
_.k(VL,_.n);_.N=VL.prototype;_.N.attached=function(){this.requestElementsPerRow()};
_.N.configureRendererStamper=function(){return{"data.panels":{id:"panels",mapping:{richItemRenderer:"ytd-rich-item-renderer"}},"data.header":{id:"header-contents",mapping:{primetimePromoHeaderRenderer:"ytd-primetime-promo-header-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}},
"data.overflowButton":{id:"overflow-button",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.sectionHeader":{id:"section-header-container",mapping:{sectionHeaderViewModel:{component:"yt-section-header-view-model",params:{disableHorizontalPadding:!0}}}},"data.details":{id:"details-panel",mapping:{primetimePromoDetailsRenderer:"ytd-primetime-promo-details-renderer"}}}};
_.N.onDataChange=function(){var F=this;_.wT(this,function(){F.updateItemVisibility()})};
_.N.onUpdateElementsPerRowAction=function(F){F&&this.elementsPerRow!==F&&(this.elementsPerRow=F,this.updateItemVisibility())};
_.N.updateItemVisibility=function(){var F=this;this.data&&this.data.panels&&_.Z(this.hostElement).querySelectorAll("ytd-rich-item-renderer").forEach(function(W,E){W.hidden=E>F.elementsPerRow-1})};
_.N.requestElementsPerRow=function(){_.hF(this.hostElement,"yt-request-elements-per-row")};
VL.prototype.onDataChange=VL.prototype.onDataChange;_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],VL.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.O9),_.Y("design:type",Object)],VL.prototype,"ytdDismissibleItemBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],VL.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],VL.prototype,"actionHandlerBehavior",void 0);
_.T([_.O(),_.Y("design:type",Object)],VL.prototype,"data",void 0);_.T([_.O({value:3}),_.Y("design:type",Number)],VL.prototype,"elementsPerRow",void 0);_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],VL.prototype,"onDataChange",null);VL=_.T([_.y({is:"ytd-primetime-promo-renderer",disableElementRegistration:!0})],VL);
_.r(VL,"ytd-primetime-promo-renderer",function(){if(sbc!==void 0)return sbc;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-primetime-promo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-primetime-promo-renderer">\n  <div id="header" class="style-scope ytd-primetime-promo-renderer">\n    <div id="header-contents" hidden="[[data.sectionHeader]]" class="style-scope ytd-primetime-promo-renderer"></div>\n    <div id="shelf-header-container" hidden="[[!data.sectionHeader]]" class="style-scope ytd-primetime-promo-renderer">\n      <div id="section-header-container" class="style-scope ytd-primetime-promo-renderer"></div>\n      <div id="details-panel" hidden="[[!data.details]]" class="style-scope ytd-primetime-promo-renderer"></div>\n    </div>\n    <div id="dismiss-button" hidden="[[data.overflowButton]]" class="style-scope ytd-primetime-promo-renderer"></div>\n    <div id="overflow-button" hidden="[[!data.overflowButton]]" class="style-scope ytd-primetime-promo-renderer"></div>\n  </div>\n  <div id="panels" class="style-scope ytd-primetime-promo-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-primetime-promo-renderer"></div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return sbc=F},{mode:1});var Jxz;var Ux=function(){var F=_.n.apply(this,arguments)||this;F.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction"};return F};
_.k(Ux,_.n);Ux.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
Ux.prototype.handleButtonRefreshAction=function(F){if(F=_.D(F,vic))this.set("data.button",F.membershipButton),this.notifyPath("data.button")};
_.Sn.Object.defineProperties(Ux.prototype,{avatars:{configurable:!0,enumerable:!0,get:function(){var F,W;return((F=this.data)==null?void 0:(W=F.avatars)==null?void 0:W.slice(0,8))||[]}}});
_.T([_.O(),_.Y("design:type",Object)],Ux.prototype,"data",void 0);_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],Ux.prototype,"ytActionHandlerBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],Ux.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Ux.prototype,"rendererBehavior",void 0);_.T([_.a("data"),_.Y("design:type",Array),_.Y("design:paramtypes",[])],Ux.prototype,"avatars",null);
Ux=_.T([_.y({is:"ytd-recognition-shelf-renderer",disableElementRegistration:!0})],Ux);
_.r(Ux,"ytd-recognition-shelf-renderer",function(){if(Jxz!==void 0)return Jxz;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-recognition-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-recognition-shelf-renderer">\n  <div id="text-container" class="style-scope ytd-recognition-shelf-renderer">\n    <yt-formatted-string class="title style-scope ytd-recognition-shelf-renderer" text="[[data.title]]"></yt-formatted-string>\n    <yt-formatted-string class="subtitle style-scope ytd-recognition-shelf-renderer" text="[[data.subtitle]]"></yt-formatted-string>\n  </div>\n  <div id="avatars-container" class="style-scope ytd-recognition-shelf-renderer">\n    <template is="dom-repeat" items="[[avatars]]" as="avatar" class="style-scope ytd-recognition-shelf-renderer">\n      <yt-img-shadow class="avatar style-scope ytd-recognition-shelf-renderer" thumbnail="[[avatar]]"></yt-img-shadow>\n    </template>\n  </div>\n  <div id="action-button" class="style-scope ytd-recognition-shelf-renderer"></div>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return Jxz=F},{mode:1});var al_;var flM;var R1=function(){var F=_.n.apply(this,arguments)||this;F.modernButtons=_.c("web_modern_buttons");return F};
_.k(R1,_.n);_.N=R1.prototype;
_.N.configureRendererStamper=function(){return{visibleItems:{id:"items",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-vertical-list-renderer lockup",containerType:3,force16By9ThumbnailAspectRatio:!0},properties:{thumbnailFixedWidth:"[[thumbnailWidth]]",typographyBump:"[[typographyBump]]"}},channelRenderer:"ytd-channel-renderer",playlistRenderer:{component:"ytd-playlist-renderer",properties:{isSearch:"[[isSearch]]"}},radioRenderer:"ytd-radio-renderer",showRenderer:"ytd-show-renderer",
videoRenderer:{component:"ytd-video-renderer",properties:{isSearch:"[[isSearch]]"}}}}}};
_.N.dataChanged=function(){this.collapsed=!0};
_.N.computeVisibleItems=function(F,W){return F!==void 0&&F.items?W?F.items.slice(0,this.data.collapsedItemCount):F.items:[]};
_.N.computeHideShowMore=function(F,W,E){return F>=W||!E};
_.N.computeHideShowAll=function(F,W,E){return!(F&&W)||E};
_.N.onMoreClick=function(){this.collapsed=!1};
_.Sn.Object.defineProperties(R1.prototype,{typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.c("use_modern_typography_on_search")}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":"246px"}}});
R1.prototype.dataChanged=R1.prototype.dataChanged;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],R1.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],R1.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],R1.prototype,"data",void 0);_.T([_.O({value:!1}),_.Y("design:type",Boolean)],R1.prototype,"isSearch",void 0);
_.T([_.O({computed:"computeVisibleItems(data,collapsed)"}),_.Y("design:type",Array)],R1.prototype,"visibleItems",void 0);_.T([_.O({value:!0}),_.Y("design:type",Boolean)],R1.prototype,"collapsed",void 0);_.T([_.O({computed:"computeHideShowMore(data.collapsedItemCount,data.items.length,collapsed)"}),_.Y("design:type",Boolean)],R1.prototype,"hideShowMore",void 0);
_.T([_.O({computed:"computeHideShowAll(data.expandedStateButtonEndpoint,\n        data.expandedStateButtonText,collapsed)",value:!0}),_.Y("design:type",Boolean)],R1.prototype,"hideShowAll",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],R1.prototype,"modernButtons",void 0);_.T([_.a("isSearch"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],R1.prototype,"typographyBump",null);
_.T([_.a("isSearch"),_.Y("design:type",String),_.Y("design:paramtypes",[])],R1.prototype,"thumbnailWidth",null);_.T([_.Cz("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],R1.prototype,"dataChanged",null);R1=_.T([_.y({disableElementRegistration:!0,is:"ytd-vertical-list-renderer"})],R1);
_.r(R1,"ytd-vertical-list-renderer",function(){if(flM!==void 0)return flM;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-vertical-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="items" class="style-scope ytd-vertical-list-renderer"></div>\n<div id="more" hidden="[[hideShowMore]]" class="style-scope ytd-vertical-list-renderer">\n  <yt-formatted-string text="[[data.collapsedStateButtonText]]" on-tap="onMoreClick" class="style-scope ytd-vertical-list-renderer">\n  </yt-formatted-string>\n</div>\n<div id="all" hidden="[[hideShowAll]]" class="style-scope ytd-vertical-list-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-vertical-list-renderer" href$="[[computeHref_(data.expandedStateButtonEndpoint]]" data="[[data.expandedStateButtonEndpoint]]">\n    <yt-formatted-string text="[[data.expandedStateButtonText]]" class="style-scope ytd-vertical-list-renderer">\n    </yt-formatted-string>\n  </a>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return flM=F},{mode:1});var OFi=_.Fc(["#"]);_.Hr("itemSectionRenderer","shelfRenderer","ytd-shelf-renderer");var eq=function(){var F=_.n.apply(this,arguments)||this;F.isConstrainedList=!1;F.modernTypography=_.c("web_modern_typography");return F};
_.k(eq,_.n);_.N=eq.prototype;
_.N.configureRendererStamper=function(){return{"data.content":{id:"contents",mapping:{gridRenderer:"ytd-grid-renderer",horizontalListRenderer:{component:"yt-horizontal-list-renderer",params:{thumbnailHeight:118},properties:{isSearch:"[[isSearch]]"}},horizontalMovieListRenderer:{component:"yt-horizontal-list-renderer",params:{thumbnailHeight:302}},expandedShelfContentsRenderer:{component:"ytd-expanded-shelf-contents-renderer",properties:{isConstrainedList:"[[isConstrainedList]]"}},messageRenderer:{component:"ytd-message-renderer",
params:{shelf:!0}},verticalListRenderer:{component:"ytd-vertical-list-renderer",properties:{isSearch:"[[isSearch]]"}}}},"data.playAllButton":{id:"play-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}},"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",attributes:{condensed:!0},properties:{icon:"[[menuIcon]]"}}}},"data.sortFilter":{id:"sort-filter",
mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.N.computeThumbnailStyle=function(F){return F||""};
_.N.computePlaceAnnotationUnderTitle=function(){var F;return["CHANNEL_THUMBNAIL_STYLE_BOXART","CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"].includes(((F=this.data)==null?void 0:F.thumbnailStyle)||"")};
_.N.computeHrefWithDefault=function(F){return this.ytComponentBehavior.computeHref_(F)||_.xw(OFi)};
_.N.computeIsPromoShelf=function(F){var W;return(F=F==null?void 0:(W=F[0])==null?void 0:W.metadataBadgeRenderer)?F.style==="BADGE_STYLE_TYPE_YPC_TRANSPARENT":!1};
_.N.computePlaceBadgeBesideTitle=function(F){var W;return(F==null?0:(W=F[0])==null?0:W.metadataBadgeRenderer)?!this.computeIsPromoShelf(F):!1};
_.N.computeMenuIcon=function(F){return this.computeIsPromoShelf(F)?"yt-icons:more_vert":"yt-icons:more"};
_.N.onDataChange=function(){var F,W;((F=this.data)==null?0:(W=F.content)==null?0:W.horizontalListRenderer)&&!this.data.content.horizontalListRenderer.items&&(this.data.content.horizontalListRenderer=void 0)};
_.N.onLockupRequested=function(F){if(this.data&&this.data.content&&this.data.content.gridRenderer&&this.data.content.gridRenderer.items&&F.detail&&F.detail.videoIds){for(var W=this.data.content.gridRenderer.items,E=new Set,h=_.U(F.detail.videoIds),d=h.next();!d.done;d=h.next())E.add(d.value);F.detail.returnValue=W.filter(function(V){return V.gridVideoRenderer&&V.gridVideoRenderer.videoId&&E.has(V.gridVideoRenderer.videoId)}).map(function(V){return V.gridVideoRenderer})}};
_.N.onParentResize=function(){this.ironResizableBehavior.notifyResize()};
eq.prototype.onLockupRequested=eq.prototype.onLockupRequested;eq.prototype.onDataChange=eq.prototype.onDataChange;_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],eq.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.O9),_.Y("design:type",Object)],eq.prototype,"ytdDismissibleItemBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],eq.prototype,"ytRendererBehavior",void 0);
_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],eq.prototype,"ytComponentBehavior",void 0);_.T([_.J(_.lB),_.Y("design:type",Object)],eq.prototype,"ironResizableBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],eq.prototype,"data",void 0);_.T([_.O({value:!1}),_.Y("design:type",Boolean)],eq.prototype,"isSearch",void 0);_.T([_.O(),_.Y("design:type",Object)],eq.prototype,"isConstrainedList",void 0);_.T([_.O({reflectToAttribute:!0,value:function(){return _.c("kevlar_fluid_dismiss")}}),
_.Y("design:type",Boolean)],eq.prototype,"enableFluidDismiss",void 0);_.T([_.O({reflectToAttribute:!0,computed:"computeThumbnailStyle(data.thumbnailStyle)"}),_.Y("design:type",String)],eq.prototype,"thumbnailStyle",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],eq.prototype,"modernTypography",void 0);_.T([_.O({computed:"computeMenuIcon(data.badges)"}),_.Y("design:type",String)],eq.prototype,"menuIcon",void 0);
_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],eq.prototype,"onDataChange",null);_.T([_.R4("yt-lockup-requested"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],eq.prototype,"onLockupRequested",null);eq=_.T([_.y({is:"ytd-shelf-renderer",disableElementRegistration:!0})],eq);
_.r(eq,"ytd-shelf-renderer",function(){if(al_!==void 0)return al_;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-shelf-renderer">\n  <div class="grid-subheader style-scope ytd-shelf-renderer" hidden="[[data.hideHeader]]">\n    <div id="title-container" hidden="[[!data.title]]" class="style-scope ytd-shelf-renderer">\n      <h2 class="style-scope ytd-shelf-renderer">\n        <template is="dom-if" if="[[!data.endpoint]]" class="style-scope ytd-shelf-renderer">\n          <yt-icon id="icon" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" class="style-scope ytd-shelf-renderer">\n          </yt-icon>\n          <span id="title" class="style-scope ytd-shelf-renderer">[[getSimpleString(data.title)]]</span>\n        </template>\n        <template is="dom-if" if="[[data.endpoint]]" class="style-scope ytd-shelf-renderer">\n          <div id="image-container" class="style-scope ytd-shelf-renderer">\n            <a class="yt-simple-endpoint style-scope ytd-shelf-renderer" aria-hidden="true" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]" tabindex="-1" title="[[getSimpleString(data.title)]]">\n              <yt-img-shadow id="avatar" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-shelf-renderer">\n              </yt-img-shadow>\n              <yt-icon id="icon" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" class="style-scope ytd-shelf-renderer">\n              </yt-icon>\n            </a>\n            <div id="title-text" class="style-scope ytd-shelf-renderer">\n              <a class="yt-simple-endpoint style-scope ytd-shelf-renderer" href$="[[computeHrefWithDefault(data.endpoint)]]" data="[[data.endpoint]]">\n                <span id="title" class="style-scope ytd-shelf-renderer">[[getSimpleString(data.title)]]</span>\n              </a>\n              <ytd-badge-supported-renderer id="title-featured-badge" badges="[[data.badges]]" hidden="[[!computeIsPromoShelf(data.badges)]]" class="style-scope ytd-shelf-renderer">\n              </ytd-badge-supported-renderer>\n              <yt-formatted-string id="title-annotation" hidden="[[!computePlaceAnnotationUnderTitle(data)]]" text="[[data.titleAnnotation]]" class="style-scope ytd-shelf-renderer">\n              </yt-formatted-string>\n            </div>\n          </div>\n        </template>\n        <ytd-badge-supported-renderer id="featured-badge" badges="[[data.badges]]" hidden="[[!computePlaceBadgeBesideTitle(data.badges)]]" class="style-scope ytd-shelf-renderer">\n        </ytd-badge-supported-renderer>\n        <yt-formatted-string id="title-annotation" hidden="[[computePlaceAnnotationUnderTitle(data)]]" text="[[data.titleAnnotation]]" class="style-scope ytd-shelf-renderer">\n        </yt-formatted-string>\n        <div id="play-button" class="style-scope ytd-shelf-renderer"></div>\n        <div id="sort-filter" class="style-scope ytd-shelf-renderer"></div>\n      </h2>\n      <div id="spacer" class="style-scope ytd-shelf-renderer"></div>\n      <div id="subscribe-button" class="style-scope ytd-shelf-renderer"></div>\n      <div id="menu" class="style-scope ytd-shelf-renderer"></div>\n    </div>\n    <yt-formatted-string id="subtitle" class="can-be-empty style-scope ytd-shelf-renderer" text="[[data.subtitle]]">\n    </yt-formatted-string>\n  </div>\n  <div id="contents" class="style-scope ytd-shelf-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-shelf-renderer"></div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return al_=F},{mode:1});var bFM;var M7=function(){return _.n.apply(this,arguments)||this};
_.k(M7,_.n);M7.prototype.configureRendererStamper=function(){return{"data.filterMenu":{id:"filter-menu",mapping:{sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",properties:{isRightAligned:"[[isRightAligned]]"}}}}}};
_.Sn.Object.defineProperties(M7.prototype,{hasTitle:{configurable:!0,enumerable:!0,get:function(){var F;return!((F=this.data)==null||!F.title)}},
isRightAligned:{configurable:!0,enumerable:!0,get:function(){return!this.isPlaylist&&!this.isClipList&&!this.isPlaylistPageWithFilters}}});
_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],M7.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],M7.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],M7.prototype,"data",void 0);_.T([_.O({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],M7.prototype,"isPlaylist",void 0);_.T([_.O({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],M7.prototype,"isClipList",void 0);
_.T([_.O({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],M7.prototype,"isPlaylistPageWithFilters",void 0);_.T([_.O({value:!1,reflectToAttribute:!0}),_.a("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],M7.prototype,"hasTitle",null);_.T([_.O(),_.a("isPlaylist","isClipList","isPlaylistPageWithFilters"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],M7.prototype,"isRightAligned",null);
M7=_.T([_.y({is:"ytd-sort-filter-header-renderer",disableElementRegistration:!0})],M7);
_.r(M7,"ytd-sort-filter-header-renderer",function(){if(bFM!==void 0)return bFM;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sort-filter-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header-container" class="style-scope ytd-sort-filter-header-renderer">\n  <div id="headings" hidden="[[!data.title]]" class="style-scope ytd-sort-filter-header-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-sort-filter-header-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-sort-filter-header-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="filter-menu" class="style-scope ytd-sort-filter-header-renderer"></div>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return bFM=F},{mode:1});var llc;var gm=function(){return _.n.apply(this,arguments)||this};
_.k(gm,_.n);
gm.prototype.configureRendererStamper=function(){return{"data.creatorVideosButton":{id:"infocard-videos-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.creatorAboutButton":{id:"infocard-channel-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.infocards":{id:"infocards-section",mapping:{compactInfocardRenderer:"ytd-compact-infocard-renderer"}},creatorCustomUrlButtons:{id:"items",mapping:{buttonRenderer:"ytd-button-renderer",buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}}}}};
gm.prototype.getItemsPath=function(){return"data.creatorCustomUrlButtons"};
_.Sn.Object.defineProperties(gm.prototype,{creatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){if(this.data&&_.c("enable_creator_details_shelf_m2")){var F=[],W;((W=this.data)==null?0:W.creatorVideosButton)&&F.push(this.data.creatorVideosButton);var E;((E=this.data)==null?0:E.creatorAboutButton)&&F.push(this.data.creatorAboutButton);W=_.U(this.data.creatorCustomUrlButtons||[]);for(E=W.next();!E.done;E=W.next())F.push(E.value);return F}}},
showCreatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){return!!_.c("enable_creator_details_shelf_m2")}},
channelAvatarSize:{configurable:!0,enumerable:!0,get:function(){return this.showCreatorCustomUrlButtons?36:72}}});
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],gm.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],gm.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.EL.YtdHorizontalListBehavior),_.Y("design:type",Object)],gm.prototype,"ytdHorizontalListBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],gm.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],gm.prototype,"engagementPanel",void 0);
_.T([_.a("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],gm.prototype,"creatorCustomUrlButtons",null);_.T([_.O({reflectToAttribute:!0}),_.a("data","creatorCustomUrlButtons"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],gm.prototype,"showCreatorCustomUrlButtons",null);_.T([_.a("showCreatorCustomUrlButtons"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],gm.prototype,"channelAvatarSize",null);
gm=_.T([_.y({is:"ytd-video-description-infocards-section-renderer",disableElementRegistration:!0})],gm);
_.r(gm,"ytd-video-description-infocards-section-renderer",function(){if(llc!==void 0)return llc;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-description-infocards-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="header" class="yt-simple-endpoint style-scope ytd-video-description-infocards-section-renderer" data="[[data.channelEndpoint]]" href$="[[computeOptionalHref_(data.channelEndpoint)]]">\n  <yt-img-shadow id="thumbnail" alt="[[getSimpleString(data.sectionTitle)]]" hidden="[[!data.channelAvatar]]" thumbnail="[[data.channelAvatar]]" width="[[channelAvatarSize]]" class="style-scope ytd-video-description-infocards-section-renderer">\n  </yt-img-shadow>\n  <div id="header-text" class="style-scope ytd-video-description-infocards-section-renderer">\n    <h3 id="title" class="style-scope ytd-video-description-infocards-section-renderer">[[getSimpleString(data.sectionTitle)]]</h3>\n    <div id="subtitle" hidden="[[!data.sectionSubtitle]]" class="style-scope ytd-video-description-infocards-section-renderer">\n      [[getSimpleString(data.sectionSubtitle)]]\n    </div>\n  </div>\n</a>\n<div id="action-buttons" hidden="[[showCreatorCustomUrlButtons]]" class="style-scope ytd-video-description-infocards-section-renderer">\n  <div id="infocard-videos-button" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n  <div id="infocard-channel-button" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n</div>\n<div id="social-links" hidden="[[!showCreatorCustomUrlButtons]]" class="style-scope ytd-video-description-infocards-section-renderer">\n  <div id="left-arrow-container" class="arrow-container style-scope ytd-video-description-infocards-section-renderer">\n    <div id="left-arrow" class="arrow center-aligned style-scope ytd-video-description-infocards-section-renderer" on-click="prevClick_" hidden="[[atStart]]">\n       <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-video-description-infocards-section-renderer"></yt-icon>\n    </div>\n  </div>\n  <div id="scroll-container" class="style-scope ytd-video-description-infocards-section-renderer">\n    <div id="items" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n  </div>\n  <div id="right-arrow-container" class="arrow-container style-scope ytd-video-description-infocards-section-renderer">\n    <div id="right-arrow" class="arrow center-aligned style-scope ytd-video-description-infocards-section-renderer" on-click="nextClick_">\n       <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-video-description-infocards-section-renderer"></yt-icon>\n    </div>\n  </div>\n</div>\n<div id="infocards-section" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return llc=F},{mode:_.E6("kevlar_poly_si_batch_j067")?1:2});var nMe;var QL=function(){return _.n.apply(this,arguments)||this};
_.k(QL,_.n);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],QL.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],QL.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],QL.prototype,"data",void 0);_.T([_.O({computed:"computeIcon_(data.infoIcon)"}),_.Y("design:type",Object)],QL.prototype,"infoIcon",void 0);QL=_.T([_.y({is:"ytd-eom-settings-disclaimer-renderer",disableElementRegistration:!0})],QL);
_.r(QL,"ytd-eom-settings-disclaimer-renderer",function(){if(nMe!==void 0)return nMe;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-eom-settings-disclaimer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="app" class="style-scope ytd-eom-settings-disclaimer-renderer">\n  <yt-icon id="info" disable-upgrade$="[[!infoIcon]]" hidden="[[!infoIcon]]" icon="[[infoIcon]]" class="style-scope ytd-eom-settings-disclaimer-renderer">\n  </yt-icon>\n  <yt-formatted-string id="label" text="[[data.disclaimer]]" class="style-scope ytd-eom-settings-disclaimer-renderer">\n  </yt-formatted-string>\n</div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return nMe=F},{mode:1});var yxp;var zl=function(){return _.n.apply(this,arguments)||this};
_.k(zl,_.n);_.Sn.Object.defineProperties(zl.prototype,{suppressPaddingDisclaimer:{configurable:!0,enumerable:!0,get:function(){var F;return!((F=this.data)==null||!F.suppressPaddingDisclaimer)}}});
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],zl.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],zl.prototype,"componentBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],zl.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],zl.prototype,"data",void 0);
_.T([_.O({reflectToAttribute:!0}),_.a("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],zl.prototype,"suppressPaddingDisclaimer",null);zl=_.T([_.y({disableElementRegistration:!0,is:"ytd-product-list-header-renderer"})],zl);
_.r(zl,"ytd-product-list-header-renderer",function(){if(yxp!==void 0)return yxp;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-list-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="main" class="style-scope ytd-product-list-header-renderer">\n  <yt-formatted-string id="title" role="heading" text="[[data.title]]" class="style-scope ytd-product-list-header-renderer">\n    </yt-formatted-string>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return yxp=F},{mode:1});var jbB;var te=function(){return _.n.apply(this,arguments)||this};
_.k(te,_.n);te.prototype.computeThumbnailStyle=function(F){if(F&&(F=_.ZP(F)))return"background-color:"+F+";"};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],te.prototype,"rendererBehaviors",void 0);_.T([_.O(),_.Y("design:type",Object)],te.prototype,"data",void 0);te=_.T([_.y({disableElementRegistration:!0,is:"ytd-hashtag-tile-renderer"})],te);
_.r(te,"ytd-hashtag-tile-renderer",function(){if(jbB!==void 0)return jbB;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hashtag-tile-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content-section" class="style-scope ytd-hashtag-tile-renderer"><div id="thumbnail-section" class="style-scope ytd-hashtag-tile-renderer"><a class="hashtag-link yt-simple-endpoint style-scope ytd-hashtag-tile-renderer" href$="[[computeHref_(data.onTapCommand)]]" data="[[data.onTapCommand]]"><div id="thumbnail" class="style-scope ytd-hashtag-tile-renderer"><div id="thumbnail-spacing-wrapper" class="style-scope ytd-hashtag-tile-renderer"><div id="thumbnail-color-wrapper" style="[[computeThumbnailStyle(data.hashtagBackgroundColor)]]" class="style-scope ytd-hashtag-tile-renderer"><yt-img-shadow height="64" thumbnail="[[data.hashtagThumbnail]]" width="64" class="style-scope ytd-hashtag-tile-renderer"></yt-img-shadow></div></div></div></a></div><div id="info-section" class="style-scope ytd-hashtag-tile-renderer"><a id="main-link" class="hashtag-link yt-simple-endpoint style-scope ytd-hashtag-tile-renderer" href$="[[computeHref_(data.onTapCommand)]]" data="[[data.onTapCommand]]"><div id="info" class="style-scope ytd-hashtag-tile-renderer"><yt-formatted-string id="hashtag" text="[[data.hashtag]]" class="style-scope ytd-hashtag-tile-renderer"></yt-formatted-string><div id="metadata" class="style-scope ytd-hashtag-tile-renderer"><yt-formatted-string id="hashtag-info-text" text="[[data.hashtagInfoText]]" class="style-scope ytd-hashtag-tile-renderer"></yt-formatted-string></div></div></a></div></div>');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return jbB=F},{mode:1});var iFH;var CR=function(){return _.n.apply(this,arguments)||this};
_.k(CR,_.n);CR.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.secondaryActionButton":{id:"secondary-action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],CR.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],CR.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],CR.prototype,"data",void 0);CR=_.T([_.y({disableElementRegistration:!0,is:"ytd-sponsorships-alert-renderer"})],CR);
_.r(CR,"ytd-sponsorships-alert-renderer",function(){if(iFH!==void 0)return iFH;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-alert-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="alert-message" text="[[data.alertMessage]]" class="style-scope ytd-sponsorships-alert-renderer"></yt-formatted-string>\n<div id="action-buttons" class="style-scope ytd-sponsorships-alert-renderer">\n  <div id="action-button" class="style-scope ytd-sponsorships-alert-renderer"></div>\n  <div id="secondary-action-button" class="style-scope ytd-sponsorships-alert-renderer"></div>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return iFH=F},{mode:1});var rxB;var Bj=function(){return _.n.apply(this,arguments)||this};
_.k(Bj,_.n);Bj.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.Sn.Object.defineProperties(Bj.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.c("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.c("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
_.T([_.J(_.O9),_.Y("design:type",Object)],Bj.prototype,"ytdDismissibleItemBehavior",void 0);_.T([_.J(_.rt),_.Y("design:type",Object)],Bj.prototype,"ytdLockupBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],Bj.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Bj.prototype,"ytRendererBehavior",void 0);_.T([_.O({selector:_.o6}),_.Y("design:type",Object)],Bj.prototype,"isGridViewEnabled",void 0);
_.T([_.a("isGridViewEnabled"),_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Bj.prototype,"watchFeedBigThumbs",null);_.T([_.a("isGridViewEnabled"),_.O({reflectToAttribute:!0}),_.Y("design:type",String),_.Y("design:paramtypes",[])],Bj.prototype,"thumbnailWidth",null);_.T([_.O(),_.Y("design:type",Object)],Bj.prototype,"data",void 0);Bj=_.T([_.y({disableElementRegistration:!0,is:"ytd-compact-movie-renderer"})],Bj);
_.r(Bj,"ytd-compact-movie-renderer",function(){if(rxB!==void 0)return rxB;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-movie-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-compact-movie-renderer">\n  <ytd-thumbnail data="[[data]]" use-expandable-tooltip="[[useExpandableTooltip_]]" width="[[thumbnailWidth]]" class="style-scope ytd-compact-movie-renderer">\n  </ytd-thumbnail>\n  <div class="details style-scope ytd-compact-movie-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-compact-movie-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n      <template is="dom-if" if="[[data.topStandaloneBadges]]" class="style-scope ytd-compact-movie-renderer">\n        <ytd-badge-supported-renderer badges="[[data.topStandaloneBadges]]" class="style-scope ytd-compact-movie-renderer">\n        </ytd-badge-supported-renderer>\n      </template>\n      <h3 id="movie-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-compact-movie-renderer">\n        [[getSimpleString(data.title)]]\n      </h3>\n      <div class="secondary-metadata style-scope ytd-compact-movie-renderer">\n        <ytd-video-meta-block class="compact style-scope ytd-compact-movie-renderer" data="[[data]]" no-endpoints="">\n        </ytd-video-meta-block>\n        <span class="movie-metadata style-scope ytd-compact-movie-renderer">[[getSimpleString(data.topMetadataItems.0)]]</span>\n      </div>\n      <template is="dom-if" if="[[data.badges]]" class="style-scope ytd-compact-movie-renderer">\n        <ytd-badge-supported-renderer badges="[[data.badges]]" class="style-scope ytd-compact-movie-renderer">\n        </ytd-badge-supported-renderer>\n      </template>\n    </a>\n    <div id="menu" class="style-scope ytd-compact-movie-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-compact-movie-renderer"></div>\n<yt-interaction id="interaction" class="extended style-scope ytd-compact-movie-renderer"></yt-interaction>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return rxB=F},{mode:1});var TbU;var oMp;var Ggu=_.b0("HTML_DIR")==="rtl",vj=function(){var F=_.n.apply(this,arguments)||this;F.engagementPanel=!1;F.maxLines=2;F.expandButtonOffset=0;F.showExpandButton=!1;F.isTruncated=!1;F.isExpanded=!1;F.currentSnippetType=2;F.alwaysShowExpandButton=!1;F.JSC$14178_lastWidth=NaN;F.observer=null;F.left=0;F.right=0;F.mid=0;F.longestSnippetLength=0;F.isFinalSnippet=!1;F.isFirstMutation=!1;F.isResetMutation=!1;F.OVERFLOW_THRESHOLD=5;return F};
_.k(vj,_.n);_.N=vj.prototype;_.N.onClick=function(F){if(this.engagementPanel&&(this.showExpandButton||this.isExpanded)&&!_.Sc(_.TB(F)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var W;if((W=window.getSelection())==null||!W.toString().length)if(this.isExpanded)this.onCollapseClick();else this.onExpandClick()}};
_.N.updateIsAttributedExpanded=function(){this.isAttributedExpanded=this.isExpanded&&this.hasAttributedStringText};
_.N.updateIsFormattedExpanded=function(){this.isFormattedExpanded=this.isExpanded&&!this.hasAttributedStringText};
_.N.updateTextOnSnippetTypeChange=function(){_.c("update_text_inline_expander_on_snippet_type_change_killswitch")||this.isResetMutation&&this.mutationCallback()};
_.N.setUpBinarySearch=function(F){F=F*this.maxLines/8;this.left=0;var W,E;this.right=Math.min(F*2,(E=(W=this.simpleText)==null?void 0:W.length)!=null?E:0)-1;this.mid=Math.floor(this.left+(this.right-this.left)/2);this.longestSnippetLength=0};
_.N.isEmptyStringBestCandidate=function(){return!this.isResetMutation&&!this.isFirstMutation&&this.longestSnippetLength===0&&this.mid===0};
_.N.maybeLogWarningForEmptyAttributedSnippet=function(){this.attributedSnippetIsEmpty()&&!this.attributedTextIsEmpty()&&_.OB(new _.xC("AttributedSnippet is empty when the description is not empty",this.text))};
_.N.mutationCallback=function(){if(this.observer!=null){var F=this.hostElement.offsetWidth;if(this.attributedSnippetIsEmpty()){if(this.isEmptyStringBestCandidate()){var W=Math.floor(F*this.maxLines/8);this.setSnippetText(this.text,W);W!==0||this.attributedTextIsEmpty()||_.OB(new _.xC("Estimated visible character count is 0 for AttributedString description",this.text));this.isFinalSnippet=!0;return}if(this.isResetMutation){this.isResetMutation=!1;this.observer.disconnect();this.attributedTextIsEmpty()?
this.maybeLogWarningForEmptyAttributedSnippet():this.resize(!0);return}}if(this.isFinalSnippet)this.expandButtonOffset=this.computeExpandButtonOffset(),this.observer.disconnect(),this.maybeLogWarningForEmptyAttributedSnippet();else if(this.isFirstMutation)if(this.isOverflowing()){this.showExpandButton=this.isTruncated=!0;F=F*this.maxLines/8;this.left=0;var E;this.right=Math.min(F*2,(E=(W=this.simpleText)==null?void 0:W.length)!=null?E:0)-1;this.mid=Math.floor(this.left+(this.right-this.left)/2);this.longestSnippetLength=
0;this.setSnippetText(this.text,this.mid);this.isFirstMutation=!1}else this.isTruncated=!1,this.alwaysShowExpandButton&&(this.expandButtonOffset=this.computeExpandButtonOffset()),this.isFinalSnippet=!0,this.isFirstMutation=!1,this.observer.disconnect(),this.maybeLogWarningForEmptyAttributedSnippet();else{this.isOverflowing()?this.right=this.mid-1:(this.left=this.mid+1,this.longestSnippetLength=this.mid);if(this.left>this.right){if(this.mid===this.longestSnippetLength){this.expandButtonOffset=this.computeExpandButtonOffset();
this.observer.disconnect();this.maybeLogWarningForEmptyAttributedSnippet();return}this.setSnippetText(this.text,this.longestSnippetLength);this.isFinalSnippet=!0}this.mid=Math.floor(this.left+(this.right-this.left)/2);this.setSnippetText(this.text,this.mid)}}};
_.N.mutationObserve=function(F){var W=this;this.observer||(this.observer=new MutationObserver(function(){W.mutationCallback()}));
this.observer.observe(F,{childList:!0,characterData:!0,characterDataOldValue:!0,subtree:!0})};
_.N.attached=function(){var F=this;_.wT(this,function(){F.resize()})};
_.N.isExpandedChanged=function(){_.hF(this.hostElement,"yt-text-inline-expander-expanded-changed")};
_.N.updateSnippetContainerMaxHeight=function(){this.isExpanded?(this.snippetContainer.style.setProperty("overflow",""),this.snippetContainer.style.setProperty("max-height","")):(this.snippetContainer.style.setProperty("overflow","hidden"),this.snippetContainer.style.setProperty("max-height",2*this.maxLines+"rem"));this.resize(!0)};
_.N.updateMaskAndExpandButtonOffset=function(){if(this.isTruncated){var F="linear-gradient(\n        to top,\n        transparent 0%,\n        transparent 2rem,\n        #000 2rem,\n        #000 100%), linear-gradient(\n        to "+((Ggu?"left":"right")+",\n        #000 0%,\n        #000 "+(this.expandButtonOffset-24)+"px,\n        transparent "+this.expandButtonOffset+"px,\n        transparent 100%)");this.snippetContainer.style.setProperty("-webkit-mask-image",F);this.snippetContainer.style.setProperty("mask-image",
F)}else this.snippetContainer.style.setProperty("-webkit-mask-image",""),this.snippetContainer.style.setProperty("mask-image","");this.showExpandButton&&this.expandButton.style.setProperty(Ggu?"right":"left",this.expandButtonOffset+"px")};
_.N.onTextChanged=function(){this.isAttached&&this.resize(!0)};
_.N.setSnippetText=function(F,W){F||(F={});if(_.yd(F)){var E=mxo(F,W);E.attachmentRuns||E.commandRuns||E.decorationRuns||E.styleRuns||E.alignment||E.lineBreakMode?this.attributedSnippetTextEl?(_.c("kevlar_expander_as_setter_killswitch")?(this.attributedSnippetTextEl.data=mxo(F,W),this.attributedSnippetTextEl.headerRuns=pqb(W,this.headerRuns)):this.attributedSnippetText={data:mxo(F,W),headerRuns:pqb(W,this.headerRuns)},this.currentSnippetType=0):_.OB(new _.xC("Tried to set snippet text when HTML element was null",
F)):(this.plainSnippetText.textContent=bH(F.content||"",W),this.currentSnippetType=2)}else{a:{E=Rjk(F,W);if(E.runs){E=_.U(E.runs);for(var h=E.next();!h.done;h=E.next())if(h=h.value,h.bold||h.deemphasize||h.italics||h.strikethrough||h.textColor||h.navigationEndpoint||_.D(h,$T)){E=!0;break a}}E=!1}E?this.formattedSnippetText?(this.formattedSnippetText.text=Rjk(F,W),this.currentSnippetType=1):_.OB(new _.xC("Tried to set snippet text when HTML element was null",F)):(this.plainSnippetText.textContent=
bH(_.Yr(F),W),this.currentSnippetType=2)}};
_.N.attributedSnippetIsEmpty=function(){return this.useAttributedSnippet&&this.attributedSnippetTextEl?this.attributedSnippetTextEl.childNodes.length===0:this.plainSnippetText.childNodes.length===0};
_.N.attributedTextIsEmpty=function(){var F=this.text;if(!_.yd(F))return!0;var W;return((W=F.content)==null?void 0:W.length)===0?!0:!1};
_.N.resize=function(F){if(this.snippetText){if(F===void 0?0:F)this.JSC$14178_lastWidth=NaN;var W=this.hostElement.offsetWidth;if(W!==this.JSC$14178_lastWidth&&!this.isExpanded)if(this.JSC$14178_lastWidth=W,this.hasAttributedStringText)this.attributedSnippetIsEmpty()?(this.showExpandButton=this.alwaysShowExpandButton,this.isFinalSnippet=!1,this.isFirstMutation=!0,this.mutationObserve(this.snippetText),this.setSnippetText(this.text,Infinity)):(this.isResetMutation=!0,this.mutationObserve(this.snippetText),
this.setSnippetText(this.text,0));else if(this.setSnippetText(this.text,Infinity),this.showExpandButton=this.alwaysShowExpandButton,this.isOverflowing()){this.showExpandButton=this.isTruncated=!0;F=0;var E,h;W=Math.min(W*this.maxLines/8*2,(h=(E=this.simpleText)==null?void 0:E.length)!=null?h:0)-1;for(E=0;F<=W;)h=Math.floor(F+(W-F)/2),this.setSnippetText(this.text,h),this.isOverflowing()?W=h-1:(F=h+1,E=h);this.setSnippetText(this.text,E);this.expandButtonOffset=this.computeExpandButtonOffset()}else this.isTruncated=
!1,this.alwaysShowExpandButton&&(this.expandButtonOffset=this.computeExpandButtonOffset())}};
_.N.collapse=function(){this.isExpanded=!1;this.resize(!0)};
_.N.onExpandClick=function(){var F=this;this.expandCommand?this.componentBehavior.resolveCommand(this.expandCommand):(this.isExpanded=!0,this.showExpandButton=this.isTruncated=!1);_.c("inline_expander_reset_focus_killswitch")||_.wT(this,function(){var W;((W=_.WZ().resolve(_.Fd(_.$V)))==null?0:W.isKeyBoardInUse())&&_.Y7(F.hostElement)});
_.hF(this.hostElement,"yt-text-inline-expander-expand-clicked")};
_.N.onCollapseClick=function(){this.collapse();_.hF(this.hostElement,"yt-text-inline-expander-collapse-clicked")};
_.N.isOverflowing=function(){return this.snippetContainer.scrollHeight-this.snippetContainer.offsetHeight>this.OVERFLOW_THRESHOLD};
_.N.computeExpandButtonOffset=function(){var F=this.expandSizer;return F?Ggu?F.offsetParent?F.offsetParent.offsetWidth-F.offsetWidth-F.offsetLeft:0:F.offsetLeft:0};
_.Sn.Object.defineProperties(vj.prototype,{simpleText:{configurable:!0,enumerable:!0,get:function(){return this.text?_.yd(this.text)?this.text.content||"":_.Yr(this.text):""}},
expandedText:{configurable:!0,enumerable:!0,get:function(){return this.isExpanded?this.text:void 0}},
expandedHeaderRuns:{configurable:!0,enumerable:!0,get:function(){return this.isExpanded?this.headerRuns:void 0}},
hasAttributedStringText:{configurable:!0,enumerable:!0,get:function(){return _.yd(this.text)?!0:this.text&&_.c("web_replace_formatted_with_attributed_string")&&cIo(this.text)?(this.text=_.qr(this.text),!0):!1}},
showCollapseButton:{configurable:!0,enumerable:!0,get:function(){return!!this.collapseLabel&&this.isExpanded}},
useAttributedSnippet:{configurable:!0,enumerable:!0,get:function(){return this.currentSnippetType===0}},
useFormattedSnippet:{configurable:!0,enumerable:!0,get:function(){return this.currentSnippetType===1}},
usePlainSnippet:{configurable:!0,enumerable:!0,get:function(){return this.currentSnippetType===2}}});
vj.prototype.onTextChanged=vj.prototype.onTextChanged;vj.prototype.updateMaskAndExpandButtonOffset=vj.prototype.updateMaskAndExpandButtonOffset;vj.prototype.updateSnippetContainerMaxHeight=vj.prototype.updateSnippetContainerMaxHeight;vj.prototype.isExpandedChanged=vj.prototype.isExpandedChanged;vj.prototype.updateTextOnSnippetTypeChange=vj.prototype.updateTextOnSnippetTypeChange;vj.prototype.updateIsFormattedExpanded=vj.prototype.updateIsFormattedExpanded;vj.prototype.updateIsAttributedExpanded=vj.prototype.updateIsAttributedExpanded;
vj.prototype.onClick=vj.prototype.onClick;_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],vj.prototype,"componentBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],vj.prototype,"text",void 0);_.T([_.O(),_.Y("design:type",Array)],vj.prototype,"headerRuns",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],vj.prototype,"engagementPanel",void 0);_.T([_.O(),_.Y("design:type",Object)],vj.prototype,"maxLines",void 0);
_.T([_.O(),_.Y("design:type",String)],vj.prototype,"expandLabel",void 0);_.T([_.O(),_.Y("design:type",String)],vj.prototype,"collapseLabel",void 0);_.T([_.O(),_.Y("design:type",Object)],vj.prototype,"expandCommand",void 0);_.T([_.O(),_.Y("design:type",Object)],vj.prototype,"expandButtonOffset",void 0);_.T([_.a("text"),_.Y("design:type",String),_.Y("design:paramtypes",[])],vj.prototype,"simpleText",null);
_.T([_.R4("click"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],vj.prototype,"onClick",null);_.T([_.a("text","isExpanded"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],vj.prototype,"expandedText",null);_.T([_.a("headerRuns","isExpanded"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],vj.prototype,"expandedHeaderRuns",null);
_.T([_.a("text"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],vj.prototype,"hasAttributedStringText",null);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],vj.prototype,"showExpandButton",void 0);_.T([_.a("collapseLabel","isExpanded"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],vj.prototype,"showCollapseButton",null);_.T([_.O(),_.Y("design:type",Object)],vj.prototype,"isTruncated",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],vj.prototype,"isExpanded",void 0);_.T([_.O(),_.Y("design:type",Boolean)],vj.prototype,"isAttributedExpanded",void 0);_.T([_.ea("isExpanded","hasAttributedStringText"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],vj.prototype,"updateIsAttributedExpanded",null);_.T([_.O(),_.Y("design:type",Boolean)],vj.prototype,"isFormattedExpanded",void 0);
_.T([_.ea("isExpanded","hasAttributedStringText"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],vj.prototype,"updateIsFormattedExpanded",null);_.T([_.O(),_.Y("design:type",Number)],vj.prototype,"currentSnippetType",void 0);_.T([_.a("currentSnippetType"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],vj.prototype,"useAttributedSnippet",null);
_.T([_.a("currentSnippetType"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],vj.prototype,"useFormattedSnippet",null);_.T([_.a("currentSnippetType"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],vj.prototype,"usePlainSnippet",null);_.T([_.O(),_.Y("design:type",Object)],vj.prototype,"alwaysShowExpandButton",void 0);_.T([_.ea("currentSnippetType"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],vj.prototype,"updateTextOnSnippetTypeChange",null);
_.T([_.O(),_.Y("design:type",Object)],vj.prototype,"attributedSnippetText",void 0);_.T([_.gQ("#snippet"),_.Y("design:type",HTMLElement)],vj.prototype,"snippetContainer",void 0);_.T([_.gQ("#snippet-text"),_.Y("design:type",HTMLElement)],vj.prototype,"snippetText",void 0);_.T([_.gQ("#plain-snippet-text"),_.Y("design:type",HTMLElement)],vj.prototype,"plainSnippetText",void 0);_.T([_.gQ("#formatted-snippet-text"),_.Y("design:type",Object)],vj.prototype,"formattedSnippetText",void 0);
_.T([_.gQ("#attributed-snippet-text"),_.Y("design:type",Object)],vj.prototype,"attributedSnippetTextEl",void 0);_.T([_.gQ("#expand"),_.Y("design:type",HTMLElement)],vj.prototype,"expandButton",void 0);_.T([_.gQ("#expand-sizer"),_.Y("design:type",HTMLElement)],vj.prototype,"expandSizer",void 0);_.T([_.Cz("isExpanded"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],vj.prototype,"isExpandedChanged",null);
_.T([_.ea("isExpanded","maxLines"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],vj.prototype,"updateSnippetContainerMaxHeight",null);_.T([_.ea("isTruncated","showExpandButton","expandButtonOffset"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],vj.prototype,"updateMaskAndExpandButtonOffset",null);
_.T([_.Cz("text","simpleText","expandLabel","maxLines","alwaysShowExpandButton"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],vj.prototype,"onTextChanged",null);vj=_.T([_.y({is:"ytd-text-inline-expander",disableElementRegistration:!0})],vj);
_.r(vj,"ytd-text-inline-expander",function(){if(oMp===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-text-inline-expander--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-attributed-string data="[[expandedText]]" disable-upgrade$="[[!hasAttributedStringText]]" header-runs="[[expandedHeaderRuns]]" hidden="[[!isAttributedExpanded]]" user-input="" class="style-scope ytd-text-inline-expander"></yt-attributed-string><yt-formatted-string disable-attributed-string="" disable-upgrade$="[[hasAttributedStringText]]" hidden="[[!isFormattedExpanded]]" split-lines="[[!hasAttributedStringText]]" text="[[expandedText]]" class="style-scope ytd-text-inline-expander"></yt-formatted-string><div id="snippet" class="style-scope ytd-text-inline-expander"><span id="snippet-text" hidden="[[isExpanded]]" class="style-scope ytd-text-inline-expander"><span id="plain-snippet-text" hidden="[[!usePlainSnippet]]" class="style-scope ytd-text-inline-expander"></span><yt-attributed-string id="attributed-snippet-text" data="[[attributedSnippetText.data]]" disable-upgrade$="[[!hasAttributedStringText]]" header-runs="[[attributedSnippetText.headerRuns]]" hidden="[[!useAttributedSnippet]]" user-input="" class="style-scope ytd-text-inline-expander"></yt-attributed-string><yt-formatted-string id="formatted-snippet-text" disable-attributed-string="" disable-upgrade$="[[hasAttributedStringText]]" hidden="[[!useFormattedSnippet]]" class="style-scope ytd-text-inline-expander"></yt-formatted-string></span><span hidden="[[!showExpandButton]]" class="style-scope ytd-text-inline-expander">\u00a0</span><span id="ellipsis" hidden="[[!isTruncated]]" class="style-scope ytd-text-inline-expander">\u2026</span><tp-yt-paper-button id="expand-sizer" class="button style-scope ytd-text-inline-expander" hidden="[[!showExpandButton]]">[[expandLabel]]</tp-yt-paper-button></div><tp-yt-paper-button id="expand" class="button style-scope ytd-text-inline-expander" hidden="[[!showExpandButton]]" on-click="onExpandClick">[[expandLabel]]</tp-yt-paper-button><slot name="extra-content" class="style-scope ytd-text-inline-expander"></slot><tp-yt-paper-button id="collapse" class="button style-scope ytd-text-inline-expander" hidden="[[!showCollapseButton]]" on-click="onCollapseClick">[[collapseLabel]]</tp-yt-paper-button>');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);oMp=F}F=oMp;return F},{mode:2});var I1=function(){var F=_.n.apply(this,arguments)||this;F.actionMap={"yt-update-description-action":"handleUpdateDescriptionAction"};return F};
_.k(I1,_.n);I1.prototype.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inlineExpander&&(this.inlineExpander.isExpanded=!1,this.inlineExpander.resize())};
I1.prototype.handleUpdateDescriptionAction=function(F){if(F=_.D(F,_.xIO))if(F.attributedDescription)this.set("data.attributedDescriptionBodyText",F.attributedDescription);else if(F.description){var W;((W=this.data)==null?0:W.attributedDescriptionBodyText)?this.set("data.attributedDescriptionBodyText",_.qr(F.description)):this.set("data.descriptionBodyText",F.description)}};
_.Sn.Object.defineProperties(I1.prototype,{hasDescriptionText:{configurable:!0,enumerable:!0,get:function(){var F,W;return!((F=this.data)==null||!F.attributedDescriptionBodyText)||!((W=this.data)==null||!W.descriptionBodyText)}},
collapsedLines:{configurable:!0,enumerable:!0,get:function(){var F;if((F=this.data)==null?0:F.collapsedLineCount){var W;return(W=this.data)==null?void 0:W.collapsedLineCount}F=_.dV("web_watch_description_collapsed_default_lines",12);if(_.c("ww_desc_line_page_size_ks"))return F;W=Math.round(_.cB().height*_.dV("web_watch_description_screen_height_percentage",.5)/20);return Math.max(W,F)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){var F,W,E;return(E=(F=this.data)==null?void 0:F.descriptionBodyText)!=null?E:(W=this.data)==null?void 0:W.attributedDescriptionBodyText}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var F;return(F=this.data)==null?void 0:F.headerRuns}},
sourceAttributions:{configurable:!0,enumerable:!0,get:function(){var F;return(F=this.data)==null?void 0:F.sourceAttributions}}});
I1.prototype.panelContentVisibleChanged=I1.prototype.panelContentVisibleChanged;_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],I1.prototype,"ytActionHandlerBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],I1.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],I1.prototype,"componentBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],I1.prototype,"data",void 0);
_.T([_.O(),_.Y("design:type",Boolean)],I1.prototype,"panelContentVisible",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],I1.prototype,"engagementPanel",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],I1.prototype,"shortsPanel",void 0);_.T([_.gQ("#inline-expander"),_.Y("design:type",Object)],I1.prototype,"inlineExpander",void 0);
_.T([_.ea("panelContentVisible"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],I1.prototype,"panelContentVisibleChanged",null);_.T([_.a("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],I1.prototype,"hasDescriptionText",null);_.T([_.a("data"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],I1.prototype,"collapsedLines",null);
_.T([_.a("data","data.descriptionBodyText","data.attributedDescriptionBodyText"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],I1.prototype,"descriptionText",null);_.T([_.a("data","data.headerRuns"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],I1.prototype,"headerRuns",null);_.T([_.a("data","data.sourceAttributions"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],I1.prototype,"sourceAttributions",null);
I1=_.T([_.y({is:"ytd-expandable-video-description-body-renderer",disableElementRegistration:!0})],I1);
_.r(I1,"ytd-expandable-video-description-body-renderer",function(){if(TbU!==void 0)return TbU;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expandable-video-description-body-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-text-inline-expander id="inline-expander" collapse-label="[[getSimpleString(data.showLessText)]]" engagement-panel="[[engagementPanel]]" expand-label="[[getSimpleString(data.showMoreText)]]" header-runs="[[headerRuns]]" max-lines="[[collapsedLines]]" text="[[descriptionText]]" class="style-scope ytd-expandable-video-description-body-renderer">\n</ytd-text-inline-expander>\n<div id="source-attributions-wrapper" engagement-panel="[[engagementPanel]]" class="style-scope ytd-expandable-video-description-body-renderer">\n<template is="dom-repeat" items="[[sourceAttributions]]" as="sourceAttribution" class="style-scope ytd-expandable-video-description-body-renderer">\n  <yt-attributed-string class="source-attribution style-scope ytd-expandable-video-description-body-renderer" data="[[sourceAttribution]]" link-inherit-color="">\n  </yt-attributed-string>\n  </template>\n</div>');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return TbU=F},{mode:_.E6("kevlar_poly_si_batch_j028")?1:2});var YA_;var wWM=_.GK(function(F){var W=F.data;return _.z("factoid-renderer",{class:"ytwFactoidRendererHost"},_.z("div",{class:"ytwFactoidRendererFactoid",role:"text","aria-label":function(){return W().accessibilityText}},_.z("span",{class:"ytwFactoidRendererValue"},_.z(_.Ab,{text:function(){return W().value}})),_.z("span",{class:"ytwFactoidRendererLabel"},_.z(_.Ab,{text:function(){return W().label}}))))},"Lb");_.pK(wWM,"factoid-renderer",{props:{data:_.TS}});_.pK(_.GK(function(F){var W=F.data;return _.z("upload-time-factoid-renderer",null,_.z(_.a6,{data:function(){return W().factoid}},{factoidRenderer:wWM}))},"Mb"),"upload-time-factoid-renderer",{props:{data:_.Si}});_.pK(_.GK(function(F){var W=F.data;return _.z("view-count-factoid-renderer",null,_.z(_.a6,{data:function(){return W().factoid}},{factoidRenderer:wWM}))},"Nb"),"view-count-factoid-renderer",{props:{data:_.Si}});var cj=function(){var F=_.n.apply(this,arguments)||this;F.shortsPanel=!1;F.engagementPanel=!1;F.watchWhileSdp=_.c("shorts_desktop_watch_while_sdp");return F};
_.k(cj,_.n);cj.prototype.configureRendererStamper=function(){return{"data.factoid":{id:"factoids",mapping:{factoidRenderer:{component:"factoid-renderer"},viewCountFactoidRenderer:{component:"view-count-factoid-renderer"},uploadTimeFactoidRenderer:{component:"upload-time-factoid-renderer"}}}}};
_.Sn.Object.defineProperties(cj.prototype,{showChannelInfo:{configurable:!0,enumerable:!0,get:function(){if(this.shortsPanel||this.engagementPanel)return!1;var F;return(F=this.data)==null?void 0:F.channel}}});
_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],cj.prototype,"componentBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],cj.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],cj.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],cj.prototype,"shortsPanel",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],cj.prototype,"engagementPanel",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],cj.prototype,"watchWhileSdp",void 0);_.T([_.a("shortsPanel","engagementPanel","data.channel"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],cj.prototype,"showChannelInfo",null);cj=_.T([_.y({is:"ytd-video-description-header-renderer",disableElementRegistration:!0})],cj);
_.r(cj,"ytd-video-description-header-renderer",function(){if(YA_!==void 0)return YA_;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-description-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" hidden="[[!data.title]]" class="style-scope ytd-video-description-header-renderer">\n  <yt-formatted-string text="[[data.title]]" class="style-scope ytd-video-description-header-renderer"></yt-formatted-string>\n</div>\n<template is="dom-if" if="[[showChannelInfo]]" class="style-scope ytd-video-description-header-renderer">\n    <div id="channel-info" class="style-scope ytd-video-description-header-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-video-description-header-renderer" href$="[[computeHref_(data.channelNavigationEndpoint)]]" data="[[data.channelNavigationEndpoint]]" tabindex="-1">\n      <yt-img-shadow id="avatar" alt="[[getSimpleString(data.channel)]]" fit="" thumbnail="[[data.channelThumbnail]]" width="36" class="style-scope ytd-video-description-header-renderer">\n      </yt-img-shadow>\n    </a>\n    <ytd-channel-name id="channel-name" channel-name="[[getSimpleString(data.channel)]]" wrap-text="" class="style-scope ytd-video-description-header-renderer">\n    </ytd-channel-name>\n  </div>\n</template>\n\n<div id="factoids" class="style-scope ytd-video-description-header-renderer"></div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return YA_=F},{mode:1});var uvu;var D$=function(){return _.n.apply(this,arguments)||this};
_.k(D$,_.n);_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],D$.prototype,"ytComponentBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],D$.prototype,"ytRendererBehavior",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],D$.prototype,"noPadding",void 0);_.T([_.O(),_.Y("design:type",Object)],D$.prototype,"data",void 0);D$=_.T([_.y({disableElementRegistration:!0,is:"ytd-list-item-view-model"})],D$);
_.r(D$,"ytd-list-item-view-model",function(){if(uvu!==void 0)return uvu;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-list-item-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="list-item" class="style-scope ytd-list-item-view-model">\n  <template is="dom-if" if="[[data.leadingImage]]" class="style-scope ytd-list-item-view-model">\n    <div id="leading-image-container" class="style-scope ytd-list-item-view-model">\n      <yt-image alt="Leading image for [[data.title]]" data="[[data.leadingImage]]" height="24" class="style-scope ytd-list-item-view-model">\n        </yt-image>\n    </div>\n  </template>\n  <div id="content" class="style-scope ytd-list-item-view-model">\n    <yt-attributed-string id="title" data="[[data.title]]" class="style-scope ytd-list-item-view-model">\n     </yt-attributed-string>\n      <yt-attributed-string id="subtitle" data="[[data.subtitle]]" class="style-scope ytd-list-item-view-model">\n      </yt-attributed-string>\n  </div>\n  <yt-button-view-model data="[[data.iconButton.buttonViewModel]]" scoping-class-name="[[is]]" class="style-scope ytd-list-item-view-model">\n  </yt-button-view-model>\n</div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return uvu=F},{mode:1});var SA_;var pWu;var mkp;var KD_;var xq=function(){var F=_.n.apply(this,arguments)||this;F.adaptiveFullWidth=!1;F.modernButtons=_.c("web_modern_buttons");F.buttonOverrides={style:"call-to-action",type:"filled"};F.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp_","yt-signal-action-copy-share-url":"handleSignalActionCopyShareUrl_"};return F};
_.k(xq,_.n);xq.prototype.handleSetTimestamp_=function(F){this.data&&this.data.shortUrl&&(_.Z(this.hostElement).querySelector("#share-url").value=F.isSet?_.wa(this.data.shortUrl,"t",F.timestamp):this.data.shortUrl)};
xq.prototype.handleSignalActionCopyShareUrl_=function(F,W){(_.c("killswitch_copy_link_target_check")||_.Z(this.hostElement).querySelector("#copy-button")===W)&&this.copyUrlToClipboard()};
xq.prototype.copyUrlToClipboard=function(){window.getSelection().removeAllRanges();_.Z(this.hostElement).querySelector("#share-url").select();document.execCommand("copy")};
xq.prototype.computeStyle_=function(F){return F?F.toLowerCase().replace(/_/g,"-"):""};
_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],xq.prototype,"ytActionHandlerBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],xq.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],xq.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0,computed:"computeStyle_(data.style)"}),_.Y("design:type",String)],xq.prototype,"rendererStyle",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],xq.prototype,"adaptiveFullWidth",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],xq.prototype,"modernButtons",void 0);_.T([_.O(),_.Y("design:type",Object)],xq.prototype,"buttonOverrides",void 0);xq=_.T([_.$3({is:"yt-copy-link-renderer",disableElementRegistration:!0})],xq);
_.r(xq,"yt-copy-link-renderer",function(){if(KD_===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-copy-link-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_copy_link_renderer.yt.copy.link.renderer.css.js--\x3e<div id="bar" class="style-scope yt-copy-link-renderer">\n  <input id="share-url" dir="ltr" readonly="" size="45" value="[[data.shortUrl]]" class="style-scope yt-copy-link-renderer">\n  <yt-button-renderer id="copy-button" data="[[data.copyButton.buttonRenderer]]" overrides="[[buttonOverrides]]" class="style-scope yt-copy-link-renderer"></yt-button-renderer>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;mkp===void 0&&(mkp=document.createElement("template"));var h=mkp;E.call(W,h.content.cloneNode(!0),F.content.firstChild);KD_=F}F=KD_;return F},{mode:2});_.Hr("itemSectionRenderer","toggleFormFieldRenderer","yt-toggle-form-field-renderer");var kq=function(){var F=_.n.apply(this,arguments)||this;F.actionMap={"yt-update-toggle-action":"handleUpdateToggleAction_"};return F};
_.k(kq,_.n);_.N=kq.prototype;_.N.configureRendererStamper=function(){return{"data.footer":{id:"footer-container",mapping:{copyLinkRenderer:"yt-copy-link-renderer"}}}};
_.N.attached=function(){this.keyboardFocused=!1};
_.N.onToggleButtonFocusin_=function(){if(this.useKeyboardFocused){var F=_.WZ().resolve(_.Fd(_.$V));F&&(this.keyboardFocused=F.isKeyBoardInUse())}};
_.N.onToggleButtonFocusout_=function(){this.keyboardFocused=!1};
_.N.computeDescription_=function(){if(this.data){if(this.data.toggled&&this.data.toggledDescription)return this.data.toggledDescription;if(!this.data.toggled&&this.data.description)return this.data.description}};
_.N.onChange_=function(){if(this.data){var F=this.data.toggled?this.data.toggleOnAction:this.data.toggleOffAction;F&&this.ytComponentBehavior.resolveCommand(F);this.data.requireChangeConfirmation&&this.set("data.toggled",!this.data.toggled)}};
_.N.handleUpdateToggleAction_=function(F){(F=_.D(F,Hv_))&&this.data&&F.targetId==this.data.targetId&&this.set("data.toggled",F.toggled)};
_.N.toBoolean_=function(F){return!!F};
_.N.reset=function(){};
_.N.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.yR("data-changed",this.data))};
_.N.updateDataToggledFromBinding=function(F){this.set("data.toggled",F.detail.value)};
kq.prototype.dataChangedForBinding=kq.prototype.dataChangedForBinding;_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],kq.prototype,"ytActionHandlerBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],kq.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],kq.prototype,"ytComponentBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],kq.prototype,"ytRendererBehavior",void 0);
_.T([_.O(),_.Y("design:type",Object)],kq.prototype,"data",void 0);_.T([_.O({computed:"computeDescription_(data.*)"}),_.Y("design:type",Object)],kq.prototype,"description_",void 0);_.T([_.O({value:function(){return!!_.WZ().resolve(_.Fd(_.$V))&&_.c("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.Y("design:type",Boolean)],kq.prototype,"useKeyboardFocused",void 0);_.T([_.O({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],kq.prototype,"keyboardFocused",void 0);_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],kq.prototype,"dataChangedForBinding",null);kq=_.T([_.$3({is:"yt-toggle-form-field-renderer",disableElementRegistration:!0})],kq);
_.r(kq,"yt-toggle-form-field-renderer",function(){if(pWu===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-toggle-form-field-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.playlist.yt_toggle_form_field_renderer.yt.toggle.form.field.renderer.css.js--\x3e<div id="toggle-container" class="style-scope yt-toggle-form-field-renderer">\n  <div id="caption" class="style-scope yt-toggle-form-field-renderer">[[getSimpleString(data.label)]]</div>\n  <tp-yt-paper-toggle-button id="input" checked="[[data.toggled]]" disabled="[[toBoolean_(data.isDisabled)]]" noink="" on-change="onChange_" on-checked-changed="updateDataToggledFromBinding" on-focusin="onToggleButtonFocusin_" on-focusout="onToggleButtonFocusout_" class="style-scope yt-toggle-form-field-renderer">\n  </tp-yt-paper-toggle-button>\n</div>\n<yt-formatted-string id="description" hidden="[[!description_]]" text="[[description_]]" class="style-scope yt-toggle-form-field-renderer">\n</yt-formatted-string>\n<div id="footer-container" class="style-scope yt-toggle-form-field-renderer"></div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);var W=F.content,E=W.insertBefore;SA_===void 0&&(SA_=document.createElement("template"));var h=SA_;E.call(W,h.content.cloneNode(!0),F.content.firstChild);pWu=F}F=pWu;return F},{mode:2});var FhU;var WhO;var Ae=function(){var F=_.n.apply(this,arguments)||this;F.isDarkTheme=!1;F.isSearch=!1;F.darkerDarkTheme=_.c("web_darker_dark_theme");F.noTopMargin=_.c("kevlar_watch_no_top_margin");F.maskFade=_.c("web_watch_chips_mask_fade");F.actionMap={"yt-related-chip-command":"handleRelatedChipCommand","yt-chip-cloud-chip-select-action":"handleChipCloudChipSelectAction","yt-chip-cloud-chip-deselect-action":"handleChipCloudChipDeselectAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return F};
_.k(Ae,_.n);_.N=Ae.prototype;_.N.configureRendererStamper=function(){return{"data.chips":{id:"chips",mapping:{chipCloudChipRenderer:{component:"yt-chip-cloud-chip-renderer"}}},"data.previousButton":{id:"left-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundPrevClick]]"},params:{iconSize:16}}}},"data.nextButton":{id:"right-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundNextClick]]"},params:{iconSize:16}}}}}};
_.N.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.N.isSearchChanged=function(){this.hostElement.setAttribute("id",this.isSearch?"search-chip-bar":"")};
_.N.dataChanged=function(){var F=this.getSelectedIndex();if(F>0)this.selected=F;else{this.selected=0;var W,E;(W=this.ytScrollableChipCloudBehavior)==null||(E=W.reset)==null||E.call(W)}};
_.N.getSelectedIndex=function(){var F;if((F=this.data)==null||!F.chips)return-1;F=-1;for(var W,E=0;E<((W=this.data)==null?void 0:W.chips.length);E++){var h=void 0,d=void 0;if((h=this.data)==null?0:(d=h.chips[E].chipCloudChipRenderer)==null?0:d.isSelected){F=E;break}}return F};
_.N.onResize=function(){var F=this.ytScrollableChipCloudBehavior;_.wT(F,F.setContainerWidthDiff);Vq(this.ytScrollableChipCloudBehavior)};
_.N.onDarkModeToggledAction=function(F){this.isDarkTheme=F};
_.N.handleRelatedChipCommand=function(F,W){F=this.JSC$14205_chipsSelector.indexOf(W);F!==-1&&this.JSC$14205_chipsSelector.selectIndex(F)};
_.N.handleChipCloudChipSelectAction=function(F){F=this.JSC$14205_chipsSelector.indexOf(F);F>-1&&this.JSC$14205_chipsSelector.selectIndex(F)};
_.N.handleChipCloudChipDeselectAction=function(){var F=this.get("chips.0.chipCloudChipRenderer.navigationEndpoint",this.data);this.JSC$14205_chipsSelector&&((F==null?0:F.continuationCommand)?_.UT(this.hostElement,[F]):(F==null?0:F.searchEndpoint)?this.ytComponentBehavior.resolveCommand(F):F&&_.Rj(this.hostElement,[F],this.hostElement),this.JSC$14205_chipsSelector.selectIndex(0),this.ytScrollableChipCloudBehavior.reset())};
_.N.updateSelectedFromBinding=function(F){this.selected=F.detail.value};
Ae.prototype.onResize=Ae.prototype.onResize;Ae.prototype.dataChanged=Ae.prototype.dataChanged;Ae.prototype.isSearchChanged=Ae.prototype.isSearchChanged;_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],Ae.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Ae.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],Ae.prototype,"actionHandlerBehavior",void 0);
_.T([_.J(_.lB),_.Y("design:type",Object)],Ae.prototype,"ironResizableBehavior",void 0);_.T([_.J(),_.Y("design:type",Nx)],Ae.prototype,"ytScrollableChipCloudBehavior",void 0);_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],Ae.prototype,"ytComponentBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],Ae.prototype,"data",void 0);_.T([_.O({value:0}),_.Y("design:type",Number)],Ae.prototype,"selected",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],Ae.prototype,"isDarkTheme",void 0);_.T([_.O({value:160}),_.Y("design:type",Number)],Ae.prototype,"scrollDistance",void 0);_.T([_.O(),_.Y("design:type",Object)],Ae.prototype,"isSearch",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],Ae.prototype,"darkerDarkTheme",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],Ae.prototype,"noTopMargin",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],Ae.prototype,"maskFade",void 0);_.T([_.gQ("#chips"),_.Y("design:type",Object)],Ae.prototype,"JSC$14205_chipsSelector",void 0);_.T([_.ea("isSearch"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Ae.prototype,"isSearchChanged",null);_.T([_.Cz("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Ae.prototype,"dataChanged",null);
_.T([_.R4("iron-resize"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Ae.prototype,"onResize",null);Ae=_.T([_.$3({is:"yt-chip-cloud-renderer",disableElementRegistration:!0})],Ae);
_.r(Ae,"yt-chip-cloud-renderer",function(){if(WhO===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-chip-cloud-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_chip_cloud_renderer.yt.chip.cloud.renderer.css.js--\x3e<div id="container" class="style-scope yt-chip-cloud-renderer">\n  <div id="left-arrow" class="style-scope yt-chip-cloud-renderer">\n    <div id="left-arrow-button" class="style-scope yt-chip-cloud-renderer"></div>\n  </div>\n  <div id="scroll-container" class="style-scope yt-chip-cloud-renderer">\n    <iron-selector id="chips" activate-event="" role="tablist" selected="[[selected]]" selected-attribute="selected" on-selected-changed="updateSelectedFromBinding" class="style-scope yt-chip-cloud-renderer">\n    </iron-selector>\n  </div>\n  <div id="right-arrow" class="style-scope yt-chip-cloud-renderer">\n    <div id="right-arrow-button" class="style-scope yt-chip-cloud-renderer"></div>\n  </div>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;FhU===void 0&&(FhU=document.createElement("template"));var h=FhU;E.call(W,h.content.cloneNode(!0),F.content.firstChild);WhO=F}F=WhO;return F},{mode:2});var ELp,hla=function(){return ELp!==void 0?ELp:ELp=document.createElement("template")};
document.head.appendChild(hla().content);var dVX;var NdX=document.head,VoX=NdX.appendChild,UVi;if(dVX===void 0){var Rla=document.createElement("template");_.L(Rla,"");Rla.content.insertBefore(hla().content.cloneNode(!0),Rla.content.firstChild);dVX=Rla}UVi=dVX;VoX.call(NdX,UVi.content);var elM=_.GK(function(F){var W=F.data;return _.z("offer-plan-details-item-view-model",{class:"ytOfferPlanDetailsItemViewModelHost"},_.z("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContainer"},_.z("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContent"},_.z(_.v,{cond:function(){return _.d9(W().image)},
then:function(E){return _.z("div",{class:"ytOfferPlanDetailsItemViewModelLogo"},_.z(_.T4,{data:E,alt:"",className:"ytOfferPlanDetailsItemViewModelLogoImage"}))}}),_.z("div",{class:"ytOfferPlanDetailsItemViewModelTitleText"},_.z(_.Ab,{text:function(){return W().title}})),_.z("div",{class:"ytOfferPlanDetailsItemViewModelSubtitleText"},_.z(_.Ab,{text:function(){return W().subtitle}})))),_.z(_.v,{cond:function(){var E;
return(E=W())==null?void 0:E.hasBottomDivider},
then:function(){return _.z("div",{class:"ytOfferPlanDetailsItemViewModelDivider"})}}))},"Ob");var Mou=_.GK(function(F){var W=F.data;return _.z("offer-plan-details-container-view-model",{class:"ytOfferPlanDetailsContainerViewModelHost"},_.z("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanContainer"},_.z(_.a6,{data:function(){var E;return(E=W().offerPlanDetailsItem)!=null?E:[]}},{offerPlanDetailsItemViewModel:function(E){return _.z("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanDetailsItemContainer"},_.z(elM,{data:E.data}))}})),_.z("div",null,_.z(_.v,{cond:function(){return W().hasBottomDivider},
then:function(){return _.z("div",{class:"ytOfferPlanDetailsContainerViewModelDividerContainer"},_.z("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}),_.z("div",{class:"ytOfferPlanDetailsContainerViewModelAddIconContainer"},_.z("div",{class:"ytOfferPlanDetailsContainerViewModelAddIcon"},"+")),_.z("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}))}})))},"Pb");var gLO=_.GK(function(F){var W=F.data;F=_.U(_.g$(!1,void 0,"SpEGQd"));var E=F.next().value,h=F.next().value,d=_.tb(function(){h(!E());return!1}),V=function(){var R;
return(R=W().offerPlanDetailsContainer)!=null?R:[]};
return _.z("lp-complex-offer-card-details-view-model",null,_.z("div",null,_.z(_.v,{cond:function(){return E()},
then:function(){return _.z("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandedDetails"},_.z("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelExpandedTitle","on:click":d,"aria-expanded":E},_.z(_.Ab,{text:function(){return W().expandedTitle}})),_.z("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainers"},_.z(_.a6,{data:V},{offerPlanDetailsContainerViewModel:function(R){return _.z("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainer"},
_.z(Mou,{data:R.data}))}})),_.z("div",{class:"ytLpComplexOfferCardDetailsViewModelLegalText"},_.z(_.Ab,{text:function(){return W().legalText}})))},
else:function(){return _.z("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelCollapsedDetails","on:click":d,"aria-expanded":E},_.z(_.Ab,{text:function(){return W().collapsedTitle}}),_.z("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandIconContainer"},_.z(_.I3,{icon:"EXPAND_MORE".toString(),
ariaHidden:!0})))}})))},"Qb");var Q5c=_.GK(function(F){var W=F.data;return _.z("lp-complex-offer-card-option-view-model",null,_.z("div",{class:"ytLpComplexOfferCardOptionViewModelCardContainer"},_.z(_.v,{cond:function(){return W().topDividerText},
then:function(){return _.z("div",{class:"ytLpComplexOfferCardOptionViewModelDividerContainer"},_.z("div",{class:"ytLpComplexOfferCardOptionViewModelDivider"}),_.z("div",{class:"ytLpComplexOfferCardOptionViewModelDividerTextContainer"},_.z("div",{class:"ytLpComplexOfferCardOptionViewModelDividerText"},_.z(_.Ab,{text:function(){return W().topDividerText}}))))}}),_.z(_.v,{cond:function(){return W().planPricingPrimary},
then:function(){return _.z("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingPrimary"},_.z(_.Ab,{text:function(){return W().planPricingPrimary}}))}}),_.z(_.v,{cond:function(){return W().planPricingSecondary},
then:function(){return _.z("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingSecondary"},_.z(_.Ab,{text:function(){return W().planPricingSecondary}}))}}),_.z(_.v,{cond:function(){return W().primaryButton},
then:function(){return _.z("div",{class:"ytLpComplexOfferCardOptionViewModelPrimaryButtonContainer"},_.z(_.a6,{data:function(){return W().primaryButton}},{buttonViewModel:function(E){return _.z(_.rk,{data:E.data,
className:"ytLpComplexOfferCardOptionViewModelPrimaryButton"})}}))}})))},"Rb");var zlc=_.GK(function(F){var W=F.data;var E=function(){var V;return((V=W())==null?void 0:V.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
F={};var h={},d={};return _.z("ytm-lp-complex-offer-card-view-model",null,_.z("div",{class:"ytmLpComplexOfferCardViewModelHost"},_.z("div",{class:_.ec((F.ytmLpComplexOfferCardViewModelCardContainerAlignLeft=E,F),"ytmLpComplexOfferCardViewModelCardContainer")},_.z(_.v,{cond:function(){var V;return(V=W())==null?void 0:V.bannerText},
then:function(){return _.z("div",{class:"ytmLpComplexOfferCardViewModelBannerTextContainer"},_.z("div",{class:"ytmLpComplexOfferCardViewModelBannerText"},_.z(_.Ab,{text:function(){return W().bannerText}})))}}),_.z(_.v,{cond:function(){return _.d9(W().logo)},
then:function(V){var R={};return _.z("div",{class:_.ec((R.ytmLpComplexOfferCardViewModelLogoAlignLeft=E,R),"ytmLpComplexOfferCardViewModelLogo")},_.z(_.T4,{data:V,alt:"",className:"ytmLpComplexOfferCardViewModelLogoImage"}))}}),_.z("div",{class:_.ec((h.ytmLpComplexOfferCardViewModelTitleAlignLeft=E,h),"ytmLpComplexOfferCardViewModelTitle")},_.z(_.Ab,{text:function(){return W().title}})),_.z(_.v,{cond:function(){var V;
return(V=W())==null?void 0:V.subtitle},
then:function(){var V={};return _.z("div",{class:_.ec((V.ytmLpComplexOfferCardViewModelSubtitleAlignLeft=E,V),"ytmLpComplexOfferCardViewModelSubtitle")},_.z(_.Ab,{text:function(){return W().subtitle}}))}}),_.z(_.v,{cond:function(){return W().planPricingPrimary},
then:function(){return _.z("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingPrimary"},_.z(_.Ab,{text:function(){return W().planPricingPrimary}}))}}),_.z(_.v,{cond:function(){return W().planPricingSecondary},
then:function(){return _.z("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingSecondary"},_.z(_.Ab,{text:function(){return W().planPricingSecondary}}))}}),_.z(_.v,{cond:function(){return W().purchaseButton},
then:function(){return _.z("div",{class:"ytmLpComplexOfferCardViewModelPurchaseButtonContainer"},_.z(_.a6,{data:function(){return W().purchaseButton}},{buttonViewModel:function(V){return _.z(_.rk,{data:V.data,
className:"ytmLpComplexOfferCardViewModelPurchaseButton"})}}))}}),_.z(_.v,{cond:function(){var V;
return(V=W())==null?void 0:V.offerOptions},
then:function(){return _.z("div",{class:"ytmLpComplexOfferCardViewModelOfferOptions"},_.z(_.a6,{data:function(){return W().offerOptions}},{lpComplexOfferCardOptionViewModel:Q5c}))}}),_.z("div",{class:_.ec((d.ytmLpComplexOfferCardViewModelLegalTextAlignLeft=E,d),"ytmLpComplexOfferCardViewModelLegalText")},_.z(_.Ab,{text:function(){return W().legalText}})),_.z(_.v,{cond:function(){var V;
return(V=W())==null?void 0:V.offerCardDetails},
then:function(){return _.z("div",{class:"ytmLpComplexOfferCardViewModelOfferCardDetails"},_.z(_.a6,{data:function(){return W().offerCardDetails}},{lpComplexOfferCardDetailsViewModel:gLO}))}}))))},"Sb");var toO=_.GK(function(F){var W=F.data;var E=function(){var R;return((R=W())==null?void 0:R.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
F={};var h={},d={},V={};return _.z("ytm-lp-complex-offer-card-section-view-model",null,_.z("div",{class:_.ec("ytmLpComplexOfferCardSectionViewModelHost")},_.z("div",{class:_.ec((F.ytmLpComplexOfferCardSectionViewModelSectionContainerAlignLeft=E,F),"ytmLpComplexOfferCardSectionViewModelSectionContainer")},_.z("div",{class:_.ec((h.ytmLpComplexOfferCardSectionViewModelTitleContainerAlignLeft=E,h),"ytmLpComplexOfferCardSectionViewModelTitleContainer")},_.z("h2",{class:_.ec((d.ytmLpComplexOfferCardSectionViewModelTitleTextAlignLeft=
E,d),"ytmLpComplexOfferCardSectionViewModelTitleText")},_.z(_.Ab,{text:function(){return W().title}}))),_.z(_.v,{cond:function(){var R;
return(R=W())==null?void 0:R.subtitle},
then:function(){var R={},M={};return _.z("div",{class:_.ec((R.ytmLpComplexOfferCardSectionViewModelSubtitleContainerAlignLeft=E,R),"ytmLpComplexOfferCardSectionViewModelSubtitleContainer")},_.z("div",{class:_.ec((M.ytmLpComplexOfferCardSectionViewModelSubtitleTextAlignLeft=E,M),"ytmLpComplexOfferCardSectionViewModelSubtitleText")},_.z(_.Ab,{text:function(){return W().subtitle}})))}}),_.z("div",{class:_.ec((V.ytmLpComplexOfferCardSectionViewModelOfferCardsContainerAlignLeft=E,V),"ytmLpComplexOfferCardSectionViewModelOfferCardsContainer")},
_.z(_.a6,{data:function(){var R;
return(R=W().offerPlans)!=null?R:[]}},{lpComplexOfferCardViewModel:function(R){return _.z("div",{class:"ytmLpComplexOfferCardSectionViewModelOfferCardContainer"},_.z(zlc,{data:R.data}))}})))))},"Tb");_.sx=YGB.getInstance();var CWa=_.GK(function(F){return _.z("div",{class:"yt-lp-faq-entry-view-model__lp-faq-section-faqs-question","aria-hidden":F.shouldAriaHideContent},_.z("h2",{class:"yt-lp-faq-entry-view-model__lp-faq-question",id:F.questionId},_.z(_.Ab,{text:F.question})))},"Ub"),BdT=_.GK(function(F){var W=F.data;
var E=F.themeOverride;F=_.U(_.g$(!1,void 0,"ljTVPd"));var h=F.next().value,d=F.next().value;F=_.tb(function(){d(!h());return!1});
var V=function(){return h()?"EXPAND_LESS":"EXPAND_MORE"},R=("faq-container"+_.n3(_.sx)).toString(),M="faq-question-and-answers-section-question"+_.n3(_.sx),g={},t={};
return _.z("faq-entry-view-model-c3",null,_.z("div",{class:_.ec("yt-lp-faq-entry-view-model",(g["yt-lp-faq-entry-view-model--premium-force-dark-mode"]=function(){return E==null?void 0:E().useDarkTheme},g))},_.z("div",{class:"yt-lp-faq-entry-view-model__faq-question-and-answers-section",
"on:click":F,role:"button","aria-expanded":h,"aria-labelledby":M.toString(),"tab-index":"0"},_.z(CWa,{question:function(){return W().question},
questionId:M,shouldAriaHideContent:!0}),_.z(_.v,{cond:function(){return h()!==void 0},
then:function(){return _.z("div",{class:"yt-lp-faq-entry-view-model__icon-container"},_.z(_.I3,{icon:V,ariaHidden:!0}),_.z("div",{class:"yt-lp-faq-entry-view-model__icon-hover-highlighting"}))}})),_.z("div",{class:_.ec("yt-lp-faq-entry-view-model__lp-faq-section-faqs-outer-answer",(t["yt-lp-faq-entry-view-model__lp-faq-section-faqs-outer-answer--collapsed"]=function(){return!h()},t))},_.z("div",{id:R},_.z(_.xF,{each:function(){return W().answers||[]}},function(C){return _.z("div",{class:"yt-lp-faq-entry-view-model__lp-faq-section-faqs-answer"},
_.z(_.Ab,{text:C}))})))))},"Vb");
BdT.idomCompat=!0;var vLX=_.GK(function(F){var W=F.data;var E=F.themeOverride;F={};return _.z("lp-faq-section-view-model-c3",null,_.z("div",{class:_.ec("yt-lp-faq-section-view-model",(F["yt-lp-faq-section-view-model--ptc-layout-type"]=function(){return W().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},F["yt-lp-faq-section-view-model--premium-force-dark-mode"]=function(){return!(E==null||!E().useDarkTheme)},F))},_.z("div",{class:"yt-lp-faq-section-view-model__faq-container"},_.z(_.v,{cond:function(){return W().header},
then:function(h){return _.z("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-header"},_.z(_.Ab,{text:h}))}}),_.z("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-faqs"},_.z(_.a6,{data:function(){return W().faqs}},{faqEntryViewModel:function(h){return _.z(BdT,{data:h.data,
themeOverride:E})}})),_.z("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-footers"},_.z(_.xF,{each:function(){return W().footers||[]}},function(h){return _.z(_.Ab,{text:h})})),_.z(_.v,{cond:function(){return W().legal},
then:function(h){return _.z("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-legal"},_.z(_.Ab,{text:h}))}}))))},"Wb");
vLX.idomCompat=!0;var IX_=_.GK(function(F){var W=F.data;var E=F.themeOverride;_.Xk(function(){var R=W().gtmId;R&&_.xE(R,_.b0("GL",""))});
var h={contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var R,M,g;return(g=(R=W().logo)==null?void 0:(M=R.accessibilityData)==null?void 0:M.label)!=null?g:""},
targetWidth:140,targetHeight:40,height:40,className:"lp-header-section-view-model__lp-header-logo",useWidth:!1},d=_.WZ().resolve(_.Fd(_.nK)),V=function(){return d&&d()||(E==null?void 0:E().useDarkTheme)};
return _.z("lp-header-section-view-model",null,_.z("div",{class:function(){var R=W().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC",M=W().marginType==="LP_SECTION_MARGIN_TYPE_TOP",g=E==null?void 0:E().useDarkTheme,t=["lp-header-section-view-model"];R&&t.push("lp-header-section-view-model--ptc-layout-type");M&&t.push("lp-header-section-view-model__lp-header-section-margin");g&&t.push("lp-header-section-view-model--premium-force-dark-mode");return t.join(" ")}},_.z(_.v,{cond:function(){return W().logo},
then:function(){return _.z("div",null,_.z(_.v,{cond:V,then:function(){return _.z(_.v,{cond:function(){var R;return(R=W().logo)==null?void 0:R.imageDark},
then:function(R){return _.z(_.T4,Object.assign({},{data:R},h))}})},
else:function(){return _.z(_.v,{cond:function(){var R;return(R=W().logo)==null?void 0:R.imageLight},
then:function(R){return _.z(_.T4,Object.assign({},{data:R},h))}})}}))}}),_.z(_.v,{cond:function(){return W().title},
then:function(R){return _.z("div",{class:"lp-header-section-view-model__lp-header-title"},_.z(_.Ab,{text:R}))}}),_.z("div",{class:"lp-header-section-view-model__lp-header-subtitle-section"},_.z(_.v,{cond:function(){return W().subtitles},
then:function(R){return _.z(_.xF,{each:R},function(M){return _.z("div",{class:"lp-header-section-view-model__lp-header-subtitle-line"},_.z(_.Ab,{text:M}))})}})),_.z(_.v,{cond:function(){return W().additionalInfo},
then:function(R){return _.z("div",{class:"lp-header-section-view-model__lp-header-additional-info"},_.z(_.Ab,{text:R}))}}),_.z("div",{class:"lp-header-section-view-model__lp-header-button-section"},_.z(_.v,{cond:function(){return W().primaryButton},
then:function(R){return _.z("div",{class:"lp-header-section-view-model__lp-header-primary-button"},_.z(_.a6,{data:R},{buttonViewModel:_.rk}))}}),_.z(_.v,{cond:function(){return W().secondaryButton},
then:function(R){return _.z("div",{class:"lp-header-section-view-model__lp-header-secondary-button"},_.z(_.a6,{data:R},{buttonViewModel:_.rk}))}})),_.z(_.v,{cond:function(){return W().otherOffersInfo},
then:function(R){return _.z("div",{class:"lp-header-section-view-model__lp-header-other-offers-info"},_.z(_.Ab,{text:R}))}}),_.z("div",{class:"lp-header-section-view-model__lp-header-billing-info"},_.z(_.v,{cond:function(){return W().billingInfo},
then:function(R){return _.z(_.xF,{each:R},function(M){return _.z("div",null,_.z(_.Ab,{text:M}))})}}))))},"Xb");
IX_.idomCompat=!0;var c0z=_.GK(function(F){var W=F.data;var E=_.TK(F.themeOverride,{useDarkTheme:!1});F={};F=_.ec("ytm-lp-headline-section-view-model",(F["ytm-lp-headline-section-view-model--premium-force-dark-mode"]=function(){return E().useDarkTheme},F));
return _.z("lp-headline-section-view-model",null,_.z("div",{class:F},_.z("div",{class:"ytm-lp-headline-section-view-model__title-text"},_.z(_.Ab,{text:function(){return W().title}})),_.z(_.v,{cond:function(){return W().subtitle},
then:function(h){return _.z("div",{class:"ytm-lp-headline-section-view-model__subtitle-text"},_.z(_.Ab,{text:h}))}})))},"Yb");var DVU=_.GK(function(F){var W=F.data;var E=F.themeOverride;var h=_.WZ().resolve(_.Fd(_.nK)),d=function(){return h&&h()||(E==null?void 0:E().useDarkTheme)},V=function(){var t,C;
var B=d()?(t=W().textBackgroundImage)==null?void 0:t.imageDark:(C=W().textBackgroundImage)==null?void 0:C.imageLight;return D7w((B==null?void 0:B.sources)||[])},R=function(){var t,C;
return d()?(t=W().featureImage)==null?void 0:t.imageDark:(C=W().featureImage)==null?void 0:C.imageLight},M=function(){return W().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC"?"CONTENT_MODE_SCALE_ASPECT_FILL":"CONTENT_MODE_SCALE_ASPECT_FIT"},g=function(){var t,C;
return d()?(t=W().logo)==null?void 0:t.imageDark:(C=W().logo)==null?void 0:C.imageLight};
return _.z("ytm-lp-large-feature-section-view-model",null,_.z("div",{class:function(){var t=W().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC",C=W().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_PTC",B=(W().index||0)%2===1,I=E==null?void 0:E().useDarkTheme,x=["yt-lp-large-feature-section-view-model"];t?x.push("yt-lp-large-feature-section-view-model--music-feature-type"):C?x.push("yt-lp-large-feature-section-view-model--ptc-feature-type"):B||x.push("yt-lp-large-feature-section-view-model--block-feature-type-2");
I&&x.push("yt-lp-large-feature-section-view-model--premium-force-dark-mode");return x.join(" ")}},_.z("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container"},_.z(_.v,{cond:R,
then:function(){return _.z(_.T4,{data:function(){return R()},
alt:function(){var t,C,B;return(B=(t=W().featureImage)==null?void 0:(C=t.accessibilityData)==null?void 0:C.label)!=null?B:""},
contentMode:M})}})),_.z("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container",
style:function(){var t;return((t=V())==null?0:t.url)?"background-image: url("+_.II(V().url)+");":""}},_.z("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-text-container"},_.z(_.v,{cond:g,
then:function(){return _.z(_.T4,{data:function(){return g()},
alt:function(){var t,C,B;return(B=(t=W().logo)==null?void 0:(C=t.accessibilityData)==null?void 0:C.label)!=null?B:""},
contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",targetWidth:138,targetHeight:20,preserveWidth:!0,preserveHeight:!0,className:"yt-lp-large-feature-section-view-model__lp-large-feature-section-logo"})}}),_.z(_.v,{cond:function(){return W().eyebrowText},
then:function(){return _.z("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-eyebrow-text"},_.z(_.Ab,{text:function(){return W().eyebrowText}}))}}),_.z(_.v,{cond:function(){return W().title},
then:function(){return _.z("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-title"},_.z(_.Ab,{text:function(){return W().title}}))}}),_.z(_.v,{cond:function(){return W().subtitles},
then:function(){return _.z("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-subtitles"},_.z(_.xF,{each:function(){return W().subtitles||[]}},function(t){return _.z(_.Ab,{text:t})}))}})))))},"Zb");
DVU.idomCompat=!0;var xVa=_.GK(function(F){return _.z("yt-lp-feature-list-item-view-model",{class:"ytLpFeatureListItemViewModelHost"},_.z("div",{class:"ytLpFeatureListItemViewModelFeatureList"},_.z(_.I3,{icon:function(){var W;return(W=F.data())==null?void 0:W.iconType},
className:function(){var W;return((W=F.data())==null?void 0:W.style)==="LP_FEATURE_LIST_ITEM_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT"?"ytLpFeatureListItemViewModelFeatureListIconGreen":"ytLpFeatureListItemViewModelFeatureListIconDefault"}}),_.z("div",{class:"ytLpFeatureListItemViewModelFeatureListText"},_.z(_.Ab,{text:function(){var W;
return(W=F.data())==null?void 0:W.text}}))))},"$b");var koc=_.GK(function(F){F=_.o4(F,{config:void 0,themeOverride:void 0});var W=F.data,E=F.config,h=F.themeOverride;F={};F=_.ec("ytm-lp-offer-card-option-view-model",(F["ytm-lp-offer-card-option-view-model--premium-force-dark-mode"]=function(){var g;return(g=h())==null?void 0:g.useDarkTheme},F));
var d=_.tb(function(){var g,t;(g=E())==null||(t=g.handleRadioButtonClick)==null||t.call(g,W());return!1}),V=function(){var g;
return(g=E())==null?void 0:g.shouldDisplayRadioButton},R=_.tb(function(){if(V()){var g,t;
(g=E())==null||(t=g.handleRadioButtonClick)==null||t.call(g,W())}return!1}),M=function(){var g;
return(g=W().featureListItems)!=null?g:[]};
return _.z("ytm-lp-offer-card-option-view-model",null,_.z("div",{class:F,"on:click":R},_.z(_.v,{cond:V,then:function(){return _.z("div",null,_.z("input",{type:"radio","on:click":d,class:"ytm-lp-offer-card-option-view-model__input-el","prop:checked":function(){var g;return!((g=E())==null||!g.isOptionSelected)}}))}}),_.z("div",null,_.z("div",{class:"ytm-lp-offer-card-option-view-model__eyebrow-text"},_.z(_.Ab,{text:function(){return W().eyebrowText}})),_.z("div",{class:"ytm-lp-offer-card-option-view-model__title"},
_.z(_.Ab,{text:function(){return W().title}})),_.z("div",{class:"ytm-lp-offer-card-option-view-model__subtitle"},_.z(_.Ab,{text:function(){return W().subtitle}})),_.z(_.v,{cond:function(){return M().length>0},
then:function(){return _.z("div",{class:"ytm-lp-offer-card-option-view-model__feature-list-items"},_.z(_.a6,{data:M},{lpFeatureListItemViewModel:xVa}))}}),_.z("div",{class:"ytm-lp-offer-card-option-view-model__description"},_.z(_.Ab,{text:function(){return W().description}})))))},"ac");
koc.idomCompat=!0;var A0M=_.GK(function(F){var W=F.data;var E=F.themeOverride;F=_.U(_.Br(function(){var V,R=(V=W().offerOptions)==null?void 0:V[0];return _.D(R,j7M)||{}}));
var h=F.next().value,d=F.next().value;F={};return _.z("ytm-lp-offer-card-view-model",null,_.z("div",{class:_.ec("ytm-lp-offer-card-view-model",(F["ytm-lp-offer-card-view-model--premium-force-dark-mode"]=function(){return!(E==null||!E().useDarkTheme)},F))},_.z("div",{class:"ytm-lp-offer-card-view-model__title-container"},_.z(_.v,{cond:function(){return W().titleIconType},
then:function(){return _.z("div",{class:"ytm-lp-offer-card-view-model__icon-container"},_.z(_.I3,{icon:function(){var V;return((V=W().titleIconType)==null?void 0:V.toString())||""}}))}}),_.z("div",{class:"ytm-lp-offer-card-view-model__title-text"},_.z(_.Ab,{text:function(){return W().title}})),_.z(_.a6,{data:function(){return W().titleBadge}},{badgeViewModel:function(V){return _.z("div",{class:"ytm-lp-offer-card-view-model__title-badge"},_.z(_.pp,{data:V.data}))}})),_.z("div",{class:"ytm-lp-offer-card-view-model__offer-options-container"},
_.z(_.a6,{data:function(){return W().offerOptions}},{lpOfferCardOptionViewModel:function(V){var R=V.data;
return _.z(_.EG,null,_.z("div",{class:"ytm-lp-offer-card-view-model__divider"}),_.z(koc,{data:R,config:function(){var M;return{shouldDisplayRadioButton:(W().offerOptions||[]).length>1,isOptionSelected:R().id===((M=h())==null?void 0:M.id),handleRadioButtonClick:function(g){return void d(g)}}},
themeOverride:E}))}})),_.z("div",{class:"ytm-lp-offer-card-view-model__purchase-button-container"},_.z(_.a6,{data:function(){var V;
return(V=h())==null?void 0:V.purchaseButtonOverride}},{buttonViewModel:_.rk}))))},"bc");
A0M.idomCompat=!0;var s5H=_.GK(function(F){var W=F.data;var E=F.themeOverride;F={};F=_.ec("ytm-lp-offer-card-section-view-model",(F["ytm-lp-offer-card-section-view-model--premium-force-dark-mode"]=function(){var h;return E==null?void 0:(h=E())==null?void 0:h.useDarkTheme},F));
return _.z("ytm-lp-offer-card-section-view-model",null,_.z("div",{class:F},_.z(_.v,{cond:function(){return W().title!==void 0},
then:function(){return _.z("div",{class:"ytm-lp-offer-card-section-view-model__title-container"},_.z("div",{class:"ytm-lp-offer-card-section-view-model__title-text"},_.z(_.Ab,{text:function(){return W().title}})),_.z(_.v,{cond:function(){return W().subtitle},
then:function(){return _.z("div",{class:"ytm-lp-offer-card-section-view-model__subtitle-text"},_.z(_.Ab,{text:function(){return W().subtitle}}))}}))}}),_.z("div",{class:"ytm-lp-offer-card-section-view-model__offer-cards-container"},_.z(_.a6,{data:function(){return W().offerCards}},{lpOfferCardViewModel:function(h){return _.z("div",{class:"ytm-lp-offer-card-section-view-model__offer-card-container"},_.z(A0M,{data:h.data,
themeOverride:E}))}})),_.z(_.v,{cond:function(){return W().footer},
then:function(){return _.z("div",{class:"ytm-lp-offer-card-section-view-model__footer-text"},_.z(_.Ab,{text:function(){return W().footer}}))}})))},"cc");var LhT=_.GK(function(F){var W=F.data;return _.z("lp-offer-table-cell-content-view-model",null,_.z("div",{class:"yt-lp-offer-table-cell-content-view-model"},_.z(_.sG,null,_.z(_.kF,{when:function(){return W().title}},function(){return _.z(_.Ab,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-title",
text:function(){return W().title}})}),_.z(_.kF,{when:function(){return W().subTitle}},function(){return _.z(_.Ab,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-subtitle",
text:function(){return W().subTitle}})}),_.z(_.kF,{when:function(){return W().featureDescription}},function(){return _.z(_.Ab,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-feature-description",
text:function(){return W().featureDescription}})}),_.z(_.kF,{when:function(){return W().description}},function(){return _.z(_.Ab,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-description",
text:function(){return W().description}})}),_.z(_.kF,{when:function(){return W().iconType}},function(){return _.z("div",{class:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-icon"},_.z(_.I3,{icon:function(){return W().iconType.toString()}}))}),_.z(_.kF,{when:function(){return W().purchaseButton}},function(){return _.z(_.a6,{data:function(){return W().purchaseButton}},{buttonViewModel:function(E){return _.z("div",{class:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-purchase-button"},
_.z(_.rk,{data:E.data}))}})}),_.z(_.kF,{when:function(){return W().note}},function(){return _.z(_.Ab,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-note",
text:function(){return W().note}})}),_.z(_.kF,{when:function(){return W().featureDetail}},function(){return _.z(_.Ab,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-feature-detail",
text:function(){return W().featureDetail}})}),_.z(_.kF,{when:function(){return W().badge}},function(){return _.z(_.a6,{data:function(){return W().badge}},{badgeViewModel:_.pp})}))))},"dc");
LhT.idomCompat=!0;var qIe=_.GK(function(F){var W=F.data;return _.z("lp-offer-table-cell-view-model",null,_.z("div",{class:"ytLpOfferTableCellViewModelCellWrapper",style:function(){switch(W().alignSelf){case "LP_OFFER_TABLE_ALIGNMENT_START":return"justify-content: flex-start;";case "LP_OFFER_TABLE_ALIGNMENT_END":return"justify-content: flex-end;";case "LP_OFFER_TABLE_ALIGNMENT_CENTER":return"justify-content: center;";default:return"justify-content: flex-start;"}}},_.z(_.a6,{data:function(){return W().contents}},{lpOfferTableCellContentViewModel:LhT})))},
"ec");
qIe.idomCompat=!0;var $Vu=_.GK(function(F){var W=F.data;var E=F.lpTableIsFirstRow;var h=F.lpTableIsLastRow;var d=function(){return(E==null?0:E())?"yt-lp-offer-table-row-view-model__lp-offer-table-first-row-header-cell":"yt-lp-offer-table-row-view-model__lp-offer-table-row-header-cell"},V=function(){return(E==null?0:E())?"yt-lp-offer-table-row-view-model__lp-offer-table-first-row-content-cell":(h==null?0:h())?"yt-lp-offer-table-row-view-model__lp-offer-table-last-row-content-cell":"yt-lp-offer-table-row-view-model__lp-offer-table-row-content-cell"};
return _.z("ytm-lp-offer-table-row-view-model",null,_.z("div",{class:"yt-lp-offer-table-row-view-model"},_.z(_.a6,{data:function(){return W().rowHeaderCell}},{lpOfferTableCellViewModel:function(R){return _.z("div",{class:d},_.z(qIe,{data:R.data}))}}),_.z(_.a6,{data:function(){return W().contentCells}},{lpOfferTableCellViewModel:function(R){return _.z("div",{class:V},_.z(qIe,{data:R.data}))}})))},"fc");
$Vu.idomCompat=!0;var ZE_=_.GK(function(F){var W=F.data;var E=F.themeOverride;var h=_.WZ().resolve(_.Fd(_.nK)),d=function(){return _.D(W().logo,mIz)||{}};
F={};return _.z("ytm-lp-offer-table-section-view-model",null,_.z("div",{class:"yt-lp-offer-table-view-model"},_.z(_.v,{cond:function(){var V,R;return h&&h()||(E==null?0:E().useDarkTheme)?(V=d())==null?void 0:V.imageDark:(R=d())==null?void 0:R.imageLight},
then:function(V){return _.z(_.T4,{data:V,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var R,M,g;return(g=(R=d())==null?void 0:(M=R.accessibilityData)==null?void 0:M.label)!=null?g:""},
targetWidth:140,targetHeight:40,height:40,className:"yt-lp-offer-table-view-model__lp-offer-table-section-logo",useWidth:!1})}}),_.z("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-title"},_.z(_.Ab,{text:function(){return W().title}})),_.z("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-subtitle"},_.z(_.Ab,{text:function(){return W().subtitle}})),_.z(_.v,{cond:function(){return W().disclaimers},
then:function(V){return _.z("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-disclaimers"},_.z(_.xF,{each:V},function(R){return _.z("div",null,_.z(_.Ab,{text:R}))}))}}),_.z("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-rows"},_.z(_.a6,{data:function(){return W().rows}},{lpOfferTableRowViewModel:function(V,R){return _.z($Vu,{data:V.data,
lpTableIsFirstRow:function(){return R()===0},
lpTableIsLastRow:function(){return R()===W().rows.length-1}})}})),_.z("div",{class:_.ec((F["yt-lp-offer-table-view-model__lp-offer-table-section-footer-wrapper"]=function(){return W().hasFooterBackground},F))},_.z(_.v,{cond:function(){return W().footer},
then:function(){return _.z("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer"},_.z(_.Ab,{text:function(){return W().footer}}))}}),_.z(_.v,{cond:function(){return W().footerTitle},
then:function(){return _.z("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer-title"},_.z(_.Ab,{text:function(){return W().footerTitle}}))}}),_.z(_.v,{cond:function(){return W().footerDescription},
then:function(){return _.z("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer-description"},_.z(_.Ab,{text:function(){return W().footerDescription}}))}}))))},"gc");
ZE_.idomCompat=!0;var XdB=_.GK(function(F){var W=F.data;var E=F.themeOverride;var h=_.WZ().resolve(_.Fd(_.nK)),d=function(){var M;return E==null?void 0:(M=E())==null?void 0:M.useDarkTheme},V=function(){var M,g;
return h&&h()||d()?(M=W().image)==null?void 0:M.imageDark:(g=W().image)==null?void 0:g.imageLight};
F={};F=_.ec("ytm-lp-small-feature-section-view-model",(F["ytm-lp-small-feature-section-view-model--premium-force-dark-mode"]=d,F));var R=function(){var M,g,t;return(t=(M=W().image)==null?void 0:(g=M.accessibilityData)==null?void 0:g.label)!=null?t:""};
return _.z("ytm-lp-small-feature-section-view-model",{class:F},_.z(_.v,{cond:function(){return V()&&!XVS},
then:function(){return _.z("div",{class:"ytm-lp-small-feature-section-view-model__feature-image-container"},_.z(_.T4,{data:function(){return V()},
alt:R,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",renderLazy:!1}))}}),_.z("div",{class:"ytm-lp-small-feature-section-view-model__content-section"},_.z("div",{class:"ytm-lp-small-feature-section-view-model__title-text"},_.z(_.v,{cond:function(){return W().title},
then:function(M){return _.z(_.Ab,{text:M})}})),_.z("div",{class:"ytm-lp-small-feature-section-view-model__description-text"},_.z(_.Ab,{text:function(){return W().description}}))))},"hc");
XdB.idomCompat=!0;var HEM=_.GK(function(F){var W=F.data;var E=F.themeOverride;F={};return _.z("ytm-lp-small-feature-section-group-view-model",null,_.z("div",{class:_.ec("ytm-lp-small-feature-section-group-view-model",(F["ytm-lp-small-feature-section-group-view-model--premium-force-dark-mode"]=function(){return!(E==null||!E().useDarkTheme)},F))},_.z("div",{class:"ytm-lp-small-feature-section-group-view-model__small-features-container"},_.z(_.a6,{data:function(){return W().smallFeatures}},{lpSmallFeatureSectionViewModel:function(h){return _.z("div",
{class:"ytm-lp-small-feature-section-group-view-model__small-feature-container"},_.z(XdB,{data:h.data,
themeOverride:E}))}}))))},"ic");
HEM.idomCompat=!0;_.pK(_.GK(function(F){var W=F.data;var E=function(){return W().forcedTheme==="USER_INTERFACE_THEME_DARK"},h=function(){return W().backgroundImageType==="LP_SECTION_BACKGROUND_TYPE_PHOTO"},d=function(){var R="",M,g;
var t=_.WZ().resolve(_.Fd(_.nK));t=E()||(t==null?0:t())?(M=W().themedImageViewModel)==null?void 0:M.imageDark:(g=W().themedImageViewModel)==null?void 0:g.imageLight;(M=D7w((t==null?void 0:t.sources)||[]))&&M.url&&(R=h()?"background-image: linear-gradient(to bottom, transparent, "+(W().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"?"40%":"70%")+", var(--premium-yt-spec-base-background)), url("+_.II(M.url)+");":"background-image: url("+_.II(M.url)+");");return R},V=function(){return{useDarkTheme:E()}};
F={};return _.z("yt-section-group-view-model",null,_.z("div",{class:_.ec("yt-lp-section-group-view-model",(F["yt-lp-section-group-view-model--premium-force-dark-mode"]=E,F["yt-lp-section-group-view-model--ptc-layout-type"]=function(){return W().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},F))},_.z(_.v,{cond:function(){return d().length},
then:function(){var R={};return _.z("div",{class:_.ec("yt-lp-section-group-view-model__bg-image",(R["yt-lp-section-group-view-model__bg-image--bg-image-photo"]=h,R)),style:d})}}),_.z("div",{class:"yt-lp-section-group-view-model__lp-section-group"},_.z(_.a6,{data:function(){return W().sections}},{lpFaqSectionViewModel:function(R){return _.z(vLX,{data:R.data,
themeOverride:V})},
lpHeaderSectionViewModel:function(R){return _.z(IX_,{data:R.data,themeOverride:V})},
lpHeadlineSectionViewModel:function(R){return _.z(c0z,{data:R.data,themeOverride:V})},
lpLargeFeatureSectionViewModel:function(R){return _.z(DVU,{data:R.data,themeOverride:V})},
lpOfferCardSectionViewModel:function(R){return _.z(s5H,{data:R.data,themeOverride:V})},
lpComplexOfferCardSectionViewModel:function(R){return _.z(toO,{data:R.data})},
lpOfferTableSectionViewModel:function(R){return _.z(ZE_,{data:R.data,themeOverride:V})},
lpSmallFeatureSectionGroupViewModel:function(R){return _.z(HEM,{data:R.data,themeOverride:V})}}))))},"jc"),"yt-section-group-view-model",{props:{data:_.TS}});var gGI=new Set([void 0,"CHIP_VIEW_MODEL_DISPLAY_TYPE_UNSPECIFIED","CHIP_VIEW_MODEL_DISPLAY_TYPE_NO_ICON"]);_.PW_=_.GK(function(F){function W(){if(gGI.has(F.data().displayType)){var t=!h(),C;if((C=F.disableDeselection)==null||!C.call(F)||t){F.data().selected=t;C=Object.assign({},R(),{selected:t});M(C);var B;(B=F.callback)==null||B.call(F,C,t)}}}
var E=_.uf(),h=function(){var t,C;return!!(((t=F.selected)==null?void 0:t.call(F))!==void 0?(C=F.selected)==null?0:C.call(F):R().selected)},d=_.U(_.Br(F.data)),V=d.next().value;
d=d.next().value;var R=V,M=d,g=_.D1(MAr,function(){return F.data().chipEntityKey||""});
return _.z("chip-view-model",{class:"ytChipViewModelHost",el:E},_.z(zkH,{data:function(){var t,C=Object.assign({},R(),{selected:h()}),B=g(),I=(t=F.disableDeselection)==null?void 0:t.call(F);a:switch(C.displayType){case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN":case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN_WITH_CLEAR":t=1;break a;default:t=0}return{text:(B==null?void 0:B.text)||C.text,state:C.disabled?1:C.selected?0:2,type:t,onTap:Qpk(C,E,W,I),accessibilityLabel:C.accessibilityLabel||C.text}}}))},"kc");
_.PW_.idomCompat={callbacks:{callback:!0}};_.J0i=_.GK(function(F){var W=_.D1(ejY,function(){var R;return(R=F.data())==null?void 0:R.chipBarStateEntityKey}),E=function(){return F.data().disableDeselection},h=_.U(_.Br(function(){var R;
if(((R=W())==null?void 0:R.selectedIndex)!=void 0)return W().selectedIndex;var M,g;R=_.U(((M=F.data())==null?void 0:(g=M.chips)==null?void 0:g.entries())||[]);for(M=R.next();!M.done;M=R.next()){M=_.U(M.value);g=M.next().value;M=M.next().value;var t=void 0;if((t=_.D(M,_.oH))==null?0:t.selected)return g}return-1})),d=h.next().value,V=h.next().value;
return _.z("chip-bar-view-model",{class:_.ec("ytChipBarViewModelHost",F.className),role:"tablist"},_.z(_.a6,{data:function(){return F.data().chips}},{chipViewModel:function(R,M){return _.z("div",{class:"ytChipBarViewModelChipWrapper"},_.z(_.PW_,{data:R.data,
selected:function(){return M()===d()},
callback:function(g,t){g=!!t;t=M();V(g?t:-1);var C,B=(C=F.data())==null?void 0:C.chipBarStateEntityKey;B&&g&&_.rQ(_.AG("chipBarStateEntity",B,{key:B,selectedIndex:t}))},
disableDeselection:F.disableDeselection||E}))}}))},"lc");_.pK(_.J0i,"chip-bar-view-model",{props:{data:_.Si,className:_.Si,disableDeselection:_.Si}});_.aXi=_.GK(function(F){var W=F.data;F={};return _.z("divider-view-model",{class:_.ec("divider-view-model-wiz",(F["divider-view-model-wiz__inset-thin-padding"]=function(){return W().dividerStyle==="DIVIDER_STYLE_INSET_THIN"},F))},_.z("div",{class:_.ec("divider-view-model-wiz__base-divider",function(){return zjS(W().dividerStyle)}),
style:_.vr({"background-color":function(){return W().backgroundColor?_.ZP(W().backgroundColor):void 0}})}))},"mc");
_.aXi.idomCompat=!0;_.pK(_.aXi,"divider-view-model",{props:{data:_.TS}});var bA=new Map,OQ=new Map,BBb=0,lA;var A9Y=[{calledOnce:!1,state:"visible"},{calledOnce:!1,state:"hidden"}],qle={throttleMs:0,canHaveZeroSize:!0,useVisibilityObserver:!1};var fXB,OEc;fXB=function(F){return function(W){return function(){return String(W())+F}}};
_.LR=fXB("px");OEc=fXB("s");var lXc=_.GK(function(F){function W(G){return function(){var hr=x().numItemsPerGridRow,p=G()*hr;hr=p+hr;var UY,xW;return(xW=(UY=h().contents)==null?void 0:UY.slice(p,hr))!=null?xW:[]}}
var E=_.o4(F,{layoutContainerWidth:0,shouldUseOwnContainerSize:!1,marginSettings:1}),h=E.data,d=E.layoutContainerWidth,V=E.shouldUseOwnContainerSize,R=E.marginSettings;E=_.U(_.g$(!0,void 0,"qgr2Je"));var M=E.next().value,g=E.next().value,t=function(){var G,hr=(G=_.D(h().showMoreButton,_.fx))==null?void 0:G.trackingParams;hr&&_.Bt(_.z4(),hr);g(!1)},C=function(){var G,hr=(G=_.D(h().showLessButton,_.fx))==null?void 0:G.trackingParams;
hr&&_.Bt(_.z4(),hr);g(!0)};
E=_.uf();var B=_.Zlr(E,{canHaveZeroSize:!1}),I=function(){var G;return(G=h().contentAspectRatio)!=null?G:"GRID_SHELF_CONTENT_ASPECT_RATIO_UNKNOWN"},x=_.vX(function(){var G=_.EQ({containerWidth:V()&&B.width()>0?B.width()||d():d(),
sizing:"EXTRA_COMPACT",marginSettings:R(),enableFullBleedForSingleCol:!1});return{maxContainerWidth:G.maxContainerWidth,numItemsPerGridRow:G.numItems,contentPadding:V()?G.margin:G.contentMargin,itemWidth:G.itemWidth,itemMargin:G.gutter/2}},void 0,"pqVdjc"),A=function(){if(h().enableVerticalExpansion){if(M())return 1;
var G,hr,p=(hr=(G=h().contents)==null?void 0:G.length)!=null?hr:0;return Math.ceil(p/x().numItemsPerGridRow)}return x().numItemsPerGridRow<=2?2:1},X=function(){return h().enableVerticalExpansion&&h().showLessButton&&!M()&&A()>1},P=function(){var G,hr;
return h().enableVerticalExpansion&&h().showMoreButton&&M()&&((hr=(G=h().contents)==null?void 0:G.length)!=null?hr:0)>x().numItemsPerGridRow},b=function(){return!X()},l=function(){return!P()},w={};
return _.z("grid-shelf-view-model",{class:_.ec("ytGridShelfViewModelHost",F.className,(w.ytGridShelfViewModelHostHasBottomButton=function(){return X()||P()},w)),
el:E,style:_.vr({"margin-left":(0,_.LR)(function(){return x().contentPadding}),
"margin-right":(0,_.LR)(function(){return x().contentPadding})})},_.z(_.v,{cond:function(){return _.D(h().header,Mlp)},
then:function(G){return _.z(_.N7,{data:G,disableHorizontalPadding:!0})}}),_.z("div",null,_.z(_.xF,{each:function(){return Array(A())}},function(G,hr){return _.z(bE_,{className:F.className,
items:W(hr),responsiveGridShelfLayout:x,contentAspectRatio:I})})),_.z("div",{class:"ytGridShelfViewModelGridShelfBottomButtonContainer"},_.z(_.a6,{data:function(){return h().showMoreButton}},{buttonViewModel:function(G){return _.z("div",{hidden:l},_.z(_.rk,{data:G.data,
onClick:t}))}}),_.z(_.a6,{data:function(){return h().showLessButton}},{buttonViewModel:function(G){return _.z("div",{hidden:b},_.z(_.rk,{data:G.data,
onClick:C}))}})))},"nc");
lXc.idomCompat=!0;var bE_=_.GK(function(F){var W=F.items;var E=F.responsiveGridShelfLayout;var h=F.contentAspectRatio;F=F.className;var d=_.uf();CNo(d,function(){a:{var R=d.value;for(var M=W(),g=[],t=0;t<M.length;t++){var C=_.D(M[t],YwU);if(!C||C==null||!C.inlinePlayerData){R=null;break a}var B=R.children.item(t);if(!B){R=null;break a}g.push({thumbnailElement:B,videoData:C})}R={gridVideoPreviewData:{gridItems:g}}}return R});
var V=(0,_.LR)(function(){return-E().itemMargin});
return _.z("div",{el:d,class:_.ec("ytGridShelfViewModelGridShelfRow",F),style:_.vr({"margin-left":V,"margin-right":V})},_.z(_.a6,{data:W,replacementWrapper:function(R){return _.z(nLa,{responsiveGridShelfLayout:E},R)}},{shortsLockupViewModel:function(R){return _.z(nLa,{responsiveGridShelfLayout:E},_.z(AS_,{data:R.data,
aspectRatio:function(){return h()==="GRID_SHELF_CONTENT_ASPECT_RATIO_TWO_BY_THREE"?1:0},
scrimStyle:2,inlineMetadata:!1,className:void 0}))}}))},"oc"),nLa=_.GK(function(F){return _.z("div",{style:_.vr({width:(0,_.LR)(function(){return F.responsiveGridShelfLayout().itemWidth}),
margin:function(){return"0 "+F.responsiveGridShelfLayout().itemMargin+"px"}}),
class:"ytGridShelfViewModelGridShelfItem"},F.children)},"pc");
lXc.idomCompat=!0;_.pK(lXc,"grid-shelf-view-model",{props:{data:_.TS,layoutContainerWidth:_.TS,shouldUseOwnContainerSize:_.TS,marginSettings:_.TS,className:_.TS}});_.y0p=_.GK(function(F){var W=_.U(_.g$(!1,void 0,"YYtxR")),E=W.next().value,h=W.next().value;W={};return _.z("yt-alert-banner-view-model",{class:_.ec("ytAlertBannerViewModelHost",F.className,function(){var d;a:switch((d=F.data())==null?void 0:d.type){case "ALERT_BANNER_TYPE_TIME_SENSITIVE":d="ytAlertBannerViewModelTimeSensitive";break a;case "ALERT_BANNER_TYPE_WARNING":d="ytAlertBannerViewModelWarning";break a;default:d="ytAlertBannerViewModelInformational"}return d},(W.ytAlertBannerViewModelDismissed=
E,W.ytAlertBannerViewModelFullbleed=F.fullbleed,W.ytAlertBannerViewModelNarrow=F.narrow,W.ytAlertBannerViewModelIsInRichGrid=F.isInRichGrid,W))},_.z(_.v,{cond:function(){var d;
return!((d=F.data())==null?0:d.hideIcon)},
then:function(){return _.z("div",{class:"ytAlertBannerViewModelIcon"},_.z(_.I3,{icon:function(){return"info_circle"}}))}}),_.z("div",{class:"ytAlertBannerViewModelOuterContainer"},_.z("div",{class:"ytAlertBannerViewModelContainer"},_.z("div",{class:"ytAlertBannerViewModelContent"},_.z("div",{class:"ytAlertBannerViewModelHeading"},_.z(_.Ab,{text:function(){var d;
return(d=F.data())==null?void 0:d.heading}})),_.z("div",{class:"ytAlertBannerViewModelBody"},_.z(_.Ab,{text:function(){var d;
return(d=F.data())==null?void 0:d.body}})))),_.z(_.a6,{data:function(){var d;
return(d=F.data())==null?void 0:d.actionButton}},{buttonViewModel:function(d){return _.z(_.rk,{data:d.data,
className:"ytAlertBannerViewModelActionButton"})}})),_.z(_.a6,{data:function(){var d;
return(d=F.data())==null?void 0:d.dismissButton}},{buttonViewModel:function(d){return _.z(_.rk,{data:d.data,
className:"ytAlertBannerViewModelDismissButton",onClick:function(){var V;((V=F.data())==null?0:V.disableLocalDismissBehavior)||h(!0)}})}}))},"qc");_.pK(_.y0p,"yt-alert-banner-view-model",{props:{data:_.TS,fullbleed:_.TS,narrow:_.TS,isInRichGrid:_.TS,className:_.TS}});var XlY;XlY=_.XF({chipViewModel:_.PW_,buttonViewModel:_.rk});_.j5U=_.Qt(Hln,{callbacks:{callback:!0}});_.ht(Hln);_.pK(_.j5U,"chips-shelf-view-model",{props:{data:_.TS,callback:_.Si,enableSingleChipSelection:_.TS,disableChipsScrollAnimation:_.TS}});var iEi=_.GK(function(F){F=_.o4(F,{disabled:!1});var W=F.active,E=F.disabled;F={};F=_.ec("ytSwitchShapeTrack",(F.ytSwitchShapeTrackActive=function(){return W()},F.ytSwitchShapeTrackDisabled=function(){return E()},F));
var h={};h=_.ec("ytSwitchShapeKnob",(h.ytSwitchShapeKnobActive=function(){return W()},h));
return _.z("switch-shape",{class:"ytSwitchShapeHost"},_.z("div",{class:F}),_.z("div",{class:h}))},"rc");var r0B=_.GK(function(F){var W=_.o4(F,{className:void 0,parentActive:void 0,handleOnTapEventInParent:!1}),E=W.data;F=W.className;var h=W.handleOnTapEventInParent,d=W.parentActive;W=_.U(_.Br(function(){var B;return(B=d())!=null?B:E().switchedOnByDefault||!1}));
var V=W.next().value,R=W.next().value,M=function(){return E().isDisabled},g=_.uf();
W=_.tb(function(B){return B.key==="Enter"?(B.preventDefault(),g.value.click(),!1):!0});
var t=_.tb(function(B){if(E().handleOnTapEventInParent||h())return!0;if(M())return!1;J9R(E(),V(),B);R(!V());return!1}),C={};
C=_.ec("ytSwitchButtonViewModelButton",(C.ytSwitchButtonViewModelTappable=function(){return!M()},C));
return _.z("switch-button-view-model",{class:_.ec("ytSwitchButtonViewModelHost",F)},_.z("button",{el:g,class:C,"on:click":t,"on:keydown":W,"aria-label":function(){return V()?E().a11yLabelSwitchedOn:E().a11yLabelSwitchedOff},
"aria-pressed":V,"aria-disabled":M},_.z(iEi,{active:V,disabled:M})))},"sc");var oLi=_.GK(function(F){var W=_.o4(F,{checked:!1});F=W.name;var E=W.onChange,h=W.onClick,d=W.checked,V=W.labelRenderable,R=W.hasLeadingLabel,M=W.labelClass,g=W.isCompact,t=W.selectElementClass;W=W.disableHorizontalPadding;var C="checkbox"+_.n3(_.sx),B=_.tb(function(A){h==null||h(A);return!1}),I=_.tb(function(A){E==null||E(A);
return!1}),x={};
return _.z("checkbox-shape",null,_.z("label",{class:_.ec("checkbox-shape-wiz",M,(x["checkbox-shape-wiz--compact"]=g,x["checkbox-shape-wiz--disable-horizontal-padding"]=W,x))},_.z("input",{class:"checkbox-shape-wiz__input",id:C,checked:d,name:F,type:"checkbox","prop:checked":d,"on:change":I,"on:click":B}),_.z(_.v,{cond:function(){return!(R==null?0:R())},
then:function(){return _.z(TdM,{isLeading:!0,selectElementClass:t})}}),_.z(_.v,{cond:function(){return!!V},
then:function(){return _.z("div",{class:"checkbox-shape-wiz__label"},V==null?void 0:V())}}),_.z(_.v,{cond:R,
then:function(){return _.z(TdM,{isLeading:!1,selectElementClass:t})}})))},"tc");
oLi.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var TdM=_.GK(function(F){var W=F.selectElementClass;F={};return _.z("div",{class:_.ec("checkbox-shape-wiz__checkbox",W,(F["checkbox-shape-wiz__checkbox--checkbox-default-style"]=function(){return!(W==null?0:W())},F)),
"aria-hidden":"true"},_.z(_.I3,{icon:_.c("enable_web_delhi_icons")?"square":"BOX_EMPTY"}),_.z(_.I3,{icon:_.c("enable_web_delhi_icons")?"check_square":"BOX_CHECK",active:!0}))},"uc");_.q7=_.GK(function(F){var W=F.name;var E=F.onChange;var h=F.onClick;var d=F.checked;var V=F.labelRenderable;var R=F.useCheckIcon;var M=F.hasLeadingLabel;var g=F.labelClass;var t=F.isCompact;var C=F.selectElementClass;var B=F.ariaLabel;F=F.className;var I="radio"+_.n3(_.sx),x=_.tb(function(G){E==null||E(G);return!1}),A=_.tb(function(G){h==null||h(G);
return!1}),X=_.U(_.g$(!1,void 0,"DEwP5e")),P=X.next().value,b=X.next().value;
X=_.tb(function(){var G;((G=_.WZ().resolve(_.Fd(_.$V)))==null?0:G.isKeyBoardInUse())&&b(!0)});
var l=_.tb(function(){b(!1)}),w={};
return _.z("radio-shape",{class:_.ec("radio-shape-wiz",F)},_.z("input",{class:"radio-shape-wiz__input",id:I,"prop:checked":d,name:W,type:"radio","on:change":x,"on:click":A,"aria-label":B,"on:focusin":X,"on:focusout":l}),_.z("label",{class:_.ec("radio-shape-wiz__label-container",g,(w["radio-shape-wiz--compact"]=t,w["radio-shape-wiz__label-container--keyboard-focused"]=P,w)),for:I},_.z(_.v,{cond:function(){return!(M==null?0:M())},
then:function(){return _.z(Gou,{checked:d,useCheckIcon:R,isLeading:!0,selectElementClass:C})}}),_.z(_.v,{cond:function(){return!!V},
then:function(){return _.z("div",{class:"radio-shape-wiz__label","aria-hidden":function(){return(B==null?0:B())?"true":"false"}},V==null?void 0:V())}}),_.z(_.v,{cond:M,
then:function(){return _.z(Gou,{checked:d,useCheckIcon:R,isLeading:!1,selectElementClass:C})}})))},"vc");
_.q7.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var Gou=_.GK(function(F){var W=F.useCheckIcon;var E=F.selectElementClass;F=function(){return(W==null?0:W())?"CHECK":_.c("radio_shape_filled_icon_manual_setting_killswitch")?"CIRCLE_FILLED":"CIRCLE"};
var h={};return _.z("div",{class:_.ec("radio-shape-wiz__radio",E,(h["radio-shape-wiz__radio--check-icon"]=W,h["radio-shape-wiz__radio--radio-default-style"]=function(){return!(E==null?0:E())},h)),
"aria-hidden":"true"},_.z(_.I3,{icon:F}),_.z(_.I3,{icon:F,active:function(){return!(W==null?0:W())}}))},"wc");_.$q=_.GK(function(F){function W(){var uo;((uo=_.WZ().resolve(_.Fd(_.$V)))==null?0:uo.isKeyBoardInUse())&&bo(!0)}
function E(){bo(!1)}
var h=F.data;var d=F.isMenuItem;var V=F.isCompact;var R=F.onTap;var M=F.trailingAccessory;var g=F.hideSelectionTextChevron;var t=F.disabled;var C=F.inPopup;var B=F.disableHorizontalPadding;F=F.isOverlay;var I=_.c("apply_button_role_to_list_item"),x=_.Jb(function(uo){a:{var b_=h();if((b_==null?0:b_.entitySelectorType)&&(b_==null?0:b_.entityKey))switch(b_.entitySelectorType){case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_CAPTION_LANGUAGE_SELECTION_TEXT":uo=_.M1R(uo,b_.entityKey);uo=uo==null?void 0:
uo.value;b_=!1;uo==="CAPTIONS_UNAVAILABLE"&&(b_=!0,uo="");uo=Object.assign({},!!uo&&{selectionText:{content:uo}},{isSelected:!!uo},!!uo&&{leadingImage:{sources:[{clientResource:{imageName:"CLOSED_CAPTION_SELECTED"}}]}},{isDisabled:b_});break a;default:uo={}}else uo={}}return uo}),A=function(){return _.c("enable_web_shorts_captions_language_command")?Object.assign({},h(),x()):h()},X=function(){return!(A().isSelected===void 0||!A().selectionStyle||A().selectionStyle==="LIST_ITEM_SELECTION_STYLE_UNSPECIFIED")},
P=function(){return(_.uJ(A().rendererContext)||R)&&!X()},b=function(){return _.uJ(A().rendererContext)||X()},l={};
F=_.ec("yt-list-item-view-model-wiz",(l["yt-list-item-view-model-wiz--is-overlay"]=F,l["yt-list-item-view-model-wiz--keyboard-focused"]=function(){return!I&&nb()},l));
l={};var w=_.ec("yt-list-item-view-model-wiz__label",(l["yt-list-item-view-model-wiz__container"]=function(){return!X()},l["yt-list-item-view-model-wiz__container--disabled"]=function(){return!!A().isDisabled||!(t==null||!t())},l["yt-list-item-view-model-wiz__container--has-subtitle"]=function(){return!!A().subtitle},l["yt-list-item-view-model-wiz__container--compact"]=V,l["yt-list-item-view-model-wiz__container--tappable"]=P,l["yt-list-item-view-model-wiz__container--in-popup"]=C,l["yt-list-item-view-model-wiz--keyboard-focused"]=
function(){return I&&nb()},l["yt-list-item-view-model-wiz__container--disable-horizontal-padding"]=function(){return(B==null?void 0:B())&&!X()},l));
l={};var G=_.ec("yt-list-item-view-model-wiz__container",(l["yt-list-item-view-model-wiz__container--tappable"]=b,l["yt-list-item-view-model-wiz__container--compact"]=V,l["yt-list-item-view-model-wiz__container--in-popup"]=C,l["yt-list-item-view-model-wiz__container--disable-horizontal-padding"]=function(){return(B==null?void 0:B())&&X()},l)),hr=function(){return A().leadingImage||A().leadingAccessory},p=_.ec("yt-list-item-view-model-wiz__image-container",function(){return hr()?"yt-list-item-view-model-wiz__trailing":
"yt-list-item-view-model-wiz__leading"});
C=_.uf();var UY=_.uf(),xW=I?UY:C,qw=_.GK(function(){return _.z(_.v,{cond:function(){return I},
then:function(){return _.z("div",{class:w,el:UY,role:function(){return b()||P()?"button":void 0},
tabindex:function(){return R||P()?0:void 0},
"on:keydown":jk,"on:click":Lb},_.z(YI_,{data:A,hideSelectionTextChevron:g,trailingAccessory:M}))},
else:function(){return _.z("div",{class:w,el:UY},_.z(YI_,{data:A,hideSelectionTextChevron:g,trailingAccessory:M}))}})},"xc");
qw.idomCompat=!0;_.Sb(C,function(){return A().rendererContext});
var Lb=_.tb(function(uo){return void(R==null?void 0:R(uo))}),jk=_.$Zr(),Jr=_.U(_.g$(!1,void 0,"inP9Dc"));
l=Jr.next().value;Jr=Jr.next().value;var nb=l,bo=Jr;_.Xk(function(){P()&&(xW.value.addEventListener("focusin",W),xW.value.addEventListener("focusout",E));_.$p(function(){xW.value&&P()&&(xW.value.removeEventListener("focusin",W),xW.value.removeEventListener("focusout",E))})});
l=_.tb(function(){return!1});
return _.z("yt-list-item-view-model",{el:C,class:F,role:function(){return(d==null?0:d())?"menuitem":"listitem"},
tabindex:function(){var uo=P();uo=I?void 0:R||uo?0:void 0;return uo},
"on:keydown":I?l:jk,"on:click":I?l:Lb},_.z(_.v,{cond:X,then:function(){return _.z(_.sG,null,_.z(_.kF,{when:function(){return A().selectionStyle==="LIST_ITEM_SELECTION_STYLE_CHECKBOX"}},function(){return _.z(oLi,{labelRenderable:function(){return _.z(qw,null)},
isCompact:V,checked:function(){return A().isSelected},
hasLeadingLabel:function(){return!!hr()},
labelClass:G,selectElementClass:p,disableHorizontalPadding:B})}),_.z(_.kF,{when:function(){return A().selectionStyle==="LIST_ITEM_SELECTION_STYLE_RADIO"}},function(){return _.z(_.q7,{labelRenderable:function(){return _.z(qw,null)},
isCompact:V,checked:function(){return A().isSelected},
hasLeadingLabel:function(){return!!hr()},
labelClass:G,selectElementClass:p})}),_.z(_.kF,{when:function(){return A().selectionStyle==="LIST_ITEM_SELECTION_STYLE_DEFAULT"}},function(){return _.z(_.q7,{labelRenderable:function(){return _.z(qw,null)},
isCompact:V,checked:function(){return A().isSelected},
hasLeadingLabel:function(){return!!hr()},
labelClass:G,selectElementClass:p,useCheckIcon:!0})}),_.z(_.A8,null,function(){return _.z(qw,null)}))},
else:function(){return _.z(qw,null)}}))},"yc");
_.$q.idomCompat={callbacks:{onTap:!0,trailingAccessory:!0}};var YI_=_.GK(function(F){var W=F.data;var E=F.hideSelectionTextChevron;var h=F.trailingAccessory;return _.z(_.EG,null,_.z(wd_,{data:W,isLeading:!0,hideSelectionTextChevron:function(){return!(E==null||!E())}}),_.z(u1c,{data:W}),_.z(_.v,{cond:function(){return!!h},
then:function(){return _.z("div",{class:"yt-list-item-view-model-wiz__trailing"},h==null?void 0:h())},
else:function(){return _.z(wd_,{data:W,isLeading:!1,hideSelectionTextChevron:function(){return!(E==null||!E())}})}}))},"zc"),wd_=_.GK(function(F){var W=F.data;
var E=F.isLeading;var h=F.hideSelectionTextChevron;var d=_.ec("yt-list-item-view-model-wiz__button-container");F={};var V=_.ec("yt-list-item-view-model-wiz__image-container",(F["yt-list-item-view-model-wiz__leading"]=E,F["yt-list-item-view-model-wiz__trailing"]=function(){return!E()},F)),R=function(){return E()?W().leadingImage:W().trailingImage},M=_.ec("yt-list-item-view-model-wiz__accessory","yt-list-item-view-model-wiz__image");
F={};var g=_.ec("yt-list-item-view-model-wiz__accessory",(F["yt-list-item-view-model-wiz__leading"]=E,F["yt-list-item-view-model-wiz__trailing"]=function(){return!E()},F)),t=function(){a:switch(W().listItemIconAfterSelectionText){case "LIST_ITEM_ICON_AFTER_SELECTION_TEXT_EXPAND_MORE":var C="expand_more";
break a;default:C="chevron_right"}return C};
return _.z(_.v,{cond:function(){var C=W(),B=E();return!!(B&&(C.leadingImage||C.leadingAccessory)||!B&&(C.trailingImage||C.trailingButton||C.trailingButtons||C.selectionText))},
then:function(){return _.z(_.EG,null,_.z(_.v,{cond:R,then:function(C){return _.z("div",{class:V,"aria-hidden":"true"},_.z(_.T4,{data:C,alt:"",preserveWidth:!0,preserveHeight:!0,className:M}))}}),_.z(_.v,{cond:function(){return E()&&W().leadingAccessory},
then:function(){return _.z("div",{class:V},_.z(_.a6,{data:function(){return W().leadingAccessory}},{avatarViewModel:function(C){return _.z(_.fI,{data:C.data,
avatarButtonCustomClassName:M})},
collectionThumbnailViewModel:z1T}))}}),_.z(_.v,{cond:function(){return!E()&&W().trailingButton},
then:function(){return _.z("div",{class:d},_.z(_.a6,{data:function(){return W().trailingButton}},{buttonViewModel:function(C){return _.z(_.rk,{data:C.data,
className:g})}}))}}),_.z(_.v,{cond:function(){var C;
return!E()&&((C=W().trailingButtons)==null?void 0:C.buttons)},
then:function(){return _.z("div",{class:d},_.z(_.a6,{data:function(){var C;return(C=W().trailingButtons)==null?void 0:C.buttons}},{buttonViewModel:function(C){return _.z(_.rk,{data:C.data,
className:g})},
accountLinkButtonViewModel:function(C){return _.z(MvY,{data:C.data,className:function(){return g()||""}})},
switchButtonViewModel:function(C){return _.z(r0B,{data:C.data,className:g})},
subscribeButtonViewModel:function(C){return _.z(wCa,{data:C.data,isOverlay:!1,animateWidth:!1,className:g})},
toggleButtonViewModel:function(C){return _.z(_.bJ,{data:C.data,className:g})}}))}}),_.z(_.v,{cond:function(){return!E()&&!!W().selectionText},
then:function(){return _.z(_.EG,null,_.z(_.Ab,{text:function(){return W().selectionText},
className:_.ec("yt-list-item-view-model-wiz__selection-text","yt-list-item-view-model-wiz__selection-text--trailing-selection-text")}),_.z(_.v,{cond:function(){return!h()},
then:function(){return _.z(_.I3,{icon:t,className:"yt-list-item-view-model-wiz__chevron-icon"})}}))}}))}})},"Ac"),u1c=_.GK(function(F){var W=F.data;
return _.z(_.v,{cond:function(){return W().title||W().subtitle},
then:function(){return _.z("div",{class:"yt-list-item-view-model-wiz__text-wrapper"},_.z("div",{class:"yt-list-item-view-model-wiz__title-wrapper"},_.z(_.v,{cond:function(){return W().title},
then:function(E){return _.z(_.Ab,{text:E,className:"yt-list-item-view-model-wiz__title"})}})),_.z(_.v,{cond:function(){return W().subtitle},
then:function(E){return _.z(_.Ab,{text:E,className:"yt-list-item-view-model-wiz__subtitle"})}}))}})},"Bc");_.SIO=_.GK(function(F){var W=F.data;var E=F.onTap;var h=F.onSwitch;var d=F.overrideDisabled;F=F.disableHorizontalPadding;var V=_.U(_.Br(function(){var B;return((B=ftG(C()))==null?void 0:B.switchedOnByDefault)||!1})),R=V.next().value,M=V.next().value;
V=_.U(_.g$(!1,void 0,"ZHBkbb"));var g=V.next().value,t=V.next().value,C=function(){var B;if(!(B=W().switchButton)){var I=W();B=d==null?void 0:d();I={switchOnCommand:I.switchOnCommand,switchOffCommand:I.switchOffCommand,switchedOnByDefault:I.switchedOnByDefault,isDisabled:I.isDisabled,handleOnTapEventInParent:!0,a11yLabelSwitchedOn:I.a11yLabelSwitchedOn,a11yLabelSwitchedOff:I.a11yLabelSwitchedOff};B!==void 0&&(I.isDisabled=B);B={switchButtonViewModel:I}}return B};
return _.z("switch-list-item-view-model",{class:"ytSwitchListItemViewModelHost"},_.z(_.$q,{data:function(){return{title:W().title,subtitle:W().attributedSubtitle,leadingImage:W().leadingImage,leadingAccessory:W().leadingAccessory,isDisabled:W().isDisabled}},
onTap:function(B){var I=ftG(C());!I||I.isDisabled||W().ignoreTapUntilCommandCompletes&&g()||(E==null||E(B),J9R(I,R(),B,W().ignoreTapUntilCommandCompletes,t),M(!R()),h==null||h(R()))},
trailingAccessory:function(){return _.z(_.a6,{data:C},{switchButtonViewModel:function(B){return _.z(r0B,{data:B.data,parentActive:R,handleOnTapEventInParent:!!E})}})},
disableHorizontalPadding:F}))},"Cc");var pde=_.CY("DOWNLOAD",{},"Download"),mVX=_.CY("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"),KhB=_.CY("RETRY",{},"Retry"),Ftp=_.CY("PAUSE_DOWNLOADING",{},"Pause downloading"),Wtc=_.CY("RESUME_DOWNLOAD",{},"Resume download"),Olr={text:pde,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_ADD",playlistAction:"ACTION_ADD"},nI={text:mVX,iconType:"DELETE",videoAction:"ACTION_REMOVE",playlistAction:"ACTION_REMOVE"},nGY={text:KhB,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RETRY",playlistAction:"ACTION_REMOVE"},
blG={text:Ftp,iconType:"OFFLINE_PAUSE",videoAction:"ACTION_PAUSE",playlistAction:"ACTION_PAUSE"},ltR={text:Wtc,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RESUME",playlistAction:"ACTION_RESUME"};var E1M=_.GK(function(F){var W=function(){var M=F.data();M=_.wk(M.rendererContext);var g;return(g=_.D(M,_.vS))==null?void 0:g.videoId},E=_.Jb(function(M){var g=W(),t=ilr(F.data());
return g?_.ax(M,g):t?_.fV(M,t):"TRANSFER_STATE_UNKNOWN"}),h=_.D1(_.jHr,W),d=_.Jb(function(M){return _.fIb(M,W(),ilr(F.data()))}),V=function(){return jpr(E(),h(),_.wk(F.data().rendererContext),!!ilr(F.data()))},R=function(){return d()!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
return _.z("yt-download-list-item-view-model",{class:"ytDownloadListItemViewModelHost",hidden:R},_.z(_.v,{cond:function(){return!R()},
then:function(){return _.z(_.v,{cond:V,then:function(M){return _.z(_.xF,{each:M},function(g){return _.z(_.$q,{data:g,isCompact:F.isCompact,isMenuItem:F.isMenuItem,inPopup:F.inPopup,disableHorizontalPadding:F.disableHorizontalPadding})})}})}}))},"Dc");
E1M.idomCompat=!0;_.hGe=_.GK(function(F){var W=F.data;var E=F.isCompact;var h=F.hideSelectionTextChevron;var d=F.inPopup;var V=F.isOverlay;var R=F.disableHorizontalPadding;var M=function(){return r9Y(W())&&(d==null?void 0:d())};
F={};return _.z("yt-list-view-model",{class:_.ec("yt-list-view-model-wiz",(F["yt-list-view-model-wiz--kaios-spat-nav"]=XVS&&document.body.hasAttribute("spatial-navigation-enabled")&&document.body.getAttribute("spatial-navigation-enabled")==="true",F)),role:function(){return M()?"menu":"list"}},_.z(_.a6,{data:function(){return W().listItems}},{listItemViewModel:function(g){return _.z(_.$q,{data:g.data,
isMenuItem:M,isCompact:E,hideSelectionTextChevron:h,inPopup:d,isOverlay:V,disableHorizontalPadding:R})},
downloadListItemViewModel:function(g){return _.z(E1M,{data:g.data,isMenuItem:M,isCompact:E,inPopup:d,disableHorizontalPadding:R})},
switchListItemViewModel:function(g){return _.z(_.SIO,{data:g.data,disableHorizontalPadding:R})}}))},"Ec");
_.hGe.idomCompat=!0;var dNp=_.GK(function(F){var W=F.data;var E=F.isOverlay;F={};return _.z("yt-course-perks-view-model",{class:_.ec("ytwCoursePerksViewModelHost",(F.ytwCoursePerksViewModelHostOverlay=E,F))},_.z("h3",{class:"ytwCoursePerksViewModelHostPerksTitle"},_.z(_.Ab,{text:function(){return W().title}})),_.z("div",null,_.z(_.v,{cond:function(){return W().perks},
then:function(h){return _.z(_.hGe,{data:function(){return{listItems:h()}},
isCompact:!0,isOverlay:E})}})))},"Fc");_.pK(dNp,"yt-course-perks-view-model",{props:{data:_.Si,isOverlay:_.Si}});_.pK(_.GK(function(F){var W=F.data;return _.z("yt-course-progress-view-model",{class:"ytwCourseProgressViewModelHost"},_.z("h3",{class:"ytwCourseProgressViewModelHostProgressTitle"},_.z(_.Ab,{text:function(){return W().title}})),_.z("p",{class:"ytwCourseProgressViewModelHostProgressSubtitle"},_.z(_.Ab,{text:function(){return W().progressSummary}})),_.z("div",{class:"ytwCourseProgressViewModelHostProgressBar"},_.z("div",{class:"ytwCourseProgressViewModelHostProgressBarFill",
style:_.vr({width:function(){return W().progressPercentage*100+"%"}})})))},"Gc"),"yt-course-progress-view-model",{props:{data:_.TS}});var NPB=_.GK(function(F){var W={};return _.z("yt-progress-view-model",{class:_.ec("ytwProgressViewModelHost",(W.ytwProgressViewModelHostOverlay=_.TK(F.isOverlay,!1),W))},_.z(_.v,{cond:function(){return F.data().progressSummary},
then:function(E){return _.z("p",{class:"ytwProgressViewModelHostProgressSubtitle"},_.z(_.Ab,{text:E}))}}),_.z("div",{class:"ytwProgressViewModelHostProgressContainer"},_.z(_.v,{cond:function(){return F.data().leadingLabel},
then:function(E){return _.z("p",{class:"ytwProgressViewModelHostProgressLeadingLabel"},_.z(_.Ab,{text:E}))}}),_.z("div",{class:"ytwProgressViewModelHostProgressBar"},_.z("div",{class:"ytwProgressViewModelHostProgressBarFill",
style:function(){return"width: "+(F.data().progressPercentage||0)*100+"%"}}))))},"Hc");var Z$=_.GK(function(F){var W=F.starNumber;var E=F.data;var h=function(){var d;return((d=E())==null?void 0:d.rating)||0};
return _.z(_.v,{cond:function(){return W()},
then:function(d){return _.z(_.sG,null,_.z(_.kF,{when:function(){return h()>=d()-.25}},function(){return _.z("div",{class:"ytStarRatingViewModelHostStar"},_.z(_.I3,{icon:"STAR_FILLED"}))}),_.z(_.kF,{when:function(){return h()>=d()-.75}},function(){return _.z("div",{class:"ytStarRatingViewModelHostStar"},_.z(_.I3,{icon:"STAR_HALF"}))}),_.z(_.A8,null,function(){return _.z("div",{class:"ytStarRatingViewModelHostStar"},_.z(_.I3,{icon:"STAR_BORDER"}))}))}})},"Ic"),VLu=_.GK(function(F){F=F.data;
return _.z("yt-star-rating-view-model",{class:"ytStarRatingViewModelHost"},_.z(Z$,{starNumber:1,data:F}),_.z(Z$,{starNumber:2,data:F}),_.z(Z$,{starNumber:3,data:F}),_.z(Z$,{starNumber:4,data:F}),_.z(Z$,{starNumber:5,data:F}))},"Jc");_.pK(_.GK(function(F){var W=_.o4(F,{}).data;return _.z("yt-course-ratings-view-model",{class:"ytCourseRatingsViewModelHost"},_.z("h3",{class:"ytCourseRatingsViewModelHostRatingTitle"},_.z(_.Ab,{text:function(){var E;return(E=W())==null?void 0:E.title}})),_.z("div",{class:"ytCourseRatingsViewModelHostRatingContainer"},_.z(_.v,{cond:function(){return W().starProgressViewModels},
then:function(E){return _.z("div",{class:"ytCourseRatingsViewModelHostProgressBarContainer"},_.z(_.a6,{data:E},{progressViewModel:NPB}))}}),_.z("div",{class:"ytCourseRatingsViewModelHostStarRatingAndRatingDataContainer"},_.z("p",{class:"ytCourseRatingsViewModelHostAverageRatingLabel"},_.z(_.Ab,{text:function(){var E;
return(E=W())==null?void 0:E.averageRatingLabel}})),_.z(_.v,{cond:function(){return W().zeroStateText},
then:function(E){return _.z("div",{class:"ytCourseRatingsViewModelHostZeroStateText"},_.z(_.Ab,{text:E}))}}),_.z(_.v,{cond:function(){return W().starRatingViewModel},
then:function(E){return _.z("div",{class:"ytCourseRatingsViewModelHostStarRatingContainer"},_.z(_.a6,{data:E},{starRatingViewModel:VLu}))}}),_.z("p",{class:"ytCourseRatingsViewModelHostTotalRatingsCountLabel"},_.z(_.Ab,{text:function(){var E;
return(E=W())==null?void 0:E.totalRatingsCountLabel}})))))},"Kc"),"yt-course-ratings-view-model",{props:{data:_.Si}});var UNp;UNp={animationConfig:{autoplay:!0,loop:!0,renderer:"svg",name:"LEARNING_JOURNEY_LOADER_ICON",path:"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_solo_v1.json"}};_.RGH=_.GK(function(F){var W=_.uf(),E=_.tG();_.$F(function(){requestAnimationFrame(function(){var d;(d=E.lottieEl)==null||d.addEventListener("DOMLoaded",function(){var V;(V=F.onLottieLoaded)==null||V.call(F)})});
var h=F.data().browseEndpoint;h&&_.fK(h)});
return _.z("yt-learning-journey-loader-view-model",{class:_.ec("learningJourneyLoaderViewModelHost",F.className),"data-target-id":function(){var h;return((h=F.data)==null?void 0:h.call(F).targetId)||""},
el:W},_.z(_.Mj,{className:_.ec("learningJourneyLoaderViewModelLoader",F.className),animationName:function(){return UNp.animationConfig.name},
data:UNp,animationRef:E}))},"Lc");_.pK(_.RGH,"yt-learning-journey-loader-view-model",{props:{data:_.TS,className:_.Si,onLottieLoaded:_.Si}});var eG_=_.GK(function(F){var W=function(){return F.data()},E=_.U(_.g$(-1,void 0,"GvxRR")),h=E.next().value,d=E.next().value,V=function(t){return h()===t},R=function(t){return W().correctAnswerIndex===t},M=function(){return h()!==-1},g=_.tb(function(){d(-1);
return!1});
return _.z("learning-journey-quiz-view-model",{class:_.ec("learningJourneyQuizViewModelHost",F.className),style:_.vr({background:function(){return iA(yg(W())).backgroundColor}})},_.z(_.v,{cond:function(){return!!W().video},
then:function(){return _.z("div",{class:"learningJourneyQuizViewModelHostVideoContainer",style:_.vr({background:function(){return iA(yg(W())).videoBackgroundColor}})},_.z(_.a6,{data:function(){return W().video}},{lockupViewModel:function(t){return _.z(_.EN,{data:t.data,
containerType:1,className:"learningJourneyQuizViewModelHostVideoLockup"})}}))}}),_.z("div",{class:"learningJourneyQuizViewModelHostQuizContainer"},_.z("div",{class:"learningJourneyQuizViewModelHostQuiz"},_.z("div",{class:"learningJourneyQuizViewModelHostQuizContent"},_.z("div",{class:"learningJourneyQuizViewModelHostQuizHeader"},_.z("div",{class:"learningJourneyQuizViewModelHostQuizHeaderText",
style:_.vr({color:function(){return iA(yg(W())).primaryTextColor}})},_.z(_.Ab,{text:function(){var t=W(),C=M(),B=h()===W().correctAnswerIndex;
return C?B?t.successTitle:t.failureTitle:t.questionHeaderText}})),_.z("div",{class:"learningJourneyQuizViewModelHostQuizHeaderButtons"},_.z(_.v,{cond:M,
then:function(){return _.z("div",{id:"resetButton",class:"learningJourneyQuizViewModelHostQuizHover","on:click":g,role:"button","aria-label":"Reset","tab-index":"0"},_.z("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24",width:"24",viewBox:"0 -960 960 960",style:_.vr({fill:function(){return iA(yg(W())).primaryTextColor}})},_.z("path",{d:"M440-122q-121-15-200.5-105.5T160-440q0-66 26-126.5T260-672l57 57q-38 34-57.5 79T240-440q0 88 56 155.5T440-202v80zm80 0v-80q87-16 143.5-83T720-440q0-100-70-170t-170-70h-3l44 44-56 56-140-140 140-140 56 56-44 44h3q134 0 227 93t93 227q0 121-79.5 211.5T520-122z"})))}}),
_.z(_.a6,{data:function(){return W().overflowMenu}},{buttonViewModel:function(t){return _.z(_.rk,{data:t.data})}}))),_.z("div",{class:"learningJourneyQuizViewModelHostQuizSubheader",
style:_.vr({color:function(){return iA(yg(W())).secondaryTextColor}})},_.z(_.Ab,{text:function(){var t=W();
return M()?t.explanationText:t.questionSubheaderText}}))),_.z("div",{class:"learningJourneyQuizViewModelHostQuizOptionsList"},_.z(_.xF,{each:function(){return W().optionsData||[]}},function(t,C){var B={};
return _.z("div",{class:_.ec("learningJourneyQuizViewModelHostQuizOptions",(B.learningJourneyQuizViewModelHostQuizHover=function(){return!M()},B.learningJourneyQuizViewModelHostQuizOptionSelectedCorrect=function(){return h()===W().correctAnswerIndex&&V(C())},B.learningJourneyQuizViewModelHostQuizOptionSelectedIncorrect=function(){return h()!==W().correctAnswerIndex&&V(C())},B.learningJourneyQuizViewModelHostQuizOptionNotSelected=function(){return M()&&!V(C())},B)),
"on:click":_.tb(function(){if(M())return!1;d(C());return!1}),
style:_.vr({background:function(){return M()&&V(C())?"":iA(yg(W())).optionColor}}),
role:"button","aria-disabled":M,"tab-index":"0"},_.z(_.v,{cond:M,then:function(){return _.z("svg",{xmlns:"http://www.w3.org/2000/svg",height:"16",width:"16",viewBox:function(){var I=C();return R(I)?"0 0 24 24":"0 -960 960 960"},
class:"learningJourneyQuizViewModelHostQuizOptionIcon",style:_.vr({fill:function(){return iA(yg(W())).primaryTextColor}})},_.z("path",{d:function(){var I=C();
return R(I)?"M12,2C6.5,2,2,6.5,2,12c0,5.5,4.5,10,10,10s10-4.5,10-10C22,6.5,17.5,2,12,2z M9.8,17.3l-4.2-4.1L7,11.8l2.8,2.7L17,7.4 l1.4,1.4L9.8,17.3z":"M330-120L120-330v-300l210-210h300l210 210v300L630-120H330zm36-190l114-114 114 114 56-56-114-114 114-114-56-56-114 114-114-114-56 56 114 114-114 114 56 56z"}}))}}),_.z(_.Ab,{text:t.optionText}))})))))},"Mc");
eG_.idomCompat=!0;_.pK(eG_,"learning-journey-quiz-view-model",{props:{data:_.TS,className:_.TS}});var MLz=_.GK(function(F){var W=_.uf();_.Sb(W,function(){return F.data().rendererContext});
var E=_.o4(F,{palette:void 0,isLastItem:!1}),h=E.palette,d=E.isLastItem,V=function(){return F.data().isHighlighted},R=function(){var t;
return TBo((t=h())==null?void 0:t.iconDisabledColor)},M=function(){var t;
return TBo((t=h())==null?void 0:t.primaryTitleColor)},g=function(){var t;
return TBo((t=h())==null?void 0:t.secondaryTitleColor)};
E={};return _.z("yt-macro-marker-list-item-view-model",{class:"ytMacroMarkerListItemViewModelHost",el:W},_.z(_.a6,{data:function(){return F.data().thumbnail}},{thumbnailViewModel:_.Yo}),_.z("div",{class:"ytMacroMarkerListItemViewModelMetadataContainer"},_.z("div",{class:_.ec("ytMacroMarkerListItemViewModelTimeDescription",(E.ytMacroMarkerListItemViewModelHighlighted=V,E)),
style:_.vr({"background-color":function(){return V()?M():R()},
color:function(){return V()?"":g()}})},_.z(_.Ab,{text:function(){return F.data().timestamp}})),_.z("div",{class:"ytMacroMarkerListItemViewModelTimeLine",
style:_.vr({"background-color":function(){return d()?"transparent":R()}})}),_.z("h4",{class:"ytMacroMarkerListItemViewModelTitle",
style:function(){return"color:"+(V()?M():g())}},_.z(_.Ab,{text:function(){return F.data().title}}))))},"Nc");_.X5=_.GK(function(F){function W(VM){b("transform:translateX("+(_.b0("HTML_DIR")==="rtl"?"":"-")+VM+"px)")}
function E(VM){return Math.min(Math.max(VM,0),P()-p())}
function h(){var VM=G()+Lb();return d()?(Math.round(p()/VM)||1)*VM:0}
var d=function(){return F.data().items||[]},V=function(){return F.data().previousButton},R=function(){return F.data().nextButton},M=function(){var VM,Z_;
return(Z_=(VM=F.disableArrows)==null?void 0:VM.call(F))!=null?Z_:!1},g=function(){var VM;
return!((VM=F.forceNarrowLayout)==null||!VM.call(F))},t=_.uf(),C=_.uf(),B=_.U(_.g$(0,void 0,"yngx7d")),I=B.next().value,x=B.next().value;
B=_.U(_.g$(0,void 0,"rUOyGb"));var A=B.next().value,X=B.next().value,P=A;A=_.U(_.g$("",void 0,"jv2kWc"));B=A.next().value;var b=A.next().value;A=_.U(_.g$(0,void 0,"Xb0f0d"));var l=A.next().value,w=A.next().value,G=l;A=_.U(_.g$(0,void 0,"pt5wQ"));l=A.next().value;var hr=A.next().value,p=l;A=_.U(_.g$(!1,void 0,"FfPefe"));var UY=A.next().value,xW=A.next().value;A=_.U(_.g$(0,void 0,"kB5mhb"));l=A.next().value;var qw=A.next().value,Lb=l;A=_.U(_.g$(0,void 0,"dnDmUd"));var jk=A.next().value,Jr=A.next().value,
nb=function(){var VM,Z_=(VM=F.data())==null?void 0:VM.responsiveContainerConfiguration,MU,Ef;return Z_?mEY(Z_==null?void 0:Z_.responsiveSize):(Ef=(MU=F.sizing)==null?void 0:MU.call(F))!=null?Ef:"STANDARD"};
A=_.vX(function(){return!M()&&I()>0},void 0,"ZIGxke");
l=_.vX(function(){return!M()&&I()<P()-p()},void 0,"OJzhRd");
var bo=function(){x(E(I()-h()));W(I())},uo=function(){x(E(I()+h()));
W(I())},b_=function(){t.value!==null&&dc()},BO;
_.Xk(function(){dc();window.ResizeObserver?(BO=new ResizeObserver(_.qS(b_,0)),BO.observe(t.value)):window.addEventListener("resize",b_)});
_.$p(function(){if(window.ResizeObserver){var VM;(VM=BO)==null||VM.disconnect()}else window.removeEventListener("resize",b_)});
var dc=function(){var VM=t.value.clientWidth,Z_=F.includeMargin!==void 0?F.includeMargin():!1,MU;var Ef=F.hasPeek!==void 0?F.hasPeek():!((MU=F.data())==null||!MU.hasPeek);VM=_.EQ({containerWidth:VM,hasPeek:Ef,sizing:nb(),marginSettings:Z_?g()?4:1:0});qw(VM.gutter);Jr(VM.margin);w(VM.itemWidth);xW(VM.maxContainerWidth<528||g());hr(VM.maxContainerWidth);d()&&X((VM.itemWidth+VM.gutter)*d().length-VM.gutter)};
return _.z("horizontal-shelf-view-model",{class:_.ec("ytwHorizontalShelfViewModelHost",F.className),el:t},_.z(_.v,{cond:function(){return F.data().header},
then:function(){return _.z("div",{class:"ytwHorizontalShelfViewModelHeader",style:_.vr({width:function(){return p()+"px"},
padding:function(){return"0 "+jk()+"px"}})},_.z(_.a6,{data:function(){return F.data().header}},{sectionHeaderViewModel:function(VM){return _.z(_.N7,{data:VM.data,
disableHorizontalPadding:!0,forceSmallLayout:UY,useResponsiveLayout:!0})}}))}}),_.z("div",{class:"ytwHorizontalShelfViewModelOuterContainer"},_.z("div",{class:"ytwHorizontalShelfViewModelHorizontalContainer",
style:_.vr({width:function(){return p()+"px"},
padding:function(){return"0 "+jk()+"px"},
overflow:function(){return M()?"auto":"hidden"}})},_.z("div",{class:"ytwHorizontalShelfViewModelItems",
el:C,style:B},_.z(_.a6,{data:d},{macroMarkerListItemViewModel:function(VM,Z_){return _.z("div",{style:_.vr({width:function(){return G()+"px"},
"margin-right":function(){return(Z_()===d().length-1?0:Lb())+"px"}})},_.z(MLz,{data:VM.data,
palette:_.TK(F.palette),isLastItem:function(){return Z_()===d().length-1}}))},
lockupViewModel:function(VM,Z_){var MU=VM.data;return _.z("div",{style:_.vr({width:function(){return G()+"px"},
"margin-right":function(){return(Z_()===d().length-1?0:Lb())+"px"}})},_.z(_.EN,{data:MU,
containerType:4,sizing:nb,protectBackground:F.protectBackground,thumbnailFixedWidth:function(){return oGY(MU())+"px"},
thumbnailTargetWidth:function(){return oGY(MU())}}))}}))),_.z(_.v,{cond:A,
then:function(){return _.z("div",{class:"ytwHorizontalShelfViewModelLeftArrow"},_.z(_.a6,{data:V},{buttonViewModel:function(VM){return _.z(_.rk,{data:VM.data,onClick:bo})}}))}}),_.z(_.v,{cond:l,
then:function(){return _.z("div",{class:"ytwHorizontalShelfViewModelRightArrow"},_.z(_.a6,{data:R},{buttonViewModel:function(VM){return _.z(_.rk,{data:VM.data,onClick:uo})}}))}})))},"Oc");
_.X5.idomCompat=!0;var g1_=_.GK(function(F){var W=function(){return F.data().targetId||""},E=function(){var I;
return((I=F.data())==null?void 0:I.expansionEntityKey)||""},h=_.D1(_.M1R,E),d=function(){var I;
return((I=h())==null?void 0:I.value)===W()},V=function(I){_.rQ(_.AG("stringEntity",E(),{key:E(),
value:I?W():""}))};
_.$F(function(){F.data().isExpanded&&V(!0)});
var R=function(){if(d()){var I=!0;F.onCollapse!==void 0&&(I=F.onCollapse());I&&V(!1)}else V(!0)},M=_.tb(R),g=function(){var I;
return(((I=F.accordionStyle)==null?void 0:I.call(F))||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED")==="ACCORDION_VIEW_MODEL_STYLE_MINI"},t=_.uf(),C={},B={};
return _.z("yt-accordion-item-view-model",{class:_.ec("ytAccordionItemViewModelHost",F.className,(C.ytAccordionItemViewModelExpanded=function(){return d()},C.ytAccordionItemViewModelHidden=function(){var I;
return(I=F.hideIfNotExpanded)==null?void 0:I.call(F)},C.ytAccordionItemViewModelMini=g,C)),
"data-target-id":W},_.z("div",{class:"ytAccordionItemViewModelContainer"},_.z("div",{class:"ytAccordionItemViewModelLeftSection","on:click":M},_.z(_.Ab,{text:function(){return F.data().title},
className:"ytAccordionItemViewModelLabel"})),_.z("div",{class:"ytAccordionItemViewModelRightSection"},_.z(_.a6,{data:function(){return d()?F.data().expandButton:F.data().collapseButton}},{buttonViewModel:function(I){return _.z(_.rk,{data:I.data,
className:"ytAccordionItemViewModelToggleButton",onClick:R})}}))),_.z("div",{class:"ytAccordionItemViewModelContainer"},_.z("div",{class:_.ec("ytAccordionItemViewModelContent",(B.ytAccordionItemViewModelExpandedSubtitle=function(){return d()},B)),
el:t,style:_.vr({"max-height":function(){return t.value?d()?t.value.scrollHeight+"px":"0":"auto"}})},_.z(_.v,{cond:function(){return!g()},
then:function(){return _.z(_.Ab,{text:function(){return F.data().description},
className:"ytAccordionItemViewModelSubtitle"})}}),_.z(_.a6,{data:function(){return F.data().content}},{horizontalShelfViewModel:function(I){return _.z(_.X5,{data:I.data,
className:"ytAccordionItemViewModelLockupShelf",hasPeek:!0})}}))))},"Pc");_.QwU=_.GK(function(F){var W=_.U((0,_.jhu)(F.data)).next().value,E=function(){return F.data().style||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED"},h=function(){return E()==="ACCORDION_VIEW_MODEL_STYLE_MINI"},d=_.U(_.g$(!0,void 0,"nJGZI")),V=d.next().value,R=d.next().value,M=function(){return h()&&V()},g=function(){return{type:"tonal",
style:"mono",state:"active",size:"XS",iconPosition:"icon-only",onTap:function(){R(!V())}}},t=_.tb(function(){W().onTitleTap&&_.fK(W().onTitleTap||{})});
d={};return _.z("yt-accordion-view-model",{class:_.ec("ytAccordionViewModelHost",(d.ytAccordionViewModelMinimized=function(){return M()},d)),
"data-target-id":function(){return F.data().targetId||""}},_.z(_.v,{cond:function(){return h()||!!W().title},
then:function(){return _.z("div",{class:"ytAccordionViewModelHeader"},_.z("div",{class:"ytAccordionViewModelTitleSection"},_.z("div",{class:"ytAccordionViewModelTitleWrapper"},_.z(_.v,{cond:function(){return!!F.data().headerIcon},
then:function(){return _.z(_.I3,{className:"ytAccordionViewModelHeaderIcon",icon:function(){var C;return(C=F.data().headerIcon)==null?void 0:C.iconType}})}}),_.z("div",{class:"ytAccordionViewModelTitle",
"on:click":t},_.z(_.Ab,{className:"ytAccordionViewModelTitleText",text:function(){return W().title}})))),_.z("div",{class:"ytAccordionViewModelButtonSection"},_.z(_.v,{cond:h,
then:function(){return _.z(Vg,{data:g,iconName:function(){return M()?"chevron_down":"chevron_collapse"}})}})))}}),_.z("div",{class:"ytAccordionViewModelContent"},_.z(_.a6,{data:function(){return W().contents}},{accordionItemViewModel:function(C){return _.z(g1_,{data:C.data,
className:"ytAccordionViewModelRow",accordionStyle:E,hideIfNotExpanded:M,onCollapse:function(){return h()?(R(!0),!1):!0}})}})),_.z("div",null,_.z(_.v,{cond:function(){return!h()},
then:function(){return _.z(_.Ab,{text:function(){return W().disclaimerFooter},
className:"ytAccordionViewModelDisclaimer"})}})))},"Qc");_.pK(_.QwU,"yt-accordion-view-model",{props:{data:_.TS}});_.pK(_.GK(function(F){var W,E=(W=_.WZ().resolve(_.Fd(_.nK)))==null?void 0:W(),h=_.U(_.g$(!1,void 0,"XM2Sxc"));W=h.next().value;var d=h.next().value;h=_.U(_.g$(!0,void 0,"Jgzg2d"));var V=h.next().value,R=h.next().value,M=_.uf(),g=function(A){d(!0);A={learningJourneyFormData:{query:A}};_.fK(F.data().searchEndpoint||{},{form:{formData:A}});return!1},t=_.tb(function(A){A.target.closest("button-view-model")&&d(!0)});
h=_.tb(function(){R(M.value.value.length===0)});
var C=_.tb(function(A){if(A.key==="Enter"&&!A.shiftKey&&!V()){var X=A.target;A.preventDefault();g(X.value)}}),B={},I={},x={};
return _.z("yt-learning-journey-zero-state",{class:"ytLearningJourneyZeroStateHost"},_.z("div",{class:"ytLearningJourneyZeroStateLearningIconContainer"},_.z(_.T4,{data:function(){return F.data().learningIcon},
className:"ytLearningJourneyZeroStateLearningIcon",alt:"Learning icon",contentMode:"CONTENT_MODE_CENTER"})),_.z("div",{class:"ytLearningJourneyZeroStateSearchContainer"},_.z("div",{class:"ytLearningJourneyZeroStateSearchBarContainer"},_.z("div",{class:_.ec("ytLearningJourneyZeroStateSearchBar",(B.ytLearningJourneyZeroStateSearchBarDark=E,B))},_.z("textarea",{class:_.ec("ytLearningJourneyZeroStateTextInput",(I.ytLearningJourneyZeroStateTextInputDark=E,I)),el:M,"on:keyup":h,"on:keydown":C,placeholder:"What do you want to learn?",
rows:1})),_.z("div",{class:_.ec("ytLearningJourneyZeroStateSearchButtonContainer",(x.ytLearningJourneyZeroStateSearchButtonContainerDark=E,x))},_.z(_.rk,{data:function(){return _.D(F.data().searchButton,_.fx)},
className:"search-button",onClick:function(){return g(M.value.value)},
buttonOverrides:function(){return{disabled:V(),style:E?"mono-inverse":"mono",size:"XL"}}}))),_.z(_.v,{cond:function(){return!!F.data().errorBanner},
then:function(){return _.z("div",{class:"ytLearningJourneyZeroStateErrorBannerContainer"},_.z(_.a6,{data:function(){return F.data().errorBanner}},{alertBannerViewModel:_.y0p}))}})),_.z(_.v,{cond:W,
then:function(){return _.z("div",{class:"ytLearningJourneyZeroStateLoaderContainer"},_.z(_.a6,{data:function(){return F.data().loader}},{learningJourneyLoaderViewModel:function(A){return _.z(_.RGH,{data:A.data})}}))},
else:function(){return _.z("div",null,_.z(_.v,{cond:function(){return!!F.data().learningJourneyShelf},
then:function(){return _.z("div",{class:"ytLearningJourneyZeroStatePlaylistShelfContainer"},_.z("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return F.data().learningJourneySectionTitle}),_.z(_.a6,{data:function(){return F.data().learningJourneyShelf}},{horizontalShelfViewModel:_.X5}))}}),_.z("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySection"},_.z("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return F.data().suggestedJourneySectionTitle}),
_.z("div",{"on:click":t},_.z(_.a6,{data:function(){return F.data().suggestedJourneyActions}},{flexibleActionsViewModel:function(A){return _.z(Zj,{data:A.data,
layout:1})}}))))}}))},"Rc"),"yt-learning-journey-zero-state",{props:{data:_.TS}});var zGO=_.GK(function(F){var W=F.data;return _.z("ytvl-live-leaderboard-item-action-content-view-model",{class:_.ec("ytvlLiveLeaderboardItemActionContentViewModelHost")},_.z(_.Ab,{text:function(){var E;return(E=W())==null?void 0:E.actionDescription},
className:"ytvlLiveLeaderboardItemActionContentViewModelActionDescription"}),_.z(_.a6,{data:function(){return W().actionButton}},{buttonViewModel:function(E){return _.z(_.rk,{className:"ytvlLiveLeaderboardItemActionContentViewModelActionButton",
data:E.data})}}))},"Sc");var tL_=_.GK(function(F){var W=F.data;return _.z("ytvl-live-leaderboard-item-channel-content-view-model",{class:_.ec("ytvlLiveLeaderboardItemChannelContentViewModelHost")},_.z(_.Ab,{className:"ytvlLiveLeaderboardItemChannelContentViewModelChannelName",text:function(){var E;return(E=W())==null?void 0:E.displayName},
ellipsisTruncate:!0}),_.z(_.a6,{data:function(){return W().badge}},{buttonViewModel:function(E){return _.z(_.rk,{className:"ytvlLiveLeaderboardItemChannelContentViewModelBadge",
data:E.data})}}))},"Tc");_.pK(_.GK(function(F){var W=F.data;return _.z("ytvl-live-leaderboard-item-view-model",{class:"ytvlLiveLeaderboardItemViewModelHost"},_.z("div",{class:"ytvlLiveLeaderboardItemViewModelRankNumberContainer"},_.z(_.Ab,{className:"ytvlLiveLeaderboardItemViewModelRankNumber",text:function(){var E;return(E=W())==null?void 0:E.rank}})),_.z("div",{class:"ytvlLiveLeaderboardItemViewModelAvatar"},_.z(_.a6,{data:function(){return W().avatar}},{avatarViewModel:_.fI})),_.z("div",{class:"ytvlLiveLeaderboardItemViewModelContent"},
_.z(_.a6,{data:function(){return W().content}},{liveLeaderboardItemChannelContentViewModel:tL_,
liveLeaderboardItemActionContentViewModel:zGO})),_.z(_.Ab,{className:"ytvlLiveLeaderboardItemViewModelPoints",text:function(){var E;return(E=W())==null?void 0:E.points}}))},"Uc"),"ytvl-live-leaderboard-item-view-model",{props:{data:_.TS}});_.pK(_.GK(function(F){var W=F.data;return _.z("ytvl-live-viewer-leaderboard-item-view-model",{class:"ytvlLiveViewerLeaderboardItemViewModelHost"},_.z(_.Ab,{className:"ytvlLiveViewerLeaderboardItemViewModelRankNumber",text:function(){var E,h;return(E=W())==null?void 0:(h=E.ranking)==null?void 0:h.rank}}),_.z("div",{class:"ytvlLiveViewerLeaderboardItemViewModelAvatar"},_.z(_.a6,{data:function(){return W().avatar}},{avatarViewModel:_.fI})),_.z(_.Ab,{className:"ytvlLiveViewerLeaderboardItemViewModelChannelContent",
text:function(){var E,h;return(E=W())==null?void 0:(h=E.channelContent)==null?void 0:h.channelName}}),_.z(_.Ab,{className:"ytvlLiveViewerLeaderboardItemViewModelPoints",
text:function(){var E;return(E=W())==null?void 0:E.points}}))},"Vc"),"ytvl-live-viewer-leaderboard-item-view-model",{props:{data:_.TS}});var C8z=_.GK(function(F){F=_.o4(F,{wrapper:!1}).wrapper;return _.z(_.v,{cond:F,then:function(){return _.z("ytw-spinner",{class:"ytWebSpinnerWrapper"},_.z("div",{class:"ytWebSpinnerSpinner"}))},
else:function(){return _.z("ytw-spinner",{class:"ytWebSpinnerSpinner"})}})},"Wc");
C8z.idomCompat=!0;var BPX=["QR_CODE_RENDERER_STYLE_WEB_SHORTS_ENGAGEMENT_PANEL"],v1X=_.GK(function(F){var W=F.data;var E=_.uf(),h=_.vX(function(){return W().command},void 0,"CGDtVe");
_.q6(function(){h()&&_.Pe(h(),{form:{element:E.value}})});
return _.z("div",{el:E,class:"YtQrCodeRendererHostContainer"},_.z(_.v,{cond:function(){return W().qrCodeImage},
then:function(d){return _.z(_.T4,{data:d,alt:"",className:"YtQrCodeRendererHostQrImage",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})},
else:function(){return _.z(_.v,{cond:function(){return W().spinner},
then:function(){return _.z(C8z,null)}})}}),_.z(_.v,{cond:function(){return W().label},
then:function(d){return _.z(_.Ab,{text:d,className:"YtQrCodeRendererHostLabel"})}}),_.z(_.v,{cond:function(){return W().labels},
then:function(d){return _.z("div",{class:"YtQrCodeRendererHostLabels"},_.z(_.xF,{each:d},function(V){return _.z(_.Ab,{text:V})}))}}))},"Yc");_.pK(_.GK(function(F){var W=F.data;var E=_.vX(function(){return W().qrEntityKey},void 0,"joYCxd"),h=_.vX(function(){return W().deleteEntityOnDismiss},void 0,"x3yAde"),d=_.vX(function(){return W().command},void 0,"dJe1Re"),V=_.D1(nDo,E);
F=_.vX(function(){return W().style&&BPX.includes(W().style)},void 0,"rGILzf");
var R=_.uf();_.ER(R,{visibilityCallback:function(M){M&&d()&&_.Pe(d())},
showOption:{calledOnce:!0,state:"visible"}});_.Xk(function(){_.$p(function(){h()&&E()&&_.ja().dispatch(_.AG("qrCodeEntity",E()))})});
return _.z("yt-qr-code-renderer",{class:"YtQrCodeRendererHost",el:R},_.z(_.v,{cond:F,then:function(){return _.z(_.v,{cond:V,then:function(M){return _.z(v1X,{data:M})}})}}))},"Xc"),"yt-qr-code-renderer",{props:{data:_.TS}});_.IFe=_.GK(function(F){var W=F.data;var E=F.topbarOffset;var h,d=((h=_.WZ().resolve(_.Fd(_.nK)))==null?void 0:h())||!1;return _.z("cinematic-container-view-model",{class:"ytCinematicContainerViewModelHost",style:function(){var V=W();var R,M,g=d?(R=V.config)==null?void 0:R.darkThemeBackgroundColor:(M=V.config)==null?void 0:M.lightThemeBackgroundColor;V=g?_.ZP(g):void 0;V="background-color: "+V+";";E!==void 0&&(V+="top: -"+E()+"px;");return V},
"aria-hidden":!0},_.z(_.v,{cond:function(){var V,R,M;return!!((V=W().backgroundImageConfig)==null?0:(R=V.image)==null?0:(M=R.sources)==null?0:M.length)},
then:function(){return _.z(_.T4,{data:function(){var V;return(V=W().backgroundImageConfig)==null?void 0:V.image},
className:"ytCinematicContainerViewModelBackgroundImage",alt:""})}}),_.z("div",{class:"ytCinematicContainerViewModelBackgroundGradient",
style:function(){return"background: "+GVw(d,W().gradientColorConfig)+";"}}))},"Zc");
_.IFe.idomCompat=!0;_.ht(YlY);var cKu=_.GK(function(F){var W=F.className;var E=F.data;var h=F.isOverlay;var d=F.maxLinesOverride;var V=F.useMediumText;F=_.uf();var R=function(){return E().alwaysShowTruncationText},M=function(){return E().truncationText},g=function(){return V!==void 0&&V()?"medium":"small"},t=function(){return h!==void 0&&h()?"overlay":"default"},C=function(){var X,P;
return(P=(X=_.D(E().rendererContext,_.m9))==null?void 0:X.label)!=null?P:""},B=_.U(_.g$(!1,void 0,"zp50e")),I=B.next().value,x=B.next().value;
_.Sb(F,function(){return E().rendererContext});
B=_.tb(function(){E().expandOnTap&&x(!I());return!1});
var A={};return _.z("yt-description-preview-view-model",{el:F,class:_.ec("yt-description-preview-view-model-wiz",W,(A["yt-description-preview-view-model-wiz--clickable"]=function(){var X;return!((X=_.D(E().rendererContext,px))==null||!X.onTap)},A["yt-description-preview-view-model-wiz--is-overlay"]=h,A)),
"on:click":B},_.z(_.v,{cond:function(){return E().description},
then:function(X){return _.z(_.v,{cond:I,then:function(){var P={};return _.z("div",{class:_.ec("yt-description-preview-view-model-wiz__description",(P["yt-description-preview-view-model-wiz__description--medium-text"]=V,P))},_.z(_.Ab,{text:X}))},
else:function(){return _.z(jUH,{text:X,alwaysShowTruncationText:R,truncationText:M,maxLines:function(){var P;return(P=d==null?void 0:d())!=null?P:E().maxLines},
textStyle:t,accessibilityLabel:C,textSize:g})}})}}))},"$c"),DN_=_.c("web_enable_sink_yt_description_preview_view_model")?cKu:_.Qt(YlY);
cKu.idomCompat=!0;var xNT=_.GK(function(F){var W=F.data;var E=F.isOverlay;return _.z("channel-info-view-model",{class:"ytwChannelInfoViewModelHost"},_.z("div",{class:"ytwChannelInfoViewModelHostChannelHeader"},_.z(_.a6,{data:function(){return W().header}},{sectionHeaderViewModel:function(h){return _.z(_.N7,{data:h.data,
isOverlay:E})}})),_.z("div",{class:"ytwChannelInfoViewModelHostChannelButtons"},_.z(_.a6,{data:function(){return W().channelInfoButtons}},{flexibleActionsViewModel:Zj})),_.z("div",{class:"ytwChannelInfoViewModelHostChannelDescription"},_.z(_.a6,{data:function(){return W().description}},{descriptionPreviewViewModel:function(h){return _.z(DN_,{data:h.data,
isOverlay:E})}})))},"ad");
xNT.idomCompat=!0;var kEa=_.GK(function(F){var W=F.data;var E={};return _.z("factoid-view-model",{class:_.ec("ytwFactoidViewModelHost",(E.ytwFactoidViewModelHostOverlay=F.isOverlay,E))},_.z(_.Ab,{text:function(){return W().value},
className:"ytwFactoidViewModelHostFactoidValue"}),_.z(_.Ab,{text:function(){return W().label},
className:"ytwFactoidViewModelHostFactoidLabel"}))},"bd");
kEa.idomCompat=!0;var AKc=_.GK(function(F){var W=F.data;var E=F.isOverlay;return _.z("factoids-row-view-model",{class:"ytwFactoidsRowViewModelHost"},_.z(_.a6,{data:function(){return W().factoids}},{factoidViewModel:function(h){return _.z(kEa,{data:h.data,
isOverlay:E})}}))},"cd");
AKc.idomCompat=!0;_.swU=_.GK(function(F){var W=F.data;var E=F.isOverlay;return _.z("course-metadata-view-model",{class:"ytwCourseMetadataViewModelHost"},_.z(_.a6,{data:function(){return W().items}},{channelInfoViewModel:function(h){return _.z("div",{class:"ytwCourseMetadataViewModelHostItem"},_.z(xNT,{data:h.data,
isOverlay:E}))},
coursePerksViewModel:function(h){return _.z("div",{class:"ytwCourseMetadataViewModelHostItem"},_.z(dNp,{data:h.data,isOverlay:E}))},
descriptionPreviewViewModel:function(h){return _.z("div",{class:"ytwCourseMetadataViewModelHostItem"},_.z(DN_,{data:h.data,isOverlay:E}))},
factoidsRowViewModel:function(h){return _.z("div",{class:"ytwCourseMetadataViewModelHostItem"},_.z(AKc,{data:h.data,isOverlay:E}))},
progressViewModel:function(h){return _.z("div",{class:"ytwCourseMetadataViewModelHostItem"},_.z(NPB,{data:h.data,isOverlay:E}))}}))},"dd");var Lte=_.GK(function(F){return _.z("yt-flexible-container",{class:"ytFlexibleContainerHost"},_.z(_.a6,{data:function(){return F.data().content}},{courseMetadataViewModel:function(W){return _.z(_.swU,{data:W.data,
isOverlay:F.isOverlay})}}))},"ed");var q1H=_.GK(function(F){var W=F.data;F=F.className;var E=_.uf(),h=function(){var V;return _.uJ((V=W())==null?void 0:V.rendererContext)},d={};
d=(d["dynamic-text-view-model-wiz"]=!0,d["dynamic-text-view-model-wiz--tappable"]=function(){return h()},d);
_.Sb(E,function(){var V;return(V=W())==null?void 0:V.rendererContext});
return _.z("yt-dynamic-text-view-model",{el:E,role:function(){return h()?"link":void 0},
tabindex:function(){return h()?0:void 0},
class:_.ec(F,d)},_.z("h1",{class:"dynamic-text-view-model-wiz__h1","aria-label":function(){var V,R,M;return(M=(R=_.D((V=W())==null?void 0:V.rendererContext,_.m9))==null?void 0:R.label)!=null?M:""}},_.z(_.Ab,{text:function(){return W().text},
userInput:!0})))},"fd");
q1H.idomCompat=!0;_.$NM=_.GK(function(F){var W=F.data;var E=F.isPositionRelative;var h=_.Sh(),d=_.uNR("(max-width: 527.9px)"),V=function(){var R,M;return(M=(R=W())==null?void 0:R.style)!=null?M:"IMAGE_BANNER_STYLE_FULL_BLEED"};
F={};F=(F["yt-image-banner-view-model-wiz"]=!0,F["yt-image-banner-view-model-wiz--inset"]=function(){return Slr(V())},F["yt-image-banner-view-model-wiz--position-absolute"]=function(){return _.XO(!0)&&!(E==null?0:E())},F["yt-image-banner-view-model-wiz--small-inset"]=function(){return Slr(V())&&d()},F["yt-image-banner-view-model-wiz--tappable"]=function(){var R;
return _.XO(h.value)&&_.uJ((R=W())==null?void 0:R.rendererContext)},F);
_.Sb(h,function(){var R;return(R=W())==null?void 0:R.rendererContext});
return _.z("yt-image-banner-view-model",{el:h,class:_.ec(F)},_.z(_.v,{cond:function(){var R;return(R=W())==null?void 0:R.image},
then:function(){return _.z(_.T4,{data:function(){return W().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}}),_.z(_.a6,{data:function(){var R;
return(R=W())==null?void 0:R.overlays}},{thumbnailHoverOverlayViewModel:g$X}))},"gd");
_.$NM.idomCompat=!0;var Zmp;Zmp=_.GK(function(F){var W=F.condition;var E=F.content;return _.z(_.v,{cond:W,then:function(){return _.z("div",{class:"page-header-view-model-wiz__scroll-container"},E())},
else:function(){return E()}})},"hd");
_.X8B=_.GK(function(F){var W=F.data;var E=F.noPadding;var h=F.enableBanner;var d=F.cinematicContainerTopbarOffset;var V=F.allowCinematicContainerOverflow;var R=F.displayAsSidebar;var M=F.displayAsPanel;var g=plw(),t=function(){return!!W().image||!!W().animatedImage},C=function(){return!!W().background},B=function(){return(R==null?0:R())||(M==null?0:M())?1:g()},I=function(){return B()===1},x=function(){return I()||B()===2},A=function(){return B()===4},X=function(){var Lb=W();
var jk=!!W().heroImage;var Jr=B(),nb=mto(W()),bo=R==null?void 0:R(),uo=!Lb.metadata,b_;if(b_=jk?_.D(Lb.heroImage,F8H):_.D(Lb.animatedImage||Lb.image,F8H)){Lb=b_.style;var BO=b_.layoutMode;b_=CQn(tNo(b_));if(jk)jk=wlr(Jr,Lb,BO,b_,bo);else b:if(uo)jk=Jr===1?{size:48}:{size:72};else switch(Jr){case 1:jk={size:72};break b;case 2:jk={size:120};break b;default:jk=nb<4?{size:120}:{size:160}}}else jk={size:0};return jk};
F={};F=_.ec((F["page-header-view-model-wiz"]=!0,F["page-header-view-model-wiz--no-padding"]=function(){return!(E==null||!E())},F["page-header-view-model-wiz--small-top-padding"]=function(){return I()&&!W().actions||B()===2&&!(t()||W().heroImage)},F["page-header-view-model-wiz--small-bottom-padding"]=function(){return x()&&!W().actions},F["page-header-view-model-wiz--cinematic-container-overflow-boundary"]=function(){return!(V==null?0:V())},F["page-header-view-model-wiz--display-as-sidebar"]=R,F["page-header-view-model-wiz--display-as-panel"]=
M,F));
var P={},b=_.ec((P["page-header-view-model-wiz__page-header-headline"]=!0,P["page-header-view-model-wiz__page-header-headline--page-header-headline-full-width-hero"]=function(){return X().allowFullWidth},P)),l=function(){return I()&&(!!W().heroImage||t())&&mto(W())>0},w=function(){return l()&&(M==null?void 0:M())};
P={};var G=_.ec((P["page-header-view-model-wiz__page-header-title"]=!0,P["page-header-view-model-wiz__page-header-title--page-header-title-large"]=function(){return!l()},P["page-header-view-model-wiz__page-header-title--page-header-title-medium"]=function(){return l()&&!w()},P["page-header-view-model-wiz__page-header-title--page-header-title-medium-force-small-layout"]=w,P["page-header-view-model-wiz__page-header-title--page-header-title-overlay"]=C,P));
P={};var hr=_.ec((P["page-header-view-model-wiz__page-header-headline-image"]=!0,P["page-header-view-model-wiz__page-header-headline-image--page-header-headline-image-hero"]=function(){return!!W().heroImage&&x()},P));
P={};var p=_.ec((P["page-header-view-model-wiz__page-header-banner-container"]=h,P["page-header-view-model-wiz__page-header-banner-container--full-bleed"]=function(){var Lb;return(h==null?void 0:h())&&((Lb=_.D(W().banner,_.EQu))==null?void 0:Lb.style)==="IMAGE_BANNER_STYLE_FULL_BLEED"},P));
P={};var UY=_.ec((P["page-header-view-model-wiz__page-header-content-metadata"]=!0,P["page-header-view-model-wiz__page-header-content-metadata--page-header-content-metadata-overlay"]=C,P));P={};var xW=_.ec((P["page-header-view-model-wiz__page-header-flexible-actions"]=!0,P["page-header-view-model-wiz__page-header-flexible-actions--page-header-flexible-actions-margin-top"]=function(){return!!W().metadata||x()},P["page-header-view-model-wiz__page-header-flexible-actions--page-header-flexible-actions-margin-bottom"]=
function(){return!x()},P));
P={};var qw=_.ec((P["page-header-view-model-wiz__page-header-attribution"]=!0,P["page-header-view-model-wiz__page-header-attribution--page-header-attribution-overlay"]=C,P));return _.z("yt-page-header-view-model",{class:F},_.z(_.v,{cond:C,then:function(){return _.z("div",{class:"page-header-view-model-wiz__page-header-background"},_.z(_.a6,{data:function(){return W().background}},{cinematicContainerViewModel:function(Lb){return _.z(_.IFe,{data:Lb.data,
topbarOffset:d})}}))}}),_.z(Zmp,{condition:function(){return!(R==null||!R())},
content:function(){return _.z("div",{class:"page-header-view-model-wiz__page-header-content"},_.z(_.v,{cond:function(){return(h==null?void 0:h())&&W().banner},
then:function(){return _.z("div",{class:p},_.z(_.a6,{data:function(){return W().banner}},{imageBannerViewModel:_.$NM}))}}),_.z("div",{class:b},_.z(_.v,{cond:t,
then:function(){return _.z(_.a6,{data:function(){var Lb;if(!(Lb=W().animatedImage)){Lb=W();if(t()){var jk=Lb=Object.assign({},Lb),Jr=B(),nb=mto(W()),bo=jk.image,uo=_.D(bo,W8c),b_=uo==null?void 0:uo.avatar,BO=_.D(b_,_.Kx);if(bo&&b_&&BO){switch(Jr){case 1:BO.avatarImageSize="AVATAR_SIZE_XL";break;case 2:BO.avatarImageSize="AVATAR_SIZE_XXL";break;default:nb<4?BO.avatarImageSize="AVATAR_SIZE_XXL":BO.avatarImageSize="AVATAR_SIZE_XXXL"}_.c("web_enable_sink_page_header_view_model")&&(_.LK(b_,_.Kx,Object.assign({},
BO)),uo.avatar=Object.assign({},b_),_.LK(bo,W8c,Object.assign({},uo)),jk.image=Object.assign({},bo))}}Lb=Lb.image}return Lb}},{contentPreviewImageViewModel:function(Lb){return _.z(_.mO,{data:Lb.data,
className:hr,imageSizeConfig:X})},
decoratedAvatarViewModel:function(Lb){return _.z(_.sc,{data:Lb.data,className:hr})}})}}),_.z(_.v,{cond:function(){return!!W().heroImage&&!(x()&&!X().allowFullWidth)},
then:function(){return _.z(_.a6,{data:function(){return W().heroImage}},{contentPreviewImageViewModel:function(Lb){return _.z(_.mO,{data:Lb.data,
className:hr,imageSizeConfig:X})}})}}),_.z("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.z(_.v,{cond:function(){return!!W().heroImage&&x()&&!X().allowFullWidth},
then:function(){return _.z("div",{class:"page-header-view-model-wiz__page-header-headline-image-hero-container"},_.z(_.a6,{data:function(){return W().heroImage}},{contentPreviewImageViewModel:function(Lb){return _.z(_.mO,{data:Lb.data,
className:hr,imageSizeConfig:X})}}))}}),_.z(_.a6,{data:function(){return W().title}},{dynamicTextViewModel:function(Lb){return _.z(q1H,{data:Lb.data,
className:G})}}),_.z(_.a6,{data:function(){return W().metadata}},{contentMetadataViewModel:function(Lb){return _.z(_.Zee,{data:Lb.data,
layout:function(){return I()?1:0},
className:UY,isOverlay:C,useMediumText:A})}}),_.z(_.v,{cond:function(){return W().description&&!I()},
then:function(){return _.z(_.a6,{data:function(){return W().description}},{descriptionPreviewViewModel:function(Lb){return _.z(DN_,{data:Lb.data,
className:"page-header-view-model-wiz__page-header-description",isOverlay:C,maxLinesOverride:function(){return I()?void 0:1},
useMediumText:A})}})}}),_.z(_.v,{cond:function(){return W().attribution&&!x()},
then:function(){return _.z(_.a6,{data:function(){return W().attribution}},{attributionViewModel:function(Lb){return _.z(Kp,{data:Lb.data,
className:qw,useMediumText:A})}})}}),_.z(_.v,{cond:function(){return W().actions&&!x()},
then:function(){return _.z(_.a6,{data:function(){return W().actions}},{flexibleActionsViewModel:function(Lb){return _.z(Zj,{data:Lb.data,
layout:function(){return K5k(B())},
className:xW})}})}}))),_.z("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.z(_.v,{cond:function(){return W().description&&I()},
then:function(){return _.z(_.a6,{data:function(){return W().description}},{descriptionPreviewViewModel:function(Lb){return _.z(DN_,{data:Lb.data,
className:"page-header-view-model-wiz__page-header-description",isOverlay:C,maxLinesOverride:function(){return I()?void 0:1},
useMediumText:A})}})}}),_.z(_.v,{cond:function(){return W().attribution&&x()},
then:function(){return _.z(_.a6,{data:function(){return W().attribution}},{attributionViewModel:function(Lb){return _.z(Kp,{data:Lb.data,
className:qw,useMediumText:A})}})}}),_.z(_.v,{cond:function(){return W().actions&&x()},
then:function(){return _.z(_.a6,{data:function(){return W().actions}},{flexibleActionsViewModel:function(Lb){return _.z(Zj,{data:Lb.data,
layout:function(){return K5k(B())},
className:xW})}})}})),_.z("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.z(_.a6,{data:function(){return W().bottomMetadataFlexibleContainer}},{flexibleContainer:function(Lb){return _.z(Lte,{data:Lb.data,
isOverlay:C})}})))}}))},"id");
_.X8B.idomCompat=!0;_.pK(_.GK(function(F){var W=_.U(_.g$(!1,void 0,"vVRl3b")),E=W.next().value,h=W.next().value;return _.z("yt-official-card-view-model",{class:_.ec("ytOfficialCardViewModelHost",F.className),style:_.vr({"background-color":function(){var d,V=pVr((d=F.data())==null?void 0:d.backgroundColor);return V?_.XC(V):void 0}})},_.z(_.a6,{data:function(){return F.data().header}},{pageHeaderViewModel:function(d){return _.z(_.X8B,{data:d.data,
noPadding:!0})}}),_.z("div",{class:"ytOfficialCardViewModelContents"},_.z(_.a6,{data:function(){return F.data().contents}},{horizontalShelfViewModel:_.X5})),_.z(_.v,{cond:E,
then:function(){return _.z("div",{class:"ytOfficialCardViewModelExpandedContent"},_.z(_.a6,{data:function(){return F.data().expandedContents}},{horizontalShelfViewModel:function(d){return _.z(_.X5,{data:d.data,
sizing:"MINI"})}}),_.z("div",{class:"ytOfficialCardViewModelCollapseButton"},_.z(_.a6,{data:function(){return F.data().collapseButton}},{buttonViewModel:function(d){return _.z(_.rk,{data:d.data,
onClick:function(){h(!E())}})}})))},
else:function(){return _.z("div",{class:"ytOfficialCardViewModelExpandButton"},_.z(_.a6,{data:function(){return F.data().expandButton}},{buttonViewModel:function(d){return _.z(_.rk,{data:d.data,
onClick:function(){h(!E())}})}}))}}))},"jd"),"yt-official-card-view-model",{props:{data:_.TS,
className:_.TS}});var Fur=_.XF({buttonViewModel:_.rk});_.ht(WuG);_.Nj(WuG,"ytw-search-friction-view-model",{propNames:["data"]});_.Hj=_.GK(function(F){var W=_.uf(),E,h=(E=_.WZ().resolve(_.Fd(_.nK)))==null?void 0:E();_.q6(function(){var d=W.value;var V=new $Uu,R=new Map(V.JSC$7206_sanitizerTable.globalAttributePolicies);R.set("style",{policyAction:4});V.JSC$7206_sanitizerTable=new $c(V.JSC$7206_sanitizerTable.allowedElements,V.JSC$7206_sanitizerTable.elementPolicies,V.JSC$7206_sanitizerTable.allowedGlobalAttributes,R,V.JSC$7206_sanitizerTable.globallyAllowedAttributePrefixes);var M=["data-time"];if(M===void 0)R=new Set(V.JSC$7206_sanitizerTable.globallyAllowedAttributePrefixes),
R.add("data-"),V.JSC$7206_sanitizerTable=new $c(V.JSC$7206_sanitizerTable.allowedElements,V.JSC$7206_sanitizerTable.elementPolicies,V.JSC$7206_sanitizerTable.allowedGlobalAttributes,V.JSC$7206_sanitizerTable.globalAttributePolicies,R);else{R=new Set(V.JSC$7206_sanitizerTable.allowedGlobalAttributes);M=_.U(M);for(var g=M.next();!g.done;g=M.next()){g=g.value;if(g.indexOf("data-")!==0)throw Error("qa`"+g);R.add(g)}V.JSC$7206_sanitizerTable=new $c(V.JSC$7206_sanitizerTable.allowedElements,V.JSC$7206_sanitizerTable.elementPolicies,
R,V.JSC$7206_sanitizerTable.globalAttributePolicies,V.JSC$7206_sanitizerTable.globallyAllowedAttributePrefixes)}R=new Set(V.JSC$7206_sanitizerTable.allowedGlobalAttributes);R.add("class");V.JSC$7206_sanitizerTable=new $c(V.JSC$7206_sanitizerTable.allowedElements,V.JSC$7206_sanitizerTable.elementPolicies,R,V.JSC$7206_sanitizerTable.globalAttributePolicies,V.JSC$7206_sanitizerTable.globallyAllowedAttributePrefixes);_.yK(d,_.kza(V.build(),hkW(F.text())));dso(W.value)});
E={};return _.z("div",null,_.z("markdown-div",{class:_.ec("ytwMarkdownDivHost",(E.ytwMarkdownDivDark=h,E.ytwMarkdownDivHostSmall=function(){var d;return((d=F.isSmallText)==null?void 0:d.call(F))||!1},E)),
el:W}))},"kd");
_.Hj.idomCompat=!0;var HmX=_.GK(function(F){var W=F.imageData;var E=_.TK(F.isInList,!1),h=function(){return E()?{contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL",alt:"",targetWidth:52,targetHeight:52,className:"ytwGenAiRichTextViewModelContentImage"}:{contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL",alt:"",targetWidth:80,targetHeight:80,className:"ytwGenAiRichTextViewModelContentImage"}};
return _.z("div",{class:"ytwGenAiRichTextViewModelImageContent"},_.z(_.v,{cond:function(){return W().image},
then:function(d){return _.z(_.T4,{data:d,alt:function(){return h().alt},
contentMode:function(){return h().contentMode},
targetWidth:function(){return h().targetWidth},
targetHeight:function(){return h().targetHeight},
className:function(){return h().className}})}}),_.z("div",{class:"ytwGenAiRichTextViewModelImageMetadata"},_.z("div",{class:_.ec("ytwGenAiRichTextViewModelImageTitle","ytwGenAiRichTextViewModelText")},_.z(_.Ab,{text:function(){return W().title}})),_.z(_.xF,{each:function(){var d;
return(d=W().description)!=null?d:[]}},function(d){return _.z("div",{class:"ytwGenAiRichTextViewModelImageDescription"},_.z(Pj,{content:d}))})))},"ld"),P8e=_.GK(function(F){var W=F.list;
var E=function(){var h;return(h=W().items)!=null?h:[]};
return _.z("div",{class:"ytwGenAiRichTextViewModelListContent"},_.z(_.v,{cond:function(){return W().title},
then:function(h){return _.z("div",{class:_.ec("ytwGenAiRichTextViewModelListTitle","ytwGenAiRichTextViewModelText")},_.z(_.Ab,{text:h}))}}),_.z(_.v,{cond:function(){return W().style==="GEN_AI_RICH_TEXT_LIST_STYLE_BULLET"},
then:function(){return _.z("ul",{class:"ytwGenAiRichTextViewModelBulletedList"},_.z(_.xF,{each:E},function(h){return _.z("li",{class:"ytwGenAiRichTextViewModelBulletedListItem"},_.z(Pj,{content:h,isInList:!0}))}))}}),_.z(_.v,{cond:function(){return W().style==="GEN_AI_RICH_TEXT_LIST_STYLE_NUMBERED"},
then:function(){return _.z("ol",{class:"ytwGenAiRichTextViewModelNumberedList"},_.z(_.xF,{each:E},function(h){return _.z("li",{class:"ytwGenAiRichTextViewModelNumberedListItem"},_.z(Pj,{content:h,isInList:!0}))}))}}),_.z(_.v,{cond:function(){return W().style==="GEN_AI_RICH_TEXT_LIST_STYLE_IMAGE"},
then:function(){return _.z("div",{class:"ytwGenAiRichTextViewModelImageList"},_.z(_.xF,{each:E},function(h){return _.z("div",{class:"ytwGenAiRichTextViewModelListItem"},_.z(Pj,{content:h,isInList:!0}))}))}}))},"md"),JKM=_.GK(function(F){var W=F.table;
return _.z("table",{class:"ytwGenAiRichTextViewModelTableContent"},_.z("thead",null,_.z("tr",null,_.z(_.xF,{each:function(){var E,h;return(h=(E=W().header)==null?void 0:E.cells)!=null?h:[]}},function(E){return _.z("th",{class:"ytwGenAiRichTextViewModelTableHeaderCell"},_.z(_.xF,{each:function(){return E.contents}},function(h){return _.z(Pj,{content:h})}))}))),_.z("tbody",null,_.z(_.xF,{each:function(){var E;
return(E=W().rows)!=null?E:[]}},function(E){return _.z("tr",null,_.z(_.xF,{each:function(){return E.cells}},function(h){return _.z("th",{class:"ytwGenAiRichTextViewModelTableCell"},_.z(_.xF,{each:function(){return h.contents}},function(d){return _.z(Pj,{content:d})}))}))})))},"nd"),Pj=_.GK(function(F){var W=F.content;
var E=_.TK(F.isInList,!1),h=function(){var d,V;return(V=(d=W().contentBlock)==null?void 0:d.contents)!=null?V:[]};
return _.z("div",{class:"ytwGenAiRichTextViewModelRichContent"},_.z(_.v,{cond:function(){return W().text},
then:function(d){return _.z(_.Ab,{className:"ytwGenAiRichTextViewModelText",text:d})}}),_.z(_.v,{cond:function(){return W().image},
then:function(d){return _.z(HmX,{imageData:d,isInList:E})}}),_.z(_.v,{cond:function(){return W().list},
then:function(d){return _.z(P8e,{list:d})}}),_.z(_.v,{cond:function(){return W().contentBlock},
then:function(){return _.z("div",{class:"ytwGenAiRichTextViewModelContentBlock"},_.z(_.xF,{each:h},function(d){return _.z(Pj,{content:d,isInList:!1})}))}}),_.z(_.v,{cond:function(){return W().table},
then:function(d){return _.z(JKM,{table:d})}}))},"od"),aFz=_.GK(function(F){var W={};
W=_.gY("ytwGenAiRichTextViewModelHost",(W.ytwGenAiRichTextViewModelGreenLinks=["green_track","underline"].includes(_.N0("search_overview_link_style")),W));return _.z("gen-ai-rich-text-view-model",{class:W},_.z(Pj,{content:function(){return F.data().content}}))},"pd");_.ht(NyS);_.ht(r9);_.fFU=_.GK(function(F){var W=F.data;var E=function(){var X;return((X=W().loadingUi)!=null?X:"OVERVIEW_ANSWER_LOADING_UI_DEFAULT").replace("OVERVIEW_ANSWER_LOADING_UI_","")},h=function(){return W().isLoading&&(E()==="UNSPECIFIED"||E()==="GHOST_CARD")},d=function(){return!W().isLoading},V=function(){return!!W().content&&!W().contents},R=function(){return!!W().contents},M=function(){return!!W().nextQueryButtons},g=function(){return W().isLoading&&E()==="INVISIBLE"},t=function(){var X,P;
return(P=(X=W().headerIcon)==null?void 0:X.iconType)!=null?P:""},C=function(){var X;
return(X=W().content)!=null?X:""},B=function(){return!!W().sourcesSection},I,x=!((I=_.WZ().resolve(_.Fd(_.nK)))==null||!I()),A=_.vX(function(){var X=[],P=W().contents;
if(P)for(var b=0;b<P.length;b++){var l=_.D(P&&P[b],CEu);l&&X.push(l)}return X},void 0,"ycU97e");
_.Xk(function(){W().isLoading||_.P5("so_re",void 0,"search_overview_answer")});
return _.z("ytd-overview-answer-view-model",{class:function(){var X={};X=(X.ytdOverviewAnswerViewModelHost=!0,X.ytdOverviewAnswerViewModelDarkBackground=x&&!g(),X.ytdOverviewAnswerViewModelLightBackground=!x&&!g(),X);return _.gY(X)}},_.z(_.v,{cond:function(){return!g()},
then:function(){return _.z(_.EG,null,_.z("h2",null,_.z("div",{class:"ytdOverviewAnswerViewModelHeader"},_.z(_.v,{cond:t,then:function(X){return _.z("div",{class:"ytdOverviewAnswerViewModelHeaderIcon"},_.z(_.I3,{icon:X}))}}),_.z("div",{class:"ytdOverviewAnswerViewModelHeaderText"},_.z("div",{class:"ytdOverviewAnswerViewModelHeaderTitle"},function(){return W().headerText}),_.z("div",{class:"ytdOverviewAnswerViewModelHeaderSubtext"},_.z(_.Ab,{text:function(){return W().headerSubtext}}))))),_.z(_.v,{cond:h,
then:function(){return NyS()}}),_.z(_.v,{cond:d,
then:function(){return _.z(_.EG,null,_.z(_.v,{cond:V,then:function(){return _.z("div",{class:"ytdOverviewAnswerViewModelText"},_.z(_.Hj,{text:C,isSmallText:!0}))}}),_.z(_.v,{cond:R,
then:function(){return _.z("div",{class:"ytdOverviewAnswerViewModelRichText"},_.z(_.xF,{each:A},function(X){return _.z(aFz,{data:X})}))}}),_.z(_.v,{cond:M,
then:function(){return _.z("div",{class:"ytdOverviewAnswerViewModelNextQueryButtons"},_.z(_.a6,{data:function(){return W().nextQueryButtons}},{buttonViewModel:function(X){return _.z(_.rk,{data:X.data,
className:"ytdOverviewAnswerViewModelNextQueryButton"})},
horizontalShelfViewModel:_.X5}))}}),_.z("div",{class:"ytdOverviewAnswerViewModelSecondaryHeader"},_.z("div",{class:"ytdOverviewAnswerViewModelFeedbackButtons"},_.z(_.v,{cond:function(){return!!_.D(W().likeButtonViewModel,nx)&&!!_.D(W().dislikeButtonViewModel,ya)},
then:function(){return _.z("div",{class:"ytdOverviewAnswerViewModelBottomButtonsContainer"},_.z(_.H3,{data:function(){return _.D(W().likeButtonViewModel,nx)},
disableIconAnimation:!0}),_.z(_.XJ,{data:function(){return _.D(W().dislikeButtonViewModel,ya)}}))}})),_.z(_.v,{cond:function(){var X;
return(X=W().sourcesSection)==null?void 0:X.headerText},
then:function(X){return _.z("div",{class:"ytdOverviewAnswerViewModelSourcesHeaderText"},_.z(_.Ab,{text:X}))}})),_.z(_.v,{cond:B,
then:function(){return _.z("div",{class:"ytdOverviewAnswerViewModelSources"},_.z(_.a6,{data:function(){var X;return(X=W().sourcesSection)==null?void 0:X.sourcesShelf}},{buttonViewModel:_.rk,
horizontalShelfViewModel:function(X){return _.z(_.X5,{data:X.data,includeMargin:!0,hasPeek:!0})}}))}}),_.z(_.v,{cond:function(){return W().disclaimerText},
then:function(){return _.z("div",{class:"ytdOverviewAnswerViewModelDisclaimer"},_.z(_.Ab,{text:function(){return W().disclaimerText},
linkInheritColor:!0}))}}))}}))}}))},"qd");var OmB=_.GK(function(F){var W=F.data;var E=F.active;var h=_.uf();_.q6(function(){var d,V,R,M=((d=_.WZ().resolve(_.Fd(_.nK)))==null?0:d())?(V=W())==null?void 0:V.darkThemeColorPalette:(R=W())==null?void 0:R.lightThemeColorPalette;M&&(M.additiveBackground&&h.value.style.setProperty("--timestamp-active-background-color",_.XC(M.additiveBackground)),M.textSecondary&&h.value.style.setProperty("--timestamp-active-color",_.ZP(M.textSecondary)))},"KHcbwb");
F={};return _.z("transcript-segment-view-model",{class:_.ec("ytwTranscriptSegmentViewModelHost",(F.ytwTranscriptSegmentViewModelHostActive=E,F.ytwTranscriptSegmentViewModelHostModern=_.c("enable_timeline_view_modern_transcript")||_.c("enable_timeline_view_modern_transcript_fe"),F)),el:h},_.z(_.v,{cond:function(){var d;return(d=W())==null?void 0:d.timestamp},
then:function(d){var V={};return _.z("div",{class:_.ec("ytwTranscriptSegmentViewModelTimestamp",(V.ytwTranscriptSegmentViewModelTimestampActive=E,V))},d)}}),_.z(_.Ab,{text:function(){var d,V,R;
return(R=(d=W())==null?void 0:d.attributedText)!=null?R:{content:(V=W())==null?void 0:V.simpleText}},
linkInheritColor:!0}))},"rd");var bmp=_.GK(function(F){var W=F.data;return _.z("div",{class:"yt-video-attributes-section-view-model__header"},_.z("h3",{class:"yt-video-attributes-section-view-model__title"},function(){return W().headerTitle}),_.z(_.v,{cond:function(){return W().headerSubtitle},
then:function(){return _.z("span",{class:"yt-video-attributes-section-view-model__subtitle"},function(){return W().headerSubtitle})}}))},"sd"),lFM=_.GK(function(F){function W(A){return Math.max(Math.min(A,0),t()-M())}
var E=F.data;var h=_.uf(),d=_.uf();F=_.U(_.g$(0,void 0,"ucDlDf"));var V=F.next().value,R=F.next().value,M=V;F=_.U(_.g$(0,void 0,"lHzSub"));V=F.next().value;var g=F.next().value,t=V;F=_.U(_.g$(0,void 0,"Q8fDIe"));var C=F.next().value,B=F.next().value;_.Xk(function(){var A=function(){R(d.value.scrollWidth);g(h.value.clientWidth)};
A();if(window.ResizeObserver){var X=new ResizeObserver(A);X.observe(h.value);_.$p(function(){X.disconnect()})}});
var I=function(){B(W(C()+t()))},x=function(){B(W(C()-t()))};
return _.z("yt-video-attributes-section-view-model",null,_.z("div",{class:"yt-video-attributes-section-view-model"},_.z(_.v,{cond:function(){return E().headerTitle},
then:function(){return _.z(bmp,{data:E})}}),_.z("div",{class:_.ec("yt-video-attributes-section-view-model__video-attributes","yt-video-attributes-section-view-model__scroll-container"),
el:h},_.z("div",{class:"yt-video-attributes-section-view-model__video-attributes-container",style:_.vr({transform:function(){var A=C();_.b0("HTML_DIR")==="rtl"&&(A*=-1);return"translateX("+A+"px)"}}),
el:d},_.z(_.a6,{data:function(){return E().videoAttributeViewModels}},{videoAttributeViewModel:ieU}))),_.z(_.a6,{data:function(){return E().footerButton}},{buttonViewModel:function(A){return _.z(_.rk,{data:A.data,
className:"yt-video-attributes-section-view-model__footer-button"})}}),_.z(_.v,{cond:function(){return C()<0&&E().previousButton},
then:function(){return _.z("div",{class:"yt-video-attributes-section-view-model__left-arrow"},_.z(_.a6,{data:function(){return E().previousButton}},{buttonViewModel:function(A){return _.z(_.rk,{data:A.data,
onClick:I})}}))}}),_.z(_.v,{cond:function(){return C()>t()-M()&&E().nextButton},
then:function(){return _.z("div",{class:"yt-video-attributes-section-view-model__right-arrow"},_.z(_.a6,{data:function(){return E().nextButton}},{buttonViewModel:function(A){return _.z(_.rk,{data:A.data,
onClick:x})}}))}})))},"td");
lFM.idomCompat=!0;var n1O=_.GK(function(F){var W=F.data;var E=F.active;var h={},d={};return _.z("timeline-item-view-model",{class:_.ec("ytwTimelineItemViewModelHost",(h.ytwTimelineItemViewModelHostChapterChild=F.chapterChild,h.ytwTimelineItemViewModelModern=_.c("enable_timeline_view_modern_transcript")||_.c("enable_timeline_view_modern_transcript_fe"),h))},_.z("div",{class:"ytwTimelineItemViewModelTimestampSection"},_.z("div",{class:_.ec("ytwTimelineItemViewModelTimestamp",(d.ytwTimelineItemViewModelTimestampActive=
E,d))},function(){return W().timestamp})),_.z("div",{class:"ytwTimelineItemViewModelContentItems"},_.z(_.a6,{data:function(){return W().contentItems}},{transcriptSegmentViewModel:function(V){return _.z(OmB,{data:V.data,
active:E})},
videoAttributesSectionViewModel:lFM})))},"ud");var yKi=_.GK(function(F){var W=F.data;F={};return _.z("timeline-chapter-view-model",{class:_.ec("ytwTimelineChapterViewModelHost")},_.z("div",{class:_.ec("ytwTimelineChapterViewModelTitle",(F.ytwTimelineChapterViewModelModern=_.c("enable_timeline_view_modern_transcript")||_.c("enable_timeline_view_modern_transcript_fe"),F))},function(){return W().title}),_.z(_.a6,{data:function(){return W().contents}},{timelineItemViewModel:function(E){return _.z(n1O,{data:E.data,
chapterChild:!0})},
videoAttributesSectionViewModel:function(E){return _.z(lFM,{data:E.data})}}))},"vd");var jwM=_.GK(function(F){var W=F.data;var E=_.uf(),h=_.D1(_.aLY,function(){var V;return(V=W().markersEngagementPanelSyncEntityKey)!=null?V:""}),d=function(){var V;
return((V=h())==null?void 0:V.activeItemIndex)===W().index};
F=_.tb(function(V){var R,M,g,t,C;return _.e(function(B){if(B.nextAddress==1)return V.stopPropagation(),_.XAr(_.YV(V),E.value,["A".toString(),"BUTTON".toString()])?B.return():(R=_.He(W().onTap))?_.Q(B,_.gk(),2):B.return();M=B.yieldResult;t=(g=_.D(R,_.GM))==null?void 0:g.startTimeSeconds;t===void 0||(C=M)!=null&&C.seekTo(t,!0);_.gG(B)})});
return _.z("macro-markers-panel-item-view-model",{class:_.ec("ytwMacroMarkersPanelItemViewModelHost",{"is-active":d}),el:E,"on:click":F,tabindex:0},_.z(_.a6,{data:function(){var V;return(V=W())==null?void 0:V.item}},{timelineChapterViewModel:function(V){return _.z(yKi,{data:V.data,
active:d})},
timelineItemViewModel:function(V){return _.z(n1O,{data:V.data,active:d})},
videoAttributeViewModel:ieU}))},"wd");
jwM.idomCompat=!0;_.pK(jwM,"macro-markers-panel-item-view-model",{props:{data:_.TS}});_.pK(lFM,"yt-video-attributes-section-view-model",{props:{data:_.TS}});var imc=_.GK(function(F){var W=function(){var E,h,d;return(d=(E=F.data().leadingLogoAccessibility)==null?void 0:(h=E.accessibilityData)==null?void 0:h.label)!=null?d:""};
return _.z("ytw-fantasy-section-header-view-model",{class:"ytwFantasySectionHeaderViewModelHost"},_.z(_.v,{cond:function(){return F.data().leadingLogo},
then:function(E){return _.z(_.T4,{className:"ytwFantasySectionHeaderViewModelLogo",data:E,alt:W})}}),_.z("div",{class:"ytwFantasySectionHeaderViewModelMetadata"},_.z(_.Ab,{className:"ytwFantasySectionHeaderViewModelTitle",
text:function(){return F.data().title}}),_.z(_.Ab,{className:"ytwFantasySectionHeaderViewModelSubtitle",
text:function(){return F.data().subtitle}})),_.z(_.a6,{data:function(){return F.data().trailingButton}},{buttonViewModel:function(E){return _.z(_.rk,{data:E.data,
className:"ytwFantasySectionHeaderViewModelTrailingButton"})}}))},"xd");var rKc=_.GK(function(F){var W={};W=_.ec("ytwFantasyTeamViewModelHost",(W.ytwFantasyTeamViewModelCompact=function(){var d;return!((d=F.compact)==null||!d.call(F))},W.ytwFantasyTeamViewModelUser=function(){return F.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_USER_TEAM"},W.ytwFantasyTeamViewModelOpponent=function(){return F.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_OPPONENT_USER_TEAM"},W));
var E=function(){var d,V,R;return(R=(d=F.data().teamLogoAccessibility)==null?void 0:(V=d.accessibilityData)==null?void 0:V.label)!=null?R:""},h=_.D1(O_I,function(){return F.data().teamEntityKey});
return _.z("ytw-fantasy-team-view-model",{class:W},_.z(_.v,{cond:function(){return F.data().teamLogo},
then:function(d){return _.z(_.T4,{className:"ytwFantasyTeamViewModelLogo",data:d,alt:E})}}),_.z("div",{class:"ytwFantasyTeamViewModelMetadata"},_.z("div",{class:"ytwFantasyTeamViewModelHeader"},_.z(_.Ab,{className:"ytwFantasyTeamViewModelScore",
text:function(){var d;return(d=h())==null?void 0:d.score}}),_.z(_.I3,{icon:function(){var d;
return(d=h())==null?void 0:d.projectedScoreTrendingIcon},
className:"ytwFantasyTeamViewModelProjectedScoreIcon",size:12,active:!0}),_.z(_.Ab,{className:"ytwFantasyTeamViewModelProjectedScore",text:function(){var d;return(d=h())==null?void 0:d.projectedScore}})),_.z(_.Ab,{className:"ytwFantasyTeamViewModelPrimaryText",
text:function(){return F.data().primaryText}}),_.z(_.Ab,{className:"ytwFantasyTeamViewModelSecondaryText",
text:function(){return F.data().secondaryText}}),_.z(_.Ab,{className:"ytwFantasyTeamViewModelTertiaryText",
text:function(){return F.data().tertiaryText}})),_.z(_.Ab,{className:"ytwFantasyTeamViewModelCompactScore",
text:function(){var d;return(d=h())==null?void 0:d.score}}))},"yd");_.pK(_.GK(function(F){return _.z("fantasy-league-summary-view-model",{class:"ytwFantasyLeagueSummaryViewModelHost"},_.z("div",{class:"ytwFantasyLeagueSummaryViewModelHeader"},_.z(_.a6,{data:function(){return F.data().summaryHeader}},{fantasySectionHeaderViewModel:imc})),_.z(_.a6,{data:function(){return F.data().userTeam}},{fantasyTeamViewModel:rKc}),_.z(_.a6,{data:function(){return F.data().opponentTeam}},{fantasyTeamViewModel:rKc}))},"zd"),"fantasy-league-summary-view-model",{props:{data:_.TS}});var TPH=_.GK(function(F){var W=_.o4(F,{shape:{},useCustomTabRenderable:!1}),E=W.shape;W=W.useCustomTabRenderable;var h=F.customTabRenderable,d=function(){return E().disabled},V=function(){return E().selected},R=function(){return E().title},M=function(){return E().icon},g=_.uf();
F=_.tb(function(B){var I;if(!d()&&((I=E().aTagConfig)==null?0:I.onclick))E().aTagConfig.onclick(B);return!1});
var t=_.tb(function(B){if(B.key==="Enter"||B.key==="ArrowUp"||B.key==="ArrowDown")B.preventDefault(),g.value.click();return!1}),C={};
return _.z("yt-tab-shape",{class:_.ec("yt-tab-shape-wiz",function(){return E().className},(C["yt-tab-shape-wiz__tab--last-tab"]=function(){return E().isLastTab},C["yt-tab-shape-wiz--host-disabled"]=d,C["yt-tab-shape-wiz--host-clickable"]=!h,C)),
role:h?void 0:"tab","aria-selected":V!=null?V:!1,"aria-disabled":d,tabindex:h?void 0:0,"on:click":F,"on:keydown":t,el:g,"tab-identifier":function(){return E().identifier},
"tab-title":R},_.z(_.v,{cond:W,then:function(){return h()},
else:function(){var B={},I={};return _.z(_.EG,null,_.z("div",{class:_.ec("yt-tab-shape-wiz__tab",(B["yt-tab-shape-wiz__tab--tab-selected"]=V,B))},_.z(_.v,{cond:M,then:function(x){return _.z(_.I3,{className:"yt-tab-shape-wiz__tab-icon",icon:function(){return x().iconType}})}}),R),_.z("div",{class:_.ec("yt-tab-shape-wiz__tab-bar",(I["yt-tab-shape-wiz__tab-bar--tab-bar-selected"]=V,I))}))}}))},"Ad");
TPH.idomCompat={callbacks:{customTabRenderable:!0}};_.GEB=_.GK(function(F){var W=F.shape;F=_.U(_.g$(48,void 0,"r9IBlb"));var E=F.next().value,h=F.next().value;F=_.U(_.g$(0,void 0,"Bd7rmd"));var d=F.next().value,V=F.next().value,R=function(){return W().tabs},M=_.uf(),g=function(){var t,C;
return(C=(t=R())==null?void 0:t.findIndex(function(B){return B.selected}))!=null?C:-1};
_.Xk(function(){var t=M.value.querySelectorAll("yt-tab-shape"),C=g()>-1?t[g()]:void 0;_.P0.addJob(function(){h((C==null?void 0:C.getBoundingClientRect().width)||0)},8,0)});
_.q6(function(){var t=g(),C=_.P0.addJob(function(){var B,I=((B=M.value)==null?void 0:B.querySelectorAll("yt-tab-shape"))||[],x;h(((x=t>-1?I[t]:void 0)==null?void 0:x.getBoundingClientRect().width)||0);for(x=B=0;x<t;x++)B+=I[x].offsetWidth+24;_.b0("HTML_DIR")==="rtl"&&(B=-B);V(B)},8,0);
_.$p(function(){_.P0.cancelJob(C)})});
F={};return _.z("yt-tab-group-shape",{class:_.ec("yt-tab-group-shape-wiz",(F["yt-tab-group-shape-wiz--overflow-hidden"]=function(){return W().isOverflowHidden},F)),
el:M},_.z(_.v,{cond:R,then:function(t){return _.z(_.EG,null,_.z("div",{class:"yt-tab-group-shape-wiz__tabs",role:"tablist"},_.z(_.xF,{each:t},function(C,B){return _.z(TPH,{shape:function(){return Object.assign({},C,{isLastTab:B()===t().length-1})},
customTabRenderable:C.customTabRenderable,useCustomTabRenderable:!!C.customTabRenderable})})),_.z(o1M,{width:E,
sliderOffset:d}))}}))},"Bd");
_.GEB.idomCompat=!0;var o1M=_.GK(function(F){var W=_.TK(F.sliderOffset,0),E=F.width;return _.z("div",{class:"yt-tab-group-shape-wiz__slider",style:_.vr({width:function(){return E()+"px"},
transform:function(){return"translateX("+W()+"px)"}})})},"Cd");var Y1H=_.GK(function(F){var W=function(){var V,R,M;return(M=(V=F.data().playerLogoAccessibility)==null?void 0:(R=V.accessibilityData)==null?void 0:R.label)!=null?M:""},E=_.D1(b_n,function(){return F.data().playerEntityKey}),h={};
h=_.ec("ytwFantasyPlayerViewModelHost",(h.ytwFantasyPlayerViewModelPlaying=function(){var V;return!((V=E())==null||!V.isPlayerPlaying)},h.ytwFantasyPlayerViewModelOnField=function(){var V;
return((V=E())==null?void 0:V.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_ON_FIELD"},h.ytwFantasyPlayerViewModelRedZone=function(){var V;
return((V=E())==null?void 0:V.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_RED_ZONE"},h));
var d=function(){var V,R,M,g=((V=_.WZ().resolve(_.Fd(_.nK)))==null?0:V())?(R=F.data().playerLogoBackgroundColor)==null?void 0:R.darkTheme:(M=F.data().playerLogoBackgroundColor)==null?void 0:M.lightTheme;return g===void 0?"":_.XC(g)};
return _.z("ytw-fantasy-player-view-model",{class:h},_.z(_.v,{cond:function(){return F.data().playerLogo},
then:function(V){return _.z("div",{class:"ytwFantasyPlayerViewModelLogo"},_.z("div",{class:"ytwFantasyPlayerViewModelLogoRing"},_.z(_.T4,{className:"ytwFantasyPlayerViewModelLogoImage",style$:_.vr({"background-color":d}),data:V,alt:W})),_.z("div",{class:"ytwFantasyPlayerViewModelInGameStatus"},_.z(_.I3,{icon:"FOOTBALL_FILLED",className:"ytwFantasyPlayerViewModelInGameStatusIcon"})))}}),_.z("div",{class:"ytwFantasyPlayerViewModelMetadata"},_.z("div",{class:"ytwFantasyPlayerViewModelHeader"},_.z(_.Ab,
{className:"ytwFantasyPlayerViewModelName",
text:function(){var V;return(V=F.data())==null?void 0:V.playerNameText}}),_.z(_.Ab,{className:"ytwFantasyPlayerViewModelDescription",
text:function(){var V;return(V=F.data())==null?void 0:V.playerDescriptionText}})),_.z("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.z(_.Ab,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var V;return(V=E())==null?void 0:V.gamePeriodText}}),_.z(_.Ab,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var V;return(V=F.data())==null?void 0:V.opponentTeamText}}),_.z(_.Ab,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var V;return(V=E())==null?void 0:V.gameStatusText}}),_.z(_.Ab,{className:_.ec("ytwFantasyPlayerViewModelSecondaryItem","ytwFantasyPlayerViewModelStatus"),
text:function(){var V;return(V=E())==null?void 0:V.playerStatusText}})),_.z("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.z(_.Ab,{text:function(){var V;
return(V=E())==null?void 0:V.playerStatsText}}))),_.z(_.Ab,{className:"ytwFantasyPlayerViewModelScore",
text:function(){var V;return(V=E())==null?void 0:V.fantasyScore}}))},"Dd");var w8i=_.GK(function(F){return _.z("ytw-fantasy-roster-view-model",{class:"ytwFantasyRosterViewModelHost"},_.z(_.v,{cond:function(){return F.data().players},
then:function(W){return _.z(_.a6,{data:W},{fantasyPlayerViewModel:Y1H})}}))},"Ed");var u$c=_.GK(function(F){var W=_.U(_.Br(function(){var d;return(d=F.data().selectedTabIdentifierKey)!=null?d:""})),E=W.next().value,h=W.next().value;
_.$F(function(){var d;(d=F.setSelectedTabSignal)==null||d.call(F,E)});
return _.z("yt-tabbed-view-model",{class:"ytTabbedViewModelHost"},_.z("div",{class:"ytTabbedViewModelTabGroup"},_.z(_.GEB,{shape:function(){var d=F.data(),V=[],R={tabs:V};if(!d.tabs)return R;d=_.U(d.tabs);for(var M=d.next(),g={};!M.done;g={tabViewModel:void 0},M=d.next())if(g.tabViewModel=_.D(M.value,ITT),g.tabViewModel){var t=M=void 0;V.push({aTagConfig:{onclick:function(C){return function(){var B;h((B=C.tabViewModel.tabIdentifier)!=null?B:"")}}(g)},
identifier:g.tabViewModel.tabIdentifier,selected:E()===g.tabViewModel.tabIdentifier,title:(t=(M=g.tabViewModel.title)==null?void 0:M.content)!=null?t:""})}return R}})),_.z(_.a6,{data:function(){var d,V=_.U((d=F.data().tabs)!=null?d:[]);
for(d=V.next();!d.done;d=V.next())if((d=_.D(d.value,ITT))&&d.tabIdentifier===E())return d.content}},{fantasyRosterViewModel:w8i}))},"Fd");_.pK(_.GK(function(F){var W=_.U(Vsn()),E=W.next().value,h=W.next().value;return _.z("ytw-fantasy-matchup-view-model",{class:"ytwFantasyMatchupViewModelHost"},_.z(_.Ab,{className:"ytwFantasyMatchupViewModelTitle",text:function(){return F.data().title}}),_.z(_.v,{cond:function(){return F.data().tabbedViewModel},
then:function(d){return _.z(_.a6,{data:d},{tabbedViewModel:function(V){return _.z(u$c,{data:V.data,setSelectedTabSignal:h})}})}}),_.z(_.v,{cond:function(){var d,V=(d=_.D(F.data().tabbedViewModel,c5O))==null?void 0:d.tabs;
d=_.D(V==null?void 0:V[0],ITT);V=_.D(V==null?void 0:V[1],ITT);var R=d==null?void 0:d.tabIdentifier;if(E()===R){var M,g;if(!((M=_.D(d==null?void 0:d.content,xoX))==null?0:(g=M.players)==null?0:g.length))return F.data().noUserTeamPlayersText}else{var t,C;if(!((t=_.D(V==null?void 0:V.content,xoX))==null?0:(C=t.players)==null?0:C.length))return F.data().noOpponentTeamPlayersText}},
then:function(d){return _.z(_.Ab,{className:"ytwFantasyMatchupViewModelNoPlayersMessage",text:d})}}))},"Gd"),"ytw-fantasy-matchup-view-model",{props:{data:_.TS}});_.pK(_.GK(function(F){return _.z("ytw-fantasy-weekly-matchup-summary-view-model",{class:"ytwFantasyWeeklyMatchupSummaryViewModelHost"},_.z(_.Ab,{className:"ytwFantasyWeeklyMatchupSummaryViewModelTitle",text:function(){return F.data().title}}),_.z(_.v,{cond:function(){return F.data().matchupTeamPairs},
then:function(W){return _.z(_.xF,{each:W,keyBy:"INDEX"},function(E){return _.z("div",{class:"ytwFantasyWeeklyMatchupSummaryViewModelPair"},_.z(_.a6,{data:function(){return[E().firstTeam,E().secondTeam]}},{fantasyTeamViewModel:function(h){return _.z(rKc,{data:h.data,
compact:!0})}}))})}}))},"Hd"),"ytw-fantasy-weekly-matchup-summary-view-model",{props:{data:_.TS}});_.pK(_.GK(function(F){var W=function(){var d,V,R;return(R=(d=F.data().userLogoAccessibility)==null?void 0:(V=d.accessibilityData)==null?void 0:V.label)!=null?R:""},E=function(){var d,V,R;
return(R=(d=F.data().opponentLogoAccessibility)==null?void 0:(V=d.accessibilityData)==null?void 0:V.label)!=null?R:""},h=_.D1(fLr,function(){return F.data().entityKey});
return _.z("fantasy-win-probability-view-model",{class:"ytwFantasyWinProbabilityViewModelHost"},_.z("div",{class:"ytwFantasyWinProbabilityViewModelTop"},_.z(_.v,{cond:function(){return F.data().userLogo},
then:function(d){return _.z(_.T4,{className:"ytwFantasyWinProbabilityViewModelLogo",data:d,alt:W})}}),_.z("h3",{class:"ytwFantasyWinProbabilityViewModelTitle"},_.z(_.Ab,{text:function(){return F.data().title}})),_.z(_.v,{cond:function(){return F.data().opponentLogo},
then:function(d){return _.z(_.T4,{className:"ytwFantasyWinProbabilityViewModelLogo",data:d,alt:E})}})),_.z("div",{class:"ytwFantasyWinProbabilityViewModelBottom"},_.z("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.z(_.Ab,{text:function(){var d;
return(d=h())==null?void 0:d.userWinNumberLabel}})),_.z("div",{class:"ytwFantasyWinProbabilityViewModelProbabilityBars"},_.z("div",{class:_.ec("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityUserBar"),
style:_.vr({flex:function(){var d,V;return(V=(d=h())==null?void 0:d.userWinNumber)!=null?V:50}})}),_.z("div",{class:_.ec("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityOpponentBar"),
style:_.vr({flex:function(){var d,V;return(V=(d=h())==null?void 0:d.opponentWinNumber)!=null?V:50}})})),_.z("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.z(_.Ab,{text:function(){var d;
return(d=h())==null?void 0:d.opponentWinNumberLabel}}))))},"Id"),"fantasy-win-probability-view-model",{props:{data:_.TS}});_.Hr("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");
var Je=function(){var F=_.n.apply(this,arguments)||this;F.darkerPanels=_.c("web_watch_darker_panels");F.commentsHidePanelButton=!1;F.isWatchGrid=!1;F.continuationShowButton=!1;F.isSearch=!1;F.isConstrainedList=!1;F.isWatch=!1;F.eligibleToSwitchToGrid=!1;F.epRestyle=!1;F.isCarouselInFeed=!0;F.topSpacingZero=!1;F.continuationIsInitialLoad=!0;F.enableSqueezebackPanels=_.c("web_shorts_enable_squeezeback_panels");F.enableAnchoredPanel=_.c("desktop_shorts_v2_anchored_panel");F.actionMap={"yt-item-section-continuation-action":"handleYtItemSectionContinuation",
"yt-item-section-replace-action":"handleYtItemSectionReplace"};F.nextContinuation={continuationType:"itemSectionContinuation",usePost:!0};return F};
_.k(Je,_.n);_.N=Je.prototype;_.N.updateLockupContainerTypes=function(F){if(this.eligibleToSwitchToGrid){var W;(W=Array.from(this.hostElement.querySelectorAll("#contents yt-lockup-view-model")))==null||W.forEach(function(E){E.containerType=F})}};
_.N.getItemsPath=function(){return"data.contents"};
_.N.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.N.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{commentsHeaderRenderer:{component:"ytd-comments-header-renderer",properties:{engagementPanel:"[[engagementPanel]]",hidePanelButton:"[[commentsHidePanelButton]]"}},sortFilterHeaderRenderer:{component:"ytd-sort-filter-header-renderer",properties:{isPlaylist:"[[isPlaylist]]",isClipList:"[[isClipList]]"}},itemSectionHeaderRenderer:"ytd-item-section-header-renderer",backstagePostThreadRenderer:"ytd-backstage-post-thread-renderer",
chipCloudRenderer:"yt-chip-cloud-renderer",feedFilterChipBarRenderer:"ytd-feed-filter-chip-bar-renderer",macroMarkersPanelItemViewModel:"macro-markers-panel-item-view-model",chipBarViewModel:{component:"chip-bar-view-model",noInjection:!0}}},shownItems:{id:"contents",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-item-section-renderer lockup",force16By9ThumbnailAspectRatio:!0},properties:{sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",thumbnailFixedWidth:"[[thumbnailWidth]]",
lockupExperiments:"[[lockupExperiments]]",containerType:"[[lockupContainerType]]"}},alertBannerViewModel:{component:"yt-alert-banner-view-model"},aboutChannelRenderer:"ytd-about-channel-renderer",activityItemRenderer:"yt-activity-item-renderer",adSlotRenderer:"ytd-ad-slot-renderer",backgroundPromoRenderer:"ytd-background-promo-renderer",backstagePostThreadRenderer:"ytd-backstage-post-thread-renderer",buttonRenderer:"ytd-button-renderer",carouselAdRenderer:"ytd-carousel-ad-renderer",cardItemContainerRenderer:{component:"yt-card-item-container-renderer",
properties:{compact:"[[engagementPanel]]"}},cardItemRenderer:"yt-card-item-renderer",carouselItemRenderer:{component:"ytd-carousel-item-renderer",params:{isCarouselInFeed:!0}},channelAboutFullMetadataRenderer:"ytd-channel-about-metadata-renderer",channelFeaturedContentRenderer:"ytd-channel-featured-content-renderer",channelRenderer:{component:"ytd-channel-renderer",properties:{compactStyle:"[[engagementPanel]]"}},channelSwitcherPageRenderer:"ytd-channel-switcher-page-renderer",channelVideoPlayerRenderer:"ytd-channel-video-player-renderer",
chipCloudRenderer:{component:"yt-chip-cloud-renderer",properties:{isSearch:"[[isSearch]]"}},chipsShelfViewModel:"chips-shelf-view-model",clarificationRenderer:"ytd-clarification-renderer",commentHistoryEntryRenderer:"ytd-comment-history-entry-renderer",commentThreadRenderer:{component:"ytd-comment-thread-renderer",properties:{engagementPanel:"[[engagementPanel]]"}},compactMovieRenderer:"ytd-compact-movie-renderer",compactCourseVideoRenderer:"ytd-compact-video-renderer",compactPlaylistRenderer:"ytd-compact-playlist-renderer",
compactPromotedItemRenderer:"ytd-compact-promoted-item-renderer",compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",compactTextPromoRenderer:"ytd-compact-text-promo-renderer",compactVideoRenderer:"ytd-compact-video-renderer",compactRadioRenderer:"ytd-compact-radio-renderer",connectedAppRenderer:"ytd-connected-app-renderer",counterfactualRenderer:"ytd-counterfactual-renderer",destinationShelfRenderer:"ytd-destination-shelf-renderer",didYouMeanRenderer:"yt-did-you-mean-renderer",displayAdRenderer:"ytd-display-ad-renderer",
emergencyOneboxRenderer:"ytd-emergency-onebox-renderer",eomSettingsDisclaimerRenderer:"ytd-eom-settings-disclaimer-renderer",exploratoryResultsRenderer:"ytd-exploratory-results-renderer",faqSectionRenderer:"yt-faq-section-renderer",fantasyLeagueSummaryViewModel:"fantasy-league-summary-view-model",fantasyMatchupViewModel:"ytw-fantasy-matchup-view-model",fantasyWeeklyMatchupSummaryViewModel:"ytw-fantasy-weekly-matchup-summary-view-model",fantasyWinProbabilityViewModel:"fantasy-win-probability-view-model",
feedbackElicitationSingleQuestionRenderer:"ytd-feedback-elicitation-single-question-renderer",feedEntryRenderer:"ytd-feed-entry-renderer",feedNudgeRenderer:"ytd-feed-nudge-renderer",gridRenderer:"ytd-grid-renderer",richGridRenderer:"ytd-rich-grid-renderer",handlesClaimingHeaderRenderer:"ytd-handles-claiming-header-renderer",handlesClaimingUpdateSocialRenderer:"ytd-handles-claiming-update-social-renderer",handlesClaimingVanityInfoRenderer:"ytd-handles-claiming-vanity-info-renderer",handlesClaimingVideoItemRenderer:"ytd-handles-claiming-video-item-renderer",
handlesClaimingTitleImagesSectionRenderer:"ytd-handles-claiming-title-images-section-renderer",handlesClaimingFaqSectionRenderer:"ytd-handles-claiming-faq-section-renderer",hashtagTileRenderer:"ytd-hashtag-tile-renderer",horizontalCardListRenderer:{component:"ytd-horizontal-card-list-renderer",properties:{isSearch:"[[isSearch]]"}},includingResultsForRenderer:"yt-including-results-for-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",inlineSurveyRenderer:"ytd-inline-survey-renderer",
labsEditRenderer:"ytd-labs-edit-renderer",labsHeaderRenderer:"ytd-labs-header-renderer",labsItemRenderer:"ytd-labs-item-renderer",liveChatHistoryEntryRenderer:"ytd-live-chat-history-entry-renderer",macroMarkersPanelItemViewModel:"macro-markers-panel-item-view-model",messageRenderer:{component:"ytd-message-renderer",properties:{panel:"[[engagementPanel]]"}},miniGameCardViewModel:{component:"ytd-mini-game-card-view-model",properties:{isSearch:"[[isSearch]]"}},movieRenderer:"ytd-movie-renderer",musicPassFeatureInfoRenderer:"yt-music-pass-feature-info-renderer",
newspaperRenderer:"ytd-newspaper-renderer",noResultsFoundShowingResultsForRenderer:"yt-no-results-found-showing-results-for-renderer",notificationRenderer:"ytd-notification-renderer",offerItemExpandedRenderer:"yt-offer-item-expanded-renderer",offerItemRenderer:"yt-offer-item-renderer",offerItemUpsellRenderer:"yt-offer-item-upsell-renderer",officialCardViewModel:{component:"yt-official-card-view-model",properties:{className:"[[is]]"}},playlistRenderer:{component:"ytd-playlist-renderer",properties:{isSearch:"[[isSearch]]"}},
pageIntroductionRenderer:"ytd-page-introduction-renderer",playlistShowMetadataRenderer:"ytd-playlist-show-metadata-renderer",playlistVideoListRenderer:"ytd-playlist-video-list-renderer",playlistVideoRenderer:"ytd-playlist-video-renderer",premiumBrowseFooterRenderer:"ytd-premium-browse-footer-renderer",productDetailsRenderer:"ytd-product-details-renderer",productListHeaderRenderer:"ytd-product-list-header-renderer",promotedSparklesTextSearchRenderer:"ytd-promoted-sparkles-text-search-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",
purchaseItemRenderer:"ytd-purchase-item-renderer",qrCodeRenderer:"yt-qr-code-renderer",radioRenderer:"ytd-radio-renderer",recognitionShelfRenderer:"ytd-recognition-shelf-renderer",redCancelSurveyRenderer:"ytd-red-cancel-survey-renderer",reelShelfRenderer:{component:"ytd-reel-shelf-renderer",properties:{isSearch:"[[isSearch]]",hideShelfHeader:"[[hideShortsShelfHeader]]"}},gridShelfViewModel:{component:"grid-shelf-view-model",properties:{shouldUseOwnContainerSize:"[[isSearch]]",layoutContainerWidth:"[[containerWidth]]",
className:"[[is]]"},params:{marginSettings:0}},richShelfRenderer:"ytd-rich-shelf-renderer",resultsWithoutQuotesRenderer:"yt-results-without-quotes-renderer",searchFrictionViewModel:"ytw-search-friction-view-model",searchNoResultsRenderer:"yt-search-no-results-renderer",searchPyvRenderer:"ytd-search-pyv-renderer",sectionGroupViewModel:"yt-section-group-view-model",sectionHeaderViewModel:"yt-section-header-view-model",settingsOptionsRenderer:"ytd-settings-options-renderer",shelfRenderer:{component:"ytd-shelf-renderer",
properties:{isSearch:"[[isSearch]]",isConstrainedList:"[[isConstrainedList]]"}},showingResultsForRenderer:"yt-showing-results-for-renderer",showRenderer:{component:"ytd-show-renderer",properties:{isSearch:"[[isSearch]]"}},simpleTextSectionRenderer:"ytd-simple-text-section-renderer",sponsorshipsAlertRenderer:"ytd-sponsorships-alert-renderer",statementBannerRenderer:"ytd-statement-banner-renderer",subscriptionProductHeaderRenderer:"yt-subscription-product-header-renderer",subscriptionProductRenderer:"yt-subscription-product-renderer",
subscriptionProductUpsellOfferRenderer:"yt-subscription-product-upsell-offer-renderer",toggleFormFieldRenderer:"yt-toggle-form-field-renderer",unlimitedManageSubscriptionPageRenderer:"yt-unlimited-manage-subscription-page-renderer",unlimitedPageFeatureInfoRenderer:"ytd-unlimited-page-feature-info-renderer",unlimitedPageHeaderRenderer:"yt-unlimited-page-header-renderer",unlimitedUserNotificationRenderer:"yt-unlimited-user-notification-renderer",videoRenderer:{component:"ytd-video-renderer",properties:{isSearch:"[[isSearch]]"}},
webAnswerRenderer:"ytd-web-answer-renderer",ypcOffersListRenderer:"yt-ypc-offers-list-renderer",redeemCodeRenderer:"ytd-redeem-code-renderer",primetimePromoRenderer:"ytd-primetime-promo-renderer",continuationItemRenderer:{component:"ytd-continuation-item-renderer",properties:{showButton:"[[continuationShowButton]]",isCommentsSection:"[[continuationIsCommentsSection]]",isInitialLoad:"[[continuationIsInitialLoad]]",engagementPanel:"[[engagementPanel]]"}},infoPanelContentRenderer:"ytd-info-panel-content-renderer",
errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer",ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer",listItemViewModel:"ytd-list-item-view-model",overviewAnswerViewModel:"ytd-overview-answer-view-model",coursePerksViewModel:"yt-course-perks-view-model",courseProgressViewModel:"yt-course-progress-view-model",courseRatingsViewModel:"yt-course-ratings-view-model",videoDescriptionHeaderRenderer:"ytd-video-description-header-renderer",videoDescriptionInfocardsSectionRenderer:"ytd-video-description-infocards-section-renderer",
expandableVideoDescriptionBodyRenderer:{component:"ytd-expandable-video-description-body-renderer",properties:{engagementPanel:"[[engagementPanel]]"}},videoAttributesSectionViewModel:"yt-video-attributes-section-view-model",videoAttributeViewModel:"yt-video-attribute-view-model",liveViewerLeaderboardItemViewModel:{component:"ytvl-live-viewer-leaderboard-item-view-model"},liveLeaderboardItemViewModel:{component:"ytvl-live-leaderboard-item-view-model"},accordionViewModel:{component:"yt-accordion-view-model"},
learningJourneyLoaderViewModel:{component:"yt-learning-journey-loader-view-model"},learningJourneyZeroStateViewModel:{component:"yt-learning-journey-zero-state"},learningJourneyQuizViewModel:{component:"learning-journey-quiz-view-model"},dividerViewModel:{component:"divider-view-model"}}},"data.continuations":{id:"continuations",mapping:{nextContinuationData:{component:"yt-next-continuation",properties:{showButton:"[[showButton]]",disablePrescanVisibility:"[[continuationDisablePrescanVisibility]]"}},
reloadContinuationData:{component:"yt-reload-continuation"}},renderPriority:_.c("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.c("kevlar_low_priority_continuation")}}};
_.N.created=function(){this.JSC$14404_cachedViewportHeight=_.b0("initialInnerHeight")||window.innerHeight};
_.N.commentsHidePanelButtonChanged=function(){if(this.isWatchGrid){var F=_.Z(this.hostElement).querySelector("ytd-comments-header-renderer");F&&(F.hidePanelButton=this.commentsHidePanelButton)}};
_.N.onRetrieveLocation=function(F,W){this.containsComments()&&(this.firstCommentsLoaded=W.hasComments=!0)};
_.N.containsComments=function(){return this.get("data.sectionIdentifier")==="comment-item-section"};
_.N.onLoadReloadContinuation=function(F,W){var E=this;F.stopPropagation();this.isReloading=!0;_.hF(this.hostElement,"yt-retrieve-location",{locationRetrieved:function(h){var d=_.WZ().resolve(_.Ag);h=W(h);d.postData(h).then(function(V){E.onReloadContinuationData(V)})}})};
_.N.onReloadContinuationData=function(F){if(F=this.get("response.continuationContents.itemSectionContinuation",F)||this.get("response.contents.itemSectionRenderer",F)||this.get("response.continuationContents.sectionListContinuation.contents.0.itemSectionRenderer",F)||this.get("response.continuationContents.relatedChipsContinuation.continuation.watchNextSecondaryResultsRenderer",F))this.set("data.contents",F.contents||F.results),F.header&&this.set("data.header",F.header),this.set("data.continuations",
F.continuations||[]);this.isReloading=!1};
_.N.computeContentsClass=function(F){return F?"reloading":""};
_.N.computeContainerWidth=function(){return this.hostElement.clientWidth};
_.N.computeSectionIdentifier=function(F){return F==null?void 0:F.sectionIdentifier};
_.N.computeFitContainer=function(F){return(F==null?void 0:F.sectionIdentifier)==="youchat-item-section"};
_.N.computeShowButton=function(){return!!this.firstCommentsLoaded&&this.containsComments()&&_.c("kevlar_disable_comments_auto_load")};
_.N.onServiceRequestCompleted=function(){this.continuationIsInitialLoad=!1};
_.N.computeIsReloading=function(){return this.isReloading||this.ytContinuationHandlerBehavior.continuationIsReloading};
_.N.computeHasDestinationShelfRenderer=function(F){var W,E;return!!(F==null?0:(W=F.contents)==null?0:(E=W[0])==null?0:E.destinationShelfRenderer)};
_.N.computeHasSectionGroupViewModel=function(F){var W,E;return!!(F==null?0:(W=F.contents)==null?0:(E=W[0])==null?0:E.sectionGroupViewModel)};
_.N.computeStaticCommentsHeader=function(F){return F&&this.containsComments()};
_.N.computeEpRestyle=function(F){return _.c("web_ep_restyling")&&F&&this.containsComments()};
_.N.computeIsContinuationCommentSection=function(F){return(F==null?void 0:F.targetId)==="shorts-engagement-panel-comments-section"||(F==null?void 0:F.targetId)==="comments-section"||(F==null?void 0:F.targetId)==="engagement-panel-comments-section"};
_.N.computeSuppressPaddingDisclaimer=function(){var F,W,E,h;return!!((F=this.data)==null?0:(W=F.contents)==null?0:(E=W[0])==null?0:(h=E.productListHeaderRenderer)==null?0:h.suppressPaddingDisclaimer)};
_.N.computeHeaderStyle=function(F){switch(F==null?void 0:F.headerStyle){case "ITEM_SECTION_HEADER_STYLE_STICKY":return"sticky-header";default:return""}};
_.N.dataChanged=function(){this.firstCommentsLoaded=!1};
_.N.observeDataContentsLength=function(){var F,W;((F=this.data)==null?0:(W=F.contents)==null?0:W.length)&&this.data.contents.length>1?this.continuationIsInitialLoad=!1:this.continuationIsInitialLoad=!0};
_.N.onYtDismissibleItemDismissedChange=function(F){this._setItemDismissed(F.type==="yt-dismissible-item-dismissed")};
_.N.triggerContinuations=function(){for(var F=_.Z(this.hostElement).querySelector("#continuations").children,W=0;W<F.length;W++)F[W].trigger()};
_.N.triggerInitialContinuations=function(){for(var F=_.Z(this.hostElement).querySelector("#continuations").children,W=0;W<F.length;W++)F[W].triggerIfNotPreviouslyTriggered()};
_.N.handleYtItemSectionContinuation=function(F,W){var E;W&&((E=this.data)==null?void 0:E.sectionIdentifier)!==W||(this.set("data.continuations",[F]),this.triggerContinuations())};
_.N.handleYtItemSectionReplace=function(F,W){var E;W&&((E=this.data)==null?void 0:E.sectionIdentifier)!==W||(this.set("data.contents",F),this.set("data.continuations",[]))};
_.N.computeUseHeightHack=function(F){return F&&!_.c("kevlar_disable_height_hack")};
_.N.computeTopSpacingZero=function(F){return F};
_.N.continuationShowButtonChanged=function(){var F=_.Z(this.hostElement).querySelector("ytd-continuation-item-renderer");F&&(F.showButton=this.continuationShowButton)};
_.N.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.yR("data-changed",this.data))};
_.Sn.Object.defineProperties(Je.prototype,{hideShortsShelfHeader:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.c("web_shorts_wn_shelf_header_tuning")}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":this.isWatch?"168px":"246px"}},
sizing:{configurable:!0,enumerable:!0,get:function(){return this.isWatch?"COMPACT":"STANDARD"}},
lockupContainerType:{configurable:!0,enumerable:!0,get:function(){return this.eligibleToSwitchToGrid?this.isGridViewEnabled?2:3:3}},
isPlaylist:{configurable:!0,enumerable:!0,get:function(){var F,W,E;return!!((F=this.data)==null?0:(W=F.contents)==null?0:(E=W[0])==null?0:E.playlistVideoListRenderer)}},
isClipList:{configurable:!0,enumerable:!0,get:function(){var F,W,E,h,d,V,R;return!!((F=this.data)==null?0:(W=F.contents)==null?0:(E=W[0])==null?0:(h=E.shelfRenderer)==null?0:(d=h.content)==null?0:(V=d.gridRenderer)==null?0:(R=V.targetId)==null?0:R.includes("browse-feedFEclips"))}},
isPlaylistVideoContainer:{configurable:!0,enumerable:!0,get:function(){var F,W,E;return!!((F=this.data)==null?0:(W=F.contents)==null?0:(E=W[0])==null?0:E.playlistVideoRenderer)}},
isSearchFrictionPage:{configurable:!0,enumerable:!0,get:function(){var F,W,E;return!!((F=this.data)==null?0:(W=F.contents)==null?0:(E=W[0])==null?0:E.searchFrictionViewModel)}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.N0("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.c("use_modern_typography_on_search")}}},
typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.c("use_modern_typography_on_search")}},
nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){if(this.isSearchDova)return Math.ceil((this.JSC$14404_cachedViewportHeight-130)/150)},
set:function(){}}});
Je.prototype.dataChangedForBinding=Je.prototype.dataChangedForBinding;Je.prototype.continuationShowButtonChanged=Je.prototype.continuationShowButtonChanged;Je.prototype.onYtDismissibleItemDismissedChange=Je.prototype.onYtDismissibleItemDismissedChange;Je.prototype.observeDataContentsLength=Je.prototype.observeDataContentsLength;Je.prototype.dataChanged=Je.prototype.dataChanged;Je.prototype.onServiceRequestCompleted=Je.prototype.onServiceRequestCompleted;Je.prototype.onLoadReloadContinuation=Je.prototype.onLoadReloadContinuation;
Je.prototype.onRetrieveLocation=Je.prototype.onRetrieveLocation;Je.prototype.commentsHidePanelButtonChanged=Je.prototype.commentsHidePanelButtonChanged;Je.prototype.updateLockupContainerTypes=Je.prototype.updateLockupContainerTypes;_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],Je.prototype,"ytActionHandlerBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Je.prototype,"ytRendererBehavior",void 0);
_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],Je.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.W3.YtLazyListBehavior),_.Y("design:type",Object)],Je.prototype,"ytLazyListBehavior",void 0);_.T([_.J(_.lr.YtNextContinuationBehavior),_.Y("design:type",Object)],Je.prototype,"ytNextContinuationBehavior",void 0);_.T([_.J(_.br),_.Y("design:type",Object)],Je.prototype,"ytContinuationHandlerBehavior",void 0);
_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],Je.prototype,"ytComponentBehavior",void 0);_.T([_.J(_.am),_.Y("design:type",Object)],Je.prototype,"ytdReduxBehavior",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],Je.prototype,"darkerPanels",void 0);_.T([_.O(),_.Y("design:type",Object)],Je.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Boolean)],Je.prototype,"engagementPanel",void 0);
_.T([_.O(),_.Y("design:type",Object)],Je.prototype,"commentsHidePanelButton",void 0);_.T([_.O(),_.Y("design:type",Object)],Je.prototype,"isWatchGrid",void 0);_.T([_.O(),_.Y("design:type",Object)],Je.prototype,"continuationShowButton",void 0);_.T([_.O({computed:"computeIsContinuationCommentSection(data)"}),_.Y("design:type",Boolean)],Je.prototype,"continuationIsCommentsSection",void 0);_.T([_.O({value:!0}),_.Y("design:type",Boolean)],Je.prototype,"autoFill",void 0);
_.T([_.O(),_.Y("design:type",Boolean)],Je.prototype,"continuationDisablePrescanVisibility",void 0);_.T([_.O(),_.Y("design:type",Boolean)],Je.prototype,"isReloading",void 0);_.T([_.O(),_.Y("design:type",Object)],Je.prototype,"isSearch",void 0);_.T([_.O(),_.Y("design:type",Object)],Je.prototype,"isConstrainedList",void 0);_.T([_.O(),_.Y("design:type",Object)],Je.prototype,"isWatch",void 0);_.T([_.O(),_.Y("design:type",Object)],Je.prototype,"eligibleToSwitchToGrid",void 0);
_.T([_.O({selector:_.o6}),_.Y("design:type",Object)],Je.prototype,"isGridViewEnabled",void 0);_.T([_.O({reflectToAttribute:!0,computed:"computeEpRestyle(engagementPanel, data.sectionIdentifier)"}),_.Y("design:type",Object)],Je.prototype,"epRestyle",void 0);_.T([_.a("isWatch"),_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Je.prototype,"hideShortsShelfHeader",null);
_.T([_.a("isSearch","isWatch"),_.Y("design:type",String),_.Y("design:paramtypes",[])],Je.prototype,"thumbnailWidth",null);_.T([_.a("isSearch","isWatch"),_.Y("design:type",String),_.Y("design:paramtypes",[])],Je.prototype,"sizing",null);_.T([_.a("isWatch","isGridViewEnabled","data"),_.O({reflectToAttribute:!0}),_.Y("design:type",Number),_.Y("design:paramtypes",[])],Je.prototype,"lockupContainerType",null);
_.T([_.ea("lockupContainerType","data"),_.Y("design:type",Function),_.Y("design:paramtypes",[Number]),_.Y("design:returntype")],Je.prototype,"updateLockupContainerTypes",null);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",String)],Je.prototype,"pageSubtype",void 0);_.T([_.O({computed:"computeContainerWidth()"}),_.Y("design:type",Number)],Je.prototype,"containerWidth",void 0);_.T([_.O(),_.a("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Je.prototype,"isPlaylist",null);
_.T([_.O(),_.a("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Je.prototype,"isClipList",null);_.T([_.O(),_.Y("design:type",Object)],Je.prototype,"isCarouselInFeed",void 0);_.T([_.O({reflectToAttribute:!0}),_.a("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Je.prototype,"isPlaylistVideoContainer",null);_.T([_.O({reflectToAttribute:!0}),_.a("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Je.prototype,"isSearchFrictionPage",null);
_.T([_.O({reflectToAttribute:!0,computed:"computeUseHeightHack(isSearch)"}),_.Y("design:type",Boolean)],Je.prototype,"useHeightHack",void 0);_.T([_.O({reflectToAttribute:!0,computed:"computeTopSpacingZero(isSearch)"}),_.Y("design:type",Object)],Je.prototype,"topSpacingZero",void 0);_.T([_.O({computed:"computeShowButton(data.sectionIdentifier, firstCommentsLoaded)"}),_.Y("design:type",Boolean)],Je.prototype,"showButton",void 0);
_.T([_.O(),_.Y("design:type",Boolean)],Je.prototype,"firstCommentsLoaded",void 0);_.T([_.O(),_.Y("design:type",Object)],Je.prototype,"continuationIsInitialLoad",void 0);_.T([_.O(),_.Y("design:type",Boolean)],Je.prototype,"isSearchDova",void 0);_.T([_.O({reflectToAttribute:!0,readOnly:!0}),_.Y("design:type",Boolean)],Je.prototype,"itemDismissed",void 0);_.T([_.O({reflectToAttribute:!0,computed:"computeSectionIdentifier(data)"}),_.Y("design:type",String)],Je.prototype,"sectionIdentifier",void 0);
_.T([_.O({reflectToAttribute:!0,computed:"computeFitContainer(data)"}),_.Y("design:type",String)],Je.prototype,"fitContainer",void 0);_.T([_.O({reflectToAttribute:!0,computed:"computeHasDestinationShelfRenderer(data)"}),_.Y("design:type",Boolean)],Je.prototype,"hasDestinationShelfRenderer",void 0);_.T([_.O({reflectToAttribute:!0,computed:"computeStaticCommentsHeader(engagementPanel, data.sectionIdentifier)"}),_.Y("design:type",Boolean)],Je.prototype,"staticCommentsHeader",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],Je.prototype,"enableSqueezebackPanels",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],Je.prototype,"enableAnchoredPanel",void 0);_.T([_.O({reflectToAttribute:!0,computed:"computeHasSectionGroupViewModel(data)"}),_.Y("design:type",Boolean)],Je.prototype,"hasSectionGroupViewModel",void 0);
_.T([_.O({reflectToAttribute:!0,computed:"computeSuppressPaddingDisclaimer(data)"}),_.Y("design:type",Boolean)],Je.prototype,"suppressDisclaimerSeparator",void 0);_.T([_.O({reflectToAttribute:!0,computed:"computeHeaderStyle(data)"}),_.Y("design:type",String)],Je.prototype,"headerStyle",void 0);_.T([_.a("isSearch"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Je.prototype,"lockupExperiments",null);
_.T([_.a("isSearch"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Je.prototype,"typographyBump",null);_.T([_.gQ("#header"),_.Y("design:type",HTMLElement)],Je.prototype,"header",void 0);_.T([_.ea("commentsHidePanelButton"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Je.prototype,"commentsHidePanelButtonChanged",null);
_.T([_.R4("yt-retrieve-location"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],Je.prototype,"onRetrieveLocation",null);_.T([_.R4("yt-load-reload-continuation"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Function]),_.Y("design:returntype")],Je.prototype,"onLoadReloadContinuation",null);
_.T([_.R4("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Je.prototype,"onServiceRequestCompleted",null);_.T([_.Cz("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Je.prototype,"dataChanged",null);_.T([_.Cz("data.contents.length"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Je.prototype,"observeDataContentsLength",null);
_.T([_.R4("yt-dismissible-item-dismissed"),_.R4("yt-dismissible-item-undismissed"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],Je.prototype,"onYtDismissibleItemDismissedChange",null);_.T([_.ea("continuationShowButton"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Je.prototype,"continuationShowButtonChanged",null);
_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Je.prototype,"dataChangedForBinding",null);Je=_.T([_.y({is:"ytd-item-section-renderer",disableElementRegistration:!0})],Je);
_.r(Je,"ytd-item-section-renderer",function(){if(tDu!==void 0)return tDu;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-item-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class$="[[computeContentsClass(isReloading)]] style-scope ytd-item-section-renderer"></div>\n<div id="spinner-container" class="style-scope ytd-item-section-renderer">\n  <tp-yt-paper-spinner-lite active="[[computeIsReloading(isReloading, continuationIsReloading)]]" class="style-scope ytd-item-section-renderer">\n  </tp-yt-paper-spinner-lite>\n</div>\n<div id="contents" class$="[[computeContentsClass(isReloading)]] style-scope ytd-item-section-renderer"></div>\n<div id="continuations" class="style-scope ytd-item-section-renderer"></div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return tDu=F},{mode:1});var S1u;var gee=_.Gr(_.CY("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var UsY={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.svg"};var p8e={},Msn=(p8e[0]={title:_.Wz(_.CY("DOWNLOADS",void 0,"Downloads")),iconType:"OFFLINE_DOWNLOAD",topButtonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.Wz(_.CY("DOWNLOADS_SETTINGS",void 0,"Downloads Settings")),loggingDirectives:{clientVeSpec:{uiType:21412}},navigationEndpoint:KY("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:51721,videoClientVE:42356},p8e[1]={title:_.Wz(_.CY("SMART_DOWNLOADS",void 0,"Smart downloads")),topButtonRenderer:{icon:{iconType:"SETTINGS"},
loggingDirectives:{clientVeSpec:{uiType:129732}},navigationEndpoint:KY("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:139572,videoClientVE:129218},p8e);_.Hr("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");var a1=function(){var F=_.n.apply(this,arguments)||this;F.allVideosCount=0;F.allPlaylistCount=0;F.shouldRenderDownloadsBanner=!1;F.hasOptedIntoSmartDownloads=!1;F.areAllSmartDownloadsDeleted=!1;F.smartDownloadsCompleted=!1;return F};
_.k(a1,_.n);a1.prototype.configureRendererStamper=function(){return{renderableData:{id:"contents",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}}}};
a1.prototype.attached=function(){this.downloadsToRenderChanged()};
a1.prototype.detached=function(){this.set("renderableData",{})};
a1.prototype.downloadsToRenderChanged=function(){var F=_.uC().getState().entities,W=_.qn(F),E=_.c("kevlar_playlist_dl_page_killswitch")?BZe(F):_.$r(F),h=_.gJS(F),d=_.Ds(W);F=_.Zs(F);this.set("renderableData",zkk(E,W,h,this.hasOptedIntoSmartDownloads,this.shouldRenderDownloadsBanner,this.areAllSmartDownloadsDeleted,d,F))};
a1.prototype.downloadsToRenderChanged=a1.prototype.downloadsToRenderChanged;_.T([_.J(_.am),_.Y("design:type",Object)],a1.prototype,"ytdReduxBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],a1.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],a1.prototype,"ytComponentBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],a1.prototype,"ytRendererstamperBehavior",void 0);
_.T([_.O(),_.Y("design:type",Object)],a1.prototype,"renderableData",void 0);_.T([_.O({selector:_.XPr}),_.Y("design:type",Object)],a1.prototype,"allVideosCount",void 0);_.T([_.O({selector:wVG}),_.Y("design:type",Object)],a1.prototype,"allPlaylistCount",void 0);_.T([_.O({selector:_.bik}),_.Y("design:type",Object)],a1.prototype,"shouldRenderDownloadsBanner",void 0);_.T([_.O({selector:_.lIR}),_.Y("design:type",Object)],a1.prototype,"hasOptedIntoSmartDownloads",void 0);
_.T([_.O({selector:_.nJr}),_.Y("design:type",Object)],a1.prototype,"areAllSmartDownloadsDeleted",void 0);_.T([_.O({selector:y7r}),_.Y("design:type",Object)],a1.prototype,"smartDownloadsCompleted",void 0);_.T([_.Cz("allVideosCount","shouldRenderDownloadsBanner","hasOptedIntoSmartDownloads","areAllSmartDownloadsDeleted","smartDownloadsCompleted","allPlaylistCount"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],a1.prototype,"downloadsToRenderChanged",null);
a1=_.T([_.y({is:"ytd-offline-item-section-renderer",disableElementRegistration:!0})],a1);
_.r(a1,"ytd-offline-item-section-renderer",function(){if(S1u!==void 0)return S1u;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offline-item-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-offline-item-section-renderer"></div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return S1u=F},
{mode:1});var mNc;var Kt_;var fR=function(){return _.n.apply(this,arguments)||this};
_.k(fR,_.n);
fR.prototype.onDataChanged=function(){if(this.JSC$14431_lastData){var F=this.getFilterClass(this.JSC$14431_lastData.status);F&&this.hostElement.classList.remove(F)}var W;(F=this.getFilterClass((W=this.data)==null?void 0:W.status))&&this.hostElement.classList.add(F);F==="selected"?_.Z(this.hostElement).querySelector("#endpoint").setAttribute("aria-selected","true"):_.Z(this.hostElement).querySelector("#endpoint").removeAttribute("aria-selected");F==="disabled"?_.Z(this.hostElement).querySelector("#endpoint").setAttribute("aria-disabled","true"):
_.Z(this.hostElement).querySelector("#endpoint").removeAttribute("aria-disabled");this.JSC$14431_lastData=this.data};
fR.prototype.getFilterClass=function(F){switch(F){case "FILTER_STATUS_SELECTED":return"selected";case "FILTER_STATUS_DISABLED":return"disabled"}};
fR.prototype.onDataChanged=fR.prototype.onDataChanged;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],fR.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],fR.prototype,"data",void 0);_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],fR.prototype,"onDataChanged",null);fR=_.T([_.y({is:"ytd-search-filter-renderer",disableElementRegistration:!0})],fR);
_.r(fR,"ytd-search-filter-renderer",function(){if(Kt_!==void 0)return Kt_;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-filter-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope ytd-search-filter-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n<div id="label" title="[[data.tooltip]]" class="style-scope ytd-search-filter-renderer">\n    <yt-formatted-string text="[[data.label]]" class="style-scope ytd-search-filter-renderer"></yt-formatted-string>\n    <yt-icon id="dismiss-x" hidden="[[!data.navigationEndpoint]]" icon="yt-icons:dismissal" class="style-scope ytd-search-filter-renderer">\n    </yt-icon>\n  </div>\n</a>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return Kt_=F},{mode:_.E6("kevlar_poly_si_batch_j075")?1:2});var Ox=function(){return _.n.apply(this,arguments)||this};
_.k(Ox,_.n);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Ox.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],Ox.prototype,"data",void 0);Ox=_.T([_.y({is:"ytd-search-filter-group-renderer",disableElementRegistration:!0})],Ox);
_.r(Ox,"ytd-search-filter-group-renderer",function(){if(mNc!==void 0)return mNc;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-filter-group-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h4 id="filter-group-name" class="style-scope ytd-search-filter-group-renderer">\n  <yt-formatted-string text="[[data.title]]" class="style-scope ytd-search-filter-group-renderer"></yt-formatted-string>\n</h4>\n<template is="dom-repeat" items="[[data.filters]]" class="style-scope ytd-search-filter-group-renderer">\n  <template is="dom-if" if="[[item.searchFilterRenderer]]" class="style-scope ytd-search-filter-group-renderer">\n    <ytd-search-filter-renderer data="[[item.searchFilterRenderer]]" class="style-scope ytd-search-filter-group-renderer">\n    </ytd-search-filter-renderer>\n  </template>\n</template>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return mNc=F},{mode:_.E6("kevlar_poly_si_batch_j075")?1:2});var Fau;var bT=function(){return _.n.apply(this,arguments)||this};
_.k(bT,_.n);bT.prototype.toggleFilters=function(){this.renderCollapsibleMenu||(this.renderCollapsibleMenu=!0,_.vD());this.isCollapsed=!this.isCollapsed};
bT.prototype.navigateToAboutTheseResultsPage=function(){var F=Bp("https://www.youtube.com/howyoutubeworks/product-features/search/");F?_.Jy(window,F,"_blank"):_.nW(Error("Qh"))};
bT.prototype.dataChanged=function(){this.isCollapsed=!0};
bT.prototype.computeShowBottomBorder=function(){var F,W,E;return!!((F=this.data)==null?0:(W=F.button)==null?0:W.toggleButtonRenderer)||!((E=this.data)==null||!E.aboutTheseResultsButton)};
bT.prototype.dataChanged=bT.prototype.dataChanged;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],bT.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],bT.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0,computed:"computeShowBottomBorder(data)"}),_.Y("design:type",Boolean)],bT.prototype,"showBottomBorder",void 0);_.T([_.O(),_.Y("design:type",Boolean)],bT.prototype,"renderCollapsibleMenu",void 0);
_.T([_.O(),_.Y("design:type",Boolean)],bT.prototype,"isCollapsed",void 0);_.T([_.Cz("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],bT.prototype,"dataChanged",null);bT=_.T([_.y({is:"ytd-search-sub-menu-renderer",disableElementRegistration:!0})],bT);
_.r(bT,"ytd-search-sub-menu-renderer",function(){if(Fau!==void 0)return Fau;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-sub-menu-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="filter-menu" class="style-scope ytd-search-sub-menu-renderer">\n  <div id="container" class="style-scope ytd-search-sub-menu-renderer">\n    <ytd-toggle-button-renderer align-by-text="" data="[[data.button.toggleButtonRenderer]]" on-click="toggleFilters" class="style-scope ytd-search-sub-menu-renderer">\n    </ytd-toggle-button-renderer>\n    <template is="dom-if" if="[[data.aboutTheseResultsButton]]" class="style-scope ytd-search-sub-menu-renderer">\n      <ytd-button-renderer align-by-text="" data="[[data.aboutTheseResultsButton.buttonRenderer]]" on-click="navigateToAboutTheseResultsPage" class="style-scope ytd-search-sub-menu-renderer">\n      </ytd-button-renderer>\n    </template>\n  </div>\n  <template is="dom-if" if="[[renderCollapsibleMenu]]" class="style-scope ytd-search-sub-menu-renderer">\n    <tp-yt-iron-collapse id="collapse" opened="[[!isCollapsed]]" class="style-scope ytd-search-sub-menu-renderer">\n      <div id="collapse-content" class="style-scope ytd-search-sub-menu-renderer">\n        <template is="dom-repeat" items="[[data.groups]]" class="style-scope ytd-search-sub-menu-renderer">\n          <ytd-search-filter-group-renderer data="[[item.searchFilterGroupRenderer]]" class="style-scope ytd-search-sub-menu-renderer">\n          </ytd-search-filter-group-renderer>\n        </template>\n      </div>\n    </tp-yt-iron-collapse>\n  </template>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return Fau=F},{mode:1});var Wae;var Evi=new _.NG("SECTION_LIST_RENDERER_TOKEN");var hhz;var lT=function(){return _.n.apply(this,arguments)||this};
_.k(lT,_.n);lT.prototype.computeStyle=function(F){return F?F.toLowerCase().replace(/_/g,"-"):""};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],lT.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],lT.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.Y("design:type",String)],lT.prototype,"headerStyle",void 0);lT=_.T([_.y({is:"ytd-text-header-renderer",disableElementRegistration:!0})],lT);
_.r(lT,"ytd-text-header-renderer",function(){if(hhz!==void 0)return hhz;var F=document.createElement("template");_.L(F,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-text-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e[[getSimpleString(data.title)]]\n");F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return hhz=F},{mode:1});var d8a;var nR=function(){return _.n.apply(this,arguments)||this};
_.k(nR,_.n);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],nR.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],nR.prototype,"data",void 0);nR=_.T([_.y({is:"ytd-minor-moment-header-renderer",disableElementRegistration:!0})],nR);
_.r(nR,"ytd-minor-moment-header-renderer",function(){if(d8a!==void 0)return d8a;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-minor-moment-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<img src$="[[data.imageUrl]]" alt="" class="minormoment-header-img style-scope ytd-minor-moment-header-renderer">\n<yt-formatted-string id="title" respect-html-dir="" text="[[data.title]]" class="style-scope ytd-minor-moment-header-renderer"></yt-formatted-string>\n<yt-formatted-string id="caption" respect-html-dir="" text="[[data.caption]]" class="style-scope ytd-minor-moment-header-renderer"></yt-formatted-string>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return d8a=F},{mode:1});var NAB;var yL=function(){return _.n.apply(this,arguments)||this};
_.k(yL,_.n);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],yL.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],yL.prototype,"data",void 0);yL=_.T([_.y({is:"ytd-minor-moment-setting-alert-renderer",disableElementRegistration:!0})],yL);
_.r(yL,"ytd-minor-moment-setting-alert-renderer",function(){if(NAB!==void 0)return NAB;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-minor-moment-setting-alert-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="text" text="[[data.text]]" class="style-scope ytd-minor-moment-setting-alert-renderer">\n</yt-formatted-string>\n<template is="dom-repeat" items="[[data.details]]" class="style-scope ytd-minor-moment-setting-alert-renderer">\n  <yt-formatted-string class="detail-text style-scope ytd-minor-moment-setting-alert-renderer" text="[[item]]">\n  </yt-formatted-string>\n</template>\n<yt-formatted-string id="link" text="[[data.link]]" class="style-scope ytd-minor-moment-setting-alert-renderer">\n</yt-formatted-string>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return NAB=F},{mode:1});var Vwu;var U8O;var jq=function(){var F=_.n.apply(this,arguments)||this;F.booleanSettingById=!1;F.smartDownloadsEnabledVE=_.LQ(128287);F.smartDownloadsDisabledVE=_.LQ(128286);F.actionMap={"yt-settings-update-switch-command":"handleUpdateSettingsSwitch","yt-toggle-settings-switch":"onToggleSettingsSwitch"};return F};
_.k(jq,_.n);_.N=jq.prototype;_.N.attachSmartDownloadsSettingVes=function(){var F;this.activeVeForLogging||((F=this.data)==null?void 0:F.id)!=="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"||(_.zY(_.z4(),this.smartDownloadsEnabledVE),_.zY(_.z4(),this.smartDownloadsDisabledVE))};
_.N.dataChanged=function(){this.attachSmartDownloadsSettingVes();this.maybeLogSmartDownloadsSettingVisibility();this.initializeIsEnabled();_.hF(this.hostElement,"yt-settings-switch-ready")};
_.N.initializeIsEnabled=function(){this.data&&this.data.id&&this.data.enabled===void 0&&this.set("data.enabled",this.getUserPreference())};
_.N.onSwitchChange=function(F){this.data&&(this.maybeLogSmartDownloadsSettingClick(),(F=_.oo(F).checked?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&(_.c("kevlar_settings_switch_resolve_command_killswitch")?_.WZ().resolve(_.EJ).resolveCommand(F,{form:{element:this.hostElement}}):this.ytComponentBehavior.resolveCommand(F)),this.data.requiresConfirmation&&this.set("data.enabled",!this.data.enabled))};
_.N.handleUpdateSettingsSwitch=function(F){(F=_.D(F,iv_))&&this.data&&this.data.id===F.id&&this.set("data.enabled",!!F.enabled)};
_.N.onToggleSettingsSwitch=function(F,W){this.data&&this.data.id===F&&this.set("data.enabled",W!=null?W:!this.data.enabled)};
_.N.getUserPreference=function(){switch(this.data.id){case "SETTINGS_OPTIONS_ID_TYPE_AUTONAV":return 1!==_.EX.getInstance().getState();case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return this.booleanSettingById;default:return!1}};
_.N.maybeLogSmartDownloadsSettingVisibility=function(){var F=_.JR(),W;F&&((W=this.data)==null?void 0:W.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&(this.booleanSettingById?(this.activeVeForLogging=this.smartDownloadsEnabledVE,_.rW(F,[this.smartDownloadsEnabledVE]),_.TJ(F,[this.smartDownloadsDisabledVE])):(this.activeVeForLogging=this.smartDownloadsDisabledVE,_.rW(F,[this.smartDownloadsDisabledVE]),_.TJ(F,[this.smartDownloadsEnabledVE])))};
_.N.maybeLogSmartDownloadsSettingClick=function(){var F;((F=this.data)==null?void 0:F.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&this.activeVeForLogging&&_.Co(_.z4(),this.activeVeForLogging)};
_.N.updateDataEnabledFromBinding=function(F){this.set("data.enabled",F.detail.value)};
_.Sn.Object.defineProperties(jq.prototype,{toggleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var F=this.get("toggleAccessibility.accessibilityData.label",this.data);this.data&&this.data.title&&!F&&(F=this.ytRendererBehavior.getSimpleString(this.data.title));return F}}});
jq.prototype.dataChanged=jq.prototype.dataChanged;_.T([_.J(_.am),_.Y("design:type",Object)],jq.prototype,"ytdReduxBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],jq.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],jq.prototype,"ytActionHandlerBehavior",void 0);_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],jq.prototype,"ytComponentBehavior",void 0);
_.T([_.O(),_.Y("design:type",Object)],jq.prototype,"data",void 0);_.T([_.O({selector:function(F,W){if(Object.keys(F==null?void 0:F.entities).length)switch(W){case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return vJn(F.entities,"SMART_DOWNLOADS_ENABLED");default:return!1}},
selectorArgs:["data.id"]}),_.Y("design:type",Object)],jq.prototype,"booleanSettingById",void 0);_.T([_.O(),_.Y("design:type",_.Hf)],jq.prototype,"activeVeForLogging",void 0);_.T([_.a("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],jq.prototype,"toggleAriaLabel",null);_.T([_.Cz("data"),_.Cz("booleanSettingById"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],jq.prototype,"dataChanged",null);
jq=_.T([_.y({is:"ytd-settings-switch-renderer",disableElementRegistration:!0})],jq);
_.r(jq,"ytd-settings-switch-renderer",function(){if(U8O!==void 0)return U8O;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-settings-switch-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-toggle-button id="toggle" aria-label$="[[toggleAriaLabel]]" checked="[[data.enabled]]" noink="" on-change="onSwitchChange" on-checked-changed="updateDataEnabledFromBinding" class="style-scope ytd-settings-switch-renderer">\n  <div id="toggle-container" class="style-scope ytd-settings-switch-renderer"></div>\n</tp-yt-paper-toggle-button>\n<div class="style-scope ytd-settings-switch-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-settings-switch-renderer"></yt-formatted-string>\n  <div id="icon" hidden="[[!data.thumbnail]]" class="style-scope ytd-settings-switch-renderer">\n    <yt-img-shadow height="24" thumbnail="[[data.thumbnail]]" width="24" class="style-scope ytd-settings-switch-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="text" text="[[data.text]]" class="style-scope ytd-settings-switch-renderer"></yt-formatted-string>\n  </div>\n  <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-settings-switch-renderer"></yt-formatted-string>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return U8O=F},{mode:1});var iT=function(){return _.n.apply(this,arguments)||this};
_.k(iT,_.n);iT.prototype.configureRendererStamper=function(){return{"data.settings":{id:"settings",mapping:{settingsSwitchRenderer:{component:"ytd-settings-switch-renderer",noInjection:!0}}},"data.alerts":{id:"alerts",mapping:{minorMomentSettingAlertRenderer:{component:"ytd-minor-moment-setting-alert-renderer",noInjection:!0}}}}};
_.Sn.Object.defineProperties(iT.prototype,{contentsClassName:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return"";var F=this.data.hideBottomSeparator?"":"with-bottom-separator";this.data.removeLeftMargin&&(F+=" remove-left-margin");this.data.extraBottomSpace&&(F+=" extra-bottom-space");return F}}});
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],iT.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],iT.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],iT.prototype,"data",void 0);_.T([_.a("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],iT.prototype,"contentsClassName",null);iT=_.T([_.y({is:"ytd-minor-moment-setting-section-renderer",disableElementRegistration:!0})],iT);
_.r(iT,"ytd-minor-moment-setting-section-renderer",function(){if(Vwu!==void 0)return Vwu;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-minor-moment-setting-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class$="[[contentsClassName]] style-scope ytd-minor-moment-setting-section-renderer">\n  <div id="title" hidden="[[!data.title]]" class="style-scope ytd-minor-moment-setting-section-renderer">\n    <yt-formatted-string text="[[data.title]]" class="style-scope ytd-minor-moment-setting-section-renderer"></yt-formatted-string>\n  </div>\n  <yt-formatted-string id="header" hidden="[[!data.header]]" text="[[data.header]]" class="style-scope ytd-minor-moment-setting-section-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string id="summary" hidden="[[!data.summary]]" text="[[data.summary]]" class="style-scope ytd-minor-moment-setting-section-renderer">\n  </yt-formatted-string>\n  <div id="settings" hidden="[[!data.settings]]" class="style-scope ytd-minor-moment-setting-section-renderer"></div>\n  <div id="alerts" hidden="[[!data.alerts]]" class="style-scope ytd-minor-moment-setting-section-renderer"></div>\n</div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return Vwu=F},{mode:1});var Rhu;var rm=function(){return _.n.apply(this,arguments)||this};
_.k(rm,_.n);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],rm.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],rm.prototype,"componentBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],rm.prototype,"data",void 0);rm=_.T([_.y({disableElementRegistration:!0,is:"ytd-empty-product-details-renderer"})],rm);
_.r(rm,"ytd-empty-product-details-renderer",function(){if(Rhu!==void 0)return Rhu;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-empty-product-details-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-empty-product-details-renderer">\n  <yt-formatted-string text="[[data.title]]" class="style-scope ytd-empty-product-details-renderer"></yt-formatted-string>\n</div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return Rhu=F},{mode:1});var ehU;var Mwp;var Tl=function(){var F=_.n.apply(this,arguments)||this;F.expanded=!0;return F};
_.k(Tl,_.n);Tl.prototype.getBadgeRowClass=function(F,W,E){for(var h=_.U(this.hostElement.querySelectorAll("yt-img-shadow")),d=h.next();!d.done;d=h.next())d.value.onShow();F=F.selected;return E?F!==-1?F===W?"badge-line badge-selected":"badge-line badge-not-selected":"badge-line":(F!==void 0?F:0)===W?"badge-line":"badge-hidden"};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Tl.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],Tl.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Object)],Tl.prototype,"expanded",void 0);Tl=_.T([_.y({disableElementRegistration:!0,is:"ytd-sponsorships-loyalty-badges-renderer"})],Tl);
_.r(Tl,"ytd-sponsorships-loyalty-badges-renderer",function(){if(Mwp!==void 0)return Mwp;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-loyalty-badges-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="description-container style-scope ytd-sponsorships-loyalty-badges-renderer">\n  <yt-formatted-string class="description style-scope ytd-sponsorships-loyalty-badges-renderer" text="[[data.description]]">\n  </yt-formatted-string>\n</div>\n<div class="badge-container style-scope ytd-sponsorships-loyalty-badges-renderer">\n  <template is="dom-repeat" items="[[data.loyaltyBadges]]" class="style-scope ytd-sponsorships-loyalty-badges-renderer">\n    <div class$="[[getBadgeRowClass(data, index, expanded)]] style-scope ytd-sponsorships-loyalty-badges-renderer">\n      <div class="badge-title-container style-scope ytd-sponsorships-loyalty-badges-renderer">\n        <yt-formatted-string class="badge-title style-scope ytd-sponsorships-loyalty-badges-renderer" text="[[item.sponsorshipsLoyaltyBadgeRenderer.title]]">\n        </yt-formatted-string>\n      </div>\n      <div class="icon-container style-scope ytd-sponsorships-loyalty-badges-renderer">\n        <yt-img-shadow class="badge-icon style-scope ytd-sponsorships-loyalty-badges-renderer" thumbnail="[[item.sponsorshipsLoyaltyBadgeRenderer.icon]]">\n        </yt-img-shadow>\n      </div>\n    </div>\n  </template>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return Mwp=F},{mode:1});var gve;var o1=function(){var F=_.n.apply(this,arguments)||this;F.expanded=!0;return F};
_.k(o1,_.n);o1.prototype.getContainerClasses=function(F,W){F=F?"expanded":"collapsed";W&&(F+=" item");return F};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],o1.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],o1.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Object)],o1.prototype,"expanded",void 0);o1=_.T([_.y({disableElementRegistration:!0,is:"ytd-sponsorships-perk-renderer"})],o1);
_.r(o1,"ytd-sponsorships-perk-renderer",function(){if(gve!==void 0)return gve;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-perk-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class$="[[getContainerClasses(expanded, data.title)]] style-scope ytd-sponsorships-perk-renderer">\n  <div class="style-scope ytd-sponsorships-perk-renderer"><yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-sponsorships-perk-renderer"></yt-formatted-string></div>\n  <div id="expandable" hidden$="[[!expanded]]" class="style-scope ytd-sponsorships-perk-renderer">\n    <template is="dom-if" if="[[data.description]]" class="style-scope ytd-sponsorships-perk-renderer">\n      <div class="style-scope ytd-sponsorships-perk-renderer"><yt-formatted-string id="description" text="[[data.description]]" class="style-scope ytd-sponsorships-perk-renderer"></yt-formatted-string></div>\n    </template>\n    <template is="dom-if" if="[[data.fulfillmentInstructions]]" class="style-scope ytd-sponsorships-perk-renderer">\n      <div id="fulfillment-instructions" class="style-scope ytd-sponsorships-perk-renderer"><yt-formatted-string split-lines="1" text="[[data.fulfillmentInstructions]]" class="style-scope ytd-sponsorships-perk-renderer"></yt-formatted-string></div>\n    </template>\n  </div>\n  <template is="dom-if" if="[[data.loyaltyBadges]]" class="style-scope ytd-sponsorships-perk-renderer">\n    <ytd-sponsorships-loyalty-badges-renderer data="[[data.loyaltyBadges.sponsorshipsLoyaltyBadgesRenderer]]" expanded="[[expanded]]" class="style-scope ytd-sponsorships-perk-renderer"></ytd-sponsorships-loyalty-badges-renderer>\n  </template>\n  <template is="dom-if" if="[[!data.loyaltyBadges]]" class="style-scope ytd-sponsorships-perk-renderer">\n    <div id="images-line" class="style-scope ytd-sponsorships-perk-renderer">\n      <yt-formatted-string id="image-description" text="[[data.imageDescription]]" class="style-scope ytd-sponsorships-perk-renderer"></yt-formatted-string>\n      <template is="dom-if" if="[[data.images]]" class="style-scope ytd-sponsorships-perk-renderer">\n        <template is="dom-repeat" items="[[data.images]]" as="image" class="style-scope ytd-sponsorships-perk-renderer">\n          <yt-img-shadow class="images style-scope ytd-sponsorships-perk-renderer" thumbnail="[[image]]"></yt-img-shadow>\n        </template>\n      </template>\n    </div>\n  </template>\n  <template is="dom-if" if="[[data.loyaltyMessage]]" class="style-scope ytd-sponsorships-perk-renderer">\n    <yt-live-chat-membership-item-renderer data="[[data.loyaltyMessage.liveChatMembershipItemRenderer]]" expanded="[[expanded]]" class="style-scope ytd-sponsorships-perk-renderer"></yt-live-chat-membership-item-renderer>\n  </template>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return gve=F},{mode:1});var Qa_;var Gl=function(){var F=_.n.apply(this,arguments)||this;F.expanded=!0;return F};
_.k(Gl,_.n);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Gl.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],Gl.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Object)],Gl.prototype,"expanded",void 0);Gl=_.T([_.y({disableElementRegistration:!0,is:"ytd-sponsorships-perks-renderer"})],Gl);
_.r(Gl,"ytd-sponsorships-perks-renderer",function(){if(Qa_!==void 0)return Qa_;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-perks-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="perks-title" hidden="[[!data.perksTitle]]" text="[[data.perksTitle]]" class="style-scope ytd-sponsorships-perks-renderer">\n</yt-formatted-string>\n<template is="dom-repeat" items="[[data.perks]]" class="style-scope ytd-sponsorships-perks-renderer">\n  <div class="item style-scope ytd-sponsorships-perks-renderer">\n    <ytd-sponsorships-perk-renderer data="[[item.sponsorshipsPerkRenderer]]" expanded="[[expanded]]" class="style-scope ytd-sponsorships-perks-renderer">\n    </ytd-sponsorships-perk-renderer>\n  </div>\n</template>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return Qa_=F},{mode:1});var Yq=function(){var F=_.n.apply(this,arguments)||this;F.isCollapsed=!1;return F};
_.k(Yq,_.n);Yq.prototype.onDataChanged=function(){this.data&&(this.isCollapsed=!this.data.startExpanded)};
Yq.prototype.onExpandCollapse=function(){this.isCollapsed=!this.isCollapsed};
Yq.prototype.updateExpandCollapseButton=function(){if(this.isCollapsed){var F;this.expandCollapseButton=_.D((F=this.data)==null?void 0:F.expandButton,_.jt)}else{var W;this.expandCollapseButton=_.D((W=this.data)==null?void 0:W.collapseButton,_.jt)}};
Yq.prototype.updateExpandCollapseButton=Yq.prototype.updateExpandCollapseButton;Yq.prototype.onDataChanged=Yq.prototype.onDataChanged;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Yq.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],Yq.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],Yq.prototype,"isCollapsed",void 0);_.T([_.O(),_.Y("design:type",Object)],Yq.prototype,"expandCollapseButton",void 0);
_.T([_.Cz("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Yq.prototype,"onDataChanged",null);_.T([_.Cz("data","isCollapsed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Yq.prototype,"updateExpandCollapseButton",null);Yq=_.T([_.y({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-perks-renderer"})],Yq);
_.r(Yq,"ytd-sponsorships-expandable-perks-renderer",function(){if(ehU!==void 0)return ehU;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-expandable-perks-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="badged-title style-scope ytd-sponsorships-expandable-perks-renderer">\n  <yt-img-shadow thumbnail="[[data.badge]]" class="style-scope ytd-sponsorships-expandable-perks-renderer"></yt-img-shadow>\n  <yt-formatted-string text="[[data.title]]" class="style-scope ytd-sponsorships-expandable-perks-renderer"></yt-formatted-string>\n</div>\n<yt-formatted-string class="subtitle style-scope ytd-sponsorships-expandable-perks-renderer" text="[[data.subtitle]]"></yt-formatted-string>\n<hr class="style-scope ytd-sponsorships-expandable-perks-renderer">\n<yt-formatted-string class="expandable-heading style-scope ytd-sponsorships-expandable-perks-renderer" text="[[data.expandableHeader]]"></yt-formatted-string>\n<ytd-button-renderer class="end-button style-scope ytd-sponsorships-expandable-perks-renderer" data="[[data.endButton.buttonRenderer]]"></ytd-button-renderer>\n<ytd-button-renderer class="bottom-button style-scope ytd-sponsorships-expandable-perks-renderer" data="[[data.bottomButton.buttonRenderer]]"></ytd-button-renderer>\n<ytd-button-renderer class="expand-collapse-button style-scope ytd-sponsorships-expandable-perks-renderer" data="[[expandCollapseButton]]" noink="" on-click="onExpandCollapse"></ytd-button-renderer>\n\n<div class="expandable-content style-scope ytd-sponsorships-expandable-perks-renderer">\n  <template is="dom-repeat" items="[[data.expandableItems]]" as="item" class="style-scope ytd-sponsorships-expandable-perks-renderer">\n    <ytd-sponsorships-perk-renderer data="[[item.sponsorshipsPerkRenderer]]" class="style-scope ytd-sponsorships-expandable-perks-renderer"></ytd-sponsorships-perk-renderer>\n  </template>\n</div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return ehU=F},{mode:1});var zha;var wm=function(){return _.n.apply(this,arguments)||this};
_.k(wm,_.n);wm.prototype.handleAction=function(){this.data&&this.data.command&&this.ytComponentBehavior.resolveCommand(this.data.command)};
_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],wm.prototype,"ytComponentBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],wm.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],wm.prototype,"data",void 0);wm=_.T([_.y({disableElementRegistration:!0,is:"ytd-sponsorships-actionable-message-renderer"})],wm);
_.r(wm,"ytd-sponsorships-actionable-message-renderer",function(){if(zha!==void 0)return zha;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-actionable-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<button on-click="handleAction" class="style-scope ytd-sponsorships-actionable-message-renderer">\n  <yt-img-shadow id="icon" height="24" thumbnail="[[data.icon]]" width="24" class="style-scope ytd-sponsorships-actionable-message-renderer"></yt-img-shadow>\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-sponsorships-actionable-message-renderer"></yt-formatted-string>\n</button>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return zha=F},{mode:1});var twu;var uT=function(){return _.n.apply(this,arguments)||this};
_.k(uT,_.n);_.N=uT.prototype;_.N.configureRendererStamper=function(){return{"data.expandableItems":{id:"content-container",mapping:{sponsorshipsPerksRenderer:{component:"ytd-sponsorships-perks-renderer"},sponsorshipsTierRenderer:{component:"ytd-sponsorships-tier-renderer"}}}}};
_.N.getExpansionIcon=function(F){return F?"yt-icons:arrow_drop_up":"yt-icons:arrow_drop_down"};
_.N.onToggleExpand=function(){this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.N.computeMessageContainerStyle=function(F){var W=F.expandableItems?" style-clickable":"";return F.messageContainerStyle?F.messageContainerStyle.split("MESSAGE_CONTAINER_")[1].replace(/_/g,"-").toLowerCase()+W:"style-unspecified"+W};
_.N.isSinglePerk=function(F){return!!F.messageContainerStyle&&(F.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK"||F.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK_FIRST")};
_.N.onExpandedChanged=function(){var F=this;if(this.expanded)for(var W=_.U(this.hostElement.querySelectorAll("yt-img-shadow")),E=W.next();!E.done;E=W.next())E.value.onShow();_.wT(this,function(){_.hF(F.hostElement,"yt-refit")})};
_.N.onDataChanged=function(){this.get("data.startExpanded")&&(this.expanded=!0)};
uT.prototype.onDataChanged=uT.prototype.onDataChanged;uT.prototype.onExpandedChanged=uT.prototype.onExpandedChanged;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],uT.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],uT.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],uT.prototype,"data",void 0);_.T([_.O({value:!1}),_.Y("design:type",Boolean)],uT.prototype,"expanded",void 0);
_.T([_.ea("expanded"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],uT.prototype,"onExpandedChanged",null);_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],uT.prototype,"onDataChanged",null);uT=_.T([_.y({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-message-renderer"})],uT);
_.r(uT,"ytd-sponsorships-expandable-message-renderer",function(){if(twu!==void 0)return twu;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-expandable-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class$="[[computeMessageContainerStyle(data)]] style-scope ytd-sponsorships-expandable-message-renderer">\n  <button id="message-container" on-tap="onToggleExpand" class="style-scope ytd-sponsorships-expandable-message-renderer">\n    <template is="dom-if" if="[[isSinglePerk(data)]]" class="style-scope ytd-sponsorships-expandable-message-renderer">\n      <yt-icon id="check-icon" icon="yt-icons:check" class="style-scope ytd-sponsorships-expandable-message-renderer"></yt-icon>\n    </template>\n    <yt-formatted-string class="text style-scope ytd-sponsorships-expandable-message-renderer" text="[[data.text]]"></yt-formatted-string>\n    <template is="dom-if" if="[[data.expandableItems]]" class="style-scope ytd-sponsorships-expandable-message-renderer">\n      <yt-icon id="expand-icon" icon="[[getExpansionIcon(expanded)]]" class="style-scope ytd-sponsorships-expandable-message-renderer"></yt-icon>\n    </template>\n  </button>\n  <div id="content-container" hidden="[[!expanded]]" class="style-scope ytd-sponsorships-expandable-message-renderer"></div>\n</div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return twu=F},{mode:_.E6("kevlar_poly_si_batch_j028")?1:2});var CPe;var Sq=function(){return _.n.apply(this,arguments)||this};
_.k(Sq,_.n);Sq.prototype.configureRendererStamper=function(){return{"data.endButton":{id:"end-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.bottomButton":{id:"bottom-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
Sq.prototype.onDataChanged=function(){this.get("data.endButton.buttonRenderer.text")&&this.get("data.endButton.buttonRenderer.icon")&&(_.D(this.data.endButton,_.jt).iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT")};
Sq.prototype.onDataChanged=Sq.prototype.onDataChanged;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Sq.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],Sq.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],Sq.prototype,"data",void 0);_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Sq.prototype,"onDataChanged",null);
Sq=_.T([_.y({disableElementRegistration:!0,is:"ytd-sponsorships-heading-renderer"})],Sq);
_.r(Sq,"ytd-sponsorships-heading-renderer",function(){if(CPe!==void 0)return CPe;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-heading-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-sponsorships-heading-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-sponsorships-heading-renderer"></yt-formatted-string>\n  <div id="subtitle-content" hidden="[[!data.subtitle]]" class="style-scope ytd-sponsorships-heading-renderer">\n    <yt-img-shadow id="subtitle-icon" hidden="[[!data.subtitleIcon]]" thumbnail="[[data.subtitleIcon]]" class="style-scope ytd-sponsorships-heading-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-sponsorships-heading-renderer"></yt-formatted-string>\n  </div>\n  <div id="bottom-button" class="style-scope ytd-sponsorships-heading-renderer"></div>\n</div>\n<div id="end-button" class="style-scope ytd-sponsorships-heading-renderer"></div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return CPe=F},{mode:1});var BAH;var pR=function(){return _.n.apply(this,arguments)||this};
_.k(pR,_.n);_.T([_.O(),_.Y("design:type",Object)],pR.prototype,"data",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],pR.prototype,"ytRendererBehavior",void 0);pR=_.T([_.y({disableElementRegistration:!0,is:"ytd-sponsorships-links-renderer"})],pR);
_.r(pR,"ytd-sponsorships-links-renderer",function(){if(BAH!==void 0)return BAH;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-links-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" items="[[data.links]]" class="style-scope ytd-sponsorships-links-renderer">\n  <yt-formatted-string class="link style-scope ytd-sponsorships-links-renderer" link-inherit-color="" text="[[item]]">\n</yt-formatted-string></template>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return BAH=F},{mode:1});var vva;var mI=function(){return _.n.apply(this,arguments)||this};
_.k(mI,_.n);_.N=mI.prototype;_.N.onDataChanged=function(){if(this.data&&this.data.expandableItems){var F;(F=_.Z(this.hostElement).querySelector("tp-yt-paper-button"))==null||F.setAttribute("role","button")}else{var W;(W=_.Z(this.hostElement).querySelector("tp-yt-paper-button"))==null||W.removeAttribute("role")}};
_.N.onToggleExpand=function(){this.data&&this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.N.getExpansionIcon=function(F){return F?"yt-icons:arrow_drop_up":"yt-icons:arrow_drop_down"};
_.N.getTileClasses=function(F){return F?"tile expandable-tile":"tile"};
_.N.getButtonDisabled=function(F){return F?void 0:""};
mI.prototype.onDataChanged=mI.prototype.onDataChanged;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],mI.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],mI.prototype,"data",void 0);_.T([_.O({value:!1}),_.Y("design:type",Boolean)],mI.prototype,"expanded",void 0);_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],mI.prototype,"onDataChanged",null);
mI=_.T([_.y({disableElementRegistration:!0,is:"ytd-sponsorships-list-tile-renderer"})],mI);
_.r(mI,"ytd-sponsorships-list-tile-renderer",function(){if(vva!==void 0)return vva;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-list-tile-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-button id="tile" class="tile style-scope ytd-sponsorships-list-tile-renderer" class$="[[getTileClasses(data.expandableItems)]]" disabled$="[[getButtonDisabled(data.expandableItems)]]" noink="" on-tap="onToggleExpand">\n  <yt-img-shadow class="icon style-scope ytd-sponsorships-list-tile-renderer" thumbnail="[[data.icon]]"></yt-img-shadow>\n  <div class="titles style-scope ytd-sponsorships-list-tile-renderer">\n    <yt-formatted-string class="title style-scope ytd-sponsorships-list-tile-renderer" text="[[data.title]]"></yt-formatted-string>\n    <yt-formatted-string class="subtitle style-scope ytd-sponsorships-list-tile-renderer" text="[[data.subtitle]]"></yt-formatted-string>\n    <yt-formatted-string class="detail style-scope ytd-sponsorships-list-tile-renderer" text="[[data.detail]]"></yt-formatted-string>\n  </div>\n  <template is="dom-if" if="[[data.expandableItems]]" class="style-scope ytd-sponsorships-list-tile-renderer">\n    <yt-icon class="expand-icon style-scope ytd-sponsorships-list-tile-renderer" icon="[[getExpansionIcon(expanded)]]"></yt-icon>\n  </template>\n</tp-yt-paper-button>\n\n<template is="dom-if" if="[[expanded]]" class="style-scope ytd-sponsorships-list-tile-renderer">\n  <div class="tiles-container style-scope ytd-sponsorships-list-tile-renderer">\n    <template is="dom-repeat" items="[[data.expandableItems]]" class="style-scope ytd-sponsorships-list-tile-renderer">\n      <template is="dom-if" if="[[item.sponsorshipsLoyaltyBadgesRenderer]]" class="style-scope ytd-sponsorships-list-tile-renderer">\n        <ytd-sponsorships-loyalty-badges-renderer class="sponsorships-loyalty-badges-renderer style-scope ytd-sponsorships-list-tile-renderer" data="[[item.sponsorshipsLoyaltyBadgesRenderer]]"></ytd-sponsorships-loyalty-badges-renderer>\n      </template>\n      <template is="dom-if" if="[[item.sponsorshipsListTileRenderer]]" class="style-scope ytd-sponsorships-list-tile-renderer">\n        <div class="tile style-scope ytd-sponsorships-list-tile-renderer">\n          <yt-img-shadow class="icon style-scope ytd-sponsorships-list-tile-renderer" thumbnail="[[item.sponsorshipsListTileRenderer.icon]]">\n          </yt-img-shadow>\n          <div class="titles style-scope ytd-sponsorships-list-tile-renderer">\n            <yt-formatted-string class="title style-scope ytd-sponsorships-list-tile-renderer" text="[[item.sponsorshipsListTileRenderer.title]]">\n            </yt-formatted-string>\n            <yt-formatted-string class="subtitle style-scope ytd-sponsorships-list-tile-renderer" text="[[item.sponsorshipsListTileRenderer.subtitle]]">\n            </yt-formatted-string>\n          </div>\n        </div>\n      </template>\n    </template>\n  </div>\n</template>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return vva=F},{mode:1});var I7B;var cYU;var KR=function(){return _.n.apply(this,arguments)||this};
_.k(KR,_.n);KR.prototype.configureRendererStamper=function(){return{"data.redeemButton":{id:"redeem-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],KR.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],KR.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],KR.prototype,"data",void 0);KR=_.T([_.y({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-renderer"})],KR);
_.r(KR,"ytd-sponsorships-promotion-renderer",function(){if(cYU!==void 0)return cYU;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-promotion-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-sponsorships-promotion-renderer">\n  <div id="above-button" class="style-scope ytd-sponsorships-promotion-renderer">\n    <yt-formatted-string class="above-redeem-button-text style-scope ytd-sponsorships-promotion-renderer" text="[[data.aboveRedeemButtonText]]"></yt-formatted-string>\n    <ytd-badge-supported-renderer top-standalone-badge="[[data.badge]]" class="style-scope ytd-sponsorships-promotion-renderer">\n    </ytd-badge-supported-renderer>\n  </div>\n  <div id="redeem-button" class="style-scope ytd-sponsorships-promotion-renderer"></div>\n  <yt-formatted-string class="redeem-disclaimer style-scope ytd-sponsorships-promotion-renderer" split-lines="true" text="[[data.redeemDisclaimer]]"></yt-formatted-string>\n</div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return cYU=F},{mode:1});var D8B;var Fu=function(){return _.n.apply(this,arguments)||this};
_.k(Fu,_.n);Fu.prototype.configureRendererStamper=function(){return{"data.button":{id:"purchase-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Fu.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],Fu.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],Fu.prototype,"data",void 0);Fu=_.T([_.y({disableElementRegistration:!0,is:"ytd-sponsorships-purchase-option-renderer"})],Fu);
_.r(Fu,"ytd-sponsorships-purchase-option-renderer",function(){if(D8B!==void 0)return D8B;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-purchase-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-sponsorships-purchase-option-renderer">\n  <div id="purchase-info" class="style-scope ytd-sponsorships-purchase-option-renderer">\n    <div id="header" class="style-scope ytd-sponsorships-purchase-option-renderer">\n      <yt-formatted-string class="purchase-text style-scope ytd-sponsorships-purchase-option-renderer" text="[[data.text]]"></yt-formatted-string>\n      <ytd-badge-supported-renderer top-standalone-badge="[[data.badge]]" class="style-scope ytd-sponsorships-purchase-option-renderer">\n      </ytd-badge-supported-renderer>\n    </div>\n    <yt-formatted-string class="disclaimer style-scope ytd-sponsorships-purchase-option-renderer" split-lines="true" text="[[data.disclaimer]]"></yt-formatted-string>\n  </div>\n  <div id="purchase-button" class="style-scope ytd-sponsorships-purchase-option-renderer"></div>\n</div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return D8B=F},{mode:1});var x8M;var kwe;var Wv=function(){return _.n.apply(this,arguments)||this};
_.k(Wv,_.n);_.T([_.O(),_.Y("design:type",Object)],Wv.prototype,"data",void 0);Wv=_.T([_.y({disableElementRegistration:!0,is:"ytd-ypc-offer-promo-renderer"})],Wv);
_.r(Wv,"ytd-ypc-offer-promo-renderer",function(){if(kwe!==void 0)return kwe;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ypc-offer-promo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-ypc-offer-promo-renderer">\n  <yt-icon id="icon" icon="[[data.icon.iconType]]" class="style-scope ytd-ypc-offer-promo-renderer"></yt-icon>\n  <div id="benefit-info" class="style-scope ytd-ypc-offer-promo-renderer">\n    <div id="header" class="style-scope ytd-ypc-offer-promo-renderer">\n      <yt-formatted-string class="title style-scope ytd-ypc-offer-promo-renderer" text="[[data.title]]">\n      </yt-formatted-string>\n    </div>\n    <div id="badge-section" class="style-scope ytd-ypc-offer-promo-renderer">\n      <ytd-badge-supported-renderer id="badge" top-standalone-badge="[[data.badge]]" class="style-scope ytd-ypc-offer-promo-renderer">\n        </ytd-badge-supported-renderer>\n    <yt-formatted-string class="subtitle style-scope ytd-ypc-offer-promo-renderer" text="[[data.subtitle]]">\n    </yt-formatted-string>\n    </div>\n  </div>\n</div>');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return kwe=F},{mode:1});var Et=function(){return _.n.apply(this,arguments)||this};
_.k(Et,_.n);_.N=Et.prototype;
_.N.configureRendererStamper=function(){return{"data.purchaseButton":{id:"purchase-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}},"data.expandableMessage":{id:"expandable-message",mapping:{sponsorshipsExpandableMessageRenderer:{component:"ytd-sponsorships-expandable-message-renderer"}}},"data.purchaseOption":{id:"purchase-option",mapping:{sponsorshipsPurchaseOptionRenderer:{component:"ytd-sponsorships-purchase-option-renderer"}}},"data.alternativePurchaseOption":{id:"alternative-purchase-option",mapping:{sponsorshipsPurchaseOptionRenderer:{component:"ytd-sponsorships-purchase-option-renderer"}}},
"data.offerPromoCard":{id:"offer-promo",mapping:{ypcOfferPromoRenderer:{component:"ytd-ypc-offer-promo-renderer"}}}}};
_.N.expansionCTA=function(F,W){return F&&(W?F.collapseCallToAction:F.expansionCallToAction)};
_.N.getExpansionIcon=function(F){return F?"arrow_drop_up":"arrow_drop_down"};
_.N.expansionCallToActionTap=function(){var F=this;this.expanded=!this.expanded;_.wT(this,function(){_.hF(F.hostElement,"yt-refit")})};
_.N.onDataChanged=function(){this.expanded=!this.get("data.expansionCallToAction");this.purchaseButtonClicked=!1;var F,W=(F=this.data)==null?void 0:F.onVisible;W&&this.ytComponentBehavior.resolveCommand(W)};
_.N.computeDisplayTitle=function(F){return!(!F||this.titledisplaystatus!=="show")};
_.N.computeDisplaySeparator=function(){return!1};
_.N.onPurchaseButtonTap=function(){this.purchaseButtonClicked=!0};
Et.prototype.onDataChanged=Et.prototype.onDataChanged;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Et.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],Et.prototype,"ytComponentBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],Et.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],Et.prototype,"data",void 0);
_.T([_.O({value:!1}),_.Y("design:type",Boolean)],Et.prototype,"expanded",void 0);_.T([_.O({value:!1}),_.Y("design:type",Boolean)],Et.prototype,"purchaseButtonClicked",void 0);_.T([_.O({reflectToAttribute:!0,value:"show"}),_.Y("design:type",String)],Et.prototype,"titledisplaystatus",void 0);_.T([_.O({computed:"computeDisplayTitle(data.title)"}),_.Y("design:type",Boolean)],Et.prototype,"displayTitle",void 0);
_.T([_.O({computed:"computeDisplaySeparator(data)"}),_.Y("design:type",Boolean)],Et.prototype,"displaySeparator",void 0);_.T([_.Cz("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Et.prototype,"onDataChanged",null);Et=_.T([_.y({disableElementRegistration:!0,is:"ytd-sponsorships-tier-renderer"})],Et);
_.r(Et,"ytd-sponsorships-tier-renderer",function(){if(x8M!==void 0)return x8M;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-tier-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="title" hidden="[[!displayTitle]]" class="style-scope ytd-sponsorships-tier-renderer">\n  <yt-formatted-string text="[[data.title]]" class="style-scope ytd-sponsorships-tier-renderer"></yt-formatted-string>\n</div>\n<div id="offer-promo" hidden="[[!data.offerPromoCard]]" class="style-scope ytd-sponsorships-tier-renderer">\n</div>\n<div id="purchase-with-options" hidden="[[!data.purchaseOption]]" class="style-scope ytd-sponsorships-tier-renderer">\n  <div id="purchase-option" class="style-scope ytd-sponsorships-tier-renderer"></div>\n  <div class="separator style-scope ytd-sponsorships-tier-renderer" hidden="[[!data.alternativePurchaseOption]]"></div>\n  <div id="alternative-purchase-option" class="style-scope ytd-sponsorships-tier-renderer"></div>\n</div>\n<div id="default-purchase-view" hidden="[[data.purchaseOption]]" class="style-scope ytd-sponsorships-tier-renderer">\n  <div id="above-purchase-button" hidden="[[!data.abovePurchaseButtonText]]" class="style-scope ytd-sponsorships-tier-renderer">\n    <yt-formatted-string id="above-purchase-button-text" text="[[data.abovePurchaseButtonText]]" class="style-scope ytd-sponsorships-tier-renderer"></yt-formatted-string>\n    <yt-formatted-string id="above-purchase-button-text-subtitle" class="subtitle style-scope ytd-sponsorships-tier-renderer" text="[[data.abovePurchaseButtonTextSubtitle]]"></yt-formatted-string>\n  </div>\n  <div id="premium-freebie-promo" class="style-scope ytd-sponsorships-tier-renderer"></div>\n  <div class="separator style-scope ytd-sponsorships-tier-renderer" hidden="[[!displaySeparator]]"></div>\n  <div id="header" class="style-scope ytd-sponsorships-tier-renderer">\n    <div id="purchase-button" on-tap="onPurchaseButtonTap" class="style-scope ytd-sponsorships-tier-renderer"></div>\n    \n    <yt-formatted-string id="purchase-text" force-default-style="" hidden="[[!data.purchaseText]]" text="[[data.purchaseText]]" class="style-scope ytd-sponsorships-tier-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string class="disclaimer style-scope ytd-sponsorships-tier-renderer" split-lines="true" text="[[data.disclaimer]]">\n    </yt-formatted-string>\n  </div>\n</div>\n<div class="separator style-scope ytd-sponsorships-tier-renderer" hidden="[[!displaySeparator]]"></div>\n<div id="expandable-message" class="style-scope ytd-sponsorships-tier-renderer"></div>\n<div id="content" class="style-scope ytd-sponsorships-tier-renderer">\n  <div id="perks_section" class="style-scope ytd-sponsorships-tier-renderer">\n    <ytd-sponsorships-perks-renderer id="perks" data="[[data.perks.sponsorshipsPerksRenderer]]" expanded="[[expanded]]" class="style-scope ytd-sponsorships-tier-renderer"></ytd-sponsorships-perks-renderer>\n  </div>\n  <button id="expansion_call_to_action" on-tap="expansionCallToActionTap" hidden="[[!data.expansionCallToAction]]" class="style-scope ytd-sponsorships-tier-renderer">\n    <yt-formatted-string text="[[expansionCTA(data, expanded)]]" class="style-scope ytd-sponsorships-tier-renderer"></yt-formatted-string>\n    <yt-icon class="expand-icon style-scope ytd-sponsorships-tier-renderer" icon="[[getExpansionIcon(expanded)]]"></yt-icon>\n  </button>\n</div>\n<div id="footer" class="style-scope ytd-sponsorships-tier-renderer">\n  <yt-formatted-string id="bottom-disclaimer" class="disclaimer style-scope ytd-sponsorships-tier-renderer" split-lines="true" text="[[data.bottomDisclaimer]]">\n  </yt-formatted-string>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return x8M=F},{mode:2});var hd=function(){return _.n.apply(this,arguments)||this};
_.k(hd,_.n);
hd.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{sponsorshipsTierRenderer:{component:"ytd-sponsorships-tier-renderer"},sponsorshipsHeadingRenderer:{component:"ytd-sponsorships-heading-renderer"},sponsorshipsListTileRenderer:{component:"ytd-sponsorships-list-tile-renderer"},sponsorshipsExpandableMessageRenderer:{component:"ytd-sponsorships-expandable-message-renderer"}}},"data.sidebar":{id:"sidebar",mapping:{sponsorshipsHeadingRenderer:{component:"ytd-sponsorships-heading-renderer"},sponsorshipsActionableMessageRenderer:{component:"ytd-sponsorships-actionable-message-renderer"},
sponsorshipsLinksRenderer:{component:"ytd-sponsorships-links-renderer"},sponsorshipsListTileRenderer:{component:"ytd-sponsorships-list-tile-renderer"}}},"data.alert":{id:"alert-renderer",mapping:{sponsorshipsAlertRenderer:{component:"ytd-sponsorships-alert-renderer"}}}}};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],hd.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],hd.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],hd.prototype,"data",void 0);hd=_.T([_.y({disableElementRegistration:!0,is:"ytd-sponsorships-management-renderer"})],hd);
_.r(hd,"ytd-sponsorships-management-renderer",function(){if(I7B!==void 0)return I7B;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-management-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="alert-renderer" class="style-scope ytd-sponsorships-management-renderer"></div>\n<div id="main-section" class="style-scope ytd-sponsorships-management-renderer">\n  <div id="content" class="style-scope ytd-sponsorships-management-renderer"></div>\n  <div id="sidebar" class="style-scope ytd-sponsorships-management-renderer"></div>\n</div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return I7B=F},{mode:1});var AY_;var dE=function(){return _.n.apply(this,arguments)||this};
_.k(dE,_.n);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],dE.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],dE.prototype,"data",void 0);dE=_.T([_.y({disableElementRegistration:!0,is:"ytd-open-in-native-app-view-model"})],dE);
_.r(dE,"ytd-open-in-native-app-view-model",function(){if(AY_!==void 0)return AY_;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-open-in-native-app-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-attributed-string id="title" data="[[data.title]]" class="style-scope ytd-open-in-native-app-view-model">\n</yt-attributed-string>\n<yt-image id="image" data="[[data.image]]" ftl-eligible="" height="162" width="200" class="style-scope ytd-open-in-native-app-view-model">\n</yt-image>\n<yt-attributed-string id="text" data="[[data.detailsText]]" class="style-scope ytd-open-in-native-app-view-model">\n</yt-attributed-string>\n<yt-attributed-string id="link" data="[[data.learnMoreLink]]" force-default-style="" class="style-scope ytd-open-in-native-app-view-model">\n</yt-attributed-string>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return AY_=F},{mode:_.E6("kevlar_poly_si_batch_j028")?1:2});var saa;var La_;var q5_=_.Fc(["top-"]),$8_=_.Fc(["bottom-"]),ZtO=_.Fc(["left-"]),Xoz=_.Fc(["right-"]),HtH={},PP_=function(F,W,E){F.removeAttribute("top-"+E);F.removeAttribute("bottom-"+E);F.removeAttribute("left-"+E);F.removeAttribute("right-"+E);W&&(W.top&&_.j9([_.SJ(q5_)],F,"top-"+E,W.top),W.bottom&&_.j9([_.SJ($8_)],F,"bottom-"+E,W.bottom),W.left&&_.j9([_.SJ(ZtO)],F,"left-"+E,W.left),W.right&&_.j9([_.SJ(Xoz)],F,"right-"+E,W.right))};
HtH.YtCardItemBoxBehavior=[{observers:["cardItemContainerMarginChanged_(data.containerMargin)","cardItemContainerPaddingChanged_(data.containerPadding)"],created:function(){this.cardItemBoxBehaviorPaddingTargetId=""},
cardItemContainerMarginChanged_:function(F){var W,E=_.Z((W=this.hostElement)!=null?W:this),h;W=this.cardItemBoxBehaviorMarginTargetId&&E?E.querySelector("#"+this.cardItemBoxBehaviorMarginTargetId):(h=this.hostElement)!=null?h:this;PP_(W,F,"margin")},
cardItemContainerPaddingChanged_:function(F){var W,E=_.Z((W=this.hostElement)!=null?W:this),h;W=this.cardItemBoxBehaviorPaddingTargetId&&E?E.querySelector("#"+this.cardItemBoxBehaviorPaddingTargetId):(h=this.hostElement)!=null?h:this;PP_(W,F,"padding")}}];var Nb={CARD_ITEM_COLOR_GENERAL_BACKGROUND_A:"var(--yt-spec-general-background-a)",CARD_ITEM_COLOR_GENERAL_BACKGROUND_B:"var(--yt-spec-general-background-b)",CARD_ITEM_COLOR_BRAND_BACKGROUND_SOLID:"var(--yt-spec-brand-background-solid)",CARD_ITEM_COLOR_ERROR_BACKGROUND:"var(--yt-spec-error-background)",CARD_ITEM_COLOR_TEXT_PRIMARY:"var(--yt-spec-text-primary)",CARD_ITEM_COLOR_TEXT_SECONDARY:"var(--yt-spec-text-secondary)",CARD_ITEM_COLOR_TEXT_DISABLED:"var(--yt-spec-text-disabled)",CARD_ITEM_COLOR_CALL_TO_ACTION:"var(--yt-spec-call-to-action)",
CARD_ITEM_COLOR_ICON_INACTIVE:"var(--yt-spec-icon-inactive)",CARD_ITEM_COLOR_ICON_DISABLED:"var(--yt-spec-icon-disabled)",CARD_ITEM_COLOR_BRAND_ICON_ACTIVE:"var(--yt-spec-brand-icon-active)",CARD_ITEM_COLOR_BRAND_ICON_INACTIVE:"var(--yt-spec-brand-icon-inactive)",CARD_ITEM_COLOR_10_PERCENT_LAYER:"var(--yt-spec-10-percent-layer)",CARD_ITEM_COLOR_TEXT_PRIMARY_INVERSE:"var(--yt-spec-text-primary-inverse)",CARD_ITEM_COLOR_ICON_ACTIVE_OTHER:"var(--yt-spec-icon-active-other)",CARD_ITEM_COLOR_THEMED_GREEN:"var(--yt-spec-themed-green)",
CARD_ITEM_COLOR_ERROR_INDICATOR:"var(--yt-spec-error-indicator)"};var JYz;var a7T;var VG=function(){return _.n.apply(this,arguments)||this};
_.k(VG,_.n);VG.prototype.textColorChanged_=function(){this.hostElement.style.color=Nb[this.data.textColor||"CARD_ITEM_COLOR_TEXT_PRIMARY"]};
VG.prototype.textColorChanged_=VG.prototype.textColorChanged_;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],VG.prototype,"ytRendererBehavior",void 0);_.T([_.J(HtH.YtCardItemBoxBehavior),_.Y("design:type",Object)],VG.prototype,"ytCardItemBoxBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],VG.prototype,"data",void 0);_.T([_.ea("data.textColor"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],VG.prototype,"textColorChanged_",null);
VG=_.T([_.$3({is:"yt-card-item-text-renderer",disableElementRegistration:!0})],VG);
_.r(VG,"yt-card-item-text-renderer",function(){if(a7T===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-text-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_text_renderer.yt.card.item.text.renderer.css.js--\x3e<yt-formatted-string id="card-text" force-default-style="" split-lines="1" text="[[data.text]]" text-style$="[[data.style]]" class="style-scope yt-card-item-text-renderer">\n</yt-formatted-string>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;JYz===void 0&&(JYz=document.createElement("template"));var h=JYz;E.call(W,h.content.cloneNode(!0),F.content.firstChild);a7T=F}F=a7T;return F},{mode:2});var f7_;var OtU;var Ut=function(){return _.n.apply(this,arguments)||this};
_.k(Ut,_.n);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Ut.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],Ut.prototype,"data",void 0);Ut=_.T([_.$3({is:"yt-card-item-badge-renderer",disableElementRegistration:!0})],Ut);
_.r(Ut,"yt-card-item-badge-renderer",function(){if(OtU===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-badge-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_badge_renderer.yt.card.item.badge.renderer.css.js--\x3e<div id="card-block" class="style-scope yt-card-item-badge-renderer">\n  <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden$="[[!data.badges]]" class="style-scope yt-card-item-badge-renderer">\n  </ytd-badge-supported-renderer>\n  <yt-formatted-string id="text" split-lines="1" text="[[data.text]]" class="style-scope yt-card-item-badge-renderer">\n  </yt-formatted-string>\n</div>\n\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;f7_===void 0&&(f7_=document.createElement("template"));var h=f7_;E.call(W,h.content.cloneNode(!0),F.content.firstChild);OtU=F}F=OtU;return F},{mode:2});var btX;var l7c;var Rc=function(){return _.n.apply(this,arguments)||this};
_.k(Rc,_.n);Rc.prototype.configureRendererStamper=function(){return{"data.textRenderers":{id:"text-renderers",mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"},cardItemBadgeRenderer:{component:"yt-card-item-badge-renderer"}}}}};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Rc.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],Rc.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],Rc.prototype,"data",void 0);Rc=_.T([_.$3({is:"yt-card-item-text-collection-renderer",disableElementRegistration:!0})],Rc);
_.r(Rc,"yt-card-item-text-collection-renderer",function(){if(l7c===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-text-collection-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_text_collection_renderer.yt.card.item.text.collection.renderer.css.js--\x3e<div id="text-renderers" text-alignment$="[[data.textAlignment]]" class="style-scope yt-card-item-text-collection-renderer"></div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);var W=F.content,E=W.insertBefore;btX===void 0&&(btX=document.createElement("template"));var h=btX;E.call(W,h.content.cloneNode(!0),F.content.firstChild);l7c=F}F=l7c;return F},{mode:2});var nvB;var yY_;var eE=function(){return _.n.apply(this,arguments)||this};
_.k(eE,_.n);eE.prototype.configureRendererStamper=function(){return{"data.textCollectionRenderer":{id:"card-item-text-collection-renderer",mapping:{cardItemTextCollectionRenderer:"yt-card-item-text-collection-renderer"}},"data.buttonRenderer":{id:"primary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{iconSize:"[[iconSize]]"}}}}}};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],eE.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],eE.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],eE.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Number)],eE.prototype,"iconSize",void 0);eE=_.T([_.$3({is:"yt-card-item-text-with-button-renderer",disableElementRegistration:!0})],eE);
_.r(eE,"yt-card-item-text-with-button-renderer",function(){if(yY_===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-text-with-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_text_with_button_renderer.yt.card.item.text.with.button.renderer.css.js--\x3e<div id="card-item-text-collection-renderer" class="style-scope yt-card-item-text-with-button-renderer"></div>\n<div id="primary-button" aria-hidden="true" class="style-scope yt-card-item-text-with-button-renderer"></div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);var W=F.content,E=W.insertBefore;nvB===void 0&&(nvB=document.createElement("template"));var h=nvB;E.call(W,h.content.cloneNode(!0),F.content.firstChild);yY_=F}F=yY_;return F},{mode:2});var Mb=function(){return _.n.apply(this,arguments)||this};
_.k(Mb,_.n);Mb.prototype.configureRendererStamper=function(){return{"data.summaryText":{id:"summary-text",mapping:{cardItemTextRenderer:"yt-card-item-text-renderer",cardItemTextWithButtonRenderer:{component:"yt-card-item-text-with-button-renderer",params:{iconSize:18}}}},"data.additionalMetadataText":{id:"additional-metadata-text",mapping:{cardItemTextRenderer:"yt-card-item-text-renderer"}},"data.price":{id:"price",mapping:{cardItemTextRenderer:"yt-card-item-text-renderer"}}}};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Mb.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],Mb.prototype,"ytComponentBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],Mb.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],Mb.prototype,"data",void 0);Mb=_.T([_.y({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-line-item-renderer"})],Mb);
_.r(Mb,"ytd-commerce-cart-summary-line-item-renderer",function(){if(La_!==void 0)return La_;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commerce-cart-summary-line-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="summary-content" class="style-scope ytd-commerce-cart-summary-line-item-renderer">\n  <div id="summary-text" class="style-scope ytd-commerce-cart-summary-line-item-renderer"></div>\n  <div id="additional-metadata-text" class="style-scope ytd-commerce-cart-summary-line-item-renderer"></div>\n</div>\n<div id="price" class="style-scope ytd-commerce-cart-summary-line-item-renderer"></div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return La_=F},{mode:1});_.Hr("cardItemSection","commerceCartCheckoutButtonRenderer",{component:"ytd-commerce-cart-checkout-button-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var gE=function(){var F=_.n.apply(this,arguments)||this;F.hidden=!1;return F};
_.k(gE,_.n);_.N=gE.prototype;_.N.configureRendererStamper=function(){return{"data.estimatedTotalLineItem":{id:"estimated-total-line-item",mapping:{commerceCartSummaryLineItemRenderer:"ytd-commerce-cart-summary-line-item-renderer"}},"data.checkoutButton":{id:"checkout-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}},"data.cartButton":{id:"cart-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.N.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutButton(),this.updateIsHidden(),this.updateSummary())};
_.N.updateSummary=function(){var F=this.commerceCartCheckoutButtonEntity,W;if(((W=this.data)==null?0:W.cartButton)&&F.checkoutSummaryText){var E,h=Tc((E=this.data)==null?void 0:E.estimatedTotalLineItem,"summaryText");this.set("data.estimatedTotalLineItem."+h+".cardItemTextRenderer.text",o$(F.checkoutSummaryText));if(F.checkoutDetailText){var d;E=Tc((d=this.data)==null?void 0:d.estimatedTotalLineItem,"price");this.set("data.estimatedTotalLineItem."+E+".cardItemTextRenderer.text",o$(F.checkoutDetailText))}if(F.checkoutAdditionalMetadataText){var V;
d=Tc((V=this.data)==null?void 0:V.estimatedTotalLineItem,"additionalMetadataText");this.set("data.estimatedTotalLineItem."+d+".cardItemTextRenderer.text",o$(F.checkoutAdditionalMetadataText))}}else F.estimatedTotalPrice&&(V=Tc((h=this.data)==null?void 0:h.estimatedTotalLineItem,"price"),this.set("data.estimatedTotalLineItem."+V+".cardItemTextRenderer.text",o$(F.estimatedTotalPrice)))};
_.N.updateIsHidden=function(){var F,W=(F=this.commerceCartCheckoutButtonEntity)==null?void 0:F.isHidden;W!==void 0&&(this.hidden=W)};
_.N.updateCheckoutButton=function(){var F,W=(F=this.commerceCartCheckoutButtonEntity)==null?void 0:F.isDisabled;W!==void 0&&this.set("data.checkoutButton.buttonRenderer.isDisabled",W);var E;F=(E=this.commerceCartCheckoutButtonEntity.checkoutButtonCommand)==null?void 0:E.innertubeCommand;F!==void 0&&this.set("data.checkoutButton.buttonRenderer.command",F);var h;E=(h=this.commerceCartCheckoutButtonEntity)==null?void 0:h.checkoutButtonText;E!==void 0&&this.set("data.checkoutButton.buttonRenderer.text",
{simpleText:E})};
gE.prototype.entityChanged=gE.prototype.entityChanged;_.T([_.J(_.am),_.Y("design:type",Object)],gE.prototype,"ytdReduxBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],gE.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],gE.prototype,"ytComponentBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],gE.prototype,"ytRendererstamperBehavior",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],gE.prototype,"fullWidth",void 0);_.T([_.O(),_.Y("design:type",Object)],gE.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],gE.prototype,"compact",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],gE.prototype,"hidden",void 0);
_.T([_.O({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:fhG}),_.Y("design:type",Object)],gE.prototype,"commerceCartCheckoutButtonEntity",void 0);_.T([_.ea("commerceCartCheckoutButtonEntity","data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],gE.prototype,"entityChanged",null);gE=_.T([_.y({disableElementRegistration:!0,is:"ytd-commerce-cart-checkout-button-renderer"})],gE);
_.r(gE,"ytd-commerce-cart-checkout-button-renderer",function(){if(saa!==void 0)return saa;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commerce-cart-checkout-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="estimated-total-line-item" class="style-scope ytd-commerce-cart-checkout-button-renderer"></div>\n<div id="checkout-button" class="style-scope ytd-commerce-cart-checkout-button-renderer"></div>\n<div id="cart-button" class="style-scope ytd-commerce-cart-checkout-button-renderer"></div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return saa=F},{mode:2});var ja_;_.it_={};
_.it_.YtTappableItemBehavior=[{properties:{tappableItemBehaviorTapEnabled:{type:Boolean,value:!1,observer:"tappableItemBehaviorOnTapEnabledChanged_"}},observers:["tappableItemBehaviorOnTapChanged_(data.onTap)"],listeners:{"yt-commerce-action-init-done":"tappableItemBehaviorOnServiceRequestFinished_","yt-service-request-error":"tappableItemBehaviorOnServiceRequestFinished_","yt-commerce-action-done":"tappableItemBehaviorOnServiceRequestFinished_"},created:function(){this.tappableItemBehaviorTargetId="";
this.tappableItemBehaviorBoundOnTappableItemKeyDown_=this.tappableItemBehaviorOnTappableItemKeyDown_.bind(this);this.tappableItemBehaviorBoundOnTappableItemTap_=this.tappableItemBehaviorOnTappableItemTap_.bind(this)},
attached:function(){this.tappableItemBehaviorGetTappableTarget_().addEventListener("keydown",this.tappableItemBehaviorBoundOnTappableItemKeyDown_,!0);this.tappableItemBehaviorGetTappableTarget_().addEventListener("click",_.UO(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
detached:function(){this.tappableItemBehaviorGetTappableTarget_().removeEventListener("keydown",this.tappableItemBehaviorBoundOnTappableItemKeyDown_,!0);this.tappableItemBehaviorGetTappableTarget_().removeEventListener("click",_.UO(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
tappableItemBehaviorOnTappableItemKeyDown_:function(F){!this.tappableItemBehaviorTapEnabled||F.keyCode!==13&&F.keyCode!==32||F.target!=this.tappableItemBehaviorGetTappableTarget_()||this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorOnTappableItemTap_:function(){this.tappableItemBehaviorTapEnabled&&this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorHandleTappableItemTap_:function(){var F=this.data.onTap;F.ypcGetCartEndpoint?(_.UT(this.hostElement,[F]),this.tappableItemBehaviorTapEnabled=!1):F.ypcOffersEndpoint?_.UT(this.hostElement,[F]):_.Rj(this.hostElement,[F],this.hostElement)},
tappableItemBehaviorOnTapChanged_:function(F){this.tappableItemBehaviorTapEnabled=!!F},
tappableItemBehaviorOnTapEnabledChanged_:function(){var F=this.tappableItemBehaviorGetTappableTarget_();this.tappableItemBehaviorTapEnabled?(F.setAttribute("tabIndex",0),F.setAttribute("role","button")):(F.removeAttribute("tabIndex"),F.removeAttribute("role"))},
tappableItemBehaviorOnServiceRequestFinished_:function(F){F.target==this&&(this.tappableItemBehaviorTapEnabled=!!this.data.onTap)},
tappableItemBehaviorGetTappableTarget_:function(){return this.tappableItemBehaviorTargetId?this.$[this.tappableItemBehaviorTargetId]:this.hostElement}}];var rYc;var TA_;var QG=function(){return _.n.apply(this,arguments)||this};
_.k(QG,_.n);QG.prototype.configureRendererStamper=function(){return{"data.primaryButtonRenderer":{id:"primary-button-renderer",mapping:_.Pr("sharingToggleButtonAndDefaultButton")},"data.secondaryButtonRenderer":{id:"secondary-button-renderer",mapping:_.Pr("sharingToggleButtonAndDefaultButton")}}};
_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],QG.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],QG.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],QG.prototype,"data",void 0);QG=_.T([_.$3({is:"yt-card-item-actions-renderer",disableElementRegistration:!0})],QG);
_.r(QG,"yt-card-item-actions-renderer",function(){if(TA_===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-actions-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_actions_renderer.yt.card.item.actions.renderer.css.js--\x3e<div id="secondary-button-renderer" hidden$="[[!data.secondaryButtonRenderer]]" class="style-scope yt-card-item-actions-renderer"></div>\n<div id="primary-button-renderer" hidden$="[[!data.primaryButtonRenderer]]" class="style-scope yt-card-item-actions-renderer"></div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;rYc===void 0&&(rYc=document.createElement("template"));var h=rYc;E.call(W,h.content.cloneNode(!0),F.content.firstChild);TA_=F}F=TA_;return F},{mode:2});var ovT;var GwH;var Y5O;var woc;var uTa;var S5B;var zj=function(){var F=_.n.apply(this,arguments)||this;F.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction_"};return F};
_.k(zj,_.n);zj.prototype.attached=function(){this.isDarkTheme_=document.documentElement.hasAttribute("dark")};
zj.prototype.handleDarkModeToggledAction_=function(F){this.isDarkTheme_=F};
zj.prototype.computeThemeImage_=function(F,W){if(!F||!F.imageLight)return!1;this.isCircular_=F.isCircular;F.imageWidth&&(this.hostElement.style.width=F.imageWidth+"px");F.imageHeight&&(this.hostElement.style.height=F.imageHeight+"px");F.borderWidth&&(this.image.style.borderWidth=F.borderWidth+"px",this.image.style.borderStyle="solid");F.borderColor&&(this.image.style.borderColor=_.XC(F.borderColor));return W&&F.imageDark?F.imageDark:F.imageLight};
zj.prototype.computeThemeIcon_=function(F){var W,E;if(!(F==null?0:(W=F.themedIcon)==null?0:(E=W.icon)==null?0:E.iconType))return!1;this.icon.style.color=Nb[F.themedIcon.iconColor||"CARD_ITEM_COLOR_GENERAL_BACKGROUND_A"];this.icon.style.width=(F.imageWidth||18)+"px";this.icon.style.height=(F.imageHeight||18)+"px";return _.Vd(F.themedIcon.icon.iconType)};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],zj.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],zj.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(HtH.YtCardItemBoxBehavior),_.Y("design:type",Object)],zj.prototype,"ytCardItemBoxBehavior",void 0);_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],zj.prototype,"ytActionHandlerBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],zj.prototype,"data",void 0);
_.T([_.O({value:!1}),_.Y("design:type",Boolean)],zj.prototype,"fit",void 0);_.T([_.O(),_.Y("design:type",Boolean)],zj.prototype,"isDarkTheme_",void 0);_.T([_.O({computed:"computeThemeImage_(data, isDarkTheme_)"}),_.Y("design:type",Object)],zj.prototype,"themeImage_",void 0);_.T([_.O({computed:"computeThemeIcon_(data)"}),_.Y("design:type",Object)],zj.prototype,"themeIcon_",void 0);_.T([_.O({reflectToAttribute:!0,value:!1}),_.Y("design:type",Object)],zj.prototype,"isCircular_",void 0);
_.T([_.gQ("#image"),_.Y("design:type",Object)],zj.prototype,"image",void 0);_.T([_.gQ("#icon"),_.Y("design:type",Object)],zj.prototype,"icon",void 0);zj=_.T([_.$3({is:"yt-themed-image-renderer",disableElementRegistration:!0})],zj);
_.r(zj,"yt-themed-image-renderer",function(){if(S5B===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-themed-image-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_themed_image_renderer.yt.themed.image.renderer.css.js--\x3e<yt-img-shadow id="image" fit="[[fit]]" height="[[data.imageHeight]]" hidden="[[!themeImage_]]" thumbnail="[[themeImage_]]" width="[[data.imageWidth]]" class="style-scope yt-themed-image-renderer">\n</yt-img-shadow>\n<yt-icon id="icon" hidden="[[!themeIcon_]]" icon="[[themeIcon_]]" class="style-scope yt-themed-image-renderer">\n</yt-icon>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;uTa===void 0&&(uTa=document.createElement("template"));var h=uTa;E.call(W,h.content.cloneNode(!0),F.content.firstChild);S5B=F}F=S5B;return F},{mode:2});var td=function(){return _.n.apply(this,arguments)||this};
_.k(td,_.n);td.prototype.configureRendererStamper=function(){return{"data.imageRenderer":{id:"themed-image-renderer",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}},"data.textCollectionRenderer":{id:"card-item-text-collection-renderer",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}}}};
td.prototype.computeImagePlacement_=function(F){return F||"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN"};
_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],td.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],td.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],td.prototype,"data",void 0);_.T([_.O({value:"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN",computed:"computeImagePlacement_(data.imagePlacement)",reflectToAttribute:!0}),_.Y("design:type",String)],td.prototype,"imagePlacement",void 0);
td=_.T([_.$3({is:"yt-card-item-text-with-image-renderer",disableElementRegistration:!0})],td);
_.r(td,"yt-card-item-text-with-image-renderer",function(){if(woc===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-text-with-image-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_text_with_image_renderer.yt.card.item.text.with.image.renderer.css.js--\x3e<div id="themed-image-renderer" class="style-scope yt-card-item-text-with-image-renderer"></div>\n<div id="card-item-text-collection-renderer" class="style-scope yt-card-item-text-with-image-renderer"></div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;Y5O===void 0&&(Y5O=document.createElement("template"));var h=Y5O;E.call(W,h.content.cloneNode(!0),F.content.firstChild);woc=F}F=woc;return F},{mode:2});var C_=function(){return _.n.apply(this,arguments)||this};
_.k(C_,_.n);C_.prototype.configureRendererStamper=function(){return{"data.errorTextRenderer":{id:"error-text-renderer",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"},cardItemTextWithImageRenderer:{component:"yt-card-item-text-with-image-renderer"}}}}};
_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],C_.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],C_.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],C_.prototype,"data",void 0);C_=_.T([_.$3({is:"yt-card-item-error-renderer",disableElementRegistration:!0})],C_);
_.r(C_,"yt-card-item-error-renderer",function(){if(GwH===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-error-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_error_renderer.yt.card.item.error.renderer.css.js--\x3e<div id="triangle-up-container" class="style-scope yt-card-item-error-renderer">\n  <div id="triangle-up" class="style-scope yt-card-item-error-renderer"></div>\n</div>\n<div id="error-text-renderer" class="style-scope yt-card-item-error-renderer"></div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;ovT===void 0&&(ovT=document.createElement("template"));var h=ovT;E.call(W,h.content.cloneNode(!0),F.content.firstChild);GwH=F}F=GwH;return F},{mode:2});var poU;var m8T;_.Hr("itemSectionRenderer","CardItemRenderer","yt-card-item-renderer");var Bv=function(){return _.n.apply(this,arguments)||this};
_.k(Bv,_.n);_.N=Bv.prototype;
_.N.configureRendererStamper=function(){return{"data.headingRenderer":{id:"heading-renderer",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"},cardItemTextWithImageRenderer:{component:"yt-card-item-text-with-image-renderer"},cardItemTextWithButtonRenderer:{component:"yt-card-item-text-with-button-renderer"}}},"data.descriptionRenderer":{id:"description-renderer",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}},"data.additionalInfoRenderer":{id:"additional-info-renderer",
mapping:{cardItemActionsRenderer:{component:"yt-card-item-actions-renderer"},cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"},themedImageRenderer:{component:"yt-themed-image-renderer"},cardItemTextWithButtonRenderer:{component:"yt-card-item-text-with-button-renderer"},cardItemBadgeRenderer:{component:"yt-card-item-badge-renderer"}}},"data.errorRenderer":{id:"error-renderer",mapping:{cardItemErrorRenderer:{component:"yt-card-item-error-renderer"}}},"data.headerPromoRenderer":{id:"header-promo-renderer",
mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"}}},"data.footerRenderer":{id:"footer-renderer",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}}}};
_.N.created=function(){this.tappableItemBehaviorTargetId=this.cardItemBoxBehaviorPaddingTargetId="main-content"};
_.N.backgroundColorChanged_=function(){var F,W=(F=this.data)==null?void 0:F.backgroundColor;F=Nb[W||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.Z(this.hostElement).querySelector("#main-content").style.backgroundColor=F};
_.N.headerPromoBackgroundColorChanged_=function(){var F,W=(F=this.data)==null?void 0:F.headerPromoBackgroundColor;F=Nb[W||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.Z(this.hostElement).querySelector("#header-promo-renderer").style.backgroundColor=F};
_.N.errorRendererVisibilityChanged_=function(){var F=this.isExpanded_,W;this.isErrorRendererVisible_=!((W=this.data)==null||!W.errorRenderer)&&!F};
_.N.onYtToggleButton_=function(F,W){this.isExpanded_=W.toggled};
Bv.prototype.onYtToggleButton_=Bv.prototype.onYtToggleButton_;Bv.prototype.errorRendererVisibilityChanged_=Bv.prototype.errorRendererVisibilityChanged_;Bv.prototype.headerPromoBackgroundColorChanged_=Bv.prototype.headerPromoBackgroundColorChanged_;Bv.prototype.backgroundColorChanged_=Bv.prototype.backgroundColorChanged_;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Bv.prototype,"ytRendererBehavior",void 0);
_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],Bv.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(HtH.YtCardItemBoxBehavior),_.Y("design:type",Object)],Bv.prototype,"ytCardItemBoxBehavior",void 0);_.T([_.J(_.it_.YtTappableItemBehavior),_.Y("design:type",Object)],Bv.prototype,"ytTappableItemBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],Bv.prototype,"data",void 0);_.T([_.O({value:!1}),_.Y("design:type",Boolean)],Bv.prototype,"isExpanded_",void 0);
_.T([_.O({value:!1}),_.Y("design:type",Boolean)],Bv.prototype,"isErrorRendererVisible_",void 0);_.T([_.ea("data.backgroundColor"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Bv.prototype,"backgroundColorChanged_",null);_.T([_.ea("data.headerPromoBackgroundColor"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Bv.prototype,"headerPromoBackgroundColorChanged_",null);
_.T([_.ea("data.errorRenderer","isExpanded_"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Bv.prototype,"errorRendererVisibilityChanged_",null);_.T([_.R4("yt-toggle-button"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event,Object]),_.Y("design:returntype")],Bv.prototype,"onYtToggleButton_",null);Bv=_.T([_.$3({is:"yt-card-item-renderer",disableElementRegistration:!0})],Bv);
_.r(Bv,"yt-card-item-renderer",function(){if(m8T===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_renderer.yt.card.item.renderer.css.js--\x3e<div id="main-content" primary-container-placement$="[[data.primaryContainerPlacement]]" box-style$="[[data.cardItemBoxStyle]]" aria-label="[[data.accessibilityData.label]]" class="style-scope yt-card-item-renderer">\n  <div id="main-content-negative-margin-wrapper" content-placement$="[[data.contentPlacement]]" class="style-scope yt-card-item-renderer">\n    <div id="heading-description-container" class="style-scope yt-card-item-renderer">\n       <div id="header-promo-container" class="style-scope yt-card-item-renderer">\n          <div id="heading-renderer" hidden$="[[!data.headingRenderer]]" class="style-scope yt-card-item-renderer">\n          </div>\n          <div id="header-promo-renderer" hidden$="[[!data.headerPromoRenderer]]" class="style-scope yt-card-item-renderer">\n          </div>\n      </div>\n      <div id="description-renderer" hidden$="[[!data.descriptionRenderer]]" class="style-scope yt-card-item-renderer">\n      </div>\n    </div>\n    <div id="additional-info-renderer" additional-info-placement$="[[data.additionalInfoPlacement]]" hidden$="[[!data.additionalInfoRenderer]]" class="style-scope yt-card-item-renderer">\n    </div>\n    <div id="footer-renderer" hidden$="[[!data.footerRenderer]]" class="style-scope yt-card-item-renderer"></div>\n  </div>\n</div>\n<div id="error-renderer" hidden$="[[!isErrorRendererVisible_]]" class="style-scope yt-card-item-renderer"></div>\n<div id="divider" divider-style$="[[data.dividerStyle]]" hidden$="[[!data.dividerStyle]]" class="style-scope yt-card-item-renderer"></div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);var W=F.content,E=W.insertBefore;poU===void 0&&(poU=document.createElement("template"));var h=poU;E.call(W,h.content.cloneNode(!0),F.content.firstChild);m8T=F}F=m8T;return F},{mode:2});_.Hr("cardItemSection","commerceCartHeaderRenderer",{component:"ytd-commerce-cart-header-renderer",noInjection:!0});var vv=function(){var F=_.n.apply(this,arguments)||this;F.hidden=!1;return F};
_.k(vv,_.n);_.N=vv.prototype;_.N.configureRendererStamper=function(){return{"data.item":{id:"item",mapping:{cardItemRenderer:"yt-card-item-renderer"}}}};
_.N.entityChanged=function(){this.commerceCartHeaderEntity&&(this.updateIsHidden(),this.updateSummaryText(),this.updateCheckoutButton(),this.updateTitle())};
_.N.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var F,W=(F=this.commerceCartHeaderEntity)==null?void 0:F.isHidden;W!==void 0&&(this.hidden=W)}};
_.N.updateTitle=function(){var F=this.commerceCartHeaderEntity.isDisabled,W,E,h=(E=_.D((W=this.data)==null?void 0:W.item,YXu))==null?void 0:E.headingRenderer;h&&(W=Tc(h,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+W+".0.cardItemTextRenderer.textColor",F?"CARD_ITEM_COLOR_TEXT_DISABLED":"CARD_ITEM_COLOR_TEXT_PRIMARY"))};
_.N.updateSummaryText=function(){var F=this.commerceCartHeaderEntity;if(this.compact){var W,E,h=(E=_.D((W=this.data)==null?void 0:W.item,YXu))==null?void 0:E.headingRenderer;h&&(W=Tc(h,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+W+".1.cardItemTextRenderer.text",F.shortHeaderSummaryText?o$(F.shortHeaderSummaryText):F.headerSummaryText?o$(F.headerSummaryText):""))}else{var d;if(W=(d=_.D((h=this.data)==null?void 0:h.item,YXu))==null?void 0:d.additionalInfoRenderer)W=Tc(W,
"cardItemTextRenderer"),this.set("data.item.cardItemRenderer.additionalInfoRenderer."+W+".text",F.headerSummaryText?o$(F.headerSummaryText):"")}};
_.N.updateCheckoutButton=function(){var F=this.commerceCartHeaderEntity,W,E,h=(E=_.D((W=this.data)==null?void 0:W.item,YXu))==null?void 0:E.additionalInfoRenderer;W=Tc(h,"buttonRenderer");var d;E=(d=this.commerceCartHeaderEntity)==null?void 0:d.isButtonDisabled;var V;d=(V=this.commerceCartHeaderEntity)==null?void 0:V.isButtonHidden;E!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+W+".buttonRenderer.isDisabled",E);d!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer.isHidden",
d);var R;F=(R=F.checkoutButtonCommand)==null?void 0:R.innertubeCommand;F!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+W+".buttonRenderer.command",F)};
vv.prototype.entityChanged=vv.prototype.entityChanged;_.T([_.J(_.am),_.Y("design:type",Object)],vv.prototype,"ytdReduxBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],vv.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],vv.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],vv.prototype,"data",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],vv.prototype,"compact",void 0);_.T([_.O({selectorArgs:["data.commerceCartHeaderEntityKey"],selector:function(F,W){return _.Mn(F.entities,"commerceCartHeaderEntity",W)}}),
_.Y("design:type",Object)],vv.prototype,"commerceCartHeaderEntity",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],vv.prototype,"hidden",void 0);_.T([_.ea("commerceCartHeaderEntity","data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],vv.prototype,"entityChanged",null);vv=_.T([_.y({disableElementRegistration:!0,is:"ytd-commerce-cart-header-renderer"})],vv);
_.r(vv,"ytd-commerce-cart-header-renderer",function(){if(ja_!==void 0)return ja_;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commerce-cart-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="item" class="style-scope ytd-commerce-cart-header-renderer"></div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return ja_=F},{mode:1});var KaB;var F$_=_.qS(function(F,W){var E;return(E=F.onChangeCallback)==null?void 0:E.call(F,W)},1E3),W$M=_.GK(function(F){var W=F.data;
var E=F.iconMinus;F=F.iconPlus;var h=function(){return!!W().disabled},d=_.U(_.g$(0,void 0,"r56zNb")),V=d.next().value,R=d.next().value;
d={};d=_.ec("yt-spec-quantity-incrementer-shape__icon",(d["yt-spec-quantity-incrementer-shape__icon--disabled"]=function(){return h()||V()===(W().onRemoveCommand?0:1)},d));
var M={};M=_.ec("yt-spec-quantity-incrementer-shape__icon",(M["yt-spec-quantity-incrementer-shape__icon--disabled"]=function(){return V()>=W().maxValue||h()},M));
var g={};g=_.ec("yt-spec-quantity-incrementer-shape__text",(g["yt-spec-quantity-incrementer-shape__text--invalid"]=function(){return V()>W().maxValue},g["yt-spec-quantity-incrementer-shape__text--text-disabled"]=h,g));
var t=_.tb(function(){if(V()===1){var B,I;(I=(B=W()).onRemoveCommand)==null||I.call(B)}B=V()>W().maxValue?W().maxValue:V()-1;R(B);F$_(W(),B);return!1}),C=_.tb(function(){if(V()===W().maxValue)return!1;
var B=V()+1;R(B);F$_(W(),B);return!1});
_.$F(function(){R(W().value)});
return _.z("quantity-incrementer-shape",null,_.z("div",{class:"yt-spec-quantity-incrementer-shape"},_.z("button",{class:"yt-spec-quantity-incrementer-shape__button",disabled:function(){return V()===(W().onRemoveCommand?0:1)||h()},
"aria-label":function(){return V()!==1?W().minusLabel:W().minimumReachedLabel},
"on:click":t},_.z(_.xY,{model:{circular:!0}}),_.z("div",{class:"yt-spec-quantity-incrementer-shape__iconWrapper"},_.z("div",{class:d},E()))),_.z("div",{class:g},V),_.z("button",{class:"yt-spec-quantity-incrementer-shape__button",disabled:function(){return V()>=W().maxValue||h()},
"aria-label":function(){return V()!==W().maxValue?W().plusLabel:W().maximumReachedLabel},
"on:click":C},_.z(_.xY,{model:{circular:!0}}),_.z("div",{class:"yt-spec-quantity-incrementer-shape__iconWrapper"},_.z("div",{class:M},F())))))},"Jd");_.pK(_.GK(function(F){function W(){E().onRemoveCommand&&_.fK(E().onRemoveCommand)}
var E=F.data;var h=_.D1(N0Y,function(){return E().quantityIncrementerEntityKey});
return _.z("yt-quantity-incrementer-view-model",null,_.z(W$M,{data:function(){var d=E(),V;var R=h()?!((V=h())==null||!V.disabled):!1;var M;V=h()?(M=h())==null?void 0:M.quantity:E().quantity;return Byr(d,R,W,V)},
iconMinus:function(){return _.z(_.I3,{icon:"BAR_HORIZONTAL",className:_.gY("yt-spec-quantity-incrementer-view-model","yt-spec-quantity-incrementer-view-model__quantity-incrementer-minus-icon")})},
iconPlus:function(){return _.z(_.I3,{icon:"ADD",className:_.gY("yt-spec-quantity-incrementer-view-model","yt-spec-quantity-incrementer-view-model__quantity-incrementer-plus-icon")})}}))},"Kd"),"yt-quantity-incrementer-view-model",{props:{data:_.TS}});var Ic=function(){var F=_.n.apply(this,arguments)||this;F.compact=!1;F.hasQuantityIncrementer=!1;return F};
_.k(Ic,_.n);Ic.prototype.configureRendererStamper=function(){return{"data.picker":{id:"picker",mapping:{quantityIncrementerViewModel:"yt-quantity-incrementer-view-model",dropdownRenderer:{component:"ytd-dropdown-renderer",params:{autosize:!0,minAutosizeWidth:0,noUnderline:!0,noLabelFloat:!0,usePrimaryColor:!0}}}},"data.price":{id:"price",mapping:{cardItemTextRenderer:"yt-card-item-text-renderer"}}}};
Ic.prototype.computeHasQuantityIncrementer=function(){var F;return!!_.D((F=this.data)==null?void 0:F.picker,ptB)};
Ic.prototype.onLabelClick=function(){var F;(F=this.dropdownEl)==null||F.open()};
_.T([_.gQ("ytd-dropdown-renderer"),_.Y("design:type",Object)],Ic.prototype,"dropdownEl",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Ic.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],Ic.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],Ic.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",String)],Ic.prototype,"quantityColor",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],Ic.prototype,"compact",void 0);_.T([_.O({reflectToAttribute:!0,computed:"computeHasQuantityIncrementer(data)"}),_.Y("design:type",Object)],Ic.prototype,"hasQuantityIncrementer",void 0);Ic=_.T([_.y({disableElementRegistration:!0,is:"ytd-commerce-cart-item-quantity-picker-renderer"})],Ic);
_.r(Ic,"ytd-commerce-cart-item-quantity-picker-renderer",function(){if(KaB!==void 0)return KaB;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commerce-cart-item-quantity-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="picker-label" on-click="onLabelClick" class="style-scope ytd-commerce-cart-item-quantity-picker-renderer">[[getSimpleString(data.pickerLabel)]]</div>\n<div id="picker" class="style-scope ytd-commerce-cart-item-quantity-picker-renderer"></div>\n<div id="price" class="style-scope ytd-commerce-cart-item-quantity-picker-renderer"></div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return KaB=F},{mode:1});var EN_;var hei;var cv=function(){return _.n.apply(this,arguments)||this};
_.k(cv,_.n);cv.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
cv.prototype.entityChanged=function(){this.disabledCartItemEntity&&(this.updateTitle(),this.updateButton())};
cv.prototype.updateTitle=function(){var F=this.disabledCartItemEntity;F.disableActionName&&this.set("data.title",o$(F.disableActionName))};
cv.prototype.updateButton=function(){var F,W=(F=this.disabledCartItemEntity.undoCommand)==null?void 0:F.innertubeCommand;W!==void 0&&(this.set("data.actionButton.buttonRenderer.command",W),this.set("data.actionButton.buttonRenderer.isDisabled",!1))};
cv.prototype.entityChanged=cv.prototype.entityChanged;_.T([_.J(_.am),_.Y("design:type",Object)],cv.prototype,"ytdReduxBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],cv.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],cv.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O({selectorArgs:["data.disabledCartItemEntityKey"],selector:function(F,W){return _.Mn(F.entities,"disabledCartItemEntity",W)}}),
_.Y("design:type",Object)],cv.prototype,"disabledCartItemEntity",void 0);_.T([_.O(),_.Y("design:type",Object)],cv.prototype,"data",void 0);_.T([_.ea("disabledCartItemEntity","data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],cv.prototype,"entityChanged",null);cv=_.T([_.y({disableElementRegistration:!0,is:"ytd-disabled-cart-item-renderer"})],cv);
_.r(cv,"ytd-disabled-cart-item-renderer",function(){if(hei!==void 0)return hei;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-disabled-cart-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="text-container" class="style-scope ytd-disabled-cart-item-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-disabled-cart-item-renderer"></yt-formatted-string>\n  <yt-formatted-string id="description" text="[[data.description]]" class="style-scope ytd-disabled-cart-item-renderer"></yt-formatted-string>\n</div>\n<div id="action-button" class="style-scope ytd-disabled-cart-item-renderer"></div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return hei=F},{mode:1});_.Hr("cardItemSection","commerceCartItemRenderer",{component:"ytd-commerce-cart-item-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var DL=function(){var F=_.n.apply(this,arguments)||this;F.compact=!1;F.hidden=!1;F.errorHidden=!1;F.noOnTap=!1;return F};
_.k(DL,_.n);_.N=DL.prototype;
_.N.configureRendererStamper=function(){return{"data.title":{id:"title",mapping:{cardItemTextRenderer:"yt-card-item-text-renderer"}},"data.textMetadata":{id:"text-metadata",mapping:{cardItemTextRenderer:"yt-card-item-text-renderer"}},"data.merchantUpdateText":{id:"merchant-update-text",mapping:{cardItemTextRenderer:"yt-card-item-text-renderer"}},"data.cartItemNotification":{id:"cart-item-notification",mapping:{cardItemTextWithImageRenderer:"yt-card-item-text-with-image-renderer"}},"data.cardItemActions":{id:"cart-item-actions",
mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{disableTextTransform:"[[compact]]"}}},events:!0},"data.quantityPicker":{id:"quantity-picker",mapping:{commerceCartItemQuantityPickerRenderer:{component:"ytd-commerce-cart-item-quantity-picker-renderer",properties:{compact:"[[compact]]",quantityColor:"[[commerceCartItemEntity.quantityColor]]"}}}},"data.disabledCartItem":{id:"disabled-cart-item",mapping:{disabledCartItemRenderer:"ytd-disabled-cart-item-renderer"}}}};
_.N.entityChanged=function(){this.commerceCartItemEntity&&(this.updateQuantity(),this.updateIsHidden(),this.updateHideErrorMessage())};
_.N.onYtRendererstamperFinished=function(){if(this.firstButtonElement){var F=this.firstButtonElement;F.alignByText=!0;F.iconAlignByText=!0}};
_.N.computeNoOnTap=function(F){return!F};
_.N.updateQuantityColor=function(){if(this.pickerElement){var F,W=(F=this.commerceCartItemEntity)==null?void 0:F.quantityColor;this.pickerElement.quantityColor=W}};
_.N.updateTotalPriceColor=function(){var F,W=(F=this.commerceCartItemEntity)==null?void 0:F.totalPriceColor;if(W){var E;F=_.D((E=this.data)==null?void 0:E.quantityPicker,uba);if(E=_.D(F==null?void 0:F.price,wtz))E.textColor=W}};
_.N.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var F,W=(F=this.commerceCartItemEntity)==null?void 0:F.isHidden;W!==void 0&&(this.hidden=W)}};
_.N.updateHideErrorMessage=function(){var F,W=(F=this.commerceCartItemEntity)==null?void 0:F.hideErrorMessage;W!==void 0&&(this.errorHidden=W)};
_.N.updateQuantity=function(){var F=this,W,E=(W=this.commerceCartItemEntity)==null?void 0:W.quantity,h;W=(h=this.commerceCartItemEntity)==null?void 0:h.totalPrice;if(E){this.updateTotalPriceColor();this.updateQuantityColor();var d;h=_.D((d=this.data)==null?void 0:d.quantityPicker,uba);if(d=_.D(h==null?void 0:h.price,wtz))d.text=W?{simpleText:W.content}:void 0;if(W=_.D(h==null?void 0:h.picker,ptB))W.quantity=E;var V;if(d=(V=_.D(h==null?void 0:h.picker,ddX))==null?void 0:V.entries){V=!1;W=void 0;d=
_.U(d);for(h=d.next();!h.done;h=d.next())h=h.value,h.dropdownItemRenderer&&(W||(W=h.dropdownItemRenderer),h.dropdownItemRenderer.isSelected=!1,E===h.dropdownItemRenderer.int32Value&&(V=!0,h.dropdownItemRenderer.isSelected=!0));!V&&W&&(W.isSelected=!0)}_.wT(this,function(){var R;F.set("data.quantityPicker",_.xd.unsafeClone((R=F.data)==null?void 0:R.quantityPicker))})}};
DL.prototype.onYtRendererstamperFinished=DL.prototype.onYtRendererstamperFinished;DL.prototype.entityChanged=DL.prototype.entityChanged;_.T([_.O(),_.Y("design:type",Object)],DL.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],DL.prototype,"compact",void 0);_.T([_.J(_.am),_.Y("design:type",Object)],DL.prototype,"ytdReduxBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],DL.prototype,"ytRendererBehavior",void 0);
_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],DL.prototype,"ytComponentBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],DL.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O({selectorArgs:["data.commerceCartItemEntityKey"],selector:function(F,W){return _.Mn(F.entities,"commerceCartItemEntity",W)}}),
_.Y("design:type",Object)],DL.prototype,"commerceCartItemEntity",void 0);_.T([_.O(),_.Y("design:type",Object)],DL.prototype,"quantityPicker",void 0);_.T([_.O(),_.Y("design:type",Object)],DL.prototype,"compactQuantityPicker",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],DL.prototype,"hidden",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],DL.prototype,"errorHidden",void 0);
_.T([_.O({reflectToAttribute:!0,computed:"computeNoOnTap(data.onTap)"}),_.Y("design:type",Object)],DL.prototype,"noOnTap",void 0);_.T([_.gQ("ytd-commerce-cart-item-quantity-picker-renderer"),_.Y("design:type",Object)],DL.prototype,"pickerElement",void 0);_.T([_.gQ("yt-button-renderer"),_.Y("design:type",Element)],DL.prototype,"firstButtonElement",void 0);
_.T([_.ea("commerceCartItemEntity","data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],DL.prototype,"entityChanged",null);_.T([_.R4("yt-rendererstamper-finished"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],DL.prototype,"onYtRendererstamperFinished",null);DL=_.T([_.y({disableElementRegistration:!0,is:"ytd-commerce-cart-item-renderer"})],DL);
_.r(DL,"ytd-commerce-cart-item-renderer",function(){if(EN_!==void 0)return EN_;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commerce-cart-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" hidden="[[commerceCartItemEntity.isDisabled]]" class="style-scope ytd-commerce-cart-item-renderer">\n  <a id="img-container" class="yt-simple-endpoint style-scope ytd-commerce-cart-item-renderer" href$="[[computeHref_(data.onTap)]]" data="[[data.onTap]]" tabindex="-1">\n    <yt-img-shadow id="image" object-fit="CONTAIN" thumbnail="[[data.cartItemImage]]" width="200" class="style-scope ytd-commerce-cart-item-renderer">\n    </yt-img-shadow>\n  </a>\n  <div id="content" class="style-scope ytd-commerce-cart-item-renderer">\n    <div id="item" class="style-scope ytd-commerce-cart-item-renderer">\n      <div id="info" class="style-scope ytd-commerce-cart-item-renderer">\n        <div id="cart-item-notification" class="style-scope ytd-commerce-cart-item-renderer"></div>\n        <h3 class="style-scope ytd-commerce-cart-item-renderer">\n            <a class="yt-simple-endpoint style-scope ytd-commerce-cart-item-renderer" href$="[[computeHref_(data.onTap)]]" data="[[data.onTap]]">\n              <div id="title" class="style-scope ytd-commerce-cart-item-renderer"></div>\n            </a>\n        </h3>\n        <div id="text-metadata" class="style-scope ytd-commerce-cart-item-renderer"></div>\n        <div id="merchant-update-text" class="style-scope ytd-commerce-cart-item-renderer"></div>\n      </div>\n      <div id="quantity-picker" class="style-scope ytd-commerce-cart-item-renderer"></div>\n    </div>\n    <div id="actions" class="style-scope ytd-commerce-cart-item-renderer">\n      <div id="cart-item-actions" class="style-scope ytd-commerce-cart-item-renderer"></div>\n    </div>\n  </div>\n</div>\n<div id="disabled-cart-item" hidden="[[!commerceCartItemEntity.isDisabled]]" class="style-scope ytd-commerce-cart-item-renderer"></div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return EN_=F},{mode:_.E6("kevlar_poly_si_batch_j028")?1:2});var dKz;var NK_;var xD=function(){return _.n.apply(this,arguments)||this};
_.k(xD,_.n);xD.prototype.configureRendererStamper=function(){return{"data.summaryLineItems":{id:"summary-line-items",mapping:{commerceCartSummaryLineItemRenderer:"ytd-commerce-cart-summary-line-item-renderer"}},"data.checkoutButton":{id:"checkout-button",mapping:{commerceCartCheckoutButtonRenderer:{component:"ytd-commerce-cart-checkout-button-renderer",params:{fullWidth:!0}}}}}};
xD.prototype.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutLineItems(),this.updateIsHidden())};
xD.prototype.updateCheckoutLineItems=function(){var F,W=(F=this.commerceCartCheckoutButtonEntity)==null?void 0:F.checkoutLineItems;W&&(F=W.map(function(E){a:{var h=E.price,d=E.description;switch(E.style){case "COMMERCE_CHECKOUT_LINE_ITEM_STYLE_MERCHANT":E={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:o$(d),style:"CARD_ITEM_TEXT_STYLE_BODY_2A",textColor:"CARD_ITEM_COLOR_TEXT_SECONDARY",containerMargin:{top:"CARD_ITEM_UX_SPACE_2",right:"CARD_ITEM_UX_SPACE_0",bottom:"CARD_ITEM_UX_SPACE_2",
left:"CARD_ITEM_UX_SPACE_4"}}},price:{cardItemTextRenderer:{text:o$(h),style:"CARD_ITEM_TEXT_STYLE_BODY_2A",textColor:"CARD_ITEM_COLOR_TEXT_SECONDARY",containerMargin:{top:"CARD_ITEM_UX_SPACE_0",right:"CARD_ITEM_UX_SPACE_0",bottom:"CARD_ITEM_UX_SPACE_0",left:"CARD_ITEM_UX_SPACE_0"}}}}};break a;default:E={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:o$(d),style:"CARD_ITEM_TEXT_STYLE_BODY_2A",textColor:"CARD_ITEM_COLOR_TEXT_PRIMARY",containerMargin:{top:"CARD_ITEM_UX_SPACE_2",
right:"CARD_ITEM_UX_SPACE_0",bottom:"CARD_ITEM_UX_SPACE_2",left:"CARD_ITEM_UX_SPACE_0"}}},price:{cardItemTextRenderer:{text:o$(h),style:"CARD_ITEM_TEXT_STYLE_BODY_2A",textColor:"CARD_ITEM_COLOR_TEXT_PRIMARY",containerMargin:{top:"CARD_ITEM_UX_SPACE_0",right:"CARD_ITEM_UX_SPACE_0",bottom:"CARD_ITEM_UX_SPACE_0",left:"CARD_ITEM_UX_SPACE_0"}}}}}}}return E}),this.set("data.summaryLineItems",F))};
xD.prototype.updateIsHidden=function(){var F,W=(F=this.commerceCartCheckoutButtonEntity)==null?void 0:F.isHidden;W!==void 0&&(this.hostElement.hidden=W)};
xD.prototype.entityChanged=xD.prototype.entityChanged;_.T([_.J(_.am),_.Y("design:type",Object)],xD.prototype,"ytdReduxBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],xD.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],xD.prototype,"ytComponentBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],xD.prototype,"ytRendererstamperBehavior",void 0);
_.T([_.O(),_.Y("design:type",Object)],xD.prototype,"data",void 0);_.T([_.O({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:fhG}),_.Y("design:type",Object)],xD.prototype,"commerceCartCheckoutButtonEntity",void 0);_.T([_.ea("commerceCartCheckoutButtonEntity","data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],xD.prototype,"entityChanged",null);xD=_.T([_.y({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-renderer"})],xD);
_.r(xD,"ytd-commerce-cart-summary-renderer",function(){if(NK_!==void 0)return NK_;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commerce-cart-summary-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" class="style-scope ytd-commerce-cart-summary-renderer">[[getSimpleString(data.title)]]</div>\n<div id="summary-line-items" class="style-scope ytd-commerce-cart-summary-renderer"></div>\n<div id="checkout-button" class="style-scope ytd-commerce-cart-summary-renderer"></div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return NK_=F},{mode:1});var Vpi={};Vpi.InjectBehavior=[e7R.InjectBehavior];var UK_;var Rep;var kD=function(){return _.n.apply(this,arguments)||this};
_.k(kD,_.n);
kD.prototype.configureRendererStamper=function(){return{"data.sectionHeading":{id:"section-heading",mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"}}},"data.image":{id:"image",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}},"data.title":{id:"title",mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"}}},"data.subtitle":{id:"subtitle",mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"}}},"data.additionalMetadata":{id:"additional-metadata",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}},
"data.activityMetadata":{id:"activity-metadata",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}},"data.menu":{id:"menu",mapping:_.Pr("menuRenderer")}}};
kD.prototype.onMenuTap=function(F){F.stopPropagation()};
_.Sn.Object.defineProperties(kD.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.accessibilityData&&this.data.accessibilityData.label?this.data.accessibilityData.label:""}},
sectionHeadingVisible:{configurable:!0,enumerable:!0,get:function(){var F,W;return!(((F=this.data)==null||!F.sectionHeading)&&((W=this.data)==null?void 0:W.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
imageVisible:{configurable:!0,enumerable:!0,get:function(){var F,W;return!(((F=this.data)==null||!F.image)&&((W=this.data)==null?void 0:W.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
menuVisible:{configurable:!0,enumerable:!0,get:function(){var F,W;return!(((F=this.data)==null||!F.menu)&&((W=this.data)==null?void 0:W.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}}});
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],kD.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],kD.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.it_.YtTappableItemBehavior),_.Y("design:type",Object)],kD.prototype,"ytTappableItemBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],kD.prototype,"data",void 0);
_.T([_.O({reflectToAttribute:!0}),_.a("data.accessibilityData"),_.Y("design:type",String),_.Y("design:paramtypes",[])],kD.prototype,"ariaLabel",null);_.T([_.a("data.sectionHeading","data.layout"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],kD.prototype,"sectionHeadingVisible",null);_.T([_.a("data.image","data.layout"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],kD.prototype,"imageVisible",null);
_.T([_.a("data.menu","data.layout"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],kD.prototype,"menuVisible",null);kD=_.T([_.$3({is:"yt-activity-item-renderer",disableElementRegistration:!0})],kD);
_.r(kD,"yt-activity-item-renderer",function(){if(Rep===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-activity-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_activity_item_renderer.yt.activity.item.renderer.css.js--\x3e<div class="activity-item-contents style-scope yt-activity-item-renderer">\n  <div id="section-heading" tabindex="-1" aria-hidden="[[!sectionHeadingVisible]]" hidden="[[!sectionHeadingVisible]]" class="style-scope yt-activity-item-renderer"></div>\n  <div id="section-contents" class="style-scope yt-activity-item-renderer">\n    <div id="image" hidden="[[!imageVisible]]" class="style-scope yt-activity-item-renderer"></div>\n    <div id="content-activity-container" tabindex="-1" divider-style$="[[data.dividerStyle]]" class="style-scope yt-activity-item-renderer">\n      <div id="content" class="style-scope yt-activity-item-renderer">\n        <div id="title" class="style-scope yt-activity-item-renderer"></div>\n        <div id="subtitle" hidden="[[!data.subtitle]]" class="style-scope yt-activity-item-renderer"></div>\n        <div id="additional-metadata" hidden="[[!data.additionalMetadata]]" class="style-scope yt-activity-item-renderer"></div>\n      </div>\n      <div id="activity-metadata" class="style-scope yt-activity-item-renderer"></div>\n    </div>\n    <div id="menu" on-click="onMenuTap" tabindex="0" hidden="[[!menuVisible]]" class="style-scope yt-activity-item-renderer"></div>\n  </div>\n</div>');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;UK_===void 0&&(UK_=document.createElement("template"));var h=UK_;E.call(W,h.content.cloneNode(!0),F.content.firstChild);Rep=F}F=Rep;return F},{mode:2});var eei;var Mpi;var gNc;var QNi;var Ad=function(){return _.n.apply(this,arguments)||this};
_.k(Ad,_.n);
Ad.prototype.configureRendererStamper=function(){return{"data.imageRenderer":{id:"image-renderer",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}},"data.headingRenderer":{id:"heading-renderer",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}},"data.descriptionRenderer":{id:"description-renderer",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}},"data.priceRenderer":{id:"price-renderer",mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"}}},
"data.actionsRenderer":{id:"actions-renderer",mapping:{cardItemActionsRenderer:{component:"yt-card-item-actions-renderer"}}}}};
Ad.prototype.backgroundColorChanged_=function(){var F,W=(F=this.data)==null?void 0:F.backgroundColor;this.hostElement.style.backgroundColor=Nb[W||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
Ad.prototype.backgroundColorChanged_=Ad.prototype.backgroundColorChanged_;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Ad.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],Ad.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],Ad.prototype,"data",void 0);
_.T([_.ea("data.backgroundColor"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Ad.prototype,"backgroundColorChanged_",null);Ad=_.T([_.$3({is:"yt-offer-item-upsell-renderer",disableElementRegistration:!0})],Ad);
_.r(Ad,"yt-offer-item-upsell-renderer",function(){if(QNi===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-offer-item-upsell-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_offer_item_upsell_renderer.yt.offer.item.upsell.renderer.css.js--\x3e<div id="image-renderer" hidden="[[!data.imageRenderer]]" class="style-scope yt-offer-item-upsell-renderer"></div>\n<div id="heading-price-container" class="style-scope yt-offer-item-upsell-renderer">\n  <div id="heading-renderer" class="style-scope yt-offer-item-upsell-renderer"></div>\n  <div id="price-renderer" class="style-scope yt-offer-item-upsell-renderer"></div>\n</div>\n<div id="description-actions-container" class="style-scope yt-offer-item-upsell-renderer">\n  <div id="description-renderer" class="style-scope yt-offer-item-upsell-renderer"></div>\n  <div id="actions-renderer" class="style-scope yt-offer-item-upsell-renderer"></div>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;gNc===void 0&&(gNc=document.createElement("template"));var h=gNc;E.call(W,h.content.cloneNode(!0),F.content.firstChild);QNi=F}F=QNi;return F},{mode:2});_.Hr("itemSectionRenderer","CardItemContainerRenderer","yt-card-item-container-renderer");var st=function(){var F=_.n.apply(this,arguments)||this;F.actionMap={"yt-update-card-item-on-click-command":"updateCardOnClickCommand_"};F.nextContinuation={continuationType:"sectionListContinuation",contentsArray:"data.continuationSection"};return F};
_.k(st,_.n);_.N=st.prototype;
_.N.configureRendererStamper=function(){return{"data.baseRenderer":{id:"base",mapping:{cardItemRenderer:{component:"yt-card-item-renderer",noInjection:!0}}},"data.contents":{id:"contents",mapping:{commerceCartHeaderRenderer:{component:"ytd-commerce-cart-header-renderer",properties:{compact:"[[compact]]"},noInjection:!0},commerceCartCheckoutButtonRenderer:{component:"ytd-commerce-cart-checkout-button-renderer",noInjection:!0,properties:{fullWidth:"[[compact]]"}},commerceCartItemRenderer:{component:"ytd-commerce-cart-item-renderer",noInjection:!0,
properties:{compact:"[[compact]]"}},cardItemRenderer:{component:"yt-card-item-renderer",noInjection:!0},offerItemUpsellRenderer:{component:"yt-offer-item-upsell-renderer",noInjection:!0},activityItemRenderer:{component:"yt-activity-item-renderer",noInjection:!0}}},"data.continuationSection":{id:"continuation-section",mapping:_.Pr("sharingItemSection")},"data.moreContentsButtonRenderer":{id:"more-contents-button",mapping:{buttonRenderer:{component:"yt-button-renderer",noInjection:!0}}}}};
_.N.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"continuationSection"}};
_.N.computeContainerStyle_=function(F){return F};
_.N.computeContainerIsHidden_=function(F){return F&&!!F.isHidden};
_.N.computeShowSpinner_=function(F,W){return F&&W==="in-progress"};
_.N.computeShowMoreContentsButton_=function(F,W,E,h,d){return!(!(h&&h.length||d&&d.length&&E)||!F||W)};
_.N.onToggleButton_=function(F){var W=this;F.stopPropagation();this.isExpanded_=F.detail&&F.detail.toggled;var E,h;this.isExpanded_&&!this.data.continuationSection.length&&((E=this.data)==null?0:(h=E.continuation)==null?0:h.onClickContinuationData)&&this.continuationStatus_!=="in-progress"?(_.hF(this.hostElement,"yt-load-next-continuation",function(d){return W.getContinuationUrl_(W.data.continuation.onClickContinuationData,d)}),this.continuationStatus_="in-progress"):this.isExpanded_&&!this.data.continuationSection.length&&
this.data.onClickCommand&&this.continuationStatus_!=="in-progress"&&(_.UT(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress")};
_.N.onShowMoreContentsButtonClicked_=function(F){var W=this;F.stopPropagation();this.data.continuations&&this.data.continuations[0].nextContinuationData?(_.hF(this.hostElement,"yt-load-next-continuation",function(E){return W.getContinuationUrl_(W.data.continuations[0].nextContinuationData,E)}),this.continuationStatus_="in-progress"):this.data.onClickCommand&&(_.UT(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress",this.data.onClickCommand=void 0,this.isOnClickCommand_=
!1)};
_.N.getContinuationUrl_=function(F,W){var E=F.continuation;F=F.clickTrackingParams;var h=_.JR();F&&h&&_.oj(h,_.ve(F));return _.wo(W,{continuation:E})};
_.N.nextContinuationDataUpdated_=function(){this.continuationStatus_="complete";var F=_.Z(this.hostElement).querySelector("#continuation-section");F&&(F=F.querySelectorAll("ytmusic-item-section-renderer"))&&F.forEach(function(W){return W.classList.add("memberships-and-purchases")})};
_.N.dataChanged_=function(){var F;this.isExpanded_=!((F=this.data)==null||!F.contents);this.data.continuationSection||(this.data.continuationSection=[]);this.data.onClickCommand&&(this.isOnClickCommand_=!0)};
_.N.updateCardOnClickCommand_=function(F){F=_.D(F,nQe);var W,E;this.data&&((W=this.data)==null?0:W.targetId)&&F&&F.targetId===((E=this.data)==null?void 0:E.targetId)&&F.onClickCommand&&(this.data.onClickCommand=F.onClickCommand,this.isOnClickCommand_=!0)};
_.N.backgroundColorChanged_=function(){var F,W=(F=this.data)==null?void 0:F.backgroundColor;this.hostElement.style.backgroundColor=Nb[W||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
st.prototype.backgroundColorChanged_=st.prototype.backgroundColorChanged_;st.prototype.dataChanged_=st.prototype.dataChanged_;st.prototype.nextContinuationDataUpdated_=st.prototype.nextContinuationDataUpdated_;st.prototype.onToggleButton_=st.prototype.onToggleButton_;_.T([_.J(_.br),_.Y("design:type",Object)],st.prototype,"ytContinuationHandlerBehavior",void 0);_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],st.prototype,"ytActionHandlerBehavior",void 0);
_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],st.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.lr.YtNextContinuationBehavior),_.Y("design:type",Object)],st.prototype,"ytNextContinuationBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],st.prototype,"ytRendererBehavior",void 0);_.T([_.J(Vpi.InjectBehavior),_.Y("design:type",Object)],st.prototype,"injectBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],st.prototype,"data",void 0);
_.T([_.O({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],st.prototype,"compact",void 0);_.T([_.O({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],st.prototype,"isExpanded_",void 0);_.T([_.O({computed:"computeContainerStyle_(data.containerStyle)",reflectToAttribute:!0,value:"CARD_ITEM_CONTAINER_STYLE_DEFAULT"}),_.Y("design:type",String)],st.prototype,"containerStyle_",void 0);_.T([_.O({value:"not-started"}),_.Y("design:type",String)],st.prototype,"continuationStatus_",void 0);
_.T([_.O({reflectToAttribute:!0,computed:"computeShowSpinner_(isExpanded_, continuationStatus_)",value:!1}),_.Y("design:type",Boolean)],st.prototype,"showSpinner_",void 0);_.T([_.O({value:!1}),_.Y("design:type",Boolean)],st.prototype,"isOnClickCommand_",void 0);_.T([_.O({computed:"computeShowMoreContentsButton_(isExpanded_, showSpinner_, isOnClickCommand_, data.continuations, data.contents)",value:!1}),_.Y("design:type",Boolean)],st.prototype,"showMoreContentsButton_",void 0);
_.T([_.O({selectorArgs:["data.cardItemContainerEntityKey"],selector:function(F,W){return!W||F.entities?null:_.Mn(F.entities,"cardItemContainerEntity",W)}}),
_.Y("design:type",Object)],st.prototype,"cardItemContainerEntity_",void 0);_.T([_.R4("yt-toggle-button"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],st.prototype,"onToggleButton_",null);_.T([_.R4("yt-next-continuation-data-updated"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],st.prototype,"nextContinuationDataUpdated_",null);
_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],st.prototype,"dataChanged_",null);_.T([_.ea("data.backgroundColor"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],st.prototype,"backgroundColorChanged_",null);st=_.T([_.$3({is:"yt-card-item-container-renderer",disableElementRegistration:!0})],st);
_.r(st,"yt-card-item-container-renderer",function(){if(Mpi===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-container-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_container_renderer.yt.card.item.container.renderer.css.js--\x3e<div id="container" hidden="[[computeContainerIsHidden_(cardItemContainerEntity_)]]" class="style-scope yt-card-item-container-renderer">\n  <div id="base" class="style-scope yt-card-item-container-renderer"></div>\n  <div id="divider" hidden="[[!isExpanded_]]" container-style_$="[[containerStyle_]]" class="style-scope yt-card-item-container-renderer"></div>\n  <div id="contents-section" hidden="[[!isExpanded_]]" class="style-scope yt-card-item-container-renderer">\n    <div id="contents" class="style-scope yt-card-item-container-renderer"></div>\n    <div id="continuation-section" class="style-scope yt-card-item-container-renderer"></div>\n    <tp-yt-paper-spinner id="spinner" active="[[showSpinner_]]" class="style-scope yt-card-item-container-renderer"></tp-yt-paper-spinner>\n    <div id="more-contents-button" hidden="[[!showMoreContentsButton_]]" on-click="onShowMoreContentsButtonClicked_" class="style-scope yt-card-item-container-renderer"></div>\n  </div>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;eei===void 0&&(eei=document.createElement("template"));var h=eei;E.call(W,h.content.cloneNode(!0),F.content.firstChild);Mpi=F}F=Mpi;return F},{mode:2});var L_=function(){return _.n.apply(this,arguments)||this};
_.k(L_,_.n);L_.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{cardItemContainerRenderer:{component:"yt-card-item-container-renderer",params:{compact:!1}},commerceCartCheckoutButtonRenderer:"ytd-commerce-cart-checkout-button-renderer",commerceCartHeaderRenderer:"ytd-commerce-cart-header-renderer",cardItemRenderer:"yt-card-item-renderer"}},"data.cartSummary":{id:"cart-summary",mapping:{commerceCartSummaryRenderer:"ytd-commerce-cart-summary-renderer"}}}};
L_.prototype.notificationEntityChanged=function(){this.commerceCartExpandableNotificationEntity&&this.updateNotification()};
L_.prototype.computeLoadingHidden=function(){var F;return!((F=this.commerceCartPageStateEntity)==null?0:F.cartActionInProgress)};
L_.prototype.updateNotification=function(){var F,W=(F=this.get("commerceCartExpandableNotificationEntity"))==null?void 0:F.summaryText;W&&this.set("data.cartNotification",o$(W))};
L_.prototype.notificationEntityChanged=L_.prototype.notificationEntityChanged;_.T([_.J(_.am),_.Y("design:type",Object)],L_.prototype,"ytdReduxBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],L_.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],L_.prototype,"ytComponentBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],L_.prototype,"ytRendererstamperBehavior",void 0);
_.T([_.O(),_.Y("design:type",Object)],L_.prototype,"data",void 0);_.T([_.O({selectorArgs:["data.commerceCartExpandableNotificationEntityKey"],selector:function(F,W){return _.Mn(F.entities,"commerceCartExpandableNotificationEntity",W)}}),
_.Y("design:type",Object)],L_.prototype,"commerceCartExpandableNotificationEntity",void 0);_.T([_.O({selectorArgs:["data.commerceCartPageStateEntityKey"],selector:function(F,W){return _.Mn(F.entities,"commerceCartPageStateEntity",W)}}),
_.Y("design:type",Object)],L_.prototype,"commerceCartPageStateEntity",void 0);_.T([_.gQ("#spinner"),_.Y("design:type",HTMLElement)],L_.prototype,"spinner",void 0);_.T([_.ea("commerceCartExpandableNotificationEntity","data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],L_.prototype,"notificationEntityChanged",null);L_=_.T([_.y({disableElementRegistration:!0,is:"ytd-commerce-cart-renderer"})],L_);
_.r(L_,"ytd-commerce-cart-renderer",function(){if(dKz!==void 0)return dKz;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commerce-cart-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title-container" class="style-scope ytd-commerce-cart-renderer">\n  <div id="title" class="style-scope ytd-commerce-cart-renderer">[[getSimpleString(data.title)]]</div>\n  <div id="notification" class="style-scope ytd-commerce-cart-renderer">[[getSimpleString(data.cartNotification)]]</div>\n</div>\n<div id="body" class="style-scope ytd-commerce-cart-renderer">\n  <div id="primary-column" class="style-scope ytd-commerce-cart-renderer">\n    <div id="items" class="style-scope ytd-commerce-cart-renderer"></div>\n  </div>\n  <div id="secondary-column" class="style-scope ytd-commerce-cart-renderer">\n    <div id="cart-summary" class="style-scope ytd-commerce-cart-renderer"></div>\n  </div>\n</div>\n<div id="loading-overlay" hidden="[[computeLoadingHidden(data, commerceCartPageStateEntity)]]" class="style-scope ytd-commerce-cart-renderer">\n  <div id="positioning-container" class="style-scope ytd-commerce-cart-renderer">\n    <tp-yt-paper-spinner-lite id="spinner" active="[[commerceCartPageStateEntity.cartActionInProgress]]" class="style-scope ytd-commerce-cart-renderer">\n    </tp-yt-paper-spinner-lite>\n  </div>\n</div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return dKz=F},{mode:1});var ze_;var qb=function(){var F=_.n.apply(this,arguments)||this;F.bigImage=!1;return F};
_.k(qb,_.n);_.Sn.Object.defineProperties(qb.prototype,{placeholderImageUrl:{configurable:!0,enumerable:!0,get:function(){var F;return(F=this.data)==null?void 0:F.placeholderImageUrl}}});
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],qb.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],qb.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],qb.prototype,"bigImage",void 0);_.T([_.a("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],qb.prototype,"placeholderImageUrl",null);qb=_.T([_.y({disableElementRegistration:!0,is:"ytd-empty-product-shelf-renderer"})],qb);
_.r(qb,"ytd-empty-product-shelf-renderer",function(){if(ze_!==void 0)return ze_;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-empty-product-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="main style-scope ytd-empty-product-shelf-renderer">\n  <template is="dom-if" if="[[placeholderImageUrl]]" class="style-scope ytd-empty-product-shelf-renderer">\n    <img id="placeholder-image" alt="icon" src$="[[placeholderImageUrl]]" class="style-scope ytd-empty-product-shelf-renderer">\n  </template>\n  <yt-formatted-string id="image-text" text="[[data.imageText]]" class="style-scope ytd-empty-product-shelf-renderer"></yt-formatted-string>\n</div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return ze_=F},{mode:1});var tpz;var $D=function(){var F=_.n.apply(this,arguments)||this;F.itemStyle="link-item";F.watchMetadataRefresh=!1;F.skinnyMode=!1;F.metaPanel=!1;F.inStructuredDescription=!1;F.actionMap={"yt-update-merchandise-shelf-action":"handleUpdateMerchShelfAction"};F.updateOnResizeDebouncer=null;return F};
_.k($D,_.n);_.N=$D.prototype;_.N.ready=function(){this.updateOnResize=this.updateOnResize.bind(this);this.updateOnResize()};
_.N.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{iconSize:16}},menuRenderer:"ytd-menu-renderer"}},"data.emptyProductShelf":{id:"empty-product",mapping:{emptyProductShelfRenderer:{component:"ytd-empty-product-shelf-renderer"}}}}};
_.N.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.updateOnResize()};
_.N.attachVEs=function(F){F.trackingParams&&_.z4().graftServerVe(F.trackingParams)};
_.N.handleUpdateMerchShelfAction=function(F){var W=this,E=_.D(F.updateMerchandiseShelfAction.merchandiseShelf,_.se_);E&&(E.renderDelayMs?(clearTimeout(this.dataSetTimeoutId),this.dataSetTimeoutId=setTimeout(function(){W.attachVEs(E);W.data=E},Number(E.renderDelayMs))):(this.attachVEs(E),this.data=E))};
_.N.updateOnResize=function(){if(this.JSC$14599_scrollContainer!==void 0&&this.JSC$14599_scrollContainer.clientWidth!==0&&this.items!==void 0){var F=this.JSC$14599_scrollContainer.clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-F));this.ytdHorizontalListBehavior.reposition_();var W;switch((W=this.data)==null?void 0:W.shelfType){case "MERCHANDISE_SHELF_TYPE_PRODUCT_LINK":this.itemStyle="link-item";break;default:var E,
h;((E=this.data)==null?void 0:(h=E.items)==null?void 0:h.length)===1?this.itemStyle="cta-item":this.itemStyle=F>=740?"large-item":"small-item"}}};
_.N.debouncedUpdateOnResize=function(){this.updateOnResizeDebouncer=_.QZ(this.updateOnResizeDebouncer,_.F4.after(100),this.updateOnResize)};
$D.prototype.debouncedUpdateOnResize=$D.prototype.debouncedUpdateOnResize;$D.prototype.dataChanged=$D.prototype.dataChanged;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],$D.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],$D.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.EL.YtdHorizontalListBehavior),_.Y("design:type",Object)],$D.prototype,"ytdHorizontalListBehavior",void 0);
_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],$D.prototype,"ytComponentBehavior",void 0);_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],$D.prototype,"ytActionHandlerBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],$D.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],$D.prototype,"itemStyle",void 0);_.T([_.O({value:6}),_.Y("design:type",Number)],$D.prototype,"initialCount",void 0);
_.T([_.O({value:"data.items"}),_.Y("design:type",String)],$D.prototype,"itemsPath",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],$D.prototype,"watchMetadataRefresh",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],$D.prototype,"skinnyMode",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],$D.prototype,"metaPanel",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],$D.prototype,"inStructuredDescription",void 0);
_.T([_.gQ("#items"),_.Y("design:type",HTMLDivElement)],$D.prototype,"items",void 0);_.T([_.gQ("#scroll-container"),_.Y("design:type",HTMLDivElement)],$D.prototype,"JSC$14599_scrollContainer",void 0);_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],$D.prototype,"dataChanged",null);_.T([_.R4("iron-resize"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],$D.prototype,"debouncedUpdateOnResize",null);
$D=_.T([_.y({disableElementRegistration:!0,is:"ytd-merch-shelf-renderer"})],$D);
_.r($D,"ytd-merch-shelf-renderer",function(){if(tpz!==void 0)return tpz;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-merch-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="main" class="style-scope ytd-merch-shelf-renderer">\n  <div id="banner" class="style-scope ytd-merch-shelf-renderer">\n    <div id="title" hidden="[[!data.title]]" role="heading" class="style-scope ytd-merch-shelf-renderer">[[data.title]]</div>\n    <yt-formatted-string id="title" hidden="[[!data.titleFormatted]]" role="heading" text="[[data.titleFormatted]]" class="style-scope ytd-merch-shelf-renderer">\n    </yt-formatted-string>\n    <div id="action-button" class="style-scope ytd-merch-shelf-renderer"></div>\n  </div>\n  <div id="empty-product" class="style-scope ytd-merch-shelf-renderer"></div>\n  <div id="item-list" class="style-scope ytd-merch-shelf-renderer">\n    <div id="left-arrow-container" class="center-aligned style-scope ytd-merch-shelf-renderer">\n      <div id="left-arrow" class="arrow center-aligned style-scope ytd-merch-shelf-renderer" on-click="prevClick_" hidden="[[atStart]]">\n        <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-merch-shelf-renderer"></yt-icon>\n      </div>\n    </div>\n    <div id="scroll-container" class="style-scope ytd-merch-shelf-renderer">\n      <div id="items" item-style$="[[itemStyle]]" class="style-scope ytd-merch-shelf-renderer">\n        \n        <template is="dom-repeat" items="[[shownItems]]" class="style-scope ytd-merch-shelf-renderer">\n          <ytd-merch-shelf-item-renderer data="[[item.merchandiseItemRenderer]]" item-style="[[itemStyle]]" class="style-scope ytd-merch-shelf-renderer">\n          </ytd-merch-shelf-item-renderer>\n        </template>\n      </div>\n    </div>\n    <div id="right-arrow-container" class="center-aligned style-scope ytd-merch-shelf-renderer">\n      <div id="right-arrow" class="arrow center-aligned style-scope ytd-merch-shelf-renderer" on-click="nextClick_" hidden="[[atEnd]]">\n        <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-merch-shelf-renderer"></yt-icon>\n      </div>\n    </div>\n  </div>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return tpz=F},{mode:2});var C7u;var ZL=function(){var F=_.n.apply(this,arguments)||this;F.actionMap={"yt-add-backstage-comment-action":"addBackstageCommentAction","yt-add-backstage-post-action":"addBackstagePostAction","yt-add-backstage-reply-action":"addBackstageReplyAction","yt-ban-author-action":"banAuthorAction","yt-hide-reported-comment-action":"hideReportedCommentAction","yt-remove-comment-action":"removeCommentAction","yt-replace-backstage-comment-action":"replaceBackstageCommentAction","yt-replace-backstage-post-action":"replaceBackstagePostAction",
"yt-replace-backstage-reply-action":"replaceBackstageReplyAction"};return F};
_.k(ZL,_.n);_.N=ZL.prototype;
_.N.addBackstagePostAction=function(F){this.get("header.commentsHeaderRenderer.shouldShowBackstagePostOptimistically",this.data)&&(F=this.get("addBackstagePostAction.renderer.backstagePostThreadRenderer",F))&&(this.get("header.commentsHeaderRenderer.zeroStateMessage.backstageZeroStateRenderer",this.data)&&this.set("data.header.commentsHeaderRenderer.zeroStateMessage",{}),this.get("header.commentsHeaderRenderer.schedulingZeroStateMessage.postSchedulingZeroStateRenderer",this.data)&&this.set("data.header.commentsHeaderRenderer.schedulingZeroStateMessage",
{}),this.get("data.contents")?this.splice("data.contents",0,0,{backstagePostThreadRenderer:F}):this.set("data.contents",[{backstagePostThreadRenderer:F}]))};
_.N.addBackstageCommentAction=function(F){var W=this.get("addBackstageCommentAction.parentId",F);F=this.get("addBackstageCommentAction.renderer.commentThreadRenderer",F);if(W&&F){W=this.postIdToIndices(W);for(var E=0;E<W.length;E++){var h=W[E];if(h<0)break;h="data.contents."+h+".backstagePostThreadRenderer.comments";this.get(h)&&(this.get(h+".backstageCommentsRenderer.contents")&&this.push(h+".backstageCommentsRenderer.contents",{commentThreadRenderer:F}),this.get(h+".backstageCommentsRenderer.teaserContents")?
this.push(h+".backstageCommentsRenderer.teaserContents",{commentThreadRenderer:F}):this.set(h+".backstageCommentsRenderer.teaserContents",[{commentThreadRenderer:F}]))}}};
_.N.addBackstageReplyAction=function(F){var W=this.get("addBackstageReplyAction.parentId",F);F=this.get("addBackstageReplyAction.renderer.commentRenderer",F);W&&F&&this.setCreatorReply(W,F)};
_.N.banAuthorAction=function(F){var W=this.get("banAuthorAction.commentId",F);W&&(F=this.get("banAuthorAction.parentCommentId",F)||this.getParentPostId(W),this.removeFromStream(W,F))};
_.N.hideReportedCommentAction=function(F){var W=this.get("hideReportedCommentAction.commentId",F);W&&((F=this.get("hideReportedCommentAction.parentCommentId",F))||(F=this.getParentPostId(W)),this.removeFromStream(W,F))};
_.N.replaceBackstageCommentAction=function(F){var W=this.get("replaceBackstageCommentAction.commentId",F),E=this.get("replaceBackstageCommentAction.parentId",F);F=this.get("replaceBackstageCommentAction.renderer.commentThreadRenderer",F);if(W&&E&&F){E=this.postIdToIndices(E);for(var h=0;h<E.length;h++){var d=E[h];if(d<0)break;var V=this.commentIdToIndex(W,d,!1);if(V>=0){var R=this.get("data.contents."+d+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+V+".commentThreadRenderer.replies.commentRepliesRenderer");
R&&(F.replies={commentRepliesRenderer:R});this.splice("data.contents."+d+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",V,1,{commentThreadRenderer:F})}V=this.commentIdToIndex(W,d,!0);if(V>=0){if(R=this.get("data.contents."+d+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+(V+".commentThreadRenderer.replies.commentRepliesRenderer")))F.replies={commentRepliesRenderer:R};this.splice("data.contents."+d+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",
V,1,{commentThreadRenderer:F})}}}};
_.N.replaceBackstagePostAction=function(F){var W=this.get("replaceBackstagePostAction.itemId",F);if(W){W=this.postIdToIndices(W);for(var E=0;E<W.length;E++){var h=W[E];if(h<0)break;var d=this.getPostRendererType(h),V=this.get("replaceBackstagePostAction.renderer."+d,F);if(!V&&d!=="sharedPostRenderer")break;var R=!1;V||(R=!0,V=this.get("replaceBackstagePostAction.renderer.backstagePostRenderer",F));if(!V)break;var M={};R?(_.LK(M,Jfz,V),this.set("data.contents."+h+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
M)):(_.LK(M,new _.S(d),V),this.set("data.contents."+h+".backstagePostThreadRenderer.post",M))}}};
_.N.replaceBackstageReplyAction=function(F){var W=this.get("replaceBackstageReplyAction.replyId",F),E=this.get("replaceBackstageReplyAction.parentId",F);F=this.get("replaceBackstageReplyAction.renderer.commentRenderer",F);W&&F&&E&&this.setCreatorReply(E,F)};
_.N.removeCommentAction=function(F){var W=this.get("removeCommentAction.commentId",F);if(W){var E=this.get("removeCommentAction.parentCommentId",F);E&&this.get("removeCommentAction.isCreatorReply",F)?this.setCreatorReply(E,void 0):(E||(E=this.getParentPostId(W)),this.removeFromStream(W,E))}};
_.N.setCreatorReply=function(F,W){var E=this.getParentPostId(F);if(E){E=this.postIdToIndices(E);for(var h=0;h<E.length;h++){var d=E[h];if(d<0)break;var V=this.commentIdToIndex(F,d,!1);if(V>=0){var R="data.contents."+d+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+V;V=R+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply";R+=".commentThreadRenderer.replies";W==void 0?(this.set(R,{}),this.set(V,!1)):(this.set(R,{commentRepliesRenderer:{teaserContents:[{commentRenderer:W}]}}),
this.set(R+".commentRepliesRenderer.teaserContents.0.commentRenderer.isCreatorReply",!0),this.set(V,!0))}V=this.commentIdToIndex(F,d,!0);V>=0&&(V="data.contents."+d+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+V,d=V+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply",V+=".commentThreadRenderer.replies",W==void 0?(this.set(V,{}),this.set(d,!1)):(this.set(V,{commentRepliesRenderer:{teaserContents:[{commentRenderer:W}]}}),this.set(d,!0)))}}};
_.N.removeFromStream=function(F,W){if(W){W=this.postIdToIndices(W);for(var E=0;E<W.length;E++){var h=W[E];if(h<0)break;var d=this.commentIdToIndex(F,h,!1);d>=0&&this.splice("data.contents."+h+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",d,1);d=this.commentIdToIndex(F,h,!0);d>=0&&this.splice("data.contents."+h+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",d,1);h="data.contents."+h+".backstagePostThreadRenderer.post.backstagePostRenderer";
d=h+".backstageAttachment.pollRenderer.votedCommentId";this.get(d)===F&&(this.set(d,null),this.set(h+".backstageAttachment.pollRenderer.commentDelete",null))}}else for(W=this.postIdToIndices(F).reverse(),E=0;E<W.length;E++){h=W[E];if(h<0)break;d=this.getPostRendererType(h);var V=this.get("backstagePostThreadRenderer.post."+d,this.data.contents[h]);V.postId===F?this.splice("data.contents",h,1):d==="sharedPostRenderer"&&this.set("data.contents."+h+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
null);V.scheduledPublishTimeSec&&_.dW(this.hostElement,"yt-update-posts-total-count-action",[{updatePostsTotalCountAction:{updateType:"UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE",number:1}}])}};
_.N.postIdToIndices=function(F){for(var W=[],E=0;E<this.data.contents.length;E++){var h=this.getPostRendererType(E);this.get("backstagePostThreadRenderer.post."+h+".postId",this.data.contents[E])===F&&W.push(E);if(h==="sharedPostRenderer"){var d=this.get("backstagePostThreadRenderer.post."+h+".originalPost.backstagePostRenderer.postId",this.data.contents[E]);h=this.get("backstagePostThreadRenderer.post."+h+".originalPost.postRenderer.postId",this.data.contents[E]);d!==F&&h!==F||W.push(E)}}return W};
_.N.commentIdToIndex=function(F,W,E){if(W<0)return-1;var h,d,V,R,M=_.D((h=this.data)==null?void 0:(d=h.contents)==null?void 0:(V=d[W])==null?void 0:(R=V.backstagePostThreadRenderer)==null?void 0:R.comments,HcT);return(W=E?M==null?void 0:M.teaserContents:M==null?void 0:M.contents)&&W.length?W.findIndex(function(g){return _.D(g,Naz).comment.commentRenderer.commentId===F}):-1};
_.N.getParentPostId=function(F){F=F.split(".");if(F[1])return F[0]};
_.N.getPostRendererType=function(F){return this.get("backstagePostThreadRenderer.post.sharedPostRenderer",this.data.contents[F])?"sharedPostRenderer":"backstagePostRenderer"};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],ZL.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],ZL.prototype,"ytActionHandlerBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],ZL.prototype,"data",void 0);ZL=_.T([_.y({disableElementRegistration:!0,is:"ytd-backstage-items"})],ZL);
_.r(ZL,"ytd-backstage-items",function(){if(C7u!==void 0)return C7u;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-items--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-item-section-renderer data="[[data]]" class="style-scope ytd-backstage-items"></ytd-item-section-renderer>\n');F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return C7u=
F},{mode:1});var BKi;_.k3({is:"ytd-comments",_template:function(){if(BKi!==void 0)return BKi;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comments--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-item-section-renderer id="sections" can-schedule-jobs="[[canScheduleJobs]]" comments-hide-panel-button="[[hidePanelButton]]" continuation-disable-prescan-visibility="[[disablePrescanVisibility]]" data="{{data}}" engagement-panel="[[engagementPanel]]" initial-count="2" is-watch-grid="[[isWatchGrid]]" class="style-scope ytd-comments">\n</ytd-item-section-renderer>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return BKi=F},
behaviors:[_.QtR.YtHostElementBehavior,_.om.YtPlayerListenerBehavior,_.K.YtRendererBehavior,_.FM.YtActionHandlerBehavior],properties:{data:{type:Object,observer:"dataChanged_"},isBackstage:{type:Boolean,computed:"computeIsBackstage_(data.header.commentsHeaderRenderer.isBackstageContent)",reflectToAttribute:!0},disablePrescanVisibility:{type:Boolean,value:!0},canScheduleJobs:{type:Boolean,value:!0},engagementPanel:{type:Boolean,reflectToAttribute:!0},hidePanelButton:{type:Boolean,value:!1},isWatchGrid:{type:Boolean,
value:!1}},actionMap:{"yt-ban-author-action":"banAuthorAction_","yt-create-comment-action":"createCommentAction_","yt-create-comment-reply-action":"createCommentReplyAction_","yt-hide-reported-comment-action":"hideReportedCommentAction_","yt-pin-comment-action":"pinCommentAction_","yt-reload-comments-command":"reloadComments_","yt-remove-comment-action":"removeCommentAction_","yt-unpin-comment-action":"unpinCommentAction_"},listeners:{"yt-retrieve-location":"onRetrieveLocation_"},observers:["contentsChanged_(data.contents.*)",
"headerChanged_(data.header)"],created:function(){this.RenderingPriority={RENDERING_PRIORITY_UNKNOWN:0,RENDERING_PRIORITY_PINNED_COMMENT:10,RENDERING_PRIORITY_LINKED_COMMENT:20,RENDERING_PRIORITY_REALTIME_COMMENT:30,RENDERING_PRIORITY_COMMUNITY_GUIDELINES_BELOW_HEADER:80,RENDERING_PRIORITY_FAN_COMMUNITY_SETUP_CARD:90,RENDERING_PRIORITY_COMMENT_HEADER:100};this.initCommentsCsi_()},
contentsChanged_:function(F){F&&F.value&&F.path==="data.contents"&&this.tickForCommentsTimer_("cml")},
headerChanged_:function(F){F&&this.tickForCommentsTimer_("cmhl")},
initCommentsCsi_:function(){_.Z2("wn_comments");var F=_.JR();F&&_.$b({clientScreenNonce:F},"wn_comments");this.tickForCommentsTimer_("cmi")},
createCommentAction_:function(F){F=vew(F);var W,E,h;if(F=(W=F)==null?void 0:(E=W.createCommentAction)==null?void 0:(h=E.contents)==null?void 0:h.commentThreadRenderer){var d,V,R,M,g,t;!this.isBackstage&&((d=this.data)==null?0:(V=d.header)==null?0:(R=V.commentsHeaderRenderer)==null?0:(M=R.createRenderer)==null?0:(g=M.commentSimpleboxRenderer)==null?0:(t=g.zeroStep)==null?0:t.zeroStepChannelCreationRenderer)&&this.set("data.header.commentsHeaderRenderer.createRenderer.commentSimpleboxRenderer.zeroStep",
{});var C,B,I,x;this.isBackstage&&((C=this.data)==null?0:(B=C.header)==null?0:(I=B.commentsHeaderRenderer)==null?0:(x=I.zeroStateMessage)==null?0:x.backstageZeroStateRenderer)&&this.set("data.header.commentsHeaderRenderer.zeroStateMessage",{});this.insert_(F)}},
doReplyInsert_:function(F,W,E,h){h?this.splice(F,h,0,W):this.push(F,W)},
getRepliesPath_:function(F){return"data.contents."+F+".commentThreadRenderer.replies"},
getRepliesContentsPath_:function(F,W){F=this.getRepliesPath_(F);return W?F+".commentRepliesRenderer.teaserContents":F+".commentRepliesRenderer.contents"},
createCommentReplyAction_:function(F){F=vew(F);var W,E,h=(W=F)==null?void 0:(E=W.createCommentReplyAction)==null?void 0:E.parentCommentId,d,V;if(W=(d=F)==null?void 0:(V=d.createCommentReplyAction)==null?void 0:V.contents)if(h=this.commentIdToIndex_(h),!(h<0))if(d=this.getRepliesPath_(h),this.get(d)){var R,M;F=(R=F)==null?void 0:(M=R.createCommentReplyAction)==null?void 0:M.replyToCommentId;R=this.getRepliesContentsPath_(h,!1);this.get(R)&&(M=this.get(R).length,d=R+"."+(M-1)+".continuationItemRenderer",
this.get(d+".button")?(d=this.replyIdToIndex_(F,h,!1),this.doReplyInsert_(R,W,d,M-1)):this.get(d)||(M=this.replyIdToIndex_(F,h,!1),this.doReplyInsert_(R,W,M,null)));R=this.getRepliesContentsPath_(h,!0);this.get(R)?(h=this.replyIdToIndex_(F,h,!0),(!F||h>=0)&&this.doReplyInsert_(R,W,h,null)):this.set(R,[W])}else this.set(d,{commentRepliesRenderer:{teaserContents:[W]}})},
hideReportedCommentAction_:function(F){var W,E=F==null?void 0:(W=F.hideReportedCommentAction)==null?void 0:W.commentId;if(E){var h;F=F==null?void 0:(h=F.hideReportedCommentAction)==null?void 0:h.parentCommentId;E=E.replace("#",".");F||(F=this.getParentCommentId_(E));this.remove_(E,F)}},
getParentCommentId_:function(F){F=F.split(".");if(F[1])return F[0]},
removeCommentAction_:function(F){var W,E=F==null?void 0:(W=F.removeCommentAction)==null?void 0:W.commentId;if(E){var h;F=F==null?void 0:(h=F.removeCommentAction)==null?void 0:h.parentCommentId;E=E.replace("#",".");F||(F=this.getParentCommentId_(E));this.remove_(E,F)}},
pinCommentAction_:function(F){F=vew(F);var W,E,h=(W=F)==null?void 0:(E=W.pinCommentAction)==null?void 0:E.commentId;h&&(F=this.get("pinCommentAction.actionResult.update.commentThreadRenderer",F))&&(this.remove_(h),this.insert_(F,!0))},
unpinCommentAction_:function(F){F=vew(F);var W,E,h=(W=F)==null?void 0:(E=W.unpinCommentAction)==null?void 0:E.commentId;if(h){var d,V,R;if(F=(d=F.unpinCommentAction)==null?void 0:(V=d.actionResult)==null?void 0:(R=V.update)==null?void 0:R.commentThreadRenderer)this.remove_(h),this.insert_(F)}},
banAuthorAction_:function(F){var W,E=F==null?void 0:(W=F.banAuthorAction)==null?void 0:W.commentId;if(E){var h;F=F==null?void 0:(h=F.banAuthorAction)==null?void 0:h.parentCommentId;E=E.replace("#",".");F||(F=this.getParentCommentId_(E));this.remove_(E,F)}},
commentIdToIndex_:function(F){var W;return F&&(W=this.data)!=null&&W.contents?this.data.contents.findIndex(function(E){var h,d;return F===((E==null?void 0:(h=E.commentThreadRenderer)==null?void 0:h.commentViewModel)&&((d=_.D(E.commentThreadRenderer.commentViewModel,e4e))==null?void 0:d.commentId))}):-1},
insert_:function(F,W){var E,h;if((E=this.data)==null?0:(h=E.contents)==null?0:h.some(function(V){return!(V==null||!V.commentThreadRenderer)}))for(E=0,h=this.data.contents.length;E<h;E++){var d=this.data.contents[E].commentThreadRenderer;
if(this.RenderingPriority[F.renderingPriority]>=this.RenderingPriority[d.renderingPriority]){W&&this.RenderingPriority[F.renderingPriority]==this.RenderingPriority[d.renderingPriority]?this.splice("data.contents",E,1,{commentThreadRenderer:F}):this.splice("data.contents",E,0,{commentThreadRenderer:F});break}}else this.set("data.contents",[{commentThreadRenderer:F}])},
doReplyRemove_:function(F,W,E){F=this.replyIdToIndex_(F,W,E);F<0||(W=this.getRepliesContentsPath_(W,E),this.splice(W,F,1))},
remove_:function(F,W){W=this.commentIdToIndex_(W);W<0?(W=this.commentIdToIndex_(F),W<0||this.splice("data.contents",W,1)):(this.doReplyRemove_(F,W,!1),this.doReplyRemove_(F,W,!0))},
replyIdToIndex_:function(F,W,E){if(W<0)return-1;W=this.getRepliesContentsPath_(W,E);W=this.get(W);if(!W||!W.length)return-1;E=0;for(var h=W.length;E<h;E++){var d=void 0,V=void 0;if(((d=W[E])==null?void 0:(V=d.commentViewModel)==null?void 0:V.commentId)===F)return E}return-1},
computeIsBackstage_:function(F){return!!F},
tickForCommentsTimer_:function(F){_.JF(F,void 0,"wn_comments")},
reloadComments_:function(F){F&&F.reloadCommentsCommand&&F.reloadCommentsCommand.command&&F.reloadCommentsCommand.command.continuationCommand&&_.UT(this,[F.reloadCommentsCommand.command])}});var Xu=function(){return _.zK.apply(this,arguments)||this};
_.k(Xu,_.zK);_.N=Xu.prototype;_.N.bindIf=function(F,W,E){return F?W:E};
_.N.bindIfDefined=function(F,W){return F!==void 0?F:W};
_.N.booleanString=function(F){return(!!F).toString()};
_.N.equals=function(){for(var F=_.Dd.apply(0,arguments),W=F[0],E=1;E<F.length;E++)if(W!=F[E])return!1;return!0};
_.N.isGreaterThan=function(F,W){return F>W};
_.N.isLessThan=function(F,W){return F<W};
_.N.logicalAND=function(){for(var F=_.Dd.apply(0,arguments),W=!!F[0],E=1;E<F.length;E++)W=W&&!!F[E];return W};
_.N.logicalOR=function(){for(var F=_.Dd.apply(0,arguments),W=!!F[0],E=1;E<F.length;E++)W=W||!!F[E];return W};
_.N.toBool=function(F){return!!F};
Xu.prototype.toBool=Xu.prototype.toBool;Xu.prototype.logicalOR=Xu.prototype.logicalOR;Xu.prototype.logicalAND=Xu.prototype.logicalAND;Xu.prototype.isLessThan=Xu.prototype.isLessThan;Xu.prototype.isGreaterThan=Xu.prototype.isGreaterThan;Xu.prototype.equals=Xu.prototype.equals;Xu.prototype.booleanString=Xu.prototype.booleanString;Xu.prototype.bindIfDefined=Xu.prototype.bindIfDefined;Xu.prototype.bindIf=Xu.prototype.bindIf;Xu=_.T([_.tT()],Xu);_.vNT=[Xu.prototype];var IkB;var cZX;var Hv=function(){return _.n.apply(this,arguments)||this};
_.k(Hv,_.n);Hv.prototype.configureRendererStamper=function(){return{"data.imageRenderer":{id:"image-renderer",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer",params:{fit:!0}}}}}};
Hv.prototype.onBackIconTap_=function(){window.history.back()};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Hv.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],Hv.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],Hv.prototype,"data",void 0);Hv=_.T([_.$3({is:"yt-header-with-back-renderer",disableElementRegistration:!0})],Hv);
_.r(Hv,"yt-header-with-back-renderer",function(){if(cZX===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-header-with-back-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_header_with_back_renderer.yt.header.with.back.renderer.css.js--\x3e<div id="header-wrapper" class="style-scope yt-header-with-back-renderer">\n  <yt-icon-button id="back-button" label="Back" on-tap="onBackIconTap_" class="style-scope yt-header-with-back-renderer">\n    <yt-icon icon="yt-icons:arrow-back" class="style-scope yt-header-with-back-renderer"></yt-icon>\n  </yt-icon-button>\n  <div id="image-renderer" hidden="[[!data.imageRenderer]]" class="style-scope yt-header-with-back-renderer"></div>\n  <div id="header-container" class="style-scope yt-header-with-back-renderer">\n    <yt-formatted-string id="header-title" text="[[data.title]]" class="style-scope yt-header-with-back-renderer"></yt-formatted-string>\n    <yt-formatted-string id="header-subtitle" text="[[data.subtitle]]" class="style-scope yt-header-with-back-renderer"></yt-formatted-string>\n  </div>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;IkB===void 0&&(IkB=document.createElement("template"));var h=IkB;E.call(W,h.content.cloneNode(!0),F.content.firstChild);cZX=F}F=cZX;return F},{mode:2});var DKM;var xK_;var Pv=function(){var F=_.n.apply(this,arguments)||this;F.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return F};
_.k(Pv,_.n);_.N=Pv.prototype;_.N.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.N.onDarkModeToggledAction=function(F){F!==this.isDarkTheme&&(this.isDarkTheme=F,this.setUrl())};
_.N.dataChanged=function(){var F=this;if(this.data){var W=this.setUrl();W&&_.NS({destination:window,iframe:this.iframe,origin:_.JPu(W.toString()),channelName:"yt-iframe",onMessage:function(E){(E=F.getCommunicationCommand(E.data))&&F.ytComponentBehavior.resolveCommand(E)},
onEstablished:function(){}})}};
_.N.setUrl=function(){if(this.data&&this.data.iframeUrl){var F=_.JH(this.isDarkTheme&&this.data.darkThemeIframeUrl?this.data.darkThemeIframeUrl:this.data.iframeUrl);if(F)return _.Hp(this.iframe,F),F}};
_.N.getCommunicationCommand=function(F){var W;if((W=this.data)!=null&&W.onCommunicationCommandsMap){W=this.data.onCommunicationCommandsMap.find(function(d){return d.key===F});
if(W==null?0:W.value)return W==null?void 0:W.value;try{var E=XtH(_.CT(F)),h=this.data.onCommunicationCommandsMap.find(function(d){return d.key===(E==null?void 0:_.bj(E,1))});
if(h==null?0:h.value)return h==null?void 0:h.value}catch(d){}}};
Pv.prototype.dataChanged=Pv.prototype.dataChanged;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Pv.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],Pv.prototype,"ytComponentBehavior",void 0);_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],Pv.prototype,"actionHandlerBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],Pv.prototype,"data",void 0);
_.T([_.O({value:!1}),_.Y("design:type",Boolean)],Pv.prototype,"isDarkTheme",void 0);_.T([_.gQ("#iframe"),_.Y("design:type",HTMLIFrameElement)],Pv.prototype,"iframe",void 0);_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Pv.prototype,"dataChanged",null);Pv=_.T([_.$3({is:"yt-iframe-renderer",disableElementRegistration:!0})],Pv);
_.r(Pv,"yt-iframe-renderer",function(){if(xK_===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-iframe-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.ypc.yt_iframe_renderer.yt.iframe.renderer.css.js--\x3e<iframe id="iframe" class="style-scope yt-iframe-renderer"></iframe>');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;DKM===void 0&&(DKM=document.createElement("template"));var h=DKM;E.call(W,h.content.cloneNode(!0),F.content.firstChild);xK_=F}F=xK_;return F},{mode:2});_.Jd=function(F){_.xj.call(this);this.callback=F;this.bezier=new Q4c(0,0,.4,0,.2,1,1,1);this.delay=new _.KX(this.next,window,this);this.JSC$14630_animating=!1;_.gl(this,this.delay)};
_.k(_.Jd,_.xj);_.Jd.prototype.isAnimating=function(){return this.JSC$14630_animating};
_.Jd.prototype.start=function(F,W,E){this.config={from:F,to:W,duration:E,startTime:(0,_.KU)()};this.JSC$14630_animating=!0;this.next()};
_.Jd.prototype.stop=function(){this.delay.stop();this.JSC$14630_animating=!1;this.config=void 0};
_.Jd.prototype.next=function(){if(this.config){var F=this.config,W=F.from,E=F.to,h=F.duration;F=F.startTime;var d=(0,_.KU)()-F;F=this.bezier;h=tai(F,d/h);if(h==0)F=F.y0;else if(h==1)F=F.y3;else{d=Z9(F.y0,F.y1,h);var V=Z9(F.y1,F.y2,h);F=Z9(F.y2,F.y3,h);d=Z9(d,V,h);V=Z9(V,F,h);F=Z9(d,V,h)}F=_.jX(F,0,1);this.callback(W+(E-W)*F);F<1?this.delay.start():this.JSC$14630_animating=!1}};_.ac=new _.NG("MINI_APP_CLIENT_DATA_PROVIDER_TOKEN");new CustomEvent("iframeLoadedForTesting");var k7c={INIT:0,START:1,READY:2,END:3,0:"INIT",1:"START",2:"READY",3:"END"},sNO=function(F,W,E,h){_.xj.call(this);this.JSC$14638_miniAppId=F;this.localReleaseId=W;this.derivedDeviceInterface=E;this.isForeground=h;this.JSC$14638_playNonceResolver=new _.eR;this.playPingTimerId=NaN;this.playPingIntervalMs=_.dV("play_ping_interval_ms",3E4);this.playClickIntervalMs=_.dV("play_click_interval_ms",3E4);this.enableDisplayingPpn=_.c("enable_displaying_ppn");this.JSC$14638_miniAppClientDataProvider=_.WZ().resolve(_.ac);
this.state=0;this.firstClickRecorded=!1;this.clickRecordedMs=0;this.beforeReady=!0;this.gameReady=!1;AZO(this);var d=setTimeout(function(){_.OB(new _.xC("Timed out after 30000ms while waiting for play nonce"))},3E4);
this.JSC$14638_playNonceResolver.promise.then(function(){clearTimeout(d)})};
_.k(sNO,_.xj);var q7z=function(F,W){F.JSC$14638_playNonceResolver.resolve(W!=null?W:Xf(8));F.enableDisplayingPpn&&L$B(F).then(function(E){F.JSC$14638_miniAppClientDataProvider.clientData.set("post_play_nonce",E)})},L$B=function(F){return _.e(function(W){return W.nextAddress==1?_.Q(W,F.JSC$14638_playNonceResolver.promise,2):W.return(W.yieldResult)})},AZO=function(F){var W,E;
_.e(function(h){if(h.nextAddress==1)return _.Q(h,F.JSC$14638_playNonceResolver.promise,2);W=h.yieldResult;E={miniAppInfo:{externalPostId:F.JSC$14638_miniAppId,localReleaseId:F.localReleaseId,postPlayNonce:W,derivedDeviceInterface:F.derivedDeviceInterface}};_.$b(E);_.gG(h)})},Z9X=function(F){F.state!==0?_.OB(new _.xC("[MiniAppPlayLogger] recordPlayStart failed with state "+k7c[F.state])):(F.state=1,f_(F,"ma_cl"),Ot(F,"PLAY_EVENT_TYPE_PLAY_START"),$KB(F))},XxT=function(F){F.isForeground=!1;
Ot(F,"PLAY_EVENT_TYPE_PLAY_PAUSE")},H9i=function(F){F.state!==1&&F.state!==2?_.OB(new _.xC("[MiniAppPlayLogger] recordPlayEnd failed with state "+k7c[F.state])):(F.state=3,window.clearInterval(F.playPingTimerId),F.playPingTimerId=NaN,UGn(),Ot(F,"PLAY_EVENT_TYPE_PLAY_END",{},!0))},P7e=function(F,W){F.state===2&&F.gameReady&&(F.firstClickRecorded?Date.now()-F.clickRecordedMs<F.playClickIntervalMs||(F.clickRecordedMs=Date.now(),Ot(F,"PLAY_EVENT_TYPE_PLAY_CLICK")):W&&(f_(F,"ma_fua"),Ot(F,"PLAY_EVENT_TYPE_PLAY_FIRST_USER_ACTION",
{sendIsolatedPayload:!0}),F.firstClickRecorded=!0,F.clickRecordedMs=Date.now()))};
sNO.prototype.logError=function(F){var W=this,E;_.e(function(h){if(h.nextAddress==1)return F.metadata.externalPostId=W.JSC$14638_miniAppId,E=F.metadata,_.Q(h,Promise.race([W.JSC$14638_playNonceResolver.promise,new Promise(function(d){setTimeout(function(){d("")},3E4)})]),2);
E.postPlayNonce=h.yieldResult;F.metadata.localReleaseId=W.localReleaseId;F.loggingError.level="WARNING";_.a_(F.loggingError,F.loggingError.level,void 0,void 0,void 0,void 0,void 0,{miniAppMetadata:F.metadata});_.gG(h)})};
var JZc=function(F,W,E,h){var d,V,R,M,g,t;_.e(function(C){if(C.nextAddress==1)return _.Q(C,F.JSC$14638_playNonceResolver.promise,2);d=C.yieldResult;V={externalPostId:F.JSC$14638_miniAppId,localReleaseId:F.localReleaseId,postPlayNonce:d,sdkVersion:E,api:W};h!==void 0&&(V.networkRequestsMeasurement={networkRequests:_.Wb(h,1),cachedRequests:_.Wb(h,2),transferredBytes:_.Wb(h,3)},(R=h)==null?0:_.Lc(R,dZ,6))&&(V.networkRequestsMeasurement.serviceWorkerRequestsMeasurement={interceptedRequests:((M=_.Em(h,
dZ,6))==null?void 0:nc(M,1))||"0",cacheHits:((g=_.Em(h,dZ,6))==null?void 0:nc(g,2))||"0",cachedBytes:((t=_.Em(h,dZ,6))==null?void 0:nc(t,3))||"0"});_.Pc("miniAppSdkUsage",V);_.gG(C)})},fke=function(F,W,E){var h,d,V,R,M,g,t,C,B,I,x,A,X,P,b,l;
_.e(function(w){if(w.nextAddress==1)return _.Q(w,F.JSC$14638_playNonceResolver.promise,2);h=w.yieldResult;d={externalPostId:F.JSC$14638_miniAppId,localReleaseId:F.localReleaseId,postPlayNonce:h,sdkVersion:E,measurementWindow:{startTimestampMs:String(fc(W,1)),endTimestampMs:String(fc(W,2))},frameRate:{averageFrameTimeDeltaMs:OV(W,3),averageFrameIdleTimeMs:OV(W,4)}};_.Lc(W,NC,5)&&(d.networkRequests={networkRequests:(V=QE(W))==null?void 0:_.Wb(V,1),cachedRequests:(R=QE(W))==null?void 0:_.Wb(R,2),transferredBytes:(M=
QE(W))==null?void 0:_.Wb(M,3),sameOriginStatusCodeToCounts:akc((g=QE(W))==null?void 0:WgW(g,4)),crossOriginStatusCodeToCounts:akc((t=QE(W))==null?void 0:WgW(t,5))},(C=QE(W))==null?0:_.Lc(C,dZ,6))&&(d.networkRequests.serviceWorkerRequestsMeasurement={interceptedRequests:((B=QE(W))==null?void 0:(I=_.Em(B,dZ,6))==null?void 0:nc(I,1))||"0",cacheHits:((x=QE(W))==null?void 0:(A=_.Em(x,dZ,6))==null?void 0:nc(A,2))||"0",cachedBytes:((X=QE(W))==null?void 0:(P=_.Em(X,dZ,6))==null?void 0:nc(P,3))||"0"});_.Lc(W,
qZT,7)&&(d.gameCapture={averageFrameTimeDeltaMs:(b=_.Em(W,qZT,7))==null?void 0:OV(b,1),averageFrameIdleTimeMs:(l=_.Em(W,qZT,7))==null?void 0:OV(l,2)});_.Pc("miniAppPerformanceMetrics",d);_.gG(w)})},O9M=function(F,W,E){var h,d;
return _.e(function(V){if(V.nextAddress==1)return _.Q(V,F.JSC$14638_playNonceResolver.promise,2);h=V.yieldResult;d={adResult:"MINI_APP_AD_RESULT_REJECTED",miniAppContext:{externalPostId:F.JSC$14638_miniAppId,postPlayNonce:h,miniAppReleaseId:F.localReleaseId},derivedDeviceInterface:F.derivedDeviceInterface,adTriggerType:W};d.rejectedReason=E||"MINI_APP_AD_REJECTED_REASON_UNSPECIFIED";_.Pc("miniAppAdEvent",d);_.gG(V)})};
sNO.prototype.disposeInternal=function(){_.xj.prototype.disposeInternal.call(this);window.clearInterval(this.playPingTimerId);this.playPingTimerId=NaN};
var Ot=function(F,W,E,h){E=E===void 0?{}:E;h=h===void 0?!1:h;var d,V,R,M;_.e(function(g){if(g.nextAddress==1)return d=F.isForeground,V=F.beforeReady,_.Q(g,F.JSC$14638_playNonceResolver.promise,2);R=g.yieldResult;M={externalPostId:F.JSC$14638_miniAppId,localReleaseId:F.localReleaseId,derivedDeviceInterface:F.derivedDeviceInterface,postPlayNonce:R,type:W};E.sequenceGroup=R;M.playState=V?"PLAY_STATE_NOT_READY":d?"PLAY_STATE_READY_FOREGROUND":"PLAY_STATE_READY_BACKGROUND";_.Pc("miniAppPlayEvent",M,E);
h&&_.JV();_.gG(g)})},f_=function(F,W){var E;
_.e(function(h){if(h.nextAddress==1)return E=(0,_.KU)(),_.Q(h,F.JSC$14638_playNonceResolver.promise,2);_.P5(W,E);_.gG(h)})},$KB=function(F){isNaN(F.playPingTimerId)&&(F.playPingTimerId=_.e5(function(){F.state!==1&&F.state!==2?_.OB(new _.xC("[MiniAppPlayLogger] reportPlayPing failed with state "+k7c[F.state])):Ot(F,"PLAY_EVENT_TYPE_PLAY_PING")},F.playPingIntervalMs))},akc=function(F){return Array.from(F.entries()).map(function(W){var E=_.U(W);
W=E.next().value;E=E.next().value;return{key:W,value:E}})};var b9B=_.dV("show_mini_app_ad_frequency_cap_ms",0),lkB=function(){this.showAdIntervalMs=b9B;this.isRateLimited=!0},nNB=function(F,W){setTimeout(function(){return F.isRateLimited=!1},F.showAdIntervalMs);
F.showMiniAppAdCommand=W.showMiniAppAdCommand;F.isEmbeddedInWebview=W.isEmbeddedInWebview;F.playLogger=W.playLogger},jNM=function(F,W){var E;
return _.e(function(h){if(h.nextAddress==1){if(!F.showMiniAppAdCommand||!F.isEmbeddedInWebview)return h.return(yZp(F,W,"MINI_APP_AD_REJECTED_REASON_CLIENT_UNSUPPORTED"));if(F.isRateLimited)return h.return(yZp(F,W,"MINI_APP_AD_REJECTED_REASON_RATE_LIMITED"));F.adResolver=new _.eR;E=Ysu(new G0M,W);Sm(F.showMiniAppAdCommand,wI_(E));F.isRateLimited=!0;setTimeout(function(){return F.isRateLimited=!1},F.showAdIntervalMs);
return _.Q(h,F.adResolver.promise,2)}return h.return(h.yieldResult)})};
lkB.prototype.onAdFinished=function(F){F=dBp(F);var W;(W=this.adResolver)==null||W.resolve(F)};
var yZp=function(F,W,E){var h;return _.e(function(d){if(d.nextAddress==1)d=_.Q(d,(h=F.playLogger)==null?void 0:O9M(h,Aob(W),E),2);else{var V=d.return;var R=new h9B;R=_.hH(R,1,2);d=V.call(d,R)}return d})};var i9_=new _.NG("INNERTUBE_MANAGER_TOKEN");var rZp=function(){this.callbacks={}};
rZp.prototype.initialize=function(F){var W=this;this.callbacks=F;window.youtubewebview?window.youtubewebview.onmessage=function(E){TKe(W,E)}:(window.nativeMessageListener={},window.nativeMessageListener.onmessage=function(E){TKe(W,E)})};
var TKe=function(F,W){if(W.data)try{var E=XtH(W.data);if(_.yx(_.Af(E,1))!=null){var h=yha(_.bj(E,2));switch(_.bj(E,1)){case "yt-mini-app-load-audio-state":var d,V;(V=(d=F.callbacks).onAudioStateLoaded)==null||V.call(d,_.aZ(h,cc(h,Oa,1)));break;case "yt-mute-mini-app":var R,M;(M=(R=F.callbacks).onMuteMiniApp)==null||M.call(R);break;case "yt-unmute-mini-app":var g,t;(t=(g=F.callbacks).onUnmuteMiniApp)==null||t.call(g);break;case "yt-playable-exit":var C,B;(B=(C=F.callbacks).onExit)==null||B.call(C);
break;case "yt-post-play-nonce":var I,x;(x=(I=F.callbacks).onPostPlayNonceReceived)==null||x.call(I,yF(h,2,Oa));break;case "yt-confirm-exit-mini-app":var A,X;(X=(A=F.callbacks).confirmExitMiniApp)==null||X.call(A);break;case "yt-confirm-exit-mini-app-edu":var P,b;(b=(P=F.callbacks).confirmExitMiniAppEdu)==null||b.call(P);break;case "yt-benchmarking-response":var l,w;(w=(l=F.callbacks).onNativeBenchmarkingMessageReceived)==null||w.call(l,yF(h,2,Oa));break;case "yt-mini-app-load-3p-consent-state":var G,
hr;(hr=(G=F.callbacks).multiplayer3pAckStateLoaded)==null||hr.call(G,_.aZ(h,cc(h,Oa,1)));break;case "yt-mini-app-get-exit-mini-app-seen-state":var p,UY;(UY=(p=F.callbacks).exitMiniAppSeenStateLoaded)==null||UY.call(p,_.aZ(h,cc(h,Oa,1)));break;case "yt-mini-app-on-navigate-to-new-mini-app":var xW,qw;(qw=(xW=F.callbacks).onNavigateToNewMiniApp)==null||qw.call(xW);break;case "yt-game-data-available":var Lb,jk;(jk=(Lb=F.callbacks).onGameDataAvailable)==null||jk.call(Lb,yF(h,2,Oa));break;case "yt-pause-mini-app":var Jr,
nb;(nb=(Jr=F.callbacks).onPauseMiniApp)==null||nb.call(Jr);break;case "yt-resume-mini-app":var bo,uo;(uo=(bo=F.callbacks).onResumeMiniApp)==null||uo.call(bo);break;case "yt-playable-ad-finished":var b_,BO;(BO=(b_=F.callbacks).onAdFinished)==null||BO.call(b_,yF(h,2,Oa))}}else _.OB(Error("Rh"))}catch(dc){_.a_(Error("Sh"))}else _.OB(Error("Th"))};var LuS=function(F){this.rpcErrorCode=F};var bR=function(F,W,E){this.intervalMs=F;this.apiFunc=W;this.type=E;this.schedulerReady=!0};
bR.prototype.call=function(F){var W=this,E;return _.e(function(h){if(h.nextAddress==1){if(W.type!==1&&F===W.cachedValue)return h.return();W.pendingApiRequestResolver||(W.pendingApiRequestResolver=new _.eR);E=W.pendingApiRequestResolver.promise;W.cachedValue=F;return _.Q(h,oNU(W),2)}return h.return(E)})};
bR.prototype.flush=function(F){F=F===void 0?!1:F;var W=this;return _.e(function(E){return W.cachedValue===void 0?E.return():_.Q(E,W.apiFunc(W.cachedValue,F),0)})};
var oNU=function(F){var W,E,h;return _.e(function(d){switch(d.nextAddress){case 1:if(!F.schedulerReady||!F.pendingApiRequestResolver)return d.return();F.schedulerReady=!1;W=F.pendingApiRequestResolver;F.pendingApiRequestResolver=void 0;_.Nl(d,2);if(F.cachedValue===void 0){d.jumpTo(4);break}return _.Q(d,F.apiFunc(F.cachedValue),5);case 5:E=d.yieldResult,W.resolve(E);case 4:_.id(d,3);break;case 2:h=_.Ml(d),W.reject(h);case 3:setTimeout(function(){return _.e(function(V){F.schedulerReady=!0;return _.Q(V,
oNU(F),0)})},F.intervalMs),_.gG(d)}})};var Z4o=window.location.origin+"/miniapp_cloudsaves",q3G=[400,401],G7H=_.dV("cloud_save_game_data_rate_limit_ms",3E3),u_T=function(F){var W=this;this.JSC$14682_miniAppId=F;this.loadAttempts=0;this.cloudSaveIntervalMs=G7H;this.initialDownloadDataSucceeded=!1;this.JSC$14682_playNonceResolver=new _.eR;this.scottyUploadRateLimiter=new bR(this.cloudSaveIntervalMs,function(E,h){return Y7U(W,E,h)},2);
this.downloadDataPromise=wxO(this);this.downloadDataPromise.then(function(){W.initialDownloadDataSucceeded=!0}).catch(function(){})},S7M=function(F,W){W.then(function(E){return F.JSC$14682_playNonceResolver.resolve(E)})},pxU=function(F){return _.e(function(W){return F.cachedData===void 0?W.return(F.downloadDataPromise):W.return(F.cachedData)})},mKu=function(F,W){return _.e(function(E){F.cachedData=W;
if(!F.initialDownloadDataSucceeded)throw Error("Uh");return _.Q(E,F.scottyUploadRateLimiter.call(W),0)})},K$M=function(){return new Promise(function(F){setTimeout(F,1E3,"")})},FLH=function(F,W){var E,h;
return _.e(function(d){if(d.nextAddress==1)return E=F.JSC$14682_miniAppId,_.Q(d,Promise.race([F.JSC$14682_playNonceResolver.promise,K$M()]),2);h={"X-YouTube-MiniAppId":E,"X-YouTube-PostPlayNonce":d.yieldResult};"DELEGATED_SESSION_ID"in _.fW&&lmk(W,h);return d.return(h)})},Y7U=function(F,W,E){E=E===void 0?!1:E;
return _.e(function(h){return sBo()?_.c("enable_cloud_save_error_popup_after_retry")?h.return(new Promise(function(d,V){var R,M,g,t,C;return _.e(function(B){switch(B.nextAddress){case 1:R=0,M=!0,t=g=null;case 2:if(!(M&&R++<2)){B.jumpTo(4);break}_.Nl(B,5);return _.Q(B,WLc(F,W,E),7);case 7:g=B.yieldResult;M=g.ok?!1:!q3G.includes(g.status);_.id(B,2);break;case 5:t=C=_.Ml(B);M=$sn(t);B.jumpTo(2);break;case 4:g?g.ok?(lR(F,G7H),d()):(lR(F,F.cloudSaveIntervalMs*2),V(Error("Vh`"+String(g.status),{cause:{rpcErrorCode:g.status}}))):
(lR(F,F.cloudSaveIntervalMs*2),V(t||Error("Wh"))),_.gG(B)}})})):h.return(new Promise(function(d,V){var R,M;
return _.e(function(g){if(g.nextAddress==1){if(F.JSC$14682_miniAppId==="")return V(Error("Xh")),g.return();_.Nl(g,2);return _.Q(g,WLc(F,W,E),4)}if(g.nextAddress!=2)return R=g.yieldResult,R.ok?(lR(F,G7H),d()):(lR(F,F.cloudSaveIntervalMs*2),V(Error("Vh`"+String(R.status),{cause:{rpcErrorCode:R.status}}))),_.id(g,0);M=_.Ml(g);lR(F,F.cloudSaveIntervalMs*2);V(M);_.gG(g)})})):h.return()})},WLc=function(F,W,E){E=E===void 0?!1:E;
var h,d,V;return _.e(function(R){if(R.nextAddress==1)return h=_.FG((new TextEncoder).encode(W)),d=Xnn(),_.Q(R,FLH(F,d),2);V=R.yieldResult;return R.return(fetch(d,{method:"POST",body:new Blob([h]),headers:V,keepalive:E}))})},wxO=function(F){var W,E;
return _.e(function(h){if(h.nextAddress==1){if(!sBo())return h.return("");if(F.JSC$14682_miniAppId==="")throw Error("Xh");if(F.loadAttempts>2)return h.return(F.downloadDataPromise);_.Nl(h,2);return _.Q(h,Ela(F),4)}if(h.nextAddress!=2)return W=h.yieldResult,h.return(W);E=_.Ml(h);if($sn(E)&&++F.loadAttempts<2)return h.return(wxO(F));throw E;})},Ela=function(F){var W,E,h,d,V;
return _.e(function(R){switch(R.nextAddress){case 1:return _.Nl(R,2),W=Xnn(),_.Q(R,FLH(F,W),4);case 4:return E=R.yieldResult,_.Q(R,fetch(W,{method:"GET",headers:E}),5);case 5:return h=R.yieldResult,h.ok?_.Q(R,h.text(),6):R.return(Promise.reject(Error("Yh`"+String(h.status),{cause:new LuS(h.status)})));case 6:return d=R.yieldResult,R.return((new TextDecoder).decode(_.CT(d)));case 2:return V=_.Ml(R),R.return(Promise.reject(V))}})},lR=function(F,W){F.cloudSaveIntervalMs=W;
F.scottyUploadRateLimiter.intervalMs=F.cloudSaveIntervalMs};
u_T.prototype.flush=function(){var F=this;return _.e(function(W){return F.initialDownloadDataSucceeded?_.Q(W,F.scottyUploadRateLimiter.flush(!0),0):W.return()})};var hd_=MC(et(1),Ua(1)),dP_=MC(et(1),Ua(3)),n_=function(F){this.callbacks=F};
_.N=n_.prototype;_.N.onAudioToggled=function(F,W){(W===void 0||W)&&_.tl("yt-mini-app-is-audio-enabled",F,2592E3)};
_.N.onPause=function(){this.onAudioToggled(!1,!1)};
_.N.onResume=function(){this.onAudioToggled(this.callbacks.isAudioEnabled(),!1)};
_.N.returnNativeBenchmarkingMessage=function(){};
_.N.sendGameData=function(){};
_.N.sendStartGameFrameCapture=function(){};
var H4b=function(F,W,E){this.callbacks=F;var h=this;this.sdkVersion=new _.eR;this.channel=new rXn(_.NS({destination:window,iframe:W,origin:(new URL(E.toString())).origin,channelName:"playableIframe",onMessage:this.onMessage(),onEstablished:function(){var d=yG;var V=et(5);var R=new z9p;R=_.ij(R,1,1E4);V=_.dU(V,4,xBp,R);d(h,V);h.onAudioToggled(h.callbacks.isAudioEnabled())}}));
this.sdkVersionTimeoutId=setTimeout(function(){h.sdkVersion.resolve("")},1E4)};
_.k(H4b,n_);_.N=H4b.prototype;_.N.onAudioToggled=function(F,W){n_.prototype.onAudioToggled.call(this,F,W===void 0?!0:W);W=yG;var E=et(2),h=new gP_;F=_.NT(h,1,F);F=_.dU(E,3,xBp,F);W(this,F)};
_.N.onPause=function(){n_.prototype.onPause.call(this);yG(this,et(3))};
_.N.onResume=function(){n_.prototype.onResume.call(this);yG(this,et(4))};
_.N.returnNativeBenchmarkingMessage=function(F){var W=yG,E=et(6);var h=Ua(_.Lc(F,Kv,1)?1:2);F=_.Lc(F,Kv,1)?F:null;h=_.dU(h,5,RH,F);W(this,MC(E,h))};
_.N.sendGameData=function(F){var W=yG,E=et(7);F=_.dU(E,5,xBp,F);W(this,F)};
_.N.sendStartGameFrameCapture=function(){yG(this,et(9))};
var jE=function(F,W,E){var h,d,V;return _.e(function(R){if(R.nextAddress==1)return h=F.callbacks,d=h.onSdkCalled,V=W,_.Q(R,F.sdkVersion.promise,2);d.call(h,V,R.yieldResult,E);_.gG(R)})};
H4b.prototype.onMessage=function(){var F=this;return GeW(zh,function(W){var E,h,d,V,R,M,g,t,C,B,I,x,A,X,P,b,l,w,G,hr,p,UY,xW,qw,Lb,jk,Jr,nb,bo,uo,b_,BO,dc,VM,Z_,MU,Ef,kR,Rn,se,l_,j$,HO,YB,GT,vO;return _.e(function(wI){switch(wI.nextAddress){case 1:if(!Hki(W.data))return _.OB(Error("Zh")),wI.return();E=_.lj(W.data,1);_.c("enable_iframe_message_get_type_via_fields")&&(h=W.data,E=d=_.lj(h,1));switch(E){case 8:if(W.data.hasMetadata()){var Aa=F.sdkVersion,MF=Aa.resolve;var LT=W.data.getMetadata();LT=_.bj(LT,
1);MF.call(Aa,LT);clearTimeout(F.sdkVersionTimeoutId)}break;case 6:return wI.jumpTo(2);case 16:if(!_.qa(W.data,sVO,14,t7))return wI.return();V=_.j2(W.data,sVO,14,t7);(M=(R=F.callbacks).onGameFrameReceived)==null||M.call(R,V);return wI.return();case 17:if(!_.qa(W.data,AUB,15,t7))return wI.return();(t=(g=F.callbacks).onGameAudioReceived)==null||t.call(g,_.j2(W.data,AUB,15,t7));return wI.return();case 1:if(Aa=_.j2(W.data,BXT,2,t7))switch(_.lj(Aa,1)){case 1:F.callbacks.onFirstFrameReady();if(_.c("enable_network_request_logging_on_game_events")&&
_.Lc(Aa,NC,4)){jE(F,"MINI_APP_SDK_API_FIRST_FRAME_READY",_.Em(Aa,NC,4));break}jE(F,"MINI_APP_SDK_API_FIRST_FRAME_READY");break;case 2:(LT=(MF=F.callbacks).onGameReady)==null||LT.call(MF);if(_.c("enable_network_request_logging_on_game_events")&&_.Lc(Aa,NC,4)){jE(F,"MINI_APP_SDK_API_GAME_READY",_.Em(Aa,NC,4));break}jE(F,"MINI_APP_SDK_API_GAME_READY");break;case 3:if(_.qa(Aa,VE,3,vPM))F.callbacks.onResourceLoaded(_.j2(Aa,VE,3,vPM))}return wI.return();case 3:return wI.jumpTo(3);case 4:return wI.jumpTo(4);
case 2:return wI.jumpTo(5);case 9:return wI.jumpTo(6);case 10:return F.callbacks.onClick(),wI.return();case 5:return wI.jumpTo(7);case 11:if(!_.qa(W.data,Ea,9,t7))return wI.return();C=_.j2(W.data,Ea,9,t7);(I=(B=F.callbacks).onBenchmarkingMessageReceived)==null||I.call(B,C);Aa=W.reply;MF=et(1);LT=Ua(1);var Du=new Ea;var MR=new Uint8Array(Qgw(C,cc(C,VXB,6))|0);Du=tV(Du,5,VXB,_.Tz(MR,!1));LT=_.dU(LT,5,RH,Du);Aa.call(W,MC(MF,LT));return wI.return();case 12:return wI.jumpTo(8);case 13:return wI.jumpTo(9);
case 15:if(!_.c("enable_open_yt_content"))return W.reply(dP_),wI.return();if(!_.qa(W.data,kFe,12,t7))return W.reply(MC(et(1),Ua(2))),wI.return();Aa=_.j2(W.data,kFe,12,t7);x=_.bj(Aa,1);F.callbacks.onOpenYTContent(x);W.reply(hd_);return wI.return();case 14:return wI.jumpTo(10);default:return wI.return()}wI.jumpTo(0);break;case 2:if(!_.qa(W.data,gZ,5,t7))return wI.return();MF=W.data;Aa=cc(MF,t7,5);MF=MF.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;(Aa=XG(MF,MF[_.Xp]|0,gZ,Aa))||(Aa=gZ[oO])||
(Aa=new gZ,ai(Aa.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows),Aa=gZ[oO]=Aa);A=Aa;Aa=_.KC(A,h7,1,_.Fg());X=_.U(Aa);P=X.next();case 12:if(P.done){wI.jumpTo(14);break}b=P.value;l=new _.xC;l.level=_.lj(b,2)===1?"WARNING":"ERROR";w=JoS(b.getSource());return _.Q(wI,F.sdkVersion.promise,15);case 15:G={source:w,sdkVersion:wI.yieldResult};_.kK(_.Af(b,6))!=null?(l.message=b.getMessage(),l.stack=_.bj(b,5),G.sdkErrorType=aKk(_.lj(b,6)),_.kK(_.Af(b,7))!=null&&(G.sdkApi=fKw(_.lj(b,7)))):l.stack=void 0;
p=hr=void 0;(p=(hr=F.callbacks).onError)==null||p.call(hr,{loggingError:l,metadata:G});P=X.next();wI.jumpTo(12);break;case 14:return wI.return();case 3:return _.Nl(wI,16),Aa=F.callbacks,MF=Aa.onSave,LT=_.j2(W.data,QVp,4,t7),LT=_.bj(LT,1),_.Q(wI,MF.call(Aa,LT),18);case 18:W.reply(hd_);_.id(wI,17);break;case 16:return UY=_.Ml(wI),xW=pI,qw=UY,Lb=F.callbacks,jk="MINI_APP_SDK_API_SAVE_DATA",_.Q(wI,F.sdkVersion.promise,19);case 19:xW(qw,Lb,jk,wI.yieldResult),W.reply(dP_);case 17:return _.Q(wI,jE(F,"MINI_APP_SDK_API_SAVE_DATA"),
20);case 20:return wI.return();case 4:return _.Nl(wI,21),_.Q(wI,F.callbacks.onLoad(),23);case 23:Jr=wI.yieldResult;Aa=W.reply;MF=et(1);LT=Ua(1);Du=new QVp;Du=_.QJ(Du,1,Jr);LT=_.dU(LT,3,RH,Du);Aa.call(W,MC(MF,LT));_.id(wI,22);break;case 21:return nb=_.Ml(wI),bo=pI,uo=nb,b_=F.callbacks,BO="MINI_APP_SDK_API_LOAD_DATA",_.Q(wI,F.sdkVersion.promise,24);case 24:bo(uo,b_,BO,wI.yieldResult),W.reply(dP_);case 22:return _.Q(wI,jE(F,"MINI_APP_SDK_API_LOAD_DATA"),25);case 25:return wI.return();case 5:_.Nl(wI,
26);F.callbacks.onSendHighScore(Pb(_.j2(W.data,Zkz,3,t7).getValue()));W.reply(MC(et(1),Ua(1)));_.id(wI,27);break;case 26:return dc=_.Ml(wI),VM=pI,Z_=dc,MU=F.callbacks,Ef="MINI_APP_SDK_API_SEND_SCORE",_.Q(wI,F.sdkVersion.promise,28);case 28:VM(Z_,MU,Ef,wI.yieldResult),W.reply(dP_);case 27:return _.Q(wI,jE(F,"MINI_APP_SDK_API_SEND_SCORE"),29);case 29:return wI.return();case 6:if(!_.qa(W.data,X6u,8,t7)){wI.jumpTo(30);break}Aa=_.j2(W.data,X6u,8,t7);Aa=_.lj(Aa,1);return _.Q(wI,jE(F,fKw(Aa)),30);case 30:return wI.return();
case 7:return Aa=W.reply,MF=et(1),LT=Ua(1),Du=F.callbacks.getLanguage(),LT=tV(LT,4,RH,nN(Du)),Aa.call(W,MC(MF,LT)),_.Q(wI,jE(F,"MINI_APP_SDK_API_GET_LANGUAGE"),32);case 32:return wI.return();case 8:if(!_.qa(W.data,$Ba,10,t7))return wI.return();kR=_.j2(W.data,$Ba,10,t7);Rn=F.callbacks;se=Rn.onSdkPerformanceUpdate;return _.Q(wI,F.sdkVersion.promise,33);case 33:return se.call(Rn,kR,wI.yieldResult),wI.return();case 9:Aa=W.data;MF=cc(Aa,t7,11);if(_.yx(_.Af(Aa,MF))==null)return W.reply(MC(et(1),Ua(2))),
wI.return();l_=yF(W.data,11,t7);F.callbacks.onShareInviteCode(l_);W.reply(hd_);return _.Q(wI,jE(F,"MINI_APP_SDK_API_SHARE_INVITE_CODE"),34);case 34:return wI.return();case 10:if(_.qa(W.data,MXX,13,t7)){wI.jumpTo(35);break}return _.Q(wI,F.callbacks.onShowMiniAppAd(2),36);case 36:return j$=wI.yieldResult,W.reply(MC(et(1),cUz(j$))),_.Q(wI,jE(F,"MINI_APP_SDK_API_REQUEST_AD"),37);case 37:return wI.return();case 35:Aa=_.j2(W.data,MXX,13,t7);a:switch(_.lj(Aa,1)){case 1:Aa={adType:2,sdkApi:"MINI_APP_SDK_API_REQUEST_INTERSTITIAL_AD"};
break a;case 2:Aa={adType:3,sdkApi:"MINI_APP_SDK_API_REQUEST_REWARDED_AD"};break a;default:Aa={adType:0,sdkApi:"MINI_APP_SDK_API_REQUEST_AD"}}HO=Aa;YB=HO.adType;GT=HO.sdkApi;Aa=F.callbacks;MF=Aa.onShowMiniAppAd;LT=_.j2(W.data,MXX,13,t7);LT=_.bj(LT,2);return _.Q(wI,MF.call(Aa,YB,LT||void 0),38);case 38:return vO=wI.yieldResult,W.reply(MC(et(1),cUz(vO))),_.Q(wI,jE(F,GT),39);case 39:return wI.return()}})})};
var yG=function(F,W){_.e(function(E){F.channel.send(W);_.gG(E)})},mc=function(F,W,E){this.callbacks=F;
var h=this;this.encoder=new TextEncoder;this.decoder=new TextDecoder;F=URG(W,(new URL(E.toString())).origin);this.gameSnacks=new NIM(F);this.gameSnacks.page.onReady(function(){h.callbacks.onFirstFrameReady()});
this.gameSnacks.userActivity.onUserActivity(function(){h.callbacks.onClick()},1E4);
this.gameSnacks.game.onReady(function(){var d,V;(V=(d=h.callbacks).onGameReady)==null||V.call(d)});
this.gameSnacks.audio.update(this.callbacks.isAudioEnabled());this.gameSnacks.score.onChange(function(d,V){try{h.callbacks.onSendHighScore(V)}catch(R){pI(R,h.callbacks,"MINI_APP_SDK_API_SEND_SCORE","GS")}});
this.gameSnacks.storage.onSave(function(d,V){var R;return _.e(function(M){if(M.nextAddress==1)return _.Nl(M,2),_.Q(M,h.callbacks.onSave(h.decoder.decode(V)),4);if(M.nextAddress!=2)return _.id(M,0);R=_.Ml(M);pI(R,h.callbacks,"MINI_APP_SDK_API_SAVE_DATA","GS");return M.return()})});
this.gameSnacks.storage.onLoad(function(){var d,V;return _.e(function(R){if(R.nextAddress==1)return _.Nl(R,2),_.Q(R,h.callbacks.onLoad(),4);if(R.nextAddress!=2)return d=R.yieldResult,R.return(h.encoder.encode(d));V=_.Ml(R);pI(V,h.callbacks,"MINI_APP_SDK_API_LOAD_DATA","GS");return R.return(h.encoder.encode(""))})});
this.gameSnacks.init()};
_.k(mc,n_);mc.prototype.onAudioToggled=function(F,W){n_.prototype.onAudioToggled.call(this,F,W===void 0?!0:W);var E;(E=this.gameSnacks)==null||E.audio.update(F)};
mc.prototype.onPause=function(){n_.prototype.onPause.call(this);var F;(F=this.gameSnacks)==null||F.game.pause()};
mc.prototype.onResume=function(){n_.prototype.onResume.call(this);var F;(F=this.gameSnacks)==null||F.game.resume()};var NCT=O4n,VTi=_.GK(function(F){var W=F.data;var E=F.loadingProgress;F=_.U(_.g$("",void 0,"LYYTdd"));var h=F.next().value,d=F.next().value;F=_.U(_.g$(!1,void 0,"K0waae"));var V=F.next().value,R=F.next().value,M=[],g=function(){return"transform: scaleX("+(_.XO(E)||0)+")"},t=null,C=function(){var A;
return(A=W()&&t)!=null?A:t=W().showAnniversaryAnimation?6:NCT()};
_.q6(function(){var A;if(W().timeOutMessages&&((A=W().timeOutMessages)==null?0:A.length)){t=null;A=_.U(M);for(var X=A.next();!X.done;X=A.next())clearTimeout(X.value);M.length=0;b4b(W().timeOutMessages,M,d,R)}});
var B=function(){return!!W().persistentErrorMessageTitle},I=function(){return E!==void 0},x=function(){return W().title};
return _.z("yt-mini-splash-screen-view-model",{class:"mini-app-splash-screen-view-model-wiz"},_.z("div",{class:"mini-app-splash-screen-view-model-wiz__loading-screen",role:"region",tabindex:0},_.z("div",{class:"mini-app-splash-screen-view-model-wiz__background-base"}),_.z("div",{class:"mini-app-splash-screen-view-model-wiz__background-blur",style:function(){var A,X=(A=W().backgroundImage)==null?void 0:A.sources,P;return(X==null?0:X.length)?"background-image: url("+((P=X[0])==null?void 0:P.url)+")":
""}}),_.z("div",{class:"mini-app-splash-screen-view-model-wiz__background-scrim"}),_.z(_.v,{cond:function(){return!B()},
then:function(){var A={};return _.z("div",{class:"mini-app-splash-screen-view-model-wiz__loading-screen-content"},_.z("div",{class:"mini-app-splash-screen-view-model-wiz__loading-icon"},_.z(_.Mj,{className:"mini-app-splash-screen-view-model-wiz__loading-icon-animation",animationName:function(){return"loading_animation_"+C()},
data:function(){var X="loading_animation_"+C();return{animationConfig:{name:X,path:"https://www.gstatic.com/youtube/img/lottie/playables_loading_animation/"+X+".json",loop:!0,autoplay:!0}}}})),_.z("div",{class:"mini-app-splash-screen-view-model-wiz__timeout-message-container"},_.z(_.v,{cond:x,
then:function(){return _.z("h3",{class:"mini-app-splash-screen-view-model-wiz__timeout-heading"},x)}}),_.z("p",{class:_.ec("mini-app-splash-screen-view-model-wiz__timeout-message",(A["mini-app-splash-screen-view-model-wiz__timeout-message-fade-out"]=function(){return V()},A)),
"aria-live":"polite"},h),_.z(_.v,{cond:I,then:function(){return _.z("div",{class:"mini-app-splash-screen-view-model-wiz__loading-bar-track"},_.z("div",{class:"mini-app-splash-screen-view-model-wiz__loading-bar-segment mini-app-splash-screen-view-model-wiz__loading-bar-segment-resource-animation",style:g}))}})))}}),_.z(_.v,{cond:B,
then:function(){return _.z("div",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-content"},_.z("h3",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-message-title"},function(){return W().persistentErrorMessageTitle}),_.z(_.v,{cond:function(){return!!W().persistentErrorMessageDescription},
then:function(){return _.z("p",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-message-description"},function(){return W().persistentErrorMessageDescription})}}))}})))},"Ld");var UPO=new _.NG("SHARE_CLIENT_PARAMS_PROVIDER_TOKEN");var Rdz=Se;Se=function(F){function W(E){if(E){var h,d;(h=E.__spec)==null||(d=h.didUnmount)==null||d.call(h);for(h=0;h<E.childNodes.length;h++)W(E.childNodes[h])}}
Rdz==null||Rdz(F);kT(function(){for(var E=0;E<F.length;E++)W(F[E])})};var edX=_.GK(function(F){var W=F.data;var E=F.score;var h=F.formattedScore;var d=F.onScoreChanged;var V=F.isEmbeddedInWebview;var R=_.Sh(),M=function(){var x;return _.D(W==null?void 0:(x=W())==null?void 0:x.buttonViewModel,_.fx)},g=function(){var x;
return(E==null?void 0:E())||Number(W==null?void 0:(x=W())==null?void 0:x.lastScore)||0},t=function(){var x;
return(h==null?void 0:h())||((x=M())==null?void 0:x.title)||""},C,B=1;
if(F=(new URLSearchParams(window.location.search)).get("deviceTextZoomSetting"))F=Number(F),B=isNaN(F)?1:F/100;_.q6(function(){d==null||d(g());var x;var A=_.He((x=M())==null?void 0:x.onTap);if(A){x=_.D(A,Sau);var X,P,b;x=_.D(x==null?void 0:(X=x.panelLoadingStrategy)==null?void 0:(P=X.inlineContent)==null?void 0:(b=P.dialogViewModel)==null?void 0:b.customContent,u8z)}else x=void 0;if(X=x)X.score=t()});
F=_.tb(function(){var x,A,X=W==null?void 0:(x=W())==null?void 0:(A=x.loggingDirectives)==null?void 0:A.trackingParams;X&&_.Bt(_.WZ().resolve(_.cU),X);return!1});
_.Xk(function(){if(R.value){var x=R.value.querySelector("button"),A=M();x&&A&&lKI(x,A);FV("yt-share-playable-with-high-score",function(){var X=g().toString(),P=W==null?void 0:W().onShareHighScoreCommand,b=W==null?void 0:W().highScoreShareClientParamIdentifier,l=V==null?void 0:V();P&&(l?(b=new nJa,X=_.QJ(b,2,X),Sm(P,X.JSC$10178_serializeBinary())):b&&(_.WZ().resolve(UPO).clientParams.set(b,{miniAppClientParams:{highScore:X}}),Dso(P,!1)))})}});
var I=function(){var x=M();x&&(E==null?0:E())&&x.accessibilityText&&(x.accessibilityText=x.accessibilityText.replace(C,t()));C=t();return{numberValue:g(),numberText:t(),heightPx:36,fontSizeMultiplier:B,shouldAnimate:!(E==null||!E())&&!0}};
return _.z("yt-mini-app-score-button-view-model",{class:function(){var x={};return _.gY("mini-app-score-button-view-model-wiz",(x["mini-app-score-button-view-model-wiz--is-visible"]=g()!==0,x))},
el:R,"on:click":F},wl(!1,function(){return _.z("span",{style:"display:none;"},g)}),_.z(_.a6,{data:function(){var x;
return W==null?void 0:(x=W())==null?void 0:x.buttonViewModel}},{buttonViewModel:function(x){return _.z(_.rk,{data:x.data,
animatedTextProps:I})}}))},"Md");var tTe=_.GK(function(F){var W,E=(W=_.Cy("yt-mini-app-is-theater-mode-enabled"))!=null?W:!1,h=_.c("enable_playable_container_save_button"),d=_.c("enable_play_next_destination_page_in_toolbar");W={};return _.z("ytm-mini-app-top-bar-view-model",null,_.z("div",{class:_.ec("yt-mini-app-top-bar-view-model",(W["yt-mini-app-top-bar-view-model--mobile"]=!1,W["yt-mini-app-top-bar-view-model--desktop"]=!0,W))},_.z("div",{class:"yt-mini-app-top-bar-view-model__start-buttons"},_.z(_.v,{cond:function(){var V;
return!!F.data().backButtonEdu&&!((V=F.isExitMiniAppSeen)==null?0:V.call(F))},
then:function(){return _.z(_.a6,{data:function(){return F.data().backButtonEdu}},{buttonViewModel:_.rk})},
else:function(){return _.z(_.a6,{data:function(){return F.data().backButton}},{buttonViewModel:_.rk})}}),_.z(_.v,{cond:function(){return F.data().viewAllButton&&!0},
then:function(){return _.z(_.a6,{data:function(){return F.data().viewAllButton}},{buttonViewModel:_.rk})}}),_.z(_.v,{cond:function(){return F.data().title&&!0},
then:function(){return _.z("div",{class:"yt-mini-app-top-bar-view-model__title"},function(){return F.data().title})}})),_.z("div",{class:"yt-mini-app-top-bar-view-model__center-buttons"},_.z(_.v,{cond:function(){var V;
return(V=F.isDesktopPlayPage)==null?void 0:V.call(F)},
then:function(){return _.z(_.EG,null,_.z(MT_,{highScoreButton:function(){return F.data().highScoreButton},
score:F.score,formattedScore:F.formattedScore,onScoreChanged:F.onScoreChanged,isEmbeddedInWebview:F.isEmbeddedInWebview}),_.z(glp,{enableSaveButton:function(){return _.XO(h)},
saveButton:function(){return F.data().saveButton},
isSaved:F.isSaved,onSaveToggled:function(){return F.onSaveToggled}}),_.z(QEe,{menuButton:function(){return F.data().menuButton}}))},
else:function(){return _.z(_.v,{cond:function(){return!1},
then:function(){return _.z(_.a6,{data:function(){return F.data().playPageButton}},{buttonViewModel:function(V){return _.z(_.rk,{data:V.data,
className:"yt-mini-app-top-bar-view-model__play-page-button-view-model"})}})},
else:function(){return _.z(MT_,{highScoreButton:function(){return F.data().highScoreButton},
score:F.score,formattedScore:F.formattedScore,onScoreChanged:F.onScoreChanged,isEmbeddedInWebview:F.isEmbeddedInWebview})}})}})),_.z("div",{class:"yt-mini-app-top-bar-view-model__end-buttons"},_.z(_.a6,{data:function(){return F.data().muteButton}},{toggleButtonViewModel:function(V){var R=V.data;
return _.z(_.bJ,{data:function(){var M,g;return Object.assign({},R(),{isToggled:(g=(M=F.isAudioEnabled)==null?void 0:M.call(F))!=null?g:!0})},
onToggle:F.onAudioToggled,useOutlinedIcon:!0})}}),_.z(_.a6,{data:function(){return F.data().theatreModeButton}},{toggleButtonViewModel:function(V){var R=V.data;
return _.z("div",{class:"yt-mini-app-top-bar-view-model__theatre-mode-button"},_.z(_.bJ,{data:function(){return Object.assign({},R(),{isToggled:E})},
useOutlinedIcon:!0}))}}),_.z(zdH,{fullscreenButton:function(){return F.data().fullscreenButton}}),_.z(_.v,{cond:function(){return _.XO(d)&&F.data().viewAllButton&&!1},
then:function(){return _.z(_.a6,{data:function(){return F.data().viewAllButton}},{buttonViewModel:_.rk})}}),_.z(_.v,{cond:function(){var V;
return!((V=F.isDesktopPlayPage)==null?0:V.call(F))},
then:function(){return _.z(_.EG,null,_.z(glp,{enableSaveButton:function(){return _.XO(h)},
saveButton:function(){return F.data().saveButton},
isSaved:F.isSaved,onSaveToggled:function(){return F.onSaveToggled}}),_.z(QEe,{menuButton:function(){return F.data().menuButton}}))}}))))},"Nd");
tTe.idomCompat={callbacks:{onAudioToggled:!0,onSaveToggled:!0,onScoreChanged:!0}};var QEe=_.GK(function(F){return _.z(_.a6,{data:F.menuButton},{buttonViewModel:_.rk})},"Od"),glp=_.GK(function(F){var W=F.enableSaveButton;
var E=F.saveButton;var h=F.isSaved;var d=F.onSaveToggled;return _.z(_.v,{cond:function(){return W()&&!(E==null||!E())},
then:function(){return _.z(_.a6,{data:function(){var V=_.D(E==null?void 0:E(),_.O8),R;return{toggleButtonViewModel:Object.assign({},V,{isToggled:(R=h==null?void 0:h())!=null?R:!(V==null||!V.isToggled)})}}},{toggleButtonViewModel:function(V){return _.z(_.bJ,{data:V.data,
onToggle:d})}})}})},"Pd"),MT_=_.GK(function(F){var W=F.highScoreButton;
var E=F.score;var h=F.formattedScore;var d=F.onScoreChanged;var V=F.isEmbeddedInWebview;return _.z(_.a6,{data:W},{miniAppScoreButtonViewModel:function(R){return _.z(edX,{data:R.data,score:E,formattedScore:h,onScoreChanged:d,isEmbeddedInWebview:V})}})},"Qd"),zdH=_.GK(function(F){F=F.fullscreenButton;
return navigator.userAgent.includes("CriOS")?_.z(_.EG,null):_.z(_.a6,{data:F},{buttonViewModel:_.rk})},"Rd");_.C9_=new _.NG("DESKTOP_CURRENT_PAGE");var xPB=_.GK(function(F){var W=F.data;var E=_.c("force_active_time_logging_webview"),h=_.c("skip_logs_after_end_event"),d=!1,V=new rZp,R=void 0,M=void 0,g=_.WZ().resolve(i9_),t=new lkB,C=void 0,B=void 0,I=[],x=void 0,A=void 0,X=!1,P=!1,b=!1,l=!1,w=new _.eR,G=_.WZ().resolve(UPO),hr=_.WZ().resolve(_.ac),p=_.WZ().resolve(_.Fd(C1)),UY,xW=(UY=_.WZ().resolve(_.Fd(_.C9_)))==null?void 0:UY.getCurrentPage(),qw=!1,Lb=0,jk=function(Sk){Sk.preventDefault();return Sk.returnValue=""},Jr;
F=_.U(_.g$(!((Jr=_.Cy("yt-mini-app-is-audio-enabled"))!=null&&!Jr),void 0,"HPBZTb"));var nb=F.next().value,bo=F.next().value,uo;Jr=_.U(_.g$(!((uo=_.Cy("exit-mini-app-seen-state"))==null||!uo),void 0,"kLuFyc"));var b_=Jr.next().value,BO=Jr.next().value;uo=_.U(_.g$(!1,void 0,"o1PbLc"));var dc=uo.next().value,VM=uo.next().value;uo=_.U(_.g$(void 0,void 0,"YlqNme"));var Z_=uo.next().value,MU=uo.next().value;uo=_.U(_.g$(void 0,void 0,"AeYJne"));var Ef=uo.next().value,kR=uo.next().value;uo=_.U(_.g$(!0,void 0,
"aEz9qb"));var Rn=uo.next().value,se=uo.next().value;uo=_.U(_.g$(!1,void 0,"bcquyc"));var l_=uo.next().value,j$=uo.next().value;uo=_.U(_.g$(void 0,void 0,"FMAC5b"));var HO=uo.next().value,YB=uo.next().value;uo=_.U(_.g$(0,void 0,"HUGJEb"));var GT=uo.next().value,vO=uo.next().value,wI=_.uf(),Aa=function(){return W().isEmbeddedInWebview},MF=function(){return W().hasPlayNextShelf};
FV("yt-page-type-changed",function(Sk){if(_.c("enable_is_mini_app_page_active_bugfix"))Sk.detail.newPageSubtype!=="mini_app"&&Rn()&&MR();else if(Sk=_.NOW()==="mini_app",Sk!==Rn())if(se(Sk),Sk){var BT;Sk=(BT=W().playableId)==null?void 0:BT.toString();Sk!==void 0&&window.location.href.includes(Sk)&&!P&&(l=!0,LT(),Ri(z8.value))}else Sk||MR()});
FV("yt-action",function(Sk){Sk.detail.actionName==="yt-engagement-panel-visible-changed"&&Sk.detail.args[1]==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&Sk.detail.args[2]==="PAmini_app_panel"&&MR();_.c("enable_is_mini_app_page_active_bugfix")?Sk.detail.actionName==="yt-history-load"&&!Rn()&&(xW==null?0:xW.active)?(se(!0),LT(),Ri(z8.value)):Sk.detail.actionName==="yt-history-load"&&Rn()&&!W().isEmbeddedInWebview&&xt():Rn()&&Sk.detail.actionName==="yt-history-load"&&(l?l=!1:W().isEmbeddedInWebview||xt())});
_.$p(function(){Du()});
_.q6(function(){LT()});
var LT=function(){var Sk=W().playableId,BT=W().localReleaseId,PT=W().derivedDeviceInterface;if(P)_.OB(new _.xC("[MiniAppContainerViewModel] onEnter was called more than once"));else{P=!0;R=new sNO(Sk,BT,PT,document.visibilityState==="visible");Z9X(R);M=new u_T(Sk);BC_(g,Sk);nNB(t,{showMiniAppAdCommand:W().showMiniAppAdCommand,isEmbeddedInWebview:W().isEmbeddedInWebview,playLogger:R});ARr()&&(A=document.body.style.backgroundColor,_.ik(document.body,"background-color","black"));lL();cO();w=new _.eR;
if(W().isEmbeddedInWebview){if(Sk=(new URLSearchParams(window.location.search)).get("postPlayNonce"))q7z(R,Sk),qw=!0;V.initialize({onAudioStateLoaded:function(f2){DV(f2)},
onMuteMiniApp:function(){DV(!1)},
onUnmuteMiniApp:function(){DV(!0)},
onExit:function(){},
onPostPlayNonceReceived:function(f2){qw||(q7z(R,f2),qw=!0)},
confirmExitMiniApp:function(){var f2,Zd,Vl;return _.e(function(je){if(je.nextAddress==1)return W().confirmExitMiniAppCommand?_.Q(je,Promise.race([w.promise,Promise.resolve(!1)]),2):je.return();(f2=je.yieldResult)?!W().confirmExitMiniAppCommandEdu||(Vl=(Zd=b_)==null?void 0:Zd())!=null&&Vl?b5(W().confirmExitMiniAppCommand):(b5(W().confirmExitMiniAppCommandEdu),_.tl("exit-mini-app-seen-state","true",2592E6)):b5(W().closeMiniAppCommand);_.gG(je)})},
onNativeBenchmarkingMessageReceived:function(f2){f2=R9T(_.cxr(f2));if(_.qa(f2,_.Gc,3,NXp)){var Zd=_.j2(f2,_.Gc,3,NXp),Vl=xse();var je=Pb(Vl.getSeconds())-Pb(Zd.getSeconds());Zd=_.Wb(Vl,2)-_.Wb(Zd,2);je<0&&Zd>0?(je+=1,Zd-=1E9):je>0&&Zd<0&&(--je,Zd+=1E9);je=(new Kv).setSeconds(je);je=_.L2(je,2,_.sq(Zd),0);_.hy(f2,1,je)}var sV;(sV=B)==null||sV.returnNativeBenchmarkingMessage(f2)},
multiplayer3pAckStateLoaded:function(f2){xt(f2)},
exitMiniAppSeenStateLoaded:function(f2){W().confirmExitMiniAppCommandEdu&&BO(f2)},
onNavigateToNewMiniApp:function(){b5(W().onNavigateToNewMiniAppCommand)},
onGameDataAvailable:function(f2){f2=new URLSearchParams(f2);var Zd=void 0;f2.has("invite_code")&&(Zd=new Cv_,f2=f2.get("invite_code"),Zd=_.QJ(Zd,1,f2));if(f2=Zd){var Vl;(Vl=B)==null||Vl.sendGameData(f2)}},
onPauseMiniApp:function(){d=!0;QA()},
onResumeMiniApp:function(){d=!0;iK()},
onAdFinished:function(f2){t.onAdFinished(f2)}});
W().showMultiplayer3pConsentDialogCommand||w.resolve(!0);b5(W().onContainerReadyCommand)}else q7z(R),w.resolve(!0);S7M(M,L$B(R));L$B(R).then(function(f2){f2={miniAppPlayData:{postPlayNonce:f2}};var Zd,Vl=(Zd=W().loggingDirectives)==null?void 0:Zd.trackingParams;Vl&&_.z4().stateChanged(Vl,f2)});
Sk=W().showSignInDialogCommand;!sBo()&&Sk&&(_.tl("yt-mini-app-has-shown-sign-in-dialog",!0,2592E3),b5(Sk));W().confirmExitMiniAppCommand&&p&&(Sk=IKW(W().confirmExitMiniAppCommand))&&(p.customConfirmationCommand=Sk)}},Du=function(){if(!h||P)A&&_.ik(document.body,"background-color",A),X=!1,x&&x.release(),M.flush().catch(function(Sk){_.OB(Sk)}),g.flush().catch(function(Sk){_.OB(Sk)}),H9i(R),Yj(),B=void 0,h&&(P=!1),vlc(G)},MR=function(){se(!1);
Du();VM(!1);YB(void 0);MU(void 0);kR(void 0);Lb=0;vO(0);h||(P=!1)},QA=function(){var Sk;
(Sk=B)==null||Sk.onPause();x&&x.release();M.flush().catch(function(BT){_.OB(BT)});
g.flush().catch(function(BT){_.OB(BT)});
XxT(R)},iK=function(){var Sk;
(Sk=B)==null||Sk.onResume();cO();Sk=R;Sk.isForeground=!0;Ot(Sk,"PLAY_EVENT_TYPE_PLAY_RESUME")},DV=function(Sk){var BT;
(BT=B)==null||BT.onAudioToggled(Sk);bo(Sk)},xt=function(Sk){W().showMultiplayer3pConsentDialogCommand&&(W().isEmbeddedInWebview&&Sk!==void 0&&w.resolve(Sk),!Sk&&_.NOW()==="mini_app"&&b5(W().showMultiplayer3pConsentDialogCommand))},i_=function(){var Sk,BT,PT,f2;
return _.e(function(Zd){if(Zd.nextAddress==1){if(h&&!P)return Zd.return();!W().isLivestream||W().disableVideoCapture||(Sk=B)!=null&&Sk.sendStartGameFrameCapture();BT=(new URL(window.location.href)).searchParams;if(BT.has("invite_code")){var Vl=new Cv_,je=BT.get("invite_code");PT=_.QJ(Vl,1,je);(f2=B)==null||f2.sendGameData(PT)}dc()||(VM(!0),Vl=R,Vl.state!==1?_.OB(new _.xC("[MiniAppPlayLogger] recordFirstFrameReady failed with state "+k7c[Vl.state])):(_.Vy("mini_app_ids_without_game_ready").includes(Vl.JSC$14638_miniAppId)&&
(Vl.gameReady=!0),Vl.state=2,Vl.beforeReady=!1,f_(Vl,"ma_ffr"),Ot(Vl,"PLAY_EVENT_TYPE_PLAY_READY")));return _.Q(Zd,w.promise,2)}b5(W().onMiniAppReadyCommand);document.activeElement instanceof HTMLIFrameElement&&document.activeElement.blur();W().isEmbeddedInWebview||xt();_.gG(Zd)})},AP=function(){var Sk=R;
Sk.gameReady=!0;f_(Sk,"ma_gr")},YK=function(Sk){var BT;
return _.e(function(PT){if(PT.nextAddress==1)return _.Nl(PT,2),_.Q(PT,mKu(M,Sk),4);if(PT.nextAddress!=2)return _.id(PT,0);BT=_.Ml(PT);b5(W().showSavingErrorPopupCommand);throw BT;})},S$=function(){var Sk,BT;
return _.e(function(PT){if(PT.nextAddress==1)return _.Nl(PT,2),_.Q(PT,pxU(M),4);if(PT.nextAddress!=2)return Sk=PT.yieldResult,PT.return(Sk);BT=_.Ml(PT);b5(W().showLoadingErrorDialogCommand);throw BT;})},zX=function(Sk){R.logError(Sk)},Np=function(Sk,BT,PT){JZc(R,Sk,BT,PT)},Ac=function(Sk,BT){fke(R,Sk,BT)},Cd=function(){!E&&W().isEmbeddedInWebview||_.EB();
P7e(R,!0);X||(window.addEventListener("beforeunload",jk,{capture:!0}),X=!0)},S9=function(Sk){var BT,PT,f2,Zd,Vl,je,sV;
return _.e(function(o3){if(o3.nextAddress==1)return g&&(!C||C<Sk)&&Sk>0?_.Q(o3,IYa(g,Sk),3):o3.jumpTo(0);BT=o3.yieldResult;PT=_.U(BT);f2=PT.next().value;Zd=PT.next().value;Vl=f2;je=Zd;((sV=Vl)==null?0:sV.displayString)&&je&&(MU(je),kR(Vl.displayString));_.gG(o3)})},tF=function(Sk){var BT=W().onBenchmarkingMessageReceivedCommand;
if(BT){var PT=xse();_.dU(Sk,3,NXp,PT);Sm(BT,e9T(Sk))}},DS=function(Sk){var BT=W().onGameFrameReceivedCommand;
if(BT){var PT=new G0M;var f2=new iPX;var Zd=fc(Sk,1);f2=_.kt(f2,1,Zd);Sk=_.bj(Sk,2);Sk=_.QJ(f2,2,Sk);PT=_.hy(PT,2,Sk);Sm(BT,wI_(PT))}},fb=function(Sk){var BT=W().onGameAudioDataReceivedCommand;
if(BT){var PT=new G0M;var f2=new Tv_;Sk=_.bj(Sk,1);f2=_.QJ(f2,1,Sk);PT=_.hy(PT,4,f2);Sm(BT,wI_(PT))}},rI=function(){var Sk=new URLSearchParams(window.location.search);
if(W().isEmbeddedInWebview&&Sk&&Sk.get("override_hl")==="true"&&Sk.get("hl"))return Sk.get("hl");Sk=document.documentElement.lang;return Sk!==""?Sk:_.nV},Ii=function(Sk){var BT=W().onShareInviteCodeCommand;
if(BT)if(W().isEmbeddedInWebview){var PT=new nJa;Sk=_.QJ(PT,1,Sk);Sm(BT,jHa(Sk))}else PT=W().inviteCodeShareClientParamIdentifier,G.clientParams.set(PT,{miniAppClientParams:{inviteCode:Sk}}),b5(BT)},NF=function(Sk){var BT,PT,f2;
return _.e(function(Zd){if(Zd.nextAddress==1)return BT=W().onMiniAppOpenYtContentRequested,g&&_.c("enable_open_yt_content")&&BT?_.Q(Zd,c2H(g,Sk),3):Zd.jumpTo(0);PT=Zd.yieldResult;if(PT==="OK")if(W().isEmbeddedInWebview){var Vl=new lZa;f2=tV(Vl,2,Oa,nN(Sk));Sm(BT,jd_(f2))}else hr.clientData.set("video_id",Sk),b5(BT);_.gG(Zd)})},JW=function(Sk){Lb+=_.Wb(Sk,3);
Sk=Math.min(Math.log(1+Lb/15E6*9)/Math.log(10),.99);vO(Sk);Qx(Sk)},Qx=_.qS(function(Sk){var BT=W().updateLoadingProgressCommand;
if(BT){var PT=new lZa;Sk=tV(PT,3,Oa,_.e$(Sk));Sm(BT,jd_(Sk))}},100),xB=function(Sk){return jNM(t,Sk)},cO=function(){var Sk,BT;
((Sk=_.YIS())==null?void 0:(BT=Sk.wakeLock)==null?void 0:BT.request)!=null&&_.YIS().wakeLock.request("screen").then(function(PT){x=PT}).catch(function(){})},z8=_.uf();
_.q6(function(){W().isSupportedCountry&&(sBo()||_.c("enable_sign_in_promo")||!W().showSignInDialogCommand?Ri(z8.value):b5(W().onMiniAppReadyCommand))});
var qR=function(){return _.z("iframe",{class:"yt-mini-app-container-view-model__iframe",sandbox:"allow-scripts allow-same-origin allow-pointer-lock",allow:"autoplay",tabindex:function(){return dc()?0:-1},
el:z8})},Ri=function(Sk,BT){BT=BT===void 0?!1:BT;
var PT=kw();PT&&(BT||PT.toString()!==Sk.getAttribute("src"))&&(B=Pqe(W().source,{isAudioEnabled:nb,onFirstFrameReady:i_,onGameReady:AP,onSave:YK,onLoad:S$,onError:zX,onSdkCalled:Np,onSdkPerformanceUpdate:Ac,onClick:Cd,onSendHighScore:S9,onBenchmarkingMessageReceived:tF,getLanguage:rI,onShareInviteCode:Ii,onResourceLoaded:JW,onOpenYTContent:NF,onShowMiniAppAd:xB,onGameFrameReceived:DS,onGameAudioReceived:fb},Sk,PT),CK(Sk,"load",function(){f_(R,"ma_il");CK(Sk,"load",function(){Ri(Sk,!0)})}),_.Hp(Sk,
PT))},kw=function(){var Sk=W().url;
if(Sk&&(Sk=_.JH(Sk),Sk!==null)){if(W().source&&W().source==="MINI_APP_SOURCE_GAMESNACKS")Sk=_.KL(Sk,new Map([["origin",window.location.origin],["cloudSave","true"]]));else if(_.c("enable_origin_query_parameter_bugfix")){var BT=_.fk(_.CyG(Sk.toString()));BT=new URLSearchParams(BT||"");BT.set("origin",window.location.origin);BT=BT.toString();Sk=_.e9(Sk).toString();Sk=_.RI(ZTH.exec(Sk)[0]+(BT.trim()?"#"+BT:""))}return Sk}},ye=function(){var Sk={};
Sk=_.ec("yt-mini-app-container-view-model__loading-screen",(Sk["yt-mini-app-container-view-model__loading-screen--fade-out"]=dc,Sk));var BT=function(){return dc()?1:GT()};
return _.z("div",{class:Sk},_.z(_.a6,{data:function(){return W().splashScreen}},{miniAppSplashScreenViewModel:function(PT){return _.z(VTi,{data:PT.data,
loadingProgress:BT})}}))},lL=function(){I=[];
I.push(_.ce(window,"visibilitychange",function(){b||d&&Aa()||(document.visibilityState==="visible"?iK():QA())}));
I.push(_.ce(window,"pagehide",function(){Du()}));
I.push(_.ce(window,"blur",function(){setTimeout(function(){document.activeElement instanceof HTMLIFrameElement&&wI.value.dispatchEvent(new Event("tap"))},0)}));
I.push(_.ce(wI.value,"pointerdown",function(){P7e(R,!1)},!0));
I.push(_.ce(wI.value,"pause",function(){b=!0;QA()}));
I.push(_.ce(wI.value,"play",function(){b=!1;iK()}));
I.push(_.ce(wI.value,"exit",function(){Du()}));
var Sk=navigator.keyboard,BT=Sk&&Sk.lock;I.push(_.ce(window,HV_,function(){j$(JEz());JEz()?(W().hasPlayNextShelf&&SU("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),s_("yt-mini-app-container-view-model__content","yt-mini-app-container-view-model__content--fullscreen"),BT&&Sk.lock(["Escape"])):(W().hasPlayNextShelf&&s_("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),SU("yt-mini-app-container-view-model__content",
"yt-mini-app-container-view-model__content--fullscreen"),BT&&Sk.unlock())}));
W().showMultiplayer3pConsentDialogCommand&&I.push(_.ce(window,"yt-playables-ack-3p-data-usage",function(){DP_(g)}));
W().confirmExitMiniAppCommandEdu&&I.push(_.ce(window,"yt-playables-exit-mini-app-dialog-seen",function(){_.tl("exit-mini-app-seen-state","true",2592E6)}))},Yj=function(){I.forEach(function(Sk){Be(Sk)});
window.removeEventListener("beforeunload",jk,{capture:!0})},b5=function(Sk){Sk&&Dso(Sk,W().isEmbeddedInWebview||!1)},s_=function(Sk,BT){Sk=_.U(wI.value.getElementsByClassName(Sk));
for(var PT=Sk.next();!PT.done;PT=Sk.next())PT.value.classList.add(BT)},SU=function(Sk,BT){Sk=_.U(wI.value.getElementsByClassName(Sk));
for(var PT=Sk.next();!PT.done;PT=Sk.next())PT.value.classList.remove(BT)};
return function(){var Sk={};Sk=_.ec("yt-mini-app-container-view-model",(Sk["yt-mini-app-container-view-model--desktop"]=!0,Sk["yt-mini-app-container-view-model--desktop-in-panel"]=function(){return W().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},Sk["yt-mini-app-container-view-model--ios-web-view"]=ARr(),Sk["yt-mini-app-container-view-model--no-top-bar"]=function(){return!W().topBar},Sk["yt-mini-app-container-view-model--position-relative-to-top"]=function(){return W().hasPlayNextShelf},Sk["yt-mini-app-container-view-model--desktop-play-page"]=
function(){return W().hasPlayNextShelf},Sk["yt-mini-app-container-view-model--show-peek-below"]=function(){return!l_()&&W().hasPlayNextShelf},Sk));
var BT={};BT=_.ec("yt-mini-app-container-view-model__content",(BT["yt-mini-app-container-view-model__content--desktop-content"]=!0,BT["yt-mini-app-container-view-model__content--desktop-content-in-panel"]=function(){return W().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},BT["yt-mini-app-container-view-model--desktop-play-page"]=function(){return W().hasPlayNextShelf},BT));
return _.z("mini-app-container-view-model",{el:wI},_.z("div",{class:Sk},_.z(_.v,{cond:function(){return W().topBar&&!l_()},
then:function(){return _.z(_.a6,{data:function(){return W().topBar}},{miniAppTopBarViewModel:function(PT){return _.z(tTe,{data:PT.data,
isAudioEnabled:nb,onAudioToggled:function(f2){DV(f2)},
score:Z_,formattedScore:Ef,onScoreChanged:function(f2){C=f2},
isEmbeddedInWebview:Aa,isSaved:HO,onSaveToggled:function(f2){YB(f2)},
isExitMiniAppSeen:b_,isDesktopPlayPage:MF})}})}}),_.z("div",{class:BT},_.z(_.v,{cond:Rn,
then:function(){return qR()}}),_.z(_.v,{cond:function(){return!W().isEmbeddedInWebview},
then:function(){return ye()}}))))}()},"Sd");
xPB.idomCompat=!0;_.pK(xPB,"mini-app-container-view-model",{props:{data:_.TS}});var kqu=_.GK(function(F){var W=F.data;return _.z("yt-sponsorships-hub-perk-card",{class:"ytSponsorshipsHubPerkCardHost"},_.z("button",{class:"ytSponsorshipsHubPerkCardPerkCard","on:click":_.tb(function(){var E=W().onTap;E&&_.fK(E)})},_.z(_.v,{cond:function(){return W().icon},
then:function(E){return _.z(_.I3,{icon:function(){return E().iconType},
className:"ytSponsorshipsHubPerkCardPerkIcon"})}}),_.z("div",{class:"ytSponsorshipsHubPerkCardPerkTitle"},function(){return W().title})))},"Td");
kqu.idomCompat=!0;var A2c=_.GK(function(F){var W=_.uf(),E=_.U(_.g$(void 0,void 0,"kFCJ0c")),h=E.next().value,d=E.next().value;E=_.U(_.g$(void 0,void 0,"PIPgWd"));var V=E.next().value,R=E.next().value;E=_.U(_.g$(void 0,void 0,"rV66ob"));var M=E.next().value,g=E.next().value,t=function(){var b=h();return b!==void 0?Math.abs(b):void 0},C=function(){var b=t();
return b===void 0||b<=3},B=function(){var b=t();
var l=V(),w=M();b=b!==void 0&&l!==void 0&&w!==void 0?l-w-b:void 0;return b===void 0||b<=3},I=function(b){W.value&&W.value.scrollBy({top:0,
left:(_.b0("HTML_DIR")==="rtl"?-1:1)*b*W.value.clientWidth,behavior:"smooth"})},x=function(){var b;
d((b=W.value)==null?void 0:b.scrollLeft);var l;R((l=W.value)==null?void 0:l.scrollWidth);var w;g((w=W.value)==null?void 0:w.clientWidth)},A=function(){I(-.5)},X=function(){I(.5)};
E=_.tb(function(){x()});
_.$F(function(){x();if(W.value){var b=new ResizeObserver(x);b.observe(W.value);_.$p(function(){b.disconnect()})}});
var P={};return _.z("yt-sponsorships-scrollable-shelf",{class:_.ec("ytdSponsorshipsScrollableShelfHost",F.className)},_.z("div",{class:_.ec("ytdSponsorshipsScrollableShelfContent",(P.ytdSponsorshipsScrollableShelfFadingEffectBothSides=function(){return F.data().previousButton&&F.data().nextButton&&!C()&&!B()},P.ytdSponsorshipsScrollableShelfFadingEffectStart=function(){return F.data().previousButton&&!C()&&B()},P.ytdSponsorshipsScrollableShelfFadingEffectEnd=function(){return F.data().nextButton&&
C()&&!B()},P)),
el:W,"on:scroll":E},F.children),_.z(_.v,{cond:function(){return!C()},
then:function(){return _.z(_.a6,{data:function(){return F.data().previousButton}},{buttonViewModel:function(b){return _.z(_.rk,{data:b.data,
className:"ytdSponsorshipsScrollableShelfPreviousButton",onClick:A})}})}}),_.z(_.v,{cond:function(){return!B()},
then:function(){return _.z(_.a6,{data:function(){return F.data().nextButton}},{buttonViewModel:function(b){return _.z(_.rk,{data:b.data,
className:"ytdSponsorshipsScrollableShelfNextButton",onClick:X})}})}}))},"Ud");
A2c.idomCompat=!0;var LLB=_.GK(function(F){var W=F.data;F={};return _.z("yt-sponsorships-hub",{class:_.ec("ytdSponsorshipsHubHost",(F.ytdSponsorshipsHubHostIndented=function(){return W().indented},F))},_.z("div",{class:"ytdSponsorshipsHubHeader"},_.z("div",{class:"ytdSponsorshipsHubAvatarContainer"},_.z("div",{class:"ytdSponsorshipsHubAvatar"},_.z(_.a6,{data:function(){return W().avatar}},{avatarViewModel:_.fI})),_.z(_.v,{cond:function(){return W().badgeImage},
then:function(E){return _.z("div",{class:"ytdSponsorshipsHubBadgeContainer"},_.z("div",{class:"ytdSponsorshipsHubBadgeInnerContainer"},_.z("div",{class:"ytdSponsorshipsHubBadge"},_.z(_.T4,{data:E,targetWidth:24,targetHeight:24,alt:""}))))}})),_.z("div",{class:"ytdSponsorshipsHubDetails"},_.z("div",{class:"ytdSponsorshipsHubTierName"},function(){return W().tierName}),_.z("div",{class:"ytdSponsorshipsHubMembershipType"},function(){return W().membershipType}),_.z("div",{class:"ytdSponsorshipsHubMembershipDurationOrExpiry"},
function(){return W().membershipDurationOrExpiry})),_.z("div",{class:"ytdSponsorshipsHubActionButtonsContainer"},_.z(_.a6,{data:function(){return W().manageButton}},{buttonViewModel:function(E){return _.z(_.rk,{data:E.data,
className:"ytdSponsorshipsHubManageButton"})}}),_.z(_.a6,{data:function(){return W().actionMenuButton}},{buttonViewModel:function(E){return _.z(_.rk,{data:E.data,
className:"ytdSponsorshipsHubActionMenuButton"})}}))),_.z("div",{class:"ytdSponsorshipsHubPerksTitle"},function(){return W().perksTitle}),_.z(A2c,{data:function(){return{previousButton:W().previousPerkButton,
nextButton:W().nextPerkButton}},
className:"ytdSponsorshipsHubPerksShelf"},_.z("div",{class:"ytdSponsorshipsHubPerkCards"},_.z(_.a6,{data:function(){return W().perkCards}},{sponsorshipsHubPerkCardViewModel:kqu}),_.z(_.v,{cond:function(){return W().viewAllPerksButton},
then:function(E){return _.z(sEO,{data:E})}}))))},"Vd");
LLB.idomCompat=!0;var sEO=_.GK(function(F){var W=F.data;return _.z("div",{class:"ytdSponsorshipsHubViewAllPerksContainer"},_.z(_.a6,{data:function(){return W().button}},{buttonViewModel:_.rk}),_.z("div",{class:"ytdSponsorshipsHubViewAllPerksInfo"},_.z("div",{class:"ytdSponsorshipsHubViewAllPerksTitle"},function(){return W().title}),_.z("div",{class:"ytdSponsorshipsHubViewAllPerksSubtitle"},function(){return W().subtitle})))},"Wd");
sEO.idomCompat=!0;_.pK(LLB,"yt-sponsorships-hub",{props:{data:_.TS}});_.qre=_.GK(function(F){var W=F.data;return _.z("yt-dual-avatar-view-model",{class:"ytDualAvatarViewModelHost",style:_.vr({"--yt-dual-avatar-view-model-badge-cutout-radius":function(){var E;return((E=W().badgeCutoutRadius)!=null?E:14)+"px"}})},_.z("div",{class:"ytDualAvatarViewModelAvatarsContainer"},_.z(_.a6,{data:function(){return W().startAvatar}},{avatarViewModel:_.fI}),_.z(_.a6,{data:function(){return W().endAvatar}},{avatarViewModel:_.fI})),_.z(_.a6,{data:function(){return W().badge}},{contentPreviewImageViewModel:function(E){return _.z("div",
{class:"ytDualAvatarViewModelBadge"},_.z(_.mO,{data:E.data}))}}))},"Xd");
_.qre.idomCompat=!0;var Zwz=_.GK(function(F){var W=F.data;var E,h=!((E=_.WZ().resolve(_.Fd(_.nK)))==null||!E());F=_.vX(function(){var C,B,I=h?(C=W().header)==null?void 0:C.backgroundColorDarkMode:(B=W().header)==null?void 0:B.backgroundColorLightMode;if(I!==void 0)return _.XC(I)},void 0,"UX2G6c");
E=_.vX(function(){var C,B;return h?(C=W().header)==null?void 0:C.backgroundImagePart1Dark:(B=W().header)==null?void 0:B.backgroundImagePart1Light},void 0,"GPAi1d");
var d=_.vX(function(){var C,B;return h?(C=W().header)==null?void 0:C.backgroundImagePart2Dark:(B=W().header)==null?void 0:B.backgroundImagePart2Light},void 0,"nboJld"),V=_.vX(function(){return _.b0("HTML_DIR")==="rtl"},void 0,"LGJceb"),R=_.uf(),M=!1,g=function(){var C=R.value;
if(C&&!M){var B,I=(B=C.parentElement)==null?void 0:B.parentElement;if(I)for(C=C.getElementsByClassName("ytdSponsorshipsPerksListSelectedPerk"),B=0;B<C.length;++B){var x=C[B];if(x instanceof HTMLElement){I.scrollTo({top:x.offsetTop+x.clientHeight/2-I.clientHeight/2,behavior:"smooth"});M=!0;break}}}};
_.Xk(function(){var C=R.value;if(C){var B=new ResizeObserver(g);B.observe(C);_.$p(function(){B.disconnect()})}});
var t={};return _.z("yt-sponsorships-perks-list",{el:R,class:_.ec("ytdSponsorshipsPerksListHost",(t.ytdSponsorshipsPerksListHorizontalPadding=function(){return W().horizontalPaddingEnabled},t))},_.z("div",{class:"ytdSponsorshipsPerksListHeaderContainer"},_.z("div",{class:"ytdSponsorshipsPerksListHeader",
style:_.vr({"background-color":F})},_.z("div",{class:"ytdSponsorshipsPerksListHeaderImagePart1Container"},_.z(_.v,{cond:E,then:function(C){var B={};return _.z("div",{class:_.ec((B.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=h,B.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!h,B.ytdSponsorshipsPerksListFlipped=V,B))},_.z(_.T4,{data:C,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart1"}))}})),_.z("div",{class:"ytdSponsorshipsPerksListHeaderImagePart2Container"},_.z(_.v,{cond:d,
then:function(C){var B={};return _.z("div",{class:_.ec((B.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=h,B.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!h,B.ytdSponsorshipsPerksListFlipped=V,B))},_.z(_.T4,{data:C,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart2"}))}})),_.z("div",{class:"ytdSponsorshipsPerksListAvatarsContainer"},_.z(_.a6,{data:function(){var C;
return(C=W().header)==null?void 0:C.dualAvatar}},{dualAvatarViewModel:_.qre})))),_.z("div",{class:"ytdSponsorshipsPerksListBody"},_.z("div",{class:"ytdSponsorshipsPerksListTitle"},function(){return W().title}),_.z(_.v,{cond:function(){return W().perks},
then:function(C){return _.z(_.xF,{each:C},function(B,I){var x={};return _.z("div",{class:_.ec("ytdSponsorshipsPerksListPerkContainer",(x.ytdSponsorshipsPerksListSelectedPerk=function(){var A=I(),X=W().selectedPerkIndex;return A===X},x))},_.z(_.v,{cond:function(){return I()>0},
then:function(){return _.z("div",{class:"ytdSponsorshipsPerksListPerkSeparator"})}}),_.z("div",{class:"ytdSponsorshipsPerksListPerkCard"},_.z(_.v,{cond:function(){return B.icon},
then:function(A){return _.z(_.I3,{icon:function(){return A().iconType},
className:"ytdSponsorshipsPerksListPerkIcon"})}}),_.z("div",{class:"ytdSponsorshipsPerksListPerkInfo"},_.z("div",{class:"ytdSponsorshipsPerksListPerkTitle"},B.title),_.z("div",{class:"ytdSponsorshipsPerksListPerkDescription"},_.z(_.Ab,{text:B.description})),_.z(_.v,{cond:function(){return B.instructions},
then:function(){var A,X;return _.z("div",{class:"ytdSponsorshipsPerksListPerkInstructions"},_.z("div",{class:"ytdSponsorshipsPerksListPerkInstructionsTitle"},(A=B.instructions)==null?void 0:A.title),_.z("div",{class:"ytdSponsorshipsPerksListPerkInstructionsText"},_.z(_.Ab,{text:(X=B.instructions)==null?void 0:X.text})))}}))),_.z(_.v,{cond:function(){return B.emoji},
then:function(A){return _.z("div",{class:"ytdSponsorshipsPerksListEmojiContainer"},_.z(_.xF,{each:function(){return A()}},function(X){return _.z(_.T4,{data:X,
alt:"",className:"ytdSponsorshipsPerksListEmoji"})}))}}),_.z($Pc,{data:B}))})}})))},"Yd");
Zwz.idomCompat=!0;var $Pc=_.GK(function(F){var W=F.data;var E=function(R,M){return R===M},h=function(){var R=W();
R=_.D(R==null?void 0:R.badgesShelf,oJH);return R!==void 0&&R!==null?R:{previousButton:{},nextButton:{}}},d=_.Sh(),V=function(){var R=d.value;
if(R){var M=R.parentElement;if(M){R=R.getElementsByClassName("ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer");for(var g=0;g<R.length;++g){var t=R[g];if(t instanceof HTMLElement){M.scrollTo({left:t.offsetLeft+t.clientWidth/2-M.clientWidth/2,behavior:"instant"});break}}}}};
_.Xk(function(){var R=d.value;if(R){var M=new ResizeObserver(V);M.observe(R);_.$p(function(){M.disconnect()})}});
return _.z("div",null,_.z(_.v,{cond:function(){return W().badges},
then:function(R){return _.z(A2c,{data:h},_.z("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgesContainer",el:d},_.z(_.xF,{each:function(){return R()}},function(M,g){var t={},C={},B={};
return _.z("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeItem"},_.z(_.v,{cond:function(){return g()>0},
then:function(){return _.z("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeSeparator"})}}),_.z("div",{class:_.ec("ytdSponsorshipsPerksListLoyaltyBadgeContainer",(t.ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer=function(){return E(g(),W().currentBadgeIndex)},t.ytdSponsorshipsPerksListInactiveLoyaltyBadgeContainer=function(){return!E(g(),W().currentBadgeIndex)},t))},_.z("div",{class:_.ec("ytdSponsorshipsPerksListLoyaltyBadge",(C.ytdSponsorshipsPerksListActiveLoyaltyBadge=function(){return E(g(),
W().currentBadgeIndex)},C.ytdSponsorshipsPerksListInactiveLoyaltyBadge=function(){return!E(g(),W().currentBadgeIndex)},C))},_.z(_.v,{cond:function(){return M.image},
then:function(I){var x={};return _.z("div",{class:_.ec((x.ytdSponsorshipsPerksListActiveLoyaltyBadgeImage=function(){return E(g(),W().currentBadgeIndex)},x.ytdSponsorshipsPerksListInactiveLoyaltyBadgeImage=function(){return!E(g(),W().currentBadgeIndex)},x))},_.z(_.T4,{data:I,
alt:""}))}})),_.z("div",{class:_.ec("ytdSponsorshipsPerksListLoyaltyBadgeTitle",(B.ytdSponsorshipsPerksListActiveLoyaltyBadgeTitle=function(){return E(g(),W().currentBadgeIndex)},B))},M.title)))})))}}))},"Zd");
$Pc.idomCompat=!0;_.pK(Zwz,"yt-sponsorships-perks-list",{props:{data:_.TS}});_.pK(_.GK(function(F){return _.z("ytw-fantasy-empty-state-view-model",{class:"ytwFantasyEmptyStateViewModelHost"},_.z(_.v,{cond:function(){return F.data().image},
then:function(W){return _.z(_.T4,{className:"ytwFantasyEmptyStateViewModelImage",data:W,ariaHidden:!0,alt:""})}}),_.z(_.Ab,{className:"ytwFantasyEmptyStateViewModelTitle",
text:function(){return F.data().title}}),_.z(_.Ab,{className:"ytwFantasyEmptyStateViewModelSubtitle",
text:function(){return F.data().subtitle}}),_.z(_.a6,{data:function(){return F.data().primaryButton}},{buttonViewModel:function(W){return _.z(_.rk,{data:W.data,
className:"ytwFantasyEmptyStateViewModelPrimaryButton"})}}))},"$d"),"ytw-fantasy-empty-state-view-model",{props:{data:_.TS}});var X_X;var neY=_.XF({buttonRenderer:_.yb});_.ht(yob);_.Nj(yob,"timed-animation-button-renderer",{propNames:["data","uniqueId","overrides"]});var iR=function(){var F=_.n.apply(this,arguments)||this;F.hideJoinButtonBeforeSubscribed=_.c("hide_join_button_before_subscribed");F.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction","yt-unsubscribe-action":"handleUnsubscribeAction"};return F};
_.k(iR,_.n);_.N=iR.prototype;
_.N.configureRendererStamper=function(){return{"data.avatarStack":{id:"avatar-stack",mapping:{avatarStackViewModel:{component:"yt-avatar-stack-view-model"}}},"data.membershipButton":{id:"sponsor-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[joinButtonOverrides]]"}},timedAnimationButtonRenderer:{component:"timed-animation-button-renderer",params:{uniqueId:"join-button"},properties:{overrides:"[[joinButtonOverrides]]"}}}},"data.purchaseButton":{id:"purchase-button",mapping:{buttonRenderer:"ytd-button-renderer"}},
"data.analyticsButton":{id:"analytics-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.N.updateJoinButtonOverrides=function(){var F,W;(F=_.Z(this.hostElement).querySelector("#sponsor-button ytd-button-renderer"))==null||(W=F.polymerController)==null||W.set("overrides",this.joinButtonOverrides);if(F=_.Z(this.hostElement).querySelector("#sponsor-button timed-animation-button-renderer"))F.overrides=this.joinButtonOverrides};
_.N.handleButtonRefreshAction=function(F){if(F=_.D(F,vic))this.set("data.membershipButton",F.membershipButton),this.notifyPath("data.membershipButton")};
_.N.onYtServiceRequestError=function(F){_.R$(this.hostElement,F.detail.error.message)};
_.N.handleUnsubscribeAction=function(){var F,W,E;((F=this.data)==null?void 0:(W=F.membershipButton)==null?void 0:(E=W.buttonRenderer)==null?void 0:E.style)==="STYLE_PRIMARY"&&_.Z(this.hostElement).querySelector("#sponsor-button ytd-button-renderer").polymerController.set("data.style","STYLE_SUGGESTIVE")};
_.Sn.Object.defineProperties(iR.prototype,{hideJoin:{configurable:!0,enumerable:!0,get:function(){var F;return((F=this.data)==null?void 0:F.hideMembershipButtonIfUnsubscribed)&&!this.subscribed}},
subscribed:{configurable:!0,enumerable:!0,get:function(){var F;return!((F=this.subscriptionStateEntity)==null||!F.subscribed)}},
joinButtonOverrides:{configurable:!0,enumerable:!0,get:function(){var F,W=(F=this.data)==null?void 0:F.membershipButton,E;F=(W==null?void 0:W.buttonRenderer)||_.D(W==null?void 0:(E=W.timedAnimationButtonRenderer)==null?void 0:E.buttonRenderer,_.jt);return(F==null?void 0:F.style)==="STYLE_BRAND_GRADIENT"?{style:"brand-gradient",type:"filled"}:(F==null?void 0:F.style)==="STYLE_MONO_OUTLINE"?{style:"mono",type:"outline"}:(F==null?void 0:F.style)==="STYLE_MONO_TONAL"?{style:"mono",type:"tonal"}:{style:"mono",
type:this.subscribed?"filled":"tonal"}}}});
iR.prototype.onYtServiceRequestError=iR.prototype.onYtServiceRequestError;iR.prototype.updateJoinButtonOverrides=iR.prototype.updateJoinButtonOverrides;_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],iR.prototype,"actionHandlerBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],iR.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],iR.prototype,"ytRendererstamperBehavior",void 0);
_.T([_.J(_.am),_.Y("design:type",Object)],iR.prototype,"ytdReduxBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],iR.prototype,"data",void 0);_.T([_.a("data.hideMembershipButtonIfUnsubscribed","subscribed"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],iR.prototype,"hideJoin",null);_.T([_.O(),_.Y("design:type",String)],iR.prototype,"subscribeKey",void 0);_.T([_.O({selectorArgs:["subscribeKey"],selector:MY}),_.Y("design:type",Object)],iR.prototype,"subscriptionStateEntity",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],iR.prototype,"hideJoinButtonBeforeSubscribed",void 0);_.T([_.a("subscriptionStateEntity"),_.O({reflectToAttribute:!0}),_.Y("design:type",Object),_.Y("design:paramtypes",[])],iR.prototype,"subscribed",null);_.T([_.a("subscribed","data.membershipButton"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],iR.prototype,"joinButtonOverrides",null);
_.T([_.ea("joinButtonOverrides"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],iR.prototype,"updateJoinButtonOverrides",null);_.T([_.R4("yt-service-request-error"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],iR.prototype,"onYtServiceRequestError",null);iR=_.T([_.y({is:"ytd-video-owner-renderer",disableElementRegistration:!0})],iR);
var Hwz=_.We()(iR,"ytd-video-owner-renderer",function(){if(X_X===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-owner-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-video-owner-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" tabindex="-1"><yt-img-shadow id="avatar" alt="[[getSimpleString(data.title)]]" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" width="40" class="style-scope ytd-video-owner-renderer"></yt-img-shadow><div id="avatar-stack" hidden="[[!data.avatarStack.avatarStackViewModel]]" class="style-scope ytd-video-owner-renderer"></div></a><div id="upload-info" class="style-scope ytd-video-owner-renderer"><ytd-channel-name id="channel-name" badges="[[data.badges]]" channel-name="[[data.title]]" class="style-scope ytd-video-owner-renderer"></ytd-channel-name><yt-formatted-string id="owner-sub-count" hidden="[[!data.subscriberCountText]]" text="[[data.subscriberCountText]]" class="style-scope ytd-video-owner-renderer"></yt-formatted-string><slot name="date" class="style-scope ytd-video-owner-renderer"></slot></div><div id="purchase-button" hidden="[[!data.purchaseButton]]" class="style-scope ytd-video-owner-renderer"></div><div id="sponsor-button" hidden="[[hideJoin]]" class="style-scope ytd-video-owner-renderer"></div><div id="analytics-button" class="style-scope ytd-video-owner-renderer"></div>');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);X_X=F}F=X_X;return F},{slotProps:["date"],
allowedProps:["data","subscribeKey"],mode:1});_.pK(_.GK(function(F){var W=F.data;var E;F=_.U(_.g$(!((E=_.Cy("yt-mini-app-is-theater-mode-enabled"))==null||!E),void 0,"cIRDmb"));var h=F.next().value,d=F.next().value,V;E=(V=_.WZ().resolve(_.Fd(Evi)))!=null?V:function(){return _.z("div",null)};
_.w3("yt-signal-action-mini-app-toggle-theatre-mode-on",function(){d(!0);_.tl("yt-mini-app-is-theater-mode-enabled",!0)});
_.w3("yt-signal-action-mini-app-toggle-theatre-mode-off",function(){d(!1);_.tl("yt-mini-app-is-theater-mode-enabled",!1)});
V={};F={};var R={};return _.z("mini-app-play-page-renderer",{class:_.ec("miniAppPlayPageRendererHost",(V.miniAppPlayPageRendererHostDetailsView=function(){return!h()},V))},_.z("div",{class:_.ec("miniAppPlayPageRendererGameContainer",(F.miniAppPlayPageRendererGameContainerDetailsView=function(){return!h()},F))},_.z(_.a6,{data:function(){return W().containerViewModel}},{miniAppContainerViewModel:xPB}),_.z(_.a6,{data:function(){return W().channel}},{videoOwnerRenderer:function(M){return _.z("div",{class:"miniAppPlayPageRendererVideoOwnerRenderer"},
_.z(Hwz,{data:M.data}))}}),_.z(_.v,{cond:function(){return!h()&&W().description},
then:function(){return _.z("div",{class:"miniAppPlayPageRendererMiniAppDescriptionWrapper"},_.z("span",{class:"miniAppPlayPageRendererMiniAppDescription"},function(){return W().description}))}})),_.z("div",{class:_.ec("miniAppPlayPageRendererPlayNextContainer",(R.miniAppPlayPageRendererPlayNextContainerDetailsView=function(){return!h()},R))},_.z(_.a6,{data:function(){return W().sectionList}},{sectionListRenderer:E})))},"ae"),"mini-app-play-page-renderer",{props:{data:_.TS}});var rE=function(){var F=_.n.apply(this,arguments)||this;F.isSearch=!1;F.isConstrainedList=!1;F.hasChipsBar=!1;F.inReplyPanel=!1;F.scrollUpButtonData={buttonViewModel:{iconName:"UP_ARROW",style:"BUTTON_VIEW_MODEL_STYLE_UNKNOWN",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_COMPACT"}};F.monitorScroll=!0;F.SCROLL_ANIMATION_DURATION_MS=300;F.nextContinuation={continuationType:"sectionListContinuation"};return F};
_.k(rE,_.n);_.N=rE.prototype;
_.N.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{feedChannelFilterHeaderRenderer:{component:"ytd-feed-channel-filter-header-renderer",noInjection:!0},textHeaderRenderer:{component:"ytd-text-header-renderer",noInjection:!0},richListHeaderRenderer:{component:"ytd-rich-list-header-renderer",noInjection:!0},headerWithBackRenderer:{component:"yt-header-with-back-renderer",noInjection:!0},feedFilterChipBarRenderer:{component:"ytd-feed-filter-chip-bar-renderer",noInjection:!0,
properties:{isClipList:"[[isClipList]]"}},liveChatItemDisplayRenderer:{component:"yt-live-chat-item-display-renderer",noInjection:!0,params:{isHeader:!0}},chipBarViewModel:{component:"chip-bar-view-model",noInjection:!0}}},"data.subMenu":{id:"sub-menu",mapping:{searchSubMenuRenderer:{component:"ytd-search-sub-menu-renderer",noInjection:!0},channelSubMenuRenderer:{component:"ytd-channel-sub-menu-renderer",noInjection:!0},channelListSubMenuRenderer:{component:"ytd-channel-list-sub-menu-renderer",noInjection:!0},
sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",noInjection:!0}}},shownItems:{id:"contents",mapping:{itemSectionRenderer:{matcher:function(F){switch(F.sectionIdentifier){case "comment-item-section":return"ytd-comments";case "backstage-item-section":return"ytd-backstage-items";default:return"ytd-item-section-renderer"}},
properties:{isSearchDova:"[[isSearchDova]]",isSearch:"[[isSearch]]",hasChipsBar:"[[hasChipsBar]]",engagementPanel:"[[engagementPanel]]",pageSubtype:"[[pageSubtype]]",isConstrainedList:"[[isConstrainedList]]"},noInjection:!0},channelOwnerEmptyStateRenderer:{component:"ytd-channel-owner-empty-state-renderer",noInjection:!0},channelAgeGateRenderer:{component:"ytd-channel-age-gate-renderer",noInjection:!0},emptyProductDetailsRenderer:{component:"ytd-empty-product-details-renderer",noInjection:!0},iframeRenderer:{component:"yt-iframe-renderer",
noInjection:!0},commerceCartRenderer:{component:"ytd-commerce-cart-renderer",noInjection:!0},minorMomentHeaderRenderer:{component:"ytd-minor-moment-header-renderer",noInjection:!0},minorMomentSettingSectionRenderer:{component:"ytd-minor-moment-setting-section-renderer",noInjection:!0},pageIntroductionRenderer:{component:"ytd-page-introduction-renderer",noInjection:!0},reportHistorySectionRenderer:{component:"ytd-report-history-section-renderer",noInjection:!0},sponsorshipsManagementRenderer:{component:"ytd-sponsorships-management-renderer",
noInjection:!0},sponsorshipsExpandablePerksRenderer:{component:"ytd-sponsorships-expandable-perks-renderer",noInjection:!0},sponsorshipsHubViewModel:{component:"yt-sponsorships-hub",noInjection:!0},sponsorshipsPerksListViewModel:{component:"yt-sponsorships-perks-list",noInjection:!0},shelfRenderer:{component:"ytd-shelf-renderer",noInjection:!0},offlineItemSectionRenderer:{component:"ytd-offline-item-section-renderer",noInjection:!0},merchandiseShelfRenderer:{component:"ytd-merch-shelf-renderer",noInjection:!0},
miniAppContainerViewModel:{component:"mini-app-container-view-model",noInjection:!0},miniAppPlayPageRenderer:{component:"mini-app-play-page-renderer",noInjection:!0},openInNativeAppViewModel:{component:"ytd-open-in-native-app-view-model",noInjection:!0},continuationItemRenderer:"ytd-continuation-item-renderer",liveChatProfileIdentityViewModel:{component:"yt-live-chat-identity-view-model",noInjection:!0},liveChatItemDisplayListRenderer:{component:"yt-live-chat-item-display-list-renderer",noInjection:!0},
liveChatChannelActivityReputationRenderer:{component:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0},liveChatEmptyFeedViewModel:{component:"yt-live-chat-empty-feed-view-model",noInjection:!0},listItemViewModel:{component:"ytd-list-item-view-model",params:{noPadding:!0},noInjection:!0},emojiCustomizationPanelViewModel:{component:"yt-emoji-customization-panel-view-model",noInjection:!0},creatorGoalProgressFlowViewModel:{component:"yt-creator-goal-progress-flow-view-model",noInjection:!0},
fantasyEmptyStateViewModel:{component:"ytw-fantasy-empty-state-view-model",noInjection:!0}}},"data.continuations":{id:"continuations",mapping:{nextContinuationData:{component:"yt-next-continuation",noInjection:!0}},renderPriority:_.c("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.c("kevlar_low_priority_continuation")},scrollUpButtonData:{id:"action-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"},noInjection:!0}}}}};
_.N.created=function(){var F=this;this.JSC$14775_scrollAnimation=new _.Jd(function(W){F.hostElement.scrollTop=W})};
_.N.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.N.getItemsPath=function(){return"data.contents"};
_.N.replacePrimaryContent=function(F){this.set("data.contents",F)};
_.N.computeHasSortFilter=function(F){return!!F&&!!F.sortFilterSubMenuRenderer};
_.N.computeShouldScrollInPanel=function(F){var W;return!!(F==null?0:(W=F.scrollPaneStyle)==null?0:W.scrollable)};
_.N.onScroll=function(){this.liveChatEngagementPanel&&!this.inReplyPanel&&_.Wm(this.actionButton,"show-scroll-button",this.hostElement.scrollTop!==0)};
_.N.scrollToTop=function(){this.hostElement.scrollTop=0};
_.N.scrollToItemSection=function(F){if(F=this.getItemByIdentifier(F))F=this.getScrollPositionForItem(F),this.hostElement.scrollTop!==F&&this.JSC$14775_scrollAnimation.start(this.hostElement.scrollTop,F,this.SCROLL_ANIMATION_DURATION_MS)};
_.N.getItemByIdentifier=function(F){var W=this.contents.querySelectorAll("ytd-item-section-renderer");if(W&&W.length!==0){var E=Array.from(W).findIndex(function(h){return h.sectionIdentifier===F});
return W[E===-1?0:E]}};
_.N.getScrollPositionForItem=function(F){if(this.contents.querySelectorAll("ytd-item-section-renderer")[0]===F)return 0;F=_.Zy(F).y+this.hostElement.scrollTop-_.Zy(this.hostElement).y;return Math.min(F,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.Sn.Object.defineProperties(rE.prototype,{isClipList:{configurable:!0,enumerable:!0,get:function(){var F;return((F=this.data)==null?void 0:F.targetId)==="browse-feedFEclips"}}});
rE.prototype.onScroll=rE.prototype.onScroll;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],rE.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],rE.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.W3.YtLazyListBehavior),_.Y("design:type",Object)],rE.prototype,"ytLazyListBehavior",void 0);_.T([_.J(_.lr.YtNextContinuationBehavior),_.Y("design:type",Object)],rE.prototype,"ytNextContinuationBehavior",void 0);
_.T([_.J(_.vNT),_.Y("design:type",Object)],rE.prototype,"ytBooleanLogicBehavior",void 0);_.T([_.J(_.br),_.Y("design:type",Object)],rE.prototype,"ytContinuationHandlerBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],rE.prototype,"data",void 0);_.T([_.O({value:2}),_.Y("design:type",Number)],rE.prototype,"initialCount",void 0);_.T([_.O({value:!0}),_.Y("design:type",Boolean)],rE.prototype,"autoFill",void 0);
_.T([_.O({reflectToAttribute:!0,computed:"computeHasSortFilter(data.subMenu)"}),_.Y("design:type",Boolean)],rE.prototype,"hasSortFilter",void 0);_.T([_.O({reflectToAttribute:!0,computed:"toBool(data.hideBottomSeparator)"}),_.Y("design:type",Boolean)],rE.prototype,"hideBottomSeparator",void 0);_.T([_.O({reflectToAttribute:!0,computed:"computeShouldScrollInPanel(data)"}),_.Y("design:type",Boolean)],rE.prototype,"shouldScrollInPanel",void 0);
_.T([_.O(),_.Y("design:type",Object)],rE.prototype,"isSearch",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],rE.prototype,"isConstrainedList",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",String)],rE.prototype,"responsiveSizing",void 0);_.T([_.O(),_.Y("design:type",Object)],rE.prototype,"hasChipsBar",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",String)],rE.prototype,"pageSubtype",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],rE.prototype,"engagementPanel",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],rE.prototype,"liveChatEngagementPanel",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],rE.prototype,"inReplyPanel",void 0);_.T([_.gQ("#action-button"),_.Y("design:type",HTMLElement)],rE.prototype,"actionButton",void 0);_.T([_.O(),_.Y("design:type",Object)],rE.prototype,"scrollUpButtonData",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],rE.prototype,"engagementPanelDropdown",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],rE.prototype,"engagementPanelDialog",void 0);_.T([_.a("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],rE.prototype,"isClipList",null);_.T([_.gQ("#contents"),_.Y("design:type",HTMLElement)],rE.prototype,"monitorScrollElement",void 0);_.T([_.gQ("#contents"),_.Y("design:type",HTMLElement)],rE.prototype,"contents",void 0);
_.T([_.R4("scroll"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],rE.prototype,"onScroll",null);rE=_.T([_.y({is:"ytd-section-list-renderer",disableElementRegistration:!0})],rE);
var P9H=_.We()(rE,"ytd-section-list-renderer",function(){if(Wae===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-section-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header-container" class="style-scope ytd-section-list-renderer">\n  <div id="header" class="style-scope ytd-section-list-renderer"></div>\n  <div id="sub-menu" class="style-scope ytd-section-list-renderer"></div>\n</div>\n<div id="contents" class="style-scope ytd-section-list-renderer"></div>\n<div id="action-button" on-click="scrollToTop" class="style-scope ytd-section-list-renderer"></div>\n<div id="continuations" class="style-scope ytd-section-list-renderer"></div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);Wae=F}F=Wae;return F},{mode:1});var J2e;var aY_;var fYp;var Owc;var Tj=function(){return _.n.apply(this,arguments)||this};
_.k(Tj,_.n);Tj.prototype.configureRendererStamper=function(){return{likeButtonRenderer:{id:"button",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{"on-tap":"[[onLikeButtonClick]]"}}}}}};
Tj.prototype.onLikeButtonClick=function(F){F.stopPropagation();F.preventDefault()};
_.Sn.Object.defineProperties(Tj.prototype,{likeButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var F;if((F=this.data)!=null&&F.button){if(!this.likeStatusEntity)return this.data.button;this.set("data.button.toggleButtonRenderer.isToggled",!(!this.data.isLike||this.likeStatusEntity.likeStatus!=="LIKE")||!(!this.data.isDislike||this.likeStatusEntity.likeStatus!=="DISLIKE"));this.set("data.likeStatus",this.likeStatusEntity.likeStatus);return Object.assign({},this.data.button,{toggleButtonRenderer:Object.assign({},
this.data.button.toggleButtonRenderer)})}}}});
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Tj.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],Tj.prototype,"ytComponentBehavior",void 0);_.T([_.J(_.am),_.Y("design:type",Object)],Tj.prototype,"ytdReduxBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],Tj.prototype,"ytRendererStamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],Tj.prototype,"data",void 0);
_.T([_.O({selectorArgs:["data.likeStatusEntityKey"],selector:a3}),_.Y("design:type",Object)],Tj.prototype,"likeStatusEntity",void 0);_.T([_.a("data","likeStatusEntity"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Tj.prototype,"likeButtonRenderer",null);Tj=_.T([_.y({is:"ytd-slim-metadata-toggle-button-renderer",disableElementRegistration:!0})],Tj);
_.r(Tj,"ytd-slim-metadata-toggle-button-renderer",function(){if(Owc!==void 0)return Owc;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-slim-metadata-toggle-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="button" class="style-scope ytd-slim-metadata-toggle-button-renderer"></div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);
return Owc=F},{mode:1});var oc=function(){var F=_.n.apply(this,arguments)||this;F.minimizePipBreakages=_.c("web_pip_minimize_breakages");F.showEqualizer=_.c("web_enable_playlist_video_lockup_equalizer");F.watchColorUpdate=_.c("kevlar_watch_color_update");F.actionMap={};return F};
_.k(oc,_.n);_.N=oc.prototype;_.N.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{buttonTooltipPosition:"left"}}}},"data.actionButtons":{id:"action-buttons",mapping:{slimMetadataToggleButtonRenderer:"ytd-slim-metadata-toggle-button-renderer"}}}};
_.N.computeEditableClass=function(F){return F&&F.menu?"editable":""};
_.N.computeSelected=function(F){return!(F==null||!F.selected)};
_.N.computeUseColorPalette=function(F){return!!((F==null?0:F.lightColorPalette)&&(F==null?0:F.darkColorPalette))};
_.N.computeLargerPlaylistThumbs=function(F,W){return _.c("web_enable_playlist_bigger_thumbnails")&&!W};
_.N.canReorderChanged=function(){this.touchPersistentDragHandle=this.canReorder};
_.N.onYtServiceRequestSent=function(F,W){W.endpoint&&this.isHideEnclosingAction(W.endpoint)&&!this.selected&&Qtz(_.o0(),this.data.videoId)};
_.N.isHideEnclosingAction=function(F){var W=!!this.get("feedbackEndpoint.uiActions.hideEnclosingContainer",F);F=this.get("likeEndpoint.status",F)==="INDIFFERENT";return W||F};
_.N.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.N.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.Sn.Object.defineProperties(oc.prototype,{reorderIcon:{configurable:!0,enumerable:!0,get:function(){return _.c("enable_web_delhi_icons")?"equal":"yt-icons:drag_handle"}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return(this==null?0:this.largerPlaylistThumbs)?151:100}},
showActionButtons:{configurable:!0,enumerable:!0,get:function(){var F;return!!(this.withinMiniplayer&&((F=this.data)==null?0:F.actionButtons))}}});
oc.prototype.onYtServiceRequestSent=oc.prototype.onYtServiceRequestSent;oc.prototype.canReorderChanged=oc.prototype.canReorderChanged;_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],oc.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],oc.prototype,"ytActionHandlerBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],oc.prototype,"ytRendererBehavior",void 0);
_.T([_.J(_.rt),_.Y("design:type",Object)],oc.prototype,"ytdLockupBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],oc.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],oc.prototype,"withinMiniplayer",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],oc.prototype,"minimizePipBreakages",void 0);_.T([_.O({computed:"computeSelected(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],oc.prototype,"selected",void 0);
_.T([_.O({computed:"computeUseColorPalette(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],oc.prototype,"useColorPalette",void 0);_.T([_.O({computed:"computeLargerPlaylistThumbs(data, withinMiniplayer)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],oc.prototype,"largerPlaylistThumbs",void 0);_.T([_.O(),_.Y("design:type",Object)],oc.prototype,"showEqualizer",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],oc.prototype,"canReorder",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],oc.prototype,"touchPersistentDragHandle",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],oc.prototype,"handleIsHovered",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],oc.prototype,"watchColorUpdate",void 0);_.T([_.O(),_.Y("design:type",String),_.Y("design:paramtypes",[])],oc.prototype,"reorderIcon",null);
_.T([_.a("largerPlaylistThumbs"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],oc.prototype,"thumbnailWidth",null);_.T([_.O({reflectToAttribute:!0}),_.a("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],oc.prototype,"showActionButtons",null);_.T([_.Cz("canReorder"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],oc.prototype,"canReorderChanged",null);
_.T([_.R4("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.nQ]),_.Y("design:returntype")],oc.prototype,"onYtServiceRequestSent",null);oc=_.T([_.y({is:"ytd-playlist-panel-video-renderer",disableElementRegistration:!0})],oc);
_.r(oc,"ytd-playlist-panel-video-renderer",function(){if(fYp!==void 0)return fYp;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-panel-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="wc-endpoint" class="yt-simple-endpoint style-scope ytd-playlist-panel-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <div id="container" class="style-scope ytd-playlist-panel-video-renderer">\n    <div id="index-container" class="playlist-drag-handle style-scope ytd-playlist-panel-video-renderer" on-mouseenter="onHandleMouseenter" on-mouseleave="onHandleMouseleave">\n      <span id="reorder" class="style-scope ytd-playlist-panel-video-renderer">\n        <yt-icon icon="[[reorderIcon]]" class="style-scope ytd-playlist-panel-video-renderer"></yt-icon>\n      </span>\n      <span id="index" class="style-scope ytd-playlist-panel-video-renderer">[[getSimpleString(data.indexText)]]</span>\n    </div>\n    <div id="thumbnail-container" class="style-scope ytd-playlist-panel-video-renderer">\n      <ytd-thumbnail data="[[data]]" disable-now-playing="[[!showEqualizer]]" disable-tooltips="" now-playing-equalizer-only="" use-expandable-tooltip="[[useExpandableTooltip_]]" width="[[thumbnailWidth]]" class="style-scope ytd-playlist-panel-video-renderer">\n      </ytd-thumbnail>\n    </div>\n    <div id="meta" class$="[[computeEditableClass(data)]] style-scope ytd-playlist-panel-video-renderer">\n      <yt-formatted-string id="unplayableText" disable-upgrade$="[[!data.unplayableText]]" hidden="[[!data.unplayableText]]" no-endpoints="" text="[[data.unplayableText]]" class="style-scope ytd-playlist-panel-video-renderer">\n      </yt-formatted-string>\n      <h4 class="style-scope ytd-playlist-panel-video-renderer">\n        <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-playlist-panel-video-renderer">\n        </ytd-badge-supported-renderer>\n        <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-playlist-panel-video-renderer">\n          [[getSimpleString(data.title)]]\n        </span>\n      </h4>\n      <div id="byline-container" class="style-scope ytd-playlist-panel-video-renderer">\n        <span id="byline" hidden="[[!data.shortBylineText]]" class="style-scope ytd-playlist-panel-video-renderer">\n          [[getSimpleString(data.shortBylineText)]]\n        </span>\n        <ytd-badge-supported-renderer badges="[[data.ownerBadges]]" class="style-scope ytd-playlist-panel-video-renderer">\n        </ytd-badge-supported-renderer>\n        <ytd-badge-supported-renderer badges="[[data.badges]]" class="style-scope ytd-playlist-panel-video-renderer">\n        </ytd-badge-supported-renderer>\n      </div>\n      <yt-formatted-string id="video-info" disable-upgrade$="[[!data.videoInfo]]" hidden="[[!data.videoInfo]]" no-endpoints="" text="[[data.videoInfo]]" class="style-scope ytd-playlist-panel-video-renderer">\n      </yt-formatted-string>\n      <div id="action-buttons" hidden="[[!showActionButtons]]" class="style-scope ytd-playlist-panel-video-renderer"></div>\n    </div>\n  </div>\n</a>\n<div id="menu" class="style-scope ytd-playlist-panel-video-renderer"></div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return fYp=F},{mode:2});var Gj=function(){return _.n.apply(this,arguments)||this};
_.k(Gj,_.n);Gj.prototype.configureRendererStamper=function(){return{data:{id:"content",mapping:{playlistPanelVideoRenderer:{component:"ytd-playlist-panel-video-renderer",noInjection:!0},messageRenderer:{component:"ytd-message-renderer",noInjection:!0}}}}};
_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],Gj.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],Gj.prototype,"data",void 0);Gj=_.T([_.y({is:"ytd-playlist-panel-supported-items",disableElementRegistration:!0})],Gj);
_.r(Gj,"ytd-playlist-panel-supported-items",function(){if(aY_!==void 0)return aY_;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-panel-supported-items--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-playlist-panel-supported-items"></div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return aY_=
F},{mode:1});PbH=!0;wrX("\\P{N}");var jBr;var bwi=_.CY("END_OF_PLAYLIST",void 0,"End of playlist"),lYp=_.CY("PLAYLIST_MIX_DETAILED_LONG_BYLINE",void 0,"Mixes are playlists YouTube makes for you"),YD=function(){var F=_.n.apply(this,arguments)||this;F.minimizePipBreakages=_.c("web_pip_minimize_breakages");F.updatedCoursePanel=_.c("move_three_dot_menu_to_playlist_panel_header_for_courses");F.reducedPlaylistHeight=_.c("web_playlist_mini_playlist_height");F.hideHeaderText=!1;F.useColorPalette=!1;F.collapsed=!1;F.collapsedPreServerOverride="not_tracked";
F.isHovered=!1;F.modernPanels=_.c("kevlar_watch_modern_panels");F.expandLabel=_.CY("MINIPLAYER_EXPAND_LABEL");F.collapseLabel=_.CY("MINIPLAYER_COLLAPSE_LABEL");F.isFloating=!1;F.metaPanel=!1;F.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeChange"};F.currentIndex=void 0;return F};
_.k(YD,_.n);_.N=YD.prototype;
_.N.configureRendererStamper=function(){return{menuRendererData:{id:"playlist-action-menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{forceIconButton:!1}}}},overflowMenuDataTopRow:{id:"overflow-menu-top-row",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},overflowMenuData:{id:"overflow-menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},"data.contentHeader":{id:"content-header",mapping:{messageRenderer:{component:"ytd-message-renderer",params:{panel:!0}}}},"data.contents":{id:"items",
events:!0,mapping:{playlistPanelVideoRenderer:{component:"ytd-playlist-panel-video-renderer",attributes:{id:"playlist-items"},properties:{canReorder:"[[canReorder]]",withinMiniplayer:"[[withinMiniplayer]]"}},messageRenderer:{component:"ytd-message-renderer",params:{panel:!0}}}},"data.saveButton":{id:"save-button",mapping:{toggleButtonRenderer:"ytd-toggle-button-renderer"}},"data.topRowButtons":{id:"top-row-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.N.created=function(){this.scrollThrottle=new _.Nv(this.onThrottledScroll,1E3,this)};
_.N.onMouseEnter=function(){this.isHovered=!0};
_.N.onMouseLeave=function(){this.isHovered=!1};
_.N.computeOverflowMenuData=function(F){return F&&F.menu?F.menu:null};
_.N.computeCollapsible=function(F){return!F};
_.N.computeHasPlaylistButtons=function(F){return!(!F||!F.playlistButtons)};
_.N.computeHasSeparateSaveButton=function(F){return!(!F||!F.saveButton)};
_.N.computeHasToolbarButton=function(F,W){return!(!F||!(W||F.saveButton||F.menu))};
_.N.computePlaylistType=function(F){if(F&&F.playlistId)return F.playlistId.substring(0,4)};
_.N.computeCanReorder=function(F){return F?F.playlistId&&F.playlistId.startsWith("TLPQ")?!0:!!F.isEditable&&!F.isInfinite:!1};
_.N.attached=function(){var F=this;try{_.WZ().resolve(_.yH).setPlaylistComponent(this.hostElement)}catch(W){if(_.c("kevlar_park_on_playlist_token_killswitch"))throw W;_.ip().parkOrScheduleJob(function(){_.WZ().resolve(_.yH).setPlaylistComponent(F.hostElement)},2,"ci")}_.W5(this.hostElement);
this.handleDarkModeChange(document.documentElement.hasAttribute("dark"))};
_.N.detached=function(){_.ET(this.hostElement)};
_.N.computeTrailingIcon=function(F,W,E){return E?W?"yt-icons:collapse":"yt-icons:close":W?"yt-icons:expand":_.c("kevlar_playlist_use_x_close_button")?"yt-icons:close":"yt-icons:collapse"};
_.N.computeIndexMessage=function(F,W){return TyY(F+1)+" / "+TyY(W)};
_.N.onRenderStamperFinished=function(){if(this.scrollForStampDom){var F=!0;this.isHovered&&(F=!1);if(this.collapsed||this.hidden)F=!1;F&&this.scrollToCurrentVideo();this.scrollForStampDom=!1;this.data&&(this.currentIndex=this.data.currentIndex)}this.canReorder&&this.setupReordering()};
_.N.collapseChanged=function(){var F=this;this.collapsed||(_.JG(this.ytTaskEmitterBehavior.getTaskManager(),function(){F.scrollToCurrentVideo()}),this.ytRendererBehavior.markDirty())};
_.N.hiddenChanged=function(){var F=this;this.hidden||_.JG(this.ytTaskEmitterBehavior.getTaskManager(),function(){F.scrollToCurrentVideo()})};
_.N.setupReordering=function(){var F=_.Z(this.hostElement).querySelector("#items");aMH?_.cOe(this.ytReorderableBehavior,F,F,"playlist-drag-handle"):_.cOe(this.ytReorderableBehavior,F,F)};
_.N.scrollToCurrentVideo=function(){var F=this;_.P0.addJob(function(){var W=_.Z(F.hostElement).querySelector("#items");if(W){W.style.setProperty("padding-bottom","");var E=_.Z(F.hostElement).querySelector("#items").querySelector("ytd-playlist-panel-video-renderer[selected]");if(E){W=E.parentElement||_.PK(document);var h=W||_.PK(document);var d=_.Zy(E),V=_.Zy(h),R=_.cPz(h);if(h==_.PK(document)){var M=d.x-h.scrollLeft;d=d.y-h.scrollTop}else M=d.x-V.x-R.left,d=d.y-V.y-R.top;E=CKH(E);V=h.clientHeight-
E.height;R=h.scrollLeft;var g=h.scrollTop;R+=M-(h.clientWidth-E.width)/2;h=new _.sp(R,g+(d-V/2));W.scrollLeft=h.x;W.scrollTop=h.y}}},8)};
_.N.dataChanged=function(){var F=this;_.IhX(this.ytReorderableBehavior);this.scrollForStampDom=this.currentIndex!==this.data.currentIndex;this.hidden||_.wT(this,function(){_.sB(F.ytTaskEmitterBehavior.getTaskManager(),function(){F.ytRendererBehavior.markDirty();F.updateNowPlayingOverlay()})});
this.handleCollapsedFromData(this.data)};
_.N.updateNowPlayingOverlay=function(){_.c("web_enable_playlist_video_lockup_equalizer")&&this.activeNowPlayingRenderer&&(this.activeNowPlayingRenderer.isVideoPlaying=this.playerState===1)};
_.N.onPlaylistLockupNowPlaying=function(F,W){W&&(this.activeNowPlayingRenderer=W);this.updateNowPlayingOverlay()};
_.N.onScroll=function(){this.scrollThrottle.fire()};
_.N.onThrottledScroll=function(){var F=this;_.sB(this.ytTaskEmitterBehavior.getTaskManager(),function(){F.ytRendererBehavior.markDirty()})};
_.N.onToggleExpanded=function(F){this.collapsible&&_.oo(F).tagName!=="A"&&!_.Sc(_.TB(F),this.hostElement,["YTD-MENU-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"])&&(this.setCollapsed(!this.collapsed),this.collapsedPreServerOverride="not_tracked")};
_.N.setCollapsed=function(F){this.collapsible&&(this.collapsed=F,_.Nc(this.hostElement,"yt-set-playlist-collapsed",[this.collapsed]))};
_.N.handleCollapsedFromData=function(F){if(F){var W=F.playlistPanelCollapseState;W==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED"||W==="PLAYLIST_PANEL_COLLAPSE_STATE_EXPANDED"?(this.collapsedPreServerOverride==="not_tracked"&&(this.collapsedPreServerOverride=this.collapsed?"collapsed":"expanded"),W=W==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED",this.collapsed!==W&&this.setCollapsed(W)):this.currentPlaylistId!==F.playlistId&&this.collapsedPreServerOverride!=="not_tracked"&&(W=this.collapsedPreServerOverride===
"collapsed",this.collapsed!==W&&this.setCollapsed(W),this.collapsedPreServerOverride="not_tracked");this.currentPlaylistId=F.playlistId}};
_.N.handleDrop=function(F){var W=F.currDragItem;F=W.data.playlistSetVideoId;var E=_.TR(W.parentNode.childNodes,W),h=void 0;E>0&&(h=W.parentNode.childNodes[E-1].data.playlistSetVideoId);W=_.o0();if(W.responsePlaylistData&&W.responsePlaylistData.contents){var d=dXr(F,W.responsePlaylistData);W.responsePlaylistData=(0,_.xd.unsafeClone)(W.responsePlaylistData);ArR(W.responsePlaylistData.contents,d,E);W.queueProxy?i1a(W.queueProxy,d,E,F,h):W.playlistProxy&&i1a(W.playlistProxy,d,E,F,h);_.GY(W,_.YQ(W,W.response?
W.response.autoplayRenderer:void 0))}};
_.N.handleDarkModeChange=function(F){F!==this.isDarkTheme&&(this.isDarkTheme=F)};
_.N.colorPaletteChanged=function(){var F,W=((F=this.data)==null?void 0:F.contents)||[],E;F=_.U(W);for(W=F.next();!W.done;W=F.next()){W=W.value;var h=void 0;if((h=W.playlistPanelVideoRenderer)==null?0:h.selected){F=W.playlistPanelVideoRenderer;h=W=void 0;(E=this.isDarkTheme?(W=F)==null?void 0:W.darkColorPalette:(h=F)==null?void 0:h.lightColorPalette)&&_.ZR(this.hostElement,E);break}}this.useColorPalette=!!E};
_.Sn.Object.defineProperties(YD.prototype,{moveThreeDotMenuToTopRow:{configurable:!0,enumerable:!0,get:function(){var F,W;return!((F=this.data)==null||!F.playlistId)&&!((W=this.data)==null||!W.isCourse)&&this.updatedCoursePanel}},
nextVideoTitle:{configurable:!0,enumerable:!0,get:function(){var F=_.WZ().resolve(_.Fd(_.yH)),W;if(((W=this.data)==null?0:W.contents)&&(F==null?0:F.hasAutoplayData())){var E;if(((E=this.playlistLoopStateEntity)==null?void 0:E.state)==="PLAYLIST_LOOP_STATE_ONE"){if(F=this.data.currentIndex,F!==void 0){var h,d;var V=(h=this.data.contents[F])==null?void 0:(d=h.playlistPanelVideoRenderer)==null?void 0:d.title}}else{var R,M=(R=_.D(F.getAutoplayEndpoint(),_.GM))==null?void 0:R.videoId,g,t;V=(g=this.data.contents.find(function(C){var B;
return((B=C.playlistPanelVideoRenderer)==null?void 0:B.videoId)===M}))==null?void 0:(t=g.playlistPanelVideoRenderer)==null?void 0:t.title}return V}}},
nextVideoLabel:{configurable:!0,enumerable:!0,get:function(){var F;return(F=this.data)!=null&&F.nextVideoLabel?this.nextVideoTitle?_.Yr(this.data.nextVideoLabel)+":":bwi:""}},
buttonAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.collapsed?this.expandLabel:this.collapseLabel}},
mixLongByLine:{configurable:!0,enumerable:!0,get:function(){var F;if(((F=this.data)==null?0:F.playlistId)&&this.data.playlistId.startsWith("RD")&&this.data.playlistId!=="RDPN")return _.Gr(lYp);var W;return(W=this.data)==null?void 0:W.longBylineText}},
playlistLoopStateEntityKey:{configurable:!0,enumerable:!0,get:function(){var F,W,E,h=(F=this.data)==null?void 0:(W=F.playlistButtons)==null?void 0:(E=W.menuRenderer)==null?void 0:E.topLevelButtons;if(h)for(F=_.U(h),W=F.next();!W.done;W=F.next())if(W=W.value,W.playlistLoopButtonRenderer)return W.playlistLoopButtonRenderer.playlistLoopStateEntityKey}},
showNextVideoHeader:{configurable:!0,enumerable:!0,get:function(){var F;return!!(this.collapsed&&((F=this.data)==null?0:F.nextVideoLabel))}}});
YD.prototype.colorPaletteChanged=YD.prototype.colorPaletteChanged;YD.prototype.onPlaylistLockupNowPlaying=YD.prototype.onPlaylistLockupNowPlaying;YD.prototype.updateNowPlayingOverlay=YD.prototype.updateNowPlayingOverlay;YD.prototype.dataChanged=YD.prototype.dataChanged;YD.prototype.hiddenChanged=YD.prototype.hiddenChanged;YD.prototype.collapseChanged=YD.prototype.collapseChanged;YD.prototype.onRenderStamperFinished=YD.prototype.onRenderStamperFinished;YD.prototype.onMouseLeave=YD.prototype.onMouseLeave;
YD.prototype.onMouseEnter=YD.prototype.onMouseEnter;_.T([_.J(_.lB),_.Y("design:type",Object)],YD.prototype,"ironResizableBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],YD.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],YD.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(Bza.YtPlaylistPanelBehavior),_.Y("design:type",Object)],YD.prototype,"ytPlaylistPanelBehavior",void 0);
_.T([_.J(_.ua.YtTaskEmitterBehavior),_.Y("design:type",Object)],YD.prototype,"ytTaskEmitterBehavior",void 0);_.T([_.J(_.Dh_),_.Y("design:type",Object)],YD.prototype,"ytReorderableBehavior",void 0);_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],YD.prototype,"ytComponentBehavior",void 0);_.T([_.J(_.am),_.Y("design:type",Object)],YD.prototype,"ytdReduxBehavior",void 0);_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],YD.prototype,"actionHandlerBehavior",void 0);
_.T([_.O(),_.Y("design:type",Object)],YD.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Object)],YD.prototype,"autoplayData",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],YD.prototype,"withinMiniplayer",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],YD.prototype,"minimizePipBreakages",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],YD.prototype,"updatedCoursePanel",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],YD.prototype,"reducedPlaylistHeight",void 0);_.T([_.O({computed:"setMenuData_(data)"}),_.Y("design:type",Object)],YD.prototype,"menuRendererData",void 0);_.T([_.O({computed:"computeOverflowMenuData(data)"}),_.Y("design:type",Object)],YD.prototype,"overflowMenuDataTopRow",void 0);_.T([_.O({computed:"computeOverflowMenuData(data)"}),_.Y("design:type",Object)],YD.prototype,"overflowMenuData",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],YD.prototype,"hideHeaderText",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],YD.prototype,"useColorPalette",void 0);_.T([_.O({reflectToAttribute:!0,computed:"computeCollapsible(hideHeaderText)"}),_.Y("design:type",Boolean)],YD.prototype,"collapsible",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],YD.prototype,"collapsed",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],YD.prototype,"hidden",void 0);_.T([_.O({reflectToAttribute:!0,computed:"computeHasPlaylistButtons(data)"}),_.Y("design:type",Boolean)],YD.prototype,"hasPlaylistButtons",void 0);_.T([_.O({reflectToAttribute:!0,computed:"computeHasSeparateSaveButton(data)"}),_.Y("design:type",Boolean)],YD.prototype,"hasSeparateSaveButton",void 0);
_.T([_.O({reflectToAttribute:!0,computed:"computeHasToolbarButton(data, menuRendererData)"}),_.Y("design:type",Boolean)],YD.prototype,"hasToolbar",void 0);_.T([_.O({reflectToAttribute:!0,computed:"computePlaylistType(data)"}),_.Y("design:type",String)],YD.prototype,"playlistType",void 0);_.T([_.O(),_.Y("design:type",Object)],YD.prototype,"isHovered",void 0);_.T([_.O({selectorArgs:["playlistLoopStateEntityKey"],selector:_.OJW}),_.Y("design:type",Object)],YD.prototype,"playlistLoopStateEntity",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],YD.prototype,"modernPanels",void 0);_.T([_.O({value:56}),_.Y("design:type",Number)],YD.prototype,"scrollMargin",void 0);_.T([_.O({computed:"computeCanReorder(data)"}),_.Y("design:type",Boolean)],YD.prototype,"canReorder",void 0);_.T([_.O(),_.Y("design:type",Object)],YD.prototype,"expandLabel",void 0);_.T([_.O(),_.Y("design:type",Object)],YD.prototype,"collapseLabel",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],YD.prototype,"isFloating",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],YD.prototype,"metaPanel",void 0);_.T([_.O({computed:"computeTrailingIcon(data, collapsed, isFloating)"}),_.Y("design:type",String)],YD.prototype,"trailingIcon",void 0);_.T([_.O({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],YD.prototype,"isDarkTheme",void 0);
_.T([_.O({selector:_.Pz}),_.Y("design:type",Boolean)],YD.prototype,"miniplayerIsActive",void 0);_.T([_.O({selector:function(F){return F.watch.playerState}}),
_.Y("design:type",Number)],YD.prototype,"playerState",void 0);_.T([_.O(),_.Y("design:type",Object)],YD.prototype,"activeNowPlayingRenderer",void 0);_.T([_.O({reflectToAttribute:!0}),_.a("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],YD.prototype,"moveThreeDotMenuToTopRow",null);_.T([_.a("data","autoplayData","playlistLoopStateEntity"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],YD.prototype,"nextVideoTitle",null);
_.T([_.a("data","nextVideoTitle"),_.Y("design:type",String),_.Y("design:paramtypes",[])],YD.prototype,"nextVideoLabel",null);_.T([_.a("collapsed"),_.Y("design:type",String),_.Y("design:paramtypes",[])],YD.prototype,"buttonAriaLabel",null);_.T([_.a("data","playlistId","longBylineText"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],YD.prototype,"mixLongByLine",null);_.T([_.a("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],YD.prototype,"playlistLoopStateEntityKey",null);
_.T([_.R4("mouseenter"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],YD.prototype,"onMouseEnter",null);_.T([_.R4("mouseleave"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],YD.prototype,"onMouseLeave",null);_.T([_.O({reflectToAttribute:!0}),_.a("data","collapsed"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],YD.prototype,"showNextVideoHeader",null);
_.T([_.R4("yt-rendererstamper-finished"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],YD.prototype,"onRenderStamperFinished",null);_.T([_.ea("collapsed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],YD.prototype,"collapseChanged",null);_.T([_.ea("hidden"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],YD.prototype,"hiddenChanged",null);
_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],YD.prototype,"dataChanged",null);_.T([_.ea("playerState","miniplayerIsActive"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],YD.prototype,"updateNowPlayingOverlay",null);_.T([_.R4("yt-playlist-lockup-now-playing-active"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],YD.prototype,"onPlaylistLockupNowPlaying",null);
_.T([_.ea("data","isDarkTheme"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],YD.prototype,"colorPaletteChanged",null);YD=_.T([_.y({is:"ytd-playlist-panel-renderer",disableElementRegistration:!0})],YD);
_.nl_=_.We()(YD,"ytd-playlist-panel-renderer",function(){if(J2e===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" data-collapsed="[[collapsed]]" class="style-scope ytd-playlist-panel-renderer"><div class="header style-scope ytd-playlist-panel-renderer" on-tap="onToggleExpanded"><div id="header-contents" class="style-scope ytd-playlist-panel-renderer"><div id="header-top-row" class="style-scope ytd-playlist-panel-renderer"><div id="header-description" class="style-scope ytd-playlist-panel-renderer"><h3 hidden="[[showNextVideoHeader]]" class="style-scope ytd-playlist-panel-renderer"><yt-formatted-string class="title style-scope ytd-playlist-panel-renderer" ellipsis-truncate="" link-inherit-color="" text="[[data.titleText]]"></yt-formatted-string></h3><h3 id="next-video-title" hidden="[[!showNextVideoHeader]]" class="style-scope ytd-playlist-panel-renderer"><span id="next-label" class="style-scope ytd-playlist-panel-renderer">[[nextVideoLabel]]</span><yt-formatted-string ellipsis-truncate="" text="[[nextVideoTitle]]" class="style-scope ytd-playlist-panel-renderer"></yt-formatted-string></h3><div id="publisher-container" class="style-scope ytd-playlist-panel-renderer"><yt-formatted-string class="byline-title style-scope ytd-playlist-panel-renderer" ellipsis-truncate="" hidden="[[!showNextVideoHeader]]" text="[[data.titleText]]"></yt-formatted-string><ytd-badge-supported-renderer badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-playlist-panel-renderer"></ytd-badge-supported-renderer><yt-formatted-string class="publisher style-scope ytd-playlist-panel-renderer" ellipsis-truncate="" link-inherit-color="" text="[[mixLongByLine]]"></yt-formatted-string><div class="index-message-wrapper style-scope ytd-playlist-panel-renderer" hidden="[[data.isInfinite]]"><span class="index-message style-scope ytd-playlist-panel-renderer" hidden="[[data.videoCountText]]">[[computeIndexMessage(data.currentIndex,\n                data.totalVideos)]]</span><yt-formatted-string class="index-message style-scope ytd-playlist-panel-renderer" hidden="[[!data.videoCountText]]" respecthtmldir="" text="[[data.videoCountText]]"></yt-formatted-string></div></div></div><div id="end-actions-in-header" class="style-scope ytd-playlist-panel-renderer"><div id="overflow-menu-top-row" class="style-scope ytd-playlist-panel-renderer"></div></div><div id="top-row-buttons" class="style-scope ytd-playlist-panel-renderer"></div><yt-icon-button id="trailing-button" label="[[buttonAriaLabel]]" pressed="[[!collapsed]]" toggleable="" class="style-scope ytd-playlist-panel-renderer"><yt-icon id="trailing-icon" icon="[[trailingIcon]]" class="style-scope ytd-playlist-panel-renderer"></yt-icon></yt-icon-button></div><div id="playlist-actions" class="style-scope ytd-playlist-panel-renderer"><div id="start-actions" class="style-scope ytd-playlist-panel-renderer"><div id="playlist-action-menu" class="style-scope ytd-playlist-panel-renderer"></div><div id="save-button" class="style-scope ytd-playlist-panel-renderer"></div></div><div id="end-actions" class="style-scope ytd-playlist-panel-renderer"><div id="overflow-menu" class="style-scope ytd-playlist-panel-renderer"></div></div></div></div></div><div id="content-header" hidden="[[!data.contentHeader]]" class="style-scope ytd-playlist-panel-renderer"></div><div id="items" class="playlist-items style-scope ytd-playlist-panel-renderer" on-scroll="onScroll"></div></div>');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);J2e=F}F=J2e;return F},{mode:2,
allowedProps:"autoplayData collapsed data hidden useColorPalette hideHeaderText withinMiniplayer metaPanel".split(" ")});var y2z;var wE=function(){var F=_.n.apply(this,arguments)||this;F.modern=_.c("web_button_rework");return F};
_.k(wE,_.n);wE.prototype.computeShouldButtonBeVertical=function(F,W){return F||W};
wE.prototype.onYtServiceRequestSent=function(F,W){(F=_.D(W.endpoint,_.KI))&&(this.likeStatusEntityKey?this.ytdReduxBehavior.dispatch(_.AG("likeStatusEntity",this.likeStatusEntityKey,{key:this.likeStatusEntityKey,likeStatus:F.status})):this.handleLikeEndpoint(F))};
wE.prototype.computelikeStatusEntityKey=function(F){return F==null?void 0:F.likeStatusEntityKey};
wE.prototype.handleLikeEndpoint=function(F){F.status==="LIKE"?this.JSC$14800_ytdDislikeToggleButtonRenderer.toggle(!1):F.status==="DISLIKE"?this.JSC$14800_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$14800_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$14800_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.Sn.Object.defineProperties(wE.prototype,{likeButton:{configurable:!0,enumerable:!0,get:function(){var F;return wnW(this.data,!0,this.useShortsIcon?"SHORTS_LIKE":"LIKE",(F=this.likeStatusEntity)==null?void 0:F.likeStatus)}},
dislikeButton:{configurable:!0,enumerable:!0,get:function(){var F;if(this.data&&((F=this.data)==null||!F.hideDislikeButton)){var W;return wnW(this.data,!1,this.useShortsIcon?"SHORTS_DISLIKE":"DISLIKE",(W=this.likeStatusEntity)==null?void 0:W.likeStatus)}}}});
wE.prototype.onYtServiceRequestSent=wE.prototype.onYtServiceRequestSent;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],wE.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.am),_.Y("design:type",Object)],wE.prototype,"ytdReduxBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],wE.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],wE.prototype,"vertical",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",String)],wE.prototype,"textTransform",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],wE.prototype,"useShortsIcon",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],wE.prototype,"underIconLabel",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],wE.prototype,"modern",void 0);_.T([_.O({value:"left"}),_.Y("design:type",String)],wE.prototype,"buttonTooltipPosition",void 0);
_.T([_.O(),_.Y("design:type",Object)],wE.prototype,"overrides",void 0);_.T([_.gQ("#like-button"),_.Y("design:type",Object)],wE.prototype,"JSC$14800_ytdLikeToggleButtonRenderer",void 0);_.T([_.gQ("#dislike-button"),_.Y("design:type",Object)],wE.prototype,"JSC$14800_ytdDislikeToggleButtonRenderer",void 0);_.T([_.a("data","likeStatusEntity.likeStatus"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],wE.prototype,"likeButton",null);
_.T([_.a("data","likeStatusEntity.likeStatus"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],wE.prototype,"dislikeButton",null);_.T([_.O({computed:"computelikeStatusEntityKey(data)"}),_.Y("design:type",String)],wE.prototype,"likeStatusEntityKey",void 0);_.T([_.O({selectorArgs:["likeStatusEntityKey"],selector:a3}),_.Y("design:type",Object)],wE.prototype,"likeStatusEntity",void 0);
_.T([_.R4("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.nQ]),_.Y("design:returntype")],wE.prototype,"onYtServiceRequestSent",null);wE=_.T([_.y({disableElementRegistration:!0,is:"ytd-like-button-renderer"})],wE);
var jET=_.We()(wE,"ytd-like-button-renderer",function(){if(y2z===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-like-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-toggle-button-renderer id="like-button" button-tooltip-position="[[buttonTooltipPosition]]" data="[[likeButton]]" is-shorts="" overrides="[[overrides]]" vertically-aligned$="[[computeShouldButtonBeVertical(vertical, underIconLabel)]]" class="style-scope ytd-like-button-renderer">\n</ytd-toggle-button-renderer>\n<template is="dom-if" if="[[dislikeButton]]" class="style-scope ytd-like-button-renderer">\n    <ytd-toggle-button-renderer id="dislike-button" button-tooltip-position="[[buttonTooltipPosition]]" data="[[dislikeButton]]" is-shorts="" overrides="[[overrides]]" vertically-aligned$="[[computeShouldButtonBeVertical(vertical, underIconLabel)]]" class="style-scope ytd-like-button-renderer">\n    </ytd-toggle-button-renderer>\n</template>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);y2z=F}F=y2z;return F},{mode:1});_.iwX={};
_.iwX.YtConditionalRendererBehavior=[_.K.YtRendererBehavior,{_noAccessors:!0,properties:{hidden:{type:Boolean,reflectToAttribute:!0},showSpinner:{type:Boolean,reflectToAttribute:!0}},observers:["updateProperties_(data, isAttached)"],updateProperties_:function(F,W){var E=this,h,d;return _.e(function(V){switch(V.nextAddress){case 1:if(!W)return E.hidden=!0,E.showSpinner=!1,V.return();if((h=F)==null?0:(d=h.visibilityCondition)==null?0:d.mode)switch(F.visibilityCondition.mode){case "VISIBILITY_CONDITION_MODE_DISPLAY_SPINNER":return V.jumpTo(5);default:return V.jumpTo(6)}E.showSpinner=
!1;E.hidden=!0;return _.Q(V,E.shouldShow_(F),4);case 4:E.hidden=!V.yieldResult;V.jumpTo(0);break;case 5:return _.Q(V,E.shouldShow_(F),8);case 8:E.showSpinner=V.yieldResult;E.hidden=!1;V.jumpTo(0);break;case 6:return E.showSpinner=!1,_.Q(V,E.shouldShow_(F),9);case 9:E.hidden=!V.yieldResult,_.gG(V)}})},
shouldShow_:function(F){return F&&F.supportedDatas&&F.supportedDatas.rendererVisibilityConditionData&&F.supportedDatas.rendererVisibilityConditionData.showIf?this.isVisibilityConditionSatisfied_(F.supportedDatas.rendererVisibilityConditionData.showIf):F&&F.visibilityCondition&&F.visibilityCondition.showIf?this.isVisibilityConditionSatisfied_(F.visibilityCondition.showIf):F&&F.visibilityConditionType?this.isLegacyVisibilityConditionSatisfied_(F.visibilityConditionType):Promise.resolve(!0)},
isVisibilityConditionSatisfied_:function(F){switch(F){case "VISIBILITY_CONDITION_TYPE_MDX_CONNECTED":return Promise.resolve(this.isMdxConnected_());case "VISIBILITY_CONDITION_TYPE_MDX_DISCONNECTED":return Promise.resolve(!this.isMdxConnected_());case "VISIBILITY_CONDITION_TYPE_LOCATION_PERMISSION_GRANTED":return this.isLocationPermissionGranted_();default:return Promise.resolve(!1)}},
isLegacyVisibilityConditionSatisfied_:function(F){switch(F){case "MDX_CONNECTED":return Promise.resolve(this.isMdxConnected_());default:return Promise.resolve(!1)}},
isMdxConnected_:function(){var F=_.dW(this.hostElement,"yt-get-mdx-status");return F.length==1&&F[0].connected},
isLocationPermissionGranted_:function(){var F;return _.e(function(W){return W.nextAddress==1?navigator.permissions?_.Q(W,navigator.permissions.query({name:"geolocation"}),3):W.jumpTo(2):W.nextAddress!=2?(F=W.yieldResult,W.return(Promise.resolve(F.state==="granted"))):W.return(Promise.resolve(!1))})}}];var r2_=function(F,W){W=W===void 0?{}:W;return function(E){var h=document.createElement(F),d;var V=(d=h.polymerController)!=null?d:h;KqI(h,V,E,W);return h}}("yt-icon");var TCc=function(F){var W=this;this.eventJobIds={};this.scrollEventsToIgnore=0;this.stopIgnoringScrollTimeoutIds=[];GBR();_.S5("ytglobal.ytUtilActivityCallback_",function(){_.Nc(F,"yt-user-activity")});
new Wc(function(){return W.JSC$14812_onMouseMove});
document.addEventListener("scroll",function(){return W.onScroll});
window.addEventListener("resize",function(){return W.onResize})},ole=function(F,W,E){W in F.eventJobIds||(E=_.OZ().addLowPriorityJob(function(){_.EB();
delete F.eventJobIds[W]},E),F.eventJobIds[W]=E)};
TCc.prototype.onScroll=function(F){this.scrollEventsToIgnore>0?(this.scrollEventsToIgnore--,clearTimeout(this.stopIgnoringScrollTimeoutIds.pop())):F.target===document&&ole(this,"scroll",200)};
TCc.prototype.onResize=function(){ole(this,"resize",200)};
TCc.prototype.JSC$14812_onMouseMove=function(){ole(this,"mousemove",100)};
_.mC=function(F){F.scrollEventsToIgnore+=1;F.stopIgnoringScrollTimeoutIds.push(setTimeout(function(){F.scrollEventsToIgnore--},500))};var Gqu=function(F){this.element=F;this.productData={};this.chatSupportLoaded=!1;document.body.addEventListener("yt-page-data-updated",this.resetProductData)};
Gqu.prototype.showFeedbackDialog=function(F,W,E,h){var d=Yrc();if(!d)return!1;var V=VDr();V.productId=d;W&&(V.flow="submit",V.report={description:W});E&&(Yrc()==="59"?V.callback=_.yn(function(){_.Pc("userFeedbackEvent",{});E()}):V.callback=_.yn(E));
V.bucket=h||_.b0("GOOGLE_FEEDBACK_BUCKET","Other");w_u(V);F=uaH(this,"GFEEDBACK",F);try{_.NHi(V,F)}catch(R){return _.nW(R),!1}return!0};
Gqu.prototype.showHelpDialog=function(F,W,E){var h=this,d=Yrc();if(!d)return!1;var V={helpCenterPath:"/youtube",productData:uaH(this,"GUIDED_HELP",E)};w_u(V);var R=VDr();R.context=F||V.productData.context||"default";R.defaultHelpArticleId=W;R.enableSendFeedback=!0;(_.ju("gapi.load")||function(M,g){return g()})("client",function(){try{var M=GOz(d,V);
if(_.c("web_always_load_chat_support")&&!h.chatSupportLoaded)try{M.JSC$7880_loadChatSupport(R),h.chatSupportLoaded=!0}catch(g){}M.startHelp(R)}catch(g){_.nW(g)}})};
var Yrc=function(){var F=_.b0("GOOGLE_FEEDBACK_PRODUCT_ID");F||_.nW(Error("ci"));return F},w_u=function(F){F&&(F.locale=_.c("kevlar_help_use_locale")?_.b0("INNERTUBE_CONTEXT_HL","en"):_.b0("HTML_LANG","en"))},uaH=function(F,W,E){var h=F.productData;
delete h.origin;h.device=_.BG();var d;a:{if(d=document.createElement("canvas")){var V=d.getContext("experimental-webgl",{stencil:!0});if(V){var R=V.getExtension("WEBGL_debug_renderer_info");if(R){d=V.getParameter(R.UNMASKED_RENDERER_WEBGL);break a}}if(V=d.getContext("webgl")){d=V.getParameter(V.RENDERER);break a}}d=null}h.gpu=d;h.isSDC=!!_.b0("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT");(d=_.b0("GOOGLE_FEEDBACK_PRODUCT_DATA"))&&_.xd.extend(h,d);_.dkb(W,h);_.NbR(h);(F=_.Nc(F.element,"yt-get-autonav-pause-debug-state"))&&
F.length&&(h.autonav_pause_state=F[0]);F=_.eU();h.browser_resolution=F.width+"\u00d7"+F.height+"@"+(window.devicePixelRatio||1)+"x";E&&_.xd.extend(h,E);return h};
Gqu.prototype.resetProductData=function(){this.productData={}};var SrX=function(F){this.feedbackManager=new Gqu(F)};
SrX.prototype.showFeedbackDialog=function(F,W,E,h){return this.feedbackManager.showFeedbackDialog(F,W,E,h)};
SrX.prototype.showHelpDialog=function(F,W,E){return this.feedbackManager.showHelpDialog(F,W,E)};var p_c=function(){this.baseUrl="";this.aTag=document.createElement("a")},$bO=function(F,W,E){E=E===void 0?{}:E;
E.pbj||(E.pbj=1);E=_.PHo(W,E);F.baseUrl&&E&&!_.u0(E)[1]&&!_.Su(E)&&(W=F.baseUrl,ek(W,"/")&&(W=W.slice(0,-1)),_.Vo(E,"/")&&(E=E.slice(1)),E=W+"/"+E);Lu(F.aTag,Bp(E||""));return F.aTag.href};
p_c.prototype.fetchData=function(F){return _.msG(F)};
p_c.prototype.postData=function(F,W){var E={method:"POST"};if(W){for(var h=_.U(Object.keys(W)),d=h.next();!d.done;d=h.next()){d=d.value;var V=W[d];_.NU(V)&&(W[d]=JSON.stringify(V))}E.postParams=W}return _.msG(F,E)};
_.Z_i=function(F,W,E,h,d){F=$bO(F,W,E);if(!F)throw h=Error("di"),Object.assign(h,{params:W}),h;return _.msG(F,d,h)};
p_c.prototype.requestDataForServiceEndpoint=function(F,W){if(_.D(F,_.q4I))return this.fetchData("/getAccountSwitcherEndpoint");W=W||{};var E=_.D(F,c7c);E?W.se=E.base64EncodedServiceEndpoint:W.sej=JSON.stringify(F);(E=_.JR())&&_.c("enable_service_ajax_csn")&&(W.csn=E);W.theme=_.Oh();_.D(F,sQr)&&_.b0("DELEGATION_CONTEXT")&&(W.delegation_context=JSON.stringify(_.b0("DELEGATION_CONTEXT")));E=null;for(var h in F)if(ek(h,"Endpoint")||ek(h,"Command")){E=h;break}if(!E){var d=Error("ei");Object.assign(d,{params:F});
_.ZKG(d,"WARNING");return new _.z5(function(R,M){M(d)})}h={name:E};
var V;(E=(V=_.D(F,_.Q7))==null?void 0:V.signal)&&(h.signal=E);(V=_.Gk(window.location.href))&&V.internalcountrycode&&(h.internalcountrycode=V.internalcountrycode);V="/service_ajax";_.c("debug_forward_web_query_parameters")&&(V=_.iXY(V,window.location.search));V=_.wo(V,h);F.clickTrackingParams&&_.Sr(V,{itct:F.clickTrackingParams});return this.postData(V,W)};_.mPB=new _.NG("GFEEDBACK_TOKEN");var KLO;var FPO;var WPi;var EIe;var uR=function(){var F=_.n.apply(this,arguments)||this;F.compact=!1;return F};
_.k(uR,_.n);uR.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
uR.prototype.computeHasIcon_=function(F){return!!F};
uR.prototype.isSignInIcon_=function(F){return F=="yt-icons:prompted_sign_in"};
_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],uR.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],uR.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.iwX.YtConditionalRendererBehavior),_.Y("design:type",Object)],uR.prototype,"ytConditionalRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],uR.prototype,"data",void 0);
_.T([_.O({computed:"computeIcon_(data.icon)"}),_.Y("design:type",Object)],uR.prototype,"icon_",void 0);_.T([_.O({reflectToAttribute:!0,computed:"computeHasIcon_(icon_)"}),_.Y("design:type",Boolean)],uR.prototype,"hasIcon_",void 0);_.T([_.O({reflectToAttribute:!0,computed:"isSignInIcon_(icon_)"}),_.Y("design:type",Boolean)],uR.prototype,"signInIcon_",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],uR.prototype,"compact",void 0);
uR=_.T([_.$3({is:"yt-player-error-message-renderer",disableElementRegistration:!0})],uR);
_.r(uR,"yt-player-error-message-renderer",function(){if(EIe===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-player-error-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.player.yt_player_error_message_renderer.yt.player.error.message.renderer.css.js--\x3e<div id="player-error-message-container" hidden="[[showSpinner]]" class="style-scope yt-player-error-message-renderer">\n  <yt-icon id="icon" hidden="[[!icon_]]" icon="[[icon_]]" class="style-scope yt-player-error-message-renderer"></yt-icon>\n  <div id="info" class="style-scope yt-player-error-message-renderer">\n    <div id="reason" class="style-scope yt-player-error-message-renderer">[[getSimpleString(data.reason)]]</div>\n    <yt-formatted-string id="subreason" is-overlay="" text="[[data.subreason]]" class="style-scope yt-player-error-message-renderer"></yt-formatted-string>\n    <yt-formatted-string id="more" is-overlay="" text="[[data.learnMore]]" class="style-scope yt-player-error-message-renderer"></yt-formatted-string>\n    <div id="buttons" class="style-scope yt-player-error-message-renderer">\n      <div id="dismiss-button" class="style-scope yt-player-error-message-renderer"></div>\n      <div id="button" class="style-scope yt-player-error-message-renderer"></div>\n    </div>\n  </div>\n</div>\n<div id="spinner" hidden="[[!showSpinner]]" class="style-scope yt-player-error-message-renderer">\n  <tp-yt-paper-spinner-lite active="" class="style-scope yt-player-error-message-renderer"></tp-yt-paper-spinner-lite>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;WPi===void 0&&(WPi=document.createElement("template"));var h=WPi;E.call(W,h.content.cloneNode(!0),F.content.firstChild);EIe=F}F=EIe;return F},{mode:2});var hcz;var dmp;var SE=function(){return _.n.apply(this,arguments)||this};
_.k(SE,_.n);SE.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
SE.prototype.computeIcon_=function(F){return F?"yt-icons:"+F.iconType.toLowerCase():"error_outline"};
_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],SE.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],SE.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],SE.prototype,"data",void 0);_.T([_.O({computed:"computeIcon_(data.icon)"}),_.Y("design:type",Object)],SE.prototype,"icon_",void 0);SE=_.T([_.$3({is:"yt-player-kav-renderer",disableElementRegistration:!0})],SE);
_.r(SE,"yt-player-kav-renderer",function(){if(dmp===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-player-kav-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.player.yt_player_kav_renderer.yt.player.kav.renderer.css.js--\x3e<yt-icon icon="[[icon_]]" class="style-scope yt-player-kav-renderer"></yt-icon>\n<div id="info" class="style-scope yt-player-kav-renderer">\n  <div class="reason style-scope yt-player-kav-renderer">[[getSimpleString(data.reason)]]</div>\n  <div class="subreason style-scope yt-player-kav-renderer">[[getSimpleString(data.subreason)]]</div>\n  <yt-formatted-string class="more style-scope yt-player-kav-renderer" text="[[data.learnMore]]"></yt-formatted-string>\n  <div id="button" class="style-scope yt-player-kav-renderer"></div>\n</div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);var W=F.content,E=W.insertBefore;hcz===void 0&&(hcz=document.createElement("template"));var h=hcz;E.call(W,h.content.cloneNode(!0),F.content.firstChild);dmp=F}F=dmp;return F},{mode:2});_.pK(_.GK(function(F){var W=_.uf(),E=_.U(_.g$(0,void 0,"gCmSbf")),h=E.next().value,d=E.next().value;E=_.U(_.g$(null,void 0,"Rj9zMe"));var V=E.next().value,R=E.next().value;_.Xk(function(){eqS(W.value,d,R);W.value.scrollIntoView()});
E=MDo.bind(null,F.data,h);FV("resize",function(){var M=V();if(h()===1&&M!==null){var g;(g=window.grecaptcha)==null||g.reset(M)}});
return _.z("yt-player-captcha-view-model",{class:"ytwPlayerCaptchaViewModelHost"},_.z("div",{class:"ytwPlayerCaptchaViewModelGridContainer"},_.z("span",{class:"ytwPlayerCaptchaViewModelScreenReaderOnly"},function(){var M,g;return(M=F.data().accessibility)==null?void 0:(g=M.accessibilityData)==null?void 0:g.label}),_.z(_.Ab,{text:E,
className:_.ec("ytwPlayerCaptchaViewModelUserMessage","ytwPlayerCaptchaViewModelGridItem"),isOverlay:!0}),_.z("div",{el:W,class:"ytwPlayerCaptchaViewModelGridItem"})))},"be"),"yt-player-captcha-view-model",{props:{data:_.Si}});var gMo=!1;_.N6e=_.GK(function(F){var W=F.data;return _.z("yt-interstitial-view-model",{class:"interstitial-view-model-wiz"},_.z(_.v,{cond:function(){return W().icon},
then:function(E){return _.z("div",{class:"interstitial-view-model-wiz__interstitial-icon interstitial-view-model-wiz__flex-item"},_.z(_.T4,{data:E,alt:"",className:"interstitial-view-model-wiz__icon-image",preserveWidth:!0}))}}),_.z(_.v,{cond:function(){return W().title},
then:function(E){return _.z("div",{class:"interstitial-view-model-wiz__interstitial-title interstitial-view-model-wiz__flex-item"},_.z(_.Ab,{text:E}))}}),_.z(_.v,{cond:function(){return W().description},
then:function(E){return _.z("div",{class:"interstitial-view-model-wiz__interstitial-description interstitial-view-model-wiz__flex-item"},_.z(_.Ab,{text:E}))}}),_.z(_.a6,{data:function(){return W().primaryButton}},{buttonViewModel:function(E){return _.z(_.rk,{data:E.data,
className:"interstitial-view-model-wiz__flex-item"})}}),_.z(_.a6,{data:function(){return W().secondaryButton}},{buttonViewModel:function(E){return _.z(_.rk,{data:E.data,
className:"interstitial-view-model-wiz__flex-item"})}}))},"ce");
_.N6e.idomCompat=!0;var VOc=_.GK(function(F){var W=F.data;_.hU();return _.z("yt-player-interstitial-renderer",{class:"player-interstitial-renderer-wiz"},_.z("div",{class:"player-interstitial-renderer-wiz__scrim"},_.z(_.a6,{data:function(){return W().content}},{interstitialViewModel:_.N6e})))},"de");
VOc.idomCompat=!0;_.pK(VOc,"yt-player-interstitial-renderer",{props:{data:_.TS}});var p_=function(){var F=_.n.apply(this,arguments)||this;F.noBackground=!1;F.compact=!1;F.actionMap={"yt-update-player-error-message-command":"onUpdatePlayerErrorMessageCommand_"};return F};
_.k(p_,_.n);p_.prototype.configureRendererStamper=function(){return{data:{id:"container",mapping:{playerErrorMessageRenderer:{component:"yt-player-error-message-renderer",properties:{compact:"[[compact]]"}},playerCaptchaViewModel:"yt-player-captcha-view-model",playerInterstitialRenderer:"yt-player-interstitial-renderer",playerKavRenderer:"yt-player-kav-renderer",enforcementMessageViewModel:"ytd-enforcement-message-view-model"}}}};
p_.prototype.onUpdatePlayerErrorMessageCommand_=function(F){if(_.D(F,HBe)){var W;if(F=(W=_.D(F,HBe))==null?void 0:W.newPlayerErrorMessageRenderer)this.data=F}};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],p_.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],p_.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],p_.prototype,"ytActionHandlerBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],p_.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Object)],p_.prototype,"status",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],p_.prototype,"noBackground",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],p_.prototype,"compact",void 0);p_=_.T([_.$3({is:"yt-playability-error-supported-renderers",disableElementRegistration:!0})],p_);
var Um_=_.We()(p_,"yt-playability-error-supported-renderers",function(){if(FPO===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-playability-error-supported-renderers--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.player.yt_playability_error_supported_renderers.yt.playability.error.supported.renderers.css.js--\x3e<div id="container" class="style-scope yt-playability-error-supported-renderers"></div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;KLO===void 0&&(KLO=document.createElement("template"));var h=KLO;E.call(W,h.content.cloneNode(!0),F.content.firstChild);FPO=F}F=FPO;return F},{allowedProps:["compact",
"data","noBackground","status"],mode:2});var QbY=void 0,tDr=void 0;var vMY=new HCB;var v6=new _.NG("ENTITY_STATE_TOKEN"),mU=new _.NG("PERSISTENT_ENTITY_STORE_ACCESSOR_TOKEN");var Rca=function(F){this.store=F;this.uki=new _.ayO},k7I=function(F,W,E){var h,d;
if(!(d=((h=W.playabilityStatus)==null?void 0:h.status)!=="OK")){F=F.store;var V;d=W.offlineState&&((V=W.videoDetails)==null?0:V.videoId)?_.c("enable_pl_r_c_cd")?ddY(F.getState().entities,W.videoDetails.videoId):!!RLb(F.getState().entities,W.videoDetails.videoId):!1}if(d)return!0;d=kgR(W);if(d===1){if(_.c("ab_v_vid_sig")){var R,M=(R=W.videoDetails)==null?void 0:R.videoId;if(!M||!E||M!==E){var g;W=new _.xC("282054944_vid",{edj:E,rmP:(g=W.videoDetails)==null?void 0:g.videoId});_.a_(W)}}return!0}ylr=
0;var t,C;g=(M=W.auxiliaryUi)==null?void 0:(t=M.messageRenderers)==null?void 0:(C=t.bkaEnforcementMessageViewModel)==null?void 0:C.displayType;if(d!==3&&(g==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"||g==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_POPUP"))return!0;g={reason:_.Wz(_.CY("TRY_AGAIN_LATER",void 0,"Something went wrong. Please try again later.")),proceedButton:{buttonRenderer:_.c("ks_something_wrong_learn_more")?awY("RELOAD_PAGE",153785):{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",
text:_.Wz(_.CY("LEARN_MORE",void 0,"Learn more")),navigationEndpoint:{commandMetadata:{webCommandMetadata:{url:"//support.google.com/youtube/?p=player_error1#zippy=%2Cupdate-your-browser",webPageType:"WEB_PAGE_TYPE_UNKNOWN"}},urlEndpoint:{url:"//support.google.com/youtube/?p=player_error1#zippy=%2Cupdate-your-browser"}}}},subreason:_.Wz("282054944")};ecM(W,{playerErrorMessageRenderer:g});return!1},AZG=function(F,W){if(EgR(W)){_.zB(1,!0);
var E=(E=EgR(W))&&_.zqY()?E:void 0;E?(ecM(W,{enforcementMessageViewModel:E}),F.uki.increment("IN_PLAYER"),_.zB(5)):(F.uki.increment("SKIP_DISPLAY"),_.zB(2))}},ecM=function(F,W){F.playabilityStatus=Object.assign({},F.playabilityStatus,{status:"ERROR",
errorScreen:W});F.videoDetails=void 0};
Rca.prototype.handleResponse=function(F,W){if(F.playabilityStatus){var E,h,d,V=(W==null?void 0:(E=W.innerTubeRequest)==null?void 0:E.videoId)||(W==null?void 0:(h=W.innerTubeRequest)==null?void 0:(d=h.playerRequest)==null?void 0:d.videoId);k7I(this,F,V)&&AZG(this,F)}};
Rca[dr]=[v6];var DKo=new _.NG("ADBLOCK_DETECTION_SERVICE_TOKEN");var UZ=function(F){this.z9g=F};
UZ.prototype.bindInnertubeChallengeFetcher=function(F){this.z9g.bicf(F)};
UZ.prototype.registerChallengeFetchedCallback=function(F){this.z9g.bcr(F)};
UZ.prototype.getLatestChallengeResponse=function(){return this.z9g.blc()};var zcu;_.K_=function(F,W,E){var h=this;this.network=F;this.options=W;this.networkStatusManager=E;this.i6=null;if(W.useBotguardEverywhere){var d=new _.eR;this.i6=d.promise;_.EY.ytAtRC&&_.qY(_.P0,function(){var V,R;return _.e(function(M){if(M.nextAddress==1){if(!_.EY.ytAtRC)return M.return();V=MOU(null);return _.Q(M,h.hA(V),2)}R=M.yieldResult;_.EY.ytAtRC&&_.EY.ytAtRC(JSON.stringify(R));_.gG(M)})});
$kR().then(function(V){var R,M,g,t;return _.e(function(C){if(C.nextAddress==1)return V.bindInnertubeChallengeFetcher(function(B){return h.hA(MOU(B))}),_.Q(C,Xbe(),2);
R=C.yieldResult;M=V.getLatestChallengeResponse();g=M.challenge;if(!g)throw Error("fi");t={challenge:g,wE:VT(g),ev:R,bgChallenge:new dX};d.resolve(t);V.registerChallengeFetchedCallback(function(B){B=B.challenge;if(!B)throw Error("gi");B={challenge:B,wE:VT(B),ev:R,bgChallenge:new dX};h.i6=Promise.resolve(B)});
_.gG(C)})})}else W.preload&&gIB(this,new Promise(function(V){_.sB(_.P0,function(){V(QgU(h))},0)}))};
zcu=function(F){var W={preload:!0,useBotguardEverywhere:_.c("attmusi")},E=!1;if(typeof W==="boolean")var h={preload:W};else typeof W==="undefined"?h={preload:!0}:(h=W,E=!!W.hGJ);W=E?void 0:new _.TX;_.K_.instance=new _.K_(F,h,W);return _.K_.instance};
_.K_.prototype.vtH=function(){var F=this;return _.e(function(W){return W.nextAddress==1?_.Q(W,Promise.race([F.i6,null]),2):W.return(!!W.yieldResult)})};
_.K_.prototype.xQu=function(F,W,E){var h=this,d,V,R;return _.e(function(M){h.i6===null&&gIB(h,QgU(h));d=!1;V={};R=function(){var g,t,C;return _.e(function(B){switch(B.nextAddress){case 1:return _.Q(B,h.i6,2);case 2:g=B.yieldResult;V.challenge=g.challenge;if(!g.ev){"c1a"in g.wE&&(V.error="ATTESTATION_ERROR_VM_NOT_INITIALIZED");B.jumpTo(3);break}t=Object.assign({},{c:g.challenge,e:F},W);_.Nl(B,4);d=!0;if(_.c("attbs")&&!_.c("attmusi")){C=_.POT(g.ev,{sY:t});B.jumpTo(6);break}return _.Q(B,g.ev.snapshot({sY:t}),
7);case 7:C=B.yieldResult;case 6:C?V.webResponse=C:V.error="ATTESTATION_ERROR_VM_NO_RESPONSE";_.id(B,3);break;case 4:_.Ml(B),V.error="ATTESTATION_ERROR_VM_INTERNAL_ERROR";case 3:if(F==="ENGAGEMENT_TYPE_PLAYBACK"){var I=g.wE,x={};if(I.c6a){var A=Number(_.b0("DCLKSTAT",0));x.reportingStatus=String(Number(I.c)^(isNaN(A)?0:A))}I.c6b&&(x.broadSpectrumDetectionResult=String(Number(I.c)^Number(_.b0("CATSTAT",0))));V.adblockReporting=x}return B.return(V)}})};
return M.return(Promise.race([R(),tOO(E,function(){var g=Object.assign({},V);d&&(g.error="ATTESTATION_ERROR_VM_TIMEOUT");return g})]))})};
var MOU=function(F){var W={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};F&&(W.interpreterHash=F);return W},QgU=function(F,W){W=W===void 0?0:W;
var E,h,d,V,R,M,g,t,C,B,I,x;return _.e(function(A){switch(A.nextAddress){case 1:E=MOU(aVu().fzK);if(_.c("att_fet_ks"))return _.Nl(A,7),_.Q(A,F.hA(E),9);_.Nl(A,4);return _.Q(A,CSM(F,E),6);case 6:R=A.yieldResult;d=R.zDt;V=R.iw7;h=R;_.id(A,3);break;case 4:return _.Ml(A),_.OB(Error("hi`"+W)),B6p(F,864E5),A.return({challenge:"",wE:{},ev:void 0,bgChallenge:void 0});case 9:h=A.yieldResult;if(!h)throw Error("ii");if(!h.challenge)throw Error("ji");d=h.challenge;V=VT(d);if("c1a"in V&&(!h.bgChallenge||!h.bgChallenge.program))throw Error("ki");
_.id(A,3);break;case 7:M=_.Ml(A);_.OB(M);W++;if(W>=5)return _.OB(Error("hi`"+W)),B6p(F,864E5),A.return({challenge:"",wE:{},ev:void 0,bgChallenge:void 0});g=1E3*Math.pow(2,W-1)+Math.random()*1E3;return A.return(new Promise(function(X){_.sB(_.P0,function(){X(QgU(F,W))},g)}));
case 3:t=qAb(V);B6p(F,t*1E3);C=void 0;if(!("c1a"in V&&h.bgChallenge)){A.jumpTo(10);break}B=LDG(h.bgChallenge);_.Nl(A,11);return _.Q(A,OLT(aVu(),B),13);case 13:_.id(A,12);break;case 11:return I=_.Ml(A),_.OB(I),A.return({challenge:d,wE:V,ev:C,bgChallenge:B});case 12:return _.Nl(A,14),C=new _.nP({challenge:B,vc:{vM:"aGIf"}}),_.Q(A,C.yrg,16);case 16:_.id(A,10);break;case 14:x=_.Ml(A),_.OB(x),C=void 0;case 10:return A.return({challenge:d,wE:V,ev:C,bgChallenge:B})}})};
_.K_.prototype.hA=function(F){var W=this,E;return _.e(function(h){E=W.networkStatusManager;if(!E||E.isNetworkAvailable())return h.return(W.network.hA(F));_.aj("att_pna",void 0,"attestation_challenge_fetch");return h.return(new Promise(function(d){E.listenOnce("publicytnetworkstatus-online",function(){W.network.hA(F).then(d)})}))})};
var vIz=function(F){if(!F)throw Error("ii");if(!F.challenge)throw Error("ji");var W=F.challenge,E=VT(W);if("c1a"in E&&(!F.bgChallenge||!F.bgChallenge.program))throw Error("ki");return Object.assign({},F,{zDt:W,iw7:E})},CSM=function(F,W){var E,h,d,V,R;
return _.e(function(M){switch(M.nextAddress){case 1:E=void 0,h=0,d={};case 2:if(!(h<5)){M.jumpTo(4);break}if(!(h>0)){M.jumpTo(5);break}d.wNp=1E3*Math.pow(2,h-1)+Math.random()*1E3;return _.Q(M,new Promise(function(g){return function(t){_.sB(_.P0,function(){t(void 0)},g.wNp)}}(d)),5);
case 5:return _.Nl(M,7),_.Q(M,F.hA(W),9);case 9:return V=M.yieldResult,M.return(vIz(V));case 7:E=R=_.Ml(M),R instanceof Error&&_.OB(R);case 8:h++;d={wNp:void 0};M.jumpTo(2);break;case 4:throw E;}})},gIB=function(F,W){F.i6=W},Ivp=function(F){var W,E,h;
return _.e(function(d){if(d.nextAddress==1)return _.Q(d,Promise.race([F.i6,null]),2);W=d.yieldResult;var V=QgU(F);F.i6=V;(E=W)==null||(h=E.ev)==null||h.dispose();_.gG(d)})},B6p=function(F,W){var E=Date.now()+W,h=function(){var d;
return _.e(function(V){d=E-Date.now();return d<1E3?_.Q(V,Ivp(F),0):(_.sB(_.P0,h,Math.min(d,6E4)),V.jumpTo(0))})};
h()},tOO=function(F,W){return new Promise(function(E){_.sB(_.P0,function(){E(W())},F)})};var c_O=function(){};
c_O.prototype.processContext=function(F){var W=_.K_.instance;if(!W)return _.St();var E=JxR(F);return E?new uE(W.xQu(E,HFG(F),500).then(function(h){var d;(F==null?0:(d=F.innerTubeRequest)==null?0:d.context)||(F.innerTubeRequest.context={});d=F.innerTubeRequest.context;d.request||(d.request={});d.request.attestationResponseData=h})):_.St()};var Dmi=function(F){this.innertubeTransportService=F};
Dmi.prototype.hA=function(F){_.aj("att_fsr",void 0,"attestation_challenge_fetch");return _.no(this.innertubeTransportService,F,_.SF(_.qkc)).then(function(W){_.aj("att_frr",void 0,"attestation_challenge_fetch");return W})};_.xmB=function(F){this.innertubeTransportService=F};var kLi=new _.NG("ATTESTATION_ASYNC_CONTEXT_PROCESSOR");var A_c=function(){},LPO=function(F,W,E,h,d){var V=_.b0("YPC_MB_URL");
_.Q5I(V).then(function(){sge(V,F,W,E,h,d)})},sge=function(F,W,E,h,d,V){try{var R=payments.business.integration,M=payments.business.integration.Style.create().withMaterialDesignStyle(),g=R.mashupMode.popup("purchaseManagerDivId").usingDraggableDialog().usingPreferredWidth(600);
_.c("enable_window_constrained_buy_flow_dialog")&&(g=g.usingPopupStyle("windowConstrained"));V&&(g=g.usingCloseCallback(V));var t=E?E:_.b0("YPC_GB_LANGUAGE"),C=_.b0("SESSION_INDEX");R.bootstrap.fromPaymentsUrl(F);R.bootstrap.asMashupMode(g).usingGaiaIndex(C).usingLocale(t).usingStyle(M).usingDefaultActivityStatusChangeHandler().inStandaloneContext(R.standaloneContextAuthId.forGaia()).purchaseManager(W,function(B){h&&h(B)}).load(void 0,d)}catch(B){throw d&&d(B),_.a_(B),B;
}};var qMu=new _.NG("PURCHASE_MANAGER_TOKEN");var $m_=function(){var F=this;this.videos=[];this.recommendedVideos=[];this.showRefreshPill=this.continuationsPresent=!1;this.clientHeight=window.innerHeight;this.TEST_ONLY={getVideos:function(){return F.videos},
getContinuationsPresent:function(){return F.continuationsPresent},
setVideos:function(W){F.videos=W},
getRecommendedVideos:function(){return F.recommendedVideos},
setRecommendedVideos:function(W){F.recommendedVideos=W}}};
$m_.prototype.addVideos=function(F){F&&(this.videos=F.filter(function(W){return!!_.flo(W)}).map(function(W){var E=_.flo(W);
a:{var h;if(W.playlistVideoRenderer&&((h=W.playlistVideoRenderer)==null?0:h.voteSortTiebreaker))var d=W.playlistVideoRenderer.voteSortTiebreaker;else{if(_.D(W,eX)){var V;if(h=(d=_.D(W,eX))==null?void 0:(V=d.playlistItemData)==null?void 0:V.voteSortTiebreaker){d=h;break a}}d=""}}return{itemId:E,videoId:_.llI(W),voteCount:_.nMY(W),voteSortTiebreaker:d}}),this.continuationsPresent=!!_.D(F[F.length-1],_.QT))};
var ZqX=function(F,W){return F.videos.findIndex(function(E){return E.itemId===W})},Xgp=function(F,W){return F.recommendedVideos.findIndex(function(E){return E.itemId===W})},Hqp=function(F){F={openPopupAction:{popupType:"TOAST",
popup:{notificationActionRenderer:{responseText:{simpleText:F}}}}};_.WZ().resolve(_.EJ).resolveCommand(F)};var PSB=function(){$m_.apply(this,arguments)};
_.k(PSB,$m_);
var IlM=function(F,W,E,h){if(!F.parentElem)throw Error("pi");var d=ZqX(F,W);d===-1&&(d=Xgp(F,W),d=d!==-1?d+F.videos.length:-1);if(d===-1)throw Error("qi");var V=d>=F.videos.length?F.recommendedVideos[d-F.videos.length]:F.videos[d];V.voteCount=E;V.voteSortTiebreaker=Date.now().toString();d>=F.videos.length?F.recommendedVideos.splice(d-F.videos.length,1):F.videos.splice(d,1);var R=F.videos;for(var M=0,g=R.length-1;M<=g;){var t=Math.floor((M+g)/2);if(R[t].voteCount<V.voteCount)g=t-1;else if(R[t].voteCount>V.voteCount)M=
t+1;else{a:{var C=V.voteSortTiebreaker;var B=R[t].voteSortTiebreaker;if(C.length!==B.length)C=C.length>B.length;else{for(var I=0;I<C.length;I++){var x=C.charCodeAt(I),A=B.charCodeAt(I);if(x>A){C=!0;break a}if(x<A)break}C=!1}}C?g=t-1:M=t+1}}R=M;if(R===-1)throw Error("ri");F.videos.splice(R,0,V);d!==R&&J_B(F,d,R,W,E,h)},J_B=function(F,W,E,h,d,V){var R,M=(R=F.parentElem)==null?void 0:R.children,g=Math.min(W,E),t=Math.max(W,E);
if(M)for(R=g;R<=t;R++)M[R].style.viewTransitionName="item-"+String(R);document.startViewTransition(function(){if(F.parentElem){var C=F.parentElem.children;if(!(!C||W<0||W>=C.length||E<0||E>=C.length)){var B=C[W];if(B){B.remove();F.showRefreshPill=E>=F.videos.length-1&&F.continuationsPresent;if(!F.showRefreshPill){C=C[E]||null;var I;(I=F.parentElem)==null||I.insertBefore(B,C)}_.hF(F.parentElem,"yt-update-video-data-voting-animation",{toIdx:E,itemId:h,newVoteCount:d,voteStatus:V,hideItem:F.showRefreshPill})}}}}).finished.then(function(){if(M)for(var C=
g;C<=t;C++)M[C].style.viewTransitionName="";
if(F.showRefreshPill)Hqp(_.CY("VOTING_ANIMATION_CONTINUATION_TOAST_MESSAGE"));else{var B;if(B=C=(B=F.parentElem)==null?void 0:B.children[E])B=C.getBoundingClientRect(),C=B.bottom,B=!(B.top>=0&&C<=F.clientHeight);B&&(B=_.B5(W>E?"VOTING_ANIMATION_UP_TOAST_MESSAGE":"VOTING_ANIMATION_DOWN_TOAST_MESSAGE",Math.abs(W-E)),Hqp(B))}})};var Oq_=function(F,W){var E=this;F?this.innertubeTransportServicePromise=Promise.resolve(F):W&&(this.innertubeTransportServicePromise=W(),this.innertubeTransportServicePromise.catch(function(){}));
this.reportMiniAppValueRateLimiter=new bR(3E3,function(h){return avO(E,h)},0);
this.validateMiniAppVideoIdRateLimiter=new bR(3E3,function(h){return fva(E,h)},1)},BC_=function(F,W){F.JSC$14926_miniAppId=W;
F.reportMiniAppValueRateLimiter=new bR(3E3,function(E){return avO(F,E)},0);
F.validateMiniAppVideoIdRateLimiter=new bR(3E3,function(E){return fva(F,E)},1)},IYa=function(F,W){var E;
return _.e(function(h){if(h.nextAddress==1)return _.Q(h,F.reportMiniAppValueRateLimiter.call(W),2);E=h.yieldResult;return h.return([E,W])})},avO=function(F,W){var E,h,d,V,R,M,g;
return _.e(function(t){switch(t.nextAddress){case 1:return _.Q(t,F.innertubeTransportServicePromise,2);case 2:return E=t.yieldResult,h=_.SF(aWc),d=Date.now(),V={externalPostId:F.JSC$14926_miniAppId,userStatValue:{statKey:"high_score",timestamp:{seconds:""+Math.floor(d/1E3),nanos:Math.round(d%1E3*1E6)},intValue:""+W}},_.Nl(t,3),_.Q(t,_.no(E,V,h),5);case 5:R=t.yieldResult;_.id(t,4);break;case 3:throw M=_.Ml(t),M;case 4:if(R){if("error"in R&&R.error)throw R.error;if(R.errorMetadata)throw Error("si`"+
R.errorMetadata.status);if(g=R.userStatResult)return t.return(g);throw Error("ti");}throw Error("ui");}})},DP_=function(F){var W,E,h,d,V;
_.e(function(R){switch(R.nextAddress){case 1:return _.Q(R,F.innertubeTransportServicePromise,2);case 2:return W=R.yieldResult,E=_.SF(aWc),h={externalPostId:F.JSC$14926_miniAppId,userSettingsUpdate:{isAllowNetworkAcked:!0}},_.Nl(R,3),_.Q(R,_.no(W,h,E),5);case 5:d=R.yieldResult;_.id(R,4);break;case 3:throw V=_.Ml(R),V;case 4:if(d==null)throw Error("ui");if("error"in d&&d.error)throw d.error;if(d.errorMetadata)throw Error("si`"+d.errorMetadata.status);_.gG(R)}})};
Oq_.prototype.flush=function(){var F=this;return _.e(function(W){return W.nextAddress==1?_.Q(W,F.reportMiniAppValueRateLimiter.flush(),2):_.Q(W,F.validateMiniAppVideoIdRateLimiter.flush(),0)})};
var c2H=function(F,W){return _.e(function(E){return E.nextAddress==1?_.Q(E,F.validateMiniAppVideoIdRateLimiter.call(W),2):E.return(E.yieldResult)})},fva=function(F,W){var E,h,d,V,R,M;
return _.e(function(g){switch(g.nextAddress){case 1:return _.Q(g,F.innertubeTransportServicePromise,2);case 2:return E=g.yieldResult,h=_.SF(L2u),d={videoId:W},_.Nl(g,3),_.Q(g,_.no(E,d,h),5);case 5:V=g.yieldResult;_.id(g,4);break;case 3:throw R=_.Ml(g),R;case 4:if(V){if("error"in V&&V.error)throw V.error;if(V.errorMetadata)throw Error("si`"+V.errorMetadata.status);if(M=V.playabilityStatus)return g.return(M.status);throw Error("vi");}throw Error("ui");}})};
Oq_[dr]=[_.Fd(_.sh),_.Fd(h7B)];var bqH=function(){this.clientData=new Map};
bqH.prototype.getData=function(F){return this.clientData.get(F)};var lve=function(F){this.store=F};
lve.prototype.handleResponse=function(F){(F=_.D(F.frameworkUpdates,wY))&&_.CV(F,this.store)};
lve[dr]=[_.P2];var nIH=new _.NG("ENTITIES_RESPONSE_PROCESSOR_TOKEN");var y_c={account_advanced:[[0,1,155]],account_box:[[0,1,24],[1,1,24]],account_notifications:[[0,1,155]],account_playback:[[0,1,155]],account_privacy:[[0,1,155]],account_settings:[[0,1,155]],account_sharing:[[0,1,155]],admin_panel_settings:[[1,1,24]],ameba:[[0,1,60]],"arrow-back":[[1,1,24,!0]],"arrow-forward":[[1,1,24,!0]],arrow_drop_down:[[1,1,24]],arrow_drop_up:[[1,1,24]],artwork:[[0,1,140]],bebo:[[0,1,60]],blogger:[[0,1,60]],chrome_icon:[[0,1,192]],collections:[[0,1,24]],countdown_to_close:[[0,
1,100]],countdown_to_close_digit:[[0,1,100]],creation_post:[[0,1,24],[1,1,24]],creator_studio_red_logo:[[0,2,24]],cyworld:[[0,1,60]],dark_theme:[[0,1,24],[1,1,24]],digg:[[0,1,60]],email:[[0,1,60]],embed:[[0,1,60]],emoji_activities:[[0,1,24]],emoji_food:[[0,1,24]],emoji_nature:[[0,1,24]],emoji_symbols:[[0,1,24]],emoji_travel:[[0,1,24]],empty_search:[[0,1,230]],equalizer:[[0,1,24]],face_filled_happy:[[0,1,36]],face_filled_meh:[[0,1,36]],face_filled_sad:[[0,1,36]],face_filled_unhappy:[[0,1,36]],face_filled_very_happy:[[0,
1,36]],face_outlined_happy:[[1,1,36]],face_outlined_meh:[[1,1,36]],face_outlined_sad:[[1,1,36]],face_outlined_unhappy:[[1,1,36]],face_outlined_very_happy:[[1,1,36]],facebook:[[0,1,60]],fotka:[[0,1,60]],g_translate:[[1,1,24]],game_console_dpad:[[0,1,24]],game_console_face_buttons:[[0,1,24]],goo:[[0,1,60]],google:[[0,1,24]],hashtag_landing_page_empty:[[0,1,200]],hashtag_landing_page_empty_dark_mode:[[0,1,200]],hashtag_landing_page_error:[[0,1,300]],hashtag_landing_page_error_dark_mode:[[0,1,300]],hi5:[[0,
1,60]],kakao:[[0,1,60]],"keyboard-arrow-down":[[1,1,24]],"keyboard-arrow-up":[[1,1,24]],language:[[0,1,24],[1,1,24]],library_remove:[[1,1,24]],linkedin:[[0,1,60]],livejournal:[[0,1,60]],member:[[1,2,16]],meneame:[[0,1,60]],mixi:[[0,1,60]],moderator:[[1,1,16]],money_fill:[[0,3,24]],music:[[1,1,24]],myspace:[[0,1,60]],naver:[[0,1,60]],odnoklassniki:[[0,1,60]],offline_download:[[0,1,24]],offline_downloading_eighty:[[0,1,24]],offline_downloading_forty:[[0,1,24]],offline_downloading_sixty:[[0,1,24]],offline_downloading_spinner:[[0,
1,24]],offline_downloading_twenty:[[0,1,24]],offline_downloading_zero:[[0,1,24]],offline_no_content:[[0,1,192]],offline_pause:[[1,1,24]],offline_pin:[[0,1,24]],open_in_panel:[[0,1,24]],owner:[[1,1,16]],pinterest:[[0,1,60]],"play-arrow":[[0,1,24]],play_disabled:[[0,1,24]],premium:[[0,1,14]],premium_standalone:[[0,2,24]],premium_standalone_cairo:[[0,1,24]],"radio-button-unchecked":[[1,1,24]],rakuten:[[0,1,60]],reddit:[[0,2,192]],refresh:[[1,1,24]],schedule_fanzone:[[0,1,100]],screen_light:[[1,1,24]],
search_prominent:[[1,1,24]],"shorts-comment":[[0,2,32]],"shorts-dislike":[[0,2,32]],"shorts-like":[[0,2,32]],"shorts-pause":[[0,1,24]],"shorts-share":[[0,2,32]],skyblog:[[0,1,60]],skype:[[0,1,60]],sms:[[0,1,24]],sort:[[0,1,24]],spark:[[0,1,24],[1,1,24]],spark_search:[[0,1,24]],stumbleupon:[[0,1,60]],subdirectory_arrow_right:[[1,1,24]],tuenti:[[0,1,60]],tumblr:[[0,1,60]],twitter:[[0,3,192]],unplugged_logo:[[0,2,24]],verified:[[1,2,16]],vertical_align_top:[[1,1,24]],video_call:[[0,1,24]],view_list:[[0,
1,24]],view_module:[[0,1,24],[1,1,24]],vkontakte:[[0,1,60]],"volume-off":[[0,1,24]],"volume-up":[[0,1,24]],watermark:[[0,1,110]],waveform:[[1,1,24]],web_system_activity_dialog:[[0,1,60]],weibo:[[0,1,60]],whatsapp:[[0,1,60]],wykop:[[0,1,60]],yahoo:[[0,1,60]],yahoo_japan:[[0,1,192]],youtube_community_post:[[0,1,60]],youtube_community_repost:[[0,1,60]],youtube_kids_round:[[0,2,24]],youtube_logo:[[0,1,24]],youtube_music:[[0,2,24]],youtube_round:[[0,2,24]],youtube_shorts_brand_24:[[0,2,24]],youtube_shorts_fill_no_triangle_red_16:[[0,
1,16]],"yt-logo-red-updated":[[0,3,24]],"yt-logo-updated":[[0,3,24]]};var jgp=new _.NG("ICON_SET_TOKEN"),iqT=new _.NG("ICON_URL_PROVIDER_TOKEN"),r_M=new _.NG("PREFETCH_ICONS_TOKEN"),T6_=new _.NG("ICON_MAP_FN_TOKEN");var F9={},oI_=(F9.ACCESS_TIME="clock",F9.ACCOUNT_BOX="person_account",F9.ACCOUNT_BOX_CAIRO="person_account_cairo",F9.ACCOUNT_CIRCLE="person_circle",F9.ACCOUNT_CIRCLE_CAIRO="person_circle_cairo",F9.ACCOUNT_LINKED="account_link_success",F9.ACCOUNT_UNLINKED="account_link",F9.ADD_FRIEND="people",F9.ADD_TO_LIBRARY=gX("add"),F9.ADD_TO_PLAYLIST="add",F9.ADD_TO_QUEUE_TAIL="list_queue",F9.ADD_TO_REMOTE_QUEUE="list_music",F9.ADD_TO_WATCH_LATER="clock",F9.ADD_VIDEO_LINK="film_strip_add",F9.ALERT_WARN_RED="alert_triangle",
F9.ARROW_BACK="arrow_left",F9.ARROW_DIAGONAL_UP_RIGHT_FILLED="arrow_diagonal_up_right",F9.ARROW_DROP_DOWN="chevron_down",F9.ARROW_DROP_UP="chevron_up",F9.ARROW_FORWARD="arrow_right",F9.AUDIOTRACK="audio",F9.AUTO_AWESOME="sparkle",F9.AVATAR_ANONYMOUS="person_circle",F9.AVATAR_LOGGED_OUT="person_circle",F9.BACK="arrow_left",F9.BAR_CHART="bar_graph",F9.BLOCK="slash_circle_left",F9.BLOCK_USER="slash_circle_left",F9.BOOKMARK_BORDER="bookmark",F9.BREAKING_NEWS_ALT_1="article_alert",F9.BROADCAST_CAIRO="podcast_cairo",
F9.BUG_REPORT="bug",F9.CAMERA_ALT="camera",F9.CAMPAIGN="megaphone",F9.CANCEL="x_circle",F9.CAPTIONS="closed_caption",F9.CAST_OUTLINE="chromecast",F9.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",F9.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_on",F9.CHAT="message_bubble_left",F9.CHAT_BUBBLE="message_bubble_empty",F9.CHECK_BOX_OUTLINE_BLANK="box_empty",F9.CHECK_CIRCLE_OUTLINE="check_circle",F9.CHECK_CIRCLE_THICK="check_circle",F9.CLARIFY="article_clarify",F9.CLOSED_CAPTION_SELECTED="closed_caption",F9.CLOSE=
"x_mark",F9.CLOUD_UPLOAD="cloud_arrow_up",F9.COLLAPSE="chevron_up",F9.COLLAPSE_CAIRO="chevron_up_cairo",F9.COLLECTION="layers",F9.COLOR_LENS="palette",F9.COMMENT="message_bubble_right",F9.CONSENT_SHIELD="person_shield",F9.CONTENT_CUT="scissors",F9.CONTENT_CUT_CAIRO="scissors_cairo",F9.COURSE=_.c("web_enable_course_icon_update")?"creator_academy":"lightbulb",F9.COURSE_CAIRO=_.c("web_enable_course_icon_update")?"creator_academy_cairo":"lightbulb_cairo",F9.CREATION_LIVE="radar_live",F9.CREATION_UPLOAD=
"my_videos",F9.CREATION_UPLOAD_RED="upload",F9.CREATOR_STUDIO="youtube_studio",F9.DELETE="trash_can",F9.DELETE_SWEEP="trash_can",F9.DESKTOP="laptop",F9.DISLIKE="thumb_down",F9.DISLIKE_SELECTED="thumb_down",F9.DISMISSAL="x_mark",F9.DISMISS_QUEUE="list_remove",F9.DOWN_ARROW="arrow_down",F9.DO_NOT_DISTURB="slash_circle_left",F9.DRAFT="paper_corner_folded",F9.DRAG_HANDLE="bars_2",F9.EDIT="pencil",F9.EMOJI="face_very_happy",F9.EMOJI_FLAGS="flag",F9.EMOJI_OBJECTS="lightbulb",F9.EMOJI_PEOPLE="face_very_happy",
F9.EMOJI_RECENT="clock",F9.EMPTY_HEART="heart",F9.EMPTY_LIKE="thumb_up",F9.ERROR_BLACK="alert_circle",F9.ERROR_OUTLINE="alert_circle",F9.EXIT_APP="arrow_in",F9.EXIT_TO_APP="arrow_in",F9.EXPAND="chevron_down",F9.EXPAND_ALL="chevron_expand",F9.EXPAND_CAIRO="chevron_down_cairo",F9.EXPAND_LESS="chevron_up",F9.EXPAND_MORE="chevron_down",F9.EXPLORE="compass",F9.EXPLORE_DESTINATION="compass",F9.EXTERNAL_LINK="open_new",F9.FAB_UPLOAD="upload",F9.FACE_HAPPY_OUTLINE="face_happy",F9.FACT_CHECK="article_check",
F9.FASHION_LOGO="fashion",F9.FASHION_LOGO_CAIRO="fashion_cairo",F9.FAVORITE="heart",F9.FEEDBACK="message_bubble_alert",F9.FEEDBACK_CAIRO="message_bubble_alert_cairo",F9.FILL_ARROW_SOLID_DOWN_16="arrow_solid_down",F9.FILL_ARROW_SOLID_UP_16="arrow_solid_up",F9.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",F9.FLAG="flag",F9.FULL_HEART="heart",F9.GAME_CONSOLE_DPAD="game_console_dpad",F9.GAME_CONSOLE_FACE_BUTTONS="game_console_face_buttons",F9.GAMING_LOGO="gaming",F9.GAMING_LOGO_CAIRO="gaming_cairo",F9.GO_TO_PAGE=
"arrow_right",F9.GROUPS="people_group",F9.HAPPY="face_happy",F9.HEALTH_AND_SAFETY="shield_plus",F9.HELP="question_circle",F9.HELP_CAIRO="question_circle_cairo",F9.HELP_OUTLINE="question_circle",F9.HIDE="slash_circle_left",F9.IMAGE="image",F9.INFINITY_ICON="infinity",F9.INFO="info_circle",F9.INFO_OUTLINE="info_circle",F9.INSERT_CHART_OUTLINED="bar_graph_box_vertical",F9.INSERT_PHOTO="image",F9.KEEP="pin",F9.KEEP_OFF="pin_off",F9.KEYBOARD="keyboard",F9.KEYBOARD_ARROW_DOWN="chevron_down",F9.KEYBOARD_ARROW_UP=
"chevron_up",F9.KIDS_BLOCK="slash_circle_left",F9.LANGUAGE="globe",F9.LAUNCH="open_new",F9.LEARNING="lightbulb",F9.LEARNING_CAIRO="lightbulb_cairo",F9.LIBRARY_ADD=gX("library_add"),F9.LIBRARY_OUTLINE="library",F9.LIBRARY_REMOVE=gX(),F9.LIGHTBULB_SPARK_OUTLINE="lightbulb_spark",F9.LIKES_PLAYLIST="thumb_up",F9.LIKES_PLAYLIST_CAIRO="thumb_up_cairo",F9.LIKE="thumb_up",F9.LIKE_SELECTED="thumb_up",F9.LIVE="radar_live",F9.LIVE_CAIRO="radar_live_cairo",F9.LIVE_UNLISTED="link",F9.LOCATION_ON="location_point",
F9.LOCATION_PIN="location_point",F9.LOOP="arrow_repeat",F9.LOOP_ACTIVE="arrow_repeat",F9.LOOP_ONE="arrow_repeat_1",F9.LOOP_ONE_ACTIVE="arrow_repeat_1",F9.MEH="face_meh",F9.MEMBERS_ONLY_MODE_OFF="message_bubble_left",F9.MESSAGE="message_bubble_left",F9.MICROPHONE_ON="mic",F9.MIX="youtube_mix",F9.MONETIZATION_ON="dollar_sign_circle",F9.MONEY_FILL="dollar_sign_container",F9.MONEY_FILL_JPY="yen_sign_container",F9.MONEY_HEART="dollar_sign_heart",F9.MORE_HORIZ="overflow_horizontal",F9.MORE_VERT="overflow_vertical",
F9.MUSIC="audio",F9.MUSIC_CAIRO="audio_cairo",F9.MUSIC_NOTE_SYMBOL="music",F9.MUSIC_SHUFFLE="arrow_shuffle",F9.MY_CHANNEL="person_circle",F9.MY_LOCATION="location_point",F9.NEWS_STORY="news",F9.NEXT="chevron_right",F9.NOTIFICATIONS="bell",F9.NOTIFICATIONS_ACTIVE="bell_on",F9.NOTIFICATIONS_CAIRO="bell_cairo",F9.NOTIFICATIONS_DONE_CHECKMARK="check",F9.NOTIFICATIONS_INBOX="bell",F9.NOTIFICATIONS_NONE="bell",F9.NOTIFICATIONS_OFF="bell_off",F9.NOT_INTERESTED="slash_circle_left",F9.OFFICIAL_ARTIST_BADGE=
"audio",F9.OFFLINE_CLOUD="cloud_off",F9.OFFLINE_DOWNLOAD="download",F9.OFFLINE_DOWNLOAD_CAIRO="download_cairo",F9.OFFLINE_PAUSE="pause",F9.OPEN_IN_NEW="open_new",F9.OUTLINE_ADJUST="adjust",F9.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",F9.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",F9.OUTLINE_BAG="bag",F9.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_circle",F9.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",F9.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",F9.OUTLINE_YOUTUBE_IMPROVE_TV="youtube_improve_tv",
F9.PAID="dollar_sign",F9.PAUSE_OUTLINED="pause",F9.PAYMENT="credit_card",F9.PERSON_RADAR_FILLED="person_radar",F9.PHONE_DOWNLOAD="mobile_download",F9.PLAYABLES_LOGO="tic_tac_toe",F9.PLAYABLES_LOGO_CAIRO="tic_tac_toe_cairo",F9.PLAYLISTS="list_play_arrow",F9.PLAYLISTS_CAIRO="list_play_arrow_cairo",F9.PLAYLIST_ADD=gX("list_add"),F9.PLAYLIST_ADD_CHECK=gX("list_check"),F9.PLAY_ALL="play_arrow",F9.PLAY_CIRCLE="play_arrow_circle",F9.PLAY_OUTLINED="play_arrow_circle",F9.PRIVACY_INFO="shield",F9.PRIVACY_PRIVATE=
"lock",F9.PRIVACY_PUBLIC="earth",F9.PRIVACY_UNLISTED="link",F9.PROMOTE="megaphone",F9.PURCHASES="price_tag",F9.PURCHASE_SUPER_CHAT="super_chat",F9.PURCHASE_SUPER_STICKER="super_sticker",F9.QUESTION_ANSWER="message_bubble_question",F9.QUEUE_PLAY_LAST="list_queue_last",F9.QUEUE_PLAY_NEXT="list_play_arrow",F9.REMIX_FILLED="youtube_shorts_remix",F9.REMOVE="bar_circle",F9.REMOVE_CIRCLE="bar_circle",F9.REMOVE_CIRCLE_OUTLINE="bar_circle",F9.REMOVE_FROM_HISTORY="bar_circle",F9.REMOVE_FROM_PLAYLIST="bar_circle",
F9.REPLAY="arrow_circle",F9.REPORT_PROBLEM="alert_triangle",F9.SAD="face_sad",F9.SAVE_PLAYLIST=gX("library_add"),F9.SCHEDULE="clock",F9.SCHOOL="creator_academy",F9.SCREEN_FULLSCREEN="screen_full",F9.SEARCH_HISTORY="arrow_time",F9.SELL="price_tag",F9.SETTINGS="gear",F9.SETTINGS_CAIRO="gear_cairo",F9.SETTINGS_LIGHT="gear",F9.SETTINGS_MATERIAL="gear",F9.SHARE_ARROW="share",F9.SHIELD_WITH_AVATAR="person_shield",F9.SHOPPING_BAG="bag",F9.SHOPPING_BAG_CAIRO="bag_cairo",F9.SHOPPING_CART="cart",F9.SHORTS_COMMENT=
"youtube_shorts_message_bubble_right",F9.SHORTS_DISLIKE="youtube_shorts_thumb_down",F9.SHORTS_LIKE="youtube_shorts_thumb_up",F9.SHORTS_SHARE="youtube_shorts_share",F9.SHUFFLE="arrow_shuffle",F9.SLOW_MODE_OFF="message_bubble_left",F9.SOCIAL="people",F9.SORT="menu_sort",F9.SPARK_LIGHTBULB_OUTLINE="spark_lightbulb",F9.SPEED_1X="1x",F9.SPEED_1_POINT_2X="1_point_2x",F9.SPEED_1_POINT_5X="1_point_5x",F9.SPEED_1_POINT_8X="1_point_8x",F9.SPEED_2X="2x",F9.SPEED_POINT_2X="point_2x",F9.SPEED_POINT_8X="point_8x",
F9.SPONSORSHIP_STAR=_.c("web_sponsorship_star_icon_killswitch")?"memberships":"star_circle",F9.STAFF_PICK="spotlight",F9.START_DVR="add",F9.STAR_BORDER="star",F9.STAR_CIRCLE_RIBBON_OUTLINE="star_circle_ribbon",F9.STICKER_EMOTICON="face_happy",F9.STOP_DVR="stop",F9.SUBSCRIBE="youtube_logo_icon",F9.SUBSCRIBE_PLUS="add_cairo",F9.SUBSCRIPTION_MANAGER="gear",F9.SUPERVISOR_ACCOUNT="people",F9.SWAP_HORIZ="arrow_swap_horizontal",F9.SWITCH_ACCOUNTS="person_account",F9.TAB_ACCOUNT="person",F9.TAB_ACTIVITY=
"bell",F9.TAB_EXPLORE="compass",F9.TAB_HOME="home",F9.TAB_HOME_CAIRO="home_cairo",F9.TAB_INBOX="mail",F9.TAB_LIKED="thumb_up",F9.TAB_MUSIC_PREMIUM="youtube_music",F9.TAB_SHORTS="youtube_shorts",F9.TAB_SHORTS_CAIRO="youtube_shorts_cairo",F9.TAB_SUBSCRIPTIONS="subscriptions",F9.TAB_SUBSCRIPTIONS_CAIRO="subscriptions_cairo",F9.TAB_TRENDING="fire",F9.TIMER="stopwatch",F9.TRENDING="fire",F9.TRENDING_CAIRO="fire_cairo",F9.TRENDING_UP="rating_up",F9.TROPHY="trophy",F9.TROPHY_CELEBRATIONS="fireworks",F9.TUNE=
"adjust",F9.UNBLOCK_USER="bar_circle",F9.UNLIMITED="youtube_logo_icon",F9.UNPLUGGED_LIVE_GUIDE="radar_live",F9.UNPLUGGED_SPORTS="eye_off",F9.UPLOADS="library",F9.UP_ARROW="arrow_up",F9.VERTICAL_ALIGN_BOTTOM="download",F9.VERY_HAPPY="face_very_happy",F9.VERY_SAD="face_very_sad",F9.VIDEOS="play_arrow_circle",F9.VIDEO_CALL="video_camera_add",F9.VIDEO_LIBRARY_WHITE="library",F9.VIDEO_YOUTUBE="youtube_logo_icon",F9.VIEW_LIST="list_view",F9.VIEW_LIST_CAIRO="list_view_cairo",F9.VISIBILITY="eye",F9.VISIBILITY_OFF=
"eye_off",F9.VOLUME_MUTE="volume_off",F9.VOLUME_UP="volume_on",F9.WALLPAPER="image",F9.WARNING="alert_triangle",F9.WATCH_HISTORY="arrow_time",F9.WATCH_HISTORY_CAIRO="arrow_time_cairo",F9.WATCH_LATER="clock",F9.WATCH_LATER_CAIRO="clock_cairo",F9.WATCH_RELATED_MIX="youtube_mix",F9.WHAT_TO_WATCH="home",F9.YOUTUBE_MUSIC_MONOCHROME="youtube_music",F9.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music_cairo",F9.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="youtube_shorts_no_triangle",F9.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16=
"youtube_shorts_no_triangle",F9.YOUTUBE_SHORTS_OUTLINE_24="youtube_shorts",F9.YT_OUTLINE_MUSIC_24="music",F9);var W9={},GLT=(W9.ACCESS_TIME="clock",W9.ACCOUNT_BOX="person2_rectangle",W9.ACCOUNT_BOX_CAIRO="person_square_stack",W9.ACCOUNT_CIRCLE="person_circle",W9.ACCOUNT_CIRCLE_CAIRO="person_circle",W9.ACCOUNT_UNLINKED="account_link",W9.ADD_CIRCLE="add_circle",W9.ADD_FRIEND="person_child",W9.ADD_TO_LIBRARY="bookmark",W9.ADD_TO_PLAYLIST="add",W9.ADD_TO_QUEUE_TAIL="queue",W9.ADD_TO_REMOTE_QUEUE="playlist_audio",W9.ADD_TO_WATCH_LATER="clock",W9.ADD_VIDEO_LINK="film_strip_add",W9.ADMIN_PANEL_SETTINGS="gear",W9.ALERT_WARN_RED=
"alert_triangle",W9.ALIGN_LEFT="text_align_left",W9.ARROWS_ALERT="arrow_split_alert",W9.ARROW_BACK="arrow_left",W9.ARROW_CIRCLE="arrow_counterclockwise",W9.ARROW_CIRCLE_PLAY="replay",W9.ARROW_CIRCLE_RIGHT="arrow_clockwise",W9.ARROW_DIAGONAL="arrow_up_left",W9.ARROW_DIAGONAL_UP_RIGHT="arrow_up_right",W9.ARROW_DROP_DOWN="chevron_down",W9.ARROW_DROP_UP="chevron_up",W9.ARROW_FORWARD="arrow_right",W9.ARROW_PAUSE="pause_history",W9.ARROW_UNDO="undo",W9.ARTICLE="text_page",W9.ARTICLE_ALERT="text_page_alert",
W9.ARTICLE_CHECK="text_page_check",W9.ARTICLE_CLARIFY="text_page_info",W9.AUDIOTRACK="audio",W9.AUDIO_BADGE="audio_badge",W9.AUDIO_SURROUND="surround_sound",W9.AVATAR_ANONYMOUS="person_circle",W9.AVATAR_LOGGED_OUT="person_circle",W9.BACK="arrow_left",W9.BAR_CHART="chart_bar",W9.BAR_CIRCLE="minus_circle",W9.BAR_HORIZONTAL="minus",W9.BLOCK="circle_slash",W9.BLOCK_USER="circle_slash",W9.BOOKMARK_BORDER="bookmark",W9.BOX_OPEN_CHECK="quiz",W9.BOX_PENCIL="square_pencil",W9.BREAKING_NEWS_ALT_1="text_page_alert",
W9.BROADCAST="podcast",W9.BROADCAST_CAIRO="podcast",W9.BUG_REPORT="bug",W9.CAMERA_ALT="camera",W9.CAMPAIGN="megaphone",W9.CANCEL="x_circle",W9.CAPTIONS="closed_captions",W9.CAST_OUTLINE="chromecast",W9.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",W9.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_waves",W9.CHAT="text_bubble",W9.CHAT_BUBBLE="bubble",W9.CHECK_CIRCLE_OUTLINE="check_circle",W9.CHECK_CIRCLE_THICK="check_circle",W9.CHECK_DOUBLE="check_done",W9.CHECK_DOUBLE_OFF="check_done_slash",W9.CHEVRON_RIGHT_CAIRO=
"chevron_right",W9.CIRCLES_OVERLAP="account_link",W9.CLAPPERBOARD_CAIRO="clapperboard",W9.CLARIFY="text_page_info",W9.CLOCK_ARROWS="clock_split",W9.CLOCK_ARROWS_ALERT="clock_split_alert",W9.CLOSED_CAPTION="closed_captions",W9.CLOSED_CAPTION_SELECTED="closed_captions",W9.CLOSE="x",W9.CLOUD_UPLOAD="cloud_arrow_up",W9.COLLAPSE="chevron_up",W9.COLLAPSE_CAIRO="chevron_up",W9.COLLECTION="square3d_stack",W9.COLOR_LENS="paint_palette",W9.COMMENT="text_bubble",W9.CONSENT_SHIELD="person_shield",W9.CONTENT_CUT=
"scissors",W9.CONTENT_CUT_CAIRO="scissors",W9.COURSE="graduation_cap",W9.COURSE_CAIRO="graduation_cap",W9.CREATION_LIVE="live",W9.CREATION_POST="square_pencil",W9.CREATION_UPLOAD="video",W9.CREATION_UPLOAD_RED="upload",W9.CREATOR_ACADEMY="graduation_cap",W9.CREATOR_STUDIO="youtube_studio",W9.DARK_THEME="theme",W9.DELETE="trash_can",W9.DELETE_SWEEP="trash_can",W9.DESKTOP="laptop",W9.DISLIKE="thumb_down",W9.DISLIKE_SELECTED="thumb_down",W9.DISMISSAL="x",W9.DOGFOOD="pawprint",W9.DOLLAR_SIGN="dollar_sign_circle",
W9.DOLLAR_SIGN_CIRCLE="dollar_sign_circle",W9.DOLLAR_SIGN_CONTAINER="dollar_sign_rectangle",W9.DOWN_ARROW="arrow_down",W9.DO_NOT_DISTURB="circle_slash",W9.DRAFT="document",W9.EARTH="globe",W9.EDIT="pencil",W9.EMOJI="face_very_happy",W9.EMOJI_FLAGS="flag",W9.EMOJI_OBJECTS="lightbulb",W9.EMOJI_PEOPLE="face_very_happy",W9.EMOJI_RECENT="clock",W9.EMPTY_HEART="heart",W9.EMPTY_LIKE="thumb_up",W9.ERROR_BLACK="alert_circle",W9.ERROR_OUTLINE="alert_circle",W9.EXIT_APP="arrow_in",W9.EXIT_TO_APP="arrow_in",
W9.EXPAND="chevron_down",W9.EXPAND_ALL="chevron_expand",W9.EXPAND_CAIRO="chevron_down",W9.EXPAND_LESS="chevron_up",W9.EXPAND_MORE="chevron_down",W9.EXPLORE="compass",W9.EXPLORE_DESTINATION="compass",W9.EXTERNAL_LINK="arrow_up_right",W9.EYE_OFF="eye_slash",W9.FAB_UPLOAD="upload",W9.FACE_HAPPY_OUTLINE="face_happy",W9.FACE_MEH="face_neutral",W9.FACT_CHECK="text_page_check",W9.FASHION_LOGO="fashion",W9.FASHION_LOGO_CAIRO="fashion",W9.FEEDBACK="alert_bubble",W9.FEEDBACK_CAIRO="alert_bubble",W9.FILL_ARROW_SOLID_DOWN_16=
"arrow_solid_down",W9.FILL_ARROW_SOLID_UP_16="arrow_solid_up",W9.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",W9.FLAG_CAIRO="flag",W9.FLASH_OFF="flash_slash",W9.FLASH_ON="flash",W9.FULL_HEART="heart",W9.GAMING_LOGO="gaming",W9.GAMING_LOGO_CAIRO="gaming",W9.GO_TO_PAGE="arrow_right",W9.GROUPS="person3",W9.HAND_SWIPE_LEFT="gesture_swipe_left",W9.HAND_SWIPE_RIGHT="gesture_swipe_right",W9.HAPPY="face_happy",W9.HEALTH_AND_SAFETY="shield_health",W9.HEART_BOX="heart_cube",W9.HELP="help_circle",W9.HELP_CAIRO=
"help_circle",W9.HELP_OUTLINE="help_circle",W9.HIDE="circle_slash",W9.INCOGNITO_CAIRO="incognito",W9.INFINITY_ICON="infinity",W9.INFO="info_circle",W9.INFO_OUTLINE="info_circle",W9.INSERT_PHOTO="image",W9.KEEP="pin",W9.KEEP_OFF="pin_slash",W9.KEYBOARD="keyboard",W9.KEYBOARD_ARROW_DOWN="chevron_down",W9.KEYBOARD_ARROW_UP="chevron_up",W9.KIDS_BLOCK="circle_slash",W9.LANGUAGE="globe",W9.LAUNCH="arrow_up_right",W9.LEARNING="lightbulb",W9.LEARNING_CAIRO="lightbulb",W9.LIBRARY_ADD="bookmark",W9.LIBRARY_IMAGE=
"image_stack",W9.LIBRARY_MUSIC="audio_square_stack",W9.LIBRARY_OUTLINE="play_square_stack",W9.LIBRARY_REMOVE="bookmark",W9.LIKES_PLAYLIST="thumb_up",W9.LIKES_PLAYLIST_CAIRO="thumb_up",W9.LIKE="thumb_up",W9.LIKE_SELECTED="thumb_up",W9.LIST_QUEUE="queue",W9.LIVE_CAIRO="live",W9.LIVE_UNLISTED="link",W9.LOCATION_ON="location_pin",W9.LOCATION_PIN="location_pin",W9.LOCATION_POINT="location_pin",W9.LOOP="repeat",W9.LOOP_ACTIVE="repeat",W9.LOOP_ONE="repeat1",W9.LOOP_ONE_ACTIVE="repeat1",W9.MEET="google_meet",
W9.MEH="face_neutral",W9.MEMBERSHIPS="memberships",W9.MEMBERS_ONLY_MODE_OFF="text_bubble",W9.MENU_FILTER="filter",W9.MESSAGE="text_bubble",W9.MESSAGE_BUBBLE_GEAR="bubble_gear",W9.MESSAGE_BUBBLE_LEFT="text_bubble",W9.MESSAGE_BUBBLE_LEFT_BOOST="bubble_sparkles",W9.MESSAGE_BUBBLE_OVERLAP="bubble_stack",W9.MESSAGE_BUBBLE_QUESTION="help_bubble",W9.MICROPHONE_ON="mic",W9.MONETIZATION_ON="dollar_sign_circle",W9.MONEY_FILL="dollar_sign_rectangle",W9.MONEY_FILL_JPY="yen_sign_rectangle",W9.MONEY_HAND="dollar_sign_circle_hand",
W9.MONEY_HEART="dollar_sign_heart",W9.MOON_Z="sleep_timer",W9.MORE_HORIZ="overflow_horizontal",W9.MORE_VERT="overflow_vertical",W9.MUSIC="audio",W9.MUSIC_CAIRO="audio",W9.MUSIC_NOTE_SYMBOL="audio",W9.MUSIC_SCISSORS="audio_scissors",W9.MUSIC_SHUFFLE="shuffle",W9.MY_CHANNEL="person_circle",W9.MY_LOCATION="location_pin",W9.MY_VIDEOS="video",W9.MY_VIDEOS_CAIRO="video",W9.NEWS_CAIRO="news",W9.NEWS_STORY="news",W9.NEXT="chevron_right",W9.NOTE_ADD="bubble_pencil",W9.NOTIFICATIONS="bell",W9.NOTIFICATIONS_ACTIVE=
"bell_waves",W9.NOTIFICATIONS_CAIRO="bell",W9.NOTIFICATIONS_DONE_CHECKMARK="check",W9.NOTIFICATIONS_INBOX="bell",W9.NOTIFICATIONS_NONE="bell",W9.NOTIFICATIONS_OFF="bell_slash",W9.NOT_INTERESTED="circle_slash",W9.OFFICIAL_ARTIST_BADGE="audio",W9.OFFLINE_CLOUD="cloud_slash",W9.OFFLINE_DOWNLOAD="download",W9.OFFLINE_DOWNLOAD_CAIRO="download",W9.OFFLINE_PAUSE="pause",W9.OPEN_IN_NEW="arrow_up_right",W9.OUTLINE_ADJUST="adjust",W9.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",W9.OUTLINE_ARROW_SOLID_UP_16=
"arrow_solid_up",W9.OUTLINE_BAG="bag",W9.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_dashed",W9.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",W9.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",W9.OUTLINE_YOUTUBE_IMPROVE_TV="star_tv",W9.PAID="dollar_sign_circle",W9.PAUSE_OUTLINED="pause",W9.PAYMENT="credit_card",W9.PEOPLE="person_child",W9.PEOPLE_2="person2_rectangle",W9.PEOPLE_GROUP="person3",W9.PEOPLE_NOTE="bubble_asterisk",W9.PERSON_2="person2",W9.PERSON_ACCOUNT="person_square_stack",W9.PERSON_MINUS=
"person_x",W9.PERSON_MUSIC="person_audio",W9.PERSON_RADAR="person_waves",W9.PERSON_RADAR_FILLED="person_waves",W9.PERSON_SETTING="person_gear",W9.PHONE="phone",W9.PHONE_DOWNLOAD="mobile_arrow_down",W9.PICTURE_IN_PICTURE="picture_in_picture",W9.PLAYABLES_LOGO="playables",W9.PLAYABLES_LOGO_CAIRO="playables",W9.PLAYLISTS="playlist",W9.PLAYLISTS_CAIRO="playlist",W9.PLAYLIST_ADD="bookmark",W9.PLAYLIST_ADD_CHECK="bookmark",W9.PLAY_ALL="play",W9.PLAY_ARROW="play",W9.PLAY_ARROW_CIRCLE="play_circle",W9.PLAY_ARROW_HALF_CIRCLE=
"play_circle_half_dashed",W9.PLAY_CIRCLE="play_circle",W9.PLAY_OUTLINED="play_circle",W9.PODCAST_ADD="podcast_add",W9.PODCAST_CHECK="podcast_check",W9.PRIVACY_PRIVATE="lock",W9.PRIVACY_PUBLIC="globe",W9.PRIVACY_UNLISTED="link",W9.PROMOTE="megaphone",W9.PURCHASES="price_tag",W9.PURCHASE_SUPER_CHAT="super_chat",W9.PURCHASE_SUPER_STICKER="super_sticker",W9.QUESTION_ANSWER="help_bubble",W9.QUESTION_CIRCLE="help_circle",W9.QUEUE_PLAY_LAST="queue_last",W9.QUOTATION_MARK="quote",W9.RADAR_LIVE="live",W9.REMOVE=
"minus_circle",W9.REMOVE_CIRCLE="minus_circle",W9.REMOVE_CIRCLE_OUTLINE="minus_circle",W9.REMOVE_FROM_HISTORY="minus_circle",W9.REMOVE_FROM_PLAYLIST="minus_circle",W9.REPLAY="arrow_counterclockwise",W9.REPLAY_ARROW="replay",W9.REPORT_PROBLEM="alert_triangle",W9.RSS_OFF="rss_slash",W9.SAD="face_sad",W9.SAVE_PLAYLIST="bookmark",W9.SCHEDULE="clock",W9.SCHOOL="graduation_cap",W9.SCREEN_DEFAULT="player_default",W9.SCREEN_FULLSCREEN="player_full_enter",W9.SCREEN_LIGHT="ambient_mode",W9.SCREEN_SWITCH="player_switch",
W9.SEARCH_CAIRO="search",W9.SEARCH_HISTORY="history",W9.SELL="price_tag",W9.SETTINGS="gear",W9.SETTINGS_CAIRO="gear",W9.SETTINGS_LIGHT="gear",W9.SETTINGS_MATERIAL="gear",W9.SETTINGS_REMOTE="remote_waves",W9.SHARE="share",W9.SHARE_ARROW="share",W9.SHARE_CAIRO="share",W9.SHIELD="shield_x",W9.SHIELD_OFF="shield_slash",W9.SHIELD_WITH_AVATAR="person_shield",W9.SHOPPING_BAG="bag",W9.SHOPPING_BAG_CAIRO="bag",W9.SHOPPING_CART="cart",W9.SHORTS_COMMENT="text_bubble",W9.SHORTS_DISLIKE="thumb_down",W9.SHORTS_LIKE=
"thumb_up",W9.SHORTS_SHARE="share",W9.SLASH_CIRCLE_RIGHT="circle_slash",W9.SLOW_MODE_OFF="text_bubble",W9.SOCIAL="person_child",W9.SPARKLE="sparkles",W9.SPARK_IMAGE="image_spark",W9.SPARK_RADAR="spark_waves",W9.SPARK_VIDEO="video_spark",W9.SPEAKER_GROUP="speaker_stack",W9.SPEAKER_OFF="speaker_slash",W9.SPEED_1X="n1x",W9.SPEED_1_POINT_2X="n1point2x",W9.SPEED_1_POINT_5X="n1point5x",W9.SPEED_1_POINT_8X="n1point8x",W9.SPEED_2X="n2x",W9.SPONSORSHIP_STAR="memberships",W9.SPORTS="basketball",W9.SPOTLIGHT=
"spotlight",W9.STAFF_PICK="spotlight",W9.START_DVR="add",W9.STAR_BORDER="star",W9.STAR_HALF="star_half_filled",W9.STAR_SHOOTING="hype",W9.STICKER="sticker",W9.STICKER_EMOTICON="face_happy",W9.STOP_DVR="stop",W9.SUBSCRIBE="youtube",W9.SUBSCRIBE_PLUS="add",W9.SUBSCRIPTION_MANAGER="gear",W9.SUPERSTAR="super_star",W9.SUPERVISOR_ACCOUNT="person_child",W9.SWAP_HORIZ="arrow_swap_horizontal",W9.SWITCH_ACCOUNTS="person_square_stack",W9.TAB_ACCOUNT="person",W9.TAB_ACTIVITY="bell",W9.TAB_EXPLORE="compass",W9.TAB_HOME=
"home",W9.TAB_HOME_CAIRO="home",W9.TAB_INBOX="mail",W9.TAB_LIKED="thumb_up",W9.TAB_MUSIC_PREMIUM="youtube_music",W9.TAB_SHORTS="shorts",W9.TAB_SHORTS_CAIRO="shorts",W9.TAB_SUBSCRIPTIONS="subscriptions",W9.TAB_SUBSCRIPTIONS_CAIRO="subscriptions",W9.TAB_TRENDING="trending",W9.TARGET="target",W9.TARGET_ADD="target_add",W9.TEMPLATE_ADD="template_add",W9.TEXT="font",W9.TIMER="stopwatch",W9.TRENDING_CAIRO="trending",W9.TRENDING_UP="arrow_trend_up",W9.TROPHY_CAIRO="trophy",W9.TROPHY_CELEBRATIONS="fireworks",
W9.TROPHY_STAR="star_trophy",W9.TUNE="adjust",W9.UNBLOCK_USER="minus_circle",W9.UNLIMITED="youtube",W9.UNPLUGGED_LIVE_GUIDE="live",W9.UNPLUGGED_SPORTS="eye_slash",W9.UPLOADS="play_square_stack",W9.UP_ARROW="arrow_up",W9.VERTICAL_ALIGN_BOTTOM="download",W9.VERY_HAPPY="face_very_happy",W9.VERY_SAD="face_very_sad",W9.VIDEOS="play_circle",W9.VIDEO_CALL="video_camera_add",W9.VIDEO_LIBRARY_WHITE="play_square_stack",W9.VIDEO_QUALITY_4K="n4k",W9.VIDEO_QUALITY_8K="n8k",W9.VIDEO_YOUTUBE="youtube",W9.VIEW_LIST_CAIRO=
"view_list",W9.VIEW_MODULE="view_column3_row2",W9.VISIBILITY="eye",W9.VISIBILITY_OFF="eye_slash",W9.VOLUME_DOWN="volume_min",W9.VOLUME_MUTE="volume_mute",W9.VOLUME_OFF="volume_mute",W9.VOLUME_STABLE="stable_volume",W9.VOLUME_UP="volume_max",W9.WALLPAPER="image",W9.WARNING="alert_triangle",W9.WATCH_HISTORY="history",W9.WATCH_HISTORY_CAIRO="history",W9.WATCH_LATER="clock",W9.WATCH_LATER_CAIRO="clock",W9.WATCH_RELATED_MIX="mix",W9.WHAT_TO_WATCH="home",W9.YOUTUBE_LINKED_TV="tv_mobile",W9.YOUTUBE_MUSIC_MONOCHROME=
"youtube_music",W9.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music",W9.YOUTUBE_SHORTS_ARROW_DOWN="arrow_down",W9.YOUTUBE_SHORTS_ARROW_UP="arrow_up",W9.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="shorts_empty",W9.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16="shorts_empty",W9.YOUTUBE_SHORTS_OUTLINE_24="shorts",W9);var YM_={15:[[1,3,24]],"1_point_2x":[[1,1,24]],"1_point_5x":[[1,1,24]],"1_point_8x":[[1,1,24]],"1x":[[1,1,24]],"2_point_5x":[[1,1,24]],"2d":[[1,1,24]],"2x":[[1,3,24]],"3d":[[1,1,24]],"3x":[[1,3,24]],"4d":[[1,1,24]],"4k":[[0,2,24],[1,2,24]],60:[[1,3,24]],"8k":[[0,2,24],[1,2,24]],accessibility:[[1,2,24]],account_link:[[1,6,24]],account_link_error:[[1,5,24]],account_link_some:[[0,5,24]],account_link_success:[[0,5,24]],add:[[1,7,16],[1,7,24]],add_cairo:[[0,4,16],[0,4,24],[1,4,24]],add_circle:[[1,3,24],
[1,3,36]],add_half_circle:[[1,2,24]],adjust:[[0,6,24],[1,6,24]],airplane:[[0,2,24],[1,2,20],[1,2,24]],airplay:[[1,5,16],[1,5,24]],airplay_off:[[1,1,24]],album:[[0,4,24],[1,4,24]],alert_circle:[[0,7,24],[1,7,16],[1,7,24]],alert_triangle:[[0,6,12],[0,6,24],[1,6,24]],align_center:[[0,6,24],[1,6,24]],align_left:[[0,6,24],[1,6,24]],align_right:[[0,6,24],[1,6,24]],arrow_caps:[[0,2,24],[1,2,24]],arrow_circle:[[1,6,24],[1,6,48]],arrow_circle_dash:[[1,1,24]],arrow_circle_play:[[1,1,24],[1,1,36],[1,1,48]],
arrow_circle_right:[[0,3,24],[1,3,12],[1,3,16],[1,3,18],[1,3,24]],arrow_diagonal:[[1,5,24]],arrow_diagonal_down_right:[[0,1,12],[0,1,16],[0,1,18],[0,1,24],[1,1,12],[1,1,16],[1,1,18],[1,1,24]],arrow_diagonal_up_right:[[0,1,12],[0,1,16],[0,1,18],[0,1,24],[1,1,12],[1,1,16],[1,1,18],[1,1,24]],arrow_down:[[0,2,24],[1,2,24]],arrow_down_circle:[[0,2,12],[0,2,16],[0,2,18],[0,2,24]],arrow_flip:[[1,8,16],[1,8,24]],arrow_flip_dollar_sign:[[1,1,24]],arrow_in:[[0,6,24],[1,6,24]],arrow_left:[[1,6,24,!0]],arrow_left_cairo:[[1,
2,24,!0]],arrow_merge:[[1,1,24]],arrow_out:[[0,1,24]],arrow_pause:[[1,1,24]],arrow_redo:[[1,1,24]],arrow_remix:[[1,1,24]],arrow_repeat:[[0,5,24],[1,5,24]],arrow_repeat_1:[[0,3,24],[1,3,24]],arrow_right:[[1,2,24,!0]],arrow_shuffle:[[0,5,24],[1,5,24]],arrow_skip_forward:[[0,1,24],[1,1,24]],arrow_solid_down:[[0,1,16],[0,1,24],[1,1,16],[1,1,24]],arrow_solid_up:[[0,1,16],[0,1,24],[1,1,16],[1,1,24]],arrow_split:[[0,2,24],[1,2,24]],arrow_swap_horizontal:[[0,3,24],[1,3,24]],arrow_time:[[0,8,24],[1,8,24]],
arrow_time_cairo:[[0,2,24],[1,2,24]],arrow_time_forward:[[1,1,24]],arrow_undo:[[1,1,24]],arrow_up:[[0,2,24],[1,2,24]],arrow_up_circle:[[0,2,12],[0,2,16],[0,2,18],[0,2,24]],arrows_alert:[[1,1,24]],article:[[1,2,24]],article_alert:[[1,2,24]],article_check:[[1,2,24]],article_clarify:[[1,2,24]],audio:[[0,7,12],[0,7,16],[0,7,24],[1,7,24]],audio_badge:[[0,1,12],[0,1,16],[0,1,24]],audio_cairo:[[0,2,24],[1,2,24]],audio_off:[[1,2,24]],audio_surround:[[0,1,24],[1,1,24]],background:[[1,1,24]],backspace:[[0,
3,24],[1,3,24]],bag:[[0,5,12],[0,5,18],[0,5,24],[1,5,18],[1,5,24]],bag_bookmark:[[1,1,24]],bag_cairo:[[0,2,24],[1,2,24]],bar_circle:[[1,4,24]],bar_graph:[[0,2,24],[1,2,24]],bar_graph_box_vertical:[[0,6,24],[1,6,24]],bar_horizontal:[[1,2,16],[1,2,24]],bars_2:[[1,9,16],[1,9,24]],bars_3:[[0,2,24],[1,2,24]],beaker:[[1,1,24]],bell:[[0,8,24],[1,8,24]],bell_cairo:[[0,3,24],[1,3,24]],bell_off:[[1,5,24]],bell_off_cairo:[[1,2,24]],bell_on:[[0,6,24]],bell_on_cairo:[[0,2,24]],blur:[[1,1,24]],book:[[1,1,24]],
bookmark:[[0,6,24],[1,6,24]],bookmark_cairo:[[0,2,24],[1,2,24]],box_3d:[[0,1,24],[1,1,24]],box_bar:[[0,3,24]],box_check:[[0,6,18],[0,6,24],[0,6,36],[1,6,24]],box_chevron_right:[[1,3,24]],box_dashed_triangle:[[1,3,24]],box_empty:[[1,5,24]],box_open_check:[[0,4,24],[1,4,16],[1,4,24]],box_pencil:[[1,3,16],[1,3,24]],box_placeholder_left:[[1,1,24]],box_search:[[1,1,24]],boxes_2:[[1,3,24]],briefcase:[[1,1,24]],briefcase_slash:[[0,1,24]],brightness:[[0,1,24],[1,1,24]],broadcast:[[0,3,24],[1,3,12],[1,3,16],
[1,3,18],[1,3,24],[1,3,48]],bug:[[0,1,24],[1,1,24]],business:[[1,2,24]],cable:[[1,1,24]],calculator:[[0,1,24],[1,1,24]],calendar:[[0,2,24],[1,2,24]],camera:[[0,7,24],[1,7,24]],camera_audio:[[1,4,24]],camera_effects:[[1,4,24]],camera_flip:[[1,3,24]],camera_hashtag:[[1,4,24]],camera_switch:[[0,1,24],[1,1,24]],card:[[0,2,12],[0,2,16],[0,2,24]],cart:[[0,2,24],[1,2,24]],cat:[[0,1,24],[1,1,24]],celebration:[[1,1,24]],check:[[0,9,12],[0,9,16],[0,9,24],[1,9,16],[1,9,24]],check_circle:[[0,8,18],[0,8,24],[1,
8,24]],check_double:[[1,1,24]],check_double_off:[[1,1,24]],chevron_collapse:[[1,2,24]],chevron_down:[[1,7,18],[1,7,24]],chevron_down_cairo:[[1,2,24]],chevron_down_circle:[[0,1,24]],chevron_expand:[[1,4,24]],chevron_first:[[1,1,24]],chevron_last:[[1,1,24]],chevron_left:[[1,8,16,!0],[1,8,18,!0],[1,8,24,!0]],chevron_left_circle:[[0,1,24]],chevron_left_ios:[[1,1,24]],chevron_left_ios_cairo:[[1,2,24]],chevron_right:[[0,5,16,!0],[0,5,18,!0],[0,5,24,!0],[1,5,16,!0],[1,5,18,!0],[1,5,24,!0]],chevron_right_cairo:[[1,
2,24]],chevron_right_circle:[[0,1,24]],chevron_right_ios:[[1,1,24]],chevron_up:[[1,7,16],[1,7,18],[1,7,24]],chevron_up_cairo:[[1,2,24]],chevron_up_circle:[[0,1,24]],chromecast:[[0,6,24],[1,6,24]],chromecast_animate_frame_1:[[1,5,24]],chromecast_animate_frame_2:[[1,5,24]],chromecast_animate_frame_3:[[1,5,24]],chromecast_cairo:[[0,2,24],[1,2,24]],chromecast_mobile:[[1,2,24],[1,2,36]],chromecast_waveform:[[1,1,24]],circle:[[0,5,24],[1,5,24]],circle_full:[[0,2,24]],circle_half_full:[[1,1,24]],circles_6:[[0,
1,24]],circles_overlap:[[0,1,24],[1,1,24]],circles_overlap_check:[[0,1,16],[0,1,24]],clapperboard:[[0,1,24],[1,1,24]],clapperboard_cairo:[[0,2,24],[1,2,24]],clock:[[0,7,24],[1,7,16],[1,7,24]],clock_arrows:[[1,1,24]],clock_arrows_alert:[[1,1,24]],clock_cairo:[[0,2,24],[1,2,24]],clock_half_circle:[[0,1,24],[1,1,24]],closed_caption:[[0,10,24],[1,10,24]],cloud:[[1,1,24]],cloud_arrow_down:[[1,2,24]],cloud_arrow_up:[[0,3,24],[1,3,24]],cloud_check:[[0,1,24],[1,1,24]],cloud_ellipsis:[[0,1,24],[1,1,24]],cloud_off:[[1,
2,24]],code:[[1,1,24]],compass:[[0,6,24],[1,6,24]],compass_cairo:[[0,1,24],[1,1,24]],controller:[[0,2,24],[1,2,24]],copy:[[1,2,24]],copyright:[[0,2,24],[1,2,24]],creator_academy:[[0,3,12],[0,3,16],[0,3,24],[1,3,24]],creator_academy_cairo:[[0,2,24],[1,2,24]],credit_card:[[1,2,24]],crop:[[1,2,16],[1,2,24]],crop_rotate:[[1,1,24]],crown:[[0,2,16],[0,2,24],[1,2,12],[1,2,16],[1,2,24]],curve_s:[[0,1,24]],dashboard_plus:[[1,1,16],[1,1,18],[1,1,20],[1,1,24]],die_3:[[0,5,24],[1,5,24]],directions:[[1,2,24]],
dogfood:[[1,1,24]],dollar_sign:[[0,7,24],[1,7,24]],dollar_sign_circle:[[0,8,16],[0,8,24],[1,8,16],[1,8,24]],dollar_sign_circle_pause:[[1,1,24]],dollar_sign_circle_plus:[[1,1,24]],dollar_sign_container:[[1,7,24]],dollar_sign_heart:[[0,20,12],[0,20,24],[1,20,16],[1,20,24]],dollar_sign_off:[[1,3,24]],download:[[0,9,24],[1,9,16],[1,9,24]],download_cairo:[[0,2,24],[1,2,24]],downloaded:[[0,7,24]],downloading:[[1,5,24]],downloading_0:[[1,5,24]],downloading_1:[[1,6,24]],downloading_2:[[1,6,24]],downloading_3:[[1,
6,24]],downloading_4:[[1,6,24]],downloading_5:[[1,7,24]],downloading_6:[[1,6,24]],drive_add:[[1,2,24]],earth:[[0,12,24],[1,12,16],[1,12,18],[1,12,24]],explicit:[[0,5,18],[0,5,24],[1,5,24]],eye:[[0,3,24],[1,3,24]],eye_off:[[1,4,24]],eyedropper:[[1,1,24]],face_arrows_diagonal:[[1,1,24]],face_happy:[[0,7,24],[0,7,36],[1,7,24],[1,7,36]],face_image:[[1,1,24]],face_meh:[[0,7,24],[0,7,36],[1,7,24],[1,7,36]],face_meh_2:[[0,6,24],[0,6,36],[1,6,24],[1,6,36]],face_paintbrush:[[1,1,24]],face_sad:[[0,7,24],[0,
7,36],[1,7,24],[1,7,36]],face_unhappy:[[0,6,24],[0,6,36],[1,6,24],[1,6,36]],face_upset:[[0,7,24],[0,7,36],[1,7,24],[1,7,36]],face_very_happy:[[0,7,24],[0,7,36],[1,7,24],[1,7,36]],face_very_sad:[[0,7,24],[0,7,36],[1,7,24],[1,7,36]],fashion:[[0,2,24],[1,2,24]],fashion_cairo:[[0,2,24],[1,2,24]],fast_back:[[1,2,24]],fast_forward:[[0,3,24]],film_strip:[[0,4,24],[1,4,24]],film_strip_add:[[1,1,24]],filter_face:[[0,5,24],[1,5,24]],filter_photo:[[0,6,24],[1,6,24]],fire:[[0,9,12],[0,9,24],[1,9,16],[1,9,24]],
fire_cairo:[[0,2,24],[1,2,24]],fireworks:[[1,2,24]],flag:[[0,6,24],[1,6,24]],flag_cairo:[[0,2,24],[1,2,24]],flash_auto:[[0,1,24],[1,1,24]],flash_circle:[[0,3,18],[0,3,24],[1,3,24]],flash_off:[[0,5,24],[1,5,24]],flash_on:[[0,5,24],[1,5,24]],flip_horizontal:[[1,3,24]],flip_horizontal_dash:[[1,1,24]],flip_vertical_dash:[[1,1,24]],folder:[[0,2,16],[0,2,24],[1,2,24]],football:[[0,1,24],[1,1,24]],gaming:[[0,1,24],[1,1,24]],gaming_cairo:[[0,2,24],[1,2,24]],gear:[[0,6,24],[1,6,24]],gear_cairo:[[0,3,24],[1,
3,24]],ghost:[[1,3,24]],gif:[[1,1,24]],gift:[[0,1,24],[1,1,24]],globe:[[1,2,24]],glow:[[1,1,24]],google_lens:[[1,3,24]],greater_than_20:[[1,2,24]],grid_2x2:[[1,1,24]],grid_3_by_3:[[0,1,24],[1,1,24]],grid_asymmetrical:[[0,1,24],[1,1,24]],hand:[[1,1,24]],hand_long_press:[[0,3,24],[1,3,24]],hand_pinch_in:[[1,2,24]],hand_swipe_left:[[1,1,24]],hand_swipe_right:[[1,2,24]],hand_tap:[[0,2,24],[1,2,24]],hand_wave:[[1,1,24]],hands_heart:[[0,1,24],[1,1,24]],hashtag:[[1,1,16],[1,1,18],[1,1,20],[1,1,24]],hd:[[0,
6,24],[1,6,24]],headset:[[0,6,24],[1,6,24]],heart:[[0,15,13],[0,15,24],[1,15,16],[1,15,24]],heart_box:[[1,1,24]],heart_circle:[[1,1,16],[1,1,18],[1,1,20],[1,1,24]],heart_off:[[1,2,24]],hierarchy:[[0,2,24],[1,2,24]],highlights:[[1,1,24]],home:[[0,7,24],[1,7,24]],home_cairo:[[0,2,24],[1,2,24]],hourglass:[[1,1,16],[1,1,24]],image:[[0,6,24],[1,6,24]],image_add:[[1,2,24]],image_wallpaper:[[1,1,24]],incognito:[[0,7,24],[1,7,24]],incognito_cairo:[[0,2,24],[1,2,24]],infinite:[[0,2,24]],infinity:[[1,1,24]],
info_circle:[[1,8,16],[1,8,18],[1,8,20],[1,8,24]],journey:[[1,1,24]],key:[[1,4,24]],keyboard:[[0,2,24],[1,2,24]],label:[[0,2,24],[1,2,24]],laptop:[[1,2,24]],laptop_mobile:[[0,2,24],[1,2,24]],layers:[[0,1,24],[1,1,24]],leaf:[[1,1,24]],lens:[[1,1,24]],less_than_4:[[1,2,24]],library:[[0,6,24],[1,6,24]],library_add:[[1,7,16],[1,7,24]],library_image:[[1,1,24]],library_music:[[0,3,24],[1,3,24]],library_saved:[[0,6,24]],lightbulb:[[0,2,12],[0,2,24],[1,2,24]],lightbulb_cairo:[[0,2,24],[1,2,24]],lightbulb_spark:[[1,
2,24]],link:[[1,6,18],[1,6,24]],link_off:[[1,1,24]],list_add:[[1,5,24]],list_check:[[0,2,24]],list_music:[[1,3,24]],list_pencil:[[1,5,24]],list_play_arrow:[[0,8,24],[1,8,12],[1,8,24]],list_play_arrow_cairo:[[0,2,24],[1,2,24]],list_queue:[[1,1,24]],list_queue_last:[[0,3,24],[1,3,24]],list_queue_next:[[1,1,24]],list_remove:[[1,1,24]],list_view:[[1,2,24]],list_view_cairo:[[1,2,24]],live_mobile_landscape_orientation:[[1,1,24]],live_photo:[[1,1,24]],location_point:[[0,6,12],[0,6,24],[1,6,24]],location_point_off:[[1,
1,24]],lock:[[0,9,12],[0,9,24],[1,9,12],[1,9,16],[1,9,18],[1,9,24]],lock_open:[[1,2,24]],magic_wand:[[0,1,24],[1,1,24]],mail:[[0,6,24],[1,6,24]],map:[[1,2,24]],math_add:[[0,3,24]],math_and:[[0,3,24]],math_divide:[[0,3,24]],math_equals:[[0,3,24]],math_equals_slash:[[1,3,24]],math_greater_than:[[0,3,24]],math_greater_than_or_equal:[[1,1,24]],math_less_than:[[0,3,24]],math_less_than_or_equal:[[1,4,24]],math_multiply:[[0,3,24]],math_or:[[0,3,24]],math_percent:[[0,3,24]],math_subtract:[[0,3,24]],maximize_cairo:[[1,
1,24]],medal:[[1,1,24]],medal_star:[[1,1,24]],meet:[[1,1,24]],megaphone:[[0,2,24],[1,2,24]],memberships:[[0,6,12],[0,6,16],[0,6,18],[0,6,24],[1,6,24]],mention:[[1,3,16],[1,3,24]],menu_filter:[[0,1,24],[1,1,24]],menu_sort:[[1,4,24]],message_bubble_alert:[[0,6,24],[1,6,24]],message_bubble_alert_cairo:[[1,2,24]],message_bubble_empty:[[1,1,24]],message_bubble_gear:[[1,1,24]],message_bubble_left:[[0,1,24],[1,1,24]],message_bubble_left_boost:[[1,1,24]],message_bubble_overlap:[[0,7,24],[1,7,24]],message_bubble_question:[[0,
2,16],[0,2,24],[1,2,16],[1,2,24]],message_bubble_right:[[0,14,24],[0,14,32],[1,14,16],[1,14,24]],message_bubble_right_caption:[[1,1,24]],mic:[[0,8,24],[1,8,24]],mic_off:[[1,2,24]],miniplayer_exit:[[1,1,24]],mobile:[[0,3,24],[1,3,24]],mobile_check:[[1,1,24]],mobile_download:[[1,3,24]],mobile_landscape:[[1,1,24]],mobile_screen_horizontal:[[1,1,24]],mobile_screen_vertical:[[1,1,24]],money_hand:[[1,2,24]],monitor_display:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],monitor_display_off:[[1,1,24]],moon_z:[[0,
1,24],[1,1,24]],motion:[[1,1,24]],move:[[1,1,24]],music:[[0,6,24],[1,6,16],[1,6,18],[1,6,24]],music_off:[[1,3,24]],music_scissors:[[1,3,24]],music_shape:[[1,3,24]],music_video:[[1,3,24]],music_video_off:[[1,1,24]],my_videos:[[1,6,24]],my_videos_cairo:[[1,2,24]],news:[[0,2,24],[1,2,12],[1,2,24]],news_cairo:[[0,2,24],[1,2,24]],node_left:[[1,1,24]],node_right:[[1,1,24]],note_add:[[1,1,16],[1,1,24]],odometer:[[0,4,24],[1,4,24]],open_new:[[0,7,24],[1,7,12],[1,7,24]],overflow_horizontal:[[1,4,24],[1,4,
32]],overflow_vertical:[[1,10,24]],overflow_vertical_cairo:[[1,1,24]],paint_bucket:[[1,2,24]],palette:[[1,1,24]],panels:[[0,1,24],[1,1,24]],paper_corner_folded:[[0,2,24],[1,2,24]],paper_open_in_new:[[0,1,24],[1,1,24]],pause:[[0,6,24]],pause_circle:[[0,1,12],[0,1,16],[0,1,24]],pdf:[[1,1,24]],pencil:[[1,6,16],[1,6,24]],people:[[0,6,12],[0,6,24],[1,6,24]],people_2:[[0,1,24],[1,1,24]],people_group:[[0,4,24],[1,4,16],[1,4,24]],people_note:[[0,1,18],[0,1,24],[1,1,24]],person:[[0,5,12],[0,5,13],[0,5,16],
[0,5,24],[0,5,48],[1,5,13],[1,5,16],[1,5,24]],person_2:[[1,1,24]],person_account:[[1,6,24]],person_account_cairo:[[1,1,24]],person_add:[[1,5,24]],person_box:[[1,5,24]],person_circle:[[0,8,24],[1,8,24]],person_circle_cairo:[[0,2,24],[1,2,24]],person_circle_slash:[[1,1,24]],person_minus:[[0,1,24],[1,1,24]],person_music:[[0,4,24],[1,4,24]],person_radar:[[0,6,12],[0,6,24],[1,6,16],[1,6,24]],person_setting:[[1,6,24]],person_shield:[[1,6,24]],phone:[[0,1,24],[1,1,24]],picture_in_picture:[[0,1,24],[1,1,
24]],picture_in_picture_combine:[[1,1,24]],pin:[[0,5,12],[0,5,24],[1,5,16],[1,5,24]],pin_off:[[1,1,24]],play_arrow:[[0,7,24],[1,7,24]],play_arrow_circle:[[0,2,24],[1,2,24]],play_arrow_disabled:[[0,1,12],[0,1,24]],play_arrow_half_circle:[[0,5,24],[1,5,24]],podcast:[[0,2,24],[1,2,12],[1,2,16],[1,2,18],[1,2,24]],podcast_add:[[0,1,24],[1,1,24]],podcast_cairo:[[0,2,24],[1,2,24]],podcast_check:[[0,1,24]],point_2x:[[1,1,24]],point_3x:[[1,3,24]],point_5x:[[1,3,24]],point_8x:[[1,1,24]],poll:[[1,7,16],[1,7,
24],[1,7,40]],pound:[[1,3,24]],presentation:[[1,1,24]],presentation_remove:[[1,1,24]],price_tag:[[0,6,12],[0,6,24],[1,6,24]],price_tag_heart:[[1,1,24]],qr_code:[[1,2,24]],question_circle:[[1,5,24]],question_circle_cairo:[[1,2,24]],question_head:[[1,1,24]],quotation_mark:[[0,1,24],[1,1,24]],quotation_mark_off:[[1,1,24]],radar_live:[[0,7,24],[1,7,12],[1,7,16],[1,7,24]],radar_live_cairo:[[0,2,24],[1,2,24]],rating_down:[[1,1,24]],rating_up:[[1,7,12],[1,7,16],[1,7,24]],record:[[0,1,24]],remix:[[1,1,16],
[1,1,24]],replay_arrow:[[1,1,24]],rotate_90:[[1,1,24]],rotate_90_clockwise:[[1,2,24]],rss:[[1,1,16],[1,1,24]],rss_off:[[1,1,16],[1,1,24]],ruby:[[1,1,12],[1,1,16],[1,1,18],[1,1,24]],samples:[[0,1,24],[1,1,24]],saturation:[[1,1,24]],scale:[[1,3,24]],scissors:[[0,6,12],[0,6,24],[1,6,24]],scissors_cairo:[[0,2,24],[1,2,24]],scissors_cut:[[1,2,16],[1,2,24]],screen_default:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_full:[[1,7,24]],screen_full_exit:[[1,6,24]],screen_full_exit_cairo:[[1,1,24]],screen_fullscreen:[[0,
1,24],[0,1,48],[1,1,24],[1,1,48]],screen_light:[[1,1,24]],screen_mini_player:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_multi_view:[[0,3,24],[1,3,24]],screen_rotation:[[1,2,18],[1,2,24]],screen_switch:[[0,1,24],[1,1,24]],screen_theatre:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_vertical:[[1,1,24]],screen_x:[[1,1,24]],sd:[[0,2,24],[1,2,24]],search:[[0,9,24],[1,9,24]],search_cairo:[[1,2,24]],search_superscript:[[1,1,24]],send:[[0,3,24,!0],[1,3,24,!0]],settings_remote:[[1,1,24]],shadow_hard:[[0,
1,24]],shadow_soft:[[0,1,24]],shapes:[[0,2,24],[1,2,24]],share:[[0,9,24,!0],[0,9,32,!0],[1,9,16,!0],[1,9,24,!0]],share_cairo:[[1,2,24]],share_ios:[[1,1,24]],share_link:[[0,1,24],[1,1,24]],shield:[[1,4,24]],shield_add:[[1,1,24]],shield_empty:[[0,1,16],[0,1,18],[0,1,24],[1,1,16],[1,1,18],[1,1,24]],shield_off:[[1,1,24]],shield_overflow:[[1,1,24]],shield_plus:[[1,1,24]],shield_search:[[1,2,24]],shorts_layout_bottom:[[1,1,24]],shorts_layout_centered_square:[[1,1,24]],shorts_layout_foreground:[[1,1,24]],
shorts_layout_landscape_bottom:[[1,1,24]],shorts_layout_landscape_top:[[1,1,24]],shorts_layout_left:[[1,1,24]],shorts_layout_pip:[[1,1,24]],shorts_layout_right:[[1,1,24]],shorts_layout_single:[[1,1,24]],shorts_layout_top:[[1,1,24]],skip_back_10:[[0,1,24]],skip_back_15:[[0,1,24]],skip_back_20:[[0,1,24]],skip_back_30:[[0,1,24]],skip_back_5:[[0,1,24]],skip_back_60:[[0,1,24]],skip_down:[[0,3,24]],skip_forward_10:[[0,1,24]],skip_forward_15:[[0,1,24]],skip_forward_20:[[0,1,24]],skip_forward_30:[[0,1,24]],
skip_forward_5:[[0,1,24]],skip_forward_60:[[0,1,24]],skip_next:[[0,3,24]],skip_previous:[[0,3,24]],skip_up:[[0,3,24]],slash_circle_left:[[1,7,24]],slash_circle_right:[[1,2,24]],soccer_ball:[[1,2,24]],soccer_card:[[0,2,12],[0,2,16],[0,2,24]],spacebar:[[1,1,24]],spark:[[0,6,12],[0,6,16],[0,6,24]],spark_chat:[[1,1,16],[1,1,24]],spark_image:[[1,2,24]],spark_lightbulb:[[0,2,24],[1,2,24]],spark_message_bubble:[[1,4,16],[1,4,24]],spark_message_bubble_left:[[1,1,24]],spark_music:[[1,2,24]],spark_pencil:[[1,
2,24]],spark_radar:[[0,1,12],[0,1,16],[0,1,24],[1,1,12],[1,1,16],[1,1,24]],spark_text:[[1,1,24]],spark_video:[[1,2,24]],sparkle:[[0,4,24],[1,4,24]],speaker:[[1,1,24]],speaker_group:[[1,1,24]],speaker_group_off:[[1,1,24]],speaker_headset:[[1,1,24]],speaker_off:[[1,1,24]],split:[[1,3,24]],sports:[[0,1,24]],spotlight:[[0,1,24],[1,1,24]],star:[[0,3,16],[0,3,24],[1,3,16],[1,3,24]],star_circle:[[0,1,12],[0,1,16],[0,1,18],[0,1,24]],star_circle_ribbon:[[0,1,16],[0,1,20],[0,1,24],[0,1,36],[1,1,16],[1,1,20],
[1,1,24],[1,1,36]],star_half:[[0,2,16],[0,2,24]],star_shooting:[[0,3,24],[1,3,24]],statistics_graph:[[1,2,24]],sticker:[[1,1,24]],stop:[[0,1,24]],stopwatch:[[0,3,16],[0,3,24],[1,3,16],[1,3,24]],stopwatch_10:[[0,1,24]],stopwatch_3:[[0,1,24]],subscriptions:[[0,8,24],[1,8,18],[1,8,24]],subscriptions_cairo:[[0,2,24],[1,2,24]],subtitles:[[0,2,12],[0,2,24],[1,2,24]],super_chat:[[1,6,18],[1,6,24]],super_sticker:[[0,6,16],[0,6,24],[1,6,16],[1,6,24]],super_store:[[1,1,24]],superstar:[[1,1,24]],tablet:[[1,
1,24]],target:[[0,1,24],[1,1,16],[1,1,24]],target_add:[[0,1,24],[1,1,16],[1,1,24]],template_add:[[1,2,16],[1,2,24]],template_play:[[0,1,24],[1,1,24]],text:[[0,8,24],[1,8,16],[1,8,24]],text_bold:[[1,1,24]],text_box:[[1,5,24]],text_italic:[[1,1,24]],text_outline:[[1,2,24]],text_preset:[[1,1,24]],text_serif:[[1,1,24]],text_shadow:[[1,2,24]],text_strikethrough:[[1,1,24]],text_underline:[[1,1,24]],theme_switch:[[0,1,24],[1,1,24]],thermometer:[[1,1,24]],thumb_down:[[0,19,16],[0,19,24],[0,19,36],[1,19,16],
[1,19,24],[1,19,36]],thumb_up:[[0,17,16],[0,17,24],[0,17,36],[1,17,16],[1,17,24],[1,17,36]],thumb_up_cairo:[[0,2,24],[1,2,24]],thumb_up_down:[[0,1,24],[1,1,24]],tic_tac_toe:[[0,4,12],[0,4,24],[1,4,16],[1,4,24]],tic_tac_toe_cairo:[[0,2,24],[1,2,24]],tilt:[[1,3,24]],time_stamp_plus:[[1,1,24]],timeline:[[1,2,24]],toolbox:[[1,2,24]],transcript:[[1,1,16],[1,1,24]],transcript_search:[[1,1,16],[1,1,24]],transition:[[0,3,24],[1,3,24]],translate:[[1,1,24]],trash_can:[[1,6,16],[1,6,24]],triangle_down:[[1,5,
24]],triangle_three_left:[[0,1,24]],triangle_three_right:[[0,1,24]],trophy:[[0,1,24],[1,1,24]],trophy_cairo:[[0,2,24],[1,2,24]],trophy_star:[[1,1,24]],truck:[[0,3,24],[1,3,24]],tv:[[0,5,12],[0,5,16],[0,5,24],[1,5,16],[1,5,24]],tv_arrow_left:[[1,1,24]],tv_circle:[[0,1,24],[1,1,24]],tv_dollar_sign:[[0,1,24],[1,1,24]],tv_off:[[1,2,24]],tv_queue:[[1,4,24]],tv_queue_chevron:[[1,2,24]],upload:[[1,4,24]],uploading:[[1,1,24]],variable:[[1,3,24]],verified_circle:[[1,4,24]],video_camera:[[0,7,24],[1,7,24]],
video_camera_add:[[1,1,24]],video_camera_off:[[1,1,24]],video_link:[[1,3,16],[1,3,24]],video_stitch:[[1,1,24]],volume_down:[[0,2,24],[1,2,24]],volume_fade:[[1,1,24]],volume_off:[[0,4,24],[1,4,24]],volume_on:[[0,3,24],[1,3,24]],volume_stable:[[0,1,24],[1,1,24]],vr:[[0,5,24],[1,5,24]],waveform:[[1,1,24]],waveform_music:[[0,2,18],[0,2,24],[0,2,48]],wrench:[[0,1,24],[1,1,24]],x:[[1,8,18],[1,8,24]],x_cairo:[[1,1,24]],x_circle:[[1,5,24]],x_mark:[[1,4,20],[1,4,24]],x_octagon:[[1,1,24]],yen_sign_container:[[0,
2,24],[1,2,24]],youtube_improve_tv:[[1,1,24]],youtube_kids:[[0,3,24],[1,3,24]],youtube_linked_tv:[[1,4,24]],youtube_logo_icon:[[0,6,24],[1,6,24]],youtube_mix:[[1,5,12],[1,5,16],[1,5,24]],youtube_music:[[0,5,24],[1,5,24]],youtube_music_cairo:[[1,2,24]],youtube_originals:[[0,6,24],[1,6,24]],youtube_shorts:[[0,10,12],[0,10,20],[0,10,24],[1,10,20],[1,10,24]],youtube_shorts_arrow_down:[[1,1,24]],youtube_shorts_arrow_left:[[1,2,24]],youtube_shorts_arrow_up:[[1,1,24]],youtube_shorts_cairo:[[0,2,24],[1,2,
24]],youtube_shorts_camera:[[1,3,24]],youtube_shorts_chevron_left_ios:[[1,2,24]],youtube_shorts_green_screen:[[0,1,24],[1,1,24]],youtube_shorts_heart:[[0,2,24],[0,2,32]],youtube_shorts_message_bubble_right:[[0,2,24],[0,2,32]],youtube_shorts_no_triangle:[[0,4,16],[0,4,24],[0,4,32],[1,4,16],[1,4,24],[1,4,32]],youtube_shorts_overflow_vertical:[[1,2,24]],youtube_shorts_plus:[[1,5,16],[1,5,24]],youtube_shorts_remix:[[0,2,24],[0,2,32]],youtube_shorts_search:[[1,3,24]],youtube_shorts_share:[[0,2,24],[0,
2,32]],youtube_shorts_sticker:[[1,1,18],[1,1,24]],youtube_shorts_thumb_down:[[0,2,24],[0,2,32]],youtube_shorts_thumb_up:[[0,2,24],[0,2,32]],youtube_shorts_waveform:[[1,2,18],[1,2,24]],youtube_studio:[[0,6,24],[1,6,24]],youtube_tv:[[0,6,24],[1,6,24]],zoom_auto:[[0,1,24],[1,1,24]]};var wgu={accessibility:[[0,4,24],[1,4,24]],account_link:[[0,8,24],[1,8,24]],account_link_error:[[1,6,24]],add:[[1,8,24]],add_circle:[[0,5,24],[1,5,24]],add_square_stack:[[1,1,24]],add_tv:[[1,1,24]],add_tv_chevron_right:[[1,1,24]],adjust:[[0,9,24],[1,9,24]],airplane:[[0,4,24],[1,4,24]],airplay:[[1,6,24]],airplay_slash:[[1,1,24]],album:[[0,6,24],[1,6,24]],alert_bubble:[[1,1,24]],alert_circle:[[0,9,24],[1,9,24]],alert_octagon:[[0,2,24],[1,2,24]],alert_triangle:[[0,8,24],[1,8,24]],ambient_mode:[[1,1,
24]],ampersand:[[1,1,24]],api:[[0,2,24],[1,2,24]],archive:[[1,1,24]],arrow_arc_forward:[[1,1,24]],arrow_clockwise:[[1,1,24]],arrow_counterclockwise:[[1,1,24]],arrow_counterclockwise_dashed:[[1,1,24]],arrow_down:[[1,3,24]],arrow_down_circle:[[0,4,24],[1,4,24]],arrow_down_right:[[1,1,24]],arrow_flip:[[1,10,24]],arrow_in:[[1,7,24]],arrow_left:[[1,7,24,!0]],arrow_merge:[[1,2,24]],arrow_out:[[1,2,24]],arrow_right:[[1,3,24,!0]],arrow_right_rectangle:[[0,2,24],[1,2,24]],arrow_solid_down:[[0,3,24],[1,3,24]],
arrow_solid_up:[[0,3,24],[1,3,24]],arrow_split:[[1,3,24]],arrow_split_alert:[[1,1,24]],arrow_swap_horizontal:[[1,5,24]],arrow_trend_down:[[1,1,24]],arrow_trend_up:[[1,1,24]],arrow_turn_down_right:[[1,1,24]],arrow_up:[[1,3,24]],arrow_up_circle:[[0,4,24],[1,4,24]],arrow_up_left:[[1,1,24]],arrow_up_rectangle_portrait:[[1,1,24]],arrow_up_right:[[1,1,24]],audio:[[0,9,24],[1,9,24]],audio_arrow_flip:[[0,2,24],[1,2,24]],audio_badge:[[0,3,24],[1,3,24]],audio_scissors:[[1,1,24]],audio_slash:[[0,2,24],[1,2,
24]],audio_spark:[[1,1,24]],audio_square_stack:[[0,2,24],[1,2,24]],audio_staff:[[0,2,24],[1,2,24]],backspace:[[0,5,24],[1,5,24]],bag:[[0,7,24],[1,7,24]],bag_bookmark:[[1,2,24]],basketball:[[0,2,24],[1,2,24]],beaker:[[1,2,24]],bell:[[0,10,24],[1,10,24]],bell_slash:[[1,1,24]],bell_waves:[[0,2,24],[1,2,24]],blur:[[1,2,24]],book:[[0,3,24],[1,3,24]],book_audio:[[1,1,24]],bookmark:[[0,8,24],[1,8,24]],briefcase:[[1,2,24]],briefcase_slash:[[0,3,24],[1,3,24]],brightness:[[0,3,24],[1,3,24]],browser:[[0,2,24],
[1,2,24]],browser_slash:[[1,1,24]],bubble:[[1,1,24]],bubble_asterisk:[[0,2,24],[1,2,24]],bubble_gear:[[1,1,24]],bubble_pencil:[[1,1,24]],bubble_slash:[[0,2,24],[1,2,24]],bubble_spark:[[1,1,24]],bubble_sparkles:[[1,1,24]],bubble_stack:[[0,2,24],[1,2,24]],bug:[[0,3,24],[1,3,24]],business:[[0,4,24],[1,4,24]],cable:[[1,2,24]],calculator:[[0,3,24],[1,3,24]],calendar:[[0,4,24],[1,4,24]],calendar_event:[[0,2,24],[1,2,24]],calendar_today:[[1,1,24]],camera:[[0,9,24],[1,9,24]],camera_audio:[[1,5,24]],camera_flip:[[1,
4,24]],camera_hashtag:[[1,5,24]],camera_sparkles:[[1,1,24]],camera_switch:[[0,3,24],[1,3,24]],card:[[0,3,24]],cart:[[0,4,24],[1,4,24]],cart_add:[[1,1,24]],cat:[[0,3,24],[1,3,24]],celebration:[[1,2,24]],chart_bar:[[1,1,24]],chart_bar_search:[[0,2,24],[1,2,24]],chart_bar_square:[[0,2,24],[1,2,24]],chart_line:[[1,1,24]],chart_pie:[[0,2,24],[1,2,24]],chart_scatter_plot:[[1,1,24]],check:[[1,10,24]],check_circle:[[0,10,24],[1,10,24]],check_done:[[1,1,24]],check_done_slash:[[1,1,24]],check_shield:[[1,1,
24]],check_square:[[0,2,24],[1,2,24]],check_square_stack:[[0,1,24]],chevron_collapse:[[1,3,24]],chevron_down:[[1,8,24]],chevron_down_circle:[[0,3,24],[1,3,24]],chevron_down_end:[[1,1,24]],chevron_expand:[[1,5,24]],chevron_left:[[1,9,24,!0]],chevron_left_circle:[[0,3,24],[1,3,24]],chevron_left_end:[[1,1,24]],chevron_right:[[1,6,24,!0]],chevron_right_circle:[[0,3,24],[1,3,24]],chevron_right_end:[[1,1,24]],chevron_right_square:[[1,1,24]],chevron_up:[[1,8,24]],chevron_up_circle:[[0,3,24],[1,3,24]],chevron_up_end:[[1,
1,24]],chromecast:[[0,8,24],[1,8,24]],chromecast_mobile:[[1,3,24]],chromecast_waveform:[[1,2,24]],circle:[[0,7,24],[1,7,24]],circle_half_filled:[[1,1,24]],circle_slash:[[0,2,24],[1,2,24]],circles6:[[1,1,24]],clapperboard:[[0,3,24],[1,3,24]],clapperboard_sparkles:[[0,1,24]],clock:[[0,9,24],[1,9,24]],clock_arrow_clockwise:[[1,1,24]],clock_half_dashed:[[1,1,24]],clock_split:[[0,2,24],[1,2,24]],clock_split_alert:[[0,2,24],[1,2,24]],closed_captions:[[0,2,24],[1,2,24]],cloud:[[1,2,24]],cloud_arrow_down:[[1,
3,24]],cloud_arrow_up:[[0,5,24],[1,5,24]],cloud_check:[[0,3,24],[1,3,24]],cloud_ellipsis:[[0,3,24],[1,3,24]],cloud_slash:[[1,1,24]],cms_allowlist:[[0,2,24],[1,2,24]],code:[[1,2,24]],compare:[[1,1,24]],compass:[[0,8,24],[1,8,24]],copy:[[1,3,24]],copy_to_all:[[1,1,24]],copyright:[[0,4,24],[1,4,24]],copyright_search:[[0,2,24],[1,2,24]],cover_claim:[[1,1,24]],creative_commons:[[0,2,24],[1,2,24]],credit_card:[[0,4,24],[1,4,24]],crop:[[1,3,24]],crop_rotate:[[1,2,24]],crown:[[0,4,24],[1,4,24]],csv:[[0,2,
24],[1,2,24]],cube:[[0,2,24],[1,2,24]],cursor_click:[[0,2,24],[1,2,24]],curve:[[1,1,24]],cvp:[[0,2,24],[1,2,24]],dashboard:[[0,2,24],[1,2,24]],dashboard_add:[[1,1,24]],die_face3:[[0,2,24],[1,2,24]],directions:[[1,3,24]],display:[[0,2,24],[1,2,24]],display_slash:[[1,1,24]],divide:[[1,1,24]],document:[[0,2,24],[1,2,24]],document_arrow_up_right:[[0,2,24],[1,2,24]],dollar_sign_arrow_flip:[[1,1,24]],dollar_sign_circle:[[0,10,24],[1,10,24]],dollar_sign_circle_add:[[1,1,24]],dollar_sign_circle_hand:[[1,
1,24]],dollar_sign_circle_pause:[[1,2,24]],dollar_sign_circle_slash:[[1,1,24]],dollar_sign_heart:[[1,21,24]],dollar_sign_rectangle:[[1,1,24]],dollar_sign_tv:[[0,2,24],[1,2,24]],download:[[1,10,24]],dpad:[[0,2,24],[1,2,24]],embed:[[0,2,24],[1,2,24]],equal:[[1,1,24]],equal_slash:[[1,1,24]],explicit:[[0,7,24],[1,7,24]],eye:[[0,5,24],[1,5,24]],eye_slash:[[1,1,24]],eyedropper:[[1,2,24]],face_happy:[[0,9,24],[1,9,24]],face_image:[[1,2,24]],face_meh:[[0,9,24],[1,9,24]],face_neutral:[[0,2,24],[1,2,24]],face_paintbrush:[[1,
2,24]],face_sad:[[0,9,24],[1,9,24]],face_scale:[[1,1,24]],face_sparkles:[[0,2,24],[1,2,24]],face_unhappy:[[0,8,24],[1,8,24]],face_upset:[[0,9,24],[1,9,24]],face_very_happy:[[0,9,24],[1,9,24]],face_very_sad:[[0,9,24],[1,9,24]],fashion:[[0,4,24],[1,4,24]],fast_forward:[[0,5,24],[1,5,24]],fast_rewind:[[0,2,24],[1,2,24]],film_strip:[[0,6,24],[1,6,24]],film_strip_add:[[1,2,24]],film_strip_audio:[[1,1,24]],filter:[[1,1,24]],filter_audio:[[1,1,24]],filter_photo:[[0,8,24],[1,8,24]],fireworks:[[1,3,24]],flag:[[0,
8,24],[1,8,24]],flash:[[0,2,24],[1,2,24]],flash_auto:[[0,3,24],[1,3,24]],flash_circle:[[0,5,24],[1,5,24]],flash_slash:[[0,2,24],[1,2,24]],flip_horizontal:[[1,4,24]],flip_horizontal_half_dashed:[[1,1,24]],flip_vertical_half_dashed:[[1,1,24]],folder:[[0,4,24],[1,4,24]],font:[[1,1,24]],font_bold:[[1,1,24]],font_italic:[[1,1,24]],font_outline:[[1,1,24]],font_present:[[1,1,24]],font_serif:[[1,1,24]],font_shadow:[[1,1,24]],font_square:[[0,2,24],[1,2,24]],font_strikethrough:[[1,1,24]],font_underline:[[1,
1,24]],football:[[0,3,24],[1,3,24]],game_controller:[[1,1,24]],gaming:[[0,3,24],[1,3,24]],gear:[[0,8,24],[1,8,24]],gesture_long_press:[[0,2,24],[1,2,24]],gesture_pinch_in:[[1,1,24]],gesture_swipe_left:[[1,1,24]],gesture_swipe_right:[[1,1,24]],gesture_swipe_up:[[1,1,24]],gesture_tap:[[0,2,24],[1,2,24]],ghost:[[1,4,24]],gif:[[1,2,24]],gift:[[0,3,24],[1,3,24]],globe:[[1,3,24]],glow:[[1,2,24]],google:[[0,1,24]],google_blogger:[[0,1,24]],google_drive_add:[[1,1,24]],google_lens:[[1,4,24]],google_meet:[[0,
2,24],[1,2,24]],google_quick_share:[[1,1,24]],graduation_cap:[[0,2,24],[1,2,24]],greater_than:[[1,1,24]],greater_than_n20:[[1,1,24]],greater_than_or_equal_to:[[1,1,24]],hand:[[1,2,24]],hand_wave:[[1,2,24]],hands_heart:[[0,3,24],[1,3,24]],hashtag:[[1,2,24]],hd:[[0,8,24],[1,8,24]],headset:[[0,8,24],[1,8,24]],heart:[[0,17,24],[1,17,24]],heart_circle:[[1,2,24]],heart_cube:[[1,1,24]],heart_slash:[[1,1,24]],help_bubble:[[0,2,24],[1,2,24]],help_circle:[[1,1,24]],hierarchy:[[0,4,24],[1,4,24]],highlights:[[1,
2,24]],history:[[1,1,24]],home:[[0,9,24],[1,9,24]],hourglass:[[1,2,24]],hype:[[0,2,24],[1,2,24]],image:[[0,8,24],[1,8,24]],image_add:[[0,4,24],[1,4,24]],image_frame:[[1,1,24]],image_list:[[0,2,24],[1,2,24]],image_list_slash:[[1,1,24]],image_spark:[[1,1,24]],image_stack:[[0,2,24],[1,2,24]],image_viewfinder:[[1,1,24]],incognito:[[0,9,24],[1,9,24]],infinity:[[1,2,24]],info_circle:[[1,9,24]],info_circle_spark:[[1,1,24]],key:[[1,5,24]],keyboard:[[0,4,24],[1,4,24]],label:[[0,4,24],[1,4,24]],label_slash:[[0,
2,24],[1,2,24]],laptop:[[1,3,24]],laptop_mobile:[[0,4,24],[1,4,24]],layout_bottom:[[1,1,24]],layout_foreground:[[1,1,24]],layout_full:[[1,1,24]],layout_left:[[1,1,24]],layout_middle:[[1,1,24]],layout_picture_in_picture:[[1,1,24]],layout_right:[[1,1,24]],layout_top:[[1,1,24]],leaf:[[1,2,24]],less_than:[[1,1,24]],less_than_n4:[[1,1,24]],less_than_or_equal_to:[[1,1,24]],license:[[0,2,24],[1,2,24]],license_alert:[[1,1,24]],license_search:[[1,1,24]],license_slash:[[1,1,24]],lightbulb:[[0,4,24],[1,4,24]],
link:[[1,7,24]],link_slash:[[1,1,24]],live:[[1,1,24]],live_photo:[[1,2,24]],location_pin:[[0,2,24],[1,2,24]],location_pin_slash:[[1,1,24]],lock:[[0,11,24],[1,11,24]],lock_clock:[[1,1,24]],lock_n2:[[1,1,24]],lock_open:[[0,4,24],[1,4,24]],magic_wand:[[0,3,24],[1,3,24]],mail:[[0,8,24],[1,8,24]],map:[[1,3,24]],medal:[[1,2,24]],medal_star:[[1,2,24]],megaphone:[[0,4,24],[1,4,24]],memberships:[[0,8,24],[1,8,24]],memberships_gift:[[1,1,24]],mention:[[1,4,24]],menu:[[1,1,24]],mic:[[0,10,24],[1,10,24]],mic_slash:[[1,
1,24]],minus:[[1,1,24]],minus_circle:[[0,2,24],[1,2,24]],minus_square:[[0,2,24],[1,2,24]],mix:[[0,2,24],[1,2,24]],mobile:[[0,4,24],[1,4,24]],mobile_arrow_down:[[1,1,24]],mobile_check:[[1,2,24]],mobile_landscape:[[0,3,24],[1,3,24]],motion:[[1,2,24]],move:[[1,2,24]],music_video:[[0,4,24],[1,4,24]],music_video_slash:[[1,1,24]],n15:[[1,1,24]],n1point2x:[[1,1,24]],n1point5x:[[1,1,24]],n1point8x:[[1,1,24]],n1x:[[1,1,24]],n2d:[[1,1,24]],n2point5x:[[1,1,24]],n2x:[[1,1,24]],n3d:[[1,1,24]],n3x:[[1,1,24]],n4d:[[1,
1,24]],n4k:[[0,1,24],[1,1,24]],n60:[[1,1,24]],n8k:[[0,1,24],[1,1,24]],new_release:[[1,1,24]],news:[[0,3,24],[1,3,24]],node_left:[[1,2,24]],node_right:[[1,2,24]],open_in_panel:[[1,1,24]],originals:[[0,1,24],[1,1,24]],overflow_horizontal:[[1,5,24]],overflow_vertical:[[1,11,24]],page_search:[[1,1,24]],paint_bucket:[[1,3,24]],paint_palette:[[1,1,24]],panels:[[0,2,24],[1,2,24]],pause:[[0,7,24],[1,7,24]],pause_circle:[[0,2,24],[1,2,24]],pause_history:[[1,1,24]],pawprint:[[1,1,24]],pdf:[[1,2,24]],pencil:[[1,
8,24]],pencil_spark:[[1,1,24]],percent:[[1,1,24]],person:[[0,6,24],[1,6,24]],person2:[[1,1,24]],person2_rectangle:[[0,1,24],[1,1,24]],person3:[[0,1,24],[1,1,24]],person_add:[[0,6,24],[1,6,24]],person_audio:[[0,1,24],[1,1,24]],person_check:[[1,1,24]],person_child:[[0,1,24],[1,1,24]],person_circle:[[1,9,24]],person_circle_slash:[[1,2,24]],person_gear:[[1,1,24]],person_shield:[[1,7,24]],person_square:[[0,1,24],[1,1,24]],person_square_stack:[[0,1,24],[1,1,24]],person_viewfinder:[[0,1,24],[1,1,24]],person_waveform:[[1,
1,24]],person_waves:[[0,1,24],[1,1,24]],person_x:[[1,1,24]],phone:[[0,2,24],[1,2,24]],piano:[[1,1,24]],picture_in_picture:[[0,2,24],[1,2,24]],picture_in_picture_stack:[[1,1,24]],pin:[[0,6,24],[1,6,24]],pin_slash:[[0,1,24],[1,1,24]],play:[[0,1,24],[1,1,24]],play_circle:[[0,1,24],[1,1,24]],play_circle_half_dashed:[[1,1,24]],play_slash:[[0,1,24],[1,1,24]],play_square_half_dashed:[[1,1,24]],play_square_stack:[[0,1,24],[1,1,24]],playables:[[0,1,24],[1,1,24]],player_default:[[0,1,24],[1,1,24]],player_full_enter:[[1,
1,24]],player_full_enter_portrait:[[1,1,24]],player_full_exit:[[1,1,24]],player_mini_enter:[[0,1,24],[1,1,24]],player_mini_exit:[[1,1,24]],player_multiview:[[0,1,24],[1,1,24]],player_switch:[[0,1,24],[1,1,24]],player_theater:[[0,1,24],[1,1,24]],playlist:[[1,1,24]],playlist_add:[[1,1,24]],playlist_audio:[[0,1,24],[1,1,24]],playlist_audio_slash:[[1,1,24]],playlist_check:[[1,1,24]],playlist_pencil:[[1,1,24]],playlist_x:[[1,1,24]],podcast:[[0,3,24],[1,3,24]],podcast_add:[[0,2,24],[1,2,24]],podcast_check:[[0,
2,24]],point2x:[[1,1,24]],point3x:[[1,1,24]],point5x:[[1,1,24]],point8x:[[1,1,24]],poll:[[1,8,24]],premium:[[0,1,24],[1,1,24]],presentation:[[1,2,24]],price_tag:[[0,7,24],[1,7,24]],price_tag_heart:[[1,2,24]],price_tag_rectangle:[[1,1,24]],qr_code:[[1,3,24]],qr_code_viewfinder:[[1,1,24]],queue:[[1,1,24]],queue_last:[[1,1,24]],queue_next:[[1,1,24]],quiz:[[0,1,24],[1,1,24]],quote:[[0,1,24],[1,1,24]],quote_slash:[[0,1,24],[1,1,24]],record:[[0,2,24]],redo:[[1,1,24]],remix:[[1,2,24]],remote_waves:[[1,1,
24]],repeat:[[0,1,24],[1,1,24]],repeat1:[[0,1,24],[1,1,24]],replay:[[1,1,24]],rotate_clockwise:[[1,1,24]],rotate_counterclockwise:[[1,1,24]],rotate_landscape:[[1,1,24]],rotate_portrait:[[1,1,24]],rss:[[1,2,24]],rss_slash:[[1,1,24]],ruby:[[1,2,24]],samples:[[0,2,24],[1,2,24]],saturation:[[1,2,24]],scale:[[1,4,24]],scissors:[[0,7,24],[1,7,24]],scissors_cut:[[1,4,24]],scribble:[[1,1,24]],sd:[[0,3,24],[1,3,24]],search:[[0,10,24],[1,10,24]],search_shield:[[0,1,24],[1,1,24]],search_spark:[[1,1,24]],seek_forward:[[0,
1,24]],seek_rewind:[[0,1,24]],send:[[0,4,24,!0],[1,4,24,!0]],shadow:[[1,1,24]],shadow_hard:[[1,2,24]],shadow_soft:[[1,2,24]],shapes:[[0,3,24],[1,3,24]],share:[[1,10,24,!0]],share_android:[[0,2,24],[1,2,24]],share_ios:[[1,2,24]],shield:[[0,6,24],[1,6,24]],shield_add:[[1,2,24]],shield_health:[[1,1,24]],shield_overflow:[[1,2,24]],shield_slash:[[1,1,24]],shield_x:[[0,2,24],[1,2,24]],shorts:[[0,2,24],[1,2,24]],shorts_empty:[[0,2,24],[1,2,24]],shuffle:[[0,2,24],[1,2,24]],skip10_back:[[1,1,24]],skip10_forward:[[1,
1,24]],skip15_back:[[1,1,24]],skip15_forward:[[1,1,24]],skip20_back:[[1,1,24]],skip20_forward:[[1,1,24]],skip30_back:[[1,1,24]],skip30_forward:[[1,1,24]],skip5_back:[[1,1,24]],skip5_forward:[[1,1,24]],skip60_back:[[1,1,24]],skip60_forward:[[1,1,24]],skip_down:[[0,5,24],[1,5,24]],skip_next:[[0,5,24],[1,5,24]],skip_previous:[[0,5,24],[1,5,24]],skip_up:[[0,5,24],[1,5,24]],slash_forward:[[1,1,24]],sleep_timer:[[0,2,24],[1,2,24]],snowflake:[[1,1,24]],soccer_ball:[[1,3,24]],sonar:[[1,1,24]],sort:[[1,1,
24]],spacebar:[[1,2,24]],spark:[[0,8,24],[1,8,24]],spark_bubble_chat:[[1,1,24]],spark_waves:[[0,2,24],[1,2,24]],sparkles:[[0,2,24],[1,2,24]],speaker:[[1,2,24]],speaker_headset:[[1,2,24]],speaker_slash:[[1,1,24]],speaker_stack:[[1,1,24]],speaker_stack_slash:[[1,1,24]],speedometer:[[0,2,24],[1,2,24]],splice:[[1,1,24]],split:[[1,4,24]],spotlight:[[0,3,24],[1,3,24]],spreadsheet:[[1,1,24]],square:[[1,1,24]],square3_stack:[[0,2,24],[1,2,24]],square3d_stack:[[0,2,24],[1,2,24]],square_grid2x2:[[1,1,24]],
square_grid3x3:[[0,2,24],[1,2,24]],square_pencil:[[0,2,24],[1,2,24]],stable_volume:[[0,2,24],[1,2,24]],star:[[0,5,24],[1,5,24]],star_circle:[[0,3,24],[1,3,24]],star_half_filled:[[1,1,24]],star_ticket:[[0,2,24],[1,2,24]],star_trophy:[[1,1,24]],star_tv:[[1,1,24]],sticker:[[1,2,24]],stop:[[0,3,24],[1,3,24]],stop_circle:[[0,2,24],[1,2,24]],stopwatch:[[0,5,24],[1,5,24]],storage:[[0,2,24],[1,2,24]],subscriptions:[[0,10,24],[1,10,24]],subtitles:[[0,4,24],[1,4,24]],subtitles_bubble:[[1,1,24]],sum:[[1,1,24]],
super_chat:[[0,8,24],[1,8,24]],super_star:[[1,1,24]],super_sticker:[[0,8,24],[1,8,24]],super_store:[[0,3,24],[1,3,24]],surround_sound:[[0,2,24],[1,2,24]],tablet_landscape:[[1,1,24]],target:[[1,2,24]],target_add:[[1,2,24]],template_add:[[1,3,24]],template_play:[[0,3,24],[1,3,24]],text_align_center:[[0,2,24],[1,2,24]],text_align_left:[[0,2,24],[1,2,24]],text_align_right:[[0,2,24],[1,2,24]],text_bubble:[[0,2,24],[1,2,24]],text_page:[[0,2,24],[1,2,24]],text_page_alert:[[1,1,24]],text_page_check:[[1,1,
24]],text_page_info:[[1,1,24]],texture:[[1,1,24]],theater:[[1,1,24]],theme:[[0,2,24],[1,2,24]],thermometer:[[1,2,24]],thumb_down:[[0,21,24],[1,21,24]],thumb_up:[[0,19,24],[1,19,24]],thumb_up_down:[[0,2,24]],tilt:[[1,4,24]],timeline:[[1,3,24]],timeline_spark:[[1,1,24]],toolbox:[[0,4,24],[1,4,24]],transcript:[[1,2,24]],transition:[[0,5,24],[1,5,24]],translate:[[1,2,24]],trash_can:[[0,9,24],[1,9,24]],trending:[[0,2,24],[1,2,24]],triangle_down:[[0,7,24],[1,7,24]],triangle_up:[[0,2,24],[1,2,24]],trophy:[[0,
3,24],[1,3,24]],truck:[[0,5,24],[1,5,24]],tv:[[0,7,24],[1,7,24]],tv_arrow_left:[[1,2,24]],tv_circle:[[0,3,24],[1,3,24]],tv_mobile:[[1,1,24]],unarchive:[[1,1,24]],undo:[[1,1,24]],upload:[[1,5,24]],variable:[[1,4,24]],video:[[0,2,24],[1,2,24]],video_camera:[[1,8,24]],video_camera_add:[[1,2,24]],video_link:[[1,4,24]],video_spark:[[1,1,24]],video_stitch:[[1,2,24]],view_column3:[[0,2,24],[1,2,24]],view_column3_row2:[[0,2,24],[1,2,24]],view_compact:[[0,2,24],[1,2,24]],view_feed:[[0,2,24],[1,2,24]],view_list:[[1,
1,24]],view_row2:[[0,2,24],[1,2,24]],view_timeline:[[1,1,24]],volume_fade:[[1,2,24]],volume_max:[[0,2,24],[1,2,24]],volume_min:[[0,2,24],[1,2,24]],volume_mute:[[0,2,24],[1,2,24]],vr:[[0,7,24],[1,7,24]],watch:[[1,1,24]],water:[[1,1,24]],waveform:[[1,2,24]],waveform_spark:[[1,1,24]],wrench:[[1,2,24]],x:[[1,9,24]],x_circle:[[0,7,24],[1,7,24]],x_octagon:[[1,2,24]],x_rectangle:[[1,1,24]],yen_sign_rectangle:[[0,2,24],[1,2,24]],youtube:[[0,2,24],[1,2,24]],youtube_kids:[[0,5,24],[1,5,24]],youtube_music:[[0,
7,24],[1,7,24]],youtube_shorts:[[0,10,24],[1,10,24]],youtube_studio:[[0,8,24],[1,8,24]],youtube_tv:[[0,8,24],[1,8,24]],zoom_in:[[0,2,24],[1,2,24]],zoom_out:[[0,2,24],[1,2,24]]};var Ey=function(F){this.iconUrlProvider=F};
Ey.prototype.resolveIcon=function(F,W){var E=F.iconName;E=E.replace(/-/g,"_");F=Object.assign({},F,{iconName:this.mapIconTypeToStandardName(E)||E.toLowerCase()});if(_.c("enable_web_delhi_icons")){var h;return jbW(wgu,F,((h=this.iconUrlProvider)==null?void 0:h.getYtStandardUrl)||Tbw,W)}var d;return jbW(YM_,F,((d=this.iconUrlProvider)==null?void 0:d.getYtStandardUrl)||rxW,W)};
Ey.prototype.mapIconTypeToStandardName=function(F){return _.c("enable_web_delhi_icons")?GLT[F.toUpperCase()]:oI_[F.toUpperCase()]};
Ey[dr]=[_.Fd(iqT)];var u2O=function(F){this.urlProvider=this.iconUrlProvider=F};
_.k(u2O,Ey);
u2O.prototype.resolveIcon=function(F,W){F.iconName==="youtube_logo"&&(F.iconName="yt-logo-updated");if(F.iconName==="youtube_premium_logo"||F.iconName==="youtube_red_logo")F.iconName="yt-logo-red-updated";var E=Object.assign({},F);F.iconName==="menu"&&(_.c("enable_web_delhi_icons")||(E.iconName="bars_3"),E.iconStyle="youtube_outline");F.iconName==="youtube_music"&&(E.iconStyle="youtube_fill");F.iconName==="mail"&&F.iconSetName==="socialNetworksRound"&&(E.iconName="email");F.iconName==="more"&&(E.iconName=
"overflow_horizontal");F.iconName==="fullscreen"&&(E.iconName="screen_full");if(F.iconName==="play_all"||F.iconName==="play_arrow")E.iconStyle="youtube_fill";F.iconName==="premium_standalone"&&(E.iconName="premium_standalone_cairo");_.c("enable_connect_icon_update_web")&&F.iconName==="account_linked"&&(E.iconName="circles_overlap_check",E.iconStyle="youtube_fill");_.c("enable_connect_icon_update_web")&&F.iconName==="account_unlinked"&&(E.iconName="circles_overlap",E.iconStyle="youtube_outline");F=
Object.assign({},E,{iconName:(Ey.prototype.mapIconTypeToStandardName.call(this,E.iconName)||E.iconName).toLowerCase()});var h;return(F=jbW(y_c,F,((h=this.urlProvider)==null?void 0:h.getUrl)||oMe,W))?F:Ey.prototype.resolveIcon.call(this,E,W)};
u2O[dr]=[_.Fd(iqT)];_.SMX=1;var hw=function(){};
_.k(hw,Jn);hw.prototype.resolveCommand=function(F){var W,E;return _.e(function(h){W=_.D(F,IEu);if(!W)return h.return();E=Number(W.enableDelayedPacfLoggingTvMs);if(isNaN(E)){var d=N2();LwO(d,W,0)}else LwO(N2(),W,E);_.gG(h)})};_.dS=function(){};
_.k(_.dS,Jn);
_.dS.prototype.resolveCommand=function(F,W){var E=this,h,d,V,R,M,g,t;return _.e(function(C){h=_.D(F,cfi);V=(d=W.form)==null?void 0:d.element;M=(R=V)==null?void 0:R.closest("ytd-enforcement-message-view-model");if(!h||!M)return C.return();E.allowAdsAction||(g=h.fundingChoiceInstructionPageUrl,E.allowAdsAction=new wbX(window,_.JH(g)));var B=E.allowAdsAction;B.wallElement=M;B.allowAdsPopup.style.setProperty("display","flex","important");var I=B.scrollManager;I.originalBodyOverflow=I.JSC$7904_domHelper.JSC$7231_document_.body.style.overflow;I.JSC$7904_domHelper.JSC$7231_document_.body.style.overflow=
"hidden";B.wallElement.style.setProperty("display","none","important");VSp(B.accessibilityManager,B.allowAdsPopup.querySelector(".fc-whitelist-dialog"));if((t=E.allowAdsAction.allowAdsPopup)&&t instanceof HTMLElement)for(B=_.U(Object.entries({position:"absolute","z-index":"10000",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),I=B.next();!I.done;I=B.next()){var x=_.U(I.value);I=x.next().value;x=x.next().value;t.style.setProperty(I,x)}_.gG(C)})};
_.dS.prototype.dispose=function(){this.allowAdsAction&&(this.allowAdsAction.tearDown(),this.allowAdsAction=void 0)};var Ng=function(){};
_.k(Ng,Jn);Ng.prototype.resolveCommand=function(F){var W;return _.e(function(E){W=_.D(F,Zi_);if(!W)return E.return();bsb(F);_.gG(E)})};var Vu=function(F){this.JSC$14966_commandHandler=F};
_.k(Vu,Jn);
Vu.prototype.resolveCommand=function(F){var W=this,E,h,d,V,R,M,g,t;return _.e(function(C){if(C.nextAddress==1){E=_.D(F,WMO);if((h=E)==null||!h.text||!navigator.clipboard)return C.return();_.Nl(C,2);return _.Q(C,navigator.clipboard.writeText(E.text),4)}if(C.nextAddress!=2){if(!E.successActions||E.successActions.length===0)return C.return();d=_.U(E.successActions);for(V=d.next();!V.done;V=d.next())R=V.value,W.JSC$14966_commandHandler.resolveCommand(R);return _.id(C,0)}_.Ml(C);if(!E.failureActions||E.failureActions.length===
0)return C.return();M=_.U(E.failureActions);for(g=M.next();!g.done;g=M.next())t=g.value,W.JSC$14966_commandHandler.resolveCommand(t);_.gG(C)})};
Vu[dr]=[_.EJ];var Uy=function(F){this.JSC$14970_commandHandler=F};
_.k(Uy,Jn);
Uy.prototype.resolveCommand=function(F,W){var E=this,h,d,V,R,M,g,t,C,B,I;return _.e(function(x){switch(x.nextAddress){case 1:h=_.D(F,Oi_);if(!h)return x.return();_.Nl(x,2);if(!h.imageBytes&&!h.imageUrl)throw Error("wi");if(!h.imageUrl){if(h.imageBytes){V=h.imageBytes;R=V.replace(/-/g,"+").replace(/_/g,"/");var A=YAS(R);d=_.cp(A)}x.jumpTo(4);break}return _.Q(x,fetch(h.imageUrl),5);case 5:return M=x.yieldResult,_.Q(x,M.blob(),6);case 6:g=x.yieldResult,d=_.cp(g);case 4:B=(t=W)==null?void 0:(C=t.form)==
null?void 0:C.element;I=document.createElement("a");Lu(I,d);B.appendChild(I);I.download="";I.click();B.removeChild(I);URL.revokeObjectURL(_.ty(d));h.successCommand&&E.JSC$14970_commandHandler.resolveCommand(h.successCommand);_.id(x,0);break;case 2:_.Ml(x),h.errorCommand&&E.JSC$14970_commandHandler.resolveCommand(h.errorCommand),_.gG(x)}})};
Uy[dr]=[_.EJ];var RF=function(F){this.store=F};
_.k(RF,Jn);RF.prototype.resolveCommand=function(F){var W=this,E,h,d;return _.e(function(V){h=(E=_.D(F,_.tfU))==null?void 0:E.entityBatchUpdate;if(!h)return V.jumpTo(0);d=Object.assign({},h,{mutations:[].concat(_.x9(h.mutations||[]))});return _.Q(V,_.CV(d,W.store),0)})};var pgi=function(F){this.JSC$14977_commandHandler=F;this.feedbackDialogMap=new Map};
pgi.prototype.openDialog=function(F,W){(F=this.feedbackDialogMap.get(F))&&this.JSC$14977_commandHandler.resolveCommand({openPopupAction:{popupType:"DIALOG",popup:F}},W)};
pgi[dr]=[_.EJ];var eZ=new _.NG("FEEDBACK_CONTROLLER_TOKEN");var Mg=new _.NG("APP_STORE_TOKEN");var gS=function(F,W){this.store=F;this.controller=W};
_.k(gS,Jn);gS.prototype.resolveCommand=function(F,W){var E=this,h,d,V,R,M,g,t,C,B,I,x,A,X,P,b,l,w;return _.e(function(G){if(G.nextAddress==1){h=_.D(F,_.yT);if(V=(d=h)==null?void 0:d.contentId)for(M=_.U(((R=h)==null?void 0:R.actions)||[]),g=M.next();!g.done;g=M.next())t=g.value,mmH(E,t,V);I=(C=W)==null?void 0:(B=C.form)==null?void 0:B.element;return _.Q(G,_.UT(I,[F]).catch(function(){}),2)}x=G.yieldResult;
((A=x)==null?0:(X=A.data)==null?0:(P=X.feedbackResponses)==null?0:P.length)&&(l=(b=x.data.feedbackResponses[0])==null?void 0:b.followUpDialog)&&V&&(w=E.controller)!=null&&w.feedbackDialogMap.set(V,l);_.gG(G)})};
var mmH=function(F,W,E){var h=_.D(W,_.Mc);if(h){h=_.U(h.commands||[]);for(var d=h.next();!d.done;d=h.next())mmH(F,d.value,E)}_.D(W,_.$J)&&F.store.dispatch(_.AG("commandEntity",JSI(E),{key:E,command:W}));_.D(W,BHp)&&F.store.dispatch(_.AG("commandEntity",JSI(E),{key:E,command:W}))};
gS[dr]=[Mg,eZ];var Qu=function(F){this.controller=F};
_.k(Qu,Jn);Qu.prototype.resolveCommand=function(F,W){var E=this,h,d,V,R;return _.e(function(M){h=_.D(F,_.jh);V=(d=h)==null?void 0:d.targetId;if(((R=h)==null?void 0:R.signal)!=="TELL_US_WHY"||!V)return M.return();E.controller.openDialog(V,W);_.gG(M)})};
Qu[dr]=[eZ];var zQ=function(F){this.store=F};
_.k(zQ,Jn);zQ.prototype.resolveCommand=function(F,W){var E=this,h,d,V,R,M,g,t;return _.e(function(C){h=_.D(F,d8r);V=(d=h)==null?void 0:d.contentId;g=(R=W)==null?void 0:(M=R.form)==null?void 0:M.element;t=_.UT(g,[F]);V&&E.undo(V);return _.Q(C,t,0)})};
zQ.prototype.undo=function(F){this.store.dispatch(_.AG("commandEntity",JSI(F),{key:F,command:void 0}))};
zQ[dr]=[Mg];var tw=function(F){this.JSC$14992_commandHandler=F};
_.k(tw,Jn);tw.prototype.resolveCommand=function(F){var W=this,E,h,d,V,R,M,g,t;return _.e(function(C){E=_.D(F,HPz);h=E.flowStateKey;d=E.validationFailureCommand;V=E.submitValidFormCommand;R=i1(_.MB,[h||""]);M=_.D(R,Jhc);((g=M)==null?0:g.isValid)&&V&&W.JSC$14992_commandHandler.resolveCommand(V);((t=M)==null?0:t.isValid)||!d||W.JSC$14992_commandHandler.resolveCommand(d);_.gG(C)})};
tw[dr]=[_.EJ];var Ca=function(F){this.innertubeTransportService=F};
_.k(Ca,Jn);Ca.prototype.resolveCommand=function(F,W){var E=this,h;return _.e(function(d){return _.Q(d,_.T_(E.innertubeTransportService,F,(h=W)==null?void 0:h.form).then(function(V){var R,M;W==null||(R=W.commandController)==null||(M=R.onSuccess)==null||M.call(R,F,V)},function(V){var R,M;
W==null||(R=W.commandController)==null||(M=R.onServerError)==null||M.call(R,F,V)}),0)})};
Ca[dr]=[_.sh];var B9=function(){};
_.k(B9,Jn);B9.prototype.resolveCommand=function(F){var W,E,h,d;return _.e(function(V){if(W=_.D(F,_.lTM)){if(E=W.gtmId)h=_.b0("GL",""),_.xE(E,h);(d=W.gtmData)&&_.kE(d)}_.gG(V)})};var v9=function(F,W){this.innertubeTransportService=F;this.JSC$15003_actionRouter=W};
_.k(v9,Jn);v9.prototype.resolveCommand=function(F){var W=this,E,h;return _.e(function(d){E=_.D(F,yfT);if(!E)return d.return();h=E.command;if(!h)return d.return();W.JSC$15003_actionRouter.triggerAction("yt-insert-rich-section-action",E);return _.Q(d,_.T_(W.innertubeTransportService,h,{disableCache:!0}),0)})};
v9[dr]=[_.sh,Wt];uvr.bind(null,a8);var KPe=uvr.bind(null,rSp);pWr.bind(null,a8);var FG_=pWr.bind(null,rSp);Fhw.bind(null,a8);var WGa=Fhw.bind(null,rSp);var IF=function(){};
_.k(IF,Jn);
IF.prototype.resolveCommand=function(F){var W,E,h,d,V,R,M,g,t,C;return _.e(function(B){W=_.D(F,Ck_);if(!W)return B.return();h=((E=W.operations)==null?void 0:E.operations)||[];d=_.U(h);for(V=d.next();!V.done;V=d.next())if(R=V.value,R.insertItemSectionContent){var I=R.insertItemSectionContent,x=I.contents||[];I.insertByPositionInSection?KPe(I.insertByPositionInSection.sectionTargetId,x,I.insertByPositionInSection.position):I.insertByRelativePositionInSection&&I.insertByRelativePositionInSection.sectionTargetId&&I.insertByRelativePositionInSection.itemTargetId&&
FG_(I.insertByRelativePositionInSection.sectionTargetId,I.insertByRelativePositionInSection.itemTargetId,x,I.insertByRelativePositionInSection.relativePosition)}else R.replaceSection?(I=R.replaceSection,x={},I.replaceByTargetId?x=I.replaceByTargetId:I.replaceByGroupId&&(x={targetId:I.replaceByGroupId.groupId,newContent:I.replaceByGroupId.newContent,undoKey:""}),x.newContent&&GsH(x.targetId,{continuationItems:[x.newContent]})):R.removeItem?(I=R.removeItem,I.removeByTargetId&&I.sectionTargetId&&WGa(I.sectionTargetId,
I.removeByTargetId.targetIds||[])):R.removeSection&&(R.removeSection.removeByTargetId?(M=void 0,EkT(((M=R.removeSection)==null?void 0:M.removeByTargetId.targetIds)||[])):R.removeSection.removeByGroupId&&(g=void 0,EkT(((g=R.removeSection)==null?void 0:g.removeByGroupId.groupIds)||[])));C=((t=W.operations)==null?void 0:t.scrollConfig)||{};hTX(C);_.gG(B)})};
var EkT=function(F){F=_.U(F);for(var W=F.next();!W.done;W=F.next())GsH(W.value,{continuationItems:[]})},hTX=function(F){if(F.scrollToItem){var W=F.scrollToItem.item||{},E=W.itemTargetId;
W=W.sectionTargetId;if(E&&W){var h=document.querySelector("[data-target-id="+W+"]"),d=h==null?void 0:h.querySelector("[data-target-id="+E+"]");h&&d&&setTimeout(function(){var V=d.offsetTop-h.offsetTop,R;if(((R=F.scrollToItem)==null?void 0:R.scrollPosition)==="SCROLL_POSITION_CENTER")V-=h.offsetHeight/2,V+=d.offsetHeight/2;else{var M;((M=F.scrollToItem)==null?void 0:M.scrollPosition)==="SCROLL_POSITION_END"&&(V-=h.offsetHeight,V+=d.offsetHeight)}h.scroll({top:V,behavior:"smooth"})},100)}}};var c9=new _.NG("CLIENT_NAME_TOKEN");var d$X=new _.NG("DEFAULT_STORE_EXPIRATION_TOKEN");var xKS=new _.NG("CLIENT_LOCATION_SERVICE_TOKEN");var Dc=function(F,W,E){this.clientName=F||_.b0("INNERTUBE_CLIENT_NAME","WEB");this.clientLocationService=W||_.nf.getInstance();this.JSC$15031_commandHandler=E||_.Ru.instance};
_.k(Dc,Jn);Dc.prototype.resolveCommand=function(F){var W=this,E,h;return _.e(function(d){h=(E=_.D(F,ssi))==null?void 0:E.onComplete;W.clientLocationService.clearLocationPlayabilityToken(W.clientName);h&&W.JSC$15031_commandHandler.resolveCommand(h);_.gG(d)})};
Dc[dr]=[c9,xKS,_.EJ];var xs=function(F){this.innertubeTransportService=F};
_.k(xs,Jn);xs.prototype.resolveCommand=function(F,W){var E=this,h,d,V,R;return _.e(function(M){V=(h=W)==null?void 0:(d=h.form)==null?void 0:d.element;return _.Q(M,_.T_(E.innertubeTransportService,F,(R=W)==null?void 0:R.form).then(function(g){rwn(V,new CustomEvent("yt-service-request-completed"),{data:g},_.b0("openPopupConfig"))}),0)})};
xs[dr]=[_.sh];var ks=function(){};
_.k(ks,Jn);ks.prototype.resolveCommand=function(F){var W,E;return _.e(function(h){W=_.D(F,bPX);E=document.querySelector("mini-app-container-view-model");if(!W||!E)return h.return();W.isPlaying?E.dispatchEvent(new Event("play")):E.dispatchEvent(new Event("pause"));_.gG(h)})};var Aw=function(){};
_.k(Aw,Jn);Aw.prototype.resolveCommand=function(F){var W,E,h,d,V,R,M;return _.e(function(g){W=_.D(F,Pp_);if((E=W)==null||!E.paramKeys)return g.return();h=W.paramKeys;d=_.y$(window.location.href);V=_.U(h);for(R=V.next();!R.done;R=V.next())M=R.value,d.JSC$7936_queryData_.remove(M);window.history.replaceState(window.history.state,document.title,d.toString());_.gG(g)})};var Nge=function(){this.dropdownMap=new Map};_.VIM=new _.NG("DROPDOWN_CONTROLLER_TOKEN");var sy=function(F){this.controller=F};
_.k(sy,Jn);sy.prototype.resolveCommand=function(F){var W=this,E,h,d,V;return _.e(function(R){E=_.D(F,gQe);if(!E)return R.return();h=E;d=h.dropdownId;V=h.selectedOptionIndex;if(d===void 0||V===void 0)return R.return();var M=W.controller.dropdownMap.get(d);M&&M(V);_.gG(R)})};
sy[dr]=[_.VIM];var La=function(F){this.controller=F};
_.k(La,Jn);La.prototype.resolveCommand=function(F){var W=this,E;return _.e(function(h){return(E=_.D(F,JJ_))?_.Q(h,W.controller.closeDialog(),0):h.return()})};
La[dr]=[_.qu];var qg=function(F){this.controller=F};
_.k(qg,Jn);qg.prototype.resolveCommand=function(F){var W=this,E,h;return _.e(function(d){E=_.D(F,zHa);if(!E)return d.return();var V,R=E.panelIdentifier||((V=E.identifier)==null?void 0:V.tag);if(!R)throw Error("xi");return(h=R)?_.Q(d,W.controller.hidePanel(h),0):d.jumpTo(0)})};
qg[dr]=[_.sL];var $s=function(F,W){this.innertubeTransportService=F;this.controller=W};
_.k($s,Jn);$s.prototype.resolveCommand=function(F){var W=this,E,h,d,V;return _.e(function(R){if(R.nextAddress==1)return E=_.D(F,t3i),(h=E)!=null&&h.panelId?_.Q(R,W.controller.getReloadContinuation(E.panelId),2):R.return();if(R.nextAddress!=3)return(d=R.yieldResult)?_.Q(R,_.T_(W.innertubeTransportService,F,{continuation:d}),3):R.return();V=R.yieldResult;return _.Q(R,W.controller.updatePanel(E.panelId,V.content,!1),0)})};
$s[dr]=[_.sh,_.sL];var Zc=function(F,W,E){this.innertubeTransportService=F;this.JSC$15067_screenManager=W;this.JSC$15067_commandHandler=E};
_.k(Zc,Jn);
Zc.prototype.resolveCommand=function(F){var W=this,E,h,d,V,R,M;return _.e(function(g){if(g.nextAddress==1){E=_.D(F,_.dHM);if(!E)return g.return();if(E.commands)for(h=_.U(E.commands),d=h.next();!d.done;d=h.next())V=d.value,W.JSC$15067_commandHandler.resolveCommand(V,{disableClickTracking:!0});R=_.ve(F.clickTrackingParams);_.QH(W.JSC$15067_screenManager,21760,R,{layer:7,parentLayer:0});return _.Q(g,_.T_(W.innertubeTransportService,F),2)}M=g.yieldResult;if(!M)return g.return();W.JSC$15067_screenManager.graftServerVe(M.trackingParams,R,
7);_.gG(g)})};
Zc[dr]=[_.sh,_.cU,_.EJ];var X9=new _.NG("PANEL_LOADING_STRATEGY_TOKEN");var H9=function(F,W){this.controller=F;this.panelLoadingStrategy=W};
_.k(H9,Jn);
H9.prototype.resolveCommand=function(F,W){var E=this,h,d,V;return _.e(function(R){h=_.D(F,Sau);if((d=h)==null||!d.panelLoadingStrategy)return R.return();V=function(M){var g,t,C,B,I,x,A,X,P;return _.e(function(b){t=_.D((g=M.dialogViewModel)==null?void 0:g.header,Q0X);C={viewModel:M.dialogViewModel};B={};if(A=_.c("web_enable_dialog_header_label")?(I=t)==null?void 0:(x=I.headline)==null?void 0:x.content:void 0)B.ariaLabel=A;h.dismissOnBackgroundTap===!1&&(B.isModal=!0);return M.dialogViewModel?_.Q(b,
E.controller.openDialog(C,(X=W)==null?void 0:(P=X.form)==null?void 0:P.element,B),0):b.return()})};
return _.Q(R,E.panelLoadingStrategy.execute({command:F,data:h.panelLoadingStrategy,renderFn:V,createScreenConfig:{layer:4}}),0)})};
H9[dr]=[_.qu,X9];var P9=function(F,W,E){this.innertubeTransportService=F;this.controller=W;this.JSC$15087_screenManager=E};
_.k(P9,Jn);
P9.prototype.resolveCommand=function(F,W){var E=this,h,d,V,R,M,g,t,C,B,I,x,A;return _.e(function(X){switch(X.nextAddress){case 1:h=_.D(F,_.nk);if(!h)return X.return();var P,b=h.panelIdentifier||((P=h.identifier)==null?void 0:P.tag);if(!b)throw Error("xi");d=b;return _.Q(X,E.controller.isVisible(d,!0),2);case 2:if((V=X.yieldResult)&&h.blockIfPanelOpen)return X.return();g=(M=(R=E.controller).getPanelContent)==null?void 0:M.call(R,d);if(!(P=g))if(h){var l;P=((l=h.globalConfiguration)==null?void 0:l.initialState)||
h.engagementPanel;if(l=!P)l=!!(h==null?0:(b=h.engagementPanelPresentationConfigs)==null?0:b.engagementPanelPopupPresentationConfig);l&&(P=_.WhG(h.panelIdentifier,h.identifier))}else P=void 0;t=P;C=h.engagementPanelPresentationConfigs;B=h.engagementPanelExtras;return _.Q(X,E.controller.showPanel(d,t,C,B,(I=W)==null?void 0:(x=I.form)==null?void 0:x.element),3);case 3:if(!h.globalConfiguration){X.jumpTo(0);break}_.QH(E.JSC$15087_screenManager,32633);return _.Q(X,_.T_(E.innertubeTransportService,F),5);
case 5:return A=X.yieldResult,E.JSC$15087_screenManager.graftServerVe(A.trackingParams),_.Q(X,E.controller.updatePanel(d,A.content,!0,B,void 0,A.updatePanelContinuationData),0)}})};
P9[dr]=[_.sh,_.sL,_.cU];var Jw=function(F,W){this.controller=F;this.panelLoadingStrategy=W};
_.k(Jw,Jn);Jw.prototype.resolveCommand=function(F,W){var E=this,h,d,V,R,M,g;return _.e(function(t){h=_.D(F,_.s8);if((d=h)==null||!d.panelLoadingStrategy)return t.return();M=U$H(E.controller,(V=W)==null?void 0:(R=V.form)==null?void 0:R.element);g=function(C){return _.e(function(B){return C.sheetViewModel?_.Q(B,E.controller.openSheet({viewModel:C.sheetViewModel},M),0):B.return()})};
return _.Q(t,E.panelLoadingStrategy.execute({command:F,data:h.panelLoadingStrategy,renderFn:g,createScreenConfig:{layer:0}}),0)})};
Jw[dr]=[_.L1,X9];var aF=function(F,W){this.controller=F;this.JSC$15095_commandHandler=W};
_.k(aF,Jn);aF.prototype.resolveCommand=function(F,W){var E=this,h,d,V;return _.e(function(R){if(R.nextAddress==1){h=_.D(F,Ioz);var M=_.D(h.showCommand,_.nk),g,t,C=(t=M==null?void 0:M.panelIdentifier)!=null?t:M==null?void 0:(g=M.identifier)==null?void 0:g.tag;if(!C)throw Error("yi");d=C;return _.Q(R,E.controller.isVisible(d),2)}return(V=R.yieldResult)?_.Q(R,E.controller.hidePanel(d),0):_.Q(R,E.JSC$15095_commandHandler.resolveCommand(h.showCommand,W),0)})};
aF[dr]=[_.sL,_.EJ];var fa=function(F,W,E){this.innertubeTransportService=F;this.controller=W;this.JSC$15098_screenManager=E};
_.k(fa,Jn);
fa.prototype.resolveCommand=function(F){var W=this,E,h,d,V,R,M,g,t,C,B,I,x,A,X,P,b,l,w,G,hr,p,UY;return _.e(function(xW){switch(xW.nextAddress){case 1:return h=E=_.D(F,cBU),d=h.targetPanelIdentifier,V=h.contentSourcePanelIdentifier,R=h.globalConfiguration,((M=d)==null?0:M.tag)&&((g=V)==null?0:g.tag)?R?_.Q(xW,W.controller.showPanel(d.tag,_.WhG(d.tag,d),void 0,void 0,void 0),5):_.Q(xW,(I=(B=W.controller).getPanel)==null?void 0:I.call(B,V.tag),4):xW.return();case 4:x=xW.yieldResult;t=(A=x)==null?void 0:
(P=(X=A).getPanelContent)==null?void 0:P.call(X);xW.jumpTo(3);break;case 5:return _.Q(xW,_.T_(W.innertubeTransportService,F),6);case 6:b=xW.yieldResult,((l=b)==null?0:l.trackingParams)&&W.JSC$15098_screenManager.graftServerVe(b.trackingParams),t=(w=b)==null?void 0:w.content,C=(G=b)==null?void 0:G.updatePanelContinuationData;case 3:if(p=(hr=t)==null?void 0:hr.engagementPanelSectionListRenderer)return _.Q(xW,W.controller.showPanel(d.tag,void 0,void 0,void 0,void 0,{content:p.content,secondaryHeaderContent:(UY=
p.header)!=null?UY:{},targetId:p.targetId},C),0);xW.jumpTo(0)}})};
fa[dr]=[_.sh,_.sL,_.cU];var Oy=function(F,W){this.JSC$15106_commandHandler=F;this.store=W};
_.k(Oy,Jn);Oy.prototype.resolveCommand=function(F){var W=this,E,h,d,V,R;return _.e(function(M){if(M.nextAddress==1)return(E=_.D(F,H3i))?_.Q(M,_.gk(),2):M.return();h=M.yieldResult;if(!h)return M.return();dVY(h,W.store,(d=E)==null?void 0:d.languageCode);V=h.isSubtitlesOn()?_.CY("CAPTION_ON_TOAST",void 0,"Subtitles/CC turned on"):_.CY("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");R=_.mf(V);W.JSC$15106_commandHandler.resolveCommand(R);_.gG(M)})};
Oy[dr]=[_.EJ,v6];var be=function(F,W){this.shortsPlayerPromise=F;this.JSC$15110_commandHandler=W};
_.k(be,Jn);
be.prototype.resolveCommand=function(F){var W=this,E,h,d,V,R,M,g,t;return _.e(function(C){if(C.nextAddress==1)return(E=_.D(F,GG_))?_.Q(C,W.shortsPlayerPromise,2):C.return();h=C.yieldResult;var B=NdY(h);B!=null&&B.length||(h.loadModule("captions"),B=NdY(h));d=B;if((V=d)==null||!V.length)return R=_.CY("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),M=_.mf(R),W.JSC$15110_commandHandler.resolveCommand(M),C.return();h.toggleSubtitles();g=h.isSubtitlesOn()?_.CY("CAPTION_ON_TOAST",void 0,
"Subtitles/CC turned on"):_.CY("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");t=_.mf(g);W.JSC$15110_commandHandler.resolveCommand(t);_.gG(C)})};
be[dr]=[_.$up,_.EJ];var le=function(F){this.JSC$15113_playerPromise=F};
_.k(le,Jn);le.prototype.resolveCommand=function(F){var W=this,E,h,d,V;return _.e(function(R){if(R.nextAddress==1)return(E=_.D(F,Brp))?_.Q(R,W.JSC$15113_playerPromise,2):R.return();h=R.yieldResult;d=h.getVideoData().video_id;E.videoId===d&&(V=Number(E.offsetFromVideoStartMilliseconds),V>=0&&h.seekTo(V/1E3));_.gG(R)})};
le[dr]=[_.Va];var RTp=_.eF("sfv_currently_playing_audio_item_key","sfvAudioItemCurrentlyPlayingEntity"),na=function(F){this.store=F};
_.k(na,Jn);
var eTp=function(F){var W,E,h,d;return _.e(function(V){if(V.nextAddress==1)return W=_.b0("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SFV_AUDIO_ITEM,E=_.b0("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_MWEB_SFV_AUDIO_ITEM,h=W||E,F.mainAppPlayer=new Yz(h),_.Q(V,F.mainAppPlayer.api,2);d=V.yieldResult;d.addEventListener("onStateChange",F.JSC$15117_playerStateChangeListener.bind(F));document.addEventListener("yt-page-data-updated",F.pauseOnNavigation.bind(F));window.addEventListener("state-navigatestart",
F.pauseOnNavigation.bind(F));_.gG(V)})};
na.prototype.JSC$15117_playerStateChangeListener=function(F){switch(F){case 0:this.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_STOPPED";break;case 1:this.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING";break;case 2:this.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_PAUSED";break;case 3:this.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_BUFFERING";break;default:this.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_UNKNOWN"}MI_(this)};
var MI_=function(F){F.store.dispatch(_.AG("sfvAudioItemCurrentlyPlayingEntity",RTp,{key:RTp,externalVideoId:F.externalVideoId,sfvAudioItemPlaybackState:F.playbackState,nowPlayingEntityValue:F.nowPlayingEntityValue}))};
na.prototype.pauseOnNavigation=function(){var F=this,W,E,h,d;return _.e(function(V){if(V.nextAddress==1){if(!F.mainAppPlayer){var R=new _.xC("Error: mainAppPlayer is unavailable",F.mainAppPlayer);_.a_(R);return V.return()}return _.Q(V,F.mainAppPlayer.api,2)}W=V.yieldResult;h=(E=W)==null?void 0:E.getPlayerState();h!==1||(d=W)!=null&&d.pauseVideo();_.gG(V)})};
na.prototype.playVideo=function(F,W,E){var h=this,d,V;return _.e(function(R){if(R.nextAddress==1)return _.Q(R,(d=h.mainAppPlayer)==null?void 0:d.api,2);V=R.yieldResult;if(!h.mainAppPlayer||!V){var M=new _.xC("Error: mainAppPlayer is unavailable",h.mainAppPlayer);_.a_(M);return R.return()}return _.Q(R,h.mainAppPlayer.loadVideoWithPlayerVars({videoId:h.externalVideoId,audio_only:"1",start:F/1E3,end:F/1E3+W,player_params:E}),0)})};
na.prototype.pauseVideo=function(){var F=this,W,E;return _.e(function(h){if(h.nextAddress==1){if(!F.mainAppPlayer){var d=new _.xC("Error: mainAppPlayer is unavailable",F.mainAppPlayer);_.a_(d);return h.return()}return _.Q(h,F.mainAppPlayer.api,2)}W=h.yieldResult;(E=W)==null||E.pauseVideo();_.gG(h)})};
na.prototype.resolveCommand=function(F){var W=this,E,h,d,V,R,M,g,t,C,B,I,x,A,X,P,b,l,w,G;return _.e(function(hr){if(hr.nextAddress==1)return E=_.D(F,iBX),d=(h=E)==null?void 0:h.nowPlayingEntityValue,R=(V=E)==null?void 0:V.externalVideoId,B=Number((C=(M=E)==null?void 0:(g=M.defaultStartPoints)==null?void 0:(t=g[0])==null?void 0:t.offsetMs)!=null?C:"0"),b=Number((P=(I=E)==null?void 0:(x=I.defaultStartPoints)==null?void 0:(A=x[0])==null?void 0:(X=A.duration)==null?void 0:X.seconds)!=null?P:"15"),G=(w=
(l=E)==null?void 0:l.playerParams)!=null?w:"",d&&R?W.mainAppPlayer?hr.jumpTo(2):_.Q(hr,eTp(W),2):hr.return();if(hr.nextAddress!=6){if(W.nowPlayingEntityValue&&d===W.nowPlayingEntityValue)return W.playbackState==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"?_.Q(hr,W.pauseVideo(),0):_.Q(hr,W.playVideo(B,b,G),0);W.externalVideoId=R;W.nowPlayingEntityValue=d;W.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_BUFFERING";return _.Q(hr,W.playVideo(B,b,G),6)}MI_(W);return hr.jumpTo(0)})};
na[dr]=[v6];var yu=function(F){this.JSC$15134_commandHandler=F};
_.k(yu,Jn);yu.prototype.resolveCommand=function(F,W){var E=this,h,d,V,R,M;return _.e(function(g){if(g.nextAddress==1)return(h=_.D(F,PxX))?_.Q(g,_.gk(),2):g.return();d=g.yieldResult;if(!d)return g.return();(V=elo(d))?E.JSC$15134_commandHandler.resolveCommand(V,W):(R=_.CY("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),M=_.mf(R),E.JSC$15134_commandHandler.resolveCommand(M));_.gG(g)})};
yu[dr]=[_.EJ];var jZ=function(F){this.JSC$15137_playerPromise=F};
_.k(jZ,Jn);jZ.prototype.resolveCommand=function(F){var W=this,E,h,d,V,R;return _.e(function(M){if(M.nextAddress==1){E=_.D(F,vZu);if(!E)return M.return();h=E.overlayRenderer;return h?(d=_.D(h,qXX))?_.Q(M,W.JSC$15137_playerPromise,3):M.jumpTo(0):M.return()}V=M.yieldResult;V.renderChapterSeekingAnimation(1,_.Yr(d.text),(R=d.icon)==null?void 0:R.iconType);_.gG(M)})};
jZ[dr]=[_.Va];var ie=function(F){this.store=F};
_.k(ie,Jn);
ie.prototype.resolveCommand=function(F){var W=this,E,h,d;return _.e(function(V){if(V.nextAddress==1){E=_.D(F,Jki);if(!E)return V.return();h="";(d=W.store.getState().collabInviteLink)&&E.id===d.playlistId?h=d.inviteLinkURL:E.shortUrl&&(h=E.shortUrl);return h?_.Q(V,navigator.clipboard.writeText(h),3):V.jumpTo(0)}var R={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.CY("COPY_LINK_SUCCESS_TOAST")}}}}};_.WZ().resolve(_.EJ).resolveCommand(R);_.gG(V)})};
ie[dr]=[Mg];var rS=function(F,W){this.innertubeTransportService=F;this.JSC$15147_commandHandler=W};
_.k(rS,Jn);rS.prototype.resolveCommand=function(F,W){var E=this,h,d,V,R,M,g,t,C,B,I;return _.e(function(x){if(x.nextAddress==1)return(h=_.D(F,_.Th))?_.Q(x,_.T_(E.innertubeTransportService,F,(d=W)==null?void 0:d.form),2):x.return();(V=x.yieldResult)&&V.errorMetadata&&(R=V,M=_.mf(R.error.message),E.JSC$15147_commandHandler.resolveCommand(M));g=V;if((t=g)==null?0:t.actions)for(C=_.U(g.actions),B=C.next();!B.done;B=C.next())I=B.value,E.JSC$15147_commandHandler.resolveCommand(I);_.gG(x)})};
rS[dr]=[_.sh,_.EJ];var TQ=function(){};
_.k(TQ,Jn);TQ.prototype.resolveCommand=function(F){var W;return _.e(function(E){W=_.D(F,sYH);if(!W)return E.return();(new v6X(W)).show();_.gG(E)})};_.oF=new _.NG("PLAYLIST_EDIT_CONTROLLER_TOKEN");var GQ=function(F,W,E,h){this.store=F;this.innertubeTransportService=W;this.controller=E;this.JSC$15155_commandHandler=h};
_.k(GQ,Jn);
GQ.prototype.resolveCommand=function(F,W){var E=this,h,d,V,R,M,g,t,C,B,I,x,A,X,P,b,l,w,G,hr,p,UY,xW,qw,Lb,jk,Jr;return _.e(function(nb){if(nb.nextAddress==1){h=_.D(F,_.lE);if(!h)return nb.return();if(h.clientActions){d=_.U(h.clientActions);for(V=d.next();!V.done;V=d.next())R=V.value,E.JSC$15155_commandHandler.resolveCommand(R);var bo,uo=W==null?void 0:(bo=W.form)==null?void 0:bo.element;uo&&_.hF(uo,"yt-dismissible-item-action",h.clientActions)}return _.Q(nb,_.T_(E.innertubeTransportService,F,(M=W)==
null?void 0:M.form),2)}if(g=nb.yieldResult)g.errorMetadata?(t=g,C=_.mf(t.error.message),E.JSC$15155_commandHandler.resolveCommand(C),"error"in g&&((B=W)==null?0:(I=B.commandController)==null?0:I.onServerError)&&((x=W)==null||(A=x.commandController)==null||A.onServerError(F,g))):(X=W)==null||(P=X.commandController)==null||(l=(b=P).onSuccess)==null||l.call(b,F,g);w=g;((G=w)==null?0:G.collaborationInviteLink)&&h.playlistId&&(_.c("web_enable_invite_collaborators_link")||_.c("enable_music_web_cairo_new_collaborators_list_and_actions"))&&
E.store.dispatch(_.dR({type:"SET_COLLAB_INVITE_LINK",payload:{playlistId:h.playlistId,inviteLinkUrl:w.collaborationInviteLink}}));((hr=w)==null?0:hr.redirectEndpoint)&&E.JSC$15155_commandHandler.resolveCommand(w.redirectEndpoint);((p=w)==null?0:(UY=p.newHeader)==null?0:UY.playlistHeaderRenderer)?gku(E.controller,w.newHeader.playlistHeaderRenderer):((xW=w)==null?0:(qw=xW.newHeader)==null?0:qw.musicEditablePlaylistDetailHeaderRenderer)&&gku(E.controller,w.newHeader.musicEditablePlaylistDetailHeaderRenderer);
E.controller.playlistVideoListElement&&((Lb=w)==null?0:(jk=Lb.playlistEditResults)==null?0:(Jr=jk[0])==null?0:Jr.playlistEditVideoAddedResultData)&&((uo=E.controller.playlistVideoListElement)==null||uo.dispatchEvent(new CustomEvent("yt-update-set-video-id",{detail:w.playlistEditResults[0].playlistEditVideoAddedResultData})));_.gG(nb)})};
GQ[dr]=[Mg,_.sh,_.oF,_.EJ];var Ys=function(F,W){this.controller=F;this.JSC$15165_commandHandler=W};
_.k(Ys,Jn);Ys.prototype.resolveCommand=function(F,W){var E=this,h,d,V;return _.e(function(R){h=_.D(F,a9c);E.controller.showRefreshPill&&((d=h)==null?0:d.command)&&(E.JSC$15165_commandHandler.resolveCommand((V=h)==null?void 0:V.command,W),E.controller.showRefreshPill=!1);_.gG(R)})};
Ys[dr]=[_.Wj,_.EJ];var wS=function(F,W){this.store=F;this.JSC$15169_commandHandler=W||_.Ru.instance};
_.k(wS,Jn);wS.prototype.resolveCommand=function(F,W){var E=this,h,d,V,R,M,g,t,C,B,I;return _.e(function(x){h=_.D(F,Ynu);d=E.store.getState().radioButtonGroup;if((V=h)==null?0:V.command)E.JSC$15169_commandHandler.resolveCommand((R=h)==null?void 0:R.command,W);else if(((M=h)==null?void 0:M.formId)===d.currentFormId)for(g=Object.values(d.commandsMap),t=_.U(g),C=t.next();!C.done;C=t.next()){B=C.value;I=_.He(B);if(!I)return x.return();E.JSC$15169_commandHandler.resolveCommand(I,W)}_.gG(x)})};
wS[dr]=[Mg];var ue=new _.NG("USER_PREFS");var SZ=function(F){this.JSC$15173_prefCookie=F};
_.k(SZ,Jn);SZ.prototype.resolveCommand=function(F){var W=this,E;return _.e(function(h){(E=_.D(F,BaU))&&typeof E.useListView==="boolean"&&(_.c5(0,155,E.useListView),W.JSC$15173_prefCookie.save());_.gG(h)})};
SZ[dr]=[ue];var pa=function(F){this.JSC$15177_prefCookie=F};
_.k(pa,Jn);pa.prototype.resolveCommand=function(F){var W=this,E,h,d,V,R;return _.e(function(M){E=_.D(F,qna);if((h=E)==null||!h.gl)return M.return();d=E.gl;V={persist_gl:"1",gl:d};W.JSC$15177_prefCookie.set("gl",d);W.JSC$15177_prefCookie.save();R=iN_(V);_.ao(R);_.gG(M)})};
pa[dr]=[ue];var mH=function(F){this.JSC$15181_prefCookie=F};
_.k(mH,Jn);mH.prototype.resolveCommand=function(F){var W=this,E,h;return _.e(function(d){E=_.D(F,OvM);if(!E)return d.return();h=!1;E.flagNum&&typeof E.value==="boolean"?(_.c5(0,E.flagNum,E.value),h=!0):E.key&&typeof E.stringValue==="string"&&(W.JSC$15181_prefCookie.set(E.key,E.stringValue),h=!0);h&&W.JSC$15181_prefCookie.save();_.gG(d)})};
mH[dr]=[ue];var Ka=new _.NG("PREF_STORAGE_PROMISE_TOKEN");var Fy=function(F){this.JSC$15185_prefStoragePromise=F};
_.k(Fy,Jn);Fy.prototype.resolveCommand=function(F){var W=this,E,h;return _.e(function(d){if(d.nextAddress==1)return(E=_.D(F,l9U))?_.Q(d,W.JSC$15185_prefStoragePromise,2):d.return();h=d.yieldResult;return h===void 0||E.key===void 0||E.value===void 0?d.return():_.Q(d,h.set(E.key,E.value),0)})};
Fy[dr]=[Ka];var Q2a=function(F){this.innertubeTransportService=F};
_.k(Q2a,Jn);Q2a.prototype.resolveCommand=function(F,W){var E=this,h,d;return _.e(function(V){(h=_.D(F,_.tte))&&h&&h.isFirstRequest&&(_.Z2("search_overview_answer"),_.P5("so_rq",void 0,"search_overview_answer"));return _.Q(V,_.T_(E.innertubeTransportService,F,(d=W)==null?void 0:d.form),0)})};
Q2a[dr]=[_.sh];var zTM=function(){};
_.k(zTM,Jn);
zTM.prototype.resolveCommand=function(F){var W,E,h,d,V,R,M,g,t;return _.e(function(C){W=_.D(F,CVO);if((E=W)==null?0:E.sectionIdentifier){if(W.scrollBehaviorType==="SCROLL_BEHAVIOR_TYPE_SCROLL_INTO_VIEW"){if(d=(h=document.getElementsByTagName(W.sectionIdentifier))==null?void 0:h.item(0))d.scrollIntoView({behavior:"smooth"}),(V=lPn(d))&&V.focus({preventScroll:!0});return C.return()}R=document.querySelector("[section-identifier="+W.sectionIdentifier+"]");M=document.querySelector("[section-identifier="+W.referenceSectionIdentifier+
"]");if(!R)return C.return();g=W.verticalScrollOffsetDp?W.verticalScrollOffsetDp:0;M&&(g-=M.offsetTop);window.scrollTo({top:R.offsetTop+g,behavior:"smooth"});(t=lPn(R))&&t.focus({preventScroll:!0})}_.gG(C)})};var WF=function(){};
_.k(WF,Jn);
WF.prototype.resolveCommand=function(F){var W,E,h,d,V,R,M;return _.e(function(g){if(g.nextAddress==1){W=_.D(F,biH);if(!W||!W.imageBytes||!navigator.clipboard)return g.return();if(W.clientShareDestination==="CLIENT_SHARE_DESTINATION_SYSTEM_SHARE_PANEL")return _.a_(Error("zi")),g.return();_.Nl(g,2);h=(E=W)==null?void 0:E.imageBytes;d=h.replace(/-/g,"+").replace(/_/g,"/");V=YAS(d);R={};M=[new ClipboardItem((R[V.type]=V,R))];return _.Q(g,navigator.clipboard.write(M),4)}if(g.nextAddress!=2)return _.id(g,0);
_.Ml(g);_.gG(g)})};var E4=function(F,W){this.innertubeTransportService=F;this.JSC$15200_commandHandler=W};
_.k(E4,Jn);E4.prototype.resolveCommand=function(F,W){var E=this,h,d,V,R,M;return _.e(function(g){if(g.nextAddress==1)return(h=_.D(F,lIz))?_.Q(g,_.T_(E.innertubeTransportService,F,(d=W)==null?void 0:d.form),2):g.return();(V=g.yieldResult)&&V.errorMetadata&&h.onFailureCommand&&E.JSC$15200_commandHandler.resolveCommand(h.onFailureCommand);R=V;((M=R)==null?0:M.shareCommand)&&E.JSC$15200_commandHandler.resolveCommand(R.shareCommand,W);_.gG(g)})};
E4[dr]=[_.sh,_.EJ];var h$=function(){};
_.k(h$,Jn);h$.prototype.resolveCommand=function(F){var W,E;return _.e(function(h){W=_.D(F,Pki);if(!W||!navigator.share)return h.return();E={url:W.url};try{return h.return(navigator.share(E))}catch(d){}_.gG(h)})};var dM=function(){};
_.k(dM,Jn);dM.prototype.resolveCommand=function(){return _.e(function(F){window.dispatchEvent(new Event("yt-playables-ack-3p-data-usage"));_.gG(F)})};var NJ=function(F){this.JSC$15210_navigationConfirmationService=F};
_.k(NJ,Jn);NJ.prototype.resolveCommand=function(){var F=this;return _.e(function(W){F.JSC$15210_navigationConfirmationService.cancelPendingNavigation();_.gG(W)})};
NJ[dr]=[C1];var V4=function(F){this.JSC$15213_screenManager=F};
_.k(V4,Jn);V4.prototype.resolveCommand=function(F,W){var E=this,h,d,V,R,M,g,t;return _.e(function(C){d=(h=W.form)==null?void 0:h.event;R=(V=W.form)==null?void 0:V.element;if(!d)throw new _.xC("Event not passed in when resolving command");M=_.U(d.composedPath());for(g=M.next();!g.done;g=M.next())if(t=g.value,t.tagName==="YT-COPY-LINK-RENDERER")return t.copyUrlToClipboard(),R&&_.jc(E.JSC$15213_screenManager,R),C.return();_.gG(C)})};
V4[dr]=[_.cU];var U4=function(){this.JSC$15217_miniAppClientDataProvider=_.WZ().resolve(_.ac)};
_.k(U4,Jn);U4.prototype.resolveCommand=function(){var F=this,W,E;return _.e(function(h){if(F.JSC$15217_miniAppClientDataProvider.clientData.has("video_id")){var d=F.JSC$15217_miniAppClientDataProvider,V=d.clientData.get("video_id");V&&d.clientData.delete("video_id");W="https://youtube.com/watch?v="+V;E=Bp(W);if(E===void 0)throw Error("Ai`"+W);_.Jy(window,E)}_.gG(h)})};var RQ=function(){};
_.k(RQ,Jn);RQ.prototype.resolveCommand=function(){return _.e(function(F){window.dispatchEvent(new Event("yt-playables-exit-mini-app-dialog-seen"));_.gG(F)})};var e1=function(){};
_.k(e1,Jn);e1.prototype.resolveCommand=function(){var F;return _.e(function(W){if(W.nextAddress==1)return _.Q(W,_.QsY(window.document.documentElement),2);(F=document.querySelector("mini-app-container-view-model iframe"))&&F.focus();_.gG(W)})};var MJ=function(F){this.JSC$15224_navigationConfirmationService=F};
_.k(MJ,Jn);
MJ.prototype.resolveCommand=function(){var F=this;return _.e(function(W){var E=F.JSC$15224_navigationConfirmationService,h=_.WZ().resolve(_.g_),d;if(((d=E.navigateParams)==null?void 0:d.data)!==void 0){var V;_.z3T(h,E.navigateParams.endpoint,E.navigateParams.data,(V=E.navigateParams.navigationType)!=null?V:1,E.navigateParams.tempData,E.navigateParams.isMiniplayer,void 0,!0);E.navigateParams=void 0;E.customConfirmationCommand=void 0}else E.navigateParams&&(h.navigate(E.navigateParams.endpoint,E.navigateParams.reload,
E.navigateParams.params,E.navigateParams.tempData,E.navigateParams.requestType,E.navigateParams.createScreenConfig,!0),E.navigateParams=void 0,E.customConfirmationCommand=void 0);_.gG(W)})};
MJ[dr]=[C1];var gM=function(){};
_.k(gM,Jn);gM.prototype.resolveCommand=function(){return _.e(function(F){window.dispatchEvent(new Event("yt-share-playable-with-high-score"));_.gG(F)})};var Q4=function(F){this.JSC$15229_prefStorage=F};
_.k(Q4,Jn);Q4.prototype.resolveCommand=function(){var F=this,W,E;return _.e(function(h){switch(h.nextAddress){case 1:return _.Q(h,F.JSC$15229_prefStorage,2);case 2:return(W=h.yieldResult)?_.Q(h,W.set("sfvle",!1),3):h.return();case 3:return _.Q(h,W.set("sfvles",!0),4);case 4:E=_.Ij(),_.c5(0,203,!1),_.c5(0,204,!0),E.save(),_.gG(h)}})};
Q4[dr]=[Ka];var zx=function(F){this.JSC$15232_prefStorage=F};
_.k(zx,Jn);zx.prototype.resolveCommand=function(){var F=this,W,E;return _.e(function(h){switch(h.nextAddress){case 1:return _.Q(h,F.JSC$15232_prefStorage,2);case 2:return(W=h.yieldResult)?_.Q(h,W.set("sfvle",!0),3):h.return();case 3:return _.Q(h,W.set("sfvles",!0),4);case 4:E=_.Ij(),_.c5(0,203,!0),_.c5(0,204,!0),E.save(),_.gG(h)}})};
zx[dr]=[Ka];var tIT=new _.NG("SNACKBAR_CONTROLLER_TOKEN");var t$=function(F){this.controller=F};
_.k(t$,Jn);t$.prototype.resolveCommand=function(F){var W=this,E,h,d;return _.e(function(V){E=_.D(F,pPM);if(!E)return V.return();h=_.D(E.content,RIu);if(!h)return V.return();var R=W.controller,M=h,g=(d=E.animationStyle)!=null?d:"SNACKBAR_ANIMATION_STYLE_DEFAULT";if(R.showSnackbarFn)R.showSnackbarFn({snackbarViewModel:M,animationStyle:g,durationMs:E.durationSeconds*1E3});else throw Error("ij");_.gG(V)})};
t$[dr]=[tIT];var Ch=function(){};
_.k(Ch,Jn);Ch.prototype.resolveCommand=function(F){var W;return _.e(function(E){W=_.D(F,bvM);if(!W||typeof W.key!=="string"||typeof W.value!=="string")return E.return();window.localStorage.setItem(W.key,W.value);_.gG(E)})};var BF=function(F){this.store=F};
_.k(BF,Jn);BF.prototype.resolveCommand=function(F){var W=this,E;return _.e(function(h){E=_.D(F,hhR);if(!E||!E.stepId||!E.token)return h.return();W.store.dispatch(X3X({stepId:E.stepId,token:E.token,isSelected:!1}));_.gG(h)})};
BF[dr]=[Mg];var vF=function(F,W,E){this.innertubeTransportService=F;this.store=W;this.JSC$15248_screenManager=E};
_.k(vF,Jn);
vF.prototype.resolveCommand=function(F){var W=this,E,h,d,V,R,M,g,t,C,B,I,x,A,X,P,b,l,w,G,hr,p,UY,xW;return _.e(function(qw){E=_.D(F,jZM);if(!E||(h=E.stepIds)==null||!h.length)return qw.return();d=W.store.getState().talkToRecs;V=[];R=[];M=_.U(E.stepIds);for(g=M.next();!g.done;g=M.next())for(t=g.value,C=void 0,(B=(C=d.stepStates[t])==null?void 0:C.userQuery)&&R.push({userQuery:B.userQuery,userQueryToken:B.token}),I=void 0,x=(I=d.stepStates[t])==null?void 0:I.selectionStates,A=_.U(Object.entries(x)),X=
A.next();!X.done;X=A.next())P=X.value,b=_.U(P),l=b.next().value,w=b.next().value,G=l,hr=w,hr.isSelected&&V.push(G);p={selectedChipTokens:V,userQueries:R,submittedStepIds:E.stepIds};UY={browseTalk2recsFormData:p};E.browseEndpoint?(xW=F,_.LK(xW,_.BB,E.browseEndpoint)):E.command&&(xW=E.command);return xW?_.Q(qw,_.T_(W.innertubeTransportService,xW,{formData:UY,disableCache:!0}).then(function(Lb){(Lb==null?0:Lb.trackingParams)&&W.JSC$15248_screenManager.graftServerVe(Lb==null?void 0:Lb.trackingParams)}),
0):qw.return()})};
vF[dr]=[_.sh,Mg,_.cU];var IQ=function(F){this.store=F};
_.k(IQ,Jn);IQ.prototype.resolveCommand=function(F){var W=this,E;return _.e(function(h){E=_.D(F,Evn);if(!E||!E.stepId||!E.token)return h.return();W.store.dispatch(X3X({stepId:E.stepId,token:E.token,isSelected:!0}));_.gG(h)})};
IQ[dr]=[Mg];var cF=function(F){this.store=F};
_.k(cF,Jn);cF.prototype.resolveCommand=function(F,W){var E=this,h,d,V,R,M;return _.e(function(g){h=_.D(F,icc);if(!h||!h.stepId||!h.userQueryToken)return g.return();M=(R=(d=W)==null?void 0:(V=d.form)==null?void 0:V.userQuery)!=null?R:"";E.store.dispatch(_.dR({type:"TALK_TO_RECS_UPDATE_USER_QUERY",payload:{stepId:h.stepId,userQueryToken:h.userQueryToken,userQuery:M}}));_.gG(g)})};
cF[dr]=[Mg];_.C2_=new _.NG("TIMELY_ACTIONS_CONTROLLER_TOKEN");var Dr=function(F){this.controller=F};
_.k(Dr,Jn);Dr.prototype.resolveCommand=function(F){var W=this,E,h,d,V;return _.e(function(R){E=_.D(F,QeU);if(!E)return R.return();h=E;d=h.id;V=h.isVisible;if(d===void 0||V===void 0)return R.return();var M;(M=W.controller.timelyActionsMap.get(d))==null||M(d,V);_.gG(R)})};
Dr[dr]=[_.C2_];var Bgc=function(){this.timelyActionsMap=new Map};var x_=function(F){this.JSC$15275_commandHandler=F};
_.k(x_,Jn);x_.prototype.resolveCommand=function(F){var W=this,E,h,d,V,R;return _.e(function(M){E=_.D(F,_.CjB);if(!E)return M.return();V=(h=E.item)==null?void 0:(d=h.notificationTextRenderer)==null?void 0:d.successResponseText;if(!V)return M.return();R=_.pV(V);W.JSC$15275_commandHandler.resolveCommand(R);_.gG(M)})};
x_[dr]=[_.EJ];var k_=function(F,W){this.innertubeTransportService=F;this.JSC$15280_playerApiPromise=W};
_.k(k_,Jn);
k_.prototype.resolveCommand=function(F){var W=this,E,h,d,V,R,M,g,t,C;return _.e(function(B){if(B.nextAddress==1)return _.Q(B,W.JSC$15280_playerApiPromise,2);E=B.yieldResult;h=E.getOption("captions","track");d=Object.assign({},_.D(F,_.doz));(R=(V=E.getVideoData())==null?void 0:V.video_id)?d.externalVideoId=R:_.i0(Error("Bi"));if((M=h)==null?0:M.languageCode)d.languageCode=h.languageCode;if((g=h)==null?0:g.kind)d.kind=h.kind;if((t=h)==null?0:t.name)d.name=h.name;C=Object.assign({},F,{getTranscriptEndpoint:d});return _.Q(B,
_.T_(W.innertubeTransportService,C),0)})};
k_[dr]=[_.sh,_.Va];var A$=function(){};
_.k(A$,Jn);A$.prototype.resolveCommand=function(F){var W,E,h,d,V,R,M,g;return _.e(function(t){W=_.D(F,GHT);if((E=W)==null||!E.paramKeyValuePairs)return t.return();h=window.location.href;d=_.U(W.paramKeyValuePairs);for(V=d.next();!V.done;V=d.next())R=V.value,R.key&&R.value&&(M={},h=_.YF(h,(M[R.key]=R.value,M)));g=_.WZ().resolve(_.QC);_.g7(g,h);_.gG(t)})};var s4=function(F,W){this.JSC$15287_commandHandler=F;this.innertubeTransportService=W};
_.k(s4,Jn);
s4.prototype.resolveCommand=function(F,W){var E=this,h,d,V,R,M,g,t,C,B,I,x,A,X,P,b,l,w;return _.e(function(G){switch(G.nextAddress){case 1:return(V=(h=W)==null?void 0:(d=h.form)==null?void 0:d.element)&&_.W6(V),R=_.Ij().get("hl"),M="",_.Nl(G,2),_.Q(G,zlI(R),4);case 4:M=G.yieldResult;_.id(G,3);break;case 2:return _.Ml(G),V&&_.EZ(V),_.a_(Error("Di"),"ERROR"),G.return();case 3:g=_.D(F,fTT);if(!g)return V&&_.EZ(V),G.return();(B=(t=g.commerceActionConfig)==null?void 0:(C=t.commandLifeCycleConfig)==null?
void 0:C.onStartCommand)&&E.JSC$15287_commandHandler.resolveCommand(B);return _.Q(G,_.T_(E.innertubeTransportService,F,{client_data:{paymentsClientToken:{token:M}}}),5);case 5:(I=G.yieldResult)?(V&&_.EZ(V),((P=I)==null?0:P.command)&&E.JSC$15287_commandHandler.resolveCommand(I.command),(w=(b=g.commerceActionConfig)==null?void 0:(l=b.commandLifeCycleConfig)==null?void 0:l.onSuccessCommand)&&E.JSC$15287_commandHandler.resolveCommand(w)):(V&&_.EZ(V),_.a_(Error("Ei")),(X=(x=g.commerceActionConfig)==null?
void 0:(A=x.commandLifeCycleConfig)==null?void 0:A.onFailureCommand)&&E.JSC$15287_commandHandler.resolveCommand(X)),_.gG(G)}})};
s4[dr]=[_.EJ,_.sh];var Lh=function(F,W,E){this.store=F;this.JSC$15303_commandHandler=W;this.innertubeTransportService=E};
_.k(Lh,Jn);
Lh.prototype.resolveCommand=function(F,W){var E=this,h,d,V,R,M,g,t,C,B;return _.e(function(I){h=_.D(F,Ooi);d=h.googlePaymentPayload;h.onStartCommand&&E.JSC$15303_commandHandler.resolveCommand(h.onStartCommand);V=d.encryptedPurchaseParams;R=d.ypcLogWalletAnalyticDataEndpoint;M=h.serializedTransactionFlowLoggingParams;g=d.serializedPaymentsClientParams;t=h.ypcCujContext;B=Bdb(E.innertubeTransportService,(C=W)==null?void 0:C.form,V,R,M,g,t);return I.return(B.then(function(x){toG(W==null?void 0:W.form,
!1);var A=E.store,X=E.JSC$15303_commandHandler,P=x.integratorData;P==null||P===""||x.error!=null?(String(x.error)==="-1"&&h.onDismissCommand?X.resolveCommand(h.onDismissCommand):String(x.error)!=="-1"&&h.onFailureCommand&&X.resolveCommand(h.onFailureCommand),String(x.error)!=="-1"&&String(x.error)!=="132"&&_.a_(Error("Fi"),"ERROR")):(h.googlePaymentEntityKey&&A.dispatch(_.AG("commerceAcquisitionClientPayloadEntity",h.googlePaymentEntityKey,{key:h.googlePaymentEntityKey,commerceAcquisitionClientPayload:{googlePaymentClientPayload:{paymentsPayload:P,
fundsGuaranteeCallbackClientData:x.integratorClientCallbackData}}})),h.onSuccessCommand&&X.resolveCommand(h.onSuccessCommand));_.e7()},function(x){toG(W==null?void 0:W.form,!1);
_.a_(x,"ERROR");h.onFailureCommand&&E.JSC$15303_commandHandler.resolveCommand(h.onFailureCommand)}))})};
Lh[dr]=[v6,_.EJ,_.sh];var qJ=function(F,W){this.JSC$15307_commandHandler=F;this.purchaseManager=W};
_.k(qJ,Jn);
qJ.prototype.resolveCommand=function(F){var W=this,E,h,d,V,R,M,g,t,C;return _.e(function(B){E=_.D(F,bop);((h=E)==null?0:(d=h.commandLifeCycleConfig)==null?0:d.onStartCommand)&&W.JSC$15307_commandHandler.resolveCommand(E.commandLifeCycleConfig.onStartCommand);if(!((V=E)==null?0:(R=V.googlePaymentPurchaseManagerPayload)==null?0:R.securePayloadBytes))return _.a_(Error("Gi"),"ERROR"),B.return();M=NR_(_.CT(E.googlePaymentPurchaseManagerPayload.securePayloadBytes));g=_.Ij().get("hl");t=_.G_();LPO(M.serialize(),
g,function(I){t.resolve(I)},function(I){t.reject(I)},t.resolve);
C=t.promise;return B.return(C.then(function(I){if(I)if(I==null?0:I.errorCode){_.a_(Error("Hi`"+I.errorCode),"ERROR");var x,A;((x=E)==null?0:(A=x.commandLifeCycleConfig)==null?0:A.onFailureCommand)&&W.JSC$15307_commandHandler.resolveCommand(E.commandLifeCycleConfig.onFailureCommand)}else if(I==null?0:I.isCancelled){var X,P;((X=E)==null?0:(P=X.commandLifeCycleConfig)==null?0:P.onCancelCommand)&&W.JSC$15307_commandHandler.resolveCommand(E.commandLifeCycleConfig.onCancelCommand)}else{var b,l;((b=E)==
null?0:(l=b.commandLifeCycleConfig)==null?0:l.onSuccessCommand)&&W.JSC$15307_commandHandler.resolveCommand(E.commandLifeCycleConfig.onSuccessCommand)}},function(I){_.a_(I,"ERROR");
var x,A;((x=E)==null?0:(A=x.commandLifeCycleConfig)==null?0:A.onFailureCommand)&&W.JSC$15307_commandHandler.resolveCommand(E.commandLifeCycleConfig.onFailureCommand)}))})};
qJ[dr]=[_.EJ,qMu];var vke=function(F,W){this.JSC$15315_commandHandler=F;this.commandAllowlistOverride=W;var E;this.commandAllowlist=(E=this.commandAllowlistOverride)!=null?E:YY};
vke.prototype.handleResponse=function(F,W,E){var h,d=W==null?void 0:(h=W.config)==null?void 0:h.command;if(!d||this.commandAllowlist.some(function(V){return!!_.D(d,V)})){W=void 0;
E!==void 0&&(W={form:{element:E}});F.onResponseReceivedCommand&&this.JSC$15315_commandHandler.resolveCommand(F.onResponseReceivedCommand,W);F.onResponseReceivedAction&&this.JSC$15315_commandHandler.resolveCommand(F.onResponseReceivedAction,W);F.onResponseReceivedEndpoint&&this.JSC$15315_commandHandler.resolveCommand(F.onResponseReceivedEndpoint,W);F.command&&this.JSC$15315_commandHandler.resolveCommand(F.command,W);if(F.onResponseReceivedCommands)for(E=_.U(F.onResponseReceivedCommands),h=E.next();!h.done;h=
E.next())this.JSC$15315_commandHandler.resolveCommand(h.value,W);if(F.onResponseReceivedActions)for(E=_.U(F.onResponseReceivedActions),h=E.next();!h.done;h=E.next())this.JSC$15315_commandHandler.resolveCommand(h.value,W);if(F.onResponseReceivedEndpoints)for(E=_.U(F.onResponseReceivedEndpoints),h=E.next();!h.done;h=E.next())this.JSC$15315_commandHandler.resolveCommand(h.value,W);if(F.actions)for(F=_.U(F.actions),E=F.next();!E.done;E=F.next())this.JSC$15315_commandHandler.resolveCommand(E.value,W)}};
vke[dr]=[_.EJ,_.Fd(HhY)];var I8M=new _.NG("INNERTUBE_TOKEN_SERVICE");var cXi=new _.NG("SCHEDULER_TOKEN");var D$c=function(F){this.scheduler=F;F={};this.tokenMap=(F.app={},F.user={},F)};
D$c.prototype.handleResponse=function(F,W){if(!W)throw Error("Ii");var E;if(F=(E=F.responseContext)==null?void 0:E.innertubeTokenJar){if(F.appTokens){var h,d,V;E=(h=W.innerTubeRequest.context)==null?void 0:(d=h.request)==null?void 0:(V=d.innertubeTokenJar)==null?void 0:V.appTokens;x$O(this,F.appTokens,this.tokenMap.app,E)}if(F.userTokens){var R,M,g;W=(R=W.innerTubeRequest.context)==null?void 0:(M=R.request)==null?void 0:(g=M.innertubeTokenJar)==null?void 0:g.userTokens;x$O(this,F.userTokens,this.tokenMap.user,
W)}}};
D$c.prototype.processContext=function(F){F.request||(F.request={});var W=Object.keys(this.tokenMap.app).length,E=Object.keys(this.tokenMap.user).length;if(W||E)F.request.innertubeTokenJar={},W&&(F.request.innertubeTokenJar.appTokens=[].concat(_.x9(Object.values(this.tokenMap.app).flat()))),E&&(F.request.innertubeTokenJar.userTokens=[].concat(_.x9(Object.values(this.tokenMap.user).flat())))};
var x$O=function(F,W,E,h){W=_.U(W);for(var d=W.next(),V={};!d.done;V={token$jscomp$137:void 0},d=W.next()){V.token$jscomp$137=d.value;if(V.token$jscomp$137.type===void 0)throw new _.xC("InnerTube token has no type",V.token$jscomp$137);if(V.token$jscomp$137.clearTokens)E[V.token$jscomp$137.type]=[];else if(V.token$jscomp$137.value!==void 0){E[V.token$jscomp$137.type]||(E[V.token$jscomp$137.type]=[]);if(h!==void 0&&h.length){d=_.U(h);for(var R=d.next(),M={};!R.done;M={requestToken:void 0},R=d.next())M.requestToken=
R.value,R=E[V.token$jscomp$137.type].findIndex(function(g){return function(t){return t===g.requestToken||(0,_.xd.equals)(t,g.requestToken)}}(M)),R>-1&&E[V.token$jscomp$137.type].splice(R,1)}E[V.token$jscomp$137.type].push(V.token$jscomp$137);
V.token$jscomp$137.maxAgeSeconds&&Number(V.token$jscomp$137.maxAgeSeconds)>0&&F.scheduler.addLowPriorityJob(function(g){return function(){var t=E[g.token$jscomp$137.type].indexOf(g.token$jscomp$137);t>-1&&E[g.token$jscomp$137.type].splice(t,1)}}(V),Number(V.token$jscomp$137.maxAgeSeconds)*1E3)}else throw new _.xC("InnerTube token has no value",V.token$jscomp$137);
}};
D$c[dr]=[cXi];var ke_=new _.NG("LOCAL_INNERTUBE_ROUTER_TOKEN"),AX_=new _.NG("LOCAL_INNERTUBE_SERVICE_MAP_TOKEN");var $_=function(F){this.serviceMap=F};
$_.prototype.shouldPreferLocalResponse=function(F,W){return(F=s2e(this,F))?F.shouldPreferLocalResponse(W):!1};
$_.prototype.localInnertubeResponse=function(F,W){var E=this,h;return _.e(function(d){return(h=s2e(E,F))?d.return(h.localInnertubeResponse(W)):d.return(Promise.reject(Error("Ji")))})};
$_.prototype.canProvideFallbackResponse=function(F,W){return(F=s2e(this,F))?F.canProvideFallbackResponse(W):!1};
$_.prototype.localFallbackInnertubeResponse=function(F,W){var E=this,h;return _.e(function(d){return(h=s2e(E,F))?d.return(h.localFallbackInnertubeResponse(W)):d.return(Promise.reject(Error("Ji")))})};
var s2e=function(F,W){W=_.gV(W);return W?(F=F.serviceMap[W])?F:null:null};
$_[dr]=[AX_];var H6=function(){};
H6.prototype.shouldPreferLocalResponse=function(){return!1};
H6.prototype.localInnertubeResponse=function(){return _.e(function(F){return F.return(Promise.reject(Error("Ki")))})};
H6.prototype.canProvideFallbackResponse=function(){return!0};
H6.prototype.localFallbackInnertubeResponse=function(){var F,W,E;return _.e(function(h){F=JD("CLOSE_POPUP");W={openPopupAction:IXS()};E={actions:[F,W]};return h.return(E)})};var Y1k=function(F,W){this.JSC$15365_upliftPromise=F;this.store=W};
_.N=Y1k.prototype;_.N.shouldPreferLocalResponse=function(F){var W=F.videoId,E;if(E=W)E=ddY(this.store.getState().entities,F.videoId);return E&&NNY(this.store.getState().entities,W)?DVw(this.store.getState().entities,F.playlistId):!1};
_.N.localInnertubeResponse=function(F){var W=this,E;return _.e(function(h){return(E=W.getPlayerResponse(F))?h.return(Promise.resolve(E)):h.return(Promise.reject(Error("Li")))})};
_.N.canProvideFallbackResponse=function(F){return!!F.videoId};
_.N.localFallbackInnertubeResponse=function(F){var W=this,E;return _.e(function(h){if(h.nextAddress==1)return _.Q(h,W.JSC$15365_upliftPromise,2);E=W.getPlayerResponse(F);var d;E?d=h.return(Promise.resolve(E)):d=kr(W.store.getState().entities,F.videoId)?h.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.Wz(_.CY("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),proceedButton:{buttonRenderer:fwo()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}}):
h.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.Wz(_.CY("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),proceedButton:{buttonRenderer:awY()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}});return d})};
_.N.getPlayerResponse=function(F){return RLb(this.store.getState().entities,F.videoId)};var ZB=function(F,W){this.localPlayerService=F;this.localWatchNextService=W};
ZB.prototype.shouldPreferLocalResponse=function(F){var W=F.playerRequest;F=F.watchNextRequest;return!!(W&&this.localPlayerService.shouldPreferLocalResponse(W)&&F&&this.localWatchNextService.shouldPreferLocalResponse(F))};
ZB.prototype.localInnertubeResponse=function(F){var W=this,E,h,d,V;return _.e(function(R){if(R.nextAddress==1){E=F.playerRequest;h=F.watchNextRequest;if(!E||!h)throw new _.xC("Missing streaming request",F);return _.Q(R,W.localPlayerService.localInnertubeResponse(E),2)}if(R.nextAddress!=3)return d=R.yieldResult,_.Q(R,W.localWatchNextService.localInnertubeResponse(h),3);V=R.yieldResult;return R.return({playerResponse:d,watchNextResponse:V})})};
ZB.prototype.canProvideFallbackResponse=function(F){var W=F.playerRequest;F=F.watchNextRequest;return!!(W&&this.localPlayerService.canProvideFallbackResponse(W)&&F&&this.localWatchNextService.canProvideFallbackResponse(F))};
ZB.prototype.localFallbackInnertubeResponse=function(F){var W=this,E,h,d,V;return _.e(function(R){if(R.nextAddress==1)return E=F.playerRequest,h=F.watchNextRequest,E&&h?_.Q(R,W.localPlayerService.localFallbackInnertubeResponse(E),2):R.return(Promise.reject(new _.xC("Missing streaming request",F)));if(R.nextAddress!=3)return d=R.yieldResult,_.Q(R,W.localWatchNextService.localFallbackInnertubeResponse(h),3);V=R.yieldResult;return R.return({playerResponse:d,watchNextResponse:V})})};var Lk=function(F){this.JSC$15375_persistentStorePromiseAccessor=F};
Lk.prototype.shouldPreferLocalResponse=function(){return!1};
Lk.prototype.localInnertubeResponse=function(){return _.e(function(F){return F.return(Promise.reject(Error("Mi")))})};
Lk.prototype.canProvideFallbackResponse=function(){return!0};
Lk.prototype.localFallbackInnertubeResponse=function(){var F=this,W,E;return _.e(function(h){return h.nextAddress==1?_.Q(h,F.JSC$15375_persistentStorePromiseAccessor(),2):h.nextAddress!=3?(W=h.yieldResult)?_.Q(h,W.get("service:guide:fallback"),3):h.return(Promise.reject(Error("Ni"))):(E=h.yieldResult)&&_.Ck(E)?h.return(xVr(_.Ck(E))):h.return(Promise.reject(Error("Oi")))})};var P6=function(){};
P6.prototype.shouldPreferLocalResponse=function(){return!1};
P6.prototype.localInnertubeResponse=function(){return _.e(function(F){return F.return(Promise.reject(Error("Pi")))})};
P6.prototype.canProvideFallbackResponse=function(){return!0};
P6.prototype.localFallbackInnertubeResponse=function(){var F,W,E;return _.e(function(h){F=JD("CLOSE_POPUP");W={openPopupAction:IXS()};E={actions:[F,W]};return h.return(E)})};var sZ=function(){this.urlMap=LG_;this.fallbackCommand=_.xQ};
sZ.prototype.shouldPreferLocalResponse=function(F){return(F=F.url)?!!qFU(this,F):!1};
sZ.prototype.localInnertubeResponse=function(F){var W=this,E;return _.e(function(h){return(E=F.url)?h.return($$B(F,qFU(W,E))):h.return(Promise.reject(Error("Qi")))})};
sZ.prototype.canProvideFallbackResponse=function(){return!0};
sZ.prototype.localFallbackInnertubeResponse=function(F){var W=this,E,h,d,V,R,M,g;return _.e(function(t){E=F.url;if(!E)return t.return($$B(F,W.fallbackCommand));if(h=qFU(W,E))return t.return($$B(F,h));d=void 0;V=_.gV(E);V==="/watch"&&(R=_.lg(E,"v"))&&(g=(M=_.lg(E,"list"))!=null?M:void 0,d=_.FD(R,g));d||(d=W.fallbackCommand);return t.return($$B(F,d))})};
var qFU=function(F,W){if(W)return F.urlMap[_.jr(W)]},$$B=function(F,W){W&&F.parentTrackingParams&&(W.commandMetadata=Object.assign({},{resolveUrlCommandMetadata:{parentTrackingParams:F.parentTrackingParams}},W.commandMetadata));
return Promise.resolve({responseContext:{},endpoint:W})};var qB=function(F,W,E){this.JSC$15385_upliftPromise=F;this.store=W;this.JSC$15385_persistentStorePromiseAccessor=E};
qB.prototype.shouldPreferLocalResponse=function(){return!1};
qB.prototype.localInnertubeResponse=function(){return _.e(function(F){return F.return(Promise.reject(Error("Ri")))})};
qB.prototype.canProvideFallbackResponse=function(){return!0};
qB.prototype.localFallbackInnertubeResponse=function(){var F=this;return _.e(function(W){return W.return(Z0e(F))})};
var Z0e=function(F){var W,E;return _.e(function(h){if(h.nextAddress==1)return _.Q(h,tU(F.JSC$15385_upliftPromise,F.store),2);W=h.yieldResult;E={twoColumnSearchResultsRenderer:{primaryContents:{sectionListRenderer:{contents:[c0R(W)]}}}};return h.return(XRX(F,E))})},XRX=function(F,W){var E,h;
return _.e(function(d){if(d.nextAddress==1)return _.Q(d,F.JSC$15385_persistentStorePromiseAccessor(),2);if(d.nextAddress!=3)return E=d.yieldResult,_.Q(d,B6(E),3);h=d.yieldResult;return d.return({responseContext:{},contents:W,topbar:h})})};var kP=function(F,W,E){this.JSC$15392_upliftPromise=F;this.store=W;this.JSC$15392_persistentStorePromiseAccessor=E};
kP.prototype.shouldPreferLocalResponse=function(F){var W=F.videoId;return W&&ddY(this.store.getState().entities,W)&&NNY(this.store.getState().entities,W)?DVw(this.store.getState().entities,F.playlistId):!1};
kP.prototype.localInnertubeResponse=function(F){var W=this,E,h;return _.e(function(d){if(d.nextAddress==1)return(E=F.videoId)?_.Q(d,W.JSC$15392_upliftPromise,2):d.return(Promise.reject(Error("Si")));if(d.nextAddress!=3)return _.Q(d,H0a(W,F,E),3);h=d.yieldResult;return d.return(P2T(W,h,E))})};
kP.prototype.canProvideFallbackResponse=function(F){return F.videoId?!0:!1};
kP.prototype.localFallbackInnertubeResponse=function(F){var W=this,E,h,d,V;return _.e(function(R){switch(R.nextAddress){case 1:return(E=F.videoId)?_.Q(R,W.JSC$15392_upliftPromise,2):R.return(Promise.reject(Error("Si")));case 2:return _.Q(R,H0a(W,F,E),3);case 3:h=R.yieldResult;if(kr(W.store.getState().entities,E)){R.jumpTo(4);break}return _.Q(R,tU(W.JSC$15392_upliftPromise,W.store),5);case 5:return d=R.yieldResult,R.return(JXX(h,d));case 4:return ddY(W.store.getState().entities,E)&&NNY(W.store.getState().entities,
E)?R.return(P2T(W,h,E)):(V={title:_.Wz(_.CY("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:fwo()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:236655}}},R.return(JXX(h,V)))}})};
var H0a=function(F,W,E){var h,d,V,R,M;return _.e(function(g){if(g.nextAddress==1)return h=W.playlistId,d=_.FD(E,h),_.Q(g,F.JSC$15392_persistentStorePromiseAccessor(),2);if(g.nextAddress!=3)return V=g.yieldResult,_.Q(g,B6(V),3);R=g.yieldResult;M={responseContext:{},currentVideoEndpoint:d,topbar:R};return g.return(M)})},P2T=function(F,W,E){if(F=kr(F.store.getState().entities,E)){var h;
E=F.videoEntity;var d,V={title:E_(E.title),viewCount:{videoViewCountRenderer:{shortViewCount:_.hE((h=E.localizedStrings)==null?void 0:h.viewCount),viewCount:_.hE((d=E.localizedStrings)==null?void 0:d.viewCount)}}};E.publishedTimestampMillis&&(V.dateText=_.hE(Sar(new Date(Number(E.publishedTimestampMillis)))));h={videoPrimaryInfoRenderer:V};d=F.videoEntity;F=F.channelEntity;F={videoSecondaryInfoRenderer:{defaultExpanded:!1,descriptionCollapsedLines:3,showMoreText:E_(_.CY("SHOW_MORE",void 0,"Show more")),
showLessText:E_(_.CY("SHOW_LESS",void 0,"Show less")),description:d.formattedDescription,owner:{videoOwnerRenderer:{title:E_(F.title),thumbnail:F.avatar}}}};W.contents={twoColumnWatchNextResults:{results:{results:{contents:[h,F]}}}}}return W},JXX=function(F,W){F.contents={singleColumnWatchNextResults:{results:{results:{contents:[c0R(W)]}}}};
return F};var $P=function(F,W,E){this.JSC$15398_upliftPromise=F;this.store=W;this.JSC$15398_persistentStorePromiseAccessor=E};
$P.prototype.shouldPreferLocalResponse=function(){return!1};
$P.prototype.localInnertubeResponse=function(){return _.e(function(F){return F.return(Promise.reject(Error("Ti")))})};
$P.prototype.canProvideFallbackResponse=function(){return!0};
$P.prototype.localFallbackInnertubeResponse=function(){var F=this,W,E,h,d;return _.e(function(V){switch(V.nextAddress){case 1:return _.Q(V,F.JSC$15398_persistentStorePromiseAccessor(),2);case 2:return W=V.yieldResult,_.Q(V,B6(W),3);case 3:return E=V.yieldResult,h={responseContext:{},topbar:E},_.Q(V,F.JSC$15398_upliftPromise,4);case 4:return _.Q(V,tU(F.JSC$15398_upliftPromise,F.store),5);case 5:return d=V.yieldResult,h.watchStatus={backgroundPromoRenderer:d},V.return(h)}})};var a8B=new _.NG("ENDPOINT_MAP");var f8i=function(){var F=this;this.sequenceMap=new Map;this.TEST_ONLY={getSequenceMap:function(){return F.sequenceMap}}},zYa=function(F,W,E){var h,d=(h=W.config)==null?void 0:h.sequenceStrategy;
if(!d)return E();F.sequenceMap.has(d.sequenceKey)||F.sequenceMap.set(d.sequenceKey,[]);F=F.sequenceMap.get(d.sequenceKey);switch(d.sequenceType){case "REQUEST_SEQUENCE_TYPE_APPEND":return O0a(F,W,E);case "REQUEST_SEQUENCE_TYPE_REPLACE":return b0_(F,W,E);default:throw new _.xC("Request could not be sequenced",W);}},O0a=function(F,W,E){var h,d,V;
return _.e(function(R){F.length>0?(d=F[F.length-1],h=d.responsePromise.then(function(){return E()})):h=E();
V={request:W,responsePromise:h};F.push(V);l8T(F,V);return R.return(V.responsePromise)})},b0_=function(F,W,E){E=E();
if(F.length>0)for(var h=_.U(F),d=h.next();!d.done;d=h.next())d.value.responsePromise=E;var V={request:W,responsePromise:E};F.push(V);l8T(F,V);return Promise.resolve().then(function(){return F.indexOf(V)>0?V.responsePromise.then(function(R){return Object.assign({},R,{sequenceMetaData:{skipProcessing:!0}})}):V.responsePromise})},l8T=function(F,W){W.responsePromise.then(function(){var E=F.indexOf(W);
E>-1&&F.splice(E,1)})};var nkc=new _.NG("REQUEST_SEQUENCING");var Zr=function(){};
_.k(Zr,XM);Zr.prototype.getApiPaths=function(){return[]};
Zr.prototype.getExtension=function(F){return _.D(F,Uap)};
Zr.prototype.JSC$11812_buildRequest=function(F,W){F.recaptchaToken=W.recaptchaToken};
Zr.prototype.getApiUrl=function(){return"/das_captcha"};var Xy=function(){};
_.k(Xy,XM);Xy.prototype.getApiPaths=function(){return azi};
Xy.prototype.getExtension=function(F){return _.D(F,Ocz)};
Xy.prototype.JSC$11812_buildRequest=function(F,W,E){E=E===void 0?{}:E;W.createBackstagePostParams&&(F.createBackstagePostParams=W.createBackstagePostParams);E.comment_text&&(F.commentText=E.comment_text);if(E.attached_video_id)F.videoAttachment={videoId:E.attached_video_id};else if(E.image_poll_options)F.pollAttachmentData={options:E.image_poll_options};else if(E.poll_options)F.pollAttachment={choices:E.poll_options};else if(E.quiz_options)F.quizAttachmentData={options:E.quiz_options};else if(E.image_blob_id)F.imageAttachment=
{encryptedBlobId:E.image_blob_id},E.source_video_id&&(F.imageAttachment.sourceExternalVideoId=E.source_video_id),E.image_preview_coordinates&&(F.imageAttachment.previewCoordinates=JSON.parse(E.image_preview_coordinates));else if(E.images_data)F.imagesAttachment={imagesData:E.images_data};else if(E.clip_external_video_id!==void 0||E.clip_offset_ms!==void 0||E.clip_duration_ms!==void 0){var h,d,V,R,M;F.clipAttachment={externalVideoId:(V=E.clip_external_video_id)!=null?V:"",offsetMs:(R=(h=E.clip_offset_ms)==
null?void 0:h.toString())!=null?R:"",durationMs:(M=(d=E.clip_duration_ms)==null?void 0:d.toString())!=null?M:""}}else E.shared_post_id&&(F.sharedPostAttachment={postId:E.shared_post_id});E.tagged_video_id&&(F.postCreationData={taggedVideoId:E.tagged_video_id});E.access_restrictions&&(typeof E.access_restrictions==="number"&&(W=E.access_restrictions,F.accessRestrictions={restriction:W!==1&&W===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"}),typeof E.access_restrictions==="string"&&
(F.accessRestrictionsParams=E.access_restrictions));E.scheduled_publish_time_sec&&(F.scheduledPublishTimeSec=E.scheduled_publish_time_sec.toString())};var HF=function(){};
_.k(HF,XM);HF.prototype.getApiPaths=function(){return jvu};
HF.prototype.getExtension=function(F){return _.D(F,yBM)};
HF.prototype.JSC$11812_buildRequest=function(F,W,E){E=E===void 0?{}:E;W.decorateMessageParams&&(F.params=W.decorateMessageParams);E.text&&(F.text=E.text)};var PF=function(){};
_.k(PF,XM);PF.prototype.getApiPaths=function(){return U4_};
PF.prototype.getExtension=function(F){return _.D(F,bcX)};
PF.prototype.JSC$11812_buildRequest=function(F,W,E){E=E===void 0?{}:E;E.video_id&&(F.videoId=E.video_id)};var J$=function(){};
_.k(J$,XM);J$.prototype.getApiPaths=function(){return zJz};
J$.prototype.getExtension=function(F){return _.D(F,_.Q7)};
J$.prototype.JSC$11812_buildRequest=function(F,W,E){E.suggestions_query&&(F.input=E.suggestions_query)};var aQ=function(){};
_.k(aQ,XM);aQ.prototype.getApiPaths=function(){return GfH};
aQ.prototype.getExtension=function(F){return _.D(F,lEz)};
aQ.prototype.JSC$11812_buildRequest=function(F,W,E){E.comment_text!==void 0&&(F.commentText=E.comment_text);E.scheduled_publish_time_sec&&(F.scheduledPublishTimeSec=E.scheduled_publish_time_sec.toString());F.updateBackstagePostParams=W.updateBackstagePostParams};var fh=function(){};
_.k(fh,XM);fh.prototype.getApiPaths=function(){return RV};
fh.prototype.getExtension=function(F){return _.D(F,_.fQ)};
fh.prototype.JSC$11812_buildRequest=function(F,W,E){E.formData&&(F.formData=E.formData);W.token?F.continuation=W.token:W.continuationTokenKey&&(E=_.uC().getState(),W=_.Mn(E.entities,"continuationTokenEntity",W.continuationTokenKey))&&(F.continuation=String(W.continuationToken))};
var yXu=function(){};
_.k(yXu,XM);_.N=yXu.prototype;_.N.getApiPaths=function(){return RV};
_.N.getExtension=function(F){return _.D(F,_.BB)};
_.N.isNavigationCommand=function(){return!0};
_.N.JSC$11819_getStoreKey=function(F){if((F=this.getExtension(F))&&F.browseId){var W={browseId:F.browseId};F.browseEndpointContextSupportedConfigs&&(W.browseEndpointContextSupportedConfigs=JSON.stringify(F.browseEndpointContextSupportedConfigs));F.params&&(W.params=F.params);F.query&&(W.query=F.query);return _.ok("browse",W)}};
_.N.JSC$11812_buildRequest=function(F,W,E){W.browseId&&(F.browseId=W.browseId);W.params&&(F.params=W.params);W.query&&(F.query=W.query);E.formData?F.formData=E.formData:W.formData&&(F.formData=W.formData);W.browseId==="FEsubscriptions"&&_.Ij().getFlag(155)&&(F.subscriptionSettingsState="MY_SUBS_SETTINGS_STATE_LAYOUT_FORMAT_LIST");W.browseId==="SPaccount_playback"&&(E=_.Ij(),F.formData||(F.formData={}),F.formData.accountSettingsFormData={flagCaptionsDefaultOff:E.getFlag(65),flagAutoCaptionsDefaultOn:E.getFlag(66),
flagDisableInlinePreview:E.getFlag(186),flagAudioDescriptionDefaultOn:E.getFlag(198)});if(W.browseId==="FEwhat_to_watch"){E=_.Ij();var h=E.getFlag(196);E.getFlag(197)&&(F.browseRequestSupportedMetadata={downloadsBrowseParams:{offlineFeatureSettingState:{isSdEnabled:h}}})}W.browseId==="FEwhat_to_watch"&&(W=_.Ij().getFlag(186),F.inlineSettingStatus=W?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON")};
_.N.getRequestConfig=function(F,W){W=W===void 0?{}:W;var E={};if(F=this.JSC$11819_getStoreKey(F,W))E.storeStrategy={storeKey:F,disableCache:W.disableCache};_.c("web_log_browse_ticks_ks")||(E.requestTick="br_s",E.responseTick="br_r");return E};var O4=function(){};
_.k(O4,XM);O4.prototype.getApiPaths=function(){return $X_};
O4.prototype.getExtension=function(F){return _.D(F,Wxp)};
O4.prototype.JSC$11812_buildRequest=function(F,W,E){F.legacyYoutubeChannelUsername=E.legacyYouTubeChannelUsername||"";F.legacyYoutubeChannelPassword=E.legacyYouTubeChannelPassword||""};var bl=function(){};
_.k(bl,XM);bl.prototype.getApiPaths=function(){return O7_};
bl.prototype.getExtension=function(F){return _.D(F,GAX)};
bl.prototype.JSC$11812_buildRequest=function(F,W,E){E.recaptcha_response_token&&(F.recaptchaResponseToken=E.recaptcha_response_token);E.channel_id&&(F.channelId=E.channel_id)};var ll=function(){};
_.k(ll,XM);ll.prototype.getApiPaths=function(){return YzU};
ll.prototype.getExtension=function(F){return _.D(F,maH)};
ll.prototype.JSC$11812_buildRequest=function(F,W,E){W.externalChannelId&&(F.externalChannelId=W.externalChannelId);E.handle&&(F.handleUpdate={handle:E.handle},W.handleEditSource&&(F.handleUpdate.handleEditSource=W.handleEditSource))};var nh=function(){};
_.k(nh,XM);nh.prototype.getApiPaths=function(){return pUM};
nh.prototype.getExtension=function(F){return _.D(F,QYu)};
nh.prototype.JSC$11812_buildRequest=function(F,W,E){W.request&&(F.channelId=W.request.channelId);var h;if(E==null?0:(h=E.uploadDefaults)==null?0:h.emojiReactionSet)F.uploadDefaultsRequest||(F.uploadDefaultsRequest={}),F.uploadDefaultsRequest.emojiReactionSet=E.uploadDefaults.emojiReactionSet};var y4=function(){};
_.k(y4,XM);y4.prototype.getApiPaths=function(){return FCU};
y4.prototype.getExtension=function(F){return _.D(F,YVX)};
y4.prototype.JSC$11812_buildRequest=function(F,W,E){W.externalChannelId&&(F.externalChannelId=W.externalChannelId);W.channelHandleEntityKey&&(F.channelHandleEntityKey=W.channelHandleEntityKey);W.handleEditSource&&(F.handleEditSource=W.handleEditSource);E.handle?F.handle=E.handle:E.name&&(F.name=E.name)};var j1=function(){};
_.k(j1,XM);j1.prototype.getApiPaths=function(){return HyH};
j1.prototype.getExtension=function(F){return _.D(F,khX)};
j1.prototype.JSC$11812_buildRequest=function(F,W){W.actions?F.actions=W.actions:W.action&&(F.actions=[W.action])};var il=function(){};
_.k(il,XM);il.prototype.getApiPaths=function(){return Pa_};
il.prototype.getExtension=function(F){return _.D(F,_.fQ)};
il.prototype.JSC$11812_buildRequest=function(F,W){W.token&&(F.continuation=W.token)};var rM=function(){};
_.k(rM,XM);rM.prototype.getApiPaths=function(){return N5i};
rM.prototype.getExtension=function(F){return _.D(F,_.fQ)};
rM.prototype.JSC$11812_buildRequest=function(F,W){F.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";W.token&&(F.fetchCommentsParams={continuation:W.token})};var Tx=function(){};
_.k(Tx,XM);Tx.prototype.getApiPaths=function(){return byO};
Tx.prototype.getExtension=function(F){return _.D(F,xC_)};
Tx.prototype.JSC$11812_buildRequest=function(F,W,E){E=E===void 0?{}:E;W.createReplyParams&&(F.createReplyParams=W.createReplyParams);W.commentText&&(F.commentText=_.Yr(W.commentText));E.comment_text&&(F.commentText=E.comment_text);E.image_blob_id&&(F.imageAttachment={encryptedBlobId:E.image_blob_id});E.botguard_response&&(F.botguardResponse=E.botguard_response)};
_.Sn.Object.defineProperties(Tx.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var oQ=function(){};
_.k(oQ,XM);oQ.prototype.getApiPaths=function(){return lzz};
oQ.prototype.getExtension=function(F){return _.D(F,_.DCp)};
oQ.prototype.JSC$11812_buildRequest=function(F,W,E){E=E===void 0?{}:E;W.createCommentParams&&(F.createCommentParams=W.createCommentParams);W.commentText&&(F.commentText=_.Yr(W.commentText));W.videoPositionMention&&(F.videoPositionMention=W.videoPositionMention);W.sources&&(F.sources=W.sources);E.comment_text&&(F.commentText=E.comment_text);E.attached_video_id?F.videoAttachment={videoId:E.attached_video_id}:E.poll_options?F.pollAttachment={choices:E.poll_options}:E.image_blob_id?F.imageAttachment=
{encryptedBlobId:E.image_blob_id}:E.shared_post_id&&(F.sharedPostAttachment={postId:E.shared_post_id});E.access_restrictions&&typeof E.access_restrictions==="number"&&(W=E.access_restrictions,F.accessRestrictions={restriction:W!==1&&W===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"});E.botguard_response&&(F.botguardResponse=E.botguard_response)};
_.Sn.Object.defineProperties(oQ.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Gx=function(){};
_.k(Gx,XM);Gx.prototype.getApiPaths=function(){return wUu};
Gx.prototype.getExtension=function(F){return _.D(F,sHp)};
Gx.prototype.JSC$11812_buildRequest=function(F,W,E){W.commentText&&(F.replyText=_.Yr(W.commentText));E.comment_text&&(F.replyText=E.comment_text);F.updateReplyParams=W.updateReplyParams};
_.Sn.Object.defineProperties(Gx.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Y_=function(){};
_.k(Y_,XM);Y_.prototype.getApiPaths=function(){return uMO};
Y_.prototype.getExtension=function(F){return _.D(F,A7_)};
Y_.prototype.JSC$11812_buildRequest=function(F,W,E){W.commentText&&(F.commentText=_.Yr(W.commentText));E.comment_text&&(F.commentText=E.comment_text);F.updateCommentParams=W.updateCommentParams};
_.Sn.Object.defineProperties(Y_.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var wM=function(){};
_.k(wM,XM);wM.prototype.getApiPaths=function(){return Szu};
wM.prototype.getExtension=function(F){return _.D(F,R4U)};
wM.prototype.JSC$11812_buildRequest=function(F,W){W.settings&&(F.settings=W.settings)};var ul=function(){};
_.k(ul,XM);ul.prototype.getApiPaths=function(){return mXz};
ul.prototype.getExtension=function(F){return _.D(F,wYO)};
ul.prototype.JSC$11812_buildRequest=function(F,W){W.channelCreationToken&&(F.channelCreationToken=W.channelCreationToken);W.source&&(F.source=W.source)};var S1=function(){};
_.k(S1,XM);S1.prototype.getApiPaths=function(){return OyO};
S1.prototype.getExtension=function(F){return _.D(F,pYO)};
S1.prototype.JSC$11812_buildRequest=function(F,W,E){E=E===void 0?{}:E;if(E.name&&(E.given_name||E.family_name))F=new _.xC("channel creation cannot set both GAIA and YouTube names",W),_.a_(F);else{if(W.zeroStepChannelCreationParams){if(!E.comment_text){F=new _.xC("zero_step_create_comment_params but no zero_step_texts",W);_.a_(F);return}F.zeroStepChannelCreationParams=W.zeroStepChannelCreationParams;F.zeroStepChannelCreationParams.zeroStepCreateCommentParams&&(F.zeroStepChannelCreationParams.zeroStepCreateCommentParams.input=
E.comment_text,E.botguard_response&&(F.zeroStepChannelCreationParams.zeroStepCreateCommentParams.botguardResponse=E.botguard_response))}F.channelCreationToken=W.channelCreationToken;E.given_name&&(F.givenName=E.given_name);E.family_name&&(F.familyName=E.family_name);W.source==="CHANNEL_SWITCHER_CHANNEL_CREATION_SOURCE"&&(F.channelCreationType="CHANNEL_CREATION_TYPE_SECONDARY");if(E.name||E.handle||E.avatar_url||E.encryptedBlobId||E.isNameChanged!==void 0||E.isHandleChanged!==void 0||E.isDefaultProfilePhoto!==
void 0||E.obakeImageSource)F.overrideChannelCreationParams={},E.name&&(F.overrideChannelCreationParams.name=E.name),E.handle&&(F.overrideChannelCreationParams.handle=E.handle),E.avatar_url&&(F.overrideChannelCreationParams.avatarUrl=E.avatar_url),E.encryptedBlobId&&(F.overrideChannelCreationParams.blobEncryptionId=E.encryptedBlobId),E.enableIdentityForAllChannelCreationDialog&&(E.encryptedBlobId?F.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag="IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_CUSTOM":
E.isDefaultProfilePhoto!==void 0&&(F.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag=E.isDefaultProfilePhoto?"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_MONOGRAM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_OTHER"),E.isNameChanged!==void 0&&(F.overrideChannelCreationParams.identityForAllChannelCreationNameTag=E.isNameChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_GOOGLE_DEFAULT"),E.isHandleChanged!==
void 0&&(F.overrideChannelCreationParams.identityForAllChannelCreationHandleTag=E.isHandleChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_DEFAULT_AUTOGEN"),E.obakeImageSource&&(F.overrideChannelCreationParams.obakeImageSourceType=E.obakeImageSource))}};var ph=function(){};
_.k(ph,XM);ph.prototype.getApiPaths=function(F){return(F=this.getExtension(F))&&F.status==="DISLIKE"?oEa:F&&F.status==="INDIFFERENT"?H7M:IW_};
ph.prototype.getExtension=function(F){return _.D(F,_.KI)};
ph.prototype.JSC$11812_buildRequest=function(F,W){W.target&&(F.target=W.target);if(W=this.getParams(W))F.params=W};
ph.prototype.getParams=function(F){switch(F==null?void 0:F.status){case "DISLIKE":return F.dislikeParams;case "INDIFFERENT":return F.removeLikeParams;default:return F==null?void 0:F.likeParams}};var mb=function(){};
_.k(mb,XM);mb.prototype.getApiPaths=function(){return j9i};
mb.prototype.getExtension=function(F){return _.D(F,Hie)};
mb.prototype.JSC$11812_buildRequest=function(F,W){W.settingItemId&&(F.settingItemId=W.settingItemId);W.stringValue!=null&&W.stringValue!==void 0?F.newValue={stringValue:W.stringValue}:W.intValue?F.newValue={intValue:W.intValue}:W.boolValue!==null&&W.boolValue!==void 0?F.newValue={boolValue:W.boolValue}:(F=new _.xC("Unknown value type for SetSettingEndpoint.",W),_.a_(F))};var Kh=function(){};
_.k(Kh,XM);Kh.prototype.getApiPaths=function(){return rqO};
Kh.prototype.getExtension=function(F){return _.D(F,wP_)||void 0};
Kh.prototype.JSC$11812_buildRequest=function(F,W,E){E=E===void 0?{}:E;W.channelIds&&(F.channelIds=W.channelIds);W.siloName&&(F.siloName=W.siloName);W.params&&(F.params=W.params);E.botguardResponse&&(F.botguardResponse=E.botguardResponse);E.feature&&(F.clientFeature=E.feature)};
_.Sn.Object.defineProperties(Kh.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var F7=function(){};
_.k(F7,XM);F7.prototype.getApiPaths=function(){return ogB};
F7.prototype.getExtension=function(F){return _.D(F,PET)||void 0};
F7.prototype.JSC$11812_buildRequest=function(F,W){W.channelIds&&(F.channelIds=W.channelIds);W.siloName&&(F.siloName=W.siloName);W.params&&(F.params=W.params)};
_.Sn.Object.defineProperties(F7.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Wa=function(F){this.shareClientParamsProvider=F};
_.k(Wa,XM);Wa.prototype.getApiPaths=function(){return eJp};
Wa.prototype.getExtension=function(F){return _.D(F,hic)||_.D(F,_.dHM)||_.D(F,E4z)};
Wa.prototype.JSC$11812_buildRequest=function(F,W){W.serializedShareEntity&&(F.serializedSharedEntity=W.serializedShareEntity);if(W.clientParamIdentifier){var E;if((E=this.shareClientParamsProvider)==null?0:E.clientParams.has(W.clientParamIdentifier)){E=this.shareClientParamsProvider;W=W.clientParamIdentifier;var h=E.clientParams.get(W);h&&E.clientParams.delete(W);F.clientParams=h}}};
Wa[dr]=[UPO];var EU=function(){};
_.k(EU,XM);EU.prototype.getApiPaths=function(){return svB};
EU.prototype.getExtension=function(F){return _.D(F,gUc)};
EU.prototype.JSC$11812_buildRequest=function(F,W){W.params&&(F.params=W.params)};var hO=function(){};
_.k(hO,XM);hO.prototype.getApiPaths=function(){return GSe};
hO.prototype.getExtension=function(F){return _.D(F,Rtp)};
hO.prototype.JSC$11812_buildRequest=function(F,W){W.dismissal&&(F.items=[W.dismissal])};
_.Sn.Object.defineProperties(hO.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var dz=function(){};
_.k(dz,XM);dz.prototype.getApiPaths=function(){return B5X};
dz.prototype.getExtension=function(F){return _.D(F,_.yT)||void 0};
dz.prototype.JSC$11812_buildRequest=function(F,W,E){F.feedbackTokens=[];W.feedbackToken&&F.feedbackTokens.push(W.feedbackToken);if(W=W.cpn||E.cpn)F.feedbackContext={cpn:W};F.isFeedbackTokenUnencrypted=!!E.is_feedback_token_unencrypted;F.shouldMerge=!1;E.extra_feedback_tokens&&(F.shouldMerge=!0,F.feedbackTokens=F.feedbackTokens.concat(E.extra_feedback_tokens))};
_.Sn.Object.defineProperties(dz.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Nh=function(){};
_.k(Nh,XM);Nh.prototype.getApiPaths=function(){return B5X};
Nh.prototype.getExtension=function(F){return _.D(F,_.Q7)};
Nh.prototype.JSC$11812_buildRequest=function(F,W,E){E.feedback_tokens&&(F.feedbackTokens=E.feedback_tokens,F.shouldMerge=!0)};
_.Sn.Object.defineProperties(Nh.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Vh=function(){};
_.k(Vh,XM);Vh.prototype.getApiPaths=function(){return B5X};
Vh.prototype.getExtension=function(F){return _.D(F,d8r)};
Vh.prototype.JSC$11812_buildRequest=function(F,W){W.undoToken&&(F.feedbackTokens=[W.undoToken]);W.isUndoTokenUnencrypted&&(F.isFeedbackTokenUnencrypted=W.isUndoTokenUnencrypted)};
_.Sn.Object.defineProperties(Vh.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var tO=function(){};
_.k(tO,XM);tO.prototype.getApiPaths=function(){return WC_};
tO.prototype.getExtension=function(F){return _.D(F,Nv_)};
tO.prototype.JSC$11812_buildRequest=function(F,W){W.nextEndpoint&&_.D(W.nextEndpoint,_.T5)?F.nextEndpoint={urlEndpoint:_.D(W.nextEndpoint,_.T5)}:W.nextEndpoint&&_.D(W.nextEndpoint,_.GM)&&(F.nextEndpoint={watchEndpoint:_.D(W.nextEndpoint,_.GM)});W.setRacy&&(F.setRacy=W.setRacy);W.setControvercy&&(F.setControvercy=W.setControvercy)};var CJ=function(F){this.JSC$15580_storeWithEntities=F};
_.k(CJ,XM);CJ.prototype.getApiPaths=function(){return w2B};
CJ.prototype.getExtension=function(F){return _.D(F,XIO)};
CJ.prototype.JSC$11812_buildRequest=function(F,W){W.flowId&&(F.flowId=W.flowId);W.targetId&&(F.targetId=W.targetId);W.continuation&&(F.continuation=W.continuation);var E=W.flowStateEntityKey;if(W.flowStatePassingSpec==="FLOW_STATE_PASSING_SPEC_FULL_STATE"&&E&&this.JSC$15580_storeWithEntities){var h;if(W=(h=this.JSC$15580_storeWithEntities.getState())==null?void 0:h.entities)if(h=_.Vz(E).entityType,h=_.Mn(W,h,E))F.flowState=h,F.flowStateEntityKey=E}};
_.Sn.Object.defineProperties(CJ.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});
CJ[dr]=[v6];var j2O=function(){};
_.k(j2O,XM);_.N=j2O.prototype;_.N.getApiPaths=function(){return CDc};
_.N.JSC$11819_getStoreKey=function(){return _.ok("guide")};
_.N.getRequestConfig=function(){var F=this.JSC$11819_getStoreKey(),W;F&&(W={storeStrategy:{storeKey:F}});return W};
_.N.isNavigationCommand=function(){return!0};
_.N.getExtension=function(F){return _.D(F,_.Q7)};
_.N.JSC$11812_buildRequest=function(F){F.fetchLiveState=!0};var Ba=function(){};
_.k(Ba,XM);Ba.prototype.getApiPaths=function(){return ZyX};
Ba.prototype.getExtension=function(F){return _.D(F,vJi)};
Ba.prototype.JSC$11812_buildRequest=function(){};var va=function(){};
_.k(va,XM);va.prototype.getApiPaths=function(){return X2c};
va.prototype.getExtension=function(F){return _.D(F,IIz)};
va.prototype.JSC$11812_buildRequest=function(){};var IC=function(){};
_.k(IC,XM);IC.prototype.getApiPaths=function(){return AlO};
IC.prototype.getExtension=function(F){return _.D(F,_.fQ)};
IC.prototype.JSC$11812_buildRequest=function(F,W){W.token&&(F.continuation=W.token);var E,h;F==null||(E=F.context)==null||(h=E.user)==null||delete h.onBehalfOfUser};
IC.prototype.getRequestConfig=function(F){var W={},E;if(((E=this.getExtension(F))==null?void 0:E.sessionIndex)!==void 0){var h;W={authStrategy:{sessionIndex:(h=this.getExtension(F))==null?void 0:h.sessionIndex}}}return W};var ca=function(){};
_.k(ca,XM);ca.prototype.JSC$11812_getRequest=function(F){var W=this.getExtension(F),E=F="";if(W==null?0:W.popup)F="true";if(W==null?0:W.disableSignout)E="true";W={};return{input:"/getAccountSwitcherEndpoint",requestShell:TM("/getAccountSwitcherEndpoint","GET",(W["X-YouTube-Delegation-Context"]=_.b0("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"),W["X-YouTube-Account-Switcher-Popup"]=F,W["X-YouTube-Account-Switcher-Disable-Signout"]=E,W)),innerTubeRequest:{}}};
ca.prototype.getApiPaths=function(){return[]};
ca.prototype.getExtension=function(F){return _.D(F,_.q4I)};
ca.prototype.JSC$11812_buildRequest=function(){};var Dh=function(){};
_.k(Dh,XM);Dh.prototype.JSC$11812_getRequest=function(F){var W="/cross_account_channel_transfer";(F=this.getExtension(F))&&(W=ctG(W,{target_session:F.targetSessionIndex,source_rapt:F.sourceRapt,rapt:F.targetRapt}));return{input:W,requestShell:TM(W,"GET"),innerTubeRequest:{}}};
Dh.prototype.getApiPaths=function(){return[]};
Dh.prototype.getExtension=function(F){return _.D(F,zDO)};
Dh.prototype.JSC$11812_buildRequest=function(){};var x2=function(){};
_.k(x2,XM);x2.prototype.getApiPaths=function(){return uBa};
x2.prototype.isNavigationCommand=function(){return!0};
x2.prototype.getExtension=function(F){return _.D(F,_.Q7)};
x2.prototype.JSC$11812_buildRequest=function(F){var W=_.Ij().get("gsml","");W&&(F.safetyModeLockerObfuscatedGaiaId=W);F.userInterfaceTheme=_.Oh(!0);_.bb()?F.deviceTheme="DEVICE_THEME_SELECTED":_.cAk()?F.deviceTheme="DEVICE_THEME_SUPPORTED":F.deviceTheme="DEVICE_THEME_UNSUPPORTED"};var k2=function(){};
_.k(k2,XM);k2.prototype.getApiPaths=function(){return AlO};
k2.prototype.getExtension=function(F){return _.D(F,t2p)};
k2.prototype.JSC$11812_buildRequest=function(F,W){if(W&&W.requestType&&(F.requestType=W.requestType,W.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_CHANNEL_SWITCHER"||W.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT")){var E=W.nextUrl;E&&(_.xQY(E)||m0(E))&&(F.nextNavendpoint={urlEndpoint:{url:E}})}W&&W.channelSwitcherQuery&&(F.channelSwitcherQuery=W.channelSwitcherQuery);W&&W.triggerChannelCreation&&(F.triggerChannelCreation=W.triggerChannelCreation);var h;if(W==null?0:(h=W.contentOwnerConfig)==
null?0:h.externalContentOwnerId)F.contentOwnerConfig=W.contentOwnerConfig;F.callCircumstance=W&&W.requestType&&W.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT"?"SUPPLEMENTAL_USER":"SWITCHING_USERS_FULL";var d,V;W=F==null?void 0:(d=F.context)==null?void 0:(V=d.user)==null?void 0:V.onBehalfOfUser;if(W!==void 0){F.obfuscatedSelectedGaiaId=W;var R,M;F==null||(R=F.context)==null||(M=R.user)==null||delete M.onBehalfOfUser}var g,t;if(d=F==null?void 0:(g=F.context)==null?void 0:(t=g.user)==null?
void 0:t.serializedDelegationContext)F.selectedSerializedDelegationContext=d};var AO=function(){};
_.k(AO,XM);AO.prototype.getApiPaths=function(){return RJi};
AO.prototype.getExtension=function(F){return _.D(F,eDz)};
AO.prototype.JSC$11812_buildRequest=function(F,W){W.profileOwnerExternalChannelId&&(F.profileOwnerExternalChannelId=W.profileOwnerExternalChannelId);W.profileCardContext&&(F.profileCardContext=W.profileCardContext)};var sU=function(){};
_.k(sU,XM);sU.prototype.getApiPaths=function(){return LoX};
sU.prototype.getExtension=function(F){return _.D(F,NpM)};
sU.prototype.JSC$11812_buildRequest=function(F,W){W.params&&(F.params=W.params)};var LJ=function(){};
_.k(LJ,XM);LJ.prototype.getApiPaths=function(){return fzi};
LJ.prototype.getExtension=function(F){return _.D(F,_.cCX)};
LJ.prototype.JSC$11812_buildRequest=function(F,W){if(W=W.createBroadcastRequest)F.useMasks=W.useMasks,F.broadcastType=W.broadcastType,F.broadcastSource=W.broadcastSource,F.broadcastMetadata=W.broadcastMetadata,F.broadcastMetadataMask=W.broadcastMetadataMask,F.videoMetadata=W.videoMetadata,F.videoMetadataMask=W.videoMetadataMask,F.liveChatSettingsUpdate=W.liveChatSettingsUpdate,F.liveChatSettingsUpdateMask=W.liveChatSettingsUpdateMask,F.cloneVideoId=W.cloneVideoId,F.cloneWithOverrides=W.cloneWithOverrides,
F.targetEntity=W.targetEntity,F.scheduledRedirectMetadata=W.scheduledRedirectMetadata};var qh=function(){};
_.k(qh,XM);qh.prototype.getApiPaths=function(){return nEe};
qh.prototype.getExtension=function(F){return _.D(F,cJO)};
qh.prototype.JSC$11812_buildRequest=function(F,W,E){E=E===void 0?{}:E;W.params&&(F.params=W.params);E.questionText&&(F.questionText=E.questionText);E.optionText&&E.optionText.length>0&&(F.optionText=E.optionText)};var $2=function(){};
_.k($2,XM);$2.prototype.getApiPaths=function(){return iyU};
$2.prototype.getExtension=function(F){return _.D(F,vAM)};
$2.prototype.JSC$11812_buildRequest=function(F,W){W.params&&(F.params=W.params)};var Zh=function(){};
_.k(Zh,XM);Zh.prototype.getApiPaths=function(){return F2O};
Zh.prototype.getExtension=function(F){return _.D(F,zmc)};
Zh.prototype.JSC$11812_buildRequest=function(F,W){W.params&&(F.params=W.params)};var X7=function(){};
_.k(X7,XM);X7.prototype.getApiPaths=function(){return Egz};
X7.prototype.getExtension=function(F){return _.D(F,tjH)};
X7.prototype.JSC$11812_buildRequest=function(F,W,E){W.params&&(F.params=W.params);W.continuation&&(F.continuation=W.continuation);E.currentPlayerState&&E.currentPlayerState.playerOffsetMs&&(F.currentPlayerState={playerOffsetMs:E.currentPlayerState.playerOffsetMs.toString()})};var Ha=function(){};
_.k(Ha,XM);Ha.prototype.getApiPaths=function(){return hJT};
Ha.prototype.getExtension=function(F){return _.D(F,QsX)};
Ha.prototype.JSC$11812_buildRequest=function(F,W,E){W.params&&(F.params=W.params);E.continuation&&(F.continuation=E.continuation);"hidden"in E&&(F.webClientInfo={isDocumentHidden:E.hidden});E.isInvalidationTimeoutRequest&&(F.isInvalidationTimeoutRequest=E.isInvalidationTimeoutRequest);E.invalidationPayload&&(W=gAU(_.CT(KW(E.invalidationPayload))),F.invalidationPayloadLastPublishAtUsec=nc(W,2));E.reloadActionPanel&&(F.reloadActionPanel=E.reloadActionPanel);E.fullReload&&(F.fullReload=E.fullReload);
E.currentPlayerState&&(F.currentPlayerState=E.currentPlayerState)};var Pa=function(){};
_.k(Pa,XM);Pa.prototype.getApiPaths=function(){return cq_};
Pa.prototype.getExtension=function(F){return _.D(F,IaB)};
Pa.prototype.JSC$11812_buildRequest=function(F,W){F.params=W.params};var JO=function(){};
_.k(JO,XM);JO.prototype.getApiPaths=function(){return W2e};
JO.prototype.getExtension=function(F){return _.D(F,xHu)};
JO.prototype.JSC$11812_buildRequest=function(F,W){W.params&&(F.params=W.params)};var aC=function(){};
_.k(aC,XM);aC.prototype.getApiPaths=function(){return d4p};
aC.prototype.getExtension=function(F){return _.D(F,kaa)};
aC.prototype.JSC$11812_buildRequest=function(F,W){W.params&&(F.params=W.params)};var fJ=function(){};
_.k(fJ,XM);fJ.prototype.getApiPaths=function(){return D4a};
fJ.prototype.getExtension=function(F){return _.D(F,DDO)};
fJ.prototype.JSC$11812_buildRequest=function(F,W){W.params&&(F.params=W.params)};var OU=function(){};
_.k(OU,XM);OU.prototype.getApiPaths=function(){return kfe};
OU.prototype.getExtension=function(F){return _.D(F,xDO)};
OU.prototype.JSC$11812_buildRequest=function(F,W){W.params&&(F.params=W.params)};var by=function(){};
_.k(by,XM);by.prototype.getApiPaths=function(){return PDU};
by.prototype.getExtension=function(F){return _.D(F,RiH)};
by.prototype.JSC$11812_buildRequest=function(F,W){W.params&&(F.params=W.params)};var ly=function(){};
_.k(ly,XM);ly.prototype.getApiPaths=function(){return ngp};
ly.prototype.getExtension=function(F){return _.D(F,_.kUa)};
ly.prototype.JSC$11812_buildRequest=function(F,W,E){E=E===void 0?{}:E;W.params&&(F.params=W.params);E.client_message_id&&(F.clientMessageId=E.client_message_id);E.recaptcha_token&&(F.recaptchaToken=E.recaptcha_token);E.rich_message&&E.rich_message.text_segments?(W=E.rich_message.text_segments.map(function(h){var d={};h.text&&(d.text=h.text);h.emoji_id&&(d.emojiId=h.emoji_id);return d}),F.richMessage={textSegments:W}):E.message&&(F.message=E.message);
E.currentPlayerState&&(F.currentPlayerState=E.currentPlayerState)};var nJ=function(){};
_.k(nJ,XM);nJ.prototype.getApiPaths=function(){return yq_};
nJ.prototype.getExtension=function(F){return _.D(F,AJa)};
nJ.prototype.JSC$11812_buildRequest=function(F,W){W.params&&(F.params=W.params)};var yh=function(){};
_.k(yh,XM);yh.prototype.getApiPaths=function(){return T5M};
yh.prototype.getExtension=function(F){return _.D(F,LTz)};
yh.prototype.JSC$11812_buildRequest=function(F,W,E){W.isUserInitiated&&(F.isUserInitiated=W.isUserInitiated);W.initiationSource&&(F.initiationSource=W.initiationSource);E.locationInfo&&(F.context.client.locationInfo=E.locationInfo)};var jG=function(){};
_.k(jG,XM);jG.prototype.getApiPaths=function(){return x4M};
jG.prototype.getExtension=function(F){return _.D(F,DGX)};
jG.prototype.JSC$11812_buildRequest=function(F,W,E){W.metadataUpdateRequest&&(W=W.metadataUpdateRequest,F.encryptedVideoId=W.encryptedVideoId,W.liveChat&&(W=W.liveChat,F.liveChat||(F.liveChat={}),W.performAsExternalChannelId&&(F.liveChat.performAsExternalChannelId=W.performAsExternalChannelId),W.source&&(F.liveChat.source=W.source)));var h;if(E==null?0:(h=E.liveChat)==null?0:h.liveChatSettings)F.liveChat||(F.liveChat={}),E=E.liveChat.liveChatSettings,F.liveChat.newLiveChatSettings=E,F.liveChat.newLiveChatSettingsMask||
(F.liveChat.newLiveChatSettingsMask={}),E.emojiReactionSet&&(F.liveChat.newLiveChatSettingsMask.emojiReactionSet=!0)};var iy=function(){};
_.k(iy,XM);iy.prototype.getApiPaths=function(){return K2H};
iy.prototype.getExtension=function(F){return _.D(F,_.J7U)};
iy.prototype.JSC$11812_buildRequest=function(F,W,E){E.continuation?F.continuation=E.continuation:W.videoId&&(F.videoId=W.videoId);E.clientParams&&(F.clientParams=E.clientParams)};var rz=function(){};
_.k(rz,XM);rz.prototype.getApiPaths=function(){return N5i};
rz.prototype.getExtension=function(F){return _.D(F,_.bE)};
rz.prototype.JSC$11812_buildRequest=function(F,W){F.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";F.fetchCommentsParams={};W.videoId&&(F.fetchCommentsParams.encryptedVideoId=W.videoId);W.postId&&(F.fetchCommentsParams.postId=W.postId);W.externalChannelId&&(F.fetchCommentsParams.externalChannelId=W.externalChannelId);W.linkedCommentId&&(F.fetchCommentsParams.linkedCommentId=W.linkedCommentId);(0,_.xd.isEmpty)(F.fetchCommentsParams)&&delete F.fetchCommentsParams};var T1=function(){};
_.k(T1,XM);T1.prototype.getApiPaths=function(){return RV};
T1.prototype.JSC$11812_buildRequest=function(F){F.browseId="FEnotifications_inbox"};
T1.prototype.getExtension=function(F){return _.D(F,_.Q7)};var oC=function(){};
_.k(oC,XM);oC.prototype.getApiPaths=function(){return N5i};
oC.prototype.JSC$11812_buildRequest=function(F,W){W.signal==="GET_NOTIFICATIONS_MENU"&&(F.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_INBOX");W.ctoken&&(F.ctoken=W.ctoken)};
var i0z=function(){};
_.k(i0z,oC);i0z.prototype.getExtension=function(F){return _.D(F,_.Q7)};
var rXi=function(){};
_.k(rXi,oC);rXi.prototype.getExtension=function(F){return _.D(F,EUX)};var G1=function(){};
_.k(G1,XM);G1.prototype.getApiPaths=function(){return Q9z};
G1.prototype.getExtension=function(F){return _.D(F,_.Q7)};
G1.prototype.JSC$11812_buildRequest=function(){};var Y2=function(){};
_.k(Y2,XM);Y2.prototype.getApiPaths=function(){return Aq_};
Y2.prototype.getExtension=function(F){return _.D(F,$Ca)||void 0};
Y2.prototype.JSC$11812_buildRequest=function(F,W){W.params&&(F.params=W.params);W.secondaryParams&&(F.secondaryParams=W.secondaryParams)};var wz=function(){};
_.k(wz,XM);wz.prototype.getApiPaths=function(){return s9i};
wz.prototype.getExtension=function(F){return _.D(F,VCB)};
wz.prototype.JSC$11812_buildRequest=function(F,W){W.undo&&(F.undo=W.undo);W.serializedOptOut&&(F.serializedOptOut=W.serializedOptOut);W.serializedRecordInteractionsRequest&&(F.serializedRecordInteractionsRequest=W.serializedRecordInteractionsRequest)};var uy=function(){};
_.k(uy,XM);uy.prototype.getApiPaths=function(){return $4U};
uy.prototype.getExtension=function(F){return _.D(F,UHu)};
uy.prototype.JSC$11812_buildRequest=function(F,W){W.serializedInteractionsRequest&&(F.serializedRecordNotificationInteractionsRequest=W.serializedInteractionsRequest)};var SG=function(){};
_.k(SG,XM);SG.prototype.getApiPaths=function(){return PFe};
SG.prototype.getExtension=function(F){return _.D(F,frn)};
SG.prototype.JSC$11812_buildRequest=function(F,W,E){W=W===void 0?{}:W;E=E===void 0?{}:E;W.videoId?F.videoId=W.videoId:W.playlistId&&(F.playlistId=W.playlistId);var h,d=(h=W.offlineWebClientEligibility)!=null?h:E.offlineWebClientEligibility;d&&(F.offlineWebClientEligibility=d);var V;if(h=(V=W.preferredFormatType)!=null?V:E.preferredFormatType)F.preferredFormatType=h;var R;if(V=(R=W.lastOfflineQualitySettingsSavedMs)!=null?R:E.lastOfflineQualitySettingsSavedMs)F.lastOfflineQualitySettingsSavedMs=V;
W.params&&(F.params=W.params)};var pJ=function(){};
_.k(pJ,XM);pJ.prototype.getApiPaths=function(){return Fb};
pJ.prototype.getExtension=function(F){return _.D(F,_.fQ)};
pJ.prototype.JSC$11812_buildRequest=function(F,W,E){E=E===void 0?{}:E;W.token&&(F.continuation=W.token);E.formData&&(F.formData=E.formData)};var mi=function(){};
_.k(mi,XM);mi.prototype.getApiPaths=function(){return Fb};
mi.prototype.getExtension=function(F){return _.D(F,t3i)};
mi.prototype.JSC$11812_buildRequest=function(F,W,E){E=E===void 0?{}:E;F.continuation=E.continuation};var KJ=function(){};
_.k(KJ,XM);KJ.prototype.getApiPaths=function(){return Fb};
KJ.prototype.getExtension=function(F){return _.D(F,_.nk)};
KJ.prototype.JSC$11812_buildRequest=function(F,W){var E,h=W.panelIdentifier||((E=W.identifier)==null?void 0:E.tag);h&&(F.panelId=h);var d;if((d=W.globalConfiguration)==null?0:d.params){var V;F.params=(V=W.globalConfiguration)==null?void 0:V.params}};
_.Sn.Object.defineProperties(KJ.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Fi=function(){};
_.k(Fi,XM);Fi.prototype.getApiPaths=function(){return Fb};
Fi.prototype.getExtension=function(F){return _.D(F,Sau)};
Fi.prototype.JSC$11812_buildRequest=function(F,W){W.panelLoadingStrategy&&Lhb(F,W.panelLoadingStrategy)};var WC=function(){};
_.k(WC,XM);WC.prototype.getApiPaths=function(){return Fb};
WC.prototype.getExtension=function(F){return _.D(F,I5B)};
WC.prototype.JSC$11812_buildRequest=function(F,W){W.loadingStrategy&&Lhb(F,W.loadingStrategy)};var E$=function(){};
_.k(E$,XM);E$.prototype.getApiPaths=function(){return Fb};
E$.prototype.getExtension=function(F){return _.D(F,_.s8)};
E$.prototype.JSC$11812_buildRequest=function(F,W){W.panelLoadingStrategy&&Lhb(F,W.panelLoadingStrategy)};var h4=function(){};
_.k(h4,XM);h4.prototype.getApiPaths=function(){return Fb};
h4.prototype.getExtension=function(F){return _.D(F,cBU)};
h4.prototype.JSC$11812_buildRequest=function(F,W){var E,h=(E=W.contentSourcePanelIdentifier)==null?void 0:E.tag;h&&(F.panelId=h);var d;if((d=W.globalConfiguration)==null?0:d.params){var V;F.params=(V=W.globalConfiguration)==null?void 0:V.params}};var dx=function(){};
_.k(dx,XM);dx.prototype.getApiPaths=function(){return["pdg/get_pdg_buy_flow"]};
dx.prototype.getExtension=function(F){return _.D(F,DHT)};
dx.prototype.JSC$11812_buildRequest=function(F,W){W.params&&(F.params=W.params)};var Nf=function(){};
_.k(Nf,XM);Nf.prototype.getApiPaths=function(){return m4O};
Nf.prototype.getExtension=function(F){return _.D(F,ABz)};
Nf.prototype.JSC$11812_buildRequest=function(F,W){W.externalChannelId&&(F.externalChannelId=W.externalChannelId);W.superChatAction&&(F.superChatAction=W.superChatAction);W.superStickersAction&&(F.superStickersAction=W.superStickersAction)};var VY=function(){};
_.k(VY,XM);VY.prototype.getApiPaths=function(){return SkT};
VY.prototype.getExtension=function(F){return _.D(F,BZp)||_.D(F,bhS)};
VY.prototype.JSC$11812_buildRequest=function(F,W){W.videoIds?F.videoIds=W.videoIds:W.videoId&&(F.videoIds=[W.videoId]);W.playlistId&&(F.playlistId=W.playlistId);W.params&&(F.params=W.params);F.excludeWatchLater=!1};var U$=function(){};
_.k(U$,XM);U$.prototype.getApiPaths=function(){return yla};
U$.prototype.getExtension=function(F){return _.D(F,_.Th)};
U$.prototype.JSC$11812_buildRequest=function(F,W,E){E.create_playlist_title?F.title=E.create_playlist_title:W.title&&(F.title=W.title);if(E.create_playlist_privacy_status&&typeof E.create_playlist_privacy_status==="number"){a:{var h=E.create_playlist_privacy_status;if(h!==0){if(h===1){h="PUBLIC";break a}if(h===2){h="UNLISTED";break a}}h="PRIVATE"}F.privacyStatus=h}else W.privacyStatus&&(F.privacyStatus=W.privacyStatus);E.create_playlist_description&&(F.description=E.create_playlist_description);W.videoIds&&
(F.videoIds=W.videoIds);W.params&&(F.params=W.params);W.sourcePlaylistId&&(F.sourcePlaylistId=W.sourcePlaylistId)};var RP=function(){};
_.k(RP,XM);RP.prototype.getApiPaths=function(){return rlB};
RP.prototype.getExtension=function(F){return _.D(F,L4O)};
RP.prototype.JSC$11812_buildRequest=function(F,W){F.playlistId=W.playlistId};var eK=function(){};
_.k(eK,XM);eK.prototype.getApiPaths=function(){return VBM};
eK.prototype.getExtension=function(F){return _.D(F,FMe)};
eK.prototype.JSC$11812_buildRequest=function(F,W){W.playlistId&&(F.playlistId=W.playlistId);W.params&&(F.params=W.params)};var Mf=function(){};
_.k(Mf,XM);Mf.prototype.getApiPaths=function(){return qzp};
Mf.prototype.getExtension=function(F){return _.D(F,_.lE)||void 0};
Mf.prototype.JSC$11812_buildRequest=function(F,W){W.actions&&(F.actions=W.actions);W.params&&(F.params=W.params);W.playlistId&&(F.playlistId=W.playlistId)};var gx=function(){};
_.k(gx,XM);_.N=gx.prototype;_.N.getApiPaths=function(){return Z7H};
_.N.getExtension=function(F){return _.D(F,_.DP)};
_.N.JSC$11812_buildRequest=function(F,W){W.videoId&&(F.playerRequest={videoId:W.videoId},W.playerParams&&(F.playerRequest.params=W.playerParams),W.racyCheckOk&&(F.playerRequest.racyCheckOk=!!W.racyCheckOk),W.contentCheckOk&&(F.playerRequest.contentCheckOk=!!W.contentCheckOk));W.params&&(F.params=W.params);W.inputType&&(F.inputType=W.inputType);F.disablePlayerResponse=!0};
_.N.getRequestConfig=function(F){var W;(F=this.JSC$11819_getStoreKey(F))&&(W={storeStrategy:{storeKey:F}});_.c("web_log_reels_ticks")&&(W=W||{},W.requestTick="r_wrs",W.responseTick="r_wrr");return W};
_.N.JSC$11819_getStoreKey=function(F){F=this.getExtension(F);if(_.c("shorts_controller_retrieve_seedless_sequence_v2")){if((F==null?void 0:F.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS")return _.ok("reel_item_watch",{inputType:"REEL_WATCH_INPUT_TYPE_SEEDLESS"})}else if((_.c("web_prefetch_riw_for_next_video")||_.c("web_shorts_prefetch_service_enabled"))&&F!=null&&F.videoId){var W={videoId:F.videoId};F.params&&(W.params=F.params);return _.ok("reel_item_watch",W)}};var QY=function(){};
_.k(QY,XM);_.N=QY.prototype;_.N.getApiPaths=function(){return XUX};
_.N.getExtension=function(F){return _.D(F,_.DP)};
_.N.JSC$11812_buildRequest=function(F,W,E){E=E===void 0?{}:E;F.sequenceParams=W.sequenceParams;var h;((h=E)==null?0:h.contentPlaybackContext)&&_.c("web_shorts_prefetch_service_enabled")&&(F.playbackContext={contentPlaybackContext:E.contentPlaybackContext})};
_.N.JSC$11819_getStoreKey=function(F){if(_.c("shorts_controller_retrieve_seedless_sequence_v2")&&(F=this.getExtension(F),F==null?0:F.sequenceParams))return _.ok("reel_watch_sequence",{sequenceParams:F.sequenceParams})};
_.N.getRequestConfig=function(F){F=this.JSC$11819_getStoreKey(F);var W;F&&(W={storeStrategy:{storeKey:F}});_.c("reel_watch_sequence_request_log_ticks")&&(W=W||{},W.requestTick="r_wsrs",W.responseTick="r_wsrr",W.processorTick="r_wsrp");return W};
var zu=function(){};
_.k(zu,XM);zu.prototype.getApiPaths=function(){return XUX};
zu.prototype.getExtension=function(F){return _.D(F,_.fQ)};
zu.prototype.JSC$11812_buildRequest=function(F,W,E){E=E===void 0?{}:E;W.token&&(F.continuation=W.token);var h;((h=E)==null?0:h.contentPlaybackContext)&&_.c("web_shorts_prefetch_service_enabled")&&(F.playbackContext={contentPlaybackContext:E.contentPlaybackContext})};
zu.prototype.getRequestConfig=function(F){F=this.JSC$11819_getStoreKey(F);var W;F&&(W={storeStrategy:{storeKey:F}});_.c("reel_watch_sequence_request_log_ticks")&&(W=W||{},W.requestTick="r_wsrs",W.responseTick="r_wsrr",W.processorTick="r_wsrp");return W};var t4=function(){};
_.k(t4,XM);t4.prototype.getApiPaths=function(){return YkX};
t4.prototype.getExtension=function(F){return _.D(F,_.ZPM)};
t4.prototype.JSC$11812_buildRequest=function(F,W,E){E=E===void 0?{}:E;W.flagAction&&(F.action=W.flagAction);W.flagRequestType&&(F.flagRequestType=W.flagRequestType);W.additionalDetailCheckboxChecked&&(F.additionalDetailCheckboxChecked=W.additionalDetailCheckboxChecked);W.legalCheckboxChecked&&(F.legalCheckboxChecked=W.legalCheckboxChecked);W={};E.flag_issue_type!==void 0&&(W.issue=E.flag_issue_type);E.flag_affiliation!==void 0&&(W.affiliation=E.flag_affiliation);E.flag_full_name&&(W.fullName=E.flag_full_name);
Object.keys(W).length&&(F.legalReportDetails=W);if(E.flag_description||E.text)F.userComments=E.flag_description||E.text;W={};E.minutes!==void 0&&E.seconds!==void 0&&(W.minutes=E.minutes,W.seconds=E.seconds);E.vss_id&&(W.vssId=E.vss_id);Object.keys(W).length&&(F.videoReportDetails=W);W={};E.video_ids&&(W.videoIds=E.video_ids);E.impersonated_channel_url&&(W.impersonatedChannelUrl=E.impersonated_channel_url);Object.keys(W).length&&(F.channelAbuseReportDetails=W)};
_.Sn.Object.defineProperties(t4.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var CG=function(){};
_.k(CG,XM);CG.prototype.getApiPaths=function(){return KoH};
CG.prototype.getExtension=function(F){return _.D(F,hmX)};
CG.prototype.JSC$11812_buildRequest=function(F,W){W.blockedForKidsContent&&(F.blockedForKidsContent=W.blockedForKidsContent)};var BC=function(){};
_.k(BC,XM);BC.prototype.getApiPaths=function(){return JqO};
BC.prototype.getExtension=function(F){return _.D(F,OhI)};
BC.prototype.JSC$11812_buildRequest=function(F,W,E){F.params=W.params;E.impersonated_channel_url&&(F.impersonatedChannelUrl=E.impersonated_channel_url)};var vC=function(){};
_.k(vC,XM);vC.prototype.getApiPaths=function(){return vge};
vC.prototype.getExtension=function(F){return _.D(F,_.dDz)};
vC.prototype.JSC$11812_buildRequest=function(F,W){W.items&&(F.items=W.items);W.kidGaiaId&&(F.kidGaiaId=W.kidGaiaId)};var IP=function(){};
_.k(IP,XM);IP.prototype.getApiPaths=function(){return p2M};
IP.prototype.getExtension=function(F){return _.D(F,_.tte)};
IP.prototype.JSC$11812_buildRequest=function(F,W){W.params&&(F.params=W.params);W.targetId&&(F.targetId=W.targetId)};var cC=function(){};
_.k(cC,XM);cC.prototype.getApiPaths=function(){return b7U};
cC.prototype.getExtension=function(F){return _.D(F,hta)};
cC.prototype.JSC$11812_buildRequest=function(F,W){W.externalVideoId&&(F.externalVideoId=W.externalVideoId);W.query&&(F.query=W.query);W.sourceTimelines&&(F.sourceTimelines=W.sourceTimelines)};var Dg=function(){};
_.k(Dg,XM);Dg.prototype.getApiPaths=function(){return lWT};
Dg.prototype.getExtension=function(F){return _.D(F,_.fQ)||void 0};
Dg.prototype.JSC$11812_buildRequest=function(F,W){W.token&&(F.continuation=W.token)};
_.Tga=function(){};
_.k(_.Tga,XM);_.N=_.Tga.prototype;_.N.getApiPaths=function(){return lWT};
_.N.getExtension=function(F){return _.D(F,_.vB)||void 0};
_.N.isNavigationCommand=function(){return!0};
_.N.JSC$11819_getStoreKey=function(F,W){W=W===void 0?{}:W;if(!W.disableCache&&(F=this.getExtension(F))&&F.query)return W={query:F.query},F.params&&(W.params=F.params),_.ok("search",W)};
_.N.JSC$11812_buildRequest=function(F,W,E){W.query&&(F.query=W.query);W.params&&(F.params=W.params);if(!_.c("web_forward_suggest_stats_killswitch")){var h=_.D(W,YjO);h&&(F.suggestStats=h)}var d;!_.c("kevlar_searchbox_stats_killswitch")&&((d=E.tempData)==null?0:d.gs_l)&&!_.D(W,YjO)&&(F.webSearchboxStatsUrl="/search?oq="+(E.tempData.oq||"")+"&gs_l="+E.tempData.gs_l);var V;if((V=E.tempData)==null?0:V.entityMid)W=F.suggestionSearchParams||{},W.entityMid=E.tempData.entityMid,F.suggestionSearchParams=W};
_.N.getRequestConfig=function(F,W){W=W===void 0?{}:W;F=this.JSC$11819_getStoreKey(F,W);var E;F&&(E={storeStrategy:{storeKey:F}});_.c("web_log_search_ticks_ks")||(E=E||{},E.requestTick="sr_s",E.responseTick="sr_r");return E};var xy=function(){};
_.k(xy,XM);xy.prototype.getApiPaths=function(){return MBe};
xy.prototype.getExtension=function(F){return _.D(F,lIz)};
xy.prototype.JSC$11812_buildRequest=function(F,W){W.serializedGetSharingProviderDataParams&&(F.serializedGetSharingProviderDataParams=W.serializedGetSharingProviderDataParams)};var ky=function(){};
_.k(ky,XM);ky.prototype.getApiPaths=function(){return gg_};
ky.prototype.getExtension=function(F){return _.D(F,AhM)};
ky.prototype.JSC$11812_buildRequest=function(F,W){W.endpoint&&(F.endpoint=W.endpoint);W.action&&(F.action=W.action)};var A4=function(){};
_.k(A4,XM);A4.prototype.getApiPaths=function(){return T_i};
A4.prototype.getExtension=function(F){return _.D(F,qaH)};
A4.prototype.JSC$11812_buildRequest=function(F,W){F.videoId=W.videoId;W.scheduledRedirectMetadataSourceVideoId&&(F.scheduledRedirectMetadata={sourceVideoId:W.scheduledRedirectMetadataSourceVideoId})};var okB=XMLHttpRequest.prototype.fetch,GeB=okB&&okB.length===3?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!wV?!0:!1;var s$=function(F){this.JSC$15848_storeWithEntities=F};
_.k(s$,XM);_.N=s$.prototype;_.N.getApiPaths=function(){return L2u};
_.N.getExtension=function(F){return _.D(F,_.GM)||_.D(F,_.DP)||_.D(F,XDU)};
_.N.isNavigationCommand=function(){return!0};
_.N.JSC$11819_getStoreKey=function(F){if((_.c("kevlar_cache_on_ttl_player")||_.c("mweb_enable_shorts_innertube_player_prefetch")||_.c("mweb_use_new_history_manager")||_.c("web_shorts_prefetch_service_enabled"))&&(F=this.getExtension(F))&&F.videoId){var W={videoId:F.videoId};F.playlistId&&(W.playlistId=F.playlistId);F.playerParams&&(W.params=F.playerParams);return _.ok("player",W)}};
_.N.JSC$11812_getClientScreen=function(F){var W;return((W=F.contentPlaybackContext)==null?void 0:W.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.N.JSC$11812_buildRequest=function(F,W,E){if(_.c("enable_interstitial_entity_check")){var h=this.JSC$15848_storeWithEntities;if(W.videoId)for(var d=_.U(["CONTENT_CHECK_REQUIRED","AGE_CHECK_REQUIRED"]),V=d.next();!V.done;V=d.next()){V=V.value;var R;var M=void 0,g=void 0,t=W.videoId,C=V;(R=h)?(t=_.eF(t+C,"interstitialInteractionStateEntity"),R=(M=(g=_.Mn(R.getState().entities,"interstitialInteractionStateEntity",t))==null?void 0:g.primaryButtonClicked)!=null?M:!1):R=!1;if(R)switch(V){case "CONTENT_CHECK_REQUIRED":W.contentCheckOk=
!0;break;case "AGE_CHECK_REQUIRED":W.racyCheckOk=!0}}}W.videoId&&(F.videoId=W.videoId);W.playlistId&&(F.playlistId=W.playlistId);W.index!==void 0&&(F.playlistIndex=W.index+1);W.playerParams&&(F.params=W.playerParams);"startTimeSeconds"in W&&W.startTimeSeconds&&(_.c("enable_player_request_builder_start_time_floor")?F.startTimeSecs=Math.floor(W.startTimeSeconds):F.startTimeSecs=W.startTimeSeconds);E.contentPlaybackContext&&(F.playbackContext={contentPlaybackContext:E.contentPlaybackContext});E.prefetchPlaybackContext&&
(F.playbackContext=Object.assign({},F.playbackContext,{prefetchPlaybackContext:E.prefetchPlaybackContext}),F.context.request||(F.context.request={}),F.context.request.isPrefetch=!0);F.playbackContext||(F.playbackContext={});h=p$H();F.playbackContext.devicePlaybackCapabilities={supportsVp9Encoding:!!h,supportXhr:GeB};E.overrideMutedAtStart&&(F.overrideMutedAtStart=E.overrideMutedAtStart);F.racyCheckOk=!!W.racyCheckOk;F.contentCheckOk=!!W.contentCheckOk;!_.c("captions_prefs_killswitch")&&(E=(E=_.Cy("yt-player-caption-language-preferences"))?
E:[],E==null?0:E.length)&&(F.captionParams={viewerSelectedCaptionLangs:E})};
_.N.getRequestConfig=function(F){F=this.JSC$11819_getStoreKey(F);var W;F&&(W={storeStrategy:{storeKey:F}});_.c("web_log_player_watch_next_ticks")&&(W=W||{},W.requestTick="ps_s",W.responseTick="ps_r");return W};
s$[dr]=[v6];var LG=function(){};
_.k(LG,XM);LG.prototype.getApiPaths=function(){return i7i};
LG.prototype.getExtension=function(F){return _.D(F,_.BLO)};
LG.prototype.JSC$11812_buildRequest=function(F,W){F.params=W.params;F.correctionText=W.correctionText};var qf=function(){};
_.k(qf,XM);qf.prototype.getApiPaths=function(){return XWo};
qf.prototype.getExtension=function(F){return _.D(F,_.doz)};
qf.prototype.JSC$11812_buildRequest=function(F,W){W.params&&(F.params=W.params);F.searchQuery=W.searchQuery;F.languageCode=W.languageCode;F.kind=W.kind;F.name=W.name;F.externalVideoId=W.externalVideoId};var $y=function(){};
_.k($y,XM);_.N=$y.prototype;_.N.getApiPaths=function(){return Eza};
_.N.getExtension=function(F){return _.D(F,_.GM)};
_.N.isNavigationCommand=function(){return!0};
_.N.JSC$11819_getStoreKey=function(F){if((F=this.getExtension(F))&&F.videoId){var W={videoId:F.videoId};F.playlistId&&(W.playlistId=F.playlistId);F.index&&(W.index=F.index);F.params&&(W.params=F.params);return _.ok("next",W)}};
_.N.JSC$11812_getClientScreen=function(F){var W;return((W=F.contentPlaybackContext)==null?void 0:W.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.N.JSC$11812_buildRequest=function(F,W,E){W.videoId&&(F.videoId=W.videoId);W.playlistId&&(F.playlistId=W.playlistId);W.params&&(F.params=W.params);W.index!==void 0&&(F.playlistIndex=W.index);F.racyCheckOk=!(!E.racyCheckOk&&!W.racyCheckOk);F.contentCheckOk=!!W.contentCheckOk;E.contentPlaybackContext&&(F.autonavState=E.contentPlaybackContext.autonavState,F.playbackContext={vis:E.contentPlaybackContext.vis,lactMilliseconds:E.contentPlaybackContext.lactMilliseconds});E.prefetchPlaybackContext&&(F.context.request||
(F.context.request={}),F.context.request.isPrefetch=!0);_.c("captions_hats_killswitch")||(W=_.Ij().getFlag(65),W=W!=null?!W:!1,E=!!_.Cy("yt-player-sticky-caption"),F.captionsRequested=W&&E)};
_.N.getRequestConfig=function(F){F=this.JSC$11819_getStoreKey(F);var W;F&&(W={storeStrategy:{storeKey:F}});_.c("web_log_player_watch_next_ticks")&&(W=W||{},W.requestTick="wn_s",W.responseTick="wn_r");return W};
var Zg=function(){};
_.k(Zg,XM);Zg.prototype.getApiPaths=function(){return Eza};
Zg.prototype.getExtension=function(F){return _.D(F,_.fQ)};
Zg.prototype.JSC$11812_buildRequest=function(F,W){W.token&&(F.continuation=W.token)};var Xi=function(F,W){this.playerRequestBuilder=F;this.watchNextRequestBuilder=W};
_.k(Xi,XM);Xi.prototype.getApiPaths=function(){return tBc};
Xi.prototype.getExtension=function(F){return _.D(F,_.GM)};
Xi.prototype.isNavigationCommand=function(){return!0};
Xi.prototype.JSC$11812_buildRequest=function(F,W,E){F.playerRequest={};this.playerRequestBuilder.JSC$11812_buildRequest(F.playerRequest,W,E);_.c("web_streaming_watch")&&(F.watchNextRequest={},this.watchNextRequestBuilder.JSC$11812_buildRequest(F.watchNextRequest,W,E))};
Xi[dr]=[s$,$y];var HC=function(){};
_.k(HC,XM);HC.prototype.getApiPaths=function(){return hPM};
HC.prototype.getExtension=function(F){return _.D(F,HoX)};
HC.prototype.JSC$11812_buildRequest=function(F,W){W.params&&(F.params=W.params)};var PC=function(F){this.JSC$15875_storeWithEntities=F};
_.k(PC,XM);PC.prototype.getApiPaths=function(){return Jli};
PC.prototype.getExtension=function(F){return _.D(F,J5z)||_.D(F,fTT)};
PC.prototype.JSC$11812_buildRequest=function(F,W,E){E.client_data&&(F.clientData=E.client_data);if(W.commerceActionConfig){var h=W.commerceActionConfig;W=h.actionId;h=h.commerceActionParams;W&&(F.actionId=W);h&&(F.commerceActionParams=h)}else{var d=W.actionId,V=W.commerceActionParams;E=W.entityKeys;d&&(F.actionId=d);V&&(F.commerceActionParams=V);var R;W=(h=this.JSC$15875_storeWithEntities)==null?void 0:(R=h.getState())==null?void 0:R.entities;if(E&&W){h=[];R=_.U(E);for(E=R.next();!E.done;E=R.next())if(d=
E.value,E=_.Vz(d).entityType,d=_.Mn(W,E,d))V={},h.push((V[E]=d,V));F.entityMutationPayloads=h}}};
PC.prototype.getRequestConfig=function(F){var W,E=(W=_.D(F,J5z))==null?void 0:W.requestSequenceType;if(E&&F.clickTrackingParams&&E!=="REQUEST_SEQUENCE_TYPE_UNKNOWN")return{sequenceStrategy:{sequenceKey:F.clickTrackingParams,sequenceType:E}}};
PC[dr]=[v6];var J4=function(){};
_.k(J4,XM);J4.prototype.getApiPaths=function(){return de_};
J4.prototype.getExtension=function(F){return _.D(F,_.K8e)};
J4.prototype.JSC$11812_buildRequest=function(F,W){W.feedbackData&&(F.feedbackData=W.feedbackData);W.params&&(F.itemParams=W.params)};
_.Sn.Object.defineProperties(J4.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var aP=function(){};
_.k(aP,XM);aP.prototype.getApiPaths=function(){return Ntu};
aP.prototype.getExtension=function(F){return _.D(F,Fo_)};
aP.prototype.JSC$11812_buildRequest=function(F,W,E){E.payments_payload&&(F.paymentsPayload=E.payments_payload);E.offer_params&&(F.offerParams=E.offer_params);W.transactionParams&&(F.transactionParams=W.transactionParams)};var fG=function(){};
_.k(fG,XM);fG.prototype.getApiPaths=function(){return VVp};
fG.prototype.getExtension=function(F){return _.D(F,_.Wop)};
fG.prototype.JSC$11812_buildRequest=function(F,W,E){E=E===void 0?{}:E;W.buybucketParams&&(F.buybucketData={params:W.buybucketParams},W.stickerParams?F.buybucketData.stickerParams=W.stickerParams:(E.rich_chat_message?F.buybucketData.richChatMessage=E.rich_chat_message:E.chat_message_text&&(F.buybucketData.chatMessageText=E.chat_message_text),E.purchase_price_micros&&(F.buybucketData.purchasePriceMicros=E.purchase_price_micros.toString())));W.donationAmountMicros&&(F.tipAmountMicros=W.donationAmountMicros,
W.tipParams&&(F.tipParams=W.tipParams));W.offerParams&&(F.offerParams=W.offerParams);W.productData&&(F.productData=W.productData);W.transactionParams&&(F.transactionParams=W.transactionParams)};var O$=function(){};
_.k(O$,XM);O$.prototype.getApiPaths=function(){return UeM};
O$.prototype.getExtension=function(F){return _.D(F,dXu)};
O$.prototype.JSC$11812_buildRequest=function(F,W){W.updateFopParams&&(F.updateFopParams=W.updateFopParams)};var b$=function(){};
_.k(b$,XM);b$.prototype.getApiPaths=function(){return RPa};
b$.prototype.getExtension=function(F){return _.D(F,_.g9)};
b$.prototype.JSC$11812_buildRequest=function(F,W){W.couponCode&&(F.couponCode=W.couponCode);W.params&&(F.itemParams=W.params)};var l$=function(){};
_.k(l$,XM);l$.prototype.getApiPaths=function(){return ePU};
l$.prototype.getExtension=function(F){return _.D(F,_.aTB)};
l$.prototype.JSC$11812_buildRequest=function(F,W,E){E=E===void 0?{}:E;W.params&&(F.params=W.params);E.ctk&&(F.clientToken=E.ctk)};var nG=function(F){this.JSC$15910_storeWithEntities=F};
_.k(nG,XM);nG.prototype.getApiPaths=function(){return MVp};
nG.prototype.getExtension=function(F){return _.D(F,_.Gh)};
nG.prototype.JSC$11812_buildRequest=function(F,W,E){E.purchase_price_micros&&(F.productData={pdgData:{purchasePriceMicros:E.purchase_price_micros.toString()}},E.rich_chat_message&&(F.productData.pdgData.richChatMessage=E.rich_chat_message),E.currency_code&&(F.productData.pdgData.currencyCode=E.currency_code));W.transactionParams&&(F.transactionParams=W.transactionParams);W.clientLocationContext&&(F.clientLocationContext=W.clientLocationContext);E.payments_payload&&(F.paymentsPayload=E.payments_payload);
E.funds_guarantee_callback_client_data&&(F.fundsGuaranteeCallbackClientData=E.funds_guarantee_callback_client_data);var h,d;E=(h=this.JSC$15910_storeWithEntities)==null?void 0:(d=h.getState())==null?void 0:d.entities;if(W.entityKeys&&E){h=[];W=_.U(W.entityKeys);for(d=W.next();!d.done;d=W.next()){var V=d.value;d=_.Vz(V).entityType;if(V=_.Mn(E,d,V)){var R={};h.push((R[d]=V,R))}}F.entityMutationPayloads=h}};
nG[dr]=[v6];var yY=function(){};
_.k(yY,XM);yY.prototype.getApiPaths=function(){return gzu};
yY.prototype.getExtension=function(F){return _.D(F,EEO)};
yY.prototype.JSC$11812_buildRequest=function(F,W,E){E=E===void 0?{}:E;E.backend_analytics&&(F.serializedBackendAnalyticsEvent=E.backend_analytics);W.offerParams&&(F.offerParams=W.offerParams)};var jK=function(){};
_.k(jK,XM);jK.prototype.getApiPaths=function(){return RPa};
jK.prototype.getExtension=function(F){return _.D(F,dLr)};
jK.prototype.JSC$11812_buildRequest=function(F,W){W.params&&(F.itemParams=W.params)};var i$=function(){};
_.k(i$,XM);i$.prototype.getApiPaths=function(){return Qmu};
i$.prototype.getExtension=function(F){return _.D(F,_.y5T)};
i$.prototype.JSC$11812_buildRequest=function(F,W,E){E.resume_time_ms&&(F.resumeTimeMs=E.resume_time_ms);W.pauseParams&&(F.pauseParams=W.pauseParams)};var rx=function(){};
_.k(rx,XM);rx.prototype.getApiPaths=function(){return zPH};
rx.prototype.getExtension=function(F){return _.D(F,_.hBX)};
rx.prototype.JSC$11812_buildRequest=function(F,W,E){E=E===void 0?{}:E;E.c&&(F.redeemCode=E.c);E.rd&&(F.riskData=E.rd);E.ctk&&(F.clientToken=E.ctk)};var Tu=function(){};
_.k(Tu,XM);Tu.prototype.getApiPaths=function(){return tVu};
Tu.prototype.getExtension=function(F){return _.D(F,_.j0_)};
Tu.prototype.JSC$11812_buildRequest=function(F,W){W.resumeParams&&(F.resumeParams=W.resumeParams)};var oP=function(F,W){this.clientName=F;this.defaultExpirationDelayMs=W};
oP.prototype.put=function(F,W){var E=this,h;return _.e(function(d){h=Object.assign({},W.data);h.key=F;h.clientName=E.clientName;h.expireTimestampMs===void 0&&(h.expireTimestampMs=(Math.round((0,_.KU)())+E.defaultExpirationDelayMs).toString());return d.return(E.putInternal(F,h))})};
oP[dr]=[c9,d$X];var YFH=function(){oP.apply(this,arguments);this.JSC$15940_responseStore=new Map};
_.k(YFH,oP);_.N=YFH.prototype;_.N.get=function(F){var W=this;return _.e(function(E){return E.return(eg(W,F))})};
_.N.putInternal=function(F,W){var E=this,h,d,V;return _.e(function(R){h=E.defaultExpirationDelayMs;W.expireTimestampMs&&(h=Number(W.expireTimestampMs)-Math.round((0,_.KU)()),d=_.dV("mweb_override_response_store_expiration_ms"),d>0&&d<h&&(h=d));V=setTimeout(function(){E.remove(F)},h);
E.JSC$15940_responseStore.set(F,{entryData:W,timer:V});_.gG(R)})};
_.N.remove=function(F){var W=this;return _.e(function(E){wRu(W,F);_.gG(E)})};
_.N.removeAll=function(){var F=this;return _.e(function(W){F.JSC$15940_responseStore.forEach(function(E){clearTimeout(E.timer)});
F.JSC$15940_responseStore.clear();_.gG(W)})};
_.N.has=function(F){return!!this.JSC$15940_responseStore.get(F)};
_.N.getKeys=function(){return this.JSC$15940_responseStore.keys()};
var eg=function(F,W){if(F=F.JSC$15940_responseStore.get(W))return new _.RG(F.entryData)},wRu=function(F,W){var E=F.JSC$15940_responseStore.get(W);
E&&(clearTimeout(E.timer),F.JSC$15940_responseStore.delete(W))};var qIY;var XdW=function(F,W,E){oP.call(this,F,W);this.token=E};
_.k(XdW,oP);_.N=XdW.prototype;_.N.get=function(F){var W=this,E,h;return _.e(function(d){return d.nextAddress==1?_.Q(d,ZES(W.token),2):d.nextAddress!=3?(E=d.yieldResult,_.Q(d,E.get("ResponseStore",[F,W.clientName]),3)):(h=d.yieldResult)?d.return(new _.RG(h)):d.return(void 0)})};
_.N.putInternal=function(F,W){var E=this,h;return _.e(function(d){if(d.nextAddress==1)return _.Q(d,ZES(E.token),2);h=d.yieldResult;return _.Q(d,h.put("ResponseStore",W),0)})};
_.N.remove=function(F){var W=this,E;return _.e(function(h){if(h.nextAddress==1)return _.Q(h,ZES(W.token),2);E=h.yieldResult;return h.return(E.delete("ResponseStore",[F,W.clientName]))})};
_.N.removeAll=function(){var F=this,W;return _.e(function(E){if(E.nextAddress==1)return _.Q(E,ZES(F.token),2);W=E.yieldResult;return _.Q(E,VhH(W,IDBKeyRange.only(F.clientName)),0)})};
_.N.has=function(){throw Error("Ui");};_.Gu=new _.NG("PERSISTENT_STORE_PROMISE_ACCESSOR_TOKEN");var uoO=function(F){var W;this.stateTagsData=(W=F.responseContext)==null?void 0:W.stateTags},SF_=function(F){var W;
return((W=F.stateTagsData)==null?void 0:W.stateTagsModified)||[]};var pRT;pRT=function(F){this.JSC$15953_responseStore=F};
_.SX=function(F,W,E){if(!_.c("state_tags_killswitch")){var h=new uoO(W);if(SF_(h).length>0){var d=F.JSC$15953_responseStore.getKeys();d=_.U(d);for(var V=d.next();!V.done;V=d.next()){V=V.value;var R=eg(F.JSC$15953_responseStore,V);if(R){var M=_.Ck(R);a:{var g=void 0;R=SF_(h);M=((g=(new uoO(M)).stateTagsData)==null?void 0:g.relevantStateTags)||[];g=_.U(M);for(M=g.next();!M.done;M=g.next())if(M=M.value,M.stateTag!=null&&R.includes(M.stateTag)&&M.onStateTagModified==="STATE_TAG_CACHE_INSTRUCTION_EVICT_RESPONSE"){R=
!0;break a}R=!1}R&&wRu(F.JSC$15953_responseStore,V)}}}}var t;h=(t=W.responseContext)==null?void 0:t.maxAgeSeconds;_.c("web_prefetch_riw_for_next_video")&&!h&&W.status==="REEL_ITEM_WATCH_STATUS_SUCCEEDED"&&(h=3600);E&&h&&Number(h)>0&&(W=R6(W,h),F.JSC$15953_responseStore.put(E,new _.RG(W)))};
pRT.prototype.handleResponse=function(F,W){if(!W)throw Error("Vi");var E,h;W=(E=W.config)==null?void 0:(h=E.storeStrategy)==null?void 0:h.storeKey;_.SX(this,F,W)};
pRT[dr]=[_.UL];_.vNb=new _.NG("STORE_RESPONSE_PROCESSOR_TOKEN");var m$X=function(F){this.JSC$15956_responseStore=F};
m$X.prototype.handleResponse=function(F,W){if(W.input.match(_.SF(XUX))){var E;if(F==null?0:(E=F.entries)==null?0:E.length)for(F=_.U(F.entries),W=F.next();!W.done;W=F.next()){E=W.value.command;var h=void 0;W=(h=_.D(E,_.DP))==null?void 0:h.unserializedPrefetchData;if(!E||!W)break;h=(new gx).JSC$11819_getStoreKey(E);var d=_.D(W,u4z),V=void 0,R=void 0,M=void 0,g=_.dV("web_shorts_prefetch_service_ttl_seconds")>0?_.dV("web_shorts_prefetch_service_ttl_seconds"):Number((M=(V=d)==null?void 0:(R=V.responseContext)==
null?void 0:R.maxAgeSeconds)!=null?M:3600);h&&g>0&&(d=R6(d,g),this.JSC$15956_responseStore.put(h,new _.RG(d)));E=(new s$).JSC$11819_getStoreKey(E);W=_.D(W,JBT);V=d=h=void 0;R=_.dV("web_shorts_prefetch_service_ttl_seconds")>0?_.dV("web_shorts_prefetch_service_ttl_seconds"):Number((V=(h=W)==null?void 0:(d=h.responseContext)==null?void 0:d.maxAgeSeconds)!=null?V:3600);E&&R>0&&(W=R6(W,R),this.JSC$15956_responseStore.put(E,new _.RG(W)))}}};
m$X[dr]=[_.UL];var KGT=function(F){this.innertubeTransportService=F};
KGT[dr]=[_.sh];var FYO=new _.NG("SUBMIT_API_SERVICE_TOKEN");var Yy=function(){this.scheduler=_.OZ()},WY6;
Yy.prototype.pause=function(){throw Error("Wi");};
Yy.prototype.resume=function(){throw Error("Wi");};
Yy.prototype.queue=function(F){var W=this,E=_.G_(),h=_.sB(this.scheduler,function(){try{var d;if(_.Ru.instance)var V=_.Ru.instance;else{var R=new _.xC("Error: Unexpected uninitialized CommandHandler.");_.a_(R);V=void 0}(d=V)==null||d.resolveCommand(F.command);E.resolve()}catch(M){E.reject(M)}});
E.promise.thenCatch(function(d){d instanceof _.FR&&W.scheduler.cancelJob(h)});
return E.promise};
Yy.prototype.queueAll=function(F){var W=new Map;F=_.U(F);for(var E=F.next();!E.done;E=F.next())E=E.value,W.set(E.id,this.queue(E));return W};var hrK=function(F,W){var E=this;this.taskModel=F;this.onTaskCancelledCallback=W;this.resolver=_.G_();F=F.proto.prefetchConfig;if(!F)throw Error("Xi");if(!F.prefetchAction)throw Error("Yi");this.prefetchConfig=this.taskModel.proto.prefetchConfig;this.cancellablePromise=this.resolver.promise.thenCatch(function(h){h instanceof _.FR&&(EWT(E,E.taskModel.cancelOn.screenExit?"CANCELLATION_REASON_PAGE_NAVIGATION":"CANCELLATION_REASON_UNKNOWN"),E.onTaskCancelledCallback(E.taskModel.id,E.jobId),E.tick("pcc"));
throw h;});
this.timerName=this.taskModel.id;_.Z2(this.prefetchConfig.prefetchAction,void 0,this.timerName,this.prefetchConfig.prefetchAction)},dwN=function(F){switch(F.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":return 3;
case "PREFETCH_PRIORITY_MEDIUM":return 2;case "PREFETCH_PRIORITY_LOW":return 1;default:return 0}},EWT=function(F,W){_.$b({prefetchInfo:{cancellationReason:W}},F.timerName)};
hrK.prototype.tick=function(F){_.P5(F,void 0,this.timerName)};var u$=function(){var F=this;this.scheduler=_.OZ();this.maxInflightTasks=_.dV("prefetch_coordinator_max_inflight_requests");this.coordinatorTimeoutMs=_.dV("prefetch_coordinator_command_timeout_ms");this.prefetchCoordinatorState=0;this.allPrefetchTasks=new Map;this.inflightPrefetchTasks=new Map;this.drainingHeap=new ZzU;this.onTaskCancelled=function(W,E){E&&F.scheduler.cancelJob(E);NIx(F,W);wx(F,3)}},Vkq=function(){u$.instance||(u$.instance=new u$);
return u$.instance};
u$.prototype.pause=function(){this.prefetchCoordinatorState=0};
u$.prototype.resume=function(){wx(this,0)};
u$.prototype.queue=function(F){F=Uw8(this,F);wx(this,1);return F};
u$.prototype.queueAll=function(F){var W=new Map;F=_.U(F);for(var E=F.next();!E.done;E=F.next())E=E.value,W.set(E.id,Uw8(this,E));wx(this,1);return W};
var Uw8=function(F,W){var E=F.allPrefetchTasks.get(W.id);if(E)return E.cancellablePromise;try{var h=new hrK(W,F.onTaskCancelled)}catch(V){return _.xT(V)}E=h;E.tick("pcq");var d={prefetchInfo:{taskId:E.taskModel.id,isPrefetch:!0,fetchAction:E.prefetchConfig.fetchAction},actionVisualElement:{trackingParams:E.taskModel.command.clickTrackingParams}};E.taskModel.csn&&(d.clientScreenNonce=E.taskModel.csn);_.$b(d,E.timerName);F.allPrefetchTasks.set(W.id,h);F.drainingHeap.insert(-dwN(h),h);return h.cancellablePromise},
wx=function(F,W){F.prefetchCoordinatorState===W&&(F.prefetchCoordinatorState=2,RrP(F))},RrP=function(F){for(var W={};F.prefetchCoordinatorState!==0;W={taskId$jscomp$3:void 0,
prefetchTask$jscomp$1:void 0}){if(F.inflightPrefetchTasks.size>=F.maxInflightTasks){F.prefetchCoordinatorState=3;break}W.prefetchTask$jscomp$1=F.drainingHeap.remove();if(!W.prefetchTask$jscomp$1){F.prefetchCoordinatorState=1;break}W.taskId$jscomp$3=W.prefetchTask$jscomp$1.taskModel.id;if(F.allPrefetchTasks.has(W.taskId$jscomp$3)){var E=-1;F.coordinatorTimeoutMs>0&&(E=_.sB(F.scheduler,function(h){return function(){SK(F,h.taskId$jscomp$3,Error("Zi"))}}(W),F.coordinatorTimeoutMs));
F.inflightPrefetchTasks.set(W.taskId$jscomp$3,E);if(!F.JSC$15974_commandHandler){if(!_.Ru.instance){SK(F,W.taskId$jscomp$3,Error("$i"));continue}F.JSC$15974_commandHandler=_.Ru.instance}a:switch(W.prefetchTask$jscomp$1.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":case "PREFETCH_PRIORITY_MEDIUM":E=1;break a;default:E=0}W.prefetchTask$jscomp$1.jobId=F.scheduler.addJob(function(h){return function(){h.prefetchTask$jscomp$1.tick("pcr");try{F.JSC$15974_commandHandler.resolveCommand(h.prefetchTask$jscomp$1.taskModel.command)||
SK(F,h.taskId$jscomp$3,Error("aj"))}catch(d){SK(F,h.taskId$jscomp$3,d)}}}(W),E,0)}}},eru=function(F,W){(W=NIx(F,W))!=null&&(W.resolver.resolve(),W.tick("pce"));
wx(F,3)},SK=function(F,W,E){(W=NIx(F,W,E))!=null&&(W.resolver.reject(E),W.tick("pcc"),EWT(W,"CANCELLATION_REASON_ERROR"),Math.random()<=_.dV("prefetch_coordinator_error_logging_sampling_rate")&&(E=new _.xC("Prefetch Command failed.",W.taskModel.id,E.message),_.a_(E)));
wx(F,3)},NIx=function(F,W,E){var h=F.allPrefetchTasks.get(W);
h?((E=F.inflightPrefetchTasks.get(W))&&E!==-1&&F.scheduler.cancelJob(E),F.inflightPrefetchTasks.delete(W),F.allPrefetchTasks.delete(W)):_.OB(new _.xC("Unexpected missing prefetch task when deleting task.",W,E==null?void 0:E.message));return h};var Mk6=function(F,W,E,h,d){this.id=F;this.triggerOn=W;this.cancelOn=E;this.command=h;this.proto=d};
_.Sn.Object.defineProperties(Mk6.prototype,{taskType:{configurable:!0,enumerable:!0,get:function(){return this.proto.prefetchConfig?0:1}}});var gWN=function(){this.JSC$15979_prefetchCoordinator=Vkq();WY6||(WY6=new Yy);this.defaultCoordinator=WY6},Qn6;
gWN.getInstance=function(){Qn6||(Qn6=new gWN);return Qn6};
gWN.prototype.get=function(F){switch(F){case 0:return this.JSC$15979_prefetchCoordinator;default:return this.defaultCoordinator}};var pG=function(){this.coordinatorSupplier=gWN.getInstance();this.tasks=new Map;this.taskIdByTriggerId=new Map;this.taskIdByCancelId=new Map;this.queuedPromisesByTask=new Map},CoP=function(F){var W=_.JR()||void 0,E=Object.keys(zr6)[0];
if(E){var h=F.taskIdByTriggerId.get(E);if(h!=null){F.taskIdByTriggerId.delete(E);E=[];h=_.U(h);for(var d=h.next();!d.done;d=h.next())if(d=F.tasks.get(d.value))W!=="UNDEFINED_CSN"&&(d.csn=W),E.push(d);E=J0n(E);W=[];E=_.U(E);for(h=E.next();!h.done;h=E.next()){d=_.U(h.value);h=d.next().value;d=d.next().value;h=F.coordinatorSupplier.get(h).queueAll(d);h=_.U(h);var V=h.next();for(d={};!V.done;d={taskId$jscomp$9:void 0},V=h.next()){var R=_.U(V.value);V=R.next().value;R=R.next().value;d.taskId$jscomp$9=
V;V=R;W.push(d.taskId$jscomp$9);F.queuedPromisesByTask.set(d.taskId$jscomp$9,_.HI(V,function(M){return function(){tku(F,M.taskId$jscomp$9)}}(d)))}}}}else _.OB(new _.xC("Unexpected malformed TriggerEvent."))};
pG.prototype.trigger=function(F,W){var E=this,h=this.tasks.get(F);if(!h||this.queuedPromisesByTask.has(F))return!1;BIx(this,F,h.triggerOn);W!=="UNDEFINED_CSN"&&(h.csn=W);W=this.coordinatorSupplier.get(h.taskType).queue(h);this.queuedPromisesByTask.set(F,_.HI(W,function(){tku(E,F)}));
return!0};
pG.prototype.cancel=function(F){var W=this.queuedPromisesByTask.get(F);if(W)W.cancel();else return tku(this,F)};
var tku=function(F,W){F.queuedPromisesByTask.delete(W);var E=F.tasks.get(W);if(!E)return!1;F.tasks.delete(W);BIx(F,W,E.triggerOn);(E=PWS(E.cancelOn))&&(F=F.taskIdByCancelId.get(E))&&F.delete(W);return!0},BIx=function(F,W,E){(E=Object.keys(E)[0])&&(F=F.taskIdByTriggerId.get(E))&&F.delete(W)};var zr6={taskRegistered:{}},mQ=function(){pG.instance||(pG.instance=new pG);this.JSC$15988_taskManager=pG.instance};
_.k(mQ,Jn);
mQ.prototype.resolveCommand=function(F){var W=this,E,h;return _.e(function(d){E=_.D(F,uWc);if((h=E)==null||!h.tasks){var V=new _.xC("RegisterTasksCommand is missing tasks.");_.a_(V);return d.return()}V=W.JSC$15988_taskManager;for(var R=_.U(E.tasks),M=R.next();!M.done;M=R.next())if(M=M.value,M=M.id&&M.triggerOn&&M.cancelOn&&M.command?new Mk6(M.id,M.triggerOn,M.cancelOn,M.command,M):void 0,M){var g=Object.keys(M.triggerOn)[0];if(g){var t=PWS(M.cancelOn);t?(V.tasks.set(M.id,M),V.taskIdByTriggerId.has(g)||V.taskIdByTriggerId.set(g,
new Set),V.taskIdByTriggerId.get(g).add(M.id),V.taskIdByCancelId.has(t)||V.taskIdByCancelId.set(t,new Set),V.taskIdByCancelId.get(t).add(M.id)):_.OB(new _.xC("Unexpected malformed cancelOn field."))}else _.OB(new _.xC("Unexpected malformed triggerOn field."))}else _.OB(new _.xC("Unexpected malformed Task proto."));CoP(W.JSC$15988_taskManager);_.gG(d)})};var vWu={},ISK=(vWu.rendered={priority:0,callback:function(){var F={};F.numCpu=navigator.hardwareConcurrency;var W={};W.ramGb=_.EY.navigator.deviceMemory;var E={staticContext:{}};W.ramGb&&aXn(W.ramGb)&&(E.staticContext.memoryTotalKbytes=(W.ramGb*1048576).toString());F.numCpu&&aXn(F.numCpu)&&(E.staticContext.cpuCores=F.numCpu);if(_.c("web_enable_adaptive_appl_signal")){F={};W=_.fY("rses_dpj");var h=_.fY("rsef_dpj");W&&W>0&&h&&h>0&&(W=Math.ceil(h-W),W>0&&(F.loadLatency=W));F.loadLatency&&aXn(F.loadLatency)&&
(E.appL=F.loadLatency.toString())}_.Pc("applicationStarted",E)}},vWu);var cr6=new _.NG("WINDOW_ON_ERROR"),Dw$=new _.NG("ERROR_WEIGHT_MAPS"),xwK=new _.NG("INIT_ERROR");var kRg={},Ar8=(kRg.initialized={priority:10,callback:function(F){F.injector.resolve(xwK)()}},kRg);var snO=function(){},LYK=function(){var F=_.ju("meta_logger_impl");
F||(F=new snO,_.S5("meta_logger_impl",F));return F},qYg=function(){LYK().csiSubscriptionKey=tFo("meta_logging_csi_event",function(F){var W=F.timerName;
if(F=F.timelineData){_.Z2(W,{startTime:F.startTime},W);F.infos&&_.$b(F.infos,W);for(var E=_.U(Object.keys(F.ticks)),h=E.next();!h.done;h=E.next())h=h.value,_.P5(h,F.ticks[h],W)}})};
snO.prototype.unlisten=function(){this.csiSubscriptionKey!==void 0&&vrY(this.csiSubscriptionKey)};var $wx={},Zb6=($wx.initialized={priority:10,callback:function(){qYg()}},$wx);var XG$=function(F,W){this.innertubeClientName=F;this.JSC$16004_prefCookie=W};
XG$.prototype.record=function(){if(_.c("web_li_record_binary_eval_tick")){var F=_.fY("rsef_dpj");var W=_.fY("rses_dpj");F=F!==void 0&&W!==void 0?Math.round(F-W):void 0;if(F!==void 0&&F>0){W=_.Cy(this.storagePrefix+"-"+this.innertubeClientName)||{valuesSample:[],valuesSeen:0};var E=this.poolSize;if(!(W.valuesSeen>=1E9)){if(W.valuesSample.length<E)W.valuesSample.push(F);else{var h=Math.floor(Math.random()*(W.valuesSeen+1));h<E&&(W.valuesSample[h]=F)}W.valuesSeen+=1}_.tl(this.storagePrefix+"-"+this.innertubeClientName,
W,2592E3);F=W.valuesSample;W=fXW(F);F=F.length<5?void 0:W<400?1:W<1700?2:3;F!==void 0&&(this.JSC$16004_prefCookie.set(this.cookiePrefix+this.innertubeClientName,F),this.JSC$16004_prefCookie.save())}}else _.B2(this.storagePrefix+"-"+this.innertubeClientName),this.JSC$16004_prefCookie.remove(this.cookiePrefix+this.innertubeClientName),this.JSC$16004_prefCookie.save()};
XG$[dr]=[c9,ue];var Hbg=function(){XG$.apply(this,arguments);this.storagePrefix="yt-signal-be";this.cookiePrefix="lsbe";this.poolSize=5};
_.k(Hbg,XG$);var Po6=new _.NG("PAGE_LOAD_TIME_TOKEN");var Jrq=new _.NG("DOWNLOAD_ELIGIBILITY_PROMISE_TOKEN");var KG=function(F,W){this.JSC$16025_storeWithEntities=F;this.JSC$16025_commandHandler=W;this.downloadingToastInitialized=!1;this.downloadingEntities=[]};
KG.prototype.start=function(){this.JSC$16025_storeWithEntities.subscribe(this.observeDownloadingEntities.bind(this))};
KG.prototype.observeDownloadingEntities=function(){var F=_.KMY(this.JSC$16025_storeWithEntities.getState().entities).map(function(h){return Fye(h)});
if(F.length>0){if(!this.downloadingToastInitialized){this.downloadingToastInitialized=!0;var W={openPopupAction:{popup:{videoDownloadToastRenderer:{actionButton:{buttonRenderer:O6o()},loggingDirectives:{clientVeSpec:{uiType:98969}},responseText:_.Wz(_.CY("DOWNLOADING",void 0,"Downloading"))}},popupType:"TOAST",durationHintMs:0}};this.JSC$16025_commandHandler.resolveCommand(W)}this.downloadingEntities=F}else if(this.downloadingEntities.length){var E=mHS(this.JSC$16025_storeWithEntities.getState().entities).map(function(h){return Fye(h)});
this.downloadingEntities.filter(function(h){return E.includes(h)}).length&&(F={openPopupAction:vLY()},this.JSC$16025_commandHandler.resolveCommand(F));
this.downloadingEntities=[]}};
KG[dr]=[v6,_.EJ];var aS6;_.FS=function(F,W,E,h,d,V,R,M){this.JSC$16028_playerApiPromise=F;this.JSC$16028_commandHandler=W;this.JSC$16028_screenManager=E;this.offlineWebClientEligibility=h;this.JSC$16028_prefStorage=d;this.JSC$16028_actionRouter=V;this.entityTypeMap=R;this.JSC$16028_persistentStorePromiseAccessor=M;this.downloadFailureListenerBound=!1;this.previousDownloadStateForVideo={}};
aS6=function(){var F=_.WZ().resolve(_.FS),W;_.e(function(E){if(E.nextAddress==1)return F.downloadFailureListenerBound?E.return():_.Q(E,F.JSC$16028_playerApiPromise,2);W=E.yieldResult;W.addEventListener("onOfflineOperationFailure",function(h){if(h.failureReason&&h.entityKey&&h.failureReason!=="OFFLINE_OPERATION_FAILURE_REASON_UNKNOWN")if(h.failureReason==="OFFLINE_OPERATION_FAILURE_REASON_VIDEO_DELETED"){var d=_.Vz(h.entityKey).entityId;d&&F.JSC$16028_actionRouter.triggerOptionalAction("yt-downloaded-video-deleted",
d)}else if(_.c("kevlar_woffle")){d=F.JSC$16028_commandHandler;var V=d.resolveCommand;h=h.failureReason;var R=_.CY("TRANSFER_FAILED",void 0,"Download failed");h==="OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"&&(R=_.CY("STORAGE_FULL",void 0,"Storage full"));V.call(d,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.Wz(R),loggingDirectives:{clientVeSpec:{uiType:134511}}}},popupType:"TOAST"}})}});
F.downloadFailureListenerBound=!0;_.gG(E)})};
_.FS.prototype.deleteVideo=function(F,W){var E=this,h,d,V;return _.e(function(R){if(R.nextAddress==1)return _.Q(R,E.JSC$16028_playerApiPromise,2);h=R.yieldResult;V={offlineLoggingData:{offlineDeleteReason:(d=W)!=null?d:"OFFLINE_DELETE_REASON_USER_INITIATED"}};return _.Q(R,h.queueOfflineAction(F,E.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",V),0)})};
_.FS.prototype.pauseVideoDownload=function(F){var W=this,E;return _.e(function(h){if(h.nextAddress==1)return _.Q(h,W.JSC$16028_playerApiPromise,2);E=h.yieldResult;E.pauseVideoDownload(F);_.gG(h)})};
_.FS.prototype.resumeVideoDownload=function(F){var W=this,E;return _.e(function(h){if(h.nextAddress==1)return _.Q(h,W.JSC$16028_playerApiPromise,2);E=h.yieldResult;return _.Q(h,E.resumeVideoDownload(F),0)})};
_.FS[dr]=[_.Va,_.EJ,_.cU,Jrq,Ka,Wt,Ija,mU];var fSu=new _.NG("DOWNLOAD_STATE_STORE_TOKEN");var Obu=function(F,W){this.JSC$16047_persistentStorePromiseAccessor=F;this.store=W;this.upliftCompletionResolver=new _.eR},nWK=function(){var F=_.WZ().resolve(bbT),W;
_.e(function(E){switch(E.nextAddress){case 1:if(F.upliftImplPromise)return E.return(F.upliftImplPromise);_.Nl(E,2);F.upliftImplPromise=lSP(F);return _.Q(E,F.upliftImplPromise,4);case 4:F.upliftCompletionResolver.resolve();_.id(E,3);break;case 2:throw W=_.Ml(E),F.upliftCompletionResolver.reject(W),W;case 3:return E.return(F.upliftImplPromise)}})},lSP=function(F){var W,E,h;
return _.e(function(d){switch(d.nextAddress){case 1:return _.l0("LOGGED_IN")?_.Q(d,F.JSC$16047_persistentStorePromiseAccessor(),2):d.return();case 2:W=d.yieldResult;if(!W)return _.P5("vdeur"),d.return();_.P5("vdeus");_.Nl(d,3);return _.Q(d,yr6(W),5);case 5:E=d.yieldResult;F.store.dispatch(l5k(E));W.observe(function(V){n4b(F.store,V)});
_.id(d,4);break;case 3:throw h=_.Ml(d),_.P5("vdeur"),h;case 4:_.P5("vdeuc"),_.gG(d)}})},yr6=function(F){var W;
return _.e(function(E){if(E.nextAddress==1)return _.Q(E,iEn(F),2);W=E.yieldResult;return E.return(W.reduce(function(h,d){if(!d.data||!d.key||!d.entityType)return h;h[d.entityType]||(h[d.entityType]={});h[d.entityType][d.key]=d.data;return h},{}))})};
Obu[dr]=[mU,_.P2];var bbT;bbT=new _.NG("DOWNLOAD_UPLIFT_SERVICE_TOKEN");_.W7=new _.NG("DOWNLOAD_UPLIFT_COMPLETION_PROMISE_TOKEN");var EE=function(F,W){this.JSC$16050_persistentStorePromiseAccessor=F;this.transportService=W};
EE.prototype.refresh=function(){var F=this,W,E,h,d;return _.e(function(V){if(V.nextAddress==1)return _.l0("LOGGED_IN")?_.Q(V,F.JSC$16050_persistentStorePromiseAccessor(),2):V.return();if(V.nextAddress!=3)return(W=V.yieldResult)?_.Q(V,A0o(W),3):V.return();if((E=V.yieldResult)&&!(Number(E.data.refreshTimestampMs||0)<(0,_.KU)()))return V.return();h={browseId:"SPaccount_downloads"};d=_.SF(RV);_.no(F.transportService,h,d).then(function(R){var M;if(W&&(R==null?void 0:(M=R.responseContext)==null?void 0:
M.maxAgeSeconds)!==0){var g;M=(R==null?void 0:(g=R.responseContext)==null?void 0:g.maxAgeSeconds)||604800;g=String(Math.floor((0,_.KU)())+M*1E3);W.put("service:downloads_settings:fallback",new _.RG({innertubeResponse:R,refreshTimestampMs:g}))}});
_.gG(V)})};
EE[dr]=[_.Gu,_.sh];var hp=function(F,W){this.JSC$16054_playerPromise=F;this.store=W;this.started=!1};
hp.prototype.start=function(){var F=this,W;return _.e(function(E){if(E.nextAddress==1)return F.started?E.return():_.Q(E,F.JSC$16054_playerPromise,2);W=E.yieldResult;W.addEventListener("onOrchestrationBecameLeader",F.updateIsLeader.bind(F,!0));W.addEventListener("onOrchestrationLostLeader",F.updateIsLeader.bind(F,!1));if(W.isOrchestrationLeader)F.updateIsLeader(W.isOrchestrationLeader());else{var h=new _.xC("Function isOrchestrationLeader is undefined",{"player.isReady":W.isReady(),"player.playVideo":W.playVideo?
"defined":"undefined"});_.a_(h);F.updateIsLeader(!1)}F.started=!0;_.gG(E)})};
hp.prototype.updateIsLeader=function(F){this.store.dispatch(_.dR({type:"SET_IS_LEADER_TAB",payload:{isLeaderTab:F}}))};
hp[dr]=[_.Va,_.P2];var jnw=function(F,W){this.networkStatusManager=F;this.JSC$16057_prefStoragePromise=W;this.redirectsToPreload=["https://youtube.com"]},ib$=function(){var F=_.WZ().resolve(jnw),W,E,h,d,V,R;
_.e(function(M){switch(M.nextAddress){case 1:return _.Q(M,F.JSC$16057_prefStoragePromise,2);case 2:W=M.yieldResult;if(!(E=W)){M.jumpTo(3);break}return _.Q(M,W.get("yt-redirect-prefetch-id"),4);case 4:E=M.yieldResult;case 3:if(E||!F.networkStatusManager.isNetworkAvailable())return M.return();h={cache:"reload",redirect:"manual"};d=_.U(F.redirectsToPreload);V=d.next();case 5:if(V.done){if(!W){M.jumpTo(0);break}return _.Q(M,W.set("yt-redirect-prefetch-id",!0,86400),0)}R=V.value;_.Nl(M,8);return _.Q(M,
_.EY.fetch(R,h),10);case 10:_.id(M,6);break;case 8:_.Ml(M);case 6:V=d.next(),M.jumpTo(5)}})};var dJ=function(F){F?(this.container=F,this.containerWasInjected=!0):this.containerWasInjected=!1};
dJ.prototype.openDialog=function(F,W,E){var h=this,d;return _.e(function(V){(d=h.container)==null||d.openDialog(F,W,E);_.gG(V)})};
dJ.prototype.closeDialog=function(){var F=this,W;return _.e(function(E){(W=F.container)==null||W.closeDialog();_.gG(E)})};
dJ.prototype.isDialogOpen=function(){var F=this,W,E;return _.e(function(h){return h.return((E=(W=F.container)==null?void 0:W.isDialogOpen())!=null?E:!1)})};
dJ[dr]=[_.Fd(bGi)];_.rrT=new _.NG("POPUP_CONTROLLER_TOKEN");var TI6=function(){this.panelMap=new Map;this.pendingPanelResolvers=new Map};
TI6.prototype.registerPanel=function(F,W){if(F){this.panelMap.set(F,W);var E=this.pendingPanelResolvers.get(F);E&&(E.resolve(W),this.pendingPanelResolvers.delete(F))}};
TI6.prototype.getPanel=function(F){var W=this,E;return _.e(function(h){return(E=W.panelMap.get(F))?h.return(E):h.return(oWK(W,F))})};
var oWK=function(F,W){var E,h;return _.e(function(d){if(E=F.pendingPanelResolvers.get(W))return d.return(E.promise);h=new _.eR;F.pendingPanelResolvers.set(W,h);return d.return(h.promise)})},GRO=function(F){TI6.call(this);
var W=this;this.popupController=F;this.panelContentMap=new Map;this.updatePanelContinuationDatas=new Map;this.TEST_ONLY={getPanelMapSize:function(){return W.panelMap.size}}};
_.k(GRO,TI6);_.N=GRO.prototype;_.N.getReloadContinuation=function(F){var W=this,E;return _.e(function(h){if(h.nextAddress==1)return _.Q(h,W.getPanel(F),2);E=h.yieldResult;return h.return(E.getReloadContinuation())})};
_.N.showPanel=function(F,W,E,h,d,V,R){var M=this,g,t,C,B;return _.e(function(I){if(I.nextAddress==1){R&&M.updatePanelContinuationDatas.set(F,R);if((g=E)==null?0:(t=g.engagementPanelPopupPresentationConfig)==null?0:t.popupType){C=E.engagementPanelPopupPresentationConfig.popupType;d===void 0&&(d=document.body);var x=I.return,A=M.popupController,X=A.openPopup;a:switch(C){case "PANEL_POPUP_TYPE_DIALOG":var P="DIALOG";break a;case "PANEL_POPUP_TYPE_DROPDOWN":P="DROPDOWN";break a;default:throw Error("cj`"+
C);}return x.call(I,X.call(A,F,W,P,d))}return _.Q(I,M.getPanel(F),2)}B=I.yieldResult;(W||V)&&B.updatePanel(W,!1,h,V);B.showPanel(h);_.gG(I)})};
_.N.hidePanel=function(F){var W=this,E;return _.e(function(h){if(h.nextAddress==1)return _.Q(h,W.getPanel(F),2);E=h.yieldResult;E.hidePanel();W.popupController.closePopup(F);_.gG(h)})};
_.N.isVisible=function(F,W){var E=this,h;return _.e(function(d){if(d.nextAddress==1)return W&&!E.panelMap.has(F)?d.return(!1):_.Q(d,E.getPanel(F),2);h=d.yieldResult;return d.return(h.isVisible())})};
_.N.updatePanel=function(F,W,E,h,d,V){E=E===void 0?!1:E;var R=this,M;return _.e(function(g){if(g.nextAddress==1){if(!W&&!d)return g.return();V&&R.updatePanelContinuationDatas.set(F,V);return _.Q(g,R.getPanel(F),2)}M=g.yieldResult;M.updatePanel(W,E,h,d);_.gG(g)})};
_.N.registerPanelContent=function(F,W){F&&this.panelContentMap.set(F,W)};
_.N.getPanelContent=function(F){return this.panelContentMap.get(F)};
_.N.getUpdatePanelContinuationData=function(F){return this.updatePanelContinuationDatas.get(F)};
GRO[dr]=[_.rrT];var N9=function(F,W){this.innertubeTransportService=F;this.JSC$16073_screenManager=W},YYw=function(F){var W;
return!((W=F.panelLoadingStrategy)==null||!W.requestTemplate)};
N9.prototype.makeRequest=function(F){var W=this,E,h;return _.e(function(d){switch(d.nextAddress){case 1:if(!YYw(W)){d.jumpTo(2);break}_.Nl(d,3);return _.Q(d,_.T_(W.innertubeTransportService,F),5);case 5:return E=d.yieldResult,E?d.return(E.content):(_.a_(Error("dj")),d.return(void 0));case 3:h=_.Ml(d),_.a_(h);case 2:return d.return(void 0)}})};
N9.prototype.getContent=function(){if(this.panelLoadingStrategy&&this.panelLoadingStrategy.inlineContent)return this.panelLoadingStrategy.inlineContent};
N9.prototype.execute=function(F){var W=this,E,h,d,V,R,M,g,t,C,B;return _.e(function(I){if(I.nextAddress==1){E=F;h=E.data;d=E.fallbackVe;V=E.parentVe;R=E.createScreenConfig;M=E.renderFn;g=E.command;W.panelLoadingStrategy=h;var x,A,X=((x=W.panelLoadingStrategy)==null?0:x.screenVe)?(A=W.panelLoadingStrategy)==null?void 0:A.screenVe:d;X&&_.QH(W.JSC$16073_screenManager,X,V,R);return(t=W.getContent())?_.Q(I,M(t),2):I.jumpTo(2)}return I.nextAddress!=4?YYw(W)?_.Q(I,W.makeRequest(g),4):I.return():(B=C=I.yieldResult)?
_.Q(I,M(B),0):I.return()})};
N9[dr]=[_.sh,_.cU];var Vw=function(){};
Vw.prototype.getContainer=function(){return _.Kg()&&this.fullScreenContainer?this.fullScreenContainer:this.container};
Vw.prototype.openSheet=function(F,W){var E=this,h,d,V,R,M,g;return _.e(function(t){switch(t.nextAddress){case 1:return h={stack:[],error:void 0,hasError:!1},_.Nl(t,2,3),d=ug,_.Q(t,E.isSheetOpen(),5);case 5:V=t.yieldResult;C4Y(h,XQo(d));if(V&&!_.c("delay_sheet_open_killswitch")){if(W&&E.currentTarget===W)return(R=E.getContainer())==null||R.closeSheet(),t.return();E.pendingData={data:F,target:U$H(E,W)};return t.return()}F.viewModel&&(F={viewModel:F.viewModel});(M=E.getContainer())==null||M.openSheet(F,
W);E.currentTarget=W;case 3:_.V0(t);c3e(h);_.eJ(t,0);break;case 2:g=_.Ml(t),h.error=g,h.hasError=!0,t.jumpTo(3)}})};
Vw.prototype.closeSheet=function(){var F=this,W;return _.e(function(E){if(E.nextAddress==1)return _.Q(E,(W=F.getContainer())==null?void 0:W.closeSheet(),2);if(E.nextAddress!=4)return F.currentTarget=void 0,!F.pendingData||_.c("delay_sheet_open_killswitch")?E.jumpTo(0):_.Q(E,F.openSheet(F.pendingData.data,F.pendingData.target),4);F.pendingData=void 0;_.gG(E)})};
Vw.prototype.isSheetOpen=function(){var F=this,W,E;return _.e(function(h){return h.return((E=(W=F.getContainer())==null?void 0:W.isSheetOpen())!=null?E:!1)})};
var U$H=function(F,W){if(!_.c("web_parent_target_for_sheets"))return W;var E,h;return(h=(E=F.getContainer())==null?void 0:E.getParentTarget(W))!=null?h:W};var IV=window.documentPictureInPicture;var Fte=_.Fc(["dark"]),WtI=_.Fc(["system-icons"]),E1o=_.Fc(["typography"]),hGY=_.Fc(["lang"]),dNe=_.Fc(["style"]),SIG=_.Fc(["dir"]),pdY=_.Fc(["rounded-container"]),mVY=_.Fc(["style"]),VLr=["yt-navigate-cache","yt-navigate","yt-action","yt-toggle-button"],UE=function(F){this.JSC$16085_clientRoot=F;this.currentPipWindow=null;this.onCloseCallbacks=[];this.handlePipWindowResize=this.handlePipWindowResize.bind(this)};
UE.prototype.openWindow=function(F){var W=this,E,h;return _.e(function(d){if(d.nextAddress==1)return window.documentPictureInPicture&&_.HG()&&!W.currentPipWindow?_.Q(d,(E=IV?IV:null)==null?void 0:E.requestWindow(F),2):d.return(!1);if(d.nextAddress!=3){h=d.yieldResult;if(!h)return d.return(!1);h.addEventListener("pagehide",function(){wGu(W)});
h.addEventListener("resize",W.handlePipWindowResize);W.pipWindowResizeDelay=new _.KX(function(){W.currentPipWindow&&_.dW(W.currentPipWindow.document.documentElement,"yt-pip-window-resized",[new _.Rl(W.currentPipWindow.innerWidth,W.currentPipWindow.innerHeight)])},h);
NPW(h);RGk(h);return _.Q(d,u1I(h),3)}if(!Gor())return d.return(!1);W.currentPipWindow=h;W.JSC$16085_eventForwarder=UNe(h,W.JSC$16085_clientRoot);W.pipWindowResizeDelay.start();return d.return(!0)})};
UE.prototype.handlePipWindowResize=function(){this.pipWindowResizeDelay&&this.pipWindowResizeDelay.start()};
var wGu=function(F){if(F.currentPipWindow){var W,E;(W=IV?IV:null)==null||(E=W.window)==null||E.close();F.currentPipWindow.removeEventListener("resize",F.handlePipWindowResize);var h;(h=F.pipWindowResizeDelay)==null||h.dispose();F.pipWindowResizeDelay=void 0;var d;(d=F.JSC$16085_eventForwarder)==null||d.stop();F.JSC$16085_eventForwarder=void 0;W=_.U(F.onCloseCallbacks);for(E=W.next();!E.done;E=W.next())E=E.value,E();F.onCloseCallbacks=[];F.currentPipWindow=null}};
UE.prototype.getWindow=function(){return this.currentPipWindow};
var ueO=function(F,W){var E;(E=F.onCloseCallbacks)==null||E.push(W)};
UE.prototype.pictureInPictureSupported=function(){return!!window.documentPictureInPicture&&_.HG()};
_.Sn.Object.defineProperties(UE.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
UE[dr]=[EyB];var SYq=new _.NG("PICTURE_IN_PICTURE_CONTROLLER");var eGo=function(F,W){this.lengthY=this.lengthX=0;this.lengthX=W.x-F.x;this.lengthY=W.y-F.y};var pGu=function(){},gku=function(F,W){var E;
(E=F.headerElement)==null||E.dispatchEvent(new CustomEvent("yt-new-playlist-header",{detail:W}))};var mww=function(){};
mww.prototype.openPopup=function(F,W,E,h){var d=this,V;return _.e(function(R){if(!d.container)return R.return();V={openPopupAction:{popup:W,popupType:E,uniqueId:F}};return R.return(d.container.handleOpenPopupAction(V,h))})};
mww.prototype.closePopup=function(F){this.container&&this.container.closePopup(F)};var KYK=function(){this.openTunnels=new Map},xhR=function(F,W,E){if(zGG(E)){E={handleEvent:function(R){W&&!W.closed&&typeof W.postMessage==="function"&&R&&R.origin&&R.source===W&&R.data&&R.data.action==="gcl_setup"&&W.postMessage({action:"gcl_transfer",
gadSource:2},R.origin)}};
for(var h=_.U(F.openTunnels),d=h.next();!d.done;d=h.next()){var V=_.U(d.value);d=V.next().value;V=V.next().value;if(d.closed)try{window.removeEventListener("message",V),F.openTunnels.delete(d)}catch(R){_.a_(R)}}W&&F.openTunnels.size<15&&(F.openTunnels.set(W,E),window.addEventListener("message",E))}};var FXK=function(){this.clientParams=new Map},vlc=function(F){for(var W=_.U(F.clientParams.keys()),E=W.next();!E.done;E=W.next())E=E.value,E.startsWith("yt-mini-app-share")&&F.clientParams.delete(E)};var WX6=function(F,W){_.xj.call(this);var E=this;this.shortsController=F;this.storeWithShorts=W;F=_.kQ(this.storeWithShorts,_.air,function(h){if(h){var d,V=(d=E.shortsController.getRoot())==null?void 0:d.getPlayer(),R;(d=(R=E.shortsController.alternativePlayerContainerElement)==null?void 0:R.getPlayerContainer())&&(V==null||V.appendTo(d))}else{var M;R=(M=E.shortsController.alternativePlayerContainerElement)==null?void 0:M.getPlayerContainer().querySelector("#player");d=E.shortsController.activeIndex;
(M=(V=E.shortsController.getRoot())==null?void 0:V.querySelector('ytd-reel-video-renderer[id="'+d+'"] #player-container'))&&(R==null||R.appendTo(M,void 0,!0))}});
this.addOnDisposeCallback(F)};
_.k(WX6,_.xj);var RD=function(F,W,E,h,d){var V=this;this.storeWithShorts=F;this.ephemeralResponseStore=W;this.store=E;this.innertubeTransportService=h;this.innertubeTransportLoader=d;this.activeModules=[];this.activeIndex=0;this.dismissedIndices=[];this.watchWhileIndices=new Set;this.isFullscreenEnabled=_.Jb(_.xa);this.isShortsPipActive=_.Jb(_.ka);this.nextReelVe=_.LQ(56921);this.prevReelVe=_.LQ(56922);this.backButtonVe=_.LQ(22156);this.TEST_ONLY={getActiveModules:function(){return V.activeModules}}},zQX,t6i,EBO;
RD.prototype.initOrDisposeActiveModules=function(F){F?this.activeModules.push(new WX6(this,this.storeWithShorts)):(_.pC(this.activeModules),this.activeModules.length=0)};
RD.prototype.getRoot=function(){return this.rootElement};
RD.prototype.setActiveIndex=function(F){this.activeIndex=F};
_.U__=function(F,W){var E,h,d,V,R,M;return _.e(function(g){switch(g.nextAddress){case 1:return E=new gx,(h=E.JSC$11819_getStoreKey(W))&&F.ephemeralResponseStore.has(h)?_.Q(g,F.ephemeralResponseStore.get(h),7):_.Q(g,EBO(F,W),4);case 4:d=g.yieldResult;if(!h){g.jumpTo(3);break}V=R6(d,3600);return _.Q(g,F.ephemeralResponseStore.put(h,new _.RG(V)),3);case 7:d=(R=g.yieldResult)==null?void 0:_.Ck(R);case 3:return d.replacementEndpoint&&(M=_.D(d.replacementEndpoint,_.DP))&&d.sequenceContinuation&&(M.sequenceParams=
d.sequenceContinuation),g.return(d)}})};
zQX=function(F,W){W=(new QY).JSC$11819_getStoreKey(W);return!!W&&F.ephemeralResponseStore.has(W)};
t6i=function(F,W,E){var h,d,V,R,M;_.e(function(g){if(g.nextAddress==1){h=new QY;d=h.JSC$11819_getStoreKey(W);if(!d)return g.return();if(E.reelWatchSequenceResponse)return V=R6(E.reelWatchSequenceResponse,3600),F.ephemeralResponseStore.put(d,new _.RG(V)),g.jumpTo(0);if(!F.ephemeralResponseStore.has(d))return g.jumpTo(0);M=E;return _.Q(g,F.ephemeralResponseStore.get(d),4)}M.reelWatchSequenceResponse=(R=g.yieldResult)==null?void 0:_.Ck(R);_.gG(g)})};
EBO=function(F,W){var E=E===void 0?{}:E;var h,d,V;return _.e(function(R){switch(R.nextAddress){case 1:if(F.innertubeTransportService){h=F.innertubeTransportService;R.jumpTo(2);break}if(!F.innertubeTransportLoader){_.nW(Error("fj"));R.jumpTo(2);break}return _.Q(R,F.innertubeTransportLoader(),4);case 4:h=R.yieldResult;case 2:return _.Q(R,(d=h)==null?void 0:_.T_(d,W,E),5);case 5:return V=R.yieldResult,R.return(V)}})};
_.Sn.Object.defineProperties(RD.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.rootElement?this.rootElement.getPlayer().getPlayerPromise():Promise.resolve(void 0)}}});
RD[dr]=[mMa,_.UL,v6,_.Fd(_.sh),_.Fd(h7B)];_.huq=new _.NG("STORAGE_MANAGER_TOKEN");var cKr=new Set(["touchmove","scroll"]);var dUw=function(){this.queue=[];this.currentPersistentToast=this.currentToast=void 0},Nc6;
dUw.prototype.enqueue=function(F,W){W===1?this.currentPersistentToast=F:this.queue.push(F);this.openToast()};
dUw.prototype.openToast=function(){var F;(F=this.currentToast)!=null&&F.isOpened()||(this.queue.length?(this.currentToast=this.queue.shift(),this.currentToast.open()):this.currentPersistentToast&&this.currentPersistentToast.open())};_.VHK=new _.NG("TOAST_MANAGER_TOKEN");var UU8;_.RuN=_.GK(function(F){return _.z("basic-content-view-model",{class:_.ec("ytBasicContentViewModelHost",_.TK(F.className))},_.z(_.v,{cond:function(){return F.data().headline},
then:function(W){return _.z("div",{class:"ytBasicContentViewModelHeadline"},_.z(_.Ab,{text:W}))}}),_.z(_.xF,{each:function(){return F.data().paragraphs||[]},
keyBy:"INDEX"},function(W){return _.z("div",{class:"ytBasicContentViewModelParagraph"},_.z(_.v,{cond:function(){var E=W();return!!(E.header||E.customHeader||E.headline)},
then:function(){return _.z(UU8,{paragraph:W})}}),_.z(_.v,{cond:function(){return W().asset||W().text},
then:function(){return _.z("div",{class:"ytBasicContentViewModelParagraphContent"},_.z(_.v,{cond:function(){return W().asset},
then:function(E){return _.z("div",{class:"ytBasicContentViewModelParagraphAsset"},_.z(_.a6,{data:E},{contentPreviewImageViewModel:_.mO}))}}),_.z(_.v,{cond:function(){return W().text},
then:function(E){return _.z("div",{class:"ytBasicContentViewModelParagraphText"},_.z(_.Ab,{text:E}))}}))}}))}))},"ee");
UU8=_.GK(function(F){var W=F.paragraph;return _.z(_.EG,null,_.z(_.v,{cond:function(){return W().headline},
then:function(E){return _.z(_.Ab,{text:E,className:"ytBasicContentViewModelParagraphHeadline"})}}),_.z(_.a6,{data:function(){return W().header||W().customHeader}},{sectionHeaderViewModel:function(E){return _.z(_.N7,{data:E.data,
disableHorizontalPadding:!0,forceSmallLayout:!0})}}))},"fe");var MHT=_.GK(function(F){return _.z("yt-expandable-metadata-header-view-model",{class:"ytExpandableMetadataHeaderViewModelHost"},_.z(_.v,{cond:function(){return F.expanded()},
then:function(){return _.z("div",{class:"ytExpandableMetadataHeaderViewModelExpandedHeader"},_.z("div",{class:"ytExpandableMetadataHeaderViewModelLeftSectionExpanded"},_.z(_.v,{cond:function(){return F.data().expandedTitleImage},
then:function(W){return _.z("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTitleImage"},_.z(_.T4,{alt:"",width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:W}))}}),_.z("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextContainer"},_.z("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextFirstRowContainer"},_.z(_.Ab,{text:function(){return F.data().expandedLabel},
className:"ytExpandableMetadataHeaderViewModelExpandedLabel"}),_.z(_.Ab,{text:function(){return F.data().expandedTitle},
className:"ytExpandableMetadataHeaderViewModelExpandedTitle"})),_.z(_.Ab,{text:function(){return F.data().expandedSubtitle},
className:"ytExpandableMetadataHeaderViewModelExpandedSubtitle",linkInheritColor:!0}))),_.z("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.z(_.a6,{data:function(){return F.data().infoButton}},{buttonViewModel:_.rk}),_.z(_.a6,{data:function(){return F.data().collapseButton}},{buttonViewModel:function(W){return _.z(_.rk,{data:W.data,
onClick:function(){var E;(E=F.expandedCallback)==null||E.call(F,!1)}})}})))},
else:function(){return _.z(euK,Object.assign({},F))}}))},"ge"),gBw=_.GK(function(F){return _.z("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelContainer"},_.z(_.v,{cond:function(){return F.data().collapsedLabelImage},
then:function(W){return _.z("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelImage"},_.z(_.T4,{width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:W,alt:""}))}}),_.z(_.Ab,{text:function(){return F.data().collapsedLabel},
className:"ytExpandableMetadataHeaderViewModelCollapsedLabel"}))},"he"),euK=_.GK(function(F){var W=_.tb(function(){var E;
return void((E=F.expandedCallback)==null?void 0:E.call(F,!0))});
return _.z("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedHeader","on:click":W},_.z("div",{class:"ytExpandableMetadataHeaderViewModelLeftSection"},_.z(_.v,{cond:function(){return F.data().collapsedImage},
then:function(E){return _.z("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedImage"},_.z(_.T4,{width:16,height:16,data:E,alt:""}))}}),_.z(_.v,{cond:function(){return F.data().showLeadingCollapsedLabel},
then:function(){return _.z(gBw,Object.assign({},F))}}),_.z("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedTitle"},_.z(_.Ab,{text:function(){return F.data().collapsedTitle}}))),_.z("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.z(_.v,{cond:function(){return!F.data().showLeadingCollapsedLabel},
then:function(){return _.z(gBw,Object.assign({},F))}}),_.z(_.a6,{data:function(){return F.data().infoButton}},{buttonViewModel:_.rk}),_.z(_.a6,{data:function(){return F.data().expandButton}},{buttonViewModel:function(E){return _.z(_.rk,{data:E.data,
onClick:function(){var h;(h=F.expandedCallback)==null||h.call(F,!0)}})}})))},"ie");var QiK=_.GK(function(F){var W=_.U(_.Br(function(){return F.data().initiallyExpanded})),E=W.next().value,h=W.next().value,d,V=(d=_.WZ().resolve(_.Fd(_.nK)))==null?void 0:d(),R=function(){var M=F.data().colorData;
if(M)return V?M==null?void 0:M.darkColorPalette:M==null?void 0:M.lightColorPalette};
return _.z("yt-expandable-metadata-view-model",{class:"ytExpandableMetadataViewModelHost",style:_.vr({"background-color":function(){var M=R();return(M==null?0:M.section2Color)?_.XC(M.section2Color):""}})},_.z(_.a6,{data:function(){return F.data().header}},{expandableMetadataHeaderViewModel:function(M){return _.z(MHT,{data:M.data,
expanded:function(){return!!E()},
expandedCallback:function(g){h(g)}})}}),_.z(_.v,{cond:function(){return E()},
then:function(){return _.z("div",{class:"ytExpandableMetadataViewModelExpandedContent"},_.z(_.a6,{data:function(){return F.data().expandedContent}},{horizontalShelfViewModel:function(M){return _.z(_.X5,{data:M.data,
includeMargin:!0,forceNarrowLayout:!0,palette:R})},
videoSummaryContentViewModel:function(M){return _.z(omu,{data:M.data,className:"ytExpandableMetadataViewModelVideoSummaryContent"})},
lockupViewModel:function(M){return _.z(_.EN,{data:M.data,className:"ytExpandableMetadataViewModelLockup",thumbnailFixedWidth:function(){return"168px"},
containerType:3,sizing:"COMPACT"})},
basicContentViewModel:function(M){return _.z(_.RuN,{data:M.data,className:"ytExpandableMetadataViewModelBasicContent"})}}),_.z(_.a6,{data:function(){return F.data().expandedBottomButtons}},{buttonViewModel:function(M){return _.z("div",{class:"ytExpandableMetadataViewModelExpandedBottomButtons"},_.z(_.rk,{data:M.data}))}}))}}))},"je");var zuK=_.GK(function(F){var W=F.text;var E=F.marqueeSpacing;var h=F.scrollDelay;var d=F.scrollDuration;var V=F.enableMarqueeScroll;F=F.large;var R=_.U(_.g$(!1,void 0,"kfNqfd")),M=R.next().value,g=R.next().value,t=_.U(_.g$(0,void 0,"bYgZbf"));R=t.next().value;var C=t.next().value,B=_.uf();t=_.uf();var I=_.uf(),x=_.WZ().resolve(_.ji);_.q6(function(){if(V()){var P=I.value.getBoundingClientRect().width,b=B.value.getBoundingClientRect().width;if(P>b){var l=(x==="ltr"?-1:1)*(P+(E?E():16));Promise.resolve().then(function(){g(!0);
C(l)})}}});
var A={},X={};return _.z("marquee-scroll",{class:_.ec("ytMarqueeScrollHost",(A.ytMarqueeScrollHostLarge=F,A)),el:B},_.z("div",{id:"marquee-scroll-inner-container",class:_.ec("ytMarqueeScrollInnerContainer",(X.ytMarqueeScrollAnimationEnabled=function(){return M()},X)),
el:t,style:_.vr({gap:E?(0,_.LR)(E):"16px","animation-duration":d?OEc(d):"16s","animation-delay":h?OEc(h):"3s","--marquee-translate":(0,_.LR)(R)})},_.z("span",{el:I,dir:"auto"},_.z(_.Ab,{text:W,noWrap:!0,className:"ytMarqueeScrollPrimaryString"})),_.z(_.v,{cond:M,then:function(){return _.z("span",{"aria-hidden":"true",dir:"auto"},_.z(_.Ab,{text:W,noWrap:!0,className:"ytMarqueeScrollDuplicateString"}))}})))},"ke");_.tH6=_.GK(function(F){var W=F.data;var E=F.overlayDensity;F=_.tb(function(){W().onTapCommand&&_.fK(W().onTapCommand);return!1});
var h=_.$Zr(),d={};return _.z("reel-sound-metadata-view-model",{class:_.ec("ytReelSoundMetadataViewModelHost",(d.ytReelSoundMetadataViewModelHostLarge=function(){return(E==null?void 0:E())===1},d)),
"on:click":F,tabindex:0,role:"button","on:keydown":h},_.z("div",{class:"ytReelSoundMetadataViewModelMetadataContainer"},_.z(_.v,{cond:function(){return W().musicIcon},
then:function(V){return _.z(_.T4,{data:V,alt:"music icon",className:"ytReelSoundMetadataViewModelIcon"})}}),_.z("div",{class:"ytReelSoundMetadataViewModelMarqueeContainer"},_.z(zuK,{text:function(){return W().soundMetadata},
enableMarqueeScroll:function(){return!!W().enableMarqueeScroll},
large:function(){return(E==null?void 0:E())===1}}))))},"le");var C_u,Bcu,eW,DUP,kzP,caN,LXw,siw;C_u=["https://fonts.gstatic.com","https://tv.youtube.com","https://www.gstatic.com","https://www.youtube.com"];Bcu=_.dV("wil_icon_max_concurrent_fetches",Infinity);
eW=function(F,W,E){var h=this;this.iconSet=F;this.appDirection=W;this.responsePromises={};this.iconCache={};this.queuedResponseResolvers={};this.numFetches=this.counter=0;this.cacheStorageAvailable=!!_.EY.caches;this.cacheStorageAsync=Promise.resolve(void 0);this.cacheStorageSync=void 0;this.requestAninmationFrameResolver=null;this.renderingMode=_.c("wil_icon_use_mask_rendering")?1:0;this.isNetworkFirstStrategy=_.c("wil_icon_network_first");this.renderWhenIdle=_.c("wil_icon_render_when_idle");this.waitForAnimationFrame=
!_.c("wil_icon_load_immediately");this.isPurging=!1;F=function(){h.cacheStorageAvailable&&(h.cacheStorageAsync=_.EY.caches.open("yt-icons").then(function(V){return h.cacheStorageSync=V}).catch(function(){h.cacheStorageAvailable=!1}))};
E=(E==null?void 0:E())||{};E=_.U(Object.entries(E));for(W=E.next();!W.done;W=E.next()){var d=_.U(W.value);W=d.next().value;d=d.next().value;d=t8(d);vBK(d);this.iconCache[W]=d.cloneNode(!0)}this.isPurging=I_q(this);this.isPurging instanceof Promise?this.isPurging.then(F):F()};
_.mbr=function(F,W){var E=F.resolveIcon(W);return E?F.renderingMode===1?caN(F,E,F.renderingMode):(W=F.iconCache[E.url])?(W=W.cloneNode(!0),DUP(F,W),caN(F,E,F.renderingMode,W)):_.xUx(F,E).then(function(h){var d=h?0:1;DUP(F,h);return caN(F,E,d,h)}):(_.fn(new _.xC("Icon not found",{iconShape:W})),function(){})};
DUP=function(F,W){if(W){F.counter+=1;F="_yt"+F.counter;W=[W].concat(_.x9(W.getElementsByTagName("*")));W=_.U(W);for(var E=W.next();!E.done;E=W.next())if(E=E.value,E.tagName==="style"&&E.textContent)E.textContent=kzP(E.textContent,F,!0);else for(var h=_.U(E.attributes),d=h.next();!d.done;d=h.next()){d=d.value;d.name==="id"&&(d.value+=F);["mask","fill","clip-path"].includes(d.name)&&(d.value=kzP(d.value,F));if(d.name==="style"){var V=E.style;try{V.cssText=kzP(V.cssText,F,!0)}catch(C){var R=void 0,M=
void 0,g=void 0,t=void 0;M9({error:((R=C)==null?void 0:(g=(M=R).toString)==null?void 0:g.call(M))||"",el:E.outerHTML,style:!!V,cssText:(t=V)==null?void 0:t.cssText})}}d.name==="xlink:href"&&(d.value=d.value.replace(/#(.*)/,"#$1"+F))}}};
kzP=function(F,W,E){var h=/url\(["']?#(.*?)["']?\)/;(E===void 0?0:E)&&(h=/url\(["']?#(.*?)["']?\)/g);return F.replace(h,"url(#$1"+W+")")};
caN=function(F,W,E,h){return function(d,V){var R=Object.assign({},{iconColor:"currentcolor",iconWidth:W.size+"px",iconHeight:W.size+"px",iconDisplay:"block"},V);V=_.Cr("DIV");var M=R.iconColor,g=R.iconFilter;R="width: "+R.iconWidth+"; height: "+R.iconHeight+"; display: "+R.iconDisplay+";";g&&(R+=" filter: "+g+";");E===0&&(R+=" fill: "+M+";");E===1&&(g=W.url,R+=" -webkit-mask: url("+g+") no-repeat center / cover; mask: url("+(g+") no-repeat center / cover; background-color: ")+M);W.allowMirroring&&
F.appDirection==="rtl"&&(R+=" transform: scale(-1, 1); transform-origin: center center;");V.setAttribute("style",R);E===0&&h&&V.appendChild(h);d.appendChild(V)}};
_.xUx=function(F,W){var E,h,d;return _.e(function(V){E=function(R){return $w(R)};
h=W.url;if(!AaK(h))throw Error("gj");d=siw(F,h);return V.return(d.then(function(R){return R.clone().text()}).then(function(R){var M=E(R);
R=W.size;var g=_.Cr("DIV");_.yK(g,M);M=_.Bb(g.firstElementChild!==void 0?g.firstElementChild:_.upB(g.firstChild,!0));R=vBK(M,R);F.iconCache[h]=R.cloneNode(!0);delete F.responsePromises[h];return R}).catch(function(){}))})};
LXw=function(F){var W,E=(W=F.requestAninmationFrameResolver)==null?void 0:W.promise;E||(F.requestAninmationFrameResolver=new _.eR,E=F.requestAninmationFrameResolver.promise,_.EY.requestAnimationFrame(function(){var h;(h=F.requestAninmationFrameResolver)==null||h.resolve();F.requestAninmationFrameResolver=null}));
return E};
siw=function(F,W){var E,h;return _.e(function(d){if(d.nextAddress==1)return F.waitForAnimationFrame?_.Q(d,LXw(F),2):d.jumpTo(2);E=F.responsePromises[W];E||(h=function(){var V,R,M;return _.e(function(g){switch(g.nextAddress){case 1:if(!F.cacheStorageAvailable){V=void 0;g.jumpTo(2);break}if(R=F.cacheStorageSync){g.jumpTo(3);break}return _.Q(g,F.cacheStorageAsync,4);case 4:R=g.yieldResult;case 3:V=R;case 2:return M=V,F.isNetworkFirstStrategy?g.return(F.fetchAndUpdateCache(W,M).catch(F.getCacheStorageResponse.bind(F,
W,M))):g.return(F.getCacheStorageResponse(W,M).catch(F.fetchAndUpdateCache.bind(F,W,M)))}})},E=F.renderWhenIdle?new Promise(function(V,R){_.sB(_.P0,function(){h().then(V).catch(R)},10)}):h(),F.responsePromises[W]=E);
return d.return(E.catch(function(V){delete F.responsePromises[W];M9({error:(V==null?0:V.toString)?V.toString():"",url:W});throw V;}))})};
eW.prototype.fetchAndUpdateCache=function(F,W){var E=this;return _.e(function(h){return h.return(qeF(E,F).then(function(d){$U6(E,F,d,W);return d}))})};
var qeF=function(F,W){var E;return _.e(function(h){if(F.numFetches<Bcu)return F.numFetches+=1,h.return(ZT$(F,W).finally(function(){--F.numFetches;if(Object.keys(F.queuedResponseResolvers).length){var d=Object.keys(F.queuedResponseResolvers)[0],V=F.queuedResponseResolvers[d];delete F.queuedResponseResolvers[d];V.resolve(qeF(F,d))}}));
E=new _.eR;F.queuedResponseResolvers[W]=E;return h.return(E.promise)})},ZT$=function(F,W,E){E=E===void 0?2:E;
var h;return _.e(function(d){h={credentials:"same-origin",priority:"low"};return d.return(_.EY.fetch(W,h).then(function(V){return V.ok?V:Promise.reject(Error("hj`"+V.status+"`"+V.statusText))}).catch(function(V){if(E>0)return ZT$(F,W,E-1);
throw V;}))})},$U6=function(F,W,E,h){_.e(function(d){return h?d.return(new Promise(function(V){_.sB(_.P0,function(){var R,M;
return _.e(function(g){switch(g.nextAddress){case 1:if(!F.isNetworkFirstStrategy){R=void 0;g.jumpTo(2);break}return _.Q(g,h.match(W).catch(function(){}),3);
case 3:R=g.yieldResult;case 2:if(M=R){g.jumpTo(4);break}return _.Q(g,h.put(W,E.clone()).catch(function(t){M9({error:(t==null?0:t.toString)?t.toString():"",url:W})}),4);
case 4:V(),_.gG(g)}})},50)})):d.return()})};
eW.prototype.getCacheStorageResponse=function(F,W){return _.e(function(E){return W?E.return(W.match(F).then(function(h){return h&&h.ok?h:Promise.reject()})):E.return(Promise.reject())})};
var vBK=function(F,W){W===void 0||F.getAttribute("viewBox")||F.setAttribute("viewBox","0 0 "+W+" "+W);F.setAttribute("focusable","false");F.setAttribute("aria-hidden","true");try{F.style.pointerEvents="none",F.style.display="inherit",F.style.width="100%",F.style.height="100%"}catch(d){var E;M9({error:((E=d)==null?0:E.toString)?d.toString():""});try{F.style.cssText="pointer-events: none; display: inherit; width: 100%; height: 100%;"}catch(V){var h;M9({error:((h=V)==null?0:h.toString)?V.toString():
""})}}return F},AaK=function(F){for(var W=_.U(C_u),E=W.next();!E.done;E=W.next())if(F.startsWith(E.value)&&F.endsWith(".svg"))return!0;
return!1};
eW.prototype.resolveIcon=function(F){return this.iconSet.resolveIcon(F)};
var M9=function(F){_.OB(new _.xC("Error in IconManager",F))},I_q=function(F){if(_.c("wil_icons_cache_purge_killswitch"))return!1;
try{var W=_.EY.localStorage}catch(V){return!1}if(!W||!F.cacheStorageAvailable)return!1;var E=function(V){try{var R;(R=W)==null||R.setItem("yt-icons-last-purged",V.toString())}catch(g){var M;M9({error:((M=g)==null?0:M.toString)?g.toString():""})}},h=Number(W.getItem("yt-icons-last-purged"));
if(!h)return h=new Date,h=h.setDate(h.getDate()-Math.floor(Math.random()*90+1)),E(h),!1;if(function(V,R){V=new Date(V);R=new Date(R);return R.getMonth()-V.getMonth()+12*(R.getFullYear()-V.getFullYear())}(h,Date.now())<3)return!1;
try{return _.EY.caches.delete("yt-icons").then(function(V){V&&E(Date.now());return V}).catch(function(){return!1}).finally(function(){F.isPurging=!1})}catch(V){var d;
M9({error:((d=V)==null?0:d.toString)?V.toString():""});return!1}};
eW[dr]=[jgp,_.ji,_.Fd(T6_)];_.gJ=function(F,W){this.iconManager=F;this.iconsToFetch=W};
_.gJ[dr]=[_.U6,_.Fd(r_M)];var XO8=function(){};var HTT=function(F,W,E){this.requestKey=F;this.zV7=W;this.i1D=E;this.yjT=function(){return new XMLHttpRequest};
this.ong=void 0;this.vbD=[]};
HTT.prototype.getLatestChallengeResponse=function(){return this.i1D};
var uLB=function(F,W,E){var h,d,V,R;return _.e(function(M){if(M.nextAddress==1){_.Z2("attestation_challenge_fetch");_.P5("att_fs",void 0,"attestation_challenge_fetch");if(!F.ong)throw new _.Jh(9,"Missing fetcher");return _.Q(M,F.ong(W,E),2)}h=M.yieldResult;V=(d=h)==null?void 0:d.bgChallenge;if(!V)throw new _.Jh(15,"Missing field");F.i1D=h;F.vbD.forEach(function(g){g(h)});
R=LDG(V);_.P5("att_fc",void 0,"attestation_challenge_fetch");V3o("attestation_challenge_fetch");return M.return(R)})},Iye=function(F,W){var E,h,d,V,R;
return _.e(function(M){switch(M.nextAddress){case 1:E=new U2(100,3E5,.25,2),h=void 0;case 2:if(!(E.currBackoffCount_<10)){M.jumpTo(4);break}_.Nl(M,5);if(!(E.currBackoffCount_>0)){M.jumpTo(7);break}return _.Q(M,DNS(E.getValue()),7);case 7:return _.Q(M,P_P(F,W),9);case 9:return d=M.yieldResult,M.return(d);case 5:V=_.Ml(M);V instanceof _.Jh?h=V:(R=V instanceof Error?V.message:"Unknown",h=new _.Jh(9,R));NUH(E);M.jumpTo(2);break;case 4:if(h)throw h;throw new _.Jh(9,"Unknown error");}})},P_P=function(F,
W){W=lVe(n9e(new bLX,W),F.requestKey);
var E=new _.eR,h=F.yjT();h.open("POST",F.zV7);h.setRequestHeader("X-Goog-Api-Key","AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw");h.setRequestHeader("Content-Type","application/json+protobuf");h.onload=function(){if(_.amI(h)){var d=wEu(h.responseText);E.resolve(d)}else E.reject(new _.Jh(_.eS(_.UJ(h)),h.statusText))};
h.onerror=function(){E.reject(new _.Jh(_.eS(_.UJ(h)),h.statusText))};
h.send(W.serialize());return E.promise};var a_x=function(F){this.networkStatusManager=F;this.isDownloaded=s5k===void 0?function(){return!1}:s5k;
this.isReady=!1;this.nGU=JaP(this)},JaP=function(F){var W;
return _.e(function(E){if(E.nextAddress==1)return _.Q(E,Xbe(),2);if(E.nextAddress!=3)return W=E.yieldResult,_.Q(E,tzT(W),3);F.tB=E.yieldResult;kEr(F.tB).then(function(){F.isReady=!0});
return E.return(F.tB)})},f_K=function(F,W,E){F.tB?(F=F.tB.ey({sY:E,
uUD:!0,ykg:!0}),W.serviceIntegrityDimensions={poToken:F}):_.a_(Error("jj"))};
a_x.prototype.processContext=function(F){var W=this;if(!F.input.match(_.SF(L2u)))return _.St();var E=F.innerTubeRequest,h=E.videoId;return!h||this.isDownloaded(E)||this.networkStatusManager&&!this.tB&&!this.networkStatusManager.isNetworkAvailable()?_.St():this.tB?this.isReady?(f_K(this,E,h),_.St()):new uE(kEr(this.tB).then(function(){f_K(W,E,h)})):new uE(this.nGU.then(function(d){return _.e(function(V){if(V.nextAddress==1)return _.Q(V,kEr(d),2);
f_K(W,E,h);_.gG(V)})}))};var OT8=new _.NG("WEB_PO_CONTEXT_PROCESSOR");var bTq=function(F,W){var E=this;this.izP=0;var h;this.bYI=(h=W==null?void 0:W.bYI)!=null?h:window;this.networkStatusManagerPromise=W==null?void 0:W.networkStatusManagerPromise;var d;this.requestKey=(d=W==null?void 0:W.requestKey)!=null?d:_.N0("par_bir_key")||"O43z0dpjhgX20SCx4KAo";var V;this.q2H=(V=W==null?void 0:W.q2H)!=null?V:function(g){return new yv(g)};
var R;h=(R=W==null?void 0:W.n6n)!=null?R:function(g,t,C){return new HTT(g,t,C)};
this.bgChallenge=LDG(F.bgChallenge);this.ttlSeconds=qAb(VT(F.challenge||""));this.wd=h(this.requestKey,_.c("par_at_ep")?["www.youtube.com","m.youtube.com"].includes(_.EY.location.hostname)?"/api/jnn/v1/GenerateIT":"https://jnn-pa.googleapis.com/$rpc/google.internal.waa.v1.Waa/GenerateIT":"https://jnn-pa.googleapis.com/$rpc/google.internal.waa.v1.Waa/GenerateIT",F);xNb(this.wd);var M;this.eM1=(M=W==null?void 0:W.eM1)!=null?M:function(g){_.ce(E.bYI.document,"visibilitychange",function(){E.bYI.document.visibilityState===
"visible"&&g()})}},nBO=function(F){if(!F.ev){var W={maxAttempts:5,
ttH:F.ttlSeconds*1E3};AKI(F.bYI);F.ev=F.q2H({wd:F.wd,vc:{disable:_.c("html5_web_po_disable_remote_logging"),vM:"aGIf",jzt:ZXe("html5_web_po_experiment_ids"),kO7:_.c("wpo_dis_lfdms")?0:1E3,cq:_.c("wpo_gel_strz")?function(h){var d=AM_.get(h);d||(d=new kdH(h),d=new Q$(d),AM_.set(h,d));return d}:void 0},
xUw:W,yAr:F.bgChallenge,iqp:sww});F.izP=Date.now();TGp(F.ev,function(){F.izP=Date.now()});
aqW(F.ev,function(){return _.e(function(h){return h.return(l_T(F))})});
var E=F.p3j.bind(F);F.networkStatusManagerPromise&&F.ttlSeconds>0&&F.networkStatusManagerPromise.then(function(h){h.listen("publicytnetworkstatus-online",E)});
F.eM1(E)}};
bTq.prototype.p3j=function(){if(Date.now()>this.izP+this.ttlSeconds*1E3){var F;(F=this.ev)==null||r1c(F)}};
var l_T=function(F){if(F.oQp)return F.oQp;if(!F.ev)throw Error("kj");F.oQp=new T0({ev:F.ev,wd:F.wd,pFD:!0,onError:sww});return F.oQp},q1k=function(F,W){F=new bTq(F,W);
nBO(F);l_T(F)};var Qw=function(F,W){this.store=F;this.queue=[];this.supportsFocus=_.c("web_ephemeral_actions_focus");W==null||W.addEventListener("yt-navigate-start",this.reset.bind(this))};
Qw.prototype.enqueue=function(F){var W=F.command,E=F.durationMs,h=F.elementToFocus;var d=F.label;var V=F.elementToFocus;F.command?d=_.CY("EPHEMERAL_ACTION_ANNOUNCEMENT",{label:d,shortcut:_.CY("SHIFT_PLUS_ENTER")}):V&&this.supportsFocus&&(F=d+". "+_.CY("SHIFT_PLUS_ENTER")+" for more information.",d=_.CY("EPHEMERAL_ACTION_FOCUS_ANNOUNCEMENT",{label:d,shortcut:_.CY("SHIFT_PLUS_ENTER")},F));E={announcement:d,durationMs:E!=null?E:this.supportsFocus?8E3:void 0};W?E.command=W:h&&this.supportsFocus&&(h.classList.add("ephemeral-action-focusable-element"),
E.selector=h.tagName+".ephemeral-action-focusable-element");this.queue.push(E);yax(this)};
Qw.prototype.activate=function(F){var W=_.nLr(this.store.getState());if(W){if(W==null?0:W.command)_.Pe(W.command),this.store.dispatch(Dup(null));(W==null?0:W.selector)&&this.supportsFocus&&(W=document.querySelector(W.selector),_.W0S(W));F.preventDefault()}};
var yax=function(F){if(!_.nLr(F.store.getState())&&F.queue.length){var W=F.queue.shift();W&&(F.previousAnnouncement===W.announcement&&(W.announcement+="\u00a0"),F.store.dispatch(Dup(W)),F.previousAnnouncement=W.announcement,F.timeoutId=setTimeout(function(){if(W.selector&&F.supportsFocus){var E;(E=document.querySelector(W.selector))==null||E.classList.remove("ephemeral-action-focusable-element")}F.store.dispatch(Dup(null));yax(F)},W.durationMs))}};
Qw.prototype.reset=function(){this.timeoutId&&clearTimeout(this.timeoutId);this.store.dispatch(Dup(null));this.queue.length=0;this.timeoutId=void 0};
Qw[dr]=[_.P2,_.g_];_.zI=new _.NG("EPHEMERAL_ACTIONS_MANAGER_TOKEN");var ji$=new _.NG("AUTH_SERVICE_TOKEN");var X8W=_.Fc(["about:blank"]),Zme;var iTK=new _.NG("API_IFRAME_TOKEN"),ra$=new _.NG("FETCH_FN_TOKEN"),TcP=new _.NG("PARSE_FN_TOKEN"),oBw=new _.NG("WINDOW_REQUEST_TOKEN");var SpM;SpM=new _.NG("YT_CONFIG_FLAG_RETRIEVER_TOKEN");_.Gz6=new _.NG("MISC_UI_SHARED_FLAGS_TOKEN");var YeP=function(){};
YeP.prototype.getFlag=function(F){if(F.configType!==2)throw Error("lj");return wOT(F)};
var wOT=function(F){switch(F.flagType){case "bool":return _.c(F.flagName);case "int":return _.mX(_.dV(F.flagName));case "double":return _.dV(F.flagName);case "string":return _.N0(F.flagName);case "int32_list":return ZXe(F.flagName);case "int64_list":return ZXe(F.flagName).map(function(W){return _.mX(W)});
case "string_list":return _.Vy(F.flagName);default:throw Error("mj");}};var tp=function(F,W,E){W=W===void 0?{}:W;lV.call(this,E===void 0?"uninitialized":E);this.env=F;this.transitions=[{from:"uninitialized",to:"initialized",action:this.init},{from:"initialized",to:"rendering",action:this.initialRender},{from:"rendering",to:"rendered",action:this.afterRenderImmediate},{from:"rendered",to:"after-render-deferred",action:this.afterRenderDeferred}];W.shouldWaitOnAsyncImmediate!==void 0&&(this.processPluginOptions.shouldWaitOnAsyncImmediate=W.shouldWaitOnAsyncImmediate)};
_.k(tp,lV);tp.prototype.init=function(F){var W=this,E;return _.e(function(h){if(h.nextAddress==1)return W.processPluginOptions.shouldWaitOnAsyncImmediate?_.Q(h,F(W.env),2):(F(W.env),h.jumpTo(2));if(h.nextAddress!=4)return W.jobSet?_.Q(h,W.jobSet.completedResolver.promise,4):h.jumpTo(4);E=_.ip();E.parkOrScheduleJob(function(){W.transition("rendering")},10,"ci");
_.gG(h)})};
tp.prototype.initialRender=function(F){var W=this,E;return _.e(function(h){if(h.nextAddress==1)return W.processPluginOptions.shouldWaitOnAsyncImmediate?_.Q(h,F(W.env),2):(F(W.env),h.jumpTo(2));if(h.nextAddress!=4)return W.jobSet?_.Q(h,W.jobSet.completedResolver.promise,4):h.jumpTo(4);E=_.ip();E.parkOrScheduleJob(function(){W.transition("rendered")},10,"cr");
_.gG(h)})};
tp.prototype.afterRenderImmediate=function(F){var W=this,E;return _.e(function(h){if(h.nextAddress==1)return W.processPluginOptions.shouldWaitOnAsyncImmediate?_.Q(h,F(W.env),2):(F(W.env),h.jumpTo(2));if(h.nextAddress!=4)return W.jobSet?_.Q(h,W.jobSet.completedResolver.promise,4):h.jumpTo(4);E=_.ip();E.parkOrScheduleJob(function(){W.transition("after-render-deferred")},10,"carml");
_.gG(h)})};
tp.prototype.afterRenderDeferred=function(F){var W=this;return _.e(function(E){F(W.env);_.gG(E)})};var upK={},Seu=(upK.rendered={priority:0,callback:function(F){qBa(F.injector.resolve(Ln))}},upK);var pOF=!1,n1G=0,fFw=null,lFo=null;var mUq=new _.NG("NETWORK_SLI_TOKEN");var KXT=function(F,W,E,h){this.networkSli=F;this.fetchFn=W;this.parseFn=E;this.requestFn=h};
KXT.prototype.fetch=function(F,W,E){var h=this,d,V,R;return _.e(function(M){d=Fg8(h,F,W);R=(V=h.fetchFn)!=null?V:fetch;return M.return(R(d).then(function(g){return h.handleResponse(g,E)}).catch(function(g){_.OB(g);
if((E==null?0:E.expectJsonStrict)&&g instanceof Rv&&g.errorType===1)return Promise.reject(g)}))})};
var Qcz=function(F,W,E,h){var d,V,R,M,g,t;return _.e(function(C){switch(C.nextAddress){case 1:return d=Fg8(F,W,E),_.Nl(C,2),_.Q(C,fetch(d),4);case 4:V=C.yieldResult;_.id(C,3);break;case 2:throw _.Ml(C),new Rv(2,"Failed to parse streaming response",d.url);case 3:if(!V.redirected&&!V.ok)throw(R=F.networkSli)==null||R.failure(),new _.xC("Streaming fetch request not ok",d.url);if(!V.body)throw new _.xC("No response body in streaming response",d.url);M=V.body.pipeThrough(new TextDecoderStream).getReader();
g=new _.gN;t={};return C.return(WgK(F,M,g,ClS,t,h))}})},Fg8=function(F,W,E){if(F.networkSli){var h=_.gV(_.pg(W,"key"))||"/UNKNOWN_PATH";
F.networkSli.start(h)}h=E;_.c("wug_networking_gzip_request")&&(h=iVW(E));var d;return new ((d=F.requestFn)!=null?d:window.Request)(W,h)},WgK=function(F,W,E,h,d,V){var R,M,g,t,C,B,I,x,A;
return _.e(function(X){if(X.nextAddress==1)return _.Q(X,W.read(),2);R=X.yieldResult;M=R.value;if(g=R.done)return(t=F.networkSli)==null||t.success(),X.return(d);try{C=E.parse(M)}catch(P){throw new Rv(1,"Failed to parse streaming response",M);}if(C!=null)for(B=_.U(C),I=B.next();!I.done;I=B.next())x=I.value,h(d,x),A=void 0,(A=V)==null||A(d,x);return X.return(WgK(F,W,E,h,d,V))})};
KXT.prototype.handleResponse=function(F,W){var E,h=(E=this.parseFn)!=null?E:JSON.parse;E=F.text().then(function(d){if((W==null?0:W.jspbResponseCtor)&&F.ok)return hWR(W.jspbResponseCtor,d);d=d.replace(")]}'","");if((W==null?0:W.expectJsonStrict)&&d)try{var V=h(d)}catch(M){throw new Rv(1,"JSON parsing failed after fetch");}var R;return(R=V)!=null?R:h(d)});
F.redirected||F.ok?this.networkSli&&this.networkSli.success():(this.networkSli&&this.networkSli.failure(),E=E.then(function(d){_.OB(new _.xC("Error: API fetch failed",F.status,F.url,d));return Object.assign({},d,{errorMetadata:{status:F.status}})}));
return E};
KXT[dr]=[_.Fd(mUq),_.Fd(ra$),_.Fd(TcP),_.Fd(oBw)];var EKO=new _.NG("NETWORK_MANAGER_TOKEN");var h6K=[1,2,4,8,16,30],Nwx=function(F){this.frameCountInternal=0;this.brokenFrameSummarizers=[];this.maxTimeMs=F.maxTimeMs;this.maxFrameCount=F.maxFrameCount===void 0?Math.ceil(60*F.maxTimeMs/1E3):F.maxFrameCount;F=_.U(h6K);for(var W=F.next();!W.done;W=F.next())this.brokenFrameSummarizers.push(new dFx(W.value/60*1E3))},V$x=function(F){var W=F.frameCountInternal>=F.maxFrameCount;
return F.elapsedTimeMs>=F.maxTimeMs||W},UF6=function(F){for(var W=[],E=_.U(F.brokenFrameSummarizers),h=E.next();!h.done;h=E.next())h=h.value,h=h.brokenFrameCount!==0?{severityMs:Math.round(h.targetFrameTimeMs),
eventCount:h.brokenFrameCount,averageDurationBetweenEventsMs:Math.round(h.averageDurationBetweenEventsMs)}:void 0,h&&W.push(h);return{summaries:W,monitoringDurationMs:Math.round(F.elapsedTimeMs)}};
_.Sn.Object.defineProperties(Nwx.prototype,{elapsedTimeMs:{configurable:!0,enumerable:!0,get:function(){return this.startTime===void 0||this.prevTime===void 0?0:this.prevTime-this.startTime}},
frameCount:{configurable:!0,enumerable:!0,get:function(){return this.frameCountInternal}}});
var dFx=function(F){this.targetFrameTimeMs=F;this.currTimeMs=this.brokenFrameCount=0;this.timeOfLastBrokenFrameMs=this.timeOfFirstBrokenFrameMs=void 0};
_.Sn.Object.defineProperties(dFx.prototype,{averageDurationBetweenEventsMs:{configurable:!0,enumerable:!0,get:function(){return this.brokenFrameCount<=1?0:(this.timeOfLastBrokenFrameMs-this.timeOfFirstBrokenFrameMs)/(this.brokenFrameCount-1)}}});var R6K=function(){};
R6K.prototype.start=function(F,W){var E=this;if(!window.requestAnimationFrame)return Promise.resolve(void 0);this.monitor&&this.stop();var h=new Nwx({maxTimeMs:F});this.monitor=h;this.lastSummaryInternal=void 0;this.metadataToLog=W;return new Promise(function(d){var V=function(R){if(R===void 0)E.stop(),d(void 0);else if(E.monitor!==h)R=Object.assign({},UF6(h),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"}),d(R);else{var M=E.monitor;if(!V$x(M)){M.frameCountInternal++;if(M.prevTime===void 0)M.startTime=
R;else for(var g=R-M.prevTime,t=_.U(M.brokenFrameSummarizers),C=t.next();!C.done;C=t.next()){C=C.value;var B=C.currTimeMs;C.currTimeMs+=g;g>C.targetFrameTimeMs+2&&(C.brokenFrameCount++,C.timeOfFirstBrokenFrameMs===void 0&&(C.timeOfFirstBrokenFrameMs=B),C.timeOfLastBrokenFrameMs=B)}M.prevTime=R}V$x(E.monitor)?d(E.stop()):_.P0.addJob(V,5,0)}};
_.P0.addJob(V,5,0)})};
R6K.prototype.stop=function(F){if(!this.monitor)return this.lastSummaryInternal;var W=Object.assign({},UF6(this.monitor),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"});if(W.monitoringDurationMs){F=F!=null?F:this.metadataToLog;var E={droppedFramesSummary:W,name:"MANUAL_MEASUREMENT_NAME_AMBIENT_MODE_IDLE"};F&&(E[F.type]=F.data);_.Pc("manualSmoothnessMeasurement",E)}this.monitor=void 0;this.lastSummaryInternal=W;this.metadataToLog=void 0;return W};_.e6F=new _.NG("MAIN_THREAD_DFE_CAPTURER_AMBIENT_MODE_IDLE_TOKEN");var M$T;M$T=function(F){this.JSC$16209_expiringStorage=new sJ(F)};
_.gKN=function(F){if(_.yKn()&&(F=_.vxo(_.cZ()+"::"+F)))return new M$T(F)};
M$T.prototype.set=function(F,W,E){E=E!==void 0?Date.now()+E:void 0;this.JSC$16209_expiringStorage.set(F,W,E)};
M$T.prototype.get=function(F){return this.JSC$16209_expiringStorage.get(F)};
M$T.prototype.remove=function(F){this.JSC$16209_expiringStorage.remove(F)};var QOK=new _.NG("SESSION_STORAGE");_.CZ=function(){};
_.CZ.getInstance=function(){var F=_.ju("ytglobal.storage_");F||(F=new _.CZ,_.S5("ytglobal.storage_",F));return F};
_.CZ.prototype.estimate=function(){var F,W,E;return _.e(function(h){F=navigator;return((W=F.storage)==null?0:W.estimate)?h.return(F.storage.estimate()):((E=F.webkitTemporaryStorage)==null?0:E.queryUsageAndQuota)?h.return(jwo()):h.return()})};
_.S5("ytglobal.storageClass_",_.CZ);var z6q=!1;var t$8=_.Fc(["https://fonts.googleapis.com/css?family=Roboto:300italic,400italic,500italic,700italic"]),CK$=_.Fc(["https://fonts.googleapis.com/css?family=Roboto+Mono:400"]);var LG_={"/":_.xQ,"/?feature=ytca":_.xQ,"/feed/downloads":_.PXY};var AU=function(F,W,E){this.JSC$16222_upliftPromise=F;this.store=W;this.JSC$16222_persistentStorePromiseAccessor=E};
AU.prototype.shouldPreferLocalResponse=function(F){return F.browseId==="FEdownloads"||F.browseId==="FEsmart_downloads"&&_.c("kevlar_modern_downloads_page")?!0:!1};
AU.prototype.localInnertubeResponse=function(F){var W=this;return _.e(function(E){return F.browseId==="FEdownloads"?_.c("kevlar_modern_downloads_page")?E.return(BwO(W)):E.return(vK8(W)):F.browseId==="FEsmart_downloads"&&_.c("kevlar_modern_downloads_page")?E.return(IuO(W)):E.return(Promise.reject(Error("oj")))})};
AU.prototype.canProvideFallbackResponse=function(){return!0};
AU.prototype.localFallbackInnertubeResponse=function(F){var W=this,E,h,d;return _.e(function(V){switch(V.nextAddress){case 1:return _.Q(V,W.JSC$16222_persistentStorePromiseAccessor(),2);case 2:E=V.yieldResult;if(F.browseId!=="SPaccount_downloads"||!E){V.jumpTo(3);break}return _.Q(V,A0o(E),4);case 4:if(h=V.yieldResult)return V.return(_.Ck(h));case 3:return F.browseId==="FEwhat_to_watch"?V.return(cP8(W)):(d=_.c("web_offline_continuation_automatic_retry")||_.c("web_offline_continuation_retry_button"))&&
F.continuation?V.return(DFK(W)):V.return(xFK(W))}})};
var cP8=function(F){var W;return _.e(function(E){if(E.nextAddress==1)return _.Q(E,F.JSC$16222_upliftPromise,2);W=_.UCb(F.store.getState().entities);return W.length?E.return(k8F(F,W)):E.return(xFK(F))})},vK8=function(F){var W,E;
return _.e(function(h){if(h.nextAddress==1)return _.Q(h,F.JSC$16222_upliftPromise,2);if(h.nextAddress!=3)return W=APK([{offlineItemSectionRenderer:{}}]),_.Q(h,sO6(F,W),3);E=h.yieldResult;E.onResponseReceivedActions=[JD("REFRESH_DOWNLOADS")];return h.return(E)})},BwO=function(F){var W,E,h,d,V,R,M,g,t,C,B,I,x;
return _.e(function(A){if(A.nextAddress==1)return _.Q(A,F.JSC$16222_upliftPromise,2);if(A.nextAddress!=3)return W=F.store.getState(),E=W.entities,h=_.qn(E),d=_.$r(E),V=_.lIR(W),R=_.bik(W),M=_.nJr(W),g=_.gJS(E),t=_.Ds(h),C=_.Zs(E),B={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.i6e(h,d,g,V,R,t,C,M),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS"})}}}]}},I=_.CY("DOWNLOADS",void 0,"Downloads"),_.Q(A,Lgq(F,B,I),3);x=A.yieldResult;
x.onResponseReceivedActions=[JD("REFRESH_DOWNLOADS")];return A.return(x)})},IuO=function(F){var W,E,h,d,V,R,M,g,t;
return _.e(function(C){if(C.nextAddress==1)return _.Q(C,F.JSC$16222_upliftPromise,2);if(C.nextAddress!=3)return W=F.store.getState(),E=W.entities,h=_.qn(E),d=_.Ds(h),V=_.Zs(E),R={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.TiW(h),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS"})}}}]}},M=_.CY("SMART_DOWNLOADS",void 0,"Smart downloads"),g=y6G(d,V),_.Q(C,Lgq(F,R,M,g),3);t=C.yieldResult;t.onResponseReceivedActions=[JD("REFRESH_DOWNLOADS")];
return C.return(t)})},xFK=function(F){var W,E;
return _.e(function(h){if(h.nextAddress==1)return _.Q(h,tU(F.JSC$16222_upliftPromise,F.store),2);W=h.yieldResult;E=APK([c0R(W)]);return h.return(sO6(F,E))})},DFK=function(F){var W,E,h,d;
return _.e(function(V){if(V.nextAddress==1)return W={},E=F.store.getState().continuation.continuationCommand,_.LK(W,_.fQ,E),_.Q(V,tU(F.JSC$16222_upliftPromise,F.store,W,"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"),2);h=V.yieldResult;d={};_.LK(d,_.z4e,{continuationItems:[{richSectionRenderer:{content:{backgroundPromoRenderer:h}}}],targetId:"browse-feedFEwhat_to_watch"});return V.return({responseContext:{},onResponseReceivedActions:[d]})})},APK=function(F){return{twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,
content:{sectionListRenderer:{contents:F}}}}]}}},k8F=function(F,W){var E,h;
return _.e(function(d){var V={contents:a$(W)};E=V&&V.contents?V:{};_.c("kevlar_modern_downloads_page")&&(E=Object.assign({},_.onI(W),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS"}));h={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:E}}}]}};return d.return(sO6(F,h))})},sO6=function(F,W){var E,h;
return _.e(function(d){if(d.nextAddress==1)return _.Q(d,F.JSC$16222_persistentStorePromiseAccessor(),2);if(d.nextAddress!=3)return E=d.yieldResult,_.Q(d,B6(E),3);h=d.yieldResult;return d.return({responseContext:{},contents:W,topbar:h})})},Lgq=function(F,W,E,h){var d,V;
return _.e(function(R){if(R.nextAddress==1)return _.Q(R,F.JSC$16222_persistentStorePromiseAccessor(),2);if(R.nextAddress!=3)return d=R.yieldResult,_.Q(R,B6(d),3);V=R.yieldResult;var M=R.return;var g=h;g=g===void 0?"":g;g={content:{pageHeaderViewModel:{title:{dynamicTextViewModel:{text:{content:E}}},actions:{flexibleActionsViewModel:{actionsRows:[{actions:[{buttonViewModel:{title:_.CY("SETTINGS",void 0,"Settings"),accessibilityText:_.CY("SETTINGS",void 0,"Settings"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",
type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",isFullWidth:!0,iconName:"SETTINGS",onTap:{innertubeCommand:KY("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},loggingDirectives:{clientVeSpec:{uiType:21412}}}}]}]}},metadata:{contentMetadataViewModel:{metadataRows:[{metadataParts:[{text:{content:g}}]}]}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:176034}}}}}},pageTitle:E};
return M.call(R,{responseContext:{},contents:W,topbar:V,header:{pageHeaderRenderer:g}})})};var qqT=function(){this.moduleRegistry={};this.fetchCount=0};
qqT.prototype.isFetching=function(){return this.fetchCount>0};
var YP=function(F,W){F.moduleRegistry[W.toString()]={asyncId:W,isFetching:!1};return F};
qqT.prototype.JSC$16233_loadModules=function(){for(var F=this,W=new Map,E=[],h=_.U(_.Dd.apply(0,arguments)),d=h.next();!d.done;d=h.next()){d=d.value;var V=this.moduleRegistry[d];V?V.resolver?W.set(d,V.resolver):(V.resolver=new _.eR,W.set(d,V.resolver),E.push(V.asyncId),V.isFetching=!0):(V=new _.eR,W.set(d,V),V.resolve(void 0))}E.length&&(this.fetchCount+=1,_.HI(_.ZW.getMultipleAsync.apply(_.ZW,_.x9(E)).then(function(R){for(var M=0;M<E.length;M++){var g=R[M],t=F.moduleRegistry[E[M].toString()];t.isFetching=
!1;t.resolver.resolve(g)}}).catch(function(R){for(var M=_.U(E),g=M.next();!g.done;g=M.next()){g=g.value;
var t=F.moduleRegistry[g.toString()];t.resolver=void 0;t.isFetching=!1;W.get(g.toString()).reject(R)}}),function(){--F.fetchCount}));
return Promise.all([].concat(_.x9(W.values())).map(function(R){return R.promise}))};_.wX=new _.NG("MODULE_REGISTRY_TOKEN");var $FK={},ZN$=($FK.rendered={priority:0,callback:function(F){a:{var W=void 0;try{var E;b:{if(_.WCS()){var h=_.B8w(_.cZ()+"::pom");if(h){var d=new v2(h);break b}}d=void 0}var V=(E=d)==null?void 0:E.get("role_text");if(!V)break a;W={updatePermissionRoleCommand:{renderer:{permissionRoleBottomBarRenderer:{status:{runs:[{text:V}]}}}}}}catch(g){}W&&F.injector.resolve(_.EJ).resolveCommand(W)}try{var R=window.sessionStorage.getItem("POM_ACK_FEEDBACK_ENDPOINT");if(R){var M=JSON.parse(R);window.sessionStorage.removeItem("POM_ACK_FEEDBACK_ENDPOINT");
M&&F.injector.resolve(_.EJ).resolveCommand(M)}}catch(g){}}},$FK);var XTK,HNT={},PKK=(HNT.initialized={priority:10,callback:function(){XTK=aV()}},HNT.rendering={callback:function(F){var W;
return _.e(function(E){if(E.nextAddress==1)return _.Q(E,XTK,2);W=E.yieldResult;if(!W.endpoint)throw Error("qj`"+_.EY.location.href);lv(F,W);_.gG(E)})}},HNT);var JP6={messageWeights:[{messageRegExp:/.*(window.customElements|HTMLTemplateElement).* is undefined/,weight:500},{messageRegExp:/.*(protonpass).*/,weight:0},{messageRegExp:/.*property '(configurable|polyfillWrapFlushCallback)'.*/,weight:500},{messageRegExp:/.*__shady_(native_addEventListener|getRootNode).*/,weight:500}].concat(_.x9(_.c("web_pip_minimize_breakages")?[{messageRegExp:/.*__shady_dispatchEvent.*/,weight:0}]:[]),[{messageRegExp:/ytsignals missing/,weight:500},{messageRegExp:/MutationObserver is not defined/,
weight:100},{messageRegExp:/Cannot call 'patch'/,weight:500},{messageRegExp:/ShadyDOM.patch is not a function/,weight:500},{messageRegExp:/Illegal invocation/,weight:500},{messageRegExp:/no such interface supported/,weight:500},{messageRegExp:/play.*request was interrupted/,weight:500},{messageRegExp:/Failed to .* ServiceWorker.*/,weight:500},{messageRegExp:/Cannot call 'onIdle'/,weight:500},{messageRegExp:/Failed to sanitize attribute of <div>: <div style="--nx:82;">/,weight:500},{messageRegExp:/(DOMPurify|vid_mate_check) is not defined/,
weight:0},{messageRegExp:/A network error occurred/,weight:500},{messageRegExp:/Ticking CPT when CPT already ticked/,weight:100},{messageRegExp:/Unexpected end of .*(input|data)/,weight:500},{messageRegExp:/JSON .* unexpected/,weight:500},{messageRegExp:/Unexpected token </,weight:500},{messageRegExp:/^undefined$/,weight:500},{messageRegExp:/The YouTube player is not attached to the DOM/,weight:500},{messageRegExp:/Malformed continuation/,weight:500},{messageRegExp:/Offset is outside the bounds of the DataView/,
weight:500},{messageRegExp:/Cannot call 'push'/,weight:0},{messageRegExp:/.*push is not a function/,weight:0},{messageRegExp:/.*\.find is not a function/,weight:0},{messageRegExp:/Cannot redefine property: BetterJsPop/,weight:0},{messageRegExp:/cdn.paddle.com/,weight:0},{messageRegExp:/^network error$/,weight:0},{messageRegExp:/Cannot read property 'snippet'.*/,weight:0},{messageRegExp:/Cannot read property 'insertBefore'.*/,weight:0},{messageRegExp:/The play method is not allowed by the user agent or the platform in the current context, possibly because the user denied permission./,
weight:0},{messageRegExp:/Unhandled action/,weight:100},{messageRegExp:/UrlEndpoint should not be used for same origin navigations. Use a better typed endpoint instead./,weight:100},{messageRegExp:/VisibilityLogger called before newScreen/,weight:1E3},{messageRegExp:/BL:ULB/,weight:500},{messageRegExp:/Failed to retrieve emoji manager initial JSON data/,weight:100},{messageRegExp:/Endpoint supplied is invalid/,weight:100},{messageRegExp:/Cannot read property 'polyfillWrapFlushCallback'.*/,weight:500},
{messageRegExp:/unblocked44.ml.*/,weight:0},{messageRegExp:/Failed to fetch/,weight:500},{messageRegExp:/.*API fetch failed.*/,weight:1E3},{messageRegExp:/No RequestBuilder for endpoint/,weight:100},{messageRegExp:/.*Failed to initialize Tango client in CommentsInvalidation.*/,weight:100},{messageRegExp:/.*redefine.*property.*adPlacements/,weight:1E3},{messageRegExp:/ownerObj.base is undefined/,weight:1E3},{messageRegExp:/History popstate has no state/,weight:500},{messageRegExp:/ReadableStream uploading is not supported/,
weight:1E3},{messageRegExp:/bad trailing UTF-8 byte .* doesn't match the pattern 0b10xxxxxx/,weight:1E3},{messageRegExp:/b172965563/,weight:1E3},{messageRegExp:/UrlEndpoint should not be used for same origin navigations/,weight:1E3},{messageRegExp:/Fetching RunAttestationCommand returned falsy/,weight:100},{messageRegExp:/WEBCHANNEL_NETWORK_ERROR/,weight:100},{messageRegExp:/urlForEndpoint used on client endpoint/,weight:1E3},{messageRegExp:/InnerTubeTransportService is already initialized/,weight:100},
{messageRegExp:/Cannot redefine property: userAgent/,weight:500},{messageRegExp:/(ResizeObserver loop limit exceeded)|(ResizeObserver loop completed with undelivered notifications)/,weight:500},{messageRegExp:/undefined is not an object \(evaluating 'this.manager'\).*/,weight:500},{messageRegExp:/_0x22d63b is not defined/,weight:500},{messageRegExp:/Cannot call '1'/,weight:500},{messageRegExp:/.*Wanteeed.*/,weight:0},{messageRegExp:/.*WtdRoot*/,weight:0},{messageRegExp:/.*Constructing wtd-root:*/,
weight:0},{messageRegExp:/.*WtdDiv.*/,weight:0},{messageRegExp:/.*Failed to execute 'appendChild'.*/,weight:0},{messageRegExp:/.*TypeError: a is not a constructor'.*/,weight:0},{messageRegExp:/.*Readwise.*/,weight:0},{messageRegExp:/.*Form is either loading or already opened*/,weight:0},{messageRegExp:/.*wtd-div.*/,weight:0},{messageRegExp:/.*Blocked a frame with origin "https:\/\/www.youtube.com" from accessing a cross-origin frame.*/,weight:0},{messageRegExp:/.*disguiseToken.*/,weight:0},{messageRegExp:/Identifier 'YTNonstop' has already been declared/,
weight:1E3},{messageRegExp:/Cannot read properties of undefined (reading 'setTimeout')/,weight:0},{messageRegExp:/undefined is not an object \(evaluating 'this.\w+.setTimeout'\)/,weight:0},{messageRegExp:/BWB:Timeout/,weight:0},{messageRegExp:/NWA/,weight:0},{messageRegExp:/This document requires '((TrustedHTML)|(TrustedScript)|(TrustedScriptURL))' assignment/,weight:0},{messageRegExp:/The constructed element must not have any attributes/,weight:100},{messageRegExp:/runtime.browser/,weight:500},{messageRegExp:/Cannot call 'registerMenuCommand'/,
weight:500},{messageRegExp:/__data is undefined/,weight:0},{messageRegExp:/.*ddg-ctl-placeholder-blocked*/,weight:1E3}]),callbackWeights:[{callback:function(F){var W=F.stack;if(W.includes("chrome://")||W.includes("chrome-extension://")||F.message.includes("chrome-extension://")||W.includes("moz-extension://")||W.includes("local.adguard.org")||W.includes("auctioneer3.50million.club")||W.includes("youtubedownloader")||W.includes("youtube_home_page")||W.includes("is_youtube_video_no_longer_available")||
W.includes("switchScreenSizeHack")||W.includes("yt_main_big_banner.js")||W.includes("YouTubeCenter.js")||W.includes("/mytube.js")||W.includes("JSON.parseWrapper")||W.includes("/inj_js/common.js")||W.includes("firebug-lite")||W.includes(".repl.co/")||W.includes("linkfix")||W.includes("playAfterAd")||F.message.includes("Access is denied for this document")&&W.includes("<anonymous>")||F.fileName==="user-script"||F.message.includes("cannot be created in a document with origin 'https://www.youtube.com' and URL 'about:blank'")&&
W.includes("<anonymous>"))return!0;if(W.includes("https://www.youtube.com"))return!1;F=W.split("\n");if(!F.length)return!1;if(F.length<=3&&W.includes("s.onloadeddata"))return!0;W=0;for(var E=_.U(F),h=E.next();!h.done;h=E.next())h=h.value,(h.includes("https://")||h.includes("http://"))&&W++;return W/F.length>.95},
weight:0},{callback:function(F){return F.message==="Unknown Error"&&F.name.indexOf("NS_")===0},
weight:100},{callback:function(F){if(!_.tf)return!1;var W=F.message.indexOf("\uba54\ubaa8\ub9ac \ub9ac\uc18c\uc2a4\uac00 \ubd80\uc871\ud558\uae30 \ub54c\ubb38\uc5d0 \uc774 \uc791\uc5c5\uc744 \uc644\ub8cc\ud560")===0||F.message.includes("available to complete this operation"),E=F.stack.includes("webcomponents")&&F.message==="Object doesn't support this action";F=F.message.includes("object that does not implement interface Element");return W||E||F},
weight:0},{callback:function(F){return F.message==="Illegal invocation"&&navigator.userAgent.includes("Trident")&&navigator.vendor==="Google Inc."},
weight:0},{callback:function(F){return F.message==="Operation is not supported"&&(F.stack.match(/textinputassistant/g)||[]).length>=5},
weight:500},{callback:function(F){return F.stack.includes("eval code (eval (code:1:1)")||F.stack.includes("Object.my_load [as load] ")},
weight:0},{callback:function(F){return F.message.includes("Permission denied")&&F.stack.includes("this.domHandler")?!0:F.name.includes("TypeError")&&F.stack.includes("/www-searchbox")&&navigator.userAgent.includes("Trident")},
weight:500},{callback:function(F){if(!F.stack)return!1;var W=F.stack.trim().split("\n");W.length&&W[0].endsWith("Error: "+F.message)&&W.shift();W.length&&W[W.length-1].includes("at window.onerror (")&&W.pop();if(!W.length)return!0;if(F.message==="Script error.")return W[0].includes("www.youtube.com")||W.length>=2&&W[0].startsWith("at new")&&W[1].startsWith("at window.onerror");if(F.message==="Unexpected token")return!0;F=_.U(W);for(W=F.next();!W.done;W=F.next())if(W=W.value,!(W.includes("<anonymous>")||
W.startsWith("load@")||W.startsWith("global code@")||W.startsWith("@https://")))return!1;return!0},
weight:500},{callback:function(F){return F.message==="Cannot read property 'experiments'"&&F.stack.includes("/s/player/")},
weight:500},{callback:function(F){return F.message.includes("must not have attributes")&&navigator.userAgent.includes("Vivaldi")},
weight:500},{callback:function(F){return F.stack.includes("/embed.js")?(F.params&&F.params&&(F.params.name="56"),!0):!1},
weight:1},{callback:function(){if(_.c("use_error_suppression"))var F=_.b0("SUPPRESS_CLIENT_ERRORS",!1);else{if(F=_.cY)F=/Chrome\/(\d+)/.exec(_.BG()),F=(F?parseFloat(F[1]):NaN)>=66;F=!(F||_.IZ&&_.vY(65)||_.OJ&&_.vY(12.1)||wV&&_.vY(79))}return F},
weight:500}]};var au$={},fuK=(au$.initialized={priority:10,callback:function(F){F.injector.addProvider({provide:EyB,useValue:F.root});F.injector.addProvider({provide:cr6,useValue:zKR});F.injector.addProvider({provide:Dw$,useValue:JP6});var W={};F.injector.addProvider((W.provide=xwK,W.useFactory=function(E,h){return function(){lXI(E,h)}},W[dr]=[cr6,
Dw$],W));F.injector.addProvider({provide:z9,useClass:z9})}},au$);var ON$={},bN$=(ON$.initialized={priority:3,callback:function(){var F;if(F=evb()){F=F.replace("/",".");var W=_.Ij();W.set("tz",F);W.save();F=!0}else F=!1;F||(F=_.Ij(),F.set("utco",-Math.floor((new Date).getTimezoneOffset())),F.save())}},ON$);var luu={},nKF=(luu.initialized={priority:10,callback:function(F){F.injector.resolve(z9).start();F=_.yc();var W=_.l0("IS_HOMEPAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_BROWSE"||_.l0("IS_WATCH_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_WATCH"||_.l0("IS_RESULTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SEARCH"||_.l0("IS_SHORTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SHORTS"||"MAIN_APP_WEB_PAGE_TYPE_UNKNOWN";_.DB(_.lZr(),{mainAppWeb:Object.assign({},F,{pageType:W})});_.DB(yhr(),{mainAppWeb:Object.assign({},F,{pageType:W})});
_.DB(jdo(),{mainAppWeb:F});_.DB(iPY(),{mainAppWeb:F});n7X(function(){_.xP(jdo(),"FAILURE");_.xP(iPY(),"FAILURE")});
Far();WaY();ogW()}},luu);var yPx={},jOP=(yPx.initialized={priority:10,callback:function(){if(document.readyState==="complete")_.P5("dl"),_.ip().processSignal("pcl");else{var F=function(){_.P5("dl");_.ip().processSignal("pcl");window.removeEventListener("load",F)};
window.addEventListener("load",F)}}},yPx);var iNK={},rP6=(iNK.rendering={priority:0,callback:function(){var F=_.ip();F.parkOrScheduleJob(function(){F.processSignal("eocs")},10,"eor",5E3)}},iNK);var TwF=function(){};
_.k(TwF,Jn);
TwF.prototype.resolveCommand=function(F,W){var E,h,d,V,R,M,g,t;return _.e(function(C){d=(E=_.D(F,_.SjH))==null?void 0:(h=E.dialog)==null?void 0:h.commentReplyDialogRenderer;if(!d)throw new _.xC("No dialog in createCommentReplyDialogEndpoint");R=(V=W.form)==null?void 0:V.event;if(!R)throw new _.xC("Event not passed in when resolving command");M=_.U(R.composedPath());for(g=M.next();!g.done;g=M.next())if(t=g.value,t.tagName==="YTD-COMMENT-ACTION-BUTTONS-RENDERER"||t.tagName==="YTD-COMMENT-ENGAGEMENT-BAR")return t.showReplyDialog(d),C.return();
_.gG(C)})};var B7=function(F){this.pageRequestService=F;this.JSC$16248_prefetchCoordinator=Vkq()};
_.k(B7,Jn);B7.prototype.resolveCommand=function(F){var W=this,E,h,d,V;return _.e(function(R){if(R.nextAddress==1){E=_.D(F,XDU);if((h=E)==null||!h.taskId)throw Error("rj");d=E.taskId;_.Nl(R,2);return _.Q(R,_.g6H(W.pageRequestService,F,{},"").then(function(M){if(!M)throw Error("sj");},function(M){throw Error("tj`"+M);
}),4)}if(R.nextAddress!=2)return eru(W.JSC$16248_prefetchCoordinator,d),_.id(R,0);
V=_.Ml(R);SK(W.JSC$16248_prefetchCoordinator,d,V);_.gG(R)})};
B7[dr]=[JU];var v7=function(F){this.innertubeTransportService=F};
_.k(v7,Jn);v7.prototype.resolveCommand=function(F){var W=this,E,h;return _.e(function(d){E=_.D(F,Hie);if(E.settingItemIdForClient==="AUTONAV_FOR_SIGN_OUT"||E.settingItemIdForClient==="AUTONAV_FOR_DESKTOP")h=E.boolValue?2:1,_.EX.getInstance().setState(h,!0,!0);return _.Q(d,_.T_(W.innertubeTransportService,F),0)})};
v7[dr]=[_.sh];var ID={},oKF=(ID.addToPlaylistEndpoint=ms(xs),ID.addToToastAction=ms(x_),ID.adsControlFlowOpportunityReceivedCommand=ms(hw),ID.captionLanguageSelectActionCommand=ms(Oy),ID.captionPickerEndpoint=ms(be),ID.changeMiniAppPlayStateCommand=ms(ks),ID.changeTimelyActionVisibilityCommand=ms(Dr),ID.channelCreationFormEndpoint=ms(Ca),ID.clearLocationCommand=ms(Dc),ID.clearUrlParamCommand=ms(Aw),ID.copyLinkCommand=ms(ie),ID.copyTextEndpoint=ms(Vu),ID.createCommentReplyDialogEndpoint=GGo(TwF),ID.createPlaylistServiceEndpoint=
ms(rS),ID.dismissDialogEndpoint=ms(La),ID.entityUpdateCommand=ms(RF),ID.feedbackEndpoint=ms(gS),ID.getAnswerCommand=ms(Q2a),ID.getPaymentsClientTokenCommand=ms(s4),ID.getTranscriptEndpoint=ms(k_),ID.googlePaymentBillingCommand=ms(Lh),ID.googlePaymentPurchaseManagerCommand=ms(qJ),ID.hideEngagementPanelEndpoint=ms(qg),ID.insertRichSectionCommand=ms(v9),ID.listMutationCommand=ms(IF),ID.logGtmCommand=ms(B9),ID.notifyDropdownOptionSelectedCommand=ms(sy),ID.openAdAllowlistInstructionCommand=ms(_.dS),ID.openOnePickAddVideoModalCommand=
ms(TQ),ID.persistSubscriptionsDisplayPreferencesCommand=ms(SZ),ID.pingingEndpoint=ms(Ng),ID.playlistEditEndpoint=ms(GQ),ID.playlistVotingRefreshPopupCommand=ms(Ys),ID.refreshPanelEndpoint=ms($s),ID.saveImageToDeviceEndpoint=ms(Uy),ID.scrollToSectionEndpoint=GGo(zTM),ID.seekToVideoTimestampCommand=ms(le),ID.selectCountryCommand=ms(pa),ID.setCookieCommand=ms(mH),ID.setLocalStorageCommand=ms(Ch),ID.setPrefStorageEntryCommand=ms(Fy),ID.setSettingEndpoint=ms(v7),ID.sfvAudioItemPlaybackCommand=ms(na),ID.shareImageCommand=
ms(WF),ID.sharingProviderDataCommand=ms(E4),ID.showCaptionLanguageSelectActionCommand=ms(yu),ID.showDialogCommand=ms(H9),ID.showEngagementPanelEndpoint=ms(P9),ID.showSheetCommand=ms(Jw),ID.showSnackbarCommand=ms(t$),ID.showTransientPlayerScrimOverlayCommand=ms(jZ),ID.submitFormWithValidationFlowCommand=ms(tw),ID.talkToRecsDeselectCommand=ms(BF),ID.talkToRecsNextCommand=ms(vF),ID.talkToRecsSelectCommand=ms(IQ),ID.talkToRecsUpdateTextCommand=ms(cF),ID.toggleEngagementPanelCommand=ms(aF),ID.undoFeedbackEndpoint=
ms(zQ),ID.updateEngagementPanelContentCommand=ms(fa),ID.updateUrlParamCommand=ms(A$),ID.verifyCommand=ms(Ca),ID.webNativeShareCommand=ms(h$),ID.webSubmitFormCommand=ms(wS),ID.ACK_PLAYABLES_3P_DATA_CONSENT=ms(dM),ID.CANCEL_NAVIGATION=ms(NJ),ID.COPY_SHARE_URL=ms(V4),ID.MINI_APP_EXIT_DIALOG_SEEN=ms(RQ),ID.MINI_APP_OPEN_URL=ms(U4),ID.REQUEST_MINI_APP_FULLSCREEN=ms(e1),ID.RESUME_NAVIGATION=ms(MJ),ID.SHARE_PLAYABLE_WITH_HIGH_SCORE=ms(gM),ID.TELL_US_WHY=ms(Qu),ID);
_.c("web_enable_prefetching_videos_on_home")&&(oKF.prefetchWatchCommand=ms(B7),oKF.registerTasksCommand=ms(mQ));_.c("enable_share_panel_navigation_logging_fix_on_web")&&(oKF.shareEntityServiceEndpoint=ms(Zc));var ZO_=Object.assign({},oKF);var G86={},Yqx=(G86.initialized={priority:10,callback:Vwr},G86);var wTK={},u6g=(wTK.initialized={callback:function(F){var W={},E={};Uho().install((W.document_disposed={callback:function(){_.c("finalize_all_timelines")?UGn():qc();OmW("FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND");_.IhY();var h=F.injector.resolve(z9);h.intervalId!==void 0&&(h.intervalId&&_.P0.cancelJob(h.intervalId),h.intervalId=void 0,--h.currentPartitionIndex,h=Tzc(h),h>0&&CaH({mainAppWeb:_.yc(),survivalSli:{partitionMinute:h,survivalStatus:"SURVIVAL_STATUS_TYPE_CENSORED"}}));V8X(YJ);wZ!=null&&
wZ.flush();d2&&d2.snapshotAndFlush();h=_.U(AM_.values());for(var d=h.next();!d.done;d=h.next())d.value.snapshotAndFlush()}},W),(E.flush_logs={callback:function(){_.JV()}},E))}},wTK);var Sq6={},pT6=(Sq6.rendered={priority:0,callback:function(){var F=new ZCe;F.increment("STARTED");if(_.b0("LOGGED_IN")&&_.b0("SERVER_VERSION")!=="test"&&_.b0("SERVER_VERSION")!=="dev"&&!gBc()&&!MHO()){F.increment("EXECUTING");var W=document.createElement("iframe");W.style.display="none";_.cWo(W,2,_.II("https://accounts.youtube.com/RotateCookiesPage?origin=https://www.youtube.com&yt_pid="+_.b0("INNERTUBE_CONTEXT_CLIENT_NAME")));document.body&&document.body.appendChild(W);F.increment("DONE")}}},Sq6);var mFw={},KgK=(mFw.rendered={callback:function(){Vkq().resume()}},mFw);var Fp6={acknowledgeChannelTouStrikeCommand:Od(EU),addToPlaylistServiceEndpoint:Od(VY),addToPlaylistEndpoint:Od(VY),addUpcomingEventReminderEndpoint:Od(sU),browseEndpoint:Od(yXu),channelCreationFormEndpoint:Od(ul),channelCreationServiceEndpoint:Od(S1),claimLegacyYoutubeChannelEndpoint:Od(O4),clearSearchHistoryEndpoint:Od(Ba),clearWatchHistoryEndpoint:Od(va),commerceActionCommand:bz(PC),createBackstagePostEndpoint:Od(Xy),createBroadcastCommand:Od(LJ),createCommentEndpoint:Od(oQ),createCommentReplyEndpoint:Od(Tx),
createLiveChatPollEndpoint:Od(qh),createPlaylistServiceEndpoint:Od(U$),crossAccountChannelTransferEndpoint:Od(Dh),deleteLiveChatMessageCommand:Od($2),deletePlaylistEndpoint:Od(RP),deleteVideoEndpoint:Od(A4),dismissalEndpoint:Od(hO),feedbackEndpoint:Od(dz),flagEndpoint:Od(t4),getAccountSwitcherEndpoint:Od(ca),verifyCommand:Od(Zr),getAccountsListInnertubeEndpoint:Od(k2),getCommentsFromInboxCommand:Od(rz),getDownloadActionCommand:Od(SG),getFlowCommand:bz(CJ),getKidsBlocklistPickerCommand:Od(CG),getNotificationMenuEndpoint:Od(rXi),
getPaymentInstrumentsParamsCommand:Od(l$),getPaymentsClientTokenCommand:bz(PC),getPdgBuyFlowCommand:Od(dx),getReportFormEndpoint:Od(BC),getSearchInVideoCommand:Od(cC),getAnswerCommand:Od(IP),getSurveyCommand:Od(ky),getTranscriptEndpoint:Od(qf),getPostVideoPreviewEndpoint:Od(PF),decorateMessageEndpoint:Od(HF),likeEndpoint:Od(ph),liveChatActionEndpoint:Od(Pa),liveChatEndpoint:Od(Ha),liveChatItemContextMenuEndpoint:Od(Zh),liveChatPurchaseMessageEndpoint:Od(JO),liveChatReplayEndpoint:Od(X7),manageLiveChatUserEndpoint:Od(fJ),
metadataUpdateCommand:Od(jG),moderateLiveChatEndpoint:Od(OU),modifyChannelNotificationPreferenceEndpoint:Od(Y2),notificationOptOutEndpoint:Od(wz),openSuperStickerBuyFlowCommand:Od(aC),performCommentActionEndpoint:Od(j1),playlistEditEndpoint:Od(Mf),playlistEditorEndpoint:Od(eK),profileCardCommand:Od(AO),recordNotificationInteractionsEndpoint:Od(uy),reelWatchEndpoint:Od(gx),refreshPanelEndpoint:Od(mi),removeUpcomingEventReminderEndpoint:Od(by),resolveLocationCommand:Od(yh),revealBusinessEmailCommand:Od(bl),
searchEndpoint:Od(_.Tga),sendLiveChatMessageEndpoint:Od(ly),sendLiveChatVoteEndpoint:Od(nJ),setSettingEndpoint:Od(mb),shareEntityServiceEndpoint:bz(Wa),sharingProviderDataCommand:Od(xy),showEngagementPanelEndpoint:Od(KJ),showMoreDrawerCommand:Od(WC),showSheetCommand:Od(E$),showDialogCommand:Od(Fi),subscribeEndpoint:Od(Kh),transcriptSubmitCaptionCorrectionCommand:Od(LG),undoFeedbackEndpoint:Od(Vh),unsubscribeEndpoint:Od(F7),updateBackstagePostEndpoint:Od(aQ),updateCommentEndpoint:Od(Y_),updateCommentReplyEndpoint:Od(Gx),
updateCommentsSettingsEndpoint:Od(wM),updateCreatorChannelInnertubeCommand:Od(nh),updateKidsBlacklistEndpoint:Od(vC),updateEngagementPanelContentCommand:Od(h4),updatePdgFeatureEnablementCommand:Od(Nf),updatedMetadataEndpoint:Od(iy),validateChannelHandleCommand:Od(y4),updateChannelPageSettingsEndpoint:Od(ll),verifyAgeEndpoint:Od(tO),watchEndpoint:bz(s$),whitelistEditEndpoint:Od(HC),ypcCancelRecurrenceEndpoint:Od(J4),ypcCompleteTransactionEndpoint:Od(aP),ypcFixInstrumentEndpoint:Od(O$),ypcGetCartEndpoint:Od(fG),
ypcGetOffersEndpoint:Od(b$),ypcHandleTransactionEndpoint:bz(nG),ypcLogWalletAnalyticDataEndpoint:Od(yY),ypcOffersEndpoint:Od(jK),ypcPauseSubscriptionCommand:Od(i$),ypcRedeemCodeEndpoint:Od(rx),ypcResumeSubscriptionCommand:Od(Tu),ypcUpdateFopEndpoint:Od(O$)},c7={},WpK=(c7.GET_ACCOUNT_MENU=Od(x2),c7.GET_NOTIFICATIONS_MENU=Od(i0z),c7.GET_NOTIFICATIONS_INBOX=Od(T1),c7.GET_UNSEEN_NOTIFICATION_COUNT=Od(G1),c7.GET_USER_MENTION_SUGGESTIONS=Od(J$),c7.LOAD_GUIDE=Od(j2O),c7.SUBMIT_FEEDBACK=Od(Nh),c7),DQ={},
ERg=(DQ.CONTINUATION_REQUEST_TYPE_BROWSE=Od(fh),DQ.CONTINUATION_REQUEST_TYPE_SEARCH=Od(Dg),DQ.CONTINUATION_REQUEST_TYPE_WATCH_NEXT=Od(Zg),DQ.CONTINUATION_REQUEST_TYPE_ACCOUNTS_LIST=Od(IC),DQ.CONTINUATION_REQUEST_TYPE_COMMENTS_NOTIFICATION_MENU=Od(rM),DQ.CONTINUATION_REQUEST_TYPE_COMMENT_REPLIES=Od(il),DQ.CONTINUATION_REQUEST_TYPE_REEL_WATCH_SEQUENCE=Od(zu),DQ.CONTINUATION_REQUEST_TYPE_GET_PANEL=Od(pJ),DQ),hW8={player:_.c("web_streaming_player")?bz(Xi):bz(s$),watchNext:Od($y)},dRx={player:bz(s$),reelItemWatch:Od(gx),
reelWatchSequence:Od(QY)},NuO={watchEndpoint:bz(Xi)},Vzg={commandEndpointMap:Fp6,signalEndpointMap:WpK,continuationEndpointMap:ERg,watchEndpointMap:hW8,reelWatchEndpointMap:dRx,streamingEndpointMap:NuO};var URT,RWw,eWq,MzP={disableAllTransitions:(RWw=(URT=window).matchMedia)==null?void 0:(eWq=RWw.call(URT,"(prefers-reduced-motion: reduce)"))==null?void 0:eWq.matches,transitionConfigs:new Map([["slide",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:500}}],["zoom",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:500}}]])};var gR8=new _.NG("VIEW_TRANSITION_MANAGER_CONFIG_TOKEN");_.xX=new _.NG("VIEW_TRANSITION_MANAGER_TOKEN");var QKK=function(F){this.config=F;this.transitionTasksMap=new Map;F=_.U(F.transitionConfigs);for(var W=F.next();!W.done;W=F.next())W=_.U(W.value).next().value,this.transitionTasksMap.set(W,[])};
QKK[dr]=[gR8];var U8G={data:void 0,previousButtonDisabled:!1,nextButtonDisabled:!1,shortsPreviewThumbnail:void 0,shortsData:void 0,externalPlaylistData:void 0,toastData:void 0,playabilityStatus:void 0,isDisabled:!1,isReadyToResume:!1,watchWhile:!1,playerVe:void 0,expandVe:void 0,closeVe:void 0,readyToResumeVe:void 0,readyToResumeCloseVe:void 0,repositionVe:void 0,resizeVe:void 0};var ehw=["videoPrimaryInfoRenderer","title"],Mwe=["videoSecondaryInfoRenderer","owner","videoOwnerRenderer","title"];var zWu;zWu=[{metadataBadgeRenderer:{icon:{iconType:"PREMIUM_STANDALONE_CAIRO"}}}];_.tzN=_.GK(function(F){F=_.o4(F,{data:void 0,playlistData:void 0,expanded:!1,onExpandClick:void 0,isReadyToResume:!1});var W=F.data,E=F.playlistData,h=F.expanded,d=F.onExpandClick,V=F.isReadyToResume,R=function(){var C;return!((C=E())==null||!C.contents)},M=function(){var C=E();
return C&&C.totalVideos&&C.currentIndex!==void 0?C.currentIndex+1+" / "+C.totalVideos:""};
F=_.tb(function(){_.kX(_.WZ().resolve(_.GF))});
var g=_.tb(function(){R()&&d&&d()}),t={};
return _.z("ytd-miniplayer-info-bar",{class:_.ec("ytdMiniplayerInfoBarHost",(t.ytdMiniplayerInfoBarHasPlaylistData=R,t)),"on:click":g},_.z("div",{class:"ytdMiniplayerInfoBarContent"},_.z("h1",{class:"ytdMiniplayerInfoBarTitle","on:click":F},_.z(_.Ab,{text:function(){var C=W();var B=E();if(B==null?0:B.contents){var I;C=(I=_.UXG(B))==null?void 0:I.title}else C=C==null?void 0:C.miniplayerTitle;return Qao(C)},
noEndpoints:!0,ellipsisTruncate:!0})),_.z("div",{class:"ytdMiniplayerInfoBarSubtitle"},_.z("h1",null,_.z(_.Ab,{className:"ytdMiniplayerInfoBarSubtitleText",text:function(){var C=W();var B=E();C=V()?{simpleText:_.CY("CONTINUE_WATCHING",void 0,"Continue watching")}:(B==null?0:B.contents)?B.titleText:C==null?void 0:C.miniplayerSubtitle;return Qao(C)},
noEndpoints:!0,ellipsisTruncate:!0})),_.z(_.v,{cond:function(){return!!M()&&!V()},
then:function(){return _.z("div",{class:"ytdMiniplayerInfoBarPlaylistIndex"},_.z("span",{class:"ytdMiniplayerInfoBarPlaylistIndexTextDivider"},"\u2022"),_.z("span",null,M))}}),_.z(_.v,{cond:V,
then:function(){return _.z(U9X,{className:"ytdMiniplayerInfoBarPremiumBadge",badges:zWu})}}))),_.z(_.v,{cond:R,
then:function(){return _.z("div",{class:"ytdMiniplayerInfoBarExpand"},_.z(Vg,{data:function(){return{style:"mono",type:"text",state:"active",iconPosition:"icon-only",size:"M",onTap:function(C){d&&(d(),C.stopPropagation())}}},
iconName:function(){return h()?"miniplayer:keyboard-arrow-down":"miniplayer:keyboard-arrow-up"}}))}}))},"me");var CLF;CLF=_.GK(function(F){return _.z("div",{class:"ytdMiniplayerPlayerContainerDisabledClose"},_.z(Vg,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:"S",onTap:F.onTap}},
iconName:"yt-icons:close"}))},"ne");
_.Bux=_.GK(function(F){F=_.o4(F,{playabilityStatus:void 0,isDisabled:!1});var W=F.size,E=F.playabilityStatus,h=F.isDisabled,d=_.uf();F=_.U(_.g$(void 0,void 0,"bJr0Se"));var V=F.next().value,R=F.next().value;F=_.Jb(_.ka);var M=!1,g=function(){return W().height<=0};
_.q6(function(){var I=W(),x=g(),A=V();A&&!x&&A.setInternalSize(I.width,I.height)});
_.$F(function(){var I,x,A;return _.e(function(X){if(X.nextAddress==1){I=_.WZ().resolve(_.GF);x=I.getPlayerElement();if(!I.isMiniplayerActive()||!x||!d.value)return X.return();x.appendTo(d.value);return _.Q(X,x.getPlayerPromise(),2)}A=X.yieldResult;A.setSizeStyle(!1,!0);R(A);_.gG(X)})});
_.$p(function(){t()});
_.q6(function(){var I=V();if(I)if(h()){var x=I.getPlayerState();(M=x===-1||x===1||x===3)&&I.pauseVideo()}else t()});
var t=function(){if(M){M=!1;var I;(I=V())==null||I.playVideo()}},C=_.tb(function(){_.kX(_.WZ().resolve(_.GF))}),B={};
return _.z("ytd-miniplayer-player-container",{class:_.ec("ytdMiniplayerPlayerContainerHost",(B.ytdMiniplayerPlayerContainerHidden=g,B.ytdMiniplayerPlayerContainerHostShortsPip=F,B)),style:_.vr({width:function(){return W().width+"px"},
height:function(){return W().height+"px"}})},_.z("div",{id:"player-container",
class:"ytdMiniplayerPlayerContainerPlayerContainer",el:d}),_.z(_.v,{cond:function(){return!!E()&&!_.Qww(E())},
then:function(){return _.z(Um_,{className:"ytdMiniplayerPlayerContainerPlayabilityError",compact:!0,data:function(){var I;return((I=E())==null?void 0:I.errorScreen)||null},
status:function(){var I;return((I=E())==null?void 0:I.status)||null}})}}),_.z(_.v,{cond:h,
then:function(){return _.z("div",{class:"ytdMiniplayerPlayerContainerDisabled","on:click":C},_.z(CLF,{onTap:function(){_.WZ().resolve(_.GF).close()}}))}}))},"oe");_.vRq=_.GK(function(F){var W=F.toastData;var E=_.uf();F=_.U(_.Br(function(){return!!W()}));
var h=F.next().value,d=F.next().value;F=_.U(_.g$(!1,void 0,"xkrBze"));var V=F.next().value,R=F.next().value,M=function(){var C;return _.Yr((C=W())==null?void 0:C.data.title)};
_.Xk(function(){_.Y5.requestAvailability();W()&&d(!1)});
var g,t;_.q6(function(){h()&&(_.hF(E.value,"iron-announce",{text:W().label+" "+M()}),g&&_.P0.cancelJob(g),g=_.P0.addLowPriorityJob(function(){R(!0)},2500))});
_.q6(function(){V()&&(t&&_.P0.cancelJob(t),t=_.P0.addLowPriorityJob(function(){d(!1);R(!1)},300))});
F={};return _.z("ytd-miniplayer-toast",{el:E,class:_.ec("ytdMiniplayerToastHost",(F.ytdMiniplayerToastOpening=function(){return h()},F.ytdMiniplayerToastClosing=function(){return V()},F))},_.z(_.v,{cond:function(){var C;
return(C=W())==null?void 0:C.data},
then:function(C){return _.z(cu_,{className:"ytdMiniplayerToastThumbnail",data:C,width:78})}}),_.z("div",{class:"ytdMiniplayerToastInfo"},_.z("div",{class:"ytdMiniplayerToastLabel"},function(){var C;
return(C=W())==null?void 0:C.label}),_.z("div",{class:"ytdMiniplayerToastTitle"},M)))},"pe");var kwY;var q5S=new Set,Lao=null;var ZtG=null;var cWx=_.GK(function(F){var W=F.progressState;var E=F.multiMarkersPlayerBarRenderer;var h=F.progressBarWidth;var d=function(){return JYR(E())},V=function(){return Otw(W())},R=function(){return h()*(W().playedTime/W().videoDuration)};
return _.z("yt-chaptered-progress-bar-line",{class:"ytChapteredProgressBarHost"},_.z(_.xF,{each:d},function(M,g){return _.z(Ieq,{modifiedProps:V,chapters:d,index:g,playedProgressWidth:R,backgroundGradientPosition:function(){var t=V(),C=d(),B=g(),I=R();return(t.playedTime-TF(_.D(C[B],rX)))/t.playedTime*I}})}))},"qe"),Ieq=_.GK(function(F){var W=F.modifiedProps;
var E=F.chapters;var h=F.index;var d=F.playedProgressWidth;var V=F.backgroundGradientPosition;F={};F=_.ec("ytChapteredProgressBarChapteredPlayerBarChapter",(F.ytChapteredProgressBarChapteredPlayerBarChapterIsScrubbing=function(){return R().isScrubbing},F.ytChapteredProgressBarHoveredMacroMarker=function(){return R().scrubberHovering},F.ytChapteredProgressBarChapteredPlayerBarChapterSeen=function(){return R().videoPosition==="seen"},F));
var R=function(){return btY(W(),E(),h())},M=function(){var g=W();
var t=E(),C=h();if(btY(g,t,C).videoPosition!=="active")g=0;else{var B=TF(_.D(t[C],rX));g=(g.playedTime-B)/((TF(_.D(t[C+1],rX))||g.videoDuration)-B)}return g};
return _.z("div",{class:F,style:_.vr({width:function(){var g=W(),t=E(),C=h(),B=_.D(t[C],rX);t=_.D(t[C+1],rX);return(t?TF(t)-TF(B):g.videoDuration-TF(B))/g.videoDuration*100+"%"},
"background-color":function(){a:{var g=R();switch(g.videoPosition){case "pending":g=g.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;case "active":g=g.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;default:g=""}}return g},
"background-size":function(){return(l7I(R())?d():"")+"px"},
"background-position-x":function(){return(l7I(R())?V():"")+"px"}})},_.z("div",{class:"ytChapteredProgressBarChapteredPlayerBarLoaded",
style:function(){var g=W(),t=E(),C=h();if(btY(g,t,C).videoPosition==="seen")var B=0;else B=TF(_.D(t[C],rX)),t=TF(_.D(t[C+1],rX))||g.videoDuration,g=g.videoDuration*g.percentLoaded,B=t<=g?1:B>=g?0:(g-B)/(t-B);return"width: "+B*100+"%"}}),_.z("div",{class:"ytChapteredProgressBarChapteredPlayerBarFill",
style:_.vr({width:function(){return M()*100+"%"},
"background-size":function(){return(l7I(R(),M())?d():"")+"px"},
"background-position-x":function(){return(l7I(R(),M())?V():"")+"px"}})}))},"re");var DRT=function(F,W){W=W===void 0?Y6B:W;var E,h=[],d,V=!1;return function(){var R=_.Dd.apply(0,arguments);if(V&&E===this&&W(R,h))return d;d=F.apply(this,R);V=!0;E=this;h=R;return d}}(function(F){var W=F.heatMarkers,E=F.minHeightDp===void 0?0:F.minHeightDp,h=F.maxHeightDp===void 0?60:F.maxHeightDp;
var d=d===void 0?!1:d;var V=1E3/W.length;F=[];F.push({x:0,y:100});for(var R=0;R<W.length;R++){var M=void 0,g=((M=_.D(W[R],L8B))==null?void 0:M.heatMarkerIntensityScoreNormalized)||0;M=(R+.5)*V;g=100-_.jX(g*100,E/321*100,h/321*100);R!==0||d||F.push({x:0,y:g});F.push({x:M,y:g});R===W.length-1&&F.push({x:1E3,y:g})}F.push({x:1E3,y:100});W="";for(E=0;E<F.length;E++)d=F[E],E===0?d="M "+d.x.toFixed(1)+","+d.y.toFixed(1):(h=MLR(F[E-1],F[E-2],d),V=MLR(d,F[E-1],F[E+1],!0),d=" C "+(h.x.toFixed(1)+","+h.y.toFixed(1)+
" "+V.x.toFixed(1)+","+V.y.toFixed(1)+" "+d.x.toFixed(1)+","+d.y.toFixed(1))),W+=d;return W});var xRg=_.GK(function(F){var W=F.progressBarProps;var E=F.config;var h={};F=_.ec("ytHeatSeekerHost",(h.ytHeatSeekerHighContrast=F.highContrast,h));var d=function(){return vvr(E().chapterData)};
return _.z("yt-progress-bar-heatseeker",{class:F,style:function(){var V;return"height: 320px; display: "+(W().isDragging&&((V=d())==null?0:V.heatMarkers)?"block":"none")}},_.z(_.v,{cond:d,
then:function(V){return _.z(_.v,{cond:function(){return V().heatMarkers},
then:function(){return _.z("svg",{width:"100%",height:"320px",viewBox:"0 0 1000 100",preserveAspectRatio:"none"},_.z("path",{d:function(){return DRT(V())}}))},
debugInstance:"Gji0Se"})},
debugInstance:"iVTXwf"}))},"se");var k2q=_.GK(function(F){var W=F.progressBarProps;var E=F.config;F={};F=_.ec("ytProgressBarLineProgressBarLine",(F.ytProgressBarLineProgressBarLineRounded=function(){return E().rounded},F.ytProgressBarLineProgressBarLineBottomInset=function(){return E().position===2},F));
return _.z("yt-progress-bar-line",{class:"ytProgressBarLineHost"},_.z("div",{class:F},_.z("div",{class:"ytProgressBarLineProgressBarBackground"}),_.z("div",{class:"ytProgressBarLineProgressBarLoaded",style:function(){return"width: "+W().percentLoaded*100+"%"}}),_.z("div",{class:"ytProgressBarLineProgressBarHovered",
style:function(){var h=W();return"width: "+(h.videoDuration?_.jX(h.hoveredTime/h.videoDuration,0,1):0)*100+"%"}}),_.z("div",{class:"ytProgressBarLineProgressBarPlayed",
style:function(){return"width: "+twr(W())*100+"%"}})))},"te");
k2q.idomCompat=!0;var AW6=_.GK(function(F){var W=F.progressBarProps;var E=F.playheadData;var h=F.interpolateDotPosition;var d=F.hidePlayhead;F={};var V=_.ec("ytProgressBarPlayheadProgressBarPlayheadDot",(F.ytProgressBarPlayheadProgressBarPlayheadDotLarge=function(){return W().isDragging},F.ytProgressBarPlayheadProgressBarPlayheadDotHide=function(){return!W().isDragging&&d()},F));
return _.z("yt-progress-bar-playhead",{class:"ytProgressBarPlayheadHost",style:_.vr({"margin-left":function(){return CPY(W())*100+"%"},
transform:function(){return"translateX(-"+(h()?CPY(W())*12:6)+"px)"}})},_.z(_.v,{cond:function(){var R;
return(R=_.TK(E)())==null?void 0:R.playheadImage},
then:function(R){var M={};return _.z("div",{class:_.ec("ytProgressBarPlayheadProgressBarPlayheadCustom",(M.ytProgressBarPlayheadProgressBarPlayheadCustomLarge=function(){return W().isDragging},M.ytProgressBarPlayheadProgressBarPlayheadCustomHide=function(){return!W().isDragging&&d()},M)),
style:_.vr({"transform-origin":function(){return(h()?CPY(W())*20:10)+"px center"}})},_.z(_.T4,{data:R,
alt:"","aria-hidden":"true"}))},
else:function(){return _.z("div",{class:V,style:_.vr({"transform-origin":function(){return(h()?CPY(W())*12:6)+"px center"}})})}}))},"ue");
AW6.idomCompat=!0;var Ap=function(F,W,E,h,d,V){this.getProgressBarRect=F;this.updateProgressBarRect=W;this.getFilmstripYPosition=E;this.setFineScrubbingDraggedTime=h;this.updateFilmStripDraggedYDistance=d;this.resetFilmStripYOffset=V;this.startPosition=null;this.controlsWereVisibleBeforeDragging=this.isDraggedForFineScrubbing=this.hasDraggedTheMinimumDistance=!1;this.seekThrottle=new _.Nv(this.onThrottledSeek,100,this)},sKP=function(F,W,E){return function(h){F.handleClick(h,W(),E())}},$RP=function(F,W){return function(E){Lpx(F,
E,qfg(E),W())}},Z2q=function(F,W){return function(E){Lpx(F,E,{x:E.clientX,
y:E.clientY},W())}},H2w=function(F,W,E){return function(h){var d=W(),V=E();
Xk8(F,h,qfg(h),d,V,!0);if(V.onTouchMove)V.onTouchMove(d)}},JWF=function(F,W,E){return function(h){PLw(F,h,W(),E())}},ae6=function(F,W){return function(){F.handleMouseLeave(W())}},fe8=function(F,W,E){return function(){var h=W(),d=E();
sE(F,h,d);if(d.onTouchEnd)d.onTouchEnd(h)}},O2N=function(F,W,E){return function(){var h=W(),d=E();
sE(F,h,d);if(d.onTouchEnd)d.onTouchEnd(h)}},b2P=function(F,W,E){return function(){sE(F,W(),E())}},leg=function(F){return function(W){if(W.keyCode===39){var E,h;
(E=F())==null||(h=E.playerApi)==null||h.seekBy(5,void 0,void 0,72)}else if(W.keyCode===37){var d,V;(d=F())==null||(V=d.playerApi)==null||V.seekBy(-5,void 0,void 0,71)}}},nRN=function(F,W,E){return function(h){!E().disableScrubbing&&F.startPosition&&PLw(F,h,W(),E())}},yW6=function(F,W,E){return function(){if(!E().disableScrubbing)if(F.startPosition){var h=W(),d=E();
sE(F,W(),E());if(d.onTouchEnd)d.onTouchEnd(h)}else W().setState({isDragging:!1})}},qfg=function(F){F=F.touches[0];
return{x:F.clientX,y:F.clientY}},PLw=function(F,W,E,h){if(W.buttons!==1){if(W.movementX||W.movementY)W.preventDefault(),W.stopPropagation(),F=jKu(F,E,W.clientX),E.setState({isHovering:!0,
hoveredTime:F*E.videoDuration})}else i26(E),Xk8(F,W,{x:W.clientX,y:W.clientY},E,h,!1)};
Ap.prototype.handleMouseLeave=function(F){i26(F)};
var i26=function(F){F.isHovering&&F.setState({isHovering:!1,hoveredTime:0})},Lpx=function(F,W,E,h){F.startPosition||(F.startPosition=E,F.updateProgressBarRect(),F.controlsWereVisibleBeforeDragging=h.controlsVisible,W.stopPropagation(),_.c("medium_progress_bar_modification")||W.preventDefault())},Xk8=function(F,W,E,h,d,V){if(F.startPosition)if(V&&d.isInlinePlayback&&F.startPosition&&!F.hasDraggedTheMinimumDistance&&Math.abs(E.y-F.startPosition.y)>Math.abs(E.x-F.startPosition.x))sE(F,h,d);
else if(W.preventDefault(),W.stopPropagation(),h.videoDuration&&(F.startPosition&&!F.hasDraggedTheMinimumDistance&&(F.hasDraggedTheMinimumDistance=Math.abs(E.x-F.startPosition.x)>=1),d.enableFineScrubbing&&(F.startPosition&&(F.isDraggedForFineScrubbing=-(E.y-F.startPosition.y)>=60),!F.startPosition||E.y>=F.startPosition.y||(h.setState({fineScrubbingActiveState:"dragging",filmStripXDistance:nvW(h.draggedTime,h,d.chapterData)}),F.setFineScrubbingDraggedTime(h.draggedTime),F.updateFilmStripDraggedYDistance(F.startPosition.y,
E.y,h))),F.hasDraggedTheMinimumDistance)){W=jKu(F,h,E.x);if(F.isDraggedForFineScrubbing){var R;(R=h.playerApi)==null||R.pauseVideo();h.setState({fineScrubbingActiveState:"on",fineScrubbingEnteredTime:h.draggedTime,filmStripXDistance:nvW(W*h.videoDuration,h,d.chapterData)})}d.enableFineScrubbing&&(!d.enableFineScrubbing||F.getFilmstripYPosition(h)<68)||h.setState({draggedTime:W*h.videoDuration,controlsVisible:!0,isDragging:!0,shouldWaitToHideControls:F.controlsWereVisibleBeforeDragging});var M;(M=
d.cancelAutohideControlsFn)==null||M.call(d)}},sE=function(F,W,E){var h=E.enableFineScrubbing&&W.fineScrubbingActiveState!=="off";
if(W.isDragging||h){h={isDragging:!1,playedTime:W.draggedTime,controlsVisible:F.controlsWereVisibleBeforeDragging};E.enableFineScrubbing&&W.fineScrubbingActiveState!=="on"&&(F.resetFilmStripYOffset(),h.fineScrubbingActiveState="off");var d=d===void 0?ZtG:d;var V=_.JR(0);V&&d&&_.GJ(V,d,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK",{seekData:{startMediaTimeMs:Math.round(W.playedTime*1E3),endMediaTimeMs:Math.round(W.draggedTime*1E3),seekSource:"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR"}});W.setState(h);
F.seekThrottle.fire(W.draggedTime,W,7);_.c("mweb_new_progress_bar_play_on_seek")&&F.resumeVideo(W);E.unmuteOnSeek&&(E=W.playerApi,W.volumeMuted&&(E==null||E.unMute()))}else W.setState({controlsVisible:!W.controlsVisible}),(V=E.triggerAutohideControlsAfterDelayFn)==null||V.call(E);F.startPosition=null;F.hasDraggedTheMinimumDistance=!1;F.isDraggedForFineScrubbing=!1;F.controlsWereVisibleBeforeDragging=!1};
Ap.prototype.handleClick=function(F,W,E){this.updateProgressBarRect();F.stopPropagation();F=jKu(this,W,F.clientX)*W.videoDuration;W.setState({playedTime:F});if(W.playerState!==2){var h;(h=E.triggerAutohideControlsAfterDelayFn)==null||h.call(E)}this.seekThrottle.fire(F,W,7)};
var jKu=function(F,W,E){F=F.getProgressBarRect(W);return _.jX(0,(E-F.left)/F.width,1)};
Ap.prototype.resumeVideo=function(F){if(F.draggedTime<F.videoDuration){var W;(W=F.playerApi)==null||W.playVideo()}};
Ap.prototype.onThrottledSeek=function(F,W,E){if(W=W.playerApi){var h;if((h=W.getVideoData())==null?0:h.isLive)h=this.getProgressState(W),F+=(h==null?void 0:h.seekableStart)||0;W.seekTo(F,void 0,void 0,void 0,E)}};
Ap.prototype.getProgressState=function(F){var W=F==null?void 0:F.getPresentingPlayerType();return F==null?void 0:F.getProgressState(W)};var oRN,Tuu,G2u,wkN,rWg,uG8,Sfx,pk6,mRw;oRN=_.GK(function(F){var W=F.progressBarProps;var E=F.config;var h=F.progressBarWidthPx;var d=F.chapterData;var V=TAS(W,function(){return E().isShortsPage}),R=function(){return!W().isHovering&&!E().isShortsPage};
F={};var M=_.ec("ytPlayerStoryboardHost","ytPlayerStoryboardHostBigboard",(F.ytPlayerStoryboardHostMwebShorts=function(){return E().isShortsPage&&!1},F));
return _.z("yt-player-storyboard",null,_.z(_.v,{cond:function(){return W().isDragging||W().isHovering},
then:function(){return _.z(_.v,{cond:V,then:function(g){return _.z(_.v,{cond:R,then:function(){return _.z("div",{class:M,"aria-hidden":"true"},_.z(rWg,{props:W,config:E,isBigboard:!0,chapterData:d}))},
else:function(){return _.z(Tuu,{props:W,frame:g,config:E,progressBarWidthPx:h,chapterData:d})}})}})}}))},"ve");
_.YfP=_.GK(function(F){var W=F.progressBarProps;var E=TAS(W,F.isShortsPage);return _.z("yt-player-big-storyboard",{class:"ytPlayerStoryboardBigboardWrapper"},_.z(_.v,{cond:function(){return W().isDragging||W().isHovering},
then:function(){return _.z(_.v,{cond:E,then:function(h){return _.z(G2u,{frame:h,props:W,isBigboard:!0})}})}}))},"we");
Tuu=_.GK(function(F){var W=F.props;var E=F.frame;var h=F.config;var d=F.progressBarWidthPx;F=F.chapterData;var V={};V=_.ec("ytPlayerStoryboardHost",(V.ytPlayerStoryboardHostMwebShorts=function(){return h().isShortsPage&&!1},V.ytPlayerStoryboardHostInlinePlayer=function(){return h().isInlinePlayer},V.ytPlayerStoryboardHostFadeIn=function(){return h().useFadeInAnimation},V));
return _.z("div",{class:V,"aria-hidden":"true",style:function(){var R=W(),M=yYS(E()),g=d();R=jaS(R)/R.videoDuration;var t=g*R,C=M/2+6;M=g-(M/2+6);return"left: "+(t<=C?C/g*100:t>=M?M/g*100:R*100)+"%"}},_.z(_.v,{cond:function(){var R=W();
return!(h().isShortsPage&&R.videoDuration<15)},
then:function(){return _.z(G2u,{frame:E,props:W,isBigboard:!1})}}),_.z(rWg,{props:W,
config:h,isBigboard:!1,chapterData:F}))},"xe");
G2u=_.GK(function(F){var W=F.frame;var E=F.props;var h=F.isBigboard;var d=function(){var M,g;return(g=(M=E().playerApi)==null?void 0:M.getVideoContentRect())!=null?g:{width:0,height:0}},V=function(){return yYS(W())},R=function(){var M=W();
return M?M.height/M.rows:0};
F={};F=_.ec((F.ytPlayerStoryboardBigboardImageWrapper=h,F.ytPlayerStoryboardStoryboardImageWrapper=function(){return!h()},F));
return _.z("div",{class:F,style:function(){return"width: "+(h()?d().width:V())+"px; height: "+(h()?d().height:R())+"px;"}},_.z(wkN,{frame:W,
storyboardWidth:V,storyboardHeight:R,storyboardScale:function(){return(h()?d().width:V())/V()}}))},"ye");
wkN=_.GK(function(F){var W=F.frame;var E=F.storyboardWidth;var h=F.storyboardHeight;var d=F.storyboardScale;var V=function(){var R=W().row,M=W().column,g=E(),t=h(),C=d();return{left:-M*g*C,top:-R*t*C}};
return _.z("img",{src:function(){return W().url},
class:"ytPlayerStoryboardStoryboardImage",alt:"preview-image",style:function(){return"left: "+V().left+"px; top: "+V().top+"px; width: "+W().width*d()+"px; height: "+W().height*d()+"px;"}})},"ze");
rWg=_.GK(function(F){var W=F.props;var E=F.config;var h=F.isBigboard;var d=F.chapterData;F={};F=_.ec("ytPlayerStoryboardMetadata",(F.ytPlayerStoryboardMetadataBigboard=h,F));return _.z("div",{class:F},_.z(_.v,{cond:h,then:function(){return _.z(_.EG,null,_.z(uG8,{props:W,config:E}),_.z(_.v,{cond:function(){a:{var V=W();var R=E(),M=d(),g;if((R==null?0:R.activeChapter)&&((g=_.D(R==null?void 0:R.activeChapter,rX))==null?0:g.title))V=!0;else{R=_.U(I7W(M));for(R=R.next();!R.done;R=R.next()){V=(R=_.D(R.value,
$Iu))&&ito(V,R);break a}V=!1}}return V},
then:function(){return _.z(Sfx,{props:W,config:E,isBigboard:!0,chapterData:d})}}))},
else:function(){return _.z(_.EG,null,_.z(Sfx,{props:W,config:E,isBigboard:!0,chapterData:d}),_.z(uG8,{props:W,config:E}))}}))},"Ae");
uG8=_.GK(function(F){var W=F.props;var E=F.config;F={};F=_.ec("ytPlayerStoryboardTimestamp",(F.ytPlayerStoryboardTimestampShorts=function(){return E().isShortsPage},F.ytPlayerStoryboardTimestampIsHovering=function(){return W().isHovering||E().isShortsPage&&!0},F));
return _.z("div",{class:F},_.z(_.EG,null,function(){return _.rYI(jaS(W()))}))},"Be");
Sfx=_.GK(function(F){var W=F.props;var E=F.config;var h=F.isBigboard;var d=F.chapterData;F={};h=_.ec("ytPlayerStoryboardTitle",(F.ytPlayerStoryboardTitleBigboard=h,F));return _.z("div",{class:h},_.z(_.v,{cond:function(){return!E().isShortsPage},
then:function(){return _.z(pk6,{props:W,activeChapter:function(){return E().activeChapter},
chapterData:d})}}))},"Ce");
pk6=_.GK(function(F){var W=F.props;var E=F.activeChapter;var h=F.chapterData;return _.z(_.EG,null,_.z(_.xF,{each:function(){return I7W(h())},
keyBy:"INDEX"},function(d){return _.z(_.EG,null,_.z(_.v,{cond:function(){return _.D(d(),$Iu)&&ito(W(),_.D(d(),$Iu))},
then:function(){return _.z(mRw,{timedMarker:function(){return _.D(d(),$Iu)}})}}))}),_.z(_.v,{cond:function(){var d;
return E()&&((d=_.D(E(),rX))==null?void 0:d.title)},
then:function(d){return _.z(_.Ab,{text:d,noPreWrap:!0})}}))},"De");
mRw=_.GK(function(F){var W=F.timedMarker;return _.z(_.EG,null,_.z("div",{class:"ytPlayerStoryboardTimedMarkerIconWrapper"},_.z(_.I3,{icon:function(){return W().icon},
className:"ytPlayerStoryboardTimedMarkerIcon"})),_.z(_.Ab,{text:function(){return W().label},
noPreWrap:!0}))},"Ee");_.KpP=_.GK(function(F){var W=F.progressBarProps;var E=F.playheadData;var h=F.config;F=_.uf();var d=_.uf(),V=_.uf(),R=_.U(_.g$({width:0,left:0},void 0,"NcXsUb")),M=R.next().value,g=R.next().value,t=function(){V.value&&g(V.value.getBoundingClientRect())},C=function(){M().width<=0&&t();
return M()};
FV("resize",t);var B=new Ap(C,function(){},function(){return 0},function(){},function(){},function(){}),I=function(){return W()};
R=_.U(_.g$(!1,void 0,"ZsF6Xc"));var x=R.next().value,A=R.next().value;R=_.tb(function(){A(!0);h().position===2?setTimeout(function(){t()},100):t()});
var X=_.tb(function(){A(!1);ae6(B,I)()}),P=_.tb(function(bo){h().doSeekOnClick&&sKP(B,I,h)(bo);
return!1}),b=_.tb(function(bo){$RP(B,I)(bo);
return!1}),l=_.tb(function(bo){Z2q(B,I)(bo);
return!1}),w=_.tb(function(bo){H2w(B,I,h)(bo);
return!1}),G=_.tb(function(bo){JWF(B,I,h)(bo);
return!1}),hr=_.tb(function(){fe8(B,I,h)();
return!1}),p=_.tb(function(){O2N(B,I,h)();
return!1}),UY=_.tb(function(){b2P(B,I,h)();
return!1}),xW=_.tb(function(bo){leg(I)(bo);
return!1});
FV("mousemove",nRN(B,I,h));FV("mouseup",yW6(B,I,h));_.Xk(function(){XoR(d.value);A(!1);t();yW6(B,I,h)()});
var qw={};qw=_.ec("ytPlayerProgressBarHost",function(){return h().className},(qw.ytPlayerProgressBarHostReadOnly=function(){return h().disableScrubbing},qw.ytPlayerProgressBarHostHidden=function(){return h().hideProgressBar&&!x()},qw.ytPlayerProgressBarHostLowerPlayer=function(){return h().position===0},qw.ytPlayerProgressBarHostBottomEdge=function(){return h().position===1},qw.ytPlayerProgressBarHostBottomInset=function(){return h().position===2},qw.ytPlayerProgressBarHostCustom=function(){return h().position===
3},qw));
var Lb={},jk=_.ec("ytPlayerProgressBarBackground",(Lb.ytPlayerProgressBarBackgroundHide=function(){return h().position===2&&!x()&&!W().isDragging},Lb));
Lb={};Lb=_.ec("ytPlayerProgressBarDragContainer",(Lb.ytPlayerProgressBarDragContainerBottomEdge=function(){return h().position===1},Lb));
var Jr={};Jr=_.ec("ytPlayerProgressBarProgressBar",(Jr.ytPlayerProgressBarProgressBarInset=function(){return h().position===2},Jr.ytPlayerProgressBarProgressBarInsetMinimized=function(){return h().position===2&&!x()&&!W().isDragging},Jr));
var nb=function(){return Math.floor(twr(W())*100)};
return _.z("yt-progress-bar",{el:F,class:qw},_.z(_.v,{cond:function(){return h().position===2},
then:function(){return _.z("div",{class:jk})}}),_.z("div",{el:d,
"on:click":P,"on:touchstart":b,"on:touchmove":w,"on:mouseenter":R,"on:mousedown":l,"on:mouseleave":X,"on:mousemove":G,"on:mouseup":p,"on:touchend":hr,"on:touchcancel":UY,"on:keydown":xW,class:Lb,role:"slider","aria-valuenow":nb,"aria-valuetext":function(){return nb()+"%"},
tabindex:0,"aria-label":_.CY("SEEK_SLIDER")},_.z("div",{el:V,class:Jr},_.z(xRg,{progressBarProps:W,config:h,highContrast:function(){return!!h().isInlinePlayback}}),_.z(_.v,{cond:function(){return h().chapterData&&cYw(h().chapterData)},
then:function(){return _.z(cWx,{progressState:W,multiMarkersPlayerBarRenderer:function(){return h().chapterData},
progressBarWidth:function(){return M().width}})},
else:function(){return _.z(k2q,{progressBarProps:W,config:h})}}),_.z(AW6,{progressBarProps:W,
playheadData:E,interpolateDotPosition:function(){return h().position!==2},
hidePlayhead:function(){return h().playheadDotBehavior===1&&!x()}}))),_.z(oRN,{progressBarProps:W,
config:function(){return{activeChapter:f7o(W(),h().chapterData),getProgressBarWidthPx:function(){return C().width},
isShortsPage:!!h().isShortsPage,isInlinePlayer:!!h().isInlinePlayback,useFadeInAnimation:!!h().isInlinePlayback}},
progressBarWidthPx:function(){return M().width},
chapterData:function(){return h().chapterData}}))},"Fe");
_.KpP.idomCompat=!0;Object.assign({},_.D8W(),{setState:function(){},
domMeasurements:{},appApi:_.zhr(),playerApi:void 0,playerContainer:void 0,playerControlContainer:void 0,uxConfig:{}});var F7F;
_.W7$=_.GK(function(){var F,W=(F=_.oV(ovb().playerApi))!=null?F:void 0;F=_.U(_.g$(!1,void 0,"HLFBmb"));var E=F.next().value,h=F.next().value;F=_.U(_.g$(!1,void 0,"lHH9bc"));var d=F.next().value,V=F.next().value;F=_.U(_.g$(!1,void 0,"zsY7yd"));var R=F.next().value,M=F.next().value;F=_.U(_.g$(!1,void 0,"KeHQgc"));var g=F.next().value,t=F.next().value;F=_.U(_.g$(0,void 0,"gLLCj"));var C=F.next().value,B=F.next().value;F=_.U(_.g$(0,void 0,"s3RYkf"));var I=F.next().value,x=F.next().value;F=_.U(_.g$(!1,void 0,
"Dn608e"));var A=F.next().value,X=F.next().value;F=_.U(_.g$(0,void 0,"AnkH1b"));var P=F.next().value,b=F.next().value;F=_.U(_.g$(0,void 0,"QYNL0b"));var l=F.next().value,w=F.next().value;F=_.U(_.g$("",void 0,"Yzw45d"));var G=F.next().value,hr=F.next().value;F=_.U(_.g$(-1,void 0,"iiVI0c"));var p=F.next().value,UY=F.next().value,xW=_.vX(function(){var qw={controlsVisible:E(),isOverlayHidden:d(),shouldWaitToHideControls:R(),isDragging:g(),isHovering:A(),videoDuration:P(),playedTime:l(),videoId:G(),draggedTime:I(),
hoveredTime:C(),playerState:p()};return Object.assign({},_.D8W(),qw,{domMeasurements:{},setState:function(Lb){Lb.controlsVisible!==void 0&&h(Lb.controlsVisible);Lb.isOverlayHidden!==void 0&&V(Lb.isOverlayHidden);Lb.shouldWaitToHideControls!==void 0&&M(Lb.shouldWaitToHideControls);Lb.isDragging!==void 0&&t(Lb.isDragging);Lb.isHovering!==void 0&&X(Lb.isHovering);Lb.draggedTime!==void 0&&x(Lb.draggedTime);Lb.hoveredTime!==void 0&&B(Lb.hoveredTime);Lb.videoDuration!==void 0&&b(Lb.videoDuration);Lb.playedTime!==
void 0&&w(Lb.playedTime);Lb.videoId!==void 0&&hr(Lb.videoId);Lb.playerState!==void 0&&UY(Lb.playerState)},
appApi:_.zhr(),playerApi:W})},void 0,"ZW7y9");
_.$F(function(){W==null||W.addEventListener("onVideoProgress",sar(xW));W==null||W.addEventListener("onVideoDataChange",AYo(xW));W==null||W.addEventListener("onStateChange",x8o(xW))});
_.$p(function(){if(W==null?0:W.isReady())W==null||W.removeEventListener("onVideoProgress",sar(xW)),W==null||W.removeEventListener("onVideoDataChange",AYo(xW)),W==null||W.removeEventListener("onStateChange",x8o(xW))});
return _.z("desktop-shorts-player-controls",null,_.z(F7F,{playerControlsProps:xW}))},"Ge");
F7F=_.GK(function(F){var W=F.playerControlsProps;return _.z("div",{class:"desktopShortsPlayerControlsWizHost"},_.z(_.KpP,{progressBarProps:W,config:function(){return{isShortsPage:!0,hideProgressBar:W().videoDuration<30&&W().playerState!==2&&!W().isDragging,rounded:!0,position:3,unmuteOnSeek:!1,playheadDotBehavior:1,doSeekOnClick:!0}}}))},"He");_.ht(_.S5W);_.Ew8=_.GK(function(F){var W=F.data;return _.z("player-disclosure-view-model",{class:"ytwPlayerDisclosureViewModelHost"},_.z(_.kY,{command:function(){return W().navigationEndpoint},
className:"ytwPlayerDisclosureViewModelEndpoint"},_.z(_.v,{cond:function(){return W().iconName},
then:function(E){return _.z(_.I3,{icon:E})}}),_.z("span",{class:"ytwPlayerDisclosureViewModelText"},function(){return W().text}),_.z(_.v,{cond:function(){return W().showEndChevron},
then:function(){return _.z(_.I3,{icon:"CHEVRON_RIGHT"})}})))},"Ie");var hNN=_.GK(function(F){var W=F.data;var E=F.overlayDensity;F={};return _.z("yt-reel-channel-bar-view-model",{class:"ytReelChannelBarViewModelHost"},_.z(_.a6,{data:function(){return W().decoratedAvatarViewModel}},{decoratedAvatarViewModel:function(h){var d=h.data;
return _.z(_.sc,{data:function(){return(E==null?void 0:E())===1?Object.assign({},d(),{avatar:{avatarViewModel:Object.assign({},_.D(d().avatar,_.Kx),{avatarImageSize:"AVATAR_SIZE_48"})}}):d()}})}}),_.z(_.a6,{data:function(){return W().avatarStackViewModel}},{avatarStackViewModel:function(h){return _.z(_.Lp,{data:h.data})}}),_.z(_.Ab,{className:_.ec("ytReelChannelBarViewModelChannelName",(F.ytReelChannelBarViewModelChannelNameLarge=function(){return(E==null?void 0:E())===1},F)),
text:function(){return W().channelName},
linkInheritColor:!0,userInput:!0}),_.z("div",{class:"ytReelChannelBarViewModelReelSubscribeButton"},_.z(_.a6,{data:function(){return W().subscribeButtonViewModel}},{subscribeButtonViewModel:function(h){var d=h.data;
return _.z(wCa,{data:function(){return(E==null?void 0:E())===1?Object.assign({},d(),{backgroundStyle:"SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_TONAL",buttonStyle:Object.assign({},d().buttonStyle,{buttonSize:"SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_MEDIUM"})}):d()},
isOverlay:!1})},
buttonViewModel:_.rk})),_.z("div",{class:"ytReelChannelBarViewModelReelSponsorButton"},_.z(_.a6,{data:function(){var h,d;return(d=_.D((h=W())==null?void 0:h.sponsorButtonViewModel,wDU))==null?void 0:d.sponsorButton}},{buttonViewModel:function(h){return _.z(_.rk,{data:h.data,
buttonOverrides:function(){return{toggled:!0}}})}})))},"Je");var di$=_.GK(function(F){var W={};return _.z("yt-reel-multi-format-link-view-model",{class:_.ec("ytReelMultiFormatLinkViewModelHost",(W.ytReelMultiFormatLinkViewModelHostTall=!0,W.ytReelMultiFormatLinkViewModelHostLarge=function(){var E;return((E=F.overlayDensity)==null?void 0:E.call(F))===1},W))},_.z(_.kY,{ariaLabel:function(){return F.data().a11yLabel},
className:"ytReelMultiFormatLinkViewModelEndpoint",command:function(){return _.He(F.data().command)},
dangerousStopPropagation:!1},_.z("h3",{class:"ytReelMultiFormatLinkViewModelLink"},_.z(_.v,{cond:function(){return F.data().icon},
then:function(E){return _.z(_.T4,{data:E,className:"ytReelMultiFormatLinkViewModelIcon",alt:""})}}),_.z(_.Ab,{text:function(){return F.data().title},
className:"ytReelMultiFormatLinkViewModelTitle"}))))},"Ke");
di$.idomCompat=!0;var NU$=_.GK(function(F){var W=F.data;var E=F.overlayDensity;var h=_.uf();F=_.U(_.g$(!1,void 0,"xDqzhe"));var d=F.next().value,V=F.next().value;F=_.U(_.g$(!1,void 0,"LI9CFd"));var R=F.next().value,M=F.next().value,g=function(){return W().isMultiLineSa},t=_.D1(lLe,function(){var w,G;
return(G=(w=W().toggleableContent)==null?void 0:w.entityKey)!=null?G:""}),C=function(){var w,G,hr;
return(hr=W().toggleableContent)!=null&&hr.entityKey?(G=(w=t())==null?void 0:w.value)!=null?G:!1:!1},B=function(){var w,G,hr,p,UY,xW,qw,Lb,jk,Jr,nb;
return W().toggleableContent?C()?(w=W().toggleableContent)==null?void 0:w.toggledData:(G=W().toggleableContent)==null?void 0:G.untoggledData:{primaryText:(Lb=(hr=W().defaultContent)==null?void 0:hr.primaryText)!=null?Lb:W().text,secondaryText:(p=W().defaultContent)==null?void 0:p.secondaryText,onTapCommand:(jk=(UY=W().defaultContent)==null?void 0:UY.onTapCommand)!=null?jk:W().onTapCommand,icon:(Jr=(xW=W().defaultContent)==null?void 0:xW.icon)!=null?Jr:W().icon,image:(nb=(qw=W().defaultContent)==null?
void 0:qw.image)!=null?nb:W().image}},I=function(){return g()?W().trailingTapTarget:void 0};
F=function(w,G){return function(){return d()?G:w}};
var x={leadingSection:F("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingSection"),secondaryText:F("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelDynamicHostExpandedSecondary"),trailingSection:F("ytShortsSuggestedActionViewModelDynamicHostCollapsedTrailingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedTrailingSection"),leadingIcon:F("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon",
"ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon")};F={};F=_.ec((F.ytShortsSuggestedActionViewModelStaticHost=function(){return!g()},F.ytShortsSuggestedActionViewModelDynamicHost=g,F.ytShortsSuggestedActionViewModelDynamicHostShown=function(){return g()&&R()},F.ytShortsSuggestedActionViewModelDynamicHostHidden=function(){return g()&&!R()},F));
_.Xk(function(){if(g()){var w=0,G;if((G=W().animationParams)==null?0:G.shouldExpand){var hr,p;w=((p=(hr=W().animationParams)==null?void 0:hr.expansionDelaySecs)!=null?p:0)*1E3}var UY,xW=((UY=W().animationParams)==null?0:UY.shouldExpand)?setTimeout(function(){V(!0)},w):void 0,qw,Lb;
w=((qw=W().animationParams)==null?0:qw.visibilityDelaySecs)?((Lb=W().animationParams)==null?NaN:Lb.visibilityDelaySecs)*1E3:0;var jk=setTimeout(function(){M(!0)},w);
_.$p(function(){xW&&clearTimeout(xW);clearTimeout(jk)})}});
var A=function(w){_.fK(w,Object.assign({},{form:{element:h.value}}))},X=_.tb(function(){var w,G=(w=B())==null?void 0:w.onTapCommand;
G&&A(G)}),P=_.tb(function(){var w,G;
if(w=(G=I())==null?void 0:G.onTapCommand)return A(w),!1}),b=_.vr({"vertical-align":"bottom",
"border-radius":function(){var w;return g()?((w=W().defaultContent)==null?0:w.isCircleImage)?"50%":"4px":"0px"},
width:function(){var w,G,hr;return g()&&((w=W().defaultContent)==null?0:w.imageSize)?((hr=(G=W().defaultContent)==null?void 0:G.imageSize)!=null?hr:24)+"px":null},
height:function(){var w,G,hr;return g()&&((w=W().defaultContent)==null?0:w.imageSize)?((hr=(G=W().defaultContent)==null?void 0:G.imageSize)!=null?hr:24)+"px":null}}),l={};
return _.z("yt-shorts-suggested-action-view-model",{class:F,el:h},_.z("div",{style:"display: flex; flex-direction: row; align-items: center;"},_.z("button",{class:_.ec(function(){return g()?"ytShortsSuggestedActionViewModelDynamicHostContainer":"ytShortsSuggestedActionViewModelStaticHostContainer"},function(){var w;
return(w=W().useFullRoundedBorder)!=null&&w?"ytShortsSuggestedActionViewModelDynamicHostUseRoundBorder":!I()&&g()?"ytShortsSuggestedActionViewModelDynamicHostRoundAllCorners":g()?"ytShortsSuggestedActionViewModelDynamicHostOnlyRoundLeadingCorners":""},function(){var w;
return(w=W().disableFixedHeight)!=null&&w?"ytShortsSuggestedActionViewModelDynamicHostFixedHeightAuto":""},(l.ytShortsSuggestedActionViewModelExpansiveContainer=function(){return(E==null?void 0:E())===1},l)),
"on:click":X},_.z(_.xY,{model:{color:4}}),_.z("div",{class:_.ec(function(){return g()?x.leadingSection():"ytShortsSuggestedActionViewModelStaticHostLeadingSection"})},_.z(_.v,{cond:function(){var w;
return(w=B())==null?void 0:w.image},
then:function(w){return _.z(_.T4,{data:w,alt:"",className:function(){return g()?"ytShortsSuggestedActionViewModelDynamicHostLeadingImage":"ytShortsSuggestedActionViewModelStaticHostLeadingImage"},
contentMode:"CONTENT_MODE_SCALE_TO_FILL",preserveHeight:!0,preserveWidth:!0,useWidth:!0,style:b})}}),_.z(_.v,{cond:function(){var w,G;
return(w=B())==null?void 0:(G=w.icon)==null?void 0:G.iconType},
then:function(w){return _.z(_.I3,{icon:w,active:C,className:function(){return g()?d()?"ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon":"ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon":"ytShortsSuggestedActionViewModelStaticHostLeadingIcon"}})}})),_.z("div",{class:"ytShortsSuggestedActionViewModelStaticHostTextSection"},_.z(_.v,{cond:function(){var w;
return(w=B())==null?void 0:w.primaryText},
then:function(w){return _.z("div",{class:"ytShortsSuggestedActionViewModelStaticHostPrimaryText"},_.z(_.Ab,{text:w}))}}),_.z(_.v,{cond:function(){var w;
return(w=B())==null?void 0:w.secondaryText},
then:function(w){return _.z("div",{class:x.secondaryText},_.z(_.Ab,{text:w}))}}))),_.z(_.v,{cond:I,
then:function(w){return _.z("div",{class:x.trailingSection,"aria-label":function(){var G;return(G=w().a11yLabel)!=null?G:""},
"on:click":P,role:"button",tabindex:0},_.z(_.xY,{model:{color:4}}),_.z(_.I3,{icon:"CHEVRON_DOWN",className:"ytShortsSuggestedActionViewModelDynamicHostTrailingIcon"}))}})))},"Le");var V9P=_.GK(function(F){var W=F.data;var E=F.overlayDensity;var h=_.uf();F=_.tb(function(R){if(_.XAr(_.YV(R),h.value,["A".toString()]))return!1;(R=W().truncatedTextOnTapCommand)&&_.fK(R);return!1});
var d={},V={};return _.z("yt-shorts-video-title-view-model",{el:h,class:_.ec("ytShortsVideoTitleViewModelHost",(d.ytShortsVideoTitleViewModelHostClickable=function(){return!!W().truncatedTextOnTapCommand},d)),
"on:click":F},_.z("h2",{class:_.ec("ytShortsVideoTitleViewModelShortsVideoTitle",(V.ytShortsVideoTitleViewModelShortsVideoTitleLarge=function(){return(E==null?void 0:E())===1},V))},_.z(_.Ab,{text:function(){return W().text},
linkInheritColor:!0,noEndpoints:!1,stopPropagation:!0,userInput:!0})))},"Me");_.Uiq=_.GK(function(F){var W=F.data;var E=F.overlayDensity;return _.z("yt-reel-metapanel-view-model",{class:"ytReelMetapanelViewModelHost"},_.z(_.a6,{data:function(){return W().metadataItems}},{badgeViewModel:function(h){return _.z("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.z(_.pp,{data:h.data}))},
playerDisclosureViewModel:function(h){return _.z("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.z(_.Ew8,{data:h.data}))},
shortsSuggestedActionViewModel:function(h){return _.z("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.z(NU$,{data:h.data,overlayDensity:E}))},
reelChannelBarViewModel:function(h){return _.z("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.z(hNN,{data:h.data,overlayDensity:E}))},
reelMultiFormatLinkViewModel:function(h){return _.z("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.z(di$,{data:h.data,overlayDensity:E}))},
shortsVideoTitleViewModel:function(h){return _.z("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.z(V9P,{data:h.data,overlayDensity:E}))},
reelSoundMetadataViewModel:function(h){return _.z("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.z(_.tH6,{data:h.data,overlayDensity:E}))}}))},"Ne");var RN8=_.GK(function(F){var W=_.o4(F,{size:"M",disabled:!1,tooltipText:"",onTap:void 0}),E=W.size,h=W.onTap,d=W.disabled,V=W.tooltipText;return _.z("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.z(Vg,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:E(),disabled:d(),tooltipText:V(),onTap:h}},
iconName:F.iconType}))},"Oe"),eNN=_.GK(function(F){function W(C){C.stopPropagation();
C.code==="ArrowUp"?(C.preventDefault(),F$o(M.value)):C.code==="ArrowDown"?(C.preventDefault(),W$o(M.value)):C.code==="KeyM"?m8b():(C.code==="KeyK"||C.code==="Space")&&KaW(g())}
var E=_.o4(F,{previousButtonDisabled:!1,nextButtonDisabled:!1,data:void 0,playabilityStatus:void 0,previewThumbnail:void 0});F=E.previousButtonDisabled;var h=E.nextButtonDisabled,d=E.data,V=E.playabilityStatus,R=E.previewThumbnail,M=_.uf(),g=_.Jb(_.sHe),t;_.$F(function(){(t=_.qp(M.value))&&t.addEventListener("keydown",W)});
_.$p(function(){var C;(C=t)==null||C.removeEventListener("keydown",W)});
E=function(){var C,B,I;return(C=d())==null?void 0:(B=C.reelPlayerOverlayRenderer)==null?void 0:(I=B.likeButton)==null?void 0:I.likeButtonRenderer};
return _.z("ytd-shorts-miniplayer-overlay",{el:M,class:"ytdShortsMiniplayerOverlayHost"},_.z("div",{class:"ytdShortsMiniplayerOverlayThumbnailBackground",style:_.vr({"background-image":function(){var C=R();return C?'url("'+_.KK(C.thumbnails)+'")':""}})}),_.z("div",{class:"ytdShortsMiniplayerOverlayOverlay"},_.z("div",{class:"ytdShortsMiniplayerOverlayTopButtons"},_.z(RN8,{iconType:function(){var C=g();
return C===2||C===-1||C===5?"PLAY_ARROW":"PAUSE_FILLED"},
size:"L",onTap:function(){KaW(g())},
tooltipText:function(){var C=g();return C===1||C===3?_.CY("PLAYER_LABEL_PAUSE"):_.CY("PLAYER_LABEL_PLAY")}}),_.z(_.S5W,null)),_.z("div",{class:"ytdShortsMiniplayerOverlayActionButtons"},_.z(RN8,{iconType:"YOUTUBE_SHORTS_ARROW_UP",
disabled:F,onTap:function(){F$o(M.value)},
tooltipText:_.CY("PREVIOUS_VIDEO_LABEL")}),_.z(RN8,{iconType:"YOUTUBE_SHORTS_ARROW_DOWN",disabled:h,onTap:function(){W$o(M.value)},
tooltipText:_.CY("NEXT_VIDEO_LABEL")}),_.c("web_shorts_pip_like_button")?_.z("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.z(jET,{buttonTooltipPosition:"left",data:E,overrides:{iconPosition:"icon-with-label",size:"M",style:"overlay-dark",type:"tonal"},textTransform:"none",useShortsIcon:!0,vertical:!0})):null),_.z("div",{class:"ytdShortsMiniplayerOverlayVideoMetaData"},_.z(_.v,{cond:function(){var C,B;return _.D((C=d())==null?void 0:(B=C.reelPlayerOverlayRenderer)==null?void 0:B.metapanel,
_.Tpz)},
then:function(C){return _.z("div",{class:_.ec("ytdShortsMiniplayerOverlayInteractive")},_.z(_.Uiq,{data:C}))}})),_.z("div",{class:_.ec("ytdShortsMiniplayerOverlayPlayerControls","ytdShortsMiniplayerOverlayInteractive"),
hidden:function(){var C;return!((C=d())==null||!C.adsOverlay)||V()&&!g1S(V())}},_.z("div",{class:"ytdShortsMiniplayerOverlayPlayerControlsInner"},_.z(_.W7$,null)))),_.z(_.v,{cond:function(){var C=d(),B,I;
C=_.D(C==null?void 0:(B=C.adsOverlay)==null?void 0:(I=B.fulfillmentContent)==null?void 0:I.fulfilledLayout,AfX);return _.D(C==null?void 0:C.renderingContent,Zcc)},
then:function(C){return _.z("div",{class:"ytdShortsMiniplayerOverlayAdsOverlay"},_.z(i5p,{data:C}))}}))},"Pe");var ENo=_.GK(function(){var F=_.U(_.g$(new _.Rl(NaN,NaN),void 0,"HSMFk")),W=F.next().value,E=F.next().value;F=_.U(_.g$(!1,void 0,"uaAxwf"));var h=F.next().value,d=F.next().value,V=_.U(_.g$(!1,void 0,"nVSwef"));F=V.next().value;var R=V.next().value,M=_.WZ().resolve(_.GF).miniplayerPropSignalMap[0],g=M.data,t=M.shortsData,C=M.nextButtonDisabled,B=M.shortsPreviewThumbnail,I=M.previousButtonDisabled,x=M.externalPlaylistData;V=M.toastData;var A=M.playabilityStatus,X=M.isDisabled,P=M.playerVe,b=M.closeVe;
M=_.Jb(_.ka);_.w3("yt-pip-window-resized",function(hr){E(hr)});
_.w3("yt-activate-pip-miniplayer",function(){return _.e(function(hr){R(!0);_.gG(hr)})});
var l=function(){var hr;return!((hr=x())==null||!hr.contents)&&h()},w=function(){var hr=W(),p=!!g(),UY=l();
hr=hr.clone();p&&(hr.height-=76);UY&&(hr.height-=285);return hr},G=function(){d(!h())};
_.q6(function(){var hr=P(),p=_.JR(11),UY=_.Pf(11);p&&UY&&hr&&(_.y7(p,UY,hr),UY=b())&&(_.j7(p,hr,[UY]),_.rW(p,[UY]))});
return _.z("ytd-pip-container",{class:"ytdPipContainerHost"},_.z(_.v,{cond:F,then:function(){return _.z(_.Bux,{isDisabled:X,playabilityStatus:A,size:w})}}),_.z(_.v,{cond:g,
then:function(){return _.z(_.tzN,{data:g,expanded:h,onExpandClick:G,playlistData:x})}}),_.z(_.v,{cond:l,
then:function(){return _.z("div",{class:"ytdPipContainerPlaylistPanel"},_.z(_.nl_,{data:x,hideHeaderText:!0,withinMiniplayer:!0}))}}),_.z(_.v,{cond:M,
then:function(){return _.z(eNN,{data:t,nextButtonDisabled:C,previousButtonDisabled:I,playabilityStatus:A,previewThumbnail:B})}}),_.z("div",{class:"ytdPipContainerToast"},_.z(_.vRq,{toastData:V})))},"Qe");var LZ=function(F,W){var E=this;this.pipController=F;this.JSC$16392_clientRoot=W;this.active=!1;this.player=this.playerElement=this.miniplayerFetchRequest=null;this.miniplayerPropSignalMap=Rhr();this.watchPipEnabled=_.c("web_watch_pip");this.shortsPipEnabled=_.c("web_shorts_pip");this.JSC$16392_watchWhileEnabled=_.c("kevlar_watch_while_v2");this.miniplayerServiceActionMap={"yt-downloaded-video-deleted":this.onDownloadedVideoDeleted.bind(this),"yt-show-miniplayer-command":this.onShowMiniplayerCommand.bind(this)};
this.watchPipMode=this.shortsPipMode=this.watchWhileMode=this.miniplayerToPipMode=this.userDeactivatedWatchWhile=this.isReadyToResume=this.hasPlaylistData=this.isSingleOptionSurveyActive=!1;_.kQ(_.uC(),_.DCe,function(h){E.isSingleOptionSurveyActive=h});
this.JSC$16392_onPlayerPlayVideo=this.JSC$16392_onPlayerPlayVideo.bind(this);this.onPlayerCloseMiniplayer=this.onPlayerCloseMiniplayer.bind(this);this.onPlayerExpandMiniplayer=this.onPlayerExpandMiniplayer.bind(this);this.onPlayerStateChange=this.onPlayerStateChange.bind(this);this.handleMediaSessionPipActivation=this.handleMediaSessionPipActivation.bind(this);_.G5(_.o_.getInstance(),this.miniplayerServiceActionMap,this.JSC$16392_clientRoot);F.pictureInPictureSupported()&&_.Pc("genericClientExperimentEvent",
{eventType:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED"})},Nx_,cyT,Ci8,DiK,xi6,DkO;
LZ.prototype.handleMediaSessionPipActivation=function(){var F=this,W;return _.e(function(E){_.DT().mediaSessionPipActivation=!0;W=_.WZ().resolve(_.KQ);return W.isOnWatch()&&F.watchPipEnabled?(_.DT().watchPipActivation=!0,_.M98(F,W.data),E.jumpTo(0)):W.isOnShorts()&&F.shortsPipEnabled?(_.DT().shortsPipActivation=!0,_.gw$(F),E.jumpTo(0)):F.isMiniplayerActive()&&F.watchPipEnabled&&!F.watchWhileMode?_.Q(E,QIg(F),0):E.jumpTo(0)})};
var QIg=function(F){var W,E,h,d;return _.e(function(V){if(V.nextAddress==1)return W=!F.miniplayerToPipMode,E=F.playerElement,h=F.miniplayerData,d=F.watchResponse,_.Q(V,F.deactivate(),2);if(V.nextAddress!=3)return W?(_.DT().mediaSessionPipActivation=!0,_.DT().watchPipActivation=!0):_.DT().miniplayerButtonActivation=!0,_.Q(V,F.activate(E,h,d),3);F.miniplayerToPipMode=W;_.gG(V)})};
LZ.prototype.onDownloadedVideoDeleted=function(F){var W,E=_.D((W=this.miniplayerData)==null?void 0:W.watchEndpoint,_.GM),h,d;E&&((h=this.watchResponse)==null?void 0:(d=h.playerResponse)==null?void 0:d.offlineState)!==void 0&&(W=E.videoId)&&F&&W===F&&this.close()};
LZ.prototype.onShowMiniplayerCommand=function(F){var W=this,E,h,d,V,R,M,g,t,C,B,I,x,A;return _.e(function(X){switch(X.nextAddress){case 1:return E=_.D(F,faa),d=(h=E)==null?void 0:h.miniplayerCommand,V=_.D(d,_.GM),d&&V&&!W.active?_.Q(X,_.Xb.getInstance(),2):X.return();case 2:return R=X.yieldResult,_.Q(X,(M=R)==null?void 0:M.get("yt-miniplayer-shown-video-id"),3);case 3:g=X.yieldResult;t=V.videoId;if(!t||g===t)return X.return();C=_.WZ().resolve(_.KQ);if(C.isOnWatch())return _.OB(Error("Cj")),X.return();
B={channelItem:{externalId:btoa(t)}};W.readyToResumeVe=_.LQ(121253,void 0,void 0,B);_.DT().showMiniplayerCommandActivation=!0;return _.Q(X,_.xkT(W,d,!0),4);case 4:return W.active?(_.q9(W,{readyToResumeVe:W.readyToResumeVe,continueWatching:!0,premiumBranding:!((I=E)==null||!I.showPremiumBranding)}),W.isReadyToResume=!0):_.q9(W,{continueWatching:!0,premiumBranding:!((x=E)==null||!x.showPremiumBranding)}),_.c("ytd_miniplayer_to_wiz")&&_.q9(W,{isReadyToResume:!0}),_.Q(X,(A=R)==null?void 0:A.set("yt-miniplayer-shown-video-id",
V.videoId),5);case 5:W.readyToResumeVe=void 0,_.gG(X)}})};
LZ.prototype.init=function(F){this.miniplayerEl?_.OB(new _.xC("MiniplayerService already initialized.")):this.miniplayerEl=F};
LZ.prototype.isInitialized=function(){var F=!!this.miniplayerEl;F||_.OB(new _.xC("MiniplayerService used before initialized."));return F};
_.M98=function(F,W){if(F.isInitialized()){var E=_.gvY(W.response,W.playerResponse),h=_.WZ().resolve(_.KQ).getPlayerFromWatch();_.DT().currentEndpoint=E.watchEndpoint||null;F.activate(h,E,W)}};
_.gw$=function(F){if(F.isInitialized()){var W=_.WZ().resolve(_.KQ).getPlayerFromShorts();F.activate(W)}};
Nx_=function(F,W){var E;(E=!F.isInitialized())||(E=_.WZ().resolve(_.KQ).isOnWatch()&&F.watchPipMode,E=!(F.isMiniplayerActive()&&(_.DT().userActivation||_.DT().lockupActivation||E)));if(E)return!1;zN8(F,W)?_.kX(F):DkO(F,W);return F.watchPipMode?!_.WZ().resolve(_.KQ).isOnWatch():!0};
LZ.prototype.isMiniplayerActive=function(){return this.active};
var zN8=function(F,W){var E;W=(E=_.D(W,_.GM))==null?void 0:E.videoId;var h,d;F=(d=_.D((h=F.miniplayerData)==null?void 0:h.watchEndpoint,_.GM))==null?void 0:d.videoId;return W!=null&&W===F};
LZ.prototype.collapse=function(){this.isInitialized()&&(this.backgroundPageData?_.hF(this.miniplayerEl,"yt-navigate-cache",{url:this.backgroundPageData.url,endpoint:this.backgroundPageData.endpoint,data:this.backgroundPageData}):_.dW(this.miniplayerEl,"yt-navigate-home-action"))};
_.xkT=function(F,W,E,h){E=E===void 0?!1:E;var d,V,R;return _.e(function(M){switch(M.nextAddress){case 1:if(F.active){M.jumpTo(2);break}d=_.WZ().resolve(_.KQ);if(R=(V=F.playerElement)!=null?V:d.getPlayerFromWatch()){M.jumpTo(3);break}return _.Q(M,_.WZ().resolve(_.Va),4);case 4:R=d.getPlayerFromWatch();case 3:if(!R){_.OB(Error("Ej"));M.jumpTo(2);break}return _.Q(M,F.activate(R,h),2);case 2:return F.active?_.Q(M,DkO(F,W,E),0):M.return()}})};
LZ.prototype.activate=function(F,W,E){var h=this,d,V,R,M,g,t,C,B,I;return _.e(function(x){switch(x.nextAddress){case 1:if(!h.isInitialized())return x.return();if(!F)return _.OB(Error("Ej")),x.return();if(_.lN_()||h.isMiniplayerActive())var A=!0;else A=_.DT().watchPipActivation||_.DT().watchWhileActivation,_.WZ().resolve(_.KQ).isOnWatch()&&!A?(_.OB(new _.xC("miniplayer activated on watch page")),A=!0):A=_.DT().watchWhileActivation?h.userDeactivatedWatchWhile||!!document.pictureInPictureElement||Gor():
!1;if(A)return bOi(),x.return();d=_.DT().mediaSessionPipActivation;V=_.DT().shortsPipActivation;R=_.DT().watchPipActivation;g=(M=_.DT().watchWhileActivation)||R;t=R||V;if(!h.pictureInPictureEnabled()||!t){x.jumpTo(2);break}return _.Q(x,t96(h,d),3);case 3:if(!x.yieldResult)return _.OB(Error("Dj")),bOi(),x.return();case 2:return h.setActive(!0),h.watchResponse=E,h.playerElement=F,h.updateMiniplayerData(W),_.Q(x,Ci8(h,F),4);case 4:if(!h.active)return _.OB(new _.xC("miniplayer deactivated during activation")),
h.removePlayerListeners(),x.return();A=_.WZ().resolve(_.yH);A.addEventListener("yt-navigate",_.UO(h,h.onPlaylistNavigate));A.addEventListener("yt-playlist-data-updated",_.UO(h,h.JSC$16392_onPlaylistDataUpdated));h.JSC$16392_onPlaylistDataUpdated();bOi();h.JSC$16392_watchWhileEnabled&&_.BUw(h,M);h.pictureInPictureEnabled()&&h.shortsPipEnabled&&(h.shortsPipMode=V,_.uC().dispatch(ALi(h.shortsPipMode)));h.pictureInPictureEnabled()&&h.watchPipEnabled&&(h.watchPipMode=R,_.wdS(h.handleMediaSessionPipActivation));
h.player&&(C=h.player.getPlayerState(),B=C===1,_.uC().dispatch(JLe(C)),_.Nc(h.miniplayerEl,"yt-miniplayer-play-state-changed",[B]),_.DT().isVideoPlaying=B);_.Nc(h.miniplayerEl,"yt-miniplayer-endpoint-changed");vw6(h);_.IdK(h);return h.shortsPipMode||h.watchPipMode?_.Q(x,_.V7(h.miniplayerEl,"yt-activate-pip-miniplayer"),6):_.c("ytd_miniplayer_to_wiz")?_.Q(x,_.V7(h.miniplayerEl,"yt-activate-miniplayer",[g]),6):_.Q(x,_.V7(h.miniplayerEl,"yt-activate-miniplayer-action",[F,g]),6);case 6:cyT(h),DiK(h,!0),
(I=h.getPlayerElement())==null||I.focusOnPlayer(),_.gG(x)}})};
LZ.prototype.updateMiniplayerData=function(F){this.miniplayerData=F;_.q9(this,{data:F})};
_.IdK=function(F){var W,E,h=((W=F.miniplayerData)==null?void 0:(E=W.miniplayerRenderer)==null?void 0:E.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY";W=F.watchWhileMode||F.watchPipMode?h&&!_.WZ().resolve(_.KQ).isOnWatch():h;_.q9(F,{isDisabled:W});var d,V;E=_.D((d=F.miniplayerData)==null?void 0:(V=d.miniplayerRenderer)==null?void 0:V.minimizedEndpoint,_.J7);W&&E&&_.WZ().resolve(_.L1).openSheet({openPopupActionCommand:{openPopupAction:E}},F.miniplayerEl)};
cyT=function(F){if(F.watchResponse&&!xi6(F)){var W,E=(W=F.watchResponse.playerResponse)==null?void 0:W.trackingParams;E&&(_.q9(F,{expandVe:_.LQ(35989),closeVe:_.LQ(34699),readyToResumeCloseVe:_.LQ(131070),repositionVe:_.LQ(226204),resizeVe:_.LQ(226205)}),_.q9(F,{playerVe:_.ve(E)}))}};
Ci8=function(F,W){return _.e(function(E){if(E.nextAddress==1)return W.preparePlayer(),_.Q(E,W.getPlayerPromise(),2);F.player=E.yieldResult;F.player&&(F.player.addEventListener("onPlayVideo",F.JSC$16392_onPlayerPlayVideo),F.player.addEventListener("onCloseMiniplayer",F.onPlayerCloseMiniplayer),F.player.addEventListener("onExpandMiniplayer",F.onPlayerExpandMiniplayer),F.player.addEventListener("onStateChange",F.onPlayerStateChange));_.gG(E)})};
_.N=LZ.prototype;_.N.JSC$16392_onPlayerPlayVideo=function(F){var W=F.sessionData&&"autonav"in F.sessionData,E;F.sessionData&&F.sessionData.itct&&(E=F.sessionData.itct);var h=F.watchEndpoint;W=h&&W?_.o_e(h,E):_.FD(F.videoId,F.listId||void 0,E);F.sessionData&&_.Sr(_.D(W.commandMetadata,_.m1).url,F.sessionData);DkO(this,W)};
_.N.onPlayerExpandMiniplayer=function(){_.kX(this)};
_.N.onPlayerCloseMiniplayer=function(){this.watchWhileMode&&(this.userDeactivatedWatchWhile=!0);this.close(this.watchWhileMode)};
_.N.onPlayerStateChange=function(){if(this.player){var F=this.player.getPlayerState(),W=F===1;_.uC().dispatch(JLe(F));_.uC().dispatch(_.fjp(F));_.Nc(this.miniplayerEl,"yt-miniplayer-play-state-changed",[W]);_.DT().isVideoPlaying=W;if(F===0){W=!_.EX.getInstance().isAutoplaySetExplicitly();var E,h,d,V,R,M,g=(E=this.watchResponse.response)==null?void 0:(h=E.contents)==null?void 0:(d=h.twoColumnWatchNextResults)==null?void 0:(V=d.autoplay)==null?void 0:(R=V.autoplay)==null?void 0:(M=R.autoplayExplicitChoiceDialogRenderer)==
null?void 0:M.confirmDialogRenderer;W&&g&&this.player.setAutonavState(1)}F===0&&this.watchWhileMode&&this.deactivate()}};
_.N.onPlaylistNavigate=function(F,W){var E=this,h,d,V,R,M,g,t;return _.e(function(C){if(C.nextAddress==1){if(!_.D(W.endpoint,_.GM))return C.return();_.DT().currentEndpoint=W.endpoint;_.Nc(E.miniplayerEl,"yt-miniplayer-endpoint-changed");if(_.WZ().resolve(_.KQ).isOnWatch()&&(E.watchWhileMode||E.watchPipMode))return C.return();F.stopPropagation();(V=(d=_.D((h=W.endpoint)==null?void 0:h.commandMetadata,_.m1))==null?void 0:d.url)&&W.tempData&&!_.xd.isEmpty(W.tempData)&&_.Sr(V,W.tempData);R={clientParams:{miniplayer:!0,
autoSaveToQueue:!1}};M=new bpu(function(){return E.getPlayerElement()},R,{layer:E.getScreenLayer()});
g=function(B){M.processChunk({endpoint:W.endpoint,data:B})};
ky$(E);E.miniplayerFetchRequest=AyT(E,W.endpoint,g);_.Nl(C,2);return _.Q(C,E.miniplayerFetchRequest,4)}if(C.nextAddress!=2)return t=C.yieldResult,sI6(E,t),_.id(C,0);_.Ml(C);_.gG(C)})};
_.N.JSC$16392_onPlaylistDataUpdated=function(){var F=_.WZ().resolve(_.yH).getPlaylistData();this.hasPlaylistData=!!F;_.q9(this,{externalPlaylistData:F||{}})};
_.N.close=function(F){if(this.isInitialized())if(F){if(!((this.watchWhileMode||this.watchPipMode)&&_.WZ().resolve(_.KQ).isOnWatch()||this.shortsPipMode)){var W;(W=this.getPlayerElement())==null||W.stop()}this.deactivate()}else _.o0().closeMiniplayer(this.miniplayerEl)};
_.N.deactivate=function(F){var W=this,E,h,d,V;return _.e(function(R){if(R.nextAddress==1){if(!W.isInitialized()||!W.active)return R.return();W.setActive(!1);ky$(W);(E=!!F&&zN8(W,F))&&W.isSingleOptionSurveyActive&&_.dW(W.miniplayerEl,"yt-show-watch-page-survey",[W.isSingleOptionSurveyActive]);return _.Q(R,L7P(W),2)}if(R.nextAddress!=3){DiK(W,!1);W.isReadyToResume=!1;W.watchResponse=void 0;W.updateMiniplayerData(void 0);W.shortsPipMode&&(W.shortsPipMode=!1,_.uC().dispatch(ALi(W.shortsPipMode)),wGu(W.pipController),
(h=W.player)==null||h.setInternalSize(NaN,NaN));W.watchPipMode&&(W.watchPipMode=!1,wGu(W.pipController));(d=W.watchWhileMode)&&_.BUw(W,!1);W.removePlayerListeners();var M=_.WZ().resolve(_.yH);M.removeEventListener("yt-navigate",_.UO(W,W.onPlaylistNavigate));M.removeEventListener("yt-playlist-data-updated",_.UO(W,W.JSC$16392_onPlaylistDataUpdated));_.DT().currentEndpoint=null;_.Nc(W.miniplayerEl,"yt-miniplayer-endpoint-changed");W.playerElement=null;bOi();return W.shortsPipMode||W.watchPipMode?R.jumpTo(3):
_.Q(R,_.V7(W.miniplayerEl,_.c("ytd_miniplayer_to_wiz")?"yt-deactivate-miniplayer":"yt-deactivate-miniplayer-action",[E,d]),3)}(V=W.player)==null||V.setInternalSize(NaN,NaN);W.player=null;_.gG(R)})};
var L7P=function(F){var W;return _.e(function(E){W=_.WZ().resolve(_.KQ);return F.shortsPipMode?_.Q(E,W.movePlayerToShorts(F.playerElement),0):_.Q(E,W.movePlayerToWatch(F.playerElement),0)})};
LZ.prototype.removePlayerListeners=function(){this.player&&(this.player.removeEventListener("onPlayVideo",this.JSC$16392_onPlayerPlayVideo),this.player.removeEventListener("onCloseMiniplayer",this.onPlayerCloseMiniplayer),this.player.removeEventListener("onExpandMiniplayer",this.onPlayerExpandMiniplayer),this.player.removeEventListener("onStateChange",this.onPlayerStateChange))};
LZ.prototype.setActive=function(F){this.active=F;this.isSingleOptionSurveyActive?_.dW(this.miniplayerEl,"yt-close-popup-action",["ytd-single-option-survey-renderer"]):_.dW(this.miniplayerEl,"yt-close-popup-action",["ytd-survey-follow-up-renderer"]);_.uC().dispatch(_.dR({type:"SET_MINIPLAYER_IS_ACTIVE",payload:this.active}))};
_.BUw=function(F,W){F.watchWhileMode=W;_.q9(F,{watchWhile:W})};
DiK=function(F,W){if(!xi6(F))if(F.shortsPipMode||F.watchPipMode){var E;(E=F.player)==null||E.setDocumentPictureInPicture(W)}else{var h;(h=F.player)==null||h.setMinimized(W)}};
xi6=function(F){return F.watchWhileMode&&_.c("kevlar_watch_while_counterfactual")};
_.kX=function(F){var W;return _.e(function(E){switch(E.nextAddress){case 1:if(!F.isInitialized())return E.return();_.Nl(E,2);return _.Q(E,F.miniplayerFetchRequest,4);case 4:_.id(E,3);break;case 2:_.Ml(E);case 3:F.watchResponse&&F.miniplayerData&&F.miniplayerData.watchEndpoint?(W={url:F.watchResponse.url,endpoint:F.miniplayerData.watchEndpoint,data:F.watchResponse,miniplayer:!0},_.hF(F.miniplayerEl,"yt-navigate-cache",W)):F.miniplayerData&&F.miniplayerData.watchEndpoint&&_.hF(F.miniplayerEl,"yt-navigate",
{endpoint:F.miniplayerData.watchEndpoint}),_.gG(E)}})};
DkO=function(F,W,E){var h,d,V,R;return _.e(function(M){if(M.nextAddress==1){if(zN8(F,W))return M.return();_.DT().currentEndpoint=W;_.Nc(F.miniplayerEl,"yt-miniplayer-endpoint-changed");_.Nc(F.miniplayerEl,"yt-miniplayer-play-state-changed",[!1]);_.DT().isVideoPlaying=!1;h={clientParams:{miniplayer:!0,autoSaveToQueue:!E}};d=new bpu(function(){return F.getPlayerElement()},h,{layer:F.getScreenLayer(),
parentLayer:0},void 0,F.readyToResumeVe);V=function(g){var t,C,B=Object.assign({},(t=g.playerResponse)==null?void 0:(C=t.playerConfig)==null?void 0:C.playbackStartConfig,{startPaused:!0}),I;E&&((I=g.playerResponse)==null?0:I.playerConfig)&&(g.playerResponse.playerConfig.playbackStartConfig=B);d.processChunk({endpoint:W,data:g})};
ky$(F);F.miniplayerFetchRequest=AyT(F,W,V);_.Nl(M,2);return _.Q(M,F.miniplayerFetchRequest,4)}if(M.nextAddress!=2)return R=M.yieldResult,sI6(F,R),_.id(M,0);_.Ml(M);_.gG(M)})};
LZ.prototype.getScreenLayer=function(){return this.shortsPipMode||this.watchPipMode?11:3};
var ky$=function(F){F.miniplayerFetchRequest&&(F.miniplayerFetchRequest.cancel&&F.miniplayerFetchRequest.cancel("Active request obsolete"),F.miniplayerFetchRequest=null)},AyT=function(F,W,E){var h=_.e8.instance,d,V=(d=_.D(W.commandMetadata,_.m1))==null?void 0:d.url,R;
d=!V||_.c("disable_miniplayer_tempdata")?{}:(R=emY(V))!=null?R:{};return uv(h,W,d,window.location.href,"watch",function(M,g){E(g)},function(M){return M!==F.miniplayerFetchRequest})},sI6=function(F,W){var E;
_.e(function(h){if(!W)return h.return();F.watchResponse=W;cyT(F);vw6(F);E=_.gvY(W.response,W.playerResponse);if(F.isMiniplayerActive()){W.response&&(F.playerElement.watchNextData=W.response);var d=_.xd.getValueByKeys.apply(_.xd,[W].concat(_.x9(YLM)));_.xd.getValueByKeys.apply(_.xd,[W].concat(_.x9(mui)))&&d&&_.WZ().resolve(_.yH).setAutoplayRenderer(d);if(d)if(_.c("kevlar_is_pupi_enabled")){var V,R,M,g,t,C=((V=W.response)==null?0:(R=V.playerOverlays)==null?0:(M=R.playerOverlayRenderer)==null?0:(g=M.autonavToggle)==
null?0:(t=g.autoplaySwitchButtonRenderer)==null?0:t.enabled)?2:1;_.EX.getInstance().setState(C,!1,!1)}else V=kUr()?2:1,(C=F.player)==null||C.setAutonavState(V);F.updateMiniplayerData(E);_.IdK(F)}_.gG(h)})},vw6=function(F){var W,E,h=(W=F.watchResponse)==null?void 0:(E=W.playerResponse)==null?void 0:E.playabilityStatus,d;
W=h==null?void 0:(d=h.miniplayer)==null?void 0:d.miniplayerRenderer;(W==null?void 0:W.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"&&W.minimizedEndpoint&&_.UT(F.miniplayerEl,[W.minimizedEndpoint]);_.q9(F,{miniplayerRenderer:W,playabilityStatus:h})};
LZ.prototype.openToast=function(F,W){_.q9(this,{toastData:{data:F,label:W}})};
_.q9=function(F,W){var E=F.miniplayerEl,h;for(h in W)E[h]=W[h];(0,F.miniplayerPropSignalMap[1])(W)};
LZ.prototype.getPlayerElement=function(){if(!this.isInitialized())return null;var F;return this.playerElement?this.playerElement:(F=_.Z(this.miniplayerEl).querySelector("#player-container"))==null?void 0:F.firstElementChild};
LZ.prototype.pictureInPictureSupported=function(){return this.pipController.pictureInPictureSupported()};
var t96=function(F,W){W=W===void 0?!1:W;var E,h,d,V,R,M,g;return _.e(function(t){if(t.nextAddress==1){E=navigator.userActivation.isActive||W;if(!E||!F.pictureInPictureSupported())return t.return(!1);h=qW$(F);d=h.width;V=h.height;return _.Q(t,F.pipController.openWindow({width:d,height:V}),2)}R=t.yieldResult;M=F.pipController.getWindow();if(!M||!R)return t.return(!1);M.document.body.style.overflow="hidden";g=hen(M);ueO(F.pipController,function(){$iK(F);g()});
return t.return(!0)})},qW$=function(F){var W=_.DT().shortsPipActivation,E,h;
F=W?.5625:(h=(E=F.player)==null?void 0:E.getVideoAspectRatio())!=null?h:16/9;E=Math.min(window.innerWidth,window.innerHeight)/2;W=W?0:76;return F>1?new _.Rl(E,W+E/F):new _.Rl(E*F,W+E)},$iK=function(F){var W;
_.e(function(E){W=_.WZ().resolve(_.KQ);return W.isOnWatch()&&F.watchPipMode||W.isOnShorts()&&F.shortsPipMode?_.Q(E,F.deactivate(),0):F.miniplayerToPipMode?_.Q(E,QIg(F),0):F.watchPipMode?_.Q(E,_.kX(F),0):E.jumpTo(0)})};
LZ.prototype.pictureInPictureEnabled=function(){return this.pictureInPictureSupported()&&(this.watchPipEnabled||this.shortsPipEnabled)};
_.Sn.Object.defineProperties(LZ.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
LZ[dr]=[SYq,EyB];var ZuN="add_circle arrow_time audio bag bars_3 bell broadcast clapperboard clock copy creator_studio_red_logo download fashion fire flag gaming gear home library lightbulb list_play_arrow message_bubble_alert mic my_videos news offline_download offline_no_content overflow_horizontal overflow_vertical question_circle radar_live search subscriptions thumb_up trash_can trophy unplugged_logo video_camera_add x_mark youtube_kids_round youtube_music youtube_round youtube_shorts yt-logo-updated".split(" "),
Xp6="add_circle alert_bubble audio bag bell clapperboard clock copy creator_studio_red_logo download download fashion flag gaming gear help_circle history home lightbulb live menu mic news offline_no_content overflow_horizontal overflow_vertical play_square_stack playlist podcast search subscriptions thumb_up trash_can trending trophy unplugged_logo video video_camera_add x youtube_kids_round youtube_music youtube_round youtube_shorts yt-logo-updated".split(" "),Hu8="arrow_down arrow_up overflow_horizontal pause play-arrow shorts-comment shorts-dislike shorts-like shorts-share volume-off volume-up waveform".split(" "),
Piu="arrow_down arrow_up overflow_horizontal pause play share text_bubble thumb_down thumb_up volume_max volume_mute waveform".split(" ");var JyF=null;var adu={},fd8=(adu.initialized={priority:10,callback:function(F){var W=_.WZ();W.addProvider({provide:SpM,useClass:YeP});W.addProvider({provide:_.Gz6,useFactory:function(){return new pEi}});
W.addProvider({provide:c9,useValue:_.b0("INNERTUBE_CONTEXT_CLIENT_NAME","WEB")});W.addProvider({provide:d$X,useValue:5184E6});W.addProvider({provide:cXi,useValue:_.OZ()});W.addProvider({provide:Po6,useClass:t4u});W.addProvider({provide:fS,useClass:fS});W.addProvider({provide:_.Va,useFactory:function(){return Lmu.promise}});
W.addProvider({provide:_.$up,useFactory:function(){return _.qLe.promise}});
W.addProvider({provide:iJn,useValue:function(){var M;return((M=_.WS())==null?void 0:M.getPlayer())||null}});
var E={};W.addProvider((E.provide=_.Gu,E.useFactory=function(M,g){return function(){return HEo(M,g)}},E[dr]=[c9,
d$X],E));E={};W.addProvider((E.provide=_.UL,E.useClass=YFH,E[dr]=[c9,d$X],E));E={};W.addProvider((E.provide=_.vNb,E.useClass=pRT,E[dr]=[_.UL],E));W.addProvider({provide:Mg,useFactory:_.uC});W.addProvider({provide:v6,useFactory:_.uC});W.addProvider({provide:fSu,useFactory:_.uC});W.addProvider({provide:mMa,useFactory:_.uC});W.addProvider({provide:_.P2,useFactory:_.uC});W.addProvider({provide:mU,useValue:_.zr});W.addProvider({provide:ji$,useClass:xcR});W.addProvider({provide:nIH,useClass:lve});W.addProvider({provide:PC,
useClass:PC});W.addProvider({provide:s$,useClass:s$});W.addProvider({provide:$y,useClass:$y});W.addProvider({provide:Xi,useClass:Xi});W.addProvider({provide:nG,useClass:nG});W.addProvider({provide:CJ,useClass:CJ});W.addProvider({provide:Wa,useClass:Wa});W.addProvider({provide:a8B,useValue:Vzg});W.addProvider({provide:_.cU,useFactory:_.z4});W.addProvider({provide:ue,useFactory:_.Ij});E={};W.addProvider((E.provide=p8Y,E.useFactory=function(M){return function(g){var t=t===void 0?{}:t;var C,B,I=(B=_.D((C=
g.endpoint)==null?void 0:C.commandMetadata,_.m1))==null?void 0:B.rootVe;if(I){var x,A;if(C=g.previousCsn||((A=_.D((x=g.endpoint)==null?void 0:x.commandMetadata,RRc))==null?void 0:A.parentCsn)){var X=X===void 0?{}:X;if(C!==_.JR(X.layer)||I!==xoY(X.layer))qsk(C,X.cttAuthInfo,X.layer||0),chr(C,X.layer||0),x=X.layer||0,_.OG(DoW(x===void 0?0:x),I);t.parentCsn=C}g.endpoint&&C?k$z(M,g.endpoint,t):_.QH(M,I,void 0,t);var P;((P=g.response)==null?0:P.trackingParams)&&M.graftServerVe(g.response.trackingParams);
var b;((b=g.playerResponse)==null?0:b.trackingParams)&&M.graftServerVe(g.playerResponse.trackingParams);var l;((l=g.reelWatchSequenceResponse)==null?0:l.trackingParams)&&M.graftServerVe(g.reelWatchSequenceResponse.trackingParams)}}},E[dr]=[_.cU],E));
E={};W.addProvider((E.provide=bbT,E.useClass=Obu,E[dr]=[mU,_.P2],E));E={};W.addProvider((E.provide=hp,E.useClass=hp,E[dr]=[_.Va,_.P2],E));E={};W.addProvider((E.provide=KG,E.useClass=KG,E[dr]=[v6,_.EJ],E));W.addProvider({provide:_.rrT,useClass:mww});E={};W.addProvider((E.provide=_.sL,E.useClass=GRO,E[dr]=[_.rrT],E));W.addProvider({provide:_.L1,useClass:Vw});W.addProvider({provide:tIT,useClass:XO8});W.addProvider({provide:_.qu,useClass:dJ});E={};W.addProvider((E.provide=_.oF,E.useClass=pGu,E[dr]=[_.oF],
E));W.addProvider({provide:_.Wj,useClass:PSB});W.addProvider({provide:Ca,useClass:Ca});W.addProvider({provide:xs,useClass:xs});W.addProvider({provide:X9,useClass:N9});E={};W.addProvider((E.provide=Jw,E.useClass=Jw,E[dr]=[_.L1,X9],E));_.c("web_enable_feedback_endpoint_resolver")&&(E={},W.addProvider((E.provide=gS,E.useClass=gS,E[dr]=[Mg,eZ],E)),W.addProvider({provide:eZ,useClass:pgi}));_.c("web_enable_feedback_endpoint_resolver_batch_2")&&(E={},W.addProvider((E.provide=zQ,E.useClass=zQ,E[dr]=[Mg],
E)),E={},W.addProvider((E.provide=Qu,E.useClass=Qu,E[dr]=[eZ],E)));E={};W.addProvider((E.provide=H9,E.useClass=H9,E[dr]=[_.qu,X9],E));E={};W.addProvider((E.provide=La,E.useClass=La,E[dr]=[_.qu],E));E={};W.addProvider((E.provide=P9,E.useClass=P9,E[dr]=[_.sh,_.sL],E));E={};W.addProvider((E.provide=Zc,E.useClass=Zc,E[dr]=[_.sh,_.cU],E));W.addProvider({provide:WF,useClass:WF});E={};W.addProvider((E.provide=wS,E.useClass=wS,E[dr]=[Mg],E));W.addProvider({provide:t$,useClass:t$});E={};W.addProvider((E.provide=
BF,E.useClass=BF,E[dr]=[Mg],E));E={};W.addProvider((E.provide=vF,E.useClass=vF,E[dr]=[_.sh,Mg],E));E={};W.addProvider((E.provide=IQ,E.useClass=IQ,E[dr]=[Mg],E));E={};W.addProvider((E.provide=cF,E.useClass=cF,E[dr]=[Mg],E));E={};W.addProvider((E.provide=qg,E.useClass=qg,E[dr]=[_.sL],E));E={};W.addProvider((E.provide=V4,E.useClass=V4,E[dr]=[_.cU],E));E={};W.addProvider((E.provide=Q4,E.useClass=Q4,E[dr]=[Ka],E));E={};W.addProvider((E.provide=zx,E.useClass=zx,E[dr]=[Ka],E));W.addProvider({provide:e1,
useClass:e1});W.addProvider({provide:MJ,useClass:MJ});W.addProvider({provide:NJ,useClass:NJ});E={};W.addProvider((E.provide=aF,E.useClass=aF,E[dr]=[_.sL,_.EJ],E));W.addProvider({provide:IF,useClass:IF});E={};W.addProvider((E.provide=$s,E.useClass=$s,E[dr]=[_.sh,_.sL],E));W.addProvider({provide:ks,useClass:ks});E={};W.addProvider((E.provide=GQ,E.useClass=GQ,E[dr]=[Mg,_.sh,_.oF],E));E={};W.addProvider((E.provide=rS,E.useClass=rS,E[dr]=[_.sh,_.EJ],E));W.addProvider({provide:Wda,useValue:Ggr});W.addProvider({provide:k6Y,
useValue:zYr});W.addProvider({provide:TQ,useClass:TQ});E={};W.addProvider((E.provide=ie,E.useClass=ie,E[dr]=[Mg],E));E={};W.addProvider((E.provide=Ys,E.useClass=Ys,E[dr]=[_.Wj,_.EJ],E));E={};W.addProvider((E.provide=tw,E.useClass=tw,E[dr]=[_.EJ],E));W.addProvider({provide:RF,useFactory:function(){return new RF(_.uC())}});
W.addProvider({provide:xKS,useFactory:_.nf.getInstance});E={};W.addProvider((E.provide=Dc,E.useClass=Dc,E[dr]=[c9,xKS,_.EJ],E));W.addProvider({provide:B9,useClass:B9});W.addProvider({provide:hw,useClass:hw});W.addProvider({provide:Ng,useClass:Ng});W.addProvider({provide:_.dS,useClass:_.dS});W.addProvider({provide:k_,useClass:k_});E={};W.addProvider((E.provide=na,E.useClass=na,E[dr]=[v6],E));E={};W.addProvider((E.provide=yu,E.useClass=yu,E[dr]=[_.EJ],E));_.c("web_enable_prefetching_videos_on_home")&&
(W.addProvider({provide:mQ,useClass:mQ}),W.addProvider({provide:B7,useClass:B7}));E={};W.addProvider((E.provide=x_,E.useClass=x_,E[dr]=[_.EJ],E));W.addProvider({provide:Vu,useClass:Vu});E={};W.addProvider((E.provide=E4,E.useClass=E4,E[dr]=[_.sh,_.EJ],E));E={};W.addProvider((E.provide=Uy,E.useClass=Uy,E[dr]=[_.EJ],E));W.addProvider({provide:v7,useClass:v7});W.addProvider({provide:be,useClass:be});E={};W.addProvider((E.provide=Oy,E.useClass=Oy,E[dr]=[v6,_.EJ],E));E={};W.addProvider((E.provide=Lh,E.useClass=
Lh,E[dr]=[v6,_.EJ,_.sh],E));E={};W.addProvider((E.provide=qJ,E.useClass=qJ,E[dr]=[_.EJ],E));E={};W.addProvider((E.provide=s4,E.useClass=s4,E[dr]=[_.EJ,_.sh],E));E={};W.addProvider((E.provide=jZ,E.useClass=jZ,E[dr]=[_.Va],E));E={};W.addProvider((E.provide=le,E.useClass=le,E[dr]=[_.Va],E));W.addProvider({provide:mH,useClass:mH});W.addProvider({provide:Fy,useClass:Fy});W.addProvider({provide:Ch,useClass:Ch});W.addProvider({provide:h$,useClass:h$});W.addProvider({provide:pa,useClass:pa});W.addProvider({provide:Aw,
useClass:Aw});W.addProvider({provide:SZ,useClass:SZ});_.c("kevlar_enable_mss_lazy_load")&&W.addProvider({provide:_.wX,useClass:qqT});W.addProvider({provide:_.Uk,useClass:RD});W.addProvider({provide:Wt,useFactory:function(){return _.o_.getInstance()}});
W.addProvider({provide:Jrq,useFactory:oLn});W.addProvider({provide:Ka,useFactory:function(){return _.Xb.getInstance()}});
W.addProvider({provide:Ija,useValue:{singleEntityType:"mainVideoEntity",listEntityType:"mainPlaylistEntity"}});E={};W.addProvider((E.provide=_.FS,E.useClass=_.FS,E[dr]=[_.Va,_.EJ,_.cU,Jrq,Ka,Wt,Ija,mU],E));W.addProvider({provide:_.QC,useClass:yOO});W.addProvider({provide:_.VIM,useClass:Nge});E={};W.addProvider((E.provide=sy,E.useClass=sy,E[dr]=[_.VIM],E));E={};W.addProvider((E.provide=_.W7,E.useFactory=function(M){return M.upliftCompletionResolver.promise},E[dr]=[bbT],E));
E=_.l0("IS_SHELL_LOAD")?"aa":"eocs";var h=_.l0("IS_SHELL_LOAD")?3:2;_.ip().parkOrScheduleJob(function(){nWK()},h,E);
_.ip().parkOrScheduleJob(function(){_.WZ().resolve(hp).start()},2,"eocs");
_.ip().parkOrScheduleJob(function(){aS6()},2,"eocs");
_.ip().parkOrScheduleJob(function(){_.WZ().resolve(KG).start()},2,"eocs");
_.c("kevlar_debug_data_app_registration_ks")||zgW();W.addProvider({provide:_.$Y,useValue:new TCc(F.root)});W.addProvider({provide:r3,useValue:new juY});W.addProvider({provide:_.mPB,useValue:new SrX(F.root)});W.addProvider({provide:_.Ag,useValue:new p_c});W.addProvider({provide:_.g_,useClass:B3});W.addProvider({provide:SYq,useClass:UE});_.c("kevlar_network_sli_killswitch")||W.addProvider({provide:mUq,useValue:Ehu});W.addProvider({provide:iTK,useFactory:HmY});_.c("web_bind_fetch")&&(E={},W.addProvider((E.provide=
ra$,E.useFactory=P8Y,E[dr]=[_.Fd(iTK)],E)));_.c("web_bind_parse")&&(E={},W.addProvider((E.provide=TcP,E.useFactory=JKo,E[dr]=[_.Fd(iTK)],E)));_.c("web_bind_window_request")&&(E={},W.addProvider((E.provide=oBw,E.useFactory=aFR,E[dr]=[_.Fd(iTK)],E)));E={};W.addProvider((E.provide=AX_,E.useFactory=w8n,E[dr]=[_.W7,Mg,_.Gu],E));E={};W.addProvider((E.provide=ke_,E.useClass=$_,E[dr]=[AX_],E));W.addProvider({provide:nkc,useClass:f8i});W.addProvider({provide:I8M,useClass:D$c});E=[].concat(_.x9(YY));_.c("web_continuation_response_processing")&&
E.push(_.fQ);E.push(J5z);_.c("enable_share_panel_navigation_logging_fix_on_web")&&E.push(_.dHM);W.addProvider({provide:HhY,useValue:E});W.addProvider({provide:sNG,useClass:vke});W.addProvider({provide:EKO,useClass:KXT});E={};W.addProvider((E.provide=DKo,E.useClass=Rca,E[dr]=[v6],E));_.P0.addLowPriorityJob(function(){Bbe()});
E={};W.addProvider((E.provide=W3O,E.useFactory=function(M){return function(g){var t,C=(t=_.D(g.commandMetadata,_.m1))==null?void 0:t.url;if(!C)throw new _.xC("No URL for PBJ Command",g);C=ctG(C,{pbj:"1"});t=lmk(C,{})||{};t=Object.assign({},t,{"Content-Type":"application/x-www-form-urlencoded","x-youtube-csoc":"1","X-YouTube-STS":_.b0("STS").toString()});g=_.zC({command:JSON.stringify(g),session_token:_.b0("XSRF_TOKEN")});return M.fetch(C,{method:"POST",headers:t,body:g})}},E[dr]=[EKO],E));
E=[];E.push(W.resolve(I8M));h={};h=(h.client_location=_.nf.getInstance(),h.consistency=_.AAY(),h.entities=W.resolve(nIH),h.response_received_commands=W.resolve(sNG),h.store=W.resolve(_.vNb),h.tokens=W.resolve(I8M),h);if(_.c("web_shorts_prefetch_service_enabled")){var d=new m$X(W.resolve(_.UL));h.shorts_prefetch=d}h.adblock_detection=W.resolve(DKo);W.addProvider({provide:_.TX,useClass:_.TX});d=W.resolve(a8B);var V=[];if(_.c("PremiumClientSharedConfig__enable_att_context_processor")||_.c("enable_att_for_transcript_request_on_web_client"))W.addProvider({provide:kLi,
useClass:c_O}),V.push(W.resolve(kLi));if(_.c("owl_pl_await")){var R={};W.addProvider((R.provide=OT8,R.useFactory=function(M){return new a_x(M)},R[dr]=[_.TX],R));
V.push(W.resolve(OT8))}RYe(d,W.resolve(EKO),W.resolve(ji$),h,W.resolve(_.UL),E,V,W.resolve(ke_),W.resolve(nkc));W.addProvider({provide:_.sh,useValue:_.iz.instance});_.c("start_client_gcf")&&W.addProvider({provide:Ln,useValue:AVz()});W.addProvider({provide:jnw,useFactory:function(){return new jnw(_.WZ().resolve(_.TX),_.Xb.getInstance())}});
_.ip().parkOrScheduleJob(function(){ib$()},1,"eocs");
E={};W.addProvider((E.provide=EE,E.useClass=EE,E[dr]=[_.Gu,_.sh],E));W.addProvider({provide:_.huq,useFactory:_.CZ.getInstance});_.ip().parkOrScheduleJob(function(){_.WZ().resolve(EE).refresh()},0,"eocs");
E6a(Vzg.watchEndpointMap||{},d.reelWatchEndpointMap||{},F.injector.resolve(_.sh));W.addProvider({provide:JU,useValue:_.e8.instance});_.c("kevlar_signal_collection_killswitch")||(E={},W.addProvider((E.provide=Hbg,E.useClass=Hbg,E[dr]=[c9,ue],E)),_.ip().parkOrScheduleJob(function(){_.WZ().resolve(Hbg).record()},1,"eocs"));
_.c("web_debug_handler_registration_killswitch")||_.ip().parkOrScheduleJob(function(){g2o("DOWNLOAD_PES",Tdo);_.c("offline_client_state_export_ks")||g2o("OFFLINE_CLIENT_STATE",j5w)},0,"eocs");
_.c("kevlar_prevent_polymer_dynamic_font_load")&&_.ip().parkOrScheduleJob(function(){var M=[_.mv(t$8),_.mv(CK$)];M=_.U(M);for(var g=M.next();!g.done;g=M.next()){g=g.value;var t=document.createElement("link");_.ii(t,g,"stylesheet");document.head.appendChild(t)}},1,"eocs");
E=F.injector.resolve(_.sh);_.xmB.instance=new _.xmB(E);ZFb(zcu(new Dmi(E)));E={};F.injector.addProvider((E.provide=Ws,E.useFactory=function(M){(M=M==null?void 0:M.getCurrentPage())?M=M.visibilityObserver:(JyF||(JyF=s9n()),M=JyF);return M},E[dr]=[_.Fd(_.KQ)],E.skipCache=!0,E));
W.addProvider({provide:_.GF,useClass:LZ});W.addProvider({provide:C1,useClass:YUM});W.addProvider({provide:KQW,useValue:uqb});F.injector.addProvider({provide:FnO,useValue:r2_});W.addProvider({provide:yua,useValue:oeb});W.addProvider({provide:_.nK,useValue:hqe});F=W.addProvider;Nc6||(Nc6=new dUw);F.call(W,{provide:_.VHK,useValue:Nc6});W.addProvider({provide:_.ji,useValue:_.b0("HTML_DIR")==="rtl"?"rtl":"ltr"});W.addProvider({provide:jgp,useClass:u2O});W.addProvider({provide:_.U6,useClass:eW});_.WZ().addProvider({provide:r_M,
useValue:_.c("enable_web_delhi_icons")?Xp6.concat(Piu):ZuN.concat(Hu8)});W.addProvider({provide:_.gJ,useClass:_.gJ});W.addProvider({provide:_.e6F,useValue:new R6K});W.addProvider({provide:i9_,useClass:Oq_});W.addProvider({provide:dM,useClass:dM});W.addProvider({provide:U4,useClass:U4});F={};W.addProvider((F.provide=fa,F.useClass=fa,F[dr]=[_.sh,_.sL],F));W.addProvider({provide:A$,useClass:A$});W.addProvider({provide:UPO,useClass:FXK});W.addProvider({provide:gM,useClass:gM});W.addProvider({provide:b4T,
useValue:xsp});W.addProvider({provide:_.ac,useClass:bqH});_.c("enable_payments_purchase_manager")&&W.addProvider({provide:qMu,useClass:A_c});W.addProvider({provide:QOK,useFactory:function(){return function(M){return _.gKN(M)}}});
W.addProvider({provide:_.C2_,useClass:Bgc});F={};W.addProvider((F.provide=Dr,F.useClass=Dr,F[dr]=[_.C2_],F));W.addProvider({provide:RQ,useClass:RQ});W.addProvider({provide:Evi,useValue:P9H});W.addProvider({provide:txM,useValue:QiK});W.addProvider({provide:k1r,useClass:KYK});W.addProvider({provide:gR8,useValue:MzP});F={};W.addProvider((F.provide=_.xX,F.useClass=QKK,F[dr]=[gR8],F));_.c("web_ephemeral_actions")&&(F={},W.addProvider((F.provide=_.zI,F.useClass=Qw,F[dr]=[_.P2,_.g_],F)));if(_.c("web_explore_hub_on_hover")||
_.c("web_client_explore_hub_on_hover"))F={},W.addProvider((F.provide=v9,F.useClass=v9,F[dr]=[_.sh,Wt],F));W.addProvider({provide:Str,useValue:i_R});F={};W.addProvider((F.provide=FYO,F.useClass=KGT,F[dr]=[_.sh],F))}},adu);var Ouw={},bux=(Ouw.initialized={priority:10,callback:function(){if(!pOF){GBR();OmW("FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND");_.e5(_.v5(OmW,"FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"),3E4);if(_.c("log_heartbeat_with_lifecycles")){var F={};SV.instance||(SV.instance=new SV);SV.instance.install((F.document_visible={callback:bme,priority:10},F.document_hidden={callback:bme,priority:10},F))}else _.FA(document,"visibilitychange",bme);pOF=!0}(F=_.JR())&&F!=="UNDEFINED_CSN"&&vUS(F)}},Ouw);var ld8={},nww=(ld8.initialized={callback:function(F){var W=_.LQ(232091),E=F.injector.resolve(_.cU);_.zY(E,W);window.performance&&window.performance.getEntriesByType&&typeof window.performance.getEntriesByType==="function"?dKR()&&_.Co(E,W):(F=F.injector.resolve(QOK)("refresh_detector"))&&(F.get("first_tab_load")?_.Co(E,W):F.set("first_tab_load","1"))}},ld8);var yyK={},jIx=(yyK.initialized={priority:10,callback:QNn},yyK);var iu8={},ryO=(iu8.initialized={priority:0,callback:function(){var F=new $p_,W="other";_.cY?W="chrome":_.IZ?W="firefox":_.OJ?W="safari":wV&&(W="edge");document.hasStorageAccess?document.hasStorageAccess().then(function(E){F.increment(_.IA(),E,W)}).catch(function(){F.increment(_.IA(),!1,W)}):F.increment(_.IA(),!1,W)}},iu8);var TU$={},owx=(TU$.rendering={priority:8,callback:zeo},TU$);var GyN={},YWO=(GyN.rendering={priority:10,callback:q7R},GyN.rendered={callback:L$W},GyN),wpu={},u3K=(wpu.rendering={callback:q7R},wpu.rendered={callback:L$W},wpu);var SW6=!1,ppg={},miu=(ppg.initialized={priority:10,callback:function(){SW6||(cVI({didPatch:function(F){F.el&&w7I(F.el,F.props)},
didUnmount:function(F){GIn(F.el)}}),SW6=!0)}},ppg);var K7F=/^\/shorts\/?$/;_.OG("FILLER_DATA",{browse:{filler:!0,page:"browse"},search:{filler:!0,page:"search",endpoint:{commandMetadata:{webCommandMetadata:{url:"/results",webPageType:"WEB_PAGE_TYPE_SEARCH"}},urlEndpoint:{url:"/results"}},response:{contents:{twoColumnSearchResultsRenderer:{primaryContents:{sectionListRenderer:{contents:[],subMenu:{searchSubMenuRenderer:{}}}},secondaryContents:{secondarySearchContainerRenderer:{contents:[]}}}}}},watch:{filler:!0,page:"watch",endpoint:{commandMetadata:{webCommandMetadata:{url:"/watch",
webPageType:"WEB_PAGE_TYPE_WATCH"}},urlEndpoint:{url:"/watch"}},playerResponse:{playabilityStatus:{status:"OK"}},response:{contents:{twoColumnWatchNextResults:{results:{results:{contents:[{videoPrimaryInfoRenderer:{},videoSecondaryInfoRenderer:{}}]}},secondaryResults:{secondaryResults:{}}}}}}});
if(_.c("kevlar_enable_mss")){_.dOo(new RvO);var FvK=!0,Wvw,$X;FvK=FvK===void 0?!1:FvK;Wvw=Wvw===void 0?!1:Wvw;$X=$X===void 0?{}:$X;var E98=$X.cssRowKey||"",hXq=$X.combinedSignature||"";!E98&&window&&window._F_cssRowKey&&(E98=window._F_cssRowKey,!hXq&&window._F_combinedSignature&&(hXq=window._F_combinedSignature));if(E98&&typeof window._F_installCss!=="function")throw Error("vd");var dlT=$X.loaderClass||_.oe,ZQ=r8b("base-js"),NGq,VJF=oFG("",ZQ);NGq=_.RI(VJF);var XS=new dlT(NGq,E98,hXq,FvK,Wvw),UlO=
$X.useCors||ZQ&&ZQ.hasAttribute("crossorigin"),RXw=$X.corsMode||ZQ&&ZQ.getAttribute("crossorigin");UlO&&(XS.useCors_=UlO);RXw&&(XS.corsMode_=RXw);$X.urlMaxLength&&(XS.urlMaxLength=$X.urlMaxLength);$X.fetchPriority&&(XS.fetchPriority=$X.fetchPriority);var eXT=Zq();eXT.JSC$7958_loader_=XS;eXT.setBatchModeEnabled(!0)}
(function(){var F=document.querySelector("ytd-app");if(!F)throw Error("Fj");F=new tp({root:F,injector:_.WZ()});F.install(bux);var W={};F.install((W.initialized={priority:10,callback:CUW},W));_.c("wp_lat_b")&&(W={},F.install((W.initialized={priority:10,callback:function(){$No()}},W)));
W={};F.install((W.rendered={priority:0,callback:Qmr},W));W={};F.install((W.rendered={priority:0,callback:function(){_.P0.addLowPriorityJob(function(){_.SMX>1&&(Ntr(),MVe())},4E4)}},W));
F.install(jOP);F.install(nww);F.install(miu);z6q||(z6q=!0,Object.assign(Ei,{handleError:imI,enableComponentStacksInErrorMessages:!1}),Znw=xQe,vtn=rKI,a0Y=e5n,HnI=M_Y,_.c("ytwiz_enable_debug_component_props")&&yVb());F.install(u6g);F.install(fuK);F.install(nKF);F.install(Ar8);F.install(Zb6);F.install(Yqx);F.install(fd8);_.c("kevlar_enable_mss_lazy_load")&&F.install(jIx);F.install(bN$);F.install(ryO);if(!_.l0("IS_SHELL_LOAD")||_.c("kevlar_fetch_initial_data_promise_client")||_.c("sw_nav_preload_pbj")){var E=
_.gV(window.location.href);W=E&&E==="/watch";E=E&&E.match(K7F);W?F.install(u3K):E?F.install(owx):F.install(YWO)}else F.install(PKK);F.install(rP6);_.c("web_enable_prefetching_videos_on_home")&&F.install(KgK);_.c("start_client_gcf")&&F.install(Seu);F.install(ISK);(new ZCe).increment("INSTALLED");F.install(pT6);F.install(ZN$);F.transition("initialized");IFY()})();
_.Ro=[[["NGVkNXE0a2luZCNmMWZ0M24=","bm56OWkzdmFsdWUjbzd3cjA4"],"aTNhcTN6QURfUExBQ0VNRU5UX0tJTkRfTEFZT1VUX0lEX0VOVEVSRUQjcjE4bzlu"]];_.Uh=["NDVidXFmZ2xvYmFsQ2FsbGJhY2tzI201ZnJleA==","cWUyZWM5b25BYm5vcm1hbGl0eURldGVjdGVkI2d6aXQ5OQ==","czk3bTgyb25BZFNraXAjOGpxc2c=","NnllazBjcmF3X3BsYXllcl9yZXNwb25zZSM4djE2cXU=","dGl0eHZiYWRzRW5nYWdlbWVudFBhbmVsUmVuZGVyZXIjNnNrc2t6"];_.wL="NDVidXFmZ2xvYmFsQ2FsbGJhY2tzI201ZnJleA== cWUyZWM5b25BYm5vcm1hbGl0eURldGVjdGVkI2d6aXQ5OQ== czk3bTgyb25BZFNraXAjOGpxc2c= NnllazBjcmF3X3BsYXllcl9yZXNwb25zZSM4djE2cXU= ZzZsd3Bqd2ViX3BsYXlsaXN0X3F1ZXVlX211bHRpcGxlX3NraXBzX2tzI2JiMnhxMQ== dG82YXh5YWJfc2FfZWYjaXR2ejV6 dGl0eHZiYWRzRW5nYWdlbWVudFBhbmVsUmVuZGVyZXIjNnNrc2t6".split(" ");
_._ModuleManager_initialize=function(F,W){if(!_.Lr){if(!_.qT)return;_.dOo(_.qT())}_.Lr.setAllModuleInfoString(F,W)};
_._ModuleManager_initialize('kevlar_base_module/sy1/sy2/sy3/sy4:2,3/sy5/sy6:2/sy7/sy8/sy9/sya/syb/kevlar_main_module:1,4,5,6,7,8,9/syc:2/syd:3,6,a,d/sye/syf:5/syg/h8y2qb:4,e,f,g,h/syh/JzFVk:d,g,h,j/syi:8/xwEKAe:3,9,f,h,l/syj:e/syk:1,b,e,f,j,l/syl:o/nmfa2d:h,n,p/sym:7,o/syn:g,h,p,r/CF909:n,s/Tm0L3c:s/L3n37:g,h,n,r/iuT5Oc',['sy2','sy8','syc','sya','sy6','sy3','syi','syh','sye','syd','syb','sy1','syk','sy7','sy5','sym','syl','syg','syf','syj','syn','sy9','sy4','iuT5Oc','L3n37','Tm0L3c','CF909','nmfa2d','xwEKAe','JzFVk','h8y2qb','kevlar_main_module']);
}catch(e){_._DumpException(e)}
try{
_.fZ=function(F,W,E,h,d){var V={};W&&(V[W]=E);h?V.errorType=h:d&&(V.errorReason=d);_.Pc(F,V);_.JV()};
_.OE=function(F){var W=_.ip();return _.N1z(W,F,1)};
_.k3({is:"iron-media-query",_template:null,properties:{queryMatches:{type:Boolean,value:!1,readOnly:!0,notify:!0},query:{type:String,observer:"queryChanged"},full:{type:Boolean,value:!1},_boundMQHandler:{value:function(){return this.queryHandler.bind(this)}},
_mq:{value:null}},attached:function(){this.style.display="none";this.queryChanged()},
detached:function(){this._remove()},
_add:function(){this._mq&&this._mq.addListener(this._boundMQHandler)},
_remove:function(){this._mq&&this._mq.removeListener(this._boundMQHandler);this._mq=null},
queryChanged:function(){this._remove();var F=this.query;F&&(this.full||F[0]==="("||(F="("+F+")"),this._mq=window.matchMedia(F),this._add(),this.queryHandler(this._mq))},
queryHandler:function(F){this._setQueryMatches(F.matches)}});var c1O;var Dl$;var xl6=function(){};
_.N=xl6.prototype;_.N.addOwnKeyBinding=function(){};
_.N.removeOwnKeyBindings=function(){};
_.N.keyboardEventMatchesKeys=function(){};
_.N._collectKeyBindings=function(){};
_.N._prepKeyBindings=function(){};
_.N._addKeyBinding=function(){};
_.N._resetKeyEventListeners=function(){};
_.N._listenKeyEventListeners=function(){};
_.N._unlistenKeyEventListeners=function(){};
_.N._onKeyBindingEvent=function(){};
_.N._triggerKeyHandler=function(){};
_.N._tapHandler=function(){};
_.N._focusChanged=function(){};
_.N._detectKeyboardFocus=function(){};
_.N._userActivate=function(){};
_.N._upHandler=function(){};
_.N._spaceKeyDownHandler=function(){};
_.N._spaceKeyUpHandler=function(){};
_.N._asyncClick=function(){};
_.N._pressedChanged=function(){};
_.N._ariaActiveAttributeChanged=function(){};
_.N._activeChanged=function(){};
_.N._controlStateChanged=function(){};
_.N._changedButtonState=function(){};
_.N._focusBlurHandler=function(){};
_.N._disabledChanged=function(){};
_.N._changedControlState=function(){};
_.N._downHandler=function(){};
_.N.ensureRipple=function(){};
_.N.getRipple=function(){};
_.N.hasRipple=function(){};
_.N._noinkChanged=function(){};
_.N._focusedChanged=function(){};
_.N._createRipple=function(){};
_.N.registered=function(){};
_.N._invalidChanged=function(){};
_.N.hasValidator=function(){};
_.N.validate=function(){};
_.N._getValidity=function(){};
_.N._requiredChanged=function(){};
_.N._valueChanged=function(){};
_.N._checkedChanged=function(){};
_.N._buttonStateChanged=function(){};
_.N._setPressed=function(){};
_.N._setPointerDown=function(){};
_.N._setReceivedFocusFromKeyboard=function(){};
_.N._setFocused=function(){};
xl6=_.k3({is:"tp-yt-paper-radio-button",_template:function(){if(Dl$!==void 0)return Dl$;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-radio-button--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_radio_button.tp.yt.paper.radio.button.css.js--\x3e<div id="radioContainer" style-target="container" class="style-scope tp-yt-paper-radio-button">\n  <div id="offRadio" class="style-scope tp-yt-paper-radio-button"></div>\n  <div id="onRadio" class="style-scope tp-yt-paper-radio-button"></div>\n</div><div id="radioLabel" style-target="label" class="style-scope tp-yt-paper-radio-button"><slot class="style-scope tp-yt-paper-radio-button"></slot></div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);var W=F.content,E=W.insertBefore;c1O===void 0&&(c1O=document.createElement("template"));var h=c1O;E.call(W,h.content.cloneNode(!0),F.content.firstChild);return Dl$=F},
behaviors:[_.Y8B],hostAttributes:{role:"radio","aria-checked":!1,tabindex:0},properties:{ariaActiveAttribute:{type:String,value:"aria-checked"},name:{type:String,reflectToAttribute:!0}},ready:function(){this._rippleContainer=this.$.radioContainer},
attached:function(){_.wT(this,function(){if(this.getComputedStyleValue("--calculated-paper-radio-button-ink-size").trim()==="-1px"){var F=parseFloat(this.getComputedStyleValue("--calculated-paper-radio-button-size").trim()),W=Math.floor(3*F);W%2!==F%2&&W++;this.updateStyles({"--paper-radio-button-ink-size":W+"px"})}})}});var kT8;var A1u;_.k3({_template:function(){if(A1u!==void 0)return A1u;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-radio-group--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_radio_group.tp.yt.paper.radio.group.css.js--\x3e<slot class="style-scope tp-yt-paper-radio-group"></slot>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;kT8===void 0&&(kT8=document.createElement("template"));var h=kT8;E.call(W,h.content.cloneNode(!0),F.content.firstChild);return A1u=F},
is:"tp-yt-paper-radio-group",behaviors:[_.Uje],hostAttributes:{role:"radiogroup"},properties:{attrForSelected:{type:String,value:"name"},selectedAttribute:{type:String,value:"checked"},selectable:{type:String,value:"tp-yt-paper-radio-button"},allowEmptySelection:{type:Boolean,value:!1}},select:function(F){var W=this._valueToItem(F);if(!W||!W.hasAttribute("disabled")){if(this.selected){W=this._valueToItem(this.selected);if(this.selected==F)if(this.allowEmptySelection)F="";else{W&&(W.checked=!0);return}W&&
(W.checked=!1)}_.l1.select.apply(this,[F]);this.fire("paper-radio-group-changed")}},
_activateFocusedItem:function(){this._itemActivate(this._valueForItem(this.focusedItem),this.focusedItem)},
_onUpKey:function(F){this._focusPrevious();F.preventDefault();this._activateFocusedItem()},
_onDownKey:function(F){this._focusNext();F.preventDefault();this._activateFocusedItem()},
_onLeftKey:function(F){_.Vc_._onLeftKey.apply(this,arguments);this._activateFocusedItem()},
_onRightKey:function(F){_.Vc_._onRightKey.apply(this,arguments);this._activateFocusedItem()},
_applySelection:function(){_.l1._applySelection.apply(this,arguments)},
_resetTabindices:function(){_.bB._resetTabindices.apply(this,arguments);this.items.forEach(function(F){F.removeAttribute("aria-selected")},this)}});var sSq;_.Hr("multiPageMenuSectionItems","compactLinkRenderer","ytd-compact-link-renderer");var b3=function(){return _.n.apply(this,arguments)||this};
_.k(b3,_.n);_.N=b3.prototype;_.N.computeHasPrimaryIcon=function(F){return!(!F.icon&&!F.thumbnail)};
_.N.computeHasSecondary=function(F){return!(!F.secondaryIcon&&!F.secondaryNotificationText)};
_.N.computeHideSecondaryString=function(F){return!_.c("disable_hide_empty_secondary_string")&&!F.secondaryNotificationText};
_.N.computeCompactLinkStyle=function(F){return F?F.toLowerCase().replace(/_/g,"-"):""};
_.N.computeHasFitHeight=function(F){return F==="COMPACT_LINK_STYLE_TYPE_TVFILM_ENTITY_PROVIDER_ATTRIBUTION"};
_.N.isActiveEndpoint=function(F){return(F=this.get("commandMetadata.webCommandMetadata.url",F))?_.gV(window.location.href)!=="/account_transfer_channel"&&_.gV(window.location.href)!=="/gaia_link"&&_.gV(window.location.href)!=="/channel_switcher"||F!=="/account"?_.gV(window.location.href)===F:!0:!1};
_.N.onTap=function(){var F;((F=this.data)==null?0:F.serviceEndpoint)&&_.UT(this.hostElement,[this.data.serviceEndpoint])};
b3.prototype.onTap=b3.prototype.onTap;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],b3.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],b3.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0,computed:"isActiveEndpoint(data.navigationEndpoint)"}),_.Y("design:type",Boolean)],b3.prototype,"active",void 0);_.T([_.O({reflectToAttribute:!0,computed:"computeCompactLinkStyle(data.style)"}),_.Y("design:type",String)],b3.prototype,"compactLinkStyle",void 0);
_.T([_.O({computed:"computeIcon_(data.icon)"}),_.Y("design:type",Object)],b3.prototype,"icon",void 0);_.T([_.O({computed:"computeIcon_(data.secondaryIcon)"}),_.Y("design:type",Object)],b3.prototype,"secondaryIcon",void 0);_.T([_.O({computed:"computeHasSecondary(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],b3.prototype,"hasSecondary",void 0);_.T([_.O({computed:"computeHideSecondaryString(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],b3.prototype,"hideSecondaryString",void 0);
_.T([_.R4("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],b3.prototype,"onTap",null);b3=_.T([_.y({is:"ytd-compact-link-renderer",disableElementRegistration:!0})],b3);
_.r(b3,"ytd-compact-link-renderer",function(){if(sSq!==void 0)return sSq;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-link-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope ytd-compact-link-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" role="link" tabindex="-1">\n  \n  <tp-yt-paper-item role="none" class="style-scope ytd-compact-link-renderer">\n    <div id="content-icon" hidden="[[!computeHasPrimaryIcon(data)]]" class="style-scope ytd-compact-link-renderer">\n      <yt-img-shadow fit-height="[[computeHasFitHeight(data.style)]]" height="40" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" width="40" class="style-scope ytd-compact-link-renderer">\n      </yt-img-shadow>\n      <yt-icon disable-upgrade$="[[!icon]]" hidden="[[!icon]]" icon="[[icon]]" class="style-scope ytd-compact-link-renderer">\n      </yt-icon>\n    </div>\n    <div id="primary-text-container" class="style-scope ytd-compact-link-renderer">\n      <yt-formatted-string id="label" text="[[data.title]]" class="style-scope ytd-compact-link-renderer"></yt-formatted-string>\n      <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-compact-link-renderer"></yt-formatted-string>\n    </div>\n    <yt-icon id="right-icon" disable-upgrade$="[[!secondaryIcon]]" hidden="[[!secondaryIcon]]" icon="[[secondaryIcon]]" class="style-scope ytd-compact-link-renderer">\n    </yt-icon>\n    <yt-formatted-string id="secondary-text" hidden="[[hideSecondaryString]]" text="[[data.secondaryNotificationText]]" class="style-scope ytd-compact-link-renderer">\n    </yt-formatted-string>\n  </tp-yt-paper-item>\n</a>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return sSq=F},{mode:1});var Lv6;_.Hr("multiPageMenuSectionItems","toggleThemeCompactLinkRenderer","ytd-toggle-theme-compact-link-renderer");
var l3=function(){var F=_.n.apply(this,arguments)||this;F.role="link";F.tabindex="0";F.actionMap=_.c("kevlar_move_theme_action_handlers_killswitch")?{"yt-signal-action-toggle-dark-theme-on":"handleSignalActionToggleDarkThemeOn","yt-signal-action-toggle-dark-theme-off":"handleSignalActionToggleDarkThemeOff","yt-signal-action-toggle-dark-theme-device":"handleSignalActionToggleDarkThemeDevice"}:{};return F};
_.k(l3,_.n);_.N=l3.prototype;_.N.dataChanged=function(){this.data&&(this.data.label?this.label=this.data.label:this.label=_.Oh()==="USER_INTERFACE_THEME_DARK"?this.data.toggledOnTitle:this.data.toggledOffTitle)};
_.N.getCurrentTheme=function(){return _.bb()?document.documentElement.hasAttribute("dark")?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.Oh()};
_.N.onThemeSelected=function(F,W){var E=F||W?F:_.ff(),h=(E&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!E&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.DeR(_.gV(window.location.href));_.c5(0,165,F);_.c5(0,174,W);this.prefs.save();h&&_.dW(this.hostElement,"yt-dark-mode-toggled-action",[E]);_.dW(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.N.onTap=function(){this.data.serviceEndpoint&&_.UT(this.hostElement,[this.data.serviceEndpoint])};
_.N.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.N.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.N.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
l3.prototype.onTap=l3.prototype.onTap;l3.prototype.dataChanged=l3.prototype.dataChanged;_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],l3.prototype,"actionHandlerBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],l3.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.WP),_.Y("design:type",Object)],l3.prototype,"paperItemBehaviors",void 0);_.T([_.O(),_.Y("design:type",Object)],l3.prototype,"data",void 0);_.T([_.O({value:function(){return _.Ij()}}),
_.Y("design:type",_.Uj)],l3.prototype,"prefs",void 0);_.T([_.O(),_.Y("design:type",Object)],l3.prototype,"label",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],l3.prototype,"role",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],l3.prototype,"tabindex",void 0);_.T([_.Cz("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],l3.prototype,"dataChanged",null);
_.T([_.R4("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],l3.prototype,"onTap",null);l3=_.T([_.y({is:"ytd-toggle-theme-compact-link-renderer",disableElementRegistration:!0})],l3);
_.r(l3,"ytd-toggle-theme-compact-link-renderer",function(){if(Lv6!==void 0)return Lv6;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-toggle-theme-compact-link-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="content-icon style-scope ytd-toggle-theme-compact-link-renderer">\n  <yt-icon id="primary-icon" disable-upgrade$="[[!data.primaryIcon.iconType]]" hidden="[[!data.primaryIcon.iconType]]" icon="[[data.primaryIcon.iconType]]" class="style-scope ytd-toggle-theme-compact-link-renderer">\n  </yt-icon>\n</div>\n<div id="label" class="style-scope ytd-toggle-theme-compact-link-renderer">[[getSimpleString(label)]]</div>\n<yt-icon id="secondary-icon" disable-upgrade$="[[!data.secondaryIcon.iconType]]" hidden="[[!data.secondaryIcon.iconType]]" icon="[[data.secondaryIcon.iconType]]" class="style-scope ytd-toggle-theme-compact-link-renderer">\n</yt-icon>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return Lv6=F},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.KA=function(F){return function(W,E){var h=F||E.replace(/([A-Z])/g,"-$1").toLowerCase();Object.defineProperty(W,E,{get:function(){var d;return this.$?this.$[h]:(d=_.M3(this))==null?void 0:d.querySelector("#"+h)},
enumerable:!0,configurable:!0})}};_.Fl=function(F){F=F===void 0?!1:F;_.xj.call(this);this.pubSub_=new _.tc(F);_.gl(this,this.pubSub_)};
_.Ma(_.Fl,_.xj);_.Fl.prototype.subscribe=function(F,W,E){return this.isDisposed()?0:this.pubSub_.subscribe(F,W,E)};
_.Fl.prototype.unsubscribe=function(F,W,E){return this.isDisposed()?!1:this.pubSub_.unsubscribe(F,W,E)};
_.Fl.prototype.unsubscribeByKey=function(F){return this.isDisposed()?!1:this.pubSub_.unsubscribeByKey(F)};
_.Fl.prototype.publish=function(F,W){return this.isDisposed()?!1:this.pubSub_.publish.apply(this.pubSub_,arguments)};
}catch(e){_._DumpException(e)}
try{
var e3w=function(){_.fZ("ypcRedeemFlowStarted")},zE=function(F){_.fZ("ypcRedeemFlowFailed",void 0,void 0,void 0,F)},MKx=function(F,W,E){W&&E&&(F.videos.forEach(function(h){h.videoId===W&&(h.itemId=E)}),F.recommendedVideos.forEach(function(h){h.videoId===W&&(h.itemId=E)}))};var gyu;var QPg;/*

Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
_.k3({_template:function(){if(QPg!==void 0)return QPg;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-image--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_image.tp.yt.iron.image.css.js--\x3e<a id="baseURIAnchor" href="#" class="style-scope tp-yt-iron-image"></a>\n<div id="sizedImgDiv" role="img" hidden$="[[_computeImgDivHidden(sizing)]]" aria-hidden$="[[_computeImgDivARIAHidden(alt)]]" aria-label$="[[_computeImgDivARIALabel(alt, src)]]" class="style-scope tp-yt-iron-image"></div>\n<img id="img" alt$="[[alt]]" hidden$="[[_computeImgHidden(sizing)]]" crossorigin$="[[crossorigin]]" on-load="_imgOnLoad" on-error="_imgOnError" class="style-scope tp-yt-iron-image">\n<div id="placeholder" hidden$="[[_computePlaceholderHidden(preload, fade, loading, loaded)]]" class$="[[_computePlaceholderClassName(preload, fade, loading, loaded)]] style-scope tp-yt-iron-image"></div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);var W=F.content,E=W.insertBefore;gyu===void 0&&(gyu=document.createElement("template"));var h=gyu;E.call(W,h.content.cloneNode(!0),F.content.firstChild);return QPg=F},
is:"tp-yt-iron-image",properties:{src:{type:String,value:""},alt:{type:String,value:null},crossorigin:{type:String,value:null},preventLoad:{type:Boolean,value:!1},sizing:{type:String,value:null,reflectToAttribute:!0},position:{type:String,value:"center"},preload:{type:Boolean,value:!1},placeholder:{type:String,value:null,observer:"_placeholderChanged"},fade:{type:Boolean,value:!1},loaded:{notify:!0,readOnly:!0,type:Boolean,value:!1},loading:{notify:!0,readOnly:!0,type:Boolean,value:!1},error:{notify:!0,
readOnly:!0,type:Boolean,value:!1},width:{observer:"_widthChanged",type:Number,value:null},height:{observer:"_heightChanged",type:Number,value:null}},observers:["_transformChanged(sizing, position)","_loadStateObserver(src, preventLoad)"],created:function(){this._resolvedSrc=""},
_imgOnLoad:function(){this.$.img.src===this._resolveSrc(this.src)&&(this._setLoading(!1),this._setLoaded(!0),this._setError(!1))},
_imgOnError:function(){this.$.img.src===this._resolveSrc(this.src)&&(this.$.img.removeAttribute("src"),this.$.sizedImgDiv.style.backgroundImage="",this._setLoading(!1),this._setLoaded(!1),this._setError(!0))},
_computePlaceholderHidden:function(){return!this.preload||!this.fade&&!this.loading&&this.loaded},
_computePlaceholderClassName:function(){return this.preload&&this.fade&&!this.loading&&this.loaded?"faded-out":""},
_computeImgDivHidden:function(){return!this.sizing},
_computeImgDivARIAHidden:function(){return this.alt===""?"true":void 0},
_computeImgDivARIALabel:function(){return this.alt!==null?this.alt:this.src===""?"":this._resolveSrc(this.src).replace(/[?|#].*/g,"").split("/").pop()},
_computeImgHidden:function(){return!!this.sizing},
_widthChanged:function(){this.style.width=isNaN(this.width)?this.width:this.width+"px"},
_heightChanged:function(){this.style.height=isNaN(this.height)?this.height:this.height+"px"},
_loadStateObserver:function(F,W){var E=this._resolveSrc(F);E!==this._resolvedSrc&&(this._resolvedSrc="",this.$.img.removeAttribute("src"),this.$.sizedImgDiv.style.backgroundImage="",F===""||W?this._setLoading(!1):(this._resolvedSrc=E,this.$.img.src=this._resolvedSrc,this.$.sizedImgDiv.style.backgroundImage='url("'+this._resolvedSrc+'")',this._setLoading(!0)),this._setLoaded(!1),this._setError(!1))},
_placeholderChanged:function(){this.$.placeholder.style.backgroundImage=this.placeholder?'url("'+this.placeholder+'")':""},
_transformChanged:function(){var F=this.$.sizedImgDiv.style,W=this.$.placeholder.style;F.backgroundSize=W.backgroundSize=this.sizing;F.backgroundPosition=W.backgroundPosition=this.sizing?this.position:"";F.backgroundRepeat=W.backgroundRepeat=this.sizing?"no-repeat":""},
_resolveSrc:function(F){F=_.VQ(F,this.$.baseURIAnchor.href);F.length>=2&&F[0]==="/"&&F[1]!=="/"&&(F=(location.origin||location.protocol+"//"+location.host)+F);return F}});var z3N;var tK6;_.k3({_template:function(){if(tK6!==void 0)return tK6;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-card--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_card.tp.yt.paper.card.css.js--\x3e<div class="header style-scope tp-yt-paper-card">\n  <tp-yt-iron-image hidden$="[[!image]]" aria-hidden$="[[_isHidden(image)]]" src="[[image]]" alt="[[alt]]" placeholder="[[placeholderImage]]" preload="[[preloadImage]]" fade="[[fadeImage]]" class="style-scope tp-yt-paper-card"></tp-yt-iron-image>\n  <div hidden$="[[!heading]]" class$="title-text [[_computeHeadingClass(image)]] style-scope tp-yt-paper-card">\n    [[heading]]\n  </div>\n</div>\n\n<slot class="style-scope tp-yt-paper-card"></slot>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);var W=F.content,E=W.insertBefore;z3N===void 0&&(z3N=document.createElement("template"));var h=z3N;E.call(W,h.content.cloneNode(!0),F.content.firstChild);return tK6=F},
is:"tp-yt-paper-card",properties:{heading:{type:String,value:"",observer:"_headingChanged"},image:{type:String,value:""},alt:{type:String},preloadImage:{type:Boolean,value:!1},fadeImage:{type:Boolean,value:!1},placeholderImage:{type:String,value:null},elevation:{type:Number,value:1,reflectToAttribute:!0},animatedShadow:{type:Boolean,value:!1},animated:{type:Boolean,reflectToAttribute:!0,readOnly:!0,computed:"_computeAnimated(animatedShadow)"}},_isHidden:function(F){return F?"false":"true"},
_headingChanged:function(F){var W=this.getAttribute("heading"),E=this.getAttribute("aria-label");typeof E==="string"&&E!==W||this.setAttribute("aria-label",F)},
_computeHeadingClass:function(F){return F?" over-image":""},
_computeAnimated:function(F){return F}});var C$q=new _.S("addRendererToItemSectionAction");var Bx$;var tK=function(){return _.n.apply(this,arguments)||this};
_.k(tK,_.n);tK.prototype.configureRendererStamper=function(){return{"data.actionMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],tK.prototype,"rendererBehavior",void 0);_.T([_.J(_.O9),_.Y("design:type",Object)],tK.prototype,"dismissibleItemBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],tK.prototype,"rendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],tK.prototype,"data",void 0);tK=_.T([_.y({is:"ytd-comment-history-entry-renderer",disableElementRegistration:!0})],tK);
_.r(tK,"ytd-comment-history-entry-renderer",function(){if(Bx$!==void 0)return Bx$;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-history-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="main style-scope ytd-comment-history-entry-renderer">\n  <yt-formatted-string class="summary style-scope ytd-comment-history-entry-renderer" link-inherit-color="" text="[[data.summary]]"></yt-formatted-string>\n  <ytd-expander class="content-expander style-scope ytd-comment-history-entry-renderer" hidden="[[!data.content]]" max-number-of-lines="4">\n    <yt-formatted-string class="content style-scope ytd-comment-history-entry-renderer" slot="content" force-default-style="" split-lines="" text="[[data.content]]">\n    </yt-formatted-string>\n    <span class="more-button style-scope ytd-comment-history-entry-renderer" slot="more-button">[[getSimpleString(data.readMoreText)]]</span>\n    <span class="less-button style-scope ytd-comment-history-entry-renderer" slot="less-button">[[getSimpleString(data.showLessText)]]</span>\n  </ytd-expander>\n  <yt-formatted-string class="timestamp style-scope ytd-comment-history-entry-renderer" text="[[data.timestamp]]"></yt-formatted-string>\n</div>\n<div id="menu" class="style-scope ytd-comment-history-entry-renderer"></div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return Bx$=F},{mode:1});var vy6;_.Hr("itemSectionRenderer","notificationRenderer","ytd-notification-renderer");_.Hr("multiPageMenuSectionItems","notificationRenderer","ytd-notification-renderer");var Cm=function(){return _.n.apply(this,arguments)||this};
_.k(Cm,_.n);_.N=Cm.prototype;_.N.configureRendererStamper=function(){return{"data.contextualMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.highPriorityNotificationActionButton":{id:"call-to-action",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.N.onKeyUp=function(F){if(F.keyCode===13)this.onTap()};
_.N.onTap=function(){this.data.recordClickEndpoint&&_.WZ().resolve(_.EJ).resolveCommand(this.data.recordClickEndpoint,{form:{element:this.hostElement}});var F=this.data.navigationEndpoint;F&&_.D(F,_.bE)&&_.WZ().resolve(_.EJ).resolveCommand(F,{form:{element:this.hostElement}})};
_.N.readChanged=function(){var F;_.Wm(this.hostElement,"unread",!((F=this.data)==null?0:F.read))};
_.N.dataChanged=function(){this.data&&_.Wm(this.hostElement,"high-priority-notification",!!this.data.highPriorityNotification)};
_.N.computeThumbnailSize=function(){var F;return((F=this.data)==null?0:F.highPriorityNotification)?32:48};
_.N.getEndpointURL=function(F){return F&&!_.D(F,_.bE)?this.componentBehavior.computeHref_(F):null};
_.N.getEndpointData=function(F){return F&&!_.D(F,_.bE)?F:null};
Cm.prototype.computeThumbnailSize=Cm.prototype.computeThumbnailSize;Cm.prototype.dataChanged=Cm.prototype.dataChanged;Cm.prototype.readChanged=Cm.prototype.readChanged;Cm.prototype.onKeyUp=Cm.prototype.onKeyUp;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Cm.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],Cm.prototype,"ytRendererstamperBehavior",void 0);
_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],Cm.prototype,"componentBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],Cm.prototype,"data",void 0);_.T([_.O({computed:"computeThumbnailSize(data.highPriorityNotification)"}),_.Y("design:type",Number)],Cm.prototype,"thumbnailSize",void 0);_.T([_.R4("keyup"),_.Y("design:type",Function),_.Y("design:paramtypes",[KeyboardEvent]),_.Y("design:returntype")],Cm.prototype,"onKeyUp",null);
_.T([_.ea("data.read"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Cm.prototype,"readChanged",null);_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Cm.prototype,"dataChanged",null);_.T([_.ea("data.highPriorityNotification"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Cm.prototype,"computeThumbnailSize",null);
Cm=_.T([_.y({is:"ytd-notification-renderer",disableElementRegistration:!0})],Cm);
_.r(Cm,"ytd-notification-renderer",function(){if(vy6!==void 0)return vy6;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-notification-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-notification-renderer" href$="[[getEndpointURL(data.navigationEndpoint)]]" data="[[getEndpointData(data.navigationEndpoint)]]" on-tap="onTap" tabindex="0" role="link">\n  <div id="new" class="style-scope ytd-notification-renderer"></div>\n  <yt-img-shadow id="avatar" class="thumbnail  style-scope ytd-notification-renderer" height="[[thumbnailSize]]" thumbnail="[[data.thumbnail]]" width="[[thumbnailSize]]">\n  </yt-img-shadow>\n  <div class="text style-scope ytd-notification-renderer">\n    <yt-formatted-string class="message style-scope ytd-notification-renderer" text="[[data.shortMessage]]"></yt-formatted-string>\n    <div id="call-to-action" hidden="[[!data.highPriorityNotificationActionButton]]" class="style-scope ytd-notification-renderer"></div>\n    <div class="metadata style-scope ytd-notification-renderer">\n      <yt-formatted-string text="[[data.footer]]" class="style-scope ytd-notification-renderer"></yt-formatted-string>\n      <yt-formatted-string text="[[data.sentTimeText]]" class="style-scope ytd-notification-renderer"></yt-formatted-string>\n    </div>\n  </div>\n  <template is="dom-if" if="[[data.videoThumbnail]]" class="style-scope ytd-notification-renderer">\n    <div class="thumbnail-container style-scope ytd-notification-renderer">\n      <yt-img-shadow thumbnail="[[data.videoThumbnail]]" width="86" class="style-scope ytd-notification-renderer"></yt-img-shadow>\n    </div>\n  </template>\n</a>\n<div id="menu" class="style-scope ytd-notification-renderer"></div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return vy6=F},{mode:1});var Igu;var B8=function(){return _.n.apply(this,arguments)||this};
_.k(B8,_.n);B8.prototype.configureRendererStamper=function(){return{"data.collection":{id:"dropdown",mapping:{sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer"}}},"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
B8.prototype.computeActionButtonClass=function(F){return!F.actionButtons||F.actionButtons.length<=1?"single-button":F.description?"vertical-buttons":"horizontal-buttons"};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],B8.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],B8.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],B8.prototype,"data",void 0);B8=_.T([_.y({is:"ytd-playlist-show-metadata-renderer",disableElementRegistration:!0})],B8);
_.r(B8,"ytd-playlist-show-metadata-renderer",function(){if(Igu!==void 0)return Igu;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-show-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content-desc" class="style-scope ytd-playlist-show-metadata-renderer">\n  <div id="dropdown" class="style-scope ytd-playlist-show-metadata-renderer"></div>\n  <ytd-expander class="description style-scope ytd-playlist-show-metadata-renderer" max-number-of-lines="2">\n    <yt-formatted-string id="description" class="content style-scope ytd-playlist-show-metadata-renderer" slot="content" split-lines="" text="[[data.description]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="more-button style-scope ytd-playlist-show-metadata-renderer" slot="more-button" role="button" text="[[data.showMoreText]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="less-button style-scope ytd-playlist-show-metadata-renderer" slot="less-button" role="button" text="[[data.showLessText]]">\n    </yt-formatted-string>\n  </ytd-expander>\n</div>\n<div id="action-buttons" class$="[[computeActionButtonClass(data)]] style-scope ytd-playlist-show-metadata-renderer"></div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return Igu=F},{mode:1});var c4$;_.Hr("itemSectionRenderer","purchaseItemRenderer","ytd-purchase-item-renderer");var v8=function(){return _.n.apply(this,arguments)||this};
_.k(v8,_.n);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],v8.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],v8.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],v8.prototype,"data",void 0);v8=_.T([_.y({is:"ytd-purchase-item-renderer",disableElementRegistration:!0})],v8);
_.r(v8,"ytd-purchase-item-renderer",function(){if(c4$!==void 0)return c4$;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-purchase-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint purchase-endpoint style-scope ytd-purchase-item-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <div class="thumb-container style-scope ytd-purchase-item-renderer">\n    <yt-img-shadow fit="" thumbnail="[[data.thumbnail]]" class="style-scope ytd-purchase-item-renderer"></yt-img-shadow>\n  </div>\n  <div class="details style-scope ytd-purchase-item-renderer">\n    <yt-formatted-string class="title style-scope ytd-purchase-item-renderer" text="[[data.title]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="price-text style-scope ytd-purchase-item-renderer" no-endpoints="" text="[[data.priceText]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="manage-subscription-text style-scope ytd-purchase-item-renderer" force-default-style="" text="[[data.manageSubscriptionText]]">\n    </yt-formatted-string>\n  </div>\n</a>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return c4$=F},{mode:1});var Dfg;var xfg={};xfg.YtSimpleTextSectionBehavior={properties:{data:Object,layoutStyle:{type:String,computed:"computeLayoutStyle_(data.layoutStyle)",reflectToAttribute:!0},role:{type:String,computed:"computeRole_(data.layoutStyle)",reflectToAttribute:!0}},created:function(){this.LAYOUT_STYLE_PREFIX_="SIMPLE_TEXT_LAYOUT_STYLE_"},
computeLayoutStyle_:function(F){if(F)return F.replace(this.LAYOUT_STYLE_PREFIX_,"").replace(/_/g,"-").toLowerCase()},
computeRole_:function(F){if(F==="SIMPLE_TEXT_LAYOUT_STYLE_PAID_SUBSCRIPTION_TITLE")return"heading"}};_.Hr("itemSectionRenderer","simpleTextSectionRenderer","ytd-simple-text-section-renderer");var Iw=function(){return _.n.apply(this,arguments)||this};
_.k(Iw,_.n);Iw.prototype.onYtNavigate=function(F){var W=this.openPopupBehavior.getNavigationEndpointPopupAction(F.detail.endpoint);W&&(F.stopPropagation(),this.openPopupBehavior.openPopup(W))};
Iw.prototype.onYtNavigate=Iw.prototype.onYtNavigate;_.T([_.J(xfg.YtSimpleTextSectionBehavior),_.Y("design:type",Object)],Iw.prototype,"ytSimpleTextSectionBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Iw.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Gf),_.Y("design:type",Object)],Iw.prototype,"openPopupBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],Iw.prototype,"data",void 0);
_.T([_.R4("yt-navigate"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Iw.prototype,"onYtNavigate",null);Iw=_.T([_.y({is:"ytd-simple-text-section-renderer",disableElementRegistration:!0})],Iw);
_.r(Iw,"ytd-simple-text-section-renderer",function(){if(Dfg!==void 0)return Dfg;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-simple-text-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" items="[[data.lines]]" class="style-scope ytd-simple-text-section-renderer">\n  <yt-formatted-string class="text style-scope ytd-simple-text-section-renderer" text="[[item]]"></yt-formatted-string>\n</template>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return Dfg=F},{mode:1});var kuK;_.Hr("itemSectionRenderer","unlimitedPageFeatureInfoRenderer","ytd-unlimited-page-feature-info-renderer");var c8=function(){return _.n.apply(this,arguments)||this};
_.k(c8,_.n);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],c8.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],c8.prototype,"data",void 0);c8=_.T([_.y({is:"ytd-unlimited-page-feature-info-renderer",disableElementRegistration:!0})],c8);
_.r(c8,"ytd-unlimited-page-feature-info-renderer",function(){if(kuK!==void 0)return kuK;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-unlimited-page-feature-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="content style-scope ytd-unlimited-page-feature-info-renderer">\n  <yt-formatted-string class="info-head style-scope ytd-unlimited-page-feature-info-renderer" text="[[data.title]]"></yt-formatted-string>\n  <template is="dom-repeat" items="[[data.descriptions]]" class="style-scope ytd-unlimited-page-feature-info-renderer">\n    <yt-formatted-string class="info-desc style-scope ytd-unlimited-page-feature-info-renderer" text="[[item]]"></yt-formatted-string>\n  </template>\n</div>\n<yt-img-shadow class="icon-thumbnail style-scope ytd-unlimited-page-feature-info-renderer" height="194" thumbnail="[[data.iconThumbnail]]" width="390">\n</yt-img-shadow>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return kuK=F},{mode:1});var A4K;var sPK;var DF=function(){return _.n.apply(this,arguments)||this};
_.k(DF,_.n);DF.prototype.dataChanged=function(){if(this.data){var F=this.get("background.thumbnailLandscapePortraitRenderer.portrait.thumbnails",this.data);F&&(F=_.m_(F,screen.width),this.hostElement.style.backgroundImage="url("+F+")")}};
DF.prototype.dataChanged=DF.prototype.dataChanged;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],DF.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],DF.prototype,"data",void 0);_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],DF.prototype,"dataChanged",null);DF=_.T([_.y({is:"ytd-post-redemption-section-renderer",disableElementRegistration:!0})],DF);
_.r(DF,"ytd-post-redemption-section-renderer",function(){if(sPK!==void 0)return sPK;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-post-redemption-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="img-container style-scope ytd-post-redemption-section-renderer">\n  <yt-img-shadow id="logo" height="25" thumbnail="[[data.logoImage.thumbnailLandscapePortraitRenderer.portrait]]" class="style-scope ytd-post-redemption-section-renderer">\n  </yt-img-shadow>\n</div>\n<div class="container style-scope ytd-post-redemption-section-renderer">\n  <div class="title style-scope ytd-post-redemption-section-renderer">[[getSimpleString(data.title)]]</div>\n  <ytd-button-renderer id="redeem-button" data="[[data.button.buttonRenderer]]" class="style-scope ytd-post-redemption-section-renderer">\n  </ytd-button-renderer>\n</div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return sPK=F},{mode:1});var LQK;var x1=function(){return _.n.apply(this,arguments)||this};
_.k(x1,_.n);x1.prototype.configureRendererStamper=function(){return{"data.sections":{id:"contents",mapping:{postRedemptionSectionRenderer:{component:"ytd-post-redemption-section-renderer",noInjection:!0}}}}};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],x1.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],x1.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],x1.prototype,"data",void 0);x1=_.T([_.y({is:"ytd-ypc-post-redemption-renderer",disableElementRegistration:!0})],x1);
_.r(x1,"ytd-ypc-post-redemption-renderer",function(){if(LQK!==void 0)return LQK;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ypc-post-redemption-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="store-value-balance" class="style-scope ytd-ypc-post-redemption-renderer">[[getSimpleString(data.storeValueBalance)]]</div>\n<div id="contents" class="style-scope ytd-ypc-post-redemption-renderer"></div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return LQK=F},{mode:1});_.Hr("itemSectionRenderer","redeemCodeRenderer","ytd-redeem-code-renderer");var k1=function(){var F=_.n.apply(this,arguments)||this;F.MIN_CODE_LENGTH=12;F.MAX_CODE_LENGTH=24;return F};
_.k(k1,_.n);_.N=k1.prototype;_.N.configureRendererStamper=function(){return{postRedemptionRenderer:{id:"success-page",mapping:{ypcPostRedemptionRenderer:"ytd-ypc-post-redemption-renderer"}}}};
_.N.created=function(){this.riskService=new _.Mor;this.loadPaymentThenable=_.Q5I(_.b0("YPC_MB_URL"))};
_.N.ready=function(){var F=this;this.code.addEventListener("keypress",function(W){F.onCodeInputKeypress(W)})};
_.N.dataChanged=function(){var F=this;this.redeemButtonDisabled=!0;this.observer=new MutationObserver(function(W){W=_.U(W);for(var E=W.next();!E.done;E=W.next())E=E.value,E.type==="attributes"&&E.attributeName==="dark"&&F.updateBackground()});
this.observer.observe(document.documentElement,{attributes:!0});this.updateBackground()};
_.N.updateBackground=function(){if(document.documentElement.hasAttribute("dark"))this.hostElement.style.setProperty("background-image","none");else{var F=this.computeImageUrl(this.data.thumbnail);this.hostElement.style.setProperty("background-image","url("+F+")")}};
_.N.computeRedeemButton=function(F){(F=this.get("redeemButton.buttonRenderer",F))&&(F=Object.assign({},F,{serviceEndpoint:void 0}));return F};
_.N.onRedeemButtonTap=function(F){F.stopPropagation();e3w();this.redeemCode()};
_.N.redeemCode=function(){var F=this;this.isLoading=!0;var W=this.riskService.init();_.X8([W,this.loadPaymentThenable]).then(function(){var E=F.data.redeemButton.buttonRenderer.serviceEndpoint,h=_.gLG(),d=payments.business.integration.ClientTokenFactory.createClientToken(_.D(E,_.hBX).countryCode,h);h={c:F.code.value.trim(),rd:window.btoa(h),ctk:d};E&&_.WZ().resolve(_.EJ).resolveCommand(E,{form:Object.assign({},h,{element:F.hostElement})})},function(){F.showGenericError();
zE("YPC_ERROR_REASON_RISK_LIB_LOAD_FAILURE")}).thenCatch(function(){_.nW(Error("Tl"))})};
_.N.onYtServiceRequestCompleted=function(F){F.stopPropagation();this.isLoading=!1;var W,E;this.errorMessage=(W=F.detail)==null?void 0:(E=W.data)==null?void 0:E.errorMessage;var h,d;this.postRedemptionRenderer=(h=F.detail)==null?void 0:(d=h.data)==null?void 0:d.renderer;var V,R;if(F=(V=F.detail)==null?void 0:(R=V.data)==null?void 0:R.redirectEndpoint)this.isLoading=!0,_.hF(this.hostElement,"yt-navigate",{endpoint:F});this.errorMessage?zE("YPC_ERROR_REASON_REDEEM_INNERTUBE_FAILURE"):(this.postRedemptionRenderer||
F)&&_.fZ("ypcRedeemFlowSucceeded")};
_.N.onYtServiceRequestError=function(F){F.stopPropagation();this.isLoading=!1;if(F=this.get("detail.error.message",F))this.errorMessage=_.Gr(F);zE("YPC_ERROR_REASON_YPC_REDEEM_CODE_RPC_FAILURE")};
_.N.onInvokeInstrumentManagerActionCompleted=function(F){F.stopPropagation();this.redeemCode()};
_.N.onInvokeInstrumentManagerActionError=function(F){F.stopPropagation();this.isLoading=!1;switch(this.get("detail.error.errorCode",F)){case "instrumentManagerLoadError":this.showGenericError();zE("YPC_ERROR_REASON_INST_MANAGER_LOAD_FAILURE");break;case "instrumentManagerCallbackError":this.showGenericError();zE("YPC_ERROR_REASON_INST_MANAGER_CALLBACK_FAILURE");break;case "instrumentManagerCancelled":_.fZ("ypcRedeemFlowCancelled")}};
_.N.onInput=function(){var F=this;_.OO(this,"onInput",function(){var W=F.code.value.trim();F.redeemButtonDisabled=W.length<F.MIN_CODE_LENGTH||W.length>F.MAX_CODE_LENGTH},200)};
_.N.onCodeInputKeypress=function(F){F.keyCode!==13||this.redeemButtonDisabled||this.isLoading||(e3w(),this.redeemCode())};
_.N.computeImageUrl=function(F){return F?_.m_(F.thumbnails,600):null};
_.N.showGenericError=function(){this.isLoading=!1;this.errorMessage=this.get("errorMessage",this.data)};
k1.prototype.onInvokeInstrumentManagerActionError=k1.prototype.onInvokeInstrumentManagerActionError;k1.prototype.onInvokeInstrumentManagerActionCompleted=k1.prototype.onInvokeInstrumentManagerActionCompleted;k1.prototype.onYtServiceRequestError=k1.prototype.onYtServiceRequestError;k1.prototype.onYtServiceRequestCompleted=k1.prototype.onYtServiceRequestCompleted;k1.prototype.dataChanged=k1.prototype.dataChanged;
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],k1.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],k1.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],k1.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],k1.prototype,"isLoading",void 0);_.T([_.O(),_.Y("design:type",Boolean)],k1.prototype,"redeemButtonDisabled",void 0);
_.T([_.O(),_.Y("design:type",Object)],k1.prototype,"errorMessage",void 0);_.T([_.O(),_.Y("design:type",Object)],k1.prototype,"postRedemptionRenderer",void 0);_.T([_.O(),_.Y("design:type",Object)],k1.prototype,"observer",void 0);_.T([_.gQ("#code"),_.Y("design:type",HTMLInputElement)],k1.prototype,"code",void 0);_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],k1.prototype,"dataChanged",null);
_.T([_.R4("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],k1.prototype,"onYtServiceRequestCompleted",null);_.T([_.R4("yt-service-request-error"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],k1.prototype,"onYtServiceRequestError",null);
_.T([_.R4("yt-invoke-instrument-manager-action-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],k1.prototype,"onInvokeInstrumentManagerActionCompleted",null);_.T([_.R4("yt-invoke-instrument-manager-action-error"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],k1.prototype,"onInvokeInstrumentManagerActionError",null);k1=_.T([_.y({is:"ytd-redeem-code-renderer",disableElementRegistration:!0})],k1);
_.r(k1,"ytd-redeem-code-renderer",function(){if(A4K!==void 0)return A4K;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-redeem-code-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="main" hidden="[[postRedemptionRenderer]]" class="style-scope ytd-redeem-code-renderer">\n  <div class="title style-scope ytd-redeem-code-renderer">[[getSimpleString(data.title)]]</div>\n  <div class="subtitle style-scope ytd-redeem-code-renderer">[[getSimpleString(data.subTitle)]]</div>\n  <input id="code" type="text" autocomplete="off" maxlength="24" on-input="onInput" size="24" placeholder="[[getSimpleString(data.placeholderText)]]" slot="input" class="style-scope ytd-redeem-code-renderer">\n  <yt-formatted-string id="error-message" hidden="[[!errorMessage]]" text="[[errorMessage]]" class="style-scope ytd-redeem-code-renderer">\n      </yt-formatted-string>\n  <yt-formatted-string id="terms" text="[[data.termsConditions]]" class="style-scope ytd-redeem-code-renderer"></yt-formatted-string>\n  \n  <ytd-button-renderer id="redeem-button" data="[[computeRedeemButton(data)]]" disabled="[[redeemButtonDisabled]]" on-tap="onRedeemButtonTap" class="style-scope ytd-redeem-code-renderer">\n  </ytd-button-renderer>\n</div>\n<div id="success-page" class="style-scope ytd-redeem-code-renderer"></div>\n<tp-yt-paper-spinner-lite id="loading" active="[[isLoading]]" class="style-scope ytd-redeem-code-renderer">\n</tp-yt-paper-spinner-lite>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return A4K=F},{mode:1});var q$K;_.Hr("itemSectionRenderer","channelAboutFullMetadataRenderer","ytd-channel-about-metadata-renderer");var AK=function(){var F=_.n.apply(this,arguments)||this;F.businessEmailDisplayState="HIDE_SECTION";return F};
_.k(AK,_.n);_.N=AK.prototype;_.N.configureRendererStamper=function(){return{"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.links":{id:"link-list-container",mapping:{channelExternalLinkViewModel:{component:"yt-channel-external-link-view-model",params:{useSmallFont:!0}}}}}};
_.N.dataChanged=function(){this.data&&(this.data.businessEmailButton||this.data.signInForBusinessEmail)?this.data.signInForBusinessEmail?this.businessEmailDisplayState="SIGN_IN_REQUIRED":this.businessEmailErrorMessage?this.businessEmailDisplayState="ERROR_MESSAGE":(this.businessEmailDisplayState="REVEAL_BUTTON",this.data.businessEmail&&(this.businessEmail=this.data.businessEmail)):this.businessEmailDisplayState="HIDE_SECTION"};
_.N.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.N.onBusinessEmailClick=function(){this.data&&(this.data.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.lI("https://www.google.com/recaptcha/api.js?trustedtypes=true"),this.businessEmailDisplayState="CAPTCHA"))};
_.N.onYtServiceRequestCompleted=function(F){var W;if((W=F.detail.data)==null?0:W.businessEmail)this.businessEmail=F.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var E;if((E=F.detail.data)==null?0:E.errorMessage)this.businessEmailErrorMessage=F.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.N.computeEmailHref=function(F){return"mailto:"+F};
_.N.computeSafeUrl=function(F){if(F)return _.II(F)};
_.N.onBusinessEmailCaptchaSubmit=function(){var F;(F=this.data)!=null&&F.onBusinessEmailRevealClickCommand&&(F=this.JSC$19004_captchaTextarea.value)&&(F={recaptcha_response_token:F,channel_id:this.data.channelId},_.WZ().resolve(_.EJ).resolveCommand(this.data.onBusinessEmailRevealClickCommand,{form:Object.assign({},F,{element:this.hostElement})}))};
_.N.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.Sn.Object.defineProperties(AK.prototype,{hideDetailsSection:{configurable:!0,enumerable:!0,get:function(){return!this.data||!this.data.country&&!this.data.businessEmailButton}},
shouldShowNewLinks:{configurable:!0,enumerable:!0,get:function(){var F,W;return!((F=this.data)==null||!F.primaryLinks)&&!((W=this.data)==null?0:W.links)&&this.data.primaryLinks.every(function(E){return E.displayUrl})}},
shouldShowLegacyLinks:{configurable:!0,enumerable:!0,get:function(){var F,W;return!((F=this.data)==null||!F.primaryLinks)&&!((W=this.data)==null?0:W.links)&&!this.shouldShowNewLinks}}});
AK.prototype.onYtServiceRequestCompleted=AK.prototype.onYtServiceRequestCompleted;AK.prototype.dataChanged=AK.prototype.dataChanged;_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],AK.prototype,"ytComponentBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],AK.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],AK.prototype,"ytRendererstamperBehavior",void 0);
_.T([_.gQ("#g-recaptcha-response"),_.Y("design:type",HTMLTextAreaElement)],AK.prototype,"JSC$19004_captchaTextarea",void 0);_.T([_.O(),_.Y("design:type",Object)],AK.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",String)],AK.prototype,"businessEmailDisplayState",void 0);_.T([_.O(),_.Y("design:type",String)],AK.prototype,"businessEmail",void 0);_.T([_.O(),_.Y("design:type",String)],AK.prototype,"businessEmailErrorMessage",void 0);
_.T([_.a("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],AK.prototype,"hideDetailsSection",null);_.T([_.Cz("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],AK.prototype,"dataChanged",null);_.T([_.a("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],AK.prototype,"shouldShowNewLinks",null);_.T([_.a("data","shouldShowLinks"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],AK.prototype,"shouldShowLegacyLinks",null);
_.T([_.R4("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],AK.prototype,"onYtServiceRequestCompleted",null);AK=_.T([_.y({is:"ytd-channel-about-metadata-renderer",disableElementRegistration:!0})],AK);
_.r(AK,"ytd-channel-about-metadata-renderer",function(){if(q$K!==void 0)return q$K;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-about-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="left-column" class="style-scope ytd-channel-about-metadata-renderer">\n  <div id="description-container" hidden="[[!data.description]]" class="style-scope ytd-channel-about-metadata-renderer">\n    <yt-formatted-string class="subheadline style-scope ytd-channel-about-metadata-renderer" text="[[data.descriptionLabel]]">\n    </yt-formatted-string>\n    <yt-formatted-string id="description" split-lines="" text="[[data.description]]" class="style-scope ytd-channel-about-metadata-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="bio-container" hidden="[[!data.artistBio]]" class="style-scope ytd-channel-about-metadata-renderer">\n    <yt-formatted-string class="subheadline style-scope ytd-channel-about-metadata-renderer" text="[[data.artistBioLabel]]">\n    </yt-formatted-string>\n    <yt-formatted-string id="bio" split-lines="" text="[[data.artistBio]]" class="style-scope ytd-channel-about-metadata-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="photos-container" hidden="[[!data.artistGalleryPhotos]]" class="style-scope ytd-channel-about-metadata-renderer">\n    <yt-formatted-string class="subheadline style-scope ytd-channel-about-metadata-renderer" text="[[data.artistGalleryLabel]]">\n    </yt-formatted-string>\n    <div id="photos" class="style-scope ytd-channel-about-metadata-renderer">\n      <template is="dom-repeat" items="[[data.artistGalleryPhotos]]" strip-whitespace="" class="style-scope ytd-channel-about-metadata-renderer">\n        <a href="[[computeSafeUrl(item.originalPhotoUrl)]]" target="_blank" class="style-scope ytd-channel-about-metadata-renderer">\n          <img src$="[[computeSafeUrl(item.thumbnailUrl)]]" alt="" class="style-scope ytd-channel-about-metadata-renderer">\n        </a>\n      </template>\n    </div>\n  </div>\n  <div id="details-container" hidden="[[hideDetailsSection]]" class="style-scope ytd-channel-about-metadata-renderer">\n     <yt-formatted-string class="subheadline style-scope ytd-channel-about-metadata-renderer" text="[[data.detailsLabel]]">\n    </yt-formatted-string>\n    <table class="style-scope ytd-channel-about-metadata-renderer">\n      <tbody class="style-scope ytd-channel-about-metadata-renderer"><tr hidden="[[equals(businessEmailDisplayState, \'HIDE_SECTION\')]]" class="style-scope ytd-channel-about-metadata-renderer">\n        <td class="label style-scope ytd-channel-about-metadata-renderer">\n          <yt-formatted-string text="[[data.businessEmailLabel]]" class="style-scope ytd-channel-about-metadata-renderer"></yt-formatted-string>\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'SIGN_IN_REQUIRED\')]]" class="style-scope ytd-channel-about-metadata-renderer">\n          <yt-formatted-string text="[[data.signInForBusinessEmail]]" class="style-scope ytd-channel-about-metadata-renderer"></yt-formatted-string>\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'REVEAL_BUTTON\')]]" class="style-scope ytd-channel-about-metadata-renderer">\n          <ytd-button-renderer align-by-text="" data="[[data.businessEmailButton.buttonRenderer]]" on-click="onBusinessEmailClick" class="style-scope ytd-channel-about-metadata-renderer">\n          </ytd-button-renderer>\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'CAPTCHA\')]]" class="style-scope ytd-channel-about-metadata-renderer">\n          \n          <div id="recaptcha" class="g-recaptcha style-scope ytd-channel-about-metadata-renderer" data-sitekey$="[[recaptchaSiteKey()]]"></div>\n          <button id="submit-btn" class="yt-uix-button yt-uix-button-size-default yt-uix-button-primary style-scope ytd-channel-about-metadata-renderer" on-click="onBusinessEmailCaptchaSubmit">\n            <span class="yt-uix-button-content style-scope ytd-channel-about-metadata-renderer">\n              <yt-formatted-string text="[[data.businessEmailRevealSubmitButtonLabel]]" class="style-scope ytd-channel-about-metadata-renderer">\n              </yt-formatted-string>\n            </span>\n          </button>\n        </td>\n        <td hidden="[[!equals(businessEmailDisplayState, \'ERROR_MESSAGE\')]]" class="style-scope ytd-channel-about-metadata-renderer">\n          [[businessEmailErrorMessage]]\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'BUSINESS_EMAIL\')]]" class="style-scope ytd-channel-about-metadata-renderer">\n          <a id="email" href$="[[computeEmailHref(businessEmail)]]" target="_blank" class="style-scope ytd-channel-about-metadata-renderer">[[businessEmail]]</a>\n        </td>\n      </tr>\n      <tr hidden="[[!data.country]]" class="style-scope ytd-channel-about-metadata-renderer">\n        <td class="label style-scope ytd-channel-about-metadata-renderer">\n          <yt-formatted-string text="[[data.countryLabel]]" class="style-scope ytd-channel-about-metadata-renderer"></yt-formatted-string>\n        </td>\n        <td class="style-scope ytd-channel-about-metadata-renderer">\n          <yt-formatted-string text="[[data.country]]" class="style-scope ytd-channel-about-metadata-renderer"></yt-formatted-string>\n        </td>\n      </tr>\n    </tbody></table>\n  </div>\n\n  <div id="links-container" hidden="[[!data.links]]" class="style-scope ytd-channel-about-metadata-renderer">\n    <yt-formatted-string class="subheadline style-scope ytd-channel-about-metadata-renderer" text="[[data.primaryLinksLabel]]">\n    </yt-formatted-string>\n    <div id="link-list-container" class="style-scope ytd-channel-about-metadata-renderer">\n    </div>\n  </div>\n  <div id="new-links-container" hidden="[[!shouldShowNewLinks]]" class="style-scope ytd-channel-about-metadata-renderer">\n    <yt-formatted-string class="subheadline style-scope ytd-channel-about-metadata-renderer" text="[[data.primaryLinksLabel]]">\n    </yt-formatted-string>\n    <div id="custom-link-list-container" class="style-scope ytd-channel-about-metadata-renderer">\n      <template is="dom-repeat" items="[[data.primaryLinks]]" as="link" class="style-scope ytd-channel-about-metadata-renderer">\n        <div class="custom-link style-scope ytd-channel-about-metadata-renderer">\n          <yt-formatted-string class="custom-link-title style-scope ytd-channel-about-metadata-renderer" no-endpoints="" no-style="" text="[[link.title]]">\n          </yt-formatted-string>\n          <a class="yt-simple-endpoint style-scope ytd-channel-about-metadata-renderer" href$="[[computeHref_(link.navigationEndpoint)]]" data="[[link.navigationEndpoint]]">\n            [[link.displayUrl]]\n          </a>\n        </div>\n      </template>\n    </div>\n  </div>\n  <div id="legacy-links-container" hidden="[[!shouldShowLegacyLinks]]" class="style-scope ytd-channel-about-metadata-renderer">\n    <yt-formatted-string class="subheadline style-scope ytd-channel-about-metadata-renderer" text="[[data.primaryLinksLabel]]">\n    </yt-formatted-string>\n    <div id="legacy-link-list-container" class="style-scope ytd-channel-about-metadata-renderer">\n      <template is="dom-repeat" items="[[data.primaryLinks]]" as="link" class="style-scope ytd-channel-about-metadata-renderer">\n        <a class="yt-simple-endpoint style-scope ytd-channel-about-metadata-renderer" href$="[[computeHref_(link.navigationEndpoint)]]" data="[[link.navigationEndpoint]]">\n          <yt-formatted-string class="info-text style-scope ytd-channel-about-metadata-renderer" no-endpoints="" no-style="" text="[[link.title]]">\n          </yt-formatted-string>\n        </a>\n      </template>\n    </div>\n  </div>\n</div>\n<div id="right-column" class="style-scope ytd-channel-about-metadata-renderer">\n  <yt-formatted-string class="subheadline style-scope ytd-channel-about-metadata-renderer" text="[[data.statsLabel]]">\n  </yt-formatted-string>\n  <yt-formatted-string hidden="[[!data.joinedDateText]]" text="[[data.joinedDateText]]" class="style-scope ytd-channel-about-metadata-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string hidden="[[!data.viewCountText]]" no-styles="" text="[[data.viewCountText]]" class="style-scope ytd-channel-about-metadata-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string hidden="[[!data.phoneVerifiedText]]" text="[[data.phoneVerifiedText]]" class="style-scope ytd-channel-about-metadata-renderer">\n  </yt-formatted-string>\n  <div id="action-buttons" class="style-scope ytd-channel-about-metadata-renderer"></div>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return q$K=F},{mode:1});var $fP;_.Hr("itemSectionRenderer","channelFeaturedContentRenderer","ytd-channel-featured-content-renderer");var s1=function(){return _.n.apply(this,arguments)||this};
_.k(s1,_.n);s1.prototype.configureRendererStamper=function(){return{"data.items":{id:"contents",mapping:{channelRenderer:"ytd-channel-renderer",playlistRenderer:"ytd-playlist-renderer",radioRenderer:"ytd-radio-renderer",showRenderer:"ytd-show-renderer",videoRenderer:"ytd-video-renderer"}}}};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],s1.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],s1.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],s1.prototype,"data",void 0);s1=_.T([_.y({is:"ytd-channel-featured-content-renderer",disableElementRegistration:!0})],s1);
_.r(s1,"ytd-channel-featured-content-renderer",function(){if($fP!==void 0)return $fP;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-featured-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-channel-featured-content-renderer">\n  <h3 class="style-scope ytd-channel-featured-content-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-channel-featured-content-renderer"></yt-formatted-string>\n  </h3>\n  <yt-formatted-string id="subtitle" text="[[data.subTitle]]" class="style-scope ytd-channel-featured-content-renderer"></yt-formatted-string>\n</div>\n<div id="contents" class="style-scope ytd-channel-featured-content-renderer"></div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return $fP=F},{mode:1});var ZGT;_.Hr("itemSectionRenderer","clarificationRenderer","ytd-clarification-renderer");var Lm=function(){var F=_.n.apply(this,arguments)||this;F.roundContainer=!0;F.amsterdamEnabled=_.c("enable_desktop_amsterdam_info_panels");return F};
_.k(Lm,_.n);_.N=Lm.prototype;_.N.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.N.dataChanged=function(){this.imageWidth=this.imageHeight=24;var F=this.data;F.style==="CLARIFICATION_RENDERER_STYLE_MEDIUM"?this.imageWidth=this.imageHeight=80:!F.style&&F.image&&F.image.thumbnails.length&&(F=F.image.thumbnails[0],this.imageWidth=F.width||0,this.imageHeight=F.height||0)};
_.N.computeSource=function(F){return F.secondarySource?_.Yr(F.secondarySource):_.Yr(F.source)};
_.N.computeClarifyStyle=function(F){return F?F.replace("CLARIFICATION_RENDERER_STYLE_","").toLowerCase():""};
_.N.isLargeStyle=function(F){return F==="CLARIFICATION_RENDERER_STYLE_LARGE"};
_.N.computeBackgroundStyle=function(F){return F?F.replace("CLARIFICATION_RENDERER_BACKGROUND_","").toLowerCase():""};
_.N.computeHasActionButton=function(F){return!!F.actionButton};
_.N.computeHasBottomSection=function(F){return!!F.ctaHasBottomSection};
_.N.computeIsSourceMissing=function(F){return F.ctaHasBottomSection===!1?!0:F&&this.computeSource(F)?!1:!0};
_.N.computeSecondaryEndpoint=function(F){return F.secondaryEndpoint||F.endpoint};
Lm.prototype.dataChanged=Lm.prototype.dataChanged;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Lm.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],Lm.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],Lm.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Number)],Lm.prototype,"imageWidth",void 0);_.T([_.O(),_.Y("design:type",Number)],Lm.prototype,"imageHeight",void 0);
_.T([_.O({computed:"computeSecondaryEndpoint(data)"}),_.Y("design:type",Object)],Lm.prototype,"secondaryEndpoint",void 0);_.T([_.O({reflectToAttribute:!0,computed:"computeHasActionButton(data)"}),_.Y("design:type",Boolean)],Lm.prototype,"hasActionButton",void 0);_.T([_.O({reflectToAttribute:!0,computed:"computeHasBottomSection(data)"}),_.Y("design:type",Boolean)],Lm.prototype,"hasBottomSection",void 0);
_.T([_.O({reflectToAttribute:!0,computed:"computeIsSourceMissing(data)"}),_.Y("design:type",Boolean)],Lm.prototype,"missingSource",void 0);_.T([_.O({computed:"computeIcon_(data.icon)"}),_.Y("design:type",String)],Lm.prototype,"icon",void 0);_.T([_.O({computed:"computeIcon_(data.secondaryIcon)"}),_.Y("design:type",String)],Lm.prototype,"secondaryIcon",void 0);_.T([_.O({reflectToAttribute:!0,computed:"computeClarifyStyle(data.style)"}),_.Y("design:type",String)],Lm.prototype,"clarifyStyle",void 0);
_.T([_.O({reflectToAttribute:!0,computed:"computeBackgroundStyle(data.background)"}),_.Y("design:type",String)],Lm.prototype,"backgroundStyle",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],Lm.prototype,"roundContainer",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Lm.prototype,"amsterdamEnabled",void 0);_.T([_.Cz("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Lm.prototype,"dataChanged",null);
Lm=_.T([_.y({is:"ytd-clarification-renderer",disableElementRegistration:!0})],Lm);
_.r(Lm,"ytd-clarification-renderer",function(){if(ZGT!==void 0)return ZGT;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-clarification-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-clarification-renderer">\n  \n  <a class="yt-simple-endpoint style-scope ytd-clarification-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]">\n    <yt-icon disable-upgrade$="[[!icon]]" hidden="[[!icon]]" icon="[[icon]]" class="style-scope ytd-clarification-renderer"></yt-icon>\n    <yt-img-shadow height="[[imageHeight]]" hidden="[[!data.image]]" thumbnail="[[data.image]]" width="[[imageWidth]]" class="style-scope ytd-clarification-renderer">\n    </yt-img-shadow>\n  </a>\n  <div class="text style-scope ytd-clarification-renderer">\n    \n    <a id="section-header" class="yt-simple-endpoint style-scope ytd-clarification-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]">\n      <yt-icon disable-upgrade$="[[!icon]]" hidden="[[!icon]]" icon="[[icon]]" class="style-scope ytd-clarification-renderer">\n      </yt-icon>\n      <yt-img-shadow height="[[imageHeight]]" hidden="[[!data.image]]" thumbnail="[[data.image]]" width="[[imageWidth]]" class="style-scope ytd-clarification-renderer">\n      </yt-img-shadow>\n      <yt-formatted-string class="section-title style-scope ytd-clarification-renderer" text="[[data.sectionTitle]]">\n      </yt-formatted-string>\n    </a>\n    <div class="content style-scope ytd-clarification-renderer">\n      <a class="yt-simple-endpoint style-scope ytd-clarification-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]">\n        <div class="content-title style-scope ytd-clarification-renderer">\n          [[getSimpleString(data.contentTitle)]]\n          <yt-icon class="external-link-icon style-scope ytd-clarification-renderer" icon="yt-icons:open_in_new"></yt-icon>\n        </div>\n        <yt-formatted-string class="description style-scope ytd-clarification-renderer" text="[[data.text]]">\n        </yt-formatted-string>\n      </a>\n      <div id="action-button" class="style-scope ytd-clarification-renderer"></div>\n      <div id="menu" class="style-scope ytd-clarification-renderer"></div>\n    </div>\n    <a id="source-link" class="yt-simple-endpoint style-scope ytd-clarification-renderer" href$="[[computeHref_(secondaryEndpoint)]]" data="[[secondaryEndpoint]]">\n      <div class="source style-scope ytd-clarification-renderer">\n        <yt-icon class="secondary-icon style-scope ytd-clarification-renderer" disable-upgrade$="[[!secondaryIcon]]" hidden="[[!secondaryIcon]]" icon="[[secondaryIcon]]">\n        </yt-icon>\n        [[computeSource(data)]]\n        <yt-icon class="external-link-icon style-scope ytd-clarification-renderer" hidden="[[secondaryIcon]]" icon="yt-icons:open_in_new" size="16"></yt-icon>\n      </div>\n    </a>\n  </div>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return ZGT=F},{mode:1});var XCg;var HGN;var qN=function(){var F=_.n.apply(this,arguments)||this;F.amsterdamEnabled=_.c("enable_desktop_amsterdam_info_panels");return F};
_.k(qN,_.n);_.N=qN.prototype;_.N.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.N.computeIcon=function(F){return F?"yt-icons:"+F.toLowerCase():null};
_.N.computeUseContacts=function(F){return!!F.contacts&&F.contacts.length>0};
_.N.computePhoneContact=function(F){var W,E;return(W=F.contacts)==null?void 0:(E=W.find(function(h){var d;return(h==null?void 0:(d=h.icon)==null?void 0:d.iconType)==="PHONE"}))==null?void 0:E.actionText};
_.N.computeSmsContact=function(F){var W,E;return(W=F.contacts)==null?void 0:(E=W.find(function(h){var d;return(h==null?void 0:(d=h.icon)==null?void 0:d.iconType)==="SMS"}))==null?void 0:E.actionText};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],qN.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],qN.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],qN.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],qN.prototype,"amsterdamEnabled",void 0);
_.T([_.O({reflectToAttribute:!0,computed:"computeUseContacts(data)"}),_.Y("design:type",Boolean)],qN.prototype,"useContacts",void 0);_.T([_.O({reflectToAttribute:!0,computed:"computePhoneContact(data)"}),_.Y("design:type",String)],qN.prototype,"phoneContact",void 0);qN=_.T([_.y({is:"ytd-single-action-emergency-support-renderer",disableElementRegistration:!0})],qN);
_.r(qN,"ytd-single-action-emergency-support-renderer",function(){if(HGN!==void 0)return HGN;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-single-action-emergency-support-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-single-action-emergency-support-renderer">\n  <div id="text-content" class="style-scope ytd-single-action-emergency-support-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-formatted-string>\n    <a class="yt-simple-endpoint style-scope ytd-single-action-emergency-support-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n      <yt-formatted-string id="navigation-text" text="[[data.navigationText]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-formatted-string>\n      <yt-icon id="nav-icon" icon="[[computeIcon(data.navigationIcon.iconType)]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-icon>\n    </a>\n    <yt-formatted-string id="details-text" text="[[data.detailsText]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-formatted-string>\n  </div>\n  <div id="action-container" class="style-scope ytd-single-action-emergency-support-renderer">\n    <div id="action-button" hidden="[[!data.actionButton]]" class="style-scope ytd-single-action-emergency-support-renderer"></div>\n    <div id="contacts" hidden="[[!data.contacts]]" class="style-scope ytd-single-action-emergency-support-renderer">\n      <div id="phone-contact" hidden="[[!computePhoneContact(data)]]" class="style-scope ytd-single-action-emergency-support-renderer">\n        <yt-icon icon="[[computeIcon(\'PHONE\')]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-icon>\n        <yt-formatted-string id="contact-text" text="[[computePhoneContact(data)]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-formatted-string>\n      </div>\n        <div id="sms-contact" hidden="[[!computeSmsContact(data)]]" class="style-scope ytd-single-action-emergency-support-renderer">\n        <yt-icon icon="[[computeIcon(\'SMS\')]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-icon>\n      <yt-formatted-string id="contact-text" text="[[computeSmsContact(data)]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-formatted-string>\n      </div>\n    </div>\n    <div id="action-text" class="action-text style-scope ytd-single-action-emergency-support-renderer" hidden="[[!data.actionText]]">\n      <yt-icon icon="[[computeIcon(data.icon.iconType)]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-icon>\n      <yt-formatted-string text="[[data.actionText]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-formatted-string>\n    </div>\n    <div id="menu" hidden="[[!data.menu]]" class="style-scope ytd-single-action-emergency-support-renderer"></div>\n  </div>\n</div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return HGN=F},{mode:1});_.Hr("itemSectionRenderer","emergencyOneboxRenderer","ytd-emergency-onebox-renderer");var $1=function(){var F=_.n.apply(this,arguments)||this;F.roundedContainer=!0;F.amsterdamEnabled=_.c("enable_desktop_amsterdam_info_panels");return F};
_.k($1,_.n);$1.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.firstOption":{id:"first-option",mapping:{singleActionEmergencySupportRenderer:{component:"ytd-single-action-emergency-support-renderer"}}},"data.secondOption":{id:"second-option",mapping:{singleActionEmergencySupportRenderer:{component:"ytd-single-action-emergency-support-renderer"}}}}};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],$1.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],$1.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],$1.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],$1.prototype,"roundedContainer",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],$1.prototype,"amsterdamEnabled",void 0);
$1=_.T([_.y({is:"ytd-emergency-onebox-renderer",disableElementRegistration:!0})],$1);
_.r($1,"ytd-emergency-onebox-renderer",function(){if(XCg!==void 0)return XCg;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-emergency-onebox-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-emergency-onebox-renderer">\n  <yt-formatted-string id="header" text="[[data.title]]" class="style-scope ytd-emergency-onebox-renderer"></yt-formatted-string>\n  <div id="options" class="style-scope ytd-emergency-onebox-renderer">\n    <div id="first-option" class="option style-scope ytd-emergency-onebox-renderer"></div>\n    <div id="second-option" class="option style-scope ytd-emergency-onebox-renderer" hidden="[[!data.secondOption]]"></div>\n  </div>\n</div>\n\n<div id="menu" hidden="[[!data.menu]]" class="style-scope ytd-emergency-onebox-renderer"></div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return XCg=F},{mode:1});var P$O;_.Hr("itemSectionRenderer","exploratoryResultsRenderer","ytd-exploratory-results-renderer");var ZF=function(){return _.n.apply(this,arguments)||this};
_.k(ZF,_.n);ZF.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{channelRenderer:"ytd-channel-renderer",playlistRenderer:"ytd-playlist-renderer",showRenderer:"ytd-show-renderer",videoRenderer:"ytd-video-renderer"}}}};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],ZF.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],ZF.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],ZF.prototype,"data",void 0);ZF=_.T([_.y({is:"ytd-exploratory-results-renderer",disableElementRegistration:!0})],ZF);
_.r(ZF,"ytd-exploratory-results-renderer",function(){if(P$O!==void 0)return P$O;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-exploratory-results-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-exploratory-results-renderer"></yt-formatted-string>\n<div id="contents" class="style-scope ytd-exploratory-results-renderer"></div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return P$O=F},{mode:1});var J4w;_.Hr("itemSectionRenderer","feedbackElicitationSingleQuestionRenderer","ytd-feedback-elicitation-single-question-renderer");var X$=function(){var F=_.n.apply(this,arguments)||this;F.messageData=null;return F};
_.k(X$,_.n);_.N=X$.prototype;_.N.onServiceRequestCompleted=function(F,W){F=W.actions||[];W=0;for(var E=F.length;W<E;W++){var h=F[W],d=void 0,V=void 0;if((d=_.D(h,_.$J))==null?0:(V=d.item)==null?0:V.messageRenderer)this.messageData=_.D(h,_.$J).item.messageRenderer}};
_.N.dataChanged=function(){var F=this.data;this.hostElement.hidden=!1;_.Wm(this.hostElement,"is-channel",F&&!F.avatarIs169);this.submitButton.disabled=!0;this.selectedResponseIndex=void 0};
_.N.computeThumbnailWidth=function(F){return F?126:56};
_.N.onSelectedResponseIndexChange=function(){this.selectedResponseIndex!==void 0&&(this.submitButton.disabled=!1)};
_.N.onSubmitTap=function(){var F=this.data,W=this.selectedResponseIndex;F!==void 0&&W!==void 0&&(F=F.responses[W],F.responseData&&_.WZ().resolve(_.EJ).resolveCommand(F.responseData,{form:{element:this.hostElement}}))};
_.N.onDismissTap=function(){this.hostElement.hidden=!0;var F=this.data;F!==void 0&&F.dismissalEndpoint&&_.WZ().resolve(_.EJ).resolveCommand(F.dismissalEndpoint,{form:{element:this.hostElement}})};
_.N.updateSelectedResponseIndexFromBinding=function(F){this.selectedResponseIndex=F.detail.value};
X$.prototype.onSelectedResponseIndexChange=X$.prototype.onSelectedResponseIndexChange;X$.prototype.dataChanged=X$.prototype.dataChanged;X$.prototype.onServiceRequestCompleted=X$.prototype.onServiceRequestCompleted;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],X$.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],X$.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Object)],X$.prototype,"messageData",void 0);
_.T([_.O(),_.Y("design:type",Number)],X$.prototype,"selectedResponseIndex",void 0);_.T([_.gQ("#submit-button"),_.Y("design:type",HTMLButtonElement)],X$.prototype,"submitButton",void 0);_.T([_.R4("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.uz]),_.Y("design:returntype")],X$.prototype,"onServiceRequestCompleted",null);_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],X$.prototype,"dataChanged",null);
_.T([_.ea("selectedResponseIndex"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],X$.prototype,"onSelectedResponseIndexChange",null);X$=_.T([_.y({is:"ytd-feedback-elicitation-single-question-renderer",disableElementRegistration:!0})],X$);
_.r(X$,"ytd-feedback-elicitation-single-question-renderer",function(){if(J4w!==void 0)return J4w;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feedback-elicitation-single-question-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<span id="dismissible" hidden="[[messageData]]" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n  <div id="header" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n    <yt-formatted-string id="question" text="[[data.question]]" class="style-scope ytd-feedback-elicitation-single-question-renderer"></yt-formatted-string>\n    <yt-icon-button on-tap="onDismissTap" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n      <yt-icon icon="yt-icons:close" class="style-scope ytd-feedback-elicitation-single-question-renderer"></yt-icon>\n    </yt-icon-button>\n  </div>\n  <template is="dom-if" if="[[data.channelTitle]]" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-feedback-elicitation-single-question-renderer" href$="[[computeHref(data.channelEndpoint)]]" data="[[data.channelEndpoint]]">\n      <yt-img-shadow thumbnail="[[data.channelAvatar]]" width="[[computeThumbnailWidth(data.avatarIs169)]]" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n      </yt-img-shadow>\n      <div id="item-title" class="style-scope ytd-feedback-elicitation-single-question-renderer">[[getSimpleString(data.channelTitle)]]</div>\n    </a>\n  </template>\n  <template is="dom-if" if="[[!data.canSelectMultiple]]" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n    <tp-yt-paper-radio-group id="responses" selected="[[selectedResponseIndex]]" on-selected-changed="updateSelectedResponseIndexFromBinding" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n      <template is="dom-repeat" items="[[data.responses]]" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n        <tp-yt-paper-radio-button name="[[index]]" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n          <yt-formatted-string text="[[item.responseText]]" class="style-scope ytd-feedback-elicitation-single-question-renderer"></yt-formatted-string>\n        </tp-yt-paper-radio-button>\n      </template>\n    </tp-yt-paper-radio-group>\n  </template>\n  <ytd-button-renderer id="submit-button" data="[[data.submitButton.buttonRenderer]]" on-tap="onSubmitTap" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n  </ytd-button-renderer>\n</span>\n<span hidden="[[!messageData]]" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n  <ytd-message-renderer data="[[messageData]]" class="style-scope ytd-feedback-elicitation-single-question-renderer"></ytd-message-renderer>\n</span>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return J4w=F},{mode:1});var agK;var H8=function(){return _.n.apply(this,arguments)||this};
_.k(H8,_.n);H8.prototype.computeThumbnailWidth=function(F){return F?602:428};
H8.prototype.updateWideFromBinding=function(F){this.wide=F.detail.value};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],H8.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],H8.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Boolean)],H8.prototype,"wide",void 0);H8=_.T([_.y({is:"ytd-newspaper-hero-video-renderer",disableElementRegistration:!0})],H8);
_.r(H8,"ytd-newspaper-hero-video-renderer",function(){if(agK!==void 0)return agK;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-newspaper-hero-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<iron-media-query query="(min-width: 662px)" query-matches="[[wide]]" on-query-matches-changed="updateWideFromBinding" class="style-scope ytd-newspaper-hero-video-renderer">\n</iron-media-query>\n<ytd-thumbnail data="[[data]]" width="[[computeThumbnailWidth(wide)]]" class="style-scope ytd-newspaper-hero-video-renderer"></ytd-thumbnail>\n<div id="contents" class="style-scope ytd-newspaper-hero-video-renderer">\n  <a id="meta" class="yt-simple-endpoint style-scope ytd-newspaper-hero-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <h3 class="style-scope ytd-newspaper-hero-video-renderer">\n      <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-newspaper-hero-video-renderer">\n      </ytd-badge-supported-renderer>\n      <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-newspaper-hero-video-renderer">\n        [[getSimpleString(data.title)]]\n      </span>\n    </h3>\n    <ytd-video-meta-block class="title style-scope ytd-newspaper-hero-video-renderer" data="[[data]]"></ytd-video-meta-block>\n  </a>\n</div>\n<div class="content style-scope ytd-newspaper-hero-video-renderer">\n  <slot class="style-scope ytd-newspaper-hero-video-renderer"></slot>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return agK=F},{mode:1});var fgT;var P8=function(){return _.n.apply(this,arguments)||this};
_.k(P8,_.n);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],P8.prototype,"rendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],P8.prototype,"data",void 0);P8=_.T([_.y({is:"ytd-newspaper-mini-video-renderer",disableElementRegistration:!0})],P8);
_.r(P8,"ytd-newspaper-mini-video-renderer",function(){if(fgT!==void 0)return fgT;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-newspaper-mini-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-thumbnail data="[[data]]" width="210" class="style-scope ytd-newspaper-mini-video-renderer"></ytd-thumbnail>\n<a id="meta" class="yt-simple-endpoint style-scope ytd-newspaper-mini-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <h3 class="style-scope ytd-newspaper-mini-video-renderer">\n    <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-newspaper-mini-video-renderer">\n    </ytd-badge-supported-renderer>\n    <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-newspaper-mini-video-renderer">\n      [[getSimpleString(data.title)]]\n    </span>\n  </h3>\n  <ytd-video-meta-block class="grid style-scope ytd-newspaper-mini-video-renderer" data="[[data]]"></ytd-video-meta-block>\n</a>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return fgT=F},{mode:1});var OGK;_.Hr("itemSectionRenderer","newspaperRenderer","ytd-newspaper-renderer");var JK=function(){return _.n.apply(this,arguments)||this};
_.k(JK,_.n);JK.prototype.configureRendererStamper=function(){return{"data.primaryContents":{id:"primary-contents",mapping:{newspaperHeroVideoRenderer:"ytd-newspaper-hero-video-renderer"}},"data.secondaryContents":{id:"secondary-contents",mapping:{newspaperMiniVideoRenderer:"ytd-newspaper-mini-video-renderer"}}}};
_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],JK.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],JK.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],JK.prototype,"data",void 0);JK=_.T([_.y({is:"ytd-newspaper-renderer",disableElementRegistration:!0})],JK);
_.r(JK,"ytd-newspaper-renderer",function(){if(OGK!==void 0)return OGK;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-newspaper-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="primary-contents" class="style-scope ytd-newspaper-renderer"></div>\n<div id="secondary-contents" class="style-scope ytd-newspaper-renderer"></div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return OGK=F},{mode:1});var bGO;_.Hr("itemSectionRenderer","playlistVideoListRenderer","ytd-playlist-video-list-renderer");var aw=function(){var F=_.n.apply(this,arguments)||this;F.isSegment=!1;F.actionMap={"yt-add-renderer-to-item-section-action":"handleAddRendererToItemSectionAction","yt-playlist-remove-videos-action":"handlePlaylistRemoveVideosAction","yt-update-playlist-action":"handleUpdatePlaylistAction"};F.nextContinuation={continuationType:"playlistVideoListContinuation"};return F};
_.k(aw,_.n);_.N=aw.prototype;_.N.attached=function(){_.WZ();var F;(F=_.WZ().resolve(_.Fd(_.oF)))!=null&&(F.playlistVideoListElement=this.hostElement)};
_.N.detached=function(){var F;(F=_.WZ().resolve(_.Fd(_.oF)))!=null&&(F.playlistVideoListElement=void 0);F=_.WZ().resolve(_.Fd(_.Wj));_.c("web_enable_voting_animation")&&F&&(F.parentElem=void 0,F.videos=[],F.continuationsPresent=!1,F.showRefreshPill=!1)};
_.N.configureRendererStamper=function(){return{"data.contents":{id:"contents",reuseComponents:!1,mapping:{playlistVideoRenderer:{component:"ytd-playlist-video-renderer",properties:{canReorder:"[[canReorder]]"}},continuationItemRenderer:"ytd-continuation-item-renderer"},events:!0},"data.continuations":{id:"continuations",mapping:{nextContinuationData:"yt-next-continuation"}},"data.sortFilterMenu":{id:"sort-filter-menu",mapping:{sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",
params:{closeOnActivate:"true"}}}}}};
_.N.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.N.dataChanged=function(){var F=_.WZ().resolve(_.Fd(_.Wj));if(_.c("web_enable_voting_animation")&&this.data&&F){var W=_.Z(this.hostElement).querySelector("#contents");W&&(F.parentElem=W);F.addVideos(this.data.contents)}_.IhX(this.ytReorderableBehavior)};
_.N.onRendererstamperFinished=function(){this.canReorder&&_.cOe(this.ytReorderableBehavior,_.Z(this.hostElement).querySelector("#contents"),document.documentElement,"playlist-drag-handle")};
_.N.onPlaylistReloading=function(){this.isReloading=!0};
_.N.onUpdateSetVideoId=function(F){if(F.detail&&this.data&&this.data.contents){var W=F.detail;F=this.data.contents.findIndex(function(d){var V;return((V=d.playlistVideoRenderer)==null?void 0:V.videoId)===W.videoId});
if(!(F<0)&&W.setVideoId&&(this.set("data.contents."+F+".playlistVideoRenderer.setVideoId",W.setVideoId),_.c("web_enable_voting_animation"))){var E;if(F=_.D((E=this.data.contents[F].playlistVideoRenderer)==null?void 0:E.engagementBar,_.OFn)){var h;(h=F.actions)==null||h.forEach(function(d){if(d=_.D(d,_.bFo))d.itemId=W.setVideoId})}(E=_.WZ().resolve(_.Fd(_.Wj)))&&MKx(E,W.videoId,W.setVideoId)}}};
_.N.computeContentsClass=function(F){return F?"reloading":""};
_.N.computeIsSortable=function(F,W){return F&&W>0&&!this.isSegment&&!_.c("shorts_in_playlists_web")};
_.N.computeIsEditable=function(F){return F};
_.N.computeCanReorder=function(F){return F};
_.N.handlePlaylistRemoveVideosAction=function(F){if(this.get("playlistRemoveVideosAction.setVideoIds",F)&&this.data&&this.data.contents){F=_.D(F,_.vcX).setVideoIds;for(var W=this.data.contents.length-1;W>=0;){var E=this.data.contents[W].playlistVideoRenderer;E&&E.setVideoId&&F.includes(E.setVideoId)&&this.splice("data.contents",W,1);W--}_.dW(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.updateIndices()}};
_.N.updateIndices=function(){if(this.data&&this.data.contents)for(var F=0;F<this.data.contents.length;F++)this.set("data.contents."+F+".playlistVideoRenderer.index",_.Gr(String(F+1)))};
_.N.handleDrop=function(F){F=F.currDragItem;var W=_.TR(F.parentNode.childNodes,F),E=this.data.contents.splice(Number(_.Yr(F.data.index))-1,1)[0];this.data.contents.splice(W,0,E);W=W?this.get("contents."+(W-1)+".playlistVideoRenderer.setVideoId",this.data):void 0;this.updateIndices();F=this.buildReorderServiceEndpoint(F.data.setVideoId,W);this.ytComponentBehavior.resolveCommand(F)};
_.N.buildReorderServiceEndpoint=function(F,W){return this.data&&this.data.onReorderEndpoint?(this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.setVideoId",F),this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.movedSetVideoIdPredecessor",W),this.data.onReorderEndpoint):null};
_.N.handleUpdatePlaylistAction=function(F){var W;(F=_.D((W=_.D(F,_.I9B))==null?void 0:W.updatedRenderer,_.f5_))&&this.canReorder!==F.canReorder&&this.set("data.canReorder",F.canReorder);F&&F.contents&&(this.set("data.contents",F.contents),this.isReloading=!1);F&&F.continuations&&this.set("data.continuations",F.continuations)};
_.N.handleAddRendererToItemSectionAction=function(F){var W,E=(W=_.D(F,C$q))==null?void 0:W.renderer,h;E&&((h=_.D(F,C$q))==null?void 0:h.targetItemSection)===this.data.targetId&&(this.data.contents=this.data.contents||[],this.splice("data.contents",this.data.contents.length,0,E),F=_.WZ().resolve(_.Fd(_.Wj)),_.c("web_enable_voting_animation")&&F&&(E&&(W=_.flo(E))&&F.recommendedVideos.push({itemId:W,videoId:_.llI(E),voteCount:_.nMY(E),voteSortTiebreaker:Date.now().toString()}),this.updateIndices()))};
_.N.isVotingEnabledOnPlaylist=function(F){if(!F)return!1;F=_.U(F);for(F=F.next();!F.done;F=F.next()){var W=void 0;return!!_.D((W=F.value.playlistVideoRenderer)==null?void 0:W.engagementBar,_.OFn)}return!1};
_.N.onAppendContinuationItemsActionFinished=function(){var F;this.isVotingEnabledOnPlaylist((F=this.data)==null?void 0:F.contents)&&(this.updateIndices(),F=_.WZ().resolve(_.Fd(_.Wj)),_.c("web_enable_voting_animation")&&F&&this.data&&F.addVideos(this.data.contents))};
_.N.updateVideoData=function(F){if(F.detail&&this.data&&this.data.contents){var W=F.detail;F=W.toIdx;var E=W.itemId,h=W.newVoteCount,d=W.voteStatus;W=W.hideItem;var V,R,M=(V=this.data)==null?void 0:(R=V.contents)==null?void 0:R.findIndex(function(B){return _.flo(B)===E});
if(!(M<0)){V=this.data.contents[M];var g;if((g=V.playlistVideoRenderer)==null?0:g.voteCount)V.playlistVideoRenderer.voteCount=h;var t;if(g=_.D((t=V.playlistVideoRenderer)==null?void 0:t.engagementBar,_.OFn)){var C;(C=g.actions)==null||C.forEach(function(B){(B=_.D(B,_.bFo))&&B.initialState&&(B.initialState.votes=h,B.initialState.status=d)})}this.data.contents.splice(M,1);
W||this.data.contents.splice(F,0,V);this.updateIndices()}}};
aw.prototype.updateVideoData=aw.prototype.updateVideoData;aw.prototype.onAppendContinuationItemsActionFinished=aw.prototype.onAppendContinuationItemsActionFinished;aw.prototype.onUpdateSetVideoId=aw.prototype.onUpdateSetVideoId;aw.prototype.onPlaylistReloading=aw.prototype.onPlaylistReloading;aw.prototype.onRendererstamperFinished=aw.prototype.onRendererstamperFinished;aw.prototype.dataChanged=aw.prototype.dataChanged;
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],aw.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],aw.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],aw.prototype,"ytActionHandlerBehavior",void 0);_.T([_.J(_.lr.YtNextContinuationBehavior),_.Y("design:type",Object)],aw.prototype,"ytNextContinuationBehavior",void 0);
_.T([_.J(_.Dh_),_.Y("design:type",Object)],aw.prototype,"ytReorderableBehavior",void 0);_.T([_.J(_.br),_.Y("design:type",Object)],aw.prototype,"ytContinuationHandlerBehavior",void 0);_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],aw.prototype,"ytComponentBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],aw.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Boolean)],aw.prototype,"isReloading",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],aw.prototype,"isSegment",void 0);_.T([_.O({computed:"computeIsSortable(data.canReorder, data.contents.length)"}),_.Y("design:type",Boolean)],aw.prototype,"isSortable",void 0);_.T([_.O({computed:"computeIsEditable(data.isEditable)"}),_.Y("design:type",Boolean)],aw.prototype,"isEditable",void 0);_.T([_.O({computed:"computeCanReorder(data.canReorder)"}),_.Y("design:type",Boolean)],aw.prototype,"canReorder",void 0);
_.T([_.O({value:101}),_.Y("design:type",Number)],aw.prototype,"scrollMargin",void 0);_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],aw.prototype,"dataChanged",null);_.T([_.R4("yt-rendererstamper-finished"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],aw.prototype,"onRendererstamperFinished",null);
_.T([_.R4("yt-playlist-reloading"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],aw.prototype,"onPlaylistReloading",null);_.T([_.R4("yt-update-set-video-id"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],aw.prototype,"onUpdateSetVideoId",null);
_.T([_.R4("yt-append-continuation-items-action-finished"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],aw.prototype,"onAppendContinuationItemsActionFinished",null);_.T([_.R4("yt-update-video-data-voting-animation"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],aw.prototype,"updateVideoData",null);aw=_.T([_.y({is:"ytd-playlist-video-list-renderer",disableElementRegistration:!0})],aw);
_.r(aw,"ytd-playlist-video-list-renderer",function(){if(bGO!==void 0)return bGO;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-video-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="sort-filter-menu" hidden="[[!isSortable]]" class$="[[computeContentsClass(isReloading)]] style-scope ytd-playlist-video-list-renderer"></div>\n<div id="spinner-container" class="style-scope ytd-playlist-video-list-renderer">\n  <tp-yt-paper-spinner-lite active="[[isReloading]]" class="style-scope ytd-playlist-video-list-renderer"></tp-yt-paper-spinner-lite>\n</div>\n<div id="contents" class$="[[computeContentsClass(isReloading)]] style-scope ytd-playlist-video-list-renderer"></div>\n<div id="continuations" class="style-scope ytd-playlist-video-list-renderer"></div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return bGO=F},{mode:_.E6("kevlar_poly_si_batch_j047")?1:2});var lg8;var fm=function(){return _.n.apply(this,arguments)||this};
_.k(fm,_.n);fm.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more_vert"}}}},"data.exploreButton":{id:"explore-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0},noInjection:!0}}},"data.offerButtons":{id:"offer-buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
fm.prototype.onTextWrapperTap=function(F){var W=this.data&&this.data.navigationEndpoint;W&&!_.Sc(_.TB(F),this.hostElement,["A".toString(),"BUTTON".toString()])&&_.hF(this.hostElement,"yt-navigate",{endpoint:W})};
fm.prototype.dataChanged=function(){var F=this.get("data.offerButton.buttonRenderer.serviceEndpoint");F&&F.commandMetadata&&_.D(F.commandMetadata,_.aH)&&_.D(F.commandMetadata,_.aH).fireAutomatically&&_.WZ().resolve(_.EJ).resolveCommand(F,{form:{element:this.hostElement}})};
fm.prototype.dataChanged=fm.prototype.dataChanged;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],fm.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],fm.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.rt),_.Y("design:type",Object)],fm.prototype,"ytdLockupBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],fm.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0,value:function(){return _.c("enable_desktop_search_bigger_thumbs")}}),
_.Y("design:type",Boolean)],fm.prototype,"useBiggerThumbs",void 0);_.T([_.O({reflectToAttribute:!0,value:function(){return _.N0("desktop_search_bigger_thumbs_style")}}),
_.Y("design:type",String)],fm.prototype,"biggerThumbsStyle",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],fm.prototype,"leftAligned",void 0);_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],fm.prototype,"dataChanged",null);fm=_.T([_.y({disableElementRegistration:!0,is:"ytd-movie-renderer"})],fm);
_.r(fm,"ytd-movie-renderer",function(){if(lg8!==void 0)return lg8;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-movie-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="thumbnail-container style-scope ytd-movie-renderer">\n  <ytd-thumbnail data="[[data]]" use-expandable-tooltip="[[useExpandableTooltip_]]" width="246" class="style-scope ytd-movie-renderer">\n  </ytd-thumbnail>\n</div>\n<div class="text-wrapper style-scope ytd-movie-renderer" on-tap="onTextWrapperTap">\n  <div class="top-container style-scope ytd-movie-renderer">\n    <div class="top-left-container style-scope ytd-movie-renderer">\n      <h3 class="style-scope ytd-movie-renderer">\n         <a id="video-title" class="yt-simple-endpoint style-scope ytd-movie-renderer" aria-label$="[[data.title.accessibility.accessibilityData.label]]" href$="[[computeHref_(data.navigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" data="[[data.navigationEndpoint]]">\n          [[getSimpleString(data.title)]]\n        </a>\n      </h3>\n      <div id="channel-info" class="style-scope ytd-movie-renderer">\n        <a hidden="[[!data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.thumbnail]]" id="channel-thumbnail" aria-label$="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.accessibility.accessibilityData.label]]" href$="[[computeHref_(data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.navigationEndpoint)]]" class="style-scope ytd-movie-renderer">\n          <yt-img-shadow thumbnail="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.thumbnail]]" width="24" class="style-scope ytd-movie-renderer">\n          </yt-img-shadow>\n        </a>\n        <ytd-channel-name id="channel-name" class="long-byline style-scope ytd-movie-renderer" badges="[[data.ownerBadges]]" channel-name="[[data.longBylineText]]" wrap-text="true">\n        </ytd-channel-name>\n      </div>\n    </div>\n    <div class="top-right-container style-scope ytd-movie-renderer">\n      <ytd-button-renderer data="[[data.offerButton.buttonRenderer]]" hidden="[[!data.offerButton.buttonRenderer]]" class="style-scope ytd-movie-renderer">\n      </ytd-button-renderer>\n      <div id="offer-buttons" class="style-scope ytd-movie-renderer"></div>\n      <div id="menu" class="style-scope ytd-movie-renderer"></div>\n    </div>\n  </div>\n\n  <ul class="movie-metadata-list style-scope ytd-movie-renderer">\n    <template is="dom-repeat" items="[[data.topMetadataItems]]" class="style-scope ytd-movie-renderer">\n      <li class="style-scope ytd-movie-renderer">[[getSimpleString(item)]]</li>\n    </template>\n  </ul>\n\n  <ytd-badge-supported-renderer badges="[[data.badges]]" class="style-scope ytd-movie-renderer"></ytd-badge-supported-renderer>\n\n  <yt-formatted-string id="description-text" text="[[data.descriptionSnippet]]" class="style-scope ytd-movie-renderer">\n  </yt-formatted-string>\n\n  <ul class="movie-metadata-list style-scope ytd-movie-renderer">\n    <template is="dom-repeat" items="[[data.bottomMetadataItems]]" class="style-scope ytd-movie-renderer">\n      <li class="style-scope ytd-movie-renderer">[[getSimpleString(item)]]</li>\n    </template>\n  </ul>\n\n  <div id="explore-button" class="style-scope ytd-movie-renderer"></div>\n</div>\n<yt-interaction id="interaction" class="extended style-scope ytd-movie-renderer"></yt-interaction>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return lg8=F},{mode:1});var nyq;var O1=function(){var F=_.n.apply(this,arguments)||this;F.rounded=!0;F.pageAttachedTo=void 0;F.actionMap={"yt-signal-action-pause-player":"handleSignalActionPausePlayer"};return F};
_.k(O1,_.n);O1.prototype.attached=function(){this.pageAttachedTo=_.WZ().resolve(_.KQ).getCurrentPage();_.hF(this.hostElement,"yt-player-attached",this.player)};
O1.prototype.detached=function(){var F;if((F=this.pageAttachedTo)==null?0:F.hostElement)_.hF(this.pageAttachedTo.hostElement,"yt-player-detached",this.player),this.pageAttachedTo=void 0};
O1.prototype.dataChanged=function(){var F;if((F=this.data)==null?0:F.videoId)F={video_id:this.data.videoId,autoplay:!0},!_.c("miniplayer_stop_channel_video_autoplay_killswitch")&&_.WZ().resolve(_.GF).isMiniplayerActive()&&(F.pause_at_start=!0,F.autoplay=!1),this.player.loadVideoWithPlayerVars(F)};
O1.prototype.handleSignalActionPausePlayer=function(){_.E8().pause()};
O1.prototype.dataChanged=O1.prototype.dataChanged;_.T([_.O(),_.Y("design:type",Object)],O1.prototype,"data",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],O1.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],O1.prototype,"ytActionHandlerBehavior",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],O1.prototype,"rounded",void 0);_.T([_.gQ("#player"),_.Y("design:type",Object)],O1.prototype,"player",void 0);
_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],O1.prototype,"dataChanged",null);O1=_.T([_.y({disableElementRegistration:!0,is:"ytd-channel-video-player-renderer"})],O1);
_.r(O1,"ytd-channel-video-player-renderer",function(){if(nyq!==void 0)return nyq;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-video-player-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="player-container" class="style-scope ytd-channel-video-player-renderer">\n  <ytd-player id="player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_CHANNEL_TRAILER" class="style-scope ytd-channel-video-player-renderer">\n  </ytd-player>\n</div>\n<div id="content" class="style-scope ytd-channel-video-player-renderer">\n  <div id="metadata-container" class="style-scope ytd-channel-video-player-renderer">\n    <yt-formatted-string id="title" aria-level="3" ellipsis-truncate="" link-inherit-color="" role="heading" text="[[data.title]]" class="style-scope ytd-channel-video-player-renderer">\n    </yt-formatted-string>\n    <ytd-video-meta-block class="title style-scope ytd-channel-video-player-renderer" data="[[data]]"></ytd-video-meta-block>\n  </div>\n  <ytd-expander id="description" disable-toggle="" max-number-of-lines="7" class="style-scope ytd-channel-video-player-renderer">\n    <yt-formatted-string class="content style-scope ytd-channel-video-player-renderer" slot="content" split-lines="" text="[[data.description]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="more-button style-scope ytd-channel-video-player-renderer" slot="more-button" link-inherit-color="" text="[[data.readMoreText]]">\n    </yt-formatted-string>\n  </ytd-expander>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return nyq=F},{mode:1});var y4K;var jPO;var iGx;var b8=function(){var F=_.n.apply(this,arguments)||this;F.playing=!1;F.playerId="ytd-default-promo-panel-renderer-inline-playback-renderer-"+_.Ue(F);F.active=!1;return F};
_.k(b8,_.n);_.N=b8.prototype;_.N.detached=function(){this.stop()};
_.N.play=function(){var F=this,W,E,h,d,V;return _.e(function(R){if(R.nextAddress==1)return F.active=!0,W=F.get("data.inlinePlaybackEndpoint.watchEndpoint"),E=W.videoId||F.data.videoId,h=W.startTimeSeconds||0,d=W.playerParams||null,_.c("kevlar_player_update_killswitch")?_.Q(R,F.playerEl.update({args:{video_id:E,startSeconds:h,player_params:d}}),2):(F.playerEl.loadVideoWithPlayerVars({video_id:E,startSeconds:h,player_params:d,autoplay:!0}),R.jumpTo(2));if(R.nextAddress!=4)return _.Q(R,F.playerEl.getPlayerPromise(),
4);V=R.yieldResult;V.unloadModule("annotations_module");V.addEventListener("onStateChange",function(M){F.onPlayerStateChange(M)});
_.gG(R)})};
_.N.onPlayerStateChange=function(F){if(this.active)switch(this.playing=F===1,F){case 1:_.hF(this.hostElement,"yt-default-promo-panel-renderer-playing");break;case 0:_.hF(this.hostElement,"yt-default-promo-panel-renderer-ended")}};
_.N.stop=function(){this.playerEl.stop();this.playing=this.active=!1};
_.N.resize=function(){var F=this,W;return _.e(function(E){if(E.nextAddress==1)return _.Q(E,F.playerEl.getPlayerPromise(),2);W=E.yieldResult;W.setSize(NaN,NaN);_.gG(E)})};
_.T([_.O(),_.Y("design:type",Object)],b8.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],b8.prototype,"playing",void 0);_.T([_.O(),_.Y("design:type",Object)],b8.prototype,"playerId",void 0);_.T([_.gQ("#player"),_.Y("design:type",Object)],b8.prototype,"playerEl",void 0);b8=_.T([_.y({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer-inline-playback-renderer"})],b8);
_.r(b8,"ytd-default-promo-panel-renderer-inline-playback-renderer",function(){if(iGx!==void 0)return iGx;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-default-promo-panel-renderer-inline-playback-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-player id="player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_VERTICAL_LANDING_PAGE_PROMO" player-id="[[playerId]]" class="style-scope ytd-default-promo-panel-renderer-inline-playback-renderer">\n</ytd-player>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return iGx=F},{mode:1});var r4K;var TxN;var l8=function(){var F=_.n.apply(this,arguments)||this;F.width=0;return F};
_.k(l8,_.n);_.N=l8.prototype;_.N.attached=function(){this.isVideoPlaying=!1;this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit");this.videoEl.addEventListener("ended",_.UO(this,this.onEnded));this.mp4El.addEventListener("error",_.UO(this,this.onError))};
_.N.detached=function(){this.videoEl.removeEventListener("ended",_.UO(this,this.onEnded));this.mp4El.removeEventListener("error",_.UO(this,this.onError))};
_.N.play=function(){var F=this;if(this.mp4El.getAttribute("src")&&this.isMp4Supported()){this.videoEl.currentTime=0;this.videoEl.load();var W=this.videoEl.play();W?W.then(function(){F.handleVideoStartPlaying()}).catch(function(){_.hF(F.hostElement,"yt-video-thumbnail-not-playing")}):this.handleVideoStartPlaying()}else _.hF(this.hostElement,"yt-video-thumbnail-not-playing")};
_.N.handleVideoStartPlaying=function(){this.videoEl.classList.remove("hideit");this.placeholderEl.classList.add("hideit");this.isVideoPlaying=!0};
_.N.stop=function(){this.isVideoPlaying&&(this.showPlaceholder(),this.isVideoPlaying=!1,this.videoEl.pause(),this.videoEl.currentTime=0)};
_.N.dataChanged=function(){var F;if((F=this.data)==null?0:F.thumbnailPlaceholder)F=_.m_(this.data.thumbnailPlaceholder.thumbnails,this.width),this.placeholderEl.style.backgroundImage="url("+F+")";this.stop();this.autoplay&&this.play()};
_.N.showPlaceholder=function(){this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit")};
_.N.onEnded=function(){this.stop();_.hF(this.hostElement,"yt-video-thumbnail-ended");this.loop&&this.play()};
_.N.onError=function(){_.hF(this.hostElement,"yt-video-thumbnail-error")};
_.N.isMp4Supported=function(){return!(!this.videoEl.canPlayType||!this.videoEl.canPlayType("video/mp4").replace(/no/,""))};
_.N.getVideoThumbnail=function(F){if(F&&F.length)return F[0]};
l8.prototype.dataChanged=l8.prototype.dataChanged;_.T([_.O(),_.Y("design:type",Object)],l8.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],l8.prototype,"animatePlaceholderOnEntrance",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],l8.prototype,"autoplay",void 0);_.T([_.O({computed:"getVideoThumbnail(data.videoThumbnails)"}),_.Y("design:type",Object)],l8.prototype,"videoThumbnail",void 0);
_.T([_.O(),_.Y("design:type",Boolean)],l8.prototype,"loop",void 0);_.T([_.O(),_.Y("design:type",Boolean)],l8.prototype,"isVideoPlaying",void 0);_.T([_.O(),_.Y("design:type",Object)],l8.prototype,"width",void 0);_.T([_.gQ("#mp4"),_.Y("design:type",HTMLElement)],l8.prototype,"mp4El",void 0);_.T([_.gQ("#placeholder"),_.Y("design:type",HTMLElement)],l8.prototype,"placeholderEl",void 0);_.T([_.gQ("#video"),_.Y("design:type",HTMLVideoElement)],l8.prototype,"videoEl",void 0);
_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],l8.prototype,"dataChanged",null);l8=_.T([_.$3({is:"yt-video-as-thumbnail-details",disableElementRegistration:!0})],l8);
_.r(l8,"yt-video-as-thumbnail-details",function(){if(TxN===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-video-as-thumbnail-details--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_video_as_thumbnail_details.yt.video.as.thumbnail.details.css.js--\x3e<div id="placeholder" class="style-scope yt-video-as-thumbnail-details"></div>\n<div id="video-container" class="style-scope yt-video-as-thumbnail-details">\n  <video id="video" muted="" class="style-scope yt-video-as-thumbnail-details">\n    <source id="mp4" src$="[[videoThumbnail.url]]" type="video/mp4" class="style-scope yt-video-as-thumbnail-details">\n  </video>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;r4K===void 0&&(r4K=document.createElement("template"));var h=r4K;E.call(W,h.content.cloneNode(!0),F.content.firstChild);TxN=F}F=TxN;return F},{mode:2});var nm=function(){var F=_.n.apply(this,arguments)||this;F.disableGridStateAware=!1;F.animationEnabled=_.c("enable_web_ketchup_hero_animation");F.transitioningOut=!1;F.narrow=!1;F.narrower=!1;F.isCarouselInFeed=!1;F.videoTimeoutJobId=0;F.panelTimeoutJobId=0;F.panelTimeoutJobStartMs=0;F.actionMap={"yt-window-resized":"onWindowResized"};return F};
_.k(nm,_.n);_.N=nm.prototype;_.N.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.N.created=function(){this.ytdGridStateAwareBehavior.gridStateAwareSizingElementSelector="#content"};
_.N.updateSize=function(){this.narrow=this.hostElement.clientHeight*16/9>this.hostElement.clientWidth;var F;this.player&&((F=this.data)==null?0:F.inlinePlaybackRenderer)&&this.player.resize();this.narrower=this.isNarrower();this.setScrimLayer(this.data)};
_.N.attached=function(){this.onWindowResized()};
_.N.detached=function(){this.clearTimeouts()};
_.N.onWindowResized=function(){this.updateSize()};
_.N.computePanelLayout=function(F){return F&&F.panelLayout||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.N.playVideo=function(){var F;this.video&&((F=this.data)==null?0:F.videoThumbnail)&&this.video.play();var W;this.player&&((W=this.data)==null?0:W.inlinePlaybackRenderer)&&this.player.play()};
_.N.stopVideo=function(){var F;this.video&&((F=this.data)==null?0:F.videoThumbnail)&&this.video.stop();var W;this.player&&((W=this.data)==null?0:W.inlinePlaybackRenderer)&&this.player.stop()};
_.N.transitionOut=function(){var F=this;this.transitioningOut=!0;return new Promise(function(W){var E=function(){_.Z(F.hostElement).querySelector("#action-button").removeEventListener("animationend",E);_.P0.cancelJob(h);W();F.transitioningOut=!1};
var h=_.sB(_.P0,E,1E3);_.Z(F.hostElement).querySelector("#action-button").addEventListener("animationend",E);F.player&&(F.player.playing=!1)})};
_.N.computeMetadataOrder=function(F){return F&&F.metadataOrder&&F.metadataOrder!=="DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_UNSPECIFIED"?F.metadataOrder:"DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_TITLE_DESCRIPTION"};
_.N.computeByline=function(){return this.get("data.byline.defaultPromoPanelBylineRenderer")};
_.N.computeAvatarSize=function(F){return F&&F.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"?24:36};
_.N.onContentClick=function(F){if(!_.Sc(_.TB(F),this.hostElement,["A".toString(),"BUTTON".toString()])){var W;if((W=this.data)==null?0:W.navigationEndpoint){var E;this.componentBehavior.resolveCommand((E=this.data)==null?void 0:E.navigationEndpoint)}}};
_.N.dataChanged=function(){this.clearTimeouts();this.setBackgroundImage(this.data);this.startPanelTimeout();this.updateSize()};
_.N.setBackgroundImage=function(F){if(F=this.getBackgroundImageUrl(F))_.Z(this.hostElement).querySelector("#hero").style.backgroundImage="url("+F+")"};
_.N.setScrimLayer=function(F){var W=this.getScrimLayerColorStops(F);F=((F==null?void 0:F.scrimRotation)||0)+180;this.isNarrower()&&this.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"&&(F=180);_.b0("HTML_DIR")==="rtl"&&(F=-F);W&&(_.Z(this.hostElement).querySelector("#scrim").style.backgroundImage="linear-gradient("+F+"deg, "+W+")")};
_.N.isNarrower=function(){return this.hostElement.clientWidth<nm.NARROW_VERSION_SIZE};
_.N.getScrimLayerColorStops=function(){var F,W=(F=this.data)==null?void 0:F.scrimColorValues;if(!W)return null;if(W.length===1)return F=_.XC(W[0]),F+" 0%, "+F+" 100%";if(W.length===3){var E=[0,72,98];return W.map(function(h,d){return _.XC(h)+" "+E[d]+"%"}).join(",")}return null};
_.N.getBackgroundImageUrl=function(F){return F&&F.largeFormFactorBackgroundThumbnail?_.m_((F.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.landscape||F.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.portrait).thumbnails,screen.width):null};
_.N.onPlaying=function(){this.startVideoTimeout()};
_.N.onEnded=function(){this.rotate()};
_.N.startPanelTimeout=function(){var F=this;if(!this.panelTimeoutJobId){var W=this.get("data.minPanelDisplayDurationMs");W&&(this.panelTimeoutJobStartMs=Date.now(),this.panelTimeoutJobId=_.sB(_.P0,function(){F.rotate()},W))}};
_.N.startVideoTimeout=function(){var F=this;if(!this.videoTimeoutJobId){_.P0.cancelJob(this.panelTimeoutJobId);var W=Date.now()-this.panelTimeoutJobStartMs;W=Math.max(0,this.get("data.minPanelDisplayDurationMs")-W);W=Math.max(this.get("data.minVideoPlayDurationMs")||0,W);this.videoTimeoutJobId=_.sB(_.P0,function(){F.rotate()},W)}};
_.N.clearTimeouts=function(){this.panelTimeoutJobId!==0&&_.P0.cancelJob(this.panelTimeoutJobId);this.videoTimeoutJobId!==0&&_.P0.cancelJob(this.videoTimeoutJobId);this.videoTimeoutJobId=this.panelTimeoutJobId=0};
_.N.rotate=function(){this.clearTimeouts();_.hF(this.hostElement,"yt-default-promo-panel-renderer-rotate")};
_.Sn.Object.defineProperties(nm.prototype,{player:{configurable:!0,enumerable:!0,get:function(){return _.Z(this.hostElement).querySelector("#player")}},
video:{configurable:!0,enumerable:!0,get:function(){return _.Z(this.hostElement).querySelector("#video")}}});
_.Sn.Object.defineProperties(nm,{NARROW_VERSION_SIZE:{configurable:!0,enumerable:!0,get:function(){return 650}}});
nm.prototype.onEnded=nm.prototype.onEnded;nm.prototype.onPlaying=nm.prototype.onPlaying;nm.prototype.dataChanged=nm.prototype.dataChanged;_.T([_.J(_.lU),_.Y("design:type",Object)],nm.prototype,"ytdGridStateAwareBehavior",void 0);_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],nm.prototype,"componentBehavior",void 0);_.T([_.J(_.y_.YtdGuideStateAwareBehavior),_.Y("design:type",Object)],nm.prototype,"ytdGuideStateAwareBehavior",void 0);
_.T([_.J(_.vNT),_.Y("design:type",Object)],nm.prototype,"ytBooleanLogicBehavior",void 0);_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],nm.prototype,"ytActionHandlerBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],nm.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],nm.prototype,"ytRendererBehavior",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],nm.prototype,"disableGridStateAware",void 0);_.T([_.O(),_.Y("design:type",Object)],nm.prototype,"data",void 0);_.T([_.O({computed:"computePanelLayout(data)",reflectToAttribute:!0}),_.Y("design:type",String)],nm.prototype,"panelLayout",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],nm.prototype,"animationEnabled",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],nm.prototype,"transitioningOut",void 0);
_.T([_.O({computed:"computeMetadataOrder(data)"}),_.Y("design:type",Boolean)],nm.prototype,"metadataOrder",void 0);_.T([_.O({computed:"computeByline(data)"}),_.Y("design:type",Object)],nm.prototype,"byline",void 0);_.T([_.O({computed:"computeAvatarSize(data)"}),_.Y("design:type",Number)],nm.prototype,"avatarSize",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],nm.prototype,"narrow",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],nm.prototype,"narrower",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],nm.prototype,"layoutStyle",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],nm.prototype,"isCarouselInFeed",void 0);_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],nm.prototype,"dataChanged",null);_.T([_.R4("yt-default-promo-panel-renderer-playing"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],nm.prototype,"onPlaying",null);
_.T([_.R4("yt-default-promo-panel-renderer-ended"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],nm.prototype,"onEnded",null);nm=_.T([_.y({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer"})],nm);
_.r(nm,"ytd-default-promo-panel-renderer",function(){if(jPO!==void 0)return jPO;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-default-promo-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="hero" class="style-scope ytd-default-promo-panel-renderer"></div>\n<yt-video-as-thumbnail-details id="video" animate-placeholder-on-entrance="" autoplay="" data="[[data.videoThumbnail]]" disable-upgrade$="[[!data.videoThumbnail]]" height="600" hidden$="[[!data.videoThumbnail]]" width="[[screen.width]]" class="style-scope ytd-default-promo-panel-renderer">\n</yt-video-as-thumbnail-details>\n<ytd-default-promo-panel-renderer-inline-playback-renderer id="player" data="[[data.inlinePlaybackRenderer.inlinePlaybackRenderer]]" disable-upgrade$="[[!data.inlinePlaybackRenderer]]" hidden$="[[!data.inlinePlaybackRenderer]]" class="style-scope ytd-default-promo-panel-renderer">\n</ytd-default-promo-panel-renderer-inline-playback-renderer>\n<div id="scrim" class="style-scope ytd-default-promo-panel-renderer"></div>\n<div id="content" on-click="onContentClick" class="style-scope ytd-default-promo-panel-renderer">\n  <yt-img-shadow id="logo" height="68" hidden="[[!data.foregroundThumbnailDetails]]" thumbnail="[[data.foregroundThumbnailDetails]]" class="style-scope ytd-default-promo-panel-renderer">\n  </yt-img-shadow>\n  <template is="dom-if" if="[[equals(metadataOrder, \'DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_DESCRIPTION_TITLE\')]]" class="style-scope ytd-default-promo-panel-renderer">\n    <yt-formatted-string id="description" text="[[data.description]]" class="style-scope ytd-default-promo-panel-renderer"></yt-formatted-string>\n  </template>\n  <a class="yt-simple-endpoint style-scope ytd-default-promo-panel-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <h1 id="hero-title" class="style-scope ytd-default-promo-panel-renderer">[[getSimpleString(data.title)]]</h1>\n  </a>\n  <template is="dom-if" if="[[byline]]" class="style-scope ytd-default-promo-panel-renderer">\n    <div id="byline" class="style-scope ytd-default-promo-panel-renderer">\n      <yt-img-shadow id="avatar" hidden="[[!byline.thumbnailDetails]]" thumbnail="[[byline.thumbnailDetails]]" width="[[avatarSize]]" class="style-scope ytd-default-promo-panel-renderer">\n      </yt-img-shadow>\n      <yt-formatted-string id="channel-name" link-inherit-color="" text="[[byline.bylineText]]" title="" class="style-scope ytd-default-promo-panel-renderer">\n      </yt-formatted-string>\n      <ytd-badge-supported-renderer id="video-badges" badges="[[byline.badgeRenderers]]" hidden="[[!byline.badgeRenderers]]" class="style-scope ytd-default-promo-panel-renderer">\n      </ytd-badge-supported-renderer>\n    </div>\n  </template>\n  <template is="dom-if" if="[[equals(metadataOrder, \'DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_TITLE_DESCRIPTION\')]]" class="style-scope ytd-default-promo-panel-renderer">\n    <yt-formatted-string id="description" text="[[data.description]]" class="style-scope ytd-default-promo-panel-renderer"></yt-formatted-string>\n  </template>\n  <div id="action-button" class="style-scope ytd-default-promo-panel-renderer"></div>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return jPO=F},{mode:1});_.Hr("itemSectionRenderer","carouselItemRenderer","ytd-carousel-item-renderer");var yr=function(){var F=_.n.apply(this,arguments)||this;F.narrower=!1;F.dotMenuVisible=!1;F.paginationThumbnailsVisible=!1;F.active=!0;F.disableGridStateAware=!1;F.actionMap={"yt-window-resized":"onWindowResized"};return F};
_.k(yr,_.n);_.N=yr.prototype;_.N.configureRendererStamper=function(){return{currentItem:{id:"carousel-item",mapping:{defaultPromoPanelRenderer:{component:"ytd-default-promo-panel-renderer",attributes:{autoplay:!0},properties:{disableGridStateAware:"[[disableGridStateAware]]",layoutStyle:"[[data.layoutStyle]]",isCarouselInFeed:"[[isCarouselInFeed]]"}}}}}};
_.N.attached=function(){document.addEventListener("yt-page-type-changed",_.UO(this,this.onPageTypeChange));this.currentPageSubtype=_.tg(location.pathname);this.onWindowResized()};
_.N.detached=function(){this.jobId&&_.P0.cancelJob(this.jobId);this.updateSizeJobId&&_.P0.cancelJob(this.updateSizeJobId);document.removeEventListener("yt-page-type-changed",_.UO(this,this.onPageTypeChange))};
_.N.onPageTypeChange=function(F){this.active=F.detail.newPageSubtype===this.currentPageSubtype};
_.N.onWindowResized=function(){this.updateSize()};
_.N.updateSize=function(){this.narrower=this.isNarrower(this.hostElement.clientWidth);this.scrollThumbnails(this.currentItemIndex)};
_.N.setNextCarouselItem=function(){this.shouldRotate()&&this.setCarouselItem(this.currentItemIndex+1)};
_.N.setCarouselItem=function(F){F>=this.data.carouselItems.length&&this.loopCount++;this.jobId&&_.P0.cancelJob(this.jobId);var W=this.getCurrentPanelElement();W&&W.stopVideo();this.currentItemIndex=F%this.data.carouselItems.length;this.currentItem=this.data.carouselItems[this.currentItemIndex];this.scrollThumbnails(this.currentItemIndex);this.currentItemHasVideo()?(W||(W=this.getCurrentPanelElement()),W.playVideo()):this.startRotationJob()};
_.N.scrollThumbnails=function(F){if(this.computeLayoutType(this.data)==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"){var W=this.getCurrentPaginationElement();if(W){var E=_.Z(this.hostElement).querySelector("#pagination-thumbnails");this.currentItemIndex<2?E.style.transform="translateX(0)":(W=W.offsetWidth+8,E.style.transform="translateX(-"+W*(F-Math.ceil(Math.floor(this.overlay.offsetWidth/W)/2)+1)+"px)")}}};
_.N.onDataChanged=function(){var F=this;this.data&&(this.loopCount=0,this.autorotateActive=!0,this.data.autoRotateDurationMs!==void 0&&(this.rotationTimeout=this.data.autoRotateDurationMs),this.setCarouselItem(0),this.updateSizeJobId=_.JG(_.P0,function(){F.getCurrentPanelElement().updateSize();F.updateSize()}))};
_.N.getCurrentPanelElement=function(){return _.Z(_.Z(this.hostElement).querySelector("#carousel-item")).querySelector("ytd-default-promo-panel-renderer")};
_.N.getCurrentPaginationElement=function(){return _.Z(_.Z(this.hostElement).querySelector("#pagination-thumbnails")).querySelector(".ytd-carousel-item-renderer.selected")};
_.N.getNavigationClass=function(F,W){return F===W?"selected":""};
_.N.getNavigationDurationStyle=function(F){return"animation-duration:"+(this.get("data.carouselItems."+F+".defaultPromoPanelRenderer.minPanelDisplayDurationMs")||0)+"ms;"};
_.N.onNavigationTap=function(F){var W=this,E=F.model.index;E!==this.currentItemIndex&&(this.getCurrentPanelElement().transitionOut().then(function(){W.setCarouselItem(E)}),this.autorotateActive=!1)};
_.N.onVideoThumbnailEnded=function(){var F=this;if(this.shouldRotate()){var W=this.getCurrentPaginationElement();W&&(W.classList.add("finished"),this.getCurrentPanelElement().transitionOut().then(function(){W.classList.remove("finished");F.setNextCarouselItem()}))}};
_.N.onVideoThumbnailError=function(){this.startRotationJob()};
_.N.onVideoNotPlaying=function(){this.startRotationJob()};
_.N.currentItemHasVideo=function(){return!!this.get("defaultPromoPanelRenderer.videoThumbnail",this.currentItem)||!!this.get("defaultPromoPanelRenderer.inlinePlaybackRenderer",this.currentItem)};
_.N.startRotationJob=function(){var F=this;_.P0.cancelJob(this.jobId);this.shouldRotate()&&this.rotationTimeout&&(this.jobId=_.P0.addLowPriorityJob(function(){F.getCurrentPanelElement().transitionOut().then(function(){F.setNextCarouselItem()})},this.rotationTimeout))};
_.N.computeDotMenuVisible=function(F,W){return!!F&&!!F.carouselItems&&F.carouselItems.length>1&&!F.paginationThumbnails||!!W};
_.N.computePaginationThumbnailsVisible=function(F,W){var E,h;return((h=F==null?void 0:(E=F.paginationThumbnails)==null?void 0:E.length)!=null?h:0)>1&&!W};
_.N.computeLayoutType=function(){return this.get("data.carouselItems.0.defaultPromoPanelRenderer.panelLayout")||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.N.computePaginatorAlignment=function(F){return(F==null?void 0:F.paginatorAlignment)||"CAROUSEL_ITEM_RENDERER_PAGINATOR_ALIGNMENT_END"};
_.N.shouldRotate=function(){return this.data.carouselItems.length>1&&this.active&&this.loopCount<3&&this.autorotateActive};
_.N.activeChanged=function(){this.data&&(this.active?this.setCarouselItem(this.currentItemIndex):this.currentItem=void 0)};
_.N.isNarrower=function(F){return(F!=null?F:0)<nm.NARROW_VERSION_SIZE};
yr.prototype.activeChanged=yr.prototype.activeChanged;yr.prototype.onVideoNotPlaying=yr.prototype.onVideoNotPlaying;yr.prototype.onVideoThumbnailError=yr.prototype.onVideoThumbnailError;yr.prototype.onVideoThumbnailEnded=yr.prototype.onVideoThumbnailEnded;yr.prototype.onDataChanged=yr.prototype.onDataChanged;_.T([_.J(_.lU),_.Y("design:type",Object)],yr.prototype,"ytdGridStateAwareBehavior",void 0);
_.T([_.J(_.y_.YtdGuideStateAwareBehavior),_.Y("design:type",Object)],yr.prototype,"ytdGuideStateAwareBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],yr.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],yr.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],yr.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Object)],yr.prototype,"currentItem",void 0);
_.T([_.O(),_.Y("design:type",Number)],yr.prototype,"currentItemIndex",void 0);_.T([_.O(),_.Y("design:type",Number)],yr.prototype,"rotationTimeout",void 0);_.T([_.O(),_.Y("design:type",Number)],yr.prototype,"loopCount",void 0);_.T([_.O({computed:"computePaginatorAlignment(data)",reflectToAttribute:!0}),_.Y("design:type",String)],yr.prototype,"paginatorAlignment",void 0);_.T([_.O(),_.Y("design:type",Number)],yr.prototype,"jobId",void 0);
_.T([_.O(),_.Y("design:type",Number)],yr.prototype,"updateSizeJobId",void 0);_.T([_.O({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],yr.prototype,"isCarouselInFeed",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],yr.prototype,"narrower",void 0);_.T([_.O({computed:"computeDotMenuVisible(data, narrower)"}),_.Y("design:type",Object)],yr.prototype,"dotMenuVisible",void 0);
_.T([_.O({computed:"computePaginationThumbnailsVisible(data, narrower)"}),_.Y("design:type",Object)],yr.prototype,"paginationThumbnailsVisible",void 0);_.T([_.O({computed:"computeLayoutType(data)",reflectToAttribute:!0}),_.Y("design:type",String)],yr.prototype,"layoutType",void 0);_.T([_.O({value:!0,reflectToAttribute:!0}),_.Y("design:type",Boolean)],yr.prototype,"autorotateActive",void 0);_.T([_.O(),_.Y("design:type",Object)],yr.prototype,"active",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],yr.prototype,"disableGridStateAware",void 0);_.T([_.gQ("#overlay"),_.Y("design:type",HTMLElement)],yr.prototype,"overlay",void 0);_.T([_.Cz("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],yr.prototype,"onDataChanged",null);
_.T([_.R4("yt-video-thumbnail-ended"),_.R4("yt-default-promo-panel-renderer-rotate"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],yr.prototype,"onVideoThumbnailEnded",null);_.T([_.R4("yt-video-thumbnail-error"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],yr.prototype,"onVideoThumbnailError",null);
_.T([_.R4("yt-video-thumbnail-not-playing"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],yr.prototype,"onVideoNotPlaying",null);_.T([_.Cz("active"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],yr.prototype,"activeChanged",null);yr=_.T([_.y({disableElementRegistration:!0,is:"ytd-carousel-item-renderer"})],yr);
_.r(yr,"ytd-carousel-item-renderer",function(){if(y4K!==void 0)return y4K;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-carousel-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="carousel-item" class="style-scope ytd-carousel-item-renderer"></div>\n<div id="menu" hidden="[[!dotMenuVisible]]" class="style-scope ytd-carousel-item-renderer">\n  <template is="dom-repeat" items="[[data.carouselItems]]" class="style-scope ytd-carousel-item-renderer">\n    <button class$="menu-dot [[getNavigationClass(index, currentItemIndex)]] style-scope ytd-carousel-item-renderer" on-click="onNavigationTap">\n    </button>\n  </template>\n</div>\n<div id="overlay" class="style-scope ytd-carousel-item-renderer">\n  <div id="pagination-thumbnails" hidden="[[!paginationThumbnailsVisible]]" class="style-scope ytd-carousel-item-renderer">\n    <template is="dom-repeat" items="[[data.paginationThumbnails]]" class="style-scope ytd-carousel-item-renderer">\n      <button class$="[[getNavigationClass(index, currentItemIndex)]] style-scope ytd-carousel-item-renderer" aria-label$="[[item.accessibility.accessibilityData.label]]" on-click="onNavigationTap">\n          <yt-img-shadow height="54" hidden="[[!equals(layoutType, \'DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C\')]]" thumbnail="[[item]]" width="96" class="style-scope ytd-carousel-item-renderer">\n          </yt-img-shadow>\n          <yt-img-shadow height="40" hidden="[[equals(layoutType, \'DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C\')]]" thumbnail="[[item]]" width="72" class="style-scope ytd-carousel-item-renderer">\n          </yt-img-shadow>\n        <div class="progress-bar style-scope ytd-carousel-item-renderer" style$="[[getNavigationDurationStyle(index)]]" hidden="[[!autorotateActive]]">\n        </div>\n      </button>\n    </template>\n  </div>\n</div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return y4K=F},{mode:2});var oy6;var GuT;var Y$O;var wCP;var jL=function(){var F=_.n.apply(this,arguments)||this;F.originalQuery=null;F.originalEndpoint=null;return F};
_.k(jL,_.n);jL.prototype.computeShowOriginalQueryWithoutEndpoint_=function(F,W){return!(!F||W)};
_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],jL.prototype,"ytComponentBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],jL.prototype,"correctedText",void 0);_.T([_.O(),_.Y("design:type",Object)],jL.prototype,"correctedQuery",void 0);_.T([_.O(),_.Y("design:type",Object)],jL.prototype,"correctedEndpoint",void 0);_.T([_.O(),_.Y("design:type",Object)],jL.prototype,"originalText",void 0);_.T([_.O(),_.Y("design:type",Object)],jL.prototype,"originalQuery",void 0);
_.T([_.O(),_.Y("design:type",Object)],jL.prototype,"originalEndpoint",void 0);_.T([_.O({value:!1,computed:"computeShowOriginalQueryWithoutEndpoint_(originalQuery, originalEndpoint)"}),_.Y("design:type",Boolean)],jL.prototype,"showOriginalQueryWithoutEndpoint",void 0);jL=_.T([_.$3({is:"yt-search-query-correction",disableElementRegistration:!0})],jL);
_.r(jL,"yt-search-query-correction",function(){if(wCP===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-search-query-correction--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_search_query_correction.yt.search.query.correction.css.js--\x3e<yt-formatted-string id="corrected" text="[[correctedText]]" class="style-scope yt-search-query-correction"></yt-formatted-string>\n<a class="yt-simple-endpoint style-scope yt-search-query-correction" href$="[[computeHref_(correctedEndpoint)]]" data="[[correctedEndpoint]]">\n  <yt-formatted-string id="corrected-link" text="[[correctedQuery]]" class="style-scope yt-search-query-correction"></yt-formatted-string>\n</a>\n<template is="dom-if" if="[[originalText]]" class="style-scope yt-search-query-correction">\n  <yt-formatted-string id="original" text="[[originalText]]" class="style-scope yt-search-query-correction"></yt-formatted-string>\n  <template is="dom-if" if="[[originalEndpoint]]" class="style-scope yt-search-query-correction">\n    <a class="yt-simple-endpoint style-scope yt-search-query-correction" href$="[[computeHref_(originalEndpoint)]]" data="[[originalEndpoint]]">\n        <yt-formatted-string class="original-link style-scope yt-search-query-correction" text="[[originalQuery]]"></yt-formatted-string>\n      </a>\n  </template>\n  <template is="dom-if" if="[[showOriginalQueryWithoutEndpoint]]" class="style-scope yt-search-query-correction">\n    <yt-formatted-string class="original-link style-scope yt-search-query-correction" text="[[originalQuery]]"></yt-formatted-string>\n  </template>\n</template>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;Y$O===void 0&&(Y$O=document.createElement("template"));var h=Y$O;E.call(W,h.content.cloneNode(!0),F.content.firstChild);wCP=F}F=wCP;return F},{mode:2});_.Hr("itemSectionRenderer","didYouMeanRenderer","yt-did-you-mean-renderer");var i8=function(){return _.n.apply(this,arguments)||this};
_.k(i8,_.n);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],i8.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],i8.prototype,"data",void 0);i8=_.T([_.$3({is:"yt-did-you-mean-renderer",disableElementRegistration:!0})],i8);
_.r(i8,"yt-did-you-mean-renderer",function(){if(GuT===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-did-you-mean-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_did_you_mean_renderer.yt.did.you.mean.renderer.css.js--\x3e<yt-search-query-correction corrected-text="[[data.didYouMean]]" corrected-query="[[data.correctedQuery]]" corrected-endpoint="[[data.correctedQueryEndpoint]]" class="style-scope yt-did-you-mean-renderer">\n</yt-search-query-correction>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;oy6===void 0&&(oy6=document.createElement("template"));var h=oy6;E.call(W,h.content.cloneNode(!0),F.content.firstChild);GuT=F}F=GuT;return F},{mode:2});var uix;var S$6;_.Hr("itemSectionRenderer","includingResultsForRenderer","yt-including-results-for-renderer");var rP=function(){return _.n.apply(this,arguments)||this};
_.k(rP,_.n);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],rP.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],rP.prototype,"data",void 0);rP=_.T([_.$3({is:"yt-including-results-for-renderer",disableElementRegistration:!0})],rP);
_.r(rP,"yt-including-results-for-renderer",function(){if(S$6===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-including-results-for-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_including_results_for_renderer.yt.including.results.for.renderer.css.js--\x3e<yt-search-query-correction corrected-text="[[data.includingResultsFor]]" corrected-query="[[data.correctedQuery]]" corrected-endpoint="[[data.correctedQueryEndpoint]]" original-text="[[data.searchOnlyFor]]" original-query="[[data.originalQuery]]" original-endpoint="[[data.originalQueryEndpoint]]" class="style-scope yt-including-results-for-renderer">\n</yt-search-query-correction>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;uix===void 0&&(uix=document.createElement("template"));var h=uix;E.call(W,h.content.cloneNode(!0),F.content.firstChild);S$6=F}F=S$6;return F},{mode:2});var pC8;var mfg;_.Hr("itemSectionRenderer","musicPassFeatureInfoRenderer","yt-music-pass-feature-info-renderer");var TE=function(){return _.n.apply(this,arguments)||this};
_.k(TE,_.n);TE.prototype.computeExtraClasses_=function(F,W){var E="";F&&(E+=" "+F.toLowerCase().replace(/_/g,"-"));W&&(E+=" "+W.toLowerCase().replace(/_/g,"-"));return E};
TE.prototype.computeUrlImg_=function(){var F=this.data;F.image&&(_.Z(this.hostElement).querySelector("#container").style.backgroundImage="url("+_.m_(F.image.thumbnails,Number.MAX_VALUE)+")")};
TE.prototype.computeUrlImg_=TE.prototype.computeUrlImg_;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],TE.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],TE.prototype,"data",void 0);_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],TE.prototype,"computeUrlImg_",null);TE=_.T([_.$3({is:"yt-music-pass-feature-info-renderer",disableElementRegistration:!0})],TE);
_.r(TE,"yt-music-pass-feature-info-renderer",function(){if(mfg===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-music-pass-feature-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_music_pass_feature_info_renderer.yt.music.pass.feature.info.renderer.css.js--\x3e<div id="container" class$="[[computeExtraClasses_(data.textStyle, data.textHorizontalAlignment)]] style-scope yt-music-pass-feature-info-renderer">\n  <div id="message" dir="ltr" class="style-scope yt-music-pass-feature-info-renderer">\n    <yt-formatted-string id="header" text="[[data.header]]" class="style-scope yt-music-pass-feature-info-renderer"></yt-formatted-string>\n    <yt-formatted-string id="description" text="[[data.description]]" class="style-scope yt-music-pass-feature-info-renderer"></yt-formatted-string>\n  </div>\n</div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);var W=F.content,E=W.insertBefore;pC8===void 0&&(pC8=document.createElement("template"));var h=pC8;E.call(W,h.content.cloneNode(!0),F.content.firstChild);mfg=F}F=mfg;return F},{mode:2});var KQK;var Fkx;_.Hr("itemSectionRenderer","noResultsFoundShowingResultsForRenderer","yt-no-results-found-showing-results-for-renderer");var ow=function(){return _.n.apply(this,arguments)||this};
_.k(ow,_.n);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],ow.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],ow.prototype,"data",void 0);ow=_.T([_.$3({is:"yt-no-results-found-showing-results-for-renderer",disableElementRegistration:!0})],ow);
_.r(ow,"yt-no-results-found-showing-results-for-renderer",function(){if(Fkx===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-no-results-found-showing-results-for-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_no_results_found_showing_results_for_renderer.yt.no.results.found.showing.results.for.renderer.css.js--\x3e<yt-search-query-correction corrected-text="[[data.showingResultsFor]]" corrected-query="[[data.correctedQuery]]" corrected-endpoint="[[data.correctedQueryEndpoint]]" original-text="[[data.noResultsFound]]" original-query="[[data.originalQuery]]" original-endpoint="[[data.originalQueryEndpoint]]" class="style-scope yt-no-results-found-showing-results-for-renderer">\n</yt-search-query-correction>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;KQK===void 0&&(KQK=document.createElement("template"));var h=KQK;E.call(W,h.content.cloneNode(!0),F.content.firstChild);Fkx=F}F=Fkx;return F},{mode:2});var WkN;var EX6;_.Hr("itemSectionRenderer","resultsWithoutQuotesRenderer","yt-results-without-quotes-renderer");var GE=function(){return _.n.apply(this,arguments)||this};
_.k(GE,_.n);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],GE.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],GE.prototype,"data",void 0);GE=_.T([_.$3({is:"yt-results-without-quotes-renderer",disableElementRegistration:!0})],GE);
_.r(GE,"yt-results-without-quotes-renderer",function(){if(EX6===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-results-without-quotes-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_results_without_quotes_renderer.yt.results.without.quotes.renderer.css.js--\x3e<yt-search-query-correction corrected-text="[[data.resultsFor]]" corrected-query="[[data.correctedQuery]]" corrected-endpoint="[[data.correctedQueryEndpoint]]" original-text="[[data.withoutQuotes]]" class="style-scope yt-results-without-quotes-renderer">\n</yt-search-query-correction>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;WkN===void 0&&(WkN=document.createElement("template"));var h=WkN;E.call(W,h.content.cloneNode(!0),F.content.firstChild);EX6=F}F=EX6;return F},{mode:2});var hEg;var d9N;_.Hr("itemSectionRenderer","searchNoResultsRenderer","yt-search-no-results-renderer");var Y1=function(){return _.n.apply(this,arguments)||this};
_.k(Y1,_.n);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Y1.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],Y1.prototype,"data",void 0);Y1=_.T([_.$3({is:"yt-search-no-results-renderer",disableElementRegistration:!0})],Y1);
_.r(Y1,"yt-search-no-results-renderer",function(){if(d9N===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-search-no-results-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_search_no_results_renderer.yt.search.no.results.renderer.css.js--\x3e<yt-formatted-string id="text" text="[[data.noResultsText]]" class="style-scope yt-search-no-results-renderer"></yt-formatted-string>\n<template is="dom-if" if="[[data.alternateQueryText]]" class="style-scope yt-search-no-results-renderer">\n  <a class="yt-simple-endpoint style-scope yt-search-no-results-renderer" href$="[[computeHref_(data.alternateQueryEndpoint)]]" data="[[data.alternateQueryEndpoint]]">\n    <yt-formatted-string id="link" text="[[data.alternateQueryText]]" class="style-scope yt-search-no-results-renderer"></yt-formatted-string>\n  </a>\n</template>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;hEg===void 0&&(hEg=document.createElement("template"));var h=hEg;E.call(W,h.content.cloneNode(!0),F.content.firstChild);d9N=F}F=d9N;return F},{mode:2});var NJP;var VWK;_.Hr("itemSectionRenderer","showingResultsForRenderer","yt-showing-results-for-renderer");var wP=function(){return _.n.apply(this,arguments)||this};
_.k(wP,_.n);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],wP.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],wP.prototype,"data",void 0);wP=_.T([_.$3({is:"yt-showing-results-for-renderer",disableElementRegistration:!0})],wP);
_.r(wP,"yt-showing-results-for-renderer",function(){if(VWK===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-showing-results-for-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_showing_results_for_renderer.yt.showing.results.for.renderer.css.js--\x3e<yt-search-query-correction corrected-endpoint="[[data.correctedQueryEndpoint]]" corrected-query="[[data.correctedQuery]]" corrected-text="[[data.showingResultsFor]]" original-endpoint="[[data.originalQueryEndpoint]]" original-query="[[data.originalQuery]]" original-text="[[data.searchInsteadFor]]" class="style-scope yt-showing-results-for-renderer">\n</yt-search-query-correction>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;NJP===void 0&&(NJP=document.createElement("template"));var h=NJP;E.call(W,h.content.cloneNode(!0),F.content.firstChild);VWK=F}F=VWK;return F},{mode:2});var U9g;var REP;var eEF;var MWq;var u8=function(){var F=_.n.apply(this,arguments)||this;F.answerExpanded=!1;return F};
_.k(u8,_.n);u8.prototype.toggleAnswer_=function(F){var W=_.oo(F);W&&W.classList.contains("yt-simple-endpoint")||(F.preventDefault(),F.stopPropagation(),this.answerExpanded=!this.answerExpanded)};
u8.prototype.toggleAnswer_=u8.prototype.toggleAnswer_;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],u8.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],u8.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],u8.prototype,"answerExpanded",void 0);_.T([_.R4("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],u8.prototype,"toggleAnswer_",null);
u8=_.T([_.$3({is:"yt-generic-faq-question-renderer",disableElementRegistration:!0})],u8);
_.r(u8,"yt-generic-faq-question-renderer",function(){if(MWq===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-generic-faq-question-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_generic_faq_question_renderer.yt.generic.faq.question.renderer.css.js--\x3e<div class="head style-scope yt-generic-faq-question-renderer" on-tap="toggleAnswer_">\n  <span class="question style-scope yt-generic-faq-question-renderer">[[getSimpleString(data.question)]]</span>\n  <yt-icon id="expand-arrow" class="answer-arrow style-scope yt-generic-faq-question-renderer" hidden="[[answerExpanded]]" icon="yt-icons:expand-more">\n  </yt-icon>\n  <yt-icon id="collapse-arrow" class="answer-arrow style-scope yt-generic-faq-question-renderer" hidden="[[!answerExpanded]]" icon="yt-icons:expand-less">\n  </yt-icon>\n</div>\n<tp-yt-iron-collapse id="collapse" opened="[[answerExpanded]]" class="style-scope yt-generic-faq-question-renderer">\n  <template is="dom-repeat" items="[[data.answers]]" class="style-scope yt-generic-faq-question-renderer">\n    <yt-formatted-string class="answer style-scope yt-generic-faq-question-renderer" text="[[item]]"></yt-formatted-string>\n  </template>\n</tp-yt-iron-collapse>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;eEF===void 0&&(eEF=document.createElement("template"));var h=eEF;E.call(W,h.content.cloneNode(!0),F.content.firstChild);MWq=F}F=MWq;return F},{mode:2});_.Hr("itemSectionRenderer","faqSectionRenderer","yt-faq-section-renderer");var SL=function(){return _.n.apply(this,arguments)||this};
_.k(SL,_.n);SL.prototype.configureRendererStamper=function(){return{"data.questions":{id:"contents",mapping:{genericFaqQuestionRenderer:"yt-generic-faq-question-renderer"}}}};
_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],SL.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],SL.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],SL.prototype,"data",void 0);SL=_.T([_.$3({is:"yt-faq-section-renderer",disableElementRegistration:!0})],SL);
_.r(SL,"yt-faq-section-renderer",function(){if(REP===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-faq-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_faq_section_renderer.yt.faq.section.renderer.css.js--\x3e<div class="container style-scope yt-faq-section-renderer">\n  <span class="header style-scope yt-faq-section-renderer">[[getSimpleString(data.header)]]</span>\n  <div id="contents" class="style-scope yt-faq-section-renderer"></div>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;U9g===void 0&&(U9g=document.createElement("template"));var h=U9g;E.call(W,h.content.cloneNode(!0),F.content.firstChild);REP=F}F=REP;return F},{mode:2});var gX$;var QDg;_.Hr("itemSectionRenderer","OfferItemExpandedRenderer","yt-offer-item-expanded-renderer");var pm=function(){return _.n.apply(this,arguments)||this};
_.k(pm,_.n);
pm.prototype.configureRendererStamper=function(){return{"data.imageRenderer":{id:"image-renderer",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer",params:{fit:!0}}}},"data.headingRenderer":{id:"heading-renderer",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}},"data.descriptionRenderer":{id:"description-renderer",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}},"data.additionalInfoRenderer":{id:"additional-info-renderer",mapping:{cardItemActionsRenderer:{component:"yt-card-item-actions-renderer"}}}}};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],pm.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],pm.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],pm.prototype,"data",void 0);pm=_.T([_.$3({is:"yt-offer-item-expanded-renderer",disableElementRegistration:!0})],pm);
_.r(pm,"yt-offer-item-expanded-renderer",function(){if(QDg===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-offer-item-expanded-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_offer_item_expanded_renderer.yt.offer.item.expanded.renderer.css.js--\x3e<div id="image-renderer" class="style-scope yt-offer-item-expanded-renderer"></div>\n<div id="content" class="style-scope yt-offer-item-expanded-renderer">\n    <div id="heading-renderer" class="style-scope yt-offer-item-expanded-renderer"></div>\n    <div id="description-renderer" class="style-scope yt-offer-item-expanded-renderer"></div>\n    <div id="additional-info-renderer" class="style-scope yt-offer-item-expanded-renderer"></div>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;gX$===void 0&&(gX$=document.createElement("template"));var h=gX$;E.call(W,h.content.cloneNode(!0),F.content.firstChild);QDg=F}F=QDg;return F},{mode:2});var zE8;var tWq;_.Hr("itemSectionRenderer","OfferItemRenderer","yt-offer-item-renderer");var mt=function(){return _.n.apply(this,arguments)||this};
_.k(mt,_.n);
mt.prototype.configureRendererStamper=function(){return{"data.imageRenderer":{id:"image-renderer",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer",params:{fit:!0}}}},"data.headingRenderer":{id:"heading-renderer",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}},"data.descriptionRenderer":{id:"description-renderer",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}},"data.additionalInfoRenderer":{id:"additional-info-renderer",mapping:{cardItemActionsRenderer:{component:"yt-card-item-actions-renderer"}}}}};
mt.prototype.computeFullWidthMode=function(F){return!(!F||!F.fullWidthMode)};
mt.prototype.computeBorderlessMode=function(F){return!(!F||!F.borderlessMode)};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],mt.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],mt.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],mt.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0,computed:"computeFullWidthMode(data)"}),_.Y("design:type",Boolean)],mt.prototype,"fullWidthMode",void 0);
_.T([_.O({reflectToAttribute:!0,computed:"computeBorderlessMode(data)"}),_.Y("design:type",Boolean)],mt.prototype,"borderlessMode",void 0);mt=_.T([_.$3({is:"yt-offer-item-renderer",disableElementRegistration:!0})],mt);
_.r(mt,"yt-offer-item-renderer",function(){if(tWq===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-offer-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_offer_item_renderer.yt.offer.item.renderer.css.js--\x3e<div id="image-renderer" class="style-scope yt-offer-item-renderer"></div>\n<div id="heading-renderer" class="style-scope yt-offer-item-renderer"></div>\n<div id="description-renderer" class="style-scope yt-offer-item-renderer"></div>\n<div id="additional-info-renderer" class="style-scope yt-offer-item-renderer"></div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;zE8===void 0&&(zE8=document.createElement("template"));var h=zE8;E.call(W,h.content.cloneNode(!0),F.content.firstChild);tWq=F}F=tWq;return F},{mode:2});var C3w;var BJN;_.Hr("itemSectionRenderer","subscriptionProductHeaderRenderer","yt-subscription-product-header-renderer");var Km=function(){return _.n.apply(this,arguments)||this};
_.k(Km,_.n);Km.prototype.computeAriaLevel_=function(F){return this.getLevelID_(F)};
Km.prototype.getLevelID_=function(F){return(F=F.match(/[0-9]+$/))&&F.length==1?F[0]:"1"};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Km.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],Km.prototype,"data",void 0);_.T([_.O({computed:"computeAriaLevel_(data.level)",reflectToAttribute:!0}),_.Y("design:type",String)],Km.prototype,"ariaLevel",void 0);_.T([_.O({value:"heading",reflectToAttribute:!0}),_.Y("design:type",String)],Km.prototype,"role",void 0);
_.T([_.O({value:-1,reflectToAttribute:!0}),_.Y("design:type",Number)],Km.prototype,"tabindex",void 0);Km=_.T([_.$3({is:"yt-subscription-product-header-renderer",disableElementRegistration:!0})],Km);
_.r(Km,"yt-subscription-product-header-renderer",function(){if(BJN===void 0){var F=document.createElement("template");_.L(F,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-subscription-product-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_subscription_product_header_renderer.yt.subscription.product.header.renderer.css.js--\x3e[[getSimpleString(data.text)]]\n");F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;C3w===void 0&&(C3w=document.createElement("template"));var h=C3w;E.call(W,h.content.cloneNode(!0),F.content.firstChild);BJN=F}F=BJN;return F},{mode:2});var vXx;var IQu;_.Hr("itemSectionRenderer","subscriptionProductRenderer","yt-subscription-product-renderer");var FT=function(){return _.n.apply(this,arguments)||this};
_.k(FT,_.n);FT.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}},"data.menu":{id:"menu",mapping:_.Pr("menuRenderer"),events:!0}}};
FT.prototype.onStampFinished_=function(){_.Z(this.hostElement).querySelector("#menu").children[0].icon="yt-icons:more_vert"};
FT.prototype.onStampFinished_=FT.prototype.onStampFinished_;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],FT.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],FT.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],FT.prototype,"data",void 0);_.T([_.R4("yt-rendererstamper-finished"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],FT.prototype,"onStampFinished_",null);
FT=_.T([_.$3({is:"yt-subscription-product-renderer",disableElementRegistration:!0})],FT);
_.r(FT,"yt-subscription-product-renderer",function(){if(IQu===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-subscription-product-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_subscription_product_renderer.yt.subscription.product.renderer.css.js--\x3e<tp-yt-paper-card elevation="1" class="style-scope yt-subscription-product-renderer">\n  <div id="content" class="style-scope yt-subscription-product-renderer">\n    <yt-img-shadow id="logo-image" height="30" thumbnail="[[data.logo]]" class="style-scope yt-subscription-product-renderer">\n    </yt-img-shadow>\n    <div id="metadatas" class="style-scope yt-subscription-product-renderer">\n      <template is="dom-repeat" items="[[data.metadatas]]" class="style-scope yt-subscription-product-renderer">\n        <div class="metadata style-scope yt-subscription-product-renderer">\n          [[getSimpleString(item)]]\n        </div>\n      </template>\n    </div>\n    <div id="additional-infos" class="style-scope yt-subscription-product-renderer">\n      <template is="dom-repeat" items="[[data.additionalInfos]]" class="style-scope yt-subscription-product-renderer">\n        <div class="additional-info style-scope yt-subscription-product-renderer">\n          [[getSimpleString(item)]]\n        </div>\n      </template>\n    </div>\n    <yt-formatted-string class="description style-scope yt-subscription-product-renderer" hidden="[[!data.description]]" split-lines="" text="[[data.description]]">\n    </yt-formatted-string>\n  </div>\n  <div id="menu" class="style-scope yt-subscription-product-renderer"></div>\n  <div id="actions" class="card-actions style-scope yt-subscription-product-renderer">\n    <div id="primary-button" class="button style-scope yt-subscription-product-renderer"></div>\n    <div id="secondary-button" class="button style-scope yt-subscription-product-renderer"></div>\n  </div>\n</tp-yt-paper-card>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;vXx===void 0&&(vXx=document.createElement("template"));var h=vXx;E.call(W,h.content.cloneNode(!0),F.content.firstChild);IQu=F}F=IQu;return F},{mode:2});var cpN;var D9q;_.Hr("itemSectionRenderer","subscriptionProductUpsellOfferRenderer","yt-subscription-product-upsell-offer-renderer");var Wo=function(){return _.n.apply(this,arguments)||this};
_.k(Wo,_.n);Wo.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
Wo.prototype.imageScrimColorValuesChanged_=function(){var F,W=(F=this.data)==null?void 0:F.imageScrimColorValues;_.Z(this.hostElement).querySelector("#scrim").style.backgroundColor=W?_.XC(W[0]):"transparent"};
Wo.prototype.imageScrimColorValuesChanged_=Wo.prototype.imageScrimColorValuesChanged_;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Wo.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],Wo.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],Wo.prototype,"data",void 0);
_.T([_.ea("data.imageScrimColorValues"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Wo.prototype,"imageScrimColorValuesChanged_",null);Wo=_.T([_.$3({is:"yt-subscription-product-upsell-offer-renderer",disableElementRegistration:!0})],Wo);
_.r(Wo,"yt-subscription-product-upsell-offer-renderer",function(){if(D9q===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-subscription-product-upsell-offer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_subscription_product_upsell_offer_renderer.yt.subscription.product.upsell.offer.renderer.css.js--\x3e<tp-yt-paper-card class="style-scope yt-subscription-product-upsell-offer-renderer">\n  <div id="image-container" class="style-scope yt-subscription-product-upsell-offer-renderer">\n    <yt-img-shadow id="image" object-fit="COVER" object-position="LEFT" thumbnail="[[data.image]]" class="style-scope yt-subscription-product-upsell-offer-renderer">\n    </yt-img-shadow>\n    <div id="scrim" class="style-scope yt-subscription-product-upsell-offer-renderer">\n      <yt-icon id="logo-icon" aria-label$="[[data.logoIconAccessibility.accessibilityData.label]]" hidden="[[!data.logoIcon]]" icon="[[data.logoIcon.iconType]]" class="style-scope yt-subscription-product-upsell-offer-renderer">\n      </yt-icon>\n      <yt-img-shadow id="logo-image" height="30" hidden="[[!data.logo]]" thumbnail="[[data.logo]]" class="style-scope yt-subscription-product-upsell-offer-renderer">\n      </yt-img-shadow>\n    </div>\n  </div>\n  <div id="content" class="card-content style-scope yt-subscription-product-upsell-offer-renderer">\n    <div id="title" class="style-scope yt-subscription-product-upsell-offer-renderer">\n      [[getSimpleString(data.title)]]\n    </div>\n    <yt-formatted-string id="description" text="[[data.description]]" class="style-scope yt-subscription-product-upsell-offer-renderer"></yt-formatted-string>\n    <div id="additional-infos" class="style-scope yt-subscription-product-upsell-offer-renderer">\n      <template is="dom-repeat" items="[[data.additionalInfos]]" class="style-scope yt-subscription-product-upsell-offer-renderer">\n        <yt-formatted-string id="additional-info" text="[[item]]" class="style-scope yt-subscription-product-upsell-offer-renderer"></yt-formatted-string>\n      </template>\n    </div>\n  </div>\n  <div id="actions" class="card-actions style-scope yt-subscription-product-upsell-offer-renderer">\n    <div id="primary-button" class="button style-scope yt-subscription-product-upsell-offer-renderer"></div>\n    <div id="secondary-button" class="button style-scope yt-subscription-product-upsell-offer-renderer"></div>\n  </div>\n</tp-yt-paper-card>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;cpN===void 0&&(cpN=document.createElement("template"));var h=cpN;E.call(W,h.content.cloneNode(!0),F.content.firstChild);D9q=F}F=D9q;return F},{mode:2});var x9x;var kIN;var Apx;var sDP;var LkO;var qEK;var E5=function(){return _.n.apply(this,arguments)||this};
_.k(E5,_.n);E5.prototype.onYtServiceRequestError_=function(F){_.R$(this.hostElement,F.detail.error.message)};
E5.prototype.onYtServiceRequestError_=E5.prototype.onYtServiceRequestError_;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],E5.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],E5.prototype,"data",void 0);_.T([_.O({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],E5.prototype,"collapsible",void 0);_.T([_.O({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],E5.prototype,"isManageRed",void 0);
_.T([_.R4("yt-service-request-error"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],E5.prototype,"onYtServiceRequestError_",null);E5=_.T([_.$3({is:"yt-single-ypc-offer-renderer",disableElementRegistration:!0})],E5);
_.r(E5,"yt-single-ypc-offer-renderer",function(){if(qEK===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-single-ypc-offer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_single_ypc_offer_renderer.yt.single.ypc.offer.renderer.css.js--\x3e<div id="yt-unlimited-metadata" class="style-scope yt-single-ypc-offer-renderer">\n  <yt-formatted-string hidden="[[!data.offerTypeName]]" text="[[data.offerTypeName]]" class="style-scope yt-single-ypc-offer-renderer">\n  </yt-formatted-string>\n  <template is="dom-repeat" items="[[data.metadatas]]" class="style-scope yt-single-ypc-offer-renderer">\n    <yt-formatted-string id="metadata-item" text="[[item]]" class="style-scope yt-single-ypc-offer-renderer">\n    </yt-formatted-string>\n  </template>\n</div>\n<yt-button-renderer id="subscription-button" data="[[data.button.buttonRenderer]]" class="style-scope yt-single-ypc-offer-renderer">\n</yt-button-renderer>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;LkO===void 0&&(LkO=document.createElement("template"));var h=LkO;E.call(W,h.content.cloneNode(!0),F.content.firstChild);qEK=F}F=qEK;return F},{mode:2});var hY=function(){return _.n.apply(this,arguments)||this};
_.k(hY,_.n);hY.prototype.configureRendererStamper=function(){return{"data.singleYpcOfferSupportedRenderers":{id:"contents",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],hY.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],hY.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],hY.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],hY.prototype,"isManageRed",void 0);hY=_.T([_.$3({is:"yt-single-ypc-offer-list-renderer",disableElementRegistration:!0})],hY);
_.r(hY,"yt-single-ypc-offer-list-renderer",function(){if(sDP===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-single-ypc-offer-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_single_ypc_offer_list_renderer.yt.single.ypc.offer.list.renderer.css.js--\x3e<div id="contents" class="style-scope yt-single-ypc-offer-list-renderer"></div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);var W=F.content,E=W.insertBefore;Apx===void 0&&(Apx=document.createElement("template"));var h=Apx;E.call(W,h.content.cloneNode(!0),F.content.firstChild);sDP=F}F=sDP;return F},{mode:2});var $9x;var ZZw;_.Hr("itemSectionRenderer","ypcOffersListRenderer","yt-ypc-offers-list-renderer");var dA=function(){return _.n.apply(this,arguments)||this};
_.k(dA,_.n);dA.prototype.configureRendererStamper=function(){return{"data.offersList":{id:"contents",mapping:{singleYpcOfferListRenderer:{component:"yt-single-ypc-offer-list-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],dA.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],dA.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],dA.prototype,"data",void 0);_.T([_.O({value:!1}),_.Y("design:type",Boolean)],dA.prototype,"isManageRed",void 0);dA=_.T([_.$3({is:"yt-ypc-offers-list-renderer",disableElementRegistration:!0})],dA);
_.r(dA,"yt-ypc-offers-list-renderer",function(){if(ZZw===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-ypc-offers-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_ypc_offers_list_renderer.yt.ypc.offers.list.renderer.css.js--\x3e<div id="contents" class="style-scope yt-ypc-offers-list-renderer"></div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);var W=F.content,E=W.insertBefore;$9x===void 0&&($9x=document.createElement("template"));var h=$9x;E.call(W,h.content.cloneNode(!0),F.content.firstChild);ZZw=F}F=ZZw;return F},{mode:2});_.Hr("itemSectionRenderer","unlimitedManageSubscriptionPageRenderer","yt-unlimited-manage-subscription-page-renderer");var N8=function(){return _.n.apply(this,arguments)||this};
_.k(N8,_.n);
N8.prototype.configureRendererStamper=function(){return{"data.manageFixFopButton":{id:"manage-fix-fop-button",mapping:{buttonRenderer:{component:"yt-button-renderer",params:{alignByText:!0}}}},"data.helpButton":{id:"help-button",mapping:{buttonRenderer:{component:"yt-button-renderer",params:{alignByText:!0}}}},"data.manageFamilyButton":{id:"manage-family-button",mapping:{buttonRenderer:{component:"yt-button-renderer",params:{alignByText:!0}}}},"data.manageSubscriptionButton":{id:"manage-subscription-button",mapping:{buttonRenderer:{component:"yt-button-renderer",
params:{alignByText:!0}}}},"data.offers":{id:"offers",mapping:{ypcOffersListRenderer:{component:"yt-ypc-offers-list-renderer",params:{isManageRed:!0}}}}}};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],N8.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],N8.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],N8.prototype,"data",void 0);N8=_.T([_.$3({is:"yt-unlimited-manage-subscription-page-renderer",disableElementRegistration:!0})],N8);
_.r(N8,"yt-unlimited-manage-subscription-page-renderer",function(){if(kIN===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-unlimited-manage-subscription-page-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_unlimited_manage_subscription_page_renderer.yt.unlimited.manage.subscription.page.renderer.css.js--\x3e<tp-yt-paper-card elevation="1" class="style-scope yt-unlimited-manage-subscription-page-renderer">\n  <h2 class="style-scope yt-unlimited-manage-subscription-page-renderer">[[getSimpleString(data.subscriptionTitle)]]</h2>\n  <div class="card-content style-scope yt-unlimited-manage-subscription-page-renderer">\n    <template is="dom-repeat" items="[[data.subscriptionInfos]]" class="style-scope yt-unlimited-manage-subscription-page-renderer">\n      <div class="subscription-info-item style-scope yt-unlimited-manage-subscription-page-renderer">\n        <span class="subscription-info-item-title style-scope yt-unlimited-manage-subscription-page-renderer">\n          [[getSimpleString(item.unlimitedSubscriptionInfoRenderer.title)]]\n        </span>\n        <span class="subscription-info-item-content style-scope yt-unlimited-manage-subscription-page-renderer">\n          [[getSimpleString(item.unlimitedSubscriptionInfoRenderer.content)]]\n        </span>\n      </div>\n    </template>\n    <template is="dom-repeat" items="[[data.additionalInfos]]" class="style-scope yt-unlimited-manage-subscription-page-renderer">\n      <yt-formatted-string class="additional-info style-scope yt-unlimited-manage-subscription-page-renderer" text="[[item]]">\n      </yt-formatted-string>\n    </template>\n    <div class="buttons style-scope yt-unlimited-manage-subscription-page-renderer">\n      <div id="manage-fix-fop-button" class="style-scope yt-unlimited-manage-subscription-page-renderer"></div>\n      <div id="manage-family-button" class="style-scope yt-unlimited-manage-subscription-page-renderer"></div>\n      <div id="manage-subscription-button" class="style-scope yt-unlimited-manage-subscription-page-renderer"></div>\n      <div id="help-button" class="style-scope yt-unlimited-manage-subscription-page-renderer"></div>\n    </div>\n    <div id="offers" class="style-scope yt-unlimited-manage-subscription-page-renderer"></div>\n  </div>\n</tp-yt-paper-card>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);var W=F.content,E=W.insertBefore;x9x===void 0&&(x9x=document.createElement("template"));var h=x9x;E.call(W,h.content.cloneNode(!0),F.content.firstChild);kIN=F}F=kIN;return F},{mode:2});var X7g;var HZ6;var V8=function(){return _.n.apply(this,arguments)||this};
_.k(V8,_.n);_.N=V8.prototype;_.N.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keypress":"onKeypress_"}};
_.N.configureRendererStamper=function(){return{"data.singleYpcOfferListSupportedRenderers":{id:"offers",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",params:{collapsible:!0}}}}}};
_.N.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.N.onKeypress_=function(F){F.detail.keyboardEvent.target==this&&this.expandOffers_()};
_.N.handleHeaderTap_=function(F){F.preventDefault();F.stopPropagation();this.expandOffers_()};
_.N.expandOffers_=function(){this.offersVisible_=!0;this.hostElement.setAttribute("tabindex","-1")};
_.N.dataChanged_=function(){this.data&&(this.offersVisible_=!this.data.isCollapsed)};
V8.prototype.dataChanged_=V8.prototype.dataChanged_;_.T([_.J(_.$5),_.Y("design:type",Object)],V8.prototype,"ironA11yKeysBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],V8.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],V8.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],V8.prototype,"data",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],V8.prototype,"offersVisible_",void 0);_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],V8.prototype,"dataChanged_",null);V8=_.T([_.$3({is:"yt-collapsible-ypc-offer-renderer",disableElementRegistration:!0})],V8);
_.r(V8,"yt-collapsible-ypc-offer-renderer",function(){if(HZ6===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-collapsible-ypc-offer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_collapsible_ypc_offer_renderer.yt.collapsible.ypc.offer.renderer.css.js--\x3e<yt-formatted-string id="more-offer-info-header" hidden="[[offersVisible_]]" text="[[data.moreOfferInfoHeader]]" on-tap="handleHeaderTap_" class="style-scope yt-collapsible-ypc-offer-renderer">\n</yt-formatted-string>\n<div id="offers" hidden="[[!offersVisible_]]" class="style-scope yt-collapsible-ypc-offer-renderer"></div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;X7g===void 0&&(X7g=document.createElement("template"));var h=X7g;E.call(W,h.content.cloneNode(!0),F.content.firstChild);HZ6=F}F=HZ6;return F},{mode:2});var P3u;var Jp$;_.Hr("itemSectionRenderer","unlimitedPageHeaderRenderer","yt-unlimited-page-header-renderer");var U5=function(){return _.n.apply(this,arguments)||this};
_.k(U5,_.n);_.N=U5.prototype;_.N.configureRendererStamper=function(){return{"data.moreOffersRenderers":{id:"more-offers",mapping:{collapsibleYpcOfferRenderer:{component:"yt-collapsible-ypc-offer-renderer"}}}}};
_.N.dataChanged_=function(){if(this.data.backgroundImage){var F=_.m_(this.data.backgroundImage.thumbnails,screen.width),W=this.getScrimLayerColorStops_();this.hostElement.style.backgroundImage=W?"linear-gradient(180deg, "+W+"), url("+F+")":"url("+F+")";this.data.gtmId&&_.xE(this.data.gtmId,_.b0("GL",""))}};
_.N.onYtServiceRequestError_=function(F){_.R$(this.hostElement,F.detail.error.message)};
_.N.getScrimLayerColorStops_=function(){var F,W,E=(F=this.data.unlimitedHeaderV2Data)==null?void 0:(W=F.unlimitedHeaderV2Data)==null?void 0:W.scrimLayerColors;if(!E)return null;var h=100/E.length;return E.map(function(d,V){V*=h;return _.XC(d)+" "+V+"%"}).join(",")};
_.N.computeLogoWithPadding=function(F){var W,E,h;return(F=(W=F.unlimitedLogoImage)==null?void 0:(E=W.thumbnails)==null?void 0:(h=E[0])==null?void 0:h.height)&&F%31===0?!0:!1};
U5.prototype.onYtServiceRequestError_=U5.prototype.onYtServiceRequestError_;U5.prototype.dataChanged_=U5.prototype.dataChanged_;_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],U5.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],U5.prototype,"ytRendererBehavior",void 0);_.T([_.O({computed:"computeLogoWithPadding(data)"}),_.Y("design:type",Boolean)],U5.prototype,"logoWithPadding",void 0);
_.T([_.O(),_.Y("design:type",Object)],U5.prototype,"data",void 0);_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],U5.prototype,"dataChanged_",null);_.T([_.R4("yt-service-request-error"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],U5.prototype,"onYtServiceRequestError_",null);U5=_.T([_.$3({is:"yt-unlimited-page-header-renderer",disableElementRegistration:!0})],U5);
_.r(U5,"yt-unlimited-page-header-renderer",function(){if(Jp$===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-unlimited-page-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_unlimited_page_header_renderer.yt.unlimited.page.header.renderer.css.js--\x3e<template is="dom-if" if="[[!logoWithPadding]]" class="style-scope yt-unlimited-page-header-renderer">\n  <h1 id="logo-wrapper" class="style-scope yt-unlimited-page-header-renderer">\n    <yt-img-shadow id="logo" thumbnail="[[data.unlimitedLogoImage]]" width="[[Number.MAX_VALUE]]" class="style-scope yt-unlimited-page-header-renderer">\n    </yt-img-shadow>\n  </h1>\n</template>\n<template is="dom-if" if="[[logoWithPadding]]" class="style-scope yt-unlimited-page-header-renderer">\n  <h1 id="logo-wrapper-with-padding" class="style-scope yt-unlimited-page-header-renderer">\n    <yt-img-shadow id="logo-with-padding" thumbnail="[[data.unlimitedLogoImage]]" width="[[Number.MAX_VALUE]]" class="style-scope yt-unlimited-page-header-renderer">\n    </yt-img-shadow>\n  </h1>\n</template>\n<yt-formatted-string id="subtitle" respect-html-dir="" text="[[data.subTitle]]" class="style-scope yt-unlimited-page-header-renderer">\n</yt-formatted-string>\n<yt-button-renderer id="manage-subscription-button" data="[[data.manageSubscriptionButton.buttonRenderer]]" class="style-scope yt-unlimited-page-header-renderer">\n</yt-button-renderer>\n<div id="metadatas" class="style-scope yt-unlimited-page-header-renderer">\n  <template is="dom-repeat" items="[[data.metadatas]]" class="style-scope yt-unlimited-page-header-renderer">\n    <yt-formatted-string class="metadata-item style-scope yt-unlimited-page-header-renderer" text="[[item]]"></yt-formatted-string>\n  </template>\n  <template is="dom-if" if="[[data.additionalBillingInfo]]" class="style-scope yt-unlimited-page-header-renderer">\n    <div id="additional-billing-info" class="style-scope yt-unlimited-page-header-renderer">\n      <yt-formatted-string class="billing-info-item style-scope yt-unlimited-page-header-renderer" text="[[data.additionalBillingInfo]]">\n      </yt-formatted-string>\n    </div>\n  </template>\n</div>\n<yt-formatted-string class="promotion-text style-scope yt-unlimited-page-header-renderer" text="[[data.promotion.ypcPromotionRenderer.promotionText]]">\n</yt-formatted-string>\n<div id="more-offers" class="style-scope yt-unlimited-page-header-renderer"></div>\n<a id="restriction-apply-button" class="offer-details-link style-scope yt-unlimited-page-header-renderer" tabindex="0">\n  <yt-formatted-string text="[[data.offerDetailsLinkText]]" class="style-scope yt-unlimited-page-header-renderer"></yt-formatted-string>\n</a>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);var W=F.content,E=W.insertBefore;P3u===void 0&&(P3u=document.createElement("template"));var h=P3u;E.call(W,h.content.cloneNode(!0),F.content.firstChild);Jp$=F}F=Jp$;return F},{mode:2});var aQg;var fQ6;_.Hr("itemSectionRenderer","UnlimitedUserNotificationRenderer","yt-unlimited-user-notification-renderer");var Ra=function(){return _.n.apply(this,arguments)||this};
_.k(Ra,_.n);Ra.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-confirm":!0}}}}}};
_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],Ra.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Ra.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],Ra.prototype,"data",void 0);Ra=_.T([_.$3({is:"yt-unlimited-user-notification-renderer",disableElementRegistration:!0})],Ra);
_.r(Ra,"yt-unlimited-user-notification-renderer",function(){if(fQ6===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-unlimited-user-notification-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_unlimited_user_notification_renderer.yt.unlimited.user.notification.renderer.css.js--\x3e<div id="yt-notification-text" class="style-scope yt-unlimited-user-notification-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope yt-unlimited-user-notification-renderer"></yt-formatted-string>\n  <template is="dom-repeat" items="[[data.messages]]" class="style-scope yt-unlimited-user-notification-renderer">\n    <yt-formatted-string id="metadata-item" text="[[item]]" class="style-scope yt-unlimited-user-notification-renderer"></yt-formatted-string>\n  </template>\n</div>\n<div id="action-button" class="style-scope yt-unlimited-user-notification-renderer"></div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);var W=F.content,E=W.insertBefore;aQg===void 0&&(aQg=document.createElement("template"));var h=aQg;E.call(W,h.content.cloneNode(!0),F.content.firstChild);fQ6=F}F=fQ6;return F},{mode:2});
}catch(e){_._DumpException(e)}
try{
_.TV6=_.GK(function(F){var W=_.o4(F,{numberOfChips:5}).numberOfChips;return _.z("yt-ghost-chip-shelf",{class:"ytGhostChipShelfHost"},_.z(_.xF,{each:function(){return Array(W==null?void 0:W())}},function(){return _.z("div",{class:"ytGhostChipShelfChip"})}))},"cg");_.oCK=_.GK(function(F){var W=_.tG(),E=_.WZ().resolve(_.ji);_.$F(function(){requestAnimationFrame(function(){var d;(d=W.lottieEl)==null||d.addEventListener("DOMLoaded",function(){var V;(V=F.onLottieLoaded)==null||V.call(F)})})});
var h={};return _.z("yt-chat-loading-view-model",{class:"ytChatLoadingViewModelHost","data-target-id":function(){var d;return((d=F.data)==null?void 0:d.call(F).targetId)||""}},_.z(_.Mj,{className:_.ec((h.ytChatLoadingViewModelRtl=E==="rtl",h)),
animationName:"YOUCHAT_LOADER",data:function(){var d;return{animationConfig:{autoplay:!0,loop:!0,renderer:"svg",rendererSettings:{viewBoxOnly:!0,className:"ytChatLoadingViewModelLoadingSvg"},name:"YOUCHAT_LOADER",path:((d=F.data)==null?void 0:d.call(F).animationUrl)||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_comp_v1.json"}}},
animationRef:W}))},"dg");
}catch(e){_._DumpException(e)}
try{
var Qlq,z26,tU6,C5w,BnK,vd8,Iyq,WA,ES,Dp8,xpq,kOF,slK,JNK,hu,P5K,$pK,HCK,XE8,ZCq,qpO,ayT,fy$,OC6,bCF,d0,lyK,nd6,yN$,odT,TnF,rNK,jlN,iCw,GO8,Ypq,wE6,un$,Spx,Fjx,hAF,dTK,Nl6,UTq,eAT,gju,QT6,zAK,tSK,Blu,vjq,Iqx,cv6,DTK,xTw,k3w,sT8,Zrg,$T8,Lj$,Xb6,q2O,Hrx,fqq,aqK,PgK,JvT,US,OrK,br6,nju,ir$,wbg,ug6,S28,pb6,mTO,KjF,F66,W6N,Ep6,hFx,N$q,Veq,U6O,cN8,ojq;
_.KZ=function(F){var W=new _.xC("Error accessing DB");return _.XUY().then(function(E){return new Promise(function(h,d){try{var V=E.transaction("swpushnotificationsstore").objectStore("swpushnotificationsstore").get(F);V.onsuccess=function(){var R=V.result;h(R?R.value:null)};
V.onerror=function(){W.params={key:F,source:"onerror"};d(W)}}catch(R){W.params={key:F,
thrownError:String(R)},d(W)}})},function(){return null})};
_.gdN=function(F,W){var E=_.Buo(W);E!=="javascript:"&&E!=="data:"&&F.setAttribute("href",W)};
Qlq=function(F,W){return _.Mn(F.entities,"flowStateEntity",W)};
z26=function(F){return(F=F.getOption("captions","track"))?!!F.displayName:!1};
tU6=function(F,W){W=W.getOption("captions","translationLanguages",{includeAsr:!0})||[];if(W==null||!W.length)return F;var E=W.filter(function(R){return R});
W=F.filter(function(R){return R.languageCode.startsWith("en")});
E=_.U(E);for(var h=E.next();!h.done;h=E.next())if(h=h.value,W.length){var d=W[0],V=Object.assign({},d);d.languageCode!==h.languageCode&&(V.displayName=d.languageName+" >> "+h.languageName,V.translationLanguage=h,F.push(V))}return F};
C5w=function(F){var W,E=(W=F.getOption("captions","tracklist",{includeAsr:!0}))!=null?W:[];_.c("mweb_watch_captions_enable_auto_translate")&&(E=tU6(E,F));return E};
BnK=function(F){return _.yo(F,function(W){return W.languageCode==="en"})};
vd8=function(F){var W=FZ;if(z26(F))F.setOption("captions","stickyLoading",{}),F.setOption("captions","track",{});else{var E=_.yo(C5w(F),function(h){return h.displayName===W});
F.setOption("captions","track",E)}};
Iyq=function(F){if(!F)return 0;var W=F.getPresentingPlayerType(),E=F.getVideoData();return E&&E.isLive?(F=F.getProgressState(W),F.seekableEnd-F.seekableStart):F.getDuration(W)};
WA=function(F,W){_.iv(W,F,function(){return cN8[W]},function(E){cN8[W]=E;
if(!_.c("mweb_player_ve_show_ks")){var h=_.JR(0);h&&E&&_.is(h,E)}})};
ES=function(F){(F=cN8[F])&&_.Co(_.z4(),F)};
Dp8=function(F,W){for(var E=_.U(Object.keys(F)),h=E.next();!h.done;h=E.next())if(h=h.value,F[h]!==W[h])return!1;return!0};
xpq=function(){return document.getElementById("player-control-overlay")};
kOF=function(F){F!==-1&&!_.c("player_controls_log_creation_killswitch")&&xpq()&&(_.P5("pcu_cs",F),_.P5("pcu_ce"))};
slK=function(F){return _.z("div",{class:"yt-profile-identity-info-view-model-wiz__buttons"},(F.subscribeButton?[F.subscribeButton,F.channelAccess]:[F.channelAccess]).map(function(W){return _.z("div",{class:"yt-profile-identity-info-view-model-wiz__wrap-button"},_.z("div",{class:"yt-profile-identity-info-view-model-wiz--button"},ANO(W)))}))};
_.LB$=function(F){var W=F.data;F=F.hideDivider;var E={};E=(E["yt-profile-identity-info-view-model-wiz__frame"]=!0,E["yt-profile-identity-info-view-model-wiz--frame-with-no-channel-banner"]=!W.channelBanner,E);E={class:_.gY(E)};var h,d={imageBannerViewModel:{image:(h=W.channelBanner)==null?void 0:h.image,style:"IMAGE_BANNER_STYLE_INSET"}};h=_.z("div",{class:"yt-profile-identity-info-view-model-wiz__channel-banner-container"},W.channelBanner?_.z("div",{class:"yt-profile-identity-info-view-model-wiz__channel-banner"},
ANO(d,{imageBannerViewModel:{isPositionRelative:!0}})):null);d=_.z("div",{class:"yt-profile-identity-info-view-model-wiz__avatar"},ANO(W.avatar));var V;var R=_.z("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name-header"},_.z("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name"},W.channelDisplayName),W.verifiedOrOacBadge?_.z("div",{class:"yt-profile-identity-info-view-model-wiz__badge"},_.z(_.T4,{data:{thumbnails:[{url:(V=W.verifiedOrOacBadge)==null?void 0:V.badgeUrl}]},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})):null);V=_.z("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name-frame"},R,ANO(W.threeDotMenu));R=_.z("div",{class:"yt-profile-identity-info-view-model-wiz__metadata"},_.z("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content-set"},_.z("div",{dir:"auto",class:"yt-profile-identity-info-view-model-wiz__metadata-handle-with-bold-font"},W.channelHandle),W.channelPronouns&&W.channelHandle?_.z("span",
{class:"yt-profile-identity-info-view-model-wiz__metadata-delimiter"},"\u2022"):null,_.z("div",{dir:"auto",class:"yt-profile-identity-info-view-model-wiz__metadata-pronouns"},W.channelPronouns)),_.z("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content-set"},_.z("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content"},W.leftOfBulletInfo),W.leftOfBulletInfo&&W.rightOfBulletInfo?_.z("span",{class:"yt-profile-identity-info-view-model-wiz__metadata-delimiter"},"\u2022"):
null,_.z("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content"},W.rightOfBulletInfo)));V=_.z("div",{class:"yt-profile-identity-info-view-model-wiz__trio"},V,R);return _.z("yt-profile-identity-info-view-model",{class:"yt-profile-identity-info-view-model-wiz"},_.z("div",E,h,_.z("div",{class:"yt-profile-identity-info-view-model-wiz__channel-info-section"},d,V),W.channelDescription?_.z("div",{class:"yt-profile-identity-info-view-model-wiz__channel-description"},W.channelDescription):
null,slK(W),F?null:_.z("div",{class:"yt-profile-identity-info-view-model-wiz__divider"}," ")))};
JNK=function(F,W){var E=_.TK(F,{}),h=qpO("top",W),d=qpO("bottom",W),V=qpO("left",W),R=qpO("right",W);return _.vr({top:function(){return hu(E().position,h)},
bottom:function(){return hu(E().position,d)},
left:function(){return hu(E().position,V)},
right:function(){return hu(E().position,R)},
position:function(){return hu(E().positionType,$pK)},
height:function(){return hu(E().height,d0)},
width:function(){return hu(E().width,d0)},
"min-width":function(){return hu(E().minWidth,d0)},
"min-height":function(){return hu(E().minHeight,d0)},
"max-width":function(){return hu(E().maxWidth,d0)},
"max-height":function(){return hu(E().maxHeight,d0)},
"aspect-ratio":function(){return hu(E().aspectRatio,String)},
"margin-top":function(){return hu(E().margin,h)},
"margin-bottom":function(){return hu(E().margin,d)},
"margin-left":function(){return hu(E().margin,V)},
"margin-right":function(){return hu(E().margin,R)},
"padding-top":function(){return hu(E().padding,h)},
"padding-bottom":function(){return hu(E().padding,d)},
"padding-left":function(){return hu(E().padding,V)},
"padding-right":function(){return hu(E().padding,R)},
"flex-direction":function(){return hu(E().flexDirection,ZCq)},
"justify-content":function(){return hu(E().justifyContent,XE8)},
"align-items":function(){return hu(E().alignItems,HCK)},
"flex-grow":function(){return hu(E().flexGrow,String)},
"flex-shrink":function(){return hu(E().flexShrink,String)},
"flex-basis":function(){return hu(E().flexBasis,d0)},
"align-self":function(){return hu(E().alignSelf,HCK)},
"flex-wrap":function(){return hu(E().flexWrap,P5K)},
"align-content":function(){return hu(E().alignContent,HCK)}})};
hu=function(F,W){return F!==void 0?W(F):void 0};
P5K=function(F){switch(F){case "YPC_FLEX_WRAP_NO_WRAP":return"nowrap";case "YPC_FLEX_WRAP_WRAP":return"wrap";case "YPC_FLEX_WRAP_WRAP_REVERSE":return"wrap-reverse"}};
$pK=function(F){switch(F){case "YPC_POSITION_ABSOLUTE":return"absolute";case "YPC_POSITION_RELATIVE":return"relative"}};
HCK=function(F){switch(F){case "YPC_ALIGN_ITEMS_AUTO":return"auto";case "YPC_ALIGN_ITEMS_START":return"flex-start";case "YPC_ALIGN_ITEMS_END":return"flex-end";case "YPC_ALIGN_ITEMS_CENTER":return"center";case "YPC_ALIGN_ITEMS_STRETCH":return"stretch"}};
XE8=function(F){switch(F){case "YPC_JUSTIFY_CONTENT_FLEX_START":return"flex-start";case "YPC_JUSTIFY_CONTENT_FLEX_END":return"flex-end";case "YPC_JUSTIFY_CONTENT_CENTER":return"center";case "YPC_JUSTIFY_CONTENT_BETWEEN":return"space-between";case "YPC_JUSTIFY_CONTENT_SPACE_AROUND":return"space-around"}};
ZCq=function(F){switch(F){case "YPC_FLEX_DIRECTION_ROW":return"row";case "YPC_FLEX_DIRECTION_ROW_REVERSE":return"row-reverse";case "YPC_FLEX_DIRECTION_COLUMN":return"column";case "YPC_FLEX_DIRECTION_COLUMN_REVERSE":return"column-reverse"}};
qpO=function(F,W){var E=W==="rtl";switch(F){case "top":var h=ayT;break;case "bottom":h=fy$;break;case "left":h=OC6;break;default:h=bCF}return function(d){return hu(h(d,E),d0)}};
ayT=function(F){var W=F.top;var E=F.vertical;F=F.all;var h;return(h=W!=null?W:E)!=null?h:F};
fy$=function(F){var W=F.bottom;var E=F.vertical;F=F.all;var h;return(h=W!=null?W:E)!=null?h:F};
OC6=function(F,W){var E=F.left;var h=F.end;var d=F.start;var V=F.horizontal;F=F.all;var R,M;return(M=(R=E!=null?E:W?h:d)!=null?R:V)!=null?M:F};
bCF=function(F,W){var E=F.right;var h=F.end;var d=F.start;var V=F.horizontal;F=F.all;var R,M;return(M=(R=E!=null?E:W?d:h)!=null?R:V)!=null?M:F};
d0=function(F){var W=F.value;switch(F.unit){case "YPC_DIMENSION_UNIT_POINT":return W+"px";case "YPC_DIMENSION_UNIT_FRACTION":return W+"%";default:return""+W}};
lyK=function(F){switch(F){case "YPC_SEMANTIC_COLOR_TEXT_PRIMARY":return"ytStyledTextViewModelYtTextPrimary";case "YPC_SEMANTIC_COLOR_TEXT_PRIMARY_INVERSE":return"ytStyledTextViewModelYtTextPrimaryInverse";case "YPC_SEMANTIC_COLOR_TEXT_SECONDARY":return"ytStyledTextViewModelYtTextSecondary";case "YPC_SEMANTIC_COLOR_TEXT_DISABLED":return"ytStyledTextViewModelYtTextDisabled";case "YPC_SEMANTIC_COLOR_THEMED_GREEN":return"ytStyledTextViewModelYtThemedGreen"}};
nd6=function(F){var W=F!=null?F:{};F=W.fontRole;var E=W.fontSize;W=W.fontWeight;if(F!==null&&E!==null)switch(F){case "YPC_FONT_ROLE_DISPLAY":switch(E){case "YPC_FONT_SIZE_L":return W==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayLHeavy":"ytStyledTextViewModelYtDisplayL";case "YPC_FONT_SIZE_M":return W==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayMHeavy":"ytStyledTextViewModelYtDisplayM";case "YPC_FONT_SIZE_S":return W==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplaySHeavy":
"ytStyledTextViewModelYtDisplayS";case "YPC_FONT_SIZE_XS":return W==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayXSHeavy":"ytStyledTextViewModelYtDisplayXS";default:return}case "YPC_FONT_ROLE_HEADLINE":switch(E){case "YPC_FONT_SIZE_L":return W==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineLHeavy":"ytStyledTextViewModelYtHeadlineL";case "YPC_FONT_SIZE_M":return W==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineMHeavy":"ytStyledTextViewModelYtHeadlineM";case "YPC_FONT_SIZE_S":return W===
"YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineSHeavy":"ytStyledTextViewModelYtHeadlineS";case "YPC_FONT_SIZE_XS":return W==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineXSHeavy":"ytStyledTextViewModelYtHeadlineXS";default:return}case "YPC_FONT_ROLE_BODY":switch(E){case "YPC_FONT_SIZE_XL":return W==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXLHeavy":"ytStyledTextViewModelYtBodyXL";case "YPC_FONT_SIZE_L":return W==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyLHeavy":
"ytStyledTextViewModelYtBodyL";case "YPC_FONT_SIZE_M":return W==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyMHeavy":"ytStyledTextViewModelYtBodyM";case "YPC_FONT_SIZE_S":return W==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodySHeavy":"ytStyledTextViewModelYtBodyS";case "YPC_FONT_SIZE_XS":return W==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXSHeavy":"ytStyledTextViewModelYtBodyXS"}}};
yN$=function(F,W){return _.Mn(F.entities,"pdpStateEntity",W)};
odT=function(F,W,E){function h(t){return Object.values(t).map(function(C){var B=C.productId;C=C.pricingOptionIndex;return jlN(d(B).pricingOptions,C).pricingOptionId})}
function d(t){return M().get(t)}
function V(t){t=h(t);E(t)}
var R=iCw([F,W],function(t,C){var B=t==null?void 0:t.selectedPricingOptions;t={};var I=!0;if(B&&C.length)for(var x=_.U(C),A=x.next();!A.done;A=x.next()){A=A.value;var X=rNK(A.pricingOptions,function(P){a:{P=P.pricingOptionId;for(var b=_.U(B),l=b.next();!l.done;l=b.next())if(l.value===P){P=!0;break a}P=!1}return P});
X>=0&&(I=!1,t[A.groupId]={productId:A.productId,pricingOptionIndex:X})}I&&C.length&&(t[C[0].groupId]={productId:C[0].productId,pricingOptionIndex:0});return t}),M=iCw([W],function(t){return new Map(t.map(function(C){return[C.productId,
C]}))}),g=iCw([W],function(t){var C=new Map;
t=_.U(t);for(var B=t.next();!B.done;B=t.next()){var I=B.value;B=I.groupId;var x=I.productId;I=_.U(TnF(I.pricingOptions));for(var A=I.next();!A.done;A=I.next()){var X=_.U(A.value);A=X.next().value;X=X.next().value;C.set(X.pricingOptionId,{groupId:B,productId:x,index:A,pricingOption:X})}}return C});
return{getProductById:d,isProductSelected:function(t){var C=d(t);if(!C)return!1;var B;return((B=R()[C.groupId])==null?void 0:B.productId)===t},
getSelectedPricingOptions:function(){return Object.values(R()).map(function(t){var C=t.productId;t=t.pricingOptionIndex;return jlN(d(C).pricingOptions,t)})},
getSelectedProductByGroupId:function(t){var C;return(t=(C=R()[t])==null?void 0:C.productId)?d(t):void 0},
onProductSelected:function(t){var C=d(t);if(C){var B=R(),I;if(((I=B[C.groupId])==null?void 0:I.productId)!==t){var x,A;I=(A=(x=B[C.groupId])==null?void 0:x.pricingOptionIndex)!=null?A:0;x=0;for(A=C.pricingOptions[Symbol.iterator]();!A.next().done;)++x;x<=I&&(I=0);x={};V(Object.assign({},B,(x[C.groupId]={productId:t,pricingOptionIndex:I},x)))}}},
onPricingOptionSelected:function(t){var C=g().get(t);if(C){t=C.groupId;var B=C.productId;C=C.index;var I=R(),x,A;if(((x=I[t])==null?void 0:x.productId)!==B||((A=I[t])==null?void 0:A.pricingOptionIndex)!==C)x={},V(Object.assign({},I,(x[t]={productId:B,pricingOptionIndex:C},x)))}},
onClearGroupSelected:function(t){var C=R();C[t]&&(C=Object.fromEntries(Object.entries(C).filter(function(B){return _.U(B).next().value!==t})),V(C))}}};
TnF=function(F){return function E(){var h,d,V,R,M;return _.tLo(E,function(g){switch(g.nextAddress){case 1:_.U0(g,2),h=0,d=_.U(F),V=d.next();case 4:if(V.done){g.jumpTo(2);break}R=V.value;M=_.C8R;return _.Q(g,[h++,R],7);case 7:M(g.yieldResult);V=d.next();g.jumpTo(4);break;case 2:_.V0(g),_.eJ(g,0)}})}()};
rNK=function(F,W){F=_.U(TnF(F));for(var E=F.next();!E.done;E=F.next()){var h=_.U(E.value);E=h.next().value;h=h.next().value;if(W(h))return E}return-1};
jlN=function(F,W){F=_.U(TnF(F));for(var E=F.next();!E.done;E=F.next()){var h=_.U(E.value);E=h.next().value;h=h.next().value;if(E===W)return h}};
iCw=function(F,W){var E,h;return function(){for(var d=F.map(function(R){return R()}),V=0;V<d.length;V++)if(!E||d[V]!==E[V]){E=d;
h=W.apply(null,_.x9(d));break}return h}};
GO8=function(F){var W;return!!(F.productId&&F.groupId&&((W=F.pricingOptions)==null?0:W.length)&&F.pricingOptions.every(function(E){return E.pricingOptionId}))};
Ypq=function(F,W,E){return odT(F,iCw([W],function(h){return h.filter(GO8)}),E)};
wE6=function(F,W){return W.length===0?[F]:[F.slice(0,W[0]),F.slice(W[0])].filter(function(E){return E.length>0})};
un$=function(F){switch(F){case "FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_JUSTIFY_END":return"yt-flow-bottom-bar-renderer--flow-bottom-bar-button-layout-style-justify-end";case "FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED":return"yt-flow-bottom-bar-renderer--flow-bottom-bar-button-layout-style-full-distributed";case "FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FLEX_PRIMARY":return"yt-flow-bottom-bar-renderer--flow-bottom-bar-button-layout-style-flex-primary";case "FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED":return"yt-flow-bottom-bar-renderer--flow-bottom-bar-button-layout-style-vertical-centered";
case "FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_DISTRIBUTED_SPACE":return"yt-flow-bottom-bar-renderer--flow-bottom-bar-button-layout-style-distributed-space";default:return""}};
Spx=function(F,W,E,h){h=Object.assign({},h);_.LK(h,NZ,{selectedOptionId:F,primaryButtonOverride:E});_.ja().dispatch(_.AG("flowStateEntity",W,h))};
_.KB6=function(){if(!pEO){var F=_.U(_.g$(new Map,void 0,"UJImUe"));pEO=F.next().value;mpx=F.next().value}return pEO};
Fjx=function(F){if(F)return _.KB6()().get(F)};
_.WjT=function(F,W){if(F&&W){var E=_.KB6();E().set(F,W);F=E();mpx(new Map(F))}};
_.EjT=function(F){return{onSubmit:function(){var W;(W=Fjx(F()))==null||W.onSubmit()},
isValid:function(){var W=Fjx(F());return W?W.isValid():!0},
isSubmitting:function(){var W,E;return!!((W=Fjx(F()))==null?0:(E=W.isSubmitting)==null?0:E.call(W))}}};
hAF=function(F,W){return _.Mn(F.entities,"contextNoteFeedEntityPayload",W)};
dTK=function(F){F.style.height="auto";F.style.height=F.scrollHeight+"px"};
Nl6=function(F){return[F.syncStep,F.asyncStep].filter(function(W){return W!==void 0})};
UTq=function(F){var W,E,h;if(F=(W=F.structuredContextNoteFormSchema)==null?void 0:(E=W.fieldSchemas)==null?void 0:(h=E.noteBody)==null?void 0:h.validationSchema)for(W=_.U(Nl6(F)),E=W.next();!E.done;E=W.next()){E=E.value.rules;if(!E)break;E=_.U(E);for(E=E.next();!E.done;E=E.next())return _.D(E.value,_.VS6)}};
eAT=function(F){if(F){F=_.U(Nl6(F));for(var W=F.next();!W.done;W=F.next()){W=W.value.rules;if(!W)break;W=_.U(W);for(W=W.next();!W.done;W=W.next())return _.D(W.value,RAg)}}};
gju=function(F){if(F){F=_.U(Nl6(F));for(var W=F.next();!W.done;W=F.next()){W=W.value.rules;if(!W)break;W=_.U(W);for(W=W.next();!W.done;W=W.next())return _.D(W.value,MS6)}}};
QT6=function(F){F=/^https?:\/\//.test(F)?F:"http://"+F;try{var W=_.y$(F)}catch(E){return!1}if(W.toString()!==F)return!1;F=W.JSC$7936_domain_.split(".");return F.length>1&&F.every(function(E){return!!E})};
zAK=function(F,W,E,h){var d;h=(d=h.structuredContextNoteData)==null?void 0:d.createCommentEndpoint;if(d=_.D(h,_.DCp))return d.commentText=_.Gr(F),d.videoPositionMention=W,d.sources=E,h};
tSK=function(F){return F==null?void 0:F.stringValue};
Blu=function(F,W,E){F=F.map(function(h,d){return{listItemViewModel:{title:h.title,subtitle:h.subtitle,leadingImage:h.leadingImage,trailingImage:d===W?CgN:void 0,rendererContext:{commandContext:{onTap:h.onTap}}}}});
return Object.assign({},E&&{header:{panelHeaderViewModel:{title:E}}},{content:{listViewModel:{listItems:F}}})};
vjq=function(F,W){if(F&&W)switch(W){case "SELECTION_TYPE_BOOL":return F.boolValue;case "SELECTION_TYPE_INT":return F.intValue;case "SELECTION_TYPE_STRING":return F.stringValue;case "SELECTION_TYPE_PRIVACY_STATUS":return F.privacyStatusValue}};
Iqx=function(F){var W;F=(W=F.options)==null?void 0:W.findIndex(function(E){return E.isSelected});
return F===void 0?-1:F};
cv6=function(F,W,E){var h=function(){return F().label},d={},V=_.ec("ytDropdownViewModelLabel",(d.ytDropdownViewModelLabelError=W,d));
return _.z(_.v,{cond:function(){return F().label&&!(E()===-1&&F().label&&!F().placeholderText)},
then:function(){return _.z("div",{class:V},_.z(_.Ab,{text:h}))}})};
DTK=function(F,W){var E={};E=_.ec("ytDropdownViewModelTitle",(E.ytDropdownViewModelTitlePlaceholder=function(){return W()===-1},E));
return _.z("div",{class:E},_.z(_.Ab,{text:function(){var h=F();var d=W();if(d===-1)h=h.placeholderText?h.placeholderText:h.label;else{var V,R;h=(V=h.options)==null?void 0:(R=V[d])==null?void 0:R.title}return h}}))};
xTw=function(F,W){var E=function(){return F().hint};
return _.z(_.EG,null,_.z(_.v,{cond:function(){return E()&&!W()},
then:function(){return _.z("div",{class:_.ec("ytDropdownViewModelSupport","ytDropdownViewModelSupportHint")},_.z(_.Ab,{text:E,className:"ytDropdownViewModelSupportText"}))}}),_.z(_.v,{cond:W,
then:function(){return _.z("div",{id:"dropdown-view-model-error",role:"alert",class:_.ec("ytDropdownViewModelSupport","ytDropdownViewModelSupportError")},_.z(_.I3,{icon:"INFO",className:"ytDropdownViewModelSupportIcon"}),_.z(_.Ab,{text:W,className:"ytDropdownViewModelSupportText"}))}}))};
k3w=function(F,W){var E=_.WZ().resolve(_.VIM);_.Xk(function(){var h=F().id;h&&E!=null&&E.dropdownMap.set(h,W)})};
sT8=function(F){F=_.D(F.scheduleButton,Avx);F=_.D(F==null?void 0:F.primaryButton,_.fx);F=_.D(F==null?void 0:F.onTap,_.XP);var W,E,h=((E=_.D(F,_.Mc))==null?void 0:E.commands)||[F];E=_.U(h);for(F=E.next();!F.done&&!(W=_.D(F.value,_.cCX));F=E.next());var d;W=(d=W)==null?void 0:d.createBroadcastRequest;if(!W)throw Error("Hj");return W};
Zrg=function(F,W,E){E=E===void 0?{}:E;var h,d;return _.e(function(V){if(h=Lj$(W))return V.return(h);(d=q2O(F,W,E))&&$T8(W,d);return V.return(d)})};
$T8=function(F,W){var E=Xb6(F);E&&W.then(function(h){_.WZ().resolve(_.UL).put(E,new _.RG({innertubeResponse:h}))})};
Lj$=function(F){if(F=Xb6(F)){var W=_.WZ().resolve(_.UL);if(W.has(F))return W.get(F).then(function(E){return E==null?void 0:_.Ck(E)})}return null};
Xb6=function(F){var W=_.D(F.endpoint,_.GM);if(W!=null&&W.videoId)return W={videoId:W.videoId},_.c("web_imp_player_mute_params")&&(W.mutedAtStart=F.startPlaybackInMutedState),_.ok("inline_playback",W)};
q2O=function(F,W,E){F=_.T_(F,W.endpoint,Hrx(W,E)).then(function(h){return h});
return Promise.resolve(F)};
Hrx=function(F,W){W=_.c("web_imp_player_mute_params")?Object.assign({},{vis:5,inlinePlayback:!0,inlineUnmuted:!F.startPlaybackInMutedState},W):Object.assign({},{vis:5,autonav:"1"},W);var E;W={contentPlaybackContext:_.xu(W,(E=_.D(F.endpoint.commandMetadata,_.m1))==null?void 0:E.url,window.location.href)};_.c("web_imp_player_mute_params")&&(W.overrideMutedAtStart=!F.startPlaybackInMutedState);return W};
fqq=function(F,W){var E=window.MutationObserver;E&&(V2=new E(function(h,d){h=_.U(h);for(var V=h.next();!V.done;V=h.next()){V=V.value;var R;if(R=V.type==="childList"&&V.target)a:{R=F;V=PgK(V.target);R=PgK(R);for(var M=null,g=0;g<V.length;g++)if(R.includes(V[g])){if(g===0){R=!1;break a}M=V[g];break}M?(V=JvT(V,M),R=JvT(R,M),R=V<R):R=!1}if(R){W();d.disconnect();break}}}),(E=aqK())&&V2.observe(E,{childList:!0,
subtree:!0}))};
aqK=function(){var F=document.getElementsByTagName("ytd-rich-grid-renderer");if(F.length>0)return F[0];F=document.getElementsByTagName("ytd-section-list-renderer");return F.length>0?F[0]:null};
PgK=function(F){for(var W=[];F;)W.push(F),F=F.parentElement;return W};
JvT=function(F,W){var E=Array.from(W.children);W=F.indexOf(W);return W>0?E.indexOf(F[W-1]):-1};
US=function(F,W,E){E=E===void 0?{}:E;return _.CY(F,E,W)};
OrK=function(F){switch(F){case "MUSIC":return!0;default:return!1}};
br6=function(F){return F==null?void 0:F.filter(function(W){return W.premiereTrailerBadgeRenderer})};
nju=function(F){var W,E=F==null?void 0:(W=F.find(function(B){return B.thumbnailOverlayTimeStatusRenderer}))==null?void 0:W.thumbnailOverlayTimeStatusRenderer,h,d;
if((E==null?0:(h=E.icon)==null?0:h.iconType)&&OrK(E==null?void 0:(d=E.icon)==null?void 0:d.iconType)){var V;return{icon:E==null?void 0:(V=E.icon)==null?void 0:V.iconType}}var R,M;var g=(F=(R=F==null?void 0:(g=F.find(function(B){return B.thumbnailBottomOverlayViewModel}))==null?void 0:g.thumbnailBottomOverlayViewModel)==null?void 0:(M=R.badges)==null?void 0:M.find(function(B){var I,x;
return((I=_.D(B,lqN))==null?void 0:(x=I.inlinePlaybackBadgeData)==null?void 0:x.replicateAsTimestamp)===!0}))?_.D(F,lqN):void 0;
if(g==null?0:g.icon){var t,C;if((g=(t=_.klR(g==null?void 0:g.icon))==null?void 0:(C=t.clientResource)==null?void 0:C.imageName)&&OrK(g))return{icon:g}}return{}};
ir$=function(F,W){var E="",h="";switch(F){case -1:case 0:E=W?"VOLUME_OFF":"VOLUME_OFF_FILLED";h=yvg;break;case 1:E=W?"VOLUME_UP_OUTLINE":"VOLUME_UP";h=jTg;break;default:_.RO(F)}return{iconName:E,ariaLabel:h}};
wbg=function(F,W){var E=rv6,h=_.U(_.g$(TlP(new ojq(function(){},E,W)),void 0,"PAnyd")),d=h.next().value,V=h.next().value,R=new ojq(function(M){V(M)},E,W);
_.q6(function(){Promise.resolve().then(function(){var M,g=(M=F())!=null?M:{};R.playerControlsData=g;_.c("player_controls_skip_double_signal_old")&&(R.lastSeenPlayerApi=_.oV(g.playerApi));_.c("player_controls_skip_double_signal_old")||(R.lastSeenPlayerApi=_.oV(g.playerApi));G3O(R)});
_.$p(function(){Y2g(R)})});
_.$p(function(){Y2g(R)});
return function(){return d()}};
ug6=function(F){return function(W){var E=F(),h={playerState:W};if(W===1){var d;(d=E.playerApi)==null||d.loadModule("captions")}if(W===0){var V;(V=E.playerApi)==null||V.unloadModule("captions")}(W!==-1||_.c("web_imp_controls_set_player_state_killswitch"))&&E.setState(h)}};
S28=function(F){return function(W){F().setState({playbackRate:W})}};
pb6=function(F){return function(W){var E=F(),h=E.playerApi,d=h==null?void 0:h.getVideoData(),V=(d==null?void 0:d.isLive)||!1;d=d==null?void 0:d.video_id;V={videoDuration:Iyq(h||void 0),isLive:V,videoId:d};V.videoId!==E.videoId&&(V=Object.assign({},_.D8W(h),V));if(W==null?0:W.playertype)V.playerType=W.playertype;if(h){V.captionsAvailable=!!h.getOptions("captions");W=V;var R;d=(R=h.getStoryboardLevel(h.getNumberOfStoryboardLevels()-1))==null?void 0:R.intervalMs;W.storyboardInterval=d?d/1E3:void 0;V.captionsAvailable&&
(V.captionsEnabled=z26(h))}V.volumeMuted=!(h==null||!h.isMuted());E.setState(V)}};
mTO=function(F){return function(W){var E=F(),h=E.playerApi;if(h){var d=h.getPresentingPlayerType();W={playedTime:W||0,percentLoaded:h.getVideoLoadedFraction(),playerType:d};E.playerState===0&&(W.playedTime=E.videoDuration);E.isLive&&(d=h.getProgressState(d),W.playedTime-=d.seekableStart,W.videoDuration=Iyq(h));if(E.playerType===1)h=!1;else{var V;if((V=E.uxConfig)==null?0:V.showCuedOverlay){var R;h=!((R=E.playerApi)==null?0:R.getPlayerStateObject(E.playerType).isDomPaused)}else h=!0}h&&delete W.playedTime;
E.setState(W)}}};
KjF=function(F){return function(){var W=F(),E,h,d,V={volume:(d=(E=W.playerApi)==null?void 0:E.getVolume())!=null?d:0,volumeMuted:!((h=W.playerApi)==null||!h.isMuted())};W.setState(V)}};
F66=function(F){return function(){var W=F(),E=W.playerApi;if(E){var h={captionsAvailable:!!E.getOptions("captions")};h.captionsAvailable&&(h.captionsEnabled=z26(E));W.setState(h)}}};
W6N=function(F){return function(){var W=F();if(W.playerApi&&!(W.volumeMuted||W.controlsVisible&&W.isProbablyAScreenreaderUser)){W.setState({controlsVisible:!0,isProbablyAScreenreaderUser:!0});var E;(E=document.querySelector(".player-control-play-pause-icon"))==null||E.focus()}}};
Ep6=function(F){return{appApi:Object.assign({},_.zhr(),{showCaptionsToggleToast:function(W){var E,h;(h=(E=F()).showCaptionsToggleToast)==null||h.call(E,W)},
openInMiniplayer:function(){var W,E;(E=(W=F()).openInMiniplayer)==null||E.call(W)}})}};
hFx=function(F,W){var E,h,d;return!!(F==null?0:(E=F.playerResponse)==null?0:(h=E.playerConfig)==null?0:(d=h.inlinePlaybackConfig)==null?0:d.showScrubbingControls)&&!(W==null?0:W.hideScrubbingControls)};
_.d6w=function(F){var W=!F.miniplayerIsActive;return[5,2,0].includes(F.miniplayerPlaybackState)||W};
N$q={FILLED:"youtube_fill",OUTLINE:"youtube_outline"};Veq=function(F,W){var E,h,d,V,R;_.e(function(M){if(!W.length)return M.return([]);E=[];h=_.U(W);for(d=h.next();!d.done;d=h.next())V=d.value,(R=F.resolveIcon(V))&&!F.iconCache[R.url]&&E.push(_.xUx(F,R).then(function(){}).catch(function(){}));
return M.return(Promise.all(E))})};
U6O=function(F,W){var E=[];W=(new Set(W)).values();W=_.U(W);for(var h=W.next();!h.done;h=W.next()){h=h.value;for(var d=_.U(Object.values(N$q)),V=d.next();!V.done;V=d.next())E.push({iconName:h,iconStyle:V.value})}Veq(F.iconManager,E)};
_.RF6=function(F,W,E){var h=E!=null?E:F.iconsToFetch;h!=null&&h.length?W!==void 0&&W>=0?_.sB(_.P0,function(){U6O(F,h)},W):U6O(F,h):Promise.resolve()};
cN8={};
ojq=function(F,W,E){var h=this;this.renderFn=F;this.listeners=W;this.context=E;this.eventListenerCleanupFunctions=[];this.recentlyNavigated=!1;var d;this.lastSeenPlayerApi=_.oV((d=this.playerControlsData)==null?void 0:d.playerApi);this.boundSetState=this.setState.bind(this);this.state=Object.assign({},_.D8W(),void 0);_.c("player_controls_render_optimization")&&window.addEventListener("state-navigatestart",function(){TlP(h).setState({playerState:-1});h.resetRecentlyNavigatedJobId&&_.P0.cancelJob(h.resetRecentlyNavigatedJobId);h.recentlyNavigated=
!0;h.resetRecentlyNavigatedJobId=_.P0.addJob(function(){h.recentlyNavigated=!1},8,1E4)})};
ojq.prototype.setState=function(F){if(!_.c("mweb_player_skip_no_op_state_changes")||!Dp8(F,this.state))if(this.state=Object.assign({},this.state,F),!_.c("player_controls_render_optimization")||this.state.playerState!==-1&&this.state.playerState!==5||!this.recentlyNavigated)F=-1,_.c("player_controls_log_creation_killswitch")||xpq()||(F=(0,_.KU)()),_.P5("pcu_s"),_.P5("pcu_se"),_.P5("pcu_rs"),this.renderFn(TlP(this)),_.P5("pcu_re"),kOF(F),_.P0.addJob(function(){_.P5("pcu_ap")},8)};
var TlP=function(F){var W;var E=_.oV((W=F.playerControlsData)==null?void 0:W.playerApi);return Object.assign({},F.state,{setState:F.boundSetState,domMeasurements:{progressBarLineRect:F.progressBarLineRect},playerApi:E,appApi:F.context.appApi,playerContainer:F.context.playerContainer,playerControlContainer:F.context.playerControlContainer,uxConfig:F.context.uxConfig})},G3O=function(F){F.listeners.forEach(function(W){F.eventListenerCleanupFunctions.push(W.register(function(){return TlP(F)},function(){return F.getData()}))})},
Y2g=function(F){F.eventListenerCleanupFunctions.forEach(function(W){W()});
F.eventListenerCleanupFunctions.length=0};
ojq.prototype.getData=function(){return this.playerControlsData};
var RM=new _.S("abuseReportFlowState");var eF$=new _.S("feedbackFormFlowState");var Me$=new _.S("inputBoxViewModel");var gpq=new _.S("flowNextStepCommand");var Qy$=new _.S("flowPrevStepCommand");var zFP=new _.S("updateFlowCommand");_.teT=new _.S("flowStepRenderer");_.VS6=new _.S("lengthValidationRule");var RAg=new _.S("regexValidationRule");var MS6=new _.S("selectedValidationRule");var Cuq=new _.S("talkToRecsViewModel");var B$K=new _.S("creatorGoalSetUpFlowDropdownItemViewModel");var vpx=new _.S("creatorGoalSetUpFlowDropdownViewModel");var lqN=new _.S("thumbnailBadgeViewModel");_.InO=new _.S("radioButtonGroupViewModel");var Avx=new _.S("panelFooterViewModel");var czK=new _.S("ypcCancelRecurrenceCommand");var D6K=new _.S("cancellationFlowState");var NZ=new _.S("premiumPurchaseFlowState");var x6q=new _.S("surveyAnswerCardRenderer");var kiq=new _.S("showMoreButtonRenderer");var Azg;var syw,L66=function(){if(syw!==void 0)return syw;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-creator-goal-set-up-flow-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_creator_goal_set_up_flow_view_model.yt.creator.goal.set.up.flow.view.model.css.js--\x3e<div id="container" class="style-scope yt-creator-goal-set-up-flow-view-model">\n  <div id="header" class="style-scope yt-creator-goal-set-up-flow-view-model">\n    <yt-attributed-string id="title" data="[[data.title]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n    <yt-image id="image" data="[[data.image]]" height="100" preserve-height="" width="100" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-image>\n  </div>\n  <div id="subheader" class="style-scope yt-creator-goal-set-up-flow-view-model">\n    <yt-attributed-string id="description" data="[[data.pageDescription]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n  </div>\n  <div id="goal-content" class="style-scope yt-creator-goal-set-up-flow-view-model">\n    <div id="number-goal" class="style-scope yt-creator-goal-set-up-flow-view-model">\n      <yt-attributed-string id="number-goal-label" data="[[data.purchaseTargetDropdown.creatorGoalSetUpFlowDropdownViewModel.dropdownTitle]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n      <tp-yt-paper-dropdown-menu-light id="goal-dropdown" no-label-float="" class="style-scope yt-creator-goal-set-up-flow-view-model">\n        <tp-yt-paper-listbox id="goal-entries" class="dropdown-content style-scope yt-creator-goal-set-up-flow-view-model" slot="dropdown-content" attr-for-selected="value" selected="[[goal]]" on-selected-changed="updateGoalValue">\n        <template is="dom-repeat" items="[[getGoalDropdownItems()]]" as="item" class="style-scope yt-creator-goal-set-up-flow-view-model">\n          <tp-yt-paper-item value="[[getDropdownItemValue(item)]]" class="style-scope yt-creator-goal-set-up-flow-view-model">\n            <yt-attributed-string data="[[getDropdownItemText(item)]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n          </tp-yt-paper-item>\n        </template>\n        </tp-yt-paper-listbox>\n      </tp-yt-paper-dropdown-menu-light>\n    </div>\n    <div id="tier-goal" class="style-scope yt-creator-goal-set-up-flow-view-model">\n      <yt-attributed-string id="tier-goal-label" data="[[data.colorDropdown.creatorGoalSetUpFlowDropdownViewModel.dropdownTitle]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n      <tp-yt-paper-dropdown-menu-light id="tier-dropdown" no-label-float="" no-underline="" class="style-scope yt-creator-goal-set-up-flow-view-model">\n        <tp-yt-paper-listbox id="tier-entries" class="dropdown-content style-scope yt-creator-goal-set-up-flow-view-model" slot="dropdown-content" attr-for-selected="value" selected="[[tier]]" on-selected-changed="updateTierValue">\n        <template is="dom-repeat" items="[[getColorDropdownItems()]]" as="item" class="style-scope yt-creator-goal-set-up-flow-view-model">\n          <tp-yt-paper-item value="[[getDropdownItemValue(item)]]" class="style-scope yt-creator-goal-set-up-flow-view-model">\n            <yt-attributed-string data="[[getDropdownItemText(item)]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n          </tp-yt-paper-item>\n        </template>\n        </tp-yt-paper-listbox>\n      </tp-yt-paper-dropdown-menu-light>\n      <yt-attributed-string id="tier-disclosure" data="[[data.colorDisclosureText]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n    </div>\n    <div id="duration-goal" class="style-scope yt-creator-goal-set-up-flow-view-model">\n      <yt-attributed-string id="duration-goal-label" data="[[data.timerDropdown.creatorGoalSetUpFlowDropdownViewModel.dropdownTitle]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n      <tp-yt-paper-dropdown-menu-light id="timer-dropdown" no-label-float="" no-underline="" class="style-scope yt-creator-goal-set-up-flow-view-model">\n        <tp-yt-paper-listbox id="timer-entries" class="dropdown-content style-scope yt-creator-goal-set-up-flow-view-model" slot="dropdown-content" attr-for-selected="value" selected="[[timer]]" on-selected-changed="updateTimerValue">\n        <template is="dom-repeat" items="[[getTimerDropdownItems()]]" as="item" class="style-scope yt-creator-goal-set-up-flow-view-model">\n          <tp-yt-paper-item value="[[getDropdownItemValue(item)]]" class="style-scope yt-creator-goal-set-up-flow-view-model">\n            <yt-attributed-string data="[[getDropdownItemText(item)]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n          </tp-yt-paper-item>\n        </template>\n        </tp-yt-paper-listbox>\n      </tp-yt-paper-dropdown-menu-light>\n    </div>\n    <div id="description-goal" class="style-scope yt-creator-goal-set-up-flow-view-model">\n      <yt-attributed-string id="number-goal-label" data="[[data.descriptionInputTitle]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n      <tp-yt-paper-textarea id="goal-description-input" maxlength="220" no-label-float="" placeholder="[[data.userGoalPlaceholderText.content]]" on-value-changed="onTextValueChanged" class="style-scope yt-creator-goal-set-up-flow-view-model">\n      </tp-yt-paper-textarea>\n      <yt-button-view-model id="[[exampleButtonId]]" data="[[data.exampleButton.buttonViewModel]]" scoping-class-name="[[is]]" class="style-scope yt-creator-goal-set-up-flow-view-model">\n      </yt-button-view-model>\n      <yt-attributed-string id="description-disclosure" data="[[data.descriptionDisclosureText]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n    </div>\n  </div>\n  <div id="footer" class="style-scope yt-creator-goal-set-up-flow-view-model">\n    <yt-button-view-model id="[[startButtonId]]" data="[[getButtonViewModel(goalDescription)]]" scoping-class-name="[[is]]" class="style-scope yt-creator-goal-set-up-flow-view-model">\n    </yt-button-view-model>\n  </div>\n</div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);var W=F.content,E=W.insertBefore;Azg===void 0&&(Azg=document.createElement("template"));var h=Azg;E.call(W,h.content.cloneNode(!0),F.content.firstChild);return syw=F};var ev=function(){var F=_.n.apply(this,arguments)||this;F.goal="CREATOR_GOALS_PURCHASE_TARGET_10_SC";F.goalDescription="";F.timer="CREATOR_GOAL_TIME_LIMIT_30_MINUTES";F.tier="CREATOR_GOALS_ELIGIBLE_PURCHASE_TYPE_TEAL_SC";F.startButtonId="start-button";F.exampleButtonId="example-button";return F};
_.k(ev,_.n);_.N=ev.prototype;_.N.getGoalDropdownItems=function(){var F,W;return(W=_.D((F=this.data)==null?void 0:F.purchaseTargetDropdown,vpx))==null?void 0:W.dropdownItems};
_.N.getTimerDropdownItems=function(){var F,W;return(W=_.D((F=this.data)==null?void 0:F.timerDropdown,vpx))==null?void 0:W.dropdownItems};
_.N.getColorDropdownItems=function(){var F,W;return(W=_.D((F=this.data)==null?void 0:F.colorDropdown,vpx))==null?void 0:W.dropdownItems};
_.N.getDropdownItemText=function(F){var W;return(W=_.D(F,B$K))==null?void 0:W.itemLabel};
_.N.getDropdownItemValue=function(F){F=_.D(F,B$K);return(F==null?void 0:F.timeLimit)||(F==null?void 0:F.purchaseTarget)||(F==null?void 0:F.eligiblePurchaseType)};
_.N.updateFlowState=function(F){_.dW(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{creatorGoalSetUpFlowState:F}])};
_.N.attached=function(){this.updateFlowState({goalDescription:this.goalDescription,targetPurchases:this.goal,goalDuration:this.timer,eligiblePurchaseType:this.tier})};
_.N.updateGoalValue=function(F){this.goal=F.detail.value;this.updateFlowState({targetPurchases:this.goal})};
_.N.onTextValueChanged=function(F){this.goalDescription=F.detail.value;this.updateFlowState({goalDescription:this.goalDescription})};
_.N.updateTimerValue=function(F){this.timer=F.detail.value;this.updateFlowState({goalDuration:this.timer})};
_.N.updateTierValue=function(F){this.tier=F.detail.value;this.updateFlowState({eligiblePurchaseType:this.tier})};
_.N.getButtonViewModel=function(F){F=(F==null?void 0:F.length)>0?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED";var W,E=_.D((W=this.data)==null?void 0:W.startGoalButton,_.fx);return Object.assign({},E,{state:F})};
_.Sn.Object.defineProperties(ev,{template:{configurable:!0,enumerable:!0,get:function(){return L66()}}});
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],ev.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],ev.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Object)],ev.prototype,"goal",void 0);_.T([_.O(),_.Y("design:type",Object)],ev.prototype,"goalDescription",void 0);_.T([_.O(),_.Y("design:type",Object)],ev.prototype,"timer",void 0);_.T([_.O(),_.Y("design:type",Object)],ev.prototype,"tier",void 0);
_.T([_.O(),_.Y("design:type",Object)],ev.prototype,"startButtonId",void 0);_.T([_.O(),_.Y("design:type",Object)],ev.prototype,"exampleButtonId",void 0);ev=_.T([_.$3({is:"yt-creator-goal-set-up-flow-view-model",disableElementRegistration:!0,noInjection:!0})],ev);_.r(ev,"yt-creator-goal-set-up-flow-view-model",function(){return L66()},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var qiK;var $66;var Zdw;var MZ=function(){return _.n.apply(this,arguments)||this};
_.k(MZ,_.n);_.T([_.O(),_.Y("design:type",Object)],MZ.prototype,"data",void 0);MZ=_.T([_.$3({is:"yt-survey-answer-card-renderer",disableElementRegistration:!0})],MZ);
_.r(MZ,"yt-survey-answer-card-renderer",function(){if(Zdw===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-survey-answer-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_survey_answer_card_renderer.yt.survey.answer.card.renderer.css.js--\x3e<yt-formatted-string id="answer-string" force-default-style="" split-lines="1" text="[[data.answerString]]" class="style-scope yt-survey-answer-card-renderer"></yt-formatted-string><yt-icon id="card-icon" icon="CHEVRON_RIGHT" class="style-scope yt-survey-answer-card-renderer"></yt-icon>');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;$66===void 0&&($66=document.createElement("template"));var h=$66;E.call(W,h.content.cloneNode(!0),F.content.firstChild);Zdw=F}F=Zdw;return F},{mode:2});var XX6;var HdK;var g0=function(){return _.n.apply(this,arguments)||this};
_.k(g0,_.n);_.N=g0.prototype;_.N.onSelectedItemChanged=function(){this.selectedItem&&this.selectedItemChanged(this.selectedItem)};
_.N.selectedItemChanged=function(F){_.dW(this.hostElement,"yt-survey-flow-step-option-changed",[{feedbackTokens:[F.feedbackToken||""]}])};
_.N.surveyAnswerCardRendererClicked=function(F){if(F.target&&_.D(F.model.item,x6q)){var W=F.target;F=_.D(F.model.item,x6q);F.onTapCommand?_.Rj(W,[F.onTapCommand],W):this.data.onTapCommand&&_.Rj(W,[this.data.onTapCommand],W);this.selectedItemChanged(F)}};
_.N.checkIsCancellationStyle=function(F){return F==="SURVEY_FLOW_STEP_RENDERER_STYLE_CANCELLATION"};
_.N.updateSelectedItemFromBinding=function(F){this.selectedItem=F.detail.value};
g0.prototype.onSelectedItemChanged=g0.prototype.onSelectedItemChanged;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],g0.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],g0.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Object)],g0.prototype,"selectedItem",void 0);_.T([_.O({computed:"checkIsCancellationStyle(data.style)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],g0.prototype,"isCancellationStyle",void 0);
_.T([_.ea("selectedItem"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],g0.prototype,"onSelectedItemChanged",null);g0=_.T([_.$3({is:"yt-survey-flow-step-renderer",disableElementRegistration:!0})],g0);
_.r(g0,"yt-survey-flow-step-renderer",function(){if(HdK===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-survey-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_survey_flow_step_renderer.yt.survey.flow.step.renderer.css.js--\x3e<yt-formatted-string id="question" force-default-style="" split-lines="1" text="[[data.question]]" class="style-scope yt-survey-flow-step-renderer">\n</yt-formatted-string>\n\n<template is="dom-if" if="[[isCancellationStyle]]" restamp="" class="style-scope yt-survey-flow-step-renderer">\n  <template is="dom-repeat" items="[[data.answerCards]]" as="item" class="style-scope yt-survey-flow-step-renderer">\n    <template is="dom-if" if="[[item.surveyAnswerCardRenderer]]" restamp="" class="style-scope yt-survey-flow-step-renderer">\n      <yt-survey-answer-card-renderer data="[[item.surveyAnswerCardRenderer]]" on-click="surveyAnswerCardRendererClicked" class="style-scope yt-survey-flow-step-renderer"></yt-survey-answer-card-renderer>\n    </template>\n  </template>\n</template>\n\n<template is="dom-if" if="[[!isCancellationStyle]]" restamp="" class="style-scope yt-survey-flow-step-renderer">\n  <tp-yt-paper-radio-group id="options" selected="[[selectedItem]]" on-selected-changed="updateSelectedItemFromBinding" class="style-scope yt-survey-flow-step-renderer">\n    <template is="dom-repeat" items="[[data.answerCards]]" class="style-scope yt-survey-flow-step-renderer">\n      <template is="dom-if" if="[[item.surveyAnswerCardRenderer]]" restamp="" class="style-scope yt-survey-flow-step-renderer">\n        <tp-yt-paper-radio-button id="radio" aria-label="[[getSimpleString(item.surveyAnswerCardRenderer.answerString)]]" name="[[item.surveyAnswerCardRenderer]]" no-ink="" class="style-scope yt-survey-flow-step-renderer">\n          <yt-formatted-string id="answer-string" force-default-style="" split-lines="1" text="[[item.surveyAnswerCardRenderer.answerString]]" class="style-scope yt-survey-flow-step-renderer">\n          </yt-formatted-string>\n        </tp-yt-paper-radio-button>\n      </template>\n    </template>\n  </tp-yt-paper-radio-group>\n</template>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;XX6===void 0&&(XX6=document.createElement("template"));var h=XX6;E.call(W,h.content.cloneNode(!0),F.content.firstChild);HdK=F}F=HdK;return F},{mode:2});var Q2=function(){var F=_.n.apply(this,arguments)||this;F.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged"};return F};
_.k(Q2,_.n);Q2.prototype.handleSurveyFlowStepOptionChanged=function(F){this.ytdReduxBehavior.dispatch(_.dR({type:"YPC_UPDATE_SURVEY_FEEDBACK_DATA",payload:F}));_.dW(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:F}}])};
_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],Q2.prototype,"ytActionHandlerBehavior",void 0);_.T([_.J(_.am),_.Y("design:type",Object)],Q2.prototype,"ytdReduxBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],Q2.prototype,"data",void 0);Q2=_.T([_.y({disableElementRegistration:!0,is:"ytd-survey-flow-step-renderer"})],Q2);
_.r(Q2,"ytd-survey-flow-step-renderer",function(){if(qiK!==void 0)return qiK;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-survey-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-survey-flow-step-renderer data="[[data]]" class="style-scope ytd-survey-flow-step-renderer"></yt-survey-flow-step-renderer>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return qiK=F},{mode:1});var ANO;ANO=_.XF({avatarViewModel:_.fI,buttonViewModel:_.rk,subscribeButtonViewModel:_.Y$i,imageBannerViewModel:_.$NM});_.PuO=_.Qt(_.LB$);_.ht(_.LB$);var JzO;var zP=function(){return _.n.apply(this,arguments)||this};
_.k(zP,_.n);_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],zP.prototype,"ytComponentBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],zP.prototype,"data",void 0);zP=_.T([_.y({is:"ytd-channel-history-renderer",disableElementRegistration:!0})],zP);
_.r(zP,"ytd-channel-history-renderer",function(){if(JzO!==void 0)return JzO;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-history-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-channel-history-renderer">\n  <yt-img-shadow id="image" fit="" hidden="[[!data.image]]" thumbnail="[[data.image]]" width="160" class="style-scope ytd-channel-history-renderer">\n  </yt-img-shadow>\n  <yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope ytd-channel-history-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string id="description" hidden="[[!data.description]]" split-lines="" text="[[data.description]]" class="style-scope ytd-channel-history-renderer">\n  </yt-formatted-string>\n</div>');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return JzO=F},{mode:1});var anF;var tu=function(){return _.n.apply(this,arguments)||this};
_.k(tu,_.n);_.T([_.O(),_.Y("design:type",Object)],tu.prototype,"data",void 0);tu=_.T([_.y({is:"ytd-feature-enablement-info-renderer",disableElementRegistration:!0})],tu);
_.r(tu,"ytd-feature-enablement-info-renderer",function(){if(anF!==void 0)return anF;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feature-enablement-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-feature-enablement-info-renderer">\n  <yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope ytd-feature-enablement-info-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string id="description" hidden="[[!data.description]]" text="[[data.description]]" class="style-scope ytd-feature-enablement-info-renderer">\n  </yt-formatted-string>\n</div>');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return anF=F},{mode:1});var fnx;var Odu;var CA=function(){var F=_.n.apply(this,arguments)||this;F.textBoxMaxLength=_.c("enable_tvod_campaign_code_integration")?15:12;return F};
_.k(CA,_.n);_.N=CA.prototype;_.N.dataChanged=function(){this.userInput=this.data.couponCode?this.data.couponCode:"";this.validate()};
_.N.onSubmit=function(){var F=this.data.serviceEndpoint,W=_.D(F,_.g9);W&&F&&(W.couponCode=this.userInput,_.WZ().resolve(_.EJ).resolveCommand(F,{form:{element:this.hostElement}}))};
_.N.validate=function(){var F=!(!this.data||!this.data.couponCode||this.data.couponCode!==this.userInput);this.showTick=F&&!this.data.errorMessage;this.showErrorMessage=F&&!!this.data.errorMessage;this.hideApplyButton=!this.userInput||this.showTick||this.showErrorMessage;this.disableApplyButton=_.c("enable_tvod_campaign_code_integration")?this.userInput.match(/^[\d\w]{5,15}$/)===null:this.userInput.match(/^[\d\w]{12}$/)===null};
_.N.computeStyle=function(F){return F};
_.N.computeShowValidationBelowInput=function(F){return F!=="YPC_COUPON_RENDERER_STYLE_END_ALIGN"};
_.N.updateUserInputFromBinding=function(F){this.userInput=F.currentTarget.value};
_.N.updateShowErrorMessageFromBinding=function(F){this.showErrorMessage=F.detail.value};
_.Sn.Object.defineProperties(CA.prototype,{validationState:{configurable:!0,enumerable:!0,get:function(){return this.showTick?"success":this.showErrorMessage?"error":this.userInput?"user-input":"default"}}});
CA.prototype.dataChanged=CA.prototype.dataChanged;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],CA.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],CA.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",String)],CA.prototype,"userInput",void 0);_.T([_.O(),_.Y("design:type",Boolean)],CA.prototype,"disableApplyButton",void 0);_.T([_.O(),_.Y("design:type",Boolean)],CA.prototype,"hideApplyButton",void 0);
_.T([_.O(),_.Y("design:type",Boolean)],CA.prototype,"hideErrorMessage",void 0);_.T([_.O(),_.Y("design:type",Boolean)],CA.prototype,"showTick",void 0);_.T([_.O(),_.Y("design:type",Boolean)],CA.prototype,"showErrorMessage",void 0);_.T([_.O({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.Y("design:type",String)],CA.prototype,"couponStyle",void 0);
_.T([_.O({reflectToAttribute:!0,computed:"computeShowValidationBelowInput(data.style)"}),_.Y("design:type",Boolean)],CA.prototype,"showValidationBelowInput",void 0);_.T([_.O(),_.Y("design:type",Object)],CA.prototype,"textBoxMaxLength",void 0);_.T([_.Cz("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],CA.prototype,"dataChanged",null);
_.T([_.a("showTick","showErrorMessage","userInput"),_.Y("design:type",String),_.Y("design:paramtypes",[])],CA.prototype,"validationState",null);CA=_.T([_.y({disableElementRegistration:!0,is:"ytd-ypc-coupon-renderer"})],CA);
_.r(CA,"ytd-ypc-coupon-renderer",function(){if(Odu!==void 0)return Odu;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ypc-coupon-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="style-scope ytd-ypc-coupon-renderer">\n  <tp-yt-paper-input-container class$="[[validationState]] style-scope ytd-ypc-coupon-renderer" invalid="[[showErrorMessage]]" use-v2-underline="" on-invalid-changed="updateShowErrorMessageFromBinding">\n    <input id="input" maxlength$="[[textBoxMaxLength]]" autocomplete="off" placeholder="[[data.boxHint]]" value="[[userInput]]" on-keyup="validate" slot="input" on-input="updateUserInputFromBinding" class="style-scope ytd-ypc-coupon-renderer">\n    <tp-yt-paper-input-error slot="add-on" aria-live="assertive" hidden="[[!showValidationBelowInput]]" class="style-scope ytd-ypc-coupon-renderer">\n      [[data.errorMessage]]\n    </tp-yt-paper-input-error>\n  </tp-yt-paper-input-container>\n</div>\n\n<div id="validation" class="style-scope ytd-ypc-coupon-renderer">\n  <div hidden="[[showValidationBelowInput]]" class="style-scope ytd-ypc-coupon-renderer">\n    <div class$="[[validationState]] style-scope ytd-ypc-coupon-renderer" hidden="[[!showErrorMessage]]">\n      [[data.errorMessage]]\n    </div>\n    <div class$="[[validationState]] style-scope ytd-ypc-coupon-renderer" hidden="[[!showTick]]">\n      [[data.successMessage]]\n    </div>\n  </div>\n  <yt-icon-button class="confirmation style-scope ytd-ypc-coupon-renderer" hidden="[[!showTick]]" noink="">\n    <yt-icon icon="check" class="style-scope ytd-ypc-coupon-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n\n<ytd-button-renderer id="apply" data="[[data.applyCoupon.buttonRenderer]]" disabled="[[disableApplyButton]]" hidden="[[hideApplyButton]]" on-tap="onSubmit" class="style-scope ytd-ypc-coupon-renderer">\n</ytd-button-renderer>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return Odu=F},{mode:1});var BA=function(){return _.n.apply(this,arguments)||this};
_.k(BA,_.n);BA.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer",buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:"ytd-button-renderer",buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}}},"data.couponRenderer":{id:"coupon-renderer",mapping:{ypcCouponRenderer:"ytd-ypc-coupon-renderer"}}}};
BA.prototype.computeStyle=function(F){return F};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],BA.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],BA.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],BA.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.Y("design:type",String)],BA.prototype,"buttonStyle",void 0);BA=_.T([_.y({is:"ytd-flow-bottom-bar-renderer",disableElementRegistration:!0})],BA);
_.r(BA,"ytd-flow-bottom-bar-renderer",function(){if(fnx!==void 0)return fnx;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flow-bottom-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="coupon-renderer" hidden="[[!data.couponRenderer]]" class="style-scope ytd-flow-bottom-bar-renderer"></div>\n<div id="secondary-button" hidden="[[!data.secondaryButton]]" class="style-scope ytd-flow-bottom-bar-renderer"></div>\n<div id="primary-button" hidden="[[!data.primaryButton]]" class="style-scope ytd-flow-bottom-bar-renderer"></div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return fnx=F},{mode:1});var bdx;var lnN;var npK;var vA=function(){return _.n.apply(this,arguments)||this};
_.k(vA,_.n);vA.prototype.configureRendererStamper=function(){return{"data.trailingButtons":{id:"trailing-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.backButton":{id:"back-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
vA.prototype.focus=function(F){this.title&&_.Y7(this.title,F)};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],vA.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],vA.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],vA.prototype,"data",void 0);_.T([_.gQ("#title"),_.Y("design:type",HTMLElement)],vA.prototype,"title",void 0);vA=_.T([_.y({is:"ytd-flow-top-bar-renderer",disableElementRegistration:!0})],vA);
_.r(vA,"ytd-flow-top-bar-renderer",function(){if(npK!==void 0)return npK;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flow-top-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="back-button" class="style-scope ytd-flow-top-bar-renderer"></div>\n<div id="content" class="style-scope ytd-flow-top-bar-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-flow-top-bar-renderer"></yt-formatted-string>\n  <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-flow-top-bar-renderer"></yt-formatted-string>\n</div>\n<div id="trailing-buttons" class="style-scope ytd-flow-top-bar-renderer"></div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return npK=F},{mode:1});var yz8;var jy8;var idN;var IM=function(){return _.n.apply(this,arguments)||this};
_.k(IM,_.n);IM.prototype.freeTextValueChanged=function(){_.dW(this.hostElement,"yt-free-text-flow-step-input-changed",[{freeTextAnswers:[{answer:this.freeTextValue}]}])};
IM.prototype.updateFreeTextValueFromBinding=function(F){this.freeTextValue=F.detail.value};
_.Sn.Object.defineProperties(IM.prototype,{characterLimitClass:{configurable:!0,enumerable:!0,get:function(){var F,W,E=(W=(F=this.data)==null?void 0:F.responseMaxLength)!=null?W:500,h;return((h=this.freeTextValue)!=null?h:"").length>=E?"maxed-out":""}}});
IM.prototype.freeTextValueChanged=IM.prototype.freeTextValueChanged;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],IM.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],IM.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",String)],IM.prototype,"freeTextValue",void 0);_.T([_.gQ("#user-input"),_.Y("design:type",HTMLTextAreaElement)],IM.prototype,"input",void 0);
_.T([_.a("freeTextValue"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],IM.prototype,"characterLimitClass",null);_.T([_.ea("freeTextValue"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],IM.prototype,"freeTextValueChanged",null);IM=_.T([_.$3({is:"yt-free-text-input-flow-step-renderer",disableElementRegistration:!0})],IM);
_.r(IM,"yt-free-text-input-flow-step-renderer",function(){if(idN===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-free-text-input-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_free_text_input_flow_step_renderer.yt.free.text.input.flow.step.renderer.css.js--\x3e<div id="question-container" class="style-scope yt-free-text-input-flow-step-renderer"><yt-formatted-string id="question" split-lines="1" text="[[data.question]]" class="style-scope yt-free-text-input-flow-step-renderer"></yt-formatted-string></div><div id="input-area" class="style-scope yt-free-text-input-flow-step-renderer"><tp-yt-paper-textarea id="user-input" class$="[[characterLimitClass]] style-scope yt-free-text-input-flow-step-renderer" char-counter="" label="[[getSimpleString(data.questionExplanation)]]" maxlength="[[data.responseMaxLength]]" placeholder="[[data.placeholderText]]" required="" rows="2" value="[[freeTextValue]]" on-value-changed="updateFreeTextValueFromBinding"></tp-yt-paper-textarea></div>');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;jy8===void 0&&(jy8=document.createElement("template"));var h=jy8;E.call(W,h.content.cloneNode(!0),F.content.firstChild);idN=F}F=idN;return F},{mode:2});var cA=function(){var F=_.n.apply(this,arguments)||this;F.actionMap={"yt-free-text-flow-step-input-changed":"handleFreeTextFlowStepInputChanged"};return F};
_.k(cA,_.n);cA.prototype.handleFreeTextFlowStepInputChanged=function(F){_.dW(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:F}}])};
_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],cA.prototype,"ytActionHandlerBehavior",void 0);_.T([_.J(_.am),_.Y("design:type",Object)],cA.prototype,"ytdReduxBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],cA.prototype,"data",void 0);cA=_.T([_.y({disableElementRegistration:!0,is:"ytd-free-text-input-flow-step-renderer"})],cA);
_.r(cA,"ytd-free-text-input-flow-step-renderer",function(){if(yz8!==void 0)return yz8;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-free-text-input-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-free-text-input-flow-step-renderer data="[[data]]" class="style-scope ytd-free-text-input-flow-step-renderer"></yt-free-text-input-flow-step-renderer>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return yz8=F},{mode:1});var rzq;var T$8;var Df=function(){return _.n.apply(this,arguments)||this};
_.k(Df,_.n);_.T([_.O(),_.Y("design:type",Object)],Df.prototype,"data",void 0);Df=_.T([_.y({disableElementRegistration:!0,is:"ytd-metadata-line-renderer"})],Df);
_.r(Df,"ytd-metadata-line-renderer",function(){if(T$8!==void 0)return T$8;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-metadata-line-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="line-wrapper" class="style-scope ytd-metadata-line-renderer">\n  <ytd-badge-supported-renderer id="badges" badges="[[data.badge]]" hidden="[[!data.badge]]" class="style-scope ytd-metadata-line-renderer">\n  </ytd-badge-supported-renderer>\n  <yt-formatted-string id="text" text="[[data.text]]" class="style-scope ytd-metadata-line-renderer"></yt-formatted-string>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return T$8=F},{mode:1});var x$=function(){return _.n.apply(this,arguments)||this};
_.k(x$,_.n);x$.prototype.configureRendererStamper=function(){return{"data.metadataLines":{id:"metadata-lines",mapping:{metadataLineRenderer:{component:"ytd-metadata-line-renderer"}}}}};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],x$.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],x$.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],x$.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],x$.prototype,"isMasthead",void 0);x$=_.T([_.y({disableElementRegistration:!0,is:"ytd-media-product-renderer"})],x$);
_.r(x$,"ytd-media-product-renderer",function(){if(rzq!==void 0)return rzq;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-media-product-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="product" class="style-scope ytd-media-product-renderer">\n  <div id="image" hidden="[[!data.thumbnail]]" class="style-scope ytd-media-product-renderer">\n    <yt-img-shadow id="thumbnail" height="90" thumbnail="[[data.thumbnail]]" class="style-scope ytd-media-product-renderer"></yt-img-shadow>\n  </div>\n  <div id="metadata" class="style-scope ytd-media-product-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-media-product-renderer"></yt-formatted-string>\n    <div id="metadata-lines" class="style-scope ytd-media-product-renderer"></div>\n  </div>\n</div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return rzq=F},{mode:1});var op$;var k$=function(){return _.n.apply(this,arguments)||this};
_.k(k$,_.n);k$.prototype.attached=function(){this.billboardImage.notifyOnLoaded=!0};
k$.prototype.onBillboardImageLoaded=function(){_.hF(this.hostElement,"yt-refit")};
k$.prototype.onBillboardImageLoaded=k$.prototype.onBillboardImageLoaded;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],k$.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],k$.prototype,"data",void 0);_.T([_.gQ("#billboardImage"),_.Y("design:type",Object)],k$.prototype,"billboardImage",void 0);_.T([_.R4("yt-img-shadow-loaded"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],k$.prototype,"onBillboardImageLoaded",null);
k$=_.T([_.y({disableElementRegistration:!0,is:"ytd-billboard-masthead-renderer"})],k$);
_.r(k$,"ytd-billboard-masthead-renderer",function(){if(op$!==void 0)return op$;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-billboard-masthead-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow id="billboardImage" class="billboard with-placeholder style-scope ytd-billboard-masthead-renderer" fit="" thumbnail="[[data.billboard]]">\n</yt-img-shadow>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return op$=F},{mode:1});var Gi6;var Au=function(){var F=_.n.apply(this,arguments)||this;F.smallSize=!1;return F};
_.k(Au,_.n);_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],Au.prototype,"ytComponentBehaviorType",void 0);_.T([_.O(),_.Y("design:type",Object)],Au.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],Au.prototype,"smallSize",void 0);Au=_.T([_.y({disableElementRegistration:!0,is:"ytd-bullet-formatted-string"})],Au);
_.r(Au,"ytd-bullet-formatted-string",function(){if(Gi6!==void 0)return Gi6;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-bullet-formatted-string--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon class="bullet-icon style-scope ytd-bullet-formatted-string" hidden="[[!data.icon.iconType]]" icon="[[computeIcon_(data.icon)]]">\n</yt-icon>\n<yt-formatted-string class="text style-scope ytd-bullet-formatted-string" split-lines="true" text="[[data.text]]">\n</yt-formatted-string>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return Gi6=F},{mode:1});var Yix;var sS=function(){return _.n.apply(this,arguments)||this};
_.k(sS,_.n);sS.prototype.configureRendererStamper=function(){return{"data.product":{id:"product",mapping:{mediaProductRenderer:"ytd-media-product-renderer"}}}};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],sS.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],sS.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],sS.prototype,"data",void 0);sS=_.T([_.y({disableElementRegistration:!0,is:"ytd-offer-detail-renderer"})],sS);
_.r(sS,"ytd-offer-detail-renderer",function(){if(Yix!==void 0)return Yix;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offer-detail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string class="description style-scope ytd-offer-detail-renderer" split-lines="true" text="[[data.description]]">\n</yt-formatted-string>\n<div id="product" hidden="[[!data.product]]" class="style-scope ytd-offer-detail-renderer"></div>\n<div class="benefits style-scope ytd-offer-detail-renderer">\n    <template is="dom-repeat" items="[[data.benefits]]" as="benefit" class="style-scope ytd-offer-detail-renderer">\n      <ytd-bullet-formatted-string class="benefit style-scope ytd-offer-detail-renderer" data="[[benefit]]">\n      </ytd-bullet-formatted-string>\n    </template>\n</div>\n<yt-formatted-string class="terms style-scope ytd-offer-detail-renderer" force-default-style="" text="[[data.terms]]">\n</yt-formatted-string>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return Yix=F},{mode:1});var wX6;var LA=function(){return _.n.apply(this,arguments)||this};
_.k(LA,_.n);LA.prototype.configureRendererStamper=function(){return{"data.masthead":{id:"masthead",mapping:{billboardMastheadRenderer:"ytd-billboard-masthead-renderer",mediaProductRenderer:{component:"ytd-media-product-renderer",params:{isMasthead:!0}}}},"data.body":{id:"body",mapping:{offerDetailRenderer:"ytd-offer-detail-renderer"}}}};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],LA.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],LA.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],LA.prototype,"data",void 0);LA=_.T([_.y({disableElementRegistration:!0,is:"ytd-offer-detail-step-renderer"})],LA);
_.r(LA,"ytd-offer-detail-step-renderer",function(){if(wX6!==void 0)return wX6;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offer-detail-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="masthead" class="style-scope ytd-offer-detail-step-renderer"></div>\n<div id="body" class="style-scope ytd-offer-detail-step-renderer"></div>\n\n\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return wX6=F},{mode:1});var uOK;var qZ=function(){var F=_.n.apply(this,arguments)||this;F.isInOfferModule=!1;return F};
_.k(qZ,_.n);_.N=qZ.prototype;_.N.computeHasEndpoint=function(){var F;return!((F=this.data)==null||!F.onClickCommand)};
_.N.dataChanged=function(){var F;if((F=this.data)==null?0:F.onClickCommand)this.hostElement.addEventListener("click",this.handleClickEvent),this.hostElement.addEventListener("keydown",this.onContentKeyDown),this.hostElement.addEventListener("keyup",this.onContentKeyUp),this.hostElement.setAttribute("tabindex","0"),this.hostElement.setAttribute("role","link")};
_.N.detached=function(){var F;if((F=this.data)==null?0:F.onClickCommand)this.hostElement.removeEventListener("click",this.handleClickEvent),this.hostElement.removeEventListener("keydown",this.onContentKeyDown),this.hostElement.removeEventListener("keyup",this.onContentKeyUp)};
_.N.handleClickEvent=function(){var F;if((F=this.data)==null?0:F.onClickCommand){var W;this.componentBehavior.resolveCommand((W=this.data)==null?void 0:W.onClickCommand)}};
_.N.onContentKeyDown=function(F){F.key==="Enter"?this.handleClickEvent(F):F.key===" "&&F.preventDefault()};
_.N.onContentKeyUp=function(F){F.key===" "&&this.handleClickEvent(F)};
qZ.prototype.dataChanged=qZ.prototype.dataChanged;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],qZ.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],qZ.prototype,"componentBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],qZ.prototype,"data",void 0);_.T([_.O({computed:"computeHasEndpoint(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],qZ.prototype,"hasEndpoint",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],qZ.prototype,"isInOfferModule",void 0);_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],qZ.prototype,"dataChanged",null);qZ=_.T([_.y({disableElementRegistration:!0,is:"ytd-channel-masthead-renderer"})],qZ);
_.r(qZ,"ytd-channel-masthead-renderer",function(){if(uOK!==void 0)return uOK;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-masthead-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-channel-masthead-renderer">\n  <yt-image class="channel-masthead style-scope ytd-channel-masthead-renderer" data="[[data.image]]" height="1" width="1">\n  </yt-image>\n  <div class="text style-scope ytd-channel-masthead-renderer">\n    <yt-attributed-string class="title style-scope ytd-channel-masthead-renderer" data="[[data.title]]">\n    </yt-attributed-string>\n    <yt-attributed-string class="subtitle style-scope ytd-channel-masthead-renderer" data="[[data.subtitle]]">\n    </yt-attributed-string>\n  </div>\n</div>');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return uOK=F},{mode:1});var Si6;var $$=function(){var F=_.n.apply(this,arguments)||this;F.thumbnailObjectFit="CONTAIN";F.thumbnailObjectPosition="LEFT";F.isExpanded=!1;return F};
_.k($$,_.n);_.N=$$.prototype;_.N.configureRendererStamper=function(){return{data:{id:"thumbnail",mapping:{thumbnail:{component:"yt-img-shadow",properties:{thumbnail:"[[data.thumbnail]]",objectFit:"[[thumbnailObjectFit]]",objectPosition:"[[thumbnailObjectPosition]]"}}}}}};
_.N.dataChanged=function(){this.resetStates()};
_.N.computeisTapOnOfferInfoContainerEnabled=function(){var F;return((F=this.data)==null?void 0:F.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"};
_.N.onExpandBtnClick=function(){var F,W=_.D((F=this.data)==null?void 0:F.showMoreButtonRenderer,kiq);W&&_.Bt(_.z4(),W.trackingParams);this.isExpanded=!this.isExpanded};
_.N.onOfferInfoClick=function(F){this.isTapOnOfferInfoContainerEnabled&&(_.Sc(_.TB(F)||[],this.hostElement,["A".toString(),"BUTTON".toString()])||_.pQ(_.TB(F)||[],this.hostElement,["expand-button"])||this.executeTapCommand())};
_.N.onBottomBarClick=function(){this.executeTapCommand()};
_.N.executeTapCommand=function(){var F,W=(F=this.data)==null?void 0:F.tapCommand;W&&this.ytComponentBehavior.resolveCommand(W)};
_.N.resetStates=function(){this.isExpanded=!1};
_.Sn.Object.defineProperties($$.prototype,{hasThumbnail:{configurable:!0,enumerable:!0,get:function(){var F;return!((F=this.data)==null||!F.thumbnail)}},
enableExpandButton:{configurable:!0,enumerable:!0,get:function(){var F=!(!this.showMoreButtonTitle||!this.showLessButtonTitle),W,E,h;return((W=this.data)==null?void 0:W.styleType)==="CARD_STYLE_TYPE_INTERACTIVE_CARD"&&F&&!!((E=this.data)==null?0:(h=E.benefits)==null?0:h.length)}},
enableOfferContentIcon:{configurable:!0,enumerable:!0,get:function(){var F;return((F=this.data)==null?void 0:F.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"&&!this.enableExpandButton}},
showMoreButtonTitle:{configurable:!0,enumerable:!0,get:function(){var F,W,E;return((W=_.D((F=this.data)==null?void 0:F.showMoreButtonRenderer,kiq))==null?void 0:W.showMoreButtonTitle)||((E=this.data)==null?void 0:E.showMoreButtonTitle)}},
showLessButtonTitle:{configurable:!0,enumerable:!0,get:function(){var F,W,E;return((W=_.D((F=this.data)==null?void 0:F.showMoreButtonRenderer,kiq))==null?void 0:W.showLessButtonTitle)||((E=this.data)==null?void 0:E.showLessButtonTitle)}},
expandedBtnText:{configurable:!0,enumerable:!0,get:function(){if(this.isExpanded){var F;return(F=this.showLessButtonTitle)!=null?F:""}var W;return(W=this.showMoreButtonTitle)!=null?W:""}},
enableBottomBar:{configurable:!0,enumerable:!0,get:function(){var F,W,E;return((F=this.data)==null?void 0:F.layoutType)==="CARD_LAYOUT_TYPE_FULL"&&!!(((W=this.data)==null?0:W.footerTitle)||((E=this.data)==null?0:E.footerSubtitle))}}});
$$.prototype.dataChanged=$$.prototype.dataChanged;_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],$$.prototype,"ytComponentBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],$$.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],$$.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",String)],$$.prototype,"thumbnailObjectFit",void 0);
_.T([_.O(),_.Y("design:type",String)],$$.prototype,"thumbnailObjectPosition",void 0);_.T([_.O({reflectToAttribute:!0,computed:"computeisTapOnOfferInfoContainerEnabled(data)"}),_.Y("design:type",Boolean)],$$.prototype,"isTapOnOfferInfoContainerEnabled",void 0);_.T([_.O(),_.Y("design:type",Object)],$$.prototype,"isExpanded",void 0);_.T([_.O(),_.Y("design:type",Object)],$$.prototype,"data",void 0);_.T([_.O({computed:"computeIcon_(data.footerIcon)"}),_.Y("design:type",String)],$$.prototype,"icon",void 0);
_.T([_.Cz("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],$$.prototype,"dataChanged",null);_.T([_.a("data.thumbnail"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],$$.prototype,"hasThumbnail",null);_.T([_.a("showMoreButtonTitle","showLessButtonTitle","data.styleType","data.benefits"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],$$.prototype,"enableExpandButton",null);
_.T([_.a("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],$$.prototype,"enableOfferContentIcon",null);_.T([_.a("data.showMoreButtonRenderer","data.showMoreButtonTitle"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],$$.prototype,"showMoreButtonTitle",null);_.T([_.a("data.showMoreButtonRenderer","data.showLessButtonTitle"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],$$.prototype,"showLessButtonTitle",null);
_.T([_.a("isExpanded","showMoreButtonRenderer","showLessButtonTitle"),_.Y("design:type",String),_.Y("design:paramtypes",[])],$$.prototype,"expandedBtnText",null);_.T([_.a("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],$$.prototype,"enableBottomBar",null);$$=_.T([_.y({disableElementRegistration:!0,is:"ytd-offer-card-renderer"})],$$);
_.r($$,"ytd-offer-card-renderer",function(){if(Si6!==void 0)return Si6;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offer-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="offer-card style-scope ytd-offer-card-renderer" id="offer-card">\n  \n  <div class="top-banner style-scope ytd-offer-card-renderer" id="top-banner" hidden="[[!data.topBannerImage]]">\n    <yt-img-shadow class="top-banner-image style-scope ytd-offer-card-renderer" object-fit="COVER" thumbnail="[[data.topBannerImage]]">\n    </yt-img-shadow>\n  </div>\n  <div class="offer-info style-scope ytd-offer-card-renderer" id="offer-info" on-click="onOfferInfoClick">\n    \n    <div class="thumbnail style-scope ytd-offer-card-renderer" id="thumbnail" hidden="[[!hasThumbnail]]"></div>\n    <div class="description-section style-scope ytd-offer-card-renderer">\n      <div class="text style-scope ytd-offer-card-renderer">\n        <yt-formatted-string class="title style-scope ytd-offer-card-renderer" text="[[data.title]]">\n        </yt-formatted-string>\n        <yt-formatted-string class="description style-scope ytd-offer-card-renderer" split-lines="true" text="[[data.description]]">\n        </yt-formatted-string>\n      </div>\n      <button class="expand-button style-scope ytd-offer-card-renderer" id="expand-button" hidden="[[!enableExpandButton]]" on-click="onExpandBtnClick" aria-label="[[expandedBtnText]]">\n        <span class="style-scope ytd-offer-card-renderer">[[expandedBtnText]]</span>\n      </button>\n      <div class="offer-content-icon-div style-scope ytd-offer-card-renderer" id="offer-content-icon-div" hidden="[[!enableOfferContentIcon]]">\n        <yt-icon id="offer-content-icon" class="offer-content-icon style-scope ytd-offer-card-renderer" icon="[[icon]]">\n        </yt-icon>\n      </div>\n    </div>\n    \n    <div class="benefits style-scope ytd-offer-card-renderer" id="benefits" hidden="[[!isExpanded]]">\n      <template is="dom-repeat" items="[[data.benefits]]" as="benefit" class="style-scope ytd-offer-card-renderer">\n        <ytd-bullet-formatted-string class="benefit style-scope ytd-offer-card-renderer" data="[[benefit]]" small-size="true">\n        </ytd-bullet-formatted-string>\n      </template>\n    </div>\n  </div>\n  \n  <button class="bottom-bar style-scope ytd-offer-card-renderer" id="bottom-bar" hidden="[[!enableBottomBar]]" on-click="onBottomBarClick" aria-label="[[data.footerTitle]]">\n    <div class="bottom-bar-info style-scope ytd-offer-card-renderer">\n      <yt-formatted-string class="bottom-bar-title style-scope ytd-offer-card-renderer" text="[[data.footerTitle]]"></yt-formatted-string>\n      <yt-formatted-string class="bottom-bar-subtitle style-scope ytd-offer-card-renderer" text="[[data.footerSubtitle]]"></yt-formatted-string>\n    </div>\n    <yt-icon class="icon style-scope ytd-offer-card-renderer" icon="[[icon]]"></yt-icon>\n  </button>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return Si6=F},{mode:1});var pXw;var Zf=function(){return _.n.apply(this,arguments)||this};
_.k(Zf,_.n);Zf.prototype.configureRendererStamper=function(){return{data:{id:"thumbnail",mapping:{thumbnail:{component:"yt-img-shadow",properties:{thumbnail:"[[data.thumbnail]]"}}}},"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
Zf.prototype.onClick=function(F){if(!_.Sc(F.composedPath()||[],this.hostElement,["A".toString()])){var W,E;if((F=(E=_.D((W=this.data)==null?void 0:W.actionButton,_.jt))==null?void 0:E.command)&&!this.ytComponentBehavior.resolveCommand(F)){var h;(h=_.z4())==null||h.clickCommand(F);_.WZ().resolve(_.EJ).resolveCommand(F,{form:{element:this.hostElement}})}}};
_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],Zf.prototype,"ytComponentBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Zf.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],Zf.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],Zf.prototype,"data",void 0);Zf=_.T([_.y({disableElementRegistration:!0,is:"ytd-offer-content-renderer"})],Zf);
_.r(Zf,"ytd-offer-content-renderer",function(){if(pXw!==void 0)return pXw;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offer-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="offer-info style-scope ytd-offer-content-renderer">\n  <div class="offer-content style-scope ytd-offer-content-renderer" id="offer-content" on-click="onClick">\n    <div id="thumbnail" class="style-scope ytd-offer-content-renderer"></div>\n    <div class="text style-scope ytd-offer-content-renderer">\n      <yt-formatted-string class="title style-scope ytd-offer-content-renderer" text="[[data.title]]">\n      </yt-formatted-string>\n      <yt-formatted-string class="description style-scope ytd-offer-content-renderer" split-lines="true" text="[[data.description]]">\n      </yt-formatted-string>\n    </div>\n  </div>\n  <div id="action-button" class="style-scope ytd-offer-content-renderer"></div>\n</div>\n<div class="benefits style-scope ytd-offer-content-renderer">\n  <template is="dom-repeat" items="[[data.benefits]]" as="benefit" class="style-scope ytd-offer-content-renderer">\n    <ytd-bullet-formatted-string class="benefit style-scope ytd-offer-content-renderer" data="[[benefit]]">\n    </ytd-bullet-formatted-string>\n  </template>\n</div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return pXw=F},{mode:1});var m6q;var XZ=function(){return _.n.apply(this,arguments)||this};
_.k(XZ,_.n);XZ.prototype.configureRendererStamper=function(){return{"data.offerList":{id:"offer-list",mapping:{offerContentRenderer:{component:"ytd-offer-content-renderer"},offerCardRenderer:{component:"ytd-offer-card-renderer"}}}}};
_.Sn.Object.defineProperties(XZ.prototype,{hasHeaderData:{configurable:!0,enumerable:!0,get:function(){var F,W;return!((F=this.data)==null||!F.title)||!((W=this.data)==null||!W.description)}}});
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],XZ.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],XZ.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],XZ.prototype,"data",void 0);_.T([_.a("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],XZ.prototype,"hasHeaderData",null);XZ=_.T([_.y({disableElementRegistration:!0,is:"ytd-offer-section-renderer"})],XZ);
_.r(XZ,"ytd-offer-section-renderer",function(){if(m6q!==void 0)return m6q;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offer-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="heading style-scope ytd-offer-section-renderer" hidden="[[!hasHeaderData]]">\n  <yt-formatted-string class="title style-scope ytd-offer-section-renderer" text="[[data.title]]">\n  </yt-formatted-string>\n  <yt-formatted-string class="description style-scope ytd-offer-section-renderer" split-lines="" text="[[data.description]]">\n  </yt-formatted-string>\n</div>\n<div id="offer-list" class="style-scope ytd-offer-section-renderer"></div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return m6q=F},{mode:1});var K66;var HA=function(){return _.n.apply(this,arguments)||this};
_.k(HA,_.n);
HA.prototype.configureRendererStamper=function(){return{"data.masthead":{id:"masthead",mapping:{billboardMastheadRenderer:"ytd-billboard-masthead-renderer",channelMastheadRenderer:"ytd-channel-masthead-renderer",mediaProductRenderer:{component:"ytd-media-product-renderer",params:{isMasthead:!0}}}},"data.body":{id:"body",mapping:{offerSectionRenderer:{component:"ytd-offer-section-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}},"data.coupon":{id:"coupon-section",mapping:{cardItemRenderer:{component:"yt-card-item-renderer"}}},"data.terms":{id:"terms-section",
mapping:{offerSectionRenderer:{component:"ytd-offer-section-renderer"}}}}};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],HA.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],HA.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],HA.prototype,"data",void 0);HA=_.T([_.y({disableElementRegistration:!0,is:"ytd-offer-selection-step-renderer"})],HA);
_.r(HA,"ytd-offer-selection-step-renderer",function(){if(K66!==void 0)return K66;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offer-selection-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="masthead" class="style-scope ytd-offer-selection-step-renderer"></div>\n<div id="body" class="style-scope ytd-offer-selection-step-renderer"></div>\n<div id="coupon-section" class="style-scope ytd-offer-selection-step-renderer"></div>\n<div id="terms-section" class="style-scope ytd-offer-selection-step-renderer"></div>');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return K66=F},{mode:1});var F06;var PA=function(){return _.n.apply(this,arguments)||this};
_.k(PA,_.n);PA.prototype.computeStyle=function(F){return F};
PA.prototype.computeImageWidth=function(F){return F==="CONFIRMATION_MASTHEAD_RENDERER_STYLE_WIDE"?150:90};
_.T([_.O({reflectToAttribute:!0,value:"CONFIRMATION_MASTHEAD_RENDERER_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.Y("design:type",String)],PA.prototype,"containerStyle",void 0);_.T([_.O({reflectToAttribute:!0,value:90,computed:"computeImageWidth(data.style)"}),_.Y("design:type",String)],PA.prototype,"imageWidth",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],PA.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],PA.prototype,"data",void 0);
PA=_.T([_.y({disableElementRegistration:!0,is:"ytd-confirmation-masthead-renderer"})],PA);
_.r(PA,"ytd-confirmation-masthead-renderer",function(){if(F06!==void 0)return F06;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-confirmation-masthead-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow class="thumbnail style-scope ytd-confirmation-masthead-renderer" thumbnail="[[data.thumbnail]]" width="[[imageWidth]]"></yt-img-shadow>\n<yt-icon class="entitlement-icon style-scope ytd-confirmation-masthead-renderer" hidden="[[!data.entitlementIcon.iconType]]" icon="[[data.entitlementIcon.iconType]]">\n</yt-icon>\n\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return F06=F},{mode:1});var W0u;var Ju=function(){return _.n.apply(this,arguments)||this};
_.k(Ju,_.n);Ju.prototype.computeStyle=function(F){return F};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Ju.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],Ju.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0,value:"PURCHASE_COMPLETE_DETAIL_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.Y("design:type",String)],Ju.prototype,"containerStyle",void 0);Ju=_.T([_.y({disableElementRegistration:!0,is:"ytd-purchase-complete-detail-renderer"})],Ju);
_.r(Ju,"ytd-purchase-complete-detail-renderer",function(){if(W0u!==void 0)return W0u;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-purchase-complete-detail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" items="[[data.description]]" as="description" class="style-scope ytd-purchase-complete-detail-renderer">\n    <yt-formatted-string class="description style-scope ytd-purchase-complete-detail-renderer" split-lines="true" text="[[description]]">\n    </yt-formatted-string>\n</template>\n<template is="dom-repeat" items="[[data.benefits]]" as="benefit" class="style-scope ytd-purchase-complete-detail-renderer">\n    <ytd-bullet-formatted-string class="benefit style-scope ytd-purchase-complete-detail-renderer" data="[[benefit]]">\n    </ytd-bullet-formatted-string>\n</template>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return W0u=F},{mode:1});var EF8;var aM=function(){var F=_.n.apply(this,arguments)||this;F.scriptsAppended=!1;return F};
_.k(aM,_.n);aM.prototype.configureRendererStamper=function(){return{"data.masthead":{id:"masthead",mapping:{confirmationMastheadRenderer:"ytd-confirmation-masthead-renderer"}},"data.body":{id:"body",mapping:{purchaseCompleteDetailRenderer:"ytd-purchase-complete-detail-renderer"}}}};
aM.prototype.onDataChanged=function(){var F=this.get("data.gtmId");F&&(_.xE(F,_.b0("GL","")),this.setupConversionTracking())};
aM.prototype.setupConversionTracking=function(){if(!this.scriptsAppended){var F=document.createElement("noscript");F.textContent='<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-5KBDVVN" height="0" width="0" style="display:none;visibility:hidden"></iframe>';document.body.prepend(F);this.scriptsAppended=!0}};
aM.prototype.onDataChanged=aM.prototype.onDataChanged;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],aM.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],aM.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],aM.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Object)],aM.prototype,"scriptsAppended",void 0);
_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],aM.prototype,"onDataChanged",null);aM=_.T([_.y({disableElementRegistration:!0,is:"ytd-purchase-complete-step-renderer"})],aM);
_.r(aM,"ytd-purchase-complete-step-renderer",function(){if(EF8!==void 0)return EF8;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-purchase-complete-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="masthead" class="style-scope ytd-purchase-complete-step-renderer"></div>\n<div id="body" class="style-scope ytd-purchase-complete-step-renderer"></div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return EF8=F},{mode:1});var haq;var fA=function(){var F=_.n.apply(this,arguments)||this;F.darkerDarkTheme=_.c("web_darker_dark_theme");return F};
_.k(fA,_.n);fA.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],fA.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],fA.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],fA.prototype,"darkerDarkTheme",void 0);fA=_.T([_.y({disableElementRegistration:!0,is:"ytd-ypc-transaction-error-message-renderer"})],fA);
_.r(fA,"ytd-ypc-transaction-error-message-renderer",function(){if(haq!==void 0)return haq;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ypc-transaction-error-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div class="error-messages style-scope ytd-ypc-transaction-error-message-renderer">\n  <template is="dom-repeat" items="[[data.errorMessages]]" as="message" class="style-scope ytd-ypc-transaction-error-message-renderer">\n    <yt-formatted-string text="[[message]]" class="style-scope ytd-ypc-transaction-error-message-renderer"></yt-formatted-string>\n  </template>\n</div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return haq=F},{mode:1});var dOx;var NoO;var OS=function(){var F=_.n.apply(this,arguments)||this;F.handlePhoneVerificationSuccess=function(W){if(F.isValidPhoneVerificationCompletionMessageEvent(W)){var E;((E=F.data)==null?0:E.nextStepCommand)&&F.ytComponentBehavior.resolveCommand(F.data.nextStepCommand)}};
return F};
_.k(OS,_.n);OS.prototype.isValidPhoneVerificationCompletionMessageEvent=function(F){if(F.data!=="yt-phone-verification-complete")return!1;F=_.Su(F.origin);return F!==null&&F.includes("youtube.com")};
OS.prototype.attached=function(){window.addEventListener("message",this.handlePhoneVerificationSuccess)};
OS.prototype.detached=function(){window.removeEventListener("message",this.handlePhoneVerificationSuccess)};
_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],OS.prototype,"ytComponentBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],OS.prototype,"data",void 0);OS=_.T([_.$3({is:"yt-feature-enablement-soft-entry-renderer",disableElementRegistration:!0})],OS);
_.r(OS,"yt-feature-enablement-soft-entry-renderer",function(){if(NoO===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-feature-enablement-soft-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.feature_enablement.yt_feature_enablement_soft_entry_renderer.yt.feature.enablement.soft.entry.renderer.css.js--\x3e<div id="contents" class="style-scope yt-feature-enablement-soft-entry-renderer">\n  <yt-img-shadow id="image" fit="" hidden="[[!data.image]]" thumbnail="[[data.image]]" width="160" class="style-scope yt-feature-enablement-soft-entry-renderer">\n  </yt-img-shadow>\n  <yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope yt-feature-enablement-soft-entry-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string id="description" hidden="[[!data.description]]" split-lines="" text="[[data.description]]" class="style-scope yt-feature-enablement-soft-entry-renderer">\n  </yt-formatted-string>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;dOx===void 0&&(dOx=document.createElement("template"));var h=dOx;E.call(W,h.content.cloneNode(!0),F.content.firstChild);NoO=F}F=NoO;return F},{mode:1});var Vu8;var UOP;var Rag;var ea$;var bc=function(){return _.n.apply(this,arguments)||this};
_.k(bc,_.n);_.T([_.O(),_.Y("design:type",Object)],bc.prototype,"data",void 0);bc=_.T([_.$3({is:"yt-benefits-item-renderer",disableElementRegistration:!0})],bc);
_.r(bc,"yt-benefits-item-renderer",function(){if(ea$===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-benefits-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_benefits_item_renderer.yt.benefits.item.renderer.css.js--\x3e<div id="benefits-item" class="style-scope yt-benefits-item-renderer"><yt-formatted-string id="benefits-item-title" class="lhs style-scope yt-benefits-item-renderer" text="[[data.title]]"></yt-formatted-string><yt-formatted-string id="benefits-item-info-text" class="rhs style-scope yt-benefits-item-renderer" hidden="[[!data.text]]" text="[[data.text]]"></yt-formatted-string><yt-button-renderer id="benefits-item-info-button" class="rhs style-scope yt-benefits-item-renderer" data="[[data.button.buttonRenderer]]" hidden="[[!data.button.buttonRenderer]]"></yt-button-renderer></div>');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;Rag===void 0&&(Rag=document.createElement("template"));var h=Rag;E.call(W,h.content.cloneNode(!0),F.content.firstChild);ea$=F}F=ea$;return F},{mode:2});var MuO;var gFu;var lc=function(){return _.n.apply(this,arguments)||this};
_.k(lc,_.n);lc.prototype.configureRendererStamper=function(){return{"data.items":{id:"benefits-items",mapping:{benefitsItemRenderer:{component:"yt-benefits-item-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
lc.prototype.computeisWithoutPadding=function(){var F;return((F=this.data)==null?void 0:F.benefitsSectionStyle)==="BENEFITS_SECTION_RENDERER_STYLE_NO_MARGIN"};
_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],lc.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],lc.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0,computed:"computeisWithoutPadding(data)"}),_.Y("design:type",Boolean)],lc.prototype,"isWithoutPadding",void 0);lc=_.T([_.$3({is:"yt-benefits-section-renderer",disableElementRegistration:!0})],lc);
_.r(lc,"yt-benefits-section-renderer",function(){if(gFu===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-benefits-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_benefits_section_renderer.yt.benefits.section.renderer.css.js--\x3e<div id="benefits-section" is-without-padding$="[[isWithoutPadding]]" class="style-scope yt-benefits-section-renderer"><div id="benefits-header" hidden$="[[!data.header]]" class="style-scope yt-benefits-section-renderer"><yt-formatted-string id="benefits-header-text" split-lines="1" text="[[data.header]]" class="style-scope yt-benefits-section-renderer"></yt-formatted-string><div hidden="[[!data.tooltip]]" class="style-scope yt-benefits-section-renderer"><yt-icon id="tooltip-icon" icon="yt-icons:info-outline" class="style-scope yt-benefits-section-renderer"></yt-icon><tp-yt-paper-tooltip id="tooltip" always-display="" class="style-scope yt-benefits-section-renderer"><yt-formatted-string split-lines="1" text="[[data.tooltip]]" class="style-scope yt-benefits-section-renderer"></yt-formatted-string></tp-yt-paper-tooltip></div></div><div id="benefits-items" class="style-scope yt-benefits-section-renderer"></div></div>');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);var W=F.content,E=W.insertBefore;MuO===void 0&&(MuO=document.createElement("template"));var h=MuO;E.call(W,h.content.cloneNode(!0),F.content.firstChild);gFu=F}F=gFu;return F},{mode:2});var nA=function(){return _.n.apply(this,arguments)||this};
_.k(nA,_.n);nA.prototype.configureRendererStamper=function(){return{"data.benefitsSections":{id:"benefits-sections",mapping:{benefitsSectionRenderer:{component:"yt-benefits-section-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
nA.prototype.computeisUsingLargeWidth=function(){var F;return((F=this.data)==null?void 0:F.widthType)==="BENEFITS_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],nA.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],nA.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0,computed:"computeisUsingLargeWidth(data)"}),_.Y("design:type",Boolean)],nA.prototype,"isUsingLargeWidth",void 0);nA=_.T([_.$3({is:"yt-benefits-flow-step-renderer",disableElementRegistration:!0})],nA);
_.r(nA,"yt-benefits-flow-step-renderer",function(){if(UOP===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-benefits-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_benefits_flow_step_renderer.yt.benefits.flow.step.renderer.css.js--\x3e<div id="header-container" class="style-scope yt-benefits-flow-step-renderer"><yt-img-shadow id="avatar" height="72" hidden$="[[!data.avatar]]" thumbnail="[[data.avatar]]" width="72" class="style-scope yt-benefits-flow-step-renderer"></yt-img-shadow><div id="header-content" class="style-scope yt-benefits-flow-step-renderer"><yt-formatted-string id="subtitle-text" hidden$="[[!data.subtitleText]]" split-lines="1" text="[[data.subtitleText]]" class="style-scope yt-benefits-flow-step-renderer"></yt-formatted-string><yt-formatted-string id="title-text" hidden$="[[!data.titleText]]" split-lines="1" text="[[data.titleText]]" class="style-scope yt-benefits-flow-step-renderer"></yt-formatted-string></div></div><div id="benefits-sections" class="style-scope yt-benefits-flow-step-renderer"></div>');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);var W=F.content,E=W.insertBefore;Vu8===void 0&&(Vu8=document.createElement("template"));var h=Vu8;E.call(W,h.content.cloneNode(!0),F.content.firstChild);UOP=F}F=UOP;return F},{mode:2});var QW6;var zaP;var y2=function(){return _.n.apply(this,arguments)||this};
_.k(y2,_.n);y2.prototype.checkIsUsingLargeWidth=function(){var F;return((F=this.data)==null?void 0:F.widthType)==="CONFIRMATION_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.T([_.O(),_.Y("design:type",Object)],y2.prototype,"data",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],y2.prototype,"ytRendererBehavior",void 0);_.T([_.O({reflectToAttribute:!0,computed:"checkIsUsingLargeWidth(data)"}),_.Y("design:type",Boolean)],y2.prototype,"isUsingLargeWidth",void 0);y2=_.T([_.$3({is:"yt-confirmation-flow-step-renderer",disableElementRegistration:!0})],y2);
_.r(y2,"yt-confirmation-flow-step-renderer",function(){if(zaP===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-confirmation-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_confirmation_flow_step_renderer.yt.confirmation.flow.step.renderer.css.js--\x3e<div id="thumbnail-container" class="style-scope yt-confirmation-flow-step-renderer"><yt-img-shadow id="thumbnail" height="209" thumbnail="[[data.image]]" width="209" class="style-scope yt-confirmation-flow-step-renderer"></yt-img-shadow></div><div id="title-container" class="style-scope yt-confirmation-flow-step-renderer"><yt-formatted-string id="title" split-lines="1" text="[[data.titleText]]" class="style-scope yt-confirmation-flow-step-renderer"></yt-formatted-string></div><div id="subtitle-container" class="style-scope yt-confirmation-flow-step-renderer"><yt-formatted-string id="subtitle" split-lines="1" text="[[data.subtitleText]]" class="style-scope yt-confirmation-flow-step-renderer"></yt-formatted-string></div>');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);var W=F.content,E=W.insertBefore;QW6===void 0&&(QW6=document.createElement("template"));var h=QW6;E.call(W,h.content.cloneNode(!0),F.content.firstChild);zaP=F}F=zaP;return F},{mode:2});var tuu;var C0K;var jv=function(){return _.n.apply(this,arguments)||this};
_.k(jv,_.n);_.T([_.O(),_.Y("design:type",Object)],jv.prototype,"data",void 0);jv=_.T([_.$3({is:"yt-info-flow-step-renderer",disableElementRegistration:!0})],jv);
_.r(jv,"yt-info-flow-step-renderer",function(){if(C0K===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-info-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_info_flow_step_renderer.yt.info.flow.step.renderer.css.js--\x3e<div id="title-container" class="style-scope yt-info-flow-step-renderer"><yt-formatted-string id="title" split-lines="1" text="[[data.titleText]]" class="style-scope yt-info-flow-step-renderer"></yt-formatted-string></div><div id="subtitle-text-container" class="style-scope yt-info-flow-step-renderer"><yt-formatted-string id="subtitle-text" split-lines="1" text="[[data.subtitleText]]" class="style-scope yt-info-flow-step-renderer"></yt-formatted-string></div>');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;tuu===void 0&&(tuu=document.createElement("template"));var h=tuu;E.call(W,h.content.cloneNode(!0),F.content.firstChild);C0K=F}F=C0K;return F},{mode:2});var BoN;var vF6;var ic=function(){return _.n.apply(this,arguments)||this};
_.k(ic,_.n);_.T([_.O(),_.Y("design:type",Object)],ic.prototype,"data",void 0);ic=_.T([_.$3({is:"yt-info-list-flow-step-renderer",disableElementRegistration:!0})],ic);
_.r(ic,"yt-info-list-flow-step-renderer",function(){if(vF6===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-info-list-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_info_list_flow_step_renderer.yt.info.list.flow.step.renderer.css.js--\x3e<div id="title-container" class="style-scope yt-info-list-flow-step-renderer"><yt-formatted-string id="title" split-lines="1" text="[[data.titleText]]" class="style-scope yt-info-list-flow-step-renderer"></yt-formatted-string></div><div id="info-list-header-container" class="style-scope yt-info-list-flow-step-renderer"><yt-formatted-string id="info-list-header" force-default-style="" split-lines="1" text="[[data.infoListHeader]]" class="style-scope yt-info-list-flow-step-renderer"></yt-formatted-string></div><div id="info-items-container" class="style-scope yt-info-list-flow-step-renderer"><template is="dom-repeat" items="[[data.infoItems]]" as="item" class="style-scope yt-info-list-flow-step-renderer"><div id="info-list-item" class="style-scope yt-info-list-flow-step-renderer"><yt-icon id="info-icon" icon="[[item.icon.iconType]]" class="style-scope yt-info-list-flow-step-renderer"></yt-icon><yt-formatted-string id="info-text" split-lines="1" text="[[item.text]]" class="style-scope yt-info-list-flow-step-renderer"></yt-formatted-string></div></template></div><div id="description-text-container" class="style-scope yt-info-list-flow-step-renderer"><yt-formatted-string id="description-text" split-lines="1" text="[[data.descriptionText]]" class="style-scope yt-info-list-flow-step-renderer"></yt-formatted-string></div>');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;BoN===void 0&&(BoN=document.createElement("template"));var h=BoN;E.call(W,h.content.cloneNode(!0),F.content.firstChild);vF6=F}F=vF6;return F},{mode:2});var I4g=_.GK(function(F){var W=F.data;return _.z("styled-text-view-model",{class:_.ec("ytStyledTextViewModelHost",function(){return nd6(W().fontAttributes)},function(){return lyK(W().color)})},_.z(_.Ab,{text:function(){return W().text},
ariaLabel:function(){var E,h,d;return(d=(E=W().accessibility)==null?void 0:(h=E.accessibilityData)==null?void 0:h.label)!=null?d:""}}))},"Re");
I4g.idomCompat=!0;var c8g=_.GK(function(F){var W=function(){var d,V,R,M;return(M=(R=(d=F.alt)==null?void 0:d.call(F))!=null?R:(V=F.data().accessibilityData)==null?void 0:V.label)!=null?M:""},E=function(){return F.data().imageWidth},h=function(){return F.data().imageHeight};
return _.z("themed-image-view-model",{class:"ytThemedImageViewModelHost"},_.z(_.v,{cond:function(){var d=F.data();if(d){var V,R,M;var g=((V=_.WZ().resolve(_.Fd(_.nK)))==null?0:V())?(R=d.imageDark)!=null?R:d.imageLight:(M=d.imageLight)!=null?M:d.imageDark}else g=void 0;return g},
then:function(d){return _.z(_.T4,Object.assign({},F,{data:d,alt:W,targetWidth:E,targetHeight:h,preserveHeight:!0,preserveWidth:!0}))}}))},"Se");
c8g.idomCompat=!0;var r0=_.GK(function(F){var W=F.data;F=_.TK(function(){return W().slots},[]);
var E=_.TK(function(){return W().layoutProperties},{}),h=_.WZ().resolve(_.ji);
return _.z("container-layout-view-model",{class:"ytContainerLayoutViewModelHost",style:JNK(E,h)},_.z(_.xF,{each:F,keyBy:"INDEX"},function(d){return _.z("div",{class:"ytContainerLayoutViewModelSlot",style:JNK(function(){return d().layoutProperties},h)},_.z(_.a6,{data:function(){return d().contents}},{containerLayoutViewModel:r0,
badgeViewModel:_.pp,buttonViewModel:_.rk,styledTextViewModel:I4g,contentPreviewImageViewModel:function(V){return _.z(_.mO,{data:V.data,className:"ytContainerLayoutViewModelImage"})},
themedImageViewModel:function(V){return _.z(c8g,{data:V.data,preserveWidth:!0,preserveHeight:!0})}}))}))},"Te");
r0.idomCompat=!0;var DOF=_.GK(function(F){var W=F.data;var E=F.stateFns;var h=function(){var t=W(),C=t.productId;return!(!t.clearGroupId&&!C)},d=function(){var t=W(),C=t.clearGroupId;
return(t=t.productId)?E().isProductSelected(t):C?E().getSelectedProductByGroupId(C)==null:!1},V=function(){var t=W(),C=t.clearGroupId;
if(t=t.productId)E().onProductSelected(t);else if(C)E().onClearGroupSelected(C)},R=function(){var t=W(),C=t.clearGroupId;
if(t=t.productId){var B;return"group:"+(((B=E().getProductById(t))==null?void 0:B.groupId)||"")}return C?"group:"+C:""},M=_.TK(function(){return W().header},[]),g=_.TK(function(){return W().body},[]);
return _.z("pdp-card-section-view-model",{class:"ytPdpCardSectionViewModelHost"},_.z(_.v,{cond:function(){return M().length>0||h()},
then:function(){return _.z("label",{class:"ytPdpCardSectionViewModelHeaderSection"},_.z("div",{class:"ytPdpCardSectionViewModelHeaderContent"},_.z(_.a6,{data:M},{containerLayoutViewModel:function(t){return _.z("div",{class:"ytPdpCardSectionViewModelContentItem"},_.z(r0,{data:t.data}))},
styledTextViewModel:function(t){return _.z("div",{class:"ytPdpCardSectionViewModelContentItem"},_.z(I4g,{data:t.data}))}})),_.z(_.v,{cond:h,
then:function(){return _.z("div",{class:"ytPdpCardSectionViewModelHeaderRadioContainer"},_.z(_.q7,{checked:d,name:R,onChange:V}))}}))}}),_.z(_.v,{cond:function(){return g().length>0},
then:function(){return _.z("div",null,_.z(_.a6,{data:g},{containerLayoutViewModel:function(t){return _.z("div",{class:"ytPdpCardSectionViewModelContentItem"},_.z(r0,{data:t.data}))}}))}}))},"Ue");
DOF.idomCompat=!0;var xOP=_.GK(function(F){var W=F.data;var E=F.stateFns;return _.z("pdp-card-view-model",{class:"ytPdpCardViewModelHost"},_.z(_.v,{cond:function(){return W().banner},
then:function(h){return _.z("div",{class:"ytPdpCardViewModelBanner"},_.z(_.Ab,{text:h}))}}),_.z(_.a6,{data:function(){return W().sections}},{pdpCardSectionViewModel:function(h){h=h.data;
var d={};return _.z("div",{class:_.ec("ytPdpCardViewModelSectionContainer",(d.ytPdpCardViewModelShowDividers=function(){return W().showDividers},d))},_.z(DOF,{data:h,
stateFns:E}))}}))},"Ve");
xOP.idomCompat=!0;var kkq=_.GK(function(F){var W=F.data;var E=F.isOverlay;F={};return _.z("pdp-masthead-view-model",{class:_.ec("ytPdpMastheadViewModelHost",(F.ytPdpMastheadViewModelIsOverlay=E,F))},_.z(_.a6,{data:function(){return W().image}},{contentPreviewImageViewModel:_.mO,
themedImageViewModel:function(h){return _.z(c8g,{data:h.data,alt:"",className:"ytPdpMastheadViewModelImage"})}}),_.z(_.v,{cond:function(){return W().title},
then:function(h){return _.z("h1",{class:"ytPdpMastheadViewModelHeading"},_.z(_.Ab,{text:h,isOverlay:E}))}}),_.z(_.xF,{each:function(){var h;
return(h=W().finePrint)!=null?h:[]}},function(h){return _.z("div",{class:"ytPdpMastheadViewModelFinePrint"},_.z(_.Ab,{text:h,
isOverlay:E}))}))},"We");
kkq.idomCompat=!0;var A8$=_.GK(function(F){var W=F.data;var E=F.stateFns;return _.z("pdp-pricing-option-selector-view-model",{class:"ytPdpPricingOptionSelectorViewModelHost"},_.z(_.xF,{each:function(){var h=E().getSelectedPricingOptions().map(function(V){return V.pricingOptionId}),d=E().getSelectedProductByGroupId(W().groupId);
return d?d.pricingOptions.map(function(V){return{pricingOption:V,isSelected:h.includes(V.pricingOptionId)}}):(_.fn(Error("Gj`"+W().groupId)),[])},
keyBy:"INDEX"},function(h){return _.z("label",{class:"ytPdpPricingOptionSelectorViewModelOption"},_.z("div",{class:"ytPdpPricingOptionSelectorViewModelOptionContent"},_.z(_.a6,{data:function(){return h().pricingOption.pricingOptionSelectorOption}},{containerLayoutViewModel:r0})),_.z("div",{class:"ytPdpPricingOptionSelectorViewModelOptionRadio"},_.z(_.q7,{checked:function(){return h().isSelected},
onClick:function(){E().onPricingOptionSelected(h().pricingOption.pricingOptionId);var d=h().pricingOption.onSelectPricingOption;if(d=_.He(d)){var V;(V=_.WZ().resolve(_.EJ))==null||V.resolveCommand(d)}}})))}))},"Xe");
A8$.idomCompat=!0;var sW8=_.GK(function(F){var W=F.data;var E=F.stateFns;return _.z("pdp-primary-button-view-model",{class:"ytPdpPrimaryButtonViewModelHost"},_.z(_.a6,{data:function(){var h,d;return(d=(h=E().getSelectedPricingOptions()[0])==null?void 0:h.primaryButton)!=null?d:W().emptyStateButton}},{buttonViewModel:_.rk}))},"Ye");
sW8.idomCompat=!0;var L0P=_.GK(function(F){var W=F.stateFns;return _.z("pdp-summary-view-model",{class:"ytPdpSummaryViewModelHost"},_.z(_.a6,{data:function(){return W().getSelectedPricingOptions().flatMap(function(E){return E.summaryLines}).filter(function(E){return!!E})}},{containerLayoutViewModel:function(E){return _.z("div",{class:"ytPdpSummaryViewModelLineItem"},_.z(r0,{data:E.data}))}}))},"Ze");
L0P.idomCompat=!0;var qG$=_.GK(function(F){function W(P){var b=R();_.rQ(_.lJ("pdpStateEntity",b,{key:b,selectedPricingOptions:P}))}
var E=F.data;var h=F.internalScrolling;var d=F.stateFnsForTesting;var V=_.TK(function(){return E().allProducts},[]),R=_.TK(function(){return E().pdpStateEntityKey},""),M=_.D1(yN$,R),g=_.vX(function(){_.XO(!0);
var P;return(P=d==null?void 0:d())!=null?P:Ypq(M,V,W)},void 0,"POBqwe"),t=_.TK(function(){return E().body},[]),C=_.TK(function(){return E().columnBreakHints},[]),B=function(){return E().backgroundMode==="PDP_BACKGROUND_MODE_FORCE_DARK"},I=function(){return B()||E().backgroundMode==="PDP_BACKGROUND_MODE_DARK"},x=_.vX(function(){var P=_.d9(E().background),b;
if(P==null?0:(b=P.sources)==null?0:b.length){var l=l===void 0?!0:l;P=_.LIn(void 0,P.sources,void 0,l,l?1E3:void 0,l?void 0:1E3)}else P=null;return P},void 0,"BkCmEd");
F=_.vr({"--pdp-view-model-background":function(){return x()?"url("+x()+")":void 0}});
var A={};h=_.ec("ytPdpViewModelHost",(A.ytPdpViewModelHasBackground=function(){return I()||!!x()},A.ytPdpViewModelHasDarkBackground=I,A.ytPdpViewModelHasScrim=B,A.ytPdpViewModelInternalScrolling=_.TK(h,!1),A));
var X=function(P){var b={};return _.ec("ytPdpViewModelItem",(b.ytPdpViewModelFullBleed=function(){return _.vXo(P())==="dividerViewModel"||_.vXo(P())==="sectionHeaderViewModel"},b.ytPdpViewModelNoVerticalPadding=function(){return _.vXo(P())==="sectionHeaderViewModel"},b))};
_.Xk(function(){var P=E().onStartCommand;if(P&&(P=_.He(P))){var b;(b=_.WZ().resolve(_.EJ))==null||b.resolveCommand(P)}});
return _.z("pdp-view-model",{class:h,style:F},_.z("div",{class:"ytPdpViewModelColumnContainer"},_.z(_.xF,{each:function(){return wE6(t(),C())},
keyBy:"INDEX"},function(P){return _.z("div",{class:"ytPdpViewModelColumn"},_.z(_.a6,{data:P},{containerLayoutViewModel:function(b,l){b=b.data;return _.z("div",{class:X(function(){return P()[l()]})},_.z(r0,{data:b}))},
dividerViewModel:function(b,l){b=b.data;return _.z("div",{class:X(function(){return P()[l()]})},_.z(_.aXi,{data:b}))},
pdpCardViewModel:function(b,l){b=b.data;return _.z("div",{class:X(function(){return P()[l()]})},_.z(xOP,{data:b,
stateFns:g}))},
pdpMastheadViewModel:function(b,l){b=b.data;return _.z("div",{class:X(function(){return P()[l()]})},_.z(kkq,{data:b,
isOverlay:I}))},
pdpPricingOptionSelectorViewModel:function(b,l){b=b.data;return _.z("div",{class:X(function(){return P()[l()]})},_.z(A8$,{data:b,
stateFns:g}))},
pdpPrimaryButtonViewModel:function(b,l){b=b.data;return _.z("div",{class:X(function(){return P()[l()]})},_.z(sW8,{data:b,
stateFns:g}))},
pdpSummaryViewModel:function(b,l){b=b.data;return _.z("div",{class:X(function(){return P()[l()]})},_.z(L0P,{data:b,
stateFns:g}))},
sectionHeaderViewModel:function(b,l){b=b.data;return _.z("div",{class:X(function(){return P()[l()]})},_.z(_.N7,{data:b}))}}))})))},"$e");
qG$.idomCompat=!0;_.pK(qG$,"pdp-view-model",{props:{data:_.TS,stateFnsForTesting:_.Si,internalScrolling:_.Si}});var $OT=_.GK(function(F){var W=F.data;var E=F.className;var h=_.D1(_.MB,function(){return W().flowStateEntityKey});
return _.z("ytm-premium-purchase-button-renderer",{class:_.ec("yt-premium-purchase-button-renderer",E)},_.z(_.a6,{data:function(){var d;return(d=_.D(h(),NZ))==null?void 0:d.primaryButtonOverride}},{buttonRenderer:function(d){return _.z(_.yb,{data:d.data,
className:E})},
buttonViewModel:function(d){return _.z(_.rk,{data:d.data,className:E})}}))},"af");
$OT.idomCompat=!0;var ZWg=_.GK(function(F){var W=F.data;var E=function(){return un$(W().style)},h=_.ec("yt-flow-bottom-bar-renderer__flow-bottom-bar-primary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",E),d=_.ec("yt-flow-bottom-bar-renderer__flow-bottom-bar-secondary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",E);
return _.z("yt-flow-bottom-bar-renderer",{class:_.ec("yt-flow-bottom-bar-renderer",F.className,E)},_.z(_.a6,{data:function(){return W().secondaryButton}},{buttonRenderer:function(V){return _.z(_.yb,{data:V.data,
className:d})},
buttonViewModel:function(V){return _.z(_.rk,{data:V.data,className:d})},
premiumPurchaseButtonRenderer:function(V){return _.z($OT,{data:V.data,className:d})}}),_.z(_.a6,{data:function(){return W().primaryButton}},{buttonRenderer:function(V){return _.z(_.yb,{data:V.data,
className:h})},
buttonViewModel:function(V){return _.z(_.rk,{data:V.data,className:h})},
premiumPurchaseButtonRenderer:function(V){return _.z($OT,{data:V.data,className:h})}}))},"bf");
ZWg.idomCompat=!0;_.pK(ZWg,"yt-flow-bottom-bar-renderer",{props:{data:_.TS,className:_.TS}});var XQK=_.GK(function(F){return _.z("yt-offer-summary-renderer",{class:_.ec(F.className,"ytOfferSummaryRendererHost")},_.z("div",{class:"ytOfferSummaryRendererTextContainer"},_.z("div",{class:"ytOfferSummaryRendererEyebrowText"},_.z(_.Ab,{text:function(){return F.data().eyebrowText}})),_.z("div",{class:"ytOfferSummaryRendererTitle"},_.z(_.Ab,{text:function(){return F.data().title}})),_.z("div",{class:"ytOfferSummaryRendererSubtitle"},_.z(_.Ab,{text:function(){return F.data().subtitle}})),_.z("div",
{class:"ytOfferSummaryRendererFeatureListData"},_.z(_.xF,{each:function(){var W;
return(W=F.data().featureListData)!=null?W:[]}},function(W){var E;
return _.z("div",{class:"ytOfferSummaryRendererFeatureList"},_.z(_.I3,{icon:(E=W.icon)==null?void 0:E.iconType,className:W.style==="BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT"?"ytOfferSummaryRendererFeatureListIconGreen":"ytOfferSummaryRendererFeatureListIconDefault"}),_.z("div",{class:"ytOfferSummaryRendererFeatureListText"},_.z(_.Ab,{text:W.text})))})),_.z("div",{class:"ytOfferSummaryRendererDescription"},_.z(_.Ab,{text:function(){return F.data().description}}))))},"cf");_.pK(_.GK(function(F){var W={};W=_.ec("ytOfferSummaryFlowStepRendererHost",(W.ytOfferSummaryFlowStepRendererDisableHeaderTopMargin=F.shouldDisableHeaderTopMargin,W));return _.z("yt-offer-summary-flow-step-renderer",{id:"yt-offer-summary-flow-step-renderer",class:W},_.z("div",{class:"ytOfferSummaryFlowStepRendererHeaderContainer ytOfferSummaryFlowStepRendererChild"},_.z("div",{class:"ytOfferSummaryFlowStepRendererHeader"},_.z(_.Ab,{text:function(){return F.data().header}})),_.z("div",{class:"ytOfferSummaryFlowStepRendererSubtitle"},
_.z(_.Ab,{text:function(){return F.data().subtitle}}))),_.z("div",{class:"ytOfferSummaryFlowStepRendererChild"},_.z(_.a6,{data:function(){return F.data().offerSummary}},{offerSummaryRenderer:function(E){return _.z(XQK,{data:E.data,
className:F.flowClassName})}})))},"df"),"yt-offer-summary-flow-step-renderer",{props:{data:_.Si,
flowClassName:_.Si,flowStateEntityKey:_.Si,shouldDisableHeaderTopMargin:_.Si}});var HWN=_.GK(function(F){var W=F.data;var E=F.className;var h=F.flowStateEntityKey;var d=F.selectionStepStyle;F=_.tb(function(g){var t=W(),C=h==null?void 0:h();g.target&&(g.stopPropagation(),g=C||"",C=_.MB(_.ja().getState(),g),t=Object.assign({},C,{premiumPurchaseFlowState:{selectedOptionId:t.optionId,primaryButtonOverride:t.primaryButtonOverride}}),_.ja().dispatch(_.AG("flowStateEntity",g,t)));return!1});
var V=function(){return(h==null?void 0:h())||""},R=_.D1(_.MB,V);
_.Xk(function(){var g=W(),t=V(),C=R();!_.D(C,NZ)&&g.defaultSelected&&t!==""&&g.primaryButtonOverride&&Spx(g.optionId||"",t,g.primaryButtonOverride,C)});
var M={};return _.z("ytm-option-item-renderer",{"on:click":F,class:_.ec(E,"ytm-option-item-renderer",(M["ytm-option-item-renderer--lp2-style"]=function(){return(d==null?void 0:d())==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},M))},_.z("div",{class:"ytm-option-item-renderer__option-item-radio-container"},_.z("input",{type:"radio",
class:"ytm-option-item-renderer__option-item-radio-button","prop:checked":function(){var g=W(),t=V(),C=R();C=_.D(C,NZ);return(C?(C==null?void 0:C.selectedOptionId)||"":g.defaultSelected&&t!==""?(g==null?void 0:g.optionId)||"":"")===W().optionId},
name:("input"+_.n3(_.sx)).toString()})),_.z("div",{class:"ytm-option-item-renderer__option-item-text-container"},_.z(_.v,{cond:function(){return W().eyebrowText},
then:function(){return _.z("div",{class:"ytm-option-item-renderer__option-item-eyebrow-text"},_.z(_.Ab,{text:function(){return W().eyebrowText}}))}}),_.z("div",{class:"ytm-option-item-renderer__option-item-title"},_.z(_.Ab,{text:function(){return W().title}})),_.z("div",{class:"ytm-option-item-renderer__option-item-subtitle"},_.z(_.Ab,{text:function(){return W().subtitle}})),_.z("div",{class:"ytm-option-item-renderer__option-item-description"},_.z(_.Ab,{text:function(){return W().description}}))))},
"ef");var P0N=_.GK(function(F){var W=F.data;var E=F.flowClassName;var h=F.flowStateEntityKey;var d=F.selectionStepStyle;return _.z("yt-option-section-renderer",{id:"yt-option-section-renderer",class:"yt-option-section-renderer"},_.z("div",{class:"yt-option-section-renderer__option-section-header-section"},_.z("div",{class:"yt-option-section-renderer__option-section-header"},_.z(_.Ab,{text:function(){return W().title}}),_.z(_.a6,{data:function(){return W().titleBadge}},{badgeViewModel:function(V){return _.z(_.pp,
{data:V.data,
class:"yt-option-section-renderer__option-section-title-badge"})}})),_.z(_.v,{cond:function(){return W().subtitle},
then:function(){return _.z("div",{class:"yt-option-section-renderer__option-section-subtitle"},_.z(_.Ab,{text:function(){return W().subtitle}}))}}),_.z(_.v,{cond:function(){return W().featureListData},
then:function(V){return _.z("div",{class:"yt-option-section-renderer__option-section-feature-list"},_.z(_.xF,{each:V},function(R){var M;return _.z("div",{class:"yt-option-section-renderer__option-section-feature-item"},_.z(_.I3,{icon:(M=R.icon)==null?void 0:M.iconType,className:R.style==="BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT"?"yt-option-section-renderer__option-section-feature-item-icon-green":"yt-option-section-renderer__option-section-feature-item-icon-default"}),_.z("div",
{class:"yt-option-section-renderer__option-section-feature-item-text"},_.z(_.Ab,{text:R.text})))}))}}),_.z(_.xF,{each:function(){return W().sectionDisclaimers||[]}},function(V){return _.z("div",{class:"yt-option-section-renderer__option-section-disclaimer"},_.z(_.Ab,{text:V}))})),_.z(_.a6,{data:function(){return W().optionItems}},{optionItemRenderer:function(V){return _.z("div",{class:"yt-option-section-renderer__option-item"},_.z(HWN,{data:V.data,
className:E,flowStateEntityKey:h,selectionStepStyle:d}))}}),_.z(_.v,{cond:function(){return W().offerText},
then:function(){return _.z("div",{class:"yt-option-section-renderer__option-section-offer-text"},_.z(_.Ab,{text:function(){return W().offerText}}))}}))},"ff");
P0N.idomCompat=!0;var J8x=_.GK(function(F){var W=F.data;var E=F.flowClassName;var h=F.flowStateEntityKey;F=F.isDesktop;var d=function(){var t;return(t=W().flowStateEntityKey)!=null?t:h==null?void 0:h()},V=function(){return(d==null?void 0:d())||""},R=function(){return W().style},M=_.D1(_.MB,V);
_.Xk(function(){var t=W(),C=V(),B=M();!_.D(B,NZ)&&t.noPreselect&&C!==""&&t.defaultButtonOverride&&Spx("default",C,t.defaultButtonOverride,B)});
var g={};return _.z("yt-option-selection-flow-step-renderer",{id:"yt-option-selection-flow-step-renderer",class:_.ec("ytm-option-selection-flow-step-renderer",(g["ytm-option-selection-flow-step-renderer--desktop"]=F,g["ytm-option-selection-flow-step-renderer--lp2-style"]=function(){return W().style==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},g))},_.z("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-header-container ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},
_.z("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-header"},_.z(_.Ab,{text:function(){return W().header}})),_.z("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-subtitle"},_.z(_.Ab,{text:function(){return W().subtitle}}))),_.z(_.a6,{data:function(){return W().optionItems||[]}},{optionItemRenderer:function(t){return _.z("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.z(HWN,{data:t.data,
className:E,flowStateEntityKey:d,selectionStepStyle:R}))},
optionSectionRenderer:function(t){return _.z("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.z(P0N,{data:t.data,flowClassName:E,flowStateEntityKey:d,selectionStepStyle:R}))}}))},"gf");
J8x.idomCompat=!0;_.pK(J8x,"yt-option-selection-flow-step-renderer",{props:{data:_.TS,flowClassName:_.TS,flowStateEntityKey:_.TS,isDesktop:_.TS}});var pEO,mpx;_.TP=_.GK(function(F){var W=_.o4(F,{type:1,disablePadding:!1,disablePrimaryButton:!1}),E=W.data,h=W.type;F=W.disablePadding;var d=W.disablePrimaryButton,V=W.onClickPrimaryButton,R=function(){return E().stacking==="PANEL_FOOTER_STACKING_VERTICAL"},M=function(){return{disabled:d(),
state:d()?"disabled":"active"}},g=function(){return E().leadingLabel||E().trailingLabel};
W={};return _.z("yt-panel-footer-view-model",{class:_.ec("yt-panel-footer-view-model-wiz",(W["yt-panel-footer-view-model-wiz--hide-divider"]=function(){return E().shouldHideDivider},W["yt-panel-footer-view-model-wiz--disable-padding"]=F,W))},_.z(_.v,{cond:g,
then:function(){var t={},C={};return _.z("div",{class:_.ec("yt-panel-footer-view-model-wiz__text-row",(t["yt-panel-footer-view-model-wiz--row-bottom-padding"]=function(){var B=E();return!(!B.leadingLabel&&!B.trailingLabel||!B.primaryButton&&!B.secondaryButton)},t))},_.z(_.Ab,{text:function(){return E().leadingLabel},
className:_.ec((C["yt-panel-footer-view-model-wiz--text-padding"]=g,C))}),_.z(_.Ab,{text:function(){return E().trailingLabel}}))}}),_.z(_.v,{cond:R,
then:function(){var t={};return _.z("div",{class:"yt-panel-footer-view-model-wiz__button-stack"},_.z("div",{class:_.ec("yt-panel-footer-view-model-wiz__primary-button",(t["yt-panel-footer-view-model-wiz__button-stack--top-button"]=function(){return E().secondaryButton},t))},_.z(_.a6,{data:function(){return E().primaryButton}},{buttonViewModel:function(C){return _.z(_.rk,{data:C.data,
buttonOverrides:M,onClick:V})}})),_.z(_.a6,{data:function(){return E().secondaryButton}},{buttonViewModel:_.rk}))}}),_.z(_.v,{cond:function(){return!R()},
then:function(){var t={},C={},B={};return _.z("div",{class:_.ec("yt-panel-footer-view-model-wiz__button-row",(t["yt-panel-footer-view-model-wiz__button-row--trailing"]=function(){return 3===h()},t))},_.z("div",{class:_.ec("yt-panel-footer-view-model-wiz__button-row--left-button",(C["yt-panel-footer-view-model-wiz__button-row--full-width"]=function(){return 1===h()},C["yt-panel-footer-view-model-wiz__button-row--hidden"]=function(){return!E().secondaryButton||0===h()},C["yt-panel-footer-view-model-wiz__button-row--shrink"]=
function(){return 2===h()},C))},_.z(_.a6,{data:function(){return E().secondaryButton}},{buttonViewModel:_.rk})),_.z("div",{class:_.ec("yt-panel-footer-view-model-wiz__primary-button",(B["yt-panel-footer-view-model-wiz__button-row--full-width"]=function(){return 0===h()||1===h()},B["yt-panel-footer-view-model-wiz__button-row--expand"]=function(){return 2===h()},B))},_.z(_.a6,{data:function(){return E().primaryButton}},{buttonViewModel:function(I){return _.z(_.rk,{data:I.data,
buttonOverrides:M,onClick:V})}})))}}))},"hf");
_.TP.idomCompat=!0;_.a4x=_.GK(function(F){F=_.o4(F,{disablePadding:!1});var W=F.data,E=F.disablePadding;F=_.EjT(function(){return W().formId});
var h=F.onSubmit,d=F.isValid,V=F.isSubmitting;return _.z("yt-form-footer-view-model",{class:"ytFormFooterViewModelHost"},_.z(_.a6,{data:function(){return W().panelFooter}},{panelFooterViewModel:function(R){return _.z(_.TP,{data:R.data,
onClickPrimaryButton:function(){h()},
disablePrimaryButton:function(){return!d()||V()},
disablePadding:E})}}))},"jf");_.pK(_.a4x,"yt-form-footer-view-model",{props:{data:_.TS,disablePadding:_.TS}});_.pK(_.GK(function(F){return _.z("yt-contributor-zero-state-view-model",{class:"ytContributorZeroStateViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 132px);"},_.z("div",{class:"ytContributorZeroStateViewModelCenterAlignedContent"},_.z(_.v,{cond:function(){var W;return(W=F.data())==null?void 0:W.image},
then:function(W){return _.z(_.T4,{data:W,alt:"",className:"ytContributorZeroStateViewModelCenterAlignedContentImage"})}}),_.z("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentTitle"},_.z(_.Ab,{text:function(){var W;
return(W=F.data())==null?void 0:W.title}})),_.z("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentSubtitle"},_.z(_.Ab,{text:function(){var W;
return(W=F.data())==null?void 0:W.subtitle}})),_.z("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentButton"},_.z(_.a6,{data:function(){var W;
return(W=F.data())==null?void 0:W.viewTipsButton}},{buttonViewModel:_.rk}))))},"kf"),"yt-contributor-zero-state-view-model",{props:{data:_.TS}});var f4K=_.GK(function(F){var W=_.D1(hAF,_.TK(function(){var E;return(E=F.data())==null?void 0:E.noteFeedEntityKey},""));
return _.z("yt-note-view-model",{class:"ytNoteViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 136px);"},_.z("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.z("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.z(_.v,{cond:function(){var E,h;return(E=F.data())==null?void 0:(h=E.noteData)==null?void 0:h.isPinned},
then:function(){return _.z(_.I3,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIconPin"})}}),_.z(_.Ab,{text:function(){var E,h;
return(E=F.data())==null?void 0:(h=E.noteData)==null?void 0:h.headerText}}),_.z("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataDelimiter"},_.z(_.Ab,{text:function(){var E,h;
return(E=F.data())==null?void 0:(h=E.noteData)==null?void 0:h.delimiter}})),_.z(_.Ab,{text:function(){var E,h;
return(E=W())==null?void 0:(h=E.contributorNote)==null?void 0:h.publishedTimeText}})),_.z(_.a6,{data:function(){var E,h,d,V=(E=F.data())==null?void 0:E.noteData;
E=(h=W())==null?void 0:(d=h.contributorNote)==null?void 0:d.deleteAction;return{buttonViewModel:{style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TEXT",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_XSMALL",iconName:"MORE_VERT",accessibilityText:V.deleteActionText,onTap:{innertubeCommand:{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:V.deleteActionText},leadingImage:{sources:[{clientResource:{imageName:"TRASH_CAN"}}]},
rendererContext:{commandContext:{onTap:{innertubeCommand:{confirmDialogEndpoint:{content:{confirmDialogRenderer:{title:{runs:[{text:V.deleteDialogTitle}]},dialogMessages:[{runs:[{text:V.deleteDialogSubtitle}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:V.deleteActionText}]},command:{performCommentActionEndpoint:{action:E}}}},cancelButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:V.cancelActionText}]},command:{dismissDialogCommand:{}}}}}}}}}}}}}]}}}}}}}}}}}},
{buttonViewModel:function(E){return _.z(_.rk,{data:E.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})),_.z("div",{class:"ytNoteViewModelNoteContent"},_.z(_.Ab,{text:function(){var E,h;
return(E=W())==null?void 0:(h=E.contributorNote)==null?void 0:h.text}})))},"lf");
f4K.idomCompat=!0;_.pK(f4K,"yt-note-view-model",{props:{data:_.TS}});var oM=_.GK(function(F){var W=_.o4(F,{label:"",text:"",placeholder:"",hint:"",rows:1,overflowStyle:"scroll-vertically",outline:!1,disabled:!1,disableNewLines:!1,characterLimit:void 0,validation:void 0}),E=W.label,h=W.text,d=W.placeholder,V=W.hint;F=W.rows;var R=W.overflowStyle,M=W.outline,g=W.disabled,t=W.disableNewLines,C=W.characterLimit,B=W.validation,I=W.onInput,x=_.uf();W=_.U(_.Br(function(){return h()}));
var A=W.next().value,X=W.next().value;W=_.U(_.g$(!1,void 0,"fXvinf"));var P=W.next().value,b=W.next().value,l=function(){b(!0)},w=function(){b(!1)};
_.Xk(function(){var nb=x.value,bo=R(),uo=A();bo==="expand-vertically"&&uo&&dTK(nb);x.value.addEventListener("focusin",l);x.value.addEventListener("focusout",w)});
_.$p(function(){x.value.removeEventListener("focusin",l);x.value.removeEventListener("focusout",w)});
var G=function(){var nb;return(nb=B())==null?void 0:nb.validate(A())},hr=function(){return C()&&!G()&&A().length>C().maxChars},p=function(){return!!G()||hr()};
W=_.tb(function(nb){if(!nb.currentTarget)return!1;nb=nb.currentTarget;X(nb.value);R()==="expand-vertically"&&dTK(nb);I==null||I(nb.value);return!0});
var UY=_.tb(function(nb){t()&&nb.key==="Enter"&&nb.preventDefault();return!1}),xW=_.tb(function(){x.value.focus()}),qw=function(){return d()||E()},Lb={},jk={},Jr={};
return _.z("textarea-shape",{class:"ytStandardsTextareaShapeHost"},_.z("div",{class:_.ec("ytStandardsTextareaShapeTextareaContainer",(Lb.ytStandardsTextareaShapeTextareaContainerOutline=M,Lb.ytStandardsTextareaShapeTextareaContainerOutlineDisabled=g,Lb.ytStandardsTextareaShapeTextareaContainerOutlineError=p,Lb)),"on:click":xW},_.z("label",{class:_.ec("ytStandardsTextareaShapeLabel",(jk.ytStandardsTextareaShapeLabelFocused=P,jk.ytStandardsTextareaShapeLabelDisabled=g,jk.ytStandardsTextareaShapeLabelError=
function(){return p()&&!g()},jk.ytStandardsTextareaShapeLabelHidden=function(){return!P()&&!A()&&!!qw()},jk))},E),_.z("div",{class:_.ec("ytStandardsTextareaShapePlaceholder",(Jr.ytStandardsTextareaShapePlaceholderVisible=function(){return!P()&&!A()},Jr)),
"aria-hidden":"true"},qw),_.z("textarea",{el:x,class:"ytStandardsTextareaShapeTextarea",rows:F,disabled:g,placeholder:qw,"on:input":W,"on:keydown":UY},A)),_.z(_.v,{cond:function(){return V()&&!p()},
then:function(){var nb={};return _.z("div",{class:_.ec("ytStandardsTextareaShapeHint",(nb.ytStandardsTextareaShapeHintDisabled=g,nb))},_.z("div",{class:"ytStandardsTextareaShapeHintHintMessage"},V))}}),_.z(_.v,{cond:G,
then:function(){return _.z(OWN,{disabled:g},_.z("div",{class:"ytStandardsTextareaShapeErrorMessage"},G))}}),_.z(_.v,{cond:C,
then:function(nb){return _.z(_.v,{cond:hr,then:function(){return _.z(OWN,{disabled:g},_.z("div",{class:"ytStandardsTextareaShapeErrorMessage"},function(){return nb().errorMessage}),_.z("div",{class:"ytStandardsTextareaShapeErrorCharacterCount"},function(){return A().length+"/"+nb().maxChars}))}})}}))},"mf");
oM.idomCompat={callbacks:{onInput:!0}};var OWN=_.GK(function(F){var W={};return _.z("div",{class:_.ec("ytStandardsTextareaShapeError",(W.ytStandardsTextareaShapeErrorDisabled=F.disabled,W)),role:"alert"},_.z(_.I3,{icon:"INFO",className:"ytStandardsTextareaShapeErrorIcon",size:16}),F.children)},"nf");_.bWT=_.GK(function(F){var W=F.data;return _.z("text-field-view-model",{class:"ytTextFieldViewModelHost"},_.z(oM,{text:F.text,label:function(){var E;return(E=W().contentProperties)==null?void 0:E.labelText},
placeholder:function(){var E;return(E=W().contentProperties)==null?void 0:E.placeholderText},
hint:function(){var E;return(E=W().contentProperties)==null?void 0:E.hintText},
outline:function(){var E;return!((E=W().displayProperties)==null?0:E.hideBorder)},
overflowStyle:function(){var E;return((E=W().displayProperties)==null?0:E.isMultiline)?"expand-vertically":"scroll-vertically"},
disabled:F.disabled,disableNewLines:function(){var E;return(E=W().displayProperties)==null?void 0:E.disableNewLines},
onInput:F.onInput,characterLimit:F.characterLimit,validation:F.validation,rows:function(){var E;return(E=W().displayProperties)==null?void 0:E.rows}}))},"of");_.l4x=_.GK(function(F){var W=F.data;return _.z("text-form-field-view-model",{class:"ytTextFormFieldViewModelHost"},_.z(oM,{text:F.text,label:function(){var E;return(E=W().contentProperties)==null?void 0:E.labelText},
placeholder:function(){var E;return(E=W().contentProperties)==null?void 0:E.placeholderText},
hint:function(){var E;return(E=W().contentProperties)==null?void 0:E.hintText},
outline:function(){var E;return!((E=W().displayProperties)==null?0:E.hideBorder)},
overflowStyle:function(){var E;return((E=W().displayProperties)==null?0:E.isMultiline)?"expand-vertically":"scroll-vertically"},
disableNewLines:function(){var E;return(E=W().displayProperties)==null?void 0:E.disableNewLines},
onInput:F.onInput,characterLimit:F.characterLimit,validation:F.validation,rows:function(){var E;return(E=W().displayProperties)==null?void 0:E.rows}}))},"pf");var nFg=_.GK(function(F){var W=_.U(_.Br(function(){var qw,Lb;return((qw=F.data().structuredContextNoteFormSchema)==null?0:(Lb=qw.initialValues)==null?0:Lb.noteBody)?F.data().structuredContextNoteFormSchema.initialValues.noteBody:""})),E=W.next().value,h=W.next().value;
W=_.U(_.Br(function(){F.data();return!1}));
var d=W.next().value,V=W.next().value;W=_.U(_.Br(function(){F.data();return!1}));
var R=W.next().value,M=W.next().value;W=_.U(_.Br(function(){var qw,Lb;return((qw=F.data().structuredContextNoteFormSchema)==null?0:(Lb=qw.initialValues)==null?0:Lb.timestamp)?F.data().structuredContextNoteFormSchema.initialValues.timestamp:""}));
var g=W.next().value,t=W.next().value;W=_.U(_.Br(function(){F.data();return!1}));
var C=W.next().value,B=W.next().value;W=_.U(_.Br(function(){var qw,Lb;return((qw=F.data().structuredContextNoteFormSchema)==null?0:(Lb=qw.initialValues)==null?0:Lb.sources)?[F.data().structuredContextNoteFormSchema.initialValues.sources]:[]}));
var I=W.next().value,x=W.next().value;W=_.U(_.Br(function(){F.data();return!1}));
var A=W.next().value,X=W.next().value;W=_.U(_.Br(function(){return!1}));
var P=W.next().value,b=W.next().value;_.Xk(function(){var qw;_.WjT((qw=F.data().structuredContextNoteFormSchema)==null?void 0:qw.id,{isSubmitting:P,onSubmit:function(){b(!0);var Lb=zAK(E(),g(),I(),F.data()),jk=_.WZ().resolve(_.EJ);Lb&&jk&&jk.resolveCommand(Lb,{commandController:{onSuccess:function(){b(!1)}}})},
isValid:function(){return d()&&!R()&&!C()&&!A()}})});
var l=function(qw){if(qw!==void 0&&(h(qw),!d()&&qw.length>0&&V(!0),d())){var Lb=UTq(F.data());if(Lb){var jk=Lb.minLength;Lb=Lb.maxLength;jk&&qw.length<jk?M(!0):Lb&&qw.length>Lb?M(!0):M(!1)}}},w=function(qw){if(qw!==void 0){t(qw);
if(qw.length>0){var Lb,jk,Jr,nb,bo=eAT((Lb=F.data())==null?void 0:(jk=Lb.structuredContextNoteFormSchema)==null?void 0:(Jr=jk.fieldSchemas)==null?void 0:(nb=Jr.timestamp)==null?void 0:nb.validationSchema);if(bo&&(Lb=bo.regex)&&!(new RegExp(Lb)).test(qw)){B(!0);return}}B(!1)}},G=function(qw){if(qw!==void 0){var Lb=qw.split(/[ \n]/).map(function(jk){return jk.trim()});
x(Lb);if(qw.length>0)for(qw=_.U(Lb),Lb=qw.next();!Lb.done;Lb=qw.next())if(!QT6(Lb.value)){X(!0);return}X(!1)}},hr=function(){return{validate:function(qw){if(d()){var Lb=UTq(F.data());
if(Lb){var jk=Lb.minLength;Lb=Lb.translations;if(jk&&qw.length<jk)return Lb==null?void 0:Lb.minLengthErrorMessage}}}}},p=function(){var qw=UTq(F.data()),Lb=qw==null?void 0:qw.maxLength,jk;
qw=qw==null?void 0:(jk=qw.translations)==null?void 0:jk.maxLengthErrorMessage;if(Lb&&qw)return{maxChars:Lb,errorMessage:qw}},UY=function(){return{validate:function(qw){if(qw){var Lb,jk,Jr,nb,bo=eAT((Lb=F.data())==null?void 0:(jk=Lb.structuredContextNoteFormSchema)==null?void 0:(Jr=jk.fieldSchemas)==null?void 0:(nb=Jr.timestamp)==null?void 0:nb.validationSchema);
if(bo&&(Lb=bo.regex,bo=bo.translations,Lb&&!(new RegExp(Lb)).test(qw)))return bo==null?void 0:bo.regexErrorMessage}}}},xW=function(){return{validate:function(qw){if(qw){var Lb,jk,Jr,nb,bo=gju((Lb=F.data())==null?void 0:(jk=Lb.structuredContextNoteFormSchema)==null?void 0:(Jr=jk.fieldSchemas)==null?void 0:(nb=Jr.sources)==null?void 0:nb.validationSchema);
if(bo&&(Lb=bo.translations,Lb==null?0:Lb.selectedErrorMessage))for(qw=qw.split(/[ \n]/).map(function(uo){return uo.trim()}),qw=_.U(qw),jk=qw.next();!jk.done;jk=qw.next())if(!QT6(jk.value))return qw=void 0,(qw=Lb)==null?void 0:qw.selectedErrorMessage}}}};
return _.z("yt-structured-context-note-view-model",{class:"ytStructuredContextNoteViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 209px);"},_.z("div",{class:"ytStructuredContextNoteViewModelTextField"},_.z(_.a6,{data:function(){var qw;return(qw=F.data())==null?void 0:qw.noteContents}},{textFormFieldViewModel:function(qw){return _.z(_.l4x,{data:qw.data,
onInput:l,validation:hr,characterLimit:p})},
textFieldViewModel:function(qw){return _.z(_.bWT,{data:qw.data,onInput:l,validation:hr,characterLimit:p})}})),_.z("div",{class:"ytStructuredContextNoteViewModelTextField"},_.z(_.a6,{data:function(){var qw;
return(qw=F.data())==null?void 0:qw.noteTimestamp}},{textFormFieldViewModel:function(qw){return _.z(_.l4x,{data:qw.data,
onInput:w,validation:UY})},
textFieldViewModel:function(qw){return _.z(_.bWT,{data:qw.data,onInput:w,validation:UY})}})),_.z("div",{class:"ytStructuredContextNoteViewModelTextField"},_.z(_.a6,{data:function(){var qw;
return(qw=F.data())==null?void 0:qw.noteSources}},{textFormFieldViewModel:function(qw){return _.z(_.l4x,{data:qw.data,
onInput:G,validation:xW})},
textFieldViewModel:function(qw){return _.z(_.bWT,{data:qw.data,onInput:G,validation:xW})}})))},"qf");
nFg.idomCompat=!0;_.pK(nFg,"yt-structured-context-note-view-model",{props:{data:_.TS}});var y8q=_.GK(function(F){var W=_.U(_.Br(function(){var V;if((V=F.controlled)==null?0:V.call(F))return[];var R;return(((R=F.data())==null?void 0:R.chips)||[]).map(function(M){M=_.D(M,_.oH);if(M==null?0:M.selected)return tSK(M.chipValue)}).filter(function(M){return M!==void 0})})),E=W.next().value,h=W.next().value,d=function(V){var R=tSK(V.chipValue);
if(R!==void 0){var M;if((M=F.controlled)==null?0:M.call(F))return void F.controlled().onTap(R);V=E().includes(R)?[].concat(_.x9(E().filter(function(t){return t!==R}))):[].concat(_.x9(E()),[R]);
h(V);var g;if((g=F.uncontrolled)==null?0:g.call(F))F.uncontrolled().onUpdate(V)}};
return _.z("chip-selection-form-field-view-model",{class:"ytChipSelectionFormFieldViewModelHost"},_.z(_.xF,{each:function(){return F.data().chips||[]}},function(V){return _.z("div",{class:"ytChipSelectionFormFieldViewModelChipWrapper"},_.z(_.PW_,{data:function(){return _.D(V,_.oH)},
selected:function(){var R;if(R=_.D(V,_.oH)){var M=tSK(R.chipValue);if(M!==void 0){var g;R=((g=F.controlled)==null?0:g.call(F))?F.controlled().selectedValues.includes(M):E().includes(M)}else R=void 0}else R=!1;return R},
callback:d}))}))},"rf");var jWg=_.GK(function(F){var W=F.data;var E=function(){var M;return((M=W())==null?void 0:M.flowStateKey)||""},h=_.D1(_.MB,E),d=function(){var M;
return(M=_.D(h(),eF$))==null?void 0:M.chips},V=function(M){if(M!==void 0){var g=d()||[];
g=g.find(function(t){return t===M})?g.filter(function(t){return t!==M}):[].concat(_.x9(g),[M]);
g=Object.assign({},h(),{feedbackFormFlowState:Object.assign({},_.D(h(),eF$),{chips:g})});_.rQ(_.AG("flowStateEntity",E(),g))}},R=function(){var M;
return _.D((M=W())==null?void 0:M.inputBox,Me$)};
F=_.qS(function(M){var g=R();g=!(g==null?0:g.maxChars)||M.length<=g.maxChars;M=Object.assign({},h(),{feedbackFormFlowState:Object.assign({},_.D(h(),eF$),{detail:M}),abuseReportFlowState:Object.assign({},_.D(h(),RM),{navigationEnabled:g})});_.rQ(_.AG("flowStateEntity",E(),M))},150);
return _.z("yt-feedback-form-view-model",{class:"ytFeedbackFormViewModelHost"},_.z("div",{class:"ytFeedbackFormViewModelChips"},_.z(_.a6,{data:function(){var M;return(M=W())==null?void 0:M.chipSelection}},{chipSelectionFormFieldViewModel:function(M){return _.z(y8q,{data:M.data,
controlled:function(){return{selectedValues:d()||[],onTap:V}}})}})),_.z("div",{class:"ytFeedbackFormViewModelInputBox"},_.z(oM,{text:function(){var M;
return(M=_.D(h(),eF$))==null?void 0:M.detail},
placeholder:function(){var M;return((M=R())==null?void 0:M.placeholderText)||""},
outline:!0,rows:4,characterLimit:function(){var M=R();if(M&&M.maxChars)return{maxChars:M.maxChars,errorMessage:M.maxCharsExceededErrorMessage||""}},
onInput:F})),_.z("div",{class:"ytFeedbackFormViewModelFooterText"},_.z(_.Ab,{text:function(){return W().footerText}})))},"sf");
jWg.idomCompat=!0;_.pK(jWg,"yt-feedback-form-view-model",{props:{data:_.TS}});var iWg=_.GK(function(F){var W=F.data;var E=function(){return W().flowStateKey||""},h=_.D1(Qlq,E),d=function(){return _.D(h(),RM)},V=function(){if(_.c("enable_gff_accessibility_fix")){var R=!0,M;
if((M=d())==null?0:M.navigationEnabled){var g;_.fK((g=d())==null?void 0:g.navigationCommand);R=!1}M=Object.assign({},h(),{abuseReportFlowState:Object.assign({},d(),{isReportFormDirty:R})});_.rQ(_.AG("flowStateEntity",E(),M))}else _.fK((R=d())==null?void 0:R.navigationCommand)};
return _.z("yt-report-form-bottom-bar-view-model",{class:"ytWebReportFormBottomBarViewModelHost"},_.z("div",{class:"ytWebReportFormBottomBarViewModelBottomBarContainer"},_.z(_.a6,{data:function(){return W().cancelButton}},{buttonViewModel:function(R){return _.z(_.rk,{data:R.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:V})}}),_.z(_.a6,{data:function(){var R;
if(W().navButton){var M=Object;var g=M.assign,t=_.D(W().navButton,_.fx),C=((R=d())==null?0:R.navigationEnabled)||_.c("enable_gff_accessibility_fix")?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",B,I;R=_.D((B=d())==null?void 0:B.navigationCommand,_.XP);B=(I=_.D(R,_.T5))==null?void 0:I.url;M={buttonViewModel:g.call(M,{},t,{state:C,iconName:B?"OPEN_IN_NEW":""})}}else M=void 0;return M}},{buttonViewModel:function(R){return _.z(_.rk,{data:R.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:V})}})))},"tf");
iWg.idomCompat=!0;_.pK(iWg,"yt-report-form-bottom-bar-view-model",{props:{data:_.TS}});var r8N=_.GK(function(F){var W=F.nextStep;return _.z("div",{class:"ytWebReportFormConfirmationPageViewModelRow"},_.z("div",{class:"ytWebReportFormConfirmationPageViewModelIcon","aria-hidden":"true"},_.z(_.I3,{icon:function(){return W().iconName||""}})),_.z("div",null,_.z(_.Ab,{text:function(){return W().text},
className:"ytWebReportFormConfirmationPageViewModelNextStepText"})))},"uf"),ToP=_.GK(function(F){var W=F.data;
var E,h=(E=_.WZ().resolve(_.Fd(_.nK)))==null?void 0:E(),d=_.D1(_.MB,function(){return W().flowStateKey||""});
return _.z("yt-report-form-confirmation-page-view-model",{class:function(){var V;return((V=_.D(d(),RM))==null?void 0:V.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelHostDialog":"ytWebReportFormConfirmationPageViewModelHostPanel"}},_.z("div",{class:function(){var V;
return((V=_.D(d(),RM))==null?void 0:V.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelImageDialog":"ytWebReportFormConfirmationPageViewModelImagePanel"}},_.z(_.T4,{data:function(){return h&&W().imageDark?W().imageDark:W().image},
alt:"",targetHeight:115,targetWidth:178,preserveHeight:!0,preserveWidth:!0})),_.z("div",{class:"ytWebReportFormConfirmationPageViewModelConfirmationContainer"},_.z("h1",{class:"ytWebReportFormConfirmationPageViewModelHeader"},function(){return W().confirmationHeader}),_.z("div",{class:"ytWebReportFormConfirmationPageViewModelBody"},_.z(_.Ab,{text:function(){return W().confirmationText}})),_.z("div",{class:"ytWebReportFormConfirmationPageViewModelLawEnforcementText"},_.z(_.Ab,{text:function(){return W().lawEnforcementText}})),
_.z("h1",{class:"ytWebReportFormConfirmationPageViewModelExpectHeader"},function(){return W().whatToExpectHeader}),_.z(_.v,{cond:function(){return W().nextSteps},
then:function(V){return _.z("div",null,_.z(_.xF,{each:V},function(R){return _.z(r8N,{nextStep:R})}))}}),_.z(_.v,{cond:function(){return W().legalReportText},
then:function(V){return _.z("div",null,_.z(_.Ab,{text:V,className:"ytWebReportFormConfirmationPageViewModelLegalText"}))}})))},"vf");
ToP.idomCompat=!0;_.pK(ToP,"yt-report-form-confirmation-page-view-model",{props:{data:_.TS}});var oFT=_.GK(function(F){var W=F.data;var E=function(){var V;return((V=_.D(W().inputBox,Me$))==null?void 0:V.maxChars)||500},h=function(){return W().flowStateKey||""},d=_.D1(_.MB,h);
F=_.qS(function(V){V=Object.assign({},d(),{flowFormState:{isValid:V.length<=E()},abuseReportFlowState:{userComments:V,navigationEnabled:!(V.length>E()),isReportFormDirty:!0}});_.ja().dispatch(_.lJ("flowStateEntity",h(),V))},150);
_.Xk(function(){var V=Object.assign({},d(),{flowFormState:{isValid:!0}});_.ja().dispatch(_.lJ("flowStateEntity",h(),V))});
return _.z("yt-report-form-details-page-view-model",{class:function(){var V;return((V=_.D(d(),RM))==null?void 0:V.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHostDialog":"ytWebReportFormDetailsPageViewModelHostPanel"}},_.z("h1",{class:function(){var V;
return((V=_.D(d(),RM))==null?void 0:V.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHeaderDialog":"ytWebReportFormDetailsPageViewModelHeaderPanel"}},function(){return W().detailsPageHeader}),_.z("div",{class:"ytWebReportFormDetailsPageViewModelBody"},_.z(_.Ab,{text:function(){return W().bodyText}})),_.z("div",{class:"ytWebReportFormDetailsPageViewModelInput"},_.z(oM,{label:function(){var V;
return((V=_.D(W().inputBox,Me$))==null?void 0:V.placeholderText)||""},
outline:!0,rows:10,characterLimit:function(){var V;return{errorMessage:((V=_.D(W().inputBox,Me$))==null?void 0:V.maxCharsExceededErrorMessage)||"",maxChars:E()}},
onInput:F})))},"wf");
oFT.idomCompat=!0;_.pK(oFT,"yt-report-form-details-page-view-model",{props:{data:_.TS}});var GkF=_.GK(function(F){var W=F.data;var E=F.selectedKey;var h=F.onSelected;var d=F.groupName;var V=function(){return W().text},R=function(){return W().attributedText},M=function(){return W().subtext},g=function(){return W().attributedSubtext},t=_.z("div",{class:"ytRadioButtonItemViewModelLabel"},_.z(_.v,{cond:V,
then:function(){return _.z("div",null,V)}}),_.z(_.v,{cond:R,
then:function(){return _.z(_.Ab,{text:R})}}),_.z(_.v,{cond:M,
then:function(){return _.z("div",{class:"ytRadioButtonItemViewModelSubText"},M)}}),_.z(_.v,{cond:g,
then:function(){return _.z("div",{class:"ytRadioButtonItemViewModelSubText"},_.z(_.Ab,{text:g}))}})),C=function(){if(R()){var I;
return(I=R())==null?void 0:I.content}return V()},B=function(){if(g()){var I;
return(I=g())==null?void 0:I.content}return M()};
F={};return _.z("yt-radio-button-item-view-model",{class:"ytRadioButtonItemViewModelHost"},_.z(_.q7,{name:d,checked:function(){return!(E==null||!E()||W().key!==(E==null?void 0:E()))},
onChange:function(I){h==null||h(I.target,W(),d==null?void 0:d())},
labelRenderable:function(){return t},
ariaLabel:function(){return B()?C()+", "+B():C()},
className:_.ec((F.ytRadioButtonItemViewModelSubTitle=function(){return!!W().subtext},F))}))},"xf");_.YGK=_.GK(function(F){var W=F.data;var E=F.onSelected;var h=F.selectedKey;var d=F.groupName;return _.z("yt-radio-button-group-view-model",{class:"yt-radio-button-group-view-model",tabindex:0},_.z("fieldset",{class:"yt-radio-button-group-view-model__fieldset"},_.z(_.a6,{data:function(){return W().radioButtons}},{radioButtonItemViewModel:function(V){return _.z(GkF,{data:V.data,
onSelected:E,selectedKey:h,groupName:function(){return(d==null?void 0:d())||W().key}})}})))},"yf");var wQw=_.GK(function(F){var W=F.data;var E=_.Sh(),h=function(){return W().flowStateKey||""},d=_.D1(_.MB,h),V=function(){return _.D(d(),RM)};
_.q6(function(){var R,M;if(((R=V())==null?0:R.isReportFormDirty)&&((M=V())==null||!M.navigationEnabled)&&_.c("enable_gff_accessibility_fix")){var g;if(((g=V())==null?void 0:g.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"){var t;(t=document.querySelector(".ytWebReportFormReasonSelectPageViewModelHeaderDialog"))==null||t.scrollIntoView()}else{var C;(C=document.querySelector(".ytWebReportFormReasonSelectPageViewModelHeaderPanel"))==null||C.scrollIntoView()}}});
return _.z("yt-report-form-reason-select-page-view-model",{class:function(){var R;return((R=V())==null?void 0:R.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHostDialog":"ytWebReportFormReasonSelectPageViewModelHostPanel"}},_.z("h1",{class:function(){var R;
return((R=V())==null?void 0:R.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHeaderDialog":"ytWebReportFormReasonSelectPageViewModelHeaderPanel"}},function(){return W().pageHeader}),_.z("div",{class:"ytWebReportFormReasonSelectPageViewModelBody"},_.z(_.Ab,{text:function(){return W().bodyText}})),_.z("div",{class:function(){var R;
return((R=V())==null?void 0:R.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelReasonsDialog":"ytWebReportFormReasonSelectPageViewModelReasonsPanel"}},_.z(_.v,{cond:function(){var R,M;
return((R=V())==null?void 0:R.isReportFormDirty)&&!((M=V())==null?0:M.navigationEnabled)&&_.c("enable_gff_accessibility_fix")},
then:function(){return _.z("div",{class:"ytWebReportFormReasonSelectPageViewModelEmptyReasonError",el:E},_.z(_.I3,{icon:"INFO",className:"ytWebReportFormReasonSelectPageViewModelEmptyReasonErrorIcon",size:16}),_.z("div",{class:"ytWebReportFormReasonSelectPageViewModelEmptyReasonErrorMessage","aria-live":"polite"},function(){return W().emptyReasonSelectErrorMessage}))}}),_.z(_.YGK,{data:function(){return _.D(W().radioButtonGroup,_.InO)},
onSelected:function(R,M){R=Object.assign({},d(),{abuseReportFlowState:Object.assign({},V(),{reasonKey:M.key,navigationEnabled:!0,isReportFormDirty:!0,navigationCommand:M.command})});_.rQ(_.AG("flowStateEntity",h(),R))},
selectedKey:function(){var R;return(R=V())==null?void 0:R.reasonKey},
groupName:"report-form-reason-select-page"})))},"zf");
wQw.idomCompat=!0;_.pK(wQw,"yt-report-form-reason-select-page-view-model",{props:{data:_.TS}});var uk6=_.GK(function(F){var W=F.data;var E,h=(E=_.WZ().resolve(_.Fd(_.nK)))==null?void 0:E();return _.z("yt-report-form-sign-in-page-view-model",{class:"yt-report-form-sign-in-page-view-model"},_.z("div",{class:"yt-report-form-sign-in-page-view-model__sign-in-prompt-image"},_.z(_.T4,{data:function(){return h&&W().imageDark?W().imageDark:W().image},
alt:""})),_.z("div",{class:"yt-report-form-sign-in-page-view-model__sign-in-text-content"},_.z("h1",{class:"yt-report-form-sign-in-page-view-model__sign-in-prompt-header"},function(){return W().header}),_.z(_.Ab,{text:function(){return W().text},
className:"yt-report-form-sign-in-page-view-model__sign-in-prompt-body"})))},"Af");
uk6.idomCompat=!0;_.pK(uk6,"yt-report-form-sign-in-page-view-model",{props:{data:_.TS}});_.pK(_.GK(function(F){var W=F.data;var E=function(){var t;return(t=W().textInputPlaceholder)==null?void 0:t.content},h=function(t){t=t.target.value.trim();
var C=W().onUpdateText;C&&_.fK(C,{form:{userQuery:t}});W().userQuery=t},d=_.qS(function(t){h(t)},150),V=_.tb(function(t){d(t);
return!1}),R=_.tb(function(t){t.key==="Enter"&&(h(t),(t=W().onNextStepCommand)&&_.fK(t,{}));
return!1}),M=_.uf(),g=function(){if(_.c("web_hide_explore_hub_until_user_navigates_back_to_home")){var t,C,B;
(B=(C=(t=M.value)==null?void 0:t.closest("ytd-flow-step-renderer"))==null?void 0:C.querySelector("yt-flow-bottom-bar-view-model button-view-model button"))==null||B.click()}};
return _.z("yt-talk-to-recs-view-model",{class:"ytwTalkToRecsHost",el:M},_.z("div",{class:"ytwTalkToRecsTopCornerButton"},_.z(_.a6,{data:function(){return W().topCornerButton}},{buttonViewModel:_.rk})),_.z("div",{class:"ytwTalkToRecsTalkToRecsWrapper"},_.z("div",{class:"ytwTalkToRecsTitle"},_.z(_.Ab,{text:function(){return W().title}})),_.z("div",{class:"ytwTalkToRecsSubtitle"},_.z(_.Ab,{text:function(){return W().subtitle}})),_.z("div",{class:"ytwTalkToRecsChipsShelf"},_.z(_.a6,{data:function(){return W().answersShelf}},
{chipsShelfViewModel:function(t){return _.z(_.j5U,{data:t.data,
callback:g})}})),_.z(_.v,{cond:function(){return W().showOpenTextInput&&!_.c("web_hide_explore_hub_until_user_navigates_back_to_home")},
then:function(){return _.z("div",{class:"ytwTalkToRecsUserInputBox"},_.z("input",{type:"text",class:"ytwTalkToRecsTextInput",placeholder:E,value:function(){return W().userQuery},
"on:input":V,"on:keyup":R}))}})))},"Bf"),"yt-talk-to-recs-view-model",{props:{data:_.TS}});var CgN={sources:[{clientResource:{imageName:"CHECK"}}]};_.SGu=_.GK(function(F){var W=_.uf();F=_.o4(F,{error:void 0});var E=F.data,h=F.error,d=F.onSelected;F=_.U(_.Br(function(){return Iqx(E())}));
var V=F.next().value,R=F.next().value;k3w(E,function(B){R(B);var I,x,A=vjq((I=E().options)==null?void 0:(x=I[B])==null?void 0:x.value,E().type);d==null||d(A);W.value.focus()});
F=_.tb(function(){if(!E().disabled){var B=E(),I=V(),x=W.value;B.options&&(B=Blu(B.options,I,B.label),_.WZ().resolve(_.L1).openSheet({viewModel:B},x))}});
var M=_.ZAe(),g=function(){return!!h()},t=function(){return!!E().disabled},C={};
C=_.ec("ytDropdownViewModelDropdownContainer",(C.ytDropdownViewModelDropdownContainerErrorBorder=g,C.ytDropdownViewModelDropdownContainerDisabled=t,C));return _.z("dropdown-view-model",{class:"ytDropdownViewModelHost"},_.z("div",{class:C,"on:click":F,el:W,role:"combobox",tabindex:0,"on:keydown":M,"aria-invalid":g,"aria-disabled":t,"aria-describedby":function(){return g()?"dropdown-view-model-error":void 0}},_.z("div",{class:"ytDropdownViewModelText"},cv6(E,g,V),DTK(E,V)),_.z("div",{class:"ytDropdownViewModelChevronDown"},
_.z(_.I3,{icon:"CHEVRON_DOWN"}))),xTw(E,h))},"Cf");_.pK(_.GK(function(F){var W=F.data;var E=function(d){var V=sT8(W());V.videoMetadata||(V.videoMetadata={});V.videoMetadata.sponsorshipsMetadata||(V.videoMetadata.sponsorshipsMetadata={});V.videoMetadata.sponsorshipsMetadata.minRequiredTier=String(d)},h=function(d){var V=sT8(W());
V.scheduledRedirectMetadata||(V.scheduledRedirectMetadata={});V.scheduledRedirectMetadata.scheduledRedirectTimeDeltaSec=String(d)};
return _.z("ytfz-schedule-fanzone-view-model",{class:"ytfzScheduleFanzoneViewModelHost"},_.z("section",{class:"ytfzScheduleFanzoneViewModelContentSection"},_.z("h2",{class:"ytfzScheduleFanzoneViewModelTitleGroup"},_.z(_.Ab,{text:function(){return W().title}}),_.z(_.I3,{icon:"SCHEDULE_FANZONE",
className:"ytfzScheduleFanzoneViewModelIllustration"})),_.z(_.Ab,{text:function(){return W().description},
className:"ytfzScheduleFanzoneViewModelDescription"}),_.z(_.a6,{data:function(){return W().tierChoices}},{dropdownViewModel:function(d){return _.z("div",{class:"ytfzScheduleFanzoneViewModelTierDropdown"},_.z(_.SGu,{data:d.data,
onSelected:E}))}}),_.z(_.a6,{data:function(){return W().startTimeChoices}},{dropdownViewModel:function(d){return _.z("div",{class:"ytfzScheduleFanzoneViewModelStartTimeDropdown"},_.z(_.SGu,{data:d.data,
onSelected:h}))}}),_.z(_.Ab,{text:function(){return W().notice},
className:"ytfzScheduleFanzoneViewModelNotice"})),_.z("footer",{class:"ytfzScheduleFanzoneViewModelFooterSection"},_.z(_.a6,{data:function(){return W().scheduleButton}},{panelFooterViewModel:_.TP})))},"Df"),"ytfz-schedule-fanzone-view-model",{props:{data:_.TS}});_.pK(_.GK(function(F){var W=F.data;F=F.className===void 0?"":F.className;var E=_.D1(Qlq,function(){return W().flowStateEntityKey||""}),h={};
h=_.ec("ytFlowBottomBarViewModelFlowBottomBarButtons",(h.ytFlowBottomBarViewModelFlowBottomBarButtonsDistributed=function(){return W().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"||W().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_DISTRIBUTED_SPACE"},h));
var d={},V=_.ec("ytFlowBottomBarViewModelFlowBottomBarPrimaryButton",h,(d.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonVerticalCentered=function(){return W().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},d.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonFlexPrimary=function(){return W().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FLEX_PRIMARY"},d));
d={};var R=_.ec("ytFlowBottomBarViewModelFlowBottomBarSecondaryButton",h,(d.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonVerticalCentered=function(){return W().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},d.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonFullDistributed=function(){return W().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"},d));
h={};h=_.ec("ytFlowBottomBarViewModelFlowBottomBarButtonSection",(h.ytFlowBottomBarViewModelFlowBottomBarButtonSectionVerticalCentered=function(){return W().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},h.ytFlowBottomBarViewModelFlowBottomBarButtonSectionJustifyEnd=function(){return W().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_JUSTIFY_END"},h.ytFlowBottomBarViewModelFlowBottomBarButtonSectionSpaceBetween=function(){return W().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_SPACE_BETWEEN"},
h));
return _.z("yt-flow-bottom-bar-view-model",{class:_.ec("ytFlowBottomBarViewModelHost",F)},_.z(_.v,{cond:function(){var M;return(M=W())==null?void 0:M.textSection},
then:function(M){return _.z("div",{class:"ytFlowBottomBarViewModelFlowBottomBarTextSection"},_.z(_.Ab,{text:M}))}}),_.z("div",{class:h},_.z(_.a6,{data:function(){return W().secondaryButton}},{buttonViewModel:function(M){return _.z(_.rk,{data:M.data,
className:R})}}),_.z(_.a6,{data:function(){return W().primaryButton}},{buttonViewModel:function(M){return _.z(_.rk,{data:M.data,
className:V,buttonOverrides:function(){var g;return{disabled:!((g=E())==null||!g.primaryButtonDisabled)}}})}})))},"Ef"),"yt-flow-bottom-bar-view-model",{props:{data:_.TS,
className:_.Si}});var pQx="add arrow_left article check circle circle_full creator_academy lock price_tag".split(" "),GP=function(){var F=_.n.apply(this,arguments)||this;F.enableScrollingFix=!0;F.bottomBar=!1;F.hideBottomBar=!1;F.fitContent=!1;return F};
_.k(GP,_.n);_.N=GP.prototype;_.N.ready=function(){_.c("enable_pdp_icon_prefetch")&&_.RF6(_.WZ().resolve(_.gJ),0,pQx)};
_.N.focus=function(F){this.topBar?_.Y7(this.topBar,F):this.paperDialog.focus(F)};
_.N.attached=function(){this.paperDialog||(this.paperDialog=this.hostElement.closest("tp-yt-paper-dialog"));this.JSC$16747_scroller&&(this.JSC$16747_scroller.dialogElement=this.paperDialog,this.JSC$16747_scroller.attached&&typeof this.JSC$16747_scroller.attached==="function"&&this.JSC$16747_scroller.attached())};
_.N.onDataChanged=function(){var F;this.fitContent=!((F=this.data)==null||!F.fitContent);var W;this.bottomBar=!((W=this.data)==null||!W.bottomBar);this.hideBottomBar=this.containsExploreHub};
_.N.onProgressChanged=function(){var F,W,E=((W=(F=this.data)==null?void 0:F.progress)!=null?W:0)*100;this.progressElement.style.width=E+"%"};
_.N.isProgressHidden=function(){var F;return!((F=this.data)==null?0:F.progress)};
_.N.configureRendererStamper=function(){return{"data.topBarOverride":{id:"top-bar",mapping:{flowTopBarRenderer:"ytd-flow-top-bar-renderer"}},"data.content":{id:"content",mapping:{benefitsFlowStepRenderer:"yt-benefits-flow-step-renderer",channelHistoryRenderer:"ytd-channel-history-renderer",confirmationFlowStepRenderer:"yt-confirmation-flow-step-renderer",creatorGoalSetUpFlowViewModel:"yt-creator-goal-set-up-flow-view-model",scheduleFanzoneViewModel:"ytfz-schedule-fanzone-view-model",contributorZeroStateViewModel:"yt-contributor-zero-state-view-model",
featureEnablementInfoRenderer:"ytd-feature-enablement-info-renderer",featureEnablementSoftEntryRenderer:"yt-feature-enablement-soft-entry-renderer",feedbackFormViewModel:"yt-feedback-form-view-model",freeTextInputFlowStepRenderer:"ytd-free-text-input-flow-step-renderer",infoFlowStepRenderer:"yt-info-flow-step-renderer",infoListFlowStepRenderer:"yt-info-list-flow-step-renderer",noteViewModel:"yt-note-view-model",offerDetailStepRenderer:"ytd-offer-detail-step-renderer",offerSelectionStepRenderer:"ytd-offer-selection-step-renderer",
pdpViewModel:{component:"pdp-view-model",params:{internalScrolling:!0}},purchaseCompleteStepRenderer:"ytd-purchase-complete-step-renderer",reportFormReasonSelectPageViewModel:"yt-report-form-reason-select-page-view-model",reportFormDetailsPageViewModel:"yt-report-form-details-page-view-model",reportFormConfirmationPageViewModel:"yt-report-form-confirmation-page-view-model",reportFormSignInPageViewModel:"yt-report-form-sign-in-page-view-model",sectionGroupViewModel:"yt-section-group-view-model",sectionListRenderer:"ytd-section-list-renderer",
structuredContextNoteViewModel:"yt-structured-context-note-view-model",surveyFlowStepRenderer:"ytd-survey-flow-step-renderer",talkToRecsViewModel:"yt-talk-to-recs-view-model",ypcTransactionErrorMessageRenderer:"ytd-ypc-transaction-error-message-renderer",optionSelectionFlowStepRenderer:{component:"yt-option-selection-flow-step-renderer",params:{flowClassName:"ytd-flow-step-renderer-content",isDesktop:!0}},offerSummaryFlowStepRenderer:{component:"yt-offer-summary-flow-step-renderer",params:{flowClassName:"ytd-flow-step-renderer-content",
shouldDisableHeaderTopMargin:!0}}}},"data.bottomBar":{id:"bottom-bar",mapping:{reportFormBottomBarViewModel:"yt-report-form-bottom-bar-view-model",formFooterViewModel:"yt-form-footer-view-model",flowBottomBarViewModel:{component:"yt-flow-bottom-bar-view-model",params:{className:"ytd-flow-step-renderer bottom-bar-view-model"}},flowBottomBarRenderer:{matcher:function(F){return _.c("enable_wiz_next_lp2_msof")&&F&&!F.couponRenderer?"yt-flow-bottom-bar-renderer":"ytd-flow-bottom-bar-renderer"}}}}}};
_.Sn.Object.defineProperties(GP.prototype,{containsExploreHub:{configurable:!0,enumerable:!0,get:function(){var F;return _.c("web_hide_explore_hub_until_user_navigates_back_to_home")&&!!_.D((F=this.data)==null?void 0:F.content,Cuq)}}});
GP.prototype.onProgressChanged=GP.prototype.onProgressChanged;GP.prototype.onDataChanged=GP.prototype.onDataChanged;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],GP.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],GP.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],GP.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],GP.prototype,"enableScrollingFix",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],GP.prototype,"bottomBar",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],GP.prototype,"hideBottomBar",void 0);_.T([_.a("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],GP.prototype,"containsExploreHub",null);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],GP.prototype,"fitContent",void 0);_.T([_.gQ("#progress"),_.Y("design:type",HTMLElement)],GP.prototype,"progressElement",void 0);
_.T([_.gQ("#scroller"),_.Y("design:type",Object)],GP.prototype,"JSC$16747_scroller",void 0);_.T([_.gQ("ytd-flow-top-bar-renderer"),_.Y("design:type",HTMLElement)],GP.prototype,"topBar",void 0);_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],GP.prototype,"onDataChanged",null);_.T([_.ea("data.progress"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],GP.prototype,"onProgressChanged",null);
GP=_.T([_.y({is:"ytd-flow-step-renderer",disableElementRegistration:!0})],GP);
_.r(GP,"ytd-flow-step-renderer",function(){if(lnN!==void 0)return lnN;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="top-bar" class="style-scope ytd-flow-step-renderer"></div>\n<div id="progress-container" hidden="[[isProgressHidden(data)]]" class="style-scope ytd-flow-step-renderer">\n  <div id="progress" class="style-scope ytd-flow-step-renderer"></div>\n</div>\n<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-flow-step-renderer">\n  <div id="content" class="style-scope ytd-flow-step-renderer"></div>\n</tp-yt-paper-dialog-scrollable>\n<div id="bottom-bar" class="style-scope ytd-flow-step-renderer"></div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return lnN=F},{mode:1});var mON=function(F){this.resolveCommand=F;this.steps={}},K0w=function(F,W){W=_.U(W||[]);
for(var E=W.next();!E.done;E=W.next()){E=E.value;var h=Object.values(E)[0],d=void 0;if((d=h)==null?0:d.stepId)F.steps[h.stepId]=E}},ECK=function(F,W){var E,h,d,V,R;
return _.e(function(M){if((E=F.state)==null||!E.currentStepId)return M.return(void 0);h=FeK(F);if(!h)return M.return(Weu(F));if(d=_.D(h,_.teT)){var g;((g=d.screenLoggingData)==null?0:g.screenVeType)&&_.QH(_.z4(),d.screenLoggingData.screenVeType);((V=d)==null?0:V.onStepStartCommand)&&F.resolveCommand((R=d)==null?void 0:R.onStepStartCommand,{})}if(d&&W){g=d;var t,C,B,I;((t=W.flowLoggingData)==null?0:t.eventNamespace)&&((C=g.flowEventData)==null?0:C.eventType)&&((B=g.flowEventData)==null?0:B.eventMetadata)&&
((I=W.flowLoggingData)==null?0:I.flowType)&&(t=_.Mz(W.flowLoggingData.eventNamespace,g.flowEventData.eventType,g.flowEventData.eventMetadata),_.g2(_.Qc(),t,W.flowLoggingData.flowType));W.steps&&!W.steps.includes(h)&&W.steps.push(h)}return M.return(h)})};
mON.prototype.back=function(){var F;(F=this.state)!=null&&F.stepIdStack&&(this.state.currentStepId=this.state.stepIdStack.pop())};
mON.prototype.handleUpdateFlowCommand=function(F){F.steps&&K0w(this,F.steps);F.entityUpdateCommand&&this.resolveCommand(F.entityUpdateCommand,{});F.flowContinuationCommand&&(F=F.flowContinuationCommand)&&(this.getFlowContinuationCommand=F);this.awaitFlowContinuation&&(this.awaitFlowContinuation(FeK(this)),this.awaitFlowContinuation=void 0)};
mON.prototype.reset=function(){this.state=void 0;this.steps={};this.awaitFlowContinuation=this.getFlowContinuationCommand=void 0};
var Weu=function(F){return _.e(function(W){return F.getFlowContinuationCommand?W.return(new Promise(function(E){F.awaitFlowContinuation=E;F.getFlowContinuationCommand&&F.resolveCommand(F.getFlowContinuationCommand,{flow_state:F.state})})):W.return(Promise.resolve(void 0))})},FeK=function(F){var W;
if((W=F.state)!=null&&W.currentStepId)return F.steps[F.state.currentStepId]};var Y$=function(){var F=_.n.apply(this,arguments)||this;F.flowState=new mON(function(W,E){E=E===void 0?{}:E;_.Ru.instance.resolveCommand(W,{form:{form:E,element:F.hostElement}})});
F.initialState=!0;F.isLoading=!1;F.actionMap={"yt-flow-prev-step-command":"handleFlowPrevStepCommand","yt-flow-next-step-command":"handleFlowNextStepCommand","yt-update-flow-command":"handleUpdateFlowCommand","yt-ypc-cancel-recurrence-command":"handleYpcCancelRecurrenceCommand","yt-flow-partial-update-flow-state-entity":"handlePartialUpdateFlowStateEntity"};return F};
_.k(Y$,_.n);_.N=Y$.prototype;_.N.onPopupClosed=function(F){F&&this.hostElement!==F.detail.popupRenderer||(this.flowState.reset(),this.currentFlowStep=this.data=void 0,this.initialState=!0)};
_.N.configureRendererStamper=function(){return{"data.topBar":{id:"top-bar",mapping:{flowTopBarRenderer:"ytd-flow-top-bar-renderer"}},currentFlowStep:{id:"flow-step",mapping:{flowStepRenderer:"ytd-flow-step-renderer"}}}};
_.N.focus=function(F){var W=this;_.fz(function(){var E=_.Z(W.hostElement).querySelector("ytd-flow-step-renderer");E.topBar?E.focus(F):W.topBar&&_.Y7(W.topBar,F)},1)};
_.N.attached=function(){this.hostElement.setAttribute("dialog","true")};
_.N.computeTopBarHidden=function(F){var W;return!((W=_.D(F,_.teT))==null||!W.topBarOverride)};
_.N.dataChanged=function(){var F=this,W,E;return _.e(function(h){if(h.nextAddress==1){((W=F.data)==null?0:W.steps)&&K0w(F.flowState,F.data.steps);if((E=F.data)==null?0:E.flowContinuationCommand){var d=F.flowState,V=F.data.flowContinuationCommand;V&&(d.getFlowContinuationCommand=V)}return _.Q(h,ECK(F.flowState,F.data),2)}F.currentFlowStep=h.yieldResult;_.gG(h)})};
_.N.flowChanged=function(){var F=this,W;return _.e(function(E){if(E.nextAddress==1){if(!F.flow)return E.return();F.flowState.state=F.flow;F.isLoading=!0;return _.Q(E,ECK(F.flowState,F.data),2)}W=E.yieldResult;if(!W||F.flow.isLoading)return E.return();F.currentFlowStep=W;F.initialState=!1;F.isLoading=!1;F.autofocusAndRefit();_.gG(E)})};
_.N.autofocusAndRefit=function(){var F=this,W=_.WZ().resolve(_.Fd(_.$V)),E=document.activeElement&&(document.activeElement.tagName==="TEXTAREA"||document.activeElement.tagName==="INPUT"||document.activeElement.tagName==="BUTTON"),h=document.querySelector("yt-report-form-confirmation-page-view-model"),d=document.querySelector("yt-report-form-details-page-view-model"),V=document.querySelector("yt-report-form-reason-select-page-view-model"),R=document.querySelector("yt-contributor-zero-state-view-model"),
M=document.querySelector("yt-structured-context-note-view-model"),g=document.querySelector("yt-note-view-model");(!E&&W&&W.isKeyBoardInUse()||h||!E&&d||!E&&V||R||M||g)&&_.SQ(this.hostElement);_.wT(this,function(){_.hF(F.hostElement,"yt-refit")})};
_.N.handleUpdateFlowCommand=function(F){this.data&&(F=_.D(F,zFP),F.targetId===this.data.targetId&&(F.flowContinuationCommand&&(this.data.flowContinuationCommand=F.flowContinuationCommand),this.flowState.handleUpdateFlowCommand(F),this.autofocusAndRefit()))};
_.N.handleFlowNextStepCommand=function(F){this.data&&this.flow&&this.flow.key&&(F=_.D(F,gpq),F.targetId===this.data.targetId&&(F=F.stepId||"",this.ytdReduxBehavior.dispatch(_.lJ("flowStateEntity",this.flow.key,{currentStepId:F,stepIdStack:(this.flow.stepIdStack||[]).concat(F)}))))};
_.N.handleFlowPrevStepCommand=function(F){if(this.data&&this.flow&&this.flow.key&&(F=_.D(F,Qy$),F.targetId===this.data.targetId)){var W=[].concat(_.x9(this.flow.stepIdStack||[]));W.length>1?(W.pop(),this.ytdReduxBehavior.dispatch(_.lJ("flowStateEntity",this.flow.key,{currentStepId:W[W.length-1],stepIdStack:W}))):F.onFirstStepCommand&&this.ytComponentBehavior.resolveCommand(F.onFirstStepCommand)}};
_.N.handleYpcCancelRecurrenceCommand=function(F){if(this.data&&this.flow&&this.flow.key&&(F=_.D(F,czK),F.targetId===this.data.targetId&&F.endpointCommand)){var W=_.D(this.flow,D6K);W&&_.D(F.endpointCommand,_.K8e)&&(_.D(F.endpointCommand,_.K8e).feedbackData=W.surveyFeedback);this.ytComponentBehavior.resolveCommand(F.endpointCommand)}};
_.N.handlePartialUpdateFlowStateEntity=function(F){this.data&&this.flow&&this.flow.key&&this.ytdReduxBehavior.dispatch(_.lJ("flowStateEntity",this.flow.key,F,"REPEATED_FIELDS_MERGE_OPTION_REPLACE"))};
Y$.prototype.flowChanged=Y$.prototype.flowChanged;Y$.prototype.dataChanged=Y$.prototype.dataChanged;Y$.prototype.onPopupClosed=Y$.prototype.onPopupClosed;_.T([_.J(_.am),_.Y("design:type",Object)],Y$.prototype,"ytdReduxBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Y$.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],Y$.prototype,"ytComponentBehavior",void 0);
_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],Y$.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],Y$.prototype,"ytActionHandlerBehavior",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],Y$.prototype,"initialState",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],Y$.prototype,"isLoading",void 0);_.T([_.O(),_.Y("design:type",Object)],Y$.prototype,"data",void 0);
_.T([_.O(),_.Y("design:type",Object)],Y$.prototype,"currentFlowStep",void 0);_.T([_.R4("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Y$.prototype,"onPopupClosed",null);_.T([_.O({selectorArgs:["data.flowStateEntityKey"],selector:Qlq}),_.Y("design:type",Object)],Y$.prototype,"flow",void 0);_.T([_.gQ("ytd-flow-top-bar-renderer"),_.Y("design:type",HTMLElement)],Y$.prototype,"topBar",void 0);
_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype",Promise)],Y$.prototype,"dataChanged",null);_.T([_.Cz("flow"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype",Promise)],Y$.prototype,"flowChanged",null);Y$=_.T([_.y({is:"ytd-flow-root-renderer",disableElementRegistration:!0})],Y$);
_.hxq=_.We()(Y$,"ytd-flow-root-renderer",function(){if(bdx!==void 0)return bdx;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flow-root-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="top-bar" hidden="[[computeTopBarHidden(currentFlowStep)]]" class="style-scope ytd-flow-root-renderer"></div>\n<div id="content" class="style-scope ytd-flow-root-renderer">\n  <div id="flow-step" class="style-scope ytd-flow-root-renderer"></div>\n  <div id="spinner-overlay" hidden="[[!isLoading]]" class="style-scope ytd-flow-root-renderer">\n    <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-flow-root-renderer"></tp-yt-paper-spinner-lite>\n  </div>\n</div>\n\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return bdx=F},{mode:_.E6("kevlar_poly_si_batch_j025")?1:2});var d08;var V2=null;_.pK(_.GK(function(F){return _.z("yt-thumbnail-overlay-attribution-view-model",{class:"ytThumbnailOverlayAttributionViewModelHost"},_.z("div",{class:"ytThumbnailOverlayAttributionViewModelInnerContainer"},_.z(_.Ab,{text:function(){return F.data().text}}),_.z("span",{class:"ytThumbnailOverlayAttributionViewModelBottomRightCorner"})))},"Ff"),"yt-thumbnail-overlay-attribution-view-model",{props:{data:_.TS}});var NVu=_.GK(function(F){var W=F.playerControlsProps;var E=F.isShortsPage;return _.z("yt-bigboard",null,_.z(_.v,{cond:function(){return W().isDragging},
then:function(){return _.z("div",{class:"ytBigboardStoryboardHost"},_.z(_.YfP,{progressBarProps:W,isShortsPage:E}))}}))},"Gf");
NVu.idomCompat=!0;_.w0={ACCOUNT_LABEL:US("ACCOUNT_LABEL"),ACT_ON_THIS_COMMENT:US("ACT_ON_THIS_COMMENT"),ADD_TO_DROPDOWN_LABEL:US("ADD_TO_DROPDOWN_LABEL"),AD_BADGE_HINT:US("AD_BADGE_HINT"),AD_BADGE_TEXT:US("AD_BADGE_TEXT"),ALL_CHANNELS_LABEL:US("ALL_CHANNELS_LABEL"),AMBIENT_MODE:US("AMBIENT_MODE"),AMBIENT_MODE_OFF:US("AMBIENT_MODE_OFF"),AMBIENT_MODE_ON:US("AMBIENT_MODE_ON"),ANDROID_DEPRECATION_MESSAGE_BODY:US("ANDROID_DEPRECATION_MESSAGE_BODY"),ANDROID_DEPRECATION_MESSAGE_HEADER:US("ANDROID_DEPRECATION_MESSAGE_HEADER"),
APP_UPSELL_SUBTITLE:US("APP_UPSELL_SUBTITLE"),APP_UPSELL_TITLE:US("APP_UPSELL_TITLE"),AUTONAV_TOGGLE:US("AUTONAV_TOGGLE"),AUTOPLAY_IN_TEN_SECONDS:US("AUTOPLAY_IN_TEN_SECONDS"),AUTOPLAY_PAUSED:US("AUTOPLAY_PAUSED"),AUTOPLAY_PLAY_NOW:US("AUTOPLAY_PLAY_NOW"),AUTOPLAY_UP_NEXT_IN:US("AUTOPLAY_UP_NEXT_IN"),BACK:US("BACK"),CANCEL:US("CANCEL"),CHANNEL_SWITCHER_LABEL:US("CHANNEL_SWITCHER_LABEL"),CLOSE:US("CLOSE","close"),CLOSED_CAPTIONS_DISABLED:US("CLOSED_CAPTIONS_DISABLED"),CLOSED_CAPTIONS_OFF:US("CLOSED_CAPTIONS_OFF"),
CLOSED_CAPTIONS_ON:US("CLOSED_CAPTIONS_ON"),CLOSED_CAPTIONS_ON_LANGUAGE:US("CLOSED_CAPTIONS_ON_LANGUAGE"),CLOSE_SEARCH_LABEL:US("CLOSE_SEARCH_LABEL"),CLOSE_SETTINGS_LABEL:US("CLOSE_SETTINGS_LABEL"),COMMENT_MODAL_CONTENT:US("COMMENT_MODAL_CONTENT"),CONFIRM_OK:US("CONFIRM_OK"),CONNECT_TO_THE_INTERNET:US("CONNECT_TO_THE_INTERNET"),COPIED_TO_CLIPBOARD:US("COPIED_TO_CLIPBOARD"),COPY:US("COPY"),COPY_DEBUG_INFO:US("COPY_DEBUG_INFO"),COPY_EMBED_CODE:US("COPY_EMBED_CODE"),COPY_LINK_LABEL:US("COPY_LINK_LABEL"),
COPY_VIDEO_URL:US("COPY_VIDEO_URL"),COPY_VIDEO_URL_AT_CURRENT_TIME:US("COPY_VIDEO_URL_AT_CURRENT_TIME"),CREATE_CHANNEL_TITLE:US("CREATE_CHANNEL_TITLE"),DELETE_FROM_DOWNLOADS:US("DELETE_FROM_DOWNLOADS"),DIALOG:US("DIALOG"),DONE:US("DONE"),DOWNLOAD:US("DOWNLOAD"),FAILED_COPY_ERROR_MESSAGE:US("FAILED_COPY_ERROR_MESSAGE"),FLAG_CONFIRM:US("FLAG_CONFIRM"),FLAG_CONTENT:US("FLAG_CONTENT"),FLAG_LABEL:US("FLAG_LABEL"),FLAG_TITLE:US("FLAG_TITLE"),FULLSCREEN_GENERIC_ERROR:US("FULLSCREEN_GENERIC_ERROR"),GOOGLE_COMPANY:US("GOOGLE_COMPANY"),
HIDE_PLAYER_CONTROLS:US("HIDE_PLAYER_CONTROLS","Hide player controls"),HIDE_PLAYLIST_VIDEOS:US("HIDE_PLAYLIST_VIDEOS"),HIDE_SEARCH_FILTERS_LABEL:US("HIDE_SEARCH_FILTERS_LABEL"),HOME:US("HOME","Home"),INVALID_RESPONSE_RECEIVED:US("INVALID_RESPONSE_RECEIVED"),LIBRARY:US("LIBRARY","Library"),LISTENING:US("LISTENING"),LOADING:US("LOADING"),LONG_PRESS_MIC_TO_SPEAK:US("LONG_PRESS_MIC_TO_SPEAK","Long press mic_icon_placeholder to speak"),LOOP:US("LOOP"),MENU_DESKTOP:US("MENU_DESKTOP"),MENU_EXIT:US("MENU_EXIT"),
MENU_FEEDBACK:US("MENU_FEEDBACK"),MENU_HELP:US("MENU_HELP"),MENU_IMPRESSUM:US("MENU_IMPRESSUM"),MENU_PLAYER_SETTINGS:US("MENU_PLAYER_SETTINGS"),MENU_SETTINGS:US("MENU_SETTINGS"),MENU_SIGN_IN:US("MENU_SIGN_IN"),MENU_TITLE:US("MENU_TITLE"),MENU_YOUR_DATA:US("MENU_YOUR_DATA"),MORE_INFO:US("MORE_INFO"),MORE_OPTIONS:US("MORE_OPTIONS"),MUTE_VOLUME:US("MUTE_VOLUME"),NEW_PLAYLIST:US("NEW_PLAYLIST"),NEXT_VIDEO:US("NEXT_VIDEO"),NOTIFICATION_ERROR_MESSAGE:US("NOTIFICATION_ERROR_MESSAGE"),NOT_FOUND_CTA:US("NOT_FOUND_CTA"),
NOT_FOUND_MESSAGE:US("NOT_FOUND_MESSAGE"),NOT_FOUND_TITLE:US("NOT_FOUND_TITLE"),NO_DOWNLOADS:US("NO_DOWNLOADS"),NO_MIC_INPUT:US("NO_MIC_INPUT"),OFFLINE_CHECK_CONNECTION:US("OFFLINE_CHECK_CONNECTION"),OOPS_MESSAGE:US("OOPS_MESSAGE"),OPEN_APP:US("OPEN_APP"),OPEN_YOUTUBE:US("OPEN_YOUTUBE"),PAUSE:US("PAUSE"),PLAY:US("PLAY"),PLAYER_CAPTION:US("PLAYER_CAPTION"),PLAYER_CAPTION_OFF:US("PLAYER_CAPTION_OFF"),PLAYER_CAPTION_ON:US("PLAYER_CAPTION_ON"),PLAYER_DOUBLE_SPEED_USER_EDU:US("PLAYER_DOUBLE_SPEED_USER_EDU"),
PLAYER_DOUBLE_TAP_TO_SEEK:US("PLAYER_DOUBLE_TAP_TO_SEEK"),PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS:US("PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS"),PLAYER_EXIT_FULLSCREEN:US("PLAYER_EXIT_FULLSCREEN"),PLAYER_FASTFORWARD_SECONDS:US("PLAYER_FASTFORWARD_SECONDS"),PLAYER_FULLSCREEN:US("PLAYER_FULLSCREEN"),PLAYER_LIVE_LABEL:US("PLAYER_LIVE_LABEL"),PLAYER_LIVE_NOW:US("PLAYER_LIVE_NOW"),PLAYER_MINIMIZE:US("PLAYER_MINIMIZE"),PLAYER_NEXT:US("PLAYER_NEXT"),PLAYER_PAUSE:US("PLAYER_PAUSE"),PLAYER_PLAY:US("PLAYER_PLAY"),
PLAYER_PREVIOUS:US("PLAYER_PREVIOUS"),PLAYER_PROGRESS_BAR:US("PLAYER_PROGRESS_BAR"),PLAYER_QUALITY:US("PLAYER_QUALITY"),PLAYER_QUALITY_AUTO:US("PLAYER_QUALITY_AUTO"),PLAYER_REPLAY:US("PLAYER_REPLAY"),PLAYER_REWIND_SECONDS:US("PLAYER_REWIND_SECONDS"),PLAYER_SPEED:US("PLAYER_SPEED"),PLAYER_SPEEDUP_USER_EDU:US("PLAYER_SPEEDUP_USER_EDU"),PLAYER_SPEED_DECREASE:US("PLAYER_SPEED_DECREASE"),PLAYER_SPEED_INCREASE:US("PLAYER_SPEED_INCREASE"),PLAYER_SPEED_NORMAL:US("PLAYER_SPEED_NORMAL"),PLAYER_SPEED_RECENT:US("PLAYER_SPEED_RECENT"),
PLAYER_TIME_DURATION:US("PLAYER_TIME_DURATION"),PLAYER_TIME_ELAPSED:US("PLAYER_TIME_ELAPSED"),PLAYLIST_DESCRIPTION_INVALID_CHARACTERS:US("PLAYLIST_DESCRIPTION_INVALID_CHARACTERS"),PLAYLIST_MIX_DETAILED_LONG_BYLINE:US("PLAYLIST_MIX_DETAILED_LONG_BYLINE"),PLAYLIST_NAME_INVALID_CHARACTERS:US("PLAYLIST_NAME_INVALID_CHARACTERS"),PLAYLIST_NAME_MISSING:US("PLAYLIST_NAME_MISSING"),PLAYLIST_NAME_TOO_LONG:US("PLAYLIST_NAME_TOO_LONG"),PLAYLIST_PANEL_END_OF_PLAYLIST:US("PLAYLIST_PANEL_END_OF_PLAYLIST"),PLAYLIST_PANEL_NEXT:US("PLAYLIST_PANEL_NEXT"),
PLAYLIST_PANEL_UNLISTED_PLAYLIST:US("PLAYLIST_PANEL_UNLISTED_PLAYLIST"),PLAYLIST_TEXT_INPUT_CHAR_COUNT:US("PLAYLIST_TEXT_INPUT_CHAR_COUNT"),PLAY_ALL:US("PLAY_ALL"),PLEASE_FIX_ERRORS:US("PLEASE_FIX_ERRORS"),PREVIOUS_VIDEO:US("PREVIOUS_VIDEO"),PRIVACY_POLICY:US("PRIVACY_POLICY"),RELOAD:US("RELOAD"),REQUIRED_LABEL:US("REQUIRED_LABEL"),SAVE_PLAYLIST:US("SAVE_PLAYLIST"),SCRUB_SLIDE_USER_EDU:US("SCRUB_SLIDE_USER_EDU"),SEARCH:US("SEARCH","Search"),SEARCH_APPEND_LABEL:US("SEARCH_APPEND_LABEL"),SEARCH_CHANNEL:US("SEARCH_CHANNEL"),
SEARCH_CLEAR_LABEL:US("SEARCH_CLEAR_LABEL"),SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST:US("SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST","Album"),SEARCH_ENTITY_SUGGESTION_MOVIE:US("SEARCH_ENTITY_SUGGESTION_MOVIE","Movie"),SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST:US("SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST","Song"),SEARCH_ENTITY_SUGGESTION_TV_SHOW:US("SEARCH_ENTITY_SUGGESTION_TV_SHOW","TV Show"),SEARCH_FILTERS_LABEL:US("SEARCH_FILTERS_LABEL"),SEARCH_LABEL:US("SEARCH_LABEL"),SEARCH_PPP_PLACEHOLDER_TEXT:US("SEARCH_PPP_PLACEHOLDER_TEXT"),
SEEK_SLIDER:US("SEEK_SLIDER"),SETTINGS_LABEL:US("SETTINGS_LABEL"),SETTINGS_MIC_PERMISSION:US("SETTINGS_MIC_PERMISSION"),SHORTS_TAB_LABEL:US("SHORTS_TAB_LABEL","Shorts"),SHOW_LESS:US("SHOW_LESS"),SHOW_MORE:US("SHOW_MORE"),SHOW_PLAYER_CONTROLS:US("SHOW_PLAYER_CONTROLS","Show player controls"),SHOW_PLAYLIST_VIDEOS:US("SHOW_PLAYLIST_VIDEOS"),SHOW_SEARCH_FILTERS_LABEL:US("SHOW_SEARCH_FILTERS_LABEL"),SIGN_IN_LABEL:US("SIGN_IN_LABEL"),SIGN_IN_ON_WEB:US("SIGN_IN_ON_WEB"),STABLE_VOLUME:US("STABLE_VOLUME"),
STABLE_VOLUME_OFF:US("STABLE_VOLUME_OFF"),STABLE_VOLUME_ON:US("STABLE_VOLUME_ON"),STATS_FOR_NERDS:US("STATS_FOR_NERDS"),SUGGESTION_DISMISSED_LABEL:US("SUGGESTION_DISMISSED_LABEL"),SUGGESTION_DISMISS_LABEL:US("SUGGESTION_DISMISS_LABEL"),SUGGESTION_NEW_VIDEOS_TEXT:US("SUGGESTION_NEW_VIDEOS_TEXT"),SUGGESTION_THUMBNAIL_LABEL:US("SUGGESTION_THUMBNAIL_LABEL"),TERMS_OF_SERVICE:US("TERMS_OF_SERVICE"),TIMESTAMP_MINUTES:US("TIMESTAMP_MINUTES"),TIMESTAMP_SECONDS:US("TIMESTAMP_SECONDS"),TOGGLE_OFF:US("TOGGLE_OFF"),
TOGGLE_ON:US("TOGGLE_ON"),TRENDING:US("TRENDING"),TROUBLESHOOT_PLAYBACK_ISSUE:US("TROUBLESHOOT_PLAYBACK_ISSUE"),TRY_AGAIN_LATER:US("TRY_AGAIN_LATER"),TRY_AGAIN_MIC_PERMISSION:US("TRY_AGAIN_MIC_PERMISSION"),TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE:US("TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE"),TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION:US("TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION"),TURN_OFF_AUTOPLAY_DIALOG_TITLE:US("TURN_OFF_AUTOPLAY_DIALOG_TITLE"),UNMUTE_VOLUME:US("UNMUTE_VOLUME"),VIDEO_LINK_LABEL:US("VIDEO_LINK_LABEL")};var V56=_.GK(function(F){var W=F.playerApi;F=_.uf(function(d){WA(d,36843)});
var E=US("PLAYER_FASTFORWARD_SECONDS","",{seconds_placeholder:"30"}),h=_.tb(function(){ES(36843);W&&W().seekBy(30);window.dispatchEvent(new CustomEvent("jump-forward-clicked"));return!1});
return _.z("jump-forward-button",{class:"ytPlayerControlsJumpForwardButtonHost"},_.z("button",{el:F,class:"ytPlayerControlsJumpForwardButtonButton",title:E,"aria-label":E,"on:click":h},_.z("span",null,_.z(_.I3,{icon:"FAST_FORWARD"}))))},"Hf");var U0T=_.GK(function(F){var W=F.appApi;F=_.uf(function(d){WA(d,62946)});
var E=US("OPEN_IN_MINIPLAYER"),h=_.tb(function(){ES(62946);var d,V;(V=(d=W()).openInMiniplayer)==null||V.call(d);return!1});
return _.z("miniplayer-button",{class:"ytMiniplayerButtonHost"},_.z("button",{el:F,class:"ytMiniplayerButtonButton",title:E,"aria-label":E,"on:click":h},_.z(_.I3,{icon:"PICTURE_IN_PICTURE",active:!1})))},"If");var Rxx=_.GK(function(F){var W=F.playerApi;F=_.uf(function(R){WA(R,142812)});
var E=_.U(_.g$(!1,void 0,"I3VCyb")),h=E.next().value,d=E.next().value;E=function(){return US("SET_PLAYBACK_SPEED_X","",{speed_rate_placeholder:""+(h()?1:2)})};
var V=_.tb(function(){ES(142812);if(W){var R=W(),M=h();R.setPlaybackRate(M?1:2);d(!h())}return!1});
return _.z("yt-playback-speed-button",{class:"ytPlaybackSpeedButtonHost"},_.z("button",{el:F,class:"ytPlaybackSpeedButtonButton",title:E,"aria-label":E,"on:click":V},_.z("span",null,_.z(_.I3,{icon:function(){return h()?"PLAY_ARROW_HALF_CIRCLE_FILLED":"PLAY_ARROW_HALF_CIRCLE"}}))))},"Jf");var exK=_.GK(function(F){var W=F.title;var E=F.ariaLabel;var h=F.icon;var d=F.command;var V=F.veType;F=_.uf(function(M){V&&WA(M,V())});
var R=_.tb(function(){V&&ES(V());d&&_.WZ().resolve(_.EJ).resolveCommand(d())});
return _.z("ytd-thumbnail-overlay-button",{class:"ytdThumbnailOverlayButtonHost"},_.z("button",{el:F,class:"ytdThumbnailOverlayButtonButton",title:W,"aria-label":E,"on:click":R},_.z(_.I3,{icon:h})))},"Kf");var M5F=["en-CA","en","es-MX","fr-CA"];var gCP=_.GK(function(F){var W=_.o4(F,{isOverlay:!1}),E=W.captionIconType,h=W.onClick;F=W.ariaLabel;var d=W.ariaPressed,V=W.isOverlay;W=_.uf(function(g){WA(g,127299)});
var R=_.tb(function(g){ES(127299);h==null||h(g);return!1}),M={};
return _.z("ytm-closed-captioning-button",{class:_.ec("ytmClosedCaptioningButtonHost",(M.ytmClosedCaptioningButtonIconDisabledOverlay=function(){return E()===-1&&V()},M.ytmClosedCaptioningButtonIconDisabled=function(){return E()===-1&&!V()},M))},_.z("button",{el:W,
class:"ytmClosedCaptioningButtonButton",title:F,"aria-label":F,"aria-pressed":d,"on:click":R},_.z(_.I3,{icon:function(){var g="";var t=_.Ij().get("hl");t=!t||M5F.includes(t)?"CLOSED_CAPTION":"SUBTITLES";var C=E();switch(C){case -1:case 0:g=t;break;case 1:g=t+"_FILLED";break;default:_.RO(C)}return g}})))},"Lf");
gCP.idomCompat={callbacks:{onClick:!0}};var FZ="";var QA$=_.GK(function(F){var W=F.playerControlsProps,E=F.onClickFn;F=_.vX(function(){var V=W(),R=-1;V.captionsAvailable&&(R=V.captionsEnabled?1:0);return R},void 0,"WecR8e");
var h=_.vX(function(){var V=W();return V.captionsAvailable?_.CY(V.captionsEnabled?"CLOSED_CAPTIONS_ON":"CLOSED_CAPTIONS_OFF"):_.CY("CLOSED_CAPTIONS_DISABLED")},void 0,"atEfde"),d=_.vX(function(){var V=W();
V=V.captionsAvailable?V.captionsEnabled:void 0;return V},void 0,"Q17ly");
return _.z("yt-closed-captions-toggle-button",null,_.z(gCP,{captionIconType:F,ariaLabel:h,ariaPressed:d,onClick:function(V){var R=W();if(R.captionsAvailable){var M=R.playerApi;if(M){var g=R.playerApi;if(g){var t=FZ;if(t){g=g.getOption("captions","track");var C;FZ=(C=g?g.displayName:null)!=null?C:t}else g.getOptions("captions")?(t=C5w(g),FZ=t.length?(C=BnK(t))?C.displayName:t[0].displayName:""):FZ=""}vd8(M);_.c("mweb_disable_set_state_captions_killswitch")&&R.setState({captionsEnabled:!R.captionsEnabled})}}var B,
I;(I=(B=R.appApi).showCaptionsToggleToast)==null||I.call(B,R);E==null||E(V)},
isOverlay:!0}))},"Mf");var zxg=_.GK(function(F){var W=F.data;return _.z("yt-premiere-trailer-badge",{class:"yt-premiere-trailer-badge"},_.z(_.hD,{data:function(){return{type:16,text:_.A6o(W().label)}}}))},"Nf");var t5F=_.GK(function(F){var W=_.ec("ytPlayerControlsAnimatedSeekArrowsArrow",function(){return F.direction()===1?"ytPlayerControlsAnimatedSeekArrowsForwardArrow":"ytPlayerControlsAnimatedSeekArrowsBackwardArrow"},function(){return F.size()==="small"?"ytPlayerControlsAnimatedSeekArrowsArrowSmall":"ytPlayerControlsAnimatedSeekArrowsArrowLarge"},function(){return F.size()==="small"?F.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowSmallForward":"ytPlayerControlsAnimatedSeekArrowsArrowSmallBackward":
F.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowLargeForward":"ytPlayerControlsAnimatedSeekArrowsArrowLargeBackward"});
return _.z("animated-seek-arrows",{class:_.ec("ytPlayerControlsAnimatedSeekArrowsHost")},_.z("span",{class:W}),_.z("span",{class:W}),_.z("span",{class:W}))},"Of");
t5F.idomCompat=!0;var Cdx=_.GK(function(){var F=_.CY("PLAYER_SECONDS",{seconds_placeholder:"30"}),W=_.U(_.g$(!1,void 0,"Yj8msb")),E=W.next().value,h=W.next().value,d=_.U(_.g$(!1,void 0,"r9Z50e"));W=d.next().value;var V=d.next().value;d={};var R=_.ec("jumpForwardOverlayOverlay",(d.jumpForwardOverlayOverlayHidden=W,d));_.Xk(function(){var M=null,g=null,t=function(){M!==null&&_.OZ().cancelJob(M);g!==null&&_.OZ().cancelJob(g);V(!0);h(!0);_.Ed(_.OZ(),function(){V(!1)});
M=_.Ed(_.OZ(),function(){V(!0);g=_.Ed(_.OZ(),function(){h(!1)},200)},600)};
window.addEventListener("jump-forward-clicked",t);_.$p(function(){window.removeEventListener("jump-forward-clicked",t)})});
return _.z("jump-forward-overlay",{class:"jumpForwardOverlayHost"},_.z(_.v,{cond:E,then:function(){return _.z("div",{class:R},_.z(t5F,{direction:1,size:"large"}),_.z("div",null,F))}}))},"Pf");var jTg=_.w0.MUTE_VOLUME,yvg=_.w0.UNMUTE_VOLUME,BV$=_.GK(function(F){var W=F.muteIconType;var E=F.onClick;var h=F.useOutlineIcon;F=_.uf(function(R){WA(R,28662)});
var d=function(){return ir$(W(),h==null?void 0:h()).ariaLabel},V=_.tb(function(R){ES(28662);
E==null||E(R);return!1});
return _.z("ytm-mute-button",{class:"ytmMuteButtonHost"},_.z("button",{el:F,class:"ytmMuteButtonButton",title:d,"aria-label":d,"on:click":V},_.z("span",null,_.z(_.I3,{icon:function(){return ir$(W(),h==null?void 0:h()).iconName}}))))},"Qf");var vCg=_.GK(function(F){var W=F.volumeProps;var E=F.onClickFn;var h=F.useOutlineIcon;return _.z("yt-mute-toggle-button",null,_.z(BV$,{muteIconType:function(){var d=W(),V=!_.c("mweb_treat_zero_volume_as_muted_killswitch")&&d.volume===0;return d.volumeMuted||V?0:1},
onClick:function(d){var V=W().playerApi;V&&(V.isMuted()?V.unMute():V.mute(!1));E==null||E(d)},
useOutlineIcon:function(){return!(h==null||!h())}}))},"Rf");
vCg.idomCompat=!0;var IJ$=_.GK(function(F){var W=F.data;var E=_.uf();F=_.tb(function(){E.value.classList.add("ytmPaidContentOverlayHidden");return!1});
return _.z("ytm-paid-content-overlay-renderer",{class:"ytmPaidContentOverlayHost",el:E,"on:animationend":F},_.z(_.kY,{command:function(){return W().navigationEndpoint},
className:"ytmPaidContentOverlayLink"},_.z(_.v,{cond:function(){var h;return(h=W().icon)==null?void 0:h.iconType},
then:function(){return _.z("span",null,_.z(_.I3,{icon:function(){var h;return(h=W().icon)==null?void 0:h.iconType}}))}}),_.z("div",{class:"ytmPaidContentOverlayText"},_.z(_.Ab,{text:function(){return W().text}})),_.z(_.v,{cond:function(){return W().navigationEndpoint},
then:function(){return _.z(_.I3,{icon:"CHEVRON_RIGHT"})}})))},"Sf");
IJ$.idomCompat=!0;var rv6=[].concat(_.x9([{register:function(F){var W=KjF(F),E;(E=F().playerApi)==null||E.addEventListener("onVolumeChange",W);return function(){}}},
{register:function(F){var W=F66(F);F=F().playerApi;F==null||F.addEventListener("captionschanged",W);F==null||F.addEventListener("captionssettingschanged",W);F==null||F.addEventListener("onCaptionsTrackListChanged",W);return function(){}}},
{register:function(F){if(!_.c("mweb_screenreader_accessible_player"))return function(){};
var W=W6N(F),E=document.querySelector("video");E==null||E.addEventListener("touchend",W);return function(){E==null||E.removeEventListener("touchend",W)}}},
{register:function(F){if(!_.c("mweb_screenreader_detect_screenreader_user_focus"))return function(){};
var W=W6N(F),E=document.querySelector("video");E==null||E.addEventListener("focus",W);return function(){E==null||E.removeEventListener("focus",W)}}}]),[{register:function(F){var W=ug6(F),E;
(E=F().playerApi)==null||E.addEventListener("onStateChange",W);return function(){}}},
{register:function(F){var W=S28(F),E;(E=F().playerApi)==null||E.addEventListener("onPlaybackRateChange",W);return function(){}}},
{register:function(F){var W=pb6(F),E;(E=F().playerApi)==null||E.addEventListener("onVideoDataChange",W);return function(){}}},
{register:function(F){var W=mTO(F),E,h;(E=F())==null||(h=E.playerApi)==null||h.addEventListener("onVideoProgress",W);return function(){}}}]);var ccT=_.GK(function(F){var W=F.data;var E=function(){return _.CY("PLAYBACK_SPEED_X",{speed_rate_placeholder:""+W().playbackRate})};
return _.z(_.v,{cond:function(){return W().playbackRate&&W().playbackRate!==1},
then:function(){return _.z("yt-playback-rate-overlay",{class:"ytPlaybackRateOverlayHost"},_.z("div",{class:"ytPlaybackRateOverlayOverlay"},_.z(t5F,{direction:1,size:"small"}),_.z("div",{class:"ytPlaybackRateOverlayLabel"},E)))}})},"Tf");var D0w=_.GK(function(F){var W=F.data;return _.z("div",{class:"ytInlinePlayerControlsTopLeftControls"},_.z(_.v,{cond:function(){var E,h=(E=W())==null?void 0:E.playerResponse,d;return h==null?void 0:(d=h.paidContentOverlay)==null?void 0:d.paidContentOverlayRenderer},
then:function(E){return _.z(IJ$,{data:E})}}))},"Vf"),x0O=_.GK(function(F){var W=F.props;
var E=F.data;var h=F.options;var d=function(){var t,C,B,I;return(t=E())==null?void 0:(C=t.playerResponse)==null?void 0:(B=C.playerConfig)==null?void 0:(I=B.inlinePlaybackConfig)==null?void 0:I.showAudioControls},V=function(){var t,C;
if(d()&&((t=h())==null?void 0:(C=t.additionalButton)==null?void 0:C.button)!==void 0){var B,I,x;t=(B=E())==null?void 0:(I=B.playerApi)==null?void 0:(x=I.getSize())==null?void 0:x.height;if(!(t===void 0||t<180)){var A,X;return(A=h())==null?void 0:(X=A.additionalButton)==null?void 0:X.button}}},R=function(){var t,C;
return(t=h())==null?void 0:(C=t.additionalButton)==null?void 0:C.thumbnailOverlayButtonRenderers},M=function(){var t,C;
return(t=h())==null?void 0:(C=t.additionalButton)==null?void 0:C.thumbnailOverlayButtonViewModels},g=function(){var t=[_.z(vCg,{volumeProps:W}),
_.z(QA$,{playerControlsProps:W})];V()===1&&t.push(_.z(V56,{playerApi:function(){return W().playerApi}}));
V()===2&&t.push(_.z(U0T,{appApi:function(){return W().appApi}}));
V()===3&&t.push(_.z(Rxx,{playerApi:function(){return W().playerApi}}));
var C=R();if(V()===4&&C){C=_.U(C);for(var B=C.next(),I={};!B.done;I={tooltip$jscomp$2:void 0,ariaLabel$jscomp$20:void 0,icon$jscomp$53:void 0,command$jscomp$569:void 0},B=C.next()){B=B.value;I.tooltip$jscomp$2=B.tooltip;var x=void 0,A=void 0;I.ariaLabel$jscomp$20=((x=B.accessibility)==null?void 0:(A=x.accessibilityData)==null?void 0:A.label)||I.tooltip$jscomp$2;x=void 0;I.icon$jscomp$53=(x=B.icon)==null?void 0:x.iconType;I.command$jscomp$569=B.command;I.tooltip$jscomp$2&&I.ariaLabel$jscomp$20&&I.icon$jscomp$53&&
t.push(_.z(exK,{title:function(X){return function(){return X.tooltip$jscomp$2}}(I),
ariaLabel:function(X){return function(){return X.ariaLabel$jscomp$20}}(I),
icon:function(X){return function(){return X.icon$jscomp$53}}(I),
command:function(X){return function(){return X.command$jscomp$569}}(I)}))}}C=M();
if(V()===4&&C)for(C=_.U(C),B=C.next(),I={};!B.done;I={tooltip$jscomp$3:void 0,ariaLabel$jscomp$21:void 0,icon$jscomp$54:void 0,command$jscomp$570:void 0},B=C.next())B=B.value,I.tooltip$jscomp$3=B.title,I.ariaLabel$jscomp$21=B.accessibilityText||I.tooltip$jscomp$3,I.icon$jscomp$54=B.iconName,I.command$jscomp$570=_.He(B.onTap),I.tooltip$jscomp$3&&I.ariaLabel$jscomp$21&&I.icon$jscomp$54&&t.push(_.z(exK,{title:function(X){return function(){return X.tooltip$jscomp$3}}(I),
ariaLabel:function(X){return function(){return X.ariaLabel$jscomp$21}}(I),
icon:function(X){return function(){return X.icon$jscomp$54}}(I),
command:function(X){return function(){return X.command$jscomp$570}}(I)}));
return t};
return _.z(_.v,{cond:d,then:function(){return _.z("div",{class:"ytInlinePlayerControlsTopRightControls"},_.z(_.xF,{each:g},function(t){return _.z("div",{class:"ytInlinePlayerControlsTopRightControlsCircleButton"},_.z("div",{class:"ytInlinePlayerControlsButtonIcon"},t))}))}})},"Wf"),sAu=_.GK(function(F){var W=F.props;
var E=F.data;var h=F.options;F={};F=_.ec("ytInlinePlayerControlsBottomRightControls",(F.ytInlinePlayerControlsBottomRightControlsHidden=function(){var d;return hFx(E(),h())&&((d=h())==null?void 0:d.insetProgressBar)&&(W().isHovering||W().isDragging)},F));
return _.z("div",{class:F},_.z(kCK,{data:E}),_.z(_.v,{cond:function(){var d;return!((d=h())==null?0:d.hideTimeDisplay)},
then:function(){return _.z(AcT,{props:W,data:E})}}))},"Xf"),kCK=_.GK(function(F){var W=F.data;
return _.z(_.a6,{data:function(){var E;return br6((E=W())==null?void 0:E.thumbnailOverlays)}},{premiereTrailerBadgeRenderer:zxg})},"Yf"),AcT=_.GK(function(F){var W=F.props;
var E=F.data;return _.z(_.v,{cond:function(){return W().isLive},
then:function(){return _.z(Le$,null)},
else:function(){return _.z(qJK,{props:W,data:E})}})},"Zf"),qJK=_.GK(function(F){var W=F.props;
var E=F.data;var h=_.vX(function(){var d;return nju((d=E())==null?void 0:d.thumbnailOverlays)},void 0,"kUmuA");
return _.z("div",{class:_.ec("ytInlinePlayerControlsTimeDisplay"),"aria-label":function(){return _.w0.PLAYER_TIME_ELAPSED+" "+_.rYI(W().playedTime)}},_.z(_.hD,{data:function(){var d=_.rYI(W().videoDuration-W().playedTime);
return Object.assign({},{type:16,text:d},h())}}))},"$f"),Le$=_.GK(function(){return _.z("div",{class:_.ec("ytInlinePlayerControlsTimeDisplay","ytInlinePlayerControlsLiveBadge")},_.z(_.hD,{data:{type:17,
text:_.w0.PLAYER_LIVE_LABEL,icon:"LIVE"}}))},"ag"),$08=_.GK(function(F){var W=F.props;
var E=F.data;var h=F.options;return _.z(_.KpP,{progressBarProps:W,config:function(){var d,V=_.D((d=E())==null?void 0:d.multiMarkersPlayerBar,_.s0c),R;d=((R=h())==null?0:R.insetProgressBar)?2:1;var M;R=(M=h())==null?void 0:M.useFinePointerTargetSizes;return{unmuteOnSeek:!1,position:d,chapterData:V,isInlinePlayback:!0,doSeekOnClick:R,playheadDotBehavior:R?1:0}}})},"bg");_.pK(_.GK(function(F){var W=F.data;var E=F.appApi;var h=F.options;var d=wbg(W,Ep6(E));F={};E={};return _.z("yt-inline-player-controls",{class:"ytInlinePlayerControlsHost"},_.z("div",{class:_.ec("ytInlinePlayerControlsDarkenedOverlay",(F.ytInlinePlayerControlsDarkenedOverlayShow=function(){return d().isHovering},F))}),_.z(Cdx,null),_.z(ccT,{data:d}),_.z(D0w,{data:W}),_.z(NVu,{playerControlsProps:d,
isShortsPage:!1}),_.z("div",{class:_.ec((E.ytInlinePlayerControlsControlsHidden=function(){return d().isDragging},E))},_.z(x0O,{props:d,
data:W,options:h}),_.z(sAu,{props:d,data:W,options:h})),_.z(_.v,{cond:function(){return hFx(W(),h())},
then:function(){return _.z($08,{props:d,data:W,options:h})}}))},"Uf"),"yt-inline-player-controls",{props:{data:_.TS,
appApi:_.Si,options:_.TS}});var uc=function(){var F=_.n.apply(this,arguments)||this;F.opts=null;F.playerControlsData=null;F.playerControlsAppApi={openInMiniplayer:function(){F.openInMiniplayer()}};
F.playerControlsOptions={};F.noAnimation=!1;F.playbackIntentTriggered=!1;F.positionData=null;F.hidden=!0;F.active=!1;F.playing=!1;F.videoPreviewDataIndex=0;F.JSC$16805_playerPromise=null;F.player=null;F.enableAudioControls=!1;F.hasBeenUnmuted=!1;F.captionsHaveBeenTurnedOff=!1;F.JSC$16805_playerEvents=new Map;F.videoPreviewFetchRequest=null;F.scheduledPreviewEndJobId=null;F.JSC$16805_preventProgressSaveTimer=null;F.watchEndpointStartTimeUpdaterInterval=null;F.actionMap={"yt-open-video-preview-action":"handleOpenVideoPreviewAction",
"yt-terminate-video-preview-action":"onTerminateVideoPreviewAction","yt-get-inline-preview-player-action":"getInlinePreviewPlayer","yt-window-resized":"onWindowResized"};F.windowOnBlurFn=function(){F.deactivate()};
return F};
_.k(uc,_.n);_.N=uc.prototype;
_.N.configureRendererStamper=function(){return{"opts.videoPreviewData.thumbnailOverlays":_.c("web_enable_rich_item_on_focus_effect")?{id:"endorsement",mapping:{}}:{id:"endorsement",mapping:{thumbnailOverlayEndorsementRenderer:{component:"ytd-thumbnail-overlay-endorsement-renderer",params:{disableAnimation:!0,rounded:!0}},attributionViewModel:{component:"yt-thumbnail-overlay-attribution-view-model"}}},"videoPreviewData.thumbnailOverlays":{id:"overlays",mapping:{pageIndicatorViewModel:"yt-page-indicator-view-model",thumbnailOverlayBottomPanelRenderer:"ytd-thumbnail-overlay-bottom-panel-renderer",
thumbnailOverlayTitleViewModel:"yt-thumbnail-overlay-title-view-model"}}}};
_.N.attached=function(){window.addEventListener("blur",this.windowOnBlurFn);this.JSC$16805_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$16805_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$16805_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete);this.JSC$16805_playerEvents.set("captionschanged",this.onCaptionsChanged);document.addEventListener("yt-page-type-changed",_.UO(this,this.onPageTypeChange));this.pagePath=location.pathname;window.addEventListener("scroll",
_.UO(this,this.onScroll))};
_.N.detached=function(){window.removeEventListener("blur",this.windowOnBlurFn);window.removeEventListener("scroll",_.UO(this,this.onScroll))};
_.N.onPageTypeChange=function(){this.deactivate()};
_.N.onWindowResized=function(){this.deactivate()};
_.N.onCaptionsChanged=function(F){F=!!F.languageCode;this.playing&&this.allowCaptions()&&(this.captionsHaveBeenTurnedOff=!F);this.setCaptionSize()};
_.N.setCaptionSize=function(){var F;if(this.active&&!this.captionsHaveBeenTurnedOff&&((F=this.player)==null?0:F.getCaptionWindowContainerId())){var W;(W=this.player)==null||W.updateSubtitlesUserSettings({fontSizeIncrement:2},!1)}};
_.N.currentPageAllowed=function(){return!this.isWatchPage};
_.N.alignVideoPreviewForAnimation=function(){this.hidden=!1;this.noAnimation=!0;this.positionData=this.getThumbnailPositionData();if(!this.positionData)return!1;var F=this.positionData,W=F.initialTopPosition,E=F.initialHorizontalPosition;_.V9(this.hostElement,{"--ytd-video-preview-translate-left":F.finalHorizontalPosition-E+"px","--ytd-video-preview-translate-top":F.finalTopPosition-W+"px","--ytd-video-preview-original-top-position":W+"px","--ytd-video-preview-original-horizontal-position":E+"px",
"--ytd-video-preview-initial-scale":"scale("+F.initialScale+")","--ytd-video-preview-width":F.videoPreviewWidth+"px","--ytd-video-preview-height":F.videoPreviewHeight+"px"});return!0};
_.N.handleOpenVideoPreviewAction=function(F){var W=this,E;return _.e(function(h){if(!W.currentPageAllowed())return h.return(0);W.opts=F;return(E=W.alignVideoPreviewForAnimation(F.thumbnail))?h.return(W.activate()):h.return(0)})};
_.N.onMouseLeave=function(F){this.shouldDeactivateOnMouseLeave(F)&&this.deactivate()};
_.N.onScroll=function(){var F,W;((F=this.opts)==null?0:F.isAutoplay)&&((W=this.opts)==null?0:W.mediaRenderer)&&this.opts.mediaRenderer.getBoundingClientRect().top<0&&this.deactivate()};
_.N.optsChanged=function(){this.scheduledPreviewEndJobId&&(_.P0.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=null)};
_.N.onInlinePreviewIsEnabledChange=function(){!this.inlinePreviewIsEnabled&&this.playbackIntentTriggered&&this.deactivate()};
_.N.onIsAdsVideoChange=function(){this.isAdsVideo&&this.ytSparklesClickLocationBehavior.configureClickTargets("video-preview-container",uc.JSC$16804_DEFAULT_CLICK_LOCATION_BEHAVIOR,uc.JSC$16804_CLICK_LOCATION_ID_MAP)};
_.N.shouldDeactivateOnMouseLeave=function(F){F=F.relatedTarget;if(!F)return!0;var W;return(W=this.opts)!=null&&W.mediaRenderer?!_.Fm(this.opts.mediaRenderer).contains(F):!0};
_.N.onPlayerStateChange=function(){this.player&&this.player.getPlayerState()===0&&(this.hasMultipleVideoPreviews()?this.startPlaybackForNextVideo():this.deactivate({resetWatchEndpointStartTime:!0}))};
_.N.onPlaybackStart=function(){var F=this;if(this.player&&this.playbackIntentTriggered&&this.currentPageAllowed()){this.playing=!0;this.allowUnmuting()&&this.hasBeenUnmuted&&(this.player.unMute(),this.player.syncVolume());this.player.isSubtitlesOn()?this.captionsHaveBeenTurnedOff||!this.allowCaptions()?this.player.toggleSubtitles():this.setCaptionSize():!this.captionsHaveBeenTurnedOff&&this.allowCaptions()&&this.player.toggleSubtitles();this.resetPreventProgressSaveTimer();this.JSC$16805_preventProgressSaveTimer=
_.Ed(_.P0,function(){F.resetPreventProgressSaveTimer()},1E4);
var W;if((W=this.opts)==null?0:W.videoPreviewDurationMs)this.scheduledPreviewEndJobId=_.Ed(_.P0,function(){F.hasMultipleVideoPreviews()?F.startPlaybackForNextVideo():F.deactivate()},this.opts.videoPreviewDurationMs);
var E;this.player.setGlobalCrop(((E=this.opts)==null?0:E.cropPlayerToFillThumbnailHorizontally)?"fullwidth":null)}};
_.N.getRoundedCornersSize=function(){var F;if((F=this.opts)==null?0:F.roundedCornersSize){var W;return(W=this.opts)==null?void 0:W.roundedCornersSize}var E;if((E=this.opts)==null?0:E.enableRounding){var h;if(((h=this.opts)==null?void 0:h.thumbnailSize)==="small")return 1;var d;if(((d=this.opts)==null?void 0:d.thumbnailSize)==="medium")return 2;var V;if(((V=this.opts)==null?void 0:V.thumbnailSize)==="large")return 3}return _.c("web_imp_inset_progress_bar")?3:0};
_.N.onSeekComplete=function(){this.resetPreventProgressSaveTimer()};
_.N.onTerminateVideoPreviewAction=function(){this.deactivate()};
_.N.onMediaContainerClick=function(F){this.isShortcutClick(F)||(this.navigateToWatch(F),F.preventDefault(),F.stopPropagation())};
_.N.activate=function(){var F=this,W,E,h,d,V,R,M,g,t;return _.e(function(C){switch(C.nextAddress){case 1:if(!F.currentPageAllowed())return C.return(0);E=(W=F.videoPreviewData)==null?void 0:W.inlinePlaybackEndpoint;h=_.iz.instance;if(!E||!h)return C.return(0);F.playbackIntentTriggered=!0;((d=F.opts)==null?0:d.mediaRenderer)&&((V=F.opts)==null||!V.isAutoplay)&&fqq(F.opts.mediaRenderer,function(){F.deactivate()});
_.wT(F,function(){F.revealPreviewUi()});
R={};_.c("enable_unknown_lact_fix_on_html5")&&(_.WZ().resolve(_.$Y),R.lact=_.hV());F.videoPreviewFetchRequest=Zrg(h,F.getInlinePlaybackRequestData(F.videoPreviewData),R);_.Nl(C,2);return _.Q(C,F.videoPreviewFetchRequest,4);case 4:M=C.yieldResult;if(((g=M)==null?void 0:(t=g.playabilityStatus)==null?void 0:t.status)==="OK")return C.return(F.handlePlayerResponse(M));throw Error("Ij");case 2:_.Ml(C),F.deactivate();case 3:return C.return(1)}})};
_.N.getInlinePlaybackRequestData=function(F){var W,E=_.c("web_imp_player_mute_params")?((W=this.opts)==null?void 0:W.forceMutedVolume)||!this.hasBeenUnmuted:!0;return{endpoint:F.inlinePlaybackEndpoint,startPlaybackInMutedState:E}};
_.N.handlePlayerResponse=function(F){var W=this,E,h,d,V,R,M,g,t,C,B;return _.e(function(I){if(I.nextAddress==1){E=W.getInlinePlaybackVideoId();if(!(((h=F)==null?0:(d=h.videoDetails)==null?0:d.videoId)&&W.currentPageAllowed()&&W.playbackIntentTriggered&&W.opts&&E))return W.deactivate(),I.return(0);if(F.videoDetails.videoId!==E)return I.return(0);W.enableAudioControls=!!((V=F.playerConfig)==null?0:(R=V.inlinePlaybackConfig)==null?0:R.showAudioControls);F.trackingParams=W.getInlinePlaybackTrackingParams();
if(!W.inlinePlayer)return I.return(0);M={};if(t=_.D((g=W.videoPreviewData)==null?void 0:g.inlinePlaybackEndpoint,_.GM))M.watch_endpoint=t;if(W.videoPreviewData){var x,A=(x=_.D(W.videoPreviewData.inlinePlaybackEndpoint,_.GM))==null?void 0:x.startTimeSeconds;A!==void 0&&(F.playerConfig||(F.playerConfig={}),F.playerConfig.playbackStartConfig||(F.playerConfig.playbackStartConfig={}),F.playerConfig.playbackStartConfig.startPosition||(F.playerConfig.playbackStartConfig.startPosition={}),F.playerConfig.playbackStartConfig.startSeconds=
A,F.playerConfig.playbackStartConfig.startPosition.streamTimeMillis=String(A*1E3))}W.inlinePlayer.loadVideoWithPlayerResponse(F,M);if(W.JSC$16805_playerPromise)return I.jumpTo(2);W.JSC$16805_playerPromise=W.inlinePlayer.getPlayerPromise();return _.Q(I,W.JSC$16805_playerPromise,3)}I.nextAddress!=2&&(C=I.yieldResult,C.setInlinePreview(!0),C.setSizeStyle(!1,!0),W.ytPlayerListenerBehavior.listenToPlayerEvents(C,W.JSC$16805_playerEvents),W.player=C,_.hF(W.hostElement,"player-api-ready"));((B=W.opts)==
null?0:B.showPlayerControls)&&W.videoPreviewData&&W.player&&(W.playerControlsData={playerResponse:F,isInlinePlayback:!0,thumbnailOverlays:W.videoPreviewData.thumbnailOverlays,playerApi:W.player},W.playerControlsOptions={useFinePointerTargetSizes:!0,insetProgressBar:!W.unroundCornersForPlayback,additionalButton:W.getAdditionalButtonType(W.videoPreviewData.thumbnailOverlays)});return I.return(2)})};
_.N.revealPreviewUi=function(){var F=this;this.playbackIntentTriggered&&_.OIo(this,function(){F.hasThumbnailPositionChangedSinceTriggered()||(F.updateActiveState(!0),F.noAnimation=!1)})};
_.N.hasThumbnailPositionChangedSinceTriggered=function(){var F=this.positionData,W=this.getThumbnailPositionData();return(F==null?void 0:F.initialTopPosition)!==(W==null?void 0:W.initialTopPosition)||(F==null?void 0:F.initialHorizontalPosition)!==(W==null?void 0:W.initialHorizontalPosition)};
_.N.getThumbnailPositionData=function(){var F,W;if((W=this.opts)==null||!W.thumbnail)return null;W=this.opts.thumbnail;var E=((F=this.opts)==null?0:F.cropPlayerToFillThumbnailHorizontally)?!1:!0;var h=W.getBoundingClientRect();F=h.width;W=h.height;var d=h.top+window.scrollY;h=h.left+window.scrollX;var V=E?Math.ceil(F):F;E=E?Math.ceil(W):W;var R=F/V;F={initialScale:R,initialTopPosition:d-12*R,finalTopPosition:d-12-(E-W)/2,initialHorizontalPosition:h-(12+(V-F)/2),finalHorizontalPosition:h-12-(V-F)/
2,videoPreviewWidth:V,videoPreviewHeight:E};return F};
_.N.updateActiveState=function(F){this.active=F;this.ytdReduxBehavior.dispatch(_.dR({type:"SET_INLINE_PREVIEW_IS_ACTIVE",payload:F}))};
_.N.stopPlayer=function(F){F=F.resetWatchEndpointStartTime===void 0?!1:F.resetWatchEndpointStartTime;this.player&&(this.active&&(this.playing&&this.allowUnmuting()&&(this.hasBeenUnmuted=!this.player.isMuted()),this.updateWatchEndpointStartTime(F)),this.player.setPlaybackRate(1),this.player.stopVideo());this.playing=!1;this.videoPreviewFetchRequest=null;this.resetPreventProgressSaveTimer();this.endStartTimeUpdater();this.scheduledPreviewEndJobId&&(_.P0.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=
null)};
_.N.deactivate=function(F){F=F===void 0?{}:F;F=F.resetWatchEndpointStartTime===void 0?!1:F.resetWatchEndpointStartTime;V2&&(V2.disconnect(),V2=null);this.stopPlayer({resetWatchEndpointStartTime:F});this.updateActiveState(!1);this.playbackIntentTriggered=!1;this.videoPreviewDataIndex=0;this.opts=null;this.hidden=!0;this.playerControlsData=null};
_.N.isValidThumbnailOverlayButton=function(F,W){F=F.thumbnailOverlayButtonRenderer;var E;return!!F&&!!F.tooltip&&!((E=F.icon)==null||!E.iconType)&&W.includes(F.icon.iconType)};
_.N.isValidThumbnailOverlayButtonViewModel=function(F,W){var E;F=_.D((E=F.thumbnailOverlayButtonViewModel)==null?void 0:E.overlayButton,_.fx);return!!F&&!!F.title&&!!F.iconName&&W.includes(F.iconName)};
_.N.getAdditionalButtonType=function(F){var W=this;if(_.c("web_imp_fastforward_button"))return{button:1};if(_.c("web_imp_miniplayer_button"))return{button:2};if(_.c("web_imp_playback_speed_button"))return{button:3};var E=["AUTO_AWESOME"],h=(F||[]).filter(function(V){return W.isValidThumbnailOverlayButton(V,E)}).map(function(V){return V.thumbnailOverlayButtonRenderer});
if(h.length)return{button:4,thumbnailOverlayButtonRenderers:h};var d=["AUTO_AWESOME"];F=(F||[]).filter(function(V){return W.isValidThumbnailOverlayButtonViewModel(V,d)}).map(function(V){return _.D(V.thumbnailOverlayButtonViewModel.overlayButton,_.fx)});
if(F.length)return{button:4,thumbnailOverlayButtonViewModels:F}};
_.N.allowCaptions=function(){var F;return!((F=this.opts)==null?0:F.forceCaptionsOff)};
_.N.allowUnmuting=function(){var F;return this.enableAudioControls&&!((F=this.opts)==null?0:F.forceMutedVolume)};
_.N.beginStartTimeUpdater=function(){var F=this;this.endStartTimeUpdater();this.watchEndpointStartTimeUpdaterInterval=_.e5(function(){F.updateWatchEndpointStartTime()},1E3)};
_.N.endStartTimeUpdater=function(){this.watchEndpointStartTimeUpdaterInterval!==null&&window.clearInterval(this.watchEndpointStartTimeUpdaterInterval);this.watchEndpointStartTimeUpdaterInterval=null};
_.N.resetPreventProgressSaveTimer=function(){this.JSC$16805_preventProgressSaveTimer!==null&&(_.P0.cancelJob(this.JSC$16805_preventProgressSaveTimer),this.JSC$16805_preventProgressSaveTimer=null,this.hasMultipleVideoPreviews()||this.beginStartTimeUpdater())};
_.N.updateWatchEndpointStartTime=function(F){var W=this.videoPreviewData;if(this.player&&W!=null&&W.inlinePlaybackEndpoint&&!this.JSC$16805_preventProgressSaveTimer){F=F?0:Math.floor(this.player.getCurrentTime());var E=_.D(W.navigationEndpoint,_.GM);E&&(E.startTimeSeconds=F);if(W=_.D(W.inlinePlaybackEndpoint,_.GM))W.startTimeSeconds=F}};
_.N.isShortcutClick=function(F){return!!F&&(F.ctrlKey||F.shiftKey||F.metaKey)};
_.N.getInlinePreviewPlayer=function(){return this.inlinePlayer};
_.N.openInMiniplayer=function(){var F=this,W,E;return _.e(function(h){if(h.nextAddress==1){E=(W=F.videoPreviewData)==null?void 0:W.navigationEndpoint;if(!E)return h.return();_.DT().lockupActivation=!0;return _.Q(h,_.xkT(_.WZ().resolve(_.GF),E),2)}_.DT().userActivation=!0;_.gG(h)})};
_.N.navigateToWatch=function(F){var W,E=(W=this.videoPreviewData)==null?void 0:W.navigationEndpoint;if(E){if(this.isAdsVideo)this.ytSparklesClickLocationBehavior.handleClick(E,F,!0);else{if(_.c("web_thumbnail_to_watch_transition")){var h,d;(h=this.opts)==null||(d=h.onNavigateToWatchCallback)==null||d.call(h)}_.hF(this.hostElement,"yt-navigate",{endpoint:E})}this.deactivate()}};
_.N.getInlinePlaybackVideoId=function(){var F,W;return(W=_.D((F=this.videoPreviewData)==null?void 0:F.inlinePlaybackEndpoint,_.GM))==null?void 0:W.videoId};
_.N.getInlinePlaybackTrackingParams=function(){var F,W;return(F=this.videoPreviewData)==null?void 0:(W=F.inlinePlaybackEndpoint)==null?void 0:W.clickTrackingParams};
_.N.hasMultipleVideoPreviews=function(){var F;return!!(((F=this.opts)==null?0:F.videoPreviewData)&&Array.isArray(this.opts.videoPreviewData))};
_.N.startPlaybackForNextVideo=function(){var F;(F=this.opts)!=null&&F.videoPreviewData&&Array.isArray(this.opts.videoPreviewData)&&this.opts.videoPreviewData.length!==0&&(this.videoPreviewDataIndex=(this.videoPreviewDataIndex+1)%this.opts.videoPreviewData.length,this.stopPlayer({resetWatchEndpointStartTime:!0}),this.activate())};
_.Sn.Object.defineProperties(uc.prototype,{thumbnailData:{configurable:!0,enumerable:!0,get:function(){return this.videoPreviewData?{thumbnail:this.videoPreviewData.thumbnail}:null}},
hidePlayerControls:{configurable:!0,enumerable:!0,get:function(){var F;return!((F=this.opts)==null?0:F.showPlayerControls)||!this.active}},
isAdsVideo:{configurable:!0,enumerable:!0,get:function(){var F;return!((F=this.opts)==null||!F.isAdsVideo)}},
roundedCornersSmall:{configurable:!0,enumerable:!0,get:function(){return this.getRoundedCornersSize()===1}},
roundedCornersMedium:{configurable:!0,enumerable:!0,get:function(){return this.getRoundedCornersSize()===2}},
roundedCornersLarge:{configurable:!0,enumerable:!0,get:function(){return this.getRoundedCornersSize()===3}},
unroundCornersForPlayback:{configurable:!0,enumerable:!0,get:function(){return this.getRoundedCornersSize()===0}},
videoPreviewData:{configurable:!0,enumerable:!0,get:function(){var F;if(Array.isArray((F=this.opts)==null?void 0:F.videoPreviewData)){var W;return(W=this.opts)==null?void 0:W.videoPreviewData[this.videoPreviewDataIndex]}var E;return(E=this.opts)==null?void 0:E.videoPreviewData}}});
uc.prototype.onIsAdsVideoChange=uc.prototype.onIsAdsVideoChange;uc.prototype.onInlinePreviewIsEnabledChange=uc.prototype.onInlinePreviewIsEnabledChange;uc.prototype.optsChanged=uc.prototype.optsChanged;uc.prototype.onMouseLeave=uc.prototype.onMouseLeave;uc.JSC$16804_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","media-container"]]);uc.JSC$16804_DEFAULT_CLICK_LOCATION_BEHAVIOR=[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL",code:21,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"}];
_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],uc.prototype,"actionHandlerBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],uc.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.om.YtPlayerListenerBehavior),_.Y("design:type",_.G$)],uc.prototype,"ytPlayerListenerBehavior",void 0);_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],uc.prototype,"componentBehavior",void 0);
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],uc.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.am),_.Y("design:type",Object)],uc.prototype,"ytdReduxBehavior",void 0);_.T([_.J(_.FJ.YtSparklesClickLocationBehavior),_.Y("design:type",Object)],uc.prototype,"ytSparklesClickLocationBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],uc.prototype,"opts",void 0);_.T([_.O(),_.Y("design:type",Object)],uc.prototype,"playerControlsData",void 0);
_.T([_.O(),_.Y("design:type",Object)],uc.prototype,"playerControlsAppApi",void 0);_.T([_.O(),_.Y("design:type",Object)],uc.prototype,"playerControlsOptions",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],uc.prototype,"noAnimation",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],uc.prototype,"hidden",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],uc.prototype,"active",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],uc.prototype,"playing",void 0);_.T([_.O({selector:_.A7o}),_.Y("design:type",Boolean)],uc.prototype,"inlinePreviewIsEnabled",void 0);_.T([_.O(),_.Y("design:type",String)],uc.prototype,"pagePath",void 0);_.T([_.O({selector:_.JE}),_.Y("design:type",Boolean)],uc.prototype,"isWatchPage",void 0);_.T([_.a("videoPreviewData"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],uc.prototype,"thumbnailData",null);
_.T([_.a("opts","active"),_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],uc.prototype,"hidePlayerControls",null);_.T([_.a("opts"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],uc.prototype,"isAdsVideo",null);_.T([_.a("opts"),_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],uc.prototype,"roundedCornersSmall",null);
_.T([_.a("opts"),_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],uc.prototype,"roundedCornersMedium",null);_.T([_.a("opts"),_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],uc.prototype,"roundedCornersLarge",null);_.T([_.a("opts"),_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],uc.prototype,"unroundCornersForPlayback",null);
_.T([_.a("opts","videoPreviewDataIndex"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],uc.prototype,"videoPreviewData",null);_.T([_.O(),_.Y("design:type",Object)],uc.prototype,"videoPreviewDataIndex",void 0);_.T([_.gQ("#inline-player"),_.Y("design:type",Object)],uc.prototype,"inlinePlayer",void 0);_.T([_.R4("mouseleave"),_.Y("design:type",Function),_.Y("design:paramtypes",[MouseEvent]),_.Y("design:returntype")],uc.prototype,"onMouseLeave",null);
_.T([_.Cz("opts"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],uc.prototype,"optsChanged",null);_.T([_.Cz("inlinePreviewIsEnabled"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],uc.prototype,"onInlinePreviewIsEnabledChange",null);_.T([_.ea("isAdsVideo"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],uc.prototype,"onIsAdsVideoChange",null);
uc=_.T([_.y({is:"ytd-video-preview",disableElementRegistration:!0})],uc);
_.r(uc,"ytd-video-preview",function(){if(d08!==void 0)return d08;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-preview--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="video-preview-container" class="style-scope ytd-video-preview">\n  <div id="endorsement" class="style-scope ytd-video-preview"></div>\n  <div id="media-container" class="style-scope ytd-video-preview">\n    <a id="media-container-link" class="yt-simple-endpoint style-scope ytd-video-preview" href$="[[computeHref_(videoPreviewData.navigationEndpoint)]]" data="[[videoPreviewData.navigationEndpoint]]" aria-label$="[[videoPreviewData.accessibilityText]]" on-click="onMediaContainerClick">\n      <div id="thumbnail-container" class="style-scope ytd-video-preview">\n        <ytd-thumbnail data="[[thumbnailData]]" hovered="false" no-rounded-corners="" object-fit="COVER" rich-grid-thumbnail="" width="9999" class="style-scope ytd-video-preview">\n        </ytd-thumbnail>\n      </div>\n      <div id="player-container" class="style-scope ytd-video-preview">\n        <ytd-player id="inline-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_INLINE_PREVIEW" class="style-scope ytd-video-preview">\n        </ytd-player>\n      </div>\n      <div id="overlays" class="style-scope ytd-video-preview"></div>\n    </a>\n    <div id="player-controls" class="style-scope ytd-video-preview">\n      <template is="dom-if" if="[[!!playerControlsData]]" class="style-scope ytd-video-preview">\n        <yt-inline-player-controls app-api="[[playerControlsAppApi]]" data="[[playerControlsData]]" options="[[playerControlsOptions]]" class="style-scope ytd-video-preview"></yt-inline-player-controls>\n      </template>\n    </div>\n  </div>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return d08=F},{mode:2});
}catch(e){_._DumpException(e)}
try{
var q08;var $lx;/*

Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
_.k3({_template:function(){if($lx!==void 0)return $lx;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-checkbox--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_checkbox.tp.yt.paper.checkbox.css.js--\x3e<div id="checkboxContainer" class="style-scope tp-yt-paper-checkbox">\n  <div id="checkbox" class$="[[_computeCheckboxClass(checked, invalid)]] style-scope tp-yt-paper-checkbox">\n    <div id="checkmark" class$="[[_computeCheckmarkClass(checked)]] style-scope tp-yt-paper-checkbox"></div>\n  </div>\n</div><div id="checkboxLabel" style-target="label" class="style-scope tp-yt-paper-checkbox"><slot class="style-scope tp-yt-paper-checkbox"></slot></div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);var W=F.content,E=W.insertBefore;q08===void 0&&(q08=document.createElement("template"));var h=q08;E.call(W,h.content.cloneNode(!0),F.content.firstChild);return $lx=F},
is:"tp-yt-paper-checkbox",behaviors:[_.Y8B],hostAttributes:{role:"checkbox","aria-checked":!1,tabindex:0},properties:{ariaActiveAttribute:{type:String,value:"aria-checked"}},attached:function(){_.wT(this,function(){if(this.getComputedStyleValue("--calculated-paper-checkbox-ink-size").trim()==="-1px"){var F=this.getComputedStyleValue("--calculated-paper-checkbox-size").trim(),W="px",E=F.match(/[A-Za-z]+$/);E!==null&&(W=E[0]);F=parseFloat(F);E=8/3*F;W==="px"&&(E=Math.floor(E),E%2!==F%2&&E++);this.updateStyles({"--paper-checkbox-ink-size":E+
W})}})},
_computeCheckboxClass:function(F,W){var E="";F&&(E+="checked ");W&&(E+="invalid");return E},
_computeCheckmarkClass:function(F){return F?"":"hidden"},
_createRipple:function(){this._rippleContainer=this.$.checkboxContainer;return _.oVB._createRipple.call(this)}});var ZLw=new _.S("radioButtonSurveyOptionRenderer"),Xw$=new _.S("checkboxSurveyOptionRenderer");var HLq;var PON;var J1T=0,nZ=function(){var F=_.n.call(this)||this;F.selected=!1;F.isOverlay=!1;F.inputId="toggle-option-"+J1T;J1T++;return F};
_.k(nZ,_.n);nZ.prototype.onTap=function(){_.hF(this.hostElement,"ytd-toggle-option-clicked")};
_.T([_.O(),_.Y("design:type",String)],nZ.prototype,"label",void 0);_.T([_.O(),_.Y("design:type",String)],nZ.prototype,"inputId",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],nZ.prototype,"selected",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],nZ.prototype,"isOverlay",void 0);nZ=_.T([_.y({is:"ytd-toggle-option-renderer",disableElementRegistration:!0}),_.Y("design:paramtypes",[])],nZ);
_.r(nZ,"ytd-toggle-option-renderer",function(){if(PON!==void 0)return PON;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-toggle-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<input type="checkbox" id$="[[inputId]]" checked="[[selected]]" on-click="onTap" class="style-scope ytd-toggle-option-renderer">\n<label for$="[[inputId]]" class="style-scope ytd-toggle-option-renderer">[[label]]</label>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return PON=F},{mode:1});var yw=function(){var F=_.n.apply(this,arguments)||this;F.isToggleOption=!1;F.isOverlay=!1;return F};
_.k(yw,_.n);yw.prototype.onTap=function(F){F.preventDefault();this.data&&(F=!this.data.checked,this.set("data.checked",F),_.hF(this.hostElement,"ytd-checkbox-survey-option-changed",{checked:F,value:this.data.value}))};
_.Sn.Object.defineProperties(yw.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.responseText?this.ytRendererBehavior.getSimpleString(this.data.responseText):""}}});
yw.prototype.onTap=yw.prototype.onTap;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],yw.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],yw.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Object)],yw.prototype,"isToggleOption",void 0);_.T([_.O(),_.Y("design:type",Object)],yw.prototype,"isOverlay",void 0);_.T([_.a("data.responseText"),_.Y("design:type",String),_.Y("design:paramtypes",[])],yw.prototype,"label",null);
_.T([_.R4("ytd-toggle-option-clicked"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],yw.prototype,"onTap",null);yw=_.T([_.y({is:"ytd-checkbox-survey-option-renderer",disableElementRegistration:!0})],yw);
_.r(yw,"ytd-checkbox-survey-option-renderer",function(){if(HLq!==void 0)return HLq;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-checkbox-survey-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<template is="dom-if" if="[[!isToggleOption]]" class="style-scope ytd-checkbox-survey-option-renderer">\n  <tp-yt-paper-checkbox checked="[[data.checked]]" on-tap="onTap" class="style-scope ytd-checkbox-survey-option-renderer">\n    [[label]]\n  </tp-yt-paper-checkbox>\n</template>\n\n<template is="dom-if" if="[[isToggleOption]]" class="style-scope ytd-checkbox-survey-option-renderer">\n  <ytd-toggle-option-renderer is-overlay="[[isOverlay]]" label="[[label]]" selected="[[data.checked]]" class="style-scope ytd-checkbox-survey-option-renderer"></ytd-toggle-option-renderer>\n</template>');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return HLq=F},{mode:1});var aV6;var fV6;var jW=function(){var F=_.n.apply(this,arguments)||this;F.checked=!1;F.isToggleOption=!1;return F};
_.k(jW,_.n);jW.prototype.onTap=function(){this.data&&(this.checked?_.dW(this.hostElement,"ytd-inline-survey-option-deselect-action"):_.dW(this.hostElement,"ytd-inline-survey-option-select-action",[this.hostElement]))};
jW.prototype.onTap=jW.prototype.onTap;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],jW.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],jW.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Object)],jW.prototype,"checked",void 0);_.T([_.O(),_.Y("design:type",Object)],jW.prototype,"isToggleOption",void 0);_.T([_.R4("ytd-toggle-option-clicked"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],jW.prototype,"onTap",null);
jW=_.T([_.y({is:"ytd-radio-button-survey-option-renderer",disableElementRegistration:!0})],jW);
_.r(jW,"ytd-radio-button-survey-option-renderer",function(){if(fV6!==void 0)return fV6;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-radio-button-survey-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[!isToggleOption]]" class="style-scope ytd-radio-button-survey-option-renderer">\n  <tp-yt-paper-radio-button id="radio" checked="[[checked]]" on-click="onTap" class="style-scope ytd-radio-button-survey-option-renderer">\n    [[getSimpleString(data.option)]]\n  </tp-yt-paper-radio-button>\n</template>\n\n<template is="dom-if" if="[[isToggleOption]]" class="style-scope ytd-radio-button-survey-option-renderer">\n  <ytd-toggle-option-renderer label="[[getSimpleString(data.option)]]" selected="[[checked]]" class="style-scope ytd-radio-button-survey-option-renderer"></ytd-toggle-option-renderer>\n</template>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return fV6=F},{mode:1});var i3=function(){var F=_.n.apply(this,arguments)||this;F.disableAnimation=!1;F.isToggleOption=!0;F.followUpSurveyCommand=null;F.selectedRatingEndpoint=null;F.isSlimlineSurveyFollowUp=!1;F.isShortsStyle=!1;F.styleOverrideAttribute=!0;F.isDarkMode=!1;F.isSubmitted=!1;F.roundedContainer=!0;F.improveShortsResponseRate=_.c("web_improve_shorts_response_rate");F.actionMap={"ytd-inline-survey-rating-select-action":"handleInlineSurveyRatingSelect","ytd-inline-survey-option-select-action":"handleInlineSurveyOptionSelect",
"ytd-inline-survey-option-deselect-action":"handleInlineSurveyOptionDeselect","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return F};
_.k(i3,_.n);_.N=i3.prototype;
_.N.configureRendererStamper=function(){return{"data.inlineContent":{id:"inline-survey-compact-video-renderer",mapping:{compactVideoRenderer:{component:"ytd-compact-video-renderer",properties:{isShortsStyle:"[[isShortsStyle]]"}}}},"data.response.expandableSurveyResponseRenderer.options":{id:"rating-survey",mapping:{ratingSurveyRenderer:{component:"ytd-rating-survey-renderer",properties:{disableAnimation:"[[disableAnimation]]",isSlimlineSurveyFollowUp:"[[isSlimlineSurveyFollowUp]]",isShortsStyle:"[[isShortsStyle]]",
showResponseRangeText:"[[isShortsStyle]]"}}}},"followUpSurveyCommand.followUpOptions":{id:"follow-up-survey-options",mapping:{checkboxSurveyOptionRenderer:{component:"ytd-checkbox-survey-option-renderer",properties:{isToggleOption:"[[isToggleOption]]",isOverlay:"[[isShortsStyle]]"}},radioButtonSurveyOptionRenderer:{component:"ytd-radio-button-survey-option-renderer",properties:{isToggleOption:"[[isToggleOption]]"}}}},"data.response.expandableSurveyResponseRenderer.skipButton":{id:"skip-btn-footer",
mapping:{buttonRenderer:"ytd-button-renderer"}},"data.response.expandableSurveyResponseRenderer.continueButton":{id:"continue-btn-footer",mapping:{buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"post-submit-message",mapping:{messageRenderer:{component:"ytd-message-renderer"}}}}};
_.N.attached=function(){var F=this;this.isDarkMode=document.documentElement.hasAttribute("dark");this.intersectionObserver=new IntersectionObserver(function(E){var h;if((h=E[0])!=null&&h.isIntersecting){_.gh().reportShown(F.hostElement);var d;(d=F.intersectionObserver)==null||d.unobserve(F.hostElement)}},{rootMargin:"0px",
threshold:.6});var W;(W=this.intersectionObserver)==null||W.observe(this.hostElement)};
_.N.onDarkModeToggledAction=function(F){this.isDarkMode=F};
_.N.dataChanged=function(){var F;if(((F=this.data)==null?void 0:F.style)==="INLINE_SURVEY_RENDERER_STYLE_SLIMLINE_FOLLOW_UP")this.isSlimlineSurveyFollowUp=!0;else{var W;((W=this.data)==null?void 0:W.style)==="INLINE_SURVEY_RENDERER_STYLE_SHORTS"?this.isShortsStyle=!0:this.expanded=!1}this.selectedRatingEndpoint=this.followUpSurveyCommand=null;var E,h,d,V;this.darkColorPalette=(E=this.data)==null?void 0:(h=E.inlineContent)==null?void 0:(d=h.compactVideoRenderer)==null?void 0:(V=d.thumbnail)==null?
void 0:V.darkColorPalette;var R,M,g,t;this.lightColorPalette=(R=this.data)==null?void 0:(M=R.inlineContent)==null?void 0:(g=M.compactVideoRenderer)==null?void 0:(t=g.thumbnail)==null?void 0:t.lightColorPalette;var C,B;if(((C=this.data)==null?0:(B=C.inlineContent)==null?0:B.compactVideoRenderer)&&this.isShortsStyle){var I,x,A,X;F=_.KK((I=this.data)==null?void 0:(x=I.inlineContent)==null?void 0:(A=x.compactVideoRenderer)==null?void 0:(X=A.thumbnail)==null?void 0:X.thumbnails);_.V9(this.hostElement,
{"--yt-background-url":"url("+F+")"})}};
_.N.handleRequestCompletion=function(){this.hostElement.hidden&&_.hF(this.hostElement,"yt-dismissible-item-dismissed")};
_.N.onPopupClosed=function(F){var W;((W=F.detail)==null?void 0:W.popupRenderer)===this.hostElement&&(this.isSlimlineSurveyFollowUp&&!this.isSubmitted?_.dW(this.hostElement,"ytd-slimline-survey-show-action"):this.isSlimlineSurveyFollowUp&&this.isSubmitted&&(this.isSubmitted=!1))};
_.N.handleInlineSurveyRatingSelect=function(F,W){var E=this;this.selectedRatingEndpoint=F;this.followUpSurveyCommand=W;this.expanded=!!F;this.getOptionRenderers().forEach(function(h,d){E.notifyPath("followUpSurveyCommand.followUpOptions."+d+".checkboxSurveyOptionRenderer.checked");E.set("followUpSurveyCommand.followUpOptions."+d+".checkboxSurveyOptionRenderer.checked",!1)});
this.optionSelector.selectIndex(-1);this.improveShortsResponseRate&&(this.onSubmitTap(),F=this.get("data.response.expandableSurveyResponseRenderer.submitButton.buttonRenderer.command"),_.dW(this.hostElement,"yt-reel-non-video-content-dismissal-command",[F]))};
_.N.onDismissTap=function(){if(this.isSlimlineSurveyFollowUp)_.dW(this.hostElement,"yt-close-popup-action");else{this.hostElement.hidden=!0;var F,W=(F=this.data)==null?void 0:F.dismissalEndpoint;W&&this.ytComponentBehavior.resolveCommand(W)}};
_.N.onSubmitTap=function(){this.selectedRatingEndpoint&&(this.ytComponentBehavior.resolveCommand(this.selectedRatingEndpoint),this.followUpSurveyCommand&&this.submitFollowUpResponses());this.isSlimlineSurveyFollowUp&&(this.isSubmitted=!0,_.dW(this.hostElement,"yt-close-popup-action"))};
_.N.submitFollowUpResponses=function(){if(this.getOptionRenderers().length!==0){if(this.isSingleSelect){if(!this.optionSelector.selectedItem)return;var F=[this.optionSelector.selectedItem.data.submissionEndpoint]}else{F=this.getOptionRenderers().filter(function(h){return h.checked});
if(F.length===0)return;F=F.map(function(h){return h.responseEndpoint})}var W=[];
F.forEach(function(h,d){d!==0&&(h=_.D(h,_.yT))&&h.feedbackToken&&W.push(h.feedbackToken)});
if(F=F[0]){var E={};W.length>0&&(E.extra_feedback_tokens=W);this.ytComponentBehavior.resolveCommand(F,{form:E})}}};
_.N.getOptionRenderers=function(){var F=this;return this.followUpSurveyCommand&&this.followUpSurveyCommand.followUpOptions?this.get("followUpSurveyCommand.followUpOptions").map(function(W){F.isSingleSelect=!!_.D(W,ZLw);return F.isSingleSelect?_.D(W,ZLw):_.D(W,Xw$)}):[]};
_.N.handleInlineSurveyOptionSelect=function(F){F=this.optionSelector.indexOf(F);F!==-1&&this.optionSelector.selectIndex(F)};
_.N.handleInlineSurveyOptionDeselect=function(){this.optionSelector.selectIndex(-1)};
_.N.maybeGetBackgroundColor=function(F){return this.isDarkMode?F.section2Color:F.section3Color};
_.N.colorPaletteChanged=function(){var F=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;F=F&&this.maybeGetBackgroundColor(F);this.dismissibleEl.style.backgroundColor=!F||this.isShortsStyle||this.isSlimlineSurveyFollowUp?"":_.ZP(F)};
_.Sn.Object.defineProperties(i3.prototype,{isOptionSelected:{configurable:!0,enumerable:!0,get:function(){return!!this.selectedRatingEndpoint}}});
i3.prototype.colorPaletteChanged=i3.prototype.colorPaletteChanged;i3.prototype.onPopupClosed=i3.prototype.onPopupClosed;i3.prototype.handleRequestCompletion=i3.prototype.handleRequestCompletion;i3.prototype.dataChanged=i3.prototype.dataChanged;_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],i3.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],i3.prototype,"actionHandlerBehavior",void 0);
_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],i3.prototype,"ytComponentBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],i3.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.O9),_.Y("design:type",Object)],i3.prototype,"ytdDismissibleItemBehavior",void 0);_.T([_.gQ("#follow-up-survey-options"),_.Y("design:type",Object)],i3.prototype,"optionSelector",void 0);_.T([_.O(),_.Y("design:type",Object)],i3.prototype,"data",void 0);
_.T([_.O(),_.Y("design:type",Object)],i3.prototype,"disableAnimation",void 0);_.T([_.O(),_.Y("design:type",Object)],i3.prototype,"isToggleOption",void 0);_.T([_.O(),_.Y("design:type",Object)],i3.prototype,"followUpSurveyCommand",void 0);_.T([_.O(),_.Y("design:type",Object)],i3.prototype,"selectedRatingEndpoint",void 0);_.T([_.O({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],i3.prototype,"expanded",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],i3.prototype,"isSlimlineSurveyFollowUp",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],i3.prototype,"isShortsStyle",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],i3.prototype,"styleOverrideAttribute",void 0);_.T([_.O(),_.Y("design:type",Boolean)],i3.prototype,"isSingleSelect",void 0);_.T([_.O(),_.Y("design:type",Object)],i3.prototype,"isDarkMode",void 0);
_.T([_.O(),_.Y("design:type",Object)],i3.prototype,"lightColorPalette",void 0);_.T([_.O(),_.Y("design:type",Object)],i3.prototype,"darkColorPalette",void 0);_.T([_.a("selectedRatingEndpoint","isShortsStyle"),_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],i3.prototype,"isOptionSelected",null);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],i3.prototype,"roundedContainer",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],i3.prototype,"improveShortsResponseRate",void 0);_.T([_.gQ("#dismissible"),_.Y("design:type",HTMLElement)],i3.prototype,"dismissibleEl",void 0);_.T([_.gQ("#dismiss-button yt-icon-button"),_.Y("design:type",HTMLElement)],i3.prototype,"dismissButtonEl",void 0);_.T([_.gQ("#inline-survey-header yt-icon-button"),_.Y("design:type",HTMLElement)],i3.prototype,"inlineHeaderDismissButtonEl",void 0);
_.T([_.Cz("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],i3.prototype,"dataChanged",null);_.T([_.R4("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],i3.prototype,"handleRequestCompletion",null);_.T([_.R4("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],i3.prototype,"onPopupClosed",null);
_.T([_.ea("darkColorPalette","lightColorPalette","isDarkMode"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],i3.prototype,"colorPaletteChanged",null);i3=_.T([_.y({is:"ytd-inline-survey-renderer",disableElementRegistration:!0})],i3);
_.r(i3,"ytd-inline-survey-renderer",function(){if(aV6!==void 0)return aV6;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-inline-survey-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-inline-survey-renderer">\n  <div class="survey-wrapper style-scope ytd-inline-survey-renderer">\n    <div id="star-survey" class="style-scope ytd-inline-survey-renderer">\n      <div id="inline-survey-header" class="style-scope ytd-inline-survey-renderer">\n        <h2 class="header-text style-scope ytd-inline-survey-renderer">\n          <span id="title" class="style-scope ytd-inline-survey-renderer">[[getSimpleString(data.title)]]</span>\n          <span id="subtitle" class="style-scope ytd-inline-survey-renderer">[[getSimpleString(data.subtitle)]]</span>\n        </h2>\n        <yt-icon-button hidden="[[expanded]]" label="[[getSimpleString(data.dismissalText)]]" on-click="onDismissTap" class="style-scope ytd-inline-survey-renderer">\n          <yt-icon icon="yt-icons:close" class="style-scope ytd-inline-survey-renderer"></yt-icon>\n        </yt-icon-button>\n      </div>\n      <div id="inline-survey-compact-video-renderer" class="style-scope ytd-inline-survey-renderer"></div>\n      <div id="rating-survey" class="style-scope ytd-inline-survey-renderer"></div>\n    </div>\n    <div id="follow-up-survey" hidden="[[!expanded]]" class="style-scope ytd-inline-survey-renderer">\n      <div id="follow-up-header" class="style-scope ytd-inline-survey-renderer">\n        <h2 class="header-text style-scope ytd-inline-survey-renderer">\n          <span id="follow-up-title" class="style-scope ytd-inline-survey-renderer">\n            [[getSimpleString(followUpSurveyCommand.followUpText)]]\n          </span>\n        </h2>\n      </div>\n      <iron-selector id="follow-up-survey-options" activate-event="" selected-attribute="checked" class="style-scope ytd-inline-survey-renderer">\n      </iron-selector>\n      <div id="submit-btn-footer" class="style-scope ytd-inline-survey-renderer">\n        <ytd-button-renderer id="submit-button" data="[[data.response.expandableSurveyResponseRenderer.submitButton.buttonRenderer]]" on-click="onSubmitTap" class="style-scope ytd-inline-survey-renderer">\n        </ytd-button-renderer>\n      </div>\n    </div>\n  </div>\n  <div id="skip-btn-footer" class="style-scope ytd-inline-survey-renderer"></div>\n  <div id="dismiss-button" hidden="[[!expanded]]" class="style-scope ytd-inline-survey-renderer">\n    <yt-icon-button label="[[getSimpleString(data.dismissalText)]]" on-click="onDismissTap" class="style-scope ytd-inline-survey-renderer">\n      <yt-icon icon="yt-icons:close" class="style-scope ytd-inline-survey-renderer"></yt-icon>\n    </yt-icon-button>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-inline-survey-renderer">\n  <div id="post-submit-message" class="style-scope ytd-inline-survey-renderer"></div>\n  <div id="continue-btn-footer" class="style-scope ytd-inline-survey-renderer"></div>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return aV6=F},{mode:1});
}catch(e){_._DumpException(e)}
try{
var QXg,zCq,tYP;QXg=function(F){return _.c("kevlar_watch_cinematics_invisible")||F.fullscreen&&_.c("kevlar_watch_cinematics_invisible_in_fullscreen")||F.theater&&!F.fullscreen&&_.c("kevlar_watch_cinematics_invisible_in_theater")};
zCq=function(){var F=document.createElement("canvas"),W=F.getContext("2d");if(!W)throw Error("Xl");_.ik(F,{position:"absolute",width:"100%",height:"100%"});return{element:F,context:W}};
tYP=function(){return!("filter"in CanvasRenderingContext2D.prototype)||_.c("kevlar_watch_cinematics_css_blur")};
_.Chu=function(F,W,E){return Math.abs(F-W)<=(E||1E-6)};
_.BOw=function(F,W){return F==W?!0:F&&W?F.width==W.width&&F.height==W.height:!1};_.vH8=new _.S("notificationActionRenderer");var Ii8=function(F){var W=this;this.element=new Image;this.failed=this.loaded=!1;this.resolver=new _.eR;this.element.addEventListener("load",function(){W.loaded=!0;W.resolver.resolve(W.element)});
this.element.addEventListener("error",function(){W.failed=!0});
this.element.src=F};var cQ6=function(F,W){this.image=F;this.frame=W};
cQ6.prototype.drawToCanvas=function(F,W){var E=this.frame.width/this.frame.columns,h=this.frame.height/this.frame.rows,d=W.offsetX,V=W.offsetY;QXg(W)?(F.fillStyle=W.fullscreen?"#000":"#0f0f0f",F.fillRect(d,V,(W==null?void 0:W.width)||E,(W==null?void 0:W.height)||h)):F.drawImage(this.image,this.frame.column*E,this.frame.row*h,E,h,d,V,(W==null?void 0:W.width)||E,(W==null?void 0:W.height)||h)};
var DL8=function(F){this.color=F};
DL8.prototype.drawToCanvas=function(F,W){var E=W.offsetX,h=W.offsetY,d=W.width,V=W.height;F.fillStyle=QXg(W)?W.fullscreen?"#000":"#0f0f0f":this.color;F.fillRect(E,h,d,V)};var W_=function(F,W){_.Fl.call(this);this.playerApi=W;this.mosaics=new Map;this.colorStore=new Map;this.pendingStoryboardIndex=this.currentStoryboardIndex=this.colorStoreTimeInterval=NaN;this.currentStoryboardSize=new _.Rl(NaN,NaN);this.lastUpdateTime=NaN;this.paused=!1;this.addEventListeners();xLN(this,F);kv6(this);this.update()};
_.k(W_,_.Fl);W_.prototype.addEventListeners=function(){var F=this,W=function(){F.update()},E=function(d){F.paused||(d.type==="newdata"&&(F.mosaics.clear(),AQP(F),Er(F)),kv6(F),F.update())},h=function(){F.onPlayerStateChange()};
this.playerApi.addEventListener("onVideoProgress",W);this.playerApi.addEventListener("onVideoDataChange",E);this.playerApi.addEventListener("onStateChange",h);this.addOnDisposeCallback(function(){F.playerApi.removeEventListener("onVideoProgress",W);F.playerApi.removeEventListener("onVideoDataChange",E);F.playerApi.removeEventListener("onStateChange",h)})};
var xLN=function(F,W){F.cinematicContainerRenderer!==W&&(F.cinematicContainerRenderer=W,AQP(F),Er(F),F.colorStoreUpdateJobId=_.P0.addLowPriorityJob(function(){var E;if((E=F.cinematicContainerRenderer.colorStore)!=null&&E.sampledColors){E=Infinity;for(var h=_.U(F.cinematicContainerRenderer.colorStore.sampledColors),d=h.next();!d.done;d=h.next()){d=d.value;var V=Number(d.key);V!==0&&V<E&&(E=V);V=_.XC(d.value);F.colorStore.set(d.key,V)}F.colorStoreTimeInterval=E}}))},AQP=function(F){F.colorStoreUpdateJobId&&
(_.P0.cancelJob(F.colorStoreUpdateJobId),F.colorStoreUpdateJobId=void 0);
F.colorStore.clear();F.currentStoryboardColor=void 0},sXq=function(F,W){var E;
return(E=F.getStoryboardFrame(W))==null?void 0:E.url};
W_.prototype.onPlayerStateChange=function(){this.update()};
W_.prototype.isAdPlaying=function(){return this.playerApi.getPresentingPlayerType()===2};
var kv6=function(F){var W=F.getStoryboardFrame(0);W&&(W=new _.Rl(W.width/W.columns,W.height/W.rows),_.BOw(F.currentStoryboardSize,W)||(F.currentStoryboardSize=W,F.publish("STORYBOARD_SIZE_CHANGED",F.currentStoryboardSize)))},LwT=function(F,W){F.currentStoryboardIndex=W;
F.pendingStoryboardIndex=NaN;W=F.getStoryboardFrame(F.currentStoryboardIndex);F.currentStoryboard=new cQ6(F.mosaics.get(W.url).element,W);F.publish("STORYBOARD_CHANGED",F.currentStoryboard);F.lastUpdateTime=(0,_.KU)()};
W_.prototype.isShorts=function(){return this.cinematicContainerRenderer.config.pageType==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
var Er=function(F){F.currentStoryboardIndex=NaN;F.pendingStoryboardIndex=NaN;F.currentStoryboard&&(F.currentStoryboard=void 0,F.publish("STORYBOARD_CHANGED",void 0));F.lastUpdateTime=NaN};
W_.prototype.update=function(){if(!this.paused&&this.playerApi.getNumberOfStoryboardLevels()>0)if(this.isAdPlaying()||this.isShorts()&&this.playerApi.getProgressState().duration<15)Er(this);else{var F=this.playerApi.getPlayerState(1);if(F===-1||F===5||F===0)Er(this);else if(isNaN(this.lastUpdateTime)||!((0,_.KU)()<this.lastUpdateTime+this.cinematicContainerRenderer.config.animationConfig.minImageUpdateIntervalMs))if(F=this.playerApi.getCurrentTime()+(this.playerApi.getPlayerState(1)===2?0:this.cinematicContainerRenderer.config.animationConfig.crossfadeDurationMs*
this.cinematicContainerRenderer.config.animationConfig.crossfadeStartOffset/1E3),this.cinematicContainerRenderer.presentationStyle==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR")if(this.colorStore.size){F=""+Math.round(F*1E3/this.colorStoreTimeInterval)*this.colorStoreTimeInterval;var W=this.colorStore.get(F);W?W!==this.currentStoryboardColor&&(this.currentStoryboardColor=this.currentStoryboardColor=W,this.currentStoryboard=new DL8(W),this.publish("STORYBOARD_CHANGED",this.currentStoryboard),
this.lastUpdateTime=(0,_.KU)()):(_.OB(new _.xC("Could not find color for timestamp: "+F,this.cinematicContainerRenderer)),Er(this))}else Er(this);else qHu(this,F)}};
var qHu=function(F,W){var E=F.getStoryboardFrameIndex(W);if(E!==F.currentStoryboardIndex&&E!==F.pendingStoryboardIndex){W=sXq(F,E);var h=F.mosaics.get(W);h?h.loaded&&LwT(F,E):(F.pendingStoryboardIndex=E,E=new Ii8(W),F.mosaics.set(W,E),E.resolver.promise.then(function(){if(!F.isDisposed()&&!F.paused&&!isNaN(F.pendingStoryboardIndex)){var d=sXq(F,F.pendingStoryboardIndex);if(d){var V;(V=F.mosaics.get(d))!=null&&V.loaded&&LwT(F,F.pendingStoryboardIndex)}else Er(F)}}))}};
W_.prototype.getStoryboardFrameIndex=function(F){var W=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0;return this.playerApi.getStoryboardFrameIndex(F,W)};
W_.prototype.getStoryboardFrame=function(F){var W=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0,E,h;return((h=(E=this.playerApi).getStoryboardFrame)==null?void 0:h.call(E,F,W))||null};
W_.prototype.pause=function(){this.lastUpdateTime=NaN;this.paused=!0};var dC=function(F,W,E,h){h=h===void 0?!1:h;_.xj.call(this);this.cinematicContainerRenderer=W;this.playerApi=E;this.theater=this.fullscreen=!1;var d;this.ambientLightThemeEnabled=!h&&!!(W==null?0:(d=W.config)==null?0:d.enableInLightTheme);this.ambientFullscreenEnabled=h&&_.c("web_cinematic_fullscreen");this.container=document.createElement("div");F.appendChild(this.container);var V;if(_.c("web_cinematic_theater_mode")||_.c("web_cinematic_fullscreen")||(W==null?0:(V=W.config)==null?0:V.enableInLightTheme))this.ambientV2Container=
document.createElement("div"),this.container.appendChild(this.ambientV2Container);$LO(this);F=this.ambientV2Container||this.container;this.backCanvas=zCq();this.frontCanvas=zCq();F.appendChild(this.backCanvas.element);F.appendChild(this.frontCanvas.element);this.storyboardManager=new W_(W,this.playerApi);_.gl(this,this.storyboardManager);this.addEventListeners();Z5O(this)?XLg(this,100+h2(this)*3*2,100+h2(this)*3*2):H5K(this);Phx(this,this.storyboardManager.currentStoryboard)};
_.k(dC,_.xj);var $LO=function(F){F.ambientV2Container?JQu(F):(_.ik(F.container,{position:"absolute",top:"0",left:"0",right:"0",bottom:"0","pointer-events":"none",transform:"scale("+ai6(F)+", "+fiK(F)+")"}),tYP()&&_.ik(F.container,"filter","blur("+_.dV("cinematic_watch_css_filter_blur_strength",40)+"px)"))},JQu=function(F){if(F.ambientV2Container){var W=F.playerApi.getVideoAspectRatio();
_.ik(F.container,{"aspect-ratio":""+W,"max-width":"100%",height:"100%",margin:"0 auto",display:"flex","flex-direction":"column","justify-content":"center","pointer-events":"none"});_.ik(F.ambientV2Container,{"aspect-ratio":""+W,position:"relative","max-height":"100%","max-width":"100%","pointer-events":"none",transform:"scale("+ai6(F)+", "+fiK(F)+")"});tYP()&&_.ik(F.ambientV2Container,"filter","blur("+_.dV("cinematic_watch_css_filter_blur_strength",40)+"px)")}};
dC.prototype.setFullscreen=function(F,W){this.fullscreen=F;this.theater=!!W;$LO(this);if(this.ambientFullscreenEnabled||this.ambientLightThemeEnabled)this.backCanvas.context.clearRect(0,0,this.backCanvas.element.width,this.backCanvas.element.height),F=this.storyboardManager.currentStoryboard,O5N(this),F&&b5N(this,F)};
dC.prototype.addEventListeners=function(){var F=this,W=this.storyboardManager.subscribe("STORYBOARD_CHANGED",function(d){Phx(F,d)}),E=this.storyboardManager.subscribe("STORYBOARD_SIZE_CHANGED",function(){H5K(F)});
this.addOnDisposeCallback(function(){F.storyboardManager.unsubscribeByKey(W);F.storyboardManager.unsubscribeByKey(E)});
if(this.ambientV2Container){var h=function(){JQu(F)};
this.playerApi.addEventListener("onVideoDataChange",h);this.addOnDisposeCallback(function(){F.playerApi.removeEventListener("onVideoDataChange",h)})}};
var H5K=function(F){if(!Z5O(F)){var W=F.storyboardManager.currentStoryboardSize;isNaN(W.width)||isNaN(W.height)||XLg(F,Number(W.width)+h2(F)*3*2,Number(W.height)+h2(F)*3*2)}},XLg=function(F,W,E){F.backCanvas.element.width=W;
F.backCanvas.element.height=E;F.frontCanvas.element.width=W;F.frontCanvas.element.height=E},Z5O=function(F){return F.cinematicContainerRenderer.presentationStyle==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"},Phx=function(F,W,E){E=E===void 0?!1:E;
var h=F.frontCanvas.element.getAnimations()[0];h?(h.pause(),F.backCanvas.context.globalAlpha=Number(getComputedStyle(F.frontCanvas.element).opacity),F.frontCanvas.element.style.opacity="0",h.finish()):F.backCanvas.context.globalAlpha=1;F.backCanvas.context.drawImage(F.frontCanvas.element,0,0,F.backCanvas.element.width,F.backCanvas.element.height);O5N(F);W&&b5N(F,W);W=W?F.cinematicContainerRenderer.config.animationConfig.crossfadeDurationMs:_.dV("cinematic_watch_fade_out_duration",500);h=_.dV("cinematic_watch_transition_frame_rate")/
1E3;var d={};h&&(d={easing:"steps("+Math.round(W*h)+")"});(E===void 0?0:E)||F.frontCanvas.element.animate([{opacity:0},{opacity:1}],Object.assign({},{duration:W,iterations:1},d));F.frontCanvas.element.style.opacity="1"},O5N=function(F){var W=F.ambientLightThemeEnabled,E=F.ambientLightThemeEnabled||F.ambientFullscreenEnabled&&!_.c("web_cinematic_fullscreen_v2");
F.frontCanvas.context.fillStyle=F.theater&&W||F.fullscreen&&E?"#000":"#0f0f0f";tYP()||(F.frontCanvas.context.filter="blur(0)");F.frontCanvas.context.fillRect(0,0,F.frontCanvas.element.width,F.frontCanvas.element.height)},b5N=function(F,W){tYP()||(F.frontCanvas.context.filter="blur("+h2(F)+"px)");
F.frontCanvas.context.globalAlpha=_.dV("cinematic_watch_effect_opacity",.4);var E={offsetX:h2(F)*3,offsetY:h2(F)*3,theater:F.theater,fullscreen:F.fullscreen};Z5O(F)&&(E.width=100,E.height=100);W.drawToCanvas(F.frontCanvas.context,E);F.frontCanvas.context.globalAlpha=1},h2=function(F){var W;
return(W=F.cinematicContainerRenderer.config.blurStrength)!=null?W:5},ai6=function(F){var W,E;
if((F.fullscreen||F.theater)&&((W=F.cinematicContainerRenderer.config)==null?0:(E=W.watchFullscreenConfig)==null?0:E.colorSourceWidthMultiplier))return F.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceWidthMultiplier;var h;return(h=F.cinematicContainerRenderer.config.colorSourceWidthMultiplier)!=null?h:F.cinematicContainerRenderer.config.colorSourceSizeMultiplier},fiK=function(F){var W,E;
if((F.fullscreen||F.theater)&&((W=F.cinematicContainerRenderer.config)==null?0:(E=W.watchFullscreenConfig)==null?0:E.colorSourceHeightMultiplier))return F.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceHeightMultiplier;var h;return(h=F.cinematicContainerRenderer.config.colorSourceHeightMultiplier)!=null?h:F.cinematicContainerRenderer.config.colorSourceSizeMultiplier};
dC.prototype.disposeInternal=function(){_.xj.prototype.disposeInternal.call(this);this.container.remove()};
dC.prototype.clear=function(){Phx(this,void 0,!0)};
dC.prototype.pause=function(){this.storyboardManager.pause()};var liT;liT=_.Lv(function(){var F,W,E=!((W=(F=document.createElement("canvas")).getContext)==null||!W.call(F,"2d")),h;F=!((h=CSS)==null||!h.supports("filter: blur(0)"));h=!!Element.prototype.animate&&!!Element.prototype.getAnimations;W=_.c("web_cinematic_fullscreen")||_.c("web_cinematic_theater_mode")||_.c("web_cinematic_light_theme")||!1;var d;return E&&F&&h&&(!W||!((d=CSS)==null||!d.supports("aspect-ratio: 1 / 1")))});
_.NP=function(F,W){_.Fl.call(this);this.container=F;this.playerApi=W;this.fullscreen=this.theater=this.settingEnabled=this.isDarkModeEnabled=this.wasAllowed=!1;this.prefersReducedMotionQuery=nHK(this);this.update()};
_.k(_.NP,_.Fl);_.yQu=function(F){var W=document.documentElement.hasAttribute("dark");F.isDarkModeEnabled=W;F.update()};
_.jXO=function(F,W){F.settingEnabled=W;F.update()};
_.NP.prototype.setFullscreen=function(F,W){this.fullscreen=F;this.theater=!!W;this.update()};
_.i56=function(F,W){F.cinematicContainerRenderer=W;F.cinematicContainerRenderer&&(F.cinematicsVe=_.LQ(F.isShorts()?227858:159022),_.zY(_.z4(),F.cinematicsVe),F.loggingClientData={watchCinematicContainerData:{presentationStyle:F.cinematicContainerRenderer.presentationStyle}});F.update()};
_.NP.prototype.isShorts=function(){var F,W;return((F=this.cinematicContainerRenderer)==null?void 0:(W=F.config)==null?void 0:W.pageType)==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
_.NP.prototype.isAllowed=function(){var F;if(F=liT()){var W,E,h;F=((E=this.cinematicContainerRenderer)==null?void 0:E.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"&&!((h=this.cinematicContainerRenderer)==null||!h.colorStore)||((W=this.cinematicContainerRenderer)==null?void 0:W.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_BLURRED"}if(F)if(_.c("web_cinematics_pausing")){var d,V;F=this.isDarkModeEnabled||!!((d=this.cinematicContainerRenderer)==
null?0:(V=d.config)==null?0:V.enableInLightTheme)}else{var R,M;d=!!((R=this.cinematicContainerRenderer)==null?0:(M=R.config)==null?0:M.enableInLightTheme)&&(_.b0("INNERTUBE_CLIENT_NAME")==="MWEB"||this.fullscreen||this.theater);F=this.isDarkModeEnabled||d}if(R=F){var g,t;R=!((t=(g=this.prefersReducedMotionQuery)==null?void 0:g.matches)!=null&&t)}return R};
_.rQ$=function(F){(F=F.currentCinematicEffect)!=null&&(F=F.storyboardManager,F.paused=!1,kv6(F),F.update())};
_.NP.prototype.isEnabled=function(){return this.isAllowed()&&this.settingEnabled};
var nHK=function(F){if(!_.c("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&window.matchMedia){var W=window.matchMedia("(prefers-reduced-motion: reduce)"),E=function(){F.update()};
W.addListener(E);F.addOnDisposeCallback(function(){W.removeListener(E)});
return W}};
_.NP.prototype.update=function(){this.isAllowed()!==this.wasAllowed&&(this.wasAllowed=this.isAllowed(),this.publish("CINEMATICS_ALLOWED_CHANGED",this.wasAllowed));if(this.isEnabled()){var F=this.cinematicContainerRenderer;this.currentCinematicEffect||(this.currentCinematicEffect=new dC(this.container,F,this.playerApi,this.isDarkModeEnabled),_.gl(this,this.currentCinematicEffect));this.currentCinematicEffect.setFullscreen(this.fullscreen,this.theater);var W=this.currentCinematicEffect;W.cinematicContainerRenderer!==
F&&(W.cinematicContainerRenderer=F,xLN(W.storyboardManager,F),$LO(W));F=_.Ij();_.c5(0,194,!0);F.save();F=_.JR();this.cinematicsVe&&F&&_.rW(F,[this.cinematicsVe],this.loggingClientData)}else this.currentCinematicEffect&&(F=_.JR(),this.cinematicsVe&&F&&_.TJ(F,[this.cinematicsVe],!1,this.loggingClientData),_.u5(this.currentCinematicEffect),this.currentCinematicEffect=void 0)};
_.Sn.Object.defineProperties(_.NP.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
}catch(e){_._DumpException(e)}
try{
var iDg;var rS6;_.k3({_template:function(){if(rS6!==void 0)return rS6;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-pages--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_pages.tp.yt.iron.pages.css.js--\x3e<slot class="style-scope tp-yt-iron-pages"></slot>\n');F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);var W=
F.content,E=W.insertBefore;iDg===void 0&&(iDg=document.createElement("template"));var h=iDg;E.call(W,h.content.cloneNode(!0),F.content.firstChild);return rS6=F},
is:"tp-yt-iron-pages",behaviors:[_.lB,_.l1],properties:{activateEvent:{type:String,value:null}},observers:["_selectedPageChanged(selected)"],_selectedPageChanged:function(){this.async(this.notifyResize)}});
}catch(e){_._DumpException(e)}
try{
var bAO;_.lfK=function(){if(_.c("kevlar_home_skeleton")&&!bAO){var F=document.querySelector("#home-page-skeleton");F&&(_.P5("hgcr"),_.Bb(F),bAO=!0)}};
bAO=!1;_.AY=new _.S("cinematicContainerRenderer");
}catch(e){_._DumpException(e)}
try{
var bZq,lQ6,nXO,yp8,jDK,iZK,oX6,YEx,w7w,GIO,rpN,TJ8,p7K,m9K;_.OZx=function(F,W,E){W=W===void 0?5:W;if(W!==0){var h=typeof F==="function"?F():document.querySelector(F);h?(E==null?0:E.enableSmartFocus)?_.W0S(h):h.focus():setTimeout(function(){_.OZx(F,W-1,E)},500)}};
bZq=function(F){return _.FCw(_.K2k(F&16777215))<.5};
lQ6=function(F,W,E){var h=E.minimumRowsOfVideosBetweenSections===void 0?1:E.minimumRowsOfVideosBetweenSections;return F<(E.minimumRowsOfVideosAtStart===void 0?2:E.minimumRowsOfVideosAtStart)||W!==null&&F-W<=h?!1:!0};
nXO=function(F,W){var E=0,h=0;F=_.U(F);for(var d=F.next();!d.done;d=F.next()){var V=d.value;if(V.richItemRenderer)V.richItemRenderer.rowIndex=h,V.richItemRenderer.colIndex=E++,E===W&&(E=0,h++);else if(V.richGroupRenderer&&V.richGroupRenderer.numColumns!==void 0)V.richGroupRenderer.rowIndex=h,V.richGroupRenderer.colIndex=E,E+=V.richGroupRenderer.numColumns,E===W&&(E=0,h++);else if(V.richSectionRenderer){var R=d=void 0;if(V=_.D((d=V)==null?void 0:(R=d.richSectionRenderer)==null?void 0:R.content,_.pKc))V.rowIndex=
h++}}};
yp8=function(F,W){var E=W.contentElement;W=W.rendererToTagNameMap;if(E&&W&&W.size!==0){for(var h=new Map,d=_.U(E.children),V=d.next();!V.done;V=d.next()){V=V.value;var R=V.tagName.toLowerCase(),M=h.get(R);M||(M=[],h.set(R,M));M.push(V)}if(h.size!==0)for(d=Math.min(F.length,E.children.length),V=new Map,R=0;R<d;R++){M=Object.keys(F[R])[0];M=W.get(M);if(!M)break;var g=V.get(M);g===void 0&&(g=0,V.set(M,g));var t=h.get(M);if(!t||g>=t.length)break;V.set(M,g+1);M=t[g];g=E.children[R];g!==M&&(_.hYG=!0,_.dbY.set(M,
!0),E.insertBefore(M,g),_.dbY.delete(M),_.hYG=!1)}}};
jDK=function(F,W,E,h,d,V,R){h=h===void 0?{}:h;if(!F||!F.length)return[];F=F.slice();var M=[],g=[];d=null;for(var t=0,C=function(b){g.sort(function(G,hr){return hr.skippedOnRow-G.skippedOnRow});
for(var l,w=(l=g.shift())==null?void 0:l.content;w;)!w.richSectionRenderer&&b||M.push(w),l=void 0,w=(l=g.shift())==null?void 0:l.content},B=[];F.length>0||g.length>0;){for(var I=[],x=W;x>0;){var A=void 0,X=void 0,P=(X=g[0]&&g[0].skippedOnRow<t?(A=g.shift())==null?void 0:A.content:void 0)!=null?X:F.shift();
if(!P)break;if(P.richItemRenderer)A=P.richItemRenderer.targetId,X=void 0,A&&((X=R)==null?0:X.has(A))&&B.push(R.get(A)),I.push(P),x--;else if(P.richGroupRenderer&&P.richGroupRenderer.numColumns!==void 0)P.richGroupRenderer.numColumns<=x?(I.push(P),x-=P.richGroupRenderer.numColumns):x===W&&P.richGroupRenderer.numColumns>W?(I.push({richGroupRenderer:Object.assign({},P.richGroupRenderer,{numColumns:W})}),x=0):g.push({content:P,skippedOnRow:t});else if(P.richSectionRenderer)if(lQ6(t,d,h)&&x===W){M.push(P);
d=t;t++;continue}else g.push({content:P,skippedOnRow:t});else if(P.continuationItemRenderer){C(!0);M.push(P);x=0;break}if(x===0)M.push.apply(M,_.x9(I));else if(!E&&F.length===0){C(!1);M.push.apply(M,_.x9(I));x=0;break}}t++;B=_.U(B);for(I=B.next();!I.done;I=B.next())M.push(I.value),t++;B=[]}nXO(M,W);V&&yp8(M,V);return M};
iZK=function(F){return F.talkToRecs};
oX6=function(F,W){if(W){var E=_.uC().getState().entities.flowStateEntity,h=rpN(F),d=[W];h&&h!==W&&d.push(h);var V=!0,R;if(E&&F.flowStateEntityKey&&((R=E[F.flowStateEntityKey])==null?void 0:R.primaryButtonDisabled)!==void 0){var M;V=!((M=E[F.flowStateEntityKey])==null||!M.primaryButtonDisabled)}TJ8(F,h!=null?h:W,d,V)}};
YEx=function(F){return _.kQ(_.uC(),function(W){return W.entities.flowStateEntity},function(W,E){if(F.flowStateEntityKey){var h,d=W==null?void 0:(h=W[F.flowStateEntityKey])==null?void 0:h.currentStepId,V;
E=E==null?void 0:(V=E[F.flowStateEntityKey])==null?void 0:V.currentStepId;V=_.uC().getState().talkToRecs;if(d&&d!==E){var R;W=(W==null?void 0:(R=W[F.flowStateEntityKey])==null?void 0:R.stepIdStack)||Object.keys(V.stepStates);R=!GIO(V==null?void 0:V.stepStates[d]);TJ8(F,d,W,R)}}})};
w7w=function(F){return _.kQ(_.uC(),iZK,function(W){var E=rpN(F);if(E){var h=Object.keys(W.stepStates);W=!GIO(W==null?void 0:W.stepStates[E]);TJ8(F,E,h,W)}})};
GIO=function(F){var W=Object.keys((F==null?void 0:F.selectionStates)||{}).reduce(function(V,R){return V||(F==null?void 0:F.selectionStates[R].isSelected)},!1),E,h,d=!!(F==null?0:(E=F.userQuery)==null?0:(h=E.userQuery)==null?0:h.trim());
return W||d};
rpN=function(F){if(F.flowStateEntityKey){var W,E,h=(W=_.uC().getState().entities.flowStateEntity)==null?void 0:(E=W[F.flowStateEntityKey])==null?void 0:E.currentStepId;if(h)return h}};
TJ8=function(F,W,E,h){_.uC().dispatch(_.AG("flowStateEntity",F.flowStateEntityKey,{currentStepId:W,stepIdStack:E,key:F.flowStateEntityKey,primaryButtonDisabled:h}))};
_.uSN=function(F,W){return _.Mn(F.entities,"youchatPendingResponseEntity",W)};
_.SEq=function(F){return function(W){_.rQ(_.AG("youchatPendingResponseEntity",F,{entityKey:F,isPendingResponse:W}))}};
p7K=function(F){F==null||F.addEventListener("DOMLoaded",function(){F.goToAndPlay(F.totalFrames-48,!0)})};var KkP;_.k3({_template:function(){if(KkP!==void 0)return KkP;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-material--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_material.tp.yt.paper.material.css.js--\x3e<slot class="style-scope tp-yt-paper-material"></slot>\n');F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);
var W=F.content,E=W.insertBefore;m9K===void 0&&(m9K=document.createElement("template"));var h=m9K;E.call(W,h.content.cloneNode(!0),F.content.firstChild);return KkP=F},
is:"tp-yt-paper-material",properties:{elevation:{type:Number,reflectToAttribute:!0,value:1},animated:{type:Boolean,reflectToAttribute:!0,value:!1}}});var FSK=new _.S("talkToRecsFlowRenderer");var WSO=new _.S("flowRootRenderer");var E$6=new _.S("chipsShelfViewModel");var h86=new _.S("horizontalShelfViewModel");_.dZu=new _.S("engagementPanelSectionListRenderer");var N0g=new _.S("conversationResourceViewModel");var VvN=function(){this.horizontal=!1},UZO=function(F,W){F.horizontal=W};
VvN.prototype.position=function(F,W,E,h){h=h===void 0?1:h;F=this.delta(F)*h+W;h=Math.max(W,E);return F>=Math.min(W,E)&&F<=h?F:E};
VvN.prototype.axis=function(F){F=this.direction(F);return F==="up"||F==="down"?"Y":"X"};var ew=function(F,W,E){W=W===void 0?_.zS():W;this.target=F;this.manager=W;this.touchAction=E;this.events=[];this.attached=!1;this.eventMap={};this.onSwipeDown=function(){};
this.onSwipeUp=function(){};
this.onPanStart=function(){};
this.onPanMove=function(){};
this.onPanEnd=function(){}};
ew.prototype.attach=function(){if(!this.attached){this.attached=!0;this.eventMap={swipedown:this.onSwipeDown,swipeup:this.onSwipeUp,panstart:this.onPanStart,panright:this.onPanMove,panleft:this.onPanMove,panmove:this.onPanMove,panend:this.onPanEnd};this.manager.registerTouchEvents.apply(this.manager,[this.target,this.directions,this.touchAction].concat(_.x9(this.events)));for(var F=_.U(this.events),W=F.next();!W.done;W=F.next())this.listen(W.value)}};
ew.prototype.detach=function(){if(this.attached){this.attached=!1;this.manager.unregisterTouchEvents.apply(this.manager,[this.target].concat(_.x9(this.events)));for(var F=_.U(this.events),W=F.next();!W.done;W=F.next())this.unlisten(W.value)}};
ew.prototype.listen=function(F){this.eventMap[F]&&this.target.addEventListener(F,this.eventMap[F])};
ew.prototype.unlisten=function(F){this.eventMap[F]&&this.target.removeEventListener(F,this.eventMap[F])};var M8=function(){VvN.apply(this,arguments)};
_.k(M8,VvN);M8.prototype.direction=function(F){var W=F.detail;F=W.deltaY;W=W.deltaX;return F&&!this.horizontal?F>0?"down":"up":W&&this.horizontal?W>0?"right":"left":"none"};
M8.prototype.distance=function(F){return Math.abs(this.delta(F))};
M8.prototype.delta=function(F){var W=this.direction(F),E=F.detail;F=E.deltaX;E=E.deltaY;return W==="up"||W==="down"?E||0:F||0};
M8.prototype.velocity=function(F){var W=this.direction(F),E=F.detail;F=E.velocityX;E=E.velocityY;return Math.abs(W==="up"||W==="down"?E||0:F||0)};_.gA=function(F,W,E,h,d,V){d=d===void 0?new M8:d;V=V===void 0?_.zS():V;ew.call(this,W,V,h);var R=this;this.element=F;this.target=W;this.config=E;this.input=d;this.manager=V;this.events=["panstart","panmove","panend"];this.onPanStart=function(){R.config.draggingClass&&R.element.classList.add(R.config.draggingClass);R.config.startAction&&R.config.startAction()};
this.onPanMove=function(M){var g=R8O(R,M);if(g){R.move(M,g);g.fade&&R.fade(M,g);var t=R.input.direction(M);g.moveAction&&g.moveAction(e8q(R,M,g),t)}};
this.onPanEnd=function(M){var g,t,C,B,I,x;return _.e(function(A){if(A.nextAddress==1){R.animationRequestId&&cancelAnimationFrame(R.animationRequestId);R.animationRequestId=void 0;g=R8O(R,M);if(!g)return A.return();t=g;C=t.triggerAction;B=t.fade;I=t.disableFinish;x=t.translateBack;var X=R.input.velocity(M),P=R.input.distance(M),b=R.threshold(g);return X>.3&&P>10||P>b?I?A.jumpTo(6):B?_.Q(A,Mvg(R,M),6):_.Q(A,g$g(R,M,g),6):x?_.Q(A,R.translateBack(M),3):A.jumpTo(3)}A.nextAddress!=3&&C&&C();R.config.draggingClass&&
R.element.classList.remove(R.config.draggingClass);R.reset();_.gG(A)})};
F=Object.keys(E.triggers);this.directions=new Set(F);UZO(this.input,this.directions.has("right")||this.directions.has("left"))};
_.k(_.gA,ew);_.gA.prototype.reset=function(){this.element.style.transform="";this.element.style.opacity="";this.config.resetAction&&this.config.resetAction()};
var R8O=function(F,W){W=F.input.direction(W);return F.config.triggers[W]};
_.gA.prototype.move=function(F,W){var E=this;this.animationRequestId||(this.animationRequestId=requestAnimationFrame(function(){var h=E.input.axis(F),d=E.input.position(F,E.config.startPosition,W.endPosition,W.moveRatio||1);E.element.style.transform="translate"+h+"("+d+"px)";E.animationRequestId=void 0}))};
var e8q=function(F,W,E){var h=E.moveRatio||1;E=Math.abs(F.config.startPosition-E.endPosition);return Math.min(F.input.distance(W)*h,E)/E};
_.gA.prototype.fade=function(F,W){var E=W.endOpacity;F=e8q(this,F,W);F>0&&(this.element.style.opacity=""+(((E||0)-1)*F+1))};
_.gA.prototype.threshold=function(F){return F.threshold?F.threshold:Math.abs(F.endPosition-this.config.startPosition)/3};
var g$g=function(F,W,E){var h,d,V,R,M,g,t;return _.e(function(C){if(C.nextAddress==1)return h=F.input.delta(W)+F.config.startPosition,d=F.input.axis(W),V=E,R=V.endPosition,M=V.transitionEndPosition,t=(g=M)!=null?g:R,_.Q(C,F.element.animate([{transform:"translate"+d+"("+h+"px)"},{transform:"translate"+d+"("+t+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);F.element.style.transform="translate"+d+"("+t+"px)";_.gG(C)})};
_.gA.prototype.translateBack=function(F){var W=this,E,h;return _.e(function(d){if(d.nextAddress==1){if(!W.element.style.transform)return d.return();E=W.input.axis(F);h=W.config.startPosition;return _.Q(d,W.element.animate([{transform:W.element.style.transform},{transform:"translate"+E+"("+h+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2)}W.element.style.transform="translate"+E+"("+h+"px)";_.gG(d)})};
var Mvg=function(F,W){var E,h,d,V;return _.e(function(R){if(R.nextAddress==1)return E=F.input.delta(W)+F.config.startPosition,h=F.input.axis(W),d=E+70,V=F.element.style.opacity===""?1:F.element.style.opacity,_.Q(R,F.element.animate([{transform:"translate"+h+"("+E+"px)",opacity:V},{transform:"translate"+h+"("+d+"px)",opacity:0}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);F.element.style.transform="translate"+h+"("+d+"px)";F.element.style.opacity="0";_.gG(R)})};var Q8=function(){var F=_.zK.apply(this,arguments)||this;F._noAccessors=!0;F.scrollRate=3;F.autoScrollAnimationStart=0;F.autoScrollPaused=!1;F.autoScrollRafId=0;return F};
_.k(Q8,_.zK);_.N=Q8.prototype;_.N.created=function(){var F=this;this.boundAutoScrollHandler=function(W){F.autoScroll(W)}};
_.N.detached=function(){this.hostElement.removeEventListener("mouseout",_.UO(this,this.startAutoScroll));this.hostElement.removeEventListener("click",_.UO(this,this.endAutoScroll));this.hostElement.removeEventListener("mouseover",_.UO(this,this.endAutoScroll));this.endAutoScroll&&this.endAutoScroll()};
_.N.autoScrollEnabledChanged=function(){this.autoScrollEnabled?(this.hostElement.addEventListener("mouseout",_.UO(this,this.startAutoScroll)),this.hostElement.addEventListener("click",_.UO(this,this.endAutoScroll)),this.hostElement.addEventListener("mouseover",_.UO(this,this.endAutoScroll)),this.startAutoScroll()):(this.hostElement.removeEventListener("mouseout",_.UO(this,this.startAutoScroll)),this.hostElement.removeEventListener("click",_.UO(this,this.endAutoScroll)),this.hostElement.removeEventListener("mouseover",
_.UO(this,this.endAutoScroll)),this.endAutoScroll())};
_.N.autoScroll=function(F){this.autoScrollAnimationStart||(this.autoScrollAnimationStart=F);var W;if(W=!this.autoScrollPaused&&this.scrollTarget)W=this.scrollTarget,W=W.scrollHeight-W.scrollTop!==W.clientHeight;W&&(W=1E3/this.scrollRate,F-=this.autoScrollAnimationStart,F>W&&(this.scrollTarget.scrollTop+=Math.ceil(F/W),this.autoScrollAnimationStart=0),this.startAutoScroll())};
_.N.startAutoScroll=function(){this.autoScrollPaused=!1;this.autoScrollRafId=window.requestAnimationFrame(this.boundAutoScrollHandler)};
_.N.endAutoScroll=function(){this.autoScrollPaused=!0;window.cancelAnimationFrame(this.autoScrollRafId)};
Q8.prototype.autoScrollEnabledChanged=Q8.prototype.autoScrollEnabledChanged;_.T([_.O(),_.Y("design:type",Object)],Q8.prototype,"scrollRate",void 0);_.T([_.O(),_.Y("design:type",Object)],Q8.prototype,"scrollTarget",void 0);_.T([_.O(),_.Y("design:type",Boolean)],Q8.prototype,"autoScrollEnabled",void 0);_.T([_.ea("autoScrollEnabled"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Q8.prototype,"autoScrollEnabledChanged",null);Q8=_.T([_.tT()],Q8);_.QM$=[Q8.prototype];var z8K;var zw=function(){var F=_.n.apply(this,arguments)||this;F.buttonUpdate=_.c("web_button_rework");F.dismissButtonOverrides=_.c("web_button_rework")?{iconPosition:"icon-only",style:"overlay-dark",type:"tonal",size:"M",state:"active"}:void 0;F.forceDarkTheme=!1;F.forceLightTheme=!1;F.dynamicTextHeight=94;F.hasOverflowButton=!1;F.isInfeedModernization=!1;return F};
_.k(zw,_.n);_.N=zw.prototype;_.N.computeUrlImg=function(F){if(F)return _.KK(F.thumbnails)};
_.N.getLogoHeight=function(F){return this.logoWithPadding(F)?"31":"24"};
_.N.getLogoClassName=function(F){return this.logoWithPadding(F)?"ytd-banner-promo-renderer-logo-with-padding":"ytd-banner-promo-renderer-logo"};
_.N.logoWithPadding=function(F){var W,E;return(F=(W=F.thumbnails)==null?void 0:(E=W[0])==null?void 0:E.height)&&F%31===0?!0:!1};
_.N.sendImpressionEndpoints=function(F){F.impressionEndpoints&&_.UT(this.hostElement,F.impressionEndpoints)};
_.N.observeBasicPalette=function(){var F,W,E=(F=this.data)==null?void 0:(W=F.colorData)==null?void 0:W.basicColorPaletteData;E?_.ZR(this.hostElement,E):_.ZR(this.hostElement,{})};
_.N.observeDataChanged=function(){var F;this.dynamicTextHeight=((F=this.data)==null?0:F.supplementalText)?74:94;var W;this.hasSupplementalText=!((W=this.data)==null||!W.supplementalText);if(_.c("web_button_rework")){var E,h,d,V;F=(E=this.data)==null?void 0:(h=E.actionButton)==null?void 0:(d=h.buttonRenderer)==null?void 0:(V=d.colorData)==null?void 0:V.basicColorPaletteData;var R,M,g;if(!((R=this.data)==null?0:(M=R.actionButton)==null?0:(g=M.buttonRenderer)==null?0:g.style)&&F){this.computeIsInfeedModernization(this.data)||
(F.borderColor=F.foregroundTitleColor);var t,C;this.set("data.actionButton.buttonRenderer",_.xd.unsafeClone((t=this.data)==null?void 0:(C=t.actionButton)==null?void 0:C.buttonRenderer))}}};
_.N.observeDataForCounterfactual=function(){if(_.c("kevlar_banner_cf_extra_logging")){var F;((F=this.data)==null?0:F.isVisible)||this.sendImpressionEndpoints(this.data)}};
_.N.computeSupplementalStyle=function(){var F;if((F=this.data)!=null&&F.supplementalText){var W,E,h;if((W=this.data)==null?0:(E=W.colorData)==null?0:(h=E.basicColorPaletteData)==null?0:h.foregroundActivatedColor)return F=_.ZP(this.data.colorData.basicColorPaletteData.foregroundActivatedColor),"--yt-endpoint-color:"+F+"; --yt-endpoint-hover-color:"+F+"; --yt-endpoint-visited-color:"+F+"; --yt-formatted-string-bold-font-weight:700;"}};
_.N.computeForcedDarkTheme=function(){var F,W,E,h=(F=this.data)==null?void 0:(W=F.actionButton)==null?void 0:(E=W.buttonRenderer)==null?void 0:E.style,d,V,R;F=bZq(((d=this.data)==null?void 0:(V=d.colorData)==null?void 0:(R=V.basicColorPaletteData)==null?void 0:R.backgroundColor)||0);return h&&F};
_.N.computeForcedLightTheme=function(){var F,W,E,h=(F=this.data)==null?void 0:(W=F.actionButton)==null?void 0:(E=W.buttonRenderer)==null?void 0:E.style,d,V,R;F=!bZq(((d=this.data)==null?void 0:(V=d.colorData)==null?void 0:(R=V.basicColorPaletteData)==null?void 0:R.backgroundColor)||0);return h&&F};
_.N.computeHasOverflowButton=function(F){return!!F.overflowButton};
_.N.computeHasTitle=function(F){return!!F.title};
_.N.computeTitleMaxFontSize=function(F){return this.computeHasOverflowButton(F)?28:64};
_.N.onDismissClick=function(){this.hostElement.classList.add("dismissed")};
_.N.computeIsInfeedModernization=function(){var F,W,E,h,d=(F=this.data)==null?void 0:(W=F.actionButton)==null?void 0:(E=W.buttonRenderer)==null?void 0:(h=E.colorData)==null?void 0:h.basicColorPaletteData;return(d==null?void 0:d.backgroundColor)===452984831||(d==null?void 0:d.backgroundColor)===218103808};
zw.prototype.observeDataForCounterfactual=zw.prototype.observeDataForCounterfactual;zw.prototype.observeDataChanged=zw.prototype.observeDataChanged;zw.prototype.observeBasicPalette=zw.prototype.observeBasicPalette;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],zw.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.O9),_.Y("design:type",Object)],zw.prototype,"ytdDismissibleItemBehavior",void 0);
_.T([_.J(_.y_.YtdGuideStateAwareBehavior),_.Y("design:type",Object)],zw.prototype,"ytdGuideStateAwareBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],zw.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],zw.prototype,"buttonUpdate",void 0);_.T([_.O({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],zw.prototype,"hasSupplementalText",void 0);_.T([_.O(),_.Y("design:type",Object)],zw.prototype,"dismissButtonOverrides",void 0);
_.T([_.O({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.Y("design:type",Boolean)],zw.prototype,"hasTitle",void 0);_.T([_.O({reflectToAttribute:!0,computed:"computeForcedDarkTheme(data)"}),_.Y("design:type",Object)],zw.prototype,"forceDarkTheme",void 0);_.T([_.O({reflectToAttribute:!0,computed:"computeForcedLightTheme(data)"}),_.Y("design:type",Object)],zw.prototype,"forceLightTheme",void 0);_.T([_.O(),_.Y("design:type",Object)],zw.prototype,"dynamicTextHeight",void 0);
_.T([_.O({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.Y("design:type",Object)],zw.prototype,"hasOverflowButton",void 0);_.T([_.O({reflectToAttribute:!0,computed:"computeIsInfeedModernization(data)"}),_.Y("design:type",Object)],zw.prototype,"isInfeedModernization",void 0);_.T([_.ea("data.colorData.basicColorPaletteData"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],zw.prototype,"observeBasicPalette",null);
_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],zw.prototype,"observeDataChanged",null);_.T([_.ea("data.isVisible"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],zw.prototype,"observeDataForCounterfactual",null);zw=_.T([_.y({is:"ytd-banner-promo-renderer",disableElementRegistration:!0})],zw);
_.r(zw,"ytd-banner-promo-renderer",function(){if(z8K!==void 0)return z8K;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-banner-promo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.isVisible]]" class="style-scope ytd-banner-promo-renderer">\n  <div class="ytd-banner-promo-renderer-background style-scope ytd-banner-promo-renderer">\n    <ytd-button-renderer id="dismiss-button" data="[[data.dismissButton.buttonRenderer]]" hidden="[[data.overflowButton]]" overrides="[[dismissButtonOverrides]]" on-click="onDismissClick" class="style-scope ytd-banner-promo-renderer">\n    </ytd-button-renderer>\n    <ytd-menu-renderer id="overflow-button" data="[[data.overflowButton.menuRenderer]]" hidden="[[!data.overflowButton]]" class="style-scope ytd-banner-promo-renderer">\n    </ytd-menu-renderer>\n    <div class="ytd-banner-promo-renderer-layout-container style-scope ytd-banner-promo-renderer">\n      <div class="ytd-banner-promo-renderer-layout style-scope ytd-banner-promo-renderer">\n        <img alt="" class="ytd-banner-promo-renderer-inline-image style-scope ytd-banner-promo-renderer" src$="[[computeUrlImg(data.backgroundImage)]]">\n        <template is="dom-if" if="[[data.logoImage]]" class="style-scope ytd-banner-promo-renderer">\n          <h1 class$="[[getLogoClassName(data.logoImage)]] style-scope ytd-banner-promo-renderer">\n            <yt-img-shadow height$="[[getLogoHeight(data.logoImage)]]" thumbnail="[[data.logoImage]]" class="style-scope ytd-banner-promo-renderer">\n            </yt-img-shadow>\n          </h1>\n        </template>\n        <div class="ytd-banner-promo-renderer-content style-scope ytd-banner-promo-renderer">\n          <div class="dynamic-text-container style-scope ytd-banner-promo-renderer">\n            <yt-dynamic-sizing-formatted-string class="dynamic-title-short style-scope ytd-banner-promo-renderer" font-family="[[data.titleFontFamily]]" hidden="[[!data.title]]" max-font-size="[[computeTitleMaxFontSize(data)]]" max-height="[[dynamicTextHeight]]" max-lines="2" max-width="440" min-font-size="20" text="[[data.title]]">\n            </yt-dynamic-sizing-formatted-string>\n            <yt-dynamic-sizing-formatted-string class="dynamic-title-long style-scope ytd-banner-promo-renderer" hidden="[[!data.promoText]]" max-font-size="[[computeTitleMaxFontSize(data)]]" max-height="[[dynamicTextHeight]]" max-lines="2" max-width="440" min-font-size="20" text="[[data.promoText]]">\n            </yt-dynamic-sizing-formatted-string>\n          </div>\n          <yt-attributed-string class="badge-text style-scope ytd-banner-promo-renderer" data="[[data.badgeText]]" hidden="[[!data.overflowButton]]">\n          </yt-attributed-string>\n          <yt-formatted-string class="supplemental-text style-scope ytd-banner-promo-renderer" style$="[[computeSupplementalStyle()]]" text="[[data.supplementalText]]">\n          </yt-formatted-string>\n          <ytd-button-renderer id="action-button" data="[[data.actionButton.buttonRenderer]]" invisible$="[[!data.actionButton.buttonRenderer]]" class="style-scope ytd-banner-promo-renderer">\n          </ytd-button-renderer>\n        </div>\n      </div>\n    </div>\n  </div>\n</template>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return z8K=F},{mode:1});var tvP;var Cc6;var B0x;var tY=function(){return _.n.apply(this,arguments)||this};
_.k(tY,_.n);_.T([_.O(),_.Y("design:type",Object)],tY.prototype,"data",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],tY.prototype,"ytRendererBehavior",void 0);tY=_.T([_.y({is:"ytd-hashtag-grid-tile-renderer",disableElementRegistration:!0})],tY);
_.r(tY,"ytd-hashtag-grid-tile-renderer",function(){if(B0x!==void 0)return B0x;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hashtag-grid-tile-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-hashtag-grid-tile-renderer" href$="[[computeHref_(data.onTapCommand)]]" data="[[data.onTapCommand]]">\n  <div id="info" class="style-scope ytd-hashtag-grid-tile-renderer">\n    <yt-formatted-string id="hashtag" aria-label="[[data.suggestion]]" text="[[data.hashtag]]" class="style-scope ytd-hashtag-grid-tile-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string id="hashtag-info" text="[[data.hashtagVideoCountText]]" class="style-scope ytd-hashtag-grid-tile-renderer">\n    </yt-formatted-string>\n  </div>\n</a>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return B0x=F},{mode:1});var Ct=function(){return _.n.apply(this,arguments)||this};
_.k(Ct,_.n);Ct.prototype.configureRendererStamper=function(){return{"data.tiles":{id:"tiles",mapping:{hashtagGridTileRenderer:"ytd-hashtag-grid-tile-renderer"}}}};
Ct.prototype.updateRichGridTrendingHashtagsVisibility=function(){var F,W;if(((F=this.data)==null||!F.isExpanded)&&(W=this.data)!=null&&W.tiles){F=this.data.tiles.length;W=F>this.richGridItemsPerRow?this.richGridItemsPerRow+1:F;var E=Math.ceil(F/W);this.fullyVisibleRows=F%W===1&&E===2?1:Math.min(E,2);this.isShowMoreVisible=this.fullyVisibleRows<E}};
Ct.prototype.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
Ct.prototype.updateRichGridTrendingHashtagsVisibility=Ct.prototype.updateRichGridTrendingHashtagsVisibility;_.T([_.O(),_.Y("design:type",Object)],Ct.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Number)],Ct.prototype,"fullyVisibleRows",void 0);_.T([_.O({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],Ct.prototype,"isShowMoreVisible",void 0);_.T([_.O({selector:_.Hz,value:0}),_.Y("design:type",Number)],Ct.prototype,"richGridItemsPerRow",void 0);
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Ct.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],Ct.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.am),_.Y("design:type",Object)],Ct.prototype,"ytdReduxBehavior",void 0);_.T([_.ea("data","richGridItemsPerRow"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Ct.prototype,"updateRichGridTrendingHashtagsVisibility",null);
Ct=_.T([_.y({is:"ytd-hashtag-grid-shelf-renderer",disableElementRegistration:!0})],Ct);
_.r(Ct,"ytd-hashtag-grid-shelf-renderer",function(){if(Cc6!==void 0)return Cc6;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hashtag-grid-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title-text" class="style-scope ytd-hashtag-grid-shelf-renderer">\n  <yt-formatted-string id="title" text="[[data.shelfTitle]]" class="style-scope ytd-hashtag-grid-shelf-renderer"></yt-formatted-string>\n</div>\n<div id="tiles" class="style-scope ytd-hashtag-grid-shelf-renderer"></div>\n<tp-yt-paper-button id="show-more-button" aria-label$="[[data.expandButtonText]]" noink="" on-click="onShowMoreClick" class="style-scope ytd-hashtag-grid-shelf-renderer">\n  <yt-icon id="show-more-button-icon" icon="yt-icons:expand" class="style-scope ytd-hashtag-grid-shelf-renderer"></yt-icon>\n</tp-yt-paper-button>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return Cc6=F},{mode:1});var v$6;var If$;var Bo=function(){var F=_.n.apply(this,arguments)||this;F.visibleVideos=[];F.hiddenVideos=[];F.modern=_.c("web_modern_buttons");F.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return F};
_.k(Bo,_.n);_.N=Bo.prototype;_.N.attached=function(){var F=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",F);this.onDarkModeToggledAction(F)};
_.N.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.header":{id:"section-header-container",mapping:{sectionHeaderViewModel:{component:"yt-section-header-view-model",params:{disableHorizontalPadding:!0}}}},"data.overflowButton":{id:"overflow-button",mapping:{menuRenderer:"ytd-menu-renderer"}},visibleVideos:{id:"visible-video-container",mapping:{videoRenderer:{component:"ytd-rich-grid-media",params:{disableInlinePreview:!0},
properties:{metadataColor:"[[videoMetadataColor]]"}},movieRenderer:{component:"ytd-rich-grid-slim-media",params:{disableInlinePreview:!0},properties:{metadataColor:"[[videoMetadataColor]]"}}}},hiddenVideos:{id:"hidden-video-container",mapping:{videoRenderer:{component:"ytd-rich-grid-media",params:{disableInlinePreview:!0},properties:{hidden:"[[true]]",metadataColor:"[[videoMetadataColor]]"}},movieRenderer:{component:"ytd-rich-grid-slim-media",params:{disableInlinePreview:!0},properties:{hidden:"[[true]]",
metadataColor:"[[videoMetadataColor]]"}}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.N.dataChanged=function(){var F=this;this.requestElementsPerRow();var W,E;this.currentColorPalette=this.isDarkTheme?(W=this.data)==null?void 0:W.darkColorData:(E=this.data)==null?void 0:E.lightColorData;var h;if((h=this.currentColorPalette)==null?0:h.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor;this.updateButtonPalette();this.setHasMovieRenderer();this.setVisibleVideos(this.hasMovieRenderer);_.wT(this,function(){F.updateVisibilityForHiddenVideos()});
this.checkExpanded(this.data)};
_.N.elementsPerRowChanged=function(){this.updateTitleSpec();this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.N.slimItemsPerRowChanged=function(){this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.N.computeIsFirstFeedItem=function(F){return F};
_.N.onDarkModeToggledAction=function(F){F!==this.isDarkTheme&&this.set("isDarkTheme",F);this.data&&(this.currentColorPalette=F?this.data.darkColorData:this.data.lightColorData,this.updateButtonPalette())};
_.N.getCurrentLogo=function(F,W){if(F)return W?F.darkLogoImage:F.lightLogoImage};
_.N.computeTitleStyle=function(F){var W;if((W=this.data)!=null&&W.title&&F&&F.textPrimary!==void 0)return"color:"+_.ZP(F.textPrimary)+";"};
_.N.computeSubtitleStyle=function(F){var W;if((W=this.data)!=null&&W.subtitle&&F&&F.textSecondary!==void 0)return"color:"+_.ZP(F.textSecondary)+";"};
_.N.computeDismissIconStyle=function(F){if(this.data&&this.data.dismissButton&&F&&F.textPrimary!==void 0)return"--yt-button-color:"+_.ZP(F.textPrimary)+";"};
_.N.computeOverflowButtonStyle=function(F){if(this.data&&this.data.overflowButton&&F&&F.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.ZP(F.textPrimary)+";--yt-spec-icon-active-other:"+_.ZP(F.textPrimary)+";"};
_.N.computeBackgroundStyle=function(F){if(F&&this.data){var W="";if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var E=_.KK((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);E&&(W+='background-image:url("'+E+'");')}F.backgroundColor!==void 0&&(W+="background-color:"+_.XC(F.backgroundColor)+";");return W}};
_.N.computeButton=function(){var F,W=Object.assign({},_.D((F=this.data)==null?void 0:F.showMoreButton,_.jt));if(this.modern&&W){W.style="STYLE_MONO_OUTLINE";var E;if(F=(E=this.currentColorPalette)==null?void 0:E.textPrimary)W.colorData={basicColorPaletteData:{foregroundTitleColor:F,borderColor:F}}}return W};
_.N.shouldShowBottomButton=function(F,W){return!(F==null?0:F.header)&&!(F==null||!F.primaryButton)&&W<3};
_.N.checkExpanded=function(F){this.isExpanded=F&&F.content?this.hiddenVideos.length===0:!0};
_.N.onShowMoreTap=function(){this.data&&(this.isExpanded=!0,this.updateVisibilityForHiddenVideos())};
_.N.getLogoHeight=function(F){return this.logoWithPadding(F)?"26":"20"};
_.N.getLogoImageId=function(F){return this.logoWithPadding(F)?"logo-image-with-padding":"logo-image"};
_.N.computeHasSectionHeader=function(F){return!!F.header};
_.N.updateButtonPalette=function(){if(this.data)if(this.currentColorPalette){var F;if((F=this.data.primaryButton)==null?0:F.buttonRenderer)this.currentColorPalette.primaryButtonColorData?(this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0):this.currentColorPalette.primaryButtonStyleType&&(this.data.primaryButton.buttonRenderer.style=this.currentColorPalette.primaryButtonStyleType,
this.data.primaryButton.buttonRenderer.colorData=void 0),this.set("primaryButton",Object.assign({},this.data.primaryButton.buttonRenderer));var W;((W=this.data.dismissButton)==null?0:W.buttonRenderer)&&this.currentColorPalette.dismissButtonColorData&&(this.data.dismissButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.dismissButtonColorData})}else{var E,h;((E=this.data)==null?0:(h=E.primaryButton)==null?0:h.buttonRenderer)&&this.set("primaryButton",this.data.primaryButton.buttonRenderer)}};
_.N.setVisibleVideos=function(F){if(this.data&&this.data.content)if(this.data.content.length){var W=this.data.content.length;this.data.header?F?(this.visibleVideos=this.data.content.slice(0,Math.min(W,this.slimItemsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(W,this.slimItemsPerRow),W)):(this.visibleVideos=this.data.content.slice(0,Math.min(W,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(W,this.elementsPerRow),W)):this.elementsPerRow<3?(this.visibleVideos=
this.data.content.slice(0,Math.min(W,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(W,this.elementsPerRow),W)):(this.visibleVideos=this.data.content.slice(0,Math.min(W,this.elementsPerRow-1)),this.hiddenVideos=this.data.content.slice(Math.min(W,this.elementsPerRow-1),W))}else this.visibleVideos=[],this.hiddenVideos=[]};
_.N.setHasMovieRenderer=function(){var F;if((F=this.data)!=null&&F.content){var W;this.hasMovieRenderer=!!_.D((W=this.data)==null?void 0:W.content[0],_.qjp)}else this.hasMovieRenderer=!1};
_.N.requestElementsPerRow=function(){_.hF(this.hostElement,"yt-request-elements-per-row")};
_.N.updateVisibilityForHiddenVideos=function(){if(this.data&&this.data.content){for(var F=_.U(this.hiddenMediaRenderers),W=F.next();!W.done;W=F.next())W.value.hidden=!this.isExpanded;this.isExpanded&&this.hiddenMediaRenderers[0]&&(F=_.Z(this.hiddenMediaRenderers[0]).querySelector("#video-title-link"))&&F.focus()}};
_.N.updateTitleSpec=function(){var F;(F=this.data)!=null&&F.titleLength&&(this.largeTitle=this.elementsPerRow===2&&this.data.titleLength>10?!0:!1)};
_.N.logoWithPadding=function(F){var W,E,h;return(F=(W=this.getCurrentLogo(F,this.isDarkTheme))==null?void 0:(E=W.thumbnails)==null?void 0:(h=E[0])==null?void 0:h.height)&&F%31===0?!0:!1};
_.N.onUpdateElementsPerRowAction=function(F,W,E){F&&this.elementsPerRow!==F&&(this.elementsPerRow=F);E&&this.slimItemsPerRow!==E&&(this.slimItemsPerRow=E)};
Bo.prototype.slimItemsPerRowChanged=Bo.prototype.slimItemsPerRowChanged;Bo.prototype.elementsPerRowChanged=Bo.prototype.elementsPerRowChanged;Bo.prototype.dataChanged=Bo.prototype.dataChanged;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Bo.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],Bo.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.O9),_.Y("design:type",Object)],Bo.prototype,"ytdDismissibleItemBehavior",void 0);
_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],Bo.prototype,"actionHandlerBehavior",void 0);_.T([_.J(_.am),_.Y("design:type",Object)],Bo.prototype,"ytdReduxBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],Bo.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Object)],Bo.prototype,"currentColorPalette",void 0);_.T([_.O(),_.Y("design:type",Array)],Bo.prototype,"visibleVideos",void 0);_.T([_.O(),_.Y("design:type",Array)],Bo.prototype,"hiddenVideos",void 0);
_.T([_.O(),_.Y("design:type",Object)],Bo.prototype,"primaryButton",void 0);_.T([_.O({reflectToAttribute:!0,value:3}),_.Y("design:type",Number)],Bo.prototype,"elementsPerRow",void 0);_.T([_.O({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],Bo.prototype,"isDarkTheme",void 0);_.T([_.O({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],Bo.prototype,"isExpanded",void 0);_.T([_.O({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],Bo.prototype,"largeTitle",void 0);
_.T([_.O({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],Bo.prototype,"hasMovieRenderer",void 0);_.T([_.O(),_.Y("design:type",Number)],Bo.prototype,"slimItemsPerRow",void 0);_.T([_.O(),_.Y("design:type",Boolean)],Bo.prototype,"showLightVideoMetadata",void 0);_.T([_.O(),_.Y("design:type",Boolean)],Bo.prototype,"showDarkVideoMetadata",void 0);_.T([_.O(),_.Y("design:type",Number)],Bo.prototype,"videoMetadataColor",void 0);
_.T([_.O({reflectToAttribute:!0,selector:_.XD}),_.Y("design:type",Boolean)],Bo.prototype,"miniMode",void 0);_.T([_.O({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.Y("design:type",Boolean)],Bo.prototype,"isFirstFeedItem",void 0);_.T([_.O({reflectToAttribute:!0,computed:"computeHasSectionHeader(data)"}),_.Y("design:type",Boolean)],Bo.prototype,"hasSectionHeader",void 0);
_.T([_.O({reflectToAttribute:!0,value:!0}),_.Y("design:type",Boolean)],Bo.prototype,"roundedContainer",void 0);_.T([_.Q9("#visible-video-container ytd-rich-grid-media"),_.Y("design:type",Array)],Bo.prototype,"visibleMediaRenderers",void 0);_.T([_.Q9("#hidden-video-container ytd-rich-grid-media"),_.Y("design:type",Array)],Bo.prototype,"hiddenMediaRenderers",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],Bo.prototype,"modern",void 0);
_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Bo.prototype,"dataChanged",null);_.T([_.ea("elementsPerRow"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Bo.prototype,"elementsPerRowChanged",null);_.T([_.ea("slimItemsPerRow"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Bo.prototype,"slimItemsPerRowChanged",null);
Bo=_.T([_.y({is:"ytd-brand-video-shelf-renderer",disableElementRegistration:!0})],Bo);
_.r(Bo,"ytd-brand-video-shelf-renderer",function(){if(If$!==void 0)return If$;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-brand-video-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" style$="[[computeBackgroundStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-shelf-renderer">\n  <div id="content-wrapper" class="style-scope ytd-brand-video-shelf-renderer">\n    <div id="shelf-header-container" hidden="[[!data.header]]" class="style-scope ytd-brand-video-shelf-renderer">\n      <div id="top-level-header-container" class="style-scope ytd-brand-video-shelf-renderer">\n        <div id="section-header-container" class="style-scope ytd-brand-video-shelf-renderer"></div>\n        <div id="top-buttons-container" hidden="[[!data.header]]" class="style-scope ytd-brand-video-shelf-renderer">\n          <ytd-button-renderer id="primary-button" data="[[primaryButton]]" hidden="[[!data.primaryButton]]" class="style-scope ytd-brand-video-shelf-renderer">\n          </ytd-button-renderer>\n          <div id="overflow-button" hidden="[[!data.overflowButton]]" style$="[[computeOverflowButtonStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-shelf-renderer"></div>\n        </div>\n      </div>\n      <div id="subtitle-container" style$="[[computeSubtitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-shelf-renderer">\n        <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-brand-video-shelf-renderer"></yt-formatted-string>\n      </div>\n    </div>\n    <div id="visible-content-wrapper" class="style-scope ytd-brand-video-shelf-renderer">\n      <div id="metadata-container" hidden="[[data.header]]" class="style-scope ytd-brand-video-shelf-renderer">\n        <div id="header-container" class="style-scope ytd-brand-video-shelf-renderer">\n          <yt-img-shadow height$="[[getLogoHeight(data)]]" hidden="[[!data.lightLogoImage]]" id$="[[getLogoImageId(data)]]" thumbnail="[[getCurrentLogo(data, isDarkTheme)]]" class="style-scope ytd-brand-video-shelf-renderer">\n          </yt-img-shadow>\n          <div id="badge-container" style$="[[computeTitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-shelf-renderer">\n            <yt-formatted-string id="badge" text="[[data.badgeText]]" class="style-scope ytd-brand-video-shelf-renderer"></yt-formatted-string>\n          </div>\n        </div>\n        <div id="title-container" style$="[[computeTitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-shelf-renderer">\n          <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-brand-video-shelf-renderer"></yt-formatted-string>\n        </div>\n        <div id="subtitle-container" style$="[[computeSubtitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-shelf-renderer">\n          <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-brand-video-shelf-renderer"></yt-formatted-string>\n        </div>\n        <div id="metadata-button-container" hidden="[[shouldShowBottomButton(data, elementsPerRow)]]" class="style-scope ytd-brand-video-shelf-renderer">\n          <ytd-button-renderer id="primary-button" data="[[primaryButton]]" class="style-scope ytd-brand-video-shelf-renderer">\n          </ytd-button-renderer>\n        </div>\n      </div>\n      <div id="visible-video-container" class="style-scope ytd-brand-video-shelf-renderer"></div>\n    </div>\n    <div id="hidden-video-container" class="style-scope ytd-brand-video-shelf-renderer"></div>\n    <div id="bottom-button-container" hidden="[[!shouldShowBottomButton(data, elementsPerRow)]]" class="style-scope ytd-brand-video-shelf-renderer">\n      <ytd-button-renderer id="primary-button" data="[[primaryButton]]" class="style-scope ytd-brand-video-shelf-renderer">\n      </ytd-button-renderer>\n    </div>\n  </div>\n  <div id="show-more-button-container" hidden="[[isExpanded]]" class="style-scope ytd-brand-video-shelf-renderer">\n    <ytd-button-renderer id="show-more-button" data="[[computeButton(data.showMoreButton.buttonRenderer, currentColorPalette)]]" style$="[[computeDismissIconStyle(currentColorPalette)]]" on-click="onShowMoreTap" class="style-scope ytd-brand-video-shelf-renderer">\n    </ytd-button-renderer>\n  </div>\n  <div id="dismiss-button" hidden="[[data.overflowButton]]" style$="[[computeDismissIconStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-shelf-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-brand-video-shelf-renderer"></div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return If$=F},{mode:1});var cuK;var vo=function(){var F=_.n.apply(this,arguments)||this;F.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return F};
_.k(vo,_.n);_.N=vo.prototype;_.N.attached=function(){var F=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",F);this.onDarkModeToggledAction(F)};
_.N.configureRendererStamper=function(){return{primaryButton:{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.overflowButton":{id:"overflow-button",mapping:{menuRenderer:"ytd-menu-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}},"data.attachedSurvey":{id:"attached-survey",mapping:{slimlineSurveyViewModel:"yt-slimline-survey-view-model"}}}};
_.N.dataChanged=function(){this.requestElementsPerRow();var F,W;this.currentColorPalette=this.isDarkTheme?(F=this.data)==null?void 0:F.darkColorData:(W=this.data)==null?void 0:W.lightColorData;this.computeVideoMetadataColor(this.isDarkTheme);this.updateButtonPalette()};
_.N.elementsPerRowChanged=function(){this.updateTitleSpec()};
_.N.computeIsFirstFeedItem=function(F){return F};
_.N.onDarkModeToggledAction=function(F){F!==this.isDarkTheme&&this.set("isDarkTheme",F);this.data&&(this.currentColorPalette=F?this.data.darkColorData:this.data.lightColorData,this.computeVideoMetadataColor(F),this.updateButtonPalette())};
_.N.shouldShowThumbnailInMetadata=function(F){return F<=1};
_.N.computeVideoMetadataColor=function(){if(this.data){var F;if((F=this.currentColorPalette)==null?0:F.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor}};
_.N.computeTitleStyle=function(F){var W;if((W=this.data)!=null&&W.title&&F&&F.textPrimary!==void 0)return"color:"+_.ZP(F.textPrimary)+";"};
_.N.computeSubtitleStyle=function(F){var W;if((W=this.data)!=null&&W.subtitle&&F&&F.textSecondary!==void 0)return"color:"+_.ZP(F.textSecondary)+";"};
_.N.computeOverflowButtonStyle=function(F){var W;if(this.data&&this.data.overflowButton&&(F==null?0:(W=F.dismissButtonColorData)==null?0:W.foregroundTitleColor))return"--ytd-menu-renderer-button-color:"+_.ZP(F.dismissButtonColorData.foregroundTitleColor)+";--yt-spec-icon-active-other:"+_.ZP(F.dismissButtonColorData.foregroundTitleColor)+";"};
_.N.computeBackgroundStyle=function(F){if(F&&this.data){var W="";F.backgroundColor!==void 0&&(W+="background-color:"+_.XC(F.backgroundColor)+";");return W}};
_.N.computeHasOverflowButton=function(F){return!!F.overflowButton};
_.N.updateButtonPalette=function(){if(this.data){var F;if((F=this.data.primaryButton)==null?0:F.buttonRenderer){var W;if((W=this.currentColorPalette)==null?0:W.primaryButtonColorData)this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0;else{var E;((E=this.currentColorPalette)==null?0:E.primaryButtonStyleType)?(this.data.primaryButton.buttonRenderer.style=this.currentColorPalette.primaryButtonStyleType,
this.data.primaryButton.buttonRenderer.colorData=void 0):this.data.primaryButton.buttonRenderer.style="STYLE_MONO_TONAL"}this.set("primaryButton",{buttonRenderer:Object.assign({},this.data.primaryButton.buttonRenderer)})}}};
_.N.requestElementsPerRow=function(){_.hF(this.hostElement,"yt-request-elements-per-row")};
_.N.updateTitleSpec=function(){var F;(F=this.data)!=null&&F.titleLength&&(this.titleSize=this.elementsPerRow<=3?this.data.titleLength<=10?"TITLE_SIZE_MEDIUM":"TITLE_SIZE_SMALL":this.data.titleLength<=13?"TITLE_SIZE_LARGE":this.data.titleLength<=30?"TITLE_SIZE_MEDIUM":"TITLE_SIZE_SMALL")};
_.N.onUpdateElementsPerRowAction=function(F){F&&this.elementsPerRow!==F&&(this.elementsPerRow=F)};
vo.prototype.elementsPerRowChanged=vo.prototype.elementsPerRowChanged;vo.prototype.dataChanged=vo.prototype.dataChanged;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],vo.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],vo.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.O9),_.Y("design:type",Object)],vo.prototype,"ytdDismissibleItemBehavior",void 0);
_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],vo.prototype,"actionHandlerBehavior",void 0);_.T([_.J(_.am),_.Y("design:type",Object)],vo.prototype,"ytdReduxBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],vo.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Object)],vo.prototype,"currentColorPalette",void 0);_.T([_.O(),_.Y("design:type",Object)],vo.prototype,"primaryButton",void 0);
_.T([_.O({reflectToAttribute:!0,value:3}),_.Y("design:type",Number)],vo.prototype,"elementsPerRow",void 0);_.T([_.O({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],vo.prototype,"isDarkTheme",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",String)],vo.prototype,"titleSize",void 0);_.T([_.O(),_.Y("design:type",Number)],vo.prototype,"videoMetadataColor",void 0);_.T([_.O({reflectToAttribute:!0,selector:_.XD}),_.Y("design:type",Boolean)],vo.prototype,"miniMode",void 0);
_.T([_.O({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.Y("design:type",Boolean)],vo.prototype,"isFirstFeedItem",void 0);_.T([_.O({reflectToAttribute:!0,value:!0}),_.Y("design:type",Boolean)],vo.prototype,"roundedContainer",void 0);_.T([_.O({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.Y("design:type",Boolean)],vo.prototype,"hasOverflowButton",void 0);
_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],vo.prototype,"dataChanged",null);_.T([_.ea("elementsPerRow"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],vo.prototype,"elementsPerRowChanged",null);vo=_.T([_.y({is:"ytd-brand-video-singleton-renderer",disableElementRegistration:!0})],vo);
_.r(vo,"ytd-brand-video-singleton-renderer",function(){if(cuK!==void 0)return cuK;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-brand-video-singleton-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-brand-video-singleton-renderer">\n  <div id="content-wrapper" style$="[[computeBackgroundStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer">\n    <div id="thumbnail-container" hidden="[[shouldShowThumbnailInMetadata(elementsPerRow)]]" class="style-scope ytd-brand-video-singleton-renderer">\n      <ytd-rich-grid-media data="[[data.content.videoRenderer]]" hidden="[[shouldShowThumbnailInMetadata(elementsPerRow)]]" metadata-color="[[videoMetadataColor]]" class="style-scope ytd-brand-video-singleton-renderer"></ytd-rich-grid-media>\n    </div>\n    <div id="metadata-container" class="style-scope ytd-brand-video-singleton-renderer">\n      <div id="metadata-text-container" class="style-scope ytd-brand-video-singleton-renderer">\n        <div id="title-container" style$="[[computeTitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer">\n          <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-brand-video-singleton-renderer"></yt-formatted-string>\n        </div>\n        <div id="featured-badge-container" style$="[[computeTitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer">\n          <yt-formatted-string text="[[data.badgeText]]" class="style-scope ytd-brand-video-singleton-renderer"></yt-formatted-string>\n        </div>\n        <div id="subtitle-container" style$="[[computeSubtitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer">\n          <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-brand-video-singleton-renderer"></yt-formatted-string>\n        </div>\n      </div>\n      <div id="metadata-video-container" hidden="[[!shouldShowThumbnailInMetadata(elementsPerRow)]]" class="style-scope ytd-brand-video-singleton-renderer">\n        <ytd-rich-grid-media data="[[data.content.videoRenderer]]" hidden="[[!shouldShowThumbnailInMetadata(elementsPerRow)]]" metadata-color="[[videoMetadataColor]]" class="style-scope ytd-brand-video-singleton-renderer"></ytd-rich-grid-media>\n      </div>\n      <div id="button-container" class="style-scope ytd-brand-video-singleton-renderer">\n        <div id="primary-button" class="style-scope ytd-brand-video-singleton-renderer"></div>\n      </div>\n    </div>\n  </div>\n  <div id="overflow-button" style$="[[computeOverflowButtonStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer"></div>\n  <div id="attached-survey" class="style-scope ytd-brand-video-singleton-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-brand-video-singleton-renderer"></div>');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return cuK=F},{mode:_.E6("kevlar_poly_si_batch_j070")?1:2});var DZO;var xZx=_.GK(function(F){var W=F.data;return _.z(_.T4,{data:function(){return W().thumbnail},
alt:"",className:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail-image",targetHeight:function(){a:switch(W().variant){case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_VERTICAL":var E=108;break a;case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_FULL_BLEED_HORIZONTAL":E=88;break a;default:E=88}return E},
preserveHeight:!0,preserveWidth:!0,useWidth:!1,contentMode:function(){return W().thumbnail.contentMode||"CONTENT_MODE_SCALE_ASPECT_FIT"}})},"fi"),Aug=_.GK(function(F){var W=F.metadataRow;
var E=F.delimiter;return _.z(_.xF,{each:function(){return W().textParts||[]},
keyBy:"INDEX"},function(h,d){return _.z(_.EG,null,_.z(_.Ab,{text:h,noWrap:!0,userInput:!0}),_.z(kPw,{delimiter:E,max:function(){return W().textParts.length},
index:d}))})},"gi"),kPw=_.GK(function(F){var W=F.delimiter;
var E=F.max;var h=F.index;return _.z(_.v,{cond:function(){return(W==null?void 0:W())&&E()-1>h()},
then:function(){return _.z("span",null,W)}})},"hi"),sMK=_.GK(function(F){var W=F.data;
F={};return _.z("yt-profile-page-header-information-view-model",{class:_.ec("profile-page-header-information-view-model-wiz",(F["profile-page-header-information-view-model-wiz--mobile"]=!1,F))},_.z(_.v,{cond:function(){return W().onTap},
then:function(){return _.z(_.kY,{className:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail",command:function(){return _.He(W().onTap)}},_.z(_.a6,{data:function(){return W().thumbnail}},{profilePageHeaderThumbnailViewModel:xZx}))},
else:function(){return _.z("div",{class:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail"},_.z(_.a6,{data:function(){return W().thumbnail}},{profilePageHeaderThumbnailViewModel:xZx}))}}),_.z("div",{class:"profile-page-header-information-view-model-wiz__flex-container"},_.z(_.v,{cond:function(){return W().onTap},
then:function(){return _.z(_.a6,{data:function(){return W().title}},{profilePageHeaderTitleViewModel:function(E){var h=E.data;
return _.z(_.kY,{className:"profile-page-header-information-view-model-wiz__profile-page-header-title",command:function(){return _.He(h().onTap)}},_.z(_.Ab,{text:function(){return h().title}}))}})},
else:function(){return _.z(_.a6,{data:function(){return W().title}},{profilePageHeaderTitleViewModel:function(E){var h=E.data;
return _.z(_.Ab,{text:function(){return h().title},
className:"profile-page-header-information-view-model-wiz__profile-page-header-title"})}})}}),_.z(_.a6,{data:function(){return W().metadata}},{profilePageHeaderMetadataViewModel:function(E){var h=E.data;
return _.z(_.v,{cond:function(){return h().metadataRows},
then:function(d){return _.z("div",{class:"profile-page-header-information-view-model-wiz__profile-page-header-metadata"},_.z(_.xF,{each:d,keyBy:"INDEX"},function(V,R){return _.z(_.EG,null,_.z(Aug,{metadataRow:V,delimiter:" \u2022 "}),_.z(kPw,{delimiter:" \u2022 ",max:function(){return d().length},
index:R}))}))}})}})))},"ii");
sMK.idomCompat=!0;_.pK(sMK,"yt-profile-page-header-information-view-model",{props:{data:_.TS}});var Ia=function(){return _.n.apply(this,arguments)||this};
_.k(Ia,_.n);Ia.prototype.configureRendererStamper=function(){return{"data.information":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],Ia.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],Ia.prototype,"data",void 0);Ia=_.T([_.y({is:"ytd-effect-pivot-header-view-model",disableElementRegistration:!0})],Ia);
_.r(Ia,"ytd-effect-pivot-header-view-model",function(){if(DZO!==void 0)return DZO;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-effect-pivot-header-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-effect-pivot-header-view-model"></div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return DZO=
F},{mode:1});var LSu;var co=function(){return _.n.apply(this,arguments)||this};
_.k(co,_.n);co.prototype.configureRendererStamper=function(){return{"data.headerInformation":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],co.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],co.prototype,"data",void 0);co=_.T([_.y({is:"ytd-source-pivot-header-renderer",disableElementRegistration:!0})],co);
_.r(co,"ytd-source-pivot-header-renderer",function(){if(LSu!==void 0)return LSu;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-source-pivot-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-source-pivot-header-renderer"></div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return LSu=F},{mode:1});_.qSq=_.GK(function(F){var W=F.data;F=_.uf();_.Sb(F,function(){return W().rendererContext});
var E=function(){var h;return _.uJ((h=W())==null?void 0:h.rendererContext)};
return _.z("content-list-item-view-model",{el:F,class:"ytContentListItemViewModelHost",role:function(){return E()?"listitem":void 0},
tabindex:function(){return E()?0:void 0}},_.z("div",{class:"ytContentListItemViewModelContentListItemWrapper"},_.z("div",{class:"ytContentListItemViewModelImageContainer"},_.z(_.v,{cond:function(){return W().image},
then:function(h){return _.z(_.T4,{data:h,alt:"",targetWidth:72,targetHeight:72,preserveWidth:!0,preserveHeight:!0,className:"ytContentListItemViewModelimageClassName"})}}),_.z(_.a6,{data:function(){var h;
return(h=W())==null?void 0:h.avatar}},{avatarViewModel:_.fI})),_.z("div",{class:"ytContentListItemViewModelTitleMetadataWrapper"},_.z("div",{class:"ytContentListItemViewModelTitle"},_.z(_.Ab,{text:function(){return W().title}})),_.z("div",{class:"ytContentListItemViewModelMetadata"},_.z(_.a6,{data:function(){return W().metadata}},{contentMetadataViewModel:function(h){return _.z(_.Zee,{data:h.data,
layout:1})}})))),_.z("div",{class:"ytContentListItemViewModelActionButton"},_.z(_.a6,{data:function(){var h;
return(h=W())==null?void 0:h.actionButton}},{buttonViewModel:_.rk,
toggleButtonViewModel:_.bJ})))},"ji");_.pK(_.GK(function(F){var W={},E={},h={},d={};return _.z("yt-card-view-model",{class:_.ec("ytCardViewModelHost",F.className,(W.ytCardViewModelOutline=function(){return F.data().cardStyle==="CARD_STYLE_OUTLINE"},W),(E.ytCardViewModelRaised=function(){return F.data().cardStyle==="CARD_STYLE_RAISED"||F.data().cardStyle==="CARD_STYLE_UNSPECIFIED"},E),(h.ytCardViewModelTonal=function(){return F.data().cardStyle==="CARD_STYLE_TONAL"},h),(d.ytCardViewModelInverted=function(){return F.data().cardStyle===
"CARD_STYLE_INVERSE"},d))},_.z(_.a6,{data:function(){return F.data().background}},{cinematicContainerViewModel:function(V){return _.z(_.IFe,{data:V.data})}}),_.z("div",{class:"ytCardViewModelContentWrapper"},_.z(_.a6,{data:function(){return F.data().content}},{contentListItemViewModel:function(V){return _.z(_.qSq,{data:V.data})}})),_.z(_.a6,{data:function(){return F.data().dismissAction}},{buttonViewModel:function(V){return _.z(_.rk,{data:V.data})}}))},"ki"),"yt-card-view-model",{props:{data:_.TS,
className:_.TS}});_.pK(_.GK(function(F){var W=function(){return _.D(F.data().flowRoot,WSO)};
_.Xk(function(){var E=W(),h=function(){},d=function(){};
if(E){var V,R,M=(R=_.D((V=E.steps)==null?void 0:V[0],_.teT))==null?void 0:R.stepId;oX6(E,M||"");h=YEx(E);d=w7w(E)}_.$p(function(){h();h=function(){};
d();d=function(){}})});
return _.z("ytd-talk-to-recs-flow-renderer",{class:"ytdTalkToRecsFlowRendererHost"},_.z(_.a3e,{contentId:function(){return F.data().contentId}},function(){return _.z("div",{class:"ytdTalkToRecsFlowRendererFlowContent"},_.z(_.v,{cond:W,
then:function(E){return _.z(_.hxq,{data:E})}}))}))},"li"),"ytd-talk-to-recs-flow-renderer",{props:{data:_.TS}});_.pK(_.GK(function(){return _.z("ytd-chips-shelf-with-video-shelf-ghost-card-view-model",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelHost"},_.z("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelTitle"}),_.z("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelChipsShelf"},_.z(_.TV6,null)),_.z(_.bDi,{data:{rows:1},isExploreHub:!0}))},"mi"),"ytd-chips-shelf-with-video-shelf-ghost-card-view-model");_.pK(_.GK(function(F){var W=F.data;var E=F.standardUnitMinWidth;F=_.uf();var h=_.U((0,_.jhu)(W)),d=h.next().value,V=h.next().value,R=function(){var g,t=(g=d())==null?void 0:g.contents;return t==null||t.length===0},M=function(){V(Object.assign({},d(),{contents:[]}))};
_.ER(F,{showOption:{calledOnce:!0,state:"visible"},visibilityCallback:function(){var g=_.D(W().chipsShelf,E$6);if(g!=null&&g!=null&&g.autoselectChipOnVisible){var t,C,B=_.D(g==null?void 0:(t=g.contents)==null?void 0:t[(C=g.autoselectedChipIndex)!=null?C:0],_.oH);B&&B.tapCommand&&_.fK(B.tapCommand)}}});
return _.z("ytd-chips-shelf-with-video-shelf-renderer",{class:"ytdChipsShelfWithVideoShelfRendererHost",el:F},_.z(_.a3e,{contentId:function(){return W().contentId},
useLegacyShelfStyle:function(){return!0}},function(){return _.z("div",null,_.z("div",{class:"ytdChipsShelfWithVideoShelfRendererHeader"},_.z(_.a6,{data:function(){return W().header}},{sectionHeaderViewModel:function(g){return _.z(_.N7,{data:g.data,
disableHorizontalPadding:!0})}})),_.z("div",{class:"ytdChipsShelfWithVideoShelfRendererChipsShelf"},_.z(_.a6,{data:function(){return W().chipsShelf}},{chipsShelfViewModel:function(g){return _.z(_.j5U,{data:g.data,
callback:M,enableSingleChipSelection:!0})}})),_.z("div",null,_.z(_.v,{cond:R,
then:function(){return _.z("div",{class:"ytdChipsShelfWithVideoShelfRendererGhostCards"},_.z(_.bDi,{data:{rows:1},isExploreHub:!0}))}}),_.z(_.a6,{data:function(){var g;
return(g=d())==null?void 0:g.contents}},{richShelfRenderer:function(g){return _.z(_.yoT,{data:g.data,
isInnerShelf:!0,standardUnitMinWidth:E})}})))}))},"ni"),"ytd-chips-shelf-with-video-shelf-renderer",{props:{data:_.TS,
standardUnitMinWidth:_.TS}});var D7=function(){return _.n.apply(this,arguments)||this};
_.k(D7,_.n);
D7.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{backgroundPromoRenderer:"ytd-background-promo-renderer",compactPromotedItemRenderer:"ytd-compact-promoted-item-renderer",counterfactualRenderer:"ytd-counterfactual-renderer",destinationShelfRenderer:{component:"ytd-destination-shelf-renderer",params:{isRichGrid:!0}},hashtagGridShelfRenderer:"ytd-hashtag-grid-shelf-renderer",inlineSurveyRenderer:"ytd-inline-survey-renderer",primetimePromoRenderer:"ytd-primetime-promo-renderer",richShelfRenderer:{component:"ytd-rich-shelf-renderer",
properties:{standardUnitMinWidth:"[[standardUnitMinWidth]]"}},sourcePivotHeaderRenderer:"ytd-source-pivot-header-renderer",effectPivotHeaderViewModel:"ytd-effect-pivot-header-view-model",showingResultsForRenderer:"yt-showing-results-for-renderer",statementBannerRenderer:"ytd-statement-banner-renderer",brandVideoShelfRenderer:"ytd-brand-video-shelf-renderer",brandVideoSingletonRenderer:"ytd-brand-video-singleton-renderer",richListHeaderRenderer:"ytd-rich-list-header-renderer",faqSectionRenderer:"yt-faq-section-renderer",
feedNudgeRenderer:"ytd-feed-nudge-renderer",shelfRenderer:"ytd-shelf-renderer",talkToRecsFlowRenderer:"ytd-talk-to-recs-flow-renderer",chipsShelfViewModel:"chips-shelf-view-model",cardViewModel:"yt-card-view-model",chipsShelfWithVideoShelfRenderer:{component:"ytd-chips-shelf-with-video-shelf-renderer",properties:{standardUnitMinWidth:"[[standardUnitMinWidth]]"}},carouselItemRenderer:{component:"ytd-carousel-item-renderer",params:{isCarouselInFeed:!0,disableGridStateAware:!0}},messageRenderer:"ytd-message-renderer",
alertBannerViewModel:{component:"yt-alert-banner-view-model",params:{isInRichGrid:!0}},chipsShelfWithVideoShelfGhostCardViewModel:"ytd-chips-shelf-with-video-shelf-ghost-card-view-model"},reuseComponents:!1}}};
D7.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
_.T([_.J(_.am),_.Y("design:type",Object)],D7.prototype,"ytdReduxBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],D7.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.br),_.Y("design:type",Object)],D7.prototype,"ytContinuationHandlerBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],D7.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],D7.prototype,"data",void 0);
_.T([_.O(),_.Y("design:type",Number)],D7.prototype,"standardUnitMinWidth",void 0);D7=_.T([_.y({is:"ytd-rich-section-renderer",disableElementRegistration:!0})],D7);
_.r(D7,"ytd-rich-section-renderer",function(){if(v$6!==void 0)return v$6;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-rich-section-renderer"></div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return v$6=F},{mode:_.E6("kevlar_poly_si_batch_j029")?
1:2});_.pK(_.PuO,"yt-profile-identity-info-view-model",{props:{data:_.TS,hideDivider:_.TS}});_.pK(_.X8B,"yt-page-header-view-model",{props:{data:_.TS,noPadding:_.TS,enableBanner:_.TS,cinematicContainerTopbarOffset:_.TS,allowCinematicContainerOverflow:_.TS,displayAsSidebar:_.TS,displayAsPanel:_.TS}});_.pK(_.GK(function(F){var W=F.data;var E=function(){var d;return(d=W().numColumns)!=null?d:2},h=function(){return E()>1?3:2};
F={};return _.z("ytd-rich-grid-group",{class:_.ec("ytdRichGridGroupHost",(F.ytdRichGridGroupHostFirstColumn=function(){return W().colIndex===0},F)),
style:_.vr({"--ytd-rich-grid-group-num-columns":E,"--ytd-rich-grid-items-per-group":h})},_.z("div",{class:"ytdRichGridGroupContents"},_.z(_.a6,{data:function(){var d;return(d=W().contents)==null?void 0:d.slice(0,h())}},{richItemRenderer:function(d){return _.z(_.lKc,{data:d.data,
noGutterMargins:!0,isInlineGroupItem:!0,insetMetadata:!0})}})))},"oi"),"ytd-rich-grid-group",{props:{data:_.TS}});var xv=function(){var F=_.n.apply(this,arguments)||this;F.resizeOnObserverInit=!1;F.isInlinePreviewDisabled=_.c("web_disable_inline_preview");F.disableStickyFilterBar=!1;F.transparentBackgroundChipsBar=!1;F.hideChipsBar=!1;F.isWatchDefaultLayout=!0;F.continuationShowButton=!1;F.rowReducedHorizontalMargin=!1;F.useCompactList=!1;F.manualDownloadsPresent=!1;F.smartDownloadsPresent=!1;F.shouldRenderDownloadsBanner=!1;F.hasOptedIntoSmartDownloads=!1;F.elementsPerRow=4;F.typographyBump=!1;F.showGnomeContents=
!1;F.showExploreHubContents=!1;F.slimItemsPerRow=1;F.pageLoadingFromNavigation=!1;F.loggingRefactor=_.c("kevlar_rich_grid_logging_fix");F.resizeObserver=null;F.actionMap={"yt-chip-cloud-chip-select-action":"handleChipCloudChipSelectAction","yt-chip-cloud-chip-deselect-action":"handleChipCloudChipDeselectAction","yt-signal-action-soft-reload-page":"onSoftReloadPage","yt-playlist-remove-videos-action":"handlePlaylistRemoveVideosAction","yt-insert-rich-section-action":"insertRichSection"};F.rendererToTagNameMap=
new Map(Object.entries(F.contentMapping()).map(function(W){var E=_.U(W);W=E.next().value;E=E.next().value;return[W,E.component]}));
F.insertedContent=new Map;return F};
_.k(xv,_.n);_.N=xv.prototype;_.N.onUseCompactListChange=function(){if(this.useCompactList!==void 0)for(var F=_.U(_.Z(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),W=F.next();!W.done;W=F.next())W.value.useCompactList=this.useCompactList};
_.N.onSizingChange=function(){if(this.sizing!==void 0&&this.typographyBump!==void 0)for(var F=_.U(_.Z(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),W=F.next();!W.done;W=F.next())W=W.value,W.sizing=this.sizing,W.typographyBump=this.typographyBump};
_.N.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.N.contentMapping=function(){return{richGroupRenderer:{component:"ytd-rich-grid-group"},richItemRenderer:{component:"ytd-rich-item-renderer",properties:{isShortsGrid:"[[isShortsGrid]]",isSlimGrid:"[[isSlimGrid]]",isCompactGrid:"[[isCompactGrid]]",isShortsPanelGrid:"[[isShortsPanel]]",noGutterMargins:"[[noRichItemGutterMargins]]",force16By9ThumbnailAspectRatio:"[[force16By9ThumbnailAspectRatio]]",useCompactList:"[[useCompactList]]",sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",itemWidth:"[[itemWidth]]",
isHomeGrid:"[[isHomePage]]"},params:{renderedFromRichGrid:!0}},richSectionRenderer:{component:"ytd-rich-section-renderer",properties:{standardUnitMinWidth:"[[data.minItemWidth]]"}},continuationItemRenderer:{component:"ytd-continuation-item-renderer",properties:{isShortsGrid:"[[isShortsGrid]]",showButton:"[[continuationShowButton]]",continuationTriggerOffset:"[[continuationTriggerOffset]]"}}}};
_.N.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{feedFilterChipBarRenderer:{component:"ytd-feed-filter-chip-bar-renderer",properties:{fluidWidth:"[[isDefaultGrid]]",disableSticky:"[[disableStickyFilterBar]]",transparentBackground:"[[transparentBackgroundChipsBar]]"}},chipBarViewModel:{component:"chip-bar-view-model",params:{className:"ytd-rich-grid-renderer chip-bar"}},pageHeaderViewModel:{component:"yt-page-header-view-model",params:{displayAsPanel:!0}},profileIdentityInfoViewModel:{component:"yt-profile-identity-info-view-model"}}},
bigYoodleData:{id:"big-yoodle",mapping:{brandVideoShelfRenderer:"ytd-brand-video-shelf-renderer",brandVideoSingletonRenderer:"ytd-brand-video-singleton-renderer",statementBannerRenderer:"ytd-statement-banner-renderer"},reuseComponents:!1},mastheadData:{id:"masthead-ad",mapping:{bannerPromoRenderer:"ytd-banner-promo-renderer",adSlotRenderer:"ytd-ad-slot-renderer"},reuseComponents:!1},shownItems:{id:"contents",mapping:this.contentMapping(),reuseComponents:!1}}};
_.N.attached=function(){document.addEventListener("yt-page-type-changed",_.UO(this,this.onPageChange));this.updateItemMinAndMaxWidth();this.throttledOnResize=new _.Nv(this.resizeObserved,_.dV("rich_grid_resize_delay_ms",50),this)};
_.N.detached=function(){var F;(F=this.resizeObserver)==null||F.disconnect();document.removeEventListener("yt-page-type-changed",_.UO(this,this.onPageChange))};
_.N.insertRichSection=function(F){var W=F.richItemTargetId;F=F.richSectionRendererToInsert;W&&F&&(this.insertedContent.set(W,F),this.reflowContent())};
_.N.computeIsReloading=function(){return this.ytContinuationHandlerBehavior.continuationIsReloading};
_.N.computeIsInlinePreviewEnabled=function(F,W,E){return _.c("web_disable_inline_preview")?!1:!E&&_.d6w({miniplayerIsActive:F,miniplayerPlaybackState:W})};
_.N.computeSizing=function(){var F=_.KdW(this.data);if(F||!(this.isShortsGrid||this.isSlimGrid||this.isCompactGrid||this.isShortsPanel))return F?this.useCompactList?"COMPACT":F:this.miniMode?"COMPACT":_.c("web_use_layout_library_for_rich_grid")?"STANDARD":void 0};
_.N.updateItemMinAndMaxWidth=function(){var F=_.dV("rich_grid_max_item_width",500);F>0&&_.V9(this.hostElement,{"--ytd-rich-grid-item-max-width":F+"px"});var W;F=this.getRichItemMinWidth((W=this.hostElement)==null?void 0:W.clientWidth);F>0&&_.V9(this.hostElement,{"--ytd-rich-grid-item-min-width":F+"px"})};
_.N.forceRefreshAndLog=function(){this.refreshGridLayout(!0);this.updateRichItemGridPositions()};
_.N.resizeObserved=function(){_.Nc(this.hostElement,"yt-rich-grid-resize-observed");this.refreshGridLayout(!1,!0)&&this.updateRichItemGridPositions()};
_.N.navigateBackToHome=function(){_.c("web_hide_gnome_until_user_navigates_back_to_home")&&(this.showGnomeContents=!1);_.c("web_hide_explore_hub_until_user_navigates_back_to_home")&&(this.showExploreHubContents=!1);var F=_.WZ().resolve(_.KQ).isOnWatch(),W,E=((W=_.tg(location.pathname))==null?void 0:W.toString())||"";(["search".toString(),"subscriptions".toString(),"shorts".toString()].includes(E)||F)&&this.gnomeContents&&_.c("web_hide_gnome_until_user_navigates_back_to_home")&&(this.showGnomeContents=
!0);F&&this.exploreHubContents&&_.c("web_hide_explore_hub_until_user_navigates_back_to_home")&&(_.uC().dispatch(_.dR({type:"TALK_TO_RECS_RESET_STEP_STATES",payload:null})),this.showExploreHubContents=!0)};
_.N.onPageChange=function(){var F=this;this.isCurrentPage()?(this.pageLoadingFromNavigation=!0,_.c("disable_chip_select_on_nav")||_.Nc(this.hostElement,"yt-chip-cloud-chip-deselect-action"),_.P0.addJob(function(){F.pageLoadingFromNavigation=!1;_.c("disable_chip_select_on_nav")&&_.c("h5_reset_cache_and_filter_before_update_masthead")&&F.resetCacheAndIsFilteredFeed();F.setMasthead();F.maybeSetBigYoodle();F.forceRefreshAndLog();F.terminateVideoPreview();_.c("web_hide_gnome_until_user_navigates_back_to_home")&&
(F.dataChanged(),_.wT(F,function(){if(F.showGnomeContents){var W=Array.from(_.Z(F.hostElement).querySelectorAll("ytd-rich-section-renderer")).find(function(h){h=_.Z(h).querySelector("ytd-rich-shelf-renderer");return!!h&&h.isGnomeShelf()});
if(W){W=W.offsetTop-F.contentsElement.offsetTop;var E=_.WZ().resolve(_.KQ).getCurrentPage();E&&E.getPageScrollingElement().scrollTo({top:W,behavior:"smooth"})}}}));
_.c("web_hide_explore_hub_until_user_navigates_back_to_home")&&(F.dataChanged(),_.wT(F,function(){if(F.showExploreHubContents&&!_.c("web_explore_hub_no_scroll")){var W=Array.from(_.Z(F.hostElement).querySelectorAll("ytd-rich-section-renderer")).find(function(h){return!!h.querySelector("ytd-talk-to-recs-flow-renderer")});
if(W){W=W.offsetTop-F.contentsElement.offsetTop;var E=_.WZ().resolve(_.KQ).getCurrentPage();E&&E.getPageScrollingElement().scrollTo({top:W,behavior:"smooth"})}}}))},8)):((_.c("web_hide_gnome_until_user_navigates_back_to_home")||_.c("web_hide_explore_hub_until_user_navigates_back_to_home"))&&this.navigateBackToHome(),this.mastheadData&&(this.mastheadData=void 0))};
_.N.dataChanged=function(){var F=this,W=_.dV("web_rich_grid_row_margin",0);W>0&&_.V9(this.hostElement,{"--ytd-rich-grid-row-margin":W+"px"});_.Nc(this.hostElement,"ytd-update-grid-state-action");this.data&&this.pageLoadingFromNavigation||(this.pagePath=location.pathname,this.resetCacheAndIsFilteredFeed(),this.maybeSetBigYoodle(),this.setMasthead(),this.refreshGridLayout(),_.wT(this,function(){F.updateRichItemGridPositions();F.contentsElement&&_.V9(F.hostElement,{"--ytd-rich-grid-content-offset-top":F.contentsElement.offsetTop+
"px"})}),this.initResizeObserver())};
_.N.initResizeObserver=function(){var F=this;if(window.ResizeObserver){var W;(W=this.resizeObserver)==null||W.disconnect();var E=!1;this.resizeObserver=new ResizeObserver(function(){if(E){var h;(h=F.resizeObserver)==null||h.disconnect();var d;(d=F.throttledOnResize)==null||d.fire();requestAnimationFrame(function(){var R;(R=F.throttledOnResize)==null||R.fire();F.initResizeObserver()})}else if(E=!0,F.resizeOnObserverInit){var V;
(V=F.throttledOnResize)==null||V.fire()}});
this.resizeObserver.observe(this.hostElement)}};
_.N.contentLengthChanged=function(){if(_.c("rich_grid_contents_check_width_ks")||this.containerWidth||this.isShortsPanel)this.reflowContent(),_.Nc(this.hostElement,"ytd-rich-item-index-update-action")};
_.N.updateElementsPerRow=function(){_.Nc(this.hostElement,"ytd-update-elements-per-row-action",[this.elementsPerRow,this.postsPerRow,this.slimItemsPerRow,this.gameCardsPerRow,this.miniGameCardsPerRow,this.containerWidth]);this.ytdReduxBehavior.dispatch(_.dR({type:"SET_RICH_GRID_ITEMS_PER_ROW",payload:this.elementsPerRow}));this.ytdReduxBehavior.dispatch(_.dR({type:"SET_RICH_GRID_SLIM_ITEMS_PER_ROW",payload:this.slimItemsPerRow}))};
_.N.onRequestElementsPerRow=function(){this.updateElementsPerRow()};
_.N.onRichShelfRendererCollapse=function(F){if(this.shownItems){var W=F.detail;F=this.shownItems.findIndex(function(h){var d,V;return((V=_.D(h==null?void 0:(d=h.richSectionRenderer)==null?void 0:d.content,_.pKc))==null?void 0:V.trackingParams)===W});
var E=F+1;F<0||E>=this.contentsElement.children.length||!this.shownItems[E].richItemRenderer||this.contentsElement.children[E].scrollIntoView({behavior:"smooth",block:"start"})}};
_.N.onSoftReloadPage=function(){this.scrollUpToTop()};
_.N.handleRerenderDownloadsData=function(){_.c("kevlar_modern_downloads_page")&&this.entityDrivenRichGridData&&this.set("data.contents",this.entityDrivenRichGridData.contents)};
_.N.handlePlaylistRemoveVideosAction=function(F){var W;if(((W=_.D(F,_.vcX))==null?0:W.setVideoIds)&&this.data&&this.data.contents){F=_.D(F,_.vcX).setVideoIds;for(W=this.data.contents.length-1;W>=0;){var E=_.D(this.data.contents[W],_.fi);(E=E&&_.D(E.content,_.yE))&&E.setVideoId&&F.includes(E.setVideoId)&&this.splice("data.contents",W,1);W--}this.updateIndices()}};
_.N.updateIndices=function(){if(this.data&&this.data.contents)for(var F=0;F<this.data.contents.length;F++)this.set("data.contents."+F+".richItemRenderer.index",_.Gr(String(F+1)))};
_.N.hasTopRowInlinePlayableVideoWithEndorsement=function(F){var W;return!((W=F.slice(0,this.getItemsPerRow()))==null||!W.some(function(E){var h;E=_.D(E==null?void 0:(h=E.richItemRenderer)==null?void 0:h.content,_.rZ);var d;return(E==null?void 0:E.inlinePlaybackEndpoint)&&(E==null?void 0:(d=E.thumbnailOverlays)==null?void 0:d.some(function(V){return V.thumbnailOverlayEndorsementRenderer}))}))};
_.N.refreshGridLayoutNew=function(F,W,E,h){var d=h.postsPerRow;var V=h.slimItemsPerRow;var R=h.gameCardsPerRow;h=h.miniGameCardsPerRow;var M;if((M=this.data)==null||!M.contents||!this.containerWidth)return!1;var g;if((g=this.data.responsiveContainerConfiguration)==null?0:g.responsiveSize){var t=_.uQe(this.data.responsiveContainerConfiguration,this.containerWidth),C;M=_.EQ(Object.assign({},t,{standardUnitMinWidth:(C=this.data)==null?void 0:C.minItemWidth}));this.useCompactList=!!(this.containerWidth<
528&&t.isCompactList)}else M=_.EQ({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,isCompactList:this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST",standardUnitMinWidth:(t=this.data)==null?void 0:t.minItemWidth}),this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST"&&(this.useCompactList=this.containerWidth<528);this.typographyBump=M.typographyBump;C=!1;if(F||this.elementsPerRow!==M.numItems||this.postsPerRow!==d||this.slimItemsPerRow!==V||this.gameCardsPerRow!==
R||this.miniGameCardsPerRow!==h||this.gutter!==M.gutter)C=this.elementsPerRow!==M.numItems,this.elementsPerRow=M.numItems,this.postsPerRow=d,this.slimItemsPerRow=V,this.gameCardsPerRow=R,this.miniGameCardsPerRow=h,this.gutter=M.gutter,this.itemWidth=M.itemWidth,this.reflowContent(W),_.V9(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":M.gutter+"px","--ytd-rich-grid-posts-per-row":""+this.postsPerRow,"--ytd-rich-grid-slim-items-per-row":""+this.slimItemsPerRow,
"--ytd-rich-grid-game-cards-per-row":""+this.gameCardsPerRow,"--ytd-rich-grid-mini-game-cards-per-row":""+this.miniGameCardsPerRow}),this.updateElementsPerRow(),this.updateMiniMode(E);this.ytdReduxBehavior.dispatch(_.dR({type:"SET_RICH_GRID_CONTAINER_WIDTH",payload:M.maxContainerWidth}));return C};
_.N.refreshGridLayout=function(F,W){var E,h=(E=this.hostElement)==null?void 0:E.clientWidth;this.containerWidth=this.adjustRichGridWidth(h,!0);var d;if((d=this.data)==null||!d.contents||!this.containerWidth)return F&&(this.pendingForceReflow=!0),!1;this.pendingForceReflow&&!_.c("rg_pending_reflow_ks")&&(F=!0,this.pendingForceReflow=!1);E=this.getRichItemMinWidth(h);var V=this.isShortsPanel?146:194,R=this.getMiniGameCardMinWidth(),M=this.isShortsGridSlim?2:this.isShortsGrid||this.isCompactGrid?3:6;
h=E=this.calcElementsPerRow(E,M);(d=E<=3&&this.miniModeAllowed())&&(E=this.calcElementsPerRow(240,4));var g=this.calcMaxSlimElementsPerRow(E,M,this.isDefaultGrid);M=this.calcElementsPerRow(V,g);var t=this.calcElementsPerRow(this.isCompactGrid?V:154,g);V=this.calcElementsPerRow(this.isCompactGrid?V:R,g);R=!1;if(this.sizing)return this.refreshGridLayoutNew(F,W,d,{postsPerRow:h,slimItemsPerRow:M,gameCardsPerRow:t,miniGameCardsPerRow:V});if(F||this.elementsPerRow!==E||this.postsPerRow!==h||this.slimItemsPerRow!==
M||this.gameCardsPerRow!==t||this.miniGameCardsPerRow!==V)R=this.elementsPerRow!==E,this.elementsPerRow=E,this.postsPerRow=h,this.slimItemsPerRow=M,this.gameCardsPerRow=t,this.miniGameCardsPerRow=V,this.reflowContent(W),this.updateElementsPerRow(),_.V9(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-posts-per-row":""+this.postsPerRow,"--ytd-rich-grid-slim-items-per-row":""+this.slimItemsPerRow,"--ytd-rich-grid-game-cards-per-row":""+this.gameCardsPerRow,"--ytd-rich-grid-mini-game-cards-per-row":""+
this.miniGameCardsPerRow}),(this.isShortsGridSlim||this.isShortsPanel)&&_.V9(this.hostElement,{"--ytd-rich-grid-shorts-item-margin":this.slimItemsPerRow<4?"1px":"4px"});this.updateMiniMode(d);_.Nc(this.hostElement,"yt-rich-grid-layout-refreshed");return R};
_.N.getRichItemMinWidth=function(F){var W=_.dV("rich_grid_min_item_width",310);if(!_.c("kevlar_disable_min_width_override")){var E,h;W=(h=(E=this.data)==null?void 0:E.minItemWidth)!=null?h:W}return W+_.G6W(F)};
_.N.calcMaxSlimElementsPerRow=function(F,W,E){return(E===void 0?0:E)?F===1?2:F%2===0?_.c("web_shorts_2_by_3_reduce_items_per_row")&&F>=4?F/2*3-1:F/2*3:_.c("web_shorts_2_by_3_reduce_items_per_row")&&F>=3?F+1:F+2:W*2};
_.N.adjustRichGridWidth=function(F,W){var E=_.c("disable_rich_grid_guide_compensation");if(!this.isWatch&&!E){E=_.WZ().resolve(_.Fd(_.nO));var h=E==null?void 0:E.guideElement;if(!(!E||E.getData()||h!=null&&h.opened||E.getMiniGuideVisible()))if(E.canFitPersistentGuide(F)&&E.getGuideExpandsAutomatically()){var d,V,R=Number((d=window.getComputedStyle(this.hostElement))==null?void 0:(V=d.getPropertyValue("--app-drawer-width"))==null?void 0:V.replace("px",""));F-=R||0}else if(E.canFitMiniGuide(F)){var M;
d=Number((R=window.getComputedStyle(this.hostElement))==null?void 0:(M=R.getPropertyValue("--ytd-mini-guide-width"))==null?void 0:M.replace("px",""));F-=d||0}}F>600&&(this.isShortsGrid||this.isShortsGridSlim||this.isCompactGrid||(F-=W?32:48));return F};
_.N.calcElementsPerRow=function(F,W){var E=this.adjustRichGridWidth(this.hostElement.clientWidth,!1),h=this.isShortsPanel?2:this.isShortsGrid||this.isCompactGrid?4:16;return Math.min(Math.floor((E+h)/(F+h))||1,W)};
_.N.reflowContent=function(F){var W=this;if(!this.isReflowing){this.isReflowing=!0;var E,h,d=!!((E=this.data)==null?0:(h=E.contents)==null?0:h.some(function(x){return _.D(x,_.QT)}));
E=this.getItemsPerRow();var V;h=(V=this.data)==null?void 0:V.reflowOptions;F&&(_.P5("rgr_s"),_.wT(this,function(){_.P5("rgr_nrf")}));
F={};(V=_.Z(this.hostElement).querySelector("#contents"))&&(F={contentElement:V,rendererToTagNameMap:this.rendererToTagNameMap});V=(V=this.data.contents)?V.slice():[];var R=(_.c("web_hide_gnome_behind_feed_filter_chip")||_.c("web_hide_gnome_until_user_navigates_back_to_home"))&&!this.showGnomeContents,M=_.c("web_hide_explore_hub_until_user_navigates_back_to_home")&&!this.showExploreHubContents,g=-1,t=-1;if(this.isHomePage&&M){for(M=0;M<V.length;M++){var C=void 0,B=void 0;_.D((C=V[M])==null?void 0:
(B=C.richSectionRenderer)==null?void 0:B.content,FSK)&&(t=M)}t>-1&&(this.exploreHubContents=V.splice(t,1))}if(this.isHomePage&&R){for(t=0;t<V.length;t++)B=C=void 0,(M=_.D((C=V[t])==null?void 0:(B=C.richSectionRenderer)==null?void 0:B.content,_.pKc))&&R&&(B=C=void 0,M=_.D((C=M)==null?void 0:(B=C.contents)==null?void 0:B[0],_.fi),C=void 0,_.D((C=M)==null?void 0:C.content,_.KxH)&&(g=t));g>-1&&(this.gnomeContents=V.splice(g,1))}var I=jDK(V,E,d,h,this.getRichGridStyle(),F,this.insertedContent);d=function(){W.shownItems=
I;W.isReflowing=!1};
this.shownItems.length===0?(this.shownItems=this.getFirstRowItems(I),_.wT(this,d)):d()}};
_.N.getFirstRowItems=function(F){for(var W=[],E=0;E<F.length;E++){var h=void 0,d=void 0,V=void 0,R=void 0,M=void 0,g=void 0;if(((h=F[E])==null?void 0:(d=h.richItemRenderer)==null?void 0:d.rowIndex)===0||((V=F[E])==null?void 0:(R=V.richGroupRenderer)==null?void 0:R.rowIndex)===0||((M=F[E])==null?void 0:(g=M.richSectionRenderer)==null?void 0:g.rowIndex)===0)W.push(F[E]);else break}return W};
_.N.getItemsPerRow=function(){return this.isShortsGrid||this.isCompactGrid?this.slimItemsPerRow:this.elementsPerRow};
_.N.handleChipCloudChipSelectAction=function(F,W){this.terminateVideoPreview();this.cachedContents||this.setCacheAndIsFilteredFeed();_.c("web_hide_gnome_behind_feed_filter_chip")&&(W?(this.showGnomeContents=!0,this.set("data.contents",this.gnomeContents)):this.showGnomeContents=!1)};
_.N.onReloadContinuationFinish=function(){this.data&&this.data.header&&Array.isArray(this.data.header)&&this.data.header.length>0&&(this.data.header=this.data.header[0]);_.c("enable_rich_grid_continuation_reflow_fix")||this.reflowContent();this.isShortsPanel||this.scrollUpToTop();this.ytRendererBehavior.markDirty()};
_.N.handleChipCloudChipDeselectAction=function(){this.terminateVideoPreview();_.c("web_hide_gnome_behind_feed_filter_chip")&&(this.showGnomeContents=!1);this.cachedContents&&(this.set("data.contents",this.cachedContents),this.resetCacheAndIsFilteredFeed(),this.reflowContent(),this.scrollUpToTop())};
_.N.terminateVideoPreview=function(){_.Nc(this.hostElement,"yt-terminate-video-preview-action")};
_.N.updateRichItemGridPositions=function(){var F={gridData:{gridColumnCount:this.elementsPerRow}},W;if((W=this.data)==null?0:W.trackingParams)this.loggingRefactor?_.z4().stateChanged(this.data.trackingParams,F):(W=_.JR())&&_.Yb(W,_.ve(this.data.trackingParams),F);_.Nc(this.hostElement,"ytd-rich-item-index-update-action")};
_.N.miniModeAllowed=function(){return _.c("disable_channels_mini_mode")?!1:this.isChannelPage};
_.N.getMiniGameCardMinWidth=function(){return 154};
_.N.updateMiniMode=function(F){this.miniMode=this.miniModeAllowed()&&F;this.ytdReduxBehavior.dispatch(_.dR({type:"SET_RICH_GRID_MINI_MODE",payload:F}))};
_.N.isCurrentPage=function(){return location.pathname===this.pagePath};
_.N.scrollUpToTop=function(){if(!this.isChannelPage&&!this.isWatch){var F=_.WZ().resolve(_.KQ).getCurrentPage();F&&F.setScrollTop(0)}};
_.N.setCacheAndIsFilteredFeed=function(){this.cachedContents=this.get("contents",this.data);this.isFilteredFeed=!0};
_.N.resetCacheAndIsFilteredFeed=function(){this.cachedContents=void 0;this.isFilteredFeed=!1};
_.N.maybeSetBigYoodle=function(){var F,W=(F=this.data)==null?void 0:F.bigYoodle;this.bigYoodleData!==W&&(this.bigYoodleData=W)};
_.N.setMasthead=function(){var F;((F=this.data)==null?0:F.masthead)?this.mastheadData=this.data.masthead:_.c("disable_cached_masthead_data")&&(this.mastheadData=void 0)};
_.N.getRichGridStyle=function(){var F,W;return(W=(F=this.data)==null?void 0:F.style)!=null?W:"RICH_GRID_STYLE_UNKNOWN"};
_.N.onIsShortsGridChange=function(){var F=this.ytdReduxBehavior,W=F.dispatch,E=this.getRichGridStyle();W.call(F,_.dR({type:"SET_RICH_GRID_STYLE",payload:E}))};
_.Sn.Object.defineProperties(xv.prototype,{entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var F;return((F=this.data)==null?void 0:F.entitySelectorType)||"RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
isSub:{configurable:!0,enumerable:!0,get:function(){var F;return(((F=this.data)==null?void 0:F.targetId)||"")==="browse-feedFEsubscriptions_shorts"}},
isWatch:{configurable:!0,enumerable:!0,get:function(){var F;return(((F=this.data)==null?void 0:F.targetId)||"")==="watch-next-feed"}},
isShortsPanel:{configurable:!0,enumerable:!0,get:function(){var F=_.WZ().resolve(_.KQ).getCurrentPage(),W,E,h;return(((W=this.data)==null?void 0:W.targetId)==="browse-feedFEsfv_audio_pivot"||_.c("web_enable_channel_pivot_panel")&&((E=this.data)==null?void 0:E.targetId)==="browse-feedFEsfv_channel_pivot"||_.c("web_enable_effect_pivot_panel")&&((h=this.data)==null?void 0:h.targetId)==="browse-feedFEsfv_effect_pivot")&&(F==null?void 0:F.pageSubtype)==="shorts"}},
reducedTopMargin:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.c("kevlar_watch_grid_reduced_top_margin_rich_grid")}},
noTopMargin:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&!this.isWatchDefaultLayout}},
topRowEndorsement:{configurable:!0,enumerable:!0,get:function(){return this.isInlinePreviewEnabled&&this.hasTopRowInlinePlayableVideoWithEndorsement(this.shownItems)}},
hideHeader:{configurable:!0,enumerable:!0,get:function(){var F;return!((F=this.data)==null?0:F.header)}},
isChannelPage:{configurable:!0,enumerable:!0,get:function(){var F;return((F=_.WZ().resolve(_.KQ).getCurrentPage())==null?void 0:F.pageSubtype)==="channels"}},
isHomePage:{configurable:!0,enumerable:!0,get:function(){var F;return((F=_.WZ().resolve(_.KQ).getCurrentPage())==null?void 0:F.pageSubtype)==="home"}},
isSlimGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SLIM"}},
isShortsGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID"||this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"}},
noRichItemGutterMargins:{configurable:!0,enumerable:!0,get:function(){return this.isSlimGrid||this.isShortsGrid}},
isShortsGridSlim:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"}},
isCompactGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_COMPACT"}},
isDefaultGrid:{configurable:!0,enumerable:!0,get:function(){return!this.getRichGridStyle()||this.getRichGridStyle()==="RICH_GRID_STYLE_UNKNOWN"}},
hideChipsBarOnHome:{configurable:!0,enumerable:!0,get:function(){var F;return this.hideChipsBar||(((F=this.data)==null?void 0:F.targetId)||"")==="browse-feedFEwhat_to_watch"&&_.c("kevlar_hide_chips_on_home")}},
hideChipsBarOnWatch:{configurable:!0,enumerable:!0,get:function(){var F;return(((F=this.data)==null?void 0:F.targetId)||"")==="watch-next-feed"&&!_.c("swatcheroo_disable_chips")}},
force16By9ThumbnailAspectRatio:{configurable:!0,enumerable:!0,get:function(){var F,W,E;return((F=this.data)==null?0:F.enableContentSpecificAspectRatio)||((W=this.data)==null?0:(E=W.responsiveContainerConfiguration)==null?0:E.enableContentSpecificAspectRatio)?!1:!0}},
continuationTriggerOffset:{configurable:!0,enumerable:!0,get:function(){return this.isHomePage?_.dV("web_continuation_handler_margin",0):0}}});
xv.prototype.onIsShortsGridChange=xv.prototype.onIsShortsGridChange;xv.prototype.onReloadContinuationFinish=xv.prototype.onReloadContinuationFinish;xv.prototype.reflowContent=xv.prototype.reflowContent;xv.prototype.handleRerenderDownloadsData=xv.prototype.handleRerenderDownloadsData;xv.prototype.onRichShelfRendererCollapse=xv.prototype.onRichShelfRendererCollapse;xv.prototype.onRequestElementsPerRow=xv.prototype.onRequestElementsPerRow;xv.prototype.contentLengthChanged=xv.prototype.contentLengthChanged;
xv.prototype.dataChanged=xv.prototype.dataChanged;xv.prototype.onSizingChange=xv.prototype.onSizingChange;xv.prototype.onUseCompactListChange=xv.prototype.onUseCompactListChange;_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],xv.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],xv.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.lB),_.Y("design:type",Object)],xv.prototype,"ironResizableBehavior",void 0);
_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],xv.prototype,"actionHandlerBehavior",void 0);_.T([_.J(_.br),_.Y("design:type",Object)],xv.prototype,"ytContinuationHandlerBehavior",void 0);_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],xv.prototype,"componentBehavior",void 0);_.T([_.J(_.am),_.Y("design:type",Object)],xv.prototype,"ytdReduxBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],xv.prototype,"data",void 0);
_.T([_.O({reflectToAttribute:!0,selector:_.XD}),_.Y("design:type",Boolean)],xv.prototype,"miniMode",void 0);_.T([_.O({value:[]}),_.Y("design:type",Array)],xv.prototype,"shownItems",void 0);_.T([_.O({value:!1}),_.Y("design:type",Boolean)],xv.prototype,"isReflowing",void 0);_.T([_.O({value:!1}),_.Y("design:type",Boolean)],xv.prototype,"isFilteredFeed",void 0);_.T([_.O({selector:_.c7I}),_.Y("design:type",Boolean)],xv.prototype,"guideIsExpanded",void 0);
_.T([_.O({selectorArgs:["entitySelectorType"],selector:function(F,W){if(_.c("kevlar_modern_downloads_page")&&W&&W!=="RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(W){case "RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS":var E=F.entities;W=_.qn(E);var h=_.$r(E),d=_.lIR(F),V=_.bik(F);F=_.nJr(F);var R=_.gJS(E),M=_.Ds(W);E=_.Zs(E);return _.i6e(W,h,R,d,V,M,E,F);case "RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS":return W=_.qn(F.entities),_.TiW(W);case "RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS":return W=
_.UCb(F.entities),_.onI(W);default:_.OB(new _.xC("Error: entitySelectorType defined but not matched in selector.",F,W))}}}),
_.Y("design:type",Object)],xv.prototype,"entityDrivenRichGridData",void 0);_.T([_.O(),_.Y("design:type",Object)],xv.prototype,"resizeOnObserverInit",void 0);_.T([_.O(),_.Y("design:type",Object)],xv.prototype,"bigYoodleData",void 0);_.T([_.O(),_.Y("design:type",Object)],xv.prototype,"mastheadData",void 0);_.T([_.O(),_.Y("design:type",Boolean)],xv.prototype,"isInlinePreviewDisabled",void 0);_.T([_.O(),_.Y("design:type",Object)],xv.prototype,"disableStickyFilterBar",void 0);
_.T([_.O(),_.Y("design:type",Object)],xv.prototype,"transparentBackgroundChipsBar",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],xv.prototype,"hideChipsBar",void 0);_.T([_.O(),_.Y("design:type",Object)],xv.prototype,"isWatchDefaultLayout",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],xv.prototype,"continuationShowButton",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],xv.prototype,"rowReducedHorizontalMargin",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],xv.prototype,"useCompactList",void 0);_.T([_.O({selector:function(F){return _.$r(F.entities).length>0}}),
_.Y("design:type",Object)],xv.prototype,"manualDownloadsPresent",void 0);_.T([_.O({selector:function(F){return _.qn(F.entities).length>0}}),
_.Y("design:type",Object)],xv.prototype,"smartDownloadsPresent",void 0);_.T([_.O({selector:_.bik}),_.Y("design:type",Object)],xv.prototype,"shouldRenderDownloadsBanner",void 0);_.T([_.O({selector:_.lIR}),_.Y("design:type",Object)],xv.prototype,"hasOptedIntoSmartDownloads",void 0);_.T([_.ea("useCompactList"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],xv.prototype,"onUseCompactListChange",null);
_.T([_.ea("sizing","typographyBump"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],xv.prototype,"onSizingChange",null);_.T([_.O({selector:_.sHe}),_.Y("design:type",Number)],xv.prototype,"miniplayerPlaybackState",void 0);_.T([_.O({selector:_.Pz}),_.Y("design:type",Boolean)],xv.prototype,"miniplayerIsActive",void 0);
_.T([_.O({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.Y("design:type",Boolean)],xv.prototype,"isInlinePreviewEnabled",void 0);_.T([_.O({computed:"computeSizing(data, useCompactList, miniMode, isShortsGrid, isSlimGrid, isCompactGrid, isShortsPanel)"}),_.Y("design:type",String)],xv.prototype,"sizing",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],xv.prototype,"elementsPerRow",void 0);
_.T([_.O(),_.Y("design:type",Object)],xv.prototype,"typographyBump",void 0);_.T([_.O(),_.Y("design:type",Number)],xv.prototype,"itemWidth",void 0);_.T([_.gQ("#header"),_.Y("design:type",HTMLElement)],xv.prototype,"headerElement",void 0);_.T([_.gQ("#contents"),_.Y("design:type",HTMLElement)],xv.prototype,"contentsElement",void 0);_.T([_.Cz("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],xv.prototype,"dataChanged",null);
_.T([_.Cz("data.contents.length"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],xv.prototype,"contentLengthChanged",null);_.T([_.R4("yt-request-elements-per-row"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],xv.prototype,"onRequestElementsPerRow",null);
_.T([_.R4("yt-rich-shelf-renderer-collapse"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],xv.prototype,"onRichShelfRendererCollapse",null);_.T([_.Cz("shouldRenderDownloadsBanner","hasOptedIntoSmartDownloads","manualDownloadsPresent","smartDownloadsPresent"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],xv.prototype,"handleRerenderDownloadsData",null);
_.T([_.a("data"),_.Y("design:type",String),_.Y("design:paramtypes",[])],xv.prototype,"entitySelectorType",null);_.T([_.O({reflectToAttribute:!0}),_.a("data.targetId"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],xv.prototype,"isSub",null);_.T([_.O({reflectToAttribute:!0}),_.a("data.targetId"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],xv.prototype,"isWatch",null);
_.T([_.O({reflectToAttribute:!0}),_.a("data.targetId"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],xv.prototype,"isShortsPanel",null);_.T([_.O({reflectToAttribute:!0}),_.a("isWatch"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],xv.prototype,"reducedTopMargin",null);_.T([_.O({reflectToAttribute:!0}),_.a("data","isWatch","isWatchDefaultLayout"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],xv.prototype,"noTopMargin",null);
_.T([_.O({reflectToAttribute:!0}),_.a("isInlinePreviewEnabled","shownItems"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],xv.prototype,"topRowEndorsement",null);_.T([_.a("data.header"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],xv.prototype,"hideHeader",null);_.T([_.R4("yt-rich-grid-reflow"),_.Y("design:type",Function),_.Y("design:paramtypes",[Boolean]),_.Y("design:returntype")],xv.prototype,"reflowContent",null);
_.T([_.R4("yt-reload-continuation-finish"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],xv.prototype,"onReloadContinuationFinish",null);_.T([_.a("data"),_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],xv.prototype,"isSlimGrid",null);_.T([_.a("data"),_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],xv.prototype,"isShortsGrid",null);
_.T([_.a("data","isSlimGrid","isShortsGrid"),_.O(),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],xv.prototype,"noRichItemGutterMargins",null);_.T([_.a("data"),_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],xv.prototype,"isShortsGridSlim",null);_.T([_.a("data"),_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],xv.prototype,"isCompactGrid",null);
_.T([_.a("data"),_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],xv.prototype,"isDefaultGrid",null);_.T([_.a("data.targetId"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],xv.prototype,"hideChipsBarOnHome",null);_.T([_.a("data.targetId"),_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],xv.prototype,"hideChipsBarOnWatch",null);
_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],xv.prototype,"onIsShortsGridChange",null);_.T([_.a("data.enableContentSpecificAspectRatio"),_.O(),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],xv.prototype,"force16By9ThumbnailAspectRatio",null);_.T([_.a("data"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],xv.prototype,"continuationTriggerOffset",null);xv=_.T([_.y({is:"ytd-rich-grid-renderer",disableElementRegistration:!0})],xv);
_.r(xv,"ytd-rich-grid-renderer",function(){if(tvP!==void 0)return tvP;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-grid-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" hidden="[[hideHeader]]" class="style-scope ytd-rich-grid-renderer"></div>\n<div id="big-yoodle" hidden="[[isFilteredFeed]]" class="style-scope ytd-rich-grid-renderer"></div>\n<div id="masthead-ad" hidden="[[isFilteredFeed]]" class="style-scope ytd-rich-grid-renderer"></div>\n<div id="title-container" hidden="[[!data.title]]" class="style-scope ytd-rich-grid-renderer">\n  <div id="title" class="style-scope ytd-rich-grid-renderer">[[getSimpleString(data.title)]]</div>\n</div>\n<div id="spinner-container" class="style-scope ytd-rich-grid-renderer">\n  <tp-yt-paper-spinner-lite active="[[computeIsReloading()]]" class="style-scope ytd-rich-grid-renderer">\n  </tp-yt-paper-spinner-lite>\n</div>\n<div id="contents" class="style-scope ytd-rich-grid-renderer"></div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return tvP=F},{mode:2});var $Z6=_.GK(function(F){var W=F.thumbsUp;F=F.thumbsDown;var E=_.U(_.g$(!1,void 0,"OxPsH")),h=E.next().value,d=E.next().value;E=_.U(_.g$(!1,void 0,"V5vWne"));var V=E.next().value,R=E.next().value;return _.z("div",{class:"ytwThumbsUpDownThumbs"},_.z(_.bJ,{data:W,onToggle:function(M){d(M);V()&&R(!1)},
buttonShapeOverrides:function(){return{toggled:h()}}}),_.z(_.bJ,{data:F,
onToggle:function(M){R(M);h()&&d(!1)},
buttonShapeOverrides:function(){return{toggled:V()}}}))},"pi");
$Z6.idomCompat=!0;var XA6=_.GK(function(F){var W=function(){return F.data().pendingStateEntityKey||""},E=_.D1(_.uSN,W),h=function(){var d;
if(!(d=F.disabled())){var V;d=!((V=E())==null||!V.isPendingResponse)}return d};
return _.z("you-chat-chips-data",{class:"ytwYouChatChipsDataHost"},_.z(_.xF,{each:function(){return F.data().chipData||[]},
keyBy:"REFERENCE"},function(d){return _.z(ZA6,{data:d,disabled:h,pendingStateKey:W,onError:F.onError})}))},"qi"),ZA6=_.GK(function(F){var W=_.uf(),E=_.U(_.g$(!0,void 0,"HBREAe")),h=E.next().value,d=E.next().value,V=function(){return F.data().text.content},R=_.tb(function(M){var g,t,C,B,I,x,A,X;
return _.e(function(P){switch(P.nextAddress){case 1:M.stopPropagation();if(F.disabled())return P.return();t=String(Math.floor(((g=_.Qa())==null?void 0:g.getCurrentTime())||0)*1E3);C="youchat-"+Date.now();B=function(){_.Pe(F.data().onClick||{});var b={continuationCommand:{token:F.data().continuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}},l={inputComposerFormData:{clientMessageId:C,playerOffsetMs:t}};return new Promise(function(w,G){_.Pe(b,{form:{formData:l},commandController:{onSuccess:function(hr,
p){w(p)},
onServerError:function(hr,p){G(p.error)}}})})};
I=_.SEq(F.pendingStateKey());I(!0);_.OZx("#youchat-input, ytd-engagement-panel-section-list-renderer #footer yt-chat-input-view-model textarea, ytm-engagement-panel-section-list-renderer .engagement-panel-section-list-footer-wrapper yt-chat-input-view-model button");d(!1);_.Nl(P,2);return _.Q(P,B(),4);case 4:_.id(P,3);break;case 2:x=_.Ml(P),(X=(A=F).onError)==null||X.call(A,x);case 3:I(!1),_.gG(P)}})});
return _.z(_.v,{cond:h,then:function(){return _.z("div",{class:"ytwYouChatChipsDataChipWrapper"},_.z("button",{el:W,class:"ytwYouChatChipsDataChip","data-disabled":F.disabled,"on:click":R,tabindex:0},V))}})},"ri");var HAN=_.GK(function(F){var W=F.data;return _.z("yt-conversation-resource-view-model",{class:_.ec("ytConversationResourceViewModelHost","ytConversationResourceViewModelHostSectionList")},_.z(_.v,{cond:function(){var E;return(E=W().conversationResourceData)==null?void 0:E.learningGuideData},
then:function(E){return _.z(_.xF,{each:function(){return E().sectionData||[]}},function(h){return _.z("div",{class:"ytConversationResourceViewModelHostSectionContainer"},_.z(_.Ab,{text:function(){return h.timestamp},
className:"ytConversationResourceViewModelHostTimestampText"}),_.z("div",{class:"ytConversationResourceViewModelHostSectionTextContainer"},_.z(_.Ab,{text:function(){return h.title},
className:"ytConversationResourceViewModelHostTitleText"}),_.z(_.Ab,{text:function(){return h.summary},
className:"ytConversationResourceViewModelHostSummaryText"})))})}}))},"si");
HAN.idomCompat=!0;var Pcw=_.GK(function(F){var W=function(){var b;return(b=F.data().text)==null?void 0:b.content},E=function(){var b,l;
return(b=F.data().webData)==null?void 0:(l=b.textResult)==null?void 0:l.content},h=_.WZ().resolve(_.ji),d=_.tG(),V=function(){return F.data().chatResponseStyle},R=function(){return{animationConfig:{autoplay:!1,
loop:!1,renderer:"svg",rendererSettings:{viewBoxSize:"12 0 48 48"},name:"YOUCHAT_ICON",path:F.data().animationUrl||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_solo_v1.json"}}},M=function(){var b;
return F.data().webData||((b=F.data().text)==null?void 0:b.content)||F.data().videoResultsData||F.data().conversationResourceViewModel},g=function(){var b;
return(b=F.data().videoResultsData)==null?void 0:b.videoShelf},t=function(){var b;
return _.D(((b=F.data().videoResultsData)==null?void 0:b.videoShelf)||{},h86)},C=function(){var b;
return(b=F.data().webData)==null?void 0:b.sourcesShelf},B=function(){var b;
return _.D(((b=F.data().webData)==null?void 0:b.sourcesShelf)||{},h86)},I=function(){return _.D(F.data().conversationResourceViewModel||{},N0g)},x=function(){return V()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"||V()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"?!1:F.data().thumbsDownViewModel&&F.data().thumbsUpViewModel},A=function(){return _.D(F.data().thumbsUpViewModel,_.O8)},X=function(){return _.D(F.data().thumbsDownViewModel,_.O8)};
_.$F(function(){requestAnimationFrame(function(){var b;(b=F.shouldAnimateIcon)!=null&&b.call(F)&&p7K(d.lottieEl)})});
var P={};return _.z("you-chat-item-view-model",{class:_.ec("ytwYouChatItemViewModelYouChatItemViewModel",(P.ytwYouChatItemViewModelHostNoPadding=function(){return!1},P)),
"data-target-id":function(){return F.data().id||""}},_.z(_.v,{cond:M,
then:function(){var b={};return _.z("div",{"aria-hidden":"true"},_.z(_.Mj,{className:_.ec("ytwYouChatItemViewModelIcon",(b.ytwYouChatItemViewModelRtl=h==="rtl",b.ytwYouChatItemViewModelHidden=function(){return!(F.data().hideIcon||V()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"||V()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"?0:M())},b)),
animationName:"YOUCHAT_ICON",data:R,animationRef:d}))}}),_.z(_.v,{cond:M,
then:function(){var b={};return _.z("div",{class:_.ec("ytwYouChatItemViewModelHost",(b.ytwYouChatItemViewModelChatResponseStyleMultiPartStart=function(){return V()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"},b.ytwYouChatItemViewModelChatResponseStyleMultiPartMiddle=function(){return V()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"},b.ytwYouChatItemViewModelChatResponseStyleMultiPartEnd=function(){return V()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"},b)),
role:"alert"},_.z(_.v,{cond:W,then:function(l){return _.z(_.Hj,{text:l})}}),_.z(_.v,{cond:E,
then:function(l){return _.z(_.Hj,{text:l})}}),_.z(_.v,{cond:g,
then:function(){return _.z("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.z(_.X5,{data:t,hasPeek:!0,disableArrows:!1,protectBackground:!0}))}}),_.z(_.v,{cond:C,
then:function(){return _.z("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.z(_.X5,{data:B,hasPeek:!0,disableArrows:!1}))}}),_.z(_.v,{cond:I,
then:function(){return _.z(HAN,{data:I})}}),_.z(_.v,{cond:x,
then:function(){return _.z($Z6,{thumbsUp:A,thumbsDown:X})}}))}}),_.z(_.v,{cond:function(){return F.data().chipsData},
then:function(b){return _.z(XA6,{data:b,disabled:F.pending,onError:F.onError})}}))},"ti");
Pcw.idomCompat={callbacks:{onError:!0,onSend:!0}};var JuK=_.GK(function(F){var W=function(){return F.data().choiceSelectedText};
return _.z("yt-you-chat-user-turn",{class:"ytYouChatUserTurnHost"},_.z(_.v,{cond:W,then:function(){return _.z("div",{class:"ytYouChatUserTurnChoiceSelected"},_.z(_.Ab,{text:W}))}}),_.z("div",{class:"ytYouChatUserTurnUserMessage"},function(){return F.data().text}))},"ui");var afN=_.GK(function(F){var W=_.U((0,_.Tfi)(F.data)).next().value;return _.z("yt-item-section-renderer",{class:"ytItemSectionRendererHost","data-target-id":function(){return F.data().targetId||""}},_.z(_.a6,{data:function(){return F.data().header}},{chipBarViewModel:_.J0i}),_.z(_.a6,{data:function(){return W().contents}},{accordionViewModel:_.QwU,
alertBannerViewModel:_.y0p,chatLoadingViewModel:_.oCK,chatUserTurnViewModel:JuK,learningJourneyLoaderViewModel:_.RGH,lockupViewModel:_.EN,youChatItemViewModel:function(E){return _.z(Pcw,{data:E.data,pending:!1})}}))},"vi");_.pK(_.GK(function(F){var W=_.U((0,_.Tfi)(F.data)).next().value;return _.z("yt-section-list-renderer",{class:_.ec("ytSectionListRendererHost",F.className),"data-target-id":function(){return F.data().targetId||""}},_.z(_.a6,{data:function(){return W().contents}},{itemSectionRenderer:afN}))},"wi"),"yt-section-list-renderer",{props:{data:_.TS,
className:_.Si}});var ff$;var OAx;var kv=function(){return _.n.apply(this,arguments)||this};
_.k(kv,_.n);_.T([_.O(),_.Y("design:type",Object)],kv.prototype,"data",void 0);kv=_.T([_.$3({is:"yt-alert-renderer",disableElementRegistration:!0})],kv);
_.r(kv,"yt-alert-renderer",function(){if(OAx===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-alert-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_alert_renderer.yt.alert.renderer.css.js--\x3e<div id="container" class$="[[data.type]] style-scope yt-alert-renderer">\n  <yt-formatted-string text="[[data.text]]" class="style-scope yt-alert-renderer"></yt-formatted-string>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;ff$===void 0&&(ff$=document.createElement("template"));var h=ff$;E.call(W,h.content.cloneNode(!0),F.content.firstChild);OAx=F}F=OAx;return F},{mode:2});
}catch(e){_._DumpException(e)}
try{
_.tJg=function(F,W){var E,h;W=W===void 0?{}:W;var d,V,R,M,g,t,C,B,I,x,A,X;return _.e(function(P){switch(P.nextAddress){case 1:d=W;V=d.shouldWrap===void 0?!0:d.shouldWrap;R=d.skipTransitionTimeoutMs===void 0?300:d.skipTransitionTimeoutMs;M=d.beforeTransition;g=d.afterTransition;if(!V||!document.startViewTransition||document.visibilityState==="hidden")return P.return(F());E=window.innerWidth;h=window.innerHeight;t=!1;(C=M)==null||C();_.Nl(P,2);B=document.startViewTransition(F);I=setTimeout(function(){B.skipTransition();
t=!0},R);
return _.Q(P,B.ready,4);case 4:return clearTimeout(I),_.Q(P,B.finished,5);case 5:clearTimeout(I);(x=g)==null||x();_.id(P,0);break;case 2:A=_.Ml(P),(X=g)==null||X(),A&&!t&&document.visibilityState!=="hidden"&&E===window.innerWidth&&h===window.innerHeight&&_.a_(A),_.gG(P)}})};
_.H7=function(F){return F!=null&&F.watch?F.watch.isTheaterMode:!1};
_.P7=function(){for(var F=Array(36),W=0,E,h=0;h<36;h++)h==8||h==13||h==18||h==23?F[h]="-":h==14?F[h]="4":(W<=2&&(W=33554432+Math.random()*16777216|0),E=W&15,W>>=4,F[h]=_.CzO[h==19?E&3|8:E]);return F.join("")};/*

Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
var COx=_.Fc(['<iron-iconset-svg name="icons" size="24">\n<svg><defs>\n<g id="3d-rotation"><path d="M7.52 21.48C4.25 19.94 1.91 16.76 1.55 13H.05C.56 19.16 5.71 24 12 24l.66-.03-3.81-3.81-1.33 1.32zm.89-6.52c-.19 0-.37-.03-.52-.08-.16-.06-.29-.13-.4-.24-.11-.1-.2-.22-.26-.37-.06-.14-.09-.3-.09-.47h-1.3c0 .36.07.68.21.95.14.27.33.5.56.69.24.18.51.32.82.41.3.1.62.15.96.15.37 0 .72-.05 1.03-.15.32-.1.6-.25.83-.44s.42-.43.55-.72c.13-.29.2-.61.2-.97 0-.19-.02-.38-.07-.56-.05-.18-.12-.35-.23-.51-.1-.16-.24-.3-.4-.43-.17-.13-.37-.23-.61-.31.2-.09.37-.2.52-.33.15-.13.27-.27.37-.42.1-.15.17-.3.22-.46.05-.16.07-.32.07-.48 0-.36-.06-.68-.18-.96-.12-.28-.29-.51-.51-.69-.2-.19-.47-.33-.77-.43C9.1 8.05 8.76 8 8.39 8c-.36 0-.69.05-1 .16-.3.11-.57.26-.79.45-.21.19-.38.41-.51.67-.12.26-.18.54-.18.85h1.3c0-.17.03-.32.09-.45s.14-.25.25-.34c.11-.09.23-.17.38-.22.15-.05.3-.08.48-.08.4 0 .7.1.89.31.19.2.29.49.29.86 0 .18-.03.34-.08.49-.05.15-.14.27-.25.37-.11.1-.25.18-.41.24-.16.06-.36.09-.58.09H7.5v1.03h.77c.22 0 .42.02.6.07s.33.13.45.23c.12.11.22.24.29.4.07.16.1.35.1.57 0 .41-.12.72-.35.93-.23.23-.55.33-.95.33zm8.55-5.92c-.32-.33-.7-.59-1.14-.77-.43-.18-.92-.27-1.46-.27H12v8h2.3c.55 0 1.06-.09 1.51-.27.45-.18.84-.43 1.16-.76.32-.33.57-.73.74-1.19.17-.47.26-.99.26-1.57v-.4c0-.58-.09-1.1-.26-1.57-.18-.47-.43-.87-.75-1.2zm-.39 3.16c0 .42-.05.79-.14 1.13-.1.33-.24.62-.43.85-.19.23-.43.41-.71.53-.29.12-.62.18-.99.18h-.91V9.12h.97c.72 0 1.27.23 1.64.69.38.46.57 1.12.57 1.99v.4zM12 0l-.66.03 3.81 3.81 1.33-1.33c3.27 1.55 5.61 4.72 5.96 8.48h1.5C23.44 4.84 18.29 0 12 0z"></path></g>\n<g id="accessibility"><path d="M12 2c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2zm9 7h-6v13h-2v-6h-2v6H9V9H3V7h18v2z"></path></g>\n<g id="accessible"><circle cx="12" cy="4" r="2"></circle><path d="M19 13v-2c-1.54.02-3.09-.75-4.07-1.83l-1.29-1.43c-.17-.19-.38-.34-.61-.45-.01 0-.01-.01-.02-.01H13c-.35-.2-.75-.3-1.19-.26C10.76 7.11 10 8.04 10 9.09V15c0 1.1.9 2 2 2h5v5h2v-5.5c0-1.1-.9-2-2-2h-3v-3.45c1.29 1.07 3.25 1.94 5 1.95zm-6.17 5c-.41 1.16-1.52 2-2.83 2-1.66 0-3-1.34-3-3 0-1.31.84-2.41 2-2.83V12.1c-2.28.46-4 2.48-4 4.9 0 2.76 2.24 5 5 5 2.42 0 4.44-1.72 4.9-4h-2.07z"></path></g>\n<g id="account-balance"><path d="M4 10v7h3v-7H4zm6 0v7h3v-7h-3zM2 22h19v-3H2v3zm14-12v7h3v-7h-3zm-4.5-9L2 6v2h19V6l-9.5-5z"></path></g>\n<g id="account-balance-wallet"><path d="M21 18v1c0 1.1-.9 2-2 2H5c-1.11 0-2-.9-2-2V5c0-1.1.89-2 2-2h14c1.1 0 2 .9 2 2v1h-9c-1.11 0-2 .9-2 2v8c0 1.1.89 2 2 2h9zm-9-2h10V8H12v8zm4-2.5c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5z"></path></g>\n<g id="account-box"><path d="M3 5v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2H5c-1.11 0-2 .9-2 2zm12 4c0 1.66-1.34 3-3 3s-3-1.34-3-3 1.34-3 3-3 3 1.34 3 3zm-9 8c0-2 4-3.1 6-3.1s6 1.1 6 3.1v1H6v-1z"></path></g>\n<g id="account-circle"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 3c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3zm0 14.2c-2.5 0-4.71-1.28-6-3.22.03-1.99 4-3.08 6-3.08 1.99 0 5.97 1.09 6 3.08-1.29 1.94-3.5 3.22-6 3.22z"></path></g>\n<g id="add"><path d="M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"></path></g>\n<g id="add-alert"><path d="M10.01 21.01c0 1.1.89 1.99 1.99 1.99s1.99-.89 1.99-1.99h-3.98zm8.87-4.19V11c0-3.25-2.25-5.97-5.29-6.69v-.72C13.59 2.71 12.88 2 12 2s-1.59.71-1.59 1.59v.72C7.37 5.03 5.12 7.75 5.12 11v5.82L3 18.94V20h18v-1.06l-2.12-2.12zM16 13.01h-3v3h-2v-3H8V11h3V8h2v3h3v2.01z"></path></g>\n<g id="add-box"><path d="M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10h-4v4h-2v-4H7v-2h4V7h2v4h4v2z"></path></g>\n<g id="add-circle"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm5 11h-4v4h-2v-4H7v-2h4V7h2v4h4v2z"></path></g>\n<g id="add-circle-outline"><path d="M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4V7zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"></path></g>\n<g id="add-shopping-cart"><path d="M11 9h2V6h3V4h-3V1h-2v3H8v2h3v3zm-4 9c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2zm10 0c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2zm-9.83-3.25l.03-.12.9-1.63h7.45c.75 0 1.41-.41 1.75-1.03l3.86-7.01L19.42 4h-.01l-1.1 2-2.76 5H8.53l-.13-.27L6.16 6l-.95-2-.94-2H1v2h2l3.6 7.59-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h12v-2H7.42c-.13 0-.25-.11-.25-.25z"></path></g>\n<g id="alarm"><path d="M22 5.72l-4.6-3.86-1.29 1.53 4.6 3.86L22 5.72zM7.88 3.39L6.6 1.86 2 5.71l1.29 1.53 4.59-3.85zM12.5 8H11v6l4.75 2.85.75-1.23-4-2.37V8zM12 4c-4.97 0-9 4.03-9 9s4.02 9 9 9c4.97 0 9-4.03 9-9s-4.03-9-9-9zm0 16c-3.87 0-7-3.13-7-7s3.13-7 7-7 7 3.13 7 7-3.13 7-7 7z"></path></g>\n<g id="alarm-add"><path d="M7.88 3.39L6.6 1.86 2 5.71l1.29 1.53 4.59-3.85zM22 5.72l-4.6-3.86-1.29 1.53 4.6 3.86L22 5.72zM12 4c-4.97 0-9 4.03-9 9s4.02 9 9 9c4.97 0 9-4.03 9-9s-4.03-9-9-9zm0 16c-3.87 0-7-3.13-7-7s3.13-7 7-7 7 3.13 7 7-3.13 7-7 7zm1-11h-2v3H8v2h3v3h2v-3h3v-2h-3V9z"></path></g>\n<g id="alarm-off"><path d="M12 6c3.87 0 7 3.13 7 7 0 .84-.16 1.65-.43 2.4l1.52 1.52c.58-1.19.91-2.51.91-3.92 0-4.97-4.03-9-9-9-1.41 0-2.73.33-3.92.91L9.6 6.43C10.35 6.16 11.16 6 12 6zm10-.28l-4.6-3.86-1.29 1.53 4.6 3.86L22 5.72zM2.92 2.29L1.65 3.57 2.98 4.9l-1.11.93 1.42 1.42 1.11-.94.8.8C3.83 8.69 3 10.75 3 13c0 4.97 4.02 9 9 9 2.25 0 4.31-.83 5.89-2.2l2.2 2.2 1.27-1.27L3.89 3.27l-.97-.98zm13.55 16.1C15.26 19.39 13.7 20 12 20c-3.87 0-7-3.13-7-7 0-1.7.61-3.26 1.61-4.47l9.86 9.86zM8.02 3.28L6.6 1.86l-.86.71 1.42 1.42.86-.71z"></path></g>\n<g id="alarm-on"><path d="M22 5.72l-4.6-3.86-1.29 1.53 4.6 3.86L22 5.72zM7.88 3.39L6.6 1.86 2 5.71l1.29 1.53 4.59-3.85zM12 4c-4.97 0-9 4.03-9 9s4.02 9 9 9c4.97 0 9-4.03 9-9s-4.03-9-9-9zm0 16c-3.87 0-7-3.13-7-7s3.13-7 7-7 7 3.13 7 7-3.13 7-7 7zm-1.46-5.47L8.41 12.4l-1.06 1.06 3.18 3.18 6-6-1.06-1.06-4.93 4.95z"></path></g>\n<g id="all-out"><path d="M16.21 4.16l4 4v-4zm4 12l-4 4h4zm-12 4l-4-4v4zm-4-12l4-4h-4zm12.95-.95c-2.73-2.73-7.17-2.73-9.9 0s-2.73 7.17 0 9.9 7.17 2.73 9.9 0 2.73-7.16 0-9.9zm-1.1 8.8c-2.13 2.13-5.57 2.13-7.7 0s-2.13-5.57 0-7.7 5.57-2.13 7.7 0 2.13 5.57 0 7.7z"></path></g>\n<g id="android"><path d="M6 18c0 .55.45 1 1 1h1v3.5c0 .83.67 1.5 1.5 1.5s1.5-.67 1.5-1.5V19h2v3.5c0 .83.67 1.5 1.5 1.5s1.5-.67 1.5-1.5V19h1c.55 0 1-.45 1-1V8H6v10zM3.5 8C2.67 8 2 8.67 2 9.5v7c0 .83.67 1.5 1.5 1.5S5 17.33 5 16.5v-7C5 8.67 4.33 8 3.5 8zm17 0c-.83 0-1.5.67-1.5 1.5v7c0 .83.67 1.5 1.5 1.5s1.5-.67 1.5-1.5v-7c0-.83-.67-1.5-1.5-1.5zm-4.97-5.84l1.3-1.3c.2-.2.2-.51 0-.71-.2-.2-.51-.2-.71 0l-1.48 1.48C13.85 1.23 12.95 1 12 1c-.96 0-1.86.23-2.66.63L7.85.15c-.2-.2-.51-.2-.71 0-.2.2-.2.51 0 .71l1.31 1.31C6.97 3.26 6 5.01 6 7h12c0-1.99-.97-3.75-2.47-4.84zM10 5H9V4h1v1zm5 0h-1V4h1v1z"></path></g>\n<g id="announcement"><path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-7 9h-2V5h2v6zm0 4h-2v-2h2v2z"></path></g>\n<g id="apps"><path d="M4 8h4V4H4v4zm6 12h4v-4h-4v4zm-6 0h4v-4H4v4zm0-6h4v-4H4v4zm6 0h4v-4h-4v4zm6-10v4h4V4h-4zm-6 4h4V4h-4v4zm6 6h4v-4h-4v4zm0 6h4v-4h-4v4z"></path></g>\n<g id="archive"><path d="M20.54 5.23l-1.39-1.68C18.88 3.21 18.47 3 18 3H6c-.47 0-.88.21-1.16.55L3.46 5.23C3.17 5.57 3 6.02 3 6.5V19c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6.5c0-.48-.17-.93-.46-1.27zM12 17.5L6.5 12H10v-2h4v2h3.5L12 17.5zM5.12 5l.81-1h12l.94 1H5.12z"></path></g>\n<g id="arrow-back"><path d="M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"></path></g>\n<g id="arrow-downward"><path d="M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"></path></g>\n<g id="arrow-drop-down"><path d="M7 10l5 5 5-5z"></path></g>\n<g id="arrow-drop-down-circle"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 12l-4-4h8l-4 4z"></path></g>\n<g id="arrow-drop-up"><path d="M7 14l5-5 5 5z"></path></g>\n<g id="arrow-forward"><path d="M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"></path></g>\n<g id="arrow-upward"><path d="M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"></path></g>\n<g id="aspect-ratio"><path d="M19 12h-2v3h-3v2h5v-5zM7 9h3V7H5v5h2V9zm14-6H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16.01H3V4.99h18v14.02z"></path></g>\n<g id="assessment"><path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM9 17H7v-7h2v7zm4 0h-2V7h2v10zm4 0h-2v-4h2v4z"></path></g>\n<g id="assignment"><path d="M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm2 14H7v-2h7v2zm3-4H7v-2h10v2zm0-4H7V7h10v2z"></path></g>\n<g id="assignment-ind"><path d="M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm0 4c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3zm6 12H6v-1.4c0-2 4-3.1 6-3.1s6 1.1 6 3.1V19z"></path></g>\n<g id="assignment-late"><path d="M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-6 15h-2v-2h2v2zm0-4h-2V8h2v6zm-1-9c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1z"></path></g>\n<g id="assignment-return"><path d="M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm4 12h-4v3l-5-5 5-5v3h4v4z"></path></g>\n<g id="assignment-returned"><path d="M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm0 15l-5-5h3V9h4v4h3l-5 5z"></path></g>\n<g id="assignment-turned-in"><path d="M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm-2 14l-4-4 1.41-1.41L10 14.17l6.59-6.59L18 9l-8 8z"></path></g>\n<g id="attachment"><path d="M2 12.5C2 9.46 4.46 7 7.5 7H18c2.21 0 4 1.79 4 4s-1.79 4-4 4H9.5C8.12 15 7 13.88 7 12.5S8.12 10 9.5 10H17v2H9.41c-.55 0-.55 1 0 1H18c1.1 0 2-.9 2-2s-.9-2-2-2H7.5C5.57 9 4 10.57 4 12.5S5.57 16 7.5 16H17v2H7.5C4.46 18 2 15.54 2 12.5z"></path></g>\n<g id="autorenew"><path d="M12 6v3l4-4-4-4v3c-4.42 0-8 3.58-8 8 0 1.57.46 3.03 1.24 4.26L6.7 14.8c-.45-.83-.7-1.79-.7-2.8 0-3.31 2.69-6 6-6zm6.76 1.74L17.3 9.2c.44.84.7 1.79.7 2.8 0 3.31-2.69 6-6 6v-3l-4 4 4 4v-3c4.42 0 8-3.58 8-8 0-1.57-.46-3.03-1.24-4.26z"></path></g>\n<g id="backspace"><path d="M22 3H7c-.69 0-1.23.35-1.59.88L0 12l5.41 8.11c.36.53.9.89 1.59.89h15c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-3 12.59L17.59 17 14 13.41 10.41 17 9 15.59 12.59 12 9 8.41 10.41 7 14 10.59 17.59 7 19 8.41 15.41 12 19 15.59z"></path></g>\n<g id="backup"><path d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM14 13v4h-4v-4H7l5-5 5 5h-3z"></path></g>\n<g id="block"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zM4 12c0-4.42 3.58-8 8-8 1.85 0 3.55.63 4.9 1.69L5.69 16.9C4.63 15.55 4 13.85 4 12zm8 8c-1.85 0-3.55-.63-4.9-1.69L18.31 7.1C19.37 8.45 20 10.15 20 12c0 4.42-3.58 8-8 8z"></path></g>\n<g id="book"><path d="M18 2H6c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM6 4h5v8l-2.5-1.5L6 12V4z"></path></g>\n<g id="bookmark"><path d="M17 3H7c-1.1 0-1.99.9-1.99 2L5 21l7-3 7 3V5c0-1.1-.9-2-2-2z"></path></g>\n<g id="bookmark-border"><path d="M17 3H7c-1.1 0-1.99.9-1.99 2L5 21l7-3 7 3V5c0-1.1-.9-2-2-2zm0 15l-5-2.18L7 18V5h10v13z"></path></g>\n<g id="bug-report"><path d="M20 8h-2.81c-.45-.78-1.07-1.45-1.82-1.96L17 4.41 15.59 3l-2.17 2.17C12.96 5.06 12.49 5 12 5c-.49 0-.96.06-1.41.17L8.41 3 7 4.41l1.62 1.63C7.88 6.55 7.26 7.22 6.81 8H4v2h2.09c-.05.33-.09.66-.09 1v1H4v2h2v1c0 .34.04.67.09 1H4v2h2.81c1.04 1.79 2.97 3 5.19 3s4.15-1.21 5.19-3H20v-2h-2.09c.05-.33.09-.66.09-1v-1h2v-2h-2v-1c0-.34-.04-.67-.09-1H20V8zm-6 8h-4v-2h4v2zm0-4h-4v-2h4v2z"></path></g>\n<g id="build"><path d="M22.7 19l-9.1-9.1c.9-2.3.4-5-1.5-6.9-2-2-5-2.4-7.4-1.3L9 6 6 9 1.6 4.7C.4 7.1.9 10.1 2.9 12.1c1.9 1.9 4.6 2.4 6.9 1.5l9.1 9.1c.4.4 1 .4 1.4 0l2.3-2.3c.5-.4.5-1.1.1-1.4z"></path></g>\n<g id="cached"><path d="M19 8l-4 4h3c0 3.31-2.69 6-6 6-1.01 0-1.97-.25-2.8-.7l-1.46 1.46C8.97 19.54 10.43 20 12 20c4.42 0 8-3.58 8-8h3l-4-4zM6 12c0-3.31 2.69-6 6-6 1.01 0 1.97.25 2.8.7l1.46-1.46C15.03 4.46 13.57 4 12 4c-4.42 0-8 3.58-8 8H1l4 4 4-4H6z"></path></g>\n<g id="camera-enhance"><path d="M9 3L7.17 5H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2h-3.17L15 3H9zm3 15c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-1l1.25-2.75L16 13l-2.75-1.25L12 9l-1.25 2.75L8 13l2.75 1.25z"></path></g>\n<g id="cancel"><path d="M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"></path></g>\n<g id="card-giftcard"><path d="M20 6h-2.18c.11-.31.18-.65.18-1 0-1.66-1.34-3-3-3-1.05 0-1.96.54-2.5 1.35l-.5.67-.5-.68C10.96 2.54 10.05 2 9 2 7.34 2 6 3.34 6 5c0 .35.07.69.18 1H4c-1.11 0-1.99.89-1.99 2L2 19c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2zm-5-2c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zM9 4c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm11 15H4v-2h16v2zm0-5H4V8h5.08L7 10.83 8.62 12 11 8.76l1-1.36 1 1.36L15.38 12 17 10.83 14.92 8H20v6z"></path></g>\n<g id="card-membership"><path d="M20 2H4c-1.11 0-2 .89-2 2v11c0 1.11.89 2 2 2h4v5l4-2 4 2v-5h4c1.11 0 2-.89 2-2V4c0-1.11-.89-2-2-2zm0 13H4v-2h16v2zm0-5H4V4h16v6z"></path></g>\n<g id="card-travel"><path d="M20 6h-3V4c0-1.11-.89-2-2-2H9c-1.11 0-2 .89-2 2v2H4c-1.11 0-2 .89-2 2v11c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2zM9 4h6v2H9V4zm11 15H4v-2h16v2zm0-5H4V8h3v2h2V8h6v2h2V8h3v6z"></path></g>\n<g id="change-history"><path d="M12 7.77L18.39 18H5.61L12 7.77M12 4L2 20h20L12 4z"></path></g>\n<g id="check"><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"></path></g>\n<g id="check-box"><path d="M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"></path></g>\n<g id="check-box-outline-blank"><path d="M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"></path></g>\n<g id="check-circle"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"></path></g>\n<g id="chevron-left"><path d="M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"></path></g>\n<g id="chevron-right"><path d="M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"></path></g>\n<g id="chrome-reader-mode"><path d="M13 12h7v1.5h-7zm0-2.5h7V11h-7zm0 5h7V16h-7zM21 4H3c-1.1 0-2 .9-2 2v13c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 15h-9V6h9v13z"></path></g>\n<g id="class"><path d="M18 2H6c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM6 4h5v8l-2.5-1.5L6 12V4z"></path></g>\n<g id="clear"><path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"></path></g>\n<g id="close"><path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"></path></g>\n<g id="cloud"><path d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96z"></path></g>\n<g id="cloud-circle"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm4.5 14H8c-1.66 0-3-1.34-3-3s1.34-3 3-3l.14.01C8.58 8.28 10.13 7 12 7c2.21 0 4 1.79 4 4h.5c1.38 0 2.5 1.12 2.5 2.5S17.88 16 16.5 16z"></path></g>\n<g id="cloud-done"><path d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM10 17l-3.5-3.5 1.41-1.41L10 14.17 15.18 9l1.41 1.41L10 17z"></path></g>\n<g id="cloud-download"><path d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM17 13l-5 5-5-5h3V9h4v4h3z"></path></g>\n<g id="cloud-off"><path d="M19.35 10.04C18.67 6.59 15.64 4 12 4c-1.48 0-2.85.43-4.01 1.17l1.46 1.46C10.21 6.23 11.08 6 12 6c3.04 0 5.5 2.46 5.5 5.5v.5H19c1.66 0 3 1.34 3 3 0 1.13-.64 2.11-1.56 2.62l1.45 1.45C23.16 18.16 24 16.68 24 15c0-2.64-2.05-4.78-4.65-4.96zM3 5.27l2.75 2.74C2.56 8.15 0 10.77 0 14c0 3.31 2.69 6 6 6h11.73l2 2L21 20.73 4.27 4 3 5.27zM7.73 10l8 8H6c-2.21 0-4-1.79-4-4s1.79-4 4-4h1.73z"></path></g>\n<g id="cloud-queue"><path d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM19 18H6c-2.21 0-4-1.79-4-4s1.79-4 4-4h.71C7.37 7.69 9.48 6 12 6c3.04 0 5.5 2.46 5.5 5.5v.5H19c1.66 0 3 1.34 3 3s-1.34 3-3 3z"></path></g>\n<g id="cloud-upload"><path d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM14 13v4h-4v-4H7l5-5 5 5h-3z"></path></g>\n<g id="code"><path d="M9.4 16.6L4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4zm5.2 0l4.6-4.6-4.6-4.6L16 6l6 6-6 6-1.4-1.4z"></path></g>\n<g id="compare-arrows"><path d="M9.01 14H2v2h7.01v3L13 15l-3.99-4v3zm5.98-1v-3H22V8h-7.01V5L11 9l3.99 4z"></path></g>\n<g id="content-copy"><path d="M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z"></path></g>\n<g id="content-cut"><path d="M9.64 7.64c.23-.5.36-1.05.36-1.64 0-2.21-1.79-4-4-4S2 3.79 2 6s1.79 4 4 4c.59 0 1.14-.13 1.64-.36L10 12l-2.36 2.36C7.14 14.13 6.59 14 6 14c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4c0-.59-.13-1.14-.36-1.64L12 14l7 7h3v-1L9.64 7.64zM6 8c-1.1 0-2-.89-2-2s.9-2 2-2 2 .89 2 2-.9 2-2 2zm0 12c-1.1 0-2-.89-2-2s.9-2 2-2 2 .89 2 2-.9 2-2 2zm6-7.5c-.28 0-.5-.22-.5-.5s.22-.5.5-.5.5.22.5.5-.22.5-.5.5zM19 3l-6 6 2 2 7-7V3z"></path></g>\n<g id="content-paste"><path d="M19 2h-4.18C14.4.84 13.3 0 12 0c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm7 18H5V4h2v3h10V4h2v16z"></path></g>\n<g id="copyright"><path d="M10.08 10.86c.05-.33.16-.62.3-.87s.34-.46.59-.62c.24-.15.54-.22.91-.23.23.01.44.05.63.13.2.09.38.21.52.36s.25.33.34.53.13.42.14.64h1.79c-.02-.47-.11-.9-.28-1.29s-.4-.73-.7-1.01-.66-.5-1.08-.66-.88-.23-1.39-.23c-.65 0-1.22.11-1.7.34s-.88.53-1.2.92-.56.84-.71 1.36S8 11.29 8 11.87v.27c0 .58.08 1.12.23 1.64s.39.97.71 1.35.72.69 1.2.91 1.05.34 1.7.34c.47 0 .91-.08 1.32-.23s.77-.36 1.08-.63.56-.58.74-.94.29-.74.3-1.15h-1.79c-.01.21-.06.4-.15.58s-.21.33-.36.46-.32.23-.52.3c-.19.07-.39.09-.6.1-.36-.01-.66-.08-.89-.23-.25-.16-.45-.37-.59-.62s-.25-.55-.3-.88-.08-.67-.08-1v-.27c0-.35.03-.68.08-1.01zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"></path></g>\n<g id="create"><path d="M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"></path></g>\n<g id="create-new-folder"><path d="M20 6h-8l-2-2H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2zm-1 8h-3v3h-2v-3h-3v-2h3V9h2v3h3v2z"></path></g>\n<g id="credit-card"><path d="M20 4H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V6c0-1.11-.89-2-2-2zm0 14H4v-6h16v6zm0-10H4V6h16v2z"></path></g>\n<g id="dashboard"><path d="M3 13h8V3H3v10zm0 8h8v-6H3v6zm10 0h8V11h-8v10zm0-18v6h8V3h-8z"></path></g>\n<g id="date-range"><path d="M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"></path></g>\n<g id="delete"><path d="M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"></path></g>\n<g id="delete-forever"><path d="M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zm2.46-7.12l1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14l2.12 2.12-1.41 1.41L12 15.41l-2.12 2.12-1.41-1.41L10.59 14l-2.13-2.12zM15.5 4l-1-1h-5l-1 1H5v2h14V4z"></path></g>\n<g id="delete-sweep"><path d="M15 16h4v2h-4zm0-8h7v2h-7zm0 4h6v2h-6zM3 18c0 1.1.9 2 2 2h6c1.1 0 2-.9 2-2V8H3v10zM14 5h-3l-1-1H6L5 5H2v2h12z"></path></g>\n<g id="description"><path d="M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 16H8v-2h8v2zm0-4H8v-2h8v2zm-3-5V3.5L18.5 9H13z"></path></g>\n<g id="dns"><path d="M20 13H4c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h16c.55 0 1-.45 1-1v-6c0-.55-.45-1-1-1zM7 19c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zM20 3H4c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h16c.55 0 1-.45 1-1V4c0-.55-.45-1-1-1zM7 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2z"></path></g>\n<g id="done"><path d="M9 16.2L4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4L9 16.2z"></path></g>\n<g id="done-all"><path d="M18 7l-1.41-1.41-6.34 6.34 1.41 1.41L18 7zm4.24-1.41L11.66 16.17 7.48 12l-1.41 1.41L11.66 19l12-12-1.42-1.41zM.41 13.41L6 19l1.41-1.41L1.83 12 .41 13.41z"></path></g>\n<g id="donut-large"><path d="M11 5.08V2c-5 .5-9 4.81-9 10s4 9.5 9 10v-3.08c-3-.48-6-3.4-6-6.92s3-6.44 6-6.92zM18.97 11H22c-.47-5-4-8.53-9-9v3.08C16 5.51 18.54 8 18.97 11zM13 18.92V22c5-.47 8.53-4 9-9h-3.03c-.43 3-2.97 5.49-5.97 5.92z"></path></g>\n<g id="donut-small"><path d="M11 9.16V2c-5 .5-9 4.79-9 10s4 9.5 9 10v-7.16c-1-.41-2-1.52-2-2.84s1-2.43 2-2.84zM14.86 11H22c-.48-4.75-4-8.53-9-9v7.16c1 .3 1.52.98 1.86 1.84zM13 14.84V22c5-.47 8.52-4.25 9-9h-7.14c-.34.86-.86 1.54-1.86 1.84z"></path></g>\n<g id="drafts"><path d="M21.99 8c0-.72-.37-1.35-.94-1.7L12 1 2.95 6.3C2.38 6.65 2 7.28 2 8v10c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2l-.01-10zM12 13L3.74 7.84 12 3l8.26 4.84L12 13z"></path></g>\n<g id="eject"><path d="M5 17h14v2H5zm7-12L5.33 15h13.34z"></path></g>\n<g id="error"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"></path></g>\n<g id="error-outline"><path d="M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"></path></g>\n<g id="euro-symbol"><path d="M15 18.5c-2.51 0-4.68-1.42-5.76-3.5H15v-2H8.58c-.05-.33-.08-.66-.08-1s.03-.67.08-1H15V9H9.24C10.32 6.92 12.5 5.5 15 5.5c1.61 0 3.09.59 4.23 1.57L21 5.3C19.41 3.87 17.3 3 15 3c-3.92 0-7.24 2.51-8.48 6H3v2h3.06c-.04.33-.06.66-.06 1 0 .34.02.67.06 1H3v2h3.52c1.24 3.49 4.56 6 8.48 6 2.31 0 4.41-.87 6-2.3l-1.78-1.77c-1.13.98-2.6 1.57-4.22 1.57z"></path></g>\n<g id="event"><path d="M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"></path></g>\n<g id="event-seat"><path d="M4 18v3h3v-3h10v3h3v-6H4zm15-8h3v3h-3zM2 10h3v3H2zm15 3H7V5c0-1.1.9-2 2-2h6c1.1 0 2 .9 2 2v8z"></path></g>\n<g id="exit-to-app"><path d="M10.09 15.59L11.5 17l5-5-5-5-1.41 1.41L12.67 11H3v2h9.67l-2.58 2.59zM19 3H5c-1.11 0-2 .9-2 2v4h2V5h14v14H5v-4H3v4c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"></path></g>\n<g id="expand-less"><path d="M12 8l-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"></path></g>\n<g id="expand-more"><path d="M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"></path></g>\n<g id="explore"><path d="M12 10.9c-.61 0-1.1.49-1.1 1.1s.49 1.1 1.1 1.1c.61 0 1.1-.49 1.1-1.1s-.49-1.1-1.1-1.1zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm2.19 12.19L6 18l3.81-8.19L18 6l-3.81 8.19z"></path></g>\n<g id="extension"><path d="M20.5 11H19V7c0-1.1-.9-2-2-2h-4V3.5C13 2.12 11.88 1 10.5 1S8 2.12 8 3.5V5H4c-1.1 0-1.99.9-1.99 2v3.8H3.5c1.49 0 2.7 1.21 2.7 2.7s-1.21 2.7-2.7 2.7H2V20c0 1.1.9 2 2 2h3.8v-1.5c0-1.49 1.21-2.7 2.7-2.7 1.49 0 2.7 1.21 2.7 2.7V22H17c1.1 0 2-.9 2-2v-4h1.5c1.38 0 2.5-1.12 2.5-2.5S21.88 11 20.5 11z"></path></g>\n<g id="face"><path d="M9 11.75c-.69 0-1.25.56-1.25 1.25s.56 1.25 1.25 1.25 1.25-.56 1.25-1.25-.56-1.25-1.25-1.25zm6 0c-.69 0-1.25.56-1.25 1.25s.56 1.25 1.25 1.25 1.25-.56 1.25-1.25-.56-1.25-1.25-1.25zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8 0-.29.02-.58.05-.86 2.36-1.05 4.23-2.98 5.21-5.37C11.07 8.33 14.05 10 17.42 10c.78 0 1.53-.09 2.25-.26.21.71.33 1.47.33 2.26 0 4.41-3.59 8-8 8z"></path></g>\n<g id="favorite"><path d="M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z"></path></g>\n<g id="favorite-border"><path d="M16.5 3c-1.74 0-3.41.81-4.5 2.09C10.91 3.81 9.24 3 7.5 3 4.42 3 2 5.42 2 8.5c0 3.78 3.4 6.86 8.55 11.54L12 21.35l1.45-1.32C18.6 15.36 22 12.28 22 8.5 22 5.42 19.58 3 16.5 3zm-4.4 15.55l-.1.1-.1-.1C7.14 14.24 4 11.39 4 8.5 4 6.5 5.5 5 7.5 5c1.54 0 3.04.99 3.57 2.36h1.87C13.46 5.99 14.96 5 16.5 5c2 0 3.5 1.5 3.5 3.5 0 2.89-3.14 5.74-7.9 10.05z"></path></g>\n<g id="feedback"><path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-7 12h-2v-2h2v2zm0-4h-2V6h2v4z"></path></g>\n<g id="file-download"><path d="M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z"></path></g>\n<g id="file-upload"><path d="M9 16h6v-6h4l-7-7-7 7h4zm-4 2h14v2H5z"></path></g>\n<g id="filter-list"><path d="M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"></path></g>\n<g id="find-in-page"><path d="M20 19.59V8l-6-6H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c.45 0 .85-.15 1.19-.4l-4.43-4.43c-.8.52-1.74.83-2.76.83-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5c0 1.02-.31 1.96-.83 2.75L20 19.59zM9 13c0 1.66 1.34 3 3 3s3-1.34 3-3-1.34-3-3-3-3 1.34-3 3z"></path></g>\n<g id="find-replace"><path d="M11 6c1.38 0 2.63.56 3.54 1.46L12 10h6V4l-2.05 2.05C14.68 4.78 12.93 4 11 4c-3.53 0-6.43 2.61-6.92 6H6.1c.46-2.28 2.48-4 4.9-4zm5.64 9.14c.66-.9 1.12-1.97 1.28-3.14H15.9c-.46 2.28-2.48 4-4.9 4-1.38 0-2.63-.56-3.54-1.46L10 12H4v6l2.05-2.05C7.32 17.22 9.07 18 11 18c1.55 0 2.98-.51 4.14-1.36L20 21.49 21.49 20l-4.85-4.86z"></path></g>\n<g id="fingerprint"><path d="M17.81 4.47c-.08 0-.16-.02-.23-.06C15.66 3.42 14 3 12.01 3c-1.98 0-3.86.47-5.57 1.41-.24.13-.54.04-.68-.2-.13-.24-.04-.55.2-.68C7.82 2.52 9.86 2 12.01 2c2.13 0 3.99.47 6.03 1.52.25.13.34.43.21.67-.09.18-.26.28-.44.28zM3.5 9.72c-.1 0-.2-.03-.29-.09-.23-.16-.28-.47-.12-.7.99-1.4 2.25-2.5 3.75-3.27C9.98 4.04 14 4.03 17.15 5.65c1.5.77 2.76 1.86 3.75 3.25.16.22.11.54-.12.7-.23.16-.54.11-.7-.12-.9-1.26-2.04-2.25-3.39-2.94-2.87-1.47-6.54-1.47-9.4.01-1.36.7-2.5 1.7-3.4 2.96-.08.14-.23.21-.39.21zm6.25 12.07c-.13 0-.26-.05-.35-.15-.87-.87-1.34-1.43-2.01-2.64-.69-1.23-1.05-2.73-1.05-4.34 0-2.97 2.54-5.39 5.66-5.39s5.66 2.42 5.66 5.39c0 .28-.22.5-.5.5s-.5-.22-.5-.5c0-2.42-2.09-4.39-4.66-4.39-2.57 0-4.66 1.97-4.66 4.39 0 1.44.32 2.77.93 3.85.64 1.15 1.08 1.64 1.85 2.42.19.2.19.51 0 .71-.11.1-.24.15-.37.15zm7.17-1.85c-1.19 0-2.24-.3-3.1-.89-1.49-1.01-2.38-2.65-2.38-4.39 0-.28.22-.5.5-.5s.5.22.5.5c0 1.41.72 2.74 1.94 3.56.71.48 1.54.71 2.54.71.24 0 .64-.03 1.04-.1.27-.05.53.13.58.41.05.27-.13.53-.41.58-.57.11-1.07.12-1.21.12zM14.91 22c-.04 0-.09-.01-.13-.02-1.59-.44-2.63-1.03-3.72-2.1-1.4-1.39-2.17-3.24-2.17-5.22 0-1.62 1.38-2.94 3.08-2.94 1.7 0 3.08 1.32 3.08 2.94 0 1.07.93 1.94 2.08 1.94s2.08-.87 2.08-1.94c0-3.77-3.25-6.83-7.25-6.83-2.84 0-5.44 1.58-6.61 4.03-.39.81-.59 1.76-.59 2.8 0 .78.07 2.01.67 3.61.1.26-.03.55-.29.64-.26.1-.55-.04-.64-.29-.49-1.31-.73-2.61-.73-3.96 0-1.2.23-2.29.68-3.24 1.33-2.79 4.28-4.6 7.51-4.6 4.55 0 8.25 3.51 8.25 7.83 0 1.62-1.38 2.94-3.08 2.94s-3.08-1.32-3.08-2.94c0-1.07-.93-1.94-2.08-1.94s-2.08.87-2.08 1.94c0 1.71.66 3.31 1.87 4.51.95.94 1.86 1.46 3.27 1.85.27.07.42.35.35.61-.05.23-.26.38-.47.38z"></path></g>\n<g id="first-page"><path d="M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"></path></g>\n<g id="flag"><path d="M14.4 6L14 4H5v17h2v-7h5.6l.4 2h7V6z"></path></g>\n<g id="flight-land"><path d="M2.5 19h19v2h-19zm7.18-5.73l4.35 1.16 5.31 1.42c.8.21 1.62-.26 1.84-1.06.21-.8-.26-1.62-1.06-1.84l-5.31-1.42-2.76-9.02L10.12 2v8.28L5.15 8.95l-.93-2.32-1.45-.39v5.17l1.6.43 5.31 1.43z"></path></g>\n<g id="flight-takeoff"><path d="M2.5 19h19v2h-19zm19.57-9.36c-.21-.8-1.04-1.28-1.84-1.06L14.92 10l-6.9-6.43-1.93.51 4.14 7.17-4.97 1.33-1.97-1.54-1.45.39 1.82 3.16.77 1.33 1.6-.43 5.31-1.42 4.35-1.16L21 11.49c.81-.23 1.28-1.05 1.07-1.85z"></path></g>\n<g id="flip-to-back"><path d="M9 7H7v2h2V7zm0 4H7v2h2v-2zm0-8c-1.11 0-2 .9-2 2h2V3zm4 12h-2v2h2v-2zm6-12v2h2c0-1.1-.9-2-2-2zm-6 0h-2v2h2V3zM9 17v-2H7c0 1.1.89 2 2 2zm10-4h2v-2h-2v2zm0-4h2V7h-2v2zm0 8c1.1 0 2-.9 2-2h-2v2zM5 7H3v12c0 1.1.89 2 2 2h12v-2H5V7zm10-2h2V3h-2v2zm0 12h2v-2h-2v2z"></path></g>\n<g id="flip-to-front"><path d="M3 13h2v-2H3v2zm0 4h2v-2H3v2zm2 4v-2H3c0 1.1.89 2 2 2zM3 9h2V7H3v2zm12 12h2v-2h-2v2zm4-18H9c-1.11 0-2 .9-2 2v10c0 1.1.89 2 2 2h10c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 12H9V5h10v10zm-8 6h2v-2h-2v2zm-4 0h2v-2H7v2z"></path></g>\n<g id="folder"><path d="M10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8l-2-2z"></path></g>\n<g id="folder-open"><path d="M20 6h-8l-2-2H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm0 12H4V8h16v10z"></path></g>\n<g id="folder-shared"><path d="M20 6h-8l-2-2H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm-5 3c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2zm4 8h-8v-1c0-1.33 2.67-2 4-2s4 .67 4 2v1z"></path></g>\n<g id="font-download"><path d="M9.93 13.5h4.14L12 7.98zM20 2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-4.05 16.5l-1.14-3H9.17l-1.12 3H5.96l5.11-13h1.86l5.11 13h-2.09z"></path></g>\n<g id="forward"><path d="M12 8V4l8 8-8 8v-4H4V8z"></path></g>\n<g id="fullscreen"><path d="M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"></path></g>\n<g id="fullscreen-exit"><path d="M5 16h3v3h2v-5H5v2zm3-8H5v2h5V5H8v3zm6 11h2v-3h3v-2h-5v5zm2-11V5h-2v5h5V8h-3z"></path></g>\n<g id="g-translate"><path d="M20 5h-9.12L10 2H4c-1.1 0-2 .9-2 2v13c0 1.1.9 2 2 2h7l1 3h8c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zM7.17 14.59c-2.25 0-4.09-1.83-4.09-4.09s1.83-4.09 4.09-4.09c1.04 0 1.99.37 2.74 1.07l.07.06-1.23 1.18-.06-.05c-.29-.27-.78-.59-1.52-.59-1.31 0-2.38 1.09-2.38 2.42s1.07 2.42 2.38 2.42c1.37 0 1.96-.87 2.12-1.46H7.08V9.91h3.95l.01.07c.04.21.05.4.05.61 0 2.35-1.61 4-3.92 4zm6.03-1.71c.33.6.74 1.18 1.19 1.7l-.54.53-.65-2.23zm.77-.76h-.99l-.31-1.04h3.99s-.34 1.31-1.56 2.74c-.52-.62-.89-1.23-1.13-1.7zM21 20c0 .55-.45 1-1 1h-7l2-2-.81-2.77.92-.92L17.79 18l.73-.73-2.71-2.68c.9-1.03 1.6-2.25 1.92-3.51H19v-1.04h-3.64V9h-1.04v1.04h-1.96L11.18 6H20c.55 0 1 .45 1 1v13z"></path></g>\n<g id="gavel"><path d="M1 21h12v2H1zM5.245 8.07l2.83-2.827 14.14 14.142-2.828 2.828zM12.317 1l5.657 5.656-2.83 2.83-5.654-5.66zM3.825 9.485l5.657 5.657-2.828 2.828-5.657-5.657z"></path></g>\n<g id="gesture"><path d="M4.59 6.89c.7-.71 1.4-1.35 1.71-1.22.5.2 0 1.03-.3 1.52-.25.42-2.86 3.89-2.86 6.31 0 1.28.48 2.34 1.34 2.98.75.56 1.74.73 2.64.46 1.07-.31 1.95-1.4 3.06-2.77 1.21-1.49 2.83-3.44 4.08-3.44 1.63 0 1.65 1.01 1.76 1.79-3.78.64-5.38 3.67-5.38 5.37 0 1.7 1.44 3.09 3.21 3.09 1.63 0 4.29-1.33 4.69-6.1H21v-2.5h-2.47c-.15-1.65-1.09-4.2-4.03-4.2-2.25 0-4.18 1.91-4.94 2.84-.58.73-2.06 2.48-2.29 2.72-.25.3-.68.84-1.11.84-.45 0-.72-.83-.36-1.92.35-1.09 1.4-2.86 1.85-3.52.78-1.14 1.3-1.92 1.3-3.28C8.95 3.69 7.31 3 6.44 3 5.12 3 3.97 4 3.72 4.25c-.36.36-.66.66-.88.93l1.75 1.71zm9.29 11.66c-.31 0-.74-.26-.74-.72 0-.6.73-2.2 2.87-2.76-.3 2.69-1.43 3.48-2.13 3.48z"></path></g>\n<g id="get-app"><path d="M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z"></path></g>\n<g id="gif"><path d="M11.5 9H13v6h-1.5zM9 9H6c-.6 0-1 .5-1 1v4c0 .5.4 1 1 1h3c.6 0 1-.5 1-1v-2H8.5v1.5h-2v-3H10V10c0-.5-.4-1-1-1zm10 1.5V9h-4.5v6H16v-2h2v-1.5h-2v-1z"></path></g>\n<g id="grade"><path d="M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"></path></g>\n<g id="group-work"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zM8 17.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5zM9.5 8c0-1.38 1.12-2.5 2.5-2.5s2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5S9.5 9.38 9.5 8zm6.5 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"></path></g>\n<g id="help"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 17h-2v-2h2v2zm2.07-7.75l-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25z"></path></g>\n<g id="help-outline"><path d="M11 18h2v-2h-2v2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm0-14c-2.21 0-4 1.79-4 4h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5 0-2.21-1.79-4-4-4z"></path></g>\n<g id="highlight-off"><path d="M14.59 8L12 10.59 9.41 8 8 9.41 10.59 12 8 14.59 9.41 16 12 13.41 14.59 16 16 14.59 13.41 12 16 9.41 14.59 8zM12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"></path></g>\n<g id="history"><path d="M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9zm-1 5v5l4.28 2.54.72-1.21-3.5-2.08V8H12z"></path></g>\n<g id="home"><path d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"></path></g>\n<g id="hourglass-empty"><path d="M6 2v6h.01L6 8.01 10 12l-4 4 .01.01H6V22h12v-5.99h-.01L18 16l-4-4 4-3.99-.01-.01H18V2H6zm10 14.5V20H8v-3.5l4-4 4 4zm-4-5l-4-4V4h8v3.5l-4 4z"></path></g>\n<g id="hourglass-full"><path d="M6 2v6h.01L6 8.01 10 12l-4 4 .01.01H6V22h12v-5.99h-.01L18 16l-4-4 4-3.99-.01-.01H18V2H6z"></path></g>\n<g id="http"><path d="M4.5 11h-2V9H1v6h1.5v-2.5h2V15H6V9H4.5v2zm2.5-.5h1.5V15H10v-4.5h1.5V9H7v1.5zm5.5 0H14V15h1.5v-4.5H17V9h-4.5v1.5zm9-1.5H18v6h1.5v-2h2c.8 0 1.5-.7 1.5-1.5v-1c0-.8-.7-1.5-1.5-1.5zm0 2.5h-2v-1h2v1z"></path></g>\n<g id="https"><path d="M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z"></path></g>\n<g id="important-devices"><path d="M23 11.01L18 11c-.55 0-1 .45-1 1v9c0 .55.45 1 1 1h5c.55 0 1-.45 1-1v-9c0-.55-.45-.99-1-.99zM23 20h-5v-7h5v7zM20 2H2C.89 2 0 2.89 0 4v12c0 1.1.89 2 2 2h7v2H7v2h8v-2h-2v-2h2v-2H2V4h18v5h2V4c0-1.11-.9-2-2-2zm-8.03 7L11 6l-.97 3H7l2.47 1.76-.94 2.91 2.47-1.8 2.47 1.8-.94-2.91L15 9h-3.03z"></path></g>\n<g id="inbox"><path d="M19 3H4.99c-1.11 0-1.98.89-1.98 2L3 19c0 1.1.88 2 1.99 2H19c1.1 0 2-.9 2-2V5c0-1.11-.9-2-2-2zm0 12h-4c0 1.66-1.35 3-3 3s-3-1.34-3-3H4.99V5H19v10z"></path></g>\n<g id="indeterminate-check-box"><path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"></path></g>\n<g id="info"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"></path></g>\n<g id="info-outline"><path d="M11 17h2v-6h-2v6zm1-15C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zM11 9h2V7h-2v2z"></path></g>\n<g id="input"><path d="M21 3.01H3c-1.1 0-2 .9-2 2V9h2V4.99h18v14.03H3V15H1v4.01c0 1.1.9 1.98 2 1.98h18c1.1 0 2-.88 2-1.98v-14c0-1.11-.9-2-2-2zM11 16l4-4-4-4v3H1v2h10v3z"></path></g>\n<g id="invert-colors"><path d="M17.66 7.93L12 2.27 6.34 7.93c-3.12 3.12-3.12 8.19 0 11.31C7.9 20.8 9.95 21.58 12 21.58c2.05 0 4.1-.78 5.66-2.34 3.12-3.12 3.12-8.19 0-11.31zM12 19.59c-1.6 0-3.11-.62-4.24-1.76C6.62 16.69 6 15.19 6 13.59s.62-3.11 1.76-4.24L12 5.1v14.49z"></path></g>\n<g id="label"><path d="M17.63 5.84C17.27 5.33 16.67 5 16 5L5 5.01C3.9 5.01 3 5.9 3 7v10c0 1.1.9 1.99 2 1.99L16 19c.67 0 1.27-.33 1.63-.84L22 12l-4.37-6.16z"></path></g>\n<g id="label-outline"><path d="M17.63 5.84C17.27 5.33 16.67 5 16 5L5 5.01C3.9 5.01 3 5.9 3 7v10c0 1.1.9 1.99 2 1.99L16 19c.67 0 1.27-.33 1.63-.84L22 12l-4.37-6.16zM16 17H5V7h11l3.55 5L16 17z"></path></g>\n<g id="language"><path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zm6.93 6h-2.95c-.32-1.25-.78-2.45-1.38-3.56 1.84.63 3.37 1.91 4.33 3.56zM12 4.04c.83 1.2 1.48 2.53 1.91 3.96h-3.82c.43-1.43 1.08-2.76 1.91-3.96zM4.26 14C4.1 13.36 4 12.69 4 12s.1-1.36.26-2h3.38c-.08.66-.14 1.32-.14 2 0 .68.06 1.34.14 2H4.26zm.82 2h2.95c.32 1.25.78 2.45 1.38 3.56-1.84-.63-3.37-1.9-4.33-3.56zm2.95-8H5.08c.96-1.66 2.49-2.93 4.33-3.56C8.81 5.55 8.35 6.75 8.03 8zM12 19.96c-.83-1.2-1.48-2.53-1.91-3.96h3.82c-.43 1.43-1.08 2.76-1.91 3.96zM14.34 14H9.66c-.09-.66-.16-1.32-.16-2 0-.68.07-1.35.16-2h4.68c.09.65.16 1.32.16 2 0 .68-.07 1.34-.16 2zm.25 5.56c.6-1.11 1.06-2.31 1.38-3.56h2.95c-.96 1.65-2.49 2.93-4.33 3.56zM16.36 14c.08-.66.14-1.32.14-2 0-.68-.06-1.34-.14-2h3.38c.16.64.26 1.31.26 2s-.1 1.36-.26 2h-3.38z"></path></g>\n<g id="last-page"><path d="M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"></path></g>\n<g id="launch"><path d="M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z"></path></g>\n<g id="lightbulb-outline"><path d="M9 21c0 .55.45 1 1 1h4c.55 0 1-.45 1-1v-1H9v1zm3-19C8.14 2 5 5.14 5 9c0 2.38 1.19 4.47 3 5.74V17c0 .55.45 1 1 1h6c.55 0 1-.45 1-1v-2.26c1.81-1.27 3-3.36 3-5.74 0-3.86-3.14-7-7-7zm2.85 11.1l-.85.6V16h-4v-2.3l-.85-.6C7.8 12.16 7 10.63 7 9c0-2.76 2.24-5 5-5s5 2.24 5 5c0 1.63-.8 3.16-2.15 4.1z"></path></g>\n<g id="line-style"><path d="M3 16h5v-2H3v2zm6.5 0h5v-2h-5v2zm6.5 0h5v-2h-5v2zM3 20h2v-2H3v2zm4 0h2v-2H7v2zm4 0h2v-2h-2v2zm4 0h2v-2h-2v2zm4 0h2v-2h-2v2zM3 12h8v-2H3v2zm10 0h8v-2h-8v2zM3 4v4h18V4H3z"></path></g>\n<g id="line-weight"><path d="M3 17h18v-2H3v2zm0 3h18v-1H3v1zm0-7h18v-3H3v3zm0-9v4h18V4H3z"></path></g>\n<g id="link"><path d="M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z"></path></g>\n<g id="list"><path d="M3 13h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2V7H3v2zm4 4h14v-2H7v2zm0 4h14v-2H7v2zM7 7v2h14V7H7z"></path></g>\n<g id="lock"><path d="M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z"></path></g>\n<g id="lock-open"><path d="M12 17c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm6-9h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6h1.9c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm0 12H6V10h12v10z"></path></g>\n<g id="lock-outline"><path d="M12 17c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm6-9h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zM8.9 6c0-1.71 1.39-3.1 3.1-3.1s3.1 1.39 3.1 3.1v2H8.9V6zM18 20H6V10h12v10z"></path></g>\n<g id="low-priority"><path d="M14 5h8v2h-8zm0 5.5h8v2h-8zm0 5.5h8v2h-8zM2 11.5C2 15.08 4.92 18 8.5 18H9v2l3-3-3-3v2h-.5C6.02 16 4 13.98 4 11.5S6.02 7 8.5 7H12V5H8.5C4.92 5 2 7.92 2 11.5z"></path></g>\n<g id="loyalty"><path d="M21.41 11.58l-9-9C12.05 2.22 11.55 2 11 2H4c-1.1 0-2 .9-2 2v7c0 .55.22 1.05.59 1.42l9 9c.36.36.86.58 1.41.58.55 0 1.05-.22 1.41-.59l7-7c.37-.36.59-.86.59-1.41 0-.55-.23-1.06-.59-1.42zM5.5 7C4.67 7 4 6.33 4 5.5S4.67 4 5.5 4 7 4.67 7 5.5 6.33 7 5.5 7zm11.77 8.27L13 19.54l-4.27-4.27C8.28 14.81 8 14.19 8 13.5c0-1.38 1.12-2.5 2.5-2.5.69 0 1.32.28 1.77.74l.73.72.73-.73c.45-.45 1.08-.73 1.77-.73 1.38 0 2.5 1.12 2.5 2.5 0 .69-.28 1.32-.73 1.77z"></path></g>\n<g id="mail"><path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"></path></g>\n<g id="markunread"><path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"></path></g>\n<g id="markunread-mailbox"><path d="M20 6H10v6H8V4h6V0H6v6H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2z"></path></g>\n<g id="menu"><path d="M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"></path></g>\n<g id="more-horiz"><path d="M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"></path></g>\n<g id="more-vert"><path d="M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"></path></g>\n<g id="motorcycle"><path d="M19.44 9.03L15.41 5H11v2h3.59l2 2H5c-2.8 0-5 2.2-5 5s2.2 5 5 5c2.46 0 4.45-1.69 4.9-4h1.65l2.77-2.77c-.21.54-.32 1.14-.32 1.77 0 2.8 2.2 5 5 5s5-2.2 5-5c0-2.65-1.97-4.77-4.56-4.97zM7.82 15C7.4 16.15 6.28 17 5 17c-1.63 0-3-1.37-3-3s1.37-3 3-3c1.28 0 2.4.85 2.82 2H5v2h2.82zM19 17c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3z"></path></g>\n<g id="move-to-inbox"><path d="M19 3H4.99c-1.11 0-1.98.9-1.98 2L3 19c0 1.1.88 2 1.99 2H19c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 12h-4c0 1.66-1.35 3-3 3s-3-1.34-3-3H4.99V5H19v10zm-3-5h-2V7h-4v3H8l4 4 4-4z"></path></g>\n<g id="next-week"><path d="M20 7h-4V5c0-.55-.22-1.05-.59-1.41C15.05 3.22 14.55 3 14 3h-4c-1.1 0-2 .9-2 2v2H4c-1.1 0-2 .9-2 2v11c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V9c0-1.1-.9-2-2-2zM10 5h4v2h-4V5zm1 13.5l-1-1 3-3-3-3 1-1 4 4-4 4z"></path></g>\n<g id="note-add"><path d="M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 14h-3v3h-2v-3H8v-2h3v-3h2v3h3v2zm-3-7V3.5L18.5 9H13z"></path></g>\n<g id="offline-pin"><path d="M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10 10-4.5 10-10S17.5 2 12 2zm5 16H7v-2h10v2zm-6.7-4L7 10.7l1.4-1.4 1.9 1.9 5.3-5.3L17 7.3 10.3 14z"></path></g>\n<g id="opacity"><path d="M17.66 8L12 2.35 6.34 8C4.78 9.56 4 11.64 4 13.64s.78 4.11 2.34 5.67 3.61 2.35 5.66 2.35 4.1-.79 5.66-2.35S20 15.64 20 13.64 19.22 9.56 17.66 8zM6 14c.01-2 .62-3.27 1.76-4.4L12 5.27l4.24 4.38C17.38 10.77 17.99 12 18 14H6z"></path></g>\n<g id="open-in-browser"><path d="M19 4H5c-1.11 0-2 .9-2 2v12c0 1.1.89 2 2 2h4v-2H5V8h14v10h-4v2h4c1.1 0 2-.9 2-2V6c0-1.1-.89-2-2-2zm-7 6l-4 4h3v6h2v-6h3l-4-4z"></path></g>\n<g id="open-in-new"><path d="M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z"></path></g>\n<g id="open-with"><path d="M10 9h4V6h3l-5-5-5 5h3v3zm-1 1H6V7l-5 5 5 5v-3h3v-4zm14 2l-5-5v3h-3v4h3v3l5-5zm-9 3h-4v3H7l5 5 5-5h-3v-3z"></path></g>\n<g id="pageview"><path d="M11.5 9C10.12 9 9 10.12 9 11.5s1.12 2.5 2.5 2.5 2.5-1.12 2.5-2.5S12.88 9 11.5 9zM20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-3.21 14.21l-2.91-2.91c-.69.44-1.51.7-2.39.7C9.01 16 7 13.99 7 11.5S9.01 7 11.5 7 16 9.01 16 11.5c0 .88-.26 1.69-.7 2.39l2.91 2.9-1.42 1.42z"></path></g>\n<g id="pan-tool"><path d="M23 5.5V20c0 2.2-1.8 4-4 4h-7.3c-1.08 0-2.1-.43-2.85-1.19L1 14.83s1.26-1.23 1.3-1.25c.22-.19.49-.29.79-.29.22 0 .42.06.6.16.04.01 4.31 2.46 4.31 2.46V4c0-.83.67-1.5 1.5-1.5S11 3.17 11 4v7h1V1.5c0-.83.67-1.5 1.5-1.5S15 .67 15 1.5V11h1V2.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5V11h1V5.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5z"></path></g>\n<g id="payment"><path d="M20 4H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V6c0-1.11-.89-2-2-2zm0 14H4v-6h16v6zm0-10H4V6h16v2z"></path></g>\n<g id="perm-camera-mic"><path d="M20 5h-3.17L15 3H9L7.17 5H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h7v-2.09c-2.83-.48-5-2.94-5-5.91h2c0 2.21 1.79 4 4 4s4-1.79 4-4h2c0 2.97-2.17 5.43-5 5.91V21h7c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm-6 8c0 1.1-.9 2-2 2s-2-.9-2-2V9c0-1.1.9-2 2-2s2 .9 2 2v4z"></path></g>\n<g id="perm-contact-calendar"><path d="M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 3c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3zm6 12H6v-1c0-2 4-3.1 6-3.1s6 1.1 6 3.1v1z"></path></g>\n<g id="perm-data-setting"><path d="M18.99 11.5c.34 0 .67.03 1 .07L20 0 0 20h11.56c-.04-.33-.07-.66-.07-1 0-4.14 3.36-7.5 7.5-7.5zm3.71 7.99c.02-.16.04-.32.04-.49 0-.17-.01-.33-.04-.49l1.06-.83c.09-.08.12-.21.06-.32l-1-1.73c-.06-.11-.19-.15-.31-.11l-1.24.5c-.26-.2-.54-.37-.85-.49l-.19-1.32c-.01-.12-.12-.21-.24-.21h-2c-.12 0-.23.09-.25.21l-.19 1.32c-.3.13-.59.29-.85.49l-1.24-.5c-.11-.04-.24 0-.31.11l-1 1.73c-.06.11-.04.24.06.32l1.06.83c-.02.16-.03.32-.03.49 0 .17.01.33.03.49l-1.06.83c-.09.08-.12.21-.06.32l1 1.73c.06.11.19.15.31.11l1.24-.5c.26.2.54.37.85.49l.19 1.32c.02.12.12.21.25.21h2c.12 0 .23-.09.25-.21l.19-1.32c.3-.13.59-.29.84-.49l1.25.5c.11.04.24 0 .31-.11l1-1.73c.06-.11.03-.24-.06-.32l-1.07-.83zm-3.71 1.01c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5z"></path></g>\n<g id="perm-device-information"><path d="M13 7h-2v2h2V7zm0 4h-2v6h2v-6zm4-9.99L7 1c-1.1 0-2 .9-2 2v18c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V3c0-1.1-.9-1.99-2-1.99zM17 19H7V5h10v14z"></path></g>\n<g id="perm-identity"><path d="M12 5.9c1.16 0 2.1.94 2.1 2.1s-.94 2.1-2.1 2.1S9.9 9.16 9.9 8s.94-2.1 2.1-2.1m0 9c2.97 0 6.1 1.46 6.1 2.1v1.1H5.9V17c0-.64 3.13-2.1 6.1-2.1M12 4C9.79 4 8 5.79 8 8s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm0 9c-2.67 0-8 1.34-8 4v3h16v-3c0-2.66-5.33-4-8-4z"></path></g>\n<g id="perm-media"><path d="M2 6H0v5h.01L0 20c0 1.1.9 2 2 2h18v-2H2V6zm20-2h-8l-2-2H6c-1.1 0-1.99.9-1.99 2L4 16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zM7 15l4.5-6 3.5 4.51 2.5-3.01L21 15H7z"></path></g>\n<g id="perm-phone-msg"><path d="M20 15.5c-1.25 0-2.45-.2-3.57-.57-.35-.11-.74-.03-1.02.24l-2.2 2.2c-2.83-1.44-5.15-3.75-6.59-6.58l2.2-2.21c.28-.27.36-.66.25-1.01C8.7 6.45 8.5 5.25 8.5 4c0-.55-.45-1-1-1H4c-.55 0-1 .45-1 1 0 9.39 7.61 17 17 17 .55 0 1-.45 1-1v-3.5c0-.55-.45-1-1-1zM12 3v10l3-3h6V3h-9z"></path></g>\n<g id="perm-scan-wifi"><path d="M12 3C6.95 3 3.15 4.85 0 7.23L12 22 24 7.25C20.85 4.87 17.05 3 12 3zm1 13h-2v-6h2v6zm-2-8V6h2v2h-2z"></path></g>\n<g id="pets"><circle cx="4.5" cy="9.5" r="2.5"></circle><circle cx="9" cy="5.5" r="2.5"></circle><circle cx="15" cy="5.5" r="2.5"></circle><circle cx="19.5" cy="9.5" r="2.5"></circle><path d="M17.34 14.86c-.87-1.02-1.6-1.89-2.48-2.91-.46-.54-1.05-1.08-1.75-1.32-.11-.04-.22-.07-.33-.09-.25-.04-.52-.04-.78-.04s-.53 0-.79.05c-.11.02-.22.05-.33.09-.7.24-1.28.78-1.75 1.32-.87 1.02-1.6 1.89-2.48 2.91-1.31 1.31-2.92 2.76-2.62 4.79.29 1.02 1.02 2.03 2.33 2.32.73.15 3.06-.44 5.54-.44h.18c2.48 0 4.81.58 5.54.44 1.31-.29 2.04-1.31 2.33-2.32.31-2.04-1.3-3.49-2.61-4.8z"></path></g>\n<g id="picture-in-picture"><path d="M19 7h-8v6h8V7zm2-4H3c-1.1 0-2 .9-2 2v14c0 1.1.9 1.98 2 1.98h18c1.1 0 2-.88 2-1.98V5c0-1.1-.9-2-2-2zm0 16.01H3V4.98h18v14.03z"></path></g>\n<g id="picture-in-picture-alt"><path d="M19 11h-8v6h8v-6zm4 8V4.98C23 3.88 22.1 3 21 3H3c-1.1 0-2 .88-2 1.98V19c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2zm-2 .02H3V4.97h18v14.05z"></path></g>\n<g id="play-for-work"><path d="M11 5v5.59H7.5l4.5 4.5 4.5-4.5H13V5h-2zm-5 9c0 3.31 2.69 6 6 6s6-2.69 6-6h-2c0 2.21-1.79 4-4 4s-4-1.79-4-4H6z"></path></g>\n<g id="polymer"><path d="M19 4h-4L7.11 16.63 4.5 12 9 4H5L.5 12 5 20h4l7.89-12.63L19.5 12 15 20h4l4.5-8z"></path></g>\n<g id="power-settings-new"><path d="M13 3h-2v10h2V3zm4.83 2.17l-1.42 1.42C17.99 7.86 19 9.81 19 12c0 3.87-3.13 7-7 7s-7-3.13-7-7c0-2.19 1.01-4.14 2.58-5.42L6.17 5.17C4.23 6.82 3 9.26 3 12c0 4.97 4.03 9 9 9s9-4.03 9-9c0-2.74-1.23-5.18-3.17-6.83z"></path></g>\n<g id="pregnant-woman"><path d="M9 4c0-1.11.89-2 2-2s2 .89 2 2-.89 2-2 2-2-.89-2-2zm7 9c-.01-1.34-.83-2.51-2-3 0-1.66-1.34-3-3-3s-3 1.34-3 3v7h2v5h3v-5h3v-4z"></path></g>\n<g id="print"><path d="M19 8H5c-1.66 0-3 1.34-3 3v6h4v4h12v-4h4v-6c0-1.66-1.34-3-3-3zm-3 11H8v-5h8v5zm3-7c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1zm-1-9H6v4h12V3z"></path></g>\n<g id="query-builder"><path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm.5-13H11v6l5.25 3.15.75-1.23-4.5-2.67z"></path></g>\n<g id="question-answer"><path d="M21 6h-2v9H6v2c0 .55.45 1 1 1h11l4 4V7c0-.55-.45-1-1-1zm-4 6V3c0-.55-.45-1-1-1H3c-.55 0-1 .45-1 1v14l4-4h10c.55 0 1-.45 1-1z"></path></g>\n<g id="radio-button-checked"><path d="M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zm0-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"></path></g>\n<g id="radio-button-unchecked"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"></path></g>\n<g id="receipt"><path d="M18 17H6v-2h12v2zm0-4H6v-2h12v2zm0-4H6V7h12v2zM3 22l1.5-1.5L6 22l1.5-1.5L9 22l1.5-1.5L12 22l1.5-1.5L15 22l1.5-1.5L18 22l1.5-1.5L21 22V2l-1.5 1.5L18 2l-1.5 1.5L15 2l-1.5 1.5L12 2l-1.5 1.5L9 2 7.5 3.5 6 2 4.5 3.5 3 2v20z"></path></g>\n<g id="record-voice-over"><circle cx="9" cy="9" r="4"></circle><path d="M9 15c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4zm7.76-9.64l-1.68 1.69c.84 1.18.84 2.71 0 3.89l1.68 1.69c2.02-2.02 2.02-5.07 0-7.27zM20.07 2l-1.63 1.63c2.77 3.02 2.77 7.56 0 10.74L20.07 16c3.9-3.89 3.91-9.95 0-14z"></path></g>\n<g id="redeem"><path d="M20 6h-2.18c.11-.31.18-.65.18-1 0-1.66-1.34-3-3-3-1.05 0-1.96.54-2.5 1.35l-.5.67-.5-.68C10.96 2.54 10.05 2 9 2 7.34 2 6 3.34 6 5c0 .35.07.69.18 1H4c-1.11 0-1.99.89-1.99 2L2 19c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2zm-5-2c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zM9 4c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm11 15H4v-2h16v2zm0-5H4V8h5.08L7 10.83 8.62 12 11 8.76l1-1.36 1 1.36L15.38 12 17 10.83 14.92 8H20v6z"></path></g>\n<g id="redo"><path d="M18.4 10.6C16.55 8.99 14.15 8 11.5 8c-4.65 0-8.58 3.03-9.96 7.22L3.9 16c1.05-3.19 4.05-5.5 7.6-5.5 1.95 0 3.73.72 5.12 1.88L13 16h9V7l-3.6 3.6z"></path></g>\n<g id="refresh"><path d="M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"></path></g>\n<g id="remove"><path d="M19 13H5v-2h14v2z"></path></g>\n<g id="remove-circle"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm5 11H7v-2h10v2z"></path></g>\n<g id="remove-circle-outline"><path d="M7 11v2h10v-2H7zm5-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"></path></g>\n<g id="remove-shopping-cart"><path d="M22.73 22.73L2.77 2.77 2 2l-.73-.73L0 2.54l4.39 4.39 2.21 4.66-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h7.46l1.38 1.38c-.5.36-.83.95-.83 1.62 0 1.1.89 2 1.99 2 .67 0 1.26-.33 1.62-.84L21.46 24l1.27-1.27zM7.42 15c-.14 0-.25-.11-.25-.25l.03-.12.9-1.63h2.36l2 2H7.42zm8.13-2c.75 0 1.41-.41 1.75-1.03l3.58-6.49c.08-.14.12-.31.12-.48 0-.55-.45-1-1-1H6.54l9.01 9zM7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2z"></path></g>\n<g id="reorder"><path d="M3 15h18v-2H3v2zm0 4h18v-2H3v2zm0-8h18V9H3v2zm0-6v2h18V5H3z"></path></g>\n<g id="reply"><path d="M10 9V5l-7 7 7 7v-4.1c5 0 8.5 1.6 11 5.1-1-5-4-10-11-11z"></path></g>\n<g id="reply-all"><path d="M7 8V5l-7 7 7 7v-3l-4-4 4-4zm6 1V5l-7 7 7 7v-4.1c5 0 8.5 1.6 11 5.1-1-5-4-10-11-11z"></path></g>\n<g id="report"><path d="M15.73 3H8.27L3 8.27v7.46L8.27 21h7.46L21 15.73V8.27L15.73 3zM12 17.3c-.72 0-1.3-.58-1.3-1.3 0-.72.58-1.3 1.3-1.3.72 0 1.3.58 1.3 1.3 0 .72-.58 1.3-1.3 1.3zm1-4.3h-2V7h2v6z"></path></g>\n<g id="report-problem"><path d="M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"></path></g>\n<g id="restore"><path d="M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9zm-1 5v5l4.28 2.54.72-1.21-3.5-2.08V8H12z"></path></g>\n<g id="restore-page"><path d="M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm-2 16c-2.05 0-3.81-1.24-4.58-3h1.71c.63.9 1.68 1.5 2.87 1.5 1.93 0 3.5-1.57 3.5-3.5S13.93 9.5 12 9.5c-1.35 0-2.52.78-3.1 1.9l1.6 1.6h-4V9l1.3 1.3C8.69 8.92 10.23 8 12 8c2.76 0 5 2.24 5 5s-2.24 5-5 5z"></path></g>\n<g id="room"><path d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"></path></g>\n<g id="rounded-corner"><path d="M19 19h2v2h-2v-2zm0-2h2v-2h-2v2zM3 13h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2V7H3v2zm0-4h2V3H3v2zm4 0h2V3H7v2zm8 16h2v-2h-2v2zm-4 0h2v-2h-2v2zm4 0h2v-2h-2v2zm-8 0h2v-2H7v2zm-4 0h2v-2H3v2zM21 8c0-2.76-2.24-5-5-5h-5v2h5c1.65 0 3 1.35 3 3v5h2V8z"></path></g>\n<g id="rowing"><path d="M8.5 14.5L4 19l1.5 1.5L9 17h2l-2.5-2.5zM15 1c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 20.01L18 24l-2.99-3.01V19.5l-7.1-7.09c-.31.05-.61.07-.91.07v-2.16c1.66.03 3.61-.87 4.67-2.04l1.4-1.55c.19-.21.43-.38.69-.5.29-.14.62-.23.96-.23h.03C15.99 6.01 17 7.02 17 8.26v5.75c0 .84-.35 1.61-.92 2.16l-3.58-3.58v-2.27c-.63.52-1.43 1.02-2.29 1.39L16.5 18H18l3 3.01z"></path></g>\n<g id="save"><path d="M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7l-4-4zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3zm3-10H5V5h10v4z"></path></g>\n<g id="schedule"><path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm.5-13H11v6l5.25 3.15.75-1.23-4.5-2.67z"></path></g>\n<g id="search"><path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"></path></g>\n<g id="select-all"><path d="M3 5h2V3c-1.1 0-2 .9-2 2zm0 8h2v-2H3v2zm4 8h2v-2H7v2zM3 9h2V7H3v2zm10-6h-2v2h2V3zm6 0v2h2c0-1.1-.9-2-2-2zM5 21v-2H3c0 1.1.9 2 2 2zm-2-4h2v-2H3v2zM9 3H7v2h2V3zm2 18h2v-2h-2v2zm8-8h2v-2h-2v2zm0 8c1.1 0 2-.9 2-2h-2v2zm0-12h2V7h-2v2zm0 8h2v-2h-2v2zm-4 4h2v-2h-2v2zm0-16h2V3h-2v2zM7 17h10V7H7v10zm2-8h6v6H9V9z"></path></g>\n<g id="send"><path d="M2.01 21L23 12 2.01 3 2 10l15 2-15 2z"></path></g>\n<g id="settings"><path d="M19.43 12.98c.04-.32.07-.64.07-.98s-.03-.66-.07-.98l2.11-1.65c.19-.15.24-.42.12-.64l-2-3.46c-.12-.22-.39-.3-.61-.22l-2.49 1c-.52-.4-1.08-.73-1.69-.98l-.38-2.65C14.46 2.18 14.25 2 14 2h-4c-.25 0-.46.18-.49.42l-.38 2.65c-.61.25-1.17.59-1.69.98l-2.49-1c-.23-.09-.49 0-.61.22l-2 3.46c-.13.22-.07.49.12.64l2.11 1.65c-.04.32-.07.65-.07.98s.03.66.07.98l-2.11 1.65c-.19.15-.24.42-.12.64l2 3.46c.12.22.39.3.61.22l2.49-1c.52.4 1.08.73 1.69.98l.38 2.65c.03.24.24.42.49.42h4c.25 0 .46-.18.49-.42l.38-2.65c.61-.25 1.17-.59 1.69-.98l2.49 1c.23.09.49 0 .61-.22l2-3.46c.12-.22.07-.49-.12-.64l-2.11-1.65zM12 15.5c-1.93 0-3.5-1.57-3.5-3.5s1.57-3.5 3.5-3.5 3.5 1.57 3.5 3.5-1.57 3.5-3.5 3.5z"></path></g>\n<g id="settings-applications"><path d="M12 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm7-7H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-1.75 9c0 .23-.02.46-.05.68l1.48 1.16c.13.11.17.3.08.45l-1.4 2.42c-.09.15-.27.21-.43.15l-1.74-.7c-.36.28-.76.51-1.18.69l-.26 1.85c-.03.17-.18.3-.35.3h-2.8c-.17 0-.32-.13-.35-.29l-.26-1.85c-.43-.18-.82-.41-1.18-.69l-1.74.7c-.16.06-.34 0-.43-.15l-1.4-2.42c-.09-.15-.05-.34.08-.45l1.48-1.16c-.03-.23-.05-.46-.05-.69 0-.23.02-.46.05-.68l-1.48-1.16c-.13-.11-.17-.3-.08-.45l1.4-2.42c.09-.15.27-.21.43-.15l1.74.7c.36-.28.76-.51 1.18-.69l.26-1.85c.03-.17.18-.3.35-.3h2.8c.17 0 .32.13.35.29l.26 1.85c.43.18.82.41 1.18.69l1.74-.7c.16-.06.34 0 .43.15l1.4 2.42c.09.15.05.34-.08.45l-1.48 1.16c.03.23.05.46.05.69z"></path></g>\n<g id="settings-backup-restore"><path d="M14 12c0-1.1-.9-2-2-2s-2 .9-2 2 .9 2 2 2 2-.9 2-2zm-2-9c-4.97 0-9 4.03-9 9H0l4 4 4-4H5c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.51 0-2.91-.49-4.06-1.3l-1.42 1.44C8.04 20.3 9.94 21 12 21c4.97 0 9-4.03 9-9s-4.03-9-9-9z"></path></g>\n<g id="settings-bluetooth"><path d="M11 24h2v-2h-2v2zm-4 0h2v-2H7v2zm8 0h2v-2h-2v2zm2.71-18.29L12 0h-1v7.59L6.41 3 5 4.41 10.59 10 5 15.59 6.41 17 11 12.41V20h1l5.71-5.71-4.3-4.29 4.3-4.29zM13 3.83l1.88 1.88L13 7.59V3.83zm1.88 10.46L13 16.17v-3.76l1.88 1.88z"></path></g>\n<g id="settings-brightness"><path d="M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16.01H3V4.99h18v14.02zM8 16h2.5l1.5 1.5 1.5-1.5H16v-2.5l1.5-1.5-1.5-1.5V8h-2.5L12 6.5 10.5 8H8v2.5L6.5 12 8 13.5V16zm4-7c1.66 0 3 1.34 3 3s-1.34 3-3 3V9z"></path></g>\n<g id="settings-cell"><path d="M7 24h2v-2H7v2zm4 0h2v-2h-2v2zm4 0h2v-2h-2v2zM16 .01L8 0C6.9 0 6 .9 6 2v16c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V2c0-1.1-.9-1.99-2-1.99zM16 16H8V4h8v12z"></path></g>\n<g id="settings-ethernet"><path d="M7.77 6.76L6.23 5.48.82 12l5.41 6.52 1.54-1.28L3.42 12l4.35-5.24zM7 13h2v-2H7v2zm10-2h-2v2h2v-2zm-6 2h2v-2h-2v2zm6.77-7.52l-1.54 1.28L20.58 12l-4.35 5.24 1.54 1.28L23.18 12l-5.41-6.52z"></path></g>\n<g id="settings-input-antenna"><path d="M12 5c-3.87 0-7 3.13-7 7h2c0-2.76 2.24-5 5-5s5 2.24 5 5h2c0-3.87-3.13-7-7-7zm1 9.29c.88-.39 1.5-1.26 1.5-2.29 0-1.38-1.12-2.5-2.5-2.5S9.5 10.62 9.5 12c0 1.02.62 1.9 1.5 2.29v3.3L7.59 21 9 22.41l3-3 3 3L16.41 21 13 17.59v-3.3zM12 1C5.93 1 1 5.93 1 12h2c0-4.97 4.03-9 9-9s9 4.03 9 9h2c0-6.07-4.93-11-11-11z"></path></g>\n<g id="settings-input-component"><path d="M5 2c0-.55-.45-1-1-1s-1 .45-1 1v4H1v6h6V6H5V2zm4 14c0 1.3.84 2.4 2 2.82V23h2v-4.18c1.16-.41 2-1.51 2-2.82v-2H9v2zm-8 0c0 1.3.84 2.4 2 2.82V23h2v-4.18C6.16 18.4 7 17.3 7 16v-2H1v2zM21 6V2c0-.55-.45-1-1-1s-1 .45-1 1v4h-2v6h6V6h-2zm-8-4c0-.55-.45-1-1-1s-1 .45-1 1v4H9v6h6V6h-2V2zm4 14c0 1.3.84 2.4 2 2.82V23h2v-4.18c1.16-.41 2-1.51 2-2.82v-2h-6v2z"></path></g>\n<g id="settings-input-composite"><path d="M5 2c0-.55-.45-1-1-1s-1 .45-1 1v4H1v6h6V6H5V2zm4 14c0 1.3.84 2.4 2 2.82V23h2v-4.18c1.16-.41 2-1.51 2-2.82v-2H9v2zm-8 0c0 1.3.84 2.4 2 2.82V23h2v-4.18C6.16 18.4 7 17.3 7 16v-2H1v2zM21 6V2c0-.55-.45-1-1-1s-1 .45-1 1v4h-2v6h6V6h-2zm-8-4c0-.55-.45-1-1-1s-1 .45-1 1v4H9v6h6V6h-2V2zm4 14c0 1.3.84 2.4 2 2.82V23h2v-4.18c1.16-.41 2-1.51 2-2.82v-2h-6v2z"></path></g>\n<g id="settings-input-hdmi"><path d="M18 7V4c0-1.1-.9-2-2-2H8c-1.1 0-2 .9-2 2v3H5v6l3 6v3h8v-3l3-6V7h-1zM8 4h8v3h-2V5h-1v2h-2V5h-1v2H8V4z"></path></g>\n<g id="settings-input-svideo"><path d="M8 11.5c0-.83-.67-1.5-1.5-1.5S5 10.67 5 11.5 5.67 13 6.5 13 8 12.33 8 11.5zm7-5c0-.83-.67-1.5-1.5-1.5h-3C9.67 5 9 5.67 9 6.5S9.67 8 10.5 8h3c.83 0 1.5-.67 1.5-1.5zM8.5 15c-.83 0-1.5.67-1.5 1.5S7.67 18 8.5 18s1.5-.67 1.5-1.5S9.33 15 8.5 15zM12 1C5.93 1 1 5.93 1 12s4.93 11 11 11 11-4.93 11-11S18.07 1 12 1zm0 20c-4.96 0-9-4.04-9-9s4.04-9 9-9 9 4.04 9 9-4.04 9-9 9zm5.5-11c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5 1.5-.67 1.5-1.5-.67-1.5-1.5-1.5zm-2 5c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5 1.5-.67 1.5-1.5-.67-1.5-1.5-1.5z"></path></g>\n<g id="settings-overscan"><path d="M12.01 5.5L10 8h4l-1.99-2.5zM18 10v4l2.5-1.99L18 10zM6 10l-2.5 2.01L6 14v-4zm8 6h-4l2.01 2.5L14 16zm7-13H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16.01H3V4.99h18v14.02z"></path></g>\n<g id="settings-phone"><path d="M13 9h-2v2h2V9zm4 0h-2v2h2V9zm3 6.5c-1.25 0-2.45-.2-3.57-.57-.35-.11-.74-.03-1.02.24l-2.2 2.2c-2.83-1.44-5.15-3.75-6.59-6.58l2.2-2.21c.28-.27.36-.66.25-1.01C8.7 6.45 8.5 5.25 8.5 4c0-.55-.45-1-1-1H4c-.55 0-1 .45-1 1 0 9.39 7.61 17 17 17 .55 0 1-.45 1-1v-3.5c0-.55-.45-1-1-1zM19 9v2h2V9h-2z"></path></g>\n<g id="settings-power"><path d="M7 24h2v-2H7v2zm4 0h2v-2h-2v2zm2-22h-2v10h2V2zm3.56 2.44l-1.45 1.45C16.84 6.94 18 8.83 18 11c0 3.31-2.69 6-6 6s-6-2.69-6-6c0-2.17 1.16-4.06 2.88-5.12L7.44 4.44C5.36 5.88 4 8.28 4 11c0 4.42 3.58 8 8 8s8-3.58 8-8c0-2.72-1.36-5.12-3.44-6.56zM15 24h2v-2h-2v2z"></path></g>\n<g id="settings-remote"><path d="M15 9H9c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h6c.55 0 1-.45 1-1V10c0-.55-.45-1-1-1zm-3 6c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zM7.05 6.05l1.41 1.41C9.37 6.56 10.62 6 12 6s2.63.56 3.54 1.46l1.41-1.41C15.68 4.78 13.93 4 12 4s-3.68.78-4.95 2.05zM12 0C8.96 0 6.21 1.23 4.22 3.22l1.41 1.41C7.26 3.01 9.51 2 12 2s4.74 1.01 6.36 2.64l1.41-1.41C17.79 1.23 15.04 0 12 0z"></path></g>\n<g id="settings-voice"><path d="M7 24h2v-2H7v2zm5-11c1.66 0 2.99-1.34 2.99-3L15 4c0-1.66-1.34-3-3-3S9 2.34 9 4v6c0 1.66 1.34 3 3 3zm-1 11h2v-2h-2v2zm4 0h2v-2h-2v2zm4-14h-1.7c0 3-2.54 5.1-5.3 5.1S6.7 13 6.7 10H5c0 3.41 2.72 6.23 6 6.72V20h2v-3.28c3.28-.49 6-3.31 6-6.72z"></path></g>\n<g id="shop"><path d="M16 6V4c0-1.11-.89-2-2-2h-4c-1.11 0-2 .89-2 2v2H2v13c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V6h-6zm-6-2h4v2h-4V4zM9 18V9l7.5 4L9 18z"></path></g>\n<g id="shop-two"><path d="M3 9H1v11c0 1.11.89 2 2 2h14c1.11 0 2-.89 2-2H3V9zm15-4V3c0-1.11-.89-2-2-2h-4c-1.11 0-2 .89-2 2v2H5v11c0 1.11.89 2 2 2h14c1.11 0 2-.89 2-2V5h-5zm-6-2h4v2h-4V3zm0 12V8l5.5 3-5.5 4z"></path></g>\n<g id="shopping-basket"><path d="M17.21 9l-4.38-6.56c-.19-.28-.51-.42-.83-.42-.32 0-.64.14-.83.43L6.79 9H2c-.55 0-1 .45-1 1 0 .09.01.18.04.27l2.54 9.27c.23.84 1 1.46 1.92 1.46h13c.92 0 1.69-.62 1.93-1.46l2.54-9.27L23 10c0-.55-.45-1-1-1h-4.79zM9 9l3-4.4L15 9H9zm3 8c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2z"></path></g>\n<g id="shopping-cart"><path d="M7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2zM1 2v2h2l3.6 7.59-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h12v-2H7.42c-.14 0-.25-.11-.25-.25l.03-.12.9-1.63h7.45c.75 0 1.41-.41 1.75-1.03l3.58-6.49c.08-.14.12-.31.12-.48 0-.55-.45-1-1-1H5.21l-.94-2H1zm16 16c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2z"></path></g>\n<g id="sort"><path d="M3 18h6v-2H3v2zM3 6v2h18V6H3zm0 7h12v-2H3v2z"></path></g>\n<g id="speaker-notes"><path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM8 14H6v-2h2v2zm0-3H6V9h2v2zm0-3H6V6h2v2zm7 6h-5v-2h5v2zm3-3h-8V9h8v2zm0-3h-8V6h8v2z"></path></g>\n<g id="speaker-notes-off"><path d="M10.54 11l-.54-.54L7.54 8 6 6.46 2.38 2.84 1.27 1.73 0 3l2.01 2.01L2 22l4-4h9l5.73 5.73L22 22.46 17.54 18l-7-7zM8 14H6v-2h2v2zm-2-3V9l2 2H6zm14-9H4.08L10 7.92V6h8v2h-7.92l1 1H18v2h-4.92l6.99 6.99C21.14 17.95 22 17.08 22 16V4c0-1.1-.9-2-2-2z"></path></g>\n<g id="spellcheck"><path d="M12.45 16h2.09L9.43 3H7.57L2.46 16h2.09l1.12-3h5.64l1.14 3zm-6.02-5L8.5 5.48 10.57 11H6.43zm15.16.59l-8.09 8.09L9.83 16l-1.41 1.41 5.09 5.09L23 13l-1.41-1.41z"></path></g>\n<g id="star"><path d="M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"></path></g>\n<g id="star-border"><path d="M22 9.24l-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4l-3.76 2.27 1-4.28-3.32-2.88 4.38-.38L12 6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15.4z"></path></g>\n<g id="star-half"><path d="M22 9.24l-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4V6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15.4z"></path></g>\n<g id="stars"><path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zm4.24 16L12 15.45 7.77 18l1.12-4.81-3.73-3.23 4.92-.42L12 5l1.92 4.53 4.92.42-3.73 3.23L16.23 18z"></path></g>\n<g id="store"><path d="M20 4H4v2h16V4zm1 10v-2l-1-5H4l-1 5v2h1v6h10v-6h4v6h2v-6h1zm-9 4H6v-4h6v4z"></path></g>\n<g id="subdirectory-arrow-left"><path d="M11 9l1.42 1.42L8.83 14H18V4h2v12H8.83l3.59 3.58L11 21l-6-6 6-6z"></path></g>\n<g id="subdirectory-arrow-right"><path d="M19 15l-6 6-1.42-1.42L15.17 16H4V4h2v10h9.17l-3.59-3.58L13 9l6 6z"></path></g>\n<g id="subject"><path d="M14 17H4v2h10v-2zm6-8H4v2h16V9zM4 15h16v-2H4v2zM4 5v2h16V5H4z"></path></g>\n<g id="supervisor-account"><path d="M16.5 12c1.38 0 2.49-1.12 2.49-2.5S17.88 7 16.5 7C15.12 7 14 8.12 14 9.5s1.12 2.5 2.5 2.5zM9 11c1.66 0 2.99-1.34 2.99-3S10.66 5 9 5C7.34 5 6 6.34 6 8s1.34 3 3 3zm7.5 3c-1.83 0-5.5.92-5.5 2.75V19h11v-2.25c0-1.83-3.67-2.75-5.5-2.75zM9 13c-2.33 0-7 1.17-7 3.5V19h7v-2.25c0-.85.33-2.34 2.37-3.47C10.5 13.1 9.66 13 9 13z"></path></g>\n<g id="swap-horiz"><path d="M6.99 11L3 15l3.99 4v-3H14v-2H6.99v-3zM21 9l-3.99-4v3H10v2h7.01v3L21 9z"></path></g>\n<g id="swap-vert"><path d="M16 17.01V10h-2v7.01h-3L15 21l4-3.99h-3zM9 3L5 6.99h3V14h2V6.99h3L9 3z"></path></g>\n<g id="swap-vertical-circle"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zM6.5 9L10 5.5 13.5 9H11v4H9V9H6.5zm11 6L14 18.5 10.5 15H13v-4h2v4h2.5z"></path></g>\n<g id="system-update-alt"><path d="M12 16.5l4-4h-3v-9h-2v9H8l4 4zm9-13h-6v1.99h6v14.03H3V5.49h6V3.5H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2v-14c0-1.1-.9-2-2-2z"></path></g>\n<g id="tab"><path d="M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H3V5h10v4h8v10z"></path></g>\n<g id="tab-unselected"><path d="M1 9h2V7H1v2zm0 4h2v-2H1v2zm0-8h2V3c-1.1 0-2 .9-2 2zm8 16h2v-2H9v2zm-8-4h2v-2H1v2zm2 4v-2H1c0 1.1.9 2 2 2zM21 3h-8v6h10V5c0-1.1-.9-2-2-2zm0 14h2v-2h-2v2zM9 5h2V3H9v2zM5 21h2v-2H5v2zM5 5h2V3H5v2zm16 16c1.1 0 2-.9 2-2h-2v2zm0-8h2v-2h-2v2zm-8 8h2v-2h-2v2zm4 0h2v-2h-2v2z"></path></g>\n<g id="text-format"><path d="M5 17v2h14v-2H5zm4.5-4.2h5l.9 2.2h2.1L12.75 4h-1.5L6.5 15h2.1l.9-2.2zM12 5.98L13.87 11h-3.74L12 5.98z"></path></g>\n<g id="theaters"><path d="M18 3v2h-2V3H8v2H6V3H4v18h2v-2h2v2h8v-2h2v2h2V3h-2zM8 17H6v-2h2v2zm0-4H6v-2h2v2zm0-4H6V7h2v2zm10 8h-2v-2h2v2zm0-4h-2v-2h2v2zm0-4h-2V7h2v2z"></path></g>\n<g id="thumb-down"><path d="M15 3H6c-.83 0-1.54.5-1.84 1.22l-3.02 7.05c-.09.23-.14.47-.14.73v1.91l.01.01L1 14c0 1.1.9 2 2 2h6.31l-.95 4.57-.03.32c0 .41.17.79.44 1.06L9.83 23l6.59-6.59c.36-.36.58-.86.58-1.41V5c0-1.1-.9-2-2-2zm4 0v12h4V3h-4z"></path></g>\n<g id="thumb-up"><path d="M1 21h4V9H1v12zm22-11c0-1.1-.9-2-2-2h-6.31l.95-4.57.03-.32c0-.41-.17-.79-.44-1.06L14.17 1 7.59 7.59C7.22 7.95 7 8.45 7 9v10c0 1.1.9 2 2 2h9c.83 0 1.54-.5 1.84-1.22l3.02-7.05c.09-.23.14-.47.14-.73v-1.91l-.01-.01L23 10z"></path></g>\n<g id="thumbs-up-down"><path d="M12 6c0-.55-.45-1-1-1H5.82l.66-3.18.02-.23c0-.31-.13-.59-.33-.8L5.38 0 .44 4.94C.17 5.21 0 5.59 0 6v6.5c0 .83.67 1.5 1.5 1.5h6.75c.62 0 1.15-.38 1.38-.91l2.26-5.29c.07-.17.11-.36.11-.55V6zm10.5 4h-6.75c-.62 0-1.15.38-1.38.91l-2.26 5.29c-.07.17-.11.36-.11.55V18c0 .55.45 1 1 1h5.18l-.66 3.18-.02.24c0 .31.13.59.33.8l.79.78 4.94-4.94c.27-.27.44-.65.44-1.06v-6.5c0-.83-.67-1.5-1.5-1.5z"></path></g>\n<g id="timeline"><path d="M23 8c0 1.1-.9 2-2 2-.18 0-.35-.02-.51-.07l-3.56 3.55c.05.16.07.34.07.52 0 1.1-.9 2-2 2s-2-.9-2-2c0-.18.02-.36.07-.52l-2.55-2.55c-.16.05-.34.07-.52.07s-.36-.02-.52-.07l-4.55 4.56c.05.16.07.33.07.51 0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2c.18 0 .35.02.51.07l4.56-4.55C8.02 9.36 8 9.18 8 9c0-1.1.9-2 2-2s2 .9 2 2c0 .18-.02.36-.07.52l2.55 2.55c.16-.05.34-.07.52-.07s.36.02.52.07l3.55-3.56C19.02 8.35 19 8.18 19 8c0-1.1.9-2 2-2s2 .9 2 2z"></path></g>\n<g id="toc"><path d="M3 9h14V7H3v2zm0 4h14v-2H3v2zm0 4h14v-2H3v2zm16 0h2v-2h-2v2zm0-10v2h2V7h-2zm0 6h2v-2h-2v2z"></path></g>\n<g id="today"><path d="M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"></path></g>\n<g id="toll"><path d="M15 4c-4.42 0-8 3.58-8 8s3.58 8 8 8 8-3.58 8-8-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 2.69 6 6-2.69 6-6 6zM3 12c0-2.61 1.67-4.83 4-5.65V4.26C3.55 5.15 1 8.27 1 12s2.55 6.85 6 7.74v-2.09c-2.33-.82-4-3.04-4-5.65z"></path></g>\n<g id="touch-app"><path d="M9 11.24V7.5C9 6.12 10.12 5 11.5 5S14 6.12 14 7.5v3.74c1.21-.81 2-2.18 2-3.74C16 5.01 13.99 3 11.5 3S7 5.01 7 7.5c0 1.56.79 2.93 2 3.74zm9.84 4.63l-4.54-2.26c-.17-.07-.35-.11-.54-.11H13v-6c0-.83-.67-1.5-1.5-1.5S10 6.67 10 7.5v10.74l-3.43-.72c-.08-.01-.15-.03-.24-.03-.31 0-.59.13-.79.33l-.79.8 4.94 4.94c.27.27.65.44 1.06.44h6.79c.75 0 1.33-.55 1.44-1.28l.75-5.27c.01-.07.02-.14.02-.2 0-.62-.38-1.16-.91-1.38z"></path></g>\n<g id="track-changes"><path d="M19.07 4.93l-1.41 1.41C19.1 7.79 20 9.79 20 12c0 4.42-3.58 8-8 8s-8-3.58-8-8c0-4.08 3.05-7.44 7-7.93v2.02C8.16 6.57 6 9.03 6 12c0 3.31 2.69 6 6 6s6-2.69 6-6c0-1.66-.67-3.16-1.76-4.24l-1.41 1.41C15.55 9.9 16 10.9 16 12c0 2.21-1.79 4-4 4s-4-1.79-4-4c0-1.86 1.28-3.41 3-3.86v2.14c-.6.35-1 .98-1 1.72 0 1.1.9 2 2 2s2-.9 2-2c0-.74-.4-1.38-1-1.72V2h-1C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10c0-2.76-1.12-5.26-2.93-7.07z"></path></g>\n<g id="translate"><path d="M12.87 15.07l-2.54-2.51.03-.03c1.74-1.94 2.98-4.17 3.71-6.53H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11.76-2.04zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2l-4.5-12zm-2.62 7l1.62-4.33L19.12 17h-3.24z"></path></g>\n<g id="trending-down"><path d="M16 18l2.29-2.29-4.88-4.88-4 4L2 7.41 3.41 6l6 6 4-4 6.3 6.29L22 12v6z"></path></g>\n<g id="trending-flat"><path d="M22 12l-4-4v3H3v2h15v3z"></path></g>\n<g id="trending-up"><path d="M16 6l2.29 2.29-4.88 4.88-4-4L2 16.59 3.41 18l6-6 4 4 6.3-6.29L22 12V6z"></path></g>\n<g id="turned-in"><path d="M17 3H7c-1.1 0-1.99.9-1.99 2L5 21l7-3 7 3V5c0-1.1-.9-2-2-2z"></path></g>\n<g id="turned-in-not"><path d="M17 3H7c-1.1 0-1.99.9-1.99 2L5 21l7-3 7 3V5c0-1.1-.9-2-2-2zm0 15l-5-2.18L7 18V5h10v13z"></path></g>\n<g id="unarchive"><path d="M20.55 5.22l-1.39-1.68C18.88 3.21 18.47 3 18 3H6c-.47 0-.88.21-1.15.55L3.46 5.22C3.17 5.57 3 6.01 3 6.5V19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6.5c0-.49-.17-.93-.45-1.28zM12 9.5l5.5 5.5H14v2h-4v-2H6.5L12 9.5zM5.12 5l.82-1h12l.93 1H5.12z"></path></g>\n<g id="undo"><path d="M12.5 8c-2.65 0-5.05.99-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8z"></path></g>\n<g id="unfold-less"><path d="M7.41 18.59L8.83 20 12 16.83 15.17 20l1.41-1.41L12 14l-4.59 4.59zm9.18-13.18L15.17 4 12 7.17 8.83 4 7.41 5.41 12 10l4.59-4.59z"></path></g>\n<g id="unfold-more"><path d="M12 5.83L15.17 9l1.41-1.41L12 3 7.41 7.59 8.83 9 12 5.83zm0 12.34L8.83 15l-1.41 1.41L12 21l4.59-4.59L15.17 15 12 18.17z"></path></g>\n<g id="update"><path d="M21 10.12h-6.78l2.74-2.82c-2.73-2.7-7.15-2.8-9.88-.1-2.73 2.71-2.73 7.08 0 9.79 2.73 2.71 7.15 2.71 9.88 0C18.32 15.65 19 14.08 19 12.1h2c0 1.98-.88 4.55-2.64 6.29-3.51 3.48-9.21 3.48-12.72 0-3.5-3.47-3.53-9.11-.02-12.58 3.51-3.47 9.14-3.47 12.65 0L21 3v7.12zM12.5 8v4.25l3.5 2.08-.72 1.21L11 13V8h1.5z"></path></g>\n<g id="verified-user"><path d="M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4zm-2 16l-4-4 1.41-1.41L10 14.17l6.59-6.59L18 9l-8 8z"></path></g>\n<g id="view-agenda"><path d="M20 13H3c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h17c.55 0 1-.45 1-1v-6c0-.55-.45-1-1-1zm0-10H3c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h17c.55 0 1-.45 1-1V4c0-.55-.45-1-1-1z"></path></g>\n<g id="view-array"><path d="M4 18h3V5H4v13zM18 5v13h3V5h-3zM8 18h9V5H8v13z"></path></g>\n<g id="view-carousel"><path d="M7 19h10V4H7v15zm-5-2h4V6H2v11zM18 6v11h4V6h-4z"></path></g>\n<g id="view-column"><path d="M10 18h5V5h-5v13zm-6 0h5V5H4v13zM16 5v13h5V5h-5z"></path></g>\n<g id="view-day"><path d="M2 21h19v-3H2v3zM20 8H3c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h17c.55 0 1-.45 1-1V9c0-.55-.45-1-1-1zM2 3v3h19V3H2z"></path></g>\n<g id="view-headline"><path d="M4 15h16v-2H4v2zm0 4h16v-2H4v2zm0-8h16V9H4v2zm0-6v2h16V5H4z"></path></g>\n<g id="view-list"><path d="M4 14h4v-4H4v4zm0 5h4v-4H4v4zM4 9h4V5H4v4zm5 5h12v-4H9v4zm0 5h12v-4H9v4zM9 5v4h12V5H9z"></path></g>\n<g id="view-module"><path d="M4 11h5V5H4v6zm0 7h5v-6H4v6zm6 0h5v-6h-5v6zm6 0h5v-6h-5v6zm-6-7h5V5h-5v6zm6-6v6h5V5h-5z"></path></g>\n<g id="view-quilt"><path d="M10 18h5v-6h-5v6zm-6 0h5V5H4v13zm12 0h5v-6h-5v6zM10 5v6h11V5H10z"></path></g>\n<g id="view-stream"><path d="M4 18h17v-6H4v6zM4 5v6h17V5H4z"></path></g>\n<g id="view-week"><path d="M6 5H3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zm14 0h-3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zm-7 0h-3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1z"></path></g>\n<g id="visibility"><path d="M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"></path></g>\n<g id="visibility-off"><path d="M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78l3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z"></path></g>\n<g id="warning"><path d="M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"></path></g>\n<g id="watch-later"><path d="M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10 10-4.5 10-10S17.5 2 12 2zm4.2 14.2L11 13V7h1.5v5.2l4.5 2.7-.8 1.3z"></path></g>\n<g id="weekend"><path d="M21 10c-1.1 0-2 .9-2 2v3H5v-3c0-1.1-.9-2-2-2s-2 .9-2 2v5c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2v-5c0-1.1-.9-2-2-2zm-3-5H6c-1.1 0-2 .9-2 2v2.15c1.16.41 2 1.51 2 2.82V14h12v-2.03c0-1.3.84-2.4 2-2.82V7c0-1.1-.9-2-2-2z"></path></g>\n<g id="work"><path d="M20 6h-4V4c0-1.11-.89-2-2-2h-4c-1.11 0-2 .89-2 2v2H4c-1.11 0-1.99.89-1.99 2L2 19c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2zm-6 0h-4V4h4v2z"></path></g>\n<g id="youtube-searched-for"><path d="M17.01 14h-.8l-.27-.27c.98-1.14 1.57-2.61 1.57-4.23 0-3.59-2.91-6.5-6.5-6.5s-6.5 3-6.5 6.5H2l3.84 4 4.16-4H6.51C6.51 7 8.53 5 11.01 5s4.5 2.01 4.5 4.5c0 2.48-2.02 4.5-4.5 4.5-.65 0-1.26-.14-1.82-.38L7.71 15.1c.97.57 2.09.9 3.3.9 1.61 0 3.08-.59 4.22-1.57l.27.27v.79l5.01 4.99L22 19l-4.99-5z"></path></g>\n<g id="zoom-in"><path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14zm2.5-4h-2v2H9v-2H7V9h2V7h1v2h2v1z"></path></g>\n<g id="zoom-out"><path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14zM7 9h5v1H7z"></path></g>\n</defs></svg>\n</iron-iconset-svg>']),
BG6=_.hse(COx);BG6.setAttribute("style","display: none;");document.head.appendChild(BG6.content);_.Jp=_.A8k(function(F){var W=_.Cr("DIV");F&&(W.className=F);W.style.cssText="overflow:auto;position:absolute;top:0;width:100px;height:100px";F=_.Cr("DIV");_.QO_(F,"200px","200px");W.appendChild(F);document.body.appendChild(W);F=W.offsetWidth-W.clientWidth;_.Bb(W);return F});var v9K;var IVq;var aD=function(){var F=_.n.apply(this,arguments)||this;F.icon=null;return F};
_.k(aD,_.n);aD.prototype.dismiss=function(){_.hF(this.hostElement,"yt-live-chat-error-message-dismiss")};
aD.prototype.computeIcon=function(F){return F&&F.iconType?"yt-icons:"+F.iconType.toLowerCase():"yt-icons:close"};
_.T([_.O(),_.Y("design:type",Object)],aD.prototype,"data",void 0);_.T([_.O({computed:"computeIcon(data.icon)"}),_.Y("design:type",Object)],aD.prototype,"icon",void 0);aD=_.T([_.$3({disableElementRegistration:!0,is:"yt-live-chat-error-message-renderer",noInjection:!0})],aD);
_.r(aD,"yt-live-chat-error-message-renderer",function(){if(IVq===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-error-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_error_message_renderer.yt.live.chat.error.message.renderer.css.js--\x3e<yt-icon-button on-click="dismiss" class="style-scope yt-live-chat-error-message-renderer">\n  <yt-icon icon="[[icon]]" class="style-scope yt-live-chat-error-message-renderer"></yt-icon>\n</yt-icon-button>\n<yt-formatted-string text="[[data.errorText]]" class="style-scope yt-live-chat-error-message-renderer"></yt-formatted-string>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;v9K===void 0&&(v9K=document.createElement("template"));var h=v9K;E.call(W,h.content.cloneNode(!0),F.content.firstChild);IVq=F}F=IVq;return F},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});
}catch(e){_._DumpException(e)}
try{
var O6K,b6T,lwT,nnu,onw,Gmx,Yu6,wVT,uQ6,$l,SuK,pV6,ZY,mAg,KW$,F5P,W5u,EGO,hjN,dtu,NB6,VAg,Ut6,Rj$,ejq,MA6,gGw,Qp$,zju,tAO,CNK,BBN,Xa,vG$,ItF,c96,kV6,A9g,sp$,L5g,ql6,$t6,DtO,xt6,Xlq,HlO,PN$,J98,atN,ZlP,Ol6;O6K=function(F,W){return _.Mn(F.entities,"timedMarkersListSyncEntity",W)};
b6T=function(F,W){return _.Mn(F.entities,"liveReactionsDataEntity",W)};
lwT=function(F,W){F=_.Mn(F.entities,"booleanEntity",W);return!(!F||!F.value)};
nnu=function(F,W){var E=_.JR();E&&F&&_.y7(E,_.ve(F),W)};
_.y6T=function(){_.c("web_watch_log_theater_mode")&&_.Cce("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED")};
_.jfq=function(F,W,E){if(!F.includes("START_TIME_PLACEHOLDER")||!F.includes("END_TIME_PLACEHOLDER"))return F;var h=new Date(0),d=new Date(0);h.setUTCMilliseconds(W);d.setUTCMilliseconds(E);return F.replace("START_TIME_PLACEHOLDER",_.iC(h,7)).replace("END_TIME_PLACEHOLDER",_.iC(d,7))};
_.i66=function(F){return F.watch.isWatchActive};
_.Lw=function(F){return F!=null&&F.watch?F.watch.isWatchFullscreen:!1};
_.r6q=function(F){return _.H7(F)||_.Lw(F)||_.DZn(F)};
_.TiK=function(F){return!_.r6q(F)};
_.qP=function(F){return F.watch.watchScrollTop};
onw=function(F){return F.watch.isLiveChatCollapsed};
Gmx=function(F){return F.watch.openEngagementPanels};
Yu6=function(F,W){return _.Mn(F.entities,"booleanEntity",W)};
wVT=function(){return function(F){_.rQ(_.AG("booleanEntity","chat_input_view_model_state",{key:"chat_input_view_model_state",value:F}))}};
uQ6=function(F){switch(F){case "AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN":return 1;case "AD_GRID_CARD_COLLECTION_STYLE_FIXED_SIX_COLUMNS":return 6;case "AD_GRID_CARD_COLLECTION_STYLE_FIXED_TWO_COLUMNS":return 2;default:return 3}};
$l=function(F,W,E){var h=_.He(E);F&&W&&h&&F.getPlayerPromise().then(function(d){_.XaY(h)&&_.JV();(new _.I8(d)).executeCommand(h,W);_.c("continue_playback_on_desktop_companion_click")||d.pauseVideo()})};
SuK=function(F){var W=_.WS(),E;if(E=_.ju("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var h;E=(h=E())==null?void 0:h.layoutId}else E=null;$l(W,E,F)};
pV6=function(F){var W=_.WS(),E;if(E=_.ju("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var h;E=(h=E())==null?void 0:h.layoutId}else E=null;$l(W,E,F)};
ZY=function(F,W){var E=F<0?"-":"";F=Math.abs(F);var h=Math.floor(F/3600),d=Math.floor(F)%3600,V=Math.floor(d/60);d=Math.floor(d)%60;var R="";(W===void 0?0:W)&&(R="."+Math.round((F-Math.floor(F))*10));return h>0?E+h+":"+(V<10?"0"+V:""+V)+":"+(d<10?"0"+d:""+d)+R:E+V+":"+(d<10?"0"+d:""+d)+R};
mAg=function(F){var W=F.match(/[^0-9:\.]/g);if(W&&W.length>0)return null;F=F.split(":");if(F.length===0||F.length>3)return null;W=1;for(var E=0;F.length>0;){var h=F.pop();if(h===void 0)break;var d=Number(h);if(h===""||isNaN(d))return null;E+=d*W;W*=60}return E};
KW$=function(F,W,E,h){F=Math.max(E,F);W=Math.min(W,h-E);F+W>h?(E=h,F=E-W):E=F+W;return{start:F,end:E}};
F5P=function(F,W,E,h,d,V){F<E?F=E:F+d>h&&(F=h-d);W>h&&(W=h);W=Math.min(F+V,Math.max(F+d,W));return{start:F,end:W}};
W5u=function(F,W,E,h,d,V){W>h?W=h:W-d<E&&(W=E+d);F<E&&(F=E);F=Math.min(W-d,Math.max(W-V,F));return{start:F,end:W}};
EGO=function(F){return _.c("web_transcript_cue_id_killswitch")?String(F):"ytd-transcript-renderer_"+F};
hjN=function(F){return _.c("web_transcript_cue_id_killswitch")?!0:F.startsWith("ytd-transcript-renderer")};
dtu=function(F){var W=_.WS(),E;if(E=_.ju("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var h;E=(h=E())==null?void 0:h.layoutId}else E=null;$l(W,E,F)};
NB6=function(F){F.style.height="auto";F.style.height=Math.min(F.scrollHeight||20,80)+"px"};
VAg=function(F,W){return{listMutationCommand:{operations:{operations:[{insertItemSectionContent:{contents:[{chatUserTurnViewModel:{text:W}}],insertByPositionInSection:{sectionTargetId:F,position:"INSERTION_POSITION_LAST"}}}]}}}};
Ut6=function(F){var W=_.WS(),E;E=(E=_.ju("yt.www.ads.eventcache.getLastCompanionData"))?(E=E())&&E.layoutId:null;$l(W,E,F)};
Rj$=function(F){var W=_.WS(),E;E=(E=_.ju("yt.www.ads.eventcache.getLastCompanionData"))?(E=E())&&E.layoutId:null;$l(W,E,F)};
ejq=function(F,W){W=W===void 0?!1:W;if(F.simpleText)F=[{text:F.simpleText}];else{var E;F=((E=F.runs)!=null?E:[]).map(function(h){return Object.assign({},h)})}if(W)for(W=_.U(F),E=W.next();!E.done;E=W.next())E.value.bold=!0;
return F};
MA6=function(F){var W=F.startEndTimeTemplate,E=F.startTimeUtcMillis;F=F.endTimeUtcMillis;if(W&&E&&F)return _.Gr(_.jfq(_.Yr(W),Number(E),Number(F)))};
gGw=function(F,W){var E,h,d=F==null?void 0:(E=F.viewCount)==null?void 0:(h=E.videoViewCountRenderer)==null?void 0:h.shortViewCount;if(!W&&d)return d;var V,R;return F==null?void 0:(V=F.viewCount)==null?void 0:(R=V.videoViewCountRenderer)==null?void 0:R.viewCount};
Qp$=function(F,W){var E=F==null?void 0:F.relativeDateText;return!W&&E?[E,!0]:[F==null?void 0:F.dateText,!1]};
zju=function(F,W,E,h,d){h=h===void 0?!0:h;d=d===void 0?"":d;var V=gGw(F,W),R=_.U(Qp$(F,W)),M=R.next().value;R=R.next().value;W=W?F==null?void 0:F.sponsorsOnlyFirstTimeLongText:F==null?void 0:F.sponsorsOnlyFirstTimeShortText;var g=[];E&&V&&g.push(V);!E&&R||!M||g.push(M);F=[].concat(_.x9(g),[W,F==null?void 0:F.stationName,F==null?void 0:F.rating,F?MA6(F):void 0,F==null?void 0:F.upNextProgramText,F==null?void 0:F.superTitleLink]).filter(function(t){return!!t});
E={runs:[]};for(V=0;V<F.length;V++)E.runs.push.apply(E.runs,_.x9(ejq(F[V],h))),V<F.length-1&&E.runs.push({text:" "+d+" ",bold:h});return E};
tAO=function(F){if(F)return{runs:[{text:F,bold:!0}]}};
CNK=function(F){var W,E,h,d;if(F=F==null?void 0:(W=F.contents)==null?void 0:(E=W.twoColumnWatchNextResults)==null?void 0:(h=E.results)==null?void 0:(d=h.results)==null?void 0:d.contents){var V,R;return(R=(V=F.find(function(M){return!!M.videoPrimaryInfoRenderer}))==null?void 0:V.videoPrimaryInfoRenderer)==null?void 0:R.updatedMetadataEndpoint}};
BBN=function(F,W){var E;return(E=F.sourceConfigs)==null?void 0:E.find(function(h){return h.videoId===W})};
Xa=function(F){return F==="End of video"||F==="End of playlist"};
vG$=function(F){var W,E,h,d;return(W=F.getWatchNextResponse())==null?void 0:(E=W.contents)==null?void 0:(h=E.twoColumnWatchNextResults)==null?void 0:(d=h.playlist)==null?void 0:d.playlist};
ItF=function(F){var W,E,h,d,V,R;return(W=vG$(F))==null?void 0:(E=W.playlistButtons)==null?void 0:(h=E.menuRenderer)==null?void 0:(d=h.topLevelButtons)==null?void 0:(V=d[0])==null?void 0:(R=V.playlistLoopButtonRenderer)==null?void 0:R.playlistLoopStateEntityKey};
c96=function(F){var W=_.WZ().resolve(_.yH),E;return(W=(E=_.D(W.getAutoplayEndpoint(),_.GM))==null?void 0:E.playlistId)&&W===F};
kV6=function(F,W,E,h,d){function V(){_.P0.cancelJob(H_);var R=DtO(W,E/F.getPlaybackRate()),M=R.hours,g=R.minutes;R=(R.seconds*1E3||6E4)/F.getPlaybackRate();F.setVideoTimeLeft(xt6(M,g));h&&F.getPlayerState()!==0&&F.setSleepTimerTimeLeft(xt6(M,g,!0));(M>0||g>0)&&!d&&(H_=_.qY(_.P0,V,R))}
_.P0.cancelJob(H_);H_=_.qY(_.P0,V)};
A9g=function(F,W,E){function h(){_.P0.cancelJob(P_);var d=DtO(W,E),V=d.hours;d=d.minutes;var R=6E4/F.getPlaybackRate();if(V>0||d>0)F.setSleepTimerTimeLeft(xt6(V,d,!0)),P_=_.qY(_.P0,h,R)}
_.P0.cancelJob(P_);P_=_.qY(_.P0,h)};
sp$=function(F,W){var E=F.getVolume()/(W/500),h=function(d){_.P0.cancelJob(J2);var V=Math.floor(d-E);F.setVolume(V,!1);V>0&&(J2=_.qY(_.P0,function(){h(V)},500))};
_.P0.cancelJob(J2);J2=_.qY(_.P0,function(){h(F.getVolume())})};
L5g=function(F,W){_.P0.cancelJob(J2);W&&F.syncVolume()};
ql6=function(){var F={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.CY("SLEEP_TIMER_DISRUPTED")}}}}};_.WZ().resolve(_.EJ).resolveCommand(F)};
$t6=function(F){return(F.getDuration()-F.getProgressState().current)*1E3};
DtO=function(F,W){F=F+W-(0,_.KU)();if(F<=0)return{hours:0,minutes:0,seconds:0};var E=new ZlP(0,0,0,0,0,0,F);F=E.getHours();W=E.getMinutes();E=E.getSeconds();E!==0&&W++;W!==0&&W%60===0&&(F++,W=0);return{hours:F,minutes:W,seconds:E}};
xt6=function(F,W,E){return F>0&&W>0?E?_.CY("TIME_LEFT_HOURS_MINUTES",{hours:F.toString(),minutes:W.toString()}):_.CY("TIME_HOURS_MINUTES",{hours:F.toString(),minutes:W.toString()}):F>0?E?_.B5("TIME_LEFT_HOURS",F):_.B5("TIME_HOURS",F):E?_.CY("TIME_LEFT_MINUTES",{minutes:W.toString()}):_.CY("TIME_MINUTES",{minutes:W.toString()})};
Xlq=function(F,W){if(F.timelyActions)return F.timelyActions.find(function(E){var h;return((h=_.D(E,aE))==null?void 0:h.cueRangeId)===W})};
HlO=function(F){var W=["expflag","debug_forced_internalcountrycode","internalcountrycode"];_.tJ(F);F.keyMap_.forEach(function(E,h){_.on(W,h)||this.remove(h)},F)};
PN$=function(F,W){F.reloadContinuationItemsCommandMatcher=W};
_.fw=function(F,W){F.insertBefore(W,F.childNodes[0]||null)};
J98=function(F){if(F>=48&&F<=57||F>=96&&F<=106||F>=65&&F<=90||_.BY&&F==0)return!0;switch(F){case 32:case 43:case 63:case 64:case 107:case 109:case 110:case 111:case 186:case 59:case 189:case 187:case 61:case 188:case 190:case 191:case 192:case 222:case 219:case 220:case 221:case 163:case 58:return!0;case 173:case 171:return _.Cc;default:return!1}};
atN=function(F){if(F.altKey&&!F.ctrlKey||F.metaKey||F.keyCode>=112&&F.keyCode<=123)return!1;if(J98(F.keyCode))return!0;switch(F.keyCode){case 18:case 20:case 93:case 17:case 40:case 35:case 27:case 36:case 45:case 37:case 224:case 91:case 144:case 12:case 34:case 33:case 19:case 255:case 44:case 39:case 145:case 16:case 38:case 252:case 224:case 92:return!1;case 0:return!_.Cc;default:return F.keyCode<166||F.keyCode>183}};
ZlP=function(F,W,E,h,d,V,R){this.date=typeof F==="number"?new Date(F,W||0,E||1,h||0,d||0,V||0,R||0):new Date(F&&F.getTime?F.getTime():_.e2())};
_.Ma(ZlP,_.Z5);_.N=ZlP.prototype;_.N.getHours=function(){return this.date.getHours()};
_.N.getMinutes=function(){return this.date.getMinutes()};
_.N.getSeconds=function(){return this.date.getSeconds()};
_.N.getMilliseconds=function(){return this.date.getMilliseconds()};
_.N.getUTCDay=function(){return this.date.getUTCDay()};
_.N.getUTCHours=function(){return this.date.getUTCHours()};
_.N.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.N.getUTCSeconds=function(){return this.date.getUTCSeconds()};
_.N.getUTCMilliseconds=function(){return this.date.getUTCMilliseconds()};
_.N.setHours=function(F){this.date.setHours(F)};
_.N.setMinutes=function(F){this.date.setMinutes(F)};
_.N.setSeconds=function(F){this.date.setSeconds(F)};
_.N.setMilliseconds=function(F){this.date.setMilliseconds(F)};
_.N.setUTCHours=function(F){this.date.setUTCHours(F)};
_.N.setUTCMinutes=function(F){this.date.setUTCMinutes(F)};
_.N.setUTCSeconds=function(F){this.date.setUTCSeconds(F)};
_.N.setUTCMilliseconds=function(F){this.date.setUTCMilliseconds(F)};
_.N.add=function(F){_.Z5.prototype.add.call(this,F);F.hours&&this.setUTCHours(this.date.getUTCHours()+F.hours);F.minutes&&this.setUTCMinutes(this.date.getUTCMinutes()+F.minutes);F.seconds&&this.setUTCSeconds(this.date.getUTCSeconds()+F.seconds)};
_.N.JSC$9138_toIsoString=function(F){var W=_.Z5.prototype.JSC$9138_toIsoString.call(this,F);return F?W+"T"+_.RY(this.getHours(),2)+":"+_.RY(this.getMinutes(),2)+":"+_.RY(this.getSeconds(),2):W+"T"+_.RY(this.getHours(),2)+_.RY(this.getMinutes(),2)+_.RY(this.getSeconds(),2)};
_.N.equals=function(F){return this.getTime()==F.getTime()};
_.N.toString=function(){return this.JSC$9138_toIsoString()};
_.N.clone=function(){var F=new ZlP(this.date);F.firstDayOfWeek_=this.firstDayOfWeek_;F.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return F};
_.ftT=function(F){return _.dR({type:"SET_IS_WATCH_NARROW_WIDTH",payload:{isWatchNarrowWidth:F}})};
Ol6=new _.S("imageTileRenderer");var blT=new _.S("adGridCardCollectionViewModel");var lt8=new _.S("carouselTitleViewModel");var nGg=new _.S("ctaCarouselItemViewModel");var y9N=new _.S("textFieldViewModel");_.jpP=new _.S("engagementPanelHeaderShowNavigationButtonCommand");var ilP=new _.S("hideEngagementPanelScrimAction");var r9g=new _.S("setActivePanelItemAction");var TBK=new _.S("showEngagementPanelScrimAction");var oGq=new _.S("updateEngagementPanelAction");var GVF=new _.S("updateSearchInVideoResultsAction");var Ylq=new _.S("transcriptCueGroupRenderer");var wl6=new _.S("transcriptCueRenderer");var uN8=new _.S("transcriptFooterRenderer");var Sl6=new _.S("engagementPanelAdSubtitleRenderer");var plF=new _.S("videoDescriptionFantasySectionViewModel");var mtK=new _.S("deleteClipEngagementPanelCommand");var K5$=new _.S("loopCommand");var Fu6=new _.S("changeCreatorEndscreenVisibilityCommand");var WuT=new _.S("liveChatCallForQuestionsRenderer");var EeP=new _.S("updateTimedMarkersSyncObserverCommand");var aE=new _.S("timelyActionViewModel");var hkK=new _.S("timelyActionsOverlayViewModel");var dsx=new _.S("repeatChapterCommand");var Nyu=new _.S("watchPlayerOverflowMenuCommand");var VsO=new _.S("compositeVideoOverlayRenderer");var Usg=new _.S("sortFilterSubMenuRenderer");var RkT=new _.S("switchListItemViewModel");var ekN=new _.S("inputComposerViewModel");var MsO=new _.S("transcriptEditSegmentCommand");var ge6=new _.S("transcriptUpdateSegmentTextCommand");var QBw=new _.S("transcriptSearchBoxRenderer");var zk$=new _.S("transcriptSegmentListRenderer");var ts6=new _.S("transcriptSegmentRenderer");_.Cq6=new _.S("updateDateTextAction");var ByP=new _.S("updateTitleAction");var veF=new _.S("updateViewershipAction");var IKK=new _.S("carouselLockupRenderer");var coT=new _.S("expandableVideoDescriptionBodyRenderer");var Dsx=new _.S("videoDescriptionYouchatSectionViewModel");_.Or=_.dV("kevlar_watch_page_horizontal_margin",24);_.xs6=_.dV("kevlar_watch_page_columns_top_padding",24);_.kbN=426+_.Or*2;_.b9=_.dV("kevlar_watch_two_column_width_threshold",1E3);_.AoN=_.Or*2;_.sBK=_.dV("kevlar_watch_secondary_width",402);_.Luu=_.dV("kevlar_watch_max_player_width",1280);_.q3T=_.dV("kevlar_watch_flexy_metadata_height",136);_.$sO=_.AoN+310+_.Or;_.Z4K=_.AoN+360+_.Or;var XnO={PAUSE_CHAT:18};var H4N;var Pq6;var l9=function(){return _.n.apply(this,arguments)||this};
_.k(l9,_.n);l9.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
l9.prototype.onEnabledChange=function(){if(this.data&&this.data.button){var F=_.D(this.data.button,_.fx);F&&(F.state=this.enabled?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",this.data=Object.assign({},this.data))}};
_.Sn.Object.defineProperties(l9,{template:{configurable:!0,enumerable:!0,get:function(){if(Pq6===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-disableable-button-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_disableable_button_view_model.yt.disableable.button.view.model.css.js--\x3e<div id="button" class="style-scope yt-disableable-button-view-model"></div>');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);var W=F.content,E=W.insertBefore;H4N===void 0&&(H4N=document.createElement("template"));var h=H4N;E.call(W,h.content.cloneNode(!0),F.content.firstChild);Pq6=F}F=Pq6;return F}}});
_.T([_.J(_.av),_.Y("design:type",Object)],l9.prototype,"ytLiveChatReduxBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],l9.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O({selectorArgs:["data.enabledEntityKey"],selector:lwT,observer:"onEnabledChange"}),_.Y("design:type",Boolean)],l9.prototype,"enabled",void 0);_.T([_.O(),_.Y("design:type",Object)],l9.prototype,"data",void 0);l9=_.T([_.$3({is:"yt-disableable-button-view-model",noInjection:!0})],l9);var Jou;var aK$;var fKF=["transVert01","transVert02","transVert03"],O4O="transHorizLeft01 transHorizRight01 transHorizLeft02 transHorizRight02 transHorizLeft03 transHorizRight03 transHorizLeft04 transHorizRight04".split(" "),nw=function(){var F=_.n.apply(this,arguments)||this;F.emojiManager=_.Oz;F.isDarkTheme=document.documentElement.hasAttribute("dark");F.actionMap={"yt-create-user-reaction-animation":"createUserReactionAnimation"};F.reactionBuckets=[];F.noEmojiIdentifier="NO_EMOJI";return F};
_.k(nw,_.n);_.N=nw.prototype;_.N.isActiveChanged=function(){this.isActive||this.cleanupFountain()};
_.N.desktopFountainEmojiSizePxChanged=function(){_.V9(this.hostElement,{"--emoji-size":this.desktopFountainEmojiSizePx+"px"})};
_.N.createUserReactionAnimation=function(F){this.createEmojiAnimation(F,!0)};
_.N.cleanupFountain=function(){clearTimeout(this.emojiBucketTimerId);clearTimeout(this.emojiAnimationTimerId);var F;((F=this.data)==null?0:F.emojiFountainDataEntityKey)&&this.ytLiveChatReduxBehavior.dispatch(_.AG("emojiFountainDataEntity",this.data.emojiFountainDataEntityKey,{}));[].concat(_.x9(this.emojiContainer.children)).forEach(function(W){W.remove()})};
_.N.detached=function(){this.cleanupFountain()};
_.N.onEmojiFountainDataEntityUpdate=function(){if(this.isActive){clearTimeout(this.emojiBucketTimerId);var F;this.reactionBuckets=_.xd.unsafeClone((F=this.emojiFountainData)==null?void 0:F.reactionBuckets)||[];this.processEmojiBucket(0)}};
_.N.processEmojiBucket=function(F){var W=this;if(this.reactionBuckets&&!(F>=this.reactionBuckets.length)){clearTimeout(this.emojiAnimationTimerId);var E=this.reactionBuckets[F];this.generateEmojiAnimations(E);if(F<this.reactionBuckets.length-1){var h;if(E==null?0:(h=E.duration)==null?0:h.seconds)this.emojiBucketTimerId=setTimeout(function(){W.processEmojiBucket(F+1)},Number(E.duration.seconds)*1E3)}}};
_.N.generateEmojiAnimations=function(F){var W=this,E=this.getRandomEmojiIdFromBucketWithOverride(F);if(E&&E!==this.noEmojiIdentifier){var h=0;F.targetEps?(h=this.linearInterpolateBounded(1,20,100,12,F.emojiSizeIndex||0),this.createEmojiAnimation(E,!1,F.emojiAnimationMs,h),h=this.getEmojiDelayMsFromTargetEps(F.targetEps)):(this.createEmojiAnimation(E),h=this.getEmojiDelayMsFromDistribution(F.intensityScore));this.emojiAnimationTimerId=setTimeout(function(){W.generateEmojiAnimations(F)},h)}};
_.N.getRandomEmojiIdFromBucketWithOverride=function(F){if(!(F&&F.reactionsData&&F.reactionsData.length&&F.totalReactions))return this.noEmojiIdentifier;for(var W=F.totalReactions,E=1,h=_.U(F.reactionsData),d=h.next();!d.done;d=h.next())d=d.value,(d.reactionWeightOverride||d.reactionWeightOverride===0)&&d.reactionCount&&(W-=d.reactionCount,E-=d.reactionWeightOverride);h=!0;E<0&&(h=!1,W=F.totalReactions,E=1);if(h&&E>0&&W===0)if(E===1){d=0;for(var V=_.U(F.reactionsData),R=V.next();!R.done;R=V.next())R=
R.value,R.reactionCount&&R.reactionCount>0&&d++;d=1/d;V=_.U(F.reactionsData);for(R=V.next();!R.done;R=V.next())R.value.reactionWeightOverride=d}else for(d=1/(1-E),V=_.U(F.reactionsData),R=V.next();!R.done;R=V.next())R=R.value,R.reactionWeightOverride&&(R.reactionWeightOverride*=d);d=Math.random();V=0;R=_.U(F.reactionsData);for(var M=R.next();!M.done;M=R.next())if(M=M.value,M.reactionCount&&(V=(M.reactionWeightOverride||M.reactionWeightOverride===0)&&h?V+M.reactionWeightOverride:V+E*M.reactionCount/
W,V>d&&(M.reactionCount--,F.totalReactions--,M=this.reactionItemToEmojiString(M),M!==this.noEmojiIdentifier)))return M;return this.noEmojiIdentifier};
_.N.reactionItemToEmojiString=function(F){if(F.unicodeEmojiId)return F.unicodeEmojiId;if(F.emoteId)return F.emoteId;if(F.videoReactionType)switch(F.videoReactionType){case "VIDEO_REACTION_TYPE_LIKE":return"yt-icons:like-filled"}return this.noEmojiIdentifier};
_.N.createEmojiAnimation=function(F,W,E,h){W=W===void 0?!1:W;this.lastEmojiRequestedForTesting=F;var d=F.startsWith("yt-icons:"),V=_.a9(this.emojiManager,F);if(V||d){var R=document.createElement("emoji");R.classList.add("yt-emoji-fountain-view-model");R.classList.add(fKF[Math.floor(Math.random()*fKF.length)]);var M=document.createElement("div");M.classList.add("yt-emoji-fountain-view-model");M.classList.add("horizontal-container");M.classList.add(O4O[Math.floor(Math.random()*O4O.length)]);W?(E=document.createElement("div"),
E.classList.add("user-reaction-bubble"),E.classList.add("yt-emoji-fountain-view-model"),M.appendChild(E)):(E&&(R.style.animationDuration=E+"ms",M.style.animationDuration=E+"ms"),h&&(R.style.width=h+"px",R.style.height=h+"px"));d?(d=document.createElement("yt-icon"),d.polymerController.icon=F,h&&(d.style.width=h+"px",d.style.height=h+"px"),F=d):F=this.emojiManager.createEmoji(V,!1);F.classList.add("yt-emoji-fountain-view-model");M.appendChild(F);R.appendChild(M);this.emojiContainer.appendChild(R);
R.addEventListener("animationend",function(){R.remove()});
var g,t;if((g=this.data)==null?0:(t=g.loggingDirectives)==null?0:t.trackingParams)W=W?_.LQ(183501):_.LQ(183500),nnu(this.data.loggingDirectives.trackingParams,W),_.nsR(W);setTimeout(function(){R&&R.remove()},2E3)}};
_.N.getEmojiDelayMsFromDistribution=function(F){return Math.random()*(F||1)*1E3};
_.N.getEmojiDelayMsFromTargetEps=function(F){return Math.random()*2*(1/F)*1E3};
_.N.linearInterpolateBounded=function(F,W,E,h,d){d=Math.min(Math.max(d,F),E);return(W*(E-d)+h*(d-F))/(E-F)};
nw.prototype.onEmojiFountainDataEntityUpdate=nw.prototype.onEmojiFountainDataEntityUpdate;nw.prototype.desktopFountainEmojiSizePxChanged=nw.prototype.desktopFountainEmojiSizePxChanged;nw.prototype.isActiveChanged=nw.prototype.isActiveChanged;_.T([_.O(),_.Y("design:type",_.Jq)],nw.prototype,"emojiManager",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],nw.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.av),_.Y("design:type",Object)],nw.prototype,"ytLiveChatReduxBehavior",void 0);
_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],nw.prototype,"ytActionHandlerBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],nw.prototype,"data",void 0);_.T([_.O({selectorArgs:["data.emojiFountainDataEntityKey"],selector:function(F,W){return _.Mn(F.entities,"emojiFountainDataEntity",W)}}),
_.Y("design:type",Object)],nw.prototype,"emojiFountainData",void 0);_.T([_.O(),_.Y("design:type",Boolean)],nw.prototype,"isActive",void 0);_.T([_.ea("isActive"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],nw.prototype,"isActiveChanged",null);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],nw.prototype,"isDarkTheme",void 0);_.T([_.O(),_.Y("design:type",String)],nw.prototype,"lastEmojiRequestedForTesting",void 0);
_.T([_.O({value:function(){return _.dV("desktop_fountain_emoji_size_px",20)}}),
_.Y("design:type",Number)],nw.prototype,"desktopFountainEmojiSizePx",void 0);_.T([_.ea("desktopFountainEmojiSizePx"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],nw.prototype,"desktopFountainEmojiSizePxChanged",null);_.T([_.gQ("#emoji-container"),_.Y("design:type",HTMLElement)],nw.prototype,"emojiContainer",void 0);
_.T([_.ea("emojiFountainData"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],nw.prototype,"onEmojiFountainDataEntityUpdate",null);nw=_.T([_.$3({disableElementRegistration:!0,is:"yt-emoji-fountain-view-model",noInjection:!0})],nw);
_.r(nw,"yt-emoji-fountain-view-model",function(){if(aK$===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-emoji-fountain-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_emoji_fountain_view_model.yt.emoji.fountain.view.model.css.js--\x3e<div id="fountain-bounds" class="style-scope yt-emoji-fountain-view-model">\n  <div id="emoji-container" class="style-scope yt-emoji-fountain-view-model"></div>\n</div>');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;Jou===void 0&&(Jou=document.createElement("template"));var h=Jou;E.call(W,h.content.cloneNode(!0),F.content.firstChild);aK$=F}F=aK$;return F},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var b4N;var lKw;var y5=function(){return _.n.apply(this,arguments)||this};
_.k(y5,_.n);y5.prototype.onChoiceChanged=function(){this.data&&_.V9(this.hostElement,{"--yt-live-chat-poll-choice-vote-bar-transform":"translateX("+(100*(this.data.voteRatio||0)-100+"%)")})};
y5.prototype.onChoiceChanged=y5.prototype.onChoiceChanged;_.T([_.O(),_.Y("design:type",Object)],y5.prototype,"data",void 0);_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],y5.prototype,"onChoiceChanged",null);y5=_.T([_.y({disableElementRegistration:!0,is:"yt-live-chat-banner-poll-choice"})],y5);
_.r(y5,"yt-live-chat-banner-poll-choice",function(){if(lKw===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-banner-poll-choice--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_banner_poll_choice.yt.live.chat.banner.poll.choice.css.js--\x3e<div id="content" class="style-scope yt-live-chat-banner-poll-choice">\n  <div id="percentage-container" class="style-scope yt-live-chat-banner-poll-choice">\n    <div id="vote-percentage-bar" class="style-scope yt-live-chat-banner-poll-choice"></div>\n  </div>\n  <div id="text-container" class="style-scope yt-live-chat-banner-poll-choice">\n    <yt-formatted-string id="label-text" no-styles="" text="[[data.text]]" class="style-scope yt-live-chat-banner-poll-choice"></yt-formatted-string>\n    <yt-formatted-string id="vote-percentage-text" no-styles="" text="[[data.votePercentage]]" class="style-scope yt-live-chat-banner-poll-choice"></yt-formatted-string>\n  </div>\n</div>\n\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;b4N===void 0&&(b4N=document.createElement("template"));var h=b4N;E.call(W,h.content.cloneNode(!0),F.content.firstChild);lKw=F}F=lKw;return F},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var neg;var yoN;var jT=function(){var F=_.n.apply(this,arguments)||this;F.modern=_.c("web_button_rework_with_live");F.small=!1;return F};
_.k(jT,_.n);jT.prototype.computeIsSmall=function(){var F;return((F=this.buttonOverrides)==null?void 0:F.size)==="S"};
jT.prototype.computeId=function(){return this.data&&this.data.targetId};
_.T([_.J(_.fy.YtLiveChatTooltipTargetingBehavior),_.Y("design:type",Object)],jT.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.T([_.O({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.Y("design:type",String)],jT.prototype,"id",void 0);_.T([_.O(),_.Y("design:type",Object)],jT.prototype,"buttonOverrides",void 0);_.T([_.O(),_.Y("design:type",Object)],jT.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],jT.prototype,"modern",void 0);
_.T([_.O({reflectToAttribute:!0,computed:"computeIsSmall(buttonOverrides)"}),_.Y("design:type",Object)],jT.prototype,"small",void 0);jT=_.T([_.y({disableElementRegistration:!0,is:"yt-live-chat-button"})],jT);
_.r(jT,"yt-live-chat-button",function(){if(yoN===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-button--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_button.yt.live.chat.button.css.js--\x3e<yt-button-renderer data="[[data]]" overrides="[[buttonOverrides]]" class="style-scope yt-live-chat-button"></yt-button-renderer>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;neg===void 0&&(neg=document.createElement("template"));var h=neg;E.call(W,h.content.cloneNode(!0),F.content.firstChild);yoN=F}F=yoN;return F},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var jBP;var i4$;var i9=function(){var F=_.n.apply(this,arguments)||this;F.inCollapsedBanner=!1;F.buttonOverrides={size:"S",style:"mono-inverse",iconPosition:"icon-only"};F.questionButtonOverrides={style:"mono",type:"filled"};return F};
_.k(i9,_.n);_.N=i9.prototype;_.N.configureRendererStamper=function(){return{"data.overflowMenuButton":{id:"menu",events:!0,mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{id:"menu-button"},properties:{overrides:"[[buttonOverrides]]"}}}},"data.askQuestionButton":{id:"ask-question",events:!0,mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{id:"ask-question-button"},properties:{overrides:"[[questionButtonOverrides]]"}}}}}};
_.N.onContextMenuButtonClick=function(F){this.ytLiveChatItemBehavior.showContextMenu(F)};
_.N.onYtRendererstamperFinished=function(){this.menuButton=_.Z(this.hostElement).querySelector("#menu-button")};
_.N.dataChanged=function(){var F,W;if((W=_.D((F=this.data)==null?void 0:F.overflowMenuButton,_.jt))==null?0:W.command)this.data.contextMenuEndpoint=_.D(this.data.overflowMenuButton,_.jt).command};
_.N.onButtonClick=function(){var F,W=_.D((F=this.data)==null?void 0:F.askQuestionButton,_.jt);if(W){if(W.trackingParams&&(F=_.ve(W.trackingParams))){var E=_.JR();E&&_.oj(E,F)}_.hF(this.hostElement,"innertube-command",W.command)}};
i9.prototype.onYtRendererstamperFinished=i9.prototype.onYtRendererstamperFinished;_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],i9.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.av),_.Y("design:type",Object)],i9.prototype,"ytLiveChatReduxBehavior",void 0);_.T([_.J(_.bD.YtLiveChatItemBehavior),_.Y("design:type",_.lD)],i9.prototype,"ytLiveChatItemBehavior",void 0);_.T([_.O({observer:"dataChanged"}),_.Y("design:type",Object)],i9.prototype,"data",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],i9.prototype,"inCollapsedBanner",void 0);_.T([_.O(),_.Y("design:type",Object)],i9.prototype,"buttonOverrides",void 0);_.T([_.O(),_.Y("design:type",Object)],i9.prototype,"questionButtonOverrides",void 0);_.T([_.R4("yt-rendererstamper-finished"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],i9.prototype,"onYtRendererstamperFinished",null);
i9=_.T([_.y({disableElementRegistration:!0,is:"yt-live-chat-call-for-questions-renderer"})],i9);
_.r(i9,"yt-live-chat-call-for-questions-renderer",function(){if(i4$===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-call-for-questions-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_call_for_questions_renderer.yt.live.chat.call.for.questions.renderer.css.js--\x3e<div id="content-top" class="style-scope yt-live-chat-call-for-questions-renderer">\n  <yt-img-shadow id="creator-avatar" height="24" hidden$="[[!data.creatorAvatar]]" thumbnail="[[data.creatorAvatar]]" width="24" class="style-scope yt-live-chat-call-for-questions-renderer">\n  </yt-img-shadow>\n\n  <div id="metadata-text" class="style-scope yt-live-chat-call-for-questions-renderer">\n    <yt-formatted-string id="author-name" hidden$="[[inCollapsedBanner]]" text="[[data.creatorAuthorName]]" class="style-scope yt-live-chat-call-for-questions-renderer">\n    </yt-formatted-string>\n\n    <yt-formatted-string id="separator-collapsed" hidden$="[[inCollapsedBanner]]" text="[[data.contentSeparator]]" class="style-scope yt-live-chat-call-for-questions-renderer">\n    </yt-formatted-string>\n\n    <yt-formatted-string id="feature-label" text="[[data.featureLabel]]" class="style-scope yt-live-chat-call-for-questions-renderer">\n    </yt-formatted-string>\n\n    <yt-formatted-string id="separator-extended" hidden$="[[!inCollapsedBanner]]" text="[[data.contentSeparator]]" class="style-scope yt-live-chat-call-for-questions-renderer">\n    </yt-formatted-string>\n\n    <yt-formatted-string id="collapsed-call-for-questions-text" hidden$="[[!inCollapsedBanner]]" text="[[data.questionMessage]]" class="style-scope yt-live-chat-call-for-questions-renderer">\n    </yt-formatted-string>\n  </div>\n\n  <div id="menu" on-click="onContextMenuButtonClick" class="style-scope yt-live-chat-call-for-questions-renderer"></div>\n</div>\n\n<div id="main-content" hidden$="[[inCollapsedBanner]]" class="style-scope yt-live-chat-call-for-questions-renderer">\n  <yt-formatted-string id="call-for-questions-text" text="[[data.questionMessage]]" class="style-scope yt-live-chat-call-for-questions-renderer">\n  </yt-formatted-string>\n\n  <div id="ask-question" on-click="onButtonClick" hidden$="[[inCollapsedBanner]]" class="style-scope yt-live-chat-call-for-questions-renderer"></div>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;jBP===void 0&&(jBP=document.createElement("template"));var h=jBP;E.call(W,h.content.cloneNode(!0),F.content.firstChild);i4$=F}F=i4$;return F},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var row={};row.YtLiveChatDialogBehavior={properties:{hidden:{type:Boolean,reflectToAttribute:!0,observer:"hiddenChanged_"}},observers:["isAttachedChanged_(isAttached)"],created:function(){this.restoreFocusNode_=null},
attached:function(){document.addEventListener("focus",this.onFocus_.bind(this),!0)},
detached:function(){this.restoreFocusNode_=null;document.removeEventListener("focus",this.onFocus_.bind(this),!0)},
focusChild_:function(){var F=this;window.requestAnimationFrame(function(){F.restoreFocusNode_||(F.restoreFocusNode_=document.activeElement);var W=_.L9_(F.hostElement);W.length&&W[W.length-1].focus()})},
isAttachedChanged_:function(F,W){F?this.focusChild_():W&&this.restoreFocus_()},
hiddenChanged_:function(){this.hidden?this.restoreFocus_():this.focusChild_()},
restoreFocus_:function(){this.restoreFocusNode_&&(this.restoreFocusNode_.focus(),this.restoreFocusNode_=null)},
onFocus_:function(F){this.hidden||_.TB(F).indexOf(this.hostElement)!==-1||(F.stopPropagation(),this.focusChild_())}};var Tyq;var oeN;var rC=function(){return _.n.apply(this,arguments)||this};
_.k(rC,_.n);rC.prototype.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm_button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.cancelButton":{id:"cancel_button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
rC.prototype.onClick=function(F){F.target!==this.confirmButton&&F.target!==this.cancelButton&&(this.hidden=!0)};
_.T([_.gQ("#confirm_button"),_.Y("design:type",Object)],rC.prototype,"confirmButton",void 0);_.T([_.gQ("#cancel_button"),_.Y("design:type",Object)],rC.prototype,"cancelButton",void 0);_.T([_.O(),_.Y("design:type",GbP)],rC.prototype,"data",void 0);_.T([_.O({value:!0,reflectToAttribute:!0}),_.Y("design:type",Boolean)],rC.prototype,"hidden",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],rC.prototype,"ytRendererstamperBehavior",void 0);
_.T([_.J(row.YtLiveChatDialogBehavior),_.Y("design:type",Object)],rC.prototype,"ytLiveChatDialogBehavior",void 0);rC=_.T([_.$3({disableElementRegistration:!0,is:"yt-live-chat-dialog-renderer",noInjection:!0})],rC);
var GbP=_.r(rC,"yt-live-chat-dialog-renderer",function(){if(oeN===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_dialog_renderer.yt.live.chat.dialog.renderer.css.js--\x3e<div id="inner" aria-describedby="live-chat-dialog-body" aria-labelledby="live-chat-dialog-title" role="dialog" class="style-scope yt-live-chat-dialog-renderer">\n  <yt-image id="image" alt="[[data.imageA11yLabel]]" data="[[data.image]]" height="200" preserve-height="" width="32" class="style-scope yt-live-chat-dialog-renderer">\n  </yt-image>\n  <yt-formatted-string id="live-chat-dialog-title" text="[[data.title]]" class="style-scope yt-live-chat-dialog-renderer"></yt-formatted-string>\n  <div id="live-chat-dialog-body" class="style-scope yt-live-chat-dialog-renderer">\n    \n    <template is="dom-repeat" items="[[data.dialogMessages]]" class="style-scope yt-live-chat-dialog-renderer">\n      <yt-formatted-string force-default-style="" split-lines="" text="[[item]]" class="style-scope yt-live-chat-dialog-renderer"></yt-formatted-string>\n    </template>\n  </div>\n  <div id="buttons" class="style-scope yt-live-chat-dialog-renderer">\n    <div id="cancel_button" on-click="onClick" class="style-scope yt-live-chat-dialog-renderer"></div>\n    <div id="confirm_button" on-click="onClick" class="style-scope yt-live-chat-dialog-renderer"></div>\n  </div>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;Tyq===void 0&&(Tyq=document.createElement("template"));var h=Tyq;E.call(W,h.content.cloneNode(!0),F.content.firstChild);oeN=F}F=oeN;return F},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var Y3O;var wnK,uqN=function(){if(wnK!==void 0)return wnK;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-engagement-panel-input-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_engagement_panel_input_renderer.yt.live.chat.engagement.panel.input.renderer.css.js--\x3e<div id="content" class="style-scope yt-live-chat-engagement-panel-input-renderer"></div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);var W=F.content,E=W.insertBefore;Y3O===void 0&&(Y3O=document.createElement("template"));var h=Y3O;E.call(W,h.content.cloneNode(!0),F.content.firstChild);return wnK=F};var S3u;var pnK;var Tq=function(){var F=_.n.apply(this,arguments)||this;F.tooltip=null;F.data=null;F.id="";F.active=!1;F.icon="";F.disabled=!1;F.showTooltip=!1;F.useToggledActiveState=!0;F.actionMap={"yt-live-chat-actions":"handleLiveChatActions"};return F};
_.k(Tq,_.n);_.N=Tq.prototype;
_.N.dataChanged=function(){var F;((F=this.data)==null?0:F.tooltip)?(this.tooltip||(this.tooltip=document.createElement("tp-yt-paper-tooltip"),this.tooltip.position="top",this.tooltip.offset=8,this.tooltip.fitToVisibleBounds=!0,this.tooltip.style.right="0",this.hostElement.appendChild(this.tooltip)),(0,_.N3)(this.tooltip).textContent=this.data.tooltip):this.tooltip&&(this.hostElement.removeChild(this.tooltip),this.tooltip=null);var W;if((W=this.data)==null?0:W.disabled)this.disabled=!0};
_.N.computeId=function(F){return F};
_.N.computeIcon=function(F,W){if(!F)return"";if(this.useToggledActiveState)return"yt-icons:"+F.toLowerCase();var E,h;return W&&((E=this.data)==null?0:(h=E.toggledIcon)==null?0:h.iconType)?"yt-icons:"+this.data.toggledIcon.iconType.toLowerCase():"yt-icons:"+F.toLowerCase()};
_.N.logPDGEntryPoint=function(){_.N5n(_.Mz("FLOW_EVENT_NAMESPACE_PDG_BUY_FLOW",1,{pdgBuyFlowContext:{entryPointClickedContext:{sharedPdgBuyFlowEntryPoint:"SHARED_PDG_BUY_FLOW_ENTRY_POINT_LIVE_CHAT_MONEY_BUTTON"}}}),"FLOW_TYPE_PDG_BUY_FLOW")};
_.N.immediatelyShowTooltip=function(){var F=_.Z(this.hostElement).querySelector("#tooltip");F.animationDelay=0;F.animationConfig={entry:[{name:"fade-in-animation",timing:{}}]};F.show()};
_.N.disabledChanged=function(){this.disabled?this.hostElement.setAttribute("aria-disabled",""):this.hostElement.removeAttribute("aria-disabled")};
_.N.onClick=function(F){var W;((W=this.data)==null?0:W.disabled)?this.showTooltip&&this.immediatelyShowTooltip():(this.active=!this.active,this.tooltip&&(this.tooltip.hide(),this.maybeUpdateTooltipText()),this.active&&this.data&&(this.ytRendererBehavior.logExplicitClick(this.data),this.id==="product-picker"&&(this.logPDGEntryPoint(),F.stopPropagation())),this.id!=="creator"&&this.id!=="product-picker"||this.removeBubble(),_.hF(this.hostElement,"yt-live-chat-icon-toggle-button-renderer-toggle",{targetId:this.id}))};
_.N.computeShowTooltip=function(F,W){return!!(F&&F.tooltip&&W)};
_.N.maybeUpdateTooltipText=function(){var F=this,W;if((W=this.data)==null?0:W.tooltip){var E=this.active&&this.data.activeTooltip?this.data.activeTooltip:this.data.tooltip;setTimeout(function(){(0,_.N3)(F.tooltip).textContent=E},250)}};
_.N.handleLiveChatActions=function(F){var W=this;F.length&&(this.id!=="creator"&&this.id!=="product-picker"||F.forEach(function(E){(E=W.get("addLiveChatTickerItemAction.item.liveChatTickerPaidMessageItemRenderer",E))&&E.durationSec===E.fullDurationSec&&W.startBubble(W.colorFromDecimal(E.startBackgroundColor))}))};
_.N.onAnimationEnd=function(){this.hostElement.removeAttribute("bubble")};
_.N.startBubble=function(F){_.V9(this.hostElement,{"--yt-live-chat-monetization-button-glow":F});this.hostElement.setAttribute("bubble","")};
_.N.removeBubble=function(){this.hostElement.removeAttribute("bubble")};
_.N.colorFromDecimal=function(F){typeof F==="string"&&(F=Number(F));return"rgba("+[F>>16&255,F>>8&255,F&255,(F>>24&255)/255].join()+")"};
Tq.prototype.onAnimationEnd=Tq.prototype.onAnimationEnd;Tq.prototype.disabledChanged=Tq.prototype.disabledChanged;Tq.prototype.dataChanged=Tq.prototype.dataChanged;_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],Tq.prototype,"ytActionHandlerBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Tq.prototype,"ytRendererBehavior",void 0);
_.T([_.J(_.fy.YtLiveChatTooltipTargetingBehavior),_.Y("design:type",Object)],Tq.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],Tq.prototype,"data",void 0);_.T([_.O({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.Y("design:type",Object)],Tq.prototype,"id",void 0);_.T([_.O({notify:!0,reflectToAttribute:!0}),_.Y("design:type",Object)],Tq.prototype,"active",void 0);
_.T([_.O({readOnly:!0,computed:"computeIcon(data.icon.iconType, active)"}),_.Y("design:type",Object)],Tq.prototype,"icon",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],Tq.prototype,"disabled",void 0);_.T([_.O({computed:"computeShowTooltip(data, disabled)"}),_.Y("design:type",Object)],Tq.prototype,"showTooltip",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],Tq.prototype,"useToggledActiveState",void 0);
_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Tq.prototype,"dataChanged",null);_.T([_.ea("disabled"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Tq.prototype,"disabledChanged",null);_.T([_.R4("animationend"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],Tq.prototype,"onAnimationEnd",null);
Tq=_.T([_.$3({disableElementRegistration:!0,is:"yt-live-chat-icon-toggle-button-renderer",noInjection:!0})],Tq);
_.r(Tq,"yt-live-chat-icon-toggle-button-renderer",function(){if(pnK===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-icon-toggle-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_icon_toggle_button_renderer.yt.live.chat.icon.toggle.button.renderer.css.js--\x3e<yt-icon-button id="button" disabled="[[disabled]]" label="[[data.accessibility.accessibilityData.label]]" on-click="onClick" class="style-scope yt-live-chat-icon-toggle-button-renderer">\n  <span id="bubble" class="style-scope yt-live-chat-icon-toggle-button-renderer"></span>\n  <div class="style-scope yt-live-chat-icon-toggle-button-renderer">\n    <yt-icon active="[[active]]" icon="[[icon]]" class="style-scope yt-live-chat-icon-toggle-button-renderer"></yt-icon>\n    <span hidden="[[!data.iconBadgeText]]" id="icon-badge-text" class="style-scope yt-live-chat-icon-toggle-button-renderer">[[data.iconBadgeText]]</span>\n  </div>\n</yt-icon-button>\n<template is="dom-if" if="[[showTooltip]]" class="style-scope yt-live-chat-icon-toggle-button-renderer">\n  <tp-yt-paper-tooltip id="tooltip" for="button" class="style-scope yt-live-chat-icon-toggle-button-renderer">[[data.tooltip]]</tp-yt-paper-tooltip>\n</template>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;S3u===void 0&&(S3u=document.createElement("template"));var h=S3u;E.call(W,h.content.cloneNode(!0),F.content.firstChild);pnK=F}F=pnK;return F},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var msT;var Kux;var oE=function(){return _.n.apply(this,arguments)||this};
_.k(oE,_.n);oE.prototype.configureRendererStamper=function(){return{"data.helpButton":{id:"help-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.closeButton":{id:"close-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.T([_.O(),_.Y("design:type",Object)],oE.prototype,"data",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],oE.prototype,"ytRendererstamperBehavior",void 0);oE=_.T([_.y({disableElementRegistration:!0,is:"yt-live-chat-message-input-prompt-header-renderer"})],oE);
_.r(oE,"yt-live-chat-message-input-prompt-header-renderer",function(){if(Kux===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-message-input-prompt-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_message_input_prompt_header_renderer.yt.live.chat.message.input.prompt.header.renderer.css.js--\x3e<div id="primary-content" class="style-scope yt-live-chat-message-input-prompt-header-renderer">\n  <div id="close-button" class="style-scope yt-live-chat-message-input-prompt-header-renderer"></div>\n  <yt-formatted-string id="label-text" text="[[data.labelText]]" class="style-scope yt-live-chat-message-input-prompt-header-renderer"></yt-formatted-string>\n  <div id="help-button" class="style-scope yt-live-chat-message-input-prompt-header-renderer"></div>\n</div>\n<div id="underline" class="style-scope yt-live-chat-message-input-prompt-header-renderer"></div>');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;msT===void 0&&(msT=document.createElement("template"));var h=msT;E.call(W,h.content.cloneNode(!0),F.content.firstChild);Kux=F}F=Kux;return F},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var FD8;var WDO;var EM6;var hq6;var dkN;var Nb8;var Gq=function(){return _.n.apply(this,arguments)||this};
_.k(Gq,_.n);_.T([_.O(),_.Y("design:type",Object)],Gq.prototype,"data",void 0);Gq=_.T([_.$3({disableElementRegistration:!0,is:"yt-live-chat-message-subtext-renderer",noInjection:!0})],Gq);
_.r(Gq,"yt-live-chat-message-subtext-renderer",function(){if(Nb8===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-message-subtext-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_message_subtext_renderer.yt.live.chat.message.subtext.renderer.css.js--\x3e<yt-formatted-string text="[[data.text]]" class="style-scope yt-live-chat-message-subtext-renderer"></yt-formatted-string>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;dkN===void 0&&(dkN=document.createElement("template"));var h=dkN;E.call(W,h.content.cloneNode(!0),F.content.firstChild);Nb8=F}F=Nb8;return F},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var Yl=function(){var F=_.n.apply(this,arguments)||this;F.subtextOnBottom=!1;F.buttonOverrides={style:"mono",type:"tonal"};return F};
_.k(Yl,_.n);Yl.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},"data.subtext":{id:"subtext",mapping:{messageSubtextRenderer:"yt-live-chat-message-subtext-renderer"}}}};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Yl.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],Yl.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],Yl.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],Yl.prototype,"subtextOnBottom",void 0);_.T([_.O(),_.Y("design:type",Object)],Yl.prototype,"buttonOverrides",void 0);
Yl=_.T([_.$3({disableElementRegistration:!0,is:"yt-live-chat-message-renderer",noInjection:!0})],Yl);
_.r(Yl,"yt-live-chat-message-renderer",function(){if(hq6===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_message_renderer.yt.live.chat.message.renderer.css.js--\x3e<yt-formatted-string id="text" text="[[data.text]]" class="style-scope yt-live-chat-message-renderer"></yt-formatted-string>\n<div id="subtext" class="style-scope yt-live-chat-message-renderer"></div>\n<div id="button" class="style-scope yt-live-chat-message-renderer"></div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;EM6===void 0&&(EM6=document.createElement("template"));var h=EM6;E.call(W,h.content.cloneNode(!0),F.content.firstChild);hq6=F}F=hq6;return F},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var VD6;var Ukw;var wC=function(){var F=_.n.apply(this,arguments)||this;F.isRemovable=!1;F.hasPrefilledText=!1;F.isInputDirty=!1;F.overCharacterLimit=!1;F.underCharacterLimit=!1;F.showErrorMessage=!1;return F};
_.k(wC,_.n);_.N=wC.prototype;_.N.computeId=function(){return this.data.id};
_.N.computeInputData=function(){return this.data.inputData};
_.N.computeHasPrefilledText=function(){return this.data.hasPrefilledText};
_.N.computeIsRemovable=function(){return!!this.data&&!!this.data.isRemovable};
_.N.computeShowErrorMessage=function(){return this.data&&this.data.charCountErrorText?this.overCharacterLimit||this.underCharacterLimit&&this.isInputDirty:!1};
_.N.getLiveChatRichMessageInput=function(){return _.Z(this.hostElement).querySelector("#input").liveChatRichMessageInput};
_.N.clearInput=function(){_.Z(this.hostElement).querySelector("#input").setLiveChatRichMessageInput(null)};
_.N.computeCharactersRemaining=function(){if(this.data&&this.data.maxCharacterLimit!==void 0&&this.characterCount!==void 0)return this.data.maxCharacterLimit-this.characterCount};
_.N.computeOverCharacterLimit=function(){return this.charactersRemaining!==void 0&&this.charactersRemaining<0};
_.N.computeUnderCharacterLimit=function(){return this.hasPrefilledText?!1:!!this.data&&this.characterCount!==void 0&&this.data.minCharacterLimit>this.characterCount};
_.N.handleTextInputCharCountChanged=function(F){F=F.detail&&F.detail.characterCount;F!==void 0&&(this.characterCount=F,F!==0&&(this.isInputDirty=!0))};
_.N.onInputFocusOut=function(){this.isInputDirty=!0};
_.N.onClickCloseButton=function(){_.hF(this.hostElement,"yt-live-chat-poll-editor-input-closed",{id:this.id})};
wC.prototype.handleTextInputCharCountChanged=wC.prototype.handleTextInputCharCountChanged;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],wC.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],wC.prototype,"data",void 0);_.T([_.O({computed:"computeId(data.id)"}),_.Y("design:type",String)],wC.prototype,"id",void 0);_.T([_.O({computed:"computeInputData(data.inputData)"}),_.Y("design:type",Object)],wC.prototype,"inputData",void 0);
_.T([_.O({reflectToAttribute:!0,computed:"computeIsRemovable(data.isRemovable)"}),_.Y("design:type",Object)],wC.prototype,"isRemovable",void 0);_.T([_.O({reflectToAttribute:!0,computed:"computeHasPrefilledText(data.hasPrefilledText)"}),_.Y("design:type",Object)],wC.prototype,"hasPrefilledText",void 0);_.T([_.O({computed:"computeCharactersRemaining(data.maxCharacterLimit, characterCount)"}),_.Y("design:type",Number)],wC.prototype,"charactersRemaining",void 0);
_.T([_.O(),_.Y("design:type",Number)],wC.prototype,"characterCount",void 0);_.T([_.O(),_.Y("design:type",Object)],wC.prototype,"isInputDirty",void 0);_.T([_.O({reflectToAttribute:!0,computed:"computeOverCharacterLimit(charactersRemaining)"}),_.Y("design:type",Object)],wC.prototype,"overCharacterLimit",void 0);_.T([_.O({computed:"computeUnderCharacterLimit(data, characterCount, hasPrefilledText)"}),_.Y("design:type",Object)],wC.prototype,"underCharacterLimit",void 0);
_.T([_.O({reflectToAttribute:!0,computed:"computeShowErrorMessage(data.charCountErrorText, overCharacterLimit, isInputDirty, characterCount)"}),_.Y("design:type",Object)],wC.prototype,"showErrorMessage",void 0);_.T([_.R4("yt-live-chat-text-input-field-renderer-character-count-changed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],wC.prototype,"handleTextInputCharCountChanged",null);
wC=_.T([_.$3({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-input",noInjection:!0})],wC);
_.r(wC,"yt-live-chat-poll-editor-input",function(){if(Ukw===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-poll-editor-input--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_poll_editor_input.yt.live.chat.poll.editor.input.css.js--\x3e<div id="input-container" class="style-scope yt-live-chat-poll-editor-input">\n  <yt-live-chat-text-input-field-renderer id="input" data="[[inputData]]" is-valid-with-no-input-text="[[hasPrefilledText]]" on-focusout="onInputFocusOut" class="style-scope yt-live-chat-poll-editor-input">\n  </yt-live-chat-text-input-field-renderer>\n  <div id="content-right" class="style-scope yt-live-chat-poll-editor-input">\n    <yt-icon-button id="close-button" aria-label$="[[getSimpleString(data.removeOptionAltText)]]" on-click="onClickCloseButton" class="style-scope yt-live-chat-poll-editor-input">\n      <yt-icon icon="yt-icons:close" class="style-scope yt-live-chat-poll-editor-input"></yt-icon>\n    </yt-icon-button>\n    <span id="char-count" aria-live="polite" aria-atomic="true" aria-label$="[[getSimpleString(data.charsRemainingAltLabel)]]" class="style-scope yt-live-chat-poll-editor-input">[[charactersRemaining]]</span>\n  </div>\n</div>\n<div id="error-message" role="alert" class="style-scope yt-live-chat-poll-editor-input">\n  [[getSimpleString(data.charCountErrorText)]]\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;VD6===void 0&&(VD6=document.createElement("template"));var h=VD6;E.call(W,h.content.cloneNode(!0),F.content.firstChild);Ukw=F}F=Ukw;return F},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var RqK;var equ;var MDx={minPollOptions:2,maxPollOptions:4,minPollOptionChars:1,maxPollOptionChars:35,maxPollQuestionChars:100,optionPlaceholderText:{simpleText:""},questionPlaceholderText:{simpleText:""},customOptionPlaceholderText:[],pollOptionData:{}},u9=function(){var F=_.n.apply(this,arguments)||this;F.modern=_.c("web_button_rework_with_live");F.closeButtonOverrides={iconPosition:"icon-only"};F.startButtonOverrides={style:"mono",type:"filled"};F.addOptionButtonOverrides={style:"mono",type:"text"};return F};
_.k(u9,_.n);_.N=u9.prototype;
_.N.configureRendererStamper=function(){return{"data.pollEditorInfo.addOptionButton":{id:"add-option-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[addOptionButtonOverrides]]"}}}},"data.closeButton":{id:"close-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[closeButtonOverrides]]"}}}},"data.startButton":{id:"start-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[startButtonOverrides]]"}}}},pollQuestionData:{id:"poll-question",
mapping:{liveChatTextInputFieldRenderer:{component:"yt-live-chat-text-input-field-renderer",attributes:{id:"poll-question-input","is-valid-with-no-input-text":!0}}}},pollOptionsData:{id:"poll-options",mapping:{liveChatPollOptionInput:{component:"yt-live-chat-poll-editor-input"}}}}};
_.N.dataChanged=function(){this.isValidPoll=this.getIsValidPoll();var F;_.D((F=this.data)==null?void 0:F.startButton,_.jt)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.N.computeId=function(){return this.data&&this.data.id||""};
_.N.computeOverQuestionCharacterLimit=function(){return this.pollEditorInfoWithDefaults?this.pollQuestionCharacterCount>this.pollEditorInfoWithDefaults.maxPollQuestionChars:!1};
_.N.computeCurrentNumPollOptions=function(){return this.pollOptionsData.length};
_.N.computeHasMaxNumPollOptions=function(){return!this.pollEditorInfoWithDefaults||this.currentNumPollOptions>=this.pollEditorInfoWithDefaults.maxPollOptions};
_.N.computeShowQuestionErrorMessage=function(){return!!this.pollEditorInfoWithDefaults&&this.overQuestionCharacterLimit&&!!this.pollEditorInfoWithDefaults.pollQuestionCharCountErrorText};
_.N.shouldInitializePollChanged=function(){if(this.shouldInitializePoll)for(var F=0;F<this.pollEditorInfoWithDefaults.minPollOptions;F++)this.addPollOptionData()};
_.N.getIsValidPoll=function(){var F=this;if(!this.pollEditorInfoWithDefaults)return!1;var W=this.pollEditorInfoWithDefaults,E=W.minPollOptionChars,h=W.maxPollOptionChars,d=W.customOptionPlaceholderText;if(this.pollQuestionCharacterCount>W.maxPollQuestionChars)return!1;W=_.Z(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input");return Array.from(W).every(function(V,R){V=V.characterCount;!V&&d[R]&&(V=F.ytRendererBehavior.getSimpleString(d[R]).length);return V!==void 0&&V>=E&&V<=h})};
_.N.isValidPollChanged=function(){var F;_.D((F=this.data)==null?void 0:F.startButton,_.jt)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.N.addPollOptionData=function(){var F=this.pollEditorInfoWithDefaults,W=F.maxPollOptionChars,E=F.optionPlaceholderText,h=F.customOptionPlaceholderText,d=F.pollOptionData;this.currentNumPollOptions>=F.maxPollOptions||(F={liveChatPollOptionInput:{inputData:{placeholder:h[this.currentNumPollOptions]||E,maxCharacterLimit:W},maxCharacterLimit:W,minCharacterLimit:F.minPollOptionChars,hasPrefilledText:!!h[this.currentNumPollOptions],isRemovable:this.currentNumPollOptions>=F.minPollOptions}},d.charCountErrorText&&
(F.liveChatPollOptionInput.charCountErrorText=d.charCountErrorText),d.charsRemainingAltLabel&&(F.liveChatPollOptionInput.charsRemainingAltLabel=d.charsRemainingAltLabel),d.removeOptionAltText&&(F.liveChatPollOptionInput.removeOptionAltText=d.removeOptionAltText),this.push("pollOptionsData",F),d=Array.from(_.Z(_.Z(this.hostElement).querySelector("#poll-options")).children),d.forEach(function(V,R){V.polymerController.set("data.id",R)}),_.Z(d[d.length-1]).querySelector("#input").focus())};
_.N.getPollOptionInputValues=function(){var F=this,W=[],E=_.Z(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input"),h=this.get("data.pollEditorInfo.customOptionPlaceholderText")||[];Array.from(E).forEach(function(d,V){var R=null;d=d.getLiveChatRichMessageInput();var M;(d==null?0:(M=d.textSegments)==null?0:M.length)?R=_.lz(d):h[V]&&(R=F.formattedStringToLiveChatRichMessageInput(h[V]));W.push(R)});
return W};
_.N.requestCreateAndStartPoll=function(F){var W=this.getPollOptionInputValues();if(!W.some(function(h){return!h})){W={optionText:W};
var E=_.Z(_.Z(this.hostElement).querySelector("#poll-question")).firstChild;E&&E.liveChatRichMessageInput&&(W.questionText=_.lz(E.liveChatRichMessageInput));_.UT(this.hostElement,[F,W])}};
_.N.selectedChanged=function(){if(this.selected){var F=_.Z(_.Z(this.hostElement).querySelector("#start-button")).firstElementChild;if(F){var W;(W=_.Z(F).querySelector("#button")||_.Fm(F).querySelector("button"))==null||W.focus()}}};
_.N.handleTextInputChanged=function(F){var W;((W=F.target)==null?void 0:W.id)==="poll-question-input"&&(this.pollQuestionCharacterCount=F.detail.characterCount);this.isValidPoll=this.getIsValidPoll()};
_.N.handleStartButtonAction=function(F){F.detail.actionName==="yt-service-request"&&(F.stopPropagation(),(F=F.detail.args[1])&&this.requestCreateAndStartPoll(F))};
_.N.handleServiceRequestSent=function(){this.createPollRequestInFlight=!0};
_.N.handleServiceRequestCompleted=function(F){this.createPollRequestInFlight=!1;(F=F.detail&&F.detail.data)&&F.success&&(_.hF(this.hostElement,"picker-cancelled"),_.dW(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels"))};
_.N.onCloseClick=function(){_.hF(this.hostElement,"picker-cancelled");_.dW(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.N.onAddOptionButtonClick=function(){this.addPollOptionData();this.isValidPoll=this.getIsValidPoll()};
_.N.handlePollEditorInputClosed=function(F){var W=this.pollOptionsData.findIndex(function(E){return E.liveChatPollOptionInput.id===F.detail.id});
this.splice("pollOptionsData",W,1);this.isValidPoll=this.getIsValidPoll()};
_.N.onPickerCancelled=function(){this.reset()};
_.N.reset=function(){if(this.pollEditorInfoWithDefaults){for(;this.currentNumPollOptions>this.pollEditorInfoWithDefaults.minPollOptions;)this.pop("pollOptionsData");var F=_.Z(_.Z(this.hostElement).querySelector("#poll-question")).firstChild;F&&F.setLiveChatRichMessageInput(null);if(F=_.Z(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input")){F=_.U(Array.from(F));for(var W=F.next();!W.done;W=F.next())W.value.clearInput()}this.isValidPoll=this.getIsValidPoll()}};
_.N.formattedStringToLiveChatRichMessageInput=function(F){return F.simpleText?{text_segments:[F.simpleText]}:{text_segments:F.runs}};
_.Sn.Object.defineProperties(u9.prototype,{pollQuestionData:{configurable:!0,enumerable:!0,get:function(){if(this.pollEditorInfoWithDefaults)return{liveChatTextInputFieldRenderer:{placeholder:this.pollEditorInfoWithDefaults.questionPlaceholderText,maxCharacterLimit:this.pollEditorInfoWithDefaults.maxPollQuestionChars}}}},
pollQuestionCharactersRemaining:{configurable:!0,enumerable:!0,get:function(){if(this.pollEditorInfoWithDefaults)return this.pollEditorInfoWithDefaults.maxPollQuestionChars-this.pollQuestionCharacterCount}},
pollEditorInfoWithDefaults:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.pollEditorInfo)return Object.assign(MDx,this.data.pollEditorInfo)}},
shouldInitializePoll:{configurable:!0,enumerable:!0,get:function(){return!!this.pollEditorInfoWithDefaults&&!this.pollOptionsData.length}}});
u9.prototype.onPickerCancelled=u9.prototype.onPickerCancelled;u9.prototype.handlePollEditorInputClosed=u9.prototype.handlePollEditorInputClosed;u9.prototype.handleServiceRequestCompleted=u9.prototype.handleServiceRequestCompleted;u9.prototype.handleServiceRequestSent=u9.prototype.handleServiceRequestSent;u9.prototype.handleTextInputChanged=u9.prototype.handleTextInputChanged;u9.prototype.selectedChanged=u9.prototype.selectedChanged;u9.prototype.isValidPollChanged=u9.prototype.isValidPollChanged;
u9.prototype.shouldInitializePollChanged=u9.prototype.shouldInitializePollChanged;u9.prototype.dataChanged=u9.prototype.dataChanged;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],u9.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],u9.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],u9.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],u9.prototype,"modern",void 0);
_.T([_.O(),_.Y("design:type",Object)],u9.prototype,"closeButtonOverrides",void 0);_.T([_.O(),_.Y("design:type",Object)],u9.prototype,"startButtonOverrides",void 0);_.T([_.O(),_.Y("design:type",Object)],u9.prototype,"addOptionButtonOverrides",void 0);_.T([_.O({computed:"computeId(data.id)",reflectToAttribute:!0}),_.Y("design:type",String)],u9.prototype,"id",void 0);_.T([_.O({value:function(){return[]}}),
_.Y("design:type",Array)],u9.prototype,"pollOptionsData",void 0);_.T([_.a("pollEditorInfoWithDefaults"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],u9.prototype,"pollQuestionData",null);_.T([_.O({value:0}),_.Y("design:type",Number)],u9.prototype,"pollQuestionCharacterCount",void 0);_.T([_.a("pollEditorInfoWithDefaults.maxPollQuestionChars","pollQuestionCharacterCount"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],u9.prototype,"pollQuestionCharactersRemaining",null);
_.T([_.O({reflectToAttribute:!0,computed:"computeOverQuestionCharacterLimit(pollQuestionCharacterCount, pollEditorInfoWithDefaults)"}),_.Y("design:type",Boolean)],u9.prototype,"overQuestionCharacterLimit",void 0);_.T([_.a("data.pollEditorInfo"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],u9.prototype,"pollEditorInfoWithDefaults",null);_.T([_.O({computed:"computeCurrentNumPollOptions(pollOptionsData.splices)",value:0}),_.Y("design:type",Number)],u9.prototype,"currentNumPollOptions",void 0);
_.T([_.O({computed:"computeHasMaxNumPollOptions(pollEditorInfoWithDefaults, currentNumPollOptions)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],u9.prototype,"hasMaxNumPollOptions",void 0);_.T([_.a("pollEditorInfoWithDefaults","pollOptionsData"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],u9.prototype,"shouldInitializePoll",null);_.T([_.O(),_.Y("design:type",Object)],u9.prototype,"isValidPoll",void 0);
_.T([_.O({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],u9.prototype,"createPollRequestInFlight",void 0);_.T([_.O(),_.Y("design:type",Object)],u9.prototype,"selected",void 0);_.T([_.O({value:!1,reflectToAttribute:!0,computed:"computeShowQuestionErrorMessage(pollEditorInfoWithDefaults, overQuestionCharacterLimit)"}),_.Y("design:type",Boolean)],u9.prototype,"showQuestionErrorMessage",void 0);
_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],u9.prototype,"dataChanged",null);_.T([_.ea("shouldInitializePoll"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],u9.prototype,"shouldInitializePollChanged",null);_.T([_.ea("isValidPoll"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],u9.prototype,"isValidPollChanged",null);
_.T([_.ea("selected"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],u9.prototype,"selectedChanged",null);_.T([_.R4("yt-live-chat-text-input-field-renderer-character-count-changed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],u9.prototype,"handleTextInputChanged",null);
_.T([_.R4("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],u9.prototype,"handleServiceRequestSent",null);_.T([_.R4("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],u9.prototype,"handleServiceRequestCompleted",null);
_.T([_.R4("yt-live-chat-poll-editor-input-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],u9.prototype,"handlePollEditorInputClosed",null);_.T([_.R4("picker-cancelled"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],u9.prototype,"onPickerCancelled",null);u9=_.T([_.$3({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-panel-renderer",noInjection:!0})],u9);
_.r(u9,"yt-live-chat-poll-editor-panel-renderer",function(){if(equ===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-poll-editor-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_poll_editor_panel_renderer.yt.live.chat.poll.editor.panel.renderer.css.js--\x3e<div id="panel-header" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n  <yt-icon hidden$="[[!data.headerIcon]]" icon="[[data.headerIcon.iconType]]" class="style-scope yt-live-chat-poll-editor-panel-renderer"></yt-icon>\n  <yt-formatted-string id="panel-title" text="[[data.headerText]]" class="style-scope yt-live-chat-poll-editor-panel-renderer"></yt-formatted-string>\n  <div id="close-button" on-click="onCloseClick" class="style-scope yt-live-chat-poll-editor-panel-renderer"></div>\n</div>\n<div id="panel-contents" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n  <div id="poll-editor" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n    <div id="poll-question" class="style-scope yt-live-chat-poll-editor-panel-renderer"></div>\n    <div id="poll-question-sub-content" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n      <div id="poll-question-error-message" role="alert" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n        [[getSimpleString(pollEditorInfoWithDefaults.pollQuestionCharCountErrorText)]]\n      </div>\n      <div id="poll-question-count" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n        [[pollQuestionCharacterCount]]/[[pollEditorInfoWithDefaults.maxPollQuestionChars]]\n      </div>\n      <div id="poll-question-count-alt-label" aria-live="polite" aria-atomic="true" aria-label$="[[getSimpleString(pollEditorInfoWithDefaults.pollOptionData.pollQuestionCharsRemainingAltLabel)]]" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n        [[pollQuestionCharactersRemaining]]\n      </div>\n    </div>\n    <div id="poll-options" class="style-scope yt-live-chat-poll-editor-panel-renderer"></div>\n    <div id="add-option-button" hidden$="[[hasMaxNumPollOptions]]" on-click="onAddOptionButtonClick" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n    </div>\n  </div>\n  <div id="start-button" on-yt-action="handleStartButtonAction" class="style-scope yt-live-chat-poll-editor-panel-renderer"></div>\n</div>\n<div id="spinner-container" hidden$="[[!createPollRequestInFlight]]" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n  <tp-yt-paper-spinner-lite id="spinner" active="[[createPollRequestInFlight]]" class="style-scope yt-live-chat-poll-editor-panel-renderer"></tp-yt-paper-spinner-lite>\n</div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);var W=F.content,E=W.insertBefore;RqK===void 0&&(RqK=document.createElement("template"));var h=RqK;E.call(W,h.content.cloneNode(!0),F.content.firstChild);equ=F}F=equ;return F},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var gMK;var Qbq;var ST=function(){return _.n.apply(this,arguments)||this};
_.k(ST,_.n);ST.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1")};
ST.prototype.onClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.Sn.Object.defineProperties(ST.prototype,{itemId:{configurable:!0,enumerable:!0,get:function(){var F,W;return(F=this.data)==null?void 0:(W=F.title)==null?void 0:W.content}},
hasPromotion:{configurable:!0,enumerable:!0,get:function(){var F;return!((F=this.data)==null||!F.hasBlueDot)}},
innertubeCommand:{configurable:!0,enumerable:!0,get:function(){var F;return _.He((F=this.data)==null?void 0:F.onTapCommand)}}});
_.T([_.J(_.eB.YtEndpointBehavior),_.Y("design:type",Object)],ST.prototype,"ytEndpointBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],ST.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],ST.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0}),_.a("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],ST.prototype,"itemId",null);
_.T([_.O({reflectToAttribute:!0}),_.a("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],ST.prototype,"hasPromotion",null);_.T([_.a("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],ST.prototype,"innertubeCommand",null);ST=_.T([_.$3({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-item-view-model",noInjection:!0})],ST);
_.r(ST,"yt-live-chat-product-picker-panel-item-view-model",function(){if(Qbq===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-product-picker-panel-item-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_product_picker_panel_item_view_model.yt.live.chat.product.picker.panel.item.view.model.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope yt-live-chat-product-picker-panel-item-view-model" data="[[innertubeCommand]]">\n  <tp-yt-paper-item id="container" on-click="onClick" class="style-scope yt-live-chat-product-picker-panel-item-view-model">\n    \n    <div id="image-container" class="style-scope yt-live-chat-product-picker-panel-item-view-model">\n      <yt-image id="image" alt="product_animation" data="[[data.productImage.themedImageViewModel.imageLight]]" height="54" preserve-height="" preserve-width="" width="54" class="style-scope yt-live-chat-product-picker-panel-item-view-model"></yt-image>\n      <span id="dot" class="style-scope yt-live-chat-product-picker-panel-item-view-model"></span>\n    </div>\n    <div id="text" class="style-scope yt-live-chat-product-picker-panel-item-view-model">\n      <yt-attributed-string id="title" data="[[data.title]]" class="style-scope yt-live-chat-product-picker-panel-item-view-model"></yt-attributed-string>\n      <yt-attributed-string id="description" data="[[data.description]]" class="style-scope yt-live-chat-product-picker-panel-item-view-model"></yt-attributed-string>\n    </div>\n    <yt-icon id="icon" icon="CHEVRON_RIGHT" class="style-scope yt-live-chat-product-picker-panel-item-view-model"></yt-icon>\n  </tp-yt-paper-item>\n</a>');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);var W=F.content,E=W.insertBefore;gMK===void 0&&(gMK=document.createElement("template"));var h=gMK;E.call(W,h.content.cloneNode(!0),F.content.firstChild);Qbq=F}F=Qbq;return F},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var zqq;var tD6;var pw=function(){var F=_.n.apply(this,arguments)||this;F.id="product-picker";F.selected=!1;F.closeButtonId="close-button";F.actionMap={"yt-live-chat-close-buy-flow":"onCloseBuyFlow","yt-live-chat-close-engage-with-audience-editor-panels":"onCloseEngageWithAudienceEditorPanels"};return F};
_.k(pw,_.n);_.N=pw.prototype;_.N.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{liveChatProductPickerPanelItemViewModel:"yt-live-chat-product-picker-panel-item-view-model"}}}};
_.N.observeSelected=function(){this.selected&&this.hostElement.focus();var F=_.Z(this.hostElement).querySelectorAll("yt-live-chat-product-picker-panel-item-view-model");F.length&&F[0].focus()};
_.N.onCloseBuyFlow=function(){_.hF(this.hostElement,"picker-cancelled")};
_.N.onCloseClick=function(){_.hF(this.hostElement,"picker-cancelled");var F;((F=this.data)==null?0:F.closeButton)&&this.ytRendererBehavior.logExplicitClick(_.D(this.data.closeButton,_.fx))};
_.N.onCloseEngageWithAudienceEditorPanels=function(){_.hF(this.hostElement,"picker-cancelled")};
pw.prototype.observeSelected=pw.prototype.observeSelected;_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],pw.prototype,"ytActionHandlerBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],pw.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],pw.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],pw.prototype,"data",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],pw.prototype,"id",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],pw.prototype,"selected",void 0);_.T([_.O(),_.Y("design:type",Object)],pw.prototype,"closeButtonId",void 0);_.T([_.ea("selected"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],pw.prototype,"observeSelected",null);
pw=_.T([_.$3({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-view-model",noInjection:!0})],pw);
_.r(pw,"yt-live-chat-product-picker-panel-view-model",function(){if(tD6===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-product-picker-panel-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_product_picker_panel_view_model.yt.live.chat.product.picker.panel.view.model.css.js--\x3e<div id="header" class="style-scope yt-live-chat-product-picker-panel-view-model">\n  <yt-attributed-string id="title" data="[[data.title]]" ellipsis-truncate="true" no-pre-wrap="true" class="style-scope yt-live-chat-product-picker-panel-view-model"></yt-attributed-string>\n  <yt-button-view-model id="[[closeButtonId]]" data="[[data.closeButton.buttonViewModel]]" scoping-class-name="[[is]]" on-click="onCloseClick" class="style-scope yt-live-chat-product-picker-panel-view-model">\n  </yt-button-view-model>\n</div>\n<div id="items" class="style-scope yt-live-chat-product-picker-panel-view-model"></div>');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;zqq===void 0&&(zqq=document.createElement("template"));var h=zqq;E.call(W,h.content.cloneNode(!0),F.content.firstChild);tD6=F}F=tD6;return F},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var CFT;var Bb6;var mL=function(){var F=_.n.apply(this,arguments)||this;F.iconId="";F.icon="";F.disabled=!1;F.systemIcons=_.c("kevlar_system_icons");return F};
_.k(mL,_.n);_.N=mL.prototype;_.N.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1")};
_.N.computeIconId=function(F){return F&&F.icon&&F.icon.iconType?F.icon.iconType.toLowerCase():""};
_.N.computeIcon=function(F){return F&&F.icon&&F.icon.iconType?(F=F.icon.iconType.toLowerCase(),(F.toLowerCase()=="gift"?"yt-sys-icons":"yt-icons")+":"+F):""};
_.N.computeDisabled=function(F){return!!F};
_.N.computeCommand=function(F,W){return W?void 0:F};
_.N.computeTooltip=function(F,W){return W&&F?F:""};
_.N.onClick=function(){this.data&&!this.disabled&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.T([_.J(_.eB.YtEndpointBehavior),_.Y("design:type",Object)],mL.prototype,"ytEndpointBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],mL.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],mL.prototype,"data",void 0);_.T([_.O({computed:"computeIconId(data)",reflectToAttribute:!0}),_.Y("design:type",Object)],mL.prototype,"iconId",void 0);
_.T([_.O({computed:"computeIcon(data)",reflectToAttribute:!0}),_.Y("design:type",Object)],mL.prototype,"icon",void 0);_.T([_.O({computed:"computeDisabled(data.isDisabled)",reflectToAttribute:!0}),_.Y("design:type",Object)],mL.prototype,"disabled",void 0);_.T([_.O({computed:"computeCommand(data.command, disabled)"}),_.Y("design:type",Object)],mL.prototype,"command",void 0);_.T([_.O({computed:"computeTooltip(data.disabledTooltip, disabled)"}),_.Y("design:type",String)],mL.prototype,"tooltip",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],mL.prototype,"systemIcons",void 0);mL=_.T([_.$3({disableElementRegistration:!0,is:"yt-live-chat-product-button-renderer",noInjection:!0})],mL);
_.r(mL,"yt-live-chat-product-button-renderer",function(){if(Bb6===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-product-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_product_button_renderer.yt.live.chat.product.button.renderer.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope yt-live-chat-product-button-renderer" data="[[command]]" title$="[[tooltip]]">\n  <tp-yt-paper-item id="container" disabled$="[[disabled]]" on-click="onClick" class="style-scope yt-live-chat-product-button-renderer">\n    <div id="icon" class="style-scope yt-live-chat-product-button-renderer">\n      <yt-icon icon="[[icon]]" class="style-scope yt-live-chat-product-button-renderer"></yt-icon>\n      <span hidden="[[!data.iconBadgeText]]" id="icon-badge-text" class="style-scope yt-live-chat-product-button-renderer">[[data.iconBadgeText]]</span>\n    </div>\n    <div id="text" class="style-scope yt-live-chat-product-button-renderer">\n      <yt-formatted-string text="[[data.text]]" class="style-scope yt-live-chat-product-button-renderer"></yt-formatted-string>\n      <div id="subtext" class="style-scope yt-live-chat-product-button-renderer">\n        <yt-formatted-string text="[[data.subtext]]" class="style-scope yt-live-chat-product-button-renderer"></yt-formatted-string>\n      </div>\n    </div>\n  </tp-yt-paper-item>\n</a>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;CFT===void 0&&(CFT=document.createElement("template"));var h=CFT;E.call(W,h.content.cloneNode(!0),F.content.firstChild);Bb6=F}F=Bb6;return F},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var vMg;var Ilx;var Kw=function(){var F=_.n.apply(this,arguments)||this;F.selected=!1;F.actionMap={"yt-live-chat-close-buy-flow":"onCloseBuyFlow","yt-live-chat-close-engage-with-audience-editor-panels":"onCloseEngageWithAudienceEditorPanels"};return F};
_.k(Kw,_.n);_.N=Kw.prototype;_.N.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{liveChatProductButtonRenderer:"yt-live-chat-product-button-renderer"}},"data.closeButton":{id:"close-button",mapping:{liveChatProductButtonRenderer:"yt-live-chat-product-button-renderer"}}}};
_.N.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.N.computeId=function(F){return F.id||""};
_.N.onCloseClick=function(){_.hF(this.hostElement,"picker-cancelled")};
_.N.observeSelected=function(){this.selected&&this.hostElement.focus();var F=this.hostElement.querySelectorAll("yt-live-chat-product-button-renderer");F.length&&F[0].focus()};
_.N.onCloseBuyFlow=function(){_.hF(this.hostElement,"picker-cancelled")};
_.N.onCloseEngageWithAudienceEditorPanels=function(){_.hF(this.hostElement,"picker-cancelled")};
Kw.prototype.observeSelected=Kw.prototype.observeSelected;_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],Kw.prototype,"ytActionHandlerBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Kw.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],Kw.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],Kw.prototype,"data",void 0);
_.T([_.O({computed:"computeId(data)",reflectToAttribute:!0}),_.Y("design:type",String)],Kw.prototype,"id",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],Kw.prototype,"selected",void 0);_.T([_.ea("selected"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Kw.prototype,"observeSelected",null);Kw=_.T([_.$3({disableElementRegistration:!0,is:"yt-live-chat-product-picker-renderer",noInjection:!0})],Kw);
_.r(Kw,"yt-live-chat-product-picker-renderer",function(){if(Ilx===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-product-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_product_picker_renderer.yt.live.chat.product.picker.renderer.css.js--\x3e<yt-formatted-string id="title" text="[[data.productPickerHeaderTitle]]" class="style-scope yt-live-chat-product-picker-renderer"> </yt-formatted-string>\n<div id="buttons" class="style-scope yt-live-chat-product-picker-renderer"></div>\n<div id="close-button" on-click="onCloseClick" class="style-scope yt-live-chat-product-picker-renderer"></div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);var W=F.content,E=W.insertBefore;vMg===void 0&&(vMg=document.createElement("template"));var h=vMg;E.call(W,h.content.cloneNode(!0),F.content.firstChild);Ilx=F}F=Ilx;return F},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var cx6;var DkT;var xkN;var kg8;var F2=function(){return _.n.apply(this,arguments)||this};
_.k(F2,_.n);F2.prototype.maybeLoadAnimationBackground=function(){this.useAnimationBackground?this.lottieAnimation||(this.lottieAnimation=lottie.loadAnimation({container:this.animationBackground,loop:!0,renderer:"svg",path:"https://www.gstatic.com/youtube/img/livestream/live_chat/lottie_animation/shimmer_background.json",autoplay:!0})):this.lottieAnimation&&this.lottieAnimation.destroy()};
F2.prototype.computeUseRegularBackground=function(){return!this.useLargeBackground&&!this.useAnimationBackground};
F2.prototype.created=function(){this.ids={background:_.P7(),maskOne:_.P7(),maskTwo:_.P7(),gradient:_.P7(),largeBackground:_.P7(),largeGradientOne:_.P7(),largeGradientTwo:_.P7(),largeGradientPath:_.P7()}};
F2.prototype.maybeLoadAnimationBackground=F2.prototype.maybeLoadAnimationBackground;_.T([_.O({value:!1}),_.Y("design:type",Boolean)],F2.prototype,"useLargeBackground",void 0);_.T([_.O({value:!1}),_.Y("design:type",Boolean)],F2.prototype,"useAnimationBackground",void 0);_.T([_.O({value:!0,computed:"computeUseRegularBackground(useLargeBackground, useAnimationBackground)"}),_.Y("design:type",Boolean)],F2.prototype,"useRegularBackground",void 0);
_.T([_.O(),_.Y("design:type",Object)],F2.prototype,"ids",void 0);_.T([_.O(),_.Y("design:type",Object)],F2.prototype,"lottieAnimation",void 0);_.T([_.gQ("#animation-background"),_.Y("design:type",HTMLDivElement)],F2.prototype,"animationBackground",void 0);_.T([_.ea("useAnimationBackground"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],F2.prototype,"maybeLoadAnimationBackground",null);
F2=_.T([_.$3({disableElementRegistration:!0,is:"yt-live-interactivity-component-background",noInjection:!0})],F2);
_.r(F2,"yt-live-interactivity-component-background",function(){if(kg8===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-interactivity-component-background--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_interactivity_component_background.yt.live.interactivity.component.background.css.js--\x3e<svg id$="[[ids.background]]" hidden$="[[!useRegularBackground]]" width="100%" height="280" viewBox="2 45 400 280" preserveAspectRatio="xMinYMin slice" class="style-scope yt-live-interactivity-component-background">\n  <defs class="style-scope yt-live-interactivity-component-background">\n    <mask id$="[[ids.maskOne]]" width="611" height="468" x="1" y="-117" maskUnits="userSpaceOnUse" class="style-scope yt-live-interactivity-component-background">\n      <g class="style-scope yt-live-interactivity-component-background">\n        <rect width="500" height="350" x="1" y="1" style="fill:#fff" rx="4" class="style-scope yt-live-interactivity-component-background"></rect>\n      </g>\n    </mask>\n    <mask id$="[[ids.maskTwo]]" width="505" height="439" x="-4" y="-10" maskUnits="userSpaceOnUse" class="style-scope yt-live-interactivity-component-background">\n      <g class="style-scope yt-live-interactivity-component-background">\n        <rect width="500" height="350" x="1" y="1" style="fill:#fff" rx="4" class="style-scope yt-live-interactivity-component-background"></rect>\n      </g>\n    </mask>\n    <linearGradient id$="[[ids.gradient]]" x1="-53.35" x2="-54.44" y1="572.174" y2="571.817" gradientTransform="matrix(439 0 0 -439 23648 251318)" gradientUnits="userSpaceOnUse" class="style-scope yt-live-interactivity-component-background">\n      <stop offset="0" stop-color="#1d3863" class="style-scope yt-live-interactivity-component-background"></stop>\n      <stop class="gradient-stop style-scope yt-live-interactivity-component-background" offset="1"></stop>\n    </linearGradient>\n  </defs>\n  <g class="style-scope yt-live-interactivity-component-background">\n    <g class="style-scope yt-live-interactivity-component-background">\n      <rect width="500" height="350" x="1" y="1" fill="#224072" stroke="#000" stroke-opacity=".15" rx="4" class="style-scope yt-live-interactivity-component-background"></rect>\n      <g mask$="url(#[[ids.maskOne]])" class="style-scope yt-live-interactivity-component-background">\n        <path fill="#1a3259" fill-rule="evenodd" d="M612-117v420L192 92.998 611.99-117h.01z" opacity=".8" class="style-scope yt-live-interactivity-component-background"></path>\n      </g>\n      <g mask$="url(#[[ids.maskTwo]])" class="style-scope yt-live-interactivity-component-background">\n        <path fill$="url(#[[ids.gradient]])" fill-rule="evenodd" d="M-4-10v439l439-219.502L-3.989-10H-4z" opacity=".9" class="style-scope yt-live-interactivity-component-background"></path>\n      </g>\n    </g>\n  </g>\n</svg>\n<svg id$="[[ids.largeBackground]]" hidden$="[[!useLargeBackground]]" height="350" width="100%" viewBox="60 40 428 300" preserveAspectRatio="xMinYMin slice" class="style-scope yt-live-interactivity-component-background">\n  <defs class="style-scope yt-live-interactivity-component-background">\n    <linearGradient id$="[[ids.largeGradientOne]]" x1="104.432%" x2="10.997%" y1="62.466%" y2="44.799%" class="style-scope yt-live-interactivity-component-background">\n      <stop offset="0%" stop-color="#274C8A" class="style-scope yt-live-interactivity-component-background"></stop>\n      <stop offset="100%" stop-color="#1A3259" class="style-scope yt-live-interactivity-component-background"></stop>\n    </linearGradient>\n    <linearGradient id$="[[ids.largeGradientTwo]]" x1="53.199%" x2="-55.854%" y1="34.226%" y2="69.901%" class="style-scope yt-live-interactivity-component-background">\n      <stop offset="0%" stop-color="#284F8F" class="style-scope yt-live-interactivity-component-background"></stop>\n      <stop offset="100%" stop-color="#234275" class="style-scope yt-live-interactivity-component-background"></stop>\n    </linearGradient>\n    <path id$="[[ids.largeGradientPath]]" d="M0 3.991A3.994 3.994 0 014.006 0h491.988C498.206 0 500 1.8 500 3.991v342.018a3.994 3.994 0 01-4.006 3.991H4.006C1.794 350 0 348.2 0 346.009V3.991z" class="style-scope yt-live-interactivity-component-background"></path>\n  </defs>\n  <g fill="none" fill-rule="evenodd" class="style-scope yt-live-interactivity-component-background">\n    <mask id$="[[ids.maskTwo]]" fill="#fff" class="style-scope yt-live-interactivity-component-background">\n      <use href$="#[[ids.largeGradientPath]]" class="style-scope yt-live-interactivity-component-background"></use>\n    </mask>\n    <use fill="#224175" href$="#[[ids.largeGradientPath]]" class="style-scope yt-live-interactivity-component-background"></use>\n    <path fill$="url(#[[ids.largeGradientOne]])" d="M264-120v420L684 89.998 264.011-120z" mask="url(#[[ids.maskTwo]])" transform="matrix(-1 0 0 1 948 0)" class="style-scope yt-live-interactivity-component-background"></path>\n    <path fill$="url(#[[ids.largeGradientTwo]])" d="M-80-81v507l507-253.503L-79.987-81z" mask="url(#[[ids.maskTwo]])" opacity=".9" class="style-scope yt-live-interactivity-component-background"></path>\n  </g>\n</svg>\n<div id="animation-background" height="350" width="100%" hidden$="[[!useAnimationBackground]]" class="style-scope yt-live-interactivity-component-background"></div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;xkN===void 0&&(xkN=document.createElement("template"));var h=xkN;E.call(W,h.content.cloneNode(!0),F.content.firstChild);kg8=F}F=kg8;return F},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var Wg=function(){var F=_.n.apply(this,arguments)||this;F.characterCount=0;F.showInputErrorMessage=!1;F.startQnaRequestInFlight=!1;F.modern=_.c("web_button_rework_with_live");F.buttonOverrides={style:"mono",type:"filled"};F.closeButtonOverrides={iconPosition:"icon-only"};F.actionMap={"yt-live-chat-open-qna-start-panel":"handleOpenQnaStartPanel"};return F};
_.k(Wg,_.n);_.N=Wg.prototype;
_.N.configureRendererStamper=function(){return{"data.creatorCallForQuestions.liveChatCreatorCallForQuestionsRenderer.overflowMenuButton":{id:"menu",events:!0,mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{id:"menu-button"}}}},"data.closeButton":{id:"close-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[closeButtonOverrides]]"}}}},"data.startButton":{id:"start-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}}}};
_.N.onCharacterCountChanged=function(F){var W,E,h,d,V=(E=_.D(this==null?void 0:(W=this.data)==null?void 0:W.creatorCallForQuestions,WuT))==null?void 0:(h=E.inputField)==null?void 0:(d=h.liveChatTextInputFieldRenderer)==null?void 0:d.maxCharacterLimit,R,M;V!=null&&(F==null?void 0:(R=F.detail)==null?void 0:R.characterCount)!=null&&_.D(this==null?void 0:(M=this.data)==null?void 0:M.startButton,_.jt)&&(W=F.detail.characterCount>V,this.set("data.startButton.buttonRenderer.isDisabled",F.detail.characterCount===
0||W),this.showInputErrorMessage=W)};
_.N.onCloseClick=function(){_.hF(this.hostElement,"picker-cancelled");_.dW(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.N.onPickerCancelled=function(){var F=_.Z(this.hostElement).querySelector("#qna-creator-text-input-field");F&&F.setLiveChatRichMessageInput(null)};
_.N.handleOpenQnaStartPanel=function(){var F=_.Z(this.hostElement).querySelector("#qna-creator-text-input-field");F&&F.focus()};
_.N.handleStartButtonAction=function(F){var W=this;if(F.detail.actionName==="yt-service-request"&&(F.stopPropagation(),F=F.detail.args[1])){var E=_.Z(this.hostElement).querySelector("#qna-creator-text-input-field"),h;(E==null?0:(h=E.liveChatRichMessageInput)==null?0:h.textSegments)&&E.liveChatRichMessageInput.textSegments.length!==0&&(h={rich_message:_.lz(E.liveChatRichMessageInput)},_.UT(this.hostElement,[F,h]).then(function(){_.hF(W.hostElement,"picker-cancelled")}))}};
_.N.handleServiceRequestSent=function(){this.startQnaRequestInFlight=!0};
_.N.handleServiceRequestCompleted=function(F){var W;F=F==null?void 0:(W=F.detail)==null?void 0:W.data;(F==null?0:F.actions)&&F.actions.length>0?this.startQnaRequestInFlight=!1:_.dW(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.N.handleServiceRequestError=function(){this.startQnaRequestInFlight=!1};
Wg.prototype.handleServiceRequestError=Wg.prototype.handleServiceRequestError;Wg.prototype.handleServiceRequestCompleted=Wg.prototype.handleServiceRequestCompleted;Wg.prototype.handleServiceRequestSent=Wg.prototype.handleServiceRequestSent;Wg.prototype.onPickerCancelled=Wg.prototype.onPickerCancelled;Wg.prototype.onCharacterCountChanged=Wg.prototype.onCharacterCountChanged;_.T([_.O(),_.Y("design:type",Object)],Wg.prototype,"characterCount",void 0);
_.T([_.O(),_.Y("design:type",Object)],Wg.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],Wg.prototype,"showInputErrorMessage",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],Wg.prototype,"startQnaRequestInFlight",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],Wg.prototype,"modern",void 0);_.T([_.O(),_.Y("design:type",Object)],Wg.prototype,"buttonOverrides",void 0);
_.T([_.O(),_.Y("design:type",Object)],Wg.prototype,"closeButtonOverrides",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],Wg.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.av),_.Y("design:type",Object)],Wg.prototype,"ytLiveChatReduxBehavior",void 0);_.T([_.J(_.bD.YtLiveChatItemBehavior),_.Y("design:type",_.lD)],Wg.prototype,"ytLiveChatItemBehavior",void 0);
_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],Wg.prototype,"ytActionHandlerBehavior",void 0);_.T([_.R4("yt-live-chat-text-input-field-renderer-character-count-changed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Wg.prototype,"onCharacterCountChanged",null);_.T([_.R4("picker-cancelled"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Wg.prototype,"onPickerCancelled",null);
_.T([_.R4("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Wg.prototype,"handleServiceRequestSent",null);_.T([_.R4("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Wg.prototype,"handleServiceRequestCompleted",null);
_.T([_.R4("yt-service-request-error"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Wg.prototype,"handleServiceRequestError",null);Wg=_.T([_.y({disableElementRegistration:!0,is:"yt-live-chat-qna-start-panel-renderer"})],Wg);
_.r(Wg,"yt-live-chat-qna-start-panel-renderer",function(){if(DkT===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-qna-start-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_qna_start_panel_renderer.yt.live.chat.qna.start.panel.renderer.css.js--\x3e<div id="panel-header" class="style-scope yt-live-chat-qna-start-panel-renderer">\n  <yt-icon aria-hidden="true" hidden$="[[!data.headerIcon]]" icon="[[data.headerIcon.iconType]]" class="style-scope yt-live-chat-qna-start-panel-renderer"></yt-icon>\n  <yt-formatted-string id="panel-title" text="[[data.headerText]]" class="style-scope yt-live-chat-qna-start-panel-renderer"></yt-formatted-string>\n  <div id="close-button" on-click="onCloseClick" class="style-scope yt-live-chat-qna-start-panel-renderer"></div>\n</div>\n<div id="panel-contents" class="style-scope yt-live-chat-qna-start-panel-renderer">\n  <div id="call_for_questions_banner" class="style-scope yt-live-chat-qna-start-panel-renderer">\n    <div id="banner-content" class="style-scope yt-live-chat-qna-start-panel-renderer">\n      <div id="banner-content-top" class="style-scope yt-live-chat-qna-start-panel-renderer">\n        <yt-img-shadow id="creator-avatar" height="24" hidden$="[[!data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.creatorAvatar]]" thumbnail="[[data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.creatorAvatar]]" width="24" class="style-scope yt-live-chat-qna-start-panel-renderer">\n        </yt-img-shadow>\n\n        <div id="metadata-text" class="style-scope yt-live-chat-qna-start-panel-renderer">\n          <yt-formatted-string id="author-name" text="[[data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.creatorAuthorName]]" class="style-scope yt-live-chat-qna-start-panel-renderer">\n          </yt-formatted-string>\n\n          <yt-formatted-string id="separator-collapsed" text="[[data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.contentSeparator]]" class="style-scope yt-live-chat-qna-start-panel-renderer">\n          </yt-formatted-string>\n\n          <yt-formatted-string id="feature-label" text="[[data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.featureLabel]]" class="style-scope yt-live-chat-qna-start-panel-renderer">\n          </yt-formatted-string>\n        </div>\n        <div id="menu" on-click="onContextMenuButtonClick" class="style-scope yt-live-chat-qna-start-panel-renderer"></div>\n      </div>\n\n      <div id="banner-main-content" class="style-scope yt-live-chat-qna-start-panel-renderer">\n        <div id="input-container" class="style-scope yt-live-chat-qna-start-panel-renderer">\n          <template is="dom-if" if="[[data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.inputField]]" class="style-scope yt-live-chat-qna-start-panel-renderer">\n            <yt-live-chat-text-input-field-renderer id="qna-creator-text-input-field" character-count="{{characterCount}}" data="[[data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.inputField.liveChatTextInputFieldRenderer]]" hidden$="[[!data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.inputField]]" ignore-color-mapping="" class="style-scope yt-live-chat-qna-start-panel-renderer">\n            </yt-live-chat-text-input-field-renderer>\n          </template>\n        </div>\n        <div id="input-sub-content" class="style-scope yt-live-chat-qna-start-panel-renderer">\n          <div id="qna-error-message" role="alert" class="style-scope yt-live-chat-qna-start-panel-renderer">[[getSimpleString(data.characterLimitErrorMessage)]]</div>\n          <div id="qna-character-count" class="style-scope yt-live-chat-qna-start-panel-renderer">[[characterCount]]/[[data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.inputField.liveChatTextInputFieldRenderer.maxCharacterLimit]]</div>\n        </div>\n      </div>\n    </div>\n  </div>\n  <div id="start-button" on-yt-action="handleStartButtonAction" class="style-scope yt-live-chat-qna-start-panel-renderer"></div>\n</div>\n<div id="spinner-container" hidden$="[[!startQnaRequestInFlight]]" class="style-scope yt-live-chat-qna-start-panel-renderer">\n  <tp-yt-paper-spinner-lite id="spinner" active="[[startQnaRequestInFlight]]" class="style-scope yt-live-chat-qna-start-panel-renderer"></tp-yt-paper-spinner-lite>\n</div>');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;cx6===void 0&&(cx6=document.createElement("template"));var h=cx6;E.call(W,h.content.cloneNode(!0),F.content.firstChild);DkT=F}F=DkT;return F},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var Ax$;var sbw;var EM=function(){return _.n.apply(this,arguments)||this};
_.k(EM,_.n);EM.prototype.dismiss=function(){_.hF(this.hostElement,"yt-live-chat-error-message-dismiss")};
EM.prototype.edit=function(){_.hF(this.hostElement,"yt-live-chat-error-message-edit",this.data.originalRichMessage)};
_.T([_.O(),_.Y("design:type",Object)],EM.prototype,"data",void 0);EM=_.T([_.$3({disableElementRegistration:!0,is:"yt-live-chat-text-actions-error-message-renderer",noInjection:!0})],EM);
_.r(EM,"yt-live-chat-text-actions-error-message-renderer",function(){if(sbw===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-text-actions-error-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_text_actions_error_message_renderer.yt.live.chat.text.actions.error.message.renderer.css.js--\x3e<yt-icon-button on-click="dismiss" class="style-scope yt-live-chat-text-actions-error-message-renderer">\n  <yt-icon icon="close" class="style-scope yt-live-chat-text-actions-error-message-renderer"></yt-icon>\n</yt-icon-button>\n<div id="error-text" class="style-scope yt-live-chat-text-actions-error-message-renderer">\n  <yt-formatted-string text="[[data.errorText]]" class="style-scope yt-live-chat-text-actions-error-message-renderer"></yt-formatted-string>\n  <button id="edit" on-click="edit" class="style-scope yt-live-chat-text-actions-error-message-renderer">\n    <yt-formatted-string text="[[data.editMessageText]]" class="style-scope yt-live-chat-text-actions-error-message-renderer"></yt-formatted-string>\n  </button>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;Ax$===void 0&&(Ax$=document.createElement("template"));var h=Ax$;E.call(W,h.content.cloneNode(!0),F.content.firstChild);sbw=F}F=sbw;return F},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var LDT;var qAN;var $k8;var ZFN;var h_=function(){var F=_.n.apply(this,arguments)||this;F.isDarkTheme=document.documentElement.hasAttribute("dark");F.newnessDotEligible=!1;return F};
_.k(h_,_.n);h_.prototype.sendReaction=function(){var F,W,E=((F=this.data)==null?void 0:F.emojiId)||((W=this.data)==null?void 0:W.emoteId),h;E&&((h=this.data)==null?0:h.shouldTriggerAnimation)&&_.dW(this.hostElement,"yt-create-user-reaction-animation",[E]);var d;(F=_.He((d=this.data)==null?void 0:d.onTap))&&_.ei(F,this.hostElement);this.showNewnessDot&&_.dW(this.hostElement,"yt-hide-newness-dot")};
h_.prototype.onClick=function(F){(!F||F.clientX||F.clientY)&&this.sendReaction()};
h_.prototype.onKeyDown=function(F){F.key!=="Enter"&&F.key!==" "||F.repeat||this.sendReaction()};
_.Sn.Object.defineProperties(h_.prototype,{showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var F;return!((F=this.data)==null||!F.maybeShowNewnessDot)&&this.newnessDotEligible}},
useYtImage:{configurable:!0,enumerable:!0,get:function(){var F,W;return!!(((F=this.data)==null?0:F.emojiId)||((W=this.data)==null?0:W.emoteId))}}});
_.T([_.O(),_.Y("design:type",Object)],h_.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],h_.prototype,"isDarkTheme",void 0);_.T([_.O(),_.Y("design:type",Object)],h_.prototype,"newnessDotEligible",void 0);_.T([_.a("data.maybeShowNewnessDot"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],h_.prototype,"showNewnessDot",null);_.T([_.a("data.emojiId","data.emoteId"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],h_.prototype,"useYtImage",null);
h_=_.T([_.$3({disableElementRegistration:!0,is:"yt-reaction-control-panel-button-view-model",noInjection:!0})],h_);
_.r(h_,"yt-reaction-control-panel-button-view-model",function(){if(ZFN===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-reaction-control-panel-button-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_reaction_control_panel_button_view_model.yt.reaction.control.panel.button.view.model.css.js--\x3e<button on-click="onClick" on-keydown="onKeyDown" class="style-scope yt-reaction-control-panel-button-view-model">\n  <div class="image-container style-scope yt-reaction-control-panel-button-view-model">\n    <template is="dom-if" restamp="" if="[[useYtImage]]" class="style-scope yt-reaction-control-panel-button-view-model">\n      <yt-image alt="[[data.a11yLabel]]" data="[[data.buttonIcon]]" height="24" preserve-height="" preserve-width="" should-render-lazy="" width="24" class="style-scope yt-reaction-control-panel-button-view-model"></yt-image>\n    </template>\n    <template is="dom-if" restamp="" if="[[data.buttonIconType]]" class="style-scope yt-reaction-control-panel-button-view-model">\n      <yt-icon aria-label="[[data.a11yLabel]]" icon="[[data.buttonIconType]]" class="style-scope yt-reaction-control-panel-button-view-model"></yt-icon>\n    </template>\n    <template is="dom-if" restamp="" if="[[showNewnessDot]]" class="style-scope yt-reaction-control-panel-button-view-model">\n      <div class="newness-dot style-scope yt-reaction-control-panel-button-view-model"></div>\n    </template>\n  </div>\n</button>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;$k8===void 0&&($k8=document.createElement("template"));var h=$k8;E.call(W,h.content.cloneNode(!0),F.content.firstChild);ZFN=F}F=ZFN;return F},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var XWx;var HFT;var d6=function(){var F=_.n.apply(this,arguments)||this;F.reactionControlPanelExpanded=!1;F.isDarkTheme=document.documentElement.hasAttribute("dark");F.newnessDotEligible=!1;return F};
_.k(d6,_.n);_.N=d6.prototype;_.N.expandedButtonsChanged=function(){var F,W;_.V9(this.hostElement,{"--expanded-buttons-height":((W=(F=this.expandedButtonsData)==null?void 0:F.length)!=null?W:0)*36+"px"})};
_.N.configureRendererStamper=function(){return{expandedButtonsData:{id:"expanded-buttons",mapping:{reactionControlPanelButtonViewModel:{component:"yt-reaction-control-panel-button-view-model",properties:{newnessDotEligible:"[[newnessDotEligible]]"}}},reuseComponents:!0},"data.collapsedButton":{id:"collapsed-button",mapping:{reactionControlPanelButtonViewModel:{component:"yt-reaction-control-panel-button-view-model",properties:{newnessDotEligible:"[[newnessDotEligible]]"}}},reuseComponents:!0}}};
_.N.onMouseEnter=function(){clearTimeout(this.collapseTimer);this.collapseTimer=void 0;this.reactionControlPanelExpanded=!0};
_.N.onMouseLeave=function(){var F=this;this.collapseTimer=setTimeout(function(){F.reactionControlPanelExpanded=!1},500)};
_.N.onFocusIn=function(){this.onMouseEnter()};
_.N.onFocusOut=function(){this.onMouseLeave()};
_.N.onCollapsedButtonFocusIn=function(){var F=this;setTimeout(function(){var W;(W=F.expandedButtons.querySelector("button"))==null||W.focus()},100)};
_.N.onCollapsedButtonFocusOut=function(F){F.stopPropagation()};
_.Sn.Object.defineProperties(d6.prototype,{expandedButtonsData:{configurable:!0,enumerable:!0,get:function(){var F,W;return _.xd.unsafeClone((F=this.liveReactionsData)==null?void 0:F.emojiButtonData)||((W=this.data)==null?void 0:W.expandedButtons)}},
showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var F;return this.newnessDotEligible&&!this.reactionControlPanelExpanded&&!((F=this.data)==null||!F.maybeShowNewnessDot)}}});
d6.prototype.expandedButtonsChanged=d6.prototype.expandedButtonsChanged;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],d6.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],d6.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.av),_.Y("design:type",Object)],d6.prototype,"ytLiveChatReduxBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],d6.prototype,"data",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],d6.prototype,"reactionControlPanelExpanded",void 0);_.T([_.O({selectorArgs:["data.liveReactionsDataEntityKey"],selector:b6T}),_.Y("design:type",Object)],d6.prototype,"liveReactionsData",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],d6.prototype,"isDarkTheme",void 0);_.T([_.O(),_.Y("design:type",Object)],d6.prototype,"newnessDotEligible",void 0);
_.T([_.a("liveReactionsData","data.expandedButtons"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],d6.prototype,"expandedButtonsData",null);_.T([_.a("newnessDotEligible","reactionControlPanelExpanded","data.maybeShowNewnessDot"),_.O({reflectToAttribute:!0}),_.Y("design:type",Object),_.Y("design:paramtypes",[])],d6.prototype,"showNewnessDot",null);_.T([_.gQ("#expanded-buttons"),_.Y("design:type",HTMLElement)],d6.prototype,"expandedButtons",void 0);
_.T([_.ea("expandedButtonsData"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],d6.prototype,"expandedButtonsChanged",null);d6=_.T([_.$3({disableElementRegistration:!0,is:"yt-reaction-control-panel-view-model",noInjection:!0})],d6);
_.r(d6,"yt-reaction-control-panel-view-model",function(){if(HFT===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-reaction-control-panel-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_reaction_control_panel_view_model.yt.reaction.control.panel.view.model.css.js--\x3e<div id="hover-area" on-mouseenter="onMouseEnter" on-mouseleave="onMouseLeave" on-focusin="onFocusIn" on-focusout="onFocusOut" class="style-scope yt-reaction-control-panel-view-model">\n  <div id="fab-container" class="style-scope yt-reaction-control-panel-view-model">\n    <div id="expanded-buttons" class="style-scope yt-reaction-control-panel-view-model"></div>\n    <div id="collapsed-button" on-focusin="onCollapsedButtonFocusIn" on-focusout="onCollapsedButtonFocusOut" class="style-scope yt-reaction-control-panel-view-model"></div>\n  </div>\n  <template is="dom-if" restamp="" if="[[showNewnessDot]]" class="style-scope yt-reaction-control-panel-view-model">\n    <div class="newness-dot style-scope yt-reaction-control-panel-view-model"></div>\n  </template>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;XWx===void 0&&(XWx=document.createElement("template"));var h=XWx;E.call(W,h.content.cloneNode(!0),F.content.firstChild);HFT=F}F=HFT;return F},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var Nm=new _.bY("yt-live-chat"),PF6=Date.parse("2024-7-24"),Vk=function(){var F=_.n.apply(this,arguments)||this;F.emojiManager=_.Oz;F.newnessDotEligible=!1;F.newnessDotImpressionCounted=!1;F.actionMap={"yt-live-reactions-mute":"handleReactionsMute","yt-hide-newness-dot":"hideNewnessDot"};return F};
_.k(Vk,_.n);_.N=Vk.prototype;_.N.emojiCustomizationEnabledChanged=function(){var F;((F=this.data)==null?0:F.emojiCustomizationEnabled)&&!this.newnessDotImpressionCounted&&((F=Nm.getCreationTime("emoji-customization-count"))&&F<PF6&&Nm.set("emoji-customization-count","0"),F=Number(Nm.get("emoji-customization-count"))||0,F<3&&(this.newnessDotEligible=!0,Nm.set("emoji-customization-count",(F+1).toString())),this.newnessDotImpressionCounted=!0)};
_.N.hideNewnessDot=function(){this.newnessDotEligible=!1;Nm.set("emoji-customization-count",(3).toString());this.data=Object.assign({},this.data||{})};
_.N.handleReactionsMute=function(F){var W=_.JR(),E=_.LQ(206221),h={checkboxData:{state:F?"CHECKBOX_STATE_OFF":"CHECKBOX_STATE_ON"}};W&&_.oj(W,E,h);this.reactionsMuted=F};
_.N.liveReactionsSettingChanged=function(){this.data=Object.assign({},this.data||{})};
_.N.configureRendererStamper=function(){return{"data.emojiFountain":{id:"emoji-fountain",mapping:{emojiFountainViewModel:{component:"yt-emoji-fountain-view-model",properties:{emojiManager:"[[emojiManager]]",isActive:"[[liveReactionsEnabled]]"}}},reuseComponents:!0},"data.reactionControlPanel":{id:"reaction-control-panel",mapping:{reactionControlPanelViewModel:{component:"yt-reaction-control-panel-view-model",properties:{newnessDotEligible:"[[newnessDotEligible]]"}}},reuseComponents:!0}}};
_.Sn.Object.defineProperties(Vk.prototype,{liveReactionsEnabled:{configurable:!0,enumerable:!0,get:function(){var F;return(!((F=this.liveReactionsData)==null||!F.isEnabled)||this.liveReactionsSetting)&&!this.reactionsMuted}}});
Vk.prototype.liveReactionsSettingChanged=Vk.prototype.liveReactionsSettingChanged;Vk.prototype.emojiCustomizationEnabledChanged=Vk.prototype.emojiCustomizationEnabledChanged;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Vk.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],Vk.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.av),_.Y("design:type",Object)],Vk.prototype,"ytLiveChatReduxBehavior",void 0);
_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],Vk.prototype,"ytActionHandlerBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],Vk.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",_.Jq)],Vk.prototype,"emojiManager",void 0);_.T([_.O(),_.Y("design:type",Object)],Vk.prototype,"newnessDotEligible",void 0);_.T([_.O(),_.Y("design:type",Object)],Vk.prototype,"newnessDotImpressionCounted",void 0);
_.T([_.O({selectorArgs:["data.liveReactionsSettingEntityKey"],selector:lwT}),_.Y("design:type",Boolean)],Vk.prototype,"liveReactionsSetting",void 0);_.T([_.O({selectorArgs:["data.liveReactionsDataEntityKey"],selector:b6T}),_.Y("design:type",Object)],Vk.prototype,"liveReactionsData",void 0);_.T([_.O({value:function(){var F=_.c("enable_lwe_web_mute"),W=Nm.get("allow-reactions");return W===void 0?!1:!W&&F}}),
_.Y("design:type",Boolean)],Vk.prototype,"reactionsMuted",void 0);_.T([_.O({reflectToAttribute:!0}),_.a("liveReactionsSetting","reactionsMuted","liveReactionsData"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Vk.prototype,"liveReactionsEnabled",null);_.T([_.ea("data.emojiCustomizationEnabled"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Vk.prototype,"emojiCustomizationEnabledChanged",null);
_.T([_.ea("liveReactionsEnabled"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Vk.prototype,"liveReactionsSettingChanged",null);Vk=_.T([_.$3({disableElementRegistration:!0,is:"yt-reaction-control-panel-overlay-view-model",noInjection:!0})],Vk);
_.r(Vk,"yt-reaction-control-panel-overlay-view-model",function(){if(qAN===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-reaction-control-panel-overlay-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_reaction_control_panel_overlay_view_model.yt.reaction.control.panel.overlay.view.model.css.js--\x3e<div id="reaction-control-panel" hidden$="[[!liveReactionsEnabled]]" class="style-scope yt-reaction-control-panel-overlay-view-model"></div>\n<div id="emoji-fountain" hidden$="[[!liveReactionsEnabled]]" class="style-scope yt-reaction-control-panel-overlay-view-model"></div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;LDT===void 0&&(LDT=document.createElement("template"));var h=LDT;E.call(W,h.content.cloneNode(!0),F.content.firstChild);qAN=F}F=qAN;return F},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var Jx8={YtPickerBehavior:{listeners:{"picker-cancelled":"onPickerCancel_"},togglePicker_:function(F){var W=this.$.pickers.selected;if(W){_.Z(this.hostElement).removeAttribute(W+"-open");var E="#picker-buttons";this.hostElement.tagName=="YT-LIVE-CHAT-MESSAGE-INPUT-RENDERER"&&(E="#picker-buttons",W==="emoji"&&_.Z(this.hostElement).querySelector("#emoji-picker-button")&&(E="#emoji-picker-button"));if(E=_.Z(this.hostElement).querySelector(E).querySelector("#"+W))E.active=!1}E=F;W==F&&(E=null);W!=F&&
_.Z(this.hostElement).setAttribute(F+"-open","");this.$.pickers.selected=E;_.dW(this.hostElement,"yt-live-chat-picker-changed",[E])},
onPickerCancel_:function(){this.togglePicker_(this.$.pickers.selected)}}};var UM=function(){var F=_.n.apply(this,arguments)||this;F.numSentMessages=0;F.timeoutDurationMs=0;F.timeoutMs=0;F.lastTimeoutTimeMs=0;F.pendingMessageId="";F.hasFiredInitialFocusActions=!1;F.isBeforeFocusEnabled=!0;F.id="";F.characterCount=0;F.maxCharacterLimit=0;F.remainingCharacterCount=0;F.inputExpanded=!1;F.buttonOverrides={iconPosition:"icon-only"};F.inReplyPanel=!1;F.countdownRatio=0;F.isTooltipVisible=!1;F.tooltipTimeout=1E4;F.systemIcons=_.c("kevlar_system_icons");F.tallerEmojiPicker=_.c("live_chat_taller_emoji_picker");
F.blockSendMessageWithCountdown=!_.c("live_chat_enable_send_button_in_slow_mode");F.sendReplyMessageInFlight=!1;F.actionMap={"yt-open-popup-action":"onOpenPopupAction","yt-close-popup-action":"onClosePopupAction","yt-live-chat-disable-before-focus-action":"onDisableBeforeFocus","yt-live-chat-component-replaced":"onComponentReplaced"};F.onResize=function(){F.maybeToggleCharacterCount()};
return F};
_.k(UM,_.n);_.N=UM.prototype;
_.N.configureRendererStamper=function(){return{"data.sendButton":{id:"send-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},"data.pickers":{id:"pickers",mapping:{emojiPickerRenderer:{component:"yt-emoji-picker-renderer",properties:{disableIncrementalLoading:"[[disableEmojiPickerIncrementalLoading]]"}},liveChatProductPickerRenderer:"yt-live-chat-product-picker-renderer",liveChatProductPickerPanelViewModel:"yt-live-chat-product-picker-panel-view-model",liveChatPollEditorPanelRenderer:"yt-live-chat-poll-editor-panel-renderer",
liveChatQnaStartPanelRenderer:"yt-live-chat-qna-start-panel-renderer"}},"data.emojiPickerButton":{id:"emoji-picker-button",mapping:{liveChatIconToggleButtonRenderer:{component:"yt-live-chat-icon-toggle-button-renderer",properties:{disabled:"[[hasInteractionMessage]]"}},buttonRenderer:{component:"yt-button-renderer",params:{buttonTooltipPosition:"top",sendServiceEndpointWhenDisabled:!0}}}},"data.pickerButtons":{id:"picker-buttons",mapping:{liveChatIconToggleButtonRenderer:{component:"yt-live-chat-icon-toggle-button-renderer",
properties:{disabled:"[[hasInteractionMessage]]"}},buttonRenderer:{component:"yt-button-renderer",params:{buttonTooltipPosition:"top",sendServiceEndpointWhenDisabled:!0},properties:{overrides:"[[buttonOverrides]]"}},reactionControlPanelOverlayViewModel:{component:"yt-reaction-control-panel-overlay-view-model"}}},"data.interactionMessage":{id:"interaction-message",mapping:{messageRenderer:{component:"yt-live-chat-message-renderer",params:{subtextOnBottom:!0}}}},errorMessage:{id:"error-message",mapping:{liveChatErrorMessageRenderer:"yt-live-chat-error-message-renderer",
liveChatTextActionsErrorMessageRenderer:"yt-live-chat-text-actions-error-message-renderer"}}}};
_.N.attached=function(){window.addEventListener("resize",this.onResize)};
_.N.detached=function(){window.removeEventListener("resize",this.onResize)};
_.N.dataChanged=function(){this.data.sendButton&&this.data.sendButton.buttonRenderer&&(this.data.sendButton.buttonRenderer.isDisabled=this.sendDisabled)};
_.N.sendMessage=function(){var F=this,W,E,h,d;return _.e(function(V){if(F.sendDisabled)return V.return();F.isTooltipVisible&&_.dW(F.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);if(F.data.sendButton&&F.data.sendButton.buttonRenderer){F.input.completeEmojis();W=F.data.sendButton.buttonRenderer.serviceEndpoint;if(!W)return V.return();h=((E=_.D(W,_.kUa))==null?void 0:E.clientIdPrefix)||"";d={client_message_id:h+String(F.numSentMessages++),rich_message:_.lz(F.input.liveChatRichMessageInput)};
F.pendingMessageId=d.client_message_id;F.inReplyPanel&&(F.sendReplyMessageInFlight=!0);_.UT(F.hostElement,[W,d]);F.input.setLiveChatRichMessageInput(null)}_.gG(V)})};
_.N.handleSendButtonAction=function(F){F.detail.actionName==="yt-service-request"&&(F.stopPropagation(),this.sendMessage())};
_.N.onSendCompleted=function(F,W){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);(F=this.get("timeoutDurationUsec",W.data))&&this.handleTimeout(Number(F)/1E3);this.errorMessage=this.get("errorMessage",W.data);this.pendingMessageId=""};
_.N.onSendError=function(){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);this.pendingMessageId&&_.dW(this.hostElement,"yt-dim-chat-item-action",[{dimChatItemAction:{clientAssignedId:this.pendingMessageId}}]);this.pendingMessageId="";this.genericErrorMessage&&(this.errorMessage={liveChatErrorMessageRenderer:{errorText:this.genericErrorMessage}})};
_.N.handlePickerButtonToggle=function(F){F=F.detail.targetId;this.ytPickerBehavior.togglePicker_(F);if(F==="emoji")this.input.focus();else if(F==="qna-start-panel"){var W,E;(W=_.Z(this.hostElement).querySelector("yt-live-chat-qna-start-panel-renderer"))==null||(E=W.querySelector("#qna-creator-text-input-field"))==null||E.focus()}};
_.N.onComponentReplaced=function(F){var W,E;F.toReplace==="REPLACE_LIVE_CHAT_ACTION_PANEL"&&((W=F.replacement.liveChatMessageInputRenderer)==null?0:(E=W.headerRenderer)==null?0:E.liveChatQnaInputPromptHeaderRenderer)&&this.input.focus()};
_.N.onEmojiSelect=function(F){this.input.focus();this.input.insertEmoji(F.detail)};
_.N.onDisableBeforeFocus=function(){this.isBeforeFocusEnabled=!1};
_.N.onInputFocusIn=function(){this.data&&(this.data.beforeFocusCommand&&this.isBeforeFocusEnabled?_.dW(this.hostElement,"yt-live-chat-actions",[[this.data.beforeFocusCommand]]):this.data.onInitialFocusCommand&&!this.hasFiredInitialFocusActions&&(_.dW(this.hostElement,"yt-live-chat-actions",[[this.data.onInitialFocusCommand]]),this.hasFiredInitialFocusActions=!0))};
_.N.onOpenPopupAction=function(F,W){var E=this;W===this.hostElement&&(this.isTooltipVisible=!0);this.tooltipTimeout&&setTimeout(function(){_.dW(E.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},this.tooltipTimeout)};
_.N.onClosePopupAction=function(){this.isTooltipVisible=!1};
_.N.characterCountChanged=function(){this.maybeToggleCharacterCount()};
_.N.focusChanged=function(){this.maybeToggleCharacterCount()};
_.N.maybeToggleCharacterCount=function(){if(this.maxCharacterLimit){var F=this.characterCount/this.maxCharacterLimit*100;this.count.classList.toggle("warning",this.characterCount!==0&&this.input.clientHeight>36);this.count.classList.toggle("error",F>100)}this.inputExpanded=this.characterCount!==0&&this.inputContainer.clientHeight>36};
_.N.computeId=function(){return this.data&&this.data.targetId||""};
_.N.computeSendDisabled=function(F,W,E,h){F=!!(this.blockSendMessageWithCountdown&&E||!F||W&&F>W||h);(W=_.Z(this.hostElement).querySelector("#send-button"))&&W.children.length&&(W.children[0].disabled=F);return F};
_.N.handleTimeout=function(F){this.timeoutDurationMs=this.timeoutMs=F;this.countdownRatio=1;this.lastTimeoutTimeMs===0&&window.requestAnimationFrame(this.updateTimeout.bind(this))};
_.N.updateTimeout=function(F){this.lastTimeoutTimeMs&&(this.timeoutMs=Math.max(0,this.timeoutMs-(F-this.lastTimeoutTimeMs)),this.countdownRatio=this.timeoutMs/this.timeoutDurationMs);this.isAttached&&this.timeoutMs?(this.lastTimeoutTimeMs=F,window.requestAnimationFrame(this.updateTimeout.bind(this))):this.lastTimeoutTimeMs=0};
_.N.onErrorMessageDismiss=function(){this.errorMessage=void 0};
_.N.onErrorMessageEdit=function(F){this.input.setLiveChatRichMessageInput(F.detail);this.input.focusAtEnd();this.errorMessage=void 0};
_.N.errorMessageChanged=function(){var F=this;_.fz(function(){_.dW(F.hostElement,"yt-live-chat-maybe-scroll-to-bottom")})};
_.N.computeAuthorNameColor=function(F){var W;if(_.c("live_chat_author_name_color_usernames")&&(F==null?0:(W=F.authorName)==null?0:W.simpleText))return _.qbn(_.$5I(F.authorName.simpleText));if(_.c("live_chat_seed_color_usernames")&&(F==null?0:F.authorSeedColorArgb))return _.qbn(_.dh(F.authorSeedColorArgb));if(_.c("live_chat_colored_usernames"))return"#cc0000";var E;return _.c("live_chat_simple_color_usernames")&&(F==null?0:(E=F.authorName)==null?0:E.simpleText)&&(F==null?0:F.authorUsernameColorLight)&&
(F==null?0:F.authorUsernameColorDark)?document.documentElement.hasAttribute("dark")?_.dh(F.authorUsernameColorDark):_.dh(F.authorUsernameColorLight):""};
_.N.onIsTooltipVisibleChanged=function(){var F=_.Z(this.hostElement).querySelector("#tooltip-accessibility-text");this.isTooltipVisible?setTimeout(function(){F.hidden=!1;F.setAttribute("role","alert")},0):(F.hidden=!0,F.removeAttribute("role"))};
_.N.onFocusedChanged=function(F){this.inputFocused=F.detail.value};
_.Sn.Object.defineProperties(UM.prototype,{sendDisabled:{configurable:!0,enumerable:!0,get:function(){return this.computeSendDisabled(this.characterCount,this.maxCharacterLimit,this.countdownActive,this.sendReplyMessageInFlight)}},
countdownStrokeDashOffset:{configurable:!0,enumerable:!0,get:function(){return this.countdownRatio*10*2*Math.PI}},
countdownActive:{configurable:!0,enumerable:!0,get:function(){return!!this.countdownRatio}},
hasInteractionMessage:{configurable:!0,enumerable:!0,get:function(){return!!this.data.interactionMessage}},
hasEmojiPickerButton:{configurable:!0,enumerable:!0,get:function(){return!!this.data.emojiPickerButton}},
showAvatar:{configurable:!0,enumerable:!0,get:function(){var F;return!((F=this.data)==null||!F.authorPhoto)&&this.characterCount>0}},
hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var F,W;return((F=this.data)==null?void 0:(W=F.pickers)==null?void 0:W.find(function(E){return E.liveChatProductPickerPanelViewModel}))!==void 0}},
tooltipMessage:{configurable:!0,enumerable:!0,get:function(){var F=this.get("data.onInitialFocusCommand.showLiveChatTooltipCommand.tooltip.tooltipRenderer.detailsText");return F?this.ytRendererBehavior.getSimpleString(F):""}},
authorNameColor:{configurable:!0,enumerable:!0,get:function(){return this.computeAuthorNameColor(this.data)}}});
UM.prototype.onIsTooltipVisibleChanged=UM.prototype.onIsTooltipVisibleChanged;UM.prototype.errorMessageChanged=UM.prototype.errorMessageChanged;UM.prototype.onErrorMessageEdit=UM.prototype.onErrorMessageEdit;UM.prototype.onErrorMessageDismiss=UM.prototype.onErrorMessageDismiss;UM.prototype.focusChanged=UM.prototype.focusChanged;UM.prototype.characterCountChanged=UM.prototype.characterCountChanged;UM.prototype.onEmojiSelect=UM.prototype.onEmojiSelect;UM.prototype.handlePickerButtonToggle=UM.prototype.handlePickerButtonToggle;
UM.prototype.onSendError=UM.prototype.onSendError;UM.prototype.onSendCompleted=UM.prototype.onSendCompleted;UM.prototype.sendMessage=UM.prototype.sendMessage;UM.prototype.dataChanged=UM.prototype.dataChanged;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],UM.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],UM.prototype,"ytActionHandlerBehavior",void 0);
_.T([_.J(Jx8.YtPickerBehavior),_.Y("design:type",Object)],UM.prototype,"ytPickerBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],UM.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.fy.YtLiveChatTooltipTargetingBehavior),_.Y("design:type",Object)],UM.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],UM.prototype,"hasFiredInitialFocusActions",void 0);
_.T([_.O(),_.Y("design:type",Object)],UM.prototype,"isBeforeFocusEnabled",void 0);_.T([_.O(),_.Y("design:type",Object)],UM.prototype,"data",void 0);_.T([_.O({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.Y("design:type",Object)],UM.prototype,"id",void 0);_.T([_.O(),_.Y("design:type",Object)],UM.prototype,"characterCount",void 0);_.T([_.O(),_.Y("design:type",Object)],UM.prototype,"maxCharacterLimit",void 0);
_.T([_.O(),_.Y("design:type",Object)],UM.prototype,"remainingCharacterCount",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],UM.prototype,"inputExpanded",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],UM.prototype,"inputFocused",void 0);_.T([_.O({value:!1}),_.Y("design:type",Boolean)],UM.prototype,"disableEmojiPickerIncrementalLoading",void 0);_.T([_.O(),_.Y("design:type",_.jB)],UM.prototype,"participantsManager",void 0);
_.T([_.O(),_.Y("design:type",Object)],UM.prototype,"buttonOverrides",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],UM.prototype,"inReplyPanel",void 0);_.T([_.a("characterCount, maxCharacterLimit, countdownActive","blockSendMessageWithCountdown"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],UM.prototype,"sendDisabled",null);_.T([_.O(),_.Y("design:type",Object)],UM.prototype,"countdownRatio",void 0);
_.T([_.a("countdownRatio"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],UM.prototype,"countdownStrokeDashOffset",null);_.T([_.a("countdownRatio"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],UM.prototype,"countdownActive",null);_.T([_.a("data.interactionMessage"),_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],UM.prototype,"hasInteractionMessage",null);
_.T([_.a("data.emojiPickerButton"),_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],UM.prototype,"hasEmojiPickerButton",null);_.T([_.a("data, characterCount"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],UM.prototype,"showAvatar",null);_.T([_.a("data.pickers"),_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],UM.prototype,"hasProductPickerPanelViewModel",null);
_.T([_.O(),_.Y("design:type",Object)],UM.prototype,"errorMessage",void 0);_.T([_.O(),_.Y("design:type",Object)],UM.prototype,"genericErrorMessage",void 0);_.T([_.O(),_.Y("design:type",Object)],UM.prototype,"isTooltipVisible",void 0);_.T([_.O(),_.Y("design:type",Object)],UM.prototype,"tooltipTimeout",void 0);_.T([_.a("data.onInitialFocusCommand"),_.Y("design:type",String),_.Y("design:paramtypes",[])],UM.prototype,"tooltipMessage",null);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],UM.prototype,"systemIcons",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],UM.prototype,"tallerEmojiPicker",void 0);_.T([_.a("data"),_.Y("design:type",String),_.Y("design:paramtypes",[])],UM.prototype,"authorNameColor",null);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],UM.prototype,"blockSendMessageWithCountdown",void 0);_.T([_.O(),_.Y("design:type",Object)],UM.prototype,"sendReplyMessageInFlight",void 0);
_.T([_.gQ("#input"),_.Y("design:type",_.lLp)],UM.prototype,"input",void 0);_.T([_.gQ("#count"),_.Y("design:type",HTMLElement)],UM.prototype,"count",void 0);_.T([_.gQ("#input-container"),_.Y("design:type",HTMLElement)],UM.prototype,"inputContainer",void 0);_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],UM.prototype,"dataChanged",null);
_.T([_.R4("yt-live-chat-send-message"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype",Promise)],UM.prototype,"sendMessage",null);_.T([_.R4("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event,_.uz]),_.Y("design:returntype")],UM.prototype,"onSendCompleted",null);_.T([_.R4("yt-service-request-error"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],UM.prototype,"onSendError",null);
_.T([_.R4("yt-live-chat-icon-toggle-button-renderer-toggle"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],UM.prototype,"handlePickerButtonToggle",null);_.T([_.R4("yt-emoji-select"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],UM.prototype,"onEmojiSelect",null);
_.T([_.ea("characterCount"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],UM.prototype,"characterCountChanged",null);_.T([_.ea("inputFocused"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],UM.prototype,"focusChanged",null);_.T([_.R4("yt-live-chat-error-message-dismiss"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],UM.prototype,"onErrorMessageDismiss",null);
_.T([_.R4("yt-live-chat-error-message-edit"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],UM.prototype,"onErrorMessageEdit",null);_.T([_.ea("errorMessage"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],UM.prototype,"errorMessageChanged",null);_.T([_.ea("isTooltipVisible"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],UM.prototype,"onIsTooltipVisibleChanged",null);
UM=_.T([_.$3({disableElementRegistration:!0,is:"yt-live-chat-message-input-renderer",noInjection:!0})],UM);
_.r(UM,"yt-live-chat-message-input-renderer",function(){if(WDO===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-message-input-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_message_input_renderer.yt.live.chat.message.input.renderer.css.js--\x3e<yt-live-chat-message-input-prompt-header-renderer data="[[data.headerRenderer.liveChatQnaInputPromptHeaderRenderer]]" hidden$="[[!data.headerRenderer.liveChatQnaInputPromptHeaderRenderer]]" class="style-scope yt-live-chat-message-input-renderer"></yt-live-chat-message-input-prompt-header-renderer><div id="container" class="style-scope yt-live-chat-message-input-renderer"><div id="top" class="style-scope yt-live-chat-message-input-renderer"><yt-img-shadow id="avatar" height="24" hidden$="[[!showAvatar]]" thumbnail="[[data.authorPhoto]]" width="24" class="style-scope yt-live-chat-message-input-renderer"></yt-img-shadow><div id="input-container" class="style-scope yt-live-chat-message-input-renderer"><yt-live-chat-author-chip author-badges="[[data.authorBadges]]" author-name="[[data.authorName]]" author-name-color="[[authorNameColor]]" hidden="" class="style-scope yt-live-chat-message-input-renderer"></yt-live-chat-author-chip><yt-live-chat-text-input-field-renderer id="input" character-count="{{characterCount}}" data="[[data.inputField.liveChatTextInputFieldRenderer]]" disabled="[[hasInteractionMessage]]" input-expanded="[[inputExpanded]]" is-chat-message-input="" max-character-limit="{{maxCharacterLimit}}" no-underline="" participants-manager="[[participantsManager]]" remaining-character-count="{{remainingCharacterCount}}" on-focused-changed="onFocusedChanged" on-focusin="onInputFocusIn" class="style-scope yt-live-chat-message-input-renderer"></yt-live-chat-text-input-field-renderer><div id="emoji-picker-button" class="style-scope yt-live-chat-message-input-renderer"></div></div><div id="right" class="style-scope yt-live-chat-message-input-renderer"><div id="count-container" class="style-scope yt-live-chat-message-input-renderer"><div id="count" class="style-scope yt-live-chat-message-input-renderer">[[remainingCharacterCount]]</div></div><div id="message-buttons" class="style-scope yt-live-chat-message-input-renderer"><div id="send-button" countdown-active$="[[countdownActive]]" hidden="[[!characterCount]]" on-yt-action="handleSendButtonAction" class="style-scope yt-live-chat-message-input-renderer"></div><svg id="countdown" countdown-active$="[[countdownActive]]" hidden$="[[!characterCount]]" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" class="style-scope yt-live-chat-message-input-renderer"><circle id="countdown-background" cx="12" cy="12" r="10" class="style-scope yt-live-chat-message-input-renderer"></circle><circle id="countdown-line" cx="12" cy="12" r="10" stroke-dashoffset$="[[countdownStrokeDashOffset]]" class="style-scope yt-live-chat-message-input-renderer"></circle></svg></div><div id="picker-buttons" hidden="[[characterCount]]" class="style-scope yt-live-chat-message-input-renderer"></div></div></div><div id="error-message" class="style-scope yt-live-chat-message-input-renderer"></div><tp-yt-iron-pages id="pickers" attr-for-selected="id" selected-attribute="selected" class="style-scope yt-live-chat-message-input-renderer"></tp-yt-iron-pages></div><div id="interaction-message" class="style-scope yt-live-chat-message-input-renderer"></div><div id="tooltip-accessibility-text" class="style-scope yt-live-chat-message-input-renderer">[[tooltipMessage]]</div>');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;FD8===void 0&&(FD8=document.createElement("template"));var h=FD8;E.call(W,h.content.cloneNode(!0),F.content.firstChild);WDO=F}F=WDO;return F},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var alK;var flx;var Rg=function(){var F=_.n.apply(this,arguments)||this;F.systemIcons=_.c("kevlar_system_icons");F.firedOnClickCommand=!1;F.inReplyPanel=!1;return F};
_.k(Rg,_.n);
Rg.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"picker-buttons",mapping:{buttonRenderer:"yt-button-renderer",liveChatIconToggleButtonRenderer:"yt-live-chat-icon-toggle-button-renderer",reactionControlPanelOverlayViewModel:{component:"yt-reaction-control-panel-overlay-view-model"}}},"data.inlineAfterMessageButton":{id:"message-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.panels":{id:"pickers",mapping:{liveChatProductPickerRenderer:"yt-live-chat-product-picker-renderer",liveChatProductPickerPanelViewModel:"yt-live-chat-product-picker-panel-view-model"}}}};
Rg.prototype.onButtonToggle=function(F){F.target.disabled||this.ytPickerBehavior.togglePicker_(F.detail.targetId)};
Rg.prototype.onClick=function(){var F=this;this.get("onClickCommand.liveChatAddToToastAction",this.data)&&!this.firedOnClickCommand&&(_.dW(this.hostElement,"yt-live-chat-add-to-toast-action",[this.data.onClickCommand]),this.firedOnClickCommand=!0,setTimeout(function(){return F.firedOnClickCommand=!1},5E3))};
_.Sn.Object.defineProperties(Rg.prototype,{hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var F,W;return((F=this.data)==null?void 0:(W=F.panels)==null?void 0:W.find(function(E){return E.liveChatProductPickerPanelViewModel}))!==void 0}}});
Rg.prototype.onButtonToggle=Rg.prototype.onButtonToggle;_.T([_.J(Jx8.YtPickerBehavior),_.Y("design:type",Object)],Rg.prototype,"ytPickerBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Rg.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],Rg.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],Rg.prototype,"data",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],Rg.prototype,"systemIcons",void 0);_.T([_.O({reflectToAttribute:!1}),_.Y("design:type",Object)],Rg.prototype,"firedOnClickCommand",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],Rg.prototype,"inReplyPanel",void 0);_.T([_.a("data.pickers"),_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Rg.prototype,"hasProductPickerPanelViewModel",null);
_.T([_.R4("yt-live-chat-icon-toggle-button-renderer-toggle"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Rg.prototype,"onButtonToggle",null);Rg=_.T([_.$3({disableElementRegistration:!0,is:"yt-live-chat-restricted-participation-renderer",noInjection:!0})],Rg);
_.r(Rg,"yt-live-chat-restricted-participation-renderer",function(){if(flx===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-restricted-participation-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_restricted_participation_renderer.yt.live.chat.restricted.participation.renderer.css.js--\x3e<div id="container" class="style-scope yt-live-chat-restricted-participation-renderer">\n  <tp-yt-iron-pages id="pickers" attr-for-selected="id" selected-attribute="selected" class="style-scope yt-live-chat-restricted-participation-renderer"></tp-yt-iron-pages>\n  <div id="explanation" class="style-scope yt-live-chat-restricted-participation-renderer">\n    <yt-icon id="icon" hidden$="[[!data.icon]]" icon="[[data.icon.iconType]]" on-click="onClick" class="style-scope yt-live-chat-restricted-participation-renderer">\n    </yt-icon>\n    <div id="body" on-click="onClick" class="style-scope yt-live-chat-restricted-participation-renderer">\n      <div id="message" class="style-scope yt-live-chat-restricted-participation-renderer">[[getSimpleString(data.message)]]</div><div id="message-button" class="style-scope yt-live-chat-restricted-participation-renderer"></div>\n    </div>\n    <div id="picker-buttons" class="style-scope yt-live-chat-restricted-participation-renderer"></div>\n  </div>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;alK===void 0&&(alK=document.createElement("template"));var h=alK;E.call(W,h.content.cloneNode(!0),F.content.firstChild);flx=F}F=flx;return F},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var eO=function(){var F=_.n.apply(this,arguments)||this;F.genericErrorMessage=_.Gr("Error, try again.");F.inReplyPanel=!1;F.hideBorder=!1;return F};
_.k(eO,_.n);eO.prototype.configureRendererStamper=function(){return{"data.actionPanel":{id:"content",mapping:{liveChatRestrictedParticipationRenderer:{component:"yt-live-chat-restricted-participation-renderer",properties:{inReplyPanel:"[[inReplyPanel]]"}},liveChatMessageInputRenderer:{component:"yt-live-chat-message-input-renderer",properties:{genericErrorMessage:"[[genericErrorMessage]]",inReplyPanel:"[[inReplyPanel]]"}},messageRenderer:{component:"ytd-message-renderer",params:{panel:!0}}}}}};
_.Sn.Object.defineProperties(eO,{template:{configurable:!0,enumerable:!0,get:function(){return uqN()}}});
_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],eO.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],eO.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Object)],eO.prototype,"genericErrorMessage",void 0);_.T([_.O(),_.Y("design:type",Object)],eO.prototype,"inReplyPanel",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],eO.prototype,"hideBorder",void 0);
eO=_.T([_.$3({is:"yt-live-chat-engagement-panel-input-renderer",disableElementRegistration:!0,noInjection:!0})],eO);_.r(eO,"yt-live-chat-engagement-panel-input-renderer",function(){return uqN()},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var OFO,bFx;OFO=_.LQ(115994);bFx=_.LQ(115993);_.Mm=function(F,W,E){var h=this;var d=E.dragDownAction;this.layer=0;this.JSC$19838_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return h.dragDownAction()}}}};
this.JSC$19838_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return h.dragDownAction()}}}};
this.fullscreen=!1;var V=_.z4();_.t5(V,OFO,this.layer);_.t5(V,bFx,this.layer);this.dragDownAction=function(){d();_.jc(V,{visualElement:h.fullscreen?OFO:bFx})};
this.gesture=new _.gA(F,W,this.JSC$19838_watchConfig,"pandown");this.attach()};
_.Mm.prototype.attach=function(){this.gesture.attach()};
_.Mm.prototype.detach=function(){this.gesture.detach()};
_.Mm.prototype.update=function(F){this.fullscreen=F;this.gesture.config=F?this.JSC$19838_watchFullScreenConfig:this.JSC$19838_watchConfig};var llw={YtMacroReplacementBehavior:[{sendServiceRequestAction:function(F){if(F&&F.length==1&&Array.isArray(F[0].loggingUrls)){F=_.xd.unsafeClone(F[0]);var W=this.macros||{},E=this.getAdModuleClient_();if(!E)return _.e7();F.loggingUrls.forEach(function(h){if(h.baseUrl){var d=h.baseUrl;var V=W;V=V===void 0?{}:V;d=E.getOptions().includes("replaceUrlMacros")?_.RSi(E,"replaceUrlMacros",{url:d,additionalMapping:V}):d;h.baseUrl=d}},this);
F=[F]}return _.UT(this.hostElement,F)},
getAdModuleClient_:function(){var F=_.WS(this);return F?(F=F.getPlayer())?new _.I8(F):null:null}}]};var nMq;var g6=function(){var F=_.n.apply(this,arguments)||this;F.isCollapsed=!1;F.modernPanels=_.c("kevlar_watch_modern_panels");F.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-update-donation-shelf-command":"handleUpdate","yt-open-popup-action":"handleOpenPopupAction"};return F};
_.k(g6,_.n);_.N=g6.prototype;_.N.configureRendererStamper=function(){return{"data.donateButton":{id:"donate-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.N.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.N.onDonateTap=function(){var F=this.get("data.donateButton.buttonRenderer.command");if(F){var W=_.JR(),E=this.get("data.donateButton.buttonRenderer.trackingParams");W&&E&&_.oj(W,_.ve(E));this.ytOpenPopupBehavior.openPopup(F)}};
_.N.onShowMore=function(){this.isCollapsed=!1;var F=_.JR(),W=this.get("data.expandButton.buttonRenderer.trackingParams");F&&W&&_.oj(F,_.ve(W))};
_.N.onShowLess=function(){this.isCollapsed=!0};
_.N.dataChanged=function(){_.V9(this.hostElement,{"--progress-bar-completion":this.data.progress*100+"%"})};
_.N.onDarkModeToggledAction=function(F){this.isDarkTheme=F};
_.N.handleUpdate=function(F){if(F=this.get("updateDonationShelfCommand.donationShelf.donationShelfRenderer",F))this.set("data.startLabel",F.startLabel),this.set("data.endLabel",F.endLabel),this.set("data.progress",F.progress),this.set("data.amountRaisedLabel",F.amountRaisedLabel),this.dataChanged()};
_.N.handleOpenPopupAction=function(F){this.get("openPopupAction.popup.ypcTransactionErrorMessageRenderer",F)&&_.dW(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"])};
_.N.computeHeaderBackgroundUrl=function(F,W){if(F)return W?F.headerBackgroundDarkUrl:F.headerBackgroundUrl};
_.N.isProgressBarVisible=function(F){return!(!F||F.progress===void 0)};
_.N.headerBackgroundClass=function(){return _.b0("HTML_DIR")==="rtl"?"flip":""};
g6.prototype.dataChanged=g6.prototype.dataChanged;_.T([_.J(_.R9.YtOpenPopupBehavior),_.Y("design:type",Object)],g6.prototype,"ytOpenPopupBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],g6.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],g6.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],g6.prototype,"ytActionHandlerBehavior",void 0);
_.T([_.O(),_.Y("design:type",Object)],g6.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Object)],g6.prototype,"isCollapsed",void 0);_.T([_.O({computed:"computeHeaderBackgroundUrl(data, isDarkTheme)"}),_.Y("design:type",String)],g6.prototype,"headerBackgroundUrl",void 0);_.T([_.O(),_.Y("design:type",Boolean)],g6.prototype,"isDarkTheme",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],g6.prototype,"modernPanels",void 0);
_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],g6.prototype,"dataChanged",null);g6=_.T([_.y({is:"ytd-donation-shelf-renderer",disableElementRegistration:!0})],g6);
_.r(g6,"ytd-donation-shelf-renderer",function(){if(nMq!==void 0)return nMq;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-donation-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header-section" class="style-scope ytd-donation-shelf-renderer">\n  <div id="header-text" class="style-scope ytd-donation-shelf-renderer">\n    [[getSimpleString(data.headerTitle)]]\n  </div>\n  <template is="dom-if" if="[[headerBackgroundUrl]]" class="style-scope ytd-donation-shelf-renderer">\n    <div id="header-background" class$="[[headerBackgroundClass()]] style-scope ytd-donation-shelf-renderer">\n      <yt-img-shadow delayed-src="[[headerBackgroundUrl]]" height="48" class="style-scope ytd-donation-shelf-renderer">\n      </yt-img-shadow>\n    </div>\n  </template>\n</div>\n\n<div id="donate-section" class="style-scope ytd-donation-shelf-renderer">\n  <div id="title-row" class="style-scope ytd-donation-shelf-renderer">\n    <yt-img-shadow id="campaign-logo" object-fit="CONTAIN" thumbnail="[[data.campaignThumbnail]]" class="style-scope ytd-donation-shelf-renderer">\n    </yt-img-shadow>\n    <div id="text-container" class="style-scope ytd-donation-shelf-renderer">\n      <div id="campaign-title" class="style-scope ytd-donation-shelf-renderer">\n        [[getSimpleString(data.campaignTitle)]]\n      </div>\n      <div id="campaign-subtitle" class="style-scope ytd-donation-shelf-renderer">\n        [[getSimpleString(data.campaignSubtitle)]]\n      </div>\n    </div>\n    <div id="donate-button" on-click="onDonateTap" class="style-scope ytd-donation-shelf-renderer"></div>\n  </div>\n  <template is="dom-if" if="[[isProgressBarVisible(data)]]" class="style-scope ytd-donation-shelf-renderer">\n    <div id="progress-bar" class="style-scope ytd-donation-shelf-renderer">\n      <div id="progress-bar-fill" class="style-scope ytd-donation-shelf-renderer"></div>\n    </div>\n    <div id="progress-bar-labels" class="style-scope ytd-donation-shelf-renderer">\n      <yt-formatted-string id="progress-bar-start" text="[[data.startLabel]]" class="style-scope ytd-donation-shelf-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="progress-bar-end" text="[[data.endLabel]]" class="style-scope ytd-donation-shelf-renderer"></yt-formatted-string>\n    </div>\n  </template>\n  <template is="dom-if" if="[[data.amountRaisedLabel]]" class="style-scope ytd-donation-shelf-renderer">\n    <div id="amount-raised" class="style-scope ytd-donation-shelf-renderer">\n      <yt-formatted-string text="[[data.amountRaisedLabel]]" class="style-scope ytd-donation-shelf-renderer"></yt-formatted-string>\n    </div>\n  </template>\n  <template is="dom-if" if="[[data.matchLabel]]" class="style-scope ytd-donation-shelf-renderer">\n    <div id="matching-label" class="style-scope ytd-donation-shelf-renderer">\n      <yt-formatted-string split-lines="" text="[[data.matchLabel]]" class="style-scope ytd-donation-shelf-renderer"></yt-formatted-string>\n    </div>\n  </template>\n</div>\n\n<template is="dom-if" if="[[!isCollapsed]]" class="style-scope ytd-donation-shelf-renderer">\n  <template is="dom-if" if="[[data.creatorMessages]]" class="style-scope ytd-donation-shelf-renderer">\n    <div id="creator-messages-section" class="style-scope ytd-donation-shelf-renderer">\n      <template is="dom-repeat" items="[[data.creatorMessages]]" class="style-scope ytd-donation-shelf-renderer">\n        <div class="creator-message style-scope ytd-donation-shelf-renderer">\n          <div class="separator style-scope ytd-donation-shelf-renderer"></div>\n          <div class="creator-message-header style-scope ytd-donation-shelf-renderer">\n            <yt-img-shadow class="avatar style-scope ytd-donation-shelf-renderer" height="26" thumbnail="[[item.thumbnail]]">\n            </yt-img-shadow>\n            <yt-formatted-string class="creator-message-name style-scope ytd-donation-shelf-renderer" text="[[item.title]]">\n            </yt-formatted-string>\n          </div>\n          <div class="creator-message-description style-scope ytd-donation-shelf-renderer">\n            [[getSimpleString(item.description)]]\n          </div>\n        </div>\n      </template>\n    </div>\n  </template>\n\n  <div id="nonprofit-section" class="style-scope ytd-donation-shelf-renderer">\n    <div id="nonprofit-row" class="style-scope ytd-donation-shelf-renderer">\n      <div id="nonprofit-title" class="style-scope ytd-donation-shelf-renderer">\n        [[getSimpleString(data.nonprofitTitle)]]<span id="verified-icon-wrapper" class="style-scope ytd-donation-shelf-renderer">\u00a0<yt-icon id="verified-icon" class="inline-icon style-scope ytd-donation-shelf-renderer" default-to-filled="true" icon="check_circle"></yt-icon>\n        </span>\n      </div>\n    </div>\n    <div id="nonprofit-subtitle" class="style-scope ytd-donation-shelf-renderer">\n      <yt-formatted-string text="[[data.nonprofitSubtitle]]" class="style-scope ytd-donation-shelf-renderer">\n      </yt-formatted-string>\n    </div>\n    <div id="nonprofit-description" class="style-scope ytd-donation-shelf-renderer">\n      [[getSimpleString(data.nonprofitDescription)]]\n    </div>\n  </div>\n</template>\n\n<div id="collapse-controls-section" class="style-scope ytd-donation-shelf-renderer">\n  <template is="dom-if" if="[[isCollapsed]]" class="style-scope ytd-donation-shelf-renderer">\n    <div id="show-more" on-click="onShowMore" class="style-scope ytd-donation-shelf-renderer">\n      <yt-formatted-string text="[[data.showMoreText]]" class="style-scope ytd-donation-shelf-renderer"></yt-formatted-string>\n    </div>\n  </template>\n  <template is="dom-if" if="[[!isCollapsed]]" class="style-scope ytd-donation-shelf-renderer">\n    <div id="show-less" on-click="onShowLess" class="style-scope ytd-donation-shelf-renderer">\n      <yt-formatted-string text="[[data.showLessText]]" class="style-scope ytd-donation-shelf-renderer"></yt-formatted-string>\n    </div>\n  </template>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return nMq=F},{mode:1});var yx6;var Qk=function(){return _.n.apply(this,arguments)||this};
_.k(Qk,_.n);_.T([_.O(),_.Y("design:type",Object)],Qk.prototype,"data",void 0);Qk=_.T([_.y({is:"ytd-donation-unavailable-renderer",disableElementRegistration:!0})],Qk);
_.r(Qk,"ytd-donation-unavailable-renderer",function(){if(yx6!==void 0)return yx6;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-donation-unavailable-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="wrapper" class="style-scope ytd-donation-unavailable-renderer">\n  <yt-formatted-string id="message" text="[[data.text]]" class="style-scope ytd-donation-unavailable-renderer">\n  </yt-formatted-string>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return yx6=F},{mode:1});var jbK;var zL=function(){return _.n.apply(this,arguments)||this};
_.k(zL,_.n);zL.prototype.computeIconType=function(F){return F?"yt-icons:"+F.toLowerCase():null};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],zL.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],zL.prototype,"data",void 0);zL=_.T([_.y({is:"ytd-limited-state-message-renderer",disableElementRegistration:!0})],zL);
_.r(zL,"ytd-limited-state-message-renderer",function(){if(jbK!==void 0)return jbK;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-limited-state-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-limited-state-message-renderer">\n  <yt-icon icon="[[computeIconType(data.icon.iconType)]]" class="style-scope ytd-limited-state-message-renderer"></yt-icon>\n  <yt-formatted-string id="title" text="[[data.headerText]]" class="style-scope ytd-limited-state-message-renderer"></yt-formatted-string>\n</div>\n<yt-formatted-string id="subtext" text="[[data.subtext]]" class="style-scope ytd-limited-state-message-renderer"></yt-formatted-string>\n<div id="action-buttons" class="style-scope ytd-limited-state-message-renderer">\n  <ytd-button-renderer data="[[data.learnMoreButton.buttonRenderer]]" class="style-scope ytd-limited-state-message-renderer"></ytd-button-renderer>\n  <ytd-button-renderer data="[[data.goHomeButton.buttonRenderer]]" class="style-scope ytd-limited-state-message-renderer">\n  </ytd-button-renderer>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return jbK=F},{mode:1});var iF$;var t_=function(){return _.n.apply(this,arguments)||this};
_.k(t_,_.n);t_.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
t_.prototype.onTap=function(F){var W=this.data&&this.data.endpoint;W&&!_.Sc(_.TB(F),this.hostElement,["YTD-SUBSCRIBE-BUTTON-RENDERER","YTD-BUTTON-RENDERER"])&&_.hF(this.hostElement,"yt-navigate",{endpoint:W})};
_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],t_.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],t_.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],t_.prototype,"data",void 0);t_=_.T([_.y({is:"ytd-autotagging-metadata-renderer",disableElementRegistration:!0})],t_);
_.r(t_,"ytd-autotagging-metadata-renderer",function(){if(iF$!==void 0)return iF$;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-autotagging-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="outer-container" on-tap="onTap" class="style-scope ytd-autotagging-metadata-renderer">\n  <ytd-thumbnail circular="" data="[[data]]" class="style-scope ytd-autotagging-metadata-renderer">\n  </ytd-thumbnail>\n  <div id="right-container" class="style-scope ytd-autotagging-metadata-renderer">\n    <div id="title-container" class="style-scope ytd-autotagging-metadata-renderer">\n      <div id="title" class="style-scope ytd-autotagging-metadata-renderer">\n        [[getSimpleString(data.title)]]\n      </div>\n      <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-autotagging-metadata-renderer">\n      </ytd-badge-supported-renderer>\n    </div>\n    <div id="subscribe-button" class="style-scope ytd-autotagging-metadata-renderer"></div>\n  </div>\n</div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return iF$=F},{mode:1});var rxK;var Cq=function(){return _.n.apply(this,arguments)||this};
_.k(Cq,_.n);Cq.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{autotaggingMetadataRenderer:"ytd-autotagging-metadata-renderer"}}}};
_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],Cq.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Cq.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],Cq.prototype,"data",void 0);Cq=_.T([_.y({is:"ytd-autotagging-metadata-row-renderer",disableElementRegistration:!0})],Cq);
_.r(Cq,"ytd-autotagging-metadata-row-renderer",function(){if(rxK!==void 0)return rxK;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-autotagging-metadata-row-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-autotagging-metadata-row-renderer">\n  [[getSimpleString(data.header)]]\n</div>\n<div id="contents" class="style-scope ytd-autotagging-metadata-row-renderer"></div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return rxK=F},{mode:1});var TbF;var oM6;var Bg=function(){var F=_.n.apply(this,arguments)||this;F.engagementPanelContent=!1;return F};
_.k(Bg,_.n);Bg.prototype.computeHasDividerLine=function(F,W){return F&&!W};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Bg.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],Bg.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine, engagementPanelContent)"}),_.Y("design:type",Boolean)],Bg.prototype,"hasDividerLine",void 0);_.T([_.O(),_.Y("design:type",Object)],Bg.prototype,"engagementPanelContent",void 0);
Bg=_.T([_.y({is:"ytd-metadata-row-header-renderer",disableElementRegistration:!0})],Bg);
_.r(Bg,"ytd-metadata-row-header-renderer",function(){if(oM6!==void 0)return oM6;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-metadata-row-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h4 id="content" class="style-scope ytd-metadata-row-header-renderer">\n  <yt-formatted-string class="content style-scope ytd-metadata-row-header-renderer" text="[[data.content]]"></yt-formatted-string>\n</h4>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return oM6=F},{mode:1});var Gg6;var vg=function(){return _.n.apply(this,arguments)||this};
_.k(vg,_.n);vg.prototype.computeHasDividerLine=function(F){return F};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],vg.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],vg.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.Y("design:type",Boolean)],vg.prototype,"hasDividerLine",void 0);vg=_.T([_.y({is:"ytd-metadata-row-renderer",disableElementRegistration:!0})],vg);
_.r(vg,"ytd-metadata-row-renderer",function(){if(Gg6!==void 0)return Gg6;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-metadata-row-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h4 id="title" hidden$="[[!data.title]]" class="style-scope ytd-metadata-row-renderer">\n  <yt-formatted-string text="[[data.title]]" class="style-scope ytd-metadata-row-renderer"></yt-formatted-string>\n</h4>\n<div id="content" with-extra-margin$="[[!data.title]]" class="style-scope ytd-metadata-row-renderer">\n  <template is="dom-repeat" items="[[data.contents]]" class="style-scope ytd-metadata-row-renderer">\n    <yt-formatted-string class="content content-line-height-override style-scope ytd-metadata-row-renderer" text="[[item]]">\n    </yt-formatted-string>\n  </template>\n</div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return Gg6=F},{mode:1});var YAu;var Ig=function(){return _.n.apply(this,arguments)||this};
_.k(Ig,_.n);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Ig.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],Ig.prototype,"data",void 0);Ig=_.T([_.y({is:"ytd-metadata-with-image-row-renderer",disableElementRegistration:!0})],Ig);
_.r(Ig,"ytd-metadata-with-image-row-renderer",function(){if(YAu!==void 0)return YAu;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-metadata-with-image-row-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-metadata-with-image-row-renderer" href$="[[computeHref_(data.thumbnailEndpoint)]]" data="[[data.thumbnailEndpoint]]">\n  <yt-img-shadow thumbnail="[[data.thumbnail]]" width="83" class="style-scope ytd-metadata-with-image-row-renderer">\n  </yt-img-shadow>\n  <div id="content" class="style-scope ytd-metadata-with-image-row-renderer">\n    <template is="dom-repeat" as="content" items="[[data.contents]]" strip-whitespace="" class="style-scope ytd-metadata-with-image-row-renderer">\n      <span class="content-text style-scope ytd-metadata-with-image-row-renderer">[[getSimpleString(content)]]</span>\n    </template>\n  </div>\n</a>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return YAu=F},{mode:1});var wWx;var cg=function(){var F=_.n.apply(this,arguments)||this;F.rounded=!0;F.fixie=!1;F.fullWidth=!1;return F};
_.k(cg,_.n);_.N=cg.prototype;_.N.configureRendererStamper=function(){return{"data.informationButton":{id:"information-button-container",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.N.onDataChanged=function(){var F=this;this.data&&!this.endpointHref&&(this.endpointLink.classList.add("button-mode"),this.endpointLink.setAttribute("tabindex","0"),this.endpointLink.setAttribute("role","button"),this.endpointLink.addEventListener("keypress",function(W){F.onEndpointLinkKeyPress(W)}))};
_.N.onEndpointLinkKeyPress=function(F){F.target===this.endpointLink&&F.keyCode===13&&_.hF(this.hostElement,"click")};
_.N.onClick=function(){if(!this.endpointHref){this.endpointLink.blur();var F;if((F=this.data)==null?0:F.endpoint)_.Rj(this.hostElement,[this.data.endpoint],this.hostElement),this.ytRendererBehavior.logExplicitClick(this.data)}};
_.N.onYtNavigate=function(F){this.endpointHref||(F.stopPropagation(),F.preventDefault())};
_.N.onInformationButtonContainerClick=function(F){F.target.id!=="information-button-container"&&(F.stopPropagation(),F.preventDefault())};
_.N.computeStyle=function(F){return F};
_.N.computeIsThumbnailStyle=function(F){return F==="RICH_METADATA_RENDERER_STYLE_THUMBNAIL"};
_.N.computeThumbnailWidth=function(F){switch(F){case "RICH_METADATA_RENDERER_STYLE_THUMBNAIL":return 178;case "RICH_METADATA_RENDERER_STYLE_BOX_ART":return 72;case "RICH_METADATA_RENDERER_STYLE_TOPIC":return 96;case "RICH_METADATA_RENDERER_STYLE_SQUARE":return 100;default:return 68}};
_.N.computeThumbnailObjectFit=function(F){switch(F){case "RICH_METADATA_RENDERER_STYLE_SQUARE":return"CONTAIN"}};
_.Sn.Object.defineProperties(cg.prototype,{endpointHref:{configurable:!0,enumerable:!0,get:function(){var F;return((F=this.data)==null?0:F.endpoint)?this.componentBehavior.computeOptionalHref_(this.data.endpoint):null}}});
cg.prototype.onYtNavigate=cg.prototype.onYtNavigate;cg.prototype.onClick=cg.prototype.onClick;cg.prototype.onDataChanged=cg.prototype.onDataChanged;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],cg.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],cg.prototype,"componentBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],cg.prototype,"ytRendererstamperBehavior",void 0);
_.T([_.O(),_.Y("design:type",Object)],cg.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.Y("design:type",String)],cg.prototype,"componentStyle",void 0);_.T([_.O({computed:"computeIsThumbnailStyle(data.style)"}),_.Y("design:type",Boolean)],cg.prototype,"isThumbnailStyle",void 0);_.T([_.O({computed:"computeThumbnailObjectFit(data.style)"}),_.Y("design:type",String)],cg.prototype,"thumbnailObjectFit",void 0);
_.T([_.O({computed:"computeThumbnailWidth(data.style)"}),_.Y("design:type",Number)],cg.prototype,"thumbnailWidth",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],cg.prototype,"rounded",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],cg.prototype,"fixie",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],cg.prototype,"fullWidth",void 0);_.T([_.gQ("#endpoint-link"),_.Y("design:type",HTMLAnchorElement)],cg.prototype,"endpointLink",void 0);
_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],cg.prototype,"onDataChanged",null);_.T([_.a("data.endpoint"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],cg.prototype,"endpointHref",null);_.T([_.R4("click"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],cg.prototype,"onClick",null);
_.T([_.R4("yt-navigate"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],cg.prototype,"onYtNavigate",null);cg=_.T([_.y({is:"ytd-rich-metadata-renderer",disableElementRegistration:!0})],cg);
_.r(cg,"ytd-rich-metadata-renderer",function(){if(wWx!==void 0)return wWx;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint-link" class="yt-simple-endpoint style-scope ytd-rich-metadata-renderer" href$="[[endpointHref]]" data="[[data.endpoint]]">\n  <template is="dom-if" restamp="" if="[[isThumbnailStyle]]" class="style-scope ytd-rich-metadata-renderer">\n    <ytd-thumbnail id="thumbnail" data="[[data]]" width="[[thumbnailWidth]]" class="style-scope ytd-rich-metadata-renderer">\n    </ytd-thumbnail>\n  </template>\n  <template is="dom-if" restamp="" if="[[!isThumbnailStyle]]" class="style-scope ytd-rich-metadata-renderer">\n    <div id="thumbnail" class="style-scope ytd-rich-metadata-renderer">\n      <yt-img-shadow object-fit="[[thumbnailObjectFit]]" thumbnail="[[data.thumbnail]]" width="[[thumbnailWidth]]" class="style-scope ytd-rich-metadata-renderer">\n      </yt-img-shadow>\n    </div>\n  </template>\n  <div id="text-container" class="style-scope ytd-rich-metadata-renderer">\n    <div id="title" class="style-scope ytd-rich-metadata-renderer">[[getSimpleString(data.title)]]</div>\n    <div id="subtitle" hidden$="[[!data.subtitle]]" class="style-scope ytd-rich-metadata-renderer">\n      [[getSimpleString(data.subtitle)]]\n    </div>\n    <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-rich-metadata-renderer">\n    </ytd-badge-supported-renderer>\n    <div id="call-to-action" class="style-scope ytd-rich-metadata-renderer">\n      <div class="style-scope ytd-rich-metadata-renderer">[[getSimpleString(data.callToAction)]]</div>\n      <yt-icon hidden="[[!data.callToActionIcon]]" icon="[[data.callToActionIcon.iconType]]" class="style-scope ytd-rich-metadata-renderer">\n      </yt-icon>\n    </div>\n  </div>\n  <div id="information-button-container" on-click="onInformationButtonContainerClick" hidden="[[!data.informationButton]]" class="style-scope ytd-rich-metadata-renderer"></div>\n</a>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return wWx=F},{mode:_.E6("kevlar_poly_si_batch_j075")?1:2});var uv6;var Dv=function(){var F=_.n.apply(this,arguments)||this;F.fixie=!1;F.fullWidth=!1;return F};
_.k(Dv,_.n);Dv.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richMetadataRenderer:{component:"ytd-rich-metadata-renderer",properties:{fixie:"[[fixie]]",fullWidth:"[[fullWidth]]"}}}}}};
Dv.prototype.computeHasDividerLine=function(F){return F};
_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],Dv.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],Dv.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.Y("design:type",Boolean)],Dv.prototype,"hasDividerLine",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],Dv.prototype,"fixie",void 0);_.T([_.O(),_.Y("design:type",Object)],Dv.prototype,"fullWidth",void 0);
Dv=_.T([_.y({is:"ytd-rich-metadata-row-renderer",disableElementRegistration:!0})],Dv);
_.r(Dv,"ytd-rich-metadata-row-renderer",function(){if(uv6!==void 0)return uv6;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-metadata-row-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-rich-metadata-row-renderer"></div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return uv6=F},{mode:1});var xI=function(){var F=_.n.apply(this,arguments)||this;F.engagementPanelContent=!1;F.fixie=!1;F.fullWidth=!1;return F};
_.k(xI,_.n);
xI.prototype.configureRendererStamper=function(){return{alwaysShownItems:{id:"always-shown",mapping:{metadataRowRenderer:"ytd-metadata-row-renderer",metadataWithImageRowRenderer:"ytd-metadata-with-image-row-renderer",metadataRowHeaderRenderer:"ytd-metadata-row-header-renderer",richMetadataRowRenderer:{component:"ytd-rich-metadata-row-renderer",properties:{fixie:"[[fixie]]",fullWidth:"[[fullWidth]]"}},autotaggingMetadataRowRenderer:"ytd-autotagging-metadata-row-renderer"}},collapsibleItems:{id:"collapsible",mapping:{metadataRowRenderer:"ytd-metadata-row-renderer",
metadataWithImageRowRenderer:"ytd-metadata-with-image-row-renderer",metadataRowHeaderRenderer:{component:"ytd-metadata-row-header-renderer",properties:{engagementPanelContent:"[[engagementPanelContent]]"}},richMetadataRowRenderer:"ytd-rich-metadata-row-renderer",autotaggingMetadataRowRenderer:"ytd-autotagging-metadata-row-renderer"}}}};
xI.prototype.computeCollapsibleItems=function(F,W,E){return F===void 0||W===void 0||E===void 0||E?[]:F.slice(W)};
xI.prototype.computeAlwaysShownItems=function(F,W){return F&&F.length?F.slice(0,W):[]};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],xI.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],xI.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],xI.prototype,"data",void 0);_.T([_.O({value:!1}),_.Y("design:type",Boolean)],xI.prototype,"collapsed",void 0);
_.T([_.O({computed:"computeAlwaysShownItems(data.rows,data.collapsedItemCount)"}),_.Y("design:type",Array)],xI.prototype,"alwaysShownItems",void 0);_.T([_.O({computed:"computeCollapsibleItems(data.rows,data.collapsedItemCount,collapsed)"}),_.Y("design:type",Array)],xI.prototype,"collapsibleItems",void 0);_.T([_.O(),_.Y("design:type",Object)],xI.prototype,"engagementPanelContent",void 0);_.T([_.O(),_.Y("design:type",Object)],xI.prototype,"fixie",void 0);
_.T([_.O(),_.Y("design:type",Object)],xI.prototype,"fullWidth",void 0);xI=_.T([_.y({is:"ytd-metadata-row-container-renderer",disableElementRegistration:!0})],xI);
_.r(xI,"ytd-metadata-row-container-renderer",function(){if(TbF!==void 0)return TbF;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-metadata-row-container-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="always-shown" class="style-scope ytd-metadata-row-container-renderer"></div>\n<div id="collapsible" hidden="[[collapsed]]" class="style-scope ytd-metadata-row-container-renderer"></div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return TbF=F},{mode:1});var SAu;var kI=function(){var F=_.n.apply(this,arguments)||this;F.currentPageUrl="";F.baseUrl="";F.isHiddenByUser=null;F.hidden=!1;F.showAboveScrim=!1;F.watchNextGrid=_.c("kevlar_watch_grid");F.modernButtons=_.c("web_modern_buttons");F.roundedContainer=!0;F.noBorder=!1;F.roundBackground=!_.c("live_chat_round_background_killswitch");F.overflowHideChat=_.c("live_chat_overflow_hide_chat");F.forceDarkTheme=!1;F.theaterWatchWhile=!1;F.isListeningForPlayerProgress=!1;F.JSC$19874_playerEvents=new Map;F.isFrameReady=
!1;F.player=null;F.actionMap={"yt-set-live-chat-collapsed-state-action":"setCollapsedState","yt-forward-redux-action-to-live-chat-iframe":"forwardReduxActionToIframe","yt-dark-theme-action":"onDarkThemeAction","yt-light-theme-action":"onLightThemeAction","yt-signal-action-close-pdg-buy-flow":"onClosePdgBuyFlow"};return F};
_.k(kI,_.n);_.N=kI.prototype;_.N.onShowHideChat=function(){this.isHiddenByUser=!this.collapsed;_.Nc(this.hostElement,"yt-set-live-chat-collapsed",[this.collapsed])};
_.N.created=function(){var F=this;this.handleIframeEventListener=function(W){F.handleIframeEvent(W)};
this.handleKeyboardEventListener=function(W){F.handleKeyboardEvent(W)};
this.JSC$19874_playerEvents.set("onVideoProgress",this.playerProgressHandler);this.JSC$19874_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$19874_playerEvents.set("onAdEnd",this.playerAdEndHandler);this.JSC$19874_playerEvents.set("onStateChange",this.playerStateChangeHandler);this.JSC$19874_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.N.attached=function(){window.addEventListener("message",this.handleIframeEventListener);window.addEventListener("keydown",this.handleKeyboardEventListener);window.addEventListener("keyup",this.handleKeyboardEventListener);this.currentPageUrl=window.location.href;this.setupPlayerProgressRelay();this.collapsedChanged()};
_.N.detached=function(){window.removeEventListener("message",this.handleIframeEventListener);window.removeEventListener("keydown",this.handleKeyboardEventListener);window.removeEventListener("keyup",this.handleKeyboardEventListener);this.currentPageUrl="";this.isListeningForPlayerProgress=!1;this.setPlayer(null);this.isFrameReady=!1};
_.N.computeBaseUrl=function(F){var W="/live_chat";this.isChatReplay()&&(W="/live_chat_replay");return _.Rs(_.UD(_.VD(_.y$(F),W),null),"").toString()};
_.N.dataChanged=function(){_.c("web_watch_theater_chat")&&(this.isHiddenByUser=null)};
_.N.urlChanged=function(){if(this.url!==void 0){this.isFrameReady=!this.isChatReplay();var F=this.url;if(this.isChatReplay()&&this.player){var W=Math.floor(this.player.getProgressState().current*1E3);F=_.ig(_.y$(F),"playerOffsetMs",W.toString()).toString()}W=this.chatframe;try{var E=F==="about:blank"?_.Coa:_.II(F),h=W.contentDocument.location,d=_.Ay(E);d!==void 0&&h.replace(d)}catch(V){W.src=F}}};
_.N.collapsedChanged=function(){_.hF(this.hostElement,"yt-chat-collapsed-changed",this.collapsed)};
_.N.handleIframeEvent=function(F){if(F&&this.baseUrl.startsWith(F.origin)&&F.source===this.chatframe.contentWindow&&_.NU(F.data))if(F.data["yt-iframed-buyflow-launcher"])this.handleBuyflowMessages(F);else if(F.data["yt-iframed-player-progress-relay"])this.handleChatFrameReady();else if(F.data["yt-show-feedback-dialog"]){var W=_.WZ().resolve(_.Fd(_.mPB));if(W){var E=F.ports,h;E&&E.length&&(h=function(){E[0].postMessage({})});
F=F.data["yt-show-feedback-dialog"];W.showFeedbackDialog(F.customProductData,F.feedbackContent,h,F.bucket)}}else if(F.data["yt-show-survey"])_.hF(this.hostElement,"yt-show-survey",F.data["yt-show-survey"]);else if(F.data["yt-purchase-membership"])_.WZ().resolve(_.EJ).resolveCommand(F.data["yt-purchase-membership"],{form:{element:this.hostElement}});else if(F.data["yt-tunnel-out-live-service-request"])this.ytComponentBehavior.resolveCommand(F.data["yt-tunnel-out-live-service-request"]);else if(F.data["yt-user-activity"])_.EB();
else if(F.data["yt-attach-live-chat-response-tracking-params"])this.attachLiveChatResponseVeTrackingParams(F.data["yt-attach-live-chat-response-tracking-params"].trackingParams);else if(F.data["yt-open-popup"])this.ytOpenPopupBehavior.openPopup(F.data["yt-open-popup"]);else if(F.data["yt-log-flow-logging-event-command"])this.ytComponentBehavior.resolveCommand(F.data["yt-log-flow-logging-event-command"]);else if(F.data["yt-hide-live-chat"])this.onShowHideChat();else F.data["yt-report-moderation-state-log"]&&
this.player&&(W={cpn:this.player.getVideoData().cpn},_.Pc("liveChatBeingModerated",W))};
_.N.attachLiveChatResponseVeTrackingParams=function(F){F=_.ve(F);var W=_.JR(),E=_.ju("liveChatRenderer.trackingParams",this.data);W&&E&&_.y7(W,_.ve(E),F)};
_.N.handleBuyflowMessages=function(F){var W=F.data["yt-iframed-buyflow-launcher"].encryptedPurchaseParams,E=F.data["yt-iframed-buyflow-launcher"].serializedTransactionFlowLoggingParams,h=F.data["yt-iframed-buyflow-launcher"].serializedPaymentsClientParams;_.CWr(_.zF(_.r2),W.replace(/-/g,"+").replace(/_/g,"/"),function(d){F.ports[0].postMessage({success:!0,buyFlowResponse:d})},void 0,function(d){F.ports[0].postMessage({success:!1,
error:d&&d.message||"Buyflow rejected without error."})},_.Ij().get("hl"),void 0,function(){F.ports[0].postMessage({closed:!0})},E,h)};
_.N.setupPlayerProgressRelay=function(){var F=this;if(!this.isListeningForPlayerProgress){var W=_.E8();W!=null&&W.getPlayerPromise&&(W.getPlayerPromise().then(function(E){F.playerApiReady(E)}),this.isListeningForPlayerProgress=!0)}};
_.N.handleChatFrameReady=function(){this.isFrameReady=!0;this.player&&this.player.getAdState()===1&&this.postToContentWindow({"yt-player-ad-start":""})};
_.N.playerApiReady=function(F){this.setPlayer(F)};
_.N.playerProgressHandler=function(){if(this.player){var F=this.player.getProgressState();this.postToContentWindow({"yt-player-video-progress":F.current})}};
_.N.playerAdStartHandler=function(F){this.postToContentWindow({"yt-player-ad-start":F})};
_.N.playerAdEndHandler=function(){this.postToContentWindow({"yt-player-ad-end":!0})};
_.N.playerStateChangeHandler=function(F){this.postToContentWindow({"yt-player-state-change":F})};
_.N.setPlayer=function(F){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19874_playerEvents);F&&(this.player=F,this.ytPlayerListenerBehavior.listenToPlayerEvents(F,this.JSC$19874_playerEvents),_.hF(this.hostElement,"player-api-ready"))};
_.N.liveChatPageUrl=function(F,W,E,h){return!E||W?"about:blank":E.liveChatRenderer?(W=_.y$(this.currentPageUrl).JSC$7936_queryData_,HlO(W),F=_.y$(F),W.add("continuation",E.liveChatRenderer.continuations[0].reloadContinuationData.continuation),E=_.Oh()==="USER_INTERFACE_THEME_DARK",(h||E)&&W.add("dark_theme","true"),_.UD(F,W),h=_.y$(F.toString()),E=h.JSC$7936_queryData_,"SESSION_INDEX"in _.fW&&(E.add("authuser",_.b0("SESSION_INDEX")),"DELEGATED_SESSION_ID"in _.fW&&E.add("pageId",_.b0("DELEGATED_SESSION_ID"))),
"INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"in _.fW&&E.add("sdc",_.b0("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT")),h.toString()):""};
_.N.isCollapsed=function(F,W){return W!==null?W:this.isChatReplay()||F&&F.conversationBarRenderer&&F.conversationBarRenderer.availabilityMessage?!0:F?F.liveChatRenderer?F.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_COLLAPSED":!_.c("live_chat_hide_premiere_replay_message")||F.conversationBarRenderer&&F.conversationBarRenderer.availabilityMessage?!1:!0:!1};
_.N.isHidden=function(F,W,E){var h=W&&W.conversationBarRenderer&&W.conversationBarRenderer.availabilityMessage,d=W&&W.liveChatRenderer&&W.liveChatRenderer.showHideButton,V=W&&W.liveChatRenderer&&W.liveChatRenderer.showButton;return E&&F&&!h&&!V||!E&&F&&!h&&!d?!0:W&&W.liveChatRenderer&&W.liveChatRenderer.initialDisplayState?W.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_HIDDEN":!1};
_.N.computeButtonOverride=function(F,W){if(F&&W)return{type:"outline"}};
_.N.setCollapsedState=function(F){_.D(F,_.RmM)&&(this.isHiddenByUser=!!_.D(F,_.RmM).collapsed,!this.isHiddenByUser&&_.c("enable_teaser_framework_web_client")&&_.dW(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement]))};
_.N.forwardReduxActionToIframe=function(F){this.postToContentWindow({"yt-live-chat-forward-redux-action":F})};
_.N.onLoopRangeChange=function(F){this.showAboveScrim=!(F==null||!F.postId)};
_.N.onDarkThemeAction=function(){this.sendDarkThemePostMessage(!0)};
_.N.onLightThemeAction=function(){this.sendDarkThemePostMessage(!1)};
_.N.onClosePdgBuyFlow=function(){this.postToContentWindow({"yt-live-chat-close-buy-flow":!0})};
_.N.sendDarkThemePostMessage=function(F){this.postToContentWindow({"yt-live-chat-set-dark-theme":F})};
_.N.onLiveChatBuyFlowCallback=function(F){this.postToContentWindow({"yt-live-chat-buy-flow-callback":F})};
_.N.handleKeyboardEvent=function(F){(0,_.xd.containsValue)(XnO,F.keyCode)&&this.postToContentWindow({"yt-live-chat-keyboard-event":{eventType:F.type,keyCode:F.keyCode}})};
_.N.isChatReplay=function(){return!!(this.data&&this.data.liveChatRenderer&&this.data.liveChatRenderer.isReplay)};
_.N.postToContentWindow=function(F){if(this.isFrameReady)try{var W=window.location.protocol+"//"+window.location.host,E;(E=this.chatframe)!=null&&E.contentWindow?this.chatframe.contentWindow.postMessage(F,W):_.OB(new _.xC("Tried posting a message to an iframe with no content window",F))}catch(h){_.a_(h)}};
_.N.shouldHideChatFrame=function(F){return F&&_.c("hide_live_chat_button_when_collapsed")};
_.Sn.Object.defineProperties(kI.prototype,{enableShowWithoutHideChatButton:{configurable:!0,enumerable:!0,get:function(){if(_.c("live_chat_overflow_hide_chat")||_.c("web_watch_chat_hide_button_killswitch"))return _.c("live_chat_overflow_hide_chat");var F,W,E,h;return!!((F=this.data)==null?0:(W=F.liveChatRenderer)==null?0:(E=W.header)==null?0:(h=E.liveChatHeaderRenderer)==null?0:h.collapseButton)}}});
kI.prototype.collapsedChanged=kI.prototype.collapsedChanged;kI.prototype.urlChanged=kI.prototype.urlChanged;kI.prototype.dataChanged=kI.prototype.dataChanged;kI.prototype.onShowHideChat=kI.prototype.onShowHideChat;_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],kI.prototype,"ytActionHandlerBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],kI.prototype,"ytRendererBehavior",void 0);
_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],kI.prototype,"ytComponentBehavior",void 0);_.T([_.J(_.om.YtPlayerListenerBehavior),_.Y("design:type",_.G$)],kI.prototype,"ytPlayerListenerBehavior",void 0);_.T([_.J(_.R9.YtOpenPopupBehavior),_.Y("design:type",Object)],kI.prototype,"ytOpenPopupBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],kI.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Object)],kI.prototype,"currentPageUrl",void 0);
_.T([_.O({computed:"computeBaseUrl(currentPageUrl,data)"}),_.Y("design:type",Object)],kI.prototype,"baseUrl",void 0);_.T([_.O({computed:"liveChatPageUrl(baseUrl, collapsed, data, forceDarkTheme)"}),_.Y("design:type",String)],kI.prototype,"url",void 0);_.T([_.O(),_.Y("design:type",Object)],kI.prototype,"isHiddenByUser",void 0);_.T([_.O({reflectToAttribute:!0,computed:"isHidden(collapsed, data, enableShowWithoutHideChatButton)"}),_.Y("design:type",Object)],kI.prototype,"hidden",void 0);
_.T([_.O({reflectToAttribute:!0,computed:"isCollapsed(data,isHiddenByUser)"}),_.Y("design:type",Boolean)],kI.prototype,"collapsed",void 0);_.T([_.O({reflectToAttribute:!0,computed:"shouldHideChatFrame(collapsed)"}),_.Y("design:type",Boolean)],kI.prototype,"hideChatFrame",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],kI.prototype,"showAboveScrim",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],kI.prototype,"watchNextGrid",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],kI.prototype,"modernButtons",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],kI.prototype,"roundedContainer",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],kI.prototype,"noBorder",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],kI.prototype,"roundBackground",void 0);
_.T([_.O({computed:"computeButtonOverride(collapsed,modernButtons)"}),_.Y("design:type",Object)],kI.prototype,"toggleButtonOverride",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],kI.prototype,"overflowHideChat",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],kI.prototype,"forceDarkTheme",void 0);_.T([_.a("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],kI.prototype,"enableShowWithoutHideChatButton",null);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],kI.prototype,"theaterWatchWhile",void 0);_.T([_.gQ("#chatframe"),_.Y("design:type",HTMLIFrameElement)],kI.prototype,"chatframe",void 0);_.T([_.R4("yt-toggle-button"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],kI.prototype,"onShowHideChat",null);_.T([_.Cz("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],kI.prototype,"dataChanged",null);
_.T([_.ea("url"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],kI.prototype,"urlChanged",null);_.T([_.ea("collapsed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],kI.prototype,"collapsedChanged",null);kI=_.T([_.y({is:"ytd-live-chat-frame",disableElementRegistration:!0})],kI);
_.r(kI,"ytd-live-chat-frame",function(){if(SAu!==void 0)return SAu;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-live-chat-frame--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<iframe frameborder="0" scrolling="no" id="chatframe" class="style-scope ytd-live-chat-frame"></iframe>\n<template is="dom-if" if="[[data.conversationBarRenderer.availabilityMessage]]" class="style-scope ytd-live-chat-frame">\n  <ytd-message-renderer data="[[data.conversationBarRenderer.availabilityMessage.messageRenderer]]" class="style-scope ytd-live-chat-frame">\n  </ytd-message-renderer>\n</template>\n<template is="dom-if" if="[[!enableShowWithoutHideChatButton]]" class="style-scope ytd-live-chat-frame">\n  <div id="show-hide-button" class="style-scope ytd-live-chat-frame">\n    <ytd-toggle-button-renderer data="[[data.liveChatRenderer.showHideButton.toggleButtonRenderer]]" noink="" overrides="[[toggleButtonOverride]]" class="style-scope ytd-live-chat-frame">\n    </ytd-toggle-button-renderer>\n  </div>\n</template>\n<template is="dom-if" if="[[enableShowWithoutHideChatButton]]" class="style-scope ytd-live-chat-frame">\n  <div id="show-hide-button" hidden="[[!collapsed]]" class="style-scope ytd-live-chat-frame">\n    <ytd-button-renderer data="[[data.liveChatRenderer.showButton.buttonRenderer]]" noink="" overrides="[[toggleButtonOverride]]" on-click="onShowHideChat" class="style-scope ytd-live-chat-frame">\n    </ytd-button-renderer>\n  </div>\n</template>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return SAu=F},{mode:1});var pW6;var A_=function(){var F=_.n.apply(this,arguments)||this;F.modern=_.c("web_modern_buttons");F.buttonOverrides={style:"call-to-action",type:"filled"};return F};
_.k(A_,_.n);A_.prototype.dataChanged=function(){this.data&&(this.data.impressionCommand&&this.data.impressionCommand.clickTrackingParams&&delete this.data.impressionCommand.clickTrackingParams,this.macroReplacementBehavior.sendServiceRequestAction([this.data.impressionCommand]),this.data.backgroundColor&&(this.enableColors=!0,this.hostElement.style.backgroundColor=_.ZP(this.data.backgroundColor)))};
A_.prototype.onHeadlineClick=function(){if(this.data&&this.data.headline){var F=this.getFormattedStringLoggingDirectives(this.data.headline);F&&this.rendererBehavior.logExplicitClick(F)}};
A_.prototype.onDescriptionClick=function(){if(this.data&&this.data.description){var F=this.getFormattedStringLoggingDirectives(this.data.description);F&&this.rendererBehavior.logExplicitClick(F)}};
A_.prototype.getFormattedStringLoggingDirectives=function(F){return F&&F.runs&&F.runs.length>0&&F.runs[0]&&F.runs[0].loggingDirectives?F.runs[0].loggingDirectives:null};
A_.prototype.dataChanged=A_.prototype.dataChanged;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],A_.prototype,"rendererBehavior",void 0);_.T([_.J(llw.YtMacroReplacementBehavior),_.Y("design:type",Object)],A_.prototype,"macroReplacementBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],A_.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Object)],A_.prototype,"navigationEndpoint",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],A_.prototype,"enableColors",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],A_.prototype,"modern",void 0);_.T([_.O(),_.Y("design:type",Object)],A_.prototype,"buttonOverrides",void 0);_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],A_.prototype,"dataChanged",null);A_=_.T([_.y({is:"ytd-action-basic-immersive-content-renderer",disableElementRegistration:!0})],A_);
_.r(A_,"ytd-action-basic-immersive-content-renderer",function(){if(pW6!==void 0)return pW6;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-action-basic-immersive-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow id="icon" hidden="[[!data.iconImage]]" thumbnail="[[data.iconImage]]" class="style-scope ytd-action-basic-immersive-content-renderer"></yt-img-shadow>\n<yt-formatted-string id="headline" text="[[data.headline]]" on-click="onHeadlineClick" class="style-scope ytd-action-basic-immersive-content-renderer"></yt-formatted-string>\n<yt-formatted-string id="desc" text="[[data.description]]" on-click="onDescriptionClick" class="style-scope ytd-action-basic-immersive-content-renderer"></yt-formatted-string>\n<ytd-button-renderer id="action" data="[[data.actionButton.buttonRenderer]]" overrides="[[buttonOverrides]]" class="style-scope ytd-action-basic-immersive-content-renderer">\n</ytd-button-renderer>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return pW6=F},{mode:1});var mk6;var KDu;var sM=function(){return _.n.apply(this,arguments)||this};
_.k(sM,_.n);sM.prototype.dataChanged=function(){var F;((F=this.data)==null?void 0:F.backgroundColor)!==void 0&&_.V9(this.hostElement,{"--bgu-color":_.ZP(this.data.backgroundColor)})};
sM.prototype.onImageTileClick=function(){var F;((F=this.data)==null?0:F.navigationEndpoint)&&_.hF(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});var W;((W=this.data)==null?0:W.clickCommand)&&this.componentBehavior.resolveCommand(this.data.clickCommand)};
_.Sn.Object.defineProperties(sM.prototype,{hasBackgroundColor:{configurable:!0,enumerable:!0,get:function(){var F;return((F=this.data)==null?void 0:F.backgroundColor)!==void 0}},
getObjectFit:{configurable:!0,enumerable:!0,get:function(){var F;if(((F=this.data)==null?void 0:F.objectFit)!==void 0)switch(this.data.objectFit){case "OBJECT_FIT_CONTAIN":return"CONTAIN";case "OBJECT_FIT_COVER":return"COVER";case "OBJECT_FIT_FILL":return"FILL"}return null}},
hasTileMetadata:{configurable:!0,enumerable:!0,get:function(){var F;return((F=this.data)==null?void 0:F.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"}},
getSecondaryDetails:{configurable:!0,enumerable:!0,get:function(){var F,W,E;if(((F=this.data)==null?void 0:(W=F.detailsLine)==null?void 0:W.texts)!=null&&((E=this.data)==null?void 0:E.detailsLine.texts.length)>0){var h;return(h=this.data)==null?void 0:h.detailsLine.texts.map(function(d){return d.text}).join("")}return null}},
getOptionalDetails:{configurable:!0,enumerable:!0,get:function(){var F,W,E;if(((F=this.data)==null?void 0:(W=F.optionalDetailsLine)==null?void 0:W.texts)!=null&&((E=this.data)==null?void 0:E.optionalDetailsLine.texts.length)>0){var h;return(h=this.data)==null?void 0:h.optionalDetailsLine.texts.map(function(d){return d.text}).join("")}return null}}});
sM.prototype.dataChanged=sM.prototype.dataChanged;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],sM.prototype,"rendererBehavior",void 0);_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],sM.prototype,"componentBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],sM.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0}),_.a("data.backgroundColor"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],sM.prototype,"hasBackgroundColor",null);
_.T([_.a("data.objectFit"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],sM.prototype,"getObjectFit",null);_.T([_.O({reflectToAttribute:!0}),_.a("data.tileRenderingStyle"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],sM.prototype,"hasTileMetadata",null);_.T([_.a("data.detailsLine"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],sM.prototype,"getSecondaryDetails",null);
_.T([_.a("data.optionalDetailsLine"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],sM.prototype,"getOptionalDetails",null);_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],sM.prototype,"dataChanged",null);sM=_.T([_.y({is:"ytd-image-tile-renderer",disableElementRegistration:!0})],sM);
_.r(sM,"ytd-image-tile-renderer",function(){if(KDu!==void 0)return KDu;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-image-tile-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e  <button class="remove-default-button-style background-adjusted style-scope ytd-image-tile-renderer" on-click="onImageTileClick">\n      <yt-img-shadow class="thumbnail style-scope ytd-image-tile-renderer" aria-label$="[[data.image.thumbnail.accessibility.accessibility_data.label]]" hidden="[[!data.image]]" object-fit="[[getObjectFit]]" thumbnail="[[data.image.thumbnail]]"></yt-img-shadow>\n      <div class="badge style-scope ytd-image-tile-renderer" hidden="[[!data.imageBadge]]">\n        <yt-img-shadow class="badge-image style-scope ytd-image-tile-renderer" thumbnail="[[data.imageBadge.thumbnail]]"></yt-img-shadow>\n      </div>\n      <div class="metadata style-scope ytd-image-tile-renderer" hidden="[[!hasTileMetadata]]">\n        <div class="headline style-scope ytd-image-tile-renderer">[[data.headline.simpleText]]</div>\n        <div class="secondary-details style-scope ytd-image-tile-renderer">[[getSecondaryDetails]]</div>\n        <div class="price style-scope ytd-image-tile-renderer">[[getOptionalDetails]]</div>\n      </div>\n </button>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return KDu=F},{mode:1});var FhF;var Lq=function(){return _.n.apply(this,arguments)||this};
_.k(Lq,_.n);Lq.prototype.getOpenLinkIcon=function(){return _.c("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"open_in_new"};
Lq.prototype.onSitelinkTap=function(){_.hF(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});if(this.data&&this.data.clickCommands)if(_.c("kevlar_command_handler_migration_killswitch"))_.Rj(this.hostElement,this.data.clickCommands,this.hostElement);else for(var F=_.U(this.data.clickCommands),W=F.next();!W.done;W=F.next())this.ytComponentBehavior.resolveCommand(W.value)};
_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],Lq.prototype,"ytComponentBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Lq.prototype,"rendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],Lq.prototype,"data",void 0);Lq=_.T([_.y({is:"ytd-sitelink-renderer",disableElementRegistration:!0})],Lq);
_.r(Lq,"ytd-sitelink-renderer",function(){if(FhF!==void 0)return FhF;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sitelink-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="style-scope ytd-sitelink-renderer">\n  <button id="clickable-area" class="remove-default-button-style style-scope ytd-sitelink-renderer" on-tap="onSitelinkTap">\n    <div id="sitelink" class="style-scope ytd-sitelink-renderer">\n      <span class="style-scope ytd-sitelink-renderer">[[data.text.text]]</span>\n      <yt-icon id="open-icon" icon="[[getOpenLinkIcon()]]" class="style-scope ytd-sitelink-renderer"></yt-icon>\n    </div>\n    <div id="description-texts" class="style-scope ytd-sitelink-renderer">\n      <template is="dom-repeat" items="[[data.descriptions]]" class="style-scope ytd-sitelink-renderer">\n        <div id="desc" class="style-scope ytd-sitelink-renderer">[[item.text]]</div>\n      </template>\n    </div>\n  </button>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return FhF=F},{mode:1});var qm=function(){var F=_.n.apply(this,arguments)||this;F.paddingFix=_.c("enable_ads_web_ep_buenos_aires_and_padding_fix");return F};
_.k(qm,_.n);qm.prototype.configureRendererStamper=function(){return{"data.sitelinkRenderers":{id:"sitelinks",mapping:{sitelinkRenderer:"ytd-sitelink-renderer"}},"data.actionButton":{id:"action",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.imageTileRenderers":{id:"image-tiles",mapping:{imageTileRenderer:"ytd-image-tile-renderer"}}}};
qm.prototype.dataChanged=function(){var F=this;this.data&&this.data.impressionCommands&&this.data.impressionCommands.forEach(function(W){W.clickTrackingParams&&delete W.clickTrackingParams;F.ytMacroReplacementBehavior.sendServiceRequestAction([W])})};
qm.prototype.shouldHideFooter=function(F){return!(F&&_.c("use_ads_engagement_panel_desktop_footer_cta"))};
_.Sn.Object.defineProperties(qm.prototype,{removeBorderFromImageTiles:{configurable:!0,enumerable:!0,get:function(){var F,W;return((F=this.data)==null?void 0:F.imageTileRenderers)===void 0||((W=this.data)==null?void 0:W.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(E){var h;return(h=_.D(E,Ol6))==null?void 0:h.removeBorder})}},
useFooteredMetadataRenderingStyle:{configurable:!0,enumerable:!0,get:function(){var F,W;return((F=this.data)==null?void 0:F.imageTileRenderers)===void 0||((W=this.data)==null?void 0:W.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(E){var h;return((h=_.D(E,Ol6))==null?void 0:h.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"})}}});
qm.prototype.dataChanged=qm.prototype.dataChanged;_.T([_.J(llw.YtMacroReplacementBehavior),_.Y("design:type",Object)],qm.prototype,"ytMacroReplacementBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],qm.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],qm.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],qm.prototype,"data",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],qm.prototype,"paddingFix",void 0);_.T([_.O({reflectToAttribute:!0}),_.a("data.imageTileRenderers"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],qm.prototype,"removeBorderFromImageTiles",null);_.T([_.O({reflectToAttribute:!0}),_.a("data.imageTileRenderers"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],qm.prototype,"useFooteredMetadataRenderingStyle",null);
_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],qm.prototype,"dataChanged",null);qm=_.T([_.y({is:"ytd-action-engagement-panel-content-renderer",disableElementRegistration:!0})],qm);
_.r(qm,"ytd-action-engagement-panel-content-renderer",function(){if(mk6!==void 0)return mk6;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-action-engagement-panel-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-action-engagement-panel-content-renderer">\n  <div id="sitelinks" hidden="[[!data.sitelinkRenderers]]" class="style-scope ytd-action-engagement-panel-content-renderer"></div>\n  <div id="image-tiles" hidden="[[!data.imageTileRenderers]]" class="style-scope ytd-action-engagement-panel-content-renderer"></div>\n</div>\n<div id="footer" hidden="[[shouldHideFooter(data.actionButton)]]" class="style-scope ytd-action-engagement-panel-content-renderer">\n  <div id="action" class="style-scope ytd-action-engagement-panel-content-renderer"></div>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return mk6=F},{mode:1});var WhT;var EL6=_.GK(function(F){var W=F.data;var E=F.customCommandResolver;F=_.uf();_.WH(F,function(){return W().interaction},E);
_.ER(F,{visibilityCallback:function(h){var d,V=(d=W().interaction)==null?void 0:d.onFirstVisible;h&&V&&_.fK(V)},
showOption:_.w1});return _.z("ad-grid-card-image-full-metadata-view-model",{class:function(){var h;return((h=W().interaction)==null?0:h.onTap)?"ytwAdGridCardImageFullMetadataViewModelHostIsClickableAdComponent":"ytwAdGridCardImageFullMetadataViewModelHost"},
el:F,"aria-label":function(){var h,d;return(h=W().interaction)==null?void 0:(d=h.accessibility)==null?void 0:d.label}},_.z("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostImage"},_.z(_.a6,{data:function(){return W().adImage}},{adImageViewModel:function(h){return _.z(_.Rz,{data:h.data,
customCommandResolver:E})}})),_.z("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadata"},_.z(_.v,{cond:function(){return W().headline},
then:function(h){return _.z(_.Ab,{text:h,className:"ytwAdGridCardImageFullMetadataViewModelHostMetadataHeadline"})}}),_.z(_.v,{cond:function(){return W().detailsLine},
then:function(h){return _.z("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataPrimary"},_.z(_.a6,{data:h},{adDetailsLineViewModel:function(d){return _.z(_.Wh,{data:d.data,customCommandResolver:E,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}}),_.z(_.v,{cond:function(){return W().secondaryDetailsLine},
then:function(h){return _.z("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataSecondary"},_.z(_.a6,{data:h},{adDetailsLineViewModel:function(d){return _.z(_.Wh,{data:d.data,customCommandResolver:E,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}})))},"Ci");var hlP=_.GK(function(F){var W=F.data;var E=F.customCommandResolver;F=_.uf();_.WH(F,function(){return W().interaction},E);
_.ER(F,{visibilityCallback:function(h){var d,V=(d=W().interaction)==null?void 0:d.onFirstVisible;h&&V&&_.fK(V)},
showOption:_.w1});return _.z("ad-grid-card-image-view-model",{class:function(){var h;return((h=W().interaction)==null?0:h.onTap)?"ytwAdGridCardImageViewModelHostIsClickableAdComponent":"ytwAdGridCardImageViewModelHost"},
el:F,"aria-label":function(){var h,d;return(h=W().interaction)==null?void 0:(d=h.accessibility)==null?void 0:d.label}},_.z(_.a6,{data:function(){return W().adImage}},{adImageViewModel:function(h){return _.z(_.Rz,{data:h.data,
customCommandResolver:E})}}),_.z("div",{class:"ytwAdGridCardImageViewModelHostCardBadge"},_.z(_.a6,{data:function(){return W().adCardBadge}},{adCardBadgeViewModel:_.H5_})))},"Di");var dVg=_.GK(function(F){var W=F.data;var E=F.customCommandResolver;F=_.uf();_.WH(F,function(){return W().interaction},E);
_.ER(F,{visibilityCallback:function(h){var d,V=(d=W().interaction)==null?void 0:d.onFirstVisible;h&&V&&_.fK(V)},
showOption:_.w1});return _.z("ad-grid-card-text-view-model",{class:function(){var h;return((h=W().interaction)==null?0:h.onTap)?"ytwAdGridCardTextViewModelHostIsClickableAdComponent":"ytwAdGridCardTextViewModelHost"},
el:F,"aria-label":function(){var h,d;return(h=W().interaction)==null?void 0:(d=h.accessibility)==null?void 0:d.label}},_.z("div",{class:"ytwAdGridCardTextViewModelHostMetadata"},_.z(_.v,{cond:function(){return W().title},
then:function(h){return _.z(_.Ab,{text:h,className:"ytwAdGridCardTextViewModelHostMetadataHeadline"})}}),_.z("div",{class:function(){return _.c("desktop_sitelinks_inline_descriptions")?"ytwAdGridCardTextViewModelHostMetadataDescriptionInline":"ytwAdGridCardTextViewModelHostMetadataDescription"}},_.z(_.xF,{each:function(){var h;
return((h=W())==null?void 0:h.descriptions)||[]},
keyBy:"INDEX"},function(h){return _.z(_.Ab,{text:h,className:function(){return _.c("desktop_sitelinks_inline_descriptions")?"ytwAdGridCardTextViewModelHostMetadataDescriptionInlineStringInline":"ytwAdGridCardTextViewModelHostMetadataDescriptionString"}})}))),_.z("div",{class:"ytwAdGridCardTextViewModelHostButton"},_.z(_.a6,{data:function(){return W().moreInfoButton}},{adButtonViewModel:function(h){return _.z(_.Sd,{data:h.data,
customCommandResolver:E})}})))},"Ei");var Ndg=_.GK(function(F){var W=F.data;var E=F.customCommandResolver;var h=F.adGridCardCollectionStyle;F=_.uf();_.ER(F,{visibilityCallback:function(d){var V,R=(V=W().interaction)==null?void 0:V.onFirstVisible;d&&R&&_.fK(R)},
showOption:_.w1});return _.z("ad-grid-card-collection-view-model",{class:function(){return"ytwAdGridCardCollectionViewModelHost"},
el:F,style:function(){return"grid-template-columns: repeat("+uQ6(h?h():W().style)+", minmax(0, 1fr));"}},_.z(_.a6,{data:function(){var d;
return(d=W())==null?void 0:d.gridCards}},{adGridCardImageViewModel:function(d){return _.z(hlP,{data:d.data,
customCommandResolver:E})},
adGridCardImageFullMetadataViewModel:function(d){return _.z(EL6,{data:d.data,customCommandResolver:E})},
adGridCardTextViewModel:function(d){return _.z(dVg,{data:d.data,customCommandResolver:E})}}))},"Fi");_.pK(_.GK(function(F){var W=F.data;F=_.uf();_.WH(F,function(){return W().interaction},SuK);
_.ER(F,{visibilityCallback:function(E){var h,d=(h=W().interaction)==null?void 0:h.onFirstVisible;E&&d&&_.fK(d)},
showOption:_.w1});return _.z("panel-text-icon-image-tiles-button-layout-content-view-model",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHost",el:F},_.z("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostCardCollection"},_.z(_.v,{cond:_.uNR("(min-width: "+((0,_.Jp)()+_.b9)+"px)"),then:function(){return _.z(_.a6,{data:function(){return W().adGridCardCollection}},{adGridCardCollectionViewModel:function(E){return _.z(Ndg,{data:E.data,
customCommandResolver:SuK})}})},
else:function(){return _.z(_.a6,{data:function(){return W().adGridCardCollection}},{adGridCardCollectionViewModel:function(E){return _.z(Ndg,{data:E.data,
customCommandResolver:SuK,adGridCardCollectionStyle:"AD_GRID_CARD_COLLECTION_STYLE_FIXED_SIX_COLUMNS"})}})}})),_.z("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostButton"},_.z(_.a6,{data:function(){return W().adButton}},{adButtonViewModel:function(E){return _.z(_.Sd,{data:E.data,
customCommandResolver:SuK})}})))},"Gi"),"panel-text-icon-image-tiles-button-layout-content-view-model",{props:{data:_.TS}});_.pK(_.GK(function(F){var W=F.data;F=_.uf();_.WH(F,function(){return W().interaction},pV6);
_.ER(F,{visibilityCallback:function(E){var h,d=(h=W().interaction)==null?void 0:h.onFirstVisible;E&&d&&_.fK(d)},
showOption:_.w1});return _.z("panel-text-icon-text-grid-cards-sub-layout-content-view-model",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHost",el:F},_.z("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostCardCollection"},_.z(_.a6,{data:function(){if(_.uNR("(min-width: "+((0,_.Jp)()+_.b9)+"px)")())var E=W().adGridCardCollection;else{E=Object.assign({},_.D(W().adGridCardCollection,blT));var h;E.gridCards!==void 0&&((h=E.gridCards)==null?void 0:h.length)>1?E.style=
"AD_GRID_CARD_COLLECTION_STYLE_FIXED_TWO_COLUMNS":E.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN";E={adGridCardCollectionViewModel:E}}return E}},{adGridCardCollectionViewModel:function(E){return _.z(Ndg,{data:E.data,
customCommandResolver:pV6})}})),_.z("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostButton"},_.z(_.a6,{data:function(){return W().adButton}},{adButtonViewModel:function(E){return _.z(_.Sd,{data:E.data,
customCommandResolver:pV6})}})))},"Hi"),"panel-text-icon-text-grid-cards-sub-layout-content-view-model",{props:{data:_.TS}});var $I=function(){var F=_.n.apply(this,arguments)||this;F.actionMap={"yt-ad-engagement-panel-click-action":"handleAdsEngagementPanelClick"};return F};
_.k($I,_.n);_.N=$I.prototype;_.N.configureRendererStamper=function(){return{"data.contentRenderer":{id:"content",mapping:{actionEngagementPanelContentRenderer:"ytd-action-engagement-panel-content-renderer",basicImmersiveEngagementPanelContentRenderer:"ytd-action-basic-immersive-content-renderer",panelTextIconImageTilesButtonLayoutContentViewModel:"panel-text-icon-image-tiles-button-layout-content-view-model",panelTextIconTextGridCardsSubLayoutContentViewModel:"panel-text-icon-text-grid-cards-sub-layout-content-view-model"}}}};
_.N.attached=function(){this.getDataFromPlayerAndRender()};
_.N.dataChanged=function(){this.getDataFromPlayerAndRender()};
_.N.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=null)};
_.N.getDataFromPlayerAndRender=function(){var F=this,W=_.WS(this.hostElement);W&&W.getPlayerPromise().then(function(E){F.getCachedDataAndListen(E)})};
_.N.getCachedDataAndListen=function(F){this.resolveCachedActions();this.player||(this.ytPlayerListenerBehavior.listenToPlayerEvent(F,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.listenToPlayerEvent(F,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=F)};
_.N.resolveCachedActions=function(){var F=_.ju("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction");(F=F&&F())&&!_.xd.isEmpty(F)&&this.sendUpdateEngagementPanelAction(F);(F=(F=_.ju("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction"))&&F())&&!_.xd.isEmpty(F)&&this.sendChangeEngagementPanelVisibilityAction(F);(F=(F=_.ju("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand"))&&F())&&!_.xd.isEmpty(F)&&this.sendScrollToEngagementPanelCommand(F)};
_.N.sendUpdateEngagementPanelAction=function(F){var W;_.dW(this.hostElement,"yt-update-engagement-panel-action",[(W=_.xd.get(F,"action"))!=null?W:F])};
_.N.sendChangeEngagementPanelVisibilityAction=function(F){_.dW(this.hostElement,"yt-change-engagement-panel-visibility-action",[F])};
_.N.sendScrollToEngagementPanelCommand=function(F){_.dW(this.hostElement,"yt-scroll-to-engagement-panel-command",[F])};
_.N.handleAdsEngagementPanelClick=function(){this.player?(this.player.onAdUxClicked("ads-engagement-panel"),_.c("pause_ad_video_on_desktop_engagement_panel_click")&&this.player.pauseVideo()):_.OB(Error("gm"))};
$I.prototype.dataChanged=$I.prototype.dataChanged;_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],$I.prototype,"actionHandlerBehavior",void 0);_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],$I.prototype,"componentBehavior",void 0);_.T([_.J(_.om.YtPlayerListenerBehavior),_.Y("design:type",_.G$)],$I.prototype,"ytPlayerListenerBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],$I.prototype,"ytRendererBehavior",void 0);
_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],$I.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],$I.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Object)],$I.prototype,"player",void 0);_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],$I.prototype,"dataChanged",null);$I=_.T([_.y({is:"ytd-ads-engagement-panel-content-renderer",disableElementRegistration:!0})],$I);
_.r($I,"ytd-ads-engagement-panel-content-renderer",function(){if(WhT!==void 0)return WhT;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ads-engagement-panel-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-ads-engagement-panel-content-renderer"></div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);
return WhT=F},{mode:1});var Vog;var Zv=function(){var F=_.n.apply(this,arguments)||this;F.player=null;F.JSC$19911_playerEvents=new Map;F.actionMap={"yt-delete-clip-engagement-panel-command":"onYtDeleteClipEngagementPanelCommand"};return F};
_.k(Zv,_.n);_.N=Zv.prototype;_.N.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.buttons":{id:"buttons",mapping:{buttonRenderer:"yt-button-renderer",commentActionButtonsRenderer:{component:"ytd-comment-action-buttons-renderer",properties:{voteCount:"[[voteCount]]"}}}}}};
_.N.created=function(){this.player=null;this.JSC$19911_playerEvents=new Map;this.JSC$19911_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange);this.JSC$19911_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$19911_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$19911_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.N.attached=function(){var F=this,W=_.WS();this.set("isDarkTheme",!!document.documentElement.hasAttribute("dark"));W&&W.getPlayerPromise().then(function(E){F.setPlayer(E);F.set("isPageLoad",!1)})};
_.N.setPlayer=function(F){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19911_playerEvents);this.set("player",F);F&&(this.ytPlayerListenerBehavior.listenToPlayerEvents(F,this.JSC$19911_playerEvents),F.getPresentingPlayerType()===2&&this.playerAdStartHandler())};
_.N.onLoopRangeChange=function(F){var W=_.WZ().resolve(_.Fd(_.KQ));if((!W||W.isOnWatch())&&this.hostElement.clientHeight){var E;!F&&((E=this.data)==null?0:E.onScrubExit)&&this.ytComponentBehavior.resolveCommand(this.data.onScrubExit)}};
_.N.onVideoProgress=function(F){var W,E,h=((W=this.player)==null?void 0:(E=W.getPresentingPlayerType)==null?void 0:E.call(W))===2;this.isAdPlaying!==h&&this.set("isAdPlaying",h);var d;if(!h&&(d=this.player)!=null&&d.getLoopRange()){E=this.player.getLoopRange();W=E.startTimeMs;E=E.endTimeMs;h=this.player.getProgressState(1).seekableStart;var V;W<h*1E3&&((V=this.data)==null?0:V.onClipViewInvalidCommand)&&(this.player.seekToLiveHead(),this.ytComponentBehavior.resolveCommand(this.data.onClipViewInvalidCommand));
F=E<F*1E3;var R;((R=this.player)==null?0:R.getLoopRange())&&F&&this.player.seekTo(W/1E3)}};
_.N.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.N.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.N.onYtDeleteClipEngagementPanelCommand=function(F){_.D(F,mtK).command&&this.ytComponentBehavior.resolveCommand(_.D(F,mtK).command)};
_.Sn.Object.defineProperties(Zv.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var F;return((F=this.data)==null?void 0:F.voteCount)||_.Gr("0")}},
channelEndpoint:{configurable:!0,enumerable:!0,get:function(){var F;return(F=this.data)==null?void 0:F.channelNavigationEndpoint}},
channelHref:{configurable:!0,enumerable:!0,get:function(){return this.ytComponentBehavior.computeHref_(this.channelEndpoint)}}});
_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],Zv.prototype,"ytComponentBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],Zv.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],Zv.prototype,"ytActionHandlerBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Zv.prototype,"ytRendererBehavior",void 0);
_.T([_.J(_.om.YtPlayerListenerBehavior),_.Y("design:type",_.G$)],Zv.prototype,"ytPlayerListenerBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],Zv.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],Zv.prototype,"isAdPlaying",void 0);_.T([_.O({reflectToAttribute:!0,value:!0}),_.Y("design:type",Boolean)],Zv.prototype,"isPageLoad",void 0);_.T([_.O({reflectToAttribute:!0,value:!0}),_.Y("design:type",Boolean)],Zv.prototype,"isDarkTheme",void 0);
_.T([_.a("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Zv.prototype,"voteCount",null);_.T([_.a("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Zv.prototype,"channelEndpoint",null);_.T([_.a("channelEndpoint"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Zv.prototype,"channelHref",null);Zv=_.T([_.y({is:"ytd-clip-attribution-renderer",disableElementRegistration:!0})],Zv);
_.r(Zv,"ytd-clip-attribution-renderer",function(){if(Vog!==void 0)return Vog;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-clip-attribution-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="main" class="style-scope ytd-clip-attribution-renderer">\n  <div id="top" class="style-scope ytd-clip-attribution-renderer">\n    <a aria-hidden="true" class="yt-simple-endpoint author-endpoint author-avatar style-scope ytd-clip-attribution-renderer" href$="[[channelHref]]" data="[[channelEndpoint]]" tabindex="-1">\n      <yt-img-shadow class="author-avatar style-scope ytd-clip-attribution-renderer" height="40" thumbnail="[[data.authorAvatar]]" width="40">\n      </yt-img-shadow>\n    </a>\n    <div id="author-container" class="style-scope ytd-clip-attribution-renderer">\n      <a aria-hidden="true" class="yt-simple-endpoint author-endpoint style-scope ytd-clip-attribution-renderer" href$="[[channelHref]]" data="[[channelEndpoint]]" tabindex="-1">\n        <ytd-channel-name id="author" badges="[[data.authorBadges]]" channel-name="[[data.clipAuthor]]" no-endpoints="" class="style-scope ytd-clip-attribution-renderer">\n        </ytd-channel-name>\n      </a>\n      <span class="style-scope ytd-clip-attribution-renderer">[[getSimpleString(data.createdText)]]</span>\n    </div>\n    <div id="menu" class="style-scope ytd-clip-attribution-renderer"></div>\n  </div>\n  <span id="title" class="style-scope ytd-clip-attribution-renderer">[[getSimpleString(data.title)]]</span>\n  <div id="bottom" class="style-scope ytd-clip-attribution-renderer">\n    <div id="buttons" class="style-scope ytd-clip-attribution-renderer"></div>\n  </div>\n  <div id="ad-overlay" class="style-scope ytd-clip-attribution-renderer">\n    <svg id="ad-image" viewBox="0 0 166.96 140.96" class="style-scope ytd-clip-attribution-renderer">\n      <g class="style-scope ytd-clip-attribution-renderer"><g class="style-scope ytd-clip-attribution-renderer">\n        <path class="cls-2 style-scope ytd-clip-attribution-renderer" d="M138.1,103.79l9.9-17h0l-9.9-5.44,9.9-17h0L138.1,59,148,42s-26,20.57-38.86,29.71-9.43-22.57-9.71-47.14S90.29-6,66.86,6,0,46.55,0,46.55l9.9,6.19L0,72.54l9.9,6.35L0,98.69,9.9,105,0,124.84s63.84-42,79.56-50.56c14.81-8.09,12.15,27.13,11.87,45.13s9.14,21.43,22,13.71c12.42-7.45,33.1-22.9,34.49-23.94Z" transform="translate(0 0.25)"></path>\n        <path class="cls-3 style-scope ytd-clip-attribution-renderer" d="M102.26,71.67V137c.27,0,.55,0,.84-.05V72.54A4.36,4.36,0,0,1,102.26,71.67Z" transform="translate(0 0.25)"></path>\n        <path class="cls-4 style-scope ytd-clip-attribution-renderer" d="M50.49,121.06c1.82-2.79,4.46-4.68,7.11-6.57,1.3-.93,2.61-1.85,3.86-2.84a4.06,4.06,0,0,0,.95-1.75c.22-3.44-2.51-6.92-5.93-6.42-3.62,0-7.24,2.84-10.08,4.72-3.78,2.5-7.06,6.32-9.77,9.91-1.43,1.9-2.72,3.71-4,5.68-2.76,4.13-4.4,8.7-6.6,13.21a16.79,16.79,0,0,1,.55-3.13c2-5.06,4.07-10.07,7.32-14.49,1-1.36,2-2.78,3-4.12a5.68,5.68,0,0,1,1.45-.86c.28-1.65,2-2.64,3-4.07,0-.06.5.19.77.3a7.55,7.55,0,0,1,.53-1.46c0-.09.61.11.94.17,0-.36,0-.72,0-1.08,0-.1.19-.18.28-.27,1.09-1.08,2.57-1.56,3.71-2.64a12.29,12.29,0,0,1,4.18-2.46,19.89,19.89,0,0,1,5.13-1.09c3.21-.27,6.5,3.42,7.27,5.72.21.64.41,1.28.69,2.15l3.71-1.73a1.57,1.57,0,0,1,2.13.26l-.35-1,5.12-1.33c1.06.89,2.1.2,3.16,0,.86-.18,1.78-.16,1.87-1.37,0-.06.5-.19.53-.13a4.74,4.74,0,0,1,.37.87l3.05-.58-.08.81c-3.69,1.11-7.47,1.69-11,2.9a28.1,28.1,0,0,0-7.73,4,12.91,12.91,0,0,0-4,5.89,33.12,33.12,0,0,1-7.84,11.43c-1.53,1.54-3.32,2.81-5,4.23a4.84,4.84,0,0,1-3.55,1.22c-1.33-.06-1.67-.23-2-1.49a4.81,4.81,0,0,1,.19-3.38c1.63-3.31,3.52-6.4,6.53-8.65l-.23.49c.11,0,.2.07.23.05l.86-.94Zm-6.3,11.57a1.69,1.69,0,0,0,1.3,1.43,6,6,0,0,0,2.76-1.2c2-1.71,4-3.53,5.94-5.33a4,4,0,0,0,.47-.89c.31-.52,1.52-1.1,1.84-1.61,1.49-2.4,2.76-4.89,4.22-7.31.27-.45.22-3.25-.1-3.46a19.68,19.68,0,0,0-3.49,2.44c-1,.5-1.65,1.85-2.64,2.33a13.34,13.34,0,0,0-3,2.67c-1,1-1.92,1.93-2.8,3a34.65,34.65,0,0,0-2.3,3.11C45.65,128.87,44.17,131.53,44.19,132.63Z" transform="translate(0 0.25)"></path>\n        <path class="cls-1 style-scope ytd-clip-attribution-renderer" d="M0,124.84V46.55S43.43,18,66.86,6,99.14,0,99.43,24.55s-3.14,56.29,9.71,47.14S148,42,148,42v67.14s-21.71,16.29-34.57,24-22.29,4.29-22-13.71,2.94-53.22-11.87-45.13C63.84,82.87,0,124.84,0,124.84Z" transform="translate(0 0.25)"></path>\n        <path class="cls-5 style-scope ytd-clip-attribution-renderer" d="M119,12.45c-.87,10.43-4.13,19.08-15,22.06,13.42.52,14.54,9.3,15.29,18.31,1.28-9.85,4.42-18.14,15-20.18C123.63,31.85,120.11,23.44,119,12.45Z" transform="translate(0 0.25)"></path>\n        <g class="cls-6 style-scope ytd-clip-attribution-renderer">\n          <polygon class="cls-4 style-scope ytd-clip-attribution-renderer" points="166.96 114.12 146.52 104.85 161.66 80.3 137.84 92.19 132.87 70.65 126.28 95.37 110.8 90.89 120.61 104.1 105.23 112.92 119.7 114.68 116.36 135.53 131.9 122.15 141.06 140.96 143.28 116.82 166.96 114.12"></polygon>\n          <path class="cls-5 style-scope ytd-clip-attribution-renderer" d="M73.23,20.28c1.5-8,.86-14.91-1.89-20.53L69.79.51C72.37,5.79,73,12.34,71.54,20c-3,16.13-14.32,29.76-28.12,33.92a31.14,31.14,0,0,1-7.73,1.27A39.72,39.72,0,0,0,19.94,24.42c-4-2.94-7.71-3.92-10.8-2.86-5.5,1.88-6.8,9.18-4.87,15.13,3.88,11.93,16.48,20,29.69,20.2,0,.43,0,.86-.07,1.29a37.87,37.87,0,0,1-19.27,30l.82,1.51a35.69,35.69,0,0,0,5.18-3.42,39.75,39.75,0,0,0,15-28c0-.47.06-.94.07-1.41a32.46,32.46,0,0,0,8.24-1.34C58.33,51.2,70.11,37,73.23,20.28ZM34,55.17c-12.5-.23-24.4-7.77-28.06-19C4.5,31.81,5,26.47,8.05,24.09a5.66,5.66,0,0,1,1.66-.9c3.18-1.1,6.76.82,9.2,2.62A38,38,0,0,1,34,55.17Z" transform="translate(0 0.25)"></path>\n        </g>\n        <path class="cls-3 style-scope ytd-clip-attribution-renderer" d="M17.4,46.23,17,45.51,24.42,41l.44.71Q21.2,43.94,17.4,46.23Zm14.9-9.15-.44-.71,7.42-4.6.44.71ZM47.16,27.9l-.44-.72c2.57-1.58,5.07-3.09,7.47-4.54l.44.72Q51,25.52,47.16,27.9Zm15-8.94-.42-.73c2.85-1.62,5.37-3,7.69-4.19l.39.75C67.5,16,65,17.34,62.16,19ZM96,14.42a14,14,0,0,0-2.35-3.14l.58-.6A14.64,14.64,0,0,1,96.71,14ZM77.7,11.11l-.32-.77a32.13,32.13,0,0,1,8.49-2.4l.09.83A31.86,31.86,0,0,0,77.7,11.11Z" transform="translate(0 0.25)"></path>\n        <polygon class="cls-3 style-scope ytd-clip-attribution-renderer" points="57.21 88.12 56.37 88.65 56.37 11.92 57.21 11.45 57.21 88.12"></polygon>\n        <path class="cls-3 style-scope ytd-clip-attribution-renderer" d="M109.94,80.05a6.68,6.68,0,0,1-5.19-2.48l.64-.55c1.93,2.22,4.35,2.74,7.49,1.63l.28.79A9.59,9.59,0,0,1,109.94,80.05Zm10.81-5.11-.49-.69c2.11-1.48,4.48-3.21,7.06-5.14l.51.68C125.24,71.72,122.86,73.45,120.75,74.94Z" transform="translate(0 0.25)"></path>\n        <path class="cls-3 style-scope ytd-clip-attribution-renderer" d="M17,103.93l-.46-.7,7.28-4.83.46.7Zm14.55-9.68-.46-.7q3.73-2.49,7.27-4.84l.47.7Zm14.57-9.64-.46-.7q3.84-2.5,7.36-4.73l.45.71C51.15,81.37,48.69,83,46.14,84.61Zm14.8-9.26-.43-.73c2.89-1.7,5.4-3.08,7.68-4.22l.38.75C66.3,72.28,63.81,73.66,60.94,75.35ZM84.8,68.18A10.48,10.48,0,0,0,80,67.31a13.7,13.7,0,0,0-3.47.55l-.22-.81A14.45,14.45,0,0,1,80,66.47a11.37,11.37,0,0,1,5.15,1Z" transform="translate(0 0.25)"></path>\n        <path class="cls-3 style-scope ytd-clip-attribution-renderer" d="M98.67,127.76c-2.62-.79-4.81-2.9-6.35-6.12l.76-.36c1,2.09,2.82,4.77,5.84,5.68Zm8.65-1.68-.4-.73c1.81-1,4.31-2.53,7.45-4.55l.45.7C111.67,123.53,109.15,125.07,107.32,126.08Zm14.81-9.4-.47-.7c2.38-1.59,4.82-3.26,7.24-4.92l.47.69C127,113.41,124.51,115.08,122.13,116.68Z" transform="translate(0 0.25)"></path>\n        <ellipse class="cls-4 style-scope ytd-clip-attribution-renderer" cx="71.33" cy="51.78" rx="8.55" ry="6.47" transform="translate(-6.69 93.03) rotate(-63.7)"></ellipse>\n      </g></g>\n    </svg>\n    <div id="ad-text" class="style-scope ytd-clip-attribution-renderer">[[getSimpleString(data.adPlayingText)]]</div>\n  </div>\n</div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return Vog=F},{mode:1});var UVO;var X2=function(){var F=_.n.apply(this,arguments)||this;F.player=null;F.JSC$19916_playerEvents=new Map;return F};
_.k(X2,_.n);_.N=X2.prototype;_.N.created=function(){this.player=null;this.JSC$19916_playerEvents=new Map;this.JSC$19916_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$19916_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$19916_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.N.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.N.attached=function(){var F=this,W=_.WS();W&&W.getPlayerPromise().then(function(E){F.setPlayer(E);F.set("isPageLoad",!1)})};
_.N.setPlayer=function(F){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19916_playerEvents);this.set("player",F);if(F){this.ytPlayerListenerBehavior.listenToPlayerEvents(F,this.JSC$19916_playerEvents);var W;(F==null?void 0:(W=F.getPresentingPlayerType)==null?void 0:W.call(F))===2&&this.playerAdStartHandler()}};
_.N.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.N.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.N.onVideoProgress=function(){var F,W,E=((F=this.player)==null?void 0:(W=F.getPresentingPlayerType)==null?void 0:W.call(F))===2;this.isAdPlaying!==E&&this.set("isAdPlaying",E)};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],X2.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],X2.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.om.YtPlayerListenerBehavior),_.Y("design:type",_.G$)],X2.prototype,"ytPlayerListenerBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],X2.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],X2.prototype,"isAdPlaying",void 0);
_.T([_.O({reflectToAttribute:!0,value:!0}),_.Y("design:type",Boolean)],X2.prototype,"isPageLoad",void 0);X2=_.T([_.y({is:"ytd-clip-section-footer-renderer",disableElementRegistration:!0})],X2);
_.r(X2,"ytd-clip-section-footer-renderer",function(){if(UVO!==void 0)return UVO;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-clip-section-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="buttons" class="style-scope ytd-clip-section-footer-renderer"></div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return UVO=F},{mode:1});var RlP;var elx;var Hg=function(){return _.n.apply(this,arguments)||this};
_.k(Hg,_.n);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Hg.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],Hg.prototype,"data",void 0);Hg=_.T([_.y({is:"ytd-clip-ad-state-renderer",disableElementRegistration:!0})],Hg);
_.r(Hg,"ytd-clip-ad-state-renderer",function(){if(elx!==void 0)return elx;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-clip-ad-state-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="message" class="style-scope ytd-clip-ad-state-renderer">\n  <div id="title" class="style-scope ytd-clip-ad-state-renderer">[[getSimpleString(data.title)]]</div>\n  <div id="body" class="style-scope ytd-clip-ad-state-renderer">[[getSimpleString(data.body)]]</div>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return elx=F},{mode:1});var Mo6;var Pg=function(){var F=_.n.apply(this,arguments)||this;F.value="";F.valid=!1;F.userChangedValue=!1;F.disabled=!1;F.actionMap={"yt-clip-creation-disable":"onClipCreationDisable","yt-clip-creation-enable":"onClipCreationEnable","yt-clip-creation-visibility-changed":"onClipCreationVisibilityChange"};return F};
_.k(Pg,_.n);_.N=Pg.prototype;_.N.detached=function(){this.userChangedValue=!1};
_.N.handleKeyDown=function(F){if(_.Cc)var W=13;else _.qrY&&_.BY?W=13:W=13;F.keyCode===W&&F.preventDefault()};
_.N.handleInput=function(){var F=_.Z(this.hostElement).querySelector("#title");if(F){var W=(F.value||"").replace(/\r|\n/g," ");this.set("value",W);F.value=W;this.valid=F.validate();this.userChangedValue=!0}};
_.N.handleBlur=function(){this.valid=_.Z(this.hostElement).querySelector("#title").validate()};
_.N.onValueChanged=function(){_.hF(this.hostElement,"title-changed",{title:this.value})};
_.N.onValidChanged=function(){_.hF(this.hostElement,"title-valid-changed",{valid:this.valid})};
_.N.setInput=function(F,W){var E=_.Z(this.hostElement).querySelector("#title");E&&(E.value=F,this.handleInput(),W&&(E.invalid=!1,this.valid=!0))};
_.N.onClipCreationDisable=function(){this.set("disabled",!0)};
_.N.onClipCreationEnable=function(){this.set("disabled",!1)};
_.N.onClipCreationVisibilityChange=function(F){var W=this;F.visible?requestAnimationFrame(function(){var E;((E=_.Z(W.hostElement).querySelector("#title"))==null?void 0:E.inputElement).textarea.focus()}):(this.setInput("",!0),this.userChangedValue=!1)};
Pg.prototype.onValidChanged=Pg.prototype.onValidChanged;Pg.prototype.onValueChanged=Pg.prototype.onValueChanged;Pg.prototype.handleBlur=Pg.prototype.handleBlur;Pg.prototype.handleInput=Pg.prototype.handleInput;Pg.prototype.handleKeyDown=Pg.prototype.handleKeyDown;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Pg.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],Pg.prototype,"ytActionHandlerBehavior",void 0);
_.T([_.O(),_.Y("design:type",Object)],Pg.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Object)],Pg.prototype,"value",void 0);_.T([_.O(),_.Y("design:type",Object)],Pg.prototype,"valid",void 0);_.T([_.O(),_.Y("design:type",Object)],Pg.prototype,"userChangedValue",void 0);_.T([_.O(),_.Y("design:type",Object)],Pg.prototype,"disabled",void 0);_.T([_.R4("keydown"),_.Y("design:type",Function),_.Y("design:paramtypes",[KeyboardEvent]),_.Y("design:returntype")],Pg.prototype,"handleKeyDown",null);
_.T([_.R4("input"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Pg.prototype,"handleInput",null);_.T([_.R4("blur"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Pg.prototype,"handleBlur",null);_.T([_.ea("value"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Pg.prototype,"onValueChanged",null);
_.T([_.ea("valid"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Pg.prototype,"onValidChanged",null);Pg=_.T([_.y({is:"ytd-clip-creation-text-input-renderer",disableElementRegistration:!0})],Pg);
_.r(Pg,"ytd-clip-creation-text-input-renderer",function(){if(Mo6!==void 0)return Mo6;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-clip-creation-text-input-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-textarea id="title" char-counter="" disabled="[[disabled]]" label="[[getSimpleString(data.placeholderText)]]" maxlength="[[data.maxCharacterLimit]]" no-label-float="" pattern=".+" required="" use-v2-underline="" class="style-scope ytd-clip-creation-text-input-renderer"></tp-yt-paper-textarea>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return Mo6=F},{mode:1});var gLT;var Q5w;var zlw;var toT;var CWP;var J_=function(){var F=_.n.apply(this,arguments)||this;F.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled_","yt-clip-creation-enable":"onClipCreationEnable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};F.pendingStoryboardImages_={};F.pixelRatioBreakpoints_=["1dppx","1.5dppx","2dppx","3dppx"];F.tickLabelInterval=30;F.mediumTickInterval=5;F.largeTickInterval=15;F.aboveRulerHeight=32;F.rulerHeight=50;F.smallTickHeight=4;F.mediumTickHeight=8;F.largeTickHeight=16;F.mediaListeners_=
{};return F};
_.k(J_,_.n);_.N=J_.prototype;_.N.attached=function(){var F=this;this.updatePixelRatio_();this.pixelRatioBreakpoints_.forEach(function(W){W=_.U(["screen and (min-resolution: "+W+")","screen and (max-resolution: "+W+")"]);for(var E=W.next();!E.done;E=W.next()){E=E.value;var h=window.matchMedia(E);h&&(F.mediaListeners_[E]=F.updatePixelRatio_.bind(F),h.addEventListener?h.addEventListener("change",F.mediaListeners_[E]):h.addListener?h.addListener(F.mediaListeners_[E]):delete F.mediaListeners_[E])}})};
_.N.detached=function(){this.setPlayer(null);for(var F=_.U(Object.keys(this.mediaListeners_)),W=F.next();!W.done;W=F.next()){var E=W.value;W=this.mediaListeners_[E];(E=window.matchMedia(E))&&(E.removeEventListener?E.removeEventListener("change",W):E.removeListener&&E.removeListener(W))}this.mediaListeners_={};this.storyboardImages_&&this.splice("storyboardImages_",0,this.storyboardImages_.length)};
_.N.onVisibilityChangedAction_=function(F){var W=this;F.visible&&!this.player_&&(F=_.WS())&&F.getPlayerPromise().then(function(E){W.setPlayer(E)})};
_.N.setPlayer=function(F){F&&this.set("player_",F)};
_.N.updatePixelRatio_=function(){this.set("devicePixelRatio_",Math.max(1,window.devicePixelRatio))};
_.N.setUpCanvas_=function(){var F=this.rulerWidth,W=this.devicePixelRatio_,E=this.visible;this.set("canvasReady_",!1);if(E&&W!==0){E=this.aboveRulerHeight+this.rulerHeight;var h=_.Z(this.hostElement).querySelector("#ticks");h.width=F*W;h.height=E*W;h.style.width=F+"px";h.style.height=E+"px";h.getContext("2d").scale(W,W);this.set("canvasReady_",!0)}};
_.N.drawRuler_=function(F,W,E,h,d,V,R,M,g,t,C,B){F&&E&&W&&(F=_.Z(this.hostElement).querySelector("#ticks"),W=F.getContext("2d"),W.clearRect(0,0,F.width,F.height),W.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),W.lineWidth=2,W.beginPath(),W.moveTo(0,this.aboveRulerHeight),W.lineTo(F.width,this.aboveRulerHeight),W.moveTo(0,F.height),W.lineTo(F.width,F.height),W.stroke(),this.drawRulerTicks_(F,V,d,h),this.drawStoryboardImages_(F,E,V,d,h),W.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-themed-overlay-background"),
W.fillRect(0,this.aboveRulerHeight,this.timeToPixels_(R-V,h,!1),this.rulerHeight),E=this.timeToPixels_(M-V,h,!1),W.fillRect(E,this.aboveRulerHeight,F.width-E,this.rulerHeight),this.drawSpeedLines_(F,V,B))};
_.N.drawRulerTicks_=function(F,W,E,h){var d=F.getContext("2d");d.save();d.lineWidth=1;for(var V=Math.floor(Math.max(0,W-this.tickLabelInterval));V<W+E;V++){d.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled");var R=(V-W)*h;d.beginPath();d.moveTo(R,F.height);var M=this.smallTickHeight;V%this.largeTickInterval===0?M=this.largeTickHeight:V%this.mediumTickInterval===0&&(M=this.mediumTickHeight);d.lineTo(R,F.height-M);d.stroke();V%this.tickLabelInterval===0&&(d.font=
getComputedStyle(this.hostElement).getPropertyValue("font"),d.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled"),d.fillText(ZY(V),R+4,12),d.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),d.moveTo(R,0),d.lineTo(R,this.aboveRulerHeight),d.stroke())}d.restore()};
_.N.percentToHex_=function(F){F=Math.round(F*255).toString(16);F.length<2&&(F="0"+F);return F};
_.N.drawSpeedLines_=function(F,W,E){var h=F.getContext("2d");h.save();var d=Math.min(25,Math.abs(E)-15)/25,V=F.width*.3*d,R=F.width*-.3,M=F.width*1.3,g=this.aboveRulerHeight;F=F.height;var t=Math.round(4*d),C=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-primary");C.length<7&&(C="#"+C.substring(1,4).repeat(2));var B=this.percentToHex_(.5+d/2);B=C+B;C+="00";if(d>0)for(d=0;d<t;d++){var I=R+Math.random()*(M-R),x=g+Math.random()*(F-g),A=V+W%V,X=h.createLinearGradient(I,x,I+A,x);
E<0?(X.addColorStop(0,B),X.addColorStop(.4,B),X.addColorStop(.9,C)):(X.addColorStop(.1,C),X.addColorStop(.6,B),X.addColorStop(1,B));h.strokeStyle=X;h.lineWidth=1;h.beginPath();h.moveTo(I,x);h.lineTo(I+A,x);h.stroke()}h.restore()};
_.N.getStoryboardForTime_=function(F,W,E){E===void 0&&(E=W.getNumberOfStoryboardLevels()-1);F=W.getStoryboardFrameIndex(F,E);return W.getStoryboardFrame(F,E)};
_.N.drawStoryboardImages_=function(F,W,E,h,d){if(!this.disabled){F=F.getContext("2d");var V=this.getStoryboardForTime_(0,W);if(V){var R=V.width/V.columns;V=V.height/V.rows;var M=R/V,g=this.rulerHeight*M;g=this.tickLabelInterval*(M<this.tickLabelInterval*d/this.rulerHeight?1/Math.floor(this.tickLabelInterval*d/g):Math.round(g/(this.tickLabelInterval*d)));var t=g*d,C=this.rulerHeight,B=t/this.rulerHeight,I=Math.floor(Math.max(0,E-g));for(I-=I%g;I<E+h;I+=g){var x=this.getStoryboardForTime_(I,W),A=this.getPreloadedStoryboard_(x.url);
if(A){var X=(I-E)*d,P=this.aboveRulerHeight,b=x.column*R,l=x.row*V;if(M<B){var w=C/(t/M);x=R;w*=V;l+=(V-w)/2}else x=t/(C*M)*R,w=V,b+=(R-x)/2;F.drawImage(A,b,l,x,w,X,P,t,C)}else this.fetchStoryboardImage_(x)}}}};
_.N.getPreloadedStoryboard_=function(F){return this.storyboardImages_.find(function(W){if(W.src==F)return!0;var E=W.src.indexOf(F);return E!=-1&&E==W.src.length-F.length})};
_.N.fetchStoryboardImage_=function(F){var W=this,E=this.getPreloadedStoryboard_(F.url),h=this.pendingStoryboardImages_[F.url];E||h!==void 0||(E=new Promise(function(d){var V=new Image(F.width,F.height);V.src=F.url;V.onload=function(){d(V)};
V.onerror=function(){d(null)}}),this.pendingStoryboardImages_[F.url]=E,E.then(function(d){d&&W.push("storyboardImages_",d);
return d}).finally(function(){delete W.pendingStoryboardImages_[F.url]}))};
_.N.onClipCreationEnable_=function(){this.set("forceRender_",this.forceRender_+1)};
_.N.timeToPixels_=function(F,W,E){F*=W;return E===void 0||E?F+"px":F};
_.N.onDarkModeToggled_=function(){this.set("forceRender_",this.forceRender_+1)};
J_.prototype.drawRuler_=J_.prototype.drawRuler_;J_.prototype.setUpCanvas_=J_.prototype.setUpCanvas_;_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],J_.prototype,"ytActionHandlerBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],J_.prototype,"ytRendererBehavior",void 0);_.T([_.O({value:0}),_.Y("design:type",Number)],J_.prototype,"start",void 0);_.T([_.O({value:30}),_.Y("design:type",Number)],J_.prototype,"end",void 0);
_.T([_.O({value:!1}),_.Y("design:type",Boolean)],J_.prototype,"visible",void 0);_.T([_.O(),_.Y("design:type",Object)],J_.prototype,"player_",void 0);_.T([_.O(),_.Y("design:type",Number)],J_.prototype,"tickSpacing",void 0);_.T([_.O(),_.Y("design:type",Number)],J_.prototype,"windowSizeSec",void 0);_.T([_.O({value:0}),_.Y("design:type",Number)],J_.prototype,"rulerWidth",void 0);_.T([_.O({value:0}),_.Y("design:type",Number)],J_.prototype,"rulerShift",void 0);
_.T([_.O({value:!1}),_.Y("design:type",Boolean)],J_.prototype,"canvasReady_",void 0);_.T([_.O({value:function(){return[]}}),
_.Y("design:type",Array)],J_.prototype,"storyboardImages_",void 0);_.T([_.O({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],J_.prototype,"disabled",void 0);_.T([_.O({value:0}),_.Y("design:type",Number)],J_.prototype,"forceRender_",void 0);_.T([_.O({value:1}),_.Y("design:type",Number)],J_.prototype,"devicePixelRatio_",void 0);_.T([_.O({value:0}),_.Y("design:type",Number)],J_.prototype,"windowSpeed",void 0);
_.T([_.ea("visible","devicePixelRatio_","rulerWidth"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],J_.prototype,"setUpCanvas_",null);
_.T([_.ea("visible","canvasReady_","player_","tickSpacing","windowSizeSec","rulerShift","start","end","storyboardImages_.*","forceRender_","disabled","windowSpeed"),_.Y("design:type",Function),_.Y("design:paramtypes",[Boolean,Boolean,Object,Number,Number,Number,Number,Number,Object,Number,Boolean,Number]),_.Y("design:returntype")],J_.prototype,"drawRuler_",null);J_=_.T([_.$3({is:"yt-clip-creation-scrubber-canvas",disableElementRegistration:!0})],J_);
_.r(J_,"yt-clip-creation-scrubber-canvas",function(){if(CWP===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-clip-creation-scrubber-canvas--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<canvas id="ticks" class="style-scope yt-clip-creation-scrubber-canvas"></canvas>\n');F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);CWP=F}F=CWP;return F},
{mode:2});var BdN;var vLg;var ag=function(){var F=_.n.apply(this,arguments)||this;F.start=0;F.end=30;F.visible=!1;F.draggingLeft_=!1;F.draggingRight_=!1;F.draggingRuler_=!1;F.draggingWindow_=!1;F.seekableStart=0;F.seekableEnd=0;F.rulerWidth_=0;F.rulerShift_=0;F.windowSlideSpeed=0;F.disabled=!1;F.initialized=!1;F.durationAccessibilityLabel="";F.activeLoopRange_=!1;F.rulerDragMouseStart_=0;F.rulerDragRulerStart_=0;F.rulerDragStartTime_=0;F.rulerDragEndTime_=0;F.dragMouseLastX_=0;F.scrollInterval_=null;F.scrubberVe_=null;F.boundHandlers_=
{};F.actionMap={"yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return F};
_.k(ag,_.n);_.N=ag.prototype;
_.N.created=function(){var F=this;this.JSC$19929_playerEvents=new Map;this.JSC$19929_playerEvents.set("onVideoProgress",this.onVideoProgress_);this.JSC$19929_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete_);this.JSC$19929_playerEvents.set("onStateChange",this.onStateChange_);var W={mouseup:this.endDrag_,mousemove:this.handleMouseDrag_,resize:this.updateRulerSize_,handles_mousedown:this.beginHandleDrag_,ruler_mousedown:this.beginRulerDrag_};Object.keys(W).forEach(function(E){F.boundHandlers_[E]=W[E].bind(F)})};
_.N.attached=function(){this.activeLoopRange_=!1;_.Z(this.hostElement).querySelector("#handles").addEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.Z(this.hostElement).querySelector("#ticks").addEventListener("mousedown",this.boundHandlers_.ruler_mousedown);window.addEventListener("resize",this.boundHandlers_.resize);this.scrubberVe_=_.LQ(156731)};
_.N.detached=function(){this.setPlayer(null);window.removeEventListener("resize",this.boundHandlers_.resize);this.removeMouseEventHandlers_();_.Z(this.hostElement).querySelector("#handles").removeEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.Z(this.hostElement).querySelector("#ticks").removeEventListener("mousedown",this.boundHandlers_.ruler_mousedown)};
_.N.onVisibilityChangedAction_=function(F){var W=this;F.visible&&!this.player_&&(F=_.WS())&&F.getPlayerPromise().then(function(E){W.setPlayer(E)})};
_.N.setPlayer=function(F){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$19929_playerEvents);F&&(this.set("player_",F),this.ytPlayerListenerBehavior.listenToPlayerEvents(F,this.JSC$19929_playerEvents))};
_.N.addMouseEventHandlers_=function(){window.addEventListener("mouseup",this.boundHandlers_.mouseup);window.addEventListener("mousemove",this.boundHandlers_.mousemove)};
_.N.removeMouseEventHandlers_=function(){window.removeEventListener("mouseup",this.boundHandlers_.mouseup);window.removeEventListener("mousemove",this.boundHandlers_.mousemove)};
_.N.beginHandleDrag_=function(F){this.disabled||(F.preventDefault(),this.draggingWindow_=this.draggingRuler_=this.draggingRight_=this.draggingLeft_=!1,this.dragMouseLastX_=F.clientX,F.target===_.Z(this.hostElement).querySelector("#handle-left")?this.beginLeftHandleDrag_():F.target===_.Z(this.hostElement).querySelector("#handle-right")?this.beginRightHandleDrag_():this.beginWindowDrag_())};
_.N.beginLeftHandleDrag_=function(){this.draggingLeft_=!0;this.beginDrag_()};
_.N.beginRightHandleDrag_=function(){this.draggingRight_=!0;this.beginDrag_()};
_.N.beginWindowDrag_=function(){this.disabled||(this.draggingWindow_=!0,this.beginWindowScroll_(),this.beginDrag_())};
_.N.beginRulerDrag_=function(F){this.disabled||(F.preventDefault(),this.draggingRight_=this.draggingLeft_=!1,this.draggingRuler_=!0,this.draggingWindow_=!1,this.rulerDragMouseStart_=F.clientX,this.rulerDragRulerStart_=this.rulerShift_,this.rulerDragStartTime_=this.start,this.rulerDragEndTime_=this.end,this.beginDrag_())};
_.N.beginDrag_=function(){this.player_.pauseVideo();this.addMouseEventHandlers_()};
_.N.beginWindowScroll_=function(){var F=this;this.scrollInterval_=setInterval(function(){var W=F.windowSlideSpeed;if(W=_.Chu(F.start,F.boundedRulerStartLimit_())?W-.1:_.Chu(F.end,F.boundedRulerEndLimit_())?W+.1:0){var E=F.capRulerOffset_(F.rulerShift_+W);E==F.rulerShift_?W=0:(F.set("rulerShift_",E),_.hF(F.hostElement,"set-fixed-length-range",{start:F.start+W,duration:F.end-F.start}))}F.set("windowSlideSpeed",W)},33)};
_.N.endWindowScroll_=function(){this.scrollInterval_&&(clearInterval(this.scrollInterval_),this.scrollInterval_=null,this.windowSlideSpeed=0)};
_.N.endDrag_=function(){this.logClick();var F=void 0;this.draggingRight_?F=this.end-1:this.draggingLeft_&&(F=this.start);this.draggingWindow_=this.draggingRuler_=this.draggingRight_=this.draggingLeft_=!1;this.endWindowScroll_();this.updateLoopRange_(this.player_,this.visible,this.disabled,this.initialized,this.start,this.end,F);this.removeMouseEventHandlers_();this.rulerShift_+this.windowSizeSec_<this.end+this.pixelsToTime_(16)&&this.set("rulerShift_",this.end-this.windowSizeSec_+this.pixelsToTime_(16));
this.rulerShift_>this.start-this.pixelsToTime_(16)&&this.set("rulerShift_",this.start-this.pixelsToTime_(16))};
_.N.onVisibleChanged_=function(){this.visible&&this.updateRulerSize_()};
_.N.updateRulerSize_=function(){this.set("rulerWidth_",_.Z(this.hostElement).querySelector("#ruler").getBoundingClientRect().width)};
_.N.handleMouseDrag_=function(F){F.buttons==0&&(this.draggingLeft_||this.draggingRight_||this.draggingRuler_||this.draggingWindow_)&&this.endDrag_();this.disabled||(this.draggingRuler_?this.handleRulerDrag_(F):this.draggingLeft_||this.draggingRight_?this.handleWindowHandleDrag_(F):this.draggingWindow_&&this.handleWindowDrag_(F))};
_.N.handleRulerDrag_=function(F){F=this.pixelsToTime_(F.clientX-this.rulerDragMouseStart_);F=this.capRulerOffset_(this.rulerDragRulerStart_-F);this.set("rulerShift_",F);var W=this.rulerDragStartTime_-(this.rulerDragRulerStart_-F);_.hF(this.hostElement,"set-fixed-length-range",{start:W,duration:this.rulerDragEndTime_-(this.rulerDragRulerStart_-F)-W})};
_.N.handleWindowDrag_=function(F){var W=F.clientX-this.dragMouseLastX_;this.dragMouseLastX_=F.clientX;F=this.pixelsToTime_(W);_.hF(this.hostElement,"set-fixed-length-range",{start:this.start+F,duration:this.end-this.start,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.N.capRulerOffset_=function(F){var W=this.seekableStart-this.pixelsToTime_(16),E=this.seekableEnd-this.windowSizeSec_+this.pixelsToTime_(16);return Math.min(Math.max(W,F),E)};
_.N.boundedRulerStartLimit_=function(){return this.rulerShift_+this.pixelsToTime_(16)};
_.N.boundedRulerEndLimit_=function(){return this.rulerShift_+this.windowSizeSec_-this.pixelsToTime_(16)};
_.N.draggableStartLimit_=function(){return Math.max(this.boundedRulerStartLimit_(),this.seekableStart)};
_.N.draggableEndLimit_=function(){return Math.min(this.boundedRulerEndLimit_(),this.seekableEnd)};
_.N.handleWindowHandleDrag_=function(F){var W=F.clientX-this.dragMouseLastX_;this.dragMouseLastX_=F.clientX;F=this.pixelsToTime_(W);if(this.draggingLeft_){var E=this.start+F;var h=this.end}else this.draggingRight_&&(E=this.start,h=this.end+F);_.hF(this.hostElement,"set-range",{start:E,end:h,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.N.onVideoProgress_=function(F){this.disabled||(F=this.timeToPixels_(F-this.rulerShift_,this.tickSpacing_),_.Z(this.hostElement).querySelector("#playhead").style.transform="translateX("+F+")")};
_.N.onClipCreationDisable_=function(){this.endDrag_()};
_.N.timeToPixels_=function(F,W,E){F*=W;return E===void 0||E?F+"px":F};
_.N.pixelsToTime_=function(F){return F/this.tickSpacing_};
_.N.onInitializedChanged_=function(){this.initialized&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.N.centerRuler_=function(F,W,E){this.set("rulerShift_",this.capRulerOffset_(F+(W-F)/2-E/2))};
_.N.onUpdateLoopRange=function(){this.updateLoopRange_(this.player_,this.visible,this.disabled,this.initialized,this.start,this.end)};
_.N.updateLoopRange_=function(F,W,E,h,d,V,R){F&&(W&&h&&!E?(this.draggingLeft_||this.draggingRuler_||this.draggingWindow_?(F.pauseVideo(),F.seekTo(d,!1,void 0,void 0,50)):this.draggingRight_?(F.pauseVideo(),F.seekTo(V-.1,!1,void 0,void 0,50)):(R!==void 0?F.seekTo(R,!0,void 0,void 0,50):(W=F.getCurrentTime(),W<d||W>V?F.seekTo(d,!0,void 0,void 0,50):F.seekTo(W,!0,void 0,void 0,50)),F.playVideo()),F.setLoopRange({startTimeMs:d*1E3,endTimeMs:V*1E3,type:"clips"}),this.activeLoopRange_=!0,this.onVideoProgress_(F.getCurrentTime())):
this.activeLoopRange_&&(F.setLoopRange(null),this.activeLoopRange_=!1))};
_.N.updateHandles_=function(){_.Z(this.hostElement).querySelector("#handles").style.left=String(this.timeToPixels_(this.start-this.rulerShift_,this.tickSpacing_));_.Z(this.hostElement).querySelector("#handles").style.width=String(this.timeToPixels_(this.end-this.start,this.tickSpacing_))};
_.N.updateRuler_=function(){var F=this.end,W=this.start,E=this.draggableStartLimit_(),h=this.draggableEndLimit_();(W<E-.001||F>h+.001)&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.N.computeDurationLabel_=function(F,W){return F?F.replace("$clip_length",parseFloat(W).toFixed(1)):""};
_.N.computeDuration_=function(F,W){return this.isValidTime_(F)&&this.isValidTime_(W)&&F<W?W-F:0};
_.N.isValidTime_=function(F){return isNaN(parseFloat(F))||F<0?!1:this.player_?F>=this.seekableStart&&F<=this.seekableEnd:!0};
_.N.computeWindowSizeSec_=function(F,W,E){return Math.min((F||12E4)/1E3,E-W)};
_.N.computeTickSpacing_=function(F,W){return W?W/F:1};
_.N.onDragStateChanged_=function(){_.hF(this.hostElement,"clips-drag-state",{startChanging:this.draggingLeft_||this.draggingWindow_||this.draggingRuler_,endChanging:this.draggingRight_||this.draggingWindow_||this.draggingRuler_})};
_.N.centerRangeOnTime_=function(F){var W=this.duration;F=KW$(F-W/2,W,this.seekableStart,this.seekableEnd);_.hF(this.hostElement,"set-fixed-length-range",{start:F.start,duration:F.end-F.start})};
_.N.nearlyLessThan_=function(F,W,E){return F+(E===void 0?1E-6:E)<W};
_.N.onSeekComplete_=function(){if(this.visible&&!this.disabled&&this.dragState=="none"){var F=this.player_.getCurrentTime();(!this.player_.getLoopRange()||this.nearlyLessThan_(F,this.start)||this.nearlyLessThan_(this.end,F))&&this.centerRangeOnTime_(F)}};
_.N.onStateChange_=function(F){this.visible&&!this.disabled&&F==0&&this.centerRangeOnTime_(this.seekableEnd)};
_.N.computeDragState_=function(F,W,E,h){return F?"left":W?"right":E?"ruler":h?"window":"none"};
_.N.logClick=function(){var F=_.JR(),W=_.Pf();F&&W&&this.scrubberVe_&&(_.c("combine_ve_grafts")?_.zY(_.z4(),this.scrubberVe_,W):_.y7(F,W,this.scrubberVe_),_.oj(F,this.scrubberVe_))};
ag.prototype.onDragStateChanged_=ag.prototype.onDragStateChanged_;ag.prototype.updateRuler_=ag.prototype.updateRuler_;ag.prototype.updateHandles_=ag.prototype.updateHandles_;ag.prototype.onUpdateLoopRange=ag.prototype.onUpdateLoopRange;ag.prototype.onInitializedChanged_=ag.prototype.onInitializedChanged_;ag.prototype.onVisibleChanged_=ag.prototype.onVisibleChanged_;_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],ag.prototype,"ytActionHandlerBehavior",void 0);
_.T([_.J(_.om.YtPlayerListenerBehavior),_.Y("design:type",Object)],ag.prototype,"ytPlayerListenerBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],ag.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],ag.prototype,"start",void 0);_.T([_.O(),_.Y("design:type",Object)],ag.prototype,"end",void 0);_.T([_.O({computed:"computeDuration_(start, end)"}),_.Y("design:type",Number)],ag.prototype,"duration",void 0);
_.T([_.O(),_.Y("design:type",String)],ag.prototype,"lengthTemplate",void 0);_.T([_.O({computed:"computeDurationLabel_(lengthTemplate, duration)"}),_.Y("design:type",String)],ag.prototype,"durationLabel",void 0);_.T([_.O(),_.Y("design:type",Object)],ag.prototype,"visible",void 0);_.T([_.O(),_.Y("design:type",Object)],ag.prototype,"player_",void 0);_.T([_.O(),_.Y("design:type",Object)],ag.prototype,"draggingLeft_",void 0);_.T([_.O(),_.Y("design:type",Object)],ag.prototype,"draggingRight_",void 0);
_.T([_.O(),_.Y("design:type",Object)],ag.prototype,"draggingRuler_",void 0);_.T([_.O({value:!1}),_.Y("design:type",Object)],ag.prototype,"draggingWindow_",void 0);_.T([_.O({computed:"computeTickSpacing_(windowSizeSec_, rulerWidth_)"}),_.Y("design:type",Number)],ag.prototype,"tickSpacing_",void 0);_.T([_.O(),_.Y("design:type",Object)],ag.prototype,"seekableStart",void 0);_.T([_.O(),_.Y("design:type",Object)],ag.prototype,"seekableEnd",void 0);
_.T([_.O(),_.Y("design:type",Number)],ag.prototype,"windowSizeMs",void 0);_.T([_.O({computed:"computeWindowSizeSec_(windowSizeMs, seekableStart, seekableEnd)"}),_.Y("design:type",Number)],ag.prototype,"windowSizeSec_",void 0);_.T([_.O(),_.Y("design:type",Object)],ag.prototype,"rulerWidth_",void 0);_.T([_.O(),_.Y("design:type",Object)],ag.prototype,"rulerShift_",void 0);_.T([_.O(),_.Y("design:type",Object)],ag.prototype,"windowSlideSpeed",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],ag.prototype,"disabled",void 0);_.T([_.O(),_.Y("design:type",Object)],ag.prototype,"initialized",void 0);_.T([_.O(),_.Y("design:type",Object)],ag.prototype,"durationAccessibilityLabel",void 0);_.T([_.O({computed:"computeDragState_(draggingLeft_, draggingRight_, draggingRuler_, draggingWindow_)",reflectToAttribute:!0}),_.Y("design:type",String)],ag.prototype,"dragState",void 0);
_.T([_.ea("visible"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ag.prototype,"onVisibleChanged_",null);_.T([_.ea("initialized"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ag.prototype,"onInitializedChanged_",null);_.T([_.ea("player_","visible","disabled","initialized","start","end"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ag.prototype,"onUpdateLoopRange",null);
_.T([_.ea("start","end","rulerShift_","tickSpacing_","windowSizeSec_"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ag.prototype,"updateHandles_",null);_.T([_.ea("start","end"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ag.prototype,"updateRuler_",null);
_.T([_.ea("draggingLeft_","draggingRight_","draggingRuler_","draggingWindow_"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ag.prototype,"onDragStateChanged_",null);ag=_.T([_.$3({is:"yt-clip-creation-scrubber-view",disableElementRegistration:!0})],ag);
_.r(ag,"yt-clip-creation-scrubber-view",function(){if(vLg===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-clip-creation-scrubber-view--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.gaming.clips.yt_clip_creation_scrubber_view.yt.clip.creation.scrubber.view.css.js--\x3e<div id="trimmer" class="style-scope yt-clip-creation-scrubber-view">\n  <div id="ruler" aria-hidden="true" class="style-scope yt-clip-creation-scrubber-view">\n    <yt-clip-creation-scrubber-canvas id="ticks" disabled="[[disabled]]" end="[[end]]" ruler-shift="[[rulerShift_]]" ruler-width="[[rulerWidth_]]" start="[[start]]" tick-spacing="[[tickSpacing_]]" visible="[[visible]]" window-size-sec="[[windowSizeSec_]]" window-speed="[[windowSlideSpeed]]" class="style-scope yt-clip-creation-scrubber-view">\n    </yt-clip-creation-scrubber-canvas>\n    <div id="handles" class="style-scope yt-clip-creation-scrubber-view">\n      <div class="handle style-scope yt-clip-creation-scrubber-view" id="handle-left">\n        <div class="handle-grip style-scope yt-clip-creation-scrubber-view"></div>\n      </div>\n      <div class="handle style-scope yt-clip-creation-scrubber-view" id="handle-right">\n        <div class="handle-grip style-scope yt-clip-creation-scrubber-view"></div>\n      </div>\n    </div>\n    <div id="playhead" class="style-scope yt-clip-creation-scrubber-view"></div>\n  </div>\n</div>\n<div id="duration" aria-label="[[durationAccessibilityLabel]]" class="style-scope yt-clip-creation-scrubber-view">[[durationLabel]]</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;BdN===void 0&&(BdN=document.createElement("template"));var h=BdN;E.call(W,h.content.cloneNode(!0),F.content.firstChild);vLg=F}F=vLg;return F},{mode:2});var fq=function(){var F=_.n.apply(this,arguments)||this;F.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_","yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-enable":"onClipCreationEnable_"};F.startHighlightTimeout=0;F.endHighlightTimeout=0;return F};
_.k(fq,_.n);_.N=fq.prototype;_.N.attached=function(){var F=this;this.startInput.addEventListener("input",function(W){return F.handleStartInput_(W)});
this.endInput.addEventListener("input",function(W){return F.handleEndInput_(W)});
this.startInput.addEventListener("focusout",function(W){return F.handleStartBlur_(W)});
this.endInput.addEventListener("focusout",function(W){return F.handleEndBlur_(W)})};
_.N.setPlayer=function(F){this.set("player_",F)};
_.N.onSetFixedLengthRange_=function(F){var W=F.detail;F=W.start;var E=W.duration,h=W.startLimit;W=W.endLimit;h||(h=this.seekableStart_);W||(W=this.seekableEnd_);F=KW$(F,E,h,W);this.start=F.start;this.end=F.end};
_.N.onSetRange_=function(F){var W=F.detail;F=W.start;var E=W.end,h=W.startLimit;W=W.endLimit;h||(h=this.seekableStart_);W||(W=this.seekableEnd_);if(F=F5P(F,E,h,W,this.minLengthSec,this.maxLengthSec))this.start=F.start,this.end=F.end};
_.N.updateInputs_=function(){var F=this.end,W=this.start;this.startInput.focused||(this.startInput.value=ZY(W,!0));this.endInput.focused||(this.endInput.value=ZY(F,!0))};
_.N.handleStartInput_=function(F){F=mAg(F.target.value);if(F===null)this.set("startValid",!1);else{var W=this.end,E=F5P(F,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);E?(this.set("endWillUpdate",E.end!==W),this.set("startValid",E.start===F)):this.set("startValid",!1)}};
_.N.handleEndInput_=function(F){F=mAg(F.target.value);if(F===null)this.set("endValid",!1);else{var W=this.start,E=W5u(this.start,F,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);E?(this.set("startWillUpdate",E.start!==W),this.set("endValid",E.end===F)):this.set("endValid",!1)}};
_.N.handleStartBlur_=function(F){F=mAg(F.target.value);F===null?this.startInput.value=ZY(this.start,!0):this.forceUpdateInputs_(F5P(F,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.N.handleEndBlur_=function(F){F=mAg(F.target.value);F===null?this.endInput.value=ZY(this.end,!0):this.forceUpdateInputs_(W5u(this.start,F,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.N.forceUpdateInputs_=function(F){F&&(this.start=F.start,this.end=F.end);this.startInput.value=ZY(this.start,!0);this.endInput.value=ZY(this.end,!0);this.endValid=this.startValid=!0;this.startWillUpdate=this.endWillUpdate=!1};
_.N.initializeClipRange_=function(){var F=this.seekableEnd_,W=this.seekableStart_,E=this.visible_,h=this.player_;if(!h||!E||W===null||!F)this.set("initialized",!1);else if(!this.initialized){var d=h.getCurrentTime(),V=this.getDefaultLengthSec_();E=h.getVideoData();var R=h.getPlayerState()==1,M=E.isLive;V=Math.min(V,F-W);d=Math.max(0,d);F=M?W5u(d-V,d,W,F,this.minLengthSec,this.maxLengthSec):R?KW$(d-V/2,V,W,F):KW$(d,V,W,F);this.start=F.start;this.end=F.end;this.set("initialized",!0);E.isLive&&h.seekTo(F.start);
this.startInput.value=ZY(this.start,!0);this.endInput.value=ZY(this.end,!0)}};
_.N.onStartChanged_=function(){var F=this;_.hF(this.hostElement,"start-changed",{start:this.start});var W;isNaN((W=this.oldStart)!=null?W:NaN)||(this.set("highlightStart",!0),clearTimeout(this.startHighlightTimeout),this.startHighlightTimeout=setTimeout(function(){F.set("highlightStart",!1);F.startHighlightTimeout=0;F.oldStart=F.start},3E3))};
_.N.onEndChanged_=function(){var F=this;_.hF(this.hostElement,"end-changed",{end:this.end});var W;isNaN((W=this.oldEnd)!=null?W:NaN)||(this.set("highlightEnd",!0),clearTimeout(this.endHighlightTimeout),this.endHighlightTimeout=setTimeout(function(){F.set("highlightEnd",!1);F.endHighlightTimeout=0;F.oldEnd=F.end},3E3))};
_.N.onVisibilityChangedAction_=function(F){var W=this;this.set("visible_",F.visible);this.visible_&&!this.player_&&(F=_.WS())&&F.getPlayerPromise().then(function(E){W.setPlayer(E)})};
_.N.computeMinLengthSec_=function(F){return F/1E3||5};
_.N.computeMaxLengthSec_=function(F){return F/1E3||60};
_.N.computeDefaultLengthSec_=function(F){return F/1E3};
_.N.getDefaultLengthSec_=function(){return this.defaultLengthSec||30};
_.N.computeSeekableStart_=function(F,W){return F&&W?F.getProgressState(1).seekableStart:0};
_.N.computeSeekableEnd_=function(F,W){return F&&W?F.getProgressState(1).seekableEnd:0};
_.N.onClipCreationDisable_=function(){this.set("disabled",!0)};
_.N.onClipCreationEnable_=function(){this.set("disabled",!1)};
_.N.onDragState_=function(F){this.set("highlightStart",F.detail.startChanging);this.set("highlightEnd",F.detail.endChanging)};
fq.prototype.onDragState_=fq.prototype.onDragState_;fq.prototype.onEndChanged_=fq.prototype.onEndChanged_;fq.prototype.onStartChanged_=fq.prototype.onStartChanged_;fq.prototype.initializeClipRange_=fq.prototype.initializeClipRange_;fq.prototype.updateInputs_=fq.prototype.updateInputs_;fq.prototype.onSetRange_=fq.prototype.onSetRange_;fq.prototype.onSetFixedLengthRange_=fq.prototype.onSetFixedLengthRange_;
_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],fq.prototype,"ytActionHandlerBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],fq.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],fq.prototype,"data",void 0);_.T([_.O({value:0}),_.Y("design:type",Number)],fq.prototype,"start",void 0);_.T([_.O({value:!0}),_.Y("design:type",Boolean)],fq.prototype,"startValid",void 0);
_.T([_.O({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],fq.prototype,"startWillUpdate",void 0);_.T([_.O({value:30}),_.Y("design:type",Number)],fq.prototype,"end",void 0);_.T([_.O({value:!0}),_.Y("design:type",Boolean)],fq.prototype,"endValid",void 0);_.T([_.O({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],fq.prototype,"endWillUpdate",void 0);_.T([_.O({computed:"computeMinLengthSec_(data.minLengthMs)"}),_.Y("design:type",Number)],fq.prototype,"minLengthSec",void 0);
_.T([_.O({computed:"computeMaxLengthSec_(data.maxLengthMs)"}),_.Y("design:type",Number)],fq.prototype,"maxLengthSec",void 0);_.T([_.O({computed:"computeDefaultLengthSec_(data.defaultLengthMs)"}),_.Y("design:type",Number)],fq.prototype,"defaultLengthSec",void 0);_.T([_.O({value:!1}),_.Y("design:type",Boolean)],fq.prototype,"visible_",void 0);_.T([_.O(),_.Y("design:type",Object)],fq.prototype,"player_",void 0);
_.T([_.O({value:0,computed:"computeSeekableStart_(player_, visible_)"}),_.Y("design:type",Number)],fq.prototype,"seekableStart_",void 0);_.T([_.O({computed:"computeSeekableEnd_(player_, visible_)"}),_.Y("design:type",Number)],fq.prototype,"seekableEnd_",void 0);_.T([_.O({value:!1}),_.Y("design:type",Boolean)],fq.prototype,"initialized",void 0);_.T([_.O({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],fq.prototype,"disabled",void 0);
_.T([_.O({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],fq.prototype,"highlightStart",void 0);_.T([_.O({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],fq.prototype,"highlightEnd",void 0);_.T([_.gQ("#start"),_.Y("design:type",HTMLInputElement)],fq.prototype,"startInput",void 0);_.T([_.gQ("#end"),_.Y("design:type",HTMLInputElement)],fq.prototype,"endInput",void 0);
_.T([_.R4("set-fixed-length-range"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],fq.prototype,"onSetFixedLengthRange_",null);_.T([_.R4("set-range"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],fq.prototype,"onSetRange_",null);_.T([_.ea("start","end"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],fq.prototype,"updateInputs_",null);
_.T([_.ea("player_","visible_","seekableStart_","seekableEnd_"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],fq.prototype,"initializeClipRange_",null);_.T([_.ea("start"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],fq.prototype,"onStartChanged_",null);_.T([_.ea("end"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],fq.prototype,"onEndChanged_",null);
_.T([_.R4("clips-drag-state"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],fq.prototype,"onDragState_",null);fq=_.T([_.$3({is:"yt-clip-creation-scrubber-renderer",disableElementRegistration:!0})],fq);
_.r(fq,"yt-clip-creation-scrubber-renderer",function(){if(toT===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-clip-creation-scrubber-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.gaming.clips.yt_clip_creation_scrubber_renderer.yt.clip.creation.scrubber.renderer.css.js--\x3e<div id="text-inputs" class="style-scope yt-clip-creation-scrubber-renderer">\n  <yt-icon id="warning-start" icon="warning" class="style-scope yt-clip-creation-scrubber-renderer"></yt-icon>\n  <tp-yt-iron-input allowed-pattern="[\\d\\.\\:]" disabled="[[disabled]]" prevent-invalid-input="" role="presentation" class="style-scope yt-clip-creation-scrubber-renderer">\n    <input id="start" placeholder="[[data.startAccessibility.accessibilityData.label]]" type="text" class="style-scope yt-clip-creation-scrubber-renderer">\n  </tp-yt-iron-input>\n  <span id="spacer" aria-hidden="true" class="style-scope yt-clip-creation-scrubber-renderer">\u2013</span>\n  <tp-yt-iron-input allowed-pattern="[\\d\\.\\:]" disabled="[[disabled]]" prevent-invalid-input="" role="presentation" class="style-scope yt-clip-creation-scrubber-renderer">\n    <input id="end" placeholder="[[data.endAccessibility.accessibilityData.label]]" type="text" class="style-scope yt-clip-creation-scrubber-renderer">\n  </tp-yt-iron-input>\n  <yt-icon id="warning-end" icon="warning" class="style-scope yt-clip-creation-scrubber-renderer"></yt-icon>\n</div>\n<yt-clip-creation-scrubber-view disabled="[[disabled]]" duration-accessibility-label="[[data.durationAccessibility.accessibilityData.label]]" end="[[end]]" initialized="[[initialized]]" length-template="[[data.lengthTemplate]]" seekable-end="[[seekableEnd_]]" seekable-start="[[seekableStart_]]" start="[[start]]" visible="[[visible_]]" window-size-ms="[[data.windowSizeMs]]" class="style-scope yt-clip-creation-scrubber-renderer">\n</yt-clip-creation-scrubber-view>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;zlw===void 0&&(zlw=document.createElement("template"));var h=zlw;E.call(W,h.content.cloneNode(!0),F.content.firstChild);toT=F}F=toT;return F},{mode:2});var OM=function(){var F=_.n.apply(this,arguments)||this;F.player_=null;F.JSC$19943_playerEvents=new Map;F.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return F};
_.k(OM,_.n);_.N=OM.prototype;_.N.configureRendererStamper=function(){return{submitButton_:{id:"share",mapping:{buttonRenderer:"yt-button-renderer"}},cancelButton_:{id:"cancel",mapping:{buttonRenderer:"yt-button-renderer"}},"data.titleInput":{id:"title-input",mapping:{clipCreationTextInputRenderer:"ytd-clip-creation-text-input-renderer"}},"data.scrubber":{id:"scrubber",mapping:{clipCreationScrubberRenderer:"yt-clip-creation-scrubber-renderer"}},"data.adStateOverlay":{id:"ad-state",mapping:{clipAdStateRenderer:"ytd-clip-ad-state-renderer"}}}};
_.N.created=function(){this.JSC$19943_playerEvents.set("onAdStart",this.playerAdStartHandler_);this.JSC$19943_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler_);this.JSC$19943_playerEvents.set("onVideoDataChange",this.onVideoDataChange_);this.JSC$19943_playerEvents.set("onVideoProgress",this.onVideoProgress_)};
_.N.detached=function(){this.setPlayer(null)};
_.N.onVisibilityChangedAction_=function(F){var W=this,E;if((E=this.data)==null?0:E.externalVideoId){var h;this.videoId=(h=this.data)==null?void 0:h.externalVideoId}this.getPlayer().then(function(d){if(F.visible)W.returnTime=d.getCurrentTime(),W.isAtLiveHead=d.getProgressState().isAtLiveHead;else{var V=W.returnTime;W.isAtLiveHead&&(V=Number.POSITIVE_INFINITY);d.seekTo(V,void 0,void 0,void 0,51)}})};
_.N.getPlayer=function(){var F=this;if(!this.player_){var W=_.WS();if(W)return W.getPlayerPromise().then(function(E){F.setPlayer(E);return E})}return Promise.resolve(this.player_)};
_.N.setPlayer=function(F){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$19943_playerEvents);if(F){this.player_=F;var W;((W=this.data)==null?0:W.externalVideoId)||this.set("videoId",F.getVideoData().video_id||"");var E;(F==null?void 0:(E=F.getPresentingPlayerType)==null?void 0:E.call(F))===2&&(this.set("isAdPlaying",!0),_.dW(this.hostElement,"yt-clip-creation-disable"));this.ytPlayerListenerBehavior.listenToPlayerEvents(F,this.JSC$19943_playerEvents)}};
_.N.ready=function(){_.Z(this.hostElement).querySelector("#share").addEventListener("tap",this.onSubmit_.bind(this))};
_.N.onTitleChanged_=function(F){this.set("titleValue",F.detail.title)};
_.N.onStartChanged_=function(F){this.set("start",F.detail.start)};
_.N.onEndChanged_=function(F){this.set("end",F.detail.end)};
_.N.onTitleValidChanged_=function(F){this.set("titleValid",F.detail.valid)};
_.N.onStartValidChanged_=function(F){this.set("startValid",F.detail.valid)};
_.N.onEndValidChanged_=function(F){this.set("endValid",F.detail.valid)};
_.N.onVideoDataChange_=function(){var F;if((F=this.data)==null||!F.externalVideoId){var W;this.set("videoId",((W=this.player_)==null?void 0:W.getVideoData().video_id)||"")}};
_.N.computeFormValid_=function(F,W,E,h){return!!(F&&W&&E&&h)};
_.N.computeCancelButton_=function(F,W,E){return F&&_.D(F,_.jt)?{buttonRenderer:Object.assign({},_.D(F,_.jt),{isDisabled:W||E})}:null};
_.N.computeSubmitButton_=function(F,W,E){return F&&_.D(F,_.jt)?{buttonRenderer:Object.assign({},_.D(F,_.jt),{command:void 0,isDisabled:!this.formValid||W||E})}:null};
_.N.computeSubmitCommand_=function(F){return F||null};
_.N.onSubmit_=function(F){var W=this;F.stopPropagation();F.preventDefault();this.submitCommand_&&(F={},F.comment_text=this.titleValue,F.clip_external_video_id=this.videoId,F.clip_offset_ms=parseInt(this.start*1E3,10),F.clip_duration_ms=parseInt((this.end-this.start)*1E3,10),this.set("isLoading_",!0),_.UT(this.hostElement,[this.submitCommand_,F]).then(function(){W.set("isLoading_",!1)},function(){W.set("isLoading_",!1)}))};
_.N.playerAdStartHandler_=function(){_.dW(this.hostElement,"yt-clip-creation-disable");this.set("isAdPlaying",!0)};
_.N.playerAdEndHandler_=function(){_.dW(this.hostElement,"yt-clip-creation-enable");this.set("isAdPlaying",!1)};
_.N.onVideoProgress_=function(){var F=this;this.getPlayer().then(function(W){var E,h=(W==null?void 0:(E=W.getPresentingPlayerType)==null?void 0:E.call(W))===2;F.isAdPlaying!==h&&(h?F.playerAdStartHandler_():F.playerAdEndHandler_())})};
OM.prototype.onEndValidChanged_=OM.prototype.onEndValidChanged_;OM.prototype.onStartValidChanged_=OM.prototype.onStartValidChanged_;OM.prototype.onTitleValidChanged_=OM.prototype.onTitleValidChanged_;OM.prototype.onEndChanged_=OM.prototype.onEndChanged_;OM.prototype.onStartChanged_=OM.prototype.onStartChanged_;OM.prototype.onTitleChanged_=OM.prototype.onTitleChanged_;_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],OM.prototype,"ytActionHandlerBehavior",void 0);
_.T([_.J(_.om.YtPlayerListenerBehavior),_.Y("design:type",Object)],OM.prototype,"ytPlayerListenerBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],OM.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],OM.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],OM.prototype,"data",void 0);_.T([_.O({value:""}),_.Y("design:type",String)],OM.prototype,"titleValue",void 0);
_.T([_.O({value:!1}),_.Y("design:type",Boolean)],OM.prototype,"titleValid",void 0);_.T([_.O({value:0}),_.Y("design:type",Number)],OM.prototype,"start",void 0);_.T([_.O({value:!0}),_.Y("design:type",Boolean)],OM.prototype,"startValid",void 0);_.T([_.O({value:0}),_.Y("design:type",Number)],OM.prototype,"end",void 0);_.T([_.O({value:!0}),_.Y("design:type",Boolean)],OM.prototype,"endValid",void 0);_.T([_.O({value:""}),_.Y("design:type",String)],OM.prototype,"videoId",void 0);
_.T([_.O({computed:"computeFormValid_(data, titleValid, startValid, endValid)"}),_.Y("design:type",Boolean)],OM.prototype,"formValid",void 0);_.T([_.O({computed:"computeSubmitButton_(data.saveButton, isAdPlaying, isLoading_, formValid)"}),_.Y("design:type",Object)],OM.prototype,"submitButton_",void 0);_.T([_.O({computed:"computeSubmitCommand_(data.saveButton.buttonRenderer.command)"}),_.Y("design:type",Object)],OM.prototype,"submitCommand_",void 0);
_.T([_.O({computed:"computeCancelButton_(data.cancelButton, isAdPlaying, isLoading_)"}),_.Y("design:type",Object)],OM.prototype,"cancelButton_",void 0);_.T([_.O({value:!1}),_.Y("design:type",Boolean)],OM.prototype,"isLoading_",void 0);_.T([_.O({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],OM.prototype,"isAdPlaying",void 0);_.T([_.O({value:0}),_.Y("design:type",Number)],OM.prototype,"returnTime",void 0);_.T([_.O({value:!1}),_.Y("design:type",Boolean)],OM.prototype,"isAtLiveHead",void 0);
_.T([_.R4("title-changed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],OM.prototype,"onTitleChanged_",null);_.T([_.R4("start-changed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],OM.prototype,"onStartChanged_",null);_.T([_.R4("end-changed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],OM.prototype,"onEndChanged_",null);
_.T([_.R4("title-valid-changed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],OM.prototype,"onTitleValidChanged_",null);_.T([_.R4("start-valid-changed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],OM.prototype,"onStartValidChanged_",null);_.T([_.R4("end-valid-changed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],OM.prototype,"onEndValidChanged_",null);
OM=_.T([_.$3({is:"yt-clip-creation-renderer",disableElementRegistration:!0})],OM);
_.r(OM,"yt-clip-creation-renderer",function(){if(Q5w===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-clip-creation-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.gaming.clips.yt_clip_creation_renderer.yt.clip.creation.renderer.css.js--\x3e<div id="container" class="style-scope yt-clip-creation-renderer">\n  <div id="title" class="style-scope yt-clip-creation-renderer">\n    <div class="left-container style-scope yt-clip-creation-renderer">\n      <yt-img-shadow id="user-avatar" height="32" thumbnail="[[data.userAvatar]]" width="32" class="style-scope yt-clip-creation-renderer">\n      </yt-img-shadow>\n      <div id="display-name" class="style-scope yt-clip-creation-renderer">[[getSimpleString(data.displayName)]]</div>\n    </div>\n    <div id="publicity-label" class="style-scope yt-clip-creation-renderer">\n      <yt-icon id="publicity-icon" icon="yt-icons:privacy_public" class="style-scope yt-clip-creation-renderer"></yt-icon>\n      [[data.publicityLabel]]\n    </div>\n  </div>\n  <div id="title-input" class="style-scope yt-clip-creation-renderer"></div>\n  <div id="scrubber" class="style-scope yt-clip-creation-renderer"></div>\n</div>\n<div id="footer" class="style-scope yt-clip-creation-renderer">\n  <tp-yt-paper-spinner-lite active="[[isLoading_]]" hidden="[[!isLoading_]]" class="style-scope yt-clip-creation-renderer"></tp-yt-paper-spinner-lite>\n  <div id="cancel" class="style-scope yt-clip-creation-renderer"></div>\n  <div id="share" class="style-scope yt-clip-creation-renderer"></div>\n</div>\n<div id="ad-state" class="style-scope yt-clip-creation-renderer"></div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;gLT===void 0&&(gLT=document.createElement("template"));var h=gLT;E.call(W,h.content.cloneNode(!0),F.content.firstChild);Q5w=F}F=Q5w;return F},{mode:2});var bS=function(){return _.n.apply(this,arguments)||this};
_.k(bS,_.n);bS.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{clipAttributionRenderer:"ytd-clip-attribution-renderer",clipCreationRenderer:"yt-clip-creation-renderer"}},"data.footer":{id:"footer",mapping:{clipSectionFooterRenderer:"ytd-clip-section-footer-renderer"}}}};
bS.prototype.onPanelContentVisibleChanged=function(){this.data&&this.data.contents&&this.data.contents.some(function(F){return F.hasOwnProperty("clipCreationRenderer")})&&_.dW(this.hostElement,"yt-clip-creation-visibility-changed",[{visible:!!this.panelContentVisible}])};
bS.prototype.onPanelContentVisibleChanged=bS.prototype.onPanelContentVisibleChanged;_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],bS.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],bS.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.ny.YtVisibilityBehavior),_.Y("design:type",Object)],bS.prototype,"ytVisibilityBehavior",void 0);_.T([_.J(_.am),_.Y("design:type",Object)],bS.prototype,"ytdReduxBehavior",void 0);
_.T([_.O(),_.Y("design:type",Object)],bS.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],bS.prototype,"panelContentVisible",void 0);_.T([_.ea("panelContentVisible"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],bS.prototype,"onPanelContentVisibleChanged",null);bS=_.T([_.y({is:"ytd-clip-section-renderer",disableElementRegistration:!0})],bS);
_.r(bS,"ytd-clip-section-renderer",function(){if(RlP!==void 0)return RlP;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-clip-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-clip-section-renderer"></div>\n<div id="footer" class="style-scope ytd-clip-section-renderer"></div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return RlP=F},{mode:1});var IXu;var lS=function(){return _.n.apply(this,arguments)||this};
_.k(lS,_.n);_.N=lS.prototype;
_.N.onKeyDown=function(F){if(this.snippetElements.length!==0&&(F=F.keyCode,F===38||F===40)){this.highlightedIndex>=0&&this.removeSnippetHighlight(this.snippetElements[this.highlightedIndex]);F===38?this.highlightedIndex--:this.highlightedIndex++;this.highlightedIndex=_.jX(this.highlightedIndex,-1,this.snippetElements.length);F=this.snippetElements.length;var W=this.highlightedIndex%F;this.highlightedIndex=W*F<0?W+F:W;F=this.snippetElements[this.highlightedIndex];this.highlightSnippet(F);this.ensureVisible(F)}};
_.N.onKeyUp=function(F){var W=this;atN(F)&&(F.keyCode===13?(this.selectSnippet(this.snippetElements[this.highlightedIndex]),this.inputElement.blur()):this.filterSnippets(this.snippets,this.typedValue),this.inputTimerId&&_.P0.cancelJob(this.inputTimerId),this.inputTimerId=_.P0.addLowPriorityJob(function(){W.typedValue&&(W.fetchSnippets(W.typedValue),W.logInputGesture(W.data))},1E3))};
_.N.onClick=function(F){(F=_.R6_(F.target,null,"snippet-item"))&&this.selectSnippet(F)};
_.N.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inputElement.focus()};
_.N.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-update-search-in-video-results-action":"onUpdateSearchInVideoResults"}};
_.N.ready=function(){var F=this;this.inputElement.addEventListener("focus",function(){F.snippetsWrapper.style.removeProperty("display")})};
_.N.dataChanged=function(){this.typedValue="";this.snippets=[];this.fetchSnippets("")};
_.N.getSourceTimelines=function(){if(!this.data)return[];var F=[];if(this.data.searchInVideoSources)for(var W=_.U(this.data.searchInVideoSources),E=W.next();!E.done;E=W.next())E=E.value,E==="SEARCH_IN_VIDEO_SOURCE_ASR"?F.push({type:"TIMELINE_TYPE_STRUCTURAL_ASR"}):E==="SEARCH_IN_VIDEO_SOURCE_OCR"&&F.push({type:"TIMELINE_TYPE_OCR_LABEL_SPAN"});return F};
_.N.fetchSnippets=function(F){var W=_.dW(this.hostElement,"yt-get-current-video-id-action")[0],E=this.getSourceTimelines();F={getSearchInVideoCommand:{externalVideoId:W,query:F!=null?F:"",sourceTimelines:E},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/in_video/search",sendPost:!0}}};_.WZ().resolve(_.EJ).resolveCommand(F,{form:{element:this.hostElement}})};
_.N.filterSnippets=function(F,W){var E=this;if(W){this.filteredSnippets=(0,_.xd.unsafeClone)(F);var h=RegExp(_.rfo(W),"i");this.filteredSnippets=this.filteredSnippets.filter(function(R){return h.test(E.ytRendererBehavior.getSimpleString(R.snippet))});
F=_.U(this.filteredSnippets);for(var d=F.next();!d.done;d=F.next()){d=d.value;var V=this.ytRendererBehavior.getSimpleString(d.snippet);d.snippet={runs:[{text:V.substring(0,V.toLowerCase().indexOf(W))},{text:V.substring(V.toLowerCase().indexOf(W),V.toLowerCase().indexOf(W)+W.length),bold:!0},{text:V.substring(V.toLowerCase().indexOf(W)+W.length,V.length)}]}}}else this.filteredSnippets=F};
_.N.onUpdateSearchInVideoResults=function(F){if(!(this.snippets.length>0)){var W,E,h;if((h=(W=_.D(F,GVF))==null?void 0:(E=W.results)==null?void 0:E.length)!=null&&h){var d;this.filteredSnippets=this.snippets=((d=_.D(F,GVF))==null?void 0:d.results).map(function(V){var R,M,g;return{startMs:V==null?void 0:(R=V.searchInVideoResultRenderer)==null?void 0:R.startMs,startTimeText:V==null?void 0:(M=V.searchInVideoResultRenderer)==null?void 0:M.startTimeText,snippet:V==null?void 0:(g=V.searchInVideoResultRenderer)==
null?void 0:g.snippet}})}}};
_.N.updateSnippetElements=function(){this.snippetElements=Array.from(this.snippetsWrapper.getElementsByClassName("snippet-item"));this.highlightedIndex>=0&&this.highlightedIndex<this.snippetElements.length&&this.removeSnippetHighlight(this.snippetElements[this.highlightedIndex]);this.highlightedIndex=-1;this.snippetsWrapper.scrollTop=0};
_.N.highlightSnippet=function(F){F.classList.add("highlighted")};
_.N.removeSnippetHighlight=function(F){F.classList.remove("highlighted")};
_.N.selectSnippet=function(F){this.typedValue=String(F.dataset.text);this.filterSnippets(this.snippets,this.typedValue);this.snippetsWrapper.style.display="none";this.seekPlayer(F);this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.N.ensureVisible=function(F){var W=this.snippetsWrapper.scrollTop,E=W+this.snippetsWrapper.clientHeight,h=F.offsetTop-this.snippetsWrapper.offsetTop;F=h+F.clientHeight;h<W?this.snippetsWrapper.scrollTop-=W-h:F>E&&(this.snippetsWrapper.scrollTop+=F-E)};
_.N.seekPlayer=function(F){var W,E;return _.e(function(h){if(h.nextAddress==1){if(!F)return h.jumpTo(0);W=Number(F.dataset.startOffset);return _.Q(h,_.E8().getPlayerPromise(),3)}E=h.yieldResult;E.seekTo(W/1E3,!0);E.wakeUpControls();_.gG(h)})};
_.N.logInputGesture=function(F){var W=_.JR();W&&(F==null?0:F.trackingParams)&&_.GJ(W,_.ve(F.trackingParams),"INTERACTION_LOGGING_GESTURE_TYPE_INPUT_TEXT")};
_.N.typedValueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.yR("typed-value-changed",this.typedValue))};
_.N.updateTypedValueFromBinding=function(F){this.typedValue=F.currentTarget.value};
lS.prototype.typedValueChangedForBinding=lS.prototype.typedValueChangedForBinding;lS.prototype.dataChanged=lS.prototype.dataChanged;lS.prototype.panelContentVisibleChanged=lS.prototype.panelContentVisibleChanged;lS.prototype.onClick=lS.prototype.onClick;lS.prototype.onKeyUp=lS.prototype.onKeyUp;lS.prototype.onKeyDown=lS.prototype.onKeyDown;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],lS.prototype,"ytRendererBehavior",void 0);
_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],lS.prototype,"ytActionHandlerBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],lS.prototype,"data",void 0);_.T([_.O({value:[]}),_.Y("design:type",Array)],lS.prototype,"snippets",void 0);_.T([_.O({value:[]}),_.Y("design:type",Array)],lS.prototype,"filteredSnippets",void 0);_.T([_.O({value:[]}),_.Y("design:type",Array)],lS.prototype,"snippetElements",void 0);
_.T([_.gQ("#siv-input"),_.Y("design:type",HTMLElement)],lS.prototype,"inputElement",void 0);_.T([_.gQ("#siv-snippets-wrapper"),_.Y("design:type",HTMLElement)],lS.prototype,"snippetsWrapper",void 0);_.T([_.O(),_.Y("design:type",String)],lS.prototype,"typedValue",void 0);_.T([_.O({value:-1}),_.Y("design:type",Number)],lS.prototype,"highlightedIndex",void 0);_.T([_.R4("keydown"),_.Y("design:type",Function),_.Y("design:paramtypes",[_.kU]),_.Y("design:returntype")],lS.prototype,"onKeyDown",null);
_.T([_.R4("keyup"),_.Y("design:type",Function),_.Y("design:paramtypes",[_.kU]),_.Y("design:returntype")],lS.prototype,"onKeyUp",null);_.T([_.R4("click"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],lS.prototype,"onClick",null);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],lS.prototype,"panelContentVisible",void 0);
_.T([_.ea("panelContentVisible"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],lS.prototype,"panelContentVisibleChanged",null);_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],lS.prototype,"dataChanged",null);_.T([_.ea("typedValue"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],lS.prototype,"typedValueChangedForBinding",null);
lS=_.T([_.y({is:"ytd-search-in-video-renderer",disableElementRegistration:!0})],lS);
_.r(lS,"ytd-search-in-video-renderer",function(){if(IXu!==void 0)return IXu;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-in-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-input-container class="input-container style-scope ytd-search-in-video-renderer" aria-owns="siv-snippets-wrapper" no-label-float="true">\n  <yt-icon class="icon style-scope ytd-search-in-video-renderer" slot="prefix" icon="yt-icons:find_in_page"></yt-icon>\n  <input id="siv-input" slot="input" value="[[typedValue]]" type="text" placeholder="[[getSimpleString(data.placeholderText)]]" aria-autocomplete="list" aria-controls="siv-snippets-wrapper" aria-haspopup="listbox" role="combobox" on-input="updateTypedValueFromBinding" class="style-scope ytd-search-in-video-renderer">\n</tp-yt-paper-input-container>\n<div id="siv-snippets-wrapper" class="snippets-wrapper style-scope ytd-search-in-video-renderer" role="listbox">\n  <div class="no-results-item style-scope ytd-search-in-video-renderer" hidden="[[filteredSnippets.length]]">\n    [[getSimpleString(data.noResultsMessage)]]\n  </div>\n  <template is="dom-repeat" items="[[filteredSnippets]]" hidden="[[!filteredSnippets.length]]" on-dom-change="updateSnippetElements" class="style-scope ytd-search-in-video-renderer">\n    \n    <div class="snippet-item style-scope ytd-search-in-video-renderer" role="option" data-start-offset$="[[item.startMs]]" data-text$="[[getSimpleString(item.snippet)]]">\n      <yt-formatted-string class="start-time-text style-scope ytd-search-in-video-renderer" text="[[item.startTimeText]]">\n      </yt-formatted-string>\n      <yt-formatted-string class="snippet-text style-scope ytd-search-in-video-renderer" text="[[item.snippet]]">\n      </yt-formatted-string>\n    </div>\n  </template>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return IXu=F},{mode:1});var c08;var nq=function(){return _.n.apply(this,arguments)||this};
_.k(nq,_.n);nq.prototype.computeButtonOverride=function(){if(this.data)return{size:"S"}};
nq.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer",menuRenderer:"ytd-menu-renderer"}},"data.viewButton":{id:"view-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverride]]"}}}}}};
nq.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var F,W,E,h,d=(W=_.D((F=this.data)==null?void 0:F.onClickCommand,_.CjB))==null?void 0:(E=W.item)==null?void 0:(h=E.notificationTextRenderer)==null?void 0:h.successResponseText;d&&_.mqW(this.hostElement,d)}};
_.Sn.Object.defineProperties(nq.prototype,{useCenterLayoutContainer:{configurable:!0,enumerable:!0,get:function(){return this.isProductPlaceholder}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var F;return!((F=this.data)==null||!F.isProductPlaceholder)}},
showDropCountdown:{configurable:!0,enumerable:!0,get:function(){var F,W,E,h;return this.isProductPlaceholder&&((F=this.data)==null?void 0:(W=F.hiddenProductOptions)==null?void 0:W.showDropCountdown)&&!!((E=this.data)==null?0:(h=E.hiddenProductOptions)==null?0:h.dropTimestamp)}},
showBrandName:{configurable:!0,enumerable:!0,get:function(){var F;return!this.isProductPlaceholder&&!((F=this.data)==null?0:F.merchantName)}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var F;return!((F=this.data)==null||!F.priceReplacementText)}},
showPrice:{configurable:!0,enumerable:!0,get:function(){var F,W;return!((F=this.data)==null?0:F.priceReplacementText)&&!((W=this.data)==null||!W.price)}},
showMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.isProductPlaceholder}}});
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],nq.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],nq.prototype,"componentBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],nq.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],nq.prototype,"data",void 0);
_.T([_.O({reflectToAttribute:!0}),_.a("isProductPlaceholder"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],nq.prototype,"useCenterLayoutContainer",null);_.T([_.O({computed:"computeButtonOverride(data)"}),_.Y("design:type",Object)],nq.prototype,"buttonOverride",void 0);_.T([_.a("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],nq.prototype,"isProductPlaceholder",null);
_.T([_.a("isProductPlaceholder"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],nq.prototype,"showDropCountdown",null);_.T([_.a("isProductPlaceholder","data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],nq.prototype,"showBrandName",null);_.T([_.a("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],nq.prototype,"showPriceReplacementText",null);_.T([_.a("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],nq.prototype,"showPrice",null);
_.T([_.a("isProductPlaceholder"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],nq.prototype,"showMetadata",null);nq=_.T([_.y({disableElementRegistration:!0,is:"ytd-product-list-item-renderer"})],nq);
_.r(nq,"ytd-product-list-item-renderer",function(){if(c08!==void 0)return c08;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-list-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div data-offer-version-id$="[[data.debugOfferVersionId]]" id="product-list-item" class="style-scope ytd-product-list-item-renderer"><a id="container" class="yt-simple-endpoint style-scope ytd-product-list-item-renderer" href$="[[computeHref_(data.onClickCommand)]]" rel="[[computeNofollow_(data.onClickCommand)]]" data="[[data.onClickCommand]]" on-click="showSnackbarIfPlaceholder"><div id="product-thumbnail" class="style-scope ytd-product-list-item-renderer"><yt-img-shadow object-fit="CONTAIN" thumbnail="[[data.thumbnail]]" class="style-scope ytd-product-list-item-renderer"></yt-img-shadow></div><div id="product-info-and-view" class="style-scope ytd-product-list-item-renderer"><div id="product-info" class="style-scope ytd-product-list-item-renderer"><h4 id="product-title" class="style-scope ytd-product-list-item-renderer">[[getSimpleString(data.title)]]</h4><template is="dom-if" if="[[showDropCountdown]]" class="style-scope ytd-product-list-item-renderer"><yt-countdown target-timestamp="[[data.hiddenProductOptions.dropTimestamp]]" class="style-scope ytd-product-list-item-renderer"></yt-countdown></template><template is="dom-if" if="[[showMetadata]]" class="style-scope ytd-product-list-item-renderer"><div id="merchant-name" class="style-scope ytd-product-list-item-renderer">[[data.merchantName]]</div></template><template is="dom-if" if="[[showBrandName]]" class="style-scope ytd-product-list-item-renderer"><div id="brand-name" class="style-scope ytd-product-list-item-renderer">[[data.brandName]]</div></template><template is="dom-if" restamp="" if="[[showPriceReplacementText]]" class="style-scope ytd-product-list-item-renderer"><div id="product-price-replacement" class="style-scope ytd-product-list-item-renderer">[[data.priceReplacementText]]</div></template><template is="dom-if" restamp="" if="[[showPrice]]" class="style-scope ytd-product-list-item-renderer"><div id="product-price" class="style-scope ytd-product-list-item-renderer">[[data.price]]</div></template><template is="dom-if" if="[[showMetadata]]" class="style-scope ytd-product-list-item-renderer"><div id="affiliate-disclaimer-text" class="style-scope ytd-product-list-item-renderer">\n            [[data.affiliateDisclaimerText]]\n          </div></template></div><div id="view-button" hidden="[[!showMetadata]]" class="style-scope ytd-product-list-item-renderer"></div></div></a><div id="action-button" class="style-scope ytd-product-list-item-renderer"></div></div>');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return c08=F},{mode:1});var DVF;var yk=function(){return _.n.apply(this,arguments)||this};
_.k(yk,_.n);yk.prototype.created=function(){this.ytRendererBehavior.monitorScroll=!0};
yk.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{productListHeaderRenderer:"ytd-product-list-header-renderer",productListItemRenderer:"ytd-product-list-item-renderer"}}}};
yk.prototype.panelContentVisibleChanged=function(){var F=this,W;return _.e(function(E){if(E.nextAddress==1)return F.playerApi?E.jumpTo(2):_.Q(E,_.E8().getPlayerPromise(),3);E.nextAddress!=2&&(F.playerApi=E.yieldResult);(W=F.playerApi)==null||W.productsInVideoVisibilityUpdated(!!F.panelContentVisible);_.gG(E)})};
yk.prototype.panelContentVisibleChanged=yk.prototype.panelContentVisibleChanged;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],yk.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],yk.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],yk.prototype,"panelContentVisible",void 0);_.T([_.O(),_.Y("design:type",Object)],yk.prototype,"data",void 0);
_.T([_.ea("panelContentVisible"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype",Promise)],yk.prototype,"panelContentVisibleChanged",null);yk=_.T([_.y({disableElementRegistration:!0,is:"ytd-product-list-renderer"})],yk);
_.r(yk,"ytd-product-list-renderer",function(){if(DVF!==void 0)return DVF;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-product-list-renderer"></div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return DVF=F},{mode:1});var xVP;var jO=function(){var F=_.n.apply(this,arguments)||this;F.hideTimestamps=!!_.Cy("hide-transcript-timestamps");F.currentCueIndex=-1;F.flatCues=[];F.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-player-time-changed":"onYtPlayerTimeChanged"};F.TEST_ONLY={getFlatCues:function(){return F.flatCues}};
return F};
_.k(jO,_.n);_.N=jO.prototype;_.N.hideTimestampsChanged=function(){_.tl("hide-transcript-timestamps",this.hideTimestamps)};
_.N.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.N.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.N.dataChanged=function(){var F;if((F=this.data)!=null&&F.cueGroups){this.flatCues.length=0;this.currentCueIndex=-1;F=_.U(this.data.cueGroups);for(var W=F.next();!W.done;W=F.next()){W=_.U(_.D(W.value,Ylq).cues);for(var E=W.next();!E.done;E=W.next())this.flatCues.push(Number(_.D(E.value,wl6).startOffsetMs))}}};
_.N.onYtPlayerTimeChanged=function(F){if(!(F<0)){for(var W=this.currentCueIndex,E=W;;){var h=E>=0?this.flatCues[E]/1E3:-1;if(F+.5<h)--E;else if(h=E+1<this.flatCues.length?this.flatCues[E+1]/1E3:Infinity,F+.5>h)E+=1;else break}E!==W&&(W>=0&&((F=this.getCueElement(W))&&F.classList.remove("active"),(W=this.getCueGroupElement(W))&&W.classList.remove("active")),(W=this.getCueElement(E))&&W.classList.add("active"),(W=this.getCueGroupElement(E))&&W.classList.add("active"),this.currentCueIndex=E,this.isHovered||
this.scrollElementToTop(E))}};
_.N.scrollElementToTop=function(F){F=this.getCueElement(F>=3?F-3:0);this.hostElement.scrollTop=Math.min(F.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.N.getCueElement=function(F){return _.Z(this.hostElement).querySelector('.cue[start-offset="'+this.flatCues[F]+'"]')};
_.N.getCueGroupElement=function(F){return(F=this.getCueElement(F))&&F.parentElement?F.parentElement.parentElement:null};
_.N.onTap=function(F){var W=_.oo(F);F.target.classList.contains("cue")&&this.seekCueElement(W)};
_.N.onKeyPress=function(F){F.keyCode==13&&(F=_.R6_(F.target,null,"cue"))&&this.seekCueElement(F)};
_.N.seekCueElement=function(F){F=Number(F.getAttribute("start-offset"));_.dW(this.hostElement,"yt-transcript-player-seek",[F/1E3])};
_.N.onMouseEnter=function(){this.isHovered=!0};
_.N.onMouseLeave=function(){this.isHovered=!1};
jO.prototype.onMouseLeave=jO.prototype.onMouseLeave;jO.prototype.onMouseEnter=jO.prototype.onMouseEnter;jO.prototype.onKeyPress=jO.prototype.onKeyPress;jO.prototype.onTap=jO.prototype.onTap;jO.prototype.dataChanged=jO.prototype.dataChanged;jO.prototype.hideTimestampsChanged=jO.prototype.hideTimestampsChanged;_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],jO.prototype,"ytActionHandlerBehavior",void 0);
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],jO.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],jO.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],jO.prototype,"hideTimestamps",void 0);_.T([_.O(),_.Y("design:type",Boolean)],jO.prototype,"isHovered",void 0);_.T([_.ea("hideTimestamps"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],jO.prototype,"hideTimestampsChanged",null);
_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],jO.prototype,"dataChanged",null);_.T([_.R4("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],jO.prototype,"onTap",null);_.T([_.R4("keypress"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],jO.prototype,"onKeyPress",null);
_.T([_.R4("mouseenter"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],jO.prototype,"onMouseEnter",null);_.T([_.R4("mouseleave"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],jO.prototype,"onMouseLeave",null);jO=_.T([_.y({disableElementRegistration:!0,is:"ytd-transcript-body-renderer"})],jO);
_.r(jO,"ytd-transcript-body-renderer",function(){if(xVP!==void 0)return xVP;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transcript-body-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template as="cueGroup" is="dom-repeat" items="[[data.cueGroups]]" class="style-scope ytd-transcript-body-renderer">\n  <div class="cue-group style-scope ytd-transcript-body-renderer">\n    <div class="cue-group-start-offset style-scope ytd-transcript-body-renderer">\n      [[getSimpleString(cueGroup.transcriptCueGroupRenderer.formattedStartOffset)]]\n    </div>\n    <div class="cues style-scope ytd-transcript-body-renderer">\n      <template is="dom-repeat" items="[[cueGroup.transcriptCueGroupRenderer.cues]]" class="style-scope ytd-transcript-body-renderer">\n        <div class="cue style-scope ytd-transcript-body-renderer" role="button" start-offset$="[[item.transcriptCueRenderer.startOffsetMs]]" tabindex="0">\n          [[getSimpleString(item.transcriptCueRenderer.cue)]]\n        </div>\n      </template>\n    </div>\n  </div>\n</template>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return xVP=F},{mode:1});var kow;var iS=function(){var F=_.n.apply(this,arguments)||this;F.darkerPanels=_.c("web_watch_darker_panels");return F};
_.k(iS,_.n);iS.prototype.configureRendererStamper=function(){return{"data.languageMenu":{id:"menu",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],iS.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],iS.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],iS.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],iS.prototype,"darkerPanels",void 0);iS=_.T([_.y({disableElementRegistration:!0,is:"ytd-transcript-footer-renderer"})],iS);
_.r(iS,"ytd-transcript-footer-renderer",function(){if(kow!==void 0)return kow;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transcript-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="menu" class="style-scope ytd-transcript-footer-renderer"></div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return kow=F},{mode:1});var A0x;var s5$;var r6=function(){var F=_.n.apply(this,arguments)||this;F.systemIcons=_.c("kevlar_system_icons");F.showClearButton=!1;return F};
_.k(r6,_.n);_.N=r6.prototype;_.N.handleInput=function(F){var W=this;F.target.value.length?_.OO(this,"ytdTranscriptSearchBoxSearch",function(){W.emitSearchEvent(F)},500):(_.aMk(this,"ytdTranscriptSearchBoxSearch"),this.emitClearEvent());
this.showClearButton=F.target.value.length>0};
_.N.clear=function(){this.inputBox.value="";this.showClearButton=!1};
_.N.handleClick=function(){var F,W=(F=this.data)==null?void 0:F.trackingParams;W&&_.Bt(_.z4(),W)};
_.N.handleClear=function(){_.aMk(this,"ytdTranscriptSearchBoxSearch");this.emitClearEvent();var F,W,E=(W=_.D((F=this.data)==null?void 0:F.clearButton,_.jt))==null?void 0:W.trackingParams;E&&_.Bt(_.z4(),E);this.clear()};
_.N.emitSearchEvent=function(F){_.hF(this.hostElement,"yt-transcript-search-box-search",{query:F.target.value});var W,E;(F=(E=_.D((W=this.data)==null?void 0:W.searchButton,_.jt))==null?void 0:E.trackingParams)&&_.Bt(_.z4(),F)};
_.N.emitClearEvent=function(){_.hF(this.hostElement,"yt-transcript-search-box-clear")};
_.Sn.Object.defineProperties(r6.prototype,{inputBox:{configurable:!0,enumerable:!0,get:function(){return _.Z(this.hostElement).querySelector("#transcript-search-box-input")}},
value:{configurable:!0,enumerable:!0,get:function(){return this.inputBox.value}}});
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],r6.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],r6.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],r6.prototype,"systemIcons",void 0);r6=_.T([_.y({disableElementRegistration:!0,is:"ytd-transcript-search-box-renderer"})],r6);
_.r(r6,"ytd-transcript-search-box-renderer",function(){if(s5$!==void 0)return s5$;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transcript-search-box-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-input-container class="input-container style-scope ytd-transcript-search-box-renderer" no-label-float="true">\n  <yt-icon class="icon style-scope ytd-transcript-search-box-renderer" slot="prefix" icon="yt-icons:search"></yt-icon>\n  <input id="transcript-search-box-input" slot="input" type="text" placeholder="[[getSimpleString(data.formattedPlaceholder)]]" aria-autocomplete="list" aria-haspopup="listbox" maxlength="1000" role="combobox" on-click="handleClick" on-input="handleInput" class="style-scope ytd-transcript-search-box-renderer">\n  <tp-yt-paper-icon-button class="clear-button style-scope ytd-transcript-search-box-renderer" slot="suffix" hidden="[[!showClearButton]]" icon="yt-sys-icons:close" on-click="handleClear"></tp-yt-paper-icon-button>\n</tp-yt-paper-input-container>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return s5$=F},{mode:1});var LhN;var qIq;var TL=function(){return _.n.apply(this,arguments)||this};
_.k(TL,_.n);TL.prototype.dataChanged=function(){if(this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData){var F,W;this.sectionHeaderAriaLabel=(F=this.data)==null?void 0:(W=F.accessibility)==null?void 0:W.accessibilityData.label}};
TL.prototype.fireSelectedEvent=function(F){_.hF(this.hostElement,"ytd-transcript-section-header",{startMs:F})};
TL.prototype.handleClick=function(){this.data&&this.fireSelectedEvent(Number(this.data.startMs))};
TL.prototype.handleKeyPress=function(F){this.data&&F.key==="Enter"&&this.fireSelectedEvent(Number(this.data.startMs))};
_.Sn.Object.defineProperties(TL.prototype,{enableTappableTranscriptHeader:{configurable:!0,enumerable:!0,get:function(){var F,W;return(W=(F=this.data)==null?void 0:F.enableTappableTranscriptHeader)!=null?W:!1}}});
TL.prototype.dataChanged=TL.prototype.dataChanged;_.T([_.O(),_.Y("design:type",Object)],TL.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",String)],TL.prototype,"sectionHeaderAriaLabel",void 0);_.T([_.a("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],TL.prototype,"enableTappableTranscriptHeader",null);_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],TL.prototype,"dataChanged",null);
TL=_.T([_.y({disableElementRegistration:!0,is:"ytd-transcript-section-header-renderer"})],TL);
_.r(TL,"ytd-transcript-section-header-renderer",function(){if(qIq!==void 0)return qIq;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transcript-section-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" restamp="" if="[[enableTappableTranscriptHeader]]" class="style-scope ytd-transcript-section-header-renderer">\n  <div id="header" class="transcript-section-header style-scope ytd-transcript-section-header-renderer" aria-label$="[[sectionHeaderAriaLabel]]" tabindex="0" role="button" on-click="handleClick" on-keypress="handleKeyPress">\n    <yt-section-header-view-model data="[[data.sectionHeader.sectionHeaderViewModel]]" disable-vertical-padding="true" force-small-layout="true" class="style-scope ytd-transcript-section-header-renderer">\n  </yt-section-header-view-model></div>\n</template>\n<template is="dom-if" restamp="" if="[[!enableTappableTranscriptHeader]]" class="style-scope ytd-transcript-section-header-renderer">\n  <div id="header" aria-label$="[[sectionHeaderAriaLabel]]" class="style-scope ytd-transcript-section-header-renderer">\n    <yt-formatted-string id="title" aria-hidden="true" tabindex="-1" text="[[data.snippet]]" class="style-scope ytd-transcript-section-header-renderer">\n    </yt-formatted-string>\n  </div>\n</template>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return qIq=F},{mode:1});var $V6;var ZEu;var og=function(){var F=_.n.apply(this,arguments)||this;F.isEditMode=!1;F.touchCaptionsEnabled=!1;F.deleteCaptionCorrectionPopupCommand=null;F.voteCaptionCorrectionPopupCommand=null;F.roundedContainer=!0;F.mouseOver=!1;F.textChanged=!1;F.messages={suggest_correction:_.CY("suggest_correction",void 0,"Edit caption"),suggested_caption:_.CY("suggested_caption",void 0,"Suggested caption"),submit_correction:_.CY("submit_correction",void 0,"Submit for review"),cancel_correction:_.CY("cancel_correction",
void 0,"Cancel"),replay_segment:_.CY("replay_segment",void 0,"Re-play segment"),delete_correction:_.CY("delete_correction",void 0,"Delete correction")};F.actionMap={"yt-transcript-update-segment-text-command":"handleUpdateSegmentText","yt-transcript-edit-segment-command":"handleEditSegmentCommand"};return F};
_.k(og,_.n);_.N=og.prototype;_.N.dataChanged=function(){this.isEditMode=!1;this.editedText=this.data?this.data.userCorrection:void 0;this.data&&this.data.deleteCaptionCorrectionPopupCommand&&(this.deleteCaptionCorrectionPopupCommand=this.data.deleteCaptionCorrectionPopupCommand);this.data&&this.data.voteCaptionCorrectionPopupCommand&&(this.voteCaptionCorrectionPopupCommand=this.data.voteCaptionCorrectionPopupCommand);this.data&&this.data.accessibility&&(this.segmentAriaLabel=this.data.accessibility.accessibilityData.label)};
_.N.handleDelete=function(F){if(this.deleteCaptionCorrectionPopupCommand){var W=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.deleteCaptionCorrectionPopupCommand);W&&this.ytdOpenPopupBehavior.openPopup(W);F.stopPropagation()}};
_.N.handleSubmit=function(F){if(this.data&&this.data.submitCaptionCorrectionCommand&&(F.stopPropagation(),this.textChanged)){var W;F=(W=_.D(this.data.submitCaptionCorrectionCommand,_.BLO))==null?void 0:W.params;W=Object.assign({},this.data.submitCaptionCorrectionCommand,{transcriptSubmitCaptionCorrectionCommand:{params:F,correctionText:String(this.ironTextAreaElement.value),originalText:_.Yr(this.data.snippet)}});this.ytComponentBehavior.resolveCommand(W);this.isEditMode=!1}};
_.N.handleUpdateSegmentText=function(F){(F=_.D(F,ge6))&&F.targetId&&this.data&&F.targetId===this.data.targetId&&(F.userCorrection&&(this.editedText=F.userCorrection),F.restoreOriginalCaption&&(this.editedText=void 0,this.ironTextAreaElement.value=_.Yr(this.data.snippet)),F.deleteCaptionCorrectionPopupCommand?this.deleteCaptionCorrectionPopupCommand=F.deleteCaptionCorrectionPopupCommand:this.deleteCaptionCorrectionPopupCommand=null,this.voteCaptionCorrectionPopupCommand=F.voteCaptionCorrectionPopupCommand?
F.voteCaptionCorrectionPopupCommand:null,F.accessibility&&(this.segmentAriaLabel=F.accessibility.accessibilityData.label))};
_.N.handleCancel=function(F){this.isEditMode=!1;F.stopPropagation();this.logClientVe(159409)};
_.N.handleEditSegmentCommand=function(F){(F=_.D(F,MsO))&&F.targetId&&this.data&&F.targetId===this.data.targetId&&this.handleEdit()};
_.N.handleEditButtonClick=function(F){this.data&&(this.handleEdit(),F.stopPropagation())};
_.N.handleEdit=function(){if(this.data){this.fireEditEvent(Number(this.data.startMs),Number(this.data.endMs));this.isEditMode=!0;var F;(F=this.ironTextAreaElement.textarea)==null||F.focus();this.logClientVe(159407)}};
_.N.handleMouseEnter=function(){this.mouseOver=!0};
_.N.handleMouseLeave=function(){this.mouseOver=!1};
_.N.handleReplay=function(F){this.data&&(this.fireReplayEvent(Number(this.data.startMs),Number(this.data.endMs)),F.stopPropagation(),this.logClientVe(159408))};
_.N.handleClick=function(){this.data&&(this.voteCaptionCorrectionPopupCommand?(this.ytComponentBehavior.resolveCommand(this.voteCaptionCorrectionPopupCommand),this.fireReplayEvent(Number(this.data.startMs),Number(this.data.endMs))):(this.fireSelectedEvent(Number(this.data.startMs)),this.logClick()))};
_.N.handleKeypress=function(F){this.data&&(this.isEditMode?F.stopPropagation():this.isEnterPress(F)?(this.fireSelectedEvent(Number(this.data.startMs)),this.logClick()):this.isCopyPress(F)&&this.logClientVe(138758))};
_.N.handleTextboxClick=function(F){F.stopPropagation()};
_.N.handleTextboxKeydown=function(F){this.isControlEnterPress(F)?this.handleSubmit(F):F.key==="Escape"&&this.handleCancel(F)};
_.N.handleTextboxKeyup=function(){this.textChanged=_.Yr(this.latestText)!==String(this.ironTextAreaElement.value)};
_.N.fireSelectedEvent=function(F){_.hF(this.hostElement,"yt-transcript-segment-selected",{startMs:F})};
_.N.fireReplayEvent=function(F,W){_.hF(this.hostElement,"yt-transcript-segment-replay",{startMs:Math.max(F-100,0),endMs:W})};
_.N.fireEditEvent=function(F,W){_.hF(this.hostElement,"yt-transcript-segment-edit",{startMs:F,endMs:W})};
_.N.isEnterPress=function(F){return F.key==="Enter"||F.code==="Enter"||F.code==="NumpadEnter"||F.keyCode===13?!0:!1};
_.N.isControlEnterPress=function(F){var W=F.key==="Enter"||F.code==="Enter"||F.code==="NumpadEnter"||F.keyCode===13;return(F.ctrlKey||F.metaKey)&&W};
_.N.isCopyPress=function(F){var W=F.ctrlKey;return F.key==="c"&&W};
_.N.logClick=function(){var F,W=(F=this.data)==null?void 0:F.trackingParams;W&&_.Bt(_.z4(),W)};
_.N.logClientVe=function(F){_.Co(_.z4(),_.LQ(F))};
_.Sn.Object.defineProperties(og.prototype,{latestText:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.snippet?this.editedText&&this.touchCaptionsEnabled?this.editedText:this.data.snippet:{}}},
enableEditButton:{configurable:!0,enumerable:!0,get:function(){return this.touchCaptionsEnabled&&!this.isEditMode}},
enableUndoButton:{configurable:!0,enumerable:!0,get:function(){return this.enableEditButton&&this.deleteCaptionCorrectionPopupCommand!=null}}});
og.prototype.handleMouseLeave=og.prototype.handleMouseLeave;og.prototype.handleMouseEnter=og.prototype.handleMouseEnter;og.prototype.dataChanged=og.prototype.dataChanged;_.T([_.J(_.FM.YtActionHandlerBehavior),_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],og.prototype,"ytComponentBehavior",void 0);_.T([_.J(_.Gf),_.Y("design:type",Object)],og.prototype,"ytdOpenPopupBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],og.prototype,"ytRendererBehavior",void 0);
_.T([_.O(),_.Y("design:type",Object)],og.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],og.prototype,"isEditMode",void 0);_.T([_.O(),_.Y("design:type",Object)],og.prototype,"touchCaptionsEnabled",void 0);_.T([_.O(),_.Y("design:type",Object)],og.prototype,"editedText",void 0);_.T([_.O(),_.Y("design:type",Object)],og.prototype,"deleteCaptionCorrectionPopupCommand",void 0);_.T([_.O(),_.Y("design:type",Object)],og.prototype,"voteCaptionCorrectionPopupCommand",void 0);
_.T([_.O(),_.Y("design:type",String)],og.prototype,"segmentAriaLabel",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],og.prototype,"roundedContainer",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],og.prototype,"mouseOver",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],og.prototype,"textChanged",void 0);_.T([_.O(),_.Y("design:type",Object)],og.prototype,"messages",void 0);
_.T([_.gQ("#suggestion"),_.Y("design:type",Object)],og.prototype,"ironTextAreaElement",void 0);_.T([_.a("data","editedText"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],og.prototype,"latestText",null);_.T([_.a("touchCaptionsEnabled","isEditMode"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],og.prototype,"enableEditButton",null);
_.T([_.a("enableEditButton","deleteCaptionCorrectionPopupCommand"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],og.prototype,"enableUndoButton",null);_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],og.prototype,"dataChanged",null);_.T([_.R4("mouseenter"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],og.prototype,"handleMouseEnter",null);
_.T([_.R4("mouseleave"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],og.prototype,"handleMouseLeave",null);og=_.T([_.y({disableElementRegistration:!0,is:"ytd-transcript-segment-renderer"})],og);
_.r(og,"ytd-transcript-segment-renderer",function(){if(ZEu!==void 0)return ZEu;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transcript-segment-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="segment style-scope ytd-transcript-segment-renderer" aria-label$="[[segmentAriaLabel]]" role="button" tabindex="0" on-click="handleClick" on-keypress="handleKeypress">\n  <div class="segment-start-offset style-scope ytd-transcript-segment-renderer" tabindex="-1" aria-hidden="true" on-keypress="handleKeypress">\n    <div class="segment-timestamp style-scope ytd-transcript-segment-renderer">\n      [[getSimpleString(data.startTimeText)]]\n    </div>\n  </div>\n  <template is="dom-if" restamp="" if="[[touchCaptionsEnabled]]" class="style-scope ytd-transcript-segment-renderer">\n    <tp-yt-paper-input-container hidden="[[!isEditMode]]" no-label-float="true" use-v2-underline="" on-click="handleTextboxClick" on-keydown="handleTextboxKeydown" on-keyup="handleTextboxKeyup" class="style-scope ytd-transcript-segment-renderer">\n      <tp-yt-iron-autogrow-textarea id="suggestion" class="paper-input-input style-scope ytd-transcript-segment-renderer" slot="input" label="[[messages.suggested_caption]]" max-rows="4" required="true" rows="1" value="[[getSimpleString(data.snippet)]]">\n      </tp-yt-iron-autogrow-textarea>\n    </tp-yt-paper-input-container>\n    <div id="actions" hidden="[[!isEditMode]]" class="style-scope ytd-transcript-segment-renderer">\n      <div class="submit style-scope ytd-transcript-segment-renderer" on-click="handleSubmit">\n        <yt-icon-button label="[[messages.submit_correction]]" class="style-scope ytd-transcript-segment-renderer">\n          <yt-icon icon="yt-icons:check" class="style-scope ytd-transcript-segment-renderer"></yt-icon>\n          <tp-yt-paper-tooltip class="style-scope ytd-transcript-segment-renderer">[[messages.submit_correction]]</tp-yt-paper-tooltip>\n        </yt-icon-button>\n      </div>\n      <div class="cancel style-scope ytd-transcript-segment-renderer" on-click="handleCancel">\n        <yt-icon-button label="[[messages.cancel_correction]]" class="style-scope ytd-transcript-segment-renderer">\n          <yt-icon icon="yt-icons:close" class="style-scope ytd-transcript-segment-renderer"></yt-icon>\n          <tp-yt-paper-tooltip class="style-scope ytd-transcript-segment-renderer">[[messages.cancel_correction]]</tp-yt-paper-tooltip>\n        </yt-icon-button>\n      </div>\n      <div class="replay style-scope ytd-transcript-segment-renderer" on-click="handleReplay">\n        <yt-icon-button label="[[messages.replay_segment]]" class="style-scope ytd-transcript-segment-renderer">\n          <yt-icon icon="yt-icons:replay_arrow" class="style-scope ytd-transcript-segment-renderer"></yt-icon>\n          <tp-yt-paper-tooltip class="style-scope ytd-transcript-segment-renderer">[[messages.replay_segment]]</tp-yt-paper-tooltip>\n        </yt-icon-button>\n      </div>\n    </div>\n  </template>\n  <yt-formatted-string class="segment-text style-scope ytd-transcript-segment-renderer" aria-hidden="true" hidden="[[isEditMode]]" tabindex="-1" text="[[latestText]]">\n  </yt-formatted-string>\n  <template is="dom-if" restamp="" if="[[touchCaptionsEnabled]]" class="style-scope ytd-transcript-segment-renderer">\n    <div class="segment-undo style-scope ytd-transcript-segment-renderer" on-click="handleDelete" hidden="[[!enableUndoButton]]">\n      <yt-icon-button label="[[messages.delete_correction]]" class="style-scope ytd-transcript-segment-renderer">\n        <yt-icon icon="yt-icons:arrow_undo" class="style-scope ytd-transcript-segment-renderer"></yt-icon>\n        <tp-yt-paper-tooltip class="style-scope ytd-transcript-segment-renderer">[[messages.delete_correction]]</tp-yt-paper-tooltip>\n      </yt-icon-button>\n    </div>\n    <div class="segment-edit style-scope ytd-transcript-segment-renderer" on-click="handleEditButtonClick" hidden="[[!enableEditButton]]">\n      <yt-icon-button label="[[messages.suggest_correction]]" class="style-scope ytd-transcript-segment-renderer">\n        <yt-icon icon="yt-icons:edit" class="style-scope ytd-transcript-segment-renderer"></yt-icon>\n        <tp-yt-paper-tooltip class="style-scope ytd-transcript-segment-renderer">[[messages.suggest_correction]]</tp-yt-paper-tooltip>\n      </yt-icon-button>\n    </div>\n  </template>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return ZEu=F},{mode:1});var GL=function(){var F=_.n.apply(this,arguments)||this;F.actionMap={"yt-player-time-changed":"onYtPlayerTimeChanged"};F.isError=!1;F.darkerPanels=_.c("web_watch_darker_panels");F.segmentOffsets=[];F.segmentIndex=-1;return F};
_.k(GL,_.n);_.N=GL.prototype;_.N.configureRendererStamper=function(){return{segments:{id:"segments-container",mapping:{transcriptSegmentRenderer:{component:"ytd-transcript-segment-renderer",properties:{touchCaptionsEnabled:"[[data.touchCaptionsEnabled]]"}},transcriptSectionHeaderRenderer:{component:"ytd-transcript-section-header-renderer"}}}}};
_.N.segmentsChanged=function(){this.updateOffsets()};
_.N.onYtPlayerTimeChanged=function(F){for(var W=this.segmentIndex,E=W;;){if(E>=0){var h=this.segmentOffsets[E].start;var d=this.segmentOffsets[E].isAutoScrollable}else h=-1,d=!0;var V=F+.5;if(!d){h=E+1<this.segmentOffsets.length?this.segmentOffsets[E+1].start:Infinity;if(V>=h){E+=1;continue}E=-1;break}if(V<h)h=E-1>=0&&this.segmentOffsets[E-1].isAutoScrollable,d=E===0||h?1:2,E-=d;else if(d=E+1<this.segmentOffsets.length&&this.segmentOffsets[E+1].isAutoScrollable?1:2,h=E+d<this.segmentOffsets.length?
this.segmentOffsets[E+d].start:Infinity,V>h)E+=d;else{if(E<0)break;E<this.segmentOffsets.length&&V>this.segmentOffsets[E].end&&(E=-1);break}}if(W!==E){if(W>=0){var R;(R=this.getSegmentElement(W))==null||R.classList.remove("active")}this.segmentIndex=E;if(!(E<0)){var M;(M=this.getSegmentElement(E))==null||M.classList.add("active");this.isHovered||this.scrollElementToTop(E)}}};
_.N.handleSegmentEdit=function(F){F.target&&(this.lastSegmentEdited&&(this.lastSegmentEdited.isEditMode=!1),this.lastSegmentEdited=F.target,_.dW(this.hostElement,"yt-transcript-player-edit",[F.detail.startMs/1E3,F.detail.endMs/1E3]))};
_.N.handleSegmentSelected=function(F){_.dW(this.hostElement,"yt-transcript-player-seek",[F.detail.startMs/1E3])};
_.N.handleSegmentReplay=function(F){_.dW(this.hostElement,"yt-transcript-player-replay",[F.detail.startMs/1E3,F.detail.endMs/1E3])};
_.N.handleSectionHeaderSelected=function(F){_.dW(this.hostElement,"yt-transcript-player-seek",[F.detail.startMs/1E3])};
_.N.onMouseEnter=function(){this.isHovered=!0};
_.N.onMouseLeave=function(){this.isHovered=!1};
_.N.onRetryButtonClick=function(){_.hF(this.hostElement,"transcript-retry-button-click")};
_.N.getSegmentElement=function(F){return _.Z(this.hostElement).querySelector(":nth-child("+(F+1)+")")};
_.N.scrollElementToTop=function(F){F=this.getSegmentElement(F>=2?F-2:0);this.hostElement.scrollTop=Math.min(F.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.N.updateOffsets=function(){this.segmentOffsets=this.segments.map(function(F){var W,E=(W=F.transcriptSegmentRenderer)!=null?W:F.transcriptSectionHeaderRenderer;return{start:Number(E.startMs)/1E3,end:Number(E.endMs)/1E3,isAutoScrollable:F.transcriptSegmentRenderer!==void 0}});
this.segmentIndex=-1;this.clearHighlightedSegments()};
_.N.clearHighlightedSegments=function(){var F=_.Z(this.hostElement);F=_.U(F.querySelectorAll("ytd-transcript-segment-renderer"));for(var W=F.next();!W.done;W=F.next())W.value.classList.remove("active")};
_.Sn.Object.defineProperties(GL.prototype,{segments:{configurable:!0,enumerable:!0,get:function(){var F,W;return((F=this.data)==null?void 0:F.searchResultSegments)||((W=this.data)==null?void 0:W.initialSegments)||[]}},
displayNoResults:{configurable:!0,enumerable:!0,get:function(){return!!this.segments&&this.segments.length===0&&!!this.noResultLabel}}});
GL.prototype.onMouseLeave=GL.prototype.onMouseLeave;GL.prototype.onMouseEnter=GL.prototype.onMouseEnter;GL.prototype.handleSectionHeaderSelected=GL.prototype.handleSectionHeaderSelected;GL.prototype.handleSegmentReplay=GL.prototype.handleSegmentReplay;GL.prototype.handleSegmentSelected=GL.prototype.handleSegmentSelected;GL.prototype.handleSegmentEdit=GL.prototype.handleSegmentEdit;GL.prototype.segmentsChanged=GL.prototype.segmentsChanged;
_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],GL.prototype,"ytActionHandlerBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],GL.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],GL.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],GL.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Object)],GL.prototype,"isError",void 0);
_.T([_.O(),_.Y("design:type",Object)],GL.prototype,"noResultLabel",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],GL.prototype,"darkerPanels",void 0);_.T([_.a("data"),_.Y("design:type",Array),_.Y("design:paramtypes",[])],GL.prototype,"segments",null);_.T([_.a("segments","noResultLabel"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],GL.prototype,"displayNoResults",null);
_.T([_.ea("segments"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],GL.prototype,"segmentsChanged",null);_.T([_.R4("yt-transcript-segment-edit"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],GL.prototype,"handleSegmentEdit",null);_.T([_.R4("yt-transcript-segment-selected"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],GL.prototype,"handleSegmentSelected",null);
_.T([_.R4("yt-transcript-segment-replay"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],GL.prototype,"handleSegmentReplay",null);_.T([_.R4("ytd-transcript-section-header"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],GL.prototype,"handleSectionHeaderSelected",null);_.T([_.R4("mouseenter"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],GL.prototype,"onMouseEnter",null);
_.T([_.R4("mouseleave"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],GL.prototype,"onMouseLeave",null);GL=_.T([_.y({disableElementRegistration:!0,is:"ytd-transcript-segment-list-renderer"})],GL);
_.r(GL,"ytd-transcript-segment-list-renderer",function(){if($V6!==void 0)return $V6;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transcript-segment-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="segments-container" class="style-scope ytd-transcript-segment-list-renderer"></div>\n<div id="message-container" hidden="[[!displayNoResults]]" class="style-scope ytd-transcript-segment-list-renderer">\n  <yt-formatted-string id="no-results" text="[[noResultLabel]]" class="style-scope ytd-transcript-segment-list-renderer">\n  </yt-formatted-string>\n</div>');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return $V6=F},{mode:1});var YI=function(){var F=_.n.apply(this,arguments)||this;F.hideTimestamps=!!_.Cy("hide-transcript-timestamps");F.isLoadingTranscripts=!1;F.darkerPanels=_.c("web_watch_darker_panels");F.isError=!1;F.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-signal-action-copy-transcript":"handleSignalActionCopyTranscript"};return F};
_.k(YI,_.n);_.N=YI.prototype;_.N.headerChanged=function(){var F,W;this.baseGetTranscriptsCommand=(W=_.D((F=this.data)==null?void 0:F.header,QBw))==null?void 0:W.onTextChangeCommand};
_.N.bodyChanged=function(){var F=this.getBodyRenderer();F&&(F.initialSegments&&(this.initialTranscriptsRenderer=F),F.noResultLabel&&(this.noResultLabel=F.noResultLabel),F.retryLabel&&(this.retryLabel=F.retryLabel))};
_.N.detached=function(){this.clearSearchBoxText()};
_.N.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"body"}};
_.N.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{transcriptSearchBoxRenderer:"ytd-transcript-search-box-renderer"}},"data.body":{id:"body",mapping:{transcriptSegmentListRenderer:{component:"ytd-transcript-segment-list-renderer",properties:{noResultLabel:"[[noResultLabel]]"}}}},"data.footer":{id:"footer",mapping:{transcriptFooterRenderer:"ytd-transcript-footer-renderer"}}}};
_.N.onReloadContinuationFinish=function(){this.isLoadingTranscripts=!1};
_.N.fireSearch=function(F){var W=this;if(F){var E=F.detail.query;if(this.baseGetTranscriptsCommand){var h;F=(h=_.D(this.baseGetTranscriptsCommand,_.doz))==null?void 0:h.params;var d;h=_.D((d=this.data)==null?void 0:d.footer,uN8);var V;if((d=(V=_.D(h==null?void 0:h.languageMenu,Usg))==null?void 0:V.subMenuItems)&&d.length>0&&(V=d.find(function(g){return g.selected}))){var R,M;
F=(R=V.continuation)==null?void 0:(M=R.reloadContinuationData)==null?void 0:M.continuation}R=Object.assign({},this.baseGetTranscriptsCommand,{getTranscriptEndpoint:{params:F,searchQuery:E}});this.ytComponentBehavior.resolveCommand(R,{commandController:{onServerError:function(){W.setError()}}});
this.isLoadingTranscripts=!0;this.set("data.body",{});PN$(this.ytContinuationHandlerBehavior,function(){return E===W.getCurrentSearchBoxText()})}}};
_.N.searchCleared=function(){this.data&&this.data.body&&(this.isLoadingTranscripts=!1,this.set("data.body",{transcriptSegmentListRenderer:this.initialTranscriptsRenderer}))};
_.N.onRetryButtonClick=function(){this.isError=!1;var F={query:this.getCurrentSearchBoxText()};this.fireSearch(new CustomEvent("yt-transcript-search-box-search",{detail:F}))};
_.N.hideTimestampsChanged=function(){_.tl("hide-transcript-timestamps",this.hideTimestamps)};
_.N.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.N.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.N.handleSignalActionCopyTranscript=function(){var F=this,W=this.getBodyRenderer();W&&(W=((W==null?void 0:W.searchResultSegments)||(W==null?void 0:W.initialSegments)||[]).map(function(E){return _.D(E,ts6)}).filter(function(E){return!!E}).map(function(E){return{snippet:E.snippet||{runs:[{text:""}]},
startTimeText:E.startTimeText||{simpleText:""}}}).map(function(E){var h=(E.snippet.runs||[]).reduce(function(d,V){return d+V.text},"");
return F.hideTimestamps?h:E.startTimeText.simpleText+" "+h}).join("\n"),this.copyToClipboard(W))};
_.N.copyToClipboard=function(F){navigator.clipboard&&navigator.clipboard.writeText(F)};
_.N.getCurrentSearchBoxText=function(){var F;return(F=this.searchBox)==null?void 0:F.value};
_.N.clearSearchBoxText=function(){this.searchBox&&this.searchBox.clear()};
_.N.getBodyRenderer=function(){var F;return _.D((F=this.data)==null?void 0:F.body,zk$)};
_.N.setError=function(){this.isLoadingTranscripts=!1;this.isError=!0};
_.Sn.Object.defineProperties(YI.prototype,{searchBox:{configurable:!0,enumerable:!0,get:function(){return _.Z(this.hostElement).querySelector("ytd-transcript-search-box-renderer")}}});
YI.prototype.hideTimestampsChanged=YI.prototype.hideTimestampsChanged;YI.prototype.searchCleared=YI.prototype.searchCleared;YI.prototype.fireSearch=YI.prototype.fireSearch;YI.prototype.onReloadContinuationFinish=YI.prototype.onReloadContinuationFinish;YI.prototype.bodyChanged=YI.prototype.bodyChanged;YI.prototype.headerChanged=YI.prototype.headerChanged;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],YI.prototype,"ytRendererBehavior",void 0);
_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],YI.prototype,"ytComponentBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],YI.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.br),_.Y("design:type",Object)],YI.prototype,"ytContinuationHandlerBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],YI.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],YI.prototype,"hideTimestamps",void 0);
_.T([_.O(),_.Y("design:type",Object)],YI.prototype,"isLoadingTranscripts",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],YI.prototype,"darkerPanels",void 0);_.T([_.O(),_.Y("design:type",Object)],YI.prototype,"isError",void 0);_.T([_.ea("data.header"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],YI.prototype,"headerChanged",null);
_.T([_.Cz("data.body"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],YI.prototype,"bodyChanged",null);_.T([_.R4("yt-reload-continuation-finish"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],YI.prototype,"onReloadContinuationFinish",null);_.T([_.R4("yt-transcript-search-box-search"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],YI.prototype,"fireSearch",null);
_.T([_.R4("yt-transcript-search-box-clear"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],YI.prototype,"searchCleared",null);_.T([_.ea("hideTimestamps"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],YI.prototype,"hideTimestampsChanged",null);YI=_.T([_.y({disableElementRegistration:!0,is:"ytd-transcript-search-panel-renderer"})],YI);
_.r(YI,"ytd-transcript-search-panel-renderer",function(){if(LhN!==void 0)return LhN;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transcript-search-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-transcript-search-panel-renderer"></div>\n<div id="body" class="style-scope ytd-transcript-search-panel-renderer"></div>\n<div id="error-container" hidden="[[!isError]]" class="style-scope ytd-transcript-search-panel-renderer">\n  <tp-yt-paper-button id="retry-button" on-click="onRetryButtonClick" class="style-scope ytd-transcript-search-panel-renderer">\n    <yt-formatted-string text="[[retryLabel]]" class="style-scope ytd-transcript-search-panel-renderer">\n    </yt-formatted-string>\n  </tp-yt-paper-button>\n</div>\n<div class="spinner-container style-scope ytd-transcript-search-panel-renderer" hidden="[[!isLoadingTranscripts]]">\n  <tp-yt-paper-spinner active="[[isLoadingTranscripts]]" class="style-scope ytd-transcript-search-panel-renderer"></tp-yt-paper-spinner>\n</div>\n<div id="footer" class="style-scope ytd-transcript-search-panel-renderer"></div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return LhN=F},{mode:1});var w6=function(){var F=_.n.apply(this,arguments)||this;F.player=null;F.playerPollJobId=0;return F};
_.k(w6,_.n);_.N=w6.prototype;_.N.panelContentVisibleChanged=function(){this.updatePlayerListening()};
_.N.onLoadReloadContinuation=function(F){_.c("enable_att_for_transcript_request_on_web_client")?this.ytComponentBehavior.resolveCommand({getTranscriptEndpoint:{params:F.target.data.continuation}}):(F={clickTrackingParams:F.target.data.clickTrackingParams,getTranscriptEndpoint:{params:F.target.data.continuation},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/get_transcript",sendPost:!0}}},_.WZ().resolve(_.EJ).resolveCommand(F,{form:{element:this.hostElement}}))};
_.N.configureRendererStamper=function(){return{"data.footer":{id:"footer",mapping:{transcriptFooterRenderer:"ytd-transcript-footer-renderer"}},"data.body":{id:"body",mapping:{transcriptBodyRenderer:"ytd-transcript-body-renderer"}},"data.content":{id:"content",mapping:{transcriptSearchPanelRenderer:"ytd-transcript-search-panel-renderer"}}}};
_.N.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-transcript-player-edit":"onYtTranscriptPlayerEdit","yt-transcript-player-seek":"onYtTranscriptPlayerSeek","yt-transcript-player-replay":"onYtTranscriptPlayerReplay"}};
_.N.attached=function(){this.updatePlayerListening()};
_.N.detached=function(){this.updatePlayerListening()};
_.N.updatePlayerListening=function(){this.isAttached&&this.panelContentVisible?(this.player&&this.stopPlayerListening(),this.startPlayerListening()):this.stopPlayerListening()};
_.N.startPlayerListening=function(){var F=this,W;return _.e(function(E){if(E.nextAddress==1)return(W=_.WS())?_.Q(E,W.getPlayerPromise(),2):E.return();F.player=E.yieldResult;F.playerPollJobId=_.P0.addLowPriorityJob(function(){F.getPlayerVideoProgress()},1E3);
F.player.addEventListener("onCueRangeEnter",function(h){F.onCueRangeEnter(h)});
F.player.addEventListener("onCueRangeExit",function(h){F.onCueRangeExit(h)});
F.player.addEventListener("onStateChange",function(h){F.onPlayerStateChange(h)});
F.player.addEventListener("SEEK_TO",function(h){F.onPlayerSeek(h)});
_.gG(E)})};
_.N.getPlayerVideoProgress=function(){var F=this;_.P0.cancelJob(this.playerPollJobId);if(this.player){var W=this.player.getCurrentTime();_.dW(this.hostElement,"yt-player-time-changed",[W])}this.playerPollJobId=_.P0.addLowPriorityJob(function(){F.getPlayerVideoProgress()},1E3)};
_.N.stopPlayerListening=function(){this.player=null;_.P0.cancelJob(this.playerPollJobId)};
_.N.onPlayerStateChange=function(F){F===2&&this.removePendingCue()};
_.N.onPlayerSeek=function(F){var W;if(W=this.pendingReplayCueId)W=this.pendingReplayCueId,W=F===(_.c("web_transcript_cue_id_killswitch")?Number(W):Number(W.split("_")[1]));W||this.removePendingCue()};
_.N.onCueRangeEnter=function(F){hjN(F)&&(this.pendingReplayCueId=F)};
_.N.onCueRangeExit=function(F){hjN(F)&&this.player&&(this.player.pauseVideo(),this.removePendingCue())};
_.N.removePendingCue=function(){this.player&&this.pendingReplayCueId&&this.player.removeCueRange(this.pendingReplayCueId);this.pendingReplayCueId=void 0};
_.N.onYtTranscriptPlayerSeek=function(F){this.player&&this.player.seekTo(F,!0)};
_.N.onYtTranscriptPlayerReplay=function(F,W){this.player&&(this.player.addCueRange(EGO(F),F,W),this.player.seekTo(F,!0),this.player.playVideo())};
_.N.onYtTranscriptPlayerEdit=function(F,W){this.player&&(this.player.getPlayerState()===1&&this.player.addCueRange(EGO(F),F,W),this.player.seekTo(F,!0))};
w6.prototype.onLoadReloadContinuation=w6.prototype.onLoadReloadContinuation;w6.prototype.panelContentVisibleChanged=w6.prototype.panelContentVisibleChanged;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],w6.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],w6.prototype,"ytComponentBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],w6.prototype,"ytRendererstamperBehavior",void 0);
_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],w6.prototype,"ytActionHandlerBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],w6.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],w6.prototype,"panelContentVisible",void 0);_.T([_.ea("panelContentVisible"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],w6.prototype,"panelContentVisibleChanged",null);
_.T([_.R4("yt-load-reload-continuation"),_.Y("design:type",Function),_.Y("design:paramtypes",[Object]),_.Y("design:returntype")],w6.prototype,"onLoadReloadContinuation",null);w6=_.T([_.y({disableElementRegistration:!0,is:"ytd-transcript-renderer"})],w6);
_.r(w6,"ytd-transcript-renderer",function(){if(A0x!==void 0)return A0x;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transcript-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="body" class="style-scope ytd-transcript-renderer"></div>\n<div id="content" class="style-scope ytd-transcript-renderer"></div>\n<div id="footer" class="style-scope ytd-transcript-renderer"></div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return A0x=F},{mode:1});var XdK;var HEx;var uS=function(){return _.n.apply(this,arguments)||this};
_.k(uS,_.n);uS.prototype.onTap=function(){this.data&&(this.data.navigationEndpoint&&_.hF(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.clickCommand&&_.Rj(this.hostElement,[this.data.clickCommand],this.hostElement))};
uS.prototype.computeHideMediaQuery=function(){return"(min-width: 600px) and (max-width: "+((0,_.Jp)()+_.b9)+"px)"};
uS.prototype.updateShouldHideFromBinding=function(F){this.shouldHide=F.detail.value};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],uS.prototype,"rendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],uS.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Boolean)],uS.prototype,"shouldHide",void 0);uS=_.T([_.y({is:"ytd-ad-engagement-panel-banner-renderer",disableElementRegistration:!0})],uS);
_.r(uS,"ytd-ad-engagement-panel-banner-renderer",function(){if(HEx!==void 0)return HEx;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ad-engagement-panel-banner-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<iron-media-query query="[[computeHideMediaQuery()]]" query-matches="[[shouldHide]]" on-query-matches-changed="updateShouldHideFromBinding" class="style-scope ytd-ad-engagement-panel-banner-renderer">\n</iron-media-query>\n<a class="yt-simple-endpoint banner-click-container style-scope ytd-ad-engagement-panel-banner-renderer" hidden="[[shouldHide]]" on-tap="onTap">\n  <yt-img-shadow class="banner-image style-scope ytd-ad-engagement-panel-banner-renderer" fit="" thumbnail="[[data.bannerImage]]">\n  </yt-img-shadow>\n</a>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return HEx=F},{mode:_.E6("kevlar_poly_si_batch_j070")?1:2});var PWu;var SO=function(){var F=_.n.apply(this,arguments)||this;F.modernPanels=_.c("kevlar_watch_modern_panels");F.buttonUpdate=_.c("web_modern_buttons");F.adsSemanticText=_.c("enable_ads_web_ep_buenos_aires_and_padding_fix");return F};
_.k(SO,_.n);SO.prototype.computeHideDefaultAdBadge=function(){return this.data&&!this.data.badges};
_.T([_.O(),_.Y("design:type",Object)],SO.prototype,"data",void 0);_.T([_.O({computed:"computeHideDefaultAdBadge(data)"}),_.Y("design:type",Boolean)],SO.prototype,"hideDefaultAdBadge",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],SO.prototype,"modernPanels",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],SO.prototype,"buttonUpdate",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],SO.prototype,"adsSemanticText",void 0);
SO=_.T([_.y({is:"ytd-engagement-panel-ad-subtitle-renderer",disableElementRegistration:!0})],SO);
_.r(SO,"ytd-engagement-panel-ad-subtitle-renderer",function(){if(PWu!==void 0)return PWu;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-engagement-panel-ad-subtitle-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-badge-supported-renderer id="ad-badge" badges="[[data.badges]]" hidden="[[hideDefaultAdBadge]]" class="style-scope ytd-engagement-panel-ad-subtitle-renderer">\n</ytd-badge-supported-renderer>\n<ytd-ad-hover-text-button-renderer id="ad-info-button" data="[[data.adInfoRenderer.adHoverTextButtonRenderer]]" hidden="[[!data.adInfoRenderer.adHoverTextButtonRenderer]]" class="style-scope ytd-engagement-panel-ad-subtitle-renderer">\n</ytd-ad-hover-text-button-renderer>\n<yt-formatted-string id="subtitle" ellipsis-truncate="" text="[[data.subtitle]]" class="style-scope ytd-engagement-panel-ad-subtitle-renderer">\n</yt-formatted-string>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return PWu=F},{mode:1});var J0O;var pq=function(){var F=_.n.apply(this,arguments)||this;F.darkerPanels=_.c("web_watch_darker_panels");F.enableSqueezebackPanels=_.c("web_shorts_enable_squeezeback_panels");F.enableAnchoredPanel=_.c("desktop_shorts_v2_anchored_panel");F.modernPanels=_.c("kevlar_watch_modern_panels");F.actionMap={"yt-engagement-panel-header-show-navigation-button-command":"onYtEngagementPanelHeaderShowNavigationButtonCommand"};return F};
_.k(pq,_.n);_.N=pq.prototype;_.N.computeAdsInfoButton=function(){if(_.c("web_modern_buttons")){var F,W;return(W=_.D((F=this.data)==null?void 0:F.subtitleComplex,Sl6))==null?void 0:W.adInfoRenderer}};
_.N.configureRendererStamper=function(){return{"data.visibilityButton":{id:"visibility-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer",sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}},"data.subtitleComplex":{id:"subtitle-complex",mapping:{engagementPanelAdSubtitleRenderer:"ytd-engagement-panel-ad-subtitle-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}},
adsInfoButton:{id:"ads-info-button",mapping:{adHoverTextButtonRenderer:{component:"ytd-ad-hover-text-button-renderer",params:{modernUpdate:!0}}}},"data.informationButton":{id:"information-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.banner":{id:"banner",mapping:{adEngagementPanelBannerRenderer:"ytd-ad-engagement-panel-banner-renderer"}},"data.navigationButton":{id:"navigation-button",mapping:{buttonRenderer:"ytd-button-renderer"},reuseComponents:!1},"data.subheader":{id:"subheader",
mapping:{chipBarViewModel:{component:"chip-bar-view-model",params:{disableDeselection:!0}}}}}};
_.N.collapsedChanged=function(){var F;(F=this.data)!=null&&F.actionButton?this.hideActionButton=this.targetId==="engagement-panel-ads"&&_.c("use_ads_engagement_panel_desktop_footer_cta")?!this.collapsed:!1:this.hideActionButton=!0};
_.N.focus=function(F){this.titleElement&&_.Y7(this.titleElement,F)};
_.N.computeTitleAriaLabel=function(F){var W=[];if(F.title){var E,h;W.push(this.ytRendererBehavior.getSimpleString(F.title)||((E=F.title.accessibility)==null?void 0:(h=E.accessibilityData)==null?void 0:h.label))}F.contextualInfo&&W.push(this.ytRendererBehavior.getSimpleString(F.contextualInfo));return W.join(" ")};
_.N.onHeaderClick=function(F){this.shouldTriggerHeaderClick(F)&&this.data&&(this.data.navigationEndpoint||this.data.onClickCommand?(this.data.navigationEndpoint&&_.hF(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.onClickCommand&&_.Rj(this.hostElement,[this.data.onClickCommand],this.hostElement)):(F=this.getVisibilityToggleButton())&&F.click())};
_.N.onVisibilityButtonClick=function(){if(this.data&&this.data.visibilityButton){var F=_.D(this.data.visibilityButton,_.jt)||_.D(this.data.visibilityButton,_.iE);F&&this.ytRendererBehavior.logExplicitClick(F)}};
_.N.getVisibilityToggleButton=function(){var F=_.Z(this.hostElement).querySelector("#visibility-button").firstElementChild;return(F==null?void 0:F.is)==="ytd-toggle-button-renderer"?F:null};
_.N.shouldTriggerHeaderClick=function(F){return!_.Sc(_.TB(F),this.hostElement,["YTD-MENU-RENDERER","YTD-BUTTON-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"])};
_.N.onYtEngagementPanelHeaderShowNavigationButtonCommand=function(F){F=_.D(F,_.jpP);this.targetId&&(F==null?void 0:F.targetId)===this.targetId&&(F=F.navigationButton)&&this.set("data.navigationButton",F)};
_.Sn.Object.defineProperties(pq.prototype,{adsSemanticText:{configurable:!0,enumerable:!0,get:function(){return _.c("enable_ads_web_ep_buenos_aires_and_padding_fix")&&this.targetId==="engagement-panel-ads"}},
isActionButtonHidden:{configurable:!0,enumerable:!0,get:function(){var F;return!!(((F=this.entity)==null?0:F.isActionButtonHidden)||this.hideActionButton)}}});
pq.prototype.collapsedChanged=pq.prototype.collapsedChanged;_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],pq.prototype,"actionHandlerBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],pq.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],pq.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.am),_.Y("design:type",Object)],pq.prototype,"ytdReduxBehavior",void 0);
_.T([_.O(),_.Y("design:type",Object)],pq.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",String)],pq.prototype,"targetId",void 0);_.T([_.O(),_.Y("design:type",Boolean)],pq.prototype,"collapsed",void 0);_.T([_.O(),_.Y("design:type",Boolean)],pq.prototype,"hideActionButton",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],pq.prototype,"shortsPanel",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],pq.prototype,"liveChatEngagementPanel",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],pq.prototype,"darkerPanels",void 0);_.T([_.gQ("#title"),_.Y("design:type",HTMLElement)],pq.prototype,"titleElement",void 0);_.T([_.O({computed:"computeAdsInfoButton(data)"}),_.Y("design:type",Object)],pq.prototype,"adsInfoButton",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],pq.prototype,"enableSqueezebackPanels",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],pq.prototype,"enableAnchoredPanel",void 0);_.T([_.O({selectorArgs:["data.engagementPanelTitleHeaderEntityKey"],selector:function(F,W){return _.Mn(F.entities,"engagementPanelTitleHeaderEntity",W)}}),
_.Y("design:type",Object)],pq.prototype,"entity",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],pq.prototype,"modernPanels",void 0);_.T([_.O({reflectToAttribute:!0}),_.a("targetId"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],pq.prototype,"adsSemanticText",null);_.T([_.Cz("collapsed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],pq.prototype,"collapsedChanged",null);
_.T([_.a("entity","hideActionButton"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],pq.prototype,"isActionButtonHidden",null);pq=_.T([_.y({is:"ytd-engagement-panel-title-header-renderer",disableElementRegistration:!0})],pq);
_.r(pq,"ytd-engagement-panel-title-header-renderer",function(){if(J0O!==void 0)return J0O;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-engagement-panel-title-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="banner" aria-hidden="true" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n<div id="ads-info-button" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n<div id="header" on-click="onHeaderClick" class="style-scope ytd-engagement-panel-title-header-renderer">\n  <div id="navigation-button" hidden="[[!data.navigationButton]]" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <yt-img-shadow id="icon" hidden="[[!data.icon]]" thumbnail="[[data.icon]]" class="style-scope ytd-engagement-panel-title-header-renderer"></yt-img-shadow>\n  <div id="title-container" class="style-scope ytd-engagement-panel-title-header-renderer">\n    <h2 id="title" aria-label$="[[computeTitleAriaLabel(data)]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n      <yt-formatted-string id="title-text" ellipsis-truncate="" text="[[data.title]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="contextual-info" hidden="[[!data.contextualInfo]]" text="[[data.contextualInfo]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n      </yt-formatted-string>\n    </h2>\n    <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n    </yt-formatted-string>\n    <ytd-badge-supported-renderer hidden="[[!data.titleBadge]]" top-standalone-badge="[[data.titleBadge]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n    </ytd-badge-supported-renderer>\n    <div id="subtitle-complex" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  </div>\n  <div id="action-button" hidden="[[isActionButtonHidden]]" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <div id="information-button" hidden="[[!data.informationButton]]" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <div id="menu" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <div id="visibility-button" on-click="onVisibilityButtonClick" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n</div>\n<div id="subheader" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return J0O=F},{mode:1});var aXO;var mP=function(){return _.n.apply(this,arguments)||this};
_.k(mP,_.n);mP.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.editButton":{id:"edit",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],mP.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],mP.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],mP.prototype,"data",void 0);mP=_.T([_.y({is:"ytd-macro-markers-info-item-renderer",disableElementRegistration:!0})],mP);
_.r(mP,"ytd-macro-markers-info-item-renderer",function(){if(aXO!==void 0)return aXO;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-macro-markers-info-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.infoText]]" class="style-scope ytd-macro-markers-info-item-renderer"></yt-formatted-string>\n<div id="menu" class="style-scope ytd-macro-markers-info-item-renderer"></div>\n<div id="edit" class="style-scope ytd-macro-markers-info-item-renderer"></div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return aXO=F},{mode:1});var fXK;var lXw=function(F,W,E,h,d,V){_.xj.call(this);var R=this;this.JSC$20045_containerElement=F;this.hostElement=W;this.supportedSyncItems=E;this.syncEntityKey=h;this.options=d;this.renderLazyListItems=V;this.activeItemBelowSyncPosition=this.contentVisible=this.browsingMode=!1;OEw(this);bEu(this);this.JSC$20045_scrollAnimation=new _.Jd(function(M){F.scrollTop=M});
_.gl(this,this.JSC$20045_scrollAnimation);this.addOnDisposeCallback(function(){R.exitBrowsingMode(!1);R.activeItem&&R.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}))})};
_.k(lXw,_.xj);var OEw=function(F){var W=_.kQ(_.WZ().resolve(_.P2),function(E){return E.entities.markersEngagementPanelSyncEntity||{}},function(E,h){var d;
E[F.syncEntityKey]!==h[F.syncEntityKey]&&((d=E[F.syncEntityKey])==null?void 0:d.activeItemIndex)!==void 0&&F.updatePanelActiveItem(E[F.syncEntityKey].activeItemIndex)});
F.unsubscribeFromTimedMarkersListSyncEntity=W;F.addOnDisposeCallback(W);nLP(F)},nLP=function(F){var W=_.WZ().resolve(_.P2);
W=_.aLY(W.getState(),F.syncEntityKey);(W==null?void 0:W.activeItemIndex)!==void 0&&(W=F.getItemByIndex(W.activeItemIndex))&&F.setActiveItem(W)},bEu=function(F){var W=new _.Nv(F.onScroll,50,F);
_.gl(F,W);var E=function(){W.fire()};
F.JSC$20045_containerElement.addEventListener("scroll",E);F.addOnDisposeCallback(function(){F.JSC$20045_containerElement.removeEventListener("scroll",E)})};
_.N=lXw.prototype;
_.N.updatePanelActiveItem=function(F){var W=this.getItemByIndex(F);if(W){if(this.setActiveItem(W),this.contentVisible)if(this.browsingMode){var E;((E=this.options)==null?void 0:E.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(F=y06(this),W.offsetTop<this.JSC$20045_containerElement.clientHeight+this.JSC$20045_containerElement.scrollTop&&F&&!this.activeItemBelowSyncPosition&&this.exitBrowsingMode(!1));j5F(this)}else this.scrollToItem(W)}else _.OB(new _.xC("Could not find "+this.supportedSyncItems+
" sync child to set active.",F,this.JSC$20045_containerElement.querySelectorAll(this.supportedSyncItems).length))};
_.N.getItemByIndex=function(F){var W;(W=this.renderLazyListItems)==null||W.call(this,F);W=this.JSC$20045_containerElement.querySelectorAll(this.supportedSyncItems);if(W.length>F)return W[F]};
_.N.setActiveItem=function(F){this.activeItem&&this.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}));F.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!0}}));this.activeItem=F};
_.N.scrollToItem=function(F){F=this.getScrollPositionForItem(F);this.JSC$20045_containerElement.scrollTop!==F&&this.JSC$20045_scrollAnimation.start(this.JSC$20045_containerElement.scrollTop,F,300)};
_.N.getScrollPositionForItem=function(F){if(this.JSC$20045_containerElement.querySelectorAll(this.supportedSyncItems)[0]===F)return 0;var W,E=((W=this.options)==null?0:W.percentOffset)?this.JSC$20045_containerElement.clientHeight*this.options.percentOffset:0;F=_.Zy(F).y+this.JSC$20045_containerElement.scrollTop-(_.Zy(this.JSC$20045_containerElement).y+E);return Math.max(0,Math.min(F,this.JSC$20045_containerElement.scrollHeight-this.JSC$20045_containerElement.offsetHeight))};
_.N.onScroll=function(){this.activeItemBelowSyncPosition=y06(this);if(this.activeItem&&!this.JSC$20045_scrollAnimation.isAnimating()&&Math.abs(this.JSC$20045_containerElement.scrollTop-this.getScrollPositionForItem(this.activeItem))>10){var F;switch((F=this.options)==null?void 0:F.floatingPillType){case "FLOATING_PILL_TYPE_MODERN_TRANSCRIPT":this.enterBrowsingMode(!iEO(this));j5F(this);break;default:this.enterBrowsingMode(!0)}}};
_.N.enterBrowsingMode=function(F){var W=this,E,h;return _.e(function(d){if(d.nextAddress==1){if(W.browsingMode)return d.return();W.browsingMode=!0;F&&W.hostElement.classList.add("browsing-mode");W.playerExitBrowsingModeListener=function(){W.exitBrowsingMode(!1)};
return _.Q(d,_.gk(),2)}E=d.yieldResult;(h=E)==null||h.addEventListener("SEEK_TO",W.playerExitBrowsingModeListener);_.gG(d)})};
_.N.exitBrowsingMode=function(F){F=F===void 0?!0:F;this.browsingMode&&(this.browsingMode=!1,this.hostElement.classList.remove("browsing-mode"),F&&this.scrollToItem(this.activeItem),this.removePlayerSeekListener())};
_.N.removePlayerSeekListener=function(){var F=this,W,E;return _.e(function(h){if(h.nextAddress==1)return F.playerExitBrowsingModeListener?_.Q(h,_.gk(),3):h.jumpTo(0);W=h.yieldResult;(E=W)==null||E.removeEventListener("SEEK_TO",F.playerExitBrowsingModeListener);F.playerExitBrowsingModeListener=void 0;_.gG(h)})};
var j5F=function(F){var W;((W=F.options)==null?void 0:W.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(iEO(F)?F.hostElement.classList.remove("browsing-mode"):F.activeItem&&F.hostElement.classList.add("browsing-mode"))},y06=function(F){if(!F.activeItem)return!1;
var W,E=((W=F.options)==null?0:W.percentOffset)?F.JSC$20045_containerElement.clientHeight*F.options.percentOffset:0;return F.activeItem.offsetTop>=F.JSC$20045_containerElement.scrollTop+E},iEO=function(F){if(!F.activeItem)return!1;
var W=F.activeItem.offsetTop+14<=F.JSC$20045_containerElement.scrollTop+F.JSC$20045_containerElement.clientHeight;return F.activeItem.offsetTop+F.activeItem.clientHeight-14>=F.JSC$20045_containerElement.scrollTop&&W};
lXw.prototype.panelContentVisibleChanged=function(F){(this.contentVisible=F)&&!this.browsingMode&&this.activeItem&&this.scrollToItem(this.activeItem)};
var r0K=function(F,W){F.syncEntityKey=W;var E;(E=F.unsubscribeFromTimedMarkersListSyncEntity)==null||E.call(F);OEw(F)},Tdx=function(F,W){F.options=W};var Kq=function(){var F=_.n.apply(this,arguments)||this;F.browsingMode=!1;F.modern=_.c("web_button_rework");F.actionMap={"yt-set-active-panel-item-action":"handleSetActivePanelItemAction"};return F};
_.k(Kq,_.n);_.N=Kq.prototype;_.N.activeItemChanged=function(){if(!_.c("synced_panel_scrolling_controller")){var F;((F=this.syncEntity)==null?void 0:F.activeItemIndex)!==void 0&&this.updatePanelActiveItem(this.syncEntity.activeItemIndex)}};
_.N.created=function(){var F=this;_.c("synced_panel_scrolling_controller")||(this.JSC$20049_scrollAnimation=new _.Jd(function(W){F.contents.scrollTop=W}),this.boundExitBrowsingMode=function(){F.exitBrowsingMode(!1)})};
_.N.detached=function(){if(_.c("synced_panel_scrolling_controller")){var F;(F=this.scrollController)==null||F.dispose();this.scrollController=void 0}else this.removePlayerSeekListener()};
_.N.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{macroMarkersListItemRenderer:{component:"ytd-macro-markers-list-item-renderer",properties:{useCustomColors:"[[useCustomColors]]"},params:{seekWithAnimationOnClick:!0}},macroMarkersInfoItemRenderer:"ytd-macro-markers-info-item-renderer",itemSectionRenderer:"ytd-item-section-renderer"}}}};
_.N.dataChanged=function(){var F=this;_.c("synced_panel_scrolling_controller")?_.wT(this,function(){if(F.scrollController){var W;(W=F.scrollController)==null||W.exitBrowsingMode(!1);var E,h,d;(h=F.scrollController)==null||r0K(h,(d=(E=F.data)==null?void 0:E.syncModelEntityKey)!=null?d:"default-macro-markers-list-renderer-entity-key");var V,R,M;(M=F.scrollController)==null||Tdx(M,{percentOffset:(V=F.data)==null?void 0:V.selectedItemAlignmentPercentOffset,floatingPillType:(R=F.data)==null?void 0:R.floatingPillType})}else{var g,
t,C,B;F.scrollController=new lXw(F.contents,F.hostElement,"ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model",(B=(g=F.data)==null?void 0:g.syncModelEntityKey)!=null?B:"default-macro-markers-list-renderer-entity-key",{percentOffset:(t=F.data)==null?void 0:t.selectedItemAlignmentPercentOffset,floatingPillType:(C=F.data)==null?void 0:C.floatingPillType},function(I){F.renderLazyListItems(I)})}F.scrollController.panelContentVisibleChanged(!!F.panelContentVisible)}):this.exitBrowsingMode()};
_.N.computeButtonShape=function(){var F=this;if(this.data&&this.data.syncButtonLabel&&this.modern)return{onTap:function(){F.onSyncClick()},
style:"mono",type:"filled",state:"active",size:"S",focused:!1,buttonText:this.ytRendererBehavior.getSimpleString(this.data.syncButtonLabel)}};
_.N.computeSyncEnabled=function(F){return!(F==null||!F.syncButtonLabel)};
_.N.renderLazyListItems=function(F){for(var W=this.contents.children,E=0,h=0;h<W.length;h++){var d=void 0;(d=W[h].ytLazyListBehavior)==null||d.fillRemainingListItems();var V=void 0,R=void 0;d=_.D((V=this.data)==null?void 0:(R=V.contents)==null?void 0:R[h],_.mke);R=V=void 0;if((V=d)==null?0:(R=V.contents)==null?0:R.length)E+=d.contents.length;if(E>=F)break}};
_.N.getItemByIndex=function(F){this.renderLazyListItems(F);var W=this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model");if(W.length>F)return W[F]};
_.N.setActiveItem=function(F){this.currentActiveItem&&this.currentActiveItem.active!==void 0&&(this.currentActiveItem.active=!1);F.active!==void 0&&(F.active=!0);this.currentActiveItem=F};
_.N.handleSetActivePanelItemAction=function(F){if((F=_.D(F,r9g))&&this.panelTargetId===F.panelTargetId){F=F.itemIndex;if(_.c("synced_panel_scrolling_controller")){var W,E;var h=(E=(W=this.data)==null?void 0:W.syncModelEntityKey)!=null?E:"default-macro-markers-list-renderer-entity-key"}else{var d;h=(d=this.data)==null?void 0:d.syncModelEntityKey}if(h){var V;((V=this.syncEntity)==null?void 0:V.activeItemIndex)!==F&&this.ytdReduxBehavior.dispatch(_.AG("markersEngagementPanelSyncEntity",h,{key:h,activeItemIndex:F}))}else this.updatePanelActiveItem(F)}};
_.N.updatePanelActiveItem=function(F){var W=this.getItemByIndex(F);W?(this.setActiveItem(W),!this.browsingMode&&this.panelContentVisible&&this.scrollToItem(W)):_.OB(new _.xC("Could not find ytd-macro-markers-list-renderer sync child to set active.",F,this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model").length))};
_.N.scrollToItem=function(F){F=this.getScrollPositionForItem(F);this.contents.scrollTop!==F&&this.JSC$20049_scrollAnimation.start(this.contents.scrollTop,F,300)};
_.N.getScrollPositionForItem=function(F){if(this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model")[0]===F)return 0;F=_.Zy(F).y+this.contents.scrollTop-_.Zy(this.contents).y-this.getStickyHeaderHeight(F);return Math.min(F,this.contents.scrollHeight-this.contents.offsetHeight)};
_.N.getStickyHeaderHeight=function(F){if(F.nodeName==="MACRO-MARKERS-PANEL-ITEM-VIEW-MODEL"){var W,E,h;return(h=(W=F.closest('ytd-item-section-renderer[header-style="sticky-header"]'))==null?void 0:(E=W.header)==null?void 0:E.offsetHeight)!=null?h:0}return 0};
_.N.onScroll=function(){_.c("synced_panel_scrolling_controller")||(this.ytRendererBehavior.markDirty(),this.syncEnabled&&!this.browsingMode&&this.currentActiveItem&&!this.JSC$20049_scrollAnimation.isAnimating()&&Math.abs(this.contents.scrollTop-this.getScrollPositionForItem(this.currentActiveItem))>10&&this.enterBrowsingMode())};
_.N.enterBrowsingMode=function(){var F=this;return _.e(function(W){if(W.nextAddress==1){if(F.browsingMode)return W.return();F.browsingMode=!0;return _.Q(W,_.E8().getPlayerPromise(),2)}F.player=W.yieldResult;F.player.addEventListener("SEEK_TO",F.boundExitBrowsingMode);_.gG(W)})};
_.N.exitBrowsingMode=function(F){this.browsingMode&&(this.browsingMode=!1,(F===void 0||F)&&this.scrollToItem(this.currentActiveItem),this.removePlayerSeekListener())};
_.N.removePlayerSeekListener=function(){this.player&&(this.player.removeEventListener("SEEK_TO",this.boundExitBrowsingMode),this.player=void 0)};
_.N.onSyncClick=function(){if(_.c("synced_panel_scrolling_controller")){var F;(F=this.scrollController)==null||F.exitBrowsingMode()}else this.exitBrowsingMode()};
_.N.panelContentVisibleChanged=function(){if(_.c("synced_panel_scrolling_controller")){var F;(F=this.scrollController)==null||F.panelContentVisibleChanged(!!this.panelContentVisible)}else this.panelContentVisible&&this.syncEnabled&&!this.browsingMode&&this.currentActiveItem&&this.scrollToItem(this.currentActiveItem)};
Kq.prototype.panelContentVisibleChanged=Kq.prototype.panelContentVisibleChanged;Kq.prototype.dataChanged=Kq.prototype.dataChanged;Kq.prototype.activeItemChanged=Kq.prototype.activeItemChanged;_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],Kq.prototype,"actionHandlerBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Kq.prototype,"ytRendererBehavior",void 0);
_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],Kq.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.am),_.Y("design:type",Object)],Kq.prototype,"ytdReduxBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],Kq.prototype,"data",void 0);_.T([_.O({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],Kq.prototype,"useCustomColors",void 0);_.T([_.O({computed:"computeSyncEnabled(data)"}),_.Y("design:type",Boolean)],Kq.prototype,"syncEnabled",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",String)],Kq.prototype,"panelTargetId",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Kq.prototype,"panelContentVisible",void 0);_.T([_.gQ("#contents"),_.Y("design:type",HTMLElement)],Kq.prototype,"contents",void 0);_.T([_.gQ("#sync-container"),_.Y("design:type",HTMLElement)],Kq.prototype,"syncContainer",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],Kq.prototype,"browsingMode",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Kq.prototype,"modern",void 0);_.T([_.O({selectorArgs:["data.syncModelEntityKey"],selector:_.aLY}),_.Y("design:type",Object)],Kq.prototype,"syncEntity",void 0);_.T([_.ea("syncEntity.activeItemIndex"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Kq.prototype,"activeItemChanged",null);
_.T([_.Cz("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Kq.prototype,"dataChanged",null);_.T([_.ea("panelContentVisible"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Kq.prototype,"panelContentVisibleChanged",null);Kq=_.T([_.y({is:"ytd-macro-markers-list-renderer",disableElementRegistration:!0})],Kq);
_.r(Kq,"ytd-macro-markers-list-renderer",function(){if(fXK!==void 0)return fXK;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-macro-markers-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" on-scroll="onScroll" class="style-scope ytd-macro-markers-list-renderer"></div>\n<div id="sync-container" hidden="[[!syncEnabled]]" class="style-scope ytd-macro-markers-list-renderer">\n  <tp-yt-paper-button id="sync-button" disable-upgrade="[[modern]]" hidden="[[modern]]" on-click="onSyncClick" class="style-scope ytd-macro-markers-list-renderer">\n    [[getSimpleString(data.syncButtonLabel)]]\n  </tp-yt-paper-button>\n  <yt-button-shape id="sync-button-modern" data="[[computeButtonShape(data)]]" disable-upgrade="[[!modern]]" hidden="[[!modern]]" class="style-scope ytd-macro-markers-list-renderer">\n  </yt-button-shape>\n</div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return fXK=F},{mode:1});var oLO;var Fo=function(){return _.n.apply(this,arguments)||this};
_.k(Fo,_.n);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Fo.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],Fo.prototype,"ytComponentBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],Fo.prototype,"data",void 0);Fo=_.T([_.y({is:"ytd-error-corrections-section-item-renderer",disableElementRegistration:!0})],Fo);
_.r(Fo,"ytd-error-corrections-section-item-renderer",function(){if(oLO!==void 0)return oLO;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-error-corrections-section-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow id="channel-thumbnail" height="36" thumbnail="[[data.thumbnail]]" width="36" class="style-scope ytd-error-corrections-section-item-renderer">\n</yt-img-shadow>\n<a id="correction-timestamp" class="yt-simple-endpoint style-scope ytd-error-corrections-section-item-renderer" data="[[data.onTap]]" href$="[[computeHref_(data.onTap)]]" on-click="onEndpointClick">\n  <yt-formatted-string text="[[data.timeLabel]]" class="style-scope ytd-error-corrections-section-item-renderer"></yt-formatted-string>\n</a>\n<div id="correction-text" class="style-scope ytd-error-corrections-section-item-renderer">\n  <yt-formatted-string text="[[data.correctionText]]" class="style-scope ytd-error-corrections-section-item-renderer"></yt-formatted-string>\n</div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return oLO=F},{mode:1});var Go6;var WR=function(){return _.n.apply(this,arguments)||this};
_.k(WR,_.n);WR.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer"}}}};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],WR.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],WR.prototype,"ytComponentBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],WR.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],WR.prototype,"data",void 0);WR=_.T([_.y({is:"ytd-error-corrections-section-renderer",disableElementRegistration:!0})],WR);
_.r(WR,"ytd-error-corrections-section-renderer",function(){if(Go6!==void 0)return Go6;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-error-corrections-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-error-corrections-section-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-error-corrections-section-renderer"></yt-formatted-string>\n  <div id="flex" class="style-scope ytd-error-corrections-section-renderer"></div>\n  <ytd-button-renderer id="view_all_button" data="[[data.viewAllButton.buttonRenderer]]" class="style-scope ytd-error-corrections-section-renderer">\n  </ytd-button-renderer>\n</div>\n<div id="items" class="style-scope ytd-error-corrections-section-renderer"></div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return Go6=F},{mode:1});var YIu;var EF=function(){return _.n.apply(this,arguments)||this};
_.k(EF,_.n);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],EF.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],EF.prototype,"componentBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],EF.prototype,"data",void 0);EF=_.T([_.y({is:"ytd-topic-link-renderer",disableElementRegistration:!0})],EF);
_.r(EF,"ytd-topic-link-renderer",function(){if(YIu!==void 0)return YIu;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-topic-link-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="topic-link-container" class="yt-simple-endpoint style-scope ytd-topic-link-renderer" data="[[data.endpoint]]" href$="[[computeOptionalHref_(data.endpoint)]]">\n    <yt-img-shadow id="thumbnail" alt="[[getSimpleString(data.title)]]" thumbnail="[[data.thumbnailDetails]]" width="32" class="style-scope ytd-topic-link-renderer">\n    </yt-img-shadow>\n    <div id="title" class="style-scope ytd-topic-link-renderer">[[getSimpleString(data.title)]]</div>\n    <yt-icon id="call-to-action-icon" hidden="[[!data.callToActionIcon]]" icon="[[data.callToActionIcon.iconType]]" class="style-scope ytd-topic-link-renderer">\n    </yt-icon>\n</a>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return YIu=F},{mode:1});var wdu;var hX=function(){var F=_.n.apply(this,arguments)||this;F.modern=_.c("kevlar_modern_sd_v2");F.modernLockupV2=_.c("modernize_structured_description_playlist_lockups_v2");F.modernTypography=_.c("web_modern_typography");return F};
_.k(hX,_.n);hX.prototype.configureRendererStamper=function(){return{"data.mediaLockups":{id:"media-lockups",mapping:{structuredDescriptionPlaylistLockupRenderer:{component:"ytd-structured-description-playlist-lockup-renderer",properties:{showSidePanelThumbnailOverlay:"[[modernLockupV2]]"}}}},"data.topicLink":{id:"topic-link",mapping:{topicLinkRenderer:"ytd-topic-link-renderer"}}}};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],hX.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],hX.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],hX.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],hX.prototype,"modern",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],hX.prototype,"modernLockupV2",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],hX.prototype,"modernTypography",void 0);hX=_.T([_.y({is:"ytd-video-description-course-section-renderer",disableElementRegistration:!0})],hX);
_.r(hX,"ytd-video-description-course-section-renderer",function(){if(wdu!==void 0)return wdu;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-description-course-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-video-description-course-section-renderer">\n  <div id="title" class="style-scope ytd-video-description-course-section-renderer">[[getSimpleString(data.sectionTitle)]]</div>\n</div>\n<div id="media-lockups" class="style-scope ytd-video-description-course-section-renderer"></div>\n<div id="topic-link" class="style-scope ytd-video-description-course-section-renderer"></div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return wdu=F},{mode:1});var u1w;var dg=function(){var F=_.n.apply(this,arguments)||this;F.modern=_.c("kevlar_modern_sd_v2");F.modernTypography=_.c("web_modern_typography");return F};
_.k(dg,_.n);dg.prototype.configureRendererStamper=function(){return{"data.files":{id:"file-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.viewAllButton":{id:"view-all-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],dg.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],dg.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],dg.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],dg.prototype,"modern",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],dg.prototype,"modernTypography",void 0);
dg=_.T([_.y({is:"ytd-video-description-files-section-renderer",disableElementRegistration:!0})],dg);
_.r(dg,"ytd-video-description-files-section-renderer",function(){if(u1w!==void 0)return u1w;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-description-files-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-video-description-files-section-renderer">\n  <div id="title" class="style-scope ytd-video-description-files-section-renderer">[[getSimpleString(data.sectionTitle)]]</div>\n  <div id="flex" class="style-scope ytd-video-description-files-section-renderer"></div>\n  <div id="view-all-button" class="style-scope ytd-video-description-files-section-renderer"></div>\n</div>\n<div id="description" class="style-scope ytd-video-description-files-section-renderer">[[getSimpleString(data.sectionDescription)]]</div>\n<div id="file-buttons" class="style-scope ytd-video-description-files-section-renderer"></div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return u1w=F},{mode:1});var SIT;var N$=function(){return _.n.apply(this,arguments)||this};
_.k(N$,_.n);N$.prototype.configureRendererStamper=function(){return{"data.mediaLockups":{id:"media-lockups",mapping:{mediaLockupRenderer:"ytd-media-lockup-renderer"}},"data.topicLink":{id:"topic-link",mapping:{topicLinkRenderer:"ytd-topic-link-renderer"}}}};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],N$.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],N$.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],N$.prototype,"data",void 0);N$=_.T([_.y({is:"ytd-video-description-gaming-section-renderer",disableElementRegistration:!0})],N$);
_.r(N$,"ytd-video-description-gaming-section-renderer",function(){if(SIT!==void 0)return SIT;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-description-gaming-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-video-description-gaming-section-renderer">\n  <h3 id="title" class="style-scope ytd-video-description-gaming-section-renderer">[[getSimpleString(data.sectionTitle)]]</h3>\n</div>\n<div id="media-lockups" class="style-scope ytd-video-description-gaming-section-renderer"></div>\n<div id="topic-link" class="style-scope ytd-video-description-gaming-section-renderer"></div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return SIT=F},{mode:1});var pdq;var VU=function(){var F=_.n.apply(this,arguments)||this;F.isExpanded=!1;return F};
_.k(VU,_.n);VU.prototype.computeHasDefaultMetadataEndpoint=function(F){var W;F=F==null?void 0:(W=F.defaultMetadata)==null?void 0:W.runs;return!(!F||F.length!==1||!F[0].navigationEndpoint)};
VU.prototype.onRowExpand=function(){this.isExpandable&&!this.isExpanded&&(this.isExpanded=!0)};
_.Sn.Object.defineProperties(VU.prototype,{isExpandable:{configurable:!0,enumerable:!0,get:function(){var F;return!((F=this.data)==null||!F.expandedMetadata)}},
showExpandedMetadata:{configurable:!0,enumerable:!0,get:function(){return!(!this.isExpandable||!this.isExpanded)}}});
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],VU.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],VU.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],VU.prototype,"isExpanded",void 0);_.T([_.O({computed:"computeHasDefaultMetadataEndpoint(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],VU.prototype,"hasDefaultMetadataEndpoint",void 0);
_.T([_.a("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],VU.prototype,"isExpandable",null);_.T([_.a("data","isExpandable","isExpanded"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],VU.prototype,"showExpandedMetadata",null);VU=_.T([_.y({is:"ytd-info-row-renderer",disableElementRegistration:!0})],VU);
_.r(VU,"ytd-info-row-renderer",function(){if(pdq!==void 0)return pdq;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-info-row-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="info-row-container" on-click="onRowExpand" class="style-scope ytd-info-row-renderer">\n  <div id="info-row-header" class="style-scope ytd-info-row-renderer">\n    <div id="title" class="style-scope ytd-info-row-renderer">[[getSimpleString(data.title)]]</div>\n    <div id="default-metadata-section" hidden="[[isExpanded]]" class="style-scope ytd-info-row-renderer">\n      <yt-formatted-string id="default-metadata" bold-links="" text="[[data.defaultMetadata]]" class="style-scope ytd-info-row-renderer">\n      </yt-formatted-string>\n      <span id="truncation-text" class="style-scope ytd-info-row-renderer">[[getSimpleString(data.truncationText)]]</span>\n      <yt-icon id="icon" class="expand-icon style-scope ytd-info-row-renderer" hidden="[[!data.expandIcon.iconType]]" icon="[[data.expandIcon.iconType]]">\n      </yt-icon>\n    </div>\n  </div>\n  <yt-formatted-string id="expanded-metadata" hidden="[[!showExpandedMetadata]]" text="[[data.expandedMetadata]]" class="style-scope ytd-info-row-renderer">\n  </yt-formatted-string>\n</div>\n\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return pdq=F},{mode:1});var mVg;var UF=function(){var F=_.n.apply(this,arguments)||this;F.currentIndex=0;F.supportComponentResize=!0;F.modern=_.c("kevlar_modern_sd_v2");F.JSC$20075_lastScrollContainerWidth=NaN;return F};
_.k(UF,_.n);_.N=UF.prototype;
_.N.configureRendererStamper=function(){return{videoLockups:{id:"items",mapping:{compactVideoRenderer:{component:"ytd-compact-video-renderer",params:{forceOneLineTitle:!0,musicMetadataVideoLockup:!0,hideThumbnail:!0}}},reuseComponents:!1},infoRows:{id:"info-rows",mapping:{infoRowRenderer:"ytd-info-row-renderer"}},"data.previousButton":{id:"left-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundPrevClick]]"}}}},"data.nextButton":{id:"right-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",
properties:{"on-tap":"[[boundNextClick]]"}}}},"data.topicLink":{id:"topic-link",mapping:{topicLinkRenderer:"ytd-topic-link-renderer"}}}};
_.N.getItemsPath=function(){return"videoLockups"};
_.N.hiddenChanged=function(){this.contentHidden||this.updateVideoLockupStyles()};
_.N.onIronResize=function(){this.updateVideoLockupStyles()};
_.N.dataChanged=function(){this.updateVideoLockupStyles();this.ytdHorizontalListBehavior.reset()};
_.N.updateVideoLockupStyles=function(){var F;this.JSC$20075_scrollContainer!==void 0&&(F=this.videoLockups)!=null&&F.length&&(F=this.JSC$20075_scrollContainer.clientWidth,F!==this.JSC$20075_lastScrollContainerWidth&&(this.JSC$20075_lastScrollContainerWidth=F,_.V9(this.hostElement,{"--ytd-compact-video-renderer-width":Math.min(F*.8,415)+"px"}),_.hF(this.hostElement,"iron-resize")))};
_.Sn.Object.defineProperties(UF.prototype,{videoLockups:{configurable:!0,enumerable:!0,get:function(){var F=[],W;if((W=this.data)==null||!W.carouselLockups)return F;W=_.U(this.data.carouselLockups);for(var E=W.next();!E.done;E=W.next()){E=E.value;var h=void 0;((h=_.D(E,IKK))==null?0:h.videoLockup)&&F.push(_.D(E,IKK).videoLockup)}return F}},
hasVideoLockups:{configurable:!0,enumerable:!0,get:function(){var F;return!((F=this.videoLockups)==null||!F.length)}},
infoRows:{configurable:!0,enumerable:!0,get:function(){var F=[],W;if((W=this.data)==null||!W.carouselLockups)return F;var E;return(E=_.D(this.data.carouselLockups[this.scrollCount],IKK))==null?void 0:E.infoRows}}});
UF.prototype.dataChanged=UF.prototype.dataChanged;UF.prototype.onIronResize=UF.prototype.onIronResize;UF.prototype.hiddenChanged=UF.prototype.hiddenChanged;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],UF.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],UF.prototype,"componentBehavior",void 0);_.T([_.J(_.EL.YtdHorizontalListBehavior),_.Y("design:type",Object)],UF.prototype,"ytdHorizontalListBehavior",void 0);
_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],UF.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],UF.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],UF.prototype,"inlineStructuredDescription",void 0);_.T([_.O({value:2}),_.Y("design:type",Number)],UF.prototype,"initialCount",void 0);_.T([_.O(),_.Y("design:type",Object)],UF.prototype,"currentIndex",void 0);
_.T([_.O(),_.Y("design:type",Number)],UF.prototype,"scrollCount",void 0);_.T([_.O(),_.Y("design:type",Object)],UF.prototype,"supportComponentResize",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],UF.prototype,"contentHidden",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],UF.prototype,"modern",void 0);_.T([_.gQ("#scroll-container"),_.Y("design:type",HTMLDivElement)],UF.prototype,"JSC$20075_scrollContainer",void 0);
_.T([_.ea("contentHidden"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],UF.prototype,"hiddenChanged",null);_.T([_.a("data"),_.Y("design:type",Array),_.Y("design:paramtypes",[])],UF.prototype,"videoLockups",null);_.T([_.a("videoLockups"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],UF.prototype,"hasVideoLockups",null);
_.T([_.R4("iron-resize"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],UF.prototype,"onIronResize",null);_.T([_.a("data","scrollCount"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],UF.prototype,"infoRows",null);_.T([_.Cz("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],UF.prototype,"dataChanged",null);UF=_.T([_.y({is:"ytd-video-description-music-section-renderer",disableElementRegistration:!0})],UF);
_.r(UF,"ytd-video-description-music-section-renderer",function(){if(mVg!==void 0)return mVg;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-description-music-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-video-description-music-section-renderer">\n  <h3 id="title" class="style-scope ytd-video-description-music-section-renderer">[[getSimpleString(data.sectionTitle)]]</h3>\n</div>\n<div id="video-lockups" hidden="[[!hasVideoLockups]]" class="style-scope ytd-video-description-music-section-renderer">\n  <div id="left-arrow-container" class="arrow-container style-scope ytd-video-description-music-section-renderer">\n    <div id="left-arrow-button" class="arrow style-scope ytd-video-description-music-section-renderer" hidden="[[atStart]]"></div>\n  </div>\n  <div id="scroll-container" class="style-scope ytd-video-description-music-section-renderer">\n    <div id="items" class="style-scope ytd-video-description-music-section-renderer"></div>\n  </div>\n  <div id="right-arrow-container" class="arrow-container style-scope ytd-video-description-music-section-renderer">\n    <div id="right-arrow-button" class="arrow style-scope ytd-video-description-music-section-renderer" hidden="[[atEnd]]"></div>\n  </div>\n</div>\n<div id="info-rows" class="style-scope ytd-video-description-music-section-renderer"></div>\n<a id="premium-upsell-link" class="yt-simple-endpoint style-scope ytd-video-description-music-section-renderer" aria-label$="[[data.premiumUpsellLink.title.accessibility.accessibilityData.label]]" hidden="[[!data.premiumUpsellLink]]" href$="[[computeOptionalHref_(data.premiumUpsellLink.navigationEndpoint)]]" title$="[[getSimpleString(data.premiumUpsellLink.title)]]" data="[[data.premiumUpsellLink.navigationEndpoint]]">\n  <yt-formatted-string id="premium-upsell-text" text="[[data.premiumUpsellLink]]" class="style-scope ytd-video-description-music-section-renderer">\n  </yt-formatted-string>\n</a>\n<div id="topic-link" class="style-scope ytd-video-description-music-section-renderer"></div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return mVg=F},{mode:_.E6("kevlar_poly_si_batch_j081")?1:2});var KhK;var R2=function(){var F=_.n.apply(this,arguments)||this;F.modern=_.c("kevlar_modern_sd_v2");F.modernTypography=_.c("web_modern_typography");return F};
_.k(R2,_.n);R2.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],R2.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],R2.prototype,"ytRendererBehavior",void 0);_.T([_.O({}),_.Y("design:type",Object)],R2.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],R2.prototype,"modern",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],R2.prototype,"modernTypography",void 0);
R2=_.T([_.y({is:"ytd-video-description-transcript-section-renderer",disableElementRegistration:!0})],R2);
_.r(R2,"ytd-video-description-transcript-section-renderer",function(){if(KhK!==void 0)return KhK;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-description-transcript-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="header" class="style-scope ytd-video-description-transcript-section-renderer">\n  <div id="title" class="style-scope ytd-video-description-transcript-section-renderer">[[getSimpleString(data.sectionTitle)]]</div>\n</div>\n<div id="sub-header" class="style-scope ytd-video-description-transcript-section-renderer">\n  <p id="sub-header-text" class="style-scope ytd-video-description-transcript-section-renderer">[[getSimpleString(data.subHeaderText)]]</p>\n</div>\n<div id="button-container" class="style-scope ytd-video-description-transcript-section-renderer">\n  <div id="primary-button" class="style-scope ytd-video-description-transcript-section-renderer"></div>\n</div>\n\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return KhK=F},{mode:1});var Ft6;_.pK(_.GK(function(F){var W=_.D1(_.E$r,function(){return F.data().firstProviderLinkStatusEntityKey}),E=_.D1(_.E$r,function(){return F.data().secondProviderLinkStatusEntityKey}),h=function(){var d,V;
return((d=W())==null?void 0:d.linked)||((V=E())==null?void 0:V.linked)};
return _.z("ytw-video-description-fantasy-section-view-model",{class:"ytwVideoDescriptionFantasySectionViewModelHost"},_.z(_.Ab,{className:"ytwVideoDescriptionFantasySectionViewModelTitle",text:function(){return F.data().sectionTitle}}),_.z(_.Ab,{className:"ytwVideoDescriptionFantasySectionViewModelMessage",
text:function(){return h()?F.data().connectedMessage:F.data().notConnectedMessage}}),_.z(_.v,{cond:h,
then:function(){return _.z(_.a6,{data:function(){return F.data().connectedButton}},{buttonViewModel:function(d){return _.z(_.rk,{data:d.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}),_.z(_.v,{cond:function(){return!h()},
then:function(){return _.z(_.a6,{data:function(){return F.data().notConnectedButton}},{buttonViewModel:function(d){return _.z(_.rk,{data:d.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}))},"Ii"),"ytw-video-description-fantasy-section-view-model",{props:{data:_.TS}});_.pK(_.GK(function(F){var W=F.data;return _.z("how-this-was-made-section-view-model",{class:"ytwHowThisWasMadeSectionViewModelHost",tabindex:-1},_.z("div",{class:"ytwHowThisWasMadeSectionViewModelSectionTitle"},_.z(_.Ab,{text:function(){return W().sectionTitle}})),_.z("div",{class:"ytwHowThisWasMadeSectionViewModelBodyHeader"},_.z(_.Ab,{text:function(){return W().bodyHeader}})),_.z("div",{class:"ytwHowThisWasMadeSectionViewModelBodyText"},_.z(_.Ab,{text:function(){return W().bodyText}})),_.z(_.v,
{cond:function(){return W().attributionText},
then:function(){return _.z("div",{class:"ytwHowThisWasMadeSectionViewModelAttributionText"},_.z(_.Ab,{text:function(){return W().attributionText}}))}}))},"Ji"),"how-this-was-made-section-view-model",{props:{data:_.TS}});_.pK(_.GK(function(F){return _.z("yt-video-description-youchat-section-view-model",{class:_.ec("ytVideoDescriptionYouchatSectionViewModelHost")},_.z("div",{class:"ytVideoDescriptionYouchatSectionViewModelSectionTitle"},_.z(_.Ab,{text:function(){return F.data().sectionTitle}})),_.z("div",{class:"ytVideoDescriptionYouchatSectionViewModelSubHeaderText"},_.z(_.Ab,{text:function(){return F.data().subHeaderText}})),_.z("div",{class:"ytVideoDescriptionYouchatSectionViewModelPrimaryButton"},_.z(_.rk,{data:function(){return _.D(F.data().primaryButton,
_.fx)}})))},"Ki"),"yt-video-description-youchat-section-view-model",{props:{data:_.TS}});var eI=function(){var F=_.n.apply(this,arguments)||this;F.modern=_.c("kevlar_modern_sd_v2");F.actionMap={"yt-set-active-panel-item-action":"handleSetActiveItemAction"};return F};
_.k(eI,_.n);_.N=eI.prototype;
_.N.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{videoDescriptionHeaderRenderer:{component:"ytd-video-description-header-renderer",properties:{shortsPanel:"[[shortsPanel]]",watchWhileSdp:"[[watchWhileSdp]]",engagementPanel:"[[engagementPanel]]"}},expandableVideoDescriptionBodyRenderer:{component:"ytd-expandable-video-description-body-renderer",properties:{panelContentVisible:"[[panelContentVisible]]",hasDescriptionOnly:"[[hasDescriptionOnly]]",engagementPanel:"[[engagementPanel]]",
shortsPanel:"[[shortsPanel]]"}},horizontalCardListRenderer:{component:"ytd-horizontal-card-list-renderer",properties:{inlineStructuredDescription:"[[inlineStructuredDescription]]"}},metadataRowContainerRenderer:{component:"ytd-metadata-row-container-renderer",params:{engagementPanelContent:!0}},merchandiseShelfRenderer:"ytd-merch-shelf-renderer",videoDescriptionCourseSectionRenderer:"ytd-video-description-course-section-renderer",videoDescriptionFilesSectionRenderer:"ytd-video-description-files-section-renderer",
videoDescriptionTranscriptSectionRenderer:"ytd-video-description-transcript-section-renderer",videoDescriptionFantasySectionViewModel:"ytw-video-description-fantasy-section-view-model",videoDescriptionGamingSectionRenderer:"ytd-video-description-gaming-section-renderer",videoDescriptionInfocardsSectionRenderer:{component:"ytd-video-description-infocards-section-renderer",properties:{engagementPanel:"[[engagementPanel]]"}},videoDescriptionMusicSectionRenderer:{component:"ytd-video-description-music-section-renderer",
properties:{inlineStructuredDescription:"[[inlineStructuredDescription]]"}},errorCorrectionsSectionRenderer:"ytd-error-corrections-section-renderer",reelShelfRenderer:{component:"ytd-reel-shelf-renderer",properties:{engagementPanel:"[[engagementPanel]]"}},shelfRenderer:"ytd-shelf-renderer",courseProgressViewModel:"yt-course-progress-view-model",howThisWasMadeSectionViewModel:"how-this-was-made-section-view-model",videoAttributesSectionViewModel:"yt-video-attributes-section-view-model",videoDescriptionYouchatSectionViewModel:"yt-video-description-youchat-section-view-model"}},
videoSummary:{id:"video-summary",mapping:{expandableMetadataRenderer:{component:"ytd-expandable-metadata-renderer",params:{isWatch:!0}}}},merchShelf:{id:"merch-shelf",mapping:{merchandiseShelfRenderer:{component:"ytd-merch-shelf-renderer",params:{watchMetadataRefresh:!0,inStructuredDescription:!0}}}}}};
_.N.panelContentVisibleChanged=function(){this.description&&(this.description.panelContentVisible=this.panelContentVisible)};
_.N.dataChanged=function(){var F,W;this.hasDescriptionOnly=!(((F=this.data)==null?void 0:(W=F.items)==null?void 0:W.length)!==1||!_.D(this.data.items[0],coT))};
_.N.onHiddenChanged=function(){this.musicMetadataSection&&(this.musicMetadataSection.contentHidden=this.hidden);this.hidden||this.resize()};
_.N.onYtExpanderMoreTapped=function(){this.autoFocusDescription()};
_.N.autoFocusDescription=function(){var F;((F=_.WZ().resolve(_.Fd(_.$V)))==null?0:F.isKeyBoardInUse())&&this.description&&_.SQ(this.description)};
_.N.resize=function(){if(_.c("kevlar_disable_sd_resize"))this.JSC$20083_cardList&&_.hF(this.JSC$20083_cardList,"iron-resize"),this.problemWalkthroughCardList&&_.hF(this.problemWalkthroughCardList,"iron-resize"),this.musicMetadataSection&&_.hF(this.musicMetadataSection,"iron-resize");else if(this.ironResizableBehavior.notifyResize(),this.shelfSection)this.shelfSection.onParentResize()};
_.N.scrollToSection=function(F){if(F=this.getSectionElement(F))_.dW(this.hostElement,"yt-scroll-to-watch-element",[F]),F.focus()};
_.N.getSectionElement=function(F){switch(F){case "infocards-item-section":var W;return(W=this.infocardsSection)!=null?W:null;case "transcript-item-section":var E;return(E=this.transcriptSection)!=null?E:null;case "how-this-was-made-section-item-section":var h;return(h=this.howThisWasMadeSection)!=null?h:null;case "files-item-section":var d;return(d=this.filesSection)!=null?d:null;default:return null}};
_.N.handleSetActiveItemAction=function(F){var W=_.D(F,r9g),E=W&&(W==null?void 0:W.panelTargetId)==="engagement-panel-macro-markers-problem-walkthroughs"?this.problemWalkthroughCardList:this.JSC$20083_cardList;if(W&&E){F=this.currentActiveChapter;var h=this.currentActiveProblem;W=E==null?void 0:E.getItemByIndex(W.itemIndex);var d=E=!0;W&&(W.active=!0,W.carouselType==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_DEFAULT"?(E=F!==W,d=!1,this.currentActiveChapter=W):(W==null?void 0:W.carouselType)===
"MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"&&(E=!1,d=h!==W,this.currentActiveProblem=W));F&&E&&(F.active=!1);h&&d&&(h.active=!1)}};
_.Sn.Object.defineProperties(eI.prototype,{showVideoSummary:{configurable:!0,enumerable:!0,get:function(){return _.c("web_watch_move_summary_to_sd")&&!!this.videoSummary}}});
eI.prototype.onYtExpanderMoreTapped=eI.prototype.onYtExpanderMoreTapped;eI.prototype.onHiddenChanged=eI.prototype.onHiddenChanged;eI.prototype.dataChanged=eI.prototype.dataChanged;eI.prototype.panelContentVisibleChanged=eI.prototype.panelContentVisibleChanged;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],eI.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],eI.prototype,"ytRendererstamperBehavior",void 0);
_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],eI.prototype,"actionHandlerBehavior",void 0);_.T([_.J(_.lB),_.Y("design:type",Object)],eI.prototype,"ironResizableBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],eI.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Boolean)],eI.prototype,"panelContentVisible",void 0);_.T([_.O(),_.Y("design:type",Boolean)],eI.prototype,"hasDescriptionOnly",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],eI.prototype,"inlineStructuredDescription",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],eI.prototype,"hidden",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],eI.prototype,"shortsPanel",void 0);_.T([_.O(),_.Y("design:type",Object)],eI.prototype,"videoSummary",void 0);_.T([_.O(),_.Y("design:type",Object)],eI.prototype,"merchShelf",void 0);
_.T([_.a("videoSummary"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],eI.prototype,"showVideoSummary",null);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],eI.prototype,"modern",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],eI.prototype,"engagementPanel",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],eI.prototype,"watchWhileSdp",void 0);
_.T([_.gQ("ytd-expandable-video-description-body-renderer"),_.Y("design:type",Object)],eI.prototype,"description",void 0);_.T([_.gQ("ytd-horizontal-card-list-renderer"),_.Y("design:type",Object)],eI.prototype,"JSC$20083_cardList",void 0);_.T([_.gQ("ytd-horizontal-card-list-renderer[center-items]"),_.Y("design:type",Object)],eI.prototype,"problemWalkthroughCardList",void 0);_.T([_.gQ("ytd-shelf-renderer"),_.Y("design:type",Object)],eI.prototype,"shelfSection",void 0);
_.T([_.gQ("ytd-video-description-music-section-renderer"),_.Y("design:type",Object)],eI.prototype,"musicMetadataSection",void 0);_.T([_.gQ("ytd-video-description-infocards-section-renderer"),_.Y("design:type",Object)],eI.prototype,"infocardsSection",void 0);_.T([_.gQ("ytd-video-description-transcript-section-renderer"),_.Y("design:type",Object)],eI.prototype,"transcriptSection",void 0);
_.T([_.gQ("how-this-was-made-section-view-model"),_.Y("design:type",Object)],eI.prototype,"howThisWasMadeSection",void 0);_.T([_.gQ("ytd-video-description-files-section-renderer"),_.Y("design:type",Object)],eI.prototype,"filesSection",void 0);_.T([_.ea("panelContentVisible"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],eI.prototype,"panelContentVisibleChanged",null);
_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],eI.prototype,"dataChanged",null);_.T([_.ea("hidden"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],eI.prototype,"onHiddenChanged",null);_.T([_.R4("yt-expander-more-tapped"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],eI.prototype,"onYtExpanderMoreTapped",null);
eI=_.T([_.y({is:"ytd-structured-description-content-renderer",disableElementRegistration:!0})],eI);
_.r(eI,"ytd-structured-description-content-renderer",function(){if(Ft6!==void 0)return Ft6;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-structured-description-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="video-summary" hidden="[[!showVideoSummary]]" class="style-scope ytd-structured-description-content-renderer"></div>\n<div id="merch-shelf" hidden="[[!merchShelf]]" class="style-scope ytd-structured-description-content-renderer"></div>\n<div id="items" class="style-scope ytd-structured-description-content-renderer"></div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return Ft6=F},{mode:2});var Wtw;var E1x;var M$=function(){return _.n.apply(this,arguments)||this};
_.k(M$,_.n);M$.prototype.computeAriaLabel=function(F){var W,E;return(F==null?void 0:(W=F.accessibility)==null?void 0:(E=W.accessibilityData)==null?void 0:E.label)||_.CY("LOADING",void 0,"Loading")};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],M$.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],M$.prototype,"data",void 0);_.T([_.O({computed:"computeAriaLabel(data)"}),_.Y("design:type",String)],M$.prototype,"ariaLabel",void 0);M$=_.T([_.$3({disableElementRegistration:!0,is:"yt-content-loading-renderer"})],M$);
_.r(M$,"yt-content-loading-renderer",function(){if(E1x===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-content-loading-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_content_loading_renderer.yt.content.loading.renderer.css.js--\x3e<tp-yt-paper-spinner id="spinner" active="[[data.useSpinner]]" alt="[[ariaLabel]]" class="style-scope yt-content-loading-renderer">\n</tp-yt-paper-spinner>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;Wtw===void 0&&(Wtw=document.createElement("template"));var h=Wtw;E.call(W,h.content.cloneNode(!0),F.content.firstChild);E1x=F}F=E1x;return F},{mode:_.E6("kevlar_poly_si_batch_j043")?1:2});_.pK(_.GK(function(F){var W=_.U(_.g$(!1,void 0,"WbYeXc")),E=W.next().value,h=W.next().value;W=_.U(_.g$(!1,void 0,"msXkzc"));var d=W.next().value,V=W.next().value;_.Xk(function(){var g=_.D(F.data().collaboratePlaylistCollaborationSetting,RkT);g&&h(g.switchedOnByDefault);var t=_.D(F.data().allowNewCollaboratorsPlaylistCollaborationSetting,RkT);t&&V(t.switchedOnByDefault);if(!g&&!t||!g&&F.data().collaborationType==="COLLABORATION_TYPE_TASTE_MATCH")h(!0),V(!0)});
var R=function(g){h(g);V(g);var t=F.data().playlistCollaborationEntityKey||"";var C=_.ja().getState();(C=_.Mn(C.entities,"playlistCollaborationEntity",t))&&(C==null?void 0:C.isCollaborative)===g||_.ja().dispatch(_.AG("playlistCollaborationEntity",t,Object.assign({},C,{isCollaborative:g})))},M=function(g){V(g)};
return _.z("playlist-collaboration-view-model",{class:"ytPlaylistCollaborationViewModelHost"},_.z("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.z(_.a6,{data:function(){return F.data().collaboratePlaylistCollaborationSetting}},{switchListItemViewModel:function(g){return _.z(_.SIO,{data:g.data,
onSwitch:R})}})),_.z(_.v,{cond:E,
then:function(){return _.z("div",null,_.z("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.z(_.a6,{data:function(){return F.data().allowNewCollaboratorsPlaylistCollaborationSetting}},{switchListItemViewModel:function(g){return _.z(_.SIO,{data:g.data,
onSwitch:M,overrideDisabled:!1})}})),_.z(_.v,{cond:d,
then:function(){return _.z("div",{class:"ytPlaylistCollaborationViewModelButtonViewModelWrapper"},_.z(_.a6,{data:function(){return F.data().copyLinkButton}},{buttonViewModel:_.rk}))}}),_.z("div",{class:"ytPlaylistCollaborationViewModelContentListItemViewModelWrapper"},_.z(_.a6,{data:function(){return F.data().playlistCollaborators}},{contentListItemViewModel:_.qSq})))}}))},"Li"),"playlist-collaboration-view-model",{props:{data:_.TS}});var hGq=_.GK(function(F){var W=F.data;var E=F.customCommandResolver;return _.z(_.EG,null,_.z("div",{class:"ytwAdAvatarLockupViewModelHostAvatarStyleCompact"},_.z(_.a6,{data:function(){return W().adAvatar}},{adAvatarViewModel:function(h){return _.z(_.f3e,{data:h.data,
customCommandResolver:E})}})),_.z("div",{class:"ytwAdAvatarLockupViewModelHostTextsStyleCompact"},_.z(_.v,{cond:function(){return W().headline},
then:function(h){return _.z(_.Ab,{text:h,className:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactHeadlineWidthUnlocked"}})}}),_.z("div",{class:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactDescriptionWidthUnlocked"}},_.z(_.a6,{data:function(){return W().adBadge}},{adBadgeViewModel:function(h){return _.z(_.FI,{data:h.data,
hasDot:function(){return W().primaryDetailsLine!==void 0},
customCommandResolver:E,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}),_.z(_.a6,{data:function(){return W().primaryDetailsLine}},{adDetailsLineViewModel:function(h){return _.z(_.Wh,{data:h.data,
customCommandResolver:E,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))))},"Mi"),dN6=_.GK(function(F){var W=F.data;
var E=F.customCommandResolver;F=_.uf();_.WH(F,function(){return W().interaction},E);
_.ER(F,{visibilityCallback:function(h){var d,V=(d=W().interaction)==null?void 0:d.onFirstVisible;h&&V&&_.fK(V)},
showOption:_.w1});return _.z("ad-avatar-lockup-view-model",{class:function(){var h;return((h=W().interaction)==null?0:h.onTap)?"ytwAdAvatarLockupViewModelHostIsClickableAdComponent":"ytwAdAvatarLockupViewModelHost"},
el:F,"aria-label":function(){var h,d;return(h=W().interaction)==null?void 0:(d=h.accessibility)==null?void 0:d.label}},_.z(_.sG,null,_.z(_.kF,{when:function(){return W().style==="AD_AVATAR_LOCKUP_STYLE_COMPACT"}},function(){return _.z(hGq,{data:W,
customCommandResolver:E})}),_.z(_.A8,null,function(){return null})))},"Ni");_.pK(_.GK(function(F){var W=F.data;var E=F.panelContentVisibility;F=_.uf();_.WH(F,function(){return W().interaction},dtu);
_.ER(F,{visibilityCallback:function(d){var V,R=(V=W().interaction)==null?void 0:V.onFirstVisible;d&&R&&_.fK(R)},
showOption:_.w1});_.HX(function(){var d,V;if(V=_.ju("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var R;V=(R=V())==null?void 0:R.onLayoutVisibleCallback}else V=null;(d=V)==null||d()});
var h=function(){return E()==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"};
return _.z("panel-ad-header-image-lockup-view-model",{class:"ytwPanelAdHeaderImageLockupViewModelHost",el:F},_.z("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeader"},_.z("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderBannerImage"},_.z(_.v,{cond:_.uNR("(min-width: "+((0,_.Jp)()+_.b9)+"px) or (max-width: 600px)"),then:function(){return _.z(_.a6,{data:function(){return W().adImage}},{adImageViewModel:function(d){return _.z(_.Rz,{data:d.data,
targetHeight:80,customCommandResolver:dtu})}})}})),_.z("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadata"},_.z("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataAvatarLockup"},_.z(_.a6,{data:function(){return W().adAvatarLockup}},{adAvatarLockupViewModel:function(d){return _.z(dN6,{data:d.data,
customCommandResolver:dtu})}})),_.z(_.v,{cond:h,
then:function(){return _.z(_.a6,{data:function(){return W().adButton}},{adButtonViewModel:function(d){return _.z(_.Sd,{data:d.data,
customCommandResolver:dtu})}})},
else:function(){return _.z(_.a6,{data:function(){return W().menu}},{buttonViewModel:_.rk})}}),_.z("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataMenu"},_.z(_.a6,{data:function(){var d=_.D(W().toggleButton,_.O8);
return{toggleButtonViewModel:Object.assign({},d,{isTogglingDisabled:!0,isToggled:h()})}}},{toggleButtonViewModel:_.bJ})))))},"Oi"),"panel-ad-header-image-lockup-view-model",{props:{data:_.TS,
panelContentVisibility:_.TS}});_.pK(_.GK(function(F){var W=function(){return _.D(F.data().inputComposerViewModel,ekN)},E=function(){var P;
return((P=W())==null?void 0:P.youchatPendingResponseEntityKey)||""},h=_.D1(_.uSN,E),d=function(){var P;
return!((P=h())==null||!P.isPendingResponse)},V=_.U(_.g$(!0,void 0,"DR0q1d")),R=V.next().value,M=V.next().value,g=function(){return W().sectionTargetId||"youchat_messages_section"};
V=_.Sh();var t=_.uf(),C=_.D1(Yu6,"chat_input_view_model_state"),B=wVT(),I=function(){var P;return!((P=C())==null||!P.value)};
_.Xk(function(){var P;!I()&&((P=W())==null?0:P.welcomeFeatureContinuation)&&(P={continuationCommand:{token:W().welcomeFeatureContinuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}},_.Pe(P),B(!0));var b=g(),l;(l=_.WZ().resolve(_.Fd(_.g_)))==null||l.addEventListener("yt-navigate-start",function(){_.HS.remove(b);B(!1)},{once:!0})});
var x=_.tb(function(P){var b=d()||!1;NB6(t.value);b||P.key!=="Enter"||P.shiftKey||(P.preventDefault(),X());return!1}),A=_.tb(function(){M(t.value.value.length===0);
return!1}),X=function(){var P,b,l,w,G,hr,p,UY,xW;
return _.e(function(qw){P=t.value.value;t.value.value="";NB6(t.value);b=VAg(g(),P);_.Pe(b);l=_.SEq(E());_.fK(((w=W())==null?void 0:w.onSubmitCommand)||{});l(!0);hr=String(Math.floor(((G=_.Qa())==null?void 0:G.getCurrentTime())||0)*1E3);UY={continuationCommand:{token:(p=W())==null?void 0:p.continuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}};xW={inputComposerFormData:{clientMessageId:"youchat-"+Date.now(),userInputText:P,playerOffsetMs:hr}};_.Pe(UY,{form:{formData:xW},commandController:{onSuccess:function(){l(!1)},
onServerError:function(){var Lb=g();_.Pe({listMutationCommand:{operations:{operations:[{removeItem:{removeByTargetId:{targetIds:["loading_response_message_id"]},sectionTargetId:Lb}}]}}});l(!1)}}});
_.gG(qw)})};
return _.z("yt-chat-input-view-model",{class:"chatInputViewModelChatInputViewModel",el:V},_.z("div",{class:"chatInputViewModelChatInputWrapper"},_.z("form",{class:"chatInputViewModelChatInputForm"},_.z("textarea",{class:"chatInputViewModelChatInput",el:t,"on:keydown":x,"on:keyup":A,placeholder:function(){var P,b;var l=_.D((b=W())==null?void 0:b.inputFormField,y9N);return l==null?void 0:(P=l.contentProperties)==null?void 0:P.placeholderText},
rows:1}),_.z(_.rk,{data:function(){return _.D(F.data().sendButton,_.fx)},
onClick:function(P){P.preventDefault();X();M(t.value.value.length===0)},
buttonOverrides:function(){return{disabled:R()||d()}}})),_.z(_.Ab,{className:"chatInputViewModelChatDisclaimer",
text:function(){var P;return(P=_.D(F.data().disclaimer,_.VM_))==null?void 0:P.text}})))},"Pi"),"yt-chat-input-view-model",{props:{data:_.TS}});var NPK=["engagement-panel-clip-create","engagement-panel-clip-view"],VL6=0,gg=function(){var F=_.n.apply(this,arguments)||this;var W;F.headerData=(W=F.data)==null?void 0:W.header;F.darkerPanels=_.c("web_watch_darker_panels");F.matchContentTheme=_.c("web_watch_panel_content_match_theme");F.disableAutoFill=!1;F.isFullscreen=!1;F.isTheaterMode=!1;F.modernPanels=_.c("kevlar_watch_modern_panels");F.liveChatReplyPanel=!1;F.enableAnchoredPanel=_.c("desktop_shorts_v2_anchored_panel");F.disableBackdropFilter=
_.c("web_disable_backdrop_filter");F.trackEngagementPanelVisibility=_.c("web_watch_track_engagement_panel_visibility");F.actionMap={"yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction","yt-scroll-to-engagement-panel-command":"onYtScrollToEngagementPanelCommand","yt-update-engagement-panel-action":"onYtUpdateEngagementPanelAction","yt-show-engagement-panel-scrim-action":"onYtShowEngagementPanelScrimAction","yt-hide-engagement-panel-scrim-action":"onYtHideEngagementPanelScrimAction"};
return F};
_.k(gg,_.n);_.N=gg.prototype;
_.N.configureRendererStamper=function(){return{headerData:{id:"header",mapping:{engagementPanelTitleHeaderRenderer:{component:"ytd-engagement-panel-title-header-renderer",properties:{liveChatEngagementPanel:"[[liveChatEngagementPanel]]",targetId:"[[data.targetId]]",shortsPanel:"[[shortsPanel]]"}},panelAdHeaderImageLockupViewModel:{component:"panel-ad-header-image-lockup-view-model"},pageHeaderViewModel:{component:"yt-page-header-view-model"}},events:!0},"data.content":{id:"content",mapping:{sectionListRenderer:{matcher:function(F){var W;
return(F==null?void 0:(W=F.webComponentHint)==null?void 0:W.componentVersion)==="WEB_COMPONENT_VERSION_SHARED"?"yt-section-list-renderer":"ytd-section-list-renderer"},
params:{engagementPanel:!0},properties:{liveChatEngagementPanel:"[[liveChatEngagementPanel]]",inReplyPanel:"[[liveChatReplyPanel]]",engagementPanelDropdown:"[[dropdown]]",engagementPanelDialog:"[[dialog]]",disableAutoFill:"[[disableAutoFill]]"}},continuationItemRenderer:"ytd-continuation-item-renderer",richGridRenderer:"ytd-rich-grid-renderer",transcriptRenderer:"ytd-transcript-renderer",clipSectionRenderer:"ytd-clip-section-renderer",adsEngagementPanelContentRenderer:"ytd-ads-engagement-panel-content-renderer",
macroMarkersListRenderer:"ytd-macro-markers-list-renderer",searchInVideoRenderer:"ytd-search-in-video-renderer",structuredDescriptionContentRenderer:{component:"ytd-structured-description-content-renderer",params:{engagementPanel:!0},properties:{shortsPanel:"[[shortsPanel]]",watchWhileSdp:"[[isWatchWhilePanel]]"}},mediaUpsellRenderer:"ytd-media-upsell-renderer",productListRenderer:"ytd-product-list-renderer",contentLoadingRenderer:"yt-content-loading-renderer",flowRootRenderer:"ytd-flow-root-renderer",
sponsorshipsGiftingOptInRenderer:"ytd-sponsorships-gifting-opt-in-renderer",playlistCollaborationViewModel:"playlist-collaboration-view-model"},events:!0},"data.footer":{id:"footer",mapping:{commerceCartCheckoutButtonRenderer:{component:"ytd-commerce-cart-checkout-button-renderer",params:{fullWidth:!0}},cardItemRenderer:"yt-card-item-renderer",chatInputViewModel:"yt-chat-input-view-model",liveChatEngagementPanelInputRenderer:{component:"yt-live-chat-engagement-panel-input-renderer",properties:{inReplyPanel:"[[liveChatReplyPanel]]",
hideBorder:"[[hideFooterBorder]]"}},liveLeaderboardItemViewModel:"ytvl-live-leaderboard-item-view-model",disableableButtonViewModel:"yt-disableable-button-view-model"}}}};
_.N.attached=function(){this.hostElement.parentElement&&this.hostElement.parentElement.is==="tp-yt-paper-dialog"&&(this.dialog=!0);var F;if((F=this.hostElement.parentElement)==null?0:F.classList.contains("tp-yt-iron-dropdown"))this.dropdown=!0;this.disableAutoFill=!(!this.dialog&&!this.dropdown)};
_.N.detached=function(){this.updateTheaterDisablement()};
_.N.showPanel=function(){var F=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");this.showDelayMs?_.P0.addJob(function(){F.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"},2,this.showDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"};
_.N.maybeScrollToItemSection=function(F){var W=this,E,h=F==null?void 0:(E=F.sectionListEngagementPanelExtras)==null?void 0:E.scrollToItemSectionIdentifier;h&&_.P0.addJob(function(){var d;(d=W.sectionListRendererElement)==null||d.scrollToItemSection(h)},8)};
_.N.hidePanel=function(){var F=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_HIDDEN");this.hideDelayMs?_.P0.addJob(function(){F.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"},2,this.hideDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.N.isVisible=function(){return!!this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.N.getPanelContent=function(){return{engagementPanelSectionListRenderer:this.data}};
_.N.updatePanel=function(F,W,E,h){var d=this;if((F=F==null?void 0:F.engagementPanelSectionListRenderer)||h){if(F){h=F.header;var V=F.content,R=F.footer;(F=F.targetId)&&this.set("data.targetId",F);h&&this.set("data.header",h);V&&this.set("data.content",V);R&&this.set("data.footer",R)}else h&&(F=h.content,V=h.secondaryHeaderContent,(h=h.targetId)&&this.set("data.targetId",h),F&&this.set("data.content",F),V&&(this.secondaryHeaderData=V));this.updateChildVisibilityProperties();if(W){var M;_.c("kevlar_update_panel_focus_scroll_killswitch")||
(M={preventScroll:!0});this.focus(M)}_.wT(this,function(){_.hF(d.hostElement,"yt-refit");d.maybeScrollToItemSection(E)})}};
_.N.computeHeaderData=function(){var F,W=(0,_.xd.unsafeClone)((F=this.data)==null?void 0:F.header);if(W){F=new _.S(Object.keys(W)[0]);var E=_.D(W,F),h=_.D(this.secondaryHeaderData,F);h&&_.LK(W,F,Object.assign({},h,E))}return W};
_.N.getReloadContinuation=function(){var F,W,E,h=_.U(((F=this.data)==null?void 0:(W=F.content)==null?void 0:(E=W.sectionListRenderer)==null?void 0:E.continuations)||[]);for(F=h.next();!F.done;F=h.next())if(F=F.value,F.reloadContinuationData)return F.reloadContinuationData.continuation};
_.N.onYtRendererstamperFinished=function(){this.updateChildVisibilityProperties();var F;((F=this.data)==null?0:F.targetId)&&(F=this.contentElement.firstElementChild)&&F.setAttribute("panel-target-id",this.data.targetId)};
_.N.forwardPopupClosedToFlowRootRenderer=function(){var F=_.Z(this.hostElement).querySelector("ytd-flow-root-renderer");if(F)F.onPopupClosed()};
_.N.dataChanged=function(){this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_LIVE_CHAT"&&(this.liveChatEngagementPanel=!0,this.getIdentifier()==="PAreply_thread"&&(this.liveChatReplyPanel=!0));var F=_.c("web_watch_imax_theater_mode")&&this.isTheaterMode;F=_.c("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||F;if(_.c("kevlar_watch_metadata_ep_killswitch")||this.getIdentifier()!=="engagement-panel-structured-description"||this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_SHORTS"||F){var W;this.visibility=
(W=this.data)==null?void 0:W.visibility;var E;this.trackEngagementPanelVisibility&&((E=this.data)==null?void 0:E.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");var h,d,V,R;this.contentEmpty=!!(((h=this.data)==null?0:(d=h.content)==null?0:d.structuredDescriptionContentRenderer)&&Object.keys((V=this.data)==null?void 0:(R=V.content)==null?void 0:R.structuredDescriptionContentRenderer).length===0);(W=_.WZ().resolve(_.sL))&&W.registerPanel(this.getIdentifier(),
this);this.updateTheaterDisablement()}else this.data.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",this.visibility=this.data.visibility};
_.N.isTheaterModeChanged=function(){_.c("web_watch_imax_theater_mode")&&this.hidePanel()};
_.N.isFullscreenChanged=function(){_.c("web_watch_close_eps_on_fullscreen")&&this.hidePanel()};
_.N.focus=function(F){if(this.header)this.header.focus(F);else{var W;(W=_.Z(this.hostElement).querySelector("ytd-flow-root-renderer"))==null||W.focus(F)}};
_.N.visibilityChanged=function(){if(!_.c("kevlar_use_engagement_panel_management_component")){this.updateChildVisibilityProperties();var F=this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",W=this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",E=this.lastVisibility&&this.lastVisibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",h=this.lastVisibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",d=h||!this.lastVisibility,V,R,M=(V=this.data)==null?void 0:(R=V.identifier)==null?void 0:R.tag,
g;if(((g=this.data)==null?0:g.onShowCommands)&&F&&d)_.Rj(this.hostElement,this.data.onShowCommands,this.hostElement),M&&_.uC().dispatch(_.dR({type:"ADD_OPEN_ENGAGEMENT_PANEL",payload:{panelToAdd:M}}));else{var t;((t=this.data)==null?0:t.onHideCommands)&&W&&E&&(_.Rj(this.hostElement,this.data.onHideCommands,this.hostElement),M&&_.uC().dispatch(_.dR({type:"REMOVE_OPEN_ENGAGEMENT_PANEL",payload:{panelToRemove:M}})))}F&&this.lastVisibility!==void 0&&(this.hostElement.style.order=String(-1*VL6++));_.c("kevlar_watch_focus_on_engagement_panels")&&
F&&h&&this.focus({preventScroll:!0});this.updateTheaterDisablement()}this.lastVisibility=this.visibility};
_.N.notifyVisibilityChanged=function(F){var W;_.Nc(this.hostElement,"yt-engagement-panel-visible-changed",[this.data,F,(W=this.data)==null?void 0:W.targetId])};
_.N.updateTheaterDisablement=function(){if(!_.c("kevlar_watch_theater_disablement_killswitch")){var F=this.theaterDisablementPanelIdentifier||this.getIdentifier()||"";if(this.isWatch&&NPK.includes(F)&&!_.c("watch_next_grid_ignore_disallowed_panels")){var W=_.H7(_.uC().getState()),E=this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN";F!==this.getIdentifier()&&this.originalTheaterState?this.clearTheaterDisablement():E?(this.originalTheaterState===void 0&&(this.originalTheaterState=W,this.theaterDisablementPanelIdentifier=
F),W&&_.dW(this.hostElement,"yt-toggle-theater-mode",[!1,!1])):this.originalTheaterState&&this.clearTheaterDisablement()}}};
_.N.clearTheaterDisablement=function(){_.dW(this.hostElement,"yt-toggle-theater-mode",[!0,!1]);this.theaterDisablementPanelIdentifier=this.originalTheaterState=void 0};
_.N.updateChildVisibilityProperties=function(){this.hostElement||_.c("kevlar_panel_property_init_killswitch")||this._enableProperties();var F=this.visibility;this.adHeaderImageLockupViewModel&&(this.adHeaderImageLockupViewModel.panelContentVisibility=F);var W,E=(W=this.headerElement)==null?void 0:W.firstElementChild;if(E&&!this.adHeaderImageLockupViewModel){W=F==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED";E.collapsed=W;E=_.Z(E).querySelector("#visibility-button");if(!E)return;(E=E.firstElementChild)&&
E.polymerController.is==="ytd-toggle-button-renderer"&&E.polymerController.data.isToggled!==W&&E.polymerController.set("data.isToggled",W)}var h;if(W=(h=this.contentElement)==null?void 0:h.firstElementChild)if(F&&F!=="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")W.removeAttribute("panel-content-visible");else{W.setAttribute("panel-content-visible","");var d;(d=W.markDirty)==null||d.call(W)}};
_.N.onYtChangeEngagementPanelVisibilityAction=function(F){var W=this,E,h=(E=this.data)==null?void 0:E.targetId,d,V,R;E=((d=this.data)==null?void 0:(V=d.identifier)==null?void 0:V.tag)||((R=this.data)==null?void 0:R.panelIdentifier);var M=_.D(F,_.tPH),g;F=h&&(M==null?void 0:M.targetId)===h||E&&(M==null?void 0:(g=M.panelIdentifier)==null?void 0:g.tag)===E;this.dialog&&F&&(M==null?void 0:M.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(h==="engagement-panel-comments-section"?_.dW(this.hostElement,
"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer"]):_.dW(this.hostElement,"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer",E]));!_.c("kevlar_use_engagement_panel_management_component")&&F&&(h=M.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",this.hideDelayMs&&!h?_.P0.addJob(function(){W.visibility=M.visibility},2,this.hideDelayMs):this.visibility=M.visibility,M.visibility&&this.notifyVisibilityChanged(M.visibility))};
_.N.onYtScrollToEngagementPanelCommand=function(F){var W,E=(W=this.data)==null?void 0:W.targetId,h,d,V;W=((h=this.data)==null?void 0:(d=h.identifier)==null?void 0:d.tag)||((V=this.data)==null?void 0:V.panelIdentifier);F=_.D(F,_.LZz);var R;(E&&(F==null?void 0:F.targetId)===E||W&&(F==null?void 0:(R=F.panelIdentifier)==null?void 0:R.tag)===W)&&this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&_.dW(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement])};
_.N.attachVEs=function(F){var W,E;(F==null?0:(W=F.content)==null?0:(E=W.productListRenderer)==null?0:E.trackingParams)&&_.z4().graftServerVe(F.content.productListRenderer.trackingParams);var h,d;(F==null?0:(h=F.content)==null?0:(d=h.transcriptRenderer)==null?0:d.trackingParams)&&_.z4().graftServerVe(F.content.transcriptRenderer.trackingParams)};
_.N.onYtUpdateEngagementPanelAction=function(F){var W,E=(W=this.data)==null?void 0:W.targetId;F=_.D(F,oGq);E&&(F==null?void 0:F.targetId)===E&&(this.updatePanel({engagementPanelSectionListRenderer:{header:F==null?void 0:F.header,content:F==null?void 0:F.content}},!1),this.attachVEs(F))};
_.N.onYtShowEngagementPanelScrimAction=function(F){var W,E=(W=this.data)==null?void 0:W.targetId;F=_.D(F,TBK);E&&(F==null?void 0:F.engagementPanelTargetId)===E&&(this.scrimmed=!0)};
_.N.onYtHideEngagementPanelScrimAction=function(F){var W,E=(W=this.data)==null?void 0:W.targetId;F=_.D(F,ilP);E&&(F==null?void 0:F.engagementPanelTargetId)===E&&(this.scrimmed=!1)};
_.N.getIdentifier=function(){var F,W,E;return((F=this.data)==null?void 0:F.panelIdentifier)||((W=this.data)==null?void 0:(E=W.identifier)==null?void 0:E.tag)};
_.N.getSurface=function(){var F,W;return(F=this.data)==null?void 0:(W=F.identifier)==null?void 0:W.surface};
_.Sn.Object.defineProperties(gg.prototype,{targetId:{configurable:!0,enumerable:!0,get:function(){var F;return(F=this.data)==null?void 0:F.targetId}},
webSize:{configurable:!0,enumerable:!0,get:function(){var F;return(F=this.data)==null?void 0:F.size}},
hideFooterBorder:{configurable:!0,enumerable:!0,get:function(){var F=this.getIdentifier();return F==="engagement-panel-youchat"||F==="PAyouchat"}}});
gg.prototype.visibilityChanged=gg.prototype.visibilityChanged;gg.prototype.isFullscreenChanged=gg.prototype.isFullscreenChanged;gg.prototype.isTheaterModeChanged=gg.prototype.isTheaterModeChanged;gg.prototype.dataChanged=gg.prototype.dataChanged;gg.prototype.forwardPopupClosedToFlowRootRenderer=gg.prototype.forwardPopupClosedToFlowRootRenderer;gg.prototype.onYtRendererstamperFinished=gg.prototype.onYtRendererstamperFinished;
_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],gg.prototype,"actionHandlerBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],gg.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.am),_.Y("design:type",Object)],gg.prototype,"ytdReduxBehavior",void 0);_.T([_.J(_.B$.YtEventForwardingBehavior),_.Y("design:type",Object)],gg.prototype,"ytEventForwardingBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],gg.prototype,"data",void 0);
_.T([_.O({computed:"computeHeaderData(data.header, secondaryHeaderData)"}),_.Y("design:type",Object)],gg.prototype,"headerData",void 0);_.T([_.O(),_.Y("design:type",Object)],gg.prototype,"secondaryHeaderData",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],gg.prototype,"visibility",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],gg.prototype,"contentEmpty",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],gg.prototype,"scrimmed",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],gg.prototype,"dialog",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],gg.prototype,"dropdown",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],gg.prototype,"darkerPanels",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],gg.prototype,"matchContentTheme",void 0);_.T([_.O(),_.Y("design:type",Object)],gg.prototype,"disableAutoFill",void 0);
_.T([_.O({reflectToAttribute:!0,value:_.c("optimal_reading_width_comments_ep")}),_.Y("design:type",Boolean)],gg.prototype,"optimalReadingWidthComments",void 0);_.T([_.O(),_.Y("design:type",Number)],gg.prototype,"hideDelayMs",void 0);_.T([_.O({selector:_.Lw,reflectToAttribute:!0}),_.Y("design:type",Object)],gg.prototype,"isFullscreen",void 0);_.T([_.O({selector:_.H7,reflectToAttribute:!0}),_.Y("design:type",Object)],gg.prototype,"isTheaterMode",void 0);
_.T([_.O(),_.Y("design:type",Number)],gg.prototype,"showDelayMs",void 0);_.T([_.O({reflectToAttribute:!0}),_.a("data.targetId"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],gg.prototype,"targetId",null);_.T([_.O({reflectToAttribute:!0}),_.a("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],gg.prototype,"webSize",null);_.T([_.O(),_.a("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],gg.prototype,"hideFooterBorder",null);
_.T([_.O(),_.Y("design:type",Object)],gg.prototype,"isWatch",void 0);_.T([_.O(),_.Y("design:type",Object)],gg.prototype,"originalTheaterState",void 0);_.T([_.O(),_.Y("design:type",Object)],gg.prototype,"theaterDisablementPanelIdentifier",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],gg.prototype,"modernPanels",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],gg.prototype,"isWatchWhilePanel",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],gg.prototype,"shortsPanel",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],gg.prototype,"liveChatEngagementPanel",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],gg.prototype,"liveChatReplyPanel",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],gg.prototype,"enableAnchoredPanel",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],gg.prototype,"disableBackdropFilter",void 0);_.T([_.O(),_.Y("design:type",Object)],gg.prototype,"trackEngagementPanelVisibility",void 0);_.T([_.gQ("#header"),_.Y("design:type",HTMLElement)],gg.prototype,"headerElement",void 0);_.T([_.gQ("#header > *"),_.Y("design:type",HTMLElement)],gg.prototype,"header",void 0);_.T([_.gQ("ytd-section-list-renderer"),_.Y("design:type",Object)],gg.prototype,"sectionListRendererElement",void 0);
_.T([_.gQ("panel-ad-header-image-lockup-view-model"),_.Y("design:type",HTMLElement)],gg.prototype,"adHeaderImageLockupViewModel",void 0);_.T([_.gQ("#content"),_.Y("design:type",HTMLElement)],gg.prototype,"contentElement",void 0);_.T([_.R4("yt-rendererstamper-finished"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],gg.prototype,"onYtRendererstamperFinished",null);
_.T([_.R4("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],gg.prototype,"forwardPopupClosedToFlowRootRenderer",null);_.T([_.Cz("data","isFullscreen","isTheaterMode"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],gg.prototype,"dataChanged",null);_.T([_.ea("isTheaterMode"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],gg.prototype,"isTheaterModeChanged",null);
_.T([_.ea("isFullscreen"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],gg.prototype,"isFullscreenChanged",null);_.T([_.ea("visibility"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],gg.prototype,"visibilityChanged",null);gg=_.T([_.y({is:"ytd-engagement-panel-section-list-renderer",disableElementRegistration:!0})],gg);
_.r(gg,"ytd-engagement-panel-section-list-renderer",function(){if(XdK!==void 0)return XdK;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-engagement-panel-section-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-engagement-panel-section-list-renderer"></div>\n<div id="content" class="style-scope ytd-engagement-panel-section-list-renderer"></div>\n<div id="footer" class="style-scope ytd-engagement-panel-section-list-renderer"></div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return XdK=F},{mode:_.E6("kevlar_poly_si_batch_j028")?1:2});var UN6;var QU=function(){var F=_.n.apply(this,arguments)||this;F.lastRenderedPanelIds=new Set;F.visiblePanels=[];F.actionMap={"yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return F};
_.k(QU,_.n);_.N=QU.prototype;_.N.dataChanged=function(){if(this.data){for(var F=[],W=_.U(this.data),E=W.next();!E.done;E=W.next()){E=E.value;var h=void 0,d=void 0,V=(h=E)==null?void 0:(d=h.engagementPanelSectionListRenderer)==null?void 0:d.visibility;d=h=void 0;((h=E)==null?0:(d=h.engagementPanelSectionListRenderer)==null?0:d.targetId)&&V!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&F.push(E)}this.visiblePanels=F}else this.visiblePanels=[]};
_.N.configureRendererStamper=function(){return{visiblePanels:{id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0},properties:{hideDelayMs:"[[hideDelayMs]]",isWatchWhilePanel:"[[isWatchWhilePanel]]"}}},reuseComponents:!1}}};
_.N.withoutVisiblePanelById=function(F){return this.visiblePanels.filter(function(W){var E;return((E=W.engagementPanelSectionListRenderer)==null?void 0:E.targetId)!==F})};
_.N.onYtChangeEngagementPanelVisibilityAction=function(F){var W=this,E=_.D(F,_.tPH);if(this.data&&(E==null?0:E.targetId)&&(E==null?0:E.visibility)){var h,d=(h=this.data.find(function(R){var M;return((M=R.engagementPanelSectionListRenderer)==null?void 0:M.targetId)===E.targetId}))==null?void 0:h.engagementPanelSectionListRenderer;
if(d){var V=this.withoutVisiblePanelById(E.targetId);E.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(F=this.data.find(function(R){var M;return((M=R.engagementPanelSectionListRenderer)==null?void 0:M.targetId)===E.targetId}))&&(V=[F].concat(_.x9(V)));
this.hideDelayMs&&E.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&V.length===0?_.P0.addJob(function(){d.visibility=E.visibility;W.visiblePanels=V},10,this.hideDelayMs):(d.visibility=E.visibility,this.visiblePanels=V);
_.Nc(this.hostElement,"yt-engagement-panels-visible-changed",[V])}}};
_.N.onRendererstamperFinished=function(){var F=new Set(this.visiblePanels.map(function(W){var E;return(E=W.engagementPanelSectionListRenderer)==null?void 0:E.targetId}));
this.handlePanelVisibilityChange(F,this.lastRenderedPanelIds);this.lastRenderedPanelIds=F};
_.N.handlePanelVisibilityChange=function(F,W){F=F===void 0?new Set:F;W=W===void 0?new Set:W;if(this.data)for(var E=_.U(this.data),h=E.next();!h.done;h=E.next()){h=h.value;var d=void 0,V=void 0,R=(d=h)==null?void 0:(V=d.engagementPanelSectionListRenderer)==null?void 0:V.targetId;if(R&&(d=W.has(R),V=F.has(R),R=void 0,!d&&V?(V=d=void 0,R=(d=h)==null?void 0:(V=d.engagementPanelSectionListRenderer)==null?void 0:V.onShowCommands):d&&!V&&(V=d=void 0,R=(d=h)==null?void 0:(V=d.engagementPanelSectionListRenderer)==
null?void 0:V.onHideCommands),R))for(h=_.U(R),R=h.next();!R.done;R=h.next())this.ytComponentBehavior.resolveCommand(R.value)}};
QU.prototype.onRendererstamperFinished=QU.prototype.onRendererstamperFinished;QU.prototype.dataChanged=QU.prototype.dataChanged;_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],QU.prototype,"ytComponentBehavior",void 0);_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],QU.prototype,"actionHandlerBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],QU.prototype,"ytRendererBehavior",void 0);
_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],QU.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],QU.prototype,"lastRenderedPanelIds",void 0);_.T([_.O(),_.Y("design:type",Number)],QU.prototype,"hideDelayMs",void 0);_.T([_.O(),_.Y("design:type",Array)],QU.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Array)],QU.prototype,"visiblePanels",void 0);_.T([_.O(),_.Y("design:type",Boolean)],QU.prototype,"isWatchWhilePanel",void 0);
_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],QU.prototype,"dataChanged",null);_.T([_.R4("yt-rendererstamper-finished"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],QU.prototype,"onRendererstamperFinished",null);QU=_.T([_.y({is:"ytd-watch-engagement-panels",disableElementRegistration:!0})],QU);
_.r(QU,"ytd-watch-engagement-panels",function(){if(UN6!==void 0)return UN6;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-engagement-panels--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="panels" class="style-scope ytd-watch-engagement-panels"></div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return UN6=F},{mode:1});var RG$;var ze=function(){return _.n.apply(this,arguments)||this};
_.k(ze,_.n);ze.prototype.dataChanged=function(){this.data&&this.data.companionLegalText!==void 0&&this.data.companionLegalText!==null&&_.yK(_.Z(this.hostElement).querySelector("#text"),_.kza(_.LXc,this.data.companionLegalText))};
ze.prototype.computeAutoScrollEnabled=function(F,W){return F&&!W};
ze.prototype.expandedChanged=function(){this.expanderIcon=this.expanded?"expand-less":"expand-more"};
ze.prototype.onToggleTap=function(){this.expanded=!this.expanded};
ze.prototype.expandedChanged=ze.prototype.expandedChanged;ze.prototype.dataChanged=ze.prototype.dataChanged;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],ze.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.QM$),_.Y("design:type",Object)],ze.prototype,"ytdAutoScrollBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],ze.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],ze.prototype,"expanded",void 0);
_.T([_.O({computed:"computeAutoScrollEnabled(data.companionLegalTextEnableAutoscroll, expanded)"}),_.Y("design:type",Boolean)],ze.prototype,"autoScrollEnabled",void 0);_.T([_.O(),_.Y("design:type",String)],ze.prototype,"expanderIcon",void 0);_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ze.prototype,"dataChanged",null);
_.T([_.ea("expanded"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ze.prototype,"expandedChanged",null);ze=_.T([_.y({disableElementRegistration:!0,is:"ytd-companion-legal-text-renderer"})],ze);
_.r(ze,"ytd-companion-legal-text-renderer",function(){if(RG$!==void 0)return RG$;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-companion-legal-text-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="text" text="[[data.companionLegalText]]" class="style-scope ytd-companion-legal-text-renderer"></yt-formatted-string>\n\n<tp-yt-paper-material id="expand-button" elevation="1" on-tap="onToggleTap" class="style-scope ytd-companion-legal-text-renderer">\n  <yt-icon-button id="expander-icon" class="style-scope ytd-companion-legal-text-renderer">\n    <yt-icon id="expander-icon" icon="[[expanderIcon]]" class="style-scope ytd-companion-legal-text-renderer"></yt-icon>\n  </yt-icon-button>\n</tp-yt-paper-material>\n\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return RG$=F},{mode:1});var eGK;var tX=function(){var F=_.n.apply(this,arguments)||this;F.buttonUpdate=_.c("web_modern_buttons");F.kevlarWatchGrid=_.c("kevlar_watch_grid");F.centerAlignDescription=_.c("action_companion_center_align_description");F.truncateDomain=_.c("action_companion_truncate_domain");return F};
_.k(tX,_.n);_.N=tX.prototype;_.N.computeButtonOverride=function(){if(this.buttonUpdate)return{style:"call-to-action",type:"filled"}};
_.N.getOnLayoutVisibleCallback=function(){var F=_.ju("yt.www.ads.eventcache.getLastCompanionData");return F?(F=F())&&F.onLayoutVisibleCallback:null};
_.N.getLayoutId=function(){var F=_.ju("yt.www.ads.eventcache.getLastCompanionData");return F?(F=F())&&F.layoutId:null};
_.N.dataChanged=function(){if(this.data){this.data.adBadge||this.set("data.adBadge",tX.JSC$20129_DEFAULT_AD_BADGE_RENDERER);var F=this.getOnLayoutVisibleCallback();F&&F()}};
_.N.getButtonRenderer=function(F){return F.actionButton&&_.D(F.actionButton,_.jt)?(delete _.D(F.actionButton,_.jt).navigationEndpoint,_.D(F.actionButton,_.jt)):{}};
_.N.onClick=function(F){var W=this;if((!_.c("web_modern_buttons")||!_.Sc(_.TB(F),this.hostElement,["YTD-AD-HOVER-TEXT-BUTTON-RENDERER"]))&&this.data&&this.data.navigationEndpoint){F=_.WS();var E=this.getLayoutId();F&&E&&_.c("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?F.getPlayerPromise().then(function(h){(new _.I8(h)).executeCommand(W.data.navigationEndpoint,E)}):_.c("kevlar_companion_resolve_command_killswitch")?_.hF(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):
this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);
_.dW(this.hostElement,"yt-companion-ad-clicked",["action-companion",E])}};
_.Sn.Object.defineProperties(tX.prototype,{getRating:{configurable:!0,enumerable:!0,get:function(){var F,W,E;return((F=this.data)==null?0:(W=F.detailsLine)==null?0:(E=W.adRating)==null?0:E.ratingText)?this.data.detailsLine.adRating.ratingText:null}},
computeRatingHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getRating}},
iconType:{configurable:!0,enumerable:!0,get:function(){var F,W,E,h;return((F=this.data)==null?0:(W=F.detailsLine)==null?0:(E=W.adRating)==null?0:(h=E.ratingIcon)==null?0:h.iconType)?_.Vd(this.data.detailsLine.adRating.ratingIcon.iconType):null}},
getDetailsLine:{configurable:!0,enumerable:!0,get:function(){var F,W,E,h;return((F=this.data)==null?0:(W=F.detailsLine)==null?0:(E=W.texts)==null?0:(h=E[0])==null?0:h.text)?this.data.detailsLine.texts[0].text:null}},
computeDetailsLineHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getDetailsLine}},
getDescriptionText:{configurable:!0,enumerable:!0,get:function(){var F,W;return((F=this.data)==null?0:(W=F.description)==null?0:W.text)?this.data.description.text:null}},
computeDescriptionTextHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getDescriptionText}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var F=_.ju("yt.www.ads.eventcache.getLastCompanionData");return F?(F=F())&&F.interactionLoggingClientData:null}},
hideBanner:{configurable:!0,enumerable:!0,get:function(){var F=this.data.bannerImage&&this.get("thumbnail.thumbnails.0.url",this.data.bannerImage);return F?F.indexOf("/default_banner")!==-1:!0}}});
tX.prototype.onClick=tX.prototype.onClick;tX.prototype.dataChanged=tX.prototype.dataChanged;tX.JSC$20129_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.CY("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],tX.prototype,"ytComponentBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],tX.prototype,"rendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],tX.prototype,"data",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],tX.prototype,"buttonUpdate",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],tX.prototype,"kevlarWatchGrid",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],tX.prototype,"centerAlignDescription",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],tX.prototype,"truncateDomain",void 0);
_.T([_.O({computed:"computeButtonOverride(buttonUpdate)"}),_.Y("design:type",Object)],tX.prototype,"buttonOverride",void 0);_.T([_.a("data.detailsLine.adRating.ratingText"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],tX.prototype,"getRating",null);_.T([_.a("getRating"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],tX.prototype,"computeRatingHidden",null);
_.T([_.a("data.detailsLine.adRating.ratingIcon.iconType"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],tX.prototype,"iconType",null);_.T([_.a("data.detailsLine.texts.0.text"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],tX.prototype,"getDetailsLine",null);_.T([_.a("getDetailsLine"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],tX.prototype,"computeDetailsLineHidden",null);
_.T([_.a("data.description.text"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],tX.prototype,"getDescriptionText",null);_.T([_.a("getDescriptionText"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],tX.prototype,"computeDescriptionTextHidden",null);_.T([_.a("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],tX.prototype,"interactionLoggingClientData",null);
_.T([_.O({reflectToAttribute:!0}),_.a("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],tX.prototype,"hideBanner",null);_.T([_.Cz("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],tX.prototype,"dataChanged",null);_.T([_.R4("click"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],tX.prototype,"onClick",null);tX=_.T([_.y({is:"ytd-action-companion-ad-renderer",disableElementRegistration:!0})],tX);
_.r(tX,"ytd-action-companion-ad-renderer",function(){if(eGK!==void 0)return eGK;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-action-companion-ad-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-ad-hover-text-button-renderer id="action-companion-ad-info-button" data="[[data.adInfoRenderer.adHoverTextButtonRenderer]]" hidden="[[!data.adInfoRenderer.adHoverTextButtonRenderer]]" modern-update="[[buttonUpdate]]" class="style-scope ytd-action-companion-ad-renderer">\n</ytd-ad-hover-text-button-renderer>\n<div id="action-companion-click-target" class="yt-simple-endpoint style-scope ytd-action-companion-ad-renderer">\n  <yt-img-shadow id="banner" fit="" hidden="[[hideBanner]]" thumbnail="[[data.bannerImage.thumbnail]]" class="style-scope ytd-action-companion-ad-renderer">\n  </yt-img-shadow>\n  <div id="block" class="style-scope ytd-action-companion-ad-renderer">\n    <yt-img-shadow id="icon" thumbnail="[[data.iconImage.thumbnail]]" class="style-scope ytd-action-companion-ad-renderer"></yt-img-shadow>\n    <div id="text" class="style-scope ytd-action-companion-ad-renderer">\n      <div id="header" class="style-scope ytd-action-companion-ad-renderer">\n        [[data.headline.text]]\n      </div>\n      <div id="desc" class="style-scope ytd-action-companion-ad-renderer">\n        <div id="ad-badge-container" class="style-scope ytd-action-companion-ad-renderer">\n          <ytd-badge-supported-renderer id="ad-badge" top-standalone-badge="[[data.adBadge]]" class="style-scope ytd-action-companion-ad-renderer">\n          </ytd-badge-supported-renderer>\n        </div>\n        <span id="domain" hidden="[[computeDescriptionTextHidden]]" class="style-scope ytd-action-companion-ad-renderer">[[getDescriptionText]]</span>\n        <span id="rating" hidden="[[computeRatingHidden]]" class="style-scope ytd-action-companion-ad-renderer">[[getRating]]</span>\n        <yt-icon id="star-icon" default-to-filled="true" hidden="[[computeRatingHidden]]" icon="[[iconType]]" class="style-scope ytd-action-companion-ad-renderer"></yt-icon>\n        <span id="details-line" hidden="[[computeDetailsLineHidden]]" class="style-scope ytd-action-companion-ad-renderer">[[getDetailsLine]]</span>\n      </div>\n    </div>\n    <ytd-button-renderer id="action" button-raised="" data="[[getButtonRenderer(data)]]" overrides="[[buttonOverride]]" class="style-scope ytd-action-companion-ad-renderer">\n    </ytd-button-renderer>\n  </div>\n</div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return eGK=F},{mode:_.E6("kevlar_poly_si_batch_j067")?1:2});var ML8;var g1u;var C0=function(){var F=_.n.apply(this,arguments)||this;F.buttonUpdate=_.c("web_modern_buttons");F.hideLegacyBanner=_.c("enable_dsa_one_click_ata_translators_infeed_elements");F.adInfoButtonStyle="mono";F.adInfoButtonType="text";F.noDotAdBadge=!0;return F};
_.k(C0,_.n);_.N=C0.prototype;_.N.getOnLayoutVisibleCallback=function(){var F=_.ju("yt.www.ads.eventcache.getLastCompanionData");return F?(F=F())&&F.onLayoutVisibleCallback:null};
_.N.getLayoutId=function(){var F=_.ju("yt.www.ads.eventcache.getLastCompanionData");return F?(F=F())&&F.layoutId:null};
_.N.dataChanged=function(){if(this.data){if(this.data.image&&this.data.image.thumbnail&&this.data.image.thumbnail.thumbnails&&this.data.image.thumbnail.thumbnails.length){var F=this.data.image.thumbnail.thumbnails[0];this.imageSrc=F.url?_.II(F.url):void 0;this.imageWidth=F.width||0;this.imageHeight=F.height||0}this.data.clickthroughEndpoint&&_.D(this.data.clickthroughEndpoint,_.T5)&&(F=_.D(this.data.clickthroughEndpoint,_.T5).url,_.c("kevlar_sanitize_image_companion_killswitch")?this.clickThroughUrl=
F||"":F?(F=_.II(F),this.clickThroughUrl=_.ty(F)):this.clickThroughUrl=void 0);(F=this.getOnLayoutVisibleCallback())&&F()}};
_.N.onClick=function(F){_.Sc(_.TB(F),this.hostElement,["A".toString(),"BUTTON".toString()])||this.handleClick(F)};
_.N.handleClick=function(){var F=this;this.data&&this.data.clickthroughEndpoint&&(_.hF(this.hostElement,"yt-navigate",{endpoint:this.data.clickthroughEndpoint}),this.data.onClickCommands&&this.data.onClickCommands.forEach(function(W){F.macroReplacementBehavior.sendServiceRequestAction([W])}),_.dW(this.hostElement,"yt-companion-ad-clicked",["image-companion",
this.getLayoutId()]))};
_.N.onLoad=function(){_.Nc(this.hostElement,"yt-refit-popups-action")};
_.Sn.Object.defineProperties(C0.prototype,{macros:{configurable:!0,enumerable:!0,get:function(){var F=_.ju("yt.www.ads.eventcache.getLastCompanionData");return F?(F=F())&&F.macros||{}:{}}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var F=_.ju("yt.www.ads.eventcache.getLastCompanionData");return F?(F=F())&&F.interactionLoggingClientData:null}}});
C0.prototype.onLoad=C0.prototype.onLoad;C0.prototype.onClick=C0.prototype.onClick;C0.prototype.dataChanged=C0.prototype.dataChanged;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],C0.prototype,"rendererBehavior",void 0);_.T([_.J(llw.YtMacroReplacementBehavior),_.Y("design:type",Object)],C0.prototype,"macroReplacementBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],C0.prototype,"data",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],C0.prototype,"buttonUpdate",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],C0.prototype,"hideLegacyBanner",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],C0.prototype,"adInfoButtonStyle",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],C0.prototype,"adInfoButtonType",void 0);_.T([_.a("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],C0.prototype,"macros",null);
_.T([_.a("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],C0.prototype,"interactionLoggingClientData",null);_.T([_.O(),_.Y("design:type",String)],C0.prototype,"clickThroughUrl",void 0);_.T([_.O(),_.Y("design:type",_.gU)],C0.prototype,"imageSrc",void 0);_.T([_.O(),_.Y("design:type",Number)],C0.prototype,"imageWidth",void 0);_.T([_.O(),_.Y("design:type",Number)],C0.prototype,"imageHeight",void 0);_.T([_.O(),_.Y("design:type",Object)],C0.prototype,"noDotAdBadge",void 0);
_.T([_.Cz("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],C0.prototype,"dataChanged",null);_.T([_.R4("click"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],C0.prototype,"onClick",null);_.T([_.R4("load"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],C0.prototype,"onLoad",null);C0=_.T([_.y({is:"ytd-image-companion-renderer",disableElementRegistration:!0})],C0);
_.r(C0,"ytd-image-companion-renderer",function(){if(g1u!==void 0)return g1u;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-image-companion-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<template is="dom-if" if="[[hideLegacyBanner]]" class="style-scope ytd-image-companion-renderer">\n  <div class="style-scope ytd-image-companion-renderer">\n    <yt-img-shadow id="banner" fit="" thumbnail="[[data.image.thumbnail]]" class="style-scope ytd-image-companion-renderer">\n    </yt-img-shadow>\n    <div id="block" class="style-scope ytd-image-companion-renderer">\n      <div id="text" class="style-scope ytd-image-companion-renderer">\n        <div id="desc" class="style-scope ytd-image-companion-renderer">\n          <div id="ad-badge-container" class="style-scope ytd-image-companion-renderer">\n            <ytd-badge-supported-renderer id="ad-badge" no-dot-ad-badge="[[noDotAdBadge]]" top-standalone-badge="[[data.adBadge]]" class="style-scope ytd-image-companion-renderer">\n            </ytd-badge-supported-renderer>\n          </div>\n        </div>\n      </div>\n      <ytd-ad-hover-text-button-renderer id="image-companion-ad-info-menu" button-style="[[adInfoButtonStyle]]" button-type="[[adInfoButtonType]]" data="[[data.adInfoRenderer.adHoverTextButtonRenderer]]" hidden="[[!data.adInfoRenderer.adHoverTextButtonRenderer]]" modern-update="[[buttonUpdate]]" class="style-scope ytd-image-companion-renderer">\n      </ytd-ad-hover-text-button-renderer>\n    </div>\n  </div>\n</template>\n\n\n<template is="dom-if" if="[[!hideLegacyBanner]]" class="style-scope ytd-image-companion-renderer">\n  <ytd-ad-hover-text-button-renderer id="image-companion-ad-info-button" data="[[data.adInfoRenderer.adHoverTextButtonRenderer]]" hidden="[[!data.adInfoRenderer.adHoverTextButtonRenderer]]" modern-update="[[buttonUpdate]]" class="style-scope ytd-image-companion-renderer">\n  </ytd-ad-hover-text-button-renderer>\n  <div class="style-scope ytd-image-companion-renderer">\n    <img height="[[imageHeight]]" src$="[[imageSrc]]" width="[[imageWidth]]" alt="" class="style-scope ytd-image-companion-renderer">\n  </div>\n</template>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return g1u=F},{mode:_.E6("kevlar_poly_si_batch_j067")?1:2});var QwF;var BR=function(){return _.n.apply(this,arguments)||this};
_.k(BR,_.n);_.N=BR.prototype;_.N.dataChanged=function(){this.set("data.adBadge",BR.JSC$20138_DEFAULT_AD_BADGE_RENDERER);if(this.data){var F=this.getOnLayoutVisibleCallback();F&&F()}};
_.N.getOnLayoutVisibleCallback=function(){var F=_.ju("yt.www.ads.eventcache.getLastCompanionData");return F?(F=F())&&F.onLayoutVisibleCallback:null};
_.N.getLayoutId=function(){var F=_.ju("yt.www.ads.eventcache.getLastCompanionData");return F?(F=F())&&F.layoutId:null};
_.N.onCompanionClicked=function(F){this.data&&(F.target!==this.shopTitle&&this.sendTrackingPings(this.data.clickTrackingEndpoints),_.dW(this.hostElement,"yt-companion-ad-clicked",["shopping-companion",this.getLayoutId()]))};
_.N.onShopTextTap=function(){if(this.data&&this.data.clickToAdvSiteEndpoint){var F=_.WS(),W=this.getLayoutId(),E=this.data.clickToAdvSiteEndpoint;F&&W&&_.c("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?F.getPlayerPromise().then(function(h){(new _.I8(h)).executeCommand(E,W)}):_.hF(this.hostElement,"yt-navigate",{endpoint:E})}};
_.N.sendTrackingPings=function(F){if(F&&F.length!==0&&F[0].loggingUrls&&(F=F[0].loggingUrls.map(this.getBaseUrl)))for(var W=0;W<F.length;W++)_.iY(F[W])};
_.N.getBaseUrl=function(F){return F.baseUrl||""};
_.Sn.Object.defineProperties(BR.prototype,{interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var F=_.ju("yt.www.ads.eventcache.getLastCompanionData");return F?(F=F())&&F.interactionLoggingClientData:null}}});
BR.prototype.onCompanionClicked=BR.prototype.onCompanionClicked;BR.prototype.dataChanged=BR.prototype.dataChanged;BR.JSC$20138_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.CY("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],BR.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],BR.prototype,"data",void 0);_.T([_.gQ("#title"),_.Y("design:type",HTMLElement)],BR.prototype,"shopTitle",void 0);
_.T([_.Cz("data.impressionEndpoints"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],BR.prototype,"dataChanged",null);_.T([_.a("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],BR.prototype,"interactionLoggingClientData",null);_.T([_.R4("yt-navigate"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],BR.prototype,"onCompanionClicked",null);
BR=_.T([_.y({is:"ytd-shopping-companion-renderer",disableElementRegistration:!0})],BR);
_.r(BR,"ytd-shopping-companion-renderer",function(){if(QwF!==void 0)return QwF;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shopping-companion-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-ad-hover-text-button-renderer id="shopping-companion-ad-info-button" data="[[data.adInfoRenderer.adHoverTextButtonRenderer]]" hidden="[[!data.adInfoRenderer.adHoverTextButtonRenderer]]" class="style-scope ytd-shopping-companion-renderer">\n</ytd-ad-hover-text-button-renderer>\n<div on-tap="onCompanionClicked" class="style-scope ytd-shopping-companion-renderer">\n  <div id="banner" class="style-scope ytd-shopping-companion-renderer">\n    <div id="ad-badge-container" class="style-scope ytd-shopping-companion-renderer">\n      <ytd-badge-supported-renderer id="ad-badge" large-font-ad-badge="true" top-standalone-badge="[[data.adBadge]]" class="style-scope ytd-shopping-companion-renderer">\n      </ytd-badge-supported-renderer>\n    </div>\n    <div id="title" on-tap="onShopTextTap" class="style-scope ytd-shopping-companion-renderer">\n      [[getSimpleString(data.shopText)]]\n    </div>\n  </div>\n  <yt-horizontal-list-renderer id="companion-shelf" data="[[data.itemList.horizontalListRenderer]]" class="style-scope ytd-shopping-companion-renderer">\n  </yt-horizontal-list-renderer>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return QwF=F},{mode:1});_.pK(_.GK(function(F){var W=F.data;var E=_.uf();_.WH(E,function(){return W().interaction},Ut6);
_.ER(E,{visibilityCallback:function(h){var d,V=(d=W().interaction)==null?void 0:d.onFirstVisible;h&&V&&_.fK(V)},
showOption:_.w1});_.HX(function(){var h,d;d=(d=_.ju("yt.www.ads.eventcache.getLastCompanionData"))?(d=d())&&d.onLayoutVisibleCallback:null;(h=d)==null||h()});
F=_.tb(function(){_.Nc(E.value,"yt-refit-popups-action")});
return _.z("banner-image-layout-view-model",{class:"ytwBannerImageLayoutViewModelHost","on:load":F,el:E,"aria-label":function(){var h,d;return(h=W().interaction)==null?void 0:(d=h.accessibility)==null?void 0:d.label}},_.z("div",{class:"ytwBannerImageLayoutViewModelHostBannerImage"},_.z(_.a6,{data:function(){return W().adImage}},{adImageViewModel:function(h){return _.z(_.Rz,{data:h.data,
targetHeight:80,customCommandResolver:Ut6})}})),_.z("div",{class:"ytwBannerImageLayoutViewModelHostMetadata"},_.z("div",{class:"ytwBannerImageLayoutViewModelHostMetadataAdBadge"},_.z(_.a6,{data:function(){return W().adBadge}},{adBadgeViewModel:function(h){return _.z(_.FI,{data:h.data,
hasDot:!1,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}})),_.z("div",{class:"ytwBannerImageLayoutViewModelHostMetadataMenu"},_.z(_.a6,{data:function(){return W().menu}},{buttonViewModel:_.rk}))))},"Qi"),"banner-image-layout-view-model",{props:{data:_.TS}});_.pK(_.GK(function(F){var W=F.data;F=_.uf();_.WH(F,function(){return W().interaction},Rj$);
_.ER(F,{visibilityCallback:function(E){var h,d=(h=W().interaction)==null?void 0:h.onFirstVisible;E&&d&&_.fK(d)},
showOption:_.w1});_.HX(function(){var E,h;h=(h=_.ju("yt.www.ads.eventcache.getLastCompanionData"))?(h=h())&&h.onLayoutVisibleCallback:null;(E=h)==null||E()});
return _.z("top-banner-image-text-icon-buttoned-layout-view-model",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHost",el:F},_.z("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostBannerImage"},_.z(_.a6,{data:function(){return W().adImage}},{adImageViewModel:function(E){return _.z(_.Rz,{data:E.data,
targetHeight:80,customCommandResolver:Rj$})}})),_.z("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadata"},_.z("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataAvatarLockup"},_.z(_.a6,{data:function(){return W().adAvatarLockup}},{adAvatarLockupViewModel:function(E){return _.z(dN6,{data:E.data,
customCommandResolver:Rj$})}})),_.z(_.a6,{data:function(){return W().adButton}},{adButtonViewModel:function(E){return _.z(_.Sd,{data:E.data,
customCommandResolver:Rj$})}}),_.z("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataMenu"},_.z(_.a6,{data:function(){return W().menu}},{buttonViewModel:_.rk}))))},"Ri"),"top-banner-image-text-icon-buttoned-layout-view-model",{props:{data:_.TS}});var zGT={shoppingCompanionCarouselRenderer:"ytd-shopping-companion-renderer",imageCompanionAdRenderer:"ytd-image-companion-renderer",actionCompanionAdRenderer:"ytd-action-companion-ad-renderer",bannerImageLayoutViewModel:"banner-image-layout-view-model",topBannerImageTextIconButtonedLayoutViewModel:"top-banner-image-text-icon-buttoned-layout-view-model"},vR=function(){var F=_.n.apply(this,arguments)||this;F.updateCompanionDataJobId=0;F.contentVideoId=null;F.player=null;F.actionMap={"yt-companion-ad-clicked":"handleCompanionAdClicked"};
return F};
_.k(vR,_.n);_.N=vR.prototype;_.N.configureRendererStamper=function(){return{oneofRenderer:{id:"companion",mapping:zGT}}};
_.N.attached=function(){var F=this,W=_.WS();W&&W.getPlayerPromise().then(function(E){F.getCachedDataAndListen(E)})};
_.N.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateKevlarOrC3Companion",this.receiveCompanionData),this.player=null)};
_.N.updateRendererStamper=function(){var F={};if(this.data)for(var W in zGT)if(this.data[W]){F[W]=this.data[W];break}if(this.oneofRenderer!=void 0||Object.keys(F).length)this.oneofRenderer=F};
_.N.getCachedDataAndListen=function(F){var W=this.retrieveCachedCompanionData();W&&Object.keys(W).length&&this.receiveCompanionData(W);this.ytPlayerListenerBehavior.listenToPlayerEvent(F,"updateKevlarOrC3Companion",this.receiveCompanionData);this.player=F};
_.N.retrieveCachedCompanionData=function(){return _.EY.yt&&_.EY.yt.www&&_.EY.yt.www.ads&&_.EY.yt.www.ads.eventcache&&_.EY.yt.www.ads.eventcache.getLastCompanionData?_.EY.yt.www.ads.eventcache.getLastCompanionData():null};
_.N.receiveCompanionData=function(F){F&&Object.keys(F).length?(this.contentVideoId=F.contentVideoId,this.setCompanionData(F)):this.setCompanionData(F)};
_.N.setCompanionData=function(F){this.cancelPendingCompanionAdJobs();if(F){this.updateCompanionDataJobId=0;for(var W in zGT)zGT.hasOwnProperty(W)&&(this.data[W]=void 0);F.shoppingCompanionCarouselRenderer?this.set("data.shoppingCompanionCarouselRenderer",F.shoppingCompanionCarouselRenderer):F.imageCompanionAdRenderer?this.set("data.imageCompanionAdRenderer",F.imageCompanionAdRenderer):F.actionCompanionAdRenderer?(this.set("data.actionCompanionAdRenderer",F.actionCompanionAdRenderer),_.Nc(this.hostElement,
"yt-hide-unlimited-offer-module"),_.Nc(this.hostElement,"yt-hide-tvfilm-offer-module")):F.bannerImageLayoutViewModel?this.set("data.bannerImageLayoutViewModel",F.bannerImageLayoutViewModel):F.topBannerImageTextIconButtonedLayoutViewModel&&this.set("data.topBannerImageTextIconButtonedLayoutViewModel",F.topBannerImageTextIconButtonedLayoutViewModel);this.updateRendererStamper()}};
_.N.dataChanged=function(){var F=this,W=_.WS();W?W.getPlayerPromise().then(function(E){F.contentVideoId&&E.getVideoUrl().includes("v="+F.contentVideoId)||(F.cancelPendingCompanionAdJobs(),F.updateRendererStamper())}):_.i0(Error("hm"))};
_.N.cancelPendingCompanionAdJobs=function(){this.updateCompanionDataJobId&&(_.P0.cancelJob(this.updateCompanionDataJobId),this.updateCompanionDataJobId=0)};
_.N.handleCompanionAdClicked=function(F,W){this.player.onAdUxClicked(F,W);this.player.pauseVideo()};
vR.prototype.dataChanged=vR.prototype.dataChanged;_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],vR.prototype,"ytComponentBehavior",void 0);_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],vR.prototype,"ytActionHandlerBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],vR.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],vR.prototype,"ytRendererstamperBehavior",void 0);
_.T([_.J(_.om.YtPlayerListenerBehavior),_.Y("design:type",_.G$)],vR.prototype,"ytPlayerListenerBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],vR.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Object)],vR.prototype,"oneofRenderer",void 0);_.T([_.Cz("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],vR.prototype,"dataChanged",null);vR=_.T([_.y({is:"ytd-companion-slot-renderer",disableElementRegistration:!0})],vR);
_.r(vR,"ytd-companion-slot-renderer",function(){if(ML8!==void 0)return ML8;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-companion-slot-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="companion" class="style-scope ytd-companion-slot-renderer"></div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return ML8=F},{mode:_.E6("kevlar_poly_si_batch_j067")?
1:2});var tLK;var I2=function(){return _.n.apply(this,arguments)||this};
_.k(I2,_.n);I2.prototype.dataChanged=function(){this.companionSlotData={hack:!0}};
I2.prototype.dataChanged=I2.prototype.dataChanged;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],I2.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],I2.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Object)],I2.prototype,"companionSlotData",void 0);_.T([_.Cz("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],I2.prototype,"dataChanged",null);
I2=_.T([_.y({disableElementRegistration:!0,is:"ytd-player-legacy-desktop-watch-ads-renderer"})],I2);
_.r(I2,"ytd-player-legacy-desktop-watch-ads-renderer",function(){if(tLK!==void 0)return tLK;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-player-legacy-desktop-watch-ads-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-companion-legal-text-renderer data="[[data]]" disable-upgrade$="[[!data.companionLegalText]]" hidden="[[!data.companionLegalText]]" class="style-scope ytd-player-legacy-desktop-watch-ads-renderer">\n</ytd-companion-legal-text-renderer>\n<ytd-companion-slot-renderer data="[[companionSlotData]]" disable-upgrade$="[[!companionSlotData]]" hidden="[[!companionSlotData]]" class="style-scope ytd-player-legacy-desktop-watch-ads-renderer">\n</ytd-companion-slot-renderer>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return tLK=F},{mode:1});var C88;var cR=function(){var F=_.n.apply(this,arguments)||this;F.skinnyMode=!1;F.COMPACT_EVENT_COUNT=4;F.onShelfToggleButtonTap=function(){F.logTap(F.data);F.showingMore=!F.showingMore};
F.onShelfToggleButtonFocus=function(){F.showingMore||(F.logTap(F.data),F.showingMore=!0,_.wT(F,function(){var W=F.COMPACT_EVENT_COUNT-1,E;(E=_.Z(F.hostElement).querySelector("#event-"+W))==null||E.focus()}))};
return F};
_.k(cR,_.n);_.N=cR.prototype;_.N.attached=function(){this.shelfToggleButton.addEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.addEventListener("focus",this.onShelfToggleButtonFocus);this.addInfoTooltipListeners()};
_.N.detached=function(){this.shelfToggleButton.removeEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.removeEventListener("focus",this.onShelfToggleButtonFocus);this.removeInfoTooltipListeners()};
_.N.addInfoTooltipListeners=function(){this.infoContainer.addEventListener("tap",_.UO(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseenter",_.UO(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("focus",_.UO(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseleave",_.UO(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.addEventListener("blur",_.UO(this.infoTooltip,this.infoTooltip.hide))};
_.N.removeInfoTooltipListeners=function(){this.infoContainer.removeEventListener("tap",_.UO(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseenter",_.UO(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("focus",_.UO(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseleave",_.UO(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.removeEventListener("blur",_.UO(this.infoTooltip,this.infoTooltip.hide))};
_.N.dataChanged=function(){this.firstEvent=this.get("data.events.0.ticketEventRenderer");this.data&&this.data.events&&(this.canShowMore=this.data.events.length>this.COMPACT_EVENT_COUNT,this.separator.style.visibility=this.data.events.length>1?"visible":"hidden");this.showingMore=!1;this.showingMoreChanged(!1)};
_.N.onShowingMoreChanged=function(){var F;this.showingMoreChanged((F=this.showingMore)!=null?F:!1)};
_.N.showingMoreChanged=function(F){var W=this.get("data.events")||[];this.set("restEvents",W.slice(1,F?W.length:this.COMPACT_EVENT_COUNT).map(function(E){return E.ticketEventRenderer}));
W.slice(0,F?W.length:this.COMPACT_EVENT_COUNT).forEach(function(E){var h=_.JR();E=E.ticketEventRenderer.trackingParams;_.Pf()&&h&&E&&(E=_.ve(E),h&&_.is(h,E))});
this.shelfTogglerLabelText=this.showingMore?this.data.showLess||"":this.data.showMore||"";this.shelfTogglerIcon=this.showingMore?"yt-icons:expand-less":"yt-icons:expand-more"};
_.N.computeAriaLabel=function(F){return F.subtitle1+", "+F.subtitle2};
_.N.logTap=function(F){_.Pf()&&this.ytRendererBehavior.logExplicitClick(F)};
_.N.isKeyboardAction=function(F){return this.get("detail.x",F)===0&&this.get("detail.y",F)===0};
_.N.onFirstEventTap=function(F){F.target&&this.handleTap(F.target,this.firstEvent,this.isKeyboardAction(F))};
_.N.onTicketLinkTap=function(F){F.target&&this.handleTap(F.target,F.model.item,this.isKeyboardAction(F))};
_.N.handleTap=function(F,W,E){if(W.buttonCommand)if(W.hasMultipleOffers)Object.assign(_.D(W.buttonCommand,_.J7),{properties:{source:E?"keyboard":"tap"}}),this.logTap(W),this.popupPositionTarget=F,_.Rj(this.hostElement,[W.buttonCommand],this.hostElement);else{var h;if((h=_.D(W.buttonCommand,_.T5))==null?0:h.url)this.logTap(W),_.Jy(window,_.D(W.buttonCommand,_.T5).url)}};
cR.prototype.onShowingMoreChanged=cR.prototype.onShowingMoreChanged;cR.prototype.dataChanged=cR.prototype.dataChanged;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],cR.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],cR.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Object)],cR.prototype,"firstEvent",void 0);_.T([_.O(),_.Y("design:type",Object)],cR.prototype,"restEvents",void 0);_.T([_.O(),_.Y("design:type",String)],cR.prototype,"imageUrl",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],cR.prototype,"showingMore",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],cR.prototype,"canShowMore",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],cR.prototype,"skinnyMode",void 0);_.T([_.O(),_.Y("design:type",HTMLElement)],cR.prototype,"popupPositionTarget",void 0);_.T([_.gQ("#banner-info-tooltip"),_.Y("design:type",Object)],cR.prototype,"infoTooltip",void 0);
_.T([_.gQ("#info-container"),_.Y("design:type",HTMLElement)],cR.prototype,"infoContainer",void 0);_.T([_.gQ("#shelf-toggler"),_.Y("design:type",HTMLElement)],cR.prototype,"shelfToggleButton",void 0);_.T([_.gQ("#separator"),_.Y("design:type",HTMLDivElement)],cR.prototype,"separator",void 0);_.T([_.O(),_.Y("design:type",String)],cR.prototype,"shelfTogglerLabelText",void 0);_.T([_.O(),_.Y("design:type",String)],cR.prototype,"shelfTogglerIcon",void 0);
_.T([_.Cz("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],cR.prototype,"dataChanged",null);_.T([_.Cz("showingMore"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],cR.prototype,"onShowingMoreChanged",null);cR=_.T([_.y({disableElementRegistration:!0,is:"ytd-ticket-shelf-renderer"})],cR);
_.r(cR,"ytd-ticket-shelf-renderer",function(){if(C88!==void 0)return C88;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ticket-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="head" class="style-scope ytd-ticket-shelf-renderer">\n  <h1 id="title" role="heading" aria-label$="[[firstEvent.title]]" class="style-scope ytd-ticket-shelf-renderer">[[firstEvent.title]]</h1>\n\n  <a id="info-container" href="javascript:" role="complementary" aria-label$="[[data.informationText]]" class="style-scope ytd-ticket-shelf-renderer">\n    <yt-icon id="info-icon" icon="yt-icons:info" class="style-scope ytd-ticket-shelf-renderer"></yt-icon>\n  </a>\n  \n  <tp-yt-paper-tooltip id="banner-info-tooltip" for="info-container" manual-mode="" position="bottom" class="style-scope ytd-ticket-shelf-renderer">\n    <div class="style-scope ytd-ticket-shelf-renderer">[[data.informationText]]</div>\n  </tp-yt-paper-tooltip>\n</div>\n<div id="body" class="style-scope ytd-ticket-shelf-renderer">\n  <div id="primary-event" class="style-scope ytd-ticket-shelf-renderer">\n    <template is="dom-if" if="[[data.useCalendarAvatar]]" class="style-scope ytd-ticket-shelf-renderer">\n      <a id="calendar-avatar" href="javascript:void(0)" on-tap="onFirstEventTap" class="style-scope ytd-ticket-shelf-renderer">\n        <div id="calendar-avatar-month" class="style-scope ytd-ticket-shelf-renderer">\n          <div id="calendar-avatar-month-text" class="style-scope ytd-ticket-shelf-renderer">[[firstEvent.timeMonth]]</div>\n        </div>\n        <div id="calendar-avatar-day" class="style-scope ytd-ticket-shelf-renderer">\n          <div id="calendar-avatar-day-text" class="style-scope ytd-ticket-shelf-renderer">[[firstEvent.timeDay]]</div>\n        </div>\n      </a>\n    </template>\n\n    <template is="dom-if" if="[[!data.useCalendarAvatar]]" class="style-scope ytd-ticket-shelf-renderer">\n      <div id="thumbnail" class="style-scope ytd-ticket-shelf-renderer">\n        <yt-img-shadow id="thumbnail-img" fit="" thumbnail="[[firstEvent.thumbnail]]" class="style-scope ytd-ticket-shelf-renderer">\n        </yt-img-shadow>\n      </div>\n    </template>\n\n    <div id="meta" class="style-scope ytd-ticket-shelf-renderer">\n      <div id="meta-info" class="style-scope ytd-ticket-shelf-renderer">\n        <a id="nearest-with-location" href="javascript:void(0)" on-tap="onFirstEventTap" class="style-scope ytd-ticket-shelf-renderer">[[data.title]]</a>\n        <div id="subtitle1" class="style-scope ytd-ticket-shelf-renderer">[[firstEvent.subtitle1]]</div>\n        <template is="dom-if" if="[[firstEvent.hasMultipleOffers]]" class="style-scope ytd-ticket-shelf-renderer">\n          <div id="subtitle2" class="style-scope ytd-ticket-shelf-renderer">\n            [[firstEvent.subtitle2]]\n          </div>\n        </template>\n        <template is="dom-if" if="[[!firstEvent.hasMultipleOffers]]" class="style-scope ytd-ticket-shelf-renderer">\n          <a class="vendor style-scope ytd-ticket-shelf-renderer" target="_blank" on-tap="onFirstEventTap" href$="[[firstEvent.buttonCommand.urlEndpoint.url]]">\n            [[firstEvent.linkText]]\n          </a>\n        </template>\n      </div>\n      <a id="view-tickets-link" href="javascript:void(0)" on-tap="onFirstEventTap" class="style-scope ytd-ticket-shelf-renderer">\n        [[firstEvent.buttonText]]\n        <template is="dom-if" if="[[!firstEvent.hasMultipleOffers]]" class="style-scope ytd-ticket-shelf-renderer">\n          <yt-icon class="launch-icon style-scope ytd-ticket-shelf-renderer" icon="yt-icons:launch"></yt-icon>\n        </template>\n      </a>\n    </div>\n  </div>\n\n  <div id="separator" class="style-scope ytd-ticket-shelf-renderer"></div>\n\n  <div id="rest-events" class="style-scope ytd-ticket-shelf-renderer">\n    <div id="table" class="style-scope ytd-ticket-shelf-renderer">\n      <table cellspacing="0" cellpadding="0" class="style-scope ytd-ticket-shelf-renderer">\n        <template is="dom-repeat" items="[[restEvents]]" as="item" class="style-scope ytd-ticket-shelf-renderer">\n          <tr on-tap="onTicketLinkTap" class="style-scope ytd-ticket-shelf-renderer">\n            <td class="style-scope ytd-ticket-shelf-renderer">\n              <div class="when-date-column style-scope ytd-ticket-shelf-renderer">[[item.timeDate]]</div>\n            </td>\n            <td class="style-scope ytd-ticket-shelf-renderer">\n              <div class="when-weekday-column style-scope ytd-ticket-shelf-renderer">\n                <div class="style-scope ytd-ticket-shelf-renderer">\n                  [[item.timeWeekday]]<span id="time" class="style-scope ytd-ticket-shelf-renderer">[[item.timeTime]]</span>\n                </div>\n              </div>\n            </td>\n            <td class="where-column-td style-scope ytd-ticket-shelf-renderer">\n              <div class="where-column style-scope ytd-ticket-shelf-renderer">\n                <div class="venue-vendor-container style-scope ytd-ticket-shelf-renderer">\n                  <div class="venue style-scope ytd-ticket-shelf-renderer">[[item.subtitle2]]</div>\n                  <b class="dot style-scope ytd-ticket-shelf-renderer">\u00b7</b>\n                  <a class="vendor style-scope ytd-ticket-shelf-renderer" href="javascript:void(0)" id$="event-[[index]]">\n                    [[item.linkText]]\n                    <template is="dom-if" if="[[!item.hasMultipleOffers]]" class="style-scope ytd-ticket-shelf-renderer">\n                      <yt-icon class="launch-icon style-scope ytd-ticket-shelf-renderer" icon="yt-icons:launch"></yt-icon>\n                    </template>\n                  </a>\n                </div>\n              </div>\n            </td>\n          </tr>\n        </template>\n      </table>\n      <yt-icon-button id="shelf-toggler" hidden="[[!canShowMore]]" label="[[shelfTogglerLabelText]]" class="style-scope ytd-ticket-shelf-renderer">\n        <yt-icon icon="[[shelfTogglerIcon]]" class="style-scope ytd-ticket-shelf-renderer"></yt-icon>\n      </yt-icon-button>\n    </div>\n  </div>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return C88=F},{mode:1});var BPg;var v1g;var D8=function(){return _.n.apply(this,arguments)||this};
_.k(D8,_.n);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],D8.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],D8.prototype,"data",void 0);D8=_.T([_.y({disableElementRegistration:!0,is:"ytd-comments-entry-point-message-renderer"})],D8);
_.r(D8,"ytd-comments-entry-point-message-renderer",function(){if(v1g!==void 0)return v1g;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comments-entry-point-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="message" text="[[data.messageText]]" class="style-scope ytd-comments-entry-point-message-renderer"></yt-formatted-string>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return v1g=F},{mode:1});var IFq;var xk=function(){return _.n.apply(this,arguments)||this};
_.k(xk,_.n);_.Sn.Object.defineProperties(xk.prototype,{hasAvatar:{configurable:!0,enumerable:!0,get:function(){var F;return!((F=this.data)==null||!F.teaserAvatar)}}});
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],xk.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],xk.prototype,"data",void 0);_.T([_.a("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],xk.prototype,"hasAvatar",null);xk=_.T([_.y({disableElementRegistration:!0,is:"ytd-comments-entry-point-teaser-renderer"})],xk);
_.r(xk,"ytd-comments-entry-point-teaser-renderer",function(){if(IFq!==void 0)return IFq;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comments-entry-point-teaser-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="teaser" class="style-scope ytd-comments-entry-point-teaser-renderer"><yt-img-shadow class="avatar style-scope ytd-comments-entry-point-teaser-renderer" height="24" hidden="[[!hasAvatar]]" thumbnail="[[data.teaserAvatar]]" width="24"></yt-img-shadow><div id="teaser-text" class="style-scope ytd-comments-entry-point-teaser-renderer">[[getSimpleString(data.teaserContent)]]</div></div>');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return IFq=F},{mode:1});var cK6;var kk=function(){return _.n.apply(this,arguments)||this};
_.k(kk,_.n);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],kk.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],kk.prototype,"data",void 0);kk=_.T([_.y({disableElementRegistration:!0,is:"ytd-comments-simplebox-renderer"})],kk);
_.r(kk,"ytd-comments-simplebox-renderer",function(){if(cK6!==void 0)return cK6;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comments-simplebox-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="simplebox" class="style-scope ytd-comments-simplebox-renderer"><yt-img-shadow class="avatar style-scope ytd-comments-simplebox-renderer" height="24" thumbnail="[[data.simpleboxAvatar]]" width="24"></yt-img-shadow><div id="simplebox-input" class="style-scope ytd-comments-simplebox-renderer">[[getSimpleString(data.simpleboxPlaceholder)]]</div></div>');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return cK6=F},{mode:1});var AX=function(){var F=_.n.apply(this,arguments)||this;F.fullHeight=!_.c("comment_teaser_full_height_kill_switch")&&_.c("kevlar_watch_grid");return F};
_.k(AX,_.n);AX.prototype.configureRendererStamper=function(){return{contentRenderer:{id:"content-renderer",mapping:{commentsEntryPointTeaserRenderer:"ytd-comments-entry-point-teaser-renderer",commentsSimpleboxRenderer:"ytd-comments-simplebox-renderer",commentsEntryPointMessageRenderer:"ytd-comments-entry-point-message-renderer"}},"data.contents":{id:"contents",mapping:{commentsEntryPointTeaserRenderer:"ytd-comments-entry-point-teaser-renderer"}}}};
AX.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
AX.prototype.onTap=function(){var F=this.tapCommand;F&&(this.data&&this.ytRendererBehavior.logExplicitClick(this.data),this.ytComponentBehavior.resolveCommand(F))};
AX.prototype.onKeyUp=function(F){if(F.keyCode===13)this.onTap()};
_.Sn.Object.defineProperties(AX.prototype,{tapCommand:{configurable:!0,enumerable:!0,get:function(){var F;if((F=this.data)==null?0:F.onTap)return this.data.onTap;var W,E;if(((W=this.data)==null?0:W.teaserContent)||((E=this.data)==null?0:E.simpleboxPlaceholder))return{signalAction:{signal:"SCROLL_TO_COMMENTS"}}}},
simpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){var F;return(F=this.data)==null?void 0:F.simpleboxPlaceholder}},
hasSimpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){return!!this.simpleboxPlaceholder}},
simpleboxAvatar:{configurable:!0,enumerable:!0,get:function(){var F;return(F=this.data)==null?void 0:F.simpleboxAvatar}},
teaserContent:{configurable:!0,enumerable:!0,get:function(){var F;return(F=this.data)==null?void 0:F.teaserContent}},
hasTeaserContent:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserContent}},
teaserAvatar:{configurable:!0,enumerable:!0,get:function(){var F;return(F=this.data)==null?void 0:F.teaserAvatar}},
hasTeaserAvatar:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserAvatar}},
messageText:{configurable:!0,enumerable:!0,get:function(){var F;return(F=this.data)==null?void 0:F.messageText}},
contentRenderer:{configurable:!0,enumerable:!0,get:function(){var F;return(F=this.data)==null?void 0:F.contentRenderer}},
hasContents:{configurable:!0,enumerable:!0,get:function(){var F;return(F=this.data)!=null&&F.contents?this.data.contents.length>0:!1}},
hasContentRenderer:{configurable:!0,enumerable:!0,get:function(){return!!this.contentRenderer}}});
AX.prototype.onKeyUp=AX.prototype.onKeyUp;AX.prototype.onTap=AX.prototype.onTap;_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],AX.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],AX.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],AX.prototype,"ytComponentBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],AX.prototype,"data",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],AX.prototype,"fullHeight",void 0);_.T([_.a("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],AX.prototype,"tapCommand",null);_.T([_.a("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],AX.prototype,"simpleboxPlaceholder",null);_.T([_.a("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],AX.prototype,"hasSimpleboxPlaceholder",null);
_.T([_.a("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],AX.prototype,"simpleboxAvatar",null);_.T([_.a("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],AX.prototype,"teaserContent",null);_.T([_.a("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],AX.prototype,"hasTeaserContent",null);_.T([_.a("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],AX.prototype,"teaserAvatar",null);
_.T([_.a("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],AX.prototype,"hasTeaserAvatar",null);_.T([_.a("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],AX.prototype,"messageText",null);_.T([_.a("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],AX.prototype,"contentRenderer",null);_.T([_.a("data"),_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],AX.prototype,"hasContents",null);
_.T([_.a("data"),_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],AX.prototype,"hasContentRenderer",null);_.T([_.R4("click"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],AX.prototype,"onTap",null);_.T([_.R4("keypress"),_.Y("design:type",Function),_.Y("design:paramtypes",[_.kU]),_.Y("design:returntype")],AX.prototype,"onKeyUp",null);AX=_.T([_.y({disableElementRegistration:!0,is:"ytd-comments-entry-point-header-renderer"})],AX);
_.r(AX,"ytd-comments-entry-point-header-renderer",function(){if(BPg!==void 0)return BPg;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comments-entry-point-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-comments-entry-point-header-renderer"><div id="title" class="style-scope ytd-comments-entry-point-header-renderer">[[getSimpleString(data.headerText)]]</div><div id="count" class="style-scope ytd-comments-entry-point-header-renderer">[[getSimpleString(data.commentCount)]]</div></div><div id="content" class="style-scope ytd-comments-entry-point-header-renderer"><div id="simplebox" hidden="[[!hasSimpleboxPlaceholder]]" class="style-scope ytd-comments-entry-point-header-renderer"><yt-img-shadow class="avatar style-scope ytd-comments-entry-point-header-renderer" height="24" thumbnail="[[simpleboxAvatar]]" width="24"></yt-img-shadow><div id="simplebox-input" class="style-scope ytd-comments-entry-point-header-renderer">[[getSimpleString(simpleboxPlaceholder)]]</div></div><div id="teaser" hidden="[[!hasTeaserContent]]" class="style-scope ytd-comments-entry-point-header-renderer"><yt-img-shadow class="avatar style-scope ytd-comments-entry-point-header-renderer" height="24" hidden="[[!hasTeaserAvatar]]" thumbnail="[[teaserAvatar]]" width="24"></yt-img-shadow><div id="teaser-text" class="style-scope ytd-comments-entry-point-header-renderer">[[getSimpleString(teaserContent)]]</div></div><yt-formatted-string id="message" text="[[messageText]]" class="style-scope ytd-comments-entry-point-header-renderer"></yt-formatted-string><div id="content-renderer" hidden="[[!hasContentRenderer]]" class="style-scope ytd-comments-entry-point-header-renderer"></div><div id="contents" class="style-scope ytd-comments-entry-point-header-renderer"></div></div>');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return BPg=F},{mode:1});var DNu;_.Nj(_.z_,"yt-animated-rolling-number",{propNames:["numberText","numberValue","heightPx","shouldAnimate","forceRollUp"]});var xNN=Number(getComputedStyle(document.documentElement).fontSize.replace("px","")),kEP={numberText:"",heightPx:2*xNN,shouldAnimate:!1},sF=function(){var F=_.n.apply(this,arguments)||this;F.usingAnimatedComponents=!0;F.wasDetailed=!1;F.JSC$20175_browserSupportsAnimation=_.c("web_supports_animations_api");F.actionMap={"yt-update-viewership-action":"onYtUpdateViewershipAction","yt-update-date-text-action":"onYtUpdateDateTextAction"};F.detailed=!1;F.shouldAnimate=!1;F.viewCountProps=kEP;F.dateTextProps=
kEP;F.metadataBadgesInDescription=_.c("web_metadata_badges_in_description");return F};
_.k(sF,_.n);_.N=sF.prototype;_.N.resetAnimationState=function(){this.shouldAnimate=!1};
_.N.updateDynamicMetadata=function(){if(this.JSC$20175_browserSupportsAnimation){if(!this.detailed){var F,W,E,h;var d=(F=this.videoPrimaryInfoRenderer)==null?void 0:(W=F.viewCount)==null?void 0:(E=W.videoViewCountRenderer)==null?void 0:(h=E.extraShortViewCount)==null?void 0:h.simpleText;var V,R,M,g;var t=(V=this.videoPrimaryInfoRenderer)==null?void 0:(R=V.viewCount)==null?void 0:(M=R.videoViewCountRenderer)==null?void 0:(g=M.shortViewCount)==null?void 0:g.simpleText}if(!t){var C,B,I,x;d=(C=this.videoPrimaryInfoRenderer)==
null?void 0:(B=C.viewCount)==null?void 0:(I=B.videoViewCountRenderer)==null?void 0:(x=I.unlabeledViewCountValue)==null?void 0:x.simpleText;var A,X,P,b;t=(A=this.videoPrimaryInfoRenderer)==null?void 0:(X=A.viewCount)==null?void 0:(P=X.videoViewCountRenderer)==null?void 0:(b=P.viewCount)==null?void 0:b.simpleText}var l,w,G;F=Number((l=this.videoPrimaryInfoRenderer)==null?void 0:(w=l.viewCount)==null?void 0:(G=w.videoViewCountRenderer)==null?void 0:G.originalViewCount);var hr,p;l=(hr=this.videoPrimaryInfoRenderer)==
null?void 0:(p=hr.relativeDateText)==null?void 0:p.simpleText;var UY;hr=!((UY=this.videoPrimaryInfoRenderer)==null||!UY.relativeDateText);if(d&&t&&F&&(l||!hr)){this.wasDetailed!==this.detailed&&(this.shouldAnimate=!1);this.wasDetailed=this.detailed;UY=t.split(new RegExp("("+d+")"));d=tAO(UY[0]);var xW;t={numberText:(xW=UY[1])!=null?xW:"",numberValue:F,heightPx:2*xNN,shouldAnimate:this.shouldAnimate&&!!this.viewCountProps.numberText};var qw;xW=((qw=UY[2])!=null?qw:"")+"  ";this.setViewCount(t,d,tAO(xW));
if(!this.detailed&&hr){d=l.split(/(\d+)/);qw=tAO(d[0]);var Lb;xW={numberText:(Lb=d[1])!=null?Lb:"",heightPx:2*xNN,shouldAnimate:this.shouldAnimate&&!!this.dateTextProps.numberText};var jk;Lb=((jk=d[2])!=null?jk:"")+"  ";this.setDateText(xW,qw,tAO(Lb))}else this.setDateText();this.usingAnimatedComponents=!0;this.shouldAnimate=!1}else this.usingAnimatedComponents=!1,this.setViewCount(),this.setDateText()}else this.usingAnimatedComponents=!1};
_.N.setViewCount=function(F,W,E){_.Yr(W)!==_.Yr(this.viewCountPreNumberText)&&(this.viewCountPreNumberText=W);this.viewCountProps.numberText!==(F==null?void 0:F.numberText)&&(this.viewCountProps=F||kEP);_.Yr(E)!==_.Yr(this.viewCountPostNumberText)&&(this.viewCountPostNumberText=E)};
_.N.setDateText=function(F,W,E){_.Yr(W)!==_.Yr(this.dateTextPreNumberText)&&(this.dateTextPreNumberText=W);this.dateTextProps.numberText!==(F==null?void 0:F.numberText)&&(this.dateTextProps=F||kEP);_.Yr(E)!==_.Yr(this.dateTextPostNumberText)&&(this.dateTextPostNumberText=E)};
_.N.onYtUpdateViewershipAction=function(F){this.videoPrimaryInfoRenderer&&(_.D(F,veF).isEmpty?this.set("videoPrimaryInfoRenderer.viewCount",null):_.D(F,veF).viewCount&&(this.shouldAnimate=!0,this.set("videoPrimaryInfoRenderer.viewCount",_.D(F,veF).viewCount)))};
_.N.onYtUpdateDateTextAction=function(F){if(this.videoPrimaryInfoRenderer){F=_.D(F,_.Cq6).dateText;this.shouldAnimate=!0;var W;((W=this.videoPrimaryInfoRenderer)==null?0:W.relativeDateText)?this.set("videoPrimaryInfoRenderer.relativeDateText",F):this.set("videoPrimaryInfoRenderer.dateText",F)}};
_.Sn.Object.defineProperties(sF.prototype,{infoText:{configurable:!0,enumerable:!0,get:function(){return zju(this.videoPrimaryInfoRenderer,this.detailed,!this.usingAnimatedComponents)}},
descriptionInfoTooltipText:{configurable:!0,enumerable:!0,get:function(){return _.Yr(zju(this.videoPrimaryInfoRenderer,!0,!0,!1,"\u2022"))}},
showDescriptionInfoTooltip:{configurable:!0,enumerable:!0,get:function(){return!this.detailed}},
animatedViewCountAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.Yr(this.viewCountPreNumberText),this.viewCountProps.numberText,_.Yr(this.viewCountPostNumberText)].join("")}},
animatedDateTextAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.Yr(this.dateTextPreNumberText),this.dateTextProps.numberText,_.Yr(this.dateTextPostNumberText)].join("")}}});
sF.prototype.updateDynamicMetadata=sF.prototype.updateDynamicMetadata;sF.prototype.resetAnimationState=sF.prototype.resetAnimationState;_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],sF.prototype,"ytComponentBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],sF.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],sF.prototype,"ytRendererstamperBehavior",void 0);
_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],sF.prototype,"ytActionHandlerBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],sF.prototype,"videoPrimaryInfoRenderer",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],sF.prototype,"detailed",void 0);_.T([_.O(),_.Y("design:type",Object)],sF.prototype,"shouldAnimate",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],sF.prototype,"viewCountPreNumberText",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],sF.prototype,"viewCountProps",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],sF.prototype,"viewCountPostNumberText",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],sF.prototype,"dateTextPreNumberText",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],sF.prototype,"dateTextProps",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],sF.prototype,"dateTextPostNumberText",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],sF.prototype,"metadataBadgesInDescription",void 0);_.T([_.a("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed","usingAnimatedComponents"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],sF.prototype,"infoText",null);
_.T([_.a("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount"),_.Y("design:type",String),_.Y("design:paramtypes",[])],sF.prototype,"descriptionInfoTooltipText",null);_.T([_.a("detailed"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],sF.prototype,"showDescriptionInfoTooltip",null);
_.T([_.a("viewCountPreNumberText","viewCountProps.numberText","viewCountPostNumberText"),_.Y("design:type",String),_.Y("design:paramtypes",[])],sF.prototype,"animatedViewCountAccessibilityLabel",null);_.T([_.a("dateTextPreNumberText","dateTextProps.numberText","dateTextPostNumberText"),_.Y("design:type",String),_.Y("design:paramtypes",[])],sF.prototype,"animatedDateTextAccessibilityLabel",null);
_.T([_.ea("videoPrimaryInfoRenderer"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],sF.prototype,"resetAnimationState",null);_.T([_.ea("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],sF.prototype,"updateDynamicMetadata",null);sF=_.T([_.y({disableElementRegistration:!0,is:"ytd-watch-info-text"})],sF);
_.r(sF,"ytd-watch-info-text",function(){if(DNu!==void 0)return DNu;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-info-text--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="info-container" class="style-scope ytd-watch-info-text">\n  <div id="view-count" aria-label$="[[animatedViewCountAccessibilityLabel]]" class="style-scope ytd-watch-info-text">\n    <yt-formatted-string aria-hidden="true" text="[[viewCountPreNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n    <yt-animated-rolling-number id="view-count-number" force-roll-up="[[viewCountProps.forceRollUp]]" height-px="[[viewCountProps.heightPx]]" number-text="[[viewCountProps.numberText]]" number-value="[[viewCountProps.numberValue]]" should-animate="[[viewCountProps.shouldAnimate]]" class="style-scope ytd-watch-info-text"></yt-animated-rolling-number>\n    <yt-formatted-string aria-hidden="true" text="[[viewCountPostNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  </div>\n  <div id="date-text" aria-label$="[[animatedDateTextAccessibilityLabel]]" class="style-scope ytd-watch-info-text">\n    <yt-formatted-string aria-hidden="true" text="[[dateTextPreNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n    <yt-animated-rolling-number force-roll-up="true" height-px="[[dateTextProps.heightPx]]" number-text="[[dateTextProps.numberText]]" number-value="[[dateTextProps.numberValue]]" should-animate="[[dateTextProps.shouldAnimate]]" class="style-scope ytd-watch-info-text"></yt-animated-rolling-number>\n    <yt-formatted-string aria-hidden="true" text="[[dateTextPostNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  </div>\n  <yt-formatted-string id="info" text="[[infoText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  <template is="dom-if" if="[[metadataBadgesInDescription]]" class="style-scope ytd-watch-info-text">\n    <ytd-badge-supported-renderer badges="[[videoPrimaryInfoRenderer.badges]]" hidden="[[!videoPrimaryInfoRenderer.badges]]" class="style-scope ytd-watch-info-text">\n    </ytd-badge-supported-renderer>\n  </template>\n</div>\n<template is="dom-if" restamp="" if="[[showDescriptionInfoTooltip]]" class="style-scope ytd-watch-info-text">\n  <tp-yt-paper-tooltip class="style-scope ytd-watch-info-text">[[descriptionInfoTooltipText]]</tp-yt-paper-tooltip>\n</template>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return DNu=F},{mode:1});var AKw;var swF=_.GK(function(F){var W=F.data;var E=F.setTapCommand;_.q6(function(){var h=_.He(W().onTap);E(h)});
return _.z("yt-comment-input-box-carousel-item-view-model",{class:"ytCommentInputBoxCarouselItemViewModelHost"},_.z(_.a6,{data:function(){return W().avatar}},{avatarViewModel:_.fI}),_.z("div",{class:"ytCommentInputBoxCarouselItemViewModelInputBox"},_.z("span",null,function(){return W().simpleboxText})))},"Si");var Ltq=_.GK(function(F){return _.z("comments-entry-point-teaser-view-model",{class:"ytCommentsEntryPointTeaserViewModelHost"},_.z(_.v,{cond:function(){return _.D(F.data().avatar,_.Kx)},
then:function(W){return _.z(_.fI,{data:W,avatarButtonCustomClassName:"ytCommentsEntryPointTeaserViewModelAvatar"})}}),_.z("div",{class:"ytCommentsEntryPointTeaserViewModelTeaser"},_.z(_.Ab,{text:function(){return F.data().teaserText}})))},"Ti");var q1$=_.GK(function(F){var W=F.data;var E=F.setTapCommand;_.q6(function(){var h=_.He(W().onTap);E(h)});
return _.z("yt-comment-teaser-carousel-item-view-model",{class:"ytCommentTeaserCarouselItemViewModelHost"},_.z(_.a6,{data:function(){return W().teasers}},{commentsEntryPointTeaserViewModel:Ltq}))},"Ui");var $Nx=_.GK(function(F){var W=F.data;var E=F.setTapCommand;_.q6(function(){var h=_.He(W().onTap);E(h)});
return _.z("yt-comments-entry-point-message-view-model",{class:"ytCommentsEntryPointMessageViewModelHost"},_.z(_.Ab,{text:function(){return W().messageText}}))},"Vi");var Zm6=_.GK(function(F){var W=F.data;var E=F.setTapCommand;var h=F.isDisabled;_.q6(function(){var d=(h==null?0:h())?void 0:_.He(W().onTap);E(d)});
return _.z("yt-text-carousel-item-view-model",{class:"ytTextCarouselItemViewModelHost"},_.z(_.I3,{icon:function(){return W().iconName},
className:"ytTextCarouselItemViewModelImageType"}),_.z(_.v,{cond:function(){return W().image},
then:function(d){return _.z(_.T4,{data:d,alt:"",className:"ytTextCarouselItemViewModelImageType"})}}),_.z(_.Ab,{text:function(){return W().text},
className:function(){return W().image||W().iconName?"ytTextCarouselItemViewModelText":"ytTextCarouselItemViewModelTextWithoutImage"},
ellipsisTruncate:!0}),_.z(_.a6,{data:function(){return W().button}},{buttonViewModel:function(d){return _.z(_.rk,{data:d.data,
className:"ytTextCarouselItemViewModelButton",buttonOverrides:function(){return{disabled:h==null?void 0:h()}}})}}))},"Wi");var X8K=_.GK(function(F){var W=F.data;var E=F.itemIndex;var h=F.selectedIndex;var d=F.indexUpdatedCallback;var V=F.observer;F=F.title;var R=_.uf(),M=function(B){E()===h()&&d(B)},g=_.Jb(onw),t=_.Jb(Gmx),C=function(){var B,I,x;
return((B=W())==null?void 0:B.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_LIVE_CHAT_STATIC_TEXT"&&!g()||((I=W())==null?void 0:I.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_QUIZ_TEASER_STATIC_TEXT"&&t().includes("PAposts_by_host")||((x=W())==null?void 0:x.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_YOUCHAT_STATIC_TEXT"&&t().includes("PAyouchat")};
_.Xk(function(){V&&V().observe(R.value)});
return _.z("yt-carousel-item-view-model",{el:R,class:"ytCarouselItemViewModelHost",tabindex:0,"aria-label":F},_.z(_.a6,{data:function(){var B,I;return(I=(B=_.D(W().carouselItem,nGg))==null?void 0:B.textCarousel)!=null?I:W().carouselItem}},{textCarouselItemViewModel:function(B){return _.z(Zm6,{data:B.data,
setTapCommand:M,isDisabled:C})},
commentTeaserCarouselItemViewModel:function(B){return _.z(q1$,{data:B.data,setTapCommand:M})},
commentInputBoxCarouselItemViewModel:function(B){return _.z(swF,{data:B.data,setTapCommand:M})},
commentsEntryPointMessageViewModel:function(B){return _.z($Nx,{data:B.data,setTapCommand:M})}}))},"Xi");var Hmg=_.GK(function(F){var W=F.numDots;var E=F.activeIndex;return _.z("yt-carousel-dots-shape",{class:"ytCarouselDotsShapeHost"},_.z(_.xF,{each:function(){return Array.from({length:W()})},
keyBy:"INDEX"},function(h,d){return _.z("div",{class:function(){var V={};return _.gY("ytCarouselDotsShapeDot",(V.ytCarouselDotsShapeDotActive=d===E(),V))}})}))},"Yi");var P8q=_.GK(function(F){var W=F.data;var E=F.handleCarouselNavigation;var h=F.numItems;var d=F.selectedIndex;var V=function(){return{disabled:d()===0}},R=function(){return{disabled:d()===h()-1}};
return _.z("yt-carousel-title-view-model",{class:"ytCarouselTitleViewModelHost"},_.z("div",null,_.z("h2",{class:"ytCarouselTitleViewModelTitle","aria-live":"polite"},function(){return W().title}),_.z(_.v,{cond:function(){return W().subtitle},
then:function(M){return _.z("span",{class:"ytCarouselTitleViewModelSubtitle","aria-label":function(){return W().subtitleAccessibilityText}},M)}})),_.z(_.v,{cond:function(){return h()>1},
then:function(){return _.z("div",{class:"ytCarouselTitleViewModelNavigation"},_.z(Hmg,{numDots:h,activeIndex:d}),_.z(_.v,{cond:function(){return W().previousButton},
then:function(M){return _.z(_.a6,{data:M},{buttonViewModel:function(g){return _.z(_.rk,{data:g.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return E(-1)},
buttonOverrides:V})}})}}),_.z(_.v,{cond:function(){return W().nextButton},
then:function(M){return _.z(_.a6,{data:M},{buttonViewModel:function(g){return _.z(_.rk,{data:g.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return E(1)},
buttonOverrides:R})}})}}))}}))},"Zi");_.pK(_.GK(function(F){var W=F.data;var E=_.uf(),h=_.uf(),d=_.b0("HTML_DIR")==="rtl",V=!1,R=0,M=0;F=_.U(_.g$(0,void 0,"m0dtIf"));var g=F.next().value,t=F.next().value;F=_.U(_.g$(0,void 0,"fL6I6"));var C=F.next().value,B=F.next().value;F=_.U(_.g$(!1,void 0,"ZPrwNb"));var I=F.next().value,x=F.next().value,A=function(){var UY,xW,qw;return(qw=(UY=W())==null?void 0:(xW=UY.carouselTitles)==null?void 0:xW.length)!=null?qw:0},X=function(){h.value&&h.value.scrollLeft!==R&&t((d?h.value.scrollLeft<R:h.value.scrollLeft>
R)?Math.min(g()+1,A()-1):Math.max(g()-1,0))},P;
window.IntersectionObserver&&(P=new IntersectionObserver(function(UY){UY=_.U(UY);for(var xW=UY.next();!xW.done;xW=UY.next())if(xW.value.isIntersecting){if(V){V=!1;break}X()}else t(M)},{threshold:.2}));
_.q6(function(){if(h.value){var UY=(d?-1:1)*(C()/A()+12)*(I()&&P?M:g());typeof h.value.scrollTo==="function"?h.value.scrollTo({left:UY,behavior:"smooth"}):h.value.scrollLeft=UY;R=UY;M=I()&&P?M:g()}});
var b,l=function(UY){b=UY};
_.Xk(function(){var UY=function(){var qw=h.value.offsetWidth*A(),Lb=24*(A()-1);B(qw+Lb)};
UY();if(window.ResizeObserver){var xW=new ResizeObserver(UY);xW.observe(h.value);_.$p(function(){xW.disconnect();P&&P.disconnect()})}});
F=_.tb(function(UY){if(_.XAr(_.YV(UY),E.value,["BUTTON".toString()])||!b)return!1;_.WZ().resolve(_.EJ).resolveCommand(b,{forceClickLogging:!0});return!1});
var w=function(UY){UY=g()+UY;UY>=0&&UY<A()&&(V=!0,t(UY))},G=_.tb(function(){x(!0);
return!1}),hr=_.tb(function(){P||X();
x(!1);return!1}),p={};
return _.z("yt-video-metadata-carousel-view-model",{class:_.ec("ytVideoMetadataCarouselViewModelHost",(p.ytVideoMetadataCarouselViewModelShortMode=_.c("mweb_video_metadata_carousel_short_mode"),p)),el:E,"on:click":F,"on:touchstart":G,"on:touchend":hr,hidden:function(){var UY,xW;return!((UY=W())==null?0:(xW=UY.carouselItems)==null?0:xW.length)}},_.z("div",{class:"ytVideoMetadataCarouselViewModelTitleSection"},_.z(_.v,{cond:function(){return W().carouselTitles},
then:function(UY){return _.z(_.a6,{data:function(){return UY()[I()&&P?M:g()]}},{carouselTitleViewModel:function(xW){return _.z(P8q,{data:xW.data,
handleCarouselNavigation:w,numItems:A,selectedIndex:g})}})}})),_.z("div",{class:"ytVideoMetadataCarouselViewModelCarouselContainer",
el:h},_.z("div",{class:"ytVideoMetadataCarouselViewModelItemSection",style:function(){return"min-width: "+C()+"px;"}},_.z(_.v,{cond:function(){return W().carouselItems},
then:function(UY){return _.z(_.xF,{each:UY},function(xW,qw){return _.z(_.a6,{data:function(){return xW}},{carouselItemViewModel:function(Lb){return _.z(X8K,{data:Lb.data,
itemIndex:qw,selectedIndex:g,indexUpdatedCallback:l,observer:P,title:function(){a:{var jk=qw();var Jr,nb=(Jr=W())==null?void 0:Jr.carouselTitles;if(nb&&(jk=nb[jk])){var bo;jk=(bo=_.D(jk,lt8))==null?void 0:bo.title;break a}jk=void 0}return jk}})}})})}}))))},"$i"),"yt-video-metadata-carousel-view-model",{props:{data:_.TS}});var JKx=_.c("web_action_buttons_update_owner_width")?32:12,L0=function(){var F=_.n.apply(this,arguments)||this;F.metadataBadgesInDescription=_.c("web_metadata_badges_in_description");F.descriptionCollapsed=!0;F.useFadedScrimDescription=_.c("kevlar_enable_faded_scrim_on_description");F.skinnyMode=!1;F.playlist=!1;F.isDark=document.documentElement.hasAttribute("dark");F.disableVideoOwnerOnTap=_.c("swatchie_video_owner_on_tap_ks");F.swatcherooDelayLoad=_.c("swatcheroo_enable_ghost_cards");F.primaryMenuWidth=
0;F.videoId="";F.titleHeadlineXs=_.c("web_watch_typography_title_headline_xs");F.titleHeadlineS=_.c("web_watch_typography_title_headline_s");F.titleHeadlineM=_.c("web_watch_typography_title_headline_m");F.titleHashtagBlackLinkified=_.c("web_title_hashtag_black_linkified");F.titleHashtagGreyLinkified=_.c("web_title_hashtag_grey_linkified");F.actionButtonsUpdateOwnerWidth=_.c("web_action_buttons_update_owner_width");F.shouldForceIconOnly=!1;F.actionMap={"yt-update-title-action":"onYtUpdateTitleAction",
"yt-update-description-action":"onYtUpdateDescriptionAction","yt-dark-mode-toggled-action":"onYtDarkModeToggledAction"};F.isFullscreen=!1;F.isTheaterMode=!1;return F};
_.k(L0,_.n);_.N=L0.prototype;_.N.ready=function(){this.updateOwnerAndDescriptionPosition()};
_.N.updateOwnerAndDescriptionPosition=function(){_.c("kevlar_watch_grid")&&(this.skinnyMode?(this.titleElement.appendChild(this.descriptionElement),_.fw(this.bottomRowElement,this.ownerElement)):(_.fw(this.bottomRowElement,this.descriptionElement),_.fw(this.topRowElement,this.ownerElement)))};
_.N.titleOnTap=function(F){if(this.descriptionExpandCommand&&this.skinnyMode&&!_.Sc(_.TB(F)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var W;((W=window.getSelection())==null?0:W.toString().length)||this.handleExpandDescriptionCommands()}};
_.N.videoOwnerOnTap=function(F){this.disableVideoOwnerOnTap||this.skinnyMode&&this.videoOwnerCommand&&(_.Sc(_.TB(F)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])||this.ytComponentBehavior.resolveCommand(this.videoOwnerCommand))};
_.N.detached=function(){var F=this,W;return _.e(function(E){(W=F.resizeObserver)==null||W.disconnect();_.gG(E)})};
_.N.maybeAttachResizeObserver=function(){var F=this;this.flexMenuEnabled&&window.ResizeObserver&&(this.resizeThrottle||(this.resizeThrottle=new _.Nv(this.resize,200,this)),this.resizeObserver=this.resizeObserver||new ResizeObserver(function(){F.resizeThrottle.fire()}),this.resizeObserver.observe(this.hostElement))};
_.N.maybeUpdateActionsOnSeparateLine=function(){if(this.skinnyMode)this.actionsOnSeparateLine=!0;else if(this.primaryMenuWidth){var F=this.hostElement.clientWidth,W=Math.max(this.largerItemWrap?400:350,F/2-JKx);if(_.c("web_action_buttons_update_owner_width")){var E;W=(((E=document.getElementById("owner"))==null?void 0:E.clientWidth)||0)+JKx}this.actionsOnSeparateLine=this.primaryMenuWidth>F-W?!0:!1}};
_.N.stripAttributedDescription=function(F){return{content:F.content.replace(/[\r\n]{2,}/g,"\n")}};
_.N.configureRendererStamper=function(){return{"videoPrimaryInfoRenderer.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,disableTextTransformOnButtons:!0,tonalOverride:_.c("web_modern_buttons"),forceIconButton:!_.c("web_modern_buttons")},properties:{topLevelIconsOnly:"[[skinnyMode]]"}}},events:!0},"videoSecondaryInfoRenderer.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:{component:"ytd-subscribe-button-renderer",
params:{withCount:!0,showTextWhileAnimating:_.c("web_action_buttons_minimize_subscribe")},properties:{forceIconOnly:"[[shouldForceIconOnly]]"}},subscriptionNotificationToggleButtonRenderer:"ytd-subscription-notification-toggle-button-renderer"}},commentsEntryPointHeaderRenderer:{id:"comment-teaser",mapping:{commentsEntryPointHeaderRenderer:"ytd-comments-entry-point-header-renderer"}},videoMetadataCarousel:{id:"teaser-carousel",mapping:{videoMetadataCarouselViewModel:"yt-video-metadata-carousel-view-model"}},
infoPanelBelowMetadata:{id:"middle-row",mapping:{infoPanelContentRenderer:"ytd-info-panel-content-renderer"}}}};
_.N.videoPrimaryInfoRendererChanged=function(){var F;if((F=this.videoPrimaryInfoRenderer)==null?0:F.trackingParams)this.data={trackingParams:this.videoPrimaryInfoRenderer.trackingParams};this.flexMenuEnabled&&(this.maybeAttachResizeObserver(),this.updatePrimaryMenuWidth())};
_.N.videoSecondaryInfoRendererChanged=function(){var F,W;(W=(F=this.descriptionInlineExpander).collapse)==null||W.call(F);this.descriptionExpandClientVe=_.LQ(110509);this.descriptionCollapseClientVe=_.LQ(110510);F=_.JR();W=_.Pf();F&&W&&(_.c("combine_ve_grafts")?(_.zY(_.z4(),this.descriptionExpandClientVe,W),_.zY(_.z4(),this.descriptionCollapseClientVe,W)):_.j7(F,W,[this.descriptionExpandClientVe,this.descriptionCollapseClientVe]))};
_.N.structuredDescriptionContentRendererChanged=function(){_.c("ytd-watch-metadata-manual-sd-updates-killswitch")||(this.useFadedScrimDescription&&this.fadedStructuredDescriptionContentRendererElement?this.fadedStructuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRenderer:this.structuredDescriptionContentRendererElement&&(this.structuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRenderer))};
_.N.updateTopLevelIconsOnly=function(){var F=this;_.c("top_level_update_killswitch")||this.menu&&_.P0.addLowPriorityJob(function(){F.menu.topLevelIconsOnly=F.skinnyMode},_.dV("swathceroo_delay_flexible_menu_update",100))};
_.N.updateShouldForceIconOnly=function(){this.shouldForceIconOnly=this.skinnyMode||_.c("web_action_buttons_minimize_subscribe")};
_.N.moveActionsElement=function(){this.skinnyMode?this.bottomActionsElement.appendChild(this.actionsElement):this.topRowElement.appendChild(this.actionsElement)};
_.N.onYtTextInlineExpanderExpandClicked=function(){this.logExpandClick()};
_.N.onYtTextInlineExpanderCollapseClicked=function(){this.logCollapseClick();this.isWatchFlexy&&this.scrollToTopOfContainer()};
_.N.onYtTextInlineExpanderExpandedChanged=function(){if(!_.c("kevlar_watch_grid")){this.descriptionCollapsed=!this.descriptionInlineExpander.isExpanded;var F,W;(W=(F=this.structuredDescriptionContentRendererElement).resize)==null||W.call(F)}};
_.N.onRenderStamperFinished=function(F){(F==null?void 0:F.target)===this.hostElement&&this.updatePrimaryMenuWidth()};
_.N.onYtExpanderMoreTapped=function(){this.handleExpandDescriptionCommands()};
_.N.onYtExpanderLessTapped=function(){var F,W=(F=this.videoSecondaryInfoRenderer)==null?void 0:F.showLessCommand;W&&this.ytComponentBehavior.resolveCommand(W)};
_.N.onDescriptionDown=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerDown()};
_.N.onDescriptionUp=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerUp()};
_.N.onDescriptionClick=function(F){if(!_.Sc(_.TB(F)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var W;((W=window.getSelection())==null?0:W.toString().length)||(this.descriptionCollapsed?this.handleExpandDescriptionClick():_.c("kevlar_watch_metadata_entire_collapse_click_target")&&this.handleCollapseDescriptionClick())}};
_.N.handleExpandDescriptionClick=function(){this.descriptionCollapsed&&(this.useFadedScrimDescription&&this.logExpandClick(),this.expandDescription())};
_.N.handleCollapseDescriptionClick=function(){!this.descriptionCollapsed&&this.useFadedScrimDescription&&(this.collapseDescription(),this.scrollToTopOfContainer(),this.logCollapseClick())};
_.N.logCollapseClick=function(){var F=_.JR();F&&this.descriptionCollapseClientVe&&_.oj(F,this.descriptionCollapseClientVe)};
_.N.logExpandClick=function(){var F=_.JR();F&&this.descriptionExpandClientVe&&_.oj(F,this.descriptionExpandClientVe)};
_.N.collapseDescription=function(){this.descriptionCollapsed=!0};
_.N.scrollToTopOfContainer=function(){_.dW(this.hostElement,"yt-scroll-to-watch-element",[this.titleElement])};
_.N.expandDescription=function(){if(this.descriptionCollapsed)if(this.useFadedScrimDescription)this.descriptionCollapsed=!1,this.handleExpandDescriptionCommands();else this.descriptionInlineExpander.onExpandClick()};
_.N.handleExpandDescriptionCommands=function(){this.descriptionExpandCommand&&!this.structuredDescriptionContentRenderer&&this.ytComponentBehavior.resolveCommand(this.descriptionExpandCommand)};
_.N.getAboveTheFoldHeight=function(){return this.aboveTheFoldContainer.offsetHeight};
_.N.resize=function(){if(this.descriptionInlineExpander){var F,W;(W=(F=this.descriptionInlineExpander).resize)==null||W.call(F)}else _.OB(new _.xC("Tried to resize description inline expander when the HTML element was null",this.videoSecondaryInfoRenderer));if(this.flexMenuEnabled){var E;(E=this.menu)==null||E.maybeFlushDebouncer();this.primaryMenuWidth===0?this.updatePrimaryMenuWidth():(_.c("web_action_buttons_overlap_fix")&&this.updatePrimaryMenuWidth(),this.maybeUpdateActionsOnSeparateLine())}};
_.N.updatePrimaryMenuWidth=function(){if(this.flexMenuEnabled&&this.menu){var F,W,E,h,d=_.c("web_action_buttons_update_owner_width")?(E=(F=_.Z(this.menu).querySelector("#button-shape"))==null?void 0:F.clientWidth)!=null?E:0:(h=(W=_.Z(this.menu).querySelector("#button"))==null?void 0:W.clientWidth)!=null?h:0,V,R;F=((R=(V=_.Z(this.menu).querySelector("#top-level-buttons-computed"))==null?void 0:V.clientWidth)!=null?R:0)+8+d;var M,g;d=(g=(M=_.Z(this.menu).querySelector("#top-level-buttons-computed"))==
null?void 0:M.children.length)!=null?g:2;F<=8*d||(this.primaryMenuWidth=F)}};
_.N.onYtUpdateTitleAction=function(F){this.videoPrimaryInfoRenderer&&this.set("videoPrimaryInfoRenderer.title",_.D(F,ByP).title)};
_.N.onYtUpdateDescriptionAction=function(F){if(F=_.D(F,_.xIO)){var W,E=!((W=this.videoSecondaryInfoRenderer)==null||!W.attributedDescription);F.isEmpty||!F.description&&!F.attributedDescription?(this.set("videoSecondaryInfoRenderer.attributedDescription",null),this.set("videoSecondaryInfoRenderer.description",null)):F.attributedDescription?this.set("videoSecondaryInfoRenderer.attributedDescription",F.attributedDescription):F.description&&(E?this.set("videoSecondaryInfoRenderer.attributedDescription",
_.qr(F.description)):this.set("videoSecondaryInfoRenderer.description",F.description))}};
_.N.onYtDarkModeToggledAction=function(F){this.isDark=F};
_.N.registerPanel=function(){if(!_.c("kevlar_watch_metadata_ep_killswitch")&&this.hasInlineStructuredDescription){var F=_.c("web_watch_imax_theater_mode")&&this.isTheaterMode;F=_.c("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||F;var W=_.WZ().resolve(_.sL);W&&!F&&W.registerPanel("engagement-panel-structured-description",this)}};
_.N.resetDescriptionState=function(){this.useFadedScrimDescription&&(this.descriptionCollapsed=!0)};
_.N.showPanel=function(F){this.expandDescription();var W=this.useFadedScrimDescription?this.fadedStructuredDescriptionContentRendererElement:this.structuredDescriptionContentRendererElement;W.resize();var E,h=F==null?void 0:(E=F.sectionListEngagementPanelExtras)==null?void 0:E.scrollToItemSectionIdentifier;h?_.P0.addJob(function(){W==null||W.scrollToSection(h)},8):this.scrollToTopOfContainer()};
_.N.isVisible=function(){return!this.descriptionCollapsed};
_.N.getReloadContinuation=function(){};
_.N.hidePanel=function(){};
_.N.updatePanel=function(){};
_.Sn.Object.defineProperties(L0.prototype,{productShelf:{configurable:!0,enumerable:!0,get:function(){var F;if((F=this.structuredDescriptionContentRenderer)!=null&&F.items){var W;F=_.U((W=this.structuredDescriptionContentRenderer)==null?void 0:W.items);for(W=F.next();!W.done;W=F.next())if(W=_.D(W.value,_.se_))return W}}},
shouldHideBadges:{configurable:!0,enumerable:!0,get:function(){var F;return!((F=this.videoPrimaryInfoRenderer)==null?0:F.badges)||this.metadataBadgesInDescription}},
shouldShowProductShelf:{configurable:!0,enumerable:!0,get:function(){return!(!this.productShelf||this.descriptionCollapsed)}},
largerItemWrap:{configurable:!0,enumerable:!0,get:function(){var F,W,E;return!!((F=this.videoSecondaryInfoRenderer)==null?0:(W=F.owner)==null?0:(E=W.videoOwnerRenderer)==null?0:E.membershipButton)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){if(this.skinnyMode&&!_.c("swatchie_sd_new_line_strip_ks")){var F,W;if((F=this.videoSecondaryInfoRenderer)==null?0:(W=F.attributedDescription)==null?0:W.content){var E,h;return(h=this.stripAttributedDescription((E=this.videoSecondaryInfoRenderer)==null?void 0:E.attributedDescription))!=null?h:{runs:[]}}}var d,V,R,M;return(M=(R=(d=this.videoSecondaryInfoRenderer)==null?void 0:d.description)!=null?R:(V=this.videoSecondaryInfoRenderer)==null?
void 0:V.attributedDescription)!=null?M:{runs:[]}}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var F,W;return(W=(F=this.videoSecondaryInfoRenderer)==null?void 0:F.headerRuns)!=null?W:[]}},
hasTeaser:{configurable:!0,enumerable:!0,get:function(){var F;return!((F=this.commentsEntryPointHeaderRenderer)==null||!F.commentsEntryPointHeaderRenderer)}},
hasTeaserCarousel:{configurable:!0,enumerable:!0,get:function(){var F;return!((F=this.videoMetadataCarousel)==null||!F.videoMetadataCarouselViewModel)}},
descriptionMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.skinnyMode?_.dV("swatchie_desc_lines",3):this.hasTeaserCarousel?_.dV("teaser_carousel_desc_lines",2):3}},
collapsibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){var F,W,E=Object.assign({},(F=this.videoSecondaryInfoRenderer)==null?void 0:(W=F.metadataRowContainer)==null?void 0:W.metadataRowContainerRenderer);if(E&&E.rows&&E.collapsedItemCount!==void 0&&!(E.rows.length<=E.collapsedItemCount))return E.rows=E.rows.slice(E.collapsedItemCount),E.collapsedItemCount=0,E}},
alwaysVisibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){if(!this.suppressTopLevelMetadataRows){var F,W,E=Object.assign({},(F=this.videoSecondaryInfoRenderer)==null?void 0:(W=F.metadataRowContainer)==null?void 0:W.metadataRowContainerRenderer);if(E&&E.rows&&E.collapsedItemCount!==void 0)return E.rows=E.rows.slice(0,E.collapsedItemCount),E.collapsedItemCount=E.rows.length,E}}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){var F,W;return!!((F=this.structuredDescriptionContentRenderer)==null?0:(W=F.items)==null?0:W.length)}},
showInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!this.useFadedScrimDescription&&this.hasInlineStructuredDescription&&!this.descriptionCollapsed}},
descriptionExpandCommand:{configurable:!0,enumerable:!0,get:function(){if(this.structuredDescriptionContentRenderer)return null;var F;return(F=this.videoSecondaryInfoRenderer)==null?void 0:F.showMoreCommand}},
videoOwnerCommand:{configurable:!0,enumerable:!0,get:function(){var F,W,E;return((F=this.videoSecondaryInfoRenderer)==null?0:(W=F.owner)==null?0:(E=W.videoOwnerRenderer)==null?0:E.navigationEndpoint)?this.videoSecondaryInfoRenderer.owner.videoOwnerRenderer.navigationEndpoint:null}},
flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var F,W,E,h;return!!((F=this.videoPrimaryInfoRenderer)==null?0:(W=F.videoActions)==null?0:(E=W.menuRenderer)==null?0:(h=E.flexibleItems)==null?0:h.length)}},
showAttributedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&_.yd(this.descriptionText)}},
showFormattedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&!_.yd(this.descriptionText)}},
showFadedStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.useFadedScrimDescription||!this.hasInlineStructuredDescription||this.descriptionCollapsed)}},
videoTitle:{configurable:!0,enumerable:!0,get:function(){var F=this;if(_.c("web_title_hashtag_grey_delinkified")){var W,E=_.xd.unsafeClone((W=this.videoPrimaryInfoRenderer)==null?void 0:W.title);(W=E==null?void 0:E.runs)&&W.forEach(function(h){if(h==null?0:h.navigationEndpoint)h.textColor=4284506208,F.isDark&&(h.textColor=4289374890)});
return E}return(E=this.videoPrimaryInfoRenderer)==null?void 0:E.title}},
noEndpoints:{configurable:!0,enumerable:!0,get:function(){return _.c("web_title_hashtag_black_delinkified")||_.c("web_title_hashtag_grey_delinkified")}}});
L0.prototype.resetDescriptionState=L0.prototype.resetDescriptionState;L0.prototype.registerPanel=L0.prototype.registerPanel;L0.prototype.onYtExpanderLessTapped=L0.prototype.onYtExpanderLessTapped;L0.prototype.onYtExpanderMoreTapped=L0.prototype.onYtExpanderMoreTapped;L0.prototype.onRenderStamperFinished=L0.prototype.onRenderStamperFinished;L0.prototype.onYtTextInlineExpanderExpandedChanged=L0.prototype.onYtTextInlineExpanderExpandedChanged;L0.prototype.onYtTextInlineExpanderCollapseClicked=L0.prototype.onYtTextInlineExpanderCollapseClicked;
L0.prototype.onYtTextInlineExpanderExpandClicked=L0.prototype.onYtTextInlineExpanderExpandClicked;L0.prototype.moveActionsElement=L0.prototype.moveActionsElement;L0.prototype.updateShouldForceIconOnly=L0.prototype.updateShouldForceIconOnly;L0.prototype.updateTopLevelIconsOnly=L0.prototype.updateTopLevelIconsOnly;L0.prototype.structuredDescriptionContentRendererChanged=L0.prototype.structuredDescriptionContentRendererChanged;L0.prototype.videoSecondaryInfoRendererChanged=L0.prototype.videoSecondaryInfoRendererChanged;
L0.prototype.videoPrimaryInfoRendererChanged=L0.prototype.videoPrimaryInfoRendererChanged;L0.prototype.maybeUpdateActionsOnSeparateLine=L0.prototype.maybeUpdateActionsOnSeparateLine;L0.prototype.updateOwnerAndDescriptionPosition=L0.prototype.updateOwnerAndDescriptionPosition;_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],L0.prototype,"ytActionHandlerBehavior",void 0);_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],L0.prototype,"ytComponentBehavior",void 0);
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],L0.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],L0.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.am),_.Y("design:type",Object)],L0.prototype,"ytdReduxBehavior",void 0);_.T([_.gQ("#above-the-fold"),_.Y("design:type",HTMLElement)],L0.prototype,"aboveTheFoldContainer",void 0);_.T([_.gQ("#menu ytd-menu-renderer"),_.Y("design:type",Object)],L0.prototype,"menu",void 0);
_.T([_.gQ("#description-inline-expander"),_.Y("design:type",Object)],L0.prototype,"descriptionInlineExpander",void 0);_.T([_.gQ("#faded-structured-description"),_.Y("design:type",Object)],L0.prototype,"fadedStructuredDescriptionContentRendererElement",void 0);_.T([_.gQ("#structured-description"),_.Y("design:type",Object)],L0.prototype,"structuredDescriptionContentRendererElement",void 0);_.T([_.gQ("#title"),_.Y("design:type",HTMLElement)],L0.prototype,"titleElement",void 0);
_.T([_.gQ("#description"),_.Y("design:type",HTMLElement)],L0.prototype,"descriptionElement",void 0);_.T([_.gQ("#description-interaction"),_.Y("design:type",Object)],L0.prototype,"descriptionInteraction",void 0);_.T([_.gQ("#owner"),_.Y("design:type",HTMLElement)],L0.prototype,"ownerElement",void 0);_.T([_.gQ("#top-row"),_.Y("design:type",HTMLElement)],L0.prototype,"topRowElement",void 0);_.T([_.gQ("#bottom-row"),_.Y("design:type",HTMLElement)],L0.prototype,"bottomRowElement",void 0);
_.T([_.gQ("#actions"),_.Y("design:type",HTMLElement)],L0.prototype,"actionsElement",void 0);_.T([_.gQ("#bottom-actions"),_.Y("design:type",HTMLElement)],L0.prototype,"bottomActionsElement",void 0);_.T([_.gQ("#ytd-watch-info-text"),_.Y("design:type",Object)],L0.prototype,"watchInfoTextElement",void 0);_.T([_.O(),_.Y("design:type",Object)],L0.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Object)],L0.prototype,"videoPrimaryInfoRenderer",void 0);
_.T([_.O(),_.Y("design:type",Object)],L0.prototype,"videoSecondaryInfoRenderer",void 0);_.T([_.O(),_.Y("design:type",Object)],L0.prototype,"commentsEntryPointHeaderRenderer",void 0);_.T([_.O(),_.Y("design:type",Object)],L0.prototype,"videoMetadataCarousel",void 0);_.T([_.O(),_.Y("design:type",Object)],L0.prototype,"structuredDescriptionContentRenderer",void 0);_.T([_.O(),_.Y("design:type",Object)],L0.prototype,"videoSummary",void 0);
_.T([_.O(),_.Y("design:type",Object)],L0.prototype,"merchShelf",void 0);_.T([_.O(),_.Y("design:type",Object)],L0.prototype,"infoPanelBelowMetadata",void 0);_.T([_.a("structuredDescriptionContentRenderer"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],L0.prototype,"productShelf",null);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],L0.prototype,"metadataBadgesInDescription",void 0);
_.T([_.a("videoPrimaryInfoRenderer"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],L0.prototype,"shouldHideBadges",null);_.T([_.a("productShelf","descriptionCollapsed"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],L0.prototype,"shouldShowProductShelf",null);_.T([_.O(),_.Y("design:type",Boolean)],L0.prototype,"isWatchFlexy",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],L0.prototype,"descriptionCollapsed",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],L0.prototype,"useFadedScrimDescription",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],L0.prototype,"skinnyMode",void 0);_.T([_.O({reflectToAttribute:!0}),_.a("videoSecondaryInfoRenderer"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],L0.prototype,"largerItemWrap",null);_.T([_.O(),_.Y("design:type",Object)],L0.prototype,"playlist",void 0);_.T([_.O(),_.Y("design:type",Object)],L0.prototype,"clarifyBox",void 0);
_.T([_.O(),_.Y("design:type",Object)],L0.prototype,"playerAds",void 0);_.T([_.O(),_.Y("design:type",Boolean)],L0.prototype,"isDark",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],L0.prototype,"actionsOnSeparateLine",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],L0.prototype,"disableVideoOwnerOnTap",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],L0.prototype,"swatcherooDelayLoad",void 0);
_.T([_.O(),_.Y("design:type",Boolean)],L0.prototype,"suppressTopLevelMetadataRows",void 0);_.T([_.O(),_.Y("design:type",Object)],L0.prototype,"primaryMenuWidth",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],L0.prototype,"videoId",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],L0.prototype,"titleHeadlineXs",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],L0.prototype,"titleHeadlineS",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],L0.prototype,"titleHeadlineM",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],L0.prototype,"titleHashtagBlackLinkified",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],L0.prototype,"titleHashtagGreyLinkified",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],L0.prototype,"actionButtonsUpdateOwnerWidth",void 0);
_.T([_.O(),_.Y("design:type",Object)],L0.prototype,"shouldForceIconOnly",void 0);_.T([_.Cz("skinnyMode"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],L0.prototype,"updateOwnerAndDescriptionPosition",null);_.T([_.Cz("skinnyMode"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],L0.prototype,"maybeUpdateActionsOnSeparateLine",null);
_.T([_.a("videoSecondaryInfoRenderer.description","videoSecondaryInfoRenderer.attributedDescription"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],L0.prototype,"descriptionText",null);_.T([_.a("videoSecondaryInfoRenderer.headerRuns"),_.Y("design:type",Array),_.Y("design:paramtypes",[])],L0.prototype,"headerRuns",null);_.T([_.O({value:!1}),_.a("commentsEntryPointHeaderRenderer"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],L0.prototype,"hasTeaser",null);
_.T([_.O({value:!1,reflectToAttribute:!0}),_.a("videoMetadataCarousel"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],L0.prototype,"hasTeaserCarousel",null);_.T([_.O({value:3}),_.a("skinnyMode","playerAds","clarifyBox","hasTeaserCarousel"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],L0.prototype,"descriptionMaxLines",null);_.T([_.a("videoSecondaryInfoRenderer.metadataRowContainer"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],L0.prototype,"collapsibleMetadataRows",null);
_.T([_.a("videoSecondaryInfoRenderer.metadataRowContainer","suppressTopLevelMetadataRows"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],L0.prototype,"alwaysVisibleMetadataRows",null);_.T([_.a("videoSecondaryInfoRenderer","structuredDescriptionContentRenderer"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],L0.prototype,"hasInlineStructuredDescription",null);
_.T([_.a("useFadedScrimDescription","hasInlineStructuredDescription","descriptionCollapsed"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],L0.prototype,"showInlineStructuredDescription",null);_.T([_.a("data","hasInlineStructuredDescription","videoSecondaryInfoRenderer"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],L0.prototype,"descriptionExpandCommand",null);
_.T([_.a("videoSecondaryInfoRenderer.owner"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],L0.prototype,"videoOwnerCommand",null);_.T([_.O({reflectToAttribute:!0}),_.a("videoPrimaryInfoRenderer.videoActions"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],L0.prototype,"flexMenuEnabled",null);_.T([_.O({selector:_.Lw,reflectToAttribute:!0}),_.Y("design:type",Object)],L0.prototype,"isFullscreen",void 0);
_.T([_.O({selector:_.H7,reflectToAttribute:!0}),_.Y("design:type",Object)],L0.prototype,"isTheaterMode",void 0);_.T([_.a("descriptionText","useFadedScrimDescription"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],L0.prototype,"showAttributedStringDescription",null);_.T([_.a("descriptionText","useFadedScrimDescription"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],L0.prototype,"showFormattedStringDescription",null);
_.T([_.a("useFadedScrimDescription","descriptionCollapsed","hasInlineStructuredDescription"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],L0.prototype,"showFadedStructuredDescription",null);_.T([_.Cz("videoPrimaryInfoRenderer"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],L0.prototype,"videoPrimaryInfoRendererChanged",null);_.T([_.a("videoPrimaryInfoRenderer.title"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],L0.prototype,"videoTitle",null);
_.T([_.a("videoPrimaryInfoRenderer"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],L0.prototype,"noEndpoints",null);_.T([_.Cz("videoSecondaryInfoRenderer"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],L0.prototype,"videoSecondaryInfoRendererChanged",null);
_.T([_.ea("videoPrimaryInfoRenderer","structuredDescriptionContentRenderer"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],L0.prototype,"structuredDescriptionContentRendererChanged",null);_.T([_.ea("skinnyMode"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],L0.prototype,"updateTopLevelIconsOnly",null);
_.T([_.ea("skinnyMode"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],L0.prototype,"updateShouldForceIconOnly",null);_.T([_.ea("skinnyMode"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],L0.prototype,"moveActionsElement",null);_.T([_.R4("yt-text-inline-expander-expand-clicked"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],L0.prototype,"onYtTextInlineExpanderExpandClicked",null);
_.T([_.R4("yt-text-inline-expander-collapse-clicked"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],L0.prototype,"onYtTextInlineExpanderCollapseClicked",null);_.T([_.R4("yt-text-inline-expander-expanded-changed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],L0.prototype,"onYtTextInlineExpanderExpandedChanged",null);
_.T([_.R4("yt-rendererstamper-finished"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],L0.prototype,"onRenderStamperFinished",null);_.T([_.R4("yt-expander-more-tapped"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],L0.prototype,"onYtExpanderMoreTapped",null);_.T([_.R4("yt-expander-less-tapped"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],L0.prototype,"onYtExpanderLessTapped",null);
_.T([_.ea("videoPrimaryInfoRenderer","hasInlineStructuredDescription","isFullscreen"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],L0.prototype,"registerPanel",null);_.T([_.ea("videoSecondaryInfoRenderer"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],L0.prototype,"resetDescriptionState",null);L0=_.T([_.y({disableElementRegistration:!0,is:"ytd-watch-metadata"})],L0);
_.r(L0,"ytd-watch-metadata",function(){if(AKw!==void 0)return AKw;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-metadata--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="above-the-fold" class="style-scope ytd-watch-metadata">\n  <div id="title" on-click="titleOnTap" class="style-scope ytd-watch-metadata">\n    <ytd-badge-supported-renderer hidden="[[!videoPrimaryInfoRenderer.topStandaloneBadge]]" top-standalone-badge="[[videoPrimaryInfoRenderer.topStandaloneBadge]]" class="style-scope ytd-watch-metadata">\n    </ytd-badge-supported-renderer>\n    <h1 class="style-scope ytd-watch-metadata">\n      <yt-formatted-string force-default-style="" no-endpoints="[[noEndpoints]]" text="[[videoTitle]]" title="[[getSimpleString(videoPrimaryInfoRenderer.title)]]" class="style-scope ytd-watch-metadata">\n      </yt-formatted-string>\n    </h1>\n    <ytd-badge-supported-renderer badges="[[videoPrimaryInfoRenderer.badges]]" hidden="[[shouldHideBadges]]" class="style-scope ytd-watch-metadata">\n    </ytd-badge-supported-renderer>\n  </div>\n\n  <div id="top-row" class="style-scope ytd-watch-metadata">\n    <div id="owner" class="item style-scope ytd-watch-metadata" hidden="[[!videoSecondaryInfoRenderer.owner.videoOwnerRenderer]]" on-click="videoOwnerOnTap">\n      <ytd-video-owner-renderer data="[[videoSecondaryInfoRenderer.owner.videoOwnerRenderer]]" subscribe-key="[[videoSecondaryInfoRenderer.subscribeButton.subscribeButtonRenderer.subscribedEntityKey]]" watch-metadata-refresh="" class="style-scope ytd-watch-metadata">\n      </ytd-video-owner-renderer>\n      <div id="subscribe-button" class="style-scope ytd-watch-metadata"></div>\n    </div>\n    <div id="actions" class="item style-scope ytd-watch-metadata">\n      <div id="actions-inner" class="style-scope ytd-watch-metadata">\n        <div id="menu" class="style-scope ytd-watch-metadata"></div>\n      </div>\n    </div>\n  </div>\n\n  <div id="middle-row" class="style-scope ytd-watch-metadata"></div>\n\n  <div id="bottom-row" class="style-scope ytd-watch-metadata">\n    <div id="description" class="item style-scope ytd-watch-metadata" on-down="onDescriptionDown" on-up="onDescriptionUp" on-click="onDescriptionClick">\n      <div id="description-inner" class="style-scope ytd-watch-metadata">\n        <ytd-watch-info-text id="ytd-watch-info-text" detailed="[[!descriptionCollapsed]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" class="style-scope ytd-watch-metadata"></ytd-watch-info-text>\n        \n        <template is="dom-if" if="[[shouldShowProductShelf]]" restamp="" id="product-shelf" class="style-scope ytd-watch-metadata">\n          <ytd-merch-shelf-renderer data="[[productShelf]]" class="style-scope ytd-watch-metadata">\n          </ytd-merch-shelf-renderer>\n        </template>\n        <yt-formatted-string id="description-placeholder" hidden="[[!videoSecondaryInfoRenderer.descriptionPlaceholder]]" text="[[videoSecondaryInfoRenderer.descriptionPlaceholder]]" class="style-scope ytd-watch-metadata">\n        </yt-formatted-string>\n        <div id="description-text-container" hidden="[[!useFadedScrimDescription]]" class="style-scope ytd-watch-metadata">\n          <yt-attributed-string id="attributed-description-text" data="[[descriptionText]]" disable-upgrade$="[[!showAttributedStringDescription]]" header-runs="[[headerRuns]]" hidden="[[!showAttributedStringDescription]]" user-input="" class="style-scope ytd-watch-metadata">\n          </yt-attributed-string>\n          \n          <yt-formatted-string id="formatted-description-text" disable-upgrade$="[[!showFormattedStringDescription]]" hidden="[[!showFormattedStringDescription]]" split-lines="[[showFormattedStringDescription]]" text="[[descriptionText]]" class="style-scope ytd-watch-metadata">\n          </yt-formatted-string>\n          <ytd-structured-description-content-renderer id="faded-structured-description" data="[[structuredDescriptionContentRenderer]]" disable-upgrade$="[[!showFadedStructuredDescription]]" hidden="[[!showFadedStructuredDescription]]" inline-structured-description="" video-summary="[[videoSummary]]" class="style-scope ytd-watch-metadata">\n          </ytd-structured-description-content-renderer>\n          <ytd-metadata-row-container-renderer data="[[collapsibleMetadataRows]]" disable-upgrade$="[[!collapsibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n          </ytd-metadata-row-container-renderer>\n          <tp-yt-paper-button id="collapse-button" class="button style-scope ytd-watch-metadata" hidden="[[descriptionCollapsed]]" on-click="handleCollapseDescriptionClick">[[getSimpleString(videoSecondaryInfoRenderer.showLessText)]]</tp-yt-paper-button>\n        </div>\n        <ytd-text-inline-expander id="description-inline-expander" always-show-expand-button="" collapse-label="[[getSimpleString(videoSecondaryInfoRenderer.showLessText)]]" disable-upgrade$="[[useFadedScrimDescription]]" expand-command="[[descriptionExpandCommand]]" expand-label="[[getSimpleString(videoSecondaryInfoRenderer.showMoreText)]]" header-runs="[[headerRuns]]" hidden="[[useFadedScrimDescription]]" max-lines="[[descriptionMaxLines]]" text="[[descriptionText]]" class="style-scope ytd-watch-metadata">\n          <div slot="extra-content" class="style-scope ytd-watch-metadata">\n            <ytd-structured-description-content-renderer id="structured-description" data="[[structuredDescriptionContentRenderer]]" hidden="[[!showInlineStructuredDescription]]" inline-structured-description="" merch-shelf="[[merchShelf]]" video-summary="[[videoSummary]]" class="style-scope ytd-watch-metadata">\n            </ytd-structured-description-content-renderer>\n            <ytd-metadata-row-container-renderer data="[[collapsibleMetadataRows]]" disable-upgrade$="[[!collapsibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n            </ytd-metadata-row-container-renderer>\n          </div>\n        </ytd-text-inline-expander>\n      </div>\n      <yt-interaction id="description-interaction" class="rounded-large style-scope ytd-watch-metadata" hidden="[[skinnyMode]]"></yt-interaction>\n    </div>\n    <div id="bottom-actions" class="style-scope ytd-watch-metadata"></div>\n    <div id="comment-teaser" class="item style-scope ytd-watch-metadata" hidden="[[!hasTeaser]]"></div>\n    <div id="teaser-carousel" class="item style-scope ytd-watch-metadata" hidden="[[!hasTeaserCarousel]]"></div>\n  </div>\n</div>\n\n<ytd-metadata-row-container-renderer data="[[alwaysVisibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n</ytd-metadata-row-container-renderer>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return AKw=F},{mode:2});_.jwx=function(F){_.xj.call(this);this.JSC$20198_watchApi=F;this.temporaryTheaterMode=this.autonavCancelledBySignal=!1;aF8(this);fFF(this);OmK(this);bm6(this);lFx(this);n1T(this);yKO(this)};
_.k(_.jwx,_.xj);var OmK=function(F){var W=function(){_.c("kevlar_is_pupi_enabled")||q$(F)};
F.JSC$20198_watchApi.getRoot().addEventListener("yt-player-updated",W);F.addOnDisposeCallback(function(){F.JSC$20198_watchApi.getRoot().removeEventListener("yt-player-updated",W)})},lFx=function(F){if(_.c("kevlar_endscreen_auto_theater_mode")){var W=F.JSC$20198_watchApi.subscribeToActiveChanged(function(){imw(F)},!1);
F.addOnDisposeCallback(W)}},aF8=function(F){var W,E,h,d,V;
_.e(function(R){if(R.nextAddress==1)return _.Q(R,F.JSC$20198_watchApi.playerApi,2);W=R.yieldResult;E=function(M){M=!!M;$k(F)&&(M=M?2:1,_.EX.getInstance().setState(M,!0,!1))};
h=function(M){M&&_.TiK(_.uC().getState())&&(_.dW(F.JSC$20198_watchApi.getRoot(),"yt-toggle-theater-mode",[!0,!1]),F.temporaryTheaterMode=!0)};
d=function(M){_.c("kevlar_player_update_autonav_on_new_data")&&M.type==="newdata"&&(_.c("kevlar_is_pupi_enabled")||q$(F))};
V=function(M){F.onPlayerStateChange(M)};
_.c("kevlar_endscreen_auto_theater_mode")&&W.addEventListener("onAutonavCancelled",h);W.addEventListener("onAutonavChangeRequest",E);W.addEventListener("onVideoDataChange",d);W.addEventListener("onStateChange",V);F.addOnDisposeCallback(function(){W.removeEventListener("onAutonavChangeRequest",E);W.removeEventListener("onVideoDataChange",d);W.removeEventListener("onStateChange",V);_.c("kevlar_endscreen_auto_theater_mode")&&W.removeEventListener("onAutonavCancelled",h)});
_.gG(R)})},fFF=function(F){F.JSC$20198_watchApi.registerActionHandler("yt-signal-action-cancel-autonav",function(){F.autonavCancelledBySignal=!0;
_.c("kevlar_is_pupi_enabled")||q$(F)});
F.JSC$20198_watchApi.registerActionHandler("yt-autonav-state-changed-action",function(W,E,h){E&&q$(F,h)});
F.JSC$20198_watchApi.registerActionHandler("yt-enable-autoplay-command",function(){$k(F)&&_.EX.getInstance().setState(2,!0,!0)});
F.JSC$20198_watchApi.registerActionHandler("yt-disable-autoplay-command",function(){$k(F)&&_.EX.getInstance().setState(1,!0,!0)});
F.addOnDisposeCallback(function(){F.JSC$20198_watchApi.unregisterActionHandler("yt-signal-action-cancel-autonav");F.JSC$20198_watchApi.unregisterActionHandler("yt-autonav-state-changed-action");F.JSC$20198_watchApi.unregisterActionHandler("yt-enable-autoplay-command");F.JSC$20198_watchApi.unregisterActionHandler("yt-disable-autoplay-command")})},bm6=function(F){var W=F.JSC$20198_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){yKO(F)}),E=F.JSC$20198_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",
function(){n1T(F)});
F.addOnDisposeCallback(function(){F.JSC$20198_watchApi.unsubscribeByKey(W);F.JSC$20198_watchApi.unsubscribeByKey(E)})},yKO=function(F){F.autonavCancelledBySignal=!1;
_.c("kevlar_is_pupi_enabled")||q$(F)},n1T=function(F){var W=F.JSC$20198_watchApi.getWatchNextResponse(),E,h;
var d=(W=(h=_.D(W==null?void 0:(d=W.playerOverlays)==null?void 0:(E=d.playerOverlayRenderer)==null?void 0:E.autonavToggle,_.A5_))==null?void 0:h.enabled)?2:1;_.c("kevlar_is_pupi_enabled")?_.EX.getInstance().setState(d,!1,!1):q$(F);_.c("web_persist_server_autonav_state_on_client")&&typeof W==="boolean"&&_.AJr(d===2)},$k=function(F){if(F.autonavCancelledBySignal)return!1;
var W,E,h,d;return!!((W=F.JSC$20198_watchApi.getWatchNextResponse())==null?0:(E=W.contents)==null?0:(h=E.twoColumnWatchNextResults)==null?0:(d=h.autoplay)==null?0:d.autoplay)};
_.jwx.prototype.onPlayerStateChange=function(F){if(F===0){F=!_.EX.getInstance().isAutoplaySetExplicitly();var W=this.JSC$20198_watchApi.getWatchNextResponse(),E,h,d,V;W=_.D(W==null?void 0:(E=W.contents)==null?void 0:(h=E.twoColumnWatchNextResults)==null?void 0:(d=h.autoplay)==null?void 0:(V=d.autoplay)==null?void 0:V.autoplayExplicitChoiceDialogRenderer,_.pDM);$k(this)&&F&&W&&_.Ru.instance.resolveCommand({openPopupAction:{popup:{confirmDialogRenderer:W},popupType:"DIALOG"}})}else imw(this)};
var imw=function(F){F.temporaryTheaterMode&&(F.temporaryTheaterMode=!1,_.dW(F.JSC$20198_watchApi.getRoot(),"yt-toggle-theater-mode",[!1,!1]))},q$=function(F,W){W=W===void 0?!1:W;
var E;_.e(function(h){if(h.nextAddress==1)return _.Q(h,F.JSC$20198_watchApi.playerApi,2);E=h.yieldResult;$k(F)?E.setAutonavState(_.EX.getInstance().getState(),W):E.setAutonavState(1,W);_.gG(h)})};var rKw={PLAYLIST:"PLAYLIST",ERROR_SCREEN:"ERROR_SCREEN",PRIMARY_INFO:"PRIMARY_INFO",SECONDARY_INFO:"SECONDARY_INFO",CLARIFICATION:"CLARIFICATION",INFO_PANEL_BELOW_METADATA:"INFO_PANEL_BELOW_METADATA",RICH_METADATA:"RICH_METADATA",COMMENTS_ENTRY_POINT_HEADER:"COMMENTS_ENTRY_POINT_HEADER",MERCH_SHELF:"MERCH_SHELF",MERCH_SHELF_IN_SD:"MERCH_SHELF_IN_SD",DONATION_SHELF:"DONATION_SHELF",OFFER_MODULE:"OFFER_MODULE",TICKET_SHELF:"TICKET_SHELF",LIMITED_STATE:"LIMITED_STATE",ALERTS:"ALERTS",SINGLE_COLUMN_CONTENTS:"SINGLE_COLUMN_CONTENTS",
COMMENTS:"COMMENTS",ENGAGEMENT_PANELS:"ENGAGEMENT_PANELS",INLINE_ENGAGEMENT_PANELS:"INLINE_ENGAGEMENT_PANELS",RICH_GRID_RENDERER:"RICH_GRID_RENDERER",WATCH_NEXT_SECONDARY_RESULTS:"WATCH_NEXT_SECONDARY_RESULTS",EXPANDABLE_METADATA:"EXPANDABLE_METADATA",LIVE_CHAT:"LIVE_CHAT",VIDEO_METADATA_CAROUSEL:"VIDEO_METADATA_CAROUSEL"};_.o1x=function(F){_.xj.call(this);var W=this;this.JSC$20203_watchApi=F;var E=this.JSC$20203_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){TP$(W)});
this.addOnDisposeCallback(function(){W.JSC$20203_watchApi.unsubscribeByKey(E)});
TP$(this)};
_.k(_.o1x,_.xj);var TP$=function(F){var W=F.JSC$20203_watchApi.getPlayerResponse(),E=F.JSC$20203_watchApi.getWatchNextResponse();if(!_.Qww(W==null?void 0:W.playabilityStatus,E==null?void 0:E.playerOverlays)){var h;var d=W==null?void 0:(h=W.playabilityStatus)==null?void 0:h.errorScreen}F.JSC$20203_watchApi.provideRenderingData("ERROR_SCREEN",d)};var GEK=_.GK(function(F){var W=F.data;F=_.tb(function(){var E=W().onTap;E&&_.WZ().resolve(_.EJ).resolveCommand(E)});
return _.z("yt-player-overlay-video-details-renderer",{class:"ytPlayerOverlayVideoDetailsRendererHost","on:click":F},_.z("div",{class:"ytPlayerOverlayVideoDetailsRendererTitle"},_.z(_.Ab,{text:function(){return W().title}})),_.z("div",{class:"ytPlayerOverlayVideoDetailsRendererSubtitle"},_.z(_.a6,{data:function(){return W().channelAvatar}},{avatarViewModel:_.fI}),_.z(_.Ab,{text:function(){return W().subtitle}})))},"aj");var Y1$=_.GK(function(F){return _.z("yt-player-quick-action-buttons",{class:_.ec("ytPlayerQuickActionButtonsHost")},_.z(_.xF,{each:F.data},function(W){return _.z(_.a6,{data:function(){return W}},{buttonViewModel:_.rk,
likeButtonViewModel:function(E){return _.z(_.H3,{data:E.data,disableIconAnimation:!0})},
dislikeButtonViewModel:_.XJ})}))},"bj");_.u$w=function(F){_.xj.call(this);var W=this;this.JSC$20206_watchApi=F;F=_.U(_.g$({},void 0,"ufFdVc"));this.quickActionsViewModel=F.next().value;this.setQuickActionsViewModel=F.next().value;F=_.U(_.g$({},void 0,"atbdp"));this.playerOverlayVideoDetailsRenderer=F.next().value;this.setPlayerOverlayVideoDetailsRenderer=F.next().value;var E=this.JSC$20206_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){w8O(W)});
this.addOnDisposeCallback(function(){W.JSC$20206_watchApi.unsubscribeByKey(E)});
w8O(this)};
_.k(_.u$w,_.xj);
var w8O=function(F){var W,E,h,d,V,R,M,g,t,C,B,I,x,A;_.e(function(X){if(X.nextAddress==1)return _.Q(X,F.JSC$20206_watchApi.playerApi,2);W=X.yieldResult;E=F.JSC$20206_watchApi.getWatchNextResponse();V=(h=E)==null?void 0:(d=h.playerOverlays)==null?void 0:d.playerOverlayRenderer;M=_.D((R=V)==null?void 0:R.fullscreenQuickActionsBar,_.Pn_);(t=(g=F).setQuickActionsViewModel)==null||t.call(g,M||{});M&&S16(F,W);I=(C=V)==null?void 0:(B=C.videoDetails)==null?void 0:B.playerOverlayVideoDetailsRenderer;(A=(x=
F).setPlayerOverlayVideoDetailsRenderer)==null||A.call(x,I||{});I&&p8q(F,W);_.gG(X)})},S16=function(F,W){if(!F.quickActionButtonsContainer){F.quickActionButtonsContainer=document.createElement("div");
W.setFullscreenQuickActions(F.quickActionButtonsContainer);var E=function(){return F.quickActionsViewModel().quickActionButtons||[]},h=_.qO(F.quickActionButtonsContainer,function(){return _.z(Y1$,{data:E})});
F.addOnDisposeCallback(function(){W.setFullscreenQuickActions(void 0);h()})}},p8q=function(F,W){if(!F.playerOverlayVideoDetailsRendererContainer){F.playerOverlayVideoDetailsRendererContainer=document.createElement("div");
W.setPlayerOverlayVideoDetailsRenderer(F.playerOverlayVideoDetailsRendererContainer);var E=_.qO(F.playerOverlayVideoDetailsRendererContainer,function(){return _.z(GEK,{data:F.playerOverlayVideoDetailsRenderer})});
F.addOnDisposeCallback(function(){W.setPlayerOverlayVideoDetailsRenderer(void 0);E()})}};_.Z8=function(F){_.xj.call(this);var W=this;this.JSC$20211_watchApi=F;this.JSC$20211_miniplayerActive=this.isFullscreen=this.shouldShowFullerscreenEdu=this.fullerscreenEduButtonClickedThisPlayback=this.fullerscreenEduButtonShownThisPlayback=!1;F=_.kQ(_.uC(),_.Lw,function(E){mNw(W,E)});
this.addOnDisposeCallback(F);F=_.kQ(_.uC(),_.qP,function(E){W.onWatchScroll(E)});
this.addOnDisposeCallback(F);_.c("kevlar_watch_while_v2")&&(F=_.kQ(_.uC(),_.Pz,function(E){KtK(W,E)}),this.addOnDisposeCallback(F));
Fa6(this);Waq(this);EvO();this.onWatchScroll(_.qP(_.uC().getState()));_.l0("START_IN_FULL_WINDOW_MODE")&&this.JSC$20211_watchApi.dispatchEvent("yt-set-fullerscreen-styles")};
_.k(_.Z8,_.xj);var Fa6=function(F){F.JSC$20211_watchApi.registerActionHandler("yt-fullscreen-change-action",function(W){var E=F.JSC$20211_watchApi.isActive();W&&!E||_.uC().dispatch(_.dR({type:"SET_IS_WATCH_FULLSCREEN",payload:{isWatchFullscreen:!!W}}))});
F.addOnDisposeCallback(function(){F.JSC$20211_watchApi.unregisterActionHandler("yt-fullscreen-change-action")})},Waq=function(F){var W,E;
_.e(function(h){if(h.nextAddress==1)return _.Q(h,F.JSC$20211_watchApi.playerApi,2);W=h.yieldResult;E=function(){F.onFullerscreenEduClicked()};
W.addEventListener("onFullerscreenEduClicked",E);F.addOnDisposeCallback(function(){W.removeEventListener("onFullerscreenEduClicked",E)});
_.gG(h)})},mNw=function(F,W){var E;
_.e(function(h){if(h.nextAddress==1)return F.isFullscreen=!!_.Kg(),_.Q(h,F.JSC$20211_watchApi.playerApi,2);E=h.yieldResult;F.JSC$20211_miniplayerActive||E.setFauxFullscreen(F.isFullscreen);if(W&&(F.JSC$20211_watchApi.focusOnPlayer(),!F.fullerscreenEduButtonShownThisPlayback)){F.fullerscreenEduButtonShownThisPlayback=!0;var d=_.Cy("yt-fullerscreen-edu-button-shown-count")||0;_.tl("yt-fullerscreen-edu-button-shown-count",d+1,31536E3);F.updateFullerscreenEduButtonSubtleModeState()}_.gG(h)})},KtK=function(F,
W){var E;
_.e(function(h){if(h.nextAddress==1)return F.JSC$20211_miniplayerActive=W,_.Q(h,F.JSC$20211_watchApi.playerApi,2);E=h.yieldResult;E.setFauxFullscreen(!F.JSC$20211_miniplayerActive&&F.isFullscreen);_.gG(h)})};
_.Z8.prototype.onWatchScroll=function(F){var W=this,E,h;return _.e(function(d){if(d.nextAddress==1)return _.c("external_fullscreen_with_edu")?_.Q(d,W.JSC$20211_watchApi.playerApi,2):d.return();E=d.yieldResult;h=F<=0;W.shouldShowFullerscreenEdu!==h&&(W.shouldShowFullerscreenEdu=h,E.updateFullerscreenEduButtonVisibility(!W.shouldShowFullerscreenEdu));_.gG(d)})};
_.Z8.prototype.onFullerscreenEduClicked=function(){this.JSC$20211_watchApi.scrollWatchTo(186,!0);if(!this.fullerscreenEduButtonClickedThisPlayback){this.fullerscreenEduButtonClickedThisPlayback=!0;var F=_.Cy("yt-fullerscreen-edu-button-click-count")||0;_.tl("yt-fullerscreen-edu-button-click-count",F+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState()}};
_.Z8.prototype.updateFullerscreenEduButtonSubtleModeState=function(){var F=this,W,E,h,d,V,R;return _.e(function(M){if(M.nextAddress==1)return W=_.Cy("yt-fullerscreen-edu-button-click-count")||0,E=_.Cy("yt-fullerscreen-edu-button-shown-count")||0,h=_.dV("external_fullscreen_button_click_threshold"),d=_.dV("external_fullscreen_button_shown_threshold"),V=W>=h||E>=d,_.Q(M,F.JSC$20211_watchApi.playerApi,2);R=M.yieldResult;R.updateFullerscreenEduButtonSubtleModeState(V);_.gG(M)})};
_.Z8.prototype.disposeInternal=function(){_.xj.prototype.disposeInternal.call(this);var F=_.Kg();_.c("kevlar_exit_fullscreen_leaving_watch")&&F&&_.Fj(F)};
var EvO=function(){if(_.c("web_watch_add_viewport_meta_tag")){var F=document.querySelector("meta[name=viewport]"),W=document.head;W&&!F&&(F=document.createElement("meta"),F.name="viewport",F.content="width=device-width, initial-scale=1.0, viewport-fit=cover",W.appendChild(F))}};_.Xo=function(F){_.xj.call(this);var W=this;this.JSC$20215_watchApi=F;this.jobId=0;this.pendingRequestId=void 0;var E=this.JSC$20215_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){hh8(W)});
this.addOnDisposeCallback(function(){W.JSC$20215_watchApi.unsubscribeByKey(E)});
hh8(this)};
_.k(_.Xo,_.xj);var d8P=function(F){_.P0.cancelJob(F.jobId);F.pendingRequestId=void 0},hh8=function(F){d8P(F);
var W=CNK(F.JSC$20215_watchApi.getWatchNextResponse());if(W){var E=250,h,d=(h=_.D(W,_.J7U))==null?void 0:h.initialDelayMs;_.c("web_watch_updated_metadata_server_initial_delay")&&d&&(E=d);F.jobId=_.P0.addLowPriorityJob(function(){return F.fetchUpdatedMetadata(W)},E)}};
_.Xo.prototype.fetchUpdatedMetadata=function(F,W){var E=this,h,d,V,R,M,g,t,C,B,I,x,A,X,P,b;return _.e(function(l){switch(l.nextAddress){case 1:W&&(h={continuation:W});if(!_.c("web_get_updated_metadata_fantasy_panel_continuation_params")){l.jumpTo(2);break}d=_.WZ().resolve(_.sL);V="PAsports_fantasy";return _.Q(l,d.isVisible(V,!0),3);case 3:l.yieldResult&&(t=(M=(R=d).getUpdatePanelContinuationData)==null?void 0:(g=M.call(R,V))==null?void 0:g.updatePanelContinuationRequest)&&(h||(h={}),h.clientParams=
{panelContinuationParams:{panelContinuation:t}});case 2:C=_.WZ().resolve(_.sh);if(!C)return _.a_(Error("im")),l.return();B={};E.pendingRequestId=B;return _.Q(l,_.T_(C,F,h),4);case 4:I=l.yieldResult;if(B!==E.pendingRequestId)return l.return();X=(x=I)==null?void 0:(A=x.continuation)==null?void 0:A.timedContinuationData;((P=X)==null?0:P.continuation)&&((b=X)==null?0:b.timeoutMs)&&(E.jobId=_.P0.addLowPriorityJob(function(){return E.fetchUpdatedMetadata(F,X.continuation)},X.timeoutMs));
_.gG(l)}})};
_.Xo.prototype.disposeInternal=function(){_.xj.prototype.disposeInternal.call(this);d8P(this)};var NAK=_.GK(function(F){var W=_.tb(function(){var h=F.data().videoId;if(F.active())h=_.FD(h),_.WZ().resolve(_.EJ).resolveCommand(h);else{var d=F.playerApi(),V=d.getAvailableAudioTracks(),R,M,g=(R=F.sourceVideoConfig().audioTracks)==null?void 0:(M=R.find(function(t){return t.isDefaultForSource}))==null?void 0:M.id;
if(V=V.find(function(t){return t.getLanguageInfo().getId()===g}))d.setAudioTrack(V,!0),d.setCompositeParam({activeVideoId:h}),F.setActiveSourceId(h)}}),E={};
return _.z("ytw-composite-source-video-overlay",{class:_.ec("ytwCompositeSourceVideoOverlayHost",(E.ytwCompositeSourceVideoOverlayActive=F.active,E.ytwCompositeSourceVideoOverlayInteracting=F.interacting,E)),style:_.vr({left:function(){var h;return((h=F.data().topLeftCornerX)!=null?h:0)*100+"%"},
top:function(){var h;return((h=F.data().topLeftCornerY)!=null?h:0)*100+"%"},
width:function(){var h;return((h=F.data().width)!=null?h:0)*100+"%"},
height:function(){var h;return((h=F.data().height)!=null?h:0)*100+"%"}}),
"on:click":W},_.z("div",{class:"ytwCompositeSourceVideoOverlayOutline"}))},"cj");var Vw6=_.GK(function(F){var W=_.U(_.Br(function(){var M,g=(M=F.data().sources)==null?void 0:M.find(function(t){return t.isActive});
if(g)return g.videoId})),E=W.next().value,h=W.next().value;
W=_.U(_.g$(!1,void 0,"WI4BUb"));var d=W.next().value,V=W.next().value;W=_.tb(function(){V(!0)});
var R=_.tb(function(){V(!1)});
return _.z("ytw-composite-video-overlay-renderer",{class:"ytwCompositeVideoOverlayRendererHost","on:mouseover":W,"on:mouseout":R},_.z(_.v,{cond:function(){return F.data().sources},
then:function(M){return _.z(_.xF,{each:M},function(g){return _.z(NAK,{data:g,active:function(){return g.videoId===E()},
setActiveSourceId:h,interacting:d,playerApi:F.playerApi,sourceVideoConfig:function(){return BBN(F.compositeVideoConfig(),g.videoId)}})})}}))},"dj");_.ehF=function(F){_.xj.call(this);this.JSC$20231_watchApi=F;F=_.U(_.g$({},void 0,"gyAjHd"));this.compositeVideoOverlayRenderer=F.next().value;this.setCompositeVideoOverlayRenderer=F.next().value;F=_.U(_.g$({},void 0,"U5hcq"));this.compositeVideoConfig=F.next().value;this.setCompositeVideoConfig=F.next().value;U8T(this);Rh6(this)};
_.k(_.ehF,_.xj);var U8T=function(F){var W=F.JSC$20231_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){Rh6(F)});
F.addOnDisposeCallback(function(){F.JSC$20231_watchApi.unsubscribeByKey(W)})},Mw6=function(F){var W;
return _.e(function(E){if(E.nextAddress==1)return _.Q(E,F.JSC$20231_watchApi.playerApi,2);W=E.yieldResult;W.setCompositeVideoOverlayRendererComponent(F.container);_.gG(E)})},gvq=function(F){var W;
return _.e(function(E){if(E.nextAddress==1)return _.Q(E,F.JSC$20231_watchApi.playerApi,2);W=E.yieldResult;W.setCompositeVideoOverlayRendererComponent(void 0);_.gG(E)})},QaK=function(F){var W,E;
return _.e(function(h){if(h.nextAddress==1)return _.Q(h,F.JSC$20231_watchApi.playerApi,2);W=h.yieldResult;F.container=document.createElement("div");E=_.qO(F.container,function(){return _.z(Vw6,{data:F.compositeVideoOverlayRenderer,compositeVideoConfig:F.compositeVideoConfig,playerApi:W})});
F.addOnDisposeCallback(E);_.gG(h)})},Rh6=function(F){var W,E,h,d,V,R,M,g;
_.e(function(t){return t.nextAddress==1?(W=F.JSC$20231_watchApi.getPlayerResponse(),V=_.D((E=W)==null?void 0:(h=E.overlay)==null?void 0:(d=h.playerControlsOverlayRenderer)==null?void 0:d.compositeVideoOverlay,VsO),g=(R=W)==null?void 0:(M=R.playerConfig)==null?void 0:M.compositeVideoConfig,V&&F.setCompositeVideoOverlayRenderer(V),g&&F.setCompositeVideoConfig(g),V&&g?F.container?t.jumpTo(6):_.Q(t,QaK(F),6):zhP(F)?_.Q(t,gvq(F),0):t.jumpTo(0)):zhP(F)?t.jumpTo(0):_.Q(t,Mw6(F),0)})},zhP=function(F){var W;
return!((W=F.container)==null||!W.parentElement)};
_.ehF.prototype.disposeInternal=function(){zhP(this)&&gvq(this);_.xj.prototype.disposeInternal.call(this)};_.I7K=function(F){_.xj.call(this);var W=this;this.JSC$20237_watchApi=F;var E=this.JSC$20237_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){var h=W.JSC$20237_watchApi.getPlayerResponse();if(h){var d,V;if(h=_.D((d=h.endscreen)==null?void 0:(V=d.endscreenRenderer)==null?void 0:V.hideButton,_.O8)){var R;(R=W.setEndscreenHideButton)==null||R.call(W,h);tw6(W)}}});
this.addOnDisposeCallback(function(){W.JSC$20237_watchApi.unsubscribeByKey(E)});
F=_.U(_.g$({},void 0,"PPHRb"));this.endscreenHideButton=F.next().value;this.setEndscreenHideButton=F.next().value;CPq(this);BA$(this);vvP(this)};
_.k(_.I7K,_.xj);var tw6=function(F){var W,E;_.e(function(h){if(h.nextAddress==1)return F.creatorEndscreenHideButtonContainer?h.return():_.Q(h,F.JSC$20237_watchApi.playerApi,2);W=h.yieldResult;F.creatorEndscreenHideButtonContainer=document.createElement("div");_.rl(F.creatorEndscreenHideButtonContainer,!1);W.setCreatorEndscreenHideButton(F.creatorEndscreenHideButtonContainer);E=_.qO(F.creatorEndscreenHideButtonContainer,function(){return _.z(_.bJ,{data:F.endscreenHideButton,useOutlinedIcon:!0})});
F.addOnDisposeCallback(function(){E();W.setCreatorEndscreenHideButton(void 0)});
_.gG(h)})},CPq=function(F){var W,E;
_.e(function(h){if(h.nextAddress==1)return _.Q(h,F.JSC$20237_watchApi.playerApi,2);W=h.yieldResult;E=function(){F.creatorEndscreenHideButtonContainer&&_.rl(F.creatorEndscreenHideButtonContainer,!0)};
W.addEventListener("endscreenelementshown",E);F.addOnDisposeCallback(function(){W.removeEventListener("endscreenelementshown",E)});
_.gG(h)})},BA$=function(F){var W=function(){F.creatorEndscreenHideButtonContainer&&_.rl(F.creatorEndscreenHideButtonContainer,!1)},E=F.JSC$20237_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",W),h=F.JSC$20237_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",W);
F.addOnDisposeCallback(function(){F.JSC$20237_watchApi.unsubscribeByKey(E);F.JSC$20237_watchApi.unsubscribeByKey(h)})},vvP=function(F){F.JSC$20237_watchApi.registerActionHandler("yt-change-creator-endscreen-visibility-command",function(W){var E=_.D(W,Fu6);
F.JSC$20237_watchApi.playerApi.then(function(h){h==null||h.setCreatorEndscreenVisibility(!!E.hide)})});
F.addOnDisposeCallback(function(){F.JSC$20237_watchApi.unregisterActionHandler("yt-change-creator-endscreen-visibility-command")})};_.D8K=function(F){_.xj.call(this);this.JSC$20243_watchApi=F;cYF(this)};
_.k(_.D8K,_.xj);var cYF=function(F){var W,E;_.e(function(h){if(h.nextAddress==1)return _.Q(h,F.JSC$20243_watchApi.playerApi,2);W=h.yieldResult;E=function(d){_.uC().dispatch(_.dR({type:"SET_IS_WATCH_RETRO_MODE",payload:{isWatchRetroMode:d}}))};
W.addEventListener("onRetroModeChanged",E);F.addOnDisposeCallback(function(){W.removeEventListener("onRetroModeChanged",E)});
_.gG(h)})};var P_=0,H_=0,J2=0;var x8x;x8x=new Map([["10",6E5],["15",9E5],["20",12E5],["30",18E5],["45",27E5],["60",36E5]]);_.HR=function(F){_.xj.call(this);this.JSC$20256_watchApi=F;this.selectedOption="Off";this.pauseAutonavPlayback=!1;this.adjustmentsCount=this.presetPauseSchedulerId=this.presetFadeSchedulerId=0;kwq(this)};
_.k(_.HR,_.xj);
var kwq=function(F){var W,E,h;_.e(function(d){if(d.nextAddress==1)return _.Q(d,F.JSC$20256_watchApi.playerApi,2);W=d.yieldResult;if(F.isDisposed())return d.return();F.sessionStorage=_.gKN("yt-sleep-timer");F.sessionStorage||_.OB(new _.xC("SessionStorage for Sleep Timer is undefined."));((E=F.sessionStorage)==null?void 0:E.get("yt-sleep-timer"))==="true"&&(ql6(),(h=F.sessionStorage)==null||h.remove("yt-sleep-timer"),W.syncVolume());AYK(F,W);saP(F,W);LaK(F,W);_.gG(d)})},AYK=function(F,W){var E=function(t){F.onSleepTimerSettingsChanged(t,
W)},h=function(t){F.onPlayerStateChange(t,W)},d=function(){F.onLoopChange(W)},V=function(){F.onCloseMiniplayer(W)},R=function(){kV6(W,(0,_.KU)(),$t6(W),F.selectedOption==="End of video",W.getPlayerState()!==1)},M=function(){F.onSeekComplete(W)},g=function(){_.P0.cancelJob(H_);
var t=W.getCurrentTime()>=W.getDuration(),C=F.selectedOption==="End of video"||F.selectedOption==="End of playlist"&&!c96(F.playlistId);t&&C&&q5u(F,W)};
W.addEventListener("onSleepTimerSettingsChanged",E);W.addEventListener("onLoopChange",d);W.addEventListener("onLoopRangeChange",d);W.addEventListener("onStateChange",h);W.addEventListener("onCloseMiniplayer",V);W.addEventListener("onSleepTimerFeatureAvailable",R);W.addEventListener("SEEK_COMPLETE",M);W.addEventListener("onAdStart",g);F.addOnDisposeCallback(function(){W.removeEventListener("onSleepTimerSettingsChanged",E);W.removeEventListener("onLoopChange",d);W.removeEventListener("onLoopRangeChange",
d);W.removeEventListener("onStateChange",h);W.removeEventListener("onCloseMiniplayer",V);W.removeEventListener("onSleepTimerFeatureAvailable",R);W.removeEventListener("SEEK_COMPLETE",M);W.removeEventListener("onAdStart",g)})},saP=function(F,W){var E=F.JSC$20256_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){a:{var h=W.getVideoData().video_id,d,V=(d=vG$(F.JSC$20256_watchApi))==null?void 0:d.playlistId;
F.pauseAutonavPlayback&&(W.pauseVideo(),W.syncVolume(),F.pauseAutonavPlayback=!1);if(F.selectedOption==="End of video"&&h!==F.videoId)PR(F,W);else{if(F.selectedOption==="End of playlist"){d=c96(F.playlistId);if(V!==F.playlistId){PR(F,W);break a}d?d&&$8K(F,W):ZtT(F,W)}F.videoId=h;F.playlistId=V}}});
F.addOnDisposeCallback(function(){F.JSC$20256_watchApi.unsubscribeByKey(E)})},LaK=function(F,W){var E=_.WZ().resolve(_.P2),h=_.kQ(E,_.xCo,function(V){V&&F.selectedOption!=="Off"&&PR(F,W)}),d=F.JSC$20256_watchApi.subscribeToActiveChanged(function(V){var R,M;
return _.e(function(g){if(g.nextAddress==1)return _.Q(g,_.DT().navigationFinishPromise,2);R=!_.lN_();M=_.WZ().resolve(_.GF).isMiniplayerActive();V||!Xa(F.selectedOption)||M||R||PR(F,W);_.gG(g)})},!1);
E=_.kQ(E,function(V){return V.entities.playlistLoopStateEntity||{}},function(V){V=V===void 0?{}:V;
var R=ItF(F.JSC$20256_watchApi);if(R){var M;((M=V[R])==null?void 0:M.state)==="PLAYLIST_LOOP_STATE_ALL"&&Xa(F.selectedOption)&&PR(F,W)}});
F.addOnDisposeCallback(h);F.addOnDisposeCallback(E);F.addOnDisposeCallback(d)};
_.HR.prototype.onSleepTimerSettingsChanged=function(F,W){switch(F){case "Off":this.selectedOption!=="Off"&&PR(this,W);break;case "End of video":case "End of playlist":Xo8(this,F,W);break;default:Xo8(this,F,W,x8x.get(F))}};
_.HR.prototype.onLoopChange=function(F){(F.getLoopVideo()||F.getLoopRange())&&Xa(this.selectedOption)&&PR(this,F)};
_.HR.prototype.onCloseMiniplayer=function(F){Xa(this.selectedOption)&&PR(this,F)};
var Xo8=function(F,W,E,h){Ht$(F,E);F.selectedOption=W;F.videoId=E.getVideoData().video_id;F.playlistId="";var d;(d=F.sessionStorage)==null||d.set("yt-sleep-timer","true");F.adjustmentsCount++;kV6(E,(0,_.KU)(),$t6(E),F.selectedOption==="End of video");if(F.selectedOption==="End of video")ZtT(F,E),PPu(F,E);else if(F.selectedOption==="End of playlist"){PPu(F,E);var V,R;F.playlistId=(R=(V=vG$(F.JSC$20256_watchApi))==null?void 0:V.playlistId)!=null?R:"";c96(F.playlistId)||ZtT(F,E)}else h&&(F.presetFadeSchedulerId=
_.qY(_.P0,function(){sp$(E,15E3)},h-15E3),F.presetPauseSchedulerId=_.qY(_.P0,function(){q5u(F,E)},h),A9g(E,(0,_.KU)(),h))},q5u=function(F,W){if(F.JSC$20256_watchApi.isActive()){var E={dismissDialogEndpoint:{}};
var h={commandExecutorCommand:{commands:[E,{watchPlayerOverflowMenuCommand:{openMenuItemKey:"menu_item_sleep_timer"}}]}};E={buttonViewModel:{title:_.CY("CLOSE"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",onTap:{innertubeCommand:E}}};h={buttonViewModel:{title:_.CY("SLEEP_TIMER_ADD_TIME_LABEL"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",onTap:{innertubeCommand:h}}};var d={dialogHeaderViewModel:{headline:{content:_.CY("SLEEP_TIMER_ENDED_TITLE")}}},
V={basicContentViewModel:{paragraphs:[{text:{content:_.CY("SLEEP_TIMER_ENDED_TEXT")}}]}};E={showDialogCommand:{panelLoadingStrategy:{inlineContent:{dialogViewModel:{header:d,content:V,footer:{panelFooterViewModel:{primaryButton:E,secondaryButton:h,shouldHideDivider:!0}}}}}}};_.WZ().resolve(_.EJ).resolveCommand(E,{form:{element:F}})}else ql6();JY8(F,!1);a7N(F,W);W.pauseVideo();_.EX.getInstance().getState()===2&&W.getPlayerState()===5&&(F.pauseAutonavPlayback=!0)},PR=function(F,W){JY8(F,!0);
a7N(F,W);ql6()},a7N=function(F,W){Ht$(F,W);
F.selectedOption="Off";F.videoId="";F.playlistId="";F.adjustmentsCount=0;var E;(E=F.sessionStorage)==null||E.remove("yt-sleep-timer");_.P0.cancelJob(P_);W.resetSleepTimerMenuSettings()},JY8=function(F,W){W={timer_length_adjustment_times_during_session:F.adjustmentsCount-1,
is_session_cancelled:W};switch(F.selectedOption){case "Off":W.option_type="SLEEP_TIMER_OPTION_TYPE_OFF";break;case "End of video":W.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_VIDEO";break;case "End of playlist":W.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_PLAYLIST";break;default:W.option_type="SLEEP_TIMER_OPTION_TYPE_FIXED_MINUTES_DURATION",W.option_duration_in_minutes=x8x.get(F.selectedOption)/6E4}_.Pc("sleepTimerSessionFinishEvent",W)};
_.HR.prototype.onPlayerStateChange=function(F,W){F===1?kV6(W,(0,_.KU)(),$t6(W),this.selectedOption==="End of video"):F===0?(_.P0.cancelJob(H_),W.setVideoTimeLeft(xt6(0,0))):F===2&&_.P0.cancelJob(H_);this.selectedOption==="End of video"?F===0?q5u(this,W):F===2&&L5g(W):this.selectedOption!=="End of playlist"||c96(this.playlistId)||(F===0?q5u(this,W):F===2&&L5g(W))};
_.HR.prototype.onSeekComplete=function(F){F.getPlayerState()===2&&kV6(F,(0,_.KU)(),$t6(F),this.selectedOption==="End of video",!0)};
_.HR.prototype.onCueRangeEnter=function(F,W){F==="sleep-timer-fade-audio"&&sp$(W,(W.getDuration()-W.getProgressState().current)*1E3)};
_.HR.prototype.onCueRangeExit=function(F,W){F==="sleep-timer-fade-audio"&&W.getPlayerState()!==0&&L5g(W,!0)};
var ZtT=function(F,W){W.addCueRange("sleep-timer-fade-audio",W.getDuration()-15,W.getDuration());W.addEventListener("onCueRangeEnter",function(E){F.onCueRangeEnter(E,W)});
W.addEventListener("onCueRangeExit",function(E){F.onCueRangeExit(E,W)})},$8K=function(F,W){W.removeCueRange("sleep-timer-fade-audio");
W.removeEventListener("onCueRangeEnter",function(E){F.onCueRangeEnter(E,W)});
W.removeEventListener("onCueRangeExit",function(E){F.onCueRangeExit(E,W)})},Ht$=function(F,W){Xa(F.selectedOption)?$8K(F,W):(_.P0.cancelJob(F.presetPauseSchedulerId),_.P0.cancelJob(F.presetFadeSchedulerId),F.presetPauseSchedulerId=0,F.presetFadeSchedulerId=0);
L5g(W,!0)},PPu=function(F,W){W.setLoop(!1);
W.setLoopVideo(!1);W.setLoopRange(null);(F=ItF(F.JSC$20256_watchApi))&&_.WZ().resolve(_.P2).dispatch(_.AG("playlistLoopStateEntity",F,{key:F,state:"PLAYLIST_LOOP_STATE_NONE"}))};_.l7w=function(F){_.xj.call(this);this.JSC$20259_watchApi=F;f7K(this);OtF(this);btg(this);F=F.getRoot();if(F.is==="ytd-watch-flexy"||F.is==="ytd-watch-grid")F.onTheaterReduxValueUpdate(this.getState());this.getState()&&_.y6T();_.c("web_watch_log_theater_mode_cookie_state")&&_.BZ.get("wide","0")==="1"&&_.Cce("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED")};
_.k(_.l7w,_.xj);var f7K=function(F){var W,E;_.e(function(h){if(h.nextAddress==1)return _.Q(h,F.JSC$20259_watchApi.playerApi,2);W=h.yieldResult;E=function(d){nvK(F,!!d)};
W.addEventListener("SIZE_CLICKED",E);F.addOnDisposeCallback(function(){W.removeEventListener("SIZE_CLICKED",E)});
_.gG(h)})},OtF=function(F){F.JSC$20259_watchApi.registerActionHandler("yt-toggle-theater-mode",function(W,E){nvK(F,W,E===void 0?!0:E)});
F.addOnDisposeCallback(function(){F.JSC$20259_watchApi.unregisterActionHandler("yt-toggle-theater-mode")})};
_.l7w.prototype.getState=function(){return _.H7(_.uC().getState())};
var nvK=function(F,W,E){E=E===void 0?!0:E;var h,d,V,R=_.c("enable_player_resize_transition")&&!!F.JSC$20259_watchApi.getWatchNextResponse()&&!((h=F.JSC$20259_watchApi.getWatchNextResponse())==null?0:(d=h.contents)==null?0:(V=d.twoColumnWatchNextResults)==null?0:V.conversationBar);_.tJg(function(){_.uC().dispatch(_.dR({type:"SET_IS_THEATER_MODE",payload:{isTheaterMode:W}}));_.c("theater_mode_scroll_to_top_killswitch")||F.JSC$20259_watchApi.scrollWatchTo(0,!1);_.Kg()&&_.c("external_fullscreen")&&_.Fj(document.documentElement);
btg(F);E&&_.vZ("wide",W?"1":"0",-1);_.dW(F.JSC$20259_watchApi.getRoot(),"yt-close-popup-action",["yt-tooltip-renderer"]);F.JSC$20259_watchApi.dispatchEvent("yt-set-theater-mode-enabled",{enabled:W});W&&_.y6T()},{shouldWrap:R})},btg=function(F){var W;
_.e(function(E){if(E.nextAddress==1)return _.Q(E,F.JSC$20259_watchApi.playerApi,2);W=E.yieldResult;W.setSizeStyle(!0,F.getState());_.gG(E)})};var itK=function(F){_.xj.call(this);var W=this;this.playerApi=F;this.timeToPanelSyncKeyMap={};var E;if(F==null?0:(E=F.isReady)==null?0:E.call(F)){E=_.kQ(_.WZ().resolve(_.P2),function(d){return d.entities.timedMarkersListSyncEntity||{}},function(d,V){d=d===void 0?{}:d;
V=V===void 0?{}:V;for(var R=_.U(Object.keys(V)),M=R.next();!M.done;M=R.next())M=M.value,d[M]!==V[M]&&yYu(W,V[M]);V=_.U(Object.keys(d));for(R=V.next();!R.done;R=V.next())R=R.value,M=d[R],W.timeToPanelSyncKeyMap[R]&&jau(W,M)});
this.addOnDisposeCallback(E);var h=function(d){W.onCueRangeEnter(d)};
F.addEventListener("onCueRangeEnter",h);this.addOnDisposeCallback(function(){var d;(d=F.removeEventListener)==null||d.call(F,"onCueRangeEnter",h)})}};
_.k(itK,_.xj);
var jau=function(F,W){var E,h;if((E=F.playerApi)==null?0:(h=E.isReady)==null?0:h.call(E)){var d;if((E=W==null?void 0:(d=W.timedListData)==null?void 0:d.sections)&&W!=null&&W.key)for(d=_.U(E),E=d.next();!E.done;E=d.next())if(E=E.value,E.timedSyncDataList&&E.sectionId)for(h=0;h<E.timedSyncDataList.length;h++){var V=E.timedSyncDataList[h];V.syncItemId&&F.playerApi.addCueRange(E.sectionId+"_"+W.key+"_"+V.syncItemId,Number(V.videoTimeMs)/1E3,h===E.timedSyncDataList.length-1?0x8000000000000:Number(E.timedSyncDataList[h+
1].videoTimeMs)/1E3)}}},yYu=function(F,W){var E,h;
if((E=F.playerApi)==null?0:(h=E.isReady)==null?0:h.call(E)){var d;if((E=W==null?void 0:(d=W.timedListData)==null?void 0:d.sections)&&W!=null&&W.key)for(d=_.U(E),E=d.next();!E.done;E=d.next())if(E=E.value,E.timedSyncDataList&&E.sectionId){h=_.U(E.timedSyncDataList);for(var V=h.next();!V.done;V=h.next())V=V.value,V.syncItemId&&F.playerApi.removeCueRange(E.sectionId+"_"+W.key+"_"+V.syncItemId)}}};
itK.prototype.onCueRangeEnter=function(F){for(var W=_.U(Object.keys(this.timeToPanelSyncKeyMap)),E=W.next();!E.done;E=W.next()){E=E.value;var h=_.U(F.split("_"+E+"_")),d=h.next().value;h=h.next().value;if(d&&h){F=_.WZ().resolve(_.P2);W=this.timeToPanelSyncKeyMap[E];var V=_.aLY(F.getState(),W);E=rYw(E,d,h);if(E===-1)break;E={activeSyncId:h,activeItemIndex:E,activeSectionInfo:{sectionIdentifier:d}};V?F.dispatch(_.lJ("markersEngagementPanelSyncEntity",W,E)):F.dispatch(_.AG("markersEngagementPanelSyncEntity",
W,Object.assign({},{key:W},E)));break}}};
var rYw=function(F,W,E){var h=_.WZ().resolve(_.P2),d,V;F=(d=O6K(h.getState(),F))==null?void 0:(V=d.timedListData)==null?void 0:V.sections;if(!F)return-1;d=0;V=_.U(F);for(F=V.next();!F.done;F=V.next()){F=F.value;h=F.timedSyncDataList||[];if(F.sectionId===W)return W=h.findIndex(function(R){return R.syncItemId===E}),W===-1?W:d+W;
d+=h.length}return-1};_.Gw$=function(F){_.xj.call(this);var W=this;this.JSC$20271_watchApi=F;this.unresolvedCommands=[];this.JSC$20271_watchApi.registerActionHandler("yt-update-timed-markers-sync-observer-command",function(E){TAu(W,E)});
this.addOnDisposeCallback(function(){W.JSC$20271_watchApi.unregisterActionHandler("yt-update-timed-markers-sync-observer-command")});
ovN(this)};
_.k(_.Gw$,_.xj);var ovN=function(F){var W;_.e(function(E){if(E.nextAddress==1)return _.Q(E,F.JSC$20271_watchApi.playerApi,2);W=E.yieldResult;if(F.isDisposed())return E.return();F.timedSyncObserver=new itK(W);F.unresolvedCommands.length&&(F.unresolvedCommands.forEach(function(h){return TAu(F,h)}),F.unresolvedCommands=[]);
_.gl(F,F.timedSyncObserver);_.gG(E)})},TAu=function(F,W){if(F.timedSyncObserver){var E=_.D(W,EeP);
if(E&&E.timedSyncEntityKey&&E.panelSyncEntityKey){F=F.timedSyncObserver;W=E.timedSyncEntityKey;var h=E.panelSyncEntityKey;E=!!E.isEnabled;E=E===void 0?!0:E;var d=_.WZ().resolve(_.P2);d=O6K(d.getState(),W);E?F.timeToPanelSyncKeyMap[W]||(F.timeToPanelSyncKeyMap[W]=h,jau(F,d)):(delete F.timeToPanelSyncKeyMap[W],yYu(F,d))}}else F.unresolvedCommands.push(W)};var Y5T=_.GK(function(F){var W=F.data,E=F.maybeLogSmartSkipClientData,h=_.uf();_.Sb(h,function(){return W().rendererContext},{onTap:function(C,B){B({disableClickTracking:!0})}});
var d=null,V=null,R=_.c("web_enable_auto_focus_for_timely_action_button"),M=function(){d=document.activeElement},g=function(){W().smartSkipMetadata&&(d=document.activeElement,_.OZx(function(){return V}))},t=function(C){if(W().smartSkipMetadata&&(!C||C.key!=="Enter")){d&&d.isConnected&&(_.OZx(function(){return d}),d=null);
var B;(B=V)==null||B.blur()}};
F=_.tb(function(){E==null||E(!0,W());return!1});
_.ER(h,{visibilityCallback:function(C){if(R)C?V&&W().smartSkipMetadata&&(g(),document.addEventListener("focusin",M)):(document.removeEventListener("focusin",M),t());else if(C&&_.c("web_ephemeral_actions")){C=_.wk(W().rendererContext);var B=Number(W().maxVisibleDurationMilliseconds),I,x=(I=_.D(W().rendererContext,_.m9))==null?void 0:I.label;C&&B&&x&&(I={label:x,command:C,durationMs:B},_.WZ().resolve(_.zI).enqueue(I))}},
showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}});_.$F(function(){if(R){var C;if((V=(C=h.value)==null?void 0:C.querySelector("button"))&&W().smartSkipMetadata){var B;(B=h.value)==null||B.addEventListener("keydown",t)}}});
_.$p(function(){R&&(V&&W().smartSkipMetadata&&V.removeEventListener("keydown",t),document.removeEventListener("focusin",M),t())});
return _.z("ytw-timely-action-view-model",{class:"ytwTimelyActionViewModelHost",el:h,"on:click":F},_.z(_.a6,{data:function(){return W().content}},{buttonViewModel:_.rk}))},"ej");var wow=_.GK(function(F){var W=F.data,E=F.playerApi,h=_.WZ().resolve(_.C2_);F=_.U(_.Br(function(){W()}));
var d=F.next().value,V=F.next().value,R=function(){return Xlq(W(),d())},M=function(t,C){var B,I,x=(B=_.D(C==null?void 0:C.rendererContext,_.GWR))==null?void 0:(I=B.loggingDirectives)==null?void 0:I.trackingParams;
if((C=C==null?void 0:C.smartSkipMetadata)&&C.loggingData&&(I=C.loggingData,C=I.algorithmId,B=I.startMilliseconds,I=I.endMilliseconds,C&&B!==void 0&&I!==void 0)){var A,X;t={smartSkipData:Object.assign({},{versionName:C,startMediaTimeMs:B,endMediaTimeMs:I},t&&{userInteractionMediaTimeMs:(Math.floor(((A=_.WS())==null?void 0:(X=A.getPlayer())==null?void 0:X.getCurrentTime())||0)*1E3).toString()})};A=_.JR();var P;x&&(P=_.ve(x));A&&P&&_.Yb(A,P,t)}},g=function(t,C){var B=Xlq(W(),t);
if(B){var I=_.D(B,aE),x;if(x=C)x=E(),B=_.D(B,aE),x=B!=null&&B.smartSkipMetadata?!(x==null?0:x.isSameMarkerTypeVisible((B==null?void 0:B.smartSkipMetadata.markerKey)||"")):!0;if(x){var A,X;(I==null?0:(A=I.smartSkipMetadata)==null?0:(X=A.loggingData)==null?0:X.isCounterfactual)||(M(!1,I),V(t))}else C||d()!==t||V(void 0)}};
_.q6(function(){var t=W().timelyActions;if(t){t=_.U(t);for(var C=t.next();!C.done;C=t.next()){C=_.D(C.value,aE);var B=void 0;(B=C)!=null&&B.cueRangeId&&h.timelyActionsMap.set(C.cueRangeId,g)}_.$p(function(){h.timelyActionsMap.clear()})}});
return _.z("ytw-timely-actions-overlay-view-model",{class:"ytwTimelyActionsOverlayViewModelHost"},_.z(_.a6,{data:R},{timelyActionViewModel:function(t){return _.z(Y5T,{data:t.data,maybeLogSmartSkipClientData:function(){M(!0,_.D(R(),aE))}})}}))},"fj");_.S5K=function(F){_.xj.call(this);this.JSC$20283_watchApi=F;F=_.U(_.g$({},void 0,"pLDp2"));this.timelyActionsOverlay=F.next().value;this.setTimelyActionsOverlay=F.next().value;uTP(this)};
_.k(_.S5K,_.xj);var uTP=function(F){var W,E,h,d;_.e(function(V){if(V.nextAddress==1)return poF(F),m8N(F),F.timelyActionsContainer=document.createElement("div"),_.Q(V,F.JSC$20283_watchApi.playerApi,2);W=V.yieldResult;(h=(E=W).insertTimelyActionUi)==null||h.call(E,F.timelyActionsContainer);d=_.qO(F.timelyActionsContainer,function(){return _.z(wow,{data:F.timelyActionsOverlay,playerApi:W})});
F.addOnDisposeCallback(d);_.gG(V)})},m8N=function(F){var W=F.JSC$20283_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){poF(F)});
F.addOnDisposeCallback(function(){F.JSC$20283_watchApi.unsubscribeByKey(W)})},poF=function(F){var W=F.JSC$20283_watchApi.getWatchNextResponse();
if(W){var E,h;if(W=_.D((E=W.playerOverlays)==null?void 0:(h=E.playerOverlayRenderer)==null?void 0:h.timelyActionsOverlayViewModel,hkK)){var d;(d=F.setTimelyActionsOverlay)==null||d.call(F,W)}}};_.F$K=function(F){_.xj.call(this);this.JSC$20287_watchApi=F;KaK(this)};
_.k(_.F$K,_.xj);var KaK=function(F){var W,E;_.e(function(h){if(h.nextAddress==1)return _.Q(h,F.JSC$20287_watchApi.playerApi,2);W=h.yieldResult;E=function(d){_.Ru.instance.resolveCommand({openPopupAction:{popup:{notificationActionRenderer:_.D(d,_.vH8)},popupType:"TOAST"}})};
W.addEventListener("onYtShowToast",E);F.addOnDisposeCallback(function(){W.removeEventListener("onYtShowToast",E)});
_.gG(h)})};var W$x,dK8,ENK,heO,Re6,VpO,UKK,MpO,gNw;W$x=!1;_.NKK=function(F){_.xj.call(this);this.JSC$20290_watchApi=F;this.fullscreen=this.theater=!1;ENK(this);heO(this);dK8(this)};
_.k(_.NKK,_.xj);dK8=function(F){var W,E,h;_.e(function(d){if(d.nextAddress==1)return _.Q(d,F.JSC$20290_watchApi.playerApi,2);W=d.yieldResult;if(F.isDisposed())return d.return();E=F.JSC$20290_watchApi.getElement("CINEMATICS");if(!E)return d.return();F.JSC$20290_cinematicController=new _.NP(E,W);_.gl(F,F.JSC$20290_cinematicController);_.yQu(F.JSC$20290_cinematicController);VpO(F,_.IWS());h=F.JSC$20290_cinematicController.subscribe("CINEMATICS_ALLOWED_CHANGED",function(V){UKK(F,V)});
F.addOnDisposeCallback(function(){F.JSC$20290_watchApi.unsubscribeByKey(h)});
Re6(F);UKK(F,F.JSC$20290_cinematicController.isAllowed());_.eeO(F,F.fullscreen,F.theater);MpO(F);_.gG(d)})};
ENK=function(F){var W=F.JSC$20290_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){Re6(F)});
F.addOnDisposeCallback(function(){F.JSC$20290_watchApi.unsubscribeByKey(W)})};
heO=function(F){var W,E;_.e(function(h){if(h.nextAddress==1)return _.Q(h,F.JSC$20290_watchApi.playerApi,2);W=h.yieldResult;E=function(d){VpO(F,d)};
W.addEventListener("cinematicSettingsToggleChange",E);F.addOnDisposeCallback(function(){W.removeEventListener("cinematicSettingsToggleChange",E)});
_.gG(h)})};
Re6=function(F){var W=F.JSC$20290_watchApi.getWatchNextResponse(),E;W=_.D(W==null?void 0:(E=W.pageVisualEffects)==null?void 0:E[0],_.AY);var h;(h=F.JSC$20290_cinematicController)==null||_.i56(h,W)};
VpO=function(F,W){var E;(E=F.JSC$20290_cinematicController)==null||_.jXO(E,W);gNw(F)};
UKK=function(F,W){var E;_.e(function(h){if(h.nextAddress==1)return _.c("kevlar_watch_cinematics_invisible")&&(W=!1),_.Q(h,F.JSC$20290_watchApi.playerApi,2);E=h.yieldResult;E.updateCinematicSettings(W);gNw(F);_.gG(h)})};
MpO=function(F){var W=_.Ij();if(_.c("kevlar_measure_ambient_mode_idle")&&!W.getFlag(192)&&!W$x){W$x=!0;var E=_.sB(_.P0,function(){_.WZ().resolve(_.e6F).start(1E4)},5E3);
F.addOnDisposeCallback(function(){_.P0.cancelJob(E);_.WZ().resolve(_.e6F).stop()})}};
_.eeO=function(F,W,E){F.fullscreen=W;F.theater=E;var h;(h=F.JSC$20290_cinematicController)==null||h.setFullscreen(F.fullscreen,F.theater);if(_.c("web_cinematics_pausing")&&!document.documentElement.hasAttribute("dark"))if(F.theater||F.fullscreen){var d;(d=F.JSC$20290_cinematicController)==null||_.rQ$(d)}else if((F=F.JSC$20290_cinematicController)!=null){var V;(V=F.currentCinematicEffect)==null||V.pause()}};
gNw=function(F){if(_.c("web_cinematic_theater_mode")||_.c("web_cinematic_fullscreen")){var W;F.JSC$20290_watchApi.getRoot().toggleCinematicsActive(!((W=F.JSC$20290_cinematicController)==null||!W.isEnabled()))}};_.C76=function(F){_.xj.call(this);var W=this;this.JSC$20293_watchApi=F;this.commentsReady=!1;this.setCommentsJobId=0;F=_.kQ(_.uC(),_.qP,function(){QNO(W)});
this.addOnDisposeCallback(F);var E=this.JSC$20293_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){zeK(W)}),h=this.JSC$20293_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){zeK(W)});
this.addOnDisposeCallback(function(){W.JSC$20293_watchApi.unsubscribeByKey(E);W.JSC$20293_watchApi.unsubscribeByKey(h)});
var d=function(){_.c("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&tp8(W,"false")};
this.JSC$20293_watchApi.getRoot().addEventListener("yt-page-data-will-update",d);this.addOnDisposeCallback(function(){W.JSC$20293_watchApi.getRoot().removeEventListener("yt-page-data-will-update",d)});
zeK(this)};
_.k(_.C76,_.xj);var zeK=function(F){F.commentsReady=!1;_.P0.cancelJob(F.setCommentsJobId);F.setCommentsJobId=_.sB(_.P0,function(){QNO(F)},1E3)},QNO=function(F){if(!F.commentsReady){_.P5("cmi");
_.P0.cancelJob(F.setCommentsJobId);var W,E,h,d,V=(W=F.JSC$20293_watchApi.getWatchNextResponse())==null?void 0:(E=W.contents)==null?void 0:(h=E.twoColumnWatchNextResults)==null?void 0:(d=h.results)==null?void 0:d.results.contents;W=void 0;if(V&&V.length)for(V=_.U(V),E=V.next();!E.done;E=V.next())if(E=E.value,d=h=void 0,((h=E)==null?void 0:(d=h.itemSectionRenderer)==null?void 0:d.sectionIdentifier)==="comment-item-section"){_.c("web_watch_provide_undefined_comments")?W=E.itemSectionRenderer:F.JSC$20293_watchApi.provideRenderingData("COMMENTS",
E.itemSectionRenderer);tp8(F,"true");break}_.c("web_watch_provide_undefined_comments")&&F.JSC$20293_watchApi.provideRenderingData("COMMENTS",W);F.commentsReady=!0;F.JSC$20293_watchApi.dispatchEvent("yt-watch-comments-ready")}},tp8=function(F,W){var E;
(E=F.JSC$20293_watchApi.getElement("COMMENTS"))==null||E.setAttribute("canScheduleJobs",W)};_.OF=function(F){_.xj.call(this);var W=this;this.JSC$20296_watchApi=F;this.providePlayerJobId=this.provideWatchNextJobId=this.provideRichGridJobId=0;this.directlyProvideComments=_.c("swatcheroo_directly_provide_comments");this.provideWatchNextSecondaryResults=_.c("web_watch_provide_secondary_results_renderer");this.swatcherooProvideAllDataOnScheduledJob=_.c("swatcheroo_provide_all_data_on_scheduled_job");this.provideAllDataDelayMs=_.dV("swatcheroo_provide_all_data_delay_ms",250);if(this.swatcherooProvideAllDataOnScheduledJob)BKO(this);
else{var E=this.JSC$20296_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){JX(W);a2(W)}),h=this.JSC$20296_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){f0(W);
a2(W)});
this.JSC$20296_watchApi.getRoot().is==="ytd-watch-grid"&&_.c("swatcheroo_pbs_load_grid")&&(vNN(this),IkK(this));this.addOnDisposeCallback(function(){W.JSC$20296_watchApi.unsubscribeByKey(E);W.JSC$20296_watchApi.unsubscribeByKey(h);_.P0.cancelJob(W.provideRichGridJobId)});
JX(this);f0(this)}};
_.k(_.OF,_.xj);var BKO=function(F){var W=F.JSC$20296_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){F.providePlayerJobId=_.JG(_.P0,function(){JX(F);a2(F)},F.provideAllDataDelayMs)}),E=F.JSC$20296_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){F.provideWatchNextJobId=_.JG(_.P0,function(){f0(F);
a2(F)},F.provideAllDataDelayMs)}),h=F.JSC$20296_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){F.provideWatchNextJobId=_.JG(_.P0,function(){f0(F);
a2(F)},F.provideAllDataDelayMs)});
F.JSC$20296_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.sB(_.P0,function(){JX(F);f0(F);a2(F)},100)});
F.JSC$20296_watchApi.addPageDisposeJob(function(){_.P0.cancelJob(F.provideWatchNextJobId);_.P0.cancelJob(F.providePlayerJobId)});
F.addOnDisposeCallback(function(){F.JSC$20296_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");F.JSC$20296_watchApi.unsubscribeByKey(W);F.JSC$20296_watchApi.unsubscribeByKey(E);F.JSC$20296_watchApi.unsubscribeByKey(h);_.P0.cancelJob(F.providePlayerJobId);_.P0.cancelJob(F.provideWatchNextJobId)});
JX(F);f0(F)},JX=function(F){var W=F.JSC$20296_watchApi.getPlayerResponse(),E,h,d=(h=W==null?void 0:(E=W.playabilityStatus)==null?void 0:E.messageRenderers)!=null?h:[],V,R;
W=(R=W==null?void 0:(V=W.playabilityStatus)==null?void 0:V.messages)!=null?R:[];V=_.U(W);for(R=V.next();!R.done;R=V.next())d.push({alertRenderer:{text:_.Gr(R.value),type:"WARNING"}});F.JSC$20296_watchApi.provideRenderingData("ALERTS",d)},f0=function(F){var W=[],E,h,d,V=F.JSC$20296_watchApi.getWatchNextResponse(),R,M,g,t,C=V==null?void 0:(R=V.contents)==null?void 0:(M=R.twoColumnWatchNextResults)==null?void 0:(g=M.results)==null?void 0:(t=g.results)==null?void 0:t.contents;
if(C)for(R=_.U(C),M=R.next();!M.done;M=R.next())if(M=M.value,M.videoPrimaryInfoRenderer)var B=M;else if(M.videoSecondaryInfoRenderer){var I=M;t=g=void 0;M=Object.assign({},(g=M.videoSecondaryInfoRenderer)==null?void 0:(t=g.metadataRowContainer)==null?void 0:t.metadataRowContainerRenderer);if(M.rows&&M.collapsedItemCount!==void 0){M.rows=M.rows.slice(0,M.collapsedItemCount).filter(function(YB){return!!YB.richMetadataRowRenderer});
M.collapsedItemCount=M.rows.length;var x={metadataRowContainerRenderer:M}}}else if(M.merchandiseShelfRenderer)var A=M;else if(M.ticketShelfRenderer)var X=M;else if(M.expandableMetadataRenderer)var P=M;else if(M.itemSectionRenderer)if(g=M.itemSectionRenderer.contents,t=void 0,F.directlyProvideComments&&((t=M.itemSectionRenderer)==null?void 0:t.sectionIdentifier)==="comment-item-section")_.P5("cmi"),F.JSC$20296_watchApi.provideRenderingData("COMMENTS",M.itemSectionRenderer);else if(g)for(M=_.U(g),g=
M.next();!g.done;g=M.next())if(g=g.value,g.commentsEntryPointHeaderRenderer)var b=g;else if(g.clarificationRenderer||g.infoPanelContainerRenderer||g.infoPanelContentRenderer||g.emergencyOneboxRenderer){W.push(g);var l=l||!!I}else g.limitedStateMessageRenderer?h=g:g.videoMetadataCarouselViewModel&&(d=g);if(_.c("web_watch_merch_in_sd_when_ticket_shelf_present")&&A&&X){var w=A;A=void 0}if(F.provideWatchNextSecondaryResults){var G,hr,p;F.JSC$20296_watchApi.provideRenderingData("WATCH_NEXT_SECONDARY_RESULTS",
V==null?void 0:(G=V.contents)==null?void 0:(hr=G.twoColumnWatchNextResults)==null?void 0:(p=hr.secondaryResults)==null?void 0:p.secondaryResults)}if(F.JSC$20296_watchApi.getRoot().is==="ytd-watch-grid"){var UY,xW;F.JSC$20296_watchApi.provideRenderingData("LIVE_CHAT",V==null?void 0:(UY=V.contents)==null?void 0:(xW=UY.twoColumnWatchNextResults)==null?void 0:xW.conversationBar)}var qw,Lb,jk,Jr;(G=V==null?void 0:(qw=V.contents)==null?void 0:(Lb=qw.twoColumnWatchNextResults)==null?void 0:(jk=Lb.secondaryResults)==
null?void 0:(Jr=jk.secondaryResults)==null?void 0:Jr.offerModule)&&(G.donationShelfRenderer||G.donationUnavailableRenderer)&&F.JSC$20296_watchApi.getRoot().is!=="ytd-watch-grid"&&(E=G);qw=F.JSC$20296_watchApi.getPlayerResponse();if(!qw||!_.Qww(qw.playabilityStatus,V==null?void 0:V.playerOverlays)){var nb;if(V==null?0:(nb=V.contents)==null?0:nb.singleColumnWatchNextResults){var bo,uo;var b_=V==null?void 0:(bo=V.contents.singleColumnWatchNextResults.results)==null?void 0:(uo=bo.results)==null?void 0:
uo.contents}else{var BO,dc,VM,Z_;nb=!!(C==null?0:(BO=C[0])==null?0:(dc=BO.itemSectionRenderer)==null?0:(VM=dc.contents)==null?0:(Z_=VM[0])==null?0:Z_.backgroundPromoRenderer);var MU,Ef;BO=!!(V==null?0:(MU=V.contents)==null?0:(Ef=MU.twoColumnWatchNextResults)==null?0:Ef.secondaryResults);nb&&!BO&&(b_=C)}}C=W[0];MU=W[1];l&&W.length===1&&(MU=C,C=void 0);F.JSC$20296_watchApi.provideRenderingData("PRIMARY_INFO",B);F.JSC$20296_watchApi.provideRenderingData("SECONDARY_INFO",I);F.JSC$20296_watchApi.provideRenderingData("COMMENTS_ENTRY_POINT_HEADER",
b);F.JSC$20296_watchApi.provideRenderingData("VIDEO_METADATA_CAROUSEL",d);F.JSC$20296_watchApi.provideRenderingData("CLARIFICATION",C);F.JSC$20296_watchApi.provideRenderingData("RICH_METADATA",x);F.JSC$20296_watchApi.provideRenderingData("MERCH_SHELF",A);_.c("web_watch_merch_in_sd_when_ticket_shelf_present")&&F.JSC$20296_watchApi.provideRenderingData("MERCH_SHELF_IN_SD",w);F.JSC$20296_watchApi.provideRenderingData("TICKET_SHELF",X);F.JSC$20296_watchApi.provideRenderingData("LIMITED_STATE",h);F.JSC$20296_watchApi.getRoot().is!==
"ytd-watch-grid"&&F.JSC$20296_watchApi.provideRenderingData("DONATION_SHELF",E);F.JSC$20296_watchApi.provideRenderingData("SINGLE_COLUMN_CONTENTS",b_);F.JSC$20296_watchApi.provideRenderingData("INFO_PANEL_BELOW_METADATA",MU);F.JSC$20296_watchApi.provideRenderingData("EXPANDABLE_METADATA",P);if(F.swatcherooProvideAllDataOnScheduledJob){var kR,Rn,se,l_,j$,HO;B=V==null?void 0:(kR=V.contents)==null?void 0:(Rn=kR.twoColumnWatchNextResults)==null?void 0:(se=Rn.secondaryResults)==null?void 0:(l_=se.secondaryResults)==
null?void 0:(j$=l_.results)==null?void 0:(HO=j$[0])==null?void 0:HO.richGridRenderer;F.JSC$20296_watchApi.provideRenderingData("RICH_GRID_RENDERER",B)}};
_.OF.prototype.hasCompanionAds=function(F){var W,E;return(E=F==null?void 0:(W=F.adPlacements)==null?void 0:W.some(function(h){var d,V,R,M;return(h==null?void 0:(d=h.adPlacementRenderer)==null?void 0:(V=d.renderer)==null?void 0:V.actionCompanionAdRenderer)||(h==null?void 0:(R=h.adPlacementRenderer)==null?void 0:(M=R.renderer)==null?void 0:M.topBannerImageTextIconButtonedLayoutViewModel)}))!=null?E:!1};
var a2=function(F){if(!_.c("swaterdoo_ps_wn_handle_ks")){F.swatcherooProvideAllDataOnScheduledJob||IkK(F,3E3);var W=F.JSC$20296_watchApi.getPlayerResponse(),E,h,d,V,R,M=(E=F.JSC$20296_watchApi.getWatchNextResponse())==null?void 0:(h=E.contents)==null?void 0:(d=h.twoColumnWatchNextResults)==null?void 0:(V=d.secondaryResults)==null?void 0:(R=V.secondaryResults)==null?void 0:R.offerModule;W=F.hasCompanionAds(W);var g,t;E=(M==null?void 0:(g=M.tvfilmOfferModuleRenderer)==null?void 0:g.clientShouldSuppressIfCompanionAdDisplayed)||
(M==null?void 0:(t=M.unlimitedOfferModuleRenderer)==null?void 0:t.suppressIfCompanionAds);g=W&&E;F.JSC$20296_watchApi.getRoot().is==="ytd-watch-grid"&&F.JSC$20296_watchApi.provideRenderingData("OFFER_MODULE",g?void 0:M)}},IkK=function(F,W){_.c("swatcheroo_pbs_load_grid")&&(F.provideRichGridJobId&&_.P0.cancelJob(F.provideRichGridJobId),F.provideRichGridJobId=_.JG(_.P0,function(){F.provideRichGridJobId=0;
var E,h,d,V,R,M,g,t=(E=F.JSC$20296_watchApi.getWatchNextResponse())==null?void 0:(h=E.contents)==null?void 0:(d=h.twoColumnWatchNextResults)==null?void 0:(V=d.secondaryResults)==null?void 0:(R=V.secondaryResults)==null?void 0:(M=R.results)==null?void 0:(g=M[0])==null?void 0:g.richGridRenderer;t&&F.JSC$20296_watchApi.provideRenderingData("RICH_GRID_RENDERER",t)},W))},vNN=function(F){var W,E;
_.e(function(h){if(h.nextAddress==1)return _.Q(h,F.JSC$20296_watchApi.playerApi,2);W=h.yieldResult;E=function(){F.onPlaybackStart()};
W.addEventListener("onPlaybackStartExternal",E);F.addOnDisposeCallback(function(){W.removeEventListener("onPlaybackStartExternal",E)});
_.gG(h)})};
_.OF.prototype.onPlaybackStart=function(){IkK(this)};_.DKx=function(F){_.xj.call(this);var W=this;this.JSC$20306_watchApi=F;F.playerApi.then(function(E){W.player=E});
this.gestures=new _.Mm(this.JSC$20306_watchApi.getRoot(),F.getElement("PLAYER_CONTAINER"),{dragDownAction:function(){if(_.i66(_.uC().getState())&&_.qP(_.uC().getState())<=0)if(_.Lw(_.uC().getState())){var E;(E=W.player)==null||E.toggleFullscreen()}else _.dW(W.JSC$20306_watchApi.getRoot(),"yt-activate-miniplayer-from-watch-action")}});
cZg(this)};
_.k(_.DKx,_.xj);var cZg=function(F){var W=_.kQ(_.uC(),_.Lw,function(E){F.gestures&&F.gestures.update(E)});
F.addOnDisposeCallback(W);W=_.kQ(_.uC(),_.qP,function(E){F.gestures&&(E>0?F.gestures.detach():F.gestures.attach())});
F.addOnDisposeCallback(W)};_.k7w=function(F){_.xj.call(this);var W=this;this.JSC$20309_watchApi=F;this.clearDataJobId=0;this.pageDisposalDataTypes=[];this.runPageDisposeJob=function(){};
this.runClearDataJob=function(){};
this.runOnYtNavigateAwayFinish=function(){};
this.addOnDisposeCallback(F.subscribeToActiveChanged(function(E){W.onActiveChanged(E)}));
xKu(this)};
_.k(_.k7w,_.xj);var AZT=function(F){if(_.c("swatcheroo_page_dispose_all_watch_data"))F.pageDisposalDataTypes=Object.values(rKw).filter(function(E){return E!=="PLAYLIST"});
else if(_.c("swatcheroo_page_dispose_rich_grid")){var W;(W=F.pageDisposalDataTypes)==null||W.push("RICH_GRID_RENDERER")}},xKu=function(F){_.c("swatcheroo_enable_ghost_cards")&&(AZT(F),F.JSC$20309_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.P0.cancelJob(F.clearDataJobId);
F.clearDataJobId=0}),F.runPageDisposeJob=function(){var W=_.WZ().resolve(_.KQ).getDestinationPageType()==="watch";
F.clearDataJobId=_.JG(_.P0,F.runClearDataJob,W?0:_.dV("web_watch_delay_page_dispose_ms",1E4))},F.runClearDataJob=function(){sNT(F)},F.runOnYtNavigateAwayFinish=function(){F.clearDataJobId&&(_.P0.cancelJob(F.clearDataJobId),F.clearDataJobId=0,sNT(F))},document.addEventListener("yt-navigate-finish",F.runOnYtNavigateAwayFinish),F.JSC$20309_watchApi.addPageDisposeJob(F.runPageDisposeJob),F.addOnDisposeCallback(function(){F.JSC$20309_watchApi.removePageDisposeJob(F.runPageDisposeJob);
F.JSC$20309_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");document.removeEventListener("yt-navigate-finish",F.runOnYtNavigateAwayFinish)}))},sNT=function(F){F.pageDisposalDataTypes.forEach(function(W){F.JSC$20309_watchApi.provideRenderingData(W,void 0)});
F.clearDataJobId=0};
_.k7w.prototype.onActiveChanged=function(F){F&&((F=document.querySelector("#watch-page-skeleton"))&&_.Bb(F),L$K(this),document.body.removeAttribute("no-y-overflow"),_.l0("IS_SHELL_LOAD")&&_.lfK())};
var L$K=function(F){_.e(function(W){if(W.nextAddress==1)return _.Q(W,F.JSC$20309_watchApi.playerApi,2);_.hU();_.gG(W)})};var q78;q78=_.c("kevlar_watch_while_counterfactual")?0:.25;_.b2=function(F){_.xj.call(this);this.JSC$20312_watchApi=F;this.JSC$20312_watchWhileEnabled=_.c("kevlar_watch_while_v2");this.pipEnabled=_.c("web_enable_pip_on_miniplayer");$KK(this);Z9g(this);XxN(this)};
_.k(_.b2,_.xj);var $KK=function(F){F.JSC$20312_watchApi.registerActionHandler("yt-activate-miniplayer-from-watch-action",function(){H9O(F)});
F.addOnDisposeCallback(function(){F.JSC$20312_watchApi.unregisterActionHandler("yt-activate-miniplayer-from-watch-action")})},Z9g=function(F){var W,E;
_.e(function(h){if(h.nextAddress==1)return _.Q(h,F.JSC$20312_watchApi.playerApi,2);W=h.yieldResult;E=function(){H9O(F)};
W.addEventListener("onCollapseMiniplayer",E);F.addOnDisposeCallback(function(){W.removeEventListener("onCollapseMiniplayer",E)});
_.gG(h)})},XxN=function(F){var W=F.JSC$20312_watchApi.getElement("PLAYER_CONTAINER");
window.IntersectionObserver&&W&&F.JSC$20312_watchWhileEnabled&&(F.playerIntersectionObserver=new IntersectionObserver(function(E){F.handleIntersect(E)},{threshold:[q78]}),F.playerIntersectionObserver.observe(W),F.addOnDisposeCallback(function(){var E;
(E=F.playerIntersectionObserver)==null||E.disconnect()}))},H9O=function(F){var W,E,h;
_.e(function(d){if(d.nextAddress==1){W=_.WZ().resolve(_.KQ);E=W.data;h=_.gvY(E.response,E.playerResponse);_.DT().miniplayerButtonActivation=!0;if(F.pipEnabled)return _.DT().watchPipActivation=!0,d.jumpTo(2);_.WZ().resolve(_.GF).collapse();return _.Q(d,_.DT().navigationFinishPromise,2)}if(d.nextAddress!=4)return _.DT().currentEndpoint=h.watchEndpoint||null,_.Q(d,_.WZ().resolve(_.GF).activate(F.JSC$20312_watchApi.getElement("PLAYER"),h,E),4);_.DT().userActivation=!0;_.gG(d)})};
_.b2.prototype.handleIntersect=function(F){P7q(this,F[F.length-1])};
var P7q=function(F,W){F.watchWhileJobId&&_.P0.cancelJob(F.watchWhileJobId);F.watchWhileJobId=_.P0.addLowPriorityJob(function(){var E,h;return _.e(function(d){if(d.nextAddress==1)return F.watchWhileJobId=void 0,E=_.WZ().resolve(_.GF),W.intersectionRatio>q78?E.isMiniplayerActive()?_.Q(d,E.deactivate(),0):d.jumpTo(0):(h=!E.isMiniplayerActive())?_.Q(d,JZw(F),5):d.jumpTo(4);d.nextAddress!=4&&(h=d.yieldResult);if(!h)return d.jumpTo(0);_.DT().watchWhileActivation=!0;return _.Q(d,akw(F),0)})},100)},JZw=function(F){return _.e(function(W){return W.nextAddress==
1?_.c("kevlar_watch_while_paused")?W.return(!0):_.Q(W,F.isPlayerPlaying(),2):W.return(W.yieldResult)})};
_.b2.prototype.isPlayerPlaying=function(){var F=this,W;return _.e(function(E){if(E.nextAddress==1)return _.Q(E,F.JSC$20312_watchApi.playerApi,2);W=E.yieldResult;return E.return(W.getPlayerStateObject().isPlaying)})};
var akw=function(F){var W,E;return _.e(function(h){W=_.WZ().resolve(_.KQ).data;E=_.gvY(W.response,W.playerResponse);_.DT().currentEndpoint=E.watchEndpoint||null;return _.Q(h,_.WZ().resolve(_.GF).activate(F.JSC$20312_watchApi.getElement("PLAYER"),E,W),0)})};_.b9K=function(F){_.xj.call(this);this.JSC$20316_watchApi=F;fkq(this);O9x(this)};
_.k(_.b9K,_.xj);var O9x=function(F){var W,E;_.e(function(h){if(h.nextAddress==1)return _.Q(h,F.JSC$20316_watchApi.playerApi,2);W=h.yieldResult;E=function(d){var V;d.sessionData&&d.sessionData.itct&&(V=d.sessionData.itct);var R=d.watchEndpoint;if(R&&d.sessionData&&d.sessionData.autonav)R=_.o_e(R,V);else{var M;R=_.FD(d.videoId,(M=d.listId)!=null?M:void 0,V)}V={endpoint:R};d.sessionData&&(V.tempData=d.sessionData);F.JSC$20316_watchApi.dispatchEvent("yt-navigate",V)};
W.addEventListener("onPlayVideo",E);F.addOnDisposeCallback(function(){W.removeEventListener("onPlayVideo",E)});
_.gG(h)})},fkq=function(F){var W=function(E){F.onYtNavigate(E)};
F.JSC$20316_watchApi.getRoot().addEventListener("yt-navigate",W);F.addOnDisposeCallback(function(){F.JSC$20316_watchApi.getRoot().removeEventListener("yt-navigate",W)})};
_.b9K.prototype.onYtNavigate=function(F){var W=this,E,h,d,V,R,M,g,t,C;return _.e(function(B){if(B.nextAddress==1){if(!((E=F.detail)==null?0:(h=E.endpoint)==null?0:h.watchEndpoint))return B.return();d=F.detail.endpoint.watchEndpoint;V=W.JSC$20316_watchApi.getWatchNextResponse();M=_.D((R=V)==null?void 0:R.currentVideoEndpoint,_.GM);if(!M)return B.return();if(d.videoId!==M.videoId||d.playlistId&&d.playlistId!==M.playlistId||typeof d.startTimeSeconds!=="number")return B.jumpTo(0);F.stopPropagation();
(g=_.c("kevlar_watch_while_v2")&&!_.c("kevlar_watch_while_counterfactual"))&&_.WZ().resolve(_.GF).isMiniplayerActive()||W.JSC$20316_watchApi.scrollWatchTo(0,!0);return _.Q(B,W.JSC$20316_watchApi.playerApi,3)}t=B.yieldResult;C=d.startTimeSeconds;t.seekTo(C,void 0,void 0,void 0,84);t.wakeUpControls();C<t.getDuration()&&t.playVideo();_.gG(B)})};_.nNK=function(F){_.xj.call(this);var W=this;this.JSC$20319_watchApi=F;var E=this.JSC$20319_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){lkK(W)});
this.addOnDisposeCallback(function(){W.JSC$20319_watchApi.unsubscribeByKey(E)});
lkK(this)};
_.k(_.nNK,_.xj);var lkK=function(F){var W=F.JSC$20319_watchApi.getWatchNextResponse();if(W){var E,h=[].concat(_.x9((E=W==null?void 0:W.engagementPanels)!=null?E:[]));h.unshift.apply(h,_.x9(yZ6(W)));F.JSC$20319_watchApi.provideRenderingData("ENGAGEMENT_PANELS",h)}},jNx=function(F){var W,E,h,d=(W=F.engagementPanels)==null?void 0:(E=W.find(function(x){var A;
return((A=x.engagementPanelSectionListRenderer)==null?void 0:A.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(h=E.engagementPanelSectionListRenderer.content)==null?void 0:h.structuredDescriptionContentRenderer,V;
if(_.D(d==null?void 0:(V=d.items)==null?void 0:V.find(function(x){return!!_.D(x,Dsx)}),Dsx))return!0;
var R,M,g,t;if(F=(((R=F.contents)==null?void 0:(M=R.twoColumnWatchNextResults)==null?void 0:(g=M.results)==null?void 0:(t=g.results)==null?void 0:t.contents)||[]).find(function(x){return x.videoPrimaryInfoRenderer})){var C,B,I;
return(((C=F.videoPrimaryInfoRenderer)==null?void 0:(B=C.videoActions)==null?void 0:(I=B.menuRenderer)==null?void 0:I.flexibleItems)||[]).some(function(x){x=_.D(x,_.KMe);if(!x)return!1;var A,X;x=(A=x.topLevelButton)==null?void 0:(X=A.buttonViewModel)==null?void 0:X.onTap;if(!x)return!1;A=_.He(x);if(!A)return!1;var P;return((P=_.D(A,_.nk))==null?void 0:P.panelIdentifier)==="PAyouchat"})}return!1},yZ6=function(F){var W=[];
if(!_.c("web_watch_inject_placeholder_fantasy_panel_killswitch")){var E,h,d,V=(E=F.engagementPanels)==null?void 0:(h=E.find(function(M){var g;return((g=M.engagementPanelSectionListRenderer)==null?void 0:g.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(d=h.engagementPanelSectionListRenderer.content)==null?void 0:d.structuredDescriptionContentRenderer,R;
_.D(V==null?void 0:(R=V.items)==null?void 0:R.find(function(M){return!!_.D(M,plF)}),plF)&&(E=_.WhG("PAsports_fantasy"),E.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",W.push(E))}jNx(F)&&(F=_.WhG("PAyouchat"),F.engagementPanelSectionListRenderer.targetId="PAyouchat",F.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",W.push(F));
return W};_.rZ6=function(F){_.xj.call(this);this.JSC$20322_watchApi=F;i9K(this)};
_.k(_.rZ6,_.xj);var i9K=function(F){F.JSC$20322_watchApi.registerActionHandler("yt-loop-command",function(W){TKq(F,W)});
F.JSC$20322_watchApi.registerActionHandler("yt-repeat-chapter-command",function(W){oNF(F,W)});
F.addOnDisposeCallback(function(){F.JSC$20322_watchApi.unregisterActionHandler("yt-loop-command");F.JSC$20322_watchApi.unregisterActionHandler("yt-repeat-chapter-command")})},TKq=function(F,W){var E;
_.e(function(h){if(h.nextAddress==1)return _.Q(h,F.JSC$20322_watchApi.playerApi,2);E=h.yieldResult;_.D(W,K5$).loop?(E.setLoopRange({startTimeMs:Number(_.D(W,K5$).startTimeMs),endTimeMs:Number(_.D(W,K5$).endTimeMs),postId:_.D(W,K5$).postId,type:"clips"}),E.playVideo()):E.setLoopRange(null);_.gG(h)})},oNF=function(F,W){var E,h;
_.e(function(d){if(d.nextAddress==1)return _.Q(d,F.JSC$20322_watchApi.playerApi,2);E=d.yieldResult;h=_.D(W,dsx).repeat;h==="REPEAT_CHAPTER_TYPE_ENABLE_REPEAT"?(E.setLoopRange({startTimeMs:Number(_.D(W,dsx).startTimeMs),endTimeMs:Number(_.D(W,dsx).endTimeMs),type:"repeatChapter"}),E.playVideo()):h==="REPEAT_CHAPTER_TYPE_DISABLE_REPEAT"&&E.setLoopRange(null);_.gG(d)})};_.Y7F=function(F){_.xj.call(this);this.JSC$20327_watchApi=F;G7$(this)};
_.k(_.Y7F,_.xj);var G7$=function(F){F.JSC$20327_watchApi.registerActionHandler("yt-watch-player-overflow-menu-command",function(W){wxT(F,W)});
F.addOnDisposeCallback(function(){F.JSC$20327_watchApi.unregisterActionHandler("yt-watch-player-overflow-menu-command")})},wxT=function(F,W){var E,h,d,V,R,M,g,t,C,B,I;
_.e(function(x){if(x.nextAddress==1)return _.Q(x,F.JSC$20327_watchApi.playerApi,2);E=x.yieldResult;if(V=(d=(h=_.D(W,Nyu))==null?void 0:h.highlightedMenuItemKey)!=null?d:"")(M=(R=E).highlightSettingsMenuItem)==null||M.call(R,V);if(C=(t=(g=_.D(W,Nyu))==null?void 0:g.openMenuItemKey)!=null?t:"")(I=(B=E).openSettingsMenuItem)==null||I.call(B,C);_.gG(x)})};var u_N=_.eF("/youtube/app/watch/player_state","playerStateEntity");_.pxF=function(F){_.xj.call(this);this.JSC$20330_watchApi=F;S7x(this)};
_.k(_.pxF,_.xj);var mK6=function(F){switch(F){case 0:return"PLAYER_STATE_FINISHED";case 1:return"PLAYER_STATE_PLAYING";case 2:return"PLAYER_STATE_PAUSED";case 3:return"PLAYER_STATE_LOADING_CONTENT";default:return"PLAYER_STATE_UNKNOWN"}},S7x=function(F){var W,E;
_.e(function(h){if(h.nextAddress==1)return _.Q(h,F.JSC$20330_watchApi.playerApi,2);W=h.yieldResult;E=function(d){F.onPlayerStateChange(d)};
W.addEventListener("onStateChange",E);F.addOnDisposeCallback(function(){W.removeEventListener("onStateChange",E)});
_.gG(h)})};
_.pxF.prototype.onPlayerStateChange=function(F){var W=this,E,h;return _.e(function(d){if(d.nextAddress==1)return _.Q(d,W.JSC$20330_watchApi.playerApi,2);E=d.yieldResult;h=E.getVideoData().video_id;_.ja().dispatch(_.AG("playerStateEntity",u_N,{key:u_N,playerState:mK6(F),videoId:h}));_.gG(d)})};_.K$x=function(F){_.xj.call(this);var W=this;this.JSC$20334_watchApi=F;_.WZ().resolve(_.yH).setPlayer(this.JSC$20334_watchApi.getElement("PLAYER"));F=this.JSC$20334_watchApi.subscribeToActiveChanged(function(E){W.onActiveChanged(E)});
this.addOnDisposeCallback(F)};
_.k(_.K$x,_.xj);_.K$x.prototype.onActiveChanged=function(F){var W=this,E=_.WZ().resolve(_.yH),h=function(){FL$(W)};
F?(F=this.JSC$20334_watchApi.getElement("PLAYLIST_PANEL"))?(E.setPlaylistComponent(F),E.addEventListener("yt-playlist-data-updated",h),this.addOnDisposeCallback(function(){E.removeEventListener("yt-playlist-data-updated",h)}),FL$(this)):_.i0(Error("jm")):(E.removeEventListener("yt-playlist-data-updated",h),E.cancelVideoSkip())};
var FL$=function(F){var W=_.WZ().resolve(_.yH);F.JSC$20334_watchApi.provideRenderingData("PLAYLIST",W.getPlaylistData())};_.l2=function(F){_.xj.call(this);var W=this;this.JSC$20337_watchApi=F;this.onPageScroll=function(){W.scrollThrottle.fire();W.mastheadScrollThrottle.fire()};
this.scrollThrottle=new _.Nv(this.onThrottledScroll,200,this);_.gl(this,this.scrollThrottle);this.mastheadScrollThrottle=new _.Nv(this.onMastheadThrottledScroll,50,this);_.gl(this,this.mastheadScrollThrottle);this.animation=new _.Jd(function(E){W.JSC$20337_watchApi.getRoot().setScrollTop(E)});
F=_.kQ(_.uC(),_.Lw,function(){WLw(W)});
this.addOnDisposeCallback(F);ElP(this);hdu(this);this.onThrottledScroll()};
_.k(_.l2,_.xj);
var WLw=function(F){var W=F.JSC$20337_watchApi.getRoot();!F.pageScrollElement&&W.pageScrollElement?(F.pageScrollElement=W.pageScrollElement,W.pageScrollElement.addEventListener("scroll",F.onPageScroll),F.addOnDisposeCallback(function(){F.pageScrollElement&&F.pageScrollElement.removeEventListener("scroll",F.onPageScroll)})):F.pageScrollElement&&!W.pageScrollElement&&(F.pageScrollElement.removeEventListener("scroll",F.onPageScroll),F.pageScrollElement=void 0)},ElP=function(F){window.addEventListener("scroll",F.onPageScroll);
F.addOnDisposeCallback(function(){window.removeEventListener("scroll",F.onPageScroll)})},hdu=function(F){F.JSC$20337_watchApi.registerActionHandler("yt-scroll-to-watch-element",function(W){a:{var E;
if(E=F.JSC$20337_watchApi.getRoot().contains(W)&&!F.animation.isAnimating()){E=W.tagName==="YTD-ENGAGEMENT-PANEL-SECTION-LIST-RENDERER";var h,d,V=(W==null?void 0:(h=W.parentElement)==null?void 0:(d=h.parentElement)==null?void 0:d.id)==="fixed-secondary";E=!(E&&V)}if(E){if(_.c("kevlar_watch_scroll_manager_absolute_offset_killswitch"))h=W.offsetTop;else for(h=0,d=W;d!==null;)h+=d.offsetTop,h-=d.scrollTop,d=d.offsetParent;d=h;h=d-24;W=d+W.offsetHeight+24;d=F.JSC$20337_watchApi.getRoot().getPageScrollingElement();
E=F.JSC$20337_watchApi.getRoot().getScrollTop();V=E+d.clientHeight-56;if(h<E+56)W=h-56;else if(W>V)W-=d.clientHeight;else break a;F.scrollWatchTo(Math.max(0,W),!0)}}});
F.addOnDisposeCallback(function(){F.JSC$20337_watchApi.unregisterActionHandler("yt-scroll-to-watch-element")})};
_.l2.prototype.onThrottledScroll=function(){var F=_.uC(),W=F.dispatch,E=this.JSC$20337_watchApi.getRoot().getScrollTop();W.call(F,_.dR({type:"SET_WATCH_SCROLL_TOP",payload:{watchScrollTop:E}}))};
_.l2.prototype.onMastheadThrottledScroll=function(){this.JSC$20337_watchApi.dispatchEvent("yt-watch-masthead-scroll",this.JSC$20337_watchApi.getRoot().getScrollTop())};
_.l2.prototype.scrollWatchTo=function(F,W){(W===void 0?0:W)?this.animation.start(this.JSC$20337_watchApi.getRoot().getScrollTop(),Math.max(0,F),500):this.JSC$20337_watchApi.getRoot().setScrollTop(F)};_.VTO=function(F){_.xj.call(this);var W=this;this.JSC$20340_watchApi=F;var E=this.JSC$20340_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){dPK(W)}),h=this.JSC$20340_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){NCN(W)});
this.addOnDisposeCallback(function(){W.JSC$20340_watchApi.unsubscribeByKey(E);W.JSC$20340_watchApi.unsubscribeByKey(h)});
dPK(this);NCN(this)};
_.k(_.VTO,_.xj);
var dPK=function(F){var W,E,h,d=(h=(W=F.JSC$20340_watchApi.getPlayerResponse())==null?void 0:(E=W.videoDetails)==null?void 0:E.title)!=null?h:"";F.JSC$20340_watchApi.dispatchEvent("yt-update-title",d)},NCN=function(F){var W,E,h,d,V,R,M,g=(M=((R=(W=F.JSC$20340_watchApi.getWatchNextResponse())==null?void 0:(E=W.contents)==null?void 0:(h=E.twoColumnWatchNextResults)==null?void 0:(d=h.results)==null?void 0:(V=d.results)==null?void 0:V.contents)!=null?R:[]).find(function(t){return!!t.videoPrimaryInfoRenderer}))==null?
void 0:M.videoPrimaryInfoRenderer;
(W=_.Yr(g==null?void 0:g.title))&&F.JSC$20340_watchApi.dispatchEvent("yt-update-title",W)};_.Rd8=function(F){_.xj.call(this);this.JSC$20343_watchApi=F;UPT(this)};
_.k(_.Rd8,_.xj);var UPT=function(F){var W,E;_.e(function(h){if(h.nextAddress==1)return _.Q(h,F.JSC$20343_watchApi.playerApi,2);W=h.yieldResult;E=function(){F.onYpcContentRequest()};
W.addEventListener("onYpcContentRequest",E);F.addOnDisposeCallback(function(){W.removeEventListener("onYpcContentRequest",E)});
_.gG(h)})};
_.Rd8.prototype.onYpcContentRequest=function(){var F,W,E,h,d,V=(F=this.JSC$20343_watchApi.getWatchNextResponse())==null?void 0:(W=F.contents)==null?void 0:(E=W.twoColumnWatchNextResults)==null?void 0:(h=E.secondaryResults)==null?void 0:(d=h.secondaryResults)==null?void 0:d.offerModule,R,M,g,t;F=(t=(g=(M=(R=V==null?void 0:V.episodeOfferModuleRenderer)!=null?R:V==null?void 0:V.movieOfferModuleRenderer)!=null?M:V==null?void 0:V.unlimitedOfferModuleRenderer)!=null?g:V==null?void 0:V.liveOfferModuleRenderer)!=
null?t:V==null?void 0:V.tvfilmOfferModuleRenderer;var C,B,I;V=(I=V==null?void 0:(C=V.tvfilmOfferModuleRenderer)==null?void 0:(B=C.actionButtons)==null?void 0:B.length)!=null?I:0;B=Math.max(V-1,0);var x,A,X;C=(X=F==null?void 0:(x=F.offerButton)==null?void 0:x.buttonRenderer)!=null?X:F==null?void 0:(A=F.actionButtons)==null?void 0:A[B].buttonRenderer;var P,b;(x=(b=(P=C==null?void 0:C.navigationEndpoint)!=null?P:C==null?void 0:C.serviceEndpoint)!=null?b:C==null?void 0:C.command)&&_.Ru.instance.resolveCommand(x)};
}catch(e){_._DumpException(e)}
try{
var fJ$,PdT,XZK;_.HUP=function(){var F=_.xd.clone(ZUw),W;return(new _.z5(function(E,h){F.onSuccess=function(d){_.amI(d)?E(new XZK(d)):h(new _.Sv("Request failed, status="+_.UJ(d),"net.badstatus",d))};
F.onError=function(d){h(new _.Sv("Unknown request error","net.unknown",d))};
F.onTimeout=function(d){h(new _.Sv("Request timed out","net.timeout",d))};
W=_.Qy("//googleads.g.doubleclick.net/pagead/id",F)})).thenCatch(function(E){if(E instanceof _.FR){var h;
(h=W)==null||h.abort()}return _.xT(E)})};
_.Jc8=function(F){a:{var W="EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(W="EMBEDDED_PLAYER_MODE_PFL");var E=F.raw_embedded_player_response;if(!E&&(F=F.embedded_player_response))try{E=JSON.parse(F)}catch(d){break a}if(E)b:for(var h in PdT)if(PdT[h]==E.embeddedPlayerMode){W=PdT[h];break b}}return W==="EMBEDDED_PLAYER_MODE_PFL"};
_.aJq=function(){if(_.c("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("of");if(!_.dDR())return Error("pf");var F=_.b0("PLAYER_VARS",{});if(_.xd.get(F,"privembed",!1)=="1")return Error("qf");if(_.Jc8(F))return Error("rf")};
fJ$=function(F){switch(F){case 0:return"BISCOTTI_BASED_DETECTION_RESULT_DETECTED";case 1:return"BISCOTTI_BASED_DETECTION_RESULT_NOT_DETECTED";case 2:return"BISCOTTI_BASED_DETECTION_RESULT_UNSPECIFIED";case 3:return"BISCOTTI_BASED_DETECTION_RESULT_KNOWN_FAILURE";case 4:return"BISCOTTI_BASED_DETECTION_RESULT_UNKNOWN_FAILURE";default:_.RO(F,"unknown result type")}};
_.OU6=function(F,W,E){W=_.hJb[W];E={detected:F===0,source:W.fke,detectionResult:fJ$(F),contentCpn:E};_.Pc("biscottiBasedDetection",E);_.ZpT.increment(W.fke,F);W.pvi!==void 0&&_.OG("CATSTAT",_.W2Y(F,W))};
_.pA=function(F,W){var E={};E.key=F;E.value=W;return _.XUY().then(function(h){return new Promise(function(d,V){try{var R=h.transaction("swpushnotificationsstore","readwrite").objectStore("swpushnotificationsstore").put(E);R.onsuccess=function(){d()};
R.onerror=function(){V()}}catch(M){V(M)}})})};
_.lJK=function(){var F=_.dV("user_engagement_experiments_rate_limit_ms"),W=bU$.get("last-user-engagement-exp-trigger-timestamp");return!W||(0,_.KU)()>=W+F?(bU$.set("last-user-engagement-exp-trigger-timestamp",(0,_.KU)()),!0):!1};
_.mS=function(F,W,E,h,d){W=W===void 0?null:W;E=E===void 0?null:E;h=h===void 0?null:h;d=d===void 0?null:d;F={youThereEventType:F};E&&(F.lactThresholdMs=E.lactThresholdMs,F.mediaPosSec=E.promptDelaySec,F.lactServerRequestMs=E.lactServerRequestMs,F.triggerReason=E.triggerReason);d!=null&&(F.renderingMediaPosSec=Math.round(d));W||(W=_.JR());W&&(F.clientScreenNonce=W);h&&(F.clientPlaybackNonce=h);_.Pc("youThere",F)};
PdT={EMBEDDED_PLAYER_MODE_UNKNOWN:"EMBEDDED_PLAYER_MODE_UNKNOWN",EMBEDDED_PLAYER_MODE_DEFAULT:"EMBEDDED_PLAYER_MODE_DEFAULT",EMBEDDED_PLAYER_MODE_PFP:"EMBEDDED_PLAYER_MODE_PFP",EMBEDDED_PLAYER_MODE_PFL:"EMBEDDED_PLAYER_MODE_PFL"};XZK=function(F){this.xhr=F};
_.Sv=function(F,W,E){_.Fe.call(this,F+", errorCode="+W);this.errorCode=W;this.xhr=E;this.name="PromiseAjaxError"};
_.k(_.Sv,_.Fe);var ZUw={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0};var bU$=new _.bY("ratelimit");
}catch(e){_._DumpException(e)}
try{
_.MUF=function(F){return _.dR({type:"SET_SINGLE_OPTION_SURVEY_IS_ACTIVE",payload:F})};
}catch(e){_._DumpException(e)}
try{
var i2,c2$,xPK,kq6,A2w,sET,$Pw,Oww,bwO,lY6,LLK,qrq,DPu,P9$,Hw8,jEN;_.IYP=function(){var F=window.location.hash;F.charAt(0)==="#"&&(F=F.charAt(1)==="!"?F.substring(2):F.substring(1));return _.oW(F)};
i2=function(F,W,E){var h;return _.e(function(d){if(d.nextAddress==1)return _.Q(d,W(),2);h=d.yieldResult;E(h,F);_.gG(d)})};
c2$=function(){return _.e(function(F){return F.nextAddress==1?_.Q(F,(_.aJq()!==void 0?_.xT(Error("sf")):_.HUP()).then(function(){return 1},function(W){if(W.message==="Biscotti id is disabled")return 3;
_.OB("Failed fetching bid");return 0}),2):F.return(F.yieldResult)})};
xPK=function(){var F=_.KV("cHN1NXJpeXQtaGF2ZW4tZW1iZWQtcGxheWVyI3M2eGg5bg=="),W=_.KV("ZGdlMzF5aWZyYW1lI3g3aG5uYw==");return document.querySelector(W+DPu+F)?0:1};
kq6=function(){return _.rlW(_.wL)};
A2w=function(){return _.T_n()===0?0:_.oEr()};
sET=function(){return _.fzn(_.gEY([["player-ads",["ytd-merch-shelf-renderer","ytp-featured-product"]]]))};
$Pw=function(){for(var F=function(d){return _.KV(d)},W=[LLK,
qrq],E=2,h=0;h<W.length&&(E=_.fzn(_.gEY(W[h],F)),E!==0);h++);return E};
_.Zw8=function(F){_.e(function(W){switch(W.nextAddress){case 1:return _.Q(W,i2("b.f_",c2$,F),2);case 2:return _.Q(W,i2("j.s_",_.Jln,F),3);case 3:return _.Q(W,i2("r.s_",_.X2I,F),4);case 4:return _.Q(W,i2("e.h_",$Pw,F),5);case 5:if(!_.c("ab_det_sc_inj")){W.jumpTo(6);break}return _.Q(W,i2("s.i_",_.jvr,F),6);case 6:if(_.c("ab_deg_unex_thr")){W.jumpTo(8);break}return _.Q(W,i2("a.o_",_.nEY,F),8);case 8:if(_.c("ks_get_o_pp")){W.jumpTo(10);break}return _.Q(W,i2("g.o_",_.lzR,F),10);case 10:if(_.c("ks_det_gpbl")){W.jumpTo(12);
break}return _.Q(W,i2("p.i_",_.byG,F),12);case 12:return _.Q(W,i2("f.i_",_.IzR,F),14);case 14:return _.Q(W,i2("a.b_",_.$XS,F),15);case 15:return _.Q(W,i2("p.m_",_.xXn,F),16);case 16:if(!_.c("ab_det_el_h_v2")){W.jumpTo(17);break}return _.Q(W,i2("n.h_",sET,F),17);case 17:return _.Q(W,i2("o.p_",kq6,F),19);case 19:if(!_.c("ab_det_em_inj")){W.jumpTo(20);break}return _.Q(W,i2("e.i_",xPK,F),20);case 20:if(_.c("ab_det_apm"))return _.Q(W,i2("o.a_",A2w,F),0);W.jumpTo(0)}})};
_.X_g=function(F,W){F={videoId:F};W&&(F.playlistId=W);return F};
_.J2q=function(){if(_.dDR()){var F=_.b0("PLAYER_VARS",{});if(_.xd.get(F,"privembed",!1)!="1"&&!_.Jc8(F)){var W=function(){Hw8=!0;"google_ad_status"in window?_.OG("DCLKSTAT",1):_.OG("DCLKSTAT",2)};
try{_.lI("//static.doubleclick.net/instream/ad_status.js",W)}catch(E){}P9$.push(_.P0.addLowPriorityJob(function(){if(!(Hw8||"google_ad_status"in window)){try{_.SsG("//static.doubleclick.net/instream/ad_status.js",W)}catch(E){}Hw8=!0;_.OG("DCLKSTAT",3)}},5E3))}}};
_.rg=function(F,W,E){E=E===void 0?!1:E;var h=Math.max(F.width,_.kbN);if(_.c("kevlar_watch_feed_big_thumbs")&&F.width>=1550-_.Jp()&&F.height>=800)h-=_.Z4K;else if(F.width>=_.b9){var d=_.AoN+_.sBK+_.Or;_.c("kevlar_watch_feed_big_thumbs")&&(d=_.$sO);h-=d}else h-=_.AoN;h=Math.min(h,_.Luu);d=240;E&&(d=380);W<.5624||(!_.c("kevlar_watch_flexy_disable_small_window_sizing")&&(F.height<630&&F.width>=657||F.height>=630&&F.width>=_.b9&&F.width<1327)?d=360:!_.c("kevlar_watch_flexy_disable_large_window_sizing")&&
F.height>=630&&F.width>=1327&&(d=480));var V=Math.min(h*W,F.height-(56+_.xs6+_.q3T));V=Math.max(V,d);W<1?h=V/W:F.width>=_.b9&&(h=_.rg(F,.5625,E).width);return new _.Rl(Math.round(h),Math.round(V))};
_.aYK=function(F){var W=0;F.indexOf("h")!=-1&&(F=F.split("h"),W=F[0]*60*60,F=F[1]);F.indexOf("m")!=-1&&(F=F.split("m"),W=F[0]*60+W,F=F[1]);F.indexOf("s")!=-1?(F=F.split("s"),W=F[0]*1+W):W=F*1+W;return W};
_.fY6=function(){_.dV("service_worker_push_logged_out_prompt_watches")!=-1&&_.KZ("WatchCount").then(function(F){F>=100||_.pA("WatchCount",F+1)})};
Oww=function(F){var W=F.externalVideoId||"";return W?(_.c("webfe_watch_shorts_canonical_url_fix")||_.b0("MWEB_ALLOW_SHORTS_CANONICAL_URL_FIX"))&&F.isShortsEligible?"https://www.youtube.com/shorts/"+W:"https://www.youtube.com/watch?v="+W:""};
bwO=function(F){var W=[];F.viewCount&&W.push({"@type":"InteractionCounter",interactionType:"https://schema.org/WatchAction",userInteractionCount:F.viewCount});F.likeCount&&W.push({"@type":"InteractionCounter",interactionType:"https://schema.org/LikeAction",userInteractionCount:F.likeCount});return W};
lY6=function(F){var W,E,h={"@context":"https://schema.org","@type":"VideoObject",description:_.Yr(F.description),duration:"PT"+(F.lengthSeconds||"0")+"S",embedUrl:F.embed?F.embed.iframeUrl:"",name:_.Yr(F.title),thumbnailUrl:((W=F.thumbnail)==null?void 0:(E=W.thumbnails)==null?void 0:E.map(function(C){return C&&C.url||""}))||[],
uploadDate:F.publishDate};_.c("mweb_video_schema_id_killswitch")||(h["@id"]=Oww(F));W=bwO(F);W.length&&(h.interactionStatistic=W);F.category&&(h.genre=F.category);F.ownerChannelName&&(h.author=F.ownerChannelName);F.liveBroadcastDetails&&(h.publication=[{"@type":"BroadcastEvent",isLiveBroadcast:!0,startDate:F.liveBroadcastDetails.startTimestamp,endDate:F.liveBroadcastDetails.endTimestamp}]);if(F.learningResource){F=F.learningResource;h["@type"]=["VideoObject","LearningResource"];var d;if((d=F.learningResourceType)==
null?0:d.length)h.learningResourceType=F.learningResourceType[0];var V;if((V=F.educationalAlignment)==null?0:V.length)h.educationalAlignment={"@type":"AlignmentObject",targetName:F.educationalAlignment[0]};var R;if((R=F.educationalLevel)==null?0:R.length){d=F.educationalLevel[0];var M;if((M=F.educationalLevelCountry)==null?0:M.length)d+=" ("+F.educationalLevelCountry+")";h.educationalLevel=d}var g,t;if(((g=F.learningResourceType)==null?0:g.length)&&F.learningResourceType[0]==="Problem walkthrough"&&
((t=F.problemDescriptions)==null?0:t.length))for(h.hasPart=[],M=_.U(F.problemDescriptions),g=M.next();!g.done;g=M.next())d=g.value,g=d.problemDescriptionText,t=d.startOffset,d=d.url,g&&t!==void 0&&d&&h.hasPart.push({"@type":["Clip","LearningResource"],learningResourceType:"Problem walkthrough",name:g,text:g,startOffset:t,url:d})}return h};
_.nlu=function(F){return _.dR({type:"SET_IS_LIVE_CHAT_COLLAPSED",payload:{isLiveChatCollapsed:F}})};
LLK=[["djVvN3Y1cHJpbWFyeSN5aDloeXo=",null],[null,["dXcyODF6eXRkLXR3by1jb2x1bW4tYnJvd3NlLXJlc3VsdHMtcmVuZGVyZXIjM3hiNzFk","MzZtODJzc3R5bGUtc2NvcGUjcnpmNnVt"]],["bm9tMWo0bWFzdGhlYWQtYWQjbGNkcm1y",["eWl6ZDZueXRkLXJpY2gtZ3JpZC1yZW5kZXJlciM5enJqZmk="]],[null,["ZzJxdWk2eXRkLXJpY2gtZ3JpZC1yZW5kZXJlciMzZTBucA==","Mnoyc2pvc3R5bGUtc2NvcGUjemIzODE="]],[null,["eGtncDhqeXRkLWJhbm5lci1wcm9tby1yZW5kZXJlciM5YTd2aHg=","N3JwaXlrc3R5bGUtc2NvcGUjanp3ajBt"]],[null,["N2U2ajR6eXRkLWFkLXNsb3QtcmVuZGVyZXIjMW1yMWwy"]]];
qrq=[["aXBsYmhkcGxheWVyLWFkcyNwZXRtbmc=",null]];DPu="#";P9$=[];Hw8=!1;_.y28=["engagement-panel-ads"];jEN=new _.S("updateSentimentBarStateCommand");_.iwg=new _.S("showSurveyCommand");_.Te=new _.S("changeMarkersVisibilityCommand");var TCw,olq,ua$,w_6,Yrw,o2;_.r2K=function(F,W){this.playerProvider_=F;this.actionSenderElement_=W;this.pausePlaybackJob_=this.showBlockingWarningJob_=this.showWarningJob_=0;this.youThereData_=null;this.inYouThereFlow_=this.ignoreFullscreenExitUserActivity_=this.isUserPredictedAbsent_=!1};
_.r2K.prototype.reset=function(){TCw(this);this.isUserPredictedAbsent_=!1};
TCw=function(F,W){!F.youThereData_||F.showWarningJob_||W!==void 0&&W||(_.mS("YOU_THERE_EVENT_TYPE_NAVIGATED_OUT",_.JR(),F.youThereData_,F.clientPlaybackNonce_),_.JV());_.P0.cancelJob(F.showWarningJob_);F.showWarningJob_=0;_.P0.cancelJob(F.showBlockingWarningJob_);F.showBlockingWarningJob_=0;_.P0.cancelJob(F.pausePlaybackJob_);F.pausePlaybackJob_=0;F.youThereData_=null;F.clientPlaybackNonce_=void 0;F.inYouThereFlow_=!1};
_.Gq6=function(F,W){var E,h,d;_.e(function(V){if(V.nextAddress==1)return F.reset(),_.Q(V,F.playerProvider_().getPlayerPromise(),2);E=V.yieldResult;F.clientPlaybackNonce_=E.getVideoData().cpn;F.youThereData_=W.configData.youThereData;if(!F.youThereData_)return V.return();if(F.youThereData_.triggerReason&&F.youThereData_.triggerReason=="YOU_THERE_TRIGGER_REASON_3"&&!_.lJK())return _.mS("YOU_THERE_EVENT_TYPE_RATE_LIMITED",_.JR(),F.youThereData_,F.clientPlaybackNonce_),V.return();h=F.youThereData_.promptDelaySec;
d=E.getCurrentTime();F.showWarningJob_=_.P0.addLowPriorityJob(function(){return _.e(function(R){F.showWarningJob_=0;return _.Q(R,olq(F),0)})},Math.max(h-d,0)*1E3);
_.gG(V)})};
olq=function(F){var W,E,h,d,V,R;return _.e(function(M){if(M.nextAddress==1)return _.Q(M,F.playerProvider_().getPlayerPromise(),2);if(M.nextAddress!=3)return W=M.yieldResult,E=W.getCurrentTime(),_.Q(M,Yrw(F),3);h=M.yieldResult;if(!h||!F.youThereData_)return M.return();if(_.c("check_user_lact_at_prompt_shown_time_on_web")&&(d=parseInt(F.youThereData_.lactThresholdMs,10),_.hV()<d))return _.mS("YOU_THERE_EVENT_TYPE_BELOW_LACT_THRESHOLD",_.JR(),F.youThereData_,F.clientPlaybackNonce_),M.return();if(F.youThereData_.playbackPauseDelayMs<=
0)return w_6(F),M.return();!_.c("external_fullscreen")&&(V=_.Kg())&&(F.ignoreFullscreenExitUserActivity_=!0,_.P0.addLowPriorityJob(function(){F.ignoreFullscreenExitUserActivity_=!1},2E3),_.Fj(V));
F.youThereData_.showToastWarningPrompt&&(o2(F,F.youThereData_.showWarningActions),F.inYouThereFlow_=!0,_.mS("YOU_THERE_EVENT_TYPE_PROMPT_SHOWN",_.JR(),F.youThereData_,F.clientPlaybackNonce_,E),_.mS("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN",_.JR(),F.youThereData_,F.clientPlaybackNonce_,E));R=0;F.youThereData_.blockingPromptDelayMs&&(R=F.youThereData_.blockingPromptDelayMs);F.showBlockingWarningJob_=_.P0.addLowPriorityJob(function(){return _.e(function(g){F.showBlockingWarningJob_=0;return _.Q(g,
ua$(F),0)})},R);
_.gG(M)})};
ua$=function(F){var W,E,h;return _.e(function(d){if(d.nextAddress==1)return _.Q(d,Yrw(F),2);W=d.yieldResult;if(!F.youThereData_)return d.return();W&&(F.youThereData_.showBlockingWarningAction&&(_.mS("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN_IN_DIALOG",_.JR(),F.youThereData_,F.clientPlaybackNonce_),(E=_.D(F.youThereData_.showBlockingWarningAction,_.Mc))?o2(F,E.commands):o2(F,[F.youThereData_.showBlockingWarningAction]),F.inYouThereFlow_=!0),h=F.youThereData_.playbackPauseDelayMs,F.pausePlaybackJob_=
_.P0.addLowPriorityJob(function(){return _.e(function(V){F.pausePlaybackJob_=0;return _.Q(V,w_6(F),0)})},h));
_.gG(d)})};
w_6=function(F){var W;return _.e(function(E){if(E.nextAddress==1)return _.Q(E,Yrw(F),2);W=E.yieldResult;if(!F.youThereData_)return E.return();W&&(_.mS("YOU_THERE_EVENT_TYPE_PLAYBACK_PAUSED",_.JR(),F.youThereData_,F.clientPlaybackNonce_),o2(F,F.youThereData_.showPausedActions),F.inYouThereFlow_=!0);_.gG(E)})};
_.r2K.prototype.onUserActivity=function(){if(this.youThereData_){if(this.ignoreFullscreenExitUserActivity_)return;if(this.youThereData_.userActiveDuringFlowAction){var F=_.D(this.youThereData_.userActiveDuringFlowAction,_.Mc);F?o2(this,F.commands):o2(this,[this.youThereData_.userActiveDuringFlowAction])}this.inYouThereFlow_&&(_.mS("YOU_THERE_EVENT_TYPE_LACT_RESET",_.JR(),this.youThereData_,this.clientPlaybackNonce_),_.JV());TCw(this,!0)}_.Srg(this,!1)};
_.p_w=function(F){_.mS("YOU_THERE_EVENT_TYPE_USER_RESPONDED",_.JR(),F.youThereData_,F.clientPlaybackNonce_)};
Yrw=function(F){var W,E;return _.e(function(h){if(h.nextAddress==1)return _.Q(h,F.playerProvider_().getPlayerPromise(),2);W=h.yieldResult;E=W.getPlayerState();return h.return(E==-1||E==1||E==3)})};
_.Srg=function(F,W){var E;_.e(function(h){if(h.nextAddress==1){if(F.isUserPredictedAbsent_==W)return h.jumpTo(0);F.isUserPredictedAbsent_=W;return _.Q(h,F.playerProvider_().getPlayerPromise(),3)}E=h.yieldResult;E.setUserEngagement(W);W&&_.mS("YOU_THERE_EVENT_TYPE_ABR_TRIGGERED",_.JR(),F.youThereData_,F.clientPlaybackNonce_);_.gG(h)})};
o2=function(F,W){if(_.c("handle_service_request_actions")||_.c("kevlar_youthere_service_endpoint_actions_killswitch"))_.Rj(F.actionSenderElement_,W,F.actionSenderElement_);else{W=_.U(W);for(var E=W.next();!E.done;E=W.next())E=E.value,E.commandMetadata&&E.commandMetadata.webCommandMetadata&&E.commandMetadata.webCommandMetadata.sendPost?_.UT(F.actionSenderElement_,[E]):_.Rj(F.actionSenderElement_,[E],F.actionSenderElement_)}};var mPK;var KLT;var Ge=function(){var F=_.n.apply(this,arguments)||this;F.systemIcons=_.c("kevlar_system_icons");F.actionMap={"yt-update-sentiment-bar-state-command":"handleUpdateSentimentBarStateCommand"};return F};
_.k(Ge,_.n);Ge.prototype.observeLikeStatus=function(){if(this.data){if(this.data.likeStatus==="DISLIKE"){var F=this.data.percentIfDisliked||0;this.activated=!0}else this.data.likeStatus==="LIKE"?(F=this.data.percentIfLiked||0,this.activated=!0):(F=this.data.percentIfIndifferent||0,this.activated=!1);_.Z(this.hostElement).querySelector("#like-bar").style.width=F+"%"}};
Ge.prototype.handleUpdateSentimentBarStateCommand=function(F){this.data&&this.set("data.likeStatus",_.D(F,jEN).likeStatus)};
Ge.prototype.observeLikeStatus=Ge.prototype.observeLikeStatus;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Ge.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],Ge.prototype,"ytActionHandlerBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],Ge.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Ge.prototype,"activated",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],Ge.prototype,"systemIcons",void 0);_.T([_.ea("data.likeStatus"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Ge.prototype,"observeLikeStatus",null);Ge=_.T([_.y({is:"ytd-sentiment-bar-renderer",disableElementRegistration:!0})],Ge);
_.r(Ge,"ytd-sentiment-bar-renderer",function(){if(KLT!==void 0)return KLT;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sentiment-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-sentiment-bar-renderer">\n  <div id="like-bar" class="style-scope ytd-sentiment-bar-renderer"></div>\n</div>\n<tp-yt-paper-tooltip position="top" class="style-scope ytd-sentiment-bar-renderer">[[data.tooltip]]</tp-yt-paper-tooltip>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return KLT=F},{mode:1});var FPT;var Yk=function(){var F=_.n.apply(this,arguments)||this;F.small=!0;return F};
_.k(Yk,_.n);_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],Yk.prototype,"ytComponentBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],Yk.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],Yk.prototype,"small",void 0);Yk=_.T([_.y({disableElementRegistration:!0,is:"ytd-video-view-count-renderer"})],Yk);
_.r(Yk,"ytd-video-view-count-renderer",function(){if(FPT!==void 0)return FPT;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-view-count-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<span class="view-count style-scope ytd-video-view-count-renderer">[[getSimpleString(data.viewCount)]]</span><span class="short-view-count style-scope ytd-video-view-count-renderer">[[getSimpleString(data.shortViewCount)]]</span>');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return FPT=F},{mode:_.E6("kevlar_poly_si_batch_j080")?1:2});var wg=function(){var F=_.n.apply(this,arguments)||this;F.infoFormattedStrings=[];F.wrapVideoActions=_.c("kevar_watch_wrap_video_actions");F.hideSentimentBar=_.c("kevlar_watch_hide_sentiment_bar");F.actionMap={};return F};
_.k(wg,_.n);_.N=wg.prototype;_.N.configureRendererStamper=function(){return{"data.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,tonalOverride:_.c("web_modern_buttons"),forceIconButton:!_.c("web_modern_buttons")}}}},"data.viewCount":{id:"count",mapping:{videoViewCountRenderer:"ytd-video-view-count-renderer"}}}};
_.N.dataChanged=function(){_.c("web_watch_get_updated_metadata_manager")||this.scheduleInitialUpdatedMetadataRequest();this.setSentimentBarWidth()};
_.N.computeInfoFormattedStrings=function(F){if(!F)return[];var W=[];F.dateText&&W.push(F.dateText);F.stationName&&W.push(F.stationName);F.rating&&W.push(F.rating);F.startEndTimeTemplate&&F.startTimeUtcMillis&&F.endTimeUtcMillis&&W.push(_.Gr(_.jfq(_.Yr(F.startEndTimeTemplate),Number(F.startTimeUtcMillis),Number(F.endTimeUtcMillis))));F.upNextProgramText&&W.push(F.upNextProgramText);return W};
_.N.scheduleInitialUpdatedMetadataRequest=function(){var F,W=(F=this.data)==null?void 0:F.updatedMetadataEndpoint;if(W){var E;F=Number((E=_.D(W,_.J7U))==null?void 0:E.initialDelayMs);E=isNaN(F)?250:F;this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this),E)}};
_.N.setSentimentBarWidth=function(){var F=this;_.wT(this,function(){var W=_.Z(F.hostElement).querySelector("ytd-menu-renderer");if(W){W=W.topLevelButtons;for(var E=0,h=0;h<W.length;h++){var d=W[h],V=F.get("toggleButtonSupportedData.toggleButtonIdData.id",d.data);if(V==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"||V==="TOGGLE_BUTTON_ID_TYPE_LIKE")E+=d.clientWidth+8;else break}E&&(F.sentiment.style.width=E-8+" px")}})};
_.N.fetchUpdatedMetadata=function(F){var W;F&&(W={continuation:F});var E;(F=(E=this.data)==null?void 0:E.updatedMetadataEndpoint)&&_.WZ().resolve(_.EJ).resolveCommand(F,{form:Object.assign({},W,{element:this.hostElement})})};
_.N.onYtServiceRequestSent=function(F,W){W.endpoint&&_.D(W.endpoint,_.KI)&&(this.hasUpdateSentimentBarStateCommands()&&!_.c("kevlar_sentiment_bar_update_killswitch")||this.set("data.sentimentBar.sentimentBarRenderer.likeStatus",_.D(W.endpoint,_.KI).status),this.setSentimentBarWidth())};
_.N.hasUpdateSentimentBarStateCommands=function(){var F,W,E,h,d=(h=(F=this.data)==null?void 0:(W=F.videoActions)==null?void 0:(E=W.menuRenderer)==null?void 0:E.topLevelButtons)!=null?h:[];F=_.U(d);for(W=F.next();!W.done;W=F.next()){W=W.value;d=h=E=void 0;var V=(E=W.toggleButtonRenderer)==null?void 0:(h=E.toggleButtonSupportedData)==null?void 0:(d=h.toggleButtonIdData)==null?void 0:d.id;if(V==="TOGGLE_BUTTON_ID_TYPE_LIKE"||V==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"){h=E=void 0;W=(h=_.D((E=W.toggleButtonRenderer)==
null?void 0:E.defaultServiceEndpoint,_.Mc))==null?void 0:h.commands;if(!W)break;W=_.U(W);for(E=W.next();!E.done;E=W.next())if(_.D(E.value,jEN))return!0}}return!1};
_.N.onYtServiceRequestCompleted=function(F,W){var E;(F=(E=W.data)==null?void 0:E.loggingDirectives)&&_.Kkr(_.z4(),F);this.get("continuation.timedContinuationData",W.data)&&this.data&&this.data.updatedMetadataEndpoint&&(W=W.data.continuation.timedContinuationData,this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this,W.continuation),W.timeoutMs))};
_.N.computeHasDateText=function(F){return!!F&&!!F.dateText};
_.Sn.Object.defineProperties(wg.prototype,{flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var F,W,E,h;return!((h=(F=this.data)==null?void 0:(W=F.videoActions)==null?void 0:(E=W.menuRenderer)==null?void 0:E.flexibleItems)==null||!h.length)}}});
wg.prototype.onYtServiceRequestCompleted=wg.prototype.onYtServiceRequestCompleted;wg.prototype.onYtServiceRequestSent=wg.prototype.onYtServiceRequestSent;wg.prototype.dataChanged=wg.prototype.dataChanged;_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],wg.prototype,"ytActionHandlerBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],wg.prototype,"ytRendererBehavior",void 0);
_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],wg.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.ua.YtTaskEmitterBehavior),_.Y("design:type",Object)],wg.prototype,"ytTaskEmitterBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],wg.prototype,"data",void 0);_.T([_.O({computed:"computeInfoFormattedStrings(data)"}),_.Y("design:type",Array)],wg.prototype,"infoFormattedStrings",void 0);
_.T([_.O({computed:"computeHasDateText(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],wg.prototype,"hasDateText",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],wg.prototype,"wrapVideoActions",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],wg.prototype,"hideSentimentBar",void 0);_.T([_.O({reflectToAttribute:!0}),_.a("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],wg.prototype,"flexMenuEnabled",null);
_.T([_.gQ("#sentiment"),_.Y("design:type",Object)],wg.prototype,"sentiment",void 0);_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],wg.prototype,"dataChanged",null);_.T([_.R4("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.nQ]),_.Y("design:returntype")],wg.prototype,"onYtServiceRequestSent",null);
_.T([_.R4("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.uz]),_.Y("design:returntype")],wg.prototype,"onYtServiceRequestCompleted",null);
_.r(wg,"ytd-video-primary-info-renderer",function(){if(mPK===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-primary-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-video-primary-info-renderer"><ytd-badge-supported-renderer hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-video-primary-info-renderer"></ytd-badge-supported-renderer><a class="yt-simple-endpoint style-scope ytd-video-primary-info-renderer" hidden="[[!data.superTitleIcon]]" href$="[[computeHref_(data.superTitleLink.runs.0.navigationEndpoint)]]" aria-label$="[[data.superTitleLink.accessibility.accessibilityData.label]]" data="[[data.superTitleLink.runs.0.navigationEndpoint]]"><yt-icon class="super-title-icon style-scope ytd-video-primary-info-renderer" icon="yt-icons:location_pin"></yt-icon></a><yt-formatted-string class="super-title style-scope ytd-video-primary-info-renderer" force-default-style="" text="[[data.superTitleLink]]"></yt-formatted-string><h1 class="title style-scope ytd-video-primary-info-renderer"><yt-formatted-string force-default-style="" text="[[data.title]]" class="style-scope ytd-video-primary-info-renderer"></yt-formatted-string></h1><ytd-badge-supported-renderer badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-video-primary-info-renderer"></ytd-badge-supported-renderer><div id="info" class="style-scope ytd-video-primary-info-renderer"><div id="info-text" class="style-scope ytd-video-primary-info-renderer"><div id="count" hidden="[[!data.viewCount]]" class="style-scope ytd-video-primary-info-renderer"></div><div id="info-strings" hidden="[[!infoFormattedStrings.length]]" class="style-scope ytd-video-primary-info-renderer"><span id="dot" hidden="[[!data.viewCount]]" class="style-scope ytd-video-primary-info-renderer"></span><template is="dom-repeat" items="[[infoFormattedStrings]]" class="style-scope ytd-video-primary-info-renderer"><yt-formatted-string text="[[item]]" class="style-scope ytd-video-primary-info-renderer"></yt-formatted-string></template></div></div><div id="flex" class="style-scope ytd-video-primary-info-renderer"></div><div id="menu-container" class="style-scope ytd-video-primary-info-renderer"><div id="menu" class="style-scope ytd-video-primary-info-renderer"></div><ytd-sentiment-bar-renderer id="sentiment" data="[[data.sentimentBar.sentimentBarRenderer]]" hidden="[[!data.sentimentBar.sentimentBarRenderer]]" class="style-scope ytd-video-primary-info-renderer"></ytd-sentiment-bar-renderer></div></div></div>');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);mPK=F}F=mPK;return F},{mode:1});var WPO;var u2=function(){var F=_.n.apply(this,arguments)||this;F.actionMap={"yt-update-date-text-action":"handleUpdateDateTextAction","yt-update-description-action":"handleUpdateDescriptionAction","yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return F};
_.k(u2,_.n);_.N=u2.prototype;_.N.configureRendererStamper=function(){return{subscribeButtonData:{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:{component:"ytd-subscribe-button-renderer",params:{withCount:!0}},subscriptionNotificationToggleButtonRenderer:"ytd-subscription-notification-toggle-button-renderer"}}}};
_.N.dataChanged=function(){var F;this.descriptionToggled=!((F=this.data)==null||!F.defaultExpanded);var W;this.collapsed=this.descriptionAlwaysCollapsed||!((W=this.data)==null?0:W.defaultExpanded);this.subscribeButtonData=this.data.subscribeButton;this.descriptionCollapsedHeight=(this.data.descriptionCollapsedLines||3)*20;this.showMoreClientVe=_.LQ(110509);this.showLessClientVe=_.LQ(110510);F=_.JR();W=_.Pf();F&&W&&_.j7(F,W,[this.showMoreClientVe,this.showLessClientVe])};
_.N.onYtExpanderMoreTapped=function(){var F,W=(F=this.data)==null?void 0:F.showMoreCommand;W&&!this.hasInlineStructuredDescription&&this.componentBehavior.resolveCommand(W);(F=_.JR())&&this.showMoreClientVe&&_.oj(F,this.showMoreClientVe)};
_.N.onYtExpanderLessTapped=function(){var F=_.JR();F&&this.showLessClientVe&&_.oj(F,this.showLessClientVe);var W;(F=(W=this.data)==null?void 0:W.showLessCommand)&&this.componentBehavior.resolveCommand(F)};
_.N.handleUpdateDateTextAction=function(F){this.data&&this.data.dateText&&this.set("data.dateText",_.D(F,_.Cq6).dateText)};
_.N.handleUpdateDescriptionAction=function(F){if(F=_.D(F,_.xIO))F.isEmpty||!F.description?this.description.hidden=!0:this.hasAttributedDescription?this.set("data.attributedDescription",_.qr(F.description)):this.set("data.description",F.description)};
_.N.onYtChangeEngagementPanelVisibilityAction=function(F){if(_.c("web_structured_description_show_more")||_.c("web_engagement_panel_open_description")){var W,E=(W=_.D(F,_.tPH))==null?void 0:W.targetId,h;F=((h=_.D(F,_.tPH))==null?void 0:h.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED";E==="engagement-panel-structured-description"&&F&&(this.descriptionToggled=!0)}};
_.N.updateCollapsedFromBinding=function(F){this.collapsed=F.detail.value};
_.N.updateDescriptionToggledFromBinding=function(F){this.descriptionToggled=F.detail.value};
_.N.updateCanCollapseFromBinding=function(F){this.canCollapse=F.detail.value};
_.Sn.Object.defineProperties(u2.prototype,{metadataCollapsible:{configurable:!0,enumerable:!0,get:function(){var F,W,E=(F=this.data)==null?void 0:(W=F.metadataRowContainer)==null?void 0:W.metadataRowContainerRenderer;return!!E&&!!E.rows&&E.rows.length>E.collapsedItemCount}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!!this.structuredDescriptionContentRenderer}},
hasAttributedDescription:{configurable:!0,enumerable:!0,get:function(){var F;return!((F=this.data)==null||!F.attributedDescription)}},
loadStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return this.hasInlineStructuredDescription}},
showInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return this.hasInlineStructuredDescription&&!this.collapsed}},
descriptionAlwaysCollapsible:{configurable:!0,enumerable:!0,get:function(){return this.hasInlineStructuredDescription||this.metadataCollapsible}}});
u2.prototype.onYtExpanderLessTapped=u2.prototype.onYtExpanderLessTapped;u2.prototype.onYtExpanderMoreTapped=u2.prototype.onYtExpanderMoreTapped;u2.prototype.dataChanged=u2.prototype.dataChanged;_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],u2.prototype,"ytActionHandlerBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],u2.prototype,"ytRendererBehavior",void 0);
_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],u2.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],u2.prototype,"componentBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],u2.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Boolean)],u2.prototype,"collapsed",void 0);_.T([_.O(),_.Y("design:type",Boolean)],u2.prototype,"descriptionToggled",void 0);
_.T([_.O(),_.Y("design:type",Boolean)],u2.prototype,"canCollapse",void 0);_.T([_.O(),_.Y("design:type",Object)],u2.prototype,"subscribeButtonData",void 0);_.T([_.O(),_.Y("design:type",Number)],u2.prototype,"descriptionCollapsedHeight",void 0);_.T([_.O(),_.Y("design:type",Object)],u2.prototype,"structuredDescriptionContentRenderer",void 0);_.T([_.O({value:function(){return _.c("web_watch_description_always_collapsed")}}),
_.Y("design:type",Boolean)],u2.prototype,"descriptionAlwaysCollapsed",void 0);_.T([_.gQ("#description"),_.Y("design:type",HTMLDivElement)],u2.prototype,"description",void 0);_.T([_.Cz("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],u2.prototype,"dataChanged",null);_.T([_.R4("yt-expander-more-tapped"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],u2.prototype,"onYtExpanderMoreTapped",null);
_.T([_.R4("yt-expander-less-tapped"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],u2.prototype,"onYtExpanderLessTapped",null);_.T([_.a("data.metadataRowContainer"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],u2.prototype,"metadataCollapsible",null);_.T([_.a("data","structuredDescriptionContentRenderer"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],u2.prototype,"hasInlineStructuredDescription",null);
_.T([_.a("data.attributedDescription"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],u2.prototype,"hasAttributedDescription",null);_.T([_.a("hasInlineStructuredDescription","collapsed"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],u2.prototype,"loadStructuredDescription",null);_.T([_.a("data","structuredDescriptionContentRenderer","collapsed"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],u2.prototype,"showInlineStructuredDescription",null);
_.T([_.a("data","hasInlineStructuredDescription","metadataCollapsible"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],u2.prototype,"descriptionAlwaysCollapsible",null);
_.r(u2,"ytd-video-secondary-info-renderer",function(){if(WPO===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-secondary-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-video-secondary-info-renderer"><div id="top-row" class="style-scope ytd-video-secondary-info-renderer"><ytd-video-owner-renderer data="[[data.owner.videoOwnerRenderer]]" subscribe-key="[[subscribeButtonData.subscribedEntityKey]]" class="style-scope ytd-video-secondary-info-renderer"><span class="date style-scope ytd-video-secondary-info-renderer" slot="date">[[getSimpleString(data.dateText)]]</span></ytd-video-owner-renderer><div id="subscribe-button" class="style-scope ytd-video-secondary-info-renderer"></div></div><ytd-expander always-collapsed="[[descriptionAlwaysCollapsed]]" always-toggleable="[[descriptionAlwaysCollapsible]]" can-toggle="[[canCollapse]]" collapsed="[[collapsed]]" collapsed-height="[[descriptionCollapsedHeight]]" is-toggled="[[descriptionToggled]]" on-can-toggle-changed="updateCanCollapseFromBinding" on-collapsed-changed="updateCollapsedFromBinding" on-is-toggled-changed="updateDescriptionToggledFromBinding" class="style-scope ytd-video-secondary-info-renderer"><div id="description" slot="content" class="style-scope ytd-video-secondary-info-renderer"><yt-attributed-string class="content style-scope ytd-video-secondary-info-renderer" data="[[data.attributedDescription]]" disable-upgrade$="[[!hasAttributedDescription]]" hidden="[[!hasAttributedDescription]]" user-input=""></yt-attributed-string><yt-formatted-string class="content style-scope ytd-video-secondary-info-renderer" disable-upgrade$="[[hasAttributedDescription]]" force-default-style="" hidden="[[hasAttributedDescription]]" split-lines="[[!hasAttributedDescription]]" text="[[data.description]]"></yt-formatted-string><ytd-structured-description-content-renderer data="[[structuredDescriptionContentRenderer]]" disable-upgrade$="[[!loadStructuredDescription]]" hidden="[[!showInlineStructuredDescription]]" inline-structured-description="[[hasInlineStructuredDescription]]" class="style-scope ytd-video-secondary-info-renderer"></ytd-structured-description-content-renderer></div><ytd-metadata-row-container-renderer class="sticky style-scope ytd-video-secondary-info-renderer" slot="sticky" collapsed="[[collapsed]]" data="[[data.metadataRowContainer.metadataRowContainerRenderer]]"></ytd-metadata-row-container-renderer><yt-formatted-string class="more-button style-scope ytd-video-secondary-info-renderer" slot="more-button" role="button" text="[[data.showMoreText]]"></yt-formatted-string><yt-formatted-string class="less-button style-scope ytd-video-secondary-info-renderer" slot="less-button" role="button" text="[[data.showLessText]]"></yt-formatted-string></ytd-expander></div>');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);WPO=F}F=WPO;return F},{mode:2});var EIq;var SI=function(){return _.n.apply(this,arguments)||this};
_.k(SI,_.n);SI.prototype.configureRendererStamper=function(){return{"data.scrollUpButton":{id:"scroll-up",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,tonalOverride:_.c("web_modern_buttons"),forceIconButton:!_.c("web_modern_buttons")}}}},"data.subscribeButton":{id:"subscribe",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
SI.prototype.activate=function(F){F.appendTo(this.player);F.getPlayerPromise().then(function(W){W.setMinimized(!0)});
this.active=!0};
SI.prototype.deactivate=function(){var F=this.player.firstElementChild;F.getPlayerPromise().then(function(W){W.setMinimized(!1)});
this.active=!1;return F};
SI.prototype.onScrollUpTap=function(){var F=_.WZ().resolve(_.KQ).getCurrentPage();F&&F.setScrollTop(0)};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],SI.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],SI.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],SI.prototype,"componentBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],SI.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],SI.prototype,"active",void 0);
_.T([_.O({reflectToAttribute:!0,value:function(){return _.c("kevlar_watch_while_miniplayer_bar_dark_launch")}}),
_.Y("design:type",Boolean)],SI.prototype,"darkLaunch",void 0);_.T([_.gQ("#player"),_.Y("design:type",HTMLDivElement)],SI.prototype,"player",void 0);SI=_.T([_.y({disableElementRegistration:!0,is:"ytd-miniplayer-bar-renderer"})],SI);
_.r(SI,"ytd-miniplayer-bar-renderer",function(){if(EIq!==void 0)return EIq;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-miniplayer-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="player" class="style-scope ytd-miniplayer-bar-renderer"></div>\n<div id="meta" class="style-scope ytd-miniplayer-bar-renderer">\n  <div id="title-row" class="style-scope ytd-miniplayer-bar-renderer">\n    <h1 id="title" class="style-scope ytd-miniplayer-bar-renderer">[[getSimpleString(data.title)]]</h1>\n    <div id="scroll-up" on-tap="onScrollUpTap" class="style-scope ytd-miniplayer-bar-renderer"></div>\n  </div>\n  <yt-formatted-string id="owner" link-inherit-color="" text="[[data.owner]]" class="style-scope ytd-miniplayer-bar-renderer"></yt-formatted-string>\n  <div id="buttons" class="style-scope ytd-miniplayer-bar-renderer">\n    <div id="menu" class="style-scope ytd-miniplayer-bar-renderer"></div>\n    <div id="subscribe" class="style-scope ytd-miniplayer-bar-renderer"></div>\n  </div>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return EIq=F},{mode:1});_.pK(_.GK(function(F){var W=_.uf();_.q6(function(){var E;if(E=JSON)E=lY6(F.data()),E=_.OW(JSON.stringify(E).replace(/</g,"\\u003C"));var h=F.data(),d=_.Yr(h.title).trim().length===0,V=!h.publishDate||h.publishDate.trim().length===0,R,M,g,t,C=!((R=h.thumbnail)==null?0:(M=R.thumbnails)==null?0:M.length)||!((g=h.thumbnail)==null?0:g.thumbnails[0].url)||((t=h.thumbnail)==null?void 0:t.thumbnails[0].url.trim().length)===0;W.value&&E&&!(d||V||C)&&_.li(W.value,E)});
return _.z("player-microformat-renderer",{class:"playerMicroformatRendererHost"},_.z("script",{el:W,type:"application/ld+json"}))},"gj"),"player-microformat-renderer",{props:{data:_.Si}});
}catch(e){_._DumpException(e)}
try{
var C9K;_.edg=function(F){return F.watch.watchWindowSize};
_.MTK=function(F){return _.dR({type:"SET_IS_WATCH_ACTIVE",payload:{isWatchActive:F}})};
C9K=function(F){_.xj.call(this);var W=this;this.JSC$20347_watchApi=F;F=_.kQ(_.uC(),_.DZn,function(){gl6(W)});
this.addOnDisposeCallback(F);F=_.kQ(_.uC(),_.edg,function(){gl6(W)});
this.addOnDisposeCallback(F);QEq(this);zd$(this);tTq()};
_.k(C9K,_.xj);var QEq=function(F){var W=function(h){_.uC().dispatch(_.ftT(h.matches))},E=window.matchMedia("(max-width: "+(999+_.Jp())+"px)");
E.addListener(W);F.addOnDisposeCallback(function(){E.removeListener(W)});
W(E)},zd$=function(F){F.JSC$20347_watchApi.registerActionHandler("yt-window-resized",function(){tTq()});
F.addOnDisposeCallback(function(){F.JSC$20347_watchApi.unregisterActionHandler("yt-window-resized")})},tTq=function(){var F=_.cB();
_.uC().dispatch(_.dR({type:"SET_WATCH_WINDOW_SIZE",payload:{watchWindowSize:{width:F.width,height:F.height}}}))},gl6=function(F){var W;
_.e(function(E){if(E.nextAddress==1)return _.Q(E,F.JSC$20347_watchApi.playerApi,2);W=E.yieldResult;W.setSize(NaN,NaN);_.gG(E)})};_.n0=function(F){_.Fl.call(this);var W=this;this.rootElement=F;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return W.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(E){W.initOrDisposeActiveModules(E)}));
this.onAttached()};
_.k(_.n0,_.Fl);_.N=_.n0.prototype;_.N.getRoot=function(){return this.rootElement};
_.N.getElement=function(F){return this.rootElement.getElement(F)};
_.N.setPlayerResponse=function(F){this.playerResponse=F;this.publish("PLAYER_RESPONSE_UPDATED",F)};
_.N.getPlayerResponse=function(){return this.playerResponse};
_.N.setWatchNextResponse=function(F){this.watchNextResponse===F?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=F,this.publish("WATCH_NEXT_RESPONSE_UPDATED",F))};
_.N.getWatchNextResponse=function(){return this.watchNextResponse};
_.N.registerActionHandler=function(F,W){var E=this;if(_.c("web_watch_controller_reg_multiple_handlers_killswitch")){var h={};_.G5(_.o_.getInstance(),(h[F]=W,h),this.getRoot())}else this.actionHandlers.has(F)||(this.actionHandlers.set(F,[]),h={},_.G5(_.o_.getInstance(),(h[F]=function(){var d=_.Dd.apply(0,arguments);return(E.actionHandlers.get(F)||[]).map(function(V){return V.apply(null,_.x9(d))})},h),this.getRoot())),this.actionHandlers.get(F).push(W)};
_.N.unregisterActionHandler=function(F){if(_.c("web_watch_controller_reg_multiple_handlers_killswitch")){var W={};_.Yt(_.o_.getInstance(),(W[F]=!0,W),this.getRoot())}else(W=this.actionHandlers.get(F))?(W.pop(),W.length===0&&(W={},_.Yt(_.o_.getInstance(),(W[F]=!0,W),this.getRoot()),this.actionHandlers.delete(F))):_.OB(new _.xC("Attempted to unregister an action handler which is not registered.",F))};
_.N.addPageDisposeJob=function(F){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.GR(this.rootElement.pageDisposeJobs,F)};
_.N.removePageDisposeJob=function(F){this.rootElement.pageDisposeJobs&&_.mY(this.rootElement.pageDisposeJobs,F)};
_.N.dispatchEvent=function(F,W){_.hF(this.rootElement,F,W)};
_.N.provideRenderingData=function(F,W){this.rootElement.provideRenderingData(F,W)};
_.N.scrollWatchTo=function(F,W){var E;(E=this.watchScrollManager)==null||E.scrollWatchTo(F,W)};
_.N.focusOnPlayer=function(){var F=this.getElement("PLAYER");_.wT(F,function(){if(F&&F.firstElementChild){var W=F.querySelector(".html5-video-player");W&&(_.mC(_.WZ().resolve(_.$Y)),W.focus())}else _.OB(Error("km"))})};
_.N.updateCinematicFullscreenConfig=function(){var F=!!this.rootElement.theater,W=!!this.rootElement.fullscreen,E;(E=this.watchCinematicManager)==null||_.eeO(E,W,F)};
_.N.subscribeToActiveChanged=function(F,W){W=W===void 0?!0:W;var E=_.kQ(_.uC(),_.i66,function(h){F(h)});
W&&F(_.i66(_.uC().getState()));return E};
_.N.isActive=function(){return _.i66(_.uC().getState())};
_.N.onAttached=function(){var F=_.c("external_fullscreen");_.c("use_unified_flag_accessor")&&(F=_.WZ().resolve(_.Gz6).retriever.getFlag(_.unH));(F||_.l0("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
var BCu=function(F){return F.getRoot().is==="ytd-watch-flexy"||F.getRoot().is==="ytd-watch-grid"},yU=function(F){return F.getRoot().is==="ytd-watch-fixie"};
_.n0.prototype.initPersistentModules=function(){if(yU(this)||BCu(this)&&_.c("kevlar_watch_flexy_theater_manager")){var F=new _.l7w(this);_.gl(this,F)}F=new _.k7w(this);_.gl(this,F);F=new _.Z8(this);_.gl(this,F);F=new _.OF(this);_.gl(this,F);F=new _.pxF(this);_.gl(this,F);F=new _.HR(this);_.gl(this,F);if(yU(this)||BCu(this)&&_.c("kevlar_watch_flexy_playlist_manager"))F=new _.K$x(this),_.gl(this,F)};
_.n0.prototype.initOrDisposeActiveModules=function(F){F?(this.watchScrollManager=new _.l2(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new _.b9K(this)),this.activeModules.push(new _.jwx(this)),yU(this)&&this.activeModules.push(new C9K(this)),this.activeModules.push(new _.VTO(this)),this.activeModules.push(new _.b2(this)),(yU(this)||_.c("kevlar_watch_flexy_error_screen_data_provider"))&&this.activeModules.push(new _.o1x(this)),this.activeModules.push(new _.rZ6(this)),
(yU(this)||_.c("kevlar_watch_flexy_ypc_manager"))&&this.activeModules.push(new _.Rd8(this)),(yU(this)||_.c("kevlar_watch_flexy_ads_manager"))&&this.activeModules.push(new _.F$K(this)),_.c("kevlar_watch_cinematics")&&(this.watchCinematicManager=new _.NKK(this),this.activeModules.push(this.watchCinematicManager),this.updateCinematicFullscreenConfig()),_.c("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new _.Y7F(this)),_.c("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new _.DKx(this)),
F=_.c("swatcheroo_directly_provide_comments")&&this.getRoot().is==="ytd-watch-grid",_.c("kevlar_watch_flexy_comments_manager")&&!F&&this.activeModules.push(new _.C76(this)),_.c("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new _.Xo(this)),this.activeModules.push(new _.Gw$(this)),this.activeModules.push(new _.nNK(this)),_.c("web_enable_timely_actions")&&this.activeModules.push(new _.S5K(this)),_.c("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new _.I7K(this)),
_.c("web_watch_enable_multiview_manager")&&this.activeModules.push(new _.ehF(this)),_.c("web_fullscreen_video_action_bar")&&this.activeModules.push(new _.u$w(this)),_.c("web_player_rtr_ctrls")&&this.activeModules.push(new _.D8K(this))):(_.pC(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.n0.prototype.disposeInternal=function(){_.Fl.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.Sn.Object.defineProperties(_.n0.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});
}catch(e){_._DumpException(e)}
try{
var yuP,Lt,jM6,iAq,T0$,o$$,ruF,GP6;yuP=function(){var F=_.D2();F.info||(F.info={});return F.info};
Lt=function(F){return Math.round(_.kb()+F)};
jM6=function(){var F;if(_.c("csi_use_performance_navigation_timing")){var W,E,h,d=_.xb==null?void 0:(F=_.xb.getEntriesByType)==null?void 0:(W=F.call(_.xb,"navigation"))==null?void 0:(E=W[0])==null?void 0:(h=E.toJSON)==null?void 0:h.call(E);d?(d.requestStart=Lt(d.requestStart),d.responseEnd=Lt(d.responseEnd),d.redirectStart=Lt(d.redirectStart),d.redirectEnd=Lt(d.redirectEnd),d.domainLookupEnd=Lt(d.domainLookupEnd),d.connectStart=Lt(d.connectStart),d.connectEnd=Lt(d.connectEnd),d.responseStart=Lt(d.responseStart),
d.secureConnectionStart=Lt(d.secureConnectionStart),d.domainLookupStart=Lt(d.domainLookupStart),d.isPerformanceNavigationTiming=!0,F=d):F=_.xb.timing}else F=_.c("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(_.xb.timing)):_.xb.timing;return F};
iAq=function(){if(_.xb.getEntriesByType){var F=_.xb.getEntriesByType("paint");if(F=_.yo(F,function(E){return E.name==="first-paint"}))return Lt(F.startTime)}var W;
_.c("csi_use_performance_navigation_timing")?W=_.xb.getEntriesByType("first-paint")[0].startTime:W=_.xb.timing.msFirstPaint;return W?Math.max(0,W):0};
T0$=function(){var F=window.location.protocol,W=_.xb.getEntriesByType("resource");W=_.QF(W,function(E){return E.name.indexOf(F+"//fonts.gstatic.com/s/")===0});
(W=ruF(W,function(E,h){return h.duration>E.duration?h:E}))&&W.startTime>0&&W.responseEnd>0&&(_.AF("wffs",Lt(W.startTime)),_.AF("wffe",Lt(W.responseEnd)))};
o$$=function(F,W){F=document.querySelector(F);if(!F)return!1;var E="",h=F.nodeName;h==="SCRIPT"?(E=F.src,E||(E=F.getAttribute("data-timing-href"))&&(E=window.location.protocol+E)):h==="LINK"&&(E=F.href);_.aI(document)&&F.setAttribute("nonce",_.aI(document));return E?(F=_.xb.getEntriesByName(E))&&F[0]&&(F=F[0],E=_.kb(),_.AF("rsf_"+W,E+Math.round(F.fetchStart)),_.AF("rse_"+W,E+Math.round(F.responseEnd)),F.transferSize!==void 0&&F.transferSize===0)?!0:!1:!1};
_.q8=function(F,W){_.yn(function(){_.far("").info.actionType=F;W&&_.OG("TIMING_AFT_KEYS",W);_.OG("TIMING_ACTION",F);var E=_.pMo(_.b0("TIMING_INFO",{}));Object.keys(E).length>0&&_.sT(E);E={isNavigation:!0,actionType:_.laY(_.b0("TIMING_ACTION"))};var h=_.b0("PREVIOUS_ACTION");h&&(E.previousAction=_.laY(h));if(h=_.b0("CLIENT_PROTOCOL"))E.httpProtocol=h;if(h=_.b0("CLIENT_TRANSPORT"))E.transportProtocol=h;(h=_.JR())&&h!=="UNDEFINED_CSN"&&(E.clientScreenNonce=h);h=_.SDY();if(h===1||h===-1)E.isVisible=!0;
h=_.$DS().loadType==="cold";var d=yuP();h||(h=d.yt_lt==="cold");if(h){E.loadType="cold";h=yuP();d=jM6();var V=_.kb(),R=_.b0("CSI_START_TIMESTAMP_MILLIS",0);R>0&&!_.c("embeds_web_enable_csi_start_override_killswitch")&&(V=R);V&&(_.AF("srt",d.responseStart),h.prerender!==1&&_.rJR(V));h=iAq();h>0&&_.AF("fpt",h);h=jM6();h.isPerformanceNavigationTiming&&_.sT({performanceNavigationTiming:!0},void 0);_.AF("nreqs",h.requestStart,void 0);_.AF("nress",h.responseStart,void 0);_.AF("nrese",h.responseEnd,void 0);
h.redirectEnd-h.redirectStart>0&&(_.AF("nrs",h.redirectStart,void 0),_.AF("nre",h.redirectEnd,void 0));h.domainLookupEnd-h.domainLookupStart>0&&(_.AF("ndnss",h.domainLookupStart,void 0),_.AF("ndnse",h.domainLookupEnd,void 0));h.connectEnd-h.connectStart>0&&(_.AF("ntcps",h.connectStart,void 0),_.AF("ntcpe",h.connectEnd,void 0));h.secureConnectionStart>=_.kb()&&h.connectEnd-h.secureConnectionStart>0&&(_.AF("nstcps",h.secureConnectionStart,void 0),_.AF("ntcpe",h.connectEnd,void 0));_.xb&&"getEntriesByType"in
_.xb&&T0$();h=[];if(document.querySelector&&_.xb&&_.xb.getEntriesByName)for(var M in GP6)GP6.hasOwnProperty(M)&&(d=GP6[M],o$$(M,d)&&h.push(d));if(h.length>0)for(E.resourceInfo=[],M=_.U(h),h=M.next();!h.done;h=M.next())E.resourceInfo.push({resourceCache:h.value})}_.sT(E);E=_.XMr();E.preLoggedGelInfos||(E.preLoggedGelInfos=[]);M=E.preLoggedGelInfos;E=_.H3n();h=void 0;for(d=0;d<M.length;d++)if(V=M[d],V.loadType){h=V.loadType;break}if(_.$DS().loadType==="cold"&&(E.loadType==="cold"||h==="cold")){h=_.Z3r();
d=_.XMr();d=d.gelTicks?d.gelTicks:d.gelTicks={};for(var g in h)if(!(g in d))if(typeof h[g]==="number")_.AF(g,_.LY(g));else if(_.c("log_repeated_ytcsi_ticks"))for(V=_.U(h[g]),R=V.next();!R.done;R=V.next())R=R.value,_.AF(g.slice(1),R);g={};h=!1;M=_.U(M);for(d=M.next();!d.done;d=M.next())h=d.value,_.HPR(E,h),_.HPR(g,h),h=!0;h&&_.sT(g)}_.KTw(!0);g=_.b0("TIMING_ACTION");_.ju("ytglobal.timingready_")&&g&&_.eHe()&&_.mDe()&&_.wMY()})()};
ruF=function(F,W){return Array.prototype.reduce.call(F,W,{duration:0})};
GP6={'script[name="scheduler/scheduler"]':"sj",'script[name="player/base"]':"pj",'link[rel="preload"][name="player/embed"]':"pej",'link[rel="stylesheet"][name="www-player"]':"pc",'link[rel="stylesheet"][name="player/www-player"]':"pc",'script[name="desktop_polymer/desktop_polymer"]':"dpj",'link[rel="import"][name="desktop_polymer"]':"dph",'script[name="mobile-c3"]':"mcj",'link[rel="stylesheet"][name="mobile-c3"]':"mcc",'script[name="player-plasma-ias-phone/base"]':"mcppj",'script[name="player-plasma-ias-tablet/base"]':"mcptj",
'link[rel="stylesheet"][name="mobile-polymer-player-ias"]':"mcpc",'link[rel="stylesheet"][name="mobile-polymer-player-svg-ias"]':"mcpsc",'script[name="mobile_blazer_core_mod"]':"mbcj",'link[rel="stylesheet"][name="mobile_blazer_css"]':"mbc",'script[name="mobile_blazer_logged_in_users_mod"]':"mbliuj",'script[name="mobile_blazer_logged_out_users_mod"]':"mblouj",'script[name="mobile_blazer_noncore_mod"]':"mbnj","#player_css":"mbpc",'script[name="mobile_blazer_desktopplayer_mod"]':"mbpj",'link[rel="stylesheet"][name="mobile_blazer_tablet_css"]':"mbtc",
'script[name="mobile_blazer_watch_mod"]':"mbwj",'script[name="embed_client"]':"ecj",'link[rel="stylesheet"][name="embed-ui"]':"ecc"};var YS8={};YS8.YtVisibilityRootBehavior=[_.B4H.YtVisibilityObserverBehavior,{isVisibilityRoot:!0,resetVisibilityRoot:function(){_.u5(this.visibilityObserverForChild_)},
disconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.disconnect(_.b0("INNERTUBE_CLIENT_NAME")==="WEB")},
reconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.reconnect();var F=_.b0("INNERTUBE_CLIENT_NAME")!=="WEB";_.c("kevlar_use_vimio_behavior")&&F&&_.xec()}}];_.$v={};_.$v.YtPageBehavior=[[{listeners:{"yt-get-context-provider":"getContextProvider_"},attached:function(){this.getProvidedContext()&&this.getProvidedContext().start()},
detached:function(){this.getProvidedContext()&&this.getProvidedContext().pause()},
getContextProvider_:function(F){F.detail.contextProvider=this;F.stopPropagation()},
getProvidedContext:function(){return null}},
{created:function(){this.pageContext=null},
getProvidedContext:function(){return this.pageContext}}],
YS8.YtVisibilityRootBehavior,{_noAccessors:!0,properties:{active:Boolean,data:Object,loading:Boolean,pageDisposeJobs:Array},observers:["ytPageBehaviorActiveObserver_(active)"],created:function(){this.pageCount=0;this.readyResolver_=_.G_();this.pageScrollElement=null;this.isVisibilityRoot=!0},
ready:function(){this.readyResolver_.resolve()},
getReady:function(){return this.readyResolver_.promise},
loadPage:function(F){var W=this;this.pageCount+=1;_.c("kevlar_use_vimio_behavior")&&(_.b0("INNERTUBE_CLIENT_NAME")==="WEB"?_.P0.addJob(function(){W.reconnectVisibilityRoot()},8):(this.disconnectVisibilityRoot(),this.reconnectVisibilityRoot()));
this.loadPage_(F)},
loadPage_:function(F){this.data=F},
ytPageBehaviorActiveObserver_:function(F){var W=this;_.c("kevlar_use_vimio_behavior")&&(F?_.b0("INNERTUBE_CLIENT_NAME")==="WEB"?_.P0.addJob(function(){W.reconnectVisibilityRoot()},8):this.reconnectVisibilityRoot():this.disconnectVisibilityRoot())},
setScrollTop:function(F){if(!this.setScrollTopJobId_){var W=this;this.setScrollTopJobId_=window.requestAnimationFrame(function(){W.setScrollTopJobId_=0;var E=_.WZ().resolve(_.Fd(_.$Y));E&&_.mC(E);this.getPageScrollingElement().scrollTop=F}.bind(this))}},
getPageScrollingElement:function(){return this.pageScrollElement||_.PK(document)},
getScrollTop:function(){return this.getPageScrollingElement().scrollTop}}];
}catch(e){_._DumpException(e)}
try{
var n$6;var s5=function(){var F=_.n.apply(this,arguments)||this;F.playerListenerConfig=null;F.actionMap={"yt-show-watch-page-survey":"openSurvey"};return F};
_.k(s5,_.n);_.N=s5.prototype;_.N.dataChanged=function(){var F=this,W=_.WS();W&&W.getPlayerPromise().then(function(h){F.maybeRemovePlayerListeners(h)});
var E=this.data&&this.data.survey;E&&((E=(E=E.singleOptionSurveyRenderer||E.checkboxSurveyRenderer||E.multiStageSurveyRenderer)&&E.watchPageDisplayTriggers)?this.triggerWatchPageSurvey(W,E):this.openSurvey())};
_.N.triggerWatchPageSurvey=function(F,W){var E=this,h,d,V,R,M,g,t,C,B;return _.e(function(I){if(I.nextAddress==1)return F?_.Q(I,F.getPlayerPromise(),2):I.return();E.player=I.yieldResult;if(!E.player)return I.return();h={};d=_.U(W);for(V=d.next();!V.done;V=d.next())R=V.value,M=_.U(E.createEventListenerPair(R)),g=M.next().value,t=M.next().value,C=g,B=t,C&&B&&(h[C]=B,E.ytPlayerListenerBehavior.listenToPlayerEvent(E.player,C,B));E.playerListenerConfig=h;_.gG(I)})};
_.N.createEventListenerPair=function(F){var W=F.playbackEventTrigger;return W?this.handlePlaybackTrigger(W):(F=F.watchTimeTrigger)?this.handleWatchTimeTrigger(F):[void 0,void 0]};
_.N.handleWatchTimeTrigger=function(F){var W=this;this.accumulatedMediaTime=this.lastKnownPlaybackPosition=0;var E=F.videoWatchFraction,h=F.watchTimeSec;return h&&E?["onVideoProgress",function(){W.player&&W.isWatchTimeConditionMet(W.player,E,h)&&W.showSurvey()}]:[void 0,
void 0]};
_.N.isWatchTimeConditionMet=function(F,W,E){var h=F.getProgressState(),d=h.current-this.lastKnownPlaybackPosition;d<5&&(this.accumulatedMediaTime+=d);this.lastKnownPlaybackPosition=h.current;h=Math.round(this.accumulatedMediaTime/h.duration*1E3)/1E3;return F.getPresentingPlayerType&&F.getPresentingPlayerType()===1&&(this.accumulatedMediaTime>E||h>W)};
_.N.handlePlaybackTrigger=function(F){var W=this;F=F.playbackEvent;if(F==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_PLAYBACK_FINISH"){var E="onStateChange";var h=function(d){d===0&&W.showSurvey()}}else F==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_CONTENT_VIDEO_START"?(E="onVideoProgress",h=function(d){W.player&&W.player.getPresentingPlayerType&&W.player.getPresentingPlayerType()===1&&d&&W.showSurvey()}):F==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_AD_FINISH"&&(E="onAdEnd",h=this.showSurvey);
return[E,h]};
_.N.showSurvey=function(){this.openSurvey();this.player&&this.maybeRemovePlayerListeners(this.player)};
_.N.openSurvey=function(){var F=this,W=this.data&&this.data.survey;this.ytdReduxBehavior.dispatch(_.MUF(!!W));_.P0.addJob(function(){F.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"SURVEY",popup:W}})},0,0)};
_.N.maybeRemovePlayerListeners=function(F){if(this.playerListenerConfig){for(var W=_.U(Object.keys(this.playerListenerConfig)),E=W.next();!E.done;E=W.next())E=E.value,this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(F,E,this.playerListenerConfig[E]);this.playerListenerConfig=null}};
s5.prototype.dataChanged=s5.prototype.dataChanged;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],s5.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Gf),_.Y("design:type",Object)],s5.prototype,"ytdOpenPopupBehavior",void 0);_.T([_.J(_.om.YtPlayerListenerBehavior),_.Y("design:type",_.G$)],s5.prototype,"ytPlayerListenerBehavior",void 0);_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],s5.prototype,"ytActionHandlerBehavior",void 0);
_.T([_.J(_.am),_.Y("design:type",Object)],s5.prototype,"ytdReduxBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],s5.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Object)],s5.prototype,"playerListenerConfig",void 0);_.T([_.O({value:0}),_.Y("design:type",Number)],s5.prototype,"lastKnownPlaybackPosition",void 0);_.T([_.O({value:0}),_.Y("design:type",Number)],s5.prototype,"accumulatedMediaTime",void 0);_.T([_.O(),_.Y("design:type",Object)],s5.prototype,"player",void 0);
_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],s5.prototype,"dataChanged",null);s5=_.T([_.y({is:"ytd-survey-trigger-renderer",disableElementRegistration:!0})],s5);
_.r(s5,"ytd-survey-trigger-renderer",function(){if(n$6!==void 0)return n$6;var F=document.createElement("template");_.L(F,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-survey-trigger-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n");F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return n$6=F},{mode:1});
}catch(e){_._DumpException(e)}
try{
var A6x=new _.S("promotedSparklesWebRenderer");var sfK=new _.S("relatedChipCommand");var LWK;var qux;var B_=function(){return _.n.apply(this,arguments)||this};
_.k(B_,_.n);B_.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],B_.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],B_.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],B_.prototype,"data",void 0);B_=_.T([_.y({disableElementRegistration:!0,is:"ytd-compact-tvfilm-entry-point-renderer"})],B_);
_.r(B_,"ytd-compact-tvfilm-entry-point-renderer",function(){if(qux!==void 0)return qux;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-tvfilm-entry-point-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="style-scope ytd-compact-tvfilm-entry-point-renderer"><span id="title" class="style-scope ytd-compact-tvfilm-entry-point-renderer">[[getSimpleString(data.title)]]</span><span id="subtitle" class="style-scope ytd-compact-tvfilm-entry-point-renderer">[[getSimpleString(data.subtitle)]]</span></div><div id="action-button" class="style-scope ytd-compact-tvfilm-entry-point-renderer"></div>');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return qux=F},{mode:1});var $AN;var Z6x;var XVu;var v_=function(){return _.n.apply(this,arguments)||this};
_.k(v_,_.n);v_.prototype.ready=function(){this.initializeDefs()};
v_.prototype.initializeDefs=function(){var F=this.meta.byKey("yt-icons"),W=_.Z(F).querySelector("#star"),E=_.Z(F).querySelector("#star_half");F=_.Z(F).querySelector("#star_border");W&&this.defs.appendChild(W.cloneNode(!0));E&&this.defs.appendChild(E.cloneNode(!0));F&&this.defs.appendChild(F.cloneNode(!0))};
v_.prototype.percentChanged=function(){for(var F=this.rating;F.firstChild;)F.removeChild(F.firstChild);var W=Math.round(this.percent/10);F=Math.floor(W/2);W%=2;var E=5-F-W;this.appendStars("star",F,0);this.appendStars("star_half",W,F);this.appendStars("star_border",E,F+W)};
v_.prototype.appendStars=function(F,W,E){for(var h=0;h<W;h++){var d=(18+this.spacing)*(h+E),V=document.createElementNS("http://www.w3.org/2000/svg","use");_.gdN(V,"#"+F);V.setAttribute("x",""+d);V.setAttribute("y","0");this.rating.appendChild(V)}};
v_.prototype.percentChanged=v_.prototype.percentChanged;_.T([_.gQ("#defs"),_.Y("design:type",HTMLElement)],v_.prototype,"defs",void 0);_.T([_.gQ("#rating"),_.Y("design:type",HTMLElement)],v_.prototype,"rating",void 0);_.T([_.O(),_.Y("design:type",Number)],v_.prototype,"percent",void 0);_.T([_.O({value:6}),_.Y("design:type",Number)],v_.prototype,"spacing",void 0);_.T([_.O({value:_.$4.create("iron-meta",{type:"iconset"})}),_.Y("design:type",_.aq)],v_.prototype,"meta",void 0);
_.T([_.ea("percent"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],v_.prototype,"percentChanged",null);v_=_.T([_.y({disableElementRegistration:!0,is:"ytd-ratings"})],v_);
_.r(v_,"ytd-ratings",function(){if(XVu!==void 0)return XVu;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ratings--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<svg id="svg" width="90px" height="18px" viewBox="0 0 120 24" class="style-scope ytd-ratings">\n  <defs id="defs" class="style-scope ytd-ratings">\n  </defs>\n  <g id="rating" class="style-scope ytd-ratings"></g>\n</svg>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return XVu=F},{mode:1});var IE=function(){return _.n.apply(this,arguments)||this};
_.k(IE,_.n);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],IE.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],IE.prototype,"data",void 0);IE=_.T([_.y({is:"ytd-offer-review-renderer",disableElementRegistration:!0})],IE);
_.r(IE,"ytd-offer-review-renderer",function(){if(Z6x!==void 0)return Z6x;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offer-review-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-ratings percent="[[data.percent]]" class="style-scope ytd-offer-review-renderer"></ytd-ratings>\n<yt-formatted-string text="[[data.score]]" class="style-scope ytd-offer-review-renderer"></yt-formatted-string>\n-\n<yt-formatted-string link-inherit-color="" text="[[data.source]]" class="style-scope ytd-offer-review-renderer"></yt-formatted-string>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return Z6x=F},{mode:1});var c_=function(){var F=_.n.apply(this,arguments)||this;F.badges=[{textBadge:{label:_.Gr("CC")}}];return F};
_.k(c_,_.n);_.N=c_.prototype;_.N.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
_.N.dataChanged=function(){var F=this.get("data.offerButton.buttonRenderer.serviceEndpoint");if(F&&F.commandMetadata&&_.D(F.commandMetadata,_.aH)&&_.D(F.commandMetadata,_.aH).fireAutomatically)_.WZ().resolve(_.EJ).resolveCommand(F,{form:{element:this.hostElement}});else{var W;F&&((W=_.D(F,_.aH))==null?0:W.fireAutomatically)&&_.WZ().resolve(_.EJ).resolveCommand(F,{form:{element:this.hostElement}})}};
_.N.isEmptyContent=function(F){return this.isStorefrontEntryPointEmpty(F)&&this.shouldHideOfferModule(F)};
_.N.isStorefrontEntryPointEmpty=function(F){return!F||!F.storefrontEntryPoint};
_.N.shouldHideOfferModule=function(F){return!!F.hideVideoDetails};
_.N.isOfferModuleNavigationInactive=function(F){return!F.navigationEndpoint&&!F.serviceEndpoint};
_.N.maybeNavigateWithServiceEndpoint=function(){this.data&&this.data.navigationEndpoint||this.data&&this.data.serviceEndpoint&&_.WZ().resolve(_.EJ).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
c_.prototype.dataChanged=c_.prototype.dataChanged;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],c_.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],c_.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],c_.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0,computed:"isEmptyContent(data)"}),_.Y("design:type",Boolean)],c_.prototype,"hidden",void 0);
_.T([_.O(),_.Y("design:type",Object)],c_.prototype,"badges",void 0);_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],c_.prototype,"dataChanged",null);c_=_.T([_.y({disableElementRegistration:!0,is:"ytd-movie-offer-module-renderer"})],c_);
_.r(c_,"ytd-movie-offer-module-renderer",function(){if($AN!==void 0)return $AN;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-movie-offer-module-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="offer-module-container" hidden="[[shouldHideOfferModule(data)]]" class="style-scope ytd-movie-offer-module-renderer">\n  <div id="header" class="style-scope ytd-movie-offer-module-renderer">\n    <yt-formatted-string id="title" link-inherit-color="" text="[[data.title]]" class="style-scope ytd-movie-offer-module-renderer"></yt-formatted-string>\n    <ytd-button-renderer data="[[data.offerButton.buttonRenderer]]" hidden="[[!data.offerButton.buttonRenderer]]" class="style-scope ytd-movie-offer-module-renderer">\n    </ytd-button-renderer>\n    <yt-formatted-string id="manage-purchase-text" link-inherit-color="" text="[[data.managePurchasesText]]" class="style-scope ytd-movie-offer-module-renderer">\n    </yt-formatted-string>\n  </div>\n  <a aria-label$="[[getSimpleString(data.title)]]" id="wide-clickable-area" class="yt-simple-endpoint flexed style-scope ytd-movie-offer-module-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" inactive$="[[isOfferModuleNavigationInactive(data)]]" on-tap="maybeNavigateWithServiceEndpoint">\n    <yt-img-shadow id="img" thumbnail="[[data.thumbnail]]" class="style-scope ytd-movie-offer-module-renderer"></yt-img-shadow>\n    <div id="info" class="style-scope ytd-movie-offer-module-renderer">\n      <template is="dom-if" if="[[data.headline]]" class="style-scope ytd-movie-offer-module-renderer">\n        <yt-formatted-string id="headline" text="[[data.headline]]" class="style-scope ytd-movie-offer-module-renderer"></yt-formatted-string>\n      </template>\n      <template is="dom-if" if="[[data.details]]" class="style-scope ytd-movie-offer-module-renderer">\n        <yt-formatted-string id="details" split-lines="true" text="[[data.details]]" class="style-scope ytd-movie-offer-module-renderer"></yt-formatted-string>\n      </template>\n      <template is="dom-repeat" items="[[data.reviews]]" as="review" class="style-scope ytd-movie-offer-module-renderer">\n        <ytd-offer-review-renderer data="[[review.offerReviewRenderer]]" class="style-scope ytd-movie-offer-module-renderer"></ytd-offer-review-renderer>\n      </template>\n      <template is="dom-repeat" items="[[data.attributes]]" as="attribute" class="style-scope ytd-movie-offer-module-renderer">\n        <p class="style-scope ytd-movie-offer-module-renderer">\n          <template is="dom-if" if="[[attribute.name]]" class="style-scope ytd-movie-offer-module-renderer">\n            <yt-formatted-string text="[[attribute.name]]" class="style-scope ytd-movie-offer-module-renderer"></yt-formatted-string>:\n          </template>\n          <yt-formatted-string ellipsis-truncate="" link-inherit-color="" text="[[attribute.value]]" title="[[getSimpleString(attribute.value)]]" class="style-scope ytd-movie-offer-module-renderer">\n          </yt-formatted-string>\n        </p>\n      </template>\n     <ytd-badge-supported-renderer badges="[[badges]]" hidden="[[!data.showCc]]" class="style-scope ytd-movie-offer-module-renderer">\n     </ytd-badge-supported-renderer>\n    </div>\n  </a>\n</div>\n<div id="storefront-entry-point" hidden="[[isStorefrontEntryPointEmpty(data)]]" class="style-scope ytd-movie-offer-module-renderer"></div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return $AN=F},{mode:1});var H6N;var DY=function(){return _.n.apply(this,arguments)||this};
_.k(DY,_.n);_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],DY.prototype,"componentBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],DY.prototype,"data",void 0);DY=_.T([_.y({disableElementRegistration:!0,is:"ytd-media-masthead-renderer"})],DY);
_.r(DY,"ytd-media-masthead-renderer",function(){if(H6N!==void 0)return H6N;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-media-masthead-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.navigationEndpoint]]" class="style-scope ytd-media-masthead-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-media-masthead-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <div id="masthead" class="style-scope ytd-media-masthead-renderer">\n      <div id="image" class="style-scope ytd-media-masthead-renderer">\n        <yt-img-shadow id="thumbnail" thumbnail="[[data.thumbnail]]" class="style-scope ytd-media-masthead-renderer"></yt-img-shadow>\n      </div>\n      <div id="metadata" class="style-scope ytd-media-masthead-renderer">\n        <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-media-masthead-renderer"></yt-formatted-string>\n        <template is="dom-repeat" items="[[data.metadataLines]]" as="line" class="style-scope ytd-media-masthead-renderer">\n          <ytd-metadata-line-renderer id="metadata-line" data="[[line.metadataLineRenderer]]" class="style-scope ytd-media-masthead-renderer"></ytd-metadata-line-renderer>\n        </template>\n      </div>\n    </div>\n  </a>\n</template>\n<template is="dom-if" if="[[!data.navigationEndpoint]]" class="style-scope ytd-media-masthead-renderer">\n  <div id="masthead" class="style-scope ytd-media-masthead-renderer">\n    <div id="image" class="style-scope ytd-media-masthead-renderer">\n      <yt-img-shadow id="thumbnail" thumbnail="[[data.thumbnail]]" class="style-scope ytd-media-masthead-renderer"></yt-img-shadow>\n    </div>\n    <div id="metadata" class="style-scope ytd-media-masthead-renderer">\n      <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-media-masthead-renderer"></yt-formatted-string>\n      <template is="dom-repeat" items="[[data.metadataLines]]" as="line" class="style-scope ytd-media-masthead-renderer">\n        <ytd-metadata-line-renderer id="metadata-line" data="[[line.metadataLineRenderer]]" class="style-scope ytd-media-masthead-renderer"></ytd-metadata-line-renderer>\n      </template>\n    </div>\n  </div>\n</template>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return H6N=F},{mode:1});var PXq;_.pK(_.swU,"course-metadata-view-model",{props:{data:_.Si,isOverlay:_.Si}});var xl=function(){var F=_.n.apply(this,arguments)||this;F.isMetadataVisible=!1;F.modernPanels=_.c("kevlar_watch_modern_panels");F.actionMap={"yt-hide-tvfilm-offer-module":"handleHideAction"};return F};
_.k(xl,_.n);_.N=xl.prototype;
_.N.configureRendererStamper=function(){return{"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}},"data.expandMetadataButton":{id:"expand-metadata-button",mapping:{toggleButtonViewModel:{component:"yt-toggle-button-view-model",properties:{scopingClassName:"[[is]]"}}}},"data.masthead":{id:"masthead",mapping:{mediaMastheadRenderer:{component:"ytd-media-masthead-renderer"},channelMastheadRenderer:{component:"ytd-channel-masthead-renderer",params:{isInOfferModule:!0}}}},
"data.expandedMetadata":{id:"expanded-metadata",mapping:{courseMetadataViewModel:{component:"course-metadata-view-model"}}}}};
_.N.descriptionChanged=function(){this.expander.collapsed=!0;this.expander.reset()};
_.N.dataChanged=function(){this.hostElement.hidden=!1;this.isMetadataVisible=this.isExpandButtonToggled()};
_.N.expanderChanged=function(){var F;if((F=this.data)==null?0:F.expandedMetadata)this.expander.hidden=this.isMetadataVisible};
_.N.isExpandButtonToggled=function(){var F,W;return(W=_.D((F=this.data)==null?void 0:F.expandMetadataButton,_.O8))==null?void 0:W.isToggled};
_.N.onVisibilityButtonClick=function(){var F;if((F=this.data)==null?0:F.expandMetadataButton)this.isMetadataVisible=!this.isMetadataVisible};
_.N.handleHideAction=function(){this.data&&this.data.clientShouldSuppressIfCompanionAdDisplayed&&(this.hostElement.hidden=!0)};
xl.prototype.expanderChanged=xl.prototype.expanderChanged;xl.prototype.dataChanged=xl.prototype.dataChanged;xl.prototype.descriptionChanged=xl.prototype.descriptionChanged;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],xl.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],xl.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J([_.FM.YtActionHandlerBehavior]),_.Y("design:type",Object)],xl.prototype,"actionHandlerBehavior",void 0);
_.T([_.O(),_.Y("design:type",Object)],xl.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Object)],xl.prototype,"isMetadataVisible",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],xl.prototype,"modernPanels",void 0);_.T([_.gQ("#expander"),_.Y("design:type",Object)],xl.prototype,"expander",void 0);_.T([_.ea("data.description"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],xl.prototype,"descriptionChanged",null);
_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],xl.prototype,"dataChanged",null);_.T([_.ea("isMetadataVisible"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],xl.prototype,"expanderChanged",null);xl=_.T([_.y({disableElementRegistration:!0,is:"ytd-tvfilm-offer-module-renderer"})],xl);
_.r(xl,"ytd-tvfilm-offer-module-renderer",function(){if(PXq!==void 0)return PXq;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-tvfilm-offer-module-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h2 id="header" hidden="[[!data.headerTitle]]" class="style-scope ytd-tvfilm-offer-module-renderer">\n  <yt-formatted-string id="title" text="[[data.headerTitle]]" class="style-scope ytd-tvfilm-offer-module-renderer"></yt-formatted-string>\n  <div id="expand-metadata-button" on-click="onVisibilityButtonClick" class="style-scope ytd-tvfilm-offer-module-renderer"></div>\n</h2>\n\n<div id="masthead" class="style-scope ytd-tvfilm-offer-module-renderer"></div>\n\n<div id="action-buttons" class="style-scope ytd-tvfilm-offer-module-renderer"></div>\n\n<ytd-expander id="expander" hidden="[[!data.description]]" max-number-of-lines="3" class="style-scope ytd-tvfilm-offer-module-renderer">\n  <yt-formatted-string id="description" slot="content" disable-upgrade$="[[!data.description]]" hidden="[[!data.description]]" text="[[data.description]]" class="style-scope ytd-tvfilm-offer-module-renderer">\n  </yt-formatted-string>\n  <div class="more-button style-scope ytd-tvfilm-offer-module-renderer" slot="more-button">\n    <span class="style-scope ytd-tvfilm-offer-module-renderer">[[getSimpleString(data.moreButtonText)]]</span>\n    <yt-icon id="expand-more-icon" icon="yt-icons:expand-more" class="style-scope ytd-tvfilm-offer-module-renderer"></yt-icon>\n  </div>\n  <div class="less-button style-scope ytd-tvfilm-offer-module-renderer" slot="less-button">\n    <span class="style-scope ytd-tvfilm-offer-module-renderer">[[getSimpleString(data.lessButtonText)]]</span>\n    <yt-icon id="expand-less-icon" icon="yt-icons:expand-less" class="style-scope ytd-tvfilm-offer-module-renderer"></yt-icon>\n  </div>\n</ytd-expander>\n\n<div id="expanded-metadata" hidden="[[!isMetadataVisible]]" class="style-scope ytd-tvfilm-offer-module-renderer"></div>\n\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return PXq=F},{mode:2});var J6w;var kl=function(){var F=_.n.apply(this,arguments)||this;F.actionMap={"yt-hide-unlimited-offer-module":"handleHideAction"};return F};
_.k(kl,_.n);kl.prototype.dataChanged=function(){this.hostElement.hidden=!1};
kl.prototype.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
kl.prototype.onThumbnailTap=function(F){this.data&&this.data.serviceEndpoint&&(_.WZ().resolve(_.EJ).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),F.stopPropagation())};
kl.prototype.handleHideAction=function(){this.data&&this.data.suppressIfCompanionAds&&(this.hostElement.hidden=!0)};
kl.prototype.dataChanged=kl.prototype.dataChanged;_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],kl.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],kl.prototype,"rendererBehaviors",void 0);_.T([_.J([_.FM.YtActionHandlerBehavior]),_.Y("design:type",Object)],kl.prototype,"actionHandlerBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],kl.prototype,"data",void 0);
_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],kl.prototype,"dataChanged",null);kl=_.T([_.y({is:"ytd-unlimited-offer-module-renderer",disableElementRegistration:!0})],kl);
_.r(kl,"ytd-unlimited-offer-module-renderer",function(){if(J6w!==void 0)return J6w;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-unlimited-offer-module-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="watch-checkout-offers" class="style-scope ytd-unlimited-offer-module-renderer">\n  <div id="header" class="style-scope ytd-unlimited-offer-module-renderer">\n    <div id="title-section" class="style-scope ytd-unlimited-offer-module-renderer">\n      <yt-formatted-string id="main-title" text="[[data.title]]" class="style-scope ytd-unlimited-offer-module-renderer"></yt-formatted-string>\n      <yt-formatted-string id="sub-title" text="[[data.subtitle]]" class="style-scope ytd-unlimited-offer-module-renderer"></yt-formatted-string>\n    </div>\n    <ytd-button-renderer data="[[data.offerButton.buttonRenderer]]" class="style-scope ytd-unlimited-offer-module-renderer">\n    </ytd-button-renderer>\n  </div>\n  <ytd-thumbnail id="thumbnail" data="[[data]]" hidden$="[[!data.thumbnail]]" width="402" on-click="onThumbnailTap" class="style-scope ytd-unlimited-offer-module-renderer">\n  </ytd-thumbnail>\n  <div id="storefront-entry-point" hidden="[[!data.storefrontEntryPoint]]" class="style-scope ytd-unlimited-offer-module-renderer"></div>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return J6w=F},{mode:1});var awg;var fwx;var A2=function(){var F=_.n.apply(this,arguments)||this;F.actionMap={"yt-related-chip-command":"handleRelatedChipCommand"};return F};
_.k(A2,_.n);A2.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{chipCloudRenderer:{component:"yt-chip-cloud-renderer"}}}}};
A2.prototype.handleRelatedChipCommand=function(F){F=_.D(F,sfK);var W=F.contents;W?_.Nc(this.hostElement,"yt-item-section-replace-action",[W,F.targetSectionIdentifier]):_.Nc(this.hostElement,"yt-item-section-continuation-action",[F.continuationData,F.targetSectionIdentifier])};
_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],A2.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],A2.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],A2.prototype,"actionHandlerBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],A2.prototype,"data",void 0);A2=_.T([_.$3({is:"yt-related-chip-cloud-renderer",disableElementRegistration:!0})],A2);
_.r(A2,"yt-related-chip-cloud-renderer",function(){if(fwx===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-related-chip-cloud-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_related_chip_cloud_renderer.yt.related.chip.cloud.renderer.css.js--\x3e<div id="content" class="style-scope yt-related-chip-cloud-renderer"></div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);var W=F.content,E=W.insertBefore;awg===void 0&&(awg=document.createElement("template"));var h=awg;E.call(W,h.content.cloneNode(!0),F.content.firstChild);fwx=F}F=fwx;return F},{mode:2});var sr=function(){var F=_.n.apply(this,arguments)||this;F.isTwoColumns=!0;F.hideOfferModules=!1;F.watchFeedBigThumbs=_.c("kevlar_watch_feed_big_thumbs");F.watchNextGridHideChips=_.c("kevlar_watch_grid_hide_chips");F.eligibleToSwitchToGrid=_.c("web_watch_eligible_to_switch_to_grid");F.disableShortsShelfHeightOverride=_.c("web_shorts_wn_shelf_ratio_tuning");F.isWatchNextGrid=!1;F.reuseComponents=!_.c("kevlar_watch_grid");F.nextContinuation={continuationType:"watchNextSecondaryResultsContinuation",contentsArray:"data.results",
continuationsArray:"data.continuations",responseContentsKey:"results",requestPath:"/related_ajax"};return F};
_.k(sr,_.n);_.N=sr.prototype;
_.N.configureRendererStamper=function(){return{"data.offerModule":{id:"offer-module",mapping:{movieOfferModuleRenderer:"ytd-movie-offer-module-renderer",episodeOfferModuleRenderer:"ytd-movie-offer-module-renderer",liveOfferModuleRenderer:"ytd-movie-offer-module-renderer",channelOfferModuleRenderer:"ytd-movie-offer-module-renderer",unlimitedOfferModuleRenderer:{component:"ytd-unlimited-offer-module-renderer",properties:{hidden:"[[hideUnlimitedOfferModule]]"}},tvfilmOfferModuleRenderer:{component:"ytd-tvfilm-offer-module-renderer",properties:{hidden:"[[hideTvfilmOfferModule]]"}},
ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer"}},shownItems:{id:"items",reuseComponents:this.reuseComponents,mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-watch-next-secondary-results-renderer lockup",sizing:"COMPACT",thumbnailFixedWidth:"168px",force16By9ThumbnailAspectRatio:!0},properties:{containerType:"[[lockupContainerType]]"}},compactMovieRenderer:"ytd-compact-movie-renderer",compactVideoRenderer:"ytd-compact-video-renderer",compactCourseVideoRenderer:"ytd-compact-video-renderer",
compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",compactRadioRenderer:"ytd-compact-radio-renderer",compactPlaylistRenderer:"ytd-compact-playlist-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",adSlotRenderer:"ytd-ad-slot-renderer",relatedChipCloudRenderer:"yt-related-chip-cloud-renderer",itemSectionRenderer:{component:"ytd-item-section-renderer",params:{isWatch:!0},properties:{continuationShowButton:"[[showButton]]",eligibleToSwitchToGrid:"[[eligibleToSwitchToGrid]]"}},
reelShelfRenderer:"ytd-reel-shelf-renderer",richGridRenderer:{component:"ytd-rich-grid-renderer",properties:{disableStickyFilterBar:"[[isWatchNextGrid]]",transparentBackgroundChipsBar:"[[isWatchNextGrid]]",reducedBottomMargin:"[[isWatchNextGrid]]",rowReducedHorizontalMargin:"[[isWatchNextGrid]]"},params:{resizeOnObserverInit:!_.c("web_watch_grid_resize_on_observer_init_killswitch")}},continuationItemRenderer:{component:"ytd-continuation-item-renderer",properties:{showButton:"[[showButton]]"}}}},"data.continuations":{id:"continuations",
mapping:{nextContinuationData:{component:"yt-next-continuation",properties:{showButton:"[[showButton]]"}}},renderPriority:0}}};
_.N.getItemsPath=function(){return"data.results"};
_.N.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"results","yt-reload-continuation-items-command-body":"results"}};
_.N.created=function(){this.ytLazyListBehavior.initialCount=1};
_.N.ready=function(){_.V9(this.hostElement,{"--yt-img-shadow-placeholder-color":"var(--yt-spec-10-percent-layer)","--yt-img-shadow-min-height":"100%","--yt-img-shadow-min-width":"100%"})};
_.N.resultsChanged=function(){if(this.data&&this.data.results){for(var F=this.data.results,W=null,E=null,h=0;h<F.length;h++)F[h].relatedChipCloudRenderer?W=F[h].relatedChipCloudRenderer:F[h].itemSectionRenderer&&(E=F[h].itemSectionRenderer);if(W&&E)for(this.set("data.continuations",[]),F=_.D(W.content,_.E5H).chips,W=0;W<F.length;W++)if(h=this.get("chipCloudChipRenderer.navigationEndpoint.relatedChipCommand",F[W]),h.loadCached||!h.contents){h.contents=E.contents;break}}};
_.N.dataChanged=function(){var F=this,W;if((W=this.data)!=null&&W.results&&this.hasAllowedInstreamAd(this.playerData)){if(W=this.data.results.filter(function(M){return!!M.promotedSparklesWebRenderer})){for(var E=0;E<W.length;E++){var h=this.get("promotedSparklesWebRenderer.errorCommand.loggingUrls",W[E]);
if(h)for(var d=0;d<h.length;d++)h[d]&&h[d].baseUrl&&_.iY(h[d].baseUrl)}this.set("data.results",this.data.results.filter(function(M){return!M.promotedSparklesWebRenderer}))}if(W=this.data.results.filter(function(M){return!!F.getSparklesAd(M)})){W=_.U(W);
for(d=W.next();!d.done;d=W.next())if(h=E=void 0,d=(E=this.getSparklesAd(d.value))==null?void 0:(h=E.errorCommand)==null?void 0:h.loggingUrls)for(E=_.U(d),h=E.next();!h.done;h=E.next())(h=h.value)&&h.baseUrl&&_.iY(h.baseUrl);var V,R;this.set("data.results",(V=this.data)==null?void 0:(R=V.results)==null?void 0:R.filter(function(M){return!M.adSlotRenderer}))}}};
_.N.getSparklesAd=function(F){var W,E;F=_.D((W=F.adSlotRenderer)==null?void 0:(E=W.fulfillmentContent)==null?void 0:E.fulfilledLayout,_.kAc);return _.D(F==null?void 0:F.renderingContent,A6x)};
_.N.hasAllowedInstreamAd=function(F){F=this.get("adPlacements",F)||[];for(var W=0;W<F.length;W++){var E=this.get("adPlacementRenderer.config.adPlacementConfig",F[W]);if(E&&E.suppressDisplayAd)return!0}return!1};
_.N.computeHideUnlimitedOfferModule=function(F,W){return F&&F.offerModule&&W&&F.offerModule.unlimitedOfferModuleRenderer&&F.offerModule.unlimitedOfferModuleRenderer.suppressIfCompanionAds&&this.hasCompanionAds(W)?!0:!1};
_.N.hideUnlimitedOfferModuleChanged=function(){var F=_.Z(this.hostElement).querySelector("ytd-unlimited-offer-module-renderer");F&&(F.hidden=this.hideUnlimitedOfferModule)};
_.N.updateLockupContainerTypes=function(F){if(this.eligibleToSwitchToGrid){var W;(W=Array.from(this.hostElement.querySelectorAll("#items yt-lockup-view-model")))==null||W.forEach(function(E){E.containerType=F})}};
_.N.computeHideTvfilmOfferModule=function(F,W){var E,h;return!!((F==null?0:(E=F.offerModule)==null?0:(h=E.tvfilmOfferModuleRenderer)==null?0:h.clientShouldSuppressIfCompanionAdDisplayed)&&W&&this.hasCompanionAds(W))};
_.N.hideTvfilmOfferModuleChanged=function(){var F=_.Z(this.hostElement).querySelector("ytd-tvfilm-offer-module-renderer");F&&(F.hidden=this.hideTvfilmOfferModule)};
_.N.hasCompanionAds=function(F){F=this.get("adPlacements",F)||[];for(var W=0;W<F.length;W++){if(this.get("adPlacementRenderer.renderer.actionCompanionAdRenderer",F[W]))return!0;var E=void 0,h=void 0,d=void 0;if(!_.c("web_watch_top_banner_companion_check_killswitch")&&((E=F[W])==null?0:(h=E.adPlacementRenderer)==null?0:(d=h.renderer)==null?0:d.topBannerImageTextIconButtonedLayoutViewModel))return!0}return!1};
_.N.hasSuppressedResults=function(F){return F==null?!0:F.filter(function(W){return!W.continuationItemRenderer&&!W.compactPromotedVideoRenderer&&!W.promotedSparklesWebRenderer}).length===0};
_.N.computeShowButton=function(F,W){return this.isWatchNextGrid?F:F||this.hasSuppressedResults(W)};
_.N.showButtonChanged=function(){if(this.isWatchNextGrid){var F=_.Z(this.hostElement).querySelector("ytd-rich-grid-renderer");F&&this.showButton!==null&&(F.continuationShowButton=this.showButton)}else{F=_.Z(this.hostElement).querySelector("yt-next-continuation");var W=_.Z(this.hostElement).querySelector("ytd-continuation-item-renderer"),E=_.Z(this.hostElement).querySelector("ytd-item-section-renderer");F&&(F.showButton=this.showButton);W&&(W.showButton=this.showButton);E&&(E.continuationShowButton=
this.showButton)}};
_.N.continuationTap=function(F){var W;if(((W=this.data)==null?void 0:W.continuations)!=null&&F.target.tagName==="TP-YT-PAPER-BUTTON")for(F=this.data.continuations,W=0;W<F.length;W++)F[W].nextContinuationData&&this.ytRendererBehavior.logExplicitClick(F[W].nextContinuationData||{})};
_.N.shownItemsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.yR("shown-items-changed",this.shownItems))};
_.Sn.Object.defineProperties(sr.prototype,{lockupContainerType:{configurable:!0,enumerable:!0,get:function(){return this.eligibleToSwitchToGrid?this.isGridViewEnabled?2:3:3}},
containsLockupViewModel:{configurable:!0,enumerable:!0,get:function(){var F;return!((F=this.shownItems)==null||!F.some(function(W){return!!W.lockupViewModel}))}}});
sr.prototype.shownItemsChangedForBinding=sr.prototype.shownItemsChangedForBinding;sr.prototype.showButtonChanged=sr.prototype.showButtonChanged;sr.prototype.hideTvfilmOfferModuleChanged=sr.prototype.hideTvfilmOfferModuleChanged;sr.prototype.updateLockupContainerTypes=sr.prototype.updateLockupContainerTypes;sr.prototype.hideUnlimitedOfferModuleChanged=sr.prototype.hideUnlimitedOfferModuleChanged;sr.prototype.dataChanged=sr.prototype.dataChanged;sr.prototype.resultsChanged=sr.prototype.resultsChanged;
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],sr.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],sr.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.W3.YtLazyListBehavior),_.Y("design:type",Object)],sr.prototype,"ytLazyListBehavior",void 0);_.T([_.J(_.lr.YtNextContinuationBehavior),_.Y("design:type",Object)],sr.prototype,"ytNextContinuationBehavior",void 0);
_.T([_.J(_.br),_.Y("design:type",Object)],sr.prototype,"ytContinuationHandlerBehavior",void 0);_.T([_.J(_.am),_.Y("design:type",Object)],sr.prototype,"ytdReduxBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],sr.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Object)],sr.prototype,"playerData",void 0);_.T([_.O({value:!0}),_.Y("design:type",Boolean)],sr.prototype,"autoFill",void 0);_.T([_.O({value:60}),_.Y("design:type",Number)],sr.prototype,"targetFramerate",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],sr.prototype,"isTwoColumns",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],sr.prototype,"hideOfferModules",void 0);_.T([_.O(),_.Y("design:type",Object)],sr.prototype,"shownItems",void 0);_.T([_.O({computed:"computeHideUnlimitedOfferModule(data, playerData)"}),_.Y("design:type",Boolean)],sr.prototype,"hideUnlimitedOfferModule",void 0);
_.T([_.O({computed:"computeHideTvfilmOfferModule(data, playerData)"}),_.Y("design:type",Boolean)],sr.prototype,"hideTvfilmOfferModule",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],sr.prototype,"watchFeedBigThumbs",void 0);_.T([_.O(),_.Y("design:type",Object)],sr.prototype,"watchNextGridHideChips",void 0);_.T([_.O(),_.Y("design:type",Object)],sr.prototype,"eligibleToSwitchToGrid",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],sr.prototype,"disableShortsShelfHeightOverride",void 0);_.T([_.O({selector:_.o6}),_.Y("design:type",Object)],sr.prototype,"isGridViewEnabled",void 0);_.T([_.O({value:!1}),_.Y("design:type",Boolean)],sr.prototype,"showMoreButton",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],sr.prototype,"isWatchNextGrid",void 0);
_.T([_.O({computed:"computeShowButton(showMoreButton, data.results)"}),_.Y("design:type",Boolean)],sr.prototype,"showButton",void 0);_.T([_.Cz("data.results.*"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],sr.prototype,"resultsChanged",null);_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],sr.prototype,"dataChanged",null);
_.T([_.ea("hideUnlimitedOfferModule"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],sr.prototype,"hideUnlimitedOfferModuleChanged",null);_.T([_.a("isGridViewEnabled","containsLockupViewModel","data"),_.O({reflectToAttribute:!0}),_.Y("design:type",Number),_.Y("design:paramtypes",[])],sr.prototype,"lockupContainerType",null);
_.T([_.ea("lockupContainerType","data"),_.Y("design:type",Function),_.Y("design:paramtypes",[Number]),_.Y("design:returntype")],sr.prototype,"updateLockupContainerTypes",null);_.T([_.ea("hideTvfilmOfferModule"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],sr.prototype,"hideTvfilmOfferModuleChanged",null);_.T([_.ea("showButton"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],sr.prototype,"showButtonChanged",null);
_.T([_.ea("shownItems"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],sr.prototype,"shownItemsChangedForBinding",null);_.T([_.a("shownItems"),_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],sr.prototype,"containsLockupViewModel",null);
_.r(sr,"ytd-watch-next-secondary-results-renderer",function(){if(LWK===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-next-secondary-results-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="offer-module" hidden="[[hideOfferModules]]" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n<div id="items" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n<div id="continuations" hidden="[[canShowMore]]" on-click="continuationTap" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);LWK=F}F=LWK;return F},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.hc8={};
_.hc8.YtdWatchBehavior=[_.K.YtRendererBehavior,_.om.YtPlayerListenerBehavior,_.Ky.YtRendererstamperBehavior,_.FM.YtActionHandlerBehavior,_.$v.YtPageBehavior,_.eB.YtEndpointBehavior,{_noAccessors:!0,properties:{data:{type:Object,observer:"dataChanged_"},info:{type:Object},meta:{type:Object},ticket:{type:Object},donation:{type:Object},clarifyBox:{type:Object,computed:"getClarifyBox(data, clarifyBoxValue)"},offerModule:{type:Object},engagementPanels:{type:Object},inlineEngagementPanels:{type:Object},clarifyBoxValue:{type:Object},
conversationBar:{type:Object},infoPanelBelowMetadata:{type:Object},expandableMetadata:{type:Object},limitedState:{type:Object,computed:"getLimitedState(data, limitedStateValue)"},limitedStateValue:{type:Object},merchShelf:{type:Object,computed:"getMerchShelf(data, merchShelfValue)"},merchShelfValue:{type:Object},merchShelfInSd:{type:Object},singleColumn:{type:Object,computed:"getSingleColumn(playerData.playabilityStatus, data, singleColumnValue)"},singleColumnValue:{type:Object},comments:{type:Object,
value:null},playerData:{type:Object,observer:"playerDataChanged_"},playerAds:{type:Object,value:null},localPlaylistData_:{type:Object,value:{},computed:"setPlaylistData_(data.contents.twoColumnWatchNextResults.playlist.playlist)"},externalPlaylistData_:{type:Object,value:{}},playlistData:{type:Object,computed:"computePlaylistData_(localPlaylistData_, externalPlaylistData_)"},theater:{type:Boolean,value:!1,reflectToAttribute:!0},fullWindowMode_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.l0("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.c("web_watch_provide_secondary_results_renderer")}},
enableFullBleedSingleColumnDefaultPlayer:{type:Boolean,value:function(){return _.c("full_bleed_single_column_default_player")}},
fullscreen:{type:Boolean,reflectToAttribute:!0},playlist:{type:Boolean,reflectToAttribute:!0,computed:"hasPlaylist_(playlistData, loadingData.playlist)",observer:"secondaryColumnModulePresenceChanged_"},alerts:{type:Object,computed:"getAlerts_(playerData.playabilityStatus, alertsValue)"},alertsValue:{type:Object},microformat:{type:Object,computed:"getPlayerMicroformatRenderer_(playerData.microformat)"},commentsReady:{type:Boolean,observer:"commentsReadyChanged_"},theaterRequested_:{type:Boolean,reflectToAttribute:!0,
value:function(){return _.l0("START_IN_THEATER_MODE")}},
loading:{type:Boolean,observer:"onLoadingChanged_"},loadingData:{type:Object,value:{playlist:!1}},playerUnavailable:{type:Boolean,value:!1,reflectToAttribute:!0,computed:"isPlayerUnavailable_(playerData.playabilityStatus, playerLoading_, playerOverlays)"},playerOverlays:{type:Object,value:null,computed:"getPlayerOverlays_(data)"},plaShelfEnabled_:{type:Boolean,value:!1,computed:"isPlaShelfEnabled_(playerData)"},monetizationShelvesEnabled_:{type:Boolean,value:!0},watchNextShownItems:Array,watchNextCanShowMore:Boolean,
hidden:{type:Boolean,reflectToAttribute:!0,value:!1},shouldStampChat:{type:Boolean,value:!1,computed:"computeShouldStampChat_(data, hidden)",observer:"secondaryColumnModulePresenceChanged_",reflectToAttribute:!0},shouldCollapseDonationShelf:{type:Boolean,value:!1,computed:"computeIsDonationShelfCollapsed_(shouldStampChat)",reflectToAttribute:!0},shouldShowMerchShelf:{type:Boolean,value:!1,computed:"computeShouldShowMerchShelf(merchShelf, monetizationShelvesEnabled_)",reflectToAttribute:!0},canScheduleCommentJobs_:{type:Boolean,
value:!0},videoId:{type:String,value:"",computed:"identity(data.currentVideoEndpoint.watchEndpoint.videoId)",reflectToAttribute:!0},isTwoColumns_:{type:Boolean,reflectToAttribute:!0,observer:"isTwoColumnsChanged_"},isVerticalVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsVerticalVideo_(videoHeightToWidthRatio_)"},isFourThreeToSixteenNineVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsFourThreeToSixteenNineVideo_(videoHeightToWidthRatio_)"},isExtraWideVideo_:{type:Boolean,
reflectToAttribute:!0,computed:"computeIsExtraWideVideo_(videoHeightToWidthRatio_)"},videoHeightToWidthRatio_:{type:Number,value:.5625,observer:"videoHeightToWidthRatioChanged_"},flexySmallWindow_:{type:Boolean,reflectToAttribute:!0},flexyLargeWindow_:{type:Boolean,reflectToAttribute:!0},playerLoading_:{type:Boolean,value:!1},showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.c("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.c("kevlar_use_engagement_panel_management_component")}},
watchMetadataRefresh:{type:Boolean,value:!1,computed:"computeWatchMetadataRefresh(videoPrimaryInfoRenderer)",reflectToAttribute:!0},liveChatCollapsed:{type:Boolean},liveChatPresentAndExpanded:{type:Boolean,reflectToAttribute:!0,computed:"computeLiveChatPresentAndExpanded(shouldStampChat, liveChatCollapsed)"},playlistPanelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1},engagementPanelExpanded:{type:Boolean,value:!1},panelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computePanelExpanded(engagementPanelExpanded, playlistPanelExpanded, liveChatPresentAndExpanded)"},
swatcherooSqueezeback:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"swatcherooSqueezebackChanged",computed:"computeSwatcherooSqueezeback(panelExpanded, fullBleedPlayer, isTwoColumns_)"},squeezeback:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"squeezebackChanged",computed:"computeSqueezeback(engagementPanelExpanded, fullscreen, theater)"},richItemMinWidth:{type:Number,value:function(){return _.dV("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.dV("wn_grid_max_item_width",700)}},
commentsEntryPointHeaderRenderer:{type:Object,computed:"computeCommentsEntryPointHeaderRenderer(data, commentsEntryPointHeaderRendererValue, defaultTwoColumnLayout, isTwoColumns_)"},showRichGridContinuationButton:{type:Boolean,value:!1,computed:"computeShowRichGridContinuationButton(isTwoColumns_, commentsEntryPointHeaderRenderer)"},commentsEntryPointHeaderRendererValue:{type:Object},videoMetadataCarousel:{type:Object},richGridRendererData:{type:Object},watchNextSecondaryResults:{type:Object},videoPrimaryInfoRenderer:{type:Object,
computed:"computeVideoPrimaryInfoRenderer(data, videoPrimaryInfoRendererValue)"},videoPrimaryInfoRendererValue:{type:Object},videoSecondaryInfoRenderer:{type:Object,computed:"computeVideoSecondaryInfoRenderer(data, videoSecondaryInfoRendererValue)"},videoSecondaryInfoRendererValue:{type:Object},inlineStructuredDescriptionData:{type:Object,computed:"computeInlineStructuredDescriptionData(data)"},flexyEnableSmallWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.c("kevlar_watch_flexy_disable_small_window_sizing")}},
flexyEnableLargeWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.c("kevlar_watch_flexy_disable_large_window_sizing")}},
hideComments:{type:Boolean},legacyMetadataClass:{type:String,computed:"computeLegacyMetadataClass(watchMetadataRefresh)"},newMetadataClass:{type:String,computed:"computeNewMetadataClass(watchMetadataRefresh)"},cinematicsEnabled:{type:Boolean,reflectToAttribute:!0,value:function(){return _.c("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
deprecateFullerscreenUi:{type:Boolean,reflectToAttribute:!0,value:function(){return _.c("web_watch_fullerscreen_deprecation_ui")}},
iMaxTheaterMode:{type:Boolean,reflectToAttribute:!0,value:function(){return _.c("web_watch_imax_theater_mode")}},
swatcherooDirectUseRichGrid:{type:Boolean,value:function(){return _.c("swatcheroo_direct_use_rich_grid")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.c("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.c("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return _.c("kevlar_watch_frame0_loading_state")}},
retroMode:{type:Boolean,value:!1},roundedPlayer:{type:Boolean,reflectToAttribute:!0,computed:"computeRoundedPlayer(defaultLayout, retroMode)"},showExpandableMetadata:{type:Boolean,reflectToAttribute:!0,computed:"computeShowExpandableMetadata(expandableMetadata)"},fullBleedPlayer:{type:Boolean,reflectToAttribute:!0,computed:"computeFullBleedPlayer(fullscreen, theater, isTwoColumns_)"},defaultLayout:{type:Boolean,reflectToAttribute:!0,computed:"computeDefaultLayout(fullBleedPlayer)"},defaultTwoColumnLayout:{type:Boolean,
reflectToAttribute:!0,computed:"computeDefaultTwoColumnLayout(fullBleedPlayer, isTwoColumns_)"},swatcherooSplitScroll:{type:Boolean,reflectToAttribute:!0,value:function(){return _.c("swatcheroo_split_scroll")}},
trackEngagementPanelVisibility:{type:Boolean,value:function(){return _.c("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.c("web_watch_show_comment_teaser")}},
swatcherooBinaryLayout:{type:Boolean,reflectToAttribute:!0,value:function(){return _.c("swatcheroo_binary_layout")}},
swatcherooGhostCards:{type:Boolean,reflectToAttribute:!0,value:function(){return _.c("swatcheroo_enable_ghost_cards")}},
metadataSkinnyMode:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computeMetadataSkinnyMode(swatcherooBinaryLayout, isTwoColumns_, defaultTwoColumnLayout)"},fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.c("web_watch_full_bleed_no_max_width_columns")}},
fixedPanels:{type:Boolean,reflectToAttribute:!0},panelsBesidePlayer:{type:Boolean,reflectToAttribute:!0},watchWhileWider:{type:Boolean,reflectToAttribute:!0,value:function(){return _.c("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.c("web_watch_while_panel_margin")}},
watchWhilePanelsActive:{type:Boolean,reflectToAttribute:!0,computed:"computeWatchWhilePanelsActive(fixedPanels, panelsBesidePlayer)"},noBorderOnChat:{type:Boolean,computed:"computeNoBorderOnChat(watchWhilePanelsActive)"},forceDarkPanelTheme:{type:Boolean,computed:"computeForceDarkPanelTheme(panelsBesidePlayer)"},hasMetadata:{type:Boolean,reflectToAttribute:!0,computed:"computeHasMetadata(videoPrimaryInfoRenderer)"},watchWhileWindowSizeSufficient:{type:Boolean,observer:"watchWhileWindowSizeSufficientChanged"},
thumbnailToWatchTransition:{type:Boolean,reflectToAttribute:!0,value:function(){return _.c("web_thumbnail_to_watch_transition")}},
playerContainerBackgroundImage:{type:Object,computed:"computePlayerContainerBackgroundImage(playerData, miniplayerIsActive)"},miniplayerIsActive:{type:Boolean}},observers:"watchPageActiveChanged_(active);shouldProceedToNextVideo_(playerData.playabilityStatus, data, playlist);userEngagementConfigDataChanged_(data.userEngagementConfig);updateTheaterModeState_(theaterRequested_);watchNextShownItemsAddedOrRemoved_(watchNextShownItems.splices, watchNextCanShowMore);youthereDataChanged_(playerData.messages);onSetPlaylistCollapsed(playlist);updateChatLocation(liveChatPresentAndExpanded);swatcherooUpdatePanelsLocation(isTwoColumns_, fullBleedPlayer, squeezeback, playlistPanelExpanded, liveChatPresentAndExpanded, engagementPanelExpanded);scheduleFullHeightPanelPositionUpdate(defaultTwoColumnLayout, panelExpanded);swatcherooRichGridRendererDataChanged(data);watchNextSecondaryResultsChanged(data);defaultTwoColumnLayoutChanged(defaultTwoColumnLayout);onMiniplayerActiveReduxValueUpdate(miniplayerIsActive)".split(";"),
monitorScroll:!0,configureRendererStamper:function(){var F={info:{id:"info-contents",mapping:{videoPrimaryInfoRenderer:{component:"ytd-video-primary-info-renderer"}}},meta:{id:"meta-contents",mapping:{videoSecondaryInfoRenderer:{component:"ytd-video-secondary-info-renderer",properties:{structuredDescriptionContentRenderer:"[[inlineStructuredDescriptionData]]"}}}},ticket:{id:"ticket-shelf",mapping:{ticketShelfRenderer:{component:"ytd-ticket-shelf-renderer",properties:{skinnyMode:"[[isTwoColumns_]]"}}}},
offerModule:{id:"offer-module",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",properties:{isCollapsed:"[[shouldCollapseDonationShelf]]"}},donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"},movieOfferModuleRenderer:"ytd-movie-offer-module-renderer",episodeOfferModuleRenderer:"ytd-movie-offer-module-renderer",liveOfferModuleRenderer:"ytd-movie-offer-module-renderer",channelOfferModuleRenderer:"ytd-movie-offer-module-renderer",unlimitedOfferModuleRenderer:{component:"ytd-unlimited-offer-module-renderer",
properties:{hidden:"[[hideUnlimitedOfferModule]]"}},tvfilmOfferModuleRenderer:{component:"ytd-tvfilm-offer-module-renderer",properties:{hidden:"[[hideTvfilmOfferModule]]"}},ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer"}},expandableMetadata:{id:"expandable-metadata",mapping:{expandableMetadataRenderer:{component:"ytd-expandable-metadata-renderer",params:{isWatch:!0}}}},donation:{id:"donation-shelf",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",properties:{isCollapsed:"[[shouldCollapseDonationShelf]]"}},
donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"}}},clarifyBox:{id:"clarify-box",mapping:{clarificationRenderer:"ytd-clarification-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",infoPanelContentRenderer:"ytd-info-panel-content-renderer",emergencyOneboxRenderer:{component:"ytd-emergency-onebox-renderer",attributes:{"class":"watch"}}}},limitedState:{id:"limited-state",mapping:{limitedStateMessageRenderer:"ytd-limited-state-message-renderer"}},playerAds:{id:"player-ads",
mapping:{playerLegacyDesktopWatchAdsRenderer:"ytd-player-legacy-desktop-watch-ads-renderer"},initialRenderPriority:3,waitForSignal:_.OE(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.OE(["aa","eocs"])},alerts:{id:"alerts",mapping:{alertRenderer:"yt-alert-renderer",alertWithButtonRenderer:"ytd-alert-with-button-renderer"}},"data.contents.twoColumnWatchNextResults.miniplayerBar":{id:"miniplayer-bar",mapping:{miniplayerBarRenderer:"ytd-miniplayer-bar-renderer"}},
microformat:{id:"microformat",mapping:{playerMicroformatRenderer:"player-microformat-renderer"}},singleColumn:{id:"single-column-container",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}}};this.is!=="ytd-watch-grid"||_.c("swa_prov_panels_ks")?F.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}}:(F.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",
params:{isWatch:!0}}}},F.inlineEngagementPanels={id:"inline-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}},reuseComponents:!1});return F},
listeners:{"yt-retrieve-location":"onRetrieveLocation_","yt-subscription-changed":"onSubscriptionChanged_","yt-show-survey":"onYtShowSurvey_","yt-chat-collapsed-changed":"onYtChatCollapsedChanged"},actionMap:{"yt-sync-with-remote-video":"syncWithRemoteVideo_","yt-window-resized":"onWindowResized_","yt-initial-video-aspect-ratio":"onYtInitialVideoAspectRatio_","yt-update-player-next-video":"onUpdatePlayerNextVideo_","yt-signal-action-pause-player":"handleSignalActionPausePlayer_","yt-signal-action-play-player":"handleSignalActionPlayPlayer_",
"yt-signal-action-acknowledge-youthere":"handleSignalActionAcknowledgeYouThere_","yt-user-activity":"onYtUserActivity_","yt-show-engagement-panel-scrim-action":"onYtShowEngagementPanelScrimAction_","yt-hide-engagement-panel-scrim-action":"onYtHideEngagementPanelScrimAction_","yt-get-current-video-id-action":"onGetCurrentVideoIdAction_","yt-show-survey-command":"onYtShowSurveyCommand_","yt-signal-action-scroll-to-comments":"onYtSignalActionScrollToComments","yt-engagement-panel-visible-changed":"onYtEngagementPanelVisibleChanged",
"yt-downloaded-video-deleted":"onDownloadedVideoDeleted","yt-change-markers-visibility-command":"onChangeMarkersVisibility","yt-set-playlist-collapsed":"onSetPlaylistCollapsed","yt-updated-playability-status":"onYtUpdatedPlayabilityStatus"},created:function(){var F=this;this.watchController=void 0;this.pageDisposeJobs=[function(){F.showMetadataPlaceholder_()},
function(){_.c("web_watch_dont_clear_comments")||F.clearComments_()},
function(){F.clearPlayerAds_()},
function(){F.resetAutonavCanceledForNewPlayback_()}];
this.player=this.playerContainerEl=this.playerEl=this.watchNextSkeletonEl_=null;this.onPlayingCallbacks_=[];this.clearPlayerAdsJobId_=this.setRichGridJobId_=this.setCommentsJobId_=0;this.showFullerscreenEdu_=!1;this.windowSize_=null;this.is==="ytd-watch-grid"&&(this.visiblePanelIdentifiers_=new Set);this.trackEngagementPanelVisibility&&(this.visiblePanelIdentifiers_=new Set);this.autonavCanceledSignal_=!1;_.c("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.c("web_watch_start_chat_in_theater_mode")&&
(this.theaterEnabledForChat=!1);this.youThereManager_=new _.r2K(function(){return _.FF(F)},this.hostElement);
this.pageDisposeJobs.push(function(){F.youThereManager_.reset()});
_.c("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){F.resetFullerscreenEduButtonForNewPlayback_()}));
this.fullHeightPanelPositionUpdateJobId=this.panelMaxHeightUpdateJob_=0;this.playerEvents_=new _.tj;this.playerEvents_.set("onFeedbackStartRequest",this.onPlayerFeedbackStartRequest_);this.playerEvents_.set("onFeedbackArticleRequest",this.onPlayerFeedbackArticleRequest_);this.playerEvents_.set("onYpcContentRequest",this.onPlayerYpcContentRequest_);this.playerEvents_.set("onAutonavPauseRequest",this.onPlayerAutonavPauseRequest_);this.playerEvents_.set("onAdStateChange",this.onAdStateChange_);this.playerEvents_.set("onStateChange",
this.onPlayerStateChange_);this.playerEvents_.set("SUBSCRIBE",this.onPlayerSubscribe_);this.playerEvents_.set("UNSUBSCRIBE",this.onPlayerUnsubscribe_);this.playerEvents_.set("onYtShowToast",this.onPlayerAdYtShowToast_);this.playerEvents_.set("onFullscreenChange",this.onPlayerFullscreenChange_);this.playerEvents_.set("onVideoDataChange",this.onPlayerPresentingVideoDataChange_);this.engagementPanelScrimOnClickCommands_=null;_.c("kevlar_watch_metadata_refresh")&&(this.watchMetadata=void 0);_.c("kevlar_watch_flexy_theater_manager")||
(this.actionMap["yt-toggle-theater-mode"]="setTheaterModeRequested",this.actionMap["yt-is-theater"]="isTheater_",this.playerEvents_.set("SIZE_CLICKED",this.setTheaterModeRequested));_.c("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.UO(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(F){F&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:F}),F.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(F){_.c("kevlar_watch_flexy_theater_manager")&&(this.theater=F,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(F){!_.c("kevlar_watch_while_v2")&&!_.c("web_watch_pip")||F||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(F){this.active!==void 0&&(this.fullscreen=F,_.c("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(F){this.active!==void 0&&(_.hF(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.c("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.c("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(F>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(F){this.initCsi_();this.updatePageData_(F)},
updatePageData_:function(F){var W=this;if(F)if(this.data===F){this.onPageLoadWithSameData_();var E;(E=this.watchController)==null||E.setWatchNextResponse(this.data)}else this.data=F;this.playlist&&_.$b({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.P5("nw");this.loading=!1;_.sB(_.P0,function(){W.initDclkstatus_();var h,d=((h=W.player)==null?void 0:h.getVideoData().cpn)||"";_.Zw8(function(V,R){_.OU6(V,R,d)})})},
onPageLoadWithSameData_:function(){_.c("kevlar_watch_flexy_comments_manager")||this.initComments_();this.setPlayerAds_()},
setLoadingState_:function(){this.hostElement.classList.remove("hide-skeleton");this.hostElement.classList.add("show-skeleton");this.setPlayerLoadingState_();this.hostElement.classList.add("loading");var F=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!F);this.set("loadingData.playlistLoading",F&&F!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),F=this.watchNextSkeletonEl_.firstElementChild;F;)F.classList.remove("hidden"),F=F.nextElementSibling;if(_.c("kevlar_watch_frame0_loading_state")){var W,E,h;F=(W=this.loadingData)==null?void 0:(E=W.endpoint)==null?void 0:(h=E.watchEndpoint)==null?void 0:h.videoId;var d;F&&(d="https://i.ytimg.com/vi/"+F+"/frame0.jpg");_.Z(this.hostElement).querySelector("#player").style.backgroundImage=d?"url("+d+")":""}},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var F=_.Z(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&F&&(F.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var W,E;(E=(W=this.watchMetadata).updateSentimentBarWidth)==
null||E.call(W);var h,d;(d=(h=this.watchMetadata).resize)==null||d.call(h)}_.c("kevlar_watch_frame0_loading_state")&&(_.Z(this.hostElement).querySelector("#player").style.backgroundImage="")},
addSplitScrollMouseTrap:function(F){var W=_.Z(this.hostElement).querySelector(F);W?_.W5(W,!1):_.OB(new _.xC("Overscroll monitor not found for component: ",F))},
removeSplitScrollMouseTrap:function(F){var W=_.Z(this.hostElement).querySelector(F);W?_.ET(W):_.OB(new _.xC("Disposal component for  overscroll monitoring not found: ",F))},
onLoadingChanged_:function(F){F?this.setLoadingState_():this.clearLoadingState_()},
setPlayerLoadingState_:function(){this.playerLoading_||(this.playerLoading_=!0,this.hostElement.classList.add("loading-player"))},
clearPlayerLoadingState_:function(){this.playerLoading_&&(this.playerLoading_=!1,this.hostElement.classList.remove("loading-player"))},
toggleBodyScrolling_:function(F){var W=this;F?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.P0.addLowPriorityJob(function(){W.onWindowResized_(_.cB(!0))})},
updateTheaterModeState_:function(F){if(!_.c("kevlar_watch_flexy_theater_manager")){F=F||this.fullWindowMode_;if(this.theater!==void 0||F)this.theater=F;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();F&&_.y6T()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation();this.updatePanelsLocation()},
updatePlayerLocation:function(){var F=this.theater||this.enableFullBleedSingleColumnDefaultPlayer&&this.fullBleedPlayer;_.c("external_fullscreen")&&this.fullscreen&&(F=!0);F=F?_.Z(this.hostElement).querySelector("#player-full-bleed-container"):_.Z(this.hostElement).querySelector("#player-container-inner");var W=this.getPlayerContainer(),E=_.c("kevlar_watch_while_v2")||_.c("web_watch_pip");W.parentElement!==F&&(E&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():(_.FF(this).appendTo(F,
W),F.appendChild(_.Z(this.hostElement).querySelector("#error-screen"))))},
deactivateMiniplayerAndResetPlayer:function(){var F=this;return _.e(function(W){if(W.nextAddress==1)return _.Q(W,_.WZ().resolve(_.GF).deactivate(),2);F.updatePlayerLocation();_.gG(W)})},
updateCinematicsLocation:function(){var F=this.getElement("CINEMATICS");if(F){var W=this.getCinematicsLocationContainer();F.parentElement!==W&&W.appendChild(F);var E;(E=this.watchController)==null||E.updateCinematicFullscreenConfig()}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInWideContainer(this.theater&&!this.fullscreen,this.fullscreen)?_.Z(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.Z(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInWideContainer:function(F,W){var E=document.documentElement.hasAttribute("dark"),h=E&&_.c("web_cinematic_theater_mode"),d=E&&_.c("web_cinematic_fullscreen");E=!E&&this.cinematicLightTheme;return F&&h||W&&d||(W||F)&&E},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var F=this,W;(W=this.watchController)==null||W.setWatchNextResponse(this.data);_.c("kevlar_watch_flexy_comments_manager")||this.initComments_();_.c("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.WZ().resolve(_.yH).cancelVideoSkip();this.showEngagementPanelScrim_=!1;this.trackEngagementPanelVisibility&&(this.engagementPanelExpanded=!1,this.visiblePanelIdentifiers_.clear());if(this.is==="ytd-watch-grid")if(this.liveChatCollapsed=!0,this.visiblePanelIdentifiers_.clear(),
this.engagementPanelExpanded=!1,_.c("kevlar_watch_grid_auto_open_playlist"))this.onSetPlaylistCollapsed(!1),_.P0.addLowPriorityJob(function(){_.Nc(F.hostElement,"yt-set-playlist-collapsed",[!1])},1E3);
else this.onSetPlaylistCollapsed(!this.playlistPanelExpanded);this.data&&this.updateCinematicsLocation();if(_.c("web_watch_start_chat_in_theater_mode")){var E,h,d;if((E=this.data)==null?0:(h=E.contents)==null?0:(d=h.twoColumnWatchNextResults)==null?0:d.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var V,R;((V=this.data)==null?0:(R=V.contents)==null?0:R.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=
!1)}}},
playerDataChanged_:function(F){var W;(W=this.watchController)==null||W.setPlayerResponse(this.playerData);F&&F.playabilityStatus&&(W=this.isVideoPlayable_(F.playabilityStatus,this.getPlayerOverlays_(this.data)),F=this.isLiveStreamOffline_(F.playabilityStatus),W&&!F||_.wT(this,function(){_.P5("pbu")}));
this.setPlayerAds_();_.Nc(this.hostElement,"ytd-watch-player-data-changed")},
computePlayerContainerBackgroundImage:function(F,W){if((_.c("kevlar_watch_while_v2")||_.c("web_watch_pip"))&&this.playerData&&W)return this.playerData.videoDetails},
watchPageActiveChanged_:function(F){_.uC().dispatch(_.MTK(this.active));F?this.activate_():this.deactivate_()},
attached:function(){var F=this;this.watchController=new _.n0(this.hostElement);this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.addSplitScrollMouseTrap("#primary"),this.addSplitScrollMouseTrap("#fixed-secondary"));this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data);_.c("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var W=_.FF(this);_.c("kevlar_disable_prepare_player")||
W.preparePlayer();_.c("kevlar_watch_flexy_playlist_manager")||_.WZ().resolve(_.yH).setPlayer(W);this.is!=="ytd-watch-grid"&&this.attachWatchPageSkeleton_();this.updatePageMediaQueries();W={"--ytd-watch-flexy-scrollbar-width":_.Jp()+"px"};this.is==="ytd-watch-grid"&&(W["--ytd-watch-flexy-sidebar-width"]=_.sBK+"px",W["--ytd-watch-grid-horizontal-page-margins"]=_.Or+"px",W["--ytd-watch-grid-columns-top-margins"]=_.xs6+"px",W["--ytd-watch-grid-min-player-height-medium"]="360px");!_.dV("kv_pl_mx_sz_ks")&&
_.dV("kevlar_watch_max_player_width")&&(W["--ytd-watch-flexy-max-player-width-wide-screen"]=_.Luu+"px");_.dV("kevlar_watch_flexy_metadata_height")&&(W["--ytd-watch-flexy-space-below-player"]=_.q3T+"px");this.safeUpdateStyles(W);_.c("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new _.Mm(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return F.onPlayerTouchPanDown_()}}));
_.c("kevlar_watch_metadata_refresh")&&(this.watchMetadata=_.Z(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"))},
updatePageMediaQueries:function(){var F=_.Jp(),W=_.b9+F,E=W;this.fixedPanels&&(W+=_.sBK);var h=657+F;F=1327+F;_.Z(this.hostElement).querySelector("#two-column-query").query="(min-width: "+W+"px)";_.Z(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(h+"px), (min-height: 630px) and (min-width: ")+(W+"px) and (max-width: ")+(F+"px)");_.Z(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(F+"px)");_.Z(this.hostElement).querySelector("#watch-while-query").query=
"(min-width: "+E+"px)"},
calculateCurrentPlayerSize_:function(){var F=_.Z(this.hostElement).querySelector("#miniplayer-bar").firstChild,W=this.squeezeback&&!_.c("web_watch_squeezeback_player_size_killswitch");return F&&F.active||this.theater||_.c("web_watch_fullscreen_panels")&&this.fullscreen||this.swatcherooSqueezeback||W||!this.active||!this.windowSize_||this.enableFullBleedSingleColumnDefaultPlayer&&this.fullBleedPlayer?new _.Rl(NaN,NaN):_.rg(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||
this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.rg(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.u5(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var F=this;this.onWindowResized_(_.cB());_.c("browse_skeleton_removal_on_watch_killswitch")||_.l0("IS_SHELL_LOAD")&&_.lfK();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var W=_.FF(this);W.addEventListener("yt-player-updated",_.UO(this,this.onPlayerUpdated_));W.getPlayerPromise().then(function(E){F.playerApiReady_(E)});
_.c("kevlar_watch_flexy_playlist_manager")||(W=_.WZ().resolve(_.yH),_.c("kevlar_watch_observe_playlist_navigations_killswitch")&&W.addEventListener("yt-navigate",_.UO(this,this.onYtNavigate_)),W.setPlaylistComponent(_.Z(this.hostElement).querySelector("#playlist")),W.addEventListener("yt-playlist-data-updated",_.UO(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.P0.addLowPriorityJob(function(){_.hF(F.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.FF(this).removeEventListener("yt-player-updated",_.UO(this,this.onPlayerUpdated_));this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary"));if(!_.c("kevlar_watch_flexy_playlist_manager")){var F=_.WZ().resolve(_.yH);_.c("kevlar_watch_observe_playlist_navigations_killswitch")&&F.removeEventListener("yt-navigate",_.UO(this,this.onYtNavigate_));
F.cancelVideoSkip();F.removeEventListener("yt-playlist-data-updated",_.UO(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.c("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.hF(this.hostElement,"yt-autonav-pause-player",!1);F=_.Kg();_.c("kevlar_exit_fullscreen_leaving_watch")&&F&&_.Fj(F)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(F){this.player&&this.player.updateVideoData({rvs:F.rvs})},
getPageContents:function(F){return F&&F.contents&&F.contents.twoColumnWatchNextResults&&F.contents.twoColumnWatchNextResults.results&&F.contents.twoColumnWatchNextResults.results.results.contents},
getClarifyBox:function(){return this.clarifyBoxValue},
getLimitedState:function(){return this.limitedStateValue},
getMerchShelf:function(){return this.merchShelfValue},
getSingleColumn:function(){return this.singleColumnValue},
getOfferModule:function(F){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",F)},
onRetrieveLocation_:function(F,W){W.hasComments?W.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):W.locationRetrieved("/related_ajax",void 0);F.stopPropagation()},
onSubscriptionChanged_:function(F,W){this.player&&(W?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.q8("watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.Z(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.Z(this.hostElement).querySelector("#ytd-player"));return this.playerEl},
playerApiReady_:function(F){this.player=F;this.setPlayerState(F.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.c("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.c("kevlar_unified_player")||_.c("kevlar_player_new_bootstrap_adoption"))&&_.hU()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(F,W){W=W===void 0?!0:W;_.Kg()&&_.c("external_fullscreen")&&_.Fj(document.documentElement);this.theaterRequested_=F;W&&_.vZ("wide",F?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();this.schedulePanelMaxHeightUpdate_();_.dW(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.hF(this.hostElement,"yt-set-theater-mode-enabled",{enabled:this.theater})},
onWatchScroll_:function(){this.scrollThrottle_.fire();this.mastheadScrollThrottle.fire()},
setPlayerTheaterMode_:function(){try{this.player.setSizeStyle(!0,this.theater)}catch(F){_.bf(F,typeof this.player),this.player&&_.bf(F,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var F;((F=this.player)==null?0:F.isFullscreen())?this.player.toggleFullscreen():_.dW(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(F,W){return this.loading?W:!!Object.keys(F).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(F){if(F){F=_.U(F);for(var W=F.next();!W.done;W=F.next())W=W.value,W.youThereRenderer&&_.Gq6(this.youThereManager_,W.youThereRenderer)}},
setPlaylistData_:function(F){return F||{}},
userEngagementConfigDataChanged_:function(F){if(F)if(F.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var W=this.youThereManager_;_.hV()<F.lowEngagementThresholdMs||_.Srg(W,!0)}else F.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.dW(this.hostElement,"yt-autonav-pause-user-engagement",[F])},
isPlayerUnavailable_:function(F,W,E){return!!F&&!this.isVideoPlayable_(F,E)&&!W},
getPlayerOverlays_:function(F){return(F==null?void 0:F.playerOverlays)||null},
isVideoPlayable_:function(F,W){if(!F)return!1;var E=F.status==="OK"||F.status==="LIVE_STREAM_OFFLINE",h=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",F)||this.get("errorScreen.ypcTrailerRenderer",F);F=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",F);var d;W=W==null?void 0:(d=W.playerOverlayRenderer)==null?void 0:d.gatedActionsOverlayRenderer;return!!E||!!h||!!F||!!W},
hasWatchNextResponseErrorRenderer:function(F){var W=this.getPageContents(F),E,h,d,V,R;return!(F==null?0:(E=F.contents)==null?0:(h=E.twoColumnWatchNextResults)==null?0:h.secondaryResults)&&!!((d=W[0])==null?0:(V=d.itemSectionRenderer)==null?0:(R=V.contents[0])==null?0:R.backgroundPromoRenderer)},
isLiveStreamOffline_:function(F){return F?F.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(F,W,E){var h=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",W),d=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];d=_.c("web_no_skip_video_on_verification_checks")?(F==null?void 0:F.status)&&d.includes(F.status):F&&F.status==="AGE_CHECK_REQUIRED";var V=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",F);V==void 0&&(V=!0);!E||this.isVideoPlayable_(F,this.getPlayerOverlays_(W))||
h||d||!V||_.WZ().resolve(_.yH).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.fY6()},
onPlayerFeedbackStartRequest_:function(F){_.dW(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:F}])},
onPlayerFeedbackArticleRequest_:function(F){_.dW(this.hostElement,"yt-help-dialog-requested",[F])},
onPlayerYpcContentRequest_:function(){var F,W,E,h,d,V,R,M,g=((F=this.data)==null?NaN:(W=F.contents)==null?NaN:(E=W.twoColumnWatchNextResults)==null?NaN:(h=E.secondaryResults)==null?NaN:(d=h.secondaryResults)==null?NaN:(V=d.offerModule)==null?NaN:(R=V.tvfilmOfferModuleRenderer)==null?NaN:(M=R.actionButtons)==null?NaN:M.length)-1;F=[".offerButton.buttonRenderer.",".actionButtons."+(g>=0?g:0)+".buttonRenderer."];W=_.U(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(E=W.next();!E.done;E=W.next())for(E=E.value,h=_.U(F),d=h.next();!d.done;d=h.next())if(d="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+E+d.value,d=this.get(d+"navigationEndpoint",this.data)||this.get(d+"serviceEndpoint",this.data)||this.get(d+"command",this.data)){_.ei(d,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(F){_.hF(this.hostElement,"yt-autonav-pause-player",F)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(F){F()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(F){switch(F){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(F){switch(F){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.hF(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(F)},
setPlayerState:function(F){_.uC().dispatch(_.fjp(F))},
onPlayerSubscribe_:function(F){_.dW(this.hostElement,"yt-player-subscribe",[F])},
onPlayerUnsubscribe_:function(F){_.dW(this.hostElement,"yt-player-unsubscribe",[F])},
onPlayerAdYtShowToast_:function(F){_.dW(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:F.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(F){if(F)return F},
computeCommentsEntryPointHeaderRenderer:function(){if(this.commentTeaserEnabled)return this.swatcherooBinaryLayout?this.defaultTwoColumnLayout?void 0:this.commentsEntryPointHeaderRendererValue:this.isTwoColumns_?void 0:this.commentsEntryPointHeaderRendererValue},
computeShowRichGridContinuationButton:function(){return this.is!=="ytd-watch-grid"?!1:this.commentTeaserEnabled?this.swatcherooBinaryLayout?!1:!this.commentsEntryPointHeaderRenderer:!this.isTwoColumns_},
computeShowExpandableMetadata:function(F){return!_.c("web_watch_move_summary_to_sd")&&!!F},
computeWatchMetadataRefresh:function(){return _.c("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
computeRoundedPlayer:function(){return this.defaultLayout&&!(_.c("web_player_rtr_ctrls")&&this.retroMode)},
watchNextSecondaryResultsChanged:function(){if(this.is!=="ytd-watch-grid"&&!this.useProviderForSecondaryResultsRenderer){var F,W,E,h;this.watchNextSecondaryResults=(F=this.data)==null?void 0:(W=F.contents)==null?void 0:(E=W.twoColumnWatchNextResults)==null?void 0:(h=E.secondaryResults)==null?void 0:h.secondaryResults}},
swatcherooRichGridRendererDataChanged:function(){if(this.is==="ytd-watch-grid"&&this.swatcherooDirectUseRichGrid&&!_.c("swatcheroo_pbs_load_grid")&&!_.c("swatcheroo_provide_all_data_on_scheduled_job")){_.P0.cancelJob(this.setRichGridJobId_);var F,W,E,h,d,V,R;this.setRichGridRendererData((F=this.data)==null?void 0:(W=F.contents)==null?void 0:(E=W.twoColumnWatchNextResults)==null?void 0:(h=E.secondaryResults)==null?void 0:(d=h.secondaryResults)==null?void 0:(V=d.results)==null?void 0:(R=V[0])==null?
void 0:R.richGridRenderer)}},
setRichGridRendererData:function(F){this.richGridRendererData=F},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var F,W=(F=this.data)==null?void 0:F.engagementPanels;if(W==null?0:W.length){F=null;W=_.U(W);for(var E=W.next();!E.done;E=W.next()){E=E.value;var h=void 0;if(((h=E.engagementPanelSectionListRenderer)==null?void 0:h.targetId)==="engagement-panel-structured-description"){F=E;break}}var d,V,R;F=(d=F)==null?void 0:(V=d.engagementPanelSectionListRenderer)==null?void 0:(R=V.content)==null?void 0:R.structuredDescriptionContentRenderer;if(F==null?0:F.items){d=
[];V=_.U(F.items);for(R=V.next();!R.done;R=V.next()){R=R.value;if(!_.c("sd_horizontal_list_show_nav_killswitch")){var M=h=E=W=F=void 0,g=void 0,t=(F=R.horizontalCardListRenderer)==null?void 0:(W=F.header)==null?void 0:(E=W.richListHeaderRenderer)==null?void 0:(h=E.navigationButton)==null?void 0:(M=h.buttonRenderer)==null?void 0:(g=M.command)==null?void 0:g.commandExecutorCommand;t&&t.commands&&(t.commands=t.commands.filter(function(C){return!_.D(C,_.jpP)}))}R.expandableVideoDescriptionBodyRenderer||
R.videoDescriptionHeaderRenderer||d.push(R)}return{items:d}}}},
constructWarning_:function(F){return{text:_.Gr(F),type:"WARNING"}},
isPlaShelfEnabled_:function(F){if((this.get("adPlacements",F)||[]).length)return!0;F=this.get("playerAds",F)||[];return!(!F.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",F[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var F=this;_.hF(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.c("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var W=this.getScrollTop()>0;this.gestures_&&(W?this.gestures_.detach():this.gestures_.attach());W!==this.showFullerscreenEdu_&&_.c("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=W,_.FF(this).getPlayerPromise().then(function(E){E.updateFullerscreenEduButtonVisibility(F.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.hF(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var F=this;this.commentsReady=!1;_.P0.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.sB(_.P0,function(){F.setComments_()},1E3)},
setComments_:function(){if(!_.c("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.P5("cmi");_.P0.cancelJob(this.setCommentsJobId_);var F=this.getPageContents(this.data);if(F&&F.length){F=_.U(F);for(var W=F.next();!W.done;W=F.next())if(W=W.value,this.get("itemSectionRenderer.sectionIdentifier",W)==="comment-item-section"){this.comments=W.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.hF(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.c("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.c("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.P5("cmc")},
doRemoveComments_:function(){this.comments={};_.c("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.P0.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.P0.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(F,W){var E=_.D(W.endpoint,_.GM);E&&(!(W=this.get("data.currentVideoEndpoint.watchEndpoint"))||E.videoId!==W.videoId||E.playlistId&&E.playlistId!==W.playlistId||E.index!==void 0&&E.index!==W.index||typeof E.startTimeSeconds!=="number"||(F.stopPropagation(),this.setScrollTop(0),_.FF(this).getPlayerPromise().then(function(h){var d=E.startTimeSeconds;h.seekTo(d);h.wakeUpControls();d<h.getDuration()&&h.playVideo()})))},
updatePlayerStartTime_:function(){var F=_.IYP();"t"in F&&(F=_.aYK(F.t),this.player.seekTo(F,!0))},
updateTitleFromWatchNext:function(F){F=this.getPageContents(F);var W,E;(F=_.Yr(F==null?void 0:(W=F[0])==null?void 0:(E=W.videoPrimaryInfoRenderer)==null?void 0:E.title))&&_.hF(this.hostElement,"yt-update-title",F)},
updateTitle_:function(F){F=this.get("videoDetails.title",F)||"";_.hF(this.hostElement,"yt-update-title",F)},
syncWithRemoteVideo_:function(F,W,E){if(this.active&&this.player){var h=this.player.getVideoData();if(h.video_id===E&&(E=h.list,_.c("polymer_enable_mdx_queue")&&E&&E.startsWith("RQ")&&(E=void 0),h.video_id!==F||E!=W)){var d;_.c("kevlar_player_watch_endpoint_navigation")?d=_.o_e(_.X_g(F,W)):d=this.buildWatchEndpoint_(F,W);_.hF(this.hostElement,"yt-navigate",{endpoint:d,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(F,W,E){return _.FD(F,W,E)},
initDclkstatus_:function(){_.J2q()},
attachWatchPageSkeleton_:function(){var F=document.querySelector("#watch-page-skeleton");if(F){var W=F.querySelector("#primary-info"),E=F.querySelector("#secondary-info"),h=F.querySelector("#related");W&&_.Z(this.hostElement).querySelector("#info-skeleton").appendChild(W);E&&_.Z(this.hostElement).querySelector("#meta-skeleton").appendChild(E);h&&(_.Z(this.hostElement).querySelector("#related-skeleton").appendChild(h),this.watchNextSkeletonEl_=h);_.Bb(F)}},
handlePlayerUpdated_:function(){_.FF(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(F,W){if((this.is!=="ytd-watch-grid"||!this.swatcherooDirectUseRichGrid)&&this.watchNextSkeletonEl_&&typeof W!=="undefined"){var E=this.watchNextSkeletonEl_.children,h=F&&F.indexSplices.length?F.indexSplices[0].index:0;F=Math.min(this.watchNextShownItems.length,E.length);W||(h=0,F=E.length);for(W=h;W<F;W++)E[W].classList.add("hidden")}},
onPlayerFullscreenChange_:function(F){_.c("external_fullscreen")||_.dW(this.hostElement,"yt-player-fullscreen",[F.fullscreen])},
onFullscreenChange_:function(F){this.fullscreen=F;this.gestures_&&this.gestures_.update(this.fullscreen);var W=_.FF(this);W.getPlayerPromise().then(function(E){E.setFauxFullscreen(!!_.Kg())});
this.updateFullBleedElementLocations();F&&(W.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(F,W){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!W},
computeIsDonationShelfCollapsed_:function(F){return F},
computeShouldShowMerchShelf:function(F,W){return W&&!!F},
computeResponseHasComments:function(F){var W,E,h,d,V;return!!(F==null?0:(W=F.contents)==null?0:(E=W.twoColumnWatchNextResults)==null?0:(h=E.results)==null?0:(d=h.results)==null?0:(V=d.contents)==null?0:V.some(function(R){var M;return(R==null?void 0:(M=R.itemSectionRenderer)==null?void 0:M.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(F,W,E,h){this.responseHasComments=this.computeResponseHasComments(this.data);return this.is==="ytd-watch-grid"&&h?!1:!!F&&!!Object.keys(F).length&&!W},
identity:_.io,onWindowResized_:function(F){this.windowSize_=F;this.active&&(this.schedulePlayerSizeUpdate_(!0),this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate());_.c("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(F){var W=this;F&&F.type!=="dataloaded"&&F.type!=="dataupdated"||_.FF(this).getPlayerPromise().then(function(E){var h=E.getPlayerState();h!==5&&h!==0&&(E=1/E.getVideoAspectRatio(),W.videoHeightToWidthRatio_!==E&&(W.videoHeightToWidthRatio_=E))})},
schedulePlayerSizeUpdate_:function(F){var W=this,E=_.c("kevlar_watch_while_v2")||_.c("web_watch_pip"),h=function(){if(W.watchMetadata){var d,V;(V=(d=W.watchMetadata).resize)==null||V.call(d)}_.FF(W).getPlayerPromise().then(function(R){if(_.c("kevlar_set_internal_player_size")){if(!E||!W.isMiniplayerActive()){var M=W.calculateCurrentPlayerSize_();R.setInternalSize(M.width,M.height)}}else R.setSize(NaN,NaN);_.c("kevlar_watch_while")&&W.updateWatchWhileScrollThreshold_()})};
F?h():_.JG(_.P0,h)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(F){this.set("data.survey",F.detail)},
onYtShowSurveyCommand_:function(F){this.set("data.survey",_.D(F,_.iwg).survey)},
onDownloadedVideoDeleted:function(F){var W=this,E,h;return _.e(function(d){if(d.nextAddress==1){if(!W.active||(E=W.playerData)==null||!E.offlineState||W.videoId!==F)return d.return();(h=W.player)==null||h.stopVideo();_.DT().navigatingAwayFromWatchDeletedVideo=!0;_.ei(_.PXY,W.hostElement);return _.Q(d,_.DT().navigationFinishPromise,2)}_.DT().navigatingAwayFromWatchDeletedVideo=!1;_.gG(d)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var F;this.theater?F=_.jX(.5625*this.windowSize_.width,480,this.windowSize_.height-185):F=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==F&&(this.watchWhileScrollThreshold_=F,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var F=_.Z(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&F){var W=this.windowSize_.height>=624,E=this.active?this.getScrollTop():0;!F.active&&W&&E>=this.watchWhileScrollThreshold_?(F.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):F.active&&(!W||E<this.watchWhileScrollThreshold_&&!_.Kg())&&(F.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
defaultTwoColumnLayoutChanged:function(){if(this.swatcherooBinaryLayout&&this.is==="ytd-watch-grid"){var F=_.Z(this.hostElement).querySelector("#secondary-inner");if(F){var W=_.Z(this.hostElement).querySelector("#below"),E=_.Z(this.hostElement).querySelector("#secondary"),h=_.Z(this.hostElement).querySelector("#comments");h&&E&&W&&(this.defaultTwoColumnLayout?(F.appendChild(h),E.appendChild(F)):(W.appendChild(h),_.fw(W,F)))}}},
isTwoColumnsChanged_:function(F,W){if(F!==!0||W!==void 0)if(this.enableFullBleedSingleColumnDefaultPlayer&&this.updateFullBleedElementLocations(),this.is==="ytd-watch-grid"){if(!this.swatcherooBinaryLayout&&(F=_.Z(this.hostElement).querySelector("#secondary-inner"))){W=_.Z(this.hostElement).querySelector("#below");var E=_.Z(this.hostElement).querySelector("#secondary"),h=_.Z(this.hostElement).querySelector("#comments");h&&E&&W&&(this.isTwoColumns_?(F.appendChild(h),E.appendChild(F)):(W.appendChild(h),
_.fw(W,F)))}}else{F=!_.c("live_chat_over_engagement_panels");W=_.Z(this.hostElement).querySelector("#chat-container");E=_.Z(this.hostElement).querySelector("#panels");var d=_.Z(this.hostElement).querySelector("#alerts");h=_.Z(this.hostElement).querySelector("#playlist");var V=_.Z(this.hostElement).querySelector("#related"),R=_.Z(this.hostElement).querySelector("#donation-shelf"),M=_.Z(this.hostElement).querySelector("#comments");this.isTwoColumns_?(d=_.Z(this.hostElement).querySelector("#secondary-inner"),
F&&d.appendChild(E),d.appendChild(h),_.c("web_watch_theater_chat")||d.appendChild(W),F||d.appendChild(E),d.appendChild(R),d.appendChild(V)):(F&&_.bk(E,d),_.bk(h,d),_.c("web_watch_theater_chat")||_.bk(W,d),F||_.bk(E,d),_.bk(R,d),M&&_.bk(V,M));this.active&&(this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate())}},
watchWhileWindowSizeSufficientChanged:function(){_.c("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(this.is!=="ytd-watch-grid"&&_.c("web_watch_theater_chat")){var F=_.Z(this.hostElement).querySelector("#chat-container"),W=this.theater&&!this.fullscreen||_.c("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&W?_.c("web_watch_theater_chat_beside_player")?(W=_.Z(this.hostElement).querySelector("#panels-full-bleed-container"),(F==null?void 0:F.parentElement)!==W&&W.append(F),this.panelsBesidePlayer=!0):
_.c("web_watch_theater_fixed_chat")&&(W=_.Z(this.hostElement).querySelector("#columns"),(F==null?void 0:F.parentElement)!==W&&W.append(F),this.fixedPanels=!0):(_.c("web_watch_theater_chat_beside_player")?this.panelsBesidePlayer=!1:_.c("web_watch_theater_fixed_chat")&&(this.fixedPanels=!1),W=_.Z(this.hostElement).querySelector("#playlist"),F&&W?_.lk(F,W):_.OB(new _.xC("Missing element when updating chat location",{"chatContainer defined":!!F,"playlist defined":!!W})));this.updatePageMediaQueries();
this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(F,W){return _.c("sw_metadata_vis_toggle_ks")?!0:!!F||!!W},
computeForceDarkPanelTheme:function(F){return _.c("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&F:!1},
safeUpdateStyles:function(F){try{_.V9(this.hostElement,F)}catch(W){_.OB(W)}},
videoHeightToWidthRatioChanged_:function(F,W){W&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(F){this.videoHeightToWidthRatio_=1/F},
computeIsVerticalVideo_:function(F){return F>=1},
computeIsFourThreeToSixteenNineVideo_:function(F){return F<=.7501&&F>=.5624},
computeIsExtraWideVideo_:function(F){return F<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.FF(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.FF(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.p_w(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(F){var W=_.Cy(F)||0;_.tl(F,W+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var F=_.Cy("yt-fullerscreen-edu-button-click-count")||0,W=_.Cy("yt-fullerscreen-edu-button-shown-count")||0,E=_.dV("external_fullscreen_button_shown_threshold"),h=F>=_.dV("external_fullscreen_button_click_threshold")||W>=E;_.FF(this).getPlayerPromise().then(function(d){d.updateFullerscreenEduButtonSubtleModeState(h)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(F,W){return W},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.WZ().resolve(_.yH).getPlaylistData()||{}},
scheduleFullHeightPanelPositionUpdate:function(){var F=this;this.is==="ytd-watch-grid"&&(this.panelExpanded||this.playlist)&&(this.fullHeightPanelPositionUpdateJobId&&_.P0.cancelJob(this.fullHeightPanelPositionUpdateJobId),this.fullHeightPanelPositionUpdateJobId=_.P0.addLowPriorityJob(function(){F.fullHeightPanelPositionUpdateJobId=0;var W=_.Z(F.hostElement).querySelector("#secondary"),E=_.Z(F.hostElement).querySelector("#fixed-secondary");W=W.getBoundingClientRect();var h=W.width;F.swatcherooSqueezeback&&
(h+=_.Or);if(F.swatcherooSqueezeback){var d=_.Z(F.hostElement).querySelector("#squeezeback-constraining-container");d.style.width=h+"px";d.style.flex="0 0 "+h+"px"}E.style.width=h+"px";E.style.left=W.left+"px"}))},
schedulePanelMaxHeightUpdate_:function(){var F=this;this.is!=="ytd-watch-grid"&&(this.panelMaxHeightUpdateJob_&&_.P0.cancelJob(this.panelMaxHeightUpdateJob_),this.panelMaxHeightUpdateJob_=_.P0.addLowPriorityJob(function(){F.panelMaxHeightUpdateJob_=0;var W;!F.isTwoColumns_||F.theater||F.fullscreen?W=460:W=F.calculateNormalPlayerSize_().height;var E=W+"px";_.c("live_chat_taller_height")&&!F.theater&&(E="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");
_.c("live_chat_medium_height")&&!F.theater&&(E="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.c("live_chat_scaled_height")&&!F.theater&&(E="calc(100vh - var(--ytd-toolbar-height) - 238px)");F.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":W+"px","--ytd-watch-flexy-chat-max-height":E,"--ytd-watch-flexy-structured-description-max-height":W+"px","--ytd-watch-flexy-comments-panel-max-height":W+"px","--ytd-comments-engagement-panel-content-height":W+"px"})}))},
onYtShowEngagementPanelScrimAction_:function(F){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",F)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.Rj(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(F){var W=_.Z(this.hostElement).querySelector("#engagement-panel-scrim");F?W.addEventListener("tap",_.UO(this,this.onEngagementPanelScrimClick_)):W.removeEventListener("tap",_.UO(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(F){if(this.hostElement.contains(F)&&!this.scrollToAnimation_.isAnimating()){var W=F.offsetTop-24;F=F.offsetTop+F.offsetHeight+24;var E=this.getPageScrollingElement(),h=this.getScrollTop(),d=h+E.clientHeight-56;if(W<h+56)W-=56;else if(F>d)W=F-E.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,W),500)}},
onYtSignalActionScrollToComments:function(){var F=this.hostElement.querySelector("#comments");if(F&&!this.scrollToAnimation_.isAnimating()){F=F.offsetTop-56-24;if(_.c("kevlar_comment_teaser_scroll_to_midpoint")&&(F-=_.eU().height/3,F<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,F),500)}},
onYtEngagementPanelVisibleChanged:function(F,W,E){if(this.active&&this.trackEngagementPanelVisibility&&!_.y28.includes(E)){if(W==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"){if(this.swatcherooBinaryLayout||this.squeezeback)if(this.onSetPlaylistCollapsed(!0),_.Nc(this.hostElement,"yt-set-live-chat-collapsed-state-action",[{setLiveChatCollapsedStateAction:{collapsed:!0}}]),_.c("kevlar_single_panel_fullscreen")){var h=_.WZ().resolve(_.sL);this.visiblePanelIdentifiers_.forEach(function(d){d!==E&&h.hidePanel(d)})}this.visiblePanelIdentifiers_.add(E)}W!==
"ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&W!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(E);
this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0}},
computeLegacyMetadataClass:function(F){return F?"":"watch-active-metadata"},
computeNewMetadataClass:function(F){return F?"watch-active-metadata":""},
computeFullBleedPlayer:function(F,W,E){return F||W||this.enableFullBleedSingleColumnDefaultPlayer&&!E},
computeDefaultLayout:function(F){return!F},
computeDefaultTwoColumnLayout:function(F,W){return!F&&W},
updatePanelsLocation:function(){if(_.c("web_watch_enable_fs_squeezeback_panels")){var F=_.Z(this.hostElement).querySelector("#below"),W=_.Z(this.hostElement).querySelector("#panels"),E=_.Z(this.hostElement).querySelector("#panels-full-bleed-container"),h=_.Z(this.hostElement).querySelector("#secondary-inner");this.fullscreen||this.theater&&this.iMaxTheaterMode?E.appendChild(W):this.isTwoColumns_?_.fw(h,W):F.appendChild(W)}},
swatcherooUpdatePanelsLocation:function(F,W,E,h,d,V){if(this.is==="ytd-watch-grid"){W=F&&!W;this.swatcherooSplitScroll&&(W?(this.addSplitScrollMouseTrap("#secondary-inner"),this.addSplitScrollMouseTrap("#fixed-secondary")):(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary")));E=_.Z(this.hostElement).querySelector("#panels");var R=_.Z(this.hostElement).querySelector("#playlist"),M=_.Z(this.hostElement).querySelector("#fixed-secondary"),g=_.Z(this.hostElement).querySelector("#fixed-below"),
t=_.Z(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"),C=_.Z(this.hostElement).querySelector("#chat-container");V&&(F?M.appendChild(E):g.appendChild(E));d?F?M.appendChild(C):g.appendChild(C):_.lk(C,t);h?F?M.appendChild(R):g.appendChild(R):_.lk(R,t);this.swatcherooSplitScroll&&(F=_.Z(this.hostElement).querySelector("#secondary"),h=_.Z(this.hostElement).querySelector("#columns"),d=_.Z(this.hostElement).querySelector("#fixed-columns-secondary"),W?d.appendChild(F):
h.appendChild(F))}},
computeMetadataSkinnyMode:function(F,W,E){return this.is!=="ytd-watch-grid"?!1:F?E:W},
computeWatchWhilePanelsActive:function(F,W){return F||W},
computeNoBorderOnChat:function(F){return _.c("web_watch_theater_chat_no_border")&&F},
computeLiveChatPresentAndExpanded:function(F,W){return F&&!W},
computePanelExpanded:function(F,W,E){return F||W||E},
computeSqueezeback:function(F,W){if(_.c("web_watch_enable_fs_squeezeback_panels")){var E=this.iMaxTheaterMode&&this.theater;return F&&(W||E)}},
computeSwatcherooSqueezeback:function(F,W,E){return this.is!=="ytd-watch-grid"||_.c("ww_squeezeback_killswitch")?!1:F&&W&&E},
swatcherooSqueezebackChanged:function(){this.is==="ytd-watch-grid"&&this.schedulePlayerSizeUpdate_()},
squeezebackChanged:function(){this.schedulePlayerSizeUpdate_()},
onChangeMarkersVisibility:function(F){_.FF(this).getPlayerPromise().then(function(W){var E;(E=W.changeMarkerVisibility)==null||E.call(W,_.D(F,_.Te).isVisible||!1,_.D(F,_.Te).entityKeys||[],_.D(F,_.Te).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(F){this.liveChatCollapsed=F.detail;_.uC().dispatch(_.nlu(F.detail))},
onSetPlaylistCollapsed:function(F){this.is==="ytd-watch-grid"&&(this.playlistPanelExpanded=this.playlist&&!F)},
provideRenderingData:function(F,W){switch(F){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=W;break;case "PRIMARY_INFO":_.c("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=W);this.videoPrimaryInfoRendererValue=W==null?void 0:W.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.c("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=W);this.videoSecondaryInfoRendererValue=W==null?void 0:W.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
W;break;case "CLARIFICATION":this.clarifyBoxValue=W;break;case "LIVE_CHAT":this.conversationBar=W;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=W;break;case "PLAYLIST":this.externalPlaylistData_=W!=null?W:{};break;case "MERCH_SHELF":this.merchShelfValue=W==null?void 0:W.merchandiseShelfRenderer;break;case "MERCH_SHELF_IN_SD":this.merchShelfInSd=W;break;case "TICKET_SHELF":this.ticket=W;break;case "OFFER_MODULE":this.offerModule=W;break;case "LIMITED_STATE":this.limitedStateValue=
W;break;case "DONATION_SHELF":this.donation=W;break;case "ALERTS":this.alertsValue=W;break;case "COMMENTS":this.comments=W;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=W;break;case "ENGAGEMENT_PANELS":this.engagementPanels=W;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=W;break;case "RICH_GRID_RENDERER":this.richGridRendererData=W;break;case "EXPANDABLE_METADATA":this.expandableMetadata=W;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=
W}},
toggleCinematicsActive:function(F){this.cinematicsActive=F},
isMiniplayerActive:function(){return _.WZ().resolve(_.GF).isMiniplayerActive()}}];
}catch(e){_._DumpException(e)}
try{
var ycK;_.nCq=function(F){return F.shorts.isShortsActive};
_.jAg=function(F){return F.findIndex(function(W){return ycK.indexOf(W.tagName)>-1})>-1};
_.iUN=function(F){return _.dR({type:"SET_IS_FULLSCREEN",payload:{isFullscreen:F}})};
_.rcK=function(){var F=_.WZ().resolve(_.Uk);_.bfo(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null&&(F.isFullscreenEnabled()?_.Fj(document.documentElement):_.QsY(document.documentElement))};
ycK=["INPUT".toString(),"SELECT".toString(),"TEXTAREA".toString(),"EMBED".toString(),"YTD-COMMENTBOX","YT-LIVE-CHAT-RENDERER","YTD-PDG-BUY-FLOW-RENDERER"];_.W4=new Map;_.W4.set(32,59972);_.W4.set(27,50765);_.W4.set(70,60102);_.W4.set(76,60221);_.W4.set(77,60222);_.W4.set(74,60223);_.W4.set(84,60224);_.W4.set(38,61941);_.W4.set(40,61942);_.W4.set(73,62521);_.W4.set(67,62522);_.W4.set(80,63390);_.W4.set(78,63397);_.W4.set(75,59972);_.W4.set(188,63385);_.W4.set(190,63384);_.W4.set(36,63387);
_.W4.set(35,63386);_.W4.set(37,63388);_.W4.set(39,63389);_.W4.set(79,63423);_.W4.set(87,63424);_.W4.set(107,63426);_.W4.set(109,63425);_.W4.set(65,63428);_.W4.set(83,63430);_.W4.set(68,63429);_.W4.set(221,63431);_.W4.set(219,63432);_.W4.set(97,63439);_.W4.set(98,63440);_.W4.set(99,63441);_.W4.set(100,63442);_.W4.set(101,63443);_.W4.set(102,63444);_.W4.set(103,63445);_.W4.set(104,63446);_.W4.set(105,63447);_.Eo=new Map;_.Eo.set(80,63390);_.Eo.set(78,63397);_.Eo.set(188,63400);_.Eo.set(190,63401);
_.Eo.set(191,60765);_.Eo.set(13,247917);_.hs=new Map;_.dF=new Map;
}catch(e){_._DumpException(e)}
try{
var y16,r1w,TG6,o9x;_.OLN=function(F){return F.ui.guideIsVisibleButNotPersistent};
_.bLg=function(F){return F.ui.tabGesturesIsActive};
_.lVq=function(){var F=_.N0("service_worker_scope");try{return navigator.serviceWorker.getRegistration(F)}catch(W){return Promise.reject(W)}};
_.n9q=function(F){return!(!F||!F.pushManager)};
y16=function(){return _.lVq().then(_.n9q).catch(function(){return!1})};
_.jST=function(){return navigator.serviceWorker&&navigator.serviceWorker.getRegistration&&window.Notification?y16():Promise.resolve(!1)};
_.iLK=function(){return window.MediaSource&&window.MediaSource.isTypeSupported&&window.MediaSource.isTypeSupported('video/mp4; codecs="av01.0.05M.08"')};
r1w=function(){var F,W,E;return _.e(function(h){switch(h.nextAddress){case 1:return _.Q(h,_.Xb.getInstance(),2);case 2:F=h.yieldResult;if(!F){W=void 0;h.jumpTo(3);break}return _.Q(h,F.get("lmqf"),4);case 4:W=h.yieldResult;case 3:switch((E=W)||(E="SD"),E){case "HD":return h.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD");case "HD_1080":return h.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD_1080");case "SD":return h.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_SD");case "LD":return h.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_LD");
default:return h.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_UNKNOWN")}}})};
TG6=function(F){var W,E,h;return _.e(function(d){if(d.nextAddress==1){if(window.localStorage&&window.localStorage["yt-player-av1-pref"]&&!_.c("disable_av1_setting")){var V=window.localStorage["yt-player-av1-pref"];V=V==="480"?"SETTINGS_OPTIONS_ID_TYPE_AV1_SD":V==="8192"?"SETTINGS_OPTIONS_ID_TYPE_AV1_ALWAYS":"SETTINGS_OPTIONS_ID_TYPE_UNKNOWN"}else V="SETTINGS_OPTIONS_ID_TYPE_AV1_AUTO";if(W=F===V)return d.jumpTo(2);h=E=F;return _.Q(d,r1w(),3)}d.nextAddress!=2&&(W=h===d.yieldResult);return d.return(W)})};var GTg;var Y0$=_.Hi.IronButtonState,wwg=(0,_.qH)(HTMLElement);
_.k3({_template:function(){if(GTg!==void 0)return GTg;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-dropdown-menu--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_dropdown_menu.tp.yt.paper.dropdown.menu.css.js--\x3e<tp-yt-paper-menu-button id="menuButton" vertical-align="[[verticalAlign]]" horizontal-align="[[horizontalAlign]]" dynamic-align="[[dynamicAlign]]" vertical-offset="[[_computeMenuVerticalOffset(noLabelFloat, verticalOffset)]]" disabled="[[disabled]]" no-animations="[[noAnimations]]" on-iron-select="_onIronSelect" on-iron-deselect="_onIronDeselect" opened="{{opened}}" close-on-activate="" allow-outside-scroll="[[allowOutsideScroll]]" restore-focus-on-close="[[restoreFocusOnClose]]" expand-sizing-target-for-scrollbars="[[expandSizingTargetForScrollbars]]" fit-into="[[fitInto]]" class="style-scope tp-yt-paper-dropdown-menu">\n  \n  <div class="dropdown-trigger style-scope tp-yt-paper-dropdown-menu" slot="dropdown-trigger">\n    <tp-yt-paper-ripple class="style-scope tp-yt-paper-dropdown-menu"></tp-yt-paper-ripple>\n    \n    <tp-yt-paper-input id="input" type="text" invalid="[[invalid]]" readonly="" disabled="[[disabled]]" value="[[value]]" placeholder="[[placeholder]]" error-message="[[errorMessage]]" always-float-label="[[alwaysFloatLabel]]" no-label-float="[[noLabelFloat]]" label="[[label]]" input-role="button" input-aria-haspopup="listbox" autocomplete="off" style-target="input" class="style-scope tp-yt-paper-dropdown-menu">\n      \n      \n      \n      \n      <tp-yt-iron-icon icon="paper-dropdown-menu:arrow-drop-down" suffix="" slot="suffix" aria-hidden="true" class="style-scope tp-yt-paper-dropdown-menu"></tp-yt-iron-icon>\n    </tp-yt-paper-input>\n  </div>\n  <slot id="content" name="dropdown-content" slot="dropdown-content" class="style-scope tp-yt-paper-dropdown-menu"></slot>\n</tp-yt-paper-menu-button>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;o9x===void 0&&(o9x=document.createElement("template"));var h=o9x;E.call(W,h.content.cloneNode(!0),F.content.firstChild);return GTg=F},
is:"tp-yt-paper-dropdown-menu",hostAttributes:{"style-target":"host"},behaviors:[Y0$,_.ZD,_.Jj,_.OP],properties:{selectedItemLabel:{type:String,notify:!0,readOnly:!0},selectedItem:{type:Object,notify:!0,readOnly:!0},value:{type:String,notify:!0},label:{type:String},placeholder:{type:String},errorMessage:{type:String},opened:{type:Boolean,notify:!0,value:!1,observer:"_openedChanged"},allowOutsideScroll:{type:Boolean,value:!1},noLabelFloat:{type:Boolean,value:!1,reflectToAttribute:!0},alwaysFloatLabel:{type:Boolean,
value:!1},noAnimations:{type:Boolean,value:!1},horizontalAlign:{type:String,value:"right"},verticalAlign:{type:String,value:"top"},verticalOffset:Number,dynamicAlign:{type:Boolean},restoreFocusOnClose:{type:Boolean,value:!0},expandSizingTargetForScrollbars:{type:Boolean,value:!1},fitInto:{type:Object}},listeners:{tap:"_onTap"},keyBindings:{"up down":"open",esc:"close"},observers:["_selectedItemChanged(selectedItem)"],_attachDom:function(F){var W=(0,_.IL)(this);W.attachShadow({mode:"open",delegatesFocus:!0,
shadyUpgradeFragment:F});W.shadowRoot.appendChild(F);return wwg.prototype._attachDom.call(this,F)},
focus:function(){this.$.input._focusableElement.focus()},
attached:function(){var F=this.contentElement;F&&F.selectedItem&&this._setSelectedItem(F.selectedItem)},
get contentElement(){for(var F=_.sg(this.$.content).getDistributedNodes(),W=0,E=F.length;W<E;W++)if(F[W].nodeType===Node.ELEMENT_NODE)return F[W]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(F){this._setSelectedItem(F.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(F){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(F)===this&&this.open()},
_selectedItemChanged:function(F){var W="";F?W=F.label||F.getAttribute("label")||F.textContent.trim():W="";this.value=W;this._setSelectedItemLabel(W)},
_computeMenuVerticalOffset:function(F,W){return W?W:F?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var F=this.opened?"true":"false",W=this.contentElement;W&&W.setAttribute("aria-expanded",F)}});_.rJ=new _.S("navigateAction");var uLK=new _.S("formRenderer");var TI=function(){var F=_.zK.apply(this,arguments)||this;F.showInput=!1;return F};
_.k(TI,_.zK);_.N=TI.prototype;_.N.detached=function(){this.showInput&&window.removeEventListener("click",_.UO(this,this.closeOnOutsideClick_))};
_.N.stopPropagation_=function(F){this.showInput&&F.stopPropagation()};
_.N.closeOnOutsideClick_=function(F){this.closeOnOutsideClickCondition(F)&&(this.showInput=!1,window.removeEventListener("click",_.UO(this,this.closeOnOutsideClick_)),this.closeOnOutsideClickHandler())};
_.N.closeOnOutsideClickCondition=function(){return!0};
_.N.closeOnOutsideClickHandler=function(){};
_.N.openOnClick_=function(){this.showInput=!0;window.addEventListener("click",_.UO(this,this.closeOnOutsideClick_));this.openOnClickHandler()};
_.N.openOnClickHandler=function(){};
_.N.showInputChanged=function(){};
_.N.setShowInput=function(F){this.showInput=F};
TI.prototype.setShowInput=TI.prototype.setShowInput;TI.prototype.showInputChanged=TI.prototype.showInputChanged;TI.prototype.openOnClickHandler=TI.prototype.openOnClickHandler;TI.prototype.openOnClick_=TI.prototype.openOnClick_;TI.prototype.closeOnOutsideClickHandler=TI.prototype.closeOnOutsideClickHandler;TI.prototype.closeOnOutsideClickCondition=TI.prototype.closeOnOutsideClickCondition;TI.prototype.closeOnOutsideClick_=TI.prototype.closeOnOutsideClick_;TI.prototype.stopPropagation_=TI.prototype.stopPropagation_;
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],TI.prototype,"showInput",void 0);_.T([_.R4("click"),_.R4("keydown"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],TI.prototype,"stopPropagation_",null);_.T([_.ea("showInput"),_.Y("design:type",Function),_.Y("design:paramtypes",[Boolean]),_.Y("design:returntype")],TI.prototype,"showInputChanged",null);TI=_.T([_.tT()],TI);_.S0q=[TI.prototype];var pwO;var mlF;var oD=function(){return _.n.apply(this,arguments)||this};
_.k(oD,_.n);_.N=oD.prototype;_.N.computePreselectedOption=function(F,W){return W===this.itemSelected_?F:void 0};
_.N.dataChanged_=function(){var F=this;this.preselectedSubreason=this.itemSelected_=-1;var W;(W=this.data)!=null&&W.key&&_.wT(this,function(){var E,h=Number((E=F.data)==null?void 0:E.key);!Number.isNaN(h)&&(F.itemSelected_=h,E=(E=(F.data.items||[])[h])&&E.optionSelectableItemRenderer&&E.optionSelectableItemRenderer.preselectedIndex)&&(F.preselectedSubreason=E)})};
_.N.isSubReasonHidden_=function(F,W){return F!=W};
_.N.onTopItemSelected_=function(F,W){for(var E=_.Z(this.hostElement).querySelectorAll("tp-yt-paper-listbox"),h=0,d=E.length;h<d;h++)E[h].select(0);_.dW(this.hostElement,"yt-report-form-update",[W.item.value]);F.stopPropagation()};
_.N.onItemSelected_=function(F,W){_.dW(this.hostElement,"yt-report-form-update",[W.item.value]);F.stopPropagation()};
_.N.getItem_=function(F){return F.serviceItem?F.serviceItem:F.navigationItem?F.navigationItem:F.optionSelectableItemRenderer?F.optionSelectableItemRenderer:null};
_.N.computeText_=function(F){return(F=this.getItem_(F))?this.ytRendererBehavior.getSimpleString(F.text):null};
_.N.validate=function(){return this.itemSelected_!==-1};
_.N.computeAriaLabel_=function(F){var W=_.Yr(F.text);(F=F.accessibility&&F.accessibility.accessibilityData&&F.accessibility.accessibilityData.label)&&(W+=". "+F);return W};
_.N.computeItemSelected_=function(F){return F};
_.N.preventSelection_=function(F){F.stopPropagation();this.tooltipTapped=!0};
_.N.onPaperRippleTransitionEnd_=function(){this.tooltipTapped=!1};
_.N.updateItemSelectedFromBinding=function(F){this.itemSelected_=F.detail.value};
_.N.save=function(){var F;this.validate()&&(F=this.data)!=null&&F.items&&(F=this.data.items[this.itemSelected_],F!=null&&F.optionSelectableItemRenderer&&(this.ytComponentBehavior.resolveCommand(F.optionSelectableItemRenderer.submitEndpoint)||_.UT(this.hostElement,[F.optionSelectableItemRenderer.submitEndpoint])))};
oD.prototype.onPaperRippleTransitionEnd_=oD.prototype.onPaperRippleTransitionEnd_;oD.prototype.dataChanged_=oD.prototype.dataChanged_;_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],oD.prototype,"ytComponentBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],oD.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],oD.prototype,"data",void 0);_.T([_.O({value:-1}),_.Y("design:type",Number)],oD.prototype,"itemSelected_",void 0);
_.T([_.O({computed:"computeItemSelected_(itemSelected_)"}),_.Y("design:type",Number)],oD.prototype,"value",void 0);_.T([_.O({value:!1}),_.Y("design:type",Boolean)],oD.prototype,"restoreFocusOnClose",void 0);_.T([_.O({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],oD.prototype,"tooltipTapped",void 0);_.T([_.O({value:-1}),_.Y("design:type",Number)],oD.prototype,"preselectedSubreason",void 0);
_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],oD.prototype,"dataChanged_",null);_.T([_.R4("transitionend"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],oD.prototype,"onPaperRippleTransitionEnd_",null);oD=_.T([_.$3({is:"yt-options-renderer",disableElementRegistration:!0})],oD);
_.r(oD,"yt-options-renderer",function(){if(mlF===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-options-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.menus.yt_options_renderer.yt.options.renderer.css.js--\x3e<div id="options-select" class="style-scope yt-options-renderer">\n  <tp-yt-paper-radio-group id="yt-options-renderer-options" selected="[[itemSelected_]]" on-iron-select="onTopItemSelected_" on-selected-changed="updateItemSelectedFromBinding" class="style-scope yt-options-renderer">\n    <template is="dom-repeat" items="[[data.items]]" class="style-scope yt-options-renderer">\n      <tp-yt-paper-radio-button class="radio style-scope yt-options-renderer" aria-label$="[[computeAriaLabel_(item.optionSelectableItemRenderer)]]" name$="[[index]]" value="[[item.optionSelectableItemRenderer]]">\n        <div class="content style-scope yt-options-renderer">\n          <div class="text style-scope yt-options-renderer">\n            <yt-formatted-string text="[[item.optionSelectableItemRenderer.text]]" class="style-scope yt-options-renderer">\n            </yt-formatted-string>\n            <yt-formatted-string class="subtext style-scope yt-options-renderer" hidden="[[!item.optionSelectableItemRenderer.subtext]]" text="[[item.optionSelectableItemRenderer.subtext]]">\n            </yt-formatted-string>\n          </div>\n          <template is="dom-if" if="[[item.optionSelectableItemRenderer.accessibility.accessibilityData.label]]" class="style-scope yt-options-renderer">\n            <div class="info-container style-scope yt-options-renderer" on-tap="preventSelection_">\n              <yt-icon icon="yt-icons:help_outline" size="16" class="style-scope yt-options-renderer"></yt-icon>\n              <tp-yt-paper-tooltip animation-delay="0" class="style-scope yt-options-renderer">\n                [[item.optionSelectableItemRenderer.accessibility.accessibilityData.label]]\n              </tp-yt-paper-tooltip>\n            </div>\n          </template>\n        </div>\n      </tp-yt-paper-radio-button>\n      <template is="dom-if" if="[[item.optionSelectableItemRenderer.subOptions]]" class="style-scope yt-options-renderer">\n        <tp-yt-paper-dropdown-menu aria-label$="[[item.optionSelectableItemRenderer.subOptionsAccessibility.label]]" hidden="[[isSubReasonHidden_(index, itemSelected_)]]" no-label-float="" restore-focus-on-close="[[restoreFocusOnClose]]" on-iron-select="onItemSelected_" class="style-scope yt-options-renderer">\n          <tp-yt-paper-listbox class="dropdown-content style-scope yt-options-renderer" slot="dropdown-content" selected="[[computePreselectedOption(preselectedSubreason, index)]]">\n            <template is="dom-repeat" items="[[item.optionSelectableItemRenderer.subOptions]]" as="subOption" class="style-scope yt-options-renderer">\n              <tp-yt-paper-item value="[[getItem_(subOption)]]" class="style-scope yt-options-renderer">\n                [[computeText_(subOption)]]\n              </tp-yt-paper-item>\n            </template>\n         </tp-yt-paper-listbox>\n        </tp-yt-paper-dropdown-menu>\n      </template>\n    </template>\n  </tp-yt-paper-radio-group>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;pwO===void 0&&(pwO=document.createElement("template"));var h=pwO;E.call(W,h.content.cloneNode(!0),F.content.firstChild);mlF=F}F=mlF;return F},{mode:2});var KvK;var FB$;var WBx;var EdP;var h2g;var dpx;var GI=function(){return _.n.apply(this,arguments)||this};
_.k(GI,_.n);GI.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.onShow()};
GI.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
GI.prototype.onTap=function(F){if(this.hostElement.classList.contains("selected")||_.V7(this.hostElement,"yt-share-panel-can-select-contact-action"))F&&F.detail&&(F.detail.x||F.detail.y)&&_.Z(this.hostElement).querySelector("#target").blur(),(F=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),F={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!1,serialization:F?this.data.serializedContactInvitee:
null,undoFn:this.onTap.bind(this)},_.dW(this.hostElement,"yt-share-panel-select-contact-action",[F])};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],GI.prototype,"ytRendererBehavior",void 0);_.T([_.O({observer:"onDataChanged"}),_.Y("design:type",Object)],GI.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.Y("design:type",String)],GI.prototype,"componentTitle",void 0);_.T([_.gQ("#thumbnail"),_.Y("design:type",Object)],GI.prototype,"thumbnail",void 0);GI=_.T([_.$3({is:"yt-enrolled-contact-renderer",disableElementRegistration:!0})],GI);
_.r(GI,"yt-enrolled-contact-renderer",function(){if(dpx===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-enrolled-contact-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_enrolled_contact_renderer.yt.enrolled.contact.renderer.css.js--\x3e<button id="target" on-focus="onFocus" on-tap="onTap" class="style-scope yt-enrolled-contact-renderer">\n  <yt-img-shadow id="thumbnail" thumbnail="[[data.thumbnail]]" class="style-scope yt-enrolled-contact-renderer"></yt-img-shadow>\n  <div id="selection-highlight" class="style-scope yt-enrolled-contact-renderer"></div>\n  <div id="name" class="style-scope yt-enrolled-contact-renderer">[[componentTitle]]</div>\n</button>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);var W=F.content,E=W.insertBefore;h2g===void 0&&(h2g=document.createElement("template"));var h=h2g;E.call(W,h.content.cloneNode(!0),F.content.firstChild);dpx=F}F=dpx;return F},{mode:2});var NnP;var VUg;var YX=function(){return _.n.apply(this,arguments)||this};
_.k(YX,_.n);YX.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.polymerController.onShow_()};
YX.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
YX.prototype.onTap=function(F){if(this.hostElement.classList.contains("selected")||_.V7(this.hostElement,"yt-share-panel-can-select-contact-action"))F&&F.detail&&(F.detail.x||F.detail.y)&&_.Z(this.hostElement).querySelector("#target").blur(),(F=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),F={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!0,serialization:F?this.data.serializedSuggestedContact:
null,undoFn:this.onTap.bind(this)},_.dW(this.hostElement,"yt-share-panel-select-contact-action",[F])};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],YX.prototype,"ytRendererBehavior",void 0);_.T([_.O({observer:"onDataChanged"}),_.Y("design:type",Object)],YX.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.Y("design:type",String)],YX.prototype,"componentTitle",void 0);_.T([_.gQ("#thumbnail"),_.Y("design:type",Object)],YX.prototype,"thumbnail",void 0);YX=_.T([_.$3({is:"yt-suggested-contact-renderer",disableElementRegistration:!0})],YX);
_.r(YX,"yt-suggested-contact-renderer",function(){if(VUg===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-suggested-contact-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_suggested_contact_renderer.yt.suggested.contact.renderer.css.js--\x3e<button id="target" on-focus="onFocus" on-tap="onTap" class="style-scope yt-suggested-contact-renderer">\n  <yt-img-shadow id="thumbnail" thumbnail="[[data.avatar.thumbnail]]" class="style-scope yt-suggested-contact-renderer"></yt-img-shadow>\n  <div id="selection-highlight" class="style-scope yt-suggested-contact-renderer"></div>\n  <div id="name" class="style-scope yt-suggested-contact-renderer">[[componentTitle]]</div>\n</button>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);var W=F.content,E=W.insertBefore;NnP===void 0&&(NnP=document.createElement("template"));var h=NnP;E.call(W,h.content.cloneNode(!0),F.content.firstChild);VUg=F}F=VUg;return F},{mode:2});var wJ=function(){var F=_.n.apply(this,arguments)||this;F.actionMap={"yt-share-panel-reset-action":"onReset"};return F};
_.k(wJ,_.n);wJ.prototype.configureRendererStamper=function(){return{"data.contacts":{id:"contents",mapping:{enrolledContactRenderer:{component:"yt-enrolled-contact-renderer",attributes:{role:"checkbox"}},suggestedContactRenderer:{component:"yt-suggested-contact-renderer",attributes:{role:"checkbox"}}}}}};
wJ.prototype.onDataChanged=function(){this.data&&this.data.selectMessageRenderer&&this.data.selectMessageRenderer.contactSelectMessageRenderer&&_.dW(this.hostElement,"yt-share-panel-set-select-message-renderer-action",[this.data.selectMessageRenderer.contactSelectMessageRenderer])};
wJ.prototype.onReset=function(){for(var F=_.Z(this.hostElement).querySelector("#contents").getElementsByClassName("selected"),W=F.length-1;W>=0;W--)F[W].classList.toggle("selected")};
_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],wJ.prototype,"ytActionHandlerBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],wJ.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],wJ.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O({observer:"onDataChanged"}),_.Y("design:type",Object)],wJ.prototype,"data",void 0);
wJ=_.T([_.$3({is:"yt-contact-section-renderer",disableElementRegistration:!0})],wJ);
_.r(wJ,"yt-contact-section-renderer",function(){if(EdP===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-contact-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_contact_section_renderer.yt.contact.section.renderer.css.js--\x3e<yt-formatted-string id="title" text="[[data.title]]" class="style-scope yt-contact-section-renderer"></yt-formatted-string>\n<yt-formatted-string id="description" hidden="[[!data.description]]" text="[[data.description]]" class="style-scope yt-contact-section-renderer">\n</yt-formatted-string>\n<div id="contents" role="listbox" class="style-scope yt-contact-section-renderer"></div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;WBx===void 0&&(WBx=document.createElement("template"));var h=WBx;E.call(W,h.content.cloneNode(!0),F.content.firstChild);EdP=F}F=EdP;return F},{mode:2});var u3=function(){var F=_.n.apply(this,arguments)||this;F.actionMap={"yt-refresh-form-command":"onYtRefreshFormCommand"};return F};
_.k(u3,_.n);_.N=u3.prototype;_.N.configureRendererStamper=function(){return{"data.fields":{id:"fields",mapping:{textInputFormFieldRenderer:{component:"yt-text-input-form-field-renderer",params:{required:!0},properties:{hideLabel:"[[data.hideLabels]]"}},toggleFormFieldRenderer:{component:"yt-toggle-form-field-renderer"},optionsRenderer:"yt-options-renderer",contactSectionRenderer:"yt-contact-section-renderer"}}}};
_.N.onYtRefreshFormCommand=function(F){var W;(F=_.D((W=_.D(F,_.Aku))==null?void 0:W.formRenderer,uLK))&&this.set("data",F)};
_.N.reset=function(){var F=_.Z(this.hostElement).querySelector("#fields").children;F=_.U(F);for(var W=F.next();!W.done;W=F.next())W=W.value,W.reset&&W.reset()};
_.N.getForm=function(){var F={},W=_.Z(this.hostElement).querySelector("#fields").children;W=_.U(W);for(var E=W.next();!E.done;E=W.next()){E=E.value;if(!E.validate())return null;F[E.data.key]=E.value}return F};
_.N.submitFormFields=function(){if(this.fields)for(var F=_.U(this.fields),W=F.next();!W.done;W=F.next())W=W.value,W.nodeName==="YT-TEXT-INPUT-FORM-FIELD-RENDERER"?W.save():W.nodeName==="YT-OPTIONS-RENDERER"&&W.save()};
_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],u3.prototype,"ytActionHandlerBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],u3.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],u3.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],u3.prototype,"data",void 0);_.T([_.Q9("#fields > *"),_.Y("design:type",Array)],u3.prototype,"fields",void 0);
u3=_.T([_.$3({is:"yt-form-renderer",disableElementRegistration:!0})],u3);
_.r(u3,"yt-form-renderer",function(){if(FB$===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-form-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.forms.yt_form_renderer.yt.form.renderer.css.js--\x3e<div id="fields" class="style-scope yt-form-renderer"></div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;KvK===void 0&&(KvK=document.createElement("template"));var h=KvK;E.call(W,h.content.cloneNode(!0),F.content.firstChild);FB$=F}F=FB$;return F},{mode:2});var UpT;var SW=function(){var F=_.n.apply(this,arguments)||this;F.actionMap={"yt-settings-update-checkbox-command":"handleUpdateCheckboxCommand"};return F};
_.k(SW,_.n);SW.prototype.onCheckboxChange=function(F){this.data&&(F=(this.checked=_.oo(F).checked)?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&_.WZ().resolve(_.EJ).resolveCommand(F,{form:{element:this.hostElement}})};
SW.prototype.handleUpdateCheckboxCommand=function(F){(F=_.D(F,_.ncM))&&this.data&&this.data.id===F.id&&(this.set("data.disabled",F.disabled),this.set("data.title",F.title))};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],SW.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],SW.prototype,"ytActionHandlerBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],SW.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Boolean)],SW.prototype,"checked",void 0);SW=_.T([_.y({is:"ytd-settings-checkbox-renderer",disableElementRegistration:!0})],SW);
_.r(SW,"ytd-settings-checkbox-renderer",function(){if(UpT!==void 0)return UpT;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-settings-checkbox-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="main-option" class="style-scope ytd-settings-checkbox-renderer">\n  <tp-yt-paper-checkbox id="checkbox" aria-label$="[[getSimpleString(data.title)]]" checked="[[data.enabled]]" disabled="[[data.disabled]]" on-change="onCheckboxChange" class="style-scope ytd-settings-checkbox-renderer">\n    <div id="checkbox-container" class="style-scope ytd-settings-checkbox-renderer"></div>\n    <div id="checkbox-label" class="style-scope ytd-settings-checkbox-renderer">\n      <yt-formatted-string id="label" split-lines="" text="[[data.title]]" class="style-scope ytd-settings-checkbox-renderer"></yt-formatted-string>\n    </div>\n  </tp-yt-paper-checkbox>\n  <yt-icon id="help-icon" hidden="[[!data.helpText]]" icon="yt-icons:help" size="16" class="style-scope ytd-settings-checkbox-renderer"></yt-icon>\n  <tp-yt-paper-tooltip animation-delay="0" for="help-icon" hidden="[[!data.helpText]]" offset="5" position="top" class="style-scope ytd-settings-checkbox-renderer">\n    [[getSimpleString(data.helpText)]]\n  </tp-yt-paper-tooltip>\n</div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return UpT=F},{mode:1});var R2q;var pZ=function(){var F=_.n.apply(this,arguments)||this;F.actionMap={"yt-select-settings-radio-option":"onSelectOption"};return F};
_.k(pZ,_.n);pZ.prototype.dataChanged=function(){var F=this,W;return _.e(function(E){if(E.nextAddress==1)return F.radio.removeAttribute("checked"),!F.data||!F.data.id||F.data.id!=="SETTINGS_OPTIONS_ID_TYPE_AV1_SD"||_.iLK()&&window.SourceBuffer&&window.SourceBuffer.prototype.changeType?(W=F.data&&F.data.id)?_.Q(E,TG6(F.data.id),4):E.jumpTo(3):(F.set("data.hidden",!0),E.jumpTo(0));E.nextAddress!=3&&(W=E.yieldResult);W&&_.dW(F.hostElement,"yt-select-settings-radio-option",[F.data.id]);_.gG(E)})};
pZ.prototype.onButtonChanged=function(F){_.oo(F).checked?this.data&&this.data.id&&(this.data.serviceEndpoint&&_.WZ().resolve(_.EJ).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),_.dW(this.hostElement,"yt-select-settings-radio-option",[this.data.id])):this.radio.setAttribute("checked","")};
pZ.prototype.onSelectOption=function(F){this.data&&this.data.id&&(this.data.id===F?this.radio.setAttribute("checked",""):this.radio.removeAttribute("checked"))};
pZ.prototype.dataChanged=pZ.prototype.dataChanged;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],pZ.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],pZ.prototype,"ytActionHandlerBehavior",void 0);_.T([_.gQ("#radio"),_.Y("design:type",Object)],pZ.prototype,"radio",void 0);_.T([_.O(),_.Y("design:type",Object)],pZ.prototype,"data",void 0);
_.T([_.Cz("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype",Promise)],pZ.prototype,"dataChanged",null);pZ=_.T([_.y({is:"ytd-settings-radio-option-renderer",disableElementRegistration:!0})],pZ);
_.r(pZ,"ytd-settings-radio-option-renderer",function(){if(R2q!==void 0)return R2q;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-settings-radio-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="start" class="style-scope ytd-settings-radio-option-renderer">\n  <tp-yt-paper-radio-button id="radio" aria-label$="[[getSimpleString(data.title)]]" hidden="[[data.hidden]]" on-change="onButtonChanged" class="style-scope ytd-settings-radio-option-renderer">\n    <div id="label" class="style-scope ytd-settings-radio-option-renderer">[[getSimpleString(data.title)]]</div>\n  </tp-yt-paper-radio-button>\n  <yt-icon id="help-icon" hidden="[[!data.helpText]]" icon="yt-icons:help" size="16" class="style-scope ytd-settings-radio-option-renderer"></yt-icon>\n  <tp-yt-paper-tooltip animation-delay="0" for="help-icon" hidden="[[!data.helpText]]" offset="3" position="top" class="style-scope ytd-settings-radio-option-renderer">\n    [[getSimpleString(data.helpText)]]\n  </tp-yt-paper-tooltip>\n</div>\n<div id="end" class="style-scope ytd-settings-radio-option-renderer">\n  <div id="aside-text" class="style-scope ytd-settings-radio-option-renderer">[[getSimpleString(data.asideText)]]</div>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return R2q=F},{mode:1});var e2K;var mk=function(){var F=_.n.apply(this,arguments)||this;F.actionMap={"yt-settings-update-text-command":"handleUpdateTextCommand","yt-settings-update-connected-app-renderer-command":"handleUpdateConnectedAppRendererCommand"};return F};
_.k(mk,_.n);
mk.prototype.configureRendererStamper=function(){return{"data.connectButton":{id:"connect-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer",accountLinkButtonRenderer:"ytd-account-link-button-renderer",accountLinkButtonViewModel:{component:"account-link-button-view-model",params:{setMinWidth:!0}}}},"data.disconnectButton":{id:"disconnect-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer",accountLinkButtonRenderer:"ytd-account-link-button-renderer"}}}};
mk.prototype.handleUpdateTextCommand=function(F){(F=_.D(F,_.ykc))&&this.data&&this.data.id===F.id&&this.set("data",F)};
mk.prototype.handleUpdateConnectedAppRendererCommand=function(F){if(_.D(F,_.rkM)&&this.data){var W,E;if(F=(W=_.D(F,_.rkM))==null?void 0:(E=W.newConnectedAppRenderer)==null?void 0:E.connectedAppRenderer)this.data=F}};
mk.prototype.computeConnectedAppStyle=function(F){return F.style?F.style.toLowerCase().replace(/_/g,"-"):""};
_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],mk.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],mk.prototype,"ytActionHandlerBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],mk.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],mk.prototype,"data",void 0);
_.T([_.O({reflectToAttribute:!0,computed:"computeConnectedAppStyle(data)"}),_.Y("design:type",String)],mk.prototype,"connectedAppStyle",void 0);mk=_.T([_.y({is:"ytd-connected-app-renderer",disableElementRegistration:!0})],mk);
_.r(mk,"ytd-connected-app-renderer",function(){if(e2K!==void 0)return e2K;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-connected-app-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow hidden="[[!data.icon]]" thumbnail="[[data.icon]]" class="style-scope ytd-connected-app-renderer"></yt-img-shadow>\n<div id="app" class="style-scope ytd-connected-app-renderer">\n  <div id="app-info" class="style-scope ytd-connected-app-renderer">\n    <div id="title" class="style-scope ytd-connected-app-renderer">[[getSimpleString(data.title)]]</div>\n    <yt-formatted-string id="text" force-default-style="" split-lines="" text="[[data.text]]" class="style-scope ytd-connected-app-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="button-row" class="style-scope ytd-connected-app-renderer">\n    <div id="button-container" hidden="[[!data.connectButton]]" class="style-scope ytd-connected-app-renderer">\n      <div id="connect-button" class="style-scope ytd-connected-app-renderer"></div>\n    </div>\n    <div id="button-container" hidden="[[!data.disconnectButton]]" class="style-scope ytd-connected-app-renderer">\n      <div id="disconnect-button" class="style-scope ytd-connected-app-renderer"></div>\n    </div>\n  </div>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return e2K=F},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.Xg("iuT5Oc");

_.Hb();
}catch(e){_._DumpException(e)}
try{
_.Xg("L3n37");
var MOF=function(F){return F.watch.isLearningJourneyActive},gIK=_.LQ(115994),QgF=_.LQ(115993),zc6=function(F,W,E){var h=this;
var d=E.dragDownAction;this.layer=0;this.JSC$20410_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return h.dragDownAction()}}}};
this.JSC$20410_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return h.dragDownAction()}}}};
this.fullscreen=!1;var V=_.z4();_.t5(V,gIK,this.layer);_.t5(V,QgF,this.layer);this.dragDownAction=function(){d();_.jc(V,{visualElement:h.fullscreen?gIK:QgF})};
this.gesture=new _.gA(F,W,this.JSC$20410_watchConfig,"pandown");this.attach()};
zc6.prototype.attach=function(){this.gesture.attach()};
zc6.prototype.detach=function(){this.gesture.detach()};
zc6.prototype.update=function(F){this.fullscreen=F;this.gesture.config=F?this.JSC$20410_watchFullScreenConfig:this.JSC$20410_watchConfig};var tOT=function(F){_.Fl.call(this);var W=this;this.rootElement=F;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return W.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(E){W.initOrDisposeActiveModules(E)}));
this.onAttached()};
_.k(tOT,_.Fl);_.N=tOT.prototype;_.N.getRoot=function(){return this.rootElement};
_.N.getElement=function(F){return this.rootElement.getElement(F)};
_.N.setPlayerResponse=function(F){this.playerResponse=F;this.publish("PLAYER_RESPONSE_UPDATED",F)};
_.N.getPlayerResponse=function(){return this.playerResponse};
_.N.setWatchNextResponse=function(F){this.watchNextResponse===F?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=F,this.publish("WATCH_NEXT_RESPONSE_UPDATED",F))};
_.N.getWatchNextResponse=function(){return this.watchNextResponse};
_.N.registerActionHandler=function(F,W){var E=this;if(_.c("web_watch_controller_reg_multiple_handlers_killswitch")){var h={};_.G5(_.o_.getInstance(),(h[F]=W,h),this.getRoot())}else this.actionHandlers.has(F)||(this.actionHandlers.set(F,[]),h={},_.G5(_.o_.getInstance(),(h[F]=function(){var d=_.Dd.apply(0,arguments);return(E.actionHandlers.get(F)||[]).map(function(V){return V.apply(null,_.x9(d))})},h),this.getRoot())),this.actionHandlers.get(F).push(W)};
_.N.unregisterActionHandler=function(F){if(_.c("web_watch_controller_reg_multiple_handlers_killswitch")){var W={};_.Yt(_.o_.getInstance(),(W[F]=!0,W),this.getRoot())}else(W=this.actionHandlers.get(F))?(W.pop(),W.length===0&&(W={},_.Yt(_.o_.getInstance(),(W[F]=!0,W),this.getRoot()),this.actionHandlers.delete(F))):_.OB(new _.xC("Attempted to unregister an action handler which is not registered.",F))};
_.N.addPageDisposeJob=function(F){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.GR(this.rootElement.pageDisposeJobs,F)};
_.N.removePageDisposeJob=function(F){this.rootElement.pageDisposeJobs&&_.mY(this.rootElement.pageDisposeJobs,F)};
_.N.dispatchEvent=function(F,W){_.hF(this.rootElement,F,W)};
_.N.provideRenderingData=function(F,W){this.rootElement.provideRenderingData(F,W)};
_.N.scrollWatchTo=function(F,W){var E;(E=this.watchScrollManager)==null||E.scrollWatchTo(F,W)};
_.N.focusOnPlayer=function(){var F=this.getElement("PLAYER");_.wT(F,function(){if(F&&F.firstElementChild){var W=F.querySelector(".html5-video-player");W&&(_.mC(_.WZ().resolve(_.$Y)),W.focus())}else _.OB(Error("km"))})};
_.N.updateCinematicFullscreenConfig=function(){var F=!!this.rootElement.theater,W=!!this.rootElement.fullscreen,E;(E=this.watchCinematicManager)==null||_.eeO(E,W,F)};
_.N.subscribeToActiveChanged=function(F,W){W=W===void 0?!0:W;var E=_.kQ(_.uC(),MOF,function(h){F(h)});
W&&F(MOF(_.uC().getState()));return E};
_.N.isActive=function(){return MOF(_.uC().getState())};
_.N.onAttached=function(){var F=_.c("external_fullscreen");_.c("use_unified_flag_accessor")&&(F=_.WZ().resolve(_.Gz6).retriever.getFlag(_.unH));(F||_.l0("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
_.N.initPersistentModules=function(){if(_.c("kevlar_watch_flexy_theater_manager")){var F=new _.l7w(this);_.gl(this,F)}F=new _.k7w(this);_.gl(this,F);F=new _.Z8(this);_.gl(this,F);F=new _.OF(this);_.gl(this,F);F=new _.pxF(this);_.gl(this,F);F=new _.HR(this);_.gl(this,F);_.c("kevlar_watch_flexy_playlist_manager")&&(F=new _.K$x(this),_.gl(this,F))};
_.N.initOrDisposeActiveModules=function(F){F?(this.watchScrollManager=new _.l2(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new _.b9K(this)),this.activeModules.push(new _.jwx(this)),this.activeModules.push(new _.VTO(this)),this.activeModules.push(new _.b2(this)),_.c("kevlar_watch_flexy_error_screen_data_provider")&&this.activeModules.push(new _.o1x(this)),this.activeModules.push(new _.rZ6(this)),_.c("kevlar_watch_flexy_ypc_manager")&&this.activeModules.push(new _.Rd8(this)),
_.c("kevlar_watch_flexy_ads_manager")&&this.activeModules.push(new _.F$K(this)),_.c("kevlar_watch_cinematics")&&(this.watchCinematicManager=new _.NKK(this),this.activeModules.push(this.watchCinematicManager),this.updateCinematicFullscreenConfig()),_.c("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new _.Y7F(this)),_.c("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new _.DKx(this)),F=_.c("swatcheroo_directly_provide_comments")&&this.getRoot().is===
"ytd-watch-grid",_.c("kevlar_watch_flexy_comments_manager")&&!F&&this.activeModules.push(new _.C76(this)),_.c("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new _.Xo(this)),this.activeModules.push(new _.Gw$(this)),this.activeModules.push(new _.nNK(this)),_.c("web_enable_timely_actions")&&this.activeModules.push(new _.S5K(this)),_.c("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new _.I7K(this)),_.c("web_watch_enable_multiview_manager")&&this.activeModules.push(new _.ehF(this)),
_.c("web_fullscreen_video_action_bar")&&this.activeModules.push(new _.u$w(this)),_.c("web_player_rtr_ctrls")&&this.activeModules.push(new _.D8K(this))):(_.pC(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.N.disposeInternal=function(){_.Fl.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.Sn.Object.defineProperties(tOT.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});var CSx={},B66=["learning-journey-engagement-panel","PAlearning_chat"];
CSx.YtdLearningJourneyWatchBehavior=[_.K.YtRendererBehavior,_.om.YtPlayerListenerBehavior,_.Ky.YtRendererstamperBehavior,_.FM.YtActionHandlerBehavior,_.$v.YtPageBehavior,_.eB.YtEndpointBehavior,{_noAccessors:!0,properties:{data:{type:Object,observer:"dataChanged_"},info:{type:Object},meta:{type:Object},ticket:{type:Object},donation:{type:Object},clarifyBox:{type:Object,computed:"getClarifyBox(data, clarifyBoxValue)"},offerModule:{type:Object},engagementPanels:{type:Object},inlineEngagementPanels:{type:Object},
learningJourneyEngagementPanels:{type:Object,computed:"getLearningJourneyEngagementPanels(engagementPanels, learningJourneyEngagementPanelsValue)"},nonLearningJourneyEngagementPanels:{type:Object,computed:"getNonLearningJourneyEngagementPanels(engagementPanels, learningJourneyEngagementPanelsValue)"},clarifyBoxValue:{type:Object},conversationBar:{type:Object},infoPanelBelowMetadata:{type:Object},expandableMetadata:{type:Object},limitedState:{type:Object,computed:"getLimitedState(data, limitedStateValue)"},
limitedStateValue:{type:Object},merchShelf:{type:Object,computed:"getMerchShelf(data, merchShelfValue)"},merchShelfValue:{type:Object},singleColumn:{type:Object,computed:"getSingleColumn(playerData.playabilityStatus, data, singleColumnValue)"},singleColumnValue:{type:Object},comments:{type:Object,value:null},playerData:{type:Object,observer:"playerDataChanged_"},playerAds:{type:Object,value:null},localPlaylistData_:{type:Object,value:{},computed:"setPlaylistData_(data.contents.twoColumnWatchNextResults.playlist.playlist)"},
externalPlaylistData_:{type:Object,value:{}},playlistData:{type:Object,computed:"computePlaylistData_(localPlaylistData_, externalPlaylistData_)"},theater:{type:Boolean,value:!1,reflectToAttribute:!0},fullWindowMode_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.l0("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.c("web_watch_provide_secondary_results_renderer")}},
fullscreen:{type:Boolean,reflectToAttribute:!0},playlist:{type:Boolean,reflectToAttribute:!0,computed:"hasPlaylist_(playlistData, loadingData.playlist)",observer:"secondaryColumnModulePresenceChanged_"},alerts:{type:Object,computed:"getAlerts_(playerData.playabilityStatus, alertsValue)"},alertsValue:{type:Object},microformat:{type:Object,computed:"getPlayerMicroformatRenderer_(playerData.microformat)"},commentsReady:{type:Boolean,observer:"commentsReadyChanged_"},theaterRequested_:{type:Boolean,reflectToAttribute:!0,
value:function(){return _.l0("START_IN_THEATER_MODE")}},
loading:{type:Boolean,observer:"onLoadingChanged_"},loadingData:{type:Object,value:{playlist:!1}},playerUnavailable:{type:Boolean,value:!1,reflectToAttribute:!0,computed:"isPlayerUnavailable_(playerData.playabilityStatus, playerLoading_, playerOverlays)"},playerOverlays:{type:Object,value:null,computed:"getPlayerOverlays_(data)"},plaShelfEnabled_:{type:Boolean,value:!1,computed:"isPlaShelfEnabled_(playerData)"},monetizationShelvesEnabled_:{type:Boolean,value:!0},watchNextShownItems:Array,watchNextCanShowMore:Boolean,
hidden:{type:Boolean,reflectToAttribute:!0,value:!1},shouldStampChat:{type:Boolean,value:!1,computed:"computeShouldStampChat_(data, hidden)",observer:"secondaryColumnModulePresenceChanged_",reflectToAttribute:!0},shouldCollapseDonationShelf:{type:Boolean,value:!1,computed:"computeIsDonationShelfCollapsed_(shouldStampChat)",reflectToAttribute:!0},shouldShowMerchShelf:{type:Boolean,value:!1,computed:"computeShouldShowMerchShelf(merchShelf, monetizationShelvesEnabled_)",reflectToAttribute:!0},canScheduleCommentJobs_:{type:Boolean,
value:!0},videoId:{type:String,value:"",computed:"identity(data.currentVideoEndpoint.watchEndpoint.videoId)",reflectToAttribute:!0},isTwoColumns_:{type:Boolean,reflectToAttribute:!0,observer:"isTwoColumnsChanged_"},isVerticalVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsVerticalVideo_(videoHeightToWidthRatio_)"},isFourThreeToSixteenNineVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsFourThreeToSixteenNineVideo_(videoHeightToWidthRatio_)"},isExtraWideVideo_:{type:Boolean,
reflectToAttribute:!0,computed:"computeIsExtraWideVideo_(videoHeightToWidthRatio_)"},videoHeightToWidthRatio_:{type:Number,value:.5625,observer:"videoHeightToWidthRatioChanged_"},flexySmallWindow_:{type:Boolean,reflectToAttribute:!0},flexyLargeWindow_:{type:Boolean,reflectToAttribute:!0},playerLoading_:{type:Boolean,value:!1},jsPanelHeight_:{type:Boolean,value:function(){return _.c("kevlar_watch_js_panel_height")},
reflectToAttribute:!0},showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.c("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.c("kevlar_use_engagement_panel_management_component")}},
watchMetadataRefresh:{type:Boolean,value:!1,computed:"computeWatchMetadataRefresh(videoPrimaryInfoRenderer)",reflectToAttribute:!0},liveChatCollapsed:{type:Boolean},liveChatPresentAndExpanded:{type:Boolean,reflectToAttribute:!0,computed:"computeLiveChatPresentAndExpanded(shouldStampChat, liveChatCollapsed)"},playlistPanelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1},engagementPanelExpanded:{type:Boolean,value:!1},panelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computePanelExpanded(engagementPanelExpanded, playlistPanelExpanded, liveChatPresentAndExpanded)"},
richItemMinWidth:{type:Number,value:function(){return _.dV("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.dV("wn_grid_max_item_width",700)}},
commentsEntryPointHeaderRenderer:{type:Object,computed:"computeCommentsEntryPointHeaderRenderer(data, commentsEntryPointHeaderRendererValue, defaultTwoColumnLayout, isTwoColumns_)"},commentsEntryPointHeaderRendererValue:{type:Object},videoMetadataCarousel:{type:Object},richGridRendererData:{type:Object},watchNextSecondaryResults:{type:Object},videoPrimaryInfoRenderer:{type:Object,computed:"computeVideoPrimaryInfoRenderer(data, videoPrimaryInfoRendererValue)"},videoPrimaryInfoRendererValue:{type:Object},
videoSecondaryInfoRenderer:{type:Object,computed:"computeVideoSecondaryInfoRenderer(data, videoSecondaryInfoRendererValue)"},videoSecondaryInfoRendererValue:{type:Object},inlineStructuredDescriptionData:{type:Object,computed:"computeInlineStructuredDescriptionData(data)"},flexyEnableSmallWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.c("kevlar_watch_flexy_disable_small_window_sizing")}},
flexyEnableLargeWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.c("kevlar_watch_flexy_disable_large_window_sizing")}},
hideComments:{type:Boolean},legacyMetadataClass:{type:String,computed:"computeLegacyMetadataClass(watchMetadataRefresh)"},newMetadataClass:{type:String,computed:"computeNewMetadataClass(watchMetadataRefresh)"},cinematicsEnabled:{type:Boolean,reflectToAttribute:!0,value:function(){return _.c("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
deprecateFullerscreenUi:{type:Boolean,reflectToAttribute:!0,value:function(){return _.c("web_watch_fullerscreen_deprecation_ui")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.c("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.c("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return _.c("kevlar_watch_frame0_loading_state")}},
roundedPlayerMedium:{type:Boolean,reflectToAttribute:!0,value:function(){return _.c("web_watch_rounded_player_medium")}},
roundedPlayerLarge:{type:Boolean,reflectToAttribute:!0,value:function(){return _.c("web_watch_rounded_player_large")||_.c("watch_next_grid_round_player")}},
showExpandableMetadata:{type:Boolean,reflectToAttribute:!0,computed:"computeShowExpandableMetadata(expandableMetadata)"},fullBleedPlayer:{type:Boolean,reflectToAttribute:!0,computed:"computeFullBleedPlayer(fullscreen, theater)"},defaultLayout:{type:Boolean,reflectToAttribute:!0,computed:"computeDefaultLayout(fullBleedPlayer)"},defaultTwoColumnLayout:{type:Boolean,reflectToAttribute:!0,computed:"computeDefaultTwoColumnLayout(fullBleedPlayer, isTwoColumns_)"},trackEngagementPanelVisibility:{type:Boolean,
value:function(){return _.c("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.c("web_watch_show_comment_teaser")}},
fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.c("web_watch_full_bleed_no_max_width_columns")}},
fixedPanels:{type:Boolean,reflectToAttribute:!0},panelsBesidePlayer:{type:Boolean,reflectToAttribute:!0},watchWhileWider:{type:Boolean,reflectToAttribute:!0,value:function(){return _.c("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.c("web_watch_while_panel_margin")}},
watchWhilePanelsActive:{type:Boolean,reflectToAttribute:!0,computed:"computeWatchWhilePanelsActive(fixedPanels, panelsBesidePlayer)"},noBorderOnChat:{type:Boolean,computed:"computeNoBorderOnChat(watchWhilePanelsActive)"},forceDarkPanelTheme:{type:Boolean,computed:"computeForceDarkPanelTheme(panelsBesidePlayer)"},hasMetadata:{type:Boolean,reflectToAttribute:!0,computed:"computeHasMetadata(videoPrimaryInfoRenderer)"},watchWhileWindowSizeSufficient:{type:Boolean,observer:"watchWhileWindowSizeSufficientChanged"},
thumbnailToWatchTransition:{type:Boolean,reflectToAttribute:!0,value:function(){return _.c("web_thumbnail_to_watch_transition")}}},
observers:"watchPageActiveChanged_(active);shouldProceedToNextVideo_(playerData.playabilityStatus, data, playlist);userEngagementConfigDataChanged_(data.userEngagementConfig);updateTheaterModeState_(theaterRequested_);watchNextShownItemsAddedOrRemoved_(watchNextShownItems.splices, watchNextCanShowMore);youthereDataChanged_(playerData.messages);updateChatLocation(liveChatPresentAndExpanded);watchNextSecondaryResultsChanged(data)".split(";"),monitorScroll:!0,configureRendererStamper:function(){return{info:{id:"info-contents",
mapping:{videoPrimaryInfoRenderer:{component:"ytd-video-primary-info-renderer"}}},meta:{id:"meta-contents",mapping:{videoSecondaryInfoRenderer:{component:"ytd-video-secondary-info-renderer",properties:{structuredDescriptionContentRenderer:"[[inlineStructuredDescriptionData]]"}}}},ticket:{id:"ticket-shelf",mapping:{ticketShelfRenderer:{component:"ytd-ticket-shelf-renderer",properties:{skinnyMode:"[[isTwoColumns_]]"}}}},offerModule:{id:"offer-module",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",
properties:{isCollapsed:"[[shouldCollapseDonationShelf]]"}},donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"},movieOfferModuleRenderer:"ytd-movie-offer-module-renderer",episodeOfferModuleRenderer:"ytd-movie-offer-module-renderer",liveOfferModuleRenderer:"ytd-movie-offer-module-renderer",channelOfferModuleRenderer:"ytd-movie-offer-module-renderer",unlimitedOfferModuleRenderer:{component:"ytd-unlimited-offer-module-renderer",properties:{hidden:"[[hideUnlimitedOfferModule]]"}},
tvfilmOfferModuleRenderer:{component:"ytd-tvfilm-offer-module-renderer",properties:{hidden:"[[hideTvfilmOfferModule]]"}},ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer"}},expandableMetadata:{id:"expandable-metadata",mapping:{expandableMetadataRenderer:{component:"ytd-expandable-metadata-renderer",params:{isWatch:!0}}}},donation:{id:"donation-shelf",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",properties:{isCollapsed:"[[shouldCollapseDonationShelf]]"}},donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"}}},
clarifyBox:{id:"clarify-box",mapping:{clarificationRenderer:"ytd-clarification-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",infoPanelContentRenderer:"ytd-info-panel-content-renderer",emergencyOneboxRenderer:{component:"ytd-emergency-onebox-renderer",attributes:{"class":"watch"}}}},limitedState:{id:"limited-state",mapping:{limitedStateMessageRenderer:"ytd-limited-state-message-renderer"}},playerAds:{id:"player-ads",mapping:{playerLegacyDesktopWatchAdsRenderer:"ytd-player-legacy-desktop-watch-ads-renderer"},
initialRenderPriority:3,waitForSignal:_.OE(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.OE(["aa","eocs"])},alerts:{id:"alerts",mapping:{alertRenderer:"yt-alert-renderer",alertWithButtonRenderer:"ytd-alert-with-button-renderer"}},"data.contents.twoColumnWatchNextResults.miniplayerBar":{id:"miniplayer-bar",mapping:{miniplayerBarRenderer:"ytd-miniplayer-bar-renderer"}},microformat:{id:"microformat",mapping:{playerMicroformatRenderer:"player-microformat-renderer"}},
singleColumn:{id:"single-column-container",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}},learningJourneyEngagementPanels:{id:"plj-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}},nonLearningJourneyEngagementPanels:{id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}}}},
listeners:{"yt-retrieve-location":"onRetrieveLocation_","yt-subscription-changed":"onSubscriptionChanged_","yt-show-survey":"onYtShowSurvey_","yt-chat-collapsed-changed":"onYtChatCollapsedChanged"},actionMap:{"yt-sync-with-remote-video":"syncWithRemoteVideo_","yt-window-resized":"onWindowResized_","yt-initial-video-aspect-ratio":"onYtInitialVideoAspectRatio_","yt-update-player-next-video":"onUpdatePlayerNextVideo_","yt-signal-action-pause-player":"handleSignalActionPausePlayer_","yt-signal-action-play-player":"handleSignalActionPlayPlayer_",
"yt-signal-action-acknowledge-youthere":"handleSignalActionAcknowledgeYouThere_","yt-user-activity":"onYtUserActivity_","yt-show-engagement-panel-scrim-action":"onYtShowEngagementPanelScrimAction_","yt-hide-engagement-panel-scrim-action":"onYtHideEngagementPanelScrimAction_","yt-get-current-video-id-action":"onGetCurrentVideoIdAction_","yt-show-survey-command":"onYtShowSurveyCommand_","yt-signal-action-scroll-to-comments":"onYtSignalActionScrollToComments","yt-engagement-panel-visible-changed":"onYtEngagementPanelVisibleChanged",
"yt-downloaded-video-deleted":"onDownloadedVideoDeleted","yt-change-markers-visibility-command":"onChangeMarkersVisibility","yt-updated-playability-status":"onYtUpdatedPlayabilityStatus"},created:function(){var F=this;this.watchController=void 0;this.pageDisposeJobs=[function(){F.showMetadataPlaceholder_()},
function(){_.c("web_watch_dont_clear_comments")||F.clearComments_()},
function(){F.clearPlayerAds_()},
function(){F.resetAutonavCanceledForNewPlayback_()}];
this.player=this.playerContainerEl=this.playerEl=this.watchNextSkeletonEl_=null;this.onPlayingCallbacks_=[];this.clearPlayerAdsJobId_=this.setRichGridJobId_=this.setCommentsJobId_=0;this.showFullerscreenEdu_=!1;this.windowSize_=null;this.trackEngagementPanelVisibility&&(this.visiblePanelIdentifiers_=new Set);this.autonavCanceledSignal_=!1;_.c("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.c("web_watch_start_chat_in_theater_mode")&&(this.theaterEnabledForChat=!1);this.youThereManager_=
new _.r2K(function(){return _.FF(F)},this.hostElement);
this.pageDisposeJobs.push(function(){F.youThereManager_.reset()});
_.c("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){F.resetFullerscreenEduButtonForNewPlayback_()}));
_.c("kevlar_watch_js_panel_height")&&(this.panelMaxHeightUpdateJob_=0);this.fullHeightPanelPositionUpdateJobId=0;this.playerEvents_=new _.tj;this.playerEvents_.set("onFeedbackStartRequest",this.onPlayerFeedbackStartRequest_);this.playerEvents_.set("onFeedbackArticleRequest",this.onPlayerFeedbackArticleRequest_);this.playerEvents_.set("onYpcContentRequest",this.onPlayerYpcContentRequest_);this.playerEvents_.set("onAutonavPauseRequest",this.onPlayerAutonavPauseRequest_);this.playerEvents_.set("onAdStateChange",
this.onAdStateChange_);this.playerEvents_.set("onStateChange",this.onPlayerStateChange_);this.playerEvents_.set("SUBSCRIBE",this.onPlayerSubscribe_);this.playerEvents_.set("UNSUBSCRIBE",this.onPlayerUnsubscribe_);this.playerEvents_.set("onYtShowToast",this.onPlayerAdYtShowToast_);this.playerEvents_.set("onFullscreenChange",this.onPlayerFullscreenChange_);this.playerEvents_.set("onVideoDataChange",this.onPlayerPresentingVideoDataChange_);this.engagementPanelScrimOnClickCommands_=null;_.c("kevlar_watch_metadata_refresh")&&
(this.watchMetadata=void 0);_.c("kevlar_watch_flexy_theater_manager")||(this.actionMap["yt-toggle-theater-mode"]="setTheaterModeRequested",this.actionMap["yt-is-theater"]="isTheater_",this.playerEvents_.set("SIZE_CLICKED",this.setTheaterModeRequested));_.c("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.UO(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(F){F&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:F}),F.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(F){_.c("kevlar_watch_flexy_theater_manager")&&(this.theater=F,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),_.c("kevlar_watch_js_panel_height")&&this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(F){!_.c("kevlar_watch_while_v2")&&!_.c("web_watch_pip")||F||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(F){this.active!==void 0&&(this.fullscreen=F,_.c("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(F){this.active!==void 0&&(_.hF(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.c("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.c("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(F>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(F){this.initCsi_();this.updatePageData_(F)},
updatePageData_:function(F){var W=this;if(F)if(this.data===F){this.onPageLoadWithSameData_();var E;(E=this.watchController)==null||E.setWatchNextResponse(this.data)}else this.data=F;this.playlist&&_.$b({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.P5("nw");this.loading=!1;_.sB(_.P0,function(){W.initDclkstatus_();var h,d=((h=W.player)==null?void 0:h.getVideoData().cpn)||"";_.Zw8(function(V,R){_.OU6(V,R,d)})})},
onPageLoadWithSameData_:function(){_.c("kevlar_watch_flexy_comments_manager")||this.initComments_();this.setPlayerAds_()},
setLoadingState_:function(){this.hostElement.classList.remove("hide-skeleton");this.hostElement.classList.add("show-skeleton");this.setPlayerLoadingState_();this.hostElement.classList.add("loading");var F=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!F);this.set("loadingData.playlistLoading",F&&F!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),F=this.watchNextSkeletonEl_.firstElementChild;F;)F.classList.remove("hidden"),F=F.nextElementSibling;if(_.c("kevlar_watch_frame0_loading_state")){var W,E,h;F=(W=this.loadingData)==null?void 0:(E=W.endpoint)==null?void 0:(h=E.watchEndpoint)==null?void 0:h.videoId;var d;F&&(d="https://i.ytimg.com/vi/"+F+"/frame0.jpg");_.Z(this.hostElement).querySelector("#player").style.backgroundImage=d?"url("+d+")":""}},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var F=_.Z(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&F&&(F.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var W,E;(E=(W=this.watchMetadata).updateSentimentBarWidth)==
null||E.call(W);var h,d;(d=(h=this.watchMetadata).resize)==null||d.call(h)}_.c("kevlar_watch_frame0_loading_state")&&(_.Z(this.hostElement).querySelector("#player").style.backgroundImage="")},
addSplitScrollMouseTrap:function(F){var W=_.Z(this.hostElement).querySelector(F);W?_.W5(W,!1):_.OB(new _.xC("Overscroll monitor not found for component: ",F))},
removeSplitScrollMouseTrap:function(F){var W=_.Z(this.hostElement).querySelector(F);W?_.ET(W):_.OB(new _.xC("Disposal component for  overscroll monitoring not found: ",F))},
onLoadingChanged_:function(F){F?this.setLoadingState_():this.clearLoadingState_()},
setPlayerLoadingState_:function(){this.playerLoading_||(this.playerLoading_=!0,this.hostElement.classList.add("loading-player"))},
clearPlayerLoadingState_:function(){this.playerLoading_&&(this.playerLoading_=!1,this.hostElement.classList.remove("loading-player"))},
toggleBodyScrolling_:function(F){var W=this;F?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.P0.addLowPriorityJob(function(){W.onWindowResized_(_.cB(!0))})},
updateTheaterModeState_:function(F){if(!_.c("kevlar_watch_flexy_theater_manager")){F=F||this.fullWindowMode_;if(this.theater!==void 0||F)this.theater=F;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();F&&_.y6T()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation()},
updatePlayerLocation:function(){var F=this.theater;_.c("external_fullscreen")&&this.fullscreen&&(F=!0);F=F?_.Z(this.hostElement).querySelector("#player-full-bleed-container"):_.Z(this.hostElement).querySelector("#player-container-inner");var W=this.getPlayerContainer(),E=_.c("kevlar_watch_while_v2")||_.c("web_watch_pip");W.parentElement!==F&&(E&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():(_.FF(this).appendTo(F,W),F.appendChild(_.Z(this.hostElement).querySelector("#error-screen"))))},
deactivateMiniplayerAndResetPlayer:function(){var F=this;return _.e(function(W){if(W.nextAddress==1)return _.Q(W,_.WZ().resolve(_.GF).deactivate(),2);F.updatePlayerLocation();_.gG(W)})},
updateCinematicsLocation:function(){var F=this.getElement("CINEMATICS");if(F){var W=this.getCinematicsLocationContainer();F.parentElement!==W&&W.appendChild(F);var E;(E=this.watchController)==null||E.updateCinematicFullscreenConfig()}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInWideContainer(this.theater&&!this.fullscreen,this.fullscreen)?_.Z(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.Z(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInWideContainer:function(F,W){var E=document.documentElement.hasAttribute("dark"),h=E&&_.c("web_cinematic_theater_mode"),d=E&&_.c("web_cinematic_fullscreen");E=!E&&this.cinematicLightTheme;return F&&h||W&&d||(W||F)&&E},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var F;(F=this.watchController)==null||F.setWatchNextResponse(this.data);_.c("kevlar_watch_flexy_comments_manager")||this.initComments_();_.c("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.WZ().resolve(_.yH).cancelVideoSkip();this.showEngagementPanelScrim_=!1;this.trackEngagementPanelVisibility&&(this.engagementPanelExpanded=!1,this.visiblePanelIdentifiers_.clear());this.data&&this.updateCinematicsLocation();if(_.c("web_watch_start_chat_in_theater_mode")){var W,
E,h;if((W=this.data)==null?0:(E=W.contents)==null?0:(h=E.twoColumnWatchNextResults)==null?0:h.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var d,V;((d=this.data)==null?0:(V=d.contents)==null?0:V.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=!1)}}},
playerDataChanged_:function(F){var W;(W=this.watchController)==null||W.setPlayerResponse(this.playerData);F&&F.playabilityStatus&&(W=this.isVideoPlayable_(F.playabilityStatus,this.getPlayerOverlays_(this.data)),F=this.isLiveStreamOffline_(F.playabilityStatus),W&&!F||_.wT(this,function(){_.P5("pbu")}));
this.setPlayerAds_();_.Nc(this.hostElement,"ytd-watch-player-data-changed")},
watchPageActiveChanged_:function(F){_.uC().dispatch(_.dR({type:"SET_IS_LEARNING_JOURNEY_ACTIVE",payload:{isLearningJourneyActive:this.active}}));F?this.activate_():this.deactivate_()},
attached:function(){var F=this;this.watchController=new tOT(this.hostElement);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data);_.c("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var W=_.FF(this);_.c("kevlar_disable_prepare_player")||W.preparePlayer();_.c("kevlar_watch_flexy_playlist_manager")||_.WZ().resolve(_.yH).setPlayer(W);this.updatePageMediaQueries();W={"--ytd-watch-flexy-scrollbar-width":_.Jp()+
"px"};!_.dV("kv_pl_mx_sz_ks")&&_.dV("kevlar_watch_max_player_width")&&(W["--ytd-watch-flexy-max-player-width-wide-screen"]=_.Luu+"px");_.dV("kevlar_watch_flexy_metadata_height")&&(W["--ytd-watch-flexy-space-below-player"]=_.q3T+"px");this.safeUpdateStyles(W);_.c("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new zc6(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return F.onPlayerTouchPanDown_()}}));
_.c("kevlar_watch_metadata_refresh")&&(this.watchMetadata=_.Z(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"))},
updatePageMediaQueries:function(){var F=_.Jp(),W=_.b9+F,E=W;this.fixedPanels&&(W+=_.sBK);var h=657+F;F=1327+F;_.Z(this.hostElement).querySelector("#two-column-query").query="(min-width: "+W+"px)";_.Z(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(h+"px), (min-height: 630px) and (min-width: ")+(W+"px) and (max-width: ")+(F+"px)");_.Z(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(F+"px)");_.Z(this.hostElement).querySelector("#watch-while-query").query=
"(min-width: "+E+"px)"},
calculateCurrentPlayerSize_:function(){var F=_.Z(this.hostElement).querySelector("#miniplayer-bar").firstChild;return F&&F.active||this.theater||_.c("web_watch_fullscreen_panels")&&this.fullscreen||!this.active||!this.windowSize_?new _.Rl(NaN,NaN):_.rg(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.rg(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.u5(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var F=this;this.onWindowResized_(_.cB());_.c("browse_skeleton_removal_on_watch_killswitch")||_.l0("IS_SHELL_LOAD")&&_.lfK();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var W=_.FF(this);W.addEventListener("yt-player-updated",_.UO(this,this.onPlayerUpdated_));W.getPlayerPromise().then(function(E){F.playerApiReady_(E)});
_.c("kevlar_watch_flexy_playlist_manager")||(W=_.WZ().resolve(_.yH),_.c("kevlar_watch_observe_playlist_navigations_killswitch")&&W.addEventListener("yt-navigate",_.UO(this,this.onYtNavigate_)),W.setPlaylistComponent(_.Z(this.hostElement).querySelector("#playlist")),W.addEventListener("yt-playlist-data-updated",_.UO(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.P0.addLowPriorityJob(function(){_.hF(F.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.FF(this).removeEventListener("yt-player-updated",_.UO(this,this.onPlayerUpdated_));if(!_.c("kevlar_watch_flexy_playlist_manager")){var F=_.WZ().resolve(_.yH);_.c("kevlar_watch_observe_playlist_navigations_killswitch")&&F.removeEventListener("yt-navigate",_.UO(this,this.onYtNavigate_));F.cancelVideoSkip();F.removeEventListener("yt-playlist-data-updated",_.UO(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.c("kevlar_watch_while")&&
this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.hF(this.hostElement,"yt-autonav-pause-player",!1);F=_.Kg();_.c("kevlar_exit_fullscreen_leaving_watch")&&F&&_.Fj(F)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(F){this.player&&this.player.updateVideoData({rvs:F.rvs})},
getPageContents:function(F){return F&&F.contents&&F.contents.twoColumnWatchNextResults&&F.contents.twoColumnWatchNextResults.results&&F.contents.twoColumnWatchNextResults.results.results.contents},
getClarifyBox:function(){return this.clarifyBoxValue},
getLimitedState:function(){return this.limitedStateValue},
getMerchShelf:function(){return this.merchShelfValue},
getSingleColumn:function(){return this.singleColumnValue},
getOfferModule:function(F){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",F)},
onRetrieveLocation_:function(F,W){W.hasComments?W.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):W.locationRetrieved("/related_ajax",void 0);F.stopPropagation()},
onSubscriptionChanged_:function(F,W){this.player&&(W?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.q8("watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.Z(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.Z(this.hostElement).querySelector("#ytd-plj-player"));return this.playerEl},
playerApiReady_:function(F){this.player=F;this.setPlayerState(F.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.c("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.c("kevlar_unified_player")||_.c("kevlar_player_new_bootstrap_adoption"))&&_.hU()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(F,W){W=W===void 0?!0:W;_.Kg()&&_.c("external_fullscreen")&&_.Fj(document.documentElement);this.theaterRequested_=F;W&&_.vZ("wide",F?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();_.c("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_();_.dW(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.hF(this.hostElement,"yt-set-theater-mode-enabled",{enabled:this.theater})},
onWatchScroll_:function(){this.scrollThrottle_.fire();this.mastheadScrollThrottle.fire()},
setPlayerTheaterMode_:function(){try{this.player.setSizeStyle(!0,this.theater)}catch(F){_.bf(F,typeof this.player),this.player&&_.bf(F,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var F;((F=this.player)==null?0:F.isFullscreen())?this.player.toggleFullscreen():_.dW(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(F,W){return this.loading?W:!!Object.keys(F).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(F){if(F){F=_.U(F);for(var W=F.next();!W.done;W=F.next())W=W.value,W.youThereRenderer&&_.Gq6(this.youThereManager_,W.youThereRenderer)}},
setPlaylistData_:function(F){return F||{}},
userEngagementConfigDataChanged_:function(F){if(F)if(F.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var W=this.youThereManager_;_.hV()<F.lowEngagementThresholdMs||_.Srg(W,!0)}else F.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.dW(this.hostElement,"yt-autonav-pause-user-engagement",[F])},
isPlayerUnavailable_:function(F,W,E){return!!F&&!this.isVideoPlayable_(F,E)&&!W},
getPlayerOverlays_:function(F){return(F==null?void 0:F.playerOverlays)||null},
isVideoPlayable_:function(F,W){if(!F)return!1;var E=F.status==="OK"||F.status==="LIVE_STREAM_OFFLINE",h=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",F)||this.get("errorScreen.ypcTrailerRenderer",F);F=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",F);var d;W=W==null?void 0:(d=W.playerOverlayRenderer)==null?void 0:d.gatedActionsOverlayRenderer;return!!E||!!h||!!F||!!W},
hasWatchNextResponseErrorRenderer:function(F){var W=this.getPageContents(F),E,h,d,V,R;return!(F==null?0:(E=F.contents)==null?0:(h=E.twoColumnWatchNextResults)==null?0:h.secondaryResults)&&!!((d=W[0])==null?0:(V=d.itemSectionRenderer)==null?0:(R=V.contents[0])==null?0:R.backgroundPromoRenderer)},
isLiveStreamOffline_:function(F){return F?F.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(F,W,E){var h=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",W),d=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];d=_.c("web_no_skip_video_on_verification_checks")?(F==null?void 0:F.status)&&d.includes(F.status):F&&F.status==="AGE_CHECK_REQUIRED";var V=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",F);V==void 0&&(V=!0);!E||this.isVideoPlayable_(F,this.getPlayerOverlays_(W))||
h||d||!V||_.WZ().resolve(_.yH).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.fY6()},
onPlayerFeedbackStartRequest_:function(F){_.dW(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:F}])},
onPlayerFeedbackArticleRequest_:function(F){_.dW(this.hostElement,"yt-help-dialog-requested",[F])},
onPlayerYpcContentRequest_:function(){var F,W,E,h,d,V,R,M,g=((F=this.data)==null?NaN:(W=F.contents)==null?NaN:(E=W.twoColumnWatchNextResults)==null?NaN:(h=E.secondaryResults)==null?NaN:(d=h.secondaryResults)==null?NaN:(V=d.offerModule)==null?NaN:(R=V.tvfilmOfferModuleRenderer)==null?NaN:(M=R.actionButtons)==null?NaN:M.length)-1;F=[".offerButton.buttonRenderer.",".actionButtons."+(g>=0?g:0)+".buttonRenderer."];W=_.U(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(E=W.next();!E.done;E=W.next())for(E=E.value,h=_.U(F),d=h.next();!d.done;d=h.next())if(d="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+E+d.value,d=this.get(d+"navigationEndpoint",this.data)||this.get(d+"serviceEndpoint",this.data)||this.get(d+"command",this.data)){_.ei(d,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(F){_.hF(this.hostElement,"yt-autonav-pause-player",F)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(F){F()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(F){switch(F){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(F){switch(F){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.hF(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(F)},
setPlayerState:function(F){_.uC().dispatch(_.fjp(F))},
onPlayerSubscribe_:function(F){_.dW(this.hostElement,"yt-player-subscribe",[F])},
onPlayerUnsubscribe_:function(F){_.dW(this.hostElement,"yt-player-unsubscribe",[F])},
onPlayerAdYtShowToast_:function(F){_.dW(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:F.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(F){if(F)return F},
computeCommentsEntryPointHeaderRenderer:function(){if(this.commentTeaserEnabled)return this.defaultTwoColumnLayout?void 0:this.commentsEntryPointHeaderRendererValue},
computeShowExpandableMetadata:function(F){return!_.c("web_watch_move_summary_to_sd")&&!!F},
computeWatchMetadataRefresh:function(){return _.c("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
watchNextSecondaryResultsChanged:function(){if(!this.useProviderForSecondaryResultsRenderer){var F,W,E,h;this.watchNextSecondaryResults=(F=this.data)==null?void 0:(W=F.contents)==null?void 0:(E=W.twoColumnWatchNextResults)==null?void 0:(h=E.secondaryResults)==null?void 0:h.secondaryResults}},
setRichGridRendererData:function(F){this.richGridRendererData=F},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var F,W=(F=this.data)==null?void 0:F.engagementPanels;if(W==null?0:W.length){F=null;W=_.U(W);for(var E=W.next();!E.done;E=W.next()){E=E.value;var h=void 0;if(((h=E.engagementPanelSectionListRenderer)==null?void 0:h.targetId)==="engagement-panel-structured-description"){F=E;break}}var d,V,R;F=(d=F)==null?void 0:(V=d.engagementPanelSectionListRenderer)==null?void 0:(R=V.content)==null?void 0:R.structuredDescriptionContentRenderer;if(F==null?0:F.items){d=
[];V=_.U(F.items);for(R=V.next();!R.done;R=V.next()){R=R.value;if(!_.c("sd_horizontal_list_show_nav_killswitch")){var M=h=E=W=F=void 0,g=void 0,t=(F=R.horizontalCardListRenderer)==null?void 0:(W=F.header)==null?void 0:(E=W.richListHeaderRenderer)==null?void 0:(h=E.navigationButton)==null?void 0:(M=h.buttonRenderer)==null?void 0:(g=M.command)==null?void 0:g.commandExecutorCommand;t&&t.commands&&(t.commands=t.commands.filter(function(C){return!_.D(C,_.jpP)}))}R.expandableVideoDescriptionBodyRenderer||
R.videoDescriptionHeaderRenderer||d.push(R)}return{items:d}}}},
constructWarning_:function(F){return{text:_.Gr(F),type:"WARNING"}},
isPlaShelfEnabled_:function(F){if((this.get("adPlacements",F)||[]).length)return!0;F=this.get("playerAds",F)||[];return!(!F.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",F[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var F=this;_.hF(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.c("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var W=this.getScrollTop()>0;this.gestures_&&(W?this.gestures_.detach():this.gestures_.attach());W!==this.showFullerscreenEdu_&&_.c("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=W,_.FF(this).getPlayerPromise().then(function(E){E.updateFullerscreenEduButtonVisibility(F.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.hF(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var F=this;this.commentsReady=!1;_.P0.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.sB(_.P0,function(){F.setComments_()},1E3)},
setComments_:function(){if(!_.c("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.P5("cmi");_.P0.cancelJob(this.setCommentsJobId_);var F=this.getPageContents(this.data);if(F&&F.length){F=_.U(F);for(var W=F.next();!W.done;W=F.next())if(W=W.value,this.get("itemSectionRenderer.sectionIdentifier",W)==="comment-item-section"){this.comments=W.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.hF(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.c("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.c("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.P5("cmc")},
doRemoveComments_:function(){this.comments={};_.c("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.P0.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.P0.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(F,W){var E=_.D(W.endpoint,_.GM);E&&(!(W=this.get("data.currentVideoEndpoint.watchEndpoint"))||E.videoId!==W.videoId||E.playlistId&&E.playlistId!==W.playlistId||E.index!==void 0&&E.index!==W.index||typeof E.startTimeSeconds!=="number"||(F.stopPropagation(),this.setScrollTop(0),_.FF(this).getPlayerPromise().then(function(h){var d=E.startTimeSeconds;h.seekTo(d);h.wakeUpControls();d<h.getDuration()&&h.playVideo()})))},
updatePlayerStartTime_:function(){var F=_.IYP();"t"in F&&(F=_.aYK(F.t),this.player.seekTo(F,!0))},
updateTitleFromWatchNext:function(F){F=this.getPageContents(F);var W,E;(F=_.Yr(F==null?void 0:(W=F[0])==null?void 0:(E=W.videoPrimaryInfoRenderer)==null?void 0:E.title))&&_.hF(this.hostElement,"yt-update-title",F)},
updateTitle_:function(F){F=this.get("videoDetails.title",F)||"";_.hF(this.hostElement,"yt-update-title",F)},
syncWithRemoteVideo_:function(F,W,E){if(this.active&&this.player){var h=this.player.getVideoData();if(h.video_id===E&&(E=h.list,_.c("polymer_enable_mdx_queue")&&E&&E.startsWith("RQ")&&(E=void 0),h.video_id!==F||E!=W)){var d;_.c("kevlar_player_watch_endpoint_navigation")?d=_.o_e(_.X_g(F,W)):d=this.buildWatchEndpoint_(F,W);_.hF(this.hostElement,"yt-navigate",{endpoint:d,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(F,W,E){return _.FD(F,W,E)},
initDclkstatus_:function(){_.J2q()},
attachWatchPageSkeleton_:function(){var F=document.querySelector("#watch-page-skeleton");if(F){var W=F.querySelector("#primary-info"),E=F.querySelector("#secondary-info"),h=F.querySelector("#related");W&&_.Z(this.hostElement).querySelector("#info-skeleton").appendChild(W);E&&_.Z(this.hostElement).querySelector("#meta-skeleton").appendChild(E);h&&(_.Z(this.hostElement).querySelector("#related-skeleton").appendChild(h),this.watchNextSkeletonEl_=h);_.Bb(F)}},
handlePlayerUpdated_:function(){_.FF(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(F,W){if(this.watchNextSkeletonEl_&&typeof W!=="undefined"){var E=this.watchNextSkeletonEl_.children,h=F&&F.indexSplices.length?F.indexSplices[0].index:0;F=Math.min(this.watchNextShownItems.length,E.length);W||(h=0,F=E.length);for(W=h;W<F;W++)E[W].classList.add("hidden")}},
onPlayerFullscreenChange_:function(F){_.c("external_fullscreen")||_.dW(this.hostElement,"yt-player-fullscreen",[F.fullscreen])},
onFullscreenChange_:function(F){this.fullscreen=F;this.gestures_&&this.gestures_.update(this.fullscreen);var W=_.FF(this);W.getPlayerPromise().then(function(E){E.setFauxFullscreen(!!_.Kg())});
this.updateFullBleedElementLocations();F&&(W.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(F,W){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!W},
computeIsDonationShelfCollapsed_:function(F){return F},
computeShouldShowMerchShelf:function(F,W){return W&&!!F},
computeResponseHasComments:function(F){var W,E,h,d,V;return!!(F==null?0:(W=F.contents)==null?0:(E=W.twoColumnWatchNextResults)==null?0:(h=E.results)==null?0:(d=h.results)==null?0:(V=d.contents)==null?0:V.some(function(R){var M;return(R==null?void 0:(M=R.itemSectionRenderer)==null?void 0:M.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(F,W){this.responseHasComments=this.computeResponseHasComments(this.data);return!!F&&!!Object.keys(F).length&&!W},
identity:_.io,onWindowResized_:function(F){this.windowSize_=F;this.active&&(this.schedulePlayerSizeUpdate_(!0),_.c("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_());_.c("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(F){var W=this;F&&F.type!=="dataloaded"&&F.type!=="dataupdated"||_.FF(this).getPlayerPromise().then(function(E){var h=E.getPlayerState();h!==5&&h!==0&&(E=1/E.getVideoAspectRatio(),W.videoHeightToWidthRatio_!==E&&(W.videoHeightToWidthRatio_=E))})},
schedulePlayerSizeUpdate_:function(F){var W=this,E=_.c("kevlar_watch_while_v2")||_.c("web_watch_pip"),h=function(){if(W.watchMetadata){var d,V;(V=(d=W.watchMetadata).resize)==null||V.call(d)}_.FF(W).getPlayerPromise().then(function(R){if(_.c("kevlar_set_internal_player_size")){if(!E||!W.isMiniplayerActive()){var M=W.calculateCurrentPlayerSize_();R.setInternalSize(M.width,M.height)}}else R.setSize(NaN,NaN);_.c("kevlar_watch_while")&&W.updateWatchWhileScrollThreshold_()})};
F?h():_.JG(_.P0,h)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(F){this.set("data.survey",F.detail)},
onYtShowSurveyCommand_:function(F){this.set("data.survey",_.D(F,_.iwg).survey)},
onDownloadedVideoDeleted:function(F){var W=this,E,h;return _.e(function(d){if(d.nextAddress==1){if(!W.active||(E=W.playerData)==null||!E.offlineState||W.videoId!==F)return d.return();(h=W.player)==null||h.stopVideo();_.DT().navigatingAwayFromWatchDeletedVideo=!0;_.ei(_.PXY,W.hostElement);return _.Q(d,_.DT().navigationFinishPromise,2)}_.DT().navigatingAwayFromWatchDeletedVideo=!1;_.gG(d)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var F;this.theater?F=_.jX(.5625*this.windowSize_.width,480,this.windowSize_.height-185):F=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==F&&(this.watchWhileScrollThreshold_=F,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var F=_.Z(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&F){var W=this.windowSize_.height>=624,E=this.active?this.getScrollTop():0;!F.active&&W&&E>=this.watchWhileScrollThreshold_?(F.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):F.active&&(!W||E<this.watchWhileScrollThreshold_&&!_.Kg())&&(F.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
isTwoColumnsChanged_:function(F,W){if(F!==!0||W!==void 0){F=!_.c("live_chat_over_engagement_panels");W=_.Z(this.hostElement).querySelector("#chat-container");var E=_.Z(this.hostElement).querySelector("#plj-sidebar"),h=_.Z(this.hostElement).querySelector("#panels"),d=_.Z(this.hostElement).querySelector("#plj-panels"),V=_.Z(this.hostElement).querySelector("#plj-playlist"),R=_.Z(this.hostElement).querySelector("#alerts"),M=_.Z(this.hostElement).querySelector("#playlist"),g=_.Z(this.hostElement).querySelector("#related"),
t=_.Z(this.hostElement).querySelector("#donation-shelf"),C=_.Z(this.hostElement).querySelector("#comments");this.isTwoColumns_?(R=_.Z(this.hostElement).querySelector("#secondary-inner"),R.appendChild(E),E.appendChild(V),V.appendChild(M),E.appendChild(d),F&&R.appendChild(h),_.c("web_watch_theater_chat")||R.appendChild(W),F||R.appendChild(h),R.appendChild(t),R.appendChild(g)):(F&&_.bk(h,R),_.bk(M,R),_.c("web_watch_theater_chat")||_.bk(W,R),F||_.bk(h,R),_.bk(t,R),C&&(d&&_.bk(d,C),_.bk(g,C)));_.c("kevlar_watch_js_panel_height")&&
this.active&&this.schedulePanelMaxHeightUpdate_()}},
watchWhileWindowSizeSufficientChanged:function(){_.c("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(_.c("web_watch_theater_chat")){var F=_.Z(this.hostElement).querySelector("#chat-container"),W=this.theater&&!this.fullscreen||_.c("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&W?_.c("web_watch_theater_chat_beside_player")?(W=_.Z(this.hostElement).querySelector("#panels-full-bleed-container"),(F==null?void 0:F.parentElement)!==W&&W.append(F),this.panelsBesidePlayer=!0):_.c("web_watch_theater_fixed_chat")&&
(W=_.Z(this.hostElement).querySelector("#columns"),(F==null?void 0:F.parentElement)!==W&&W.append(F),this.fixedPanels=!0):(_.c("web_watch_theater_chat_beside_player")?this.panelsBesidePlayer=!1:_.c("web_watch_theater_fixed_chat")&&(this.fixedPanels=!1),W=_.Z(this.hostElement).querySelector("#playlist"),F&&W?_.lk(F,W):_.OB(new _.xC("Missing element when updating chat location",{"chatContainer defined":!!F,"playlist defined":!!W})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(F,W){return _.c("sw_metadata_vis_toggle_ks")?!0:!!F||!!W},
computeForceDarkPanelTheme:function(F){return _.c("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&F:!1},
safeUpdateStyles:function(F){try{_.V9(this.hostElement,F)}catch(W){_.OB(W)}},
videoHeightToWidthRatioChanged_:function(F,W){W&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),_.c("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(F){this.videoHeightToWidthRatio_=1/F},
computeIsVerticalVideo_:function(F){return F>=1},
computeIsFourThreeToSixteenNineVideo_:function(F){return F<=.7501&&F>=.5624},
computeIsExtraWideVideo_:function(F){return F<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.FF(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.FF(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.p_w(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(F){var W=_.Cy(F)||0;_.tl(F,W+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var F=_.Cy("yt-fullerscreen-edu-button-click-count")||0,W=_.Cy("yt-fullerscreen-edu-button-shown-count")||0,E=_.dV("external_fullscreen_button_shown_threshold"),h=F>=_.dV("external_fullscreen_button_click_threshold")||W>=E;_.FF(this).getPlayerPromise().then(function(d){d.updateFullerscreenEduButtonSubtleModeState(h)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(F,W){return W},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.WZ().resolve(_.yH).getPlaylistData()||{}},
schedulePanelMaxHeightUpdate_:function(){var F=this;this.panelMaxHeightUpdateJob_&&_.P0.cancelJob(this.panelMaxHeightUpdateJob_);this.panelMaxHeightUpdateJob_=_.P0.addLowPriorityJob(function(){F.panelMaxHeightUpdateJob_=0;var W;!F.isTwoColumns_||F.theater||F.fullscreen?W=460:W=F.calculateNormalPlayerSize_().height;var E=W+"px";_.c("live_chat_taller_height")&&!F.theater&&(E="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");_.c("live_chat_medium_height")&&
!F.theater&&(E="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.c("live_chat_scaled_height")&&!F.theater&&(E="calc(100vh - var(--ytd-toolbar-height) - 238px)");F.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":W+"px","--ytd-watch-flexy-chat-max-height":E,"--ytd-watch-flexy-structured-description-max-height":W+"px","--ytd-watch-flexy-comments-panel-max-height":W+"px","--ytd-comments-engagement-panel-content-height":W+"px"})})},
onYtShowEngagementPanelScrimAction_:function(F){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",F)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.Rj(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(F){var W=_.Z(this.hostElement).querySelector("#engagement-panel-scrim");F?W.addEventListener("tap",_.UO(this,this.onEngagementPanelScrimClick_)):W.removeEventListener("tap",_.UO(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(F){if(this.hostElement.contains(F)&&!this.scrollToAnimation_.isAnimating()){var W=F.offsetTop-24;F=F.offsetTop+F.offsetHeight+24;var E=this.getPageScrollingElement(),h=this.getScrollTop(),d=h+E.clientHeight-56;if(W<h+56)W-=56;else if(F>d)W=F-E.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,W),500)}},
onYtSignalActionScrollToComments:function(){var F=this.hostElement.querySelector("#comments");if(F&&!this.scrollToAnimation_.isAnimating()){F=F.offsetTop-56-24;if(_.c("kevlar_comment_teaser_scroll_to_midpoint")&&(F-=_.eU().height/3,F<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,F),500)}},
onYtEngagementPanelVisibleChanged:function(F,W,E){this.active&&this.trackEngagementPanelVisibility&&!_.y28.includes(E)&&(W==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.visiblePanelIdentifiers_.add(E),W!=="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&W!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(E),this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0)},
computeLegacyMetadataClass:function(F){return F?"":"watch-active-metadata"},
computeNewMetadataClass:function(F){return F?"watch-active-metadata":""},
computeFullBleedPlayer:function(F,W){return F||W},
computeDefaultLayout:function(F){return!F},
computeDefaultTwoColumnLayout:function(F,W){return!F&&W},
computeWatchWhilePanelsActive:function(F,W){return F||W},
computeNoBorderOnChat:function(F){return _.c("web_watch_theater_chat_no_border")&&F},
computeLiveChatPresentAndExpanded:function(F,W){return F&&!W},
computePanelExpanded:function(F,W,E){return F||W||E},
onChangeMarkersVisibility:function(F){_.FF(this).getPlayerPromise().then(function(W){var E;(E=W.changeMarkerVisibility)==null||E.call(W,_.D(F,_.Te).isVisible||!1,_.D(F,_.Te).entityKeys||[],_.D(F,_.Te).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(F){this.liveChatCollapsed=F.detail;_.uC().dispatch(_.nlu(F.detail))},
provideRenderingData:function(F,W){switch(F){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=W;break;case "PRIMARY_INFO":_.c("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=W);this.videoPrimaryInfoRendererValue=W==null?void 0:W.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.c("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=W);this.videoSecondaryInfoRendererValue=W==null?void 0:W.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
W;break;case "CLARIFICATION":this.clarifyBoxValue=W;break;case "LIVE_CHAT":this.conversationBar=W;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=W;break;case "PLAYLIST":this.externalPlaylistData_=W!=null?W:{};break;case "MERCH_SHELF":this.merchShelfValue=W==null?void 0:W.merchandiseShelfRenderer;break;case "TICKET_SHELF":this.ticket=W;break;case "OFFER_MODULE":this.offerModule=W;break;case "LIMITED_STATE":this.limitedStateValue=W;break;case "DONATION_SHELF":this.donation=W;break;
case "ALERTS":this.alertsValue=W;break;case "COMMENTS":this.comments=W;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=W;break;case "ENGAGEMENT_PANELS":this.engagementPanels=W;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=W;break;case "RICH_GRID_RENDERER":this.richGridRendererData=W;break;case "EXPANDABLE_METADATA":this.expandableMetadata=W;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=W}},
toggleCinematicsActive:function(F){this.cinematicsActive=F},
isMiniplayerActive:function(){return _.WZ().resolve(_.GF).isMiniplayerActive()},
getLearningJourneyEngagementPanels:function(F){return B66.map(function(W){return F.find(function(E){var h;return(E==null?void 0:(h=E.engagementPanelSectionListRenderer)==null?void 0:h.targetId)===W})}).filter(function(W){return W!==void 0})},
getNonLearningJourneyEngagementPanels:function(F){return F.filter(function(W){var E;return!B66.includes((W==null?void 0:(E=W.engagementPanelSectionListRenderer)==null?void 0:E.targetId)||"")})}}];var vI8;var K0=function(){var F=_.n.apply(this,arguments)||this;F.flexy=!0;F.learningJourney=!0;F.roundedInfoPanel=!0;F.viewTransitionEnabled=_.c("enable_player_resize_transition");F.smallerChatMinHeight=_.c("live_chat_smaller_min_height");F.cinematicTheaterMode=_.c("web_cinematic_theater_mode");F.transparentTheaterMode=_.c("web_transparent_theater_mode");F.cinematicFullscreen=_.c("web_cinematic_fullscreen");F.useLargerMaxPlayerValue=_.c("kevlar_flexy_use_larger_player_value");F.cinematicFullscreenV2=_.c("web_cinematic_fullscreen_v2");
F.isDarkTheme=document.documentElement.hasAttribute("dark");F.theaterLargerPlayer=_.c("web_watch_theater_larger_player");F.defaultCollapsePlaylist=_.c("web_watch_default_collapse_playlist");return F};
_.k(K0,_.n);_.N=K0.prototype;_.N.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.N.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.N.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.N.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.N.ready=function(){var F=this,W=function(){F.onColumnScroll()};
this.primary.addEventListener("scroll",W);this.secondary.addEventListener("scroll",W)};
_.N.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.N.updateIsTwoColumnsFromBinding=function(F){_.c("web_watch_update_narrow_width_killswitch")||_.uC().dispatch(_.ftT(!F.detail.value));this.ytdWatchBehavior.isTwoColumns_=F.detail.value};
_.N.updateFlexySmallWindowFromBinding=function(F){this.ytdWatchBehavior.flexySmallWindow_=F.detail.value};
_.N.updateFlexyLargeWindowFromBinding=function(F){this.ytdWatchBehavior.flexyLargeWindow_=F.detail.value};
_.N.updateWatchWhileWindowSizeSufficientFromBinding=function(F){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=F.detail.value};
_.N.updateWatchNextCanShowMoreFromBinding=function(F){this.ytdWatchBehavior.watchNextCanShowMore=F.detail.value};
_.N.updateShownItemsFromBinding=function(F){F.detail.path?this.set(F.detail.path,F.detail.value):this.ytdWatchBehavior.watchNextShownItems=F.detail.value};
_.N.getElement=function(F){switch(F){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20419_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$20419_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.Sn.Object.defineProperties(K0.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var F;if((F=this.data)==null||!F.pageVisualEffects)return!1;for(var W=0;W<this.data.pageVisualEffects.length;W++)if(F=_.D(this.data.pageVisualEffects[W],_.AY))return W=void 0,(W=F.config)==null?void 0:W.enableInLightTheme;return!1}},
hasLearningJourneyPanels:{configurable:!0,enumerable:!0,get:function(){var F;return((F=this.learningJourneyEngagementPanels)==null?void 0:F.length)>0}},
backButtonData:{configurable:!0,enumerable:!0,get:function(){return{type:"filled",style:"mono",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){window.history.back()}}}}});
_.Sn.Object.defineProperties(K0,{template:{configurable:!0,enumerable:!0,get:function(){if(vI8===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-learning-journey--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-learning-journey"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-learning-journey">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-learning-journey">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-learning-journey"></iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-learning-journey"></div>\n\n<div id="miniplayer-bar" class="style-scope ytd-watch-learning-journey"></div>\n\n<div id="full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-learning-journey">\n  <div id="player-full-bleed-container" class="style-scope ytd-watch-learning-journey">\n    <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-learning-journey"></div>\n  </div>\n  <div id="panels-full-bleed-container" class="style-scope ytd-watch-learning-journey"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-learning-journey"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-learning-journey">\n\n  <div id="secondary" class="style-scope ytd-watch-learning-journey">\n    <div id="secondary-inner" class="style-scope ytd-watch-learning-journey">\n      <div id="plj-sidebar" class="style-scope ytd-watch-learning-journey">\n        <div id="plj-playlist" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="plj-panels" class="style-scope ytd-watch-learning-journey"></div>\n      </div>\n      <div id="panels" class="style-scope ytd-watch-learning-journey">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-learning-journey">\n        </ytd-watch-engagement-panels>\n      </div>\n      <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[defaultCollapsePlaylist]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" class="style-scope ytd-watch-learning-journey">\n      </ytd-playlist-panel-renderer>\n      <div id="donation-shelf" class="style-scope ytd-watch-learning-journey"></div>\n      <div id="chat-container" class="style-scope ytd-watch-learning-journey">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-learning-journey">\n          <ytd-live-chat-frame id="chat" data="[[data.contents.twoColumnWatchNextResults.conversationBar]]" force-dark-theme="[[forceDarkPanelTheme]]" no-border="[[noBorderOnChat]]" theater-watch-while="[[watchWhilePanelsActive]]" class="style-scope ytd-watch-learning-journey">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n      <div id="related" class="style-scope ytd-watch-learning-journey">\n        <div id="player-ads" class="style-scope ytd-watch-learning-journey"></div>\n        <ytd-watch-next-secondary-results-renderer can-show-more="[[watchNextCanShowMore]]" data="[[watchNextSecondaryResults]]" disable-upgrade$="[[!watchNextSecondaryResults]]" hidden="[[!watchNextSecondaryResults]]" is-two-columns="[[isTwoColumns_]]" player-data="[[playerData]]" show-more-button="[[!isTwoColumns_]]" shown-items="[[watchNextShownItems]]" on-can-show-more-changed="updateWatchNextCanShowMoreFromBinding" on-shown-items-changed="updateShownItemsFromBinding" class="style-scope ytd-watch-learning-journey">\n        </ytd-watch-next-secondary-results-renderer>\n        <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n      </div>\n    </div>\n  </div>\n\n  <div id="primary" class="style-scope ytd-watch-learning-journey">\n    <div id="primary-inner" class="style-scope ytd-watch-learning-journey">\n      <div id="player" class="style-scope ytd-watch-learning-journey">\n        <div id="cinematics-container" class="style-scope ytd-watch-learning-journey">\n          <div id="cinematics" class="style-scope ytd-watch-learning-journey"></div>\n        </div>\n        <div id="player-container-outer" class="style-scope ytd-watch-learning-journey">\n          <div id="player-container-inner" class="style-scope ytd-watch-learning-journey">\n            <div id="player-container" role="complementary" class="style-scope ytd-watch-learning-journey">\n              <ytd-player id="ytd-plj-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_LEARNING_JOURNEY_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-learning-journey">\n              </ytd-player>\n            </div>\n          </div>\n          <div id="player-button-overlays" class="style-scope ytd-watch-learning-journey">\n            <yt-button-shape data="[[backButtonData]]" icon-name="x_cairo" class="style-scope ytd-watch-learning-journey">\n          </yt-button-shape></div>\n        </div>\n        <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-learning-journey">\n        </yt-playability-error-supported-renderers>\n      </div>\n      <div id="below" class="style-scope ytd-watch-learning-journey">\n        <div id="alerts" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="messages" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="clarify-box" class="attached-message style-scope ytd-watch-learning-journey"></div>\n        <div id="limited-state" class="attached-message style-scope ytd-watch-learning-journey"></div>\n        <ytd-watch-metadata class$="[[newMetadataClass]] style-scope ytd-watch-learning-journey" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" disable-upgrade$="[[!watchMetadataRefresh]]" hidden="[[!watchMetadataRefresh]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" is-watch-learning-journey="" structured-description-content-renderer="[[inlineStructuredDescriptionData]]" video-id="[[videoId]]" video-metadata-carousel="[[videoMetadataCarousel]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" video-summary="[[expandableMetadata]]">\n        </ytd-watch-metadata>\n        <div class$="[[legacyMetadataClass]] style-scope ytd-watch-learning-journey">\n          <div id="info" class="style-scope ytd-watch-learning-journey">\n            <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n            <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey"></div>\n          </div>\n          <div id="meta" class="style-scope ytd-watch-learning-journey">\n            <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n            <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey"></div>\n          </div>\n        </div>\n        <div id="expandable-metadata" hidden="[[!showExpandableMetadata]]" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-learning-journey"></div>\n        \n        <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-learning-journey">\n          <ytd-merch-shelf-renderer data="[[merchShelf]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey">\n          </ytd-merch-shelf-renderer>\n        </template>\n        <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" disable-upgrade$="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" class="style-scope ytd-watch-learning-journey">\n        </ytd-comments>\n      </div>\n    </div>\n  </div>\n</div>\n\n<div id="survey" class="style-scope ytd-watch-learning-journey"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-learning-journey"></div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);vI8=F}F=vI8;return F}}});
K0.prototype.updateMiniplayerIsActiveValue=K0.prototype.updateMiniplayerIsActiveValue;K0.prototype.updateScrollTopValue=K0.prototype.updateScrollTopValue;K0.prototype.updateFullscreenValue=K0.prototype.updateFullscreenValue;K0.prototype.updateTheaterValue=K0.prototype.updateTheaterValue;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],K0.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],K0.prototype,"ytComponentBehavior",void 0);
_.T([_.J(CSx.YtdLearningJourneyWatchBehavior),_.Y("design:type",Object)],K0.prototype,"ytdWatchBehavior",void 0);_.T([_.J(_.am),_.Y("design:type",Object)],K0.prototype,"ytdReduxBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],K0.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Object)],K0.prototype,"playerData",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],K0.prototype,"flexy",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],K0.prototype,"learningJourney",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],K0.prototype,"roundedInfoPanel",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],K0.prototype,"viewTransitionEnabled",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],K0.prototype,"smallerChatMinHeight",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],K0.prototype,"cinematicTheaterMode",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],K0.prototype,"transparentTheaterMode",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],K0.prototype,"cinematicFullscreen",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],K0.prototype,"useLargerMaxPlayerValue",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],K0.prototype,"cinematicFullscreenV2",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],K0.prototype,"isDarkTheme",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],K0.prototype,"theaterLargerPlayer",void 0);_.T([_.O(),_.Y("design:type",Object)],K0.prototype,"defaultCollapsePlaylist",void 0);_.T([_.O({selector:_.H7}),_.Y("design:type",Object)],K0.prototype,"theaterValue",void 0);
_.T([_.O({selector:_.Lw}),_.Y("design:type",Object)],K0.prototype,"fullscreenValue",void 0);_.T([_.O({selector:_.qP}),_.Y("design:type",Object)],K0.prototype,"scrollTopValue",void 0);_.T([_.O({selector:_.Pz}),_.Y("design:type",Object)],K0.prototype,"miniplayerIsActiveValue",void 0);_.T([_.gQ("#ytd-plj-player"),_.Y("design:type",HTMLElement)],K0.prototype,"ytdPlayer",void 0);_.T([_.gQ("#playlist"),_.Y("design:type",HTMLElement)],K0.prototype,"JSC$20419_ytdPlaylistPanelRenderer",void 0);
_.T([_.KA("ytd-comments"),_.Y("design:type",HTMLElement)],K0.prototype,"ytdComments",void 0);_.T([_.gQ("#primary"),_.Y("design:type",HTMLElement)],K0.prototype,"primary",void 0);_.T([_.gQ("#secondary"),_.Y("design:type",HTMLElement)],K0.prototype,"secondary",void 0);_.T([_.gQ("#player-container"),_.Y("design:type",HTMLElement)],K0.prototype,"playerContainer",void 0);_.T([_.gQ("#cinematics"),_.Y("design:type",HTMLElement)],K0.prototype,"JSC$20419_cinematics",void 0);
_.T([_.ea("theaterValue"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],K0.prototype,"updateTheaterValue",null);_.T([_.ea("fullscreenValue"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],K0.prototype,"updateFullscreenValue",null);_.T([_.ea("scrollTopValue"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],K0.prototype,"updateScrollTopValue",null);
_.T([_.ea("miniplayerIsActiveValue"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],K0.prototype,"updateMiniplayerIsActiveValue",null);_.T([_.O({reflectToAttribute:!0}),_.a("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],K0.prototype,"cinematicLightTheme",null);_.T([_.O({reflectToAttribute:!0}),_.a("learningJourneyEngagementPanels"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],K0.prototype,"hasLearningJourneyPanels",null);
K0=_.T([_.y({is:"ytd-watch-learning-journey"})],K0);_.ZW.registerService(_.gNI,K0);
_.Hb();
}catch(e){_._DumpException(e)}
try{
_.Xg("Tm0L3c");
var N6q;var VOw;var UmK=function(){return _.n.apply(this,arguments)||this};
_.k(UmK,_.n);UmK=_.T([_.y({is:"ytd-ghost-comments-renderer",disableElementRegistration:!0})],UmK);
_.r(UmK,"ytd-ghost-comments-renderer",function(){if(VOw===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ghost-comments-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="comment-section style-scope ytd-ghost-comments-renderer">\n  <div class="header ghost-card style-scope ytd-ghost-comments-renderer">\n    <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n  </div>\n  <div class="input-box ghost-card style-scope ytd-ghost-comments-renderer">\n    <div class="avatar style-scope ytd-ghost-comments-renderer">\n      <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n    </div>\n    <div class="ghost-input style-scope ytd-ghost-comments-renderer"></div>\n  </div>\n  <div class="comments style-scope ytd-ghost-comments-renderer">\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n  <div class="comments style-scope ytd-ghost-comments-renderer">\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n  <div class="comments style-scope ytd-ghost-comments-renderer">\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n  </div>\n  <div class="comments style-scope ytd-ghost-comments-renderer">\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n  </div>\n  <div class="comments style-scope ytd-ghost-comments-renderer">\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n  </div>\n  <div class="comments style-scope ytd-ghost-comments-renderer">\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n  </div>\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n  </div>\n  </div>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);VOw=F}F=VOw;return F},{mode:1});var RcP;var ecx=function(){return _.n.apply(this,arguments)||this};
_.k(ecx,_.n);ecx=_.T([_.y({is:"ytd-ghost-watch-metadata-renderer",disableElementRegistration:!0})],ecx);
_.r(ecx,"ytd-ghost-watch-metadata-renderer",function(){if(RcP===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ghost-watch-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="ghost-card style-scope ytd-ghost-watch-metadata-renderer">\n  <div class="title style-scope ytd-ghost-watch-metadata-renderer">\n    <div class="line line-1 style-scope ytd-ghost-watch-metadata-renderer"></div>\n    <div class="line line-2 style-scope ytd-ghost-watch-metadata-renderer"></div>\n  </div>\n  <div class="byline style-scope ytd-ghost-watch-metadata-renderer">\n    <span class="word style-scope ytd-ghost-watch-metadata-renderer"></span>\n    <span class="word style-scope ytd-ghost-watch-metadata-renderer"></span>\n    <span class="word style-scope ytd-ghost-watch-metadata-renderer"></span>\n  </div>\n  <div class="description style-scope ytd-ghost-watch-metadata-renderer">\n    <div class="line line-1 style-scope ytd-ghost-watch-metadata-renderer"></div>\n    <div class="line line-2 style-scope ytd-ghost-watch-metadata-renderer"></div>\n    <div class="line line-3 style-scope ytd-ghost-watch-metadata-renderer"></div>\n  </div>\n  <div class="owner-box style-scope ytd-ghost-watch-metadata-renderer">\n    <div class="left style-scope ytd-ghost-watch-metadata-renderer">\n      <div class="circle style-scope ytd-ghost-watch-metadata-renderer"></div>\n      <div class="text style-scope ytd-ghost-watch-metadata-renderer">\n        <div class="top style-scope ytd-ghost-watch-metadata-renderer"></div>\n        <div class="bottom style-scope ytd-ghost-watch-metadata-renderer"></div>\n      </div>\n    </div>\n    <div class="right style-scope ytd-ghost-watch-metadata-renderer">\n      <div class="oval style-scope ytd-ghost-watch-metadata-renderer"></div>\n    </div>\n  </div>\n  <div class="action-bar style-scope ytd-ghost-watch-metadata-renderer">\n    <div class="oval style-scope ytd-ghost-watch-metadata-renderer"></div>\n    <div class="circle style-scope ytd-ghost-watch-metadata-renderer"></div>\n    <div class="circle style-scope ytd-ghost-watch-metadata-renderer"></div>\n    <div class="circle style-scope ytd-ghost-watch-metadata-renderer"></div>\n    <div class="circle style-scope ytd-ghost-watch-metadata-renderer"></div>\n  </div>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);RcP=F}F=RcP;return F},{mode:1});var mG=function(){var F=_.n.apply(this,arguments)||this;F.ghostGridRenderer={rows:6};F.roundedInfoPanel=!0;F.hideOfferModules=!0;F.smallerChatMinHeight=_.c("live_chat_smaller_min_height");F.cinematicTheaterMode=_.c("web_cinematic_theater_mode");F.transparentTheaterMode=_.c("web_transparent_theater_mode");F.darkerPanels=_.c("web_watch_darker_panels");F.cinematicFullscreen=_.c("web_cinematic_fullscreen");F.cinematicFullscreenV2=_.c("web_cinematic_fullscreen_v2");F.isDarkTheme=document.documentElement.hasAttribute("dark");
return F};
_.k(mG,_.n);_.N=mG.prototype;_.N.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.N.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.N.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.N.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.N.ready=function(){var F=this,W=function(){F.onColumnScroll()};
this.primary.addEventListener("scroll",W);this.secondary.addEventListener("scroll",W)};
_.N.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.N.updateIsTwoColumnsFromBinding=function(F){this.ytdWatchBehavior.isTwoColumns_=F.detail.value};
_.N.updateFlexySmallWindowFromBinding=function(F){this.ytdWatchBehavior.flexySmallWindow_=F.detail.value};
_.N.updateFlexyLargeWindowFromBinding=function(F){this.ytdWatchBehavior.flexyLargeWindow_=F.detail.value};
_.N.updateWatchWhileWindowSizeSufficientFromBinding=function(F){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=F.detail.value};
_.N.updateWatchNextCanShowMoreFromBinding=function(F){this.ytdWatchBehavior.watchNextCanShowMore=F.detail.value};
_.N.updateShownItemsFromBinding=function(F){_.c("swatcheroo_direct_use_rich_grid")||(F.detail.path?this.set(F.detail.path,F.detail.value):this.ytdWatchBehavior.watchNextShownItems=F.detail.value)};
_.N.getElement=function(F){switch(F){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20407_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$20407_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.Sn.Object.defineProperties(mG.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var F;if((F=this.data)==null||!F.pageVisualEffects)return!1;for(var W=0;W<this.data.pageVisualEffects.length;W++)if(F=_.D(this.data.pageVisualEffects[W],_.AY))return W=void 0,(W=F.config)==null?void 0:W.enableInLightTheme;return!1}}});
mG.prototype.updateMiniplayerIsActiveValue=mG.prototype.updateMiniplayerIsActiveValue;mG.prototype.updateScrollTopValue=mG.prototype.updateScrollTopValue;mG.prototype.updateFullscreenValue=mG.prototype.updateFullscreenValue;mG.prototype.updateTheaterValue=mG.prototype.updateTheaterValue;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],mG.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],mG.prototype,"ytComponentBehavior",void 0);
_.T([_.J(_.hc8.YtdWatchBehavior),_.Y("design:type",Object)],mG.prototype,"ytdWatchBehavior",void 0);_.T([_.J(_.am),_.Y("design:type",Object)],mG.prototype,"ytdReduxBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],mG.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Object)],mG.prototype,"ghostGridRenderer",void 0);_.T([_.O(),_.Y("design:type",Object)],mG.prototype,"playerData",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],mG.prototype,"roundedInfoPanel",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],mG.prototype,"hideOfferModules",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],mG.prototype,"smallerChatMinHeight",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],mG.prototype,"cinematicTheaterMode",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],mG.prototype,"transparentTheaterMode",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],mG.prototype,"darkerPanels",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],mG.prototype,"cinematicFullscreen",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],mG.prototype,"cinematicFullscreenV2",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],mG.prototype,"isDarkTheme",void 0);_.T([_.O({selector:_.H7}),_.Y("design:type",Object)],mG.prototype,"theaterValue",void 0);
_.T([_.O({selector:_.Lw}),_.Y("design:type",Object)],mG.prototype,"fullscreenValue",void 0);_.T([_.O({selector:_.qP}),_.Y("design:type",Object)],mG.prototype,"scrollTopValue",void 0);_.T([_.O({selector:_.Pz}),_.Y("design:type",Object)],mG.prototype,"miniplayerIsActiveValue",void 0);_.T([_.gQ("#ytd-player"),_.Y("design:type",HTMLElement)],mG.prototype,"ytdPlayer",void 0);_.T([_.gQ("#playlist"),_.Y("design:type",HTMLElement)],mG.prototype,"JSC$20407_ytdPlaylistPanelRenderer",void 0);
_.T([_.gQ("#ytd-comments"),_.Y("design:type",HTMLElement)],mG.prototype,"ytdComments",void 0);_.T([_.gQ("#primary"),_.Y("design:type",HTMLElement)],mG.prototype,"primary",void 0);_.T([_.gQ("#secondary"),_.Y("design:type",HTMLElement)],mG.prototype,"secondary",void 0);_.T([_.gQ("#player-container"),_.Y("design:type",HTMLElement)],mG.prototype,"playerContainer",void 0);_.T([_.gQ("#cinematics"),_.Y("design:type",HTMLElement)],mG.prototype,"JSC$20407_cinematics",void 0);
_.T([_.ea("theaterValue"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],mG.prototype,"updateTheaterValue",null);_.T([_.ea("fullscreenValue"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],mG.prototype,"updateFullscreenValue",null);_.T([_.ea("scrollTopValue"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],mG.prototype,"updateScrollTopValue",null);
_.T([_.ea("miniplayerIsActiveValue"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],mG.prototype,"updateMiniplayerIsActiveValue",null);_.T([_.O({reflectToAttribute:!0}),_.a("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],mG.prototype,"cinematicLightTheme",null);
_.r(mG,"ytd-watch-grid",function(){if(N6q===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-grid--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-grid"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-grid">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-grid">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-grid">\n</iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-grid"></div>\n\n<div id="miniplayer-bar" class="style-scope ytd-watch-grid"></div>\n\n<div id="player-full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-grid">\n  <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-grid">\n  </div>\n  <div id="squeezeback-constraining-container" hidden="[[!squeezeback]]" class="style-scope ytd-watch-grid"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-grid"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-grid">\n  <div id="primary" class="style-scope ytd-watch-grid">\n    <div id="primary-inner" class="style-scope ytd-watch-grid">\n      <div id="player" class="style-scope ytd-watch-grid">\n        <div id="cinematics-container" class="style-scope ytd-watch-grid">\n          <div id="cinematics" class="style-scope ytd-watch-grid"></div>\n        </div>\n        <div id="player-container-outer" class="style-scope ytd-watch-grid">\n          <div id="player-container-inner" class="style-scope ytd-watch-grid">\n            <div id="player-container" role="complementary" class="style-scope ytd-watch-grid">\n              <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-grid">\n              </ytd-player>\n            </div>\n          </div>\n        </div>\n        <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-grid">\n        </yt-playability-error-supported-renderers>\n      </div>\n      <div id="below" class="style-scope ytd-watch-grid">\n        <div id="fixed-below" class="style-scope ytd-watch-grid"></div>\n        <div id="bottom-grid" class="style-scope ytd-watch-grid">\n          <ytd-rich-grid-renderer continuation-show-button="[[showRichGridContinuationButton]]" data="[[richGridRendererData]]" disable-upgrade$="[[!richGridRendererData]]" hidden="[[!richGridRendererData]]" hide-chips-bar="" is-watch-default-layout="[[defaultTwoColumnLayout]]" item-max-width="[[richItemMaxWidth]]" item-min-width="[[richItemMinWidth]]" reduced-bottom-margin="" row-reduced-horizontal-margin="" transparent-background-chips-bar="" class="style-scope ytd-watch-grid">\n          </ytd-rich-grid-renderer>\n          <ytd-ghost-grid-renderer data="[[ghostGridRenderer]]" hidden="[[richGridRendererData]]" is-watch-next="" rich-item-min-width="[[richItemMinWidth]]" class="style-scope ytd-watch-grid"></ytd-ghost-grid-renderer>\n        </div>\n      </div>\n    </div>\n  </div>\n  <div id="secondary" class="style-scope ytd-watch-grid">\n    <div id="fixed-secondary" class="style-scope ytd-watch-grid">\n      <div id="panels" class="style-scope ytd-watch-grid">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-grid">\n        </ytd-watch-engagement-panels>\n      </div>\n      <div id="chat-container" class="style-scope ytd-watch-grid">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-grid">\n          <ytd-live-chat-frame id="chat" data="[[conversationBar]]" class="style-scope ytd-watch-grid">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n    </div>\n    <div id="secondary-inner" class="style-scope ytd-watch-grid">\n        <ytd-watch-metadata clarify-box="[[clarifyBox]]" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" hidden="[[!videoPrimaryInfoRenderer]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" player-ads="[[playerAds]]" playlist="[[playlist]]" skinny-mode="[[metadataSkinnyMode]]" swatcheroo-enable-double-metadata="[[swatcherooUseDoubleMetadata]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" class="style-scope ytd-watch-grid">\n        </ytd-watch-metadata>\n        <ytd-ghost-watch-metadata-renderer hidden="[[hasMetadata]]" class="style-scope ytd-watch-grid"></ytd-ghost-watch-metadata-renderer>\n        <div id="inline-panels" class="style-scope ytd-watch-grid"></div>\n        <div id="clarify-box" class="attached-message style-scope ytd-watch-grid"></div>\n        <div id="alerts" class="style-scope ytd-watch-grid"></div>\n        <div id="messages" class="style-scope ytd-watch-grid"></div>\n        <div id="related" class="style-scope ytd-watch-grid">\n          <div id="player-ads" class="style-scope ytd-watch-grid"></div>\n          <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-grid"></div>\n        </div>\n        <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[!playlistPanelExpanded]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" meta-panel="[[swatcherooSplitScroll]]" class="style-scope ytd-watch-grid">\n        </ytd-playlist-panel-renderer>\n        <div id="expandable-metadata" hidden="[[!expandableMetadata]]" class="style-scope ytd-watch-grid"></div>\n        <div class$="[[legacyMetadataClass]] style-scope ytd-watch-grid" hidden="">\n          <div id="info" class="style-scope ytd-watch-grid">\n            <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-grid"></div>\n            <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-grid"></div>\n          </div>\n          <div id="meta" class="style-scope ytd-watch-grid">\n            <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-grid"></div>\n            <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-grid"></div>\n          </div>\n        </div>\n        <div id="limited-state" class="attached-message style-scope ytd-watch-grid"></div>\n      <div id="offer-module" class="style-scope ytd-watch-grid"></div>\n      <div id="donation-shelf" class="style-scope ytd-watch-grid"></div>\n      <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-grid"></div>\n      \n      <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-grid">\n        <ytd-merch-shelf-renderer data="[[merchShelf]]" meta-panel="[[swatcherooSplitScroll]]" skinny-mode="[[isTwoColumns_]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-grid">\n        </ytd-merch-shelf-renderer>\n      </template>\n      <ytd-ghost-comments-renderer hidden="[[comments]]" class="style-scope ytd-watch-grid"></ytd-ghost-comments-renderer>\n      <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat, commentsEntryPointHeaderRenderer)]]" hide-panel-button="[[!defaultTwoColumnLayout]]" is-watch-grid="" class="style-scope ytd-watch-grid">\n      </ytd-comments>\n    </div>\n  </div>\n</div>\n<div id="fixed-columns-secondary" hidden="[[!swatcherooSplitScroll]]" class="style-scope ytd-watch-grid"> </div>\n\n<div id="survey" class="style-scope ytd-watch-grid"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-grid"></div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);N6q=F}F=N6q;return F},{mode:2});_.ZW.registerService(_.Mpn,mG);
_.Hb();
}catch(e){_._DumpException(e)}
try{
_.Xg("CF909");
var dm6;var p0=function(){var F=_.n.apply(this,arguments)||this;F.flexy=!0;F.roundedInfoPanel=!0;F.viewTransitionEnabled=_.c("enable_player_resize_transition");F.smallerChatMinHeight=_.c("live_chat_smaller_min_height");F.cinematicTheaterMode=_.c("web_cinematic_theater_mode");F.transparentTheaterMode=_.c("web_transparent_theater_mode");F.cinematicFullscreen=_.c("web_cinematic_fullscreen");F.useLargerMaxPlayerValue=_.c("kevlar_flexy_use_larger_player_value");F.cinematicFullscreenV2=_.c("web_cinematic_fullscreen_v2");
F.isDarkTheme=document.documentElement.hasAttribute("dark");F.defaultCollapsePlaylist=_.c("web_watch_default_collapse_playlist");F.retroModeReduxValue=!1;return F};
_.k(p0,_.n);_.N=p0.prototype;_.N.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.N.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.N.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.N.updateRetroModeReduxValue=function(){_.c("web_player_rtr_ctrls")&&(this.ytdWatchBehavior.retroMode=this.retroModeReduxValue)};
_.N.ready=function(){var F=this,W=function(){F.onColumnScroll()};
this.primary.addEventListener("scroll",W);this.secondary.addEventListener("scroll",W)};
_.N.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.N.updateIsTwoColumnsFromBinding=function(F){_.c("web_watch_update_narrow_width_killswitch")||_.uC().dispatch(_.ftT(!F.detail.value));this.ytdWatchBehavior.isTwoColumns_=F.detail.value};
_.N.updateFlexySmallWindowFromBinding=function(F){this.ytdWatchBehavior.flexySmallWindow_=F.detail.value};
_.N.updateFlexyLargeWindowFromBinding=function(F){this.ytdWatchBehavior.flexyLargeWindow_=F.detail.value};
_.N.updateWatchWhileWindowSizeSufficientFromBinding=function(F){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=F.detail.value};
_.N.updateWatchNextCanShowMoreFromBinding=function(F){this.ytdWatchBehavior.watchNextCanShowMore=F.detail.value};
_.N.updateShownItemsFromBinding=function(F){F.detail.path?this.set(F.detail.path,F.detail.value):this.ytdWatchBehavior.watchNextShownItems=F.detail.value};
_.N.getElement=function(F){switch(F){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20402_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$20402_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.Sn.Object.defineProperties(p0.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var F;if((F=this.data)==null||!F.pageVisualEffects)return!1;for(var W=0;W<this.data.pageVisualEffects.length;W++)if(F=_.D(this.data.pageVisualEffects[W],_.AY))return W=void 0,(W=F.config)==null?void 0:W.enableInLightTheme;return!1}}});
_.Sn.Object.defineProperties(p0,{template:{configurable:!0,enumerable:!0,get:function(){if(dm6===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-flexy--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-flexy"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-flexy">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-flexy">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-flexy"></iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-flexy"></div>\n\n<div id="miniplayer-bar" class="style-scope ytd-watch-flexy"></div>\n\n<div id="full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-flexy">\n  <div id="player-full-bleed-container" class="style-scope ytd-watch-flexy">\n    <div class="player-container-background style-scope ytd-watch-flexy" hidden="[[!playerContainerBackgroundImage]]">\n      <ytd-thumbnail class="player-container-background-image style-scope ytd-watch-flexy" data="[[playerContainerBackgroundImage]]"></ytd-thumbnail>\n    </div>\n    <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-flexy"></div>\n  </div>\n  <div id="panels-full-bleed-container" class="style-scope ytd-watch-flexy"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-flexy"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-flexy">\n  <div id="primary" class="style-scope ytd-watch-flexy">\n    <div id="primary-inner" class="style-scope ytd-watch-flexy">\n      <div id="player" class="style-scope ytd-watch-flexy">\n        <div id="cinematics-container" class="style-scope ytd-watch-flexy">\n          <div id="cinematics" class="style-scope ytd-watch-flexy"></div>\n        </div>\n        <div id="player-container-outer" class="style-scope ytd-watch-flexy">\n          <div id="player-container-inner" class="style-scope ytd-watch-flexy">\n            <div class="player-container-background style-scope ytd-watch-flexy" hidden="[[!playerContainerBackgroundImage]]">\n              <ytd-thumbnail class="player-container-background-image style-scope ytd-watch-flexy" data="[[playerContainerBackgroundImage]]"></ytd-thumbnail>\n            </div>\n            <div id="player-container" role="complementary" class="style-scope ytd-watch-flexy">\n              <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-flexy">\n              </ytd-player>\n            </div>\n          </div>\n        </div>\n        <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-flexy">\n        </yt-playability-error-supported-renderers>\n      </div>\n      <div id="below" class="style-scope ytd-watch-flexy">\n        <div id="alerts" class="style-scope ytd-watch-flexy"></div>\n        <div id="messages" class="style-scope ytd-watch-flexy"></div>\n        <div id="clarify-box" class="attached-message style-scope ytd-watch-flexy"></div>\n        <div id="limited-state" class="attached-message style-scope ytd-watch-flexy"></div>\n        <ytd-watch-metadata class$="[[newMetadataClass]] style-scope ytd-watch-flexy" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" disable-upgrade$="[[!watchMetadataRefresh]]" hidden="[[!watchMetadataRefresh]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" is-watch-flexy="" merch-shelf="[[merchShelfInSd]]" structured-description-content-renderer="[[inlineStructuredDescriptionData]]" video-id="[[videoId]]" video-metadata-carousel="[[videoMetadataCarousel]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" video-summary="[[expandableMetadata]]">\n        </ytd-watch-metadata>\n        <div class$="[[legacyMetadataClass]] style-scope ytd-watch-flexy">\n          <div id="info" class="style-scope ytd-watch-flexy">\n            <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n            <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy"></div>\n          </div>\n          <div id="meta" class="style-scope ytd-watch-flexy">\n            <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n            <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy"></div>\n          </div>\n        </div>\n        <div id="expandable-metadata" hidden="[[!showExpandableMetadata]]" class="style-scope ytd-watch-flexy"></div>\n        <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-flexy"></div>\n        \n        <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-flexy">\n          <ytd-merch-shelf-renderer data="[[merchShelf]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy">\n          </ytd-merch-shelf-renderer>\n        </template>\n        <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" disable-upgrade$="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" class="style-scope ytd-watch-flexy">\n        </ytd-comments>\n      </div>\n    </div>\n  </div>\n\n  <div id="secondary" class="style-scope ytd-watch-flexy">\n    <div id="secondary-inner" class="style-scope ytd-watch-flexy">\n      <div id="panels" class="style-scope ytd-watch-flexy">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-flexy">\n        </ytd-watch-engagement-panels>\n      </div>\n      <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[defaultCollapsePlaylist]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" class="style-scope ytd-watch-flexy">\n      </ytd-playlist-panel-renderer>\n      <div id="donation-shelf" class="style-scope ytd-watch-flexy"></div>\n      <div id="chat-container" class="style-scope ytd-watch-flexy">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-flexy">\n          <ytd-live-chat-frame id="chat" data="[[data.contents.twoColumnWatchNextResults.conversationBar]]" force-dark-theme="[[forceDarkPanelTheme]]" no-border="[[noBorderOnChat]]" theater-watch-while="[[watchWhilePanelsActive]]" class="style-scope ytd-watch-flexy">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n      <div id="related" class="style-scope ytd-watch-flexy">\n        <div id="player-ads" class="style-scope ytd-watch-flexy"></div>\n        <ytd-watch-next-secondary-results-renderer can-show-more="[[watchNextCanShowMore]]" data="[[watchNextSecondaryResults]]" disable-upgrade$="[[!watchNextSecondaryResults]]" hidden="[[!watchNextSecondaryResults]]" is-two-columns="[[isTwoColumns_]]" player-data="[[playerData]]" show-more-button="[[!isTwoColumns_]]" shown-items="[[watchNextShownItems]]" on-can-show-more-changed="updateWatchNextCanShowMoreFromBinding" on-shown-items-changed="updateShownItemsFromBinding" class="style-scope ytd-watch-flexy">\n        </ytd-watch-next-secondary-results-renderer>\n        <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n      </div>\n    </div>\n  </div>\n</div>\n\n<div id="survey" class="style-scope ytd-watch-flexy"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-flexy"></div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);dm6=F}F=dm6;return F}}});
p0.prototype.updateRetroModeReduxValue=p0.prototype.updateRetroModeReduxValue;p0.prototype.updateScrollTopValue=p0.prototype.updateScrollTopValue;p0.prototype.updateFullscreenValue=p0.prototype.updateFullscreenValue;p0.prototype.updateTheaterValue=p0.prototype.updateTheaterValue;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],p0.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],p0.prototype,"ytComponentBehavior",void 0);
_.T([_.J(_.hc8.YtdWatchBehavior),_.Y("design:type",Object)],p0.prototype,"ytdWatchBehavior",void 0);_.T([_.J(_.am),_.Y("design:type",Object)],p0.prototype,"ytdReduxBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],p0.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Object)],p0.prototype,"playerData",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],p0.prototype,"flexy",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],p0.prototype,"roundedInfoPanel",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],p0.prototype,"viewTransitionEnabled",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],p0.prototype,"smallerChatMinHeight",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],p0.prototype,"cinematicTheaterMode",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],p0.prototype,"transparentTheaterMode",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],p0.prototype,"cinematicFullscreen",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],p0.prototype,"useLargerMaxPlayerValue",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],p0.prototype,"cinematicFullscreenV2",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],p0.prototype,"isDarkTheme",void 0);_.T([_.O(),_.Y("design:type",Object)],p0.prototype,"defaultCollapsePlaylist",void 0);_.T([_.O({selector:_.H7}),_.Y("design:type",Object)],p0.prototype,"theaterValue",void 0);_.T([_.O({selector:_.Lw}),_.Y("design:type",Object)],p0.prototype,"fullscreenValue",void 0);_.T([_.O({selector:_.qP}),_.Y("design:type",Object)],p0.prototype,"scrollTopValue",void 0);
_.T([_.O({selector:_.Pz}),_.Y("design:type",Object)],p0.prototype,"miniplayerIsActive",void 0);_.T([_.O({selector:function(F){return F.watch.isWatchRetroMode}}),
_.Y("design:type",Object)],p0.prototype,"retroModeReduxValue",void 0);_.T([_.KA("ytd-player"),_.Y("design:type",HTMLElement)],p0.prototype,"ytdPlayer",void 0);_.T([_.gQ("#playlist"),_.Y("design:type",HTMLElement)],p0.prototype,"JSC$20402_ytdPlaylistPanelRenderer",void 0);_.T([_.KA("ytd-comments"),_.Y("design:type",HTMLElement)],p0.prototype,"ytdComments",void 0);_.T([_.gQ("#primary"),_.Y("design:type",HTMLElement)],p0.prototype,"primary",void 0);
_.T([_.gQ("#secondary"),_.Y("design:type",HTMLElement)],p0.prototype,"secondary",void 0);_.T([_.gQ("#player-container"),_.Y("design:type",HTMLElement)],p0.prototype,"playerContainer",void 0);_.T([_.gQ("#cinematics"),_.Y("design:type",HTMLElement)],p0.prototype,"JSC$20402_cinematics",void 0);_.T([_.ea("theaterValue"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],p0.prototype,"updateTheaterValue",null);
_.T([_.ea("fullscreenValue"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],p0.prototype,"updateFullscreenValue",null);_.T([_.ea("scrollTopValue"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],p0.prototype,"updateScrollTopValue",null);_.T([_.ea("retroModeReduxValue"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],p0.prototype,"updateRetroModeReduxValue",null);
_.T([_.O({reflectToAttribute:!0}),_.a("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],p0.prototype,"cinematicLightTheme",null);p0=_.T([_.y({is:"ytd-watch-flexy"})],p0);_.ZW.registerService(_.een,p0);
_.Hb();
}catch(e){_._DumpException(e)}
try{
_.Xg("nmfa2d");
var vlw;var jI=function(){var F=_.n.apply(this,arguments)||this;F.hidden=!1;F.errorScreen=null;F.playlistData={};return F};
_.k(jI,_.n);_.N=jI.prototype;_.N.getPlayer=function(){return this.ytdPlayer};
_.N.configureRendererStamper=function(){return{singleColumnContents:{id:"single-column",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}},alerts:{id:"alerts",mapping:{alertRenderer:"yt-alert-renderer",alertWithButtonRenderer:"ytd-alert-with-button-renderer"}},clarificationData:{id:"clarify-box",mapping:{clarificationRenderer:"ytd-clarification-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",infoPanelContentRenderer:"ytd-info-panel-content-renderer",emergencyOneboxRenderer:{component:"ytd-emergency-onebox-renderer",
attributes:{"class":"watch"}}}},donationShelf:{id:"donation-shelf",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",properties:{isCollapsed:"[[hasChat]]"}},donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"}}},limitedState:{id:"limited-state",mapping:{limitedStateMessageRenderer:"ytd-limited-state-message-renderer"}},richMetadataRowContainer:{id:"rich-metadata",mapping:{metadataRowContainerRenderer:{component:"ytd-metadata-row-container-renderer",params:{fixie:!0}}}},
ticketShelf:{id:"ticket-shelf",mapping:{ticketShelfRenderer:"ytd-ticket-shelf-renderer"}},"playerData.playerAds":{id:"player-ads",mapping:{playerLegacyDesktopWatchAdsRenderer:"ytd-player-legacy-desktop-watch-ads-renderer"},initialRenderPriority:3,waitForSignal:_.OE(["aa","eocs"])}}};
_.N.onActiveChanged=function(){_.uC().dispatch(_.MTK(this.ytPageBehavior.active))};
_.N.playerDataChanged=function(){var F;(F=this.watchController)==null||F.setPlayerResponse(this.playerData)};
_.N.dataChanged=function(){var F;(F=this.watchController)==null||F.setWatchNextResponse(this.data)};
_.N.sizeChanged=function(){var F,W;(W=(F=this.metadata).resize)==null||W.call(F)};
_.N.attached=function(){this.watchController=new _.n0(this);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data)};
_.N.detached=function(){_.u5(this.watchController);this.watchController=void 0};
_.N.getPlayerContainer=function(){return this.playerContainer};
_.N.getElement=function(F){switch(F){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20354_playlistPanel}};
_.N.provideRenderingData=function(F,W){switch(F){case "SINGLE_COLUMN_CONTENTS":this.singleColumnContents=W;break;case "ERROR_SCREEN":this.errorScreen=W!=null?W:null;break;case "PRIMARY_INFO":this.videoPrimaryInfoRenderer=W;break;case "SECONDARY_INFO":this.videoSecondaryInfoRenderer=W;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRenderer=W;break;case "RICH_METADATA":this.richMetadataRowContainer=W;break;case "CLARIFICATION":this.clarificationData=W;break;case "PLAYLIST":this.playlistData=
W!=null?W:{};break;case "MERCH_SHELF":this.merchShelf=W;break;case "TICKET_SHELF":this.ticketShelf=W;break;case "LIMITED_STATE":this.limitedState=W;break;case "DONATION_SHELF":this.donationShelf=W;break;case "ALERTS":this.alerts=W}};
_.Sn.Object.defineProperties(jI.prototype,{hasPlaylistData:{configurable:!0,enumerable:!0,get:function(){return this.playlistData&&!!Object.keys(this.playlistData).length}},
hasChat:{configurable:!0,enumerable:!0,get:function(){var F,W,E;return!this.hidden&&!!((F=this.data)==null?0:(W=F.contents)==null?0:(E=W.twoColumnWatchNextResults)==null?0:E.conversationBar)}}});
jI.prototype.sizeChanged=jI.prototype.sizeChanged;jI.prototype.dataChanged=jI.prototype.dataChanged;jI.prototype.playerDataChanged=jI.prototype.playerDataChanged;jI.prototype.onActiveChanged=jI.prototype.onActiveChanged;_.T([_.J(_.$v.YtPageBehavior),_.Y("design:type",Object)],jI.prototype,"ytPageBehavior",void 0);_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],jI.prototype,"ytComponentBehavior",void 0);
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],jI.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],jI.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.am),_.Y("design:type",Object)],jI.prototype,"ytdReduxBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],jI.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Object)],jI.prototype,"playerData",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],jI.prototype,"hidden",void 0);_.T([_.gQ("#ytd-player"),_.Y("design:type",HTMLElement)],jI.prototype,"ytdPlayer",void 0);_.T([_.gQ("#player-container"),_.Y("design:type",HTMLElement)],jI.prototype,"playerContainer",void 0);_.T([_.gQ("#metadata"),_.Y("design:type",Object)],jI.prototype,"metadata",void 0);_.T([_.gQ("#playlist"),_.Y("design:type",HTMLElement)],jI.prototype,"JSC$20354_playlistPanel",void 0);
_.T([_.O({selector:_.TiK,reflectToAttribute:!0}),_.Y("design:type",Object)],jI.prototype,"fixie",void 0);_.T([_.O({selector:_.r6q,reflectToAttribute:!0}),_.Y("design:type",Object)],jI.prototype,"singleColumn",void 0);_.T([_.O({selector:function(F){return _.H7(F)&&!_.Lw(F)},
reflectToAttribute:!0}),_.Y("design:type",Object)],jI.prototype,"theater",void 0);_.T([_.O({selector:_.Lw,reflectToAttribute:!0}),_.Y("design:type",Object)],jI.prototype,"fullscreen",void 0);_.T([_.O({selector:_.edg}),_.Y("design:type",Object)],jI.prototype,"windowSize",void 0);_.T([_.O(),_.Y("design:type",Object)],jI.prototype,"singleColumnContents",void 0);_.T([_.O(),_.Y("design:type",Object)],jI.prototype,"errorScreen",void 0);_.T([_.O(),_.Y("design:type",Object)],jI.prototype,"playlistData",void 0);
_.T([_.O(),_.Y("design:type",Object)],jI.prototype,"videoPrimaryInfoRenderer",void 0);_.T([_.O(),_.Y("design:type",Object)],jI.prototype,"videoSecondaryInfoRenderer",void 0);_.T([_.O(),_.Y("design:type",Object)],jI.prototype,"richMetadataRowContainer",void 0);_.T([_.O(),_.Y("design:type",Object)],jI.prototype,"clarificationData",void 0);_.T([_.O(),_.Y("design:type",Object)],jI.prototype,"commentsEntryPointHeaderRenderer",void 0);_.T([_.O(),_.Y("design:type",Object)],jI.prototype,"ticketShelf",void 0);
_.T([_.O(),_.Y("design:type",Object)],jI.prototype,"merchShelf",void 0);_.T([_.O(),_.Y("design:type",Object)],jI.prototype,"donationShelf",void 0);_.T([_.O(),_.Y("design:type",Object)],jI.prototype,"limitedState",void 0);_.T([_.O(),_.Y("design:type",Object)],jI.prototype,"alerts",void 0);_.T([_.a("playlistData"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],jI.prototype,"hasPlaylistData",null);
_.T([_.a("data","hidden"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],jI.prototype,"hasChat",null);_.T([_.ea("active"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],jI.prototype,"onActiveChanged",null);_.T([_.ea("playerData"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],jI.prototype,"playerDataChanged",null);
_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],jI.prototype,"dataChanged",null);_.T([_.ea("windowSize","singleColumn"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],jI.prototype,"sizeChanged",null);
_.r(jI,"ytd-watch-fixie",function(){if(vlw===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-fixie--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="single-column" hidden="[[!singleColumnContents]]" class="style-scope ytd-watch-fixie"></div>\n\n<div id="fixed-layer" hidden="[[singleColumnContents]]" class="style-scope ytd-watch-fixie">\n  <div id="primary" class="style-scope ytd-watch-fixie">\n    <div id="player" class="style-scope ytd-watch-fixie">\n      <div id="player-container" class="style-scope ytd-watch-fixie">\n        <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-fixie">\n        </ytd-player>\n      </div>\n      <yt-playability-error-supported-renderers id="error-screen" data="[[errorScreen]]" disable-upgrade$="[[!errorScreen]]" hidden$="[[!errorScreen]]" class="style-scope ytd-watch-fixie">\n      </yt-playability-error-supported-renderers>\n    </div>\n    <div id="alerts" class="style-scope ytd-watch-fixie"></div>\n    <ytd-watch-metadata id="metadata" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" suppress-top-level-metadata-rows="" video-id="[[data.currentVideoEndpoint.watchEndpoint.videoId]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer.videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer.videoSecondaryInfoRenderer]]" class="style-scope ytd-watch-fixie">\n    </ytd-watch-metadata>\n  </div>\n</div>\n\n<div id="static-layer" hidden="[[singleColumnContents]]" class="style-scope ytd-watch-fixie">\n  <div id="secondary" class="style-scope ytd-watch-fixie">\n    <div id="clarify-box" class="feed-item style-scope ytd-watch-fixie"></div>\n    <div id="limited-state" class="feed-item style-scope ytd-watch-fixie"></div>\n    \n    <template is="dom-if" if="[[merchShelf.merchandiseShelfRenderer]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-fixie">\n      <ytd-merch-shelf-renderer class="feed-item style-scope ytd-watch-fixie" data="[[merchShelf.merchandiseShelfRenderer]]" watch-metadata-refresh="">\n      </ytd-merch-shelf-renderer>\n    </template>\n    \n    <div id="ticket-shelf" class="feed-item style-scope ytd-watch-fixie" hidden=""></div>\n    <ytd-watch-engagement-panels data="[[data.engagementPanels]]" class="style-scope ytd-watch-fixie"></ytd-watch-engagement-panels>\n    \n    <template is="dom-if" if="[[hasChat]]" restamp="" class="style-scope ytd-watch-fixie">\n      <ytd-live-chat-frame id="chat" class="feed-item style-scope ytd-watch-fixie" data="[[data.contents.twoColumnWatchNextResults.conversationBar]]">\n      </ytd-live-chat-frame>\n    </template>\n    <div id="donation-shelf" class="feed-item style-scope ytd-watch-fixie"></div>\n    <ytd-playlist-panel-renderer id="playlist" class="feed-item style-scope ytd-watch-fixie" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" data="[[playlistData]]" disable-upgrade$="[[!hasPlaylistData]]" hidden="[[!hasPlaylistData]]" js-panel-height="">\n    </ytd-playlist-panel-renderer>\n    <div id="rich-metadata" class="feed-item style-scope ytd-watch-fixie"></div>\n    <div id="player-ads" class="style-scope ytd-watch-fixie"></div>\n    <ytd-watch-next-secondary-results-renderer data="[[data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults]]" disable-upgrade$="[[!data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults]]" hidden="[[!data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults]]" player-data="[[playerData]]" class="style-scope ytd-watch-fixie">\n    </ytd-watch-next-secondary-results-renderer>\n  </div>\n</div>\n\n\n\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);vlw=F}F=vlw;return F},{mode:1});_.ZW.registerService(_.Ree,jI);
_.Hb();
}catch(e){_._DumpException(e)}
try{
_.Xg("xwEKAe");
var TOq=function(F){var W=_.Ij();if(W.getFlag(202))W=W.getFlag(201);else{var E;W=(F==null?void 0:(E=F.config)==null?void 0:E.settingOnByDefault)!==void 0?F.config.settingOnByDefault:!_.c("web_shorts_cinematics_disabled_by_default")}return W},oHT=function(F){var W=_.Ij();
_.c5(0,201,F);_.c5(0,202,!0);W.save()},Gv$=function(F){return(F=_.ceR(F))?_.x7b(F):0},YHF=function(F){return F.shorts.isSmallScreenSqueezeback},wL$=function(F){return F.shorts.isPlaybackStarted},uKP=function(F,W,E,h){F=W-F;
E=h-E;return Math.sqrt(F*F+E*E)},SHF=function(F,W){F&&_.WZ().resolve(_.EJ).resolveCommand(F,{forceClickLogging:!0,
form:{element:W}})},pLx=function(F){F.unsubscribeFromStore=_.kQ(F.storeWithShorts,_.nCq,function(W){F.initOrDisposeActiveModules(W);
!W&&F.storeWithShorts.getState().shorts.isFullscreen&&(_.Fj(document.documentElement),F.storeWithShorts.dispatch(_.iUN(!1)))});
F.initOrDisposeActiveModules(_.nCq(F.storeWithShorts.getState()))},mLK=function(F){var W=_.WZ().resolve(_.Uk);
W.rootElement=F;pLx(W)},Kwq=function(){return _.WZ().resolve(_.Uk).dismissedIndices},FWT=function(F){return _.dR({type:"SET_IS_WATCH_WHILE_MODE",
payload:{isWatchWhileMode:F}})},WWw=function(F){return _.dR({type:"SET_IS_SMALL_SCREEN_SQUEEZEBACK",
payload:{isSmallScreenSqueezeback:F}})},V5=function(F){return _.dR({type:"SET_IS_PLAYBACK_STARTED",
payload:{isPlaybackStarted:F}})},Ur=function(F,W){if(F instanceof Ur)this.array_=F.array_;
else{var E;if(E=_.Ee(F))a:{for(var h=E=0;h<F.length;h++){if(!_.Ee(F[h])||E>0&&F[h].length!=E){E=!1;break a}for(var d=0;d<F[h].length;d++)if(typeof F[h][d]!=="number"){E=!1;break a}E==0&&(E=F[h].length)}E=E!=0}if(E)this.array_=_.Kb(F);else if(F instanceof _.Rl)this.array_=EnK(F.height,F.width);else if(typeof F==="number"&&typeof W==="number"&&F>0&&W>0)this.array_=EnK(F,W);else throw Error("Yl");}this.size_=new _.Rl(this.array_[0].length,this.array_.length)},hbx=function(F,W,E){for(var h=0;h<F.getSize().height;h++)for(var d=
0;d<F.getSize().width;d++)W.call(E,F.array_[h][d],h,d,F)},dA6=function(F,W){var E=new Ur(F.getSize());
hbx(F,function(h,d,V){E.array_[d][V]=W.call(void 0,h,d,V,F)});
return E},EnK=function(F,W){for(var E=[],h=0;h<F;h++){E[h]=[];
for(var d=0;d<W;d++)E[h][d]=0}return E};
Ur.prototype.add=function(F){if(!_.BOw(this.size_,F.getSize()))throw Error("Zl");return dA6(this,function(W,E,h){return W+F.array_[E][h]})};
Ur.prototype.equals=function(F,W){if(this.size_.width!=F.size_.width||this.size_.height!=F.size_.height)return!1;W=W||0;for(var E=0;E<this.size_.height;E++)for(var h=0;h<this.size_.width;h++)if(!_.Chu(this.array_[E][h],F.array_[E][h],W))return!1;return!0};
Ur.prototype.getSize=function(){return this.size_};
var RE=function(F,W,E){return W>=0&&W<F.size_.height&&E>=0&&E<F.size_.width?F.array_[W][E]:null};
Ur.prototype.isSquare=function(){return this.size_.width==this.size_.height};
var Nig=function(F,W,E,h){if(!(W>=0&&W<F.size_.height&&E>=0&&E<F.size_.width))throw Error("$l`"+W+"`"+E+"`"+F.size_.height+"`"+F.size_.width);F.array_[W][E]=h};
Ur.prototype.multiply=function(F){if(F instanceof Ur){if(this.size_.width!=F.getSize().height)throw Error("am");return V0$(this,F)}if(typeof F==="number")return UA6(this,F);throw Error("bm");};
var V0$=function(F,W){var E=new Ur(F.size_.height,W.getSize().width);hbx(E,function(h,d,V){for(var R=h=0;R<this.size_.width;R++)h+=RE(this,d,R)*RE(W,R,V);Nig(E,d,V,h)},F);
return E},UA6=function(F,W){return dA6(F,function(E){return E*W})};var RbK=new _.S("inlineSurveyRenderer");var ebw=new _.S("interstitialViewModel");var M0u=new _.S("reelNavigateCommand");var gnT=new _.S("reelNonVideoContentDismissalCommand");var Qfu=new _.S("showReelsCommentsOverlayCommand");var zbw=new _.S("shortsSuggestedActionViewModel");var t0g=new _.S("videoInteractionPopUpRenderer");var CX6;var Biw;var vn6;var eT=function(){var F=_.n.apply(this,arguments)||this;F.ctaVisualElement=null;F.currentCsn=null;return F};
_.k(eT,_.n);_.N=eT.prototype;_.N.onDataChanged=function(){this.maybeLogShows()};
_.N.computeButtonShape=function(){var F=this;if(this.data)return{buttonText:_.Yr(this.data.text),state:"active",onTap:function(){F.onTap()},
iconPosition:"leading",style:"overlay-dark",type:"tonal",size:"M"}};
_.N.maybeCreateCtaVe=function(){var F;if((F=this.data)!=null&&F.badgeInteractionLogging){var W;if(F=(W=this.data.badgeInteractionLogging)==null?void 0:W.trackingParams)this.ctaVisualElement=_.ve(F)}};
_.N.maybeLogClicks=function(){this.currentCsn=_.JR(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.oj(this.currentCsn,this.ctaVisualElement)};
_.N.maybeLogShows=function(){this.currentCsn=_.JR(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.rW(this.currentCsn,[this.ctaVisualElement])};
_.N.onTap=function(){var F;if((F=this.data)!=null&&F.onClickCommand){var W;this.ytComponentBehavior.resolveCommand((W=this.data)==null?void 0:W.onClickCommand);this.maybeLogClicks()}};
eT.prototype.onDataChanged=eT.prototype.onDataChanged;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],eT.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],eT.prototype,"ytComponentBehavior",void 0);_.T([_.O({}),_.Y("design:type",Object)],eT.prototype,"data",void 0);_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],eT.prototype,"onDataChanged",null);
eT=_.T([_.y({disableElementRegistration:!0,is:"ytd-shopping-overlay-badge-renderer"})],eT);
_.r(eT,"ytd-shopping-overlay-badge-renderer",function(){if(vn6!==void 0)return vn6;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shopping-overlay-badge-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-button-shape data="[[computeButtonShape(data)]]" icon-name="bag" class="style-scope ytd-shopping-overlay-badge-renderer">\n</yt-button-shape>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return vn6=F},{mode:1});_.pK(_.tH6,"reel-sound-metadata-view-model",{props:{data:_.Si,overlayDensity:_.Si}});_.pK(_.Ew8,"player-disclosure-view-model",{props:{data:_.TS}});_.pK(_.O5T,"pivot-button-view-model",{props:{data:_.Si,className:_.Si}});_.pK(_.b5T,"reel-action-bar-view-model",{props:{data:_.TS,buttonShapeOverrideables:_.TS}});_.pK(_.GK(function(F){function W(){var nb,bo,uo,b_,BO=(bo=_.D((nb=w())==null?void 0:nb.command,_.CjB))==null?void 0:(uo=bo.item)==null?void 0:(b_=uo.notificationTextRenderer)==null?void 0:b_.successResponseText;if(BO)_.dW(h.value,"yt-open-popup-action",[_.pV(BO),h.value]);else if(G())SHF(G(),A.value);else{var dc;SHF((dc=w())==null?void 0:dc.command,A.value);document.dispatchEvent(new CustomEvent("yt-shorts-reset"))}}
var E=F.data;var h=_.uf();F=_.U(_.g$("0px",void 0,"O1N7Ce"));var d=F.next().value,V=F.next().value;F=_.U(_.g$("0px",void 0,"tTDBdb"));var R=F.next().value,M=F.next().value;F=_.U(_.g$(0,void 0,"fh8Zkc"));var g=F.next().value,t=F.next().value;F=_.U(_.g$(0,void 0,"CUjqGd"));var C=F.next().value,B=F.next().value,I=function(){var nb;if(((nb=_.Qa())==null?void 0:nb.getPlayerState())!==-1){h.value.style.display="inherit";var bo;(bo=_.Qa())==null||bo.removeEventListener("onStateChange",I)}x()},x=function(){var nb=
document.querySelector("video");
if(nb){t(nb.getBoundingClientRect().width);B(nb.getBoundingClientRect().height);var bo;V((nb==null?void 0:(bo=nb.style)==null?void 0:bo.left)||"0px");var uo;M((nb==null?void 0:(uo=nb.style)==null?void 0:uo.top)||"0px")}};
_.q6(function(){var nb,bo,uo;if(((nb=_.Qa())==null?void 0:nb.getPlayerState())===-1&&Math.round(((uo=(bo=_.Qa())==null?void 0:bo.getVideoAspectRatio())!=null?uo:0)*100)!==Math.round(g()/C()*100)){h.value.style.display="none";var b_,BO;B(g()/((BO=(b_=_.Qa())==null?void 0:b_.getVideoAspectRatio())!=null?BO:1))}},"VB5m5");
_.$F(function(){var nb;(nb=_.Qa())==null||nb.addEventListener("onStateChange",I);window.addEventListener("resize",x);x();var bo,uo,b_;if((b_=(bo=E())==null?void 0:(uo=bo.regions)==null?void 0:uo[0])==null||!b_.transformationMatrix)throw Error("fm");var BO;if((BO=E())==null?0:BO.trackingParams){var dc;_.z4().graftServerVe((dc=E().trackingParams)!=null?dc:"")}_.$p(function(){var VM;(VM=_.Qa())==null||VM.removeEventListener("onStateChange",I);window.removeEventListener("resize",x)})});
var A=_.uf(),X=_.U(_.g$(!1,void 0,"TPsTce"));F=X.next().value;var P=X.next().value,b=_.U(_.g$(!1,void 0,"Uz6CHf"));X=b.next().value;var l=b.next().value,w=function(){var nb;return _.D((nb=E())==null?void 0:nb.popUp,t0g)},G=function(){var nb;
return(nb=E())==null?void 0:nb.command},hr=function(){return _.D(G(),_.s8)!==void 0};
b=_.tb(function(){hr()&&P(!0);l(!0);return!1});
var p=_.tb(function(){P(!1);l(!1);return!1}),UY=_.tb(function(){hr()&&P(!0);
return!1}),xW=_.tb(function(){hr()&&P(!1);
return!1}),qw=_.tb(function(){W();
return!1}),Lb=_.tb(function(nb){nb.key==="Enter"&&W();
return!1}),jk={},Jr={};
return _.z("yt-player-overlay-video-interactions",{el:h},_.z("svg",{"on:mouseover":b,"on:mouseout":p,"on:keydown":Lb,"on:focus":UY,"on:blur":xW,el:A,tabindex:0,"aria-label":function(){var nb;return(nb=E())==null?void 0:nb.a11yString},
id:"player-overlay-video-interaction-svg",class:_.ec("yt-player-overlay-video-interactions__interactions-svg",(jk["yt-player-overlay-video-interactions__interactions-svg-hover"]=F,jk),(Jr["yt-player-overlay-video-interactions__interactions-svg-hide-outline"]=X,Jr)),role:"button",style:function(){var nb,bo,uo,b_=(uo=(nb=E())==null?void 0:(bo=nb.regions)==null?void 0:bo[0].transformationMatrix)!=null?uo:[];nb=g();bo=C();uo=[];for(var BO=0,dc=-1;BO<b_.length;BO++)BO%3===0&&(dc++,uo[dc]=[]),uo[dc].push(b_[BO]);
b_=new Ur(uo);uo=new Ur([[0,1,1,0],[0,0,1,1],[1,1,1,1]]);uo=b_.multiply(uo);b_=new Ur([[0,0],[0,0],[0,0],[0,0]]);for(BO=0;BO<uo.getSize().width;BO++){dc=RE(uo,0,BO);var VM=RE(uo,1,BO);if(dc===null||VM===null)throw Error("em`"+(BO+1).toString());Nig(b_,BO,0,dc*nb);Nig(b_,BO,1,VM*bo)}nb=RE(b_,0,0);BO=RE(b_,1,0);bo=RE(b_,0,1);dc=RE(b_,1,1);if(nb===null||BO===null||bo===null||dc===null)throw Error("cm");uo=uKP(nb,BO,bo,dc);VM=RE(b_,3,0);b_=RE(b_,3,1);if(VM===null||b_===null)throw Error("dm");b_=uKP(nb,
VM,bo,b_);dc=(Number((dc*-1).toFixed(2))-Number((bo*-1).toFixed(2)))/(Number(BO.toFixed(2))-Number(nb.toFixed(2)));VM=Math.atan(dc)*180/Math.PI;BO=dc===Number.POSITIVE_INFINITY?-90:dc===Number.NEGATIVE_INFINITY?90:Object.is(dc,-0)?180:dc===0?0:dc>0?VM*-1:nb<BO?VM*-1:Math.abs(VM)+180;return"left:calc("+nb+"px + "+d()+"); top:calc("+(bo+"px + "+R()+"); width:")+(uo+"px; height:")+(b_+"px; transform:rotate(")+(BO+"deg);")},
"on:click":qw}))},"Ai"),"yt-player-overlay-video-interactions",{props:{data:_.TS}});_.pK(_.Uiq,"yt-reel-metapanel-view-model",{props:{data:_.TS,overlayDensity:_.TS}});var MP=function(){var F=_.n.apply(this,arguments)||this;F.showScrubber=!1;F.isWatchWhileMode=!1;F.enableAnchoredPanel=_.c("desktop_shorts_v2_anchored_panel");F.anchoredPanelActive=!1;F.enableLivingroomLayout=_.c("reels_enable_livingroom_layout");F.enablePlayerMetadataContainer=_.c("reels_web_enable_metadata_container");F.enableSqueezebackPanels=_.c("web_shorts_enable_squeezeback_panels");F.isSqueezebackActive=!1;F.smallScreenSqueezeback=!1;F.isPlayerStarted=!1;F.overlayDensity=0;F.isOverlay=!1;F.isImmersive=
!1;F.isImmersiveHorizontal=!1;F.isFullscreen=!1;F.onWindowResized=function(){var W;F.set("isImmersive",((W=window.getComputedStyle(F.hostElement))==null?void 0:W.getPropertyValue("--immersive-mode-on"))==="1");F.set("isImmersiveHorizontal",F.isImmersive&&F.enableLivingroomLayout&&!F.isWatchWhileMode)};
return F};
_.k(MP,_.n);_.N=MP.prototype;_.N.updateIsOverlay=function(F){this.isOverlay=F.detail.value};
_.N.computeIsShortsOverlay=function(){this.enableLivingroomLayout&&(this.isWatchWhileMode?(this.isImmersiveHorizontal=!1,this.isOverlay=!0):(!this.isOverlay&&this.isImmersive&&(this.isImmersiveHorizontal=!0),this.isOverlay=!1));if(_.c("web_enable_flexible_overlay")||_.c("web_enable_format_first")||_.c("web_enable_format_first_organic_only"))this.isOverlay=this.overlayDensity===2;return this.isWatchWhileMode&&!this.enableAnchoredPanel&&!this.enableLivingroomLayout||this.isOverlay};
_.N.computeIsShortsImmersive=function(){return!this.isWatchWhileMode&&this.isImmersive&&!this.anchoredPanelActive};
_.N.onIsActiveChanged=function(){this.isActive||this.setEmptyOverlayMetadata()};
_.N.computeActionBarButtonOverride=function(){return{style:this.isOverlay||this.isWatchWhileMode&&!this.enableAnchoredPanel?"overlay-dark":"mono",iconPosition:"icon-with-label",size:"L"}};
_.N.computeButtonOverride=function(){return{style:this.isOverlay||this.isWatchWhileMode&&!this.enableAnchoredPanel?"overlay-dark":"mono",type:"tonal",iconPosition:"icon-with-label",size:"L"}};
_.N.attached=function(){window.addEventListener("resize",this.onWindowResized);this.onWindowResized()};
_.N.detached=function(){window.removeEventListener("resize",this.onWindowResized)};
_.N.ready=function(){this.get("data.likeButton")||this.get("data.viewCommentsButton")||this.get("data.shareButton")||this.get("data.remixButton")||this.get("data.menu")||this.get("data.subscribeButtonRenderer")||this.setFakeLoadingButtons();this.hostElement.style.setProperty("--metadata-justify-content",_.N0("reels_metadata_justified_content")||"flex-start");this.hostElement.style.setProperty("--action-justify-content",_.N0("reels_action_justified_content")||"flex-start")};
_.N.configureRendererStamper=function(){return{"data.pivotButton":{id:"pivot-button",mapping:{pivotButtonViewModel:{component:"pivot-button-view-model",params:{className:"ytd-reel-player-overlay-renderer"}}},renderPriority:0},"data.badge":{id:"badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}},renderPriority:0},"data.disclosure":{id:"disclosure",mapping:{playerDisclosureViewModel:{component:"player-disclosure-view-model"}},
renderPriority:0},"data.infoPanel":{id:"info-panel",mapping:{infoPanelContainerRenderer:{component:"ytd-info-panel-container-renderer",params:{roundedContainer:!1}}},renderPriority:0}}};
_.N.setFakeLoadingButtons=function(){this.set("data.likeButton",{likeButtonRenderer:{likesAllowed:!0,likeStatus:"INDIFFERENT",likeCountText:{simpleText:_.CY("LIKE_LABEL",void 0,"Like")},dislikeCountText:{simpleText:_.CY("DISLIKE_LABEL",void 0,"Dislike")}}});this.set("data.viewCommentsButton",{buttonRenderer:{icon:{iconType:"SHORTS_COMMENT"},text:{simpleText:_.CY("COMMENT_LABEL",void 0,"Comment")}}});this.set("data.shareButton",{buttonRenderer:{icon:{iconType:"SHORTS_SHARE"},text:{simpleText:_.CY("SHARE_LABEL",
void 0,"Share")}}});_.c("web_enable_shorts_remix_handoff_ep")&&this.set("data.remixButton",{buttonRenderer:{icon:{iconType:"REMIX_FILLED"},text:{simpleText:_.CY("REMIX_LABEL",void 0,"Remix")}}});this.set("data.menu",{menuRenderer:{items:[{menuServiceItemRenderer:{}}]}});this.set("data.pivotButton",{pivotButtonViewModel:{backgroundColor:"THEME_ATTRIBUTE_OVERLAY_BACKGROUND_MEDIUM",icon:{iconType:"WAVEFORM"}}});this.setEmptyOverlayMetadata()};
_.N.setEmptyOverlayMetadata=function(){_.c("web_shorts_deflate_inactive_slides")&&(this.set("data.multiFormatLink",{reelMultiFormatLinkViewModel:void 0}),this.set("data.multimixAttributionLabel",void 0),this.set("data.suggestedAction",{shoppingOverlayRenderer:void 0,shortsSuggestedActionRenderer:void 0}),this.set("data.soundMetadata",{reelSoundMetadataViewModel:void 0}))};
_.Sn.Object.defineProperties(MP.prototype,{hasInfoPanel:{configurable:!0,enumerable:!0,get:function(){var F;return!((F=this.data)==null||!F.infoPanel)}}});
MP.prototype.onIsActiveChanged=MP.prototype.onIsActiveChanged;_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],MP.prototype,"ytComponentBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],MP.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.am),_.Y("design:type",Object)],MP.prototype,"ytdReduxBehavior",void 0);_.T([_.J(_.y_.YtdGuideStateAwareBehavior),_.Y("design:type",Object)],MP.prototype,"ytdGuideStateAwareBehavior",void 0);
_.T([_.O(),_.Y("design:type",Object)],MP.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Boolean)],MP.prototype,"isActive",void 0);_.T([_.O({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],MP.prototype,"hidden",void 0);_.T([_.O({value:!0}),_.Y("design:type",Boolean)],MP.prototype,"useShortsIcon",void 0);_.T([_.O({value:"left"}),_.Y("design:type",String)],MP.prototype,"buttonTooltipPosition",void 0);
_.T([_.O({value:_.c("reels_enable_livingroom_layout")?"top":"left"}),_.Y("design:type",String)],MP.prototype,"likeButtonTooltipPosition",void 0);_.T([_.O({value:"none"}),_.Y("design:type",String)],MP.prototype,"textTransform",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],MP.prototype,"showScrubber",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],MP.prototype,"isWatchWhileMode",void 0);
_.T([_.O({reflectToAttribute:!0}),_.a("data.infoPanel"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],MP.prototype,"hasInfoPanel",null);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],MP.prototype,"enableAnchoredPanel",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],MP.prototype,"anchoredPanelActive",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],MP.prototype,"enableLivingroomLayout",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],MP.prototype,"enablePlayerMetadataContainer",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],MP.prototype,"enableSqueezebackPanels",void 0);_.T([_.O({selector:_.air,reflectToAttribute:!0}),_.Y("design:type",Object)],MP.prototype,"isSqueezebackActive",void 0);_.T([_.O({selector:YHF,reflectToAttribute:!0}),_.Y("design:type",Object)],MP.prototype,"smallScreenSqueezeback",void 0);
_.T([_.O({selector:wL$}),_.Y("design:type",Object)],MP.prototype,"isPlayerStarted",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],MP.prototype,"overlayDensity",void 0);_.T([_.O(),_.Y("design:type",Object)],MP.prototype,"isOverlay",void 0);_.T([_.O({computed:"computeIsShortsOverlay(isOverlay, isWatchWhileMode, overlayDensity)"}),_.Y("design:type",Boolean)],MP.prototype,"isShortsOverlay",void 0);_.T([_.O(),_.Y("design:type",Object)],MP.prototype,"isImmersive",void 0);
_.T([_.O(),_.Y("design:type",Object)],MP.prototype,"isImmersiveHorizontal",void 0);_.T([_.O({computed:"computeIsShortsImmersive(isImmersive, isWatchWhileMode, anchoredPanelActive)"}),_.Y("design:type",Boolean)],MP.prototype,"isShortsImmersive",void 0);_.T([_.O({computed:"computeButtonOverride(isOverlay, isWatchWhileMode)"}),_.Y("design:type",Object)],MP.prototype,"buttonOverride",void 0);
_.T([_.O({computed:"computeActionBarButtonOverride(isOverlay, isWatchWhileMode)"}),_.Y("design:type",Object)],MP.prototype,"actionBarButtonOverride",void 0);_.T([_.O({selector:_.xa,reflectToAttribute:!0}),_.Y("design:type",Object)],MP.prototype,"isFullscreen",void 0);_.T([_.ea("isActive"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],MP.prototype,"onIsActiveChanged",null);MP=_.T([_.y({is:"ytd-reel-player-overlay-renderer",disableElementRegistration:!0})],MP);
_.r(MP,"ytd-reel-player-overlay-renderer",function(){if(Biw!==void 0)return Biw;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-player-overlay-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="metadata-container style-scope ytd-reel-player-overlay-renderer" role="heading" aria-level="1">\n  <div id="overlay" class="style-scope ytd-reel-player-overlay-renderer">\n      <template is="dom-repeat" items="[[data.videoInteractions.interactions]]" as="item" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-player-overlay-video-interactions data="[[item]]" class="style-scope ytd-reel-player-overlay-renderer">\n        </yt-player-overlay-video-interactions>\n      </template>\n    <template is="dom-if" if="[[data.metapanel]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="metapanel" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-reel-metapanel-view-model data="[[data.metapanel.reelMetapanelViewModel]]" overlay-density="[[overlayDensity]]" class="style-scope ytd-reel-player-overlay-renderer"></yt-reel-metapanel-view-model>\n      </div>\n    </template>\n  </div>\n  <div id="info-panel" class="style-scope ytd-reel-player-overlay-renderer"></div>\n</div>\n\n<div class="action-container style-scope ytd-reel-player-overlay-renderer">\n  <div id="actions" class="style-scope ytd-reel-player-overlay-renderer">\n    <template is="dom-if" if="[[data.buttonBar]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="button-bar" class="style-scope ytd-reel-player-overlay-renderer">\n        <reel-action-bar-view-model button-shape-overrideables="[[actionBarButtonOverride]]" data="[[data.buttonBar.reelActionBarViewModel]]" class="style-scope ytd-reel-player-overlay-renderer"></reel-action-bar-view-model>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.likeButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="like-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-like-button-renderer button-tooltip-position="[[likeButtonTooltipPosition]]" data="[[data.likeButton.likeButtonRenderer]]" overrides="[[buttonOverride]]" text-transform="[[textTransform]]" use-shorts-icon="[[useShortsIcon]]" vertical="[[!isImmersiveHorizontal]]" class="style-scope ytd-reel-player-overlay-renderer"></ytd-like-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.viewCommentsButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="comments-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.viewCommentsButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.shareButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="share-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.shareButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.remixButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="remix-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.remixButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <div id="menu-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n      <ytd-menu-renderer data="[[data.menu.menuRenderer]]" is-overlay="[[isShortsOverlay]]" three-dot-size="L" tonal-override="" use-overlay-dark="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-menu-renderer>\n    </div>\n    <div id="pivot-button" class="button-container style-scope ytd-reel-player-overlay-renderer" tabindex="0"></div>\n  </div>\n</div>\n<iron-media-query id="overlay-query" query="(max-width: 599px)" query-matches="[[isOverlay]]" on-query-matches-changed="updateIsOverlay" class="style-scope ytd-reel-player-overlay-renderer"></iron-media-query>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return Biw=F},{mode:1});var IwK;var gC=function(){var F=_.n.apply(this,arguments)||this;F.videoDuration=0;F.playedTime=0;F.isActive=!1;F.JSC$19617_playerEvents=new Map;return F};
_.k(gC,_.n);_.N=gC.prototype;_.N.created=function(){this.JSC$19617_playerEvents.set("onVideoDataChange",this.onVideoDataChange);this.JSC$19617_playerEvents.set("onVideoProgress",this.onVideoProgress)};
_.N.attached=function(){this.getPlayerAndInitializeListeners()};
_.N.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19617_playerEvents),this.player=null);document.removeEventListener("yt-page-type-changed",_.UO(this,this.onPageChanged))};
_.N.getPlayerAndInitializeListeners=function(){var F=this,W;return _.e(function(E){if(E.nextAddress==1)return W=_.WS(),W?_.Q(E,W.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.UO(F,F.onPageChanged)),E.jumpTo(0));F.player=E.yieldResult;F.initializePlayerListeners();_.gG(E)})};
_.N.onPageChanged=function(F){var W=this;return _.e(function(E){if(E.nextAddress==1)return F.detail.newPageType!=="ytd-shorts"?E.return():_.Q(E,_.E8().getPlayerPromise(),2);W.player=E.yieldResult;W.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.UO(W,W.onPageChanged));_.gG(E)})};
_.N.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$19617_playerEvents)};
_.N.onVideoDataChange=function(F){var W=this;return _.e(function(E){if(!W.player||F.type!=="newdata")return E.return();W.videoDuration=_.c("web_shorts_use_progress_state_for_gapless")?W.player.getProgressState(F.playertype).seekableEnd:W.player.getDuration(F.playertype);W.playedTime=0;_.gG(E)})};
_.N.onVideoProgress=function(F){var W=this,E,h;return _.e(function(d){if(!W.player)return d.return();E=W.player.getPresentingPlayerType();h=W.player.getPlayerState();W.videoDuration=_.c("web_shorts_use_progress_state_for_gapless")?W.player.getProgressState(E).seekableEnd:W.player.getDuration(E);W.playedTime=h===0?W.videoDuration:F;_.gG(d)})};
_.N.getPercentPlayed=function(F,W){return F?_.jX(W/F,0,1):0};
_.Sn.Object.defineProperties(gC.prototype,{percentPlayed:{configurable:!0,enumerable:!0,get:function(){return this.videoDuration&&this.playedTime?Math.floor(this.getPercentPlayed(this.videoDuration,this.playedTime)*100):0}},
percentPlayedStyle:{configurable:!0,enumerable:!0,get:function(){var F="";return F=this.videoDuration&&this.playedTime?F+("transform:scaleX("+this.getPercentPlayed(this.videoDuration,this.playedTime)+");"):F+"transform:scaleX(0);"}},
hideProgressBar:{configurable:!0,enumerable:!0,get:function(){return this.videoDuration?!(this.isActive&&this.videoDuration>30):!1}}});
_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],gC.prototype,"componentBehavior",void 0);_.T([_.J(_.om.YtPlayerListenerBehavior),_.Y("design:type",_.G$)],gC.prototype,"ytPlayerListenerBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],gC.prototype,"player",void 0);_.T([_.O(),_.Y("design:type",Object)],gC.prototype,"videoDuration",void 0);_.T([_.O(),_.Y("design:type",Object)],gC.prototype,"playedTime",void 0);_.T([_.O(),_.Y("design:type",Object)],gC.prototype,"isActive",void 0);
_.T([_.a("videoDuration","playedTime"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],gC.prototype,"percentPlayed",null);_.T([_.a("videoDuration","playedTime"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],gC.prototype,"percentPlayedStyle",null);_.T([_.a("videoDuration","isActive"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],gC.prototype,"hideProgressBar",null);
_.r(gC,"ytd-progress-bar-line",function(){if(IwK===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-progress-bar-line--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="progress-bar-line" hidden="[[hideProgressBar]]" role="progressbar" aria-valuenow$="[[percentPlayed]]" class="style-scope ytd-progress-bar-line">\n  <div class="progress-bar-background style-scope ytd-progress-bar-line"></div>\n  <div class="progress-bar-played style-scope ytd-progress-bar-line" style$="[[percentPlayedStyle]]"></div>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);IwK=F}F=IwK;return F},{mode:_.E6("kevlar_poly_si_batch_j028")?1:2});var c6T;_.Nj(_.S5W,"desktop-shorts-volume-controls",{propNames:["noSlider","orientation"]});var Q5=function(){var F=_.n.apply(this,arguments)||this;F.playerState=null;F.isMuted=!1;F.shortsModernControlsEnabled=_.c("web_shorts_modern_controls");F.volumeControlsOrientationState="vertical_down";F.JSC$19620_playerEvents=new Map;return F};
_.k(Q5,_.n);_.N=Q5.prototype;_.N.created=function(){this.JSC$19620_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$19620_playerEvents.set("onVolumeChange",this.onPlayerVolumeChange)};
_.N.attached=function(){this.getPlayerAndInitializeListeners();this.muteButtonClientVE=_.LQ(28662);this.playPauseButtonClientVE=_.LQ(36842);this.fullscreenButtonToggleOffClientVE=_.LQ(222256);this.fullscreenButtonToggleOnClientVE=_.LQ(222257);var F=_.JR(),W=_.Pf();F&&W&&(_.c("combine_ve_grafts")?(_.zY(_.z4(),this.muteButtonClientVE,W),_.zY(_.z4(),this.playPauseButtonClientVE,W)):_.j7(F,W,[this.muteButtonClientVE,this.playPauseButtonClientVE,this.fullscreenButtonToggleOffClientVE,this.fullscreenButtonToggleOnClientVE]))};
_.N.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19620_playerEvents),this.player=null)};
_.N.getPlayerAndInitializeListeners=function(){var F=this,W;return _.e(function(E){if(E.nextAddress==1)return W=_.WS(),W?_.Q(E,W.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.UO(F,F.onPageChanged)),E.jumpTo(0));F.player=E.yieldResult;F.initializePlayerListeners();_.gG(E)})};
_.N.onPageChanged=function(F){var W=this;return _.e(function(E){if(E.nextAddress==1)return F.detail.newPageType!=="ytd-shorts"?E.return():_.Q(E,_.E8().getPlayerPromise(),2);W.player=E.yieldResult;W.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.UO(W,W.onPageChanged));_.gG(E)})};
_.N.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$19620_playerEvents)};
_.N.onPlayerStateChange=function(F){this.playerState=F};
_.N.onPlayerVolumeChange=function(F){this.isMuted=F.muted};
_.N.onPlayPauseButtonClick=function(){var F=this,W,E;return _.e(function(h){if(h.nextAddress==1)return _.Q(h,_.E8().getPlayerPromise(),2);W=h.yieldResult;(E=_.JR())&&F.playPauseButtonClientVE&&_.oj(E,F.playPauseButtonClientVE);W.getPlayerState()!==1?W.playVideo():W.pauseVideo();_.gG(h)})};
_.N.computePlayPauseIcon=function(F){return F===2||F===-1||F===5?"PLAY_ARROW_FILLED":_.c("enable_web_delhi_icons")?"PAUSE_FILLED":"miniplayer:shorts-pause"};
_.N.computeFullscreenLabel=function(F){return F?_.CY("FULLSCREEN_EXIT_LABEL"):_.CY("FULLSCREEN_ENTER_LABEL")};
_.N.computePlayPauseLabel=function(F){return F===1||F===3?_.CY("PLAYER_LABEL_PAUSE"):_.CY("PLAYER_LABEL_PLAY")};
_.N.onMuteButtonClick=function(){var F=this,W,E;return _.e(function(h){if(h.nextAddress==1)return _.Q(h,_.E8().getPlayerPromise(),2);W=h.yieldResult;(E=_.JR())&&F.muteButtonClientVE&&_.oj(E,F.muteButtonClientVE);W.isMuted()?W.unMute(!0):W.mute(!0);_.gG(h)})};
_.N.computeMuteIcon=function(F){return F?"miniplayer:volume-off":"miniplayer:volume-up"};
_.N.computeMuteLabel=function(F){return F?_.CY("PLAYER_LABEL_UNMUTE"):_.CY("PLAYER_LABEL_MUTE")};
_.N.onFullscreenButtonClick=function(){var F=_.JR();F&&(this.fullscreenButtonToggleOffClientVE&&this.isFullscreen?_.oj(F,this.fullscreenButtonToggleOffClientVE):this.fullscreenButtonToggleOnClientVE&&!this.isFullscreen&&_.oj(F,this.fullscreenButtonToggleOnClientVE));document.activeElement instanceof HTMLElement&&document.activeElement.blur();_.rcK()};
_.Sn.Object.defineProperties(Q5.prototype,{playPauseButtonData:{configurable:!0,enumerable:!0,get:function(){var F=this;return{disabled:!1,accessibilityLabel:this.computePlayPauseLabel(this.playerState),iconPosition:"icon-only",size:"L",state:"active",style:"overlay-dark",type:"tonal",tooltipText:this.computePlayPauseLabel(this.playerState),onTap:function(){F.onPlayPauseButtonClick()},
disableBackdropFilter:this.shortsModernControlsEnabled,customColors:this.shortsModernControlsEnabled?{backgroundColor:"var(--yt-spec-static-overlay-additive-background)"}:{}}}},
fullscreenButtonData:{configurable:!0,enumerable:!0,get:function(){return{disabled:!1,accessibilityLabel:this.computeFullscreenLabel(this.isFullscreen),iconPosition:"icon-only",size:"L",state:"active",style:"overlay-dark",type:"tonal",tooltipText:this.computeFullscreenLabel(this.isFullscreen),disableBackdropFilter:this.shortsModernControlsEnabled,customColors:this.shortsModernControlsEnabled?{backgroundColor:"transparent"}:{}}}},
fullscreenIcon:{configurable:!0,enumerable:!0,get:function(){return this.isFullscreen?_.c("enable_web_delhi_icons")?"player_full_exit":"screen_full_exit":_.c("enable_web_delhi_icons")?"SCREEN_FULLSCREEN":"screen_full"}}});
_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],Q5.prototype,"componentBehavior",void 0);_.T([_.J(_.om.YtPlayerListenerBehavior),_.Y("design:type",_.G$)],Q5.prototype,"ytPlayerListenerBehavior",void 0);_.T([_.J(_.am),_.Y("design:type",Object)],Q5.prototype,"ytdReduxBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],Q5.prototype,"player",void 0);_.T([_.O(),_.Y("design:type",Object)],Q5.prototype,"playerState",void 0);_.T([_.O(),_.Y("design:type",Object)],Q5.prototype,"isMuted",void 0);
_.T([_.O({computed:"computePlayPauseIcon(playerState)"}),_.Y("design:type",String)],Q5.prototype,"playPauseIcon",void 0);_.T([_.O({computed:"computeMuteIcon(isMuted)"}),_.Y("design:type",String)],Q5.prototype,"muteIcon",void 0);_.T([_.O({selector:_.xa}),_.Y("design:type",Boolean)],Q5.prototype,"isFullscreen",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],Q5.prototype,"shortsModernControlsEnabled",void 0);
_.T([_.O(),_.Y("design:type",Object)],Q5.prototype,"volumeControlsOrientationState",void 0);_.T([_.a("playerState"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Q5.prototype,"playPauseButtonData",null);_.T([_.a("isFullscreen"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Q5.prototype,"fullscreenButtonData",null);_.T([_.a("isFullscreen"),_.Y("design:type",String),_.Y("design:paramtypes",[])],Q5.prototype,"fullscreenIcon",null);
_.r(Q5,"ytd-shorts-player-controls",function(){if(c6T===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shorts-player-controls--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-button-shape id="play-pause-button-shape" data="[[playPauseButtonData]]" icon-name="[[playPauseIcon]]" class="style-scope ytd-shorts-player-controls">\n</yt-button-shape>\n<template is="dom-if" if="[[shortsModernControlsEnabled]]" class="style-scope ytd-shorts-player-controls">\n  <div id="right-controls" class="style-scope ytd-shorts-player-controls">\n    <desktop-shorts-volume-controls orientation="[[volumeControlsOrientationState]]" class="style-scope ytd-shorts-player-controls"></desktop-shorts-volume-controls>\n    <yt-button-shape id="fullscreen-button-shape" data="[[fullscreenButtonData]]" icon-name="[[fullscreenIcon]]" on-click="onFullscreenButtonClick" class="style-scope ytd-shorts-player-controls">\n    </yt-button-shape>\n  </div>\n</template>\n<template is="dom-if" if="[[!shortsModernControlsEnabled]]" class="style-scope ytd-shorts-player-controls">\n  <desktop-shorts-volume-controls class="style-scope ytd-shorts-player-controls"></desktop-shorts-volume-controls>\n  <yt-button-shape id="fullscreen-button-shape" data="[[fullscreenButtonData]]" icon-name="[[fullscreenIcon]]" on-click="onFullscreenButtonClick" class="style-scope ytd-shorts-player-controls">\n  </yt-button-shape>\n</template>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);c6T=F}F=c6T;return F},{mode:1});var DAu;_.pK(_.N6e,"yt-interstitial-view-model",{props:{data:_.TS}});var xAP=_.GK(function(F){var W=F.data;return _.z("reel-watch-break-view-model",{class:"reelWatchBreakViewModelHost"},_.z("h1",{class:"reelWatchBreakViewModelHostTitle"},_.z(_.Ab,{text:function(){return W().title}})),_.z("h2",{class:"reelWatchBreakViewModelHostBody"},_.z(_.Ab,{text:function(){return W().body},
isOverlay:!0})),_.z(_.a6,{data:function(){return W().buttons}},{buttonViewModel:function(E,h){return _.z("div",{class:function(){return h()===0?"reelWatchBreakViewModelHostContinueWatchingButton":"reelWatchBreakViewModelHostGoHomeButton"}},_.z(_.rk,{data:E.data}))}}))},"Bi");
xAP.idomCompat=!0;_.pK(xAP,"reel-watch-break-view-model",{props:{data:_.TS}});var zq=function(){return _.n.apply(this,arguments)||this};
_.k(zq,_.n);zq.prototype.configureRendererStamper=function(){return{"data.renderer":{id:"nvc-container",mapping:{reelWatchBreakViewModel:{component:"reel-watch-break-view-model"},inlineSurveyRenderer:{component:"ytd-inline-survey-renderer"},interstitialViewModel:{component:"yt-interstitial-view-model"}},renderPriority:0}}};
_.Sn.Object.defineProperties(zq.prototype,{isSurvey:{configurable:!0,enumerable:!0,get:function(){var F;return!!_.D((F=this.data)==null?void 0:F.renderer,RbK)}},
isInterstitialViewModel:{configurable:!0,enumerable:!0,get:function(){var F;return!!_.D((F=this.data)==null?void 0:F.renderer,ebw)}}});
_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],zq.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],zq.prototype,"ytComponentBehavior",void 0);_.T([_.J(_.am),_.Y("design:type",Object)],zq.prototype,"ytdReduxBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],zq.prototype,"data",void 0);
_.T([_.O({reflectToAttribute:!0}),_.a("data.renderer"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],zq.prototype,"isSurvey",null);_.T([_.O({reflectToAttribute:!0}),_.a("data.renderer"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],zq.prototype,"isInterstitialViewModel",null);zq=_.T([_.y({is:"ytd-reel-non-video-content-renderer",disableElementRegistration:!0})],zq);
_.r(zq,"ytd-reel-non-video-content-renderer",function(){if(DAu!==void 0)return DAu;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-non-video-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="nvc-container" class="nvc-container style-scope ytd-reel-non-video-content-renderer">\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);
return DAu=F},{mode:_.E6("kevlar_poly_si_batch_j028")?1:2});var kmx;_.pK(_.W7$,"desktop-shorts-player-controls",{});var t2=function(){var F=_.n.apply(this,arguments)||this;F.isPlayerPaused=!1;F.isPlayerStarted=!1;F.showPlayerControls=!1;F.showScrubber=!1;F.autoHideJobId=0;F.modern=_.c("web_button_rework");F.overlayType=_.N0("web_shorts_expanded_overlay_type");F.panelData=void 0;F.isWatchWhileMode=!1;F.hasError=!1;F.panelShowDelayMs=1;F.scrubberComponent={};F.useStamper=_.c("web_shorts_enable_title_deflation");F.isFullscreen=!1;F.shouldHideOverlay=!1;F.enableAnchoredPanel=_.c("desktop_shorts_v2_anchored_panel");
F.enablePersistentAnchoredPanel=_.c("desktop_shorts_v2_persistent_anchored_panel");F.hideWatchWhilePanel=_.c("web_shorts_hide_watch_while_panel");F.isPersistentPanelActive=!1;F.anchoredPanelActive=!1;F.isShortsPipActive=!1;F.smallScreenSqueezeback=!1;F.enableFlexibleOverlay=_.c("web_enable_flexible_overlay");F.overlayDensity=0;F.actionMap={"yt-show-reels-comments-overlay-command":"handleShowReelsCommentsOverlayCommand","yt-engagement-panel-visible-changed":"handleEngagementPanelVisibilityChanged"};
F.onWindowResized=function(){_.OO(F,"calculateOverlayDensity",function(){F.calculateOverlayDensity()},100)};
return F};
_.k(t2,_.n);_.N=t2.prototype;_.N.updateShouldHideOverlay=function(){this.shouldHideOverlay=this.isActive&&this.hasError};
_.N.onScrubberDataChange=function(){this.shouldRenderScrubber?this.scrubberComponent={desktopShortsPlayerControls:{}}:this.scrubberComponent={}};
_.N.shouldRenderOverlayControl=function(F){return!this.useStamper&&this.isVideoContent(F)};
_.N.onEngagementPanelsChanged=function(){if(this.watchWhileEngagementPanels)if(this.isActive){if(this.panelData=this.watchWhileEngagementPanels,this.isActive){var F=_.WZ().resolve(_.sL);this.isWatchWhileMode&&(_.c("web_enable_shorts_new_carousel")?_.P0.addJob(function(){F.showPanel("shorts-comments-panel",void 0,void 0,void 0,null)},0):F.showPanel("shorts-comments-panel",void 0,void 0,void 0,null))}}else this.panelData=void 0};
_.N.handleShowReelsCommentsOverlayCommand=function(F){F=_.D(F,Qfu);this.isActive&&(F==null?0:F.engagementPanel)&&this.data&&(this.isWatchWhileMode&&this.isWatchWhileMode&&this.activeWatchWhilePanel==="engagement-panel-comments-section"?this.updateEngagementPanelVisibility("engagement-panel-comments-section",!1):this.updateEngagementPanelVisibility("engagement-panel-comments-section",!0))};
_.N.updateEngagementPanelVisibility=function(F,W){F&&this.ytComponentBehavior.resolveCommand({changeEngagementPanelVisibilityAction:{visibility:W?"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED":"ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",targetId:F}})};
_.N.detached=function(){this.panelData=this.watchWhileEngagementPanels=void 0;this.isWatchWhileMode=!1;(this.enableFlexibleOverlay||this.enableFormatFirst)&&window.removeEventListener("resize",this.onWindowResized)};
_.N.handleEngagementPanelVisibilityChanged=function(){this.isActive&&!this.enablePersistentAnchoredPanel&&(_.WZ().resolve(_.Uk).watchWhileIndices.has(this.index)?this.anchoredPanelActive=!0:this.anchoredPanelActive=!1)};
_.N.handleWatchWhilePanelScrimClick=function(){var F=_.WZ().resolve(_.sL);this.activeWatchWhilePanel&&(F.hidePanel(this.activeWatchWhilePanel),this.isWatchWhileMode=!1,this.activeWatchWhilePanel=void 0)};
_.N.attached=function(){this.isFirstReel()&&this.handlePlayerClick();if(this.enableFlexibleOverlay||this.enableFormatFirst)window.addEventListener("resize",this.onWindowResized),this.calculateOverlayDensity()};
_.N.configureRendererStamper=function(){return{scrubberComponent:{id:"scrubber",mapping:{desktopShortsPlayerControls:{component:"desktop-shorts-player-controls"}},initialRenderPriority:2},overlayComponent:{id:"experiment-overlay",mapping:{reelPlayerOverlayRenderer:{component:"ytd-reel-player-overlay-renderer",properties:{anchoredPanelActive:"[[anchoredPanelActive]]",disableUpgrade:"[[shouldHideOverlay]]",hidden:"[[shouldHideOverlay]]",isActive:"[[isActive]]",isWatchWhileMode:"[[watchWhileOrPersistentActive]]",
overlayDensity:"[[overlayDensity]]",showScrubber:"[[showScrubber]]"}},adsOverlay:{component:"ytd-ad-slot-renderer",properties:{overlayDensity:"[[overlayDensity]]"}}},renderPriority:_.c("web_enable_shorts_new_carousel")?0:void 0}}};
_.N.handlePlayerClick=function(F){var W=this,E,h;if((h=(E=window).matchMedia)!=null&&h.call(E,"(any-pointer: coarse)").matches||!F)this.showPlayerControls=!0,_.P0.cancelJob(this.autoHideJobId),this.autoHideJobId=_.sB(_.P0,function(){W.showPlayerControls=!1},4E3)};
_.N.isFirstReel=function(){return this.index===0};
_.N.handleMouseenter=function(){_.P0.cancelJob(this.autoHideJobId);this.showPlayerControls=!0};
_.N.handleMouseleave=function(){this.isPlayerPaused||(this.showPlayerControls=!1)};
_.N.handleScrubberEnter=function(){this.showScrubber=!0};
_.N.handleScrubberLeave=function(){this.showScrubber=!1};
_.N.maybeLogNonDefaultAspectRatio=function(){var F;(F=this.data)!=null&&F.thumbnail&&this.isActive&&.5625!==Gv$(this.data.thumbnail)&&_.Cce("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO")};
_.N.calculateOverlayDensity=function(){if(this.enableFlexibleOverlay||this.enableFormatFirst){var F=document.querySelector("#shorts-container");if(F){F=F.offsetWidth/2-this.playerContainer.offsetWidth/2;F=F>=368?1:F>=168?0:2;this.enableFormatFirst&&!this.enableFlexibleOverlay&&F===1&&(F=0);this.isPersistentPanelActive&&(F=0);this.overlayDensity=F;var W;(W=this.onOverlayDensityChanged)==null||W.call(this,this.index,this.overlayDensity)}}};
_.N.onOverlayDensityChange=function(){var F;(F=this.onOverlayDensityChanged)==null||F.call(this,this.index,this.overlayDensity);(F=_.Z(this.hostElement).querySelector("ytd-reel-player-overlay-renderer"))&&F.set("overlayDensity",this.overlayDensity);if(F=this.hostElement.querySelector("reels-player-overlay-layout-view-model"))F.overlayDensity=this.overlayDensity};
_.N.isVideoContent=function(F){_.WZ().resolve(_.Uk);return!!_.D(F,_.DP)};
_.N.isNonVideoContent=function(F){_.WZ().resolve(_.Uk);return!!_.D(F,_.ni)};
_.N.closeInactiveWatchWhilePanel=function(){this.activeWatchWhilePanel&&this.isWatchWhileMode&&this.updateEngagementPanelVisibility(this.activeWatchWhilePanel,!1)};
_.Sn.Object.defineProperties(t2.prototype,{enableFormatFirst:{configurable:!0,enumerable:!0,get:function(){var F,W;return _.c("web_enable_format_first")||((F=this.data)==null?void 0:F.adsOverlay)&&_.c("web_enable_format_first_ads_only")||((W=this.data)==null?void 0:W.reelPlayerOverlayRenderer)&&_.c("web_enable_format_first_organic_only")}},
shouldRenderPlayerElements:{configurable:!0,enumerable:!0,get:function(){return this.isActive&&!this.hasError}},
watchWhileOrPersistentActive:{configurable:!0,enumerable:!0,get:function(){return this.isWatchWhileMode}},
shouldRenderScrubber:{configurable:!0,enumerable:!0,get:function(){var F;return!this.isActive||!this.isPlayerStarted||(F=this.data)!=null&&F.adsOverlay?!1:!0}},
overlayComponent:{configurable:!0,enumerable:!0,get:function(){var F;if(this.useStamper&&((F=this.data)==null?0:F.command)&&this.isVideoContent(this.data.command)){var W,E;if(((W=this.data)==null?0:W.adsOverlay)&&Object.keys((E=this.data)==null?void 0:E.adsOverlay).length>0)return{adsOverlay:this.data.adsOverlay};var h,d;if(((h=this.data)==null?0:h.reelPlayerOverlayRenderer)&&Object.keys((d=this.data)==null?void 0:d.reelPlayerOverlayRenderer).length>0)return{reelPlayerOverlayRenderer:this.data.reelPlayerOverlayRenderer}}return{}}}});
t2.prototype.onOverlayDensityChange=t2.prototype.onOverlayDensityChange;t2.prototype.calculateOverlayDensity=t2.prototype.calculateOverlayDensity;t2.prototype.maybeLogNonDefaultAspectRatio=t2.prototype.maybeLogNonDefaultAspectRatio;t2.prototype.onEngagementPanelsChanged=t2.prototype.onEngagementPanelsChanged;t2.prototype.onScrubberDataChange=t2.prototype.onScrubberDataChange;t2.prototype.updateShouldHideOverlay=t2.prototype.updateShouldHideOverlay;
_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],t2.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],t2.prototype,"ytComponentBehavior",void 0);_.T([_.J(_.y_.YtdGuideStateAwareBehavior),_.Y("design:type",Object)],t2.prototype,"ytdGuideStateAwareBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],t2.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Number)],t2.prototype,"index",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],t2.prototype,"isActive",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],t2.prototype,"isHiddenInDom",void 0);_.T([_.O(),_.Y("design:type",Object)],t2.prototype,"isPlayerPaused",void 0);_.T([_.O({selector:wL$}),_.Y("design:type",Object)],t2.prototype,"isPlayerStarted",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],t2.prototype,"showPlayerControls",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],t2.prototype,"showScrubber",void 0);_.T([_.O(),_.Y("design:type",Object)],t2.prototype,"autoHideJobId",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],t2.prototype,"modern",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],t2.prototype,"overlayType",void 0);_.T([_.J(_.am),_.Y("design:type",Object)],t2.prototype,"ytdReduxBehavior",void 0);
_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],t2.prototype,"ytActionHandlerBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],t2.prototype,"watchWhileEngagementPanels",void 0);_.T([_.O(),_.Y("design:type",Object)],t2.prototype,"panelData",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],t2.prototype,"isWatchWhileMode",void 0);_.T([_.O(),_.Y("design:type",String)],t2.prototype,"activeWatchWhilePanel",void 0);
_.T([_.O(),_.Y("design:type",Object)],t2.prototype,"hasError",void 0);_.T([_.O(),_.Y("design:type",Object)],t2.prototype,"panelShowDelayMs",void 0);_.T([_.O(),_.Y("design:type",Object)],t2.prototype,"scrubberComponent",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],t2.prototype,"useStamper",void 0);_.T([_.O({selector:_.xa,reflectToAttribute:!0}),_.Y("design:type",Object)],t2.prototype,"isFullscreen",void 0);
_.T([_.O(),_.Y("design:type",Object)],t2.prototype,"shouldHideOverlay",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],t2.prototype,"enableAnchoredPanel",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],t2.prototype,"enablePersistentAnchoredPanel",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],t2.prototype,"hideWatchWhilePanel",void 0);
_.T([_.O({selector:_.air,reflectToAttribute:!0}),_.Y("design:type",Object)],t2.prototype,"isPersistentPanelActive",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],t2.prototype,"anchoredPanelActive",void 0);_.T([_.O({selector:_.ka,reflectToAttribute:!0}),_.Y("design:type",Object)],t2.prototype,"isShortsPipActive",void 0);_.T([_.O({selector:YHF,reflectToAttribute:!0}),_.Y("design:type",Object)],t2.prototype,"smallScreenSqueezeback",void 0);
_.T([_.O({reflectToAttribute:!0}),_.a("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],t2.prototype,"enableFormatFirst",null);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],t2.prototype,"enableFlexibleOverlay",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],t2.prototype,"overlayDensity",void 0);_.T([_.O(),_.Y("design:type",Function)],t2.prototype,"onOverlayDensityChanged",void 0);
_.T([_.O(),_.a("isActive","hasError"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],t2.prototype,"shouldRenderPlayerElements",null);_.T([_.O(),_.a("isActive","isWatchWhileMode"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],t2.prototype,"watchWhileOrPersistentActive",null);_.T([_.ea("isActive","hasError","showingExpandedOverlay"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],t2.prototype,"updateShouldHideOverlay",null);
_.T([_.O({reflectToAttribute:!0}),_.a("isActive","isPlayerStarted","data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],t2.prototype,"shouldRenderScrubber",null);_.T([_.ea("shouldRenderScrubber"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],t2.prototype,"onScrubberDataChange",null);_.T([_.a("useStamper","data.adsOverlay","data.reelPlayerOverlayRenderer"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],t2.prototype,"overlayComponent",null);
_.T([_.ea("watchWhileEngagementPanels"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],t2.prototype,"onEngagementPanelsChanged",null);_.T([_.gQ("#player-container"),_.Y("design:type",HTMLElement)],t2.prototype,"playerContainer",void 0);_.T([_.gQ("#cinematic-container"),_.Y("design:type",HTMLElement)],t2.prototype,"cinematicContainer",void 0);
_.T([_.ea("isPersistentPanelActive","data.thumbnail"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],t2.prototype,"maybeLogNonDefaultAspectRatio",null);_.T([_.ea("isPersistentPanelActive"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],t2.prototype,"calculateOverlayDensity",null);_.T([_.ea("overlayDensity"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],t2.prototype,"onOverlayDensityChange",null);
t2=_.T([_.y({is:"ytd-reel-video-renderer",disableElementRegistration:!0})],t2);
_.r(t2,"ytd-reel-video-renderer",function(){if(kmx!==void 0)return kmx;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="short-video-container style-scope ytd-reel-video-renderer" id="short-video-container" hidden="[[!isVideoContent(data.command)]]">\n  <div id="cinematic-container" class="cinematic-container style-scope ytd-reel-video-renderer"></div>\n  <div class="player-wrapper style-scope ytd-reel-video-renderer">\n    <div id="player-container" class="player-container style-scope ytd-reel-video-renderer" on-click="handlePlayerClick" on-mouseenter="handleMouseenter" on-mouseleave="handleMouseleave">\n      <div class="pip-blur-filter style-scope ytd-reel-video-renderer" hidden="[[!isShortsPipActive]]"></div>\n          <template is="dom-if" if="[[shouldRenderPlayerElements]]" restamp="" class="style-scope ytd-reel-video-renderer">\n            <div class="player-controls style-scope ytd-reel-video-renderer">\n              <ytd-shorts-player-controls disable-upgrade="[[!isActive]]" class="style-scope ytd-reel-video-renderer"></ytd-shorts-player-controls>\n            </div>\n          </template>\n    </div>\n    <div id="scrubber" on-mouseenter="handleScrubberEnter" on-mouseleave="handleScrubberLeave" class="style-scope ytd-reel-video-renderer">\n    </div>\n  </div>\n</div>\n<div id="experiment-overlay" class="overlay style-scope ytd-reel-video-renderer"></div>\n<template is="dom-if" if="[[shouldRenderOverlayControl(data.command)]]" class="style-scope ytd-reel-video-renderer">\n  <div id="control-overlay" class="overlay style-scope ytd-reel-video-renderer">\n    <template is="dom-if" if="[[data.reelPlayerOverlayRenderer]]" class="style-scope ytd-reel-video-renderer">\n      <ytd-reel-player-overlay-renderer anchored-panel-active="[[anchoredPanelActive]]" data="[[data.reelPlayerOverlayRenderer]]" disable-upgrade="[[shouldHideOverlay]]" hidden="[[shouldHideOverlay]]" is-active="[[isActive]]" is-player-started="[[isPlayerStarted]]" is-watch-while-mode="[[watchWhileOrPersistentActive]]" show-scrubber="[[showScrubber]]" class="style-scope ytd-reel-video-renderer"></ytd-reel-player-overlay-renderer>\n    </template>\n    <template is="dom-if" if="[[data.adsOverlay]]" class="style-scope ytd-reel-video-renderer">\n      <ytd-ad-slot-renderer data="[[data.adsOverlay]]" class="style-scope ytd-reel-video-renderer"></ytd-ad-slot-renderer>\n    </template>\n  </div>\n</template>\n<template is="dom-if" if="[[isNonVideoContent(data.command)]]" class="style-scope ytd-reel-video-renderer">\n  <ytd-reel-non-video-content-renderer data="[[data.reelNonVideoContentRenderer]]" class="style-scope ytd-reel-video-renderer">\n  </ytd-reel-non-video-content-renderer>\n</template>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return kmx=F},{mode:_.E6("kevlar_poly_si_batch_j028")?1:2});var Cw=function(){var F=_.n.apply(this,arguments)||this;F.isPreviousPageShorts=!1;F.index=0;F.delayedActiveIndex=0;F.playablePreviousIndex=null;F.isPlayerPaused=!1;F.isPlayerStarted=!1;F.intersectionObserverThreshold=.6;F.fitToVisibleBounds=!1;F.pageSubtype="shorts";F.enablePreviousContinuation=_.c("shorts_in_playlists_web");F.shortsPipEnabled=_.c("web_shorts_pip");F.isDark=document.documentElement.hasAttribute("dark");F.shortsViewTransitions=_.c("web_shorts_view_transitions");F.isFullscreen=!1;F.isShortsPipActive=
!1;F.buttonOverride={iconPosition:"icon-only",size:"XL"};F.anchoredPanelActive=!1;F.isActive=!1;F.smallScreenPersistentPanel=!1;F.isPersistentPanelActive=!1;F.smallScreenSqueezeBack=!1;F.enableScrollIntoViewCenter=_.c("web_scroll_into_view_center");F.formatFirst=_.c("web_enable_format_first")||_.c("web_enable_format_first_ads_only")||_.c("web_enable_format_first_organic_only");F.enableFlexibleOverlay=_.c("web_enable_flexible_overlay");F.isShortsInitialized=!1;F.hidePreviousButtonImmediately=!1;F.showPreviousButtonImmediately=
!1;F.endOfNextContinuation=!1;F.currentPlayerIndex=0;F.nextReelVe=_.LQ(56921);F.prevReelVe=_.LQ(56922);F.loopToggleOffVe=_.LQ(198013);F.loopToggleOnVe=_.LQ(198014);F.ambientModeToggleVe=_.LQ(227860);F.reelPlayerPausedStateRendererVe=_.LQ(141313);F.storedPlaybackSpeed=null;F.actionMap={"yt-append-reel-watch-sequence-continuation-entries-action":"processAppendReelWatchSequenceContinuationEntriesAction","yt-reel-navigate-command":"handleReelNavigateCommand","yt-reel-non-video-content-dismissal-command":"processReelNonVideoContentDismissalCommand",
"yt-signal-action-toggle-cinematic-shorts-on":"handleSignalActionToggleCinematicShortsOn","yt-signal-action-toggle-cinematic-shorts-off":"handleSignalActionToggleCinematicShortsOff","yt-engagement-panel-visible-changed":"handleEngagementPanelVisibilityChanged","yt-signal-action-toggle-loop-shorts-on":"handleSignalActionToggleLoopShortsOn","yt-signal-action-toggle-loop-shorts-off":"handleSignalActionToggleLoopShortsOff","yt-miniplayer-navigate-shorts":"handleMiniplayerNavigateShorts","yt-signal-action-toggle-shorts-picture-in-picture":"handleSignalActionToggleShortsPictureInPicture"};
F.onOverlayDensityChanged=function(W,E){var h;(h=F.getActiveReelVideo(W))==null||h.setAttribute("overlay-density",String(E))};
return F};
_.k(Cw,_.n);_.N=Cw.prototype;
_.N.deflateInactivePreviousSlides=function(){var F=_.dV("web_shorts_deflate_inactive_slides_aggressive_distance");if(F>0&&this.shortsProcessedSequence&&this.activeIndex){F=this.activeIndex-F;for(var W=0;W<=F;W++){var E=void 0;((E=this.shortsProcessedSequence[W].reelPlayerOverlayRenderer)==null?0:E.likeButton)&&this.set("shortsProcessedSequence."+W+".reelPlayerOverlayRenderer",{});E=void 0;((E=this.shortsProcessedSequence[W].adsOverlay)==null?0:E.adSlotMetadata)&&this.set("shortsProcessedSequence."+W+
".adsOverlay",{})}}};
_.N.calculateIsSmallWidth=function(){return window.innerWidth<=599};
_.N.onResize=function(){var F=_.uC(),W=F.dispatch,E=this.calculateIsSmallWidth();W.call(F,_.dR({type:"SET_IS_DESKTOP_SMALL_WIDTH",payload:{isDesktopSmallWidth:E}}));this.updateBackNavContainerWidth();this.calculateSqueezebackPanelSize()};
_.N.configureRendererStamper=function(){return{"data.overlay.reelPlayerOverlayRenderer.backNavigationButton":{id:"back-nav-button",mapping:{buttonRenderer:"ytd-button-renderer"},renderPriority:0},"data.watchStatus":{id:"offline-container",mapping:{backgroundPromoRenderer:"ytd-background-promo-renderer"},renderPriority:_.c("web_enable_shorts_new_carousel")?0:void 0},anchoredEngagementPanels:{id:"anchored-panel",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",
params:{isWatchWhilePanel:!0,shortsPanel:!0}}},renderPriority:0}}};
_.N.updateBackNavContainerWidth=function(){if(this.player&&this.backNavButton){var F=(this.hostElement.clientWidth-this.shortsInnerContainer.clientWidth)/2,W=F,E=0;F<250&&(W=F+this.shortsInnerContainer.clientWidth,E=24);_.V9(this.hostElement,{"--ytd-shorts-header-width":W+"px","--ytd-shorts-top-spacing":E+"px"})}};
_.N.isFirstShorts=function(F){return F?this.index===-F.length:this.index===0};
_.N.isActiveReel=function(F,W,E){E&&(W=this.calculatePrevIndex(W,E));return F===W};
_.N.onFullscreenChange=function(){if(_.c("web_fullscreen_shorts")){var F;(F=this.getActiveReelVideo(this.activeIndex))==null||F.scrollIntoView({behavior:"instant",block:"nearest",inline:this.enableScrollIntoViewCenter?"center":"start"});this.isFullscreen&&this.isShortsPipActive&&_.WZ().resolve(_.GF).close(!0)}};
_.N.engagementPanelsChanged=function(){var F;this.watchWhileEngagementPanels=(F=this.data)==null?void 0:F.engagementPanels};
_.N.unregisterPanels=function(){var F=_.WZ().resolve(_.sL);if(this.watchWhileEngagementPanels)for(var W=_.U(this.watchWhileEngagementPanels),E=W.next();!E.done;E=W.next()){var h=void 0,d=void 0;E=(h=E.value.engagementPanelSectionListRenderer)==null?void 0:(d=h.identifier)==null?void 0:d.tag;F&&E&&F.panelMap.delete(E)}};
_.N.isVideoContent=function(F){return this.isVideoContentCommand(F==null?void 0:F.command)};
_.N.getActiveReelVideo=function(F){return _.Z(this.hostElement).querySelector('.reel-video-in-sequence-new[id="'+F+'"]')};
_.N.calculatePrevIndex=function(F,W){return W?F-((W==null?void 0:W.length)||0):-1};
_.N.onKeydown=function(F){var W=_.TB(F)||[];if(!_.jAg(W))if(F.code==="ArrowUp")F.preventDefault(),this.handlePrevButtonClick();else if(F.code==="ArrowDown")F.preventDefault(),this.handleNextButtonClick();else if(F.code==="KeyM")this.toggleMuteUnmuteVideo();else if(F.code==="KeyK"||F.code==="Space")this.togglePlayPauseVideo();else if((F.code==="KeyA"||F.code==="ArrowLeft")&&_.c("web_shorts_keyboard_enable_seek_shortcuts")){var E;(E=this.player)==null||E.seekBy(-5)}else if((F.code==="KeyD"||F.code===
"ArrowRight")&&_.c("web_shorts_keyboard_enable_seek_shortcuts")&&this.player&&this.player.getDuration()>this.player.getCurrentTime()+6){var h;(h=this.player)==null||h.seekBy(5)}};
_.N.onServiceRequestCompleted=function(F,W){F=W.data;F.continuationEndpoint&&F.entries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{entries:F.entries,continuationEndpoint:F.continuationEndpoint}}):F.prevContinuationEndpoint&&F.prevEntries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{prevEntries:F.prevEntries,prevContinuationEndpoint:F.prevContinuationEndpoint}}):this.shortsProcessedSequence&&
this.index>0&&(this.endOfNextContinuation=!0)};
_.N.handleEngagementPanelVisibilityChanged=function(F,W){var E=_.WZ().resolve(_.sL);if(F&&E){var h,d=((h=F.identifier)==null?void 0:h.tag)||F.panelIdentifier||F.targetId;if(W==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")if(this.anchoredPanelActive&&this.activePanel!==d){E.hidePanel(this.activePanel);var V;this.activePanel=((V=F.identifier)==null?void 0:V.tag)||F.panelIdentifier}else this.isPersistentPanelActive=!0,_.uC().dispatch(FWT(!0)),this.anchoredPanelActive=!0,this.activePanel=d;else W==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&
this.activePanel===d&&(this.isPersistentPanelActive=this.anchoredPanelActive=!1,_.uC().dispatch(FWT(!1)))}};
_.N.handlePanelScrimClick=function(){var F=_.WZ().resolve(_.sL);this.activePanel&&(F.hidePanel(this.activePanel),_.uC().dispatch(FWT(!1)))};
_.N.getShortsLoopSetting=function(){var F,W,E,h,d;return _.e(function(V){switch(V.nextAddress){case 1:return _.c("kevlar_shorts_auto_advance")?_.Q(V,_.Xb.getInstance(),2):V.return(!0);case 2:return(F=V.yieldResult)?_.Q(V,F.get("sfvles"),3):V.return(!0);case 3:return E=(W=V.yieldResult)!=null?W:!1,_.Q(V,F.get("sfvle"),4);case 4:return d=(h=V.yieldResult)!=null?h:!0,E?V.return(d):V.return(!0)}})};
_.N.handleSignalActionToggleLoopShortsOff=function(){var F=this,W,E,h;return _.e(function(d){switch(d.nextAddress){case 1:if(!F.player)return d.return();F.player.setLoopVideo(!1);W=_.z4();_.Co(W,F.loopToggleOffVe);return _.Q(d,_.Xb.getInstance(),2);case 2:return(E=d.yieldResult)?_.Q(d,E.set("sfvle",!1),3):d.return();case 3:return _.Q(d,E.set("sfvles",!0),4);case 4:h=_.Ij(),_.c5(0,203,!1),_.c5(0,204,!0),h.save(),_.gG(d)}})};
_.N.handleSignalActionToggleLoopShortsOn=function(){var F=this,W,E,h;return _.e(function(d){switch(d.nextAddress){case 1:if(!F.player)return d.return();F.player.setLoopVideo(!0);W=_.z4();_.Co(W,F.loopToggleOnVe);return _.Q(d,_.Xb.getInstance(),2);case 2:return(E=d.yieldResult)?_.Q(d,E.set("sfvle",!0),3):d.return();case 3:return _.Q(d,E.set("sfvles",!0),4);case 4:h=_.Ij(),_.c5(0,203,!0),_.c5(0,204,!0),h.save(),_.gG(d)}})};
_.N.handleSignalActionToggleCinematicShortsOn=function(){oHT(!0);var F;(F=this.JSC$19644_cinematicController)==null||_.jXO(F,!0);_.Co(_.z4(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!1}})};
_.N.handleSignalActionToggleCinematicShortsOff=function(){oHT(!1);var F;(F=this.JSC$19644_cinematicController)==null||_.jXO(F,!1);_.Co(_.z4(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!0}})};
_.N.toggleMuteUnmuteVideo=function(){this.player&&(this.player.isMuted()?this.player.unMute():this.player.mute())};
_.N.togglePlayPauseVideo=function(){this.player&&(this.player.getPlayerState()===1?this.player.pauseVideo():this.player.getPlayerState()===2&&this.player.playVideo())};
_.N.unhideCurrentOverlay=function(){if(this.overlayContainer){var F=this.overlayContainer.querySelector("#experiment-overlay");F&&_.P0.addLowPriorityJob(function(){F.style.display="unset"},100)}};
_.N.getCurrentShort=function(){if(this.currentEndpoint){var F=this.currentEndpoint;if(this.isNonVideoContentCommand(F)){var W=_.D(F,_.ni);return{reelNonVideoContentRenderer:_.D(W==null?void 0:W.renderer,_.o4X),command:F}}if(this.data){var E;W=(E=_.D(this.currentEndpoint,_.DP))==null?void 0:E.thumbnail;var h;E=(h=this.data.overlay)==null?void 0:h.reelPlayerOverlayRenderer;_.WZ().resolve(_.Uk);F=this.data;var d,V;h=(d=F.overlay)==null?void 0:(V=d.shortsAdsRenderer)==null?void 0:V.adSlots;if(h!==void 0)h.length===
0?(_.UQ("Shorts ads returned no ad slots."),F=void 0):(h.length>1&&_.UQ("Shorts ads has more than one ad slots."),F=_.D(h[0],_.sZ_));else{var R,M;F=_.D((R=F.overlay)==null?void 0:(M=R.shortsAdsRenderer)==null?void 0:M.overlay,_.sZ_)}R=F;F=Object.assign({},this.currentEndpoint,{reelWatchEndpoint:Object.assign({},_.D(this.currentEndpoint,_.DP),{sequenceParams:void 0,sequenceProvider:void 0,racyCheckOk:void 0,contentCheckOk:void 0})});return{reelPlayerOverlayRenderer:E,thumbnail:W,command:F,adsOverlay:R}}}};
_.N.created=function(){var F=this;this.scrollToVideoThrottle=new _.Nv(function(W){var E;(E=F.getActiveReelVideo(W))==null||E.scrollIntoView({behavior:"smooth",block:"nearest",inline:F.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.transitionToVideoThrottle=new _.Nv(function(W){var E;(E=F.getActiveReelVideo(W))==null||E.scrollIntoView({behavior:"auto",block:"nearest",inline:F.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.maybeCreateIntersectionObserver()};
_.N.onScroll=function(){this.scrollToVideoThrottle.fire(this.index)};
_.N.attached=function(){var F=this;mLK(this);this.pageScrollElement=_.Z(this.hostElement).querySelector("#shorts-container");document.addEventListener("yt-shorts-reset",_.UO(this,this.processResetAction));_.c("web_reels_min_height_adjustment")&&this.hostElement.style.setProperty("--ytd-reels-min-height","460px");_.c("web_fullscreen_shorts")&&window.ResizeObserver&&!this.resizeObserver&&(this.resizeObserver=this.onResizeFinished(this.shortsContainer,function(){var W=F.getActiveReelVideo(F.activeIndex);
F.maybeCreateIntersectionObserver();W==null||W.scrollIntoView({behavior:"instant",block:"nearest",inline:F.enableScrollIntoViewCenter?"center":"start"});F.shortsContainer.style.overflowY="scroll"}))};
_.N.calculateSqueezebackPanelSize=function(){var F=this,W=window.innerWidth-456-(window.innerHeight-106)*.5625;_.P0.addLowPriorityJob(function(){W<360?_.uC().dispatch(WWw(!0)):(F.hostElement.style.setProperty("--anchored-panel-width",Math.min(W,480)+"px"),_.uC().dispatch(WWw(!1)))})};
_.N.detached=function(){var F=_.WZ().resolve(_.Uk);F.rootElement=void 0;var W;(W=F.unsubscribeFromStore)==null||W.call(F);F.unsubscribeFromStore=void 0;document.removeEventListener("yt-shorts-reset",_.UO(this,this.processResetAction));this.intersectionObserver=this.resizeObserver=void 0};
_.N.onResizeFinished=function(F,W){var E=this,h=new ResizeObserver(function(){E.shortsContainer.style.overflowY="hidden";_.P0.addLowPriorityJob(function(){W()},100)});
h.observe(F);return h};
_.N.resetDocumentScrollTop=function(){var F,W;if((F=document)==null?0:(W=F.scrollingElement)==null?0:W.scrollTop)document.scrollingElement.scrollTop=0};
_.N.loadPage_=function(F){var W=this;this.resetDocumentScrollTop();if(this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint))this.data=this.playerData=void 0;else if(this.initCsi(),this.updateTitle(this.playerData),F){var E;if((E=_.D(this.currentEndpoint,_.DP))==null?0:E.sequenceParams)this.index=0,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index);this.data=F;this.isPlayerStarted?this.handleOnPlaybackCommand():this.afterPlayerStarted=function(){W.isPlayerStarted&&
(W.handleOnPlaybackCommand(),W.afterPlayerStarted=function(){})};
this.registerPanel(F)}};
_.N.afterPlayerStarted=function(){};
_.N.handleOnPlaybackCommand=function(){if(_.c("web_shorts_comment_stickers")&&this.isPlayerStarted){var F,W=(F=_.D(this.currentEndpoint,_.DP))==null?void 0:F.onPlaybackCommand;W&&this.ytComponentBehavior.resolveCommand(W)}};
_.N.maybeCreateIntersectionObserver=function(){var F=this,W=this.calculateIntersectionObserverThreshold();if(!this.intersectionObserver||this.intersectionObserverThreshold!==W){this.intersectionObserverThreshold=W;var E={rootMargin:"0px",threshold:W},h;(h=this.intersectionObserver)==null||h.disconnect();this.intersectionObserver=new IntersectionObserver(function(d){d=_.U(d);for(var V=d.next();!V.done;V=d.next())if(V=V.value,V.intersectionRatio>W){V=Number(V.target.id);if(isNaN(V))break;if(V===F.index)break;
_.Nre();F.loadVideo(V);_.aj("r_vtc")}},E);
this.observeShorts()}};
_.N.observeShorts=function(){var F=[].concat(_.x9(_.Z(this.hostElement).querySelectorAll(".reel-video-in-sequence-new")));F=_.U(F);for(var W=F.next();!W.done;W=F.next()){W=W.value;var E=void 0;(E=this.intersectionObserver)==null||E.observe(W)}};
_.N.initCsi=function(){_.q8("reel_watch","pbs pbp pbu r_vtc r_tr cpt".split(" "));var F={reelInfo:{transitionType:this.isPreviousPageShorts?"LATENCY_REEL_TRANSITION_TYPE_REEL_TO_REEL":"LATENCY_REEL_TRANSITION_TYPE_START",videoType:this.isAd()?"REEL_VIDEO_TYPE_AD":"REEL_VIDEO_TYPE_VIDEO",reelToReelBaseline:"REEL_TO_REEL_BASELINE_VIEW_TRANSITION_START"}},W,E;if((W=this.playerData)==null?0:(E=W.cacheMetadata)==null?0:E.isCacheHit)F.isCacheHit=!0;var h;if(W=(h=_.D(this.currentEndpoint,_.DP))==null?void 0:
h.prefetchTaskId)F.prefetchInfo={taskId:W};_.$b(F)};
_.N.isAd=function(){var F,W;return!!((F=_.D(this.currentEndpoint,_.DP))==null?0:(W=F.adClientParams)==null?0:W.isAd)};
_.N.getPlayer=function(){this.$||this._enableProperties();return this.playerElement};
_.N.getPlayerContainer=function(){var F;return(F=_.Z(this.hostElement).querySelector("ytd-reel-video-renderer"))==null?void 0:F.playerContainer};
_.N.onPlayerStateChange=function(F){var W=this;this.isPlayerPaused=F===2;F!==1&&this.isShortPlayable()||this.currentPlayerIndex===this.index?F===1&&this.index===0&&(this.isPlayerStarted||_.uC().dispatch(V5(!0))):(this.movePlayerToVideo(this.index),this.isPlayerStarted||_.uC().dispatch(V5(!0)));this.player&&!this.player.getLoopVideo()&&_.P0.addLowPriorityJob(function(){W.getShortsLoopSetting().then(function(E){var h;(h=W.player)==null||h.setLoopVideo(E)})});
this.isPlayerPaused&&_.c("web_shorts_paused_state_logging")&&_.rW(_.JR(),[this.reelPlayerPausedStateRendererVe])};
_.N.isInBackground=function(){var F=window.document.visibilityState;return!(!F||F==="visible")};
_.N.isShortPlayable=function(){if(_.c("kevlar_playable_short_killswitch"))return!0;var F;return(F=this.playerData)!=null&&F.playabilityStatus?this.playerData.playabilityStatus.status==="OK":!1};
_.N.setNormalPlaybackSpeed=function(){var F=this,W,E;return _.e(function(h){if(h.nextAddress==1)return _.Q(h,F.getPlayer().getPlayerPromise(),2);W=h.yieldResult;E=W.getPlaybackRate();E!==1&&(F.storedPlaybackSpeed=E,W.setPlaybackRate(1));_.gG(h)})};
_.N.restorePlaybackSpeed=function(){var F=this,W;return _.e(function(E){if(E.nextAddress==1)return F.storedPlaybackSpeed===null?E.jumpTo(0):_.Q(E,F.getPlayer().getPlayerPromise(),3);W=E.yieldResult;W.setPlaybackRate(F.storedPlaybackSpeed);F.storedPlaybackSpeed=null;_.gG(E)})};
_.N.playerDataChanged=function(){var F=this,W,E,h,d,V,R,M,g,t;return _.e(function(C){if(C.nextAddress==1){W=F.getPlayer();_.c("web_shorts_dynamic_intersection_observer_threshold")&&((E=F.intersectionObserver)==null||E.disconnect());if(F.playerData){if(((h=F.playerData.videoDetails)==null?void 0:h.videoId)!==((d=W.getPlayer())==null?void 0:d.getVideoData().video_id)){V={};if(R=_.D(F.currentEndpoint,_.DP))V.watch_endpoint=R,R.endTimeSeconds&&(V.end=R.endTimeSeconds);W.loadVideoWithPlayerResponse(F.playerData,
V)}}else return C.return();return F.player?C.jumpTo(2):_.Q(C,W.getPlayerPromise(),3)}C.nextAddress!=2&&(F.player=C.yieldResult,F.JSC$19644_playerStateChangeListener=F.onPlayerStateChange.bind(F),F.player.addEventListener("onStateChange",F.JSC$19644_playerStateChangeListener),_.c("kevlar_client_enable_shorts_player_bootstrap")&&_.hU(),F.scrollToVideoThrottle.fire(F.index),F.movePlayerToVideo(F.index),_.P0.addLowPriorityJob(function(){F.getShortsLoopSetting().then(function(B){var I;(I=F.player)==null||
I.setLoopVideo(B)})}),_.qLe.resolve(F.player),F.player.syncVolume(),F.getPlayer().focusOnPlayer());
_.c("web_shorts_caption_language_entity_killswitch")||_.P0.addLowPriorityJob(function(){var B=_.WZ().resolve(_.Uk),I,x=(I=F.player)==null?void 0:I.getOption("captions","track");I=_.eF("/youtube/app/player_caption_language_entity_key","stringEntity",2);if(x){var A;((A=_.D1(_.M1R,I)())==null?void 0:A.value)!==x.displayName&&B.store.dispatch(_.AG("stringEntity",I,{key:I,value:x.displayName||""}))}else B.store.dispatch(_.AG("stringEntity",I,{key:I,value:"CAPTIONS_UNAVAILABLE"}))});
_.P0.addLowPriorityJob(function(){F.observeShorts()},100);
M=F.player.getPlayerState(F.player.getPresentingPlayerType());M!==1||F.isPlayerStarted||_.uC().dispatch(V5(!0));F.updateBackNavContainerWidth();g=_.D(F.currentEndpoint,_.DP);((t=g)==null?0:t.startTimeSeconds)&&F.player.seekTo(g.startTimeSeconds);if(F.JSC$19644_cinematicController||F.cinematicsInitializeJobId)return C.return();F.cinematicsInitializeJobId=_.P0.addLowPriorityJob(function(){F.initCinematicController();F.cinematicsInitializeJobId=void 0});
_.gG(C)})};
_.N.onShortUndoDismiss=function(){var F=this,W=Kwq().pop();W!==void 0&&(_.wT(this,function(){F.showCardWithIndex(W)}),this.playablePreviousIndex=this.getPlayablePreviousIndex())};
_.N.onShortsDismiss=function(F){if(F=F.detail.reelDismissalActionRenderer)(F=_.D(F.onDismissalCompletionRenderer,_.vH8))&&this.ytComponentBehavior.resolveCommand({openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:F}}}),this.scrollAndDismissCard()};
_.N.processReelNonVideoContentDismissalCommand=function(F){var W=this;this.activeDimissalTimeout&&(clearTimeout(this.activeDimissalTimeout),this.activeDimissalTimeout=void 0);F=_.D(F,gnT);this.activeDimissalTimeout=setTimeout(function(){W.scrollAndDismissCard()},Number(F==null?void 0:F.delayMs))};
_.N.scrollAndDismissCard=function(){var F=this,W=this.index;Kwq().push(W);_.wT(this,function(){var E=F.getPlayableNextIndex();E!==null&&(E=F.getActiveReelVideo(E),F.hideCardWithIndex(W),E==null||E.scrollIntoView({behavior:"smooth",block:"nearest",inline:F.enableScrollIntoViewCenter?"center":"start"}))})};
_.N.hideCardWithIndex=function(F){if(F=this.getActiveReelVideo(F))F.hidden=!0};
_.N.showCardWithIndex=function(F){if(F=this.getActiveReelVideo(F))F.hidden=!1};
_.N.onActiveChanged=function(){this.activeChanged(this.ytPageBehavior.active)};
_.N.activeChanged=function(F){_.uC().dispatch(_.dR({type:"SET_IS_SHORTS_ACTIVE",payload:{isShortsActive:F}}));if(F)document.addEventListener("keydown",_.UO(this,this.onKeydown)),document.body.setAttribute("no-y-overflow",""),this.setNormalPlaybackSpeed(),this.getPlayer().focusOnPlayer();else{if(this.isAd()){var W;(W=this.player)==null||W.sendAbandonmentPing()}var E;(E=this.player)==null||E.cueVideoByPlayerVars({videoId:"00000000"});document.removeEventListener("keydown",_.UO(this,this.onKeydown));
document.body.removeAttribute("no-y-overflow");this.restorePlaybackSpeed();this.processResetAction()}};
_.N.graftClientVisualElements=function(){if(this.data){var F=_.z4();_.LCe(F,_.e7({response:this.reelWatchSequenceResponse}));_.zY(F,this.nextReelVe);_.zY(F,this.prevReelVe);_.c("kevlar_shorts_auto_advance")&&(_.zY(F,this.loopToggleOffVe),_.zY(F,this.loopToggleOnVe));_.zY(F,this.ambientModeToggleVe);_.rW(_.JR(),[this.nextReelVe,this.prevReelVe]);_.c("web_shorts_paused_state_logging")&&_.zY(F,this.reelPlayerPausedStateRendererVe)}};
_.N.graftNvcRenderer=function(){var F,W,E,h,d=this.index<0?(F=this.shortsProcessedPrevSequence)==null?void 0:(W=F[this.shortsProcessedPrevSequence.length+this.index])==null?void 0:W.command:(E=this.shortsProcessedSequence)==null?void 0:(h=E[this.index])==null?void 0:h.command;if(d&&this.isNonVideoContentCommand(d)){F=_.D(d,_.ni);var V,R;(F=(V=_.D(F==null?void 0:F.renderer,_.o4X))==null?void 0:(R=V.loggingDirectives)==null?void 0:R.trackingParams)&&_.z4().graftServerVe(F)}};
_.N.setActiveIndex=function(){_.WZ().resolve(_.Uk).setActiveIndex(this.index)};
_.N.onShortsPipActiveChanged=function(){this.isShortsMiniplayerActive()&&this.updateMiniplayerData()};
_.N.lazyUpdateMiniplayerData=function(){var F=this;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.updateMiniplayerDataJobId=_.P0.addLowPriorityJob(function(){F.updateMiniplayerData();F.updateMiniplayerDataJobId=void 0}))};
_.N.cancelPreviousMiniplayerDataUpdate=function(){this.updateMiniplayerDataJobId&&_.P0.cancelJob(this.updateMiniplayerDataJobId)};
_.N.updateMiniplayerData=function(){var F,W,E,h=_.WZ().resolve(_.GF),d={shortsData:this.getCurrentShort(),previousButtonDisabled:!((F=this.prevButtonData)==null||!F.isDisabled),nextButtonDisabled:!((W=this.nextButtonData)==null||!W.isDisabled),playabilityStatus:(E=this.playerData)==null?void 0:E.playabilityStatus};_.q9(h,d)};
_.N.resetPlayerLocation=function(){var F=this.getPlayer();this.initialPlayerContainer&&F.appendTo(this.initialPlayerContainer,void 0,!0);this.shortsInnerContainer&&this.overlayContainer&&(this.shortsInnerContainer.appendChild(this.overlayContainer),this.overlayContainer=void 0)};
_.N.movePlayerToVideo=function(F,W){var E=this;W=W===void 0?!0:W;var h=this.getActiveReelVideo(F),d=this.getPlayer();if(h){this.overlayContainer||(this.overlayContainer=_.Z(this.hostElement).querySelector("ytd-reel-video-renderer")||void 0,this.isShortsMiniplayerActive()||d.appendTo(this.overlayContainer.playerContainer,void 0,!0));h.appendChild(this.overlayContainer);var V;(V=this.player)==null||V.setSize(NaN,NaN);this.isActive||_.sB(_.P0,function(){E.isActive=!0});
d.style.visibility="visible";_.c("reels_web_disable_rtr_tick")||_.c("reels_web_use_pbs_first_shorts")&&F===0||_.P5("r_tr");this.currentPlayerIndex=F;h.appendChild(this.errorScreenContainer);var R;(R=this.JSC$19644_cinematicController)==null||_.rQ$(R)}else W?_.P0.addLowPriorityJob(function(){E.movePlayerToVideo(E.index,!1)}):Math.random()<=_.dV("web_shorts_error_logging_threshold")&&_.fn(new _.xC("Trying to movePlayerToVideo with undefined container.",{firstAttempt:W,
index:F}))};
_.N.enableFormatFirst=function(F){return _.c("web_enable_format_first")||F.adsOverlay&&_.c("web_enable_format_first_ads_only")||F.reelPlayerOverlayRenderer&&_.c("web_enable_format_first_organic_only")};
_.N.getAspectRatio=function(F){if(F!=null&&F.thumbnail&&this.enableFormatFirst(F))return"--ytd-shorts-player-ratio: "+Gv$(F.thumbnail)};
_.N.getBackgroundImage=function(F){if(F!=null&&F.thumbnail)return(F=_.KK(F.thumbnail.thumbnails))?'background-image:url("'+F+'");':"background-color:black;"};
_.N.onPersistentPanelActiveChanged=function(){var F=this.getCurrentShort();if(F&&this.enableFormatFirst(F)&&(F==null?0:F.thumbnail)&&Gv$(F.thumbnail)!==.5625){var W;(W=this.player)==null||W.setSize(NaN,NaN)}};
_.N.isShortsMiniplayerActive=function(){return this.shortsPipEnabled&&this.isShortsPipActive};
_.N.moveCinematicsToVideo=function(){var F=_.Z(this.hostElement).querySelector("ytd-reel-video-renderer");(F==null?0:F.cinematicContainer)&&F.cinematicContainer!==this.shortsCinematicContainer.parentElement&&F.cinematicContainer.appendChild(this.shortsCinematicContainer)};
_.N.onPrevButtonDataChange=function(){this.updatePrevButtonData()};
_.N.updatePrevButtonData=function(){var F=this.get("overlay.reelPlayerOverlayRenderer.prevItemButton.buttonRenderer",this.data);if(F){var W;this.prevButtonData=F=Object.assign({},F,{accessibility:{label:_.CY("PREVIOUS_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_UP"},isDisabled:F.isDisabled||this.index===-(((W=this.shortsProcessedPrevSequence)==null?void 0:W.length)||0),tooltip:this.isUpArrowHidden?"":_.CY("PREVIOUS_VIDEO_LABEL")})}else this.prevButtonData&&(this.prevButtonData=F=Object.assign({},
this.prevButtonData,{isDisabled:!1}))};
_.N.onNextButtonDataChange=function(){this.updateNextButtonData()};
_.N.updateNextButtonData=function(){var F=this.get("overlay.reelPlayerOverlayRenderer.nextItemButton.buttonRenderer",this.data);if(F){var W;this.nextButtonData=F=Object.assign({},F,{accessibility:{label:_.CY("NEXT_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_DOWN"},isDisabled:F.isDisabled||this.index===((W=this.shortsProcessedSequence)==null?void 0:W.length),tooltip:_.CY("NEXT_VIDEO_LABEL")||""})}};
_.N.getPlayablePreviousIndex=function(){for(var F,W=this.index-1;W>=-(((F=this.prevShortsSequence)==null?void 0:F.length)||0);W--)if(!Kwq().includes(W))return W;return null};
_.N.getIndexInSequence=function(F,W){return F.findIndex(function(E){var h;return((h=_.D(E.command,_.DP))==null?void 0:h.videoId)===W})};
_.N.handlePrevButtonClick=function(F){var W=this,E,h;return _.e(function(d){E=W.getPlayablePreviousIndex();if(E===null)return d.return();W.gestureType=((h=F)==null?void 0:h.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";E===0&&(W.hidePreviousButtonImmediately=!0);if(W.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){W.transitionToVideoThrottle.fire(E)}),d.return();
W.scrollToVideoThrottle.fire(E);_.gG(d)})};
_.N.getPlayableNextIndex=function(){for(var F,W=this.index+1;W<(((F=this.shortsProcessedSequence)==null?void 0:F.length)||0);W++)if(!Kwq().includes(W))return W;return null};
_.N.handleNextButtonClick=function(F,W){var E=this,h,d;return _.e(function(V){h=E.getPlayableNextIndex();if(h===null)return V.return();h===1&&(E.showPreviousButtonImmediately=!0);E.gestureType=((d=F)==null?void 0:d.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";W&&(E.gestureType=W);if(E.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){E.transitionToVideoThrottle.fire(h)}),V.return();
E.scrollToVideoThrottle.fire(h);_.gG(V)})};
_.N.handleReelNavigateCommand=function(F,W,E){(F=_.D(F,M0u))&&W&&F.destination==="REEL_NAVIGATION_DESTINATION_NEXT"&&this.handleNextButtonClick(E)};
_.N.loadVideo=function(F,W){W=W===void 0?!1:W;if(F!==this.currentPlayerIndex){_.uC().dispatch(V5(!1));if(this.isAd()&&!W){var E;(E=this.player)==null||E.notifyShortsAdSwipeEvent()}if((W=this.JSC$19644_cinematicController)!=null){var h;(h=W.currentCinematicEffect)==null||h.pause()}if((h=this.JSC$19644_cinematicController)!=null){var d;(d=h.currentCinematicEffect)==null||d.clear()}h=F>this.index;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.setMiniplayerPreview(h));
this.getPlayer().style.visibility="hidden";this.overlayContainer&&(this.overlayContainer.querySelector("#experiment-overlay").style.display="none");var V,R,M,g;d=F<0?(V=this.shortsProcessedPrevSequence)==null?void 0:(R=V[this.shortsProcessedPrevSequence.length+F])==null?void 0:R.command:(M=this.shortsProcessedSequence)==null?void 0:(g=M[F])==null?void 0:g.command;this.index=F;this.gestureType||(this.gestureType=h?"INTERACTION_LOGGING_GESTURE_TYPE_SWIPE":"INTERACTION_LOGGING_GESTURE_TYPE_BACK_SWIPE");
d&&this.isVideoContentCommand(d)&&(this.ytComponentBehavior.resolveCommand(d,{form:{createScreenConfig:{clickedVisualElement:h?this.nextReelVe:this.prevReelVe,implicitGestureType:this.gestureType}}}),this.gestureType=void 0);if(d&&this.isNonVideoContentCommand(d)){this.currentEndpoint=d;this.data=void 0;V=_.z4();R=_.D(d,_.ni);var t,C;(R=(t=_.D(R==null?void 0:R.renderer,_.o4X))==null?void 0:(C=t.screenLoggingData)==null?void 0:C.screenVeType)&&_.QH(V,R);this.currentPlayerIndex=-1;this.player&&this.isShortPlayable()&&
this.player.pauseVideo()}var B,I;if(((B=this.reelWatchSequenceResponse)==null?0:B.continuationEndpoint)&&((I=this.reelWatchSequenceResponse)==null?0:I.entries)&&F===this.reelWatchSequenceResponse.entries.length-1){var x,A;t={contentPlaybackContext:_.xu({},(A=_.D((x=this.currentEndpoint)==null?void 0:x.commandMetadata,_.m1))==null?void 0:A.url,window.location.href)};this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.continuationEndpoint,{form:t})}var X,P,b;((X=this.reelWatchSequenceResponse)==
null?0:X.prevContinuationEndpoint)&&F===-(((P=this.reelWatchSequenceResponse)==null?void 0:(b=P.prevEntries)==null?void 0:b.length)||0)&&this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.prevContinuationEndpoint)}};
_.N.setMiniplayerPreview=function(F){F=(F===void 0?0:F)?this.getPlayableNextIndex():this.getPlayablePreviousIndex();var W,E,h=_.WZ().resolve(_.GF),d={shortsData:void 0,shortsPreviewThumbnail:F?(W=this.shortsProcessedSequence)==null?void 0:(E=W[F])==null?void 0:E.thumbnail:void 0};_.q9(h,d)};
_.N.updateTitle=function(F){var W,E;F=(F==null?0:F.adPlacements)?"":(E=F==null?void 0:(W=F.videoDetails)==null?void 0:W.title)!=null?E:"";_.hF(this.hostElement,"yt-update-title",F)};
_.N.registerPanel=function(F){var W=_.WZ().resolve(_.sL);if(W){F=_.U(F.engagementPanels||[]);for(var E=F.next();!E.done;E=F.next()){E=E.value;var h=E.engagementPanelSectionListRenderer,d=void 0,V=void 0,R=void 0,M=void 0,g=((d=h)==null?void 0:d.targetId)||((V=h)==null?void 0:V.panelIdentifier)||((R=h)==null?void 0:(M=R.identifier)==null?void 0:M.tag);d=h=void 0;(d=(h=W).registerPanelContent)==null||d.call(h,g,E)}}};
_.N.processResetAction=function(){this.currentPlayerIndex=this.index=0;this.playerData=this.player=void 0;this.unregisterPanels();this.currentEndpoint=this.reelWatchSequenceResponse=this.data=void 0;this.endOfNextContinuation=this.isPersistentPanelActive=this.anchoredPanelActive=!1;_.uC().dispatch(V5(!1));this.isShortsInitialized=!1;this.resetPlayerLocation();_.uC().dispatch(FWT(!1));var F=_.WZ().resolve(_.Uk);F.dismissedIndices=[];F.watchWhileIndices.clear();this.isShortsMiniplayerActive()&&_.WZ().resolve(_.GF).close(!0)};
_.N.processAppendReelWatchSequenceContinuationEntriesAction=function(F){var W=this,E;(E=this.intersectionObserver)==null||E.disconnect();F=F.appendReelWatchSequenceContinuationEntriesAction;if(F==null?0:F.entries){var h;this.reelWatchSequenceResponse=Object.assign({},this.reelWatchSequenceResponse,{entries:[].concat(_.x9(((h=this.reelWatchSequenceResponse)==null?void 0:h.entries)||[]),_.x9(F.entries)),continuationEndpoint:F.continuationEndpoint})}else if(F==null?0:F.prevEntries){var d;this.reelWatchSequenceResponse=
Object.assign({},this.reelWatchSequenceResponse,{prevEntries:[].concat(_.x9(((d=this.reelWatchSequenceResponse)==null?void 0:d.prevEntries)||[]),_.x9(F.prevEntries)),prevContinuationEndpoint:F.prevContinuationEndpoint});_.P0.addLowPriorityJob(function(){W.movePlayerToVideo(W.index);var V;(V=W.getActiveReelVideo(W.index))==null||V.scrollIntoView({block:"nearest",inline:W.enableScrollIntoViewCenter?"center":"start"})})}else return;
_.P0.addLowPriorityJob(function(){W.observeShorts()},100)};
_.N.processWatchSequence=function(F){var W=this;return F.map(function(E){E=E.command;if(W.isVideoContentCommand(E)){var h=_.D(E,_.DP);return{reelPlayerOverlayRenderer:_.D(h==null?void 0:h.overlay,_.GaH),thumbnail:h.thumbnail,command:E}}return W.isNonVideoContentCommand(E)?(h=_.D(E,_.ni),{reelNonVideoContentRenderer:_.D(h==null?void 0:h.renderer,_.o4X),command:E}):{command:E}})};
_.N.calculateIntersectionObserverThreshold=function(){if(!_.c("web_shorts_dynamic_intersection_observer_threshold"))return.6;var F=_.Z(this.hostElement).querySelector("ytd-reel-video-renderer"),W=1;(F==null?0:F.offsetHeight)&&(F==null?0:F.offsetWidth)&&(W=Math.min(F.offsetHeight,this.shortsContainer.offsetHeight)/F.offsetHeight*(Math.min(F.offsetWidth,this.shortsContainer.offsetWidth)/F.offsetWidth));return Math.round(W*.6*10)/10};
_.N.isVideoContentCommand=function(F){_.WZ().resolve(_.Uk);return!!_.D(F,_.DP)};
_.N.isNonVideoContentCommand=function(F){_.WZ().resolve(_.Uk);return!!_.D(F,_.ni)};
_.N.initCinematicController=function(){var F=this;if(this.player&&this.shortsCinematicContainer){this.JSC$19644_cinematicController=new _.NP(this.shortsCinematicContainer,this.player);var W,E=_.D((W=this.data)==null?void 0:W.background,_.AY);_.i56(this.JSC$19644_cinematicController,E);_.jXO(this.JSC$19644_cinematicController,TOq(E));_.yQu(this.JSC$19644_cinematicController);_.P0.addLowPriorityJob(function(){F.moveCinematicsToVideo()})}};
_.N.handleMiniplayerNavigateShorts=function(F){F==="REEL_NAVIGATION_DESTINATION_NEXT"?this.handleNextButtonClick():F==="REEL_NAVIGATION_DESTINATION_PREV"&&this.handlePrevButtonClick()};
_.N.handleSignalActionToggleShortsPictureInPicture=function(){if(_.WZ().resolve(_.GF).pictureInPictureSupported()){var F=_.WZ().resolve(_.Uk);if(_.c("web_shorts_pip")){var W=_.WZ().resolve(_.GF);F.isShortsPipActive()?W.deactivate():W.isMiniplayerActive()||(_.DT().shortsPipActivation=!0,_.gw$(W))}}};
_.N.shouldDisplayReelVideoOverlay=function(F,W){return _.c("web_enable_shorts_new_carousel")?Math.abs(F-W)<2:!0};
_.Sn.Object.defineProperties(Cw.prototype,{prevShortsSequence:{configurable:!0,enumerable:!0,get:function(){var F;if((F=this.reelWatchSequenceResponse)!=null&&F.prevEntries)return this.processWatchSequence([].concat(_.x9(this.reelWatchSequenceResponse.prevEntries)).reverse())}},
shortsProcessedPrevSequence:{configurable:!0,enumerable:!0,get:function(){if(this.prevShortsSequence){var F=this.getCurrentShort();if(this.index>=0&&this.shortsProcessedPrevSequence||!F)return this.shortsProcessedPrevSequence;if(this.shortsProcessedPrevSequence){if(this.shortsProcessedPrevSequence.length<this.prevShortsSequence.length){var W=this.prevShortsSequence.length-this.shortsProcessedPrevSequence.length;return[].concat(_.x9(this.prevShortsSequence.slice(0,W)),[F],_.x9(this.prevShortsSequence.slice(W+
1)))}W=this.index+this.shortsProcessedPrevSequence.length;F.thumbnail=this.shortsProcessedPrevSequence[W].thumbnail;return[].concat(_.x9(this.shortsProcessedPrevSequence.slice(0,W)),[F],_.x9(this.shortsProcessedPrevSequence.slice(W+1)))}return this.prevShortsSequence}}},
shortsSequence:{configurable:!0,enumerable:!0,get:function(){var F;if((F=this.reelWatchSequenceResponse)!=null&&F.entries)return this.processWatchSequence(this.reelWatchSequenceResponse.entries)}},
shortsProcessedSequence:{configurable:!0,enumerable:!0,get:function(){if(this.data||this.shortsSequence){var F=this.getCurrentShort();if(!F||this.index<0)return this.shortsProcessedSequence;if(!this.shortsSequence)return[F];if(F==null||!F.reelNonVideoContentRenderer){var W=this.getIndexInSequence(this.shortsSequence,_.D(this.currentEndpoint,_.DP).videoId);if(this.index===0&&W!==-1)return this.currentPlayerIndex=this.index=W,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index),
[].concat(_.x9(this.shortsSequence.slice(0,this.index)),[F],_.x9(this.shortsSequence.slice(this.index+1)))}if(this.shortsProcessedSequence){F.thumbnail=this.shortsProcessedSequence[this.index].thumbnail;var E,h,d,V;W=((h=_.D((E=this.shortsProcessedSequence[0])==null?void 0:E.command,_.DP))==null?void 0:h.videoId)===((V=_.D((d=this.shortsSequence[0])==null?void 0:d.command,_.DP))==null?void 0:V.videoId)?this.index+1:this.index;this.deflateInactivePreviousSlides();return[].concat(_.x9(this.shortsProcessedSequence.slice(0,
this.index)),[F],_.x9(this.shortsSequence.slice(W)))}return[F].concat(_.x9(this.shortsSequence))}}},
isUpArrowHidden:{configurable:!0,enumerable:!0,get:function(){this.playablePreviousIndex=this.getPlayablePreviousIndex();var F=this.isFirstShorts(this.prevShortsSequence)||this.playablePreviousIndex===null;F&&(this.hidePreviousButtonImmediately=!1);if(this.showPreviousButtonImmediately){if(F)return!1;this.showPreviousButtonImmediately=!1}return this.hidePreviousButtonImmediately||this.isFirstShorts(this.prevShortsSequence)||this.playablePreviousIndex===null}},
isDownArrowHidden:{configurable:!0,enumerable:!0,get:function(){if(this.endOfNextContinuation){var F,W;return this.index===((F=this.reelWatchSequenceResponse)==null?void 0:(W=F.entries)==null?void 0:W.length)}var E;return!((E=this.reelWatchSequenceResponse)==null?0:E.entries)&&this.index===0}},
activeIndex:{configurable:!0,enumerable:!0,get:function(){var F;(F=this.delayedActiveIndexUpdateDebouncer)==null||F.fire(this.index);return this.index}},
shouldRenderOfflineContent:{configurable:!0,enumerable:!0,get:function(){var F,W,E;return this.isShortPlayable()||((W=_.D((F=this.data)==null?void 0:F.watchStatus,_.WyM))==null?void 0:(E=W.style)==null?void 0:E.value)!=="BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"?!1:!0}},
anchoredEngagementPanels:{configurable:!0,enumerable:!0,get:function(){var F=this,W=this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint),E;if((this.data||W)&&(((E=this.data)==null?0:E.engagementPanels)||this.isAd()||W)){W=!1;this.activePanel="shorts-comments-panel";var h;E=_.U(((h=this.data)==null?void 0:h.engagementPanels)||[]);for(h=E.next();!h.done;h=E.next()){h=h.value.engagementPanelSectionListRenderer;var d=void 0,V=void 0,R=void 0,M=void 0;if((((d=h)==null?void 0:(V=d.identifier)==
null?void 0:V.tag)||((R=h)==null?void 0:R.targetId)||((M=h)==null?void 0:M.panelIdentifier))===this.activePanel){W=!0;break}}if(this.isPersistentPanelActive){var g=_.WZ().resolve(_.sL);_.sB(_.P0,function(){g.showPanel(F.activePanel,void 0,void 0,void 0,null)},100)}var t;
E=[].concat(_.x9(Object.values(((t=this.data)==null?void 0:t.engagementPanels)||{})));if(_.c("enable_preview_panel_for_shorts_search_suggested_action")){var C,B,I,x,A;((x=_.D((C=this.data)==null?void 0:(B=C.overlay)==null?void 0:(I=B.reelPlayerOverlayRenderer)==null?void 0:I.metapanel,_.Tpz))==null?void 0:(A=x.metadataItems)==null?void 0:A.find(function(X){var P,b;return((P=_.D(X,zbw))==null?void 0:(b=P.icon)==null?void 0:b.iconType)==="SEARCH"}))!==void 0&&E.push({engagementPanelSectionListRenderer:{identifier:{tag:"PAsearch_preview"},
targetId:"PAsearch_preview"}})}t=this.get("overlay.reelPlayerOverlayRenderer.viewCommentsButton.buttonRenderer",this.data);C=this.get("overlay.reelPlayerOverlayRenderer.buttonBar.reelActionBarViewModel.buttonViewModels.2.buttonViewModel",this.data);return t===void 0&&C===void 0||(t==null?0:t.isDisabled)||(C==null?void 0:C.state)==="BUTTON_VIEW_MODEL_STATE_DISABLED"||this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint)||this.isAd()||!W?(W=E==null?void 0:E.findIndex(function(X){var P,
b;return((P=X.engagementPanelSectionListRenderer)==null?void 0:(b=P.identifier)==null?void 0:b.tag)==="shorts-comments-panel"}),W===-1||W===void 0||E!=null&&E.splice(W,1),[{engagementPanelSectionListRenderer:{header:{engagementPanelTitleHeaderRenderer:{title:{runs:[{text:_.CY("COMMENTS",void 0,"Comments")}]},
visibilityButton:{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CLOSE"},accessibilityData:{accessibilityData:{label:_.CY("CLOSE",void 0,"Close")}},command:{hideEngagementPanelEndpoint:{identifier:{surface:"ENGAGEMENT_PANEL_SURFACE_SHORTS",tag:"shorts-comments-panel"}}}}}}},content:{sectionListRenderer:{contents:[{itemSectionRenderer:{contents:[{messageRenderer:{style:{value:"RENDER_STYLE_PANEL"},text:{runs:[{text:_.CY("COMMENTS_OFF",void 0,"Comments are turned off. ")},
{text:" "},{text:_.CY("LEARN_MORE",void 0,"Learn more"),navigationEndpoint:{commandMetadata:{webCommandMetadata:{url:"https://support.google.com/youtube/answer/9706180",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://support.google.com/youtube/answer/9706180"}}}]}}}]}}]}},identifier:{surface:"ENGAGEMENT_PANEL_SURFACE_SHORTS",tag:"shorts-comments-panel"},loggingDirectives:{clientVeSpec:{uiType:139722}},visibility:"ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"}}].concat(_.x9(Object.values(E||
{})))):E}}},
activeReel:{configurable:!0,enumerable:!0,get:function(){var F;return(F=this.shortsProcessedSequence)==null?void 0:F[this.activeIndex]}},
errorScreen:{configurable:!0,enumerable:!0,get:function(){var F=this,W,E,h;if((W=this.playerData)==null?0:(E=W.playabilityStatus)==null?0:(h=E.errorScreen)==null?0:h.playerInterstitialRenderer)return _.P0.addLowPriorityJob(function(){F.movePlayerToVideo(F.index)}),this.playerData.playabilityStatus.errorScreen;
var d,V;return((d=this.data)==null?void 0:d.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&((V=this.data)==null?0:V.watchStatus)&&_.D(this.data.watchStatus,_.EAi)?(_.P0.addLowPriorityJob(function(){F.movePlayerToVideo(F.index)}),this.data.watchStatus):null}},
hasError:{configurable:!0,enumerable:!0,get:function(){return!!this.errorScreen}}});
_.Sn.Object.defineProperties(Cw,{template:{configurable:!0,enumerable:!0,get:function(){if(CX6===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shorts--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-shorts">\n  <div id="back-nav-button" class="style-scope ytd-shorts"></div>\n</div>\n<div id="offline-container" hidden="[[!shouldRenderOfflineContent]]" class="style-scope ytd-shorts"></div>\n<div id="shorts-container" hidden="[[shouldRenderOfflineContent]]" class="style-scope ytd-shorts">\n  <div id="cinematic-shorts-scrim" class="style-scope ytd-shorts"></div>\n  <div id="shorts-inner-container" class="style-scope ytd-shorts">\n    <template is="dom-if" if="[[enablePreviousContinuation]]" class="style-scope ytd-shorts">\n      <dom-repeat items="[[shortsProcessedPrevSequence]]" class="style-scope ytd-shorts">\n        <template class="style-scope ytd-shorts">\n          <div class="reel-video-in-sequence-new style-scope ytd-shorts" id$="[[calculatePrevIndex(index, shortsProcessedPrevSequence)]]" style$="[[getAspectRatio(item)]]">\n            <div class="reel-video-in-sequence-thumbnail style-scope ytd-shorts" style$="[[getBackgroundImage(item)]]">\n            </div>\n          </div>\n        </template>\n      </dom-repeat>\n    </template>\n    <dom-repeat items="[[shortsProcessedSequence]]" class="style-scope ytd-shorts">\n      <template class="style-scope ytd-shorts">\n        <div class="reel-video-in-sequence-new style-scope ytd-shorts" id$="[[index]]" style$="[[getAspectRatio(item)]]">\n          <div class="reel-video-in-sequence-thumbnail style-scope ytd-shorts" style$="[[getBackgroundImage(item)]]">\n          </div>\n        </div>\n      </template>\n    </dom-repeat>\n    <div id="initial-player-container" class="style-scope ytd-shorts">\n      <div id="shorts-cinematic-container" class="style-scope ytd-shorts"></div>\n      <ytd-player id="player" aria-hidden="[[hasError]]" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SHORTS" disable-touch-gestures="" class="style-scope ytd-shorts">\n      </ytd-player>\n      <yt-playability-error-supported-renderers id="error-screen" data="[[errorScreen]]" hidden$="[[!errorScreen]]" no-background="" class="style-scope ytd-shorts">\n      </yt-playability-error-supported-renderers>\n    </div>\n    <ytd-reel-video-renderer id="reel-video-renderer" data="[[getCurrentShort(data)]]" has-error="[[hasError]]" index="[[index]]" is-active="[[isActive]]" is-persistent-panel-active="[[isPersistentPanelActive]]" is-player-paused="[[isPlayerPaused]]" watch-while-engagement-panels="[[watchWhileEngagementPanels]]" on-overlay-density-changed="[[onOverlayDensityChanged]]" class="style-scope ytd-shorts">\n    </ytd-reel-video-renderer>\n  </div>\n</div>\n<div id="shorts-panel-container" class="style-scope ytd-shorts">\n  <div id="anchored-panel-scrim" on-click="handlePanelScrimClick" class="style-scope ytd-shorts"></div>\n  <div id="anchored-panel" class="anchored-panel style-scope ytd-shorts"></div>\n</div>\n<div class="navigation-container style-scope ytd-shorts">\n  <div class="navigation-button style-scope ytd-shorts" id="navigation-button-up">\n    <ytd-button-renderer button-tooltip-position="left" data="[[prevButtonData]]" fit-to-visible-bounds="[[fitToVisibleBounds]]" overrides="[[buttonOverride]]" on-click="handlePrevButtonClick" class="style-scope ytd-shorts">\n    </ytd-button-renderer>\n  </div>\n  <div class="navigation-button style-scope ytd-shorts" id="navigation-button-down">\n    <ytd-button-renderer button-tooltip-position="left" data="[[nextButtonData]]" fit-to-visible-bounds="[[fitToVisibleBounds]]" overrides="[[buttonOverride]]" on-click="handleNextButtonClick" class="style-scope ytd-shorts">\n    </ytd-button-renderer>\n  </div>\n</div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);CX6=F}F=CX6;return F}}});
Cw.prototype.onNextButtonDataChange=Cw.prototype.onNextButtonDataChange;Cw.prototype.onPrevButtonDataChange=Cw.prototype.onPrevButtonDataChange;Cw.prototype.onPersistentPanelActiveChanged=Cw.prototype.onPersistentPanelActiveChanged;Cw.prototype.lazyUpdateMiniplayerData=Cw.prototype.lazyUpdateMiniplayerData;Cw.prototype.onShortsPipActiveChanged=Cw.prototype.onShortsPipActiveChanged;Cw.prototype.setActiveIndex=Cw.prototype.setActiveIndex;Cw.prototype.graftNvcRenderer=Cw.prototype.graftNvcRenderer;
Cw.prototype.graftClientVisualElements=Cw.prototype.graftClientVisualElements;Cw.prototype.onActiveChanged=Cw.prototype.onActiveChanged;Cw.prototype.onShortsDismiss=Cw.prototype.onShortsDismiss;Cw.prototype.onShortUndoDismiss=Cw.prototype.onShortUndoDismiss;Cw.prototype.playerDataChanged=Cw.prototype.playerDataChanged;Cw.prototype.afterPlayerStarted=Cw.prototype.afterPlayerStarted;Cw.prototype.unhideCurrentOverlay=Cw.prototype.unhideCurrentOverlay;Cw.prototype.onServiceRequestCompleted=Cw.prototype.onServiceRequestCompleted;
Cw.prototype.engagementPanelsChanged=Cw.prototype.engagementPanelsChanged;Cw.prototype.onFullscreenChange=Cw.prototype.onFullscreenChange;Cw.prototype.onResize=Cw.prototype.onResize;_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],Cw.prototype,"ytComponentBehavior",void 0);_.T([_.J(_.$v.YtPageBehavior),_.Y("design:type",Object)],Cw.prototype,"ytPageBehavior",void 0);_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],Cw.prototype,"ytActionHandlerBehavior",void 0);
_.T([_.J(_.lB),_.Y("design:type",Object)],Cw.prototype,"ironResizableBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],Cw.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.O9),_.Y("design:type",Object)],Cw.prototype,"ytdDismissibleItemBehavior",void 0);_.T([_.J(_.y_.YtdGuideStateAwareBehavior),_.Y("design:type",Object)],Cw.prototype,"ytdGuideStateAwareBehavior",void 0);_.T([_.J(_.am),_.Y("design:type",Object)],Cw.prototype,"ytdReduxBehavior",void 0);
_.T([_.O(),_.Y("design:type",Object)],Cw.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Object)],Cw.prototype,"playerData",void 0);_.T([_.O(),_.Y("design:type",Object)],Cw.prototype,"reelWatchSequenceResponse",void 0);_.T([_.O(),_.Y("design:type",Object)],Cw.prototype,"cachedReelWatchSequenceResponse",void 0);_.T([_.O(),_.Y("design:type",Object)],Cw.prototype,"currentEndpoint",void 0);_.T([_.O(),_.Y("design:type",Object)],Cw.prototype,"nextButtonData",void 0);
_.T([_.O(),_.Y("design:type",Object)],Cw.prototype,"prevButtonData",void 0);_.T([_.O(),_.Y("design:type",Object)],Cw.prototype,"isPreviousPageShorts",void 0);_.T([_.O(),_.Y("design:type",Object)],Cw.prototype,"index",void 0);_.T([_.O(),_.Y("design:type",Object)],Cw.prototype,"delayedActiveIndex",void 0);_.T([_.O(),_.Y("design:type",Object)],Cw.prototype,"playablePreviousIndex",void 0);_.T([_.O(),_.Y("design:type",Object)],Cw.prototype,"player",void 0);
_.T([_.O(),_.Y("design:type",Object)],Cw.prototype,"isPlayerPaused",void 0);_.T([_.O({selector:wL$}),_.Y("design:type",Object)],Cw.prototype,"isPlayerStarted",void 0);_.T([_.O(),_.Y("design:type",Object)],Cw.prototype,"intersectionObserver",void 0);_.T([_.O(),_.Y("design:type",Number)],Cw.prototype,"cinematicsInitializeJobId",void 0);_.T([_.O(),_.Y("design:type",Number)],Cw.prototype,"updateMiniplayerDataJobId",void 0);_.T([_.O(),_.Y("design:type",Object)],Cw.prototype,"fitToVisibleBounds",void 0);
_.T([_.O(),_.Y("design:type",Object)],Cw.prototype,"pageSubtype",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Cw.prototype,"enablePreviousContinuation",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],Cw.prototype,"shortsPipEnabled",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],Cw.prototype,"isDark",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],Cw.prototype,"shortsViewTransitions",void 0);
_.T([_.O({selector:_.xa,reflectToAttribute:!0}),_.Y("design:type",Object)],Cw.prototype,"isFullscreen",void 0);_.T([_.O({selector:_.ka,reflectToAttribute:!0}),_.Y("design:type",Object)],Cw.prototype,"isShortsPipActive",void 0);_.T([_.gQ("#shorts-inner-container"),_.Y("design:type",HTMLElement)],Cw.prototype,"shortsInnerContainer",void 0);_.T([_.gQ("#back-nav-button ytd-button-renderer"),_.Y("design:type",_.w5)],Cw.prototype,"backNavButton",void 0);
_.T([_.gQ("#shorts-container"),_.Y("design:type",HTMLElement)],Cw.prototype,"shortsContainer",void 0);_.T([_.KA("error-screen"),_.Y("design:type",HTMLElement)],Cw.prototype,"errorScreenContainer",void 0);_.T([_.KA("player"),_.Y("design:type",Object)],Cw.prototype,"playerElement",void 0);_.T([_.KA("shorts-cinematic-container"),_.Y("design:type",HTMLElement)],Cw.prototype,"shortsCinematicContainer",void 0);
_.T([_.KA("initial-player-container"),_.Y("design:type",HTMLElement)],Cw.prototype,"initialPlayerContainer",void 0);_.T([_.O(),_.Y("design:type",Object)],Cw.prototype,"buttonOverride",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],Cw.prototype,"anchoredPanelActive",void 0);_.T([_.O(),_.Y("design:type",String)],Cw.prototype,"activePanel",void 0);_.T([_.O(),_.Y("design:type",Object)],Cw.prototype,"isActive",void 0);
_.T([_.O({selector:YHF,reflectToAttribute:!0}),_.Y("design:type",Object)],Cw.prototype,"smallScreenPersistentPanel",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],Cw.prototype,"isPersistentPanelActive",void 0);_.T([_.O(),_.Y("design:type",Object)],Cw.prototype,"smallScreenSqueezeBack",void 0);_.T([_.O(),_.Y("design:type",Object)],Cw.prototype,"enableScrollIntoViewCenter",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],Cw.prototype,"formatFirst",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],Cw.prototype,"enableFlexibleOverlay",void 0);_.T([_.O(),_.Y("design:type",Object)],Cw.prototype,"panelContainer",void 0);_.T([_.O(),_.Y("design:type",Object)],Cw.prototype,"overlayContainer",void 0);_.T([_.O(),_.Y("design:type",Object)],Cw.prototype,"isShortsInitialized",void 0);_.T([_.a("reelWatchSequenceResponse"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Cw.prototype,"prevShortsSequence",null);
_.T([_.a("data","prevShortsSequence"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Cw.prototype,"shortsProcessedPrevSequence",null);_.T([_.a("reelWatchSequenceResponse"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Cw.prototype,"shortsSequence",null);_.T([_.a("data","shortsSequence"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Cw.prototype,"shortsProcessedSequence",null);
_.T([_.O({reflectToAttribute:!0}),_.a("index","playablePreviousIndex","prevShortsSequence","hidePreviousButtonImmediately","showPreviousButtonImmediately"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Cw.prototype,"isUpArrowHidden",null);_.T([_.O({reflectToAttribute:!0}),_.a("reelWatchSequenceResponse","index","endOfNextContinuation"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Cw.prototype,"isDownArrowHidden",null);
_.T([_.O(),_.a("index"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],Cw.prototype,"activeIndex",null);_.T([_.a("isShortPlayable","data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Cw.prototype,"shouldRenderOfflineContent",null);_.T([_.R4("iron-resize"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Cw.prototype,"onResize",null);_.T([_.a("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Cw.prototype,"anchoredEngagementPanels",null);
_.T([_.O(),_.Y("design:type",Object)],Cw.prototype,"watchWhileEngagementPanels",void 0);_.T([_.ea("isFullscreen"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Cw.prototype,"onFullscreenChange",null);_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Cw.prototype,"engagementPanelsChanged",null);
_.T([_.R4("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.uz]),_.Y("design:returntype")],Cw.prototype,"onServiceRequestCompleted",null);_.T([_.a("data","shortsSequence","index"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Cw.prototype,"activeReel",null);_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Cw.prototype,"unhideCurrentOverlay",null);
_.T([_.ea("isPlayerStarted"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Cw.prototype,"afterPlayerStarted",null);_.T([_.a("playerData","reelWatchSequenceResponse","data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Cw.prototype,"errorScreen",null);_.T([_.a("errorScreen"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Cw.prototype,"hasError",null);
_.T([_.ea("playerData"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype",Promise)],Cw.prototype,"playerDataChanged",null);_.T([_.R4("yt-dismissible-item-undo-feedback"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Cw.prototype,"onShortUndoDismiss",null);_.T([_.R4("yt-disable-lockup-interaction"),_.Y("design:type",Function),_.Y("design:paramtypes",[Object]),_.Y("design:returntype")],Cw.prototype,"onShortsDismiss",null);
_.T([_.Cz("active"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Cw.prototype,"onActiveChanged",null);_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Cw.prototype,"graftClientVisualElements",null);_.T([_.ea("currentPlayerIndex"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Cw.prototype,"graftNvcRenderer",null);
_.T([_.ea("index"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Cw.prototype,"setActiveIndex",null);_.T([_.ea("isShortsPipActive"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Cw.prototype,"onShortsPipActiveChanged",null);_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Cw.prototype,"lazyUpdateMiniplayerData",null);
_.T([_.O(),_.Y("design:type",Object)],Cw.prototype,"onOverlayDensityChanged",void 0);_.T([_.ea("isPersistentPanelActive"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Cw.prototype,"onPersistentPanelActiveChanged",null);_.T([_.ea("index","data","isUpArrowHidden"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Cw.prototype,"onPrevButtonDataChange",null);
_.T([_.ea("index","data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Cw.prototype,"onNextButtonDataChange",null);Cw=_.T([_.y({is:"ytd-shorts"})],Cw);_.ZW.registerService(_.UKo,Cw);
_.Hb();
}catch(e){_._DumpException(e)}
try{
_.Xg("JzFVk");
var o0P=function(F){return _.z("ytd-button-banner-view-model",{class:"ytwYtdButtonBannerViewModelHost"},TfO(F.data.ctaButton,{buttonViewModel:{}}),_.z(_.Ab,{text:F.data.subtext,className:"ytwYtdButtonBannerViewModelSubtext"}))};var Gs$;var YCq;var f9=function(){return _.n.apply(this,arguments)||this};
_.k(f9,_.n);f9.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
f9.prototype.computeBlueBottomLink=function(F){return F};
_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],f9.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],f9.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],f9.prototype,"data",void 0);_.T([_.O({computed:"computeIcon_(data.bottomIcon)"}),_.Y("design:type",String)],f9.prototype,"bottomIcon",void 0);
_.T([_.O({computed:"computeBlueBottomLink(data.blueBottomLink)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],f9.prototype,"enableBlueBottomLink",void 0);f9=_.T([_.y({is:"ytd-web-answer-renderer",disableElementRegistration:!0})],f9);
_.r(f9,"ytd-web-answer-renderer",function(){if(YCq!==void 0)return YCq;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-web-answer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="section-header" class="style-scope ytd-web-answer-renderer">\n  <yt-formatted-string id="section-title" text="[[data.sectionTitle]]" class="style-scope ytd-web-answer-renderer"></yt-formatted-string>\n  <div id="menu" class="style-scope ytd-web-answer-renderer"></div>\n</div>\n<a class="yt-simple-endpoint style-scope ytd-web-answer-renderer" href$="[[computeHref_(data.command)]]" data="[[data.command]]">\n  <div id="content" class="style-scope ytd-web-answer-renderer">\n    <div id="content-text" class="style-scope ytd-web-answer-renderer">\n      <div id="content-title" class="style-scope ytd-web-answer-renderer">\n        <yt-formatted-string id="content-title" text="[[data.contentTitle]]" class="style-scope ytd-web-answer-renderer">\n        </yt-formatted-string>\n        <yt-icon class="external-link-icon style-scope ytd-web-answer-renderer" icon="yt-icons:open_in_new"></yt-icon>\n      </div>\n      <yt-formatted-string id="body-text" text="[[data.bodyText]]" class="style-scope ytd-web-answer-renderer"></yt-formatted-string>\n      <div id="source-group" class="style-scope ytd-web-answer-renderer">\n        <yt-formatted-string text="[[data.sourceName]]" class="style-scope ytd-web-answer-renderer"></yt-formatted-string>\n        <div id="separator" hidden="[[!data.publishedDate]]" class="style-scope ytd-web-answer-renderer">\u2022</div>\n        <yt-formatted-string text="[[data.publishedDate]]" class="style-scope ytd-web-answer-renderer"></yt-formatted-string>\n      </div>\n    </div>\n    <yt-img-shadow id="answer-image" hidden="[[!data.image]]" thumbnail="[[data.image]]" width="100" class="style-scope ytd-web-answer-renderer">\n    </yt-img-shadow>\n  </div>\n</a>\n<a class="yt-simple-endpoint style-scope ytd-web-answer-renderer" hidden="[[!data.bottomLink]]" href$="[[computeHref_(data.bottomLinkCommand)]]" data="[[data.bottomLinkCommand]]">\n  <div id="bottom-section" class="style-scope ytd-web-answer-renderer">\n    <yt-icon id="bottom-icon" icon="[[bottomIcon]]" class="style-scope ytd-web-answer-renderer"></yt-icon>\n    <yt-formatted-string id="bottom-link" text="[[data.bottomLink]]" class="style-scope ytd-web-answer-renderer"></yt-formatted-string>\n    <yt-icon class="external-link-icon style-scope ytd-web-answer-renderer" icon="yt-icons:open_in_new"></yt-icon>\n  </div>\n</a>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return YCq=F},{mode:_.E6("kevlar_poly_si_batch_j035")?1:2});var w1g;var O7=function(){var F=_.n.apply(this,arguments)||this;F.hasChipBar=!1;return F};
_.k(O7,_.n);O7.prototype.configureRendererStamper=function(){return{"data.chipBar":{id:"chip-bar",mapping:{chipCloudRenderer:{component:"yt-chip-cloud-renderer"}}},"data.searchFilterButton":{id:"filter-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}},reuseComponents:!1},"data.aboutTheseResultsButton":{id:"about-these-results",mapping:{buttonRenderer:{component:"ytd-button-renderer"}},reuseComponents:!1}}};
O7.prototype.computeHasChipBar=function(F){return!(F==null||!F.chipBar)};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],O7.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],O7.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],O7.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0,computed:"computeHasChipBar(data)"}),_.Y("design:type",Object)],O7.prototype,"hasChipBar",void 0);O7=_.T([_.y({is:"ytd-search-header-renderer",disableElementRegistration:!0})],O7);
_.r(O7,"ytd-search-header-renderer",function(){if(w1g!==void 0)return w1g;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="chip-bar" class="style-scope ytd-search-header-renderer"></div>\n<div id="about-these-results" class="style-scope ytd-search-header-renderer"></div>\n<div id="filter-button" class="style-scope ytd-search-header-renderer"></div>\n\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return w1g=F},{mode:1});var uzK;var b7=function(){return _.n.apply(this,arguments)||this};
_.k(b7,_.n);b7.prototype.configureRendererStamper=function(){return{"data.pages":{id:"pages",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],b7.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],b7.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],b7.prototype,"data",void 0);b7=_.T([_.y({disableElementRegistration:!0,is:"ytd-page-continuation"})],b7);
_.r(b7,"ytd-page-continuation",function(){if(uzK!==void 0)return uzK;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-page-continuation--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="pages" class="style-scope ytd-page-continuation"></div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return uzK=F},{mode:1});var SC$;var p1F;var mqK;var l7=function(){return _.n.apply(this,arguments)||this};
_.k(l7,_.n);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],l7.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],l7.prototype,"data",void 0);l7=_.T([_.y({disableElementRegistration:!0,is:"ytd-watch-card-one-vs-one-event"})],l7);
_.r(l7,"ytd-watch-card-one-vs-one-event",function(){if(mqK!==void 0)return mqK;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-one-vs-one-event--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="team-row style-scope ytd-watch-card-one-vs-one-event">\n  <span class="style-scope ytd-watch-card-one-vs-one-event">[[getSimpleString(data.homeName)]]</span>\n  <span class="style-scope ytd-watch-card-one-vs-one-event">[[getSimpleString(data.homeParticipantResult)]]</span>\n</div>\n<div class="team-row style-scope ytd-watch-card-one-vs-one-event">\n  <span class="style-scope ytd-watch-card-one-vs-one-event">[[getSimpleString(data.awayName)]]</span>\n  <span class="style-scope ytd-watch-card-one-vs-one-event">[[getSimpleString(data.awayParticipantResult)]]</span>\n</div>\n<div class="main-event event-description style-scope ytd-watch-card-one-vs-one-event">[[getSimpleString(data.eventDescription)]]</div>\n<div class="event-description style-scope ytd-watch-card-one-vs-one-event">[[getSimpleString(data.additionalEventDescription)]]</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return mqK=F},{mode:1});var n9=function(){return _.n.apply(this,arguments)||this};
_.k(n9,_.n);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],n9.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],n9.prototype,"data",void 0);n9=_.T([_.y({is:"ytd-watch-card-hero-one-vs-one-event-renderer",disableElementRegistration:!0})],n9);
_.r(n9,"ytd-watch-card-hero-one-vs-one-event-renderer",function(){if(p1F!==void 0)return p1F;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-hero-one-vs-one-event-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="wc-endpoint" class="yt-simple-endpoint style-scope ytd-watch-card-hero-one-vs-one-event-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n<ytd-thumbnail data="[[data]]" disable-rounding="" width="386" class="style-scope ytd-watch-card-hero-one-vs-one-event-renderer"></ytd-thumbnail>\n\n<div id="bottom-fade" class="style-scope ytd-watch-card-hero-one-vs-one-event-renderer">\n  <ytd-watch-card-one-vs-one-event class="hero style-scope ytd-watch-card-hero-one-vs-one-event-renderer" data="[[data.oneVsOneEvent]]">\n  </ytd-watch-card-one-vs-one-event>\n</div>\n    </a>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return p1F=F},{mode:1});var KzO;var yX=function(){return _.n.apply(this,arguments)||this};
_.k(yX,_.n);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],yX.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],yX.prototype,"data",void 0);yX=_.T([_.y({is:"ytd-banner-and-box-hero-image-renderer",disableElementRegistration:!0})],yX);
_.r(yX,"ytd-banner-and-box-hero-image-renderer",function(){if(KzO!==void 0)return KzO;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-banner-and-box-hero-image-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow id="banner" thumbnail="[[data.banner]]" width="386" class="style-scope ytd-banner-and-box-hero-image-renderer"></yt-img-shadow><svg id="bg" viewBox="0 0 1300 304" preserveAspectRatio="xMaxYMid slice" class="style-scope ytd-banner-and-box-hero-image-renderer"><path opacity="0.5" d="M 0,304 V 0 H 963 L 1439,304 Z" class="style-scope ytd-banner-and-box-hero-image-renderer"></path><path opacity="0.5" d="M 0,0 l 0,304 580,0 L 1055,0 0,0 Z" class="style-scope ytd-banner-and-box-hero-image-renderer"></path><path opacity="0.9" d="M 0,304 V 0 H 780 L 1247,304 Z" class="style-scope ytd-banner-and-box-hero-image-renderer"></path></svg><yt-img-shadow id="box" height="184" thumbnail="[[data.box]]" width="131" class="style-scope ytd-banner-and-box-hero-image-renderer"></yt-img-shadow>');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return KzO=F},{mode:1});var Fw$;var jp=function(){var F=_.n.apply(this,arguments)||this;F.modern=_.c("web_modern_buttons");return F};
_.k(jp,_.n);jp.prototype.computeIcon=function(){var F,W,E=(F=this.data)==null?void 0:(W=F.icon)==null?void 0:W.iconType;if(E)return _.Vd(E)};
jp.prototype.computeButtonShape=function(){var F;return{buttonText:_.Yr((F=this.data)==null?void 0:F.label),iconPosition:"leading",style:"overlay",type:"filled",size:"M",state:"active"}};
_.Sn.Object.defineProperties(jp.prototype,{buttonColor:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style.replace("CALL_TO_ACTION_BUTTON_RENDERER_STYLE_",""):"RED"}}});
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],jp.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],jp.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],jp.prototype,"modern",void 0);_.T([_.O({type:_.c("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.a("data.style"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],jp.prototype,"buttonColor",null);
jp=_.T([_.y({is:"ytd-call-to-action-button-renderer",disableElementRegistration:!0})],jp);
_.r(jp,"ytd-call-to-action-button-renderer",function(){if(Fw$!==void 0)return Fw$;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-call-to-action-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-button id="overlay-button" hidden="[[modern]]" raised="" tabindex="-1" class="style-scope ytd-call-to-action-button-renderer">\n  <yt-icon id="overlay-icon" icon="[[data.icon.iconType]]" class="style-scope ytd-call-to-action-button-renderer"></yt-icon>\n  <span id="overlay-text" class="style-scope ytd-call-to-action-button-renderer">[[getSimpleString(data.label)]]</span>\n</tp-yt-paper-button>\n<yt-button-shape data="[[computeButtonShape(data)]]" disable-upgrade="[[!modern]]" hidden="[[!modern]]" icon-name="[[computeIcon(data.icon.iconType)]]" class="style-scope ytd-call-to-action-button-renderer">\n</yt-button-shape>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return Fw$=F},{mode:1});var Wwu;var i7=function(){return _.n.apply(this,arguments)||this};
_.k(i7,_.n);i7.prototype.onLeftThumbnailChanged=function(){this.data&&this.data.leftThumbnail&&(_.Z(this.hostElement).querySelector("#section-left").style.backgroundImage="url("+_.m_(this.data.leftThumbnail.thumbnails,216)+")")};
i7.prototype.onLeftThumbnailChanged=i7.prototype.onLeftThumbnailChanged;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],i7.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],i7.prototype,"data",void 0);_.T([_.ea("data.leftThumbnail"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],i7.prototype,"onLeftThumbnailChanged",null);i7=_.T([_.y({is:"ytd-collage-hero-image-renderer",disableElementRegistration:!0})],i7);
_.r(i7,"ytd-collage-hero-image-renderer",function(){if(Wwu!==void 0)return Wwu;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-collage-hero-image-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="collage" class="style-scope ytd-collage-hero-image-renderer"><div id="section-left" class="style-scope ytd-collage-hero-image-renderer"></div><div id="section-right" class="style-scope ytd-collage-hero-image-renderer"><yt-img-shadow id="top-right" height="105" thumbnail="[[data.topRightThumbnail]]" width="167" class="style-scope ytd-collage-hero-image-renderer"></yt-img-shadow><yt-img-shadow height="105" thumbnail="[[data.bottomRightThumbnail]]" width="167" class="style-scope ytd-collage-hero-image-renderer"></yt-img-shadow></div></div>');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return Wwu=F},{mode:1});var EH6;var rK=function(){return _.n.apply(this,arguments)||this};
_.k(rK,_.n);rK.prototype.computeStyle=function(F){return F};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],rK.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],rK.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.Y("design:type",String)],rK.prototype,"componentStyle",void 0);rK=_.T([_.y({is:"ytd-single-hero-image-renderer",disableElementRegistration:!0})],rK);
_.r(rK,"ytd-single-hero-image-renderer",function(){if(EH6!==void 0)return EH6;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-single-hero-image-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow id="image" thumbnail="[[data.thumbnail]]" width="386" class="style-scope ytd-single-hero-image-renderer"></yt-img-shadow>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return EH6=F},{mode:1});var hCK;var T7=function(){return _.n.apply(this,arguments)||this};
_.k(T7,_.n);_.N=T7.prototype;
_.N.configureRendererStamper=function(){return{"data.heroImage":{id:"hero-image",mapping:{bannerAndBoxHeroImageRenderer:"ytd-banner-and-box-hero-image-renderer",singleHeroImageRenderer:"ytd-single-hero-image-renderer",collageHeroImageRenderer:"ytd-collage-hero-image-renderer"}},"data.callToActionButton":{id:"call-to-action-button",mapping:{callToActionButtonRenderer:"ytd-call-to-action-button-renderer"}},"data.reminderButton":{id:"reminder-button",mapping:{toggleButtonRenderer:"ytd-toggle-button-renderer",upcomingEventReminderButtonRenderer:"ytd-upcoming-event-reminder-button-renderer",
buttonRenderer:"ytd-button-renderer"}},"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayPlaybackStatusRenderer:"ytd-thumbnail-overlay-playback-status-renderer",thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer",thumbnailOverlayResumePlaybackRenderer:"ytd-thumbnail-overlay-resume-playback-renderer",thumbnailOverlaySidePanelRenderer:"ytd-thumbnail-overlay-side-panel-renderer",thumbnailOverlayTimeStatusRenderer:"ytd-thumbnail-overlay-time-status-renderer",thumbnailOverlayToggleButtonRenderer:"ytd-thumbnail-overlay-toggle-button-renderer"},
initialRenderPriority:_.c("defer_overlays")?0:void 0,waitForSignal:"eocs"}}};
_.N.computeSubtitle=function(F){if(this.data){var W;if(this.data.upcomingEventData){F=_.Yr(F.subtitle);var E=Number(this.data.upcomingEventData.startTime);isNaN(E)||(W=_.Gr(_.Tt(F,E)))}else W=F.subtitle;return W}};
_.N.onHeroTap=function(F){F.preventDefault();var W=this.data&&this.data.navigationEndpoint;!W||!_.Sc(_.TB(F),this.hostElement,["YTD-CALL-TO-ACTION-BUTTON-RENDERER"])&&_.Sc(_.TB(F),this.hostElement,["A".toString(),"BUTTON".toString()])||(_.c("kevlar_watchcard_hero_video_renderer_killswitch")?_.hF(this.hostElement,"yt-navigate",{navigationEndpoint:W}):this.ytComponentBehavior.resolveCommand(W))};
_.N.computeHeroTabIndex=function(F){return F&&F.simpleText?-1:0};
_.N.computeHeroRole=function(F){return F&&F.simpleText?"":"link"};
_.N.computeIsReminderButtonPresent=function(F){return!(!F||!F.reminderButton)};
_.N.computeHideBottomItems=function(F){return!(this.computeIsReminderButtonPresent(F)||F.subtitle)};
_.N.dataChanged=function(){var F=this.get("data.buttons.buttonRenderer.serviceEndpoint"),W;((W=_.D(F==null?void 0:F.commandMetadata,_.aH))==null?0:W.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(F)};
T7.prototype.dataChanged=T7.prototype.dataChanged;_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],T7.prototype,"ytComponentBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],T7.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],T7.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],T7.prototype,"data",void 0);
_.T([_.O({computed:"computeSubtitle(data)"}),_.Y("design:type",String)],T7.prototype,"subtitle",void 0);_.T([_.O({computed:"computeIsReminderButtonPresent(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],T7.prototype,"isReminderButtonPresent",void 0);_.T([_.O({computed:"computeHideBottomItems(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],T7.prototype,"hideBottomItems",void 0);
_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],T7.prototype,"dataChanged",null);T7=_.T([_.y({is:"ytd-watch-card-hero-video-renderer",disableElementRegistration:!0})],T7);
_.r(T7,"ytd-watch-card-hero-video-renderer",function(){if(hCK!==void 0)return hCK;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-hero-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="watch-card-endpoint" class="yt-simple-endpoint style-scope ytd-watch-card-hero-video-renderer" on-tap="onHeroTap" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" tabindex$="[[computeHeroTabIndex(data.title)]]" role$="[[computeHeroRole(data.title)]]">\n  <ytd-thumbnail data="[[data]]" disable-rounding="" hidden$="[[!data.thumbnail]]" width="386" class="style-scope ytd-watch-card-hero-video-renderer">\n  </ytd-thumbnail>\n  <div id="hero-image" class="style-scope ytd-watch-card-hero-video-renderer"></div>\n  <div class="title-container style-scope ytd-watch-card-hero-video-renderer" hidden="[[!data.title]]">\n    <div class="title-fade style-scope ytd-watch-card-hero-video-renderer">\n      <a id="watch-card-title" class="yt-simple-endpoint style-scope ytd-watch-card-hero-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n        <yt-formatted-string id="watch-card-title" text="[[data.title]]" class="style-scope ytd-watch-card-hero-video-renderer">\n        </yt-formatted-string>\n      </a>\n      <div id="bottom-items" hidden="[[hideBottomItems]]" class="style-scope ytd-watch-card-hero-video-renderer">\n        <ytd-badge-supported-renderer id="watch-card-badge" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-watch-card-hero-video-renderer">\n        </ytd-badge-supported-renderer>\n        <yt-formatted-string id="watch-card-subtitle" text="[[subtitle]]" class="style-scope ytd-watch-card-hero-video-renderer">\n        </yt-formatted-string>\n        <div id="reminder-button" class="style-scope ytd-watch-card-hero-video-renderer"></div>\n      </div>\n    </div>\n  </div>\n  <div id="call-to-action-button" class="style-scope ytd-watch-card-hero-video-renderer"></div>\n  <div id="overlays" class="style-scope ytd-watch-card-hero-video-renderer"></div>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return hCK=F},{mode:1});var dLP;var oN=function(){return _.n.apply(this,arguments)||this};
_.k(oN,_.n);_.N=oN.prototype;_.N.configureRendererStamper=function(){return{"data.callToActionButtons":{id:"call-to-action-buttons",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer",subscriptionNotificationToggleButtonRenderer:"ytd-subscription-notification-toggle-button-renderer"}}}};
_.N.computeTitleBadges=function(F){return F?[F]:[]};
_.N.computeHeaderStyle=function(F){return F?F.replace("WATCH_CARD_RICH_HEADER_RENDERER_STYLE_","").toLowerCase():""};
_.N.computeAvatarAriaLabel=function(F){if(F){var W,E,h,d;return(d=(W=F.avatar)==null?void 0:(E=W.accessibility)==null?void 0:(h=E.accessibilityData)==null?void 0:h.label)!=null?d:_.Yr(F==null?void 0:F.title)}};
_.N.computeAvatarHeight=function(F){return F==="WATCH_CARD_RICH_HEADER_RENDERER_STYLE_LEFT_AVATAR"?72:48};
_.N.computeBadgeRowClass=function(F){return(F==null?0:F[0].metadataBadgeRenderer)?"layout-block":"layout-inline"};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],oN.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],oN.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],oN.prototype,"data",void 0);_.T([_.O({computed:"computeTitleBadges(data.titleBadge)"}),_.Y("design:type",Array)],oN.prototype,"titleBadges",void 0);
_.T([_.O({reflectToAttribute:!0,computed:"computeHeaderStyle(data.style)"}),_.Y("design:type",String)],oN.prototype,"headerStyle",void 0);_.T([_.O({reflectToAttribute:!0,computed:"computeBadgeRowClass(data.badges)"}),_.Y("design:type",String)],oN.prototype,"badgeRowClass",void 0);oN=_.T([_.y({is:"ytd-watch-card-rich-header-renderer",disableElementRegistration:!0})],oN);
_.r(oN,"ytd-watch-card-rich-header-renderer",function(){if(dLP!==void 0)return dLP;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-rich-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-watch-card-rich-header-renderer">\n  <div id="body" class="style-scope ytd-watch-card-rich-header-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-watch-card-rich-header-renderer" href$="[[computeHref_(data.titleNavigationEndpoint)]]" data="[[data.titleNavigationEndpoint]]">\n      <ytd-channel-name id="channel-name" badges="[[titleBadges]]" channel-name="[[data.title]]" tooltip-position="bottom" wrap-text="" class="style-scope ytd-watch-card-rich-header-renderer">\n      </ytd-channel-name>\n      <div id="badge-row" class$="[[badgeRowClass]] style-scope ytd-watch-card-rich-header-renderer">\n        <span id="watch-card-subtitle" class="style-scope ytd-watch-card-rich-header-renderer">\n          <yt-formatted-string respect-lang-dir="" text="[[data.subtitle]]" class="style-scope ytd-watch-card-rich-header-renderer"></yt-formatted-string>\n        </span>\n        <template is="dom-if" if="[[data.badges.0.metadataBadgeRenderer]]" class="style-scope ytd-watch-card-rich-header-renderer">\n          <ytd-badge-supported-renderer badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-watch-card-rich-header-renderer">\n          </ytd-badge-supported-renderer>\n        </template>\n      </div>\n    </a>\n    \n    <div id="call-to-action-buttons" hidden="[[!data.callToActionButtons]]" class="style-scope ytd-watch-card-rich-header-renderer"></div>\n  </div>\n  <a id="avatar-endpoint" class="yt-simple-endpoint style-scope ytd-watch-card-rich-header-renderer" href$="[[computeHref_(data.titleNavigationEndpoint)]]" data="[[data.titleNavigationEndpoint]]" aria-label="[[computeAvatarAriaLabel(data)]]" hidden="[[!data.avatar]]">\n    <yt-img-shadow id="avatar" height="[[computeAvatarHeight(data.style)]]" thumbnail="[[data.avatar]]" class="style-scope ytd-watch-card-rich-header-renderer">\n    </yt-img-shadow>\n  </a>\n</div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return dLP=F},{mode:1});var NOK;var VYK;var G7=function(){return _.n.apply(this,arguments)||this};
_.k(G7,_.n);G7.prototype.onMetadataTap=function(F){var W=this.data&&this.data.navigationEndpoint;W&&!_.Sc(_.TB(F),this.hostElement,["A".toString()])&&_.hF(this.hostElement,"yt-navigate",{endpoint:W})};
_.Sn.Object.defineProperties(G7.prototype,{isCondensed:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style==="WATCH_CARD_COMPACT_VIDEO_RENDERER_STYLE_CONDENSED":!1}},
subtitle:{configurable:!0,enumerable:!0,get:function(){if(this.data){var F;if(this.data.upcomingEventData){var W=_.Yr(this.data.subtitle),E=Number(this.data.upcomingEventData.startTime);isNaN(E)||(F=_.Gr(_.Tt(W,E)))}else F=this.data.subtitle;return F}}}});
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],G7.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],G7.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0}),_.a("data.style"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],G7.prototype,"isCondensed",null);_.T([_.O({reflectToAttribute:!0}),_.a("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],G7.prototype,"subtitle",null);
G7=_.T([_.y({is:"ytd-watch-card-compact-video-renderer",disableElementRegistration:!0})],G7);
_.r(G7,"ytd-watch-card-compact-video-renderer",function(){if(VYK!==void 0)return VYK;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-compact-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[!isCondensed]]" class="style-scope ytd-watch-card-compact-video-renderer">\n  <ytd-thumbnail data="[[data]]" width="120" class="style-scope ytd-watch-card-compact-video-renderer"></ytd-thumbnail>\n  <div class="text-wrapper style-scope ytd-watch-card-compact-video-renderer" on-click="onMetadataTap">\n    <div class="title-wrapper style-scope ytd-watch-card-compact-video-renderer">\n      <a class="yt-simple-endpoint style-scope ytd-watch-card-compact-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n        <yt-formatted-string class="title style-scope ytd-watch-card-compact-video-renderer" link-inherit-color="" text="[[data.title]]"></yt-formatted-string>\n      </a>\n    </div>\n    <yt-formatted-string class="byline style-scope ytd-watch-card-compact-video-renderer" hidden="[[!data.byline]]" link-inherit-color="" text="[[data.byline]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="subtitle style-scope ytd-watch-card-compact-video-renderer" link-inherit-color="" text="[[subtitle]]"></yt-formatted-string>\n    <ytd-badge-supported-renderer badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-watch-card-compact-video-renderer">\n    </ytd-badge-supported-renderer>\n  </div>\n</template>\n<template is="dom-if" if="[[isCondensed]]" class="style-scope ytd-watch-card-compact-video-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-watch-card-compact-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <div class="metadata style-scope ytd-watch-card-compact-video-renderer">\n      <div class="text style-scope ytd-watch-card-compact-video-renderer">\n        <yt-formatted-string class="title style-scope ytd-watch-card-compact-video-renderer" link-inherit-color="" text="[[data.title]]"></yt-formatted-string>\n        <ytd-badge-supported-renderer badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-watch-card-compact-video-renderer">\n        </ytd-badge-supported-renderer>\n        <yt-formatted-string class="subtitle style-scope ytd-watch-card-compact-video-renderer" text="[[subtitle]]"></yt-formatted-string>\n      </div>\n      <yt-formatted-string class="duration style-scope ytd-watch-card-compact-video-renderer" text="[[data.lengthText]]">\n      </yt-formatted-string>\n    </div>\n  </a>\n</template>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return VYK=F},{mode:1});var ULK;var YN=function(){return _.n.apply(this,arguments)||this};
_.k(YN,_.n);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],YN.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],YN.prototype,"data",void 0);YN=_.T([_.y({is:"ytd-watch-card-one-vs-one-event-compact-video-renderer",disableElementRegistration:!0})],YN);
_.r(YN,"ytd-watch-card-one-vs-one-event-compact-video-renderer",function(){if(ULK!==void 0)return ULK;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-one-vs-one-event-compact-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-thumbnail data="[[data]]" width="120" class="style-scope ytd-watch-card-one-vs-one-event-compact-video-renderer"></ytd-thumbnail>\n<a class="yt-simple-endpoint metadata style-scope ytd-watch-card-one-vs-one-event-compact-video-renderer" data="[[data.navigationEndpoint]]" href$="[[computeHref_(data.navigationEndpoint)]]">\n  <ytd-watch-card-one-vs-one-event class="compact style-scope ytd-watch-card-one-vs-one-event-compact-video-renderer" data="[[data.oneVsOneEvent]]">\n  </ytd-watch-card-one-vs-one-event>\n</a>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return ULK=F},{mode:1});var wK=function(){return _.n.apply(this,arguments)||this};
_.k(wK,_.n);wK.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{watchCardCompactVideoRenderer:{component:"ytd-watch-card-compact-video-renderer",noInjection:!0},watchCardOneVsOneEventCompactVideoRenderer:{component:"ytd-watch-card-one-vs-one-event-compact-video-renderer",noInjection:!0}}}}};
_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],wK.prototype,"ytRendererStamperBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],wK.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],wK.prototype,"data",void 0);wK=_.T([_.y({is:"ytd-vertical-watch-card-list-renderer",disableElementRegistration:!0})],wK);
_.r(wK,"ytd-vertical-watch-card-list-renderer",function(){if(NOK!==void 0)return NOK;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-vertical-watch-card-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="items" class="style-scope ytd-vertical-watch-card-list-renderer">\n  \n</div>\n<a id="view-all-endpoint" class="yt-simple-endpoint style-scope ytd-vertical-watch-card-list-renderer" href$="[[computeHref_(data.viewAllEndpoint)]]" data="[[data.viewAllEndpoint]]" hidden="[[!data.viewAllEndpoint]]" disable-upgrade$="[[!data.viewAllEndpoint]]">\n    [[getSimpleString(data.viewAllText)]]\n</a>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return NOK=F},{mode:1});var RC$;var u7=function(){var F=_.n.apply(this,arguments)||this;F.ariaExpanded="false";return F};
_.k(u7,_.n);_.N=u7.prototype;_.N.configureRendererStamper=function(){return{"data.lists":{id:"lists",mapping:{verticalWatchCardListRenderer:"ytd-vertical-watch-card-list-renderer"}}}};
_.N.dataChanged=function(){var F;this.currentSeasonIndex=((F=this.data)==null?void 0:F.dropdownDefaultSelectedIndex)||0;this.lists.select(this.currentSeasonIndex);this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex])};
_.N.computeEpisodesInfo=function(F,W,E){if(F!==void 0&&W.length===F.length)return F[E]};
_.N.onSeasonSelect=function(){this.ytRendererBehavior.markDirty()};
_.N.currentSeasonIndexChanged=function(){this.data&&this.data.dropdownTitles&&(this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex]))};
_.N.onLabelClick=function(){this.hostElement.ariaExpanded="true"};
_.N.onIronOverlayClosed=function(){this.hostElement.ariaExpanded="false"};
_.N.getUppercaseSimpleString=function(F){return this.ytRendererBehavior.getSimpleString(F).toUpperCase()};
_.N.updateCurrentSeasonIndexFromBinding=function(F){this.currentSeasonIndex=F.detail.value};
u7.prototype.onIronOverlayClosed=u7.prototype.onIronOverlayClosed;u7.prototype.currentSeasonIndexChanged=u7.prototype.currentSeasonIndexChanged;u7.prototype.dataChanged=u7.prototype.dataChanged;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],u7.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],u7.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],u7.prototype,"data",void 0);
_.T([_.O(),_.Y("design:type",String)],u7.prototype,"label",void 0);_.T([_.O({value:0}),_.Y("design:type",Number)],u7.prototype,"currentSeasonIndex",void 0);_.T([_.O({computed:"computeEpisodesInfo(data.dropdownSubtitles,data.dropdownTitles,currentSeasonIndex)"}),_.Y("design:type",Object)],u7.prototype,"episodesInfo",void 0);_.T([_.O({value:"false"}),_.Y("design:type",Object)],u7.prototype,"ariaExpanded",void 0);_.T([_.gQ("#lists"),_.Y("design:type",Object)],u7.prototype,"lists",void 0);
_.T([_.Cz("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],u7.prototype,"dataChanged",null);_.T([_.Cz("currentSeasonIndex"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],u7.prototype,"currentSeasonIndexChanged",null);_.T([_.R4("iron-overlay-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],u7.prototype,"onIronOverlayClosed",null);
u7=_.T([_.y({is:"ytd-watch-card-section-dropdown-renderer",disableElementRegistration:!0})],u7);
_.r(u7,"ytd-watch-card-section-dropdown-renderer",function(){if(RC$!==void 0)return RC$;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-section-dropdown-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="season-picker-container style-scope ytd-watch-card-section-dropdown-renderer">\n  <tp-yt-paper-menu-button id="input" dynamic-align="" horizontal-align="left" class="style-scope ytd-watch-card-section-dropdown-renderer">\n    <tp-yt-paper-button id="label" class="dropdown-trigger style-scope ytd-watch-card-section-dropdown-renderer" slot="dropdown-trigger" aria-expanded$="[[ariaExpanded]]" aria-label$="[[label]]" on-tap="onLabelClick">\n      <div id="label-text" class="style-scope ytd-watch-card-section-dropdown-renderer">[[label]]</div>\n      <yt-icon id="label-icon" icon="yt-icons:arrow_drop_down" class="style-scope ytd-watch-card-section-dropdown-renderer">\n      </yt-icon>\n    </tp-yt-paper-button>\n    <tp-yt-paper-listbox id="seasons" class="dropdown-content style-scope ytd-watch-card-section-dropdown-renderer" slot="dropdown-content" selected="[[currentSeasonIndex]]" on-iron-select="onSeasonSelect" on-selected-changed="updateCurrentSeasonIndexFromBinding">\n      <template is="dom-repeat" items="[[data.dropdownTitles]]" class="style-scope ytd-watch-card-section-dropdown-renderer">\n        <tp-yt-paper-item aria-label$="[[item.accessibility.accessibilityData.label]]" class="style-scope ytd-watch-card-section-dropdown-renderer">\n          [[getUppercaseSimpleString(item)]]\n        </tp-yt-paper-item>\n      </template>\n    </tp-yt-paper-listbox>\n  </tp-yt-paper-menu-button>\n  <span id="spacer" class="style-scope ytd-watch-card-section-dropdown-renderer"></span>\n  <yt-formatted-string id="episodes" text="[[episodesInfo]]" class="style-scope ytd-watch-card-section-dropdown-renderer">\n  </yt-formatted-string>\n</div>\n<tp-yt-iron-pages id="lists" selected="[[currentSeasonIndex]]" on-selected-changed="updateCurrentSeasonIndexFromBinding" class="style-scope ytd-watch-card-section-dropdown-renderer">\n  \n</tp-yt-iron-pages>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return RC$=F},{mode:1});var eC$;var Sp=function(){var F=_.n.apply(this,arguments)||this;F.isSearch=!1;return F};
_.k(Sp,_.n);Sp.prototype.configureRendererStamper=function(){return{"data.lists":{id:"lists",mapping:{verticalWatchCardListRenderer:{component:"ytd-vertical-watch-card-list-renderer",noInjection:!0},horizontalCardListRenderer:{component:"ytd-horizontal-card-list-renderer",properties:{isSearch:"[[isSearch]]"},noInjection:!0}}}}};
_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],Sp.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Sp.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],Sp.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Object)],Sp.prototype,"isSearch",void 0);Sp=_.T([_.y({is:"ytd-watch-card-section-sequence-renderer",disableElementRegistration:!0})],Sp);
_.r(Sp,"ytd-watch-card-section-sequence-renderer",function(){if(eC$!==void 0)return eC$;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-section-sequence-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="lists" class="style-scope ytd-watch-card-section-sequence-renderer">\n  \n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);
return eC$=F},{mode:1});var TfO=_.XF({buttonViewModel:_.rk});_.ht(o0P);_.Nj(o0P,"ytd-button-banner-view-model",{propNames:["data"]});var p9=function(){var F=_.n.apply(this,arguments)||this;F.isSearch=!1;return F};
_.k(p9,_.n);
p9.prototype.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{watchCardRichHeaderRenderer:{component:"ytd-watch-card-rich-header-renderer",noInjection:!0}}},"data.callToAction":{id:"hero",mapping:{watchCardHeroVideoRenderer:{component:"ytd-watch-card-hero-video-renderer",noInjection:!0},watchCardHeroOneVsOneEventRenderer:{component:"ytd-watch-card-hero-one-vs-one-event-renderer",noInjection:!0}}},"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer",noInjection:!0}}},
"data.sections":{id:"sections",mapping:{watchCardSectionDropdownRenderer:{component:"ytd-watch-card-section-dropdown-renderer",noInjection:!0},watchCardSectionSequenceRenderer:{component:"ytd-watch-card-section-sequence-renderer",properties:{isSearch:"[[isSearch]]"},noInjection:!0}}},"data.footer":{id:"footer",mapping:{buttonBannerViewModel:"ytd-button-banner-view-model"}}}};
_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],p9.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],p9.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],p9.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0,value:!0}),_.Y("design:type",Boolean)],p9.prototype,"rounded",void 0);_.T([_.O(),_.Y("design:type",Object)],p9.prototype,"isSearch",void 0);
p9=_.T([_.y({is:"ytd-universal-watch-card-renderer",disableElementRegistration:!0})],p9);
_.r(p9,"ytd-universal-watch-card-renderer",function(){if(SC$!==void 0)return SC$;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-universal-watch-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-universal-watch-card-renderer"></div>\n<div id="hero" class="style-scope ytd-universal-watch-card-renderer"></div>\n<div id="action-buttons" hidden="[[!data.actionButtons]]" class="style-scope ytd-universal-watch-card-renderer"></div>\n<div id="sections" class="style-scope ytd-universal-watch-card-renderer"></div>\n<div id="footer" class="style-scope ytd-universal-watch-card-renderer"></div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return SC$=F},{mode:1});var MY6;_.pK(_.GK(function(F){var W=F.data;var E;F=!((E=_.WZ().resolve(_.Fd(_.nK)))==null||!E());E={};return _.z("overview-message-view-model",{class:_.ec("ytwOverviewMessageViewModelHost",(E.ytwOverviewMessageViewModelDarkBackground=F,E.ytwOverviewMessageViewModelLightBackground=!F,E))},_.z(_.v,{cond:function(){return W().primaryImage},
then:function(h){return _.z(_.T4,{data:h,contentMode:"CONTENT_MODE_CENTER",alt:"",targetWidth:120,targetHeight:120,className:"ytwOverviewMessageViewModelMessageImage"})}}),_.z(_.v,{cond:function(){return W().primaryText},
then:function(){return _.z("div",{class:"ytwOverviewMessageViewModelPrimaryMessageText"},_.z(_.Ab,{text:function(){return W().primaryText}}))}}),_.z(_.v,{cond:function(){return W().secondaryText},
then:function(){return _.z("div",{class:"ytwOverviewMessageViewModelSecondaryMessageText"},_.z(_.Ab,{text:function(){return W().secondaryText}}))}}))},"zi"),"overview-message-view-model",{props:{data:_.TS}});_.Nj(_.fFU,"ytd-overview-answer-view-model",{propNames:["data"]});var m$=function(){return _.n.apply(this,arguments)||this};
_.k(m$,_.n);m$.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{universalWatchCardRenderer:{component:"ytd-universal-watch-card-renderer",properties:{isSearch:"[[isSearch]]"}},overviewAnswerViewModel:"ytd-overview-answer-view-model",overviewMessageViewModel:"overview-message-view-model"}}}};
m$.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents"}};
_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],m$.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],m$.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.br),_.Y("design:type",Object)],m$.prototype,"ytContinuationHandlerBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],m$.prototype,"data",void 0);_.T([_.O({value:!1}),_.Y("design:type",Boolean)],m$.prototype,"isSearch",void 0);
m$=_.T([_.y({disableElementRegistration:!0,is:"ytd-secondary-search-container-renderer"})],m$);
_.r(m$,"ytd-secondary-search-container-renderer",function(){if(MY6!==void 0)return MY6;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-secondary-search-container-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-secondary-search-container-renderer"></div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);
return MY6=F},{mode:1});var gHN;var K9=function(){var F=_.n.apply(this,arguments)||this;F.renderSecondarySearchContainer=!1;F.isSearch=!1;F.isSearchDova=_.c("dova_on_search");return F};
_.k(K9,_.n);_.N=K9.prototype;_.N.configureRendererStamper=function(){return{"data.primaryContents":{id:"primary",mapping:{sectionListRenderer:{component:"ytd-section-list-renderer",properties:{isSearch:"[[isSearch]]",isSearchDova:"[[isSearchDova]]"}}}},"data.continuations":{id:"continuations",mapping:{pageContinuationData:"ytd-page-continuation"}}}};
_.N.created=function(){var F=this;this.boundStampSecondarySearchContainerIfFits=function(){F.stampSecondarySearchContainerIfFits()};
_.OG("REMAINING_DOVA_DEFERRED_CHUNKS",1)};
_.N.computeIsSearchFrictionPage=function(F){var W,E,h,d,V;F=F==null?void 0:(W=F.primaryContents)==null?void 0:(E=W.sectionListRenderer)==null?void 0:(h=E.contents)==null?void 0:(d=h[0])==null?void 0:(V=d.itemSectionRenderer)==null?void 0:V.contents;if(!F)return!1;W=_.U(F);for(E=W.next();!E.done;E=W.next())if(h=void 0,(h=E.value)==null?0:h.searchFrictionViewModel)return!0;return!1};
_.N.computeShowSecondaryColumn=function(F,W){return!!(W&&W.secondaryContents&&F)};
_.N.activeChanged=function(){var F=this;this.active&&!this.renderSecondarySearchContainer?(window.addEventListener("resize",_.UO(this,this.debounceStampSecondarySearchContainerIfFits)),_.fz(function(){F.debounceStampSecondarySearchContainerIfFits()})):this.active||window.removeEventListener("resize",_.UO(this,this.debounceStampSecondarySearchContainerIfFits))};
_.N.persistentGuideChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
_.N.stampSecondarySearchContainerIfFits=function(){!this.renderSecondarySearchContainer&&window.innerWidth>=1090&&(this.renderSecondarySearchContainer=!0)};
_.N.debounceStampSecondarySearchContainerIfFits=function(){_.OO(this,"stampSecondarySearchContainerIfFits",this.boundStampSecondarySearchContainerIfFits)};
_.N.onRetrieveLocation=function(F,W){W.locationRetrieved(location.pathname+location.search+"&pbj=1",void 0);F.stopPropagation()};
_.N.dataChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
K9.prototype.dataChanged=K9.prototype.dataChanged;K9.prototype.onRetrieveLocation=K9.prototype.onRetrieveLocation;K9.prototype.persistentGuideChanged=K9.prototype.persistentGuideChanged;K9.prototype.activeChanged=K9.prototype.activeChanged;_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],K9.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],K9.prototype,"ytRendererBehavior",void 0);
_.T([_.J(_.y_.YtdGuideStateAwareBehavior),_.Y("design:type",Object)],K9.prototype,"ytdGuideStateAwareBehavior",void 0);_.T([_.J(_.lB),_.Y("design:type",Object)],K9.prototype,"ironResizableBehavior",void 0);_.T([_.O(),_.Y("design:type",Boolean)],K9.prototype,"active",void 0);_.T([_.O(),_.Y("design:type",Object)],K9.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0,value:function(){return _.c("enable_desktop_search_bigger_thumbs")}}),
_.Y("design:type",Boolean)],K9.prototype,"useBiggerThumbs",void 0);_.T([_.O({reflectToAttribute:!0,value:function(){return _.N0("desktop_search_bigger_thumbs_style")}}),
_.Y("design:type",String)],K9.prototype,"biggerThumbsStyle",void 0);_.T([_.O(),_.Y("design:type",Object)],K9.prototype,"renderSecondarySearchContainer",void 0);_.T([_.O({computed:"computeShowSecondaryColumn(renderSecondarySearchContainer, data)"}),_.Y("design:type",Boolean)],K9.prototype,"showSecondaryColumn",void 0);_.T([_.O({reflectToAttribute:!0,computed:"computeIsSearchFrictionPage(data)"}),_.Y("design:type",Boolean)],K9.prototype,"isSearchFrictionPage",void 0);
_.T([_.O(),_.Y("design:type",Object)],K9.prototype,"isSearch",void 0);_.T([_.O(),_.Y("design:type",Object)],K9.prototype,"isSearchDova",void 0);_.T([_.ea("active"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],K9.prototype,"activeChanged",null);_.T([_.ea("guidePersistentAndVisible"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],K9.prototype,"persistentGuideChanged",null);
_.T([_.R4("yt-retrieve-location"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],K9.prototype,"onRetrieveLocation",null);_.T([_.Cz("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],K9.prototype,"dataChanged",null);K9=_.T([_.y({disableElementRegistration:!0,is:"ytd-two-column-search-results-renderer"})],K9);
_.r(K9,"ytd-two-column-search-results-renderer",function(){if(gHN!==void 0)return gHN;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-two-column-search-results-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="primary" class="style-scope ytd-two-column-search-results-renderer">\n  <div id="continuations" class="style-scope ytd-two-column-search-results-renderer"></div>\n</div>\n<ytd-secondary-search-container-renderer id="secondary" data="[[data.secondaryContents.secondarySearchContainerRenderer]]" disable-upgrade$="[[!showSecondaryColumn]]" hidden="[[!showSecondaryColumn]]" is-search="[[isSearch]]" class="style-scope ytd-two-column-search-results-renderer">\n</ytd-secondary-search-container-renderer>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return gHN=F},{mode:1});var Fa=function(){var F=_.n.apply(this,arguments)||this;F.hasSearchHeader=!1;F.hasSecondaryContent=!1;F.hasBiggerThumbs=_.c("enable_desktop_search_bigger_thumbs");F.actionMap={"yt-show-search-contents-command":"onYtShowSearchContentsCommand"};return F};
_.k(Fa,_.n);_.N=Fa.prototype;_.N.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{searchHeaderRenderer:{component:"ytd-search-header-renderer"}}},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:{component:"ytd-survey-trigger-renderer",noInjection:!0}},initialRenderPriority:3,waitForSignal:_.OE(["aa","eocs"])}}};
_.N.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.N.loadPage_=function(F){this.initCsi();F&&(this.data=F,_.OG("REFINEMENTS_TUPLE",["FromSearchResponse",F.refinements||[]]),this.ytRendererBehavior.parentComponent&&_.SQ(this.ytRendererBehavior.parentComponent));this.updateTitle()};
_.N.initCsi=function(){_.q8("results",["ol","cpt"])};
_.N.updateTitle=function(){var F=_.lg(window.location.href,"q");F||(F=_.lg(window.location.href,"search_query"));_.hF(this.hostElement,"yt-update-title",F||"")};
_.N.onYtShowSearchContentsCommand=function(){this.set("data.hideContents",!1)};
_.N.dataChanged=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data);_.c("web_srp_data_changed_terminate_imp_killswitch")||_.dW(this.hostElement,"yt-terminate-video-preview-action")};
_.N.onReloadContinuationFinish=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data)};
_.N.computeHasSearchHeader=function(F){var W;F=F==null?void 0:(W=F.header)==null?void 0:W.searchHeaderRenderer;return!!F&&(!!F.searchFilterButton||!!F.chipBar)};
_.N.computeHasSecondaryContent=function(F){var W,E;return!!(F==null?0:(W=F.contents)==null?0:(E=W.twoColumnSearchResultsRenderer)==null?0:E.secondaryContents)};
_.Sn.Object.defineProperties(Fa,{template:{configurable:!0,enumerable:!0,get:function(){if(Gs$===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="container" class="style-scope ytd-search">\n  <div id="header" class="style-scope ytd-search"></div>\n  <ytd-two-column-search-results-renderer active="[[active]]" data="[[data.contents.twoColumnSearchResultsRenderer]]" hidden="[[data.hideContents]]" is-search="true" class="style-scope ytd-search">\n  </ytd-two-column-search-results-renderer>\n</div>\n<div id="survey" class="style-scope ytd-search"></div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);Gs$=F}F=Gs$;return F}}});
Fa.prototype.onReloadContinuationFinish=Fa.prototype.onReloadContinuationFinish;Fa.prototype.dataChanged=Fa.prototype.dataChanged;_.T([_.J(_.$v.YtPageBehavior),_.Y("design:type",Object)],Fa.prototype,"ytPageBehavior",void 0);_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],Fa.prototype,"actionHandlerBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Fa.prototype,"ytRendererBehavior",void 0);
_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],Fa.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.br),_.Y("design:type",Object)],Fa.prototype,"ytContinuationHandlerBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],Fa.prototype,"data",void 0);_.T([_.O({value:!0}),_.Y("design:type",Boolean)],Fa.prototype,"monitorScroll",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],Fa.prototype,"hasSearchHeader",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],Fa.prototype,"hasSecondaryContent",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],Fa.prototype,"hasBiggerThumbs",void 0);_.T([_.Cz("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Fa.prototype,"dataChanged",null);
_.T([_.R4("yt-reload-continuation-finish"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Fa.prototype,"onReloadContinuationFinish",null);Fa=_.T([_.y({is:"ytd-search"})],Fa);_.ZW.registerService(_.Vpn,Fa);
_.Hb();
}catch(e){_._DumpException(e)}
try{
_.Xg("h8y2qb");
var wAF=function(F){if(F=_.ceR(F)){var W;(W=F.sources)!=null&&W[0]?(W=_.x7b(F),W=W<1?"VERTICAL":W>1?"HORIZONTAL":"SQUARE"):W=void 0;return W}},Z7=function(F){_.$A.call(this,"upload");
this.opts.query=F},SS6=function(F,W){return _.z(uZ8,{data:F,
onYtNavigate:W})},pAN=function(F,W){return _.Mn(F.entities,"pageHeaderEntity",W)},KSu=function(F,W){return F.map(function(E){if(E.tabRenderer)return mZ8(E.tabRenderer);
if(E.expandableTabRenderer&&W){var h=E.expandableTabRenderer;return{customTabRenderable:function(){return W(h)}}}return{}})},mZ8=function(F){return{identifier:F.tabIdentifier,
aTagConfig:_.Jm({innertubeCommand:F.endpoint,forceNewState:!0}),title:F.title,selected:F.selected,disabled:F.unselectable,icon:F.icon}},FdT=function(F){return _.dR({type:"SET_TAB_GESTURES_IS_ACTIVE",
payload:F})},WdP=function(F){if(!_.hG(document,"gtm-noscript")){var W=document.createElement("noscript");
W.id="gtm-noscript";W.textContent='<iframe src="https://www.googletagmanager.com/ns.html?id='+F+'" height="0" width="0" style="display:none;visibility:hidden"></iframe>';document.body.prepend(W)}};_.Ma(Z7,_.$A);Z7.prototype.JSC$7978_setLabel=function(F){Z7.superClass_.JSC$7978_setLabel.call(this,F);return this};
Z7.prototype.addUploadMetadata=function(F,W){Z7.superClass_.addUploadMetadata.call(this,F,W);return this};var EmK=function(F){if(F!=="youtubebanner"&&F!=="youtube-channel-banner")throw Error("Ul");Z7.call(this,F)};
_.k(EmK,Z7);EmK.prototype.JSC$7978_setLabel=function(F){Z7.prototype.JSC$7978_setLabel.call(this,F);return this};
EmK.prototype.addUploadMetadata=function(F,W){Z7.prototype.addUploadMetadata.call(this,F,W);return this};var h1K=[_.lB,{listeners:{"app-reset-layout":"_appResetLayoutHandler","iron-resize":"resetLayout"},attached:function(){this.fire("app-reset-layout")},
_appResetLayoutHandler:function(F){_.sg(F).path[0]!==this&&(this.resetLayout(),F.stopPropagation())},
_updateLayoutStates:function(){console.error("unimplemented")},
resetLayout:function(){var F=this._updateLayoutStates.bind(this);this._layoutDebouncer=_.QZ(this._layoutDebouncer,_.DA,F);_.za(this._layoutDebouncer);this._notifyDescendantResize()},
_notifyLayoutChanged:function(){var F=this;requestAnimationFrame(function(){F.fire("app-reset-layout")})},
_notifyDescendantResize:function(){this.isAttached&&this._interestedResizables.forEach(function(F){this.resizerShouldNotify(F)&&this._notifyDescendant(F)},this)}}];_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers={};_._scrollTimer$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers=null;var dEK=[_.epO,{properties:{effects:{type:String},effectsConfig:{type:Object,value:function(){return{}}},
disabled:{type:Boolean,reflectToAttribute:!0,value:!1},threshold:{type:Number,value:0},thresholdTriggered:{type:Boolean,notify:!0,readOnly:!0,reflectToAttribute:!0}},observers:["_effectsChanged(effects, effectsConfig, isAttached)"],_updateScrollState:function(){},
isOnScreen:function(){return!1},
isContentBelow:function(){return!1},
_effectsRunFn:null,_effects:null,get _clampedScrollTop(){return Math.max(0,this._scrollTop)},attached:function(){this._scrollStateChanged()},
detached:function(){this._tearDownEffects()},
createEffect:function(F,W){var E=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[F];if(!E)throw new ReferenceError(this._getUndefinedMsg(F));F=this._boundEffect(E,W||{});F.setUp();return F},
_effectsChanged:function(F,W,E){this._tearDownEffects();F&&E&&(F.split(" ").forEach(function(h){var d;h!==""&&((d=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[h])?this._effects.push(this._boundEffect(d,W[h])):console.warn(this._getUndefinedMsg(h)))},this),this._setUpEffect())},
_layoutIfDirty:function(){return this.offsetWidth},
_boundEffect:function(F,W){W=W||{};var E=parseFloat(W.startsAt||0),h=parseFloat(W.endsAt||1),d=h-E,V=function(){};
h=E===0&&h===1?F.run:function(R,M){F.run.call(this,Math.max(0,(R-E)/d),M)};
return{setUp:F.setUp?F.setUp.bind(this,W):V,run:F.run?h.bind(this):V,tearDown:F.tearDown?F.tearDown.bind(this):V}},
_setUpEffect:function(){this.isAttached&&this._effects&&(this._effectsRunFn=[],this._effects.forEach(function(F){F.setUp()!==!1&&this._effectsRunFn.push(F.run)},this))},
_tearDownEffects:function(){this._effects&&this._effects.forEach(function(F){F.tearDown()});
this._effectsRunFn=[];this._effects=[]},
_runEffects:function(F,W){this._effectsRunFn&&this._effectsRunFn.forEach(function(E){E(F,W)})},
_scrollHandler:function(){this._scrollStateChanged()},
_scrollStateChanged:function(){if(!this.disabled){var F=this._clampedScrollTop;this._updateScrollState(F);this.threshold>0&&this._setThresholdTriggered(F>=this.threshold)}},
_getDOMRef:function(F){console.warn("_getDOMRef","`"+F+"` is undefined")},
_getUndefinedMsg:function(F){return"Scroll effect `"+F+"` is undefined. Did you forget to import app-layout/app-scroll-effects/effects/"+F+".html ?"}}];if(_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]!=null)throw Error("Vl`parallax-background");
_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]={setUp:function(F){var W={};F=parseFloat(F.scalar);W.background=this._getDOMRef("background");W.backgroundFrontLayer=this._getDOMRef("backgroundFrontLayer");W.backgroundRearLayer=this._getDOMRef("backgroundRearLayer");W.deltaBg=W.backgroundFrontLayer.offsetHeight-W.background.offsetHeight;W.deltaBg===0?(isNaN(F)&&(F=.8),W.deltaBg=(this._dHeight||0)*F):(isNaN(F)&&(F=
1),W.deltaBg*=F);this._fxParallaxBackground=W},
run:function(F){var W=this._fxParallaxBackground;this.transform("translate3d(0px, "+W.deltaBg*Math.min(1,F)+"px, 0px)",W.backgroundFrontLayer);W.backgroundRearLayer&&this.transform("translate3d(0px, "+W.deltaBg*Math.min(1,F)+"px, 0px)",W.backgroundRearLayer)},
tearDown:function(){delete this._fxParallaxBackground}};var NF$;var Vx8;var UEq=function(){};
_.N=UEq.prototype;_.N._scrollTargetChanged=function(){};
_.N.scroll=function(){};
_.N._isValidScrollTarget=function(){};
_.N._toggleScrollListener=function(){};
_.N.toggleScrollListener=function(){};
_.N.createEffect=function(){};
_.N._effectsChanged=function(){};
_.N._layoutIfDirty=function(){};
_.N._boundEffect=function(){};
_.N._setUpEffect=function(){};
_.N._tearDownEffects=function(){};
_.N._runEffects=function(){};
_.N._scrollHandler=function(){};
_.N._scrollStateChanged=function(){};
_.N._getUndefinedMsg=function(){};
_.N.notifyResize=function(){};
_.N.assignParentResizable=function(){};
_.N.stopResizeNotificationsFor=function(){};
_.N._subscribeIronResize=function(){};
_.N._unsubscribeIronResize=function(){};
_.N.resizerShouldNotify=function(){};
_.N._onDescendantIronResize=function(){};
_.N._fireResize=function(){};
_.N._onIronRequestResizeNotifications=function(){};
_.N._parentResizableChanged=function(){};
_.N._notifyDescendant=function(){};
_.N._requestResizeNotifications=function(){};
_.N._findParent=function(){};
_.N._appResetLayoutHandler=function(){};
_.N.resetLayout=function(){};
_.N._notifyLayoutChanged=function(){};
_.N._notifyDescendantResize=function(){};
_.N._setThresholdTriggered=function(){};
UEq=_.k3({_template:function(){if(Vx8!==void 0)return Vx8;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-app-header--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_app_layout.tp_yt_app_header.tp.yt.app.header.css.js--\x3e<div id="contentContainer" class="style-scope tp-yt-app-header">\n  <slot id="slot" class="style-scope tp-yt-app-header"></slot>\n</div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);var W=F.content,E=W.insertBefore;NF$===void 0&&(NF$=document.createElement("template"));var h=NF$;E.call(W,h.content.cloneNode(!0),F.content.firstChild);return Vx8=F},
is:"tp-yt-app-header",behaviors:[dEK,h1K],properties:{condenses:{type:Boolean,value:!1},fixed:{type:Boolean,value:!1},reveals:{type:Boolean,value:!1},shadow:{type:Boolean,reflectToAttribute:!0,value:!1}},observers:["_configChanged(isAttached, condenses, fixed)"],_height:0,_dHeight:0,_stickyElTop:0,_stickyElRef:null,_top:0,_progress:0,_wasScrollingDown:!1,_initScrollTop:0,_initTimestamp:0,_lastTimestamp:0,_lastScrollTop:0,get _maxHeaderTop(){return this.fixed?this._dHeight:this._height+5},get _stickyEl(){if(this._stickyElRef)return this._stickyElRef;
for(var F=_.sg(this.$.slot).getDistributedNodes(),W=0,E;E=F[W];W++)if(E.nodeType===Node.ELEMENT_NODE)if(E.hasAttribute("sticky")){this._stickyElRef=E;break}else this._stickyElRef||(this._stickyElRef=E);return this._stickyElRef},_configChanged:function(){this.resetLayout();this._notifyLayoutChanged()},
_updateLayoutStates:function(){if(this.offsetWidth!==0||this.offsetHeight!==0){var F=this._clampedScrollTop,W=this._height===0||F===0,E=this.disabled;this._height=this.offsetHeight;this._stickyElRef=null;this.disabled=!0;W||this._updateScrollState(0,!0);this._mayMove()?this._dHeight=this._stickyEl?this._height-this._stickyEl.offsetHeight:0:this._dHeight=0;this._stickyElTop=this._stickyEl?this._stickyEl.offsetTop:0;this._setUpEffect();W?this._updateScrollState(F,!0):(this._updateScrollState(this._lastScrollTop,
!0),this._layoutIfDirty());this.disabled=E}},
_updateScrollState:function(F,W){if(this._height!==0){var E=0,h=this._top;var d=this._maxHeaderTop;var V=F-this._lastScrollTop,R=Math.abs(V),M=F>this._lastScrollTop,g=performance.now();this._mayMove()&&(E=this._clamp(this.reveals?h+V:F,0,d));F>=this._dHeight&&(E=this.condenses&&!this.fixed?Math.max(this._dHeight,E):E,this.style.transitionDuration="0ms");if(this.reveals&&!this.disabled&&R<100){if(g-this._initTimestamp>300||this._wasScrollingDown!==M)this._initScrollTop=F,this._initTimestamp=g;F>=d&&
(Math.abs(this._initScrollTop-F)>30||R>10?(M&&F>=d?E=d:!M&&F>=this._dHeight&&(E=this.condenses&&!this.fixed?this._dHeight:0),this.style.transitionDuration=this._clamp((E-h)/(V/(g-this._lastTimestamp)),0,300)+"ms"):E=this._top)}d=this._dHeight===0?F>0?1:0:E/this._dHeight;W||(this._lastScrollTop=F,this._top=E,this._wasScrollingDown=M,this._lastTimestamp=g);if(W||d!==this._progress||h!==E||F===0)this._progress=d,this._runEffects(d,E),this._transformHeader(E)}},
_mayMove:function(){return this.condenses||!this.fixed},
willCondense:function(){return this._dHeight>0&&this.condenses},
isOnScreen:function(){return this._height!==0&&this._top<this._height},
isContentBelow:function(){return this._top===0?this._clampedScrollTop>0:this._clampedScrollTop-this._maxHeaderTop>=0},
_transformHeader:function(F){this.translate3d(0,-F+"px",0);this._stickyEl&&this.translate3d(0,this.condenses&&F>=this._stickyElTop?Math.min(F,this._dHeight)-this._stickyElTop+"px":0,0,this._stickyEl)},
_clamp:function(F,W,E){return Math.min(E,Math.max(W,F))},
_ensureBgContainers:function(){this._bgContainer||(this._bgContainer=document.createElement("div"),this._bgContainer.id="background",this._bgRear=document.createElement("div"),this._bgRear.id="backgroundRearLayer",this._bgContainer.appendChild(this._bgRear),this._bgFront=document.createElement("div"),this._bgFront.id="backgroundFrontLayer",this._bgContainer.appendChild(this._bgFront),_.sg(this.root).insertBefore(this._bgContainer,this.$.contentContainer))},
_getDOMRef:function(F){switch(F){case "backgroundFrontLayer":return this._ensureBgContainers(),this._bgFront;case "backgroundRearLayer":return this._ensureBgContainers(),this._bgRear;case "background":return this._ensureBgContainers(),this._bgContainer;case "mainTitle":return _.sg(this).querySelector("[main-title]");case "condensedTitle":return _.sg(this).querySelector("[condensed-title]")}return null},
getScrollState:function(){return{progress:this._progress,top:this._top}}});var R1T;var e1O;_.k3({_template:function(){if(e1O!==void 0)return e1O;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-app-header-layout--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_app_layout.tp_yt_app_header_layout.tp.yt.app.header.layout.css.js--\x3e<div id="wrapper" class="initializing style-scope tp-yt-app-header-layout">\n  <slot id="headerSlot" name="header" class="style-scope tp-yt-app-header-layout"></slot>\n\n  <div id="contentContainer" class="style-scope tp-yt-app-header-layout">\n    <slot class="style-scope tp-yt-app-header-layout"></slot>\n  </div>\n</div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);var W=F.content,E=W.insertBefore;R1T===void 0&&(R1T=document.createElement("template"));var h=R1T;E.call(W,h.content.cloneNode(!0),F.content.firstChild);return e1O=F},
is:"tp-yt-app-header-layout",behaviors:[h1K],properties:{hasScrollingRegion:{type:Boolean,value:!1,reflectToAttribute:!0}},observers:["resetLayout(isAttached, hasScrollingRegion)"],get header(){return _.sg(this.$.headerSlot).getDistributedNodes()[0]},_updateLayoutStates:function(){var F=this.header;if(this.isAttached&&F){this.$.wrapper.classList.remove("initializing");F.scrollTarget=this.hasScrollingRegion?this.$.contentContainer:this.ownerDocument.documentElement;if(this.hasScrollingRegion)F.style.left=
"",F.style.right="";else{var W=this.getBoundingClientRect(),E=document.documentElement.clientWidth-W.right;F.style.left=W.left+"px";F.style.right=E+"px"}W=this.$.contentContainer.style;E=F.offsetHeight;F.fixed&&!F.condenses&&this.hasScrollingRegion?(W.marginTop=E+"px",W.paddingTop=""):(W.paddingTop=E+"px",W.marginTop="")}}});var Mxg=new _.S("replaceFeedContentAction");var gmK=new _.S("alertCommand");var QUT=new _.S("manageLabsStateCommand");var z1N=new _.S("inlineFormRenderer");var XT=new _.S("playlistSidebarPrimaryInfoRenderer");var txx=new _.S("productDetailsThumbnailRenderer"),Cw$=new _.S("productDetailsVariantRenderer"),BFN=new _.S("productDetailsVariantOptionRenderer"),vmP=new _.S("productDetailsOffersContainerRenderer"),I3w=new _.S("productDetailsOfferRenderer");var csw=new _.S("shoppingFlaggingRenderer");var DEK=new _.S("playlistBylineRenderer");var xEq=new _.S("insertChannelTabCommand");var Ho=function(){return _.zK.apply(this,arguments)||this};
_.k(Ho,_.zK);_.N=Ho.prototype;_.N.activeChanged=function(){if(this.active){var F=_.Z(this.hostElement).querySelector("#header");F&&_.hF(F,"iron-resize");window.addEventListener("scroll",_.UO(this,this.onScroll))}else window.removeEventListener("scroll",_.UO(this,this.onScroll)),_.hF(this.hostElement,"yt-request-panel-mode-change",{mode:"seamed"})};
_.N.guideVisibleChanged=function(){var F=_.Z(this.hostElement).querySelector("#header");F&&_.hF(F,"iron-resize")};
_.N.onScroll=function(){var F=this;_.OO(this,"onScroll",function(){var W=_.Z(F.hostElement).querySelector("#header");W&&W.polymerController&&(W=W.polymerController.getScrollState().progress===1?"standard":"seamed",_.hF(F.hostElement,"yt-request-panel-mode-change",{mode:W}))},10)};
_.N.tabsChanged=function(){if(this.tabs){for(var F=null,W=0,E=this.tabs.length;W<E;++W){var h=this.tabs[W].tabRenderer;if(h&&h.selected){F=W;break}}this.selected=F}};
_.N.onTabsActivate=function(F){_.hF(this.hostElement,"yt-navigate",{endpoint:this.tabs[F.detail.selected].tabRenderer.endpoint})};
Ho.prototype.tabsChanged=Ho.prototype.tabsChanged;Ho.prototype.guideVisibleChanged=Ho.prototype.guideVisibleChanged;Ho.prototype.activeChanged=Ho.prototype.activeChanged;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Ho.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.y_.YtdGuideStateAwareBehavior),_.Y("design:type",Object)],Ho.prototype,"ytdGuideStateAwareBehavior",void 0);_.T([_.O(),_.Y("design:type",Array)],Ho.prototype,"tabs",void 0);
_.T([_.O(),_.Y("design:type",Object)],Ho.prototype,"selected",void 0);_.T([_.O(),_.Y("design:type",Boolean)],Ho.prototype,"active",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Ho.prototype,"disableHeaderFluidWidth",void 0);_.T([_.ea("active"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Ho.prototype,"activeChanged",null);
_.T([_.ea("guidePersistentAndVisible"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Ho.prototype,"guideVisibleChanged",null);_.T([_.ea("tabs"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Ho.prototype,"tabsChanged",null);Ho=_.T([_.tT()],Ho);var k6q=[_.K.YtRendererBehavior,_.y_.YtdGuideStateAwareBehavior,Ho.prototype];var As$=2/3,sUg=_.LQ(130749),LdK=function(F,W){var E=this;this.element=F;this.layer=0;this.refreshConfig={startPosition:0,startAction:function(){E.startAction()},
draggingClass:"gesture-dragging",triggers:{down:{endPosition:80,threshold:120,disableFinish:!0,translateBack:!0,moveRatio:As$,moveAction:function(h){E.moveAction(h)},
triggerAction:function(){E.element.isReloading=!0;_.jc(_.z4(),{visualElement:sUg});_.Ru.instance.resolveCommand({signalAction:{signal:"SOFT_RELOAD_PAGE"}},{form:{element:E.element}})}}}};
_.t5(_.z4(),sUg,this.layer);this.gesture=new _.gA(F,W,this.refreshConfig,"pan-down");this.attach()};
_.N=LdK.prototype;_.N.attach=function(){this.gesture.attach()};
_.N.detach=function(){this.gesture.detach()};
_.N.reset=function(){this.element.close()};
_.N.startAction=function(){this.element.reset();this.element.isReloading=!1};
_.N.moveAction=function(F){this.element.rotation=F*360};var qoK=_.LQ(130750),Po=function(F,W,E,h,d){var V=this;this.element=F;this.parent=E;this.channelHeader=h;this.ytdReduxDispatch=d;this.layer=0;this.scrollPositionNeedsUpdate=!1;this.scrollPositionForTabs=new Map;this.tabConfig={startPosition:0,draggingClass:"gesture-tab-dragging",startAction:function(){V.tabsStartAtInPx=V.channelHeader.clientHeight-48;var R;(R=V.selectedTab)!=null&&R.title&&(R=_.WZ().resolve(_.Fd(_.KQ)))&&(R=R.getCurrentPage(),V.lastVisitedTabScrollPosition=R.getScrollTop(),V.previousTab&&
((V.lastVisitedTabScrollPosition===void 0?0:V.lastVisitedTabScrollPosition<V.channelHeader.clientHeight-48)?V.scrollPositionForTabs.has(V.selectedTab.title)&&V.scrollPositionForTabs.delete(V.selectedTab.title):V.scrollPositionForTabs.set(V.selectedTab.title,R.getScrollTop())))},
triggers:{right:{endPosition:500,threshold:100,transitionEndPosition:$EN(),triggerAction:function(){V.navigate(V.previousTab)},
moveAction:function(R,M){V.moveAction(R,M)}},
left:{endPosition:-500,threshold:-100,transitionEndPosition:-$EN(),triggerAction:function(){V.navigate(V.nextTab)},
moveAction:function(R,M){V.moveAction(R,M)}}}};
_.t5(_.z4(),qoK,this.layer);this.gesture=new _.gA(F,W,this.tabConfig);this.attach()};
Po.prototype.attach=function(){this.gesture.attach()};
Po.prototype.detach=function(){this.gesture.detach()};
Po.prototype.tabsChanged=function(F){if(F){var W=void 0;this.nextTab=this.previousTab=this.selectedTab=void 0;F=_.U(F);for(var E=F.next();!E.done;E=F.next()){E=E.value.tabRenderer;this.selectedTab&&!this.nextTab&&(this.nextTab=E);var h=void 0;if((h=E)==null?0:h.selected)this.previousTab=W,this.selectedTab=E;W=E}W=this.gesture;F=this.previousTab?this.nextTab?this.tabConfig:Object.assign({},this.tabConfig,{triggers:{right:this.tabConfig.triggers.right}}):Object.assign({},this.tabConfig,{triggers:{left:this.tabConfig.triggers.left}});
W.config=F;this.scrollPositionNeedsUpdate=!0}};
Po.prototype.moveAction=function(F,W){if(!this.tabsElement){var E;this.tabsElement=(E=this.parent.header)==null?void 0:E.tabsElement;W==="right"&&this.previousTab?_.g6H(_.e8.instance,this.previousTab.endpoint,{},""):W==="left"&&this.nextTab&&_.g6H(_.e8.instance,this.nextTab.endpoint,{},"");if(!this.tabsElement)return}E=this.tabsElement._pos;W==="right"&&(F*=-1);this.tabsElement._positionBar(E.width,E.left*1+E.width*F)};
var $EN=function(){var F,W;return(W=(F=_.WZ().resolve(_.KQ).getCurrentPage())==null?void 0:F.clientWidth)!=null?W:0};
Po.prototype.navigate=function(F){this.element.data=void 0;if(F=F==null?void 0:F.endpoint)this.ytdReduxDispatch(FdT(!0)),_.jc(_.z4(),{visualElement:qoK}),_.Ru.instance.resolveCommand({navigateAction:{endpoint:F}},{form:{element:this.element}})};var Zeq;var X4T;var JY=function(){return _.n.apply(this,arguments)||this};
_.k(JY,_.n);JY.prototype.configureRendererStamper=function(){return{"data.deleteButton":{id:"delete-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],JY.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],JY.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],JY.prototype,"data",void 0);JY=_.T([_.y({is:"ytd-labs-edit-renderer",disableElementRegistration:!0})],JY);
_.r(JY,"ytd-labs-edit-renderer",function(){if(X4T!==void 0)return X4T;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-labs-edit-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-labs-edit-renderer">\n  <h2 id="title" class="style-scope ytd-labs-edit-renderer">[[getSimpleString(data.title)]]</h2>\n  <div id="delete-button" class="style-scope ytd-labs-edit-renderer"></div>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return X4T=F},{mode:1});var He$;var aa=function(){var F=_.n.apply(this,arguments)||this;F.dark=!1;F.headerBackgroundLight="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";F.headerBackgroundDark="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";F.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return F};
_.k(aa,_.n);aa.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
aa.prototype.ready=function(){var F=document.documentElement.hasAttribute("dark");this.setBackgroundImage(F);this.dark=F};
aa.prototype.onDarkModeToggledAction=function(F){this.setBackgroundImage(F);this.dark=F};
aa.prototype.setBackgroundImage=function(F){_.V9(this.hostElement,{"--yt-labs-header-background":"url("+(F?this.headerBackgroundDark:this.headerBackgroundLight)+")"})};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],aa.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],aa.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],aa.prototype,"ytActionHandlerBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],aa.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],aa.prototype,"dark",void 0);
aa=_.T([_.y({is:"ytd-labs-header-renderer",disableElementRegistration:!0})],aa);
_.r(aa,"ytd-labs-header-renderer",function(){if(He$!==void 0)return He$;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-labs-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="wrapper" class="style-scope ytd-labs-header-renderer">\n  <div id="contents" class="style-scope ytd-labs-header-renderer">\n    <div id="metadata" class="style-scope ytd-labs-header-renderer">\n      <ytd-badge-supported-renderer hidden="[[!data.badge]]" top-standalone-badge="[[data.badge]]" class="style-scope ytd-labs-header-renderer">\n      </ytd-badge-supported-renderer>\n      <h3 id="title" class="style-scope ytd-labs-header-renderer">[[getSimpleString(data.title)]]</h3>\n      <yt-formatted-string id="text" split-lines="" text="[[data.text]]" class="style-scope ytd-labs-header-renderer"></yt-formatted-string>\n      <div id="primary-button" class="style-scope ytd-labs-header-renderer"></div>\n    </div>\n  </div>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return He$=F},{mode:1});var PwK;var ft=function(){var F=_.n.apply(this,arguments)||this;F.actionMap={"yt-check-labs-opted-in-state":"onCheckLabsOptedInState","yt-manage-labs-state-command":"onManageLabsState"};return F};
_.k(ft,_.n);ft.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"},toggleButtonRenderer:{component:"ytd-toggle-button-renderer",params:{buttonSize:"size-large"}}}},"data.feedbackButton":{id:"feedback-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonSize:"size-large"}}}}}};
ft.prototype.onYtToggleButton=function(F){this.notifyPath("data.primaryButton.toggleButtonRenderer.isToggled",F.detail.toggled)};
ft.prototype.onManageLabsState=function(F){if(F=_.D(F,QUT))F.stateChange==="LABS_STATE_TYPE_OVERRIDE_OPT_IN"&&this.data?F.labsItemId!==this.data.labsItemId?this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1):this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0):this.data&&F.labsItemId===this.data.labsItemId&&(F.stateChange==="LABS_STATE_TYPE_OPT_IN"?_.dW(this.hostElement,"yt-check-labs-opted-in-state").some(function(W){return W})&&this.data.confirmationDialogCommand?_.Rj(this.hostElement,
[this.data.confirmationDialogCommand],this.hostElement):this.data.optInCommand&&(_.WZ().resolve(_.EJ).resolveCommand(this.data.optInCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0)):this.data.optOutCommand&&F.stateChange==="LABS_STATE_TYPE_OPT_OUT"&&(_.WZ().resolve(_.EJ).resolveCommand(this.data.optOutCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1)))};
ft.prototype.onCheckLabsOptedInState=function(){var F=this.get("data.primaryButton.toggleButtonRenderer");return F?F.isToggled:!1};
_.Sn.Object.defineProperties(ft.prototype,{itemStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.itemStyle}}});
ft.prototype.onYtToggleButton=ft.prototype.onYtToggleButton;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],ft.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],ft.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],ft.prototype,"ytActionHandlerBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],ft.prototype,"data",void 0);
_.T([_.O({reflectToAttribute:!0}),_.a("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],ft.prototype,"itemStyle",null);_.T([_.R4("yt-toggle-button"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],ft.prototype,"onYtToggleButton",null);ft=_.T([_.y({is:"ytd-labs-item-renderer",disableElementRegistration:!0})],ft);
_.r(ft,"ytd-labs-item-renderer",function(){if(PwK!==void 0)return PwK;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-labs-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-labs-item-renderer">\n  <div id="metadata" class="style-scope ytd-labs-item-renderer">\n    <div id="badge" hidden="[[!data.badgeTitle]]" class="style-scope ytd-labs-item-renderer">[[getSimpleString(data.badgeTitle)]]</div>\n    <h2 id="title" class="style-scope ytd-labs-item-renderer">[[getSimpleString(data.title)]]</h2>\n    <div id="expiration-date" class="style-scope ytd-labs-item-renderer">[[getSimpleString(data.expirationDate)]]</div>\n    <yt-formatted-string id="availability-text" hidden="[[data.primaryButton.toggleButtonRenderer.isToggled]]" text="[[data.experimentalInfo.availabilityText]]" class="style-scope ytd-labs-item-renderer"></yt-formatted-string>\n    <yt-formatted-string id="text" split-lines="" text="[[data.text]]" class="style-scope ytd-labs-item-renderer"></yt-formatted-string>\n    <yt-formatted-string id="disclaimer-text" split-lines="" text="[[data.experimentalInfo.disclaimerText]]" class="style-scope ytd-labs-item-renderer"></yt-formatted-string>\n    <div id="buttons" class="style-scope ytd-labs-item-renderer">\n      <div id="primary-button" class="style-scope ytd-labs-item-renderer"></div>\n      <div id="feedback-button" hidden="[[!data.primaryButton.toggleButtonRenderer.isToggled]]" class="style-scope ytd-labs-item-renderer">\n      </div>\n    </div>\n    <yt-formatted-string id="no-availability-text" text="[[data.experimentalInfo.noAvailabilityText]]" class="style-scope ytd-labs-item-renderer"></yt-formatted-string>\n  </div>\n  <yt-img-shadow id="promo-image" hidden="[[data.experimentalLabelText]]" thumbnail="[[data.promoImage]]" width="395" class="style-scope ytd-labs-item-renderer">\n  </yt-img-shadow>\n  <div id="experimental-img" hidden="[[!data.experimentalLabelText]]" width="395" class="style-scope ytd-labs-item-renderer">\n    <yt-img-shadow id="promo-image" thumbnail="[[data.promoImage]]" width="395" class="style-scope ytd-labs-item-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="experimental-label" text="[[data.experimentalLabelText]]" class="style-scope ytd-labs-item-renderer"></yt-formatted-string>\n  </div>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return PwK=F},{mode:1});var Jsx;var a3q;var O5=function(){return _.n.apply(this,arguments)||this};
_.k(O5,_.n);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],O5.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],O5.prototype,"data",void 0);O5=_.T([_.y({is:"ytd-live-chat-history-new-sponsor-chip-renderer",disableElementRegistration:!0})],O5);
_.r(O5,"ytd-live-chat-history-new-sponsor-chip-renderer",function(){if(a3q!==void 0)return a3q;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-live-chat-history-new-sponsor-chip-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.newSponsorMessage]]" class="style-scope ytd-live-chat-history-new-sponsor-chip-renderer"></yt-formatted-string>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return a3q=F},{mode:1});var f3q;var bP=function(){return _.n.apply(this,arguments)||this};
_.k(bP,_.n);bP.prototype.observeSuperchatChip=function(){if(this.data){var F={"--yt-live-chat-history-super-chat-chip-renderer-background-color":this.colorFromDecimal(this.data.backgroundColor),"--yt-live-chat-history-super-chat-chip-renderer-text-color":this.colorFromDecimal(this.data.textColor)};_.V9(this.hostElement,F)}};
bP.prototype.colorFromDecimal=function(F){return _.XC(Number(F||0))};
bP.prototype.observeSuperchatChip=bP.prototype.observeSuperchatChip;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],bP.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],bP.prototype,"data",void 0);_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],bP.prototype,"observeSuperchatChip",null);bP=_.T([_.y({is:"ytd-live-chat-history-super-chat-chip-renderer",disableElementRegistration:!0})],bP);
_.r(bP,"ytd-live-chat-history-super-chat-chip-renderer",function(){if(f3q!==void 0)return f3q;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-live-chat-history-super-chat-chip-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.purchaseAmountText]]" class="style-scope ytd-live-chat-history-super-chat-chip-renderer"></yt-formatted-string>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return f3q=F},{mode:1});var lP=function(){return _.n.apply(this,arguments)||this};
_.k(lP,_.n);lP.prototype.configureRendererStamper=function(){return{"data.deleteButton":{id:"delete-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.chip":{id:"chips",mapping:{liveChatHistorySuperChatChipRenderer:"ytd-live-chat-history-super-chat-chip-renderer",liveChatHistoryNewSponsorChipRenderer:"ytd-live-chat-history-new-sponsor-chip-renderer"}}}};
_.Sn.Object.defineProperties(lP.prototype,{hideMessageBlock:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!this.data.charityName&&!!this.data.chip}}});
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],lP.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],lP.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.O9),_.Y("design:type",Object)],lP.prototype,"ytdDismissibleItemBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],lP.prototype,"data",void 0);_.T([_.a("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],lP.prototype,"hideMessageBlock",null);
lP=_.T([_.y({is:"ytd-live-chat-history-entry-renderer",disableElementRegistration:!0})],lP);
_.r(lP,"ytd-live-chat-history-entry-renderer",function(){if(Jsx!==void 0)return Jsx;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-live-chat-history-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-live-chat-history-entry-renderer">\n  <div id="text" class="style-scope ytd-live-chat-history-entry-renderer">\n    <yt-formatted-string id="title" link-inherit-color="" text="[[data.videoTitle]]" class="style-scope ytd-live-chat-history-entry-renderer"></yt-formatted-string>\n    <div id="chip-container" class="style-scope ytd-live-chat-history-entry-renderer">\n      <div id="superchat-container" hidden="[[!data.chip]]" class="style-scope ytd-live-chat-history-entry-renderer">\n        <span id="chips" class="style-scope ytd-live-chat-history-entry-renderer"></span>\n        <yt-formatted-string id="charity-name" text="[[data.charityName]]" class="style-scope ytd-live-chat-history-entry-renderer">\n        </yt-formatted-string>\n        <yt-formatted-string id="sc4g-message" hidden="[[data.charityName]]" text="[[data.message]]" class="style-scope ytd-live-chat-history-entry-renderer">\n        </yt-formatted-string>\n      </div>\n      <yt-formatted-string id="message" hidden="[[hideMessageBlock]]" text="[[data.message]]" class="style-scope ytd-live-chat-history-entry-renderer">\n      </yt-formatted-string>\n    </div>\n    <div id="sticker" class="style-scope ytd-live-chat-history-entry-renderer">\n      <yt-img-shadow height="64" hidden="[[!data.stickerThumbnail]]" thumbnail="[[data.stickerThumbnail]]" width="64" class="style-scope ytd-live-chat-history-entry-renderer">\n      </yt-img-shadow>\n    </div>\n    <span id="timestamp" class="style-scope ytd-live-chat-history-entry-renderer">[[getSimpleString(data.timestamp)]]</span>\n  </div>\n  <div id="delete-button" class="style-scope ytd-live-chat-history-entry-renderer"></div>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return Jsx=F},{mode:1});var OeF;var nt=function(){return _.n.apply(this,arguments)||this};
_.k(nt,_.n);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],nt.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],nt.prototype,"data",void 0);nt=_.T([_.y({is:"ytd-channel-options-renderer",disableElementRegistration:!0})],nt);
_.r(nt,"ytd-channel-options-renderer",function(){if(OeF!==void 0)return OeF;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-options-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="channel-info" hidden="[[!data.name]]" class="style-scope ytd-channel-options-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-channel-options-renderer" href$="[[computeHref_(data.avatarEndpoint)]]" data="[[data.avatarEndpoint]]" aria-label$="[[data.avatarAccessibility.accessibilityData.label]]">\n    <yt-img-shadow height="50" thumbnail="[[data.avatar]]" width="50" class="style-scope ytd-channel-options-renderer">\n    </yt-img-shadow>\n  </a>\n  <div id="channel-info-text" class="style-scope ytd-channel-options-renderer">\n    <div id="name" class="style-scope ytd-channel-options-renderer">[[data.name]]</div>\n  </div>\n</div>\n<template is="dom-repeat" items="[[data.links]]" class="style-scope ytd-channel-options-renderer">\n  <yt-formatted-string class="link style-scope ytd-channel-options-renderer" force-default-style="" split-lines="" text="[[item]]">\n  </yt-formatted-string>\n</template>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return OeF=F},{mode:1});var bew;var y8=function(){return _.n.apply(this,arguments)||this};
_.k(y8,_.n);y8.prototype.configureRendererStamper=function(){return{"data.resumeButton":{id:"resume-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],y8.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],y8.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],y8.prototype,"data",void 0);y8=_.T([_.y({is:"ytd-settings-email-item-renderer",disableElementRegistration:!0})],y8);
_.r(y8,"ytd-settings-email-item-renderer",function(){if(bew!==void 0)return bew;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-settings-email-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="info" class="style-scope ytd-settings-email-item-renderer">\n  <yt-img-shadow height="36" hidden="[[!data.avatar]]" thumbnail="[[data.avatar]]" width="36" class="style-scope ytd-settings-email-item-renderer">\n  </yt-img-shadow>\n  <div id="title" class="style-scope ytd-settings-email-item-renderer">[[getSimpleString(data.title)]]</div>\n</div>\n<div id="button-container" class="style-scope ytd-settings-email-item-renderer">\n  <div id="resume-button" class="style-scope ytd-settings-email-item-renderer"></div>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return bew=F},{mode:1});var l3K;var jw=function(){return _.n.apply(this,arguments)||this};
_.k(jw,_.n);jw.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{settingsEmailItemRenderer:{component:"ytd-settings-email-item-renderer",noInjection:!0}}},"data.resumeButton":{id:"resume-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
jw.prototype.getExpansionIcon=function(F){return F?"arrow_drop_up":"arrow_drop_down"};
jw.prototype.onToggleListExpansion=function(){this.expanded=!this.expanded};
_.Sn.Object.defineProperties(jw.prototype,{emailListExpanded:{configurable:!0,enumerable:!0,get:function(){return this.expanded?"true":"false"}}});
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],jw.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],jw.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],jw.prototype,"data",void 0);_.T([_.O({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],jw.prototype,"expanded",void 0);_.T([_.a("expanded"),_.Y("design:type",String),_.Y("design:paramtypes",[])],jw.prototype,"emailListExpanded",null);
_.T([_.gQ("#options"),_.Y("design:type",Object)],jw.prototype,"options",void 0);jw=_.T([_.y({is:"ytd-settings-email-list-renderer",disableElementRegistration:!0})],jw);
_.r(jw,"ytd-settings-email-list-renderer",function(){if(l3K!==void 0)return l3K;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-settings-email-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-settings-email-list-renderer">\n  <tp-yt-paper-button id="list-expansion" aria-expanded$="[[emailListExpanded]]" aria-label$="[[getSimpleString(data.title)]]" noink="" on-tap="onToggleListExpansion" class="style-scope ytd-settings-email-list-renderer">\n    <div id="title" class="style-scope ytd-settings-email-list-renderer">[[getSimpleString(data.title)]]</div>\n    <yt-icon id="help-icon" hidden="[[!data.helpText]]" icon="yt-icons:help" class="style-scope ytd-settings-email-list-renderer"></yt-icon>\n    <tp-yt-paper-tooltip for="help-icon" hidden="[[!data.helpText]]" offset="5" position="top" class="style-scope ytd-settings-email-list-renderer">\n      [[getSimpleString(data.helpText)]]\n    </tp-yt-paper-tooltip>\n    <yt-icon class="expand-icon style-scope ytd-settings-email-list-renderer" icon="[[getExpansionIcon(expanded)]]"></yt-icon>\n  </tp-yt-paper-button>\n  <div id="button-container" hidden="[[!data.resumeButton]]" on-tap="onResumeAll" class="style-scope ytd-settings-email-list-renderer">\n    <div id="resume-button" class="style-scope ytd-settings-email-list-renderer"></div>\n  </div>\n</div>\n<div id="content" class="style-scope ytd-settings-email-list-renderer">\n  <div id="options" class="style-scope ytd-settings-email-list-renderer"></div>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return l3K=F},{mode:1});var nm6;var iP=function(){var F=_.n.apply(this,arguments)||this;F.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return F};
_.k(iP,_.n);iP.prototype.configureRendererStamper=function(){return{"data.form":{id:"username-password-form",mapping:{formRenderer:"yt-form-renderer"}},"data.claimButton":{id:"claim-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
iP.prototype.handleSignalActionSubmitForm=function(){var F,W=(F=this.formRenderer)==null?void 0:F.getForm();W&&this.data.serviceEndpoint&&_.WZ().resolve(_.EJ).resolveCommand(this.data.serviceEndpoint,{form:Object.assign({},W,{element:this.hostElement})})};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],iP.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],iP.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],iP.prototype,"ytActionHandlerBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],iP.prototype,"data",void 0);_.T([_.gQ("yt-form-renderer"),_.Y("design:type",Object)],iP.prototype,"formRenderer",void 0);
iP=_.T([_.y({is:"ytd-settings-gaia-link-renderer",disableElementRegistration:!0})],iP);
_.r(iP,"ytd-settings-gaia-link-renderer",function(){if(nm6!==void 0)return nm6;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-settings-gaia-link-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="form-container" class="style-scope ytd-settings-gaia-link-renderer">\n  <div id="username-password-form" class="style-scope ytd-settings-gaia-link-renderer"></div>\n  <div id="claim-button" class="style-scope ytd-settings-gaia-link-renderer"></div>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return nm6=F},{mode:1});var ysK;var rA=function(){var F=_.n.apply(this,arguments)||this;F.actionMap={"yt-settings-update-options-command":"handleUpdateOptionsCommand"};return F};
_.k(rA,_.n);rA.prototype.dataChanged=function(){this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_AV1_OPTIONS"&&_.iLK()&&this.set("data.hidden",!1)};
rA.prototype.onSwitchReady=function(){var F=this;this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_PUSH_NOTIFICATIONS_ENABLED"&&_.c("service_worker_push_enabled")&&navigator.serviceWorker.ready.then(function(){_.jST().then(function(W){W&&(Notification.permission==="default"?F.set("data.hidden",!1):Notification.permission==="granted"&&_.KZ("NotificationsDisabled").then(function(E){E||_.dW(F.hostElement,"yt-toggle-settings-switch",[F.data.id,!E]);F.set("data.hidden",!1)}).catch(function(){}))})})};
rA.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{channelOptionsRenderer:{component:"ytd-channel-options-renderer",noInjection:!0},copyLinkRenderer:{component:"yt-copy-link-renderer",noInjection:!0,params:{adaptiveFullWidth:!0}},dropdownRenderer:{component:"ytd-dropdown-renderer",params:{hasBackground:!0,verticalAlign:"bottom",noUnderline:!0},noInjection:!0},settingsCheckboxRenderer:{component:"ytd-settings-checkbox-renderer",noInjection:!0},settingsEmailListRenderer:{component:"ytd-settings-email-list-renderer",
noInjection:!0},settingsGaiaLinkRenderer:{component:"ytd-settings-gaia-link-renderer",noInjection:!0},settingsRadioOptionRenderer:{component:"ytd-settings-radio-option-renderer",noInjection:!0},settingsSwitchRenderer:{component:"ytd-settings-switch-renderer",noInjection:!0},connectedAppRenderer:{component:"ytd-connected-app-renderer",noInjection:!0}}}}};
rA.prototype.handleUpdateOptionsCommand=function(F){(F=_.D(F,_.jY_))&&this.data&&this.data.id===F.id&&(this.set("data.hidden",F.hidden),F.text!==void 0&&this.set("data.text",F.text),F.clearOptions&&this.set("data.options",[]))};
rA.prototype.onSwitchReady=rA.prototype.onSwitchReady;rA.prototype.dataChanged=rA.prototype.dataChanged;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],rA.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],rA.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],rA.prototype,"ytActionHandlerBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],rA.prototype,"data",void 0);
_.T([_.Cz("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],rA.prototype,"dataChanged",null);_.T([_.R4("yt-settings-switch-ready"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],rA.prototype,"onSwitchReady",null);rA=_.T([_.y({is:"ytd-settings-options-renderer",disableElementRegistration:!0})],rA);
_.r(rA,"ytd-settings-options-renderer",function(){if(ysK!==void 0)return ysK;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-settings-options-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="section" hidden="[[data.hidden]]" class="style-scope ytd-settings-options-renderer">\n  <div id="title" class="style-scope ytd-settings-options-renderer">[[getSimpleString(data.title)]]</div>\n  <div id="content" class="style-scope ytd-settings-options-renderer">\n    <div id="options" class="style-scope ytd-settings-options-renderer"></div>\n    <yt-formatted-string id="text" force-default-style="" hidden="[[!data.text]]" split-lines="" text="[[data.text]]" class="style-scope ytd-settings-options-renderer">\n    </yt-formatted-string>\n  </div>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return ysK=F},{mode:1});var jU$;var Tw=function(){return _.n.apply(this,arguments)||this};
_.k(Tw,_.n);Tw.prototype.onYtExpanderMoreTapped=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
Tw.prototype.configureRendererStamper=function(){return{"data.attributionLinkButtonRenderer":{id:"attribution-link-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{disableTextTransform:!0}}}}}};
Tw.prototype.onYtExpanderMoreTapped=Tw.prototype.onYtExpanderMoreTapped;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Tw.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],Tw.prototype,"ytComponentBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],Tw.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],Tw.prototype,"data",void 0);
_.T([_.R4("yt-expander-more-tapped"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Tw.prototype,"onYtExpanderMoreTapped",null);Tw=_.T([_.y({disableElementRegistration:!0,is:"ytd-product-details-description-renderer"})],Tw);
_.r(Tw,"ytd-product-details-description-renderer",function(){if(jU$!==void 0)return jU$;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-description-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-product-details-description-renderer">\n  <div class="description-row row style-scope ytd-product-details-description-renderer">\n      <ytd-expander id="expander" hidden="[[!data.description]]" max-number-of-lines="4" recompute-on-resize="" class="style-scope ytd-product-details-description-renderer">\n        <div class="description style-scope ytd-product-details-description-renderer" slot="content">[[data.description]]\n        </div>\n        <span id="attribution-link-button" slot="sticky-secondary" hidden="[[!data.attributionLinkButtonRenderer]]" class="style-scope ytd-product-details-description-renderer"></span>\n        <span class="more-button style-scope ytd-product-details-description-renderer" slot="more-button">[[getSimpleString(data.moreButtonRenderer.buttonRenderer.text)]]</span>\n        <span class="less-button style-scope ytd-product-details-description-renderer" slot="less-button">[[getSimpleString(data.lessButtonRenderer.buttonRenderer.text)]]</span>\n      </ytd-expander>\n    </div>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return jU$=F},{mode:1});var ieF;var oa=function(){var F=_.n.apply(this,arguments)||this;F.shippingIcon="https://www.gstatic.com/images/icons/material/system/1x/local_shipping_grey600_48dp.png";F.shippingAddressIcon="https://www.gstatic.com/images/icons/material/system/1x/location_on_grey600_48dp.png";F.googleGuaranteeIcon="https://www.gstatic.com/images/icons/material/system/1x/google_guarantee_grey600_48dp.png";F.returnPolicyIcon="https://www.gstatic.com/images/icons/material/system/1x/undo_grey600_48dp.png";return F};
_.k(oa,_.n);oa.prototype.configureRendererStamper=function(){return{"data.purchaseButtonRenderer":{id:"purchase-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.purchaseButtonRenderers":{id:"purchase-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.Sn.Object.defineProperties(oa.prototype,{showAdditionalFees:{configurable:!0,enumerable:!0,get:function(){var F,W;return((F=this.data)==null?void 0:(W=F.offerData)==null?void 0:W.additionalFeesText)!==""}},
showMultiPurchaseButtons:{configurable:!0,enumerable:!0,get:function(){var F,W;return((F=this.data)==null?void 0:F.purchaseButtonRenderers)!==void 0&&((W=this.data)==null?void 0:W.purchaseButtonRenderers.length)!==0}},
showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var F,W;return!((F=this.data)==null||!F.formattedFromMerchantText)&&(!((W=this.data)==null||!W.purchaseButtonRenderer)||this.showMultiPurchaseButtons)}}});
_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],oa.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],oa.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],oa.prototype,"ytComponentBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],oa.prototype,"data",void 0);
_.T([_.O({type:_.c("kevlar_property_type_migration_killswitch")?String:void 0}),_.Y("design:type",Object)],oa.prototype,"shippingIcon",void 0);_.T([_.O({type:_.c("kevlar_property_type_migration_killswitch")?String:void 0}),_.Y("design:type",Object)],oa.prototype,"shippingAddressIcon",void 0);_.T([_.O({type:_.c("kevlar_property_type_migration_killswitch")?String:void 0}),_.Y("design:type",Object)],oa.prototype,"googleGuaranteeIcon",void 0);
_.T([_.O({type:_.c("kevlar_property_type_migration_killswitch")?String:void 0}),_.Y("design:type",Object)],oa.prototype,"returnPolicyIcon",void 0);_.T([_.a("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],oa.prototype,"showAdditionalFees",null);_.T([_.a("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],oa.prototype,"showMultiPurchaseButtons",null);
_.T([_.a("data","showMultiPurchaseButtons"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],oa.prototype,"showPurchaseData",null);oa=_.T([_.y({disableElementRegistration:!0,is:"ytd-product-details-hero-offer-renderer"})],oa);
_.r(oa,"ytd-product-details-hero-offer-renderer",function(){if(ieF!==void 0)return ieF;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-hero-offer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n\n<div class="price-and-action-row row style-scope ytd-product-details-hero-offer-renderer" hidden="[[!showPurchaseData]]" data-offer-version-id$="[[data.offerData.debugOfferVersionId]]">\n  <div class="price-column style-scope ytd-product-details-hero-offer-renderer">\n    <div class="price style-scope ytd-product-details-hero-offer-renderer">\n      <span class="item-price style-scope ytd-product-details-hero-offer-renderer">[[data.offerData.price]]</span>\n      <template is="dom-if" restamp="" if="[[showAdditionalFees]]" class="style-scope ytd-product-details-hero-offer-renderer">\n        <span class="additional-fees style-scope ytd-product-details-hero-offer-renderer">[[data.offerData.additionalFeesText]]</span>\n      </template>\n    </div>\n    <div class="offer-title style-scope ytd-product-details-hero-offer-renderer">[[data.offerData.title]]</div>\n    <template is="dom-if" restamp="" if="[[!data.shippingDetails]]" class="style-scope ytd-product-details-hero-offer-renderer">\n      <div class="merchant-row row style-scope ytd-product-details-hero-offer-renderer">\n        <div class="logo style-scope ytd-product-details-hero-offer-renderer">\n          <img src$="[[data.offerData.vendorLogoUrl]]" alt="" class="logo-url style-scope ytd-product-details-hero-offer-renderer" onerror="this.style.visibility=\'hidden\';">\n        </div>\n        <yt-formatted-string text="[[data.formattedFromMerchantText]]" class="style-scope ytd-product-details-hero-offer-renderer">\n      </yt-formatted-string></div>\n    </template>\n    <template is="dom-if" restamp="" if="[[data.shippingDetails]]" class="style-scope ytd-product-details-hero-offer-renderer">\n      <div class="shipping-details row style-scope ytd-product-details-hero-offer-renderer">\n        <div class="shipping-details-inner column style-scope ytd-product-details-hero-offer-renderer">\n          <div class="row shipping-details-inner-row secondary-color style-scope ytd-product-details-hero-offer-renderer">\n            <div class="logo style-scope ytd-product-details-hero-offer-renderer">\n              <img src$="[[data.offerData.vendorLogoUrl]]" alt="" class="logo-url style-scope ytd-product-details-hero-offer-renderer" onerror="this.style.visibility=\'hidden\';">\n            </div>\n            <yt-formatted-string link-inherit-color="" text="[[data.formattedFromMerchantText]]" class="style-scope ytd-product-details-hero-offer-renderer">\n          </yt-formatted-string></div>\n          <template is="dom-if" restamp="" if="[[data.shippingDetails.shippingDate]]" class="style-scope ytd-product-details-hero-offer-renderer">\n            <div id="date-and-price" class="row shipping-details-inner-row style-scope ytd-product-details-hero-offer-renderer">\n              <div class="logo style-scope ytd-product-details-hero-offer-renderer">\n                <img src$="[[shippingIcon]]" alt="" class="logo-url style-scope ytd-product-details-hero-offer-renderer" onerror="this.style.visibility=\'hidden\';">\n              </div>\n              <yt-formatted-string text="[[data.shippingDetails.shippingDate]]" class="style-scope ytd-product-details-hero-offer-renderer">\n            </yt-formatted-string></div>\n          </template>\n          <template is="dom-if" restamp="" if="[[data.shippingDetails.returnPolicy]]" class="style-scope ytd-product-details-hero-offer-renderer">\n            <div id="return-policy" class="row shipping-details-inner-row style-scope ytd-product-details-hero-offer-renderer">\n              <div class="logo style-scope ytd-product-details-hero-offer-renderer">\n                <img src$="[[returnPolicyIcon]]" alt="" class="logo-url style-scope ytd-product-details-hero-offer-renderer" onerror="this.style.visibility=\'hidden\';">\n              </div>\n              <yt-formatted-string link-inherit-color="" text="[[data.shippingDetails.returnPolicy]]" class="style-scope ytd-product-details-hero-offer-renderer">\n            </yt-formatted-string></div>\n          </template>\n          <template is="dom-if" restamp="" if="[[data.shippingDetails.shippingAddress]]" class="style-scope ytd-product-details-hero-offer-renderer">\n            <div id="shipping-address" class="row shipping-details-inner-row style-scope ytd-product-details-hero-offer-renderer">\n              <div class="logo style-scope ytd-product-details-hero-offer-renderer">\n                <img src$="[[shippingAddressIcon]]" alt="" class="logo-url style-scope ytd-product-details-hero-offer-renderer" onerror="this.style.visibility=\'hidden\';">\n              </div>\n              <yt-formatted-string text="[[data.shippingDetails.shippingAddress]]" class="style-scope ytd-product-details-hero-offer-renderer">\n            </yt-formatted-string></div>\n          </template>\n          <template is="dom-if" restamp="" if="[[data.shoutoutText]]" class="style-scope ytd-product-details-hero-offer-renderer">\n            <div id="google-guarantee" class="row shipping-details-inner-row style-scope ytd-product-details-hero-offer-renderer">\n              <div class="logo style-scope ytd-product-details-hero-offer-renderer">\n                <img src$="[[googleGuaranteeIcon]]" alt="" class="logo-url style-scope ytd-product-details-hero-offer-renderer" onerror="this.style.visibility=\'hidden\';">\n              </div>\n              <span class="shoutout-text secondary-color style-scope ytd-product-details-hero-offer-renderer">[[data.shoutoutText]]</span>\n              <ytd-button-renderer class="google-guarantee-info style-scope ytd-product-details-hero-offer-renderer" data="[[data.shoutoutButtonRenderer.buttonRenderer]]">\n              </ytd-button-renderer>\n            </div>\n          </template>\n        </div>\n      </div>\n    </template>\n    <template is="dom-if" restamp="" if="[[data.affiliateDisclaimerText]]" class="style-scope ytd-product-details-hero-offer-renderer">\n      <div id="affiliate-disclaimer" class="affiliate-disclaimer-text-row row style-scope ytd-product-details-hero-offer-renderer">\n        <span class="secondary-color style-scope ytd-product-details-hero-offer-renderer"> [[data.affiliateDisclaimerText]] </span>\n      </div>\n    </template>\n    <div class="purchase-buttons-row row style-scope ytd-product-details-hero-offer-renderer" hidden="[[!showMultiPurchaseButtons]]">\n      <div id="purchase-buttons" class="purchase-buttons-inner column style-scope ytd-product-details-hero-offer-renderer">\n      </div>\n    </div>\n  </div>\n  <div class="action-column style-scope ytd-product-details-hero-offer-renderer">\n    <div id="purchase-button" class="style-scope ytd-product-details-hero-offer-renderer"></div>\n  </div>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return ieF=F},{mode:1});var rsq;var TFw;var Gw=function(){return _.n.apply(this,arguments)||this};
_.k(Gw,_.n);_.N=Gw.prototype;_.N.attached=function(){this.hostElement.addEventListener("click",this.handleSelection);this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
_.N.onKeyDown=function(F){F=F.keyCode;F!==13&&F!==32||this.handleSelection()};
_.N.onMouseEnterImage=function(){var F;((F=this.data)==null?void 0:F.thumbnailDetails)!==void 0&&_.Nc(this.polymerController.hostElement,"ytd-product-details-variant-image-select",[this.data.thumbnailDetails])};
_.N.onMouseLeaveImage=function(){_.Nc(this.polymerController.hostElement,"ytd-product-details-variant-image-unselect")};
_.N.handleSelection=function(){this.data&&_.hF(this.hostElement,"ytd-product-details-thumbnail-renderer-selected",this.data.index)};
_.Sn.Object.defineProperties(Gw.prototype,{isSelected:{configurable:!0,enumerable:!0,get:function(){var F;return!((F=this.data)==null||!F.isSelected)}}});
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Gw.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],Gw.prototype,"data",void 0);_.T([_.a("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Gw.prototype,"isSelected",null);Gw=_.T([_.y({disableElementRegistration:!0,is:"ytd-product-details-thumbnail-renderer"})],Gw);
_.r(Gw,"ytd-product-details-thumbnail-renderer",function(){if(TFw!==void 0)return TFw;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-thumbnail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="product-card-renderer-container" class="style-scope ytd-product-details-thumbnail-renderer">\n  <div id="card" class="style-scope ytd-product-details-thumbnail-renderer">\n    <div hidden="[[!isSelected]]" id="card-selection-overlay" class="style-scope ytd-product-details-thumbnail-renderer"></div>\n    <div id="card-overlay" class="style-scope ytd-product-details-thumbnail-renderer"></div>\n    <yt-img-shadow id="card-image" aria-label="[[data.thumbnailDetails.accessibility.accessibilityData.label]]" object-fit="CONTAIN" thumbnail="[[data.thumbnailDetails]]" width="56px" class="style-scope ytd-product-details-thumbnail-renderer">\n    </yt-img-shadow>\n  </div>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return TFw=F},{mode:1});var Yv=function(){var F=_.n.apply(this,arguments)||this;var W={};F.actionMap=(W["ytd-product-details-variant-image-select"]="handlePreviewImageSelect",W["ytd-product-details-variant-image-unselect"]="handlePreviewImageDeselect",W);F.selectedThumbnailIndex=0;F.selectItem=function(E){E.target.onKeyDown(E)};
return F};
_.k(Yv,_.n);_.N=Yv.prototype;_.N.handlePreviewImageSelect=function(F){this.hoverThumbnail=F};
_.N.handlePreviewImageDeselect=function(){this.hoverThumbnail=void 0};
_.N.configureRendererStamper=function(){return{"populatedData.imageRenderer":{id:"items",mapping:{productDetailsThumbnailRenderer:{component:"ytd-product-details-thumbnail-renderer",attributes:{role:"option"}}}}}};
_.N.onThumbnailSelected=function(F,W){this.selectedThumbnailIndex=W};
_.N.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.selectedThumbnailIndex=0};
_.N.updateOffset=function(){var F=_.Z(this.hostElement).querySelector("#scroll-container").clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-F));this.ytdHorizontalListBehavior.reposition_()};
_.Sn.Object.defineProperties(Yv.prototype,{showThumbnails:{configurable:!0,enumerable:!0,get:function(){var F;if((F=this.data)==null?0:F.imageRenderer){var W,E;return((W=this.data)==null?void 0:(E=W.imageRenderer)==null?void 0:E.length)>1}return!1}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.hoverThumbnail!==void 0)return this.hoverThumbnail;var F;if((F=this.data)==null?0:F.imageRenderer){var W;return(W=_.D(this.data.imageRenderer[this.selectedThumbnailIndex],txx))==null?void 0:W.thumbnailDetails}}},
populatedData:{configurable:!0,enumerable:!0,get:function(){var F=this,W,E,h,d=(h=(W=this.data)==null?void 0:(E=W.imageRenderer)==null?void 0:E.map(function(V,R){return{productDetailsThumbnailRenderer:Object.assign({},_.D(V,txx),{index:R,isSelected:R===F.selectedThumbnailIndex})}}))!=null?h:[];
return Object.assign({},this.data,{imageRenderer:d})}}});
Yv.prototype.updateOffset=Yv.prototype.updateOffset;Yv.prototype.dataChanged=Yv.prototype.dataChanged;Yv.prototype.onThumbnailSelected=Yv.prototype.onThumbnailSelected;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Yv.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],Yv.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.EL.YtdHorizontalListBehavior),_.Y("design:type",Object)],Yv.prototype,"ytdHorizontalListBehavior",void 0);
_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],Yv.prototype,"componentBehavior",void 0);_.T([_.J([_.FM.YtActionHandlerBehavior]),_.Y("design:type",Object)],Yv.prototype,"actionHandlerBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],Yv.prototype,"data",void 0);_.T([_.O({value:"$.items.children"}),_.Y("design:type",String)],Yv.prototype,"itemsPath",void 0);_.T([_.O({value:3}),_.Y("design:type",Number)],Yv.prototype,"initialCount",void 0);
_.T([_.gQ("#items"),_.Y("design:type",Object)],Yv.prototype,"items",void 0);_.T([_.O(),_.Y("design:type",Object)],Yv.prototype,"selectedThumbnailIndex",void 0);_.T([_.O(),_.Y("design:type",Object)],Yv.prototype,"hoverThumbnail",void 0);_.T([_.a("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Yv.prototype,"showThumbnails",null);
_.T([_.R4("ytd-product-details-thumbnail-renderer-selected"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Number]),_.Y("design:returntype")],Yv.prototype,"onThumbnailSelected",null);_.T([_.a("data","selectedThumbnailIndex","hoverThumbnail"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Yv.prototype,"thumbnailDetails",null);_.T([_.a("data","selectedThumbnailIndex"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Yv.prototype,"populatedData",null);
_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Yv.prototype,"dataChanged",null);_.T([_.R4("iron-resize"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Yv.prototype,"updateOffset",null);Yv=_.T([_.y({disableElementRegistration:!0,is:"ytd-product-details-image-carousel-renderer"})],Yv);
_.r(Yv,"ytd-product-details-image-carousel-renderer",function(){if(rsq!==void 0)return rsq;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-image-carousel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="preview style-scope ytd-product-details-image-carousel-renderer">\n  <template is="dom-if" restamp="" if="[[thumbnailDetails]]" class="style-scope ytd-product-details-image-carousel-renderer">\n    <yt-img-shadow class="preview-image style-scope ytd-product-details-image-carousel-renderer" object-fit="CONTAIN" thumbnail="[[thumbnailDetails]]" width="512"></yt-img-shadow>\n  </template>\n</div>\n<div id="main" class="main style-scope ytd-product-details-image-carousel-renderer" hidden="[[!showThumbnails]]">\n  <div id="left-arrow-container" class="left-arrow-container style-scope ytd-product-details-image-carousel-renderer">\n    <div id="left-arrow" class="arrow style-scope ytd-product-details-image-carousel-renderer" on-click="prevClick_" hidden="[[atStart]]">\n       <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-product-details-image-carousel-renderer"></yt-icon>\n    </div>\n  </div>\n  <div id="scroll-container" class="style-scope ytd-product-details-image-carousel-renderer">\n    <tp-yt-paper-listbox id="items" on-keydown="selectItem" class="style-scope ytd-product-details-image-carousel-renderer"></tp-yt-paper-listbox>\n  </div>\n  <div id="right-arrow-container" class="right-arrow-container style-scope ytd-product-details-image-carousel-renderer">\n    <div id="right-arrow" class="arrow style-scope ytd-product-details-image-carousel-renderer" on-click="nextClick_" hidden="[[atEnd]]">\n       <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-product-details-image-carousel-renderer"></yt-icon>\n    </div>\n  </div>\n</div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return rsq=F},{mode:_.E6("kevlar_poly_si_batch_j079")?1:2});var om6;var wA=function(){return _.n.apply(this,arguments)||this};
_.k(wA,_.n);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],wA.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],wA.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],wA.prototype,"componentBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],wA.prototype,"data",void 0);wA=_.T([_.y({disableElementRegistration:!0,is:"ytd-product-details-offer-renderer"})],wA);
_.r(wA,"ytd-product-details-offer-renderer",function(){if(om6!==void 0)return om6;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-offer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n\n<div class="offer-details offer-details-new-ux style-scope ytd-product-details-offer-renderer" data-offer-version-id$="[[data.offerData.debugOfferVersionId]]">\n  <div class="offer-details-information style-scope ytd-product-details-offer-renderer">\n    <div class="offer-price style-scope ytd-product-details-offer-renderer">\n      [[data.offerData.price]]\n      <span class="additional-fees style-scope ytd-product-details-offer-renderer">[[data.offerData.additionalFeesText]]</span>\n    </div>\n    <div class="offer-title style-scope ytd-product-details-offer-renderer">\n      [[data.offerData.title]]\n    </div>\n    <div class="vendor-information style-scope ytd-product-details-offer-renderer">\n      <div class="vendor-logo style-scope ytd-product-details-offer-renderer">\n        <img src$="[[data.offerData.vendorLogoUrl]]" alt="" class="vendor-logo-url style-scope ytd-product-details-offer-renderer" onerror="this.style.visibility=\'hidden\';">\n      </div>\n      <div class="vendor-name style-scope ytd-product-details-offer-renderer">[[data.offerData.vendorName]]</div>\n    </div>\n  </div>\n  <div class="offer-cta style-scope ytd-product-details-offer-renderer">\n    <div class="checkout style-scope ytd-product-details-offer-renderer">\n      <ytd-button-renderer data="[[data.purchaseButtonRenderer.buttonRenderer]]" class="style-scope ytd-product-details-offer-renderer">\n      </ytd-button-renderer>\n    </div>\n  </div>\n</div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return om6=F},{mode:1});var G6K;var uP=function(){var F=_.n.apply(this,arguments)||this;F.isOffersHidden=!0;return F};
_.k(uP,_.n);uP.prototype.toggleOffers=function(){this.isOffersHidden=!this.isOffersHidden;var F,W=_.D((F=this.data)==null?void 0:F.viewOffersButton,_.jt);W&&this.ytRendererBehavior.logExplicitClick(W)};
uP.prototype.configureRendererStamper=function(){return{"data.offers":{id:"offer",mapping:{productDetailsOfferRenderer:"ytd-product-details-offer-renderer"}}}};
_.Sn.Object.defineProperties(uP.prototype,{firstOfferVendorLogoUrl:{configurable:!0,enumerable:!0,get:function(){var F,W,E,h;return(E=_.D((F=this.data)==null?void 0:(W=F.offers)==null?void 0:W[0],I3w))==null?void 0:(h=E.offerData)==null?void 0:h.vendorLogoUrl}}});
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],uP.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],uP.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],uP.prototype,"componentBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],uP.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Object)],uP.prototype,"isOffersHidden",void 0);
_.T([_.a("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],uP.prototype,"firstOfferVendorLogoUrl",null);uP=_.T([_.y({disableElementRegistration:!0,is:"ytd-product-details-offers-container-renderer"})],uP);
_.r(uP,"ytd-product-details-offers-container-renderer",function(){if(G6K!==void 0)return G6K;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-offers-container-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="offer-container style-scope ytd-product-details-offers-container-renderer">\n  <div class="header style-scope ytd-product-details-offers-container-renderer" on-click="toggleOffers">\n    <div class="title-description-container style-scope ytd-product-details-offers-container-renderer">\n      <yt-formatted-string class="title style-scope ytd-product-details-offers-container-renderer" text="[[data.descriptionLeft]]">\n      </yt-formatted-string>\n      <div class="vendor-logo style-scope ytd-product-details-offers-container-renderer">\n        <img src$="[[firstOfferVendorLogoUrl]]" alt="" class="vendor-logo-url style-scope ytd-product-details-offers-container-renderer" onerror="this.style.visibility=\'hidden\';">\n      </div>\n      <yt-formatted-string class="title style-scope ytd-product-details-offers-container-renderer" text="[[data.descriptionRight]]">\n      </yt-formatted-string>\n    </div>\n    <div class="action style-scope ytd-product-details-offers-container-renderer">\n      <ytd-button-renderer id="view-offers" class="view-button style-scope ytd-product-details-offers-container-renderer" aria-expanded="false" data="[[data.viewOffersButton.buttonRenderer]]" hidden="[[!isOffersHidden]]" noink="">\n      </ytd-button-renderer>\n      <ytd-button-renderer id="hide-offers" class="hide-button style-scope ytd-product-details-offers-container-renderer" aria-expanded="true" data="[[data.hideOffersButton.buttonRenderer]]" hidden="[[isOffersHidden]]" noink="">\n      </ytd-button-renderer>\n    </div>\n  </div>\n  <div id="offer" hidden="[[isOffersHidden]]" class="style-scope ytd-product-details-offers-container-renderer"></div>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return G6K=F},{mode:1});var YoO;var w4w;var Sw=function(){return _.n.apply(this,arguments)||this};
_.k(Sw,_.n);Sw.prototype.ready=function(){this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
Sw.prototype.onMouseEnterImage=function(){this.isImageButton&&this.thumbnailDetails!==void 0&&_.Nc(this,"ytd-product-details-variant-image-select",[this.thumbnailDetails])};
Sw.prototype.onMouseLeaveImage=function(){this.isImageButton&&_.Nc(this,"ytd-product-details-variant-image-unselect")};
_.Sn.Object.defineProperties(Sw.prototype,{isImageButton:{configurable:!0,enumerable:!0,get:function(){return this.displayType==="VARIANT_ATTRIBUTE_DISPLAY_TYPE_IMAGE"}},
isPillButton:{configurable:!0,enumerable:!0,get:function(){return this.displayType==="VARIANT_ATTRIBUTE_DISPLAY_TYPE_PILL"||this.displayType==="VARIANT_ATTRIBUTE_DISPLAY_TYPE_DROPDOWN_LIST"}},
isActive:{configurable:!0,enumerable:!0,get:function(){var F;return((F=this.data)==null?void 0:F.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"}},
isUnavailable:{configurable:!0,enumerable:!0,get:function(){var F,W,E;return((F=this.data)==null?void 0:F.variantAvailability)==="VARIANT_AVAILABILITY_NO_OFFERS"||((W=this.data)==null?void 0:W.variantOptionState)==="VARIANT_OPTION_STATE_OTHER_ATTRIBUTE_WILL_CHANGE"||((E=this.data)==null?void 0:E.variantOptionState)==="VARIANT_OPTION_STATE_DISABLED"}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.isImageButton){var F;if(((F=this.data)==null?void 0:F.imageDetails)!==void 0)return this.data.imageDetails}}},
accessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var F,W;return this.isUnavailable?(F=this.data)==null?void 0:F.variantOptionUnavailableAccessibilityLabel:(W=this.data)==null?void 0:W.variantOptionAccessibilityLabel}}});
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Sw.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],Sw.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],Sw.prototype,"componentBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],Sw.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",String)],Sw.prototype,"displayType",void 0);
_.T([_.a("displayType","data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Sw.prototype,"isImageButton",null);_.T([_.a("displayType","data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Sw.prototype,"isPillButton",null);_.T([_.a("data"),_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Sw.prototype,"isActive",null);
_.T([_.a("data"),_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Sw.prototype,"isUnavailable",null);_.T([_.a("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Sw.prototype,"thumbnailDetails",null);_.T([_.a("isUnavailable","data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Sw.prototype,"accessibilityLabel",null);Sw=_.T([_.y({disableElementRegistration:!0,is:"ytd-product-details-variant-option-renderer"})],Sw);
_.r(Sw,"ytd-product-details-variant-option-renderer",function(){if(w4w!==void 0)return w4w;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-variant-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-product-details-variant-option-renderer">\n  <template is="dom-if" restamp="" if="[[isImageButton]]" class="style-scope ytd-product-details-variant-option-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-product-details-variant-option-renderer" href$="[[computeHref_(data.command)]]" data="[[data.command]]" aria-label="[[accessibilityLabel]]" rel="[[computeNofollow_(data.command)]]">\n      <div class="variant-option variant-option-image style-scope ytd-product-details-variant-option-renderer">\n        <yt-img-shadow alt="[[data.name]]" height="52" object-fit="CONTAIN" thumbnail="[[thumbnailDetails]]" width="52" class="style-scope ytd-product-details-variant-option-renderer"></yt-img-shadow>\n      </div>\n    </a>\n    <tp-yt-paper-tooltip fit-to-visible-bounds="" offset="4" position="top" class="style-scope ytd-product-details-variant-option-renderer">\n      [[accessibilityLabel]]\n    </tp-yt-paper-tooltip>\n  </template>\n  <template is="dom-if" restamp="" if="[[isPillButton]]" class="style-scope ytd-product-details-variant-option-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-product-details-variant-option-renderer" href$="[[computeHref_(data.command)]]" data="[[data.command]]" aria-label="[[accessibilityLabel]]" rel="[[computeNofollow_(data.command)]]">\n      <div class="variant-option variant-option-pill style-scope ytd-product-details-variant-option-renderer">\n        <span class="style-scope ytd-product-details-variant-option-renderer">[[data.name]]</span>\n      </div>\n    </a>\n    <template is="dom-if" restamp="" if="[[isUnavailable]]" class="style-scope ytd-product-details-variant-option-renderer">\n      <tp-yt-paper-tooltip fit-to-visible-bounds="" offset="4" position="top" class="style-scope ytd-product-details-variant-option-renderer">\n        [[data.unavailableText]]\n      </tp-yt-paper-tooltip>\n    </template>\n  </template>\n</div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return w4w=F},{mode:1});var ulO;var pt=function(){var F=_.n.apply(this,arguments)||this;F.variantsExpanded=!1;F.hideShowMoreLessVariantButton=!0;F.initialized=!1;F.computeVariantsDebouncer=null;F.computeVariants=function(W){W=W===void 0?!1:W;F.variantsExpanded||F.showOptions()||!W||(F.variantsExpanded=!0);if(F.variantsExpanded){W=_.U(F.items.children);for(var E=W.next();!E.done;E=W.next())E.value.hidden=!1}F.initialized=!0};
return F};
_.k(pt,_.n);_.N=pt.prototype;_.N.ready=function(){var F=this;setTimeout(function(){F.computeVariants(!0)})};
_.N.showOptions=function(){for(var F=_.U(this.items.children),W=F.next();!W.done;W=F.next())W.value.hidden=!0;var E=this.container.getBoundingClientRect().width,h=0,d=F=0;W=!1;for(var V=_.U(this.items.children),R=V.next();!R.done;R=V.next()){R=R.value;R.hidden=!1;var M=R.getBoundingClientRect().width;if(h+M<E)h+=M;else if(++d<2)h=M;else break;F+=1;R.hasAttribute("is-active")&&(W=!0)}for(E=F;E<this.items.children.length;E++)this.items.children[E].hidden=!0;this.hideShowMoreLessVariantButton=F===this.items.children.length;
return W};
_.N.debouncedComputeVariants=function(){this.computeVariantsDebouncer=_.QZ(this.computeVariantsDebouncer,_.F4.after(100),this.computeVariants)};
_.N.onShowMoreLessVariantsButtonClick=function(){var F;(F=this.data)!=null&&F.variantOptionRenderers&&(this.variantsExpanded=!this.variantsExpanded,this.computeVariants())};
_.N.configureRendererStamper=function(){return{"data.variantOptionRenderers":{id:"items",mapping:{productDetailsVariantOptionRenderer:{component:"ytd-product-details-variant-option-renderer",properties:{displayType:"[[displayType]]"}}}}}};
_.Sn.Object.defineProperties(pt.prototype,{selectedOptionName:{configurable:!0,enumerable:!0,get:function(){var F,W,E=(F=this.data)==null?void 0:(W=F.variantOptionRenderers)==null?void 0:W.find(function(V){return _.D(V,BFN).variantOptionState==="VARIANT_OPTION_STATE_SELECTED"}),h,d;
return(d=(h=_.D(E,BFN))==null?void 0:h.name)!=null?d:""}},
displayType:{configurable:!0,enumerable:!0,get:function(){var F;return((F=this.data)==null?void 0:F.displayType)||"VARIANT_ATTRIBUTE_DISPLAY_TYPE_UNKNOWN"}},
variantItemsClassname:{configurable:!0,enumerable:!0,get:function(){switch(this.displayType){case "VARIANT_ATTRIBUTE_DISPLAY_TYPE_PILL":return"pill";case "VARIANT_ATTRIBUTE_DISPLAY_TYPE_DROPDOWN_LIST":return"dropdown";case "VARIANT_ATTRIBUTE_DISPLAY_TYPE_IMAGE":return"image";default:return"unknown"}}}});
pt.prototype.debouncedComputeVariants=pt.prototype.debouncedComputeVariants;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],pt.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],pt.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],pt.prototype,"componentBehavior",void 0);_.T([_.J(_.lB),_.Y("design:type",Object)],pt.prototype,"ironResizableBehavior",void 0);
_.T([_.O(),_.Y("design:type",Object)],pt.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Object)],pt.prototype,"variantsExpanded",void 0);_.T([_.O(),_.Y("design:type",Object)],pt.prototype,"hideShowMoreLessVariantButton",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],pt.prototype,"initialized",void 0);_.T([_.gQ("#items"),_.Y("design:type",HTMLDivElement)],pt.prototype,"items",void 0);_.T([_.gQ("#container"),_.Y("design:type",HTMLDivElement)],pt.prototype,"container",void 0);
_.T([_.gQ("#more-variants-button"),_.Y("design:type",HTMLElement)],pt.prototype,"moreVariantsButton",void 0);_.T([_.a("data"),_.Y("design:type",String),_.Y("design:paramtypes",[])],pt.prototype,"selectedOptionName",null);_.T([_.ea("data","variantsExpanded"),_.R4("iron-resize"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],pt.prototype,"debouncedComputeVariants",null);
_.T([_.a("data"),_.Y("design:type",String),_.Y("design:paramtypes",[])],pt.prototype,"displayType",null);_.T([_.a("displayType"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],pt.prototype,"variantItemsClassname",null);pt=_.T([_.y({disableElementRegistration:!0,is:"ytd-product-details-variant-renderer"})],pt);
_.r(pt,"ytd-product-details-variant-renderer",function(){if(ulO!==void 0)return ulO;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-variant-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-product-details-variant-renderer">\n  <div class="variant-title-container style-scope ytd-product-details-variant-renderer">\n    <div class="variant-title style-scope ytd-product-details-variant-renderer">[[data.title]]</div><div class="variant-selected-option style-scope ytd-product-details-variant-renderer">[[selectedOptionName]]</div>\n  </div>\n  <div class$="variant-items-container variant-items-container-[[variantItemsClassname]] style-scope ytd-product-details-variant-renderer">\n    <div id="items" class="style-scope ytd-product-details-variant-renderer"></div>\n  </div>\n  <template is="dom-if" if="[[!hideShowMoreLessVariantButton]]" class="style-scope ytd-product-details-variant-renderer">\n    <ytd-button-renderer class="show-more-less-variants-button style-scope ytd-product-details-variant-renderer" data="[[data.showMoreVariants.buttonRenderer]]" hidden$="[[variantsExpanded]]" noink="" on-click="onShowMoreLessVariantsButtonClick">\n    </ytd-button-renderer>\n    <ytd-button-renderer id="more-variants-button" class="show-more-less-variants-button style-scope ytd-product-details-variant-renderer" data="[[data.showLessVariants.buttonRenderer]]" hidden$="[[!variantsExpanded]]" noink="" on-click="onShowMoreLessVariantsButtonClick">\n    </ytd-button-renderer>\n  </template>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return ulO=F},{mode:1});var ma=function(){return _.n.apply(this,arguments)||this};
_.k(ma,_.n);
ma.prototype.configureRendererStamper=function(){return{"data.imageCarouselRenderer":{id:"image-carousel-renderer",mapping:{productDetailsImageCarouselRenderer:"ytd-product-details-image-carousel-renderer"}},"data.heroOfferRenderer":{id:"hero-offer-renderer",mapping:{productDetailsHeroOfferRenderer:{component:"ytd-product-details-hero-offer-renderer"}}},"data.variants":{id:"variants",mapping:{productDetailsVariantRenderer:"ytd-product-details-variant-renderer"}},"data.offersContainerRenderer":{id:"offers",mapping:{productDetailsOffersContainerRenderer:"ytd-product-details-offers-container-renderer"}},
"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer",menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more"}}}},"data.shareButton":{id:"share-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.descriptionRenderer":{id:"description-renderer",mapping:{productDetailsDescriptionRenderer:"ytd-product-details-description-renderer"}}}};
_.Sn.Object.defineProperties(ma.prototype,{showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var F;return!((F=this.data)==null||!F.heroOfferRenderer)}},
showHeroOfferRenderer:{configurable:!0,enumerable:!0,get:function(){var F;return!((F=this.data)==null||!F.heroOfferRenderer)}},
showBrandText:{configurable:!0,enumerable:!0,get:function(){var F;return!((F=this.data)==null||!F.formattedByBrandText)}},
showOffers:{configurable:!0,enumerable:!0,get:function(){var F,W,E=(W=_.D((F=this.data)==null?void 0:F.offersContainerRenderer,vmP))==null?void 0:W.offers;return E!==void 0&&(E==null?void 0:E.length)>1}},
showBuySeparator:{configurable:!0,enumerable:!0,get:function(){return this.showOffers&&this.showPurchaseData}},
showBuyCard:{configurable:!0,enumerable:!0,get:function(){return this.showOffers||this.showPurchaseData}},
selectedVariantsText:{configurable:!0,enumerable:!0,get:function(){var F,W,E;return((E=(F=this.data)==null?void 0:(W=F.variants)==null?void 0:W.map(function(h){var d,V;h=(V=(d=_.D(h,Cw$))==null?void 0:d.variantOptionRenderers)==null?void 0:V.find(function(M){var g;return((g=_.D(M,BFN))==null?void 0:g.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"});
var R;return(R=_.D(h,BFN))==null?void 0:R.name}).filter(function(h){return typeof h==="string"}))!=null?E:[]).join(" \u2022 ")}},
shoppingReportingButtonData:{configurable:!0,enumerable:!0,get:function(){var F,W,E,h=(W=_.D((F=this.data)==null?void 0:F.shoppingFlaggingRenderer,csw))==null?void 0:(E=W.reportButton)==null?void 0:E.buttonRenderer;if(h)return{text:h.text,command:h.command,icon:{iconType:"FLAG"},accessibilityData:h.accessibilityData,trackingParams:h.trackingParams,loggingDirectives:h.loggingDirectives}}}});
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],ma.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],ma.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],ma.prototype,"componentBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],ma.prototype,"data",void 0);_.T([_.gQ("#image-carousel-renderer"),_.Y("design:type",Object)],ma.prototype,"imageCarouselRenderer",void 0);
_.T([_.gQ("#hero-offer-renderer"),_.Y("design:type",Object)],ma.prototype,"productDetailsHeroOfferRenderer",void 0);_.T([_.gQ("#variants"),_.Y("design:type",Object)],ma.prototype,"productDetailsVariantRenderer",void 0);_.T([_.gQ("#offers"),_.Y("design:type",Object)],ma.prototype,"productDetailsOffersContainerRenderer",void 0);_.T([_.gQ("#description-renderer"),_.Y("design:type",Object)],ma.prototype,"productDetailsDescriptionRenderer",void 0);
_.T([_.a("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],ma.prototype,"showPurchaseData",null);_.T([_.a("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],ma.prototype,"showHeroOfferRenderer",null);_.T([_.a("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],ma.prototype,"showBrandText",null);_.T([_.a("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],ma.prototype,"showOffers",null);
_.T([_.a("showOffers","showPurchaseData"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],ma.prototype,"showBuySeparator",null);_.T([_.a("showOffers","showPurchaseData"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],ma.prototype,"showBuyCard",null);_.T([_.a("data"),_.Y("design:type",String),_.Y("design:paramtypes",[])],ma.prototype,"selectedVariantsText",null);_.T([_.a("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],ma.prototype,"shoppingReportingButtonData",null);
ma=_.T([_.y({disableElementRegistration:!0,is:"ytd-product-details-renderer"})],ma);
_.r(ma,"ytd-product-details-renderer",function(){if(YoO!==void 0)return YoO;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-product-details-renderer">\n  <div class="column column-image-carousel style-scope ytd-product-details-renderer">\n    <div id="image-carousel-renderer" class="style-scope ytd-product-details-renderer"></div>\n  </div>\n  <div class="column column-description style-scope ytd-product-details-renderer">\n    <div class="title-row row style-scope ytd-product-details-renderer">\n      <div class="style-scope ytd-product-details-renderer">[[getSimpleString(data.title)]]</div>\n      <div class="title-row-buttons row style-scope ytd-product-details-renderer">\n        <div id="share-button" class="style-scope ytd-product-details-renderer"></div>\n        <div id="action-button" class="style-scope ytd-product-details-renderer"></div>\n      </div>\n    </div>\n    <div class="brand-row row style-scope ytd-product-details-renderer">\n      <template is="dom-if" restamp="" if="[[showBrandText]]" class="style-scope ytd-product-details-renderer">\n        <yt-formatted-string class="formatted-brand style-scope ytd-product-details-renderer" text="[[data.formattedByBrandText]]">\n        </yt-formatted-string>\n      </template>\n    </div>\n    <div id="description-renderer" class="style-scope ytd-product-details-renderer"></div>\n    <div id="variants" class="style-scope ytd-product-details-renderer"></div>\n    <div class="buy style-scope ytd-product-details-renderer" hidden="[[!showBuyCard]]">\n      <div hidden="[[!showHeroOfferRenderer]]" id="hero-offer-renderer" class="style-scope ytd-product-details-renderer"></div>\n      <div class="style-scope ytd-product-details-renderer">\n        <hr class="buy-separator style-scope ytd-product-details-renderer" hidden="[[!showBuySeparator]]">\n        <div id="offers" hidden="[[!showOffers]]" class="style-scope ytd-product-details-renderer"></div>\n      </div>\n    </div>\n    <div class="buy offer-unavailable style-scope ytd-product-details-renderer" hidden="[[showBuyCard]]">\n        <yt-formatted-string class="offer-unavailable-title style-scope ytd-product-details-renderer" text="[[data.unavailableText]]">\n        </yt-formatted-string>\n        <div class="offer-unavailable-variants style-scope ytd-product-details-renderer">[[selectedVariantsText]]</div>\n    </div>\n    <div class="flagging-container style-scope ytd-product-details-renderer" hidden="[[!data.shoppingFlaggingRenderer]]">\n      <ytd-button-renderer id="flagging-button" data="[[shoppingReportingButtonData]]" class="style-scope ytd-product-details-renderer">\n      </ytd-button-renderer>\n    </div>\n  </div>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return YoO=F},{mode:1});var Sog;var p4P;var mEq;var Kt=function(){return _.n.apply(this,arguments)||this};
_.k(Kt,_.n);Kt.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.Sn.Object.defineProperties(Kt.prototype,{vcBalanceWidgetStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style:"VC_BALANCE_WIDGET_STYLE_UNKNOWN"}}});
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Kt.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],Kt.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],Kt.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",String)],Kt.prototype,"formattedAmount",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],Kt.prototype,"ariaLabel",void 0);
_.T([_.O({reflectToAttribute:!0}),_.a("data.style"),_.Y("design:type",String),_.Y("design:paramtypes",[])],Kt.prototype,"vcBalanceWidgetStyle",null);Kt=_.T([_.$3({is:"yt-vc-balance-renderer",disableElementRegistration:!0})],Kt);
_.r(Kt,"yt-vc-balance-renderer",function(){if(mEq===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-vc-balance-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_vc_balance_renderer.yt.vc.balance.renderer.css.js--\x3e<div id="vc-icon" hidden$="[[!data.vcIcon]]" class="style-scope yt-vc-balance-renderer">\n</div>\n<p id="vc-balance" class="style-scope yt-vc-balance-renderer">[[formattedAmount]]</p>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;p4P===void 0&&(p4P=document.createElement("template"));var h=p4P;E.call(W,h.content.cloneNode(!0),F.content.firstChild);mEq=F}F=mEq;return F},{mode:2});_.Hr("vcBalanceRenderer","vcBalanceRenderer","ytd-vc-balance-renderer");var F_=function(){return _.n.apply(this,arguments)||this};
_.k(F_,_.n);_.Sn.Object.defineProperties(F_.prototype,{formattedAmount:{configurable:!0,enumerable:!0,get:function(){return this.vcBalanceEntity&&this.vcBalanceEntity.formattedAmount?this.vcBalanceEntity.formattedAmount:""}},
vcBalanceAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.vcBalanceEntity&&this.vcBalanceEntity.accessibilityFormattedAmount?this.vcBalanceEntity.accessibilityFormattedAmount:""}}});
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],F_.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.am),_.Y("design:type",Object)],F_.prototype,"ytdReduxBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],F_.prototype,"data",void 0);_.T([_.O({selectorArgs:["data.vcBalanceEntityKey"],selector:function(F,W){return _.Mn(F.entities,"vcBalanceEntity",W)}}),
_.Y("design:type",Object)],F_.prototype,"vcBalanceEntity",void 0);_.T([_.a("vcBalanceEntity"),_.Y("design:type",String),_.Y("design:paramtypes",[])],F_.prototype,"formattedAmount",null);_.T([_.a("vcBalanceEntity"),_.Y("design:type",String),_.Y("design:paramtypes",[])],F_.prototype,"vcBalanceAriaLabel",null);F_=_.T([_.y({disableElementRegistration:!0,is:"ytd-vc-balance-renderer"})],F_);
_.r(F_,"ytd-vc-balance-renderer",function(){if(Sog!==void 0)return Sog;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-vc-balance-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-vc-balance-renderer aria-label="[[vcBalanceAriaLabel]]" data="[[data]]" formatted-amount="[[formattedAmount]]" class="style-scope ytd-vc-balance-renderer">\n</yt-vc-balance-renderer>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return Sog=F},{mode:1});var KdK;var Wx=function(){var F=_.n.apply(this,arguments)||this;F.rotation=0;F.isReloading=!1;return F};
_.k(Wx,_.n);Wx.prototype.rotationChanged=function(){this.icon.style.transform="rotate("+(this.rotation+180)+"deg)";this.icon.style.opacity=""+(.7/360*this.rotation+.3)};
Wx.prototype.reset=function(){this.hostElement.style.opacity=""};
Wx.prototype.close=function(){var F=this;return _.e(function(W){if(W.nextAddress==1)return _.Q(W,F.hostElement.animate([{transform:"scale(1)",opacity:1},{transform:"scale(.4)",opacity:0}],{duration:150,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);F.hostElement.style.opacity="0";_.gG(W)})};
Wx.prototype.rotationChanged=Wx.prototype.rotationChanged;_.T([_.O(),_.Y("design:type",Object)],Wx.prototype,"rotation",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],Wx.prototype,"isReloading",void 0);_.T([_.gQ("#icon"),_.Y("design:type",HTMLElement)],Wx.prototype,"icon",void 0);_.T([_.ea("rotation"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Wx.prototype,"rotationChanged",null);
Wx=_.T([_.y({disableElementRegistration:!0,is:"ytd-refresh"})],Wx);
_.r(Wx,"ytd-refresh",function(){if(KdK!==void 0)return KdK;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-refresh--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon id="icon" hidden="[[isReloading]]" icon="refresh" class="style-scope ytd-refresh"></yt-icon>\n<tp-yt-paper-spinner-lite active="[[isReloading]]" hidden="[[!isReloading]]" class="style-scope ytd-refresh">\n</tp-yt-paper-spinner-lite>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return KdK=F},{mode:1});var Fzw;var E7=function(){return _.n.apply(this,arguments)||this};
_.k(E7,_.n);E7.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer",subscriptionNotificationToggleButtonRenderer:"ytd-subscription-notification-toggle-button-renderer"}}}};
E7.prototype.dataChanged=function(){if(this.data){var F=this.hasBannerArt;this.hasBannerArt=!1;if(this.data&&this.data.banner){var W=_.m_(this.data.banner.thumbnails,this.hostElement.clientWidth);W&&(W.indexOf("//")===0&&(W="https:"+W),this.hasBannerArt=!0,_.V9(this.hostElement,{"--ytd-interactive-tabbed-header-renderer-banner-url":"url("+W+")"}))}this.hasBannerArt!==F&&_.Z(this.hostElement).querySelector("#header").fire("iron-resize")}};
E7.prototype.updateSelectedFromBinding=function(F){this.selected=F.detail.value};
E7.prototype.dataChanged=E7.prototype.dataChanged;_.T([_.J(k6q),_.Y("design:type",Object)],E7.prototype,"ytdTabbedHeaderBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],E7.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.lU),_.Y("design:type",Object)],E7.prototype,"ytdGridStateAwareBehavior",void 0);_.T([_.J(_.y_.YtdGuideStateAwareBehavior),_.Y("design:type",Object)],E7.prototype,"ytdGuideStateAwareBehavior",void 0);
_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],E7.prototype,"componentBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],E7.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Number)],E7.prototype,"selected",void 0);_.T([_.O(),_.Y("design:type",Boolean)],E7.prototype,"active",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],E7.prototype,"hasBannerArt",void 0);
_.T([_.Cz("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],E7.prototype,"dataChanged",null);E7=_.T([_.y({is:"ytd-interactive-tabbed-header-renderer",disableElementRegistration:!0})],E7);
_.r(E7,"ytd-interactive-tabbed-header-renderer",function(){if(Fzw!==void 0)return Fzw;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-interactive-tabbed-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-app-header-layout class="style-scope ytd-interactive-tabbed-header-renderer"><tp-yt-app-header id="header" slot="header" condenses="" disabled="[[!active]]" effects="parallax-background" effects-config="{&quot;parallax-background&quot;: {&quot;scalar&quot;: 0.5}}" fixed="" class="style-scope ytd-interactive-tabbed-header-renderer"><svg id="bg" viewBox="0 0 1439 304" preserveAspectRatio="xMinYMid slice" class="style-scope ytd-interactive-tabbed-header-renderer"><path opacity="0.5" d="M 0,304 V 0 H 963 L 1439,304 Z" class="style-scope ytd-interactive-tabbed-header-renderer"></path><path opacity="0.5" d="M 0,0 l 0,304 580,0 L 1055,0 0,0 Z" class="style-scope ytd-interactive-tabbed-header-renderer"></path><path opacity="0.9" d="M 0,304 V 0 H 780 L 1247,304 Z" class="style-scope ytd-interactive-tabbed-header-renderer"></path></svg><div id="content-container" class="style-scope ytd-interactive-tabbed-header-renderer"><div id="content" class="style-scope ytd-interactive-tabbed-header-renderer"><yt-img-shadow id="box-art" object-fit="COVER" thumbnail="[[data.boxArt]]" class="style-scope ytd-interactive-tabbed-header-renderer"></yt-img-shadow><div id="details" class="style-scope ytd-interactive-tabbed-header-renderer"><div id="title" class="style-scope ytd-interactive-tabbed-header-renderer">[[getSimpleString(data.title)]]</div><div id="auto-generated" hidden="[[!data.autoGenerated]]" class="style-scope ytd-interactive-tabbed-header-renderer">[[getSimpleString(data.autoGenerated)]]</div><div id="description" class="style-scope ytd-interactive-tabbed-header-renderer">[[getSimpleString(data.description)]]</div><div id="metadata" class="style-scope ytd-interactive-tabbed-header-renderer">[[getSimpleString(data.metadata)]]</div><ytd-badge-supported-renderer badges="[[data.badges]]" class="style-scope ytd-interactive-tabbed-header-renderer"></ytd-badge-supported-renderer><div id="buttons" class="style-scope ytd-interactive-tabbed-header-renderer"></div></div></div></div><tp-yt-app-toolbar sticky="" class="style-scope ytd-interactive-tabbed-header-renderer"><div id="tabs-container" class="style-scope ytd-interactive-tabbed-header-renderer"><div id="tabs-inner-container" class="style-scope ytd-interactive-tabbed-header-renderer"><tp-yt-paper-tabs noink="" scrollable="" selected="[[selected]]" on-iron-activate="onTabsActivate" on-selected-changed="updateSelectedFromBinding" class="style-scope ytd-interactive-tabbed-header-renderer"><template is="dom-repeat" items="[[tabs]]" class="style-scope ytd-interactive-tabbed-header-renderer"><tp-yt-paper-tab hidden="[[!item.tabRenderer]]" class="style-scope ytd-interactive-tabbed-header-renderer">\n                [[item.tabRenderer.title]]\n              </tp-yt-paper-tab></template></tp-yt-paper-tabs></div></div></tp-yt-app-toolbar></tp-yt-app-header></tp-yt-app-header-layout>');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return Fzw=F},{mode:1});var Wz8;var hZ=function(){return _.n.apply(this,arguments)||this};
_.k(hZ,_.n);hZ.prototype.configureRendererStamper=function(){return{"data.leftActions":{id:"left-actions",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.actions":{id:"actions",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
hZ.prototype.computeActionsAlignment=function(F){return(F==null?void 0:F.actionsAlignment)||""};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],hZ.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],hZ.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],hZ.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0,computed:"computeActionsAlignment(data)"}),_.Y("design:type",String)],hZ.prototype,"actionsAlignment",void 0);
hZ=_.T([_.y({is:"ytd-page-footer-renderer",disableElementRegistration:!0})],hZ);
_.r(hZ,"ytd-page-footer-renderer",function(){if(Wz8!==void 0)return Wz8;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-page-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="left-actions" class="style-scope ytd-page-footer-renderer"></div>\n<div id="actions" class="style-scope ytd-page-footer-renderer"></div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return Wz8=F},{mode:1});var E06;var hSu;var dK=function(){var F=_.n.apply(this,arguments)||this;F.isEditing=!1;F.useSlot=!1;F.isMultiline=!1;return F};
_.k(dK,_.n);_.N=dK.prototype;_.N.onKeydown=function(F){if(F.keyCode===13&&!this.isMultiline)this.onSave();else if(F.keyCode===27)this.onCancel()};
_.N.computeComponentStyle=function(F){return(F==null?0:F.style)?F.style:"INLINE_FORM_STYLE_UNKNOWN"};
_.N.computeisMultiline=function(F){if(this.multilineOverride!==void 0)return this.multilineOverride;var W,E;return!!(F==null?0:(W=F.formField)==null?0:(E=W.textInputFormFieldRenderer)==null?0:E.isMultiline)};
_.N.computeTextDisplayed=function(F,W){if(F)return F;if(W)return W};
_.N.onEdit=function(){this.isEditing=!0;this.textForm.focusTextInput()};
_.N.onSave=function(){if(this.textForm.validate()){this.textForm.save();var F=this.textForm.value;if(F)this.set("data.textDisplayed",_.Gr(F));else{var W;((W=this.data)==null?0:W.placeholder)&&this.set("data.textDisplayed",this.data.placeholder)}this.hostElement.dispatchEvent(new _.yR("inline-form-changed",this.data));this.isEditing=!1}};
_.N.onCancel=function(){var F=_.Yr(this.data.textDisplayed);F===this.data.placeholder?this.textForm.reset(""):this.textForm.reset(F);this.isEditing=!1};
dK.prototype.onKeydown=dK.prototype.onKeydown;_.T([_.J(_.B$.YtEventForwardingBehavior),_.Y("design:type",Object)],dK.prototype,"ytEventForwardingBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],dK.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],dK.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],dK.prototype,"data",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],dK.prototype,"isEditing",void 0);_.T([_.O(),_.Y("design:type",Object)],dK.prototype,"useSlot",void 0);_.T([_.O(),_.Y("design:type",Boolean)],dK.prototype,"multilineOverride",void 0);_.T([_.O(),_.Y("design:type",Boolean)],dK.prototype,"enableOverlayTheme",void 0);_.T([_.O({reflectToAttribute:!0,computed:"computeComponentStyle(data)"}),_.Y("design:type",String)],dK.prototype,"componentStyle",void 0);
_.T([_.O({computed:"computeisMultiline(data)"}),_.Y("design:type",Object)],dK.prototype,"isMultiline",void 0);_.T([_.gQ("#text-form"),_.Y("design:type",Object)],dK.prototype,"textForm",void 0);_.T([_.R4("keydown"),_.Y("design:type",Function),_.Y("design:paramtypes",[KeyboardEvent]),_.Y("design:returntype")],dK.prototype,"onKeydown",null);dK=_.T([_.y({is:"ytd-inline-form-renderer",disableElementRegistration:!0})],dK);
_.r(dK,"ytd-inline-form-renderer",function(){if(hSu!==void 0)return hSu;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-inline-form-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="display-dialog" hidden="[[isEditing]]" class="style-scope ytd-inline-form-renderer">\n  <template is="dom-if" restamp="" if="[[useSlot]]" class="style-scope ytd-inline-form-renderer">\n    <slot name="text-display" id="text-displayed" class="style-scope ytd-inline-form-renderer"></slot>\n  </template>\n  <template is="dom-if" restamp="" if="[[!useSlot]]" class="style-scope ytd-inline-form-renderer">\n    <yt-formatted-string id="text-displayed" split-lines="" text="[[computeTextDisplayed(data.textDisplayed, data.placeholder)]]" class="style-scope ytd-inline-form-renderer">\n    </yt-formatted-string>\n  </template>\n</div>\n<ytd-button-renderer id="edit-button" button-tooltip-position="left" data="[[data.editButton.buttonRenderer]]" hidden="[[isEditing]]" on-click="onEdit" class="style-scope ytd-inline-form-renderer">\n</ytd-button-renderer>\n<div id="edit-dialog" hidden="[[!isEditing]]" class="style-scope ytd-inline-form-renderer">\n  <yt-text-input-form-field-renderer id="text-form" component-style="[[componentStyle]]" data="[[data.formField.textInputFormFieldRenderer]]" enable-overlay-theme="[[enableOverlayTheme]]" is-multiline-override="[[isMultilineOverride]]" no-label-float="" required-error-message="[[addToStrings.REQUIRED_LABEL]]" class="style-scope ytd-inline-form-renderer">\n  </yt-text-input-form-field-renderer>\n  <div id="edit-buttons" class="style-scope ytd-inline-form-renderer">\n    <ytd-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" on-click="onCancel" class="style-scope ytd-inline-form-renderer">\n    </ytd-button-renderer>\n    <ytd-button-renderer id="save-button" data="[[data.saveButton.buttonRenderer]]" on-click="onSave" class="style-scope ytd-inline-form-renderer">\n    </ytd-button-renderer>\n  </div>\n</div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return hSu=F},{mode:1});var dqN;var NK=function(){var F=_.n.apply(this,arguments)||this;F.previousSelectValue=void 0;F.selectedItemMessage=void 0;return F};
_.k(NK,_.n);NK.prototype.detached=function(){this.selectedItemMessage=this.previousSelectValue=void 0};
NK.prototype.selectedValueChanged=function(){if(this.selectedValue!==void 0){var F,W,E,h,d=(F=this.data)==null?void 0:(W=F.dropdown)==null?void 0:(E=W.dropdownRenderer)==null?void 0:(h=E.entries)==null?void 0:h.map(function(M){return M.privacyDropdownItemRenderer});
F=_.U(d!=null?d:[]);for(W=F.next();!W.done;W=F.next())if((W=W.value)&&W.int32Value===this.selectedValue){this.selectedItemMessage=W.itemMessage;break}}else this.selectedItemMessage=void 0;var V;(V=this.onValueChanged)==null||V.call(this);if(this.selectedValue!==-1)if(this.previousSelectValue===void 0)this.previousSelectValue=this.selectedValue;else if(this.previousSelectValue!==this.selectedValue){var R;(R=this.data)!=null&&R.key&&this.data.onChange&&(this.set(this.data.key,this.selectedValue,this.data.onChange),
this.ytComponentBehavior.resolveCommand(this.data.onChange),this.previousSelectValue=this.selectedValue)}};
NK.prototype.onValueChangedForSelectedValue=function(F){this.selectedValue=F.detail.value};
NK.prototype.selectedValueChanged=NK.prototype.selectedValueChanged;_.T([_.J(_.B$.YtEventForwardingBehavior),_.Y("design:type",Object)],NK.prototype,"ytEventForwardingBehavior",void 0);_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],NK.prototype,"ytComponentBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],NK.prototype,"ytRendererstamperBehavior",void 0);
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],NK.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],NK.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",String)],NK.prototype,"theme",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Number)],NK.prototype,"selectedValue",void 0);_.T([_.O(),_.Y("design:type",Function)],NK.prototype,"onValueChanged",void 0);
_.T([_.Cz("selectedValue"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],NK.prototype,"selectedValueChanged",null);NK=_.T([_.y({is:"ytd-dropdown-form-field-renderer",disableElementRegistration:!0})],NK);
_.r(NK,"ytd-dropdown-form-field-renderer",function(){if(dqN!==void 0)return dqN;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-dropdown-form-field-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="style-scope ytd-dropdown-form-field-renderer">\n  <ytd-dropdown-renderer id="dropdown" autosize="" data="[[data.dropdown.dropdownRenderer]]" min-autosize-width="0" no-label-float="" no-underline="" theme="[[theme]]" value="[[selectedValue]]" on-value-changed="onValueChangedForSelectedValue" class="style-scope ytd-dropdown-form-field-renderer">\n  </ytd-dropdown-renderer>\n  <yt-formatted-string id="selected-item-message" hidden="[[!selectedItemMessage]]" text="[[selectedItemMessage]]" class="style-scope ytd-dropdown-form-field-renderer">\n  </yt-formatted-string>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return dqN=F},{mode:_.E6("kevlar_poly_si_batch_j025")?1:2});var NfP;var VX=function(){return _.n.apply(this,arguments)||this};
_.k(VX,_.n);_.Sn.Object.defineProperties(VX.prototype,{byline:{configurable:!0,enumerable:!0,get:function(){for(var F=[],W=_.U(this.data||[]),E=W.next();!E.done;E=W.next())(E=_.D(E.value,DEK))&&F.push(E);return F}}});
_.T([_.O(),_.Y("design:type",Array)],VX.prototype,"data",void 0);_.T([_.a("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],VX.prototype,"byline",null);VX=_.T([_.y({is:"ytd-playlist-byline-renderer",disableElementRegistration:!0})],VX);
_.r(VX,"ytd-playlist-byline-renderer",function(){if(NfP!==void 0)return NfP;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-byline-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="metadata-stats style-scope ytd-playlist-byline-renderer">\n  <template is="dom-repeat" items="[[byline]]" class="style-scope ytd-playlist-byline-renderer">\n    <yt-icon id="byline-icon" hidden="[[!item.icon]]" icon="[[item.icon.iconType]]" class="style-scope ytd-playlist-byline-renderer"></yt-icon>\n    <yt-formatted-string class="byline-item style-scope ytd-playlist-byline-renderer" text="[[item.text]]"></yt-formatted-string>\n  </template>\n</div>');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return NfP=F},{mode:1});var VNT;var U7=function(){var F=_.n.apply(this,arguments)||this;F.rtlBullet=_.c("web_playlist_stats_rtl_bullet_icon_killswitch");F.modern=_.c("web_modern_buttons");F.actionMap={"yt-update-playlist-action":"onUpdatePlaylistAction"};return F};
_.k(U7,_.n);_.N=U7.prototype;_.N.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more"}}}},"data.playButtons":{id:"play-buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer"},toggleButtonRenderer:{component:"ytd-toggle-button-renderer"},compactLinkRenderer:{component:"ytd-compact-link-renderer"}}}}};
_.N.attached=function(){};
_.N.computeIsCustomThumbnail=function(F){return F?!!F.playlistCustomThumbnailRenderer:!1};
_.N.onYtNavigate=function(F,W){if(W&&W.actions&&W.actions.indexOf("shuffle")>-1){F=_.WZ().resolve(_.yH);var E=W.tempData||{};E.watch_params=this.get("menu.menuRenderer.topLevelButtons[1].buttonRenderer.navigationEndpoint.watchEndpoint.params",this.data);W.tempData=E;F.isShuffleNextPlaylist=!0}};
_.N.onUpdatePlaylistAction=function(F){var W;F=(W=_.D(F,_.I9B))==null?void 0:W.updatedRenderer;if(W=_.D(F,XT))this.data=W};
_.N.computeStyleType=function(F){return F?F.toLowerCase().replace(/_/g,"-"):""};
_.N.computeThumbnailWidth=function(F){return F==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"?412:357};
_.N.computeHideThumbnailAria=function(F){if(F==null?0:F.thumbnailOverlays)for(var W=0;W<F.thumbnailOverlays.length;W++){var E=void 0;if((E=F.thumbnailOverlays[W])==null?0:E.tvfilmShowWatchForwardOverlayRenderer)return!1}return!0};
U7.prototype.onYtNavigate=U7.prototype.onYtNavigate;_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],U7.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],U7.prototype,"ytActionHandlerBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],U7.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],U7.prototype,"ytComponentBehavior",void 0);
_.T([_.O(),_.Y("design:type",Object)],U7.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],U7.prototype,"rtlBullet",void 0);_.T([_.O({reflectToAttribute:!0,computed:"computeStyleType(data.style)"}),_.Y("design:type",String)],U7.prototype,"styleType",void 0);_.T([_.O({reflectToAttribute:!0,computed:"computeThumbnailWidth(data.style)"}),_.Y("design:type",Number)],U7.prototype,"thumbnailWidth",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],U7.prototype,"modern",void 0);_.T([_.O({reflectToAttribute:!0,computed:"computeIsCustomThumbnail(data.thumbnailRenderer)"}),_.Y("design:type",Boolean)],U7.prototype,"isCustomThumbnail",void 0);_.T([_.R4("yt-navigate"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event,Object]),_.Y("design:returntype")],U7.prototype,"onYtNavigate",null);
U7=_.T([_.y({is:"ytd-playlist-sidebar-primary-info-renderer",disableElementRegistration:!0})],U7);
_.r(U7,"ytd-playlist-sidebar-primary-info-renderer",function(){if(VNT!==void 0)return VNT;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-sidebar-primary-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-playlist-thumbnail bottom-side-panel="" custom-thumbnail-size="[[thumbnailWidth]]" data="[[data]]" hidden="[[!data.thumbnailRenderer]]" hide-aria="[[computeHideThumbnailAria(data)]]" width="[[thumbnailWidth]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></ytd-playlist-thumbnail><h1 id="title" hidden="[[!data.title]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><yt-formatted-string link-inherit-color="" text="[[data.title]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></yt-formatted-string></h1><template is="dom-if" restamp="" if="[[data.titleForm]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><ytd-inline-form-renderer id="title-form" data="[[data.titleForm.inlineFormRenderer]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></ytd-inline-form-renderer></template><div id="stats" hidden="[[!data.stats]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><template is="dom-repeat" items="[[data.stats]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><yt-formatted-string text="[[item]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></yt-formatted-string></template></div><div id="privacy-stats" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></ytd-badge-supported-renderer><div id="show-stats" hidden="[[!data.showStats]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><template is="dom-repeat" items="[[data.showStats]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><yt-formatted-string text="[[item]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></yt-formatted-string></template></div><template is="dom-if" restamp="" if="[[data.privacyForm]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><ytd-dropdown-form-field-renderer id="privacy-form" data="[[data.privacyForm.dropdownFormFieldRenderer]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></ytd-dropdown-form-field-renderer></template></div><div id="play-buttons" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></div><div id="menu" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></div><template is="dom-if" restamp="" if="[[data.description]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><ytd-expander max-number-of-lines="20" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><div id="description" slot="content" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><yt-formatted-string id="description" split-lines="" text="[[data.description]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></yt-formatted-string></div><yt-formatted-string class="more-button style-scope ytd-playlist-sidebar-primary-info-renderer" slot="more-button" hidden="[[!data.showMoreText]]" role="button" text="[[data.showMoreText]]"></yt-formatted-string></ytd-expander></template><template is="dom-if" restamp="" if="[[data.descriptionForm]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><ytd-expander max-number-of-lines="20" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><div id="description-form" slot="content" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><ytd-inline-form-renderer id="description-form" data="[[data.descriptionForm.inlineFormRenderer]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></ytd-inline-form-renderer></div><yt-formatted-string class="more-button style-scope ytd-playlist-sidebar-primary-info-renderer" slot="more-button" hidden="[[!data.showMoreText]]" role="button" text="[[data.showMoreText]]"></yt-formatted-string></ytd-expander></template>');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return VNT=F},{mode:1});var UqP;var RN=function(){return _.n.apply(this,arguments)||this};
_.k(RN,_.n);RN.prototype.computeOwnerVisibility=function(F){return!(!F.videoOwner&&!F.button)};
RN.prototype.configureRendererStamper=function(){return{"data.videoOwner":{id:"video-owner",mapping:{videoOwnerRenderer:"ytd-video-owner-renderer"}},"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer",subscriptionNotificationToggleButtonRenderer:"ytd-subscription-notification-toggle-button-renderer"}}}};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],RN.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],RN.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],RN.prototype,"data",void 0);RN=_.T([_.y({is:"ytd-playlist-sidebar-secondary-info-renderer",disableElementRegistration:!0})],RN);
_.r(RN,"ytd-playlist-sidebar-secondary-info-renderer",function(){if(UqP!==void 0)return UqP;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-sidebar-secondary-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="title" hidden="[[!data.title]]" split-lines="" text="[[data.title]]" class="style-scope ytd-playlist-sidebar-secondary-info-renderer">\n</yt-formatted-string>\n<div id="owner-container" hidden$="[[!computeOwnerVisibility(data)]]" class="style-scope ytd-playlist-sidebar-secondary-info-renderer">\n  <div id="video-owner" class="style-scope ytd-playlist-sidebar-secondary-info-renderer"></div>\n  <div id="button" class="style-scope ytd-playlist-sidebar-secondary-info-renderer"></div>\n</div>\n<yt-formatted-string id="description" split-lines="" text="[[data.description]]" class="style-scope ytd-playlist-sidebar-secondary-info-renderer">\n</yt-formatted-string>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return UqP=F},{mode:1});var RSO;var ep=function(){var F=_.n.apply(this,arguments)||this;F.expanded=!1;F.isCompact=!1;return F};
_.k(ep,_.n);_.N=ep.prototype;_.N.attached=function(){this.ytdAutoScrollBehavior.scrollTarget=this.text};
_.N.dataChanged=function(){this.data&&_.yK(_.Z(this.text),_.kza(_.LXc,_.Yr(this.data.text||null)))};
_.N.computeAutoScrollEnabled=function(F,W){return F&&!W};
_.N.expandedChanged=function(){this.expanderIcon.icon="yt-icons:expand-"+(this.expanded?"less":"more")};
_.N.toggleOnTap=function(){this.expanded=!this.expanded};
ep.prototype.expandedChanged=ep.prototype.expandedChanged;ep.prototype.dataChanged=ep.prototype.dataChanged;_.T([_.J(_.QM$),_.Y("design:type",Object)],ep.prototype,"ytdAutoScrollBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],ep.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],ep.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],ep.prototype,"expanded",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],ep.prototype,"isCompact",void 0);_.T([_.O({computed:"computeAutoScrollEnabled(data.autoscroll, expanded)"}),_.Y("design:type",Boolean)],ep.prototype,"autoScrollEnabled",void 0);_.T([_.gQ("#text"),_.Y("design:type",Object)],ep.prototype,"text",void 0);_.T([_.gQ("#expander-icon"),_.Y("design:type",Object)],ep.prototype,"expanderIcon",void 0);
_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ep.prototype,"dataChanged",null);_.T([_.ea("expanded"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ep.prototype,"expandedChanged",null);ep=_.T([_.y({disableElementRegistration:!0,is:"ytd-channel-legal-info-renderer"})],ep);
_.r(ep,"ytd-channel-legal-info-renderer",function(){if(RSO!==void 0)return RSO;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-legal-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="text" class="style-scope ytd-channel-legal-info-renderer"></yt-formatted-string>\n<tp-yt-paper-material id="expand-button" elevation="1" on-click="toggleOnTap" class="style-scope ytd-channel-legal-info-renderer">\n  <yt-icon-button class="style-scope ytd-channel-legal-info-renderer">\n    <yt-icon id="expander-icon" class="style-scope ytd-channel-legal-info-renderer"></yt-icon>\n  </yt-icon-button>\n</tp-yt-paper-material>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return RSO=F},{mode:1});var eSx;var MNF=_.CY("DOWNLOAD",{},"Download"),g06=_.CY("DOWNLOADING",{},"Downloading"),Qhq=_.CY("DOWNLOADED",{},"Downloaded"),MK=function(){var F=_.n.apply(this,arguments)||this;F.downloadProgress=0;F.isDownloadComplete=!1;F.transferState="TRANSFER_STATE_UNKNOWN";return F};
_.k(MK,_.n);_.N=MK.prototype;_.N.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.N.dataChanged=function(){var F;(F=this.data)!=null&&F.tooltip||(F=_.fV(_.uC().getState(),this.playlistId),this.updateButtonState(F))};
_.N.computePlaylistId=function(F){return F};
_.N.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.N.updateButtonState=function(F){if(this.data&&(this.data.tooltip!==g06||!_.cz(F))){this.isDownloadComplete=!1;switch(F){case "TRANSFER_STATE_UNKNOWN":F=MNF;var W="OFFLINE_DOWNLOAD";var E="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_COMPLETE":F=Qhq;W="OFFLINE_PIN";E="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":F=g06;W="OFFLINE_DOWNLOADING_ZERO";E="ACTION_REMOVE_WITH_PROMPT";
break;default:F=MNF,W="OFFLINE_DOWNLOAD",E="ACTION_ADD"}var h=Object.assign({},this.data);h.tooltip=F;h.accessibilityData={accessibilityData:{label:F}};h.icon={iconType:W};h.size="SIZE_DEFAULT";_.D(h.command,_.I6)&&(_.D(h.command,_.I6).action=E);this.set("data",h)}};
_.N.updateProgress=function(){if(this.data&&this.transferState!=="TRANSFER_STATE_COMPLETE"){this.isDownloadComplete=!1;var F="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?F="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?F="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?F="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?F="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<
1?F="OFFLINE_DOWNLOADING_EIGHTY":this.downloadProgress===1&&(F="OFFLINE_PIN",this.isDownloadComplete=!0);var W;F!==((W=this.data.icon)==null?void 0:W.iconType)&&(W=Object.assign({},this.data),W.tooltip=g06,W.accessibilityData={accessibilityData:{label:g06}},W.icon={iconType:F},_.D(W.command,_.I6)&&(_.D(W.command,_.I6).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",W))}};
MK.prototype.updateProgress=MK.prototype.updateProgress;MK.prototype.onTransferStateChanged=MK.prototype.onTransferStateChanged;MK.prototype.dataChanged=MK.prototype.dataChanged;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],MK.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.am),_.Y("design:type",Object)],MK.prototype,"ytdReduxBehavior",void 0);_.T([_.O({value:!1}),_.Y("design:type",Boolean)],MK.prototype,"forceIconButton",void 0);
_.T([_.O({value:!0}),_.Y("design:type",Boolean)],MK.prototype,"forceIconOnly",void 0);_.T([_.O({value:!1}),_.Y("design:type",Boolean)],MK.prototype,"overrides",void 0);_.T([_.O({value:!1}),_.Y("design:type",Boolean)],MK.prototype,"buttonTooltipPosition",void 0);_.T([_.O({value:!1}),_.Y("design:type",Boolean)],MK.prototype,"styleActionButton",void 0);_.T([_.O({value:!1}),_.Y("design:type",Boolean)],MK.prototype,"disableTextTransform",void 0);
_.T([_.O({computed:"computePlaylistId(data.command.offlinePlaylistEndpoint.playlistId)"}),_.Y("design:type",String)],MK.prototype,"playlistId",void 0);_.T([_.O(),_.Y("design:type",Object)],MK.prototype,"data",void 0);_.T([_.O({selector:_.J7w,selectorArgs:["playlistId"]}),_.Y("design:type",Object)],MK.prototype,"downloadProgress",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],MK.prototype,"isDownloadComplete",void 0);
_.T([_.O({selector:_.fV,selectorArgs:["playlistId"]}),_.Y("design:type",String)],MK.prototype,"transferState",void 0);_.T([_.O({value:!0}),_.Y("design:type",Boolean)],MK.prototype,"showTooltips",void 0);_.T([_.O({value:!0}),_.Y("design:type",Boolean)],MK.prototype,"sendCommandWhenDisabled",void 0);_.T([_.O({value:!1}),_.Y("design:type",Boolean)],MK.prototype,"disabled",void 0);
_.T([_.Cz("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],MK.prototype,"dataChanged",null);_.T([_.Cz("transferState"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],MK.prototype,"onTransferStateChanged",null);_.T([_.Cz("downloadProgress"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],MK.prototype,"updateProgress",null);
MK=_.T([_.y({disableElementRegistration:!0,is:"ytd-download-playlist-button-renderer"})],MK);
_.r(MK,"ytd-download-playlist-button-renderer",function(){if(eSx!==void 0)return eSx;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-download-playlist-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data]]" disable-text-transform="[[disableTextTransform]]" disabled="[[disabled]]" force-icon-button="[[forceIconButton]]" force-icon-only="[[forceIconOnly]]" force-modern-icon-button="" overrides="[[overrides]]" style-action-button="[[styleActionButton]]" class="style-scope ytd-download-playlist-button-renderer"></ytd-button-renderer>');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return eSx=F},{mode:1});var zSK;_.pK(_.Gd,"thumbnail-overlay-button-view-model",{props:{data:_.TS,lockupExperiments:_.TS}});var gK=function(){var F=_.n.apply(this,arguments)||this;F.isSquare=!1;F.isVertical=!1;return F};
_.k(gK,_.n);gK.prototype.computeIsSquare=function(F){return F!=null&&F.thumbnail?wAF(F.thumbnail)==="SQUARE":!1};
gK.prototype.computeIsVertical=function(F){return F!=null&&F.thumbnail?wAF(F.thumbnail)==="VERTICAL":!1};
gK.prototype.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer",thumbnailOverlayButtonViewModel:"thumbnail-overlay-button-view-model"}}}};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],gK.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],gK.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O({reflectToAttribute:!0,computed:"computeIsSquare(data)"}),_.Y("design:type",Object)],gK.prototype,"isSquare",void 0);_.T([_.O({reflectToAttribute:!0,computed:"computeIsVertical(data)"}),_.Y("design:type",Object)],gK.prototype,"isVertical",void 0);
_.T([_.O(),_.Y("design:type",Object)],gK.prototype,"data",void 0);gK=_.T([_.y({disableElementRegistration:!0,is:"ytd-hero-playlist-thumbnail-renderer"})],gK);
_.r(gK,"ytd-hero-playlist-thumbnail-renderer",function(){if(zSK!==void 0)return zSK;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hero-playlist-thumbnail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="horizontally-centered-container style-scope ytd-hero-playlist-thumbnail-renderer">\n  <div class="image-wrapper style-scope ytd-hero-playlist-thumbnail-renderer">\n    <yt-img-shadow class="image style-scope ytd-hero-playlist-thumbnail-renderer" alt="hidden" aria-hidden="true" thumbnail="[[data.thumbnail]]">\n    </yt-img-shadow>\n    <div id="overlays" class="style-scope ytd-hero-playlist-thumbnail-renderer"></div>\n  </div>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return zSK=F},{mode:1});var QX=function(){var F=_.n.apply(this,arguments)||this;F.isDarkTheme=!1;F.isUltraWide=!1;F.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-window-resized":"onWindowResize"};return F};
_.k(QX,_.n);_.N=QX.prototype;_.N.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");_.WZ();var F;(F=_.WZ().resolve(_.Fd(_.oF)))!=null&&(F.headerElement=this.hostElement)};
_.N.detached=function(){var F;(F=_.WZ().resolve(_.Fd(_.oF)))!=null&&(F.headerElement=void 0)};
_.N.onUpdateHeader=function(F){(F=F.detail)&&this.set("data",F)};
_.N.computeTextDisplayed=function(F){if(F)return F.textDisplayed?F.textDisplayed:F.placeholder};
_.N.gradientColorToLinearGradientStop=function(F){var W=this.isDarkTheme?F.darkThemeColor:F.lightThemeColor;return W?_.XC(W)+" "+((F==null?void 0:F.startLocation)||0)*100+"%":"transparent"};
_.N.onWindowResize=function(){var F;((F=this.data)==null?0:F.descriptionForm)?this.editableDescriptionInlineExpander.resize():this.descriptionInlineExpander.resize()};
_.N.onIronResize=function(F){this.isUltraWide=!F.detail.value};
_.N.onDarkModeToggledAction=function(F){this.isDarkTheme=F};
_.N.onUpdatePlaylistName=function(F){var W=this;this.set("data.titleForm.inlineFormRenderer",Object.assign({},F.detail.value));_.wT(this,function(){var E;(E=W.editableTitle)==null||E.resize()})};
_.N.onUpdatePlaylistDescription=function(F){var W=this;this.set("data.descriptionForm.inlineFormRenderer",Object.assign({},F.detail.value));_.wT(this,function(){var E;(E=W.editableDescriptionInlineExpander)==null||E.resize()})};
_.N.getCinematicData=function(F){return _.D(F==null?void 0:F.cinematicContainer,_.AY)};
_.Sn.Object.defineProperties(QX.prototype,{maxDescriptionLines:{configurable:!0,enumerable:!0,get:function(){return this.isUltraWide?999:2}},
noCinematicData:{configurable:!0,enumerable:!0,get:function(){return!this.getCinematicData(this.data)}},
backgroundStyle:{configurable:!0,enumerable:!0,get:function(){var F,W=(F=this.getCinematicData(this.data))==null?void 0:F.config;return(F=this.isDarkTheme?W==null?void 0:W.darkThemeBackgroundColor:W==null?void 0:W.lightThemeBackgroundColor)?"background-color:"+_.ZP(F)+";":"background-color:transparent;"}},
descriptionFormData:{configurable:!0,enumerable:!0,get:function(){var F;return _.D((F=this.data)==null?void 0:F.descriptionForm,z1N)}},
getDropdownTheme:{configurable:!0,enumerable:!0,get:function(){return this.noCinematicData?"":"WHITE_THEME"}},
gradientStyle:{configurable:!0,enumerable:!0,get:function(){var F=this,W,E,h;return"background:linear-gradient(to bottom, "+(((h=(W=this.getCinematicData(this.data))==null?void 0:(E=W.gradientColorConfig)==null?void 0:E.map(function(d){return F.gradientColorToLinearGradientStop(d)}))==null?void 0:h.join(", "))+");")}},
descriptionTapText:{configurable:!0,enumerable:!0,get:function(){var F;return _.Yr((F=this.data)==null?void 0:F.descriptionTapText)}}});
QX.prototype.onUpdateHeader=QX.prototype.onUpdateHeader;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],QX.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],QX.prototype,"actionHandlerBehavior",void 0);_.T([_.gQ("#description-inline-expander"),_.Y("design:type",Object)],QX.prototype,"descriptionInlineExpander",void 0);
_.T([_.gQ("#editable-description-inline-expander"),_.Y("design:type",Object)],QX.prototype,"editableDescriptionInlineExpander",void 0);_.T([_.O(),_.Y("design:type",Object)],QX.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Object)],QX.prototype,"isUltraWide",void 0);_.T([_.gQ("#editable-title-display"),_.Y("design:type",Object)],QX.prototype,"editableTitle",void 0);_.T([_.a("isUltraWide"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],QX.prototype,"maxDescriptionLines",null);
_.T([_.O({reflectToAttribute:!0}),_.a("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],QX.prototype,"noCinematicData",null);_.T([_.R4("yt-new-playlist-header"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],QX.prototype,"onUpdateHeader",null);_.T([_.a("data","isDarkTheme"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],QX.prototype,"backgroundStyle",null);
_.T([_.a("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],QX.prototype,"descriptionFormData",null);_.T([_.a("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],QX.prototype,"getDropdownTheme",null);_.T([_.a("data","isDarkTheme"),_.Y("design:type",String),_.Y("design:paramtypes",[])],QX.prototype,"gradientStyle",null);_.T([_.a("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],QX.prototype,"descriptionTapText",null);
QX=_.T([_.y({is:"ytd-playlist-header-renderer",disableElementRegistration:!0})],QX);
_.r(QX,"ytd-playlist-header-renderer",function(){if(E06!==void 0)return E06;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<iron-media-query id="resize-query" query="(max-width: 1080px)" on-query-matches-changed="onIronResize" class="style-scope ytd-playlist-header-renderer"></iron-media-query>\n\n<div class="immersive-header-container style-scope ytd-playlist-header-renderer" style="">\n  <div class="immersive-header-background-wrapper style-scope ytd-playlist-header-renderer" style$="[[backgroundStyle]]">\n    <yt-img-shadow class="blurred-image style-scope ytd-playlist-header-renderer" alt="hidden" aria-hidden="true" fit-width="" hidden="[[!data.cinematicContainer.cinematicContainerRenderer.backgroundImageConfig.thumbnail]]" thumbnail="[[data.cinematicContainer.cinematicContainerRenderer.backgroundImageConfig.thumbnail]]">\n    </yt-img-shadow>\n    <div class="immersive-header-gradient style-scope ytd-playlist-header-renderer" style$="[[gradientStyle]]"></div>\n  </div>\n  <div class="immersive-header-content style-scope ytd-playlist-header-renderer">\n    <div class="thumbnail-and-metadata-wrapper style-scope ytd-playlist-header-renderer">\n      <a class="yt-simple-endpoint style-scope ytd-playlist-header-renderer" href$="[[computeHref_(data.playlistHeaderBanner.heroPlaylistThumbnailRenderer.onTap)]]" data="[[data.playlistHeaderBanner.heroPlaylistThumbnailRenderer.onTap]]">\n        <div class="thumbnail-wrapper style-scope ytd-playlist-header-renderer" hidden="[[!data.playlistHeaderBanner.heroPlaylistThumbnailRenderer.thumbnail]]">\n          <ytd-hero-playlist-thumbnail-renderer data="[[data.playlistHeaderBanner.heroPlaylistThumbnailRenderer]]" class="style-scope ytd-playlist-header-renderer"></ytd-hero-playlist-thumbnail-renderer>\n        </div>\n      </a>\n\n      <div class="metadata-wrapper style-scope ytd-playlist-header-renderer">\n        <yt-dynamic-sizing-formatted-string hidden="[[data.titleForm]]" hide-overflow="" max-font-size="28" max-lines="2" text="[[data.title]]" class="style-scope ytd-playlist-header-renderer"></yt-dynamic-sizing-formatted-string>\n\n        <ytd-inline-form-renderer data="[[data.titleForm.inlineFormRenderer]]" enable-overlay-theme="[[!noCinematicData]]" hidden="[[!data.titleForm]]" use-slot="" on-inline-form-changed="onUpdatePlaylistName" class="style-scope ytd-playlist-header-renderer">\n          <yt-dynamic-sizing-formatted-string id="editable-title-display" slot="text-display" hide-overflow="" max-font-size="28" max-lines="2" text="[[data.titleForm.inlineFormRenderer.textDisplayed]]" class="style-scope ytd-playlist-header-renderer"></yt-dynamic-sizing-formatted-string>\n        </ytd-inline-form-renderer>\n\n        <div class="metadata-action-bar style-scope ytd-playlist-header-renderer">\n          <div class="metadata-text-wrapper style-scope ytd-playlist-header-renderer">\n            <div class="metadata-owner style-scope ytd-playlist-header-renderer">\n              <yt-formatted-string id="owner-text" hidden="[[!data.ownerText]]" link-inherit-color="" text="[[data.ownerText]]" class="style-scope ytd-playlist-header-renderer"></yt-formatted-string>\n              <yt-formatted-string hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-playlist-header-renderer"></yt-formatted-string>\n\n              <div class="badges style-scope ytd-playlist-header-renderer" hidden="[[!data.playlistBadges]]">\n                <span class="middot style-scope ytd-playlist-header-renderer">\u00b7</span>\n                <ytd-badge-supported-renderer badges="[[data.playlistBadges]]" class="style-scope ytd-playlist-header-renderer">\n                </ytd-badge-supported-renderer>\n              </div>\n            </div>\n\n            <ytd-dropdown-form-field-renderer id="privacy-form" data="[[data.privacyForm.dropdownFormFieldRenderer]]" hidden="[[!data.privacyForm]]" theme="[[getDropdownTheme]]" class="style-scope ytd-playlist-header-renderer">\n            </ytd-dropdown-form-field-renderer>\n            <ytd-playlist-byline-renderer data="[[data.byline]]" class="style-scope ytd-playlist-header-renderer"></ytd-playlist-byline-renderer>\n          </div>\n          <div class="metadata-buttons-wrapper style-scope ytd-playlist-header-renderer">\n            <ytd-toggle-button-renderer data="[[data.saveButton.toggleButtonRenderer]]" force-modern-icon-button="" hidden="[[!data.saveButton.toggleButtonRenderer]]" class="style-scope ytd-playlist-header-renderer">\n            </ytd-toggle-button-renderer>\n            <ytd-button-renderer data="[[data.shareButton.buttonRenderer]]" force-modern-icon-button="" hidden="[[!data.shareButton.buttonRenderer]]" class="style-scope ytd-playlist-header-renderer">\n            </ytd-button-renderer>\n            <ytd-button-renderer data="[[data.addVideosButton.buttonRenderer]]" force-modern-icon-button="" hidden="[[!data.addVideosButton.buttonRenderer]]" class="style-scope ytd-playlist-header-renderer">\n            </ytd-button-renderer>\n            <ytd-download-playlist-button-renderer data="[[data.offlineability.downloadButtonRenderer]]" force-icon-button="" force-modern-icon-button="" hidden="[[!data.offlineability.downloadButtonRenderer]]" class="style-scope ytd-playlist-header-renderer">\n            </ytd-download-playlist-button-renderer>\n            <ytd-menu-renderer data="[[data.moreActionsMenu.menuRenderer]]" force-icon-button="" hidden="[[!data.moreActionsMenu.menuRenderer]]" is-overlay="[[!noCinematicData]]" tonal-override="" class="style-scope ytd-playlist-header-renderer"></ytd-menu-renderer>\n          </div>\n        </div>\n\n        <div class="play-menu spaced-row wide-screen-form style-scope ytd-playlist-header-renderer">\n          <ytd-button-renderer class="play-button style-scope ytd-playlist-header-renderer" data="[[data.playButton.buttonRenderer]]" hidden="[[!data.playButton.buttonRenderer]]">\n          </ytd-button-renderer>\n          <ytd-button-renderer class="shuffle-button style-scope ytd-playlist-header-renderer" data="[[data.shufflePlayButton.buttonRenderer]]" hidden="[[!data.shufflePlayButton.buttonRenderer]]">\n          </ytd-button-renderer>\n        </div>\n\n        <div class="description style-scope ytd-playlist-header-renderer">\n          <ytd-text-inline-expander id="description-inline-expander" expand-command="[[data.onDescriptionTap]]" expand-label="[[descriptionTapText]]" hidden="[[data.descriptionForm]]" max-lines="[[maxDescriptionLines]]" text="[[data.descriptionText]]" class="style-scope ytd-playlist-header-renderer">\n          </ytd-text-inline-expander>\n          <ytd-inline-form-renderer data="[[descriptionFormData]]" enable-overlay-theme="[[!noCinematicData]]" hidden="[[!data.descriptionForm]]" use-slot="" on-inline-form-changed="onUpdatePlaylistDescription" class="style-scope ytd-playlist-header-renderer">\n            <ytd-text-inline-expander id="editable-description-inline-expander" slot="text-display" expand-command="[[data.onDescriptionTap]]" expand-label="[[descriptionTapText]]" max-lines="[[maxDescriptionLines]]" text="[[computeTextDisplayed(data.descriptionForm.inlineFormRenderer)]]" class="style-scope ytd-playlist-header-renderer">\n            </ytd-text-inline-expander>\n          </ytd-inline-form-renderer>\n        </div>\n      </div>\n    </div>\n    <div class="play-menu spaced-row small-screen-form style-scope ytd-playlist-header-renderer">\n      <ytd-button-renderer class="play-button style-scope ytd-playlist-header-renderer" data="[[data.playButton.buttonRenderer]]" hidden="[[!data.playButton.buttonRenderer]]">\n      </ytd-button-renderer>\n      <ytd-button-renderer class="shuffle-button style-scope ytd-playlist-header-renderer" data="[[data.shufflePlayButton.buttonRenderer]]" hidden="[[!data.shufflePlayButton.buttonRenderer]]">\n      </ytd-button-renderer>\n    </div>\n  </div>\n\n  <tp-yt-paper-tooltip for="owner-text" offset="5" position="top" class="style-scope ytd-playlist-header-renderer">\n    [[getSimpleString(data.ownerText)]]\n  </tp-yt-paper-tooltip>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return E06=F},{mode:_.E6("kevlar_poly_si_batch_j078")?1:2});var tNx;var CQO;var z7=function(){return _.n.apply(this,arguments)||this};
_.k(z7,_.n);z7.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{gridShowRenderer:"ytd-grid-show-renderer"}}}};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],z7.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],z7.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],z7.prototype,"data",void 0);z7=_.T([_.y({is:"ytd-playlist-sidebar-tertiary-info-renderer",disableElementRegistration:!0})],z7);
_.r(z7,"ytd-playlist-sidebar-tertiary-info-renderer",function(){if(CQO!==void 0)return CQO;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-sidebar-tertiary-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="title" split-lines="" text="[[data.title]]" class="style-scope ytd-playlist-sidebar-tertiary-info-renderer">\n</yt-formatted-string>\n<div id="items" class="style-scope ytd-playlist-sidebar-tertiary-info-renderer"></div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return CQO=F},{mode:1});var tZ=function(){return _.n.apply(this,arguments)||this};
_.k(tZ,_.n);
tZ.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{playlistSidebarPrimaryInfoRenderer:{component:"ytd-playlist-sidebar-primary-info-renderer",noInjection:!0},playlistSidebarSecondaryInfoRenderer:{component:"ytd-playlist-sidebar-secondary-info-renderer",noInjection:!0},playlistSidebarTertiaryInfoRenderer:{component:"ytd-playlist-sidebar-tertiary-info-renderer",noInjection:!0},channelLegalInfoRenderer:{component:"ytd-channel-legal-info-renderer",params:{isCompact:!0},noInjection:!0}}}}};
tZ.prototype.computeUsePremiumShowStyle=function(F){if(!F||!F.items)return!1;for(var W=0;W<F.items.length;W++)if(_.D(F.items[W],XT)){var E=void 0;return((E=_.D(F.items[W],XT))==null?void 0:E.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],tZ.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],tZ.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],tZ.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0,computed:"computeUsePremiumShowStyle(data)"}),_.Y("design:type",Boolean)],tZ.prototype,"usePremiumShowStyle",void 0);
tZ=_.T([_.y({is:"ytd-playlist-sidebar-renderer",disableElementRegistration:!0})],tZ);
_.r(tZ,"ytd-playlist-sidebar-renderer",function(){if(tNx!==void 0)return tNx;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-sidebar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="items" class="style-scope ytd-playlist-sidebar-renderer"></div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return tNx=F},{mode:1});var BfK;var v0u;var IxK=function(F,W,E,h,d,V,R,M){this.minWidth=F;this.minHeight=W;this.recommendedWidth=E;this.recommendedHeight=h;this.JSC$19404_maxFileSize=d;this.title=V;this.bannerGalleryTitle=R;this.channelId=M;this.picker_=null;F=_.D4r("yt-banner");W=F.addView;E=(new EmK("youtubebanner")).addUploadMetadata("silo_id","19");E.opts.ytMaxFileSize=this.JSC$19404_maxFileSize;h=this.recommendedHeight;E.opts.ytRecWidth=this.recommendedWidth;E.opts.ytRecHeight=h;W.call(F,E);F.addView(new _.HM);W=F.addView;E=new _.HM;
E.opts.type="ytbanner";W.call(F,E.JSC$7978_setLabel(this.bannerGalleryTitle));W=F.setTitle(this.title).setSize(1E3);W.urlParamMap_.set("thumbs","orig");E=this.minWidth;h=this.minHeight;if(isNaN(E)||isNaN(h))throw Error("kb`"+E+"`"+h);W.urlParamMap_.set("minSize",E+"x"+h);W.urlParamMap_.set("cropMode","ytcb");this.builder_=F};
IxK.prototype.open=function(){var F=this;return new _.z5(function(W,E){_.Noi(F.builder_,function(h){h.action=="picked"?W(h):h.action=="cancel"&&E(Error("Wl"))});
F.picker_&&F.picker_.dispose();F.picker_=F.builder_.build();F.picker_.setVisible(!0)})};
IxK.prototype.dispose=function(){this.picker_&&(this.picker_.dispose(),this.picker_=null)};var cSK=function(F){this.channelId=F},DqO=function(F,W){var E="";
W.viewToken&&(E=W.viewToken[2].type);var h=W.docs[0];W=h.crop;F={channel_id:F.channelId,fife_url:h.thumbnails[0].url,photo_id:h.id,is_gallery_image:E=="ytbanner"};W&&(F.crop_top=W.top,F.crop_right=W.right,F.crop_bottom=W.bottom,F.crop_left=W.left);return _.msG("/channels_profile_ajax?action_update_banner_image=1",{method:"POST",postParams:F})};var C9=function(){var F=_.n.apply(this,arguments)||this;F.ariaLabel=null;return F};
_.k(C9,_.n);_.N=C9.prototype;_.N.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.N.detached=function(){this.picker&&this.picker.dispose()};
_.N.dataChanged=function(){this.uploader=this.picker=this.message=null};
_.N.computeAriaLabel=function(F){return F};
_.N.onTap=function(){var F=this,W;if((W=this.data)==null||!W.editBannerCommand){this.message=null;!this.picker&&this.data&&(this.picker=new IxK(this.data.bannerMinWidth||0,this.data.bannerMinHeight||0,this.data.bannerRecommendedWidth||0,this.data.bannerRecommendedHeight||0,this.data.bannerMaxFileSizeInMegabytes||0,this.data.editorTitle||"",this.data.galleryViewTitle||"",this.data.channelId||""));var E;(E=this.picker)==null||E.open().then(function(h){F.handleBannerPicked(h)},function(){})}};
_.N.handleBannerPicked=function(F){var W=this;this.uploader||(this.uploader=new cSK(this.data.channelId||""));this.message=this.data.uploadingText;DqO(this.uploader,F).then(function(E){W.handleBannerUploadSucceeded(E)},function(E){W.handleBannerUploadFailed(E)})};
_.N.handleBannerUploadSucceeded=function(F){F&&F.errors?this.handleBannerUploadFailed(F):(_.hF(this.hostElement,"yt-banner-updated",F),this.message=null)};
_.N.handleBannerUploadFailed=function(F){this.message=F&&F.errors&&F.errors.length?F.errors[0]:null};
C9.prototype.dataChanged=C9.prototype.dataChanged;_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],C9.prototype,"componentBehavior",void 0);_.T([_.J(_.yf),_.Y("design:type",Object)],C9.prototype,"ironButtonState",void 0);_.T([_.O(),_.Y("design:type",Object)],C9.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.buttonLabel)"}),_.Y("design:type",Object)],C9.prototype,"ariaLabel",void 0);
_.T([_.O(),_.Y("design:type",Object)],C9.prototype,"message",void 0);_.T([_.O(),_.Y("design:type",Object)],C9.prototype,"picker",void 0);_.T([_.O(),_.Y("design:type",Object)],C9.prototype,"uploader",void 0);_.T([_.Cz("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],C9.prototype,"dataChanged",null);C9=_.T([_.y({is:"ytd-channel-banner-editor-renderer",disableElementRegistration:!0})],C9);
_.r(C9,"ytd-channel-banner-editor-renderer",function(){if(v0u!==void 0)return v0u;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-banner-editor-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="edit-banner-link" class="yt-simple-endpoint style-scope ytd-channel-banner-editor-renderer" data="[[data.editBannerCommand]]" href$="[[computeHref_(data.editBannerCommand)]]" target="_blank" on-click="onTap">\n  <yt-icon icon="camera_alt" class="style-scope ytd-channel-banner-editor-renderer"></yt-icon>\n  <tp-yt-paper-tooltip position="top" class="style-scope ytd-channel-banner-editor-renderer">[[ariaLabel]]</tp-yt-paper-tooltip>\n  <div id="message" hidden$="[[!message]]" class="style-scope ytd-channel-banner-editor-renderer">[[message]]</div>\n</a>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return v0u=F},{mode:1});var xqP;var ksF=_.Fc(["#"]),Bx=function(){return _.n.apply(this,arguments)||this};
_.k(Bx,_.n);Bx.prototype.computeHrefWithDefault=function(F){return this.ytComponentBehavior.computeHref_(F,!0)||_.xw(ksF)};
Bx.prototype.dataChanged=function(){var F=this.data;F&&F.targetId&&_.$_u(_.QV(),F.targetId,this.moreIcon)};
Bx.prototype.dataChanged=Bx.prototype.dataChanged;_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],Bx.prototype,"ytComponentBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],Bx.prototype,"data",void 0);_.T([_.gQ("#more-icon"),_.Y("design:type",Object)],Bx.prototype,"moreIcon",void 0);_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Bx.prototype,"dataChanged",null);
Bx=_.T([_.y({is:"ytd-channel-tagline-renderer",disableElementRegistration:!0})],Bx);
_.r(Bx,"ytd-channel-tagline-renderer",function(){if(xqP!==void 0)return xqP;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-tagline-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope ytd-channel-tagline-renderer" href$="[[computeHrefWithDefault(data.moreEndpoint)]]" data="[[data.moreEndpoint]]">\n  <div id="wrapper" class="style-scope ytd-channel-tagline-renderer">\n    <div id="content" dir="auto" class="style-scope ytd-channel-tagline-renderer">\n      [[data.content]]\n    </div>\n    <yt-icon id="more-icon" hidden="[[!data.moreIcon]]" icon="[[data.moreIcon.iconType]]" class="style-scope ytd-channel-tagline-renderer">\n    </yt-icon>\n  </div>\n</a>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return xqP=F},{mode:1});var ASK;var vx=function(){return _.n.apply(this,arguments)||this};
_.k(vx,_.n);_.N=vx.prototype;_.N.ready=function(){var F=this;_.Z(this.hostElement).querySelector("#form").addEventListener("submit",function(W){F.onSubmit(W)})};
_.N.onDataChanged=function(){var F;((F=this.data)==null?0:F.selected)&&this.ytdExpandableInputBehavior.setShowInput(!0)};
_.N.onIconButtonKeydown=function(F){F.keyCode===13&&this.iconButton.click()};
_.N.closeOnOutsideClickHandler=function(){this.set("data.expandedText","")};
_.N.openOnClickHandler=function(){this.input.focus()};
_.N.onSubmit=function(F){F.preventDefault();return!1};
_.N.submitOnEnterKeyUp=function(F){var W;if(F.keyCode===13&&((W=this.data)==null?0:W.expandedText)){F=this.data.endpoint;W=_.xd.unsafeClone(F);var E;((E=_.D(W==null?void 0:W.commandMetadata,_.m1))==null?0:E.url)?(_.D(W.commandMetadata,_.m1).url=_.nn(_.D(W.commandMetadata,_.m1).url,"query",this.data.expandedText),_.D(W,_.BB)&&(_.D(W,_.BB).query=this.data.expandedText),_.hF(this.hostElement,"yt-navigate",{endpoint:W,tempData:{disableCache:!0}})):(E=new _.xC("Error: Trying to navigate to an endpoint without url",
F),_.a_(E))}};
_.N.updateDataExpandedTextFromBinding=function(F){this.set("data.expandedText",F.detail.value)};
vx.prototype.onDataChanged=vx.prototype.onDataChanged;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],vx.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.S0q),_.Y("design:type",Object)],vx.prototype,"ytdExpandableInputBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],vx.prototype,"data",void 0);_.T([_.gQ("#input"),_.Y("design:type",Object)],vx.prototype,"input",void 0);_.T([_.gQ("#icon-button"),_.Y("design:type",HTMLElement)],vx.prototype,"iconButton",void 0);
_.T([_.Cz("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],vx.prototype,"onDataChanged",null);vx=_.T([_.y({disableElementRegistration:!0,is:"ytd-expandable-tab-renderer"})],vx);
var uZ8=_.We()(vx,"ytd-expandable-tab-renderer",function(){if(ASK===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expandable-tab-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon-button id="icon-button" label="[[data.title]]" on-click="openOnClick_" on-keydown="onIconButtonKeydown" class="style-scope ytd-expandable-tab-renderer">\n  <yt-icon icon="yt-icons:search" class="style-scope ytd-expandable-tab-renderer"></yt-icon>\n</yt-icon-button>\n<form id="form" action="[[data.endpoint.commandMetadata.webCommandMetadata.url]]" class="style-scope ytd-expandable-tab-renderer">\n  <tp-yt-paper-input id="input" autocomplete="off" label="[[data.title]]" max-length="100" name="query" no-label-float="" value="[[data.expandedText]]" on-keyup="submitOnEnterKeyUp" on-value-changed="updateDataExpandedTextFromBinding" class="style-scope ytd-expandable-tab-renderer">\n   </tp-yt-paper-input>\n</form>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);ASK=F}F=ASK;return F},{allowedProps:["data"],
callbackProps:["onYtNavigate"],mode:1});var shT;var IN=function(){var F=_.n.apply(this,arguments)||this;F.avatarSize=80;F.ariaLabel=_.CY("EDIT_AVATAR_LABEL",void 0,"Edit channel icon");return F};
_.k(IN,_.n);IN.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
IN.prototype.computeHref=function(F){var W;return((W=_.D(F,_.T5))==null?0:W.url)?this.componentBehavior.computeHref_(F):null};
IN.prototype.onTap=function(){var F,W;(F=this.data)==null||!F.editAvatarServiceEndpoint||((W=_.D(this.data.editAvatarServiceEndpoint,_.T5))==null?0:W.url)||_.WZ().resolve(_.EJ).resolveCommand(this.data.editAvatarServiceEndpoint,{form:{element:this.hostElement}})};
_.T([_.J(_.yf),_.Y("design:type",Object)],IN.prototype,"ironButtonState",void 0);_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],IN.prototype,"componentBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],IN.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Object)],IN.prototype,"avatarSize",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",String)],IN.prototype,"ariaLabel",void 0);IN=_.T([_.y({disableElementRegistration:!0,is:"ytd-channel-avatar-editor"})],IN);
_.r(IN,"ytd-channel-avatar-editor",function(){if(shT!==void 0)return shT;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-avatar-editor--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-channel-avatar-editor" href$="[[computeHref(data.editAvatarServiceEndpoint)]]" data="[[data.editAvatarServiceEndpoint]]" target="_blank" on-click="onTap">\n  <yt-icon icon="camera_alt" class="style-scope ytd-channel-avatar-editor"></yt-icon>\n  <yt-img-shadow thumbnail="[[data.avatar]]" width="[[avatarSize]]" class="style-scope ytd-channel-avatar-editor"></yt-img-shadow>\n  <tp-yt-paper-tooltip position="bottom" class="style-scope ytd-channel-avatar-editor">[[ariaLabel]]</tp-yt-paper-tooltip>\n</a>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return shT=F},{mode:1});var LzF=_.GK(function(F){var W=F.data;var E=F.noPadding;var h=F.enableBanner;var d=F.cinematicContainerTopbarOffset;var V=F.allowCinematicContainerOverflow;var R=F.displayAsSidebar;F=F.className;_.q6(function(){W().tagManagerId&&(_.xE(W().tagManagerId,_.b0("GL")),WdP(W().tagManagerId))});
var M=_.D1(pAN,function(){return W().pageHeaderEntityKey});
return _.z("yt-page-header-renderer",{class:_.ec("page-header-renderer-wiz",F)},_.z(_.a6,{data:function(){var g;return((g=M())==null?0:g.header)?M().header:(R==null?0:R())&&W().sidebarContent?W().sidebarContent:W().content}},{pageHeaderViewModel:function(g){return _.z(_.X8B,{data:g.data,
noPadding:E,enableBanner:h,cinematicContainerTopbarOffset:d,allowCinematicContainerOverflow:V,displayAsSidebar:function(){return(R==null?void 0:R())&&W().enableSidebarView}})}}))},"xi");
LzF.idomCompat=!0;_.pK(LzF,"yt-page-header-renderer",{props:{data:_.TS,noPadding:_.TS,enableBanner:_.TS,cinematicContainerTopbarOffset:_.TS,allowCinematicContainerOverflow:_.TS,displayAsSidebar:_.TS,className:_.TS}});_.pK(_.$NM,"yt-image-banner-view-model",{props:{data:_.TS,isPositionRelative:_.TS}});_.pK(_.GEB,"yt-tab-group-shape",{props:{shape:_.TS}});var cx=function(){var F=_.n.apply(this,arguments)||this;F.expandableCustomTabRenderable=function(W){return SS6(W,function(){return void F.onSearchNavigate()})};
F.isRichGrid=!1;F.isConstrainedList=!1;F.richGridMiniMode=!1;F.richGridStyle="RICH_GRID_STYLE_UNKNOWN";F.isRichGridShorts=!1;F.responsiveSizing="COMPACT";F.disableGridStateAware=!1;F.actionMap={"yt-insert-channel-tab-command":"handleInsertTabCommand","ytd-refresh-channel-tab-action":"handleRefreshChannelTabAction","yt-window-resized":"onWindowResize"};return F};
_.k(cx,_.n);_.N=cx.prototype;_.N.computeHeaderDisabled=function(F,W){return W||!F||this.tabsHidden};
_.N.computeTabsHidden=function(){return!this.tabs||this.tabs.length<=1};
_.N.computeIsRichGridShorts=function(F){return F==="RICH_GRID_STYLE_SHORTS_GRID"||F==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"};
_.N.computeImageBannerViewModel=function(){var F,W;return _.D((W=_.D((F=this.data)==null?void 0:F.content,_.UIO))==null?void 0:W.banner,_.EQu)};
_.N.computeHasCinematicContainer=function(){var F,W;return!((W=_.D((F=this.data)==null?void 0:F.content,_.UIO))==null||!W.background)};
_.N.handleHeaderResize=function(){var F=_.Z(this.hostElement).querySelector("#header");F&&_.hF(F,"iron-resize")};
_.N.handleInsertTabCommand=function(F){var W=_.D(F,xEq);W&&(W.tabIdentifier&&this.ytdTabbedHeaderBehavior.tabs.some(function(E){return E.tabRenderer&&E.tabRenderer.tabIdentifier===W.tabIdentifier})||this.splice("tabs",W.tabIndex||-1,0,W.tab))};
_.N.handleRefreshChannelTabAction=function(F){this.ytdTabbedHeaderBehavior.selected&&this.ytdTabbedHeaderBehavior.tabs[this.ytdTabbedHeaderBehavior.selected].tabRenderer.tabIdentifier===F&&_.hF(this.hostElement,"yt-navigate",{endpoint:this.ytdGuideStateAwareBehavior.activeEndpoint,tempData:{disableCache:!0}})};
_.N.observerRichGridItemsPerRow=function(){this.isRichGrid&&this.richGridItemsPerRow&&_.V9(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.N.observerRichGridSlimItemsPerRow=function(){_.V9(this.hostElement,{"--ytd-rich-grid-slim-items-per-row":""+this.richGridSlimItemsPerRow})};
_.N.updateCssVars=function(){this.richGridItemsPerRow&&_.V9(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.dV("rich_grid_max_item_width",500))+16)-16+"px"})};
_.N.updateCssVarsForResponsiveGrid=function(){this.richGridContainerWidth&&_.V9(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridContainerWidth+"px"})};
_.N.onDataChanged=function(){this.handleHeaderResize()};
_.N.onWindowResize=function(){this.handleHeaderResize()};
_.N.onFocusedChanged=function(F){(F=_.oo(F))&&F.is==="tp-yt-paper-tab"&&F.hasRipple()&&(F.getRipple().holdDown=!F.pointerDown&&F.focused)};
_.N.updateSelectedFromBinding=function(F){this.ytdTabbedHeaderBehavior.selected=F.detail.value};
_.N.onSearchNavigate=function(){this.tabsElement.selected=-1};
_.Sn.Object.defineProperties(cx.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:KSu(this.tabs,this.expandableCustomTabRenderable)}:{}}},
hasBanner:{configurable:!0,enumerable:!0,get:function(){return!!this.imageBannerViewModel}},
hasInsetBanner:{configurable:!0,enumerable:!0,get:function(){var F;return((F=this.imageBannerViewModel)==null?void 0:F.style)==="IMAGE_BANNER_STYLE_INSET"}}});
cx.prototype.onDataChanged=cx.prototype.onDataChanged;cx.prototype.updateCssVarsForResponsiveGrid=cx.prototype.updateCssVarsForResponsiveGrid;cx.prototype.updateCssVars=cx.prototype.updateCssVars;cx.prototype.observerRichGridSlimItemsPerRow=cx.prototype.observerRichGridSlimItemsPerRow;cx.prototype.observerRichGridItemsPerRow=cx.prototype.observerRichGridItemsPerRow;_.T([_.J(_.lU),_.Y("design:type",Object)],cx.prototype,"ytdGridStateAwareBehavior",void 0);
_.T([_.J(k6q),_.Y("design:type",Object)],cx.prototype,"ytdTabbedHeaderBehavior",void 0);_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],cx.prototype,"ytActionHandlerBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],cx.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.y_.YtdGuideStateAwareBehavior),_.Y("design:type",Object)],cx.prototype,"ytdGuideStateAwareBehavior",void 0);
_.T([_.J(_.am),_.Y("design:type",Object)],cx.prototype,"ytdReduxBehavior",void 0);_.T([_.gQ("#tabs"),_.Y("design:type",Object)],cx.prototype,"tabsElement",void 0);_.T([_.O(),_.Y("design:type",Array)],cx.prototype,"tabs",void 0);_.T([_.O(),_.Y("design:type",Object)],cx.prototype,"expandableCustomTabRenderable",void 0);_.T([_.a("tabs.*"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],cx.prototype,"tabGroupShape",null);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],cx.prototype,"isRichGrid",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],cx.prototype,"isConstrainedList",void 0);_.T([_.O({reflectToAttribute:!0,selector:_.XD}),_.Y("design:type",Object)],cx.prototype,"richGridMiniMode",void 0);_.T([_.O({selector:function(F){return F.ui.richGridStyle}}),
_.Y("design:type",Object)],cx.prototype,"richGridStyle",void 0);_.T([_.O({reflectToAttribute:!0,computed:"computeIsRichGridShorts(richGridStyle)"}),_.Y("design:type",Object)],cx.prototype,"isRichGridShorts",void 0);_.T([_.O({selector:_.Hz}),_.Y("design:type",Number)],cx.prototype,"richGridItemsPerRow",void 0);_.T([_.O({selector:function(F){return F.ui.richGridContainerWidth}}),
_.Y("design:type",Number)],cx.prototype,"richGridContainerWidth",void 0);_.T([_.O({selector:_.IIR}),_.Y("design:type",Number)],cx.prototype,"richGridSlimItemsPerRow",void 0);_.T([_.O(),_.Y("design:type",Object)],cx.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],cx.prototype,"responsiveSizing",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],cx.prototype,"disableGridStateAware",void 0);
_.T([_.O({computed:"computeImageBannerViewModel(data)"}),_.Y("design:type",Object)],cx.prototype,"imageBannerViewModel",void 0);_.T([_.O({reflectToAttribute:!0,computed:"computeHasCinematicContainer(data)"}),_.Y("design:type",Boolean)],cx.prototype,"hasCinematicContainer",void 0);_.T([_.O({selector:_.OLN,reflectToAttribute:!0}),_.Y("design:type",Boolean)],cx.prototype,"guideIsVisibleButNotPersistent",void 0);
_.T([_.O({reflectToAttribute:!0}),_.a("imageBannerViewModel"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],cx.prototype,"hasBanner",null);_.T([_.O({reflectToAttribute:!0}),_.a("imageBannerViewModel"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],cx.prototype,"hasInsetBanner",null);_.T([_.O({computed:"computeTabsHidden(tabs)",value:!0}),_.Y("design:type",Boolean)],cx.prototype,"tabsHidden",void 0);
_.T([_.ea("richGridItemsPerRow","isRichGrid"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],cx.prototype,"observerRichGridItemsPerRow",null);_.T([_.ea("richGridSlimItemsPerRow"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],cx.prototype,"observerRichGridSlimItemsPerRow",null);
_.T([_.ea("richGridItemsPerRow","richGridMiniMode"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],cx.prototype,"updateCssVars",null);_.T([_.ea("richGridContainerWidth"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],cx.prototype,"updateCssVarsForResponsiveGrid",null);_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],cx.prototype,"onDataChanged",null);
cx=_.T([_.y({is:"ytd-tabbed-page-header",disableElementRegistration:!0})],cx);
_.r(cx,"ytd-tabbed-page-header",function(){if(BfK!==void 0)return BfK;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-tabbed-page-header--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[!tabsHidden]]" class="style-scope ytd-tabbed-page-header">\n  <tp-yt-app-header-layout class="style-scope ytd-tabbed-page-header">\n    <tp-yt-app-header id="header" slot="header" condenses="" disabled="[[computeHeaderDisabled(active, guideIsVisibleButNotPersistent, tabs)]]" effects="parallax-background" effects-config="{&quot;parallax-background&quot;: {&quot;scalar&quot;: 0.5}}" fixed="" class="style-scope ytd-tabbed-page-header">\n      <div id="page-header-container" class="style-scope ytd-tabbed-page-header">\n        <template is="dom-if" if="[[hasBanner]]" class="style-scope ytd-tabbed-page-header">\n          <div id="page-header-banner" class="style-scope ytd-tabbed-page-header">\n            <div id="page-header-banner-sizer" class="style-scope ytd-tabbed-page-header">\n              <yt-image-banner-view-model data="[[imageBannerViewModel]]" class="style-scope ytd-tabbed-page-header">\n              </yt-image-banner-view-model>\n            </div>\n          </div>\n        </template>\n        <div id="page-header" class="style-scope ytd-tabbed-page-header">\n          <yt-page-header-renderer allow-cinematic-container-overflow="" data="[[data]]" disable-upgrade$="[[tabsHidden]]" no-padding="" class="style-scope ytd-tabbed-page-header"></yt-page-header-renderer>\n        </div>\n      </div>\n      <tp-yt-app-toolbar disable-upgrade$="[[tabsHidden]]" sticky="" class="style-scope ytd-tabbed-page-header">\n        <div id="tabs-container" class="style-scope ytd-tabbed-page-header">\n          \n          <div id="tabs-inner-container" class="style-scope ytd-tabbed-page-header">\n            <div id="tabs-divider" class="style-scope ytd-tabbed-page-header"></div>\n            <tp-yt-paper-tabs id="tabs" disable-upgrade$="[[tabsHidden]]" noink="" remove-idle-scroll-buttons="" scrollable="" selected="[[selected]]" on-iron-activate="onTabsActivate" on-selected-changed="updateSelectedFromBinding" class="style-scope ytd-tabbed-page-header">\n              <yt-tab-group-shape shape="[[tabGroupShape]]" class="style-scope ytd-tabbed-page-header"> </yt-tab-group-shape>\n            </tp-yt-paper-tabs>\n          </div>\n        </div>\n      </tp-yt-app-toolbar>\n    </tp-yt-app-header>\n  </tp-yt-app-header-layout>\n</template>\n<template is="dom-if" if="[[tabsHidden]]" class="style-scope ytd-tabbed-page-header">\n  <div id="page-header-container" class="style-scope ytd-tabbed-page-header">\n    <template is="dom-if" if="[[hasBanner]]" class="style-scope ytd-tabbed-page-header">\n      <div id="page-header-banner" class="style-scope ytd-tabbed-page-header">\n        <div id="page-header-banner-sizer" class="style-scope ytd-tabbed-page-header">\n          <yt-image-banner-view-model data="[[imageBannerViewModel]]" class="style-scope ytd-tabbed-page-header"> </yt-image-banner-view-model>\n        </div>\n      </div>\n    </template>\n    <div id="page-header" class="style-scope ytd-tabbed-page-header">\n      <yt-page-header-renderer allow-cinematic-container-overflow="" data="[[data]]" disable-upgrade$="[[!tabsHidden]]" no-padding="true" class="style-scope ytd-tabbed-page-header"></yt-page-header-renderer>\n    </div>\n  </div>\n</template>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return BfK=F},{mode:1});var qCw;var Dk=function(){return _.n.apply(this,arguments)||this};
_.k(Dk,_.n);Dk.prototype.observerRichGridItemsPerRow=function(){this.richGridItemsPerRow&&_.V9(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.Sn.Object.defineProperties(Dk.prototype,{badgeIconName:{configurable:!0,enumerable:!0,get:function(){var F,W;return this.componentBehavior.computeIcon_(((W=_.D((F=this.data)==null?void 0:F.badge,_.mSU))==null?void 0:W.icon)||null)}},
badgeLabel:{configurable:!0,enumerable:!0,get:function(){var F,W;return(W=_.D((F=this.data)==null?void 0:F.badge,_.mSU))==null?void 0:W.label}}});
Dk.prototype.observerRichGridItemsPerRow=Dk.prototype.observerRichGridItemsPerRow;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Dk.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],Dk.prototype,"componentBehavior",void 0);_.T([_.J(_.am),_.Y("design:type",Object)],Dk.prototype,"ytdReduxBehavior",void 0);_.T([_.O({reflectToAttribute:!0,selector:_.XD}),_.Y("design:type",Boolean)],Dk.prototype,"richGridMiniMode",void 0);
_.T([_.O({selector:_.Hz}),_.Y("design:type",Number)],Dk.prototype,"richGridItemsPerRow",void 0);_.T([_.O(),_.Y("design:type",Object)],Dk.prototype,"data",void 0);_.T([_.ea("richGridItemsPerRow"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Dk.prototype,"observerRichGridItemsPerRow",null);_.T([_.a("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Dk.prototype,"badgeIconName",null);
_.T([_.a("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Dk.prototype,"badgeLabel",null);Dk=_.T([_.y({is:"ytd-member-hub-profile-renderer",disableElementRegistration:!0})],Dk);
_.r(Dk,"ytd-member-hub-profile-renderer",function(){if(qCw!==void 0)return qCw;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-member-hub-profile-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-member-hub-profile-renderer">\n  <yt-img-shadow id="avatar" hidden="[[!data.avatar]]" thumbnail="[[data.avatar]]" class="style-scope ytd-member-hub-profile-renderer">\n  </yt-img-shadow>\n  <div id="details-container" class="style-scope ytd-member-hub-profile-renderer">\n    <ytd-badge-supported-renderer top-standalone-badge="[[data.badge]]" class="style-scope ytd-member-hub-profile-renderer">\n    </ytd-badge-supported-renderer>\n    <h2 class="style-scope ytd-member-hub-profile-renderer">\n      <yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope ytd-member-hub-profile-renderer">\n      </yt-formatted-string>\n    </h2>\n    <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-member-hub-profile-renderer">\n    </yt-formatted-string>\n  </div>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return qCw=F},{mode:1});var $q$;var xN=function(){return _.n.apply(this,arguments)||this};
_.k(xN,_.n);xN.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{compactLinkRenderer:{component:"ytd-compact-link-renderer",noInjection:!0}}}}};
_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],xN.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],xN.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],xN.prototype,"data",void 0);xN=_.T([_.y({is:"ytd-settings-sidebar-renderer",disableElementRegistration:!0})],xN);
_.r(xN,"ytd-settings-sidebar-renderer",function(){if($q$!==void 0)return $q$;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-settings-sidebar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" class="style-scope ytd-settings-sidebar-renderer">[[getSimpleString(data.title)]]</div>\n<div id="items" class="style-scope ytd-settings-sidebar-renderer"></div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return $q$=F},{mode:1});var ZD6;var kN=function(){var F=_.n.apply(this,arguments)||this;F.expandableCustomTabRenderable=function(W){return SS6(W,function(){return void F.onSearchNavigate()})};
return F};
_.k(kN,_.n);kN.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
kN.prototype.onSearchNavigate=function(){this.selected=void 0};
kN.prototype.onTabsChange=function(){var F,W=(F=this.tabs)==null?void 0:F.findIndex(function(E){var h;return E==null?void 0:(h=E.tabRenderer)==null?void 0:h.selected});
W!==void 0&&(this.selected=W)};
kN.prototype.onTabsActive=function(F){if(this.tabs!==void 0){var W,E;(F=(W=this.tabs[F.detail.selected])==null?void 0:(E=W.tabRenderer)==null?void 0:E.endpoint)&&_.hF(this.hostElement,"yt-navigate",{endpoint:F})}};
_.Sn.Object.defineProperties(kN.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:KSu(this.tabs,this.expandableCustomTabRenderable)}:{}}},
tabsEnabled:{configurable:!0,enumerable:!0,get:function(){return this.tabs!==void 0&&this.tabs.length>1}}});
kN.prototype.onTabsChange=kN.prototype.onTabsChange;_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],kN.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.lU),_.Y("design:type",Object)],kN.prototype,"ytdGridStateAwareBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],kN.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.y_.YtdGuideStateAwareBehavior),_.Y("design:type",Object)],kN.prototype,"ytdGuideStateAwareBehavior",void 0);
_.T([_.O(),_.Y("design:type",Object)],kN.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Array)],kN.prototype,"tabs",void 0);_.T([_.O(),_.Y("design:type",Number)],kN.prototype,"selected",void 0);_.T([_.a("tabs.*"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],kN.prototype,"tabGroupShape",null);_.T([_.O(),_.Y("design:type",Object)],kN.prototype,"expandableCustomTabRenderable",void 0);
_.T([_.a("tabs"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],kN.prototype,"tabsEnabled",null);_.T([_.Cz("tabs"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],kN.prototype,"onTabsChange",null);kN=_.T([_.y({is:"ytd-topic-channel-details-renderer",disableElementRegistration:!0})],kN);
_.r(kN,"ytd-topic-channel-details-renderer",function(){if(ZD6!==void 0)return ZD6;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-topic-channel-details-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-topic-channel-details-renderer">\n  <div id="channel-header-container" class="style-scope ytd-topic-channel-details-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-topic-channel-details-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n      <yt-img-shadow id="avatar" thumbnail="[[data.avatar]]" width="80" class="style-scope ytd-topic-channel-details-renderer"> </yt-img-shadow>\n      <div id="inner-header-container" class="style-scope ytd-topic-channel-details-renderer">\n        <h1 class="style-scope ytd-topic-channel-details-renderer">\n          <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-formatted-string>\n        </h1>\n        <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-formatted-string>\n      </div>\n    </a>\n    <div id="subscribe-button" class="style-scope ytd-topic-channel-details-renderer"></div>\n  </div>\n  <div id="tabs-container" hidden="[[!tabsEnabled]]" class="style-scope ytd-topic-channel-details-renderer">\n    <div id="tabs-inner-container" class="style-scope ytd-topic-channel-details-renderer">\n      <tp-yt-paper-tabs id="tabs" noink="" remove-idle-scroll-buttons="true" scrollable="" selected="[[selected]]" on-iron-activate="onTabsActive" class="style-scope ytd-topic-channel-details-renderer">\n        <yt-tab-group-shape shape="[[tabGroupShape]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-tab-group-shape>\n      </tp-yt-paper-tabs>\n    </div>\n  </div>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return ZD6=F},{mode:1});var X1F;var AZ=function(){var F=_.n.apply(this,arguments)||this;F.disableGridStateAware=!1;return F};
_.k(AZ,_.n);AZ.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{topicChannelDetailsRenderer:{component:"ytd-topic-channel-details-renderer",properties:{disableGridStateAware:"[[disableGridStateAware]]",tabs:"[[tabs]]"}},carouselItemRenderer:{component:"ytd-carousel-item-renderer",attributes:{"has-animation":!0},properties:{disableGridStateAware:"[[disableGridStateAware]]"}}}}}};
AZ.prototype.activeChanged=function(){this.carousel&&(this.carousel.active=this.active)};
AZ.prototype.updateCssVars=function(){_.V9(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.dV("rich_grid_max_item_width",500))+16)-16+"px"})};
AZ.prototype.updateCssVars=AZ.prototype.updateCssVars;AZ.prototype.activeChanged=AZ.prototype.activeChanged;_.T([_.J(_.y_.YtdGuideStateAwareBehavior),_.Y("design:type",Object)],AZ.prototype,"ytdGuideStateAwareBehavior",void 0);_.T([_.J(_.am),_.Y("design:type",Object)],AZ.prototype,"ytdReduxBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],AZ.prototype,"ytRendererBehavior",void 0);
_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],AZ.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],AZ.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Array)],AZ.prototype,"tabs",void 0);_.T([_.O(),_.Y("design:type",Boolean)],AZ.prototype,"active",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],AZ.prototype,"disableGridStateAware",void 0);
_.T([_.O({selector:_.Hz}),_.Y("design:type",Number)],AZ.prototype,"richGridItemsPerRow",void 0);_.T([_.O({selector:_.XD}),_.Y("design:type",Boolean)],AZ.prototype,"richGridMiniMode",void 0);_.T([_.gQ("ytd-carousel-item-renderer"),_.Y("design:type",Object)],AZ.prototype,"carousel",void 0);_.T([_.ea("active"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],AZ.prototype,"activeChanged",null);
_.T([_.ea("richGridItemsPerRow","richGridMiniMode"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],AZ.prototype,"updateCssVars",null);AZ=_.T([_.y({disableElementRegistration:!0,is:"ytd-carousel-header-renderer"})],AZ);
_.r(AZ,"ytd-carousel-header-renderer",function(){if(X1F!==void 0)return X1F;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-carousel-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-carousel-header-renderer"></div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return X1F=F},{mode:1});var HD6;var PQw=_.Fc(["https://www.google-analytics.com/analytics.js"]),s7=function(){var F=_.n.apply(this,arguments)||this;F.scriptAnalyticsAdded=!1;return F};
_.k(s7,_.n);s7.prototype.dataChanged=function(){this.data&&this.data.analyticsId&&this.sendGoogleAnalyticsPageview(this.data.analyticsId);var F,W=(F=this.data)==null?void 0:F.tagManagerId;W&&(_.xE(W,_.b0("GL")),WdP(W))};
s7.prototype.sendGoogleAnalyticsPageview=function(F){this.scriptAnalyticsAdded||this.appendAnalyticsScript();window.ga=window.ga||function(){var E=_.Dd.apply(0,arguments);(window.ga.q=window.ga.q||[]).push(E)};
var W=window.ga;W("set","page",window.location.pathname);W.l=+new Date;W("set","forceSSL",!0);W("create",F,"'auto'");W("send","pageview")};
s7.prototype.appendAnalyticsScript=function(){this.scriptAnalyticsAdded=!0;var F=_.Cr("SCRIPT");F.name="ga-analytics";var W=_.mv(PQw);_.nu(F,W);F.async=!0;_.Z(this.hostElement).appendChild(F)};
s7.prototype.dataChanged=s7.prototype.dataChanged;_.T([_.O(),_.Y("design:type",Object)],s7.prototype,"data",void 0);_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],s7.prototype,"dataChanged",null);s7=_.T([_.y({disableElementRegistration:!0,is:"ytd-channel-metadata-renderer"})],s7);
_.r(s7,"ytd-channel-metadata-renderer",function(){if(HD6!==void 0)return HD6;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.trackingImageUrl]]" class="style-scope ytd-channel-metadata-renderer">\n  <img src$="[[data.trackingImageUrl]]" border="0" width="1" height="1" alt="" class="style-scope ytd-channel-metadata-renderer">\n</template>\n<template is="dom-if" if="[[data.channelConversionUrl]]" class="style-scope ytd-channel-metadata-renderer">\n  <img src$="[[data.channelConversionUrl]]" border="0" width="1" height="1" alt="" class="style-scope ytd-channel-metadata-renderer">\n</template>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return HD6=F},{mode:1});var JSw;var axx;var L9=function(){return _.n.apply(this,arguments)||this};
_.k(L9,_.n);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],L9.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],L9.prototype,"data",void 0);L9=_.T([_.y({is:"ytd-sub-feed-option-renderer",disableElementRegistration:!0})],L9);
_.r(L9,"ytd-sub-feed-option-renderer",function(){if(axx!==void 0)return axx;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sub-feed-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-sub-feed-option-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" tabindex="-1">\n  <tp-yt-paper-radio-button checked="[[data.isSelected]]" class="style-scope ytd-sub-feed-option-renderer">\n    <yt-formatted-string text="[[data.name]]" class="style-scope ytd-sub-feed-option-renderer"></yt-formatted-string>\n  </tp-yt-paper-radio-button>\n</a>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return axx=F},{mode:1});var fx6;var qK=function(){return _.n.apply(this,arguments)||this};
_.k(qK,_.n);qK.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{subFeedOptionRenderer:{component:"ytd-sub-feed-option-renderer",noInjection:!0}}}}};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],qK.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],qK.prototype,"ytRendererStamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],qK.prototype,"data",void 0);qK=_.T([_.y({is:"ytd-sub-feed-selector-renderer",disableElementRegistration:!0})],qK);
_.r(qK,"ytd-sub-feed-selector-renderer",function(){if(fx6!==void 0)return fx6;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sub-feed-selector-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h2 id="title" class="style-scope ytd-sub-feed-selector-renderer">\n   [[getSimpleString(data.title)]]\n</h2>\n<div id="options" class="style-scope ytd-sub-feed-selector-renderer"></div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return fx6=F},{mode:1});var $N=function(){return _.n.apply(this,arguments)||this};
_.k($N,_.n);
$N.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{buttonRenderer:{component:"ytd-button-renderer",noInjection:!0},searchBoxRenderer:{component:"ytd-search-box-renderer",noInjection:!0},subFeedSelectorRenderer:{component:"ytd-sub-feed-selector-renderer",noInjection:!0},toggleButtonRenderer:{component:"ytd-toggle-button-renderer",noInjection:!0},compactLinkRenderer:{component:"ytd-compact-link-renderer",noInjection:!0},eomSettingsDisclaimerRenderer:{component:"ytd-eom-settings-disclaimer-renderer",noInjection:!0}}}}};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],$N.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],$N.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],$N.prototype,"data",void 0);$N=_.T([_.y({is:"ytd-browse-feed-actions-renderer",disableElementRegistration:!0})],$N);
_.r($N,"ytd-browse-feed-actions-renderer",function(){if(JSw!==void 0)return JSw;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-browse-feed-actions-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-browse-feed-actions-renderer"></div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return JSw=F},{mode:1});var ODK;var bDO;var Zk=function(){return _.n.apply(this,arguments)||this};
_.k(Zk,_.n);Zk.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Zk.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],Zk.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],Zk.prototype,"data",void 0);Zk=_.T([_.y({is:"ytd-mini-channel-renderer",disableElementRegistration:!0})],Zk);
_.r(Zk,"ytd-mini-channel-renderer",function(){if(bDO!==void 0)return bDO;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-mini-channel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="channel-info" class="yt-simple-endpoint style-scope ytd-mini-channel-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" rel$="[[computeNofollow_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <yt-img-shadow height="24" thumbnail="[[data.thumbnail]]" width="24" class="style-scope ytd-mini-channel-renderer">\n  </yt-img-shadow>\n  <span class="title style-scope ytd-mini-channel-renderer">[[getSimpleString(data.title)]]</span>\n</a>\n\n<div id="subscribe" class="style-scope ytd-mini-channel-renderer"></div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return bDO=F},{mode:1});var lxx;var X_=function(){return _.n.apply(this,arguments)||this};
_.k(X_,_.n);X_.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{miniChannelRenderer:"ytd-mini-channel-renderer"}}}};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],X_.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],X_.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],X_.prototype,"data",void 0);X_=_.T([_.y({disableElementRegistration:!0,is:"ytd-vertical-channel-section-renderer"})],X_);
_.r(X_,"ytd-vertical-channel-section-renderer",function(){if(lxx!==void 0)return lxx;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-vertical-channel-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h2 id="title" class="style-scope ytd-vertical-channel-section-renderer">[[data.title]]</h2>\n<div id="items" class="style-scope ytd-vertical-channel-section-renderer"></div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return lxx=F},{mode:1});var Hx=function(){return _.n.apply(this,arguments)||this};
_.k(Hx,_.n);Hx.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{verticalChannelSectionRenderer:{component:"ytd-vertical-channel-section-renderer",noInjection:!0}}}}};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Hx.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],Hx.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],Hx.prototype,"data",void 0);Hx=_.T([_.y({is:"ytd-browse-secondary-contents-renderer",disableElementRegistration:!0})],Hx);
_.r(Hx,"ytd-browse-secondary-contents-renderer",function(){if(ODK!==void 0)return ODK;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-browse-secondary-contents-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-browse-secondary-contents-renderer">\n</div>');F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);
return ODK=F},{mode:1});var n0K;var Px=function(){var F=_.n.apply(this,arguments)||this;F.actionMap={"yt-replace-feed-content-action":"onReplaceFeedContentAction"};F.notActive=!1;F.isConstrainedList=!1;return F};
_.k(Px,_.n);_.N=Px.prototype;
_.N.configureRendererStamper=function(){return{content:{id:"primary",mapping:{richGridRenderer:{component:"ytd-rich-grid-renderer"},sectionListRenderer:{component:"ytd-section-list-renderer",properties:{initialCount:"[[initialCount]]",pageSubtype:"[[pageSubtype]]",isConstrainedList:"[[isConstrainedList]]",responsiveSizing:"[[responsiveSizing]]"},matcher:function(F){var W;return(F==null?void 0:(W=F.webComponentHint)==null?void 0:W.componentVersion)==="WEB_COMPONENT_VERSION_SHARED"?"yt-section-list-renderer":
"ytd-section-list-renderer"}}}},
"data.secondaryContents":{id:"secondary",mapping:{browseFeedActionsRenderer:{component:"ytd-browse-feed-actions-renderer",noInjection:!0},browseSecondaryContentsRenderer:{component:"ytd-browse-secondary-contents-renderer",noInjection:!0},profileColumnRenderer:{component:"ytd-profile-column-renderer",noInjection:!0}}}}};
_.N.getPath=function(F,W){var E="data.tabs.#"+W+".";F.tabs[W].tabRenderer?E+="tabRenderer.":F.tabs[W].expandableTabRenderer&&(E+="expandableTabRenderer.");return E+"content.sectionListRenderer"};
_.N.computeDisplayedContent=function(F){this.unlinkPaths("content");if(F&&F.tabs)for(var W=F.tabs.length,E=0;E<W;E++){var h=F.tabs[E].tabRenderer||F.tabs[E].expandableTabRenderer;if(h.selected&&h.content)return this.linkPaths("content",this.getPath(F,E)),h.content}return null};
_.N.computeHasSecondaryColumnData=function(F){return!!F&&!!F.secondaryContents};
_.N.onRetrieveLocation=function(F,W){W.locationRetrieved(W.hasComments?"/comment_service_ajax?action_get_comments=1&pbj=1":"/browse_ajax",void 0);F.stopPropagation()};
_.N.onYtServiceRequestSent=function(F,W){_.c("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(W)};
_.N.onYtServiceRequestCompleted=function(F,W){_.c("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(W)};
_.N.onReplaceFeedContentAction=function(F){if(!_.c("replace_feed_content_action_killswitch")&&!this.notActive){var W;(F=(W=_.D(F,Mxg))==null?void 0:W.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(F)}};
_.N.handleServiceRequestActions=function(F){if(F=F.actions){F=_.U(F);for(var W=F.next();!W.done;W=F.next()){W=W.value;var E=void 0;((E=_.D(W,Mxg))==null?0:E.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(_.D(W,Mxg).items)}}};
Px.prototype.onYtServiceRequestCompleted=Px.prototype.onYtServiceRequestCompleted;Px.prototype.onYtServiceRequestSent=Px.prototype.onYtServiceRequestSent;Px.prototype.onRetrieveLocation=Px.prototype.onRetrieveLocation;_.T([_.J(_.lU),_.Y("design:type",Object)],Px.prototype,"ytdGridStateAwareBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],Px.prototype,"ytRendererstamperBehavior",void 0);
_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],Px.prototype,"ytActionHandlerBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Px.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],Px.prototype,"data",void 0);_.T([_.O({computed:"computeDisplayedContent(data)"}),_.Y("design:type",Object)],Px.prototype,"content",void 0);
_.T([_.O({computed:"computeHasSecondaryColumnData(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],Px.prototype,"hasSecondaryColumnData",void 0);_.T([_.O({value:function(){return window.outerHeight>1024?3:2}}),
_.Y("design:type",Number)],Px.prototype,"initialCount",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",String)],Px.prototype,"pageSubtype",void 0);_.T([_.gQ("ytd-section-list-renderer"),_.Y("design:type",Object)],Px.prototype,"listRenderer",void 0);_.T([_.O(),_.Y("design:type",Object)],Px.prototype,"notActive",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],Px.prototype,"isConstrainedList",void 0);
_.T([_.O(),_.Y("design:type",String)],Px.prototype,"responsiveSizing",void 0);_.T([_.R4("yt-retrieve-location"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],Px.prototype,"onRetrieveLocation",null);_.T([_.R4("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.nQ]),_.Y("design:returntype")],Px.prototype,"onYtServiceRequestSent",null);
_.T([_.R4("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.uz]),_.Y("design:returntype")],Px.prototype,"onYtServiceRequestCompleted",null);Px=_.T([_.y({disableElementRegistration:!0,is:"ytd-two-column-browse-results-renderer"})],Px);
_.r(Px,"ytd-two-column-browse-results-renderer",function(){if(n0K!==void 0)return n0K;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-two-column-browse-results-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="primary" class="style-scope ytd-two-column-browse-results-renderer"></div>\n<div id="secondary" class="style-scope ytd-two-column-browse-results-renderer">\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return n0K=F},{mode:2});var yS6;var jh6;var JZ=function(){var F=_.n.apply(this,arguments)||this;F.closeOnDismissButton=new Set(["ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN","ALERT_WITH_ACTIONS_DISMISS_STRATEGY_ON_LINK_TAP","ALERT_WITH_ACTIONS_DISMISS_STRATEGY_ONLY_DISMISS_BUTTON_TAP"]);F.closeOnAcceptButton=new Set(["ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN","ALERT_WITH_ACTIONS_DISMISS_STRATEGY_ON_LINK_TAP","ALERT_WITH_ACTIONS_DISMISS_STRATEGY_ONLY_ACTION_BUTTON_TAP"]);F.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};
return F};
_.k(JZ,_.n);_.N=JZ.prototype;_.N.attached=function(){this.requestElementsPerRow()};
_.N.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{"on-tap":"[[dismissBoundButtonTap_]]"}}}},"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{"on-tap":"[[acceptBoundButtonTap_]]"}}}}}};
_.N.onUpdateElementsPerRowAction=function(F){F&&this.elementsPerRow!==F&&(this.elementsPerRow=F)};
_.N.dismissButtonTap_=function(){this.set("data.isVisible",!this.closeOnDismissButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.N.acceptButtonTap_=function(){this.set("data.isVisible",!this.closeOnAcceptButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.N.computeAlertStyle_=function(F){return F};
_.N.observerElementsPerRow=function(){this.elementsPerRow&&_.V9(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow})};
_.N.onIsVisibleChanged_=function(){this.data&&!this.data.isVisible&&this.ytRendererBehavior.impressionLog()};
_.N.requestElementsPerRow=function(){_.hF(this.hostElement,"yt-request-elements-per-row")};
JZ.prototype.onIsVisibleChanged_=JZ.prototype.onIsVisibleChanged_;JZ.prototype.observerElementsPerRow=JZ.prototype.observerElementsPerRow;_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],JZ.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],JZ.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],JZ.prototype,"actionHandlerBehavior",void 0);
_.T([_.O(),_.Y("design:type",Object)],JZ.prototype,"data",void 0);_.T([_.O({value:6,reflectToAttribute:!0}),_.Y("design:type",Number)],JZ.prototype,"elementsPerRow",void 0);_.T([_.O({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],JZ.prototype,"wrapButtons",void 0);_.T([_.O({value:_.b0("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.Y("design:type",Boolean)],JZ.prototype,"isMusic",void 0);
_.T([_.O({reflectToAttribute:!0,computed:"computeAlertStyle_(data.alertType.type)"}),_.Y("design:type",String)],JZ.prototype,"alertStyle",void 0);_.T([_.O({value:function(){return this.dismissButtonTap_.bind(this)}}),
_.Y("design:type",Function)],JZ.prototype,"dismissBoundButtonTap_",void 0);_.T([_.O({value:function(){return this.acceptButtonTap_.bind(this)}}),
_.Y("design:type",Function)],JZ.prototype,"acceptBoundButtonTap_",void 0);_.T([_.ea("elementsPerRow"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],JZ.prototype,"observerElementsPerRow",null);_.T([_.ea("data.isVisible"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],JZ.prototype,"onIsVisibleChanged_",null);JZ=_.T([_.$3({is:"yt-alert-with-actions-renderer",disableElementRegistration:!0})],JZ);
_.r(JZ,"yt-alert-with-actions-renderer",function(){if(jh6===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-alert-with-actions-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_alert_with_actions_renderer.yt.alert.with.actions.renderer.css.js--\x3e<div id="content-wrapper" hidden="[[!data.isVisible]]" class="style-scope yt-alert-with-actions-renderer">\n  <div id="content" class="style-scope yt-alert-with-actions-renderer">\n    <yt-icon id="icon" hidden="[[!data.icon]]" icon="[[data.icon.iconType]]" class="style-scope yt-alert-with-actions-renderer"></yt-icon>\n    <div id="text-content" class="style-scope yt-alert-with-actions-renderer">\n      <yt-formatted-string id="title" hidden$="[[!!data.title]]" text="[[data.title]]" class="style-scope yt-alert-with-actions-renderer"></yt-formatted-string>\n      <yt-formatted-string id="alert-message" text="[[data.alertMessage]]" class="style-scope yt-alert-with-actions-renderer"></yt-formatted-string>\n    </div>\n  </div>\n  <div id="actions" class="style-scope yt-alert-with-actions-renderer">\n    <div id="dismiss-button" hidden$="[[!!data.dismissButton]]" class="style-scope yt-alert-with-actions-renderer"></div>\n    <div id="action-buttons" hidden$="[[!!data.actionButtons]]" class="style-scope yt-alert-with-actions-renderer"></div>\n  </div>\n</div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);var W=F.content,E=W.insertBefore;yS6===void 0&&(yS6=document.createElement("template"));var h=yS6;E.call(W,h.content.cloneNode(!0),F.content.firstChild);jh6=F}F=jh6;return F},{mode:2});_.pK(_.GK(function(F){function W(l){var w={};return _.z(_.Ab,{text:l,className:_.ec("ytPersonalGreetingViewModelHeadline",(w.ytPersonalGreetingViewModelHeadlineSmall=function(){return M()===48},w))})}
function E(l,w){return _.z("span",{el:l,class:"ytPersonalGreetingViewModelHeadlineInvisible","aria-hidden":"true"},W(w))}
var h=_.uf(),d=_.uf(),V=_.uf(),R=function(){return F.data().canvasPromoData},M=function(){var l;
return(l=F.data().bannerHeight)!=null?l:56},g=_.U(_.g$({content:""},void 0,"rcUSic")),t=g.next().value,C=g.next().value,B=_.Zlr(h,{throttleMs:100}),I=_.Zlr(d,{throttleMs:100}),x=_.Zlr(V,{throttleMs:100});
g=_.U(_.g$(!0,void 0,"b0Yv9d"));var A=g.next().value,X=g.next().value;g=_.U(_.g$(!0,void 0,"ByEGnd"));var P=g.next().value,b=g.next().value;_.q6(function(){b(I.width()-B.width()>1);X(x.width()+(F.data().avatar?48:0)-B.width()>1);C(A()?F.data().shorterGreeting:F.data().greeting)},"nSIsDe");
_.Sb(h,function(){var l;return(l=F.data())==null?void 0:l.rendererContext},void 0,void 0,void 0,!0);
return _.z("yt-personal-greeting-view-model",{el:h,"aria-hidden":function(){return P()},
class:_.ec(F.className,"ytPersonalGreetingViewModelHost"),style:_.vr({height:(0,_.LR)(function(){return P()?0:M()})})},_.z(_.v,{cond:function(){return F.data().avatar&&!A()},
then:function(){return _.z(_.a6,{data:function(){return F.data().avatar}},{decoratedAvatarViewModel:function(l){return _.z(_.sc,{data:l.data,
className:_.ec("ytPersonalGreetingViewModelAvatar")})}})}}),_.z("h1",null,W(function(){var l;
return(R==null?void 0:(l=R())==null?void 0:l.headline)||t()})),E(V,function(){return F.data().greeting}),E(d,function(){return F.data().shorterGreeting}))},"yi"),"yt-personal-greeting-view-model",{props:{data:_.TS,
className:_.TS}});var aN=function(){var F=_.n.apply(this,arguments)||this;F.hidden=!1;F.isConstrainedList=!1;F.darkerDarkTheme=_.c("web_darker_dark_theme");F.responsiveSizing="COMPACT";F.attachedPlayers=_.c("kevlar_channel_trailer_multi_attach")?[]:void 0;F.player=null;F.actionMap={"yt-alert-command":"handleAlertCommand","yt-playlist-deletion-redirect-command":"handleYtPlaylistDeletionRedirect"};return F};
_.k(aN,_.n);_.N=aN.prototype;
_.N.configureRendererStamper=function(){return{mastheadAdData:{id:"masthead-ad",mapping:{bannerPromoRenderer:{component:"ytd-banner-promo-renderer",noInjection:!0},videoMastheadAdV3Renderer:{component:"ytd-video-masthead-ad-v3-renderer",noInjection:!0}},reuseComponents:!1},alertBannerData:{id:"alert-banner",mapping:{alertWithActionsRenderer:{component:"yt-alert-with-actions-renderer",noInjection:!0}}},greetingData:{id:"personal-greeting",mapping:{personalGreetingViewModel:{component:"yt-personal-greeting-view-model",properties:{className:"[[is]]"},
noInjection:!0}}},"data.alerts":{id:"alerts",mapping:{alertRenderer:{component:"yt-alert-renderer",noInjection:!0},unlimitedUserNotificationRenderer:{component:"yt-unlimited-user-notification-renderer",noInjection:!0},alertWithButtonRenderer:{component:"ytd-alert-with-button-renderer",noInjection:!0}},initialRenderPriority:3,waitForSignal:"eocs"},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:{component:"ytd-survey-trigger-renderer",noInjection:!0}},initialRenderPriority:3,waitForSignal:"eocs"},
"data.metadata":{id:"metadata",mapping:{channelMetadataRenderer:{component:"ytd-channel-metadata-renderer",noInjection:!0}}},"data.header":{id:"header",mapping:{pageHeaderRenderer:{component:"ytd-tabbed-page-header",properties:{active:"[[active]]",tabs:"[[data.contents.twoColumnBrowseResultsRenderer.tabs]]",isRichGrid:"[[richGrid]]",disableGridStateAware:"[[fluidWidth]]",disableHeaderFluidWidth:"[[disableHeaderFluidWidth]]",isConstrainedList:"[[isConstrainedList]]",responsiveSizing:"[[responsiveSizing]]"}},
interactiveTabbedHeaderRenderer:{component:"ytd-interactive-tabbed-header-renderer",properties:{active:"[[active]]",tabs:"[[data.contents.twoColumnBrowseResultsRenderer.tabs]]"},noInjection:!0},carouselHeaderRenderer:{component:"ytd-carousel-header-renderer",properties:{active:"[[active]]",disableGridStateAware:"[[fluidWidth]]",tabs:"[[data.contents.twoColumnBrowseResultsRenderer.tabs]]"},noInjection:!0},memberHubProfileRenderer:{component:"ytd-member-hub-profile-renderer",noInjection:!0}},events:!0},
"data.footer":{id:"footer",mapping:{pageFooterRenderer:{component:"ytd-page-footer-renderer",noInjection:!0}}}}};
_.N.created=function(){var F=this;this.ytRendererBehavior.monitorScroll=!0;this.ytPageBehavior.pageDisposeJobs=[function(){F.disposeMastheadAd()}]};
_.N.attached=function(){this.pageSubtype==="home"&&this.refresh&&this.contents&&(this.refreshGesture=new LdK(this.refresh,this.contents))};
_.N.detached=function(){this.tabGestures&&(this.tabGestures.detach(),this.tabGestures=void 0);this.refreshGesture&&(this.refreshGesture.detach(),this.refreshGesture=void 0)};
_.N.activeChanged=function(){var F=this.ytPageBehavior.active;this.header&&this.header.firstChild&&(this.header.firstChild.active=F)};
_.N.tabsChanged=function(){var F=this,W,E;if(this.pageSubtype==="channels"||_.c("kevlar_tab_gestures_for_tabbed_header_data")&&((W=this.data)==null?0:(E=W.header)==null?0:E.carouselHeaderRenderer))this.tabGestures=new Po(this.contents,this.contents,this.hostElement,this.header,function(R){F.ytdReduxBehavior.dispatch(R)});
var h,d,V;W=(h=this.data)==null?void 0:(d=h.contents)==null?void 0:(V=d.twoColumnBrowseResultsRenderer)==null?void 0:V.tabs;this.tabGestures&&this.tabGestures.tabsChanged(W)};
_.N.scrollAtTopChanged=function(){this.refreshGesture&&(this.scrollAtTop?this.refreshGesture.attach():this.refreshGesture.detach())};
_.N.engagementPanelsChanged=function(){var F=_.WZ().resolve(_.sL);if(F){if(this.engagementPanels)for(var W=_.U(this.engagementPanels),E=W.next();!E.done;E=W.next()){var h=void 0;(E=(h=E.value.identifier)==null?void 0:h.tag)&&F.panelMap.delete(E)}this.engagementPanels=[];var d;W=_.U(((d=this.data)==null?void 0:d.panels)||[]);for(d=W.next();!d.done;d=W.next()){d=_.D(d.value,_.dZu);var V=E=void 0,R=void 0,M=void 0;if(h=((E=d)==null?void 0:E.targetId)||((V=d)==null?void 0:V.panelIdentifier)||((R=d)==
null?void 0:(M=R.identifier)==null?void 0:M.tag))V=E=void 0,(V=(E=F).registerPanelContent)==null||V.call(E,h,{engagementPanelSectionListRenderer:d}),this.engagementPanels.push(d)}}};
_.N.onStampFinished=function(){var F=this;_.wT(this,function(){if(F.tabGestures){var W=F.tabGestures;if(W.scrollPositionNeedsUpdate){var E=_.WZ().resolve(_.Fd(_.KQ)),h;if((h=W.selectedTab)!=null&&h.title&&E&&(h=E.getCurrentPage())){if(W.scrollPositionForTabs.has(W.selectedTab.title)){var d,V;E=(V=(d=E.getCurrentPage())==null?void 0:d.clientHeight)!=null?V:0;d=W.scrollPositionForTabs.get(W.selectedTab.title);h.setScrollTop(d);E>d+100&&(W.scrollPositionNeedsUpdate=!1)}else h.setScrollTop(Math.min(W.lastVisitedTabScrollPosition!==
void 0?W.lastVisitedTabScrollPosition:Number.MAX_SAFE_INTEGER,W.tabsStartAtInPx)),W.scrollPositionNeedsUpdate=!1;W.ytdReduxDispatch(FdT(!1))}}}})};
_.N.loadPage_=function(F){this.initCsi();F&&(this.data=F);this.updateTitle(this.data);this.setMastheadAd(this.data)};
_.N.getTitle=function(F){if(this.pageSubtype=="home")return"";if(this.get("microformat.microformatDataRenderer.title",F))return this.get("microformat.microformatDataRenderer.title",F);if(this.get("header.feedTabbedHeaderRenderer.title",F))return _.Yr(this.get("header.feedTabbedHeaderRenderer.title",F));if(this.get("header.interactiveTabbedHeaderRenderer.title",F))return this.get("header.interactiveTabbedHeaderRenderer.title",F);if(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",
F))return _.Yr(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",F));var W,E;return _.c("enable_page_header_page_title")&&(F==null?0:(W=F.header)==null?0:(E=W.pageHeaderRenderer)==null?0:E.pageTitle)?F.header.pageHeaderRenderer.pageTitle:""};
_.N.updateTitle=function(F){_.hF(this.hostElement,"yt-update-title",this.getTitle(F))};
_.N.initCsi=function(){_.q8(this.pageSubtype||"browse",["ol","cpt"])};
_.N.getPlayer=function(){if(_.c("kevlar_channel_trailer_multi_attach")){for(var F=_.U(this.attachedPlayers),W=F.next();!W.done;W=F.next())if(W=W.value,W.isConnected||_.bg(this.hostElement,W))return W;return null}return this.player};
_.N.getPlayerContainer=function(){return null};
_.N.onPlayerAttached=function(F,W){_.c("kevlar_channel_trailer_multi_attach")?this.attachedPlayers.push(W):this.player=W};
_.N.onPlayerDetached=function(F,W){_.c("kevlar_channel_trailer_multi_attach")?(F=this.attachedPlayers.indexOf(W),F<0||this.attachedPlayers.splice(F,1)):this.player=null};
_.N.getServiceTrackingParams=function(){var F,W;return((F=this.data)==null?void 0:(W=F.responseContext)==null?void 0:W.serviceTrackingParams)||[]};
_.N.setMastheadAd=function(F){F&&F.mastheadAd&&(this.mastheadAdData=void 0);this.mastheadAdData=F&&F.mastheadAd};
_.N.dataChanged=function(){var F=this;this.refreshGesture&&this.refreshGesture.reset();this.get("filler",this.data)||_.lfK();_.wT(this,function(){_.Nc(F.hostElement,"ytd-update-grid-state-action")})};
_.N.disposeMastheadAd=function(){this.mastheadAdData=void 0};
_.N.computeAlertBannerData=function(){if(this.data&&this.data.alerts){var F=this.data.alerts;return F&&F.find(function(W){return!!W.alertWithActionsRenderer})}};
_.N.computeGreetingData=function(){if(this.data&&this.data.alerts){var F=this.data.alerts;return F&&F.find(function(W){return!!W.personalGreetingViewModel})}};
_.N.computeHasMemberHubProfileRenderer=function(F){var W;return!!(F==null?0:(W=F.header)==null?0:W.memberHubProfileRenderer)};
_.N.handleAlertCommand=function(F){this.get("alertCommand.alert.alertWithActionsRenderer",F)&&(F=_.D(F,gmK),this.data.alerts||this.set("data.alerts",[]),this.unshift("data.alerts",F.alert))};
_.N.handleYtPlaylistDeletionRedirect=function(F){F=this.get("playlistDeletionRedirectCommand.redirectEndpoint",F);_.hF(this.hostElement,"yt-navigate",{endpoint:F})};
_.N.computeFluidWidth=function(F,W,E){if(W==="mini_app"||E)return!0;var h,d,V;F=F==null?void 0:(h=F.contents)==null?void 0:(d=h.twoColumnBrowseResultsRenderer)==null?void 0:(V=d.tabs)==null?void 0:V.find(function(g){var t;return g==null?void 0:(t=g.tabRenderer)==null?void 0:t.selected});
if(!F)return!1;var R,M;return!!((R=F.tabRenderer)==null?0:(M=R.content)==null?0:M.richGridRenderer)&&!["channel","channels","playables"].includes(W)};
_.N.computeHeaderFluidWidth=function(F){return F==="hashtag-landing-page"};
_.N.computeHasSidebar=function(F){var W;return!!(F.sidebar||((W=F.header)==null?0:W.playlistHeaderRenderer))};
_.N.computeHasPageHeaderSidebar=function(F){var W,E;return!!((W=F.header)==null?0:(E=W.pageHeaderRenderer)==null?0:E.enableSidebarView)};
_.N.computeUseUnifiedShowPageLayout=function(F){if(!F||this.pageSubtype!=="show"||!F.sidebar||!F.sidebar.playlistSidebarRenderer)return!1;F=F.sidebar.playlistSidebarRenderer;if(!F.items)return!1;for(var W=0;W<F.items.length;W++)if(_.D(F.items[W],XT)){var E=void 0;return((E=_.D(F.items[W],XT))==null?void 0:E.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.N.computeIsConstrainedList=function(F){return _.c("web_enable_constrained_list_subscriptions_channels")&&F==="subscriptions-channels"};
_.N.computeResponsiveSizing=function(F){return F==="subscriptions-channels"?"STANDARD":"COMPACT"};
_.Sn.Object.defineProperties(aN.prototype,{usePlaylistHeaderRenderer:{configurable:!0,enumerable:!0,get:function(){var F,W;return((F=this.data)==null?0:(W=F.header)==null?0:W.playlistHeaderRenderer)?!0:!1}},
useOldPlaylistSidebarRenderer:{configurable:!0,enumerable:!0,get:function(){var F,W;if(!((F=this.data)==null?0:(W=F.sidebar)==null?0:W.playlistSidebarRenderer))return!1;var E;return(E=this.data)!=null&&E.header?!1:!0}}});
_.Sn.Object.defineProperties(aN,{template:{configurable:!0,enumerable:!0,get:function(){if(Zeq===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-browse--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="alert-banner" class="style-scope ytd-browse"></div>\n<div id="personal-greeting" class="style-scope ytd-browse"></div>\n<div id="masthead-ad" class="style-scope ytd-browse"></div>\n<div id="header" class="style-scope ytd-browse"></div>\n<div id="alerts" class="style-scope ytd-browse"></div>\n\n<ytd-channel-legal-info-renderer data="[[data.contents.twoColumnBrowseResultsRenderer.secondaryContents.browseSecondaryContentsRenderer.contents.0.channelLegalInfoRenderer]]" disable-upgrade$="[[!data.contents.twoColumnBrowseResultsRenderer.secondaryContents.browseSecondaryContentsRenderer.contents.0.channelLegalInfoRenderer]]" hidden="[[!data.contents.twoColumnBrowseResultsRenderer.secondaryContents.browseSecondaryContentsRenderer.contents.0.channelLegalInfoRenderer]]" class="style-scope ytd-browse">\n</ytd-channel-legal-info-renderer>\n<ytd-playlist-sidebar-renderer data="[[data.sidebar.playlistSidebarRenderer]]" disable-upgrade$="[[!useOldPlaylistSidebarRenderer]]" hidden="[[!useOldPlaylistSidebarRenderer]]" class="style-scope ytd-browse">\n</ytd-playlist-sidebar-renderer>\n<ytd-playlist-header-renderer data="[[data.header.playlistHeaderRenderer]]" disable-upgrade$="[[!usePlaylistHeaderRenderer]]" hidden="[[!usePlaylistHeaderRenderer]]" class="style-scope ytd-browse">\n</ytd-playlist-header-renderer>\n<ytd-settings-sidebar-renderer data="[[data.sidebar.settingsSidebarRenderer]]" disable-upgrade$="[[!data.sidebar.settingsSidebarRenderer]]" hidden="[[!data.sidebar.settingsSidebarRenderer]]" class="style-scope ytd-browse">\n</ytd-settings-sidebar-renderer>\n<template is="dom-if" if="[[hasPageHeaderSidebar]]" class="style-scope ytd-browse">\n    <yt-page-header-renderer class="page-header-sidebar style-scope ytd-browse" data="[[data.header.pageHeaderRenderer]]" display-as-sidebar="">\n    </yt-page-header-renderer>\n</template>\n<ytd-two-column-browse-results-renderer data="[[data.contents.twoColumnBrowseResultsRenderer]]" disable-grid-state-aware="[[fluidWidth]]" is-constrained-list="[[isConstrainedList]]" not-active="[[hidden]]" page-subtype="[[pageSubtype]]" responsive-sizing="[[responsiveSizing]]" class="style-scope ytd-browse">\n</ytd-two-column-browse-results-renderer>\n<div id="survey" class="style-scope ytd-browse"></div>\n<div id="metadata" class="style-scope ytd-browse"></div>\n<div id="footer" class="style-scope ytd-browse"></div>\n<ytd-refresh id="refresh" class="style-scope ytd-browse"></ytd-refresh>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);Zeq=F}F=Zeq;return F}}});
aN.prototype.dataChanged=aN.prototype.dataChanged;aN.prototype.onPlayerDetached=aN.prototype.onPlayerDetached;aN.prototype.onPlayerAttached=aN.prototype.onPlayerAttached;aN.prototype.onStampFinished=aN.prototype.onStampFinished;aN.prototype.engagementPanelsChanged=aN.prototype.engagementPanelsChanged;aN.prototype.scrollAtTopChanged=aN.prototype.scrollAtTopChanged;aN.prototype.tabsChanged=aN.prototype.tabsChanged;aN.prototype.activeChanged=aN.prototype.activeChanged;
_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],aN.prototype,"ytActionHandlerBehavior",void 0);_.T([_.J(_.Gf),_.Y("design:type",Object)],aN.prototype,"ytdOpenPopupBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],aN.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.am),_.Y("design:type",Object)],aN.prototype,"ytdReduxBehavior",void 0);_.T([_.J(_.$v.YtPageBehavior),_.Y("design:type",Object)],aN.prototype,"ytPageBehavior",void 0);
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],aN.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.y_.YtdGuideStateAwareBehavior),_.Y("design:type",Object)],aN.prototype,"ytdGuideStateAwareBehavior",void 0);_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],aN.prototype,"ytComponentBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],aN.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],aN.prototype,"hidden",void 0);
_.T([_.O(),_.Y("design:type",Object)],aN.prototype,"mastheadAdData",void 0);_.T([_.O({readOnly:!0,computed:"computeAlertBannerData(data.alerts.*)"}),_.Y("design:type",Object)],aN.prototype,"alertBannerData",void 0);_.T([_.O({readOnly:!0,computed:"computeGreetingData(data.alerts.*)"}),_.Y("design:type",Object)],aN.prototype,"greetingData",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",String)],aN.prototype,"pageSubtype",void 0);
_.T([_.O({reflectToAttribute:!0,computed:"computeHasMemberHubProfileRenderer(data)"}),_.Y("design:type",Boolean)],aN.prototype,"hasMemberHubProfileRenderer",void 0);_.T([_.O({computed:"computeHasSidebar(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],aN.prototype,"hasSidebar",void 0);_.T([_.O({computed:"computeHasPageHeaderSidebar(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],aN.prototype,"hasPageHeaderSidebar",void 0);
_.T([_.O({reflectToAttribute:!0,value:!0}),_.Y("design:type",Boolean)],aN.prototype,"roundedContainer",void 0);_.T([_.O({computed:"computeUseUnifiedShowPageLayout(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],aN.prototype,"useUnifiedShowPageLayout",void 0);_.T([_.O({computed:"computeIsConstrainedList(pageSubtype)"}),_.Y("design:type",Object)],aN.prototype,"isConstrainedList",void 0);
_.T([_.a("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],aN.prototype,"usePlaylistHeaderRenderer",null);_.T([_.a("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],aN.prototype,"useOldPlaylistSidebarRenderer",null);_.T([_.O({computed:"computeFluidWidth(data, pageSubtype, isConstrainedList)"}),_.Y("design:type",Boolean)],aN.prototype,"fluidWidth",void 0);_.T([_.O({selector:function(F){return F.ui.scrollAtTop}}),
_.Y("design:type",Boolean)],aN.prototype,"scrollAtTop",void 0);_.T([_.O({selector:_.bLg}),_.Y("design:type",Boolean)],aN.prototype,"tabGesturesIsActive",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],aN.prototype,"darkerDarkTheme",void 0);_.T([_.O({reflectToAttribute:!0,computed:"computeHeaderFluidWidth(pageSubtype)"}),_.Y("design:type",Boolean)],aN.prototype,"disableHeaderFluidWidth",void 0);
_.T([_.O({reflectToAttribute:!0,computed:"computeResponsiveSizing(pageSubtype)"}),_.Y("design:type",String)],aN.prototype,"responsiveSizing",void 0);_.T([_.gQ("ytd-two-column-browse-results-renderer"),_.Y("design:type",HTMLElement)],aN.prototype,"contents",void 0);_.T([_.gQ("#header"),_.Y("design:type",HTMLElement)],aN.prototype,"header",void 0);_.T([_.gQ("ytd-refresh"),_.Y("design:type",Object)],aN.prototype,"refresh",void 0);
_.T([_.ea("active"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],aN.prototype,"activeChanged",null);_.T([_.ea("data.contents.twoColumnBrowseResultsRenderer.tabs"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],aN.prototype,"tabsChanged",null);_.T([_.ea("scrollAtTop"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],aN.prototype,"scrollAtTopChanged",null);
_.T([_.O(),_.Y("design:type",Object)],aN.prototype,"engagementPanels",void 0);_.T([_.ea("data.panels"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],aN.prototype,"engagementPanelsChanged",null);_.T([_.R4("yt-rendererstamper-finished"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],aN.prototype,"onStampFinished",null);
_.T([_.R4("yt-player-attached"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Element]),_.Y("design:returntype")],aN.prototype,"onPlayerAttached",null);_.T([_.R4("yt-player-detached"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Element]),_.Y("design:returntype")],aN.prototype,"onPlayerDetached",null);_.T([_.Cz("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],aN.prototype,"dataChanged",null);
aN=_.T([_.y({is:"ytd-browse"})],aN);_.ZW.registerService(_.NKo,aN);
_.Hb();
}catch(e){_._DumpException(e)}
try{
_.Xg("kevlar_main_module");
/*

 QRCode for JavaScript

 Copyright (c) 2009 Kazuhiko Arase

 URL: http://www.d-project.com/

 Licensed under the MIT license:
   http://www.opensource.org/licenses/mit-license.php

 The word "QR Code" is registered trademark of
 DENSO WAVE INCORPORATED
   http://www.denso-wave.com/qrcode/faqpatent-e.html
*/
var NE=function(F){if(!F)return"browse";var W=F.page,E=F.url,h,d,V,R=(h=F.response)==null?void 0:(d=h.responseContext)==null?void 0:(V=d.webResponseContextExtensionData)==null?void 0:V.pageTheme;if(R)W=R.toLowerCase().replace(/_/g,"-");else if(W!=="watch"&&W!=="learning_journey_watch"){var M,g;if((W==="browse"||W==="settings")&&((M=F.response)==null?0:(g=M.sidebar)==null?0:g.settingsSidebarRenderer))W="WEB_PAGE_TYPE_SETTINGS";else{var t,C;W==="browse"&&((t=F.response)==null?0:(C=t.metadata)==null?
0:C.channelMetadataRenderer)?W="channel":E&&(W=_.tg(E)||W)}}return W},GCK=function(){var F=_.ju("yt.aba.att");
return F?F:_.K_.instance!==void 0?_.K_.instance.xQu.bind(_.K_.instance):null},YJ8=function(F,W){var E;
return _.e(function(h){return(E=GCK())?h.return(E(F,W,6E4)):h.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})},wZO=function(F,W,E,h,d){W=W===void 0?[]:W;
d=d?{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:d}]}}:void 0;return{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.Wz(F),dialogMessages:W.map(function(V){return _.Wz(V)}),
confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.Wz(E),serviceEndpoint:d}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.Wz(h)}}}}}},udT=function(F){var W=!!_.o0().queueProxy;
var E,h,d;F=F==null?void 0:(E=F.response)==null?void 0:(h=E.currentVideoEndpoint)==null?void 0:(d=h.watchEndpoint)==null?void 0:d.playlistId;return!(!W&&!F)},SJT=function(F,W){var E=_.DT();
if(udT(F))return E.playlistWatchPageActivation=!0;switch(NE(W)){case "yts-products":return E.productDetailsPageActivation=!0;case "mini_app":return E.miniAppPageActivation=!0;case "playables":return E.playablesDestPageActivation=!0;default:return!1}},pZq=function(F,W,E){for(var h=typeof F==="string"?F.split(""):F,d=F.length-1;d>=0;--d)d in h&&W.call(E,h[d],d,F)},m06=function(F,W){W=_.vWS(F,W);
W>=0&&_.YW(F,W)},KeO=function(F){return Array.prototype.concat.apply([],arguments)},FFF=function(F){var W=0;
W=W===void 0?0:W;if(!_.cT(F))throw _.D_("uint64");var E=typeof F;switch(W){case 512:switch(E){case "string":return _.MHG(F);case "bigint":return String((0,_.Oq)(64,F));default:return _.Rub(F)}case 1024:switch(E){case "string":return _.gBI(F);case "bigint":return _.mX((0,_.Oq)(64,F));default:return _.euW(F)}case 0:switch(E){case "string":return _.MHG(F);case "bigint":return _.mX((0,_.Oq)(64,F));default:return _.UUR(F)}default:return _.RO(W,"Unknown format requested type for int64")}},WFg=function(F){F!=
null&&(F=F.JSC$6716_value_||"",F=typeof F==="string"?F:new Uint8Array(F));
return F},E7O=function(F){for(var W=_.Dd.apply(1,arguments),E=F[0],h=0;h<F.length-1;h++)E+=String(W[h]),E+=F[h+1];
W=document.implementation.createHTMLDocument("");h=W.createElement("style");W.head.appendChild(h);W=h.sheet;W.insertRule(E,0);if(W.cssRules.length===1&&(E=W.cssRules[0],E instanceof CSSStyleRule))return new _.rU(E.cssText.replace(/</g,"\\3C "))},ho8=function(F,W){if(/-[a-z]/.test(W))return null;
if(_.rPp&&F.dataset){if(_.Rrr()&&!(W in F.dataset))return null;F=F.dataset[W];return F===void 0?null:F}return F.getAttribute("data-"+_.Cg(W))},NeK=function(){var F=d1K;
_.ju("yt.ads.biscotti.getId_")||_.S5("yt.ads.biscotti.getId_",F)},VQT=function(F){_.S5("yt.ads.biscotti.lastId_",F)},Rog=function(){var F={};
for(_.$C=new U1F(F.handleError===void 0?_.fn:F.handleError,F.logEvent===void 0?_.Pc:F.logEvent);_.ZJ.length>0;)switch(F=_.ZJ.shift(),F.type){case "ERROR":_.$C.logError(F.payload);break;case "EVENT":_.$C.logEvent(F.eventType,F.payload)}},eou=function(F,W,E){return _.lUI(function(h){return E?h.userIdentifier!==void 0&&!F.includes(h.userIdentifier)&&E.includes(h.publicName):h.userIdentifier!==void 0&&!F.includes(h.userIdentifier)},W)},MQq=function(F){var W,E;
return _.e(function(h){if(h.nextAddress==1)return W=_.cZ("YtIdbMeta hasAnyMeta other"),_.Q(h,_.lUI(function(d){return d.userIdentifier!==void 0&&d.userIdentifier!==W},F),2);
E=h.yieldResult;return h.return(E.length>0)})},Qr6=function(F,W){g7K||(g7K=_.P0.addLowPriorityJob(function(){var E,h,d,V,R;
return _.e(function(M){switch(M.nextAddress){case 1:return _.Q(M,_.pU(),2);case 2:E=M.yieldResult;if(!E)return M.return();h=!0;_.Nl(M,3);return _.Q(M,eou(F,E,W),5);case 5:d=M.yieldResult;if(!d.length){h=!1;M.jumpTo(6);break}V=d[0];return _.Q(M,_.rV(V.actualName),7);case 7:return _.Q(M,_.GC(V.actualName,E),6);case 6:_.id(M,4);break;case 3:R=_.Ml(M),_.Xd(R),h=!1;case 4:_.P0.cancelJob(g7K),g7K=0,h&&Qr6(F,W),_.gG(M)}})}))},zo$=function(){var F;
return _.e(function(W){return W.nextAddress==1?_.Q(W,_.pU(),2):(F=W.yieldResult)?W.return(MQq(F)):W.return(!1)})},tQP=function(F){var W=100;
W=W===void 0?500:W;var E,h,d,V,R,M;return _.e(function(g){return g.nextAddress==1?(E=_.b0("INNERTUBE_CONTEXT_CLIENT_NAME",0),h=[E,(0,_.KU)()-2592E6],d=[E,(0,_.KU)()],V=IDBKeyRange.bound(h,d),_.Q(g,_.MRb(F),2)):g.nextAddress!=3?(R=g.yieldResult,M=[],_.Q(g,_.oA(R,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(t){M.length=0;return _.FH(t.objectStore("SWHealthLog").index("swHealthNewRequest"),{query:V,direction:"prev"},function(C){if(C.getValue()&&M.length<W)return M.push(C.getValue()),
C.delete().then(function(){return C.continue()})})}),3)):g.return(M)})},CYP=function(){var F;
return _.e(function(W){if(W.nextAddress==1)return _.Q(W,_.pU(),2);F=W.yieldResult;if(!F||!_.DJ()&&!_.c("nwl_init_require_datasync_id_killswitch")||!_.XBY())return W.jumpTo(0);_.Pbk=!0;_.Hfo.isNwlInitialized=_.Pbk;return _.Q(W,_.pcc().awaitInitialization(),0)})},V6=function(F,W){_.wBo[F]=!0;
var E=_.d3();E&&E.publish.apply(E,arguments);_.wBo[F]=!1},v7$=function(){if(_.Lfo()&&!Beg){var F=function(E){E=E.data;
if(E.op==="serializedGelBatch"){var h=_.umb.get(E.key);h&&(_.pme(E.serializedBatch,h.client,h.resolve,h.networklessOptions,h.isIsolated,h.useVSSEndpoint,h.dangerousLogToVisitorSession,h.requestsOutstanding),_.umb.delete(E.key))}},W=_.sxI();
W&&(W.addEventListener("message",F),W.onerror=function(){_.umb.clear()});
Beg=!0}},Uo=function(){this.relativeTimeStart_=_.e2()},IpO=function(F,W){F!=null&&this.append.apply(this,arguments)},cHx=function(){return _.Og("SLI_NAME_YOUTUBE_WEB_YT_GUIDE_DATA_PRESENT","GUIDE_DATA_PRESENT",6E4,"FAILURE")},D1N=function(F,W,E){E=E===void 0?!1:E;
var h,d,V,R,M;return _.e(function(g){switch(g.nextAddress){case 1:_.vZ("SOCS",F,34128E3,"youtube.com",!0);if(_.IZ)return d=fetch(W,{method:"POST",mode:_.r8(W),credentials:_.iI(W),cache:"no-store",headers:{"Content-Type":"text/plain"}}).catch(function(){}),V=fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",
mode:_.r8("/upgrade_visitor_cookie?eom=1"),credentials:_.iI("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),_.Q(g,Promise.all([d,V]).then(function(t){return t[1]}),5);
fetch(W,{method:"POST",mode:_.r8(W),credentials:_.iI(W),cache:"no-store",headers:{"Content-Type":"text/plain"}});return _.Q(g,fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",mode:_.r8("/upgrade_visitor_cookie?eom=1"),credentials:_.iI("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),4);case 4:h=g.yieldResult;g.jumpTo(3);break;case 5:h=R=g.yieldResult;case 3:if(!h.ok)throw Error("nf");return _.Q(g,h.text(),7);case 7:M=g.yieldResult,
!M.includes('"state_switch":true')&&!E||M.includes("skip_reload_for_test")||window.location.reload(),_.gG(g)}})},x1$=function(F){return _.e(function(W){return W.nextAddress==1?_.Q(W,D1N(F.socsCookie,F.savePreferenceUrl,!0),2):W.return()})},kXT=function(F){return _.e(function(W){return W.nextAddress==1?_.Q(W,D1N(F.socsCookie,F.savePreferenceUrl),2):W.return()})},srK=function(F){F=F.xhr.responseText;
if(!_.Vo(F,")]}'"))throw new RU;F=JSON.parse(F.substr(4));if((F.type||1)>1)throw new RU;F=F.id;VQT(F);ex=_.St(F);AHg(18E5,2);return F},qmx=function(F,W){W=new LFF(W);
VQT("");ex=_.vEp(W);F>0&&AHg(12E4,F-1);throw W;},AHg=function(F,W){_.RA(function(){_.HUP().then(srK,function(E){return qmx(W,E)}).thenCatch(_.sn)},F)},d1K=function(){var F=_.aJq();
if(F!==void 0)return _.xT(F);ex||(ex=_.HUP().then(srK).thenCatch(function(W){return qmx(2,W)}));
return ex},$1O=function(){var F=document;
return _.yo(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(W){return"on"+W.toLowerCase()in F})},ZMx=function(F){F.addEventListener("click",function(W){var E=W.target;
E&&E.getAttribute("href")&&(E=E.getAttribute("href"),_.Jy(window,E,"_blank"),W.preventDefault(),W.stopImmediatePropagation())})},X0N=function(F){var W,E,h,d=(h=(E=((W=F.mainDownloadsListEntity)!=null?W:{})[_.QHe])==null?void 0:E.refresh)!=null?h:"",V;
F=(V=F.refresh)==null?void 0:V[d];d=F!=null?F:{};return(d==null?0:d.refreshTime)?Number(d==null?void 0:d.refreshTime):0},HMN=function(F,W){var E=_.LV(F);
return W.every(function(h){var d;h=h==null?void 0:(d=h.playbackDataEntity)==null?void 0:d.key;if(!h)return!1;d=_.eF(_.Vz(h).entityId,"mainVideoEntity");return!!E[d]})},PY$=function(F){F=_.xr(F.entities);
return _.u4R(F).length},JHw=function(F,W){if(W){var E;
F=(E=_.Mn(F.entities,"downloadQualityPickerEntity",W))!=null?E:void 0}else F=void 0;return F},OMx=function(){apK||(_.ox=_.RIr,apK=new fpP);
return apK},bMw=function(F){var W=document.getElementsByTagName("ytd-enforcement-message-view-model");
W.length===0||getComputedStyle(W[0]).display==="none"?F(0,"p.h_"):F(1,"p.h_")},lpK=function(){ME=0;
var F=[_.cB(!0)];gF&&_.Nc(gF,"yt-window-resized",F)},n7g=function(){ME||(ME=_.P0.addLowPriorityJob(lpK,200))},jrK=function(){Q6=0;
yHw=_.iT_(document);var F=[yHw];gF&&_.Nc(gF,"yt-window-scrolled",F)},iMK=function(){Q6||(Q6=_.P0.addLowPriorityJob(jrK,200))},Te8=function(F){F=F===void 0?null:F;
rHP.push(_.FA(window,"resize",n7g));rHP.push(_.FA(window,"scroll",iMK));F&&(gF=F)},o76=function(F){_.e(function(W){if(W.nextAddress==1)return _.Q(W,F.delete("yt-appshell-assets"),2);
_.gG(W)})},GX$=function(F){return _.TC((0,_.n6p)(),F)},w08=function(){var F;
_.e(function(W){return W.nextAddress==1?_.Q(W,z6.getInstance(),2):(F=W.yieldResult)?_.Q(W,YmO(F),0):W.jumpTo(0)})},Sm6=function(){var F;
_.e(function(W){return W.nextAddress==1?_.Q(W,ts.getInstance(),2):(F=W.yieldResult)?_.Q(W,uH6(F),0):W.jumpTo(0)})},p08=function(F){o76(F);
w08();Sm6()},m1$=function(F){var W,E;
return _.e(function(h){if(h.nextAddress==1)return _.Q(h,_.b7w(F),2);if(W=h.yieldResult){var d;a:{if(W.headers&&(d=W.headers.get("date"))&&(d=Date.parse(d),!isNaN(d))){d=Math.round((0,_.KU)()-d);break a}d=-1}E=d;if(E>-1)return h.return(E)}return h.return(-1)})},KFw=function(){var F=_.EY.caches,W=_.l0("IS_SHELL_LOAD"),E,h;
_.e(function(d){if(d.nextAddress==1)return E=-1,W?_.Q(d,m1$(F),3):(h=_.kb(),E=Math.round((0,_.KU)()-h),d.jumpTo(2));d.nextAddress!=2&&(E=d.yieldResult);E>=0&&E<2147483648&&_.$b({appInstallDataAgeMs:E});_.gG(d)})},FRF=function(F){var W=_.y$(_.EY.location.href),E={};
"absolute_experiments forced_experiments expflag conditional_experiments client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url build mloader debugjs".split(" ").forEach(function(h){var d=W.JSC$7936_queryData_.getValues(h);if(d==null?0:d.length)E[h]=d});
return _.KL(F,new Map(Object.entries(E)))},WRK=function(F){F=F.match(/(.*)::.*::.*/);
if(F!==null)return F[1]},Etx=function(F){if(_.WCS()){var W=Object.keys(window.localStorage);
W=_.U(W);for(var E=W.next();!E.done;E=W.next()){E=E.value;var h=WRK(E);h===void 0||F.includes(h)||self.localStorage.removeItem(E)}}},hyP=function(){if(!_.WCS())return!1;
var F=_.cZ(),W=Object.keys(window.localStorage);W=_.U(W);for(var E=W.next();!E.done;E=W.next())if(E=WRK(E.value),E!==void 0&&E!==F)return!0;return!1},dyF=function(F){return _.pA("NotificationsDisabled",F)},N3O=function(){return Notification.permission!="granted"?Promise.resolve():_.lVq().then(function(F){return F?F.pushManager.getSubscription().then(function(W){if(W)return Promise.resolve();
W={userVisibleOnly:!0,applicationServerKey:_.CT("BPr83OIQ0ehMqbAUQWSaFHZOJeRvvXddR5EONgwwQcHR6FRe6G43LgD36pJq1IuGN10mmMv-V7IKSIZludF9G1k")};return F.pushManager.subscribe(W).then(function(){return Promise.resolve()},function(){return Promise.resolve()})}):Promise.resolve()}).catch(function(){})},Vh$=function(F){return _.lVq().then(function(W){if(!W||!W.active)return Promise.reject(new _.xC("serviceworker.postMessage",F,W));
try{return W.active.postMessage(F),Promise.resolve()}catch(E){return Promise.reject(E)}})},Uy8=function(){Vh$({type:"notifications_register",
data:_.b0("ID_TOKEN")})},eyx=function(){var F={isWide:_.BZ.get("wide","0")==="1"},W=_.Ij();
if(W=W.getFlag(165)||W.getFlag(174))F.theme=_.Oh(!0);if(_.cAk()){var E=_.ff()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";F.systemTheme=E}!W&&_.c("parent_tools_enable_app_settings")&&_.Gk(window.location.href).theme!==void 0&&(F.theme=_.Oh());if((W=Ce)?!_.xd.equals(W,F):F)W={currentValue:F},RyP&&(W.timeSinceLastSnapshotSecs=Math.round(((0,_.KU)()-RyP)/1E3)),Ce&&(W.previousValue=Ce),_.Pc("appSettingsCaptured",W),Ce=F,RyP=(0,_.KU)()},MhO=function(){if(!_.l0("LOGGED_IN"))return Promise.resolve(!1);
var F=_.N0("service_worker_push_force_notification_prompt_tag");return F?_.KZ("PromptTags").then(function(W){if(!W)return!0;var E=[];try{E=JSON.parse(W)}catch(h){return!1}return E&&E.indexOf(F)==-1}):Promise.resolve(!1)},gtx=function(){var F=_.dV("service_worker_push_prompt_delay_microseconds");
return F?_.KZ("PromptTime").then(function(W){return Promise.resolve(Date.now()-F>(W||0))}):Promise.resolve(!0)},Q_u=function(){var F=_.dV("service_worker_push_logged_out_prompt_watches");
return F==-1?Promise.resolve(!1):_.KZ("WatchCount").then(function(W){return W>=F})},zyu=function(){var F=_.hG(document,"yt-push-prompt-modal-bg");
F&&_.Bb(F)},th6=function(){return _.dV("service_worker_push_prompt_cap")==-1?Promise.resolve(!0):_.KZ("PromptCount").then(function(F){F||(F=0);
return Promise.resolve(F<_.dV("service_worker_push_prompt_cap"))})},Cfu=function(F){return _.l0("SERVICE_WORKER_PROMPT_NOTIFICATIONS")||_.l0("LOGGED_IN")&&(F===void 0?0:F)?MhO().then(function(W){if(W)return!0;
W=[th6(),gtx()];_.l0("LOGGED_IN")||W.push(Q_u());return Promise.all(W).then(function(E){return E.every(function(h){return h})})}):Promise.resolve(!1)},B3K=function(){_.KZ("PromptCount").then(function(F){return _.pA("PromptCount",F+1)}).then(function(){return _.pA("PromptTime",Date.now())}).then(function(){var F=_.N0("service_worker_push_force_notification_prompt_tag");
if(F)return _.KZ("PromptTags").then(function(W){var E=[];if(W)try{E=JSON.parse(W)}catch(h){return!1}E||(E=[]);E.push(F);return _.pA("PromptTags",JSON.stringify(E))})})},I0$=function(){vtO||zyu()},cVw=function(F){F.style.zIndex=2147483648;
F.style.pointerEvents="auto";F.style.backgroundColor="rgba(0, 0, 0, 0.6)";F.style.width="100%";F.style.height="100vh";F.style.position="absolute";F.style.top="0";F.style.left="0";F.style.border="none"},DyP=function(){var F=_.hG(document,"yt-push-prompt-modal-bg");
vtO=_.c("service_worker_push_prompt_modal_ignore_click");F?cVw(F):(F=_.Jk("div",{id:"yt-push-prompt-modal-bg"}),cVw(F),document.body.appendChild(F),_.T2I(document,"click",I0$))},xyO=function(){var F=arguments;
_.c("service_worker_push_prompt_modal_enable")&&DyP();return Notification.requestPermission().then(function(W){zyu();var E=document.getElementById("ticker");E&&(E.className=E.classList.remove("show"));if(W=="granted")return N3O().then(function(){dyF(!1);Uy8();return Promise.resolve(!0)});
W=="denied"&&Uy8();return Promise.resolve(!1)}).catch(function(){zyu();
return Promise.reject.apply(Promise,_.x9(F))})},k5T=function(F){F=F===void 0?!1:F;
var W=_.smo().client;if(W&&W.browserVersion){var E=W.browserVersion,h=W.browserName=="CHROME"&&_.Cb(E,"50.0.0")<0;W=W.browserName=="OPERA"&&_.Cb(E,"42.0.0")<0;if(h||W)return Promise.resolve()}return _.jST().then(function(d){if(!d)return Promise.resolve();d=N3O().then(function(){return Vh$({type:"notifications_check_registration",data:_.b0("ID_TOKEN")})});
return Notification.permission!="default"?d.catch(function(){}):d.then(function(){return Cfu(F)}).then(function(V){if(V)return B3K(),xyO().then(function(){})}).catch(function(){})})},AV8=function(F){return _.n9q(F)?k5T():Promise.resolve()},s_K=function(F){var W=F.installing||F.waiting;
return F.active||!W?Promise.resolve(F):new Promise(function(E){var h=function(d){d=d.target;if(d.state==="activated"||d.state==="redundant")W.removeEventListener("statechange",h),E(F)};
W.addEventListener("statechange",h)})},LRK=function(){var F=new _.bPY("SLI_NAME_YOUTUBE_WEB_SERVICE_WORKER_REGISTRATION","",12E4,"TIMEOUT");
_.DB(F,{mainAppWeb:_.yc()});var W=_.NDX;_.c("service_worker_forward_exp_params")&&(W=FRF(W));try{var E=_.$ek(W).catch(function(){_.xP(F,"FAILURE");return new Promise(function(){})});
_.c("service_worker_push_enabled")&&E.then(function(h){_.xP(F,"SUCCESS");return h}).then(s_K).then(AV8)}catch(h){if(_.xP(F,"FAILURE"),h.name!=="SecurityError")throw h;
}},qBP=function(){navigator.serviceWorker&&navigator.serviceWorker.getRegistrations&&window.location.protocol==="https:"&&LRK()},$yg=function(F,W){var E={};
W&&(E.serializedYpcFamilyCreateLoggingParams=W);_.Pc(F,E);_.JV()},ZnF=function(F,W){var E={};
E.serializedYpcRefundFlowLoggingParams=W;F&&(E.eventType=F);_.Pc("ypcRefundFlowEvent",E);_.JV()},Xc6=function(F){F&&_.XNr("transactionFlowSucceeded",F)},Hnw=function(F){F&&_.fZ("ypcCancelFlowFailed","serializedYpcCancelFlowLoggingParams",F,void 0,"YPC_ERROR_REASON_YPC_CANCEL_RECURRENCE_TRANSACTION_FAILURE")},PfK=function(F){var W,E,h,d,V,R,M;
_.e(function(g){if(g.nextAddress==1)return _.Q(g,_.vDS(),2);if(g.nextAddress!=3){if(!g.yieldResult)return g.return(!1);W=[];return _.Q(g,_.hb.keys(),3)}E=g.yieldResult;h=_.U(E);for(d=h.next();!d.done;d=h.next())V=d.value,R=_.CRr(V),M=R.datasyncId,!M||F.includes(M)||W.push(_.hb.delete(V));return g.return(Promise.all(W).then(function(t){return t.some(function(C){return C})}))})},JVq=function(){var F,W,E,h,d,V,R;
return _.e(function(M){if(M.nextAddress==1)return _.Q(M,_.vDS(),2);if(M.nextAddress!=3){if(!M.yieldResult)return M.return(!1);F=_.cZ("cache contains other");return _.Q(M,_.hb.keys(),3)}W=M.yieldResult;E=_.U(W);for(h=E.next();!h.done;h=E.next())if(d=h.value,V=_.CRr(d),(R=V.datasyncId)&&R!==F)return M.return(!0);return M.return(!1)})},a0q=function(){var F=_.WZ().resolve(_.Fd(_.r$_));
return F?F.getCurrentTime():0},f06=function(){var F,W,E,h,d,V,R,M,g,t,C,B,I,x;
return _.e(function(A){switch(A.nextAddress){case 1:F={},W=_.egS(),E=_.U(Object.entries(W)),h=E.next();case 4:if(h.done){A.jumpTo(3);break}d=h.value;V=_.U(d);R=V.next().value;M=V.next().value;g=R;t=M;if(!t){A.jumpTo(5);break}return _.Q(A,t(),8);case 8:F[g]=A.yieldResult;case 5:h=E.next();A.jumpTo(4);break;case 2:C=_.U(void 0),B=C.next();case 9:if(B.done){A.jumpTo(3);break}I=B.value;x=W[I];if(!x){A.jumpTo(10);break}return _.Q(A,x(),13);case 13:F[I]=A.yieldResult;case 10:B=C.next();A.jumpTo(9);break;
case 3:return A.return(F)}})},OnN=function(){var F;
_.e(function(W){if(W.nextAddress==1)return _.Q(W,f06(),2);F=W.yieldResult;return _.Q(W,navigator.clipboard.writeText(JSON.stringify(F,null,2)),0)})},bnK=function(F,W){return _.Mn(F.entities,"superThanksSelectedTierEntity",W)},l06=function(F){var W;
return(W=F.sharedUi)==null?void 0:W.currentPageType},ntK=function(F,W){return{popup:{searchSuggestionReportDialog:{searchQuery:F,
title:_.CY("SBOX_INAPPROPRIATE_TITLE"),suggestions:W,categoryLabel:_.CY("SBOX_INAPPROPRIATE_CATEGORY"),categories:[{id:1,label:_.CY("SBOX_INAPPROPRIATE_HATEFUL")},{id:2,label:_.CY("SBOX_INAPPROPRIATE_EXPLICIT")},{id:3,label:_.CY("SBOX_INAPPROPRIATE_VIOLENT")},{id:4,label:_.CY("SBOX_INAPPROPRIATE_DANGEROUS")},{id:5,label:_.CY("SBOX_INAPPROPRIATE_OTHER"),reasonLabel:_.CY("SBOX_INAPPROPRIATE_REASON")}],detailsPlaceholderLabel:_.CY("SBOX_INAPPROPRIATE_ADDITIONAL"),cancelButtonLabel:_.CY("SBOX_INAPPROPRIATE_CANCEL"),
submitButtonLabel:_.CY("SBOX_INAPPROPRIATE_REPORT")}},popupType:"DIALOG"}},yVN=function(F){var W,E,h,d,V,R,M,g,t,C,B,I,x,A,X,P,b,l,w;
return _.e(function(G){switch(G.nextAddress){case 1:return _.Q(G,_.zr(),2);case 2:return(W=G.yieldResult)?_.Q(G,_.y0e(W),3):G.return();case 3:E=G.yieldResult;if(!E)return G.return();d=((h=E.offlineVideos)==null?void 0:h.length)||0;R=((V=E.offlinePlaylists)==null?void 0:V.length)||0;if(d===0&&R===0)return G.return();M=0;if(E.offlineVideos)for(g=_.U(E.offlineVideos),t=g.next();!t.done;t=g.next())C=t.value,"OFFLINE_VIDEO_STATE_PLAYABLE"===C.videoState&&(M+=1);F.offline_videos_count=d.toString();_.c("kevlar_log_offline_current_network_type_ks")||
(F.offline_current_network_type=(B=_.gxb())!=null?B:"CONN_INVALID");_.c("kevlar_log_updated_time_for_smart_downloads")&&(I=_.uC().getState().entities,x=_.Zs(I),A=X0N(I),F.offline_smart_downloads_last_sync_time_ms=x.toString(),F.offline_smart_downloads_next_sync_time_ms=A.toString());F.offline_videos_playable=M.toString();F.offline_playlists_count=R.toString();if(!_.c("woffle_used_state_report")){G.jumpTo(4);break}E.offlineVideos&&(X=E.offlineVideos.reduce(function(hr,p){p.downloadedBytes&&(hr+=Number(p.downloadedBytes));
return hr},0).toString())&&(F.offline_used_disk_space_bytes=X);
if(!((P=navigator)==null?0:(b=P.storage)==null?0:b.estimate)){G.jumpTo(4);break}return _.Q(G,navigator.storage.estimate(),6);case 6:l=G.yieldResult,F.offline_free_disk_space_bytes=(((w=l)==null?void 0:w.quota)||0).toString();case 4:F.offline_client_state=JSON.stringify(E),_.gG(G)}})},j_$=function(F){F=F.match(/(.*)::.*::.*/);
if(F!==null)return F[1]},inq=function(F){if(_.yKn()){var W=Object.keys(window.sessionStorage);
W=_.U(W);for(var E=W.next();!E.done;E=W.next()){E=E.value;var h=j_$(E);h===void 0||F.includes(h)||self.sessionStorage.removeItem(E)}}},rVq=function(){if(!_.yKn())return!1;
var F=_.cZ(),W=Object.keys(window.sessionStorage);W=_.U(W);for(var E=W.next();!E.done;E=W.next())if(E=j_$(E.value),E!==void 0&&E!==F)return!0;return!1},B4=function(F,W,E){(_.c("desktop_keyboard_shortcut_usage_log")||E&&_.c("web_shorts_keyboard_shortcut_usage_log"))&&(W?_.Eo.get(F):_.W4.get(F))&&(F=W?_.dF.get(F):_.hs.get(F))&&_.oj(_.JR(),F)},T36=function(F){return F.visibility!=="hidden"&&F.display!=="none"},otN=function(F){if(!F.matches("a[href],a[tabindex],area[href],iframe,[tabindex],[contentEditable],summary,details:not(:has(summary)),input:not([disabled]),select:not([disabled]),textarea:not([disabled]),button:not([disabled]),object:not([disabled])"))return-1;
F=F.getAttribute("tabindex")||"0";return Number(F)},G56=function(F){return F.some(function(W){return otN(W)>0})},YBF=function(F){if(F.textContent)return!0;
if(F instanceof HTMLInputElement){if(!F.labels)return!1;F=_.U(F.labels);for(var W=F.next();!W.done;W=F.next())if(W.value.textContent)return!0}return!1},wcO=function(F){return F.sort(function(W,E){return otN(E)-otN(W)})},uAN=function(F){F=Array.from(F.querySelectorAll("a[href],a[tabindex],area[href],iframe,[tabindex],[contentEditable],summary,details:not(:has(summary)),input:not([disabled]),select:not([disabled]),textarea:not([disabled]),button:not([disabled]),object:not([disabled])")).filter(function(W){return(T36(W.style)?
T36(window.getComputedStyle(W)):!1)&&YBF(W)});
return G56(F)?wcO(F):F},SBK=function(F){F=uAN(F);
F.length>0&&F[0].focus()},pcw=function(F,W){W.stack&&(F.stack+="\n"+W.stack);
return F},Fr6=function(F){var W=v4(F,"Content-Type");
if(!W)return null;W=W.toLowerCase();if(W.startsWith("application/json"))return W.startsWith("application/json+protobuf")?new my6:new _.gN;if(W.startsWith("application/x-protobuf")){F=v4(F,"Content-Transfer-Encoding");if(!F)return new IU;if(F.toLowerCase()=="base64")return new KRO}return null},e_q=function(F,W,E,h){var d=new Wr6(function(M,g){return EO6.has(g)?M.sentinel==="gal"&&M.event!==void 0:!1},function(M){M.event?(M=h_K(M.event),M=!M||dQT(h,M)?!0:_.qa(F.lastEvent,c4,2,D3)?!_.qa(M,xm,1,D3)&&
!_.qa(M,c4,2,D3):!_.qa(M,xm,1,D3)&&!_.qa(M,c4,3,D3)):M=!0;
return M});
E=_.KL(F.trustedUrl,new Map([["result_channel","5"],["origin",(new URL(window.location.href)).origin],["color_scheme",NTN(E)]]));if(F.nestedOrigins!==void 0)for(var V=_.U(F.nestedOrigins),R=V.next();!R.done;R=V.next())E=_.KL(E,new Map([["origin",R.value]]));return VnF(d,E,W).then(function(M){M=UQF(M.event);if(_.qa(M,xm,1,D3)){var g,t=(g=_.j2(M,xm,1,D3))==null?void 0:_.lj(g,2);t&&h.JSC$17026_logErrorEvent(R_6(t));g=_.j2(M,xm,1,D3);_.lj(g,2)===4?(M=_.j2(M,xm,1,D3),M={statusCode:11,statusMessage:_.bj(M,
3)}):(M=_.j2(M,xm,1,D3),M={statusCode:12,statusMessage:_.bj(M,3)});return M}_.qa(M,c4,3,D3)?(M=_.j2(M,c4,3,D3),M={statusCode:1,consentLanguageKeys:_.bj(M,2)}):M={statusCode:1};return M}).catch(function(M){return M.errorCode!==void 0?{statusCode:M.errorCode,
statusMessage:M.errorMessage}:{statusCode:7,statusMessage:"Data Usage Notice screen did not return result"}})},z_N=function(F){var W={};
if(F===void 0||F===null)return W;F.getToken()!==void 0&&Mn6(F.getToken())&&Mn6(F.getToken()).length>0&&(W.scopes=new Set(Mn6(F.getToken())));F.getToken()!==void 0&&gOO(F.getToken())&&gOO(F.getToken()).length>0&&(W.capabilities=new Set(gOO(F.getToken())));_.bj(F,3)!==void 0&&(W.consistencyKey=_.bj(F,3));F.getName()!==void 0&&F.getName()!==""&&(W.linkName=F.getName());_.Lc(F,QLP,4)&&(F=_.Em(F,QLP,4),F=Object.assign({},_.bj(F,1)&&{userId:_.bj(F,1)},_.bj(F,2)&&{displayName:_.bj(F,2)},_.bj(F,3)&&{email:_.bj(F,
3)},_.bj(F,5)&&{username:_.bj(F,5)},_.bj(F,4)&&{profilePicture:_.bj(F,4)}),W.profile=F);return W},tnw=function(F,W){var E=F.flowParams;
return{serviceId:E.serviceId,sessionId:E.sessionId,currentFlow:F.currentFlow,googleScopesString:W,linkingSessionSerialized:F.session.serialize(),consentLanguageKeys:E.consentLanguageKeys,callerState:F.callerState,dynamicUrlParameters:E.dynamicUrlParameters,partnerConfigMinReadTimestamp:E.partnerConfigMinReadTimestamp}},ctT=function(F){var W=F.googleScopes!==void 0?Array.from(F.googleScopes).join(","):"";
CMK(tnw(F,W));W=BTN(F);return W===null?Promise.resolve(vOK):W.start().then(function(E){var h,d=(h=E.link)==null?void 0:h.consistencyKey;return E.statusCode===1&&F.googleScopes!==void 0&&F.googleScopes.size>0&&d!==void 0?(h=F.flowParams,ImF(h.serviceId,h.sessionId,F.googleScopes,d,h.galService,F.config,E)):E})},DQ6=function(F){var W=BTN(F);
return W===null?Promise.resolve(km({statusCode:7,statusMessage:"Failed to create flow object"},F.callerState)):W.complete().then(function(E){var h,d=(h=E.link)==null?void 0:h.consistencyKey;return E.statusCode===1&&F.googleScopes!==void 0&&F.googleScopes.size>0&&d!==void 0?(h=F.flowParams,ImF(h.serviceId,h.sessionId,F.googleScopes,d,h.galService,F.config,E)):km(E,F.callerState)},function(E){return km({statusCode:12,
statusMessage:"Failed to complete the flow: "+E.message},F.callerState)})},ImF=function(F,W,E,h,d,V,R){return xQq(d,{serviceId:F,
sessionId:W,googleScopes:E,consistencyKey:h}).then(function(){return R},function(M){return d.deleteLink({serviceId:F,
sessionId:W,accountLinkingEntryPoint:V.accountLinkingEntryPoint}).then(function(){return{statusCode:12,statusMesaage:"2-way linking failed: "+M.message}},function(g){return{statusCode:12,
statusMesaage:"2-way linking failed and did not cleanup the link:\n                            "+g.message}})})},BTN=function(F){switch(F.currentFlow){case 1:var W=F.flowParams;
F=_.Em(F.session,knw,1);return As.createOAuthFlow(W,F);case 2:case 3:return W=F.flowParams,F=_.Em(F.session,At6,6),so.createStreamlinedFlow(W,F);default:return null}},sL8=function(F,W){F===2&&(F=3);
var E=0;Le.indexOf(F)!==-1&&(E=Le.indexOf(F)+1);for(F=E;F<Le.length;F++)if(W.has(Le[F]))return Le[F]},$QK=function(F){var W=F.serviceId;
var E=F.sessionId;var h=F.config;var d=F.galService;var V=F.capabilities;var R=F.scopes;var M=F.loginHint;var g=F.callerState;var t=F.consentLanguageKeys;var C=F.linkName;var B=F.dynamicUrlParameters;var I=F.partnerConfigMinReadTimestamp;F=h.dataUsageNoticeConfig?h.dataUsageNoticeConfig.enabledDataUsageNoticeUis:void 0;return d.startLinkingSession({serviceId:W,sessionId:E,capabilities:V,scopes:R,loginHint:M,callerState:g,supportedFlows:Lru(h.supportedFlows),completionUrl:h.completionUrl,accountLinkingEntryPoint:h.accountLinkingEntryPoint,
consentLanguageKeys:t,dataUsageNoticeConfig:F,linkName:C,dynamicUrlParameters:B,partnerConfigMinReadTimestamp:I}).then(function(x){return new qRw(W,E,h,d,x,void 0,g,t,B,I)})},Jtx=function(F,W,E){a:{var h=new ZX6;
if(h.storage!==null)try{var d=h.storage.get("SAVED_SESSION");if(d===void 0){var V=null;break a}if(d.serviceId===F){V=d;break a}}catch(R){}V=null}if(V===null)return Promise.resolve({statusCode:2});XsF(F);h=HXK(V.linkingSessionSerialized);return PMx(new qRw(F,V.sessionId,W,E,h,V.googleScopesString!==""&&V.googleScopesString!==void 0?new Set(V.googleScopesString.split(",")):void 0,V.callerState,V.consentLanguageKeys,V.dynamicUrlParameters,V.partnerConfigMinReadTimestamp),V.currentFlow,V.consentLanguageKeys)},
CMK=function(F){var W=new ZX6;
W.storage!==null&&W.storage.set("SAVED_SESSION",F)},XsF=function(F){var W=new ZX6;
if(W.storage!==null){var E=W.storage.get("SAVED_SESSION");E!==void 0&&E.serviceId===F&&W.storage.remove("SAVED_SESSION")}},Lru=function(F){var W=new Set;
F=_.U(F);for(var E=F.next();!E.done;E=F.next())E=E.value,E!==1&&amw.has(E)&&W.add(amw.get(E));return W},km=function(F,W){W!==void 0&&(F.callerState=W);
return F},fmK=function(F){switch(F){case 5:return 3;
case 7:return 4;case 16:return 5;case 13:return 7;default:return 12}},lm$=function(){var F={timeout:5E3};
F=F===void 0?{}:F;return OXK!=null?OXK:OXK=bXN(F)},nO6=function(){return new Promise(function(F,W){window.gapi.load("client",{callback:F,
onerror:W})})},bXN=function(F){F=F===void 0?{}:F;
var W;return _.e(function(E){if(E.nextAddress==1){if((W=window.gapi)&&W.client&&W.client.load)E=E.return(W);else{var h=_.RI("https://apis.google.com/js/api.js");E=_.Q(E,_.bx(h,F),2)}return E}if(E.nextAddress!=3){W=window.gapi;if(!W)throw Error("Yj");return W.client&&W.client.load?E.jumpTo(3):_.Q(E,nO6(),3)}return E.return(W)})},jLx=function(F,W){W=W===void 0?0:W;
var E=F.auth2.getAuthInstance().currentUser.get(),h=E.getAuthResponse(!0);if(h&&h.expires_at-Date.now()<W){if(yt6.has(F))return yt6.get(F);W=Promise.resolve(E.reloadAuthResponse()).finally(function(){yt6.delete(F)});
yt6.set(F,W);return W}return Promise.resolve()},iXg=function(F,W){var E;
return F.client.init({apiKey:W.apiKey,clientId:W.clientId,scope:W.scope,discoveryDocs:W.discoveryDocs,hostedDomain:W.hostedDomain,fetchBasicProfile:(E=W.fetchBasicProfile)!=null?E:!0})},rt$=function(F){if(F.queryParams!=null){var W={},E;
for(E in F.queryParams)F.queryParams[E]!==void 0&&(W[E]=F.queryParams[E]);F.queryParams=W}},Gnq=function(F){return new TTw(F,new oOK(F))},uVw=function(F,W){W=W===void 0?!1:W;
var E=document.createElement("div");F&&(E.style.transform="scaleX(-1)");E.style.backgroundColor=W?"rgba(138,180,248,.24)":"#e8f0fe";E.style.height="4px";E.style.overflow="hidden";E.style.position="absolute";E.style.top="0";E.style.width="100%";E.style.zIndex="1500";E.setAttribute("aria-label","Loading");E.setAttribute("aria-live","polite");F=document.createElement("style");F.textContent="@keyframes omdc-linear-progress-primary-indeterminate-translate {\n    0% {\n      transform: translateX(0);\n    }\n\n    20% {\n      animation-timing-function: cubic-bezier(0.5, 0, 0.701732, 0.495819);\n      transform: translateX(0);\n    }\n\n    59.15% {\n      animation-timing-function: cubic-bezier(\n        0.302435,\n        0.381352,\n        0.55,\n        0.956352\n      );\n\n      transform: translateX(83.67142%);\n    }\n\n    100% {\n      transform: translateX(200.611057%);\n    }\n  }@keyframes omdc-linear-progress-primary-indeterminate-scale {\n    0% {\n      transform: scaleX(0.08);\n    }\n\n    36.65% {\n      animation-timing-function: cubic-bezier(0.334731, 0.12482, 0.785844, 1);\n      transform: scaleX(0.08);\n    }\n\n    69.15% {\n      animation-timing-function: cubic-bezier(0.06, 0.11, 0.6, 1);\n      transform: scaleX(0.661479);\n    }\n\n    100% {\n      transform: scaleX(0.08);\n    }\n  }@keyframes omdc-linear-progress-secondary-indeterminate-translate {\n    0% {\n      animation-timing-function: cubic-bezier(0.15, 0, 0.515058, 0.409685);\n      transform: translateX(0);\n    }\n\n    25% {\n      animation-timing-function: cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);\n      transform: translateX(37.651913%);\n    }\n\n    48.35% {\n      animation-timing-function: cubic-bezier(0.4, 0.627035, 0.6, 0.902026);\n      transform: translateX(84.386165%);\n    }\n\n    100% {\n      transform: translateX(160.277782%);\n    }\n  }@keyframes omdc-linear-progress-secondary-indeterminate-scale {\n    0% {\n      animation-timing-function: cubic-bezier(\n        0.205028,\n        0.057051,\n        0.57661,\n        0.453971\n      );\n      transform: scaleX(0.08);\n    }\n\n    19.15% {\n      animation-timing-function: cubic-bezier(\n        0.152313,\n        0.196432,\n        0.648374,\n        1.004315\n      );\n      transform: scaleX(0.457104);\n    }\n\n    44.15% {\n      animation-timing-function: cubic-bezier(\n        0.257759,\n        -0.003163,\n        0.211762,\n        1.38179\n      );\n      transform: scaleX(0.72796);\n    }\n\n    100% {\n      transform: scaleX(0.08);\n    }\n  }";
E.appendChild(F);F=YRq();F.style.animation="omdc-linear-progress-primary-indeterminate-translate 2s infinite linear";F.style.left="-145.166611%";var h=wsP(W);h.style.animation="omdc-linear-progress-primary-indeterminate-scale 2s infinite linear";F.appendChild(h);E.appendChild(F);F=YRq();F.style.animation="omdc-linear-progress-secondary-indeterminate-translate 2s infinite linear";F.style.left="-54.888891%";W=wsP(W);W.style.animation="omdc-linear-progress-secondary-indeterminate-scale 2s infinite linear";
F.appendChild(W);E.appendChild(F);return E},YRq=function(){var F=document.createElement("div");
F.style.height="100%";F.style.position="absolute";F.style.transformOrigin="top left";F.style.width="100%";return F},wsP=function(F){var W=document.createElement("span");
W.style.borderTop=F?"4px solid #669df6":"4px solid #4285f4";W.style.display="inline-block";W.style.position="absolute";W.style.width="100%";return W},SRN=function(F){return F==null?void 0:_.Squ(F).valueOf()},F1q=function(F){var W=document.body,E=!1,h=function(){E||(E=!0,psw(d,V),setTimeout(function(){W.removeChild(V);
W.removeChild(d)},150))},d=mQg(F,getComputedStyle(W).direction==="rtl",h),V=Kr8(h);
psw(d,V);W.appendChild(V);W.appendChild(d);window.requestAnimationFrame(function(){V.style.opacity="1";d.style.opacity="1";d.style.transform="translate(-50%, -50%) scale(1)";d.children[0].focus()})},mQg=function(F,W,E){var h=document.createElement("div");
h.style.position="fixed";h.style.alignItems="center";h.style.backgroundColor=F?"rgb(32, 33, 36)":"white";h.style.boxShadow="0px 1px 2px rgba(60,64,67,0.3), 0px 2px 6px 2px rgba(60,64,67,0.15);";h.style.display="flex";h.style.flexDirection="column";h.style.justifyContent="center";h.style.left="50%";h.style.top="50%";h.style.transition="opacity 75ms linear,transform 150ms cubic-bezier(0,0,0.2,1)";h.style.zIndex="2002";document.body.clientWidth>=660?(h.style.borderRadius="8px",h.style.minHeight="220px",
h.style.maxHeight="90%",h.style.maxWidth="90%",h.style.minWidth="540px"):(h.style.height="100%",h.style.width="100%");h.setAttribute("aria-label","Error");h.setAttribute("aria-modal","true");h.setAttribute("role","alertdialog");h.addEventListener("keydown",function(V){V.key==="Escape"&&E()});
W=W1P(F,W,E);h.appendChild(ExP(W));h.appendChild(W);var d=document.createElement("img");d.src=F?"https://fonts.gstatic.com/s/i/googlematerialicons/alert/v11/gm_grey200-36dp/2x/gm_alert_gm_grey200_36dp.png":"https://fonts.gstatic.com/s/i/googlematerialicons/alert/v11/gm_grey600-36dp/2x/gm_alert_gm_grey600_36dp.png";d.style.height="72px";d.style.width="72px";d.style.color="#9aa0a6";d.setAttribute("alt","");h.appendChild(d);d=document.createElement("h1");d.textContent="Something went wrong.  Try again.";
d.style.fontFamily="'Google Sans', Roboto, Arial, sans-serif";d.style.lineHeight="24px";d.style.fontSize="16px";d.style.textAlign="center";d.style.letterSpacing="0.1px";d.style.color=F?"rgb(232,234,237)":"#3c4043";h.appendChild(d);h.appendChild(ExP(W));return h},W1P=function(F,W,E){var h=document.createElement("button");
h.style.backgroundColor="transparent";h.style.border="none";h.style.borderRadius="50%";h.style.cursor="pointer";h.style.outline="none";h.style.padding="12px";h.setAttribute("aria-label","Close dialog");h.style.position="absolute";h.style.top="0";W?h.style.right="0":h.style.left="0";h.addEventListener("focus",function(){h.style.backgroundColor=F?"rgba(232, 234, 237,.12)":"rgba(0,0,0,.12)"});
h.addEventListener("blur",function(){h.style.backgroundColor="transparent"});
h.addEventListener("mouseenter",function(){h.style.backgroundColor=F?"rgba(232, 234, 237, .04) ":"rgba(0,0,0,.04)"});
h.addEventListener("mouseleave",function(){h.style.backgroundColor="transparent"});
h.addEventListener("click",E);h.addEventListener("keydown",function(d){d.key!=="Enter"&&d.key!=="Space"||E()});
W=document.createElement("img");W.src=F?"https://fonts.gstatic.com/s/i/googlematerialicons/close/v19/gm_grey200-24dp/1x/gm_close_gm_grey200_24dp.png":"https://fonts.gstatic.com/s/i/googlematerialicons/close/v19/gm_grey600-24dp/1x/gm_close_gm_grey600_24dp.png";W.style.display="block";W.style.height="24px";W.style.width="24px";W.setAttribute("alt","");h.appendChild(W);return h},ExP=function(F){var W=document.createElement("div");
W.setAttribute("tabindex","0");W.setAttribute("aria-hidden","true");W.addEventListener("focus",function(){return void F.focus()});
return W},Kr8=function(F){var W=document.createElement("div");
W.style.backgroundColor="rgba(32,33,36,0.6)";W.style.bottom="0";W.style.left="0";W.style.position="fixed";W.style.right="0";W.style.top="0";W.style.transition=" opacity 150 ms linear";W.style.zIndex="2001";W.addEventListener("click",F);return W},psw=function(F,W){W.style.opacity="0";
F.style.opacity="0";F.style.transform="translate(-50%, -50%) scale(0.8)"},hvw=function(F,W){F.sandbox&&F.sandbox.add&&(F.sandbox.add("allow-same-origin","allow-scripts","allow-forms","allow-popups","allow-popups-to-escape-sandbox","allow-storage-access-by-user-activation"),F.sandbox.add("allow-downloads"));
F.src=W},qE=function(F){dW6.call(this,F)},$m=function(F,W){W=W===void 0?!1:W;
this.parsedImageUrl_=null;F instanceof N8T||(Vrg==void 0&&(Vrg=new UW6),F=Vrg.parse(F.toString(),W));F=this.parsedImageUrl_=F;F.JSC$17257_parsedOptions_==void 0&&((W=F.getOptions())||(W=""),F.JSC$17257_parsedOptions_=(new RvT).parse(W));dW6.call(this,F.JSC$17257_parsedOptions_);this.protocolPrefix_=this.parsedImageUrl_.originalPrefix_;F=this.parsedImageUrl_;W=F.uri_.JSC$7936_port_;this.JSC$17259_domain_=F.uri_.JSC$7936_domain_+(W?":"+W:"");this.JSC$17259_query_=this.parsedImageUrl_.uri_.JSC$7936_queryData_.toString()},
evN=function(F){this.mode=4;
this.data=F;this.parsedData=[];F=0;for(var W=this.data.length;F<W;F++){var E=[],h=this.data.charCodeAt(F);h>65536?(E[0]=240|(h&1835008)>>>18,E[1]=128|(h&258048)>>>12,E[2]=128|(h&4032)>>>6,E[3]=128|h&63):h>2048?(E[0]=224|(h&61440)>>>12,E[1]=128|(h&4032)>>>6,E[2]=128|h&63):h>128?(E[0]=192|(h&1984)>>>6,E[1]=128|h&63):E[0]=h;this.parsedData.push(E)}this.parsedData=Array.prototype.concat.apply([],this.parsedData);this.parsedData.length!=this.data.length&&(this.parsedData.unshift(191),this.parsedData.unshift(187),
this.parsedData.unshift(239))},MrF=function(F){this.typeNumber=0;
this.errorCorrectLevel=F===void 0?2:F;this.modules=null;this.moduleCount=0;this.dataCache=null;this.dataList=[]},Z3=function(F,W){if(F.length==void 0)throw Error("sk`"+F.length+"`"+W);
for(var E=0;E<F.length&&F[E]==0;)E++;this.num=Array(F.length-E+W);for(W=0;W<F.length-E;W++)this.num[W]=F[W+E]},gxN=function(F,W){this.totalCount=F;
this.dataCount=W},Qk8=function(){this.buffer=[];
this.length=0},zvK=function(){var F=!1;
if(_.Qne()){F=_.BG();var W="";_.Cor()?(W=/Windows (?:NT|Phone) ([0-9.]+)/,W=(F=W.exec(F))?F[1]:"0.0"):_.OY()?(W=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,W=(F=W.exec(F))&&F[1].replace(/_/g,".")):_.tkS()?(W=/Mac OS X ([0-9_.]+)/,W=(F=W.exec(F))?F[1].replace(/_/g,"."):"10"):_.zR(_.BG(),"KaiOS")?(W=/(?:KaiOS)\/(\S+)/i,W=(F=W.exec(F))&&F[1]):_.Qne()?(W=/Android\s+([^\);]+)(\)|;)/,W=(F=W.exec(F))&&F[1]):_.BIo()&&(W=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,W=(F=W.exec(F))&&F[1]);F=W||""}return F},cR8=function(F,
W){this.JSC$17282__htOption={width:256,
height:256,typeNumber:4,colorDark:"#000000",colorLight:"#ffffff",correctLevel:2};if(W)for(var E in W)this.JSC$17282__htOption[E]=W[E];this.JSC$17282__htOption.useSVG&&(trO=CIT);this.JSC$17282__android=zvK();this.JSC$17282__el=F;this._oQRCode=null;this._oDrawing=new trO(this.JSC$17282__el,this.JSC$17282__htOption);this.JSC$17282__htOption.text&&(F=this.JSC$17282__htOption.text,this._oQRCode=new MrF(this.JSC$17282__htOption.correctLevel),B8F(this._oQRCode,F),W=this._oQRCode,vxK(W,!1,IUq(W)),this.JSC$17282__el.title=
F,this._oDrawing.draw(this._oQRCode),this.makeImage())},DW8=function(F,W,E,h,d){F.save();
var V=new Path2D;V.roundRect(W,E,h*7,h*7,h*2);V.roundRect(W+h,E+h,h*5,h*5,h*1.3);V.roundRect(W+2*h,E+2*h,h*3,h*3,h);F.clip(V,"evenodd");F.fillStyle=d;F.fillRect(0,0,F.canvas.width,F.canvas.height);F.restore()},Xl=function(F,W){if(typeof F!=="function")throw Error("vk");
return _.EY.setTimeout(function(){F()},W)},H4=function(){},kM6=function(F,W,E,h,d){(new H4).debug("TestLoadImageWithRetries: "+d);
if(h==0)E(!1);else{var V=d||0;h--;xWF(F,W,function(R){R?E(!0):_.EY.setTimeout(function(){kM6(F,W,E,h,V)},V)})}},xWF=function(F,W,E){var h=new H4;
h.debug("TestLoadImage: loading "+F);var d=new Image;d.onload=function(){try{h.debug("TestLoadImage: loaded"),AR6(d),E(!0)}catch(V){}};
d.onerror=function(){try{h.debug("TestLoadImage: error"),AR6(d),E(!1)}catch(V){}};
d.onabort=function(){try{h.debug("TestLoadImage: abort"),AR6(d),E(!1)}catch(V){}};
d.ontimeout=function(){try{h.debug("TestLoadImage: timeout"),AR6(d),E(!1)}catch(V){}};
_.EY.setTimeout(function(){if(d.ontimeout)d.ontimeout()},W);
d.src=F},AR6=function(F){F.onload=null;
F.onerror=null;F.onabort=null;F.ontimeout=null},skq=function(){this.front_=[];
this.back_=[]},L18=function(F,W){_.xj.call(this);
this.delay_=new _.Av(this.JSC$17408_onTick_,0,this);_.gl(this,this.delay_);this.JSC$17406_interval_=5E3;this.nextTickTime_=0;if(typeof F==="function")W&&(F=(0,_.kj)(F,W));else if(F&&typeof F.handleEvent==="function")F=(0,_.kj)(F.handleEvent,F);else throw Error("Ca");this.JSC$17408_listener_=F},P4=function(F,W,E,h,d,V,R,M,g,t,C,B,I,x){E=E===void 0?!1:E;
h=h===void 0?function(){return""}:h;
d=d===void 0?!1:d;V=V===void 0?!1:V;R=R===void 0?!1:R;M=M===void 0?function(){return _.e7({})}:M;
g=g===void 0?!1:g;C=C===void 0?!1:C;B=B===void 0?!1:B;I=I===void 0?!1:I;x=x===void 0?!1:x;this.JSC$17409_pathPrefix_=F;this.defaultQueryParams_=W;this.pubsub_=new _.tc;this.reconnectTimer_=new L18(this.safeReconnect_,this);this.JSC$17409_channel_=null;this.JSC$17409_disposed_=!1;this.connectionParams_=null;this.sCookie_="";this.disconnectUi_=this.connectUi_=0;this.JSC$17409_pendingMessages_=[];this.enableAsyncTest_=E;this.JSC$17409_getXsrfToken_=h;this.useAsyncBrowserChannelHandler_=V;this.getAuthorizationHeader_=
M;this.getAuthorizationHeaderSync_=t;this.enableCachedUpdateAuthorizationHeader_=R;this.updateAuthorizationHeaderPromise_=null;this.connectPromise_=_.e7();this.enableLoungeTokenRefresh_=d;this.enableAsyncMdxLibraryWithoutAuthHeaderFetch_=g;this.disableMdxAuthForNonPlaybackMessages_=C;this.disableMdxAuthForAdMessages_=B;this.enableMdxAuthForConnectionOnly_=I;this.disableMdxAuthForShortsMessages_=x;this.JSC$17409_channelOpenedCounter=new qgq;this.JSC$17409_channelClosedCounter=new $Wu;this.channelMessageSentCounter=
new Zg6;this.JSC$17409_channelMessageReceivedCounter=new Xfg;this.JSC$17409_channelErrorCounter=new HgT;this.pendingMapsOnClosedCounter=new PIO;this.undeliveredMapsOnClosedCounter=new JRu},Js=function(F){this.scheme="https";
this.port=this.domain="";this.basePath="/api/lounge";this.supportCors=!0;F=F||document.location.href;var W=Number(_.u0(F)[4]||null)||"";W&&(this.port=":"+W);this.domain=_.Su(F)||"";F=_.BG();F.search("MSIE")>=0&&_.Cb(F.match(/MSIE ([\d.]+)/)[1],"10.0")<0&&(this.supportCors=!1)},aU=function(F){F=F||{};
this.name=F.name||"";this.id=F.id||F.screenId||"";this.token=F.token||F.loungeToken||"";this.uuid=F.uuid||F.dialId||"";this.idType=F.screenIdType||"normal"},aU6=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(F){var W=Math.random()*16|0;
return(F=="x"?W:W&3|8).toString(16)})},fU8=function(F){return _.AN(F,function(W){return{key:W.id,
name:W.name}})},OgK=function(F,W){return _.yo(F,function(E){return E||W?!E!=!W?!1:E.id==W.id:!0})},Oo=function(F,W){return _.yo(F,function(E){return fe(E,W)})},jk6=function(){var F=bgF(),W=lUw();
if(nxF()){var E=F,h=_.xwW(E,W);h<0&&_.Dwk(E,-(h+1),0,W)}F=yRu(F);if(F.length==0)try{_.UWe("remote_sid")}catch(d){}else try{_.vZ("remote_sid",F.join(","),-1)}catch(d){}},bgF=function(){var F=_.Cy("yt-remote-connected-devices")||[];
F.sort(_.QM);return F},yRu=function(F){if(F.length==0)return[];
var W=F[0].indexOf("#"),E=W==-1?F[0]:F[0].substring(0,W);return _.AN(F,function(h,d){return d==0?h:h.substring(E.length)})},igN=function(F){_.tl("yt-remote-connected-devices",F,86400)},lUw=function(){if(rRP)return rRP;
var F=_.Cy("yt-remote-device-id");F||(F=aU6(),_.tl("yt-remote-device-id",F,31536E3));for(var W=bgF(),E=1,h=F;_.on(W,h);)E++,h=F+"#"+E;return rRP=h},T86=function(){return _.Cy("yt-remote-session-browser-channel")},nxF=function(){return _.Cy("yt-remote-session-screen-id")},Ygx=function(F){F.length>5&&(F=F.slice(F.length-5));
var W=_.AN(ox6(),function(h){return h.loungeToken}),E=_.AN(F,function(h){return h.loungeToken});
_.m4G(E,function(h){return!_.on(W,h)})&&GMN();
_.tl("yt-remote-local-screens",F,31536E3)},ox6=function(){return _.Cy("yt-remote-local-screens")||[]},GMN=function(){_.tl("yt-remote-lounge-token-expiration",!0,86400)},bw=function(F){F||(_.B2("yt-remote-session-screen-id"),_.B2("yt-remote-session-video-id"));
jk6();F=bgF();_.mY(F,lUw());igN(F)},uf6=function(){wfK();
return lw?!!lw.get("yt-remote-use-staging-server"):!1},wfK=function(){if(!lw){var F=_.B8w();
F&&(lw=new _.kC(F))}},K1$=function(F,W,E,h,d){E=E===void 0?function(){return""}:E;
var V=function(){return new P4(ne(F,"/bc"),W,!1,E,h)};
return _.c("enable_mdx_web_channel_desktop")?new SgK(function(){return new pfO(ne(F,"/wc"),W,E)}):new mWx(V,d)},hsq=function(){var F=Fs6;
Wsg();y6.push(F);EbK()},jx=function(F,W){Wsg();
var E=dcN(F,String(W));y6.length==0?NW6(E):(EbK(),_.Tk(y6,function(h){h(E)}))},iw=function(F){jx("CP",F)},Wsg=function(){y6||(y6=_.ju("yt.mdx.remote.debug.handlers_")||[],_.S5("yt.mdx.remote.debug.handlers_",y6))},NW6=function(F){var W=(rF+1)%50;
rF=W;V7g[W]=F;UcP||(UcP=W==49)},EbK=function(){var F=y6;
if(V7g[0]){var W=UcP?rF:-1,E={};do E={record$jscomp$13:void 0},W=(W+1)%50,E.record$jscomp$13=V7g[W],_.Tk(F,function(h){return function(d){d(h.record$jscomp$13)}}(E));
while(W!=rF);V7g=Array(50);rF=-1;UcP=!1}},dcN=function(F,W){var E=(Date.now()-RsK)/1E3;
E.toFixed&&(E=E.toFixed(3));var h=[];h.push("[",E+"s","] ");h.push("[","yt.mdx.remote","] ");h.push(F+": "+W,"\n");return h.join("")},T6=function(F){_.Fl.call(this);
this.JSC$17433_logName_=F;this.screens=[]},G6=function(F){T6.call(this,"LocalScreenService");
this.JSC$17440_http_=F;this.loungeTokenRefreshTimer_=NaN;oU(this);this.info("Initializing with "+esx(this.screens))},Ym=function(F,W){W=W===void 0?!1:W;
T6.call(this,"ScreenService");this.JSC$17446_http_=F;this.disableAutomaticScreenCache_=W;this.onlineScreenService_=this.localScreenService_=null;this.automaticScreens_=[];this.deviceToScreenId_={};M7N(this)},wF=function(F,W,E){_.Fl.call(this);
this.JSC$17450_logName_=E;this.JSC$17450_screenService_=F;this.receiver_=W;this.screen_=null},Ls6=function(F,W,E){E.disableCastApi?uw("Cannot initialize because disabled by Mdx config."):gb$()?QjT(F,E)&&(zsu(!0),window.chrome&&chrome.cast&&chrome.cast.isAvailable?t7g(W):(window.__onGCastApiAvailable=function(h,d){h?t7g(W):(Sx("Failed to load cast API: "+d),CsO(!1),zsu(!1),_.B2("yt-remote-cast-available"),_.B2("yt-remote-cast-receiver"),BWx(),W(!1))},E.loadCastApiSetupScript?_.lI("https://www.gstatic.com/cv/js/sender/v1/cast_sender.js"):
window.navigator.userAgent.indexOf("Android")>=0&&window.navigator.userAgent.indexOf("Chrome/")>=0&&window.navigator.presentation?vbP()>=60&&I2T():!window.chrome||!window.navigator.presentation||window.navigator.userAgent.indexOf("Edge")>=0?cFT():vbP()>=89?Dcu():(xc8(),kJF(AFT.map(sjg))))):uw("Cannot initialize because not running Chrome")},BWx=function(){uw("dispose");
var F=pe();F&&F.dispose();_.S5("yt.mdx.remote.cloudview.instance_",null);qTg(!1);_.uCY($cK);$cK.length=0},ZYO=function(){return!!_.Cy("yt-remote-cast-installed")},X56=function(){var F=_.Cy("yt-remote-cast-receiver");
return F?F.friendlyName:null},HYK=function(){uw("clearCurrentReceiver");
_.B2("yt-remote-cast-receiver")},Ps6=function(){return ZYO()?pe()?pe().getCastSession():(Sx("getCastSelector: Cast is not initialized."),null):(Sx("getCastSelector: Cast API is not installed!"),null)},a2K=function(F,W){JFT()?pe().setConnectedScreenStatus(F,W):Sx("setConnectedScreenStatus called before ready.")},gb$=function(){var F=_.BG().search(/ (CrMo|Chrome|CriOS)\//)>=0;
return _.cY||F},QjT=function(F,W){var E=!1;
pe()||(F=new md(F,W),F.subscribe("yt-remote-cast2-availability-change",function(h){_.tl("yt-remote-cast-available",h);V6("yt-remote-cast2-availability-change",h)}),F.subscribe("yt-remote-cast2-receiver-selected",function(h){uw("onReceiverSelected: "+h.friendlyName);
_.tl("yt-remote-cast-receiver",h);V6("yt-remote-cast2-receiver-selected",h)}),F.subscribe("yt-remote-cast2-receiver-resumed",function(h){uw("onReceiverResumed: "+h.friendlyName);
_.tl("yt-remote-cast-receiver",h);V6("yt-remote-cast2-receiver-resumed",h)}),F.subscribe("yt-remote-cast2-session-change",function(h){uw("onSessionChange: "+f2x(h));
h||_.B2("yt-remote-cast-receiver");V6("yt-remote-cast2-session-change",h)}),_.S5("yt.mdx.remote.cloudview.instance_",F),E=!0);
uw("cloudview.createSingleton_: "+E);return E},pe=function(){return _.ju("yt.mdx.remote.cloudview.instance_")},t7g=function(F){CsO(!0);
zsu(!1);pe().init(!1,function(W){W?(qTg(!0),_.Shk("yt-remote-cast2-api-ready")):(Sx("Failed to initialize cast API."),CsO(!1),_.B2("yt-remote-cast-available"),_.B2("yt-remote-cast-receiver"),BWx());F(W)})},uw=function(F){jx("cloudview",F)},Sx=function(F){jx("cloudview",F)},CsO=function(F){uw("setCastInstalled_ "+F);
_.tl("yt-remote-cast-installed",F)},JFT=function(){return!!_.ju("yt.mdx.remote.cloudview.apiReady_")},qTg=function(F){uw("setApiReady_ "+F);
_.S5("yt.mdx.remote.cloudview.apiReady_",F)},zsu=function(F){_.S5("yt.mdx.remote.cloudview.initializing_",F)},Ke=function(F){this.index=-1;
this.videoId=this.listId="";this.volume=this.playerState=-1;this.muted=!1;this.audioTrackId=null;this.playerTimeAt_=this.playerTime_=0;this.trackData=null;this.hasNext=this.hasPrevious=!1;this.loadedTime=this.duration_=this.seekableEnd_=this.seekableStart_=0;this.liveIngestionTime_=NaN;this.isLive_=!1;this.reset(F)},OYx=function(){var F,W;
return _.e(function(E){if(E.nextAddress==1)return(_.JgY()||_.c("use_new_nwl"))&&_.ZfY().isNetworkAvailable()?_.Q(E,_.pU(),2):E.return();if(E.nextAddress!=3)return(F=E.yieldResult)?_.Q(E,tQP(F),3):E.return();W=E.yieldResult;if(!W.length)return E.return();W.forEach(function(h){var d={timestamp:h.timestamp};h=h.appShellAssetLoadReport?{payloadName:"appShellAssetLoadReport",payload:h.appShellAssetLoadReport,options:d}:h.clientError?{payloadName:"clientError",payload:h.clientError,options:d}:void 0;h&&
_.Pc(h.payloadName,h.payload,h.options)});
W.length===100&&_.P0.addLowPriorityJob(OYx);_.gG(E)})},bYw=function(F){if(F.playerResponse){if(F=F.playerResponse,F.messages&&F.messages.length>0&&(F=F.messages.find(function(W){return!(!W||!W.mealbarPromoRenderer)}))&&F.mealbarPromoRenderer)return F.mealbarPromoRenderer}else if(F.response&&(F=F.response)&&F.overlay&&F.overlay.mealbarPromoRenderer)return F.overlay.mealbarPromoRenderer},l2x=function(F){if(F.response){var W=F.response;
if(W&&W.overlay&&W.overlay.tooltipRenderer)return W.overlay.tooltipRenderer}if(F.playerResponse&&(F=F.playerResponse,F.messages&&F.messages.length>0&&(F=F.messages.find(function(E){return!(!E||!E.tooltipRenderer)}))&&F.tooltipRenderer))return F.tooltipRenderer},yFT=function(F){if(!nbK&&(F=F||_.b0("ZWIEBACK_PING_URLS"))&&F.length){nbK=!0;
for(var W=0;W<F.length;W++)_.iY(F[W])}},iYT=function(F){if(_.xd.get(_.b0("PLAYER_VARS",{}),"privembed",!1)!="1"){F&&NeK();
try{jjK().then(function(){},function(){}),_.RA(iYT,18E5)}catch(W){_.nW(W)}}},rFN=function(){var F=_.Ij(),W=F.getFlag(119),E=window.devicePixelRatio>1;
document.body&&_.YU(document.body,"exp-invert-logo")&&(E&&!_.YU(document.body,"inverted-hdpi")?_.ou(document.body,"inverted-hdpi"):!E&&_.YU(document.body,"inverted-hdpi")&&_.rh(document.body,"inverted-hdpi"));W!=E&&(_.c5(0,119,E),F.save())},TWK=function(F){return F.filter(function(W){return"ypcGetCartEndpoint"in W||"ypcFixInstrumentEndpoint"in W})},obK=function(F){return F.filter(function(W){return!_.D(W,_.Wop)})},YT$=function(F){F=_.U(F);
for(var W=F.next(),E={};!W.done;E={setter$jscomp$6:void 0},W=F.next()){var h=W.value;W=h.params;h=h.service;W&&h&&(E.setter$jscomp$6=GJF[h],E.setter$jscomp$6&&W.forEach(function(d){return function(V){var R=V.key;V=V.value;R&&V&&(0,d.setter$jscomp$6)(R,V)}}(E)))}},ujK=function(F,W){var E,h,d,V,R,M,g;
_.e(function(t){switch(t.nextAddress){case 1:E=_.nf.getInstance();h=_.Ru.instance;d=_.iz.instance;if(!d)return w5g(F,h,W),t.return();_.Nl(t,2);F.onLoadingCommand&&h.resolveCommand(F.onLoadingCommand);return _.Q(t,E.getCurrentPositionFromGeolocation(),4);case 4:V=t.yieldResult;if(!F.resolveLocationCommand){t.jumpTo(5);break}R=E.createLocationInfo(V);return _.Q(t,_.T_(d,F.resolveLocationCommand,{locationInfo:R}),6);case 6:M=t.yieldResult;if(!M||"error"in M&&M.error||M.errorMetadata)return w5g(F,h,W),
t.return();var C;if(M==null?0:(C=M.onResponseReceivedActions)==null?0:C.length){C=_.U(M.onResponseReceivedActions);for(var B=C.next();!B.done;B=C.next())h.resolveCommand(B.value)}(_.D(F.onSuccessCommand,_.GM)||_.D(F.onSuccessCommand,_.BB))&&_.hF(W.hostElement,"yt-navigate",{endpoint:F.onSuccessCommand,reload:!0});case 5:_.id(t,0);break;case 2:g=_.Ml(t);if(g instanceof GeolocationPositionError&&g.code===GeolocationPositionError.PERMISSION_DENIED)return F.onDeniedCommand&&h.resolveCommand(F.onDeniedCommand),
t.return();w5g(F,h,W);_.gG(t)}})},w5g=function(F,W,E){F.onFailureCommand&&(W.resolveCommand(F.onFailureCommand),_.dW(E.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]))},p5q=function(F,W){var E=_.D(F,_.ckM);
if(E&&W){F=E.videoIds||[E.videoId];var h;W=(h=_.hF(W,"yt-lockup-requested",{videoIds:F}).detail)==null?void 0:h.returnValue;var d;E.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"?d=W?W:F.map(function(V){return{videoId:V,navigationEndpoint:E.videoCommand}}):W&&(d=W);
d&&(h=d.map(function(V){var R=Object,M=R.assign;var g=V.navigationEndpoint;if(!_.D(g,_.DP)){var t=_.D(g,_.GM);if(t){if(delete t.index,delete t.playlistId,t=_.D(g==null?void 0:g.commandMetadata,_.m1),t==null?0:t.url){var C=t.url;C=_.pg(C,"list");C=_.pg(C,"index");t.url=C}}else g=void 0}return M.call(R,{},V,{ownerBadges:void 0,topStandaloneBadge:void 0,menu:void 0,navigationEndpoint:g})}),STw(h,E))}},mcw=function(F){var W=_.o0();
if(F=_.D(F,_.DSU))F.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"&&W.clearQueue(),F.closeMiniplayer&&_.WZ().resolve(_.GF).close(!0)},FfO=function(F){Ks8(_.o0(),F)},Wfg=function(F){var W;
(F=(W=_.D(F,_.vcX))==null?void 0:W.setVideoIds)&&F.forEach(function(E){_.z7H(_.o0(),E)})},h0T=function(F){ErP(_.o0(),F)},dng=function(){try{return!(!window.AudioContext&&!window.webkitAudioContext)}catch(F){return!1}},NRu=function(F){var W=_.WZ().resolve(_.Fd(_.xX));
if(W){var E={beforeTransition:function(){F.style.viewTransitionName="miniplayer-page-transition"},
afterTransition:function(){F.style.viewTransitionName=""}};
Fz(W,"slide",E);Fz(W,"zoom",E)}},VFg=function(F,W,E){return{horizontalAlignment:F.x+E.width/2<W.width/2?"west":"east",
verticalAlignment:F.y+E.height/2<W.height/2?"north":"south"}},e0O=function(F,W,E,h,d){d=d===void 0?new _.sp(0,0):d;
return Un6(R0F(F,W,E,h),d)},R0F=function(F,W,E,h){return new _.sp(F==="west"?16:E.width-h.width-16,W==="north"?16:E.height-h.height-16)},MFK=function(F,W){var E=0;
F&&(E+=76);W&&(E+=285);return E},grO=function(F){var W=["h",
"m","s"],E=_.Kb(W);E.reverse();var h={};F=(F.toLowerCase().match(/\d+\s*[hms]?/g)||[]).filter(function(R){var M=(R.match(/[hms]/)||[""])[0];return M?(h[M]=parseInt(R.match(/\d+/)[0],10),!1):!0});
for(F.reverse();F.length&&E.length;){var d=E.shift();d in h||(h[d]=parseInt(F.shift(),10))}if(F.length||h.s>59||h.m>59||h.h>9)return null;var V="";W.forEach(function(R){h[R]&&(V+=""+h[R]+R)});
return V||null},Qx6=function(F){F=F.data;
return _.z("yt-profile-badge-view-model",{class:"profile-badge-view-model-wiz"},_.z("div",{class:"profile-badge-view-model-wiz__badge-icon-container"},_.z(_.T4,{data:{thumbnails:[{url:F.badgeIconUrl}]},alt:"",targetWidth:36,targetHeight:36})),_.z("div",{class:"profile-badge-view-model-wiz__content"},_.z("div",{class:"profile-badge-view-model-wiz__badge-description"},F.badgeDesc),F.badgeSubtitle?_.z("div",{class:"profile-badge-view-model-wiz__badge-subtitle"},F.badgeSubtitle):null))},z0F=function(F){F=
F.data;
var W=_.uf();_.ffk(W,F.rendererContext);return _.z("yt-comment-interaction-view-model",{el:W,class:"yt-comment-interaction-view-model-wiz"},_.z("div",{class:"yt-comment-interaction-view-model-wiz__frame",role:"button","aria-label":F.onTapA11yLabel,"on:keydown":_.$Zr(),tabindex:0},_.z("div",{class:"yt-comment-interaction-view-model-wiz__header"},_.z("div",{class:"yt-comment-interaction-view-model-wiz__video-title"},F.headerPrefix,' "',F.videoTitle),_.z("div",{class:"yt-comment-interaction-view-model-wiz__video-title-quote"},
'"')),_.z("div",{class:"yt-comment-interaction-view-model-wiz__content"},_.z("div",{class:"yt-comment-interaction-view-model-wiz__comment-content"},F.commentContent),_.z("div",{class:"yt-comment-interaction-view-model-wiz__chevron"},_.z(_.T4,{data:{thumbnails:[{url:F.chevronUrl}]},alt:"",targetWidth:18,targetHeight:18})))))},CC6=function(F){F=F.data;
return _.z("yt-shared-subscription-view-model",{class:"yt-shared-subscription-view-model-wiz"},tFK(F.avatar),_.z("div",{class:"yt-shared-subscription-view-model-wiz__channel-name"},F.channelName))},vrg=function(F){F=F.data;
var W;return _.z("div",{class:"yt-profile-info-view-model-wiz__activity"},_.z("div",{class:"yt-profile-info-view-model-wiz__header"},_.z("div",{class:"yt-profile-info-view-model-wiz__section-title"},F.commentsInteractionTitle)),(W=F.comments)==null?void 0:W.map(function(E){return _.z("div",{class:"yt-profile-info-view-model-wiz__activity"},BRF(E))}))},Isw=function(F){F=F.data;
var W=_.Jm({elementsCommand:F.subscriptionsAccessButtonCommand}),E=_.uf();_.QUG(E,_.He(F.subscriptionsAccessButtonCommand));var h=_.tb(function(V){if(W==null?0:W.onclick)W.onclick(V);return!1}),d;
return _.z("div",{class:"yt-profile-info-view-model-wiz__sub-section"},_.z("div",{class:"yt-profile-info-view-model-wiz__sub-header"},_.z("a",{el:E,"on:click":h,class:"yt-profile-info-view-model-wiz__another-header"},_.z("div",{class:"yt-profile-info-view-model-wiz__section-title-modern"},F.sharedSubscriptionsTitle),_.z("div",null,BRF(F.subscriptionsAccessButton)))),_.z("div",{class:"yt-profile-info-view-model-wiz__subs"},(d=F.sharedSubscriptions)==null?void 0:d.slice(0,5).map(function(V){return _.z("div",
{class:"yt-profile-info-view-model-wiz__sub"}," ",BRF(V))})))},cEw=function(F){F=F.data;
var W;return _.z("div",{class:"yt-profile-info-view-model-wiz__sub-section"},_.z("div",{class:"yt-profile-info-view-model-wiz__sub-header"},_.z("h2",{class:"yt-profile-info-view-model-wiz__section-title"},F.sharedSubscriptionsTitle)),_.z("div",{class:"yt-profile-info-view-model-wiz__subs"},(W=F.sharedSubscriptions)==null?void 0:W.slice(0,5).map(function(E){return _.z("div",{class:"yt-profile-info-view-model-wiz__sub"}," ",BRF(E))})))},Dn6=function(F){F=F.data;
return _.z("div",{class:"yt-profile-info-view-model-wiz__activity"},[F.profileBadgeInfoYtWide,F.profileBadgeInfoChannelWide].map(function(W){var E,h,d,V,R;return W?_.z(_.EG,null,_.z("div",{class:"yt-profile-info-view-model-wiz__header"},_.z("div",{class:"yt-profile-info-view-model-wiz__section-title"},W==null?void 0:W.profileSectionTitle),_.z("div",{class:"yt-profile-info-view-model-wiz__section-desc"},_.z("div",{class:"yt-profile-info-view-model-wiz__section-subtitle"},W==null?void 0:(E=W.commentBadge)==
null?void 0:E.commentDesc),(W==null?0:(h=W.commentBadge)==null?0:h.blackHeartDesc)?_.z("div",{class:"yt-profile-info-view-model-wiz__section-divider"},"\u2022"):null,_.z("div",{class:"yt-profile-info-view-model-wiz__section-heart-icon"},_.z(_.T4,{data:{thumbnails:[{url:W==null?void 0:(d=W.commentBadge)==null?void 0:d.blackHeartIconUrl}]},alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})),_.z("div",{class:"yt-profile-info-view-model-wiz__section-subtitle"},W==null?void 0:(V=
W.commentBadge)==null?void 0:V.blackHeartDesc))),_.z("div",{class:"yt-profile-info-view-model-wiz__badge"},W==null?void 0:(R=W.badges)==null?void 0:R.map(function(M){return _.z(Qx6,{data:M})}))):null}))},xnx=function(F){F=F.data;
return _.z("yt-profile-info-view-model",{class:"yt-profile-info-view-model-wiz"},_.z(Dn6,{data:F}),F.comments?_.z(vrg,{data:F}):null,F.sharedSubscriptionsTitle?F.subscriptionsAccessButtonCommand?_.z(Isw,{data:F}):_.z(cEw,{data:F}):null)},AEF=function(F){var W=F.data;
F=W?krT(W.profileIdentityInfo):void 0;W=W?krT(W.profileInfo):void 0;return _.z("yt-profile-card-view-model",{class:"yt-profile-card-view-model-wiz",style:"overflow: hidden"},F,W)},sxw=function(F,W){var E=_.KEp(W,{},F,!0);
return new Promise(function(h,d){E.listenOnce("n",function(){d(Error("fl`"+E.JSC$25724_getErrorDescription()))});
E.listenOnce("l",function(){var V=E.getResponseCode();if(V!==200)d(Error("gl`"+W+"`"+F.type+"`"+F.size+"`"+V));else try{h(JSON.parse(E.getResponseText()).encryptedBlobId)}catch(R){d(R)}});
E.run()})},LfK=function(F){return F.substring(F.indexOf(":")+1,F.indexOf(";"))},q_K=function(F){return new Promise(function(W,E){var h=new FileReader;
h.onloadend=function(){try{var d=new Uint8Array(h.result);d.length<8&&E(void 0);var V=d.subarray(0,8);d="";for(var R=0;R<V.length;R++)d+=("0"+V[R].toString(16)).substr(-2);d.startsWith("ffd8ff")?W("image/jpeg"):d.startsWith("47494638")?W("image/gif"):d.startsWith("89504e470d0a1a0a")?W("image/png"):d.startsWith("424d")?W("image/bmp"):W(void 0)}catch(M){E(M)}};
h.onerror=E;h.readAsArrayBuffer(F)})},$n8=function(F){return new Promise(function(W,E){var h=new Image;
h.crossOrigin="anonymous";h.onload=function(){var d=document.createElement("canvas");d.width=h.naturalWidth;d.height=h.naturalHeight;var V=d.getContext("2d");if(!V)throw Error("hl");V.drawImage(h,0,0);V=LfK(F);d.toBlob(function(R){R?W(R):E()},V)};
h.src=F})},Xz6=function(F,W){var E;
if(((E=_.D(F,_.DP))==null?void 0:E.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var h;_.hF((h=W.hostElement)!=null?h:W,"yt-shorts-reset");_.U__(_.WZ().resolve(_.Uk),F).then(function(V){ZVP(V,W,F)})}else{var d;
_.UT((d=W.hostElement)!=null?d:W,[F]).then(function(V){V&&ZVP(V.data,W,F)})}},ZVP=function(F,W,E){if(F){var h=_.D(F.replacementEndpoint,_.DP);
if(h){F.sequenceContinuation&&(h.sequenceParams=F.sequenceContinuation);var d;_.hF((d=W.hostElement)!=null?d:W,"yt-navigate",{endpoint:F.replacementEndpoint})}else if((F==null?void 0:F.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&(F==null?0:F.watchStatus)&&_.D(F.watchStatus,_.EAi)){var V;_.hF((V=W.hostElement)!=null?V:W,"yt-navigate",{endpoint:E})}}},HVK=function(){var F=_.WZ().resolve(_.P2),W=l06(F.getState())||"";
F=_.csI(F.getState())||"";return{disableCache:W==="ytd-browse"&&F==="home"}},PCK=function(F){if(!F)return!1;
try{if(F.host&&F.host.tagName==="YT-FORMATTED-STRING"&&F.host.id==="contenteditable-textarea"||F.nodeType===Node.ELEMENT_NODE&&F.tagName==="YTD-COMMENT-INPUT")return!0}catch(W){return!1}return PCK(F.parentNode)},W1=function(F){return F?F.tagName==="A"&&F.href&&F.classList.contains("yt-simple-endpoint"):!1},JE8=function(F){return F?F.tagName==="IMG"&&F.classList.contains("emoji"):!1},asT=function(F,W,E){if(!F)return null;
var h=W1(F);if(h&&E)return W=F.pathname.substring(F.pathname.indexOf("/channel/")+9),document.createTextNode("@"+W);if(h&&!E)return document.createTextNode("");if(JE8(F))return E=F.alt,F=F.dataset.emojiId,!F&&W&&(W=_.sQ(W,E))&&W.isCustomEmoji&&(F=W.emojiId),F?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+F+">"):document.createTextNode(E);h=F.cloneNode(!1);for(var d=0;d<F.childNodes.length;++d){var V=asT(F.childNodes[d],W,E);V&&h.appendChild(V)}return h},EC=function(F){return F?W1(F)?F:EC(F.lastChild):
null},fsq=function(F){return F?W1(F)?F:fsq(F.firstChild):null},OVK=function(F){if(!F)return null;
for(var W=F.previousSibling;W;)if(W.nodeType===Node.ELEMENT_NODE&&W.nodeName==="BR")W=W.previousSibling;else if(W.nodeType===Node.TEXT_NODE&&/\s+/.test(W.textContent))W=W.previousSibling;else break;(W=EC(W))?F=W:F=(F=F.parentNode)?EC(F.previousElementSibling):null;return F},bVF=function(F){if(!F)return null;
for(var W=F.nextSibling;W;)if(W.nodeType===Node.ELEMENT_NODE&&W.nodeName==="BR")W=W.nextSibling;else if(W.nodeType===Node.TEXT_NODE&&/\s+/.test(W.textContent))W=W.nextSibling;else break;return(W=fsq(W))?W:bVF(F.parentNode)},lsN=function(F){var W=_.qv(),E=W.JSC$9155_getStartNode();
if(!PCK(E.parentNode))return null;W=W.JSC$9155_getStartOffset();if(E.nodeType===Node.TEXT_NODE){var h=_.HE(E,W1);if(h){if(F&&W===0||!F&&W===E.length)return h}else{if(F&&W===E.length)return!E||E.nodeName==="BR"||E.nextElementSibling&&_.$a(E.nextElementSibling,"display")==="block"?null:fsq(E.nextElementSibling);if(!F&&W===0)return E?EC(E.previousElementSibling):null}}if(E.nodeType===Node.ELEMENT_NODE)if(F){if(0<=W&&W<E.childNodes.length)return fsq(E.childNodes[W])}else if(0<W&&W<=E.childNodes.length)return EC(E.childNodes[W-
1]);return null},nrO=function(F,W,E){if(!F)return null;
if(F.nodeType===Node.TEXT_NODE)if(E){var h=OVK(F);if(h&&!/^\s+\S/.test(F.wholeText.substr(0,W)))return h}else if((h=bVF(F))&&!/\S\s+/.test(F.wholeText.substr(W,F.wholeText.length)))return h;return F.nodeType===Node.ELEMENT_NODE?E?OVK(F.childNodes[W]):bVF(F.childNodes[W]):nrO(F.parentNode,W,E)},yEK=function(F){if(F.hasChildNodes())switch(F.tagName){case "DIV":case "A":case "SPAN":var W="";
for(F=F.firstChild;F;F=F.nextSibling)W+=yEK(F);return W;default:return""}else switch(F.nodeType){case 3:return F.textContent;default:return""}},jxg=function(F){F=F.data;
return _.z("ytd-menu-title-renderer",{class:"ytd-menu-title-renderer"},_.z("div",null,_.z(_.Ab,{text:F.title})),F.subtitle?_.z("div",{class:"ytd-menu-title-renderer__subtitle"},_.z(_.Ab,{text:F.subtitle})):null)},iVK=function(F){switch(F){case "UNKNOWN_FORMAT_TYPE":return"SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_UNKNOWN";
case "HD_1080":return"SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD_1080";case "SD":return"SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_SD";case "LD":return"SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_LD";default:return"SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD"}},rEg=function(F){return F.map(function(W){return{settingsRadioOptionRenderer:{title:_.hE(W.name),
asideText:_.hE(W.approximateSize),id:iVK(W.format)}}})},orw=function(F){if(F&&F.length!==0)return F.filter(TRN()).map(function(W){return{settingsRadioOptionRenderer:{title:W.name,
asideText:W.approximateSize,id:iVK(W.formatType)}}})},hS=function(F){if(F)return F.replaceAll("&nbsp;"," ").replaceAll("&#39;","'")},Gru=function(F,W){F=new Set(F!=null?F:[]);
if(F.has(790))return"YOUTUBE_ENTITY_TYPE_CHANNEL";if(F.has(788))return"YOUTUBE_ENTITY_TYPE_TV_SHOW";if(F.has(789))return"YOUTUBE_ENTITY_TYPE_MOVIE";if(F.has(786))return"YOUTUBE_ENTITY_TYPE_SONG";if(F.has(787))return"YOUTUBE_ENTITY_TYPE_ALBUM";if(W)return"YOUTUBE_ENTITY_TYPE_DEFAULT"},Y_w=function(F){var W=F.indexOf("(");
return W!==-1?F.substring(W+1,F.length-1):F},wzw=function(F){switch(F){case 38:return-1;
case 40:return 1;case 37:return-1;case 39:return 1;default:return 0}},S_T=function(F,W,E,h,d,V){var R=_.xd.clone(uDK);
R.locale=_.b0("SBOX_SETTINGS",{}).REQUEST_LANGUAGE;R.report={description:d||"<empty>"};d=_.b0("SBOX_SETTINGS",{});W=W.join(",");var M=Date.now();F={choice_cc:h,choice_id_cc:E,choices_sc:W,gl:d.REQUEST_DOMAIN,hl:d.REQUEST_LANGUAGE,query:F,time:M};V&&(F.choice_additional_comment_cc=V);_.NHi(R,F)},pz6=function(F){var W=new Map;
W.set("authuser",_.b0("SESSION_INDEX","0"));return _.KL(F,W)},Kf6=function(F){var W;
return _.e(function(E){switch(E.nextAddress){case 1:if(!F||!mn6(F))return E.return(null);W=null;switch(_.b0("INNERTUBE_CLIENT_NAME")){case "WEB":return E.jumpTo(2);case "WEB_REMIX":W=F.getPlayer()}E.jumpTo(3);break;case 2:return _.Q(E,F.getPlayerPromise(),4);case 4:W=E.yieldResult;E.jumpTo(3);break;case 3:return E.return(W)}})},mn6=function(F){return["ytd-player",
"ytmusic-player"].includes(String(F.tagName||"").toLowerCase())},FJq=function(F){F=Math.round(F);
return F%2?F-1:F},WJg=function(F){F=Math.round(F);
return F%2===0?F-1:F},EuN=function(F){var W,E,h;
if(F=(W=F.createPlaylistDialogFormSchema)==null?void 0:(E=W.fieldSchemas)==null?void 0:(h=E.title)==null?void 0:h.validationSchema)for(W=[F.syncStep,F.asyncStep].filter(function(d){return d!==void 0}),W=_.U(W),E=W.next();!E.done;E=W.next()){E=E.value.rules;
if(!E)break;E=_.U(E);for(E=E.next();!E.done;E=E.next())return _.D(E.value,_.VS6)}},dzP=function(F){var W,E,h;
if(F=(W=F.createPlaylistDialogFormSchema)==null?void 0:(E=W.fieldSchemas)==null?void 0:(h=E.visibility)==null?void 0:h.validationSchema)for(W=[F.syncStep,F.asyncStep].filter(function(d){return d!==void 0}),W=_.U(W),E=W.next();!E.done;E=W.next()){E=E.value.rules;
if(!E)break;E=_.U(E);for(h=E.next();!h.done;h=E.next())if(h=_.D(h.value,hn$))return W=void 0,(W=h.translations)==null?void 0:W.visibilityNotValidErrorMessage}},N2g=function(){var F,W;
return(W=(F=_.WZ().resolve(_.Fd(_.nK)))==null?void 0:F())!=null?W:!1},VRx=function(F,W){a:switch(W){case "DIALOG_HEADER_ASSET_PADDING_STYLE_INSET":W="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO";
break a;default:W="CONTENT_PREVIEW_IMAGE_STYLE_DEFAULT"}return{themedImage:F,style:W,layoutMode:"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"}},UzK=function(F){var W=21;
if(!F)return W;W+=F.headerTitle?27:0;W+=F.headerTitle&&F.hasHeaderActionHeader?4:0;return W+=F.headerTitle&&F.headerSubtitle?16:0},RnP=function(F){var W=0;
if(!F)return W;W+=F.hasFooterPrimaryButton||F.hasFooterSecondaryButton?48:0;W+=F.footerTrailingLabel||F.footerLeadingLabel?30:0;return W+=F.hasFooterPrimaryButton||F.hasFooterSecondaryButton||!F.footerTrailingLabel&&!F.footerLeadingLabel?0:12},enP=function(F){var W=new _.tc,E=F;
return{subscribe:function(h){W.subscribe("changed",h)},
dispatch:function(h,d){var V=E;h==="Touch Start"?E=Object.assign({},V,{isAnimating:!1,initialY:d.event.touches[0].clientY}):h==="Touch Move"?(h=Math.min(d.fullContentWrapperHeight,d.contentHeightMap[d.contentWrapperId]+UzK(d.header)-RnP(d.footer)),E=Object.assign({},V,{currentY:Math.max(d.contentScrollable?-1*(V.initialY-24):0,d.event.touches[0].clientY-V.initialY),maxHeightForContentWrapper:Math.min(h,Math.max(0,(V.isFullScreen?h:d.contentWrapperHeight)-V.currentY))})):E=h==="Snap To Full Screen"?
Object.assign({},V,{isAnimating:!1,currentY:0,isFullScreen:!0,maxHeightForContentWrapper:d.maxHeight}):h==="Snap To Neutral Position"?Object.assign({},V,{isAnimating:!1,currentY:0,isFullScreen:!1,maxHeightForContentWrapper:d.maxHeight}):h==="Close Sheet"?Object.assign({},V,{isAnimating:!0,currentY:d.clientHeight,isFullScreen:!1,maxHeightForContentWrapper:d.maxHeight}):V;W.publish("changed",E)}}},MRN=function(F){return _.tb(function(W){F(W);
return!1})},guO=function(){_.WZ().resolve(_.L1).closeSheet()},Qo6=function(F){var W,E,h,d,V,R,M,g,t,C,B;
return{headerTitle:(W=F.headerTitle)==null?void 0:W.call(F),headerSubtitle:(E=F.headerSubtitle)==null?void 0:E.call(F),headerActionHeader:F.headerActionHeader,footerPrimaryButton:F.footerPrimaryButton,footerSecondaryButton:F.footerSecondaryButton,footerButtonType:(h=F.footerButtonType)==null?void 0:h.call(F),footerLeadingLabel:(d=F.footerLeadingLabel)==null?void 0:d.call(F),footerTrailingLabel:(V=F.footerTrailingLabel)==null?void 0:V.call(F),shouldShowIcons:(R=F.shouldShowIcons)==null?void 0:R.call(F),
skipContentClick:(M=F.skipContentClick)==null?void 0:M.call(F),additionalClassName:(g=F.additionalClassName)==null?void 0:g.call(F),onClosedCallback:F.onClosedCallback,focusOnClose:(t=F.focusOnClose)==null?void 0:t.call(F),isDisabled:(C=F.isDisabled)==null?void 0:C.call(F),disabledCommand:(B=F.disabledCommand)==null?void 0:B.call(F),headerFn:F.headerFn,contentFn:F.contentFn,footerFn:F.footerFn,hasHeaderFn:F.hasHeaderFn(),hasContentFn:F.hasContentFn(),hasFooterFn:F.hasFooterFn(),hasFooterPrimaryButton:F.hasFooterPrimaryButton(),
hasFooterSecondaryButton:F.hasFooterSecondaryButton(),hasHeaderActionHeader:F.hasHeaderActionHeader()}},znN=function(F){switch(F){case "FLEXBOX_FLEX_DIRECTION_ROW":return"row";
case "FLEXBOX_FLEX_DIRECTION_ROW_REVERSE":return"row-reverse";case "FLEXBOX_FLEX_DIRECTION_COLUMN":return"column";case "FLEXBOX_FLEX_DIRECTION_COLUMN_REVERSE":return"column-reverse";default:return""}},tR8=function(F){switch(F){case "FLEXBOX_JUSTIFY_CONTENT_CENTER":return"center";
case "FLEXBOX_JUSTIFY_CONTENT_BETWEEN":return"space-between";case "FLEXBOX_JUSTIFY_CONTENT_FLEX_START":return"flex-start";case "FLEXBOX_JUSTIFY_CONTENT_FLEX_END":return"flex-end";case "FLEXBOX_JUSTIFY_CONTENT_SPACE_AROUND":return"space-around";default:return""}},CbN=function(F){switch(F){case "FLEXBOX_ALIGN_ITEMS_CENTER":return"center";
case "FLEXBOX_ALIGN_ITEMS_START":return"flex-start";case "FLEXBOX_ALIGN_ITEMS_END":return"flex-end";case "FLEXBOX_ALIGN_ITEMS_STRETCH":return"stretch";default:return""}},B2x=function(F,W,E){W.forEach(function(h){_.Bt(_.WZ().resolve(_.cU),h)});
_.dW(F,"yt-close-popup-action",["yt-gen-ai-feedback-form-view-model",E])},Dzu=function(F,W,E,h){var d=_.D(E,_.Gh).commandLifeCycleConfig;
d&&d.onStartCommand&&_.Rj(F,[d.onStartCommand],W);_.W6(W);var V=_.iz.instance;V&&_.rY(V,E)?_.T_(V,E,h).then(function(R){if(!R||(R==null?0:R.error))return R=_.D(E,_.Gh).serializedTransactionFlowLoggingParams,_.EZ(W),_.xT(new df("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",R));_.EZ(W);return{data:R}}).then(function(R){_.EZ(W);
vu6(R.data);var M=R.data.command;M&&_.Rj(F,[M],W);M=IPK(E,R.data);if(!M){var g=R.data;R=!1;if(g&&g.command&&_.D(g.command,_.Mc)){var t;g=((t=_.D(g.command,_.Mc))==null?void 0:t.commands)||[];for(t=0;t<g.length;t++)if(_.D(g[t],_.lTM)){R=!0;break}}R||_.kE('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}')}!M&&d&&d.onSuccessCommand?_.Rj(F,[d.onSuccessCommand],W):M&&d&&d.onFailureCommand&&_.Rj(F,[d.onFailureCommand],W)},function(){_.EZ(W);
d&&d.onFailureCommand&&_.Rj(F,[d.onFailureCommand],W);cg6(E)}):_.a_(Error("yl"),"ERROR")},xzw=function(F,W,E){var h=[W];
E&&h.push(E);return _.UT(F,h).then(function(d){var V=_.D(W,_.Gh).serializedTransactionFlowLoggingParams,R=d.data,M=IPK(W,R);M?d=_.xT(new df(M,V)):vu6(R);return d},function(){var d=_.D(W,_.Gh).serializedTransactionFlowLoggingParams;
cg6(W);return _.xT(new df("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",d))})},IPK=function(F,W){F=_.D(F,_.Gh).serializedTransactionFlowLoggingParams;
var E=null;switch(W.ypcResponseCode){case "YPC_RESPONSE_CODE_ERROR":E="TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE";break;case "YPC_RESPONSE_CODE_ERROR_PROMO_CODE_POLICY_VIOLATION":E="TRANSACTION_ERROR_TYPE_REJECTED_WITH_PROMO_CODE_POLICY_VIOLATION";break;case "YPC_RESPONSE_CODE_LIVE_CHAT_BACKEND_ERROR":E="TRANSACTION_ERROR_TYPE_LIVE_CHAT_BACKEND_ERROR"}E?_.ib(E,F):Xc6(F);return E},cg6=function(F){_.ib("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",_.D(F,_.Gh).serializedTransactionFlowLoggingParams)},
vu6=function(F){if(F.trackingParams){var W=_.JR(),E=_.Pf();
W&&E&&_.y7(W,E,_.ve(F.trackingParams))}},kB6=function(F,W,E){var h=_.iz.instance,d=_.Q5I(_.b0("YPC_MB_URL")),V=(new _.Mor).init(),R=_.gLG(),M=_.D(E,_.aTB).languageCode;
M===void 0?_.a_(Error("Ci"),"ERROR"):_.X8([V,d]).then(function(){var g={ctk:payments.business.integration.ClientTokenFactory.createClientToken(M,R)};h&&_.rY(h,E)?_.T_(h,E,g).then(function(t){return{data:t}}).then(function(t){_.hF(W,"yt-service-request-completed",t);
t.code!=="ERROR"&&(t=t.data.command)&&_.Rj(F,[t],W)}):_.a_(Error("yl"),"ERROR")})},LJ6=function(F,W,E,h){var d=_.iz.instance;
d&&_.rY(d,E)?_.T_(d,E,h).then(function(V){return{data:V}}).then(function(V){AgO(F,W,E,V)},function(){so8(E)}):(d=_.WZ().resolve(_.Fd(_.Ag)))&&d.requestDataForServiceEndpoint(E,h).then(function(V){AgO(F,W,E,V)},function(){so8(E)})},AgO=function(F,W,E,h){_.hF(W,"yt-service-request-completed",h);
if(h.code&&h.code=="ERROR")so8(E);else{(h=h.data.commands)&&_.Rj(F,h,W);var d;(F=(d=_.D(E,_.y5T))==null?void 0:d.serializedYpcPauseFlowLoggingParams)&&F&&_.fZ("ypcPauseFlowSucceeded","serializedYpcPauseFlowLoggingParams",F)}},so8=function(F){var W;
(F=(W=_.D(F,_.y5T))==null?void 0:W.serializedYpcPauseFlowLoggingParams)&&F&&_.fZ("ypcPauseFlowFailed","serializedYpcPauseFlowLoggingParams",F,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")},Zfq=function(F,W,E){var h=_.iz.instance;
h&&_.rY(h,E)?_.T_(h,E).then(function(d){return{data:d}}).then(function(d){qhg(F,W,E,d)},function(){$zK(E)}):(h=_.WZ().resolve(_.Fd(_.Ag)))&&h.requestDataForServiceEndpoint(E).then(function(d){qhg(F,W,E,d)},function(){$zK(E)})},qhg=function(F,W,E,h){_.hF(W,"yt-service-request-completed",h);
h.code&&h.code=="ERROR"?$zK(E):((h=h.data.commands)&&_.Rj(F,h,W),(F=_.D(E,_.j0_).serializedYpcResumeFlowLoggingParams)&&F&&_.fZ("ypcResumeFlowSucceeded","serializedYpcResumeFlowLoggingParams",F))},$zK=function(F){(F=_.D(F,_.j0_).serializedYpcResumeFlowLoggingParams)&&F&&_.fZ("ypcResumeFlowFailed","serializedYpcResumeFlowLoggingParams",F,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")},XBq=function(F){F=F===void 0?{}:F;
_.WZ().resolve(_.mPB).showFeedbackDialog(F.customProductData,F.feedbackContent,F.onFeedbackSubmitted,F.bucket)},HfK=function(F){F=F===void 0?{}:F;
_.WZ().resolve(_.mPB).showHelpDialog(F.helpContext,F.articleId,F.productData)},Pb$=function(){HfK()},Jgq=function(){XBq()},fP6=function(F,W,E){var h,d,V,R,M,g,t;
return _.e(function(C){switch(C.nextAddress){case 1:h=_.D(F,aPP);if((d=h)==null?0:d.productId){g={productId:h.productId,bucket:h.bucket,enableAnonymousFeedback:(M=h.enableAnonymousFeedback)!=null?M:!0,allowNonLoggedInFeedback:!0};t={feedbackChoice:E.feedbackChoice};if(!_.c("web_collect_offline_state")){C.jumpTo(8);break}_.Nl(C,9);return _.Q(C,yVN(t),11)}R={bucket:(V=h)==null?void 0:V.bucket};if(!_.c("web_collect_offline_state")){C.jumpTo(4);break}R.customProductData={};_.Nl(C,5);return _.Q(C,yVN(R.customProductData),
7);case 7:_.id(C,4);break;case 5:_.Ml(C);case 4:XBq(R);C.jumpTo(0);break;case 11:_.id(C,8);break;case 9:_.Ml(C);case 8:_.NbR(t),_.dkb("GFEEDBACK",t),h.productId==="5295751"&&(t.client_attestation=Number(_.b0("CATSTAT",0))),h.productId==="5295751"&&(t.client_time=Date.now()/1E3/3600),h.productId==="5295751"&&(t.original_playback_id=_.st_||""),_.NHi(g,t),_.gG(C)}})},OfN=function(F){if(F=_.D(F,_.u9k)){var W={bucket:F.bucketIdentifier};
F.additionalDatas&&(W.customProductData={},F.additionalDatas.forEach(function(E){if(E=E.userFeedbackEndpointProductSpecificValueData)W.customProductData[E.key]=E.value}));
XBq(W)}},bfK=function(F){var W=_.o_.getInstance();
var E=_.CY("DELETE_ALL_DOWNLOADS_PROMPT",void 0,"Delete all downloads?");var h=_.CY("DELETE",void 0,"Delete"),d=_.CY("CANCEL",void 0,"Cancel");E=wZO(E,void 0,h,d,{signal:"DELETE_ALL_DOWNLOADS"});_.yS(W,[{openPopupAction:E}],F)},nuu=function(){return _.e(function(F){return F.nextAddress==1?_.Q(F,_.WZ().resolve(_.W7),2):_.Q(F,lPO(),0)})},ygq=function(F){var W,E;
return _.e(function(h){return h.nextAddress==1?(E=(W=_.D(F,_.jh))==null?void 0:W.targetId)?_.Q(h,_.WZ().resolve(_.W7),3):h.jumpTo(0):_.Q(h,_.WZ().resolve(_.FS).deleteVideo(E),0)})},ifO=function(F){var W,E;
return _.e(function(h){return h.nextAddress==1?(E=(W=_.D(F,_.jh))==null?void 0:W.targetId)?_.Q(h,_.WZ().resolve(_.W7),3):h.jumpTo(0):_.Q(h,joP(_.WZ().resolve(_.FS),E),0)})},T2w=function(F){var W,E;
return _.e(function(h){return(E=(W=_.D(F,_.jh))==null?void 0:W.targetId)?_.Q(h,rg$(E),0):h.jumpTo(0)})},GB8=function(){_.c("kevlar_woffle_refresh_dl_load_killswitch")||ouK()},wBK=function(){_.c("kevlar_woffle")&&_.lb.instance&&YhF()},Sh$=function(F){var W;
if((W=_.D(F,_.vS))==null||!W.videoId)return!1;uCg(_.WZ().resolve(_.FS),_.D(F,_.vS),F.clickTrackingParams);return!0},mz8=function(F){var W;
if((W=_.D(F,_.I6))==null||!W.playlistId)return!1;pBK(_.WZ().resolve(_.FS),_.D(F,_.I6),F.clickTrackingParams);return!0},FV$=function(F){var W=_.D(F,_.fIT);
(W==null?void 0:W.settingItemId)!=="SMART_DOWNLOADS_ENABLED"&&(W==null?void 0:W.settingItemId)!=="SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED"||KJK(_.WZ().resolve(_.FS),_.D(F,_.fIT))},E3N=function(F){F=_.D(F,_.eiT);
var W;(F==null?0:(W=F.actions)==null?0:W.length)&&WVw(F)},NQP=function(F){var W,E;
return _.e(function(h){W=_.D(F,hzx);return(E=W)!=null&&E.localWatchHistoryCommandType?_.Q(h,d3x(W),0):h.return()})},VaK=function(F){setTimeout(function(){requestAnimationFrame(F)},80)},U3N=function(F){return Object.entries(F).map(function(W){return W.join(":")}).join(";")},ezq=function(F){var W,E,h;
_.e(function(d){if(d.nextAddress==1)return _.Q(d,Rzq(),2);W=d.yieldResult;E=_.Ru.instance;switch(W){case "granted":h=F.getLocationCommand;break;case "denied":h=F.openDeniedDialogAction;break;case "prompt":h=F.openCollectionDialogAction;break;default:h=F.openCollectionDialogAction}h&&E.resolveCommand(h);_.gG(d)})},Rzq=function(){var F,W;
return _.e(function(E){if(E.nextAddress==1)return F="prompt",navigator.permissions?_.Q(E,navigator.permissions.query({name:"geolocation"}),3):E.jumpTo(2);E.nextAddress!=2&&(W=E.yieldResult,F=W.state);return E.return(F)})},g3$=function(){_.e(function(F){return _.Q(F,_.Maq(),0)})},Q4w=function(){var F,W,E;
return _.e(function(h){if(h.nextAddress==1)return F=_.WZ().resolve(_.sh),F?_.Q(h,_.T_(F,{signalServiceEndpoint:{signal:"GET_DATASYNC_IDS"}}),2):(_.OB(Error("Bl")),h.return(void 0));if(W=h.yieldResult){if(W.errorMetadata)return _.OB(Error("Cl`"+W.errorMetadata.status+"`"+W.error)),h.return(void 0);E=W.datasyncIds;_.SMX=E.length;return h.return(E)}_.OB(Error("Dl"));return h.return(void 0)})},zzP=function(){Q4w().then(function(F){F&&(Qr6(F),PfK(F),Etx(F),inq(F))})},taO=function(F){_.P0.addLowPriorityJob(function(){var W,
E,h,d,V;
return _.e(function(R){switch(R.nextAddress){case 1:if(_.c("ytidb_clear_optimizations_killswitch")){R.jumpTo(2);break}W=_.cZ("clear");if(W.startsWith("V")&&W.endsWith("||")){var M=[W];Qr6(M);PfK(M);Etx(M);inq(M);return R.return()}E=hyP();h=rVq();return _.Q(R,JVq(),3);case 3:return d=R.yieldResult,_.Q(R,zo$(),4);case 4:if(V=R.yieldResult,!(E||h||d||V))return R.return();case 2:F.isNetworkAvailable()?zzP():F.listenOnce("publicytnetworkstatus-online",zzP),_.gG(R)}})})},Nq=function(F){F={openPopupAction:{popupType:"TOAST",
popup:{notificationActionRenderer:{responseText:_.Gr(F)}}}};_.Ru.instance&&_.Ru.instance.resolveCommand(F)},C1T=function(F){if(F){var W=_.z4();
_.QH(W,3854,void 0,{layer:0,parentLayer:4});switch(F){case 1:var E=238708;break;case 2:E=238715;break;case 3:E=238710;break;case 6:E=238709}E&&(F=_.Qd(W,{veType:E}))&&_.Co(W,F)}},BQq=function(F){if(F){var W=_.z4();
_.QH(W,3854,void 0,{layer:0,parentLayer:4});switch(F){case 1:var E=238714;break;case 2:E=238711;break;case 8:E=238709;break;case 7:E=238713;break;case 3:case 4:case 5:E=238712}E&&(F=_.Qd(W,{veType:E}))&&_.Co(W,F)}},v3P=function(F){switch(F.latencyType){case 0:_.Z2("consent_primitive_flow");
_.P5("cpit",F.timestampEpochMillis,"consent_primitive_flow");break;case 3:_.P5("cpist",F.timestampEpochMillis,"consent_primitive_flow");break;case 5:_.P5("cprtif",F.timestampEpochMillis,"consent_primitive_flow");break;case 4:_.P5("cprtli",F.timestampEpochMillis,"consent_primitive_flow");break;case 6:_.P5("cprt",F.timestampEpochMillis,"consent_primitive_flow");break;case 7:_.P5("cpdt",F.timestampEpochMillis,"consent_primitive_flow");break;case 8:_.P5("cpjct",F.timestampEpochMillis,"consent_primitive_flow")}},
$3K=function(F,W){var E,h,d,V,R,M,g,t,C,B,I,x,A,X,P,b,l,w,G,hr;
return _.e(function(p){switch(p.nextAddress){case 1:_.Nl(p,2);(h=(E=_.D(F,IGq))==null?void 0:E.serializedConsentRequest)||(h=(d=_.D(F,cTK))==null?void 0:d.serializedConsentRequest);h&&(V=D3u(_.CT(h)));if(V===void 0)return p.return();R=x38(V);R.latencyCallback=v3P;W&&kKK(R,function(){W.then(function(UY){UY.pauseVideo();(new ATT).increment()})});
return((M=_.D(F,IGq))==null?void 0:M.consentAction)==="CONSENT_ACTION_PREWARM"||((g=_.D(F,cTK))==null?void 0:g.consentAction)==="CONSENT_ACTION_PREWARM"?_.Q(p,s4N(R),5):_.Q(p,LV6(R),6);case 6:t=p.yieldResult;C=_.Xc(t,VI);if(C===1){if(((B=_.j2(t,UC,1,VI))==null?void 0:_.lj(B,1))===1||((I=_.j2(t,UC,1,VI))==null?void 0:_.lj(I,1))===2||((x=_.j2(t,UC,1,VI))==null?void 0:_.lj(x,1))===3)_.D(F,cTK)?Nq(_.CY("MMG_CONFIRMATION",{},"Your choices have been saved. You can change your choices anytime in your Google Account.")):
Nq(_.CY("DMA_CONSENT_CONFIRMATION2",{},"Your choices have been saved. You can change your choices anytime in your Google Account."));C1T((A=_.j2(t,UC,1,VI))==null?void 0:_.lj(A,1),_.KC(t,qOF,3,_.Fg()))}else C===2?(((X=Rh(t))==null?void 0:_.lj(X,1))===5?_.D(F,cTK)?Nq(_.CY("MMG_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):Nq(_.CY("DMA_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):((P=Rh(t))==null?void 0:_.lj(P,1))===1||((b=Rh(t))==null?void 0:_.lj(b,1))===4?Nq(_.CY("DMA_CONSENT_GENERAL_ERROR",
{},"Something went wrong while loading")):((l=Rh(t))==null?void 0:_.lj(l,1))===7&&((w=V)==null?void 0:(G=_.Em(w,eN,4))==null?void 0:_.lj(G,4))!==1&&Nq(_.CY("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),BQq((hr=Rh(t))==null?void 0:_.lj(hr,1))):Nq(_.CY("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading"));p.jumpTo(5);break;case 5:_.id(p,0);break;case 2:_.Ml(p),Nq(_.CY("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),_.gG(p)}})},XmN=function(){if(!ZzF.has("Worker")){ZzF.set("Worker",
!0);
var F={api:"BROWSER_API_WEB_WORKER"};F.available="Worker"in window?!0:!1;_.Pc("apiTest",F)}},HzP=function(F){return typeof F==="undefined"?"-1":String(Math.ceil(F/1048576))},fGg=function(F,W){P1K(new JTK(_.D(W,aGu).addToken,_.D(W,aGu).commonToken)).then(function(){_.hF(F,"yt-invoke-instrument-manager-action-completed")},function(E){_.hF(F,"yt-invoke-instrument-manager-action-error",E)})},OzP=function(F){return _.Yi(F)},bzN=function(F){var W=1;
F=F.split(":");for(var E=[];W>0&&F.length;)E.push(F.shift()),W--;F.length&&E.push(F.join(":"));return E},lGq=function(F,W){W=F.aspectRatio()<=W.aspectRatio()?W.width/F.width:W.height/F.height;
F.scale(W)},n3K=function(F,W){W=F.aspectRatio()>W.aspectRatio()?W.width/F.width:W.height/F.height;
return F.scale(W)},yTK=function(F){var W=new _.th;
return _.ij(W,11,F)},j4T=function(F){var W={};
F=F.getAllResponseHeaders().split("\r\n");for(var E=0;E<F.length;E++)if(!_.Mw(F[E])){var h=bzN(F[E]),d=h[0];h=h[1];if(typeof h==="string"){h=h.trim();var V=W[d]||[];W[d]=V;V.push(h)}}return _.xd.map(W,function(R){return R.join(", ")})},v4=function(F,W){return F.JSC$7701_xhr_?F.JSC$7701_xhr_.getResponseHeader(W):null},Mq=function(F,W,E){Array.isArray(E)||(E=[String(E)]);
_.rvp(F.JSC$7936_queryData_,W,E);return F},YhF=function(){var F=_.lb.instance;
_.e(function(W){return F.deferredInstallPrompt?_.Q(W,F.deferredInstallPrompt.prompt(),0):W.jumpTo(0)})},izg=function(F,W,E){if(_.Ee(F))_.Tk(F,W,E);
else for(F=_.Smu(F);;){var h=F.next();if(h.done)break;W.call(E,h.value,void 0,F)}},rTx={AND_START:["{0}, {1}",
"{0}, {1}","{0}, {1}"],AND_TWO:["{0} and {1}","{0} & {1}","{0}, {1}"],AND_END:["{0}, and {1}","{0}, & {1}","{0}, {1}"],OR_TWO:["{0} or {1}","{0} or {1}","{0} or {1}"],OR_END:["{0}, or {1}","{0}, or {1}","{0}, or {1}"],UNIT_START:["{0}, {1}","{0}, {1}","{0} {1}"],UNIT_MIDDLE:["{0}, {1}","{0}, {1}","{0} {1}"],UNIT_END:["{0}, {1}","{0}, {1}","{0} {1}"]},nTq,ymF,jug,iK$,rm6,ThP,oTx,G4g,Y6K,rg$,joP,lPO,we$,uPw,S6$,pe$,mrx,pBK,uCg,K_K,FAq,WA8,ouK,KJK,EYu,WVw,hpg,d3x,djw,NYK,Vcu,Ujq,Rp$,epT,McO,Fz,gYT,Q3u,
Ks8,STw,zpP,B1,v1,Ih,c1,tcP,CzT,BYF,vYx,IRu,cbT,DjK,xjx,k_P,Abg;rTx={AND_START:["{0}, {1}","{0}, {1}","{0}, {1}"],AND_TWO:["{0} and {1}","{0} & {1}","{0}, {1}"],AND_END:["{0}, and {1}","{0}, & {1}","{0}, {1}"],OR_TWO:["{0} or {1}","{0} or {1}","{0} or {1}"],OR_END:["{0}, or {1}","{0}, or {1}","{0}, or {1}"],UNIT_START:["{0}, {1}","{0}, {1}","{0} {1}"],UNIT_MIDDLE:["{0}, {1}","{0}, {1}","{0} {1}"],UNIT_END:["{0}, {1}","{0}, {1}","{0} {1}"]};
var TQ6=function(F,W){var E=[];izg(W,function(h){try{var d=_.NW.prototype.getWrapper.call(this,h,!0)}catch(V){if(V=="Storage: Invalid value was encountered")return;throw V;}d===void 0?E.push(h):_.uHu(d)&&E.push(h)},F);
return E},o38=function(F,W){TQ6(F,W).forEach(function(E){_.NW.prototype.remove.call(this,E)},F)},GKN=function(F){var W=_.SM;
W._minimumZ=Math.max(W._minimumZ,F)},YOK=["www.youtube-nocookie.com",
"www.youtubeeducation.com","youtube.googleapis.com"],wmw=function(F,W){_.u5(F.ev);F.ev=W},umN=function(F,W,E,h){F.setState(5);
var d=!!F.gzM&&YOK.includes(_.Su(F.gzM)||"");try{var V=new _.nP({program:W,globalName:E,vc:{disable:!_.c("att_web_record_metrics")||!_.c("att_skip_metrics_for_cookieless_domains_ks")&&d,vM:"aGIf"}});V.yrg.then(function(){F.setState(6);h&&h(W)});
wmw(F,V)}catch(R){F.setState(7),R instanceof Error&&_.OB(R)}},SOK=function(F,W,E,h,d,V){var R=R===void 0?"trayride":R;
E?(F.setState(2),_.lI(E,function(){if(window[R])umN(F,h,R,d);else{F.setState(3);var M=_.pIW(E),g=document.getElementById(M);g&&(_.mzR(M),g.parentNode.removeChild(g));_.OB(new _.xC("BL:ULB",E))}},V)):W?(V=_.Cr("SCRIPT"),W instanceof _.fu?_.li(V,W):V.textContent=W,V.nonce=_.aI(document),document.head.appendChild(V),document.head.removeChild(V),window[R]?umN(F,h,R,d):(F.setState(4),_.OB(new _.xC("BL:ULBJ")))):_.OB(new _.xC("BL:ULV"))},pm6=function(){this.state=1;
this.ev=null;this.gzM=void 0};
_.N=pm6.prototype;_.N.initialize=function(F,W,E,h){this.gzM=h;if(F.program){var d;h=(d=F.interpreterUrl)!=null?d:null;if(F.interpreterSafeScript)d=_.Dnr(F.interpreterSafeScript);else{var V;d=(V=F.interpreterScript)!=null?V:null}F.interpreterSafeUrl&&(h=_.JH(F.interpreterSafeUrl).toString());SOK(this,d,h,F.program,W,E)}else _.OB(Error("lf"))};
_.N.isInitialized=function(){return!!this.ev};
_.N.getState=function(){return this.state};
_.N.isLoading=function(){return this.state===2};
_.N.invoke=function(F){F=F===void 0?{}:F;var W;this.ev?W=_.POT(this.ev,{sY:F}):W=null;return W};
_.N.dispose=function(){wmw(this,null);this.setState(8)};
_.N.setState=function(F){this.state=F};
var m3q=function(F,W){return F.ev.snapshot(W)},KVx=function(F,W){var E=_.dV("botguard_async_snapshot_timeout_ms",3E3);
W=W===void 0?{}:W;E=E===void 0?3E3:E;return F.ev?new Promise(function(h,d){var V=!1,R=_.P0.addJob(function(){V=!0;d(Error("mf"))},1,E);
F.ev?m3q(F,{sY:W}).then(function(M){_.P0.cancelJob(R);V||h(M)}).catch(function(M){_.P0.cancelJob(R);
V||d(M)}):(_.P0.cancelJob(R),h(null))}):Promise.resolve(null)},F_$=["att/log"],W_O;
W_O={searchEndpoint:{},commandMetadata:{webCommandMetadata:{url:"/results?search_query=",rootVe:4724,webPageType:"WEB_PAGE_TYPE_SEARCH"}}};var ETx={signalServiceEndpoint:{signal:"LOAD_GUIDE"}},hKw=function(F,W){return _.Bz(F,{mode:"readwrite",enableRetries:!0},function(E){return _.a5I(E,W,"settingEntity")})},dr6=function(F,W,E){return _.Bz(F,{mode:"readonly",
enableRetries:!0},function(h){return _.Mgu(h,W,E)})},Nhu=function(F){if(!F.storage)return!1;
a:{if(F.storage){try{var W=F.storage.get("TLPQtimestamp")}catch(E){}F=Number(W);if(!isNaN(F))break a}F=void 0}return F?Date.now()-F<864E5:!1},Vi8=function(F){if(F.storage){try{var W=F.storage.get("TLPQindex")}catch(E){}F=Number(W);
if(!isNaN(F))return F}},Urq=function(F,W){F.queueProxy&&W.forEach(function(E){if(E.videoId&&E.trackingParams&&F.queueProxy instanceof _.bp){var h=_.JR();
F.queueProxy.attributionData.set(E.videoId,{enqueueingVe:_.ve(E.trackingParams).getAsJson(),enqueueingCsn:h?h:void 0,clientEnqueueingTimeMs:Math.floor((0,_.KU)()).toString()})}})},RKq=function(F){var W=_.rM_(F);
W!=F.currentSnapState_&&(F.currentSnapState_=W,F.actionRouter_.triggerOptionalAction("ytd-update-grid-state-action"))},gf=function(F){this.JSC$10879_networkManager_=F;
this.partCallbacks_=[]};
gf.prototype.getCacheKeyForEndpoint=function(F){return _.zJR(F,!1)};
gf.prototype.onPartsCallback_=function(F){this.partCallbacks_.forEach(function(W){F&&W(F)})};
var QI=function(F,W,E){gf.call(this,F);this.player_=W;this.autoplayData_=E};
_.k(QI,gf);QI.prototype.getCacheKeyForEndpoint=function(F){return _.zJR(F,!!this.autoplayData_)};
QI.prototype.getTempData=function(F,W){W=W.timeBeforeNextVideo;F={itct:F.clickTrackingParams,lact:_.hV(),pbis:W,prefetch_reason:"hc_pbis",vis:this.player_.getVisibilityState()};this.autoplayData_&&(F.autonav=1);return F};
QI.prototype.getXhrParams=function(F){return Object.assign({pbj:"prefetch"},F)};
QI.prototype.getParams=function(F){F={frags:F.fragmentsRequested.join(",")};_.c("kevlar_droppable_prefetchable_requests")&&(F.prefetch=1);return F};
var eK6=function(F){F.playerEvents_.forEach(function(W){F.player.removeEventListener(W.eventName,W.callback)});
F.playerEvents_.length=0},zs=function(F,W,E){this.player=F;
this.JSC$10889_taskManager=W;this.prefetchDelay=E;this.completionResolver_=null;this.playerEvents_=[]};
zs.prototype.start=function(){var F=this;this.completionResolver_=_.G_();_.HI(this.completionResolver_.promise,function(){eK6(F);F.completionResolver_=null});
this.prepareTrigger(this.completionResolver_);return this.completionResolver_.promise};
var MiF=function(F,W,E){F.player.addEventListener(W,E);F.playerEvents_.push({eventName:W,callback:E})},gTO={watch:{pageFragments:["pl",
"wn"],prefetchedFragments:["pl"]},shorts:{pageFragments:["pl","riw"],prefetchedFragments:["pl"]}},Qux={pl:{requiredKeys:["playerResponse"],graftedKeys:["playerResponse"]},wn:{requiredKeys:["response"],graftedKeys:["response"]}},zK8=function(F,W,E){zs.call(this,F,W,E);this.cueId_="playbackTrigger-"+Math.random()};
_.k(zK8,zs);
zK8.prototype.prepareTrigger=function(F){var W=this,E=this.player.getDuration(),h=this.player.getVideoData(),d=h.isLive&&h.hasProgressBarBoundaries;if(d&&h.progressBarEndPositionUtcTimeMillis){var V=h.progressBarEndPositionUtcTimeMillis/1E3;isNaN(V)||(E=V)}var R=0;this.prefetchDelay>=0?d?h.progressBarStartPositionUtcTimeMillis&&(h=h.progressBarStartPositionUtcTimeMillis/1E3,isNaN(h)||(R=h+this.prefetchDelay)):R=this.prefetchDelay:R=E+this.prefetchDelay;d?this.player.addUtcCueRange(this.cueId_,R,E):
this.player.addCueRange(this.cueId_,R,E);_.HI(F.promise,function(){W.player.removeCueRange(W.cueId_)});
MiF(this,"onCueRangeEnter",function(M){M==W.cueId_&&F.resolve(E-R)})};
var tig=function(F,W){F.fragmentConfiguration_[W].requiredKeys.every(function(E){return!!F.prefetchedData_[E]})&&(F.validatedFragments_.push(W),W=F.missingFragments_.indexOf(W),W!==-1&&F.missingFragments_.splice(W,1))},CH6=function(F){F.prefetchedFragments_.forEach(function(W){tig(F,W)})},Bh6=function(F,W,E){this.pageFragments_=F;
this.prefetchedFragments_=W;this.fragmentConfiguration_=Qux;this.prefetchedData_=E;this.validatedFragments_=[];this.missingFragments_=this.pageFragments_.slice();this.mergedPrefetchedData_=null;CH6(this)},vTT=function(){},IA6=function(F){this.JSC$10903_playlistManager_=F};
_.k(IA6,vTT);IA6.prototype.getPrefetchEndpoint=function(){return this.JSC$10903_playlistManager_.getAutoplayEndpoint()};
var cm8=function(F){this.autonavEndpoints_=F};
_.k(cm8,vTT);cm8.prototype.getPrefetchEndpoint=function(){return this.autonavEndpoints_.length?this.autonavEndpoints_[0]:void 0};
var DrT=function(F,W,E,h,d){this.autonavEndpoints=F;this.foregroundTrigger=W;this.backgroundTrigger=E;this.pageType=h;this.isInPlaylist=d},xrN=function(F,W){if(F.webPrefetchData&&F.webPrefetchData.navigationEndpoints&&F.webPrefetchData.navigationEndpoints.length){F=F.webPrefetchData.navigationEndpoints;
var E=_.D(F[0],_.GM);if(E.watchEndpointSupportedPrefetchConfig&&E.watchEndpointSupportedPrefetchConfig.prefetchHintConfig){var h=E.watchEndpointSupportedPrefetchConfig.prefetchHintConfig;E=h.playbackRelativeSecondsPrefetchCondition;E=typeof E==="number"&&Math.abs(E)<W.videoDuration?E:void 0;h=h.countdownUiRelativeSecondsPrefetchCondition;h=typeof h!=="number"||_.c("prefetch_job_config_cleanup_ks")&&W.inPlaylist?void 0:h;if(typeof h==="number")return new DrT(F,W.makeUpNextTrigger(h),W.makePlaybackTrigger(h),
"watch",W.inPlaylist);if(typeof E==="number")return new DrT(F,W.makePlaybackTrigger(E),null,"watch",W.inPlaylist)}}},k4K=function(F){return F.prefetchJobConfig_.backgroundTrigger?_.yn(_.SDY)()==0?F.prefetchJobConfig_.backgroundTrigger:F.prefetchJobConfig_.foregroundTrigger:F.prefetchJobConfig_.foregroundTrigger},AmN=function(F){_.LP(document,"visibilitychange",F.onVisibilityChange_,!1,F)},tS=function(F){gf.call(this,F)};
_.k(tS,gf);tS.prototype.getCacheKeyForEndpoint=function(F){return gf.prototype.getCacheKeyForEndpoint.call(this,F)};
tS.prototype.getTempData=function(){return{}};
tS.prototype.getXhrParams=function(F){return F};
tS.prototype.getParams=function(){return{}};
var suO=function(F,W,E){var h=F.prefetchDelay*1E3;if(Math.abs(h)>W)E.promise.cancel("Not enough time to prefetch, cancelling prefetch job");else{var d=h,V=W-h;h<0&&(d=W+h,V=Math.abs(h));var R=F.JSC$10889_taskManager.addJob(function(){E.resolve(V/1E3)},10,d);
E.promise.thenCatch(function(){F.JSC$10889_taskManager.cancelJob(R)})}},L_F=function(F,W,E){zs.call(this,F,W,E)};
_.k(L_F,zs);L_F.prototype.prepareTrigger=function(F){var W=this;MiF(this,"onAutonavCoundownStarted",function(E){suO(W,E,F)})};
var q6K=function(F){F.pendingPrefetchJob_&&(F.pendingPrefetchJob_.cancel(),F.pendingPrefetchJob_=null)},$r6=function(F,W,E){if(!F.triggeredTargets.has(W)){var h=_.qNO(F,W);
h.action=E;_.s8c(F,W,h)}},ZKT=function(F){_.BjH();
_.RHr("cpt")&&_.OB(Error("kh"));_.EY.requestAnimationFrame(function(){_.EY.setTimeout(function(){_.P5("cpt");var W=_.fY("vpl"),E=_.fY("cpt");W&&E&&_.P5("ol",Math.max(W,E))})});
try{_.P5("fr_s"),F()}catch(W){_.a_(W)}_.EY.requestAnimationFrame(function(){_.P5("bcp")})},Xex=function(F,W){F.serviceEndpointHandlers.push(W)},HKP=function(F,W){W=F.pendingPages_.indexOf(W);
W>-1&&F.pendingPages_.splice(W,1)},PHx=function(F,W){var E=_.Hhe.indexOf(W);
E>-1&&_.Hhe.splice(E,1);F.targetPage_==W?(F.abort(),_.J$H(F)):HKP(F,W)},JmK=function(F,W,E,h){W={challenge:W};
E&&(W.webResponse=E);return _.no(F.innertubeTransportService,W,_.SF(F_$),h)},aAq=function(F,W,E){if(!W.challenge)throw Error("mi");
if(W.botguardData&&W.botguardData.program){var h=new pm6;h.initialize(W.botguardData,function(){KVx(h,{atr_challenge:W.challenge}).then(function(d){if(!d)throw Error("ni");return JmK(F,W.challenge,d,E)}).catch(function(d){_.OB(d);
return JmK(F,W.challenge,void 0,E)})},void 0)}else JmK(F,W.challenge,void 0,E)},fAN=function(F,W,E){var h={};
W.ids&&(h.ids=[].concat(_.x9(W.ids)));W.engagementType&&(h.engagementType=W.engagementType);return _.no(F.innertubeTransportService,h,_.SF(_.qkc),E).then(function(d){if(!d)throw new _.xC("GetAttestationChallenge returned falsy");aAq(F,d,E)}).thenCatch(function(d){_.a_(d)})},OKN=function(F,W,E){return new _.z5(function(h,d){var V;
return _.e(function(R){if(R.nextAddress==1){var M=W.engagementType,g=W.ids,t={};g=_.U(g!=null?g:[]);for(var C=g.next();!C.done;C=g.next())C=C.value,C.encryptedVideoId?t.encryptedVideoId=C.encryptedVideoId:C.externalChannelId?t.externalChannelId=C.externalChannelId:C.commentId?t.commentId=C.commentId:C.externalOwnerId?t.externalOwnerId=C.externalOwnerId:C.artistId?t.artistId=C.artistId:C.playlistId?t.playlistId=C.playlistId:C.externalPostId?t.externalPostId=C.externalPostId:C.shareId&&(t.shareId=C.shareId);
return _.Q(R,YJ8(M,t),2)}V=R.yieldResult;if(!V.challenge)return _.OB(Error("oi")),fAN(F,W,E).then(h,d),R.return();M=V;t={challenge:M.challenge};t.webResponse=M.webResponse;t.engagementType=W.engagementType;t.ids=W.ids;_.no(F.innertubeTransportService,t,_.SF(F_$),E).then(h,d);_.gG(R)})})},ErP=function(F,W){var E,h,d,V;
_.e(function(R){if(R.nextAddress==1){E=_.D(W,_.kHc);if(!(E&&E.listId&&F.response&&F.response.playingVideoId)||F.listId!==E.listId)return R.return();F.index===void 0&&(F.index=0);return _.Q(R,_.ofX(F.JSC$10709_playlistNetworkManager,E.listId,F.index,F.response.playingVideoId),2)}h=R.yieldResult;if(!h)return R.return();d=h.playlistId;V=h.playlistPanelRenderer;F.setPlaylistData(d,V,h.autoplayRenderer);_.gG(R)})},bKT=function(F,W,E){var h=F.getParams(E),d=_.PHo(W,h),V=F.getTempData(W,E);
V.endpoint=JSON.stringify(W);_.c("enable_unknown_lact_fix_on_html5")&&(_.WZ().resolve(_.$Y),V.lact=_.hV());var R={headers:{"X-YouTube-STS":_.b0("STS"),"x-youtube-csoc":1}};_.Sr(d,V);return new _.z5(function(M,g){var t=F.getXhrParams(h),C;_.c("kevlar_cache_on_ttl_player")&&(C=_.e8.instance);C&&_.hQ_(C,W)?_.g6H(C,W,V,window.location.href).then(function(B){B?M(B):g()},g):_.Z_i(F.JSC$10879_networkManager_,W,t,F.onPartsCallback_.bind(F),R).then(function(B){B?M(B):g()},g)})},lAN=function(F,W){F.triggerPromise_=
W.start();
F.triggerPromise_.then(function(E){var h=F.prefetchEndpointProvider_.getPrefetchEndpoint();if(h){var d=gTO[F.prefetchJobConfig_.pageType].prefetchedFragments;F.prefetchRequestPromise_=bKT(F.JSC$10915_networkPrefetchRequest_,h,{fragmentsRequested:d,timeBeforeNextVideo:E});F.prefetchResponseCacheKey_=F.JSC$10915_networkPrefetchRequest_.getCacheKeyForEndpoint(h);AmN(F);F.prefetchRequestPromise_.then(function(V){F.storePrefetchedDataCallback_(F.prefetchResponseCacheKey_,V);if(_.c("web_prefetch_preload_video")&&
d.length===1&&d[0]==="pl"&&V&&!V.playerAds&&!V.adPlacements){var R=_.D(h,_.DP),M=R!=null,g={raw_player_response:V,watch_endpoint:R};(V=_.WZ().resolve(M?_.$up:_.Va))&&h&&V.then(function(t){M&&_.c("web_queue_preload_video")?(g.prefer_gapless=!0,t.queueNextVideo(g)):t.preloadVideoByPlayerVars(g)})}})}})},CD=function(F,W,E,h){this.prefetchEndpointProvider_=F;
this.prefetchRequestPromise_=this.triggerPromise_=null;this.storePrefetchedDataCallback_=W;this.prefetchJobConfig_=E;this.JSC$10915_networkPrefetchRequest_=h;this.prefetchResponseCacheKey_=null};
CD.prototype.enqueue=function(){this.triggerPromise_||(lAN(this,k4K(this)),_.ce(document,"visibilitychange",this.onVisibilityChange_,!1,this))};
CD.prototype.resolve=function(){this.cancel()};
CD.prototype.cancel=function(){this.triggerPromise_&&this.triggerPromise_.cancel("Prefetch job cancelled, trigger promise cancelled.");this.prefetchRequestPromise_&&this.prefetchRequestPromise_.cancel("Prefetch job cancelled, request promise cancelled.");AmN(this)};
CD.prototype.onVisibilityChange_=function(){var F=this;_.yn(_.SDY)()==0?this.triggerPromise_&&(this.triggerPromise_.thenCatch(function(){F.triggerPromise_=null}),this.triggerPromise_.cancel("Visibility changed to background, trigger promise cancelled.")):this.triggerPromise_||lAN(this,k4K(this))};
nTq=function(F,W,E,h,d){W&&(W==null?0:W.videoId)&&E&&E.entries&&_.c("kevlar_enable_shorts_prefetch_in_sequence")&&(q6K(F),W=E.entries.map(function(V){var R;return(R=_.D(V.command,_.DP))==null?void 0:R.videoId}).indexOf(W.videoId),E=E.entries[W+1],E!=null&&E.command&&!_.D(E==null?void 0:E.command,_.ni)&&(h=new DrT([E.command],new zK8(h,_.P0,1),null,"shorts",!1),F.pendingPrefetchJob_=new CD(new cm8(h.autonavEndpoints),function(){return!1},h,new tS(d)),F.pendingPrefetchJob_.enqueue()))};
ymF=function(F,W,E,h,d,V){var R=_.EX.getInstance();if(!_.c("block_all_player_prefetch_requests")){q6K(F);var M=!!E.getPlaylistId(),g=E.getVideoData().isLive&&E.getVideoData().hasProgressBarBoundaries;if((R.getState()==2||M||g)&&(!E.getVideoData().isLive||g)){R={inPlaylist:M,videoDuration:E.getDuration(),makeUpNextTrigger:function(C){return new L_F(E,_.P0,C)},
makePlaybackTrigger:function(C){return new zK8(E,_.P0,C)}};
var t=xrN(W,R);t&&(F.pendingPrefetchJob_=new CD(t.isInPlaylist?new IA6(d):new cm8(t.autonavEndpoints),function(C,B){B=new Bh6(gTO[t.pageType].pageFragments,gTO[t.pageType].prefetchedFragments,B);return _.Crz(B)?(F.prefetchCache_.set(C,B),!0):!1},t,new QI(h,E,V,d)),F.pendingPrefetchJob_.enqueue())}}};
jug=function(){var F=_.o0();F.signals.parkOrScheduleJob(function(){var W=F.storage;if(W.storage)if(Nhu(W)){var E=W.getPlaylistId();W=Vi8(W);E=!!E&&W!==void 0}else W.clear(),E=!1;else E=!1;if(E){E=F.pageManager.isOnWatch();a:{var h=F.storage;if(h.storage&&Nhu(h)&&(W=h.getPlaylistId(),h=Vi8(h),W&&h!==void 0)){E={recoverPlaylistCommand:{listId:W,index:h,openMiniplayer:!E,openListPanel:E,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}};break a}E=void 0}E&&_.yS(F.JSC$10709_actionRouter,[E],null)}},0,"ma")};
iK$=function(F,W,E,h,d,V){var R=_.LQ(7111);_.zY(F.JSC$16028_screenManager,R,V?_.ve(V):void 0);_.Co(F.JSC$16028_screenManager,R,{offlineabilityData:{offlineModeType:"OFFLINE_NOW",offlineObjectType:h,offlineId:W,offlineabilityFormatType:E,isDefaultFormatType:d==="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED",downloadQualitySettingsAction:d}})};
rm6=function(F,W,E,h,d){var V,R,M,g,t;return _.e(function(C){if(C.nextAddress==1)return _.Q(C,F.JSC$16028_playerApiPromise,2);V=C.yieldResult;iK$(F,W,E,"OFFLINE_OBJECT_TYPE_PLAYLIST",h,d);if(M=_.vfT[F.entityTypeMap.listEntityType])t={},R=(t[M]={maximumDownloadQuality:(g=E)!=null?g:void 0},t);return _.Q(C,V.queueOfflineAction(W,F.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",R),0)})};
ThP=function(F,W){var E,h,d,V;return _.e(function(R){if(R.nextAddress==1)return _.Q(R,F.JSC$16028_persistentStorePromiseAccessor(),2);if(R.nextAddress!=3){E=R.yieldResult;if(!E)return _.OB(new _.xC("PES is undefined")),R.return();h=_.eF(W,"downloadStatusEntity");return _.Q(R,dr6(E,h,"downloadStatusEntity"),3)}d=R.yieldResult;return R.return((V=d)==null?void 0:V.downloadState)})};
oTx=function(F,W,E,h,d){var V,R,M,g,t,C;return _.e(function(B){switch(B.nextAddress){case 1:return _.Q(B,F.JSC$16028_playerApiPromise,2);case 2:V=B.yieldResult;iK$(F,W,E,"OFFLINE_OBJECT_TYPE_VIDEO",h,d);if(M=_.vfT[F.entityTypeMap.singleEntityType])t={},R=(t[M]={maximumDownloadQuality:(g=E)!=null?g:void 0},t);return _.Q(B,ThP(F,W),3);case 3:C=B.yieldResult;if(C!=="DOWNLOAD_STATE_USER_DELETED"){B.jumpTo(4);break}return _.Q(B,F.deleteVideo(W),4);case 4:return _.Q(B,V.queueOfflineAction(W,F.entityTypeMap.singleEntityType,
"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",R),0)}})};
G4g=function(F,W,E,h,d){return _.e(function(V){return V.nextAddress==1?_.Q(V,F.deleteVideo(W,"OFFLINE_DELETE_REASON_FAILED_VIDEO_RETRY"),2):_.Q(V,oTx(F,W,E,h,d),0)})};
Y6K=function(F,W,E){var h,d;return _.e(function(V){if(V.nextAddress==1)return _.Q(V,F.JSC$16028_playerApiPromise,2);h=V.yieldResult;d=_.eF(W,"mainVideoDownloadStateEntity");return _.Q(V,h.updateDownloadState(d,E),0)})};
rg$=function(F){var W=_.WZ().resolve(_.FS);return _.e(function(E){if(E.nextAddress==1)return W.previousDownloadStateForVideo[F]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&W.previousDownloadStateForVideo[F]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"?E.jumpTo(2):_.Q(E,W.resumeVideoDownload(F),2);if(E.nextAddress!=4)return _.Q(E,Y6K(W,F,W.previousDownloadStateForVideo[F]),4);delete W.previousDownloadStateForVideo[F];_.gG(E)})};
joP=function(F,W){var E;return _.e(function(h){if(h.nextAddress==1)return _.Q(h,F.JSC$16028_playerApiPromise,2);E=h.yieldResult;return _.Q(h,E.queueOfflineAction(W,F.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE"),0)})};
lPO=function(){var F=_.WZ().resolve(_.FS),W,E;return _.e(function(h){if(h.nextAddress==1)return _.Q(h,F.JSC$16028_playerApiPromise,2);if(h.nextAddress!=3)return W=h.yieldResult,E={offlineLoggingData:{offlineDeleteReason:"OFFLINE_DELETE_REASON_SETTINGS_DELETE_ALL"}},_.Q(h,W.queueOfflineAction("!*$_ALL_ENTITIES_!*$",F.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",E),3);var d=F.JSC$16028_commandHandler,V=d.resolveCommand,R=_.CY("DELETING_ALL",void 0,"Downloads are being deleted");
V.call(d,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.Wz(R)}},popupType:"TOAST"}});_.gG(h)})};
we$=function(F){var W,E;return _.e(function(h){if(h.nextAddress==1)return _.Q(h,F.JSC$16028_prefStorage,2);W=h.yieldResult;return h.return((E=W)==null?void 0:E.get("sdois"))})};
uPw=function(F){var W,E,h,d,V,R;return _.e(function(M){if(M.nextAddress==1)return _.Q(M,F.JSC$16028_persistentStorePromiseAccessor(),2);if(M.nextAddress!=3){W=M.yieldResult;if(!W)return _.OB(new _.xC("PES is undefined")),M.return();E=_.eF("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");return _.Q(M,dr6(W,E,"settingEntity"),3)}h=M.yieldResult;return M.return((R=(d=h)==null?void 0:(V=d.settingOptionValue)==null?void 0:V.boolValue)!=null?R:!1)})};
S6$=function(F,W){var E,h,d,V;return _.e(function(R){switch(R.nextAddress){case 1:return((E=W)==null?void 0:E.formatType)===void 0?R.return():_.Q(R,F.JSC$16028_prefStorage,2);case 2:h=R.yieldResult;if(h===void 0)return R.return();if(((d=W)==null?void 0:d.settingsAction)==="DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE")return _.Q(R,h.set("lmqf",W.formatType),8);if(((V=W)==null?void 0:V.settingsAction)!=="DOWNLOAD_QUALITY_SETTINGS_ACTION_EXPIRING_SAVE"){R.jumpTo(0);break}return _.Q(R,h.set("lmqf",W.formatType),
6);case 6:return _.Q(R,h.set("lmqflst",Math.floor((0,_.KU)())),0);case 8:return _.Q(R,h.remove("lmqflst"),0)}})};
pe$=function(F){var W,E;return _.e(function(h){switch(h.nextAddress){case 1:return _.Q(h,F.JSC$16028_prefStorage,2);case 2:W=h.yieldResult;if(!W){h.jumpTo(3);break}return _.Q(h,W.get("lmqflst"),4);case 4:if(E=h.yieldResult,E!==void 0)return h.return(E);case 3:return h.return(0)}})};
mrx=function(F){var W,E;return _.e(function(h){switch(h.nextAddress){case 1:return _.Q(h,F.JSC$16028_prefStorage,2);case 2:W=h.yieldResult;if(W===void 0){h.jumpTo(3);break}return _.Q(h,W.get("lmqf"),4);case 4:if(E=h.yieldResult,E!==void 0)return h.return(E);case 3:return h.return("SD")}})};
pBK=function(F,W,E){var h,d,V,R,M,g,t,C;_.e(function(B){switch(B.nextAddress){case 1:return _.Q(B,S6$(F,(h=W)==null?void 0:h.actionParams),2);case 2:d=W.playlistId;if(!d)return B.return();if(W.action==="ACTION_ADD")return((R=W.actionParams)==null?0:R.formatType)?_.Q(B,rm6(F,d,W.actionParams.formatType,(C=W.actionParams)==null?void 0:C.settingsAction,E),0):_.Q(B,F.offlineWebClientEligibility,14);if(W.action==="ACTION_REMOVE_WITH_PROMPT"){var I=F.JSC$16028_commandHandler,x=I.resolveCommand,A=_.b0("INNERTUBE_CLIENT_NAME");
var X=A==="WEB_REMIX"?_.CY("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.CY("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var P=A==="WEB_REMIX"?[_.CY("REMOVE_DOWNLOAD_CONFIRMATION",void 0,"Items you remove will no longer play without an internet connection.")]:[];A=A==="WEB_REMIX"?_.CY("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.CY("DELETE",void 0,"Delete");var b=_.CY("CANCEL",void 0,"Cancel");X=wZO(X,P,A,b,{signal:"DELETE_PLAYLIST_DOWNLOAD",targetId:d});x.call(I,{openPopupAction:X});
return B.return()}if(W.action==="ACTION_REMOVE")return _.Q(B,joP(F,d),0);if(W.action!=="ACTION_SYNC"){B.jumpTo(0);break}return _.Q(B,F.JSC$16028_playerApiPromise,9);case 9:return V=B.yieldResult,_.Q(B,V.queueOfflineAction(d,F.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);case 14:return M=B.yieldResult,_.Q(B,mrx(F),15);case 15:return g=B.yieldResult,_.Q(B,pe$(F),16);case 16:t=B.yieldResult,W.onAddCommand&&F.JSC$16028_commandHandler.resolveCommand(W.onAddCommand,{form:{preferredFormatType:g,
offlineWebClientEligibility:M,lastOfflineQualitySettingsSavedMs:t.toString()}}),B.jumpTo(0)}})};
uCg=function(F,W,E){var h,d,V,R,M,g,t,C,B,I,x,A,X,P;_.e(function(b){switch(b.nextAddress){case 1:return _.Q(b,S6$(F,(h=W)==null?void 0:h.actionParams),2);case 2:d=W.videoId;if(!d)return b.return();if(W.action==="ACTION_REMOVE_WITH_PROMPT"){var l=F.JSC$16028_commandHandler,w=l.resolveCommand,G=_.b0("INNERTUBE_CLIENT_NAME");var hr=G==="WEB_REMIX"?_.CY("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.CY("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var p=G==="WEB_REMIX"?[_.CY("REMOVE_DOWNLOAD_CONFIRMATION_TRACK_OFFLINE",
void 0,"This track won't be available to listen offline.")]:[];G=G==="WEB_REMIX"?_.CY("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.CY("DELETE",void 0,"Delete");var UY=_.CY("CANCEL",void 0,"Cancel");hr=wZO(hr,p,G,UY,{signal:"DELETE_DOWNLOAD",targetId:d});w.call(l,{openPopupAction:hr});return b.return()}if(W.action==="ACTION_ADD")return((I=W.actionParams)==null?0:I.formatType)?_.Q(b,oTx(F,d,W.actionParams.formatType,(P=W.actionParams)==null?void 0:P.settingsAction,E),0):_.Q(b,F.offlineWebClientEligibility,
23);if(W.action==="ACTION_RETRY")return _.Q(b,mrx(F),19);if(W.action==="ACTION_PAUSE")return _.Q(b,F.pauseVideoDownload(d),0);if(W.action==="ACTION_RESUME")return _.Q(b,F.resumeVideoDownload(d),0);if(W.action!=="ACTION_REMOVE"){b.jumpTo(0);break}return _.Q(b,ThP(F,d),13);case 13:return V=b.yieldResult,F.previousDownloadStateForVideo[d]=(R=V)!=null?R:"DOWNLOAD_STATE_UNKNOWN",_.Q(b,Y6K(F,d,"DOWNLOAD_STATE_USER_DELETED"),14);case 14:if(F.previousDownloadStateForVideo[d]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&
F.previousDownloadStateForVideo[d]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"){b.jumpTo(15);break}return _.Q(b,F.pauseVideoDownload(d),15);case 15:l=_.CY("DELETED_VIDEO",void 0,"Video deleted from downloads.");w=_.CY("UNDO_ACTION",void 0,"Undo");hr=_.CY("CLOSE",void 0,"Close");M={openPopupAction:{popup:{notificationActionRenderer:{responseText:_.Wz(l),actionButton:{buttonRenderer:{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.Wz(w),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"UNDO_DELETE_DOWNLOAD",
targetId:d}}]}},loggingDirectives:{clientVeSpec:{uiType:169048}},accessibilityData:{accessibilityData:{label:l+" "+w}}}},closeActionButton:{buttonRenderer:{icon:{iconType:"CLOSE"},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"DELETE_DOWNLOAD",targetId:d}}]}},loggingDirectives:{clientVeSpec:{uiType:169049}},accessibilityData:{accessibilityData:{label:hr}}}},loggingDirectives:{clientVeSpec:{uiType:169047}}}},popupType:"TOAST"}};F.JSC$16028_commandHandler.resolveCommand(M);
b.jumpTo(0);break;case 19:g=b.yieldResult;g==="UNKNOWN_FORMAT_TYPE"&&(g="SD");t="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED";if((C=W.actionParams)==null?0:C.formatType)g=W.actionParams.formatType,t=(B=W.actionParams)==null?void 0:B.settingsAction;return _.Q(b,G4g(F,d,g,t,E),20);case 20:return b.return();case 23:return x=b.yieldResult,_.Q(b,mrx(F),24);case 24:return A=b.yieldResult,_.Q(b,pe$(F),25);case 25:X=b.yieldResult,W.onAddCommand&&F.JSC$16028_commandHandler.resolveCommand(W.onAddCommand,
{form:{preferredFormatType:A,offlineWebClientEligibility:x,lastOfflineQualitySettingsSavedMs:X.toString()}}),b.jumpTo(0)}})};
K_K=function(F,W){var E,h,d,V,R,M,g;return _.e(function(t){if(t.nextAddress==1)return _.Q(t,F.JSC$16028_persistentStorePromiseAccessor(),2);E=t.yieldResult;if(!E)return _.OB(new _.xC("PES is undefined")),t.return();if((h=W)==null||!h.settingItemId)return t.return();d=W;V=d.settingItemId;R=d.boolValue;M=_.eF(V,"settingEntity");g={key:M,settingOptionValue:{boolValue:R}};return _.Q(t,hKw(E,g),0)})};
FAq=function(F,W){var E,h,d,V,R,M,g;return _.e(function(t){switch(t.nextAddress){case 1:return _.Q(t,F.JSC$16028_prefStorage,2);case 2:return E=t.yieldResult,h=_.Ij(),_.Q(t,F.JSC$16028_persistentStorePromiseAccessor(),3);case 3:return d=t.yieldResult,E?d?_.Q(t,E.get("sdois"),4):(_.OB(new _.xC("PES is undefined")),t.return()):(_.OB(new _.xC("prefStorage is undefined")),t.return());case 4:V=t.yieldResult;M=(R=W)==null?void 0:R.boolValue;M===void 0||_.c("kevlar_set_sd_enabled_flag_killswitch")||_.c5(0,
197,!0);V===void 0&&M===void 0&&(M=!1);if(M===void 0){t.jumpTo(0);break}return _.Q(t,E.set("sdois",M),6);case 6:return _.c("kevlar_set_sd_enabled_flag_killswitch")||(_.c5(0,196,M),h.save()),g={settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:M},_.Q(t,K_K(F,g),0)}})};
WA8=function(F,W,E){var h,d,V,R,M;return _.e(function(g){switch(g.nextAddress){case 1:return _.Q(g,we$(F),2);case 2:return h=g.yieldResult,_.Q(g,FAq(F,E),3);case 3:return _.Q(g,we$(F),4);case 4:return d=g.yieldResult,V=d!==h,_.Q(g,uPw(F),5);case 5:R=g.yieldResult&&!_.c("kevlar_modern_downloads_page");if((M=!d&&!R)||V)return _.Q(g,W.queueOfflineAction("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity","OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);g.jumpTo(0)}})};
ouK=function(){var F=_.WZ().resolve(_.FS),W;_.e(function(E){switch(E.nextAddress){case 1:return _.Q(E,F.JSC$16028_playerApiPromise,2);case 2:W=E.yieldResult;if(!_.c("kevlar_force_refresh_smart_downloads")){E.jumpTo(3);break}return _.Q(E,W.refreshAllStaleEntities(0),4);case 4:return E.return();case 3:return _.Q(E,W.refreshAllStaleEntities(),5);case 5:return _.Q(E,WA8(F,W),0)}})};
KJK=function(F,W){var E,h;_.e(function(d){switch(d.nextAddress){case 1:return _.Q(d,F.JSC$16028_playerApiPromise,2);case 2:E=d.yieldResult;switch((h=W)==null?void 0:h.settingItemId){case "SMART_DOWNLOADS_ENABLED":return d.jumpTo(3);case "SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED":return d.jumpTo(4)}d.jumpTo(0);break;case 3:return _.Q(d,WA8(F,E,W),6);case 6:d.jumpTo(0);break;case 4:return _.Q(d,K_K(F,W),7);case 7:d.jumpTo(0)}})};
EYu=function(F,W){var E,h,d;return _.e(function(V){if(V.nextAddress==1)return _.Q(V,F.JSC$16028_persistentStorePromiseAccessor(),2);if(V.nextAddress!=3){E=V.yieldResult;if(!E)return _.OB(new _.xC("PES is undefined")),V.return(!1);if(!W)return V.return(!1);h=_.eF(W,"mainVideoEntity");return _.Q(V,dr6(E,h,"mainVideoEntity"),3)}d=V.yieldResult;return V.return(d!==void 0)})};
WVw=function(F){var W=_.WZ().resolve(_.FS),E,h,d,V,R,M,g,t,C,B,I;_.e(function(x){switch(x.nextAddress){case 1:return _.Q(x,W.JSC$16028_playerApiPromise,2);case 2:E=x.yieldResult;d=(h=F)==null?void 0:h.actions;if(!d)return x.return();V=_.U(d);R=V.next();case 3:if(R.done){x.jumpTo(0);break}M=R.value;t=g=void 0;if(!(((g=M)==null?0:g.entityKey)&&((t=M)==null?0:t.actionType))){x.jumpTo(4);break}C=_.Vz(M.entityKey);B=C.entityId;I=C.entityType;return _.Q(x,E.queueOfflineAction(B,I,M.actionType),4);case 4:R=
V.next(),x.jumpTo(3)}})};
hpg=function(F,W){var E,h,d,V,R;return _.e(function(M){if(M.nextAddress==1)return _.Q(M,F.JSC$16028_prefStorage,2);if(M.nextAddress!=3)return(E=M.yieldResult)?_.Q(M,E.get("psi"),3):M.return();h=M.yieldResult;R={isPaused:W,lastSyncTimestamp:(V=(d=h)==null?void 0:d.lastSyncTimestamp)!=null?V:"0"};return _.Q(M,E.set("psi",R),0)})};
d3x=function(F){var W=_.WZ().resolve(_.FS),E,h,d,V,R,M,g,t;return _.e(function(C){switch(C.nextAddress){case 1:return _.Q(C,W.JSC$16028_playerApiPromise,2);case 2:E=C.yieldResult;d=((h=F)==null?void 0:h.localWatchHistoryCommandType)==="LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE";switch((M=F)==null?void 0:M.localWatchHistoryCommandType){case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_CLEAR":V="!*$_ALL_ENTITIES_!*$";R="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE";break;case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE":case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_RESUME":return C.jumpTo(3);
case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_REMOVE":return C.jumpTo(4)}C.jumpTo(5);break;case 3:return _.Q(C,hpg(W,d),6);case 6:C.jumpTo(5);break;case 4:return _.Q(C,EYu(W,(g=F)==null?void 0:g.videoId),7);case 7:C.yieldResult&&(V=(t=F)==null?void 0:t.videoId,R="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE");C.jumpTo(5);break;case 5:if(V&&R)return _.Q(C,E.queueOfflineAction(V,"videoPlaybackPositionEntity",R),0);C.jumpTo(0)}})};
djw=function(F,W){var E;W!==1||((E=F.currentPersistentToast)==null?0:E.isOpened())?F.openToast():F.currentPersistentToast=void 0};
NYK=function(){var F,W,E,h;return _.e(function(d){if(d.nextAddress==1)return F=navigator,(W=F.storage)!=null&&W.persisted?_.Q(d,(E=F.storage)==null?void 0:E.persisted(),2):d.return("PERSISTED_STATE_NOT_SUPPORTED");h=d.yieldResult;return d.return(h?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})};
Vcu=function(){var F,W,E,h;return _.e(function(d){if(d.nextAddress==1)return F=navigator,(W=F.storage)!=null&&W.persist?_.Q(d,(E=F.storage)==null?void 0:E.persist(),2):d.return("PERSISTED_STATE_NOT_SUPPORTED");h=d.yieldResult;return d.return(h?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})};
Ujq=function(){var F,W;return _.e(function(E){switch(E.nextAddress){case 1:return F="PERSISTED_STATE_NOT_SUPPORTED",_.Nl(E,2),_.Q(E,NYK(),4);case 4:F=E.yieldResult;if(F!=="PERSISTED_STATE_NOT_GRANTED"){E.jumpTo(5);break}return _.Q(E,Vcu(),6);case 6:F=E.yieldResult;case 5:_.id(E,3);break;case 2:W=_.Ml(E),W instanceof Error&&_.a_(W);case 3:return _.Pc("persistentStorageStateChecked",{persistedState:F}),E.return(F)}})};
Rp$=function(F,W){var E=[],h=!1;W=_.U(W);for(var d=W.next();!d.done;d=W.next()){d=F.moduleRegistry[d.value];var V=void 0,R=void 0;((V=d)==null?0:V.isFetching)&&((R=d)==null?0:R.resolver)?(E.push(d.resolver.promise),h=!0):(d=new _.eR,d.resolve(void 0),E.push(d.promise))}return h?Promise.all(E):void 0};
epT=function(F,W,E){E=E===void 0?{}:E;var h=F.defaultViewTransitionOptions,d=W.map(function(R){return R.beforeTransition}),V=W.map(function(R){return R.afterTransition});
return Object.assign({},h,E,{beforeTransition:function(){var R;(R=h.beforeTransition)==null||R.call(h);var M,g;(g=(M=E).beforeTransition)==null||g.call(M);R=_.U(d);for(M=R.next();!M.done;M=R.next())M=M.value,M()},
afterTransition:function(){var R;(R=h.afterTransition)==null||R.call(h);var M,g;(g=(M=E).afterTransition)==null||g.call(M);R=_.U(V);for(M=R.next();!M.done;M=R.next())M=M.value,M()}})};
McO=function(F,W,E){var h,d,V,R,M,g,t;_.e(function(C){if(F.config.disableAllTransitions)return C.return(W());if((h=E)==null||!h.transitionName)return C.return(_.tJg(W,(d=E)==null?void 0:d.viewTransitionOptions));V=E;R=V.transitionName;M=V.viewTransitionOptions;g=F.config.transitionConfigs.get(R);if(!g)return C.return(W());var B;t=(B=F.transitionTasksMap.get(R))!=null?B:[];return C.return(_.tJg(W,epT(g,t,M)))})};
Fz=function(F,W,E){F.transitionTasksMap.has(W)?F.transitionTasksMap.get(W).push(E):(F=new _.xC("Transition task registered for unknown transition name",W),_.a_(F))};
gYT=function(F,W,E){if(F.isInitialized()){var h=NE(E),d=h==="watch";h=h==="shorts";var V=NE(W)==="watch";if(d)V||(F.backgroundPageData=W),F.watchPipMode&&V||F.deactivate(E.endpoint);else if(h){if(NE(W)!=="shorts"){var R;(R=F.getPlayerElement())==null||R.pause()}}else V&&!F.watchPipMode&&(SJT(W,E)?(F.watchWhileMode&&_.BUw(F,!1),_.M98(F,W)):F.isMiniplayerActive()&&F.watchWhileMode&&F.deactivate());V&&_.IdK(F);F.shortsPipMode&&!h&&(window.focus(),F.deactivate());if(F.pictureInPictureEnabled())if(h&&
F.shortsPipEnabled||d&&F.watchPipEnabled)_.wdS(F.handleMediaSessionPipActivation);else if(!F.isMiniplayerActive()&&(F.shortsPipEnabled||F.watchPipEnabled)&&window.documentPictureInPicture&&_.HG()&&_.gWb("Chromium")>=120){F=_.YIS().mediaSession;try{F.setActionHandler("enterpictureinpicture",null)}catch(M){}}}};
Q3u=function(F,W){var E,h;_.e(function(d){if(d.nextAddress==1){if(!F||!F.navigationEndpoint)return d.return();_.DT().lockupActivation=!0;var V;W?V=_.Gr(_.CY("QUEUE",void 0,"Queue")):V=F.longBylineText;h=(E=V)&&F.title?{miniplayerTitle:F.title,miniplayerSubtitle:E,playlistData:null}:void 0;return _.Q(d,_.xkT(_.WZ().resolve(_.GF),F.navigationEndpoint,!0,h),2)}_.DT().userActivation=!0;_.gG(d)})};
Ks8=function(F,W){var E,h,d,V,R,M;_.e(function(g){if(g.nextAddress==1){E=_.D(W,_.xSH);if(!E||!E.listId)return g.return();F.index=E.index||F.index||0;h=F.response&&F.response.playingVideoId||void 0;return _.Q(g,_.ofX(F.JSC$10709_playlistNetworkManager,E.listId,F.index,h),2)}d=g.yieldResult;if(!d)return g.return();V=d.playlistId;R=d.playlistPanelRenderer;!F.queueProxy&&V&&R&&V.startsWith("TLPQ")&&(F.queueProxy=new _.bp(F.JSC$10709_playlistNetworkManager,V,F.setPlaylistData.bind(F),F.clearQueue.bind(F),
_.V8Y(R),F.storage));if(E.openMiniplayer&&(M=_.UXG(R))&&!F.pageManager.isOnWatch()){var t=M,C=E.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE";F.isMiniplayerActive()?F.openToast(t):Q3u(t,C)}F.setPlaylistData(V,R,d.autoplayRenderer);_.gG(g)})};
STw=function(F,W){var E=_.o0();E.index===void 0&&(E.index=0);E.temporaryItems.push.apply(E.temporaryItems,_.x9(F));if((W.videoId||W.videoIds)&&E.index!==void 0&&W.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"){if(!E.queueProxy){var h=[];if(E.response){var d=_.WZ().resolve(_.GF).isMiniplayerActive();if(E.response.playlistPanelRenderer&&E.response.playlistId&&!E.response.playlistId.startsWith("TLPQ")){if(E.pageManager.isOnWatch()||d)h=_.V8Y(E.response.playlistPanelRenderer)}else E.response.playingVideoId&&
!W.openMiniplayer?h.push(E.response.playingVideoId):d&&E.response.playingVideoId&&W.openMiniplayer&&h.push(E.response.playingVideoId)}E.queueProxy=new _.bp(E.JSC$10709_playlistNetworkManager,"",E.setPlaylistData.bind(E),E.clearQueue.bind(E),h,E.storage);E.queueProxy.JSC$10655_setCurrentIndex(E.index)}E.queueProxy.addVideos(W.videoIds||[W.videoId],W)}Urq(E,F);E.response&&_.GY(E,_.YQ(E,E.response.autoplayRenderer));E.pageManager.isOnWatch()?E.isMiniplayerActive()&&E.openToast(F[0]):(F=F[0],W=W.listType===
"PLAYLIST_EDIT_LIST_TYPE_QUEUE",E.isMiniplayerActive()?E.openToast(F):Q3u(F,W))};
zpP=function(F){var W=_.CN(F);if(W=="object"||W=="array"){if(typeof F.clone==="function")return F.clone();if(typeof Map!=="undefined"&&F instanceof Map)return new Map(F);if(typeof Set!=="undefined"&&F instanceof Set)return new Set(F);W=W=="array"?[]:{};for(var E in F)W[E]=zpP(F[E]);return W}return F};
B1=function(F,W){return _.uen(_.Af(F,W,void 0,_.ki))};
v1=function(F,W){return _.LN(_.Af(F,W,void 0,_.ki))};
Ih=function(F,W){return _.tHe(_.Af(F,W,void 0,_.ki))};
c1=function(F,W){return _.Af(F,W,void 0,_.ki,_.gw)};
tcP=_.G2(function(F,W,E){if(F.nextWireType_!==0)return!1;_.YR(W,E,_.GA(F.decoder_,_.dw));return!0},_.mp,_.uj);
CzT=_.G2(function(F,W,E,h){if(F.nextWireType_!==0)return!1;_.ZE(W,E,h,_.GA(F.decoder_,_.dw));return!0},_.mp,_.uj);
BYF=_.G2(function(F,W,E){if(F.nextWireType_!==1)return!1;var h=F.decoder_;F=_.wH(h);h=_.wH(h);F=_.Eq(F,h);_.YR(W,E,F);return!0},_.Yqo,_.y_I);
vYx=_.G2(function(F,W,E){if(F.nextWireType_!==5)return!1;_.YR(W,E,_.wH(F.decoder_));return!0},function(F,W,E){W=_.qF(W);
W!=null&&(_.uL(F,E,5),_.p2(F.encoder_,W))},_.nIk);
IRu=_.G2(function(F,W,E){if(F.nextWireType_!==0)return!1;F=_.Ive(F.decoder_);_.YR(W,E,F===!1?void 0:F);return!0},_.wTo,_.fvr);
cbT=_.G2(function(F,W,E){if(F.nextWireType_!==2)return!1;F=_.sgY(F);_.YR(W,E,F===""?void 0:F);return!0},_.Sqr,_.Oqo);
DjK=_.G2(function(F,W,E){if(F.nextWireType_!==2)return!1;F=_.LPG(F);_.YR(W,E,F===_.rc()?void 0:F);return!0},_.mFI,_.r_o);
xjx=_.luS(function(F,W,E){if(F.nextWireType_!==0&&F.nextWireType_!==2)return!1;W=_.$R(W,W[_.Xp]|0,E);F.nextWireType_==2?_.qMr(F,OzP,W):W.push(_.Yi(F.decoder_));return!0},function(F,W,E){W=_.bNk(_.LN,W,!0);
if(W!=null&&W.length){E=_.z6Y(F,E);for(var h=0;h<W.length;h++)_.rPe(F.encoder_,W[h]);_.t$R(F,E)}},_.T6S);
k_P=_.G2(function(F,W,E){if(F.nextWireType_!==0)return!1;F=_.Yi(F.decoder_);_.YR(W,E,F===0?void 0:F);return!0},_.Kgo,_.T6S);
Abg=_.G2(function(F,W,E,h){if(F.nextWireType_!==0)return!1;_.ZE(W,E,h,_.Yi(F.decoder_));return!0},_.Kgo,_.T6S);
_.rU=function(F){this.privateDoNotAccessOrElseWrappedStyleSheet=F};
_.rU.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedStyleSheet};
var Un6=function(F,W){return new _.sp(F.x+W.x,F.y+W.y)},s3N=function(F){return F.previousElementSibling!==void 0?F.previousElementSibling:_.upB(F.previousSibling,!1)},LAT=function(F,W){var E=[];
for(W=W||0;W<F.length;W+=2)_.lu_(F[W],F[W+1],E);return E.join("&")},qdO=function(F,W){var E=arguments.length==2?LAT(arguments[1],0):LAT(arguments,1);
return _.bNH(F,E)},$jT=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k($jT,_.n2);$jT.prototype.getValue=function(){var F=_.Af(this,2);if(Array.isArray(F)||F instanceof _.n2)throw Error("aa");return _.$i(this,2)};
var qgq=function(){var F=_.Nz();this.JSC$7819_streamzService=F;F.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/opened",_.dl("channel_type"))};
qgq.prototype.increment=function(F){this.JSC$7819_streamzService.JSC$7692_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/opened",F)};
var $Wu=function(){var F=_.Nz();this.JSC$7822_streamzService=F;F.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/closed",_.dl("channel_type"))};
$Wu.prototype.increment=function(F){this.JSC$7822_streamzService.JSC$7692_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/closed",F)};
var Xfg=function(){var F=_.Nz();this.JSC$7825_streamzService=F;F.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",_.dl("channel_type"))};
Xfg.prototype.increment=function(F){this.JSC$7825_streamzService.JSC$7692_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",F)};
var Zg6=function(){var F=_.Nz();this.JSC$7828_streamzService=F;F.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
Zg6.prototype.increment=function(){this.JSC$7828_streamzService.JSC$7692_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
var HgT=function(){var F=_.Nz();this.JSC$7831_streamzService=F;F.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/error",_.dl("channel_type"),_.dl("error_type"))};
HgT.prototype.increment=function(F,W){this.JSC$7831_streamzService.JSC$7692_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/error",F,W)};
var PIO=function(){var F=_.Nz();this.JSC$7834_streamzService=F;F.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
PIO.prototype.increment=function(){this.JSC$7834_streamzService.JSC$7692_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
var JRu=function(){var F=_.Nz();this.JSC$7837_streamzService=F;F.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
JRu.prototype.increment=function(){this.JSC$7837_streamzService.JSC$7692_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
var ATT=function(){var F=_.Nz();this.JSC$7843_streamzService=F;F.addNewCounter("/client_streamz/youtube/identity/dma_pause_player")};
ATT.prototype.increment=function(){this.JSC$7843_streamzService.JSC$7692_incrementCounter("/client_streamz/youtube/identity/dma_pause_player")};
var ZQN=function(F){return F.getCount&&typeof F.getCount=="function"?F.getCount():_.Ee(F)||typeof F==="string"?F.length:_.xd.getCount(F)},XrO=function(F,W){if(typeof F.every=="function")return F.every(W,void 0);
if(_.Ee(F)||typeof F==="string")return Array.prototype.every.call(F,W,void 0);for(var E=_.aqB(F),h=_.ED(F),d=h.length,V=0;V<d;V++)if(!W.call(void 0,h[V],E&&E[V],F))return!1;return!0},HQq=function(F,W,E,h){var d=new _.Yx(null);
F&&_.hJ(d,F);W&&_.ds(d,W);E&&_.ND(d,E);h&&_.VD(d,h);return d},Pzg=function(){var F=_.OJ&&_.Cb(_.GkU,10)>=0,W;
if(W=_.J2Y)W=_.Cb(_.oFO,10)>=0;var E=_.cY&&_.Cb(_.GkU,85)>=0;return _.Cc||F||W||E},JbK=function(F){var W=_.vKz(F);
return W&&Pzg()?-F.scrollLeft:W&&_.O2(F,"overflowX")!="visible"?F.scrollWidth-F.clientWidth-F.scrollLeft:F.scrollLeft},aRg=function(F,W){W=Math.max(W,0);
_.vKz(F)?Pzg()?F.scrollLeft=-W:F.scrollLeft=F.scrollWidth-W-F.clientWidth:F.scrollLeft=W},g7K=0,Beg=!1;
Uo.prototype.set=function(F){this.relativeTimeStart_=F};
Uo.prototype.reset=function(){this.set(_.e2())};
Uo.prototype.get=function(){return this.relativeTimeStart_};
var fRK=null,OQO=function(){fRK||(fRK=new Uo)},bQF=function(){fRK||(fRK=new Uo)};
_.Ma(bQF,OQO);_.N=IpO.prototype;_.N.JSC$9164_buffer_="";_.N.set=function(F){this.JSC$9164_buffer_=""+F};
_.N.append=function(F,W,E){this.JSC$9164_buffer_+=String(F);if(W!=null)for(var h=1;h<arguments.length;h++)this.JSC$9164_buffer_+=arguments[h];return this};
_.N.clear=function(){this.JSC$9164_buffer_=""};
_.N.getLength=function(){return this.JSC$9164_buffer_.length};
_.N.toString=function(){return this.JSC$9164_buffer_};
var lRO=function(){var F={type:"unit",style:"narrow"};this.listType_=F&&F.type?F.type:"conjunction";this.listStyle_=F&&F.style?F.style:"long";this.listSymbols_=rTx;F=0;switch(this.listStyle_){case "short":F=1;break;case "narrow":F=2}switch(this.listType_){case "conjunction":this.listStartPattern_=this.listSymbols_.AND_START[F];this.listTwoPattern_=(this.listSymbols_.AND_TWO||this.listSymbols_.AND_END)[F];this.listMiddlePattern_=(this.listSymbols_.AND_MIDDLE||this.listSymbols_.AND_START)[F];this.listEndPattern_=
this.listSymbols_.AND_END[F];break;case "disjunction":this.listStartPattern_=(this.listSymbols_.OR_START||this.listSymbols_.AND_START)[F];this.listTwoPattern_=(this.listSymbols_.OR_TWO||this.listSymbols_.OR_END)[F];this.listMiddlePattern_=(this.listSymbols_.OR_MIDDLE||this.listSymbols_.AND_START)[F];this.listEndPattern_=this.listSymbols_.OR_END[F];break;case "unit":this.listStartPattern_=(this.listSymbols_.UNIT_START||this.listSymbols_.AND_START)[F],this.listTwoPattern_=(this.listSymbols_.UNIT_TWO||
this.listSymbols_.UNIT_END)[F],this.listMiddlePattern_=(this.listSymbols_.UNIT_MIDDLE||this.listSymbols_.AND_START)[F],this.listEndPattern_=this.listSymbols_.UNIT_END[F]}};
lRO.prototype.format=function(F){return nYO(this,F)};
var nYO=function(F,W){var E=W.length;switch(E){case 0:return"";case 1:return String(W[0]);case 2:return F.listTwoPattern_.replace("{0}",String(W[0])).replace("{1}",String(W[1]))}for(var h=F.listStartPattern_.replace("{0}",String(W[0])).replace("{1}",String(W[1])),d=2;d<E-1;++d)h=F.listMiddlePattern_.replace("{0}",h).replace("{1}",String(W[d]));return F.listEndPattern_.replace("{0}",h).replace("{1}",String(W[E-1]))},fpP=function(){var F={style:1};
this.style_=(F==null?void 0:F.style)||0;this.durationSymbols_=_.cLU||_.qhX},ybq=function(F,W){switch(W){default:case "years":return F.durationSymbols_.YEAR;
case "months":return F.durationSymbols_.MONTH;case "weeks":return F.durationSymbols_.WEEK;case "days":return F.durationSymbols_.DAY;case "hours":return F.durationSymbols_.HOUR;case "minutes":return F.durationSymbols_.MINUTE;case "seconds":return F.durationSymbols_.SECOND}},Dx=function(F,W,E){a:{E=ybq(F,E);
switch(F.style_){case 1:if(E.LONG!=void 0){F=E.LONG;break a}case 2:if(E.NARROW!=void 0){F=E.NARROW;break a}default:F=E.SHORT;break a}F=void 0}return F?(new _.uCX("{DURATION_VALUE,plural,"+F+"}")).format({DURATION_VALUE:W}):""};
fpP.prototype.format=function(F){var W=[],E=F.years,h=F.months,d=F.weeks,V=F.days,R=F.hours,M=F.minutes;F=F.seconds;E!=null&&W.push(Dx(this,E,"years"));h!=null&&W.push(Dx(this,h,"months"));d!=null&&W.push(Dx(this,d,"weeks"));V!=null&&W.push(Dx(this,V,"days"));R!=null&&W.push(Dx(this,R,"hours"));M!=null&&W.push(Dx(this,M,"minutes"));F!=null&&W.push(Dx(this,F,"seconds"));return(new lRO).format(W)};
var j3w=!1,LFF=function(F){_.Fe.call(this,F.message||F.description||F.name);this.isMissing=F instanceof RU;this.isTimeout=F instanceof _.Sv&&F.errorCode=="net.timeout";this.isCanceled=F instanceof _.FR};
_.k(LFF,_.Fe);LFF.prototype.name="BiscottiError";var RU=function(){_.Fe.call(this,"Biscotti ID is missing from server")};
_.k(RU,_.Fe);RU.prototype.name="BiscottiMissingError";var ex=null,jjK=function(){try{var F=_.ju("yt.ads.biscotti.getId_");return F?F():d1K()}catch(W){return _.xT(W)}},apK,iQK=function(F){return _.dR({type:"SET_GUIDE_IS_EXPANDED",
payload:F})},rbF=function(F){return _.dR({type:"SET_ONLINE_STATUS",
payload:F})},TYP=function(F,W){return _.dR({type:"SET_TRANSCRIPTION_STATE",
payload:{high:F,low:W}})},oY6=function(F){return _.dR({type:"SET_OVERLAY_STATE",
payload:F})},G_w=0,Ydq=function(F,W,E){var h=this;
this.priority=W;this.delay=E;this.jobId=0;this.completionCallback=_.sn;this.wrappedJob=function(){F();h.completionCallback()};
this.id=++G_w};
Ydq.prototype.enqueue=function(F){this.completionCallback=F;this.jobId=_.P0.addJob(this.wrappedJob,this.priority,this.delay)};
var x0=function(){_.Re.call(this);this.isActive=!1;this.suspendedTasks=new Set;this.scheduledTasks=new Set;this.taskIdToTask=new Map};
_.k(x0,_.Re);x0.prototype.addJob=function(F,W,E){F=new Ydq(F,W,E);this.taskIdToTask.set(F.id,F);this.isActive?wrg(this,F):this.suspendedTasks.add(F);return F.id};
var wrg=function(F,W){F.scheduledTasks.add(W);W.enqueue(function(){F.scheduledTasks.delete(W)})};
x0.prototype.cancelJob=function(F){(F=this.taskIdToTask.get(F))&&(this.scheduledTasks.delete(F)?_.P0.cancelJob(F.jobId):this.suspendedTasks.delete(F))};
x0.prototype.pause=function(){var F=this;this.isActive=!1;this.scheduledTasks.forEach(function(W){_.P0.cancelJob(W.jobId);F.suspendedTasks.add(W)});
this.scheduledTasks.clear()};
x0.prototype.start=function(){var F=this;this.isActive=!0;this.suspendedTasks.forEach(function(W){wrg(F,W)});
this.suspendedTasks.clear()};
x0.prototype.reset=function(){this.scheduledTasks.forEach(function(F){_.P0.cancelJob(F.jobId)});
this.scheduledTasks.clear();this.suspendedTasks.clear();this.taskIdToTask.clear()};
var k0=function(F,W){this.JSC$10839_networkService_=F;this.pageRequestPromise=W};
k0.prototype.fetchData=function(F){uEq(this,this.JSC$10839_networkService_.fetchData(F))};
k0.prototype.postData=function(F,W){uEq(this,this.JSC$10839_networkService_.postData(F,W))};
k0.prototype.requestDataForServiceEndpoint=function(F,W){uEq(this,this.JSC$10839_networkService_.requestDataForServiceEndpoint(F,W))};
var uEq=function(F,W){W.then(F.pageRequestPromise.onSuccess,F.pageRequestPromise.onFailure,F.pageRequestPromise)};
k0.prototype.cancel=function(){this.pageRequestPromise.cancel()};
var AS=function(F){this.buildNetworkRequest_=F;this.pendingRequests_=new Set};
AS.prototype.reset=function(){this.pendingRequests_.forEach(function(F){F.cancel()});
this.pendingRequests_.clear()};
AS.prototype.fetchData=function(F){var W=Sdw(this);W.fetchData(F);return W.pageRequestPromise};
AS.prototype.postData=function(F,W){var E=Sdw(this);E.postData(F,W);return E.pageRequestPromise};
AS.prototype.requestDataForServiceEndpoint=function(F,W){var E=Sdw(this);E.requestDataForServiceEndpoint(F,W);return E.pageRequestPromise};
var Sdw=function(F){var W=F.buildNetworkRequest_();F.pendingRequests_.add(W);var E=function(){F.pendingRequests_.delete(W)};
W.pageRequestPromise.then(E,E);return W},pr$=function(F){var W=new x0;
this.JSC$10846_networkService_=F;this.JSC$10846_taskManager_=W;this.JSC$10846_networkManager_=new AS(this.networkRequestFactory_.bind(this))};
_.N=pr$.prototype;_.N.networkRequestFactory_=function(){return new k0(this.JSC$10846_networkService_,new _.VV(this.JSC$10846_taskManager_))};
_.N.reset=function(){this.JSC$10846_taskManager_.reset();this.JSC$10846_networkManager_.reset()};
_.N.start=function(){this.JSC$10846_taskManager_.start()};
_.N.pause=function(){this.JSC$10846_taskManager_.pause()};
_.N.getTaskManager=function(){return this.JSC$10846_taskManager_};
_.N.getNetworkManager=function(){return this.JSC$10846_networkManager_};
var yHw=null,rHP=[],ME=0,Q6=0,gF=null,mjN=function(){var F=(0,_.fM_)();F&&o38(F,F.mechanism.__iterator__(!0))},ts=function(F){this.token=F};
ts.getInstance=function(){var F;return _.e(function(W){if(W.nextAddress==1)return _.Q(W,_.pU(),2);F=W.yieldResult;if(!F)return W.return();ts.instance||(ts.instance=new ts(F));return W.return(ts.instance)})};
var uH6=function(F){var W;return _.e(function(E){if(E.nextAddress==1)return _.Q(E,GX$(F.token),2);W=E.yieldResult;return E.return(W.clear("resource-manifest-assets"))})},z6=function(F){this.token=F};
z6.getInstance=function(){var F;return _.e(function(W){if(W.nextAddress==1)return _.Q(W,_.pU(),2);F=W.yieldResult;if(!F)return W.return();z6.instance||(z6.instance=new z6(F));return W.return(z6.instance)})};
var YmO=function(F){var W;return _.e(function(E){if(E.nextAddress==1)return _.Q(E,GX$(F.token),2);W=E.yieldResult;return _.Q(E,W.clear("auth"),0)})},KAF=!1,Ce=null,RyP=void 0,vtO=!1,F9$=function(F){_.Fe.call(this,F)};
_.k(F9$,_.X1U);var vbP=function(){var F=window.navigator.userAgent.match(/Chrome\/([0-9]+)/);return F?parseInt(F[1],10):0},W9T=function(F){return!!document.currentScript&&(document.currentScript.src.indexOf("?"+F)!=-1||document.currentScript.src.indexOf("&"+F)!=-1)},EV8=function(){return typeof window.__onGCastApiAvailable=="function"?window.__onGCastApiAvailable:null},kJF=function(F){F.length?hwq(F.shift(),function(){kJF(F)}):cFT()},sjg=function(F){return"chrome-extension://"+F+"/cast_sender.js"},hwq=function(F,
W,E){var h=document.createElement("script");
h.onerror=W;E&&(h.onload=E);_.nu(h,_.s2(F));(document.head||document.documentElement).appendChild(h)},dY6=function(){var F=vbP(),W=[];
if(F>1){var E=F-1;W.push("//www.gstatic.com/eureka/clank/"+F+"/cast_sender.js");W.push("//www.gstatic.com/eureka/clank/"+E+"/cast_sender.js")}return W},cFT=function(){var F=EV8();
F&&F(!1,"No cast extension found")},xc8=function(){if(Nkg){var F=2,W=EV8(),E=function(){F--;
F==0&&W&&W(!0)};
window.__onGCastApiAvailable=E;hwq("//www.gstatic.com/cast/sdk/libs/sender/1.0/cast_framework.js",cFT,E)}},I2T=function(){xc8();
var F=dY6();F.push("//www.gstatic.com/eureka/clank/cast_sender.js");kJF(F)},Dcu=function(){xc8();
var F=dY6();F.push.apply(F,_.x9(AFT.map(sjg)));F.push("//www.gstatic.com/eureka/clank/cast_sender.js");kJF(F)},Nkg=W9T("loadCastFramework")||W9T("loadCastApplicationFramework"),AFT=["pkedcjkdefgpdelpbcmbmeomcjbeemfm",
"enhhojjnijigcajfphajepfemndkmdlo"];var Vb6=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(Vb6,_.n2);var UY6=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(UY6,_.n2);var RwF=function(){var F=new UY6;return _.rH(F,1,3)};var sC=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(sC,_.n2);var QLP=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(QLP,_.n2);var ewN=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(ewN,_.n2);ewN.prototype.getToken=function(){return _.bj(this,1)};
ewN.prototype.setToken=function(F){return _.NB(this,1,F)};
var Mn6=function(F){return _.De(F,3,_.yx,_.Fg())},gOO=function(F){return _.De(F,6,_.yx,_.Fg())};var LD=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(LD,_.n2);LD.prototype.getToken=function(){return _.Em(this,ewN,2)};
LD.prototype.setToken=function(F){return _.hy(this,2,F)};
LD.prototype.getName=function(){return _.bj(this,6)};
var Mb$=_.Wp(LD);var gV6=function(F,W,E){this.requestMessage=F;this.methodDescriptor=W;this.metadata=E};
gV6.prototype.getMetadata=function(){return this.metadata};var Q6g=function(F,W){W=W===void 0?{}:W;this.responseMessage=F;this.metadata=W;this.status=null};
Q6g.prototype.getMetadata=function(){return this.metadata};
Q6g.prototype.getStatus=function(){return this.status};var qq=function(F,W,E,h,d){this.name=F;this.methodType="unary";this.requestType=W;this.responseType=E;this.requestSerializeFn=h;this.responseDeserializeFn=d},zw6=function(F,W,E){E=E===void 0?{}:E;
return new gV6(W,F,E)};
qq.prototype.getName=function(){return this.name};var $0=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k($0,_.n2);$0.prototype.setHeader=function(F){return _.hy(this,1,F)};
$0.prototype.hasHeader=function(){return _.Lc(this,sC,1)};var tbT=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(tbT,_.n2);var CJP=new qq("/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",$0,tbT,function(F){return F.serialize()},_.Wp(tbT));var Zx=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(Zx,_.n2);Zx.prototype.setHeader=function(F){return _.hy(this,1,F)};
Zx.prototype.hasHeader=function(){return _.Lc(this,sC,1)};var Bkq=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(Bkq,_.n2);var vVK=new qq("/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",Zx,Bkq,function(F){return F.serialize()},_.Wp(Bkq));var Xz=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(Xz,_.n2);Xz.prototype.setHeader=function(F){return _.hy(this,1,F)};
Xz.prototype.hasHeader=function(){return _.Lc(this,sC,1)};var I1P=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(I1P,_.n2);I1P.prototype.getLink=function(){return _.Em(this,LD,1)};var cG6=new qq("/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",Xz,I1P,function(F){return F.serialize()},_.Wp(I1P));var H1=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(H1,_.n2);H1.prototype.setHeader=function(F){return _.hy(this,1,F)};
H1.prototype.hasHeader=function(){return _.Lc(this,sC,1)};var DYw=new qq("/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",H1,LD,function(F){return F.serialize()},Mb$);var xY8=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(xY8,_.n2);var kt$=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(kt$,_.n2);kt$.prototype.getUrl=function(){return _.bj(this,2)};
kt$.prototype.setUrl=function(F){return _.NB(this,2,F)};var AG6=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(AG6,_.n2);var s6K=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(s6K,_.n2);var L9K=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(L9K,_.n2);var At6=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(At6,_.n2);var knw=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(knw,_.n2);var q8O=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(q8O,_.n2);var HXK=_.Wp(q8O);var $Yx=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k($Yx,_.n2);var P1=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(P1,_.n2);P1.prototype.setHeader=function(F){return _.hy(this,1,F)};
P1.prototype.hasHeader=function(){return _.Lc(this,sC,1)};
P1.prototype.getCompletionUrl=function(){return _.bj(this,6)};
P1.prototype.getDeviceId=function(){return _.bj(this,11)};var Zxx=new qq("/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",P1,q8O,function(F){return F.serialize()},HXK);var XS6=new Set(["SAPISIDHASH","APISIDHASH"]);var Hxw=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(Hxw,_.n2);Hxw.prototype.getMessage=function(){return _.bj(this,2)};
var PJ6=_.Wp(Hxw);var JS=function(F,W){this.xhrNodeReadableStream_=F.nodeReadableStream;this.grpcResponseDeserializeFn_=W;this.JSC$16951_xhr_=F.xhr;this.onDataCallbacks_=[];this.onMetadataCallbacks_=[];this.onStatusCallbacks_=[];this.onEndCallbacks_=[];this.JSC$16951_onErrorCallbacks_=[];this.xhrNodeReadableStream_&&JGK(this)},nVw=function(F,W){var E=new a1$;
_.ce(F.JSC$16951_xhr_,"complete",function(){if(F.JSC$16951_xhr_.isSuccess()){var h=F.JSC$16951_xhr_.getResponseText();var d;if(d=W)d=F.JSC$16951_xhr_,d.JSC$7701_xhr_&&d.isComplete()?(d=d.JSC$7701_xhr_.getResponseHeader("Content-Type"),d=d===null?void 0:d):d=void 0,d=d==="text/plain";if(d){if(!atob)throw Error("Jj");h=atob(h)}try{var V=F.grpcResponseDeserializeFn_(h)}catch(M){ah(F,pcw(new _.Jh(13,"Error when deserializing response data; error: "+M+(", response: "+h)),E));return}h=_.eS(F.JSC$16951_xhr_.getStatus());
f1g(F,Ox8(F));h==0?bxg(F,V):ah(F,pcw(new _.Jh(h,"Xhr succeeded but the status code is not 200"),E))}else{h=F.JSC$16951_xhr_.getResponseText();V=Ox8(F);if(h){var R=l1K(F,h);h=R.code;d=R.details;R=R.metadata}else h=2,d="Rpc failed due to xhr error. uri: "+String(F.JSC$16951_xhr_.JSC$7701_lastUri_)+", error code: "+F.JSC$16951_xhr_.JSC$7701_lastErrorCode_+", error: "+F.JSC$16951_xhr_.getLastError(),R=V;f1g(F,V);ah(F,pcw(new _.Jh(h,d,R),E))}})},JGK=function(F){F.xhrNodeReadableStream_.on("data",function(W){if("1"in
W){var E=W["1"];
try{var h=F.grpcResponseDeserializeFn_(E)}catch(d){ah(F,new _.Jh(13,"Error when deserializing response data; error: "+d+(", response: "+E)))}h&&bxg(F,h)}if("2"in W)for(W=l1K(F,W["2"]),E=0;E<F.onStatusCallbacks_.length;E++)F.onStatusCallbacks_[E](W)});
F.xhrNodeReadableStream_.on("end",function(){f1g(F,Ox8(F));for(var W=0;W<F.onEndCallbacks_.length;W++)F.onEndCallbacks_[W]()});
F.xhrNodeReadableStream_.on("error",function(){if(F.JSC$16951_onErrorCallbacks_.length!=0){var W=F.JSC$16951_xhr_.JSC$7701_lastErrorCode_;W!==0||F.JSC$16951_xhr_.isSuccess()||(W=6);var E=-1;switch(W){case 0:var h=2;break;case 7:h=10;break;case 8:h=4;break;case 6:E=F.JSC$16951_xhr_.getStatus();h=_.eS(E);break;default:h=14}f1g(F,Ox8(F));W=_.QS_(W)+", error: "+F.JSC$16951_xhr_.getLastError();E!=-1&&(W+=", http status code: "+E);ah(F,new _.Jh(h,W))}})},Ox8=function(F){var W={},E=j4T(F.JSC$16951_xhr_);
Object.keys(E).forEach(function(h){W[h]=E[h]});
return W},l1K=function(F,W){var E=2,h={};
try{var d=PJ6(W);E=_.Wb(d,1);var V=d.getMessage();_.KC(d,$jT,3,_.Fg()).length&&(h["grpc-web-status-details-bin"]=W)}catch(R){F.JSC$16951_xhr_&&F.JSC$16951_xhr_.getStatus()===404?(E=5,V="Not Found: "+String(F.JSC$16951_xhr_.JSC$7701_lastUri_)):(E=14,V="Unable to parse RpcStatus: "+R)}return{code:E,details:V,metadata:h}};
JS.prototype.on=function(F,W){F=="data"?this.onDataCallbacks_.push(W):F=="metadata"?this.onMetadataCallbacks_.push(W):F=="status"?this.onStatusCallbacks_.push(W):F=="end"?this.onEndCallbacks_.push(W):F=="error"&&this.JSC$16951_onErrorCallbacks_.push(W);return this};
var fD=function(F,W){W=F.indexOf(W);W>-1&&F.splice(W,1)};
JS.prototype.removeListener=function(F,W){F=="data"?fD(this.onDataCallbacks_,W):F=="metadata"?fD(this.onMetadataCallbacks_,W):F=="status"?fD(this.onStatusCallbacks_,W):F=="end"?fD(this.onEndCallbacks_,W):F=="error"&&fD(this.JSC$16951_onErrorCallbacks_,W);return this};
JS.prototype.cancel=function(){this.JSC$16951_xhr_.abort()};
var bxg=function(F,W){for(var E=0;E<F.onDataCallbacks_.length;E++)F.onDataCallbacks_[E](W)},f1g=function(F,W){for(var E=0;E<F.onMetadataCallbacks_.length;E++)F.onMetadataCallbacks_[E](W)},ah=function(F,W){for(var E=0;E<F.JSC$16951_onErrorCallbacks_.length;E++)F.JSC$16951_onErrorCallbacks_[E](W)};
JS.prototype.cancel=JS.prototype.cancel;JS.prototype.removeListener=JS.prototype.removeListener;JS.prototype.on=JS.prototype.on;var a1$=function(){var F=Error.call(this);this.message=F.message;"stack"in F&&(this.stack=F.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="AsyncStack"};
_.k(a1$,Error);var OC=function(F){this.JSC$16960_worker_=F.worker||null;this.JSC$16960_streamBinaryChunks_=F.streamBinaryChunks||!1;this.JSC$16960_credentialsMode_=void 0};
_.Ma(OC,_.S2R);OC.prototype.createInstance=function(){var F=new bQ(this.JSC$16960_worker_,this.JSC$16960_streamBinaryChunks_);this.JSC$16960_credentialsMode_&&F.setCredentialsMode(this.JSC$16960_credentialsMode_);return F};
OC.prototype.setCredentialsMode=function(F){this.JSC$16960_credentialsMode_=F};
var bQ=function(F,W){_.qo.call(this);this.JSC$16964_worker_=F;this.JSC$16964_streamBinaryChunks_=W;this.JSC$16964_credentialsMode_=void 0;this.status=this.readyState=0;this.responseType=this.responseText=this.response=this.statusText="";this.onreadystatechange=null;this.requestHeaders_=new Headers;this.JSC$16964_responseHeaders_=null;this.JSC$16964_method_="GET";this.JSC$16964_url_="";this.inProgress_=!1;this.JSC$16964_textDecoder_=this.currentReader_=this.fetchResponse_=null};
_.Ma(bQ,_.qo);bQ.prototype.open=function(F,W){if(this.readyState!=0)throw this.abort(),Error("Kj");this.JSC$16964_method_=F;this.JSC$16964_url_=W;this.readyState=1;lQ(this)};
bQ.prototype.send=function(F){if(this.readyState!=1)throw this.abort(),Error("Lj");this.inProgress_=!0;var W={headers:this.requestHeaders_,method:this.JSC$16964_method_,credentials:this.JSC$16964_credentialsMode_,cache:void 0};F&&(W.body=F);(this.JSC$16964_worker_||_.EY).fetch(new Request(this.JSC$16964_url_,W)).then(this.handleResponse_.bind(this),this.handleSendFailure_.bind(this))};
bQ.prototype.abort=function(){this.response=this.responseText="";this.requestHeaders_=new Headers;this.status=0;this.currentReader_&&this.currentReader_.cancel("Request was aborted.").catch(function(){return null});
this.readyState>=1&&this.inProgress_&&this.readyState!=4&&(this.inProgress_=!1,nD(this));this.readyState=0};
bQ.prototype.handleResponse_=function(F){if(this.inProgress_&&(this.fetchResponse_=F,this.JSC$16964_responseHeaders_||(this.status=this.fetchResponse_.status,this.statusText=this.fetchResponse_.statusText,this.JSC$16964_responseHeaders_=F.headers,this.readyState=2,lQ(this)),this.inProgress_&&(this.readyState=3,lQ(this),this.inProgress_)))if(this.responseType==="arraybuffer")F.arrayBuffer().then(this.handleResponseArrayBuffer_.bind(this),this.handleSendFailure_.bind(this));else if(typeof _.EY.ReadableStream!==
"undefined"&&"body"in F){this.currentReader_=F.body.getReader();if(this.JSC$16964_streamBinaryChunks_){if(this.responseType)throw Error("Mj");this.response=[]}else this.response=this.responseText="",this.JSC$16964_textDecoder_=new TextDecoder;yGO(this)}else F.text().then(this.handleResponseText_.bind(this),this.handleSendFailure_.bind(this))};
var yGO=function(F){F.currentReader_.read().then(F.handleDataFromStream_.bind(F)).catch(F.handleSendFailure_.bind(F))};
bQ.prototype.handleDataFromStream_=function(F){if(this.inProgress_){if(this.JSC$16964_streamBinaryChunks_&&F.value)this.response.push(F.value);else if(!this.JSC$16964_streamBinaryChunks_){var W=F.value?F.value:new Uint8Array(0);if(W=this.JSC$16964_textDecoder_.decode(W,{stream:!F.done}))this.response=this.responseText+=W}F.done?nD(this):lQ(this);this.readyState==3&&yGO(this)}};
bQ.prototype.handleResponseText_=function(F){this.inProgress_&&(this.response=this.responseText=F,nD(this))};
bQ.prototype.handleResponseArrayBuffer_=function(F){this.inProgress_&&(this.response=F,nD(this))};
bQ.prototype.handleSendFailure_=function(){this.inProgress_&&nD(this)};
var nD=function(F){F.readyState=4;F.fetchResponse_=null;F.currentReader_=null;F.JSC$16964_textDecoder_=null;lQ(F)};
bQ.prototype.setRequestHeader=function(F,W){this.requestHeaders_.append(F,W)};
bQ.prototype.getResponseHeader=function(F){return this.JSC$16964_responseHeaders_?this.JSC$16964_responseHeaders_.get(F.toLowerCase())||"":""};
bQ.prototype.getAllResponseHeaders=function(){if(!this.JSC$16964_responseHeaders_)return"";for(var F=[],W=this.JSC$16964_responseHeaders_.entries(),E=W.next();!E.done;)E=E.value,F.push(E[0]+": "+E[1]),E=W.next();return F.join("\r\n")};
bQ.prototype.setCredentialsMode=function(F){this.JSC$16964_credentialsMode_=F};
var lQ=function(F){F.onreadystatechange&&F.onreadystatechange.call(F)};
Object.defineProperty(bQ.prototype,"withCredentials",{get:function(){return this.JSC$16964_credentialsMode_==="include"},
set:function(F){this.setCredentialsMode(F?"include":"same-origin")}});var j6K=function(F){var W="";_.xd.forEach(F,function(E,h){W+=h;W+=":";W+=E;W+="\r\n"});
return W},ixw=function(F,W,E){if(_.xd.isEmpty(E))return F;
E=j6K(E);if(typeof F==="string")return _.wa(F,_.ro(W),E);_.ig(F,W,E);return F};var rGK=function(){this.isInputValid_=!0;this.JSC$16970_streamPos_=0;this.leftoverInput_=""};
rGK.prototype.isInputValid=function(){return this.isInputValid_};var IU=function(){this.errorMessage_=null;this.result_=[];this.countLengthBytes_=this.length_=this.tag_=this.state_=this.JSC$16973_streamPos_=0;this.messageBuffer_=null;this.countMessageBytes_=0};
IU.prototype.isInputValid=function(){return this.state_!=3};
var yI=function(F,W,E,h){F.state_=3;F.errorMessage_="The stream is broken @"+F.JSC$16973_streamPos_+"/"+E+". Error: "+h+". With input:\n"+W;throw Error(F.errorMessage_);};
IU.prototype.acceptsBinaryInput=function(){return!0};
IU.prototype.parse=function(F){function W(g){g&128&&yI(V,R,M,"invalid tag");(g&7)!=2&&yI(V,R,M,"invalid wire type");V.tag_=g>>>3;V.tag_!=1&&V.tag_!=2&&V.tag_!=15&&yI(V,R,M,"unexpected tag");V.state_=1;V.length_=0;V.countLengthBytes_=0}
function E(g){V.countLengthBytes_++;V.countLengthBytes_==5&&g&240&&yI(V,R,M,"message length too long");V.length_|=(g&127)<<(V.countLengthBytes_-1)*7;g&128||(V.state_=2,V.countMessageBytes_=0,typeof Uint8Array!=="undefined"?V.messageBuffer_=new Uint8Array(V.length_):V.messageBuffer_=Array(V.length_),V.length_==0&&d())}
function h(g){V.messageBuffer_[V.countMessageBytes_++]=g;V.countMessageBytes_==V.length_&&d()}
function d(){if(V.tag_<15){var g={};g[V.tag_]=V.messageBuffer_;V.result_.push(g)}V.state_=0}
for(var V=this,R=F instanceof Array?F:new Uint8Array(F),M=0;M<R.length;){switch(V.state_){case 3:yI(V,R,M,"stream already broken");break;case 0:W(R[M]);break;case 1:E(R[M]);break;case 2:h(R[M]);break;default:throw Error("Oj`"+V.state_);}V.JSC$16973_streamPos_++;M++}F=V.result_;V.result_=[];return F.length>0?F:null};var KRO=function(){this.errorMessage_=null;this.JSC$16976_streamPos_=0;this.base64Decoder_=new rGK;this.pbParser_=new IU};
KRO.prototype.isInputValid=function(){return this.errorMessage_===null};
var Tkq=function(F,W,E){F.errorMessage_="The stream is broken @"+F.JSC$16976_streamPos_+". Error: "+E+". With input:\n"+W;throw Error(F.errorMessage_);};
KRO.prototype.acceptsBinaryInput=function(){return!1};
KRO.prototype.parse=function(F){this.errorMessage_!==null&&Tkq(this,F,"stream already broken");var W=null;try{var E=this.base64Decoder_;if(!E.isInputValid_)throw E.isInputValid_=!1,Error("Nj`"+E.JSC$16970_streamPos_+"`stream already broken`"+F);E.leftoverInput_+=F;var h=Math.floor(E.leftoverInput_.length/4);if(h==0)var d=null;else{try{var V=_.cxr(E.leftoverInput_.slice(0,h*4))}catch(g){var R=E.leftoverInput_,M=g.message;E.isInputValid_=!1;throw Error("Nj`"+E.JSC$16970_streamPos_+"`"+M+"`"+R);}E.JSC$16970_streamPos_+=
h*4;E.leftoverInput_=E.leftoverInput_.slice(h*4);d=V}W=d===null?null:this.pbParser_.parse(d)}catch(g){Tkq(this,F,g.message)}this.JSC$16976_streamPos_+=F.length;return W};var my6=function(){this.errorMessage_=this.jsonStreamParser_=null;this.state_=this.JSC$16979_streamPos_=0;this.result_=[];this.statusParsed_=!1};
my6.prototype.isInputValid=function(){return this.errorMessage_===null};
my6.prototype.acceptsBinaryInput=function(){return!1};
my6.prototype.parse=function(F){function W(g){V.state_=6;V.errorMessage_="The stream is broken @"+V.JSC$16979_streamPos_+"/"+R+". Error: "+g+". With input:\n";throw Error(V.errorMessage_);}
function E(){V.jsonStreamParser_=new _.gN({allowCompactJsonArrayFormat:!0,deliverMessageAsRawString:!0})}
function h(g){if(g)for(var t=0;t<g.length;t++){var C={};C[1]=g[t];V.result_.push(C)}}
function d(g){if(g){(V.statusParsed_||g.length>1)&&W("extra status: "+g);V.statusParsed_=!0;var t={};t[2]=g[0];V.result_.push(t)}}
for(var V=this,R=0;R<F.length;){var M;if(M=V.state_!==2){a:{for(;R<F.length;){if(!_.Md(F[R])){M=!0;break a}R++;V.JSC$16979_streamPos_++}M=!1}M=!M}if(M)return null;switch(V.state_){case 6:W("stream already broken");break;case 0:F[R]==="["?(V.state_=1,R++,V.JSC$16979_streamPos_++):W("unexpected input token");break;case 1:F[R]==="["?(V.state_=2,E()):F[R]===","||F.slice(R,R+5)=="null,"?V.state_=3:F[R]==="]"?(V.state_=5,R++,V.JSC$16979_streamPos_++):W("unexpected input token");break;case 2:M=V.jsonStreamParser_.parse(F.substring(R));
h(M);V.jsonStreamParser_.done()?(V.state_=3,M=V.jsonStreamParser_.JSC$9291_buffer_,V.JSC$16979_streamPos_+=F.length-R-M.length,F=M,R=0):(V.JSC$16979_streamPos_+=F.length-R,R=F.length);break;case 3:F[R]===","||F.slice(R,R+5)=="null,"?(V.state_=4,E(),V.jsonStreamParser_.parse("["),R+=F[R]===","?1:5,V.JSC$16979_streamPos_++):F[R]==="]"&&(V.state_=5,R++,V.JSC$16979_streamPos_++);break;case 4:M=V.jsonStreamParser_.parse(F.substring(R));d(M);V.jsonStreamParser_.done()?(V.state_=5,M=V.jsonStreamParser_.JSC$9291_buffer_,
V.JSC$16979_streamPos_+=F.length-R-M.length,F=M,R=0):(V.JSC$16979_streamPos_+=F.length-R,R=F.length);break;case 5:W("extra input after stream end")}}return V.result_.length>0?(F=V.result_,V.result_=[],F):null};var oVK=function(F){this.JSC$16982_xhr_=F;this.JSC$16982_parser_=null;this.status_=this.JSC$16982_pos_=0;this.hasStreamingResponseData_=!1;this.dataHandler_=this.statusHandler_=this.JSC$16982_textDecoder_=null;this.JSC$16982_eventHandler_=new _.hR(this);this.JSC$16982_eventHandler_.listen(this.JSC$16982_xhr_,"readystatechange",this.JSC$16984_readyStateChangeHandler_)},jN=function(F,W){F.status_!=W&&(F.status_=W,F.statusHandler_&&F.statusHandler_())},iQ=function(F){F.JSC$16982_eventHandler_.removeAll();
if(F.JSC$16982_xhr_){var W=F.JSC$16982_xhr_;F.JSC$16982_xhr_=null;W.abort();W.dispose()}};
oVK.prototype.getStatus=function(){return this.status_};
oVK.prototype.JSC$16984_readyStateChangeHandler_=function(F){F=F.target;try{if(F==this.JSC$16982_xhr_)a:{var W=_.Os(this.JSC$16982_xhr_),E=this.JSC$16982_xhr_.JSC$7701_lastErrorCode_,h=this.JSC$16982_xhr_.getStatus(),d=this.JSC$16982_xhr_.getResponseText();F=[];if(this.JSC$16982_xhr_.getResponse()instanceof Array){var V=this.JSC$16982_xhr_.getResponse();V.length>0&&V[0]instanceof Uint8Array&&(this.hasStreamingResponseData_=!0,F=V)}if(!(W<3||W==3&&!d&&F.length==0))if(h=h==200||h==206,W==4&&(E==8?jN(this,
7):E==7?jN(this,8):h||jN(this,3)),this.JSC$16982_parser_||(this.JSC$16982_parser_=Fr6(this.JSC$16982_xhr_),this.JSC$16982_parser_==null&&jN(this,5)),this.status_>2)iQ(this);else{if(F.length>this.JSC$16982_pos_){var R=F.length;E=[];try{if(this.JSC$16982_parser_.acceptsBinaryInput())for(var M=0;M<R;M++){var g=this.JSC$16982_parser_.parse(Array.from(F[M]));g&&(E=E.concat(g))}else{g="";if(!this.JSC$16982_textDecoder_){if(typeof TextDecoder==="undefined")throw Error("Pj");this.JSC$16982_textDecoder_=new TextDecoder}for(M=
0;M<R;M++)g+=this.JSC$16982_textDecoder_.decode(F[M],{stream:W==4&&M==R-1});E=this.JSC$16982_parser_.parse(g)}F.splice(0,R);E&&this.dataHandler_(E)}catch(C){jN(this,5);iQ(this);break a}}else if(d.length>this.JSC$16982_pos_){M=d.slice(this.JSC$16982_pos_);this.JSC$16982_pos_=d.length;try{var t=this.JSC$16982_parser_.parse(M);t!=null&&this.dataHandler_&&this.dataHandler_(t)}catch(C){jN(this,5);iQ(this);break a}}W==4?(d.length!=0||this.hasStreamingResponseData_?jN(this,2):jN(this,4),iQ(this)):jN(this,
1)}}}catch(C){jN(this,6),iQ(this)}};var GtF=function(F){F=this.xhrReader_=F;var W=(0,_.kj)(this.onData_,this);F.dataHandler_=W;F=this.xhrReader_;W=(0,_.kj)(this.onStatusChange_,this);F.statusHandler_=W;this.JSC$16986_callbackMap_={};this.callbackOnceMap_={}};
_.N=GtF.prototype;_.N.on=function(F,W){var E=this.JSC$16986_callbackMap_[F];E||(E=[],this.JSC$16986_callbackMap_[F]=E);E.push(W);return this};
_.N.addListener=function(F,W){this.on(F,W);return this};
_.N.removeListener=function(F,W){var E=this.JSC$16986_callbackMap_[F];E&&_.mY(E,W);(F=this.callbackOnceMap_[F])&&_.mY(F,W);return this};
_.N.once=function(F,W){var E=this.callbackOnceMap_[F];E||(E=[],this.callbackOnceMap_[F]=E);E.push(W);return this};
_.N.onData_=function(F){var W=this.JSC$16986_callbackMap_.data;W&&Y8K(F,W);(W=this.callbackOnceMap_.data)&&Y8K(F,W);this.callbackOnceMap_.data=[]};
var Y8K=function(F,W){for(var E={},h=0;h<F.length;E={message$jscomp$969:void 0},h++)E.message$jscomp$969=F[h],W.forEach(function(d){return function(V){try{V(d.message$jscomp$969)}catch(R){}}}(E))};
GtF.prototype.onStatusChange_=function(){switch(this.xhrReader_.getStatus()){case 1:wS$(this,"readable");break;case 5:case 6:case 4:case 7:case 3:wS$(this,"error");break;case 8:wS$(this,"close");break;case 2:wS$(this,"end")}};
var wS$=function(F,W){var E=F.JSC$16986_callbackMap_[W];E&&E.forEach(function(h){try{h()}catch(d){}});
(E=F.callbackOnceMap_[W])&&E.forEach(function(h){h()});
F.callbackOnceMap_[W]=[]};var uFK=function(){var F={format:"jspb"};F=F===void 0?{}:F;this.suppressCorsPreflight=F.suppressCorsPreflight||_.ju("suppressCorsPreflight",F)||!1;this.withCredentials=F.withCredentials||_.ju("withCredentials",F)||!1;this.streamInterceptors=F.streamInterceptors||[];this.unaryInterceptors=F.unaryInterceptors||[];this.workerScope=F.workerScope;this.chunkedServerStreaming=F.useFetchDownloadStreams||!1},mYq=function(F,W,E,h,d,V){V=V===void 0?{}:V;
var R=W.substring(0,W.length-d.name.length),M,g=(M=V)==null?void 0:M.signal;return S8F(function(t){return new Promise(function(C,B){if(g==null?0:g.aborted){var I=new _.Jh(1,"Aborted");I.cause=g.reason;B(I)}else{var x={},A=pSg(F,t,R);A.on("error",function(X){return void B(X)});
A.on("metadata",function(X){x=X});
A.on("data",function(X){var P=x;P=P===void 0?{}:P;C(new Q6g(X,P))});
g&&g.addEventListener("abort",function(){A.cancel();var X=new _.Jh(1,"Aborted");X.cause=g.reason;B(X)})}})},F.unaryInterceptors).call(F,zw6(d,E,h)).then(function(t){return t.responseMessage})},rf=function(F,W,E,h,d){var V=V===void 0?{}:V;
return mYq(F,W,E,h,d,V)};
uFK.prototype.serverStreaming=function(F,W,E,h){var d=this,V=F.substring(0,F.length-h.name.length);return K9w(function(R){var M=R.methodDescriptor,g=R.getMetadata(),t=Fc8(d,!1);g=Wcw(d,g,t,V+M.getName());var C=EaN(t,M.responseDeserializeFn,!0);R=M.requestSerializeFn(R.requestMessage);t.send(g,"POST",R);return C},this.streamInterceptors).call(this,zw6(h,W,E))};
var pSg=function(F,W,E){var h=W.methodDescriptor,d=W.getMetadata(),V=Fc8(F,!0);F=Wcw(F,d,V,E+h.getName());E=EaN(V,h.responseDeserializeFn,!1);nVw(E,d["X-Goog-Encode-Response-If-Executable"]==="base64");W=h.requestSerializeFn(W.requestMessage);V.send(F,"POST",W);return E},Fc8=function(F,W){W=F.chunkedServerStreaming&&!W;
return F.workerScope||W?new _.fP(new OC({worker:F.workerScope,streamBinaryChunks:W})):new _.fP},Wcw=function(F,W,E,h){W["Content-Type"]="application/json+protobuf";
W["X-User-Agent"]="grpc-web-javascript/0.1";var d=W.Authorization;if(d&&XS6.has(d.split(" ")[0])||F.withCredentials)E.JSC$7701_withCredentials_=!0;if(F.suppressCorsPreflight)h=ixw(h,"$httpHeaders",W);else for(F=_.U(Object.keys(W)),d=F.next();!d.done;d=F.next())d=d.value,E.headers.set(d,W[d]);return h},EaN=function(F,W,E){if(E){E=new oVK(F);
var h=new GtF(E)}return new JS({xhr:F,nodeReadableStream:h},W)},K9w=function(F,W){return W.reduce(function(E,h){return function(d){return h.intercept(d,E)}},F)},S8F=function(F,W){return W.reduce(function(E,h){return function(d){return h.intercept(d,E)}},F)};var hMF=function(F){this.client_=new uFK;this.hostname_=F==void 0?F:F.replace(/\/+$/,"")};
_.N=hMF.prototype;_.N.JSC$17005_depositGoogleCredential=function(F,W){return rf(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",F,W||{},vVK)};
_.N.deleteLink=function(F,W){return rf(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",F,W||{},CJP)};
_.N.JSC$17005_finishOAuth=function(F,W){return rf(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",F,W||{},cG6)};
_.N.getLink=function(F,W){return rf(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",F,W||{},DYw)};
_.N.startLinkingSession=function(F,W){return rf(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",F,W||{},Zxx)};var dvF=[0,IRu,1,xjx,[0,_.F0,[0,cbT,-1]],[0,DjK],[0,k_P,-1]];var N9O=function(){this.storage=new Map},UvK=function(F,W,E,h,d){if(!F.storage.has(W))return null;
F=_.U(F.storage.get(W));for(W=F.next();!W.done;W=F.next())if(W=W.value,!d||W.linkName===d)if(E&&W.scopes&&VmN(W.scopes,E)||h&&W.capabilities&&VmN(W.capabilities,h))return W;return null},RM8=function(F,W,E){if(!E)F.storage.delete(W);
else if(F.storage.has(W)){var h=F.storage.get(W).filter(function(d){return d.linkName!==E});
h.length>0?F.storage.set(W,h):F.storage.delete(W)}},VmN=function(F,W){W=_.U(W);
for(var E=W.next();!E.done;E=W.next())if(!F.has(E.value))return!1;return!0};var eMw=function(){var F=_.b0("LINK_GAL_DOMAIN");this.alsDomain1p=_.b0("LINK_GAL_DOMAIN");this.alsDomain3p=F;this.clientEnvironment=0;this.supportedFlows=this.clientXd3=void 0;this.accountLinkingEntryPoint=0;this.galSdkEventHandler=this.dataUsageNoticeConfig=void 0;this.loggerType=0;this.colorScheme=2;this.showCloseOption=!0},MmO=function(F,W){F.apiKey=W;
return F};
eMw.prototype.build=function(){var F={};if(this.supportedFlows===void 0||this.supportedFlows.size===0)throw Error("Qj");F.supportedFlows=this.supportedFlows;if(this.dataUsageNoticeConfig!==void 0){if(this.dataUsageNoticeConfig.enabledDataUsageNoticeUis.size===0)throw Error("Rj");if(!this.dataUsageNoticeConfig.uiAdapter)throw Error("Sj");F.dataUsageNoticeConfig=this.dataUsageNoticeConfig}this.galSdkEventHandler!==void 0&&(F.galSdkEventHandler=this.galSdkEventHandler);if(this.apiKey!==void 0)F.apiKey=
this.apiKey,F.alsDomain=this.alsDomain1p;else{if(this.oauthToken===void 0)throw Error("Tj");F.oauthToken=this.oauthToken;F.alsDomain=this.alsDomain3p}F.clientXd3=this.clientXd3;F.accountLinkingEntryPoint=this.accountLinkingEntryPoint;this.authUser!==void 0&&(F.authUser=this.authUser);this.bucket!==void 0&&(F.bucket=this.bucket);this.completionUrl!==void 0&&(F.completionUrl=this.completionUrl);this.interactionMode!==void 0&&(F.interactionMode=this.interactionMode);this.redirectServiceUrl!==void 0&&
(F.redirectServiceUrl=this.redirectServiceUrl);this.locale!==void 0&&(F.locale=this.locale);F.loggerType=this.loggerType;F.clientEnvironment=this.clientEnvironment;F.colorScheme=this.colorScheme;F.showCloseOption=this.showCloseOption;return F};var c4=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(c4,_.n2);var gaK=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(gaK,_.n2);var Q$K=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(Q$K,_.n2);var xm=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(xm,_.n2);var zMK=function(F){return _.lj(F,1)};var tm6=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(tm6,_.n2);var UQF=_.Wp(tm6),D3=[1,2,3,4,5];var h_K=function(F){try{return UQF(F)}catch(W){return null}},CA8=function(){},dQT=function(F,W){switch(_.Xc(W,D3)){case 4:return(W=_.j2(W,Q$K,4,D3))&&F.logStateTransition(_.lj(W,1)),!0;
case 5:return(W=_.j2(W,gaK,5,D3))&&F.logInternalEvent(_.lj(W,1)),!0}return!1},R_6=function(F){switch(F){case 0:return 0;
case 1:return 6;case 2:return 2;case 3:return 3;case 4:return 50;default:_.RO(F)}};var Wr6=function(F,W){var E=this;this.validator=F;this.messageListener=W;this.dismissCallback=function(){B98(E,{errorCode:9,errorMessage:"iFrame closed by parent window"})};
this.JSC$17034_receiveMessage=function(h){h.type==="message"&&(h=h.event_,h!==null&&(new URL(E.iframe.src)).origin===h.origin&&E.validator(h.data,h.origin)&&!E.messageListener(h.data)&&(E.JSC$17034_resolveCb!==void 0&&E.JSC$17034_resolveCb(h.data),vaK(E)))}},VnF=function(F,W,E){F.uiHandler!==void 0&&B98(F,{errorCode:7,
errorMessage:"iFrame window is already open"});return new Promise(function(h,d){F.JSC$17034_resolveCb=h;F.JSC$17034_rejectCb=d;F.iframe=document.createElement("iframe");_.Hp(F.iframe,W);F.uiHandler=E.displayContent(F.iframe,F.dismissCallback);_.ce(window,"message",F.JSC$17034_receiveMessage,!1,F)})},B98=function(F,W){F.JSC$17034_rejectCb!==void 0&&F.JSC$17034_rejectCb(W);
vaK(F)},vaK=function(F){F.uiHandler!==void 0&&F.uiHandler.hideContent();
_.LP(window,"message",F.JSC$17034_receiveMessage,!1,F);F.JSC$17034_resolveCb=void 0;F.JSC$17034_rejectCb=void 0;F.uiHandler=void 0;F.iframe=void 0};var I6T=function(F){if(F===2){var W;F=((W=window)==null?0:W.matchMedia("(prefers-color-scheme: dark)").matches)?1:0}return F},NTN=function(F){F=I6T(F);
switch(F){case 0:return"light";case 1:return"dark";default:_.RO(F)}};var EO6=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),cDq=function(F,W){this.JSC$17046_linkingSession=F;this.noticeConfig=W;this.displayInfoMap=new Map;var E=new Map;if(_.Lc(this.JSC$17046_linkingSession,AG6,7))for(F=_.Em(this.JSC$17046_linkingSession,AG6,7),F=_.KC(F,kt$,1,_.Fg()),F=_.U(F),W=F.next();!W.done;W=F.next())W=W.value,E.set(_.lj(W,1),_.Inn(_.Em(W,_.sbI,3)));if(E.size>
0&&this.noticeConfig!==void 0&&this.noticeConfig.enabledDataUsageNoticeUis.size>0){W=this.noticeConfig.enabledDataUsageNoticeUis;F=W.has(0)?E.get(1):void 0;W=W.has(1)?E.get(2):void 0;E=F!==void 0&&W!==void 0?E.get(3):void 0;var h=this.noticeConfig.nestedOrigins;var d=new tm6;var V=new c4;d=_.dU(d,2,D3,V);V=new tm6;var R=new c4;V=_.dU(V,3,D3,R);R=[];F!==void 0&&(this.displayInfoMap.set(1,[{trustedUrl:F,lastEvent:d,nestedOrigins:h}]),R.push({trustedUrl:F,lastEvent:d,nestedOrigins:h}));W!==void 0&&(this.displayInfoMap.set(2,
[{trustedUrl:W,lastEvent:V,nestedOrigins:h}]),R.push({trustedUrl:W,lastEvent:V,nestedOrigins:h}));E!==void 0?this.displayInfoMap.set(3,[{trustedUrl:E,lastEvent:V,nestedOrigins:h}]):this.displayInfoMap.set(3,R)}};var DvP=function(F){var W=new N9O;this.galService=F;this.galCache=W};
DvP.prototype.getLink=function(F){var W=F.serviceId;var E=F.scopes;var h=F.capabilities;var d=F.linkName;var V=this,R;return _.e(function(M){if(h!==void 0&&E!==void 0)throw Error("Uj");R=UvK(V.galCache,W,E,h,d);return R!==null?M.return(R):M.return(V.galService.getLink({serviceId:W,sessionId:Math.floor(Math.random()*2147483648),scopes:E,capabilities:h,linkName:d}).then(function(g){g=z_N(g);var t=V.galCache;t.storage.has(W)?t.storage.get(W).push(g):t.storage.set(W,[g]);return g}))})};
DvP.prototype.deleteLink=function(F,W,E){var h=this;return _.e(function(d){RM8(h.galCache,F,E);return d.return(h.galService.deleteLink({serviceId:F,sessionId:Math.floor(Math.random()*2147483648),accountLinkingEntryPoint:W,linkName:E}).then(function(){return!0}))})};var kc6=function(F,W){var E=this;this.validator=F;this.msgHandler=W;this.closedPopupTimeout=this.JSC$17068_rejectCb=this.JSC$17068_resolveCb=this.popup=null;this.JSC$17068_receiveMessage=function(h){if(h!==null&&(h=h.event_,h.source===E.popup)){var d=h.data;if(E.validator(d,h.origin)){var V;(V=E.msgHandler)!=null&&V.call(E,d)||(E.JSC$17068_resolveCb!==null&&E.JSC$17068_resolveCb(d),xv$(E))}}}};
kc6.prototype.open=function(F,W){var E=this;this.popup!==null&&ADO(this);return new Promise(function(h,d){E.JSC$17068_resolveCb=h;E.JSC$17068_rejectCb=d;E.popup=_.Jy(window,F,"",W);_.ce(window,"message",E.JSC$17068_receiveMessage,!1,E);s$K(E)})};
var ADO=function(F,W){F.JSC$17068_rejectCb!==null&&F.JSC$17068_rejectCb(W);xv$(F)},xv$=function(F){F.closedPopupTimeout&&(F.closedPopupTimeout.cancel(),F.closedPopupTimeout=null);
F.popup&&F.popup.close();_.LP(window,"message",F.JSC$17068_receiveMessage,!1,F);F.popup=null;F.JSC$17068_resolveCb=null;F.JSC$17068_rejectCb=null},s$K=function(F){F.closedPopupTimeout=_.Uli(100).then(function(){F.popup?F.popup.closed?LcN(F):s$K(F):ADO(F,{errorCode:8,
errorMessage:"Popup blocked by the browser"})},function(){})},LcN=function(F){F.closedPopupTimeout=_.Uli(100).then(function(){ADO(F,{errorCode:9,
errorMessage:"Popup closed by the user"})},function(){})};var qQx=new Set(["https://oauth-redirect.googleusercontent.com","https://oauth-redirect-sandbox.googleusercontent.com","https://oauth-redirect-test.googleusercontent.com"]),$vu=function(F,W,E,h,d,V,R,M,g,t){var C=this;this.serviceId=F;this.sessionId=W;this.galService=E;this.oauthDetails=h;this.galLogger=d;this.interactionMode=V;this.redirectServiceUrl=R;this.consentLanguageKeys=M;this.dynamicUrlParameters=g;this.partnerConfigMinReadTimestamp=t;this.started=!1;this.JSC$17074_dataValidator=function(B,
I){var x=qQx.has(I);x||C.redirectServiceUrl===void 0||(x=C.redirectServiceUrl===I);return x?B.sentinel==="gdi":!1}};
$vu.prototype.complete=function(){var F=this,W;return _.e(function(E){if(F.interactionMode!==1)return E.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));W=As.getRedirectStateFromUri();return W===null?E.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"})):E.return(ZIT(F,W))})};
$vu.prototype.start=function(){var F=this,W;return _.e(function(E){if(F.started)return E.return(Promise.resolve({statusCode:12,statusMessage:"OAuth flow is already active."}));if(!_.bj(F.oauthDetails,1))return E.return(Promise.resolve({statusCode:7,statusMessage:"OAuth flow does not have redirect URL"}));if(F.interactionMode===1)return As.setLocation(_.bj(F.oauthDetails,1)),E.return(Promise.resolve({statusCode:6,statusMessage:"OAuth flow redirected to different page"}));F.started=!0;F.galLogger.logStateTransition(5);
W=As.getPostMessagePopup(F.JSC$17074_dataValidator);return E.return(W.open(_.bj(F.oauthDetails,1),"width=500,height=700,\n        top="+Math.max((window.screen.availHeight-700)/2,0)+",left="+Math.max((window.screen.availWidth-500)/2,0)).then(function(h){F.started=!1;var d=F.galLogger;if((h==null?void 0:h.error)!==void 0)throw d.logInternalEvent(59),Error("Vj");if((h==null?void 0:h.redirect_state)===void 0)throw d.logInternalEvent(131),Error("Wj");return ZIT(F,h.redirect_state)}).catch(function(h){F.started=
!1;
return h.errorCode!==void 0?{statusCode:h.errorCode,statusMessage:h.errorMessage}:{statusCode:7,statusMessage:"OAuth flow popup page did not return result"}}))})};
var ZIT=function(F,W){return _.e(function(E){return E.return(XHq(F.galService,{serviceId:F.serviceId,sessionId:F.sessionId,dynamicUrlParameters:F.dynamicUrlParameters,redirectState:W,consentLanguageKeys:F.consentLanguageKeys,partnerConfigMinReadTimestamp:F.partnerConfigMinReadTimestamp}).then(function(h){var d={statusCode:1,link:z_N(h.getLink())};WFg(_.$i(h,3))!==void 0&&(d.callerState=WFg(_.$i(h,3)));F.galLogger.logInternalEvent(134);return d}))})},As={getPostMessagePopup:function(F){return new kc6(F)},
getRedirectStateFromUri:function(){var F=_.y$(As.getLocation()).fragment_;return(new _.MD(F)).get("redirect_state",null)},
getLocation:function(){return window.location.href},
setLocation:function(F){_.Ty(window.location,_.II(F))},
createOAuthFlow:function(F,W){return new $vu(F.serviceId,F.sessionId,F.galService,W,F.galLogger,F.interactionMode,F.redirectServiceUrl,F.consentLanguageKeys,F.dynamicUrlParameters,F.partnerConfigMinReadTimestamp)}};var HIg=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(HIg,_.n2);var PA6=_.Wp(HIg);var JD$=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),a6q=function(F,W,E,h,d,V,R,M,g){var t=this;this.serviceId=F;this.sessionId=W;this.galService=E;this.gsiWebFlowDetails=h;this.colorScheme=d;this.showCloseOption=V;this.galLogger=R;this.interactionMode=M;this.redirectServiceUrl=g;this.started=!1;this.JSC$17086_dataValidator=function(C,B){var I=JD$.has(B);I||t.redirectServiceUrl===
void 0||(I=t.redirectServiceUrl===B);return I?C.sentinel==="gal":!1};
this.logEventProcessor=function(C){return C.result?(C=h_K(C.result))?dQT(t.galLogger,C):!1:!1}};
a6q.prototype.complete=function(){var F=this,W,E;return _.e(function(h){if(F.interactionMode!==1)return h.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));W=so.getRedirectStateFromUri();if(W===void 0)return F.galLogger.JSC$17026_logErrorEvent(131),h.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"}));try{return E=f66(F,W),h.return(OIx(F,E))}catch(d){return h.return(Promise.resolve({statusCode:12,statusMessage:"`e`"}))}})};
a6q.prototype.start=function(){var F=this,W;return _.e(function(E){if(F.started)return E.return(Promise.resolve({statusCode:12,statusMessage:"Streamlined flow is already active."}));if(!_.bj(F.gsiWebFlowDetails,1))return E.return(Promise.resolve({statusCode:7,statusMessage:"Streamlined flow does not have URL"}));if(F.interactionMode===1)return so.setLocation(bI$(F,_.bj(F.gsiWebFlowDetails,1))),E.return(Promise.resolve({statusCode:6,statusMessage:"Streamlined flow redirected to different page"}));
F.started=!0;W=so.getPostMessagePopup(F.JSC$17086_dataValidator,F.logEventProcessor);return E.return(W.open(bI$(F,_.bj(F.gsiWebFlowDetails,1)),"width=500,height=700,\n        top="+Math.max((window.screen.availHeight-700)/2,0)+",left="+Math.max((window.screen.availWidth-500)/2,0)).then(function(h){F.started=!1;if((h==null?void 0:h.result)===void 0)throw F.galLogger.JSC$17026_logErrorEvent(131),Error("Wj");h=f66(F,h.result);return OIx(F,h)}).catch(function(h){F.started=!1;
return h.errorCode!==void 0?{statusCode:h.errorCode,statusMessage:h.errorMessage}:{statusCode:7,statusMessage:"Streamlined flow popup page did not return result"}}))})};
var bI$=function(F,W){F=["result_channel",F.interactionMode===1?"2":"1","color_scheme",NTN(F.colorScheme),"show_close_option",F.showCloseOption];return qdO(W,F)},OIx=function(F,W){if(W!==null&&_.Lc(W,xm,2)){var E,h=W==null?void 0:(E=_.Em(W,xm,2))==null?void 0:_.lj(E,2);
h&&F.galLogger.JSC$17026_logErrorEvent(R_6(h));return zMK(_.Em(W,xm,2))===1?Promise.resolve({statusCode:10,statusMessage:"flow cannot start due to recoverable reason"}):Promise.resolve({statusMessage:"Web-endpoint returned an error",statusCode:7})}return F.galService.getLink({serviceId:F.serviceId,sessionId:F.sessionId,consistencyKey:_.bj(W,1)}).then(function(d){d=z_N(d);F.galLogger.logInternalEvent(134);return{statusCode:1,link:d}})},f66=function(F,W){W=PA6(W);
if(!_.Lc(W,xm,2)&&_.bj(W,1)==="")throw F.galLogger.JSC$17026_logErrorEvent(5),Error("Xj");return W},so={getPostMessagePopup:function(F,W){return new kc6(F,W)},
getRedirectStateFromUri:function(){return _.jS(_.y$(so.getLocation()),"redirect_state")},
getLocation:function(){return window.location.href},
setLocation:function(F){_.Ty(window.location,_.II(F))},
createStreamlinedFlow:function(F,W){return new a6q(F.serviceId,F.sessionId,F.galService,W,F.colorScheme,F.showCloseOption,F.galLogger,F.interactionMode,F.redirectServiceUrl)}};var ZX6=function(){var F=_.vxo("GAL");this.storage=F?new _.kC(F):null};var Ts=function(){};
_.k(Ts,CA8);Ts.prototype.logStateTransition=function(){};
Ts.prototype.logInternalEvent=function(){};
Ts.prototype.JSC$17026_logErrorEvent=function(){};var l6O=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(l6O,_.n2);l6O.prototype.getCompletionUrl=function(){return _.bj(this,15)};var oh=function(F,W,E,h,d,V){this.serviceId=F;this.environment=W;this.sessionId=E;this.colorSchemeSelected=h;this.colorThemeDisplayed=d;this.JSC$17099_transport=V;this.currentState=1};
_.k(oh,CA8);oh.prototype.logStateTransition=function(F){var W=nax(this);W=_.hH(W,3,this.currentState);W=_.hH(W,1,F);this.currentState=F;F=yTK(1);this.dispatch(W,F)};
oh.prototype.logInternalEvent=function(F){F=yTK(F);this.dispatch(nax(this),F)};
oh.prototype.JSC$17026_logErrorEvent=function(F){var W=nax(this);W=_.hH(W,1,10);F=yTK(F);this.dispatch(W,F)};
var nax=function(F){var W=new l6O;W=_.hH(W,1,F.currentState);W=_.QJ(W,7,F.serviceId);var E,h;var d=((E=window)==null?0:(h=E.location)==null?0:h.href)?_.y$(window.location.href).JSC$7936_domain_:"NO_PACKAGE_NAME";E=_.QJ(W,8,d);E=_.hH(E,6,F.environment);E=_.QJ(E,5,"100");E=_.hH(E,11,F.colorSchemeSelected);return _.hH(E,12,F.colorThemeDisplayed)};
oh.prototype.dispatch=function(F,W){W===void 0&&(W=new _.th);var E=W;F=F.serialize();E=_.QJ(E,8,F);_.kt(E,12,this.sessionId);this.JSC$17099_transport.dispatch(W)};var yDN=function(F,W){this.loggerType=F;this.sessionIndex=W!=null?W:0},j$K;
yDN.prototype.create=function(F,W,E,h,d){switch(this.loggerType){case 0:return new Ts;case 1:return j$K||(j$K=(new _.MT(555,this.sessionIndex.toString())).build()),new oh(F,W,E,h,d,j$K);default:_.RO(this.loggerType,"unknown logger type")}};var Le=[6,2,3,1],amw=new Map([[4,1],[1,6],[2,2],[3,3]]),vOK={statusCode:7,statusMessage:"Failed to create flow object"},qRw=function(F,W,E,h,d,V,R,M,g,t){this.serviceId=F;this.sessionId=W;this.config=E;this.galService=h;this.JSC$17106_linkingSession=d;this.googleScopes=V;this.callerState=R;this.consentLanguageKeys=M;this.dynamicUrlParameters=g;this.partnerConfigMinReadTimestamp=t;this.currentFlow=0;h=this.JSC$17106_linkingSession;d=new Set;_.Lc(h,knw,1)&&d.add(1);_.Lc(h,L9K,2)&&_.Lc(h,At6,6)&&d.add(2);
_.Lc(h,s6K,3)&&_.Lc(h,At6,6)&&d.add(3);_.Lc(h,xY8,4)&&d.add(6);this.supportedFlows=d;h=E.loggerType;d=E.clientEnvironment;a:{V=E.colorScheme;switch(V){case 0:V=1;break a;case 1:V=2;break a;case 2:V=3;break a;default:_.RO(V)}V=void 0}a:{R=E.colorScheme;R=I6T(R);switch(R){case 0:R=1;break a;case 1:R=2;break a;default:_.RO(R)}R=void 0}this.galLogger=(new yDN(h,E.authUser)).create(F,d,W,V,R)},rDT=function(F){return new Promise(function(W){var E,h,d,V,R,M,g,t,C,B;
return _.e(function(I){switch(I.nextAddress){case 1:E=sL8(F.currentFlow,F.supportedFlows),h=!1,d=new cDq(F.JSC$17106_linkingSession,F.config.dataUsageNoticeConfig);case 2:if(E===void 0){I.jumpTo(4);break}_.Nl(I,5);var x=d,A=E,X=void 0;h?A===1&&(X=x.displayInfoMap.get(2)):A===2||A===3?X=x.displayInfoMap.get(1):A===1&&(X=x.displayInfoMap.get(3));V=X?X:[];R=F.consentLanguageKeys;M=_.U(V);g=M.next();case 7:if(g.done)return F.currentFlow=E,_.Q(I,ctT(iIN(F,R)),11);t=g.value;return _.Q(I,e_q(t,F.config.dataUsageNoticeConfig.uiAdapter,
F.config.colorScheme,F.galLogger),10);case 10:C=I.yieldResult;if(C.statusCode!==1)return XsF(F.serviceId),F.currentFlow=0,W(km({statusCode:C.statusCode,statusMessage:C.statusMessage},F.callerState)),I.return();C.consentLanguageKeys!==void 0&&(R=C.consentLanguageKeys);g=M.next();I.jumpTo(7);break;case 11:B=I.yieldResult;if(B.statusCode!==10)return B.statusCode!==6&&(XsF(F.serviceId),F.currentFlow=0),B.statusCode!==1&&F.callerState!==void 0&&(B.callerState=F.callerState),W(B),I.return();_.id(I,6);break;
case 5:_.Ml(I);case 6:E=sL8(F.currentFlow,F.supportedFlows);h=!0;I.jumpTo(2);break;case 4:XsF(F.serviceId),F.currentFlow=0,W(km({statusCode:12,statusMessage:"Linking failed"},F.callerState)),_.gG(I)}})})},PMx=function(F,W,E){F.currentFlow=W;
return DQ6(iIN(F,E)).then(function(h){return h.statusCode===10&&F.config.interactionMode===1&&sL8(F.currentFlow,F.supportedFlows)!==void 0?rDT(F):h})},iIN=function(F,W){return{flowParams:{serviceId:F.serviceId,
sessionId:F.sessionId,galService:F.galService,galLogger:F.galLogger,interactionMode:F.config.interactionMode,redirectServiceUrl:F.config.redirectServiceUrl,colorScheme:F.config.colorScheme,consentLanguageKeys:W,dynamicUrlParameters:F.dynamicUrlParameters,showCloseOption:F.config.showCloseOption,partnerConfigMinReadTimestamp:F.partnerConfigMinReadTimestamp},currentFlow:F.currentFlow,config:F.config,session:F.JSC$17106_linkingSession,googleScopes:F.googleScopes,callerState:F.callerState}};var TTw=function(F,W){this.config=F;this.galService=W.getService();this.JSC$17119_galRepository=W.JSC$17156_galRepository};
TTw.prototype.getLink=function(F,W){return T9q(this,F,W)};
var T9q=function(F,W,E){return F.JSC$17119_galRepository.getLink({serviceId:W,scopes:void 0,capabilities:void 0,linkName:E}).then(function(h){return{statusCode:1,link:h}}).catch(function(h){return{statusCode:fmK(h.code),
statusMessage:h.message}})};
TTw.prototype.deleteLink=function(F,W){return this.JSC$17119_galRepository.deleteLink(F,this.config.accountLinkingEntryPoint,W).then(function(){return{statusCode:1}}).catch(function(E){return{statusCode:fmK(E.code),
statusMessage:E.message}})};
TTw.prototype.startLinkingSession=function(F){var W=F.serviceId;var E=F.sessionId;return $QK({serviceId:W,sessionId:E!==void 0?E:Math.floor(Math.random()*2147483648),config:this.config,galService:this.galService,loginHint:F.loginHint,callerState:F.callerState,consentLanguageKeys:F.consentLanguageKeys,linkName:F.linkName,dynamicUrlParameters:F.dynamicUrlParameters,partnerConfigMinReadTimestamp:F.partnerConfigMinReadTimestamp})};var OXK=null,yt6=new WeakMap;var oaN=function(){};
oaN.prototype.send=function(F,W){rt$(F);return this.makeRequest(F).then(function(E){if(W){var h=new W;if(E!=null){if(W==null)throw Error("Zj");new W;throw Error("ak");}E=h}return E})};var GcO=function(F,W,E,h,d){this.gapiUrl=F;this.gapiKey=W;this.gapiConfigUpdates=E||{};this.gapiAuthParams=h||{};this.defaultApiId=d};
_.k(GcO,oaN);var wHO=function(F){return lm$().then(function(W){W=W||window.gapi;YQx(F,W);return iXg(W,{apiKey:F.gapiKey,clientId:F.gapiAuthParams.clientId,scope:F.gapiAuthParams.scope,hostedDomain:F.gapiAuthParams.hostedDomain,fetchBasicProfile:F.gapiAuthParams.fetchBasicProfile}).then(function(){return W})})};
GcO.prototype.makeRequest=function(F){var W=this;return wHO(this).then(function(E){return _.e(function(h){if(h.nextAddress==1)return W.gapiAuthParams.minAuthTokenTimeRemaining===void 0?h.jumpTo(2):_.Q(h,jLx(E,W.gapiAuthParams.minAuthTokenTimeRemaining),2);YQx(W,E);return h.return(uYK(E.client.request({root:W.gapiUrl,path:F.path,method:F.httpMethod,body:F.body,params:F.queryParams,headers:F.headers,authType:F.authType,apiId:F.apiId||W.defaultApiId})))})})};
var uYK=function(F){return new Promise(function(W,E){F.then(function(h){W(h.result===!1&&h.body!=null?{data:h.body}:h.result)},function(h){E(h.result===!1&&h.body!=null?{data:h.body}:h.result)})})},YQx=function(F,W){for(var E in F.gapiConfigUpdates)if(F.gapiConfigUpdates.hasOwnProperty(E)){var h=W,d=E,V=F.gapiConfigUpdates[E],R=h.config.get(d);
V!==R&&h.config.update(d,V)}};
GcO.$inject=["gapiUrl","gapiKey","gapiConfigUpdates","gapiAuthParams","defaultApiId"];var Gs=function(F,W,E,h,d,V,R,M){this.apiKey=W;this.authUser=E;this.oauthToken=h;this.bucket=d;this.locale=R;this.galSdkEventHandler=M;if(h===void 0){if(W===void 0)throw Error("bk");this.requestService=new GcO(F,W,{"googleapis.config/auth/useFirstPartyAuth":!0,"googleapis.config/auth/useFirstPartyAuthV2":!0,"client/xd4":V===void 0||V===!1,"client/xd3":V===!0})}this.galServiceClient=new hMF(F)};
Gs.prototype.deleteLink=function(F){var W=F.serviceId;var E=F.sessionId;var h=F.accountLinkingEntryPoint;var d=F.linkName;var V=this,R;return _.e(function(M){var g=(new $0).setHeader(Y0(V,E));var t=SQ6({serviceId:W,linkName:d});g=_.hy(g,2,t);R=_.rH(g,3,h);return M.return(V.makeRequest(V.galServiceClient.deleteLink,R,[1,3],[2,4]))})};
var XHq=function(F,W){var E=W.serviceId;var h=W.sessionId;var d=W.dynamicUrlParameters;var V=W.redirectState;var R=W.consentLanguageKeys;var M=W.partnerConfigMinReadTimestamp;var g;return _.e(function(t){var C=(new Xz).setHeader(Y0(F,h,d));C=_.NB(C,2,E);g=_.NB(C,4,V);R!==void 0&&_.NB(g,5,R);M!==void 0&&_.hy(g,6,M);return t.return(F.makeRequest(F.galServiceClient.JSC$17005_finishOAuth,g,[1,3],[2,4]))})};
Gs.prototype.getLink=function(F){var W=F.serviceId;var E=F.sessionId;var h=F.scopes;var d=F.capabilities;var V=F.consistencyKey;var R=F.linkName;var M=this,g;return _.e(function(t){var C=(new H1).setHeader(Y0(M,E)),B=SQ6({serviceId:W,scopes:h,capabilities:d,linkName:R});g=_.hy(C,2,B);V!==void 0&&(C=RwF(),C=_.NB(C,2,V),_.hy(g,3,C));return t.return(M.makeRequest(M.galServiceClient.getLink,g,[1,3],[2,4]))})};
var xQq=function(F,W){var E=W.serviceId;var h=W.sessionId;var d=W.googleScopes;var V=W.consistencyKey;var R;return _.e(function(M){var g=(new Zx).setHeader(Y0(F,h));g=_.NB(g,2,E);var t=Array.from(d.values());g=_.sf(g,3,t,_.lK);t=RwF();t=_.NB(t,2,V);R=_.hy(g,4,t);return M.return(F.makeRequest(F.galServiceClient.JSC$17005_depositGoogleCredential,R,[1,3],[2,4]))})};
Gs.prototype.startLinkingSession=function(F){var W=F.serviceId;var E=F.sessionId;var h=F.scopes;var d=F.capabilities;var V=F.loginHint;var R=F.supportedFlows;var M=F.completionUrl;var g=F.usePingPong;var t=F.twoWayLinking;var C=F.accountLinkingEntryPoint;var B=F.callerState;var I=F.consentLanguageKeys;var x=F.googleScopes;var A=F.dataUsageNoticeConfig;var X=F.linkName;var P=F.dynamicUrlParameters;var b=F.partnerConfigMinReadTimestamp;var l=this,w,G;return _.e(function(hr){if(d!==void 0&&h!==void 0)throw Error("Uj");
var p=(new P1).setHeader(Y0(l,E,P));w=_.NB(p,2,W);X!==void 0&&_.NB(w,14,X);if(d!==void 0){p=w;var UY=Array.from(d.values());_.sf(p,5,UY,_.lK)}else h!==void 0&&(p=w,UY=Array.from(h.values()),_.sf(p,3,UY,_.lK));M!==void 0&&_.NB(w,6,M);g!==void 0&&_.ZU(w,15,g);R!==void 0&&(p=w,UY=Array.from(R.values()),_.sf(p,4,UY,_.xK));if(t!==void 0){if(t&&(!x||x.size===0))throw Error("ck");_.ZU(w,8,t)}C!==void 0&&_.rH(w,9,C);V!==void 0&&_.NB(w,13,V);B!==void 0&&(p=w,UY=(new TextEncoder).encode(B),_.L2(p,12,_.Tz(UY,
!1),_.rc()));I!==void 0&&_.NB(w,16,I);b!==void 0&&_.hy(w,18,b);if(A!==void 0&&A.size>0||x!==void 0&&x.size>0)G=new $Yx,x!==void 0&&x.size>0&&(p=G,UY=Array.from(x.values()),_.sf(p,1,UY,_.lK)),A!==void 0&&(A.has(0)&&_.UFe(G,2,_.xK,1,_.kK),A.has(1)&&_.UFe(G,2,_.xK,2,_.kK)),_.hy(w,17,G);return hr.return(l.makeRequest(l.galServiceClient.startLinkingSession,w,[1],[2]))})};
Gs.prototype.getMetadata=function(){var F=this,W,E,h;return _.e(function(d){if(d.nextAddress==1)return W={},F.requestService?_.Q(d,wHO(F.requestService),3):(W.Authorization="Bearer "+F.oauthToken,d.jumpTo(2));d.nextAddress!=2&&(E=d.yieldResult,W["X-Goog-Api-Key"]=F.apiKey,W["X-Goog-AuthUser"]=F.authUser!==void 0?F.authUser.toString():"0",(h=E.auth.getAuthHeaderValueForFirstParty([]))&&(W.Authorization=h));F.locale&&(W["accept-language"]=F.locale);return d.return(W)})};
Gs.prototype.makeRequest=function(F,W,E,h){var d=this,V;return _.e(function(R){if(R.nextAddress==1)return _.Q(R,d.getMetadata(),2);V=R.yieldResult;pHw(d,E);return R.return(F.bind(d.galServiceClient)(W,V).finally(function(){pHw(d,h)}))})};
var pHw=function(F,W){F.galSdkEventHandler!==void 0&&W.forEach(function(E){F.galSdkEventHandler.onEvent(E)})},Y0=function(F,W,E){var h=new sC;
W=_.L2(h,2,_.sq(W),0);W=_.rH(W,5,3);E=_.sf(W,8,E,_.lK);F.bucket!==void 0&&_.NB(E,1,F.bucket);return E},SQ6=function(F){var W=F.serviceId;
var E=F.scopes;var h=F.capabilities;F=F.linkName;if(h!==void 0&&E!==void 0)throw Error("Uj");var d=new Vb6;W=_.NB(d,1,W);h!==void 0?(E=Array.from(h.values()),_.sf(W,5,E,_.lK)):E!==void 0&&(E=Array.from(E.values()),_.sf(W,3,E,_.lK));F!==void 0&&_.NB(W,6,F);return W};var oOK=function(F){this.galService=new Gs(F.alsDomain,F.apiKey,F.authUser,F.oauthToken,F.bucket,F.clientXd3,F.locale,F.galSdkEventHandler);this.JSC$17156_galRepository=new DvP(this.galService)};
oOK.prototype.getService=function(){return this.galService};var mvx=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(mvx,_.n2);var Kc6=function(F){var W=new mvx;return _.hH(W,1,F)};
mvx.prototype.setErrorMessage=function(F){return _.QJ(this,2,F)};var FET=[0,_.En,_.Kc,_.En];var wf=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(wf,_.n2);var WEF=[0,[1,2,3],_.WK,[0,tcP,vYx,-1],_.WK,[0,BYF,-1],_.WGr];var EPO=[0,_.pc,1,_.En,_.Kc,-1,1,_.d$Y,_.S2,_.En,-1,WEF];var h9K=[0,_.En,[0,_.d$Y,_.S2,[0,_.Kc]],_.mN,[0,_.En,-1]];var eN=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(eN,_.n2);var dB6=[0,_.Kc,_.En,-2,_.pc,_.En,_.pc,_.En,-2,1,_.mN];var NX6=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(NX6,_.n2);var VXK=[0,_.pc];var UB8=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(UB8,_.n2);var R9N=[0,_.En,h9K,VXK,dB6,EPO];var D3u=_.K2(UB8,R9N);var e9N=[0,dvF];var qOF=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(qOF,_.n2);var MXg=[0,[1,3],Abg,_.En,Abg];var UC=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(UC,_.n2);var gPK=[0,_.En];var QV6=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(QV6,_.n2);var Rh=function(F){return _.j2(F,mvx,2,VI)},z96=function(F){var W=new QV6;
return _.dU(W,2,VI,F)},VI=[1,
2];var tX$=[0,VI,_.WK,gPK,_.WK,FET,_.F0,MXg,1,_.En,e9N];var CvK=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(CvK,_.n2);var vPx=function(F){var W=new CvK;return _.dU(W,3,BXN,F)},BXN=[2,
3];var uQ=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(uQ,_.n2);var IBF=function(F,W){return _.hy(F,2,W)},cU8=function(F,W){return _.hy(F,8,W)},DBF=function(F,W){return _.hy(F,3,W)};var xB6=[0,_.En,tX$,R9N,_.RWc,[0,[5,6],[0,_.En,-2],[0,_.pc,_.En,_.Kc],[0,WEF],[0,_.Kc,_.En,-1,_.URO,_.En],_.WK,[0,[0,_.pc],_.En,-1],_.WK,[0,[3,4],_.En,-1,_.WK,[0,[0,_.En,_.mN]],_.WK,[0,[0,[0,[1,2],_.WK,[0],_.WK,[0]]]]]],_.RWc,-1,[0,BXN,_.En,_.WK,gPK,_.WK,FET,_.F0,MXg,[0,dvF]]];var kFq=_.K2(uQ,xB6),AUK=_.F3(xB6);var sVT=function(){_.xj.call(this)};
_.k(sVT,_.xj);sVT.prototype.init=function(){};
new sVT;var LEw=_.Fc(["data-"]),qZN=_.Fc(["aria-"]),$BP=_.Fc(["aria-"]),SN=function(F,W){this.isLatencyMeasurementExperiment=F===void 0?!1:F;this.enableDialogA11yFix=W===void 0?!1:W;this.JSC$17185_win=window;this.focusChangeListener=this.handleFocusChange.bind(this);this.origin=_.JPu(_.EY.location.href)},kKK=function(F,W){F.onConsentPrimitiveShownCallback=W},Zk8=function(F,W){return F.overriddenIframeLoadTimeout?F.overriddenIframeLoadTimeout:W!==void 0?W:5E3},s4N=function(F){if(F.prewarmPromise!==void 0)return F.prewarmPromise;
F.prewarmPromise=new Promise(function(W,E){pD(F,1);X66(F,HkO(F,!0),Pv6(F));F.iframe?F.prewarmChannel||JU6(F,F.iframe,W):E(Error("dk"))});
F.prewarmPromise.finally(function(){F.prewarmPromise=void 0});
return F.prewarmPromise};
SN.prototype.showPrimitive=function(){var F=this;if(this.consentPromise!==void 0)return this.consentPromise;var W=Date.now();aBg(this,W);this.consentPromise=new Promise(function(E,h){pD(F,0,W);var d=F.isDarkTheme();F.isLatencyMeasurementExperiment||F.initialLoadingStrategy===1||F.initialLoadingStrategy===2||(F.loadingBar||(F.loadingBar=uVw(getComputedStyle(document.body).direction==="rtl",d),F.loadingBar.style.position="fixed",F.loadingBar.style.zIndex="15000"),document.body.appendChild(F.loadingBar));
X66(F,HkO(F),Pv6(F));F.iframe?F.channel||fB$(F,F.iframe,E,h):(Ok$(F),h(Error("dk")))});
this.consentPromise.finally(function(){F.consentPromise=void 0});
return this.consentPromise};
var fB$=function(F,W,E,h){var d,V;_.e(function(R){switch(R.nextAddress){case 1:pD(F,3);d=!1;setTimeout(function(){if(!d){Ok$(F);bkP(F);lBw(F);var M=Kc6(7).setErrorMessage("Timeout connecting to iframe");E(cU8(IBF(new uQ,z96(M)),vPx(M)))}},Zk8(F,nP$(F)));
if(!F.prewarmPromise){R.jumpTo(2);break}_.Nl(R,3);return _.Q(R,F.prewarmPromise,5);case 5:_.id(R,2);break;case 3:_.Ml(R),V=Kc6(4).setErrorMessage("Error while prewarming."),E(cU8(IBF(new uQ,z96(V)),vPx(V)));case 2:F.prewarmChannel&&F.prewarmChannel.send(AUK(DBF(new uQ,F.consentPrimitiveRequest))),F.channel=_.NS({destination:F.JSC$17185_win,iframe:W,origin:yU8(F),channelName:"cpw",onEstablished:function(){d=!0;Ok$(F);F.isLatencyMeasurementExperiment||(F.JSC$17185_previousBodyOverflow=document.body.style.overflow,
F.JSC$17185_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior,F.JSC$17185_previousBodyOverscroll=document.body.style.overscrollBehavior,document.documentElement.style.overscrollBehavior="contain",document.body.style.overscrollBehavior="contain",document.body.style.overflow="hidden",F.enableDialogA11yFix&&window.addEventListener("blur",F.focusChangeListener));var M=F.iframe;M.style.bottom="0";M.style.position="fixed";M.style.right="0";M.style.border="none";M.style.left="0";M.style.top=
"0";M.style.zIndex="5000";M.style.pointerEvents="";M.style.visibility="";F.initialLoadingStrategy===2||F.initialLoadingStrategy===3?pD(F,4):pD(F,6);var g;(g=F.onConsentPrimitiveShownCallback)==null||g.call(F)},
onMessage:function(M){M=kFq(M.data);switch(_.lj(M,1)){case 1:bkP(F);var g=SRN(_.Em(M,_.Gc,7));g&&(F.initialLoadingStrategy!==2&&F.initialLoadingStrategy!==3||pD(F,6,g),pD(F,5,g));if(g=SRN(_.Em(M,_.Gc,6)))pD(F,7,g),pD(F,8);var t,C;((t=_.Em(M,QV6,2))==null?void 0:_.Xc(t,VI))!==0&&((C=_.Em(M,CvK,8))==null?void 0:_.Xc(C,BXN))!==0||h(Error("ek"));E(M);break;case 2:lBw(F)}}}),_.gG(R)}})},JU6=function(F,W,E){F.prewarmChannel=_.NS({destination:F.JSC$17185_win,
iframe:W,origin:yU8(F),channelName:"pwcp",onEstablished:function(){pD(F,2);E()}})},yU8=function(F){var W=_.e9(F.src).toString();
return W&&W.indexOf("://")<0&&W.indexOf("//")!==0?F.origin:_.JPu(W)},HkO=function(F,W){W=W===void 0?!1:W;
var E,h=new Map([["origin",F.origin],["hl",(E=jVu(F))!=null?E:null]]);W&&h.set("pw","1");W=_.U([["cpr",F.consentPrimitiveRequest.serialize()]]);for(E=W.next();!E.done;E=W.next()){var d=_.U(E.value);E=d.next().value;d=d.next().value;h.set(E,d)}F.isDarkTheme()&&h.set("color_scheme","dark");return _.KL(F.src,h)},Ok$=function(F){F.isLatencyMeasurementExperiment||F.loadingBar&&document.body.removeChild(F.loadingBar)};
SN.prototype.getSrc=function(){var F=_.Su(this.origin),W;var E=(W=_.Em(this.consentPrimitiveRequest,NX6,3))==null?void 0:_.Wb(W,1);W="consent.google.com";E=E?"/u/"+encodeURIComponent(E.toString()):"";(F==null?0:F.endsWith("youtube.com"))?W="consent.youtube.com":(F=F==null?void 0:F.match("google\\.(co\\.)?([a-z]{2,3})$"))&&(W="consent.google."+((F[1]?"co.":"")+encodeURIComponent(F[2])));return _.RI("https://"+W+"/signedin"+E+"/landing")};
var X66=function(F,W,E){F.iframe||(F.iframe=document.createElement("iframe"),F.iframe.style.width="100%",F.iframe.style.height="100%",E!==112496729&&(F.iframe.style.colorScheme="auto"),F.isLatencyMeasurementExperiment&&(F.iframe.style.display="none"),_.Hp(F.iframe,W),F.iframe.setAttribute("jsname","C5o1O"),ikT(F.iframe),document.body.appendChild(F.iframe))},ikT=function(F){F.style.bottom="-200vh";
F.style.position="fixed";F.style.right="-200vw";F.style.border="";F.style.left="";F.style.top="";F.style.zIndex="";F.style.pointerEvents="none";F.style.visibility="hidden"},bkP=function(F){F.iframe&&(F.isLatencyMeasurementExperiment||(F.JSC$17185_previousHtmlOverscroll!==void 0&&(document.documentElement.style.overscrollBehavior=F.JSC$17185_previousHtmlOverscroll),F.JSC$17185_previousBodyOverscroll!==void 0&&(document.body.style.overscrollBehavior=F.JSC$17185_previousBodyOverscroll),F.JSC$17185_previousBodyOverflow!==
void 0&&(document.body.style.overflow=F.JSC$17185_previousBodyOverflow),F.enableDialogA11yFix&&rUK(F,!1)),ikT(F.iframe))};
SN.prototype.handleFocusChange=function(){document.activeElement===this.iframe&&(rUK(this,!0),window.removeEventListener("blur",this.focusChangeListener))};
var rUK=function(F,W){var E,h,d=(E=F.iframe)==null?void 0:(h=E.parentElement)==null?void 0:h.children;if(d)for(E=0;E<d.length;E++)h=d[E],h!==F.iframe&&(W?(h.hasAttribute("aria-hidden")&&_.j9([_.SJ(LEw)],h,"data-old-aria-hidden",h.getAttribute("aria-hidden")),_.j9([_.SJ(qZN)],h,"aria-hidden","true")):(h.removeAttribute("aria-hidden"),h.hasAttribute("data-old-aria-hidden")&&(_.j9([_.SJ($BP)],h,"aria-hidden",h.getAttribute("data-old-aria-hidden")),h.removeAttribute("data-old-aria-hidden"))))},pD=function(F,
W,E){var h;
(h=F.latencyCallback)==null||h.call(F,{latencyType:W,timestampEpochMillis:E!=null?E:Date.now()})};var TX6=function(F,W,E){SN.call(this,W,E===void 0?!1:E);this.consentPrimitiveRequest=F;F=jVu(this);if(!(0,_.FPG)(F))throw Error("H``"+String(F));this.src=this.getSrc();var h;this.initialLoadingStrategy=(h=_.Em(this.consentPrimitiveRequest,eN,4))==null?void 0:_.lj(h,4)},oPx;
_.k(TX6,SN);var x38=function(F){var W=_.c("enable_primitive_dialog_aria_hide_siblings");F={request:F,enableDialogA11yFix:W===void 0?!1:W};oPx||(oPx=new TX6(F.request,F.isLatencyMeasurementExperiment||_.lj(F.request,1)===2,F.enableDialogA11yFix));return oPx},jVu=function(F){var W;
return(W=_.Em(F.consentPrimitiveRequest,eN,4))==null?void 0:_.bj(W,1)},aBg=function(F,W){if(!_.Lc(F.consentPrimitiveRequest,wf,5)){var E=F.consentPrimitiveRequest,h=new wf;
_.hy(E,5,h)}var d;if((d=_.Em(F.consentPrimitiveRequest,wf,5))==null||_.QiW(_.Af(d,8))==null){var V;(V=_.Em(F.consentPrimitiveRequest,wf,5))!=null&&_.kt(V,8,W)}},Pv6=function(F){var W;
return(W=_.Em(F.consentPrimitiveRequest,wf,5))==null?void 0:_.Wb(W,1)};
TX6.prototype.isDarkTheme=function(){var F;return((F=_.Em(this.consentPrimitiveRequest,eN,4))==null?void 0:_.lj(F,2))===2};
var nP$=function(F){var W;return((W=_.Em(F.consentPrimitiveRequest,eN,4))==null?void 0:_.Wb(W,5))||void 0},lBw=function(F){F.channel=void 0;
F.prewarmChannel=void 0;F.iframe&&(document.body.contains(F.iframe)&&document.body.removeChild(F.iframe),F.iframe=void 0);oPx=void 0},LV6=function(F){return SN.prototype.showPrimitive.call(F).then(function(W){return _.Em(W,QV6,2)})};for(var mz={},GFO=(mz[64]="ma",mz[73]="ogb",mz[89]="cr",mz[21]="test",mz[0]="unkn",mz[137]="con",mz[155]="hl",mz[78]="yt",mz[171]="lp",mz[172]="ap",mz[177]="amo",mz[178]="pqe",mz[74]="gg",mz[1]="gm",mz[140]="am",mz),YZu=_.U(Object.keys(GFO)),w6N=YZu.next();!w6N.done;w6N=YZu.next());var uRw=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(uRw,_.n2);var SZq=[0,[2,3,4],_.En,CzT,Abg,_.WGr];var p66=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(p66,_.n2);var mB8=_.K2(p66,[0,k_P,_.Kc,_.En,_.Kc,_.En,SZq]);var KE6=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(KE6,_.n2);KE6.prototype.getCommand=function(){return _.lj(this,1)};
var FNK=function(){var F=new KE6;return _.rH(F,1,0)};var WN$=_.F3([0,k_P,_.Kc,[0,_.En,_.Kc,-1]]);var EiT=new _.DZ("s"),hDu=new _.DZ("t"),daN=new _.DZ("u"),NHO=new _.DZ("v"),V2K=function(F,W,E){_.xU.call(this,EiT);this.mediaKey=F;this.photoUrl=W;this.photoSource=E};
_.k(V2K,_.xU);var Ua6=function(){_.xU.call(this,hDu)};
_.k(Ua6,_.xU);var RDx=function(F){F=F===void 0?!1:F;_.xU.call(this,daN);this.isError=F};
_.k(RDx,_.xU);var eD8=function(){_.xU.call(this,NHO)};
_.k(eD8,_.xU);var M2g=/^\[([a-z0-9-]+)(="([^\\"]*)")?]$/,t26=function(F){if(typeof F=="string"){if(F.charAt(0)==".")return giN(F.substr(1));if(F.charAt(0)=="["){var W=M2g.exec(F);F=F.indexOf("=")==-1?void 0:W[3];return QZ6(W[1],F)}return zDT(F)}return F},giN=function(F){return function(W){return W.getAttribute&&_.YU(W,F)}},QZ6=function(F,W){return function(E){return W!==void 0?E.getAttribute&&E.getAttribute(F)==W:E.hasAttribute&&E.hasAttribute(F)}},zDT=function(F){F=F.toUpperCase();
return function(W){return(W=W.tagName)&&W.toUpperCase()==F}},CjK=function(){return!0};var KD=function(F,W){this.JSC$17213_key_=F;this.JSC$17213_value_=W},FK=function(F){throw Error("fk`"+F.JSC$17213_key_);
},BH6=function(F,W){return new TypeError("gk`"+W+"`"+F.JSC$17213_key_+"`"+F.JSC$17213_value_+"`"+typeof F.JSC$17213_value_)};
KD.prototype.string=function(F){if(arguments.length==0)var W=viw(this);else{var E;W=(E=IE6(this))!=null?E:F}return W};
var viw=function(F){var W=IE6(F);W===null&&FK(F);return W},IE6=function(F){var W=F.JSC$17213_value_;
if(W==null)return null;if(typeof W==="string")return W;throw BH6(F,"string");};
KD.prototype.bool=function(F){if(arguments.length==0){var W=this.optionalBool();W===null&&FK(this)}else{var E;W=(E=this.optionalBool())!=null?E:F}return W};
KD.prototype.optionalBool=function(){var F=this.JSC$17213_value_;if(F==null)return null;if(typeof F==="boolean")return F;if(typeof F==="string"){F=F.toLowerCase();if(F==="true"||F==="1")return!0;if(F==="false"||F==="0")return!1}throw BH6(this,"boolean");};
KD.prototype.number=function(F){if(arguments.length==0){var W=cfO(this);W===null&&FK(this)}else{var E;W=(E=cfO(this))!=null?E:F}return W};
var cfO=function(F){var W=F.JSC$17213_value_;if(W==null)return null;if(typeof W==="number")return W;if(typeof W==="string"){var E=Number(W);if(!isNaN(E)&&(E!==0||W.trim().length!==0))return E}throw BH6(F,"number");};
KD.prototype.toString=function(){return viw(this)};
KD.prototype.array=function(F){if(arguments.length==0){var W=Daw(this);W===null&&FK(this);return W}W=Daw(this);return W==null?F:W};
var Daw=function(F){var W=F.JSC$17213_value_;if(W==null)return null;Array.isArray(W)||(typeof W!=="string"?W=[W]:(W=W.trim(),W=W==""?[]:W.split(",").map(function(E){return E.trim()})));
return xaP(F,W)},xaP=function(F,W){var E=F.JSC$17213_key_+"[";
return Array.from(W,function(h,d){return new KD(E+d+"]",h)})};
KD.prototype.object=function(F){var W=this.JSC$17213_value_;if(W==null)return F===void 0&&FK(this),F;if(typeof W==="object"&&W.constructor===Object){F={};var E=this.JSC$17213_key_+".",h;for(h in W)F[h]=new KD(E+h,W[h]);return F}throw BH6(this,"object");};var WL=function(F){this.list_=kAw(F)},kAw=function(F){if(F instanceof WL)F=F.list_;
else if(F[0]instanceof WL){for(var W=new Set,E=0;E<F.length;E++)for(var h=_.U(F[E].list_),d=h.next();!d.done;d=h.next())W.add(d.value);F=W}return[].concat(_.x9(F))};
_.N=WL.prototype;_.N.each=function(F,W,E){((E===void 0?0:E)?pZq:_.Tk)(this.list_,F,W);return this};
_.N.size=function(){return this.list_.length};
_.N.isEmpty=function(){return this.list_.length===0};
_.N.get=function(F){return this.list_[F]||null};
_.N.el=function(){return this.list_[0]||null};
_.N.map=function(F,W){return _.AN(this.list_,F,W)};
_.N.equals=function(F){return this===F||_.zz(this.list_,F.list_)};
_.N.first=function(){return this.list_.length==0?null:new EH(this.list_[0])};
_.N.find=function(F){var W=[];this.each(function(E){E=E.querySelectorAll(String(F));for(var h=0;h<E.length;h++)W.push(E[h])});
return new WL(W)};
_.N.parent=function(){var F=[];this.each(function(W){(W=W.parentElement||null)&&!_.on(F,W)&&F.push(W)});
return new WL(F)};
_.N.children=function(){var F=[];this.each(function(W){W=_.nv(W);for(var E=0;E<W.length;E++)F.push(W[E])});
return new WL(F)};
_.N.filter=function(F){F=_.QF(this.list_,t26(F));return new WL(F)};
_.N.closest=function(F){var W=[],E=t26(F),h=function(d){return _.pM(d)&&E(d)};
this.each(function(d){(d=_.HE(d,h,!0))&&!_.on(W,d)&&W.push(d)});
return new WL(W)};
_.N.next=function(F){return Afg(this,_.Se_,F)};
_.N.prev=function(F){return Afg(this,s3N,F)};
var Afg=function(F,W,E){var h=[];var d=E?t26(E):CjK;F.each(function(V){(V=W(V))&&d(V)&&h.push(V)});
return new WL(h)};
WL.prototype.setClass=function(F){return this.each(function(W){_.G0(W,F)})};
var sZK=function(F,W){return F.each(function(E){_.ou(E,W)})},LNO=function(F,W){return F.each(function(E){_.rh(E,W)})};
WL.prototype.toggleClass=function(F,W){return W===!0?sZK(this,F):W===!1?LNO(this,F):this.each(function(E){_.YU(E,F)?_.rh(E,F):_.ou(E,F)})};
WL.prototype.setText=function(F){return this.each(function(W){_.yB(W,F)})};
var qVT=function(F){F.each(function(W){W.removeAttribute("aria-hidden")})};
WL.prototype.getStyle=function(F){if(this.list_.length>0){var W=this.list_[0],E=W.style[_.Bf(F)];return typeof E!=="undefined"?E:W.style[_.e6U(W,F)]||""}};
WL.prototype.getData=function(F){if(this.list_.length===0)return new KD(F,null);var W=ho8(this.list_[0],F);return new KD(F,W)};
WL.prototype.focus=function(F){try{F?this.el().focus(F):this.el().focus()}catch(W){}return this};
WL.prototype.click=function(){var F=_.qp(this.el());if(F.createEvent){var W=F.createEvent("MouseEvents");W.initMouseEvent("click",!0,!0,F.defaultView,1,0,0,0,0,!1,!1,!1,!1,0,null);this.el().dispatchEvent(W)}else F=F.createEventObject(),F.clientX=0,F.clientY=0,F.screenX=0,F.screenY=0,F.altKey=!1,F.ctrlKey=!1,F.shiftKey=!1,F.button=0,this.el().fireEvent("onclick",F)};
var hQ=function(F,W,E,h){function d(M,g,t){var C=g;g&&g.parentNode&&(C=g.cloneNode(!0));M(C,t)}
h=h===void 0?!1:h;if(F.list_.length==1){var V=F.list_[0],R=function(M){return W(M,V)};
E instanceof WL?E.each(R,void 0,h):Array.isArray(E)?(h?pZq:_.Tk)(E,R):R(E);return F}return F.each(function(M){E instanceof WL?E.each(function(g){d(W,g,M)}):Array.isArray(E)?_.Tk(E,function(g){d(W,g,M)}):d(W,E,M)})};
_.N=WL.prototype;_.N.append=function(F){return hQ(this,function(W,E){W&&E.appendChild(W)},F)};
_.N.appendTo=function(F){(new WL([F])).append(this);return this};
_.N.remove=function(){return hQ(this,function(F,W){_.Bb(W)},null)};
_.N.empty=function(){return hQ(this,function(F,W){_.On(W)},null)};
_.N.after=function(F,W){return hQ(this,function(E,h){E&&_.lk(E,h)},F,!(W===void 0||W))};
_.N.before=function(F){return hQ(this,function(W,E){W&&_.bk(W,E)},F)};
_.N.replaceWith=function(F){return hQ(this,function(W,E){W&&_.Yea(W,E)},F)};
_.N.toggle=function(F){return this.each(function(W){_.rl(W,F)})};
_.N.show=function(){return this.toggle(!0)};
_.N.hide=function(){return this.toggle(!1)};
_.N.trigger=function(F,W,E,h){return $aw(this,F,W,E,h)};
var $aw=function(F,W,E,h,d){return F.each(function(V){_.qGk(_.qp(V)).triggerWizEventInternal(V,W,E,h,d)})},EH=function(F,W){F instanceof WL&&(W=F.list_,F=null);
this.list_=kAw(F!=null?[F]:W)};
_.Ma(EH,WL);_.N=EH.prototype;_.N.children=function(){return new WL(Array.prototype.slice.call(_.nv(this.list_[0])))};
_.N.each=function(F,W){F.call(W,this.list_[0],0);return this};
_.N.size=function(){return 1};
_.N.el=function(){return this.list_[0]};
_.N.first=function(){return this};var dO=function(F,W){W=W===void 0?window:W;this.hostId=F;this.JSC$17224_win=W;this.scheme="https";this.domain="myaccount.google.com";this.authUser=this.port=0;this.colorScheme="";this.parentElement=document.body;this.iframePosition="fixed";this.opened=!1;this.JSC$17224_previousHtmlOverscroll=this.JSC$17224_previousBodyOverscroll=this.JSC$17224_previousBodyOverflow="";this.eventTarget=new _.qo;this.JSC$17224_win.location.hostname.indexOf("youtube.com")>=0&&(this.domain="profilewidgets.youtube.com")},
HcN=function(F){var W=Zcw(Zcw(Zcw(new XY6(78),"po"),"hppp"),"hhc");
W.authUser=Number(_.b0("SESSION_INDEX","0"));W.colorScheme=F;return W};
dO.prototype.getOrigin=function(){return this.origin?this.origin:_.ND(_.ds(_.hJ(new _.Yx,this.JSC$17224_win.location.protocol),this.JSC$17224_win.location.hostname),this.JSC$17224_win.location.port).toString()};
dO.prototype.getTargetOrigin=function(){return _.ND(_.ds(_.hJ(new _.Yx,this.scheme),this.domain),this.port)};
dO.prototype.preloadIframe=function(F){var W=this;if(this.iframeLoadPromise===void 0){var E=document.createElement("iframe");this.iframe=E;hvw(E,F);this.iframeLoadPromise=new Promise(function(h,d){var V=!1,R=function(M){M.stopPropagation();E.removeEventListener("error",R);E.removeEventListener("securitypolicyviolation",R);d(Error("hk",{cause:M}))};
E.addEventListener("error",R);E.addEventListener("securitypolicyviolation",R);setTimeout(function(){V||d(Error("ik"))},3E4);
Pj$(W,E,function(){V=!0;E.removeEventListener("error",R);E.removeEventListener("securitypolicyviolation",R);h()})});
Jf8(this);F=this.getTargetOrigin().toString();E.setAttribute("allow","camera "+F+"; display-capture "+F);this.parentElement.appendChild(E)}return this.iframeLoadPromise};
var Oc8=function(F,W){var E,h;return _.e(function(d){if(d.nextAddress==1)return E=uVw(getComputedStyle(F.parentElement).direction==="rtl"),F.parentElement.appendChild(E),document.activeElement instanceof HTMLElement&&(F.elementToFocusAfterClose=document.activeElement),_.Nl(d,2),_.Q(d,F.preloadIframe(W),4);if(d.nextAddress!=2){F.parentElement.removeChild(E);F.JSC$17224_previousBodyOverflow=F.parentElement.style.overflow;F.JSC$17224_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior;
F.JSC$17224_previousBodyOverscroll=F.parentElement.style.overscrollBehavior;document.documentElement.style.overscrollBehavior="contain";F.parentElement.style.overscrollBehavior="contain";F.parentElement.style.overflow="hidden";var V=F.iframe;V.style.bottom="0";V.style.border="none";V.style.height="100%";V.style.left="0";V.style.position=F.iframePosition;V.style.right="0";V.style.top="0";V.style.width="100%";V.style.zIndex="2202";V.setAttribute("aria-hidden","false");V.setAttribute("aria-modal","true");
F.opened=!0;aEq(F);return _.id(d,0)}h=_.Ml(d);F.parentElement.removeChild(E);F1q(F.isDarkTheme());fEg(F,!1);throw Error("jk",{cause:h});})},fEg=function(F,W){W=W===void 0?!0:W;
F.iframe!==void 0&&(bcg(F),document.documentElement.style.overscrollBehavior=F.JSC$17224_previousHtmlOverscroll,F.parentElement.style.overscrollBehavior=F.JSC$17224_previousBodyOverscroll,F.parentElement.style.overflow=F.JSC$17224_previousBodyOverflow,F.elementToFocusAfterClose!==void 0&&(F.elementToFocusAfterClose.focus(),F.elementToFocusAfterClose=void 0),W?Jf8(F):(F.parentElement.removeChild(F.iframe),F.iframe=void 0,F.iframeLoadPromise=void 0,F.mainChannel=void 0),F.opened=!1)},bcg=function(F){F.backgroundElementsAriaHiddenIsNull&&
(qVT(F.backgroundElementsAriaHiddenIsNull),F.backgroundElementsAriaHiddenIsNull=void 0);
F.backgroundElementsAriaHiddenIsFalse&&(F.backgroundElementsAriaHiddenIsFalse.each(function(W){W.setAttribute("aria-hidden","false")}),F.backgroundElementsAriaHiddenIsFalse=void 0);
F.backgroundElementsWithoutInert&&(F.backgroundElementsWithoutInert.each(function(W){W.removeAttribute("inert")}),F.backgroundElementsWithoutInert=void 0)},aEq=function(F){F.backgroundElementsAriaHiddenIsNull=(new EH(F.iframe.parentElement)).children().filter(function(W){return W.getAttribute("aria-hidden")===null&&W!==F.iframe});
F.backgroundElementsAriaHiddenIsNull.each(function(W){W.setAttribute("aria-hidden","true")});
F.backgroundElementsAriaHiddenIsFalse=(new EH(F.iframe.parentElement)).children().filter(function(W){return W.getAttribute("aria-hidden")==="false"&&W!==F.iframe});
F.backgroundElementsAriaHiddenIsFalse.each(function(W){W.setAttribute("aria-hidden","true")});
F.backgroundElementsWithoutInert=(new EH(F.iframe.parentElement)).children().filter(function(W){return!W.hasAttribute("inert")&&W!==F.iframe});
F.backgroundElementsWithoutInert.each(function(W){W.setAttribute("inert","true")})},Jf8=function(F){F=F.iframe;
F.style.bottom="-1000px";F.style.position="fixed";F.style.right="-1000px";F.style.border="";F.style.height="";F.style.left="";F.style.top="";F.style.width="";F.style.zIndex="";F.setAttribute("aria-hidden","true");F.setAttribute("aria-modal","false")};
dO.prototype.isDarkTheme=function(){return this.colorScheme==="dark"||window.matchMedia("(prefers-color-scheme: dark)").matches&&this.colorScheme!=="light"};var XY6=function(F,W){dO.call(this,GFO[F],W);this.options=[];this.style=""};
_.k(XY6,dO);var lE8=function(F){F.style="youtube";return F},niN=function(F,W){F.eventTarget.listen(daN,W);
return F},yfN=function(F,W){F.eventTarget.listen(EiT,W);
return F},Zcw=function(F,W){F.options.push(W);
return F},jZx=function(F){var W=[F.getOrigin()];
F.ancestorOrigins&&W.push.apply(W,_.x9(F.ancestorOrigins));var E=new _.Yx(F.JSC$17224_win.location.href),h=F.startUrl?F.startUrl:F.options.includes("po")?"profile-picture/art":"profile-picture";W=Mq(_.VD(F.getTargetOrigin(),h),"origin",W);F.startUrl&&_.ig(W,"startPath",F.startUrl);F.authUser>0&&_.ig(W,"authuser",F.authUser);F.pageId!==void 0&&_.ig(W,"pageId",F.pageId);_.ig(W,"hostId",F.hostId);F.jsMode!==void 0&&_.ig(W,"jsmode",F.jsMode);F.options.length>0&&_.ig(W,"opts",F.options.join(","));try{for(var d=
_.U(["utm_source","utm_medium","utm_campaign","utm_content"]),V=d.next();!V.done;V=d.next()){var R=V.value;_.jS(E,R)&&_.ig(W,R,_.jS(E,R))}var M,g=(M=F.hl)!=null?M:_.jS(E,"hl");g!==void 0&&_.ig(W,"hl",g)}catch(t){if(!(t instanceof URIError))throw t;}F.colorScheme&&_.ig(W,"theme",F.colorScheme);F.style&&_.ig(W,"style",F.style);return W},icw=function(F,W){F.mainChannel=_.NS({destination:F.JSC$17224_win,
iframe:W,origin:F.getTargetOrigin().toString(),channelName:"ow",onMessage:function(E){E=mB8(E.data);if(W===F.iframe)switch(_.lj(E,1)){case 1:F.eventTarget.dispatchEvent(new RDx);fEg(F);break;case 2:F.eventTarget.dispatchEvent(new V2K(_.bj(E,4),_.bj(E,2),_.lj(E,5),_.Em(E,uRw,6)));break;case 0:var h;F.eventTarget.dispatchEvent(new Ua6(_.bj(E,2),(h=_.lj(E,3))!=null?h:0));break;case 3:F.eventTarget.dispatchEvent(new RDx(!0));fEg(F,!1);break;case 4:F.eventTarget.dispatchEvent(new eD8)}}})},Pj$=function(F,
W,E){_.NS({destination:F.JSC$17224_win,
iframe:W,origin:_.ND(_.ds(_.hJ(new _.Yx,F.scheme),F.domain),F.port).toString(),channelName:"owi",onMessage:function(h){W===F.iframe&&(E!==void 0&&E(),icw(F,W),F.opened&&F.mainChannel.send(WN$(FNK())),h.reply(),Pj$(F,W))}})};
XY6.prototype.preloadIframe=function(){return this.iframeLoadPromise===void 0?dO.prototype.preloadIframe.call(this,jZx(this).toString()):this.iframeLoadPromise};
XY6.prototype.openPicker=function(F){var W=this;return _.e(function(E){if(E.nextAddress==1)return W.startUrl=F?F:W.options.includes("po")?"profile-picture/art":"profile-picture",_.Q(E,Oc8(W,jZx(W).toString()),2);if(W.mainChannel){var h=W.mainChannel,d=h.send;var V=FNK();V=_.QJ(V,2,W.startUrl);d.call(h,WN$(V))}_.gG(E)})};var rfK=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(rfK,_.n2);_.N=rfK.prototype;_.N.getSize=function(){return v1(this,1)};
_.N.setSize=function(F){return _.ij(this,1,F)};
_.N.getWidth=function(){return v1(this,12)};
_.N.getHeight=function(){return v1(this,13)};
_.N.setCenterCrop=function(F){return _.NT(this,20,F)};
_.N.getHtml=function(){return _.aZ(this,4)};
_.N.getToken=function(){return _.tv(this,24)};
_.N.setToken=function(F){return _.QJ(this,24,F)};
_.N.getBackgroundColor=function(){return v1(this,87)};
_.N.hasBackgroundColor=function(){return _.LN(_.Af(this,87))!=null};
_.N.getStoryboardLevel=function(){return v1(this,109)};var NL=function(F){this.JSC$17232_value_=void 0;this.childNodes_={};if(F){var W=_.aqB(F);F=_.ED(F);for(var E=0;E<W.length;E++)this.set(W[E],F[E])}};
NL.prototype.set=function(F,W){THu(this,F,W,!1)};
NL.prototype.add=function(F,W){THu(this,F,W,!0)};
var THu=function(F,W,E,h){for(var d=0;d<W.length;d++){var V=W.charAt(d);F.childNodes_[V]||(F.childNodes_[V]=new NL);F=F.childNodes_[V]}if(h&&F.JSC$17232_value_!==void 0)throw Error("kk`"+W);F.JSC$17232_value_=E},oiK=function(F,W){for(var E=0;E<W.length;E++)if(F=F.childNodes_[W.charAt(E)],!F)return;
return F};
NL.prototype.get=function(F){return(F=oiK(this,F))?F.JSC$17232_value_:void 0};
NL.prototype.getValues=function(){var F=[];GAg(this,F);return F};
var GAg=function(F,W){F.JSC$17232_value_!==void 0&&W.push(F.JSC$17232_value_);for(var E in F.childNodes_)GAg(F.childNodes_[E],W)};
NL.prototype.getKeys=function(F){var W=[];if(F){for(var E=this,h=0;h<F.length;h++){var d=F.charAt(h);if(!E.childNodes_[d])return[];E=E.childNodes_[d]}YVg(E,F,W)}else YVg(this,"",W);return W};
var YVg=function(F,W,E){F.JSC$17232_value_!==void 0&&E.push(W);for(var h in F.childNodes_)YVg(F.childNodes_[h],W+h,E)};
_.N=NL.prototype;_.N.containsKey=function(F){return this.get(F)!==void 0};
_.N.containsValue=function(F){if(this.JSC$17232_value_===F)return!0;for(var W in this.childNodes_)if(this.childNodes_[W].containsValue(F))return!0;return!1};
_.N.clear=function(){this.childNodes_={};this.JSC$17232_value_=void 0};
_.N.remove=function(F){for(var W=this,E=[],h=0;h<F.length;h++){var d=F.charAt(h);if(!W.childNodes_[d])throw Error("lk`"+F);E.push([W,d]);W=W.childNodes_[d]}F=W.JSC$17232_value_;for(delete W.JSC$17232_value_;E.length>0;)if(h=E.pop(),W=h[0],h=h[1],W.childNodes_[h].isEmpty())delete W.childNodes_[h];else break;return F};
_.N.clone=function(){return new NL(this)};
_.N.getCount=function(){return ZQN(this.getValues())};
_.N.isEmpty=function(){return this.JSC$17232_value_===void 0&&_.xd.isEmpty(this.childNodes_)};var RvT=function(){if(!wYT){var F=wYT=new NL,W;for(W in ucO)F.add(W,ucO[W])}},wYT,Vm=function(F,W){this.types=F;
this.setters=W},ucO={a:new Vm([3,
0],[function(F,W){_.NT(F,21,W)},
function(F,W){_.ij(F,56,W)}]),
al:new Vm([3],[function(F,W){_.NT(F,74,W)}]),
b:new Vm([3,0],[function(F,W){_.NT(F,23,W)},
function(F,W){_.ij(F,38,W)}]),
ba:new Vm([0],[function(F,W){_.ij(F,85,W)}]),
bc:new Vm([0],[function(F,W){_.ij(F,87,W)}]),
br:new Vm([0],[function(F,W){_.ij(F,86,W)}]),
c:new Vm([3,0],[function(F,W){_.NT(F,2,W)},
function(F,W){_.ij(F,39,W)}]),
cc:new Vm([3],[function(F,W){_.NT(F,51,W)}]),
ci:new Vm([3],[function(F,W){_.NT(F,32,W)}]),
ckm:new Vm([3],[function(F,W){_.NT(F,104,W)}]),
cp:new Vm([0],[function(F,W){_.ij(F,92,W)}]),
cr:new Vm([3],[function(F,W){_.NT(F,108,W)}]),
cv:new Vm([0],[function(F,W){_.ij(F,94,W)}]),
d:new Vm([3],[function(F,W){_.NT(F,3,W)}]),
dc:new Vm([5],[function(F,W){_.QJ(F,99,W)}]),
df:new Vm([3],[function(F,W){_.NT(F,80,W)}]),
dv:new Vm([3],[function(F,W){_.NT(F,90,W)}]),
e:new Vm([0],[function(F,W){_.ij(F,15,W)}]),
em:new Vm([0],[function(F,W){_.ij(F,107,W)}]),
f:new Vm([4],[function(F,W){_.QJ(F,16,W)}]),
fg:new Vm([3],[function(F,W){_.NT(F,34,W)}]),
fh:new Vm([3],[function(F,W){_.NT(F,30,W)}]),
fm:new Vm([3],[function(F,W){_.NT(F,84,W)}]),
fo:new Vm([2],[function(F,W){_.de(F,79,_.e$(W))}]),
ft:new Vm([3],[function(F,W){_.NT(F,50,W)}]),
fv:new Vm([3],[function(F,W){_.NT(F,31,W)}]),
g:new Vm([3],[function(F,W){_.NT(F,14,W)}]),
gce:new Vm([4],[function(F,W){_.QJ(F,112,W)}]),
gd:new Vm([3],[function(F,W){_.NT(F,83,W)}]),
gm:new Vm([3],[function(F,W){_.NT(F,105,W)}]),
h:new Vm([3,0],[function(F,W){_.NT(F,4,W)},
function(F,W){_.ij(F,13,W)}]),
i:new Vm([3],[function(F,W){_.NT(F,22,W)}]),
ic:new Vm([0],[function(F,W){_.ij(F,71,W)}]),
id:new Vm([3],[function(F,W){_.NT(F,70,W)}]),
il:new Vm([3],[function(F,W){_.NT(F,96,W)}]),
ip:new Vm([3],[function(F,W){_.NT(F,54,W)}]),
iv:new Vm([0],[function(F,W){_.kt(F,75,W)}]),
j:new Vm([1],[function(F,W){W=W==null?W:FFF(W);_.de(F,29,W)}]),
k:new Vm([3,0],[function(F,W){_.NT(F,17,W)},
function(F,W){_.ij(F,42,W)}]),
l:new Vm([0],[function(F,W){_.ij(F,44,W)}]),
lf:new Vm([3],[function(F,W){_.NT(F,65,W)}]),
lo:new Vm([3],[function(F,W){_.NT(F,97,W)}]),
m:new Vm([0],[function(F,W){_.ij(F,63,W)}]),
md:new Vm([3],[function(F,W){_.NT(F,91,W)}]),
mm:new Vm([4],[function(F,W){_.QJ(F,81,W)}]),
mo:new Vm([3],[function(F,W){_.NT(F,73,W)}]),
mv:new Vm([3],[function(F,W){_.NT(F,66,W)}]),
n:new Vm([3],[function(F,W){F.setCenterCrop(W)}]),
nc:new Vm([3],[function(F,W){_.NT(F,55,W)}]),
nd:new Vm([3],[function(F,W){_.NT(F,53,W)}]),
ng:new Vm([3],[function(F,W){_.NT(F,95,W)}]),
ngm:new Vm([3],[function(F,W){_.NT(F,106,W)}]),
no:new Vm([3],[function(F,W){_.NT(F,37,W)}]),
ns:new Vm([3],[function(F,W){_.NT(F,40,W)}]),
nt0:new Vm([4],[function(F,W){_.QJ(F,36,W)}]),
ntm:new Vm([3],[function(F,W){_.NT(F,114,W)}]),
nu:new Vm([3],[function(F,W){_.NT(F,46,W)}]),
nw:new Vm([3],[function(F,W){_.NT(F,48,W)}]),
o:new Vm([1,3],[function(F,W){W=W==null?W:FFF(W);_.de(F,7,W)},
function(F,W){_.NT(F,27,W)}]),
p:new Vm([3,0],[function(F,W){_.NT(F,19,W)},
function(F,W){_.ij(F,43,W)}]),
pa:new Vm([3],[function(F,W){_.NT(F,61,W)}]),
pc:new Vm([0],[function(F,W){_.ij(F,88,W)}]),
pd:new Vm([3],[function(F,W){_.NT(F,60,W)}]),
pf:new Vm([3],[function(F,W){_.NT(F,67,W)}]),
pg:new Vm([3],[function(F,W){_.NT(F,72,W)}]),
pi:new Vm([2],[function(F,W){_.de(F,76,_.e$(W))}]),
pp:new Vm([3],[function(F,W){_.NT(F,52,W)}]),
pt:new Vm([4],[function(F,W){_.QJ(F,111,W)}]),
q:new Vm([4],[function(F,W){_.QJ(F,28,W)}]),
r:new Vm([3,0],[function(F,W){_.NT(F,6,W)},
function(F,W){_.ij(F,26,W)}]),
ra:new Vm([3],[function(F,W){_.NT(F,103,W)}]),
rf:new Vm([3],[function(F,W){_.NT(F,100,W)}]),
rg:new Vm([3],[function(F,W){_.NT(F,59,W)}]),
rh:new Vm([3],[function(F,W){_.NT(F,49,W)}]),
rj:new Vm([3],[function(F,W){_.NT(F,57,W)}]),
ro:new Vm([2],[function(F,W){_.de(F,78,_.e$(W))}]),
rp:new Vm([3],[function(F,W){_.NT(F,58,W)}]),
rw:new Vm([3],[function(F,W){_.NT(F,35,W)}]),
rwa:new Vm([3],[function(F,W){_.NT(F,64,W)}]),
rwu:new Vm([3],[function(F,W){_.NT(F,41,W)}]),
s:new Vm([3,0],[function(F,W){_.NT(F,33,W)},
function(F,W){F.setSize(W)}]),
sb:new Vm([0],[function(F,W){_.ij(F,110,W)}]),
sc:new Vm([0],[function(F,W){_.ij(F,89,W)}]),
sg:new Vm([3],[function(F,W){_.NT(F,82,W)}]),
sl:new Vm([0],[function(F,W){_.ij(F,109,W)}]),
sm:new Vm([3],[function(F,W){_.NT(F,93,W)}]),
t:new Vm([4],[function(F,W){F.setToken(W)}]),
tm:new Vm([3],[function(F,W){_.NT(F,113,W)}]),
u:new Vm([3],[function(F,W){_.NT(F,18,W)}]),
ut:new Vm([3],[function(F,W){_.NT(F,45,W)}]),
v:new Vm([0],[function(F,W){_.ij(F,62,W)}]),
vb:new Vm([0],[function(F,W){_.kt(F,68,W)}]),
vf:new Vm([4],[function(F,W){_.QJ(F,102,W)}]),
vl:new Vm([0],[function(F,W){_.kt(F,69,W)}]),
vm:new Vm([3],[function(F,W){_.NT(F,98,W)}]),
w:new Vm([0],[function(F,W){_.ij(F,12,W)}]),
x:new Vm([0],[function(F,W){_.ij(F,9,W)}]),
y:new Vm([0],[function(F,W){_.ij(F,10,W)}]),
ya:new Vm([2],[function(F,W){_.de(F,77,_.e$(W))}]),
z:new Vm([0],[function(F,W){_.ij(F,11,W)}])};
RvT.prototype.parse=function(F){var W=new rfK,E=new rfK;if(F=="")F=!0;else{F=F.split("-");for(var h=!0,d=0;d<F.length;d++){var V=F[d];if(V.length==0)h=!1;else{var R=V,M=!1;var g=R;var t=R.charAt(0);t!=t.toLowerCase()&&(M=!0,g=R.charAt(0).toLowerCase()+R.substring(1));var C=wYT;for(t=1;t<=g.length;++t){var B=C,I=g.substring(0,t);if(I.length==0?B.isEmpty():!oiK(B,I))break}g=t==1?null:(g=C.get(g.substring(0,t-1)))?{option:R.substring(0,t-1),value:R.substring(t-1),signed:M,attributes:g}:null;if(g){R=
[];M=[];t=!1;for(C=0;C<g.attributes.types.length;C++){B=g.attributes.types[C];var x=g.value;I=d;if(g.signed&&B==1)for(var A=x.length;A<12&&I<F.length-1;)x+="-"+F[I+1],A=x.length,++I;else if(B==2)for(;I<F.length-1&&F[I+1].match(/^[\d\.]/);)x+="-"+F[I+1],++I;A=g.attributes.setters[C];x=SVu(this,B)(g.option,x,W,E,A);if(x===null){t=!0;d=I;break}else R.push(B),M.push(x)}if(!t)for(g=0;g<M.length;g++)C=R[g],x=M[g],pYT(this,C)(V,x);h=h&&t}else h=!1}}F=h}return new ma$(W,E,F)};
var UH=function(F,W,E,h,d,V){d(E,W);F=F.charAt(0);V=V(F==F.toUpperCase());d(h,V)};
_.N=RvT.prototype;_.N.parseAndSetIntOption_=function(F,W,E,h,d){if(W=="")return 0;isFinite(W)&&(W=String(W));W=typeof W==="string"?/^\s*-?0x/i.test(W)?parseInt(W,16):parseInt(W,10):NaN;if(isNaN(W))return 1;UH(F,W,E,h,d,Number);return null};
_.N.logIntParseError_=function(){};
_.N.parseAndSetFloatOption_=function(F,W,E,h,d){if(W=="")return 0;var V=Number(W);W=V==0&&_.Mw(W)?NaN:V;if(isNaN(W))return 1;UH(F,W,E,h,d,Number);return null};
_.N.logFloatParseError_=function(){};
_.N.parseAndSetBoolOption_=function(F,W,E,h,d){if(W!="")return 2;UH(F,!0,E,h,d,Boolean);return null};
_.N.logBoolParseError_=function(){};
_.N.parseAndSetStringOption_=function(F,W,E,h,d){if(W=="")return 0;UH(F,W,E,h,d,function(V){return V?"1":""});
return null};
_.N.logStringParseError_=function(){};
_.N.parseAndSetUint64Base64Option_=function(F,W,E,h,d){if(W=="")return 0;UH(F,W,E,h,d,function(V){return V?1:0});
return null};
var SVu=function(F,W){switch(W){case 0:return(0,_.kj)(F.parseAndSetIntOption_,F);case 2:return(0,_.kj)(F.parseAndSetFloatOption_,F);case 3:return(0,_.kj)(F.parseAndSetBoolOption_,F);case 4:return(0,_.kj)(F.parseAndSetStringOption_,F);case 1:return(0,_.kj)(F.parseAndSetUint64Base64Option_,F);default:return function(){}}},pYT=function(F,W){switch(W){case 0:return(0,_.kj)(F.logIntParseError_,F);
case 2:return(0,_.kj)(F.logFloatParseError_,F);case 3:return(0,_.kj)(F.logBoolParseError_,F);case 4:case 1:return(0,_.kj)(F.logStringParseError_,F);default:return function(){}}},ma$=function(F,W,E){this.valueProto_=F;
this.signatureFlagProto_=W;this.JSC$17244_valid_=E};
ma$.prototype.isValid=function(){return this.JSC$17244_valid_};var dW6=function(F){this.JSC$17245_parser_=null;this.JSC$17245_components_=[];this.JSC$17245_parsedOptions_=null;KNN(this,F)},FZu=function(F){F.JSC$17245_parser_==null&&(F.JSC$17245_parser_=new RvT);
return F.JSC$17245_parser_},KNN=function(F,W){F.JSC$17245_parsedOptions_=W?typeof W==="string"?FZu(F).parse(W):W:FZu(F).parse("")},RX=function(F,W){return F==W?!1:!0};
_.N=dW6.prototype;_.N.JSC$17247_setCrop=function(F){F=F||void 0;var W=this.JSC$17245_parsedOptions_,E=W.valueProto_;RX(F,_.aZ(E,2),_.aZ(W.signatureFlagProto_,2))&&_.NT(E,2,F);return this};
_.N.JSC$17247_setCircleCrop=function(F){F=F||void 0;var W=this.JSC$17245_parsedOptions_,E=W.valueProto_;RX(F,B1(E,51),B1(W.signatureFlagProto_,51))&&_.NT(E,51,F);return this};
_.N.JSC$17247_setImageCrop=function(F){F=F||void 0;var W=this.JSC$17245_parsedOptions_,E=W.valueProto_;RX(F,B1(E,32),B1(W.signatureFlagProto_,32))&&_.NT(E,32,F);return this};
_.N.JSC$17247_setHeight=function(F){var W=this.JSC$17245_parsedOptions_,E=W.valueProto_;RX(F,E.getHeight(),W.signatureFlagProto_.getHeight())&&_.ij(E,13,F);return this};
_.N.setCenterCrop=function(F){F=F||void 0;var W=this.JSC$17245_parsedOptions_,E=W.valueProto_;RX(F,_.aZ(E,20),_.aZ(W.signatureFlagProto_,20))&&E.setCenterCrop(F);return this};
_.N.JSC$17247_setSmartCrop=function(F){F=F||void 0;var W=this.JSC$17245_parsedOptions_,E=W.valueProto_;RX(F,_.aZ(E,19),_.aZ(W.signatureFlagProto_,19))&&_.NT(E,19,F);return this};
_.N.JSC$17247_setPad=function(F){F=F||void 0;var W=this.JSC$17245_parsedOptions_,E=W.valueProto_;RX(F,B1(E,60),B1(W.signatureFlagProto_,60))&&_.NT(E,60,F);return this};
_.N.JSC$17247_setSmartCropUseFace=function(F){F=F||void 0;var W=this.JSC$17245_parsedOptions_,E=W.valueProto_;RX(F,_.aZ(E,67),_.aZ(W.signatureFlagProto_,67))&&_.NT(E,67,F);return this};
_.N.JSC$17247_setSmartCropNoClip=function(F){F=F||void 0;var W=this.JSC$17245_parsedOptions_,E=W.valueProto_;RX(F,_.aZ(E,52),_.aZ(W.signatureFlagProto_,52))&&_.NT(E,52,F);return this};
_.N.setSize=function(F){var W=this.JSC$17245_parsedOptions_,E=W.valueProto_;RX(F,E.getSize(),W.signatureFlagProto_.getSize())&&E.setSize(F);return this};
_.N.setToken=function(F){F=F||void 0;var W=this.JSC$17245_parsedOptions_,E=W.valueProto_;RX(F,E.getToken(),W.signatureFlagProto_.getToken())&&E.setToken(F);return this};
_.N.JSC$17247_setWidth=function(F){var W=this.JSC$17245_parsedOptions_,E=W.valueProto_;RX(F,E.getWidth(),W.signatureFlagProto_.getWidth())&&_.ij(E,12,F);return this};
_.N.clearOptions=function(){KNN(this,"");return this};
_.N.build=function(){this.JSC$17245_components_.length=0;var F=this.JSC$17245_parsedOptions_,W=F.valueProto_;F=F.signatureFlagProto_;eY(this,"s",W.getSize(),F.getSize());eY(this,"w",W.getWidth(),F.getWidth());ML(this,"c",_.aZ(W,2),_.aZ(F,2));ML(this,"d",_.aZ(W,3),_.aZ(F,3));eY(this,"h",W.getHeight(),F.getHeight());ML(this,"s",B1(W,33),B1(F,33));ML(this,"h",W.getHtml(),F.getHtml());ML(this,"p",_.aZ(W,19),_.aZ(F,19));ML(this,"pp",_.aZ(W,52),_.aZ(F,52));ML(this,"pf",_.aZ(W,67),_.aZ(F,67));ML(this,"n",
_.aZ(W,20),_.aZ(F,20));eY(this,"r",v1(W,26),v1(F,26));ML(this,"r",_.aZ(W,6),_.aZ(F,6));ML(this,"o",B1(W,27),B1(F,27));var E=_.Jf(W,7,_.ki);gO(this,"o",E,_.Jf(F,7,_.ki));E=_.Jf(W,29,_.ki);gO(this,"j",E,_.Jf(F,29,_.ki));eY(this,"x",v1(W,9),v1(F,9));eY(this,"y",v1(W,10),v1(F,10));eY(this,"z",v1(W,11),v1(F,11));ML(this,"g",_.aZ(W,14),_.aZ(F,14));eY(this,"e",v1(W,15),v1(F,15));gO(this,"f",_.tv(W,16),_.tv(F,16));ML(this,"k",B1(W,17),B1(F,17));ML(this,"u",B1(W,18),!0);ML(this,"ut",B1(W,45),!0);ML(this,"i",
B1(W,22),!0);ML(this,"a",B1(W,21),B1(F,21));ML(this,"b",_.aZ(W,23),_.aZ(F,23));eY(this,"b",v1(W,38),v1(F,38));eY(this,"c",v1(W,39),v1(F,39),16,8);gO(this,"q",_.tv(W,28),_.tv(F,28));ML(this,"fh",B1(W,30),B1(F,30));ML(this,"fv",B1(W,31),B1(F,31));ML(this,"fg",_.aZ(W,34),_.aZ(F,34));ML(this,"ci",B1(W,32),B1(F,32));gO(this,"t",W.getToken(),F.getToken());gO(this,"nt0",_.tv(W,36),_.tv(F,36));ML(this,"rw",_.aZ(W,35),_.aZ(F,35));ML(this,"rwu",_.aZ(W,41),_.aZ(F,41));ML(this,"rwa",_.aZ(W,64),_.aZ(F,64));ML(this,
"nw",_.aZ(W,48),_.aZ(F,48));ML(this,"rh",_.aZ(W,49),_.aZ(F,49));ML(this,"no",_.aZ(W,37),_.aZ(F,37));ML(this,"ns",B1(W,40),B1(F,40));eY(this,"k",v1(W,42),v1(F,42));eY(this,"p",v1(W,43),v1(F,43));eY(this,"l",v1(W,44),v1(F,44));eY(this,"v",v1(W,62),v1(F,62));ML(this,"nu",B1(W,46),B1(F,46));ML(this,"ft",B1(W,50),B1(F,50));ML(this,"cc",B1(W,51),B1(F,51));ML(this,"nd",B1(W,53),B1(F,53));ML(this,"ip",B1(W,54),B1(F,54));ML(this,"nc",B1(W,55),B1(F,55));eY(this,"a",v1(W,56),v1(F,56));ML(this,"rj",B1(W,57),
B1(F,57));ML(this,"rp",B1(W,58),B1(F,58));ML(this,"rg",B1(W,59),B1(F,59));ML(this,"pd",B1(W,60),B1(F,60));ML(this,"pa",B1(W,61),B1(F,61));eY(this,"m",v1(W,63),v1(F,63));eY(this,"vb",Ih(W,68),Ih(F,68));eY(this,"vl",Ih(W,69),Ih(F,69));ML(this,"lf",B1(W,65),B1(F,65));ML(this,"mv",B1(W,66),B1(F,66));ML(this,"id",B1(W,70),B1(F,70));eY(this,"ic",v1(W,71),!0);ML(this,"pg",_.aZ(W,72),_.aZ(F,72));ML(this,"mo",B1(W,73),B1(F,73));ML(this,"al",B1(W,74),B1(F,74));eY(this,"iv",Ih(W,75),Ih(F,75));eY(this,"pi",c1(W,
76),c1(F,76));eY(this,"ya",c1(W,77),c1(F,77));eY(this,"ro",c1(W,78),c1(F,78));eY(this,"fo",c1(W,79),c1(F,79));ML(this,"df",B1(W,80),B1(F,80));gO(this,"mm",_.tv(W,81),_.tv(F,81));ML(this,"sg",B1(W,82),B1(F,82));ML(this,"gd",B1(W,83),B1(F,83));ML(this,"fm",B1(W,84),B1(F,84));eY(this,"ba",v1(W,85),v1(F,85));eY(this,"br",v1(W,86),v1(F,86));eY(this,"bc",W.getBackgroundColor(),F.getBackgroundColor(),16,8);eY(this,"pc",v1(W,88),v1(F,88),16,8);eY(this,"sc",v1(W,89),v1(F,89),16,8);ML(this,"dv",B1(W,90),B1(F,
90));ML(this,"md",B1(W,91),B1(F,91));eY(this,"cp",v1(W,92),v1(F,92));ML(this,"sm",B1(W,93),B1(F,93));eY(this,"cv",v1(W,94),v1(F,94));ML(this,"ng",B1(W,95),B1(F,95));ML(this,"il",B1(W,96),B1(F,96));ML(this,"lo",B1(W,97),B1(F,97));ML(this,"vm",B1(W,98),B1(F,98));gO(this,"dc",_.tv(W,99),_.tv(F,99));ML(this,"rf",B1(W,100),B1(F,100));gO(this,"vf",_.tv(W,102),_.tv(F,102));ML(this,"ra",_.aZ(W,103),_.aZ(F,103));ML(this,"ckm",B1(W,104),B1(F,104));ML(this,"gm",B1(W,105),B1(F,105));ML(this,"ngm",B1(W,106),B1(F,
106));eY(this,"em",v1(W,107),v1(F,107));ML(this,"cr",B1(W,108),B1(F,108));eY(this,"sl",W.getStoryboardLevel(),F.getStoryboardLevel());eY(this,"sb",v1(W,110),v1(F,110));gO(this,"pt",_.tv(W,111),_.tv(F,111));gO(this,"gce",_.tv(W,112),_.tv(F,112));ML(this,"tm",B1(W,113),B1(F,113));ML(this,"ntm",B1(W,114),B1(F,114));return this.JSC$17245_components_.join("-")};
var eY=function(F,W,E,h,d,V){if(E!=null){var R=d==void 0||d!=10&&d!=16?10:d;E=Number(E).toString(R);d=new IpO;d.append(R==16?"0x":"");R=d.append;V==void 0?V="":(V-=E.length,V=V<=0?"":(0,_.Jre)("0",V));R.call(d,V);d.append(E);WZ6(F,W,d.toString(),!!Number(h))}},ML=function(F,W,E,h){E&&WZ6(F,W,"",!!h)},gO=function(F,W,E,h){E&&WZ6(F,W,String(E),!!Number(h))},WZ6=function(F,W,E,h){h&&(W=W.charAt(0).toUpperCase()+W.substring(1));
F.JSC$17245_components_.push(W+E)};_.Ma(qE,dW6);_.N=qE.prototype;_.N.JSC$17247_setCrop=function(F){F&&Qm(this);return qE.superClass_.JSC$17247_setCrop.call(this,F)};
_.N.JSC$17247_setHeight=function(F){F=F==null||F<0?void 0:F;F!=null&&this.setSize();return qE.superClass_.JSC$17247_setHeight.call(this,F)};
_.N.JSC$17247_setImageCrop=function(F){F&&Qm(this);return qE.superClass_.JSC$17247_setImageCrop.call(this,F)};
_.N.JSC$17247_setCircleCrop=function(F){F&&Qm(this);return qE.superClass_.JSC$17247_setCircleCrop.call(this,F)};
_.N.setSize=function(F){_.NU(F)&&(F=Math.max(F.width,F.height));F=F==null||F<0?void 0:F;F!=null&&(this.JSC$17247_setWidth(),this.JSC$17247_setHeight());return qE.superClass_.setSize.call(this,F)};
_.N.JSC$17247_setSmartCrop=function(F){F&&Qm(this);return qE.superClass_.JSC$17247_setSmartCrop.call(this,F)};
_.N.JSC$17247_setSmartCropNoClip=function(F){F&&Qm(this);return qE.superClass_.JSC$17247_setSmartCropNoClip.call(this,F)};
_.N.JSC$17247_setSmartCropUseFace=function(F){F&&Qm(this);return qE.superClass_.JSC$17247_setSmartCropUseFace.call(this,F)};
_.N.setCenterCrop=function(F){F&&Qm(this);return qE.superClass_.setCenterCrop.call(this,F)};
_.N.JSC$17247_setPad=function(F){F&&Qm(this);return qE.superClass_.JSC$17247_setPad.call(this,F)};
_.N.JSC$17247_setWidth=function(F){F=F==null||F<0?void 0:F;F!=null&&this.setSize();return qE.superClass_.JSC$17247_setWidth.call(this,F)};
var GUu=function(F){F.clearOptions();var W=F.JSC$17245_parsedOptions_,E=W.valueProto_;RX(!0,_.aZ(E,3),_.aZ(W.signatureFlagProto_,3))&&_.NT(E,3,!0);return F},Qm=function(F){F.setCenterCrop();
F.JSC$17247_setCircleCrop();F.JSC$17247_setCrop();F.JSC$17247_setImageCrop();F.JSC$17247_setPad();F.JSC$17247_setSmartCrop();F.JSC$17247_setSmartCropNoClip();F.JSC$17247_setSmartCropUseFace()};
qE.prototype.build=function(){var F=this.JSC$17245_parsedOptions_.valueProto_;B1(F,18)||B1(F,45)?F.getSize()||this.setSize(0):(F=this.JSC$17245_parsedOptions_.valueProto_,F.getSize()||F.getWidth()||F.getHeight()||(this.setSize(),this.JSC$17247_setHeight(),this.JSC$17247_setWidth(),Qm(this)));return qE.superClass_.build.call(this)};var YDT=/^[^\/]*\/\//,zv=function(F,W){W=W===void 0?!1:W;this.original_=F;this.originalPrefix_="";(F=this.original_.match(YDT))&&F[0]?(this.originalPrefix_=F[0],F=this.originalPrefix_.match(/\w+/)?this.original_:"http://"+this.original_.substring(this.originalPrefix_.length)):F="http://"+this.original_;this.uri_=_.y$(F,!0);this.isFreeformUrl_=W;this.JSC$17251_valid_=!0;this.obfuscated_=!1},wMg=function(F,W){F.JSC$17253_pathPrefix_=F.JSC$17253_pathPrefix_?F.JSC$17253_pathPrefix_+("/"+W):W},tQ=function(F){if(F.JSC$17253_components_==
void 0){var W=F.uri_.getPath().substring(1);
F.JSC$17253_pathPrefix_=null;if(F.isFreeformUrl_){F.JSC$17253_components_=[];if((W.match(/=/g)||[]).length>1)return F.JSC$17251_valid_=!1,F.JSC$17253_components_;var E=W.indexOf("=");E!=-1?(F.JSC$17253_components_.push(W.substr(0,E)),F.JSC$17253_components_.push(W.substr(E+1))):F.JSC$17253_components_.push(W);return F.JSC$17253_components_}F.JSC$17253_components_=W.split("/");W=F.JSC$17253_components_.length;W>2&&F.JSC$17253_components_[0]=="u"&&(wMg(F,F.JSC$17253_components_[0]+"/"+F.JSC$17253_components_[1]),
F.JSC$17253_components_.shift(),F.JSC$17253_components_.shift(),W-=2);if(W==0||W==4||W>7)return F.JSC$17251_valid_=!1,F.JSC$17253_components_;if(W==2)wMg(F,F.JSC$17253_components_[0]);else if(F.JSC$17253_components_[0]=="image")wMg(F,F.JSC$17253_components_[0]);else if(W==7||W==3)return F.JSC$17251_valid_=!1,F.JSC$17253_components_;if(W<=3){F.obfuscated_=!0;W==3&&(wMg(F,F.JSC$17253_components_[1]),F.JSC$17253_components_.shift(),--W);--W;E=F.JSC$17253_components_[W];var h=E.indexOf("=");h!=-1&&(F.JSC$17253_components_[W]=
E.substr(0,h),F.JSC$17253_components_.push(E.substr(h+1)))}}return F.JSC$17253_components_};
zv.prototype.isValid=function(){tQ(this);return this.JSC$17251_valid_};
zv.prototype.isObfuscated=function(){tQ(this);return this.obfuscated_};
var uh6=function(F){tQ(F);return F.isFreeformUrl_},C5=function(F){tQ(F);
F.JSC$17253_pathPrefix_==void 0&&(F.JSC$17253_pathPrefix_=null);return F.JSC$17253_pathPrefix_},SDg=function(F){switch(tQ(F).length){case 7:return!0;
case 6:return C5(F)==null;case 5:return!1;case 3:return!0;case 2:return C5(F)==null;case 1:return!1;default:return!1}},BL=function(F,W){if(uh6(F))a:{switch(W){case 7:W=0;
break;case 4:if(!SDg(F)){F=null;break a}W=1;break;default:F=null;break a}F=tQ(F)[W]}else if(F.isObfuscated())a:{var E=C5(F)!=null?1:0;switch(W){case 6:W=E;break;case 4:if(!SDg(F)){F=null;break a}W=1+E;break;default:F=null;break a}F=tQ(F)[W]}else a:{E=C5(F)!=null?1:0;switch(W){case 0:W=E;break;case 1:W=1+E;break;case 2:W=2+E;break;case 3:W=3+E;break;case 4:if(!SDg(F)){F=null;break a}W=4+E;break;case 5:W=SDg(F)?1:0;W=4+E+W;break;default:F=null;break a}F=tQ(F)[W]}return F};
zv.prototype.getOptions=function(){this.options_==void 0&&(this.options_=BL(this,4));return this.options_};var UW6=function(){};
UW6.prototype.parse=function(F,W){return new N8T(F,W===void 0?!1:W)};
var N8T=function(F,W){zv.call(this,F,W===void 0?!1:W)};
_.k(N8T,zv);_.Ma($m,qE);var Vrg;$m.prototype.isValid=function(){return this.parsedImageUrl_.isValid()};
$m.prototype.build=function(){if(!this.parsedImageUrl_.isValid())return this.parsedImageUrl_.original_;var F=$m.superClass_.build.call(this),W=[];C5(this.parsedImageUrl_)!=null&&W.push(C5(this.parsedImageUrl_));var E=uh6(this.parsedImageUrl_);if(this.parsedImageUrl_.isObfuscated()){var h=this.parsedImageUrl_;h.obfuscatedData_==void 0&&(h.obfuscatedData_=BL(h,6));W.push(h.obfuscatedData_+(F?"="+F:""))}else if(E){h=W.push;var d=this.parsedImageUrl_;d.freeformUrlPath_===void 0&&(d.freeformUrlPath_=BL(d,
7));h.call(W,d.freeformUrlPath_);F&&W.push(F)}else h=W.push,d=this.parsedImageUrl_,d.obfuscatedGaiaId_==void 0&&(d.obfuscatedGaiaId_=BL(d,0)),h.call(W,d.obfuscatedGaiaId_),h=W.push,d=this.parsedImageUrl_,d.photoId_==void 0&&(d.photoId_=BL(d,1)),h.call(W,d.photoId_),h=W.push,d=this.parsedImageUrl_,d.imageVersion_==void 0&&(d.imageVersion_=BL(d,2)),h.call(W,d.imageVersion_),h=W.push,d=this.parsedImageUrl_,d.signature_==void 0&&(d.signature_=BL(d,3)),h.call(W,d.signature_),F&&W.push(F),F=W.push,h=this.parsedImageUrl_,
h.filename_==void 0&&(h.filename_=BL(h,5)),F.call(W,h.filename_);W=E?W.join("="):W.join("/");W=_.y$(this.protocolPrefix_+this.JSC$17259_domain_+"/"+W+(this.JSC$17259_query_?"?"+this.JSC$17259_query_:"")).toString();W.startsWith("%3a//")&&(W=W.replace("%3a//","://"));return W};var pMK=_.Fc(["viewBox"]),mD6=_.Fc(["width"]),KTF=_.Fc(["height"]),FKO=_.Fc(["fill"]),WKq=_.Fc(["id"]),EZx=_.Fc(["x"]),hHg=_.Fc(["y"]);evN.prototype.getLength=function(){return this.parsedData.length};
evN.prototype.write=function(F){for(var W=0,E=this.parsedData.length;W<E;W++)F.put(this.parsedData[W],8)};
var B8F=function(F,W){var E=new evN(W);F.dataList.push(E);E=F.errorCorrectLevel;var h=1,d=encodeURI(W).toString().replace(/%[0-9a-fA-F]{2}/g,"a");W=d.length+(d.length!=W?3:0);d=0;for(var V=vL.length;d<=V;d++){var R=0;switch(E){case 1:R=vL[d][0];break;case 0:R=vL[d][1];break;case 3:R=vL[d][2];break;case 2:R=vL[d][3]}if(W<=R)break;else h++}if(h>vL.length)throw Error("uk");F.typeNumber=h;F.dataCache=null};
MrF.prototype.isDark=function(F,W){if(F<0||this.moduleCount<=F||W<0||this.moduleCount<=W)throw Error("mk`"+F+"`"+W);return this.modules[F][W]};
for(var vxK=function(F,W,E){F.moduleCount=F.typeNumber*4+17;F.modules=Array(F.moduleCount);for(var h=0;h<F.moduleCount;h++){F.modules[h]=Array(F.moduleCount);for(var d=0;d<F.moduleCount;d++)F.modules[h][d]=null}dGN(F,0,0);dGN(F,F.moduleCount-7,0);dGN(F,0,F.moduleCount-7);h=Nr6[F.typeNumber-1];for(d=0;d<h.length;d++)for(var V=0;V<h.length;V++){var R=h[d],M=h[V];if(F.modules[R][M]==null)for(var g=-2;g<=2;g++)for(var t=-2;t<=2;t++)F.modules[R+g][M+t]=g==-2||g==2||t==-2||t==2||g==0&&t==0?!0:!1}for(h=
8;h<F.moduleCount-8;h++)F.modules[h][6]==null&&(F.modules[h][6]=h%2==0);for(h=8;h<F.moduleCount-8;h++)F.modules[6][h]==null&&(F.modules[6][h]=h%2==0);h=F.errorCorrectLevel<<3|E;for(d=h<<10;IX(d)-IX(1335)>=0;)d^=1335<<IX(d)-IX(1335);h=(h<<10|d)^21522;for(d=0;d<15;d++)V=!W&&(h>>d&1)==1,d<6?F.modules[d][8]=V:d<8?F.modules[d+1][8]=V:F.modules[F.moduleCount-15+d][8]=V;for(d=0;d<15;d++)V=!W&&(h>>d&1)==1,d<8?F.modules[8][F.moduleCount-d-1]=V:d<9?F.modules[8][15-d-1+1]=V:F.modules[8][15-d-1]=V;F.modules[F.moduleCount-
8][8]=!W;if(F.typeNumber>=7){h=F.typeNumber;for(d=h<<12;IX(d)-IX(7973)>=0;)d^=7973<<IX(d)-IX(7973);h=h<<12|d;for(d=0;d<18;d++)V=!W&&(h>>d&1)==1,F.modules[Math.floor(d/3)][d%3+F.moduleCount-8-3]=V;for(d=0;d<18;d++)V=!W&&(h>>d&1)==1,F.modules[d%3+F.moduleCount-8-3][Math.floor(d/3)]=V}if(F.dataCache==null){d=F.typeNumber;V=F.dataList;W=F.errorCorrectLevel;h=V3x(d,W);if(h==void 0)throw Error("tk`"+d+"`"+W);R=h.length/3;W=[];for(M=0;M<R;M++){g=h[M*3];t=h[M*3+1];for(var C=h[M*3+2],B=0;B<g;B++)W.push(new gxN(t,
C))}h=new Qk8;for(R=0;R<V.length;R++)M=V[R],h.put(M.mode,4),h.put(M.getLength(),UGO(M.mode,d)),M.write(h);for(R=d=0;R<W.length;R++)d+=W[R].dataCount;if(h.length>d*8)throw Error("nk`"+h.length+"`"+d*8);for(h.length+4<=d*8&&h.put(0,4);h.length%8!=0;)RHP(h,!1);for(;!(h.length>=d*8);){h.put(236,8);if(h.length>=d*8)break;h.put(17,8)}V=d=t=0;R=Array(W.length);M=Array(W.length);for(g=0;g<W.length;g++){B=W[g].dataCount;var I=W[g].totalCount-B;d=Math.max(d,B);V=Math.max(V,I);R[g]=Array(B);for(C=0;C<R[g].length;C++)R[g][C]=
255&h.buffer[C+t];t+=B;C=I;B=new Z3([1],0);for(I=0;I<C;I++)B=B.multiply(new Z3([1,eH6(I)],0));C=B;B=(new Z3(R[g],C.getLength()-1)).mod(C);M[g]=Array(C.getLength()-1);for(C=0;C<M[g].length;C++)I=C+B.getLength()-M[g].length,M[g][C]=I>=0?B.get(I):0}for(C=h=0;C<W.length;C++)h+=W[C].totalCount;h=Array(h);for(C=t=0;C<d;C++)for(g=0;g<W.length;g++)C<R[g].length&&(h[t++]=R[g][C]);for(C=0;C<V;C++)for(g=0;g<W.length;g++)C<M[g].length&&(h[t++]=M[g][C]);F.dataCache=h}W=F.dataCache;h=-1;d=F.moduleCount-1;V=7;R=
0;for(M=F.moduleCount-1;M>0;M-=2)for(M==6&&M--;;){for(g=0;g<2;g++)F.modules[d][M-g]==null&&(t=!1,R<W.length&&(t=(W[R]>>>V&1)==1),M3K(E,d,M-g)&&(t=!t),F.modules[d][M-g]=t,V--,V==-1&&(R++,V=7));d+=h;if(d<0||F.moduleCount<=d){d-=h;h=-h;break}}},dGN=function(F,W,E){for(var h=-1;h<=7;h++)if(!(W+h<=-1||F.moduleCount<=W+h))for(var d=-1;d<=7;d++)E+d<=-1||F.moduleCount<=E+d||(F.modules[W+h][E+d]=0<=h&&h<=6&&(d==0||d==6)||0<=d&&d<=6&&(h==0||h==6)||2<=h&&h<=4&&2<=d&&d<=4?!0:!1)},IUq=function(F){for(var W=0,
E=0,h=0;h<8;h++){vxK(F,!0,h);
var d=F;for(var V=d.moduleCount,R=0,M=0;M<V;M++)for(var g=0;g<V;g++){for(var t=0,C=d.isDark(M,g),B=-1;B<=1;B++)if(!(M+B<0||V<=M+B))for(var I=-1;I<=1;I++)g+I<0||V<=g+I||(B!=0||I!=0)&&C==d.isDark(M+B,g+I)&&t++;t>5&&(R+=3+t-5)}for(M=0;M<V-1;M++)for(g=0;g<V-1;g++)if(t=0,d.isDark(M,g)&&t++,d.isDark(M+1,g)&&t++,d.isDark(M,g+1)&&t++,d.isDark(M+1,g+1)&&t++,t==0||t==4)R+=3;for(M=0;M<V;M++)for(g=0;g<V-6;g++)d.isDark(M,g)&&!d.isDark(M,g+1)&&d.isDark(M,g+2)&&d.isDark(M,g+3)&&d.isDark(M,g+4)&&!d.isDark(M,g+5)&&
d.isDark(M,g+6)&&(R+=40);for(g=0;g<V;g++)for(M=0;M<V-6;M++)d.isDark(M,g)&&!d.isDark(M+1,g)&&d.isDark(M+2,g)&&d.isDark(M+3,g)&&d.isDark(M+4,g)&&!d.isDark(M+5,g)&&d.isDark(M+6,g)&&(R+=40);for(g=t=0;g<V;g++)for(M=0;M<V;M++)d.isDark(M,g)&&t++;d=R+=Math.abs(100*t/V/V-50)/5*10;if(h==0||W>d)W=d,E=h}return E},Nr6=[[],
[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,
154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],IX=function(F){for(var W=0;F!=0;)W++,F>>>=1;return W},M3K=function(F,W,E){switch(F){case 0:return(W+E)%2==0;
case 1:return W%2==0;case 2:return E%3==0;case 3:return(W+E)%3==0;case 4:return(Math.floor(W/2)+Math.floor(E/3))%2==0;case 5:return W*E%2+W*E%3==0;case 6:return(W*E%2+W*E%3)%2==0;case 7:return(W*E%3+(W+E)%2)%2==0;default:throw Error("ok`"+F);}},UGO=function(F,W){if(1<=W&&W<10)switch(F){case 1:return 10;
case 2:return 9;case 4:return 8;case 8:return 8;default:throw Error("pk`"+F);}else if(W<27)switch(F){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw Error("pk`"+F);}else if(W<41)switch(F){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw Error("pk`"+F);}else throw Error("qk`"+W);},cL=function(F){if(F<1)throw Error("rk`"+F);
return gZw[F]},eH6=function(F){for(;F<0;)F+=255;
for(;F>=256;)F-=255;return Di[F]},Di=Array(256),gZw=Array(256),QeF=0;QeF<8;QeF++)Di[QeF]=1<<QeF;
for(var xH=8;xH<256;xH++)Di[xH]=Di[xH-4]^Di[xH-5]^Di[xH-6]^Di[xH-8];for(var zHP=0;zHP<255;zHP++)gZw[Di[zHP]]=zHP;Z3.prototype.get=function(F){return this.num[F]};
Z3.prototype.getLength=function(){return this.num.length};
Z3.prototype.multiply=function(F){for(var W=Array(this.getLength()+F.getLength()-1),E=0;E<this.getLength();E++)for(var h=0;h<F.getLength();h++)W[E+h]^=eH6(cL(this.get(E))+cL(F.get(h)));return new Z3(W,0)};
Z3.prototype.mod=function(F){if(this.getLength()-F.getLength()<0)return this;for(var W=cL(this.get(0))-cL(F.get(0)),E=Array(this.getLength()),h=0;h<this.getLength();h++)E[h]=this.get(h);for(h=0;h<F.getLength();h++)E[h]^=eH6(cL(F.get(h))+W);return(new Z3(E,0)).mod(F)};
var t3O=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,
20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12,7,37,13],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,
50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,
118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,
48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,
25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],V3x=function(F,W){switch(W){case 1:return t3O[(F-1)*4];case 0:return t3O[(F-1)*4+1];case 3:return t3O[(F-1)*4+2];case 2:return t3O[(F-1)*4+3]}};
Qk8.prototype.get=function(F){return(this.buffer[Math.floor(F/8)]>>>7-F%8&1)==1};
Qk8.prototype.put=function(F,W){for(var E=0;E<W;E++)RHP(this,(F>>>W-E-1&1)==1)};
var RHP=function(F,W){var E=Math.floor(F.length/8);F.buffer.length<=E&&F.buffer.push(0);W&&(F.buffer[E]|=128>>>F.length%8);F.length++},vL=[[17,
14,11,7],[32,26,20,14],[53,42,32,24],[78,62,46,34],[106,84,60,44],[134,106,74,58],[154,122,86,64],[192,152,108,84],[230,180,130,98],[271,213,151,119],[321,251,177,137],[367,287,203,155],[425,331,241,177],[458,362,258,194],[520,412,292,220],[586,450,322,250],[644,504,364,280],[718,560,394,310],[792,624,442,338],[858,666,482,382],[929,711,509,403],[1003,779,565,439],[1091,857,611,461],[1171,911,661,511],[1273,997,715,535],[1367,1059,751,593],[1465,1125,805,625],[1528,1190,868,658],[1628,1264,908,698],
[1732,1370,982,742],[1840,1452,1030,790],[1952,1538,1112,842],[2068,1628,1168,898],[2188,1722,1228,958],[2303,1809,1283,983],[2431,1911,1351,1051],[2563,1989,1423,1093],[2699,2099,1499,1139],[2809,2213,1579,1219],[2953,2331,1663,1273]],CIT=function(){var F=function(W,E){this.JSC$17279__el=W;this.JSC$17279__htOption=E};
F.prototype.draw=function(W){function E(C,B){C=document.createElementNS("http://www.w3.org/2000/svg",C);for(var I in B)B.hasOwnProperty(I)&&(I==="href"?_.gdN(C,B[I]):_.j9([_.SJ(pMK),_.SJ(mD6),_.SJ(KTF),_.SJ(FKO),_.SJ(WKq),_.SJ(EZx),_.SJ(hHg)],C,I,B[I]));return C}
var h=this.JSC$17279__htOption,d=this.JSC$17279__el,V=W.moduleCount;this.clear();var R=E("svg",{viewBox:"0 0 "+String(V)+" "+String(V),width:"100%",height:"100%",fill:h.colorLight,"xmlns:xlink":"http://www.w3.org/1999/xlink"});d.appendChild(R);R.appendChild(E("rect",{fill:h.colorLight,width:"100%",height:"100%"}));R.appendChild(E("rect",{fill:h.colorDark,width:"1",height:"1",id:"template"}));for(var M=0;M<V;M++)for(var g=0;g<V;g++)if(W.isDark(M,g)){var t=E("use",{x:String(M),y:String(g),href:"#template"});
R.appendChild(t)}};
F.prototype.clear=function(){for(;this.JSC$17279__el.hasChildNodes();)this.JSC$17279__el.removeChild(this.JSC$17279__el.lastChild)};
return F}(),trO=document.documentElement.tagName.toLowerCase()==="svg"?CIT:typeof CanvasRenderingContext2D!="undefined"?function(){var F=function(W,E){this._bIsPainted=!1;
zvK();this.JSC$17279__htOption=E;this._elCanvas=document.createElement("canvas");this._elCanvas.width=E.width;this._elCanvas.height=E.height;W.appendChild(this._elCanvas);this.JSC$17279__el=W;this._oContext=this._elCanvas.getContext("2d");this._bIsPainted=!1;this._elImage=document.createElement("img");this._elImage.alt="Scan me!";this._elImage.style.display="none";this.JSC$17279__el.appendChild(this._elImage);this._bSupportDataURI=null};
F.prototype._onMakeImage=function(){var W=this._elCanvas.toDataURL("image/png");this._elImage.src=W;this._elImage.style.display="block";this._elCanvas.style.display="none"};
F.prototype._safeSetDataURI=function(W,E){var h=this;h._fFail=E;h._fSuccess=W;h._bSupportDataURI===null?(W=_.Cr("IMG"),E=function(){h._bSupportDataURI=!1;h._fFail&&h._fFail.call(h)},W.onabort=E,W.onerror=E,W.onload=function(){h._bSupportDataURI=!0;
h._fSuccess&&h._fSuccess.call(h)},W.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg=="):h._bSupportDataURI===!0&&h._fSuccess?h._fSuccess.call(h):h._bSupportDataURI===!1&&h._fFail&&h._fFail.call(h)};
F.prototype.draw=function(W){var E=this._oContext,h=this.JSC$17279__htOption,d=W.moduleCount,V=h.width/d,R=h.height/d,M=Math.round(V),g=Math.round(R);this._elImage.style.display="none";this.clear();for(var t=0;t<d;t++)for(var C=0;C<d;C++){var B=W.isDark(t,C),I=C*V,x=t*R;E.strokeStyle=B?h.colorDark:h.colorLight;E.lineWidth=1;E.fillStyle=B?h.colorDark:h.colorLight;E.fillRect(I,x,V,R);E.strokeRect(Math.floor(I)+.5,Math.floor(x)+.5,M,g);E.strokeRect(Math.ceil(I)-.5,Math.ceil(x)-.5,M,g)}this._bIsPainted=
!0};
F.prototype.makeImage=function(){this._bIsPainted&&this._safeSetDataURI(this._onMakeImage,function(){})};
F.prototype.clear=function(){this._oContext.clearRect(0,0,this._elCanvas.width,this._elCanvas.height);this._bIsPainted=!1};
F.prototype.round=function(W){return W?Math.floor(W*1E3)/1E3:W};
return F}():function(){var F=function(W,E){this.JSC$17279__el=W;
this.JSC$17279__htOption=E};
F.prototype.draw=function(W){for(var E=this.JSC$17279__htOption,h=this.JSC$17279__el,d=W.moduleCount,V=Math.floor(E.width/d),R=Math.floor(E.height/d),M=['<table style="border:0;border-collapse:collapse;">'],g=0;g<d;g++){M.push("<tr>");for(var t=0;t<d;t++)M.push('<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:'+V+"px;height:"+R+"px;background-color:"+(W.isDark(g,t)?E.colorDark:E.colorLight)+';"></td>');M.push("</tr>")}M.push("</table>");W=M.join("");W=_.kza(_.sic,W);_.yK(h,W);
W=h.childNodes[0];d=(E.width-W.offsetWidth)/2;V=(E.height-W.offsetHeight)/2;d>0&&V>0&&(W.style.margin=V+"px "+d+"px")};
F.prototype.clear=function(){this.JSC$17279__el.textContent=""};
return F}();
cR8.prototype.makeImage=function(){typeof this._oDrawing.makeImage=="function"&&(!this.JSC$17282__android||this.JSC$17282__android>=3)&&this._oDrawing.makeImage()};
cR8.prototype.clear=function(){this._oDrawing.clear()};
_.EY.QRCode=cR8;var CVT={cellSize:16,cellStyle:2,relativeCircleSize:.9375,color:"white",backgroundColor:"black",autoClear:!0,logoPadding:1,padding:0,borderRadius:0};var kH=function(){};
kH.prototype.stringify=function(F){return _.EY.JSON.stringify(F,void 0)};
kH.prototype.parse=function(F){return _.EY.JSON.parse(F,void 0)};var Br6=function(){_.xU.call(this,"z")};
_.Ma(Br6,_.xU);var vZ6=function(){_.xU.call(this,"y")};
_.Ma(vZ6,_.xU);var Io8=null,cCg=function(){return Io8=Io8||new _.qo},DGg=function(F){_.xU.call(this,"serverreachability",F)};
_.Ma(DGg,_.xU);var AQ=function(F){var W=cCg();W.dispatchEvent(new DGg(W,F))},xGx=function(F){_.xU.call(this,"statevent",F)};
_.Ma(xGx,_.xU);var sH=function(F){var W=cCg();W.dispatchEvent(new xGx(W,F))},kG6=function(F,W,E,h){_.xU.call(this,"timingevent",F);
this.size=W;this.rtt=E;this.retries=h};
_.Ma(kG6,_.xU);var AC$=function(F,W,E){var h=cCg();h.dispatchEvent(new kG6(h,F,W,E))},L5=function(F,W){if(typeof F!=="function")throw Error("vk");
return _.EY.setTimeout(function(){F()},W)};var qL=function(){this.redactEnabled_=!0};
qL.prototype.disableRedact=function(){this.redactEnabled_=!1};
var seu=function(F,W,E,h,d,V){F.info(function(){if(F.redactEnabled_)if(V){var R="";for(var M=V.split("&"),g=0;g<M.length;g++){var t=M[g].split("=");if(t.length>1){var C=t[0];t=t[1];var B=C.split("_");R=B.length>=2&&B[1]=="type"?R+(C+"="+t+"&"):R+(C+"=redacted&")}}}else R=null;else R=V;return"XMLHTTP REQ ("+h+") [attempt "+d+"]: "+W+"\n"+E+"\n"+R})},LK$=function(F,W,E,h,d,V,R){F.info(function(){return"XMLHTTP RESP ("+h+") [ attempt "+d+"]: "+W+"\n"+E+"\n"+V+" "+R})},$H=function(F,W,E,h){F.info(function(){return"XMLHTTP TEXT ("+
W+"): "+qj6(F,E)+(h?" "+h:"")})},$Gu=function(F,W){F.info(function(){return"TIMEOUT: "+W})};
qL.prototype.debug=function(){};
qL.prototype.info=function(){};
qL.prototype.warning=function(){};
var qj6=function(F,W){if(!F.redactEnabled_)return W;if(!W)return null;try{var E=JSON.parse(W);if(E)for(var h=0;h<E.length;h++)if(Array.isArray(E[h])){var d=E[h];if(!(d.length<2)){var V=d[1];if(Array.isArray(V)&&!(V.length<1)){var R=V[0];if(R!="noop"&&R!="stop"&&R!="close")for(var M=1;M<V.length;M++)V[M]=""}}}return(0,_.ad)(E)}catch(g){return F.debug("Exception parsing expected JS array - probably was not JS"),W}};var Zi=function(F,W,E,h,d){this.JSC$17304_channel_=F;this.JSC$17304_channelDebug_=W;this.sid_=E;this.JSC$17304_rid_=h;this.JSC$17304_retryId_=d||1;this.JSC$17304_eventHandler_=new _.hR(this);this.timeout_=45E3;this.JSC$17304_extraHeaders_=null;this.JSC$17304_successful_=!1;this.JSC$17304_postData_=this.JSC$17304_requestUri_=this.JSC$17304_baseUri_=this.JSC$17304_type_=this.JSC$17304_requestStartTime_=this.JSC$17304_watchDogTimeoutTime_=this.JSC$17304_watchDogTimerId_=null;this.JSC$17304_pendingMessages_=
[];this.JSC$17304_xmlHttp_=null;this.JSC$17304_xmlHttpChunkStart_=0;this.JSC$17304_lastError_=this.JSC$17304_verb_=null;this.JSC$17304_lastStatusCode_=-1;this.JSC$17304_cancelled_=!1;this.JSC$17304_readyStateChangeThrottleMs_=0;this.JSC$17304_readyStateChangeThrottle_=null;this.firstByteReceived_=this.initialResponseDecoded_=this.decodeInitialResponse_=this.decodeChunks_=!1;this.fetchResponseState_=new Z$P},Z$P=function(){this.textDecoder=null;
this.responseBuffer="";this.responseArrivedForFetch=!1},Xy$=function(F,W){switch(F){case 0:return"Non-200 return code ("+W+")";
case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},H$6={},PVq={};
Zi.prototype.setTimeout=function(F){this.timeout_=F};
var ao$=function(F,W,E){F.JSC$17304_type_=1;F.JSC$17304_baseUri_=_.zU(W.clone());F.JSC$17304_postData_=E;F.decodeChunks_=!0;JC6(F,null)},JC6=function(F,W){F.JSC$17304_requestStartTime_=Date.now();
foP(F);F.JSC$17304_requestUri_=F.JSC$17304_baseUri_.clone();Mq(F.JSC$17304_requestUri_,"t",F.JSC$17304_retryId_);F.JSC$17304_xmlHttpChunkStart_=0;var E=F.JSC$17304_channel_.JSC$17323_supportsCrossDomainXhrs_;F.fetchResponseState_=new Z$P;F.JSC$17304_xmlHttp_=O$F(F.JSC$17304_channel_,E?W:null,!F.JSC$17304_postData_);F.JSC$17304_readyStateChangeThrottleMs_>0&&(F.JSC$17304_readyStateChangeThrottle_=new _.Nv((0,_.kj)(F.JSC$17308_xmlHttpHandler_,F,F.JSC$17304_xmlHttp_),F.JSC$17304_readyStateChangeThrottleMs_));
F.JSC$17304_eventHandler_.listen(F.JSC$17304_xmlHttp_,"readystatechange",F.JSC$17308_readyStateChangeHandler_);W=F.JSC$17304_extraHeaders_?_.xd.clone(F.JSC$17304_extraHeaders_):{};F.JSC$17304_postData_?(F.JSC$17304_verb_||(F.JSC$17304_verb_="POST"),W["Content-Type"]="application/x-www-form-urlencoded",F.JSC$17304_xmlHttp_.send(F.JSC$17304_requestUri_,F.JSC$17304_verb_,F.JSC$17304_postData_,W)):(F.JSC$17304_verb_="GET",F.JSC$17304_xmlHttp_.send(F.JSC$17304_requestUri_,F.JSC$17304_verb_,null,W));AQ(1);
seu(F.JSC$17304_channelDebug_,F.JSC$17304_verb_,F.JSC$17304_requestUri_,F.JSC$17304_rid_,F.JSC$17304_retryId_,F.JSC$17304_postData_)};
Zi.prototype.JSC$17308_readyStateChangeHandler_=function(F){F=F.target;var W=this.JSC$17304_readyStateChangeThrottle_;W&&_.Os(F)==3?(this.JSC$17304_channelDebug_.debug("Throttling readystatechange."),W.fire()):this.JSC$17308_xmlHttpHandler_(F)};
Zi.prototype.JSC$17308_xmlHttpHandler_=function(F){try{F==this.JSC$17304_xmlHttp_?b$O(this):this.JSC$17304_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(W){this.JSC$17304_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_"),lox(this)}finally{}};
var b$O=function(F){var W=_.Os(F.JSC$17304_xmlHttp_),E=F.JSC$17304_xmlHttp_.JSC$7701_lastErrorCode_,h=F.JSC$17304_xmlHttp_.getStatus();if(!(W<3||W==3&&!lox(F))){F.JSC$17304_cancelled_||W!=4||E==7||(E==8||h<=0?AQ(3):AQ(2));nZ6(F);var d=F.JSC$17304_xmlHttp_.getStatus();F.JSC$17304_lastStatusCode_=d;E=yC6(F);lox(F)||F.JSC$17304_channelDebug_.debug(function(){return"No response text for uri "+F.JSC$17304_requestUri_+" status "+d});
F.JSC$17304_successful_=d==200;LK$(F.JSC$17304_channelDebug_,F.JSC$17304_verb_,F.JSC$17304_requestUri_,F.JSC$17304_rid_,F.JSC$17304_retryId_,W,d);if(F.JSC$17304_successful_){if(F.decodeInitialResponse_&&!F.initialResponseDecoded_)if(h=jeK(F))$H(F.JSC$17304_channelDebug_,F.JSC$17304_rid_,h,"Initial handshake response via X-HTTP-Initial-Response"),F.initialResponseDecoded_=!0,i$g(F,h);else{F.JSC$17304_successful_=!1;F.JSC$17304_lastError_=3;sH(12);F.JSC$17304_channelDebug_.warning("XMLHTTP Missing X_HTTP_INITIAL_RESPONSE ("+
F.JSC$17304_rid_+")");XK(F);HL(F);return}F.decodeChunks_?rCg(F,W,E):($H(F.JSC$17304_channelDebug_,F.JSC$17304_rid_,E,null),i$g(F,E));W==4&&XK(F);F.JSC$17304_successful_&&!F.JSC$17304_cancelled_&&(W==4?Trq(F.JSC$17304_channel_,F):(F.JSC$17304_successful_=!1,foP(F)))}else j4T(F.JSC$17304_xmlHttp_),d==400&&E.indexOf("Unknown SID")>0?(F.JSC$17304_lastError_=3,sH(12),F.JSC$17304_channelDebug_.warning("XMLHTTP Unknown SID ("+F.JSC$17304_rid_+")")):(F.JSC$17304_lastError_=0,sH(13),F.JSC$17304_channelDebug_.warning("XMLHTTP Bad status "+
d+" ("+F.JSC$17304_rid_+")")),XK(F),HL(F)}},jeK=function(F){return F.JSC$17304_xmlHttp_&&(F=v4(F.JSC$17304_xmlHttp_,"X-HTTP-Initial-Response"))&&!_.Mw(F)?F:null},yC6=function(F){if(!oZ6(F))return F.JSC$17304_xmlHttp_.getResponseText();
var W=F.JSC$17304_xmlHttp_.getResponse();if(W==="")return"";var E="",h=W.length,d=_.Os(F.JSC$17304_xmlHttp_)==4;if(!F.fetchResponseState_.textDecoder){if(typeof TextDecoder==="undefined")return XK(F),HL(F),"";F.fetchResponseState_.textDecoder=new _.EY.TextDecoder}for(var V=0;V<h;V++)F.fetchResponseState_.responseArrivedForFetch=!0,E+=F.fetchResponseState_.textDecoder.decode(W[V],{stream:!(d&&V==h-1)});W.length=0;F.fetchResponseState_.responseBuffer+=E;F.JSC$17304_xmlHttpChunkStart_=0;return F.fetchResponseState_.responseBuffer},
lox=function(F){return F.JSC$17304_xmlHttp_?F.fetchResponseState_.responseArrivedForFetch?!0:!(!F.JSC$17304_xmlHttp_.getResponseText()&&!F.JSC$17304_xmlHttp_.getResponse()):!1},oZ6=function(F){return F.JSC$17304_xmlHttp_?F.JSC$17304_verb_=="GET"&&F.JSC$17304_type_!=2&&F.JSC$17304_channel_.usesFetchStreams_:!1},rCg=function(F,W,E){for(var h=!0,d;!F.JSC$17304_cancelled_&&F.JSC$17304_xmlHttpChunkStart_<E.length;)if(d=GGK(F,E),d==PVq){W==4&&(F.JSC$17304_lastError_=4,sH(14),h=!1);
$H(F.JSC$17304_channelDebug_,F.JSC$17304_rid_,null,"[Incomplete Response]");break}else if(d==H$6){F.JSC$17304_lastError_=4;sH(15);$H(F.JSC$17304_channelDebug_,F.JSC$17304_rid_,E,"[Invalid Chunk]");h=!1;break}else $H(F.JSC$17304_channelDebug_,F.JSC$17304_rid_,d,null),i$g(F,d);oZ6(F)&&F.JSC$17304_xmlHttpChunkStart_!=0&&(F.fetchResponseState_.responseBuffer=F.fetchResponseState_.responseBuffer.slice(F.JSC$17304_xmlHttpChunkStart_),F.JSC$17304_xmlHttpChunkStart_=0);W!=4||E.length!=0||F.fetchResponseState_.responseArrivedForFetch||
(F.JSC$17304_lastError_=1,sH(16),h=!1);F.JSC$17304_successful_=F.JSC$17304_successful_&&h;h?E.length>0&&!F.firstByteReceived_&&(F.firstByteReceived_=!0,W=F.JSC$17304_channel_,W.JSC$17323_backChannelRequest_==F&&W.detectBufferingProxy_&&!W.bpDetectionDone_&&(W.JSC$17323_channelDebug_.info("Great, no buffering proxy detected. Bytes received: "+E.length),YjT(W),W.bpDetectionDone_=!0,sH(11))):($H(F.JSC$17304_channelDebug_,F.JSC$17304_rid_,E,"[Invalid Chunked Response]"),XK(F),HL(F))},GGK=function(F,W){var E=
F.JSC$17304_xmlHttpChunkStart_,h=W.indexOf("\n",E);
if(h==-1)return PVq;E=Number(W.substring(E,h));if(isNaN(E))return H$6;h+=1;if(h+E>W.length)return PVq;W=W.slice(h,h+E);F.JSC$17304_xmlHttpChunkStart_=h+E;return W};
Zi.prototype.cancel=function(){this.JSC$17304_cancelled_=!0;XK(this)};
var foP=function(F){F.JSC$17304_watchDogTimeoutTime_=Date.now()+F.timeout_;wy6(F,F.timeout_)},wy6=function(F,W){if(F.JSC$17304_watchDogTimerId_!=null)throw Error("wk");
F.JSC$17304_watchDogTimerId_=L5((0,_.kj)(F.JSC$17308_onWatchDogTimeout_,F),W)},nZ6=function(F){F.JSC$17304_watchDogTimerId_&&(_.EY.clearTimeout(F.JSC$17304_watchDogTimerId_),F.JSC$17304_watchDogTimerId_=null)};
Zi.prototype.JSC$17308_onWatchDogTimeout_=function(){this.JSC$17304_watchDogTimerId_=null;var F=Date.now();F-this.JSC$17304_watchDogTimeoutTime_>=0?($Gu(this.JSC$17304_channelDebug_,this.JSC$17304_requestUri_),this.JSC$17304_type_!=2&&(AQ(3),sH(17)),XK(this),this.JSC$17304_lastError_=2,HL(this)):(this.JSC$17304_channelDebug_.warning("WatchDog timer called too early"),wy6(this,this.JSC$17304_watchDogTimeoutTime_-F))};
var HL=function(F){F.JSC$17304_channel_.state_==0||F.JSC$17304_cancelled_||Trq(F.JSC$17304_channel_,F)},XK=function(F){nZ6(F);
_.u5(F.JSC$17304_readyStateChangeThrottle_);F.JSC$17304_readyStateChangeThrottle_=null;F.JSC$17304_eventHandler_.removeAll();if(F.JSC$17304_xmlHttp_){var W=F.JSC$17304_xmlHttp_;F.JSC$17304_xmlHttp_=null;W.abort();W.dispose()}};
Zi.prototype.getLastError=function(){return this.JSC$17304_lastError_};
var i$g=function(F,W){try{var E=F.JSC$17304_channel_;if(E.state_!=0&&(E.JSC$17323_backChannelRequest_==F||uUF(E.forwardChannelRequestPool_,F)))if(!F.initialResponseDecoded_&&uUF(E.forwardChannelRequestPool_,F)&&E.state_==3){try{var h=E.wireCodec_.JSC$17318_parser_.parse(W)}catch(M){h=null}if(Array.isArray(h)&&h.length==3){W=h;if(W[0]==0)a:if(E.JSC$17323_channelDebug_.debug("Server claims our backchannel is missing."),E.JSC$17323_backChannelTimerId_)E.JSC$17323_channelDebug_.debug("But we are currently starting the request.");
else{if(E.JSC$17323_backChannelRequest_)if(E.JSC$17323_backChannelRequest_.JSC$17304_requestStartTime_+3E3<F.JSC$17304_requestStartTime_)Sj$(E),pyN(E);else break a;else E.JSC$17323_channelDebug_.warning("We do not have a BackChannel established");mGT(E);sH(18)}else{E.JSC$17323_lastPostResponseArrayId_=W[1];var d=E.JSC$17323_lastPostResponseArrayId_-E.JSC$17323_lastArrayId_;if(0<d){var V=W[2];E.JSC$17323_channelDebug_.debug(V+" bytes (in "+d+" arrays) are outstanding on the BackChannel");V<37500&&
E.enableStreaming_&&E.JSC$17323_backChannelRetryCount_==0&&!E.JSC$17323_deadBackChannelTimerId_&&(E.JSC$17323_deadBackChannelTimerId_=L5((0,_.kj)(E.JSC$17325_onBackChannelDead_,E),6E3))}}if(KKN(E.forwardChannelRequestPool_)<=1&&E.forwardChannelFlushedCallback_){try{E.forwardChannelFlushedCallback_()}catch(M){}E.forwardChannelFlushedCallback_=void 0}}else E.JSC$17323_channelDebug_.debug("Bad POST response data returned"),PL(E,11)}else if((F.initialResponseDecoded_||E.JSC$17323_backChannelRequest_==
F)&&Sj$(E),!_.Mw(W)){var R=E.wireCodec_.JSC$17318_parser_.parse(W);E.onInput_(R,F)}AQ(4)}catch(M){}};var FMq=function(F,W){this.JSC$17311_mapId=F;this.map=W;this.context=null};var WMT=function(F){this.maxPoolSizeConfigured_=F||10;_.EY.PerformanceNavigationTiming?(F=_.EY.performance.getEntriesByType("navigation"),F=F.length>0&&(F[0].nextHopProtocol=="hq"||F[0].nextHopProtocol=="h2")):F=!!(_.EY.chrome&&_.EY.chrome.loadTimes&&_.EY.chrome.loadTimes()&&_.EY.chrome.loadTimes().wasFetchedViaSpdy);this.JSC$17314_maxSize_=F?this.maxPoolSizeConfigured_:1;this.requestPool_=null;this.JSC$17314_maxSize_>1&&(this.requestPool_=new Set);this.JSC$17314_request_=null;this.JSC$17314_pendingMessages_=
[]},E48=function(F){return F.JSC$17314_request_?!0:F.requestPool_?F.requestPool_.size>=F.JSC$17314_maxSize_:!1},KKN=function(F){return F.JSC$17314_request_?1:F.requestPool_?F.requestPool_.size:0},uUF=function(F,W){return F.JSC$17314_request_?F.JSC$17314_request_==W:F.requestPool_?F.requestPool_.has(W):!1},hiw=function(F,W){F.requestPool_?F.requestPool_.add(W):F.JSC$17314_request_=W},dHx=function(F,W){F.JSC$17314_request_&&F.JSC$17314_request_==W?F.JSC$17314_request_=null:F.requestPool_&&F.requestPool_.has(W)&&
F.requestPool_.delete(W)};
WMT.prototype.cancel=function(){this.JSC$17314_pendingMessages_=Npx(this);if(this.JSC$17314_request_)this.JSC$17314_request_.cancel(),this.JSC$17314_request_=null;else if(this.requestPool_&&this.requestPool_.size!==0){for(var F=_.U(this.requestPool_.values()),W=F.next();!W.done;W=F.next())W.value.cancel();this.requestPool_.clear()}};
var Npx=function(F){if(F.JSC$17314_request_!=null)return F.JSC$17314_pendingMessages_.concat(F.JSC$17314_request_.JSC$17304_pendingMessages_);if(F.requestPool_!=null&&F.requestPool_.size!==0){var W=F.JSC$17314_pendingMessages_;F=_.U(F.requestPool_.values());for(var E=F.next();!E.done;E=F.next())W=W.concat(E.value.JSC$17304_pendingMessages_);return W}return _.Kb(F.JSC$17314_pendingMessages_)},VCK=function(F,W){F.JSC$17314_pendingMessages_=F.JSC$17314_pendingMessages_.concat(W)};var UH6=function(F,W){var E=new qL;E.debug("TestLoadImage: loading "+F);if(_.EY.Image){var h=new Image;h.onload=_.v5(JQ,E,"TestLoadImage: loaded",!0,W,h);h.onerror=_.v5(JQ,E,"TestLoadImage: error",!1,W,h);h.onabort=_.v5(JQ,E,"TestLoadImage: abort",!1,W,h);h.ontimeout=_.v5(JQ,E,"TestLoadImage: timeout",!1,W,h);_.EY.setTimeout(function(){if(h.ontimeout)h.ontimeout()},1E4);
h.src=F}else W(!1)},Ri$=function(F,W){var E=new qL,h=new AbortController,d=setTimeout(function(){h.abort();
JQ(E,"TestPingServer: timeout",!1,W)},1E4);
fetch(F,{signal:h.signal}).then(function(V){clearTimeout(d);V.ok?JQ(E,"TestPingServer: ok",!0,W):JQ(E,"TestPingServer: server error",!1,W)}).catch(function(){clearTimeout(d);
JQ(E,"TestPingServer: error",!1,W)})},JQ=function(F,W,E,h,d){try{F.debug(W),d&&(d.onload=null,d.onerror=null,d.onabort=null,d.ontimeout=null),h(E)}catch(V){}};var eiN=function(){this.JSC$17318_parser_=new kH},MC8=function(F,W,E){var h=E||"";
try{_.fqe(F,function(d,V){var R=d;_.NU(d)&&(R=(0,_.ad)(d));W.push(h+V+"="+encodeURIComponent(R))})}catch(d){throw W.push(h+"type="+encodeURIComponent("_badmap")),d;
}};var aX=function(F,W,E){return E&&E.internalChannelParams?E.internalChannelParams[F]||W:W},f5=function(F){this.serverVersion_=0;
this.JSC$17323_outgoingMaps_=[];this.JSC$17323_channelDebug_=new qL;this.JSC$17323_hostPrefix_=this.JSC$17323_backChannelUri_=this.JSC$17323_forwardChannelUri_=this.JSC$17323_path_=this.JSC$17323_backChannelRequest_=this.httpSessionId_=this.httpSessionIdParam_=this.JSC$17323_extraParams_=this.httpHeadersOverwriteParam_=this.initHeaders_=this.JSC$17323_extraHeaders_=null;this.JSC$17323_nextMapId_=this.JSC$17323_nextRid_=0;this.JSC$17323_failFast_=aX("failFast",!1,F);this.enableStreaming_=this.JSC$17323_deadBackChannelTimerId_=
this.JSC$17323_backChannelTimerId_=this.JSC$17323_forwardChannelTimerId_=this.handler_=null;this.allowStreamingMode_=!0;this.errorResponseStatusCode_=this.JSC$17323_lastPostResponseArrayId_=this.JSC$17323_lastArrayId_=-1;this.JSC$17323_backChannelAttemptId_=this.JSC$17323_backChannelRetryCount_=this.JSC$17323_forwardChannelRetryCount_=0;this.JSC$17323_baseRetryDelayMs_=aX("baseRetryDelayMs",5E3,F);this.JSC$17323_retryDelaySeedMs_=aX("retryDelaySeedMs",1E4,F);this.JSC$17323_forwardChannelMaxRetries_=
aX("forwardChannelMaxRetries",2,F);this.JSC$17323_forwardChannelRequestTimeoutMs_=aX("forwardChannelRequestTimeoutMs",2E4,F);this.JSC$17323_xmlHttpFactory_=F&&F.xmlHttpFactory||void 0;this.networkTestUrl_=F&&F.networkTestUrl||void 0;this.usesFetchStreams_=F&&F.useFetchStreams||!1;this.backChannelRequestTimeoutMs_=void 0;this.JSC$17323_supportsCrossDomainXhrs_=F&&F.supportsCrossDomainXhr||!1;this.sid_="";this.forwardChannelRequestPool_=new WMT(F&&F.concurrentRequestLimit);this.wireCodec_=new eiN;this.fastHandshake_=
F&&F.fastHandshake||!1;this.encodeInitMessageHeaders_=F&&F.encodeInitMessageHeaders||!1;this.fastHandshake_&&this.encodeInitMessageHeaders_&&(this.JSC$17323_channelDebug_.warning("Ignore encodeInitMessageHeaders because fastHandshake is set."),this.encodeInitMessageHeaders_=!1);this.blockingHandshake_=F&&F.blockingHandshake||!1;F&&F.disableRedact&&this.JSC$17323_channelDebug_.disableRedact();F&&F.forceLongPolling&&(this.allowStreamingMode_=!1);this.detectBufferingProxy_=!this.fastHandshake_&&this.allowStreamingMode_&&
F&&F.detectBufferingProxy||!1;this.longPollingTimeout_=void 0;F&&F.longPollingTimeout&&F.longPollingTimeout>0&&(this.longPollingTimeout_=F.longPollingTimeout);this.forwardChannelFlushedCallback_=void 0;this.handshakeRttMs_=0;this.bpDetectionDone_=!1;this.nonAckedMapsAtChannelClose_=this.bpDetectionTimerId_=null};
f5.prototype.JSC$17325_channelVersion_=8;f5.prototype.state_=1;
f5.prototype.connect=function(F,W,E,h){this.JSC$17323_channelDebug_.debug("connect()");sH(0);this.JSC$17323_path_=F;this.JSC$17323_extraParams_=W||{};E&&h!==void 0&&(this.JSC$17323_extraParams_.OSID=E,this.JSC$17323_extraParams_.OAID=h);this.enableStreaming_=this.allowStreamingMode_;this.JSC$17323_channelDebug_.debug("connectChannel_()");F=g4x(this,null,this.JSC$17323_path_);this.JSC$17323_channelDebug_.debug("GetForwardChannelUri: "+F);this.JSC$17323_forwardChannelUri_=F;Q7K(this)};
f5.prototype.disconnect=function(){this.JSC$17323_channelDebug_.debug("disconnect()");ziO(this);if(this.state_==3){var F=this.JSC$17323_nextRid_++,W=this.JSC$17323_forwardChannelUri_.clone();_.ig(W,"SID",this.sid_);_.ig(W,"RID",F);_.ig(W,"TYPE","terminate");OH(this,W);F=new Zi(this,this.JSC$17323_channelDebug_,this.sid_,F);F.JSC$17304_type_=2;F.JSC$17304_baseUri_=_.zU(W.clone());W=!1;if(_.EY.navigator&&_.EY.navigator.sendBeacon)try{W=_.EY.navigator.sendBeacon(F.JSC$17304_baseUri_.toString(),"")}catch(E){}!W&&
_.EY.Image&&((new Image).src=F.JSC$17304_baseUri_,W=!0);W||(F.JSC$17304_xmlHttp_=O$F(F.JSC$17304_channel_,null),F.JSC$17304_xmlHttp_.send(F.JSC$17304_baseUri_));F.JSC$17304_requestStartTime_=Date.now();foP(F)}tC6(this)};
var pyN=function(F){F.JSC$17323_backChannelRequest_&&(YjT(F),F.JSC$17323_backChannelRequest_.cancel(),F.JSC$17323_backChannelRequest_=null)},ziO=function(F){pyN(F);
F.JSC$17323_backChannelTimerId_&&(_.EY.clearTimeout(F.JSC$17323_backChannelTimerId_),F.JSC$17323_backChannelTimerId_=null);Sj$(F);F.forwardChannelRequestPool_.cancel();F.JSC$17323_forwardChannelTimerId_&&(typeof F.JSC$17323_forwardChannelTimerId_==="number"&&_.EY.clearTimeout(F.JSC$17323_forwardChannelTimerId_),F.JSC$17323_forwardChannelTimerId_=null)};
f5.prototype.getState=function(){return this.state_};
var Q7K=function(F){E48(F.forwardChannelRequestPool_)||F.JSC$17323_forwardChannelTimerId_||(F.JSC$17323_forwardChannelTimerId_=!0,_.ZZ(F.JSC$17325_onStartForwardChannelTimer_,F),F.JSC$17323_forwardChannelRetryCount_=0)},BpN=function(F,W){if(KKN(F.forwardChannelRequestPool_)>=F.forwardChannelRequestPool_.JSC$17314_maxSize_-(F.JSC$17323_forwardChannelTimerId_?1:0))return!1;
if(F.JSC$17323_forwardChannelTimerId_)return F.JSC$17323_channelDebug_.debug("Use the retry request that is already scheduled."),F.JSC$17323_outgoingMaps_=W.JSC$17304_pendingMessages_.concat(F.JSC$17323_outgoingMaps_),!0;if(F.state_==1||F.state_==2||F.JSC$17323_forwardChannelRetryCount_>=(F.JSC$17323_failFast_?0:F.JSC$17323_forwardChannelMaxRetries_))return!1;F.JSC$17323_channelDebug_.debug("Going to retry POST");F.JSC$17323_forwardChannelTimerId_=L5((0,_.kj)(F.JSC$17325_onStartForwardChannelTimer_,
F,W),CnF(F,F.JSC$17323_forwardChannelRetryCount_));F.JSC$17323_forwardChannelRetryCount_++;return!0};
f5.prototype.JSC$17325_onStartForwardChannelTimer_=function(F){if(this.JSC$17323_forwardChannelTimerId_)if(this.JSC$17323_forwardChannelTimerId_=null,this.JSC$17323_channelDebug_.debug("startForwardChannel_"),this.state_==1){if(!F){this.JSC$17323_channelDebug_.debug("open_()");this.JSC$17323_nextRid_=Math.floor(Math.random()*1E5);F=this.JSC$17323_nextRid_++;var W=new Zi(this,this.JSC$17323_channelDebug_,"",F),E=this.JSC$17323_extraHeaders_;this.initHeaders_&&(E?(E=_.xd.clone(E),_.xd.extend(E,this.initHeaders_)):
E=this.initHeaders_);this.httpHeadersOverwriteParam_!==null||this.encodeInitMessageHeaders_||(W.JSC$17304_extraHeaders_=E,E=null);var h;if(this.fastHandshake_)a:{for(var d=h=0;d<this.JSC$17323_outgoingMaps_.length;d++){b:{var V=this.JSC$17323_outgoingMaps_[d];if("__data__"in V.map&&(V=V.map.__data__,typeof V==="string")){V=V.length;break b}V=void 0}if(V===void 0)break;h+=V;if(h>4096){h=d;break a}if(h===4096||d===this.JSC$17323_outgoingMaps_.length-1){h=d+1;break a}}h=1E3}else h=1E3;h=v4K(this,W,h);
d=this.JSC$17323_forwardChannelUri_.clone();_.ig(d,"RID",F);_.ig(d,"CVER",22);this.httpSessionIdParam_&&_.ig(d,"X-HTTP-Session-Id",this.httpSessionIdParam_);OH(this,d);E&&(this.encodeInitMessageHeaders_?h="headers="+_.ro(j6K(E))+"&"+h:this.httpHeadersOverwriteParam_&&ixw(d,this.httpHeadersOverwriteParam_,E));hiw(this.forwardChannelRequestPool_,W);this.blockingHandshake_&&_.ig(d,"TYPE","init");this.fastHandshake_?(_.ig(d,"$req",h),_.ig(d,"SID","null"),W.decodeInitialResponse_=!0,ao$(W,d,null)):ao$(W,
d,h);this.state_=2}}else this.state_==3&&(F?I5K(this,F):this.JSC$17323_outgoingMaps_.length==0?this.JSC$17323_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):E48(this.forwardChannelRequestPool_)||(I5K(this),this.JSC$17323_channelDebug_.debug("startForwardChannel_ finished, sent request")))};
var I5K=function(F,W){var E;W?E=W.JSC$17304_rid_:E=F.JSC$17323_nextRid_++;var h=F.JSC$17323_forwardChannelUri_.clone();_.ig(h,"SID",F.sid_);_.ig(h,"RID",E);_.ig(h,"AID",F.JSC$17323_lastArrayId_);OH(F,h);F.httpHeadersOverwriteParam_&&F.JSC$17323_extraHeaders_&&ixw(h,F.httpHeadersOverwriteParam_,F.JSC$17323_extraHeaders_);E=new Zi(F,F.JSC$17323_channelDebug_,F.sid_,E,F.JSC$17323_forwardChannelRetryCount_+1);F.httpHeadersOverwriteParam_===null&&(E.JSC$17304_extraHeaders_=F.JSC$17323_extraHeaders_);W&&
(F.JSC$17323_outgoingMaps_=W.JSC$17304_pendingMessages_.concat(F.JSC$17323_outgoingMaps_));W=v4K(F,E,1E3);E.setTimeout(Math.round(F.JSC$17323_forwardChannelRequestTimeoutMs_*.5)+Math.round(F.JSC$17323_forwardChannelRequestTimeoutMs_*.5*Math.random()));hiw(F.forwardChannelRequestPool_,E);ao$(E,h,W)},OH=function(F,W){F.JSC$17323_extraParams_&&_.xd.forEach(F.JSC$17323_extraParams_,function(E,h){_.ig(W,h,E)});
F.handler_&&_.fqe({},function(E,h){_.ig(W,h,E)})},v4K=function(F,W,E){E=Math.min(F.JSC$17323_outgoingMaps_.length,E);
var h=F.handler_?(0,_.kj)(F.handler_.JSC$17329_badMapError,F.handler_,F):null;a:{for(var d=F.JSC$17323_outgoingMaps_,V=-1;;){var R=["count="+E];V==-1?E>0?(V=d[0].JSC$17311_mapId,R.push("ofs="+V)):V=0:R.push("ofs="+V);for(var M=!0,g=0;g<E;g++){var t=d[g].JSC$17311_mapId,C=d[g].map;t-=V;if(t<0)V=Math.max(0,d[g].JSC$17311_mapId-100),M=!1;else try{MC8(C,R,"req"+t+"_")}catch(B){h&&h(C)}}if(M){h=R.join("&");break a}}h=void 0}F=F.JSC$17323_outgoingMaps_.splice(0,E);W.JSC$17304_pendingMessages_=F;return h},
cBF=function(F){F.JSC$17323_backChannelRequest_||F.JSC$17323_backChannelTimerId_||(F.JSC$17323_backChannelAttemptId_=1,_.ZZ(F.JSC$17325_onStartBackChannelTimer_,F),F.JSC$17323_backChannelRetryCount_=0)},mGT=function(F){if(F.JSC$17323_backChannelRequest_||F.JSC$17323_backChannelTimerId_||F.JSC$17323_backChannelRetryCount_>=3)return!1;
F.JSC$17323_channelDebug_.debug("Going to retry GET");F.JSC$17323_backChannelAttemptId_++;F.JSC$17323_backChannelTimerId_=L5((0,_.kj)(F.JSC$17325_onStartBackChannelTimer_,F),CnF(F,F.JSC$17323_backChannelRetryCount_));F.JSC$17323_backChannelRetryCount_++;return!0};
f5.prototype.JSC$17325_onStartBackChannelTimer_=function(){this.JSC$17323_backChannelTimerId_=null;DHN(this);if(this.detectBufferingProxy_&&!this.bpDetectionDone_)if(this.JSC$17323_backChannelRequest_==null||this.handshakeRttMs_<=0)this.JSC$17323_channelDebug_.warning("Skip bpDetectionTimerId_ "+this.JSC$17323_backChannelRequest_+" "+this.handshakeRttMs_);else{var F=2*this.handshakeRttMs_;this.JSC$17323_channelDebug_.info("BP detection timer enabled: "+F);this.bpDetectionTimerId_=L5((0,_.kj)(this.onBpDetectionTimer_,
this),F)}};
f5.prototype.onBpDetectionTimer_=function(){if(this.bpDetectionTimerId_){this.bpDetectionTimerId_=null;this.JSC$17323_channelDebug_.info("BP detection timeout reached.");if(this.JSC$17323_backChannelRequest_.JSC$17304_xmlHttp_!=null){var F=this.JSC$17323_backChannelRequest_.JSC$17304_xmlHttp_.getResponseText();F&&this.JSC$17323_channelDebug_.warning("Timer should have been cancelled : "+F)}this.JSC$17323_channelDebug_.info("Buffering proxy detected and switch to long-polling!");this.enableStreaming_=
!1;this.bpDetectionDone_=!0;sH(10);pyN(this);DHN(this)}else this.JSC$17323_channelDebug_.warning("Invalid operation.")};
var YjT=function(F){F.bpDetectionTimerId_!=null&&(F.JSC$17323_channelDebug_.debug("Cancel the BP detection timer."),_.EY.clearTimeout(F.bpDetectionTimerId_),F.bpDetectionTimerId_=null)},DHN=function(F){F.JSC$17323_channelDebug_.debug("Creating new HttpRequest");
F.JSC$17323_backChannelRequest_=new Zi(F,F.JSC$17323_channelDebug_,F.sid_,"rpc",F.JSC$17323_backChannelAttemptId_);F.httpHeadersOverwriteParam_===null&&(F.JSC$17323_backChannelRequest_.JSC$17304_extraHeaders_=F.JSC$17323_extraHeaders_);F.JSC$17323_backChannelRequest_.JSC$17304_readyStateChangeThrottleMs_=0;var W=F.JSC$17323_backChannelUri_.clone();_.ig(W,"RID","rpc");_.ig(W,"SID",F.sid_);_.ig(W,"AID",F.JSC$17323_lastArrayId_);_.ig(W,"CI",F.enableStreaming_?"0":"1");!F.enableStreaming_&&F.longPollingTimeout_&&
_.ig(W,"TO",F.longPollingTimeout_);_.ig(W,"TYPE","xmlhttp");OH(F,W);F.httpHeadersOverwriteParam_&&F.JSC$17323_extraHeaders_&&ixw(W,F.httpHeadersOverwriteParam_,F.JSC$17323_extraHeaders_);F.backChannelRequestTimeoutMs_&&F.JSC$17323_backChannelRequest_.setTimeout(F.backChannelRequestTimeoutMs_);var E=F.JSC$17323_backChannelRequest_,h=F.JSC$17323_hostPrefix_;E.JSC$17304_type_=1;E.JSC$17304_baseUri_=_.zU(W.clone());E.JSC$17304_postData_=null;E.decodeChunks_=!0;JC6(E,h);F.JSC$17323_channelDebug_.debug("New Request created")};
f5.prototype.JSC$17325_onBackChannelDead_=function(){this.JSC$17323_deadBackChannelTimerId_!=null&&(this.JSC$17323_deadBackChannelTimerId_=null,pyN(this),mGT(this),sH(19))};
var Sj$=function(F){F.JSC$17323_deadBackChannelTimerId_!=null&&(_.EY.clearTimeout(F.JSC$17323_deadBackChannelTimerId_),F.JSC$17323_deadBackChannelTimerId_=null)},Trq=function(F,W){F.JSC$17323_channelDebug_.debug("Request complete");
var E=null;if(F.JSC$17323_backChannelRequest_==W){Sj$(F);YjT(F);F.JSC$17323_backChannelRequest_=null;var h=2}else if(uUF(F.forwardChannelRequestPool_,W))E=W.JSC$17304_pendingMessages_,dHx(F.forwardChannelRequestPool_,W),h=1;else return;if(F.state_!=0)if(W.JSC$17304_successful_)h==1?(AC$(W.JSC$17304_postData_?W.JSC$17304_postData_.length:0,Date.now()-W.JSC$17304_requestStartTime_,F.JSC$17323_forwardChannelRetryCount_),Q7K(F)):cBF(F);else{var d=W.JSC$17304_lastStatusCode_,V=W.getLastError();if(V==3||
V==0&&d>0)F.JSC$17323_channelDebug_.debug("Not retrying due to error type"),d>200&&(F.errorResponseStatusCode_=W.JSC$17304_lastStatusCode_);else{F.JSC$17323_channelDebug_.debug(function(){return"Maybe retrying, last error: "+Xy$(V,F.errorResponseStatusCode_)});
if(h==1&&BpN(F,W)||h==2&&mGT(F))return;F.JSC$17323_channelDebug_.debug("Exceeded max number of retries")}E&&E.length>0&&VCK(F.forwardChannelRequestPool_,E);F.JSC$17323_channelDebug_.debug("Error: HTTP request failed");switch(V){case 1:PL(F,5);break;case 4:PL(F,10);break;case 3:PL(F,6);break;default:PL(F,2)}}},CnF=function(F,W){var E=F.JSC$17323_baseRetryDelayMs_+Math.floor(Math.random()*F.JSC$17323_retryDelaySeedMs_);
F.isActive()||(F.JSC$17323_channelDebug_.debug("Inactive channel"),E*=2);return E*W};
f5.prototype.onInput_=function(F,W){for(var E=0;E<F.length;E++){var h=F[E];this.JSC$17323_lastArrayId_=h[0];h=h[1];if(this.state_==2)if(h[0]=="c"){this.sid_=h[1];this.JSC$17323_hostPrefix_=h[2];var d=h[3];d!=null&&(this.JSC$17325_channelVersion_=d,this.JSC$17323_channelDebug_.info("VER="+this.JSC$17325_channelVersion_));d=h[4];d!=null&&(this.serverVersion_=d,this.JSC$17323_channelDebug_.info("SVER="+this.serverVersion_));h=h[5];h!=null&&typeof h==="number"&&h>0&&(this.backChannelRequestTimeoutMs_=
h*=1.5,this.JSC$17323_channelDebug_.info("backChannelRequestTimeoutMs_="+h));if(h=W.JSC$17304_xmlHttp_){var V=v4(h,"X-Client-Wire-Protocol");V&&(d=this.forwardChannelRequestPool_,!d.requestPool_&&(_.gI(V,"spdy")||_.gI(V,"quic")||_.gI(V,"h2"))&&(d.JSC$17314_maxSize_=d.maxPoolSizeConfigured_,d.requestPool_=new Set,d.JSC$17314_request_&&(hiw(d,d.JSC$17314_request_),d.JSC$17314_request_=null)));this.httpSessionIdParam_&&((h=v4(h,"X-HTTP-Session-Id"))?(this.httpSessionId_=h,_.ig(this.JSC$17323_forwardChannelUri_,
this.httpSessionIdParam_,h)):this.JSC$17323_channelDebug_.warning("Missing X_HTTP_SESSION_ID in the handshake response"))}this.state_=3;this.handler_&&this.handler_.JSC$17329_channelOpened();this.detectBufferingProxy_&&(this.handshakeRttMs_=Date.now()-W.JSC$17304_requestStartTime_,this.JSC$17323_channelDebug_.info("Handshake RTT: "+this.handshakeRttMs_+"ms"));h=W;d=g4x(this,this.JSC$17323_supportsCrossDomainXhrs_?this.JSC$17323_hostPrefix_:null,this.JSC$17323_path_);this.JSC$17323_channelDebug_.debug("GetBackChannelUri: "+
d);this.JSC$17323_backChannelUri_=d;h.initialResponseDecoded_?(this.JSC$17323_channelDebug_.debug("Upgrade the handshake request to a backchannel."),dHx(this.forwardChannelRequestPool_,h),d=h,(V=this.backChannelRequestTimeoutMs_)&&d.setTimeout(V),d.JSC$17304_watchDogTimerId_&&(nZ6(d),foP(d)),this.JSC$17323_backChannelRequest_=h):cBF(this);this.JSC$17323_outgoingMaps_.length>0&&Q7K(this)}else h[0]!="stop"&&h[0]!="close"||PL(this,7);else this.state_==3&&(h[0]=="stop"||h[0]=="close"?h[0]=="stop"?PL(this,
7):this.disconnect():h[0]!="noop"&&this.handler_&&this.handler_.JSC$17329_channelHandleArray(h),this.JSC$17323_backChannelRetryCount_=0)}};
var PL=function(F,W){F.JSC$17323_channelDebug_.info("Error code "+W);if(W==2){var E=(0,_.kj)(F.testNetworkCallback_,F),h=F.networkTestUrl_,d=!h;h=new _.Yx(h||"//www.google.com/images/cleardot.gif");_.EY.location&&_.EY.location.protocol=="http"||_.hJ(h,"https");_.zU(h);d?UH6(h.toString(),E):Ri$(h.toString(),E)}else sH(2);F.onError_(W)};
f5.prototype.testNetworkCallback_=function(F){F?(this.JSC$17323_channelDebug_.info("Successfully pinged google.com"),sH(2)):(this.JSC$17323_channelDebug_.info("Failed to ping google.com"),sH(1))};
f5.prototype.onError_=function(F){this.JSC$17323_channelDebug_.debug("HttpChannel: error - "+F);this.state_=0;this.handler_&&this.handler_.JSC$17329_channelError(F);tC6(this);ziO(this)};
var tC6=function(F){F.state_=0;F.nonAckedMapsAtChannelClose_=[];if(F.handler_){var W=Npx(F.forwardChannelRequestPool_);if(W.length!=0||F.JSC$17323_outgoingMaps_.length!=0)F.JSC$17323_channelDebug_.debug(function(){return"Number of undelivered maps, pending: "+W.length+", outgoing: "+F.JSC$17323_outgoingMaps_.length}),_.ha(F.nonAckedMapsAtChannelClose_,W),_.ha(F.nonAckedMapsAtChannelClose_,F.JSC$17323_outgoingMaps_),F.forwardChannelRequestPool_.JSC$17314_pendingMessages_.length=0,_.Kb(F.JSC$17323_outgoingMaps_),
F.JSC$17323_outgoingMaps_.length=0;
F.handler_.JSC$17329_channelClosed()}},xH6=function(F){if(F.state_==0)return F.nonAckedMapsAtChannelClose_;
var W=[];_.ha(W,Npx(F.forwardChannelRequestPool_));_.ha(W,F.JSC$17323_outgoingMaps_);return W},g4x=function(F,W,E){var h=_.y$(E);
h.JSC$7936_domain_!=""?(W&&_.ds(h,W+"."+h.JSC$7936_domain_),_.ND(h,h.JSC$7936_port_)):(h=_.EY.location,h=HQq(h.protocol,W?W+"."+h.hostname:h.hostname,+h.port,E));W=F.httpSessionIdParam_;E=F.httpSessionId_;W&&E&&_.ig(h,W,E);_.ig(h,"VER",F.JSC$17325_channelVersion_);OH(F,h);return h},O$F=function(F,W,E){if(W&&!F.JSC$17323_supportsCrossDomainXhrs_)throw Error("xk");
W=F.usesFetchStreams_&&!F.JSC$17323_xmlHttpFactory_?new _.fP(new OC({streamBinaryChunks:E})):new _.fP(F.JSC$17323_xmlHttpFactory_);W.JSC$7701_withCredentials_=F.JSC$17323_supportsCrossDomainXhrs_;return W};
f5.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
var kaP=function(){};
_.N=kaP.prototype;_.N.JSC$17329_channelOpened=function(){};
_.N.JSC$17329_channelHandleArray=function(){};
_.N.JSC$17329_channelError=function(){};
_.N.JSC$17329_channelClosed=function(){};
_.N.isActive=function(){return!0};
_.N.JSC$17329_badMapError=function(){};var AB8=function(){},lh=function(F,W){_.qo.call(this);
this.JSC$17332_channel_=new f5(W);this.JSC$17332_url_=F;this.messageUrlParams_=W&&W.messageUrlParams||null;F=W&&W.messageHeaders||null;W&&W.clientProtocolHeaderRequired&&(F?_.xd.set(F,"X-Client-Protocol","webchannel"):F=_.xd.create("X-Client-Protocol","webchannel"));this.JSC$17332_channel_.JSC$17323_extraHeaders_=F;F=W&&W.initMessageHeaders||null;W&&W.messageContentType&&(F?_.xd.set(F,"X-WebChannel-Content-Type",W.messageContentType):F=_.xd.create("X-WebChannel-Content-Type",W.messageContentType));
W&&W.clientProfile&&(F?_.xd.set(F,"X-WebChannel-Client-Profile",W.clientProfile):F=_.xd.create("X-WebChannel-Client-Profile",W.clientProfile));this.JSC$17332_channel_.initHeaders_=F;(F=W&&W.httpHeadersOverwriteParam)&&!_.Mw(F)&&(this.JSC$17332_channel_.httpHeadersOverwriteParam_=F);this.supportsCrossDomainXhr_=W&&W.supportsCrossDomainXhr||!1;this.sendRawJson_=W&&W.sendRawJson||!1;(W=W&&W.httpSessionIdParam)&&!_.Mw(W)&&(this.JSC$17332_channel_.httpSessionIdParam_=W,_.xd.containsKey(this.messageUrlParams_,
W)&&_.xd.remove(this.messageUrlParams_,W));this.channelHandler_=new bh(this)};
_.Ma(lh,_.qo);lh.prototype.open=function(){this.JSC$17332_channel_.handler_=this.channelHandler_;this.supportsCrossDomainXhr_&&(this.JSC$17332_channel_.JSC$17323_supportsCrossDomainXhrs_=!0);this.JSC$17332_channel_.connect(this.JSC$17332_url_,this.messageUrlParams_||void 0)};
lh.prototype.close=function(){this.JSC$17332_channel_.disconnect()};
lh.prototype.send=function(F){var W=this.JSC$17332_channel_;if(typeof F==="string"){var E={};E.__data__=F;F=E}else this.sendRawJson_&&(E={},E.__data__=(0,_.ad)(F),F=E);W.JSC$17323_outgoingMaps_.push(new FMq(W.JSC$17323_nextMapId_++,F));W.state_==3&&Q7K(W)};
lh.prototype.disposeInternal=function(){this.JSC$17332_channel_.handler_=null;delete this.channelHandler_;this.JSC$17332_channel_.disconnect();delete this.JSC$17332_channel_;lh.superClass_.disposeInternal.call(this)};
var s7w=function(F){Br6.call(this);F.__headers__&&(this.headers=F.__headers__,this.statusCode=F.__status__,delete F.__headers__,delete F.__status__);var W=F.__sm__;W?this.data=(this.metadataKey=_.xd.getAnyKey(W))?_.xd.get(W,this.metadataKey):W:this.data=F};
_.Ma(s7w,Br6);var LMq=function(F){vZ6.call(this);this.status=1;this.errorCode=F};
_.Ma(LMq,vZ6);var bh=function(F){this.JSC$17339_channel_=F};
_.Ma(bh,kaP);bh.prototype.JSC$17329_channelOpened=function(){this.JSC$17339_channel_.dispatchEvent("w")};
bh.prototype.JSC$17329_channelHandleArray=function(F){this.JSC$17339_channel_.dispatchEvent(new s7w(F))};
bh.prototype.JSC$17329_channelError=function(F){this.JSC$17339_channel_.dispatchEvent(new LMq(F))};
bh.prototype.JSC$17329_channelClosed=function(){this.JSC$17339_channel_.dispatchEvent("x")};
var qwN=function(F,W){this.transportChannel_=F;this.JSC$17342_channel_=W},$HN=function(F){return xH6(F.JSC$17342_channel_).map(function(W){var E=F.transportChannel_;
W=W.map;"__data__"in W?(W=W.__data__,E=E.sendRawJson_?(0,_.g9a)(W):W):E=W;return E})};var n5=function(F){ZBx.dispatchEvent(new XDF(ZBx,F))},ZBx=new _.qo,XDF=function(F){_.xU.call(this,"statevent",F)};
_.k(XDF,_.xU);var ym=function(F,W,E,h,d){this.JSC$17347_channel_=F;this.JSC$17347_channelDebug_=W;this.sid_=E;this.JSC$17347_rid_=h;this.JSC$17347_retryId_=d||1;this.timeout_=45E3;this.JSC$17347_eventHandler_=new _.hR(this);this.pollingTimer_=new _.Eg;this.pollingTimer_.setInterval(250)};
_.N=ym.prototype;_.N.JSC$17349_extraHeaders_=null;_.N.JSC$17349_successful_=!1;_.N.JSC$17349_watchDogTimerId_=null;_.N.JSC$17349_watchDogTimeoutTime_=null;_.N.JSC$17349_requestStartTime_=null;_.N.JSC$17349_type_=null;_.N.JSC$17349_baseUri_=null;_.N.JSC$17349_requestUri_=null;_.N.JSC$17349_postData_=null;_.N.JSC$17349_xmlHttp_=null;_.N.JSC$17349_xmlHttpChunkStart_=0;_.N.trident_=null;_.N.JSC$17349_verb_=null;_.N.JSC$17349_lastError_=null;_.N.JSC$17349_lastStatusCode_=-1;_.N.sendClose_=!0;
_.N.JSC$17349_cancelled_=!1;_.N.JSC$17349_readyStateChangeThrottleMs_=0;_.N.JSC$17349_readyStateChangeThrottle_=null;var HBq=function(F,W){switch(F){case 0:return"Non-200 return code ("+W+")";case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},Pnu={},JBN={};
ym.prototype.setTimeout=function(F){this.timeout_=F};
var f5K=function(F,W,E){F.JSC$17349_type_=1;F.JSC$17349_baseUri_=_.zU(W.clone());F.JSC$17349_postData_=E;F.decodeChunks_=!0;a5w(F,null)},OB6=function(F,W,E,h,d){F.JSC$17349_type_=1;
F.JSC$17349_baseUri_=_.zU(W.clone());F.JSC$17349_postData_=null;F.decodeChunks_=E;d&&(F.sendClose_=!1);a5w(F,h)},a5w=function(F,W){F.JSC$17349_requestStartTime_=Date.now();
bBK(F);F.JSC$17349_requestUri_=F.JSC$17349_baseUri_.clone();Mq(F.JSC$17349_requestUri_,"t",F.JSC$17347_retryId_);F.JSC$17349_xmlHttpChunkStart_=0;F.JSC$17349_xmlHttp_=F.JSC$17347_channel_.JSC$17356_createXhrIo(F.JSC$17347_channel_.JSC$17356_shouldUseSecondaryDomains()?W:null);F.JSC$17349_readyStateChangeThrottleMs_>0&&(F.JSC$17349_readyStateChangeThrottle_=new _.Nv((0,_.kj)(F.JSC$17349_xmlHttpHandler_,F,F.JSC$17349_xmlHttp_),F.JSC$17349_readyStateChangeThrottleMs_));F.JSC$17347_eventHandler_.listen(F.JSC$17349_xmlHttp_,
"readystatechange",F.JSC$17349_readyStateChangeHandler_);W=F.JSC$17349_extraHeaders_?_.xd.clone(F.JSC$17349_extraHeaders_):{};F.JSC$17349_postData_?(F.JSC$17349_verb_="POST",W["Content-Type"]="application/x-www-form-urlencoded",F.JSC$17349_xmlHttp_.send(F.JSC$17349_requestUri_,F.JSC$17349_verb_,F.JSC$17349_postData_,W)):(F.JSC$17349_verb_="GET",F.sendClose_&&!_.BY&&(W.Connection="close"),F.JSC$17349_xmlHttp_.send(F.JSC$17349_requestUri_,F.JSC$17349_verb_,null,W));F.JSC$17347_channel_.notifyServerReachabilityEvent(1);
W=F.JSC$17347_channelDebug_;var E=F.JSC$17349_postData_;if(E){var h="";E=E.split("&");for(var d=0;d<E.length;d++){var V=E[d].split("=");if(V.length>1){var R=V[0];V=V[1];var M=R.split("_");h=M.length>=2&&M[1]=="type"?h+(R+"="+V+"&"):h+(R+"=redacted&")}}}else h=null;W.info("XMLHTTP REQ ("+F.JSC$17347_rid_+") [attempt "+F.JSC$17347_retryId_+"]: "+F.JSC$17349_verb_+"\n"+F.JSC$17349_requestUri_+"\n"+h)};
ym.prototype.JSC$17349_readyStateChangeHandler_=function(F){F=F.target;var W=this.JSC$17349_readyStateChangeThrottle_;W&&_.Os(F)==3?(this.JSC$17347_channelDebug_.debug("Throttling readystatechange."),W.fire()):this.JSC$17349_xmlHttpHandler_(F)};
ym.prototype.JSC$17349_xmlHttpHandler_=function(F){try{if(F==this.JSC$17349_xmlHttp_)a:{var W=_.Os(this.JSC$17349_xmlHttp_),E=this.JSC$17349_xmlHttp_.JSC$7701_lastErrorCode_,h=this.JSC$17349_xmlHttp_.getStatus();if(_.BY&&!_.vY("420+")){if(W<4)break a}else if(W<3||W==3&&!this.JSC$17349_xmlHttp_.getResponseText())break a;this.JSC$17349_cancelled_||W!=4||E==7||(E==8||h<=0?this.JSC$17347_channel_.notifyServerReachabilityEvent(3):this.JSC$17347_channel_.notifyServerReachabilityEvent(2));l5$(this);var d=
this.JSC$17349_xmlHttp_.getStatus();this.JSC$17349_lastStatusCode_=d;var V=this.JSC$17349_xmlHttp_.getResponseText();V||this.JSC$17347_channelDebug_.debug("No response text for uri "+this.JSC$17349_requestUri_+" status "+d);this.JSC$17349_successful_=d==200;this.JSC$17347_channelDebug_.info("XMLHTTP RESP ("+this.JSC$17347_rid_+") [ attempt "+this.JSC$17347_retryId_+"]: "+this.JSC$17349_verb_+"\n"+this.JSC$17349_requestUri_+"\n"+W+" "+d);if(this.JSC$17349_successful_){W==4&&jY(this);if(this.decodeChunks_){for(F=
!0;!this.JSC$17349_cancelled_&&this.JSC$17349_xmlHttpChunkStart_<V.length;){var R=n4N(this,V);if(R==JBN){W==4&&(this.JSC$17349_lastError_=4,n5(15),F=!1);ih(this.JSC$17347_channelDebug_,this.JSC$17347_rid_,null,"[Incomplete Response]");break}else if(R==Pnu){this.JSC$17349_lastError_=4;n5(16);ih(this.JSC$17347_channelDebug_,this.JSC$17347_rid_,V,"[Invalid Chunk]");F=!1;break}else ih(this.JSC$17347_channelDebug_,this.JSC$17347_rid_,R,null),yBx(this,R)}W==4&&V.length==0&&(this.JSC$17349_lastError_=1,
n5(17),F=!1);this.JSC$17349_successful_=this.JSC$17349_successful_&&F;F||(ih(this.JSC$17347_channelDebug_,this.JSC$17347_rid_,V,"[Invalid Chunked Response]"),jY(this),j7x(this))}else ih(this.JSC$17347_channelDebug_,this.JSC$17347_rid_,V,null),yBx(this,V);this.JSC$17349_successful_&&!this.JSC$17349_cancelled_&&(W==4?this.JSC$17347_channel_.JSC$17356_onRequestComplete(this):(this.JSC$17349_successful_=!1,bBK(this)))}else d==400&&V.indexOf("Unknown SID")>0?(this.JSC$17349_lastError_=3,n5(13),this.JSC$17347_channelDebug_.warning("XMLHTTP Unknown SID ("+
this.JSC$17347_rid_+")")):(this.JSC$17349_lastError_=0,n5(14),this.JSC$17347_channelDebug_.warning("XMLHTTP Bad status "+d+" ("+this.JSC$17347_rid_+")")),jY(this),j7x(this)}else this.JSC$17347_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(M){this.JSC$17347_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_")}finally{}};
var n4N=function(F,W){var E=F.JSC$17349_xmlHttpChunkStart_,h=W.indexOf("\n",E);if(h==-1)return JBN;E=Number(W.substring(E,h));if(isNaN(E))return Pnu;h+=1;if(h+E>W.length)return JBN;W=W.slice(h,h+E);F.JSC$17349_xmlHttpChunkStart_=h+E;return W};
ym.prototype.cancel=function(){this.JSC$17349_cancelled_=!0;jY(this)};
var bBK=function(F){F.JSC$17349_watchDogTimeoutTime_=Date.now()+F.timeout_;iBg(F,F.timeout_)},iBg=function(F,W){if(F.JSC$17349_watchDogTimerId_!=null)throw Error("wk");
F.JSC$17349_watchDogTimerId_=Xl((0,_.kj)(F.JSC$17349_onWatchDogTimeout_,F),W)},l5$=function(F){F.JSC$17349_watchDogTimerId_&&(_.EY.clearTimeout(F.JSC$17349_watchDogTimerId_),F.JSC$17349_watchDogTimerId_=null)};
ym.prototype.JSC$17349_onWatchDogTimeout_=function(){this.JSC$17349_watchDogTimerId_=null;var F=Date.now();F-this.JSC$17349_watchDogTimeoutTime_>=0?(this.JSC$17347_channelDebug_.info("TIMEOUT: "+this.JSC$17349_requestUri_),this.JSC$17349_type_!=2&&this.JSC$17347_channel_.notifyServerReachabilityEvent(3),jY(this),this.JSC$17349_lastError_=2,n5(18),j7x(this)):(this.JSC$17347_channelDebug_.warning("WatchDog timer called too early"),iBg(this,this.JSC$17349_watchDogTimeoutTime_-F))};
var j7x=function(F){F.JSC$17347_channel_.JSC$17356_isClosed()||F.JSC$17349_cancelled_||F.JSC$17347_channel_.JSC$17356_onRequestComplete(F)},jY=function(F){l5$(F);
_.u5(F.JSC$17349_readyStateChangeThrottle_);F.JSC$17349_readyStateChangeThrottle_=null;F.pollingTimer_.stop();F.JSC$17347_eventHandler_.removeAll();if(F.JSC$17349_xmlHttp_){var W=F.JSC$17349_xmlHttp_;F.JSC$17349_xmlHttp_=null;W.abort();W.dispose()}F.trident_&&(F.trident_=null)};
ym.prototype.getLastError=function(){return this.JSC$17349_lastError_};
var yBx=function(F,W){try{F.JSC$17347_channel_.JSC$17356_onRequestData(F,W),F.JSC$17347_channel_.notifyServerReachabilityEvent(4)}catch(E){}};var ih=function(F,W,E,h){var d=F.info;a:if(E&&E!="y2f%"){try{var V=JSON.parse(E);if(V)for(var R=0;R<V.length;R++)if(Array.isArray(V[R])){var M=V[R];if(!(M.length<2)){var g=M[1];if(Array.isArray(g)&&!(g.length<1)){var t=g[0];if(t!="noop"&&t!="stop")for(var C=1;C<g.length;C++)g[C]=""}}}var B=(0,_.ad)(V);break a}catch(I){F.debug("Exception parsing expected JS array - probably was not JS");B=E;break a}B=void 0}else B=E;d.call(F,"XMLHTTP TEXT ("+W+"): "+B+(h?" "+h:""))};
H4.prototype.debug=function(F){this.info(F)};
H4.prototype.info=function(){};
H4.prototype.warning=function(){};var rBw=function(F,W){this.JSC$17354_channel_=F;this.JSC$17354_channelDebug_=W;this.JSC$17354_parser_=new kH};
_.N=rBw.prototype;_.N.JSC$17356_extraHeaders_=null;_.N.JSC$17356_request_=null;_.N.receivedIntermediateResult_=!1;_.N.JSC$17356_path_=null;_.N.state_=null;_.N.JSC$17356_lastStatusCode_=-1;_.N.JSC$17356_hostPrefix_=null;_.N.blockedPrefix_=null;
_.N.connect=function(F){this.JSC$17356_path_=F;F=Tp8(this.JSC$17354_channel_,this.JSC$17356_path_);n5(3);Date.now();var W=this.JSC$17354_channel_.firstTestResults_;W!=null?(this.JSC$17356_hostPrefix_=W[0],(this.blockedPrefix_=W[1])?(this.state_=1,o4g(this)):(this.state_=2,Ga$(this))):(Mq(F,"MODE","init"),this.JSC$17356_request_=new ym(this,this.JSC$17354_channelDebug_),this.JSC$17356_request_.JSC$17349_extraHeaders_=this.JSC$17356_extraHeaders_,OB6(this.JSC$17356_request_,F,!1,null,!0),this.state_=
0)};
var o4g=function(F){var W=YwF(F.JSC$17354_channel_,F.blockedPrefix_,"/mail/images/cleardot.gif");_.zU(W);kM6(W.toString(),5E3,(0,_.kj)(F.checkBlockedCallback_,F),3,2E3);F.notifyServerReachabilityEvent(1)};
rBw.prototype.checkBlockedCallback_=function(F){if(F)this.state_=2,Ga$(this);else{n5(4);var W=this.JSC$17354_channel_;W.JSC$17357_channelDebug_.debug("Test Connection Blocked");W.JSC$17361_lastStatusCode_=W.connectionTest_.JSC$17356_lastStatusCode_;rO(W,9)}F&&this.notifyServerReachabilityEvent(2)};
var Ga$=function(F){F.JSC$17354_channelDebug_.debug("TestConnection: starting stage 2");var W=F.JSC$17354_channel_.secondTestResults_;W!=null?(F.JSC$17354_channelDebug_.debug("TestConnection: skipping stage 2, precomputed result is "+W?"Buffered":"Unbuffered"),n5(5),W?(n5(11),Tv(F.JSC$17354_channel_,F,!1)):(n5(12),Tv(F.JSC$17354_channel_,F,!0))):(F.JSC$17356_request_=new ym(F,F.JSC$17354_channelDebug_),F.JSC$17356_request_.JSC$17349_extraHeaders_=F.JSC$17356_extraHeaders_,W=wDF(F.JSC$17354_channel_,
F.JSC$17356_hostPrefix_,F.JSC$17356_path_),n5(5),Mq(W,"TYPE","xmlhttp"),OB6(F.JSC$17356_request_,W,!1,F.JSC$17356_hostPrefix_,!1))};
_.N=rBw.prototype;_.N.JSC$17356_createXhrIo=function(F){return this.JSC$17354_channel_.JSC$17356_createXhrIo(F)};
_.N.abort=function(){this.JSC$17356_request_&&(this.JSC$17356_request_.cancel(),this.JSC$17356_request_=null);this.JSC$17356_lastStatusCode_=-1};
_.N.JSC$17356_isClosed=function(){return!1};
_.N.JSC$17356_onRequestData=function(F,W){this.JSC$17356_lastStatusCode_=F.JSC$17349_lastStatusCode_;if(this.state_==0)if(this.JSC$17354_channelDebug_.debug("TestConnection: Got data for stage 1"),W){try{var E=this.JSC$17354_parser_.parse(W)}catch(h){u48(this.JSC$17354_channel_,this);return}this.JSC$17356_hostPrefix_=E[0];this.blockedPrefix_=E[1]}else this.JSC$17354_channelDebug_.debug("TestConnection: Null responseText"),u48(this.JSC$17354_channel_,this);else this.state_==2&&(this.receivedIntermediateResult_?
(n5(7),Date.now()):W=="11111"?(n5(6),this.receivedIntermediateResult_=!0,Date.now(),this.JSC$17356_lastStatusCode_=200,this.JSC$17356_request_.cancel(),this.JSC$17354_channelDebug_.debug("Test connection succeeded; using streaming connection"),n5(12),Tv(this.JSC$17354_channel_,this,!0)):(n5(8),Date.now(),this.receivedIntermediateResult_=!1))};
_.N.JSC$17356_onRequestComplete=function(){this.JSC$17356_lastStatusCode_=this.JSC$17356_request_.JSC$17349_lastStatusCode_;this.JSC$17356_request_.JSC$17349_successful_?this.state_==0?(this.JSC$17354_channelDebug_.debug("TestConnection: request complete for initial check"),this.blockedPrefix_?(this.state_=1,o4g(this)):(this.state_=2,Ga$(this))):this.state_==2&&(this.JSC$17354_channelDebug_.debug("TestConnection: request complete for stage 2"),this.receivedIntermediateResult_?(this.JSC$17354_channelDebug_.debug("Test connection succeeded; using streaming connection"),
n5(12),Tv(this.JSC$17354_channel_,this,!0)):(this.JSC$17354_channelDebug_.debug("Test connection failed; not using streaming"),n5(11),Tv(this.JSC$17354_channel_,this,!1))):(this.JSC$17354_channelDebug_.debug("TestConnection: request failed, in state "+this.state_),this.state_==0?n5(9):this.state_==2&&n5(10),u48(this.JSC$17354_channel_,this,this.JSC$17356_request_.getLastError()))};
_.N.JSC$17356_shouldUseSecondaryDomains=function(){return this.JSC$17354_channel_.JSC$17356_shouldUseSecondaryDomains()};
_.N.isActive=function(){return this.JSC$17354_channel_.isActive()};
_.N.notifyServerReachabilityEvent=function(F){this.JSC$17354_channel_.notifyServerReachabilityEvent(F)};var oX=function(F,W,E){this.state_=1;this.JSC$17357_outgoingMaps_=[];this.pendingMaps_=[];this.JSC$17357_channelDebug_=new H4;this.JSC$17357_parser_=new kH;this.firstTestResults_=F||null;this.secondTestResults_=W!=null?W:null;this.asyncTest_=E||!1},Sw6=function(F,W){this.JSC$17359_mapId=F;
this.map=W;this.context=null};
_.N=oX.prototype;_.N.JSC$17361_extraHeaders_=null;_.N.JSC$17361_extraParams_=null;_.N.forwardChannelRequest_=null;_.N.JSC$17361_backChannelRequest_=null;_.N.JSC$17361_path_=null;_.N.JSC$17361_forwardChannelUri_=null;_.N.JSC$17361_backChannelUri_=null;_.N.JSC$17361_hostPrefix_=null;_.N.JSC$17361_nextRid_=0;_.N.JSC$17361_nextMapId_=0;_.N.handler_=null;_.N.JSC$17361_forwardChannelTimerId_=null;_.N.JSC$17361_backChannelTimerId_=null;_.N.JSC$17361_deadBackChannelTimerId_=null;_.N.connectionTest_=null;
_.N.useChunked_=null;_.N.JSC$17361_lastArrayId_=-1;_.N.JSC$17361_lastPostResponseArrayId_=-1;_.N.JSC$17361_lastStatusCode_=-1;_.N.JSC$17361_forwardChannelRetryCount_=0;_.N.JSC$17361_backChannelRetryCount_=0;_.N.JSC$17361_channelVersion_=8;var pDx={OK:0,REQUEST_FAILED:2,LOGGED_OUT:4,NO_DATA:5,UNKNOWN_SESSION_ID:6,STOP:7,NETWORK:8,BLOCKED:9,BAD_DATA:10,BAD_RESPONSE:11,ACTIVE_X_BLOCKED:12},mHu=function(F,W,E,h){_.xU.call(this,"timingevent",F);this.size=W;this.rtt=E;this.retries=h};
_.Ma(mHu,_.xU);var KMq=function(F){_.xU.call(this,"serverreachability",F)};
_.Ma(KMq,_.xU);oX.prototype.connect=function(F,W,E,h,d){this.JSC$17357_channelDebug_.debug("connect()");n5(0);this.JSC$17361_path_=W;this.JSC$17361_extraParams_=E||{};h&&d!==void 0&&(this.JSC$17361_extraParams_.OSID=h,this.JSC$17361_extraParams_.OAID=d);this.asyncTest_?(Xl((0,_.kj)(this.connectTest_,this,F),100),Fy6(this)):this.connectTest_(F)};
oX.prototype.disconnect=function(){this.JSC$17357_channelDebug_.debug("disconnect()");Wyx(this);if(this.state_==3){var F=this.JSC$17361_nextRid_++,W=this.JSC$17361_forwardChannelUri_.clone();_.ig(W,"SID",this.sid_);_.ig(W,"RID",F);_.ig(W,"TYPE","terminate");Gv(this,W);F=new ym(this,this.JSC$17357_channelDebug_,this.sid_,F);F.JSC$17349_type_=2;F.JSC$17349_baseUri_=_.zU(W.clone());(new Image).src=F.JSC$17349_baseUri_.toString();F.JSC$17349_requestStartTime_=Date.now();bBK(F)}E5$(this)};
oX.prototype.connectTest_=function(F){this.JSC$17357_channelDebug_.debug("connectTest_()");this.connectionTest_=new rBw(this,this.JSC$17357_channelDebug_);this.connectionTest_.JSC$17356_extraHeaders_=this.JSC$17361_extraHeaders_;this.connectionTest_.JSC$17354_parser_=this.JSC$17357_parser_;this.connectionTest_.connect(F)};
var Fy6=function(F){F.JSC$17357_channelDebug_.debug("connectChannel_()");F.JSC$17361_ensureInState_(1,0);F.JSC$17361_forwardChannelUri_=Tp8(F,F.JSC$17361_path_);hRx(F)},Wyx=function(F){F.connectionTest_&&(F.connectionTest_.abort(),F.connectionTest_=null);
F.JSC$17361_backChannelRequest_&&(F.JSC$17361_backChannelRequest_.cancel(),F.JSC$17361_backChannelRequest_=null);F.JSC$17361_backChannelTimerId_&&(_.EY.clearTimeout(F.JSC$17361_backChannelTimerId_),F.JSC$17361_backChannelTimerId_=null);ddg(F);F.forwardChannelRequest_&&(F.forwardChannelRequest_.cancel(),F.forwardChannelRequest_=null);F.JSC$17361_forwardChannelTimerId_&&(_.EY.clearTimeout(F.JSC$17361_forwardChannelTimerId_),F.JSC$17361_forwardChannelTimerId_=null)},NNq=function(F,W){if(F.state_==0)throw Error("zk");
F.JSC$17357_outgoingMaps_.length==1E3&&F.JSC$17357_parser_.stringify(W);F.JSC$17357_outgoingMaps_.push(new Sw6(F.JSC$17361_nextMapId_++,W));F.state_!=2&&F.state_!=3||hRx(F)};
oX.prototype.JSC$17356_isClosed=function(){return this.state_==0};
oX.prototype.getState=function(){return this.state_};
var hRx=function(F){F.forwardChannelRequest_||F.JSC$17361_forwardChannelTimerId_||(F.JSC$17361_forwardChannelTimerId_=Xl((0,_.kj)(F.JSC$17361_onStartForwardChannelTimer_,F),0),F.JSC$17361_forwardChannelRetryCount_=0)};
oX.prototype.JSC$17361_onStartForwardChannelTimer_=function(F){this.JSC$17361_forwardChannelTimerId_=null;VMK(this,F)};
var VMK=function(F,W){F.JSC$17357_channelDebug_.debug("startForwardChannel_");if(F.state_==1){if(!W){F.JSC$17357_channelDebug_.debug("open_()");F.JSC$17361_nextRid_=Math.floor(Math.random()*1E5);W=F.JSC$17361_nextRid_++;var E=new ym(F,F.JSC$17357_channelDebug_,"",W);E.JSC$17349_extraHeaders_=F.JSC$17361_extraHeaders_;var h=UdO(F),d=F.JSC$17361_forwardChannelUri_.clone();_.ig(d,"RID",W);_.ig(d,"CVER","1");Gv(F,d);f5K(E,d,h);F.forwardChannelRequest_=E;F.state_=2}}else F.state_==3&&(W?RRw(F,W):F.JSC$17357_outgoingMaps_.length==
0?F.JSC$17357_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):F.forwardChannelRequest_||(RRw(F),F.JSC$17357_channelDebug_.debug("startForwardChannel_ finished, sent request")))},RRw=function(F,W){if(W)if(F.JSC$17361_channelVersion_>6){F.JSC$17357_outgoingMaps_=F.pendingMaps_.concat(F.JSC$17357_outgoingMaps_);
F.pendingMaps_.length=0;var E=F.JSC$17361_nextRid_-1;W=UdO(F)}else E=W.JSC$17347_rid_,W=W.JSC$17349_postData_;else E=F.JSC$17361_nextRid_++,W=UdO(F);var h=F.JSC$17361_forwardChannelUri_.clone();_.ig(h,"SID",F.sid_);_.ig(h,"RID",E);_.ig(h,"AID",F.JSC$17361_lastArrayId_);Gv(F,h);E=new ym(F,F.JSC$17357_channelDebug_,F.sid_,E,F.JSC$17361_forwardChannelRetryCount_+1);E.JSC$17349_extraHeaders_=F.JSC$17361_extraHeaders_;E.setTimeout(1E4+Math.round(1E4*Math.random()));F.forwardChannelRequest_=E;f5K(E,h,W)},
Gv=function(F,W){F.handler_&&(F=F.handler_.JSC$17368_getAdditionalParams())&&_.xd.forEach(F,function(E,h){_.ig(W,h,E)})},UdO=function(F){var W=Math.min(F.JSC$17357_outgoingMaps_.length,1E3),E=["count="+W];
if(F.JSC$17361_channelVersion_>6&&W>0){var h=F.JSC$17357_outgoingMaps_[0].JSC$17359_mapId;E.push("ofs="+h)}else h=0;for(var d={},V=0;V<W;d={mapId$jscomp$3:void 0},V++){d.mapId$jscomp$3=F.JSC$17357_outgoingMaps_[V].JSC$17359_mapId;var R=F.JSC$17357_outgoingMaps_[V].map;d.mapId$jscomp$3=F.JSC$17361_channelVersion_<=6?V:d.mapId$jscomp$3-h;try{_.xd.forEach(R,function(M){return function(g,t){E.push("req"+M.mapId$jscomp$3+"_"+t+"="+encodeURIComponent(g))}}(d))}catch(M){E.push("req"+d.mapId$jscomp$3+"_type="+
encodeURIComponent("_badmap"))}}F.pendingMaps_=F.pendingMaps_.concat(F.JSC$17357_outgoingMaps_.splice(0,W));
return E.join("&")},eRT=function(F){F.JSC$17361_backChannelRequest_||F.JSC$17361_backChannelTimerId_||(F.JSC$17361_backChannelAttemptId_=1,F.JSC$17361_backChannelTimerId_=Xl((0,_.kj)(F.JSC$17361_onStartBackChannelTimer_,F),0),F.JSC$17361_backChannelRetryCount_=0)},g56=function(F){if(F.JSC$17361_backChannelRequest_||F.JSC$17361_backChannelTimerId_||F.JSC$17361_backChannelRetryCount_>=3)return!1;
F.JSC$17357_channelDebug_.debug("Going to retry GET");F.JSC$17361_backChannelAttemptId_++;F.JSC$17361_backChannelTimerId_=Xl((0,_.kj)(F.JSC$17361_onStartBackChannelTimer_,F),MMw(F,F.JSC$17361_backChannelRetryCount_));F.JSC$17361_backChannelRetryCount_++;return!0};
oX.prototype.JSC$17361_onStartBackChannelTimer_=function(){this.JSC$17361_backChannelTimerId_=null;this.JSC$17357_channelDebug_.debug("Creating new HttpRequest");this.JSC$17361_backChannelRequest_=new ym(this,this.JSC$17357_channelDebug_,this.sid_,"rpc",this.JSC$17361_backChannelAttemptId_);this.JSC$17361_backChannelRequest_.JSC$17349_extraHeaders_=this.JSC$17361_extraHeaders_;this.JSC$17361_backChannelRequest_.JSC$17349_readyStateChangeThrottleMs_=0;var F=this.JSC$17361_backChannelUri_.clone();_.ig(F,
"RID","rpc");_.ig(F,"SID",this.sid_);_.ig(F,"CI",this.useChunked_?"0":"1");_.ig(F,"AID",this.JSC$17361_lastArrayId_);Gv(this,F);_.ig(F,"TYPE","xmlhttp");OB6(this.JSC$17361_backChannelRequest_,F,!0,this.JSC$17361_hostPrefix_,!1);this.JSC$17357_channelDebug_.debug("New Request created")};
var Tv=function(F,W,E){F.JSC$17357_channelDebug_.debug("Test Connection Finished");F.useChunked_=F.secondTestResults_==null?E:!F.secondTestResults_;F.JSC$17361_lastStatusCode_=W.JSC$17356_lastStatusCode_;F.asyncTest_||Fy6(F)},u48=function(F,W){F.JSC$17357_channelDebug_.debug("Test Connection Failed");
F.JSC$17361_lastStatusCode_=W.JSC$17356_lastStatusCode_;rO(F,2)};
oX.prototype.JSC$17356_onRequestData=function(F,W){if(this.state_!=0&&(this.JSC$17361_backChannelRequest_==F||this.forwardChannelRequest_==F))if(this.JSC$17361_lastStatusCode_=F.JSC$17349_lastStatusCode_,this.forwardChannelRequest_==F&&this.state_==3)if(this.JSC$17361_channelVersion_>7){try{var E=this.JSC$17357_parser_.parse(W)}catch(h){E=null}if(Array.isArray(E)&&E.length==3)if(W=E,W[0]==0)a:if(this.JSC$17357_channelDebug_.debug("Server claims our backchannel is missing."),this.JSC$17361_backChannelTimerId_)this.JSC$17357_channelDebug_.debug("But we are currently starting the request.");
else{if(this.JSC$17361_backChannelRequest_)if(this.JSC$17361_backChannelRequest_.JSC$17349_requestStartTime_+3E3<this.forwardChannelRequest_.JSC$17349_requestStartTime_)ddg(this),this.JSC$17361_backChannelRequest_.cancel(),this.JSC$17361_backChannelRequest_=null;else break a;else this.JSC$17357_channelDebug_.warning("We do not have a BackChannel established");g56(this);n5(19)}else this.JSC$17361_lastPostResponseArrayId_=W[1],F=this.JSC$17361_lastPostResponseArrayId_-this.JSC$17361_lastArrayId_,0<
F&&(W=W[2],this.JSC$17357_channelDebug_.debug(W+" bytes (in "+F+" arrays) are outstanding on the BackChannel"),W<37500&&this.useChunked_&&this.JSC$17361_backChannelRetryCount_==0&&!this.JSC$17361_deadBackChannelTimerId_&&(this.JSC$17361_deadBackChannelTimerId_=Xl((0,_.kj)(this.JSC$17361_onBackChannelDead_,this),6E3)));else this.JSC$17357_channelDebug_.debug("Bad POST response data returned"),rO(this,11)}else W!="y2f%"&&(this.JSC$17357_channelDebug_.debug("Bad data returned - missing/invald magic cookie"),
rO(this,11));else this.JSC$17361_backChannelRequest_==F&&ddg(this),_.Mw(W)||(F=this.JSC$17357_parser_.parse(W),this.onInput_(F))};
oX.prototype.JSC$17361_onBackChannelDead_=function(){this.JSC$17361_deadBackChannelTimerId_!=null&&(this.JSC$17361_deadBackChannelTimerId_=null,this.JSC$17361_backChannelRequest_.cancel(),this.JSC$17361_backChannelRequest_=null,g56(this),n5(20))};
var ddg=function(F){F.JSC$17361_deadBackChannelTimerId_!=null&&(_.EY.clearTimeout(F.JSC$17361_deadBackChannelTimerId_),F.JSC$17361_deadBackChannelTimerId_=null)};
oX.prototype.JSC$17356_onRequestComplete=function(F){this.JSC$17357_channelDebug_.debug("Request complete");if(this.JSC$17361_backChannelRequest_==F){ddg(this);this.JSC$17361_backChannelRequest_=null;var W=2}else if(this.forwardChannelRequest_==F)this.forwardChannelRequest_=null,W=1;else return;this.JSC$17361_lastStatusCode_=F.JSC$17349_lastStatusCode_;if(this.state_!=0)if(F.JSC$17349_successful_)if(W==1){W=F.JSC$17349_postData_?F.JSC$17349_postData_.length:0;F=Date.now()-F.JSC$17349_requestStartTime_;
var E=ZBx;E.dispatchEvent(new mHu(E,W,F,this.JSC$17361_forwardChannelRetryCount_));hRx(this);this.handler_&&this.handler_.JSC$17368_channelSuccess(this,this.pendingMaps_);this.pendingMaps_.length=0}else eRT(this);else{E=F.getLastError();if(E==3||E==7||E==0&&this.JSC$17361_lastStatusCode_>0)this.JSC$17357_channelDebug_.debug("Not retrying due to error type");else{this.JSC$17357_channelDebug_.debug("Maybe retrying, last error: "+HBq(E,this.JSC$17361_lastStatusCode_));var h;if(h=W==1)this.forwardChannelRequest_||
this.JSC$17361_forwardChannelTimerId_||this.state_==1||this.JSC$17361_forwardChannelRetryCount_>=2?h=!1:(this.JSC$17357_channelDebug_.debug("Going to retry POST"),this.JSC$17361_forwardChannelTimerId_=Xl((0,_.kj)(this.JSC$17361_onStartForwardChannelTimer_,this,F),MMw(this,this.JSC$17361_forwardChannelRetryCount_)),this.JSC$17361_forwardChannelRetryCount_++,h=!0);if(h||W==2&&g56(this))return;this.JSC$17357_channelDebug_.debug("Exceeded max number of retries")}this.JSC$17357_channelDebug_.debug("Error: HTTP request failed");
switch(E){case 1:rO(this,5);break;case 4:rO(this,10);break;case 3:rO(this,6);break;case 7:rO(this,12);break;default:rO(this,2)}}};
var MMw=function(F,W){var E=5E3+Math.floor(Math.random()*1E4);F.isActive()||(F.JSC$17357_channelDebug_.debug("Inactive channel"),E*=2);return E*W};
oX.prototype.onInput_=function(F){for(var W=0;W<F.length;W++){var E=F[W];this.JSC$17361_lastArrayId_=E[0];E=E[1];this.state_==2?E[0]=="c"?(this.sid_=E[1],this.JSC$17361_hostPrefix_=E[2],E=E[3],E!=null?this.JSC$17361_channelVersion_=E:this.JSC$17361_channelVersion_=6,this.state_=3,this.handler_&&this.handler_.JSC$17368_channelOpened(),this.JSC$17361_backChannelUri_=wDF(this,this.JSC$17361_hostPrefix_,this.JSC$17361_path_),eRT(this)):E[0]=="stop"&&rO(this,7):this.state_==3&&(E[0]=="stop"?rO(this,7):
E[0]!="noop"&&this.handler_&&this.handler_.JSC$17368_channelHandleArray(E),this.JSC$17361_backChannelRetryCount_=0)}};
oX.prototype.JSC$17361_ensureInState_=function(F){if(!_.on(arguments,this.state_))throw Error("Ak`"+this.state_);};
var rO=function(F,W){F.JSC$17357_channelDebug_.info("Error code "+W);if(W==2||W==9){var E=null;F.handler_&&(E=null);var h=(0,_.kj)(F.testGoogleComCallback_,F);E||(E=new _.Yx("//www.google.com/images/cleardot.gif"),_.zU(E));xWF(E.toString(),1E4,h)}else n5(2);F.onError_(W)};
oX.prototype.testGoogleComCallback_=function(F){F?(this.JSC$17357_channelDebug_.info("Successfully pinged google.com"),n5(2)):(this.JSC$17357_channelDebug_.info("Failed to ping google.com"),n5(1),this.onError_(8))};
oX.prototype.onError_=function(F){this.JSC$17357_channelDebug_.debug("HttpChannel: error - "+F);this.state_=0;this.handler_&&this.handler_.JSC$17368_channelError(F);E5$(this);Wyx(this)};
var E5$=function(F){F.state_=0;F.JSC$17361_lastStatusCode_=-1;if(F.handler_)if(F.pendingMaps_.length==0&&F.JSC$17357_outgoingMaps_.length==0)F.handler_.JSC$17368_channelClosed();else{F.JSC$17357_channelDebug_.debug("Number of undelivered maps, pending: "+F.pendingMaps_.length+", outgoing: "+F.JSC$17357_outgoingMaps_.length);var W=_.Kb(F.pendingMaps_),E=_.Kb(F.JSC$17357_outgoingMaps_);F.pendingMaps_.length=0;F.JSC$17357_outgoingMaps_.length=0;F.handler_.JSC$17368_channelClosed(W,E)}},Tp8=function(F,
W){W=YwF(F,null,W);
F.JSC$17357_channelDebug_.debug("GetForwardChannelUri: "+W);return W},wDF=function(F,W,E){W=YwF(F,F.JSC$17356_shouldUseSecondaryDomains()?W:null,E);
F.JSC$17357_channelDebug_.debug("GetBackChannelUri: "+W);return W},YwF=function(F,W,E){var h=_.y$(E);
if(h.JSC$7936_domain_!="")W&&_.ds(h,W+"."+h.JSC$7936_domain_),_.ND(h,h.JSC$7936_port_);else{var d=window.location;h=HQq(d.protocol,W?W+"."+d.hostname:d.hostname,+d.port,E)}F.JSC$17361_extraParams_&&_.xd.forEach(F.JSC$17361_extraParams_,function(V,R){_.ig(h,R,V)});
_.ig(h,"VER",F.JSC$17361_channelVersion_);Gv(F,h);return h};
oX.prototype.JSC$17356_createXhrIo=function(F){if(F)throw Error("xk");F=new _.fP;F.JSC$7701_withCredentials_=!1;return F};
oX.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
oX.prototype.notifyServerReachabilityEvent=function(F){var W=ZBx;W.dispatchEvent(new KMq(W,F))};
oX.prototype.JSC$17356_shouldUseSecondaryDomains=function(){return!1};
new bQF;var Qq6=function(){};
_.N=Qq6.prototype;_.N.JSC$17368_channelOpened=function(){};
_.N.JSC$17368_channelHandleArray=function(){};
_.N.JSC$17368_channelSuccess=function(){};
_.N.JSC$17368_channelError=function(){};
_.N.JSC$17368_channelClosed=function(){};
_.N.JSC$17368_getAdditionalParams=function(){return{}};
_.N.isActive=function(){return!0};var zRK=function(F){F.front_.length===0&&(F.front_=F.back_,F.front_.reverse(),F.back_=[])};
_.N=skq.prototype;_.N.enqueue=function(F){this.back_.push(F)};
_.N.peek=function(){zRK(this);return _.lo(this.front_)};
_.N.getCount=function(){return this.front_.length+this.back_.length};
_.N.isEmpty=function(){return this.front_.length===0&&this.back_.length===0};
_.N.clear=function(){this.front_=[];this.back_=[]};
_.N.contains=function(F){return _.on(this.front_,F)||_.on(this.back_,F)};
_.N.remove=function(F){var W=this.front_;var E=Array.prototype.lastIndexOf.call(W,F,W.length-1);E>=0?(_.YW(W,E),W=!0):W=!1;return W||_.mY(this.back_,F)};
_.N.getValues=function(){for(var F=[],W=this.front_.length-1;W>=0;--W)F.push(this.front_[W]);W=this.back_.length;for(var E=0;E<W;++E)F.push(this.back_[E]);return F};var YH=function(F){this.JSC$17372_map_=new _.tj;this.size=0;F&&this.addAll(F)},tM6=function(F){var W=typeof F;
return W=="object"&&F||W=="function"?"o"+_.Ue(F):W.charAt(0)+F};
_.N=YH.prototype;_.N.getCount=function(){return this.JSC$17372_map_.size};
_.N.add=function(F){this.JSC$17372_map_.set(tM6(F),F);this.size=this.JSC$17372_map_.size};
_.N.addAll=function(F){F=_.ED(F);for(var W=F.length,E=0;E<W;E++)this.add(F[E]);this.size=this.JSC$17372_map_.size};
_.N.removeAll=function(F){F=_.ED(F);for(var W=F.length,E=0;E<W;E++)this.remove(F[E]);this.size=this.JSC$17372_map_.size};
_.N.delete=function(F){F=this.JSC$17372_map_.remove(tM6(F));this.size=this.JSC$17372_map_.size;return F};
_.N.remove=function(F){return this.delete(F)};
_.N.clear=function(){this.JSC$17372_map_.clear();this.size=0};
_.N.isEmpty=function(){return this.JSC$17372_map_.size===0};
_.N.has=function(F){return this.JSC$17372_map_.containsKey(tM6(F))};
_.N.contains=function(F){return this.JSC$17372_map_.containsKey(tM6(F))};
_.N.getValues=function(){return this.JSC$17372_map_.getValues()};
_.N.values=function(){return this.JSC$17372_map_.values()};
_.N.clone=function(){return new YH(this)};
_.N.equals=function(F){return this.getCount()==ZQN(F)&&CBg(this,F)};
var CBg=function(F,W){var E=ZQN(W);if(F.getCount()>E)return!1;!(W instanceof YH)&&E>5&&(W=new YH(W));return XrO(F,function(h){var d=W;return d.contains&&typeof d.contains=="function"?d.contains(h):d.containsValue&&typeof d.containsValue=="function"?d.containsValue(h):_.Ee(d)||typeof d==="string"?_.on(d,h):_.xd.containsValue(d,h)})};
YH.prototype.__iterator__=function(){return this.JSC$17372_map_.__iterator__(!1)};
YH.prototype[Symbol.iterator]=function(){return this.values()};var BN8={properties:{value:{type:Number,value:0,notify:!0,reflectToAttribute:!0},min:{type:Number,value:0,notify:!0},max:{type:Number,value:100,notify:!0},step:{type:Number,value:1,notify:!0},ratio:{type:Number,value:0,readOnly:!0,notify:!0}},observers:["_update(value, min, max, step)"],_calcRatio:function(F){return(this._clampValue(F)-this.min)/(this.max-this.min)},
_clampValue:function(F){return Math.min(this.max,Math.max(this.min,this._calcStep(F)))},
_calcStep:function(F){F=parseFloat(F);if(!this.step)return F;F=Math.round((F-this.min)/this.step);return this.step<1?F/(1/this.step)+this.min:F*this.step+this.min},
_validateValue:function(){var F=this._clampValue(this.value);this.value=this.oldValue=isNaN(F)?this.oldValue:F;return this.value!==F},
_update:function(){this._validateValue();this._setRatio(this._calcRatio(this.value)*100)}};var v5F;var ID6;_.k3({_template:function(){if(ID6!==void 0)return ID6;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-app-drawer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_app_layout.tp_yt_app_drawer.tp.yt.app.drawer.css.js--\x3e<div id="scrim" on-click="close" class="style-scope tp-yt-app-drawer"></div>\n\n\n<div id="contentContainer" opened$="[[opened]]" persistent$="[[persistent]]" position$="[[position]]" swipe-open$="[[swipeOpen]]" class="style-scope tp-yt-app-drawer">\n  <slot class="style-scope tp-yt-app-drawer"></slot>\n</div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);var W=F.content,E=W.insertBefore;v5F===void 0&&(v5F=document.createElement("template"));var h=v5F;E.call(W,h.content.cloneNode(!0),F.content.firstChild);return ID6=F},
is:"tp-yt-app-drawer",properties:{opened:{type:Boolean,value:!1,notify:!0,reflectToAttribute:!0},persistent:{type:Boolean,value:!1,reflectToAttribute:!0},transitionDuration:{type:Number,value:200},align:{type:String,value:"left"},position:{type:String,readOnly:!0,reflectToAttribute:!0},swipeOpen:{type:Boolean,value:!1,reflectToAttribute:!0},noFocusTrap:{type:Boolean,value:!1},disableSwipe:{type:Boolean,value:!1}},observers:["resetLayout(position, isAttached)","_resetPosition(align, isAttached)","_styleTransitionDuration(transitionDuration)",
"_openedPersistentChanged(opened, persistent)"],_translateOffset:0,_trackDetails:null,_drawerState:0,_boundEscKeydownHandler:null,_firstTabStop:null,_lastTabStop:null,attached:function(){_.wT(this,function(){this._boundEscKeydownHandler=this._escKeydownHandler.bind(this);this.addEventListener("keydown",this._tabKeydownHandler.bind(this));this.listen(this,"track","_track");this.setScrollDirection("y")});
this.fire("app-reset-layout")},
detached:function(){document.removeEventListener("keydown",this._boundEscKeydownHandler)},
open:function(){this.opened=!0},
close:function(){this.opened=!1},
toggle:function(){this.opened=!this.opened},
getWidth:function(){return this._savedWidth||this.$.contentContainer.offsetWidth},
_isRTL:function(){return window.getComputedStyle(this).direction==="rtl"},
_resetPosition:function(){switch(this.align){case "start":this._setPosition(this._isRTL()?"right":"left");return;case "end":this._setPosition(this._isRTL()?"left":"right");return}this._setPosition(this.align)},
_escKeydownHandler:function(F){F.keyCode===27&&(F.preventDefault(),this.close())},
_track:function(F){if(!this.persistent&&!this.disableSwipe)switch(F.preventDefault(),F.detail.state){case "start":this._trackStart(F);break;case "track":this._trackMove(F);break;case "end":this._trackEnd(F)}},
_trackStart:function(){this._drawerState=this._DRAWER_STATE.TRACKING;var F=this.$.contentContainer.getBoundingClientRect();this._savedWidth=F.width;this._translateOffset=this.position==="left"?F.left:F.right-window.innerWidth;this._trackDetails=[];this._styleTransitionDuration(0);this.style.visibility="visible"},
_trackMove:function(F){this._trackDetails&&(this._translateDrawer(F.detail.dx+this._translateOffset),this._trackDetails.push({dx:F.detail.dx,timeStamp:Date.now()}))},
_trackEnd:function(F){if(this._trackDetails){var W=F.detail.dx+this._translateOffset,E=this.getWidth();W=this.position==="left"?W>=0||W<=-E:W<=0||W>=E;if(!W){var h=this._trackDetails;this._trackDetails=null;this._flingDrawer(F,h);if(this._drawerState===this._DRAWER_STATE.FLINGING)return}E/=2;F.detail.dx<-E?this.opened=this.position==="right":F.detail.dx>E&&(this.opened=this.position==="left");W?this.debounce("_resetDrawerState",this._resetDrawerState):this.debounce("_resetDrawerState",this._resetDrawerState,
this.transitionDuration);this._styleTransitionDuration(this.transitionDuration);this._resetDrawerTranslate();this.style.visibility=""}},
_calculateVelocity:function(F,W){for(var E=Date.now(),h=E-100,d,V=0,R=W.length-1;V<=R;){var M=V+R>>1,g=W[M];g.timeStamp>=h?(d=g,R=M-1):V=M+1}return d?(F.detail.dx-d.dx)/(E-d.timeStamp||1):0},
_flingDrawer:function(F,W){W=this._calculateVelocity(F,W);if(!(Math.abs(W)<this._MIN_FLING_THRESHOLD)){this._drawerState=this._DRAWER_STATE.FLINGING;F=F.detail.dx+this._translateOffset;var E=this.getWidth(),h=this.position==="left",d=W>0;d?(W=Math.max(W,this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="left"):(W=Math.min(W,-this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="right");W=this._FLING_INITIAL_SLOPE*(!d&&h?-(F+E):d&&!h?E-F:-F)/W;this._styleTransitionDuration(W);this._styleTransitionTimingFunction(this._FLING_TIMING_FUNCTION);
this._resetDrawerTranslate();this.debounce("_resetDrawerState",this._resetDrawerState,W)}},
_styleTransitionDuration:function(F){this.style.transitionDuration=F+"ms";this.$.contentContainer.style.transitionDuration=F+"ms";this.$.scrim.style.transitionDuration=F+"ms"},
_styleTransitionTimingFunction:function(F){this.$.contentContainer.style.transitionTimingFunction=F;this.$.scrim.style.transitionTimingFunction=F},
_translateDrawer:function(F){var W=this.getWidth();this.position==="left"?(F=Math.max(-W,Math.min(F,0)),this.$.scrim.style.opacity=1+F/W):(F=Math.max(0,Math.min(F,W)),this.$.scrim.style.opacity=1-F/W);this.translate3d(F+"px","0","0",this.$.contentContainer)},
_resetDrawerTranslate:function(){this.$.scrim.style.opacity="";this.transform("",this.$.contentContainer)},
_resetDrawerState:function(){var F=this._drawerState;F===this._DRAWER_STATE.FLINGING&&(this._styleTransitionDuration(this.transitionDuration),this._styleTransitionTimingFunction(""),this.style.visibility="");this._savedWidth=null;this._drawerState=this.opened?this.persistent?this._DRAWER_STATE.OPENED_PERSISTENT:this._DRAWER_STATE.OPENED:this._DRAWER_STATE.CLOSED;F!==this._drawerState&&(this._drawerState===this._DRAWER_STATE.OPENED?(this._setKeyboardFocusTrap(),document.addEventListener("keydown",
this._boundEscKeydownHandler),document.body.style.overflow="hidden"):(document.removeEventListener("keydown",this._boundEscKeydownHandler),document.body.style.overflow=""),F!==this._DRAWER_STATE.INIT&&this.fire("app-drawer-transitioned"))},
resetLayout:function(){this.fire("app-reset-layout")},
_setKeyboardFocusTrap:function(){if(!this.noFocusTrap){var F=_.sg(this).querySelectorAll('a[href]:not([tabindex="-1"]),area[href]:not([tabindex="-1"]),input:not([disabled]):not([tabindex="-1"]),select:not([disabled]):not([tabindex="-1"]),textarea:not([disabled]):not([tabindex="-1"]),button:not([disabled]):not([tabindex="-1"]),iframe:not([tabindex="-1"]),[tabindex]:not([tabindex="-1"]),[contentEditable=true]:not([tabindex="-1"])');F.length>0?(this._firstTabStop=F[0],this._lastTabStop=F[F.length-1]):
this._lastTabStop=this._firstTabStop=null;(F=this.getAttribute("tabindex"))&&parseInt(F,10)>-1?this.focus():this._firstTabStop&&this._firstTabStop.focus()}},
_tabKeydownHandler:function(F){this.noFocusTrap||this._drawerState!==this._DRAWER_STATE.OPENED||F.keyCode!==9||(F.shiftKey?this._firstTabStop&&_.sg(F).localTarget===this._firstTabStop&&(F.preventDefault(),this._lastTabStop.focus()):this._lastTabStop&&_.sg(F).localTarget===this._lastTabStop&&(F.preventDefault(),this._firstTabStop.focus()))},
_openedPersistentChanged:function(F,W){this.toggleClass("visible",F&&!W,this.$.scrim);this.debounce("_resetDrawerState",this._resetDrawerState,this.transitionDuration)},
_MIN_FLING_THRESHOLD:.2,_MIN_TRANSITION_VELOCITY:1.2,_FLING_TIMING_FUNCTION:"cubic-bezier(0.667, 1, 0.667, 1)",_FLING_INITIAL_SLOPE:1.5,_DRAWER_STATE:{INIT:0,OPENED:1,OPENED_PERSISTENT:2,CLOSED:3,TRACKING:4,FLINGING:5}});var cjK;var Ddg;_.k3({_template:function(){if(Ddg!==void 0)return Ddg;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-progress--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_progress.tp.yt.paper.progress.css.js--\x3e<div id="progressContainer" class="style-scope tp-yt-paper-progress">\n  <div id="secondaryProgress" hidden$="[[_hideSecondaryProgress(secondaryRatio)]]" class="style-scope tp-yt-paper-progress"></div>\n  <div id="primaryProgress" class="style-scope tp-yt-paper-progress"></div>\n</div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);var W=F.content,E=W.insertBefore;cjK===void 0&&(cjK=document.createElement("template"));var h=cjK;E.call(W,h.content.cloneNode(!0),F.content.firstChild);return Ddg=F},
is:"tp-yt-paper-progress",behaviors:[BN8],properties:{secondaryProgress:{type:Number,value:0},secondaryRatio:{type:Number,value:0,readOnly:!0},indeterminate:{type:Boolean,value:!1,observer:"_toggleIndeterminate"},disabled:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_disabledChanged"}},observers:["_progressChanged(secondaryProgress, value, min, max, indeterminate)"],hostAttributes:{role:"progressbar"},_toggleIndeterminate:function(F){this.toggleClass("indeterminate",F,this.$.primaryProgress)},
_transformProgress:function(F,W){F.style.transform=F.style.webkitTransform="scaleX("+W/100+")"},
_mainRatioChanged:function(F){this._transformProgress(this.$.primaryProgress,F)},
_progressChanged:function(F,W,E,h,d){F=this._clampValue(F);W=this._clampValue(W);var V=this._calcRatio(F)*100,R=this._calcRatio(W)*100;this._setSecondaryRatio(V);this._transformProgress(this.$.secondaryProgress,V);this._transformProgress(this.$.primaryProgress,R);this.secondaryProgress=F;d?this.removeAttribute("aria-valuenow"):this.setAttribute("aria-valuenow",W);this.setAttribute("aria-valuemin",E);this.setAttribute("aria-valuemax",h)},
_disabledChanged:function(F){this.setAttribute("aria-disabled",F?"true":"false")},
_hideSecondaryProgress:function(F){return F===0}});var xd6;var kNx;var Aj6=function(){};
_.N=Aj6.prototype;_.N.registered=function(){};
_.N.addOwnKeyBinding=function(){};
_.N.removeOwnKeyBindings=function(){};
_.N.keyboardEventMatchesKeys=function(){};
_.N._collectKeyBindings=function(){};
_.N._prepKeyBindings=function(){};
_.N._addKeyBinding=function(){};
_.N._resetKeyEventListeners=function(){};
_.N._listenKeyEventListeners=function(){};
_.N._unlistenKeyEventListeners=function(){};
_.N._onKeyBindingEvent=function(){};
_.N._triggerKeyHandler=function(){};
_.N._tapHandler=function(){};
_.N._focusChanged=function(){};
_.N._detectKeyboardFocus=function(){};
_.N._userActivate=function(){};
_.N._upHandler=function(){};
_.N._spaceKeyDownHandler=function(){};
_.N._spaceKeyUpHandler=function(){};
_.N._asyncClick=function(){};
_.N._pressedChanged=function(){};
_.N._ariaActiveAttributeChanged=function(){};
_.N._activeChanged=function(){};
_.N._controlStateChanged=function(){};
_.N._changedButtonState=function(){};
_.N._focusBlurHandler=function(){};
_.N._disabledChanged=function(){};
_.N._changedControlState=function(){};
_.N._buttonStateChanged=function(){};
_.N._downHandler=function(){};
_.N.ensureRipple=function(){};
_.N.getRipple=function(){};
_.N.hasRipple=function(){};
_.N._noinkChanged=function(){};
_.N._calcRatio=function(){};
_.N._clampValue=function(){};
_.N._calcStep=function(){};
_.N._validateValue=function(){};
_.N._update=function(){};
_.N._setImmediateValue=function(){};
_.N._setExpand=function(){};
_.N._setDragging=function(){};
_.N._setTransiting=function(){};
_.N._setMarkers=function(){};
_.N._setPressed=function(){};
_.N._setPointerDown=function(){};
_.N._setReceivedFocusFromKeyboard=function(){};
_.N._setFocused=function(){};
_.N._setRatio=function(){};
Aj6=_.k3({_template:function(){if(kNx!==void 0)return kNx;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-slider--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_slider.tp.yt.paper.slider.css.js--\x3e<div id="sliderContainer" class$="[[_getClassNames(disabled, pin, snaps, immediateValue, min, expand, dragging, transiting, editable)]] style-scope tp-yt-paper-slider">\n  <div class="bar-container style-scope tp-yt-paper-slider">\n    <tp-yt-paper-progress disabled$="[[disabled]]" id="sliderBar" aria-hidden="true" min="[[min]]" max="[[max]]" step="[[step]]" value="[[immediateValue]]" secondary-progress="[[secondaryProgress]]" on-down="_bardown" on-up="_resetKnob" on-track="_bartrack" on-tap="_barclick" class="style-scope tp-yt-paper-slider">\n    </tp-yt-paper-progress>\n  </div>\n\n  <template is="dom-if" if="[[snaps]]" class="style-scope tp-yt-paper-slider">\n    <div class="slider-markers style-scope tp-yt-paper-slider">\n      <template is="dom-repeat" items="[[markers]]" class="style-scope tp-yt-paper-slider">\n        <div class="slider-marker style-scope tp-yt-paper-slider"></div>\n      </template>\n    </div>\n  </template>\n\n  <div id="sliderKnobContainer" class="slider-knob-container style-scope tp-yt-paper-slider">\n    <div id="sliderKnob" class="slider-knob style-scope tp-yt-paper-slider" on-down="_knobdown" on-up="_resetKnob" on-track="_onTrack" on-transitionend="_knobTransitionEnd">\n      <div class="slider-knob-inner style-scope tp-yt-paper-slider" value$="[[immediateValue]]"></div>\n    </div>\n  </div>\n</div>\n\n<template is="dom-if" if="[[editable]]" class="style-scope tp-yt-paper-slider">\n  <tp-yt-paper-input id="input" type="number" step="[[step]]" min="[[min]]" max="[[max]]" class="slider-input style-scope tp-yt-paper-slider" disabled$="[[disabled]]" value="[[immediateValue]]" on-change="_changeValue" on-keydown="_inputKeyDown" no-label-float="">\n  </tp-yt-paper-input>\n</template>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);var W=F.content,E=W.insertBefore;xd6===void 0&&(xd6=document.createElement("template"));var h=xd6;E.call(W,h.content.cloneNode(!0),F.content.firstChild);return kNx=F},
is:"tp-yt-paper-slider",behaviors:[_.$5,_.Jj,_.GtU,BN8],properties:{value:{type:Number,value:0},snaps:{type:Boolean,value:!1,notify:!0},pin:{type:Boolean,value:!1,notify:!0},secondaryProgress:{type:Number,value:0,notify:!0,observer:"_secondaryProgressChanged"},editable:{type:Boolean,value:!1},immediateValue:{type:Number,value:0,readOnly:!0,notify:!0},maxMarkers:{type:Number,value:0,notify:!0},expand:{type:Boolean,value:!1,readOnly:!0},ignoreBarTouch:{type:Boolean,value:!1},dragging:{type:Boolean,
value:!1,readOnly:!0,notify:!0},transiting:{type:Boolean,value:!1,readOnly:!0},markers:{type:Array,readOnly:!0,value:function(){return[]}},
light:{type:Boolean,value:!1,reflectToAttribute:!0}},observers:["_updateKnob(value, min, max, snaps, step)","_valueChanged(value)","_immediateValueChanged(immediateValue)","_updateMarkers(maxMarkers, min, max, snaps)"],hostAttributes:{role:"slider",tabindex:0},keyBindings:{left:"_leftKey",right:"_rightKey","down pagedown home":"_decrementKey","up pageup end":"_incrementKey"},ready:function(){this.ignoreBarTouch&&_.Jt(this.$.sliderBar,"auto")},
increment:function(){this.value=this._clampValue(this.value+this.step)},
decrement:function(){this.value=this._clampValue(this.value-this.step)},
_updateKnob:function(F,W,E){this.setAttribute("aria-valuemin",W);this.setAttribute("aria-valuemax",E);this.setAttribute("aria-valuenow",F);this._positionKnob(this._calcRatio(F)*100)},
_valueChanged:function(){this.fire("value-change",{composed:!0})},
_immediateValueChanged:function(){this.dragging?this.fire("immediate-value-change",{composed:!0}):this.value=this.immediateValue},
_secondaryProgressChanged:function(){this.secondaryProgress=this._clampValue(this.secondaryProgress)},
_expandKnob:function(){this._setExpand(!0)},
_resetKnob:function(){this.cancelDebouncer("expandKnob");this._setExpand(!1)},
_positionKnob:function(F){this._setImmediateValue(this._calcStep(this._calcKnobPosition(F)));this._setRatio(this._calcRatio(this.immediateValue)*100);this.$.sliderKnob.style.left=this.ratio+"%";this.dragging&&(this._knobstartx=this.ratio*this._w/100,this.translate3d(0,0,0,this.$.sliderKnob))},
_calcKnobPosition:function(F){return(this.max-this.min)*F/100+this.min},
_onTrack:function(F){F.stopPropagation();switch(F.detail.state){case "start":this._trackStart(F);break;case "track":this._trackX(F);break;case "end":this._trackEnd()}},
_trackStart:function(){this._setTransiting(!1);this._w=this.$.sliderBar.offsetWidth;this._knobstartx=this._startx=this._x=this.ratio*this._w/100;this._minx=-this._startx;this._maxx=this._w-this._startx;this.$.sliderKnob.classList.add("dragging");this._setDragging(!0)},
_trackX:function(F){this.dragging||this._trackStart(F);this._x=this._startx+Math.min(this._maxx,Math.max(this._minx,F.detail.dx*(this._isRTL?-1:1)));F=this._calcStep(this._calcKnobPosition(this._x/this._w*100));this._setImmediateValue(F);F=this._calcRatio(this.immediateValue)*this._w-this._knobstartx;this.translate3d(F+"px",0,0,this.$.sliderKnob)},
_trackEnd:function(){var F=this.$.sliderKnob.style;this.$.sliderKnob.classList.remove("dragging");this._setDragging(!1);this._resetKnob();this.value=this.immediateValue;F.transform=F.webkitTransform="";this.fire("change",{composed:!0})},
_knobdown:function(F){this._expandKnob();F.preventDefault();this.focus()},
_bartrack:function(F){this._allowBarEvent(F)&&this._onTrack(F)},
_barclick:function(F){this._w=this.$.sliderBar.offsetWidth;var W=this.$.sliderBar.getBoundingClientRect();W=(F.detail.x-W.left)/this._w*100;this._isRTL&&(W=100-W);var E=this.ratio;this._setTransiting(!0);this._positionKnob(W);E===this.ratio&&this._setTransiting(!1);this.async(function(){this.fire("change",{composed:!0})});
F.preventDefault();this.focus()},
_bardown:function(F){this._allowBarEvent(F)&&(this.debounce("expandKnob",this._expandKnob,60),this._barclick(F))},
_knobTransitionEnd:function(F){F.target===this.$.sliderKnob&&this._setTransiting(!1)},
_updateMarkers:function(F,W,E,h){h||this._setMarkers([]);W=Math.round((E-W)/this.step);W>F&&(W=F);if(W<0||!isFinite(W))W=0;this._setMarkers(Array(W))},
_mergeClasses:function(F){return Object.keys(F).filter(function(W){return F[W]}).join(" ")},
_getClassNames:function(){return this._mergeClasses({disabled:this.disabled,pin:this.pin,snaps:this.snaps,ring:this.immediateValue<=this.min,expand:this.expand,dragging:this.dragging,transiting:this.transiting,editable:this.editable})},
_allowBarEvent:function(F){return!this.ignoreBarTouch||F.detail.sourceEvent instanceof MouseEvent},
get _isRTL(){this.__isRTL===void 0&&(this.__isRTL=window.getComputedStyle(this).direction==="rtl");return this.__isRTL},_leftKey:function(F){this._isRTL?this._incrementKey(F):this._decrementKey(F)},
_rightKey:function(F){this._isRTL?this._decrementKey(F):this._incrementKey(F)},
_incrementKey:function(F){this.disabled||(F.detail.key==="end"?this.value=this.max:this.increment(),this.fire("change"),F.preventDefault())},
_decrementKey:function(F){this.disabled||(F.detail.key==="home"?this.value=this.min:this.decrement(),this.fire("change"),F.preventDefault())},
_changeValue:function(F){this.value=F.target.value;this.fire("change",{composed:!0})},
_inputKeyDown:function(F){F.stopPropagation()},
_createRipple:function(){this._rippleContainer=this.$.sliderKnob;return _.oVB._createRipple.call(this)},
_focusedChanged:function(F){F&&this.ensureRipple();this.hasRipple()&&(this._ripple.style.display=F?"":"none",this._ripple.holdDown=F)}});var sq$;var LyP;var wO=null,qPF=function(){};
_.N=qPF.prototype;_.N.fit=function(){};
_.N._discoverInfo=function(){};
_.N.resetFit=function(){};
_.N.refit=function(){};
_.N.position=function(){};
_.N.constrain=function(){};
_.N._sizeDimension=function(){};
_.N.__sizeDimension=function(){};
_.N.center=function(){};
_.N.__getNormalizedRect=function(){};
_.N.__getOffscreenArea=function(){};
_.N.__getPosition=function(){};
_.N.notifyResize=function(){};
_.N.assignParentResizable=function(){};
_.N.stopResizeNotificationsFor=function(){};
_.N._subscribeIronResize=function(){};
_.N._unsubscribeIronResize=function(){};
_.N.resizerShouldNotify=function(){};
_.N._onDescendantIronResize=function(){};
_.N._fireResize=function(){};
_.N._onIronRequestResizeNotifications=function(){};
_.N._parentResizableChanged=function(){};
_.N._notifyDescendant=function(){};
_.N._requestResizeNotifications=function(){};
_.N._findParent=function(){};
_.N.toggle=function(){};
_.N.open=function(){};
_.N.close=function(){};
_.N.cancel=function(){};
_.N.invalidateTabbables=function(){};
_.N._ensureSetup=function(){};
_.N._canceledChanged=function(){};
_.N._withBackdropChanged=function(){};
_.N._prepareRenderOpened=function(){};
_.N._finishRenderOpened=function(){};
_.N._finishRenderClosed=function(){};
_.N._preparePositioning=function(){};
_.N._finishPositioning=function(){};
_.N._applyFocus=function(){};
_.N._onCaptureClick=function(){};
_.N._onCaptureFocus=function(){};
_.N._onCaptureEsc=function(){};
_.N._onCaptureTab=function(){};
_.N._onIronResize=function(){};
_.N._onNodesChange=function(){};
_.N.__ensureFirstLastFocusables=function(){};
_.N.__openedChanged=function(){};
_.N.__deraf=function(){};
_.N.__updateScrollObservers=function(){};
_.N.__addScrollListeners=function(){};
_.N.__removeScrollListeners=function(){};
_.N.__isValidScrollAction=function(){};
_.N.__onCaptureScroll=function(){};
_.N.__saveScrollPosition=function(){};
_.N.__restoreScrollPosition=function(){};
_.N._setCanceled=function(){};
qPF=_.k3({_template:function(){if(LyP!==void 0)return LyP;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-toast--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_toast.tp.yt.paper.toast.css.js--\x3e<span id="label" class="style-scope tp-yt-paper-toast">{{text}}</span>\n<slot class="style-scope tp-yt-paper-toast"></slot>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);var W=F.content,E=W.insertBefore;sq$===void 0&&(sq$=document.createElement("template"));var h=sq$;E.call(W,h.content.cloneNode(!0),F.content.firstChild);return LyP=F},
is:"tp-yt-paper-toast",behaviors:[_.my],properties:{fitInto:{type:Object,value:window,observer:"_onFitIntoChanged"},horizontalAlign:{type:String,value:"left"},verticalAlign:{type:String,value:"bottom"},duration:{type:Number,value:3E3},text:{type:String,value:""},label:{type:String,value:"",observer:"_onLabelChanged"},noCancelOnOutsideClick:{type:Boolean,value:!0},noAutoFocus:{type:Boolean,value:!0},noIronAnnounce:{type:Boolean,value:!1},announceLabelUpdates:{type:Boolean,value:!1}},listeners:{transitionend:"__onTransitionEnd"},
get visible(){_.$4._warn("`visible` is deprecated, use `opened` instead");return this.opened},get _canAutoClose(){return this.duration>0&&this.duration!==Infinity},created:function(){this._autoClose=null;_.Y5.requestAvailability()},
show:function(F){typeof F=="string"&&(F={text:F});for(var W in F)W.indexOf("_")===0?_.$4._warn('The property "'+W+'" is private and was not set.'):W in this?this[W]=F[W]:_.$4._warn('The property "'+W+'" is not valid.');this.open()},
hide:function(){this.close()},
isOpened:function(){return this.opened},
__onTransitionEnd:function(F){F&&F.target===this&&F.propertyName==="opacity"&&(this.opened?this._finishRenderOpened():this._finishRenderClosed())},
_openedChanged:function(){this._autoClose!==null&&(this.cancelAsync(this._autoClose),this._autoClose=null);this.opened?(wO&&wO!==this&&wO.close(),wO=this,this._fireIronAnnounce(),this._canAutoClose&&(this._autoClose=this.async(this.close,this.duration))):wO===this&&(wO=null);_.pH._openedChanged.apply(this,arguments)},
_onLabelChanged:function(){this.opened&&this.announceLabelUpdates&&this._fireIronAnnounce()},
_renderOpened:function(){this.classList.add("paper-toast-open")},
_renderClosed:function(){this.classList.remove("paper-toast-open")},
_onFitIntoChanged:function(F){this.positionTarget=F},
_fireIronAnnounce:function(){this.noIronAnnounce||this.fire("iron-announce",{text:this.label||this.text})}});var $dK=new _.S("disablePersonalizationAction");var IGq=new _.S("showDmaConsentFlowCommand");var cTK=new _.S("showMmgNoticeCommand");var ZH8=new _.S("saveConsentAction");var XiP=function(F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.NR(F)};
_.k(XiP,_.n2);var HH8=_.ERY(XiP);var PBg=new _.S("updateTopbarAvatarAction");var JjK=new _.S("channelHandleValidationResultRenderer");var aD$=new _.S("generateHandleFromNameResultRenderer");var fDq=new _.S("channelHandleInputRenderer");var OHq=new _.S("copyLinkRenderer");var bHP=new _.S("timedCommand");var lDK=new _.S("clearCookieAction");var n5x=new _.S("getMultiPageMenuAction");var yjx=new _.S("addToGuideSectionAction"),jqT=new _.S("removeFromGuideSectionAction");var iHP=new _.S("updateNotificationsUnseenCountAction");var rjx=new _.S("resetChannelUnreadCountCommand");var TNO=new _.S("resetSubscriptionsUnreadDotCommand");var o5q=new _.S("selectLanguageCommand");var aPP=new _.S("sendFeedbackAction");var GN6=new _.S("uploadImageToScottyCommand");var YP6=new _.S("registerPromoCommand");var wiK=new _.S("setPushNotificationsEnabledCommand");var uxO=new _.S("desktopTopbarRenderer");var SP6=new _.S("surveyFollowUpRenderer");var piT=new _.S("handlesClaimingRadioOptionRenderer");var mdq=new _.S("hotkeyDialogRenderer");var Kyw=new _.S("modifyReportFormCommand");var F48=new _.S("accountLinkCommand");var W4$=new _.S("accountUnlinkCommand");var EJ6=new _.S("logAccountLinkingEventCommand");var hLT=new _.S("guideCollapsibleEntryRenderer");var dCO=new _.S("guideDownloadsEntryRenderer");var uh=new _.S("guideEntryRenderer");var NZP=new _.S("getLocationCommand");var VtF=new _.S("locationCollectionCommand");var UCN=new _.S("storiesItemViewModel");var RLN=new _.S("addToRemoteQueueAction");var eL6=new _.S("insertInRemoteQueueAction");var Mtu=new _.S("removeFromRemoteQueueAction");var gJu=new _.S("notificationRenderer");var hzx=new _.S("localWatchHistoryCommand");var QH6=new _.S("pdgBuyFlowHeaderRenderer");var zLT=new _.S("pdgColorSliderRenderer");var ttq=new _.S("pdgCommentOptionRenderer");var CE6=new _.S("pdgCommentPreviewRenderer");var BZ6=new _.S("superVodSelectableItemButtonRenderer");var vJO=new _.S("switchButtonRenderer");var II8=new _.S("upsellDialogRenderer");var c7w=new _.S("feedbackQuestionRenderer"),DC6=new _.S("feedbackOptionRenderer");var xCK=new _.S("sponsorshipsTierRenderer"),khg=new _.S("sponsorshipsPromotionChannelRenderer");var A7K=new _.S("simpleSurveyMessageRenderer");var aGu=new _.S("invokeInstrumentManagerAction");var sH6=new _.S("logYpcFlowDismissCommand");var L4T=new _.S("logYpcFlowStartCommand");var qa$=new _.S("unlimitedCreateFamilyEndpoint");var $CP=new _.S("iconBadgeRenderer");var hn$=new _.S("collaborativePlaylistVisibilityValidationRule");var ZiK=function(F){_.xU.call(this,"channelMessage");this.message=F};
_.k(ZiK,_.xU);var XPP=function(F){_.xU.call(this,"channelError");this.error=F};
_.k(XPP,_.xU);var Hiq={AUTOPLAY:"atp",SKA_SKIPPABLE_ADS:"ska",QUEUE_SUPPORT:"que",MULTI_USER_SESSIONS:"mus",SINGLE_USER_SESSIONS:"sus",HAS_DISPLAY:"dsp",SCREEN_EXTENDED_QUEUE_SUPPORT:"seq",MIC:"mic",DPAD:"dpa",MULTISTATE_LOOP_MODE:"mlm",DISCONNECT_STRATEGY_DEFFERRED_TO_RECEIVER:"dsdtr",NATIVE_BROWSE:"ntb",VARIABLE_SPEED:"vsp",ENABLE_VIDEO_SOURCE_CLIENT_NAME:"scn",RECEIVER_PLAYLIST_EXPANSION:"rpe",DISABLE_CURRENTINDEX_IN_NOWPLAYING:"dcn",DISABLE_CURRENTINDEX_IN_PLAYLISTMODIFIED:"dcp",PAUSE_AT_START:"pas",DISABLE_QUEUE_FOR_RECEIVER_ONLY_SESSION:"drq",
ONUSERACTIVITY_POLLING_FREQUENCY:"opf",ENABLE_LOUNGE_STATUS_PLAYBACK:"els",ENABLE_IDENTITY_SWITCH_TO_GUEST:"isg",SERVER_QUEUES:"svq",MULTIVIEW_PLAYBACK:"mvp",ACTIVE_DEVICE_STORE_WRITES:"ads",STREAM_TRANSFER_CREATE_PLAYLIST:"stcp",SHORTS_ACTIVE_DEVICE_STORE_WRITES:"sads",DISABLE_LOGGED_OUT_CASTING:"dloc",DUAL_CTT_WRITES:"dcw"},PEN={UNKNOWN_THEME:"u",CLASSIC:"cl",KIDS:"k",INSTANT:"i",CREATOR:"cr",MUSIC:"m",GAMING:"g",UNPLUGGED:"up"},J7F={AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange"},
aIT={NOW_PLAYING:"nowPlaying",ON_STATE_CHANGE:"onStateChange",AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange",NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"},fIN={NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"};var SY=function(F){this.name=this.id="";this.clientName="UNKNOWN_INTERFACE";this.app="";this.type="REMOTE_CONTROL";this.ownerObfuscatedGaiaId=this.obfuscatedGaiaId=this.avatar=this.username="";this.connected=!1;this.capabilities=new Set;this.compatibleSenderThemes=new Set;this.experiments=new Set;this.theme="u";new _.tj;this.localChannelEncryptionKey=this.remoteControllerUrl="";this.deviceContext=void 0;this.model=this.brand="";this.year=0;this.chipset=this.osVersion=this.os="";this.mdxDialServerType=
"MDX_DIAL_SERVER_TYPE_UNKNOWN";this.pairingType="unknown";F&&(this.id=F.id||F.name,this.name=F.name,this.clientName=F.clientName?F.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.app=F.app,this.type=F.type||"REMOTE_CONTROL",this.username=F.user||"",this.avatar=F.userAvatarUri||"",this.obfuscatedGaiaId=F.obfuscatedGaiaId||"",this.ownerObfuscatedGaiaId=F.ownerObfuscatedGaiaId||"",this.theme=F.theme||"u",OiK(this,F.capabilities||""),bi$(this,F.compatibleSenderThemes||""),lI8(this,F.experiments||""),
this.remoteControllerUrl=F.remoteControllerUrl||"",this.localChannelEncryptionKey=F.localChannelEncryptionKey||"",this.deviceContext=F.deviceContext,this.brand=F.brand||"",this.model=F.model||"",this.year=F.year||0,this.os=F.os||"",this.osVersion=F.osVersion||"",this.chipset=F.chipset||"",this.mdxDialServerType=F.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN",this.pairingType=F.pairingType||"unknown",F=F.deviceInfo)&&(F=JSON.parse(F),this.brand=F.brand||"",this.model=F.model||"",this.year=F.year||
0,this.os=F.os||"",this.osVersion=F.osVersion||"",this.chipset=F.chipset||"",this.clientName=F.clientName?F.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.mdxDialServerType=F.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN")};
SY.prototype.copy=function(){var F={id:this.id,name:this.name,app:this.app,type:this.type,user:this.username,userAvatarUri:this.avatar,obfuscatedGaiaId:this.obfuscatedGaiaId,ownerObfuscatedGaiaId:this.ownerObfuscatedGaiaId,theme:this.theme,capabilities:Array.from(this.capabilities.values()).join(","),compatibleSenderThemes:Array.from(this.compatibleSenderThemes.values()).join(","),experiments:Array.from(this.experiments.values()).join(","),pairingType:this.pairingType};this.brand&&(F.brand=this.brand);
this.model&&(F.model=this.model);this.year&&(F.year=this.year);this.os&&(F.os=this.os);this.osVersion&&(F.osVersion=this.osVersion);this.chipset&&(F.chipset=this.chipset);this.clientName!=="UNKNOWN_INTERFACE"&&(F.clientName=this.clientName);this.mdxDialServerType!=="MDX_DIAL_SERVER_TYPE_UNKNOWN"&&(F.mdxDialServerType=this.mdxDialServerType);F=new SY(F);F.connected=this.connected;F.remoteControllerUrl=this.remoteControllerUrl;F.localChannelEncryptionKey=this.localChannelEncryptionKey;F.deviceContext=
this.deviceContext;return F};
SY.prototype.equals=function(F){return F?this.id==F.id:!1};
var OiK=function(F,W){F.capabilities.clear();_.QF(W.split(","),_.v5(_.xd.contains,Hiq)).forEach(function(E){F.capabilities.add(E)})},bi$=function(F,W){F.compatibleSenderThemes.clear();
_.QF(W.split(","),_.v5(_.xd.contains,PEN)).forEach(function(E){F.compatibleSenderThemes.add(E)})},lI8=function(F,W){F.experiments.clear();
W.split(",").forEach(function(E){F.experiments.add(E)})};var nJP=function(F,W){this.action=F;this.params=W||{}};_.Ma(L18,_.xj);_.N=L18.prototype;_.N.JSC$17408_onTick_=function(){this.JSC$17406_interval_=Math.min(3E5,this.JSC$17406_interval_*2);this.JSC$17408_listener_();this.nextTickTime_&&this.start()};
_.N.start=function(){var F=this.JSC$17406_interval_+15E3*Math.random(),W=this.delay_;W.isActive()||W.start(F);this.nextTickTime_=Date.now()+F};
_.N.stop=function(){this.delay_.stop();this.nextTickTime_=0};
_.N.isActive=function(){return this.delay_.isActive()};
_.N.reset=function(){this.delay_.stop();this.JSC$17406_interval_=5E3};_.Ma(P4,Qq6);_.N=P4.prototype;_.N.subscribe=function(F,W,E){return this.pubsub_.subscribe(F,W,E)};
_.N.unsubscribe=function(F,W,E){return this.pubsub_.unsubscribe(F,W,E)};
_.N.unsubscribeByKey=function(F){return this.pubsub_.unsubscribeByKey(F)};
_.N.publish=function(F,W){return this.pubsub_.publish.apply(this.pubsub_,arguments)};
_.N.dispose=function(){this.JSC$17409_disposed_||(this.JSC$17409_disposed_=!0,_.u5(this.pubsub_),this.disconnect(),_.u5(this.reconnectTimer_),this.reconnectTimer_=null,this.JSC$17409_getXsrfToken_=function(){return""},this.getAuthorizationHeader_=function(){return _.e7({})})};
_.N.isDisposed=function(){return this.JSC$17409_disposed_};
_.N.connect=function(F,W,E){var h=this,d,V,R,M;return _.e(function(g){if(g.nextAddress==1)return _.U0(g,2),h.useAsyncBrowserChannelHandler_?_.Q(g,h.connectPromise_,2):g.jumpTo(2);_.V0(g);if(h.JSC$17409_disposed_||h.JSC$17409_channel_&&h.JSC$17409_channel_.getState()==2)return g.return();h.sCookie_="";h.reconnectTimer_.stop();h.connectionParams_=F||null;h.connectUi_=W||0;d=h.JSC$17409_pathPrefix_+"/test";V=h.JSC$17409_pathPrefix_+"/bind";R=new oX(E?E.firstTestResults:null,E?E.secondTestResults:null,
h.enableAsyncTest_);if(M=h.JSC$17409_channel_)M.handler_=null;R.handler_=h;h.JSC$17409_channel_=R;if(h.useAsyncBrowserChannelHandler_)return h.connectPromise_=y7P(h).then(function(){return jHP(h,d,V,M,E)}),g.return(h.connectPromise_.then(function(){h.connectPromise_=_.e7()}));
jHP(h,d,V,M,E);return _.eJ(g,0)})};
var jHP=function(F,W,E,h,d){iiK(F);if(F.JSC$17409_channel_){var V=_.b0("ID_TOKEN"),R=F.JSC$17409_channel_.JSC$17361_extraHeaders_||{};V?R["x-youtube-identity-token"]=V:delete R["x-youtube-identity-token"];F.JSC$17409_channel_.JSC$17361_extraHeaders_=R}r76(F);h?(h.getState(),F.JSC$17409_channel_.connect(W,E,F.defaultQueryParams_,h.sid_,h.JSC$17361_lastArrayId_)):d?F.JSC$17409_channel_.connect(W,E,F.defaultQueryParams_,d.sessionId,d.arrayId):F.JSC$17409_channel_.connect(W,E,F.defaultQueryParams_)};
P4.prototype.disconnect=function(F){try{this.useAsyncBrowserChannelHandler_&&(this.connectPromise_.cancel(),this.connectPromise_=_.e7())}finally{this.disconnectUi_=F||0,this.reconnectTimer_&&this.reconnectTimer_.stop(),iiK(this),this.JSC$17409_channel_&&(this.JSC$17409_channel_.getState()==3&&VMK(this.JSC$17409_channel_),this.JSC$17409_channel_.disconnect()),this.disconnectUi_=0}};
P4.prototype.sendMessage=function(F,W){var E=this,h;return _.e(function(d){switch(d.nextAddress){case 1:_.U0(d,2);if(!E.useAsyncBrowserChannelHandler_){d.jumpTo(2);break}return _.Q(d,E.connectPromise_,2);case 2:_.V0(d);if(E.JSC$17409_disposed_)return d.return();h={_sc:F};W&&_.xd.extend(h,W);if(E.reconnectTimer_.isActive()||(E.JSC$17409_channel_?E.JSC$17409_channel_.getState():0)==2){E.JSC$17409_pendingMessages_.push(h);d.jumpTo(6);break}if(!E.isChannelOpened()){d.jumpTo(6);break}_.U0(d,8);if(!E.useAsyncBrowserChannelHandler_||
TZx(E,F)){d.jumpTo(8);break}return _.Q(d,y7P(E),8);case 8:_.V0(d,0,0,1);E.isChannelOpened()&&(TZx(E,F)||r76(E),iiK(E),NNq(E.JSC$17409_channel_,h));_.eJ(d,6,1);break;case 6:_.eJ(d,0)}})};
var TZx=function(F,W){return F.enableMdxAuthForConnectionOnly_?!0:F.disableMdxAuthForAdMessages_?Object.values(J7F).includes(W):F.disableMdxAuthForNonPlaybackMessages_?!Object.values(aIT).includes(W):F.disableMdxAuthForShortsMessages_?Object.values(fIN).includes(W):!1};
P4.prototype.JSC$17368_channelOpened=function(){this.reconnectTimer_.reset();this.connectionParams_=null;this.connectUi_=0;if(this.JSC$17409_pendingMessages_.length)if(this.useAsyncBrowserChannelHandler_)oJ$(this);else{var F=this.JSC$17409_pendingMessages_;this.JSC$17409_pendingMessages_=[];var W=F.length;r76(this);GhF(this,F,W);Ya$(this)}else Ya$(this)};
var oJ$=function(F){var W,E;_.e(function(h){if(h.nextAddress==1)return _.U0(h,2),_.Q(h,y7P(F),2);_.V0(h);W=F.JSC$17409_pendingMessages_;F.JSC$17409_pendingMessages_=[];E=W.length;GhF(F,W,E);Ya$(F);return _.eJ(h,0)})},GhF=function(F,W,E){for(var h=0;h<E;++h)NNq(F.JSC$17409_channel_,W[h]);
Ya$(F)},Ya$=function(F){F.publish("handlerOpened");
F.JSC$17409_channelOpenedCounter.increment("BROWSER_CHANNEL")};
_.N=P4.prototype;_.N.JSC$17368_channelError=function(F){var W=F==2&&this.JSC$17409_channel_.JSC$17361_lastStatusCode_==401;F==4||W||this.reconnectTimer_.start();this.publish("handlerError",F,W);W=Object.keys(pDx).find(function(E){return pDx[E]===F});
this.JSC$17409_channelErrorCounter.increment("BROWSER_CHANNEL",W!=null?W:"UNKNOWN")};
_.N.JSC$17368_channelClosed=function(F,W){if(!this.reconnectTimer_.isActive())this.publish("handlerClosed");else if(W)for(var E=W.length,h=0;h<E;++h){var d=W[h].map;d&&this.JSC$17409_pendingMessages_.push(d)}this.JSC$17409_channelClosedCounter.increment("BROWSER_CHANNEL");F&&this.pendingMapsOnClosedCounter.JSC$7834_streamzService.JSC$7692_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps",F.length);W&&this.undeliveredMapsOnClosedCounter.JSC$7837_streamzService.JSC$7692_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps",
W.length)};
_.N.JSC$17368_channelSuccess=function(F,W){W!=null&&F!=null&&this.channelMessageSentCounter.increment()};
_.N.JSC$17368_getAdditionalParams=function(){var F={v:2};this.sCookie_&&(F.gsessionid=this.sCookie_);this.connectUi_!=0&&(F.ui=""+this.connectUi_);this.disconnectUi_!=0&&(F.ui=""+this.disconnectUi_);this.connectionParams_&&_.xd.extend(F,this.connectionParams_);return F};
_.N.JSC$17368_channelHandleArray=function(F){F[0]=="S"?this.sCookie_=F[1]:F[0]=="gracefulReconnect"?(this.reconnectTimer_.start(),this.JSC$17409_channel_.disconnect()):this.publish("handlerMessage",new nJP(F[0],F[1]));this.JSC$17409_channelMessageReceivedCounter.increment("BROWSER_CHANNEL")};
_.N.isChannelOpened=function(){return!!this.JSC$17409_channel_&&this.JSC$17409_channel_.getState()==3};
var iiK=function(F){if(F.JSC$17409_channel_){var W=F.JSC$17409_getXsrfToken_(),E=F.JSC$17409_channel_.JSC$17361_extraHeaders_||{};W?E["x-youtube-lounge-xsrf-token"]=W:delete E["x-youtube-lounge-xsrf-token"];F.JSC$17409_channel_.JSC$17361_extraHeaders_=E}},y7P=function(F){if(F.enableAsyncMdxLibraryWithoutAuthHeaderFetch_)return _.e7();
if(!F.enableCachedUpdateAuthorizationHeader_)return wPu(F);F.updateAuthorizationHeaderPromise_===null&&(F.updateAuthorizationHeaderPromise_=wPu(F));return F.updateAuthorizationHeaderPromise_},wPu=function(F){return _.HI(F.getAuthorizationHeader_().then(function(W){uWw(F,W)}).thenCatch(function(){}),function(){F.updateAuthorizationHeaderPromise_=null})},uWw=function(F,W){if(F.JSC$17409_channel_){var E=F.JSC$17409_channel_.JSC$17361_extraHeaders_||{};
W&&Object.keys(W).length>0?E=Object.assign({},E,W):delete E.Authorization;F.JSC$17409_channel_.JSC$17361_extraHeaders_=E}},r76=function(F){F.getAuthorizationHeaderSync_&&!F.useAsyncBrowserChannelHandler_&&uWw(F,F.getAuthorizationHeaderSync_())};
_.N=P4.prototype;_.N.setLoungeToken=function(F){(this.defaultQueryParams_.loungeIdToken=F)||this.reconnectTimer_.stop();if(this.enableLoungeTokenRefresh_&&this.JSC$17409_channel_){var W=this.JSC$17409_channel_.JSC$17361_extraHeaders_||{};F?W["X-YouTube-LoungeId-Token"]=F:delete W["X-YouTube-LoungeId-Token"];this.JSC$17409_channel_.JSC$17361_extraHeaders_=W}};
_.N.getDeviceId=function(){return this.defaultQueryParams_.id};
_.N.getReconnectTimeout=function(){return this.reconnectTimer_.isActive()?this.reconnectTimer_.nextTickTime_-Date.now():NaN};
_.N.reconnect=function(){var F=this.reconnectTimer_;F.delay_.fire();F.start()};
_.N.safeReconnect_=function(){var F=this.JSC$17409_channel_,W=0;F.JSC$17361_backChannelRequest_&&W++;F.forwardChannelRequest_&&W++;W==0&&this.connect(this.connectionParams_,this.connectUi_)};var ne=function(F,W){var E=F.basePath;F.supportCors&&(E=F.scheme+"://"+F.domain+F.port+F.basePath);return _.wo(E+W,{})};
Js.prototype.sendRequest=function(F,W,E,h,d,V,R){F={format:V?"RAW":"JSON",method:F,context:this,timeout:5E3,withCredentials:!!R,onSuccess:_.v5(this.JSC$17414_onSuccess_,h,!V),onError:_.v5(this.onError_,d),onTimeout:_.v5(this.JSC$17414_onTimeout_,d)};E&&(F.postParams=E,F.headers={"Content-Type":"application/x-www-form-urlencoded"});return _.Qy(W,F)};
Js.prototype.JSC$17414_onSuccess_=function(F,W,E,h){W?F(h):F({text:E.responseText})};
Js.prototype.onError_=function(F,W){F(Error("Bk`"+W.status))};
Js.prototype.JSC$17414_onTimeout_=function(F){F(Error("Ck"))};var fe=function(F,W){return!!W&&(F.id==W||F.uuid==W)},Sa6=function(F){return{name:F.name,
screenId:F.id,loungeToken:F.token,dialId:F.uuid,screenIdType:F.idType}},pPx=function(F){return new aU(F)},mCF=function(F){return Array.isArray(F)?_.AN(F,pPx):[]},f2x=function(F){if(!F)return"null";
var W=F.token?".."+F.token.slice(-6):"-",E=F.uuid?".."+F.uuid.slice(-6):"-";return'{name:"'+F.name+'",id:'+F.id.substr(0,6)+"..,token:"+(W+",uuid:"+E+",idType:"+F.idType+"}")},esx=function(F){return Array.isArray(F)?"["+_.AN(F,f2x).join(",")+"]":"null"};var rRP="",lw=null;var mWx=function(F,W){_.qo.call(this);var E=this;this.handler=F();this.handler.subscribe("handlerOpened",this.JSC$17421_onOpened,this);this.handler.subscribe("handlerClosed",this.onClosed,this);this.handler.subscribe("handlerError",function(h,d){E.onError(d)});
this.handler.subscribe("handlerMessage",this.onMessage,this);this.currentScreenId=W};
_.k(mWx,_.qo);_.N=mWx.prototype;_.N.connect=function(F,W,E){this.handler.connect(F,W,E)};
_.N.disconnect=function(F){this.handler.disconnect(F)};
_.N.reconnect=function(){this.handler.reconnect()};
_.N.getDeviceId=function(){return this.handler.getDeviceId()};
_.N.getReconnectTimeout=function(){return this.handler.getReconnectTimeout()};
_.N.isChannelOpened=function(){return this.handler.isChannelOpened()};
_.N.JSC$17421_onOpened=function(){this.dispatchEvent("channelOpened");var F=this.handler,W=this.currentScreenId;_.tl("yt-remote-session-browser-channel",{firstTestResults:[""],secondTestResults:!F.JSC$17409_channel_.useChunked_,sessionId:F.JSC$17409_channel_.sid_,arrayId:F.JSC$17409_channel_.JSC$17361_lastArrayId_});_.tl("yt-remote-session-screen-id",W);F=bgF();W=lUw();_.on(F,W)||F.push(W);igN(F);jk6()};
_.N.onClosed=function(){this.dispatchEvent("channelClosed")};
_.N.onMessage=function(F){this.dispatchEvent(new ZiK(F))};
_.N.onError=function(F){this.dispatchEvent(new XPP(F?1:0))};
_.N.sendMessage=function(F,W){this.handler.sendMessage(F,W)};
_.N.setLoungeToken=function(F){this.handler.setLoungeToken(F)};
_.N.dispose=function(){this.handler.dispose()};var pfO=function(F,W,E){var h=this;E=E===void 0?function(){return""}:E;
var d=d===void 0?new AB8:d;var V=V===void 0?new _.tc:V;this.pathPrefix=F;this.defaultQueryParams=W;this.getXsrfToken=E;this.JSC$17424_pubsub=V;this.connectionParams=null;this.disconnectUi=this.connectUi=0;this.channel=null;this.channelState=0;this.reconnectTimer=new L18(function(){var R;((R=h.channel)==null?void 0:KKN((new qwN(R,R.JSC$17332_channel_)).JSC$17342_channel_.forwardChannelRequestPool_))===0&&h.connect(h.connectionParams,h.connectUi)});
this.webChannelMessageHeaders={};this.webChannelMessageUrlParams={};this.JSC$17424_disposed=!1;this.logger=null;this.nonAckedMessagesOnChannelClosed=[];this.lastStatusCode=void 0;this.JSC$17424_channelOpenedCounter=new qgq;this.JSC$17424_channelClosedCounter=new $Wu;this.JSC$17424_channelMessageReceivedCounter=new Xfg;this.JSC$17424_channelErrorCounter=new HgT};
pfO.prototype.connect=function(F,W){F=F===void 0?{}:F;W=W===void 0?0:W;this.channelState!==2&&(this.reconnectTimer.stop(),this.connectionParams=F,this.connectUi=W,K4P(this),(F=_.b0("ID_TOKEN"))?this.webChannelMessageHeaders["x-youtube-identity-token"]=F:delete this.webChannelMessageHeaders["x-youtube-identity-token"],this.defaultQueryParams&&(this.webChannelMessageUrlParams.device=this.defaultQueryParams.device,this.webChannelMessageUrlParams.name=this.defaultQueryParams.name,this.webChannelMessageUrlParams.app=
this.defaultQueryParams.app,this.webChannelMessageUrlParams.id=this.defaultQueryParams.id,this.defaultQueryParams.mdxVersion&&(this.webChannelMessageUrlParams.mdxVersion=""+this.defaultQueryParams.mdxVersion),this.defaultQueryParams.theme&&(this.webChannelMessageUrlParams.theme=this.defaultQueryParams.theme),this.defaultQueryParams.capabilities&&(this.webChannelMessageUrlParams.capabilities=this.defaultQueryParams.capabilities),this.defaultQueryParams.cst&&(this.webChannelMessageUrlParams.cst=this.defaultQueryParams.cst),
this.defaultQueryParams.authuser&&(this.webChannelMessageUrlParams.authuser=this.defaultQueryParams.authuser),this.defaultQueryParams.pageId&&(this.webChannelMessageUrlParams.pageId=this.defaultQueryParams.pageId)),this.connectUi!==0?this.webChannelMessageUrlParams.ui=""+this.connectUi:delete this.webChannelMessageUrlParams.ui,Object.assign(this.webChannelMessageUrlParams,this.connectionParams),this.channel=new lh(this.pathPrefix,{httpSessionIdParam:"gsessionid",messageHeaders:this.webChannelMessageHeaders,
messageUrlParams:this.webChannelMessageUrlParams}),this.channel.open(),this.channelState=2,F8$(this))};
var F8$=function(F){_.ce(F.channel,"w",function(){F.channelState=3;F.reconnectTimer.reset();F.connectionParams=null;F.connectUi=0;for(var W=_.U(F.nonAckedMessagesOnChannelClosed),E=W.next();!E.done;E=W.next())E=E.value,F.channel&&F.channel.send(E);F.nonAckedMessagesOnChannelClosed=[];F.publish("webChannelOpened");F.JSC$17424_channelOpenedCounter.increment("WEB_CHANNEL")});
_.ce(F.channel,"x",function(){F.channelState=0;F.reconnectTimer.isActive()||F.publish("webChannelClosed");var W,E=(W=F.channel)==null?void 0:$HN(new qwN(W,W.JSC$17332_channel_));E&&(F.nonAckedMessagesOnChannelClosed=[].concat(_.x9(E)));F.JSC$17424_channelClosedCounter.increment("WEB_CHANNEL")});
_.ce(F.channel,"z",function(W){var E=W.data;E[0]==="gracefulReconnect"?(F.reconnectTimer.start(),F.channel&&F.channel.close()):F.publish("webChannelMessage",new nJP(E[0],E[1]));F.lastStatusCode=W.statusCode;F.JSC$17424_channelMessageReceivedCounter.increment("WEB_CHANNEL")});
_.ce(F.channel,"y",function(){F.lastStatusCode===401||F.reconnectTimer.start();F.publish("webChannelError");F.JSC$17424_channelErrorCounter.increment("WEB_CHANNEL","")})};
_.N=pfO.prototype;_.N.disconnect=function(F){this.disconnectUi=F===void 0?0:F;this.reconnectTimer.stop();K4P(this);this.channel&&(this.disconnectUi!==0?this.webChannelMessageUrlParams.ui=""+this.disconnectUi:delete this.webChannelMessageUrlParams.ui,this.channel.close());this.disconnectUi=0};
_.N.getReconnectTimeout=function(){return this.reconnectTimer.isActive()?this.reconnectTimer.nextTickTime_-Date.now():NaN};
_.N.reconnect=function(){var F=this.reconnectTimer;F.delay_.fire();F.start()};
_.N.sendMessage=function(F,W){this.channel&&(K4P(this),F=Object.assign({},{_sc:F},W),this.channel.send(F))};
_.N.setLoungeToken=function(F){F||this.reconnectTimer.stop();F?this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]=F:delete this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]};
var K4P=function(F){var W=F.getXsrfToken();W?F.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]=W:delete F.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]};
_.N=pfO.prototype;_.N.getDeviceId=function(){return this.defaultQueryParams?this.defaultQueryParams.id:""};
_.N.publish=function(F){return this.JSC$17424_pubsub.publish.apply(this.JSC$17424_pubsub,[F].concat(_.x9(_.Dd.apply(1,arguments))))};
_.N.subscribe=function(F,W,E){return this.JSC$17424_pubsub.subscribe(F,W,E)};
_.N.unsubscribe=function(F,W,E){return this.JSC$17424_pubsub.unsubscribe(F,W,E)};
_.N.unsubscribeByKey=function(F){return this.JSC$17424_pubsub.unsubscribeByKey(F)};
_.N.dispose=function(){this.JSC$17424_disposed||(this.JSC$17424_disposed=!0,_.u5(this.JSC$17424_pubsub),this.disconnect(),_.u5(this.reconnectTimer),this.getXsrfToken=function(){return""})};
_.N.isDisposed=function(){return this.JSC$17424_disposed};var SgK=function(F){_.qo.call(this);this.webChannelService=F();this.webChannelService.subscribe("webChannelOpened",this.JSC$17432_onOpened,this);this.webChannelService.subscribe("webChannelClosed",this.onClosed,this);this.webChannelService.subscribe("webChannelError",this.onError,this);this.webChannelService.subscribe("webChannelMessage",this.onMessage,this)};
_.k(SgK,_.qo);_.N=SgK.prototype;_.N.connect=function(F,W){this.webChannelService.connect(F,W)};
_.N.disconnect=function(F){this.webChannelService.disconnect(F)};
_.N.reconnect=function(){this.webChannelService.reconnect()};
_.N.getDeviceId=function(){return this.webChannelService.getDeviceId()};
_.N.getReconnectTimeout=function(){return this.webChannelService.getReconnectTimeout()};
_.N.isChannelOpened=function(){return this.webChannelService.channelState===3};
_.N.JSC$17432_onOpened=function(){this.dispatchEvent("channelOpened")};
_.N.onClosed=function(){this.dispatchEvent("channelClosed")};
_.N.onMessage=function(F){this.dispatchEvent(new ZiK(F))};
_.N.onError=function(){this.dispatchEvent(new XPP(this.webChannelService.lastStatusCode===401?1:0))};
_.N.sendMessage=function(F,W){this.webChannelService.sendMessage(F,W)};
_.N.setLoungeToken=function(F){this.webChannelService.setLoungeToken(F)};
_.N.dispose=function(){this.webChannelService.dispose()};var RsK=Date.now(),y6=null,V7g=Array(50),rF=-1,UcP=!1;_.Ma(T6,_.Fl);T6.prototype.getScreens=function(){return this.screens};
T6.prototype.contains=function(F){return!!OgK(this.screens,F)};
T6.prototype.get=function(F){return F?Oo(this.screens,F):null};
var W8w=function(F,W){var E=F.get(W.uuid)||F.get(W.id);if(E)return F=E.name,E.id=W.id||E.id,E.name=W.name,E.token=W.token,E.uuid=W.uuid||E.uuid,E.name!=F;F.screens.push(W);return!0},EQ6=function(F,W){var E=F.screens.length!=W.length;
F.screens=_.QF(F.screens,function(V){return!!OgK(W,V)});
for(var h=W.length,d=0;d<h;d++)E=W8w(F,W[d])||E;return E},hIK=function(F,W){var E=F.screens.length;
F.screens=_.QF(F.screens,function(h){return!(h||W?!h!=!W?0:h.id==W.id:1)});
return F.screens.length<E};
T6.prototype.info=function(F){jx(this.JSC$17433_logName_,F)};var dIK=function(F,W,E,h,d){_.Fl.call(this);this.JSC$17436_http_=F;this.pairingCode_=W;this.deviceId_=E;this.friendlyName_=h;this.enableShortLivedLoungeToken_=d;this.pollIndex_=0;this.JSC$17436_xhr_=null;this.JSC$17436_timer_=NaN};
_.k(dIK,_.Fl);_.N=dIK.prototype;_.N.start=function(){!this.JSC$17436_xhr_&&isNaN(this.JSC$17436_timer_)&&this.poll_()};
_.N.stop=function(){this.JSC$17436_xhr_&&(this.JSC$17436_xhr_.abort(),this.JSC$17436_xhr_=null);isNaN(this.JSC$17436_timer_)||(_.M0(this.JSC$17436_timer_),this.JSC$17436_timer_=NaN)};
_.N.disposeInternal=function(){this.stop();_.Fl.prototype.disposeInternal.call(this)};
_.N.poll_=function(){this.JSC$17436_timer_=NaN;this.JSC$17436_xhr_=_.Qy(ne(this.JSC$17436_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:this.pairingCode_},timeout:5E3,onSuccess:(0,_.kj)(this.JSC$17438_onSuccess_,this),onError:(0,_.kj)(this.onError_,this),onTimeout:(0,_.kj)(this.JSC$17438_onTimeout_,this)})};
_.N.JSC$17438_onSuccess_=function(F,W){this.JSC$17436_xhr_=null;F=W.screen||{};F.dialId=this.deviceId_;F.name=this.friendlyName_;W=-1;this.enableShortLivedLoungeToken_&&F.shortLivedLoungeToken&&F.shortLivedLoungeToken.value&&F.shortLivedLoungeToken.refreshIntervalMs&&(F.screenIdType="shortLived",F.loungeToken=F.shortLivedLoungeToken.value,W=F.shortLivedLoungeToken.refreshIntervalMs);this.publish("pairingComplete",new aU(F),W)};
_.N.onError_=function(F){this.JSC$17436_xhr_=null;F.status&&F.status==404?this.pollIndex_>=NLN.length?this.publish("pairingFailed",Error("Dk")):(F=NLN[this.pollIndex_],this.JSC$17436_timer_=_.RA((0,_.kj)(this.poll_,this),F),this.pollIndex_++):this.publish("pairingFailed",Error("Ek`"+F.status))};
_.N.JSC$17438_onTimeout_=function(){this.JSC$17436_xhr_=null;this.publish("pairingFailed",Error("Fk"))};
var NLN=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];_.Ma(G6,T6);_.N=G6.prototype;_.N.start=function(){oU(this)&&this.publish("screenChange");!_.Cy("yt-remote-lounge-token-expiration")&&Vl$(this);_.M0(this.loungeTokenRefreshTimer_);this.loungeTokenRefreshTimer_=_.RA((0,_.kj)(this.start,this),1E4)};
_.N.add=function(F,W){oU(this);W8w(this,F);UIT(this,!1);this.publish("screenChange");W(F);F.token||Vl$(this)};
_.N.remove=function(F,W){var E=oU(this);hIK(this,F)&&(UIT(this,!1),E=!0);W(F);E&&this.publish("screenChange")};
_.N.updateName=function(F,W,E,h){var d=oU(this),V=this.get(F.id);V?(V.name!=W&&(V.name=W,UIT(this,!1),d=!0),E(F)):h(Error("Gk"));d&&this.publish("screenChange")};
_.N.disposeInternal=function(){_.M0(this.loungeTokenRefreshTimer_);G6.superClass_.disposeInternal.call(this)};
var Vl$=function(F){if(F.screens.length){var W=_.AN(F.screens,function(h){return h.id}),E=ne(F.JSC$17440_http_,"/pairing/get_lounge_token_batch");
F.JSC$17440_http_.sendRequest("POST",E,{screen_ids:W.join(",")},(0,_.kj)(F.handleLoungeTokens_,F),(0,_.kj)(F.handleLoungeTokenError_,F))}};
G6.prototype.handleLoungeTokens_=function(F){oU(this);var W=this.screens.length;F=F&&F.screens||[];for(var E=F.length,h=0;h<E;++h){var d=F[h],V=this.get(d.screenId);V&&(V.token=d.loungeToken,--W)}UIT(this,!W);W&&jx(this.JSC$17433_logName_,"Missed "+W+" lounge tokens.")};
G6.prototype.handleLoungeTokenError_=function(F){jx(this.JSC$17433_logName_,"Requesting lounge tokens failed: "+F)};
var oU=function(F){if(_.c("deprecate_pair_servlet_enabled"))return EQ6(F,[]);var W=mCF(ox6());W=_.QF(W,function(E){return!E.uuid});
return EQ6(F,W)},UIT=function(F,W){Ygx(_.AN(F.screens,Sa6));
W&&GMN()};var p5=function(F,W){_.Fl.call(this);this.getScreensToCheck_=W;W=(W=_.Cy("yt-remote-online-screen-ids")||"")?W.split(","):[];for(var E={},h=this.getScreensToCheck_(),d=h.length,V=0;V<d;++V){var R=h[V].id;E[R]=_.on(W,R)}this.screenIdSet_=E;this.JSC$17443_http_=F;this.refreshTimer_=this.fastCheckEndTime_=NaN;this.currentRequest_=null;RI6("Initialized with "+(0,_.ad)(this.screenIdSet_))};
_.k(p5,_.Fl);p5.prototype.isOnline=function(F){return!!this.screenIdSet_[F]};
p5.prototype.start=function(){var F=parseInt(_.Cy("yt-remote-fast-check-period")||"0",10);(this.fastCheckEndTime_=_.e2()-144E5<F?0:F)?eIN(this):(this.fastCheckEndTime_=_.e2()+3E5,_.tl("yt-remote-fast-check-period",this.fastCheckEndTime_),this.requestScreenAvailability_())};
p5.prototype.isEmpty=function(){return _.xd.isEmpty(this.screenIdSet_)};
p5.prototype.update=function(){RI6("Updating availability on schedule.");var F=this.getScreensToCheck_(),W=_.xd.filter(this.screenIdSet_,function(E,h){return E&&!!Oo(F,h)},this);
Ml6(this,W)};
var gQq=function(F,W,E){var h=ne(F.JSC$17443_http_,"/pairing/get_screen_availability");F.JSC$17443_http_.sendRequest("POST",h,{lounge_token:W.token},(0,_.kj)(function(d){d=d.screens||[];for(var V=d.length,R=0;R<V;++R)if(d[R].loungeToken==W.token){E(d[R].status=="online");return}E(!1)},F),(0,_.kj)(function(){E(!1)},F))};
p5.prototype.disposeInternal=function(){_.M0(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&(this.currentRequest_.abort(),this.currentRequest_=null);_.Fl.prototype.disposeInternal.call(this)};
var Ml6=function(F,W){a:if(_.xd.getCount(W)!=_.xd.getCount(F.screenIdSet_))var E=!1;else{E=_.xd.getKeys(W);for(var h=E.length,d=0;d<h;++d)if(!F.screenIdSet_[E[d]]){E=!1;break a}E=!0}E||(RI6("Updated online screens: "+(0,_.ad)(F.screenIdSet_)),F.screenIdSet_=W,F.publish("screenChange"));Q0g(F)},eIN=function(F){isNaN(F.refreshTimer_)||_.M0(F.refreshTimer_);
F.refreshTimer_=_.RA((0,_.kj)(F.requestScreenAvailability_,F),F.fastCheckEndTime_>0&&F.fastCheckEndTime_<_.e2()?2E4:1E4)};
p5.prototype.requestScreenAvailability_=function(){_.M0(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&this.currentRequest_.abort();var F=zIF(this);if(_.xd.getCount(F)){var W=ne(this.JSC$17443_http_,"/pairing/get_screen_availability"),E={lounge_token:_.xd.getKeys(F).join(",")};this.currentRequest_=this.JSC$17443_http_.sendRequest("POST",W,E,(0,_.kj)(this.onScreenAvailability_,this,F),(0,_.kj)(this.onScreenAvailabilityError_,this))}else Ml6(this,{}),eIN(this)};
p5.prototype.onScreenAvailability_=function(F,W){this.currentRequest_=null;var E=_.xd.getKeys(zIF(this));if(_.zz(E,_.xd.getKeys(F))){W=W.screens||[];E={};for(var h=W.length,d=0;d<h;++d)E[F[W[d].loungeToken]]=W[d].status=="online";Ml6(this,E);eIN(this)}else this.warn_("Changing Screen set during request."),this.requestScreenAvailability_()};
p5.prototype.onScreenAvailabilityError_=function(F){this.warn_("Screen availability failed: "+F);this.currentRequest_=null;eIN(this)};
var RI6=function(F){jx("OnlineScreenService",F)};
p5.prototype.warn_=function(F){jx("OnlineScreenService",F)};
var zIF=function(F){var W={};_.Tk(F.getScreensToCheck_(),function(E){E.token?W[E.token]=E.id:this.warn_("Requesting availability of screen w/o lounge token.")});
return W},Q0g=function(F){F=_.xd.getKeys(_.xd.filter(F.screenIdSet_,function(W){return W}));
F.sort(_.QM);F.length?_.tl("yt-remote-online-screen-ids",F.join(","),60):_.B2("yt-remote-online-screen-ids")};_.Ma(Ym,T6);_.N=Ym.prototype;_.N.start=function(){this.localScreenService_.start();this.onlineScreenService_.start();this.screens.length&&(this.publish("screenChange"),this.onlineScreenService_.isEmpty()||this.publish("onlineScreenChange"))};
_.N.add=function(F,W,E){this.localScreenService_.add(F,W,E)};
_.N.remove=function(F,W,E){this.localScreenService_.remove(F,W,E);this.onlineScreenService_.update()};
_.N.updateName=function(F,W,E,h){this.localScreenService_.contains(F)?this.localScreenService_.updateName(F,W,E,h):(F="Updating name of unknown screen: "+F.name,jx(this.JSC$17433_logName_,F),h(Error(F)))};
_.N.getScreens=function(F){return F?this.screens:KeO(this.screens,_.QF(this.automaticScreens_,function(W){return!this.contains(W)},this))};
_.N.JSC$17448_getOnlineScreens=function(){return _.QF(this.getScreens(!0),function(F){return this.onlineScreenService_.isOnline(F.id)},this)};
var Cp6=function(F,W,E,h,d,V){F.info("getAutomaticScreenByIds "+E+" / "+W);E||(E=F.deviceToScreenId_[W]);var R=F.getScreens(),M=E?Oo(R,E):null;E&&(F.disableAutomaticScreenCache_||M)||(M=Oo(R,W));if(M){M.uuid=W;var g=mw(F,M);gQq(F.onlineScreenService_,g,function(t){d(t?g:null)})}else E?tlu(F,E,(0,_.kj)(function(t){var C=mw(this,new aU({name:h,
screenId:E,loungeToken:t,dialId:W||""}));gQq(this.onlineScreenService_,C,function(B){d(B?C:null)})},F),V):d(null)};
Ym.prototype.JSC$17448_getScreenByPollingPairingCode=function(F,W,E,h,d,V){var R=this;this.info("getDialScreenByPairingCode "+F+" / "+W);var M=new dIK(this.JSC$17446_http_,F,W,E,h);M.subscribe("pairingComplete",function(g,t){_.u5(M);d(mw(R,g),t)});
M.subscribe("pairingFailed",function(g){_.u5(M);V(g)});
M.start();return(0,_.kj)(M.stop,M)};
var BLT=function(F,W){for(var E=F.screens.length,h=0;h<E;++h)if(F.screens[h].name==W)return F.screens[h];return null};
Ym.prototype.JSC$17448_getScreenByPairingCode=function(F,W,E,h){_.Qy(ne(this.JSC$17446_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:F},timeout:5E3,onSuccess:(0,_.kj)(function(d,V){d=new aU(V.screen||{});if(!d.name||BLT(this,d.name)){a:{V=d.name;for(var R=2,M=W(V,R);BLT(this,M);){R++;if(R>20)break a;M=W(V,R)}V=M}d.name=V}E(mw(this,d))},this),
onError:(0,_.kj)(function(d){h(Error("Hk`"+d.status))},this),
onTimeout:(0,_.kj)(function(){h(Error("Ik"))},this)})};
var vQO=function(F,W,E){gQq(F.onlineScreenService_,W,E)};
Ym.prototype.disposeInternal=function(){_.u5(this.localScreenService_);_.u5(this.onlineScreenService_);Ym.superClass_.disposeInternal.call(this)};
var tlu=function(F,W,E,h){F.info("requestLoungeToken_ for "+W);var d={postParams:{screen_ids:W},method:"POST",context:F,onSuccess:function(V,R){V=R&&R.screens||[];V[0]&&V[0].screenId==W?E(V[0].loungeToken):h(Error("Jk"))},
onError:function(){h(Error("Kk"))}};
_.Qy(ne(F.JSC$17446_http_,"/pairing/get_lounge_token_batch"),d)},ITN=function(F){F.screens=F.localScreenService_.getScreens();
for(var W=_.xd.transpose(F.deviceToScreenId_),E=F.screens.length,h=0;h<E;++h){var d=F.screens[h];d.uuid=W[d.id]||""}F.info("Updated manual screens: "+esx(F.screens))};
Ym.prototype.handleScreenChange_=function(){ITN(this);this.publish("screenChange");this.onlineScreenService_.update()};
var M7N=function(F){c5T(F);F.localScreenService_=new G6(F.JSC$17446_http_);F.localScreenService_.subscribe("screenChange",(0,_.kj)(F.handleScreenChange_,F));ITN(F);F.disableAutomaticScreenCache_||(F.automaticScreens_=mCF(_.Cy("yt-remote-automatic-screen-cache")||[]));c5T(F);F.info("Initializing automatic screens: "+esx(F.automaticScreens_));F.onlineScreenService_=new p5(F.JSC$17446_http_,(0,_.kj)(F.getScreens,F,!0));F.onlineScreenService_.subscribe("screenChange",(0,_.kj)(function(){this.publish("onlineScreenChange")},
F))},mw=function(F,W){var E=F.get(W.id);
E?(E.uuid=W.uuid,W=E):((E=Oo(F.automaticScreens_,W.uuid))?(E.id=W.id,E.token=W.token,W=E):F.automaticScreens_.push(W),F.disableAutomaticScreenCache_||DIu(F));c5T(F);F.deviceToScreenId_[W.uuid]=W.id;_.tl("yt-remote-device-id-map",F.deviceToScreenId_,31536E3);return W},DIu=function(F){F=_.QF(F.automaticScreens_,function(W){return W.idType!="shortLived"});
_.tl("yt-remote-automatic-screen-cache",_.AN(F,Sa6))},c5T=function(F){F.deviceToScreenId_=_.Cy("yt-remote-device-id-map")||{}};
Ym.prototype.dispose=Ym.prototype.dispose;_.Ma(wF,_.Fl);var K5=function(F,W){F.screen_=W;F.publish("sessionScreen",F.screen_)},xIT=function(F,W){F.screen_&&(F.screen_.token=W,mw(F.JSC$17450_screenService_,F.screen_));
F.publish("sessionScreen",F.screen_)};
wF.prototype.onSessionStopped=function(F){this.isDisposed()||(F&&(FQ(this,""+F),this.publish("sessionFailed")),this.screen_=null,this.publish("sessionScreen",null))};
wF.prototype.info=function(F){jx(this.JSC$17450_logName_,F)};
var FQ=function(F,W){jx(F.JSC$17450_logName_,W)};
wF.prototype.JSC$17452_getCastSession=function(){return null};
wF.prototype.setDisplayStatus=function(F){var W=this.receiver_;F?(W.displayStatus=new chrome.cast.ReceiverDisplayStatus(F,[]),W.displayStatus.showStop=!0):W.displayStatus=null;chrome.cast.setReceiverDisplayStatus(W,(0,_.kj)(function(){this.info("Updated receiver status for "+W.friendlyName+": "+F)},this),(0,_.kj)(function(){FQ(this,"Failed to update receiver status for: "+W.friendlyName)},this))};
wF.prototype.disposeInternal=function(){this.setDisplayStatus("");wF.superClass_.disposeInternal.call(this)};var WV=function(F,W,E){wF.call(this,F,W,"CastSession");var h=this;this.config_=E;this.JSC$17455_session_=null;this.JSC$17455_boundSessionUpdate_=(0,_.kj)(this.JSC$17457_onSessionUpdate_,this);this.boundYoutubeMessage_=(0,_.kj)(this.onYoutubeMessage_,this);this.sessionStatusTimeoutKey_=_.RA(function(){kYx(h,null)},12E4);
this.getLoungeTokenTimeoutKey_=this.onLoungeTokenTimeoutKey_=this.JSC$17455_checkScreenAvailabilityTimeoutKey_=this.getScreenTimeoutKey_=0;this.JSC$17455_isInitLoungeToken_=!1;this.JSC$17455_lastLoungeTokenRefreshError_="unknown"};
_.k(WV,wF);_.N=WV.prototype;
_.N.setCastSession=function(F){if(this.JSC$17455_session_){if(this.JSC$17455_session_==F)return;FQ(this,"Overriding cast session with new session object");A5K(this);this.JSC$17455_isInitLoungeToken_=!1;this.JSC$17455_lastLoungeTokenRefreshError_="unknown";this.JSC$17455_session_.removeUpdateListener(this.JSC$17455_boundSessionUpdate_);this.JSC$17455_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_)}this.JSC$17455_session_=F;this.JSC$17455_session_.addUpdateListener(this.JSC$17455_boundSessionUpdate_);this.JSC$17455_session_.addMessageListener("urn:x-cast:com.google.youtube.mdx",
this.boundYoutubeMessage_);s0w(this,"getMdxSessionStatus")};
_.N.launchWithParams=function(F){this.info("launchWithParams no-op for Cast: "+(0,_.ad)(F))};
_.N.stop=function(){if(this.JSC$17455_session_)this.JSC$17455_session_.stop((0,_.kj)(function(){this.onSessionStopped()},this),(0,_.kj)(function(){this.onSessionStopped(Error("Lk"))},this));
else this.onSessionStopped(Error("Mk"))};
_.N.setDisplayStatus=function(){};
_.N.disposeInternal=function(){this.info("disposeInternal");A5K(this);this.JSC$17455_session_&&(this.JSC$17455_session_.removeUpdateListener(this.JSC$17455_boundSessionUpdate_),this.JSC$17455_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_));this.JSC$17455_session_=null;wF.prototype.disposeInternal.call(this)};
var qXg=function(F,W){_.M0(F.getLoungeTokenTimeoutKey_);F.getLoungeTokenTimeoutKey_=0;W==0?L8K(F):F.getLoungeTokenTimeoutKey_=_.RA(function(){L8K(F)},W)},L8K=function(F){s0w(F,"getLoungeToken");
_.M0(F.onLoungeTokenTimeoutKey_);F.onLoungeTokenTimeoutKey_=_.RA(function(){$I6(F,null)},3E4)},s0w=function(F,W){F.info("sendYoutubeMessage_: "+W+" "+(0,_.ad)(void 0));
var E={};E.type=W;F.JSC$17455_session_?F.JSC$17455_session_.sendMessage("urn:x-cast:com.google.youtube.mdx",E,function(){},(0,_.kj)(function(){FQ(this,"Failed to send message: "+W+".")},F)):FQ(F,"Sending yt message without session: "+(0,_.ad)(E))};
WV.prototype.onYoutubeMessage_=function(F,W){if(!this.isDisposed())if(W)if(W=(0,_.$x)(W),_.NU(W))switch(F=""+W.type,W=W.data||{},this.info("onYoutubeMessage_: "+F+" "+(0,_.ad)(W)),F){case "mdxSessionStatus":kYx(this,W);break;case "loungeToken":$I6(this,W);break;default:FQ(this,"Unknown youtube message: "+F)}else FQ(this,"Unable to parse message.");else FQ(this,"No data in message.")};
var Zo6=function(F,W){if(W)F.info("onConnectedScreenId_: Received screenId: "+W),F.screen_&&F.screen_.id==W||F.getScreen_(W,function(E){K5(F,E)},function(){return F.onSessionStopped()},5);
else F.onSessionStopped(Error("Nk"))},Hog=function(F,W,E){F.info("onConnectedScreenData_: Received screenData: "+JSON.stringify(W));
var h=new aU(W);Xt$(F,h,function(d){d?(F.JSC$17455_isInitLoungeToken_=!0,mw(F.JSC$17450_screenService_,h),K5(F,h),F.JSC$17455_lastLoungeTokenRefreshError_="unknown",qXg(F,E)):(_.nW(Error("Ok`"+JSON.stringify(W))),F.onSessionStopped())},5)},kYx=function(F,W){_.M0(F.sessionStatusTimeoutKey_);
F.sessionStatusTimeoutKey_=0;if(W)F.config_.enableCastLoungeToken&&W.loungeToken?W.deviceId?F.screen_&&F.screen_.uuid==W.deviceId||(W.loungeTokenRefreshIntervalMs?Hog(F,{name:F.receiver_.friendlyName,screenId:W.screenId,loungeToken:W.loungeToken,dialId:W.deviceId,screenIdType:"shortLived"},W.loungeTokenRefreshIntervalMs):(_.nW(Error("Qk`"+JSON.stringify(W))),Zo6(F,W.screenId))):(_.nW(Error("Pk`"+JSON.stringify(W))),Zo6(F,W.screenId)):Zo6(F,W.screenId);else F.onSessionStopped(Error("Nk"))},$I6=function(F,
W){_.M0(F.onLoungeTokenTimeoutKey_);
F.onLoungeTokenTimeoutKey_=0;var E=null;if(W)if(W.loungeToken){var h;((h=F.screen_)==null?void 0:h.token)==W.loungeToken&&(E="staleLoungeToken")}else E="missingLoungeToken";else E="noLoungeTokenResponse";E?(F.info("Did not receive a new lounge token in onLoungeToken_ with data: "+(JSON.stringify(W)+", error: "+E)),F.JSC$17455_lastLoungeTokenRefreshError_=E,qXg(F,3E4)):(xIT(F,W.loungeToken),F.JSC$17455_isInitLoungeToken_=!1,F.JSC$17455_lastLoungeTokenRefreshError_="unknown",qXg(F,W.loungeTokenRefreshIntervalMs))};
WV.prototype.getScreen_=function(F,W,E,h){_.M0(this.getScreenTimeoutKey_);this.getScreenTimeoutKey_=0;Cp6(this.JSC$17450_screenService_,this.receiver_.label,F,this.receiver_.friendlyName,(0,_.kj)(function(d){d?W(d):h>=0?(FQ(this,"Screen "+F+" appears to be offline. "+h+" retries left."),this.getScreenTimeoutKey_=_.RA((0,_.kj)(this.getScreen_,this,F,W,E,h-1),300)):E(Error("Rk"))},this),E)};
var Xt$=function(F,W,E,h){_.M0(F.JSC$17455_checkScreenAvailabilityTimeoutKey_);F.JSC$17455_checkScreenAvailabilityTimeoutKey_=0;vQO(F.JSC$17450_screenService_,W,function(d){d||h<0?E(d):F.JSC$17455_checkScreenAvailabilityTimeoutKey_=_.RA(function(){Xt$(F,W,E,h-1)},300)})};
WV.prototype.JSC$17452_getCastSession=function(){return this.JSC$17455_session_};
WV.prototype.JSC$17457_onSessionUpdate_=function(F){this.isDisposed()||F||(FQ(this,"Cast session died."),this.onSessionStopped())};
var A5K=function(F){_.M0(F.getScreenTimeoutKey_);F.getScreenTimeoutKey_=0;_.M0(F.JSC$17455_checkScreenAvailabilityTimeoutKey_);F.JSC$17455_checkScreenAvailabilityTimeoutKey_=0;_.M0(F.sessionStatusTimeoutKey_);F.sessionStatusTimeoutKey_=0;_.M0(F.onLoungeTokenTimeoutKey_);F.onLoungeTokenTimeoutKey_=0;_.M0(F.getLoungeTokenTimeoutKey_);F.getLoungeTokenTimeoutKey_=0};var Eu=function(F,W,E,h){wF.call(this,F,W,"DialSession");this.config_=h;this.JSC$17459_session_=this.launchData_=null;this.reversePairingCode_="";this.JSC$17459_theme_=E;this.connectData_=null;this.deferredLaunch_=function(){};
this.JSC$17459_deferredLaunchDeadlineTimer_=NaN;this.JSC$17459_boundSessionUpdate_=(0,_.kj)(this.JSC$17461_onSessionUpdate_,this);this.cancelPolling_=function(){};
this.getDialAppInfoTimeoutKey_=this.JSC$17459_checkScreenAvailabilityTimeoutKey_=0;this.JSC$17459_isInitLoungeToken_=!1;this.JSC$17459_lastLoungeTokenRefreshError_="unknown"};
_.k(Eu,wF);Eu.prototype.setCastSession=function(F){this.JSC$17459_session_=F;this.JSC$17459_session_.addUpdateListener(this.JSC$17459_boundSessionUpdate_)};
Eu.prototype.launchWithParams=function(F){this.connectData_=F;this.deferredLaunch_()};
Eu.prototype.stop=function(){Ppu(this);if(this.JSC$17459_session_)this.JSC$17459_session_.stop((0,_.kj)(this.onSessionStopped,this,null),(0,_.kj)(this.onSessionStopped,this,"Failed to stop DIAL device."));else this.onSessionStopped()};
Eu.prototype.disposeInternal=function(){Ppu(this);this.JSC$17459_session_&&this.JSC$17459_session_.removeUpdateListener(this.JSC$17459_boundSessionUpdate_);this.JSC$17459_session_=null;wF.prototype.disposeInternal.call(this)};
var J58=function(F){var W;return!!(F.config_.enableDialLoungeToken&&((W=F.JSC$17459_session_)==null?0:W.getDialAppInfo))},aTK=function(F){F.cancelPolling_=F.JSC$17450_screenService_.JSC$17448_getScreenByPollingPairingCode(F.reversePairingCode_,F.receiver_.label,F.receiver_.friendlyName,J58(F),function(W,E){F.cancelPolling_=function(){};
F.JSC$17459_isInitLoungeToken_=!0;K5(F,W);W.idType=="shortLived"&&E>0&&h6(F,E)},function(W){F.cancelPolling_=function(){};
F.onSessionStopped(W)})};
Eu.prototype.JSC$17461_onSessionUpdate_=function(F){this.isDisposed()||F||(FQ(this,"DIAL session died."),this.cancelPolling_(),this.cancelPolling_=function(){},this.onSessionStopped())};
var fTN=function(F){var W={};W.pairingCode=F.reversePairingCode_;W.theme=F.JSC$17459_theme_;uf6()&&(W.env_useStageMdx=1);return _.zC(W)},OoO=function(F){return new Promise(function(W){F.reversePairingCode_=aU6();
if(F.connectData_){var E=new chrome.cast.DialLaunchResponse(!0,fTN(F));W(E);aTK(F)}else F.deferredLaunch_=function(){_.M0(F.JSC$17459_deferredLaunchDeadlineTimer_);F.deferredLaunch_=function(){};
F.JSC$17459_deferredLaunchDeadlineTimer_=NaN;var h=new chrome.cast.DialLaunchResponse(!0,fTN(F));W(h);aTK(F)},F.JSC$17459_deferredLaunchDeadlineTimer_=_.RA(function(){F.deferredLaunch_()},100)})},lTx=function(F,W,E){F.info("initOnConnectedScreenDataPromise_: Received screenData: "+JSON.stringify(W));
var h=new aU(W);return(new Promise(function(d){bo6(F,h,function(V){V?(F.JSC$17459_isInitLoungeToken_=!0,mw(F.JSC$17450_screenService_,h),K5(F,h),h6(F,E)):_.nW(Error("Tk`"+JSON.stringify(W)));d(V)},5)})).then(function(d){return d?new chrome.cast.DialLaunchResponse(!1):OoO(F)})},nQq=function(F,W){var E=F.launchData_.receiver.label,h=F.receiver_.friendlyName;
return(new Promise(function(d){Cp6(F.JSC$17450_screenService_,E,W,h,function(V){V&&V.token&&K5(F,V);d(V)},function(V){FQ(F,"Failed to get DIAL screen: "+V);
d(null)})})).then(function(d){return d&&d.token?new chrome.cast.DialLaunchResponse(!1):OoO(F)})},bo6=function(F,W,E,h){_.M0(F.JSC$17459_checkScreenAvailabilityTimeoutKey_);
F.JSC$17459_checkScreenAvailabilityTimeoutKey_=0;vQO(F.JSC$17450_screenService_,W,function(d){d||h<0?E(d):F.JSC$17459_checkScreenAvailabilityTimeoutKey_=_.RA(function(){bo6(F,W,E,h-1)},300)})},h6=function(F,W){F.info("getDialAppInfoWithTimeout_ "+W);
J58(F)&&(_.M0(F.getDialAppInfoTimeoutKey_),F.getDialAppInfoTimeoutKey_=0,W==0?y5N(F):F.getDialAppInfoTimeoutKey_=_.RA(function(){y5N(F)},W))},y5N=function(F){J58(F)&&F.JSC$17459_session_.getDialAppInfo(function(W){F.info("getDialAppInfo dialLaunchData: "+JSON.stringify(W));
W=W.extraData||{};var E=null;if(W.loungeToken){var h;((h=F.screen_)==null?void 0:h.token)==W.loungeToken&&(E="staleLoungeToken")}else E="missingLoungeToken";E?(F.JSC$17459_lastLoungeTokenRefreshError_=E,h6(F,3E4)):(F.JSC$17459_isInitLoungeToken_=!1,F.JSC$17459_lastLoungeTokenRefreshError_="unknown",xIT(F,W.loungeToken),h6(F,W.loungeTokenRefreshIntervalMs))},function(W){F.info("getDialAppInfo error: "+W);
F.JSC$17459_lastLoungeTokenRefreshError_="noLoungeTokenResponse";h6(F,3E4)})},Ppu=function(F){_.M0(F.JSC$17459_checkScreenAvailabilityTimeoutKey_);
F.JSC$17459_checkScreenAvailabilityTimeoutKey_=0;_.M0(F.getDialAppInfoTimeoutKey_);F.getDialAppInfoTimeoutKey_=0;F.cancelPolling_();F.cancelPolling_=function(){};
_.M0(F.JSC$17459_deferredLaunchDeadlineTimer_)};var di=function(F,W){wF.call(this,F,W,"ManualSession");this.JSC$17463_deferredLaunchDeadlineTimer_=_.RA((0,_.kj)(this.launchWithParams,this,null),150)};
_.k(di,wF);di.prototype.stop=function(){this.onSessionStopped()};
di.prototype.setCastSession=function(){};
di.prototype.launchWithParams=function(){_.M0(this.JSC$17463_deferredLaunchDeadlineTimer_);this.JSC$17463_deferredLaunchDeadlineTimer_=NaN;var F=Oo(this.JSC$17450_screenService_.getScreens(),this.receiver_.label);if(F)K5(this,F);else this.onSessionStopped(Error("Uk"))};
di.prototype.disposeInternal=function(){_.M0(this.JSC$17463_deferredLaunchDeadlineTimer_);this.JSC$17463_deferredLaunchDeadlineTimer_=NaN;wF.prototype.disposeInternal.call(this)};var md=function(F,W){_.Fl.call(this);this.config_=W;this.JSC$17466_screenService_=F;this.JSC$17466_appId_=W.appId||"233637DE";this.JSC$17466_theme_=W.theme||"cl";this.disableDial_=W.disableCastApi||!1;this.forceMirroring_=W.forceMirroring||!1;this.JSC$17466_session_=null;this.hasCastReceiver_=!1;this.customReceivers_=[];this.boundReceiverActionListener_=(0,_.kj)(this.onReceiverAction_,this)};
_.k(md,_.Fl);
md.prototype.init=function(F,W){chrome.cast.timeout.requestSession=3E4;var E=new chrome.cast.SessionRequest(this.JSC$17466_appId_,[chrome.cast.Capability.AUDIO_OUT]);_.c("desktop_enable_cast_connect")&&(E.androidReceiverCompatible=!0);this.disableDial_||(E.dialRequest=new chrome.cast.DialRequest("YouTube"));var h=chrome.cast.AutoJoinPolicy.TAB_AND_ORIGIN_SCOPED;F=F||this.forceMirroring_?chrome.cast.DefaultActionPolicy.CAST_THIS_TAB:chrome.cast.DefaultActionPolicy.CREATE_SESSION;var d=(0,_.kj)(this.onReceiverUpdated_,
this);E=new chrome.cast.ApiConfig(E,(0,_.kj)(this.onSessionEstablished_,this),d,h,F);E.customDialLaunchCallback=(0,_.kj)(this.onDialLaunchRequested_,this);chrome.cast.initialize(E,(0,_.kj)(function(){this.isDisposed()||(chrome.cast.addReceiverActionListener(this.boundReceiverActionListener_),hsq(),this.JSC$17466_screenService_.subscribe("onlineScreenChange",(0,_.kj)(this.JSC$17468_onScreenChange_,this)),this.customReceivers_=j0K(this),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},
(0,_.kj)(function(V){this.warn_("Failed to set initial custom receivers: "+(0,_.ad)(V))},this)),this.publish("yt-remote-cast2-availability-change",NA(this)),W(!0))},this),(0,_.kj)(function(V){this.warn_("Failed to initialize API: "+(0,_.ad)(V));
W(!1)},this))};
md.prototype.setConnectedScreenStatus=function(F,W){V3("Setting connected screen ID: "+F+" -> "+W);if(this.JSC$17466_session_){var E=this.JSC$17466_session_.screen_;if(!F||E&&E.id!=F)V3("Unsetting old screen status: "+this.JSC$17466_session_.receiver_.friendlyName),Uu(this,null)}if(F&&W){if(!this.JSC$17466_session_){F=Oo(this.JSC$17466_screenService_.getScreens(),F);if(!F){V3("setConnectedScreenStatus: Unknown screen.");return}if(F.idType=="shortLived"){V3("setConnectedScreenStatus: Screen with id type to be short lived.");
return}E=io6(this,F);E||(V3("setConnectedScreenStatus: Connected receiver not custom..."),E=new chrome.cast.Receiver(F.uuid?F.uuid:F.id,F.name),E.receiverType=chrome.cast.ReceiverType.CUSTOM,this.customReceivers_.push(E),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.kj)(function(h){this.warn_("Failed to set initial custom receivers: "+(0,_.ad)(h))},this)));
V3("setConnectedScreenStatus: new active receiver: "+E.friendlyName);Uu(this,new di(this.JSC$17466_screenService_,E),!0)}this.JSC$17466_session_.setDisplayStatus(W)}else V3("setConnectedScreenStatus: no screen.")};
var io6=function(F,W){return W?_.yo(F.customReceivers_,function(E){return fe(W,E.label)},F):null};
md.prototype.setLaunchParams=function(F){this.isDisposed()?this.warn_("Setting connection data on disposed cast v2"):this.JSC$17466_session_?this.JSC$17466_session_.launchWithParams(F):this.warn_("Setting connection data without a session")};
md.prototype.JSC$17468_stopSession=function(){this.isDisposed()?this.warn_("Stopping session on disposed cast v2"):this.JSC$17466_session_?(this.JSC$17466_session_.stop(),Uu(this,null)):V3("Stopping non-existing session")};
md.prototype.requestSession=function(){chrome.cast.requestSession((0,_.kj)(this.onSessionEstablished_,this),(0,_.kj)(this.onSessionRequestFailed_,this))};
md.prototype.disposeInternal=function(){this.JSC$17466_screenService_.unsubscribe("onlineScreenChange",(0,_.kj)(this.JSC$17468_onScreenChange_,this));window.chrome&&chrome.cast&&chrome.cast.removeReceiverActionListener(this.boundReceiverActionListener_);_.mY(_.ju("yt.mdx.remote.debug.handlers_")||[],Fs6);_.u5(this.JSC$17466_session_);_.Fl.prototype.disposeInternal.call(this)};
var V3=function(F){jx("Controller",F)};
md.prototype.warn_=function(F){jx("Controller",F)};
var Fs6=function(F){window.chrome&&chrome.cast&&chrome.cast.logMessage&&chrome.cast.logMessage(F)},NA=function(F){return F.hasCastReceiver_||!!F.customReceivers_.length||!!F.JSC$17466_session_},Uu=function(F,W,E){W!=F.JSC$17466_session_&&(_.u5(F.JSC$17466_session_),(F.JSC$17466_session_=W)?(E?F.publish("yt-remote-cast2-receiver-resumed",W.receiver_):F.publish("yt-remote-cast2-receiver-selected",W.receiver_),W.subscribe("sessionScreen",(0,_.kj)(F.onSessionScreen_,F,W)),W.subscribe("sessionFailed",
function(){return r5K(F,W)}),W.screen_?F.publish("yt-remote-cast2-session-change",W.screen_):E&&F.JSC$17466_session_.launchWithParams(null)):F.publish("yt-remote-cast2-session-change",null))},r5K=function(F,W){F.JSC$17466_session_==W&&F.publish("yt-remote-cast2-session-failed")};
_.N=md.prototype;_.N.onSessionScreen_=function(F,W){this.JSC$17466_session_==F&&(W||Uu(this,null),this.publish("yt-remote-cast2-session-change",W))};
_.N.onReceiverAction_=function(F,W){if(!this.isDisposed())if(F)switch(F.friendlyName=chrome.cast.unescape(F.friendlyName),V3("onReceiverAction_ "+F.label+" / "+F.friendlyName+"-- "+W),W){case chrome.cast.ReceiverAction.CAST:if(this.JSC$17466_session_)if(this.JSC$17466_session_.receiver_.label!=F.label)V3("onReceiverAction_: Stopping active receiver: "+this.JSC$17466_session_.receiver_.friendlyName),this.JSC$17466_session_.stop();else{V3("onReceiverAction_: Casting to active receiver.");this.JSC$17466_session_.screen_&&
this.publish("yt-remote-cast2-session-change",this.JSC$17466_session_.screen_);break}switch(F.receiverType){case chrome.cast.ReceiverType.CUSTOM:Uu(this,new di(this.JSC$17466_screenService_,F));break;case chrome.cast.ReceiverType.DIAL:Uu(this,new Eu(this.JSC$17466_screenService_,F,this.JSC$17466_theme_,this.config_));break;case chrome.cast.ReceiverType.CAST:Uu(this,new WV(this.JSC$17466_screenService_,F,this.config_));break;default:this.warn_("Unknown receiver type: "+F.receiverType)}break;case chrome.cast.ReceiverAction.STOP:this.JSC$17466_session_&&
this.JSC$17466_session_.receiver_.label==F.label?this.JSC$17466_session_.stop():this.warn_("Stopping receiver w/o session: "+F.friendlyName)}else this.warn_("onReceiverAction_ called without receiver.")};
_.N.onDialLaunchRequested_=function(F){if(this.isDisposed())return Promise.reject(Error("Vk"));var W=F.receiver;W.receiverType!=chrome.cast.ReceiverType.DIAL&&(this.warn_("Not DIAL receiver: "+W.friendlyName),W.receiverType=chrome.cast.ReceiverType.DIAL);var E=this.JSC$17466_session_?this.JSC$17466_session_.receiver_:null;if(!E||E.label!=W.label)return this.warn_("Receiving DIAL launch request for non-clicked DIAL receiver: "+W.friendlyName),Promise.reject(Error("Wk"));if(E&&E.label==W.label&&E.receiverType!=
chrome.cast.ReceiverType.DIAL){if(this.JSC$17466_session_.screen_)return V3("Reselecting dial screen."),this.publish("yt-remote-cast2-session-change",this.JSC$17466_session_.screen_),Promise.resolve(new chrome.cast.DialLaunchResponse(!1));this.warn_('Changing CAST intent from "'+E.receiverType+'" to "dial" for '+W.friendlyName);Uu(this,new Eu(this.JSC$17466_screenService_,W,this.JSC$17466_theme_,this.config_))}W=this.JSC$17466_session_;W.launchData_=F;W.launchData_.appState==chrome.cast.DialAppState.RUNNING?
(F=W.launchData_.extraData||{},E=F.screenId||null,J58(W)&&F.loungeToken?F.loungeTokenRefreshIntervalMs?F=lTx(W,{name:W.receiver_.friendlyName,screenId:F.screenId,loungeToken:F.loungeToken,dialId:W.launchData_.receiver.label,screenIdType:"shortLived"},F.loungeTokenRefreshIntervalMs):(_.nW(Error("Sk`"+JSON.stringify(F))),F=nQq(W,E)):F=nQq(W,E)):F=OoO(W);return F};
_.N.onSessionEstablished_=function(F){var W=this;if(!this.isDisposed()&&!this.forceMirroring_){V3("New cast session ID: "+F.sessionId);var E=F.receiver;if(E.receiverType!=chrome.cast.ReceiverType.CUSTOM){if(!this.JSC$17466_session_)if(E.receiverType==chrome.cast.ReceiverType.CAST)V3("Got resumed cast session before resumed mdx connection."),E.friendlyName=chrome.cast.unescape(E.friendlyName),Uu(this,new WV(this.JSC$17466_screenService_,E,this.config_),!0);else{this.warn_("Got non-cast session without previous mdx receiver event, or mdx resume.");
return}var h=this.JSC$17466_session_.receiver_,d=Oo(this.JSC$17466_screenService_.getScreens(),h.label);d&&fe(d,E.label)&&h.receiverType!=chrome.cast.ReceiverType.CAST&&E.receiverType==chrome.cast.ReceiverType.CAST&&(V3("onSessionEstablished_: manual to cast session change "+E.friendlyName),_.u5(this.JSC$17466_session_),this.JSC$17466_session_=new WV(this.JSC$17466_screenService_,E,this.config_),this.JSC$17466_session_.subscribe("sessionScreen",(0,_.kj)(this.onSessionScreen_,this,this.JSC$17466_session_)),
this.JSC$17466_session_.subscribe("sessionFailed",function(){return r5K(W,W.JSC$17466_session_)}),this.JSC$17466_session_.launchWithParams(null));
this.JSC$17466_session_.setCastSession(F)}}};
_.N.JSC$17468_getCastSession=function(){return this.JSC$17466_session_?this.JSC$17466_session_.JSC$17452_getCastSession():null};
_.N.onSessionRequestFailed_=function(F){this.isDisposed()||(this.warn_("Failed to estabilish a session: "+(0,_.ad)(F)),F.code!=chrome.cast.ErrorCode.CANCEL&&Uu(this,null),this.publish("yt-remote-cast2-session-failed"))};
_.N.onReceiverUpdated_=function(F){V3("Receiver availability updated: "+F);if(!this.isDisposed()){var W=NA(this);this.hasCastReceiver_=F==chrome.cast.ReceiverAvailability.AVAILABLE;NA(this)!=W&&this.publish("yt-remote-cast2-availability-change",NA(this))}};
var j0K=function(F){var W=F.JSC$17466_screenService_.JSC$17448_getOnlineScreens(),E=F.JSC$17466_session_&&F.JSC$17466_session_.receiver_;F=_.AN(W,function(h){E&&fe(h,E.label)&&(E=null);var d=h.uuid?h.uuid:h.id,V=io6(this,h);V?(V.label=d,V.friendlyName=h.name):(V=new chrome.cast.Receiver(d,h.name),V.receiverType=chrome.cast.ReceiverType.CUSTOM);return V},F);
E&&(E.receiverType!=chrome.cast.ReceiverType.CUSTOM&&(E=new chrome.cast.Receiver(E.label,E.friendlyName),E.receiverType=chrome.cast.ReceiverType.CUSTOM),F.push(E));return F};
md.prototype.JSC$17468_onScreenChange_=function(){this.isDisposed()||(this.customReceivers_=j0K(this),V3("Updating custom receivers: "+(0,_.ad)(this.customReceivers_)),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.kj)(function(){this.warn_("Failed to set custom receivers.")},this)),this.publish("yt-remote-cast2-availability-change",NA(this)))};
md.prototype.setLaunchParams=md.prototype.setLaunchParams;md.prototype.setConnectedScreenStatus=md.prototype.setConnectedScreenStatus;md.prototype.stopSession=md.prototype.JSC$17468_stopSession;md.prototype.getCastSession=md.prototype.JSC$17468_getCastSession;md.prototype.requestSession=md.prototype.requestSession;md.prototype.init=md.prototype.init;md.prototype.dispose=md.prototype.dispose;var $cK=[];var TLq=function(F){F.audioTrackId=null;F.trackData=null;F.playerState=-1;F.hasPrevious=!1;F.hasNext=!1;F.playerTime_=0;F.playerTimeAt_=_.e2();F.seekableStart_=0;F.seekableEnd_=0;F.duration_=0;F.loadedTime=0;F.liveIngestionTime_=NaN;F.isLive_=!1};
_.N=Ke.prototype;
_.N.reset=function(F){this.listId="";this.stopPlayer();this.volume=-1;this.muted=!1;F&&(this.index=F.index,this.listId=F.listId,this.videoId=F.videoId,this.playerState=F.playerState,this.volume=F.volume,this.muted=F.muted,this.audioTrackId=F.audioTrackId,this.trackData=F.trackData,this.hasPrevious=F.hasPrevious,this.hasNext=F.hasNext,this.playerTime_=F.playerTime,this.playerTimeAt_=F.playerTimeAt,this.seekableStart_=F.seekableStart,this.seekableEnd_=F.seekableEnd,this.duration_=F.duration,this.loadedTime=
F.loadedTime,this.liveIngestionTime_=F.liveIngestionTime,this.isLive_=!isNaN(this.liveIngestionTime_))};
_.N.stopPlayer=function(){this.index=-1;this.videoId="";TLq(this)};
_.N.isPlaying=function(){return this.playerState==1};
_.N.isBuffering=function(){return this.playerState==3};
_.N.isAdPlaying=function(){return this.playerState==1081};
var Rf=function(F,W){F.playerTime_=W;F.playerTimeAt_=_.e2()},oQK=function(F){switch(F.playerState){case 1:case 1081:return(_.e2()-F.playerTimeAt_)/1E3+F.playerTime_;
case -1E3:return 0}return F.playerTime_};
Ke.prototype.getDuration=function(){return this.isLive_?this.duration_+(this.isPlaying()?(_.e2()-this.playerTimeAt_)/1E3:0):this.duration_};
var GYu=function(F,W,E){var h=F.videoId;F.videoId=W;F.index=E;W!=h&&TLq(F)},YX6=function(F){var W={};
W.index=F.index;W.listId=F.listId;W.videoId=F.videoId;W.playerState=F.playerState;W.volume=F.volume;W.muted=F.muted;W.audioTrackId=F.audioTrackId;W.trackData=_.xd.unsafeClone(F.trackData);W.hasPrevious=F.hasPrevious;W.hasNext=F.hasNext;W.playerTime=F.playerTime_;W.playerTimeAt=F.playerTimeAt_;W.seekableStart=F.seekableStart_;W.seekableEnd=F.seekableEnd_;W.duration=F.duration_;W.loadedTime=F.loadedTime;W.liveIngestionTime=F.liveIngestionTime_;return W};
Ke.prototype.clone=function(){return new Ke(YX6(this))};var e0=function(F,W){_.Fl.call(this);var E=this;this.state_=0;this.connection_=F;this.contextSubscriptions_=[];this.actionQueue_=new skq;this.castSession_=this.castMedia_=null;this.boundCastStatusListener_=(0,_.kj)(this.onCastStatusUpdate_,this);this.boundCastMediaListener_=(0,_.kj)(this.onCastMediaChange_,this);this.boundCastMediaUpdateListener_=(0,_.kj)(this.onCastMediaUpdate_,this);this.boundCloudviewAvailabilityChange_=(0,_.kj)(this.onCloudviewAvailabilityChange_,this);var h=0;F?(h=F.getProxyState(),
h!=3&&(F.subscribe("proxyStateChange",this.setState_,this),wt8(this))):h=3;h!=0&&(W?this.setState_(h):_.RA(function(){E.setState_(h)},0));
(F=Ps6())&&ubP(this,F);this.subscribe("yt-remote-cast2-session-change",this.boundCloudviewAvailabilityChange_)};
_.k(e0,_.Fl);e0.prototype.getState=function(){return this.state_};
e0.prototype.getReconnectTimeout=function(){return this.connection_.getReconnectTimeout()};
e0.prototype.reconnect=function(){this.connection_.reconnect()};
var MA=function(F){return new Ke(F.connection_.getPlayerContextData())};
_.N=e0.prototype;_.N.play=function(){gi(this)?(this.castMedia_?this.castMedia_.play(null,_.sn,SXq(this,"play")):Q3(this,"play"),ptK(this,1,oQK(MA(this))),this.publish("remotePlayerChange")):zm(this,this.play)};
_.N.pause=function(){gi(this)?(this.castMedia_?this.castMedia_.pause(null,_.sn,SXq(this,"pause")):Q3(this,"pause"),ptK(this,2,oQK(MA(this))),this.publish("remotePlayerChange")):zm(this,this.pause)};
_.N.seekTo=function(F){if(gi(this)){if(this.castMedia_){var W=MA(this),E=new chrome.cast.media.SeekRequest;E.currentTime=F;W.isPlaying()||W.isBuffering()?E.resumeState=chrome.cast.media.ResumeState.PLAYBACK_START:E.resumeState=chrome.cast.media.ResumeState.PLAYBACK_PAUSE;this.castMedia_.seek(E,_.sn,SXq(this,"seekTo",{newTime:F}))}else Q3(this,"seekTo",{newTime:F});ptK(this,3,F);this.publish("remotePlayerChange")}else zm(this,_.v5(this.seekTo,F))};
_.N.stop=function(){if(gi(this)){this.castMedia_?this.castMedia_.stop(null,_.sn,SXq(this,"stopVideo")):Q3(this,"stopVideo");var F=MA(this);F.stopPlayer();t6(this,F);this.publish("remotePlayerChange")}else zm(this,this.stop)};
_.N.setVolume=function(F,W){if(gi(this)){var E=MA(this);if(this.castSession_){if(E.volume!=F){var h=Math.round(F)/100;this.castSession_.setReceiverVolumeLevel(h,(0,_.kj)(function(){iw("set receiver volume: "+h)},this),(0,_.kj)(function(){this.warn_("failed to set receiver volume.")},this))}E.muted!=W&&this.castSession_.setReceiverMuted(W,(0,_.kj)(function(){iw("set receiver muted: "+W)},this),(0,_.kj)(function(){this.warn_("failed to set receiver muted.")},this))}else{var d={volume:F,
muted:W};E.volume!=-1&&(d.delta=F-E.volume);Q3(this,"setVolume",d)}E.muted=W;E.volume=F;t6(this,E)}else zm(this,_.v5(this.setVolume,F,W))};
_.N.setAudioTrack=function(F,W){gi(this)?(W=W.getLanguageInfo().getId(),Q3(this,"setAudioTrack",{videoId:F,audioTrackId:W}),F=MA(this),F.audioTrackId=W,t6(this,F)):zm(this,_.v5(this.setAudioTrack,F,W))};
_.N.addVideo=function(F){gi(this)?Q3(this,"addVideo",{videoId:F}):zm(this,_.v5(this.addVideo,F))};
_.N.addPlaylist=function(F){gi(this)?Q3(this,"addVideos",{listId:F}):zm(this,_.v5(this.addPlaylist,F))};
_.N.addVideos=function(F){F.length==0?this.warn_("Ignore add videos request due to empty list"):gi(this)?Q3(this,"addVideos",{videoIds:F.join(",")}):zm(this,_.v5(this.addVideos,F))};
_.N.JSC$17478_removeVideo=function(F){gi(this)?Q3(this,"removeVideo",{videoId:F}):zm(this,_.v5(this.JSC$17478_removeVideo,F))};
_.N.JSC$17478_insertVideo=function(F){gi(this)?Q3(this,"insertVideo",{videoId:F}):zm(this,_.v5(this.JSC$17478_insertVideo,F))};
_.N.playVideo=function(F,W,E,h,d,V,R){h=h===void 0?null:h;d=d===void 0?null:d;V=V===void 0?null:V;R=R===void 0?null:R;var M=MA(this),g={videoId:F};E!==void 0&&(g.currentIndex=E);GYu(M,F,E||0);W!==void 0&&(Rf(M,W),g.currentTime=W);h&&(g.listId=h);d&&(g.playerParams=d);V&&(g.clickTrackingParams=V);R&&(g.locationInfo=(0,_.ad)(R));Q3(this,"setPlaylist",g);h||t6(this,M)};
_.N.nextVideo=function(F,W){if(gi(this)){if(F&&W){var E=MA(this);GYu(E,F,W);t6(this,E)}Q3(this,"next")}else zm(this,_.v5(this.nextVideo,F,W))};
_.N.clearPlaylist=function(){if(gi(this)){Q3(this,"clearPlaylist");var F=MA(this);F.reset();t6(this,F);this.publish("remotePlayerChange")}else zm(this,this.clearPlaylist)};
_.N.dispose=function(){if(this.state_!=3){var F=this.state_;this.state_=3;this.publish("proxyStateChange",F,this.state_)}_.Fl.prototype.dispose.call(this)};
_.N.disposeInternal=function(){mI8(this);this.connection_=null;this.actionQueue_.clear();ubP(this,null);_.Fl.prototype.disposeInternal.call(this)};
var wt8=function(F){_.Tk("nowAutoplaying autoplayDismissed remotePlayerChange remoteQueueChange autoplayModeChange autoplayUpNext previousNextChange multiStateLoopEnabled loopModeChange".split(" "),function(W){this.contextSubscriptions_.push(this.connection_.subscribe(W,_.v5(this.onProxyEvent_,W),this))},F)},mI8=function(F){_.Tk(F.contextSubscriptions_,function(W){this.connection_.unsubscribeByKey(W)},F);
F.contextSubscriptions_.length=0},gi=function(F){return F.getState()==1},zm=function(F,W){F.actionQueue_.getCount()<50&&F.actionQueue_.enqueue(W)},ptK=function(F,W,E){var h=MA(F);
Rf(h,E);h.playerState!=-1E3&&(h.playerState=W);t6(F,h)},Q3=function(F,W,E){F.connection_.sendMessage(W,E)},t6=function(F,W){mI8(F);
F.connection_.setPlayerContextData(YX6(W));wt8(F)};
e0.prototype.setState_=function(F){if((F!=this.state_||F==2)&&this.state_!=3&&F!=0){var W=this.state_;this.state_=F;this.publish("proxyStateChange",W,F);if(F==1)for(;!this.actionQueue_.isEmpty();)F=this.actionQueue_,zRK(F),F.front_.pop().apply(this);else F==3&&this.dispose()}};
e0.prototype.onProxyEvent_=function(F,W){this.publish(F,W)};
var ubP=function(F,W){F.castSession_&&(F.castSession_.removeUpdateListener(F.boundCastStatusListener_),F.castSession_.removeMediaListener(F.boundCastMediaListener_),F.onCastMediaChange_(null));F.castSession_=W;if(F.castSession_&&(iw("Setting cast session: "+F.castSession_.sessionId),F.castSession_.addUpdateListener(F.boundCastStatusListener_),F.castSession_.addMediaListener(F.boundCastMediaListener_),F.castSession_.media.length))F.onCastMediaChange_(F.castSession_.media[0])};
e0.prototype.onCastStatusUpdate_=function(F){if(!F)this.onCastMediaChange_(null),ubP(this,null);else if(this.castSession_.receiver.volume){F=this.castSession_.receiver.volume;var W=MA(this),E=Math.round(100*F.level||0);if(W.volume!=E||W.muted!=F.muted)iw("Cast volume update: "+F.level+(F.muted?" muted":"")),W.volume=E,W.muted=!!F.muted,t6(this,W)}};
e0.prototype.onCastMediaChange_=function(F){iw("Cast media: "+!!F);this.castMedia_&&this.castMedia_.removeUpdateListener(this.boundCastMediaUpdateListener_);if(this.castMedia_=F)this.castMedia_.addUpdateListener(this.boundCastMediaUpdateListener_),K8q(this),this.publish("remotePlayerChange")};
var K8q=function(F){var W=F.castMedia_.media,E=F.castMedia_.customData;if(W&&E){var h=MA(F);W.contentId!=h.videoId&&iw("Cast changing video to: "+W.contentId);h.videoId=W.contentId;h.playerState=E.playerState;Rf(h,F.castMedia_.getEstimatedTime());t6(F,h)}else iw("No cast media video. Ignoring state update.")};
e0.prototype.onCastMediaUpdate_=function(F){if(F)K8q(this),this.publish("remotePlayerChange");else this.onCastMediaChange_(null)};
e0.prototype.onCloudviewAvailabilityChange_=function(){var F=Ps6();F&&ubP(this,F)};
e0.prototype.warn_=function(F){jx("CP",F)};
var SXq=function(F,W,E){return(0,_.kj)(function(h){this.warn_("Failed to "+W+" with cast v2 channel. Error code: "+h.code);h.code!=chrome.cast.ErrorCode.TIMEOUT&&(this.warn_("Retrying "+W+" using MDx browser channel."),Q3(this,W,E))},F)};var BV=function(F,W,E,h){h=h===void 0?!1:h;_.Fl.call(this);var d=this;this.connectTimerId_=NaN;this.reconnecting_=!1;this.idleDisconnectTimerId_=this.clientSetVideoTimerId_=this.playingSyncTimerId_=this.reconnectedCheckScreenTimeout_=NaN;this.listeners_=[];this.autoplayMode_=this.autoplayVideoId_=this.clientVideoId_=this.playerContext_=this.channelService=null;this.JSC$17485_http_=F;this.enableConnectWithInitialState_=h;this.listeners_.push(_.FA(window,"beforeunload",function(){d.JSC$17488_disconnect_(2)}));
this.connectedDevices_=[];this.playerContext_=new Ke;this.currentScreenId_=W.id;this.currentScreenIdType_=W.idType;this.channelService=K1$(this.JSC$17485_http_,E,this.JSC$17488_getXsrfToken_,this.currentScreenIdType_=="shortLived",this.currentScreenId_);this.channelService.listen("channelOpened",function(){FoK(d)});
this.channelService.listen("channelClosed",function(){C6("Channel closed");isNaN(d.connectTimerId_)?bw(!0):bw();d.dispose()});
this.channelService.listen("channelError",function(V){bw();isNaN(d.getReconnectTimeout_())?(V==1&&d.currentScreenIdType_=="shortLived"&&d.publish("browserChannelAuthError",V),C6("Channel error: "+V+" without reconnection"),d.dispose()):(d.reconnecting_=!0,C6("Channel error: "+V+" with reconnection in "+d.getReconnectTimeout_()+" ms"),Wo6(d,2))});
this.channelService.listen("channelMessage",function(V){EET(d,V)});
this.channelService.setLoungeToken(W.token);this.subscribe("remoteQueueChange",function(){var V=d.playerContext_.videoId;nxF()&&_.tl("yt-remote-session-video-id",V)})};
_.k(BV,_.Fl);
BV.prototype.connect=function(F,W){if(W){var E=W.listId,h=W.videoId,d=W.videoIds,V=W.playerParams,R=W.clickTrackingParams,M=W.index,g={videoId:h},t=W.currentTime,C=W.locationInfo;W=W.loopMode;t!==void 0&&(g.currentTime=t<=5?0:t);V&&(g.playerParams=V);C&&(g.locationInfo=C);R&&(g.clickTrackingParams=R);E&&(g.listId=E);d&&d.length>0&&(g.videoIds=d.join(","));M!==void 0&&(g.currentIndex=M);this.enableConnectWithInitialState_&&(g.loopMode=W||"LOOP_MODE_OFF");E&&(this.playerContext_.listId=E);this.playerContext_.videoId=
h;this.playerContext_.index=M||0;this.playerContext_.state=3;Rf(this.playerContext_,t);this.autoplayMode_="UNSUPPORTED";E=this.enableConnectWithInitialState_?"setInitialState":"setPlaylist";C6("Connecting with "+E+" and params: "+(0,_.ad)(g));this.channelService.connect({method:E,params:(0,_.ad)(g)},F,T86())}else C6("Connecting without params"),this.channelService.connect({},F,T86());hBg(this)};
BV.prototype.setLoungeToken=function(F){this.channelService.setLoungeToken(F)};
BV.prototype.dispose=function(){this.isDisposed()||(_.S5("yt.mdx.remote.remoteClient_",null),this.publish("beforeDispose"),Wo6(this,3));_.Fl.prototype.dispose.call(this)};
BV.prototype.disposeInternal=function(){dX6(this);N_6(this);V8g(this);_.M0(this.clientSetVideoTimerId_);this.clientSetVideoTimerId_=NaN;_.M0(this.idleDisconnectTimerId_);this.idleDisconnectTimerId_=NaN;this.clientVideoId_=null;_.rgk(this.listeners_);this.listeners_.length=0;this.channelService.dispose();_.Fl.prototype.disposeInternal.call(this);this.autoplayMode_=this.autoplayVideoId_=this.connectedDevices_=this.playerContext_=this.channelService=null};
var UXT=function(F){return _.yo(F.connectedDevices_,function(W){return W.type=="LOUNGE_SCREEN"})},C6=function(F){jx("conn",F)},Wo6=function(F,W){F.publish("proxyStateChange",W)},hBg=function(F){F.connectTimerId_=_.RA(function(){C6("Connecting timeout");
F.JSC$17488_disconnect_(1)},2E4)},dX6=function(F){_.M0(F.connectTimerId_);
F.connectTimerId_=NaN},V8g=function(F){_.M0(F.reconnectedCheckScreenTimeout_);
F.reconnectedCheckScreenTimeout_=NaN},RB8=function(F){N_6(F);
F.playingSyncTimerId_=_.RA(function(){vV(F,"getNowPlaying")},2E4)},N_6=function(F){_.M0(F.playingSyncTimerId_);
F.playingSyncTimerId_=NaN},FoK=function(F){C6("Channel opened");
F.reconnecting_&&(F.reconnecting_=!1,V8g(F),F.reconnectedCheckScreenTimeout_=_.RA(function(){C6("Timing out waiting for a screen.");F.JSC$17488_disconnect_(1)},15E3))},M8q=function(F,W){var E=null;
if(W){var h=UXT(F);h&&(E={clientName:h.clientName,deviceMake:h.brand,deviceModel:h.model,osVersion:h.osVersion})}_.S5("yt.mdx.remote.remoteClient_",E);W&&(dX6(F),V8g(F));E=F.channelService.isChannelOpened()&&isNaN(F.connectTimerId_);W==E?W&&(Wo6(F,1),vV(F,"getSubtitlesTrack")):W?(F.getOtherConnectedRemoteId_()&&F.playerContext_.reset(),Wo6(F,1),vV(F,"getNowPlaying"),eBN(F)):F.JSC$17488_disconnect_(1)},gEq=function(F,W){var E=W.params.videoId;
delete W.params.videoId;E==F.playerContext_.videoId&&(_.xd.isEmpty(W.params)?F.playerContext_.trackData=null:F.playerContext_.trackData=W.params,F.publish("remotePlayerChange"))},QvP=function(F,W,E){var h=W.params.videoId||W.params.video_id,d=parseInt(W.params.currentIndex,10);
F.playerContext_.listId=W.params.listId||F.playerContext_.listId;GYu(F.playerContext_,h,d);F.publish("remoteQueueChange",E)},zBN=function(F,W){W.params=W.params||{};
QvP(F,W,"NOW_PLAYING_MAY_CHANGE");F.onStateChange_(W);F.publish("autoplayDismissed")};
BV.prototype.onStateChange_=function(F){var W=parseInt(F.params.currentTime||F.params.current_time,10);Rf(this.playerContext_,isNaN(W)?0:W);W=parseInt(F.params.state,10);W=isNaN(W)?-1:W;W==-1&&this.playerContext_.playerState==-1E3&&(W=-1E3);this.playerContext_.playerState=W;W=Number(F.params.loadedTime);this.playerContext_.loadedTime=isNaN(W)?0:W;W=Number(F.params.duration);this.playerContext_.duration_=isNaN(W)?0:W;W=this.playerContext_;var E=Number(F.params.liveIngestionTime);W.liveIngestionTime_=
E;W.isLive_=isNaN(E)?!1:!0;W=this.playerContext_;E=Number(F.params.seekableStartTime);F=Number(F.params.seekableEndTime);W.seekableStart_=isNaN(E)?0:E;W.seekableEnd_=isNaN(F)?0:F;this.playerContext_.playerState==1?RB8(this):N_6(this);this.publish("remotePlayerChange")};
BV.prototype.onAdStateChange_=function(F){if(this.playerContext_.playerState!=-1E3){var W=1085;switch(parseInt(F.params.adState,10)){case 1:W=1081;break;case 2:W=1084;break;case 0:W=1083}this.playerContext_.playerState=W;F=parseInt(F.params.currentTime,10);Rf(this.playerContext_,isNaN(F)?0:F);this.publish("remotePlayerChange")}};
var t86=function(F,W){var E=W.params.muted=="true";F.playerContext_.volume=parseInt(W.params.volume,10);F.playerContext_.muted=E;F.publish("remotePlayerChange")},Ca$=function(F,W){F.autoplayVideoId_=W.params.videoId;
F.publish("nowAutoplaying",parseInt(W.params.timeout,10))},B_O=function(F,W){F.autoplayVideoId_=W.params.videoId||null;
F.publish("autoplayUpNext",F.autoplayVideoId_)},vE6=function(F,W){F.autoplayMode_=W.params.autoplayMode;
F.publish("autoplayModeChange",F.autoplayMode_);F.autoplayMode_=="DISABLED"&&F.publish("autoplayDismissed")},Iz8=function(F,W){var E=W.params.hasNext=="true";
F.playerContext_.hasPrevious=W.params.hasPrevious=="true";F.playerContext_.hasNext=E;F.publish("previousNextChange")};
BV.prototype.isCapabilitySupportedOnConnectedDevices_=function(F){if(!this.connectedDevices_||this.connectedDevices_.length===0)return!1;for(var W=_.U(this.connectedDevices_),E=W.next();!E.done;E=W.next())if(!E.value.capabilities.has(F))return!1;return!0};
var EET=function(F,W){W=W.message;W.params?C6("Received: action="+W.action+", params="+(0,_.ad)(W.params)):C6("Received: action="+W.action+" {}");switch(W.action){case "loungeStatus":W=(0,_.$x)(W.params.devices);F.connectedDevices_=_.AN(W,function(h){return new SY(h)});
W=!!_.yo(F.connectedDevices_,function(h){return h.type=="LOUNGE_SCREEN"});
M8q(F,W);W=F.isCapabilitySupportedOnConnectedDevices_("mlm");F.publish("multiStateLoopEnabled",W);break;case "loungeScreenDisconnected":m06(F.connectedDevices_,function(h){return h.type=="LOUNGE_SCREEN"});
M8q(F,!1);break;case "remoteConnected":var E=new SY((0,_.$x)(W.params.device));_.yo(F.connectedDevices_,function(h){return h.equals(E)})||_.GR(F.connectedDevices_,E);
break;case "remoteDisconnected":E=new SY((0,_.$x)(W.params.device));m06(F.connectedDevices_,function(h){return h.equals(E)});
break;case "gracefulDisconnect":break;case "playlistModified":QvP(F,W,"QUEUE_MODIFIED");break;case "nowPlaying":zBN(F,W);break;case "onStateChange":F.onStateChange_(W);break;case "onAdStateChange":F.onAdStateChange_(W);break;case "onVolumeChanged":t86(F,W);break;case "onSubtitlesTrackChanged":gEq(F,W);break;case "nowAutoplaying":Ca$(F,W);break;case "autoplayDismissed":F.publish("autoplayDismissed");break;case "autoplayUpNext":B_O(F,W);break;case "onAutoplayModeChanged":vE6(F,W);break;case "onHasPreviousNextChanged":Iz8(F,
W);break;case "requestAssistedSignIn":F.publish("assistedSignInRequested",W.params.authCode);break;case "onLoopModeChanged":F.publish("loopModeChange",W.params.loopMode);break;default:C6("Unrecognized action: "+W.action)}};
_.N=BV.prototype;_.N.getProxyState_=function(){var F=3;this.isDisposed()||(F=0,isNaN(this.getReconnectTimeout_())?this.channelService.isChannelOpened()&&isNaN(this.connectTimerId_)&&(F=1):F=2);return F};
_.N.JSC$17488_disconnect_=function(F){C6("Disconnecting with "+F);_.S5("yt.mdx.remote.remoteClient_",null);dX6(this);this.publish("beforeDisconnect",F);F==1&&bw();this.channelService.disconnect(F);this.dispose()};
_.N.getPlayerContextData_=function(){var F=this.playerContext_;this.clientVideoId_&&(F=this.playerContext_.clone(),GYu(F,this.clientVideoId_,F.index));return YX6(F)};
_.N.setPlayerContextData_=function(F){var W=this,E=new Ke(F);E.videoId&&E.videoId!=this.playerContext_.videoId&&(this.clientVideoId_=E.videoId,_.M0(this.clientSetVideoTimerId_),this.clientSetVideoTimerId_=_.RA(function(){if(W.clientVideoId_){var d=W.clientVideoId_;W.clientVideoId_=null;W.playerContext_.videoId!=d&&vV(W,"getNowPlaying")}},5E3));
var h=[];this.playerContext_.listId==E.listId&&this.playerContext_.videoId==E.videoId&&this.playerContext_.index==E.index||h.push("remoteQueueChange");this.playerContext_.playerState==E.playerState&&this.playerContext_.volume==E.volume&&this.playerContext_.muted==E.muted&&oQK(this.playerContext_)==oQK(E)&&(0,_.ad)(this.playerContext_.trackData)==(0,_.ad)(E.trackData)||h.push("remotePlayerChange");this.playerContext_.reset(F);_.Tk(h,function(d){this.publish(d)},this)};
_.N.getOtherConnectedRemoteId_=function(){var F=this.channelService.getDeviceId(),W=_.yo(this.connectedDevices_,function(E){return E.type=="REMOTE_CONTROL"&&E.id!=F});
return W?W.id:""};
_.N.getReconnectTimeout_=function(){return this.channelService.getReconnectTimeout()};
_.N.getAutoplayMode_=function(){return this.autoplayMode_||"UNSUPPORTED"};
_.N.getAutoplayVideoId_=function(){return this.autoplayVideoId_||""};
_.N.JSC$17488_reconnect_=function(){!isNaN(this.getReconnectTimeout_())&&this.channelService.reconnect()};
var eBN=function(F){_.M0(F.idleDisconnectTimerId_);F.idleDisconnectTimerId_=_.RA(function(){F.JSC$17488_disconnect_(1)},864E5)},vV=function(F,W,E){E?C6("Sending: action="+W+", params="+(0,_.ad)(E)):C6("Sending: action="+W);
F.channelService.sendMessage(W,E)};
BV.prototype.sendMessageWithUserAction_=function(F,W){vV(this,F,W);eBN(this)};
BV.prototype.JSC$17488_getXsrfToken_=function(){var F=_.BZ.get("SAPISID","")||_.BZ.get("__Secure-1PAPISID",void 0)||"",W=_.BZ.get("__Secure-3PAPISID","")||"";if(!F&&!W)return"";F=_.FG(_.Dq(F),2);W=_.FG(_.Dq(W),2);return _.FG(_.Dq(","+F+","+W),2)};
BV.prototype.subscribe=BV.prototype.subscribe;BV.prototype.unsubscribeByKey=BV.prototype.unsubscribeByKey;BV.prototype.getProxyState=BV.prototype.getProxyState_;BV.prototype.disconnect=BV.prototype.JSC$17488_disconnect_;BV.prototype.getPlayerContextData=BV.prototype.getPlayerContextData_;BV.prototype.setPlayerContextData=BV.prototype.setPlayerContextData_;BV.prototype.getOtherConnectedRemoteId=BV.prototype.getOtherConnectedRemoteId_;BV.prototype.getReconnectTimeout=BV.prototype.getReconnectTimeout_;
BV.prototype.getAutoplayMode=BV.prototype.getAutoplayMode_;BV.prototype.getAutoplayVideoId=BV.prototype.getAutoplayVideoId_;BV.prototype.reconnect=BV.prototype.JSC$17488_reconnect_;BV.prototype.sendMessage=BV.prototype.sendMessageWithUserAction_;BV.prototype.getXsrfToken=BV.prototype.JSC$17488_getXsrfToken_;BV.prototype.isCapabilitySupportedOnConnectedDevices=BV.prototype.isCapabilitySupportedOnConnectedDevices_;var clx=function(F){T6.call(this,"ScreenServiceProxy");this.instance_=F;this.subscriptionKeys_=[];this.subscriptionKeys_.push(this.instance_.$_s("screenChange",(0,_.kj)(this.JSC$17491_onScreenChange_,this)));this.subscriptionKeys_.push(this.instance_.$_s("onlineScreenChange",(0,_.kj)(this.onOnlineScreenChange_,this)))};
_.k(clx,T6);_.N=clx.prototype;_.N.getScreens=function(F){return this.instance_.$_gs(F)};
_.N.contains=function(F){return!!this.instance_.$_c(F)};
_.N.get=function(F){return this.instance_.$_g(F)};
_.N.start=function(){this.instance_.$_st()};
_.N.add=function(F,W,E){this.instance_.$_a(F,W,E)};
_.N.remove=function(F,W,E){this.instance_.$_r(F,W,E)};
_.N.updateName=function(F,W,E,h){this.instance_.$_un(F,W,E,h)};
_.N.disposeInternal=function(){for(var F=this.subscriptionKeys_.length,W=0;W<F;++W)this.instance_.$_ubk(this.subscriptionKeys_[W]);this.subscriptionKeys_.length=0;this.instance_=null;T6.prototype.disposeInternal.call(this)};
_.N.JSC$17491_onScreenChange_=function(){this.publish("screenChange")};
_.N.onOnlineScreenChange_=function(){this.publish("onlineScreenChange")};
Ym.prototype.$_st=Ym.prototype.start;Ym.prototype.$_gspc=Ym.prototype.JSC$17448_getScreenByPairingCode;Ym.prototype.$_gsppc=Ym.prototype.JSC$17448_getScreenByPollingPairingCode;Ym.prototype.$_c=Ym.prototype.contains;Ym.prototype.$_g=Ym.prototype.get;Ym.prototype.$_a=Ym.prototype.add;Ym.prototype.$_un=Ym.prototype.updateName;Ym.prototype.$_r=Ym.prototype.remove;Ym.prototype.$_gs=Ym.prototype.getScreens;Ym.prototype.$_gos=Ym.prototype.JSC$17448_getOnlineScreens;Ym.prototype.$_s=Ym.prototype.subscribe;
Ym.prototype.$_ubk=Ym.prototype.unsubscribeByKey;var qkw=function(F){wfK();if(!lw||!lw.get("yt-remote-disable-remote-module-for-dev")){F=_.b0("MDX_CONFIG")||F;mjN();jk6();If||(If=new Js(F?F.loungeApiHost:void 0),uf6()&&(If.basePath="/api/loungedev"));cV||(cV=_.ju("yt.mdx.remote.deferredProxies_")||[],_.S5("yt.mdx.remote.deferredProxies_",cV));DXK();var W=Dw();if(!W){var E=new Ym(If,F?F.disableAutomaticScreenCache||!1:!1);_.S5("yt.mdx.remote.screenService_",E);W=Dw();var h={};F&&(h={appId:F.appId,disableDial:F.disableDial,theme:F.theme,loadCastApiSetupScript:F.loadCastApiSetupScript,
disableCastApi:F.disableCastApi,enableDialLoungeToken:F.enableDialLoungeToken,enableCastLoungeToken:F.enableCastLoungeToken,forceMirroring:F.forceMirroring});_.S5("yt.mdx.remote.enableConnectWithInitialState_",F?F.enableConnectWithInitialState||!1:!1);Ls6(E,function(V){V?xn()&&a2K(xn(),"YouTube TV"):E.subscribe("onlineScreenChange",function(){V6("yt-remote-receiver-availability-change")})},h)}if(F&&!_.ju("yt.mdx.remote.initialized_")){_.S5("yt.mdx.remote.initialized_",!0);
kn("Initializing: "+(0,_.ad)(F));A6.push(_.UB("yt-remote-cast2-api-ready",function(){V6("yt-remote-api-ready")}));
A6.push(_.UB("yt-remote-cast2-availability-change",function(){V6("yt-remote-receiver-availability-change")}));
A6.push(_.UB("yt-remote-cast2-receiver-selected",function(){xXO();V6("yt-remote-auto-connect","cast-selector-receiver")}));
A6.push(_.UB("yt-remote-cast2-receiver-resumed",function(){V6("yt-remote-receiver-resumed","cast-selector-receiver")}));
A6.push(_.UB("yt-remote-cast2-session-change",kSx));A6.push(_.UB("yt-remote-connection-change",function(V){V?a2K(xn(),"YouTube TV"):AlT()||(a2K(null,null),HYK())}));
A6.push(_.UB("yt-remote-cast2-session-failed",function(){V6("yt-remote-connection-failed")}));
h=svK();F.isAuto&&(h.id+="#dial");var d=F.capabilities||[];d.length>0&&(h.capabilities=d);h.name=F.device;h.app=F.app;(F=F.theme)&&(h.theme=F);kn(" -- with channel params: "+(0,_.ad)(h));h?(_.tl("yt-remote-session-app",h.app),_.tl("yt-remote-session-name",h.name)):(_.B2("yt-remote-session-app"),_.B2("yt-remote-session-name"));_.S5("yt.mdx.remote.channelParams_",h);W.start();xn()||Log()}}},Zyg=function(){var F=Dw().instance_.$_gos();
var W=$Xu();W&&su()&&(OgK(F,W)||F.push(W));return fU8(F)},X2w=function(){var F=Zyg(),W=$Xu();
W||(W=AlT());return _.yo(F,function(E){return W&&fe(W,E.key)?!0:!1})},$Xu=function(){var F=xn();
if(!F)return null;var W=Dw().getScreens();return Oo(W,F)},kSx=function(F){kn("remote.onCastSessionChange_: "+f2x(F));
if(F){var W=$Xu();W&&W.id==F.id?(a2K(W.id,"YouTube TV"),F.idType=="shortLived"&&(F=F.token)&&(W=su())&&W.setLoungeToken(F)):(W&&Hy$(),PaK(F,1))}else su()&&Hy$()},Hy$=function(){JFT()?pe().stopSession():Sx("stopSession called before API ready.");
var F=su();F&&(F.disconnect(1),JlO(null))},azO=function(){var F=su();
return F&&F.getProxyState()!=3?new e0(su(),void 0):null},kn=function(F){jx("remote",F)},Dw=function(){if(!fzO){var F=_.ju("yt.mdx.remote.screenService_");
fzO=F?new clx(F):null}return fzO},xn=function(){return _.ju("yt.mdx.remote.currentScreenId_")},OyT=function(F){_.S5("yt.mdx.remote.currentScreenId_",F)},xXO=function(){_.S5("yt.mdx.remote.connectData_",null)},su=function(){return _.ju("yt.mdx.remote.connection_")},JlO=function(F){var W=su();
xXO();F||OyT("");_.S5("yt.mdx.remote.connection_",F);cV&&(_.Tk(cV,function(E){E(F)}),cV.length=0);
W&&!F?V6("yt-remote-connection-change",!1):!W&&F&&V6("yt-remote-connection-change",!0)},AlT=function(){var F=nxF();
if(!F)return null;var W=Dw();if(!W)return null;W=W.getScreens();return Oo(W,F)},PaK=function(F,W){OyT(F.id);
F=new BV(If,F,svK(),_.ju("yt.mdx.remote.enableConnectWithInitialState_")||!1);F.connect(W,_.ju("yt.mdx.remote.connectData_"));F.subscribe("beforeDisconnect",function(E){V6("yt-remote-before-disconnect",E)});
F.subscribe("beforeDispose",function(){su()&&JlO(null)});
F.subscribe("browserChannelAuthError",function(){var E=$Xu();E&&E.idType=="shortLived"&&(JFT()?pe().handleBrowserChannelAuthError():Sx("refreshLoungeToken called before API ready."))});
JlO(F)},Log=function(){var F=AlT();
F?(kn("Resume connection to: "+f2x(F)),PaK(F,0)):(bw(),HYK(),kn("Skipping connecting because no session screen found."))},If=null,cV=null,fzO=null,DXK=function(){var F=svK();
if(_.xd.isEmpty(F)){F=lUw();var W=_.Cy("yt-remote-session-name")||"",E=_.Cy("yt-remote-session-app")||"";F={device:"REMOTE_CONTROL",id:F,name:W,app:E,mdxVersion:3};F.authuser=String(_.b0("SESSION_INDEX","0"));(W=_.b0("DELEGATED_SESSION_ID"))&&(F.pageId=String(W));_.S5("yt.mdx.remote.channelParams_",F)}},svK=function(){return _.ju("yt.mdx.remote.channelParams_")||{}},A6=[];var byT=new _.bY("yt-menu"),lz8=function(){},ylP=function(F,W,E){F=W=="right-click"?E.rightClickMenuPopupHint:E.menuPopupHint;
if(!(nEq(W)>10))return W=W||"default",byT.set(W+"-impression",nEq(W)+1),F},nEq=function(F){return parseInt(byT.get((F||"default")+"-impression")||0,10)};
_.RZ(lz8);var jv6=function(){this.contexts_=new WeakMap;this.JSC$17497_networkService_=this.activeContext_=null},iyF=function(F,W,E){var h=F.contexts_.get(W);
h||(h=new pr$(F.JSC$17497_networkService_),F.contexts_.set(W,h));F.activeContext_=h;E&&F.activeContext_.reset();F.activeContext_.start();return F.activeContext_};var L6=function(){};
L6.prototype.enqueue=function(){var F=this,W;return _.e(function(E){if(F.isCounterfactual())return(W=F.getCounterfactualData())&&F.shouldLogCounterfactualImpression()&&F.sendImpressionEndpoints(W),E.return();F.doEnqueue();_.gG(E)})};
L6.prototype.sendImpressionEndpoints=function(F){_.o_.getInstance().triggerOptionalAction("yt-service-request",{},F[0])};var qA=function(F,W){this.renderer=F;this.page=W};
_.k(qA,L6);qA.prototype.getCounterfactualData=function(){if(this.renderer.impressionCommand)return[this.renderer.impressionCommand]};
qA.prototype.isCounterfactual=function(){return!this.renderer.isVisible};
qA.prototype.shouldLogCounterfactualImpression=function(){return!0};
qA.prototype.doEnqueue=function(){var F=_.FF(this.page);F&&F.pause();this.renderer.impressionCommand&&_.o_.getInstance().triggerOptionalAction("yt-service-request",{},this.renderer.impressionCommand);this.renderer.promoCommand&&_.yS(_.o_.getInstance(),[this.renderer.promoCommand],this.page)};var rlK=function(F,W){this.renderer=F;this.resolver=_.G_();this.JSC$17509_enforcementCounter=new _.ayO;W?this.JSC$17509_playerManager=_.FF(W):this.JSC$17509_playerManager=null;_.zB(1,!0)};
_.k(rlK,L6);_.N=rlK.prototype;_.N.getCounterfactualData=function(){if(this.renderer.impressionEndpoints){var F=[];this.renderer.impressionEndpoints.forEach(function(W){(W=_.He(W))&&F.push(W)});
return F}};
_.N.isCounterfactual=function(){return this.renderer.isVisible===!1};
_.N.shouldLogCounterfactualImpression=function(){var F=_.zqY();F?(this.JSC$17509_enforcementCounter.increment("POPUP"),_.zB(3)):_.zB(2);return F};
_.N.cancel=function(){this.resolver.promise.cancel()};
_.N.doEnqueue=function(){var F=this;_.zqY()?(this.JSC$17509_enforcementCounter.increment("POPUP"),_.zB(3),T_O(this)):this.JSC$17509_playerManager?(this.resolver.promise.then(function(){T_O(F)}),oEP(this.resolver,this.JSC$17509_playerManager)):_.zB(2)};
var oEP=function(F,W){var E=_.G_();W.getPlayerPromise().then(function(h){E.resolve(h)});
E.promise.then(function(h){h.addEventListener("onAbnormalityDetected",F.resolve);_.HI(F.promise,function(){h.removeEventListener("onAbnormalityDetected",F.resolve)})});
F.promise.thenCatch(function(){E.promise.cancel()})},T_O=function(F){_.zB(3);
var W={popupType:"LOCKED_MODAL",popup:{enforcementMessageViewModel:F.renderer}};W=_.o_.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:W},{});Promise.all(W).then(function(){GSq();F.JSC$17509_playerManager&&F.JSC$17509_playerManager.pause()})},GSq=function(){bMw(function(F,W){_.OU6(F,W);
F===0?_.zB(7):_.zB(4)})};var Ykg=function(F,W){this.renderer=F;this.page=W;this.resolver=_.G_()};
_.k(Ykg,L6);_.N=Ykg.prototype;_.N.cancel=function(){this.resolver.promise.cancel()};
_.N.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.N.isCounterfactual=function(){return!this.renderer.isVisible};
_.N.shouldLogCounterfactualImpression=function(){return!0};
_.N.doEnqueue=function(){var F=this;this.resolver.promise.then(function(){var E={popup:{mealbarPromoRenderer:F.renderer},popupType:"MEALBAR"};_.o_.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:E},{})});
switch(this.renderer.triggerCondition){case "TRIGGER_CONDITION_POST_AD":if(this.page){var W=_.FF(this.page);W&&w2K(this.resolver,W)}break;default:this.resolver.resolve()}};
var w2K=function(F,W){var E=_.G_();W.getPlayerPromise().then(function(h){E.resolve(h)});
E.promise.then(function(h){h.addEventListener("onAdEnd",F.resolve);_.HI(F.promise,function(){h.removeEventListener("onAdEnd",F.resolve)})});
F.promise.thenCatch(function(){E.promise.cancel()})};var uBP=function(F,W){this.renderer=F;this.page=W};
_.k(uBP,L6);_.N=uBP.prototype;_.N.cancel=function(){this.JSC$17517_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$17517_downloadedVideosCountSelectorUnsubscriber(),this.JSC$17517_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.N.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.N.isCounterfactual=function(){return!this.renderer.isVisible};
_.N.shouldLogCounterfactualImpression=function(){return!0};
_.N.doEnqueue=function(){var F=this,W,E;((W=this.renderer.upsellDialogTriggerConditionSupportedDatas)==null?void 0:(E=W.playbackUpsellDialogTriggerConditionData)==null?void 0:E.triggerType)==="TRIGGER_TYPE_POST_DOWNLOAD"?this.JSC$17517_downloadedVideosCountSelectorUnsubscriber=_.kQ(_.uC(),PY$,function(h,d){h>d&&(SkN(F),F.cancel())}):SkN(this)};
var SkN=function(F){var W={popup:{upsellDialogRenderer:F.renderer},popupType:"MODAL"};_.o_.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:W},{});(F=_.FF(F.page))&&F.pause()};var $n={},p2x=($n.TOOLTIP_POSITION_TYPE_BELOW="OPEN_POPUP_POSITION_BOTTOM",$n.TOOLTIP_POSITION_TYPE_START="OPEN_POPUP_POSITION_LEFT",$n.TOOLTIP_POSITION_TYPE_END="OPEN_POPUP_POSITION_RIGHT",$n.TOOLTIP_POSITION_TYPE_BELOW_START="OPEN_POPUP_POSITION_BOTTOMLEFT",$n.TOOLTIP_POSITION_TYPE_BELOW_END="OPEN_POPUP_POSITION_BOTTOMRIGHT",$n.TOOLTIP_POSITION_TYPE_ABOVE_START="OPEN_POPUP_POSITION_TOPLEFT",$n.TOOLTIP_POSITION_TYPE_ABOVE_END="OPEN_POPUP_POSITION_TOPRIGHT",$n),mX8=function(F,W){this.renderer=F;this.targetManager=
W};
_.k(mX8,L6);_.N=mX8.prototype;_.N.cancel=function(){this.renderer.triggerCondition==="TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD"&&this.JSC$17524_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$17524_downloadedVideosCountSelectorUnsubscriber(),this.JSC$17524_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.N.getCounterfactualData=function(){if(this.isCounterfactual()){var F;return(F=this.renderer.promoConfig)==null?void 0:F.impressionEndpoints}};
_.N.isCounterfactual=function(){return!(!this.renderer.promoConfig||!this.renderer.promoConfig.isCounterfactual)};
_.N.shouldLogCounterfactualImpression=function(){return!0};
_.N.doEnqueue=function(){var F=this;if(this.renderer.targetId)switch(this.renderer.triggerCondition){case "TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD":this.JSC$17524_downloadedVideosCountSelectorUnsubscriber=_.kQ(_.uC(),PY$,function(W,E){F.renderer.targetId&&W>E&&($r6(F.targetManager,F.renderer.targetId,Ko$(F)),F.cancel())});
break;default:$r6(this.targetManager,this.renderer.targetId,Ko$(this))}};
var Ko$=function(F){var W;if((W=F.renderer.suggestedPosition)==null?0:W.type)var E=p2x[F.renderer.suggestedPosition.type];E||(E="OPEN_POPUP_POSITION_BOTTOM");return{openPopupAction:{popup:{tooltipRenderer:F.renderer},popupType:"HINT",position:E}}};var F2T=function(){this.previousPage=null},W2q;
F2T.prototype.registerPromoCommand=function(F,W){Eg8(this,void 0,void 0,_.D(F.roadblock,II8),void 0,void 0,W)};
var Eg8=function(F,W,E,h,d,V,R){F.previousPage!==R&&F.pendingTooltipPromo&&F.pendingTooltipPromo.cancel();F.previousPage=R;d?(F.pendingEnforcementPromo&&F.pendingEnforcementPromo.cancel(),F.pendingEnforcementPromo=new rlK(d,R),F.pendingEnforcementPromo.enqueue()):V?(F.pendingCommandWrapperPromo=new qA(V,R),F.pendingCommandWrapperPromo.enqueue()):h?(F.pendingRoadblockPromo&&F.pendingRoadblockPromo.cancel(),F.pendingRoadblockPromo=new uBP(h,R),F.pendingRoadblockPromo.enqueue()):W?(F.pendingMealbarPromo&&
F.pendingMealbarPromo.cancel(),F.pendingMealbarPromo=new Ykg(W,R),F.pendingMealbarPromo.enqueue()):E&&(F.pendingTooltipPromo&&F.pendingTooltipPromo.cancel(),F.pendingTooltipPromo=new mX8(E,_.QV()),F.pendingTooltipPromo.enqueue())},hJN=function(){W2q||(W2q=new F2T);
return W2q};var nbK=!1;var JTK=function(F,W){var E=_.b0("SESSION_INDEX");this.actionToken_=F;this.commonToken_=W;this.sessionIndex_=E},P1K=function(F){var W=_.G_(),E=_.ju("payments.business.integration.bootstrap"),h=_.ju("payments.business.integration"),d=h.Style.create().withMaterialDesignStyle(),V=h.mashupMode.popup("instrument-manager");
E.asMashupMode(V).usingUserIndex(F.sessionIndex_).usingDefaultActivityStatusChangeHandler().usingStyle(d).inStandaloneContext(h.standaloneContextAuthId.forUserId()).instrumentManager(F.actionToken_,F.commonToken_.length>0?F.commonToken_:void 0,function(R){var M=R.instrumentId;M?W.resolve(M):(M=_.ju("payments.business.integration.scenario.InstrumentManager"),W.reject(R.errorCode&&R.errorCode===M.FailureReason.CANCELLED?"instrumentManagerCancelled":"instrumentManagerCallbackError"))}).load(null,function(R){_.nW(R);
W.reject("instrumentManagerLoadError")});
return W.promise};var df=function(F,W,E){this.payloadName="transactionFlowFailed";this.payload={errorType:F,serializedTransactionFlowLoggingParams:W,isUserDismiss:E===void 0?!1:E}};
_.S5("yt.ypc.shared.YpcTransactionFlowError",df);var Zw=function(){return _.zK.apply(this,arguments)||this};
_.k(Zw,_.zK);Zw.prototype.beforeRegister=function(){this.stampDom||(this.stampDom={});this.stampDom.errorRenderer={id:"error",mapping:{liveChatErrorMessageRenderer:"yt-live-chat-error-message-renderer"}}};
Zw.prototype.onErrorMessageDismiss=function(){this._setErrorRenderer(null)};
Zw.prototype.onErrorMessageDismiss=Zw.prototype.onErrorMessageDismiss;_.T([_.O({readOnly:!0,observer:"errorRendererChanged"}),_.Y("design:type",Object)],Zw.prototype,"errorRenderer",void 0);_.T([_.R4("yt-live-chat-error-message-dismiss"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Zw.prototype,"onErrorMessageDismiss",null);Zw=_.T([_.tT()],Zw);var d46=[Zw.prototype];var N5O;var VBx;var U4K=new _.bY("yt-live-chat"),RJO=new Map;RJO.set("timestamp_toggle","show-timestamps");RJO.set("reactions_toggle","allow-reactions");var XQ=function(){return _.n.apply(this,arguments)||this};
_.k(XQ,_.n);_.N=XQ.prototype;_.N.menuItemIdentifierChanged=function(){var F;(F=this.data)!=null&&F.menuItemIdentifier&&(F=RJO.get(this.data.menuItemIdentifier))&&(_.c("enable_lwe_web_mute")?(F=U4K.get(F),this.isToggled=!(F===void 0?!this.data.isToggled:!F)):this.isToggled=U4K.get(F))};
_.N.onFocus=function(){this.toggleButton.focus()};
_.N.onTap=function(){var F=this.data.command;F&&this.componentBehavior.resolveCommand(F)};
_.N.computeText=function(F,W,E){return this.componentBehavior.getSimpleString(F?E:W)};
_.N.computeIcon=function(F,W,E){return(F=F?E:W)&&F.iconType?_.Vd(F.iconType):""};
XQ.prototype.onTap=XQ.prototype.onTap;XQ.prototype.onFocus=XQ.prototype.onFocus;XQ.prototype.menuItemIdentifierChanged=XQ.prototype.menuItemIdentifierChanged;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],XQ.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],XQ.prototype,"componentBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],XQ.prototype,"data",void 0);
_.T([_.O({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.Y("design:type",String)],XQ.prototype,"icon",void 0);_.T([_.O({value:!1}),_.Y("design:type",Boolean)],XQ.prototype,"isToggled",void 0);_.T([_.gQ("tp-yt-paper-toggle-button"),_.Y("design:type",Object)],XQ.prototype,"toggleButton",void 0);_.T([_.ea("data.menuItemIdentifier"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],XQ.prototype,"menuItemIdentifierChanged",null);
_.T([_.R4("focus"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],XQ.prototype,"onFocus",null);_.T([_.R4("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],XQ.prototype,"onTap",null);XQ=_.T([_.$3({disableElementRegistration:!0,is:"yt-live-chat-toggle-renderer",noInjection:!0})],XQ);
_.r(XQ,"yt-live-chat-toggle-renderer",function(){if(VBx===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-toggle-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_toggle_renderer.yt.live.chat.toggle.renderer.css.js--\x3e<tp-yt-paper-item class="style-scope yt-live-chat-toggle-renderer">\n   <yt-icon icon="[[icon]]" class="style-scope yt-live-chat-toggle-renderer"></yt-icon>\n  <span class="style-scope yt-live-chat-toggle-renderer">[[computeText(data.isToggled, data.defaultText, data.toggledText)]]</span>\n  <tp-yt-paper-toggle-button aria-label="[[computeText(data.isToggled, data.defaultText, data.toggledText)]]" checked="[[isToggled]]" class="style-scope yt-live-chat-toggle-renderer">\n  </tp-yt-paper-toggle-button>\n</tp-yt-paper-item>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;N5O===void 0&&(N5O=document.createElement("template"));var h=N5O;E.call(W,h.content.cloneNode(!0),F.content.firstChild);VBx=F}F=VBx;return F},{mode:_.c("live_chat_enable_sink_wrapper")?2:0});var eJ6=new _.NG("NAVIGATION_PROGRESS_TOKEN");_.OG("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS",{});var MBq={},GJF=(MBq.CSI=function(F,W){var E={};E[F]=W;F=_.yn(_.pMo)(E);Object.keys(F).length>0&&_.$b(F)},MBq.ECATCHER=function(F){return function(W,E){_.b0(F)[W]=E}}("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"),MBq);var ggu={},Q98={},zJ8=(Q98[VtF.name]=!0,Q98),HV=function(){var F=_.zK.apply(this,arguments)||this;F._noAccessors=!0;F.tabGesturesIsActive=!1;F.actionRouterIsRoot=!0;F.appBehaviorActionMap={"yt-update-notifications-unseen-count-action":"handleUpdateNotificationsUnseenCountAction","yt-clear-cookie-action":"handleClearCookieAction","yt-store-grafted-ve-action":"onStoreGraftedVeAction","yt-history-load":"onYtHistoryLoad","yt-history-pop":"onYtHistoryPop"};F.pageTitle="";F.titleSuffix="YouTube";F.unseenNotificationCount=
0;F.hasNavigated=!1;F.hasSetScrollTopForNavigation=!1;F.pagePreparer=null;F.zwiebackInitJobId=0;F.dataUpdatePromise=null;F.loadDepsPromise=_.e7();F.hasPendingNavigation=!1;F.pendingPlayerOnResponseReceivedActions=[];return F};
_.k(HV,_.zK);HV.prototype.attached=function(){tBw(this);document.addEventListener("yt-navigate-cache",_.UO(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.registerActionMap(this.appBehaviorActionMap);var F=PV();F.init();F.dispatchElement=this.hostElement};
var tBw=function(F,W){W=W===void 0?0:W;var E=_.WZ().resolve(_.Fd(_.g_));if(E)CDw(F,E);else{if(W>=5)throw Error("Xk");setTimeout(function(){tBw(F,W+1)},0)}},CDw=function(F,W){W.addEventListener("yt-navigate-start",_.UO(F,F.onYtNavigateStart));
W.addEventListener("yt-navigate-finish",_.UO(F,F.onYtNavigateFinish));W.addEventListener("yt-navigate-error",_.UO(F,F.onYtNavigateError));W.addEventListener("yt-page-data-fetched",_.UO(F,F.onYtPageDataFetched))};
_.N=HV.prototype;_.N.detached=function(){var F=_.WZ().resolve(_.g_);F.removeEventListener("yt-navigate-start",_.UO(this,this.onYtNavigateStart));F.removeEventListener("yt-navigate-finish",_.UO(this,this.onYtNavigateFinish));F.removeEventListener("yt-navigate-error",_.UO(this,this.onYtNavigateError));F.removeEventListener("yt-page-data-fetched",_.UO(this,this.onYtPageDataFetched));document.removeEventListener("yt-navigate-cache",_.UO(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.unregisterActionMap(this.appBehaviorActionMap)};
_.N.setPageOffset=function(F,W){F?_.dW(this.hostElement,"yt-set-page-offset",[F,W]):_.a_(Error("Yk"))};
_.N.setPageOffsetForNavigation=function(F,W){this.hasSetScrollTopForNavigation||(this.hasSetScrollTopForNavigation=!0,this.setPageOffset(F,W))};
_.N.onYtNavigateSetPageOffset=function(F,W){this.setPageOffsetForNavigation(W.page,W.offset)};
_.N.getPageOffset=function(){var F=_.Z(this.hostElement).querySelector("#page-manager").getCurrentPage(),W=0;F&&(W=_.dW(this.hostElement,"yt-get-page-offset",[F])[0]);return W};
_.N.onYtHistoryPop=function(F,W){if(_.l0("DISABLE_WARM_LOADS"))F.preventDefault(),window.location.reload();else{var E=_.WZ().resolve(_.g_);E.hasPendingNavigation()&&F.preventDefault();E.cancelPendingNavigation();_.Nc(this.hostElement,"yt-pending-navigation-cancelled");W.errorMsg&&(F=W.errorMsg.split(" - "),W=Error(F[0]),F.length==2&&F[1]&&(_.bf(W,F[1]),_.OB(W)),window.location.reload())}};
_.N.onYtHistoryLoad=function(F,W){var E=this;if(_.l0("DISABLE_WARM_LOADS"))window.location.reload();else{(F=W.endpoint)&&Object.keys(F).length||(F=null);var h=W.historyEntry,d=_.WZ().resolve(_.g_),V=_.WZ().resolve(_.KQ),R=null;h&&h.rootData&&(R=h.rootData);var M=R&&B5g(R);!R||M||R.filler?F?(d.navigate(F,!0),vgq(this,F)):(W.legacyBorder||M||(W.JSC$26410_savedComponentState==null&&R==null?_.OB(new _.xC("Incomplete history entry",W.forward)):_.fn(new _.xC("Malformed history entry",W.JSC$26410_savedComponentState,
W.forward,R))),window.location.reload()):(_.Nre({isHot:!0}),_.$b({webInfo:{navigationReason:"h"}}),_.IhY(),_.P5("srt"),_.P5("pdc"),this.cancelPendingTasks(),IWu(this,W.forward,R),R.player&&(R.player.loaded=!1),vgq(this,F),_.z3T(d,F||{},R,2,{},!1,W).then(function(){E.setPageOffset(V.getCurrentPage(),h.scrollTop||0)}))}};
_.N.initHistoryManager=function(F){if(!this.hasNavigated){this.hasNavigated=!0;var W=_.Z(this.hostElement).querySelector("#page-manager").getCurrentData();F=isNaN(F)?this.getPageOffset():F;var E=_.WZ().resolve(_.g_).currentEndpoint;this.replaceState(E,W,F)}};
_.N.cancelPendingTasks=function(){this.pagePreparer&&this.pagePreparer.cancel()};
_.N.onYtNavigateStart=function(F,W){this.cancelPendingTasks();W.noProgressBar||(F=_.WZ().resolve(_.Fd(eJ6)))&&F.start();F=this.hasPendingNavigation?null:this.data;var E=_.WZ().resolve(_.KQ),h,d,V;_.c("kevlar_use_vimio_behavior")&&!((h=W.endpoint)==null?0:(d=h.commandMetadata)==null?0:(V=d.webCommandMetadata)==null?0:V.ignoreNavigation)&&(h=E.getCurrentPage())&&h.disconnectVisibilityRoot();E.prepareForNavigation(W.pageType,W.endpoint);_.c("kevlar_remove_page_dom_on_switch")||(this.pagePreparer=new _.py(1,
"pcl"),_.mo(this.pagePreparer,E.preparePage.bind(E,W.pageType,W.endpoint)));h=this.getPageOffset();this.initHistoryManager(h);W.reload||this.hasPendingNavigation?this.replaceState(W.endpoint,F,h):(F==null?void 0:F.page)==="watch"&&W.pageType==="watch"&&_.c("kevlar_replace_watch_to_watch_history_state")?this.replaceState(W.endpoint,F,h):(F==null?void 0:F.page)!=="shorts"||W.pageType!=="shorts"||W.endpoint.reelWatchEndpoint.sequenceParams||_.c("short_to_short_back_nav_killswitch")?W.type!="navigate-back"&&
W.type!="navigate-forward"&&(W.pageType==="shorts"&&_.hF(this.hostElement,"yt-shorts-reset"),this.saveAndPush(W.url,W.endpoint,F,h)):this.replaceState(W.endpoint,F,0);this.hasPendingNavigation=!0};
var cqK=function(F){F.hasPendingNavigation=!1;(F=_.WZ().resolve(_.Fd(eJ6)))&&F.finish()};
HV.prototype.onYtNavigateError=function(F,W){cqK(this);F=this.get("endpoint.commandMetadata.webCommandMetadata.url",W);var E=_.Gk(window.location.href);F&&!E.pbjreload&&(W=W.navigationErrorReason||"10",_.c("kevlar_parent_on_pbjreload")&&(E={csn:_.JR()},this.get("data.endpoint.clickTrackingParams")&&(E.itct=this.data.endpoint.clickTrackingParams),_.Sr(F,E)),_.ao(_.YF(F,{pbjreload:W})))};
HV.prototype.onYtNavigateCache=function(F,W){var E=this,h=W.url,d=W.endpoint,V=W.data;F=!!W.miniplayer;W=!!W.skipHistory;if(h&&d&&V){var R=this.getPageOffset(),M=this.data||null;W||this.saveAndPush(h,d,M,R);h=_.z3T(_.WZ().resolve(_.g_),d,V,F?4:3,{},F);F&&h.then(function(){E.dataUpdatePromise&&E.dataUpdatePromise.then(function(){var g=_.WZ().resolve(_.KQ);E.setPageOffset(g.getCurrentPage(),0)})})}};
HV.prototype.onYtNavigateFinish=function(F,W){var E=this;this.dataUpdatePromise&&this.dataUpdatePromise.then(function(){D4P(E,W.fromHistory)})};
var D4P=function(F,W){cqK(F);if(F.pendingPlayerOnResponseReceivedActions){for(var E=_.U(F.pendingPlayerOnResponseReceivedActions),h=E.next();!h.done;h=E.next())_.ei(h.value,F.hostElement);F.pendingPlayerOnResponseReceivedActions=[]}E=_.WZ().resolve(_.KQ);!W&&F.hasNavigated&&((W=E.getCurrentPage())?W.is==="ytd-shorts"||F.tabGesturesIsActive||F.setPageOffsetForNavigation(W,0):_.OB(Error("Zk")));_.fz(function(){_.fz(function(){_.P5("pda")})})};
HV.prototype.onYtNavigate=function(F){if(!F.detail.endpoint){var W=new _.xC("Error: Missing yt-navigate endpoint from target:",F.target,F.target.nodeName);_.a_(W)}if(W=_.c("cold_missing_history"))W=PV(),W.init(!1),W=!(W.browserHistory.boundHistoryReplaceState&&W.browserHistory.boundHistoryPushState);if(W){_.OG("DISABLE_WARM_LOADS",!0);W=new _.xC("Failed to initialize history manager",this.getDebugString());var E=navigator.userAgent&&navigator.userAgent.includes("Version/11.1.2 Safari");this.getThirdPartyManipulationSuspected()||
E?_.OB(W):_.a_(W)}W=F.detail.endpoint;var h,d;_.c("debug_forward_web_query_parameters")&&((h=W.commandMetadata)==null?0:(d=h.webCommandMetadata)==null?0:d.url)&&(W=JSON.parse(JSON.stringify(W)),W.commandMetadata.webCommandMetadata.url=_.iXY(W.commandMetadata.webCommandMetadata.url,window.location.search));F={type:0,command:W,form:{params:F.detail.params,tempData:F.detail.tempData||{},requestType:F.detail.type,createScreenConfig:F.detail.createScreenConfig,reload:F.detail.reload?F.detail.reload:!1,
requestForm:F.detail}};_.c("kevlar_yt_navigate_command_handler")?(h=_.WZ().resolve(_.EJ),F.form.skipDefaultElement=!0,h.resolveCommand(W,{form:F.form})):this.handleNavigate(F)};
HV.prototype.handleNavigate=function(F){this.hasSetScrollTopForNavigation=!1;var W=_.WZ().resolve(_.g_),E=F.form||{};W.navigate(F.command,E.reload,E.params,E.tempData,E.requestType,E.createScreenConfig,E.ignoreConfirmation,E.requestForm)&&vgq(this,F.command,E.tempData)};
HV.prototype.onYtPageDataFetched=function(F,W){try{_.BjH().reset();this.data=W.pageData;this.dataUpdatePromise&&(this.dataUpdatePromise.cancel("canceled dataUpdatePromise_"),this.dataUpdatePromise=null);this.pendingPlayerOnResponseReceivedActions=[];this.dataUpdatePromise=_.WZ().resolve(_.KQ).updatePageData(this.data);var E=this.get("playerResponse.responseContext.serviceTrackingParams",this.data);E&&YT$(E);var h=this.get("response.responseContext.serviceTrackingParams",this.data);h&&YT$(h);var d=
this.get("playerResponse.onResponseReceivedActions",this.data);d&&(d=x4x(this,d));d&&_.Rj(this.hostElement,d,this.hostElement);var V=this.get("playerResponse.responseContext.consistencyTokenJar",this.data),R=this.get("response.responseContext.consistencyTokenJar",this.data);if(V||R){var M=_.AAY(),g=(0,_.xd.getValues)(M.tokenJars);V&&M.replace(g,V);R&&M.replace(g,R)}}catch(t){_.a_(t)}};
var vgq=function(F,W,E){try{F.onYtEndpointChangeHandler(W,E)}catch(h){_.a_(h)}};
_.N=HV.prototype;_.N.onYtEndpointChangeHandler=function(){};
_.N.setPageTitle=function(F){F=(this.pageTitle=F)?F+" - "+this.titleSuffix:this.titleSuffix;document.title=(this.unseenNotificationCount?"("+this.unseenNotificationCount+") ":"")+F};
_.N.onYtUpdateTitle=function(F,W){this.setPageTitle(W)};
_.N.setUnseenNotificationCount=function(F){this.unseenNotificationCount=F;this.setPageTitle(this.pageTitle)};
_.N.handleUpdateNotificationsUnseenCountAction=function(F){_.D(F,iHP)&&((F=_.D(F,iHP).unseenCount)?this.setUnseenNotificationCount(F):this.setUnseenNotificationCount(0))};
_.N.handleClearCookieAction=function(F){var W;(F=(W=_.D(F,lDK))==null?void 0:W.cookieName)&&_.UWe(F)};
_.N.onYtUpdateUnseenNotificationCount=function(F,W){this.setUnseenNotificationCount(W)};
_.N.loadData=function(F){var W=this;this.loadDepsPromise.then(function(){var E=_.WZ().resolve(_.Fd(_.g_));E||_.a_(Error("$k"));if(F&&F.response){if(!F.endpoint){var h=_.jr(window.document.location.href)||"/",d="";if(h==="/"||h.startsWith("/?"))d="WEB_PAGE_TYPE_BROWSE";F.endpoint={commandMetadata:{webCommandMetadata:{url:h,webPageType:d,rootVe:3854}}}}_.z3T(E,F.endpoint,F,5,{})}else F.endpoint?E.navigate(F.endpoint):E.navigate(_.xQ);_.P0.cancelJob(W.zwiebackInitJobId);W.zwiebackInitJobId=_.P0.addLowPriorityJob(yFT)})};
var PV=function(){return _.WZ().resolve(_.QC)};
HV.prototype.getDebugString=function(){return PV().getDebugString()};
HV.prototype.getThirdPartyManipulationSuspected=function(){return PV().getThirdPartyManipulationSuspected()};
HV.prototype.replaceState=function(F,W,E){PV().saveAndReplace(F,W,E)};
HV.prototype.saveAndPush=function(F,W,E,h){PV().saveAndPush(F,W,E,h)};
var B5g=function(F){return _.c("web_honor_cache_for_back")&&(_.D(F.endpoint,_.GM)||_.D(F.endpoint,_.DP))?!0:!F||isNaN(F.expirationTime)?!1:(0,_.KU)()>F.expirationTime},IWu=function(F,W,E){var h=F.get("response.trackingParams",E),d=_.Pf(),V=_.JR();
if(h&&d&&V&&(h=F.get("response.responseContext.webResponseContextExtensionData.ytConfigData.rootVisualElementType",E),!h&&E.rootVe&&(h=E.rootVe),d=W?"forwardButton":"backButton",W=F.get("playerResponse.topbar.desktopTopbarRenderer."+d+".buttonRenderer.command.clickTrackingParams",F.data),F=F.get("response.topbar.desktopTopbarRenderer."+d+".buttonRenderer.command.clickTrackingParams",F.data),W=(F=W||F)?_.ve(F):void 0,F=_.z4(),d=[_.e7(E)],_.QH(F,h,W,{dataPromises:d,csnToClone:E.csn}),E.graftedVes))for(E=
_.U(E.graftedVes),h=E.next();!h.done;h=E.next())_.zY(F,h.value)};
HV.prototype.onStoreGraftedVeAction=function(F){this.data?(this.data.graftedVes||(this.data.graftedVes=[]),this.data.graftedVes.push(F)):_.OB(Error("al"))};
var x4x=function(F,W){return W.filter(function(E){for(var h in E)if(zJ8[h])return F.pendingPlayerOnResponseReceivedActions.push(E),!0;return!1})};
_.Sn.Object.defineProperties(HV.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){}}});
HV.prototype.onStoreGraftedVeAction=HV.prototype.onStoreGraftedVeAction;HV.prototype.loadData=HV.prototype.loadData;HV.prototype.onYtUpdateUnseenNotificationCount=HV.prototype.onYtUpdateUnseenNotificationCount;HV.prototype.handleClearCookieAction=HV.prototype.handleClearCookieAction;HV.prototype.handleUpdateNotificationsUnseenCountAction=HV.prototype.handleUpdateNotificationsUnseenCountAction;HV.prototype.setUnseenNotificationCount=HV.prototype.setUnseenNotificationCount;
HV.prototype.onYtUpdateTitle=HV.prototype.onYtUpdateTitle;HV.prototype.setPageTitle=HV.prototype.setPageTitle;HV.prototype.onYtEndpointChangeHandler=HV.prototype.onYtEndpointChangeHandler;HV.prototype.onYtPageDataFetched=HV.prototype.onYtPageDataFetched;HV.prototype.handleNavigate=HV.prototype.handleNavigate;HV.prototype.onYtNavigate=HV.prototype.onYtNavigate;HV.prototype.onYtNavigateFinish=HV.prototype.onYtNavigateFinish;HV.prototype.onYtNavigateCache=HV.prototype.onYtNavigateCache;
HV.prototype.onYtNavigateError=HV.prototype.onYtNavigateError;HV.prototype.onYtNavigateStart=HV.prototype.onYtNavigateStart;HV.prototype.cancelPendingTasks=HV.prototype.cancelPendingTasks;HV.prototype.initHistoryManager=HV.prototype.initHistoryManager;HV.prototype.onYtHistoryLoad=HV.prototype.onYtHistoryLoad;HV.prototype.onYtHistoryPop=HV.prototype.onYtHistoryPop;HV.prototype.onYtNavigateSetPageOffset=HV.prototype.onYtNavigateSetPageOffset;HV.prototype.setPageOffset=HV.prototype.setPageOffset;
_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],HV.prototype,"ytActionHandlerBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],HV.prototype,"data",void 0);_.T([_.R4("yt-navigate-set-page-offset"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],HV.prototype,"onYtNavigateSetPageOffset",null);
_.T([_.R4("yt-history-pop"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],HV.prototype,"onYtHistoryPop",null);_.T([_.R4("yt-history-load"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event,_.ahB]),_.Y("design:returntype")],HV.prototype,"onYtHistoryLoad",null);_.T([_.R4("yt-navigate"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],HV.prototype,"onYtNavigate",null);
_.T([_.R4("yt-update-title"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event,String]),_.Y("design:returntype")],HV.prototype,"onYtUpdateTitle",null);_.T([_.R4("yt-update-unseen-notification-count"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event,Number]),_.Y("design:returntype")],HV.prototype,"onYtUpdateUnseenNotificationCount",null);HV=_.T([_.tT()],HV);ggu.YtdAppBehavior=[_.FM.YtActionHandlerBehavior,HV.prototype];var J6=function(){var F=_.zK.apply(this,arguments)||this;F._noAccessors=!0;return F};
_.k(J6,_.zK);J6.prototype.ready=function(){var F=this;_.Z(this.hostElement).querySelector("#checkbox").addEventListener("change",function(){F.onChange_()})};
J6.prototype.dataChanged_=function(){_.Z(this.hostElement).querySelector("#checkbox").checked=!1};
J6.prototype.onChange_=function(){var F=_.Z(this.hostElement).querySelector("#checkbox").checked?"selected":"deselected";_.hF(this.hostElement,"yt-dismissal-reason-"+F,this.data.feedbackToken)};
J6.prototype.dataChanged_=J6.prototype.dataChanged_;_.T([_.O(),_.Y("design:type",Object)],J6.prototype,"data",void 0);_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],J6.prototype,"dataChanged_",null);J6=_.T([_.tT()],J6);var kfq=[J6.prototype];var af=function(){var F=_.zK.apply(this,arguments)||this;F.timeoutJobId=0;F.actionMap={"yt-open-popup-action":"startTimeout","yt-close-popup-action":"cancelTimeout"};return F};
_.k(af,_.zK);af.prototype.ytdHatsSurveyBehaviorDataChanged=function(){this.cancelTimeout()};
af.prototype.startTimeout=function(){var F=this,W=this.data&&this.data.displayDurationSeconds;W&&!this.timeoutJobId&&(this.timeoutJobId=_.sB(_.P0,function(){_.dW(F.hostElement,"yt-close-popup-action",[F.is]);F.timeoutJobId=0},W*1E3))};
af.prototype.cancelTimeout=function(){_.P0.cancelJob(this.timeoutJobId);this.timeoutJobId=0};
af.prototype.ytdHatsSurveyBehaviorDataChanged=af.prototype.ytdHatsSurveyBehaviorDataChanged;_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],af.prototype,"ytActionHandlerBehavior",void 0);_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],af.prototype,"ytdHatsSurveyBehaviorDataChanged",null);af=_.T([_.tT()],af);var Aqu=[_.FM.YtActionHandlerBehavior,af.prototype];var s9O=function(F,W){return F.SHARED_RENDERERS_.hasOwnProperty(W)?"yt":F.prefix},f6={DIALOG:{component:"tp-yt-paper-dialog",
properties:{withBackdrop:!0,modern:!0,modal:!1},preventAutonav:!0},FULLSCREEN_OVERLAY:{component:null,properties:{withBackdrop:!0}},DROPDOWN:{component:"tp-yt-iron-dropdown",properties:{noOverlap:!0,horizontalAlign:"auto",verticalAlign:"top",dynamicAlign:!0,withBackdrop:!1},forceFocus:!0,slotName:"dropdown-content",preventAutonav:!0},HINT:{component:"tp-yt-iron-dropdown",properties:{allowOutsideScroll:!0,dynamicAlign:!1,horizontalAlign:"center",noOverlap:!0,scrollAction:"refit",verticalAlign:"bottom",
verticalOffset:15,withBackdrop:!1},positionalProperties:{OPEN_POPUP_POSITION_TOP:{horizontalAlign:"center",horizontalOffset:0,verticalAlign:"bottom",verticalOffset:15},OPEN_POPUP_POSITION_TOPLEFT:{horizontalAlign:"right",horizontalOffset:-12,shiftedHorizontalOffset:24,verticalAlign:"bottom",verticalOffset:15},OPEN_POPUP_POSITION_TOPRIGHT:{horizontalAlign:"left",horizontalOffset:-12,shiftedHorizontalOffset:24,verticalAlign:"bottom",verticalOffset:15},OPEN_POPUP_POSITION_LEFT:{horizontalAlign:"right",
horizontalOffset:12,verticalAlign:"middle",verticalOffset:0},OPEN_POPUP_POSITION_RIGHT:{horizontalAlign:"left",horizontalOffset:12,verticalAlign:"middle",verticalOffset:0},OPEN_POPUP_POSITION_BOTTOM:{horizontalAlign:"center",horizontalOffset:0,verticalAlign:"top",verticalOffset:12},OPEN_POPUP_POSITION_BOTTOMLEFT:{horizontalAlign:"right",horizontalOffset:12,shiftedHorizontalOffset:24,verticalAlign:"top",verticalOffset:12},OPEN_POPUP_POSITION_BOTTOMRIGHT:{horizontalAlign:"left",horizontalOffset:-12,
shiftedHorizontalOffset:24,verticalAlign:"top",verticalOffset:12}},forceCloseOnOutsideClick:!0,forceFocus:!0,slotName:"dropdown-content"},HINT_PERSISTENT:{component:"tp-yt-iron-dropdown",properties:{allowOutsideScroll:!0,dynamicAlign:!1,horizontalAlign:"center",noOverlap:!0,scrollAction:"refit",verticalAlign:"bottom",verticalOffset:15,withBackdrop:!1,noAutoFocus:!0},positionalProperties:{OPEN_POPUP_POSITION_TOP:{horizontalAlign:"center",horizontalOffset:0,verticalAlign:"bottom",verticalOffset:15},
OPEN_POPUP_POSITION_TOPLEFT:{horizontalAlign:"right",horizontalOffset:-12,shiftedHorizontalOffset:24,verticalAlign:"bottom",verticalOffset:15},OPEN_POPUP_POSITION_TOPRIGHT:{horizontalAlign:"left",horizontalOffset:-12,shiftedHorizontalOffset:24,verticalAlign:"bottom",verticalOffset:15},OPEN_POPUP_POSITION_LEFT:{horizontalAlign:"right",horizontalOffset:12,verticalAlign:"middle",verticalOffset:0},OPEN_POPUP_POSITION_RIGHT:{horizontalAlign:"left",horizontalOffset:12,verticalAlign:"middle",verticalOffset:0},
OPEN_POPUP_POSITION_BOTTOM:{horizontalAlign:"center",horizontalOffset:0,verticalAlign:"top",verticalOffset:12},OPEN_POPUP_POSITION_BOTTOMLEFT:{horizontalAlign:"right",horizontalOffset:12,shiftedHorizontalOffset:24,verticalAlign:"top",verticalOffset:12},OPEN_POPUP_POSITION_BOTTOMRIGHT:{horizontalAlign:"left",horizontalOffset:-12,shiftedHorizontalOffset:24,verticalAlign:"top",verticalOffset:12}},slotName:"dropdown-content"},LOCKED_OVERLAY_DIALOG:{component:"tp-yt-paper-dialog",properties:{restoreFocusOnClose:!0,
scrollAction:"lock",withBackdrop:!0},preventAutonav:!0}};f6.MEALBAR={component:"tp-yt-paper-dialog",properties:{keepBelowPlayer:!_.c("kevlar_mealbar_above_player"),modern:_.c("web_modern_dialogs"),noAutoFocus:!0,noCancelOnOutsideClick:!0,withBackdrop:!1,restoreFocusOnClose:!0},styles:{position:"fixed",top:"auto",left:"0",right:"auto",bottom:"0",margin:"16px"},rtlStyles:{position:"fixed",top:"auto",right:"0",left:"auto",bottom:"0",margin:"16px"}};
f6.BOTTOM_SHEET={component:"tp-yt-paper-dialog",properties:{},styles:{position:"fixed",bottom:"0",width:"100%",margin:"0"}};f6.MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0},forceFocus:!0,preventAutonav:!0};f6.LOCKED_MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0,scrollAction:"lock"},forceFocus:!0,preventAutonav:!0};
f6.MOLE={component:null,styles:{position:"fixed",top:"auto",left:"auto",right:"0",bottom:"0",zIndex:"var(--ytd-z-index-miniplayer)"},rtlStyles:{position:"fixed",top:"auto",left:"0",right:"auto",bottom:"0",zIndex:"var(--ytd-z-index-miniplayer)"}};
f6.NOTIFICATION={component:null,styles:{position:"fixed",top:"0",left:"auto",right:"0",bottom:"auto",marginTop:"60px",zIndex:"var(--ytd-z-index-notification)"},rtlStyles:{position:"fixed",top:"0",left:"0",right:"auto",bottom:"auto",marginTop:"60px",zIndex:"var(--ytd-z-index-notification)"},preventAutonav:!0};
f6.OVERLAY_DROPDOWN={component:"tp-yt-iron-dropdown",properties:{noOverlap:!1,horizontalAlign:"auto",verticalAlign:"top",dynamicAlign:!0,withBackdrop:!1},forceFocus:!0,slotName:"dropdown-content",preventAutonav:!0};
f6.RESPONSIVE_DROPDOWN={component:"tp-yt-iron-dropdown",properties:{noOverlap:!0,horizontalAlign:"auto",verticalAlign:"top",dynamicAlign:!0,withBackdrop:!1},narrowProperties:{horizontalAlign:null,verticalAlign:null,dynamicAlign:!1,withBackdrop:!0},forceFocus:!0,slotName:"dropdown-content",preventAutonav:!0};
f6.CONTEXTUAL_SHEET={component:"tp-yt-iron-dropdown",properties:{noOverlap:!0,horizontalAlign:"auto",verticalAlign:"top",dynamicAlign:!0,withBackdrop:!1,avoidOuterEdge:!0},forceFocus:!0,slotName:"dropdown-content",preventAutonav:!0};f6.SURVEY={component:"tp-yt-paper-dialog",properties:{withBackdrop:!1,noCancelOnOutsideClick:!0,noAutoFocus:!0},styles:{position:"fixed",top:"auto",left:"auto",right:"0",bottom:"0"},rtlStyles:{position:"fixed",top:"auto",left:"0",right:"auto",bottom:"0"}};
f6.TOP_ALIGNED_DIALOG={component:"tp-yt-paper-dialog",properties:{withBackdrop:!0,verticalAlign:"top",horizontalAlign:"center"},styles:{margin:"8px 0 0 0"},targetContainer:!0};f6.TOAST={component:null,properties:{}};var L26=new function(F,W,E){this.supportedPopups=F;this.navigationEndpointPopupMap=W;this.popupTypeMap=E;this.supportedPopups=F;this.navigationEndpointPopupMap=W;this.popupTypeMap=E}({aboutThisAdRenderer:!0,
adFeedbackRenderer:!0,adInfoDialogRenderer:!0,addToPlaylistRenderer:!0,backstagePostDialogPopupRenderer:!0,bubbleHintRenderer:!0,channelCreationDialogRenderer:!0,channelWarmWelcomeRenderer:!0,channelWarmWelcomeContRenderer:!0,checkboxSurveyRenderer:!0,confirmDialogRenderer:!0,dismissalFollowUpRenderer:!0,enforcementMessageViewModel:!0,fancyDismissibleDialogRenderer:!0,formPopupRenderer:!0,gamingAccountLinkConfirmDialogRenderer:!0,gamingAccountLinkSettingRenderer:!0,hotkeyDialogRenderer:!0,sponsorshipConfirmCancelRenderer:!0,
modalWithTitleAndButtonRenderer:!0,notificationActionRenderer:!0,reportFormModalRenderer:!0,searchSuggestionReportDialog:!0,sharingRenderer:!0,sharingEmbedRenderer:!0,menuPopupRenderer:!0,singleOptionSurveyRenderer:!0,surveyFollowUpRenderer:!0,unifiedSharePanelRenderer:!0,unlimitedFamilyMessageInterstitialRenderer:!0,unlimitedFamilyProfileInterstitialRenderer:!0,unpluggedPauseMembershipDialogRenderer:!0,ypcUpgradeDialogRenderer:!0,ypcOffersOverlayRenderer:!0,redCancelSurveyRenderer:!0,conversationSectionController:!0,
conversationHighPriorityNotificationContentRenderer:!0},{adFeedbackEndpoint:"adFeedbackEndpoint.content",adInfoDialogEndpoint:"adInfoDialogEndpoint.dialog",createBackstagePostDialogEndpoint:"createBackstagePostDialogEndpoint.dialog",confirmDialogEndpoint:"confirmDialogEndpoint.content",managePurchaseEndpoint:"managePurchaseEndpoint.content",modalEndpoint:"modalEndpoint.modal",shareEndpoint:"shareEndpoint",shareEntityEndpoint:"shareEntityEndpoint",unlimitedFamilyFlowEndpoint:"unlimitedFamilyFlowEndpoint.unlimitedFamilyFlowEndpointSupportedRenderers",
openPopupAction:"openPopupAction.popup",ypcCancelSurveyEndpoint:"ypcCancelSurveyEndpoint.surveySupportedRenderers"},{aboutThisAdRenderer:"DIALOG",adFeedbackRenderer:"DIALOG",adInfoDialogRenderer:"RESPONSIVE_DROPDOWN",addToPlaylistRenderer:_.c("desktop_add_to_playlist_renderer_dialog_popup")?"DIALOG":"RESPONSIVE_DROPDOWN",backstagePostDialogPopupRenderer:"DIALOG",bubbleHintRenderer:"HINT",checkboxSurveyRenderer:"SURVEY",confirmDialogRenderer:"DIALOG",dismissalFollowUpRenderer:"DIALOG",enforcementMessageViewModel:"LOCKED_MODAL",
fancyDismissibleDialogRenderer:"DIALOG",gamingAccountLinkConfirmDialogRenderer:"DIALOG",gamingAccountLinkSettingRenderer:"DIALOG",hotkeyDialogRenderer:"DIALOG",sponsorshipConfirmCancelRenderer:"DIALOG",menuPopupRenderer:"RESPONSIVE_DROPDOWN",modalWithTitleAndButtonRenderer:"RESPONSIVE_DROPDOWN",notificationActionRenderer:"TOAST",reportFormModalRenderer:"DIALOG",searchSuggestionReportDialog:"DIALOG",sharingEmbedRenderer:"DIALOG",sharingRenderer:"RESPONSIVE_DROPDOWN",singleOptionSurveyRenderer:"SURVEY",
surveyFollowUpRenderer:"SURVEY",unifiedSharePanelRenderer:"DIALOG",unlimitedFamilyMessageInterstitialRenderer:"DIALOG",unlimitedFamilyProfileInterstitialRenderer:"DIALOG",unpluggedPauseMembershipDialogRenderer:"DIALOG",ypcOffersOverlayRenderer:"DIALOG",ypcUpgradeDialogRenderer:"DIALOG",redCancelSurveyRenderer:"DIALOG",conversationSectionController:"MOLE",conversationHighPriorityNotificationContentRenderer:"NOTIFICATION"}),qz6=new function(){this.prefix="ytd";this.SHARED_RENDERERS_={aboutThisAdRenderer:!0,
bubbleHintRenderer:!0,confirmDialogRenderer:!0,fancyDismissibleDialogRenderer:!0,mealbarPromoRenderer:!0,notificationActionRenderer:!0,reportDetailsFormRenderer:!0,reportFormModalRenderer:!0,sharingEmbedRenderer:!0,sharingRenderer:!0,showActionDialogRenderer:!0,sortFilterSubMenuPopupRenderer:!0,tooltipRenderer:!0,unlimitedFamilyMessageInterstitialRenderer:!0,unlimitedFamilyProfileInterstitialRenderer:!0,unpluggedPauseMembershipDialogRenderer:!0,upsellDialogRenderer:!0,ypcOffersModalRenderer:!0,ypcUpgradeDialogRenderer:!0,
loadingRenderer:!0,sheetViewModel:!0,miniAppGameInfoDialogViewModel:!0,profileCardViewModel:!0,genAiFeedbackFormViewModel:!0,dialogViewModel:!0,gulpTriggeringDialogViewModel:!0,imageEditorRenderer:!0,storiesViewerViewModel:!0};this.JSC$17576_popupConfig=f6;this.forwardedEvents="yt-action yt-navigate yt-popup-canceled yt-popup-closed yt-popup-opened yt-service-request-completed yt-service-request-error yt-service-request-sent yt-lockup-requested".split(" ");this.forwardingEnabledPopups=new Set([])};var $4F=function(){this.pageNameToElement=new Map;this.TEST_ONLY=void 0;this.elementPoolPopulator=_.ZN.getInstance()},Ou=function(F,W){var E=F.pageNameToElement.get(W);
if(!E){switch(W){case "watch":var h=_.c("web_watch_force_learning_journey_for_testing")?_.S8("ytd-watch-learning-journey"):_.c("kevlar_watch_fixie")?_.S8("ytd-watch-fixie"):_.c("kevlar_watch_grid")?_.S8("ytd-watch-grid"):_.S8("ytd-watch-flexy");break;case "learning_journey_watch":h=_.S8("ytd-watch-learning-journey");break;case "shorts":h=_.S8("ytd-shorts");break;case "search":h=_.S8("ytd-search");break;case "channel":h=_.S8("ytd-browse");h.pageSubtype="channels";break;case "trending":h=_.S8("ytd-browse");
h.pageSubtype="trending";break;case "playlist":case "standalone":case "home":case "explore":case "learning":case "live":case "news":case "sports":case "music":case "playables":case "mini_app":case "red":case "WEB_PAGE_TYPE_SETTINGS":case "history":case "labs":case "handle":case "subscriptions":case "filteredsubscriptions":case "memberships-and-purchases":case "channel-memberships-shopfront":case "yts-products":case "ypc-offers":case "ypc-checkout":case "fashion":case "hashtag-landing-page":case "show":case "open-in-app":case "audio-pivot":case "subscriptions-channels":h=
_.S8("ytd-browse");h.pageSubtype=W;break;case "browse":h=_.S8("ytd-browse");break;default:_.OB(new _.xC("Error getting page element for type",W))}E=h;F.pageNameToElement.set(W,E)}return E};
$4F.prototype.preparePage=function(F,W,E){E&&(F=_.Cf(E)||F);if(F!=="watch"){var h=this.elementPoolPopulator,d=F;d!=h.targetPage_&&h.pendingPages_.indexOf(d)>-1&&(h.targetPage_&&(h.pendingPages_.unshift(h.targetPage_),h.abort()),HKP(h,d),_.Plz(h,d))}if((h=Ou(this,F))||!_.D(E,_.T5)){h.isAttached||h===W||(h.hidden=!0);if(!(h.data||F==="watch"&&_.c("swatcheroo_page_pool_dont_provide_filler_data"))){var V;if(F=(V=_.b0("FILLER_DATA",{})[F])==null?void 0:V.response)h.data=F}return h}};var Z7$=function(F){this.JSC$28335_clientRoot=F;this.playlistHandlerActionMap={"yt-add-to-playlist-command":p5q,"yt-end-playlist-command":mcw,"yt-recover-playlist-command":FfO,"yt-refresh-playlist-command":h0T,"yt-playlist-remove-videos-action":Wfg};_.G5(_.o_.getInstance(),this.playlistHandlerActionMap,this.JSC$28335_clientRoot);jug()},XUg;var bX=function(F,W,E){this.apiKey=F;this.endpoint=W;this.confidenceThreshold=E===void 0?.5:E;this.stream=null;this.state=0;this.manuallyClosedChannel=this.channelOpen=!1;this.prefetchResponseSetTimeoutId=-1;this.languageCode="en-us";this.youtubeAssistantRequest=null;this.listeningHandler=function(){};
this.audioDetectedHandler=function(){};
this.completeHandler=function(){};
this.errorHandler=function(){};
this.stopHandler=function(){};
this.transcriptionUpdateHandler=function(){};
this.transcriptionCompleteHandler=function(){};
this.vaaConsentUpdateHandler=function(){};
this.vozEndOfDataTimeout=this.noResponseReceivedTimeout=-1;this.transcribedSpeechResults=[];this.receivedEndOfUtterance=!1;this.startCustomCsiTimeline=!0;this.supportsCrossDomainXhr=!1;this.supportsHttpHeadersOverwriteParam=!0;this.prefetchResponseTimeoutMs=-1;this.isUsingVoz=W==="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||W==="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||
W==="https://embeddedassistant-frontend-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||W==="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";new AB8};
_.N=bX.prototype;
_.N.start=function(F){if(this.state===0)if(this.isOnline()){F.supportsHttpHeadersOverwriteParam!==void 0&&(this.supportsHttpHeadersOverwriteParam=F.supportsHttpHeadersOverwriteParam);F.startCustomCsiTimeline!==void 0&&(this.startCustomCsiTimeline=F.startCustomCsiTimeline);this.startCustomCsiTimeline&&_.Z2("voice_assistant");_.JF("voz_ms",void 0,"voice_assistant");this.state=1;this.receivedEndOfUtterance=!1;this.languageCode=F.languageCode||"en-US";this.supportsCrossDomainXhr=F.supportsCrossDomainXhr||this.supportsCrossDomainXhr;
this.youtubeAssistantRequest=F.youtubeAssistantRequest||null;this.listeningHandler=F.listeningHandler||this.listeningHandler;this.audioDetectedHandler=F.audioDetectedHandler||this.audioDetectedHandler;this.stopHandler=F.stopHandler||this.stopHandler;this.completeHandler=F.completeHandler||this.completeHandler;this.transcriptionCompleteHandler=F.transcriptionCompleteHandler||this.transcriptionCompleteHandler;this.vaaConsentUpdateHandler=F.vaaConsentUpdateHandler||this.vaaConsentUpdateHandler;this.errorHandler=
F.errorHandler||this.errorHandler;this.transcriptionUpdateHandler=F.transcriptionUpdateHandler||this.transcriptionUpdateHandler;this.accessToken=F.accessToken;this.additionalHeaders=F.additionalHeaders||{};var W;this.prefetchResponseTimeoutMs=(W=F.prefetchResponseTimeoutMs)!=null?W:this.prefetchResponseTimeoutMs;H7x(this);this.startAudio();PDF(this)}else this.errorHandler("OFFLINE")};
_.N.stop=function(F){var W=F===void 0?{}:F;F=W.logCancel===void 0?!0:W.logCancel;var E=W.logMicClosed===void 0?!0:W.logMicClosed;var h=W.handleError===void 0?!0:W.handleError;W=W.handleStop===void 0?!0:W.handleStop;this.state!==0&&(F&&lX("voz_cx"),n6(this,{logMicClosed:E,handleStop:W}),h&&this.errorHandler("ABORTED"))};
_.N.getState=function(){return this.state};
_.N.isSupported=function(){return!0};
_.N.stopAudio=function(F){(F===void 0||F)&&lX("voz_mf")};
_.N.startAudio=function(){lX("voz_vp");return _.e7(null)};
var JqT=function(F,W){F.channelOpen&&(F.state!==2&&(F.state=2,lX("voz_ss"),F.listeningHandler()),W=new Uint8Array(W),W='{ "audioIn": "'+_.FG(W)+'" }',F.channel.send(W))},n6=function(F,W){var E=W===void 0?{}:W;
W=E.logMicClosed===void 0?!0:E.logMicClosed;E=E.handleStop===void 0?!0:E.handleStop;F.vozEndOfDataTimeout>-1&&(clearTimeout(F.vozEndOfDataTimeout),F.vozEndOfDataTimeout=-1);aWw(F);F.stopAudio(W);F.channel&&(F.channelOpen=!1,F.manuallyClosedChannel=!0,F.channel.close(),F.channel=void 0);F.transcribedSpeechResults=[];F.state=0;E&&F.stopHandler()},H7x=function(F){var W={httpHeadersOverwriteParam:F.supportsHttpHeadersOverwriteParam?"$httpHeaders":void 0,
httpSessionIdParam:"gsessionid",sendRawJson:!0,initMessageHeaders:Object.assign({},F.additionalHeaders,F.accessToken&&F.isUsingVoz?{Authorization:"Bearer "+F.accessToken}:{"x-goog-api-key":F.apiKey}),supportsCrossDomainXhr:F.supportsCrossDomainXhr};F.channel=new lh(F.endpoint,W);F.channel.open();_.ce(F.channel,"w",function(){var E=F.channel,h=E.send,d=F.isUsingVoz?"PLACEHOLDER":"example";d={config:{dialogStateIn:{languageCode:F.languageCode},deviceConfig:{deviceId:d,deviceModelId:d},audioInConfig:{encoding:"LINEAR16",
sampleRateHertz:16E3},audioOutConfig:{encoding:"MP3",sampleRateHertz:22050,volumePercentage:0}}};if(!F.isUsingVoz)d.config.requestType=4;else if(F.isUsingVoz&&F.youtubeAssistantRequest){var V=JSON.stringify(F.youtubeAssistantRequest);d.config.internalIn={youtubeAssistantS3InputJson:V}}h.call(E,d);F.channelOpen=!0;F.manuallyClosedChannel=!1});
_.ce(F.channel,"x",function(){F.manuallyClosedChannel||(F.channelOpen=!1,F.channel=void 0,n6(F))});
_.ce(F.channel,"z",function(E){if(E.data){aWw(F);for(var h=0;h<E.data.length;h++){var d=F,V=E.data[h],R=V.speechResults;if(R)a:{var M=[];V=[];var g=!1;R=_.U(R);for(var t=R.next();!t.done;t=R.next()){t=t.value;if(t.noSpeech){n6(d);d.errorHandler("NO_SPEECH");break a}t.transcript!==void 0&&t.stability!==void 0&&(t.stability<d.confidenceThreshold&&(g=!0),g?V.push(t.transcript):M.push(t.transcript))}if(M.length!==0||V.length!==0)M=M.join(" "),V=V.join(" "),d.receivedEndOfUtterance&&!d.isUsingVoz?d.isUsingVoz||
d.completeHandler([M,V]):(g=d,R=M,t=V,lX("voz_sf"),g.transcriptionUpdateHandler(R,t),g.transcribedSpeechResults=[R,t]),d.receivedEndOfUtterance&&(lX("voz_eou"),d.transcriptionCompleteHandler([M,V]),d.isUsingVoz&&(d.prefetchResponseTimeoutMs===0?n6(d,{logMicClosed:!1,handleStop:!0}):d.prefetchResponseTimeoutMs>0&&fW6(d)))}else d.isUsingVoz&&(V==null?0:V.internalOut)?(V=JSON.parse(V.internalOut.youtubeAssistantS3OutputJson),V.userHasOptedInToVaa||V.vaaConsent?d.vaaConsentUpdateHandler(!!V.userHasOptedInToVaa,
!!V.vaaConsent):(O7u(d),V&&(M=d.transcribedSpeechResults,lX("voz_rqf"),d.completeHandler(M,V)))):V.eventType==="END_OF_UTTERANCE"?d.receivedEndOfUtterance=!0:(lX("voz_err"),d.errorHandler("UNEXPECTED_ASSISTANT_RESPONSE"),_.OB(Error("bl")))}}});
_.ce(F.channel,"y",function(E){n6(F);switch(E.status){case 1:E="WEBCHANNEL_NETWORK_ERROR";break;case 2:E="WEBCHANNEL_SERVER_ERROR";break;default:E="WEBCHANNEL_UNKNOWN_ERROR"}F.errorHandler(E);F.logError(Error(E))})};
bX.prototype.logError=function(F){_.a_(F)};
bX.prototype.isOnline=function(){return!0};
var fW6=function(F){O7u(F);F.prefetchResponseSetTimeoutId=setTimeout(function(){n6(F,{logMicClosed:!1,handleStop:!0})},F.prefetchResponseTimeoutMs)},O7u=function(F){F.prefetchResponseSetTimeoutId>-1&&(clearTimeout(F.prefetchResponseSetTimeoutId),F.prefetchResponseSetTimeoutId=-1)},PDF=function(F){aWw(F);
F.noResponseReceivedTimeout=window.setTimeout(function(){n6(F);F.errorHandler("NO_SPEECH")},11E3)},aWw=function(F){F.noResponseReceivedTimeout>-1&&(window.clearTimeout(F.noResponseReceivedTimeout),F.noResponseReceivedTimeout=-1)},lX=function(F){_.P5(F,void 0,"voice_assistant")};var y3=function(){bX.apply(this,arguments);this.audioContext=this.processor=null;this.audioDetected=!1};
_.k(y3,bX);y3.prototype.isSupported=function(){return dng()};
y3.prototype.startAudio=function(){var F=this;if(!navigator||!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)return _.xT(null);this.audioContext=new (window.AudioContext||window.webkitAudioContext)({latencyHint:"interactive"});this.processor=this.audioContext.createScriptProcessor(1024,1,1);this.processor.onaudioprocess=function(h){b7F(F,h)};
this.processor.connect(this.audioContext.destination);var W=function(h){F.stream=h;if(!F.audioContext)return _.e7(null);h=F.audioContext.createMediaStreamSource(h);F.processor&&h.connect(F.processor);return _.e7(null)},E={audio:{sampleSize:16,
channelCount:1},video:!1};this.stream?W(this.stream):navigator.mediaDevices.getUserMedia(E).then(W).catch(function(h){n6(F);h.name&&h.name==="NotAllowedError"?F.errorHandler("NO_MICROPHONE_PERMISSION"):(F.errorHandler("AUDIO_ERROR"),F.logError(h));return _.xT(null)});
return bX.prototype.startAudio.call(this)};
y3.prototype.stopAudio=function(F){F=F===void 0?!0:F;this.audioContext&&(this.audioContext.state==="running"&&this.processor&&(this.processor.onaudioprocess=function(){}),this.audioContext.close(),this.audioContext=null,this.stream&&(this.stream.getAudioTracks().forEach(function(W){W.stop()}),this.stream=null));
this.processor=null;this.audioDetected=!1;bX.prototype.stopAudio.call(this,F)};
y3.prototype.isOnline=function(){return navigator.onLine};
var b7F=function(F,W){if(F.audioContext)if(window.OfflineAudioContext){var E=F.audioContext.sampleRate,h=W.inputBuffer.getChannelData(0);W=new window.OfflineAudioContext(1,h.length,16E3);for(var d=W.createBuffer(1,h.length,E),V=d.getChannelData(0),R=0,M=0;M<h.length;M++)V[M]=h[M],R+=V[M]*V[M];!F.audioDetected&&Math.sqrt(R/h.length)>.01&&(F.audioDetected=!0,F.audioDetectedHandler());h=W.createBufferSource();h.buffer=d;h.connect(W.destination);h.start(0);W.oncomplete=function(g){g=g.renderedBuffer.getChannelData(0);
for(var t=Math.floor(16384E3/E),C=new Int16Array(t),B=0;B<t;++B)C[B]=Math.max(-1,Math.min(1,g[B]))*32767;JqT(F,C.buffer)};
W.startRendering()}else lWN(F,W)},lWN=function(F,W){var E=F.audioContext.sampleRate,h=W.inputBuffer.getChannelData(0),d=Math.floor((E+8E3)/16E3);
E=h.length/d;W=new Float32Array(E);for(var V=0;V<E;++V)W[V]=h[V*d];h=new Int16Array(E);for(d=0;d<E;++d)h[d]=Math.max(-1,Math.min(1,W[d]))*32767;JqT(F,h.buffer)};var ng6={FAILURE:"failure",NO_INPUT:"no_input",OPEN:"open",SUCCESS:"success"};var yqu=function(){this.JSC$17641_audioEnabled=!0;this.audioFeedbackHolder={}};
yqu.prototype.isPlaying=function(F){return F.currentTime>0&&!F.paused&&!F.ended&&F.readyState>2};
var j9O=function(F){for(var W=_.U(Object.values(ng6)),E=W.next();!E.done;E=W.next())E=E.value,F.audioFeedbackHolder[E]=new Audio,F.audioFeedbackHolder[E].src="/s/search/audio/"+E+".mp3",F.audioFeedbackHolder[E].load()},j0=function(F,W){if(F.JSC$17641_audioEnabled!==!1&&W in F.audioFeedbackHolder){for(var E=_.U(Object.values(F.audioFeedbackHolder)),h=E.next();!h.done;h=E.next())h=h.value,F.isPlaying(h)&&h.pause();
F.audioFeedbackHolder[W].currentTime=0;F.audioFeedbackHolder[W].play().catch(function(){})}};var i7O=function(F,W){var E=this;this.store=F;this.service=W;this.stream=null;this.permissionsSupported=!0;this.enableFirstPartyAuth=this.enableInlineSearchResponse=!1;this.audioPlayer=null;this.enableFPAForSignedInUsers=this.disableHttpHeadersOverwrite=!1;this.handleOfflineEvent=function(){E.setState("offline");E.stop()};
this.audioPlayer=new yqu;var h;(h=this.audioPlayer)==null||j9O(h)};
_.N=i7O.prototype;_.N.getService=function(){return this.service};
_.N.isEnabled=function(){return!!this.service};
_.N.isSupported=function(){var F;return(F=this.service)==null?void 0:F.isSupported()};
_.N.start=function(){var F=this,W,E,h,d,V,R,M,g,t,C,B,I,x;return _.e(function(A){switch(A.nextAddress){case 1:F.store.dispatch(TYP("",""));if(!navigator.onLine)return F.setState("offline"),A.return();window.addEventListener("offline",F.handleOfflineEvent);F.stream=null;if(!F.permissionsSupported){A.jumpTo(2);break}_.Nl(A,3);return _.Q(A,rqT(F),5);case 5:W=A.yieldResult;if(!W)return(E=F.audioPlayer)==null||j0(E,"failure"),A.return();F.service.stream=F.stream;F.setState("listening");_.id(A,2);break;
case 3:_.Ml(A),F.permissionsSupported=!1;case 2:h={context:_.t7Y(_.W0())},h.youtubeAssistantParams={searchParams:{inlineSearchResponse:F.enableInlineSearchResponse}},d=function(X,P){F.store.dispatch(oY6("transcribing"));F.store.dispatch(TYP(X,P))},V=function(){var X;
(X=F.audioPlayer)==null||j0(X,"open");F.setState("listening")},R=function(){F.setState("transcribing")},M=function(X){F.setErrorState(X)},g=function(X,P){var b;
(b=F.audioPlayer)==null||j0(b,"success");P&&(_.c("kevlar_voice_search_inline_search")&&(F.responseProcessor=_.WZ().resolve(_.vNb),F.responseProcessor&&(b=P.navigationAction,X=P.prefetchedSearchResponse,b&&X&&(b=(new _.Tga).JSC$11819_getStoreKey(b),_.SX(F.responseProcessor,X,b)))),F.JSC$17659_actionRouter.triggerOptionalAction("yt-speech-query-complete-action",P))},t=function(){window.removeEventListener("offline",F.handleOfflineEvent)},C=_.AFG(!1),B=C.Authorization!=null,I=F.enableFirstPartyAuth||
F.enableFPAForSignedInUsers&&B?C:{"X-Goog-Visitor-Id":C["X-Goog-Visitor-Id"]},x={completeHandler:g,
errorHandler:M,listeningHandler:V,audioDetectedHandler:R,stopHandler:t,transcriptionUpdateHandler:d,youtubeAssistantRequest:h,languageCode:T5x(),additionalHeaders:I,supportsCrossDomainXhr:F.enableFirstPartyAuth||F.enableFPAForSignedInUsers&&B,supportsHttpHeadersOverwriteParam:!F.disableHttpHeadersOverwrite},F.service.start(x),_.gG(A)}})};
_.N.stop=function(){this.service.getState()!==0&&this.service.stop()};
_.N.reset=function(){this.store.dispatch(_.dR({type:"RESET_VOICE_SEARCH_STATE"}))};
_.N.setState=function(F){this.store.dispatch(oY6(F))};
_.N.setErrorState=function(F){switch(F){case "OFFLINE":case "WEBCHANNEL_NETWORK_ERROR":case "WEBCHANNEL_SERVER_ERROR":case "WEBCHANNEL_UNKNOWN_ERROR":var W;(W=this.audioPlayer)==null||j0(W,"failure");this.setState("offline");break;case "NO_MICROPHONE_PERMISSION":if(this.permissionsSupported)rqT(this);else{var E;(E=this.audioPlayer)==null||j0(E,"failure");this.setState("permission-denied")}break;case "ABORTED":var h;(h=this.audioPlayer)==null||j0(h,"no_input");break;default:var d;(d=this.audioPlayer)==
null||j0(d,"no_input");this.setState("timeout")}};
var rqT=function(F){var W,E;return _.e(function(h){switch(h.nextAddress){case 1:return _.Q(h,navigator.permissions.query({name:"microphone"}),2);case 2:W=h.yieldResult;if(W.state==="granted")return h.return(!0);if(W.state==="denied")return F.setState("permission-denied"),h.return(!1);F.setState("permission");E={audio:{sampleSize:16,channelCount:1},video:!1};_.Nl(h,3);return _.Q(h,navigator.mediaDevices.getUserMedia(E),5);case 5:return F.stream=h.yieldResult,h.return(!0);case 3:return _.Ml(h),F.setState("permission-denied"),
h.return(!1)}})},T5x=function(){var F=_.b0("INNERTUBE_CONTEXT_HL"),W=_.b0("INNERTUBE_CONTEXT_GL");
return F.indexOf("-")>-1?F:F+"-"+W};var ogK=function(F,W,E){i7O.call(this,W,E);this.JSC$17659_actionRouter=F;this.enableInlineSearchResponse=_.c("kevlar_voice_search_inline_search");this.enableFirstPartyAuth=_.c("kevlar_voice_search_auth_enabled");this.disableHttpHeadersOverwrite=!0;this.enableFPAForSignedInUsers=_.c("kevlar_voice_search_enable_fpa_signedin_users")},Gf$;
_.k(ogK,i7O);
var YzF=function(){if(!Gf$){var F="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";_.c("kevlar_voice_search_auth_enabled")||_.c("kevlar_voice_search_use_yt_endpoint")?F="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel":_.c("kevlar_voice_search_use_fp_endpoint")&&(F="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel");Gf$=
new ogK(_.o_.getInstance(),_.uC(),new y3(_.b0("VOZ_API_KEY"),F,.5))}return Gf$};var wU6=function(F){this.JSC$17663_clientRoot=F;this.autonavPauseReasons={scroll:!1,inputBoxFocus:!1,overlayOpen:!1,guideOpen:!1,backgroundAndMute:!1,requestedByPlayer:!1,longIdle:!1,youthereLactExperiment:!1,userEngagement:!1};this.autonavPauseActionMap={"ytd-log-youthere-nav":this.onYtEndpointChanged.bind(this),"yt-autonav-pause-user-engagement":this.onYtAutonavPauseUserEngagement.bind(this),"yt-user-activity":this.onYtUserActivity.bind(this),"yt-get-autonav-pause-debug-state":this.onYtGetAutonavPauseDebugState.bind(this)};
this.userEngagementCsn=null;this.eventListeners=new Map;this.eventListeners.set(document,new Map([["visibilitychange",this.onYtAutonavVisibilityChanged.bind(this)]]));this.eventListeners.set(this.JSC$17663_clientRoot,new Map([["iron-overlay-opened",this.onIronOverlayOpened.bind(this)],["iron-overlay-closed",this.onIronOverlayClosed.bind(this)],["yt-autonav-pause-focus",this.onYtAutonavPauseFocus.bind(this)],["yt-autonav-pause-blur",this.onYtAutonavPauseBlur.bind(this)],["yt-autonav-pause-guide-opened",
this.onYtAutonavPauseGuideOpened.bind(this)],["yt-autonav-pause-guide-closed",this.onYtAutonavPauseGuideClosed.bind(this)],["yt-autonav-pause-scroll",this.onYtAutonavPauseScroll.bind(this)],["yt-autonav-pause-player",this.onYtAutonavPausePlayer.bind(this)],["yt-autonav-pause-player-ended",this.onYtAutonavPausePlayerEnded.bind(this)]]));F=_.U(this.eventListeners);for(var W=F.next();!W.done;W=F.next()){var E=_.U(W.value);W=E.next().value;E=E.next().value;E=_.U(E);for(var h=E.next();!h.done;h=E.next()){var d=
_.U(h.value);h=d.next().value;d=d.next().value;W.addEventListener(h,d)}}_.G5(_.o_.getInstance(),this.autonavPauseActionMap,this.JSC$17663_clientRoot)},uMT,Sz6=function(F){return _.c("kevlar_autonav_popup_filtering")?(F=_.oo(F))?F.hasAttribute("prevent-autonav"):!0:!0};
_.N=wU6.prototype;_.N.onIronOverlayOpened=function(F){Sz6(F)&&(this.autonavPauseReasons.overlayOpen=!0,iX(this))};
_.N.onIronOverlayClosed=function(F){Sz6(F)&&(this.autonavPauseReasons.overlayOpen=!1,iX(this))};
_.N.onYtAutonavPauseFocus=function(){this.autonavPauseReasons.inputBoxFocus=!0;iX(this)};
_.N.onYtAutonavPauseBlur=function(){var F=this;_.P0.addJob(function(){F.isInBackground()||(F.autonavPauseReasons.inputBoxFocus=!1,iX(F))},8,0)};
_.N.onYtAutonavPauseGuideOpened=function(){this.autonavPauseReasons.guideOpen=!0;iX(this)};
_.N.onYtAutonavPauseGuideClosed=function(){this.autonavPauseReasons.guideOpen=!1;iX(this)};
_.N.onYtAutonavPauseScroll=function(){var F=_.WZ().resolve(_.KQ);F.isOnWatch()&&(F=F.getCurrentPage().getPlayerContainer())&&(this.autonavPauseReasons.scroll=F.getBoundingClientRect().top<-200,iX(this))};
_.N.onYtAutonavPauseUserEngagement=function(F){var W=this;if(_.c("user_engagement_enable_autoplay_pause_feature")){var E=Number(F.lowEngagementThresholdMs);isNaN(E)||E<=0||F.lowUserEngagementAction!=="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"?_.mS("YOU_THERE_EVENT_TYPE_F_AUTONAV_INVALID_LACT_THRESHOLD"):(_.WZ().resolve(_.$Y),_.hV()<E?_.sB(_.P0,function(){_.mS("YOU_THERE_EVENT_TYPE_F_AUTONAV_BELOW_LACT_THRESHOLD")}):_.lJK()?(this.userEngagementCsn=_.JR(),_.sB(_.P0,function(){_.mS("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_ENABLED",
W.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!0,iX(this)):_.mS("YOU_THERE_EVENT_TYPE_F_AUTONAV_RATE_LIMITED"))}else _.ZKG(Error("cl`"+JSON.stringify(F)))};
_.N.onYtAutonavPausePlayer=function(F){this.autonavPauseReasons.requestedByPlayer=!!F.detail;iX(this)};
_.N.onYtAutonavVisibilityChanged=function(){var F=this,W,E,h;return _.e(function(d){if(d.nextAddress==1)return(W=_.WS())?_.Q(d,W.getPlayerPromise(),2):d.return();E=d.yieldResult;h=E.isMuted()||E.getVolume()===0;F.autonavPauseReasons.backgroundAndMute=F.isInBackground()&&h;iX(F);_.gG(d)})};
_.N.onYtAutonavPausePlayerEnded=function(){_.WZ().resolve(_.$Y);var F=144E5;_.c("user_engagement_enable_autoplay_pause_feature")||_.c("is_part_of_any_user_engagement_experiment")||(F=45E5);this.autonavPauseReasons.longIdle=_.hV()>F;pUx(this);iX(this)};
_.N.onYtUserActivity=function(){var F=this;this.autonavPauseReasons.userEngagement&&(_.sB(_.P0,function(){_.mS("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_DISABLED_BY_LACT_RESET",F.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!1,iX(this));
this.autonavPauseReasons.youthereLactExperiment&&(_.sB(_.P0,function(){_.mS("YOU_THERE_EVENT_TYPE_AUTOPLAY_RESUMED",F.userEngagementCsn);_.JV()}),this.autonavPauseReasons.youthereLactExperiment=!1,iX(this));
this.autonavPauseReasons.longIdle&&!_.c("disable_kevlar_resume_autonav_after_user_activity")&&(this.autonavPauseReasons.longIdle=!1,iX(this))};
_.N.isInBackground=function(){var F=window.document.visibilityState;return!(!F||F==="visible")};
var iX=function(F){for(var W=!1,E=_.U(Object.values(F.autonavPauseReasons)),h=E.next();!h.done;h=E.next())h=h.value,W=W||h;W?_.EX.getInstance().pause(F.autonavPauseReasons):(F=_.EX.getInstance(),F.autonavState_==3?(F.setState(2,!1,!1),F.autonavPauseReason_=void 0):F.autonavState_==1&&(F.disabledAutonavPauseReason_=void 0))},pUx=function(F){var W=!1;
if(_.c("enable_autoplay_pause_by_lact")){_.WZ().resolve(_.$Y);W=_.dV("autoplay_pause_by_lact_sec")*1E3;var E=_.dV("autoplay_pause_by_lact_sampling_fraction");(W=_.hV()>=W&&Math.random()<E)&&!_.lJK()&&(_.sB(_.P0,function(){_.mS("YOU_THERE_EVENT_TYPE_AUTOPLAY_RATE_LIMITED")}),W=!1)}W!==F.autonavPauseReasons.youthereLactExperiment&&(F.autonavPauseReasons.youthereLactExperiment=W)&&(F.userEngagementCsn=_.JR(),_.sB(_.P0,function(){_.mS("YOU_THERE_EVENT_TYPE_AUTOPLAY_PAUSED",F.userEngagementCsn)}));
F.autonavPauseReasons.userEngagement&&_.sB(_.P0,function(){_.mS("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSED",F.userEngagementCsn)})};
wU6.prototype.onYtEndpointChanged=function(){this.autonavPauseReasons.youthereLactExperiment&&(_.mS("YOU_THERE_EVENT_TYPE_AUTOPLAY_NAVIGATED_OUT",this.userEngagementCsn),_.JV(),this.autonavPauseReasons.youthereLactExperiment=!1,iX(this));this.autonavPauseReasons.userEngagement&&(_.mS("YOU_THERE_EVENT_TYPE_F_AUTONAV_NAVIGATED_OUT",this.userEngagementCsn),this.autonavPauseReasons.userEngagement=!1,iX(this))};
wU6.prototype.onYtGetAutonavPauseDebugState=function(){return JSON.stringify(this.autonavPauseReasons)};var ri=function(){var F=_.n.apply(this,arguments)||this;F.miniGuideVisible=!1;F.guideOpened=_.c("disable_initial_guide_state_fix")?!1:F.canFitPersistentGuide(F.initialBodyClientWidth);F.guideUserStateOpened=F.getInitialGuideUserStateOpened();F.isFullscreenShorts=!1;F.miniGuideWidthThreshold=_.dV("kevlar_mini_guide_width_threshold",791);F.persistentGuideBlockedPages="/clip /musicpremium /new /handle /premium /premiumlite /red /watch".split(" ");F.persistentGuideBlockedPagesPatterns="^/clip(/|$) ^/musicpremium(/|$) ^/new(/|$) ^/handle(/|$) ^/premium(/|$) ^/premiumlite(/|$) ^/red(/|$) ^/watch(/|$) ^/playables/(?!saved).".split(" ");
F.persistentGuideBlockedPagePathRegex=new RegExp(F.persistentGuideBlockedPagesPatterns.join("|"));F.animationTransitionDuration=0;F.lateDataResolver=_.G_();F.initialGuideDataFetchFailed=!1;F.initialLoad=!0;F.guideRenderers=new Set;F.actionMap={"yt-start-loading-watch":"startLoadingWatch","yt-start-loading-shorts":"startLoadingShorts"};return F};
_.k(ri,_.n);_.N=ri.prototype;_.N.onGuidePersistendAndVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-and-visible-changed",{detail:{value:this.guidePersistentAndVisible,queueProperty:!0}}))};
_.N.onGuideIsVisibleButNotPersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-is-visible-but-not-persistent-changed",{detail:{value:this.guideIsVisibleButNotPersistent,queueProperty:!0}}))};
_.N.onMiniGuideVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("mini-guide-visible-changed",{detail:{value:this.miniGuideVisible,queueProperty:!0}}))};
_.N.onActiveEndpointChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.N.onRenderGuideChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("render-guide-changed",{detail:{value:this.renderGuide,queueProperty:!0}}))};
_.N.onGuidePersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-changed",{detail:{queueProperty:!0,value:this.guidePersistent}}))};
_.N.ready=function(){_.WZ().addProvider({provide:_.nO,useValue:this.hostElement})};
_.N.attached=function(){var F=this;this.cachedClientWidth=this.initialBodyClientWidth;this.resetGuide();document.addEventListener("yt-navigate-finish",_.UO(this,this.onYtNavigateFinish));document.addEventListener("yt-guide-toggle",_.UO(this,this.onYtGuideToggle));document.addEventListener("yt-guide-close",_.UO(this,this.onYtGuideClose));document.addEventListener("yt-guide-show",_.UO(this,this.onYtGuideShow));_.wT(this,function(){F.animationTransitionDuration=200})};
_.N.detached=function(){document.removeEventListener("yt-navigate-finish",_.UO(this,this.onYtNavigateFinish));document.removeEventListener("yt-guide-toggle",_.UO(this,this.onYtGuideToggle));document.removeEventListener("yt-guide-close",_.UO(this,this.onYtGuideClose));document.removeEventListener("yt-guide-show",_.UO(this,this.onYtGuideShow));this.guideElement&&(this.guideElement.removeEventListener("opened-changed",_.UO(this,this.onDrawerOpenedChanged)),this.guideElement.removeEventListener("app-drawer-transitioned",
_.UO(this,this.onAppDrawerTransitioned)),this.guideElement.removeEventListener("app-drawer-transitioned",_.UO(this,this.onAppDrawerTransitionedFromKeyInput)))};
_.N.getData=function(){return this.data};
_.N.load=function(){var F=this,W,E,h,d;return _.e(function(V){switch(V.nextAddress){case 1:if(!window.ytInitialGuideData&&window.ytInitialGuideDataPresent)return window.loadGuideDataHook=F.lateDataResolver.resolve.bind(F),V.return(F.lateDataResolver.promise);if(window.ytInitialGuideData)return W=_.G_(),W.resolve(window.ytInitialGuideData),V.return(W.promise);h=!1;_.Nl(V,2);return _.Q(V,F.fetchGuideData(),4);case 4:E=V.yieldResult;_.id(V,3);break;case 2:d=_.Ml(V),d.message==="Returned error"&&(h=!0);
case 3:if(E)return V.return(E);F.onYtGuideClose();h||(F.initialGuideDataFetchFailed=!0);return V.return(F.lateDataResolver.promise)}})};
_.N.fetchGuideData=function(){var F=this,W,E,h,d,V,R,M;return _.e(function(g){if(g.nextAddress==1)return W=_.WZ(),F.guidePromise||(E=W.resolve(_.sh),F.guidePromise=_.T_(E,ETx)),_.Q(g,F.guidePromise,2);if(g.nextAddress!=3)return h=g.yieldResult,d=W.resolve(_.Gu),_.Q(g,d(),3);(V=g.yieldResult)&&((R=h)==null?void 0:(M=R.responseContext)==null?void 0:M.maxAgeSeconds)!==0&&V.put("service:guide:fallback",new _.RG({innertubeResponse:h}));return g.return(h)})};
_.N.initializeGuideDataIfEmpty=function(){var F=this,W,E;return _.e(function(h){if(h.nextAddress==1){if(!F.initialGuideDataFetchFailed||F.data)return h.return();_.Nl(h,2);return _.Q(h,F.fetchGuideData(),4)}if(h.nextAddress!=2)return(W=h.yieldResult)&&F.lateDataResolver.resolve(W),_.id(h,0);E=_.Ml(h);_.OB(E);_.gG(h)})};
_.N.initializeGuideData=function(){var F=this,W;return _.e(function(E){switch(E.nextAddress){case 1:return _.DB(cHx(),{mainAppWeb:_.yc()}),_.Nl(E,2),_.Q(E,F.load(),4);case 4:F.data=E.yieldResult;_.id(E,3);break;case 2:_.Ml(E),_.xP(cHx(),"FAILURE");case 3:W=F.data&&F.data.items&&F.data.items.length>0?"SUCCESS":"FAILURE",_.xP(cHx(),W),_.gG(E)}})};
_.N.setGuideData=function(F){var W=this,E,h;return _.e(function(d){if(d.nextAddress==1)return W.disabled?d.return():W.data?(F.data=W.data,W.guideRenderers.add(F),d.return()):_.Q(d,W.initializeGuideData(),2);W.graftGuideToPage();E=_.l0("IS_HOMEPAGE_COLD")?"eop":void 0;_.c("disable_element_pool_populator")?W.setGuideDataAfterInit(F):(h=new _.py(1,E),_.mo(h,W.setGuideDataAfterInit.bind(W,F)));_.gG(d)})};
_.N.setGuideDataAfterInit=function(F){F.data=this.data;F.markDirty();this.guideRenderers.add(F);_.fz(function(){_.P5("gle")});
_.wT(this,function(){_.P5("gpe")})};
_.N.graftGuideToPage=function(){if(this.data){var F=this.data&&this.data.trackingParams;F&&(F=_.ve(F),_.t5(_.z4(),F))}};
_.N.onGuideElementChanged=function(){this.guideElement.addEventListener("opened-changed",_.UO(this,this.onDrawerOpenedChanged));this.guideElement.swipeOpen=!0};
_.N.onDrawerOpenedChanged=function(F,W){!W.value&&this.guideOpened&&(this.guideOpened=!1)};
_.N.onYtGuideToggle=function(F){var W=this.guideOpened;this.guideOpened=!W;if(this.guidePersistent){this.guideUserStateOpened=this.guideOpened;var E=_.Ij();_.c5(0,109,!this.guideUserStateOpened);E.save()}this.updateGuideDrawerElementState();if(this.guideElement){var h;this.guideOpened&&((h=F.detail)==null?0:h.isKeyInput)&&this.guideElement.addEventListener("app-drawer-transitioned",_.UO(this,this.onAppDrawerTransitionedFromKeyInput));this.guideElement.addEventListener("app-drawer-transitioned",_.UO(this,
this.onAppDrawerTransitioned))}W||this.initializeGuideDataIfEmpty()};
_.N.onAppDrawerTransitionedFromKeyInput=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.UO(this,this.onAppDrawerTransitionedFromKeyInput));this.guideOpened&&this.guideElement&&_.SQ(this.guideElement)};
_.N.onAppDrawerTransitioned=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.UO(this,this.onAppDrawerTransitioned));this.ytdReduxBehavior.dispatch(iQK(this.guideOpened))};
_.N.guidePersistentAndVisibleChanged=function(){_.Nc(this.hostElement,"ytd-update-guide-state-action",[this.guidePersistentAndVisible])};
_.N.guideIsVisibleButNotPersistentChanged=function(){this.ytdReduxBehavior.dispatch(_.dR({type:"SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT",payload:this.guideIsVisibleButNotPersistent}))};
_.N.miniGuideVisibleChanged=function(){_.Nc(this.hostElement,"ytd-update-mini-guide-state-action",[this.miniGuideVisible])};
_.N.guideOpenedChanged=function(){this.initialLoad&&(this.ytdReduxBehavior.dispatch(iQK(this.guideOpened)),this.initialLoad=!1);_.Nc(this.hostElement,"ytd-update-guide-opened-action",[this.guideOpened])};
_.N.activeEndpointChanged=function(){_.Nc(this.hostElement,"ytd-update-active-endpoint-action",[this.activeEndpoint]);this.initializeGuideDataIfEmpty()};
_.N.resetGuide=function(){this.forceMiniGuideClose=!1;if(this.persistentGuideEnabled(this.pageType,this.pageUrl))this.onYtGuideShow();else this.onYtGuideClose()};
_.N.onYtGuideShow=function(){this.forceMiniGuideClose=!1;this.guidePersistent=this.canFitPersistentGuide(this.cachedClientWidth);this.guideUserStateOpened&&this.guidePersistent?this.renderGuide=this.guideOpened=!0:this.guideOpened=!1;this.observeForMiniGuideVisible();this.updateGuideDrawerElementState()};
_.N.cachedClientWidthChanged=function(){if(this.persistentGuideEnabled(this.pageType,this.pageUrl)){var F=this.canFitPersistentGuide(this.cachedClientWidth);F?this.guideOpened=this.guideUserStateOpened:this.guidePersistent&&(this.guideOpened=!1);this.guidePersistent=F}this.updateGuideDrawerElementState()};
_.N.getGuidePersistentAndVisible=function(){return!!this.guidePersistentAndVisible};
_.N.getGuideOpened=function(){return this.guideOpened};
_.N.getGuideExpandsAutomatically=function(){return this.guideUserStateOpened};
_.N.getActiveEndpoint=function(){return this.activeEndpoint};
_.N.getMiniGuideVisible=function(){return this.miniGuideVisible};
_.N.updateGuideDrawerElementState=function(){this.guideElement&&(this.guidePersistent?this.disableGuideAnimation():this.guideElement.persistent?this.disableGuideAnimation():this.enableGuideAnimation(),this.guideElement.opened=this.guideOpened,this.guideElement.persistent=this.guidePersistent,this.guideOpened&&this.guidePersistent&&_.hF(this.hostElement,"yt-guide-hover"),!this.guideOpened||this.guidePersistent)&&(document.body.style.overflow="")};
_.N.computeGuidePersistentAndVisible=function(){var F=this;_.OO(this,"computeGuidePersistentAndVisible",function(){F.guidePersistentAndVisible=F.guideOpened&&F.guidePersistent;F.guideIsVisibleButNotPersistent=!(!F.guideOpened||F.guidePersistent)})};
_.N.observeForMiniGuideVisible=function(){this.guidePersistentAndVisible!==void 0&&(this.miniGuideVisible=!this.forceMiniGuideClose&&!this.guidePersistentAndVisible&&this.canFitMiniGuide(this.cachedClientWidth)&&this.persistentGuideEnabled(this.pageType,this.pageUrl))};
_.N.closeGuide=function(){this.guideOpened=!1;this.updateGuideDrawerElementState()};
_.N.onYtGuideClose=function(){this.closeGuide();this.forceMiniGuideClose=!0;this.guidePersistent=this.miniGuideVisible=!1};
_.N.startLoadingWatch=function(){this.closeGuide()};
_.N.startLoadingShorts=function(){_.c("web_hide_guide_on_shorts")&&this.closeGuide()};
_.N.onYtNavigateFinish=function(F,W){if(!_.tf||W){this.activeEndpoint=W.endpoint;this.pageType=W.pageType;this.pageUrl=W.response.url;var E,h;F=(h=_.D((E=W.endpoint)==null?void 0:E.commandMetadata,_.m1))==null?void 0:h.url;!this.pageUrl&&F&&(this.pageUrl=F);_.c("kevlar_use_vimio_behavior")&&this.markGuideRendererDirty(this.getVisibleGuideRenderer())}};
_.N.getVisibleGuideRenderer=function(){for(var F=_.U(this.guideRenderers),W=F.next();!W.done;W=F.next())if(W=W.value,this.miniGuideVisible&&W.is==="ytd-mini-guide-renderer"||this.guideOpened&&W.is==="ytd-guide-renderer")return W;return null};
_.N.markGuideRendererDirty=function(F){if(F){typeof F.markDirty==="function"&&F.markDirty();F=_.U([].concat(_.x9(_.Z(F).children)));for(var W=F.next();!W.done;W=F.next())this.markGuideRendererDirty(W.value)}};
_.N.persistentGuideEnabled=function(F,W){if(!W||F==="watch"||F==="settings"||F==="shorts"&&this.isFullscreenShorts||_.c("reels_web_disable_persistent_guide_shorts")&&F==="shorts")return!1;var E=_.gV(W)||"";return _.c("kevlar_premium_guide_collapse_killswitch")?!this.persistentGuideBlockedPages.some(function(h){return E===h}):!this.persistentGuideBlockedPagePathRegex.test(E)};
_.N.canFitPersistentGuide=function(F){var W=_.dV("kevlar_persistent_guide_width_threshold",1312);return W===-1||_.c("reels_web_show_mini_guide_on_shorts")&&this.pageType==="shorts"?!1:F>W};
_.N.canFitMiniGuide=function(F){return this.miniGuideWidthThreshold===-1?!1:F>this.miniGuideWidthThreshold};
_.N.onResize=function(){var F=this;_.OO(this,"calculateGuideState",function(){F.onResizeDebounced()})};
_.N.onResizeDebounced=function(){this.cachedClientWidth=window.innerWidth};
_.N.disableGuideAnimation=function(){this.guideElement.transitionDuration=0};
_.N.enableGuideAnimation=function(){this.guideElement.transitionDuration=this.animationTransitionDuration};
_.N.getInitialGuideUserStateOpened=function(){return!_.Ij().getFlag(109)};
_.Sn.Object.defineProperties(ri.prototype,{initialBodyClientWidth:{configurable:!0,enumerable:!0,get:function(){return _.b0("initialBodyClientWidth")||window.innerWidth}}});
ri.prototype.onResize=ri.prototype.onResize;ri.prototype.observeForMiniGuideVisible=ri.prototype.observeForMiniGuideVisible;ri.prototype.computeGuidePersistentAndVisible=ri.prototype.computeGuidePersistentAndVisible;ri.prototype.cachedClientWidthChanged=ri.prototype.cachedClientWidthChanged;ri.prototype.resetGuide=ri.prototype.resetGuide;ri.prototype.activeEndpointChanged=ri.prototype.activeEndpointChanged;ri.prototype.guideOpenedChanged=ri.prototype.guideOpenedChanged;
ri.prototype.miniGuideVisibleChanged=ri.prototype.miniGuideVisibleChanged;ri.prototype.guideIsVisibleButNotPersistentChanged=ri.prototype.guideIsVisibleButNotPersistentChanged;ri.prototype.guidePersistentAndVisibleChanged=ri.prototype.guidePersistentAndVisibleChanged;ri.prototype.onGuideElementChanged=ri.prototype.onGuideElementChanged;ri.prototype.onGuidePersistentChanged=ri.prototype.onGuidePersistentChanged;ri.prototype.onRenderGuideChanged=ri.prototype.onRenderGuideChanged;
ri.prototype.onActiveEndpointChanged=ri.prototype.onActiveEndpointChanged;ri.prototype.onMiniGuideVisibleChanged=ri.prototype.onMiniGuideVisibleChanged;ri.prototype.onGuideIsVisibleButNotPersistentChanged=ri.prototype.onGuideIsVisibleButNotPersistentChanged;ri.prototype.onGuidePersistendAndVisibleChanged=ri.prototype.onGuidePersistendAndVisibleChanged;_.T([_.J(_.lB),_.Y("design:type",Object)],ri.prototype,"ironResizableBehavior",void 0);
_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],ri.prototype,"ytActionHandlerBehavior",void 0);_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],ri.prototype,"ytComponentBehavior",void 0);_.T([_.J(_.am),_.Y("design:type",Object)],ri.prototype,"ytdReduxBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],ri.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Boolean)],ri.prototype,"disabled",void 0);
_.T([_.O(),_.Y("design:type",Boolean)],ri.prototype,"guidePersistentAndVisible",void 0);_.T([_.ea("guidePersistentAndVisible"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ri.prototype,"onGuidePersistendAndVisibleChanged",null);_.T([_.O(),_.Y("design:type",Boolean)],ri.prototype,"guideIsVisibleButNotPersistent",void 0);
_.T([_.ea("guideIsVisibleButNotPersistent"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ri.prototype,"onGuideIsVisibleButNotPersistentChanged",null);_.T([_.O(),_.Y("design:type",Object)],ri.prototype,"miniGuideVisible",void 0);_.T([_.ea("miniGuideVisible"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ri.prototype,"onMiniGuideVisibleChanged",null);_.T([_.O(),_.Y("design:type",Boolean)],ri.prototype,"forceMiniGuideClose",void 0);
_.T([_.O(),_.Y("design:type",Object)],ri.prototype,"activeEndpoint",void 0);_.T([_.ea("activeEndpoint"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ri.prototype,"onActiveEndpointChanged",null);_.T([_.O(),_.Y("design:type",Boolean)],ri.prototype,"renderGuide",void 0);_.T([_.ea("renderGuide"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ri.prototype,"onRenderGuideChanged",null);
_.T([_.O(),_.Y("design:type",Object)],ri.prototype,"guideOpened",void 0);_.T([_.O(),_.Y("design:type",Boolean)],ri.prototype,"guidePersistent",void 0);_.T([_.ea("guidePersistent"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ri.prototype,"onGuidePersistentChanged",null);_.T([_.O(),_.Y("design:type",Object)],ri.prototype,"guideUserStateOpened",void 0);_.T([_.O(),_.Y("design:type",String)],ri.prototype,"pageUrl",void 0);
_.T([_.O(),_.Y("design:type",String)],ri.prototype,"pageType",void 0);_.T([_.O(),_.Y("design:type",Number)],ri.prototype,"cachedClientWidth",void 0);_.T([_.O(),_.Y("design:type",Object)],ri.prototype,"guideElement",void 0);_.T([_.O({selector:_.xa}),_.Y("design:type",Object)],ri.prototype,"isFullscreenShorts",void 0);_.T([_.ea("guideElement"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ri.prototype,"onGuideElementChanged",null);
_.T([_.ea("guidePersistentAndVisible"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ri.prototype,"guidePersistentAndVisibleChanged",null);_.T([_.Cz("guideIsVisibleButNotPersistent"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ri.prototype,"guideIsVisibleButNotPersistentChanged",null);
_.T([_.ea("miniGuideVisible"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ri.prototype,"miniGuideVisibleChanged",null);_.T([_.Cz("guideOpened"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ri.prototype,"guideOpenedChanged",null);_.T([_.ea("activeEndpoint"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ri.prototype,"activeEndpointChanged",null);
_.T([_.Cz("pageUrl"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ri.prototype,"resetGuide",null);_.T([_.Cz("cachedClientWidth"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ri.prototype,"cachedClientWidthChanged",null);_.T([_.ea("guideOpened","guidePersistent"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ri.prototype,"computeGuidePersistentAndVisible",null);
_.T([_.Cz("guidePersistentAndVisible","pageUrl","cachedClientWidth"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ri.prototype,"observeForMiniGuideVisible",null);_.T([_.R4("iron-resize"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ri.prototype,"onResize",null);ri=_.T([_.y({disableElementRegistration:!0,is:"yt-guide-manager"})],ri);var m4T=_.r(ri,"yt-guide-manager",void 0,{mode:_.E6("kevlar_poly_si_batch_j081")?1:2});var Yn=function(){var F=_.n.apply(this,arguments)||this;F.JSC$17673_keyboardInUse=!1;F.boundHandleCapturedKeydownEvent=function(W){F.handleCapturedKeydownEvent(W)};
return F};
_.k(Yn,_.n);_.N=Yn.prototype;_.N.attached=function(){this.listenToDocument(document)};
_.N.listenToDocument=function(F){F.addEventListener("keydown",_.UO(this,this.onKeyDownEvent));F.addEventListener("keyup",_.UO(this,this.onKeyUpEvent));F.addEventListener("mousedown",_.UO(this,this.onMouseDownEvent));_.c("desktop_keyboard_capture_keydown_killswitch")||F.addEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);F.addEventListener("yt-page-data-updated",_.UO(this,this.onPageUpdate))};
_.N.detached=function(){this.unlistenFromDocument(document)};
_.N.unlistenFromDocument=function(F){F.removeEventListener("keydown",_.UO(this,this.onKeyDownEvent));F.removeEventListener("keyup",_.UO(this,this.onKeyUpEvent));F.removeEventListener("mousedown",_.UO(this,this.onMouseDownEvent));_.c("desktop_keyboard_capture_keydown_killswitch")||F.removeEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);F.removeEventListener("yt-page-data-updated",_.UO(this,this.onPageUpdate))};
_.N.ready=function(){_.WZ().addProvider({provide:_.$V,useValue:this})};
_.N.isKeyBoardInUse=function(){return this.JSC$17673_keyboardInUse};
_.N.handleCapturedKeydownEvent=function(F){if(F.keyCode===32&&!this.isKeyBoardInUse())this.onKeyDownEvent(F)};
_.N.onMouseDownEvent=function(){this.JSC$17673_keyboardInUse=!1};
_.N.onPageUpdate=function(){if(_.c("desktop_keyboard_shortcut_usage_log")||this.isShortsPage&&_.c("web_shorts_keyboard_shortcut_usage_log")){_.hs.clear();for(var F=_.U(_.W4),W=F.next();!W.done;W=F.next()){var E=_.U(W.value);W=E.next().value;E=E.next().value;E=_.LQ(E);_.hs.set(W,E);_.y7(_.JR(),_.Pf(),E)}_.dF.clear();F=_.U(_.Eo);for(W=F.next();!W.done;W=F.next())E=_.U(W.value),W=E.next().value,E=E.next().value,E=_.LQ(E),_.dF.set(W,E),_.y7(_.JR(),_.Pf(),E);_.j7(_.JR(),_.Pf(),[].concat(_.x9(_.dF.values()),
_.x9(_.hs.values())));_.rW(_.JR(),[].concat(_.x9(_.dF.values()),_.x9(_.hs.values())))}};
_.N.onMiniplayerActiveChange=function(){var F;(F=_.WZ().resolve(_.GF).pipController.getWindow())&&(this.miniplayerIsActive?this.listenToDocument(F.document):this.unlistenFromDocument(F.document))};
_.N.ignoreKeyEvent=function(F){if(F.ctrlKey||F.altKey)if(_.c("kevlar_macro_markers_keyboard_shortcut")){if(F.keyCode!==37&&F.keyCode!==39)return!0}else return!0;var W=_.TB(F)||[];return _.jAg(W)?!0:F.defaultPrevented?(B4(F.keyCode,F.shiftKey,this.isShortsPage),!0):F.keyCode===32&&this.isKeyBoardInUse()?this.isSpacebarClick(F):!1};
_.N.isSpacebarClick=function(F){var W=F||window.event;var E;W.composedPath&&typeof W.composedPath==="function"?E=W.composedPath():E=W.path;E&&E.length?W=E[0]:(W=W||window.event,W=W.target||W.srcElement,W.nodeType==3&&(W=W.parentNode));return W&&F.keyCode===32&&(F=W.tagName==="BUTTON"||W.tagName==="A"||W.tagName==="INPUT",W=(W=W.getAttribute("role"))&&(W==="option"||W==="button"||W.indexOf("menuitem")===0),F||W)?!0:!1};
_.N.onKeyDownEvent=function(F){if(!this.ignoreKeyEvent(F)&&(F.keyCode===191&&(F.shiftKey||F.metaKey?F.repeat!=null&&F.repeat||(this.openHotkeyDialog(),B4(F.keyCode,F.shiftKey,this.isShortsPage)):(this.focusSearchBox(),F.preventDefault())),!F.metaKey)){var W=_.WZ().resolve(_.GF);switch(F.keyCode){case 9:this.JSC$17673_keyboardInUse=!0;break;case 32:this.handlePlayerSpaceKey(F);break;case 84:W.pipController.getWindow()&&window.focus();this.toggleTheaterMode(F.keyCode,F.shiftKey);break;case 73:W.pipController.getWindow()&&
window.focus();this.toggleMiniplayer(F.keyCode,F.shiftKey);break;case 70:if(this.isShortsPage&&_.c("web_fullscreen_shorts")){_.rcK();break}this.isMiniplayerActive()?W.pipController.getWindow()&&(W.close(!0),window.focus()):this.passEventToPlayer(F);break;case 27:this.closeMiniplayer(F.keyCode,F.shiftKey)||this.passEventToPlayer(F);break;case 13:F.shiftKey&&_.c("web_ephemeral_actions")&&_.WZ().resolve(_.zI).activate(F);break;default:this.passEventToPlayer(F)}}};
_.N.onKeyUpEvent=function(F){if(!this.ignoreKeyEvent(F))if(_.c("web_speedmaster_spacebar_control")&&F.keyCode===32)this.handlePlayerSpaceKey(F,!0);else{var W=this.getPlayerManager();W&&(W=W.getPlayer())&&W.handleGlobalKeyUp(F.keyCode,F.shiftKey,F.ctrlKey,F.altKey,F.metaKey,F.key,F.code)}};
_.N.getPlayerManager=function(){var F=_.WS(),W=_.WZ().resolve(_.Fd(_.KQ));return F&&W&&W.isOnWatch()?F:null};
_.N.passEventToPlayer=function(F,W){var E=this,h,d,V;return _.e(function(R){if(R.nextAddress==1)return!_.c("desktop_keyboard_shortcuts_enabled_miniplayer_killswitch")&&E.isMiniplayerActive()?h=_.WZ().resolve(_.GF).getPlayerElement():E.inlinePreviewIsActive?(d=_.Nc(E.hostElement,"yt-get-inline-preview-player-action"))&&d[0]&&(h=d[0]):h=_.WS(),h?_.Q(R,h.getPlayerPromise(),3):R.jumpTo(0);V=R.yieldResult;W?V.handleGlobalKeyUp(F.keyCode,F.shiftKey,F.ctrlKey,F.altKey,F.metaKey,F.key,F.code,F.repeat):V.handleGlobalKeyDown(F.keyCode,
F.shiftKey,F.ctrlKey,F.altKey,F.metaKey,F.key,F.code,F.repeat);F.keyCode!==38&&F.keyCode!==40&&B4(F.keyCode,F.shiftKey,E.isShortsPage);_.gG(R)})};
_.N.focusSearchBox=function(){_.hF(this.hostElement,"yt-focus-searchbox")};
_.N.openHotkeyDialog=function(){_.hF(this.hostElement,"yt-open-hotkey-dialog")};
_.N.isMiniplayerActive=function(){return _.WZ().resolve(_.GF).isMiniplayerActive()};
_.N.closeMiniplayer=function(F,W){return this.isMiniplayerActive()?(_.WZ().resolve(_.GF).close(),B4(F,W,this.isShortsPage),!0):!1};
_.N.toggleTheaterMode=function(F,W){var E=_.H7(_.uC().getState()),h=this.getPlayerManager(),d=_.c("disable_theater_mode_keyboard")||_.l0("START_IN_FULL_WINDOW_MODE");h&&!d&&(E=!E,_.Kg()&&_.c("external_fullscreen")&&(E=!0),_.dW(this.hostElement,"yt-toggle-theater-mode",[E]),B4(F,W,this.isShortsPage))};
_.N.toggleMiniplayer=function(F,W){var E=this.getPlayerManager();if(this.isMiniplayerActive()){var h;((h=_.WZ().resolve(_.Fd(_.KQ)))==null?0:h.isOnWatch())?_.WZ().resolve(_.GF).close(!0):_.kX(_.WZ().resolve(_.GF));B4(F,W,this.isShortsPage)}else E&&(_.dW(this.hostElement,"yt-activate-miniplayer-from-watch-action"),B4(F,W,this.isShortsPage))};
_.N.handlePlayerSpaceKey=function(F,W){var E=!!_.WS()||this.isMiniplayerActive();E=_.c("disable_space_scroll_fix")||E;_.c("global_spacebar_pause")&&!this.isKeyBoardInUse()&&E&&(F.preventDefault(),this.passEventToPlayer(F,W))};
Yn.prototype.onMiniplayerActiveChange=Yn.prototype.onMiniplayerActiveChange;_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],Yn.prototype,"ytComponentBehavior",void 0);_.T([_.J(_.am),_.Y("design:type",Object)],Yn.prototype,"ytdReduxBehavior",void 0);_.T([_.O({selector:_.khY}),_.Y("design:type",Boolean)],Yn.prototype,"inlinePreviewIsActive",void 0);_.T([_.O({selector:_.nCq}),_.Y("design:type",Boolean)],Yn.prototype,"isShortsPage",void 0);
_.T([_.O({selector:_.Pz}),_.Y("design:type",Boolean)],Yn.prototype,"miniplayerIsActive",void 0);_.T([_.ea("miniplayerIsActive"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Yn.prototype,"onMiniplayerActiveChange",null);Yn=_.T([_.y({disableElementRegistration:!0,is:"yt-hotkey-manager"})],Yn);_.r(Yn,"yt-hotkey-manager",void 0,{mode:_.E6("kevlar_poly_si_batch_j081")?1:2});var wi=function(){var F=_.n.apply(this,arguments)||this;F.loopStateEntityKey_=null;F.playlistLoopStateEntity_=null;F.isShuffleNextPlaylist=!1;F.PLAYER_EVENTS_=new Map;F.playerListenersSetup_=!1;F.videoSkipJob_=0;F.canAutoAdvance_=!1;F.playerManager_=null;F.TEST_ONLY={};return F};
_.k(wi,_.n);_.N=wi.prototype;_.N.ready=function(){_.WZ().addProvider({provide:_.yH,useValue:this.hostElement})};
_.N.created=function(){this.PLAYER_EVENTS_.set("onPlaylistNext",this.onPlaylistNext);this.PLAYER_EVENTS_.set("onPlaylistPrevious",this.onPlaylistPrevious);this.PLAYER_EVENTS_.set("onPlaylistIndex",this.onPlaylistIndex_);this.PLAYER_EVENTS_.set("onStateChange",this.onPlayerStateChange_);this.PLAYER_EVENTS_.set("onLoopChange",this.onPlayerLoopChange_);this.PLAYER_EVENTS_.set("onSleepTimerSettingsChanged",this.onSleepTimerSettingsChanged_)};
_.N.attached=function(){document.addEventListener("yt-navigate-start",_.UO(this,this.onYtNavigateStart_));document.addEventListener("yt-navigate-finish",_.UO(this,this.onYtNavigateFinish_))};
_.N.detached=function(){document.removeEventListener("yt-navigate-start",_.UO(this,this.onYtNavigateStart_));document.removeEventListener("yt-navigate-finish",_.UO(this,this.onYtNavigateFinish_))};
_.N.updatePlaylistEventListeners=function(F,W){W&&!this.playerListenersSetup_?(this.playerManager_=F,this.registerPlaylistEventListeners_(F)):!W&&this.playerListenersSetup_&&(this.playerManager_=null,this.removePlaylistEventListeners_(F))};
_.N.setPlayer=function(F){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_);this.playerManager_=F};
_.N.activate_=function(){this.playerManager_&&this.registerPlaylistEventListeners_(this.playerManager_)};
_.N.deactivate_=function(){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_)};
_.N.registerPlaylistEventListeners_=function(F){var W=this;F.getPlayerPromise().then(function(E){W.playerListenersSetup_||(W.ytPlayerListenerBehavior.listenToPlayerEvents(E,W.PLAYER_EVENTS_),W.playerListenersSetup_=!0)})};
_.N.removePlaylistEventListeners_=function(F){var W=this;F.getPlayerPromise().then(function(E){W.playerListenersSetup_&&(W.ytPlayerListenerBehavior.unlistenFromPlayerEvents(E,W.PLAYER_EVENTS_),W.playerListenersSetup_=!1)})};
_.N.setPlaylistComponent=function(F){this.playlistComponent&&(this.playlistComponent.removeEventListener("yt-navigate",_.UO(this,this.onPlaylistYtNavigate_)),F&&(F.data&&this.playlistComponent.data&&F.data.playlistId==this.playlistComponent.data.playlistId?(F.loopOn=this.playlistComponent.loopOn,F.shuffleOn=this.playlistComponent.shuffleOn):(F.loopOn=!1,F.shuffleOn=!1),this.isShuffleNextPlaylist&&(F.shuffleOn=!0,this.isShuffleNextPlaylist=!1)));this.playlistComponent=F;this.playlistComponent.addEventListener("yt-navigate",
_.UO(this,this.onPlaylistYtNavigate_))};
_.N.setAutoplayRenderer=function(F){this.autoplayData=F};
_.N.setPlaylistData=function(F){this.currentPlaylistData_=F;_.hF(this.hostElement,"yt-playlist-data-updated");_.xd.isEmpty(F)?this.deactivate_():this.activate_();this.setLoopStateEntityKey_(F)};
_.N.setPlayerPlaybackControlData=function(F){this.playerManager_&&this.playerManager_.updatePlayerComponents(F.playlistPanelRenderer)};
_.N.getPlaylistData=function(){return this.currentPlaylistData_};
_.N.getTempData_=function(F,W){if(this.playlistComponent==null)return null;F={};this.playlistComponent.shuffleOn&&(F.shuffle_on=this.playlistComponent.shuffleOn);this.playlistComponent.loopOn&&(F.loop_on=this.playlistComponent.loopOn);W&&(F.autonav="1",_.WZ().resolve(_.$Y),W=_.hV(),W>0&&(F.lact=W),this.playerManager_&&(W=this.playerManager_.getPlayer())&&W.shouldSendVisibilityState()&&(W=W.getVisibilityState(),W!=0&&(F.vis=W)));_.c("enable_unknown_lact_fix_on_html5")&&(_.WZ().resolve(_.$Y),F.lact=
_.hV());return F};
_.N.getPlaylistState_=function(){return this.playlistComponent.loopOn&&this.playlistComponent.shuffleOn?"LOOP_SHUFFLE":this.playlistComponent.loopOn?"LOOP":this.playlistComponent.shuffleOn?"SHUFFLE":"NORMAL"};
_.N.setLoopStateEntityKey_=function(F){var W;this.loopStateEntityKey_=((W=this.getPlaylistLoopData_(F))==null?void 0:W.playlistLoopStateEntityKey)||null};
_.N.onPlaylistNext=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"nextButtonVideo")};
_.N.onPlaylistPrevious=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"previousButtonVideo")};
_.N.skipVideo=function(){var F=this,W=_.c("web_playlist_queue_multiple_skips_ks");if(!this.videoSkipJob_||W)W=this.isInBackground_()?1E3:5E3,this.videoSkipJob_=_.qY(_.P0,function(){F.onPlaylistNext();F.videoSkipJob_=0},W)};
_.N.cancelVideoSkip=function(){this.videoSkipJob_&&(_.P0.cancelJob(this.videoSkipJob_),this.videoSkipJob_=0)};
_.N.isInBackground_=function(){var F=window.document.visibilityState;return!(!F||F=="visible")};
_.N.onPlaylistIndex_=function(F){this.playlistComponent&&(F=this.playlistComponent.data.contents[F].playlistPanelVideoRenderer.navigationEndpoint,_.hF(this.hostElement,"yt-navigate",{endpoint:F,tempData:this.getTempData_(F)}))};
_.N.onPlayerStateChange_=function(F){if(F=F==0&&this.playlistComponent&&this.canAutoAdvance_)F=_.EX.getInstance(),F=!(F.autonavState_===3?F.autonavPauseReason_&&F.autonavPauseReason_.inputBoxFocus===!0:F.autonavState_===1&&F.disabledAutonavPauseReason_&&F.disabledAutonavPauseReason_.inputBoxFocus===!0);F&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"autoplayVideo",!0)};
_.N.onYtNavigateStart_=function(){this.canAutoAdvance_=!1};
_.N.onYtNavigateFinish_=function(){this.canAutoAdvance_=!0};
_.N.navigateToAutoplayWatchEndpoint_=function(F,W,E){var h=this.playlistComponent.data.currentIndex,d=this.getNumPlayableVideos_();F=="NORMAL"&&W=="autoplayVideo"&&h+1>=d&&E||!(F=this.getVideoEndpoint_(F,W))||(E=this.getTempData_(F,E),_.hF(this.hostElement,"yt-navigate",{endpoint:F,tempData:E}))};
_.N.getNumPlayableVideos_=function(){for(var F=0,W=_.U(this.playlistComponent.data.contents||[]),E=W.next();!E.done;E=W.next())E.value.playlistPanelVideoRenderer&&(F+=1);return F};
_.N.getVideoEndpoint_=function(F,W){if(this.autoplayData&&this.autoplayData.sets)for(var E=0,h=this.autoplayData.sets.length;E<h;E++){var d=this.autoplayData.sets[E];if(d.mode==F){if(d[W])return d[W];break}}else F=new _.xC("AutoplayData is undefined in playlist manager","Mode: "+F+" endpoint: "+W),_.OB(F)};
_.N.getAutoplayEndpoint=function(){if(this.playlistComponent)return this.getVideoEndpoint_(this.getPlaylistState_(),"autoplayVideo")};
_.N.onPlaylistYtNavigate_=function(F){if(F.detail.endpoint){F.stopPropagation();var W=F.detail;W.tempData=this.getTempData_(F.detail.endpoint);_.hF(this.hostElement,"yt-navigate",W)}};
_.N.hasAutoplayData=function(){return!(!this.autoplayData||!this.autoplayData.sets)};
_.N.onPlaylistLoopStateEntityChanged=function(){this.playlistLoopStateEntityChanged_(this.playlistLoopStateEntity_)};
_.N.playlistLoopStateEntityChanged_=function(F){var W=this,E,h,d;return _.e(function(V){if(V.nextAddress==1){if(!F)return V.return();E=F.state==="PLAYLIST_LOOP_STATE_ONE";return W.playerManager_?_.Q(V,W.playerManager_.getPlayerPromise(),3):V.jumpTo(2)}V.nextAddress!=2&&(h=V.yieldResult,h.setLoopVideo(E));d=F.state==="PLAYLIST_LOOP_STATE_ALL";W.playlistComponent&&(W.playlistComponent.loopOn=d);_.gG(V)})};
_.N.getPlaylistLoopData_=function(F){var W,E;if(F=F==null?void 0:(W=F.playlistButtons)==null?void 0:(E=W.menuRenderer)==null?void 0:E.topLevelButtons)for(W=_.U(F),E=W.next();!E.done;E=W.next())if(E=E.value,E.playlistLoopButtonRenderer)return E.playlistLoopButtonRenderer};
_.N.getLoopStateCommand_=function(F){var W=this.getPlaylistData(),E;W=((E=this.getPlaylistLoopData_(W))==null?void 0:E.states)||[];var h;F=(h=_.D(W[F?1:2],_.Fx_))==null?void 0:h.button;var d;return(d=_.D(F,_.jt))==null?void 0:d.command};
_.N.onPlayerLoopChange_=function(F){this.playlistLoopStateEntity_&&(F?"PLAYLIST_LOOP_STATE_ONE":"PLAYLIST_LOOP_STATE_NONE")!==this.playlistLoopStateEntity_.state&&(F=this.getLoopStateCommand_(F))&&this.ytComponentBehavior.resolveCommand(F)};
_.N.onSleepTimerSettingsChanged_=function(F){this.canAutoAdvance_=F!=="End of video"};
wi.prototype.onPlaylistLoopStateEntityChanged=wi.prototype.onPlaylistLoopStateEntityChanged;_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],wi.prototype,"ytComponentBehavior",void 0);_.T([_.J(_.om.YtPlayerListenerBehavior),_.Y("design:type",_.G$)],wi.prototype,"ytPlayerListenerBehavior",void 0);_.T([_.J(_.am),_.Y("design:type",Object)],wi.prototype,"ytdReduxBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],wi.prototype,"loopStateEntityKey_",void 0);
_.T([_.O({selectorArgs:["loopStateEntityKey_"],selector:_.OJW}),_.Y("design:type",Object)],wi.prototype,"playlistLoopStateEntity_",void 0);_.T([_.ea("playlistLoopStateEntity_"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],wi.prototype,"onPlaylistLoopStateEntityChanged",null);wi=_.T([_.y({disableElementRegistration:!0,is:"yt-playlist-manager"})],wi);_.r(wi,"yt-playlist-manager",void 0,{mode:_.E6("kevlar_poly_si_batch_j081")?1:2});var K2$,FCF=function(){if(K2$!==void 0)return K2$;var F=document.createElement("template");_.L(F,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-third-party-manager--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return K2$=F};var uX=function(){var F=_.n.apply(this,arguments)||this;F.lastCallback=null;F.getAccountLinkPromises={};F.redirectModeProviderAllowlist=new Set(["football.fantasysports.yahoo.com","riotgames.com"]);F.actionMap={"yt-initialize-third-party":"handleInitializeRequest","yt-account-link-command":"handleAccountLinkCommand","yt-account-unlink-command":"handleAccountUnlinkCommand","yt-log-account-linking-event-command":"handleLogAccountLinkingEventCommand"};return F};
_.k(uX,_.n);_.N=uX.prototype;_.N.getLocation=function(){return window.location.href};
_.N.getCompletionUrl=function(){return _.uI(this.getLocation())};
_.N.containsRedirectState=function(F){return(F=_.fk(_.CyG(F)))?(new URLSearchParams(F)).get("redirect_state")!==null:!1};
_.N.createGalConfig=function(F,W){var E=new eMw;F=E=W?this.getPopupOrRedirectSetting(E,_.b0("LINK_API_KEY"),_.b0("LINK_API_KEY_REDIRECT"),F):MmO(E,_.b0("LINK_API_KEY"));F.authUser=_.b0("SESSION_INDEX")||0;F.supportedFlows=new Set([4]);return F.build()};
_.N.getPopupOrRedirectSetting=function(F,W,E,h){this.isGalInteractionPopupMode(h)?(F.interactionMode=0,F=MmO(F,W)):(F.interactionMode=1,W=this.getCompletionUrl(),F.completionUrl=W,F=MmO(F,E));return F};
_.N.isGalInteractionPopupMode=function(F){if(this.redirectModeProviderAllowlist.has(F))switch(F){case "football.fantasysports.yahoo.com":return!1;case "riotgames.com":return!_.c("main_web_redirect_integration_riot");default:return!1}return!0};
_.N.getStatusEntityKeyForProviderId=function(F){return _.eF(F+":all","accountLinkStatusEntity")};
_.N.findNestedPropValue=function(F,W){var E=!1,h=null;JSON.stringify(F,function(d,V){E||d!==W||(E=!0,h=V);return E?null:V});
return h};
_.N.findAccountLinkButtonViewModel=function(F,W){var E=null,h=!1;JSON.stringify(F,function(d,V){h||V.accountLinkStatusEntityKey!==W||V.accountLinkStatusSecondaryEntityKey||(h=!0,E=V);return h?null:V});
return E};
_.N.executeLinkingSuccessOrFailureCommands=function(F,W,E){var h=null,d;(W==null?0:(d=W.url)==null?0:d.includes("account_sharing"))?h=W==null?void 0:W.response:h=W==null?void 0:W.response;(W=this.findAccountLinkButtonViewModel(h,F))?(F=E?this.findNestedPropValue(W,"onSuccessCommand"):this.findNestedPropValue(W,"onFailureCommand"))?_.gW([F],this.hostElement):_.i0(Error("dl")):_.i0(Error("el`"+F))};
_.N.handleInitializeRequest=function(F,W){var E=this,h=Gnq(this.createGalConfig(F,!0));this.containsRedirectState(this.getLocation())?Jtx(F,h.config,h.galService).then(function(d){var V=E.getStatusEntityKeyForProviderId(F);if(d.statusCode===1)W&&E.executeLinkingSuccessOrFailureCommands(V,W,!0),d=E.getLocation().indexOf("#"),d!==-1&&window.history.pushState(null,"",E.getLocation().substring(0,d));else return W&&E.executeLinkingSuccessOrFailureCommands(V,W,!1),Promise.reject(Error(d.statusMessage))}).catch(function(d){_.OB(d);
_.Pc("gamingAccountLinkStatusChanged",{serviceId:F,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(d)}):this.getAccountLinkPromises[F]=h.startLinkingSession({serviceId:F})};
_.N.handleAccountLinkCommand=function(F){_.D(F,F48)&&this.handleLinkRequest(_.D(F,F48))};
_.N.handleLinkRequest=function(F){var W=this,E=F.thirdPartyId;if(E)if(this.isGalInteractionPopupMode(E)){var h=function(){W.closeAndFire("ytd-gaming-account-link-setting-renderer",F.onFailureCommand)},d=function(){W.closeAndFire("ytd-gaming-account-link-setting-renderer",F.onSuccessCommand)};
this.lastCallback=d;this.getAccountLinkPromises[E].then(function(V){rDT(V).then(function(R){R.statusCode===1?d():h()})}).catch(function(){h()})}else this.getAccountLinkPromises[E].then(function(V){rDT(V).then(function(R){if(R.statusCode!==1)return Promise.reject(Error(R.statusMessage))})}).catch(function(V){_.OB(V);
_.Pc("gamingAccountLinkStatusChanged",{serviceId:E,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(V)})};
_.N.closeAndFire=function(F,W){_.dW(this.hostElement,"yt-close-popup-action",[F]);W&&_.gW([W],this.hostElement)};
_.N.handleAccountUnlinkCommand=function(F){_.D(F,W4$)&&this.handleUnlinkRequest(_.D(F,W4$))};
_.N.handleUnlinkRequest=function(F){var W=this,E=F.thirdPartyId;if(E){var h=function(){W.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",F.onFailureCommand)},d=function(){W.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",F.onSuccessCommand)};
this.lastCallback=d;var V=Gnq(this.createGalConfig(E,!1));this.unlinkUserGal(V,E).then(function(R){R.statusCode===1?d():h()}).catch(function(){h()})}};
_.N.unlinkUserGal=function(F,W){return F.deleteLink(W)};
_.N.handleLogAccountLinkingEventCommand=function(F){_.c("enable_gel_log_commands")&&_.D(F,EJ6)&&(F=_.D(F,EJ6).event)&&_.Pc("gamingAccountLinkStatusChanged",F)};
_.Sn.Object.defineProperties(uX,{template:{configurable:!0,enumerable:!0,get:function(){return FCF()}}});
_.T([_.J(_.R9.YtOpenPopupBehavior),_.Y("design:type",Object)],uX.prototype,"ytOpenPopupBehavior",void 0);_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],uX.prototype,"ytActionHandlerBehavior",void 0);uX=_.T([_.y({disableElementRegistration:!0,is:"ytd-third-party-manager"})],uX);_.r(uX,"ytd-third-party-manager",function(){return FCF()},{mode:_.E6("kevlar_poly_si_batch_j081")?1:2});var WCu,EzP=function(){return WCu!==void 0?WCu:WCu=document.createElement("template")};
document.head.appendChild(EzP().content);var hPx,deK=function(){if(hPx!==void 0)return hPx;var F=document.createElement("template");_.L(F,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-page-manager--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.main_desktop.pages.ytd_page_manager.ytd.page.manager.transitions.css.js,video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");F.content.insertBefore(EzP().content.cloneNode(!0),F.content.firstChild);F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return hPx=F};var Nt6=_.Fc(["\n          :root {\n            --page-manager-transition-exit-ms: ","ms;\n            --page-manager-transition-wait-ms: ","ms;\n            --page-manager-transition-enter-ms: ","ms;\n          }\n      "]),S0=function(){var F=_.n.apply(this,arguments)||this;F.currentPage=void 0;F.renderLoadingStateJobId=0;F.updatePageDataJobId=0;F.pageDisposeJobsets=new WeakMap;F.actionMap={"yt-start-loading-watch":"startLoadingWatch","yt-start-loading-shorts":"startLoadingShorts","yt-start-loading-learning-journey":"startLoadingLearningJourney",
"yt-get-page-offset":"getPageOffset","yt-set-page-offset":"setPageOffset","yt-pause-active-page-context":"pauseActiveContext","yt-prepare-page-dispose":"preparePageDispose","yt-stop-old-player":"onYtStopOldPlayer"};F.applyZoomTransition=_.N0("web_page_transition_type")==="zoom";F.applySlideTransition=_.N0("web_page_transition_type")==="slide";F.TEST_ONLY=void 0;return F};
_.k(S0,_.n);_.N=S0.prototype;_.N.ready=function(){var F=_.WZ();F.addProvider({provide:_.KQ,useValue:this});F.addProvider({provide:_.C9_,useValue:this})};
_.N.created=function(){this.pagePool=new $4F;this.contextSwitcher=new jv6};
_.N.attached=function(){_.hF(this.hostElement,"attached");var F=_.WZ().resolve(_.Fd(_.Ag));F&&(this.contextSwitcher.JSC$17497_networkService_=F);this.viewTransitionManager=_.WZ().resolve(_.Fd(_.xX));this.setupPageTransitionAnimation()};
_.N.getPageOffset=function(F){return F.getScrollTop()};
_.N.setPageOffset=function(F,W){try{F.setScrollTop(W)}catch(E){}};
_.N.setPageOffsetForNavigation=function(F,W){_.hF(this.hostElement,"yt-navigate-set-page-offset",{page:F,offset:W===void 0?0:W})};
_.N.pauseActiveContext=function(){var F=this.contextSwitcher;F.activeContext_&&F.activeContext_.pause()};
_.N.getModuleNameForType=function(F){return F==="watch"?_.c("kevlar_watch_fixie")?"watchFixie":_.c("kevlar_watch_grid")?"watchGrid":"watchFlexy":F==="shorts"||F==="search"?F:"browse"};
_.N.attachPage=function(F){var W,E=!_.c("pc_is_attached_ks")&&(F==null?void 0:(W=F.polymerController)==null?void 0:W.isAttached);if(!F.isAttached&&!E)try{_.Z(this.hostElement).appendChild(F)}catch(d){var h;_.OB(new _.xC("Error attaching page element for component",{origin:(h=this.currentPage)==null?void 0:h.is,component:F.is}))}};
_.N.setActivePage=function(F){var W=this,E=!1,h=function(){var d=W.isOnWatch(),V=W.currentPage;if(F)if(F!==W.currentPage){V&&(V.hidden=!0,V.active=!1,V.removeAttribute("role"));W.currentPage=F;var R,M=_.Cf((R=W.data)==null?void 0:R.endpoint);V&&_.hF(W.hostElement,"yt-page-type-changed",{oldPageType:V.is,newPageType:F.is,newPageSubtype:M});_.ja().dispatch(_.dR({type:"SET_SHARED_CURRENT_PAGE_TYPE",payload:F.is}));_.ja().dispatch(_.dR({type:"SET_SHARED_CURRENT_PAGE_SUB_TYPE",payload:M||""}));F.hidden=
!1;W.attachPage(F);F.active=!0;F.setAttribute("role","main");V&&W.setPageOffsetForNavigation(F,0);_.c("kevlar_remove_page_dom_on_switch")&&!d&&V&&_.Z(W.hostElement).removeChild(V)}else E=!0;else d=new _.xC("Unable to set active page",V?V.is:"unknown origin",(M=W.data)==null?void 0:M.endpoint),_.a_(d)};
this.viewTransitionManager?McO(this.viewTransitionManager,h,this.viewTransitionConfigForSetActivePage(this.currentPage,F)):h();return E};
_.N.viewTransitionConfigForSetActivePage=function(F,W){return _.c("web_thumbnail_to_watch_transition")&&(F==null?void 0:F.is)==="ytd-browse"&&this.isWatchPage(W)?{viewTransitionOptions:{shouldWrap:!0}}:(this.applySlideTransition||this.applyZoomTransition)&&(F==null?void 0:F.is)==="ytd-browse"&&(W==null?void 0:W.is)==="ytd-browse"&&F!==W?this.applySlideTransition?{transitionName:"slide"}:{transitionName:"zoom"}:{viewTransitionOptions:{shouldWrap:!1}}};
_.N.updatePageData=function(F){var W=this,E=this.data;this.updatePageDataJobId&&_.P0.cancelJob(this.updatePageDataJobId);this.data=F;return new _.z5(function(h){var d=function(){F.filler?W.performDataUpdate(F,E):ZKT(function(){W.performDataUpdate(F,E)});
var g=_.ip();_.rL(g,"cr")||g.processSignal("cr");h()},V=function(){F&&F.page==="watch"?W.updatePageDataJobId=_.qY(_.P0,d):d()};
if(_.c("kevlar_enable_mss_page_modules_client")&&F){var R=_.WZ().resolve(_.wX),M=W.getModuleNameForType(F.page);(R=Rp$(R,[M]))?R.then(V):V()}else V()})};
_.N.isDownloadsPage=function(F){var W,E;return(F==null?void 0:(W=F.endpoint)==null?void 0:(E=W.browseEndpoint)==null?void 0:E.browseId)==="FEdownloads"};
_.N.setPlayerSyncInterval=function(F){var W;return _.e(function(E){if(E.nextAddress==1)return _.Q(E,_.WZ().resolve(_.Va),2);W=E.yieldResult;W.setUpPositionSyncInterval(F);_.gG(E)})};
_.N.performDataUpdate=function(F,W){_.c("kevlar_early_popup_close")||_.dW(this.hostElement,"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);var E=!F.filler;E&&(_.P5("lps"),_.c("config_age_report_killswitch")||KFw());var h=NE(F),d,V=!1;if(_.c("kevlar_remove_page_dom_on_switch")){var R=W&&NE(W);h===R&&(d=this.getCurrentPage())}d||(d=Ou(this.pagePool,h));E&&PHx(this.pagePool.elementPoolPopulator,h);E&&!this.renderLoadingStateJobId&&(V=this.setActivePage(d));if(d){R=h==="watch";var M=
h==="shorts",g=h==="learning_journey_watch";_.c("kevlar_flush_jobs_before_setting_player_response")&&this.flushPageDisposeJobset(d);if(R||M||g)d.playerData=F.playerResponse;if(M){F.reelWatchSequenceResponse?d.reelWatchSequenceResponse=F.reelWatchSequenceResponse:F.cachedReelWatchSequenceResponse?d.reelWatchSequenceResponse=F.cachedReelWatchSequenceResponse:_.c("web_enable_cached_reel_sequence_fix")&&d.cachedReelWatchSequenceResponse&&!d.reelWatchSequenceResponse&&(d.reelWatchSequenceResponse=d.cachedReelWatchSequenceResponse);
d.currentEndpoint=F.endpoint;var t;d.isPreviousPageShorts=!!(W==null?0:(t=W.endpoint)==null?0:t.reelWatchEndpoint);F.cachedReelWatchSequenceResponse=F.reelWatchSequenceResponse||F.cachedReelWatchSequenceResponse||(W==null?void 0:W.cachedReelWatchSequenceResponse);d.cachedReelWatchSequenceResponse=F.cachedReelWatchSequenceResponse}t=this.isDownloadsPage(F);var C=this.isDownloadsPage(W);t&&!C?this.setPlayerSyncInterval(6E5):!t&&C&&this.setPlayerSyncInterval();_.c("block_all_player_prefetch_requests")||
this.preparePrefetchRequest(F,d,E,R,M,g);gYT(_.WZ().resolve(_.GF),W,F);_.mC(_.WZ().resolve(_.$Y));_.c("kevlar_flush_jobs_before_setting_player_response")||this.flushPageDisposeJobset(d);E?(E=typeof d.loadPage,E==="function"?(d.pageContext=iyF(this.contextSwitcher,d,d.data!==F.response),E=function(){d.loadPage(F.response)},(this.applySlideTransition||this.applyZoomTransition)&&this.viewTransitionManager&&d.is==="ytd-browse"&&V&&this.isDifferentBrowseId(F==null?void 0:F.endpoint,W==null?void 0:W.endpoint)?
this.applySlideTransition?McO(this.viewTransitionManager,E,{transitionName:"slide"}):McO(this.viewTransitionManager,E,{transitionName:"zoom"}):E()):_.fn(new _.xC("b/38014653 ",[h,
d.is,d.nodeName,E,d.isAttached,W&&NE(W),this.hostElement.children.length])),_.P5("pdl")):(d.hidden=!0,F.response.filler=!0,d.data=F.response,this.attachPage(d));_.hF(this.hostElement,"yt-page-data-updated",{pageType:h})}_.sB(_.P0,function(){_.c("logging_avoid_blocking_during_navigation")&&_.KVo().transition("none");var B=hJN(),I=d;if(F){var x=bYw(F),A=l2x(F),X;a:{if(F.playerResponse){var P=F.playerResponse,b;if((X=P.auxiliaryUi)==null?0:(b=X.messageRenderers)==null?0:b.upsellDialogRenderer){X=P.auxiliaryUi.messageRenderers.upsellDialogRenderer;
break a}}else if(F.response&&(X=F.response,(P=X.overlay)==null?0:P.upsellDialogRenderer)){X=X.overlay.upsellDialogRenderer;break a}X=void 0}var l;var w;b=(l=F.playerResponse)==null?void 0:(w=l.auxiliaryUi)==null?void 0:w.messageRenderers;l=(b==null?void 0:b.enforcementMessageViewModel)||(b==null?void 0:b.bkaEnforcementMessageViewModel);l=(l==null?void 0:l.displayType)!=="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"?l:void 0;var G;a:{if(F.response&&(w=F.response,(G=w.overlay)==null?0:G.commandWrapperPromoRenderer)){G=
w.overlay.commandWrapperPromoRenderer;break a}G=void 0}Eg8(B,x,A,X,l,G,I)}})};
_.N.preparePrefetchRequest=function(F,W,E,h,d,V){var R,M,g,t,C,B,I,x,A,X,P,b,l,w,G;return _.e(function(hr){if(hr.nextAddress==1)return!E||!(h||d||V)||_.c("kevlar_disable_background_prefetch")&&_.yn(_.SDY)()===0?hr.return():(R=_.FF(W))?_.Q(hr,R.getPlayerPromise(),2):hr.return();M=hr.yieldResult;g=_.WZ().resolve(_.Fd(_.Ag));if(!g)return hr.return();if(d)return t=_.zF(_.MX),nTq(t,(C=F.endpoint)==null?void 0:C.reelWatchEndpoint,W.reelWatchSequenceResponse,M,g),hr.return();x=(B=F.response)==null?void 0:
(I=B.responseContext)==null?void 0:I.webResponseContextExtensionData;if(!x)return hr.return();l=(A=F.response)==null?void 0:(X=A.contents)==null?void 0:(P=X.twoColumnWatchNextResults)==null?void 0:(b=P.autoplay)==null?void 0:b.autoplay;w=_.WZ().resolve(_.yH);G=_.zF(_.MX);ymF(G,x,M,g,w,l);_.gG(hr)})};
_.N.movePlayerToWatch=function(F){var W=this,E,h;return _.e(function(d){E=Ou(W.pagePool,"watch");h=E.getPlayerContainer();F.appendTo(h);_.gG(d)})};
_.N.movePlayerToShorts=function(F){var W=this,E,h,d;return _.e(function(V){E=Ou(W.pagePool,"shorts");h=E.getPlayerContainer();(d=F)==null||d.appendTo(h,void 0,!0);_.gG(V)})};
_.N.getPlayerFromWatch=function(){var F=Ou(this.pagePool,"watch");return _.FF(F)};
_.N.getPlayerFromShorts=function(){var F=Ou(this.pagePool,"shorts");return _.FF(F)};
_.N.startLoadingWatch=function(){var F=Ou(this.pagePool,"watch");this.renderLoadingStateJobId?(_.P0.cancelJob(this.renderLoadingStateJobId),this.renderLoadingStateJobId=0,this.renderPageLoadingState("watch")):this.setActivePage(F)};
_.N.startLoadingShorts=function(){var F=Ou(this.pagePool,"shorts");this.setActivePage(F)};
_.N.startLoadingLearningJourney=function(){var F=Ou(this.pagePool,"learning_journey_watch");this.setActivePage(F)};
_.N.getCurrentPage=function(){return this.currentPage};
_.N.getDestinationPageType=function(){return this.destinationPageType};
_.N.getCurrentData=function(){return this.data};
_.N.isOnWatch=function(){return this.isWatchPage(this.currentPage)};
_.N.isOnShorts=function(){var F;return((F=this.currentPage)==null?void 0:F.is)==="ytd-shorts"};
_.N.isWatchPage=function(F){return!!F&&(F.is==="ytd-watch-flexy"||F.is==="ytd-watch-fixie"||F.is==="ytd-watch-grid")};
_.N.preparePage=function(F,W){var E=this,h=function(){var R=E.pagePool.preparePage(F,E.currentPage,W);R&&E.attachPage(R)},d=function(R){_.bf(R,W);
_.OB(R)};
if(_.c("kevlar_enable_mss_page_modules_client")){var V=this.getModuleNameForType(F);if(V=Rp$(_.WZ().resolve(_.wX),[V])){V.then(h.bind(this)).catch(d.bind(this));return}}try{h()}catch(R){d(R)}};
_.N.lazyPrepareCriticalPages=function(F,W){F=_.Cf(W)||F;_.c("kevlar_enable_mss_page_modules_client")?this.downloadPageModules(F).then(this.maybePrepareWatchPage.bind(this,F)):this.maybePrepareWatchPage(F)};
_.N.maybePrepareWatchPage=function(F){F!=="watch"&&_.sB(_.P0,this.preparePage.bind(this,"watch"))};
_.N.downloadPageModules=function(F){F=this.getModuleNameForType(F);var W=new Set(["browse","search","shorts",this.getModuleNameForType("watch")]);W.delete(F);var E=_.WZ().resolve(_.wX);E.JSC$16233_loadModules(F);return E.JSC$16233_loadModules.apply(E,_.x9(W))};
_.N.renderPageLoadingState=function(F,W){this.preparePage(F,W);var E=Ou(this.pagePool,F);E.loadingData&&(E.loadingData.endpoint=W);E.loading=!0;this.setActivePage(E);F==="watch"&&_.hF(this.hostElement,"yt-guide-close")};
_.N.prepareForNavigation=function(F,W){var E=this;if(this.currentPage&&this.data){var h=_.Cf(W)||F;this.destinationPageType=h;NE(this.data)==h&&_.hF(this.currentPage,"yt-page-data-will-update",{bubbles:!1})}if(F==="watch"&&this.data&&this.data.page!=="watch"){this.renderLoadingStateJobId&&_.P0.cancelJob(this.renderLoadingStateJobId);_.WZ().resolve(_.GF).deactivate(W);var d=this.data;this.renderLoadingStateJobId=_.JG(_.P0,function(){if(E.data!=d){var V=Ou(E.pagePool,F);E.setActivePage(V)}else E.renderPageLoadingState(F,
W);E.renderLoadingStateJobId=0},150)}};
_.N.preparePageDispose=function(){if(this.currentPage&&Array.isArray(this.currentPage.pageDisposeJobs)&&this.currentPage.pageDisposeJobs.length!==0){var F=new _.py(1);this.currentPage.pageDisposeJobs.forEach(function(W){_.mo(F,W)});
this.pageDisposeJobsets.set(this.currentPage,F)}};
_.N.flushPageDisposeJobset=function(F){var W=this.pageDisposeJobsets.get(F);W&&(W.flushJobs(),this.pageDisposeJobsets.delete(F))};
_.N.onYtStopOldPlayer=function(F,W){W=W===void 0?!1:W;var E,h=_.Vy("kevlar_new_stop_old_player_logic_pages");if(_.c("kevlar_check_current_page_on_stop_old_player")&&(h.length===0||this.currentPage&&h.includes(this.currentPage.is)))if(this.data&&(E=NE(this.data)),NE(F)===E&&this.currentPage&&NE(this.currentPage.data)!==E)var d=_.FF(this.currentPage);else E=NE(this.data),d=Ou(this.pagePool,E),d=_.FF(d);else this.data&&(E=NE(this.data),d=Ou(this.pagePool,E),d=_.FF(d));if(d)if(F=NE(F),h=Ou(this.pagePool,
F),h=_.FF(h),d==h)W&&!_.c("kevlar_disable_preemptive_player_reset")&&d.resetForNewPlayback();else if(W=E==="watch"&&F!=="watch",!W||F==="shorts"||_.lN_()&&!udT(this.data)&&F!=="yts-products"&&F!="mini_app"&&F!="playables")E=_.WZ().resolve(_.GF),W&&E.isMiniplayerActive()&&E.pipController.getWindow()||d.stop()};
_.N.setupPageTransitionAnimation=function(){var F=this;if((this.applyZoomTransition||this.applySlideTransition)&&this.viewTransitionManager){Fz(this.viewTransitionManager,"slide",{beforeTransition:function(){F.hostElement.style.viewTransitionName="page-manager-slide"},
afterTransition:function(){F.hostElement.style.viewTransitionName=""}});
Fz(this.viewTransitionManager,"zoom",{beforeTransition:function(){F.hostElement.style.viewTransitionName="page-manager-zoom"},
afterTransition:function(){F.hostElement.style.viewTransitionName=""}});
var W=_.dV("web_page_transition_exit_ms"),E=_.dV("web_page_transition_wait_ms"),h=_.dV("web_page_transition_enter_ms");if(!isNaN(W)||!isNaN(E)||!isNaN(h))if(W=E7O(Nt6,W,E,h))E=document.createElement("style"),E.textContent=_.sKr(W),document.head.appendChild(E)}};
_.N.isDifferentBrowseId=function(F,W){F=_.D(F,_.BB);W=_.D(W,_.BB);return(F==null?void 0:F.browseId)!==(W==null?void 0:W.browseId)};
_.Sn.Object.defineProperties(S0,{template:{configurable:!0,enumerable:!0,get:function(){return deK()}}});
_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],S0.prototype,"ytActionHandlerBehavior",void 0);S0=_.T([_.y({disableElementRegistration:!0,is:"ytd-page-manager"})],S0);_.r(S0,"ytd-page-manager",function(){return deK()},{mode:_.E6("kevlar_poly_si_batch_j081")?1:2});var p6=function(F,W,E){E=E===void 0?!1:E;_.xj.call(this);this.draggableElement=F;this.callbacks=W;this.allowClicks=E;this.dragOccurred=!1;this.internalDragger=new _.rs(this.draggableElement);this.dragDelay=new _.KX(this.delayedDrag.bind(this));VV6(this);this.allowClicks&&(_.Fe_(this.internalDragger,5),F.addEventListener("click",_.UO(this,this.validateClick),{capture:!0}))};
_.k(p6,_.xj);var VV6=function(F){_.ce(F.internalDragger,"earlycancel",function(){F.allowClicks&&(F.dragOccurred=!1)});
_.ce(F.internalDragger,"start",function(W){var E,h;(h=(E=F.callbacks).onStartDrag)==null||h.call(E,W);!W.defaultPrevented&&F.allowClicks&&(F.dragOccurred=!0)});
_.ce(F.internalDragger,"beforedrag",function(W){W.preventDefault();F.lastOffset=new _.sp(W.clientX-F.internalDragger.startX,W.clientY-F.internalDragger.startY);F.dragDelay.start()});
_.ce(F.internalDragger,"end",function(){F.dragDelay.stop();var W,E;(E=(W=F.callbacks).onEndDrag)==null||E.call(W);F.lastOffset=void 0})};
p6.prototype.delayedDrag=function(){if(this.lastOffset)this.callbacks.onDrag(this.lastOffset)};
p6.prototype.disposeInternal=function(){this.internalDragger.dispose();this.allowClicks&&this.draggableElement.removeEventListener("click",_.UO(this,this.validateClick),{capture:!0})};
p6.prototype.validateClick=function(F){this.dragOccurred&&(this.dragOccurred=!1,F.stopPropagation(),F.preventDefault())};var mW=function(F,W){_.xj.call(this);this.JSC$17698_resizeContainer=F;this.callbacks=W;this.aspectRatio=16/9;this.JSC$17698_resizers=[];F=_.U(this.JSC$17698_resizeContainer.children);for(W=F.next();!W.done;W=F.next())Uex(this,W.value)};
_.k(mW,_.xj);mW.prototype.disposeInternal=function(){for(var F=_.U(this.JSC$17698_resizers),W=F.next();!W.done;W=F.next())W.value.dispose();F=_.U(this.JSC$17698_resizeContainer.children);for(W=F.next();!W.done;W=F.next())W.value.setAttribute("disabled","");this.JSC$17698_resizers.length=0};
mW.prototype.setSize=function(F){this.currentMiniplayerSize=F};
mW.prototype.setAspectRatio=function(F){this.aspectRatio=F};
mW.prototype.update=function(F,W){for(var E=_.U(this.JSC$17698_resizeContainer.children),h=E.next();!h.done;h=E.next()){h=h.value;var d=h.getAttribute("alignment");_.EO(h,"disabled",d===F||d===W)}};
var Uex=function(F,W){var E=W.getAttribute("alignment"),h=new p6(W,{onStartDrag:function(d){if(W.hasAttribute("disabled"))d.preventDefault();else{F.dragStartSize=F.currentMiniplayerSize;var V,R;(R=(V=F.callbacks).onStartResize)==null||R.call(V)}},
onDrag:function(d){if(F.dragStartSize){E!=="north"&&E!=="west"||d.scale(-1);var V=E==="north"||E==="south";d=V?d.y:d.x;V&&F.aspectRatio>=1?d*=F.aspectRatio:!V&&F.aspectRatio<1&&(d/=F.aspectRatio);F.callbacks.onResize(F.dragStartSize+d)}}});
F.JSC$17698_resizers.push(h)};var RPP,ePF=function(){return RPP!==void 0?RPP:RPP=document.createElement("template")};
document.head.appendChild(ePF().content);var MV6;var gz6=_.GK(function(F){var W=_.uf(),E=F.onDrag,h=F.onDragStart,d=F.onDragEnd,V=_.o4(F,{allowClicks:!1,dragThreshold:5}),R=V.dragThreshold,M=V.allowClicks;F=V.children;V=V.className;var g=void 0,t=void 0,C=new _.sp(0,0),B=!1;_.Xk(function(){g=new _.rs(W.value);t=new _.KX(x);I(g,t);if(M()){_.Fe_(g,R());var X;(X=W.value)==null||X.addEventListener("click",A,{capture:!0})}_.$p(function(){var P;(P=g)==null||P.dispose();if(M()){var b;(b=W.value)==null||b.removeEventListener("click",A,{capture:!0})}})});
var I=function(X,P){_.ce(X,"earlycancel",function(){M()&&(B=!1)});
_.ce(X,"start",function(b){h==null||h(b);b.defaultPrevented||M()&&(B=!0)});
_.ce(X,"beforedrag",function(b){g&&t&&(b.preventDefault(),C=new _.sp(b.clientX-g.startX,b.clientY-g.startY),t.start())});
_.ce(X,"end",function(){P.stop();d==null||d();C=new _.sp(0,0)})},x=function(){C&&E(C)},A=function(X){B&&(B=!1,X.stopPropagation(),X.preventDefault())};
return _.z("yt-draggable",{el:W,class:_.ec("ytDraggableComponentHost",V)},F)},"eg");var Qm6=_.GK(function(F){var W=_.U(_.g$(0,void 0,"CvAwBd")),E=W.next().value,h=W.next().value;W=function(d){var V={},R={};return _.z(gz6,{className:_.ec("ytdMiniplayerComponentResizer",(V.ytdMiniplayerComponentResizerDisabled=function(){return d===F.horizontalAlignment()||d===F.verticalAlignment()},V.ytdMiniplayerComponentResizerNorth=d==="north",V.ytdMiniplayerComponentResizerEast=d==="east",V.ytdMiniplayerComponentResizerSouth=d==="south",V.ytdMiniplayerComponentResizerWest=d==="west",V)),
onDragStart:function(){h(F.currentMiniplayerSize());if(F.onResizeStart)F.onResizeStart()},
onDrag:function(M){d!=="north"&&d!=="west"||M.scale(-1);var g;M=(g=d==="north"||d==="south")?M.y:M.x;var t=F.currentAspectRatio();g&&t>=1?M*=t:!g&&t<1&&(M/=t);g=M;F.onResize(E()+g)}},_.z("div",{class:_.ec("ytdMiniplayerComponentResizerCorner",(R.ytdMiniplayerComponentResizerNorthCorner=d==="north",R.ytdMiniplayerComponentResizerEastCorner=d==="east",R.ytdMiniplayerComponentResizerSouthCorner=d==="south",R.ytdMiniplayerComponentResizerWestCorner=d==="west",R))}))};
return _.z("div",{class:"ytdMiniplayerComponentResizers"},W("north"),W("east"),W("south"),W("west"))},"fg");var zP$=16/9,tV6=_.GK(function(){var F=_.uf(),W=_.U(_.g$(new _.Rl(NaN,NaN),void 0,"UYv80c")),E=W.next().value,h=W.next().value;W=_.U(_.g$(!1,void 0,"L9O3Tc"));var d=W.next().value,V=W.next().value;W=_.U(_.g$(!1,void 0,"nw5gMc"));var R=W.next().value,M=W.next().value;W=_.U(_.g$(!1,void 0,"X4YUZc"));var g=W.next().value,t=W.next().value;W=_.U(_.g$(!1,void 0,"jOjwyc"));var C=W.next().value,B=W.next().value;W=_.U(_.g$(!1,void 0,"EmWIj"));var I=W.next().value,x=W.next().value;W=_.U(_.g$(!1,void 0,"pdZbNb"));
var A=W.next().value,X=W.next().value;W=_.U(_.g$(zP$,void 0,"vdAiue"));var P=W.next().value,b=W.next().value,l=_.U(_.g$(!1,void 0,"agiiqf"));W=l.next().value;var w=l.next().value;l=_.U(_.g$(!1,void 0,"z3vkHe"));var G=l.next().value,hr=l.next().value;l=_.U(_.g$(void 0,void 0,"FMEjz"));var p=l.next().value,UY=l.next().value;l=_.U(_.g$(_.b0("HTML_DIR")==="rtl"?"west":"east",void 0,"jGuIHe"));var xW=l.next().value,qw=l.next().value;l=_.U(_.g$("south",void 0,"R5stie"));var Lb=l.next().value,jk=l.next().value;
l=_.U(_.g$(400,void 0,"CJeuke"));var Jr=l.next().value,nb=l.next().value,bo=_.WZ().resolve(_.GF).miniplayerPropSignalMap[0],uo=bo.data,b_=bo.externalPlaylistData;l=bo.toastData;var BO=bo.playabilityStatus,dc=bo.isReadyToResume,VM=bo.isDisabled,Z_=bo.watchWhile,MU=bo.playerVe,Ef=bo.expandVe,kR=bo.closeVe,Rn=bo.readyToResumeVe,se=bo.readyToResumeCloseVe,l_=bo.repositionVe,j$=bo.resizeVe;bo=_.U(_.Br(dc));var HO=bo.next().value,YB=bo.next().value,GT=!1,vO=!1,wI;_.Xk(function(){h(_.cB());F.value.addEventListener("animationend",
function(i_){i_.target===F.value&&(x(!1),X(!1))});
NRu(F.value)});
_.w3("yt-window-resized",function(i_){i_&&h(i_)});
var Aa=function(){wI&&b(wI.getVideoAspectRatio())},MF=function(){if(wI){var i_=wI.getPlayerState()===1;
HO()&&i_&&YB(!1)}},LT=function(){var i_=Ef();
if(i_){var AP=_.JR(3);AP&&_.oj(AP,i_)}},Du=function(){var i_=kR(),AP=se();
i_&&_.oj(_.JR(3),i_);dc()&&AP&&_.oj(_.JR(3),AP)};
_.w3("yt-activate-miniplayer",function(i_){var AP;return _.e(function(YK){if(YK.nextAddress==1)return d()?YK.return():_.Q(YK,(AP=_.WZ().resolve(_.GF).getPlayerElement())==null?void 0:AP.getPlayerPromise(),2);wI=YK.yieldResult;if(!wI)return YK.return();!G()&&_.c("kevlar_watch_while_v2")&&(jk(i_&&!_.c("kevlar_watch_while_bottom_align")?"north":"south"),qw(_.b0("HTML_DIR")==="rtl"?"west":"east"));var S$=wI;S$.addEventListener("onVideoDataChange",Aa);S$.addEventListener("onStateChange",MF);S$.addEventListener("onExpandMiniplayer",
LT);S$.addEventListener("onCloseMiniplayer",Du);b(wI.getVideoAspectRatio());V(!0);x(!0);_.gG(YK)})});
_.w3("yt-deactivate-miniplayer",function(i_){return _.e(function(AP){if(!d())return AP.return();V(!1);YB(!1);X(i_);x(!0);if(wI){var YK=wI;YK.removeEventListener("onVideoDataChange",Aa);YK.removeEventListener("onStateChange",MF);YK.removeEventListener("onExpandMiniplayer",LT);YK.removeEventListener("onCloseMiniplayer",Du)}_.gG(AP)})});
var MR=function(){var i_=!!uo(),AP=I(),YK=Z_();return(YK===void 0?0:YK)&&_.c("kevlar_watch_while_modern")?!1:i_||AP},QA=function(){var i_;
return!((i_=b_())==null||!i_.contents)},iK=function(){var i_=Jr();
var AP=E();AP=Math.min(Math.min(AP.width,AP.height)-32,720);var YK=P(),S$=MR(),zX=QA()&&R(),Np=Math.min(i_,AP);i_=new _.Rl(192,S$?116:192);YK=n3K(new _.Rl(zX?zP$:YK,1),new _.Rl(Np,S$?Np-76:Np));i_.width<=YK.width&&i_.height<=YK.height||(lGq(YK,i_),YK.width=Math.min(YK.width,AP),YK.height=Math.min(YK.height,AP));return new _.Rl(YK.width,_.jX(192,YK.height+MFK(S$,zX),720))},DV=function(){var i_=iK(),AP=MR(),YK=QA()&&R();
return new _.Rl(i_.width,i_.height-MFK(AP,YK))},xt=function(){var i_=function(AP){AP.target===F.value&&C()&&(B(!1),F.value.removeEventListener("transitionend",i_))};
F.value.addEventListener("transitionend",i_);B(!0);M(!R())};
_.q6(function(){var i_=MU(),AP=_.JR(3),YK=_.Pf(3);if(AP&&YK&&i_){_.y7(AP,YK,i_);YK=l_();var S$=j$(),zX=Ef(),Np=kR(),Ac=se();zX&&Np&&Ac&&(_.j7(AP,i_,[zX,Np,Ac]),_.rW(AP,[zX,Np]));YK&&S$&&_.j7(AP,i_,[YK,S$])}});
_.q6(function(){var i_=HO(),AP=Rn();if(AP&&(i_===void 0?0:i_)){i_=_.JR(0);var YK=_.Pf(0);i_&&YK&&(_.y7(i_,YK,AP),_.rW(i_,[AP]))}});
bo={};return _.z("ytd-miniplayer",{el:F,class:_.ec("ytdMiniplayerComponentHost",(bo.ytdMiniplayerComponentVisible=function(){return d()||I()},bo.ytdMiniplayerComponentAnimatingSnap=g,bo.ytdMiniplayerComponentAnimatingPlaylistExpand=C,bo.ytdMiniplayerComponentAnimatingFade=I,bo),function(){if(I()){var i_=Lb();
var AP=d(),YK=A();i_=AP?i_==="south"?"ytdMiniplayerComponentAnimatingFadeInSouth":"ytdMiniplayerComponentAnimatingFadeInNorth":YK?i_==="south"?"ytdMiniplayerComponentAnimatingFadeOutNorth":"ytdMiniplayerComponentAnimatingFadeOutSouth":i_==="south"?"ytdMiniplayerComponentAnimatingFadeOutSouth":"ytdMiniplayerComponentAnimatingFadeOutNorth"}else i_="";return i_}),
style:_.vr({top:function(){return Lb()==="north"?"16px":""},
right:function(){return xW()==="east"?"16px":""},
bottom:function(){return Lb()==="south"?"16px":""},
left:function(){return xW()==="west"?"16px":""},
width:function(){return iK().width+"px"},
height:function(){return iK().height+"px"},
transform:function(){var i_=p();return i_?"translate("+i_.x+"px, "+i_.y+"px)":""}})},_.z("div",{class:"ytdMiniplayerComponentContent"},_.z(gz6,{allowClicks:!0,
className:"ytdMiniplayerComponentDraggable",onDragStart:function(i_){var AP=e0O(xW(),Lb(),E(),iK(),p()),YK=DV();Math.abs(i_.clientY-(AP.y+YK.height))>15?(w(!0),i_=_.JR(3),AP=l_(),GT||(GT=!0,i_&&AP&&_.rW(i_,[AP])),i_&&AP&&_.oj(i_,AP)):i_.preventDefault()},
onDrag:function(i_){UY(i_)},
onDragEnd:function(){var i_=VFg(e0O(xW(),Lb(),E(),iK(),p()),E(),iK()),AP=R0F(xW(),Lb(),E(),iK()),YK=R0F(i_.horizontalAlignment,i_.verticalAlignment,E(),iK());YK=new _.sp(YK.x-AP.x,YK.y-AP.y);var S$;AP=AP.y+(((S$=p())==null?void 0:S$.y)||0)+iK().height/2;var zX=function(){xW()===i_.horizontalAlignment&&Lb()===i_.verticalAlignment||hr(!0);qw(i_.horizontalAlignment);jk(i_.verticalAlignment);UY(void 0)},Np=function(Ac){Ac.target===F.value&&g()&&(t(!1),zX(),F.value.removeEventListener("transitionend",
Np))};
w(!1);Lb()==="south"&&AP>E().height?(zX(),_.WZ().resolve(_.GF).close()):(F.value.addEventListener("transitionend",Np),t(!0),UY(YK))}},_.z(_.v,{cond:d,
then:function(){return _.z(_.Bux,{isDisabled:VM,playabilityStatus:BO,size:DV})}}),_.z(_.v,{cond:MR,
then:function(){return _.z(_.tzN,{isReadyToResume:HO,data:uo,expanded:R,onExpandClick:xt,playlistData:b_})}}),_.z(_.v,{cond:W,
then:function(){return _.z("div",{class:"ytdMiniplayerComponentDraggableDragCover"})}})),_.z(_.v,{cond:function(){return QA()&&R()||C()},
then:function(){return _.z(_.nl_,{className:"ytdMiniplayerComponentPlaylistPanel",data:b_,hideHeaderText:!0,withinMiniplayer:!0})}}),_.z("div",{class:"ytdMiniplayerComponentToast"},_.z(_.vRq,{toastData:l}))),_.z(Qm6,{onResize:function(i_){nb(_.jX(192,i_,720))},
onResizeStart:function(){var i_=_.JR(3),AP=j$();vO||(vO=!0,i_&&AP&&_.rW(i_,[AP]));i_&&AP&&_.oj(i_,AP)},
currentAspectRatio:P,currentMiniplayerSize:Jr,horizontalAlignment:xW,verticalAlignment:Lb}))},"gg");_.c("ytd_miniplayer_to_wiz")&&_.pK(tV6,"ytd-miniplayer",{});_.pK(_.vRq,"ytd-miniplayer-toast",{props:{toastData:_.TS}});var CUK=16/9,BtF=new _.Rl(400,400/CUK),K6=function(){var F=_.n.apply(this,arguments)||this;F.active=!1;F.hasNoData=!1;F.enabled=!1;F.expanded=!1;F.readyToResume=!1;F.isDisabled=!1;F.externalPlaylistData={};F.premiumBadges=[];F.watchWhile=!1;F.playerState=null;F.verticalAttachment="south";F.horizontalAttachment=_.b0("HTML_DIR")==="rtl"?"west":"east";F.isAnimatingFade=!1;F.isAnimatingSnap=!1;F.isAnimatingExpand=!1;F.isDragging=!1;F.playerHidden=!1;F.hasPlaylistData=!1;F.closed=!1;F.expandedClosed=!1;
F.isForReadyToResume=!1;F.watchResponse=null;F.player=null;F.playerVe=null;F.expandVe=null;F.closeVe=null;F.readyToResumeCloseVe=null;F.disabledInitialStateIsPlaying=!1;F.PLAYER_EVENTS=new Map;F.aspectRatio=CUK;F.currentMiniplayerSize=400;F.userSetSize=!1;F.userSetPosition=!1;F.userHasDragged=!1;F.maxMiniplayerSize=720;F.transform=new _.sp(0,0);F.windowDimensions=new _.Rl(NaN,NaN);F.dimensions=BtF;F.screenLayer=3;F.actionMap={"yt-activate-miniplayer-action":"activate","yt-deactivate-miniplayer-action":"deactivate",
"yt-window-resized":"onWindowResized"};return F};
_.k(K6,_.n);_.N=K6.prototype;_.N.created=function(){this.PLAYER_EVENTS.set("onVideoDataChange",this.onPlayerVideoDataChange);this.PLAYER_EVENTS.set("onCloseMiniplayer",this.onPlayerCloseMiniplayer);this.PLAYER_EVENTS.set("onExpandMiniplayer",this.onPlayerExpandMiniplayer);this.PLAYER_EVENTS.set("onStateChange",this.onPlayerStateChange);this.registerViewTransitionTasks()};
_.N.ready=function(){this.setUpDragging();this.setUpResizing()};
_.N.attached=function(){this.onWindowResized(_.cB());this.hostElement.addEventListener("animationend",_.UO(this,this.resetFadingAnimation))};
_.N.detached=function(){this.hostElement.removeEventListener("animationend",_.UO(this,this.resetFadingAnimation))};
_.N.resetFadingAnimation=function(F){F.target===this.hostElement&&(this.isAnimatingFade=!1)};
_.N.hasPlaylistDataChanged=function(){!this.hasPlaylistData&&this.expanded&&(this.expanded=!1);this.updateDimensionsAndResize()};
_.N.onPlayerVeChange=function(){this.playerVe&&this.logMiniplayer()};
_.N.premiumBrandingChanged=function(){if(this.premiumBranding){this.readyToResume=this.isForReadyToResume=!0;var F=_.JR(this.screenLayer);this.readyToResumeCloseVe&&F&&_.rW(F,[this.readyToResumeCloseVe]);this.set("premiumBadges",[{metadataBadgeRenderer:{icon:{iconType:"PREMIUM_STANDALONE_CAIRO"}}}])}};
_.N.readyToResumeVeChanged=function(){if(this.readyToResumeVe){var F=_.JR(0),W=_.Pf(0);F&&W&&(_.y7(F,W,this.readyToResumeVe),_.rW(F,[this.readyToResumeVe]))}};
_.N.onIsDisabledChanged=function(){if(this.isDisabled&&this.player){var F=this.player.getPlayerState();(this.disabledInitialStateIsPlaying=F===-1||F===1||F===3)&&this.player.pauseVideo()}};
_.N.activate=function(F,W){W=W===void 0?!1:W;var E=this,h;return _.e(function(d){if(d.nextAddress==1)return E.setInitialActivatePositioning(W),E.enabled=!0,E.active=!0,E.expanded=!1,E.closed=!1,E.expandedClosed=!1,E.watchWhileHidden||(E.isAnimatingFade=!0),_.WZ().resolve(_.yH).setPlaylistComponent(E.JSC$17709_playlistPanel),F.appendTo(E.playerContainer),_.Q(d,F.getPlayerPromise(),2);h=d.yieldResult;h.setSizeStyle(!1,!0);E.ytPlayerListenerBehavior.listenToPlayerEvents(h,E.PLAYER_EVENTS);E.player=h;
E.watchWhile&&_.c("kevlar_watch_while_minimum_size")&&E.setMiniplayerSize(192);E.setAspectRatio(E.player.getVideoAspectRatio());E.onIsDisabledChanged();_.gG(d)})};
_.N.setInitialActivatePositioning=function(F){if(!this.userSetPosition&&_.c("kevlar_watch_while_v2")){this.verticalAttachment=F&&!_.c("kevlar_watch_while_bottom_align")?"north":"south";this.horizontalAttachment=_.b0("HTML_DIR")==="rtl"?"west":"east";var W;(W=this.JSC$17709_resizers)==null||W.update(this.horizontalAttachment,this.verticalAttachment)}};
_.N.deactivate=function(F,W){var E=this;return _.e(function(h){if(!E.active)return h.return();F||(E.expanded?E.expandedClosed=!0:E.closed=!0);E.active=!1;E.isForReadyToResume=!1;W&&_.c("kevlar_watch_while_counterfactual")||(E.isAnimatingFade=!0);E.player&&E.ytPlayerListenerBehavior.unlistenFromPlayerEvents(E.player,E.PLAYER_EVENTS);E.player=null;_.gG(h)})};
_.N.onMetadataTap=function(F){this.expandVe&&(F===void 0||F)&&(F=_.JR(this.screenLayer))&&_.oj(F,this.expandVe);_.kX(_.WZ().resolve(_.GF))};
_.N.onDisabledTap=function(F){F.target===_.Z(this.hostElement).querySelector("#blocking-container")&&(this.disabledInitialStateIsPlaying&&this.player.playVideo(),this.onMetadataTap())};
_.N.onPlaylistExpandTap=function(F){if(this.hasPlaylistData){F=_.TB(F)||[];F=_.U(F);for(var W=F.next();!W.done;W=F.next()){W=W.value;if(W===this.hostElement)break;if(W.classList&&W.classList.contains("miniplayer-title"))return}this.playlistExpand()}};
_.N.playlistExpand=function(){this.hostElement.addEventListener("transitionend",_.UO(this,this.animatedResizePlaylist));this.isAnimatingExpand=!0;this.ytRendererBehavior.markDirty();this.expanded=!this.expanded;this.updateDimensionsAndResize()};
_.N.animatedResizePlaylist=function(F){F.target===this.hostElement&&(this.isAnimatingExpand=!1,this.hostElement.removeEventListener("transitionend",_.UO(this,this.animatedResizePlaylist)))};
_.N.getExpandIcon=function(F){return F?"miniplayer:keyboard-arrow-down":"miniplayer:keyboard-arrow-up"};
_.N.onPlayerVideoDataChange=function(){var F,W=(F=this.player)==null?void 0:F.getVideoAspectRatio();W&&W!==this.aspectRatio&&this.setAspectRatio(W)};
_.N.setAspectRatio=function(F){if(this.active){this.aspectRatio=F;this.updateDimensionsAndResize();var W;(W=this.JSC$17709_resizers)==null||W.setAspectRatio(F)}};
_.N.updateDimensionsAndResize=function(){var F=Math.min(this.currentMiniplayerSize,this.maxMiniplayerSize),W=this.expanded?CUK:this.aspectRatio,E=new _.Rl(192,this.showInfoBar?116:192);F=n3K(new _.Rl(W,1),new _.Rl(F,this.showInfoBar?F-76:F));E.width<=F.width&&E.height<=F.height||(lGq(F,E),F.width=Math.min(F.width,this.maxMiniplayerSize),F.height=Math.min(F.height,this.maxMiniplayerSize),this.setMiniplayerSize(this.showInfoBar&&W<=1?Math.max(F.width,F.height)+76:Math.max(F.width,F.height)));this.dimensions=
new _.Rl(F.width,this.clamp(F.height+this.getNonPlayerHeight()));this.resize()};
_.N.resize=function(){this.hostElement.style.width=this.dimensions.width+"px";this.hostElement.style.height=this.dimensions.height+"px";var F=this.getPlayerSize(this.dimensions);this.playerContainer.style.height=F.height+"px";var W;(W=this.player)==null||W.setInternalSize(F.width,F.height)};
_.N.getPlayerSize=function(F){var W=Math.max(0,F.height-this.getNonPlayerHeight());return new _.Rl(F.width,W)};
_.N.getNonPlayerHeight=function(){var F=0;this.showInfoBar&&(F+=76);this.expanded&&(F+=285);return F};
_.N.onDisabledCloseMiniplayer=function(){this.logClosingClick();_.WZ().resolve(_.GF).close()};
_.N.onPlayerCloseMiniplayer=function(){this.logClosingClick()};
_.N.logClosingClick=function(){this.closeVe&&_.oj(_.JR(this.screenLayer),this.closeVe);this.isForReadyToResume&&this.readyToResumeCloseVe&&_.oj(_.JR(this.screenLayer),this.readyToResumeCloseVe)};
_.N.onPlayerExpandMiniplayer=function(){if(this.expandVe){var F=_.JR(this.screenLayer);F&&_.oj(F,this.expandVe)}};
_.N.onPlayerStateChange=function(){if(this.player){this.playerState=this.player.getPlayerState();var F=this.playerState===1;this.continueWatching&&F&&(this.continueWatching=!1);this.premiumBadges.length&&F&&(this.set("premiumBadges",[]),this.readyToResume=this.premiumBranding=!1,this.updateDimensionsAndResize())}};
_.N.getScreenLayer=function(){return this.screenLayer};
_.N.logMiniplayer=function(){var F=_.JR(this.screenLayer),W=_.Pf(this.screenLayer);F&&W&&this.playerVe&&(_.y7(F,W,this.playerVe),this.expandVe&&this.closeVe&&this.readyToResumeCloseVe&&(_.j7(F,this.playerVe,[this.expandVe,this.closeVe,this.readyToResumeCloseVe]),_.rW(F,[this.expandVe,this.closeVe])),this.repositionVe&&this.resizeVe&&_.j7(F,this.playerVe,[this.repositionVe,this.resizeVe]))};
_.N.computePlaylistData=function(F,W){return W};
_.N.computeHasPlaylistData=function(){return!!this.playlistData&&!!this.playlistData.contents};
_.N.computeExpandButtonHidden=function(F,W,E){return!F||!W||E};
_.N.computePlaylistIndexHidden=function(F,W){return!F||W};
_.N.computePlaylistPanelHidden=function(F,W){return!W&&!F};
_.N.computeExpandButtonLabel=function(F){return F?_.CY("MINIPLAYER_COLLAPSE_LABEL"):_.CY("MINIPLAYER_EXPAND_LABEL")};
_.N.computeDisabledStateCloseButtonLabel=function(){return _.CY("MINIPLAYER_CLOSE",void 0,"Close")};
_.N.onWindowResized=function(F){F&&(F=this.windowDimensions=F,this.maxMiniplayerSize=Math.min(Math.min(F.width,F.height)-32,720),this.updateDimensionsAndResize())};
_.N.setUpResizing=function(){var F=this;this.JSC$17709_resizers||(this.JSC$17709_resizers=new mW(this.JSC$17709_resizeContainer,{onStartResize:function(){F.handleResizeStart()},
onResize:function(W){F.handleResize(W)}}),this.JSC$17709_resizers.setSize(this.currentMiniplayerSize),this.JSC$17709_resizers.update(this.horizontalAttachment,this.verticalAttachment))};
_.N.handleResizeStart=function(){var F=_.JR(this.screenLayer);this.userSetSize||(this.userSetSize=!0,F&&this.resizeVe&&_.rW(F,[this.resizeVe]));F&&this.resizeVe&&_.oj(F,this.resizeVe)};
_.N.handleResize=function(F){this.setMiniplayerSize(F);this.updateDimensionsAndResize()};
_.N.setUpDragging=function(){var F=this;this.JSC$17709_dragger||(this.JSC$17709_dragger=new p6(this.draggableContainer,{onStartDrag:function(W){!F.isSafeToDrag(W)||F.isAnimatingSnap?W.preventDefault():F.handleDragStart()},
onDrag:function(W){F.transform=W;F.setTransform(F.transform)},
onEndDrag:function(){F.handleDragEnd()}},!0))};
_.N.handleDragStart=function(){this.isDragging=!0;var F=_.JR(this.screenLayer);this.userHasDragged||(this.userHasDragged=!0,F&&this.repositionVe&&_.rW(F,[this.repositionVe]));F&&this.repositionVe&&_.oj(F,this.repositionVe)};
_.N.handleDragEnd=function(){this.isDragging=!1;var F=this.getCurrentGlobalPosition().y+this.dimensions.height/2;this.verticalAttachment==="south"&&F>this.windowDimensions.height&&_.WZ().resolve(_.GF).close();this.animateSnapToCorner()};
_.N.animateSnapToCorner=function(){var F=this.getGlobalPositionFromAttachments(this.horizontalAttachment,this.verticalAttachment),W=this.getNearestAttachments();W=this.getGlobalPositionFromAttachments(W.horizontalAttachment,W.verticalAttachment);F=new _.sp(W.x-F.x,W.y-F.y);this.isAnimatingSnap=!0;this.setTransform(F);this.hostElement.addEventListener("transitionend",_.UO(this,this.endSnapAnimation))};
_.N.endSnapAnimation=function(F){F.target===this.hostElement&&this.isAnimatingSnap&&(this.hostElement.removeEventListener("transitionend",_.UO(this,this.endSnapAnimation)),this.endDrag())};
_.N.endDrag=function(){this.isAnimatingSnap=!1;this.updateAttachments();this.setTransform(null)};
_.N.setTransform=function(F){this.hostElement.style.transform=F?"translate("+F.x+"px, "+F.y+"px)":""};
_.N.getGlobalPositionFromAttachments=function(F,W){return new _.sp(F==="west"?16:this.windowDimensions.width-this.dimensions.width-16,W==="north"?16:this.windowDimensions.height-this.dimensions.height-16)};
_.N.updateAttachments=function(){var F=this.getNearestAttachments();if(this.horizontalAttachment!==F.horizontalAttachment||this.verticalAttachment!==F.verticalAttachment)this.userSetPosition=!0;this.horizontalAttachment=F.horizontalAttachment;this.verticalAttachment=F.verticalAttachment;var W;(W=this.JSC$17709_resizers)==null||W.update(this.horizontalAttachment,this.verticalAttachment)};
_.N.getNearestAttachments=function(){var F=this.getCurrentGlobalPosition();return{horizontalAttachment:F.x+this.dimensions.width/2<this.windowDimensions.width/2?"west":"east",verticalAttachment:F.y+this.dimensions.height/2<this.windowDimensions.height/2?"north":"south"}};
_.N.getCurrentGlobalPosition=function(){var F=this.getGlobalPositionFromAttachments(this.horizontalAttachment,this.verticalAttachment);return Un6(F,this.transform)};
_.N.isSafeToDrag=function(F){var W=this.playerContainer.getBoundingClientRect();return Math.abs(F.clientY-(W.y+W.height))>15};
_.N.setMiniplayerSize=function(F){this.currentMiniplayerSize=this.clamp(F);var W;(W=this.JSC$17709_resizers)==null||W.setSize(this.currentMiniplayerSize)};
_.N.clamp=function(F){return _.jX(192,F,720)};
_.N.registerViewTransitionTasks=function(){var F=this,W=_.WZ().resolve(_.Fd(_.xX));if(W){var E={beforeTransition:function(){F.hostElement&&(F.hostElement.style.viewTransitionName="miniplayer-page-transition")},
afterTransition:function(){F.hostElement&&(F.hostElement.style.viewTransitionName="")}};
Fz(W,"slide",E);Fz(W,"zoom",E)}};
_.Sn.Object.defineProperties(K6.prototype,{showInfoBar:{configurable:!0,enumerable:!0,get:function(){return this.watchWhile?!_.c("kevlar_watch_while_modern"):!0}},
showOverlayPremiumBadges:{configurable:!0,enumerable:!0,get:function(){return!this.showInfoBar&&!!this.premiumBadges.length}},
miniplayerSubtitle:{configurable:!0,enumerable:!0,get:function(){if(this.continueWatching)return{simpleText:_.CY("CONTINUE_WATCHING",void 0,"Continue watching")};var F;if((F=this.externalPlaylistData)==null?0:F.contents)return this.externalPlaylistData.titleText;var W;return(W=this.data)==null?void 0:W.miniplayerSubtitle}},
miniplayerTitle:{configurable:!0,enumerable:!0,get:function(){var F;if((F=this.externalPlaylistData)==null?0:F.contents){var W;return(W=_.UXG(this.externalPlaylistData))==null?void 0:W.title}var E;return(E=this.data)==null?void 0:E.miniplayerTitle}},
playlistIndexMessage:{configurable:!0,enumerable:!0,get:function(){var F,W,E,h;return((F=this.externalPlaylistData)==null?void 0:F.currentIndex)!==void 0&&((W=this.externalPlaylistData)==null?0:W.totalVideos)&&!((E=this.data)==null?0:(h=E.playlistData)==null?0:h.isCourse)?this.externalPlaylistData.currentIndex+1+" / "+this.externalPlaylistData.totalVideos:null}},
showErrorScreen:{configurable:!0,enumerable:!0,get:function(){return!!this.playabilityStatus&&!_.Qww(this.playabilityStatus)}},
watchWhileHidden:{configurable:!0,enumerable:!0,get:function(){return this.watchWhile&&_.c("kevlar_watch_while_counterfactual")}}});
K6.prototype.onIsDisabledChanged=K6.prototype.onIsDisabledChanged;K6.prototype.readyToResumeVeChanged=K6.prototype.readyToResumeVeChanged;K6.prototype.premiumBrandingChanged=K6.prototype.premiumBrandingChanged;K6.prototype.onPlayerVeChange=K6.prototype.onPlayerVeChange;K6.prototype.hasPlaylistDataChanged=K6.prototype.hasPlaylistDataChanged;_.T([_.J(_.om.YtPlayerListenerBehavior),_.Y("design:type",_.G$)],K6.prototype,"ytPlayerListenerBehavior",void 0);
_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],K6.prototype,"ytActionHandlerBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],K6.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],K6.prototype,"ytComponentBehavior",void 0);_.T([_.J(_.am),_.Y("design:type",Object)],K6.prototype,"ytdReduxBehavior",void 0);_.T([_.gQ("#draggable"),_.Y("design:type",HTMLDivElement)],K6.prototype,"draggableContainer",void 0);
_.T([_.gQ("#resize-container"),_.Y("design:type",HTMLDivElement)],K6.prototype,"JSC$17709_resizeContainer",void 0);_.T([_.gQ("#video-container"),_.Y("design:type",HTMLDivElement)],K6.prototype,"videoContainer",void 0);_.T([_.gQ("#player-container"),_.Y("design:type",HTMLDivElement)],K6.prototype,"playerContainer",void 0);_.T([_.gQ("#playlist"),_.Y("design:type",HTMLDivElement)],K6.prototype,"JSC$17709_playlistPanel",void 0);_.T([_.O(),_.Y("design:type",Object)],K6.prototype,"data",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],K6.prototype,"active",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],K6.prototype,"hasNoData",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],K6.prototype,"enabled",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],K6.prototype,"expanded",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],K6.prototype,"readyToResume",void 0);
_.T([_.O(),_.Y("design:type",Object)],K6.prototype,"isDisabled",void 0);_.T([_.O(),_.Y("design:type",Object)],K6.prototype,"externalPlaylistData",void 0);_.T([_.O(),_.Y("design:type",Array)],K6.prototype,"premiumBadges",void 0);_.T([_.O(),_.Y("design:type",Object)],K6.prototype,"toastData",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],K6.prototype,"watchWhile",void 0);_.T([_.O(),_.Y("design:type",Boolean)],K6.prototype,"premiumBranding",void 0);
_.T([_.O(),_.Y("design:type",Object)],K6.prototype,"playerState",void 0);_.T([_.O(),_.Y("design:type",Boolean)],K6.prototype,"continueWatching",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",String)],K6.prototype,"verticalAttachment",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",String)],K6.prototype,"horizontalAttachment",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],K6.prototype,"isAnimatingFade",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],K6.prototype,"isAnimatingSnap",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],K6.prototype,"isAnimatingExpand",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],K6.prototype,"isDragging",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],K6.prototype,"playerHidden",void 0);
_.T([_.O({computed:"computePlaylistData(data.playlistData, externalPlaylistData)"}),_.Y("design:type",Object)],K6.prototype,"playlistData",void 0);_.T([_.O({reflectToAttribute:!0,computed:"computeHasPlaylistData(playlistData)"}),_.Y("design:type",Object)],K6.prototype,"hasPlaylistData",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],K6.prototype,"closed",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],K6.prototype,"expandedClosed",void 0);
_.T([_.O({selector:_.DCe}),_.Y("design:type",Boolean)],K6.prototype,"isSingleOptionSurveyActive",void 0);_.T([_.O({reflectToAttribute:!0,selector:_.JE}),_.Y("design:type",Boolean)],K6.prototype,"isWatchPage",void 0);_.T([_.O({reflectToAttribute:!0}),_.a("watchWhile"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],K6.prototype,"showInfoBar",null);_.T([_.a("premiumBadges","showInfoBar"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],K6.prototype,"showOverlayPremiumBadges",null);
_.T([_.O(),_.Y("design:type",Object)],K6.prototype,"watchResponse",void 0);_.T([_.O(),_.Y("design:type",Object)],K6.prototype,"miniplayerRenderer",void 0);_.T([_.O(),_.Y("design:type",Object)],K6.prototype,"playabilityStatus",void 0);_.T([_.O(),_.Y("design:type",Object)],K6.prototype,"playerVe",void 0);_.T([_.O(),_.Y("design:type",Object)],K6.prototype,"expandVe",void 0);_.T([_.O(),_.Y("design:type",Object)],K6.prototype,"closeVe",void 0);
_.T([_.O(),_.Y("design:type",Object)],K6.prototype,"readyToResumeCloseVe",void 0);_.T([_.O(),_.Y("design:type",_.Hf)],K6.prototype,"readyToResumeVe",void 0);_.T([_.O(),_.Y("design:type",_.Hf)],K6.prototype,"resizeVe",void 0);_.T([_.O(),_.Y("design:type",_.Hf)],K6.prototype,"repositionVe",void 0);_.T([_.ea("hasPlaylistData"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],K6.prototype,"hasPlaylistDataChanged",null);
_.T([_.ea("playerVe"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],K6.prototype,"onPlayerVeChange",null);_.T([_.ea("premiumBranding"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],K6.prototype,"premiumBrandingChanged",null);_.T([_.ea("readyToResumeVe"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],K6.prototype,"readyToResumeVeChanged",null);
_.T([_.ea("isDisabled"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],K6.prototype,"onIsDisabledChanged",null);_.T([_.a("continueWatching","data.miniplayerSubtitle","externalPlaylistData"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],K6.prototype,"miniplayerSubtitle",null);_.T([_.a("data.miniplayerTitle","externalPlaylistData"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],K6.prototype,"miniplayerTitle",null);
_.T([_.a("externalPlaylistData","continueWatching"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],K6.prototype,"playlistIndexMessage",null);_.T([_.O({reflectToAttribute:!0}),_.a("playabilityStatus"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],K6.prototype,"showErrorScreen",null);_.T([_.O({reflectToAttribute:!0}),_.a("watchWhile"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],K6.prototype,"watchWhileHidden",null);
_.c("ytd_miniplayer_to_wiz")||_.r(K6,"ytd-miniplayer",function(){if(MV6===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-miniplayer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.main_desktop.player.ytd_miniplayer.ytd.miniplayer.view.transition.css.js,video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="blocking-container" hidden="[[!isDisabled]]" on-click="onDisabledTap" class="style-scope ytd-miniplayer">\n  <yt-icon-button aria-label$="[[computeDisabledStateCloseButtonLabel()]]" on-click="onDisabledCloseMiniplayer" class="style-scope ytd-miniplayer">\n    <yt-icon id="close-icon" icon="yt-icons:close" class="style-scope ytd-miniplayer"></yt-icon>\n  </yt-icon-button>\n</div>\n<div class="miniplayer style-scope ytd-miniplayer" role="dialog">\n  <div id="card" class="style-scope ytd-miniplayer">\n    <div id="draggable" class="style-scope ytd-miniplayer">\n      <div id="video-container" class="style-scope ytd-miniplayer">\n        <div id="player-container" class="style-scope ytd-miniplayer"></div>\n        <yt-playability-error-supported-renderers id="error-screen" compact="" data="[[playabilityStatus.errorScreen]]" hidden$="[[!showErrorScreen]]" reason="[[playabilityStatus.reason]]" status="[[playabilityStatus.status]]" class="style-scope ytd-miniplayer">\n        </yt-playability-error-supported-renderers>\n        <ytd-badge-supported-renderer class="premium-badges overlay style-scope ytd-miniplayer" badges="[[premiumBadges]]" hidden="[[!showOverlayPremiumBadges]]" overlay-premium="">\n        </ytd-badge-supported-renderer>\n        <yt-formatted-string id="card-owner-name" class="owner-name style-scope ytd-miniplayer" hidden="[[!showOverlayPremiumBadges]]" no-endpoints="" text="[[miniplayerSubtitle]]">\n        </yt-formatted-string>\n      </div>\n      <div id="info-bar" on-click="onPlaylistExpandTap" hidden="[[!showInfoBar]]" class="style-scope ytd-miniplayer">\n        <div class="metadata style-scope ytd-miniplayer">\n          <h1 aria-label$="[[getSimpleString(data.miniplayerTitle)]]" class="title meta style-scope ytd-miniplayer" hidden="[[!active]]" on-click="onMetadataTap" role="heading">\n            <yt-formatted-string class="miniplayer-title style-scope ytd-miniplayer" ellipsis-truncate="" text="[[miniplayerTitle]]">\n            </yt-formatted-string>\n          </h1>\n          <div class="channel style-scope ytd-miniplayer">\n            <ytd-badge-supported-renderer class="premium-badges style-scope ytd-miniplayer" badges="[[premiumBadges]]" hidden="[[!premiumBadges.length]]">\n            </ytd-badge-supported-renderer>\n            <yt-formatted-string id="owner-name" no-endpoints="" text="[[miniplayerSubtitle]]" class="style-scope ytd-miniplayer">\n            </yt-formatted-string>\n            <div class="index-message style-scope ytd-miniplayer" hidden="[[computePlaylistIndexHidden(playlistIndexMessage, readyToResume)]]">\n              <span class="text-divider style-scope ytd-miniplayer">\u2022</span>\n              <span class="style-scope ytd-miniplayer">[[playlistIndexMessage]]</span>\n            </div>\n          </div>\n        </div>\n        <div class="expander style-scope ytd-miniplayer" hidden="[[computeExpandButtonHidden(hasPlaylistData, active, isDisabled)]]">\n          <yt-icon-button label="[[computeExpandButtonLabel(expanded)]]" class="style-scope ytd-miniplayer">\n            <yt-icon icon="[[getExpandIcon(expanded)]]" class="style-scope ytd-miniplayer"></yt-icon>\n          </yt-icon-button>\n        </div>\n      </div>\n      <div class="dragging-cover style-scope ytd-miniplayer" hidden="[[!isDragging]]"></div>\n    </div>\n    <ytd-playlist-panel-renderer id="playlist" data="[[playlistData]]" hidden="[[computePlaylistPanelHidden(expanded, isAnimatingExpand)]]" hide-header-text="" within-miniplayer="" class="style-scope ytd-miniplayer">\n    </ytd-playlist-panel-renderer>\n    <div class="toast-container style-scope ytd-miniplayer">\n      <ytd-miniplayer-toast toast-data="[[toastData]]" class="style-scope ytd-miniplayer"></ytd-miniplayer-toast>\n    </div>\n  </div>\n  <div id="resize-container" aria-hidden="true" class="style-scope ytd-miniplayer">\n    \n    <div class="resizer style-scope ytd-miniplayer" alignment="north"><div class="corner style-scope ytd-miniplayer"></div></div>\n    <div class="resizer style-scope ytd-miniplayer" alignment="east"><div class="corner style-scope ytd-miniplayer"></div></div>\n    <div class="resizer style-scope ytd-miniplayer" alignment="south"><div class="corner style-scope ytd-miniplayer"></div></div>\n    <div class="resizer style-scope ytd-miniplayer" alignment="west"><div class="corner style-scope ytd-miniplayer"></div></div>\n  </div>\n</div>\n');
F.content.insertBefore(ePF().content.cloneNode(!0),F.content.firstChild);F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);MV6=F}F=MV6;return F},{mode:2});var vzK;var FN=function(){var F=_.n.apply(this,arguments)||this;F.useListItemStyles=_.c("web_list_item_style_for_menu_items");F.systemIcons=_.c("kevlar_system_icons");return F};
_.k(FN,_.n);_.N=FN.prototype;_.N.ready=function(){this.hostElement.addEventListener("tap",_.UO(this,this.onEndpointTapExtra))};
_.N.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.N.onFocus=function(){var F;(F=_.Z(this.hostElement).querySelector("tp-yt-paper-item"))==null||F.focus()};
_.N.onEndpointTapExtra=function(F){_.hF(this.hostElement,"iron-activate");var W=this.data.navigationEndpoint;W&&_.D(W,_.u9k)&&(F.stopPropagation(),_.Rj(this.hostElement,[W],this.hostElement))};
_.N.computeIcon=function(F){return F&&F.iconType?_.Vd(F.iconType):""};
_.N.computeHasSeparator=function(){return!(!this.data||!this.data.hasSeparator)};
_.N.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.N.forceUpdateStylesOnLegacyBrowsers=function(){_.c("kevlar_legacy_browsers")&&_.V9(this.hostElement)};
FN.prototype.forceUpdateStylesOnLegacyBrowsers=FN.prototype.forceUpdateStylesOnLegacyBrowsers;FN.prototype.onFocus=FN.prototype.onFocus;_.T([_.J(_.Gf),_.Y("design:type",Object)],FN.prototype,"ytdOpenPopupBehavior",void 0);_.T([_.J(_.iwX.YtConditionalRendererBehavior),_.Y("design:type",Object)],FN.prototype,"ytConditionalRendererBehavior",void 0);_.T([_.J(_.eB.YtEndpointBehavior),_.Y("design:type",Object)],FN.prototype,"ytEndpointBehavior",void 0);
_.T([_.O(),_.Y("design:type",Object)],FN.prototype,"data",void 0);_.T([_.O({computed:"computeIcon(data.icon)",value:""}),_.Y("design:type",String)],FN.prototype,"icon",void 0);_.T([_.O({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],FN.prototype,"useIcons",void 0);_.T([_.O({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],FN.prototype,"hasSeparator",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],FN.prototype,"useListItemStyles",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],FN.prototype,"systemIcons",void 0);_.T([_.R4("focus"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],FN.prototype,"onFocus",null);_.T([_.ea("useIcons","hasSeparator"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],FN.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.r(FN,"ytd-menu-navigation-item-renderer",function(){if(vzK===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-menu-navigation-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[!hidden]]" class="style-scope ytd-menu-navigation-item-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-menu-navigation-item-renderer" data="[[data.navigationEndpoint]]" href$="[[computeOptionalHref_(data.navigationEndpoint)]]" tabindex="-1">\n    <tp-yt-paper-item aria-label$="[[data.accessibility.accessibilityData.label]]" disabled="[[data.isDisabled]]" class="style-scope ytd-menu-navigation-item-renderer">\n      <yt-icon hidden="[[computeIconHidden(icon, useIcons)]]" icon="[[icon]]" class="style-scope ytd-menu-navigation-item-renderer"></yt-icon>\n      <yt-formatted-string text="[[data.text]]" class="style-scope ytd-menu-navigation-item-renderer"></yt-formatted-string>\n    </tp-yt-paper-item>\n  </a>\n</template>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);vzK=F}F=vzK;return F},{mode:1});var INg;var cA$=_.Gr(_.CY("DOWNLOAD",{},"Download")),De8=_.Gr(_.CY("DELETE_FROM_DOWNLOADS",{},"Delete from downloads")),xew=_.Gr(_.CY("RETRY",{},"Retry")),k$8=_.Gr(_.CY("PAUSE_DOWNLOADING",{},"Pause downloading")),AAg=_.Gr(_.CY("RESUME_DOWNLOAD",{},"Resume download")),Wl=function(){var F=_.n.apply(this,arguments)||this;F.primaryText=cA$;F.primaryIconType="OFFLINE_DOWNLOAD";F.hasSecondaryContent=!1;F.hasSeparator=!1;F.transferState="TRANSFER_STATE_UNKNOWN";F.isVideoDeletedByUser=!1;F.isHidden=!1;F.offlineabilityState=
"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED";return F};
_.k(Wl,_.n);_.N=Wl.prototype;_.N.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.N.onFocus=function(){this.primaryEntry.focus()};
_.N.onPrimaryClicked=function(){this.sendOfflineAction(this.primaryAction)};
_.N.onSecondaryClicked=function(){this.sendOfflineAction(this.secondaryAction)};
_.N.getRemoveAction=function(){return"ACTION_REMOVE"};
_.N.sendOfflineAction=function(F){var W=this.data.serviceEndpoint;if(W){var E=_.D(W,_.vS);E&&F&&(E.action=F);this.ytComponentBehavior.resolveCommand(W)}};
_.N.onTransferStateChange=function(){this.hasSecondaryContent=!1;this.secondaryAction=this.primaryAction=void 0;if(this.isVideoDeletedByUser)this.primaryText=cA$,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD";else switch(this.transferState){case "TRANSFER_STATE_UNKNOWN":this.primaryText=cA$;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":this.primaryText=xew;
this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RETRY";this.secondaryText=De8;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_PAUSED_BY_USER":this.primaryText=AAg;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RESUME";this.secondaryText=De8;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_TRANSFERRING":this.primaryText=
k$8;this.primaryIconType="OFFLINE_PAUSE";this.primaryAction="ACTION_PAUSE";this.secondaryText=De8;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_COMPLETE":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":this.primaryText=De8;this.primaryIconType="DELETE";this.primaryAction=this.getRemoveAction();break;default:this.primaryText=cA$,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD"}};
_.N.showHideButton=function(){this.isHidden=this.offlineabilityState!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
_.N.isSecondaryEntryHidden=function(F,W){return F?!0:!W};
_.N.computeHasSeparator=function(){var F;return!((F=this.data)==null||!F.hasSeparator)};
Wl.prototype.showHideButton=Wl.prototype.showHideButton;Wl.prototype.onTransferStateChange=Wl.prototype.onTransferStateChange;Wl.prototype.onFocus=Wl.prototype.onFocus;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Wl.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.am),_.Y("design:type",Object)],Wl.prototype,"ytdReduxBehavior",void 0);_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],Wl.prototype,"ytComponentBehavior",void 0);
_.T([_.O(),_.Y("design:type",Object)],Wl.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Object)],Wl.prototype,"primaryText",void 0);_.T([_.O(),_.Y("design:type",String)],Wl.prototype,"primaryIconType",void 0);_.T([_.O(),_.Y("design:type",String)],Wl.prototype,"primaryAction",void 0);_.T([_.O(),_.Y("design:type",Object)],Wl.prototype,"secondaryText",void 0);_.T([_.O(),_.Y("design:type",String)],Wl.prototype,"secondaryIconType",void 0);
_.T([_.O(),_.Y("design:type",String)],Wl.prototype,"secondaryAction",void 0);_.T([_.O(),_.Y("design:type",Object)],Wl.prototype,"hasSecondaryContent",void 0);_.T([_.O({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.Y("design:type",Object)],Wl.prototype,"hasSeparator",void 0);_.T([_.O({selector:_.ax,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.Y("design:type",String)],Wl.prototype,"transferState",void 0);
_.T([_.O({selector:_.jHr,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.Y("design:type",Object)],Wl.prototype,"isVideoDeletedByUser",void 0);_.T([_.O(),_.Y("design:type",Object)],Wl.prototype,"isHidden",void 0);_.T([_.O({selector:_.fIb,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.Y("design:type",Object)],Wl.prototype,"offlineabilityState",void 0);_.T([_.gQ("#primary-entry"),_.Y("design:type",Object)],Wl.prototype,"primaryEntry",void 0);
_.T([_.R4("focus"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Wl.prototype,"onFocus",null);_.T([_.Cz("transferState","isVideoDeletedByUser"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Wl.prototype,"onTransferStateChange",null);_.T([_.Cz("offlineabilityState"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Wl.prototype,"showHideButton",null);
_.r(Wl,"ytd-menu-service-item-download-renderer",function(){if(INg===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-menu-service-item-download-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<tp-yt-paper-item id="primary-entry" hidden="[[isHidden]]" on-tap="onPrimaryClicked" class="style-scope ytd-menu-service-item-download-renderer">\n  <yt-icon icon="[[primaryIconType]]" class="style-scope ytd-menu-service-item-download-renderer"></yt-icon>\n  <yt-formatted-string text="[[primaryText]]" class="style-scope ytd-menu-service-item-download-renderer"></yt-formatted-string>\n</tp-yt-paper-item>\n<tp-yt-paper-item id="secondary-entry" hidden="[[isSecondaryEntryHidden(isHidden, hasSecondaryContent)]]" on-tap="onSecondaryClicked" class="style-scope ytd-menu-service-item-download-renderer">\n  <yt-icon icon="[[secondaryIconType]]" class="style-scope ytd-menu-service-item-download-renderer"></yt-icon>\n  <yt-formatted-string text="[[secondaryText]]" class="style-scope ytd-menu-service-item-download-renderer"></yt-formatted-string>\n</tp-yt-paper-item>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);INg=F}F=INg;return F},{mode:1});var smK;var El=function(){var F=_.n.apply(this,arguments)||this;F.useIcons=!1;F.systemIcons=_.c("kevlar_system_icons");F.useListItemStyles=_.c("web_list_item_style_for_menu_items");return F};
_.k(El,_.n);_.N=El.prototype;_.N.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.N.onFocus=function(){var F;(F=_.Z(this.hostElement).querySelector("tp-yt-paper-item"))==null||F.focus()};
_.N.onTap=function(){_.Nc(this.hostElement,"yt-menu-service-item-selected-action",[this.data]);var F=this.data.serviceEndpoint,W=this.data.command;if(F){var E,h=(E=this.data)==null?void 0:E.trackingParams;E=!!_.D(F,_.dHM);h&&E&&_.uC().dispatch(_.dR({type:"SET_PARENT_CLICK_TRACKING_PARAMS",payload:{parentClickTrackingParams:h}}));this.ytComponentBehavior.resolveCommand(F)||_.WZ().resolve(_.EJ).resolveCommand(F,{form:{element:this.hostElement}})}W&&(this.ytComponentBehavior.resolveCommand(W)||_.Rj(this.hostElement,
[W],this.hostElement))};
_.N.computeIcon=function(F){return F&&F.iconType?_.Vd(F.iconType):""};
_.N.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.N.computeHasSeparator=function(){var F;return!((F=this.data)==null||!F.hasSeparator)};
_.N.forceUpdateStylesOnLegacyBrowsers=function(){_.c("kevlar_legacy_browsers")&&_.V9(this.hostElement)};
_.N.computeIsSelected=function(){var F;return!((F=this.data)==null||!F.isSelected)};
El.prototype.forceUpdateStylesOnLegacyBrowsers=El.prototype.forceUpdateStylesOnLegacyBrowsers;El.prototype.onTap=El.prototype.onTap;El.prototype.onFocus=El.prototype.onFocus;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],El.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Gf),_.Y("design:type",Object)],El.prototype,"ytdOpenPopupBehavior",void 0);_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],El.prototype,"ytComponentBehavior",void 0);
_.T([_.J(_.iwX.YtConditionalRendererBehavior),_.Y("design:type",Object)],El.prototype,"ytConditionalRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],El.prototype,"data",void 0);_.T([_.O({computed:"computeIcon(data.icon)",value:""}),_.Y("design:type",String)],El.prototype,"icon",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],El.prototype,"useIcons",void 0);
_.T([_.O({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],El.prototype,"hasSeparator",void 0);_.T([_.O({computed:"computeIsSelected(data.isSelected)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],El.prototype,"isSelected",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],El.prototype,"systemIcons",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],El.prototype,"useListItemStyles",void 0);
_.T([_.R4("focus"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],El.prototype,"onFocus",null);_.T([_.R4("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],El.prototype,"onTap",null);_.T([_.ea("useIcons","hasSeparator"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],El.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.r(El,"ytd-menu-service-item-renderer",function(){if(smK===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-menu-service-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-item disabled="[[data.isDisabled]]" class="style-scope ytd-menu-service-item-renderer">\n  <yt-icon hidden="[[computeIconHidden(icon, useIcons)]]" icon="[[icon]]" class="style-scope ytd-menu-service-item-renderer"></yt-icon>\n  <yt-formatted-string text="[[data.text]]" class="style-scope ytd-menu-service-item-renderer"></yt-formatted-string>\n  <ytd-badge-supported-renderer badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-menu-service-item-renderer">\n  </ytd-badge-supported-renderer>\n</tp-yt-paper-item>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);smK=F}F=smK;return F},{mode:2});var LCq;var h9=function(){return _.n.apply(this,arguments)||this};
_.k(h9,_.n);_.N=h9.prototype;_.N.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.N.onDataChanged=function(){var F=this;_.wT(this,function(){F.postbox.openDialog();F.focus();_.hF(F.hostElement,"yt-refit")})};
_.N.focus=function(){this.postbox.focus()};
_.N.closePopup=function(){_.dW(this.hostElement,"yt-close-popup-action")};
_.N.onYtCommentboxDismiss=function(){this.closePopup()};
h9.prototype.onYtCommentboxDismiss=h9.prototype.onYtCommentboxDismiss;h9.prototype.onDataChanged=h9.prototype.onDataChanged;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],h9.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],h9.prototype,"data",void 0);_.T([_.O({value:function(){return _.CY("SBOX_INAPPROPRIATE_CANCEL")}}),
_.Y("design:type",String)],h9.prototype,"closeButtonAriaLabel",void 0);_.T([_.gQ("#postbox"),_.Y("design:type",Object)],h9.prototype,"postbox",void 0);_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],h9.prototype,"onDataChanged",null);_.T([_.R4("yt-commentbox-dismiss"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],h9.prototype,"onYtCommentboxDismiss",null);
h9=_.T([_.y({disableElementRegistration:!0,is:"ytd-backstage-post-dialog-popup-renderer"})],h9);
_.r(h9,"ytd-backstage-post-dialog-popup-renderer",function(){if(LCq!==void 0)return LCq;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-post-dialog-popup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title-bar" class="style-scope ytd-backstage-post-dialog-popup-renderer">\n  <div id="title" class="style-scope ytd-backstage-post-dialog-popup-renderer">\n    [[getSimpleString(data.dialogRenderer.backstagePostDialogRenderer.title)]]\n  </div>\n  <yt-icon-button id="close-panel-icon" aria-label$="[[closeButtonAriaLabel]]" on-tap="closePopup" class="style-scope ytd-backstage-post-dialog-popup-renderer">\n    <yt-icon class="remove-option style-scope ytd-backstage-post-dialog-popup-renderer" icon="yt-icons:close"></yt-icon>\n  </yt-icon-button>\n</div>\n<ytd-backstage-post-dialog-renderer id="postbox" data="[[data.dialogRenderer.backstagePostDialogRenderer]]" in-popup-container="" class="style-scope ytd-backstage-post-dialog-popup-renderer">\n  <div slot="repost-preview" hidden="[[!data.dialogRenderer.backstagePostDialogRenderer.backstageAttachment.postRenderer]]" class="style-scope ytd-backstage-post-dialog-popup-renderer">\n    <ytd-post-renderer data="[[data.dialogRenderer.backstagePostDialogRenderer.backstageAttachment.postRenderer]]" class="style-scope ytd-backstage-post-dialog-popup-renderer">\n    </ytd-post-renderer>\n  </div>\n</ytd-backstage-post-dialog-renderer>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return LCq=F},{mode:1});var q9u;var dB=function(){return _.n.apply(this,arguments)||this};
_.k(dB,_.n);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],dB.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],dB.prototype,"data",void 0);dB=_.T([_.y({disableElementRegistration:!0,is:"ytd-sender-id-section-renderer"})],dB);
_.r(dB,"ytd-sender-id-section-renderer",function(){if(q9u!==void 0)return q9u;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sender-id-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="text" class="style-scope ytd-sender-id-section-renderer">[[getSimpleString(data.text)]]</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);
return q9u=F},{mode:1});var $e$;var ZOu;var XNP;var Nt=function(){return _.n.apply(this,arguments)||this};
_.k(Nt,_.n);Nt.prototype.closePopup=function(){_.dW(this.hostElement,"yt-close-popup-action")};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Nt.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],Nt.prototype,"data",void 0);Nt=_.T([_.$3({is:"yt-community-post-section-renderer",disableElementRegistration:!0})],Nt);
_.r(Nt,"yt-community-post-section-renderer",function(){if(XNP===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-community-post-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_community_post_section_renderer.yt.community.post.section.renderer.css.js--\x3e<div id="title" class="style-scope yt-community-post-section-renderer">[[getSimpleString(data.title)]]</div>\n<div class="style-scope yt-community-post-section-renderer">\n  <yt-button-renderer id="post-button" data="[[data.postButton.buttonRenderer]]" on-tap="closePopup" class="style-scope yt-community-post-section-renderer">\n  </yt-button-renderer>\n</div>\n<div id="subtitle" class="style-scope yt-community-post-section-renderer">[[getSimpleString(data.subtitle)]]</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;ZOu===void 0&&(ZOu=document.createElement("template"));var h=ZOu;E.call(W,h.content.cloneNode(!0),F.content.firstChild);XNP=F}F=XNP;return F},{mode:2});var HOw;var PUP;var JAq;var aNT;var fNK;var OON;var VW=function(){return _.n.apply(this,arguments)||this};
_.k(VW,_.n);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],VW.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],VW.prototype,"data",void 0);VW=_.T([_.$3({is:"yt-share-start-time-with-context-renderer",disableElementRegistration:!0})],VW);
_.r(VW,"yt-share-start-time-with-context-renderer",function(){if(OON===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-share-start-time-with-context-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_share_start_time_with_context_renderer.yt.share.start.time.with.context.renderer.css.js--\x3e<div id="start-time-title" class="style-scope yt-share-start-time-with-context-renderer"><yt-formatted-string aria-label$="[[getSimpleString(data.title)]]" text="[[data.title]]" class="style-scope yt-share-start-time-with-context-renderer"></yt-formatted-string></div>');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;fNK===void 0&&(fNK=document.createElement("template"));var h=fNK;E.call(W,h.content.cloneNode(!0),F.content.firstChild);OON=F}F=OON;return F},{mode:2});var Ul=function(){return _.n.apply(this,arguments)||this};
_.k(Ul,_.n);Ul.prototype.configureRendererStamper=function(){return{"data.subtitle":{id:"subtitle",mapping:{shareStartTimeWithContextRenderer:"yt-share-start-time-with-context-renderer"}}}};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Ul.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],Ul.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],Ul.prototype,"data",void 0);Ul=_.T([_.$3({is:"yt-share-panel-title-v15-renderer",disableElementRegistration:!0})],Ul);
_.r(Ul,"yt-share-panel-title-v15-renderer",function(){if(aNT===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-share-panel-title-v15-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_share_panel_title_v15_renderer.yt.share.panel.title.v15.renderer.css.js--\x3e<h2 id="title" class="style-scope yt-share-panel-title-v15-renderer">[[getSimpleString(data.title)]]</h2>\n<div id="subtitle" hidden="[[!data.subtitle]]" class="style-scope yt-share-panel-title-v15-renderer"></div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;JAq===void 0&&(JAq=document.createElement("template"));var h=JAq;E.call(W,h.content.cloneNode(!0),F.content.firstChild);aNT=F}F=aNT;return F},{mode:2});var Rp=function(){return _.n.apply(this,arguments)||this};
_.k(Rp,_.n);Rp.prototype.configureRendererStamper=function(){return{"data.title":{id:"title",mapping:{sharePanelTitleV15Renderer:"yt-share-panel-title-v15-renderer"}},"data.communityPost":{id:"community-post",mapping:{communityPostSectionRenderer:"yt-community-post-section-renderer"}}}};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Rp.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],Rp.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],Rp.prototype,"data",void 0);Rp=_.T([_.$3({is:"yt-share-panel-header-renderer",disableElementRegistration:!0})],Rp);
_.r(Rp,"yt-share-panel-header-renderer",function(){if(PUP===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-share-panel-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_share_panel_header_renderer.yt.share.panel.header.renderer.css.js--\x3e<div id="community-post" class="style-scope yt-share-panel-header-renderer"></div>\n<div id="title-bar" class="style-scope yt-share-panel-header-renderer">\n  <div id="title" class="style-scope yt-share-panel-header-renderer"></div>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;HOw===void 0&&(HOw=document.createElement("template"));var h=HOw;E.call(W,h.content.cloneNode(!0),F.content.firstChild);PUP=F}F=PUP;return F},{mode:2});var bOO;var lNK;var eA=function(){var F=_.n.apply(this,arguments)||this;F.actionMap={"yt-open-popup-action":"onOpen"};return F};
_.k(eA,_.n);_.N=eA.prototype;_.N.attached=function(){this.onOpen()};
_.N.updateTimeSecs=function(F){this.currentTimeSecs=F};
_.N.computeTimeString=function(F){F=F.toString();var W=Math.floor(Number(F)/3600),E=Math.floor(Number(F)%3600%60);return(W>0?W+":":"")+_.RY(Math.floor(Number(F)%3600/60),W>0?2:1)+":"+_.RY(E,2)};
_.N.computeTimeStringA11y=function(F){F=_.r7e({seconds:F});var W=F.hours===void 0?0:F.hours,E=F.minutes===void 0?0:F.minutes,h=F.seconds===void 0?0:F.seconds;F=[];if(W>0){var d=OMx().format({hours:W});if(!"be bg es et hu it ka lv pl pt-PT sl sq".split(" ").includes(_.nV)||W>9999)d=d.replace(W.toString(),_.TZo(W)),_.nV==="km"&&(d=d.replace(".",","));F.push(d)}E>0&&F.push(OMx().format({minutes:E}));h>0&&F.push(OMx().format({seconds:h}));W="be gu ja kk km ko mn ru tr uz zh-HK zh-TW".split(" ");E=_.nV==
"am"?"{0}\u1363 ":_.nV=="fa"?"{0}\u060c\u200f ":_.nV=="my"?"{0} - ":_.nV=="ne"?"{0},":_.nV=="th"?"{0} ":_.nV=="ur"?"{0}\u060c ":_.nV=="ar"||_.nV=="ar-XB"?"{0} \u0648":_.nV=="ja"||_.nV=="zh-CN"||_.nV=="zh-HK"||_.nV=="zh-TW"?"{0}\u3001":"{0}, ";h=_.nV=="am"?"\u1363 ":_.nV=="fa"?"\u060c\u200f ":_.nV=="my"?" - ":_.nV=="th"?" ":_.nV=="ur"?"\u060c ":_.nV=="ar"||_.nV=="ar-XB"?" \u0648":_.nV=="ja"||_.nV=="zh-CN"||_.nV=="zh-HK"||_.nV=="zh-TW"?"\u3001":", ";d=_.nV=="am"?" \u12a5\u1293 {0}":_.nV=="as"?" \u0986\u09f0\u09c1 {0}":
_.nV=="az"?" v\u0259 {0}":_.nV=="bn"?" \u098f\u09ac\u0982 {0}":_.nV=="cs"?" a\u00a0{0}":_.nV=="de"?" und {0}":_.nV=="el"?" \u03ba\u03b1\u03b9 {0}":_.nV=="eu"?" eta {0}":_.nV=="fa"?"\u060c \u0648 {0}":_.nV=="fil"?", at {0}":_.nV=="gu"?" \u0a85\u0aa8\u0ac7 {0}":_.nV=="hi"?", \u0914\u0930 {0}":_.nV=="hu"?" \u00e9s {0}":_.nV=="hy"?" \u0587 {0}":_.nV=="id"?", dan {0}":_.nV=="iw"?" \u05d5-{0}":_.nV=="ja"?"\u3001{0}":_.nV=="ka"?" \u10d3\u10d0 {0}":_.nV=="km"?" \u1793\u17b7\u1784 {0}":_.nV=="kn"?", \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {0}":
_.nV=="ko"?" \ubc0f {0}":_.nV=="ky"?" \u0436\u0430\u043d\u0430 {0}":_.nV=="lt"?" ir {0}":_.nV=="lv"?" un {0}":_.nV=="ml"?", {0} \u0d0e\u0d28\u0d4d\u0d28\u0d3f\u0d35":_.nV=="mr"?" \u0906\u0923\u093f {0}":_.nV=="ms"?" dan {0}":_.nV=="my"?"\u1014\u103e\u1004\u1037\u103a {0}":_.nV=="ne"?" \u0930 {0}":_.nV=="or"?", \u0b13 {0}":_.nV=="pa"?" \u0a05\u0a24\u0a47 {0}":_.nV=="ro"?" \u0219i {0}":_.nV=="si"?", \u0dc3\u0dc4 {0}":_.nV=="sk"?" a {0}":_.nV=="sl"?" in {0}":_.nV=="sq"?" dhe {0}":_.nV=="sv"?" och {0}":
_.nV=="sw"?" na {0}":_.nV=="ta"?" \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {0}":_.nV=="te"?" \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {0}":_.nV=="th"?" \u0e41\u0e25\u0e30{0}":_.nV=="tr"?" ve {0}":_.nV=="ur"?"\u060c \u0627\u0648\u0631 {0}":_.nV=="uz"?" va {0}":_.nV=="vi"?" v\u00e0 {0}":_.nV=="zh-HK"?"\u53ca{0}":_.nV=="zu"?", ne-{0}":_.nV=="af"||_.nV=="nl"?" en {0}":_.nV=="ar"||_.nV=="ar-XB"?" \u0648{0}":_.nV=="be"||_.nV=="uk"?" \u0456 {0}":_.nV=="en-GB"||_.nV=="en-IN"?" and {0}":_.nV=="en"||_.nV=="en-XA"?
", and {0}":_.nV=="et"||_.nV=="fi"?" ja {0}":_.nV=="fr"||_.nV=="fr-CA"?" et {0}":_.nV=="zh-CN"||_.nV=="zh-TW"?"\u548c{0}":_.nV=="da"||_.nV=="is"||_.nV=="no"?" og {0}":_.nV=="es"||_.nV=="es-419"||_.nV=="es-US"?" y {0}":_.nV=="kk"||_.nV=="lo"||_.nV=="mn"?", {0}":_.nV=="bg"||_.nV=="mk"||_.nV=="ru"||_.nV=="sr"?" \u0438 {0}":_.nV=="gl"||_.nV=="it"||_.nV=="pt-BR"||_.nV=="pt-PT"?" e {0}":" i {0}";var V=_.nV=="am"?"{0} \u12a5\u1293 {1}":_.nV=="as"?"{0} \u0986\u09f0\u09c1 {1}":_.nV=="az"?"{0} v\u0259 {1}":
_.nV=="bn"?"{0} \u098f\u09ac\u0982 {1}":_.nV=="de"?"{0} und {1}":_.nV=="el"?"{0} \u03ba\u03b1\u03b9 {1}":_.nV=="eu"?"{0} eta {1}":_.nV=="fa"?"{0} \u0648 {1}":_.nV=="fil"?"{0} at {1}":_.nV=="gu"?"{0} \u0a85\u0aa8\u0ac7 {1}":_.nV=="hi"?"{0} \u0914\u0930 {1}":_.nV=="hu"?"{0} \u00e9s {1}":_.nV=="hy"?"{0} \u0587 {1}":_.nV=="iw"?"{0} \u05d5-{1}":_.nV=="ja"?"{0}\u3001{1}":_.nV=="ka"?"{0} \u10d3\u10d0 {1}":_.nV=="kk"?"{0} \u0436\u04d9\u043d\u0435 {1}":_.nV=="km"?"{0} \u1793\u17b7\u1784\u200b{1}":_.nV=="kn"?
"{0} \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {1}":_.nV=="ko"?"{0} \ubc0f {1}":_.nV=="ky"?"{0} \u0436\u0430\u043d\u0430 {1}":_.nV=="lo"?"{0} \u0ec1\u0ea5\u0eb0 {1}":_.nV=="lt"?"{0} ir {1}":_.nV=="lv"?"{0} un {1}":_.nV=="ml"?"{0} \u0d15\u0d42\u0d1f\u0d3e\u0d24\u0d46 {1}":_.nV=="mn"?"{0}, {1}":_.nV=="mr"?"{0} \u0906\u0923\u093f {1}":_.nV=="my"?"{0}\u1014\u103e\u1004\u1037\u103a {1}":_.nV=="ne"?"{0} \u0930 {1}":_.nV=="or"?"{0} \u0b13 {1}":_.nV=="pa"?"{0} \u0a05\u0a24\u0a47 {1}":_.nV=="ro"?"{0} \u0219i {1}":_.nV==
"si"?"{0} \u0dc3\u0dc4 {1}":_.nV=="sl"?"{0} in {1}":_.nV=="sq"?"{0} dhe {1}":_.nV=="sv"?"{0} och {1}":_.nV=="sw"?"{0} na {1}":_.nV=="ta"?"{0} \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {1}":_.nV=="te"?"{0} \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {1}":_.nV=="th"?"{0}\u0e41\u0e25\u0e30{1}":_.nV=="tr"?"{0} ve {1}":_.nV=="ur"?"{0} \u0627\u0648\u0631 {1}":_.nV=="uz"?"{0} va {1}":_.nV=="vi"?"{0} v\u00e0 {1}":_.nV=="zh-HK"?"{0}\u53ca{1}":_.nV=="zu"?"{0} ne-{1}":_.nV=="af"||_.nV=="nl"?"{0} en {1}":_.nV=="ar"||_.nV==
"ar-XB"?"{0} \u0648{1}":_.nV=="be"||_.nV=="uk"?"{0} \u0456 {1}":_.nV=="cs"||_.nV=="sk"?"{0} a\u00a0{1}":_.nV=="et"||_.nV=="fi"?"{0} ja {1}":_.nV=="fr"||_.nV=="fr-CA"?"{0} et {1}":_.nV=="id"||_.nV=="ms"?"{0} dan {1}":_.nV=="zh-CN"||_.nV=="zh-TW"?"{0}\u548c{1}":_.nV=="da"||_.nV=="is"||_.nV=="no"?"{0} og {1}":_.nV=="es"||_.nV=="es-419"||_.nV=="es-US"?"{0} y {1}":_.nV=="bg"||_.nV=="mk"||_.nV=="ru"||_.nV=="sr"?"{0} \u0438 {1}":_.nV=="en"||_.nV=="en-GB"||_.nV=="en-IN"||_.nV=="en-XA"?"{0} and {1}":_.nV==
"gl"||_.nV=="it"||_.nV=="pt-BR"||_.nV=="pt-PT"?"{0} e {1}":"{0} i {1}";_.nV==="sq"?(d=d.replace("dhe","e"),V=V.replace("dhe","e")):_.nV==="th"?(h=h.replace("{0}"," {0}"),V=V.replace("{0}","{0} "),V=V.replace("{1}"," {1}")):_.nV==="ne"?h=",":_.nV==="zh-CN"?h="":W.includes(_.nV)&&(h=" ");return F.length<2?F.join(""):"am ar bg bs ca cs da es es-419 es-US eu fa fi fr-CA fr gl gu hi hr hu hy is it lt lv mk my no nl pl pt-BR pt-PT ro si sl sq sr-Latn sr sw th uk".split(" ").includes(_.nV)?F.length===2?
V.replace("{0}",F[0]).replace("{1}",F[1]):E.replace("{0}",F[0])+F.slice(1,-1).join(h)+d.replace("{0}",F[F.length-1]):F.join(h)};
_.N.getTimeParam=function(){return grO(this.timeString)};
_.N.onChangeStartAtCheckbox=function(){this.startAtTimestamp.disabled=!this.isStartAtChecked;this.setTimestamp();var F={checkboxData:{state:this.isStartAtChecked?"CHECKBOX_STATE_ON":"CHECKBOX_STATE_OFF"}},W;_.Bt(_.z4(),(W=this.data)==null?void 0:W.trackingParams,F,7)};
_.N.onChangeStartAtTimestamp=function(){for(var F=this.startAtTimestamp.value.split(":"),W=0,E=1,h=F.length-1;h>=0;h--)W+=Number(F[h])*E,E*=60;this.updateTimeSecs(W);this.setTimestamp()};
_.N.onOpen=function(){var F=this;this.updateTimeSecs(0);this.isStartAtChecked=!1;var W=_.WS();W?W.getPlayerPromise().then(function(E){E=E.getCurrentTime();F.updateTimeSecs(E)}):a0q()&&this.updateTimeSecs(a0q())};
_.N.setTimestamp=function(){var F=Math.floor(this.currentTimeSecs);_.dW(this.hostElement,"yt-share-panel-set-timestamp-action",[{isSet:this.isStartAtChecked&&!!F,timestamp:F||""}])};
_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],eA.prototype,"ytActionHandlerBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],eA.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],eA.prototype,"data",void 0);_.T([_.O({value:!1,notify:!0}),_.Y("design:type",Boolean)],eA.prototype,"isStartAtChecked",void 0);_.T([_.O(),_.Y("design:type",Number)],eA.prototype,"currentTimeSecs",void 0);
_.T([_.O({computed:"computeTimeString(currentTimeSecs)"}),_.Y("design:type",String)],eA.prototype,"timeString",void 0);_.T([_.O({computed:"computeTimeStringA11y(currentTimeSecs)"}),_.Y("design:type",String)],eA.prototype,"timeStringA11y",void 0);_.T([_.gQ("#start-at-timestamp"),_.Y("design:type",Object)],eA.prototype,"startAtTimestamp",void 0);eA=_.T([_.$3({is:"yt-start-at-renderer",disableElementRegistration:!0})],eA);
_.r(eA,"yt-start-at-renderer",function(){if(lNK===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-start-at-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_start_at_renderer.yt.start.at.renderer.css.js--\x3e<div id="start-at-wrapper" class="style-scope yt-start-at-renderer">\n  <tp-yt-paper-checkbox id="start-at-checkbox" checked="{{isStartAtChecked}}" on-change="onChangeStartAtCheckbox" class="style-scope yt-start-at-renderer">\n    <yt-formatted-string text="[[data.startAtOptionLabel]]" class="style-scope yt-start-at-renderer"></yt-formatted-string>\n  </tp-yt-paper-checkbox>\n  <tp-yt-paper-input id="start-at-timestamp" allowed-pattern="[:0-9]" aria-label="[[timeStringA11y]]" disabled="" no-label-float="" use-v2-underline="" value="[[timeString]]" on-blur="onChangeStartAtTimestamp" on-change="onChangeStartAtTimestamp" class="style-scope yt-start-at-renderer">\n  </tp-yt-paper-input>\n</div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);var W=F.content,E=W.insertBefore;bOO===void 0&&(bOO=document.createElement("template"));var h=bOO;E.call(W,h.content.cloneNode(!0),F.content.firstChild);lNK=F}F=lNK;return F},{mode:2});var nz8;var yAu;var jm6=new Map([["ADD_TO_PLAYLIST","playlist_add"],["ADD_TO_REMOTE_QUEUE","add_to_queue"],["CAST_ICON","chromecast-filled"],["CAST_OUTLINE","chromecast"],["DISLIKE","dislike_outline"],["DISLIKE_SELECTED","dislike"],["ERROR_WHITE","error"],["FAVORITE","like_outline"],["LIKE","like_outline"],["LIKE_SELECTED","like"],["LOOP","music_repeat_all"],["LOOP_ONE","music_repeat_one"],["PLAYLIST_PLAY","playlists"],["QUEUE_PLAY_NEXT","playlists"],["REMOVE","delete"],["REMOVE_FROM_HISTORY","delete"],["REMOVE_FROM_PLAYLIST",
"delete"],["SHUFFLE","music_shuffle"],["SUBSCRIPTIONS","subscriptions"],["TAB_EXPLORE","explore"],["TAB_MUSIC_PREMIUM","youtube_music_monochrome"],["UNFAVORITE","like"]]),iOu=new Map([["BOOKMARK","bookmark-filled"],["CLOUD_UPLOAD","cloud_arrow_up"],["DISLIKE","dislike"],["DISLIKE_SELECTED","dislike-filled"],["ERROR_WHITE","error-filled"],["FAVORITE","like"],["INSERT_CHART_OUTLINED","bar_graph_box_vertical"],["LIKE","like"],["LIKE_SELECTED","like-filled"],["MUSIC_EXPLICIT_BADGE","music_explicit_badge-filled"],
["MUSIC_SHUFFLE","shuffle"],["PAUSE","offline_pause"],["REMOVE","delete"],["REMOVE_FROM_HISTORY","delete"],["REMOVE_FROM_PLAYLIST","delete"],["TAB_MUSIC_PREMIUM","youtube_music_monochrome"],["UNFAVORITE","like-filled"],["VOLUME_UP","volume_up"],["DISMISS_QUEUE","list_remove"]]),rA8=new Map([["ARROW_CHART_NEUTRAL","yt-icons:"],["OFFLINE_NO_CONTENT","offline-no-content:"],["YOUTUBE","yt-logos:"]]);var TtP={};TtP.YtBindingExpressionsBehavior={identity:_.io,msg:function(F,W){W=W===void 0?{}:W;return _.CY(F,W,F)},
msgPlural:function(F,W){return _.B5(F,W)},
getMusicIconFromType:function(F){if(_.c("music_web_enable_icon_wil"))F=_.Vd(F);else if(iOu.has(F))F="yt-sys-icons:"+iOu.get(F);else{var W=jm6.get(F)||_.Vd(F).split(":")[1];W=_.n8W(W);var E;F=((E=rA8.get(F))!=null?E:"yt-sys-icons:")+W}return F}};var oz6;var G$x;var Y9g;var wNK=document.head,uw6=wNK.appendChild,S98;if(Y9g===void 0){var pNN=document.createElement("template");_.L(pNN,'\x3c!--css-build:shady--\x3e<iron-iconset-svg name="socialNetworks" size="48"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="socialNetworksRound" size="60"><svg><defs></defs></svg></iron-iconset-svg>');Y9g=pNN}S98=Y9g;uw6.call(wNK,S98.content);var Mt=function(){var F=_.n.apply(this,arguments)||this;F.screenLayer=7;return F};
_.k(Mt,_.n);Mt.prototype.getScreenLayer=function(){return this.screenLayer};
Mt.prototype.onTap=function(F){F&&F.detail&&(F.detail.x||F.detail.y)&&_.Z(this.hostElement).querySelector("#target").blur();this.data.serviceEndpoint?_.UT(this.hostElement,[this.data.serviceEndpoint]):this.data.navigationEndpoint&&(F=this.getScreenLayer(),_.hF(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint,createScreenConfig:{layer:F}}));this.data.onTapCommand&&this.ytComponentBehavior.resolveCommand(this.data.onTapCommand,{form:{createScreenConfig:{layer:this.getScreenLayer()}}})};
_.Sn.Object.defineProperties(Mt.prototype,{title:{configurable:!0,enumerable:!0,get:function(){return this.ytRendererBehavior.getSimpleString(this.data.title)}},
icon:{configurable:!0,enumerable:!0,get:function(){return"socialNetworksRound:"+this.data.serviceName.toLowerCase()}}});
Mt.prototype.onTap=Mt.prototype.onTap;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Mt.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],Mt.prototype,"ytComponentBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],Mt.prototype,"data",void 0);_.T([_.a("data.title"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Mt.prototype,"title",null);
_.T([_.a("data.serviceName"),_.Y("design:type",String),_.Y("design:paramtypes",[])],Mt.prototype,"icon",null);_.T([_.R4("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Mt.prototype,"onTap",null);Mt=_.T([_.$3({is:"yt-share-target-renderer",disableElementRegistration:!0})],Mt);
_.r(Mt,"yt-share-target-renderer",function(){if(G$x===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-share-target-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_share_target_renderer.yt.share.target.renderer.css.js--\x3e<button id="target" title="[[title]]" class="style-scope yt-share-target-renderer">\n  <yt-icon class="icon-resize style-scope yt-share-target-renderer" icon="[[icon]]"></yt-icon>\n  <div id="title" style-target="title" class="style-scope yt-share-target-renderer">[[title]]</div>\n</button>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;oz6===void 0&&(oz6=document.createElement("template"));var h=oz6;E.call(W,h.content.cloneNode(!0),F.content.firstChild);G$x=F}F=G$x;return F},{mode:2});var me$;var KCu;var gB=function(){var F=_.n.apply(this,arguments)||this;F.SHARE_TARGET_WIDTH=70;F.SHARE_TARGET_MARGIN_RIGHT=8;F.PAGE_SCROLL_SPEED=9;F.actionMap={"yt-share-panel-reset-action":"onReset_"};return F};
_.k(gB,_.n);_.N=gB.prototype;_.N.configureRendererStamper=function(){return{"data.shareTargets":{id:"contents",mapping:{shareTargetRenderer:{component:"yt-share-target-renderer",attributes:{role:"button"}}}}}};
_.N.onDataChanged_=function(){this.data&&this.data.shareTargets&&(_.Z(this.hostElement).querySelector("#scroll-button-back").hidden=!0,_.Z(this.hostElement).querySelector("#scroll-button-forward").hidden=this.data.shareTargets.length<=6)};
_.N.onReset_=function(){if(_.Z(this.hostElement).querySelector("#list")){var F=_.Z(this.hostElement).querySelector("#list");var W=_.Z(this.hostElement).querySelector("#list");var E=W.offsetLeft,h=W.offsetParent;h||_.gKT(W)!="fixed"||(h=_.qp(W).documentElement);if(h){if(_.Cc&&!_.vY(58)){var d=_.cPz(h);E+=d.left}else Number(_.r2o)>=8&&!(Number(_.r2o)>=9)&&(d=_.cPz(h),E-=d.left);W=_.vKz(h)?h.clientWidth-(E+W.offsetWidth):E}else W=E;aRg(F,W);this.updateScrollButtons_()}};
_.N.onScrollBack_=function(){this.smoothScrollByOnePage_(!1)};
_.N.onScrollForward_=function(){this.smoothScrollByOnePage_(!0)};
_.N.onScrollWheel_=function(F){F.stopPropagation();F.preventDefault();var W=JbK(_.Z(this.hostElement).querySelector("#list"));F=Math.abs(F.deltaX)>Math.abs(F.deltaY)?F.deltaX:F.deltaY;aRg(_.Z(this.hostElement).querySelector("#list"),W+F);this.updateScrollButtons_()};
_.N.smoothScrollByOnePage_=function(F){var W=_.Z(this.hostElement).querySelector("#list"),E=(Math.floor(W.clientWidth/this.SHARE_TARGET_WIDTH)*(this.SHARE_TARGET_WIDTH+this.SHARE_TARGET_MARGIN_RIGHT)-this.SHARE_TARGET_MARGIN_RIGHT)/2,h=JbK(W),d=E*(F?1:-1),V=this.PAGE_SCROLL_SPEED,R=this.updateScrollButtons_.bind(this),M=0,g;(function C(){M+=V;g=M/E*2;aRg(W,h+d*(g<1?g*g:-g*g+4*g-2));M<E?window.requestAnimationFrame(C):R()})()};
_.N.updateScrollButtons_=function(){var F=JbK(_.Z(this.hostElement).querySelector("#list")),W=_.Z(this.hostElement).querySelector("#list").scrollWidth-_.Z(this.hostElement).querySelector("#list").clientWidth;_.Z(this.hostElement).querySelector("#scroll-button-back").hidden=F<=0;_.Z(this.hostElement).querySelector("#scroll-button-forward").hidden=F>=W};
gB.prototype.onScrollWheel_=gB.prototype.onScrollWheel_;gB.prototype.onDataChanged_=gB.prototype.onDataChanged_;_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],gB.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],gB.prototype,"ytActionHandlerBehavior",void 0);_.T([_.J(TtP.YtBindingExpressionsBehavior),_.Y("design:type",Object)],gB.prototype,"ytBindingExpressionsBehavior",void 0);
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],gB.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],gB.prototype,"data",void 0);_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],gB.prototype,"onDataChanged_",null);_.T([_.R4("wheel"),_.Y("design:type",Function),_.Y("design:paramtypes",[WheelEvent]),_.Y("design:returntype")],gB.prototype,"onScrollWheel_",null);
gB=_.T([_.$3({is:"yt-third-party-share-target-section-renderer",disableElementRegistration:!0})],gB);
_.r(gB,"yt-third-party-share-target-section-renderer",function(){if(KCu===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-third-party-share-target-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_third_party_share_target_section_renderer.yt.third.party.share.target.section.renderer.css.js--\x3e<div id="list" class="style-scope yt-third-party-share-target-section-renderer">\n  <div id="contents" role="toolbar" aria-label$="[[data.accessibility.accessibilityData.label]]" class="style-scope yt-third-party-share-target-section-renderer"></div>\n</div>\n<yt-icon-button id="scroll-button-back" class="scroll-button style-scope yt-third-party-share-target-section-renderer" label="[[msg(\'HORIZONTAL_LIST_PREVIOUS_LABEL\')]]" on-tap="onScrollBack_">\n  <yt-icon class="scroll-button-icon style-scope yt-third-party-share-target-section-renderer" icon="chevron_left"></yt-icon>\n</yt-icon-button>\n<yt-icon-button id="scroll-button-forward" class="scroll-button style-scope yt-third-party-share-target-section-renderer" label="[[msg(\'HORIZONTAL_LIST_NEXT_LABEL\')]]" on-tap="onScrollForward_">\n  <yt-icon class="scroll-button-icon style-scope yt-third-party-share-target-section-renderer" icon="chevron_right"></yt-icon>\n</yt-icon-button>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;me$===void 0&&(me$=document.createElement("template"));var h=me$;E.call(W,h.content.cloneNode(!0),F.content.firstChild);KCu=F}F=KCu;return F},{mode:2});var QW=function(){return _.n.apply(this,arguments)||this};
_.k(QW,_.n);QW.prototype.configureRendererStamper=function(){return{"data.shareTargetContainer":{id:"share-targets",mapping:{thirdPartyShareTargetSectionRenderer:"yt-third-party-share-target-section-renderer"}},"data.copyLinkContainer":{id:"copy-link",mapping:{copyLinkRenderer:"yt-copy-link-renderer"}},"data.startAtContainer":{id:"start-at",mapping:{startAtRenderer:"yt-start-at-renderer"}}}};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],QW.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],QW.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],QW.prototype,"data",void 0);QW=_.T([_.$3({is:"yt-third-party-network-section-renderer",disableElementRegistration:!0})],QW);
_.r(QW,"yt-third-party-network-section-renderer",function(){if(yAu===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-third-party-network-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_third_party_network_section_renderer.yt.third.party.network.section.renderer.css.js--\x3e<div id="share-targets" class="style-scope yt-third-party-network-section-renderer"></div>\n<div id="copy-link" class="style-scope yt-third-party-network-section-renderer"></div>\n<div id="start-at" class="style-scope yt-third-party-network-section-renderer"></div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);var W=F.content,E=W.insertBefore;nz8===void 0&&(nz8=document.createElement("template"));var h=nz8;E.call(W,h.content.cloneNode(!0),F.content.firstChild);yAu=F}F=yAu;return F},{mode:2});_.pK(_.GK(function(F){return _.z("first-party-network-section-view-model",{class:"ytwFirstPartyNetworkSectionViewModelHost"},_.z("div",{class:"ytwFirstPartyNetworkSectionViewModelfirstPartyItems"},_.z(_.a6,{data:function(){return F.data().firstPartyItems}},{listItemViewModel:_.$q})))},"hg"),"first-party-network-section-view-model",{props:{data:_.TS}});var Fmg=_.Fc(["data:image/svg+xml;charset=UTF-8;base64,",""]),zV=function(){var F=_.n.apply(this,arguments)||this;F.screenLayer=7;F.qrCodeEnabled=_.c("web_enable_sharing_qr_code");F.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp"};return F};
_.k(zV,_.n);_.N=zV.prototype;_.N.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{senderIdSectionRenderer:"ytd-sender-id-section-renderer",thirdPartyNetworkSection:"yt-third-party-network-section-renderer",firstPartyNetworkSectionViewModel:"first-party-network-section-view-model"}}}};
_.N.attached=function(){this.JSC$17761_scroller&&(this.JSC$17761_scroller.dialogElement=this.hostElement.parentNode,this.JSC$17761_scroller.attached&&typeof this.JSC$17761_scroller.attached==="function"&&this.JSC$17761_scroller.attached(),this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true"))};
_.N.onDataChanged=function(){var F=this,W;(W=this.data)!=null&&W.contents&&(this.hostElement.setAttribute("links-only","true"),_.EO(this.hostElement,"can-post",this.hasCommunityPostRenderer()),this.logSharePanelPage(),this.maybeRenderQrCode(this.shortUrl()),_.wT(this,function(){_.hF(F.hostElement,"yt-refit");F.focusSharePanelHeader()}))};
_.N.focusSharePanelHeader=function(){this.header&&(this.header.setAttribute("tabindex","-1"),this.header.focus())};
_.N.handleSetTimestamp=function(F){var W=this.shortUrl();F.isSet&&(W=_.wa(W,"t",F.timestamp));this.maybeRenderQrCode(W)};
_.N.shortUrl=function(){var F,W=(F=this.data)==null?void 0:F.contents;if(W)for(F=0;F<W.length;F++){var E=void 0,h=void 0;if((E=W[F])==null?0:(h=E.thirdPartyNetworkSection)==null?0:h.copyLinkContainer){var d=h=E=void 0;return(d=_.D((E=W[F])==null?void 0:(h=E.thirdPartyNetworkSection)==null?void 0:h.copyLinkContainer,OHq))==null?void 0:d.shortUrl}}};
_.N.maybeRenderQrCode=function(F){var W=this,E,h,d,V,R,M,g,t,C;return _.e(function(B){if(B.nextAddress==1){E=_.Z(W.hostElement).querySelector("#qr-code");if(!W.qrCodeEnabled||!F)return E&&(E.style.display="none"),B.return();h=_.mbr(_.WZ().resolve(_.U6),{iconName:"youtube_logo_icon",iconStyle:"youtube_fill"});d=document.createElement("div");return typeof h==="function"?(h(d),B.jumpTo(2)):_.Q(B,h,3)}B.nextAddress!=2&&(V=B.yieldResult,V(d));g=(R=d)==null?void 0:(M=R.firstChild)==null?void 0:M.firstChild;
t=document.createElement("img");C=_.xw(Fmg,btoa(g.outerHTML));t.onload=function(){var I={canvas:E,cellStyle:1,backgroundColor:"white",borderRadius:30,color:"black",padding:10,width:256,logo:t},x=new MrF;B8F(x,F);vxK(x,!1,IUq(x));var A=x.modules,X=Object.assign({},CVT,I);A=structuredClone(A);I=A.length;var P,b=(P=X.canvas)!=null?P:document.createElement("canvas");P=X.cellSize;x=X.logo;var l,w=(l=X.logoSize)!=null?l:Math.floor(I/4);I%2!==w%2&&w++;var G=X.logoPadding,hr=X.backgroundColor;l=I*P;var p=
X.width,UY=0;p&&(UY=X.padding,UY=Math.ceil(UY*l/(p-UY*2)),b.style.width=p+"px",b.style.height=p+"px");b.width!==l+UY*2&&(b.width=l+UY*2);b.height!==l+UY*2&&(b.height=l+UY*2);l=b.getContext("2d");X.autoClear&&l.clearRect(0,0,b.width,b.height);l.fillStyle=hr;l.beginPath();l.roundRect(0,0,b.width,b.height,X.borderRadius);l.fill();l.save();l.translate(UY,UY);if(x)for(b=Math.floor(I-w)/2-G,G=Math.floor(I+w)/2+G,hr=b;hr<G;hr++)for(p=b;p<G;p++)A[hr][p]=!1;for(b=0;b<I;b++)for(G=0;G<I;G++)(b<7&&G<7||b<7&&
G>=I-7||b>=I-7&&G<7)&&(A[b][G]=!1);var xW;b=(xW=X.markerColor)!=null?xW:X.color;DW8(l,0,0,P,b);DW8(l,P*(I-7),0,P,b);DW8(l,0,P*(I-7),P,b);switch(X.cellStyle){case 0:xW=A;A=xW.length;b=X.cellSize;l.beginPath();for(G=0;G<A;G++)for(hr=0;hr<A;hr++)xW[G][hr]&&l.rect(G*b,hr*b,b,b);l.fillStyle=X.color;l.fill();break;case 1:xW=A;A=xW.length;b=X.cellSize;G=b*X.relativeCircleSize;l.fillStyle=X.color;l.beginPath();for(X=0;X<A;X++)for(hr=0;hr<A;hr++)xW[X][hr]&&(l.beginPath(),l.ellipse((X+.5)*b,(hr+.5)*b,G/2,G/
2,0,0,2*Math.PI),l.fill());l.fill();break;case 2:xW=A;A=xW.length;b=X.cellSize;l.fillStyle=X.color;X=[[1,1],[-1,1],[-1,-1],[1,-1]];l.beginPath();for(G=0;G<A;G++)for(hr=0;hr<A;hr++)if(xW[G][hr])l.roundRect(G*b,hr*b,b,b,b/2),G+1<A&&xW[G+1][hr]&&l.rect(G*b+b/2,hr*b,b,b),hr+1<A&&xW[G][hr+1]&&l.rect(G*b,hr*b+b/2,b,b);else{p=G*b+b/2;UY=hr*b+b/2;for(var qw=0;qw<4;qw++){var Lb=_.U(X[qw]),jk=Lb.next().value;Lb=Lb.next().value;G+jk>=0&&G+jk<A&&hr+Lb>=0&&hr+Lb<A&&xW[G+jk][hr]&&xW[G][hr+Lb]&&xW[G+jk][hr+Lb]&&
(jk=qw*Math.PI/2,Lb=b/2,l.moveTo(p+Lb*Math.cos(jk),UY+Lb*Math.sin(jk)),l.arc(p,UY,b/2,jk,jk+Math.PI/2,!1),l.lineTo(p+Lb*(Math.cos(jk)-Math.sin(jk)),UY+Lb*(Math.cos(jk)+Math.sin(jk))),l.lineTo(p+Lb*Math.cos(jk),UY+Lb*Math.sin(jk)))}}l.fill()}x&&l.drawImage(x,(I-w)*P/2,(I-w)*P/2,w*P,w*P);l.restore();E.style.removeProperty("display")};
t.src=_.ty(C);_.gG(B)})};
_.N.hasCommunityPostRenderer=function(){var F,W,E,h;return!!((F=this.data)==null?0:(W=F.header)==null?0:(E=W.sharePanelHeaderRenderer)==null?0:(h=E.communityPost)==null?0:h.communityPostSectionRenderer)};
_.N.onTapClose=function(){_.dW(this.hostElement,"yt-close-popup-action",["ytd-unified-share-panel-renderer"])};
_.N.getScreenLayer=function(){return this.screenLayer};
_.N.logSharePanelPage=function(){if(!_.c("enable_share_panel_navigation_logging_fix_on_web")){var F;if((F=this.data)!=null&&F.trackingParams){F=this.data.trackingParams;var W=this.parentClickTrackingParams;W=W?_.ve(W):void 0;var E=_.z4();_.QH(E,21760,W,{layer:7,parentLayer:0});E.graftServerVe(F,void 0,7);_.uC().dispatch(_.dR({type:"CLEAR_PARENT_CLICK_TRACKING_PARAMS"}))}}};
zV.prototype.onDataChanged=zV.prototype.onDataChanged;_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],zV.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],zV.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.am),_.Y("design:type",Object)],zV.prototype,"ytdReduxBehavior",void 0);_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],zV.prototype,"ytActionHandlerBehavior",void 0);
_.T([_.O(),_.Y("design:type",Object)],zV.prototype,"data",void 0);_.T([_.O({value:_.CY("SBOX_INAPPROPRIATE_CANCEL")}),_.Y("design:type",String)],zV.prototype,"closeButtonAriaLabel",void 0);_.T([_.gQ("yt-share-panel-header-renderer"),_.Y("design:type",HTMLElement)],zV.prototype,"header",void 0);_.T([_.O({selector:function(F){return F.share.parentClickTrackingParams}}),
_.Y("design:type",String)],zV.prototype,"parentClickTrackingParams",void 0);_.T([_.O(),_.Y("design:type",Object)],zV.prototype,"qrCodeEnabled",void 0);_.T([_.gQ("#scroller"),_.Y("design:type",Object)],zV.prototype,"JSC$17761_scroller",void 0);_.T([_.Cz("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],zV.prototype,"onDataChanged",null);zV=_.T([_.y({disableElementRegistration:!0,is:"ytd-unified-share-panel-renderer"})],zV);
_.r(zV,"ytd-unified-share-panel-renderer",function(){if($e$!==void 0)return $e$;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-unified-share-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-unified-share-panel-renderer">\n  <div id="spinner" hidden="[[!data.showLoadingSpinner]]" class="style-scope ytd-unified-share-panel-renderer">\n    <tp-yt-paper-spinner active="[[data.showLoadingSpinner]]" class="style-scope ytd-unified-share-panel-renderer"></tp-yt-paper-spinner>\n  </div>\n  <yt-icon-button id="close-button" label="[[closeButtonAriaLabel]]" on-click="onTapClose" class="style-scope ytd-unified-share-panel-renderer">\n    <yt-icon icon="close" class="style-scope ytd-unified-share-panel-renderer"></yt-icon>\n  </yt-icon-button>\n  <yt-share-panel-header-renderer id="share-panel-header" data="[[data.header.sharePanelHeaderRenderer]]" hidden="[[data.showLoadingSpinner]]" class="style-scope ytd-unified-share-panel-renderer">\n  </yt-share-panel-header-renderer>\n  <div id="contents" class="style-scope ytd-unified-share-panel-renderer"></div>\n  <canvas id="qr-code" alt="QR code" hidden="[[!qrCodeVisible]]" class="style-scope ytd-unified-share-panel-renderer">\n</canvas></tp-yt-paper-dialog-scrollable>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return $e$=F},{mode:1});var Wmg;var t9=function(){var F=_.n.apply(this,arguments)||this;F.modernModal=_.c("kevlar_sign_in_modal_modernization");return F};
_.k(t9,_.n);t9.prototype.attached=function(){this.hostElement.setAttribute("modal","true")};
t9.prototype.computeShouldHideOldButtons=function(){var F;return!((F=this.data)==null?0:F.button)};
_.Sn.Object.defineProperties(t9.prototype,{buttonRendererData:{configurable:!0,enumerable:!0,get:function(){var F,W;if(this.modernModal&&((F=this.data)==null?0:(W=F.button)==null?0:W.buttonRenderer))return Object.assign({},this.data.button.buttonRenderer,{style:"STYLE_MONO_FILLED"});var E,h;return(E=this.data)==null?void 0:(h=E.button)==null?void 0:h.buttonRenderer}}});
_.T([_.O(),_.Y("design:type",Object)],t9.prototype,"data",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],t9.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.B$.YtEventForwardingBehavior),_.Y("design:type",Object)],t9.prototype,"ytEventForwardingBehavior",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],t9.prototype,"modernModal",void 0);_.T([_.a("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],t9.prototype,"buttonRendererData",null);
t9=_.T([_.y({disableElementRegistration:!0,is:"ytd-modal-with-title-and-button-renderer"})],t9);
_.r(t9,"ytd-modal-with-title-and-button-renderer",function(){if(Wmg!==void 0)return Wmg;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-modal-with-title-and-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope ytd-modal-with-title-and-button-renderer">\n</yt-formatted-string>\n<yt-formatted-string id="content" split-lines="" text="[[data.content]]" class="style-scope ytd-modal-with-title-and-button-renderer">\n</yt-formatted-string>\n<div class="buttons style-scope ytd-modal-with-title-and-button-renderer" hidden="[[computeShouldHideOldButtons(data.button)]]">\n  <ytd-button-renderer id="button" align-by-text="" data="[[buttonRendererData]]" class="style-scope ytd-modal-with-title-and-button-renderer">\n  </ytd-button-renderer>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return Wmg=F},{mode:1});var Efq;var Cl=function(){return _.n.apply(this,arguments)||this};
_.k(Cl,_.n);Cl.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.yR("page-changed",this.page))};
Cl.prototype.pageChangedForBinding=Cl.prototype.pageChangedForBinding;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Cl.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],Cl.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",String)],Cl.prototype,"page",void 0);_.T([_.ea("page"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Cl.prototype,"pageChangedForBinding",null);
Cl=_.T([_.y({is:"ytd-account-item-section-header-renderer",disableElementRegistration:!0})],Cl);
_.r(Cl,"ytd-account-item-section-header-renderer",function(){if(Efq!==void 0)return Efq;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-account-item-section-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.title]]" class="style-scope ytd-account-item-section-header-renderer"></yt-formatted-string>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return Efq=F},{mode:1});var hZw;var Bl=function(){return _.n.apply(this,arguments)||this};
_.k(Bl,_.n);Bl.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{accountItem:{component:"ytd-account-item-renderer",properties:{onAccountItemTap:"[[onAccountItemTap]]"}},accountItemRenderer:{component:"ytd-account-item-renderer",properties:{onAccountItemTap:"[[onAccountItemTap]]"}},compactLinkRenderer:"ytd-compact-link-renderer",continuationItemRenderer:{component:"ytd-continuation-item-renderer",params:{showButton:!0}}}},"data.header":{id:"header",mapping:{accountItemSectionHeaderRenderer:"ytd-account-item-section-header-renderer"}}}};
Bl.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Bl.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],Bl.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.br),_.Y("design:type",Object)],Bl.prototype,"ytContinuationHandlerBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],Bl.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!1}),_.Y("design:type",Function)],Bl.prototype,"onAccountItemTap",void 0);
Bl=_.T([_.y({is:"ytd-account-item-section-renderer",disableElementRegistration:!0})],Bl);
_.r(Bl,"ytd-account-item-section-renderer",function(){if(hZw!==void 0)return hZw;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-account-item-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-account-item-section-renderer"></div>\n<div id="contents" class="style-scope ytd-account-item-section-renderer"></div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return hZw=F},{mode:1});var duK;var N7g;var vl=function(){return _.n.apply(this,arguments)||this};
_.k(vl,_.n);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],vl.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],vl.prototype,"data",void 0);vl=_.T([_.y({is:"ytd-accounts-dialog-header-renderer",disableElementRegistration:!0})],vl);
_.r(vl,"ytd-accounts-dialog-header-renderer",function(){if(N7g!==void 0)return N7g;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-accounts-dialog-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.text]]" class="style-scope ytd-accounts-dialog-header-renderer"></yt-formatted-string>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return N7g=F},{mode:1});var VgF;var Ip=function(){return _.n.apply(this,arguments)||this};
_.k(Ip,_.n);Ip.prototype.configureRendererStamper=function(){return{"data.managedAccountDisclaimer":{id:"managedAccountDisclaimer",mapping:{compactLinkRenderer:"ytd-compact-link-renderer"}}}};
_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],Ip.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],Ip.prototype,"data",void 0);Ip=_.T([_.y({is:"ytd-google-account-header-renderer",disableElementRegistration:!0})],Ip);
_.r(Ip,"ytd-google-account-header-renderer",function(){if(VgF!==void 0)return VgF;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-google-account-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="managedAccountDisclaimer" class="style-scope ytd-google-account-header-renderer"></div>\n<div id="container" class="style-scope ytd-google-account-header-renderer">\n  <div class="style-scope ytd-google-account-header-renderer">\n    <yt-formatted-string id="name" text="[[data.name]]" class="style-scope ytd-google-account-header-renderer"></yt-formatted-string>\n  </div>\n  <div class="style-scope ytd-google-account-header-renderer">\n    <yt-formatted-string id="email" text="[[data.email]]" class="style-scope ytd-google-account-header-renderer"></yt-formatted-string>\n  </div>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return VgF=F},{mode:1});var cl=function(){return _.n.apply(this,arguments)||this};
_.k(cl,_.n);cl.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{accountItemSectionRenderer:"ytd-account-item-section-renderer",compactLinkRenderer:"ytd-compact-link-renderer"}},"data.header":{id:"header",mapping:{googleAccountHeaderRenderer:"ytd-google-account-header-renderer",accountsDialogHeaderRenderer:"ytd-accounts-dialog-header-renderer"}}}};
cl.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.yR("page-changed",this.page))};
cl.prototype.pageChangedForBinding=cl.prototype.pageChangedForBinding;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],cl.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],cl.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],cl.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",String)],cl.prototype,"page",void 0);
_.T([_.ea("page"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],cl.prototype,"pageChangedForBinding",null);cl=_.T([_.y({is:"ytd-account-section-list-renderer",disableElementRegistration:!0})],cl);
_.We()(cl,"ytd-account-section-list-renderer",function(){if(duK===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-account-section-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-account-section-list-renderer"></div>\n<div id="contents" class="style-scope ytd-account-section-list-renderer"></div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);duK=F}F=duK;return F},{allowedProps:["data"],
mode:1});var Uu6;var Dt=function(){var F=_.n.apply(this,arguments)||this;F.enableHandlesAccountMenuSwitcher=_.c("enable_handles_account_menu_switcher");return F};
_.k(Dt,_.n);Dt.prototype.dataChanged=function(){if(this.data)this.avatar.onShow()};
Dt.prototype.dataChanged=Dt.prototype.dataChanged;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Dt.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],Dt.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],Dt.prototype,"enableHandlesAccountMenuSwitcher",void 0);_.T([_.gQ("#avatar"),_.Y("design:type",Object)],Dt.prototype,"avatar",void 0);
_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Dt.prototype,"dataChanged",null);Dt=_.T([_.y({is:"ytd-active-account-header-renderer",disableElementRegistration:!0})],Dt);
_.We()(Dt,"ytd-active-account-header-renderer",function(){if(Uu6===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-active-account-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow id="avatar" height="40" thumbnail="[[data.accountPhoto]]" width="40" class="style-scope ytd-active-account-header-renderer">\n</yt-img-shadow>\n<div id="channel-container" class="style-scope ytd-active-account-header-renderer">\n  <yt-formatted-string id="account-name" ellipsis-truncate="" text="[[data.accountName]]" class="style-scope ytd-active-account-header-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string id="email" ellipsis-truncate="" text="[[data.email]]" class="style-scope ytd-active-account-header-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string id="channel-handle" ellipsis-truncate="" respect-lang-dir="" text="[[data.channelHandle]]" class="style-scope ytd-active-account-header-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string id="manage-account" ellipsis-truncate="" force-default-style="" text="[[data.manageAccountTitle]]" class="style-scope ytd-active-account-header-renderer">\n  </yt-formatted-string>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);Uu6=F}F=Uu6;return F},{allowedProps:["data"],
mode:1});var RZ6;var eZN;var xG=function(){return _.n.apply(this,arguments)||this};
_.k(xG,_.n);xG.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
xG.prototype.onBackTap=function(){_.hF(this.hostElement,"yt-menu-back-tapped")};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],xG.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],xG.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],xG.prototype,"data",void 0);xG=_.T([_.y({is:"ytd-simple-menu-header-renderer",disableElementRegistration:!0})],xG);
_.We()(xG,"ytd-simple-menu-header-renderer",function(){if(eZN===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-simple-menu-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-button-renderer id="back-button" data="[[data.backButton.buttonRenderer]]" hidden="[[!data.backButton.buttonRenderer]]" on-tap="onBackTap" class="style-scope ytd-simple-menu-header-renderer">\n</ytd-button-renderer>\n<h2 class="style-scope ytd-simple-menu-header-renderer">\n  <yt-formatted-string text="[[data.title]]" class="style-scope ytd-simple-menu-header-renderer"></yt-formatted-string>\n</h2>\n<div id="buttons" class="style-scope ytd-simple-menu-header-renderer"></div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);eZN=F}F=eZN;return F},{allowedProps:["data"],
mode:2});var Mg6;var kG=function(){return _.n.apply(this,arguments)||this};
_.k(kG,_.n);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],kG.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],kG.prototype,"data",void 0);kG=_.T([_.y({is:"ytd-comment-video-thumbnail-header-renderer",disableElementRegistration:!0})],kG);
_.r(kG,"ytd-comment-video-thumbnail-header-renderer",function(){if(Mg6!==void 0)return Mg6;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-video-thumbnail-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="comment-video-thumbnail style-scope ytd-comment-video-thumbnail-header-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-comment-video-thumbnail-header-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <yt-formatted-string class="title style-scope ytd-comment-video-thumbnail-header-renderer" text="[[data.title]]"></yt-formatted-string>\n    <div class="thumbnail-container style-scope ytd-comment-video-thumbnail-header-renderer" hidden="[[!data.thumbnail]]">\n      <yt-img-shadow disable-upgrade$="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" width="86" class="style-scope ytd-comment-video-thumbnail-header-renderer">\n      </yt-img-shadow>\n    </div>\n  </a>\n</div>\n<div class="subtitle-message-banner style-scope ytd-comment-video-thumbnail-header-renderer" hidden="[[!data.subtitleMessage]]">\n  <yt-attributed-string data="[[data.subtitleMessage.messageRenderer.text]]" class="style-scope ytd-comment-video-thumbnail-header-renderer">\n  </yt-attributed-string>\n  <yt-attributed-string data="[[data.subtitleMessage.messageRenderer.termsText]]" force-default-style="" class="style-scope ytd-comment-video-thumbnail-header-renderer">\n  </yt-attributed-string>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return Mg6=F},{mode:1});var gfT;var A9=function(){return _.n.apply(this,arguments)||this};
_.k(A9,_.n);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],A9.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],A9.prototype,"data",void 0);A9=_.T([_.y({is:"ytd-abuse-type-selector-renderer",disableElementRegistration:!0})],A9);
_.r(A9,"ytd-abuse-type-selector-renderer",function(){if(gfT!==void 0)return gfT;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-abuse-type-selector-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-abuse-type-selector-renderer">\n  <form class="style-scope ytd-abuse-type-selector-renderer">\n    <yt-options-renderer data="[[data.optionsSupportedRenderers.optionsRenderer]]" class="style-scope ytd-abuse-type-selector-renderer">\n    </yt-options-renderer>\n  </form>\n  <div id="footer" class="style-scope ytd-abuse-type-selector-renderer">[[getSimpleString(data.footer)]]</div>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return gfT=F},{mode:1});var QGT;var sl=function(){return _.n.apply(this,arguments)||this};
_.k(sl,_.n);sl.prototype.attached=function(){var F=this;this.additionalContext=this.additionalContextRedux||"";requestAnimationFrame(function(){F.additionalContextInput.focusTextInput()})};
sl.prototype.handleAdditionalContextChanged=function(){var F=this;_.OO(this,"ytd-report-channel-additional-context-update",function(){F.ytdReduxBehavior.dispatch(_.dR({type:"ADDITIONAL_CONTEXT_UPDATED",payload:F.additionalContext}))},300)};
sl.prototype.updateAdditionalContextFromBinding=function(F){this.additionalContext=F.detail.value};
sl.prototype.handleAdditionalContextChanged=sl.prototype.handleAdditionalContextChanged;_.T([_.J(_.am),_.Y("design:type",Object)],sl.prototype,"ytdReduxBehavior",void 0);_.T([_.O(),_.Y("design:type",String)],sl.prototype,"additionalContext",void 0);_.T([_.O({selector:function(F){return F.reportChannelAbuse.additionalContext}}),
_.Y("design:type",String)],sl.prototype,"additionalContextRedux",void 0);_.T([_.O(),_.Y("design:type",Object)],sl.prototype,"data",void 0);_.T([_.gQ("yt-text-input-form-field-renderer"),_.Y("design:type",Object)],sl.prototype,"additionalContextInput",void 0);_.T([_.ea("additionalContext"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],sl.prototype,"handleAdditionalContextChanged",null);
sl=_.T([_.y({is:"ytd-report-channel-modal-additional-context-renderer",disableElementRegistration:!0})],sl);
_.r(sl,"ytd-report-channel-modal-additional-context-renderer",function(){if(QGT!==void 0)return QGT;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-channel-modal-additional-context-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-text-input-form-field-renderer component-style="TEXT_INPUT_FORM_FIELD_OUTLINED" data="[[data.additionalDetailsTextField.textInputFormFieldRenderer]]" value="[[additionalContext]]" on-value-changed="updateAdditionalContextFromBinding" class="style-scope ytd-report-channel-modal-additional-context-renderer">\n</yt-text-input-form-field-renderer>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return QGT=F},{mode:1});var zZx;var Ll=function(){var F=_.n.apply(this,arguments)||this;F.nextButtonDisabled=null;F.submitEndpoint=null;F.navigationEndpoint=null;F.actionMap={"yt-report-form-update":"handleReportFormEndpointUpdateAction","yt-signal-action-submit-form":"handleSignalActionSubmitForm","ytd-report-channel-modal-disable-next-button-action":"handleReportChannelModalDisableNextButtonAction"};return F};
_.k(Ll,_.n);_.N=Ll.prototype;_.N.computeNextButtonData=function(F,W,E){var h={};W&&(h.navigationEndpoint=W);E&&(h.serviceEndpoint=E);F&&F.buttonRenderer&&_.xd.extend(h,F.buttonRenderer);return h};
_.N.handleReportChannelModalDisableNextButtonAction=function(F){this.setNextButtonIsDisabled(F)};
_.N.handleReportFormEndpointUpdateAction=function(F){this.setNextButtonIsDisabled(!!F.disableSubmitButton);this.resetEndpointData();F.submitEndpoint?this.submitEndpoint=F.submitEndpoint:F.submitNavigationEndpoint&&(this.navigationEndpoint=F.submitNavigationEndpoint)};
_.N.handleSignalActionSubmitForm=function(){var F,W=Object.keys(((F=this.reportChannelAbuseForm)==null?void 0:F.selectedVideoIds)||{}),E;F=((E=this.reportChannelAbuseForm)==null?void 0:E.additionalContext)||"";var h;E=((h=this.reportChannelAbuseForm)==null?void 0:h.impersonatedChannelUrl)||"";var d;if((d=this.data)==null?0:d.submitEndpoint){W={impersonated_channel_url:E,text:F,video_ids:W};var V;_.WZ().resolve(_.EJ).resolveCommand((V=this.data)==null?void 0:V.submitEndpoint,{form:Object.assign({},
W,{element:this.hostElement})})}this.setNextButtonIsDisabled(!0)};
_.N.onYtServiceRequestCompleted=function(){this.resetEndpointData()};
_.N.onYtServiceRequestError=function(F){this.setNextButtonIsDisabled(!1);_.R$(this.hostElement,F.detail.error.message)};
_.N.setNextButtonIsDisabled=function(F){this.set("data.nextButton.buttonRenderer.isDisabled",F)};
_.N.resetEndpointData=function(){this.submitEndpoint=this.navigationEndpoint=null};
Ll.prototype.onYtServiceRequestError=Ll.prototype.onYtServiceRequestError;Ll.prototype.onYtServiceRequestCompleted=Ll.prototype.onYtServiceRequestCompleted;_.T([_.O(),_.Y("design:type",Object)],Ll.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Object)],Ll.prototype,"nextButtonDisabled",void 0);_.T([_.J(_.am),_.Y("design:type",Object)],Ll.prototype,"ytdReduxBehavior",void 0);_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],Ll.prototype,"ytActionHandlerBehavior",void 0);
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Ll.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],Ll.prototype,"submitEndpoint",void 0);_.T([_.O(),_.Y("design:type",Object)],Ll.prototype,"navigationEndpoint",void 0);_.T([_.O({selector:function(F){return F.reportChannelAbuse}}),
_.Y("design:type",Object)],Ll.prototype,"reportChannelAbuseForm",void 0);_.T([_.R4("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Ll.prototype,"onYtServiceRequestCompleted",null);_.T([_.R4("yt-service-request-error"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Ll.prototype,"onYtServiceRequestError",null);
Ll=_.T([_.y({is:"ytd-report-channel-modal-footer-renderer",disableElementRegistration:!0})],Ll);
_.r(Ll,"ytd-report-channel-modal-footer-renderer",function(){if(zZx!==void 0)return zZx;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-channel-modal-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-button-renderer id="back-button" data="[[data.backButton.buttonRenderer]]" hidden="[[!data.backButton]]" class="style-scope ytd-report-channel-modal-footer-renderer">\n</ytd-button-renderer>\n<ytd-button-renderer id="next-button" data="[[computeNextButtonData(data.nextButton, navigationEndpoint, submitEndpoint)]]" disabled="[[data.nextButton.buttonRenderer.isDisabled]]" class="style-scope ytd-report-channel-modal-footer-renderer">\n</ytd-button-renderer>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return zZx=F},{mode:1});var tg6;var qt=function(){var F=_.n.apply(this,arguments)||this;F.boundOnTapDismissButton=function(){F.closePopup()};
return F};
_.k(qt,_.n);qt.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundOnTapDismissButton]]"}}}}}};
qt.prototype.handleDataChanged=function(){_.Y7(this.hostElement)};
qt.prototype.closePopup=function(){_.dW(this.hostElement,"yt-close-popup-action")};
qt.prototype.handleDataChanged=qt.prototype.handleDataChanged;_.T([_.O(),_.Y("design:type",Object)],qt.prototype,"boundOnTapDismissButton",void 0);_.T([_.O(),_.Y("design:type",Object)],qt.prototype,"data",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],qt.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],qt.prototype,"ytRendererstamperBehavior",void 0);
_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],qt.prototype,"handleDataChanged",null);qt=_.T([_.y({is:"ytd-report-channel-modal-header-renderer",disableElementRegistration:!0})],qt);
_.r(qt,"ytd-report-channel-modal-header-renderer",function(){if(tg6!==void 0)return tg6;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-channel-modal-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title-container" class="style-scope ytd-report-channel-modal-header-renderer">\n  <span id="title" class="style-scope ytd-report-channel-modal-header-renderer">[[getSimpleString(data.title)]]</span>\n  <span id="subtitle" class="style-scope ytd-report-channel-modal-header-renderer">[[getSimpleString(data.subtitle)]]</span>\n</div>\n<div id="dismiss-button" class="style-scope ytd-report-channel-modal-header-renderer"></div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return tg6=F},{mode:1});var CZ6;var $G=function(){var F=_.n.apply(this,arguments)||this;F.autoValidate=!1;F.invalid=!1;F.actionMap={"yt-modify-report-form-command":"handleModifyReportFormCommand"};return F};
_.k($G,_.n);_.N=$G.prototype;_.N.attached=function(){var F=this;this.impersonatedChannelUrlRedux?(this.impersonatedChannelUrl=this.impersonatedChannelUrlRedux,this.handleImpersonatedChannelUrlChanged()):this.impersonatedChannelUrl="";requestAnimationFrame(function(){F.channelUrlInput.focusTextInput()})};
_.N.disableNextButton=function(F){_.dW(this.hostElement,"ytd-report-channel-modal-disable-next-button-action",[F])};
_.N.handleImpersonatedChannelUrlChanged=function(){var F=this;this.disableNextButton(!0);this.invalid=!1;_.OO(this,"ytd-report-channel-impersonated-channel-update",function(){var W=F.impersonatedChannelUrl.trim();F.ytdReduxBehavior.dispatch(_.dR({type:"IMPERSONATED_CHANNEL_URL_UPDATED",payload:W}));var E;((E=F.data)==null?0:E.submitEndpoint)&&W&&_.WZ().resolve(_.EJ).resolveCommand(F.data.submitEndpoint,{form:{impersonated_channel_url:W,element:F.hostElement}})},500)};
_.N.handleModifyReportFormCommand=function(F){this.invalid=this.get("modifyReportFormCommand.action",F)!=="REPORT_FORM_ACTION_ENABLE_SUBMIT_BUTTON";this.disableNextButton(this.invalid)};
_.N.updateInvalidFromBinding=function(F){this.invalid=F.detail.value};
_.N.updateImpersonatedChannelUrlFromBinding=function(F){this.impersonatedChannelUrl=F.detail.value};
$G.prototype.handleImpersonatedChannelUrlChanged=$G.prototype.handleImpersonatedChannelUrlChanged;_.T([_.J(_.am),_.Y("design:type",Object)],$G.prototype,"ytdReduxBehavior",void 0);_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],$G.prototype,"ytActionHandlerBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],$G.prototype,"autoValidate",void 0);_.T([_.O(),_.Y("design:type",Object)],$G.prototype,"invalid",void 0);
_.T([_.O(),_.Y("design:type",String)],$G.prototype,"impersonatedChannelUrl",void 0);_.T([_.O({selector:function(F){return F.reportChannelAbuse.impersonatedChannelUrl}}),
_.Y("design:type",String)],$G.prototype,"impersonatedChannelUrlRedux",void 0);_.T([_.O(),_.Y("design:type",Object)],$G.prototype,"data",void 0);_.T([_.gQ("#text-input"),_.Y("design:type",Object)],$G.prototype,"channelUrlInput",void 0);_.T([_.ea("impersonatedChannelUrl"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],$G.prototype,"handleImpersonatedChannelUrlChanged",null);
$G=_.T([_.y({is:"ytd-report-channel-modal-impersonation-renderer",disableElementRegistration:!0})],$G);
_.r($G,"ytd-report-channel-modal-impersonation-renderer",function(){if(CZ6!==void 0)return CZ6;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-channel-modal-impersonation-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-text-input-form-field-renderer id="text-input" auto-validate="[[autoValidate]]" component-style="TEXT_INPUT_FORM_FIELD_OUTLINED" data="[[data.impersonationTextField.textInputFormFieldRenderer]]" invalid="[[invalid]]" value="[[impersonatedChannelUrl]]" on-invalid-changed="updateInvalidFromBinding" on-value-changed="updateImpersonatedChannelUrlFromBinding" class="style-scope ytd-report-channel-modal-impersonation-renderer"></yt-text-input-form-field-renderer>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return CZ6=F},{mode:1});var B78;var vfN;var Zt=function(){return _.n.apply(this,arguments)||this};
_.k(Zt,_.n);Zt.prototype.onCheckboxToggled=function(F){var W,E,h=(E=_.D((W=this.data)==null?void 0:W.video,_.rZ))==null?void 0:E.videoId;h&&this.ytdReduxBehavior.dispatch(F.target.checked?_.dR({type:"VIDEO_SELECTED",payload:h}):_.dR({type:"VIDEO_UNSELECTED",payload:h}))};
Zt.prototype.configureRendererStamper=function(){return{video:{id:"video",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isPostCompactVideo:!0}}}}}};
_.Sn.Object.defineProperties(Zt.prototype,{video:{configurable:!0,enumerable:!0,get:function(){var F,W=(F=this.data)==null?void 0:F.video;if(!W)return{};var E;F=(E=_.D(W,_.rZ))==null?void 0:E.navigationEndpoint;if(!F)return W;_.D(F==null?void 0:F.commandMetadata,_.m1)&&(_.D(F.commandMetadata,_.m1).ignoreNavigation=!0);return W}}});
_.T([_.O({reflectToAttribute:!0,selector:function(F,W){return W in F.reportChannelAbuse.selectedVideoIds},
selectorArgs:["data.video.videoRenderer.videoId"]}),_.Y("design:type",Boolean)],Zt.prototype,"checked",void 0);_.T([_.O(),_.Y("design:type",Object)],Zt.prototype,"data",void 0);_.T([_.a("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Zt.prototype,"video",null);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Zt.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],Zt.prototype,"ytRendererstamperBehavior",void 0);
_.T([_.J(_.am),_.Y("design:type",Object)],Zt.prototype,"ytdReduxBehavior",void 0);Zt=_.T([_.y({is:"ytd-selectable-video-renderer",disableElementRegistration:!0})],Zt);
_.r(Zt,"ytd-selectable-video-renderer",function(){if(vfN!==void 0)return vfN;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-selectable-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-checkbox checked="[[checked]]" on-change="onCheckboxToggled" class="style-scope ytd-selectable-video-renderer">\n  <div id="video" class="style-scope ytd-selectable-video-renderer"></div>\n</tp-yt-paper-checkbox>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return vfN=F},{mode:1});var XN=function(){var F=_.n.apply(this,arguments)||this;F.monitorScroll=!0;return F};
_.k(XN,_.n);XN.prototype.configureRendererStamper=function(){return{"data.selectableVideos":{id:"selectable-videos",mapping:{selectableVideoRenderer:{component:"ytd-selectable-video-renderer"}},events:!0}}};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],XN.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],XN.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],XN.prototype,"data",void 0);XN=_.T([_.y({is:"ytd-selectable-video-list-renderer",disableElementRegistration:!0})],XN);
_.r(XN,"ytd-selectable-video-list-renderer",function(){if(B78!==void 0)return B78;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-selectable-video-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="selectable-videos" hidden="[[!data.selectableVideos.length]]" class="style-scope ytd-selectable-video-list-renderer"></div>\n<div id="empty-state-message" hidden="[[data.selectableVideos.length]]" class="style-scope ytd-selectable-video-list-renderer">\n  [[getSimpleString(data.emptyStateMessage)]]\n</div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return B78=F},{mode:1});var IjP;_.Hr("multiPageMenuSectionItems","toggleItemRenderer","ytd-toggle-item-renderer");var Hl=function(){return _.n.apply(this,arguments)||this};
_.k(Hl,_.n);Hl.prototype.onChange=function(F){if(F=_.oo(F).checked?this.data.toggleOnActions:this.data.toggleOffActions)if(_.c("kevlar_command_handler_migration_killswitch"))_.Rj(this.hostElement,F,this.hostElement);else{F=_.U(F);for(var W=F.next();!W.done;W=F.next())this.ytComponentBehavior.resolveCommand(W.value)}};
Hl.prototype.isEnabled=function(){return!!this.data.toggleOnActions||!!this.data.toggleOffActions};
Hl.prototype.updateDataToggledFromBinding=function(F){this.set("data.toggled",F.detail.value)};
_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],Hl.prototype,"ytComponentBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Hl.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],Hl.prototype,"data",void 0);_.T([_.O({computed:"isEnabled(data)"}),_.Y("design:type",Boolean)],Hl.prototype,"enabled",void 0);Hl=_.T([_.y({is:"ytd-toggle-item-renderer",disableElementRegistration:!0})],Hl);
_.r(Hl,"ytd-toggle-item-renderer",function(){if(IjP!==void 0)return IjP;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-toggle-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" items="[[data.descriptionLines]]" class="style-scope ytd-toggle-item-renderer">\n  <div class="description style-scope ytd-toggle-item-renderer">[[getSimpleString(item)]]</div>\n</template>\n<div id="caption-container" class="style-scope ytd-toggle-item-renderer">\n  <div id="caption" class="style-scope ytd-toggle-item-renderer">[[getSimpleString(data.label)]]</div>\n  <tp-yt-paper-toggle-button checked="[[data.toggled]]" disabled="[[!enabled]]" noink="" on-change="onChange" on-checked-changed="updateDataToggledFromBinding" class="style-scope ytd-toggle-item-renderer">\n  </tp-yt-paper-toggle-button>\n</div>\n<template is="dom-repeat" items="[[data.extraDescriptionLines]]" class="style-scope ytd-toggle-item-renderer">\n  <div class="extra-description style-scope ytd-toggle-item-renderer">\n    <yt-formatted-string text="[[item]]" class="style-scope ytd-toggle-item-renderer"></yt-formatted-string>\n  </div>\n</template>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return IjP=F},{mode:1});var cLF;var Du6;var xuF;var Pl=function(){var F=_.n.apply(this,arguments)||this;F.setVisible=!1;F.boundOnSubmitButtonClick=function(){F.onSubmitButtonClick()};
F.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged","yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return F};
_.k(Pl,_.n);Pl.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{"on-tap":"[[boundOnSubmitButtonClick]]"},params:{noink:!0}}}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0},params:{noink:!0}}}}}};
Pl.prototype.handleSurveyFlowStepOptionChanged=function(){this.setVisible=!0};
Pl.prototype.onSubmitButtonClick=function(){var F;((F=this.data)==null?0:F.submitEndpoint)&&!_.c("enable_ytc_refunds_submit_form_signal_action")&&_.UT(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
Pl.prototype.handleSignalActionSubmitForm=function(){var F;((F=this.data)==null?0:F.submitEndpoint)&&_.UT(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
_.Sn.Object.defineProperties(Pl.prototype,{visibilityHidden:{configurable:!0,enumerable:!0,get:function(){var F;return!((F=this.data)==null||!F.hiddenByDefault)&&!this.setVisible}}});
_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],Pl.prototype,"ytActionHandlerBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Pl.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],Pl.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],Pl.prototype,"setVisible",void 0);_.T([_.O(),_.Y("design:type",Object)],Pl.prototype,"data",void 0);
_.T([_.O(),_.Y("design:type",Object)],Pl.prototype,"surveyFeedbackData",void 0);_.T([_.O(),_.Y("design:type",Object)],Pl.prototype,"boundOnSubmitButtonClick",void 0);_.T([_.O({reflectToAttribute:!0}),_.a("data","setVisible"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Pl.prototype,"visibilityHidden",null);Pl=_.T([_.$3({is:"yt-flow-footer-renderer",disableElementRegistration:!0})],Pl);
_.r(Pl,"yt-flow-footer-renderer",function(){if(xuF===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-flow-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_flow_footer_renderer.yt.flow.footer.renderer.css.js--\x3e<div id="secondary-button" hidden$="[[!data.secondaryButton]]" class="style-scope yt-flow-footer-renderer"></div><div id="primary-button" hidden$="[[!data.primaryButton]]" class="style-scope yt-flow-footer-renderer"></div>');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);var W=F.content,E=W.insertBefore;Du6===void 0&&(Du6=document.createElement("template"));var h=Du6;E.call(W,h.content.cloneNode(!0),F.content.firstChild);xuF=F}F=xuF;return F},{mode:2});var J9=function(){return _.n.apply(this,arguments)||this};
_.k(J9,_.n);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],J9.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.am),_.Y("design:type",Object)],J9.prototype,"ytdReduxBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],J9.prototype,"data",void 0);_.T([_.O({selector:function(F){return F.ypc.surveyFeedbackData}}),
_.Y("design:type",Object)],J9.prototype,"surveyFeedbackData",void 0);J9=_.T([_.y({disableElementRegistration:!0,is:"ytd-flow-footer-renderer"})],J9);
_.r(J9,"ytd-flow-footer-renderer",function(){if(cLF!==void 0)return cLF;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flow-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-flow-footer-renderer data="[[data]]" survey-feedback-data="[[surveyFeedbackData]]" class="style-scope ytd-flow-footer-renderer">\n</yt-flow-footer-renderer>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return cLF=F},{mode:_.E6("kevlar_poly_si_batch_j025")?1:2});var k9P;var ALO;var ap=function(){var F=_.n.apply(this,arguments)||this;F.actionMap={"yt-broadcast-user-invalidation-action":"updateMenu_","yt-hide-enclosing-action":"handleHideEnclosingAction_"};return F};
_.k(ap,_.n);_.N=ap.prototype;_.N.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:_.Pr("multiPageMenuSectionItems")}}};
_.N.handleHideEnclosingAction_=function(F){if(this.data&&this.data.items)for(var W=0;W<this.data.items.length;W++){var E=this.data.items[W].notificationRenderer;if(E&&E.notificationId==F.hideEnclosingAction.notificationId){this.splice("data.items",W,1);_.dW(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.maybeHideNotificationSection_();break}}};
_.N.maybeHideNotificationSection_=function(){this.data&&this.data.items&&this.data.items.length==0&&_.EO(this.hostElement,"hidden",!0)};
_.N.updateMenu_=function(F){if(this.ytRendererBehavior.parentComponent.isPopUpOpen&&this.data&&this.data.continuations&&F&&!F.doNotRefreshInbox){F=this.data.continuations;for(var W=0;W<F.length;W++)if(F[W].invalidationContinuationData){var E=void 0;var h=(E=F[W].invalidationContinuationData)==null?void 0:E.continuation;break}F=_.xd.clone(this.data.continuationUpdateEndpoint||null);F.continuation=h;F.click_tracking_params=this.data.trackingParams;_.UT(this.hostElement,[F])}};
_.N.onServiceRequestCompleted_=function(F,W){if(this.data&&(F=W.actions)){W=0;for(var E=F.length;W<E;W++){var h=_.D(F[W],_.z4e);if(!h)break;if((h.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"||h.target==="CONTINUATION_TARGET_CONVERSATION_MENU")&&h.continuationItems&&this.data.items){var d=this.data.items.length-1;this.data.items[d].continuationItemRenderer&&this.splice.apply(this,["data.items",d,1].concat(h.continuationItems))}}}};
ap.prototype.onServiceRequestCompleted_=ap.prototype.onServiceRequestCompleted_;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],ap.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],ap.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],ap.prototype,"ytActionHandlerBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],ap.prototype,"data",void 0);
_.T([_.R4("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.uz]),_.Y("design:returntype")],ap.prototype,"onServiceRequestCompleted_",null);ap=_.T([_.$3({is:"yt-multi-page-menu-section-renderer",disableElementRegistration:!0})],ap);
_.We()(ap,"yt-multi-page-menu-section-renderer",function(){if(ALO===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-multi-page-menu-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.account.yt_multi_page_menu_section_renderer.yt.multi.page.menu.section.renderer.css.js--\x3e<div id="section-title" hidden="[[!data.notificationSectionTitle]]" class="style-scope yt-multi-page-menu-section-renderer">\n  <h2 class="style-scope yt-multi-page-menu-section-renderer">\n    <yt-formatted-string text="[[data.notificationSectionTitle]]" class="style-scope yt-multi-page-menu-section-renderer"></yt-formatted-string>\n  </h2>\n</div>\n<div id="items" class="style-scope yt-multi-page-menu-section-renderer"></div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;k9P===void 0&&(k9P=document.createElement("template"));var h=k9P;E.call(W,h.content.cloneNode(!0),F.content.firstChild);ALO=F}F=ALO;return F},{allowedProps:["data"],
mode:2});var sGP;var Lm6;var fl=function(){return _.n.apply(this,arguments)||this};
_.k(fl,_.n);fl.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0},params:{noink:!0}}}}}};
_.Sn.Object.defineProperties(fl.prototype,{showProgressBar:{configurable:!0,enumerable:!0,get:function(){var F;return((F=this.data)==null?void 0:F.progress)!=null}},
progress:{configurable:!0,enumerable:!0,get:function(){var F;return((F=this.data)==null?void 0:F.progress)==null?0:this.data.progress*100}}});
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],fl.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],fl.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],fl.prototype,"data",void 0);_.T([_.a("data.progress"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],fl.prototype,"showProgressBar",null);
_.T([_.a("data.progress"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],fl.prototype,"progress",null);fl=_.T([_.$3({is:"yt-flow-header-renderer",disableElementRegistration:!0})],fl);
_.r(fl,"yt-flow-header-renderer",function(){if(Lm6===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-flow-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_flow_header_renderer.yt.flow.header.renderer.css.js--\x3e<div id="top-bar" class="style-scope yt-flow-header-renderer">\n  <div id="action-button" hidden$="[[!data.actionButton]]" class="style-scope yt-flow-header-renderer"></div>\n  <yt-formatted-string id="title" force-default-style="" split-lines="1" text="[[data.title]]" class="style-scope yt-flow-header-renderer">\n  </yt-formatted-string>\n</div>\n<tp-yt-paper-progress id="progress-bar" hidden="[[!showProgressBar]]" value="[[progress]]" class="style-scope yt-flow-header-renderer"></tp-yt-paper-progress>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;sGP===void 0&&(sGP=document.createElement("template"));var h=sGP;E.call(W,h.content.cloneNode(!0),F.content.firstChild);Lm6=F}F=Lm6;return F},{mode:2});var qLq;var $u6;var Ol=function(){return _.n.apply(this,arguments)||this};
_.k(Ol,_.n);Ol.prototype.configureRendererStamper=function(){return{"data.text":{id:"text",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}}}};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Ol.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],Ol.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],Ol.prototype,"data",void 0);Ol=_.T([_.$3({is:"yt-post-confirmation-flow-step-renderer",disableElementRegistration:!0})],Ol);
_.r(Ol,"yt-post-confirmation-flow-step-renderer",function(){if($u6===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-post-confirmation-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_post_confirmation_flow_step_renderer.yt.post.confirmation.flow.step.renderer.css.js--\x3e<div id="container" class="style-scope yt-post-confirmation-flow-step-renderer"><div id="text" class="style-scope yt-post-confirmation-flow-step-renderer"></div></div>');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);var W=F.content,E=W.insertBefore;qLq===void 0&&(qLq=document.createElement("template"));var h=qLq;E.call(W,h.content.cloneNode(!0),F.content.firstChild);$u6=F}F=$u6;return F},{mode:2});var Z1x;var X3g;var bN=function(){return _.n.apply(this,arguments)||this};
_.k(bN,_.n);
bN.prototype.configureRendererStamper=function(){return{"data.userInfo":{id:"user-info",mapping:{cardItemTextWithImageRenderer:{component:"yt-card-item-text-with-image-renderer"}}},"data.confirmationText":{id:"confirmation-text",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}},"data.confirmationDetailsHeader":{id:"confirmation-details",mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"}}},"data.productDetails":{id:"product-details",mapping:{activityItemRenderer:{component:"yt-activity-item-renderer"}}},
"data.billingDetails":{id:"billing-details",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}}}};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],bN.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],bN.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],bN.prototype,"data",void 0);bN=_.T([_.$3({is:"yt-refund-confirmation-flow-step-renderer",disableElementRegistration:!0})],bN);
_.r(bN,"yt-refund-confirmation-flow-step-renderer",function(){if(X3g===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-refund-confirmation-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_refund_confirmation_flow_step_renderer.yt.refund.confirmation.flow.step.renderer.css.js--\x3e<div id="container" class="style-scope yt-refund-confirmation-flow-step-renderer"><div id="user-info" class="style-scope yt-refund-confirmation-flow-step-renderer"></div><div id="confirmation-text" class="style-scope yt-refund-confirmation-flow-step-renderer"></div><div id="confirmation-details" class="style-scope yt-refund-confirmation-flow-step-renderer"></div><div id="product-details" class="style-scope yt-refund-confirmation-flow-step-renderer"></div><div id="billing-details" class="style-scope yt-refund-confirmation-flow-step-renderer"></div></div>');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);var W=F.content,E=W.insertBefore;Z1x===void 0&&(Z1x=document.createElement("template"));var h=Z1x;E.call(W,h.content.cloneNode(!0),F.content.firstChild);X3g=F}F=X3g;return F},{mode:2});_.ht(Qx6);_.ht(z0F);var tFK=_.XF({avatarViewModel:_.fI});_.ht(CC6);var BRF=_.XF({commentInteractionViewModel:z0F,sharedSubscriptionViewModel:CC6,buttonViewModel:_.rk});_.ht(vrg);_.ht(Isw);_.ht(cEw);_.ht(Dn6);_.ht(xnx);var krT=_.XF({profileIdentityInfoViewModel:_.LB$,profileInfoViewModel:xnx});_.ht(AEF);_.Nj(AEF,"yt-profile-card-view-model",{propNames:["data"]});var lN=function(){var F=_.n.apply(this,arguments)||this;F.enableFocusFix=_.c("music_web_enable_focus_on_setting_menu_fix")&&_.l0("IS_MOBILE_WEB",!1);F.covered=!1;F.hideMenu=!1;F.isCommentNotificationOnProfileCard=!1;F.scrolledByTouch=!1;F.disableBackdropFilter=_.c("web_disable_backdrop_filter");F.HIGH_PRIORITY_NOTIFICATION_DISPLAY_TIMEOUT_MS=4E3;return F};
_.k(lN,_.n);_.N=lN.prototype;
_.N.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{activeAccountHeaderRenderer:"ytd-active-account-header-renderer",flowHeaderRenderer:"yt-flow-header-renderer",simpleMenuHeaderRenderer:"ytd-simple-menu-header-renderer",reportChannelModalHeaderRenderer:"ytd-report-channel-modal-header-renderer"}},"data.sections":{id:"sections",mapping:{additionalContextRenderer:"ytd-report-channel-modal-additional-context-renderer",abuseTypeSelectorRenderer:"ytd-abuse-type-selector-renderer",accountSectionListRenderer:"ytd-account-section-list-renderer",
backgroundPromoRenderer:"ytd-background-promo-renderer",commentVideoThumbnailHeaderRenderer:"ytd-comment-video-thumbnail-header-renderer",impersonationScreenRenderer:"ytd-report-channel-modal-impersonation-renderer",itemSectionRenderer:"ytd-comments",messageRenderer:"ytd-message-renderer",multiPageMenuNotificationSectionRenderer:"yt-multi-page-menu-section-renderer",multiPageMenuSectionRenderer:"yt-multi-page-menu-section-renderer",postConfirmationFlowStepRenderer:"yt-post-confirmation-flow-step-renderer",
refundConfirmationFlowStepRenderer:"yt-refund-confirmation-flow-step-renderer",selectableVideoListRenderer:"ytd-selectable-video-list-renderer",surveyFlowStepRenderer:"ytd-survey-flow-step-renderer",toggleItemRenderer:"ytd-toggle-item-renderer",profileCardViewModel:"yt-profile-card-view-model",continuationItemRenderer:"ytd-continuation-item-renderer"},events:!0},"data.footer":{id:"footer",mapping:{multiPageMenuSectionRenderer:"yt-multi-page-menu-section-renderer",reportChannelModalFooterRenderer:"ytd-report-channel-modal-footer-renderer",
flowFooterRenderer:"ytd-flow-footer-renderer"}}}};
_.N.ready=function(){var F=this;this.JSC$17870_containerElement.addEventListener("scroll",function(){F.ytRendererBehavior.markDirty()})};
_.N.attributeChanged=function(F,W){F==="menu-style"&&_.dW(this.hostElement,"yt-multi-page-menu-closed-action",[W])};
_.N.detached=function(){this.hostElement.removeEventListener("yt-rendererstamper-finished",_.UO(this,this.focusOnStampFinished))};
_.N.focusFirstItem=function(){this.doFocus();this.hostElement.addEventListener("yt-rendererstamper-finished",_.UO(this,this.focusOnStampFinished))};
_.N.reset=function(){this.closeJobId&&(_.P0.cancelJob(this.closeJobId),this.closeJobId=0);this.covered=!1};
_.N.focusOnStampFinished=function(F){F.detail.container===this.sectionsElement&&(this.hostElement.removeEventListener("yt-rendererstamper-finished",_.UO(this,this.focusOnStampFinished)),this.doFocus())};
_.N.doFocus=function(){var F=_.L9_(this.sectionsElement);F.length&&F[0].focus()};
_.N.computeMenuStyle=function(F){return F?F.toLowerCase().replace(/_/g,"-"):""};
_.N.computeIsCommentNotificationOnProfileCard=function(F){return _.c("enable_profile_cards_on_comments")&&F.style==="MULTI_PAGE_MENU_STYLE_TYPE_PROFILE_CARD_COMMENTS"};
_.N.computeHideMenu=function(F,W){return F||!(!W||!W.showLoadingSpinner)};
_.N.onPopupClosed=function(){this.isPopUpOpen=!1;_.dW(this.hostElement,"yt-multi-page-menu-closed-action",[this.menuStyle])};
_.N.onPopupOpened=function(F,W){this.isPopUpOpen=!0;W.is==="ytd-multi-page-menu-renderer"&&(this.reset(),_.hF(this.hostElement,"yt-refit"),this.enableFocusFix&&this.doFocus(),this.data.style==="MULTI_PAGE_MENU_STYLE_TYPE_REPORT_CHANNEL"&&this.ytdReduxBehavior.dispatch(_.dR({type:"CHANNEL_REPORT_RESET"})))};
_.N.onYtNavigate=function(F,W){this.shouldCloseOnNavigateEvent(W.endpoint)&&_.dW(this.hostElement,"yt-close-all-popups-action")};
_.N.handleEndpoint=function(F){F=_.D(F,_.bE);!this.isCommentNotificationOnProfileCard&&F&&(this.spinnerElement.hidden=!1,this.headerElement.hidden=!0,this.JSC$17870_containerElement.hidden=!0,this.submenuElement.hidden=!0)};
_.N.handleActions=function(F){for(var W=0,E=F.length;W<E;W++){var h=_.D(F[W],n5x);h&&this.handleGetMultiPageMenuAction(h);(h=_.D(F[W],_.z4e))&&this.handleAppendContinuationItemsAction(h)}};
_.N.onServiceRequestSentOrCompleted=function(F,W){F.detail&&F.detail.endpoint&&this.handleEndpoint(F.detail.endpoint);W.actions&&this.handleActions(W.actions)};
_.N.handleGetMultiPageMenuAction=function(F){var W=document.createElement("ytd-multi-page-menu-renderer");this.refitAfterRender();this.emptySubmenuContainer();_.Z(this.submenuElement).appendChild(W);(F=F.menu.multiPageMenuRenderer)&&this.logSubmenu(F);W.data=F;W.covered=!1;this.covered=!0;this.spinnerElement.hidden=!0};
_.N.handleAppendContinuationItemsAction=function(F){if(this.data&&F.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"&&F.continuationItems&&this.data.sections){var W=this.data.sections.length-1;this.data.sections[W].continuationItemRenderer&&(this.splice("data.sections",this.data.sections.length-1,1),W--);if(this.data.sections[W].multiPageMenuNotificationSectionRenderer&&F.continuationItems){F=_.U(F==null?void 0:F.continuationItems);for(var E=F.next();!E.done;E=F.next())if(E=E.value,_.D(E,gJu)){var h=
void 0,d=void 0,V=void 0,R=void 0,M=void 0;((h=this)==null?0:(d=h.data)==null?0:(V=d.sections)==null?0:(R=V[W])==null?0:(M=R.multiPageMenuNotificationSectionRenderer)==null?0:M.items)&&this.push("data.sections."+W+".multiPageMenuNotificationSectionRenderer.items",E)}else if(_.D(E,_.KZe)||_.D(E,_.QT))this.push("data.sections",E),W++}}};
_.N.logSubmenu=function(F){if(!_.c("kevlar_multi_page_menu_sub_page_loggin_killswitch")){var W=this.ytRendererBehavior.getScreenLayer(),E=_.JR(W),h=_.Pf(W);if((F=F.trackingParams)&&E&&h){var d=_.ve(F);_.c("combine_ve_grafts")?_.z4().graftServerVe(F,h,W):_.y7(E,h,d)}}};
_.N.emptySubmenuContainer=function(){for(var F=_.Z(this.submenuElement);F.firstChild;)F.removeChild(F.firstChild)};
_.N.onMenuBackTap=function(F){_.hF(this.hostElement,"yt-submenu-closed");F.stopPropagation()};
_.N.onSubmenuClosed=function(F){_.oo(F)!==this.hostElement&&(this.covered=!1,_.hF(this.hostElement,"yt-refit"),F.stopPropagation())};
_.N.onRetrieveLocation=function(F,W){W.hasComments&&(W.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0),F.stopPropagation())};
_.N.shouldCloseOnNavigateEvent=function(F){if(!F)return!0;if(_.D(F,_.pyT)||_.D(F,_.mGO)||_.D(F,_.SjH)||_.D(F,_.T5))return!1;var W;return((W=_.D(F==null?void 0:F.commandMetadata,_.m1))==null?0:W.ignoreNavigation)?!1:!0};
_.N.onContainerTouchStart=function(){this.scrolledByTouch=!0};
_.N.onContainerTouchEnd=function(){this.scrolledByTouch=!1};
_.N.refitAfterRender=function(){var F=this;_.wT(this,function(){_.hF(F.hostElement,"yt-refit")})};
lN.prototype.refitAfterRender=lN.prototype.refitAfterRender;lN.prototype.onRetrieveLocation=lN.prototype.onRetrieveLocation;lN.prototype.onSubmenuClosed=lN.prototype.onSubmenuClosed;lN.prototype.onMenuBackTap=lN.prototype.onMenuBackTap;lN.prototype.onServiceRequestSentOrCompleted=lN.prototype.onServiceRequestSentOrCompleted;lN.prototype.onYtNavigate=lN.prototype.onYtNavigate;lN.prototype.onPopupOpened=lN.prototype.onPopupOpened;lN.prototype.onPopupClosed=lN.prototype.onPopupClosed;
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],lN.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.B$.YtEventForwardingBehavior),_.Y("design:type",Object)],lN.prototype,"ytEventForwardingBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],lN.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.am),_.Y("design:type",Object)],lN.prototype,"ytdReduxBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],lN.prototype,"data",void 0);
_.T([_.O(),_.Y("design:type",Object)],lN.prototype,"enableFocusFix",void 0);_.T([_.O(),_.Y("design:type",Object)],lN.prototype,"covered",void 0);_.T([_.O({computed:"computeHideMenu(covered, data)"}),_.Y("design:type",Object)],lN.prototype,"hideMenu",void 0);_.T([_.O({reflectToAttribute:!0,computed:"computeMenuStyle(data.style)"}),_.Y("design:type",String)],lN.prototype,"menuStyle",void 0);
_.T([_.O({computed:"computeIsCommentNotificationOnProfileCard(data)"}),_.Y("design:type",Object)],lN.prototype,"isCommentNotificationOnProfileCard",void 0);_.T([_.O(),_.Y("design:type",Boolean)],lN.prototype,"isPopUpOpen",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],lN.prototype,"scrolledByTouch",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],lN.prototype,"disableBackdropFilter",void 0);
_.T([_.gQ("#sections"),_.Y("design:type",HTMLElement)],lN.prototype,"sectionsElement",void 0);_.T([_.gQ("#spinner"),_.Y("design:type",HTMLElement)],lN.prototype,"spinnerElement",void 0);_.T([_.gQ("#header"),_.Y("design:type",HTMLElement)],lN.prototype,"headerElement",void 0);_.T([_.gQ("#container"),_.Y("design:type",HTMLElement)],lN.prototype,"JSC$17870_containerElement",void 0);_.T([_.gQ("#submenu"),_.Y("design:type",HTMLElement)],lN.prototype,"submenuElement",void 0);
_.T([_.R4("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],lN.prototype,"onPopupClosed",null);_.T([_.R4("yt-popup-opened"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],lN.prototype,"onPopupOpened",null);_.T([_.R4("yt-navigate"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],lN.prototype,"onYtNavigate",null);
_.T([_.R4("yt-service-request-completed"),_.R4("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.uz]),_.Y("design:returntype")],lN.prototype,"onServiceRequestSentOrCompleted",null);_.T([_.R4("yt-menu-back-tapped"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],lN.prototype,"onMenuBackTap",null);
_.T([_.R4("yt-submenu-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],lN.prototype,"onSubmenuClosed",null);_.T([_.R4("yt-retrieve-location"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],lN.prototype,"onRetrieveLocation",null);_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],lN.prototype,"refitAfterRender",null);
lN=_.T([_.y({is:"ytd-multi-page-menu-renderer",disableElementRegistration:!0})],lN);
_.r(lN,"ytd-multi-page-menu-renderer",function(){if(RZ6!==void 0)return RZ6;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-multi-page-menu-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="spinner" hidden="[[!data.showLoadingSpinner]]" class="style-scope ytd-multi-page-menu-renderer">\n  <tp-yt-paper-spinner active="[[data.showLoadingSpinner]]" class="style-scope ytd-multi-page-menu-renderer"></tp-yt-paper-spinner>\n</div>\n<div id="header" hidden="[[hideMenu]]" class="style-scope ytd-multi-page-menu-renderer"></div>\n<div id="container" class="menu-container style-scope ytd-multi-page-menu-renderer" hidden="[[hideMenu]]" on-touchstart="onContainerTouchStart" on-touchend="onContainerTouchEnd">\n  <div id="sections" class="style-scope ytd-multi-page-menu-renderer"></div>\n  <div id="footer" class="style-scope ytd-multi-page-menu-renderer"></div>\n</div>\n<div id="submenu" class="menu-container style-scope ytd-multi-page-menu-renderer" hidden="[[!covered]]"></div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return RZ6=F},{mode:1});var H1O;var nl=function(){var F=_.n.apply(this,arguments)||this;F.actionMap={"yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction","yt-update-topbar-avatar-action":"handleUpdateTopbarAvatarAction"};return F};
_.k(nl,_.n);_.N=nl.prototype;_.N.created=function(){this.showTooltips=!0};
_.N.computeAccessibility_=function(F){return this.get("accessibility.accessibilityData",F)||null};
_.N.onTap=function(){var F=_.Nc(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]);this.toggleIconState(!0);if(F&&F.length===1&&F[0])_.dW(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);else{var W;if((W=this.data)==null?0:W.menuRenderer)this.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:this.data.menuRenderer}});else{var E;((E=this.data)==null?0:E.menuRequest)&&_.UT(this.hostElement,[this.data.menuRequest])}}};
_.N.handleTopbarMenuClosedAction=function(F){var W,E;(new Map([["multi-page-menu-style-type-creation","VIDEO_CALL"],["multi-page-menu-style-type-notifications","NOTIFICATIONS"],["multi-page-menu-style-type-yt-apps","APPS"]])).get(F)===((W=this.data)==null?void 0:(E=W.icon)==null?void 0:E.iconType)&&this.toggleIconState(!1)};
_.N.toggleIconState=function(F){_.c("kevlar_system_icons")&&this.iconButton&&(this.iconButton.pressed=F)};
_.N.handleUpdateTopbarAvatarAction=function(F){var W;F=(W=_.D(F,PBg))==null?void 0:W.avatarUrl;var E,h;W=(E=this.data)==null?void 0:(h=E.avatar)==null?void 0:h.thumbnails;F&&W&&(E={thumbnails:[Object.assign({},W[0],{url:F})]},this.set("data.avatar",E))};
_.Sn.Object.defineProperties(nl.prototype,{container:{configurable:!0,enumerable:!0,get:function(){return _.Z(this.hostElement).querySelector("#button")}}});
nl.prototype.onTap=nl.prototype.onTap;_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],nl.prototype,"ytActionHandlerBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],nl.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Gf),_.Y("design:type",Object)],nl.prototype,"ytdOpenPopupBehavior",void 0);_.T([_.J(_.gqO.YtButtonBehavior),_.Y("design:type",Object)],nl.prototype,"ytButtonBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],nl.prototype,"data",void 0);
_.T([_.gQ("yt-icon-button#button"),_.Y("design:type",Object)],nl.prototype,"iconButton",void 0);_.T([_.R4("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],nl.prototype,"onTap",null);nl=_.T([_.y({is:"ytd-topbar-menu-button-renderer",disableElementRegistration:!0})],nl);
_.r(nl,"ytd-topbar-menu-button-renderer",function(){if(H1O!==void 0)return H1O;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-topbar-menu-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.avatar]]" class="style-scope ytd-topbar-menu-button-renderer">\n  <button id="avatar-btn" aria-haspopup="true" aria-label$="[[data.accessibility.accessibilityData.label]]" class="style-scope ytd-topbar-menu-button-renderer">\n    <yt-img-shadow height="32" thumbnail="[[data.avatar]]" width="32" class="style-scope ytd-topbar-menu-button-renderer"></yt-img-shadow>\n  </button>\n</template>\n<div id="button" class="style-scope ytd-topbar-menu-button-renderer">\n  \n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return H1O=F},{mode:1});var PZ6;var yW=function(){return _.n.apply(this,arguments)||this};
_.k(yW,_.n);yW.prototype.getSelected=function(){return this.reasons.selected};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],yW.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],yW.prototype,"data",void 0);_.T([_.gQ("#reasons"),_.Y("design:type",Object)],yW.prototype,"reasons",void 0);yW=_.T([_.y({is:"ytd-ad-feedback-content",disableElementRegistration:!0})],yW);
_.r(yW,"ytd-ad-feedback-content",function(){if(PZ6!==void 0)return PZ6;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ad-feedback-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.reasonsTitle]]" class="style-scope ytd-ad-feedback-content">\n  <yt-formatted-string id="reasons-title" text="[[data.reasonsTitle]]" class="style-scope ytd-ad-feedback-content">\n  </yt-formatted-string>\n</template>\n<tp-yt-paper-radio-group id="reasons" class="style-scope ytd-ad-feedback-content">\n  <template is="dom-repeat" items="[[data.reasons]]" as="feedbackReason" class="style-scope ytd-ad-feedback-content">\n    <tp-yt-paper-radio-button name="[[index]]" class="style-scope ytd-ad-feedback-content">\n      <yt-formatted-string text="[[feedbackReason.reason]]" class="style-scope ytd-ad-feedback-content">\n      </yt-formatted-string>\n    </tp-yt-paper-radio-button>\n  </template>\n</tp-yt-paper-radio-group>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return PZ6=F},{mode:1});var JLq;var jA=function(){return _.n.apply(this,arguments)||this};
_.k(jA,_.n);_.N=jA.prototype;_.N.onPopupOpened=function(){_.dW(this.hostElement,"yt-mute-ad-action",["ytd-ad-feedback-renderer",this])};
_.N.computeConfirmButton=function(F){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:F.confirmLabel}};
_.N.computeCancelButton=function(F){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:F.cancelLabel}};
_.N.onConfirmTap=function(){var F=this.content.getSelected();F!==void 0&&(F=this.data.reasons[F].endpoint)&&(_.WZ().resolve(_.EJ).resolveCommand(F,{form:{element:this.hostElement}}),_.dW(this.hostElement,"yt-close-popup-action"),this.sendFeedbackSubmitToastAction())};
_.N.sendFeedbackSubmitToastAction=function(){var F;(F=this.data)!=null&&F.completionMessage&&_.dW(this.hostElement,"yt-open-popup-action",[_.pV(this.data.completionMessage),this])};
_.N.onCancelTap=function(){_.dW(this.hostElement,"yt-close-popup-action")};
jA.prototype.onPopupOpened=jA.prototype.onPopupOpened;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],jA.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],jA.prototype,"data",void 0);_.T([_.gQ("#content"),_.Y("design:type",Object)],jA.prototype,"content",void 0);_.T([_.R4("yt-popup-opened"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],jA.prototype,"onPopupOpened",null);
jA=_.T([_.y({is:"ytd-ad-feedback-renderer",disableElementRegistration:!0})],jA);
_.r(jA,"ytd-ad-feedback-renderer",function(){if(JLq!==void 0)return JLq;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ad-feedback-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-ad-feedback-renderer"></yt-formatted-string>\n<ytd-ad-feedback-content id="content" data="[[data]]" class="style-scope ytd-ad-feedback-renderer"></ytd-ad-feedback-content>\n<div class="buttons style-scope ytd-ad-feedback-renderer">\n  <ytd-button-renderer data="[[computeCancelButton(data)]]" on-tap="onCancelTap" class="style-scope ytd-ad-feedback-renderer">\n  </ytd-button-renderer>\n  <ytd-button-renderer data="[[computeConfirmButton(data)]]" on-tap="onConfirmTap" class="style-scope ytd-ad-feedback-renderer">\n  </ytd-button-renderer>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return JLq=F},{mode:1});var aj6;var iN=function(){return _.n.apply(this,arguments)||this};
_.k(iN,_.n);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],iN.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],iN.prototype,"data",void 0);iN=_.T([_.y({is:"ytd-ad-info-dialog-content",disableElementRegistration:!0})],iN);
_.r(iN,"ytd-ad-info-dialog-content",function(){if(aj6!==void 0)return aj6;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ad-info-dialog-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.adReasons]]" class="style-scope ytd-ad-info-dialog-content">\n  \n  <ul id="ad-reasons" class="style-scope ytd-ad-info-dialog-content">\n    <template is="dom-repeat" items="[[data.adReasons]]" as="reason" class="style-scope ytd-ad-info-dialog-content">\n      <li class="style-scope ytd-ad-info-dialog-content">\n        <yt-formatted-string text="[[reason]]" class="style-scope ytd-ad-info-dialog-content">\n        </yt-formatted-string>\n      </li>\n    </template>\n  </ul>\n</template>\n<yt-formatted-string id="message" split-lines="" text="[[data.dialogMessage]]" class="style-scope ytd-ad-info-dialog-content">\n</yt-formatted-string>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return aj6=F},{mode:1});var fj6;var rB=function(){return _.n.apply(this,arguments)||this};
_.k(rB,_.n);rB.prototype.computeConfirmButton=function(F){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:F.confirmLabel}};
rB.prototype.onConfirmTap=function(){_.dW(this.hostElement,"yt-close-popup-action",["ytd-ad-info-dialog-renderer"])};
rB.prototype.computeShouldShowTitle=function(){var F;return!((F=this.data)==null||!F.title)};
rB.prototype.onPopupClosed=function(){this.data&&this.data.confirmServiceEndpoint&&_.WZ().resolve(_.EJ).resolveCommand(this.data.confirmServiceEndpoint,{form:{element:this.hostElement}})};
rB.prototype.onPopupClosed=rB.prototype.onPopupClosed;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],rB.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],rB.prototype,"data",void 0);_.T([_.R4("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],rB.prototype,"onPopupClosed",null);rB=_.T([_.y({is:"ytd-ad-info-dialog-renderer",disableElementRegistration:!0})],rB);
_.r(rB,"ytd-ad-info-dialog-renderer",function(){if(fj6!==void 0)return fj6;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ad-info-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[computeShouldShowTitle(data.title)]]" class="style-scope ytd-ad-info-dialog-renderer">\n  <h2 id="title" class="style-scope ytd-ad-info-dialog-renderer">[[getSimpleString(data.title)]]</h2>\n</template>\n<ytd-ad-info-dialog-content data="[[data]]" class="style-scope ytd-ad-info-dialog-renderer"></ytd-ad-info-dialog-content>\n<div class="buttons style-scope ytd-ad-info-dialog-renderer">\n  <ytd-button-renderer data="[[computeConfirmButton(data)]]" on-tap="onConfirmTap" class="style-scope ytd-ad-info-dialog-renderer">\n  </ytd-button-renderer>\n</div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return fj6=F},{mode:1});var O1P;var TV=function(){var F=_.n.apply(this,arguments)||this;F.actionButtonClass="action-button";F.dismissButtonId="dismiss-button";F.dialogDismiss=!0;return F};
_.k(TV,_.n);_.N=TV.prototype;_.N.computeInPlayer=function(F){return(F==null?void 0:F.displayType)==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"};
_.N.computedLogo=function(){var F,W;return this.isDarkTheme()?(F=this.data)==null?void 0:F.logoDark:(W=this.data)==null?void 0:W.logo};
_.N.computedHeaderImage=function(){var F,W;return this.isDarkTheme()?(F=this.data)==null?void 0:F.headerImageDark:(W=this.data)==null?void 0:W.headerImage};
_.N.computeLogoIconId=function(){var F,W,E,h=(F=this.computedLogo())==null?void 0:(W=F.sources)==null?void 0:(E=W[0])==null?void 0:E.height;return h&&h%31===0?"logo-icon-with-padding":"logo-icon"};
_.N.computeLogoIconHeight=function(){var F,W,E,h=(F=this.computedLogo())==null?void 0:(W=F.sources)==null?void 0:(E=W[0])==null?void 0:E.height;return h&&h%31===0?"31":"24"};
_.N.onPopupClosed=function(){_.WZ().resolve(_.dS).dispose()};
_.N.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")||this.inPlayer};
_.N.onShow=function(){this.inPlayer&&_.zB(6)};
_.N.impressionLog=function(){if(this.data&&this.data.impressionEndpoints)for(var F=0;F<this.data.impressionEndpoints.length;F++){var W=_.D(this.data.impressionEndpoints[F],_.XP);W&&this.ytComponentBehavior.resolveCommand(W)}};
_.N.onDismissClicked=function(){getComputedStyle(this.dismissButton).getPropertyValue("pointer-events")!=="none"&&_.dW(this.hostElement,"yt-close-popup-action",["ytd-enforcement-message-view-model"])};
_.Sn.Object.defineProperties(TV.prototype,{hasHeaderImage:{configurable:!0,enumerable:!0,get:function(){var F,W;return!((F=this.data)==null||!F.headerImageDark)&&!((W=this.data)==null||!W.headerImage)}},
hasPremiumButton:{configurable:!0,enumerable:!0,get:function(){var F;return!((F=this.data)==null||!F.secondaryButton)}}});
TV.prototype.onPopupClosed=TV.prototype.onPopupClosed;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],TV.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],TV.prototype,"ytComponentBehavior",void 0);_.T([_.J(_.ny.YtVisibilityBehavior),_.Y("design:type",Object)],TV.prototype,"ytVisibilityBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],TV.prototype,"data",void 0);
_.T([_.O(),_.Y("design:type",Object)],TV.prototype,"actionButtonClass",void 0);_.T([_.O(),_.Y("design:type",Object)],TV.prototype,"dismissButtonId",void 0);_.T([_.O(),_.Y("design:type",Object)],TV.prototype,"dialogDismiss",void 0);_.T([_.a("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],TV.prototype,"hasHeaderImage",null);_.T([_.a("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],TV.prototype,"hasPremiumButton",null);
_.T([_.O({reflectToAttribute:!0,computed:"computeInPlayer(data)"}),_.Y("design:type",Boolean)],TV.prototype,"inPlayer",void 0);_.T([_.gQ("#dismiss-button"),_.Y("design:type",HTMLElement)],TV.prototype,"dismissButton",void 0);_.T([_.R4("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],TV.prototype,"onPopupClosed",null);TV=_.T([_.y({is:"ytd-enforcement-message-view-model",disableElementRegistration:!0})],TV);
_.r(TV,"ytd-enforcement-message-view-model",function(){if(O1P!==void 0)return O1P;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-enforcement-message-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-enforcement-message-view-model">\n<div id="header" class="style-scope ytd-enforcement-message-view-model">\n  <yt-image data="[[computedLogo(data)]]" height$="[[computeLogoIconHeight()]]" id$="[[computeLogoIconId()]]" preserve-height="" class="style-scope ytd-enforcement-message-view-model">\n  </yt-image>\n  <yt-button-view-model id="[[dismissButtonId]]" data="[[data.dismissButton]]" icon="[[data.dismissButton.iconName]]" scoping-class-name="[[is]]" on-click="onDismissClicked" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n</div>\n\n<div id="header-image" hidden="[[!hasHeaderImage]]" class="style-scope ytd-enforcement-message-view-model">\n  <yt-image data="[[computedHeaderImage(data)]]" height="64" preserve-height="" class="style-scope ytd-enforcement-message-view-model">\n  </yt-image>\n</div>\n\n<div id="title" class="style-scope ytd-enforcement-message-view-model">\n  <yt-attributed-string data="[[data.title]]" class="style-scope ytd-enforcement-message-view-model"></yt-attributed-string>\n</div>\n\n<ul id="body" class="style-scope ytd-enforcement-message-view-model">\n  <template is="dom-repeat" items="[[data.bulletList.bulletListItems]]" as="item" class="style-scope ytd-enforcement-message-view-model">\n    <li class="style-scope ytd-enforcement-message-view-model">\n      <yt-attributed-string class="body-message style-scope ytd-enforcement-message-view-model" data="[[item.title]]"></yt-attributed-string>\n    </li>\n  </template>\n</ul>\n\n<div id="buttons" class="style-scope ytd-enforcement-message-view-model">\n  <yt-button-view-model classes="[[actionButtonClass]]" data="[[data.primaryButton]]" scoping-class-name="[[is]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n  <yt-button-view-model classes="[[actionButtonClass]]" data="[[data.secondaryButton]]" dialog-dismiss="[[dialogDismiss]]" hidden$="[[!hasPremiumButton]]" scoping-class-name="[[is]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n</div>\n\n<div id="divider" class="style-scope ytd-enforcement-message-view-model"></div>\n\n<div id="feedback" class="style-scope ytd-enforcement-message-view-model">\n  <yt-attributed-string id="feedback-message" data="[[data.feedbackMessage]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-attributed-string>\n</div>\n</div>');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return O1P=F},{mode:1});var b18;var lj6;var op=function(){var F=_.n.apply(this,arguments)||this;F.TEST_ONLY={immediateValidation:function(){F.immediateValidation()},
onValidationResponse:function(W){F.onValidationResponse(W)},
onGenerateHandleFromNameResponse:function(W){F.onGenerateHandleFromNameResponse(W)}};
return F};
_.k(op,_.n);_.N=op.prototype;_.N.onValueChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("value-changed",{detail:{value:this.value,queueProperty:!0}}))};
_.N.validate=function(){this.immediateValidation()};
_.N.applyHandleEdit=function(){this.handleEdit!==void 0&&this.setHandleInputValue(this.handleEdit)};
_.N.setHandleInputValue=function(F){this.handleDir=this.getHandleDir(F);this.handleInput.value=F;this.validationState={status:"PENDING"};this.immediateValidation()};
_.N.getHandleDir=function(F){var W=F===""&&!1;return(W=_.Ipi.test.call(_.Ipi,F))?"rtl":"ltr"};
_.N.onDataChanged=function(){var F,W;this.handleDir=this.getHandleDir((W=(F=this.data)==null?void 0:F.handle)!=null?W:"");var E;this.validationState=((E=this.data)==null?0:E.handle)?{status:"UNKNOWN",handle:this.data.handle}:void 0;var h;((h=this.data)==null?0:h.validateOnInit)&&this.immediateValidation()};
_.N.stopPropagation=function(F){F.stopPropagation()};
_.N.onInput=function(){var F;this.handleDir=this.getHandleDir((F=this.handleInput.value)!=null?F:"");this.wasEdited=!0;this.validationState={status:"PENDING"};this.delayedValidation()};
_.N.onFocusout=function(F){this.handleInput.contains(F.relatedTarget)||this.validationState!==void 0&&this.validationState.status!=="PENDING"||this.immediateValidation()};
_.N.delayedValidation=function(){var F,W;this.debouncedValidation((W=(F=this.data)==null?void 0:F.validationDelayMs)!=null?W:1E3)};
_.N.immediateValidation=function(){this.debouncedValidation(0)};
_.N.debouncedValidation=function(F){var W=this;_.OO(this,"debouncedValidation",function(){var E,h=W.staticValidation((E=W.handleInput.value)!=null?E:"");if(h!==void 0)W.validationState={status:"INVALID",errorIndicator:"BORDER",errorMessage:h};else{var d;if((d=W.data)!=null&&d.validateChannelHandleCommand){W.validationState={status:"LOADING"};var V;W.ytComponentBehavior.resolveCommand(W.data.validateChannelHandleCommand,{form:{handle:(V=W.handleInput.value)!=null?V:""},commandController:{onSuccess:function(R,
M){W.onValidationResponse(M)},
onServerError:function(R,M){W.onValidationServerError(M)}}})}else W.handleUnexpectedValidationError(new _.xC("Missing validateChannelHandleCommand in ChannelHandleInputRenderer.",W.data))}},F)};
_.N.staticValidation=function(F){var W;if(((W=this.data)==null?void 0:W.channelHandleStaticValidationParams)!==void 0){W=this.data.channelHandleStaticValidationParams;if(this.validValueRegexp!==void 0&&!this.validValueRegexp.test(F)&&W.validValueRegexpErrorMessage!==void 0)return W.validValueRegexpErrorMessage;if(W.minLength!==void 0&&F.length<W.minLength&&W.minLengthErrorMessage!==void 0)return W.minLengthErrorMessage;if(W.maxLength!==void 0&&F.length>W.maxLength&&W.maxLengthErrorMessage!==void 0)return W.maxLengthErrorMessage}};
_.N.onValidationResponse=function(F){var W=_.D(F.result,JjK);W===void 0?this.handleUnexpectedValidationError(new _.xC("ValidateChannelHandleResponse does not contain ChannelHandleValidationResultRenderer.",F)):this.handleValidationResultRenderer(W)};
_.N.onValidationServerError=function(F){this.handleUnexpectedValidationError(new _.xC("ValidateChannelHandle request failed.",F))};
_.N.handleValidationResultRenderer=function(F){if(F.handle===void 0)this.handleUnexpectedValidationError(new _.xC("ChannelHandleValidationResultRenderer does not contain handle.",F));else if(F.handle===this.handleInput.value)switch(F.result){case "CHANNEL_HANDLE_VALIDATION_RESULT_OK":this.validationState={status:"OK",handle:F.handle};break;case "CHANNEL_HANDLE_VALIDATION_RESULT_UNAVAILABLE":case "CHANNEL_HANDLE_VALIDATION_RESULT_CONFORMANCE_ERROR":case "CHANNEL_HANDLE_VALIDATION_RESULT_COMPLIANCE_ERROR":this.validationState=
{status:"INVALID",errorIndicator:"ICON",errorMessage:F.errorMessage};break;case "CHANNEL_HANDLE_VALIDATION_RESULT_UNKNOWN":case void 0:this.handleUnexpectedValidationError(new _.xC("Unrecognized ChannelHandleValidationResult",F));break;default:_.RO(F.result)}};
_.N.handleUnexpectedValidationError=function(F){var W;this.validationState={status:"UNKNOWN",handle:(W=this.handleInput.value)!=null?W:""};_.OB(F)};
_.N.stopEventPropagation=function(F){F.stopPropagation()};
_.N.updateHandleOnChannelNameInputChange=function(F){if(!this.wasEdited){var W,E;this.debouncedGenerateHandleFromName(F,(E=(W=this.data)==null?void 0:W.validationDelayMs)!=null?E:1E3)}};
_.N.debouncedGenerateHandleFromName=function(F,W){var E=this;_.OO(this,"debouncedGenerateHandleFromName",function(){var h;(h=E.data)!=null&&h.validateChannelHandleCommand?E.ytComponentBehavior.resolveCommand(E.data.validateChannelHandleCommand,{form:{name:F},commandController:{onSuccess:function(d,V){E.onGenerateHandleFromNameResponse(V)},
onServerError:function(d,V){_.OB(new _.xC("Error calling GenerateHandleFromName",V))}}}):_.OB(new _.xC("Missing validateChannelHandleCommand in ChannelHandleInputRenderer when generate handle from name.",E.data))},W)};
_.N.onGenerateHandleFromNameResponse=function(F){this.wasEdited||((F=_.D(F.result,aD$))?this.setHandleInputValue(F.handle):_.OB(new _.xC("Invalid results when generate handle from name")))};
_.Sn.Object.defineProperties(op.prototype,{value:{configurable:!0,enumerable:!0,get:function(){var F;if(F=this.validationState)F=this.validationState,F=F.status==="OK"||F.status==="UNKNOWN";if(F)return this.validationState.handle}},
errorIndicator:{configurable:!0,enumerable:!0,get:function(){var F;if(((F=this.validationState)==null?void 0:F.status)==="INVALID")return this.validationState.errorIndicator}},
borderErrorIndicator:{configurable:!0,enumerable:!0,get:function(){return this.errorIndicator==="BORDER"}},
handleEdit:{configurable:!0,enumerable:!0,get:function(){var F,W=(F=this.channelHandleEntity)==null?void 0:F.handleEdit;this.handleDir=this.getHandleDir(W!=null?W:"");return W}},
validValueRegexp:{configurable:!0,enumerable:!0,get:function(){var F,W;if(((F=this.data)==null?void 0:(W=F.channelHandleStaticValidationParams)==null?void 0:W.validValueRegexp)!==void 0)return new RegExp("^"+this.data.channelHandleStaticValidationParams.validValueRegexp+"$")}}});
op.prototype.stopEventPropagation=op.prototype.stopEventPropagation;op.prototype.onDataChanged=op.prototype.onDataChanged;op.prototype.applyHandleEdit=op.prototype.applyHandleEdit;op.prototype.onValueChanged=op.prototype.onValueChanged;_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],op.prototype,"ytComponentBehavior",void 0);_.T([_.J(_.am),_.Y("design:type",Object)],op.prototype,"ytdReduxBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],op.prototype,"data",void 0);
_.T([_.O(),_.Y("design:type",Boolean)],op.prototype,"wasEdited",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",String)],op.prototype,"handleDir",void 0);_.T([_.gQ("#handle-input"),_.Y("design:type",Object)],op.prototype,"handleInput",void 0);_.T([_.O(),_.a("validationState"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],op.prototype,"value",null);
_.T([_.ea("value"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],op.prototype,"onValueChanged",null);_.T([_.a("validationState"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],op.prototype,"errorIndicator",null);_.T([_.O({reflectToAttribute:!0}),_.a("errorIndicator"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],op.prototype,"borderErrorIndicator",null);
_.T([_.O({selectorArgs:["data.channelHandleEntityKey"],selector:function(F,W){return _.Mn(F.entities,"channelHandle",W)}}),
_.Y("design:type",Object)],op.prototype,"channelHandleEntity",void 0);_.T([_.a("channelHandleEntity"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],op.prototype,"handleEdit",null);_.T([_.ea("handleEdit"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],op.prototype,"applyHandleEdit",null);_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],op.prototype,"onDataChanged",null);
_.T([_.a("data.channelHandleStaticValidationParams.validValueRegexp"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],op.prototype,"validValueRegexp",null);_.T([_.R4("yt-service-request-sent"),_.R4("yt-service-request-completed"),_.R4("yt-service-request-error"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],op.prototype,"stopEventPropagation",null);op=_.T([_.y({is:"ytd-channel-handle-input-renderer",disableElementRegistration:!0})],op);
_.r(op,"ytd-channel-handle-input-renderer",function(){if(lj6!==void 0)return lj6;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-handle-input-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-input id="handle-input" always-float-label="" dir="[[handleDir]]" input-dir="[[handleDir]]" invalid="[[equals(errorIndicator, \'BORDER\')]]" label="[[data.label]]" required="" use-v2-underline="" value="[[data.handle]]" on-focusout="onFocusout" on-input="onInput" on-keydown="stopPropagation" class="style-scope ytd-channel-handle-input-renderer">\n  <span id="prefix" slot="prefix" class="style-scope ytd-channel-handle-input-renderer">@</span>\n  <div id="suffix-container" slot="suffix" class="style-scope ytd-channel-handle-input-renderer">\n    <div id="icon-container" class="style-scope ytd-channel-handle-input-renderer">\n      <template is="dom-if" restamp="" if="[[equals(validationState.status, \'LOADING\')]]" class="style-scope ytd-channel-handle-input-renderer">\n        <tp-yt-paper-spinner-lite id="spinner" active="" class="style-scope ytd-channel-handle-input-renderer">\n        </tp-yt-paper-spinner-lite>\n      </template>\n      <template is="dom-if" restamp="" if="[[equals(errorIndicator, \'ICON\')]]" class="style-scope ytd-channel-handle-input-renderer">\n        <tp-yt-iron-icon id="error-icon" class="end-icon style-scope ytd-channel-handle-input-renderer" icon="icons:error">\n        </tp-yt-iron-icon>\n      </template>\n      <template is="dom-if" restamp="" if="[[equals(validationState.status, \'OK\')]]" class="style-scope ytd-channel-handle-input-renderer">\n        <tp-yt-iron-icon id="valid-icon" class="end-icon style-scope ytd-channel-handle-input-renderer" icon="icons:check-circle">\n        </tp-yt-iron-icon>\n      </template>\n    </div>\n  </div>\n</tp-yt-paper-input>\n<div id="error-container" class="style-scope ytd-channel-handle-input-renderer">\n  <template is="dom-if" restamp="" if="[[equals(validationState.status, \'INVALID\')]]" class="style-scope ytd-channel-handle-input-renderer">\n    <yt-formatted-string id="error-message" text="[[validationState.errorMessage]]" class="style-scope ytd-channel-handle-input-renderer">\n    </yt-formatted-string>\n  </template>\n</div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return lj6=F},{mode:_.E6("kevlar_poly_si_batch_j025")?1:2});var GV=function(){var F=_.n.apply(this,arguments)||this;F.data=null;F.errorMessage=null;F.isLoading=!0;F.hideContainer=!1;F.enableNewChannelCreationOnIdForAll=_.c("enable_new_channel_creation_for_id4all");F.actionMap={"yt-image-updated-action":"handleImageUpdatedAction","yt-image-selection-error-action":"handleImageSelectionErrorAction","yt-image-selection-reset-error-action":"handleImageSelectionResetErrorAction","yt-show-caller-popup-action":"showContainer"};F.testOnly={setErrorMessage:function(W){F.resetErrorState();
F.setErrorState(W)}};
return F};
_.k(GV,_.n);_.N=GV.prototype;_.N.created=function(){this.logScreenVe()};
_.N.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.toggleCreateChannelButton();this.hostElement.parentElement&&this.hostElement.parentElement.is==="tp-yt-paper-dialog"&&(this.hostElement.parentElement.style.overflowY="auto")};
_.N.dataChanged=function(){this.set("isLoading",!1);this.graftServerVe();this.set("errorMessage",null);var F;((F=this.zeroStepErrorMessageEntity)==null?0:F.value)&&this.set("errorMessage",_.Gr(this.zeroStepErrorMessageEntity.value))};
_.N.onCreateTap=function(){var F=this;if(this.data&&this.data.channelCreationEndpoint){var W,E;if(!((W=this.data.createChannelButton)==null?0:(E=W.buttonRenderer)==null?0:E.isDisabled)){var h;if((h=this.nameInput)!=null&&h.value){this.setLoadingState();var d,V;W=Object.assign({},{name:this.nameInput.value},this.encryptedBlobId?{encryptedBlobId:this.encryptedBlobId}:{avatar_url:this.userSetPhotoThumbnailUrl},{handle:(d=this.handleInput)==null?void 0:d.value,isNameChanged:this.isNameChanged(this.nameInput.value),
isHandleChanged:this.isHandleChanged((V=this.handleInput)==null?void 0:V.value),isDefaultProfilePhoto:this.data.isDefaultProfilePhoto,obakeImageSource:this.obakeImageSource,enableIdentityForAllChannelCreationDialog:this.enableIdentityForAllChannelCreationDialog});this.ytComponentBehavior.resolveCommand(this.data.channelCreationEndpoint,{form:W,commandController:{onSuccess:function(R,M){F.onChannelCreationEndpointSuccess(M);F.obakeImageSource&&_.Pc("channelCreatedWithObakeImage",{imageSourceType:F.obakeImageSource})},
onServerError:function(){F.onChannelCreationEndpointError()}}});
this.maybeWipeZeroStepErrorMessage()}}}};
_.N.endpointRequiresServiceRequestAction=function(F){return!!_.D(F,_.nk)||!!_.D(F,PBg)};
_.N.isNavigateAction=function(F){var W;return!!_.D(F,_.rJ)||!!_.D((W=_.D(F,bHP))==null?void 0:W.command,_.rJ)};
_.N.isPlaylistAction=function(F){return!!_.D(F,_.lE)||!!_.D(F,_.Th)};
_.N.onChannelCreationEndpointSuccess=function(F){if(F.createChannelError){var W;this.setErrorState((W=F.createChannelError)==null?void 0:W.errorMessage);this.handleInput&&this.handleInput.validate()}else{_.c("enable_secondary_channel_creation_form")&&F.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(F.navigationEndpoint);if(F.actions){W=_.U(F.actions);for(var E=W.next();!E.done;E=W.next())if(E=E.value,this.endpointRequiresServiceRequestAction(E)&&this.ytComponentBehavior.resolveCommand(E),
this.isNavigateAction(E)){var h=void 0;E=_.D((h=_.D(E,bHP))==null?void 0:h.command,_.rJ);h=void 0;this.isPlaylistAction((h=E)==null?void 0:h.endpoint)&&(_.dW(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"]),h=void 0,this.ytComponentBehavior.resolveCommand((h=E)==null?void 0:h.endpoint))}}F.actions&&F.actions.some(function(d){var V;return _.D(d,_.rJ)||_.D((V=_.D(d,bHP))==null?void 0:V.command,_.rJ)})||_.dW(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"])}};
_.N.onChannelCreationEndpointError=function(){this.setErrorState();this.handleInput&&this.handleInput.validate()};
_.N.onCancelTap=function(){var F,W,E;if(!((F=this.data)==null?0:(W=F.cancelButton)==null?0:(E=W.buttonRenderer)==null?0:E.isDisabled)){var h,d,V;F=(h=this.data)==null?void 0:(d=h.cancelButton)==null?void 0:(V=d.buttonRenderer)==null?void 0:V.command;if(!F||!_.D(F,_.q4I)){var R;this.nameInput&&((R=this.data)==null?0:R.name)&&(this.nameInput.value=this.data.name);var M;this.handleInput&&((M=this.data)==null?0:M.channelHandleInput)&&(this.handleInput.data=_.D(this.data.channelHandleInput,fDq));this.encryptedBlobId=
this.previewDataUrl=void 0;this.maybeWipeZeroStepErrorMessage()}}};
_.N.toggleCreateChannelButton=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!this.nameInput.value||this.handleInput&&this.handleInput.value===void 0)};
_.N.onChannelNameInput=function(){this.toggleCreateChannelButton();this.handleInput&&this.nameInput.value&&this.handleInput.updateHandleOnChannelNameInputChange(this.nameInput.value)};
_.N.onClearProfilePhotoTap=function(){var F,W,E;((F=this.data)==null?0:(W=F.clearProfilePhotoButton)==null?0:(E=W.buttonRenderer)==null?0:E.isDisabled)||(this.set("data.isDefaultProfilePhoto",!0),this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",!0))};
_.N.onEditAvatarTap=function(){var F,W,E;((F=this.data)==null?0:(W=F.editAvatarButton)==null?0:(E=W.buttonRenderer)==null?0:E.isDisabled)||(this.hideContainer=!0,this.openProfilePicturePicker())};
_.N.setLoadingState=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!0);this.set("data.cancelButton.buttonRenderer.isDisabled",!0);this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",!0);this.set("isLoading",!0);this.set("errorMessage",null)};
_.N.resetErrorState=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);var F;this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",((F=this.data)==null?0:F.isDefaultProfilePhoto)?!0:!1);this.set("isLoading",!1);this.set("errorMessage",null)};
_.N.setErrorState=function(F){this.resetErrorState();if(F)this.set("errorMessage",F);else{var W;if((W=this.zeroStepErrorMessageEntity)==null?0:W.value)this.set("errorMessage",_.Gr(this.zeroStepErrorMessageEntity.value));else{var E;((E=this.data)==null?0:E.errorMessage)?this.set("errorMessage",this.data.errorMessage):this.set("errorMessage",null)}}};
_.N.fetchImageBlobWithAlr=function(F,W){W=W===void 0?5:W;var E=this,h,d,V,R,M;return _.e(function(g){switch(g.nextAddress){case 1:return _.Q(g,fetch(F,{method:"GET",mode:"cors"}),2);case 2:h=g.yieldResult;if(h.ok){g.jumpTo(3);break}if(W===0)throw Error();d=E.addJitter(Math.pow(2,5-W));return _.Q(g,new Promise(function(t){setTimeout(t,d*1E3)}),4);
case 4:return g.return(E.fetchImageBlobWithAlr(F,W-1));case 3:if(!h.headers.get("content-type").split(";").some(function(t){return t.trim()==="text/plain"})){g.jumpTo(5);
break}V=E;R=V.fetchImageBlobWithAlr;return _.Q(g,h.text(),6);case 6:return g.return(R.call(V,g.yieldResult,W-1));case 5:return _.Q(g,h.blob(),7);case 7:return M=g.yieldResult,g.return(M)}})};
_.N.addJitter=function(F){var W=F*.3*Math.random();Math.random()>.5&&(W*=-1);return F+W};
_.N.openProfilePicturePicker=function(){var F=this,W,E,h,d,V;return _.e(function(R){if(R.nextAddress==1){W=F.data.scottyUploadUrl;if(!W)return R.return();E=document.documentElement.hasAttribute("dark");h=document.body.style.colorScheme;E&&(document.body.style.colorScheme="dark");d=niN(yfN(lE8(HcN(E?"dark":"light")),function(M){var g,t,C,B,I;return _.e(function(x){if(x.nextAddress==1)return g=_.wa(GUu(new $m(M.photoUrl,!1)).build(),"alr","yes"),F.obakeImageSource=F.pictureChangeSourceToObakeImageSourceType(M.photoSource),
_.Nl(x,2),F.setLoadingState(),_.Q(x,F.fetchImageBlobWithAlr(g),4);if(x.nextAddress!=2)return t=x.yieldResult,C=new FileReader,C.addEventListener("load",function(){var A,X,P,b,l,w;return _.e(function(G){if(G.nextAddress==1){if(t.size>15728640)return F.setErrorState((A=F.data)==null?void 0:A.imageSizeErrorMessage),_.OB(Error("il")),G.return();if(!C.result)return F.setErrorState((X=F.data)==null?void 0:X.genericImageLoadErrorMessage),_.OB(Error("jl")),G.return();P=C.result;_.Nl(G,2);return _.Q(G,sxw(t,
W),4)}if(G.nextAddress!=2)return b=G.yieldResult,F.handleImageUpdatedAction(P,b),F.resetErrorState(),_.id(G,0);l=_.Ml(G);F.setErrorState((w=F.data)==null?void 0:w.uploadErrorMessage);if(l instanceof Error)_.a_(l);else{var hr=new _.xC(JSON.stringify(l));_.a_(hr)}_.gG(G)})}),C.readAsDataURL(t),_.id(x,0);
B=_.Ml(x);F.setErrorState((I=F.data)==null?void 0:I.genericImageLoadErrorMessage);B instanceof Error?_.a_(B):_.fn(new _.xC(JSON.stringify(B)));_.gG(x)})}),function(){F.hideContainer=!1;
document.body.style.colorScheme=h});
_.Nl(R,2);return _.Q(R,d.openPicker(),4)}if(R.nextAddress!=2)return _.id(R,0);_.Ml(R);F.setErrorState((V=F.data)==null?void 0:V.selectImageErrorMessage);_.gG(R)})};
_.N.pictureChangeSourceToObakeImageSourceType=function(F){switch(F){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;default:return 0}};
_.N.logScreenVe=function(){_.QH(_.z4(),124448)};
_.N.graftServerVe=function(){var F=_.Pf(),W,E,h=(W=this.data)==null?void 0:(E=W.loggingDirectives)==null?void 0:E.trackingParams;h&&F&&(this.channelCreationFormVe=_.z4().graftServerVe(h,F),F={visualElement:this.channelCreationFormVe},_.gh().reportShown(F))};
_.N.isNameChanged=function(F){var W;return((W=this.data)==null?void 0:W.name)!==F};
_.N.isHandleChanged=function(F){var W,E=_.D((W=this.data)==null?void 0:W.channelHandleInput,fDq);return E&&F?E.handle!==F:!1};
_.N.handleImageUpdatedAction=function(F,W){this.hideContainer=!1;this.previewDataUrl=F;this.encryptedBlobId=W};
_.N.handleImageSelectionErrorAction=function(F){this.hideContainer=!1;this.setErrorState(F)};
_.N.handleImageSelectionResetErrorAction=function(){this.hideContainer=!1;this.resetErrorState()};
_.N.showContainer=function(){this.hideContainer=!1};
_.N.maybeWipeZeroStepErrorMessage=function(){var F,W=(F=this.data)==null?void 0:F.zeroStepErrorMessageEntityKey,E;W&&((E=this.zeroStepErrorMessageEntity)==null?0:E.value)&&this.ytdReduxBehavior.dispatch(_.AG("stringEntity",W,{key:W,value:""}))};
_.Sn.Object.defineProperties(GV.prototype,{photoThumbnail:{configurable:!0,enumerable:!0,get:function(){if(this.previewDataUrl)return{thumbnails:[{url:this.previewDataUrl,width:180,height:180}]};if(this.data)return this.data.isDefaultProfilePhoto?this.data.defaultProfilePhoto:this.data.profilePhoto}},
userSetPhotoThumbnailUrl:{configurable:!0,enumerable:!0,get:function(){if(this.data&&!this.data.isDefaultProfilePhoto){var F;return((F=this.photoThumbnail)==null?0:F.thumbnails)&&this.photoThumbnail.thumbnails.length>0?this.photoThumbnail.thumbnails[0].url:void 0}}},
hideProfilePhotoButtonLayer:{configurable:!0,enumerable:!0,get:function(){return this.data?!(this.data.clearProfilePhotoButton||this.data.editAvatarButton):!0}},
enableIdentityForAllChannelCreationDialog:{configurable:!0,enumerable:!0,get:function(){var F;return!((F=this.data)==null||!F.descriptionInfo)}},
description:{configurable:!0,enumerable:!0,get:function(){var F;return(F=this.data)==null?void 0:F.descriptionInfo}}});
GV.prototype.dataChanged=GV.prototype.dataChanged;_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],GV.prototype,"ytComponentBehavior",void 0);_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],GV.prototype,"ytActionHandlerBehavior",void 0);_.T([_.J(_.am),_.Y("design:type",Object)],GV.prototype,"ytdReduxBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],GV.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Object)],GV.prototype,"errorMessage",void 0);
_.T([_.O(),_.Y("design:type",Object)],GV.prototype,"isLoading",void 0);_.T([_.O(),_.Y("design:type",String)],GV.prototype,"previewDataUrl",void 0);_.T([_.O(),_.Y("design:type",Number)],GV.prototype,"obakeImageSource",void 0);_.T([_.O(),_.Y("design:type",Object)],GV.prototype,"hideContainer",void 0);_.T([_.gQ("#title-input"),_.Y("design:type",Object)],GV.prototype,"nameInput",void 0);_.T([_.gQ("#handle-input"),_.Y("design:type",Object)],GV.prototype,"handleInput",void 0);
_.T([_.O(),_.Y("design:type",Boolean)],GV.prototype,"enableNewChannelCreationOnIdForAll",void 0);_.T([_.O({selectorArgs:["data.zeroStepErrorMessageEntityKey"],selector:_.M1R}),_.Y("design:type",Object)],GV.prototype,"zeroStepErrorMessageEntity",void 0);_.T([_.a("data","data.isDefaultProfilePhoto","previewDataUrl"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],GV.prototype,"photoThumbnail",null);
_.T([_.a("data","data.isDefaultProfilePhoto","photoThumbnail"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],GV.prototype,"userSetPhotoThumbnailUrl",null);_.T([_.a("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],GV.prototype,"hideProfilePhotoButtonLayer",null);_.T([_.O({reflectToAttribute:!0}),_.a("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],GV.prototype,"enableIdentityForAllChannelCreationDialog",null);
_.T([_.Cz("data","zeroStepErrorMessageEntity"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],GV.prototype,"dataChanged",null);_.T([_.O({reflectToAttribute:!0}),_.a("data.descriptionInfo","zeroStepErrorMessageEntity"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],GV.prototype,"description",null);GV=_.T([_.y({is:"ytd-channel-creation-dialog-renderer",disableElementRegistration:!0})],GV);
_.r(GV,"ytd-channel-creation-dialog-renderer",function(){if(b18!==void 0)return b18;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-creation-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-channel-creation-dialog-renderer" hidden$="[[hideContainer]]">\n  <div class="popup-header style-scope ytd-channel-creation-dialog-renderer">\n    <yt-formatted-string id="title" class="popup-header-title style-scope ytd-channel-creation-dialog-renderer" text="[[data.title]]">\n    </yt-formatted-string>\n  </div>\n  <div class="channel-creation-description style-scope ytd-channel-creation-dialog-renderer" hidden="[[!enableNewChannelCreationOnIdForAll]]">\n    <yt-formatted-string id="description-info" hidden="[[!description]]" text="[[description]]" class="style-scope ytd-channel-creation-dialog-renderer">\n    </yt-formatted-string>\n  </div>\n  <div class="profile-picture-container style-scope ytd-channel-creation-dialog-renderer">\n    <div class="profile-picture style-scope ytd-channel-creation-dialog-renderer">\n      <yt-img-shadow class="profile-photo style-scope ytd-channel-creation-dialog-renderer" height="128" thumbnail="[[photoThumbnail]]" width="128">\n      </yt-img-shadow>\n    </div>\n  </div>\n  <div class="profile-photo-button-layer style-scope ytd-channel-creation-dialog-renderer" hidden="[[hideProfilePhotoButtonLayer]]">\n    <div class="profile-photo-button-container style-scope ytd-channel-creation-dialog-renderer">\n      <ytd-button-renderer data="[[data.clearProfilePhotoButton.buttonRenderer]]" on-click="onClearProfilePhotoTap" class="style-scope ytd-channel-creation-dialog-renderer">\n      </ytd-button-renderer>\n      <ytd-button-renderer data="[[data.editAvatarButton.buttonRenderer]]" hidden="[[!data.editAvatarButton]]" on-click="onEditAvatarTap" class="style-scope ytd-channel-creation-dialog-renderer">\n      </ytd-button-renderer>\n    </div>\n    <yt-formatted-string class="optional-tag style-scope ytd-channel-creation-dialog-renderer" hidden="[[!data.profilePhotoOptionalTag]]" text="[[data.profilePhotoOptionalTag]]">\n    </yt-formatted-string>\n  </div>\n  <div class="name-and-disclaimer-container style-scope ytd-channel-creation-dialog-renderer">\n    <div class="profile-name style-scope ytd-channel-creation-dialog-renderer" hidden="[[!data.isNameEditable]]">\n      <tp-yt-paper-input id="title-input" class="input style-scope ytd-channel-creation-dialog-renderer" label="[[data.nameLabel]]" maxlength="50" required="" use-v2-underline="" value="[[data.name]]" on-input="onChannelNameInput"></tp-yt-paper-input>\n      <template is="dom-if" restamp="" if="[[data.channelHandleInput]]" on-dom-change="toggleCreateChannelButton" class="style-scope ytd-channel-creation-dialog-renderer">\n        <ytd-channel-handle-input-renderer id="handle-input" data="[[data.channelHandleInput.channelHandleInputRenderer]]" on-value-changed="toggleCreateChannelButton" class="style-scope ytd-channel-creation-dialog-renderer">\n        </ytd-channel-handle-input-renderer>\n      </template>\n    </div>\n    <div class="readonly-profile-name style-scope ytd-channel-creation-dialog-renderer" hidden="[[data.isNameEditable]]">\n      [[data.name]]\n    </div>\n    <div class="error-container style-scope ytd-channel-creation-dialog-renderer" hidden="[[!errorMessage]]">\n      <yt-formatted-string class="error style-scope ytd-channel-creation-dialog-renderer" text="[[errorMessage]]"></yt-formatted-string>\n    </div>\n    <div class="disclaimer-layer style-scope ytd-channel-creation-dialog-renderer" hidden="[[!data.additionalInfos]]">\n      <div class="disclaimer-layer-paragraphs-container style-scope ytd-channel-creation-dialog-renderer">\n        <template is="dom-repeat" items="[[data.additionalInfos]]" class="style-scope ytd-channel-creation-dialog-renderer">\n          <yt-formatted-string respect-html-dir="" text="[[item]]" class="style-scope ytd-channel-creation-dialog-renderer"></yt-formatted-string>\n        </template>\n      </div>\n    </div>\n    <div class="disclaimer-layer style-scope ytd-channel-creation-dialog-renderer" hidden="[[!data.disclaimer]]">\n      <div class="style-scope ytd-channel-creation-dialog-renderer">\n        <yt-formatted-string class="warm-welcome-disclaimer style-scope ytd-channel-creation-dialog-renderer" respect-html-dir="" text="[[data.disclaimer]]">\n        </yt-formatted-string>\n      </div>\n    </div>\n    <div hidden="[[!data.infos]]" class="style-scope ytd-channel-creation-dialog-renderer">\n      <template is="dom-repeat" items="[[data.infos]]" class="style-scope ytd-channel-creation-dialog-renderer">\n        <div class="disclaimer-layer disclaimer-layer-no-icon style-scope ytd-channel-creation-dialog-renderer">\n          <yt-formatted-string respect-html-dir="" text="[[item]]" class="style-scope ytd-channel-creation-dialog-renderer"></yt-formatted-string>\n        </div>\n      </template>\n    </div>\n  </div>\n  <div class="button-layer style-scope ytd-channel-creation-dialog-renderer">\n    <ytd-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" on-click="onCancelTap" class="style-scope ytd-channel-creation-dialog-renderer">\n    </ytd-button-renderer>\n    <ytd-button-renderer id="create-channel-button" data="[[data.createChannelButton.buttonRenderer]]" on-click="onCreateTap" class="style-scope ytd-channel-creation-dialog-renderer">\n    </ytd-button-renderer>\n  </div>\n  <div class="spinner-container style-scope ytd-channel-creation-dialog-renderer" hidden="[[!isLoading]]">\n    <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-channel-creation-dialog-renderer"></tp-yt-paper-spinner-lite>\n  </div>\n</div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return b18=F},{mode:1});var nfK;var YG=function(){var F=_.n.apply(this,arguments)||this;F.isLoading=!1;F.isDisabled=!1;return F};
_.k(YG,_.n);YG.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
YG.prototype.updateDisabled=function(){var F;this.isDisabled=this.isLoading||((F=this.handleInput)==null?void 0:F.value)===void 0;this.set("data.saveButton.buttonRenderer.isDisabled",this.isDisabled)};
YG.prototype.onSaveClick=function(){var F=this;if(!this.isDisabled&&this.handleInput.value!==void 0){var W;((W=this.data)==null?void 0:W.editChannelHandleEndpoint)!==void 0&&(this.errorMessage=void 0,this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.editChannelHandleEndpoint,{form:{handle:this.handleInput.value},commandController:{onSuccess:function(){var E;if((E=F.data)==null?0:E.nextEndpoint){var h;F.ytComponentBehavior.resolveCommand((h=F.data)==null?void 0:h.nextEndpoint)}else F.isLoading=
!1,F.closeDialog()},
onServerError:function(){F.isLoading=!1;F.handleInput.validate();var E;F.errorMessage=(E=F.data)==null?void 0:E.errorMessage}}}))}};
YG.prototype.closeDialog=function(){_.dW(this.hostElement,"yt-close-popup-action",[this.is])};
YG.prototype.updateDisabled=YG.prototype.updateDisabled;_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],YG.prototype,"ytComponentBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],YG.prototype,"data",void 0);_.T([_.gQ("#handle-input"),_.Y("design:type",Object)],YG.prototype,"handleInput",void 0);_.T([_.ea("isLoading"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],YG.prototype,"updateDisabled",null);
YG=_.T([_.y({is:"ytd-channel-handle-edit-dialog-renderer",disableElementRegistration:!0})],YG);
_.r(YG,"ytd-channel-handle-edit-dialog-renderer",function(){if(nfK!==void 0)return nfK;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-handle-edit-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n  <div id="header" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-channel-handle-edit-dialog-renderer"></yt-formatted-string>\n    <template is="dom-if" restamp="" if="[[data.dismissButton]]" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      <ytd-button-renderer id="dismiss-button" data="[[data.dismissButton.buttonRenderer]]" on-click="closeDialog" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      </ytd-button-renderer>\n    </template>\n  </div>\n\n  <div id="body" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n    <yt-img-shadow id="profile-picture" height="128" thumbnail="[[data.profilePicture]]" width="128" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n    </yt-img-shadow>\n\n    <div id="name" class="style-scope ytd-channel-handle-edit-dialog-renderer">[[data.channelTitle]]</div>\n\n    <template is="dom-if" restamp="" if="[[data.channelHandleInput]]" on-dom-change="updateDisabled" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      <ytd-channel-handle-input-renderer id="handle-input" data="[[data.channelHandleInput.channelHandleInputRenderer]]" on-value-changed="updateDisabled" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      </ytd-channel-handle-input-renderer>\n    </template>\n\n    <template is="dom-if" restamp="" if="[[data.existingHandle]]" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      <div id="existing-handle" dir="ltr" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n        [[data.existingHandle]]\n      </div>\n    </template>\n\n    <template is="dom-if" restamp="" if="[[data.bodyText]]" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      <yt-formatted-string id="body-text" text="[[data.bodyText]]" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      </yt-formatted-string>\n    </template>\n\n    <template is="dom-if" restamp="" if="[[errorMessage]]" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      <yt-formatted-string id="error-message" text="[[errorMessage]]" class="style-scope ytd-channel-handle-edit-dialog-renderer"></yt-formatted-string>\n    </template>\n\n    <template is="dom-repeat" items="[[data.infoItems]]" as="infoItem" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      <div class="info-item style-scope ytd-channel-handle-edit-dialog-renderer">\n        <yt-icon class="info-item-icon style-scope ytd-channel-handle-edit-dialog-renderer" icon="[[infoItem.icon.iconType]]">\n        </yt-icon>\n        <yt-formatted-string class="info-item-text style-scope ytd-channel-handle-edit-dialog-renderer" text="[[infoItem.infoText]]">\n        </yt-formatted-string>\n      </div>\n    </template>\n  </div>\n\n  <div id="footer" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n    <template is="dom-if" restamp="" if="[[data.cancelButton]]" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      <ytd-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" on-click="closeDialog" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      </ytd-button-renderer>\n    </template>\n    <template is="dom-if" restamp="" if="[[data.saveButton]]" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      <ytd-button-renderer id="save-button" data="[[data.saveButton.buttonRenderer]]" on-click="onSaveClick" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      </ytd-button-renderer>\n    </template>\n  </div>\n\n  <div id="spinner-container" hidden="[[!isLoading]]" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n    <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-channel-handle-edit-dialog-renderer"></tp-yt-paper-spinner-lite>\n  </div>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return nfK=F},{mode:1});var yLu;var wB=function(){return _.n.apply(this,arguments)||this};
_.k(wB,_.n);wB.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.feedback":{id:"feedback",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],wB.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],wB.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],wB.prototype,"data",void 0);wB=_.T([_.y({is:"ytd-channel-switcher-footer-renderer",disableElementRegistration:!0})],wB);
_.r(wB,"ytd-channel-switcher-footer-renderer",function(){if(yLu!==void 0)return yLu;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-switcher-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="button" class="style-scope ytd-channel-switcher-footer-renderer"></div>\n<div id="feedback" class="style-scope ytd-channel-switcher-footer-renderer"></div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return yLu=F},{mode:1});var jGT;var i1P;var uN=function(){return _.n.apply(this,arguments)||this};
_.k(uN,_.n);uN.prototype.onIronChange=function(){if(this.checkbox&&this.onDontAskAgainChanged)this.onDontAskAgainChanged(this.checkbox.checked)};
uN.prototype.onIronChange=uN.prototype.onIronChange;_.T([_.O(),_.Y("design:type",Object)],uN.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!1}),_.Y("design:type",Function)],uN.prototype,"onDontAskAgainChanged",void 0);_.T([_.gQ("#checkbox"),_.Y("design:type",Object)],uN.prototype,"checkbox",void 0);_.T([_.R4("iron-change"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],uN.prototype,"onIronChange",null);
uN=_.T([_.y({is:"ytd-identity-prompt-footer-renderer",disableElementRegistration:!0})],uN);
_.r(uN,"ytd-identity-prompt-footer-renderer",function(){if(i1P!==void 0)return i1P;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-identity-prompt-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-checkbox id="checkbox" class="style-scope ytd-identity-prompt-footer-renderer">\n  <yt-formatted-string text="[[data.dontShowAgainText]]" class="style-scope ytd-identity-prompt-footer-renderer"></yt-formatted-string>\n</tp-yt-paper-checkbox>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return i1P=F},{mode:1});var SA=function(){var F=_.n.apply(this,arguments)||this;F.dontAskAgain=!1;F.showPopup=!1;F.boundDontAskAgainChanged=function(W){F.dontAskAgainChanged(W)};
F.boundOnAccountItemTap=function(W){F.onAccountItemTap(W)};
return F};
_.k(SA,_.n);_.N=SA.prototype;
_.N.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{accountItemSectionRenderer:{component:"ytd-account-item-section-renderer",properties:{onAccountItemTap:"[[boundOnAccountItemTap]]"}}}},"data.header":{id:"header",mapping:{simpleMenuHeaderRenderer:"ytd-simple-menu-header-renderer"}},"data.footer":{id:"footer",mapping:{channelSwitcherFooterRenderer:"ytd-channel-switcher-footer-renderer",identityPromptFooterRenderer:{component:"ytd-identity-prompt-footer-renderer",properties:{onDontAskAgainChanged:"[[boundDontAskAgainChanged]]"}}}}}};
_.N.ready=function(){var F=this;_.Z(this.hostElement).querySelector("#container").addEventListener("scroll",function(){F.ytRendererBehavior.markDirty()})};
_.N.dontAskAgainChanged=function(F){this.dontAskAgain=F};
_.N.onAccountItemTap=function(F){if(F){var W={};this.dontAskAgain&&(W={dont_ask_again:this.dontAskAgain});_.ao(F,W)}};
_.N.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.N.dataChanged=function(){this.data&&this.redirectOnlyAccount(this.data)};
_.N.redirectOnlyAccount=function(F){F.sections&&F.sections.length>0&&(F=_.D(F.sections[0],_.M2X),(F==null?0:F.contents)&&(F==null?void 0:F.contents.length)<=1?(F=_.Gk(window.location.href),(F==null?0:F.next)&&_.xQY(F.next)?_.ao(F.next):_.ao("/")):this.showPopup=!0)};
SA.prototype.dataChanged=SA.prototype.dataChanged;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],SA.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],SA.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],SA.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!1}),_.Y("design:type",Object)],SA.prototype,"dontAskAgain",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],SA.prototype,"showPopup",void 0);_.T([_.O({reflectToAttribute:!1}),_.Y("design:type",Object)],SA.prototype,"boundDontAskAgainChanged",void 0);_.T([_.O({reflectToAttribute:!1}),_.Y("design:type",Object)],SA.prototype,"boundOnAccountItemTap",void 0);_.T([_.Cz("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],SA.prototype,"dataChanged",null);
SA=_.T([_.y({is:"ytd-channel-switcher-renderer",disableElementRegistration:!0})],SA);
_.r(SA,"ytd-channel-switcher-renderer",function(){if(jGT!==void 0)return jGT;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-switcher-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-channel-switcher-renderer"></div>\n<div id="container" class="menu-container style-scope ytd-channel-switcher-renderer">\n  <div id="sections" class="style-scope ytd-channel-switcher-renderer"></div>\n</div>\n<div id="footer" class="style-scope ytd-channel-switcher-renderer"></div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return jGT=F},{mode:1});var rLq;var pl=function(){return _.n.apply(this,arguments)||this};
_.k(pl,_.n);_.Sn.Object.defineProperties(pl.prototype,{steps:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.steps?this.data.steps:[]}}});
_.T([_.O(),_.Y("design:type",Object)],pl.prototype,"data",void 0);_.T([_.a("data"),_.Y("design:type",Array),_.Y("design:paramtypes",[])],pl.prototype,"steps",null);pl=_.T([_.y({is:"ytd-channel-transfer-stepper-renderer",disableElementRegistration:!0})],pl);
_.r(pl,"ytd-channel-transfer-stepper-renderer",function(){if(rLq!==void 0)return rLq;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-transfer-stepper-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="stepper style-scope ytd-channel-transfer-stepper-renderer">\n  <template is="dom-repeat" items="[[steps]]" as="step" class="style-scope ytd-channel-transfer-stepper-renderer">\n    <div class="step-and-separator style-scope ytd-channel-transfer-stepper-renderer">\n      <div class="step style-scope ytd-channel-transfer-stepper-renderer" state$="[[step.state]]">\n        <yt-formatted-string class="step-title style-scope ytd-channel-transfer-stepper-renderer" text="[[step.title]]"></yt-formatted-string>\n        <div class="step-badge style-scope ytd-channel-transfer-stepper-renderer"></div>\n      </div>\n      <div class="separator style-scope ytd-channel-transfer-stepper-renderer"></div>\n    </div>\n  </template>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return rLq=F},{mode:1});var T78;var m5=function(){var F=_.n.apply(this,arguments)||this;F.data=null;F.isError=!1;F.isLoading=!1;return F};
_.k(m5,_.n);_.N=m5.prototype;_.N.configureRendererStamper=function(){return{"data.personalAccountTile.selectButton":{id:"personal-account-tile-select-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.brandAccountTile.selectButton":{id:"brand-account-tile-select-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.N.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.N.dataChanged=function(){this.set("isLoading",!1);this.set("isError",!1)};
_.N.computeProfileName=function(F){return F?F.givenNameValue+" "+F.familyNameValue:""};
_.N.onYtServiceRequestSent=function(){this.set("data.personalAccountTile.selectButton.buttonRenderer.isDisabled",!0);this.set("data.brandAccountTile.selectButton.buttonRenderer.isDisabled",!0);this.set("data.cancelButton.buttonRenderer.isDisabled",!0);this.set("isLoading",!0);this.set("isError",!1)};
_.N.onYtServiceRequestError=function(){this.set("data.personalAccountTile.selectButton.buttonRenderer.isDisabled",!1);this.set("data.brandAccountTile.selectButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);this.set("isLoading",!1);this.set("isError",!0)};
m5.prototype.onYtServiceRequestError=m5.prototype.onYtServiceRequestError;m5.prototype.onYtServiceRequestSent=m5.prototype.onYtServiceRequestSent;m5.prototype.dataChanged=m5.prototype.dataChanged;_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],m5.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],m5.prototype,"data",void 0);
_.T([_.O({computed:"computeProfileName(data.personalAccountTile.contents.createCoreIdentityChannelContentRenderer)"}),_.Y("design:type",String)],m5.prototype,"profileName",void 0);_.T([_.O(),_.Y("design:type",Object)],m5.prototype,"isError",void 0);_.T([_.O(),_.Y("design:type",Object)],m5.prototype,"isLoading",void 0);_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],m5.prototype,"dataChanged",null);
_.T([_.R4("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.nQ]),_.Y("design:returntype")],m5.prototype,"onYtServiceRequestSent",null);_.T([_.R4("yt-service-request-error"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.nQ]),_.Y("design:returntype")],m5.prototype,"onYtServiceRequestError",null);m5=_.T([_.y({is:"ytd-channel-warm-welcome-cont-renderer",disableElementRegistration:!0})],m5);
_.r(m5,"ytd-channel-warm-welcome-cont-renderer",function(){if(T78!==void 0)return T78;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-warm-welcome-cont-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-channel-warm-welcome-cont-renderer">\n  <div class="popup-header style-scope ytd-channel-warm-welcome-cont-renderer">\n    <h2 class="style-scope ytd-channel-warm-welcome-cont-renderer">\n      <yt-formatted-string id="title" class="popup-header-title style-scope ytd-channel-warm-welcome-cont-renderer" text="[[data.title]]">\n      </yt-formatted-string>\n    </h2>\n  </div>\n  <div class="tiles style-scope ytd-channel-warm-welcome-cont-renderer">\n    <div id="personal-account-tile" class="tile style-scope ytd-channel-warm-welcome-cont-renderer">\n      <div class="tile-content style-scope ytd-channel-warm-welcome-cont-renderer">\n        <div class="tile-header style-scope ytd-channel-warm-welcome-cont-renderer">\n          <h3 class="style-scope ytd-channel-warm-welcome-cont-renderer">\n            <yt-formatted-string id="personal_account_tile-title" class="tile-header-title style-scope ytd-channel-warm-welcome-cont-renderer" text="[[data.personalAccountTile.title]]">\n            </yt-formatted-string>\n          </h3>\n        </div>\n        <div class="tile-description style-scope ytd-channel-warm-welcome-cont-renderer">\n          <yt-formatted-string id="personal_account_tile-description" class="tile-description-text style-scope ytd-channel-warm-welcome-cont-renderer" text="[[data.personalAccountTile.description]]">\n          </yt-formatted-string>\n        </div>\n        <div class="tile-profile-picture style-scope ytd-channel-warm-welcome-cont-renderer">\n          <yt-img-shadow class="profile-photo style-scope ytd-channel-warm-welcome-cont-renderer" height="96" style="border-radius: 50%" thumbnail="[[data.personalAccountTile.contents.createCoreIdentityChannelContentRenderer.profilePhoto]]" width="96">\n          </yt-img-shadow>\n        </div>\n        <div class="tile-profile-name style-scope ytd-channel-warm-welcome-cont-renderer">[[profileName]]</div>\n        <div class="tos style-scope ytd-channel-warm-welcome-cont-renderer">\n          <template is="dom-repeat" items="[[data.personalAccountTile.contents.createCoreIdentityChannelContentRenderer.additionalInfos]]" class="style-scope ytd-channel-warm-welcome-cont-renderer">\n            <yt-formatted-string text="[[item]]" class="style-scope ytd-channel-warm-welcome-cont-renderer"></yt-formatted-string>\n          </template>\n        </div>\n      </div>\n      <div class="tile-button-layer style-scope ytd-channel-warm-welcome-cont-renderer">\n        <span id="personal-account-tile-select-button" class="style-scope ytd-channel-warm-welcome-cont-renderer"></span>\n      </div>\n    </div>\n    <span class="tile-separator style-scope ytd-channel-warm-welcome-cont-renderer"></span>\n    <div id="brand-account-tile" class="tile style-scope ytd-channel-warm-welcome-cont-renderer">\n      <div class="tile-content style-scope ytd-channel-warm-welcome-cont-renderer">\n        <div class="tile-header style-scope ytd-channel-warm-welcome-cont-renderer">\n          <h3 class="style-scope ytd-channel-warm-welcome-cont-renderer">\n            <yt-formatted-string id="brand_account_tile-title" class="tile-header-title style-scope ytd-channel-warm-welcome-cont-renderer" text="[[data.brandAccountTile.title]]">\n            </yt-formatted-string>\n          </h3>\n        </div>\n        <div class="tile-description style-scope ytd-channel-warm-welcome-cont-renderer">\n          <yt-formatted-string id="brand_account_tile-description" class="tile-description-text style-scope ytd-channel-warm-welcome-cont-renderer" text="[[data.brandAccountTile.description]]">\n          </yt-formatted-string>\n        </div>\n        <div class="tile-illustration style-scope ytd-channel-warm-welcome-cont-renderer">\n          <yt-img-shadow height="164" thumbnail="[[data.brandAccountTile.illustration]]" class="style-scope ytd-channel-warm-welcome-cont-renderer">\n          </yt-img-shadow>\n        </div>\n      </div>\n      <div class="tile-button-layer style-scope ytd-channel-warm-welcome-cont-renderer">\n        <span id="brand-account-tile-select-button" class="centered-button tile-button style-scope ytd-channel-warm-welcome-cont-renderer"></span>\n      </div>\n    </div>\n    <div class="spinner-container style-scope ytd-channel-warm-welcome-cont-renderer" hidden="[[!isLoading]]">\n      <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-channel-warm-welcome-cont-renderer"></tp-yt-paper-spinner-lite>\n    </div>\n  </div>\n  <div class="error-container style-scope ytd-channel-warm-welcome-cont-renderer" hidden="[[!isError]]">\n    <yt-formatted-string class="error style-scope ytd-channel-warm-welcome-cont-renderer" text="[[data.errorMessage]]"></yt-formatted-string>\n  </div>\n  <div class="disclaimer-layer style-scope ytd-channel-warm-welcome-cont-renderer" hidden="[[!data.disclaimer]]">\n      <yt-formatted-string class="warm-welcome-disclaimer style-scope ytd-channel-warm-welcome-cont-renderer" text="[[data.disclaimer]]"></yt-formatted-string>\n  </div>\n  <div class="button-layer style-scope ytd-channel-warm-welcome-cont-renderer">\n    <span id="cancel-button" class="centered-button tile-button style-scope ytd-channel-warm-welcome-cont-renderer"></span>\n  </div>\n</div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return T78=F},{mode:1});var ofg;var Kl=function(){var F=_.n.apply(this,arguments)||this;F.data=null;return F};
_.k(Kl,_.n);Kl.prototype.configureRendererStamper=function(){return{"data.nextButton":{id:"next-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
Kl.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("autofocus")||this.hostElement.setAttribute("autofocus","true")};
_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],Kl.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],Kl.prototype,"data",void 0);Kl=_.T([_.y({is:"ytd-channel-warm-welcome-renderer",disableElementRegistration:!0})],Kl);
_.r(Kl,"ytd-channel-warm-welcome-renderer",function(){if(ofg!==void 0)return ofg;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-warm-welcome-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-channel-warm-welcome-renderer">\n  <div class="illustration style-scope ytd-channel-warm-welcome-renderer">\n    <yt-img-shadow height="254" thumbnail="[[data.illustration]]" class="style-scope ytd-channel-warm-welcome-renderer">\n    </yt-img-shadow>\n  </div>\n  <div class="content style-scope ytd-channel-warm-welcome-renderer">\n    <div class="popup-header style-scope ytd-channel-warm-welcome-renderer">\n      <h2 class="style-scope ytd-channel-warm-welcome-renderer">\n        <yt-formatted-string id="title" class="popup-header-title style-scope ytd-channel-warm-welcome-renderer" text="[[data.title]]">\n        </yt-formatted-string>\n      </h2>\n    </div>\n    <div class="popup-description style-scope ytd-channel-warm-welcome-renderer">\n      <yt-formatted-string id="description" class="popup-description-text style-scope ytd-channel-warm-welcome-renderer" text="[[data.description]]">\n      </yt-formatted-string>\n    </div>\n    <div class="button-layer style-scope ytd-channel-warm-welcome-renderer">\n      <div id="next-button" class="style-scope ytd-channel-warm-welcome-renderer"></div>\n      <div id="cancel-button" class="style-scope ytd-channel-warm-welcome-renderer"></div>\n    </div>\n  </div>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return ofg=F},{mode:1});var G9q;var Fq=function(){return _.n.apply(this,arguments)||this};
_.k(Fq,_.n);_.Sn.Object.defineProperties(Fq.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var F;return((F=this.data)==null?void 0:F.authorThumbnail)||{}}}});
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Fq.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],Fq.prototype,"data",void 0);_.T([_.a("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Fq.prototype,"thumbnailDetails",null);Fq=_.T([_.y({is:"ytd-comment-preview-renderer",disableElementRegistration:!0})],Fq);
_.r(Fq,"ytd-comment-preview-renderer",function(){if(G9q!==void 0)return G9q;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-preview-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="avatar-block style-scope ytd-comment-preview-renderer">\n  <yt-img-shadow class="thumbnail style-scope ytd-comment-preview-renderer" fit="" thumbnail="[[thumbnailDetails]]">\n  </yt-img-shadow>\n</div>\n<div class="content-block style-scope ytd-comment-preview-renderer">\n  <div class="username style-scope ytd-comment-preview-renderer">[[data.authorName]]</div>\n  <div class="preview-text style-scope ytd-comment-preview-renderer">\n    <yt-formatted-string split-lines="true" text="[[data.commentText]]" class="style-scope ytd-comment-preview-renderer">\n    </yt-formatted-string>\n  </div>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return G9q=F},{mode:1});var YLx;var Wn=function(){return _.n.apply(this,arguments)||this};
_.k(Wn,_.n);Wn.prototype.configureRendererStamper=function(){return{submitButton:{id:"submit-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.Sn.Object.defineProperties(Wn.prototype,{submitButton:{configurable:!0,enumerable:!0,get:function(){var F;return(F=this.data)==null?void 0:F.submitButton}}});
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Wn.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],Wn.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],Wn.prototype,"data",void 0);_.T([_.a("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Wn.prototype,"submitButton",null);Wn=_.T([_.y({is:"ytd-notice-renderer",disableElementRegistration:!0})],Wn);
_.r(Wn,"ytd-notice-renderer",function(){if(YLx!==void 0)return YLx;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-notice-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="left style-scope ytd-notice-renderer">\n  <img alt="" class="illustration style-scope ytd-notice-renderer" src$="[[data.illustrationUrl]]">\n</div>\n\n<div class="right style-scope ytd-notice-renderer">\n  <yt-icon class="youtube-logo right-item style-scope ytd-notice-renderer" icon="yt-logos-ext:yt-logo-updated"></yt-icon>\n    <div class="notice-content right-item style-scope ytd-notice-renderer">\n      <yt-formatted-string class="notice-title style-scope ytd-notice-renderer" text="[[data.title]]">\n      </yt-formatted-string>\n      <yt-formatted-string class="notice-description style-scope ytd-notice-renderer" text="[[data.description]]">\n      </yt-formatted-string>\n    </div>\n    <div class="toolbar right-item style-scope ytd-notice-renderer">\n      <div id="submit-button" class="style-scope ytd-notice-renderer"></div>\n    </div>\n</div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return YLx=F},{mode:1});var w3F;var E3=function(){return _.n.apply(this,arguments)||this};
_.k(E3,_.n);E3.prototype.configureRendererStamper=function(){return{"data.comment":{id:"comment-preview",mapping:{commentPreviewRenderer:{component:"ytd-comment-preview-renderer"}}}}};
_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],E3.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],E3.prototype,"data",void 0);E3=_.T([_.y({is:"ytd-preview-comment-dialog-content",disableElementRegistration:!0})],E3);
_.r(E3,"ytd-preview-comment-dialog-content",function(){if(w3F!==void 0)return w3F;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-preview-comment-dialog-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="text-area style-scope ytd-preview-comment-dialog-content">\n  <div class="title style-scope ytd-preview-comment-dialog-content">[[data.title]]</div>\n  <div id="comment-preview" class="style-scope ytd-preview-comment-dialog-content"></div>\n  <div class="messages style-scope ytd-preview-comment-dialog-content">\n    <template is="dom-repeat" items="[[data.messages]]" class="style-scope ytd-preview-comment-dialog-content">\n      <yt-formatted-string class="message style-scope ytd-preview-comment-dialog-content" text="[[item]]"></yt-formatted-string>\n    </template>\n  </div>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return w3F=F},{mode:1});var uJw;var ho=function(){return _.n.apply(this,arguments)||this};
_.k(ho,_.n);ho.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
ho.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],ho.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],ho.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],ho.prototype,"data",void 0);ho=_.T([_.y({is:"ytd-preview-comment-dialog-renderer",disableElementRegistration:!0})],ho);
_.r(ho,"ytd-preview-comment-dialog-renderer",function(){if(uJw!==void 0)return uJw;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-preview-comment-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-preview-comment-dialog-content data="[[data]]" class="style-scope ytd-preview-comment-dialog-renderer">\n</ytd-preview-comment-dialog-content>\n<div class="bottom style-scope ytd-preview-comment-dialog-renderer">\n  <div id="buttons" class="style-scope ytd-preview-comment-dialog-renderer"></div>\n</div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return uJw=F},{mode:1});var SLx;var p36=_.c("web_button_rework")&&_.l0("BUTTON_REWORK")||_.c("web_button_rework_with_live"),dy=function(){var F=_.n.apply(this,arguments)||this;F.selectedAmountIndex=1;F.privacyCheckboxValue=!1;F.useAmsterdamStyle=p36;F.amountPlaceholderIndex=-1;return F};
_.k(dy,_.n);_.N=dy.prototype;_.N.onAmountClick=function(F){this.selectedAmountIndex=_.Z(this.hostElement).querySelector("#amounts").indexForElement(F.currentTarget)};
_.N.onCloseClick=function(){this.hostElement.hasAttribute("live-chat")&&(_.dW(this.hostElement,"yt-live-chat-close-buy-flow"),this.ytLiveChatErrorMessageBehavior._setErrorRenderer(null))};
_.N.onDonateButtonClick=function(){if(this.hostElement.hasAttribute("live-chat"))this.donateCommand&&_.dW(this.hostElement,"yt-live-chat-start-buy-flow",[this.donateCommand,{},this.donationCallback.bind(this)]);else{_.dW(this.hostElement,"yt-close-popup-action",[this.is]);var F;(F=_.WS())==null||F.getPlayerPromise().then(function(W){W.pauseVideo()})}};
_.N.donationCallback=function(F){F.success?(this.hostElement.hasAttribute("live-chat")&&F.response&&F.response.data&&F.response.data.actions&&_.dW(this.hostElement,"yt-live-chat-open-popup",[F.response.data.actions[0]]),_.dW(this.hostElement,"yt-close-popup-action",[this.is]),_.dW(this.hostElement,"yt-live-chat-close-buy-flow")):F.errorMessageRenderer&&this.ytLiveChatErrorMessageBehavior._setErrorRenderer(F.errorMessageRenderer)};
_.N.setFocusOnCustomAmountInput=function(){this.customAmount!==null&&_.Z(this.hostElement).querySelector("#custom-amount-input").focus()};
_.N.updateConfirmationDialogTextWithAmount=function(F){var W=this.getConfirmDialogRuns();W&&this.set(["data","confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs",this.getAmountPlaceholderIndex(W),"text"],this.getFormattedAmount(F))};
_.N.getConfirmDialogRuns=function(){return this.get(["confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs"],this.data)};
_.N.getAmountPlaceholderIndex=function(F){this.amountPlaceholderIndex<0&&(this.amountPlaceholderIndex=F.findIndex(function(W){return W.text==="${amount}"}));
return this.amountPlaceholderIndex};
_.N.getFormattedAmount=function(F){var W;return(new _.yz(4,((W=this.data)==null?void 0:W.currencyCode)||"")).format(F)};
_.N.isAmountValid=function(F){if(F==="")return!1;F=Number(F)*1E6;var W=this.get("minAmountMicros",this.data),E=this.get("maxAmountMicros",this.data);return W&&F<W||E&&F>E?!1:!0};
_.N.setInputError=function(){this.shouldShowValidationError?_.Z(this.hostElement).querySelector("#custom-amount-input").setAttribute("invalid",""):_.Z(this.hostElement).querySelector("#custom-amount-input").removeAttribute("invalid")};
_.N.setInitialCheckboxValue=function(){var F;this.privacyCheckboxValue=!((F=this.data)==null||!F.privacyCheckboxInitialState)};
_.N.updateCustomAmountInputFromBinding=function(F){this.customAmountInput=F.detail.value};
_.N.updatePrivacyCheckboxValueFromBinding=function(F){this.privacyCheckboxValue=F.detail.value};
_.Sn.Object.defineProperties(dy.prototype,{suggestedAmountButtons:{configurable:!0,enumerable:!0,get:function(){var F=this,W,E;return((W=this.data)==null?void 0:(E=W.suggestedAmounts)==null?void 0:E.map(function(h,d){return{buttonRenderer:{style:F.selectedAmountIndex===d?"STYLE_PRIMARY":"STYLE_SUGGESTIVE",text:h.label}}}))||[]}},
isCustomAmountSelected:{configurable:!0,enumerable:!0,get:function(){return!this.get("suggestedAmounts."+this.selectedAmountIndex+".amountMicros",this.data)}},
showPrivacyCheckbox:{configurable:!0,enumerable:!0,get:function(){var F;return!((F=this.data)==null||!F.privacyCheckboxText)}},
amountMicros:{configurable:!0,enumerable:!0,get:function(){return this.customAmount?this.isAmountValid(this.customAmount)?Number(this.customAmount)*1E6:null:Number(this.get("suggestedAmounts."+this.selectedAmountIndex+".amountMicros",this.data))}},
customAmount:{configurable:!0,enumerable:!0,get:function(){return this.isCustomAmountSelected?this.customAmountInput||"":null}},
shouldShowValidationError:{configurable:!0,enumerable:!0,get:function(){return this.customAmount===null||this.customAmount===""?!1:!this.isAmountValid(this.customAmount)}},
isDonateButtonEnabled:{configurable:!0,enumerable:!0,get:function(){return this.customAmount===null?!0:this.isAmountValid(this.customAmount)}},
donateCommand:{configurable:!0,enumerable:!0,get:function(){var F=this.hostElement.hasAttribute("live-chat")?this.get("payFromLiveChat",this.data):this.get("donateButton.buttonRenderer.command",this.data);if(F&&this.amountMicros!==null)return Object.assign({},F,{ypcGetCartEndpoint:Object.assign({},F.ypcGetCartEndpoint,{donationAmountMicros:this.amountMicros,productData:{donationData:{isAnonymousDonation:!this.privacyCheckboxValue}}})})}},
donateCommandWithConfirmation:{configurable:!0,enumerable:!0,get:function(){return this.isCustomAmountSelected&&this.confirmLargeAmountCommand&&this.amountMicros&&this.amountMicros>=this.largeDonationThreshold?this.confirmLargeAmountCommand:this.donateCommand}},
largeDonationThreshold:{configurable:!0,enumerable:!0,get:function(){return 100*this.get("minAmountMicros",this.data)}},
confirmLargeAmountCommand:{configurable:!0,enumerable:!0,get:function(){var F=this.get("confirmLargeAmount",this.data);if(F&&this.amountMicros)return this.updateConfirmationDialogTextWithAmount(this.amountMicros/1E6),this.set("data.confirmLargeAmount.openPopupAction.popup.confirmDialogRenderer.confirmButton.buttonRenderer.command",this.donateCommand),F}},
donateButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var F=this.get("donateButton.buttonRenderer",this.data);if(F)return Object.assign({},F,{isDisabled:!this.isDonateButtonEnabled,command:this.hostElement.hasAttribute("live-chat")?void 0:this.donateCommandWithConfirmation})}}});
dy.prototype.setInitialCheckboxValue=dy.prototype.setInitialCheckboxValue;dy.prototype.setInputError=dy.prototype.setInputError;dy.prototype.setFocusOnCustomAmountInput=dy.prototype.setFocusOnCustomAmountInput;_.T([_.J(d46),_.Y("design:type",Object)],dy.prototype,"ytLiveChatErrorMessageBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],dy.prototype,"ytRendererBehavior",void 0);
_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],dy.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],dy.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Object)],dy.prototype,"selectedAmountIndex",void 0);_.T([_.O(),_.Y("design:type",String)],dy.prototype,"customAmountInput",void 0);_.T([_.O(),_.Y("design:type",Object)],dy.prototype,"privacyCheckboxValue",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],dy.prototype,"useAmsterdamStyle",void 0);_.T([_.ea("customAmount"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],dy.prototype,"setFocusOnCustomAmountInput",null);_.T([_.a("data","selectedAmountIndex"),_.Y("design:type",Array),_.Y("design:paramtypes",[])],dy.prototype,"suggestedAmountButtons",null);
_.T([_.a("data","selectedAmountIndex"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],dy.prototype,"isCustomAmountSelected",null);_.T([_.a("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],dy.prototype,"showPrivacyCheckbox",null);_.T([_.a("data","selectedAmountIndex","customAmount"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],dy.prototype,"amountMicros",null);
_.T([_.a("isCustomAmountSelected","customAmountInput"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],dy.prototype,"customAmount",null);_.T([_.a("customAmount"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],dy.prototype,"shouldShowValidationError",null);_.T([_.a("customAmount"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],dy.prototype,"isDonateButtonEnabled",null);
_.T([_.a("data","isDonateButtonEnabled","amountMicros","privacyCheckboxValue"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],dy.prototype,"donateCommand",null);_.T([_.a("donateCommand","isCustomAmountSelected","confirmLargeAmountCommand","amountMicros"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],dy.prototype,"donateCommandWithConfirmation",null);_.T([_.a("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],dy.prototype,"largeDonationThreshold",null);
_.T([_.a("customAmount","donateCommand","amountMicros"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],dy.prototype,"confirmLargeAmountCommand",null);_.T([_.a("data","isDonateButtonEnabled","donateCommandWithConfirmation"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],dy.prototype,"donateButtonRenderer",null);_.T([_.ea("shouldShowValidationError"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],dy.prototype,"setInputError",null);
_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],dy.prototype,"setInitialCheckboxValue",null);dy=_.T([_.y({is:"ytd-donation-amount-picker-renderer",disableElementRegistration:!0})],dy);
_.r(dy,"ytd-donation-amount-picker-renderer",function(){if(SLx!==void 0)return SLx;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-donation-amount-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-donation-amount-picker-renderer">\n  <div id="top-box" class="style-scope ytd-donation-amount-picker-renderer">\n    <div id="title-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <div id="title" class="style-scope ytd-donation-amount-picker-renderer">\n        <div class="title-text style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.pickerTitle)]]</div>\n        <yt-icon-button dialog-dismiss="" label="[[msg(\'CLOSE\')]]" on-click="onCloseClick" class="style-scope ytd-donation-amount-picker-renderer">\n          <yt-icon icon="yt-icons:dismissal" class="style-scope ytd-donation-amount-picker-renderer"></yt-icon>\n        </yt-icon-button>\n      </div>\n    </div>\n    <div id="campaign-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <yt-img-shadow object-fit="CONTAIN" thumbnail="[[data.campaignThumbnail]]" class="style-scope ytd-donation-amount-picker-renderer"> </yt-img-shadow>\n      <div id="text-container" class="style-scope ytd-donation-amount-picker-renderer">\n        <div id="campaign-title" class="style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.campaignTitle)]]</div>\n        <div id="campaign-subtitle" class="style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.campaignSubtitle)]]</div>\n        <div id="description-column" class="style-scope ytd-donation-amount-picker-renderer">\n          <div class="separator style-scope ytd-donation-amount-picker-renderer"></div>\n          <div class="campaign-description style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.campaignDescription)]]</div>\n        </div>\n      </div>\n    </div>\n    <div id="live-chat-description-column" class="style-scope ytd-donation-amount-picker-renderer">\n      <div class="campaign-description style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.campaignDescription)]]</div>\n      <div class="separator style-scope ytd-donation-amount-picker-renderer"></div>\n    </div>\n  </div>\n  <div id="bottom-box" class="style-scope ytd-donation-amount-picker-renderer">\n    <div id="nonprofit-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <div class="style-scope ytd-donation-amount-picker-renderer">\n        <div id="nonprofit-title" class="style-scope ytd-donation-amount-picker-renderer">\n          [[getSimpleString(data.nonprofitTitle)]]\n          <yt-icon id="verified-icon" class="inline-icon style-scope ytd-donation-amount-picker-renderer" icon="check_circle" default-to-filled="true">\n          </yt-icon>\n        </div>\n        <yt-formatted-string id="nonprofit-subtitle" text="[[data.nonprofitSubtitle]]" class="style-scope ytd-donation-amount-picker-renderer">\n        </yt-formatted-string>\n      </div>\n    </div>\n    <div id="amount-selector" class="style-scope ytd-donation-amount-picker-renderer">\n      <div id="suggested-amount-buttons-row" class="style-scope ytd-donation-amount-picker-renderer">\n        <template id="amounts" is="dom-repeat" items="[[suggestedAmountButtons]]" class="style-scope ytd-donation-amount-picker-renderer">\n          <ytd-button-renderer class="suggested-amount style-scope ytd-donation-amount-picker-renderer" data="[[item.buttonRenderer]]" on-click="onAmountClick"></ytd-button-renderer>\n        </template>\n      </div>\n      <div id="custom-amount-container" class="style-scope ytd-donation-amount-picker-renderer">\n        <tp-yt-paper-input id="custom-amount-input" allowed-pattern="[0-9]" always-float-label="" error-message="[[getSimpleString(data.amountError)]]" hidden="[[!isCustomAmountSelected]]" label="[[getSimpleString(data.customAmountLabel)]]" use-v2-underline="" value="[[customAmountInput]]" on-value-changed="updateCustomAmountInputFromBinding" class="style-scope ytd-donation-amount-picker-renderer">\n          <div prefix="" slot="prefix" class="style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.currencySymbol)]]\u00a0</div>\n        </tp-yt-paper-input>\n      </div>\n    </div>\n\n    <tp-yt-paper-checkbox id="privacy-checkbox" checked="[[privacyCheckboxValue]]" hidden="[[!showPrivacyCheckbox]]" on-checked-changed="updatePrivacyCheckboxValueFromBinding" class="style-scope ytd-donation-amount-picker-renderer">\n      <yt-formatted-string split-lines="" text="[[data.privacyCheckboxText]]" class="style-scope ytd-donation-amount-picker-renderer"> </yt-formatted-string>\n    </tp-yt-paper-checkbox>\n\n    <div id="button-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <ytd-button-renderer data="[[donateButtonRenderer]]" on-click="onDonateButtonClick" class="style-scope ytd-donation-amount-picker-renderer">\n      </ytd-button-renderer>\n    </div>\n  </div>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return SLx=F},{mode:1});var muO;var Ns=function(){return _.n.apply(this,arguments)||this};
_.k(Ns,_.n);_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],Ns.prototype,"ytComponentBehavior",void 0);_.T([_.O({}),_.Y("design:type",Object)],Ns.prototype,"data",void 0);Ns=_.T([_.y({is:"ytd-donation-post-transaction-content",disableElementRegistration:!0})],Ns);
_.r(Ns,"ytd-donation-post-transaction-content",function(){if(muO!==void 0)return muO;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-donation-post-transaction-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="icon-row" class="style-scope ytd-donation-post-transaction-content">\n  <yt-img-shadow thumbnail="[[data.donationIcon]]" width="52" class="style-scope ytd-donation-post-transaction-content"></yt-img-shadow>\n</div>\n<div id="messages" class="style-scope ytd-donation-post-transaction-content">\n  <div id="message" class="style-scope ytd-donation-post-transaction-content">\n    [[getSimpleString(data.thankYouMessage)]]\n  </div>\n  <div id="additional-info" class="style-scope ytd-donation-post-transaction-content">\n    [[getSimpleString(data.additionalInfo)]]\n  </div>\n</div>\n<div id="thankyou-messages" class="style-scope ytd-donation-post-transaction-content">\n  <div class="thankyou-message style-scope ytd-donation-post-transaction-content">\n    <div class="avatar style-scope ytd-donation-post-transaction-content">\n      <yt-img-shadow thumbnail="[[data.creatorMessage.thumbnail]]" width="32" class="style-scope ytd-donation-post-transaction-content"></yt-img-shadow>\n    </div>\n    <div class="content style-scope ytd-donation-post-transaction-content">\n      <div class="body style-scope ytd-donation-post-transaction-content">\n        [[getSimpleString(data.creatorMessage.description)]]\n      </div>\n      <div class="user style-scope ytd-donation-post-transaction-content">\n        [[getSimpleString(data.creatorMessage.title)]]\n      </div>\n    </div>\n  </div>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return muO=F},{mode:1});var Kmu;var V1=function(){return _.n.apply(this,arguments)||this};
_.k(V1,_.n);V1.prototype.configureRendererStamper=function(){return{"data.doneButton":{id:"done-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],V1.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],V1.prototype,"ytRendererBehavior",void 0);_.T([_.O({}),_.Y("design:type",Object)],V1.prototype,"data",void 0);V1=_.T([_.y({is:"ytd-donation-post-transaction-renderer",disableElementRegistration:!0})],V1);
_.r(V1,"ytd-donation-post-transaction-renderer",function(){if(Kmu!==void 0)return Kmu;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-donation-post-transaction-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-donation-post-transaction-renderer">\n  <div id="title" class="style-scope ytd-donation-post-transaction-renderer">\n    <yt-icon-button dialog-dismiss="" class="style-scope ytd-donation-post-transaction-renderer">\n      <yt-icon icon="yt-icons:dismissal" class="style-scope ytd-donation-post-transaction-renderer"></yt-icon>\n    </yt-icon-button>\n  </div>\n  <ytd-donation-post-transaction-content data="[[data]]" class="style-scope ytd-donation-post-transaction-renderer">\n  </ytd-donation-post-transaction-content>\n  <div id="button-row" class="style-scope ytd-donation-post-transaction-renderer">\n    <div id="done-button" dialog-dismiss="" class="style-scope ytd-donation-post-transaction-renderer"></div>\n    <ytd-button-renderer data="[[data.shareButton.buttonRenderer]]" class="style-scope ytd-donation-post-transaction-renderer">\n    </ytd-button-renderer>\n  </div>\n</div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return Kmu=F},{mode:1});var FON;var WO6;var U3=function(){return _.n.apply(this,arguments)||this};
_.k(U3,_.n);U3.prototype.computeIsStreamingProvider=function(F){return!!F.isStreamingShelf};
U3.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],U3.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],U3.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],U3.prototype,"data",void 0);_.T([_.O({computed:"computeIsStreamingProvider(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],U3.prototype,"isStreamingProvider",void 0);
U3=_.T([_.y({is:"ytd-media-provider-renderer",disableElementRegistration:!0})],U3);
_.r(U3,"ytd-media-provider-renderer",function(){if(WO6!==void 0)return WO6;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-media-provider-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="provider style-scope ytd-media-provider-renderer">\n  <yt-img-shadow class="thumbnail style-scope ytd-media-provider-renderer" fit="" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]">\n  </yt-img-shadow>\n  <div class="provider-details style-scope ytd-media-provider-renderer">\n    <div id="action-button" class="style-scope ytd-media-provider-renderer"></div>\n    <p id="media-price" hidden="[[!data.mediaPrice]]" class="style-scope ytd-media-provider-renderer">\n      [[getSimpleString(data.mediaPrice)]]\n    </p>\n  </div>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return WO6=F},{mode:1});var EoF;var RB=function(){return _.n.apply(this,arguments)||this};
_.k(RB,_.n);RB.prototype.observeLightsourcePalette=function(){var F,W=(F=this.data)==null?void 0:F.vibrantsourceColorPaletteData;W&&_.ZR(this.hostElement,W)};
RB.prototype.observeLightsourcePalette=RB.prototype.observeLightsourcePalette;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],RB.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],RB.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],RB.prototype,"data",void 0);
_.T([_.ea("data.vibrantsourceColorPaletteData"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],RB.prototype,"observeLightsourcePalette",null);RB=_.T([_.y({is:"ytd-streaming-pop-up-dialog",disableElementRegistration:!0})],RB);
_.r(RB,"ytd-streaming-pop-up-dialog",function(){if(EoF!==void 0)return EoF;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-streaming-pop-up-dialog--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="details-wrapper style-scope ytd-streaming-pop-up-dialog">\n  <div class="image-wrapper style-scope ytd-streaming-pop-up-dialog">\n    <yt-img-shadow class="media-thumbnail style-scope ytd-streaming-pop-up-dialog" thumbnail="[[data.thumbnail]]">\n    </yt-img-shadow>\n    <div class="tv-show-season-wrapper style-scope ytd-streaming-pop-up-dialog" hidden="[[!data.tvShowSeasons]]">\n      <yt-icon id="tv-show-icon" icon="tv" class="style-scope ytd-streaming-pop-up-dialog"></yt-icon>\n      <p id="tv-show-season" class="style-scope ytd-streaming-pop-up-dialog">\n        [[getSimpleString(data.tvShowSeasons)]]\n      </p>\n    </div>\n  </div>\n  <div class="providers style-scope ytd-streaming-pop-up-dialog">\n    <template is="dom-repeat" items="[[data.mediaProviders]]" as="mediaProviders" class="style-scope ytd-streaming-pop-up-dialog">\n      <ytd-media-provider-renderer data="[[mediaProviders.mediaProviderRenderer]]" class="style-scope ytd-streaming-pop-up-dialog">\n      </ytd-media-provider-renderer>\n    </template>\n  </div>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return EoF=F},{mode:1});var es=function(){return _.n.apply(this,arguments)||this};
_.k(es,_.n);es.prototype.onPopupOpened_=function(){var F;((F=this.data)==null?0:F.serviceEndpoint)&&_.WZ().resolve(_.EJ).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
es.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
es.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}},"data.content":{id:"content",mapping:{streamingPopUpDialog:{component:"ytd-streaming-pop-up-dialog"}}}}};
es.prototype.onPopupOpened_=es.prototype.onPopupOpened_;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],es.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],es.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.br),_.Y("design:type",Object)],es.prototype,"ytContinuationHandlerBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],es.prototype,"data",void 0);
_.T([_.R4("yt-popup-opened"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],es.prototype,"onPopupOpened_",null);es=_.T([_.y({is:"ytd-brandconnect-popup-renderer",disableElementRegistration:!0})],es);
_.r(es,"ytd-brandconnect-popup-renderer",function(){if(FON!==void 0)return FON;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-brandconnect-popup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-brandconnect-popup-renderer">\n  <yt-formatted-string id="title" text="[[data.popUpTitle]]" class="style-scope ytd-brandconnect-popup-renderer"></yt-formatted-string>\n  <div id="dismiss-button" class="style-scope ytd-brandconnect-popup-renderer"></div>\n</div>\n<div id="content" class="style-scope ytd-brandconnect-popup-renderer">\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return FON=F},{mode:1});var h7K;var Ms=function(){return _.n.apply(this,arguments)||this};
_.k(Ms,_.n);_.N=Ms.prototype;_.N.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{checkboxSurveyOptionRenderer:"ytd-checkbox-survey-option-renderer"}}}};
_.N.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.N.dataChanged=function(){for(var F=0;F<this.getOptionRenderers().length;F++)this.notifyPath("data.options."+F+".checkboxSurveyOptionRenderer.checked"),this.set("data.options."+F+".checkboxSurveyOptionRenderer.checked",!1);this.updateSubmitButton(!1)};
_.N.updateSubmitButton=function(F){this.set("data.submitButton.buttonRenderer.isDisabled",!F)};
_.N.computeAlt=function(F){return _.Yr(F)};
_.N.onDismissTap=function(){_.dW(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.WZ().resolve(_.EJ).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.N.getOptionRenderers=function(F){return(F=F||this.data)&&F.options?F.options.reduce(function(W,E){E.checkboxSurveyOptionRenderer&&W.push(E.checkboxSurveyOptionRenderer);return W},[]):[]};
_.N.onOptionChange=function(F){var W=this,E=!1;if(F.detail.checked)for(var h=this.getOptionRenderers().find(function(M){return M.value===F.detail.value}),d=this.getOptionRenderers(),V=0;V<d.length;V++){var R=d[V];
this.notifyPath("data.options."+V+".checkboxSurveyOptionRenderer.checked");R.checked&&((h==null?0:h.isExclusiveOption)?!R.isExclusiveOption:R.isExclusiveOption)?this.set("data.options."+V+".checkboxSurveyOptionRenderer.checked",!1):R.checked&&(E=!0)}else E=this.getOptionRenderers().some(function(M,g){W.notifyPath("data.options."+g+".checkboxSurveyOptionRenderer.checked");return M.checked});
this.updateSubmitButton(E)};
_.N.onSubmitTap=function(){var F=this.getOptionRenderers().filter(function(V){return V.checked});
if(F.length!==0){var W=F.map(function(V){return V.responseEndpoint});
F=[];for(var E=1;E<W.length;E++){var h=void 0,d=(h=_.D(W[E],_.yT))==null?void 0:h.feedbackToken;d&&F.push(d)}W=[W[0]];F.length&&W.push({extra_feedback_tokens:F});_.UT(this.hostElement,W);_.dW(this.hostElement,"yt-close-popup-action",["ytd-checkbox-survey-renderer"]);F=this.data&&this.data.submitActions||[];if(_.c("kevlar_command_handler_migration_killswitch"))_.Rj(this.hostElement,F,this.hostElement);else for(F=_.U(F),W=F.next();!W.done;W=F.next())this.ytComponentBehavior.resolveCommand(W.value)}};
Ms.prototype.onOptionChange=Ms.prototype.onOptionChange;Ms.prototype.dataChanged=Ms.prototype.dataChanged;_.T([_.J(_.B$.YtEventForwardingBehavior),_.Y("design:type",Object)],Ms.prototype,"ytEventForwardingBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],Ms.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],Ms.prototype,"ytComponentBehavior",void 0);
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Ms.prototype,"ytRendererBehavior",void 0);_.T([_.J(Aqu),_.Y("design:type",Object)],Ms.prototype,"ytdHatsSurveyBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],Ms.prototype,"data",void 0);_.T([_.Cz("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Ms.prototype,"dataChanged",null);
_.T([_.R4("ytd-checkbox-survey-option-changed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Ms.prototype,"onOptionChange",null);Ms=_.T([_.y({is:"ytd-checkbox-survey-renderer",disableElementRegistration:!0})],Ms);
_.r(Ms,"ytd-checkbox-survey-renderer",function(){if(h7K!==void 0)return h7K;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-checkbox-survey-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-checkbox-survey-renderer">\n  <yt-formatted-string text="[[data.question]]" class="style-scope ytd-checkbox-survey-renderer"></yt-formatted-string>\n  <yt-icon-button label="[[computeAlt(data.dismissalText)]]" on-click="onDismissTap" class="style-scope ytd-checkbox-survey-renderer">\n    <yt-icon icon="yt-icons:close" class="style-scope ytd-checkbox-survey-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n<div id="options" class="style-scope ytd-checkbox-survey-renderer"></div>\n<div id="footer" class="style-scope ytd-checkbox-survey-renderer">\n  <ytd-button-renderer data="[[data.submitButton.buttonRenderer]]" on-click="onSubmitTap" class="style-scope ytd-checkbox-survey-renderer">\n  </ytd-button-renderer>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return h7K=F},{mode:1});var dMN;var N18;var gy=function(){return _.n.apply(this,arguments)||this};
_.k(gy,_.n);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],gy.prototype,"ytRendererBehavior",void 0);_.T([_.J(kfq),_.Y("design:type",Object)],gy.prototype,"ytdDismissalReasonBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],gy.prototype,"data",void 0);gy=_.T([_.y({is:"ytd-dismissal-reason-text-renderer",disableElementRegistration:!0})],gy);
_.r(gy,"ytd-dismissal-reason-text-renderer",function(){if(N18!==void 0)return N18;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-dismissal-reason-text-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-checkbox id="checkbox" class="style-scope ytd-dismissal-reason-text-renderer">\n  <yt-formatted-string text="[[data.text]]" class="style-scope ytd-dismissal-reason-text-renderer"></yt-formatted-string>\n</tp-yt-paper-checkbox>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return N18=F},{mode:1});var VdN;var Q1=function(){return _.n.apply(this,arguments)||this};
_.k(Q1,_.n);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Q1.prototype,"ytRendererBehavior",void 0);_.T([_.J(kfq),_.Y("design:type",Object)],Q1.prototype,"ytdDismissalReasonBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],Q1.prototype,"data",void 0);Q1=_.T([_.y({is:"ytd-dismissal-reason-video-renderer",disableElementRegistration:!0})],Q1);
_.r(Q1,"ytd-dismissal-reason-video-renderer",function(){if(VdN!==void 0)return VdN;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-dismissal-reason-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-checkbox id="checkbox" class="style-scope ytd-dismissal-reason-video-renderer">\n  <yt-formatted-string id="label" text="[[data.text]]" class="style-scope ytd-dismissal-reason-video-renderer">\n  </yt-formatted-string>\n</tp-yt-paper-checkbox>\n<div id="video" class="style-scope ytd-dismissal-reason-video-renderer">\n  <yt-img-shadow thumbnail="[[data.videoThumb]]" width="120" class="style-scope ytd-dismissal-reason-video-renderer"></yt-img-shadow>\n  <div id="video-metadata" class="style-scope ytd-dismissal-reason-video-renderer">\n    <yt-formatted-string id="video-title" ellipsis-truncate="" text="[[data.videoTitle]]" class="style-scope ytd-dismissal-reason-video-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string id="video-creator" ellipsis-truncate="" text="[[data.creatorLine]]" class="style-scope ytd-dismissal-reason-video-renderer">\n    </yt-formatted-string>\n  </div>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return VdN=F},{mode:1});var zb=function(){var F=_.n.apply(this,arguments)||this;F.darkerDarkTheme=_.c("web_darker_dark_theme");return F};
_.k(zb,_.n);_.N=zb.prototype;_.N.created=function(){this.selectedFeedbackTokens=new YH};
_.N.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.N.configureRendererStamper=function(){return{"data.reasons":{id:"reasons",mapping:{dismissalReasonTextRenderer:"ytd-dismissal-reason-text-renderer",dismissalReasonVideoRenderer:"ytd-dismissal-reason-video-renderer"}}}};
_.N.dataChanged=function(){this.hasReasonsSelected=!1;this.selectedFeedbackTokens.clear()};
_.N.onDismissalReasonSelected=function(F,W){_.hF(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.add(W);this.hasReasonsSelected=!0};
_.N.onDismissalReasonDeselected=function(F,W){_.hF(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.delete(W);this.hasReasonsSelected=this.selectedFeedbackTokens.size!==0};
_.N.onCancelTap=function(){_.dW(this.hostElement,"yt-close-popup-action")};
_.N.onSubmitTap=function(){var F=Array.from(this.selectedFeedbackTokens.values());this.data.submitFeedbackEndpoint&&(F={feedback_tokens:F},_.WZ().resolve(_.EJ).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},F,{element:this.hostElement})}));_.dW(this.hostElement,"yt-close-popup-action")};
zb.prototype.onDismissalReasonDeselected=zb.prototype.onDismissalReasonDeselected;zb.prototype.onDismissalReasonSelected=zb.prototype.onDismissalReasonSelected;zb.prototype.dataChanged=zb.prototype.dataChanged;_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],zb.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],zb.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],zb.prototype,"data",void 0);
_.T([_.O(),_.Y("design:type",Boolean)],zb.prototype,"hasReasonsSelected",void 0);_.T([_.O(),_.Y("design:type",YH)],zb.prototype,"selectedFeedbackTokens",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],zb.prototype,"darkerDarkTheme",void 0);_.T([_.Cz("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],zb.prototype,"dataChanged",null);
_.T([_.R4("yt-dismissal-reason-selected"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,String]),_.Y("design:returntype")],zb.prototype,"onDismissalReasonSelected",null);_.T([_.R4("yt-dismissal-reason-deselected"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,String]),_.Y("design:returntype")],zb.prototype,"onDismissalReasonDeselected",null);zb=_.T([_.y({is:"ytd-dismissal-follow-up-renderer",disableElementRegistration:!0})],zb);
_.r(zb,"ytd-dismissal-follow-up-renderer",function(){if(dMN!==void 0)return dMN;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-dismissal-follow-up-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-dismissal-follow-up-renderer">\n  <yt-formatted-string id="title" text="[[data.dismissalReasonsPrompt]]" class="style-scope ytd-dismissal-follow-up-renderer">\n  </yt-formatted-string>\n  <div id="reasons" class="style-scope ytd-dismissal-follow-up-renderer"></div>\n</div>\n<div id="buttons" class="style-scope ytd-dismissal-follow-up-renderer">\n  <ytd-button-renderer id="cancel" data="[[data.cancelButton.buttonRenderer]]" on-tap="onCancelTap" class="style-scope ytd-dismissal-follow-up-renderer">\n  </ytd-button-renderer>\n  <ytd-button-renderer id="submit" data="[[data.submitButton.buttonRenderer]]" disabled="[[!hasReasonsSelected]]" on-tap="onSubmitTap" class="style-scope ytd-dismissal-follow-up-renderer">\n  </ytd-button-renderer>\n</div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return dMN=F},{mode:1});var UMq;var to=function(){return _.n.apply(this,arguments)||this};
_.k(to,_.n);_.N=to.prototype;_.N.onCheckedChange=function(){this.multiselect||_.hF(this.hostElement,"yt-feedback-single-select-changed");_.Z(this.hostElement).querySelector("#freeform").focus();_.hF(this.hostElement,"yt-refit")};
_.N.showTextBox=function(F,W){return F&&W};
_.N.dataChanged=function(){this.data&&(this.data.resultText===void 0&&this.set("data.resultText",""),this.data.checked===void 0&&this.set("data.checked",!1),this.data.allowFreeTextInput===void 0&&this.set("data.allowFreeTextInput",!1))};
_.N.updateDataCheckedFromBinding=function(F){this.set("data.checked",F.detail.value)};
_.N.updateDataResultTextFromBinding=function(F){this.set("data.resultText",F.detail.value)};
to.prototype.dataChanged=to.prototype.dataChanged;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],to.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],to.prototype,"data",void 0);_.T([_.O({value:!1}),_.Y("design:type",Boolean)],to.prototype,"multiselect",void 0);_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],to.prototype,"dataChanged",null);
to=_.T([_.y({is:"ytd-feedback-option-renderer",disableElementRegistration:!0})],to);
_.r(to,"ytd-feedback-option-renderer",function(){if(UMq!==void 0)return UMq;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feedback-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-radio-button class="choice style-scope ytd-feedback-option-renderer" checked="[[data.checked]]" hidden="[[multiselect]]" on-change="onCheckedChange" on-checked-changed="updateDataCheckedFromBinding">\n  [[getSimpleString(data.description)]]\n</tp-yt-paper-radio-button>\n<tp-yt-paper-checkbox class="choice style-scope ytd-feedback-option-renderer" checked="[[data.checked]]" hidden="[[!multiselect]]" on-change="onCheckedChange" on-checked-changed="updateDataCheckedFromBinding">\n  [[getSimpleString(data.description)]]\n</tp-yt-paper-checkbox>\n<tp-yt-paper-textarea id="freeform" hidden="[[!showTextBox(data.checked, data.allowFreeTextInput)]]" label="[[getSimpleString(data.freeTextHint)]]" maxlength="1000" use-v2-underline="" value="[[data.resultText]]" on-value-changed="updateDataResultTextFromBinding" class="style-scope ytd-feedback-option-renderer">\n</tp-yt-paper-textarea>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return UMq=F},{mode:1});var R7$;var C4=function(){return _.n.apply(this,arguments)||this};
_.k(C4,_.n);C4.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{feedbackOptionRenderer:{component:"ytd-feedback-option-renderer",properties:{multiselect:"[[data.multiSelect]]"}}}}}};
C4.prototype.onSingleSelectCheckedChanged=function(F){F=_.oo(F);for(var W=0;W<this.data.options.length;W++)if(F.data!==_.D(this.data.options[W],DC6)){var E="data.options."+W+".feedbackOptionRenderer.checked";this.notifyPath(E);this.set(E,!1)}};
C4.prototype.onSingleSelectCheckedChanged=C4.prototype.onSingleSelectCheckedChanged;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],C4.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],C4.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],C4.prototype,"data",void 0);
_.T([_.R4("yt-feedback-single-select-changed"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],C4.prototype,"onSingleSelectCheckedChanged",null);C4=_.T([_.y({is:"ytd-feedback-question-renderer",disableElementRegistration:!0})],C4);
_.r(C4,"ytd-feedback-question-renderer",function(){if(R7$!==void 0)return R7$;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feedback-question-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="question-text style-scope ytd-feedback-question-renderer">\n  [[getSimpleString(data.question)]]\n</div>\n<div id="options" class="style-scope ytd-feedback-question-renderer"></div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return R7$=F},{mode:1});var e78;var Bn=function(){return _.n.apply(this,arguments)||this};
_.k(Bn,_.n);Bn.prototype.configureRendererStamper=function(){return{"data.questions":{id:"questions",mapping:{feedbackQuestionRenderer:"ytd-feedback-question-renderer"}}}};
Bn.prototype.getSelectedFeedbackResults=function(){for(var F={},W=0;W<this.data.questions.length;W++)for(var E=_.D(this.data.questions[W],c7w),h=0;h<E.options.length;h++){var d=_.D(E.options[h],DC6);d&&d.checked&&(F[d.optionKey]=d.resultText)}return F};
Bn.prototype.onKeyUp=function(){var F=this;_.Ed(_.P0,function(){_.hF(F.hostElement,"yt-refit")});
_.P0.start()};
Bn.prototype.submitSurvey=function(){var F=this.getSelectedFeedbackResults();Object.keys(F).length>0&&this.data.submitFeedbackEndpoint&&(F={survey_results:F,is_feedback_token_unencrypted:!0},_.WZ().resolve(_.EJ).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},F,{element:this.hostElement})}))};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Bn.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],Bn.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],Bn.prototype,"data",void 0);Bn=_.T([_.y({is:"ytd-feedback-survey-renderer",disableElementRegistration:!0})],Bn);
_.r(Bn,"ytd-feedback-survey-renderer",function(){if(e78!==void 0)return e78;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feedback-survey-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="questions" on-keyup="onKeyUp" class="style-scope ytd-feedback-survey-renderer"></div>\n<yt-formatted-string id="disclaimer" text="[[data.disclaimer]]" class="style-scope ytd-feedback-survey-renderer"></yt-formatted-string>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return e78=F},{mode:1});var Mdx;var go6;var vn=function(){return _.n.apply(this,arguments)||this};
_.k(vn,_.n);vn.prototype.computeAlt=function(F){return _.Yr(F)};
vn.prototype.submitResponse=function(){var F,W;(F=this.data)!=null&&F.feedbackToken&&((W=this.data)==null?void 0:W.nextStageIndex)!==void 0&&(_.Nc(this.hostElement,"yt-single-select-submit-feedback",[this.data.feedbackToken]),_.Nc(this.hostElement,"yt-survey-set-stage-index",[this.data.nextStageIndex]))};
vn.prototype.onClick=function(){this.submitResponse()};
vn.prototype.onClick=vn.prototype.onClick;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],vn.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],vn.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],vn.prototype,"vertical",void 0);_.T([_.R4("click"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],vn.prototype,"onClick",null);
vn=_.T([_.y({is:"ytd-single-select-answer-option-renderer",disableElementRegistration:!0})],vn);
_.r(vn,"ytd-single-select-answer-option-renderer",function(){if(go6!==void 0)return go6;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-single-select-answer-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon-button alt="[[computeAlt(data.answerText)]]" hidden="[[!data.answerIcon.iconType]]" class="style-scope ytd-single-select-answer-option-renderer">\n  <yt-icon icon="[[data.answerIcon.iconType]]" class="style-scope ytd-single-select-answer-option-renderer"></yt-icon>\n</yt-icon-button>\n<yt-formatted-string text="[[data.answerText]]" class="style-scope ytd-single-select-answer-option-renderer"></yt-formatted-string>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return go6=F},{mode:1});var Qt8;var IB=function(){var F=_.n.apply(this,arguments)||this;F.darkerDarkTheme=_.c("web_darker_dark_theme");F.actionMap={"yt-single-select-submit-feedback":"submitFeedback"};return F};
_.k(IB,_.n);IB.prototype.configureRendererStamper=function(){return{"data.answerOptions":{id:"options",mapping:{singleSelectAnswerOptionRenderer:{component:"ytd-single-select-answer-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
IB.prototype.dataChanged=function(){var F,W;this.vertical=((W=(F=this.data)==null?void 0:F.answerOrientation)!=null?W:"SURVEY_LAYOUT_TYPE_HORIZONTAL")==="SURVEY_LAYOUT_TYPE_VERTICAL"};
IB.prototype.submitFeedback=function(F){var W;((W=this.data)==null?0:W.responseEndpoint)&&F&&_.UT(this.hostElement,[this.data.responseEndpoint,{extra_feedback_tokens:[F]}])};
IB.prototype.dataChanged=IB.prototype.dataChanged;_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],IB.prototype,"ytActionHandlerBehavior",void 0);_.T([_.J(_.B$.YtEventForwardingBehavior),_.Y("design:type",Object)],IB.prototype,"eventForwardingBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],IB.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],IB.prototype,"ytRendererstamperBehavior",void 0);
_.T([_.O(),_.Y("design:type",Object)],IB.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],IB.prototype,"vertical",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],IB.prototype,"darkerDarkTheme",void 0);_.T([_.Cz("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],IB.prototype,"dataChanged",null);IB=_.T([_.y({is:"ytd-single-select-question-renderer",disableElementRegistration:!0})],IB);
_.r(IB,"ytd-single-select-question-renderer",function(){if(Qt8!==void 0)return Qt8;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-single-select-question-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="question" class="style-scope ytd-single-select-question-renderer">\n  <yt-formatted-string text="[[data.questionText]]" class="style-scope ytd-single-select-question-renderer"></yt-formatted-string>\n</div>\n<div id="options" class="style-scope ytd-single-select-question-renderer"></div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return Qt8=F},{mode:1});var cn=function(){var F=_.n.apply(this,arguments)||this;F.actionMap={"yt-survey-set-stage-index":"jumpToStage"};return F};
_.k(cn,_.n);_.N=cn.prototype;_.N.configureRendererStamper=function(){return{currentStage:{id:"current-stage",mapping:{singleSelectQuestionRenderer:"ytd-single-select-question-renderer",simpleMessageRenderer:"ytd-simple-message-renderer",surveyFollowUpRenderer:"ytd-survey-follow-up-renderer"}}}};
_.N.dataChanged=function(){this.jumpToStage(0)};
_.N.jumpToStage=function(F){var W,E;if((W=this.data)==null?0:(E=W.stages)==null?0:E[F])this.currentStage=this.data.stages[F],this.refitAfterRender()};
_.N.computeAlt=function(F){return _.Yr(F)};
_.N.computeSimpleMessage=function(F){var W;return(W=_.D(F,A7K))==null?void 0:W.messageText};
_.N.computeHideDismiss=function(F){var W;return(W=_.D(F,SP6))==null?void 0:W.hideParentDismissButton};
_.N.onDismissTap=function(){_.dW(this.hostElement,"yt-close-popup-action");_.D(this.currentStage,A7K)||this.data.dismissalEndpoint&&_.WZ().resolve(_.EJ).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.N.refitAfterRender=function(){var F=this;_.wT(this,function(){_.hF(F.hostElement,"yt-refit")})};
cn.prototype.dataChanged=cn.prototype.dataChanged;_.T([_.J(_.B$.YtEventForwardingBehavior),_.Y("design:type",Object)],cn.prototype,"eventForwardingBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],cn.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],cn.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],cn.prototype,"ytActionHandlerBehavior",void 0);
_.T([_.J(Aqu),_.Y("design:type",Object)],cn.prototype,"ytdHatsSurveyBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],cn.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Object)],cn.prototype,"currentStage",void 0);_.T([_.Cz("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],cn.prototype,"dataChanged",null);cn=_.T([_.y({is:"ytd-multi-stage-survey-renderer",disableElementRegistration:!0})],cn);
_.r(cn,"ytd-multi-stage-survey-renderer",function(){if(Mdx!==void 0)return Mdx;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-multi-stage-survey-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" hidden="[[computeHideDismiss(currentStage)]]" class="style-scope ytd-multi-stage-survey-renderer">\n  <yt-icon-button label="[[computeAlt(data.dismissalText)]]" on-click="onDismissTap" class="style-scope ytd-multi-stage-survey-renderer">\n    <yt-icon icon="yt-icons:close" class="style-scope ytd-multi-stage-survey-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n<div id="current-stage" class="style-scope ytd-multi-stage-survey-renderer"></div>\n<yt-formatted-string id="simple-message" text="[[computeSimpleMessage(currentStage)]]" class="style-scope ytd-multi-stage-survey-renderer">\n</yt-formatted-string>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return Mdx=F},{mode:1});var z7$;var DK=function(){return _.n.apply(this,arguments)||this};
_.k(DK,_.n);DK.prototype.computeAlt=function(F){return _.Yr(F)};
DK.prototype.submitResponse=function(){this.data&&this.data.submissionEndpoint&&(_.WZ().resolve(_.EJ).resolveCommand(this.data.submissionEndpoint,{form:{element:this.hostElement}}),_.dW(this.hostElement,"yt-close-popup-action",["ytd-single-option-survey-renderer"]),this.ytdReduxBehavior.dispatch(_.MUF(!1)))};
DK.prototype.onTap=function(){this.vertical&&this.submitResponse()};
DK.prototype.onTap=DK.prototype.onTap;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],DK.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.am),_.Y("design:type",Object)],DK.prototype,"ytdReduxBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],DK.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],DK.prototype,"vertical",void 0);
_.T([_.R4("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],DK.prototype,"onTap",null);DK=_.T([_.y({is:"ytd-single-option-survey-option-renderer",disableElementRegistration:!0})],DK);
_.r(DK,"ytd-single-option-survey-option-renderer",function(){if(z7$!==void 0)return z7$;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-single-option-survey-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon-button alt="[[computeAlt(data.option)]]" hidden="[[!data.icon.iconType]]" on-tap="submitResponse" class="style-scope ytd-single-option-survey-option-renderer">\n  <yt-icon icon="[[data.icon.iconType]]" class="style-scope ytd-single-option-survey-option-renderer"></yt-icon>\n</yt-icon-button>\n<yt-formatted-string text="[[data.option]]" class="style-scope ytd-single-option-survey-option-renderer"></yt-formatted-string>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return z7$=F},{mode:1});var tdx;var xe=function(){return _.n.apply(this,arguments)||this};
_.k(xe,_.n);_.N=xe.prototype;_.N.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{singleOptionSurveyOptionRenderer:{component:"ytd-single-option-survey-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
_.N.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.N.dataChanged=function(){var F,W;this.vertical=(((F=this.data)==null?void 0:(W=F.surveyOrientation)==null?void 0:W.type)||"HORIZONTAL")==="VERTICAL"};
_.N.computeAlt=function(F){return _.Yr(F)};
_.N.onDismissTap=function(){_.dW(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.WZ().resolve(_.EJ).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}});this.ytdReduxBehavior.dispatch(_.MUF(!1))};
xe.prototype.dataChanged=xe.prototype.dataChanged;_.T([_.J(_.B$.YtEventForwardingBehavior),_.Y("design:type",Object)],xe.prototype,"eventForwardingBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],xe.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],xe.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(Aqu),_.Y("design:type",Object)],xe.prototype,"ytdHatsSurveyBehavior",void 0);
_.T([_.J(_.am),_.Y("design:type",Object)],xe.prototype,"ytdReduxBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],xe.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],xe.prototype,"vertical",void 0);_.T([_.Cz("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],xe.prototype,"dataChanged",null);xe=_.T([_.y({is:"ytd-single-option-survey-renderer",disableElementRegistration:!0})],xe);
_.r(xe,"ytd-single-option-survey-renderer",function(){if(tdx!==void 0)return tdx;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-single-option-survey-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-single-option-survey-renderer">\n  <yt-formatted-string text="[[data.question]]" class="style-scope ytd-single-option-survey-renderer"></yt-formatted-string>\n  <yt-icon-button label="[[computeAlt(data.dismissalText)]]" on-tap="onDismissTap" class="style-scope ytd-single-option-survey-renderer">\n    <yt-icon icon="yt-icons:close" class="style-scope ytd-single-option-survey-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n<div id="options" class="style-scope ytd-single-option-survey-renderer"></div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return tdx=F},{mode:1});var C6$;var ke=function(){var F=_.n.apply(this,arguments)||this;F.darkerDarkTheme=_.c("web_darker_dark_theme");return F};
_.k(ke,_.n);ke.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
ke.prototype.onDismissTap=function(){_.dW(this.hostElement,"yt-close-popup-action")};
ke.prototype.onNavigate=function(){_.dW(this.hostElement,"yt-close-popup-action")};
ke.prototype.onNavigate=ke.prototype.onNavigate;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],ke.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.B$.YtEventForwardingBehavior),_.Y("design:type",Object)],ke.prototype,"ytEventForwardingBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],ke.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],ke.prototype,"darkerDarkTheme",void 0);
_.T([_.R4("yt-navigate"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ke.prototype,"onNavigate",null);ke=_.T([_.y({is:"ytd-survey-follow-up-renderer",disableElementRegistration:!0})],ke);
_.r(ke,"ytd-survey-follow-up-renderer",function(){if(C6$!==void 0)return C6$;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-survey-follow-up-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-survey-follow-up-renderer">\n  <yt-formatted-string text="[[data.description]]" class="style-scope ytd-survey-follow-up-renderer"></yt-formatted-string>\n  <ytd-button-renderer data="[[data.dismissButton.buttonRenderer]]" on-tap="onDismissTap" class="style-scope ytd-survey-follow-up-renderer">\n  </ytd-button-renderer>\n</div>\n<ytd-button-renderer align-by-text="" data="[[data.followUpButton.buttonRenderer]]" hidden="[[!data.followUpButton.buttonRenderer]]" class="style-scope ytd-survey-follow-up-renderer">\n</ytd-button-renderer>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return C6$=F},{mode:1});var B1K;var vox;var IC6;var Ao=function(){var F=_.n.apply(this,arguments)||this;F.polymer2="Element"in Polymer;return F};
_.k(Ao,_.n);_.N=Ao.prototype;_.N.ready=function(){this.secondsEl.addEventListener("blur",this.formatSeconds.bind(this))};
_.N.secondsChanged=function(){this.secondsEl.focused||this.formatSeconds()};
_.N.formatSeconds=function(){this.seconds.length===1&&(this.seconds="0"+this.seconds)};
_.N.minutesChangedForBinding=function(){this.hostElement.dispatchEvent(new _.yR("minutes-changed",this.minutes))};
_.N.secondsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.yR("seconds-changed",this.seconds))};
_.N.updateMinutesFromBinding=function(F){this.minutes=F.detail.value};
_.N.updateSecondsFromBinding=function(F){this.seconds=F.detail.value};
Ao.prototype.secondsChangedForBinding=Ao.prototype.secondsChangedForBinding;Ao.prototype.minutesChangedForBinding=Ao.prototype.minutesChangedForBinding;Ao.prototype.secondsChanged=Ao.prototype.secondsChanged;_.T([_.O(),_.Y("design:type",String)],Ao.prototype,"minutes",void 0);_.T([_.O(),_.Y("design:type",String)],Ao.prototype,"seconds",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Ao.prototype,"polymer2",void 0);
_.T([_.gQ("#seconds"),_.Y("design:type",Object)],Ao.prototype,"secondsEl",void 0);_.T([_.ea("seconds"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Ao.prototype,"secondsChanged",null);_.T([_.ea("minutes"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Ao.prototype,"minutesChangedForBinding",null);
_.T([_.ea("seconds"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Ao.prototype,"secondsChangedForBinding",null);Ao=_.T([_.$3({is:"yt-timestamp-input",disableElementRegistration:!0})],Ao);
_.r(Ao,"yt-timestamp-input",function(){if(IC6===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-timestamp-input--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_timestamp_input.yt.timestamp.input.css.js--\x3e<tp-yt-paper-input id="minutes" allowed-pattern="[0-9]" maxlength="3" no-label-float="" prevent-invalid-input="" use-v2-underline="" value="[[minutes]]" on-value-changed="updateMinutesFromBinding" class="style-scope yt-timestamp-input">\n</tp-yt-paper-input>\n<span id="separator" class="style-scope yt-timestamp-input"> : </span>\n<tp-yt-paper-input id="seconds" allowed-pattern="[0-9]" maxlength="2" no-label-float="" prevent-invalid-input="" use-v2-underline="" value="[[seconds]]" on-value-changed="updateSecondsFromBinding" class="style-scope yt-timestamp-input">\n</tp-yt-paper-input>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;vox===void 0&&(vox=document.createElement("template"));var h=vox;E.call(W,h.content.cloneNode(!0),F.content.firstChild);IC6=F}F=IC6;return F},{mode:2});var s3=function(){return _.n.apply(this,arguments)||this};
_.k(s3,_.n);_.N=s3.prototype;_.N.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.JSC$18042_scroller.dialogElement=this.hostElement.parentNode};
_.N.dataChanged=function(){var F=this;this.description.value="";this.seconds=this.minutes=this.fullName.value="";this.toggleSubmitButton(!1);this.showTimestamp&&_.E8().getPlayerPromise().then(function(W){W=W.getCurrentTime();F.minutes=Math.floor(W/60).toString();F.seconds=(Math.floor(W)%60).toString()})};
_.N.onTapSubmit=function(F){F.stopPropagation();this.serviceEndpoint&&!this.get("submitButton.isDisabled")&&(F={flag_description:this.descriptionText.trim(),flag_issue_type:this.issueType,flag_affiliation:this.affiliation},this.fullNameText&&(F.flag_full_name=this.fullNameText.trim()),this.showTimestamp&&(F.minutes=this.minutes,F.seconds=this.seconds),_.WZ().resolve(_.EJ).resolveCommand(this.serviceEndpoint,{form:Object.assign({},F,{element:this.hostElement})}))};
_.N.onYtServiceRequestSent=function(){this.toggleSubmitButton(!1)};
_.N.onYtServiceRequestCompleted=function(F,W){W=W.actions;if(Array.isArray(W))for(var E=0,h=W.length;E<h;E++)_.D(W[E],_.J7)&&(F.stopPropagation(),this.hostElement.parentElement.close(),this.ytOpenPopupBehavior.openPopup(W[E]))};
_.N.onYtServiceRequestError=function(){this.toggleSubmitButton(!0)};
_.N.toggleSubmitButton=function(F){this.set("submitButton.isDisabled",!F)};
_.N.handleInput=function(){var F=this.issueType,W=this.affiliation,E=this.minutes,h=this.seconds;E=!this.showTimestamp||!!E&&!!h;this.toggleSubmitButton(!!this.descriptionText&&!!F&&!!W&&E)};
_.N.computeServiceEndpoint=function(F){return this.get("submitButton.buttonRenderer.serviceEndpoint",F)};
_.N.computeSubmitButton=function(F){(F=this.get("submitButton.buttonRenderer",F))&&(F=Object.assign({},F,{serviceEndpoint:void 0}));return F};
_.N.computeShowTimestamp=function(F){return!!F};
_.N.onValueChangedForIssueType=function(F){this.issueType=F.detail.value};
_.N.onValueChangedForAffiliation=function(F){this.affiliation=F.detail.value};
_.N.updateDescriptionTextFromBinding=function(F){this.descriptionText=F.detail.value};
_.N.updateFullNameTextFromBinding=function(F){this.fullNameText=F.detail.value};
_.N.updateMinutesFromBinding=function(F){this.minutes=F.detail.value};
_.N.updateSecondsFromBinding=function(F){this.seconds=F.detail.value};
s3.prototype.handleInput=s3.prototype.handleInput;s3.prototype.onYtServiceRequestError=s3.prototype.onYtServiceRequestError;s3.prototype.onYtServiceRequestCompleted=s3.prototype.onYtServiceRequestCompleted;s3.prototype.onYtServiceRequestSent=s3.prototype.onYtServiceRequestSent;s3.prototype.dataChanged=s3.prototype.dataChanged;_.T([_.J(_.R9.YtOpenPopupBehavior),_.Y("design:type",Object)],s3.prototype,"ytOpenPopupBehavior",void 0);
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],s3.prototype,"ytRendererBehavior",void 0);_.T([_.gQ("#scroller"),_.Y("design:type",Object)],s3.prototype,"JSC$18042_scroller",void 0);_.T([_.gQ("#description"),_.Y("design:type",HTMLInputElement)],s3.prototype,"description",void 0);_.T([_.gQ("#full-name"),_.Y("design:type",Object)],s3.prototype,"fullName",void 0);_.T([_.O(),_.Y("design:type",Object)],s3.prototype,"data",void 0);
_.T([_.O({computed:"computeShowTimestamp(data.timestampLabel)"}),_.Y("design:type",Boolean)],s3.prototype,"showTimestamp",void 0);_.T([_.O({readOnly:!0,computed:"computeServiceEndpoint(data)"}),_.Y("design:type",Object)],s3.prototype,"serviceEndpoint",void 0);_.T([_.O({computed:"computeSubmitButton(data)"}),_.Y("design:type",Object)],s3.prototype,"submitButton",void 0);_.T([_.O(),_.Y("design:type",String)],s3.prototype,"descriptionText",void 0);
_.T([_.O(),_.Y("design:type",Number)],s3.prototype,"issueType",void 0);_.T([_.O(),_.Y("design:type",Number)],s3.prototype,"affiliation",void 0);_.T([_.O(),_.Y("design:type",String)],s3.prototype,"fullNameText",void 0);_.T([_.O(),_.Y("design:type",String)],s3.prototype,"minutes",void 0);_.T([_.O(),_.Y("design:type",String)],s3.prototype,"seconds",void 0);_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],s3.prototype,"dataChanged",null);
_.T([_.R4("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.nQ]),_.Y("design:returntype")],s3.prototype,"onYtServiceRequestSent",null);_.T([_.R4("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.uz]),_.Y("design:returntype")],s3.prototype,"onYtServiceRequestCompleted",null);
_.T([_.R4("yt-service-request-error"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],s3.prototype,"onYtServiceRequestError",null);_.T([_.ea("descriptionText","issueType","affiliation","fullNameText","minutes","seconds"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],s3.prototype,"handleInput",null);s3=_.T([_.y({is:"ytd-legal-report-details-form-renderer",disableElementRegistration:!0})],s3);
_.r(s3,"ytd-legal-report-details-form-renderer",function(){if(B1K!==void 0)return B1K;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-legal-report-details-form-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h2 id="title" class="style-scope ytd-legal-report-details-form-renderer">[[getSimpleString(data.title)]]</h2>\n<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-legal-report-details-form-renderer">\n  <template is="dom-if" if="[[showTimestamp]]" class="style-scope ytd-legal-report-details-form-renderer">\n    <label id="timestamp" class="style-scope ytd-legal-report-details-form-renderer">\n      [[getSimpleString(data.timestampLabel)]]\n      <yt-timestamp-input minutes="[[minutes]]" seconds="[[seconds]]" on-minutes-changed="updateMinutesFromBinding" on-seconds-changed="updateSecondsFromBinding" class="style-scope ytd-legal-report-details-form-renderer">\n      </yt-timestamp-input>\n    </label>\n  </template>\n  <div id="description-box" class="style-scope ytd-legal-report-details-form-renderer">\n    <tp-yt-paper-input-container no-label-float="true" use-v2-underline="" class="style-scope ytd-legal-report-details-form-renderer">\n      <tp-yt-iron-autogrow-textarea id="description" class="paper-input-input style-scope ytd-legal-report-details-form-renderer" slot="input" aria-label$="[[getSimpleString(data.descriptionHint)]]" maxlength$="[[data.maxDescriptionChars]]" placeholder="[[getSimpleString(data.descriptionHint)]]" required="true" rows="4" value="[[descriptionText]]" on-value-changed="updateDescriptionTextFromBinding">\n      </tp-yt-iron-autogrow-textarea>\n      <tp-yt-paper-input-char-counter slot="add-on" class="style-scope ytd-legal-report-details-form-renderer"></tp-yt-paper-input-char-counter>\n    </tp-yt-paper-input-container>\n  </div>\n  <ytd-dropdown-renderer id="issue-type" data="[[data.issueTypeDropdown.dropdownRenderer]]" value="[[issueType]]" on-value-changed="onValueChangedForIssueType" class="style-scope ytd-legal-report-details-form-renderer">\n  </ytd-dropdown-renderer>\n  <ytd-dropdown-renderer id="affiliation" data="[[data.affiliationDropdown.dropdownRenderer]]" value="[[affiliation]]" on-value-changed="onValueChangedForAffiliation" class="style-scope ytd-legal-report-details-form-renderer">\n  </ytd-dropdown-renderer>\n  <tp-yt-paper-input id="full-name" maxlength="[[data.maxNameChars]]" placeholder="[[getSimpleString(data.nameHint)]]" use-v2-underline="" value="[[fullNameText]]" on-value-changed="updateFullNameTextFromBinding" class="style-scope ytd-legal-report-details-form-renderer">\n  </tp-yt-paper-input>\n  <div id="name-subtext" class="style-scope ytd-legal-report-details-form-renderer">[[getSimpleString(data.nameSubtext)]]</div>\n  <div id="footer-text" class="style-scope ytd-legal-report-details-form-renderer">[[getSimpleString(data.footerText)]]</div>\n</tp-yt-paper-dialog-scrollable>\n<div class="footer style-scope ytd-legal-report-details-form-renderer">\n  <div id="required-label" class="style-scope ytd-legal-report-details-form-renderer">[[getSimpleString(data.requiredLabel)]]</div>\n  <div class="buttons style-scope ytd-legal-report-details-form-renderer">\n    <yt-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" dialog-dismiss="" class="style-scope ytd-legal-report-details-form-renderer">\n    </yt-button-renderer>\n    <yt-button-renderer id="submit-button" data="[[submitButton]]" dialog-confirm="" on-click="onTapSubmit" class="style-scope ytd-legal-report-details-form-renderer">\n    </yt-button-renderer>\n  </div>\n</div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return B1K=F},{mode:1});var cMu;var L4=function(){var F=_.n.apply(this,arguments)||this;F.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm","yt-signal-action-submit-popup-form-fields":"handleSignalActionSubmitPopupFormFields"};return F};
_.k(L4,_.n);L4.prototype.configureRendererStamper=function(){return{"data.form":{id:"form",mapping:{formRenderer:"yt-form-renderer"}}}};
L4.prototype.handleSignalActionSubmitForm=function(){if(this.formRenderer){var F=this.formRenderer.getForm();F&&this.data.submitEndpoint&&(_.WZ().resolve(_.EJ).resolveCommand(this.data.submitEndpoint,{form:Object.assign({},F,{element:this.hostElement})}),_.dW(this.hostElement,"yt-close-popup-action"))}};
L4.prototype.handleSignalActionSubmitPopupFormFields=function(){this.formRenderer&&(this.formRenderer.submitFormFields(),_.dW(this.hostElement,"yt-close-popup-action"))};
L4.prototype.onPopupClosed=function(){this.formRenderer&&this.formRenderer.reset()};
L4.prototype.onPopupClosed=L4.prototype.onPopupClosed;_.T([_.J(_.B$.YtEventForwardingBehavior),_.Y("design:type",Object)],L4.prototype,"ytEventForwardingBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],L4.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],L4.prototype,"ytActionHandlerBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],L4.prototype,"ytRendererBehavior",void 0);
_.T([_.gQ("yt-form-renderer"),_.Y("design:type",Object)],L4.prototype,"formRenderer",void 0);_.T([_.O(),_.Y("design:type",Object)],L4.prototype,"data",void 0);_.T([_.R4("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],L4.prototype,"onPopupClosed",null);L4=_.T([_.y({is:"ytd-form-popup-content",disableElementRegistration:!0})],L4);
_.r(L4,"ytd-form-popup-content",function(){if(cMu!==void 0)return cMu;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-form-popup-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="form" class="style-scope ytd-form-popup-content"></div>');F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return cMu=F},{mode:1});var DMw;var qs=function(){return _.n.apply(this,arguments)||this};
_.k(qs,_.n);qs.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
qs.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
qs.prototype.onPopupOpened=function(){_.hF(this.hostElement,"yt-invalidate-popup-tabbables")};
qs.prototype.onYtServiceRequestCompleted=function(F,W){W.data&&W.data.success&&(this.set("data.buttons.1.buttonRenderer.isDisabled",!1),_.hF(this.hostElement,"yt-invalidate-popup-tabbables"))};
qs.prototype.onYtServiceRequestCompleted=qs.prototype.onYtServiceRequestCompleted;qs.prototype.onPopupOpened=qs.prototype.onPopupOpened;_.T([_.J(_.B$.YtEventForwardingBehavior),_.Y("design:type",Object)],qs.prototype,"ytEventForwardingBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],qs.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],qs.prototype,"ytRendererBehavior",void 0);
_.T([_.O(),_.Y("design:type",Object)],qs.prototype,"data",void 0);_.T([_.R4("yt-popup-opened"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],qs.prototype,"onPopupOpened",null);_.T([_.R4("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.uz]),_.Y("design:returntype")],qs.prototype,"onYtServiceRequestCompleted",null);qs=_.T([_.y({is:"ytd-form-popup-renderer",disableElementRegistration:!0})],qs);
_.r(qs,"ytd-form-popup-renderer",function(){if(DMw!==void 0)return DMw;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-form-popup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" class="style-scope ytd-form-popup-renderer">[[getSimpleString(data.title)]]</div>\n<ytd-form-popup-content data="[[data]]" class="style-scope ytd-form-popup-renderer"></ytd-form-popup-content>\n<div id="buttons" class="style-scope ytd-form-popup-renderer"></div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return DMw=F},{mode:1});var xM$;var $e=function(){var F=_.n.apply(this,arguments)||this;F.isLoading=!1;return F};
_.k($e,_.n);_.N=$e.prototype;_.N.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");ZMx(this.hostElement)};
_.N.onYtServiceRequestSent=function(){this.isLoading=!0};
_.N.onYtServiceRequestCompleted=function(){_.dW(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-confirm-dialog-renderer"])};
_.N.fireOnCloseActions=function(){this.isLoading=!1;this.data&&this.data.onClosedActions&&_.Rj(this.hostElement,this.data.onClosedActions,this.hostElement)};
_.N.closePopupHandler=function(){this.fireOnCloseActions()};
_.N.onHeaderImageChanged=function(){if(this.data){this.data.headerImage?this.hostElement.setAttribute("dialog-with-header-image",""):this.hostElement.removeAttribute("dialog-with-header-image");var F=this.get("data.headerImage.thumbnails");F&&(F=_.m_(F,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+F+")")}};
_.N.onYtNavigate=function(F){(F=_.oo(F))&&F.parentElement===this.confirmButton&&this.hostElement.parentElement&&this.hostElement.parentElement.close()};
$e.prototype.onYtNavigate=$e.prototype.onYtNavigate;$e.prototype.onHeaderImageChanged=$e.prototype.onHeaderImageChanged;$e.prototype.closePopupHandler=$e.prototype.closePopupHandler;$e.prototype.onYtServiceRequestCompleted=$e.prototype.onYtServiceRequestCompleted;$e.prototype.onYtServiceRequestSent=$e.prototype.onYtServiceRequestSent;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],$e.prototype,"ytRendererBehavior",void 0);
_.T([_.J(_.B$.YtEventForwardingBehavior),_.Y("design:type",Object)],$e.prototype,"ytEventForwardingBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],$e.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],$e.prototype,"isLoading",void 0);_.T([_.gQ("#header"),_.Y("design:type",HTMLDivElement)],$e.prototype,"header",void 0);_.T([_.gQ("#confirm-button"),_.Y("design:type",_.BU)],$e.prototype,"confirmButton",void 0);
_.T([_.R4("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],$e.prototype,"onYtServiceRequestSent",null);_.T([_.R4("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],$e.prototype,"onYtServiceRequestCompleted",null);
_.T([_.R4("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],$e.prototype,"closePopupHandler",null);_.T([_.ea("data.headerImage"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],$e.prototype,"onHeaderImageChanged",null);_.T([_.R4("yt-navigate"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],$e.prototype,"onYtNavigate",null);
$e=_.T([_.y({is:"ytd-gaming-account-link-confirm-dialog-renderer",disableElementRegistration:!0})],$e);
_.r($e,"ytd-gaming-account-link-confirm-dialog-renderer",function(){if(xM$!==void 0)return xM$;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-gaming-account-link-confirm-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer">\n  <div class="avatar-support style-scope ytd-gaming-account-link-confirm-dialog-renderer" aria-hidden="true">\n    <yt-img-shadow class="avatar left style-scope ytd-gaming-account-link-confirm-dialog-renderer" thumbnail="[[data.userAvatar]]">\n    </yt-img-shadow>\n    <yt-icon class="third-party-icon style-scope ytd-gaming-account-link-confirm-dialog-renderer" icon="[[data.icon.iconType]]"></yt-icon>\n    <yt-img-shadow class="avatar right style-scope ytd-gaming-account-link-confirm-dialog-renderer" thumbnail="[[data.thirdPartyAvatar]]">\n    </yt-img-shadow>\n  </div>\n  <div id="dismiss-button" dialog-dismiss="" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer"></div>\n</div>\n<div id="main" hidden="[[data.showLoadingSpinner]]" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer">\n  <yt-formatted-string id="title" hidden$="[[!data.title]]" role="heading" text="[[data.title]]" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer"></yt-formatted-string>\n  <div id="dialog-messages" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer">\n    <template is="dom-repeat" items="[[data.dialogMessages]]" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer">\n      <yt-formatted-string class="line-text style-scope ytd-gaming-account-link-confirm-dialog-renderer" text="[[item]]"></yt-formatted-string>\n    </template>\n  </div>\n  <div class="buttons style-scope ytd-gaming-account-link-confirm-dialog-renderer" hidden="[[isLoading]]">\n    <yt-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" hidden$="[[!data.cancelButton]]" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer">\n    </yt-button-renderer>\n    <yt-button-renderer id="confirm-button" data="[[data.confirmButton.buttonRenderer]]" dialog-confirm="" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer">\n    </yt-button-renderer>\n  </div>\n  <div class="spinner style-scope ytd-gaming-account-link-confirm-dialog-renderer" hidden="[[!isLoading]]">\n    <tp-yt-paper-spinner active="" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer"></tp-yt-paper-spinner>\n  </div>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return xM$=F},{mode:1});var kd$;var ZK=function(){var F=_.n.apply(this,arguments)||this;F.isLoading=!1;return F};
_.k(ZK,_.n);_.N=ZK.prototype;_.N.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}},"data.linkButton":{id:"link-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.N.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable&&(this.scrollable.dialogElement=this.hostElement.parentNode);ZMx(this.hostElement)};
_.N.onYtServiceRequestCompleted=function(){_.dW(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-setting-renderer"])};
_.N.onYtServiceRequestError=function(F){_.R$(this.hostElement,F.detail.error.message)};
_.N.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.N.onButtonClick=function(){this.data&&(this.data.isContinueDialog||this.data.thirdPartyId&&this.data.thirdPartyId!=="gpg"&&_.dW(this.hostElement,"yt-initialize-third-party",[this.data.thirdPartyId]),this.isLoading=!0)};
_.N.onDataChanged=function(){this.isLoading=!1;var F=this.get("data.headerImage.thumbnails");F&&(F=_.m_(F,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+F+")");F=_.JR();var W=_.Pf(),E=this.get("data.trackingParams");E&&W&&F&&_.y7(F,W,_.ve(E))};
_.Sn.Object.defineProperties(ZK.prototype,{hasDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.data||!this.data.descriptions)}}});
ZK.prototype.onDataChanged=ZK.prototype.onDataChanged;ZK.prototype.onDomChange=ZK.prototype.onDomChange;ZK.prototype.onYtServiceRequestError=ZK.prototype.onYtServiceRequestError;ZK.prototype.onYtServiceRequestCompleted=ZK.prototype.onYtServiceRequestCompleted;_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],ZK.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],ZK.prototype,"ytRendererBehavior",void 0);
_.T([_.O(),_.Y("design:type",Object)],ZK.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],ZK.prototype,"isLoading",void 0);_.T([_.O({reflectToAttribute:!0}),_.a("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],ZK.prototype,"hasDescription",null);_.T([_.gQ("tp-yt-paper-dialog-scrollable"),_.Y("design:type",Object)],ZK.prototype,"scrollable",void 0);_.T([_.gQ("#header"),_.Y("design:type",HTMLElement)],ZK.prototype,"header",void 0);
_.T([_.R4("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],ZK.prototype,"onYtServiceRequestCompleted",null);_.T([_.R4("yt-service-request-error"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],ZK.prototype,"onYtServiceRequestError",null);
_.T([_.R4("dom-change"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],ZK.prototype,"onDomChange",null);_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ZK.prototype,"onDataChanged",null);ZK=_.T([_.y({is:"ytd-gaming-account-link-setting-renderer",disableElementRegistration:!0})],ZK);
_.r(ZK,"ytd-gaming-account-link-setting-renderer",function(){if(kd$!==void 0)return kd$;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-gaming-account-link-setting-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-gaming-account-link-setting-renderer">\n  <div class="avatar-support style-scope ytd-gaming-account-link-setting-renderer" aria-hidden="true">\n    <yt-img-shadow class="avatar style-scope ytd-gaming-account-link-setting-renderer" thumbnail="[[data.userAvatar]]">\n    </yt-img-shadow>\n    <yt-icon class="third-party-icon style-scope ytd-gaming-account-link-setting-renderer" icon="[[data.icon.iconType]]"></yt-icon>\n    <yt-img-shadow class="avatar style-scope ytd-gaming-account-link-setting-renderer" thumbnail="[[data.thirdPartyAvatar]]">\n    </yt-img-shadow>\n  </div>\n  <div id="dismiss-button" class="style-scope ytd-gaming-account-link-setting-renderer"></div>\n</div>\n<div id="content" class="style-scope ytd-gaming-account-link-setting-renderer">\n  <yt-formatted-string id="title" role="heading" text="[[data.header]]" class="style-scope ytd-gaming-account-link-setting-renderer"></yt-formatted-string>\n  <div id="description-container" hidden="[[!hasDescription]]" class="style-scope ytd-gaming-account-link-setting-renderer">\n    <template is="dom-repeat" items="[[data.descriptions]]" as="description" class="style-scope ytd-gaming-account-link-setting-renderer">\n      <yt-formatted-string class="description style-scope ytd-gaming-account-link-setting-renderer" split-lines="" text="[[description]]"></yt-formatted-string>\n    </template>\n  </div>\n</div>\n<div id="link-button-container" class="style-scope ytd-gaming-account-link-setting-renderer">\n  <tp-yt-paper-spinner class="spinner style-scope ytd-gaming-account-link-setting-renderer" active="" hidden="[[!isLoading]]"></tp-yt-paper-spinner>\n  <div id="link-button" hidden="[[isLoading]]" on-click="onButtonClick" class="style-scope ytd-gaming-account-link-setting-renderer"></div>\n</div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return kd$=F},{mode:1});var AMK;var stK;var Xq=function(){var F=_.n.apply(this,arguments)||this;F.isHeader=!1;F.getEndpointForm=HVK;return F};
_.k(Xq,_.n);_.N=Xq.prototype;_.N.triggerHintActions=function(){var F=this;this.data&&this.data.hintActions&&this.taskEmitterBehavior.getTaskManager().addLowPriorityJob(function(){var W=_.Nc(F.hostElement,"yt-get-opened-popups-action");!(W&&W.length===1?W[0]:[]).some(function(E){E=E.openPopupAction.popupType;return E==="SURVEY"||E==="MEALBAR"||E==="HINT"})&&F.data.hintActions&&F.guideOpened&&(_.Rj(F.hostElement,F.data.hintActions,F.hostElement),F.data.hintActions=void 0)})};
_.N.getBadgeIconType=function(F){return F&&F.liveBroadcasting?"live":null};
_.N.onDown=function(){this.interaction.triggerDown()};
_.N.onUp=function(){this.interaction.triggerUp()};
_.N.onTap=function(F){if(this.data.serviceEndpoint){var W;_.c("shorts_controller_retrieve_seedless_sequence_v2")&&((W=_.D(this.data.serviceEndpoint,_.DP))==null?void 0:W.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.componentBehavior.resolveCommand(this.data.serviceEndpoint):Xz6(this.data.serviceEndpoint,this);F.preventDefault()}else this.data.navigationEndpoint&&!_.Sc(_.TB(F),this.hostElement,["A".toString()])&&_.hF(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})};
_.N.computeActive=function(F,W){if(!F)return!1;var E=F.navigationEndpoint;F=F.serviceEndpoint;if(!E&&!F||!W)return!1;if(E){F=(F=_.Cf(W))&&["subscriptions","filteredsubscriptions"].includes(F);if(_.D(E,_.BB)&&_.D(W,_.BB)&&!F){var h=_.D(E,_.BB).browseId;W=_.D(W,_.BB).browseId;return h!==void 0&&W!==void 0&&(h===W||h==="VLWL"&&W==="FEwatch_later"||h==="FEwatch_later"&&W==="VLWL")}var d;E=(d=_.D(E.commandMetadata,_.m1))==null?void 0:d.url;W=(h=_.D(W.commandMetadata,_.m1))==null?void 0:h.url;return!(!E||
!W||E!==W&&E!==_.gV(W))}return this.isActiveShortsTab(F,W)};
_.N.isActiveShortsTab=function(F,W){W=!!_.D(W,_.DP)||!!_.D(W,_.ni);return(!!_.D(F,_.DP)||!!_.D(F,_.ni))&&W};
_.N.computeIsPrimary=function(F){return!!F};
_.Sn.Object.defineProperties(Xq.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.computeActive(this.data,this.activeEndpoint)}},
isPrimary:{configurable:!0,enumerable:!0,get:function(){return this.computeIsPrimary(this.data.isPrimary)}},
lineEndStyle:{configurable:!0,enumerable:!0,get:function(){return this.data?this.data.badges&&this.getBadgeIconType(this.data.badges)?"badge":this.data.presentationStyle==="GUIDE_ENTRY_PRESENTATION_STYLE_NEW_CONTENT"?"dot":this.data.count?"count":"none":"none"}},
ariaLabel:{configurable:!0,enumerable:!0,get:function(){var F=this.get("data.accessibility.accessibilityData.label");if(this.lineEndStyle!=="none"&&F)return F}}});
Xq.prototype.onTap=Xq.prototype.onTap;Xq.prototype.onUp=Xq.prototype.onUp;Xq.prototype.onDown=Xq.prototype.onDown;Xq.prototype.triggerHintActions=Xq.prototype.triggerHintActions;_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],Xq.prototype,"componentBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Xq.prototype,"rendererBehavior",void 0);_.T([_.J(_.ua.YtTaskEmitterBehavior),_.Y("design:type",Object)],Xq.prototype,"taskEmitterBehavior",void 0);
_.T([_.O(),_.Y("design:type",Object)],Xq.prototype,"activeEndpoint",void 0);_.T([_.O(),_.Y("design:type",Object)],Xq.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Boolean)],Xq.prototype,"guideOpened",void 0);_.T([_.O(),_.Y("design:type",String)],Xq.prototype,"type",void 0);_.T([_.gQ("yt-interaction"),_.Y("design:type",Object)],Xq.prototype,"interaction",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],Xq.prototype,"isHeader",void 0);
_.T([_.O({reflectToAttribute:!0}),_.a("data","activeEndpoint"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Xq.prototype,"active",null);_.T([_.O({reflectToAttribute:!0}),_.a("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Xq.prototype,"isPrimary",null);_.T([_.O({reflectToAttribute:!0}),_.a("data.count","data.presentationStyle","data.badges.*"),_.Y("design:type",String),_.Y("design:paramtypes",[])],Xq.prototype,"lineEndStyle",null);
_.T([_.a("lineEndStyle"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Xq.prototype,"ariaLabel",null);_.T([_.ea("data.hintActions","guideOpened"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Xq.prototype,"triggerHintActions",null);_.T([_.R4("down"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Xq.prototype,"onDown",null);
_.T([_.R4("up"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Xq.prototype,"onUp",null);_.T([_.R4("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Xq.prototype,"onTap",null);Xq=_.T([_.y({is:"ytd-guide-entry-renderer",disableElementRegistration:!0})],Xq);
_.r(Xq,"ytd-guide-entry-renderer",function(){if(stK!==void 0)return stK;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope ytd-guide-entry-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" tabindex="-1" title="[[getSimpleString(data.formattedTitle)]]" aria-label$="[[ariaLabel]]" role="link" get-form="[[getEndpointForm]]">\n  <tp-yt-paper-item role="link" class="style-scope ytd-guide-entry-renderer">\n    <yt-icon class="guide-icon style-scope ytd-guide-entry-renderer" active="[[active]]" disable-upgrade$="[[data.thumbnail]]" hidden="[[data.thumbnail]]" icon="[[computeIcon_(data.icon)]]">\n    </yt-icon>\n    <yt-img-shadow height="24" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" width="24" class="style-scope ytd-guide-entry-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string class="title style-scope ytd-guide-entry-renderer" text="[[data.formattedTitle]]"></yt-formatted-string>\n    <yt-icon class="arrow-icon style-scope ytd-guide-entry-renderer" disable-upgrade$="[[!isHeader]]" hidden="[[!isHeader]]" icon="chevron_right" size="16">\n    </yt-icon>\n    <span class="guide-entry-count style-scope ytd-guide-entry-renderer"> [[data.count]] </span>\n    <yt-icon class="guide-entry-badge style-scope ytd-guide-entry-renderer" disable-upgrade$="[[!getBadgeIconType(data.badges)]]" icon="[[getBadgeIconType(data.badges)]]" size="16">\n    </yt-icon>\n    <div id="newness-dot" class="style-scope ytd-guide-entry-renderer"></div>\n  </tp-yt-paper-item>\n</a>\n<yt-interaction class="style-scope ytd-guide-entry-renderer"></yt-interaction>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return stK=F},{mode:1});var Hn=function(){var F=_.n.apply(this,arguments)||this;F.userToggled=!1;return F};
_.k(Hn,_.n);_.N=Hn.prototype;_.N.getItemsPath=function(){return"data.expandableItems"};
_.N.configureRendererStamper=function(){return{shownItems:{id:"expandable-items",mapping:{guideEntryRenderer:{component:"ytd-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]"},noInjection:!0}}}}};
_.N.onExpanderItemTapped=function(F){var W=this;this._setExpanded(!0);this.userToggled=!0;this.ytLazyListBehavior.fillRemainingListItems();this.expandableItems&&!_.c("kevlar_guide_expandable_items_killswitch")&&_.wT(this,function(){_.SQ(W.expandableItems)});
F.preventDefault()};
_.N.onCollapserItemTapped=function(F){var W=this;this._setExpanded(!1);this.userToggled=!0;F.preventDefault();this.expandableItems&&!_.c("kevlar_guide_collapsible_items_killswitch")&&_.wT(this,function(){_.Y7(W.hostElement)})};
_.N.observeActiveEndpoint=function(){for(var F=this.activeEndpoint,W=this.data,E=this.expandableItems.children,h=0,d=E.length;h<d;h++)E[h].activeEndpoint=F;W&&W.autoExpandCommand&&F&&!this.userToggled&&(E=this.data.autoExpandCommand,W=!(!_.D(E,_.BB)||!_.D(F,_.BB)||_.D(E,_.BB).browseId!==_.D(F,_.BB).browseId),F=this.get("commandMetadata.webCommandMetadata.url",F),E=this.get("commandMetadata.webCommandMetadata.url",E),W=W||!!(F&&E&&F.includes(E)),this._setExpanded(W),W&&this.ytLazyListBehavior.fillRemainingListItems())};
Hn.prototype.observeActiveEndpoint=Hn.prototype.observeActiveEndpoint;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Hn.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],Hn.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.W3.YtLazyListBehavior),_.Y("design:type",Object)],Hn.prototype,"ytLazyListBehavior",void 0);_.T([_.gQ("#expandable-items"),_.Y("design:type",HTMLElement)],Hn.prototype,"expandableItems",void 0);
_.T([_.O(),_.Y("design:type",Object)],Hn.prototype,"data",void 0);_.T([_.O({readOnly:!0,reflectToAttribute:!0}),_.Y("design:type",Boolean)],Hn.prototype,"expanded",void 0);_.T([_.O({value:0}),_.Y("design:type",Number)],Hn.prototype,"initialCount",void 0);_.T([_.O(),_.Y("design:type",Object)],Hn.prototype,"activeEndpoint",void 0);_.T([_.ea("data","activeEndpoint","canShowMore"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Hn.prototype,"observeActiveEndpoint",null);
Hn=_.T([_.y({is:"ytd-guide-collapsible-entry-renderer",disableElementRegistration:!0})],Hn);
_.r(Hn,"ytd-guide-collapsible-entry-renderer",function(){if(AMK!==void 0)return AMK;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-collapsible-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-guide-entry-renderer id="expander-item" aria-expanded="[[expanded]]" data="[[data.expanderItem.guideEntryRenderer]]" detail="[[isDetail]]" role="button" on-click="onExpanderItemTapped" class="style-scope ytd-guide-collapsible-entry-renderer">\n</ytd-guide-entry-renderer>\n<div id="expanded" class="style-scope ytd-guide-collapsible-entry-renderer">\n  <div id="expandable-items" class="style-scope ytd-guide-collapsible-entry-renderer"></div>\n  <ytd-guide-entry-renderer id="collapser-item" aria-expanded="[[expanded]]" data="[[data.collapserItem.guideEntryRenderer]]" detail="[[isDetail]]" role="button" on-click="onCollapserItemTapped" class="style-scope ytd-guide-collapsible-entry-renderer">\n  </ytd-guide-entry-renderer>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return AMK=F},{mode:_.E6("kevlar_poly_si_batch_j079")?1:2});var LO$;var qc$;var Pn=function(){var F=_.n.apply(this,arguments)||this;F.allVideosCount=0;F.renderGuideEntry=!1;return F};
_.k(Pn,_.n);Pn.prototype.observeRenderEntry=function(){var F;this.renderGuideEntry=!((F=this.data)==null||!F.alwaysShow)||!!this.allVideosCount};
Pn.prototype.observeRenderEntry=Pn.prototype.observeRenderEntry;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Pn.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.am),_.Y("design:type",Object)],Pn.prototype,"ytdReduxBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],Pn.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Object)],Pn.prototype,"activeEndpoint",void 0);_.T([_.O({selector:_.XPr}),_.Y("design:type",Object)],Pn.prototype,"allVideosCount",void 0);
_.T([_.O(),_.Y("design:type",Object)],Pn.prototype,"renderGuideEntry",void 0);_.T([_.Cz("allVideosCount","data.alwaysShow"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Pn.prototype,"observeRenderEntry",null);Pn=_.T([_.y({is:"ytd-guide-downloads-entry-renderer",disableElementRegistration:!0})],Pn);
_.r(Pn,"ytd-guide-downloads-entry-renderer",function(){if(qc$===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-downloads-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e  <ytd-guide-entry-renderer id="downloads-entry" active-endpoint="[[activeEndpoint]]" data="[[data.entryRenderer.guideEntryRenderer]]" hidden="[[!renderGuideEntry]]" class="style-scope ytd-guide-downloads-entry-renderer">\n  </ytd-guide-entry-renderer>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);qc$=F}F=qc$;return F},{mode:1});var Jo=function(){var F=_.n.apply(this,arguments)||this;F.youtab=_.c("web_enable_youtab");F.actionMap={"yt-add-to-guide-section-action":"handleAddToGuideSectionAction","yt-remove-from-guide-section-action":"handleRemoveFromGuideSectionAction"};return F};
_.k(Jo,_.n);_.N=Jo.prototype;_.N.configureRendererStamper=function(){return{"data.sectionItems":{id:"section-items",mapping:{guideCollapsibleEntryRenderer:{component:"ytd-guide-collapsible-entry-renderer",noInjection:!0,properties:{activeEndpoint:"[[activeEndpoint]]"}},guideEntryRenderer:{component:"ytd-guide-entry-renderer",noInjection:!0,properties:{activeEndpoint:"[[activeEndpoint]]"}},guideDownloadsEntryRenderer:{component:"ytd-guide-downloads-entry-renderer",noInjection:!0,properties:{activeEndpoint:"[[activeEndpoint]]"}}}}}};
_.N.activeEndpointChanged=function(){if(this.activeEndpoint){this.headerEntry.activeEndpoint=this.activeEndpoint;for(var F=this.sectionItems.children,W=0,E=F.length;W<E;W++)F[W].activeEndpoint=this.activeEndpoint}};
_.N.handleAddToGuideSectionAction=function(F){var W=_.D(F,yjx);if(W&&this.data&&(F=W.items,W=W.handlerData,F&&W&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(W)>-1)){W=0;for(var E=F.length;W<E;W++)F[W].guideEntryRenderer&&this.data.sectionItems&&this.splice("data.sectionItems",this.data.sectionItems.length-1,0,F[W])}};
_.N.handleRemoveFromGuideSectionAction=function(F){var W=_.D(F,jqT);W&&this.data&&(F=W.guideEntryId,W=W.handlerData,F&&W&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(W)>-1&&this.data&&this.data.sectionItems&&(this.removeFromExpandedSection(F,this.data.sectionItems),this.removeFromCollapsedSection(F,this.data.sectionItems)))};
_.N.removeFromExpandedSection=function(F,W){F=this.getEntryIndexMatchingId(F,W);F!==-1&&this.splice("data.sectionItems",F,1)};
_.N.removeFromCollapsedSection=function(F,W){var E=W.findIndex(function(h){return!!_.D(h,hLT)});
E&&E!==-1&&W[E]&&_.D(W[E],hLT)&&(W=_.D(W[E],hLT).expandableItems)&&(F=this.getEntryIndexMatchingId(F,W),F!==-1&&this.splice("data.sectionItems."+E+".guideCollapsibleEntryRenderer.expandableItems",F,1))};
_.N.getEntryIndexMatchingId=function(F,W){var E=this;return W.findIndex(function(h){return E.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",h)===F})};
Jo.prototype.activeEndpointChanged=Jo.prototype.activeEndpointChanged;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Jo.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],Jo.prototype,"actionHandlerBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],Jo.prototype,"ytRendererstamperBehavior",void 0);_.T([_.gQ("#section-items"),_.Y("design:type",HTMLDivElement)],Jo.prototype,"sectionItems",void 0);
_.T([_.gQ("#header-entry"),_.Y("design:type",Object)],Jo.prototype,"headerEntry",void 0);_.T([_.O(),_.Y("design:type",Object)],Jo.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Object)],Jo.prototype,"activeEndpoint",void 0);_.T([_.O(),_.Y("design:type",Object)],Jo.prototype,"youtab",void 0);_.T([_.ea("activeEndpoint"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Jo.prototype,"activeEndpointChanged",null);
Jo=_.T([_.y({is:"ytd-guide-collapsible-section-entry-renderer",disableElementRegistration:!0})],Jo);
_.r(Jo,"ytd-guide-collapsible-section-entry-renderer",function(){if(LO$===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-collapsible-section-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-guide-collapsible-section-entry-renderer">\n  <ytd-guide-entry-renderer id="header-entry" data="[[data.headerEntry.guideEntryRenderer]]" is-header="[[youtab]]" class="style-scope ytd-guide-collapsible-section-entry-renderer">\n  </ytd-guide-entry-renderer>\n</div>\n<div id="section-items" class="style-scope ytd-guide-collapsible-section-entry-renderer"></div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);LO$=F}F=LO$;return F},{mode:1});var $M8;var ZpN;var aB=function(){var F=_.n.apply(this,arguments)||this;F.modernTypography=_.c("web_modern_typography");F.actionMap={"yt-add-to-guide-section-action":"handleAddToGuideSectionAction","yt-remove-from-guide-section-action":"handleRemoveFromGuideSectionAction","yt-reset-channel-unread-count-command":"handleResetChannelUnreadCountCommand","yt-reset-subscriptions-unread-dot-command":"handleResetSubscriptionsUnreadDotCommand"};return F};
_.k(aB,_.n);_.N=aB.prototype;
_.N.configureRendererStamper=function(){return{shownItems:{id:"items",mapping:{guideEntryRenderer:{component:"ytd-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]",guideOpened:"[[guideOpened]]",type:"[[type]]"},noInjection:!0},guideCollapsibleEntryRenderer:{component:"ytd-guide-collapsible-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]"},noInjection:!0},guideCollapsibleSectionEntryRenderer:{component:"ytd-guide-collapsible-section-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]"},
noInjection:!0}}}}};
_.N.persistentGuideChanged=function(){if(!this.ytdGuideStateAwareBehavior.guidePersistentAndVisible){var F=_.Nc(this.hostElement,"yt-get-popup-opened-action",["yt-bubble-hint-renderer"]);F&&F.length===1&&F[0]&&_.Nc(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"])}};
_.N.handleResetChannelUnreadCountCommand=function(F){var W;(F=(W=_.D(F,rjx))==null?void 0:W.channelId)&&this.data&&this.data.items&&(W=this.getPathToEntryMatchingId(F))&&(this.set(W+".guideEntryRenderer.count",0),this.set(W+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.N.handleResetSubscriptionsUnreadDotCommand=function(F){var W,E=(W=_.D(F,TNO))==null?void 0:W.targetId,h;E&&(h=this.data)!=null&&h.items&&(F=this.data.items.findIndex(function(d){var V;return((V=d.guideEntryRenderer)==null?void 0:V.targetId)===E}),F<0||this.set("data.items."+F+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.N.getPathToEntryMatchingId=function(F){if(this.data&&this.data.items){var W=this.getEntryIndexMatchingId(F,this.data.items);if(W>-1)return"data.items."+W;for(var E=0;E<this.data.items.length;E++)if(W=this.get("guideCollapsibleEntryRenderer.expandableItems",this.data.items[E]))if(W=this.getEntryIndexMatchingId(F,W),W>-1)return"data.items."+E+".guideCollapsibleEntryRenderer.expandableItems."+W}};
_.N.handleAddToGuideSectionAction=function(F){var W=this;if(_.D(F,yjx)){var E=_.D(F,yjx).items;F=_.D(F,yjx).handlerData;var h,d;E&&F&&((h=this.data)==null?void 0:(d=h.handlerDatas)==null?void 0:d.indexOf(F))>-1&&(E=E.filter(function(V){return(V=W.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",V))&&!W.isGuideItemPresent(V)}),this.unshift.apply(this,["data.items"].concat(_.x9(E))))}};
_.N.isGuideItemPresent=function(F){if(this.data&&this.data.items){if(this.getEntryIndexMatchingId(F,this.data.items)!==-1)return!0;var W=this.data.items.find(function(E){return!!E.guideCollapsibleEntryRenderer});
if((W==null?0:W.guideCollapsibleEntryRenderer.expandableItems)&&this.getEntryIndexMatchingId(F,W.guideCollapsibleEntryRenderer.expandableItems)!==-1)return!0}return!1};
_.N.getEntryIndexMatchingId=function(F,W){var E=this;return W.findIndex(function(h){return E.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",h)===F})};
_.N.handleRemoveFromGuideSectionAction=function(F){if(_.D(F,jqT)){var W=_.D(F,jqT).guideEntryId;F=_.D(F,jqT).handlerData;var E,h;W&&F&&((E=this.data)==null?void 0:(h=E.handlerDatas)==null?void 0:h.indexOf(F))>-1&&this.data&&this.data.items&&(this.removeFromExpandedSection(W,this.data.items),this.removeFromCollapsedSection(W,this.data.items))}};
_.N.removeFromExpandedSection=function(F,W){F=this.getEntryIndexMatchingId(F,W);F!==-1&&this.splice("data.items",F,1)};
_.N.removeFromCollapsedSection=function(F,W){var E=W.findIndex(function(h){return!!h.guideCollapsibleEntryRenderer});
E!==-1&&(W=W[E].guideCollapsibleEntryRenderer.expandableItems)&&(F=this.getEntryIndexMatchingId(F,W),F!==-1&&this.splice("data.items."+E+".guideCollapsibleEntryRenderer.expandableItems",F,1))};
_.N.activeEndpointChanged=function(){for(var F=_.Z(this.hostElement).querySelector("#items").children,W=0,E=F.length;W<E;W++)F[W].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.N.guideOpenedChanged=function(){for(var F=_.Z(this.hostElement).querySelector("#items").children,W=0,E=F.length;W<E;W++)F[W].guideOpened=this.ytdGuideStateAwareBehavior.guideOpened};
aB.prototype.guideOpenedChanged=aB.prototype.guideOpenedChanged;aB.prototype.activeEndpointChanged=aB.prototype.activeEndpointChanged;aB.prototype.persistentGuideChanged=aB.prototype.persistentGuideChanged;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],aB.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],aB.prototype,"ytRendererstamperBehavior",void 0);
_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],aB.prototype,"ytActionHandlerBehavior",void 0);_.T([_.J(_.W3.YtLazyListBehavior),_.Y("design:type",Object)],aB.prototype,"ytLazyListBehavior",void 0);_.T([_.J(_.y_.YtdGuideStateAwareBehavior),_.Y("design:type",Object)],aB.prototype,"ytdGuideStateAwareBehavior",void 0);_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],aB.prototype,"ytComponentBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],aB.prototype,"data",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],aB.prototype,"modernTypography",void 0);_.T([_.O(),_.Y("design:type",String)],aB.prototype,"type",void 0);_.T([_.O({value:20}),_.Y("design:type",Number)],aB.prototype,"initialCount",void 0);_.T([_.O({value:10}),_.Y("design:type",Number)],aB.prototype,"targetFramerate",void 0);_.T([_.O({value:!0}),_.Y("design:type",Boolean)],aB.prototype,"autoFill",void 0);_.T([_.O({value:50}),_.Y("design:type",Number)],aB.prototype,"renderDelay",void 0);
_.T([_.ea("guidePersistentAndVisible"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],aB.prototype,"persistentGuideChanged",null);_.T([_.Cz("activeEndpoint"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],aB.prototype,"activeEndpointChanged",null);_.T([_.Cz("guideOpened"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],aB.prototype,"guideOpenedChanged",null);
aB=_.T([_.y({is:"ytd-guide-section-renderer",disableElementRegistration:!0})],aB);
_.r(aB,"ytd-guide-section-renderer",function(){if(ZpN!==void 0)return ZpN;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h3 hidden="[[!data.formattedTitle]]" class="style-scope ytd-guide-section-renderer">\n  <yt-formatted-string id="guide-section-title" link-inherit-color="" text="[[data.formattedTitle]]" class="style-scope ytd-guide-section-renderer">\n  </yt-formatted-string>\n</h3>\n<div id="items" class="style-scope ytd-guide-section-renderer"></div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return ZpN=F},{mode:_.E6("kevlar_poly_si_batch_j073")?1:2});var X$K;var f4=function(){return _.n.apply(this,arguments)||this};
_.k(f4,_.n);_.Sn.Object.defineProperties(f4.prototype,{alignByText:{configurable:!0,enumerable:!0,get:function(){return this.get("data.signInButton.buttonRenderer.style")==="STYLE_BLUE_TEXT"}}});
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],f4.prototype,"rendererBehaviors",void 0);_.T([_.O(),_.Y("design:type",Object)],f4.prototype,"data",void 0);_.T([_.O(),_.a("data.signInButton.buttonRenderer.style"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],f4.prototype,"alignByText",null);f4=_.T([_.y({is:"ytd-guide-signin-promo-renderer",disableElementRegistration:!0})],f4);
_.r(f4,"ytd-guide-signin-promo-renderer",function(){if(X$K===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-signin-promo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.descriptiveText]]" class="style-scope ytd-guide-signin-promo-renderer"></yt-formatted-string>\n<ytd-button-renderer id="sign-in-button" align-by-text="[[alignByText]]" data="[[data.signInButton.buttonRenderer]]" on-tap="onSignInTap" class="style-scope ytd-guide-signin-promo-renderer">\n</ytd-button-renderer>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);X$K=F}F=X$K;return F},{mode:1});var O3=function(){var F=_.n.apply(this,arguments)||this;F.showFooter=!1;return F};
_.k(O3,_.n);O3.prototype.configureRendererStamper=function(){return{shownItems:{id:"sections",mapping:{guideSectionRenderer:{component:"ytd-guide-section-renderer",noInjection:!0},guideSigninPromoRenderer:{component:"ytd-guide-signin-promo-renderer",noInjection:!0},guideSubscriptionsSectionRenderer:{component:"ytd-guide-section-renderer",params:{type:"subscriptions"},noInjection:!0}}}}};
O3.prototype.attached=function(){var F=this,W;return _.e(function(E){if(E.nextAddress==1){W=_.WZ().resolve(_.Fd(_.nO));if(!W)return E.jumpTo(0);W.setGuideData(F.hostElement);return _.Q(E,0,3)}F.ytLazyListBehavior.initialCount=2;return E.return()})};
O3.prototype.dataChanged=function(){this.data&&(this.showFooter=!0)};
O3.prototype.dataChanged=O3.prototype.dataChanged;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],O3.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],O3.prototype,"ytComponentBehavior",void 0);_.T([_.J(_.W3.YtLazyListBehavior),_.Y("design:type",Object)],O3.prototype,"ytLazyListBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],O3.prototype,"ytRendererstamperBehavior",void 0);
_.T([_.O(),_.Y("design:type",Object)],O3.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Object)],O3.prototype,"showFooter",void 0);_.T([_.O({value:!0}),_.Y("design:type",Boolean)],O3.prototype,"autoFill",void 0);_.T([_.Cz("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],O3.prototype,"dataChanged",null);O3=_.T([_.y({is:"ytd-guide-renderer",disableElementRegistration:!0})],O3);
_.r(O3,"ytd-guide-renderer",function(){if($M8!==void 0)return $M8;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="sections" class="style-scope ytd-guide-renderer"></div>\n<div id="footer" hidden="[[!showFooter]]" class="style-scope ytd-guide-renderer">\n  <div id="guide-links-primary" class="style-scope ytd-guide-renderer">\n    <slot name="guide-links-primary" class="style-scope ytd-guide-renderer"></slot>\n  </div>\n  <div id="guide-links-secondary" class="style-scope ytd-guide-renderer">\n    <slot name="guide-links-secondary" class="style-scope ytd-guide-renderer"></slot>\n  </div>\n  <slot name="vat-notice" class="style-scope ytd-guide-renderer"></slot>\n  <slot name="copyright" class="style-scope ytd-guide-renderer"></slot>\n</div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return $M8=F},{mode:_.E6("kevlar_poly_si_batch_j073")?1:2});var HpP;var bq=function(){var F=_.n.apply(this,arguments)||this;F.systemIcons=_.c("kevlar_system_icons");F.frostedGlass=_.c("web_frosted_glass");F.getEndpointForm=HVK;return F};
_.k(bq,_.n);_.N=bq.prototype;_.N.attached=function(){this.hostElement.setAttribute("role","tab");this.hostElement.setAttribute("tabindex","0")};
_.N.dataChanged=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive);this.hostElement.setAttribute("aria-label",_.Yr(this.data.formattedTitle))};
_.N.onActiveStateChange=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive)};
_.N.onDown=function(){this.interaction.triggerDown()};
_.N.onUp=function(){this.interaction.triggerUp()};
_.N.onTap=function(F){if(this.data.serviceEndpoint){var W;_.c("shorts_controller_retrieve_seedless_sequence_v2")&&((W=_.D(this.data.serviceEndpoint,_.DP))==null?void 0:W.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint):Xz6(this.data.serviceEndpoint,this);F.preventDefault()}else{var E;((E=this.data)==null?0:E.navigationEndpoint)&&!_.Sc(_.TB(F),this.hostElement,["A".toString()])&&_.hF(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.N.computeActive=function(F,W){if(!F)return!1;var E=F.navigationEndpoint;F=F.serviceEndpoint;if(!E&&!F||!W)return!1;if(E){F=_.D(E,_.BB);var h=_.D(W,_.BB);if(F&&h)return F.browseId===h.browseId&&F.params===h.params;var d;E=(d=_.D(E.commandMetadata,_.m1))==null?void 0:d.url;var V;W=(V=_.D(W.commandMetadata,_.m1))==null?void 0:V.url;return!(!E||!W||E!==W&&E!==_.gV(W))}return this.isActiveShortsTab(F,W)};
_.N.isActiveShortsTab=function(F,W){W=!!_.D(W,_.DP)||!!_.D(W,_.ni);return(!!_.D(F,_.DP)||!!_.D(F,_.ni))&&W};
_.N.computeTitle=function(F,W){return W?"":_.Yr(F)};
_.Sn.Object.defineProperties(bq.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){if(this.isActive!==void 0)return this.isActive.toString()}}});
bq.prototype.onTap=bq.prototype.onTap;bq.prototype.onUp=bq.prototype.onUp;bq.prototype.onDown=bq.prototype.onDown;bq.prototype.onActiveStateChange=bq.prototype.onActiveStateChange;bq.prototype.dataChanged=bq.prototype.dataChanged;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],bq.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],bq.prototype,"ytComponentBehavior",void 0);
_.T([_.J(_.yf),_.Y("design:type",Object)],bq.prototype,"ironButtonState",void 0);_.T([_.O(),_.Y("design:type",Object)],bq.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Object)],bq.prototype,"activeEndpoint",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],bq.prototype,"noLabels",void 0);_.T([_.O({reflectToAttribute:!0,computed:"computeActive(data,activeEndpoint)"}),_.Y("design:type",Boolean)],bq.prototype,"isActive",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],bq.prototype,"systemIcons",void 0);_.T([_.gQ("yt-interaction"),_.Y("design:type",Object)],bq.prototype,"interaction",void 0);_.T([_.a("isActive"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],bq.prototype,"ariaSelected",null);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],bq.prototype,"frostedGlass",void 0);
_.T([_.Cz("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],bq.prototype,"dataChanged",null);_.T([_.ea("isActive"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],bq.prototype,"onActiveStateChange",null);_.T([_.R4("down"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],bq.prototype,"onDown",null);
_.T([_.R4("up"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],bq.prototype,"onUp",null);_.T([_.R4("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],bq.prototype,"onTap",null);bq=_.T([_.y({is:"ytd-mini-guide-entry-renderer",disableElementRegistration:!0})],bq);
_.r(bq,"ytd-mini-guide-entry-renderer",function(){if(HpP!==void 0)return HpP;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-mini-guide-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint" tabindex="-1" class="yt-simple-endpoint style-scope ytd-mini-guide-entry-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" title="[[computeTitle(data.formattedTitle, noLabels)]]" get-form="[[getEndpointForm]]">\n  <yt-icon id="icon" class="guide-icon style-scope ytd-mini-guide-entry-renderer" active="[[isActive]]" disable-upgrade$="[[data.thumbnail]]" hidden="[[data.thumbnail]]" icon="[[data.icon.iconType]]">\n  </yt-icon>\n  <span class="title style-scope ytd-mini-guide-entry-renderer" hidden="[[noLabels]]">[[getSimpleString(data.formattedTitle)]]</span>\n  <tp-yt-paper-tooltip animation-delay="0" hidden="[[!noLabels]]" offset="4" position="right" class="style-scope ytd-mini-guide-entry-renderer">\n    [[getSimpleString(data.formattedTitle)]]\n  </tp-yt-paper-tooltip>\n  <yt-interaction class="style-scope ytd-mini-guide-entry-renderer"></yt-interaction>\n</a>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return HpP=F},{mode:_.E6("kevlar_poly_si_batch_j063")?1:2});var P6g;var lq=function(){var F=_.n.apply(this,arguments)||this;F.allVideosCount=0;F.noLabels=_.c("kevlar_mini_guide_no_labels");F.frostedGlass=_.c("web_frosted_glass");return F};
_.k(lq,_.n);_.N=lq.prototype;_.N.configureRendererStamper=function(){return{miniGuideItems:{id:"items",mapping:{guideEntryRenderer:{component:"ytd-mini-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]",noLabels:"[[noLabels]]"},noInjection:!0}}}}};
_.N.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","navigation")};
_.N.visibleChanged=function(){if(this.visible&&!this.data){var F=_.WZ().resolve(_.Fd(_.nO));F&&F.setGuideData(this.hostElement)}};
_.N.dataChanged=function(){var F=[],W;if((W=this.data)!=null&&W.items){W=_.U(this.data.items);for(var E=W.next();!E.done;E=W.next()){E=E.value;var h=void 0;if((h=E.guideSectionRenderer)==null?0:h.items)for(h=void 0,E=_.U((h=E.guideSectionRenderer)==null?void 0:h.items),h=E.next();!h.done;h=E.next())if(h=h.value,h.guideEntryRenderer)h=h.guideEntryRenderer,h.isPrimary&&F.push({guideEntryRenderer:h});else if(h.guideCollapsibleSectionEntryRenderer){var d=void 0;((d=_.D(h.guideCollapsibleSectionEntryRenderer.headerEntry,
uh))==null?0:d.isPrimary)&&F.push({guideEntryRenderer:_.D(h.guideCollapsibleSectionEntryRenderer.headerEntry,uh)});if(h=h.guideCollapsibleSectionEntryRenderer.sectionItems)for(h=_.U(h),d=h.next();!d.done;d=h.next()){var V=d.value;d=_.D(V,dCO);var R=void 0;((R=_.D(V,uh))==null?0:R.isPrimary)?F.push({guideEntryRenderer:_.D(V,uh)}):d&&(V=void 0,_.D((V=d)==null?void 0:V.entryRenderer,uh)&&(d.alwaysShow||this.allVideosCount)&&F.push({guideEntryRenderer:_.D(d.entryRenderer,uh)}))}}}}this.miniGuideItems=
F};
_.N.activeEndpointChanged=function(){for(var F=this.items.children,W=0;W<F.length;W++)F[W].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
lq.prototype.activeEndpointChanged=lq.prototype.activeEndpointChanged;lq.prototype.dataChanged=lq.prototype.dataChanged;lq.prototype.visibleChanged=lq.prototype.visibleChanged;_.T([_.J(_.am),_.Y("design:type",Object)],lq.prototype,"ytdReduxBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],lq.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],lq.prototype,"ytRendererstamperBehavior",void 0);
_.T([_.J(_.y_.YtdGuideStateAwareBehavior),_.Y("design:type",Object)],lq.prototype,"ytdGuideStateAwareBehavior",void 0);_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],lq.prototype,"ytComponentBehavior",void 0);_.T([_.gQ("#items"),_.Y("design:type",Object)],lq.prototype,"items",void 0);_.T([_.O(),_.Y("design:type",Object)],lq.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Boolean)],lq.prototype,"visible",void 0);
_.T([_.O(),_.Y("design:type",Object)],lq.prototype,"miniGuideItems",void 0);_.T([_.O({selector:_.XPr}),_.Y("design:type",Object)],lq.prototype,"allVideosCount",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],lq.prototype,"noLabels",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],lq.prototype,"frostedGlass",void 0);_.T([_.Cz("visible"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],lq.prototype,"visibleChanged",null);
_.T([_.Cz("data","allVideosCount"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],lq.prototype,"dataChanged",null);_.T([_.Cz("activeEndpoint"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],lq.prototype,"activeEndpointChanged",null);lq=_.T([_.y({is:"ytd-mini-guide-renderer",disableElementRegistration:!0})],lq);
_.r(lq,"ytd-mini-guide-renderer",function(){if(P6g===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-mini-guide-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="items" class="style-scope ytd-mini-guide-renderer"></div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);P6g=F}F=P6g;return F},{mode:1});var JMK;var aCx=/^[\x00-\x7F]+$/,n4=function(){var F=_.n.apply(this,arguments)||this;F.darkerDarkTheme=_.c("web_darker_dark_theme");return F};
_.k(n4,_.n);_.Sn.Object.defineProperties(n4.prototype,{displayHandle:{configurable:!0,enumerable:!0,get:function(){var F,W=_.Yr((F=this.data)==null?void 0:F.handle);if(W)return _.Gr("@"+W)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){var F=_.Yr(this.displayHandle),W,E=_.Yr((W=this.data)==null?void 0:W.handleUrl);if(F&&E)return _.Gr(E+F)}},
warningText:{configurable:!0,enumerable:!0,get:function(){var F=_.Yr(this.displayHandle);if(F&&!aCx.test(F)){var W;return(W=this.data)==null?void 0:W.warningText}}},
urlInfoTextWithUrl:{configurable:!0,enumerable:!0,get:function(){var F=_.Yr(this.displayHandleUrl),W,E=_.Yr((W=this.data)==null?void 0:W.urlInfoText);if(F&&E)return _.Gr(E+" "+F)}}});
_.T([_.O(),_.Y("design:type",Object)],n4.prototype,"data",void 0);_.T([_.a("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],n4.prototype,"displayHandle",null);_.T([_.a("displayHandle"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],n4.prototype,"displayHandleUrl",null);_.T([_.a("displayHandle"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],n4.prototype,"warningText",null);
_.T([_.a("displayHandleUrl"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],n4.prototype,"urlInfoTextWithUrl",null);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],n4.prototype,"darkerDarkTheme",void 0);n4=_.T([_.y({is:"ytd-handles-claiming-confirm-dialog-content",disableElementRegistration:!0})],n4);
_.r(n4,"ytd-handles-claiming-confirm-dialog-content",function(){if(JMK!==void 0)return JMK;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-confirm-dialog-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-handles-claiming-confirm-dialog-content">\n  <div id="handle-container" class="style-scope ytd-handles-claiming-confirm-dialog-content">\n    <yt-img-shadow id="profile-picture" height="100" thumbnail="[[data.profilePicture]]" width="100" class="style-scope ytd-handles-claiming-confirm-dialog-content">\n    </yt-img-shadow>\n    <yt-formatted-string id="display-name" text="[[data.displayName]]" class="style-scope ytd-handles-claiming-confirm-dialog-content"></yt-formatted-string>\n    <yt-formatted-string id="handle" text="[[displayHandle]]" class="style-scope ytd-handles-claiming-confirm-dialog-content"></yt-formatted-string>\n    <yt-formatted-string id="handle-url" text="[[displayHandleUrl]]" class="style-scope ytd-handles-claiming-confirm-dialog-content"></yt-formatted-string>\n  </div>\n  <div id="info-container" class="style-scope ytd-handles-claiming-confirm-dialog-content">\n    <yt-formatted-string id="first-info-text" class="line-text style-scope ytd-handles-claiming-confirm-dialog-content" split-lines="" text="[[data.firstInfoText]]"></yt-formatted-string>\n    <yt-formatted-string id="url-info-text" class="line-text style-scope ytd-handles-claiming-confirm-dialog-content" split-lines="" text="[[urlInfoTextWithUrl]]"></yt-formatted-string>\n    <div id="messages" class="style-scope ytd-handles-claiming-confirm-dialog-content">\n      <template is="dom-repeat" items="[[data.infoText]]" class="style-scope ytd-handles-claiming-confirm-dialog-content">\n        <yt-formatted-string class="line-text style-scope ytd-handles-claiming-confirm-dialog-content" split-lines="" text="[[item]]"></yt-formatted-string>\n      </template>\n      <template is="dom-if" restamp="" if="[[warningText]]" class="style-scope ytd-handles-claiming-confirm-dialog-content">\n        <yt-formatted-string class="line-text style-scope ytd-handles-claiming-confirm-dialog-content" split-lines="" text="[[warningText]]"></yt-formatted-string>\n      </template>\n    </div>\n  </div>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return JMK=F},{mode:1});var fCq;var y1=function(){var F=_.n.apply(this,arguments)||this;F.okButtonOverride={style:"mono",type:"outline",size:"M"};return F};
_.k(y1,_.n);y1.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
y1.prototype.configureRendererStamper=function(){return{"data.okButton":{id:"ok-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[okButtonOverride]]"}}}}}};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],y1.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],y1.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],y1.prototype,"okButtonOverride",void 0);_.T([_.O(),_.Y("design:type",Object)],y1.prototype,"data",void 0);y1=_.T([_.y({is:"ytd-handles-claiming-confirm-dialog-renderer",disableElementRegistration:!0})],y1);
_.r(y1,"ytd-handles-claiming-confirm-dialog-renderer",function(){if(fCq!==void 0)return fCq;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-confirm-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-handles-claiming-confirm-dialog-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-handles-claiming-confirm-dialog-renderer"></yt-formatted-string>\n</div>\n<ytd-handles-claiming-confirm-dialog-content data="[[data]]" class="style-scope ytd-handles-claiming-confirm-dialog-renderer">\n</ytd-handles-claiming-confirm-dialog-content>\n<div id="footer" class="style-scope ytd-handles-claiming-confirm-dialog-renderer">\n  <div id="ok-button" class="style-scope ytd-handles-claiming-confirm-dialog-renderer"></div>\n</div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return fCq=F},{mode:1});var OpF;var bp6=/^[\x00-\x7F]+$/,js=function(){var F=_.n.apply(this,arguments)||this;F.isLoading=!1;F.darkerDarkTheme=_.c("web_darker_dark_theme");return F};
_.k(js,_.n);js.prototype.selectedHandleChanged=function(){if(this.handleInput&&this.onSelectedHandleChanged){var F;this.selectedHandle=(F=this.handleInput)==null?void 0:F.value;this.onSelectedHandleChanged(this.selectedHandle);_.Nc(this.hostElement,"yt-refit-popups-action")}};
_.Sn.Object.defineProperties(js.prototype,{handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var F;return(F=this.data)==null?void 0:F.handleUrlPrefix}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.Gr("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.Gr(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!bp6.test(this.selectedHandle)){var F;return(F=this.data)==null?void 0:F.warningText}}}});
_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],js.prototype,"ytComponentBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],js.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",String)],js.prototype,"selectedHandle",void 0);_.T([_.O(),_.Y("design:type",Object)],js.prototype,"isLoading",void 0);_.T([_.O(),_.Y("design:type",Function)],js.prototype,"onSelectedHandleChanged",void 0);_.T([_.gQ("#channel-handle-input"),_.Y("design:type",Object)],js.prototype,"handleInput",void 0);
_.T([_.a("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],js.prototype,"handleUrlPrefix",null);_.T([_.a("selectedHandle"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],js.prototype,"displayHandle",null);_.T([_.a("selectedHandle"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],js.prototype,"displayHandleUrl",null);_.T([_.a("selectedHandle"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],js.prototype,"warningText",null);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],js.prototype,"darkerDarkTheme",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],js.prototype,"ytRendererBehavior",void 0);js=_.T([_.y({is:"ytd-handles-claiming-edit-dialog-content",disableElementRegistration:!0})],js);
_.r(js,"ytd-handles-claiming-edit-dialog-content",function(){if(OpF!==void 0)return OpF;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-edit-dialog-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-handles-claiming-edit-dialog-content">\n  <div id="handle-container" class="style-scope ytd-handles-claiming-edit-dialog-content">\n    <yt-img-shadow id="profile-picture" height="100" thumbnail="[[data.profilePicture]]" width="100" class="style-scope ytd-handles-claiming-edit-dialog-content">\n    </yt-img-shadow>\n    <yt-formatted-string id="display-name" text="[[data.displayName]]" class="style-scope ytd-handles-claiming-edit-dialog-content"></yt-formatted-string>\n    <yt-formatted-string id="display-handle" respect-lang-dir="" text="[[displayHandle]]" class="style-scope ytd-handles-claiming-edit-dialog-content">\n    </yt-formatted-string>\n    <yt-formatted-string id="display-handle-url" text="[[displayHandleUrl]]" class="style-scope ytd-handles-claiming-edit-dialog-content"></yt-formatted-string>\n    <template is="dom-if" restamp="" if="[[warningText]]" class="style-scope ytd-handles-claiming-edit-dialog-content">\n      <yt-formatted-string id="warning-text" class="line-text style-scope ytd-handles-claiming-edit-dialog-content" split-lines="" text="[[warningText]]">\n      </yt-formatted-string>\n    </template>\n  </div>\n  <div id="info-container" class="style-scope ytd-handles-claiming-edit-dialog-content">\n    <div id="messages" class="style-scope ytd-handles-claiming-edit-dialog-content">\n      <template is="dom-repeat" items="[[data.infoText]]" class="style-scope ytd-handles-claiming-edit-dialog-content">\n        <yt-formatted-string class="line-text style-scope ytd-handles-claiming-edit-dialog-content" split-lines="" text="[[item]]"></yt-formatted-string>\n      </template>\n    </div>\n  </div>\n  <div id="input-container" class="style-scope ytd-handles-claiming-edit-dialog-content">\n    <template is="dom-if" restamp="" if="[[data.inputField]]" class="style-scope ytd-handles-claiming-edit-dialog-content">\n      <ytd-channel-handle-input-renderer id="channel-handle-input" data="[[data.inputField.channelHandleInputRenderer]]" on-value-changed="selectedHandleChanged" class="style-scope ytd-handles-claiming-edit-dialog-content">\n      </ytd-channel-handle-input-renderer>\n    </template>\n  </div>\n</div>\n<div id="spinner" hidden="[[!isLoading]]" class="style-scope ytd-handles-claiming-edit-dialog-content">\n  <tp-yt-paper-spinner active="[[isLoading]]" class="style-scope ytd-handles-claiming-edit-dialog-content"></tp-yt-paper-spinner>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return OpF=F},{mode:1});var lC$;var iq=function(){var F=_.n.apply(this,arguments)||this;F.actionButtonOverride={style:"mono",type:"filled",size:"M"};F.cancelButtonOverride={style:"mono",type:"text",size:"M"};F.selectButtonDisabled=!1;F.isLoading=!1;F.hasSelectedHandleEventListener=!1;F.selectedHandleChanged=function(W){F.selectedHandle=W};
return F};
_.k(iq,_.n);_.N=iq.prototype;_.N.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled()};
_.N.onDataChanged=function(){var F,W;this.selectedHandle=(W=_.D((F=this.data)==null?void 0:F.inputField,fDq))==null?void 0:W.handle};
_.N.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.N.onCancel=function(){this.selectedHandle="";_.dW(this.hostElement,"yt-close-popup-action",[this.is])};
_.N.onSelectHandle=function(){var F=this;if(this.selectedHandle!==void 0){var W;((W=this.data)==null?void 0:W.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(E,h){if(h.newHandleUpdateStatus!==void 0&&h.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&h.newHandleUpdateStatus.errorMessage)_.R$(F.hostElement,_.Yr(h.newHandleUpdateStatus.errorMessage)),
F.isLoading=!1;else{var d;if((d=F.data)==null?0:d.onChannelUpdateSuccess){E=F.data.onChannelUpdateSuccess;var V,R;if(h=(V=_.D(E,_.J7))==null?void 0:(R=V.popup)==null?void 0:R.handlesClaimingConfirmDialogRenderer)h.handle=_.Gr(F.selectedHandle);F.ytComponentBehavior.resolveCommand(E);_.dW(F.hostElement,"yt-close-popup-action",[F.is])}else F.isLoading=!1}},
onServerError:function(){var E;F.content&&((E=F.content)==null?0:E.handleInput)&&F.content.handleInput.validate();F.isLoading=!1;_.R$(F.hostElement,_.CY("TRY_AGAIN_LATER"))}}}))}};
_.N.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
iq.prototype.onDataChanged=iq.prototype.onDataChanged;iq.prototype.onSelectedHandleChanged=iq.prototype.onSelectedHandleChanged;_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],iq.prototype,"ytComponentBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],iq.prototype,"actionButtonOverride",void 0);_.T([_.O(),_.Y("design:type",Object)],iq.prototype,"cancelButtonOverride",void 0);_.T([_.O(),_.Y("design:type",Object)],iq.prototype,"data",void 0);
_.T([_.O(),_.Y("design:type",String)],iq.prototype,"selectedHandle",void 0);_.T([_.O(),_.Y("design:type",Object)],iq.prototype,"selectButtonDisabled",void 0);_.T([_.O(),_.Y("design:type",Object)],iq.prototype,"isLoading",void 0);_.T([_.O(),_.Y("design:type",Object)],iq.prototype,"hasSelectedHandleEventListener",void 0);_.T([_.O(),_.Y("design:type",Object)],iq.prototype,"handleInput",void 0);
_.T([_.ea("selectedHandle"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],iq.prototype,"onSelectedHandleChanged",null);_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],iq.prototype,"onDataChanged",null);_.T([_.gQ("ytd-handles-claiming-edit-dialog-content"),_.Y("design:type",Object)],iq.prototype,"content",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],iq.prototype,"ytRendererBehavior",void 0);
_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],iq.prototype,"ytRendererstamperBehavior",void 0);iq=_.T([_.y({is:"ytd-handles-claiming-edit-dialog-renderer",disableElementRegistration:!0})],iq);
_.r(iq,"ytd-handles-claiming-edit-dialog-renderer",function(){if(lC$!==void 0)return lC$;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-edit-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-handles-claiming-edit-dialog-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-handles-claiming-edit-dialog-renderer"></yt-formatted-string>\n</div>\n<ytd-handles-claiming-edit-dialog-content data="[[data]]" is-loading="[[isLoading]]" selected-handle="[[selectedHandle]]" on-selected-handle-changed="[[selectedHandleChanged]]" class="style-scope ytd-handles-claiming-edit-dialog-renderer">\n</ytd-handles-claiming-edit-dialog-content>\n<div id="footer" class="style-scope ytd-handles-claiming-edit-dialog-renderer">\n  <ytd-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" overrides="[[cancelButtonOverride]]" on-click="onCancel" class="style-scope ytd-handles-claiming-edit-dialog-renderer">\n  </ytd-button-renderer>\n  <ytd-button-renderer id="select-button" data="[[data.selectButton.buttonRenderer]]" disabled="[[selectButtonDisabled]]" overrides="[[actionButtonOverride]]" on-click="onSelectHandle" class="style-scope ytd-handles-claiming-edit-dialog-renderer">\n  </ytd-button-renderer>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return lC$=F},{mode:1});var now;var ry=function(){return _.n.apply(this,arguments)||this};
_.k(ry,_.n);_.Sn.Object.defineProperties(ry.prototype,{formattedHandle:{configurable:!0,enumerable:!0,get:function(){var F;if((F=this.data)==null?0:F.handle){var W;return _.Gr("@"+_.Yr((W=this.data)==null?void 0:W.handle))}}}});
_.T([_.a("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],ry.prototype,"formattedHandle",null);_.T([_.O(),_.Y("design:type",Object)],ry.prototype,"data",void 0);ry=_.T([_.y({is:"ytd-handles-claiming-radio-option-renderer",disableElementRegistration:!0})],ry);
_.r(ry,"ytd-handles-claiming-radio-option-renderer",function(){if(now!==void 0)return now;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-radio-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="handle" respect-lang-dir="" text="[[formattedHandle]]" class="style-scope ytd-handles-claiming-radio-option-renderer">\n</yt-formatted-string>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return now=F},{mode:1});var yMg;var jtF=/^[\x00-\x7F]+$/,Tb=function(){var F=_.n.apply(this,arguments)||this;F.initialRadioIndex="-1";F.isLoading=!1;F.darkerDarkTheme=_.c("web_darker_dark_theme");F.maybeSubmitFeedback=function(){F.feedbackSurveyRenderer.submitSurvey()};
return F};
_.k(Tb,_.n);Tb.prototype.updateSelectedHandleIndexFromBinding=function(F){this.selectedRadioIndex=+F.detail.value;if(this.onSelectedRadioIndexChanged)this.onSelectedRadioIndexChanged(F)};
Tb.prototype.selectedHandleChanged=function(F){if(this.handleInput&&Number(this.selectedRadioIndex)===this.radioButtonLength&&this.onSelectedHandleChanged){var W;this.selectedHandle=(W=this.handleInput)==null?void 0:W.value;this.onSelectedHandleChanged(F)}};
_.Sn.Object.defineProperties(Tb.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var F;return(((F=this.data)==null?void 0:F.radioButton)||[]).length}},
handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var F;return this.ytRendererBehavior.getSimpleString((F=this.data)==null?void 0:F.handleUrlPrefix)}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.Gr("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.Gr(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!jtF.test(this.selectedHandle)){var F;return(F=this.data)==null?void 0:F.warningText}}}});
_.T([_.O(),_.Y("design:type",Object)],Tb.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Object)],Tb.prototype,"initialRadioIndex",void 0);_.T([_.O(),_.Y("design:type",Number)],Tb.prototype,"selectedRadioIndex",void 0);_.T([_.O(),_.Y("design:type",String)],Tb.prototype,"selectedHandle",void 0);_.T([_.O(),_.Y("design:type",Object)],Tb.prototype,"isLoading",void 0);_.T([_.O(),_.Y("design:type",Function)],Tb.prototype,"onSelectedHandleChanged",void 0);
_.T([_.O(),_.Y("design:type",Function)],Tb.prototype,"onSelectedRadioIndexChanged",void 0);_.T([_.gQ("#channel-handle-input"),_.Y("design:type",Object)],Tb.prototype,"handleInput",void 0);_.T([_.gQ("ytd-feedback-survey-renderer"),_.Y("design:type",Object)],Tb.prototype,"feedbackSurveyRenderer",void 0);_.T([_.a("data"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],Tb.prototype,"radioButtonLength",null);
_.T([_.a("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Tb.prototype,"handleUrlPrefix",null);_.T([_.a("selectedHandle"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Tb.prototype,"displayHandle",null);_.T([_.a("selectedHandle"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Tb.prototype,"displayHandleUrl",null);_.T([_.a("selectedHandle"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Tb.prototype,"warningText",null);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],Tb.prototype,"darkerDarkTheme",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Tb.prototype,"ytRendererBehavior",void 0);Tb=_.T([_.y({is:"ytd-handles-claiming-select-dialog-content",disableElementRegistration:!0})],Tb);
_.r(Tb,"ytd-handles-claiming-select-dialog-content",function(){if(yMg!==void 0)return yMg;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-select-dialog-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-handles-claiming-select-dialog-content">\n  <div id="handle-container" class="style-scope ytd-handles-claiming-select-dialog-content">\n    <yt-img-shadow id="profile-picture" height="100" thumbnail="[[data.profilePicture]]" width="100" class="style-scope ytd-handles-claiming-select-dialog-content">\n    </yt-img-shadow>\n    <yt-formatted-string id="display-name" text="[[data.displayName]]" class="style-scope ytd-handles-claiming-select-dialog-content"></yt-formatted-string>\n    <yt-formatted-string id="display-handle" respect-lang-dir="" text="[[displayHandle]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n    </yt-formatted-string>\n    <yt-formatted-string id="display-handle-url" text="[[displayHandleUrl]]" class="style-scope ytd-handles-claiming-select-dialog-content"></yt-formatted-string>\n    <template is="dom-if" restamp="" if="[[warningText]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n      <yt-formatted-string id="warning-text" class="line-text style-scope ytd-handles-claiming-select-dialog-content" split-lines="" text="[[warningText]]">\n      </yt-formatted-string>\n    </template>\n  </div>\n  <div id="info-container" class="style-scope ytd-handles-claiming-select-dialog-content">\n    <div id="messages" class="style-scope ytd-handles-claiming-select-dialog-content">\n      <template is="dom-repeat" items="[[data.infoText]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n        <yt-formatted-string class="line-text style-scope ytd-handles-claiming-select-dialog-content" split-lines="" text="[[item]]"></yt-formatted-string>\n      </template>\n    </div>\n  </div>\n  <tp-yt-paper-radio-group id="radio-container" selected="[[initialRadioIndex]]" on-selected-changed="updateSelectedHandleIndexFromBinding" class="style-scope ytd-handles-claiming-select-dialog-content">\n    <template is="dom-repeat" items="[[data.radioButton]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n      <tp-yt-paper-radio-button id="radio-item" name$="[[index]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n        <ytd-handles-claiming-radio-option-renderer data="[[item.handlesClaimingRadioOptionRenderer]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n        </ytd-handles-claiming-radio-option-renderer>\n      </tp-yt-paper-radio-button>\n    </template>\n    <template is="dom-if" restamp="" if="[[data.inputField]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n      <tp-yt-paper-radio-button id="radio-item" name$="[[radioButtonLength]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n        <ytd-channel-handle-input-renderer id="channel-handle-input" data="[[data.inputField.channelHandleInputRenderer]]" on-value-changed="selectedHandleChanged" class="style-scope ytd-handles-claiming-select-dialog-content">\n        </ytd-channel-handle-input-renderer>\n      </tp-yt-paper-radio-button>\n    </template>\n  </tp-yt-paper-radio-group>\n</div>\n<div id="spinner" hidden="[[!isLoading]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n  <tp-yt-paper-spinner active="[[isLoading]]" class="style-scope ytd-handles-claiming-select-dialog-content"></tp-yt-paper-spinner>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return yMg=F},{mode:1});var ipw;var oB=function(){var F=_.n.apply(this,arguments)||this;F.actionButtonOverride={style:"mono",type:"filled",size:"M"};F.cancelButtonOverride={style:"mono",type:"text",size:"M"};F.initialRadioIndex="-1";F.selectButtonDisabled=!1;F.isLoading=!1;F.selectedRadioIndexChanged=function(W){F.selectedRadioIndex=Number(W.detail.value)};
F.selectedHandleChanged=function(W){F.selectedHandle=W.detail.value};
F.darkerDarkTheme=_.c("web_darker_dark_theme");return F};
_.k(oB,_.n);_.N=oB.prototype;_.N.onDataChanged=function(){this.initialRadioIndex="0";this.selectedRadioIndex=0};
_.N.onSelectedHandleIndexChanged=function(){this.updateSelectedHandle()};
_.N.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled();_.Nc(this.hostElement,"yt-refit-popups-action")};
_.N.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.N.onCancel=function(){this.initialRadioIndex="-1";this.selectedRadioIndex=-1;_.dW(this.hostElement,"yt-close-popup-action",[this.is])};
_.N.onSelectHandle=function(){var F=this;if(this.selectedHandle!==void 0){var W;((W=this.data)==null?void 0:W.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(E,h){if(h.newHandleUpdateStatus!==void 0&&h.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&h.newHandleUpdateStatus.errorMessage)_.R$(F.hostElement,_.Yr(h.newHandleUpdateStatus.errorMessage)),
F.isLoading=!1;else{var d;if((d=F.data)==null?0:d.onChannelUpdateSuccess){E=F.data.onChannelUpdateSuccess;h=_.D(E,_.J7);var V;if(h==null?0:(V=h.popup)==null?0:V.handlesClaimingConfirmDialogRenderer)h.popup.handlesClaimingConfirmDialogRenderer.handle=_.Gr(F.selectedHandle);F.ytComponentBehavior.resolveCommand(E);_.dW(F.hostElement,"yt-close-popup-action",[F.is])}else F.isLoading=!1}},
onServerError:function(){if(F.selectedRadioIndex===F.radioButtonLength){var E;F.content&&((E=F.content)==null?0:E.handleInput)&&F.content.handleInput.validate()}F.isLoading=!1;_.R$(F.hostElement,_.CY("TRY_AGAIN_LATER"))}}}))}};
_.N.updateSelectedHandle=function(){if(this.selectedRadioIndex!==void 0)if(this.selectedRadioIndex<0)this.selectedHandle=void 0;else if(this.selectedRadioIndex===this.radioButtonLength){var F,W;this.selectedHandle=(F=this.content)==null?void 0:(W=F.handleInput)==null?void 0:W.value}else this.selectedRadioIndex>=0&&((F=this.getRadioItem(this.selectedRadioIndex))?this.selectedHandle=this.ytRendererBehavior.getSimpleString(F==null?void 0:F.handle):this.selectedHandle=void 0)};
_.N.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
_.N.getRadioItem=function(F){if(this.radioButtonLength>F&&F>=0)return _.D(this.data.radioButton[F],piT)};
_.Sn.Object.defineProperties(oB.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var F;return(((F=this.data)==null?void 0:F.radioButton)||[]).length}}});
oB.prototype.onSelectedHandleChanged=oB.prototype.onSelectedHandleChanged;oB.prototype.onSelectedHandleIndexChanged=oB.prototype.onSelectedHandleIndexChanged;oB.prototype.onDataChanged=oB.prototype.onDataChanged;_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],oB.prototype,"ytComponentBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],oB.prototype,"actionButtonOverride",void 0);_.T([_.O(),_.Y("design:type",Object)],oB.prototype,"cancelButtonOverride",void 0);
_.T([_.O(),_.Y("design:type",Object)],oB.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Object)],oB.prototype,"initialRadioIndex",void 0);_.T([_.O(),_.Y("design:type",Number)],oB.prototype,"selectedRadioIndex",void 0);_.T([_.O(),_.Y("design:type",String)],oB.prototype,"selectedHandle",void 0);_.T([_.O(),_.Y("design:type",Object)],oB.prototype,"selectButtonDisabled",void 0);_.T([_.O(),_.Y("design:type",Object)],oB.prototype,"isLoading",void 0);
_.T([_.a("data"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],oB.prototype,"radioButtonLength",null);_.T([_.gQ("ytd-handles-claiming-select-dialog-content"),_.Y("design:type",Object)],oB.prototype,"content",void 0);_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],oB.prototype,"onDataChanged",null);
_.T([_.ea("selectedRadioIndex"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],oB.prototype,"onSelectedHandleIndexChanged",null);_.T([_.ea("selectedHandle"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],oB.prototype,"onSelectedHandleChanged",null);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],oB.prototype,"darkerDarkTheme",void 0);
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],oB.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],oB.prototype,"ytRendererstamperBehavior",void 0);oB=_.T([_.y({is:"ytd-handles-claiming-select-dialog-renderer",disableElementRegistration:!0})],oB);
_.r(oB,"ytd-handles-claiming-select-dialog-renderer",function(){if(ipw!==void 0)return ipw;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-select-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-handles-claiming-select-dialog-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-handles-claiming-select-dialog-renderer"></yt-formatted-string>\n</div>\n<ytd-handles-claiming-select-dialog-content data="[[data]]" initial-radio-index="[[initialRadioIndex]]" is-loading="[[isLoading]]" selected-handle="[[selectedHandle]]" selected-radio-index="[[selectedRadioIndex]]" on-selected-handle-changed="[[selectedHandleChanged]]" on-selected-radio-index-changed="[[selectedRadioIndexChanged]]" class="style-scope ytd-handles-claiming-select-dialog-renderer">\n</ytd-handles-claiming-select-dialog-content>\n<div id="footer" class="style-scope ytd-handles-claiming-select-dialog-renderer">\n  <ytd-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" overrides="[[cancelButtonOverride]]" on-click="onCancel" class="style-scope ytd-handles-claiming-select-dialog-renderer">\n  </ytd-button-renderer>\n  <ytd-button-renderer id="select-button" data="[[data.selectButton.buttonRenderer]]" disabled="[[selectButtonDisabled]]" overrides="[[actionButtonOverride]]" on-click="onSelectHandle" class="style-scope ytd-handles-claiming-select-dialog-renderer">\n  </ytd-button-renderer>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return ipw=F},{mode:1});var rMu;var T1T;var Gb=function(){return _.n.apply(this,arguments)||this};
_.k(Gb,_.n);Gb.prototype.configureRendererStamper=function(){return{"data.badge":{id:"standalone-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}}}}};
_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],Gb.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Gb.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],Gb.prototype,"data",void 0);Gb=_.T([_.y({is:"ytd-hotkey-dialog-section-option-renderer",disableElementRegistration:!0})],Gb);
_.r(Gb,"ytd-hotkey-dialog-section-option-renderer",function(){if(T1T!==void 0)return T1T;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hotkey-dialog-section-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="label-container" class="label-container style-scope ytd-hotkey-dialog-section-option-renderer">\n  <div id="label" class="style-scope ytd-hotkey-dialog-section-option-renderer">[[getSimpleString(data.label)]]</div>\n  <div id="standalone-badge" class="standalone-badge style-scope ytd-hotkey-dialog-section-option-renderer"></div>\n</div>\n<div id="hotkey" aria-label$="[[data.hotkeyAccessibilityLabel.accessibilityData.label]]" class="style-scope ytd-hotkey-dialog-section-option-renderer">[[data.hotkey]]</div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return T1T=F},{mode:1});var ooK;var Ye=function(){return _.n.apply(this,arguments)||this};
_.k(Ye,_.n);Ye.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{hotkeyDialogSectionOptionRenderer:"ytd-hotkey-dialog-section-option-renderer"}}}};
_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],Ye.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Ye.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],Ye.prototype,"data",void 0);Ye=_.T([_.y({is:"ytd-hotkey-dialog-section-renderer",disableElementRegistration:!0})],Ye);
_.r(Ye,"ytd-hotkey-dialog-section-renderer",function(){if(ooK!==void 0)return ooK;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hotkey-dialog-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="sub-title" class="style-scope ytd-hotkey-dialog-section-renderer">[[getSimpleString(data.title)]]</div>\n<div id="options" class="style-scope ytd-hotkey-dialog-section-renderer"></div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return ooK=F},{mode:1});var wy=function(){var F=_.n.apply(this,arguments)||this;F.darkerDarkTheme=_.c("web_darker_dark_theme");return F};
_.k(wy,_.n);wy.prototype.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{hotkeyDialogSectionRenderer:"ytd-hotkey-dialog-section-renderer"}}}};
_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],wy.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],wy.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],wy.prototype,"darkerDarkTheme",void 0);wy=_.T([_.y({is:"ytd-hotkey-dialog-content",disableElementRegistration:!0})],wy);
_.r(wy,"ytd-hotkey-dialog-content",function(){if(rMu!==void 0)return rMu;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hotkey-dialog-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scrollable" class="style-scope ytd-hotkey-dialog-content">\n  <div id="sections" class="style-scope ytd-hotkey-dialog-content"></div>\n</tp-yt-paper-dialog-scrollable>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return rMu=F},{mode:1});var GdT;var uq=function(){return _.n.apply(this,arguments)||this};
_.k(uq,_.n);uq.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var F=document.querySelector("ytd-hotkey-dialog-content #scrollable");F&&(F.dialogElement=this.hostElement.parentElement)};
uq.prototype.onCloseTap=function(){_.dW(this.hostElement,"yt-close-popup-action")};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],uq.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],uq.prototype,"data",void 0);uq=_.T([_.y({is:"ytd-hotkey-dialog-renderer",disableElementRegistration:!0})],uq);
_.r(uq,"ytd-hotkey-dialog-renderer",function(){if(GdT!==void 0)return GdT;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hotkey-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" class="style-scope ytd-hotkey-dialog-renderer">[[getSimpleString(data.title)]]</div>\n<ytd-hotkey-dialog-content data="[[data]]" class="style-scope ytd-hotkey-dialog-renderer"></ytd-hotkey-dialog-content>\n<div id="action-buttons" class="style-scope ytd-hotkey-dialog-renderer">\n  <ytd-button-renderer id="cancel" data="[[data.dismissButton.buttonRenderer]]" on-tap="onCloseTap" class="style-scope ytd-hotkey-dialog-renderer">\n  </ytd-button-renderer>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return GdT=F},{mode:1});var Ycu;var Ss=function(){return _.n.apply(this,arguments)||this};
_.k(Ss,_.n);Ss.prototype.onYtServiceRequestError=function(){if(this.blocked){var F;var W=(F=this.data)==null?void 0:F.defaultServiceEndpoint}else{var E;W=(E=this.data)==null?void 0:E.toggledServiceEndpoint}var h;(W=(h=_.D(W,_.dDz))==null?void 0:h.onFailureAction)&&this.ytComponentBehavior.resolveCommand(W);this.updateBlockState(!this.blocked)};
Ss.prototype.onYtToggleButton=function(F){this.updateBlockState(F.detail.toggled)};
Ss.prototype.updateBlockState=function(F){if(F!==this.blocked){var W=this.blockedEntityKey;W&&this.ytdReduxBehavior.dispatch(_.AG("blockStateEntity",W,{key:W,blocked:F}));this.set("data.isToggled",F)}};
_.Sn.Object.defineProperties(Ss.prototype,{blocked:{configurable:!0,enumerable:!0,get:function(){return this.blockStateEntity?(this.set("data.isToggled",this.blocked),!!this.blockStateEntity.blocked):!(!this.data||!this.data.isToggled)}}});
Ss.prototype.onYtToggleButton=Ss.prototype.onYtToggleButton;Ss.prototype.onYtServiceRequestError=Ss.prototype.onYtServiceRequestError;_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],Ss.prototype,"ytComponentBehavior",void 0);_.T([_.J(_.am),_.Y("design:type",Object)],Ss.prototype,"ytdReduxBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],Ss.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Object)],Ss.prototype,"blockedEntityKey",void 0);
_.T([_.O({selectorArgs:["blockedEntityKey"],selector:function(F,W){return _.Mn(F.entities,"blockStateEntity",W)}}),
_.Y("design:type",Object)],Ss.prototype,"blockStateEntity",void 0);_.T([_.a("data","blockStateEntity"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Ss.prototype,"blocked",null);_.T([_.R4("yt-service-request-error"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Ss.prototype,"onYtServiceRequestError",null);
_.T([_.R4("yt-toggle-button"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Ss.prototype,"onYtToggleButton",null);Ss=_.T([_.y({is:"ytd-block-button",disableElementRegistration:!0})],Ss);
_.r(Ss,"ytd-block-button",function(){if(Ycu!==void 0)return Ycu;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-block-button--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-toggle-button-renderer data="[[data]]" class="style-scope ytd-block-button">\n</ytd-toggle-button-renderer>\n');F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return Ycu=F},
{mode:1});var w$8;var utK;var p4=function(){return _.n.apply(this,arguments)||this};
_.k(p4,_.n);_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],p4.prototype,"ytComponentBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],p4.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],p4.prototype,"data",void 0);p4=_.T([_.y({is:"ytd-kids-blocklist-picker-item-renderer",disableElementRegistration:!0})],p4);
_.r(p4,"ytd-kids-blocklist-picker-item-renderer",function(){if(utK!==void 0)return utK;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-kids-blocklist-picker-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="account-info style-scope ytd-kids-blocklist-picker-item-renderer">\n  <div class="account-avatar style-scope ytd-kids-blocklist-picker-item-renderer">\n    <yt-img-shadow id="account-icon" thumbnail="[[data.avatar]]" width="44" class="style-scope ytd-kids-blocklist-picker-item-renderer">\n    </yt-img-shadow>\n  </div>\n  <div class="account-text-info style-scope ytd-kids-blocklist-picker-item-renderer">\n    <yt-formatted-string class="account-name style-scope ytd-kids-blocklist-picker-item-renderer" text="[[data.childDisplayName]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="account-description style-scope ytd-kids-blocklist-picker-item-renderer" text="[[data.childAccountDescription]]">\n    </yt-formatted-string>\n  </div>\n</div>\n<div class="action-button style-scope ytd-kids-blocklist-picker-item-renderer">\n  <ytd-block-button blocked-entity-key="[[data.blockedEntityKey]]" data="[[data.blockButton.toggleButtonRenderer]]" class="style-scope ytd-kids-blocklist-picker-item-renderer">\n  </ytd-block-button>\n</div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return utK=F},{mode:1});var mu=function(){return _.n.apply(this,arguments)||this};
_.k(mu,_.n);mu.prototype.configureRendererStamper=function(){return{"data.childRows":{id:"child-rows",mapping:{kidsBlocklistPickerItemRenderer:"ytd-kids-blocklist-picker-item-renderer"}}}};
_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],mu.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],mu.prototype,"data",void 0);mu=_.T([_.y({is:"ytd-kids-blocklist-picker-content",disableElementRegistration:!0})],mu);
_.r(mu,"ytd-kids-blocklist-picker-content",function(){if(w$8!==void 0)return w$8;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-kids-blocklist-picker-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="child-rows" class="style-scope ytd-kids-blocklist-picker-content"></div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return w$8=
F},{mode:_.E6("kevlar_poly_si_batch_j025")?1:2});var ScN;var K4=function(){var F=_.n.apply(this,arguments)||this;F.hasAnyRequestSucceeded=!1;F.hasAnyRequestFailed=!1;F.numPendingRequests=0;return F};
_.k(K4,_.n);_.N=K4.prototype;_.N.attached=function(){this.hostElement.setAttribute("dialog","")};
_.N.onDoneButtonTap=function(){_.dW(this.hostElement,"yt-close-popup-action",["ytd-kids-blocklist-picker-renderer"])};
_.N.onYtServiceRequestSent=function(){this.numPendingRequests+=1};
_.N.onYtServiceRequestCompleted=function(){--this.numPendingRequests;this.hasAnyRequestSucceeded=!0};
_.N.onYtServiceRequestError=function(){--this.numPendingRequests;this.hasAnyRequestFailed=!0};
_.N.onPopupClosed=function(F){var W,E;if(((W=F.detail)==null?void 0:(E=W.popup)==null?void 0:E.is)==="tp-yt-paper-dialog"){var h;this.numPendingRequests<=0&&this.hasAnyRequestSucceeded&&!this.hasAnyRequestFailed&&((h=this.data)==null?0:h.successfulToastActionMessage)&&this.ytComponentBehavior.resolveCommand(_.pV(this.data.successfulToastActionMessage));this.hasAnyRequestFailed=this.hasAnyRequestSucceeded=!1;this.numPendingRequests=0}};
K4.prototype.onPopupClosed=K4.prototype.onPopupClosed;K4.prototype.onYtServiceRequestError=K4.prototype.onYtServiceRequestError;K4.prototype.onYtServiceRequestCompleted=K4.prototype.onYtServiceRequestCompleted;K4.prototype.onYtServiceRequestSent=K4.prototype.onYtServiceRequestSent;_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],K4.prototype,"ytComponentBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],K4.prototype,"ytRendererBehavior",void 0);
_.T([_.O(),_.Y("design:type",Object)],K4.prototype,"data",void 0);_.T([_.R4("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],K4.prototype,"onYtServiceRequestSent",null);_.T([_.R4("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],K4.prototype,"onYtServiceRequestCompleted",null);
_.T([_.R4("yt-service-request-error"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],K4.prototype,"onYtServiceRequestError",null);_.T([_.R4("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],K4.prototype,"onPopupClosed",null);K4=_.T([_.y({is:"ytd-kids-blocklist-picker-renderer",disableElementRegistration:!0})],K4);
_.r(K4,"ytd-kids-blocklist-picker-renderer",function(){if(ScN!==void 0)return ScN;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-kids-blocklist-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-kids-blocklist-picker-renderer">\n  <div id="title" class="style-scope ytd-kids-blocklist-picker-renderer">\n    <yt-formatted-string text="[[data.title]]" class="style-scope ytd-kids-blocklist-picker-renderer"> </yt-formatted-string>\n  </div>\n  <ytd-kids-blocklist-picker-content data="[[data]]" class="style-scope ytd-kids-blocklist-picker-renderer"> </ytd-kids-blocklist-picker-content>\n</div>\n<div id="footer" class="style-scope ytd-kids-blocklist-picker-renderer">\n  <div id="action-buttons" class="style-scope ytd-kids-blocklist-picker-renderer">\n    <ytd-button-renderer id="done-button" data="[[data.doneButton.buttonRenderer]]" on-click="onDoneButtonTap" class="style-scope ytd-kids-blocklist-picker-renderer">\n    </ytd-button-renderer>\n  </div>\n</div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return ScN=F},{mode:1});var p$$;var mMP;var Fv=function(){return _.n.apply(this,arguments)||this};
_.k(Fv,_.n);Fv.prototype.setTip=function(F){var W=this;this.data&&(this.tip=ylP(lz8.getInstance(),F,this.data),_.wT(this,function(){_.hF(W.hostElement,"yt-refit")}))};
Fv.prototype.clearTip=function(){this.tip=void 0};
Fv.prototype.computeHidden=function(F){return!F};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Fv.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],Fv.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0,computed:"computeHidden(tip)",value:!0}),_.Y("design:type",Boolean)],Fv.prototype,"hidden",void 0);_.T([_.O(),_.Y("design:type",Object)],Fv.prototype,"tip",void 0);Fv=_.T([_.y({is:"ytd-menu-popup-tip-renderer",disableElementRegistration:!0})],Fv);
_.r(Fv,"ytd-menu-popup-tip-renderer",function(){if(mMP!==void 0)return mMP;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-menu-popup-tip-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[tip]]" class="style-scope ytd-menu-popup-tip-renderer"></yt-formatted-string>\n');F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);
return mMP=F},{mode:1});var KOT;var WW=function(){var F=_.n.apply(this,arguments)||this;F.useIcons=!1;F.systemIcons=_.c("kevlar_system_icons");F.useListItemStyles=_.c("web_list_item_style_for_menu_items");return F};
_.k(WW,_.n);_.N=WW.prototype;_.N.onFocus=function(){var F;(F=_.Z(this.hostElement).querySelector("tp-yt-paper-item"))==null||F.focus()};
_.N.onTap=function(){var F=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.defaultServiceEndpoint;if(F&&_.D(F,_.Mc))this.componentBehavior.resolveCommand(F),this.updateToggledStateInEntity();else if(F){this.componentBehavior.resolveCommand(F)||_.WZ().resolve(_.EJ).resolveCommand(F,{form:{element:this.hostElement}});var W;((W=_.D(F,_.Q7))==null?void 0:W.signal)==="CLIENT_SIGNAL"&&this.updateToggledStateInEntity()}};
_.N.onYtServiceRequestCompleted=function(){this.updateToggledStateInEntity()};
_.N.toggledStateEntityChanged=function(){this.toggleMenuServiceItemEntity&&this.set("data.isToggled",!!this.toggleMenuServiceItemEntity.isToggled)};
_.N.updateToggledStateInEntity=function(){var F=this.data.toggleMenuServiceItemEntityKey,W=!this.data.isToggled;F&&this.ytdReduxBehavior.dispatch(_.AG("toggleMenuServiceItemEntity",F,{key:F,isToggled:W}))};
_.N.computeIcon=function(F,W,E){return(F=F?E:W)&&F.iconType?_.Vd(F.iconType):""};
_.N.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.N.isIconActive=function(F){return!_.c("toggle_menu_active_icon_killswitch")&&F};
_.Sn.Object.defineProperties(WW.prototype,{toggleButtonText:{configurable:!0,enumerable:!0,get:function(){var F,W,E;return((F=this.data)==null?0:F.isToggled)?(W=this.data)==null?void 0:W.toggledText:(E=this.data)==null?void 0:E.defaultText}}});
WW.prototype.toggledStateEntityChanged=WW.prototype.toggledStateEntityChanged;WW.prototype.onYtServiceRequestCompleted=WW.prototype.onYtServiceRequestCompleted;WW.prototype.onTap=WW.prototype.onTap;WW.prototype.onFocus=WW.prototype.onFocus;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],WW.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],WW.prototype,"componentBehavior",void 0);
_.T([_.J(_.am),_.Y("design:type",Object)],WW.prototype,"ytdReduxBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],WW.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],WW.prototype,"useIcons",void 0);_.T([_.O({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.Y("design:type",String)],WW.prototype,"icon",void 0);
_.T([_.O({selectorArgs:["data.toggleMenuServiceItemEntityKey"],selector:function(F,W){return _.Mn(F.entities,"toggleMenuServiceItemEntity",W)}}),
_.Y("design:type",Object)],WW.prototype,"toggleMenuServiceItemEntity",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],WW.prototype,"systemIcons",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],WW.prototype,"useListItemStyles",void 0);_.T([_.R4("focus"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],WW.prototype,"onFocus",null);
_.T([_.a("data.isToggled"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],WW.prototype,"toggleButtonText",null);_.T([_.R4("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],WW.prototype,"onTap",null);_.T([_.R4("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],WW.prototype,"onYtServiceRequestCompleted",null);
_.T([_.ea("toggleMenuServiceItemEntity.isToggled","data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],WW.prototype,"toggledStateEntityChanged",null);WW=_.T([_.y({is:"ytd-toggle-menu-service-item-renderer",disableElementRegistration:!0})],WW);
_.r(WW,"ytd-toggle-menu-service-item-renderer",function(){if(KOT!==void 0)return KOT;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-toggle-menu-service-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-item class="style-scope ytd-toggle-menu-service-item-renderer">\n  <yt-icon active="[[isIconActive(data.isToggled)]]" hidden="[[computeIconHidden(icon, useIcons)]]" icon="[[icon]]" class="style-scope ytd-toggle-menu-service-item-renderer"></yt-icon>\n  <yt-formatted-string text="[[toggleButtonText]]" class="style-scope ytd-toggle-menu-service-item-renderer"></yt-formatted-string>\n  <tp-yt-paper-toggle-button checked="[[data.isToggled]]" hidden="[[!data.hasToggleSwitch]]" class="style-scope ytd-toggle-menu-service-item-renderer"></tp-yt-paper-toggle-button>\n</tp-yt-paper-item>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return KOT=F},{mode:1});var F38;var EA=function(){return _.n.apply(this,arguments)||this};
_.k(EA,_.n);EA.prototype.onFocus=function(){var F;(F=_.Z(this.hostElement).querySelector("tp-yt-paper-item"))==null||F.focus()};
_.Sn.Object.defineProperties(EA.prototype,{imageSource:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.iconUrl)return _.II(this.data.iconUrl)}}});
EA.prototype.onFocus=EA.prototype.onFocus;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],EA.prototype,"rendererBehavior",void 0);_.T([_.J(_.eB.YtEndpointBehavior),_.Y("design:type",Object)],EA.prototype,"ytEndpointBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],EA.prototype,"data",void 0);_.T([_.R4("focus"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],EA.prototype,"onFocus",null);
_.T([_.a("data.iconUrl"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],EA.prototype,"imageSource",null);EA=_.T([_.y({disableElementRegistration:!0,is:"ytd-menu-custom-icon-item-renderer"})],EA);
_.r(EA,"ytd-menu-custom-icon-item-renderer",function(){if(F38!==void 0)return F38;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-menu-custom-icon-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-menu-custom-icon-item-renderer" data="[[data.command]]" href$="[[computeHref_(data.command)]]" tabindex="-1">\n  <tp-yt-paper-item class="style-scope ytd-menu-custom-icon-item-renderer">\n    <img class="custom-icon style-scope ytd-menu-custom-icon-item-renderer" hidden$="[[!data.iconUrl]]" alt="icon" src$="[[imageSource]]">\n    <div class="action-text style-scope ytd-menu-custom-icon-item-renderer">\n      [[getSimpleString(data.actionText)]]\n      <yt-icon class="launch-icon style-scope ytd-menu-custom-icon-item-renderer" icon="yt-icons:launch"></yt-icon>\n    </div>\n  </tp-yt-paper-item>\n</a>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return F38=F},{mode:_.E6("kevlar_poly_si_batch_j028")?1:2});_.pK(_.$q,"yt-list-item-view-model",{props:{data:_.TS,isMenuItem:_.TS,isCompact:_.TS,onTap:_.Si,trailingAccessory:_.Si,hideSelectionTextChevron:_.TS,disabled:_.TS,inPopup:_.TS,disableHorizontalPadding:_.TS,isOverlay:_.TS}});var hx=function(){var F=_.n.apply(this,arguments)||this;F.disableBackdropFilter=_.c("web_disable_backdrop_filter");return F};
_.k(hx,_.n);_.N=hx.prototype;
_.N.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{menuNavigationItemRenderer:{component:"ytd-menu-navigation-item-renderer",properties:{useIcons:"[[useIcons]]"}},menuServiceItemRenderer:{component:"ytd-menu-service-item-renderer",properties:{useIcons:"[[useIcons]]"}},menuConditionalNavigationItemRenderer:{component:"ytd-menu-navigation-item-renderer",properties:{useIcons:"[[useIcons]]"}},menuConditionalServiceItemRenderer:{component:"ytd-menu-service-item-renderer",properties:{useIcons:"[[useIcons]]"}},
toggleMenuServiceItemRenderer:{component:"ytd-toggle-menu-service-item-renderer",properties:{useIcons:"[[useIcons]]"}},listItemViewModel:{component:"yt-list-item-view-model",params:{isCompact:!0}},menuCustomIconItemRenderer:{component:"ytd-menu-custom-icon-item-renderer"},menuServiceItemDownloadRenderer:{component:"ytd-menu-service-item-download-renderer"},clientSideToggleMenuItemRenderer:{component:"yt-live-chat-toggle-renderer"}}},"data.footer":{id:"footer",mapping:{menuPopupTipRenderer:"ytd-menu-popup-tip-renderer"}}}};
_.N.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu")};
_.N.computeAriaLabel=function(F){return F};
_.N.onPopupOpened=function(){this.items.selected=0;for(var F=_.U(_.Z(this.items).children),W=F.next();!W.done;W=F.next())W.value.popupPositionTarget=this.positionTarget;if(F=this.popupTip||void 0)F.setTip(this.source||""),this.source=void 0;this.veData&&(F=_.JR())&&_.rW(F,[this.veData])};
_.N.onPopupClosed=function(){var F=this.popupTip||void 0;F&&F.clearTip()};
_.N.onIronActivate=function(F){this.shouldPersist(F)||_.dW(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.veData&&(F=_.JR())&&_.oj(F,this.veData)};
_.N.shouldPersist=function(F){var W,E;if(((W=F.detail)==null?void 0:W.selected)===void 0||(E=this.data)==null||!E.items)return!1;var h,d;return!((d=(h=this.data.items[F.detail.selected])==null?void 0:h.toggleMenuServiceItemRenderer)==null||!d.persistentOnMenuPopup)};
_.N.computeUseIcons=function(){return this.data&&this.data.items?this.data.items.some(function(F){return F.menuNavigationItemRenderer?!!F.menuNavigationItemRenderer.icon:F.menuServiceItemRenderer?!!F.menuServiceItemRenderer.icon:F.menuConditionalServiceItemRenderer?!!F.menuConditionalServiceItemRenderer.icon:F.menuConditionalNavigationItemRenderer?!!F.menuConditionalNavigationItemRenderer.icon:F.toggleMenuServiceItemRenderer?!!F.toggleMenuServiceItemRenderer.defaultIcon:!1}):!1};
hx.prototype.onPopupClosed=hx.prototype.onPopupClosed;hx.prototype.onPopupOpened=hx.prototype.onPopupOpened;_.T([_.J(_.B$.YtEventForwardingBehavior),_.Y("design:type",Object)],hx.prototype,"ytEventForwardingBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],hx.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],hx.prototype,"ytRendererBehavior",void 0);
_.T([_.O(),_.Y("design:type",Object)],hx.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Object)],hx.prototype,"veData",void 0);_.T([_.O({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.menuPopupAccessibility.label)"}),_.Y("design:type",String)],hx.prototype,"ariaLabel",void 0);_.T([_.O({computed:"computeUseIcons(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],hx.prototype,"useIcons",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],hx.prototype,"disableBackdropFilter",void 0);_.T([_.gQ("#items"),_.Y("design:type",Object)],hx.prototype,"items",void 0);_.T([_.gQ("ytd-menu-popup-tip-renderer"),_.Y("design:type",Object)],hx.prototype,"popupTip",void 0);_.T([_.R4("yt-popup-opened"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],hx.prototype,"onPopupOpened",null);
_.T([_.R4("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],hx.prototype,"onPopupClosed",null);hx=_.T([_.y({is:"ytd-menu-popup-renderer",disableElementRegistration:!0})],hx);
_.r(hx,"ytd-menu-popup-renderer",function(){if(p$$!==void 0)return p$$;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-menu-popup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-listbox id="items" on-iron-activate="onIronActivate" class="style-scope ytd-menu-popup-renderer"></tp-yt-paper-listbox>\n<div id="footer" class="style-scope ytd-menu-popup-renderer"></div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return p$$=F},{mode:1});var W3T;var E6P=_.GK(function(F){F=_.o4(F,{icon:void 0});var W=F.data;F=F.icon;var E=function(){return W().iconBadgeText},h={},d=_.ec("yt-spec-icon-badge-shape",function(){a:switch(W().iconBadgeType){case "notification":var V="yt-spec-icon-badge-shape--type-notification";
break a;case "cart":V="yt-spec-icon-badge-shape--type-cart";break a;default:V=""}return V},function(){a:switch(W().iconBadgeStyle){case "overlay":var V="yt-spec-icon-badge-shape--style-overlay";
break a;default:V=""}return V},(h["yt-spec-icon-badge-shape--text-size-small"]=function(){var V=E();
return!!((V==null?0:V.length)&&V.length>2)},h));
return _.z("yt-icon-badge-shape",null,_.z(_.v,{cond:F,then:function(V){return _.z("div",{class:d},_.z("div",{class:"yt-spec-icon-badge-shape__icon"},_.z(_.I3,{icon:V})),_.z(_.v,{cond:E,then:function(R){return _.z("div",{class:"yt-spec-icon-badge-shape__badge"},R)}}))}}))},"ig");
E6P.idomCompat=!0;_.pK(E6P,"yt-icon-badge-shape",{props:{data:_.TS,icon:_.TS}});var db=function(){var F=_.n.apply(this,arguments)||this;F.actionMap={"yt-update-notifications-unseen-count-action":"handleUpdateNotificationsUnseenCountAction","yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction"};F.unseenCount=0;F.isOverlay=!1;return F};
_.k(db,_.n);_.N=db.prototype;_.N.attached=function(){var F=this;this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);navigator&&navigator.serviceWorker&&navigator.serviceWorker.addEventListener("message",function(W){F.onServiceWorkerMessage(W)})};
_.N.onDataChanged=function(){this.isAttached&&!this.JSC$18173_lastData&&this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);this.JSC$18173_lastData=this.data};
_.N.computeIconBadgeShape=function(){return{iconBadgeType:"notification",iconBadgeText:this.unseenCount,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.N.computeIcon=function(){var F,W;return(F=this.data)==null?void 0:(W=F.icon)==null?void 0:W.iconType};
_.N.onServiceWorkerMessage=function(F){F.data.type==="update_unseen_notifications_count_signal"&&this.data&&this.data.updateUnseenCountEndpoint&&this.hasUnseenNotificationCountEndpoint()&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint)};
_.N.hasUnseenNotificationCountEndpoint=function(){return!!this.data&&!!this.data.updateUnseenCountEndpoint&&!!_.D(this.data.updateUnseenCountEndpoint,_.Q7)&&_.D(this.data.updateUnseenCountEndpoint,_.Q7).signal==="GET_UNSEEN_NOTIFICATION_COUNT"};
_.N.handleUpdateNotificationsUnseenCountAction=function(F){var W=this;F=_.D(F,iHP);F!=null&&F.unseenCount&&F.handlerData==="NOTIFICATION_ACTION_UPDATE_UNSEEN_COUNT"&&(this.updateCountUI(F.unseenCount),_.P0.addLowPriorityJob(function(){W.data.updateUnseenCountEndpoint&&W.ytComponentBehavior.resolveCommand(W.data.updateUnseenCountEndpoint)},F.timeoutMs))};
_.N.onClick=function(){_.hF(this.hostElement,"yt-update-unseen-notification-count",0);this.set("unseenCount",0);this.toggleIconState(!0);var F=_.Nc(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]),W=this.data.menuRequest;F&&F.length===1&&F[0]?_.dW(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]):W&&this.ytComponentBehavior.resolveCommand(W)};
_.N.handleTopbarMenuClosedAction=function(F){F==="multi-page-menu-style-type-notifications"&&this.toggleIconState(!1)};
_.N.toggleIconState=function(F){this.iconButton&&(this.iconButton.pressed=F)};
_.N.sendUnseenCountRequest=function(F){var W=this;_.sB(_.P0,function(){W.ytComponentBehavior.resolveCommand(F)})};
_.N.updateCountUI=function(F){this.set("unseenCount",F<9?F:"9+")};
_.Sn.Object.defineProperties(db.prototype,{showNotificationCount:{configurable:!0,enumerable:!0,get:function(){return this.unseenCount}}});
db.prototype.handleUpdateNotificationsUnseenCountAction=db.prototype.handleUpdateNotificationsUnseenCountAction;db.prototype.onDataChanged=db.prototype.onDataChanged;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],db.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],db.prototype,"ytComponentBehavior",void 0);_.T([_.J(_.Gf),_.Y("design:type",Object)],db.prototype,"ytdOpenPopupBehavior",void 0);
_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],db.prototype,"ytActionHandlerBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],db.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Object)],db.prototype,"unseenCount",void 0);_.T([_.O(),_.Y("design:type",Object)],db.prototype,"isOverlay",void 0);_.T([_.O({value:!0}),_.Y("design:type",Boolean)],db.prototype,"showTooltips",void 0);_.T([_.gQ("yt-icon-button"),_.Y("design:type",Object)],db.prototype,"iconButton",void 0);
_.T([_.a("unseenCount"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],db.prototype,"showNotificationCount",null);_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],db.prototype,"onDataChanged",null);_.T([_.R4("yt-update-notifications-unseen-count-action"),_.Y("design:type",Function),_.Y("design:paramtypes",[Object]),_.Y("design:returntype")],db.prototype,"handleUpdateNotificationsUnseenCountAction",null);
db=_.T([_.y({is:"ytd-notification-topbar-button-renderer",disableElementRegistration:!0})],db);
_.r(db,"ytd-notification-topbar-button-renderer",function(){if(W3T!==void 0)return W3T;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-notification-topbar-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon-button id="icon" label="[[data.accessibility.accessibilityData.label]]" on-click="onClick" class="style-scope ytd-notification-topbar-button-renderer">\n  <yt-icon-badge-shape data="[[computeIconBadgeShape(unseenCount, isOverlay)]]" icon="[[computeIcon(data)]]" class="style-scope ytd-notification-topbar-button-renderer">\n  </yt-icon-badge-shape>\n</yt-icon-button>\n<tp-yt-paper-tooltip class="style-scope ytd-notification-topbar-button-renderer">[[data.tooltip]]</tp-yt-paper-tooltip>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return W3T=F},{mode:_.E6("kevlar_poly_si_batch_j025")?1:2});var hQK;var Nk=function(){var F=_.n.apply(this,arguments)||this;F.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled"};return F};
_.k(Nk,_.n);Nk.prototype.configureRendererStamper=function(){return{"data.helpButton":{id:"help-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
Nk.prototype.attached=function(){this.dark=document.documentElement.hasAttribute("dark")};
Nk.prototype.onDarkModeToggled=function(F){this.dark=F};
_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],Nk.prototype,"ytActionHandlerBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],Nk.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Nk.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],Nk.prototype,"data",void 0);_.T([_.O({value:!0,reflectToAttribute:!0}),_.Y("design:type",Boolean)],Nk.prototype,"dark",void 0);
Nk=_.T([_.y({disableElementRegistration:!0,is:"yt-pdg-buy-flow-header-renderer"})],Nk);
_.r(Nk,"yt-pdg-buy-flow-header-renderer",function(){if(hQK!==void 0)return hQK;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-pdg-buy-flow-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="text-container" class="style-scope yt-pdg-buy-flow-header-renderer">\n  <yt-formatted-string id="title" text="[[data.text]]" class="style-scope yt-pdg-buy-flow-header-renderer"></yt-formatted-string>\n</div>\n<div id="button-container" class="style-scope yt-pdg-buy-flow-header-renderer">\n  <div id="help-button" class="style-scope yt-pdg-buy-flow-header-renderer"></div>\n  <div id="dismiss-button" class="style-scope yt-pdg-buy-flow-header-renderer"></div>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return hQK=F},{mode:1});var d_6;var NqO;var VP=function(){var F=_.n.apply(this,arguments)||this;F.immediateValue=0;F.isDarkTheme=!1;F.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return F};
_.k(VP,_.n);_.N=VP.prototype;_.N.created=function(){_.Y5.requestAvailability()};
_.N.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.N.dataChanged=function(){var F=_.Z(this.hostElement).querySelector("#color-slider");F.immediateValue&&this.updateSliderKnobAndGradientStyles(F.immediateValue);this.data.notches[0].knobColorArgb&&_.V9(this.hostElement,{"--ytd-pdg-color-slider-first-knob-color":_.XC(this.data.notches[0].knobColorArgb)});this.data.notches&&(this.maxMarkers=this.data.notches.length-1);_.b0("HTML_DIR")==="rtl"&&_.Z(this.hostElement).querySelector("#color-slider").setAttribute("dir","rtl");this.updateSliderAria()};
_.N.onSliderImmediateChange=function(){var F=_.Z(this.hostElement).querySelector("#color-slider");F.dragging&&(F.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(F.immediateValue),this.updateSliderKnobAndGradientStyles(F.immediateValue)),this.updateSliderAria())};
_.N.onSliderChange=function(){var F=_.Z(this.hostElement).querySelector("#color-slider");F.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(F.immediateValue),this.updateSliderKnobAndGradientStyles(F.immediateValue));this.updateSliderAria()};
_.N.updateSliderAria=function(){var F=_.Z(this.hostElement).querySelector("#color-slider"),W=_.Z(this.hostElement).querySelector("#color-slider");W=_.Yr(this.data.notches[W.immediateValue].tierValue);_.PG()&&_.hF(this.hostElement,"iron-announce",{text:W});F.setAttribute("aria-valuetext",W)};
_.N.updateSuperThanksSelectedTierEntity=function(F){if(F!==this.immediateValue){var W,E,h=this==null?void 0:(W=this.data)==null?void 0:(E=W.superThanksSelectedTierEntity)==null?void 0:E.key;h&&h.length>0&&this.ytdReduxBehavior.dispatch(_.AG("superThanksSelectedTierEntity",h,{key:h,index:F}))}};
_.N.onDarkModeToggledAction=function(F){this.isDarkTheme=F};
_.N.updateSliderKnobAndGradientStyles=function(F){this.immediateValue=F;F=this.data.notches[F];if(F==null?0:F.knobColorArgb)var W={"--ytd-pdg-color-slider-knob-color":_.XC(F.knobColorArgb)};(F==null?0:F.linearGradientCssStyle)&&W!==null&&(W=Object.assign({},W,{"--ytd-pdg-color-slider-active-color":F==null?void 0:F.linearGradientCssStyle}));W!==null&&_.V9(this.hostElement,W)};
VP.prototype.onSliderChange=VP.prototype.onSliderChange;VP.prototype.onSliderImmediateChange=VP.prototype.onSliderImmediateChange;VP.prototype.dataChanged=VP.prototype.dataChanged;_.T([_.O(),_.Y("design:type",Object)],VP.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Object)],VP.prototype,"immediateValue",void 0);_.T([_.O(),_.Y("design:type",Number)],VP.prototype,"maxMarkers",void 0);
_.T([_.O({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:bnK}),_.Y("design:type",Object)],VP.prototype,"superThanksSelectedTierEntity",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],VP.prototype,"isDarkTheme",void 0);_.T([_.J(_.am),_.Y("design:type",Object)],VP.prototype,"ytdReduxBehavior",void 0);_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],VP.prototype,"dataChanged",null);
_.T([_.R4("immediate-value-change"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],VP.prototype,"onSliderImmediateChange",null);_.T([_.R4("change"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],VP.prototype,"onSliderChange",null);VP=_.T([_.y({disableElementRegistration:!0,is:"ytd-pdg-color-slider-renderer"})],VP);
_.r(VP,"ytd-pdg-color-slider-renderer",function(){if(NqO!==void 0)return NqO;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-pdg-color-slider-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-slider id="color-slider" max="[[maxMarkers]]" max-markers="[[maxMarkers]]" min="0" snaps="" step="1" value="[[immediateValue]]" class="style-scope ytd-pdg-color-slider-renderer"></tp-yt-paper-slider>');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return NqO=F},{mode:1});var V6w;var U_K;var UA=null;
_.k3({is:"ytd-comment-input",_template:function(){if(U_K!==void 0)return U_K;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-input--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="creation-box" class$="[[computeCreationBoxClass_(isInputFocus_)]] style-scope ytd-comment-input">\n  <tp-yt-paper-input-container id="input-container" focused="{{isInputFocus_}}" no-label-float="" use-v2-underline="" class="style-scope ytd-comment-input">\n    <div slot="after-input" class="paper-input-input style-scope ytd-comment-input">\n      <ytd-emoji-input id="emoji" emoji-manager="[[emojiManager]]" vertical-suggestions-offset="[[verticalSuggestionsOffset]]" class="style-scope ytd-comment-input">\n        <yt-user-mention-autosuggest-input slot="input" suggestions-endpoint="[[data.userMentionSuggestionsEndpoint]]" class="style-scope ytd-comment-input">\n          <div id="content" slot="input" on-click="onContentClick" class="style-scope ytd-comment-input">\n            <yt-pdg-comment-chip-renderer id="paid-comment-chip" slot="input" data="[[commentChip]]" hidden="[[!hasCommentChip]]" class="style-scope ytd-comment-input">\n            </yt-pdg-comment-chip-renderer>\n            <yt-formatted-string id="contenteditable-textarea" slot="input" enable-content-editable="true" maxlength="10000" override-aria-label="[[computePlaceholderText_(placeholderText)]]" plaintext-only="true" required="true" split-lines="1" text="[[editableText]]" on-dragenter="preventDefault_" on-dragleave="preventDefault_" on-dragover="preventDefault_" on-drop="plaintextDrop_" on-focus="focus" on-input="onInput_" on-keyup="onKeyUp_" on-paste="onPaste_" class="style-scope ytd-comment-input"></yt-formatted-string>\n          </div>\n        </yt-user-mention-autosuggest-input>\n      </ytd-emoji-input>\n    </div>\n  </tp-yt-paper-input-container>\n  <span id="char-count" hidden="[[!charLimit]]" class="style-scope ytd-comment-input">[[charCount]]/[[charLimit]]</span>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return U_K=F},
behaviors:[_.QtR.YtHostElementBehavior,_.$5,_.Ok.YtComponentBehavior,_.Ky.YtRendererstamperBehavior,_.jQz.YtdReduxBehavior],keyBindings:{left:"leftKeyPressed_",right:"rightKeyPressed_",end:"endKeyPressed_",backspace:"maybeBackspaceChip_","delete":"maybeDeleteChip_","ctrl+backspace alt+backspace":"maybeBackspaceChipWordMode_","ctrl+delete alt+delete":"maybeDeleteChipWordMode_"},properties:{editableText:{type:Object,observer:"textDataChanged_"},placeholderText:{type:Object,observer:"textDataChanged_"},
commentChip:{type:Object,observer:"commentChipChanged_"},hideUnderline:{type:Boolean,value:!1,reflectToAttribute:!0},hasCommentChip:{type:Boolean,value:!1,reflectToAttribute:!0},receivedFocusPreviously_:{type:Boolean,value:!1},previousText_:String,isInputFocus_:{type:Boolean,observer:"onIsInputFocusChanged_"},emojiManager:{type:Object,readOnly:!0,value:function(){return _.Oz}},
isEmojiButtonDisplayed:{type:Boolean,value:!1},emojiInput:Object,verticalSuggestionsOffset:{type:Number,value:30},charCount:{type:Number,value:0},charLimit:{type:Number,value:null},aboveCharLimit_:{type:Boolean,reflectToAttribute:!0,value:!1},inputEventSupported_:{type:Boolean,value:!1},textRequiresScrolling:{type:Boolean,reflectToAttribute:!0,value:!1},localStorage:Object},listeners:{"yt-insert-suggestion":"onSuggestionInsert_","yt-select-emoji-suggestion":"onEmojiSuggestionClick_","yt-mention-inserted":"onInsertMention_"},
ready:function(){document.addEventListener("tap",_.UO(this,this.onTap_));this.emojiInput=this.$.emoji},
commentChipChanged_:function(){this.hasCommentChip=this.computeHasCommentChip_()},
textDataChanged_:function(){this.clear()},
attached:function(){this.$["input-container"].getElementsByClassName("underline")[0].style.height=0;_.vD();this.focus()},
detached:function(){document.removeEventListener("tap",_.UO(this,this.onTap_))},
created:function(){document.addEventListener("selectionchange",this.onSelectionChange_);this.textRequiresScrolling=!1},
onEmojiSelect:function(F){F=F.detail;F=F.isCustomEmoji?F.shortcuts[0]:F.emojiId;var W=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(W,F);this.maybeUpdateTextDirection_();_.hF(this.hostElement,"input")},
getInputRange_:function(){var F=_.qv();if(F){F=F.getBrowserRangeObject();for(var W=F.commonAncestorContainer;W;){if(W===this.getEditableTextArea_())return F;W=W.parentNode}}F=this.getEditableTextArea_();F=_.jC(F,F.childNodes.length);F.select();return F.getBrowserRangeObject()},
insertTextWithEmojis_:function(F,W,E){(W=this.emojiManager.createDocumentFragment(W,!0,!1,E===void 0?!0:E))&&W.childNodes.length!==0&&(F.collapsed||F.deleteContents(),E=W.lastChild,F.insertNode(W),_.$nz(E).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize())},
onSelectionChange_:function(){var F=_.qv();if(F){var W=F.JSC$9155_getStartNode(),E=F.JSC$9155_getEndNode();if(PCK(W)&&PCK(E)){var h=F.JSC$9155_getStartOffset(),d;if(_.IZ&&W.nodeType===Node.ELEMENT_NODE&&(d=_.nBi(W)))_.jC(d,0).select();else{d=W1(W)?W:_.HE(W,W1);var V=W1(E)?E:_.HE(E,W1);if(d||V)if(F.isCollapsed()){if(W.nodeType===Node.TEXT_NODE){F=!0;h===W.length&&(F=!1);if(UA==="end"||UA==="right")F=!1;W=W.parentNode;F=[].concat(_.x9(W.parentNode.childNodes)).indexOf(W)+(F?0:1);_.jC(W.parentNode,F).select()}}else d?
d.previousSibling&&d.previousSibling.length>0?_.rp(E,F.JSC$9155_getEndOffset(),d.previousSibling,d.previousSibling.length-1).select():(W=document.createTextNode("\u200b"),d.parentNode.insertBefore(W,d),_.rp(E,F.JSC$9155_getEndOffset(),W,0).select()):V&&(V.nextSibling&&V.nextSibling.length>0?_.rp(W,F.JSC$9155_getStartOffset(),V.nextSibling,1).select():(E=document.createTextNode("\u200b"),V.parentNode.insertBefore(E,V.nextSibling),_.rp(W,F.JSC$9155_getStartOffset(),E,E.length).select()));UA=null}}else UA=
null}else UA=null},
leftKeyPressed_:function(){UA="left"},
rightKeyPressed_:function(){UA="right"},
endKeyPressed_:function(){UA="end"},
maybeDeleteChip_:function(){var F=lsN(!0);if(F){var W=_.qv(),E=W.JSC$9155_getStartNode();W=W.JSC$9155_getStartOffset();_.Ow(E,W,F,F.childNodes.length).select()}},
maybeBackspaceChip_:function(){var F=lsN(!1);if(F){var W=_.qv(),E=W.JSC$9155_getStartNode();W=W.JSC$9155_getStartOffset();_.Ow(E,W,F,0).select()}},
maybeBackspaceChipWordMode_:function(F){var W=_.qv();if(W.isCollapsed()){var E=W.JSC$9155_getStartNode();W=W.JSC$9155_getStartOffset();var h=nrO(E,W,!0);h&&(_.Ow(E,W,h,0).select(),document.execCommand("delete"),F.preventDefault(),F.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(F){var W=_.qv();if(W.isCollapsed()){var E=W.JSC$9155_getStartNode();W=W.JSC$9155_getStartOffset();var h=nrO(E,W,!1);h&&(_.Ow(E,W,h,h.childNodes.length).select(),document.execCommand("delete"),F.preventDefault(),F.stopImmediatePropagation())}},
onContentClick:function(F){F.target.id==="content"&&this.getEditableTextArea_().focus()},
onTap_:function(F){F.defaultPrevented||F.currentTarget.tagName==="YTD-COMMENT-INPUT"&&W1(F.target)&&F.preventDefault()},
clear:function(){this.errorMessage_=null;this.setTextAreaValue(this.editableText);this.previousText_=this.getTextAreaValue().trim();this.updateCharCount_();this.receivedFocusPreviously_=!1},
getEditableTextArea_:function(){return _.Z(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.Z(this.hostElement).querySelector("#contenteditable-textarea")},
getTextAreaValue:function(){return this.convertHrefToAtMentionAndImgToEmoji_(this.getEditableTextArea_(),!0)},
getTextLength:function(){return this.convertHrefToAtMentionAndImgToEmoji_(this.getEditableTextArea_(),!1).trim().length},
convertHrefToAtMentionAndImgToEmoji_:function(F,W){F=asT(F,this.emojiManager,W).cloneNode(!0);for(W=F.firstChild;W;)if(W.nodeType!==1)W=W.nextSibling;else switch(W.tagName){case "BR":var E=_.aY();_.Yea(E,W);W=E.nextSibling;break;case "DIV":(E=W.lastChild)&&W.nextSibling&&_.lk(_.aY(),E);W.previousSibling&&(W.previousSibling.nodeType===1||W.previousSibling.nodeType===3&&!W.previousSibling.textContent.endsWith("\n"))&&_.bk(_.aY(),W);E&&E.nodeName==="BR"&&_.Bb(E);E=W;W.hasChildNodes()?(W=W.firstChild,
_.wOO(E)):(W=W.nextSibling,_.Bb(E));break;default:W=W.nextSibling}return yEK(F)},
setTextAreaValue:function(F){F||(F="");var W=this.getEditableFormattedString_();W.text="";this.getEditableTextArea_().innerText="";typeof F==="string"&&(F={runs:[{text:F}]});W.text=F},
focus:function(){this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();UA=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var F=this.getEditableTextArea_();F&&(_.jC(F,F.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.b0("HTML_DIR")==="rtl"){var F=this.getEditableTextArea_(),W=this.getTextAreaValue()!==""?"auto":"rtl";F.setAttribute("dir",W)}},
handleInputEvent_:function(){var F=null;if(this.isEmojiButtonDisplayed){var W=this.getInputRange_();W&&(F=this.emojiInput.retrieveTextBeforeRange(W))}this.insertText_(F,!0);this.updateCharCount_();F=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=F.scrollHeight>F.clientHeight);this.maybeHeightChanged()},
maybeHeightChanged:function(){var F=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:F})},
onInput_:function(){this.inputEventSupported_=!0;this.handleInputEvent_()},
onKeyUp_:function(){this.inputEventSupported_||this.handleInputEvent_()},
updateCharCount_:function(){this.charCount=this.getTextLength();this.aboveCharLimit_=!!this.charLimit&&this.charCount>this.charLimit},
onPaste_:function(F){this.isEmojiButtonDisplayed&&(F.preventDefault(),F.stopImmediatePropagation(),F=F.clipboardData.getData("text/plain"),this.insertText_(F,!1,!1),_.hF(this.hostElement,"input"))},
insertText_:function(F,W,E){W=W===void 0?!1:W;E=E===void 0?!0:E;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&F){var h=this.getInputRange_().cloneRange();this.emojiManager&&h&&(W&&this.emojiInput.offsetStartOfRangeBy(h,F.length),this.insertTextWithEmojis_(h,F,E),JE8(this.getEditableTextArea_().lastChild)||(h=this.getInputRange_().cloneRange()),h&&(this.emojiInput.updateSuggestions(h,F),this.updateSuggestionOffset_(h)))}},
getSimpleString:_.Yr,computeHasCommentChip_:function(){return this.commentChip!==void 0},
computeCreationBoxClass_:function(F){return F?"focused":"not-focused"},
computePlaceholderText_:function(F){return this.getSimpleString(F)},
computeEditableText_:function(F){return this.getSimpleString(F)},
onPrefilledContentDismissed_:function(F){F.stopPropagation();this.dismissPrefilledContent_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
isValidInput_:function(){return this.aboveCharLimit_?!1:!!this.getTextAreaValue().trim()},
onIsInputFocusChanged_:function(F,W){F?this.fire("yt-autonav-pause-focus"):W!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(F){var W=this.getEditableTextArea_();[].concat(_.x9(F.dataTransfer.items)).forEach(function(E){E.kind==="string"&&E.type.match("^text/plain")&&E.getAsString(function(h){W.appendChild(document.createTextNode(h))})});
F.preventDefault()},
preventDefault_:function(F){F.preventDefault()},
onSuggestionInsert_:function(F){this.insertTextWithEmojis_(F.detail.range,F.detail.text)},
onEmojiSuggestionClick_:function(F){this.emojiInput.insertSuggestion(F.detail)},
updateSuggestionOffset_:function(F){if(this.emojiInput&&_.Z(this.emojiInput).querySelector("#dropdown")){var W=this.getEditableTextArea_().getBoundingClientRect().bottom,E=F.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(W-E)+5;W=this.getEditableTextArea_().getBoundingClientRect().left;F=F.getBoundingClientRect().left-W;_.Z(this.emojiInput).querySelector("#dropdown").style.marginLeft=F+"px"}},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.bY("yt-post"));return this.localStorage}});var Rb=function(){var F=_.n.apply(this,arguments)||this;F.currentCommentOptionIndex=0;F.isEmojiPickerDisplayed=!1;F.emojiManager=_.Oz;F.isUgcEmpty=!1;F.userGeneratedCommentChangedHandler=function(){_.hF(F.hostElement,"ytd-pdg-user-generated-comment-changed");F.isEmojiYtdCommentInputEnabled&&(F.isUgcEmpty=!F.ytdCommentInputEl.getTextAreaValue())};
F.pasteHandler=function(W){W.preventDefault();W.stopImmediatePropagation();var E;if(W=(E=W.clipboardData)==null?void 0:E.getData("text/plain"))E=document.getSelection().getRangeAt(0),E.collapsed||E.deleteContents(),W=document.createTextNode(W),E.insertNode(W),E.selectNodeContents(W),E.collapse(!1),W=window.getSelection(),W.removeAllRanges(),W.addRange(E)};
F.onDocumentClick=function(W){if(F.isEmojiPickerDisplayed){var E,h,d;!(W.target instanceof Node)||(E=W.composedPath())!=null&&E.includes(F.editableTextEl)||(h=W.composedPath())!=null&&h.includes(F.emojiButtonEl)||(d=W.composedPath())!=null&&d.includes(F.emojiPickerEl)||(F.isEmojiPickerDisplayed=!1)}};
return F};
_.k(Rb,_.n);_.N=Rb.prototype;_.N.configureRendererStamper=function(){return{emojiPicker:{id:"emoji-picker",mapping:{emojiPickerRenderer:{component:"yt-emoji-picker-renderer",properties:{emojiManager:"[[emojiManager]]"}}}}}};
_.N.attached=function(){this.containerEl.addEventListener("input",this.userGeneratedCommentChangedHandler);this.containerEl.addEventListener("paste",this.pasteHandler);document.addEventListener("click",this.onDocumentClick)};
_.N.detached=function(){var F;(F=this.contentEl)==null||F.removeEventListener("input",this.userGeneratedCommentChangedHandler);var W;(W=this.contentEl)==null||W.removeEventListener("paste",this.pasteHandler);document.removeEventListener("click",this.onDocumentClick)};
_.N.currentCommentOptionChanged=function(){this.handleBackgroundColorStyling()};
_.N.dataChanged=function(){this.containerEl.classList.add("ugc");if(this.contentEl){var F;this.contentEl.textContent=this.rendererBehavior.getSimpleString((F=this.data)==null?void 0:F.defaultCommentText)}this.isEmojiYtdCommentInputEnabled&&(this.containerEl.classList.add("emojis"),this.reloadEmojis());this.handleTextScrolling()};
_.N.reloadEmojis=function(){this.emojiPickerEl&&_.D(this.emojiPicker,_.Cxu)&&this.emojiPickerEl.updateEmojiCategories()};
_.N.handleTextScrolling=function(){this.isEmojiYtdCommentInputEnabled||_.V9(this.hostElement,{"--ytd-pdg-comment-preview-max-height":"300px","--ytd-pdg-comment-preview-overflow":"auto"})};
_.N.handleBackgroundColorStyling=function(){var F;if((F=this.currentCommentOption)==null?0:F.commentBackgroundColorArgb){var W;_.V9(this.hostElement,{"--ytd-pdg-comment-preview-background-color":_.XC((W=this.currentCommentOption)==null?void 0:W.commentBackgroundColorArgb)})}else _.V9(this.hostElement,{"--ytd-pdg-comment-preview-background-color":"initial"})};
_.N.onContainerClick=function(){if(this.isEmojiYtdCommentInputEnabled)this.containerEl.focus();else if(this.containerEl.classList.contains("ugc")){var F;(F=this.contentEl)==null||F.focus()}};
_.N.onEditButtonClick=function(F){var W=document.getSelection();W&&this.contentEl&&(F.stopPropagation(),F.preventDefault(),W.selectAllChildren(this.contentEl),W.collapseToEnd())};
_.N.onContentDrop=function(F){var W=this;if(F.dataTransfer){F=_.U(F.dataTransfer.items);for(var E=F.next();!E.done;E=F.next())E=E.value,E.kind==="string"&&E.type.match("^text/plain")&&E.getAsString(function(h){var d;(d=W.contentEl)==null||d.appendChild(document.createTextNode(h))})}};
_.N.onEmojiButtonClick=function(){this.isEmojiPickerDisplayed=!this.isEmojiPickerDisplayed;this.emojiPickerEl.selected=!this.emojiPickerEl.selected};
_.N.getUserGeneratedCommentText=function(){var F,W=this.isEmojiYtdCommentInputEnabled?this.ytdCommentInputEl.getTextAreaValue():(F=this.contentEl)==null?void 0:F.textContent;return W?W.trim():""};
_.N.getIsEmojiYtdCommentInputEnabled=function(){return this.isEmojiYtdCommentInputEnabled};
_.N.onEmojiSelect=function(F){this.ytdCommentInputEl.onEmojiSelect(F)};
_.Sn.Object.defineProperties(Rb.prototype,{isEmojiYtdCommentInputEnabled:{configurable:!0,enumerable:!0,get:function(){var F;return!((F=this.data)==null||!F.commentDialog)}},
title:{configurable:!0,enumerable:!0,get:function(){return this.rendererBehavior.getSimpleString(this.data.title)}},
channelName:{configurable:!0,enumerable:!0,get:function(){return this.rendererBehavior.getSimpleString(this.data.authorText)}},
shouldShowPaidCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var F;return!((F=this.currentCommentOption)==null||!F.chipRenderer)}},
paidCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var F;if(_.D((F=this.currentCommentOption)==null?void 0:F.chipRenderer,_.qwT)){var W;return _.D((W=this.currentCommentOption)==null?void 0:W.chipRenderer,_.qwT)}}},
currentCommentOption:{configurable:!0,enumerable:!0,get:function(){if(this.superThanksSelectedTierEntity&&this.superThanksSelectedTierEntity.index!==void 0){var F,W;return((F=this.data)==null?0:F.commentOptionRenderers)?_.D((W=this.data)==null?void 0:W.commentOptionRenderers[this.superThanksSelectedTierEntity.index],ttq):void 0}var E,h;return((E=this.data)==null?0:E.commentOptionRenderers)?_.D((h=this.data)==null?void 0:h.commentOptionRenderers[this.currentCommentOptionIndex],ttq):void 0}},
commentText:{configurable:!0,enumerable:!0,get:function(){var F;return this.rendererBehavior.getSimpleString((F=this.data)==null?void 0:F.defaultCommentText)}},
placeholderText:{configurable:!0,enumerable:!0,get:function(){var F;return this.rendererBehavior.getSimpleString((F=this.data)==null?void 0:F.placeholderText)}},
editableText:{configurable:!0,enumerable:!0,get:function(){var F,W;return(W=_.D((F=this.data)==null?void 0:F.commentDialog,_.USp))==null?void 0:W.editableText}},
emojiButton:{configurable:!0,enumerable:!0,get:function(){var F,W;return(W=_.D((F=this.data)==null?void 0:F.commentDialog,_.USp))==null?void 0:W.emojiButton}},
emojiPicker:{configurable:!0,enumerable:!0,get:function(){var F,W;return(W=_.D((F=this.data)==null?void 0:F.commentDialog,_.USp))==null?void 0:W.emojiPicker}},
isEmojiButtonDisplayed:{configurable:!0,enumerable:!0,get:function(){var F,W,E=(W=_.D((F=this.data)==null?void 0:F.commentDialog,_.USp))==null?void 0:W.emojiPicker;if(!_.D(E,_.Cxu)||!_.D(E,_.Cxu).categories)return!1;F=function(V){return V.emojiPickerCategoryRenderer?V.emojiPickerCategoryRenderer.emojiIds&&V.emojiPickerCategoryRenderer.emojiIds.length>0:V.emojiPickerUpsellCategoryRenderer?V.emojiPickerUpsellCategoryRenderer.emojis&&V.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1};
var h,d;return((h=_.D(E,_.Cxu))==null?0:(d=h.categories)==null?0:d.find(F))?!0:!1}}});
Rb.prototype.onEmojiSelect=Rb.prototype.onEmojiSelect;Rb.prototype.dataChanged=Rb.prototype.dataChanged;Rb.prototype.currentCommentOptionChanged=Rb.prototype.currentCommentOptionChanged;_.T([_.J(_.am),_.Y("design:type",Object)],Rb.prototype,"ytdReduxBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Rb.prototype,"rendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],Rb.prototype,"ytRendererstamperBehavior",void 0);
_.T([_.gQ("#content-dom-if"),_.Y("design:type",_.sO)],Rb.prototype,"contentDomIfEl",void 0);_.T([_.gQ("#content-no-emojis"),_.Y("design:type",HTMLElement)],Rb.prototype,"contentEl",void 0);_.T([_.gQ("#container"),_.Y("design:type",HTMLElement)],Rb.prototype,"containerEl",void 0);_.T([_.gQ("#comment-chip-container"),_.Y("design:type",HTMLElement)],Rb.prototype,"paidCommentChipContainerEl",void 0);_.T([_.gQ("#text-input"),_.Y("design:type",HTMLElement)],Rb.prototype,"editableTextEl",void 0);
_.T([_.gQ("#emoji-button"),_.Y("design:type",HTMLElement)],Rb.prototype,"emojiButtonEl",void 0);_.T([_.gQ("#emoji-picker > yt-emoji-picker-renderer"),_.Y("design:type",Object)],Rb.prototype,"emojiPickerEl",void 0);_.T([_.gQ("#text-input > ytd-comment-input"),_.Y("design:type",Object)],Rb.prototype,"ytdCommentInputEl",void 0);_.T([_.O(),_.Y("design:type",Object)],Rb.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Object)],Rb.prototype,"currentCommentOptionIndex",void 0);
_.T([_.O({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:bnK}),_.Y("design:type",Object)],Rb.prototype,"superThanksSelectedTierEntity",void 0);_.T([_.O(),_.Y("design:type",Object)],Rb.prototype,"isEmojiPickerDisplayed",void 0);_.T([_.O(),_.Y("design:type",Object)],Rb.prototype,"emojiManager",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],Rb.prototype,"isUgcEmpty",void 0);
_.T([_.ea("currentCommentOption"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Rb.prototype,"currentCommentOptionChanged",null);_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Rb.prototype,"dataChanged",null);_.T([_.a("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Rb.prototype,"isEmojiYtdCommentInputEnabled",null);
_.T([_.a("data.title"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Rb.prototype,"title",null);_.T([_.a("data.authorText"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Rb.prototype,"channelName",null);_.T([_.a("data.commentOptionRenderers","currentCommentOption"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Rb.prototype,"shouldShowPaidCommentChipRenderer",null);
_.T([_.a("data.commentOptionRenderers","currentCommentOption"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Rb.prototype,"paidCommentChipRenderer",null);_.T([_.a("data.commentOptionRenderers","currentCommentOptionIndex","superThanksSelectedTierEntity"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Rb.prototype,"currentCommentOption",null);
_.T([_.a("data.defaultCommentText","superThanksSelectedTierEntity"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Rb.prototype,"commentText",null);_.T([_.a("data.placeholderText"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Rb.prototype,"placeholderText",null);_.T([_.a("data.commentDialog.commentDialogRenderer.editableText"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Rb.prototype,"editableText",null);
_.T([_.a("data.commentDialog.commentDialogRenderer.emojiButton"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Rb.prototype,"emojiButton",null);_.T([_.a("data.commentDialog.commentDialogRenderer.emojiPicker"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Rb.prototype,"emojiPicker",null);
_.T([_.a("data.commentDialog.commentDialogRenderer.emojiPicker","data.commentDialog.commentDialogRenderer.emojiButton"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Rb.prototype,"isEmojiButtonDisplayed",null);_.T([_.R4("yt-emoji-select"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],Rb.prototype,"onEmojiSelect",null);Rb=_.T([_.y({disableElementRegistration:!0,is:"ytd-pdg-comment-preview-renderer"})],Rb);
_.r(Rb,"ytd-pdg-comment-preview-renderer",function(){if(V6w!==void 0)return V6w;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-pdg-comment-preview-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" on-click="onContainerClick" class="style-scope ytd-pdg-comment-preview-renderer">\n  <div id="comment-container" class="style-scope ytd-pdg-comment-preview-renderer">\n    <div id="title-background" class="style-scope ytd-pdg-comment-preview-renderer">\n      <h2 id="comment-title" class="style-scope ytd-pdg-comment-preview-renderer">[[title]]</h2>\n    </div>\n    <div id="comment" class="style-scope ytd-pdg-comment-preview-renderer">\n      <yt-img-shadow id="author-thumbnail" fit="" height="40" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-pdg-comment-preview-renderer">\n      </yt-img-shadow>\n      <div id="text" class="style-scope ytd-pdg-comment-preview-renderer">\n        <div id="header" class="style-scope ytd-pdg-comment-preview-renderer">\n          <span id="channel-name" dir="auto" class="style-scope ytd-pdg-comment-preview-renderer">[[channelName]]</span>\n        </div>\n        <template id="content-dom-if" is="dom-if" if="[[!isEmojiYtdCommentInputEnabled]]" restamp="" class="style-scope ytd-pdg-comment-preview-renderer">\n          <span id="comment-chip-container" class="style-scope ytd-pdg-comment-preview-renderer">\n            <template is="dom-if" if="[[shouldShowPaidCommentChipRenderer]]" class="style-scope ytd-pdg-comment-preview-renderer">\n              <yt-pdg-comment-chip-renderer id="paid-comment-chip-renderer" data="[[paidCommentChipRenderer]]" class="style-scope ytd-pdg-comment-preview-renderer">\n              </yt-pdg-comment-chip-renderer>\n            </template>\n          </span>\n          <span id="content-no-emojis" on-drop="onContentDrop" contenteditable="true" placeholder$="[[placeholderText]]" class="style-scope ytd-pdg-comment-preview-renderer">[[commentText]]</span>\n        </template>\n        <template is="dom-if" if="[[isEmojiYtdCommentInputEnabled]]" restamp="" class="style-scope ytd-pdg-comment-preview-renderer">\n          <div id="content-emojis" class="style-scope ytd-pdg-comment-preview-renderer">\n            <div id="text-input" class="style-scope ytd-pdg-comment-preview-renderer">\n              <ytd-comment-input comment-chip="[[paidCommentChipRenderer]]" editable-text="[[editableText]]" hide-underline="" is-emoji-button-displayed="[[isEmojiButtonDisplayed]]" is-emoji-picker-displayed="[[isEmojiPickerDisplayed]]" class="style-scope ytd-pdg-comment-preview-renderer"></ytd-comment-input>\n            </div>\n          </div>\n        </template>\n      </div>\n      <div id="emoji-input" class="style-scope ytd-pdg-comment-preview-renderer">\n        <template is="dom-if" if="[[isEmojiButtonDisplayed]]" class="style-scope ytd-pdg-comment-preview-renderer">\n          <ytd-button-renderer id="emoji-button" data="[[emojiButton.buttonRenderer]]" on-click="onEmojiButtonClick" class="style-scope ytd-pdg-comment-preview-renderer"></ytd-button-renderer>\n        </template>\n      </div>\n    </div>\n  </div>\n  <ytd-button-renderer data="[[data.editButton.buttonRenderer]]" hidden$="[[!data.editButton.buttonRenderer]]" on-click="onEditButtonClick" class="style-scope ytd-pdg-comment-preview-renderer"></ytd-button-renderer>\n</div>\n<div id="emojis" hidden="[[!isEmojiPickerDisplayed]]" class="style-scope ytd-pdg-comment-preview-renderer">\n  <span id="emoji-picker" class="style-scope ytd-pdg-comment-preview-renderer">\n  </span>\n</div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return V6w=F},{mode:2});var RQ$;var eD=function(){var F=_.n.apply(this,arguments)||this;F.selected=!1;return F};
_.k(eD,_.n);_.N=eD.prototype;_.N.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onKeyboardSelect","space:keydown":"onKeyboardSelect"}};
_.N.attached=function(){this.hostElement.setAttribute("tabindex","0");this.hostElement.setAttribute("role","radio")};
_.N.dataChanged=function(){this.data&&(_.Fm(this.hostElement).setAttribute("selectable","true"),this.data.chipColorArgb&&this.data.chipFontColorArgb&&_.V9(this.hostElement,{"--yt-pdg-super-vod-selectable-item-button-chip-background-color":_.XC(this.data.chipColorArgb),"--yt-pdg-super-vod-selectable-item-button-chip-font-color":_.XC(this.data.chipFontColorArgb)}),this.basePriceText=this.data.basePriceText,this.purchaseCommand=this.data.purchaseCommand)};
_.N.selectedChanged=function(){this.hostElement.setAttribute("aria-checked",this.selected.toString())};
_.N.onClick=function(){this.logClick()};
_.N.onKeyboardSelect=function(){_.hF(this.hostElement,"tap");this.onClick()};
_.N.logClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
eD.prototype.onClick=eD.prototype.onClick;eD.prototype.selectedChanged=eD.prototype.selectedChanged;eD.prototype.dataChanged=eD.prototype.dataChanged;_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],eD.prototype,"componentBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],eD.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.$5),_.Y("design:type",Object)],eD.prototype,"ironA11yKeysBehavior",void 0);
_.T([_.J(_.l1),_.Y("design:type",Object)],eD.prototype,"ironSelectableBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],eD.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Object)],eD.prototype,"shownThumbnail",void 0);_.T([_.O(),_.Y("design:type",Object)],eD.prototype,"basePriceText",void 0);_.T([_.O(),_.Y("design:type",Object)],eD.prototype,"purchaseCommand",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],eD.prototype,"selected",void 0);
_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],eD.prototype,"dataChanged",null);_.T([_.ea("selected"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],eD.prototype,"selectedChanged",null);_.T([_.R4("click"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],eD.prototype,"onClick",null);
eD=_.T([_.y({disableElementRegistration:!0,is:"ytd-pdg-super-vod-selectable-item-button-renderer"})],eD);
_.r(eD,"ytd-pdg-super-vod-selectable-item-button-renderer",function(){if(RQ$!==void 0)return RQ$;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-pdg-super-vod-selectable-item-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<span id="price" class="style-scope ytd-pdg-super-vod-selectable-item-button-renderer">[[getSimpleString(data.basePriceText)]]</span>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return RQ$=F},{mode:1});var Mk=function(){var F=_.n.apply(this,arguments)||this;F.selectedItemIndex=0;F.buyButtonDisabled=!1;return F};
_.k(Mk,_.n);_.N=Mk.prototype;
_.N.configureRendererStamper=function(){return{"data.commentPreview":{id:"comment-preview",mapping:{pdgCommentPreviewRenderer:{component:"ytd-pdg-comment-preview-renderer",properties:{currentCommentOptionIndex:"[[selectedItemIndex]]"}}}},"data.selectableItemButtons":{id:"selectable-items",mapping:{buttonRenderer:{component:"ytd-button-renderer"},superVodSelectableItemButtonRenderer:{component:"ytd-pdg-super-vod-selectable-item-button-renderer"}}},"data.colorSlider":{id:"slider",mapping:{pdgColorSliderRenderer:{component:"ytd-pdg-color-slider-renderer",
properties:{immediateValue:"[[selectedItemIndex]]"}}}}}};
_.N.onBuyButtonClick=function(){if(!this.buyButtonDisabled&&this.selectedItemIndex!==void 0){if(this.isColorSlider){var F;var W=(F=_.D(this.data.colorSlider,zLT))==null?void 0:F.notches[this.selectedItemIndex].purchaseCommand}else{var E;W=(E=_.D(this.data.selectableItemButtons[this.selectedItemIndex],BZ6))==null?void 0:E.purchaseCommand}if(W){F=_.D(W,_.Wop);F.productData||(F.productData={});var h;F.productData={pdgData:{commentMessageText:(h=this.commentPreviewRenderer)==null?void 0:h.getUserGeneratedCommentText()}};
_.hF(this.hostElement,"yt-pdg-buy-flow-selection-submitted");this.ytComponentBehavior.resolveCommand(W)}}};
_.N.dataChanged=function(){if(this.data){_.Oz.emojis.length===0&&(this.data.unicodeEmojisUrl&&_.DbM(_.Oz,this.data.unicodeEmojisUrl),this.data.customEmojis&&_.Oz.load(this.data.customEmojis));this.isColorSlider=!!this.data.colorSlider;var F;this.buyButtonDisabled=!((F=_.D(this.data.commentPreview,CE6))==null||!F.placeholderText);this.updatePriceSelectorStatus();var W;if((W=this.data)==null?0:W.defaultPriceTier)this.selectedItemIndex=this.data.defaultPriceTier||0;F=[];this.data.preloadImages&&(F=this.data.preloadImages);
F=F.map(function(E){return _.m_(E.thumbnails,1920)});
F=_.U(F);for(W=F.next();!W.done;W=F.next())(W=W.value)&&_.lrW(W).thenCatch(function(){_.OB(Error("kl"))})}};
_.N.superThanksSelectedTierEntityChanged=function(){var F;(this==null?void 0:(F=this.superThanksSelectedTierEntity)==null?void 0:F.index)!==void 0&&(this.selectedItemIndex=this.superThanksSelectedTierEntity.index)};
_.N.selectedItemIndexChanged=function(){this.commentPreviewRenderer&&(this.commentPreviewRenderer.currentCommentOptionIndex=this.selectedItemIndex)};
_.N.updatePriceSelectorStatus=function(){this.isColorSlider?(_.Z(this.hostElement).querySelector("#selectable-items").setAttribute("hidden","true"),_.Z(this.hostElement).querySelector("#slider").removeAttribute("hidden")):(_.Z(this.hostElement).querySelector("#selectable-items").removeAttribute("hidden"),_.Z(this.hostElement).querySelector("#slider").setAttribute("hidden","true"))};
_.N.closeBuyFlow=function(){_.dW(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"])};
_.N.onUserGeneratedContentChanged=function(){var F;this.buyButtonDisabled=!((F=this.commentPreviewRenderer)==null?0:F.getUserGeneratedCommentText())};
_.N.updateSelectedItemIndexFromBinding=function(F){this.selectedItemIndex=F.detail.value};
_.Sn.Object.defineProperties(Mk.prototype,{isDisclaimerTextShown:{configurable:!0,enumerable:!0,get:function(){var F;return!((F=this.data)==null||!F.disclaimerText)}}});
Mk.prototype.onUserGeneratedContentChanged=Mk.prototype.onUserGeneratedContentChanged;Mk.prototype.closeBuyFlow=Mk.prototype.closeBuyFlow;Mk.prototype.selectedItemIndexChanged=Mk.prototype.selectedItemIndexChanged;Mk.prototype.superThanksSelectedTierEntityChanged=Mk.prototype.superThanksSelectedTierEntityChanged;Mk.prototype.dataChanged=Mk.prototype.dataChanged;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Mk.prototype,"ytRendererBehavior",void 0);
_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],Mk.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],Mk.prototype,"ytComponentBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],Mk.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Object)],Mk.prototype,"selectedItemIndex",void 0);_.T([_.O(),_.Y("design:type",Boolean)],Mk.prototype,"isColorSlider",void 0);
_.T([_.O(),_.Y("design:type",Object)],Mk.prototype,"buyButtonDisabled",void 0);_.T([_.O({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:bnK}),_.Y("design:type",Object)],Mk.prototype,"superThanksSelectedTierEntity",void 0);_.T([_.gQ("ytd-pdg-comment-preview-renderer"),_.Y("design:type",Object)],Mk.prototype,"commentPreviewRenderer",void 0);_.T([_.J(_.am),_.Y("design:type",Object)],Mk.prototype,"ytdReduxBehavior",void 0);
_.T([_.Cz("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Mk.prototype,"dataChanged",null);_.T([_.ea("superThanksSelectedTierEntity"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Mk.prototype,"superThanksSelectedTierEntityChanged",null);_.T([_.ea("selectedItemIndex"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Mk.prototype,"selectedItemIndexChanged",null);
_.T([_.R4("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Mk.prototype,"closeBuyFlow",null);_.T([_.R4("ytd-pdg-user-generated-comment-changed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Mk.prototype,"onUserGeneratedContentChanged",null);_.T([_.a("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Mk.prototype,"isDisclaimerTextShown",null);
Mk=_.T([_.y({disableElementRegistration:!0,is:"yt-super-vod-buy-flow-content-renderer"})],Mk);
_.r(Mk,"yt-super-vod-buy-flow-content-renderer",function(){if(d_6!==void 0)return d_6;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-super-vod-buy-flow-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.description]]" class="style-scope yt-super-vod-buy-flow-content-renderer"></yt-formatted-string><div id="comment-preview" class="style-scope yt-super-vod-buy-flow-content-renderer"></div><div id="slider" class="style-scope yt-super-vod-buy-flow-content-renderer"></div><iron-selector id="selectable-items" role="radiogroup" selected="[[selectedItemIndex]]" selected-attribute="selected" on-selected-changed="updateSelectedItemIndexFromBinding" class="style-scope yt-super-vod-buy-flow-content-renderer"></iron-selector><div id="footer" class="style-scope yt-super-vod-buy-flow-content-renderer"><div id="cancel-button" class="style-scope yt-super-vod-buy-flow-content-renderer"></div><yt-formatted-string id="disclaimer-text" hidden="[[!isDisclaimerTextShown]]" text="[[data.disclaimerText]]" class="style-scope yt-super-vod-buy-flow-content-renderer"></yt-formatted-string><ytd-button-renderer id="buy-button" data="[[data.buyButton.buttonRenderer]]" disabled="[[buyButtonDisabled]]" on-click="onBuyButtonClick" class="style-scope yt-super-vod-buy-flow-content-renderer"></ytd-button-renderer></div>');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return d_6=F},{mode:1});var eQx;var gb=function(){var F=_.n.apply(this,arguments)||this;F.lottieAnimationRef={};return F};
_.k(gb,_.n);_.N=gb.prototype;_.N.created=function(){_.Y5.requestAvailability();this.hostElement.addEventListener("iron-overlay-opened",_.UO(this,this.onPopupIronOverlayOpened));this.ironOverlayBehavior.scrollAction="lock";this.ironOverlayBehavior.noCancelOnEscKey=!0;this.ironOverlayBehavior.noCancelOnOutsideClick=!0;this.ironOverlayBehavior.allowClickThrough=!1};
_.N.onPopupIronOverlayOpened=function(){this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData&&this.data.accessibility.accessibilityData.label&&_.hF(this.hostElement,"iron-announce",{text:this.data.accessibility.accessibilityData.label})};
_.N.detached=function(){this.autoCloseJobId&&_.P0.cancelJob(this.autoCloseJobId);this.hostElement.removeEventListener("iron-overlay-opened",_.UO(this,this.onPopupIronOverlayOpened))};
_.N.dataChanged=function(){var F=this;this.data&&this.data.autoCloseDelay&&(_.dW(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"]),this.data.lottie||(this.autoCloseJobId=_.Ed(_.P0,function(){F.closePopup()},(Number(this.data.autoCloseDelay.seconds)||0)*1E3)),this.data.lottieImageScalePercent&&this.data.lottie&&_.V9(this.hostElement,{"--ytd-desktop-image-overlay-scale-percent":this.data.lottieImageScalePercent+"%"}))};
_.N.onDOMLoadedLottie=function(){var F=this,W,E,h=Number((W=this.data)==null?void 0:(E=W.autoCloseDelay)==null?void 0:E.seconds)||0;this.fadeOutJobId=_.Ed(_.P0,function(){F.lottiePlayerEl.classList.add("fadeout")},(h-.25)*1E3);
this.autoCloseJobId=_.Ed(_.P0,function(){F.closePopup()},h*1E3)};
_.N.openPopup=function(){this.ironOverlayBehavior.open()};
_.N.closePopup=function(){this.ironOverlayBehavior.close();this.data&&(_.dW(this.hostElement,"yt-close-popup-action",["ytd-desktop-image-overlay-renderer"]),this.data.onCloseCommand&&_.Rj(this.hostElement,[this.data.onCloseCommand],this.hostElement),this.data.onCloseSurveyCommand&&_.WZ().resolve(_.EJ).resolveCommand(this.data.onCloseSurveyCommand,{form:{element:this.hostElement}}),this.autoCloseJobId&&_.P0.cancelJob(this.autoCloseJobId),this.fadeOutJobId&&_.P0.cancelJob(this.fadeOutJobId),this.lottiePlayerEl.classList.contains("fadeout")&&
this.lottiePlayerEl.classList.remove("fadeout"))};
_.N.maybeInitializeLottie=function(){if(this.hasLottieAnimation){var F,W;(F=this.lottieAnimationRef)==null||(W=F.lottieEl)==null||W.destroy();F=this.data.lottie;var E,h;this.lottiePlayerProps={animationRef:this.lottieAnimationRef,animationConfig:{name:F.url+"_"+Math.random(),path:F.url,autoplay:!0,loop:(h=(E=F.settings)==null?void 0:E.loop)!=null?h:!1,renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid meet"}},listeners:{DOMLoaded:this.onDOMLoadedLottie.bind(this)}}}};
_.Sn.Object.defineProperties(gb.prototype,{hasLottieAnimation:{configurable:!0,enumerable:!0,get:function(){var F,W;return!!((F=this.data)==null?0:(W=F.lottie)==null?0:W.url)}}});
gb.prototype.maybeInitializeLottie=gb.prototype.maybeInitializeLottie;gb.prototype.dataChanged=gb.prototype.dataChanged;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],gb.prototype,"rendererBehavior",void 0);_.T([_.J(_.my),_.Y("design:type",Object)],gb.prototype,"ironOverlayBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],gb.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Object)],gb.prototype,"lottiePlayerProps",void 0);
_.T([_.O(),_.Y("design:type",Object)],gb.prototype,"lottieAnimationRef",void 0);_.T([_.gQ("ytd-lottie-player"),_.Y("design:type",HTMLElement)],gb.prototype,"lottiePlayerEl",void 0);_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],gb.prototype,"dataChanged",null);_.T([_.a("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],gb.prototype,"hasLottieAnimation",null);
_.T([_.ea("data.lottie.url"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],gb.prototype,"maybeInitializeLottie",null);gb=_.T([_.y({disableElementRegistration:!0,is:"ytd-desktop-image-overlay-renderer"})],gb);
_.r(gb,"ytd-desktop-image-overlay-renderer",function(){if(eQx!==void 0)return eQx;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-desktop-image-overlay-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-desktop-image-overlay-renderer">\n  <yt-img-shadow hidden$="[[hasLottieAnimation]]" thumbnail="[[data.image]]" width="1920" class="style-scope ytd-desktop-image-overlay-renderer"></yt-img-shadow>\n  <ytd-lottie-player class-name="[[is]] lottie-player" data="[[lottiePlayerProps]]" hidden$="[[!hasLottieAnimation]]" class="style-scope ytd-desktop-image-overlay-renderer">\n</ytd-lottie-player></div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return eQx=F},{mode:1});var M6$;var QP=function(){return _.n.apply(this,arguments)||this};
_.k(QP,_.n);_.N=QP.prototype;_.N.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{pdgBuyFlowHeaderRenderer:{component:"yt-pdg-buy-flow-header-renderer"}}},"data.content":{id:"content",mapping:{superVodBuyFlowContentRenderer:{component:"yt-super-vod-buy-flow-content-renderer"}}}}};
_.N.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("tabIndex")||this.hostElement.setAttribute("tabIndex","0");this.hostElement.addEventListener("yt-popup-closed",_.UO(this,this.closePopup))};
_.N.detached=function(){this.hostElement.removeEventListener("yt-popup-closed",_.UO(this,this.closePopup))};
_.N.dataChanged=function(){_.Nc(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.data&&this.data.header&&_.D(this.data.header,QH6)&&(this.hasBackgroundBanner=!!_.D(this.data.header,QH6).backgroundBanner)};
_.N.handleBuyflowSelectionSubmitted=function(){this.hostElement.removeEventListener("yt-popup-closed",_.UO(this,this.closePopup))};
_.N.closePopup=function(){this.data&&this.data.onCloseCommand&&_.UT(this.hostElement,[this.data.onCloseCommand])};
QP.prototype.handleBuyflowSelectionSubmitted=QP.prototype.handleBuyflowSelectionSubmitted;QP.prototype.dataChanged=QP.prototype.dataChanged;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],QP.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],QP.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],QP.prototype,"data",void 0);
_.T([_.O({value:!0,reflectToAttribute:!0}),_.Y("design:type",Boolean)],QP.prototype,"hasBackgroundBanner",void 0);_.T([_.Cz("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],QP.prototype,"dataChanged",null);_.T([_.R4("yt-pdg-buy-flow-selection-submitted"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],QP.prototype,"handleBuyflowSelectionSubmitted",null);
QP=_.T([_.y({disableElementRegistration:!0,is:"ytd-pdg-buy-flow-renderer"})],QP);
_.r(QP,"ytd-pdg-buy-flow-renderer",function(){if(M6$!==void 0)return M6$;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-pdg-buy-flow-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-pdg-buy-flow-renderer"></div>\n<div id="content" class="style-scope ytd-pdg-buy-flow-renderer"></div>');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return M6$=F},{mode:1});var g6$;var zg=function(){var F=_.n.apply(this,arguments)||this;F.isOpen=!1;F.isPlaylistCreated=!1;return F};
_.k(zg,_.n);_.N=zg.prototype;_.N.reset=function(){this.isPlaylistCreated=this.isOpen=!1;this.nameInput.reset();this.privacyInput.reset()};
_.N.onOpenTap=function(){this.isOpen=!0;this.isPlaylistCreated=!1;this.nameInput.focusTextInput();_.hF(this.hostElement,"yt-refit")};
_.N.onCreateTap=function(){var F=this;!this.isPlaylistCreated&&this.nameInput.validate()&&(_.UT(this.hostElement,[this.data.serviceEndpoint,{create_playlist_title:this.nameInput.value,create_playlist_privacy_status:this.privacyInput.value},{onSuccess:function(W,E){if(!_.c("killswitch_ep_in_create_playlist_response")&&(E==null?0:E.actions))for(W=_.U(E.actions),E=W.next();!E.done;E=W.next())E=E.value,_.D(E,_.nk)&&F.ytComponentBehavior.resolveCommand(E)}}]),this.isPlaylistCreated=!0)};
_.N.onKeydown=function(F){if(F.keyCode===13)this.onCreateTap()};
_.N.onServiceRequestCompleted=function(F){F.stopPropagation();_.dW(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.N.computePrivacyBadge=function(F){return F?[{metadataBadgeRenderer:F}]:[]};
zg.prototype.onServiceRequestCompleted=zg.prototype.onServiceRequestCompleted;zg.prototype.onKeydown=zg.prototype.onKeydown;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],zg.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],zg.prototype,"ytComponentBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],zg.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Object)],zg.prototype,"isOpen",void 0);
_.T([_.O(),_.Y("design:type",Object)],zg.prototype,"isPlaylistCreated",void 0);_.T([_.O({value:{REQUIRED_LABEL:_.CY("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.CY("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.Y("design:type",Object)],zg.prototype,"addToStrings",void 0);_.T([_.O({computed:"computePrivacyBadge(data.privacyInput.metadataBadgeRenderer)"}),_.Y("design:type",Array)],zg.prototype,"privacyBadge",void 0);
_.T([_.gQ("#privacy-input"),_.Y("design:type",Object)],zg.prototype,"privacyInput",void 0);_.T([_.gQ("#name-input"),_.Y("design:type",Object)],zg.prototype,"nameInput",void 0);_.T([_.R4("keydown"),_.Y("design:type",Function),_.Y("design:paramtypes",[KeyboardEvent]),_.Y("design:returntype")],zg.prototype,"onKeydown",null);_.T([_.R4("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],zg.prototype,"onServiceRequestCompleted",null);
zg=_.T([_.y({is:"ytd-add-to-playlist-create-renderer",disableElementRegistration:!0})],zg);
_.r(zg,"ytd-add-to-playlist-create-renderer",function(){if(g6$!==void 0)return g6$;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-add-to-playlist-create-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-compact-link-renderer data="[[data.openCreateLink.compactLinkRenderer]]" hidden="[[isOpen]]" on-tap="onOpenTap" class="style-scope ytd-add-to-playlist-create-renderer">\n</ytd-compact-link-renderer>\n<div id="create-playlist-form" hidden="[[!isOpen]]" class="style-scope ytd-add-to-playlist-create-renderer">\n  <yt-text-input-form-field-renderer id="name-input" data="[[data.nameInput.textInputFormFieldRenderer]]" required-error-message="[[addToStrings.REQUIRED_LABEL]]" class="style-scope ytd-add-to-playlist-create-renderer">\n  </yt-text-input-form-field-renderer>\n  <ytd-badge-supported-renderer badges="[[privacyBadge]]" hidden="[[!data.privacyInput.metadataBadgeRenderer]]" class="style-scope ytd-add-to-playlist-create-renderer">\n  </ytd-badge-supported-renderer>\n  <ytd-dropdown-renderer id="privacy-input" data="[[data.privacyInput.dropdownRenderer]]" hidden="[[!data.privacyInput.dropdownRenderer]]" class="style-scope ytd-add-to-playlist-create-renderer">\n  </ytd-dropdown-renderer>\n  <ytd-button-renderer id="privacy-button" data="[[data.privacyInput.buttonRenderer]]" hidden="[[!data.privacyInput.buttonRenderer]]" class="style-scope ytd-add-to-playlist-create-renderer">\n  </ytd-button-renderer>\n  <div id="actions" class="style-scope ytd-add-to-playlist-create-renderer">\n    <ytd-button-renderer data="[[data.createAction.buttonRenderer]]" on-tap="onCreateTap" class="style-scope ytd-add-to-playlist-create-renderer">\n    </ytd-button-renderer>\n  </div>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return g6$=F},{mode:1});var Q8K;var zQg;var tx=function(){var F=_.n.apply(this,arguments)||this;F.transferState="TRANSFER_STATE_UNKNOWN";return F};
_.k(tx,_.n);tx.prototype.dataChanged=function(){this.data&&(this.checkbox.checked=this.data.containsSelectedVideos==="ALL")};
tx.prototype.onCheckboxChange=function(F){var W=this;this.data&&_.OO(this,"yt-playlist-checkbox-changed",function(){var E=_.oo(F).checked?W.data.addToPlaylistServiceEndpoint:W.data.removeFromPlaylistServiceEndpoint;E&&_.WZ().resolve(_.EJ).resolveCommand(E,{form:{element:W.hostElement}});_.c("dl_playlist_killswitch")||W.transferState!=="TRANSFER_STATE_UNKNOWN"&&W.transferState!=="TRANSFER_STATE_FAILED"&&W.ytComponentBehavior.resolveCommand({offlinePlaylistEndpoint:{playlistId:W.data.playlistId,action:"ACTION_SYNC"}})},
100)};
tx.prototype.computeIconType=function(F){return F?"yt-icons:"+F.toLowerCase():null};
tx.prototype.dataChanged=tx.prototype.dataChanged;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],tx.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],tx.prototype,"data",void 0);_.T([_.J(_.am),_.Y("design:type",Object)],tx.prototype,"ytdReduxBehavior",void 0);_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],tx.prototype,"ytComponentBehavior",void 0);_.T([_.gQ("#checkbox"),_.Y("design:type",HTMLInputElement)],tx.prototype,"checkbox",void 0);
_.T([_.O({selector:_.fV,selectorArgs:["data.playlistId"]}),_.Y("design:type",String)],tx.prototype,"transferState",void 0);_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],tx.prototype,"dataChanged",null);tx=_.T([_.y({is:"ytd-playlist-add-to-option-renderer",disableElementRegistration:!0})],tx);
_.r(tx,"ytd-playlist-add-to-option-renderer",function(){if(zQg!==void 0)return zQg;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-add-to-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-checkbox id="checkbox" checked="[[checked_]]" on-change="onCheckboxChange" class="style-scope ytd-playlist-add-to-option-renderer">\n  <div id="checkbox-container" class="style-scope ytd-playlist-add-to-option-renderer">\n    <div id="checkbox-label" class="style-scope ytd-playlist-add-to-option-renderer">\n      <yt-formatted-string id="label" class="checkbox-height style-scope ytd-playlist-add-to-option-renderer" ellipsis-truncate="" text="[[data.title]]">\n      </yt-formatted-string>\n      <yt-formatted-string id="byline" ellipsis-truncate="" link-inherit-color="" text="[[data.shortBylineText]]" class="style-scope ytd-playlist-add-to-option-renderer">\n      </yt-formatted-string>\n    </div>\n    <yt-icon icon="[[computeIconType(data.privacyIcon.iconType)]]" size="18" class="style-scope ytd-playlist-add-to-option-renderer"></yt-icon>\n  </div>\n</tp-yt-paper-checkbox>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return zQg=F},{mode:1});_.ht(jxg);_.Nj(jxg,"ytd-menu-title-renderer",{propNames:["data"]});var CF=function(){var F=_.n.apply(this,arguments)||this;F.addToStrings={ADD_TO_DROPDOWN_LABEL:_.CY("ADD_TO_DROPDOWN_LABEL",void 0,"Save to...")};F.closeButtonAriaLabel=_.CY("SBOX_INAPPROPRIATE_CANCEL");F.dialog=_.c("desktop_add_to_playlist_renderer_dialog_popup");return F};
_.k(CF,_.n);_.N=CF.prototype;_.N.configureRendererStamper=function(){return{"data.playlists":{id:"playlists",mapping:{playlistAddToOptionRenderer:"ytd-playlist-add-to-option-renderer"}},"data.actions":{id:"actions",mapping:{addToPlaylistCreateRenderer:"ytd-add-to-playlist-create-renderer",buttonRenderer:"ytd-button-renderer"}}}};
_.N.onPopupOpened=function(){_.Wm(this.playlists,"scrollable",!0);this.createRenderer&&this.createRenderer.reset()};
_.N.onPopupClosed=function(){_.Wm(this.playlists,"scrollable",!1)};
_.N.computeAriaLabel=function(){var F;if(this==null?0:(F=this.data)==null?0:F.actions){F=_.U(this.data.actions);for(var W=F.next();!W.done;W=F.next())if(W=W.value,W.menuTitleRenderer)return _.Yr(W.menuTitleRenderer.title)}};
_.N.onTapClose=function(){_.dW(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.Sn.Object.defineProperties(CF.prototype,{menuTitleRenderer:{configurable:!0,enumerable:!0,get:function(){var F;if(this==null?0:(F=this.data)==null?0:F.actions){F=_.U(this.data.actions);for(var W=F.next();!W.done;W=F.next())if(W=W.value,W.menuTitleRenderer)return W.menuTitleRenderer}return!1}}});
CF.prototype.onPopupClosed=CF.prototype.onPopupClosed;CF.prototype.onPopupOpened=CF.prototype.onPopupOpened;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],CF.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.B$.YtEventForwardingBehavior),_.Y("design:type",Object)],CF.prototype,"ytEventForwardingBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],CF.prototype,"ytRendererStamperBehavior",void 0);
_.T([_.O(),_.Y("design:type",Object)],CF.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Object)],CF.prototype,"addToStrings",void 0);_.T([_.O({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.Y("design:type",String)],CF.prototype,"ariaLabel",void 0);_.T([_.O(),_.Y("design:type",String)],CF.prototype,"closeButtonAriaLabel",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],CF.prototype,"dialog",void 0);
_.T([_.gQ("#playlists"),_.Y("design:type",HTMLElement)],CF.prototype,"playlists",void 0);_.T([_.gQ("ytd-add-to-playlist-create-renderer"),_.Y("design:type",Object)],CF.prototype,"createRenderer",void 0);_.T([_.a("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],CF.prototype,"menuTitleRenderer",null);_.T([_.R4("yt-popup-opened"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],CF.prototype,"onPopupOpened",null);
_.T([_.R4("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],CF.prototype,"onPopupClosed",null);CF=_.T([_.y({is:"ytd-add-to-playlist-renderer",disableElementRegistration:!0})],CF);
_.r(CF,"ytd-add-to-playlist-renderer",function(){if(Q8K!==void 0)return Q8K;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-add-to-playlist-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-add-to-playlist-renderer">\n  <template is="dom-if" if="[[menuTitleRenderer]]" class="style-scope ytd-add-to-playlist-renderer">\n    <ytd-menu-title-renderer data="[[menuTitleRenderer]]" class="style-scope ytd-add-to-playlist-renderer"></ytd-menu-title-renderer>\n  </template>\n  <div hidden="[[menuTitleRenderer]]" id="title" class="style-scope ytd-add-to-playlist-renderer">\n    [[addToStrings.ADD_TO_DROPDOWN_LABEL]]\n  </div>\n  <yt-icon-button id="close-button" hidden="[[!dialog]]" label="[[closeButtonAriaLabel]]" on-tap="onTapClose" class="style-scope ytd-add-to-playlist-renderer">\n    <yt-icon icon="close" class="style-scope ytd-add-to-playlist-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n<div id="playlists" class="style-scope ytd-add-to-playlist-renderer"></div>\n<div id="actions" class="style-scope ytd-add-to-playlist-renderer"></div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return Q8K=F},{mode:1});var t6O;var BW=function(){var F=_.n.apply(this,arguments)||this;F.isPlaylistEditComplete=!1;F.isCollabEngagementDisabled=!1;F.closeButtonAriaLabel=_.CY("SBOX_INAPPROPRIATE_CANCEL");F.saveButton={title:_.CY("SAVE_PLAYLIST",void 0,"Save"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",state:"BUTTON_VIEW_MODEL_STATE_DISABLED"};F.onValueChanged=function(){F.updateSaveButtonState();F.computeCollabEngagementDisabled()};
return F};
_.k(BW,_.n);_.N=BW.prototype;_.N.attached=function(){this.JSC$18229_scroller&&(this.JSC$18229_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18229_scroller.attached&&typeof this.JSC$18229_scroller.attached==="function"&&this.JSC$18229_scroller.attached())};
_.N.reset=function(){this.isPlaylistEditComplete=!1;this.nameInput.reset();this.descriptionInput.reset();this.computeCollabEngagementDisabled();this.updateSaveButtonState()};
_.N.onPopupClosed=function(){this.reset()};
_.N.close=function(){_.dW(this.hostElement,"yt-close-popup-action",["ytd-playlist-settings-editor-renderer"])};
_.N.onClickSave=function(){var F=this;if(!this.isPlaylistEditComplete&&this.nameInput.validate()&&this.descriptionInput.validate()){var W=[];this.nameInput.value!==null&&W.push({action:"ACTION_SET_PLAYLIST_NAME",playlistName:this.nameInput.value});this.descriptionInput.value!==null&&W.push({action:"ACTION_SET_PLAYLIST_DESCRIPTION",playlistDescription:this.descriptionInput.value});if(this.privacyInput.value!==null){var E=Number(this.privacyInput.value);isNaN(E)||W.push({action:"ACTION_SET_PLAYLIST_PRIVACY",
playlistPrivacy:E})}this.votingInput.value!==null&&(E=this.votingInput.value)&&W.push({action:"ACTION_SET_ALLOW_ITEM_VOTE",itemVotePermission:E});if(W.length>0){var h;_.D((h=this.data)==null?void 0:h.updateSettingsEndpoint,_.lE).actions=W;var d;if((d=this.data)==null?0:d.updateSettingsEndpoint)this.ytComponentBehavior.resolveCommand(this.data.updateSettingsEndpoint,{commandController:{onSuccess:function(){F.close()}}}),this.isPlaylistEditComplete=!0}}};
_.N.computePrivacyBadge=function(F){return F?[{metadataBadgeRenderer:F}]:[]};
_.N.computeEditorData=function(F){var W,E;return F==null?void 0:(W=F.sections)==null?void 0:(E=W[0])==null?void 0:E.playlistSettingsEditorCasualSectionRenderer};
_.N.computeCollabEngagementDisabled=function(){this.isCollabEngagementDisabled=this.privacyInput.value===0};
_.N.configureRendererStamper=function(){return{"editorData.thumbnail":{id:"thumbnail",mapping:{playlistVideoThumbnailRenderer:{component:"ytd-playlist-video-thumbnail-renderer",params:{width:9999}},playlistCustomThumbnailRenderer:{component:"ytd-playlist-custom-thumbnail-renderer",params:{size:312}}}}}};
_.N.computeAriaLabel=function(){var F,W,E,h=(F=this.data)==null?void 0:(W=F.sections)==null?void 0:(E=W[0])==null?void 0:E.playlistSettingsEditorCasualSectionRenderer;return _.Yr(h==null?void 0:h.title)};
_.N.updateSaveButtonState=function(){this.isFormChanged()&&this.isFormValid()?this.set("saveButton",Object.assign({},this.saveButton,{state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"})):this.set("saveButton",Object.assign({},this.saveButton,{state:"BUTTON_VIEW_MODEL_STATE_DISABLED"}))};
_.N.isFormValid=function(){return this.nameInput.validate()&&this.descriptionInput.validate()};
_.N.isFormChanged=function(){return this.isNameChanged()||this.isDescriptionChanged()||this.isPrivacyChanged()||this.isVotingChanged()};
_.N.isNameChanged=function(){var F,W,E;return(((F=this.editorData)==null?void 0:(W=F.name)==null?void 0:(E=W.textInputFormFieldRenderer)==null?void 0:E.value)||"")!==(this.nameInput.value||"")};
_.N.isDescriptionChanged=function(){var F,W,E;return(((F=this.editorData)==null?void 0:(W=F.description)==null?void 0:(E=W.textInputFormFieldRenderer)==null?void 0:E.value)||"")!==(this.descriptionInput.value||"")};
_.N.isPrivacyChanged=function(){var F,W,E,h,d,V,R,M;return((R=(F=this.editorData)==null?void 0:(W=F.privacy)==null?void 0:(E=W.dropdownFormFieldRenderer)==null?void 0:(h=E.dropdown)==null?void 0:(d=h.dropdownRenderer)==null?void 0:(V=d.entries)==null?void 0:V.find(function(g){var t;return g==null?void 0:(t=g.privacyDropdownItemRenderer)==null?void 0:t.isSelected}))==null?void 0:(M=R.privacyDropdownItemRenderer)==null?void 0:M.int32Value)!==this.privacyInput.value};
_.N.isVotingChanged=function(){var F,W,E,h,d,V,R,M;return((R=(F=this.editorData)==null?void 0:(W=F.voting)==null?void 0:(E=W.dropdownFormFieldRenderer)==null?void 0:(h=E.dropdown)==null?void 0:(d=h.dropdownRenderer)==null?void 0:(V=d.entries)==null?void 0:V.find(function(g){var t;return g==null?void 0:(t=g.privacyDropdownItemRenderer)==null?void 0:t.isSelected}))==null?void 0:(M=R.privacyDropdownItemRenderer)==null?void 0:M.int32Value)!==this.votingInput.value};
BW.prototype.onPopupClosed=BW.prototype.onPopupClosed;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],BW.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],BW.prototype,"ytComponentBehavior",void 0);_.T([_.J(_.B$.YtEventForwardingBehavior),_.Y("design:type",Object)],BW.prototype,"ytEventForwardingBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],BW.prototype,"ytRendererStamperBehavior",void 0);
_.T([_.O(),_.Y("design:type",Object)],BW.prototype,"data",void 0);_.T([_.O({computed:"computePrivacyBadge(editorData.privacy.metadataBadgeRenderer)"}),_.Y("design:type",Array)],BW.prototype,"privacyBadge",void 0);_.T([_.O({computed:"computeEditorData(data)"}),_.Y("design:type",Object)],BW.prototype,"editorData",void 0);_.T([_.O(),_.Y("design:type",Object)],BW.prototype,"isPlaylistEditComplete",void 0);_.T([_.O(),_.Y("design:type",Object)],BW.prototype,"isCollabEngagementDisabled",void 0);
_.T([_.O({value:{REQUIRED_LABEL:_.CY("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.CY("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.Y("design:type",Object)],BW.prototype,"addToStrings",void 0);_.T([_.O({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.Y("design:type",String)],BW.prototype,"ariaLabel",void 0);_.T([_.O(),_.Y("design:type",String)],BW.prototype,"closeButtonAriaLabel",void 0);
_.T([_.O(),_.Y("design:type",Object)],BW.prototype,"saveButton",void 0);_.T([_.gQ("#name-input"),_.Y("design:type",Object)],BW.prototype,"nameInput",void 0);_.T([_.gQ("#description-input"),_.Y("design:type",Object)],BW.prototype,"descriptionInput",void 0);_.T([_.gQ("#privacy-input"),_.Y("design:type",Object)],BW.prototype,"privacyInput",void 0);_.T([_.gQ("#voting-input"),_.Y("design:type",Object)],BW.prototype,"votingInput",void 0);
_.T([_.gQ("#scroller"),_.Y("design:type",Object)],BW.prototype,"JSC$18229_scroller",void 0);_.T([_.R4("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],BW.prototype,"onPopupClosed",null);_.T([_.O(),_.Y("design:type",Object)],BW.prototype,"onValueChanged",void 0);BW=_.T([_.y({is:"ytd-playlist-settings-editor-renderer",disableElementRegistration:!0})],BW);
_.r(BW,"ytd-playlist-settings-editor-renderer",function(){if(t6O===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-settings-editor-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-playlist-settings-editor-renderer">\n  <div id="header-title" class="style-scope ytd-playlist-settings-editor-renderer">\n    <yt-formatted-string text="[[editorData.title]]" class="style-scope ytd-playlist-settings-editor-renderer"></yt-formatted-string>\n  </div>\n  <yt-icon-button id="close-button" label="[[closeButtonAriaLabel]]" on-click="close" class="style-scope ytd-playlist-settings-editor-renderer">\n    <yt-icon icon="close" class="style-scope ytd-playlist-settings-editor-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-playlist-settings-editor-renderer">\n  <div id="content" class="style-scope ytd-playlist-settings-editor-renderer">\n    <div id="thumbnail" class="style-scope ytd-playlist-settings-editor-renderer"></div>\n    <div id="edit-playlist-form" class="style-scope ytd-playlist-settings-editor-renderer">\n      <yt-text-input-form-field-renderer id="name-input" data="[[editorData.name.textInputFormFieldRenderer]]" disabled="[[editorData.name.textInputFormFieldRenderer.disabled]]" on-value-changed="[[onValueChanged]]" class="style-scope ytd-playlist-settings-editor-renderer">\n      </yt-text-input-form-field-renderer>\n      <yt-text-input-form-field-renderer id="description-input" data="[[editorData.description.textInputFormFieldRenderer]]" disabled="[[editorData.name.textInputFormFieldRenderer.disabled]]" on-value-changed="[[onValueChanged]]" class="style-scope ytd-playlist-settings-editor-renderer">\n      </yt-text-input-form-field-renderer>\n      <ytd-badge-supported-renderer badges="[[privacyBadge]]" hidden="[[!editorData.privacy.metadataBadgeRenderer]]" class="style-scope ytd-playlist-settings-editor-renderer">\n      </ytd-badge-supported-renderer>\n      <ytd-dropdown-renderer id="privacy-input" data="[[editorData.privacy.dropdownFormFieldRenderer.dropdown.dropdownRenderer]]" hidden="[[!editorData.privacy]]" on-value-changed="onValueChanged" class="style-scope ytd-playlist-settings-editor-renderer">\n      </ytd-dropdown-renderer>\n      <ytd-dropdown-renderer id="voting-input" data="[[editorData.voting.dropdownFormFieldRenderer.dropdown.dropdownRenderer]]" disabled="[[isCollabEngagementDisabled]]" hidden="[[!editorData.voting]]" on-value-changed="onValueChanged" class="style-scope ytd-playlist-settings-editor-renderer">\n      </ytd-dropdown-renderer>\n      <div id="collaborate" class="style-scope ytd-playlist-settings-editor-renderer">\n        <yt-list-item-view-model data="[[editorData.collaborate.listItemViewModel]]" disabled="[[isCollabEngagementDisabled]]" hidden$="[[!editorData.collaborate]]" class="style-scope ytd-playlist-settings-editor-renderer"></yt-list-item-view-model>\n      </div>\n    </div>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n<div id="actions" class="style-scope ytd-playlist-settings-editor-renderer">\n  <yt-button-view-model data="[[saveButton]]" scoping-class-name="[[is]]" on-click="onClickSave" class="style-scope ytd-playlist-settings-editor-renderer">\n  </yt-button-view-model>\n</div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);t6O=F}F=t6O;return F},{mode:1});var Cr8;_.Hr("itemSectionRenderer","redCancelSurveyRenderer","ytd-red-cancel-survey-renderer");var vW=function(){return _.n.apply(this,arguments)||this};
_.k(vW,_.n);_.N=vW.prototype;_.N.configureRendererStamper=function(){return{"data.nextButton":{id:"next-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-confirm":!0}}}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",classListBinding:"[[buttonClass_]]",attributes:{"dialog-dismiss":!0}}}}}};
_.N.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.N.dataChanged=function(){switch(this.get("data.singleOptions.preselectMode")){case "SINGLE_OPTION_PRESELECT_MODE_LAST":this.selectedResponseIndex=this.get("data.singleOptions.styles").length-1;break;default:this.selectedResponseIndex=void 0}var F=this.get("data.nextButton.buttonRenderer.navigationEndpoint");F&&(this.nextNavigationEndpoint=F,this.set("data.nextButton.buttonRenderer.navigationEndpoint",void 0))};
_.N.onSelectedResponseIndexChange=function(){if(this.get("data.nextButton.buttonRenderer")!=null){switch(this.get("data.submissionMode")){case "SURVEY_SUBMISSION_MODE_ONE_SELECTED_OPTION":this.set("data.nextButton.buttonRenderer.isDisabled",this.selectedResponseIndex===void 0);break;default:this.set("data.nextButton.buttonRenderer.isDisabled",!1)}if(this.selectedResponseIndex!=null){var F={feedbackTokens:[this.get(["data.singleOptions.styles",this.selectedResponseIndex]).radioButtonSurveyOptionRenderer.submissionEndpoint.feedbackEndpoint.feedbackToken]};
this.set("nextNavigationEndpoint.confirmDialogEndpoint.content.confirmDialogRenderer.confirmButton.buttonRenderer.serviceEndpoint.ypcCancelRecurrenceEndpoint.feedbackData",F)}}};
_.N.onPopupOpened=function(F){F.detail!==this&&F.detail!==this.hostElement||!_.c("enable_premium_voluntary_pause")||_.dW(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"])};
_.N.onNextButtonTap=function(){var F=this.nextNavigationEndpoint&&this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.nextNavigationEndpoint);F&&this.ytdOpenPopupBehavior.openPopup(F)};
_.N.updateSelectedResponseIndexFromBinding=function(F){this.selectedResponseIndex=F.detail.value};
vW.prototype.onPopupOpened=vW.prototype.onPopupOpened;vW.prototype.onSelectedResponseIndexChange=vW.prototype.onSelectedResponseIndexChange;vW.prototype.dataChanged=vW.prototype.dataChanged;_.T([_.J(_.Gf),_.Y("design:type",Object)],vW.prototype,"ytdOpenPopupBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],vW.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],vW.prototype,"ytRendererstamperBehavior",void 0);
_.T([_.O(),_.Y("design:type",Object)],vW.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Number)],vW.prototype,"selectedResponseIndex",void 0);_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],vW.prototype,"dataChanged",null);_.T([_.ea("selectedResponseIndex"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],vW.prototype,"onSelectedResponseIndexChange",null);
_.T([_.R4("yt-popup-opened"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],vW.prototype,"onPopupOpened",null);vW=_.T([_.y({is:"ytd-red-cancel-survey-renderer",disableElementRegistration:!0})],vW);
_.r(vW,"ytd-red-cancel-survey-renderer",function(){if(Cr8!==void 0)return Cr8;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-red-cancel-survey-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-red-cancel-survey-renderer">\n  <div id="question" class="style-scope ytd-red-cancel-survey-renderer">[[getSimpleString(data.question)]]</div>\n  <tp-yt-paper-radio-group id="responses" selected="[[selectedResponseIndex]]" on-selected-changed="updateSelectedResponseIndexFromBinding" class="style-scope ytd-red-cancel-survey-renderer">\n    <template is="dom-repeat" items="[[data.singleOptions.styles]]" class="style-scope ytd-red-cancel-survey-renderer">\n      <tp-yt-paper-radio-button name="[[index]]" class="style-scope ytd-red-cancel-survey-renderer">\n        [[getSimpleString(item.radioButtonSurveyOptionRenderer.option)]]\n      </tp-yt-paper-radio-button>\n    </template>\n  </tp-yt-paper-radio-group>\n</div>\n<div class="buttons style-scope ytd-red-cancel-survey-renderer">\n  <div id="dismiss-button" class="style-scope ytd-red-cancel-survey-renderer"></div>\n  <div id="next-button" on-click="onNextButtonTap" class="style-scope ytd-red-cancel-survey-renderer"></div>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return Cr8=F},{mode:1});var Bqw;var Ib=function(){var F=_.n.apply(this,arguments)||this;F.closeButtonAriaLabel=_.CY("SBOX_INAPPROPRIATE_CANCEL");return F};
_.k(Ib,_.n);Ib.prototype.configureRendererStamper=function(){return{"data.groups":{id:"options",mapping:{searchFilterGroupRenderer:{component:"ytd-search-filter-group-renderer"}}}}};
Ib.prototype.onClickClose=function(){_.dW(this.hostElement,"yt-close-popup-action",["ytd-search-filter-options-dialog-renderer"])};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Ib.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],Ib.prototype,"rendererStamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],Ib.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",String)],Ib.prototype,"closeButtonAriaLabel",void 0);Ib=_.T([_.y({is:"ytd-search-filter-options-dialog-renderer",disableElementRegistration:!0})],Ib);
_.r(Ib,"ytd-search-filter-options-dialog-renderer",function(){if(Bqw!==void 0)return Bqw;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-filter-options-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-search-filter-options-dialog-renderer">\n  <div id="title" class="style-scope ytd-search-filter-options-dialog-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-search-filter-options-dialog-renderer"></yt-formatted-string>\n  </div>\n  <yt-icon-button id="close-button" label="[[closeButtonAriaLabel]]" on-click="onClickClose" class="style-scope ytd-search-filter-options-dialog-renderer">\n    <yt-icon icon="close" class="style-scope ytd-search-filter-options-dialog-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n<div id="options" class="style-scope ytd-search-filter-options-dialog-renderer"></div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return Bqw=F},{mode:1});var v6g;var TRN=function(){return function(F){F=F.availabilityType;return F===void 0||F==="OFFLINEABILITY_AVAILABILITY_TYPE_UNKNOWN"||F==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?!0:!1}};var cW=function(){var F=_.n.apply(this,arguments)||this;F.qualityOptions=[];F.upsellOptions=[];F.showUpsellSection=!1;F.darkerDarkTheme=_.c("web_darker_dark_theme");F.rememberSettingsChecked=!1;return F};
_.k(cW,_.n);_.N=cW.prototype;_.N.configureRendererStamper=function(){return{qualityOptions:{id:"quality-options",mapping:{settingsRadioOptionRenderer:{component:"ytd-settings-radio-option-renderer",noInjection:!0}}},upsellOptions:{id:"upsell-options",mapping:{settingsRadioOptionRenderer:{component:"ytd-settings-radio-option-renderer",noInjection:!0}}}}};
_.N.dataChanged=function(){this.updateRememberString();this.updateQualityOptions()};
_.N.updateQualityOptions=function(){if(this.formats===void 0)_.dW(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);else{var F=[],W=[];this.showUpsellSection=!1;for(var E=_.U(this.formats),h=E.next();!h.done;h=E.next())(h=h.value)&&(h.availabilityType==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?W.push(h):F.push(h));F.length&&(this.qualityOptions=rEg(F));W.length&&(this.showUpsellSection=!0,this.upsellOptions=rEg(W))}};
_.N.updateRememberString=function(){if(this.downloadQualityPickerEntity)var F=this.downloadQualityPickerEntity.rememberSettingString;else if(this.selectedUpsellQuality){var W;F=(W=this.data)==null?void 0:W.premiumRememberSettingString}else{var E;F=(E=this.data)==null?void 0:E.rememberSettingString}F=F===void 0?_.CY("REMEMBER_MY_SETTINGS",void 0,"Remember my settings"):F;this.rememberSettingsCheckboxRenderer={title:_.Wz(F),disabled:!1}};
_.N.rememberSettingsCheckedChanged=function(){if(this.onRememberSettingsCheckedChanged)this.onRememberSettingsCheckedChanged(this.rememberSettingsCheckbox.checked)};
_.Sn.Object.defineProperties(cW.prototype,{formats:{configurable:!0,enumerable:!0,get:function(){var F;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(F=this.data)==null?void 0:F.qualityFormats}}});
cW.prototype.updateRememberString=cW.prototype.updateRememberString;cW.prototype.updateQualityOptions=cW.prototype.updateQualityOptions;cW.prototype.dataChanged=cW.prototype.dataChanged;_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],cW.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],cW.prototype,"ytComponentBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],cW.prototype,"data",void 0);
_.T([_.J(_.am),_.Y("design:type",Object)],cW.prototype,"ytdReduxBehavior",void 0);_.T([_.O(),_.Y("design:type",Boolean)],cW.prototype,"selectedUpsellQuality",void 0);_.T([_.O({computed:"computeIcon_(data.premiumIcon)",value:""}),_.Y("design:type",String)],cW.prototype,"premiumIcon",void 0);_.T([_.O({selector:JHw,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.Y("design:type",Object)],cW.prototype,"downloadQualityPickerEntity",void 0);
_.T([_.O(),_.Y("design:type",Array)],cW.prototype,"qualityOptions",void 0);_.T([_.O(),_.Y("design:type",Array)],cW.prototype,"upsellOptions",void 0);_.T([_.O(),_.Y("design:type",Object)],cW.prototype,"showUpsellSection",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],cW.prototype,"darkerDarkTheme",void 0);_.T([_.O(),_.Y("design:type",Object)],cW.prototype,"rememberSettingsCheckboxRenderer",void 0);
_.T([_.gQ("#remember-settings"),_.Y("design:type",HTMLInputElement)],cW.prototype,"rememberSettingsCheckbox",void 0);_.T([_.O(),_.Y("design:type",Object)],cW.prototype,"rememberSettingsChecked",void 0);_.T([_.O(),_.Y("design:type",Function)],cW.prototype,"onRememberSettingsCheckedChanged",void 0);_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],cW.prototype,"dataChanged",null);
_.T([_.ea("downloadQualityPickerEntity"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],cW.prototype,"updateQualityOptions",null);_.T([_.ea("selectedUpsellQuality"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],cW.prototype,"updateRememberString",null);cW=_.T([_.y({is:"ytd-download-quality-selector-content",disableElementRegistration:!0})],cW);
_.r(cW,"ytd-download-quality-selector-content",function(){if(v6g!==void 0)return v6g;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-download-quality-selector-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="quality-options" class="style-scope ytd-download-quality-selector-content"></div>\n<div id="upsell-section" hidden="[[!showUpsellSection]]" class="style-scope ytd-download-quality-selector-content">\n    <yt-icon id="premium-icon" icon="[[premiumIcon]]" class="style-scope ytd-download-quality-selector-content"></yt-icon>\n    <yt-formatted-string id="premium-description" text="[[data.premiumDescription]]" class="style-scope ytd-download-quality-selector-content"></yt-formatted-string>\n    <div id="upsell-options" class="style-scope ytd-download-quality-selector-content"></div>\n</div>\n<ytd-settings-checkbox-renderer id="remember-settings" data="[[rememberSettingsCheckboxRenderer]]" on-click="rememberSettingsCheckedChanged" class="style-scope ytd-download-quality-selector-content">\n</ytd-settings-checkbox-renderer>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return v6g=F},{mode:1});var IMK;var Dl=function(){var F=_.n.apply(this,arguments)||this;F.selectedUpsellQuality=!1;F.qualityOptions=[];F.darkerDarkTheme=_.c("web_darker_dark_theme");F.useUpsellDismissAlternate=_.c("use_not_now_dl_upsell_dismiss_cta");F.shouldShowAlternateUpsellDimiss=!1;F.rememberSettings=!1;F.rememberSettingsChecked=!1;F.actionMap={"yt-select-settings-radio-option":"onQualityOptionsSelect"};F.rememberSettingsCheckedChanged=function(W){F.rememberSettingsChecked=W};
return F};
_.k(Dl,_.n);_.N=Dl.prototype;
_.N.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.rememberSettingsCheckedChanged(!1);this.downloadButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.Wz(_.CY("DOWNLOAD",void 0,"Download")),isDisabled:!0};this.upsellButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.Wz(_.CY("GET_PREMIUM",void 0,"Get Premium")),isDisabled:!0};this.cancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.Wz(_.CY("SBOX_INAPPROPRIATE_CANCEL",
void 0,"Cancel"))};this.upsellCancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.Wz(_.CY("NOT_NOW",void 0,"Not now"))};this.updateQualityOptions()};
_.N.updateQualityOptions=function(){this.formats===void 0?_.dW(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]):this.qualityOptions=rEg(this.formats)};
_.N.onQualityOptionsSelect=function(F){if(this.qualityOptions&&F){F!==void 0&&(this.downloadButtonRenderer&&(this.downloadButtonRenderer=Object.assign({},this.downloadButtonRenderer,{isDisabled:!1})),this.upsellButtonRenderer&&(this.upsellButtonRenderer=Object.assign({},this.upsellButtonRenderer,{isDisabled:!1})),this.upsellCancelButtonRenderer&&(this.upsellCancelButtonRenderer=Object.assign({},this.upsellCancelButtonRenderer,{isDisabled:!1})));for(var W=_.U(this.qualityOptions.entries()),E=W.next();!E.done;E=
W.next()){E=_.U(E.value);var h=E.next().value;E=E.next().value;var d=void 0,V=void 0;if(((d=E)==null?void 0:(V=d.settingsRadioOptionRenderer)==null?void 0:V.id)===F){this.selectedQualityIndex=h;F=void 0;this.shouldShowAlternateUpsellDimiss=(this.selectedUpsellQuality=((F=this.formats[h])==null?void 0:F.availabilityType)==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED")&&this.useUpsellDismissAlternate;break}}}};
_.N.onClickSubmit=function(){var F;if((F=this.downloadButtonRenderer)==null||!F.isDisabled){var W,E;F=(E=(W=this.data)==null?void 0:W.onSubmitEndpoint)!=null?E:{};var h,d;if(this.formats&&(((h=_.D(F,_.vS))==null?0:h.videoId)||((d=_.D(F,_.I6))==null?0:d.playlistId))){var V,R,M,g,t,C;W={formatType:(g=(V=this.formats)==null?void 0:(R=V[(M=this.selectedQualityIndex)!=null?M:0])==null?void 0:R.format)!=null?g:"UNKNOWN_FORMAT_TYPE",settingsAction:this.getOfflineSettingsAction(this.rememberSettingsChecked,
(t=this.getOfflineEndpoint(F))==null?void 0:(C=t.actionParams)==null?void 0:C.settingsAction)};this.getOfflineEndpoint(F).actionParams=W;this.ytComponentBehavior.resolveCommand(F)}_.dW(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])}};
_.N.onClickUpsell=function(){var F;if((F=this.upsellButtonRenderer)==null||!F.isDisabled){var W,E;F=(E=(W=this.data)==null?void 0:W.upsellEndpoint)!=null?E:{};this.ytComponentBehavior.resolveCommand(F);_.dW(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);W="UNKNOWN_FORMAT_TYPE";if(this.rememberSettingsChecked){var h,d,V,R;W=(R=(h=this.formats)==null?void 0:(d=h[(V=this.selectedQualityIndex)!=null?V:0])==null?void 0:d.format)!=null?R:"UNKNOWN_FORMAT_TYPE"}this.ytComponentBehavior.resolveCommand({setPrefStorageEntryCommand:{key:"lmqf",
value:W}})}};
_.N.onClickClose=function(){_.dW(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])};
_.N.getOfflineSettingsAction=function(F,W){return F?W===void 0?"DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE":W:"DOWNLOAD_QUALITY_SETTINGS_ACTION_DONT_SAVE"};
_.N.getOfflineEndpoint=function(F){return _.D(F,_.vS)?_.D(F,_.vS):_.D(F,_.I6)};
_.Sn.Object.defineProperties(Dl.prototype,{titleText:{configurable:!0,enumerable:!0,get:function(){return _.Wz(_.CY("DOWNLOAD_QUALITY",void 0,"Download Quality"))}},
formats:{configurable:!0,enumerable:!0,get:function(){var F;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(F=this.data)==null?void 0:F.qualityFormats}}});
Dl.prototype.updateQualityOptions=Dl.prototype.updateQualityOptions;Dl.prototype.dataChanged=Dl.prototype.dataChanged;_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],Dl.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],Dl.prototype,"ytComponentBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Dl.prototype,"ytRendererBehavior",void 0);
_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],Dl.prototype,"ytActionHandlerBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],Dl.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Number)],Dl.prototype,"selectedQualityIndex",void 0);_.T([_.O(),_.Y("design:type",Object)],Dl.prototype,"selectedUpsellQuality",void 0);_.T([_.J(_.am),_.Y("design:type",Object)],Dl.prototype,"ytdReduxBehavior",void 0);
_.T([_.O({selector:JHw,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.Y("design:type",Object)],Dl.prototype,"downloadQualityPickerEntity",void 0);_.T([_.O(),_.Y("design:type",Array)],Dl.prototype,"qualityOptions",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],Dl.prototype,"darkerDarkTheme",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Dl.prototype,"useUpsellDismissAlternate",void 0);
_.T([_.O(),_.Y("design:type",Object)],Dl.prototype,"shouldShowAlternateUpsellDimiss",void 0);_.T([_.O(),_.Y("design:type",Object)],Dl.prototype,"downloadButtonRenderer",void 0);_.T([_.O(),_.Y("design:type",Object)],Dl.prototype,"upsellButtonRenderer",void 0);_.T([_.O(),_.Y("design:type",Object)],Dl.prototype,"cancelButtonRenderer",void 0);_.T([_.O(),_.Y("design:type",Object)],Dl.prototype,"upsellCancelButtonRenderer",void 0);_.T([_.O(),_.Y("design:type",Object)],Dl.prototype,"rememberSettings",void 0);
_.T([_.O(),_.Y("design:type",Object)],Dl.prototype,"rememberSettingsChecked",void 0);_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Dl.prototype,"dataChanged",null);_.T([_.ea("downloadQualityPickerEntity"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Dl.prototype,"updateQualityOptions",null);Dl=_.T([_.y({is:"ytd-download-quality-selector-renderer",disableElementRegistration:!0})],Dl);
_.r(Dl,"ytd-download-quality-selector-renderer",function(){if(IMK!==void 0)return IMK;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-download-quality-selector-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="title" text="[[titleText]]" class="style-scope ytd-download-quality-selector-renderer"></yt-formatted-string>\n<ytd-download-quality-selector-content data="[[data]]" remember-settings-checked="[[rememberSettingsChecked]]" selected-upsell-quality="[[selectedUpsellQuality]]" on-remember-settings-checked-changed="[[rememberSettingsCheckedChanged]]" class="style-scope ytd-download-quality-selector-renderer">\n</ytd-download-quality-selector-content>\n<div class="buttons style-scope ytd-download-quality-selector-renderer">\n  <yt-button-renderer id="cancel-button" data="[[cancelButtonRenderer]]" dialog-dismiss="" hidden="[[shouldShowAlternateUpsellDimiss]]" on-click="onClickClose" class="style-scope ytd-download-quality-selector-renderer">\n  </yt-button-renderer>\n  <yt-button-renderer id="upsell-cancel-button" data="[[upsellCancelButtonRenderer]]" dialog-dismiss="" hidden="[[!shouldShowAlternateUpsellDimiss]]" on-click="onClickClose" class="style-scope ytd-download-quality-selector-renderer">\n  </yt-button-renderer>\n  <yt-button-renderer id="download-button" data="[[downloadButtonRenderer]]" hidden="[[selectedUpsellQuality]]" on-click="onClickSubmit" class="style-scope ytd-download-quality-selector-renderer">\n  </yt-button-renderer>\n  <yt-button-renderer id="upsell-button" data="[[upsellButtonRenderer]]" hidden="[[!selectedUpsellQuality]]" on-click="onClickUpsell" class="style-scope ytd-download-quality-selector-renderer">\n  </yt-button-renderer>\n</div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return IMK=F},{mode:1});var cnK;var xM=function(){var F=_.n.apply(this,arguments)||this;F.darkerDarkTheme=_.c("web_darker_dark_theme");return F};
_.k(xM,_.n);xM.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
xM.prototype.configureRendererStamper=function(){return{"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:{attributes:{"dialog-dismiss":!0},component:"ytd-button-renderer"}}},"data.nextButton":{id:"next-button",mapping:{buttonRenderer:{attributes:{"dialog-dismiss":!0},component:"ytd-button-renderer"}}}}};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],xM.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],xM.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],xM.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],xM.prototype,"darkerDarkTheme",void 0);_.T([_.O({computed:"computeIcon_(data.infoIcon)"}),_.Y("design:type",Object)],xM.prototype,"infoIcon",void 0);
_.T([_.O({computed:"computeIcon_(data.warningIcon)"}),_.Y("design:type",Object)],xM.prototype,"warningIcon",void 0);xM=_.T([_.y({is:"ytd-cross-account-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],xM);
_.r(xM,"ytd-cross-account-transfer-channel-confirm-dialog-renderer",function(){if(cnK!==void 0)return cnK;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-cross-account-transfer-channel-confirm-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n  <div id="header" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer"></yt-formatted-string>\n  </div>\n  <div id="content" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n    <div id="source" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n      <yt-formatted-string id="source-title" text="[[data.sourceTitle]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer"></yt-formatted-string>\n      <yt-formatted-string id="source-subtitle" text="[[data.sourceSubtitle]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer"></yt-formatted-string>\n      <yt-formatted-string id="source-account-name" text="[[data.sourceAccountName]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="source-account-email" text="[[data.sourceAccountEmail]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n      </yt-formatted-string>\n    </div>\n    <div id="target" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n      <yt-formatted-string id="target-title" text="[[data.targetTitle]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer"></yt-formatted-string>\n      <yt-formatted-string id="target-subtitle" text="[[data.targetSubtitle]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n      </yt-formatted-string>\n      <div id="target-account" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n        <yt-img-shadow hidden="[[!data.sourceAccountThumbnail]]" thumbnail="[[data.sourceAccountThumbnail]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n        </yt-img-shadow>\n        <div id="target-account-info" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n          <yt-formatted-string id="target-account-name" text="[[data.targetAccountName]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n          </yt-formatted-string>\n          <yt-formatted-string id="target-account-email" text="[[data.targetAccountEmail]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n          </yt-formatted-string>\n          <yt-formatted-string id="sournce-channel-details" text="[[data.sourceChannelDetails]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n          </yt-formatted-string>\n        </div>\n      </div>\n    </div>\n    <div id="info-warning" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n      <div id="info-title" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n        <yt-icon disable-upgrade$="[[!infoIcon]]" hidden="[[!infoIcon]]" icon="[[infoIcon]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n        </yt-icon>\n        <yt-formatted-string id="info-title-text" text="[[data.infoTitle]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer"></yt-formatted-string>\n      </div>\n      <yt-formatted-string id="info-text" split-lines="" text="[[data.infoText]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n      </yt-formatted-string>\n      <div id="warning-title" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n        <yt-icon disable-upgrade$="[[!warningIcon]]" hidden="[[!warningIcon]]" icon="[[warningIcon]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n        </yt-icon>\n        <yt-formatted-string id="warning-title-text" text="[[data.warningTitle]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n        </yt-formatted-string>\n      </div>\n      <yt-formatted-string id="warning-text" split-lines="" text="[[data.warningText]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="footer" text="[[data.footer]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer"></yt-formatted-string>\n    </div>\n  </div>\n  <div id="buttons" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n    <div id="cancel-button" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer"></div>\n    <div id="next-button" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer"></div>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return cnK=F},{mode:1});var D_q;var kM=function(){var F=_.n.apply(this,arguments)||this;F.darkerDarkTheme=_.c("web_darker_dark_theme");return F};
_.k(kM,_.n);kM.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
kM.prototype.configureRendererStamper=function(){return{"data.stepper":{id:"stepper",mapping:{channelTransferStepperRenderer:"ytd-channel-transfer-stepper-renderer"}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:{attributes:{"dialog-dismiss":!0},component:"ytd-button-renderer"}}},"data.signinButton":{id:"signin-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],kM.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],kM.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],kM.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],kM.prototype,"darkerDarkTheme",void 0);kM=_.T([_.y({is:"ytd-cross-account-transfer-channel-overview-renderer",disableElementRegistration:!0})],kM);
_.r(kM,"ytd-cross-account-transfer-channel-overview-renderer",function(){if(D_q!==void 0)return D_q;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-cross-account-transfer-channel-overview-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-cross-account-transfer-channel-overview-renderer">\n  <div id="header" class="style-scope ytd-cross-account-transfer-channel-overview-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-cross-account-transfer-channel-overview-renderer"></yt-formatted-string>\n  </div>\n  <div id="content" class="style-scope ytd-cross-account-transfer-channel-overview-renderer">\n    <div id="stepper" class="style-scope ytd-cross-account-transfer-channel-overview-renderer"></div>\n    <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-cross-account-transfer-channel-overview-renderer"></yt-formatted-string>\n    <div id="messages" class="style-scope ytd-cross-account-transfer-channel-overview-renderer">\n      <template is="dom-repeat" items="[[data.messages]]" class="style-scope ytd-cross-account-transfer-channel-overview-renderer">\n        <yt-formatted-string class="line-text style-scope ytd-cross-account-transfer-channel-overview-renderer" split-lines="" text="[[item]]"></yt-formatted-string>\n      </template>\n    </div>\n  </div>\n  <div id="buttons" class="style-scope ytd-cross-account-transfer-channel-overview-renderer">\n    <div id="cancel-button" class="style-scope ytd-cross-account-transfer-channel-overview-renderer"></div>\n    <div id="signin-button" class="style-scope ytd-cross-account-transfer-channel-overview-renderer"></div>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return D_q=F},{mode:1});var x_O;var Ax=function(){var F=_.n.apply(this,arguments)||this;F.darkerDarkTheme=_.c("web_darker_dark_theme");return F};
_.k(Ax,_.n);Ax.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Ax.prototype.configureRendererStamper=function(){return{"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:{attributes:{"dialog-dismiss":!0},component:"ytd-button-renderer"}}},"data.confirmButton":{id:"confirm-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
Ax.prototype.onServiceRequestSentOrCompleted=function(F,W){W&&W.actions&&W.actions.length>0&&_.dW(this.hostElement,"yt-close-popup-action",[this.is])};
Ax.prototype.onServiceRequestSentOrCompleted=Ax.prototype.onServiceRequestSentOrCompleted;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Ax.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],Ax.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],Ax.prototype,"darkerDarkTheme",void 0);_.T([_.O(),_.Y("design:type",Object)],Ax.prototype,"data",void 0);
_.T([_.R4("yt-service-request-completed"),_.R4("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.uz]),_.Y("design:returntype")],Ax.prototype,"onServiceRequestSentOrCompleted",null);Ax=_.T([_.y({is:"ytd-cross-account-transfer-channel-tnc-dialog-renderer",disableElementRegistration:!0})],Ax);
_.r(Ax,"ytd-cross-account-transfer-channel-tnc-dialog-renderer",function(){if(x_O!==void 0)return x_O;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-cross-account-transfer-channel-tnc-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer">\n  <div id="header" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer"></yt-formatted-string>\n  </div>\n  <div id="content" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer">\n    <yt-formatted-string id="agree-title" text="[[data.agreeTitle]]" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer"></yt-formatted-string>\n    <yt-formatted-string id="agree-text" split-lines="" text="[[data.agreeText]]" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer"></yt-formatted-string>\n    <yt-formatted-string id="understand-title" text="[[data.understandTitle]]" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer"></yt-formatted-string>\n    <yt-formatted-string id="understand-text" split-lines="" text="[[data.understandText]]" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer"></yt-formatted-string>\n  </div>\n  <div id="buttons" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer">\n    <div id="cancel-button" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer"></div>\n    <div id="confirm-button" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer"></div>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return x_O=F},{mode:1});var kDF;var sA=function(){var F=_.n.apply(this,arguments)||this;F.darkerDarkTheme=_.c("web_darker_dark_theme");F.submitButtonDisabled=!0;return F};
_.k(sA,_.n);_.N=sA.prototype;_.N.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.N.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{itemSectionRenderer:{component:"ytd-item-section-renderer",noInjection:!0}}}}};
_.N.onDataChanged=function(){var F,W,E;if(((F=this.data)==null?void 0:(W=F.confirmButton)==null?void 0:(E=W.buttonRenderer)==null?void 0:E.isDisabled)!==void 0){var h,d,V;this.submitButtonDisabled=(h=this.data)==null?void 0:(d=h.confirmButton)==null?void 0:(V=d.buttonRenderer)==null?void 0:V.isDisabled}};
_.N.checkboxChanged=function(){this.submitButtonDisabled=!this.submitButtonDisabled};
_.N.updateSubmitButtonDisabledFromBinding=function(F){this.submitButtonDisabled=F.detail.value};
_.N.updateSubmitButtonDisabledFromConfirmCheckbox=function(F){this.submitButtonDisabled=!F.detail.value};
sA.prototype.onDataChanged=sA.prototype.onDataChanged;_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],sA.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],sA.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],sA.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],sA.prototype,"darkerDarkTheme",void 0);
_.T([_.O(),_.Y("design:type",Object)],sA.prototype,"submitButtonDisabled",void 0);_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],sA.prototype,"onDataChanged",null);sA=_.T([_.y({is:"ytd-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],sA);
_.r(sA,"ytd-transfer-channel-confirm-dialog-renderer",function(){if(kDF!==void 0)return kDF;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transfer-channel-confirm-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n  <div id="header" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n    <yt-formatted-string id="title" hidden$="[[!data.title]]" text="[[data.title]]" class="style-scope ytd-transfer-channel-confirm-dialog-renderer"></yt-formatted-string>\n  </div>\n  <div id="content" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n    <div id="sections" class="style-scope ytd-transfer-channel-confirm-dialog-renderer"></div>\n    <div id="messages" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n      <template is="dom-repeat" items="[[data.messages]]" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n        <yt-formatted-string class="line-text style-scope ytd-transfer-channel-confirm-dialog-renderer" split-lines="" text="[[item]]"></yt-formatted-string>\n      </template>\n    </div>\n    <div id="confirm" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n      <template is="dom-if" if="[[data.confirmText]]" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n        <tp-yt-paper-checkbox id="confirm-checkbox" checked="[[!submitButtonDisabled]]" on-checked-changed="updateSubmitButtonDisabledFromConfirmCheckbox" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n          <yt-formatted-string id="confirm-text" text="[[data.confirmText]]" class="style-scope ytd-transfer-channel-confirm-dialog-renderer"></yt-formatted-string>\n        </tp-yt-paper-checkbox>\n      </template>\n    </div>\n  </div>\n  <div id="buttons" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n    <yt-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" dialog-dismiss="" hidden="[[isCancelButtonHidden]]" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n    </yt-button-renderer>\n    <yt-button-renderer id="confirm-button" data="[[data.confirmButton.buttonRenderer]]" dialog-confirm="" disabled="[[submitButtonDisabled]]" on-disabled-changed="updateSubmitButtonDisabledFromBinding" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n    </yt-button-renderer>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return kDF=F},{mode:1});var Anx;var LF=function(){return _.n.apply(this,arguments)||this};
_.k(LF,_.n);_.Sn.Object.defineProperties(LF.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var F,W,E;return((F=this.data)==null?void 0:F.title)+" "+((W=this.data)==null?void 0:W.metadataPrimary)+" "+((E=this.data)==null?void 0:E.metadataSecondary)}}});
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],LF.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],LF.prototype,"ytComponentBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],LF.prototype,"data",void 0);_.T([_.a("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],LF.prototype,"ariaLabel",null);LF=_.T([_.y({disableElementRegistration:!0,is:"ytd-compact-product-list-item-renderer"})],LF);
_.r(LF,"ytd-compact-product-list-item-renderer",function(){if(Anx!==void 0)return Anx;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-product-list-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-compact-product-list-item-renderer" href$="[[computeHref_(data.onClickCommand)]]" data="[[data.onClickCommand]]" aria-label$="[[ariaLabel]]">\n  <div class="compact-product-list-item style-scope ytd-compact-product-list-item-renderer">\n    <yt-img-shadow class="item-image style-scope ytd-compact-product-list-item-renderer" height="40" object-fit="CONTAIN" thumbnail="[[data.thumbnail]]" width="40"></yt-img-shadow>\n    <div class="column style-scope ytd-compact-product-list-item-renderer">\n      <template is="dom-if" if="[[data.title]]" class="style-scope ytd-compact-product-list-item-renderer">\n        <div class="row title style-scope ytd-compact-product-list-item-renderer">[[data.title]]</div>\n      </template>\n      <div class="row metadata style-scope ytd-compact-product-list-item-renderer">\n        <template is="dom-if" if="[[data.metadataPrimary]]" class="style-scope ytd-compact-product-list-item-renderer">\n          <span class="style-scope ytd-compact-product-list-item-renderer">[[data.metadataPrimary]]</span>\n        </template>\n        <template is="dom-if" if="[[data.metadataSecondary]]" class="style-scope ytd-compact-product-list-item-renderer">\n          <span class="style-scope ytd-compact-product-list-item-renderer">[[data.metadataSecondary]]</span>\n          <yt-icon class="open-in-new style-scope ytd-compact-product-list-item-renderer" icon="yt-icons:open_in_new"></yt-icon>\n        </template>\n      </div>\n    </div>\n  </div>\n</a>');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return Anx=F},{mode:1});var s8w;var qk=function(){return _.n.apply(this,arguments)||this};
_.k(qk,_.n);qk.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{compactProductListItemRenderer:"ytd-compact-product-list-item-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}}}};
_.Sn.Object.defineProperties(qk.prototype,{buttonOverrides:{configurable:!0,enumerable:!0,get:function(){return{style:"mono"}}}});
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],qk.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],qk.prototype,"ytComponentBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],qk.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],qk.prototype,"data",void 0);qk=_.T([_.y({disableElementRegistration:!0,is:"ytd-compact-product-list-renderer"})],qk);
_.r(qk,"ytd-compact-product-list-renderer",function(){if(s8w!==void 0)return s8w;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-product-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-compact-product-list-renderer">\n  <div id="title" class="style-scope ytd-compact-product-list-renderer">[[data.title]]</div>\n  <div id="items" class="style-scope ytd-compact-product-list-renderer"></div>\n  <div id="action-button" class="style-scope ytd-compact-product-list-renderer"></div>\n</div>');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return s8w=F},{mode:1});var L3K;var $M=function(){var F=_.n.apply(this,arguments)||this;F.darkerDarkTheme=_.c("web_darker_dark_theme");return F};
_.k($M,_.n);_.N=$M.prototype;_.N.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.N.configureRendererStamper=function(){return{"data.okayButton":{id:"okay-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.N.getBackgroundUrl=function(){var F=this.get("data.headerImage.thumbnails");return F?"url("+_.m_(F,this.hostElement.clientWidth)+")":""};
_.N.onDataChanged=function(){var F=this.getBackgroundUrl();F&&(this.header.style.backgroundImage=F);F=_.JR();var W=_.Pf(),E=this.get("data.trackingParams");E&&W&&F&&_.y7(F,W,_.ve(E));F=_.U(this.hostElement.querySelectorAll("yt-img-shadow"));for(W=F.next();!W.done;W=F.next())W.value.onShow()};
_.N.onPopupClosed=function(F){_.oo(F).localName==="ytd-membership-post-cancel-renderer"&&_.dW(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"])};
$M.prototype.onPopupClosed=$M.prototype.onPopupClosed;$M.prototype.onDataChanged=$M.prototype.onDataChanged;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],$M.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],$M.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],$M.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],$M.prototype,"darkerDarkTheme",void 0);
_.T([_.gQ("#header"),_.Y("design:type",HTMLDivElement)],$M.prototype,"header",void 0);_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],$M.prototype,"onDataChanged",null);_.T([_.R4("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],$M.prototype,"onPopupClosed",null);$M=_.T([_.y({disableElementRegistration:!0,is:"ytd-membership-post-cancel-renderer"})],$M);
_.r($M,"ytd-membership-post-cancel-renderer",function(){if(L3K!==void 0)return L3K;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-membership-post-cancel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-membership-post-cancel-renderer">\n  <div class="avatar-support style-scope ytd-membership-post-cancel-renderer" aria-hidden="true">\n    <yt-img-shadow class="avatar style-scope ytd-membership-post-cancel-renderer" thumbnail="[[data.viewerThumbnail]]"></yt-img-shadow>\n    <yt-icon class="membership-icon style-scope ytd-membership-post-cancel-renderer" default-to-filled="true" icon="sponsorship_star"></yt-icon>\n    <yt-img-shadow class="avatar style-scope ytd-membership-post-cancel-renderer" thumbnail="[[data.channelThumbnail]]"></yt-img-shadow>\n  </div>\n</div>\n\n<yt-formatted-string class="header-title style-scope ytd-membership-post-cancel-renderer" text="[[data.header]]"></yt-formatted-string>\n\n<div class="messages style-scope ytd-membership-post-cancel-renderer">\n  <template is="dom-repeat" items="[[data.messages]]" class="style-scope ytd-membership-post-cancel-renderer">\n    <yt-formatted-string text="[[item]]" class="style-scope ytd-membership-post-cancel-renderer"></yt-formatted-string>\n  </template>\n</div>\n\n<div class="footer style-scope ytd-membership-post-cancel-renderer">\n  <div id="okay-button" class="style-scope ytd-membership-post-cancel-renderer"></div>\n</div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return L3K=F},{mode:1});var qNT;var Zl=function(){var F=_.n.apply(this,arguments)||this;F.darkerDarkTheme=_.c("web_darker_dark_theme");return F};
_.k(Zl,_.n);Zl.prototype.maybeSubmitFeedback=function(){this.feedbackSurveyRenderer&&this.feedbackSurveyRenderer.submitSurvey()};
Zl.prototype.configureRendererStamper=function(){return{"data.feedbackSurvey":{id:"feedback-survey",mapping:{feedbackSurveyRenderer:"ytd-feedback-survey-renderer"}}}};
_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],Zl.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],Zl.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],Zl.prototype,"darkerDarkTheme",void 0);_.T([_.gQ("ytd-feedback-survey-renderer"),_.Y("design:type",Object)],Zl.prototype,"feedbackSurveyRenderer",void 0);Zl=_.T([_.y({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-content"})],Zl);
_.r(Zl,"ytd-sponsorship-confirm-cancel-content",function(){if(qNT!==void 0)return qNT;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorship-confirm-cancel-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="description" class="style-scope ytd-sponsorship-confirm-cancel-content">\n  <yt-formatted-string text="[[data.description]]" class="style-scope ytd-sponsorship-confirm-cancel-content"></yt-formatted-string>\n</div>\n<div id="feedback-survey" class="style-scope ytd-sponsorship-confirm-cancel-content"></div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return qNT=F},{mode:1});var $_6;var Xv=function(){var F=_.n.apply(this,arguments)||this;F.darkerDarkTheme=_.c("web_darker_dark_theme");F.maybeSubmitFeedback=function(){F.content&&F.content.maybeSubmitFeedback()};
return F};
_.k(Xv,_.n);_.N=Xv.prototype;_.N.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[maybeSubmitFeedback]]"}}}}}};
_.N.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable.dialogElement=this.hostElement.parentNode;this.scrollable._ensureTarget();this.onDataChanged()};
_.N.onYtPopupOpened=function(F,W){W===this&&this.data&&this.data.onOpenCommands&&_.Rj(this.hostElement,this.data.onOpenCommands,this.hostElement);_.dW(this.hostElement,"yt-close-popups-action",[["ytd-manage-membership-renderer","ytd-membership-offer-renderer"]])};
_.N.onYtPopupClosed=function(F,W){(W&&W.canceled===!0||W&&W.canceled===!1&&W.confirmed===!1)&&this.data&&this.data.onDismissCommands&&_.Rj(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.N.onYtServiceRequestCompleted=function(){_.dW(this.hostElement,"yt-close-popup-action",["ytd-sponsorship-confirm-cancel-renderer"])};
_.N.onYtServiceRequestError=function(F){_.R$(this.hostElement,F.detail.error.message)};
_.N.onDataChanged=function(){if(this.isAttached){var F=this.backgroundUrl;F&&(_.Z(this.hostElement).querySelector("#header").style.backgroundImage=F)}};
_.Sn.Object.defineProperties(Xv.prototype,{backgroundUrl:{configurable:!0,enumerable:!0,get:function(){var F=this.get("data.header.sponsorshipDialogHeaderRenderer.headerImage.thumbnails");return F?"url("+_.m_(F,this.hostElement.clientWidth)+")":""}}});
Xv.prototype.onDataChanged=Xv.prototype.onDataChanged;Xv.prototype.onYtServiceRequestError=Xv.prototype.onYtServiceRequestError;Xv.prototype.onYtServiceRequestCompleted=Xv.prototype.onYtServiceRequestCompleted;Xv.prototype.onYtPopupClosed=Xv.prototype.onYtPopupClosed;Xv.prototype.onYtPopupOpened=Xv.prototype.onYtPopupOpened;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Xv.prototype,"ytRendererBehavior",void 0);
_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],Xv.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],Xv.prototype,"data",void 0);_.T([_.O({value:function(){return _.CY("SBOX_INAPPROPRIATE_CANCEL")}}),
_.Y("design:type",String)],Xv.prototype,"closeButtonAriaLabel",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],Xv.prototype,"darkerDarkTheme",void 0);_.T([_.gQ("#scrollable"),_.Y("design:type",Object)],Xv.prototype,"scrollable",void 0);_.T([_.gQ("ytd-sponsorship-confirm-cancel-content"),_.Y("design:type",Object)],Xv.prototype,"content",void 0);
_.T([_.R4("yt-popup-opened"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],Xv.prototype,"onYtPopupOpened",null);_.T([_.R4("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],Xv.prototype,"onYtPopupClosed",null);
_.T([_.R4("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Xv.prototype,"onYtServiceRequestCompleted",null);_.T([_.R4("yt-service-request-error"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Xv.prototype,"onYtServiceRequestError",null);_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Xv.prototype,"onDataChanged",null);
Xv=_.T([_.y({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-renderer"})],Xv);
_.r(Xv,"ytd-sponsorship-confirm-cancel-renderer",function(){if($_6!==void 0)return $_6;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorship-confirm-cancel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-sponsorship-confirm-cancel-renderer">\n  <div id="dismiss-button" class="style-scope ytd-sponsorship-confirm-cancel-renderer">\n    <tp-yt-paper-icon-button aria-label$="[[closeButtonAriaLabel]]" dialog-dismiss="" icon="yt-icons:dismissal" class="style-scope ytd-sponsorship-confirm-cancel-renderer"></tp-yt-paper-icon-button>\n  </div>\n  <div class="avatar-support style-scope ytd-sponsorship-confirm-cancel-renderer">\n    <template is="dom-if" restamp="" if="[[data.header.sponsorshipDialogHeaderRenderer.viewerThumbnail]]" class="style-scope ytd-sponsorship-confirm-cancel-renderer">\n      <yt-img-shadow class="avatar style-scope ytd-sponsorship-confirm-cancel-renderer" thumbnail="[[data.header.sponsorshipDialogHeaderRenderer.viewerThumbnail]]">\n      </yt-img-shadow>\n      <yt-icon class="membership-icon style-scope ytd-sponsorship-confirm-cancel-renderer" default-to-filled="true" icon="sponsorship_star"></yt-icon>\n    </template>\n    <yt-img-shadow class="avatar style-scope ytd-sponsorship-confirm-cancel-renderer" thumbnail="[[data.header.sponsorshipDialogHeaderRenderer.channelThumbnail]]">\n    </yt-img-shadow>\n  </div>\n</div>\n<div id="content" class="style-scope ytd-sponsorship-confirm-cancel-renderer">\n  <tp-yt-paper-dialog-scrollable id="scrollable" class="style-scope ytd-sponsorship-confirm-cancel-renderer">\n    <div id="title" class="style-scope ytd-sponsorship-confirm-cancel-renderer">\n      <yt-formatted-string text="[[data.title]]" class="style-scope ytd-sponsorship-confirm-cancel-renderer"></yt-formatted-string>\n    </div>\n    <ytd-sponsorship-confirm-cancel-content data="[[data]]" class="style-scope ytd-sponsorship-confirm-cancel-renderer">\n    </ytd-sponsorship-confirm-cancel-content>\n  </tp-yt-paper-dialog-scrollable>\n</div>\n<div class="footer style-scope ytd-sponsorship-confirm-cancel-renderer">\n  <div id="confirm-button" class="style-scope ytd-sponsorship-confirm-cancel-renderer"></div>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return $_6=F},{mode:_.E6("kevlar_poly_si_batch_j081")?1:2});var ZS8;var HW=function(){var F=_.n.apply(this,arguments)||this;F.darkerDarkTheme=_.c("web_darker_dark_theme");return F};
_.k(HW,_.n);HW.prototype.configureRendererStamper=function(){return{"data.contents":{id:"content",mapping:{sponsorshipsListTileRenderer:{component:"ytd-sponsorships-list-tile-renderer"}}}}};
_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],HW.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],HW.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],HW.prototype,"darkerDarkTheme",void 0);HW=_.T([_.y({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-content"})],HW);
_.r(HW,"ytd-sponsorships-celebration-content",function(){if(ZS8!==void 0)return ZS8;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-celebration-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-sponsorships-celebration-content"></div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return ZS8=
F},{mode:1});var Xhg;var HSO=_.Fc(["\n      window.dataLayer = window.dataLayer || [];\n      function gtag(){dataLayer.push(arguments);}\n      gtag('event', 'conversion', {'send_to': 'AW-10800507011/WarlCOX0sIIDEIPRip4o', 'transaction_id': ''});\n    "]),PW=function(){var F=_.n.apply(this,arguments)||this;F.scriptsAppended=!1;F.buttonOverrides={type:"tonal",style:"overlay-dark"};return F};
_.k(PW,_.n);_.N=PW.prototype;
_.N.configureRendererStamper=function(){return{"data.header.sponsorshipsHeaderRenderer.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0},properties:{overrides:"[[buttonOverrides]]"},params:{forceModernIconButton:_.c("web_modern_buttons")}}}},"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0}}}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",
attributes:{"dialog-dismiss":!0}}}}}};
_.N.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.N.onDataChanged=function(){var F;(F=this.header)==null||F.style.setProperty("background-color",this.backgroundColor);if(F=this.headerImageUrl){var W;(W=this.header)==null||W.style.setProperty("background-image",F)}W=_.JR(4);F=_.Pf(4);var E=this.get("data.trackingParams");if(E&&F&&W){var h=_.ve(E);_.y7(W,F,h);_.c("combine_ve_grafts")?_.z4().graftServerVe(E,F,4):_.y7(W,F,h)}W=_.U(this.hostElement.querySelectorAll("yt-img-shadow"));for(F=W.next();!F.done;F=W.next())F.value.onShow();if(W=this.get("data.gtmId"))_.xE(W,
_.b0("GL","")),this.setupConversionTracking()};
_.N.setupConversionTracking=function(){if(!this.scriptsAppended){var F=document.createElement("script");var W=_.OW(HSO.join(""));_.li(F,W);document.head.appendChild(F);F=document.createElement("noscript");F.textContent='<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-TGBSZFB" height="0" width="0" style="display:none;visibility:hidden"></iframe>';document.body.prepend(F);this.scriptsAppended=!0}};
_.N.onPopupClosed=function(F){if(_.oo(F).localName==="ytd-sponsorships-celebration-renderer"){_.dW(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"]);var W;this.data&&((W=this.data)==null?0:W.dismissCommand)&&_.Ru.instance.resolveCommand(this.data.dismissCommand,{form:{element:this.hostElement}})}};
_.Sn.Object.defineProperties(PW.prototype,{backgroundColor:{configurable:!0,enumerable:!0,get:function(){var F=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");return _.XC(F)}},
headerImageUrl:{configurable:!0,enumerable:!0,get:function(){var F=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails");return F?"url("+_.m_(F,this.hostElement.getBoundingClientRect().width)+")":""}}});
PW.prototype.onPopupClosed=PW.prototype.onPopupClosed;PW.prototype.onDataChanged=PW.prototype.onDataChanged;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],PW.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],PW.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],PW.prototype,"data",void 0);_.T([_.gQ("#header"),_.Y("design:type",HTMLElement)],PW.prototype,"header",void 0);
_.T([_.O(),_.Y("design:type",Object)],PW.prototype,"scriptsAppended",void 0);_.T([_.O(),_.Y("design:type",Object)],PW.prototype,"buttonOverrides",void 0);_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],PW.prototype,"onDataChanged",null);_.T([_.R4("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],PW.prototype,"onPopupClosed",null);
PW=_.T([_.y({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-renderer"})],PW);
_.r(PW,"ytd-sponsorships-celebration-renderer",function(){if(Xhg!==void 0)return Xhg;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-celebration-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="avatar-container" class="style-scope ytd-sponsorships-celebration-renderer">\n    <yt-img-shadow class="avatar style-scope ytd-sponsorships-celebration-renderer" fit="true" thumbnail="[[data.header.sponsorshipsHeaderRenderer.channelImage]]">\n    </yt-img-shadow>\n  </div>\n  <div class="title-container style-scope ytd-sponsorships-celebration-renderer">\n    <yt-formatted-string class="title style-scope ytd-sponsorships-celebration-renderer" text="[[data.header.sponsorshipsHeaderRenderer.title]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="subtitle style-scope ytd-sponsorships-celebration-renderer" text="[[data.header.sponsorshipsHeaderRenderer.subtitle]]">\n    </yt-formatted-string>\n  </div>\n</div>\n<ytd-sponsorships-celebration-content data="[[data]]" class="style-scope ytd-sponsorships-celebration-renderer"></ytd-sponsorships-celebration-content>\n<div id="top-bar" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="dismiss-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n</div>\n<div id="button-bar" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="secondary-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n  <div id="primary-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return Xhg=F},{mode:1});var PrP;var Jx=function(){var F=_.n.apply(this,arguments)||this;F.isToggleChecked=!1;return F};
_.k(Jx,_.n);Jx.prototype.onDataChanged=function(){var F;this.isToggleChecked=((F=this.data)==null?void 0:F.initialOptInStatus)==="SPONSORSHIPS_GIFTING_OPT_IN_STATUS_ENABLED"};
Jx.prototype.close=function(){var F;((F=this.data)==null?0:F.closeCommand)&&this.ytComponentBehavior.resolveCommand(this.data.closeCommand)};
Jx.prototype.handleOptInToggle=function(){this.isToggleChecked=!this.isToggleChecked;var F,W=_.D((F=this.data)==null?void 0:F.switchButton,vJO);W&&(this.isToggleChecked&&W.switchOnInnertubeCommand&&this.ytComponentBehavior.resolveCommand(W.switchOnInnertubeCommand),!this.isToggleChecked&&W.switchOffInnertubeCommand&&this.ytComponentBehavior.resolveCommand(W.switchOffInnertubeCommand))};
Jx.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Jx.prototype.onDataChanged=Jx.prototype.onDataChanged;_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],Jx.prototype,"ytComponentBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Jx.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],Jx.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Object)],Jx.prototype,"isToggleChecked",void 0);_.T([_.O({value:_.CY("CLOSE")}),_.Y("design:type",String)],Jx.prototype,"closeButtonAriaLabel",void 0);
_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Jx.prototype,"onDataChanged",null);Jx=_.T([_.y({disableElementRegistration:!0,is:"ytd-sponsorships-gifting-opt-in-renderer"})],Jx);
_.r(Jx,"ytd-sponsorships-gifting-opt-in-renderer",function(){if(PrP!==void 0)return PrP;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-gifting-opt-in-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="close" class="style-scope ytd-sponsorships-gifting-opt-in-renderer">\n  <yt-icon-button id="close-button" label="[[closeButtonAriaLabel]]" on-click="close" class="style-scope ytd-sponsorships-gifting-opt-in-renderer">\n    <yt-icon icon="close" class="style-scope ytd-sponsorships-gifting-opt-in-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n<div id="content" class="style-scope ytd-sponsorships-gifting-opt-in-renderer">\n  <div id="header" class="style-scope ytd-sponsorships-gifting-opt-in-renderer">\n    <yt-img-shadow class="thumbnail style-scope ytd-sponsorships-gifting-opt-in-renderer" thumbnail="[[data.thumbnail]]">\n    </yt-img-shadow>\n  </div>\n  <div id="optin" class="style-scope ytd-sponsorships-gifting-opt-in-renderer">\n    <div id="title" class="style-scope ytd-sponsorships-gifting-opt-in-renderer">\n      <yt-formatted-string class="title style-scope ytd-sponsorships-gifting-opt-in-renderer" text="[[data.title]]">\n      </yt-formatted-string>\n      <yt-formatted-string class="subtitle style-scope ytd-sponsorships-gifting-opt-in-renderer" text="[[data.subtitle]]">\n      </yt-formatted-string>\n    </div>\n    <div id="toggle" class="style-scope ytd-sponsorships-gifting-opt-in-renderer">\n      <ytcp-ve track-click="true" ve-type="[[ve.client.SPONSORSHIPS_GIFTING_OPT_IN_DIALOG_TOGGLE_BUTTON]]" class="style-scope ytd-sponsorships-gifting-opt-in-renderer">\n        <tp-yt-paper-toggle-button class="toggle style-scope ytd-sponsorships-gifting-opt-in-renderer" checked="[[isToggleChecked]]" on-click="handleOptInToggle">\n        </tp-yt-paper-toggle-button>\n      </ytcp-ve>\n    </div>\n  </div>\n  <div class="separator style-scope ytd-sponsorships-gifting-opt-in-renderer"></div>\n  <yt-formatted-string class="disclaimer style-scope ytd-sponsorships-gifting-opt-in-renderer" text="[[data.disclaimer]]">\n  </yt-formatted-string>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return PrP=F},{mode:1});var Jng;var ab=function(){return _.n.apply(this,arguments)||this};
_.k(ab,_.n);_.N=ab.prototype;_.N.configureRendererStamper=function(){return{"data.header.sponsorshipsHeaderRenderer.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}},"data.header.sponsorshipsHeaderRenderer.menuButton":{id:"action-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.alert":{id:"alert-renderer",mapping:{sponsorshipsAlertRenderer:{component:"ytd-sponsorships-alert-renderer"}}}}};
_.N.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.N.detached=function(){this.playerElement.stop()};
_.N.onYtServiceRequestCompleted=function(){_.dW(this.hostElement,"yt-close-popup-action",["ytd-sponsorships-offer-renderer"])};
_.N.onYtServiceRequestError=function(F){_.R$(this.hostElement,F.detail.error.message)};
_.N.onYtPopupOpened=function(){this.scrollable&&(this.scrollable.scrollTarget.scrollTop=0)};
_.N.onYtPopupClosed=function(){this.playerElement.stop();this.backgroundPlayerElement&&this.isBackgroundPlayerAlreadyPlaying&&!this.tierRenderer.purchaseButtonClicked&&this.backgroundPlayerElement.play();this.set("selectedTier",0)};
_.N.getTier=function(F,W){return!F||!F.tiers||W<0?null:_.D(F.tiers[W],xCK)};
_.N.moreThanOne=function(F){return!!(F&&F.length>1)};
_.N.tierOverviewTap=function(F){var W=this;this.selectedTier=F.model.index;_.wT(this,function(){_.hF(W.hostElement,"yt-refit")})};
_.N.computeSelectedClass=function(F,W){return this.isSelected(F,W)?"selected":""};
_.N.computeButtonAriaPressed=function(F,W){return this.isSelected(F,W)?"true":"false"};
_.N.isSelected=function(F,W){return F===W};
_.N.onDataChanged=function(){_.Z(this.hostElement).querySelector("#header-overlay").style.visibility="";_.Z(this.hostElement).querySelector("#header-overlay").classList.remove("header-overlay-transition");this.offerVideo=this.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.externalVideoId");this.setHeaderBackground();this.initializeVe(this.offerVideo);this.offerVideo&&this.setupVideoPlayer(this.offerVideo);for(var F=_.U(this.hostElement.querySelectorAll("yt-img-shadow")),
W=F.next();!W.done;W=F.next())W.value.onShow();var E;this.set("selectedTier",(E=this.get("data.targetTierIndex"))!=null?E:0);var h;(F=(h=this.data)==null?void 0:h.onVisible)&&this.ytComponentBehavior.resolveCommand(F)};
_.N.initializeVe=function(F){var W=_.JR(),E=_.Pf(),h=this.get("data.trackingParams");E&&W&&(this.screenLayer=4,W=_.yn(_.IoR)(void 0,69877,{clientScreenNonce:W,visualElement:E},void 0,void 0,void 0),_.$ob(W,69877,4),E=_.Pf(4),h&&E&&(h=_.ve(h),_.y7(W,E,h),F&&(this.offerVideoVe=_.LQ(74659),_.y7(W,h,this.offerVideoVe))))};
_.N.setHeaderBackground=function(){var F=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");_.Z(this.hostElement).querySelector("#background-image-layer").style.backgroundColor=_.XC(F);if(F=this.getHeaderImage())F=_.m_(F,screen.width),_.Z(this.hostElement).querySelector("#background-image-layer").style.backgroundImage="url("+F+")"};
_.N.getHeaderImage=function(){var F=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImageDarkMode.thumbnails");return this.isAppDarkTheme()&&F?F:this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails")};
_.N.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.N.setupVideoPlayer=function(F){var W=this,E,h,d,V;return _.e(function(R){if(R.nextAddress==1)return E=W.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.autoplay"),h=W.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.playerWatchEndpointParams"),_.c("kevlar_player_update_killswitch")?W.playerElement.update({args:{autoplay:E,video_id:F,player_params:h}}):W.playerElement.loadVideoWithPlayerVars({autoplay:E,video_id:F,player_params:h}),
_.Q(R,W.playerElement.getPlayerPromise(),2);d=R.yieldResult;d.addEventListener("onStateChange",function(M){W.onPlayerStateChange(M)});
d.setScreenLayer(W.screenLayer);(V=_.JR(4))&&W.offerVideoVe&&_.is(V,W.offerVideoVe);E&&(W.pauseOtherPlayers(),W.playerElement.focusOnPlayer(),W.playerElement.getPlayer().hideControls(),_.sB(_.P0,function(){W.fadeOutHeaderOverlay()},4E3));
_.gG(R)})};
_.N.onPlayerStateChange=function(F){F===1?this.backgroundPlayerElement&&(F=this.backgroundPlayerElement.player_.getPlayerState(),F!==1&&F!==3||this.backgroundPlayerElement.pause()):F===0&&(_.Z(this.hostElement).querySelector("#header-overlay").style.visibility="",this.playerElement.getPlayer().hideControls(),_.Z(this.hostElement).querySelector("#header-overlay").classList.remove("header-overlay-transition"))};
_.N.fadeOutHeaderOverlay=function(){_.Z(this.hostElement).querySelector("#header-overlay").classList.add("header-overlay-transition");this.playerElement.getPlayer().showControls()};
_.N.onHeaderTap=function(){if(this.offerVideo){_.Z(this.hostElement).querySelector("#header-overlay").style.visibility="hidden";this.pauseOtherPlayers();var F;((F=this.playerElement.player_)==null?void 0:F.getPlayerState())===1?this.playerElement.pause():this.playerElement.play();(F=_.JR(4))&&this.offerVideoVe&&_.oj(F,this.offerVideoVe)}};
_.N.getBackgroundImageLayerClass=function(F){return F?"background-image-layer-with-video":""};
_.N.getHeaderClass=function(F){return F?"header-with-video":""};
_.N.getHeaderOverlayClass=function(F){return F?"header-overlay-with-video":""};
_.N.getTitleContainerClass=function(F,W){return F?"title-container-with-video":W?"title-container-without-video-flexible":"title-container-without-video"};
_.N.tierTitleDisplayStatus=function(F){return this.moreThanOne(F)?"hide":"show"};
_.N.pauseOtherPlayers=function(){this.isMiniplayerActive()?this.backgroundPlayerElement=_.WZ().resolve(_.GF).getPlayerElement():this.backgroundPlayerElement=_.WS();if(this.backgroundPlayerElement&&this.backgroundPlayerElement.player_){var F=this.backgroundPlayerElement.player_.getPlayerState();this.isBackgroundPlayerAlreadyPlaying=F===1||F===3;this.backgroundPlayerElement.pause()}};
_.N.isMiniplayerActive=function(){return _.WZ().resolve(_.GF).isMiniplayerActive()};
_.N.selectedTierChangedForBinding=function(){this.hostElement.dispatchEvent(new _.yR("selected-tier-changed",this.selectedTier))};
ab.prototype.selectedTierChangedForBinding=ab.prototype.selectedTierChangedForBinding;ab.prototype.onDataChanged=ab.prototype.onDataChanged;ab.prototype.onYtPopupClosed=ab.prototype.onYtPopupClosed;ab.prototype.onYtPopupOpened=ab.prototype.onYtPopupOpened;ab.prototype.onYtServiceRequestError=ab.prototype.onYtServiceRequestError;ab.prototype.onYtServiceRequestCompleted=ab.prototype.onYtServiceRequestCompleted;
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],ab.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],ab.prototype,"ytComponentBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],ab.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],ab.prototype,"data",void 0);_.T([_.O({value:0}),_.Y("design:type",Number)],ab.prototype,"selectedTier",void 0);
_.T([_.O({value:""}),_.Y("design:type",String)],ab.prototype,"offerVideo",void 0);_.T([_.O({value:!1}),_.Y("design:type",Boolean)],ab.prototype,"isBackgroundPlayerAlreadyPlaying",void 0);_.T([_.O({value:function(){return"ytd-sponsorships-offer-with-video-renderer-"+_.Ue(this)}}),
_.Y("design:type",String)],ab.prototype,"playerId",void 0);_.T([_.gQ("tp-yt-paper-dialog-scrollable"),_.Y("design:type",Object)],ab.prototype,"scrollable",void 0);_.T([_.gQ("ytd-sponsorships-tier-renderer"),_.Y("design:type",Object)],ab.prototype,"tierRenderer",void 0);_.T([_.gQ("#player"),_.Y("design:type",Object)],ab.prototype,"playerElement",void 0);
_.T([_.R4("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],ab.prototype,"onYtServiceRequestCompleted",null);_.T([_.R4("yt-service-request-error"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],ab.prototype,"onYtServiceRequestError",null);
_.T([_.R4("yt-popup-opened"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ab.prototype,"onYtPopupOpened",null);_.T([_.R4("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ab.prototype,"onYtPopupClosed",null);_.T([_.Cz("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ab.prototype,"onDataChanged",null);
_.T([_.ea("selectedTier"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ab.prototype,"selectedTierChangedForBinding",null);ab=_.T([_.y({disableElementRegistration:!0,is:"ytd-sponsorships-offer-renderer"})],ab);
_.r(ab,"ytd-sponsorships-offer-renderer",function(){if(Jng!==void 0)return Jng;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-offer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="top-bar" class="style-scope ytd-sponsorships-offer-renderer">\n  <div id="titlebar-text" class="style-scope ytd-sponsorships-offer-renderer">\n    <yt-formatted-string text="[[data.header.sponsorshipsHeaderRenderer.titlebarText]]" class="style-scope ytd-sponsorships-offer-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="action-menu" class="style-scope ytd-sponsorships-offer-renderer"></div>\n  <div id="dismiss-button" class="style-scope ytd-sponsorships-offer-renderer"></div>\n</div>\n<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-sponsorships-offer-renderer">\n  <div id="header" class$="[[getHeaderClass(offerVideo)]] style-scope ytd-sponsorships-offer-renderer">\n    <div id="header-overlay" on-click="onHeaderTap" class="style-scope ytd-sponsorships-offer-renderer">\n      <div id="header-title-overlay" class$="[[getHeaderOverlayClass(offerVideo)]] style-scope ytd-sponsorships-offer-renderer">\n        <div id="avatar-container" class="style-scope ytd-sponsorships-offer-renderer">\n          <yt-img-shadow class="avatar style-scope ytd-sponsorships-offer-renderer" fit="true" thumbnail="[[data.header.sponsorshipsHeaderRenderer.channelImage]]">\n          </yt-img-shadow>\n        </div>\n        <div class$="title-container [[getTitleContainerClass(offerVideo,\n            data.header.sponsorshipsHeaderRenderer.backgroundImageDarkMode)]] style-scope ytd-sponsorships-offer-renderer">\n          <yt-formatted-string class="channel-title style-scope ytd-sponsorships-offer-renderer" text="[[data.header.sponsorshipsHeaderRenderer.superTitle]]">\n          </yt-formatted-string>\n          <yt-formatted-string class="title style-scope ytd-sponsorships-offer-renderer" text="[[data.header.sponsorshipsHeaderRenderer.title]]">\n          </yt-formatted-string>\n          <yt-formatted-string class="subtitle style-scope ytd-sponsorships-offer-renderer" text="[[data.header.sponsorshipsHeaderRenderer.subtitle]]">\n          </yt-formatted-string>\n        </div>\n      </div>\n      <div id="background-image-layer" class$="[[getBackgroundImageLayerClass(offerVideo)]] style-scope ytd-sponsorships-offer-renderer"></div>\n    </div>\n    <div id="video-container" hidden$="[[!offerVideo]]" class="style-scope ytd-sponsorships-offer-renderer">\n      <ytd-player id="player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SPONSORSHIPS_OFFER" player-id="[[playerId]]" class="style-scope ytd-sponsorships-offer-renderer">\n      </ytd-player>\n    </div>\n  </div>\n  <div id="alert-renderer" hidden="[[!data.alert]]" class="style-scope ytd-sponsorships-offer-renderer"></div>\n  <div id="content" class="style-scope ytd-sponsorships-offer-renderer">\n    <template is="dom-if" if="[[moreThanOne(data.tiers)]]" class="style-scope ytd-sponsorships-offer-renderer">\n      <div id="tier-overview" class="style-scope ytd-sponsorships-offer-renderer">\n        <template is="dom-repeat" items="[[data.tiers]]" as="tier" class="style-scope ytd-sponsorships-offer-renderer">\n          <button class$="offer-overview-item [[computeSelectedClass(index, selectedTier)]] style-scope ytd-sponsorships-offer-renderer" aria-pressed="[[computeButtonAriaPressed(index, selectedTier)]]" on-click="tierOverviewTap">\n            <yt-formatted-string class="title style-scope ytd-sponsorships-offer-renderer" text="[[tier.sponsorshipsTierRenderer.title]]">\n            </yt-formatted-string>\n            <yt-formatted-string class="subtitle style-scope ytd-sponsorships-offer-renderer" text="[[tier.sponsorshipsTierRenderer.subtitle]]">\n            </yt-formatted-string>\n          </button>\n        </template>\n      </div>\n    </template>\n    <ytd-sponsorships-tier-renderer id="tier" data="[[getTier(data, selectedTier)]]" titledisplaystatus="[[tierTitleDisplayStatus(data.tiers)]]" class="style-scope ytd-sponsorships-offer-renderer">\n    </ytd-sponsorships-tier-renderer>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return Jng=F},{mode:_.E6("kevlar_poly_si_batch_j077")?1:2});var aM$;var fF=function(){var F=_.n.apply(this,arguments)||this;F.buttonOverrides={type:"filled",style:"mono"};return F};
_.k(fF,_.n);fF.prototype.configureRendererStamper=function(){return{"data.content.sponsorshipsPromotionChannelRenderer.primaryButton":{id:"primary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0},properties:{overrides:"[[buttonOverrides]]"}}}},"data.header.sponsorshipsPromotionHeaderRenderer.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
fF.prototype.backgroundColorChanged=function(){var F,W,E,h=(W=_.D((F=this.data)==null?void 0:F.content,khg))==null?void 0:(E=W.backgroundColor)==null?void 0:E.backgroundColor;h&&(F=_.ZP(h),_.Z(this.hostElement).querySelector("#banner").style.backgroundColor=F,_.Z(this.hostElement).querySelector("#abstract-art").style.backgroundColor=F)};
fF.prototype.attached=function(){this.JSC$18315_scroller&&(this.JSC$18315_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18315_scroller.attached&&typeof this.JSC$18315_scroller.attached==="function"&&this.JSC$18315_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
fF.prototype.backgroundColorChanged=fF.prototype.backgroundColorChanged;_.T([_.O(),_.Y("design:type",Object)],fF.prototype,"data",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],fF.prototype,"ytRendererstamperBehavior",void 0);_.T([_.gQ("#scroller"),_.Y("design:type",Object)],fF.prototype,"JSC$18315_scroller",void 0);_.T([_.O(),_.Y("design:type",Object)],fF.prototype,"buttonOverrides",void 0);
_.T([_.ea("data.content.sponsorshipsPromotionChannelRenderer.backgroundColor"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],fF.prototype,"backgroundColorChanged",null);fF=_.T([_.y({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-celebration-renderer"})],fF);
_.r(fF,"ytd-sponsorships-promotion-celebration-renderer",function(){if(aM$!==void 0)return aM$;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-promotion-celebration-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-sponsorships-promotion-celebration-renderer">\n   <div id="dismiss-button" class="style-scope ytd-sponsorships-promotion-celebration-renderer"></div>\n   <div id="header" class="style-scope ytd-sponsorships-promotion-celebration-renderer">\n    <yt-img-shadow class="premium-icon style-scope ytd-sponsorships-promotion-celebration-renderer" thumbnail="[[data.header.sponsorshipsPromotionHeaderRenderer.icon]]">\n    </yt-img-shadow>\n    <yt-img-shadow class="illustration style-scope ytd-sponsorships-promotion-celebration-renderer" hidden="[[!data.header.sponsorshipsPromotionHeaderRenderer.illustrationThumbnail]]" thumbnail="[[data.header.sponsorshipsPromotionHeaderRenderer.illustrationThumbnail]]">\n    </yt-img-shadow>\n    <yt-formatted-string class="title style-scope ytd-sponsorships-promotion-celebration-renderer" text="[[data.header.sponsorshipsPromotionHeaderRenderer.title]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="subtitle style-scope ytd-sponsorships-promotion-celebration-renderer" split-lines="" text="[[data.header.sponsorshipsPromotionHeaderRenderer.subtitle]]">\n    </yt-formatted-string>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n  <div id="banner" class="style-scope ytd-sponsorships-promotion-celebration-renderer">\n    <div id="content" class="style-scope ytd-sponsorships-promotion-celebration-renderer">\n      <div id="content-background" class="banner-shade style-scope ytd-sponsorships-promotion-celebration-renderer">\n        <yt-img-shadow id="abstract-art" fit-height="" thumbnail="[[data.content.sponsorshipsPromotionChannelRenderer.backgroundImage]]" class="style-scope ytd-sponsorships-promotion-celebration-renderer">\n        </yt-img-shadow>\n      </div>\n      <div id="subcontent" class="style-scope ytd-sponsorships-promotion-celebration-renderer">\n        <yt-img-shadow class="channel-image style-scope ytd-sponsorships-promotion-celebration-renderer" fit="" thumbnail="[[data.content.sponsorshipsPromotionChannelRenderer.channelImage]]">\n        </yt-img-shadow>\n        <div class="channel-info style-scope ytd-sponsorships-promotion-celebration-renderer">\n          <yt-formatted-string class="channel-info-title style-scope ytd-sponsorships-promotion-celebration-renderer" ellipsis-truncate="" text="[[data.content.sponsorshipsPromotionChannelRenderer.title]]">\n          </yt-formatted-string>\n          <yt-formatted-string class="channel-title style-scope ytd-sponsorships-promotion-celebration-renderer" ellipsis-truncate="" text="[[data.content.sponsorshipsPromotionChannelRenderer.channelTitle]]">\n          </yt-formatted-string>\n          <yt-formatted-string class="membership-detail style-scope ytd-sponsorships-promotion-celebration-renderer" ellipsis-truncate="" hidden="[[!data.content.sponsorshipsPromotionChannelRenderer.membershipDetail]]" text="[[data.content.sponsorshipsPromotionChannelRenderer.membershipDetail]]">\n          </yt-formatted-string>\n        </div>\n      </div>\n    </div>\n    <div id="button-bar" class="banner-shade style-scope ytd-sponsorships-promotion-celebration-renderer">\n      <div id="primary-button" class="style-scope ytd-sponsorships-promotion-celebration-renderer"></div>\n    </div>\n  </div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return aM$=F},{mode:_.E6("kevlar_poly_si_batch_j077")?1:2});var fMu;var OSq;var OA=function(){return _.n.apply(this,arguments)||this};
_.k(OA,_.n);OA.prototype.getValue=function(){return this.checkbox.checked?this.data.params:void 0};
OA.prototype.computeIsInitiallyChecked=function(F){return F===1};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],OA.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],OA.prototype,"data",void 0);_.T([_.gQ("#checkbox"),_.Y("design:type",Object)],OA.prototype,"checkbox",void 0);OA=_.T([_.y({disableElementRegistration:!0,is:"ytd-subscription-toggle-option-renderer"})],OA);
_.r(OA,"ytd-subscription-toggle-option-renderer",function(){if(OSq!==void 0)return OSq;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-subscription-toggle-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-checkbox id="checkbox" checked="[[computeIsInitiallyChecked(data.initialValue)]]" class="style-scope ytd-subscription-toggle-option-renderer">\n  [[getSimpleString(data.label)]]\n</tp-yt-paper-checkbox>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return OSq=F},{mode:1});var bF=function(){var F=_.n.apply(this,arguments)||this;F.darkerDarkTheme=_.c("web_darker_dark_theme");F.actionMap={"yt-signal-action-submit-notification-options-form":"handleSignalActionSubmitNotificationOptionsForm"};return F};
_.k(bF,_.n);bF.prototype.configureRendererStamper=function(){return{"data.secondaryOptions":{id:"secondary-options",mapping:{subscriptionToggleOptionRenderer:"ytd-subscription-toggle-option-renderer"}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}},"data.confirmButton":{id:"confirm-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
bF.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
bF.prototype.handleSignalActionSubmitNotificationOptionsForm=function(){var F=_.Z(this.hostElement).querySelector("#options").selected;F=this.data.options[F].subscriptionRadioOptionRenderer.serviceEndpoint;var W=_.Z(this.hostElement).querySelector("ytd-subscription-toggle-option-renderer");W&&F&&F.modifyChannelNotificationPreferenceEndpoint&&(W=W.getValue())&&(F.modifyChannelNotificationPreferenceEndpoint.secondaryParams=[W]);_.WZ().resolve(_.EJ).resolveCommand(F,{form:{element:this.hostElement}});
_.dW(this.hostElement,"yt-close-popup-action")};
_.Sn.Object.defineProperties(bF.prototype,{initialIndex:{configurable:!0,enumerable:!0,get:function(){if(!this.data||!this.data.options)return null;for(var F=this.data.options,W=0;W<F.length;W++){var E=F[W].subscriptionRadioOptionRenderer;if(E&&E.selected)return W}return null}}});
_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],bF.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],bF.prototype,"ytActionHandlerBehavior",void 0);_.T([_.J(_.B$.YtEventForwardingBehavior),_.Y("design:type",Object)],bF.prototype,"eventForwardingBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],bF.prototype,"ytRendererBehavior",void 0);
_.T([_.O(),_.Y("design:type",Object)],bF.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],bF.prototype,"darkerDarkTheme",void 0);_.T([_.a("data.options"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],bF.prototype,"initialIndex",null);bF=_.T([_.y({disableElementRegistration:!0,is:"ytd-subscription-notification-options-renderer"})],bF);
_.r(bF,"ytd-subscription-notification-options-renderer",function(){if(fMu!==void 0)return fMu;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-subscription-notification-options-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" class="style-scope ytd-subscription-notification-options-renderer">[[getSimpleString(data.title)]]</div>\n<div id="body" class="style-scope ytd-subscription-notification-options-renderer">\n  <tp-yt-paper-radio-group id="options" selected="[[initialIndex]]" class="style-scope ytd-subscription-notification-options-renderer">\n    <template is="dom-repeat" items="[[data.options]]" class="style-scope ytd-subscription-notification-options-renderer">\n      <tp-yt-paper-radio-button name="[[index]]" value="[[item.subscriptionRadioOptionRenderer.serviceEndpoint]]" class="style-scope ytd-subscription-notification-options-renderer">\n        <div class="content style-scope ytd-subscription-notification-options-renderer">\n          <div class="label style-scope ytd-subscription-notification-options-renderer">\n            [[getSimpleString(item.subscriptionRadioOptionRenderer.text)]]\n          </div>\n          <yt-icon icon="[[item.subscriptionRadioOptionRenderer.choiceIcon.iconType]]" class="style-scope ytd-subscription-notification-options-renderer">\n          </yt-icon>\n        </div>\n      </tp-yt-paper-radio-button>\n    </template>\n  </tp-yt-paper-radio-group>\n  <div id="secondary-options" class="style-scope ytd-subscription-notification-options-renderer"></div>\n</div>\n<div class="buttons style-scope ytd-subscription-notification-options-renderer">\n  <div id="cancel-button" class="style-scope ytd-subscription-notification-options-renderer"></div>\n  <div id="confirm-button" class="style-scope ytd-subscription-notification-options-renderer"></div>\n</div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return fMu=F},{mode:1});var bSg;var lF=function(){return _.n.apply(this,arguments)||this};
_.k(lF,_.n);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],lF.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],lF.prototype,"data",void 0);lF=_.T([_.y({disableElementRegistration:!0,is:"ytd-tvfilm-offer-groups-renderer"})],lF);
_.r(lF,"ytd-tvfilm-offer-groups-renderer",function(){if(bSg!==void 0)return bSg;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-tvfilm-offer-groups-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" items="[[data.offerGroups]]" class="style-scope ytd-tvfilm-offer-groups-renderer">\n  <div class="offer-group style-scope ytd-tvfilm-offer-groups-renderer">\n    <div class="offer-header style-scope ytd-tvfilm-offer-groups-renderer">\n      <h2 class="offer-title style-scope ytd-tvfilm-offer-groups-renderer">[[getSimpleString(item.offerGroupRenderer.title)]]</h2>\n      <h3 class="style-scope ytd-tvfilm-offer-groups-renderer">\n        <yt-formatted-string class="offer-subtitle standard-text style-scope ytd-tvfilm-offer-groups-renderer" split-lines="" text="[[item.offerGroupRenderer.subtitle]]">\n        </yt-formatted-string>\n      </h3>\n    </div>\n    <div class="offer-list style-scope ytd-tvfilm-offer-groups-renderer">\n      <template is="dom-repeat" items="[[item.offerGroupRenderer.offers]]" class="style-scope ytd-tvfilm-offer-groups-renderer">\n        <ytd-button-renderer class="offer-button style-scope ytd-tvfilm-offer-groups-renderer" data="[[item.buttonRenderer]]" dialog-dismiss="true" ellipsis-truncate="">\n        </ytd-button-renderer>\n      </template>\n    </div>\n  </div>\n</template>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return bSg=F},{mode:1});var lM$;var nF=function(){var F=_.n.apply(this,arguments)||this;F.darkerDarkTheme=_.c("web_darker_dark_theme");return F};
_.k(nF,_.n);_.N=nF.prototype;_.N.configureRendererStamper=function(){return{"data.offers":{id:"offers",mapping:{tvfilmOffersRenderer:{component:"ytd-tvfilm-offer-groups-renderer"}}},"data.coupon":{id:"coupon",mapping:{ypcCouponRenderer:"ytd-ypc-coupon-renderer"}},"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayTimeStatusRenderer:"ytd-thumbnail-overlay-time-status-renderer"}}}};
_.N.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("aria-label")||this.hostElement.setAttribute("aria-label","Offers")};
_.N.computeThumbnailClass=function(F){return F.thumbnailOverlays?F.isShow?"thumbnail-show":"thumbnail-movie":F.isShow?"thumbnail-no-overlay-show":"thumbnail-no-overlay-movie"};
_.N.computeCommerceSectionClass=function(F){return F.offers&&F.offers.tvfilmOffersRenderer?"commerce-section-groups":"commerce-section-tabs"};
_.N.computeTitleClass=function(F){return F.offers&&F.offers.tvfilmOffersRenderer?"title-with-offer-groups":""};
_.N.onDataChanged=function(){[].concat(_.x9(this.hostElement.querySelectorAll("yt-img-shadow"))).forEach(function(F){F.onShow()})};
nF.prototype.onDataChanged=nF.prototype.onDataChanged;_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],nF.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],nF.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],nF.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],nF.prototype,"darkerDarkTheme",void 0);
_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],nF.prototype,"onDataChanged",null);nF=_.T([_.y({disableElementRegistration:!0,is:"ytd-ypc-offers-overlay-renderer"})],nF);
_.r(nF,"ytd-ypc-offers-overlay-renderer",function(){if(lM$!==void 0)return lM$;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ypc-offers-overlay-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="spinner" hidden="[[!data.showLoadingSpinner]]" class="style-scope ytd-ypc-offers-overlay-renderer">\n  <tp-yt-paper-spinner active="[[data.showLoadingSpinner]]" class="style-scope ytd-ypc-offers-overlay-renderer"></tp-yt-paper-spinner>\n</div>\n<div class="content style-scope ytd-ypc-offers-overlay-renderer" hidden="[[data.showLoadingSpinner]]">\n  <div class="header style-scope ytd-ypc-offers-overlay-renderer" hidden="[[!data.title]]">\n    <div class="metadata style-scope ytd-ypc-offers-overlay-renderer">\n      <div class$="title-badge [[computeTitleClass(data)]] style-scope ytd-ypc-offers-overlay-renderer">\n        [[getSimpleString(data.title)]]\n      </div>\n    </div>\n    <template is="dom-if" if="[[data.title]]" class="style-scope ytd-ypc-offers-overlay-renderer">\n      <ytd-button-renderer class="dismiss-button style-scope ytd-ypc-offers-overlay-renderer" data="[[data.dismissButton.buttonRenderer]]" dialog-dismiss="true">\n      </ytd-button-renderer>\n    </template>\n  </div>\n\n  <div class="content-dismiss-section style-scope ytd-ypc-offers-overlay-renderer">\n    <div id="thumbnail-commerce-section" class="style-scope ytd-ypc-offers-overlay-renderer">\n      <div id="thumbnail" class$="[[computeThumbnailClass(data)]] style-scope ytd-ypc-offers-overlay-renderer">\n        <yt-img-shadow id="thumbnail-image" fit="" thumbnail="[[data.thumbnail]]" class="style-scope ytd-ypc-offers-overlay-renderer">\n        </yt-img-shadow>\n        <div id="overlays" class="style-scope ytd-ypc-offers-overlay-renderer"></div>\n      </div>\n      <div id="commerce-metadata-section" class$="[[computeCommerceSectionClass(data)]] style-scope ytd-ypc-offers-overlay-renderer">\n        <div id="commerce-section" class="style-scope ytd-ypc-offers-overlay-renderer">\n          <div id="offers" class="style-scope ytd-ypc-offers-overlay-renderer"></div>\n        </div>\n        <div id="badges-metadata-section" hidden="[[!data.badges]]" class="style-scope ytd-ypc-offers-overlay-renderer">\n          <hr class="metadata-separator-line style-scope ytd-ypc-offers-overlay-renderer">\n          <ytd-badge-supported-renderer class="left-aligned-badges style-scope ytd-ypc-offers-overlay-renderer" badges="[[data.badges]]">\n          </ytd-badge-supported-renderer>\n          <div class="subtitle standard-text style-scope ytd-ypc-offers-overlay-renderer">[[getSimpleString(data.metadata)]]</div>\n        </div>\n      </div>\n    </div>\n    <template is="dom-if" if="[[!data.title]]" class="style-scope ytd-ypc-offers-overlay-renderer">\n      <ytd-button-renderer class="dismiss-button style-scope ytd-ypc-offers-overlay-renderer" data="[[data.dismissButton.buttonRenderer]]" dialog-dismiss="true">\n      </ytd-button-renderer>\n    </template>\n  </div>\n  <yt-formatted-string class="info-section standard-text style-scope ytd-ypc-offers-overlay-renderer" text="[[data.additionalInfo]]">\n  </yt-formatted-string>\n\n  <div class="footer style-scope ytd-ypc-offers-overlay-renderer">\n    <div id="coupon" class="style-scope ytd-ypc-offers-overlay-renderer"></div>\n    <ytd-button-renderer id="help-button" data="[[data.helpButton.buttonRenderer]]" class="style-scope ytd-ypc-offers-overlay-renderer">\n    </ytd-button-renderer>\n  </div>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return lM$=F},{mode:_.E6("kevlar_poly_si_batch_j028")?1:2});var n66;var ynw=function(){this.usedMethods=new Set};
ynw.prototype.add=function(F){this.usedMethods.add(F)};
ynw.prototype.reset=function(){this.usedMethods.clear()};var rnq=function(F,W){this.query=F;this.previousSearchQuery=W;this.id=j8K++;if(!iSP){W=_.b0("SBOX_SETTINGS");F="https://"+((W==null?void 0:W.SEARCHBOX_HOST_OVERRIDE)||"suggestqueries-clients6.youtube.com")+"/complete/search?ds=yt";var E=W==null?void 0:W.REQUEST_LANGUAGE;E&&(F+="&hl="+E);(E=W==null?void 0:W.REQUEST_DOMAIN)&&(F+="&gl="+E);F+="&client=youtube&gs_ri=youtube";(E=W==null?void 0:W.SUGG_EXP_ID)&&(F+="&sugexp="+encodeURIComponent(E));(E=W==null?void 0:W.PSUGGEST_TOKEN)&&(F+="&tok="+E);(W=
W==null?void 0:W.SESSION_INDEX)&&(F+="&authuser="+W);_.c("desktop_enable_visual_suggest")&&(F+="&h=180&w=320&ytvs=1");iSP=F}},TqT=function(F){var W="q="+encodeURIComponent(F.query);
F.previousSearchQuery&&(W+="&pq="+encodeURIComponent(F.previousSearchQuery));return W},o6q=function(){var F=_.b0("SBOX_SETTINGS"),W={};
if(F==null?0:F.SEND_VISITOR_DATA)W["X-Goog-Visitor-Id"]=F==null?void 0:F.VISITOR_DATA;return W},GD8=function(F){var W=iSP;
W+="&gs_id="+F.id.toString(36);W+="&q="+encodeURIComponent(F.query);W+="&cp="+F.query.length;F.previousSearchQuery&&(W+="&pq="+encodeURIComponent(F.previousSearchQuery));(F=window.URLSearchParams?(new URLSearchParams(window.location.search)).get("v"):null)&&(W+="&video_id="+F);return W},j8K=0,iSP="";var YNT=_.w0.SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST,wh$=_.w0.SEARCH_ENTITY_SUGGESTION_MOVIE,uI6=_.w0.SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST,SNK=_.w0.SEARCH_ENTITY_SUGGESTION_TV_SHOW,phN=function(F,W){this.text=F;this.bold=W},m_P=function(F,W,E){this.input=W;
this.index=E;this.text="";this.suggestionSources={COMPLETE_SERVER:1};this.text=F[0];this.type=F[1];this.subtypes=F[2];var h;this.displayText=hS((h=F[3])==null?void 0:h.b);var d;this.ignoredPrefix=hS((d=F[3])==null?void 0:d.a);var V,R;this.hasNewVideo=((V=F[3])==null?void 0:(R=V.zam)==null?void 0:R.toString())==="true"?!0:!1;var M;this.visualSuggestUrl=(M=F[3])==null?void 0:M.zai;var g;this.entityType=hS((g=F[3])==null?void 0:g.zap);var t;this.entityName=hS((t=F[3])==null?void 0:t.zao);var C;W=hS((C=
F[3])==null?void 0:C.zaf);var B;this.entityMid=(B=F[3])==null?void 0:B.zae;C=Gru(this.subtypes,this.entityMid);if(W&&C){if(W){B="";switch(C){case "YOUTUBE_ENTITY_TYPE_SONG":B=uI6;break;case "YOUTUBE_ENTITY_TYPE_ALBUM":B=YNT;break;case "YOUTUBE_ENTITY_TYPE_TV_SHOW":B=SNK;break;case "YOUTUBE_ENTITY_TYPE_MOVIE":B=wh$}C=C==="YOUTUBE_ENTITY_TYPE_SONG"||C==="YOUTUBE_ENTITY_TYPE_ALBUM"?B+" \u2022  \u2022 "+W:W}else C="";this.entitySubtitle=C}var I;this.externalChannelId=(I=F[3])==null?void 0:I.zav},K3$=
function(F){var W=[],E,h=(E=F.displayText)!=null?E:F.text;
if(F.type===33)return W.push(new phN(h,!1)),W;if(h.length>=F.input.length&&h.substring(0,F.input.length)===F.input)W.push(new phN(F.input,!1)),W.push(new phN(h.substring(F.input.length),!0));else{var d=new Set(F.input.split(/\s/)),V=h.split(/\s/);W=V.map(function(R,M){return new phN(R.trim()+(M===V.length-1?"":" "),!d.has(R))})}return W};var Fq6=function(F){this.rawResponse=["",[],{}];this.suggestions=[];try{var W=JSON.parse(Y_w(F));if(typeof W==="object"&&W!==null)this.rawResponse=W;else{console.log("Suggest: Unexpected type from JSON.parse!");return}}catch(h){console.log("Suggest: Failed to parse SuggestResponse!");return}var E=this.rawResponse[0];this.suggestions=this.rawResponse[1].map(function(h,d){return new m_P(h,E,d)})};var WqK=function(){this.sessionNumber=this.startTime=-1;this.outOfSyncResponseCount=0;this.zeroPrefixSuggestionCount=-1;this.availableSuggestions=[];this.previousSuggestions={};this.selectedSuggestionIndex=-1;this.inputMethodsTracker=new ynw;this.zeroPrefixRoundTripTime=this.maxRoundTripTime=this.JSC$18351_totalRoundTripTime=0;this.roundTripTimeHistogram=Array.from({length:10}).fill(0);this.lastEditTime=this.firstEditTime=this.lastQueryBuildTime=-1;this.experimentTriggeredBeforeFinal=this.experimentTriggeredFinal=
!1},Eh6,hUF=function(){Eh6||(Eh6=new WqK);
return Eh6};
WqK.prototype.updateSuggestions=function(F){var W=this;this.availableSuggestions.forEach(function(E){W.previousSuggestions[E]=!0});
this.availableSuggestions=F.map(function(E){var h=E.type.toString();E.subtypes.length>0&&(h+="i"+E.subtypes.join("i"),h+="k"+E.suggestionSources.COMPLETE_SERVER.toString());return h})};
var d26=function(F,W){var E=Date.now();F.firstEditTime<0&&(F.firstEditTime=E);W&&(F.lastQueryBuildTime=E);F.lastEditTime=E};
WqK.prototype.reset=function(){this.startTime=Date.now();++this.sessionNumber;this.inputMethodsTracker.reset();this.selectedSuggestionIndex=-1;this.maxRoundTripTime=this.JSC$18351_totalRoundTripTime=this.outOfSyncResponseCount=0;this.roundTripTimeHistogram.fill(0);this.zeroPrefixSuggestionCount=this.lastQueryBuildTime=this.lastEditTime=this.firstEditTime=-1};
var NDg=function(F){var W="";F.availableSuggestions.forEach(function(d){delete F.previousSuggestions[d]});
for(var E=_.U(Object.keys(F.previousSuggestions)),h=E.next();!h.done;h=E.next())h=h.value,F.previousSuggestions[h]&&(W+=(W?"j":"")+h);return W},Vy$=function(F,W){var E=[];
W&&(E[1]=W.toString());E[0]="youtube";E[7]=Date.now()-F.startTime;E[6]=F.sessionNumber;F.zeroPrefixSuggestionCount>=0&&(E[33]=F.zeroPrefixSuggestionCount);E[13]=F.outOfSyncResponseCount;if(F.availableSuggestions.length>0){for(var h=W="",d=0,V=_.U(F.availableSuggestions),R=V.next();!R.done;R=V.next())R=R.value,R!==h&&(d>1&&(W+="l"+d),W+=(h?"j":"")+R,d=0,h=R),d+=1;d>1&&(W+="l"+d);E[3]=W}E[35]=NDg(F);F.selectedSuggestionIndex>=0&&(E[2]=F.selectedSuggestionIndex);var M;if(W=(M=_.b0("SBOX_SETTINGS"))==
null?void 0:M.SUGG_EXP_ID)E[19]=F.normalize(W),M=0,F.experimentTriggeredBeforeFinal&&(M|=1),F.experimentTriggeredFinal&&(M|=2),E[20]=M;E[26]=Array.from(F.inputMethodsTracker.usedMethods).join("j");if(F.JSC$18351_totalRoundTripTime>0){E[15]=F.JSC$18351_totalRoundTripTime;E[14]=F.maxRoundTripTime;M=[];for(d=W=0;d<10;d++)h=F.roundTripTimeHistogram[d],h===0?W++:(W>1?M.push(d+"-"+h):W===1?M.push("0j"+h):M.push(h.toString()),W=0);M=M.join("j");E[16]=M}F.zeroPrefixRoundTripTime>0&&(E[36]=F.zeroPrefixRoundTripTime);
F.lastQueryBuildTime>0&&(E[18]=F.lastQueryBuildTime-F.startTime);F.firstEditTime>0&&(E[4]=F.firstEditTime-F.startTime);F.lastEditTime>0&&(E[5]=F.lastEditTime-F.startTime);return E.join(".")};
WqK.prototype.normalize=function(F){return F.replaceAll(".","-")};
var U2F=[0,1,2,3,4,5,5,6,6,6,7,7,7,7,7,8,8,8,8,8];var yP=function(){var F=_.n.apply(this,arguments)||this;F.microphoneSpinnerActive=!1;F.noAnimations=!1;F.boundExitClick=function(){F.onExitButtonClick()};
F.speechOverlayClassName="";F.isLevelAnimating=!1;F.playCloseDialogAudioFeedback=!0;F.actionMap={"yt-speech-query-complete-action":"handleSpeechQueryCompleteAction"};return F};
_.k(yP,_.n);_.N=yP.prototype;_.N.configureRendererStamper=function(){return{"data.exitButton":{id:"exit-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundExitClick]]"}}}}}};
_.N.attached=function(){this.hostElement.setAttribute("dialog","true");this.manager=YzF()};
_.N.dataChanged=function(){this.logDialog()};
_.N.onPopupClosed=function(){if(this.manager){this.manager.reset();if(!this.playCloseDialogAudioFeedback){var F;(F=this.manager.audioPlayer)!=null&&(F.JSC$17641_audioEnabled=!1)}this.manager.stop();(F=this.manager.audioPlayer)!=null&&(F.JSC$17641_audioEnabled=!0);this.playCloseDialogAudioFeedback=!0}};
_.N.handleSpeechQueryCompleteAction=function(F){var W=F.navigationAction;W&&(F.trackingParams&&_.z4().graftServerVe(F.trackingParams,this.dialogVe,5),_.hF(this.hostElement,"yt-navigate",{endpoint:W,tempData:this.getNavigationParams(W),createScreenConfig:{parentLayer:5}}),this.playCloseDialogAudioFeedback=!1,this.closeDialog())};
_.N.onExitButtonClick=function(){this.closeDialog()};
_.N.onMicrophoneTap=function(){if(this.state==="listening"||this.state==="transcribing"){var F;if((F=this.manager)!=null){var W;(W=F.audioPlayer)==null||j0(W,"failure");F.setState("microphone-off");F.stop()}}else(F=this.manager)==null||F.start()};
_.N.transcriptionChanged=function(){var F,W;(((F=this.transcription)==null?0:F.low)||((W=this.transcription)==null?0:W.high))&&this.setState("transcribing",this.transcription)};
_.N.stateChanged=function(){this.setState(this.state,this.transcription)};
_.N.logDialog=function(){var F;(F=this.data)!=null&&F.trackingParams&&(F=_.z4(),_.QH(F,22678,void 0,{layer:5,parentLayer:0}),this.dialogVe=F.graftServerVe(this.data.trackingParams,void 0,5))};
_.N.getNavigationParams=function(F){var W={};if(_.c("web_yt_searchbox")){var E=hUF();E.inputMethodsTracker.add(6);E=Vy$(E,15);W.gs_l=E;var h;W.oq=((h=_.D(F,_.vB))==null?void 0:h.query)||""}else if(F=window.ytvoicesearchloggingparams){if(F=F())W.oq=F.oq,W.gs_l=F.gs_l}else _.i0(Error("ll"));return W};
_.N.closeDialog=function(){_.dW(this.hostElement,"yt-close-popup-action",["ytd-voice-search-dialog-renderer"])};
_.N.setState=function(F,W){if(this.data){var E=this.data,h={};switch(F){case "listening":h={headerText:E.placeholderHeader,microphoneState:"listening",microphoneAriaLabel:E.microphoneButtonAriaLabel};break;case "timeout":h={headerText:E.promptHeader,microphoneState:"try-again",microphoneLabel:E.promptMicrophoneLabel,microphoneAriaLabel:E.promptMicrophoneLabel};break;case "microphone-off":h={headerText:E.microphoneOffPromptHeader,microphoneState:"try-again",microphoneLabel:E.promptMicrophoneLabel,
microphoneAriaLabel:E.promptMicrophoneLabel};break;case "transcribing":(W==null?0:W.low)||(W==null?0:W.high)?h={transcriptionLow:W==null?void 0:W.low,transcriptionHigh:W==null?void 0:W.high,microphoneState:"speaking",microphoneAriaLabel:E.microphoneButtonAriaLabel}:h={headerText:E.placeholderHeader,microphoneState:"speaking",microphoneAriaLabel:E.microphoneButtonAriaLabel};break;case "processing":h={headerText:E.loadingHeader,microphoneState:"processing",microphoneAriaLabel:E.microphoneButtonAriaLabel};
break;case "offline":h={headerText:E.connectionErrorHeader,microphoneState:"try-again",microphoneLabel:E.connectionErrorMicrophoneLabel,microphoneAriaLabel:E.connectionErrorMicrophoneLabel};break;case "permission":h={headerText:E.permissionsHeader,bodyLine1:E.permissionsSubtext,microphoneState:"try-again",microphoneAriaLabel:E.permissionsSubtext};break;case "permission-denied":h={headerText:E.disabledHeader,bodyLine1:E.disabledSubtext,microphoneState:"try-again",microphoneAriaLabel:E.disabledSubtext}}h.className=
F;this.speechOverlayState=h;this.setClass(this.speechOverlayState.className);this.setMicrophoneState(this.speechOverlayState.microphoneState)}};
_.N.setMicrophoneState=function(F){var W=this.isLevelAnimating;this.isLevelAnimating=F==="speaking";!W&&this.isLevelAnimating&&this.runLevelAnimation();this.microphoneSpinnerActive=F==="processing"&&!this.noAnimations};
_.N.setClass=function(F){this.speechOverlayClassName&&_.Wm(this.hostElement,this.speechOverlayClassName,!1);F&&(this.speechOverlayClassName=F,_.Wm(this.hostElement,F,!0))};
_.N.runLevelAnimation=function(){var F=this;if(!this.noAnimations&&this.level)if(this.isLevelAnimating){var W=1+Math.random()*.75,E=Math.round(110+Math.random()*10);this.level.style.setProperty("transition","transform "+E/1E3+"s ease-in-out");this.level.style.setProperty("transform","scale("+W+")");_.P0.addJob(function(){F.runLevelAnimation()},3,E)}else this.level.style.removeProperty("opacity"),this.level.style.removeProperty("transition"),this.level.style.removeProperty("transform")};
yP.prototype.stateChanged=yP.prototype.stateChanged;yP.prototype.transcriptionChanged=yP.prototype.transcriptionChanged;yP.prototype.onPopupClosed=yP.prototype.onPopupClosed;yP.prototype.dataChanged=yP.prototype.dataChanged;_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],yP.prototype,"ytActionHandlerBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],yP.prototype,"ytRendererBehavior",void 0);
_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],yP.prototype,"rendererStamperBehavior",void 0);_.T([_.J(_.am),_.Y("design:type",Object)],yP.prototype,"ytdReduxBehavior",void 0);_.T([_.J(_.B$.YtEventForwardingBehavior),_.Y("design:type",Object)],yP.prototype,"eventForwardingBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],yP.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Object)],yP.prototype,"speechOverlayState",void 0);
_.T([_.O(),_.Y("design:type",Object)],yP.prototype,"microphoneSpinnerActive",void 0);_.T([_.O({type:_.c("kevlar_property_type_migration_killswitch")?Boolean:void 0,reflectToAttribute:!0}),_.Y("design:type",Object)],yP.prototype,"noAnimations",void 0);_.T([_.O({selector:function(F){var W;return(W=F.voiceSearch)==null?void 0:W.transcription}}),
_.Y("design:type",Object)],yP.prototype,"transcription",void 0);_.T([_.O({selector:function(F){var W;return(W=F.voiceSearch)==null?void 0:W.overlay}}),
_.Y("design:type",String)],yP.prototype,"state",void 0);_.T([_.O(),_.Y("design:type",Object)],yP.prototype,"boundExitClick",void 0);_.T([_.gQ("#microphone-levels"),_.Y("design:type",HTMLElement)],yP.prototype,"level",void 0);_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],yP.prototype,"dataChanged",null);_.T([_.R4("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],yP.prototype,"onPopupClosed",null);
_.T([_.Cz("transcription"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],yP.prototype,"transcriptionChanged",null);_.T([_.Cz("state"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],yP.prototype,"stateChanged",null);yP=_.T([_.y({disableElementRegistration:!0,is:"ytd-voice-search-dialog-renderer"})],yP);
_.r(yP,"ytd-voice-search-dialog-renderer",function(){if(n66!==void 0)return n66;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-voice-search-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-voice-search-dialog-renderer">\n  <div id="header-text" class="style-scope ytd-voice-search-dialog-renderer">\n    <div id="prompt" hidden="[[!speechOverlayState.headerText]]" class="style-scope ytd-voice-search-dialog-renderer">\n      [[getSimpleString(speechOverlayState.headerText)]]\n    </div>\n    <div id="transcription-high" class="style-scope ytd-voice-search-dialog-renderer">[[speechOverlayState.transcriptionHigh]]</div>\n    <div id="transcription-low" class="style-scope ytd-voice-search-dialog-renderer">[[speechOverlayState.transcriptionLow]]</div>\n  </div>\n  <div id="exit-button" class="style-scope ytd-voice-search-dialog-renderer"></div>\n</div>\n<div id="body" class="style-scope ytd-voice-search-dialog-renderer">\n  <div class="body-line style-scope ytd-voice-search-dialog-renderer">[[getSimpleString(speechOverlayState.bodyLine1)]]</div>\n  <div class="body-line style-scope ytd-voice-search-dialog-renderer">[[getSimpleString(speechOverlayState.bodyLine2)]]</div>\n</div>\n<div id="microphone" state$="[[speechOverlayState.microphoneState]]" class="style-scope ytd-voice-search-dialog-renderer">\n  <tp-yt-paper-spinner-lite active="[[microphoneSpinnerActive]]" class="style-scope ytd-voice-search-dialog-renderer">\n  </tp-yt-paper-spinner-lite>\n  <div id="microphone-container" class="style-scope ytd-voice-search-dialog-renderer">\n    <div id="microphone-pulse" class="style-scope ytd-voice-search-dialog-renderer"></div>\n    <div id="microphone-levels" class="style-scope ytd-voice-search-dialog-renderer"></div>\n    <div id="microphone-circle" aria-label$="[[getSimpleString(speechOverlayState.microphoneAriaLabel)]]" role="button" tabindex="0" on-tap="onMicrophoneTap" class="style-scope ytd-voice-search-dialog-renderer">\n      <tp-yt-paper-ripple class="style-scope ytd-voice-search-dialog-renderer"></tp-yt-paper-ripple>\n      <yt-icon icon="yt-icons:microphone_on" class="style-scope ytd-voice-search-dialog-renderer"></yt-icon>\n    </div>\n  </div>\n  <div id="microphone-label" class="style-scope ytd-voice-search-dialog-renderer">[[getSimpleString(speechOverlayState.microphoneLabel)]]</div>\n</div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return n66=F},{mode:1});var RUP;var jD=function(){var F=_.n.apply(this,arguments)||this;F.isOverlay=!1;F.hidden=!1;return F};
_.k(jD,_.n);_.N=jD.prototype;_.N.onPopupClosed=function(){this.toggleIconState(!1)};
_.N.computeIcon=function(){var F,W,E;return(W=_.D((F=this.data)==null?void 0:F.icon,$CP))==null?void 0:(E=W.icon)==null?void 0:E.iconType};
_.N.computeIconBadgeShape=function(){var F;return{iconBadgeType:"cart",iconBadgeText:(F=this.iconBadgeEntity)==null?void 0:F.badgeText,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.N.onClick=function(){var F;(F=this.data)!=null&&F.onClick&&(this.toggleIconState(!0),this.ytComponentBehavior.resolveCommand(this.data.onClick))};
_.N.computeHidden=function(F){return!F};
_.N.toggleIconState=function(F){this.iconButton&&(this.iconButton.pressed=F)};
jD.prototype.onPopupClosed=jD.prototype.onPopupClosed;_.T([_.J(_.am),_.Y("design:type",Object)],jD.prototype,"ytdReduxBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],jD.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],jD.prototype,"ytComponentBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],jD.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Object)],jD.prototype,"isOverlay",void 0);
_.T([_.O({computed:"computeHidden(iconBadgeEntity.isVisible)",reflectToAttribute:!0}),_.Y("design:type",Object)],jD.prototype,"hidden",void 0);_.T([_.O({selectorArgs:["data.iconBadgeEntityKey"],selector:function(F,W){return _.Mn(F.entities,"iconBadgeEntity",W)}}),
_.Y("design:type",Object)],jD.prototype,"iconBadgeEntity",void 0);_.T([_.gQ("yt-icon-button"),_.Y("design:type",HTMLButtonElement)],jD.prototype,"iconButton",void 0);_.T([_.R4("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],jD.prototype,"onPopupClosed",null);jD=_.T([_.y({disableElementRegistration:!0,is:"ytd-icon-badge-topbar-button-renderer"})],jD);
_.r(jD,"ytd-icon-badge-topbar-button-renderer",function(){if(RUP!==void 0)return RUP;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-icon-badge-topbar-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon-button id="icon" label="[[data.accessibilityData.accessibilityData.label]]" on-click="onClick" class="style-scope ytd-icon-badge-topbar-button-renderer">\n  <yt-icon-badge-shape data="[[computeIconBadgeShape(iconBadgeEntity, isOverlay)]]" icon="[[computeIcon(data)]]" class="style-scope ytd-icon-badge-topbar-button-renderer">\n  </yt-icon-badge-shape>\n</yt-icon-button>\n<tp-yt-paper-tooltip class="style-scope ytd-icon-badge-topbar-button-renderer">[[data.tooltip]]</tp-yt-paper-tooltip>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return RUP=F},{mode:1});var eU$;var iF=function(){var F=_.n.apply(this,arguments)||this;F.premiumOptions=[];F.darkerDarkTheme=_.c("web_darker_dark_theme");return F};
_.k(iF,_.n);iF.prototype.configureRendererStamper=function(){return{premiumOptions:{id:"premium-options",mapping:{settingsRadioOptionRenderer:{component:"ytd-settings-radio-option-renderer",noInjection:!0}}}}};
_.Sn.Object.defineProperties(iF.prototype,{hasPremiumOptions:{configurable:!0,enumerable:!0,get:function(){return!!this.premiumOptions}}});
_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],iF.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],iF.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Array)],iF.prototype,"premiumOptions",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],iF.prototype,"darkerDarkTheme",void 0);_.T([_.a("premiumOptions"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],iF.prototype,"hasPremiumOptions",null);
iF=_.T([_.y({disableElementRegistration:!0,is:"ytd-offline-promo-content"})],iF);
_.r(iF,"ytd-offline-promo-content",function(){if(eU$!==void 0)return eU$;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offline-promo-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-offline-promo-content"></yt-formatted-string>\n<div id="premium-options" hidden="[[!hasPremiumOptions]]" class="style-scope ytd-offline-promo-content"></div>\n<yt-formatted-string id="description" hidden="[[!hasPremiumOptions]]" text="[[data.description]]" class="style-scope ytd-offline-promo-content"></yt-formatted-string>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return eU$=F},{mode:1});var MyK;var rb=function(){var F=_.n.apply(this,arguments)||this;F.premiumOptions=[];return F};
_.k(rb,_.n);rb.prototype.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var F;this.premiumOptions=orw((F=this.data)==null?void 0:F.formats)};
rb.prototype.onClickSubmit=function(){_.dW(this.hostElement,"yt-close-popup-action",["ytd-offline-promo-renderer"]);var F;(F=_.WS())==null||F.pause()};
rb.prototype.attached=function(){this.JSC$18371_scroller&&(this.JSC$18371_scroller.dialogElement=this.hostElement.parentNode)};
_.Sn.Object.defineProperties(rb.prototype,{showIcon:{configurable:!0,enumerable:!0,get:function(){return this.headersIcon}}});
rb.prototype.dataChanged=rb.prototype.dataChanged;_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],rb.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],rb.prototype,"ytComponentBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],rb.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],rb.prototype,"data",void 0);
_.T([_.O({computed:"computeIcon_(data.headersIcon)",value:""}),_.Y("design:type",String)],rb.prototype,"headersIcon",void 0);_.T([_.O(),_.Y("design:type",Array)],rb.prototype,"premiumOptions",void 0);_.T([_.gQ("#scroller"),_.Y("design:type",Object)],rb.prototype,"JSC$18371_scroller",void 0);_.T([_.a("headersIcon"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],rb.prototype,"showIcon",null);
_.T([_.Cz("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],rb.prototype,"dataChanged",null);rb=_.T([_.y({disableElementRegistration:!0,is:"ytd-offline-promo-renderer"})],rb);
_.r(rb,"ytd-offline-promo-renderer",function(){if(MyK!==void 0)return MyK;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offline-promo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-offline-promo-renderer">\n<div id="container" class="style-scope ytd-offline-promo-renderer">\n<yt-icon id="headers-icon" hidden="[[!showIcon]]" icon="[[headersIcon]]" class="style-scope ytd-offline-promo-renderer"></yt-icon>\n<yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-offline-promo-renderer"></yt-formatted-string>\n<ytd-offline-promo-content data="[[data]]" premium-options="[[premiumOptions]]" class="style-scope ytd-offline-promo-renderer">\n</ytd-offline-promo-content>\n<div class="buttons style-scope ytd-offline-promo-renderer">\n  <yt-button-renderer id="dismiss-button" data="[[data.dismissButton.buttonRenderer]]" class="style-scope ytd-offline-promo-renderer">\n  </yt-button-renderer>\n  <yt-button-renderer id="action-button" data="[[data.actionButton.buttonRenderer]]" on-click="onClickSubmit" class="style-scope ytd-offline-promo-renderer">\n  </yt-button-renderer>\n</div>\n</div>\n</tp-yt-paper-dialog-scrollable>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return MyK=F},{mode:1});var ghT;var Tg=function(){var F=_.n.apply(this,arguments)||this;F.playbackPauseInterval=NaN;F.isLoading=!1;F.hasError=!1;F.dialogClass="";F.youtubeLabel=_.CY("LOGO_ALT_LABEL",{},"YouTube Home");F.logoName="yt-logos-ext:yt-logo-updated";F.actionMap={"yt-save-consent-action":"handleSaveConsent","yt-disable-personalization-action":"handleDisablePersonalization"};return F};
_.k(Tg,_.n);_.N=Tg.prototype;_.N.onDataChange=function(){var F;if(this.showEOMV1Text=!((F=this.data)==null||!F.eomV1Text))this.dialogClass="eom-v1-dialog"};
_.N.attached=function(){this.pausePlayer()};
_.N.detached=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN)};
_.N.handleLangSelect=function(F){this.langSelect.style.display="none";this.ytComponentBehavior.resolveCommand(this.data.languageList.dropdownRenderer.entries[F.target.selectedIndex].dropdownItemRenderer.onSelectCommand)};
_.N.showLangPicker=function(){this.langSelect.style.display=this.langSelect.style.display&&this.langSelect.style.display!=="none"?"none":"block"};
_.N.handleSaveConsent=function(F){var W=this;this.showLoadingSpinner();this.showLoadingSpinner();x1$(_.D(F,ZH8)).catch(function(E){_.OB(new _.xC("Something went wrong when save consent "+(E.message?E.message:E)+"."));W.hideLoadingSpinner();W.showErrorMessage()})};
_.N.handleDisablePersonalization=function(F){var W=this;this.showLoadingSpinner();kXT(_.D(F,$dK)).then(function(){W.dialog.close();W.resumePlayer()}).catch(function(E){_.OB(new _.xC("Something went wrong when disable personalization "+(E.message?E.message:E)+"."));
W.hideLoadingSpinner();W.showErrorMessage()})};
_.N.showLoadingSpinner=function(){var F=this;this.showSpinnerJobId=_.P0.addLowPriorityJob(function(){F.isLoading=!0},500)};
_.N.hideLoadingSpinner=function(){this.isLoading=!1;this.showSpinnerJobId!==void 0&&(_.P0.cancelJob(this.showSpinnerJobId),this.showSpinnerJobId=void 0)};
_.N.showErrorMessage=function(){var F=this;this.hasError=!0;_.P0.addLowPriorityJob(function(){F.hasError=!1},2E3)};
_.N.pausePlayer=function(){this.playbackPauseInterval||(this.playbackPauseInterval=_.e5(function(){try{var F=_.WS();F&&F.pause()}catch(W){}},100))};
_.N.resumePlayer=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN);try{var F=_.WS();F&&F.play()}catch(W){}};
_.Sn.Object.defineProperties(Tg.prototype,{eomEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var F;if((F=this.data)==null||!F.eomV1Text)return[];F=[];for(var W=["SHIELD","WARNING","BAR_CHART"],E=this.data.eomV1Text.essentialCookieMsg.items,h=0;h<W.length&&h<E.length;h++)F.push({icon:W[h],text:E[h]});return F}},
eomNonEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var F;if((F=this.data)==null||!F.eomV1Text)return[];F=[];for(var W=["TRENDING_UP","BAR_CHART","AUTO_AWESOME","PURCHASES"],E=this.data.eomV1Text.nonEssentialCookieMsg.items,h=0;h<W.length&&h<E.length;h++)F.push({icon:W[h],text:E[h]});return F}}});
Tg.prototype.onDataChange=Tg.prototype.onDataChange;_.T([_.O(),_.Y("design:type",Object)],Tg.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Boolean)],Tg.prototype,"showEOMV1Text",void 0);_.T([_.O(),_.Y("design:type",Object)],Tg.prototype,"isLoading",void 0);_.T([_.O(),_.Y("design:type",Object)],Tg.prototype,"hasError",void 0);_.T([_.O(),_.Y("design:type",Number)],Tg.prototype,"showSpinnerJobId",void 0);_.T([_.O(),_.Y("design:type",Object)],Tg.prototype,"dialogClass",void 0);
_.T([_.gQ("#dialog"),_.Y("design:type",Object)],Tg.prototype,"dialog",void 0);_.T([_.gQ("#cb-header"),_.Y("design:type",HTMLElement)],Tg.prototype,"header",void 0);_.T([_.gQ("#lang-select"),_.Y("design:type",HTMLElement)],Tg.prototype,"langSelect",void 0);_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],Tg.prototype,"ytActionHandlerBehavior",void 0);_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],Tg.prototype,"ytComponentBehavior",void 0);
_.T([_.O(),_.Y("design:type",String)],Tg.prototype,"youtubeLabel",void 0);_.T([_.O(),_.Y("design:type",Object)],Tg.prototype,"logoName",void 0);_.T([_.Cz("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Tg.prototype,"onDataChange",null);_.T([_.a("data"),_.Y("design:type",Array),_.Y("design:paramtypes",[])],Tg.prototype,"eomEssentialCookieMsgItems",null);
_.T([_.a("data"),_.Y("design:type",Array),_.Y("design:paramtypes",[])],Tg.prototype,"eomNonEssentialCookieMsgItems",null);Tg=_.T([_.y({disableElementRegistration:!0,is:"ytd-consent-bump-v2-lightbox"})],Tg);
_.r(Tg,"ytd-consent-bump-v2-lightbox",function(){if(ghT!==void 0)return ghT;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-consent-bump-v2-lightbox--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog id="dialog" class$="[[dialogClass]] style-scope ytd-consent-bump-v2-lightbox" aria-labelledby="cb-header" modal="">\n  <div class="loading-overlay style-scope ytd-consent-bump-v2-lightbox" hidden="[[!isLoading]]">\n    <div class="style-scope ytd-consent-bump-v2-lightbox">\n      <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-consent-bump-v2-lightbox"></tp-yt-paper-spinner-lite>\n    </div>\n    <yt-formatted-string class="loading-message style-scope ytd-consent-bump-v2-lightbox" text="[[data.loadingMessage]]">\n    </yt-formatted-string>\n  </div>\n  <div class="error-overlay style-scope ytd-consent-bump-v2-lightbox" hidden="[[!hasError]]">\n    <div class="error-message style-scope ytd-consent-bump-v2-lightbox">\n      <yt-formatted-string text="[[data.errorMessage]]" class="style-scope ytd-consent-bump-v2-lightbox"></yt-formatted-string>\n    </div>\n  </div>\n  <div id="topbar" class="style-scope ytd-consent-bump-v2-lightbox">\n    <div id="logoandaside" class="style-scope ytd-consent-bump-v2-lightbox">\n      <div id="icon-container" class="style-scope ytd-consent-bump-v2-lightbox">\n        <yt-icon id="logo-icon" icon="[[logoName]]" class="style-scope ytd-consent-bump-v2-lightbox">\n        </yt-icon>\n      </div>\n      <yt-formatted-string class="logo-aside style-scope ytd-consent-bump-v2-lightbox" text="[[data.interstitialLogoAside]]"></yt-formatted-string>\n    </div>\n    <div class="top-buttons style-scope ytd-consent-bump-v2-lightbox">\n      <div class="lang-picker-container style-scope ytd-consent-bump-v2-lightbox">\n        <div class="style-scope ytd-consent-bump-v2-lightbox">\n          <ytd-button-renderer data="[[data.languagePickerButton.buttonRenderer]]" on-click="showLangPicker" class="style-scope ytd-consent-bump-v2-lightbox"></ytd-button-renderer>\n        </div>\n        <div id="lang-select" class="style-scope ytd-consent-bump-v2-lightbox">\n          <select size="20" on-change="handleLangSelect" class="style-scope ytd-consent-bump-v2-lightbox">\n            <template is="dom-repeat" items="[[data.languageList.dropdownRenderer.entries]]" class="style-scope ytd-consent-bump-v2-lightbox">\n              <template is="dom-if" if="[[item.dropdownItemRenderer.isSelected]]" class="style-scope ytd-consent-bump-v2-lightbox">\n                <option selected="" class="style-scope ytd-consent-bump-v2-lightbox">\n                  <yt-formatted-string text="[[item.dropdownItemRenderer.label]]" class="style-scope ytd-consent-bump-v2-lightbox">\n                  </yt-formatted-string>\n                </option>\n              </template>\n              <template is="dom-if" if="[[!item.dropdownItemRenderer.isSelected]]" class="style-scope ytd-consent-bump-v2-lightbox">\n                <option class="style-scope ytd-consent-bump-v2-lightbox">\n                  <yt-formatted-string text="[[item.dropdownItemRenderer.label]]" class="style-scope ytd-consent-bump-v2-lightbox">\n                  </yt-formatted-string>\n                </option>\n              </template>\n            </template>\n          </select>\n        </div>\n      </div>\n\n      <div class="style-scope ytd-consent-bump-v2-lightbox">\n        <ytd-button-renderer class="signin style-scope ytd-consent-bump-v2-lightbox" data="[[data.signInButton.buttonRenderer]]"></ytd-button-renderer>\n      </div>\n    </div>\n  </div>\n  <div id="content" class="style-scope ytd-consent-bump-v2-lightbox">\n    <template is="dom-if" if="[[showEOMV1Text]]" restamp="" class="style-scope ytd-consent-bump-v2-lightbox">\n      <h2 tabindex="-1" id="cb-header" class="eom-title style-scope ytd-consent-bump-v2-lightbox">\n        <yt-formatted-string text="[[data.interstitialTitle]]" class="style-scope ytd-consent-bump-v2-lightbox"></yt-formatted-string>\n      </h2>\n      <div class="ica-claimer style-scope ytd-consent-bump-v2-lightbox" hidden="[[!data.icaClaimer]]">\n        <yt-formatted-string text="[[data.icaClaimer]]" class="style-scope ytd-consent-bump-v2-lightbox"> </yt-formatted-string>\n      </div>\n      <div class="body style-scope ytd-consent-bump-v2-lightbox">\n        <div class="style-scope ytd-consent-bump-v2-lightbox">\n          <div class="legal-text style-scope ytd-consent-bump-v2-lightbox">\n            <yt-formatted-string text="[[data.eomV1Text.essentialCookieMsg.begin]]" class="style-scope ytd-consent-bump-v2-lightbox">\n            </yt-formatted-string>\n          </div>\n          <ul class="style-scope ytd-consent-bump-v2-lightbox">\n            <template is="dom-repeat" items="[[eomEssentialCookieMsgItems]]" class="style-scope ytd-consent-bump-v2-lightbox">\n              <li class="icon-li style-scope ytd-consent-bump-v2-lightbox">\n                <yt-icon class="item-icon style-scope ytd-consent-bump-v2-lightbox" icon="[[item.icon]]"></yt-icon>\n                <div class="style-scope ytd-consent-bump-v2-lightbox">\n                  <yt-formatted-string text="[[item.text]]" class="style-scope ytd-consent-bump-v2-lightbox"></yt-formatted-string>\n                </div>\n              </li>\n            </template>\n          </ul>\n        </div>\n        <div class="style-scope ytd-consent-bump-v2-lightbox">\n          <div class="legal-text style-scope ytd-consent-bump-v2-lightbox">\n            <yt-formatted-string text="[[data.eomV1Text.nonEssentialCookieMsg.begin]]" class="style-scope ytd-consent-bump-v2-lightbox"></yt-formatted-string>\n          </div>\n          <ul class="style-scope ytd-consent-bump-v2-lightbox">\n            <template is="dom-repeat" items="[[eomNonEssentialCookieMsgItems]]" class="style-scope ytd-consent-bump-v2-lightbox">\n              <li class="icon-li style-scope ytd-consent-bump-v2-lightbox">\n                <yt-icon class="item-icon style-scope ytd-consent-bump-v2-lightbox" icon="[[item.icon]]"></yt-icon>\n                <div class="style-scope ytd-consent-bump-v2-lightbox">\n                  <yt-formatted-string text="[[item.text]]" class="style-scope ytd-consent-bump-v2-lightbox"></yt-formatted-string>\n                </div>\n              </li>\n            </template>\n          </ul>\n        </div>\n        <div class="legal-text style-scope ytd-consent-bump-v2-lightbox">\n          <yt-formatted-string text="[[data.eomV1Text.ifReject]]" class="style-scope ytd-consent-bump-v2-lightbox"></yt-formatted-string>\n        </div>\n        <div class="legal-text style-scope ytd-consent-bump-v2-lightbox">\n          <yt-formatted-string text="[[data.eomV1Text.personalization]]" class="style-scope ytd-consent-bump-v2-lightbox"></yt-formatted-string>\n        </div>\n        <div class="legal-text style-scope ytd-consent-bump-v2-lightbox">\n          <yt-formatted-string text="[[data.eomV1Text.moreOptions]]" class="style-scope ytd-consent-bump-v2-lightbox"></yt-formatted-string>\n        </div>\n        <div class="eom-buttons style-scope ytd-consent-bump-v2-lightbox">\n          <div class="eom-button-row style-scope ytd-consent-bump-v2-lightbox">\n            <ytd-button-renderer data="[[data.disableP13nButton.buttonRenderer]]" class="style-scope ytd-consent-bump-v2-lightbox"></ytd-button-renderer>\n            <ytd-button-renderer data="[[data.agreeButton.buttonRenderer]]" class="style-scope ytd-consent-bump-v2-lightbox"></ytd-button-renderer>\n          </div>\n          <div class="eom-button-row style-scope ytd-consent-bump-v2-lightbox">\n            <ytd-button-renderer data="[[data.customizeButton.buttonRenderer]]" class="style-scope ytd-consent-bump-v2-lightbox"></ytd-button-renderer>\n          </div>\n        </div>\n        <div class="termlinks style-scope ytd-consent-bump-v2-lightbox">\n          <yt-formatted-string class="link style-scope ytd-consent-bump-v2-lightbox" link-inherit-color="" sec="" text="[[data.privacyLink]]"></yt-formatted-string>\n          \n          \n          <span class="term_separator style-scope ytd-consent-bump-v2-lightbox" aria-hidden="true">\u2022</span>\n          <yt-formatted-string class="link style-scope ytd-consent-bump-v2-lightbox" link-inherit-color="" text="[[data.termsLink]]"></yt-formatted-string>\n        </div>\n      </div>\n    </template>\n  </div>\n</tp-yt-paper-dialog>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return ghT=F},{mode:1});var Qzu;var ob=function(){return _.n.apply(this,arguments)||this};
_.k(ob,_.n);ob.prototype.ready=function(){if(!_.IA()||j3w)var F=!0;else j3w=!0,F=!1;F||(F=document.querySelector("ytd-app"),F||(F=document.body),this.internalLightBox=_.Z(F).appendChild(this.lightBox),this.internalLightBox.dialog.open())};
_.T([_.O(),_.Y("design:type",Object)],ob.prototype,"data",void 0);_.T([_.gQ("#lightbox"),_.Y("design:type",Object)],ob.prototype,"lightBox",void 0);ob=_.T([_.y({disableElementRegistration:!0,is:"ytd-consent-bump-v2-renderer"})],ob);
_.r(ob,"ytd-consent-bump-v2-renderer",function(){if(Qzu!==void 0)return Qzu;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-consent-bump-v2-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-consent-bump-v2-lightbox id="lightbox" data="[[data]]" class="style-scope ytd-consent-bump-v2-renderer"></ytd-consent-bump-v2-lightbox>');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return Qzu=F},{mode:1});var zU6;var tyK;var C4q;var Gg=function(){var F=_.n.apply(this,arguments)||this;F.ephemeralActionsEnabled=_.c("web_ephemeral_actions");return F};
_.k(Gg,_.n);_.N=Gg.prototype;_.N.toastOpenedChanged=function(){this.toastManager&&this.hasOpened&&this.toast&&!this.toast.opened&&this.toastType!==1&&djw(this.toastManager,this.toastType)};
_.N.open=function(F){this.toast&&(this.ephemeralAction&&_.WZ().resolve(_.zI).enqueue(this.ephemeralAction),this.hasOpened=!0,this.toastManager?(this.toastType=F!=null?F:0,this.toastManager.enqueue(this.toast,F)):this.toast.open())};
_.N.close=function(F){var W;(W=this.toast)==null||W.close();this.toastManager&&F===1&&djw(this.toastManager,F)};
_.N.refit=function(){var F;(F=this.toast)==null||F.refit()};
_.N.tapClose=function(){if(!this.useCloseButton||this.closeToastOnActionButtonClick){var F;(F=this.toast)==null||F.close()}};
_.N.setVerticalOffset=function(F){this.toast&&(this.toast.verticalOffset=F,this.toast.fit())};
_.N.computeButtonClass_=function(F){return F?"toast-button":""};
_.N.computeText_=function(F){return _.Yr(F)};
_.N.toastOpenedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.yR("toast-opened-changed",this.toastOpened))};
_.N.updateToastOpenedFromBinding=function(F){this.toastOpened=F.detail.value};
_.Sn.Object.defineProperties(Gg.prototype,{command:{configurable:!0,enumerable:!0,get:function(){var F,W,E=(F=this.data)==null?void 0:(W=F.actionButton)==null?void 0:W.buttonRenderer;return(E==null?void 0:E.command)||(E==null?void 0:E.serviceEndpoint)||(E==null?void 0:E.navigationEndpoint)}},
ephemeralAction:{configurable:!0,enumerable:!0,get:function(){if(this.ephemeralActionsEnabled&&this.labelText&&this.command&&this.duration)return{label:this.labelText,command:this.command,durationMs:this.duration}}},
hasEphemeralAction:{configurable:!0,enumerable:!0,get:function(){return!!this.ephemeralAction}},
labelText:{configurable:!0,enumerable:!0,get:function(){var F=[],W;((W=this.data)==null?0:W.responseText)&&F.push(_.Yr(this.data.responseText));var E;((E=this.data)==null?0:E.subText)&&F.push(_.Yr(this.data.subText));var h,d;if((h=this.data)==null?0:(d=h.actionButton)==null?0:d.buttonRenderer){var V,R;F.push(((V=this.data.actionButton.buttonRenderer.accessibilityData)==null?void 0:(R=V.accessibilityData)==null?void 0:R.label)||_.Yr(this.data.actionButton.buttonRenderer.text))}return F.filter(function(M){return M}).join(". ")}},
opened:{configurable:!0,enumerable:!0,get:function(){var F,W;return(W=(F=this.toast)==null?void 0:F.opened)!=null?W:!1}}});
Gg.prototype.toastOpenedChangedForBinding=Gg.prototype.toastOpenedChangedForBinding;Gg.prototype.toastOpenedChanged=Gg.prototype.toastOpenedChanged;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Gg.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.B$.YtEventForwardingBehavior),_.Y("design:type",Object)],Gg.prototype,"ytEventForwardingBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],Gg.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Object)],Gg.prototype,"duration",void 0);
_.T([_.O(),_.Y("design:type",Number)],Gg.prototype,"toastType",void 0);_.T([_.O({value:!1}),_.Y("design:type",Boolean)],Gg.prototype,"useCloseButton",void 0);_.T([_.O({value:!1}),_.Y("design:type",Boolean)],Gg.prototype,"closeToastOnActionButtonClick",void 0);_.T([_.O({value:function(){return _.CY("SBOX_INAPPROPRIATE_CANCEL")}}),
_.Y("design:type",String)],Gg.prototype,"closeButtonAriaLabel",void 0);_.T([_.O(),_.Y("design:type",Boolean)],Gg.prototype,"toastOpened",void 0);_.T([_.O(),_.Y("design:type",Boolean)],Gg.prototype,"hasOpened",void 0);_.T([_.O(),_.Y("design:type",Object)],Gg.prototype,"ephemeralActionsEnabled",void 0);_.T([_.a("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Gg.prototype,"command",null);
_.T([_.a("ephemeralActionsEnabled","labelText","command","duration"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Gg.prototype,"ephemeralAction",null);_.T([_.a("ephemeralAction"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Gg.prototype,"hasEphemeralAction",null);_.T([_.gQ("#toast"),_.Y("design:type",Object)],Gg.prototype,"toast",void 0);_.T([_.O({value:function(){return{style:"call-to-action-inverse"}}}),
_.Y("design:type",Object)],Gg.prototype,"buttonOverrides",void 0);_.T([_.O({value:{style:"mono-inverse"}}),_.Y("design:type",Object)],Gg.prototype,"closeButtonOverrides",void 0);_.T([_.O({value:function(){return _.WZ().resolve(_.Fd(_.VHK))}}),
_.Y("design:type",Object)],Gg.prototype,"toastManager",void 0);_.T([_.a("data.responseText","data.subText","data.actionButton"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Gg.prototype,"labelText",null);_.T([_.ea("toastOpened"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Gg.prototype,"toastOpenedChanged",null);
_.T([_.ea("toastOpened"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Gg.prototype,"toastOpenedChangedForBinding",null);Gg=_.T([_.$3({is:"yt-notification-action-renderer",disableElementRegistration:!0})],Gg);
_.r(Gg,"yt-notification-action-renderer",function(){if(C4q===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-notification-action-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_notification_action_renderer.yt.notification.action.renderer.css.js--\x3e\n<tp-yt-paper-toast id="toast" class$="[[computeButtonClass_(data.actionButton.buttonRenderer)]] style-scope yt-notification-action-renderer" allow-click-through="" announce-label-updates="" aria-label="toast" duration="[[duration]]" label="[[labelText]]" no-iron-announce="[[hasEphemeralAction]]" opened="[[toastOpened]]" role="region" on-opened-changed="updateToastOpenedFromBinding">\n  <div id="text-container" class="style-scope yt-notification-action-renderer">\n    <yt-formatted-string id="text" respect-html-dir="" split-lines="" text="[[data.responseText]]" class="style-scope yt-notification-action-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string id="sub-text" hidden="[[!data.subText]]" respect-html-dir="" split-lines="" text="[[data.subText]]" class="style-scope yt-notification-action-renderer">\n    </yt-formatted-string>\n  </div>\n  <template is="dom-if" if="[[data.actionButton]]" class="style-scope yt-notification-action-renderer">\n    <yt-button-renderer id="action-button" data="[[data.actionButton.buttonRenderer]]" overrides="[[buttonOverrides]]" on-tap="tapClose" class="style-scope yt-notification-action-renderer">\n    </yt-button-renderer>\n  </template>\n  <template is="dom-if" if="[[data.closeActionButton]]" class="style-scope yt-notification-action-renderer">\n    <yt-button-renderer id="close-action-button" data="[[data.closeActionButton.buttonRenderer]]" overrides="[[closeButtonOverrides]]" on-tap="close" class="style-scope yt-notification-action-renderer">\n    </yt-button-renderer>\n  </template>\n  <template is="dom-if" if="[[!data.closeActionButton]]" class="style-scope yt-notification-action-renderer">\n    <yt-icon-button id="close-button" hidden="[[!useCloseButton]]" label="[[closeButtonAriaLabel]]" on-tap="close" class="style-scope yt-notification-action-renderer">\n      <yt-icon icon="yt-icons:close" class="style-scope yt-notification-action-renderer"></yt-icon>\n    </yt-icon-button>\n  </template>\n  <slot class="style-scope yt-notification-action-renderer"></slot>\n</tp-yt-paper-toast>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;tyK===void 0&&(tyK=document.createElement("template"));var h=tyK;E.call(W,h.content.cloneNode(!0),F.content.firstChild);C4q=F}F=C4q;return F},{mode:2});var YM=function(){var F=_.n.apply(this,arguments)||this;F.duration=4E3;F.downloadingCount=0;F.downloadedCount=0;F.downloadingOnlySmartDownloads=!1;F.sessionTotalDownloads=0;F.sessionDownloaded=0;F.previousSessionsDownloaded=0;F.totalDownloadPercentage=0;F.currentDownloadProgress=0;F.currentDownloadPercentage=0;F.isLeaderTab=!0;F.isFullScreen=!1;F.actionMap={"yt-fullscreen-change-action":"handleFullscreenChange"};F.boundBeforeUnload=function(W){F.isLeaderTab&&F.downloadingCount>0&&(W.preventDefault(),
W.returnValue=!0)};
return F};
_.k(YM,_.n);_.N=YM.prototype;
_.N.open=function(){this.updateDownloadState();if(this.data){var F=this.sessionDownloaded+1,W=this.sessionTotalDownloads>1?_.CY("VIDEOS_DOWNLOADING_RATIO",{downloaded:F.toString(),total:this.sessionTotalDownloads.toString()},"Downloading... "+F+"/"+this.sessionTotalDownloads):_.CY("DOWNLOADING",void 0,"Downloading")+"...";this.downloadingOnlySmartDownloads&&(W=this.sessionTotalDownloads>1?_.CY("SMART_DOWNLOADS_UPDATING_RATIO",{downloaded:F.toString(),total:this.sessionTotalDownloads.toString()},"Updating Smart downloads... "+
F+"/"+this.sessionTotalDownloads):_.CY("SMART_DOWNLOADS_UPDATING",void 0,"`Updating Smart downloads..."));F=this.isLeaderTab?_.CY("KEEP_OPEN",{},"Keep window open to continue"):"";if(_.Yr(this.data.responseText)!==W||_.Yr(this.data.subText)!==F)this.set("data.responseText",_.Gr(W)),this.set("data.subText",_.Gr(F)),this.notificationActionRenderer.refit()}this.notificationActionRenderer.open(1);window.addEventListener("beforeunload",this.boundBeforeUnload)};
_.N.close=function(){this.previousSessionsDownloaded=this.sessionDownloaded=this.sessionTotalDownloads=0;this.notificationActionRenderer.hasOpened&&this.notificationActionRenderer.close(1);window.removeEventListener("beforeunload",this.boundBeforeUnload)};
_.N.updatePopup=function(){!this.data||this.isFullScreen||this.downloadingCount===0?this.close():this.open()};
_.N.updateCurrentDownloadProgress=function(){this.currentDownloadPercentage=Math.floor(this.currentDownloadProgress*100)};
_.N.updateDownloadState=function(){this.previousSessionsDownloaded===0&&(this.previousSessionsDownloaded=this.downloadedCount);var F=this.downloadedCount-this.previousSessionsDownloaded;F<this.sessionDownloaded&&(this.previousSessionsDownloaded-=this.sessionDownloaded-F);this.sessionDownloaded=this.downloadedCount-this.previousSessionsDownloaded;this.sessionTotalDownloads=this.downloadingCount+this.sessionDownloaded};
_.N.handleFullscreenChange=function(F){(this.isFullScreen=F)||this.updatePopup()};
YM.prototype.updateCurrentDownloadProgress=YM.prototype.updateCurrentDownloadProgress;YM.prototype.updatePopup=YM.prototype.updatePopup;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],YM.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.am),_.Y("design:type",Object)],YM.prototype,"ytdReduxBehavior",void 0);_.T([_.J(_.B$.YtEventForwardingBehavior),_.Y("design:type",Object)],YM.prototype,"ytEventForwardingBehavior",void 0);
_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],YM.prototype,"actionHandlerBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],YM.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Object)],YM.prototype,"duration",void 0);_.T([_.O({selector:function(F){return _.KMY(F.entities).length}}),
_.Y("design:type",Object)],YM.prototype,"downloadingCount",void 0);_.T([_.O({selector:PY$}),_.Y("design:type",Object)],YM.prototype,"downloadedCount",void 0);_.T([_.O({selector:function(F){var W=_.KMY(F.entities);return HMN(F.entities,W)}}),
_.Y("design:type",Object)],YM.prototype,"downloadingOnlySmartDownloads",void 0);_.T([_.O(),_.Y("design:type",Object)],YM.prototype,"sessionTotalDownloads",void 0);_.T([_.O(),_.Y("design:type",Object)],YM.prototype,"sessionDownloaded",void 0);_.T([_.O(),_.Y("design:type",Object)],YM.prototype,"previousSessionsDownloaded",void 0);_.T([_.O(),_.Y("design:type",Object)],YM.prototype,"totalDownloadPercentage",void 0);
_.T([_.O({selector:function(F){var W;F=(W=_.KMY(F.entities))!=null?W:[];return F.length>0?_.iBY(F.slice(-1)):0}}),
_.Y("design:type",Object)],YM.prototype,"currentDownloadProgress",void 0);_.T([_.O(),_.Y("design:type",Object)],YM.prototype,"currentDownloadPercentage",void 0);_.T([_.O({selector:_.aIG}),_.Y("design:type",Object)],YM.prototype,"isLeaderTab",void 0);_.T([_.gQ("yt-notification-action-renderer"),_.Y("design:type",Object)],YM.prototype,"notificationActionRenderer",void 0);
_.T([_.Cz("downloadingCount","downloadedCount","downloadingOnlySmartDownloads","isLeaderTab"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],YM.prototype,"updatePopup",null);_.T([_.Cz("currentDownloadProgress"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],YM.prototype,"updateCurrentDownloadProgress",null);YM=_.T([_.y({disableElementRegistration:!0,is:"ytd-video-download-toast-renderer"})],YM);
_.r(YM,"ytd-video-download-toast-renderer",function(){if(zU6!==void 0)return zU6;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-download-toast-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-notification-action-renderer id="notification" class="is-download style-scope ytd-video-download-toast-renderer" data="[[data]]" duration="[[duration]]" use-close-button=""><tp-yt-paper-progress class="transiting style-scope ytd-video-download-toast-renderer" value="[[currentDownloadPercentage]]"></tp-yt-paper-progress></yt-notification-action-renderer>');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return zU6=F},{mode:1});var BDx;var vh8;var wb=function(){return _.n.apply(this,arguments)||this};
_.k(wb,_.n);wb.prototype.computeIsRedLogo=function(F,W){!F&&W&&(F=W);return F==="YOUTUBE_RED_LOGO"||F==="YOUTUBE_PREMIUM_LOGO"};
wb.prototype.computeLogoName=function(F){F=this.componentBehavior.computeIcon_(F);return F===""?"yt-logos-ext:yt-logo-updated":F};
_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],wb.prototype,"componentBehavior",void 0);_.T([_.O({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(data.iconType, logoType)"}),_.Y("design:type",Boolean)],wb.prototype,"isRedLogo",void 0);_.T([_.O({computed:"computeLogoName(data)"}),_.Y("design:type",String)],wb.prototype,"logoName",void 0);_.T([_.O({value:{}}),_.Y("design:type",Object)],wb.prototype,"data",void 0);
_.T([_.O(),_.Y("design:type",Object)],wb.prototype,"logoType",void 0);wb=_.T([_.y({disableElementRegistration:!0,is:"ytd-logo"})],wb);
_.r(wb,"ytd-logo",function(){if(vh8!==void 0)return vh8;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-logo--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon id="logo-icon" icon="[[logoName]]" class="style-scope ytd-logo">\n</yt-icon>');F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return vh8=F},{mode:_.E6("kevlar_poly_si_batch_j074")?1:2});var uF=function(){var F=_.n.apply(this,arguments)||this;F.animationRef={};return F};
_.k(uF,_.n);_.N=uF.prototype;_.N.attached=function(){document.addEventListener("yt-navigate-finish",_.UO(this,this.logYoodle))};
_.N.detached=function(){document.removeEventListener("yt-navigate-finish",_.UO(this,this.logYoodle))};
_.N.logYoodle=function(){var F,W;if((F=this.data)==null?0:(W=F.loggingDirectives)==null?0:W.trackingParams)this.ytRendererBehavior.markDirty(),_.z4().graftServerVe(this.data.loggingDirectives.trackingParams)};
_.N.computeHideImg=function(F,W){return!!F||!!W};
_.N.computeHideYtdLogo=function(F,W){return!F||!!W};
_.N.computeHideLottie=function(F){return!F};
_.N.computeIsRedLogo=function(F){return F==="YOUTUBE_RED_LOGO"||F==="YOUTUBE_PREMIUM_LOGO"};
_.N.renderLogoEntity=function(){var F=this.getThumbnailUrl(this.useDarkThemeYoodle,this.data),W=this.getAnimatedThumbnailUrl(this.useDarkThemeYoodle,this.data),E=this.getLogoTitleText(this.data),h=this.getLottieUrl(this.useDarkThemeYoodle,this.data);this.url!==F&&(this.url=F);this.animatedUrl!==W&&(this.animatedUrl=W);this.logoTitleText!==E&&(this.logoTitleText=E);this.lottieUrl!==h&&(this.lottieUrl=h,this.lottiePlayerProps=this.computeLottiePlayerProps(h))};
_.N.getSanitizedThumbnail=function(F){return F&&F.thumbnails?_.VEW(F.thumbnails,122)||"":""};
_.N.getThumbnailUrl=function(F,W){if(!W)return"";var E,h;F=F?(E=W.darkThemeLogo)==null?void 0:E.thumbnail:(h=W.lightThemeLogo)==null?void 0:h.thumbnail;return this.getSanitizedThumbnail(F)};
_.N.getAnimatedThumbnailUrl=function(F,W){return W?this.getSanitizedThumbnail(F?W.darkThemeAnimatedLogo:W.lightThemeAnimatedLogo):""};
_.N.getLogoTitleText=function(F){if(F)return _.Yr(F.tooltipText)};
_.N.computeLogoIcon=function(F,W){if(W){var E,h;return F?(E=W.darkThemeLogo)==null?void 0:E.icon:(h=W.lightThemeLogo)==null?void 0:h.icon}};
_.N.playAnimation=function(){this.hideLottie||this.animationRef.lottieEl&&this.animationRef.lottieEl.isPaused&&this.animationRef.lottieEl.goToAndPlay(0)};
_.N.getLottieUrl=function(F,W){var E,h,d,V;return F?W==null?void 0:(E=W.darkThemeLogo)==null?void 0:(h=E.lottieAnimation)==null?void 0:h.url:W==null?void 0:(d=W.lightThemeLogo)==null?void 0:(V=d.lottieAnimation)==null?void 0:V.url};
_.N.computeLottiePlayerProps=function(F){if(F){var W;if((W=this.animationRef)==null?0:W.lottieEl){var E;(E=this.animationRef)==null||E.lottieEl.destroy()}return{animationRef:this.animationRef,animationConfig:{name:"LOGO_ENTITY_ANIMATION_NAME",path:F,autoplay:!0,loop:!1,rendererSettings:{viewBoxOnly:!1}},listeners:{data_failed:this.onLottieError.bind(this),error:this.onLottieError.bind(this)}}}};
_.N.onLottieError=function(){this.data&&this.lottieUrl&&_.hF(this.hostElement,"yoodle-error")};
_.N.onImgError=function(){this.data&&!this.lottieUrl&&_.hF(this.hostElement,"yoodle-error")};
uF.prototype.playAnimation=uF.prototype.playAnimation;uF.prototype.renderLogoEntity=uF.prototype.renderLogoEntity;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],uF.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],uF.prototype,"data",void 0);_.T([_.O({value:!1,computed:"computeHideImg(logoIcon, lottiePlayerProps)"}),_.Y("design:type",Boolean)],uF.prototype,"hideImg",void 0);
_.T([_.O({value:!0,computed:"computeHideYtdLogo(logoIcon, lottiePlayerProps)"}),_.Y("design:type",Boolean)],uF.prototype,"hideYtdLogo",void 0);_.T([_.O({value:!0,reflectToAttribute:!0,computed:"computeHideLottie(lottiePlayerProps)"}),_.Y("design:type",Boolean)],uF.prototype,"hideLottie",void 0);_.T([_.O({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(logoType)"}),_.Y("design:type",Boolean)],uF.prototype,"isRedLogo",void 0);
_.T([_.O(),_.Y("design:type",Boolean)],uF.prototype,"useDarkThemeYoodle",void 0);_.T([_.O(),_.Y("design:type",String)],uF.prototype,"url",void 0);_.T([_.O(),_.Y("design:type",String)],uF.prototype,"animatedUrl",void 0);_.T([_.O(),_.Y("design:type",String)],uF.prototype,"logoTitleText",void 0);_.T([_.O({value:{},computed:"computeLogoIcon(useDarkThemeYoodle, data)"}),_.Y("design:type",Object)],uF.prototype,"logoIcon",void 0);_.T([_.O(),_.Y("design:type",Object)],uF.prototype,"logoType",void 0);
_.T([_.O(),_.Y("design:type",String)],uF.prototype,"lottieUrl",void 0);_.T([_.O(),_.Y("design:type",Object)],uF.prototype,"lottiePlayerProps",void 0);_.T([_.O(),_.Y("design:type",Object)],uF.prototype,"animationRef",void 0);_.T([_.ea("data"),_.ea("useDarkThemeYoodle"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],uF.prototype,"renderLogoEntity",null);
_.T([_.R4("click"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],uF.prototype,"playAnimation",null);uF=_.T([_.y({disableElementRegistration:!0,is:"ytd-yoodle-renderer"})],uF);
_.r(uF,"ytd-yoodle-renderer",function(){if(BDx!==void 0)return BDx;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-yoodle-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<picture hidden="[[hideImg]]" class="style-scope ytd-yoodle-renderer">\n  <source srcset$="[[animatedUrl]]" type="image/webp" class="style-scope ytd-yoodle-renderer">\n  <img src$="[[url]]" alt="[[logoTitleText]]" on-error="onImgError" class="style-scope ytd-yoodle-renderer">\n</picture>\n<ytd-logo data="[[logoIcon]]" hidden="[[hideYtdLogo]]" logo-type="[[logoType]]" class="style-scope ytd-yoodle-renderer">\n</ytd-logo>\n<ytd-lottie-player aria-label="[[logoTitleText]]" class-name="[[is]] lottie-player" data="[[lottiePlayerProps]]" class="style-scope ytd-yoodle-renderer">\n</ytd-lottie-player>');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return BDx=F},{mode:_.E6("kevlar_poly_si_batch_j074")?1:2});var IbN;var c36;var eo=function(){var F=_.n.apply(this,arguments)||this;F.actionMap={"yt-navigate-home-action":"onNavigateHomeAction"};return F};
_.k(eo,_.n);_.N=eo.prototype;_.N.onYoodleError=function(){_.c("kevlar_yoodle_handle_load_failure_killswitch")||(this.yoodleError=!0)};
_.N.computeLogoName=function(F){F=this.componentBehavior.computeIcon_(F);return F===""?"yt-logos-ext:yt-logo-updated":F};
_.N.computeTitle=function(F,W,E){return E&&(W==null?0:W.tooltipText)?_.Yr(W.tooltipText):_.Yr(F)};
_.N.computeAriaLabel=function(F,W,E){return E&&(W==null?0:W.tooltipText)?_.Yr(F):""};
_.N.computeShowYoodle=function(F,W,E){return!F||!W&&!!E&&!_.xd.isEmpty(E)};
_.N.onNavigateHomeAction=function(){if(_.c("kevlar_miniplayer_navigate_home_from_app_killswitch")){var F;(F=_.Z(this.hostElement).querySelector(".yt-simple-endpoint"))==null||F.click()}};
_.N.computeLogoHref=function(F,W,E){var h;(E==null?0:E.onTapCommand)?h=this.componentBehavior.computeHref_(E.onTapCommand):F&&(h=this.componentBehavior.computeHref_(F));return h?h:W};
_.N.computeCommand=function(F,W){return(W==null?void 0:W.onTapCommand)||F};
_.N.getEndpointForm=function(){if(_.c("kevlar_topbar_disable_cache_only_home")){var F=_.WZ().resolve(_.P2),W=l06(F.getState())||"";F=_.csI(F.getState())||"";return{disableCache:W==="ytd-browse"&&F==="home"}}return{disableCache:!0}};
eo.prototype.onYoodleError=eo.prototype.onYoodleError;_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],eo.prototype,"ytActionHandlerBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],eo.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],eo.prototype,"componentBehavior",void 0);_.T([_.J(_.am),_.Y("design:type",Object)],eo.prototype,"ytdReduxBehavior",void 0);
_.T([_.O(),_.Y("design:type",Object)],eo.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",String)],eo.prototype,"countryCode",void 0);_.T([_.O({selectorArgs:["data.overrideEntityKey"],selector:function(F,W){return _.Mn(F.entities,"logoEntity",W)}}),
_.Y("design:type",Object)],eo.prototype,"logoEntity",void 0);_.T([_.O({reflectToAttribute:!0,computed:"computeShowYoodle(data, yoodleError, logoEntity)"}),_.Y("design:type",Boolean)],eo.prototype,"showYoodle",void 0);_.T([_.O({value:!1}),_.Y("design:type",Boolean)],eo.prototype,"yoodleError",void 0);_.T([_.O({computed:"computeTitle(data.tooltipText, logoEntity, showYoodle)"}),_.Y("design:type",String)],eo.prototype,"titleText",void 0);
_.T([_.O({value:"",computed:"computeAriaLabel(data.tooltipText, logoEntity, showYoodle)"}),_.Y("design:type",String)],eo.prototype,"ariaLabelText",void 0);_.T([_.O({value:"/"}),_.Y("design:type",String)],eo.prototype,"defaultEndpointUrl",void 0);_.T([_.O({computed:"computeLogoHref(data.endpoint, defaultEndpointUrl, logoEntity)"}),_.Y("design:type",String)],eo.prototype,"endpointUrl",void 0);
_.T([_.O({computed:"computeCommand(data.endpoint, logoEntity)"}),_.Y("design:type",String)],eo.prototype,"command",void 0);_.T([_.O(),_.Y("design:type",Object)],eo.prototype,"logoType",void 0);_.T([_.O({}),_.Y("design:type",Boolean)],eo.prototype,"useDarkThemeYoodle",void 0);_.T([_.R4("yoodle-error"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],eo.prototype,"onYoodleError",null);eo=_.T([_.y({disableElementRegistration:!0,is:"ytd-topbar-logo-renderer"})],eo);
_.r(eo,"ytd-topbar-logo-renderer",function(){if(c36!==void 0)return c36;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-topbar-logo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a aria-label="[[ariaLabelText]]" class="yt-simple-endpoint style-scope ytd-topbar-logo-renderer" href$="[[endpointUrl]]" id="logo" data="[[command]]" title="[[titleText]]" get-form="[[getEndpointForm]]">\n  <div hidden="[[showYoodle]]" class="style-scope ytd-topbar-logo-renderer">\n    <ytd-logo data="[[data.iconImage]]" logo-type="[[logoType]]" class="style-scope ytd-topbar-logo-renderer">\n    </ytd-logo>\n  </div>\n  <ytd-yoodle-renderer data="[[logoEntity]]" hidden="[[!showYoodle]]" logo-type="[[logoType]]" use-dark-theme-yoodle="[[useDarkThemeYoodle]]" class="style-scope ytd-topbar-logo-renderer">\n  </ytd-yoodle-renderer>\n</a>\n<span hidden="[[showYoodle]]" id="country-code" class="style-scope ytd-topbar-logo-renderer">\n  [[countryCode]]\n</span>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return c36=F},{mode:_.E6("kevlar_poly_si_batch_j027")?1:2});var D2T=0;var x2q=_.w0.SEARCH_APPEND_LABEL,kpF=_.w0.SUGGESTION_NEW_VIDEOS_TEXT,A3x=_.w0.SUGGESTION_THUMBNAIL_LABEL,szg=_.GK(function(F){function W(vO){var wI,Aa;return _.e(function(MF){if(MF.nextAddress==1)return wI=new Request(vO),_.Nl(MF,2),_.Q(MF,fetch(wI,{credentials:"include"}),4);if(MF.nextAddress!=2)return Z_(!0),_.id(MF,0);Aa=_.Ml(MF);_.OB(Aa);_.gG(MF)})}
var E=F.isHighlighted;var h=F.suggestion;var d=F.onClickCallback;var V=F.onHoverUpdateCallback;var R=F.labels;var M=F.queryBuilderFunction;var g=F.onRemoveCallback;var t=F.suggestionIndex;var C=F.generateUniqueId;var B=F.highlightedId;var I=F.useScrollMargin;var x=F.isKeyboardMode;var A=null,X=null,P=_.uf(),b=_.uf(),l=_.Sh(function(vO){vO&&_.iv(237477,vO,X,function(wI){X=wI})}),w=_.Sh(function(vO){vO&&_.iv(237477,vO,X,function(wI){X=wI})}),G=_.tb(function(vO){if((vO==null?void 0:vO.button)===2)return vO.preventDefault(),
!1;
var wI=_.JR();wI&&A&&_.GJ(wI,A,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");var Aa;d(vO,h().text,h().index,h().entityMid,vO==null?void 0:(Aa=vO.detail)==null?void 0:Aa.wasSelectedByKeyboard);return!1}),hr=function(){return h().type===35},p=function(){return _.c("desktop_enable_single_suggestion_highlight")},UY=function(){return _.dV("desktop_suggestions_panel_row_height")||0},xW=function(){var vO;
return _.c("desktop_enable_new_video_metadata")&&((vO=h())==null?void 0:vO.hasNewVideo)===!0},qw=function(){return _.c("desktop_enable_visual_suggest")},Lb=function(){var vO;
if(vO=_.c("desktop_enable_entity_suggest")){var wI=h();vO=!!Gru(wI.subtypes);wI=!!wI.entityMid;vO=vO||wI}return vO},jk=function(){return h().entitySubtitle},Jr=function(){return p()?(E==null?void 0:E())||kR()&&!(x==null?0:x()):(E==null?void 0:E())||kR()},nb=function(){var vO=_.b0("SBOX_SETTINGS");
return hr()&&!(vO==null?0:vO.HIDE_REMOVE_LINK)},bo=function(){return K3$(h())},uo,b_=!((uo=_.WZ().resolve(_.Fd(_.nK)))==null||!uo()),BO=function(){return hr()?"ARROW_TIME":"SEARCH"},dc=function(){return R==null?void 0:R().SUGGESTION_DISMISS_LABEL},VM=function(){return R==null?void 0:R().SUGGESTION_DISMISSED_LABEL};
uo=_.U(_.g$(!1,void 0,"kHLOZe"));F=uo.next().value;var Z_=uo.next().value;uo=_.U(_.g$(!1,void 0,"SGF2sd"));var MU=uo.next().value,Ef=uo.next().value,kR=MU,Rn=_.tb(function(){M(b.value.innerText);return!1}),se=_.tb(function(vO){vO.preventDefault();
return!1}),l_=_.tb(function(vO){var wI=h().text,Aa=_.b0("SBOX_SETTINGS"),MF="https://"+(Aa.SEARCHBOX_HOST_OVERRIDE||"suggestqueries-clients6.youtube.com")+"/complete/deleteitems?client=youtube";
MF+="&delq="+encodeURIComponent(wI);(wI=Aa==null?void 0:Aa.PSUGGEST_TOKEN)&&(MF+="&tok="+wI);(Aa=Aa==null?void 0:Aa.SESSION_INDEX)&&(MF+="&authuser="+Aa);W(MF);vO.preventDefault();(vO=_.JR())&&X&&_.GJ(vO,X,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");g(t==null?void 0:t());return!1}),j$=_.tb(function(){if(p()&&(x==null?0:x()))return!1;
Ef(!0);V(!0);return!1}),HO=_.tb(function(){Ef(!1);
V(!1);return!1});
uo=_.U(_.g$("",void 0,"yaN19c"));var YB=uo.next().value,GT=uo.next().value;_.$F(function(){nb()&&GT(C==null?void 0:C(t==null?void 0:t()));P.value&&_.iv(12453,P.value,A,function(vO){A=vO})});
return _.z(_.v,{cond:F,then:function(){var vO={};return _.z("div",{class:_.ec("ytSuggestionComponentRemovedText",(vO.ytSuggestionComponentLargerRemovedText=function(){return qw()},vO)),
style:function(){return UY()>0?"height: "+UY()+"px;":""},
role:"button"},VM)},
else:function(){var vO={},wI={};return _.z("div",{class:_.ec("ytSuggestionComponentSuggestion",(vO.ytSuggestionComponentSuggestionHover=function(){return!p()},vO.ytSuggestionComponentHighlighted=Jr,vO.ytSuggestionComponentPersonalizedSuggestion=hr,vO.ytSuggestionComponentMweb=!1,vO.ytSuggestionComponentLargerSuggestion=function(){return xW()||qw()},vO.ytSuggestionComponentThumbnailSuggestion=function(){return qw()},vO.ytSuggestionComponentRoundedSuggestion=function(){return _.c("desktop_enable_scrollable_suggestions_panel")&&
_.c("desktop_enable_suggestions_panel_padding")},vO.ytSuggestionComponentThumbnailPadding=function(){return qw()&&!hr()},vO)),
style:function(){return UY()>0?"height: "+UY()+"px;":""},
role:"presentation","on:mousedown":G,"on:mouseover":j$,"on:mouseout":HO,el:P},_.z("div",{class:_.ec("ytSuggestionComponentText",(wI.ytSuggestionComponentScrollMargin=I,wI)),"aria-label":function(){return xW()?h().text+" "+kpF:h().text},
id:function(){return C==null?void 0:C(t==null?void 0:t())},
"on:mousedown":G,role:"option"},_.z(_.v,{cond:function(){return h().type!==33},
then:function(){return _.z(_.I3,{icon:BO,className:"ytSuggestionComponentIcon"})}}),_.z("div",{class:"ytSuggestionComponentLeftContainer"},_.z("span",{el:b,
role:"button",tabindex:0},_.z(_.xF,{each:bo},function(Aa){return Aa.bold?_.z("span",{class:"ytSuggestionComponentBold"},Aa.text):_.z("span",null,Aa.text)})),_.z(_.v,{cond:function(){return Lb()&&!!h().entitySubtitle||xW()},
then:function(){return _.z("div",{class:"ytSuggestionComponentMetadataContainer"},_.z(_.v,{cond:function(){return Lb()&&!!h().entitySubtitle},
then:function(){return _.z("div",{class:"ytSuggestionComponentEntitySubtitle"},jk)}}),_.z(_.v,{cond:function(){return xW()},
then:function(){return _.z("div",{class:"ytSuggestionComponentNewVideoContainer"},_.z("div",{class:"ytSuggestionComponentNewVideoIcon"}),_.z("div",{class:"ytSuggestionComponentNewVideoText"},kpF))}}))}}))),_.z("div",{class:"ytSuggestionComponentRightContainer"},_.z(_.v,{cond:function(){return qw()&&h().visualSuggestUrl!==void 0},
then:function(){var Aa={};return _.z("div",{class:"ytSuggestionComponentThumbnailContainer"},_.z("img",{"aria-label":A3x,class:_.ec("ytSuggestionComponentVisualSuggestThumbnail",(Aa.ytSuggestionComponentCircularFrame=function(){return Lb()&&h().subtypes.includes(790)},Aa.ytSuggestionComponentEntitySuggestThumbnail=function(){return Lb()},Aa)),
src:function(){return h().visualSuggestUrl}}))}}),_.z(_.sG,null,_.z(_.kF,{when:function(){return qw()&&nb()}},function(){var Aa={};
return _.z("button",{class:_.ec("ytSuggestionComponentRemoveLinkClearButton",(Aa.ytSuggestionComponentRemoveLinkClearButtonSelected=function(){return YB()&&YB()===(B==null?void 0:B())},Aa.ytSuggestionComponentRemoveLinkClearButtonHidden=function(){return!Jr()},Aa)),
el:w,"on:mousedown":l_,"aria-label":dc,id:function(){return YB()}},_.z(_.I3,{icon:"DISMISSAL",
className:"ytSuggestionComponentClearButtonIcon"}))}),_.z(_.kF,{when:function(){return!(qw()&&h().visualSuggestUrl!==void 0)&&nb()}},function(){var Aa={};
return _.z("a",{class:_.ec("ytSuggestionComponentRemoveLink",(Aa.ytSuggestionComponentRemoveLinkDark=b_,Aa.ytSuggestionComponentRemoveLinkSelected=function(){return YB()&&YB()===(B==null?void 0:B())},Aa)),
el:l,"on:mousedown":l_,"aria-label":dc,tabindex:0,role:"button",id:function(){return YB()}},dc)}),_.z(_.kF,{when:function(){return!1}},function(){return _.z("button",{class:"ytSuggestionComponentQueryBuilderButton",
"on:click":Rn,"on:mousedown":se,role:"button","aria-label":x2q},_.z(_.I3,{icon:"ARROW_DIAGONAL",className:"ytSuggestionComponentQueryBuilderButtonIcon"}))}))))}})},"jg");var LqO=_.GK(function(){var F=_.tb(function(){hUF().inputMethodsTracker.add(3);var W,E=(W=_.b0("SBOX_SETTINGS"))==null?void 0:W.REQUEST_LANGUAGE;if(E)return _.lI("//www.google.com/textinputassistant/14/"+E+"_tia.js"),!1});
return _.z("ytd-text-input-assistant",{class:"ytdTextInputAssistantHost"},_.z("button",{class:"ytdTextInputAssistantButton","on:click":F},_.z("img",{class:"ytdTextInputAssistantIcon",tia_field_name:"search_query",tia_disable_swap:"true",tia_property:"youtube",src:"//www.gstatic.com/inputtools/images/tia.png",alt:""})))},"kg");var qKq=function(){this.cache=new Map},$2P=function(F){for(var W=_.U(F.cache.entries()),E=W.next();!E.done;E=W.next()){var h=_.U(E.value);
E=h.next().value;h=h.next().value;h.suggestions.some(function(d){return d.type===35})&&F.cache.delete(E)}};var Zj6=_.w0.SEARCH,XJP=_.w0.SEARCH_CLEAR_LABEL,HjP=new _.NG("FAKE_SUGGEST_RESPONSE");_.pK(_.GK(function(F){function W(){vO||(vO=setTimeout(function(){Aa()},1E3))}
function E(xB,cO,z8){if(xB.trim()){GT=xB;_.OG("REFINEMENTS_TUPLE",void 0);HO=!0;var qR;cO=Vy$(kR,cO);var Ri=(qR=F.searchEndpoint)==null?void 0:qR.call(F);qR=VM.value.value;Ri||(Ri=W_O);var kw;(kw=_.D(Ri.commandMetadata,_.m1))!=null&&kw.url||(kw=Error("ml`"+JSON.stringify(Ri)),_.a_(kw),Ri=W_O);kw=_.xd.unsafeClone(Ri);Ri=_.nn(_.D(kw.commandMetadata,_.m1).url,"search_query",xB);_.lg(location.href,"sv")==="1"&&(_.D(kw,_.vB).params="EgOAAgE%3D",Ri=_.nn(Ri,"sv","1"));_.D(kw,_.vB)&&(_.D(kw,_.vB).query=xB);
Ri=Ri.replace(/%20/g,"+");_.D(kw.commandMetadata,_.m1).url=Ri;z8=_.c("desktop_enable_entity_suggest")?{entityMid:z8}:{};_.WZ().resolve(_.EJ).resolveCommand(kw,{form:{tempData:Object.assign({},{gs_l:cO,oq:qR!=null?qR:xB},z8)}});Aa();VM.value.value=xB;VM.value.blur();kR.reset()}}
function h(xB){return _.e(function(cO){return cO.return(new Promise(function(z8){var qR=new XMLHttpRequest;qR.open("GET",GD8(xB),!0);qR.withCredentials=!0;var Ri=_.b0("SBOX_SETTINGS");(Ri==null?0:Ri.SEND_VISITOR_DATA)&&qR.setRequestHeader("X-Goog-Visitor-Id",Ri==null?void 0:Ri.VISITOR_DATA);qR.onload=function(){z8(qR.responseText)};
qR.onerror=function(){_.OB(Error("nl"));z8(null)};
setTimeout(function(){qR.abort()},1E4);
qR.send(null)}))})}
function d(xB){var cO,z8,qR,Ri;return _.e(function(kw){switch(kw.nextAddress){case 1:return cO={credentials:"include",headers:o6q()},window.AbortController&&(z8=new AbortController,setTimeout(function(){z8.abort("ytsbox-suggest-timeout")},1E4),cO.signal=z8.signal),_.Nl(kw,2),_.Q(kw,fetch(GD8(xB),cO),4);
case 4:qR=kw.yieldResult.text();_.id(kw,3);break;case 2:return Ri=_.Ml(kw),Ri!=="ytsbox-abort-last"&&Ri!=="ytsbox-suggest-timeout"&&_.OB(Ri),kw.return(null);case 3:return kw.return(qR)}})}
function V(xB){var cO,z8,qR;return _.e(function(Ri){switch(Ri.nextAddress){case 1:if(cO=_.WZ().resolve(_.Fd(HjP)))return Ri.return(cO);z8=Date.now();W();return _.c("yt_searchbox_xhr")?_.Q(Ri,h(xB),5):_.Q(Ri,d(xB),4);case 4:qR=Ri.yieldResult;Ri.jumpTo(3);break;case 5:qR=Ri.yieldResult;case 3:if(qR){vO&&(clearTimeout(vO),vO=null);var kw=kR,ye=z8,lL=xB.query.length===0;ye=Date.now()-ye;lL?kw.zeroPrefixRoundTripTime=ye:(kw.JSC$18351_totalRoundTripTime+=ye,kw.maxRoundTripTime=Math.max(kw.maxRoundTripTime,
ye),lL=Math.floor(ye/100),lL>=U2F.length?++kw.roundTripTimeHistogram[9]:++kw.roundTripTimeHistogram[U2F[lL]])}return Ri.return(qR)}})}
function R(xB){var cO,z8,qR;return _.e(function(Ri){if(Ri.nextAddress==1)return(cO=Ef.cache.get(TqT(xB)))?Ri.return(cO):_.Q(Ri,V(xB),2);z8=Ri.yieldResult;if(z8===null)return Ri.return(null);qR=new Fq6(z8);xB.query.length===0&&qR.suggestions.length===0||Ef.cache.set(TqT(xB),qR);return Ri.return(qR)})}
function M(xB){var cO,z8;return _.e(function(qR){if(qR.nextAddress==1){YB=!1;var Ri=GT;Ri=_.NOW()==="search"?(_.lg(location.href,"search_query")||_.lg(location.href,"q"))===Ri:!1;cO=new rnq(xB,Ri?GT:null);return _.Q(qR,R(cO),2)}z8=qR.yieldResult;if(z8===null)return qR.return();cO.query.length===0&&(kR.zeroPrefixSuggestionCount=z8.suggestions.length);if(cO.id<=wI)return kR.outOfSyncResponseCount++,qR.return();if(document.activeElement!==VM.value)return qR.return();wI=cO.id;var kw=kR,ye=z8.rawResponse[2]||
{};kw.experimentTriggeredBeforeFinal||(kw.experimentTriggeredBeforeFinal=kw.experimentTriggeredFinal);kw.experimentTriggeredFinal=!!ye.e;kR.updateSuggestions(z8.suggestions);P(-1);uo([]);z8.suggestions!==x()&&Cd(z8.suggestions.length);A(z8.suggestions);xW(z8.suggestions.length>0&&z8.suggestions[0].type===33);MU&&(MU.hidden=z8.suggestions.length===0,UY()?(MU.style.minWidth="",kw=MU.style,ye=(Ri=x()[0])==null?void 0:Ri.ignoredPrefix,kw.marginLeft=(ye?Math.min(ye.length*6,Z_.value.offsetWidth):0).toString()+
"px"):(MU.style.minWidth=Z_.value.offsetWidth+"px",MU.style.marginLeft="0"),S9());_.gG(qR)})}
function g(){if(!HO)return!1;var xB=_.b0("REFINEMENTS_TUPLE");return xB?(xB=xB[1].map(function(cO,z8){return new m_P([cO,0,[71]],VM.value.value,z8)}),x()!==xB&&Cd(xB.length),uo([]),A(xB),kR.updateSuggestions(xB),HO=!1,MU.hidden=xB.length===0,YB=xB.length>0,!0):!1}
function t(){var xB=VM.value.value;(typeof xB==="string"||xB instanceof String)&&xB!==""?G(!0):G(!1)}
function C(){if(_.NOW()==="search"){var xB=window.location.href;try{var cO=_.lg(xB,"search_query")||_.lg(xB,"q")||""}catch(z8){cO=""}cO&&(VM.value.value=cO,G(!0))}}
var B=_.U(_.g$([],void 0,"kGFAjf")),I=B.next().value;B=B.next().value;var x=I,A=B;I=_.U(_.g$(-1,void 0,"mLGL9e"));var X=I.next().value,P=I.next().value;I=_.U(_.g$(-1,void 0,"u2rYdc"));var b=I.next().value,l=I.next().value;I=_.U(_.g$(!1,void 0,"W9DFC"));var w=I.next().value,G=I.next().value;I=_.U(_.g$(!1,void 0,"Ip4dNc"));var hr=I.next().value,p=I.next().value;B=_.U(_.g$(!1,void 0,"ZNKSQb"));I=B.next().value;B=B.next().value;var UY=I,xW=B;B=_.U(_.g$(!1,void 0,"JBrGLd"));I=B.next().value;var qw=B.next().value;
B=_.U(_.g$(!1,void 0,"P2pD6e"));var Lb=B.next().value,jk=B.next().value;B=_.U(_.g$(1,void 0,"SjP20c"));var Jr=B.next().value,nb=B.next().value;B=_.U(_.g$([],void 0,"h4dRaf"));var bo=B.next().value,uo=B.next().value;B=_.U(_.g$(!1,void 0,"TUTzaf"));var b_=B.next().value,BO=B.next().value;B=_.c("web_searchbox_animate_suggestions")&&"contentVisibility"in document.documentElement.style&&"interpolateSize"in document.documentElement.style;var dc=_.uf(),VM=_.uf(),Z_=_.uf(),MU,Ef=new qKq,kR=hUF(),Rn=_.WZ().resolve(_.Fd(_.nK)),
se=function(){var xB;return((xB=F.forceDarkMode)==null?void 0:xB.call(F))||!(Rn==null||!Rn())},l_=function(){return _.c("desktop_enable_scrollable_suggestions_panel")},j$="i"+D2T++,HO=!1,YB=!1,GT="",vO=null,wI=-1,Aa=function(){uo([]);
A([]);xW(!1);MU&&(MU.hidden=!0);vO&&(clearTimeout(vO),vO=null);P(-1)},MF=function(xB,cO){xB.preventDefault();
BO(!0);MU&&(MU.hidden=!1);var z8=X();xB=x();var qR=bo();cO=wzw(cO);z8+=cO;for(z8>=xB.length?z8=-1:z8<-1&&(z8=xB.length-1);z8!==-1&&(qR.includes(z8)||z8>=xB.length||z8<0);)z8+=cO,z8>=xB.length&&(z8=-1);P(z8);X()>=0&&(VM.value.value=x()[X()].text,l(0),t(),xB=X(),qR=b(),(qR=document.getElementById(Np[xB][qR]))&&l_()&&(xB===x().length-1?MU.scrollTop=MU.scrollHeight:qR.scrollIntoView({block:"nearest",inline:"start"})))},LT=_.tb(function(xB){if(!(xB.relatedTarget instanceof Element&&xB.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){p(!0);
var cO;(cO=F.focusCallback)==null||cO.call(F,!0);g()||(YB?MU.hidden=!1:(_.hF(dc.value,"yt-autonav-pause-focus",{}),M(xB.target.value)))}}),Du=_.tb(function(xB){if(!(xB.relatedTarget instanceof Element&&xB.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){p(!1);
var cO;(cO=F.focusCallback)==null||cO.call(F,!1);MU.scrollTop=0;MU.hidden=!0;_.hF(dc.value,"yt-autonav-pause-blur",{})}}),MR=function(xB){xB=wzw(xB);
var cO;((cO=Np[X()])==null?0:cO[b()+xB])&&l(b()+xB)},QA=_.tb(function(xB){var cO=xB.target;
switch(xB.keyCode){case 13:xB.preventDefault();var z8;if((z8=Np[X()])==null?0:z8[b()]){var qR;(qR=document.getElementById(Np[X()][b()]))==null||qR.dispatchEvent(new CustomEvent("mousedown",{detail:{wasSelectedByKeyboard:!0}}));break}xB=xB.shiftKey?4:3;z8=kR;qR=X();z8.selectedSuggestionIndex=qR;E(cO.value,xB);break;case 27:MU&&(MU.hidden=!0);break;case 40:MF(xB,40);break;case 38:MF(xB,38);break;case 39:MR(39);break;case 37:MR(37);break;case 229:kR.inputMethodsTracker.add(4);break;default:kR.inputMethodsTracker.add(1),
d26(kR)}return!1}),iK=_.tb(function(xB){M(xB.target.value);
t();l_()&&MU&&(MU.scrollTop=0);return!1}),DV=_.tb(function(){kR.inputMethodsTracker.add(2);
d26(kR);return!1});
_.$F(function(){if(MU){kR.reset();if(window.ResizeObserver){var xB=new ResizeObserver(function(){UY()||(MU.style.minWidth=Z_.value.offsetWidth+"px")});
xB.observe(Z_.value);(new ResizeObserver(function(){S9()})).observe(MU);
_.$p(function(){xB.disconnect()})}C();
window.addEventListener("yt-navigate-finish",C);window.addEventListener("yt-focus-searchbox",function(){VM.value.focus()});
var cO;qw((cO=_.b0("SBOX_SETTINGS"))==null?void 0:cO.HAS_ON_SCREEN_KEYBOARD)}else _.a_(new _.xC("suggestionsEl was not set in onInit. Component may be broken."),"WARNING")});
var xt=_.tb(function(xB){xB.preventDefault();E(VM.value.value,12);return!1}),i_=_.tb(function(xB){xB.preventDefault();
var cO,z8;(cO=VM)==null||(z8=cO.value)==null||z8.focus();var qR,Ri;((qR=VM)==null?void 0:(Ri=qR.value)==null?void 0:Ri.value)!==""&&(VM.value.value="",VM.value.dispatchEvent(new Event("input")));return!1}),AP=_.tb(function(){var xB=ntK(VM.value.value,x().filter(function(cO){return cO.type!==35}).map(function(cO){return{label:cO.text}}));
_.dW(dc.value,"yt-open-popup-action",[{openPopupAction:xB},document.body]);return!1}),YK=_.tb(function(){VM.value.focus();
return!1}),S$=function(xB,cO,z8,qR,Ri){kR.selectedSuggestionIndex=z8;
E(cO,Ri?3:1,qR)},zX=function(xB){VM.value.value=xB;
VM.value.dispatchEvent(new Event("input"));kR.inputMethodsTracker.add(5);d26(kR,!0)},Np=[[]],Ac=function(xB){var cO="searchbox-suggestion"+_.n3(_.sx);
Np[xB].push(cO);return cO},Cd=function(xB){if(x()){Np=[[]];
for(var cO=0;cO<xB;cO++)Np.push([])}},S9=function(){if(l_()){var xB=MU,cO=xB.scrollTop;
xB=xB.scrollHeight-xB.clientHeight;jk(cO>=xB);cO=Math.abs(xB-cO);cO<=40?nb(1-(40-cO)/40):nb(1)}},tF=function(){return"opacity: "+Jr()*100+"%"},DS=_.tb(function(){S9();
return!1}),fb=_.tb(function(){BO(!1);
return!1}),rI,Ii={},NF={},JW={},Qx={};
return _.z("yt-searchbox",{class:_.ec("ytSearchboxComponentHost",(Ii.ytSearchboxComponentMweb=!1,Ii.ytSearchboxComponentDesktop=!0,Ii["yt-searchbox-filled-query"]=function(){return w()},Ii["ytd-masthead"]=function(){return!hr()},Ii.ytSearchboxComponentHostDark=se,Ii)),
role:"search",el:dc,"client-ve-type":10349},_.z("div",{el:Z_,"on:click":YK,class:_.ec("ytSearchboxComponentInputBox",(NF.ytSearchboxComponentInputBoxDark=se,NF.ytSearchboxComponentInputBoxHasFocus=hr,NF))},_.z("form",{action:"/results",class:"ytSearchboxComponentSearchForm","on:submit":xt},_.z(_.v,{cond:hr,then:function(){return _.z("div",{class:"ytSearchboxComponentInnerSearchIcon"},_.z(_.I3,{icon:"SEARCH"}))}}),_.z("input",{el:VM,
class:_.ec("ytSearchboxComponentInput","yt-searchbox-input","title"),name:"search_query","aria-controls":j$,"aria-expanded":!((rI=MU)==null?0:rI.hidden),type:"text",autocomplete:"off",autocorrect:"off",spellcheck:!1,"on:blur":Du,"on:focus":LT,"on:input":iK,"on:keydown":QA,"on:paste":DV,placeholder:F.placeholderText,"aria-activedescendant":function(){var xB;return(xB=Np[X()])==null?void 0:xB[b()]},
"aria-autocomplete":"list",role:"combobox"})),_.z(_.v,{cond:I,then:function(){return _.z("div",{class:"ytSearchboxComponentYtdTextInputAssistantWrapper"},_.z(LqO,null))}}),_.z(_.v,{cond:w,
then:function(){return _.z("div",{class:"ytSearchboxComponentClearButtonWrapper"},_.z("button",{class:"ytSearchboxComponentClearButton","on:click":i_,"aria-label":F.clearButtonAriaLabel||XJP},_.z(_.I3,{icon:"DISMISSAL",className:"ytSearchboxComponentClearButtonIcon"}),_.z(_.xY,{model:{}})))}})),_.z("button",{class:_.ec("ytSearchboxComponentSearchButton",(JW.ytSearchboxComponentSearchButtonDark=se,JW)),
"on:click":xt,"aria-label":Zj6,title:F.placeholderText},_.z(_.I3,{icon:"SEARCH"})),_.z(_.v,{cond:function(){if(dng()&&_.c("mweb_voice_search")&&F.voiceSearchButton)return F.voiceSearchButton()},
then:function(xB){var cO={};return _.z("div",{class:_.ec("ytSearchboxComponentVoiceSearchWrapper",(cO.ytSearchboxComponentHideVoiceSearchButton=function(){return w()},cO))},_.z(_.a6,{data:xB},{buttonRenderer:function(z8){return _.z(_.yb,{data:z8.data,
onButtonClickCallback:function(){}})}}))}}),_.z("div",{el:_.G4(function(xB){return void(MU=xB)}),
id:j$,class:_.ec("ytSearchboxComponentSuggestionsContainer",(Qx.ytSearchboxComponentSuggestionsContainerDark=se,Qx["yt-searchbox-suggestions-container"]=!1,Qx.ytSearchboxComponentSuggestionsContainerScrollable=l_(),Qx.ytSearchboxComponentSuggestionsContainerAnimated=B,Qx)),"on:scroll":DS,"on:mousemove":fb,role:"listbox",hidden:!0},_.z(_.xF,{each:x},function(xB,cO){return _.z(szg,{suggestion:xB,isHighlighted:function(){return cO()===X()},
onClickCallback:S$,onHoverUpdateCallback:function(z8){if(_.c("desktop_enable_single_suggestion_highlight")){var qR=cO();z8&&(l(0),P(qR))}},
onRemoveCallback:function(z8){$2P(Ef);z8===void 0||z8<0||bo().includes(z8)||uo([].concat(_.x9(bo()),[z8]))},
labels:F.labels,queryBuilderFunction:zX,suggestionIndex:cO,generateUniqueId:Ac,highlightedId:function(){var z8;return(z8=Np[X()])==null?void 0:z8[b()]},
useScrollMargin:l_(),isKeyboardMode:b_})}),_.z(_.v,{cond:function(){return!UY()&&x().find(function(xB){return xB.type!==35})&&_.c("searchbox_reporting")},
then:function(){return _.z("button",{class:"ytSearchboxComponentReportButton","on:mousedown":AP},_.CY("SBOX_INAPPROPRIATE_PROMPT",void 0,"Report search predictions"))}}),_.z(_.v,{cond:function(){return!Lb()&&l_()},
then:function(){return _.z("div",{class:"ytSearchboxComponentSuggestionsContainerFooter"},_.z("div",{class:"ytSearchboxComponentSuggestionsContainerFooterGradient",style:tF}))}})))},"lg"),"yt-searchbox",{props:{searchEndpoint:_.TS,
placeholderText:_.TS,labels:_.TS,voiceSearchButton:_.TS,focusCallback:_.Si,clearButtonAriaLabel:_.TS,forceDarkMode:_.TS}});var MV=function(){var F=_.n.apply(this,arguments)||this;F.menuButtonTargetId="topbar-guide-menu";F.narrow=!1;F.menuStrings={BACK_ALT_LABEL:_.CY("BACK_ALT_LABEL",void 0,"Back"),GUIDE_ALT_LABEL:_.CY("GUIDE_ALT_LABEL",void 0,"Guide"),LOGO_ALT_LABEL:_.CY("LOGO_ALT_LABEL",void 0,"YouTube Home"),SEARCH_ALT_LABEL:_.CY("SBOX_PLACEHOLDER",void 0,"Search")};F.pageDarkTheme=document.documentElement.hasAttribute("dark");F.watchPageScrollTop=0;F.theater=!1;F.fullscreen=!1;F.desktopUnifiedSearchPanelMode=_.c("desktop_enable_unified_search_panel");
F.cinematicTheaterMode=_.c("web_cinematic_theater_mode");F.ytSearchboxFocused=!1;F.searchboxLabels=_.b0("SBOX_LABELS");F.topbarIsAboveChipbar=!1;F.isDarkThemeForced=!1;F.areGhostCardsHidden=!1;F.guideKeyboardToggle=!1;F.voiceSearchManager=YzF();F.actionMap={"yt-send-feedback-action":"onYtSendFeedbackAction","yt-fullscreen-change-action":"onFullscreenChangeAction"};F.setYtSearchboxFocused=function(W){F.ytSearchboxFocused=W};
return F};
_.k(MV,_.n);_.N=MV.prototype;_.N.computeSimpleText=function(F){return _.Yr(F)};
_.N.onDarkChanged=function(){for(var F=_.U(this.buttons||[]),W=F.next();!W.done;W=F.next())W.value.isOverlay=!!this.dark;F=_.U(this.buttonRenderers||[]);for(W=F.next();!W.done;W=F.next())W.value.overrides=this.computeButtonOverride()};
_.N.computeButtonOverride=function(){return this.dark?{style:"overlay"}:void 0};
_.N.configureRendererStamper=function(){return{"data.interstitial":{id:"interstitial",mapping:{consentBumpV2Renderer:"ytd-consent-bump-v2-renderer"}},"data.voiceSearchButton":{id:"voice-search-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundOnTapVoiceButton]]",overrides:"[[buttonOverrides]]"}}},reuseComponents:!1},"data.topbarButtons":{id:"buttons",events:!0,mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}},
notificationTopbarButtonRenderer:{component:"ytd-notification-topbar-button-renderer",properties:{isOverlay:"[[dark]]"}},iconBadgeTopbarButtonRenderer:{component:"ytd-icon-badge-topbar-button-renderer",properties:{isOverlay:"[[dark]]"}},topbarMenuButtonRenderer:"ytd-topbar-menu-button-renderer"},initialRenderPriority:1},"data.a11ySkipNavigationButton":{id:"skip-navigation",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.N.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","banner");var F=_.rL(_.ip(),"aa");_.Wm(this.hostElement,"shell",!1);!this.hostElement.classList.contains("dark")&&!this.hostElement.classList.contains("theater")||F||(this.isDarkThemeForced=this.dark=!0);this.logoType?(F=this.hostElement.querySelector("#masthead-logo"))&&(_.c("polymer_on_demand_shady_dom")?F.setAttribute("slot","masthead-logo-old"):_.Bb(F)):this.logo.hidden=!0;document.addEventListener("yt-watch-masthead-scroll",
_.UO(this,this.onWatchScroll));document.addEventListener("yt-set-theater-mode-enabled",_.UO(this,this.onSetTheaterModeEnabled))};
_.N.detached=function(){document.removeEventListener("yt-watch-masthead-scroll",_.UO(this,this.onWatchScroll));document.removeEventListener("yt-set-theater-mode-enabled",_.UO(this,this.onSetTheaterModeEnabled))};
_.N.dataChanged=function(){var F=this.data;F&&(this.voiceEnabled=F.voiceSearchButton?YzF().isSupported():!1,_.$_u(_.QV(),this.menuButtonTargetId,this.guideButton),F.onReceivedActions&&F.onReceivedActions.length>0&&!this.hasShownCreatorEmailOptInPopup&&(_.Rj(this.hostElement,F.onReceivedActions,this.hostElement),this.hasShownCreatorEmailOptInPopup=!0),!this.hasRenderedWithData&&F&&(this.hasRenderedWithData=!0,this.logo.hidden=!1,_.Wm(this.hostElement,"dark",!1),_.Wm(this.hostElement,"theater",!1),
(F=this.hostElement.querySelector("#masthead-logo"))&&(_.c("polymer_on_demand_shady_dom")?F.setAttribute("slot","masthead-logo-old"):_.Bb(F))))};
_.N.computeCenterHidden=function(){var F;return this.data&&!((F=this.data.searchbox)==null?0:F.fusionSearchboxRenderer)};
_.N.onRendererStamperFinished=function(){this.areGhostCardsHidden||(_.Wm(this.hostElement,"masthead-finish",!0),this.areGhostCardsHidden=!0)};
_.N.onWatchPageChange=function(){this.isWatchPage||this.resetBackground()};
_.N.onWatchScroll=function(F){this.watchPageScrollTop=F.detail||0;this.updateMastheadBackgroundOpacity()};
_.N.onFullscreenChangeAction=function(F){F||(this.watchPageScrollTop=0);this.fullscreen=F;this.updateMastheadBackgroundOpacity()};
_.N.onSetTheaterModeEnabled=function(F){this.theater=F.detail.enabled;this.updateMastheadBackgroundOpacity()};
_.N.updateMastheadBackgroundOpacity=function(){this.shouldShowCinematicMastHead()&&(this.isBigPlayer()?this.resetBackground():document.body.className.indexOf("lock-scrollbar")===-1&&this.setBackgroundOpacity(this.watchPageScrollTop))};
_.N.resetBackground=function(){this.background.style.removeProperty("opacity");this.watchPageScrollTop=0};
_.N.setBackgroundOpacity=function(F){F=this.calculateBackgroundOpacity(F);this.background.style.opacity=""+F};
_.N.calculateBackgroundOpacity=function(F){var W=this.theater&&this.cinematicTheaterMode?.6:0,E=this.hostElement.clientHeight/2;return Math.min(Math.max(F,0),E)/E*(1-W)+W};
_.N.shouldShowCinematicMastHead=function(){var F=_.c("kevlar_watch_grid")&&!_.c("swatchie_cinematic_masthead_ks");return this.isWatchPage&&(F||this.pageDarkTheme)};
_.N.isBigPlayer=function(){return this.fullscreen||this.theater&&!this.cinematicTheaterMode};
_.N.focusGuide=function(){this.guideButton.focus()};
_.N.onGuideToggleTap=function(){_.hF(this.hostElement,"yt-guide-toggle",{isKeyInput:this.guideKeyboardToggle});this.guideKeyboardToggle=!1};
_.N.onGuideButtonKeydown=function(){this.guideKeyboardToggle=!0};
_.N.onGuideToggleHover=function(){_.hF(this.hostElement,"yt-guide-hover")};
_.N.onSearchCloseClick=function(){this.ytdExpandableInputBehavior.showInput=!1};
_.N.narrowChanged=function(){this.narrow?this.ytSearchboxFocused&&this.ytdExpandableInputBehavior.openOnClick_():this.ytdExpandableInputBehavior.showInput=!1};
_.N.closeOnOutsideClickCondition=function(F){for(F=_.TB(F);F[0];){var W=F.shift();if(W instanceof Element&&W.id==="kbd")return!1}return!0};
_.N.onVoiceTap=function(){this.pausePlayer();this.voiceSearchManager.start()};
_.N.pausePlayer=function(){var F;(F=_.WS())==null||F.pause();this.pauseMiniplayer()};
_.N.pauseMiniplayer=function(){if(this.isMiniplayerActive()){var F;(F=_.WZ().resolve(_.GF).getPlayerElement())==null||F.pause()}};
_.N.isMiniplayerActive=function(){return _.WZ().resolve(_.GF).isMiniplayerActive()};
_.N.updateNarrowFromBinding=function(F){this.narrow=F.detail.value};
_.N.onYtSendFeedbackAction=function(){_.dW(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.Sn.Object.defineProperties(MV.prototype,{guideIcon:{configurable:!0,enumerable:!0,get:function(){return _.c("enable_web_delhi_icons")?"menu":"yt-icons:menu"}},
shouldShowVoiceSearchButton:{configurable:!0,enumerable:!0,get:function(){return!!this.voiceEnabled&&!this.desktopUnifiedSearchPanelMode}},
voiceSearchButton:{configurable:!0,enumerable:!0,get:function(){if(this.desktopUnifiedSearchPanelMode){var F;return(F=this.data)==null?void 0:F.voiceSearchButton}}}});
MV.prototype.narrowChanged=MV.prototype.narrowChanged;MV.prototype.onWatchPageChange=MV.prototype.onWatchPageChange;MV.prototype.onRendererStamperFinished=MV.prototype.onRendererStamperFinished;MV.prototype.dataChanged=MV.prototype.dataChanged;MV.prototype.onDarkChanged=MV.prototype.onDarkChanged;_.T([_.J(_.lB),_.Y("design:type",Object)],MV.prototype,"ironResizableBehavior",void 0);_.T([_.J(_.S0q),_.Y("design:type",Object)],MV.prototype,"ytdExpandableInputBehavior",void 0);
_.T([_.J(_.y_.YtdGuideStateAwareBehavior),_.Y("design:type",Object)],MV.prototype,"ytdGuideStateAwareBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],MV.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],MV.prototype,"ytComponentBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],MV.prototype,"ytRendererBehavior",void 0);
_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],MV.prototype,"ytActionHandlerBehavior",void 0);_.T([_.J(_.am),_.Y("design:type",Object)],MV.prototype,"ytdReduxBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],MV.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Object)],MV.prototype,"narrow",void 0);_.T([_.O(),_.Y("design:type",Object)],MV.prototype,"logoType",void 0);_.T([_.O(),_.Y("design:type",Boolean)],MV.prototype,"voiceEnabled",void 0);
_.T([_.O(),_.Y("design:type",Object)],MV.prototype,"menuStrings",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],MV.prototype,"dark",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],MV.prototype,"pageDarkTheme",void 0);_.T([_.O(),_.Y("design:type",Object)],MV.prototype,"watchPageScrollTop",void 0);_.T([_.O({reflectToAttribute:!0,selector:_.JE}),_.Y("design:type",Boolean)],MV.prototype,"isWatchPage",void 0);
_.T([_.O({reflectToAttribute:!0,selector:_.xCo}),_.Y("design:type",Boolean)],MV.prototype,"isShortsPage",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],MV.prototype,"theater",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],MV.prototype,"fullscreen",void 0);_.T([_.O({reflectToAttribute:!0,selector:_.qak}),_.Y("design:type",String)],MV.prototype,"frostedGlassMode",void 0);_.T([_.O(),_.Y("design:type",Object)],MV.prototype,"ytSearchboxFocused",void 0);
_.T([_.Q9("#buttons > *"),_.Y("design:type",Array)],MV.prototype,"buttons",void 0);_.T([_.Q9("ytd-button-renderer"),_.Y("design:type",Array)],MV.prototype,"buttonRenderers",void 0);_.T([_.gQ("#background"),_.Y("design:type",HTMLDivElement)],MV.prototype,"background",void 0);_.T([_.gQ("#guide-button"),_.Y("design:type",Object)],MV.prototype,"guideButton",void 0);_.T([_.gQ("#logo"),_.Y("design:type",Object)],MV.prototype,"logo",void 0);
_.T([_.O({computed:"computeButtonOverride(dark)"}),_.Y("design:type",Object)],MV.prototype,"buttonOverrides",void 0);_.T([_.Cz("dark"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],MV.prototype,"onDarkChanged",null);_.T([_.O({value:function(){return this.onVoiceTap.bind(this)}}),
_.Y("design:type",Function)],MV.prototype,"boundOnTapVoiceButton",void 0);_.T([_.O(),_.Y("design:type",Object)],MV.prototype,"topbarIsAboveChipbar",void 0);_.T([_.O(),_.Y("design:type",String),_.Y("design:paramtypes",[])],MV.prototype,"guideIcon",null);_.T([_.a("voiceEnabled"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],MV.prototype,"shouldShowVoiceSearchButton",null);_.T([_.a("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],MV.prototype,"voiceSearchButton",null);
_.T([_.Cz("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],MV.prototype,"dataChanged",null);_.T([_.R4("yt-rendererstamper-finished"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],MV.prototype,"onRendererStamperFinished",null);_.T([_.Cz("isWatchPage"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],MV.prototype,"onWatchPageChange",null);
_.T([_.Cz("narrow"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],MV.prototype,"narrowChanged",null);MV=_.T([_.y({disableElementRegistration:!0,is:"ytd-masthead"})],MV);
_.r(MV,"ytd-masthead",function(){if(IbN!==void 0)return IbN;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-masthead--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<iron-media-query query="max-width: 656px" query-matches="[[narrow]]" on-query-matches-changed="updateNarrowFromBinding" class="style-scope ytd-masthead">\n</iron-media-query>\n<div id="ticker" class="style-scope ytd-masthead"></div>\n<div id="interstitial" class="style-scope ytd-masthead"></div>\n<div id="background" hidden="[[hideBackground]]" class="style-scope ytd-masthead"></div>\n<div id="container" class="style-scope ytd-masthead">\n  <div id="start" class="style-scope ytd-masthead">\n    <yt-icon-button id="back-button" label="[[menuStrings.BACK_ALT_LABEL]]" on-click="onSearchCloseClick" class="style-scope ytd-masthead">\n      <yt-icon disable-upgrade$="[[!showInput]]" icon="yt-icons:arrow-back" class="style-scope ytd-masthead">\n      </yt-icon>\n    </yt-icon-button>\n    <tp-yt-paper-tooltip id="back-button-tooltip" disable-upgrade$="[[!showInput]]" for="back-button" class="style-scope ytd-masthead">\n      [[menuStrings.BACK_ALT_LABEL]]\n    </tp-yt-paper-tooltip>\n    <yt-icon-button id="guide-button" label="[[menuStrings.GUIDE_ALT_LABEL]]" pressed="[[guideOpened]]" toggleable="true" on-click="onGuideToggleTap" on-keydown="onGuideButtonKeydown" on-mouseenter="onGuideToggleHover" class="style-scope ytd-masthead">\n      <yt-icon id="guide-icon" icon="[[guideIcon]]" class="style-scope ytd-masthead"></yt-icon>\n    </yt-icon-button>\n    <slot name="masthead-logo" class="style-scope ytd-masthead"></slot>\n    <ytd-topbar-logo-renderer id="logo" country-code="[[data.countryCode]]" data="[[data.logo.topbarLogoRenderer]]" logo-type="[[logoType]]" use-dark-theme-yoodle="[[dark]]" class="style-scope ytd-masthead">\n    </ytd-topbar-logo-renderer>\n    <div id="skip-navigation" class="style-scope ytd-masthead"></div>\n  </div>\n  <div id="center" hidden="[[computeCenterHidden(data)]]" class="style-scope ytd-masthead">\n    <yt-searchbox clear-button-aria-label="[[data.searchbox.fusionSearchboxRenderer.clearButton.buttonRenderer.accessibilityData.accessibilityData.label]]" focus-callback="[[setYtSearchboxFocused]]" force-dark-mode="[[dark]]" labels="[[searchboxLabels]]" placeholder-text="[[computeSimpleText(data.searchbox.fusionSearchboxRenderer.placeholderText)]]" search-endpoint="[[data.searchbox.fusionSearchboxRenderer.searchEndpoint]]" voice-search-button="[[voiceSearchButton]]" class="style-scope ytd-masthead">\n    </yt-searchbox>\n    <yt-icon-button id="search-button-narrow" label="[[menuStrings.SEARCH_ALT_LABEL]]" on-click="openOnClick_" class="style-scope ytd-masthead">\n      <yt-icon class="topbar-icons style-scope ytd-masthead" disable-upgrade$="[[!narrow]]" icon="yt-icons:search">\n      </yt-icon>\n      <tp-yt-paper-tooltip disable-upgrade$="[[!narrow]]" for="search-button-narrow" hidden="[[!narrow]]" class="style-scope ytd-masthead">\n        [[menuStrings.SEARCH_ALT_LABEL]]\n      </tp-yt-paper-tooltip>\n    </yt-icon-button>\n    <div id="voice-search-button" hidden="[[!shouldShowVoiceSearchButton]]" class="style-scope ytd-masthead">\n    </div>\n  </div>\n  <div id="end" class="style-scope ytd-masthead">\n    <slot name="masthead-skeleton" class="style-scope ytd-masthead"></slot>\n    <div id="buttons" class="style-scope ytd-masthead"></div>\n  </div>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return IbN=F},{mode:_.E6("kevlar_poly_si_batch_j036")?1:2});var P46;var J3P={},abg={},fbq={},OjP={},bjw=(OjP.OFFLINE=(J3P["publicytnetworkstatus-online"]="BACK_ONLINE",J3P),OjP.ONLINE=(abg["publicytnetworkstatus-offline"]="OFFLINE",abg),OjP.BACK_ONLINE=(fbq["publicytnetworkstatus-offline"]="OFFLINE",fbq.TIMER_TRIGGER="ONLINE",fbq),OjP),gd=function(){var F=_.n.apply(this,arguments)||this;F.currentState="ONLINE";F.scheduledJobId=0;F.bannerString="";F.bannerVe=null;F.networkStatusManagerInstance=new _.TX;return F};
_.k(gd,_.n);_.N=gd.prototype;_.N.attached=function(){var F=this;this.networkStatusManagerInstance.isNetworkAvailable()||this.stateChangeHandler("publicytnetworkstatus-offline");this.networkStatusManagerInstance.listen("publicytnetworkstatus-online",function(){F.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.listen("publicytnetworkstatus-offline",function(){F.stateChangeHandler("publicytnetworkstatus-offline")})};
_.N.detached=function(){var F=this;this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-online",function(){F.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-offline",function(){F.stateChangeHandler("publicytnetworkstatus-offline")})};
_.N.enterState=function(F){var W=this;this.scheduledJobId&&_.P0.cancelJob(this.scheduledJobId);F==="ONLINE"?(this.logVisibility(!1),this.bannerString=""):F==="OFFLINE"?(this.logVisibility(!0),this.bannerString=_.CY("NO_INTERNET_CONNECTION",void 0,"No internet connection")):F==="BACK_ONLINE"&&(this.bannerString=_.CY("BACK_ONLINE",void 0,"Back Online"),this.scheduledJobId=_.sB(_.P0,function(){W.stateChangeHandler("TIMER_TRIGGER")},3E3));
this.currentState=F};
_.N.stateChangeHandler=function(F){(F=bjw[this.currentState][F])&&this.enterState(F)};
_.N.logVisibility=function(F){var W=_.JR();this.createBannerVe(F);W&&this.bannerVe&&(F?_.rW(W,[this.bannerVe]):_.TJ(W,[this.bannerVe]))};
_.N.createBannerVe=function(F){!this.bannerVe&&F&&(this.bannerVe=_.LQ(37929),_.t5(_.z4(),this.bannerVe))};
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",String)],gd.prototype,"currentState",void 0);_.T([_.O(),_.Y("design:type",Object)],gd.prototype,"scheduledJobId",void 0);_.T([_.O(),_.Y("design:type",Object)],gd.prototype,"bannerString",void 0);gd=_.T([_.y({disableElementRegistration:!0,is:"ytd-network-status-banner"})],gd);
_.r(gd,"ytd-network-status-banner",function(){if(P46!==void 0)return P46;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-network-status-banner--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="status-banner style-scope ytd-network-status-banner">\n       [[bannerString]]\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return P46=
F},{mode:1});var lbg;var Qs=function(){var F=_.n.apply(this,arguments)||this;F.actionMap={"yt-update-permission-role-command":"handleUpdatePermissionRoleCommand"};F.hidden=!0;F.frostedGlass=_.c("web_frosted_glass");return F};
_.k(Qs,_.n);Qs.prototype.computeHidden=function(F){return F&&F.status?!1:!0};
Qs.prototype.handleUpdatePermissionRoleCommand=function(F){if(F=_.D(F,_.ZBM))if(F=_.D(F.renderer,_.$HT))this.data=F};
_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],Qs.prototype,"ytActionHandlerBehavior",void 0);_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],Qs.prototype,"componentBehavior",void 0);_.T([_.O({value:!0,computed:"computeHidden(data)"}),_.Y("design:type",Object)],Qs.prototype,"hidden",void 0);_.T([_.O(),_.Y("design:type",Object)],Qs.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Qs.prototype,"frostedGlass",void 0);
Qs=_.T([_.y({disableElementRegistration:!0,is:"ytd-permission-role-bottom-bar-renderer"})],Qs);
_.r(Qs,"ytd-permission-role-bottom-bar-renderer",function(){if(lbg!==void 0)return lbg;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-permission-role-bottom-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="pom-role-text style-scope ytd-permission-role-bottom-bar-renderer" hidden="[[hidden]]">\n  <yt-formatted-string text="[[data.status]]" class="style-scope ytd-permission-role-bottom-bar-renderer"></yt-formatted-string>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);return lbg=F},{mode:1});var nh$;var y3w;var uDK={productId:"5047190",bucket:"suggest",enableAnonymousFeedback:!0,flow:"submit",allowNonLoggedInFeedback:!0};var zo=function(){return _.n.apply(this,arguments)||this};
_.k(zo,_.n);_.N=zo.prototype;_.N.attached=function(){this.JSC$18453_scroller&&(this.JSC$18453_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18453_scroller.attached&&typeof this.JSC$18453_scroller.attached==="function"&&this.JSC$18453_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.N.dataChanged=function(){if(this.data!==void 0){Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).forEach(function(E){E.checked=!1});
this.catagorySelected=this.suggestionSelected=!1;var F=_.Z(this.hostElement);F.querySelector("tp-yt-paper-radio-group").selected="";var W=F.querySelector("#reason-text");W&&(W.value="");F.querySelector("#description-text").value=""}};
_.N.canSubmit=function(F,W){_.hF(this.hostElement,"yt-invalidate-popup-tabbables");return!(F&&W)};
_.N.onCancel=function(){_.dW(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"])};
_.N.onSubmit=function(){var F=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).filter(function(V){return V.active}).map(function(V){return V.innerText.trim()}),W=this.hostElement.querySelector("tp-yt-paper-radio-group"),E=W.selectedItem,h=E.name;
E=E.innerText.trim();var d=W.querySelector("#reason-text");W=void 0;d&&(W=d.value);(d=this.descriptionText.value)&&(d=d.trim());S_T(this.data.searchQuery,F,h,E,d,W);_.dW(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"]);this.sendFormSubmitToast()};
_.N.sendFormSubmitToast=function(){var F=_.mf(_.CY("SBOX_INAPPROPRIATE_TOAST"));_.dW(this.hostElement,"yt-open-popup-action",[F,this])};
_.N.onIronChange=function(){this.suggestionSelected=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).some(function(F){return F.active})};
_.N.onIronSelect=function(){this.catagorySelected=!!this.hostElement.querySelector("tp-yt-paper-radio-group").selected};
zo.prototype.onIronSelect=zo.prototype.onIronSelect;zo.prototype.onIronChange=zo.prototype.onIronChange;zo.prototype.dataChanged=zo.prototype.dataChanged;_.T([_.O(),_.Y("design:type",Object)],zo.prototype,"data",void 0);_.T([_.O({value:!0,computed:"canSubmit(suggestionSelected,catagorySelected)"}),_.Y("design:type",Boolean)],zo.prototype,"submitDisabled",void 0);_.T([_.O(),_.Y("design:type",Boolean)],zo.prototype,"suggestionSelected",void 0);
_.T([_.O(),_.Y("design:type",Boolean)],zo.prototype,"catagorySelected",void 0);_.T([_.gQ("#scroller"),_.Y("design:type",Object)],zo.prototype,"JSC$18453_scroller",void 0);_.T([_.gQ("#description-text"),_.Y("design:type",Object)],zo.prototype,"descriptionText",void 0);_.T([_.Cz("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],zo.prototype,"dataChanged",null);
_.T([_.R4("iron-change"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],zo.prototype,"onIronChange",null);_.T([_.R4("iron-select"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],zo.prototype,"onIronSelect",null);zo=_.T([_.y({disableElementRegistration:!0,is:"ytd-search-suggestion-report-dialog"})],zo);
_.r(zo,"ytd-search-suggestion-report-dialog",function(){if(y3w!==void 0)return y3w;var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-suggestion-report-dialog--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-search-suggestion-report-dialog">\n  <div id="content" class="style-scope ytd-search-suggestion-report-dialog">\n    <h2 id="title" class="style-scope ytd-search-suggestion-report-dialog">[[data.title]]</h2>\n    <div id="suggestions" class="style-scope ytd-search-suggestion-report-dialog">\n      <template is="dom-repeat" items="[[data.suggestions]]" class="style-scope ytd-search-suggestion-report-dialog">\n        <tp-yt-paper-checkbox class="style-scope ytd-search-suggestion-report-dialog">[[item.label]]</tp-yt-paper-checkbox>\n      </template>\n    </div>\n    <tp-yt-paper-radio-group id="categories" class="style-scope ytd-search-suggestion-report-dialog">\n      <h2 id="category-title" class="style-scope ytd-search-suggestion-report-dialog">[[data.categoryLabel]]</h2>\n      <yt-formatted-string id="category-title" text="[[data.categoryLabel]]" class="style-scope ytd-search-suggestion-report-dialog">\n      </yt-formatted-string>\n      <template is="dom-repeat" items="[[data.categories]]" class="style-scope ytd-search-suggestion-report-dialog">\n        <tp-yt-paper-radio-button name="[[item.id]]" class="style-scope ytd-search-suggestion-report-dialog">\n          [[item.label]]\n          <template is="dom-if" if="[[item.reasonLabel]]" class="style-scope ytd-search-suggestion-report-dialog">\n            <tp-yt-paper-input-container id="reason" no-label-float="" use-v2-underline="" class="style-scope ytd-search-suggestion-report-dialog">\n              <tp-yt-iron-autogrow-textarea id="reason-text" class="paper-input-input style-scope ytd-search-suggestion-report-dialog" slot="input" maxlength="500" placeholder="[[item.reasonLabel]]" rows="1">\n              </tp-yt-iron-autogrow-textarea>\n            </tp-yt-paper-input-container>\n          </template>\n        </tp-yt-paper-radio-button>\n      </template>\n    </tp-yt-paper-radio-group>\n    <tp-yt-paper-input-container id="details" no-label-float="" use-v2-underline="" class="style-scope ytd-search-suggestion-report-dialog">\n      <tp-yt-iron-autogrow-textarea id="description-text" class="paper-input-input style-scope ytd-search-suggestion-report-dialog" slot="input" maxlength="500" placeholder="[[data.detailsPlaceholderLabel]]" rows="2">\n      </tp-yt-iron-autogrow-textarea>\n      <tp-yt-paper-input-char-counter slot="add-on" class="style-scope ytd-search-suggestion-report-dialog"></tp-yt-paper-input-char-counter>\n    </tp-yt-paper-input-container>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n<div id="footer" class="style-scope ytd-search-suggestion-report-dialog">\n  <tp-yt-paper-button id="cancel" on-tap="onCancel" class="style-scope ytd-search-suggestion-report-dialog">[[data.cancelButtonLabel]]</tp-yt-paper-button>\n  <tp-yt-paper-button id="submit" disabled="[[submitDisabled]]" on-tap="onSubmit" class="style-scope ytd-search-suggestion-report-dialog">\n    [[data.submitButtonLabel]]\n  </tp-yt-paper-button>\n</div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return y3w=F},{mode:1});var t0=function(F){var W=F.openPopupAction;var E=F.target;var h=F.container;var d=F.popupContainerConfig;var V=F.getElement;F=F.removeWhenClosed===void 0?!1:F.removeWhenClosed;this.naturalHeight=this.popupContent=this.popup=void 0;this.openPopupAction=W;this.target=E;this.container=h;this.popupContainerConfig=d;this.getElement=V;this.JSC$18459_popupConfig=this.popupContainerConfig.JSC$17576_popupConfig[this.openPopupAction.popupType];this.rendererName=(W=this.getName())?_.fAb(W,s9O(this.popupContainerConfig,
W)):"";_.c("ytpopup_disable_default_html_caching")&&(this.removeWhenClosed=F);this.createPopup()};
t0.prototype.updatePopup=function(F){this.openPopupAction=F;this.JSC$18459_popupConfig=this.popupContainerConfig.JSC$17576_popupConfig[this.openPopupAction.popupType];jzT(this);_.c("reorder_popup_updates_killswitch")&&ijO(this);_.c("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0)};
var oh8=function(F,W,E){F.target=E;var h;E=((h=F.target.polymerController)!=null?h:F.target).popupPositionTarget||F.target;F.JSC$18459_popupConfig.targetContainer&&(E=F.container);F.popup.positionTarget=E;F.popupContent.positionTarget=E;_.c("reorder_popup_updates_killswitch")||ijO(F);F.JSC$18459_popupConfig.forceFocus&&(F.popupContent.style.outline="none");F.popupContent.tabIndex=-1;F.JSC$18459_popupConfig.narrowProperties&&(F.popup.style.position="static");F.JSC$18459_popupConfig.preventAutonav&&
F.popup.setAttribute("prevent-autonav",!0);F.JSC$18459_popupConfig.forceCloseOnOutsideClick&&F.popup.setAttribute("force-close-on-outside-click",!0);r3T(F,W);TDu(F,F.JSC$18459_popupConfig.styles);F.isRtl()&&TDu(F,F.JSC$18459_popupConfig.rtlStyles);if(!F.openPopupAction.shouldStopParentSignal){var d;W=(d=F.target.polymerController)!=null?d:F.target;(F.popupContent.startForwardingEvents||F.popupContainerConfig.forwardingEnabledPopups.has(F.rendererName))&&W.parentComponent!==F.popupContent&&F.popupContent!==
F.target&&F.target!==document.body&&(F.popupContent.startForwardingEvents?F.popupContent.startForwardingEvents(F.popupContainerConfig.forwardedEvents,F.target):(F.JSC$18459_eventForwarder||(F.JSC$18459_eventForwarder=new _.c6(F.popupContent)),F.JSC$18459_eventForwarder.start(F.popupContainerConfig.forwardedEvents,F.target)))}};
t0.prototype.refit=function(){this.popup.opened&&this.popup.refit()};
var r3T=function(F,W){Gp8(F,W&&F.JSC$18459_popupConfig.narrowProperties?F.JSC$18459_popupConfig.narrowProperties:F.JSC$18459_popupConfig.properties);F.isRtl()&&Gp8(F,F.JSC$18459_popupConfig.rtlProperties);ijO(F)};
t0.prototype.createPopup=function(){var F=this.JSC$18459_popupConfig.component;if(this.popupContent=YKx(this,this.rendererName)){if(F){this.popup=YKx(this,F);var W=this.popupContent;_.c("web_enable_wrapper_for_cow_component_in_popup")&&(W=document.createElement("div"),W.appendChild(this.popupContent));_.c("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0);this.JSC$18459_popupConfig.slotName&&W.setAttribute("slot",this.JSC$18459_popupConfig.slotName);F=this.popup;var E=this.container.tagName.toLowerCase(),
h=_.GB(W);_.eZb(_.w2(F),_.pf(W,E,h));document.body.appendChild(this.popup)}else this.popup=this.popupContent;_.c("ytpopup_disable_default_html_caching")&&(this.popup.removeWhenClosed=this.removeWhenClosed);_.Z(this.container).appendChild(this.popup)}};
var jzT=function(F){var W,E,h=(W=F.openPopupAction.accessibilityData)==null?void 0:(E=W.accessibilityData)==null?void 0:E.label;h&&(F.popup.ariaLabel=h);var d;((d=F.popupContent.polymerController)!=null?d:F.popupContent).data=(0,_.xd.unsafeClone)(F.openPopupAction.popup[F.getName()]);F.popupContent.duration=wJK(F);F.popupContent.positionType=F.openPopupAction.position;var V=F.openPopupAction.properties;V&&Object.keys(V).forEach(function(R){F.popupContent[R]=V[R]})},Gp8=function(F,W){if(W)for(var E=
_.U(Object.keys(W)),h=E.next();!h.done;h=E.next())h=h.value,F.popup[h]=W[h]},ijO=function(F){if(F.openPopupAction.position){var W=F.JSC$18459_popupConfig.positionalProperties&&F.JSC$18459_popupConfig.positionalProperties[F.openPopupAction.position],E=F.JSC$18459_popupConfig.rtlPositionalProperties&&F.JSC$18459_popupConfig.rtlPositionalProperties[F.openPopupAction.position];
W=F.isRtl()&&E?E:W;W.shiftedHorizontalOffset&&(E=F.popup.style.display,F.popup.style.display="block",F.popupContent&&F.popup.positionTarget&&F.popupContent.clientWidth>F.popup.positionTarget.clientWidth&&(W.horizontalOffset=F.popup.positionTarget.clientWidth/2-W.shiftedHorizontalOffset),F.popup.style.display=E);Gp8(F,W)}},TDu=function(F,W){if(W)for(var E=_.U(Object.keys(W)),h=E.next();!h.done;h=E.next())h=h.value,F.popup.style[h]=W[h]};
t0.prototype.getName=function(){return _.aW(this.openPopupAction.popup,"renderer")||_.aW(this.openPopupAction.popup,"dialog")||_.aW(this.openPopupAction.popup,"model")||void 0};
var wJK=function(F){F=F.openPopupAction.durationHintMs;return F===0?F:Math.max(4E3,F||4E3)};
t0.prototype.isRtl=function(){return _.b0("HTML_DIR")==="rtl"};
var YKx=function(F,W){F=F.getElement(W,F.target);F==null&&_.OB(new _.xC("popup getElement returned null",W));return F};var usg={};
usg.YtPopupContainerBehavior=[_.Ok.YtComponentBehavior,_.FM.YtActionHandlerBehavior,{created:function(){this.popupContainerConfig=null;this.popups_={};this.shownPopupKeys_=new Set;this.popupContainerActionMap_={"yt-close-popup-action":"handleClosePopupAction_","yt-close-popup-command":"handleClosePopupCommand_","yt-close-popups-action":"handleClosePopupsAction_","yt-close-all-popups-action":"handleCloseAllPopupsAction_","yt-get-popup-opened-action":"handleGetPopupOpenedAction_","yt-get-opened-popups-action":"handleGetOpenedPopupsAction_","yt-open-popup-action":"handleOpenPopupAction",
"yt-signal-action-close-popup":"handleSignalActionClosePopup_","yt-window-scrolled":"windowResizedOrScrolled_","yt-window-resized":"windowResizedOrScrolled_","yt-refit-popups-action":"refitPopups_"};this.narrowMediaQuery_=void 0;this.repositionEventsBound_=!1;this.setPopupVisibilityJobId_=this.setPopupPositioningJobId_=0;this.dynamicallyPositionedElements_=new Set},
attached:function(){this.registerActionMap(this.popupContainerActionMap_);_.W5(this.hostElement,!1)},
detached:function(){this.unregisterActionMap(this.popupContainerActionMap_);_.ET(this.hostElement)},
closePopup:function(F){var W=this.createCacheKey(void 0,F);this.popups_[W]&&this.handleClosePopupAction_(void 0,F)},
windowResizedOrScrolled_:function(){this.setPopupPositioningJobId_||(this.setPopupPositioningJobId_=_.P0.addLowPriorityJob(this.setPopupPositioning_.bind(this)));this.setPopupVisibilityJobId_||(this.setPopupVisibilityJobId_=_.P0.addLowPriorityJob(this.setPopupVisibility_.bind(this)))},
setPopupPositioning_:function(){this.dynamicallyPositionedElements_.forEach(function(F){F.opened&&F.keepBelowPlayer&&this.ensurePopupBelowPlayer(F)},this);
this.setPopupPositioningJobId_=0},
setPopupVisibility_:function(){for(var F in this.popups_){var W=this.popups_[F];if(W.popup.scrollAction==="refit"){var E=W.popup.positionTarget.getBoundingClientRect(),h=W.popup;E=E.top;var d=W;if(!d.naturalHeight){d.popup.hidden=!1;d.popup.style.position="fixed";d.popup.style.top="0px";d.popup.style.left="0px";var V=d.popup.getBoundingClientRect();d.naturalHeight=V.bottom-V.top;d.popup.refit()}h.hidden=!(E>=d.naturalHeight+60);W.popupContent.clientHeight===0&&W.popup.refit()}}this.setPopupVisibilityJobId_=
0},
ensurePopupBelowPlayer:function(){return!1},
initPopupContainerBehavior:function(F){this.popupContainerConfig=F},
handleOpenPopupAction:function(F,W){var E=F.openPopupAction,h=_.WZ().resolve(_.Fd(_.VHK))&&E.popupType==="TOAST";h&&!E.uniqueId&&(E.uniqueId=_.P7());if(!_.c("popup_container_parent_target_killswitch")){var d;W=(d=this.getParentTarget(W))!=null?d:W}var V=this.ensurePopup_(E,W);return new _.z5(function(R){V.then(function(M){if(!M)return R();this.maybeCreateNarrowMediaQuery_();var g=this.createCacheKey(M.rendererName,M.openPopupAction.uniqueId);if(E.showOncePerUniqueId){if(this.shownPopupKeys_.has(g))return R();
this.shownPopupKeys_.add(g)}g=this.popups_[g];var t=!(!g||!g.openPopupAction.beReused);t=!!E.reusePopup||t;if(M.popup.opened&&!t){h&&!M.openPopupAction.replacePopup||this.handleClosePopupAction_(M.rendererName,M.openPopupAction.uniqueId);t=E.popupType==="DIALOG"&&!_.c("popup_container_dialog_reopen_killswitch");if(!h&&!t&&g&&g.target==W&&!M.openPopupAction.replacePopup)return R();_.wT(M.popup,function(){this.completeOpenPopupAction_(E,W,M);R()}.bind(this))}else M.popup.opened?M.updatePopup(E):this.completeOpenPopupAction_(E,
W,M),R()}.bind(this))}.bind(this))},
getParentTarget:function(F){if(F&&F instanceof HTMLElement)for(var W=_.U(Object.entries(this.popups_)),E=W.next();!E.done;E=W.next())if(E=_.U(E.value),E.next(),E=E.next().value,E.popup.tagName==="TP-YT-IRON-DROPDOWN"&&E.popup.opened&&F.closest(E.rendererName))return E.target},
completeOpenPopupAction_:function(F,W,E){_.c("reorder_popup_updates_killswitch")?(oh8(E,this.narrowMediaQuery_.queryMatches,W),E.updatePopup(F)):(E.updatePopup(F),oh8(E,this.narrowMediaQuery_.queryMatches,W));F=E.popup;F.addEventListener("iron-overlay-opened",_.UO(this,this.onPopupIronOverlayOpened_));F.addEventListener("iron-overlay-closed",_.UO(this,this.onPopupIronOverlayClosed_));F.addEventListener("iron-overlay-canceled",_.UO(this,this.onPopupIronOverlayCanceled_));F.addEventListener("yt-refit",
_.UO(this,this.refitPopup_));F.addEventListener("yt-invalidate-popup-tabbables",_.UO(this,this.handleInvalidatePopupTabbables_));F.open()},
getPopupDurationMs_:function(F){return F.durationHintMs===0?F.durationHintMs:Math.max(4E3,F.durationHintMs||4E3)},
handleClosePopupAction_:function(F,W){var E=_.c("web_popup_cache_key_killswitch")||!!W;if(F||E){var h=this.createCacheKey(F,W);F=(F=this.popups_[h])&&F.popup}else F=_.ZxM(_.SM);if(F&&F.close){if(W=_.WZ().resolve(_.Fd(_.$V)))F.restoreFocusOnClose=W.isKeyBoardInUse();F.close();this.removePopup_(F,h)}},
handleClosePopupCommand_:function(F){F.closePopupCommand&&F.closePopupCommand.uniquePopupId&&this.handleClosePopupAction_(void 0,F.closePopupCommand.uniquePopupId)},
handleCloseAllPopupsAction_:function(F){var W={},E;for(E in this.popups_)if(W={key$jscomp$1162:W.key$jscomp$1162},W.key$jscomp$1162=E,!F||!F.some(function(V){return function(R){return R==V.key$jscomp$1162}}(W))){var h=this.popups_[W.key$jscomp$1162],d=h.popup;
_.WZ().resolve(_.Fd(_.VHK))&&h.openPopupAction.popupType==="TOAST"||(d&&d.close&&d.close(),this.removePopup_(d,W.key$jscomp$1162))}},
handleClosePopupsAction_:function(F){F.forEach(function(W){var E=this.popups_[W];E&&((E=E.popup)&&E.close&&E.close(),this.removePopup_(E,W))}.bind(this))},
handleGetPopupOpenedAction_:function(F,W){return(W=this.createCacheKey(F,W))&&this.popups_[W]?this.popups_[F].popup.opened:!1},
handleGetOpenedPopupsAction_:function(){var F=[],W;for(W in this.popups_){var E=this.popups_[W];E.popup.opened&&F.push(E)}return F},
getOpenedPopups:function(){this.handleGetOpenedPopupsActions_()},
handleSignalActionClosePopup_:function(){this.handleCloseAllPopupsAction_()},
removePopup_:function(F,W){_.c("ytpopup_disable_default_html_caching")&&F&&F.removeWhenClosed&&(_.Z(this.hostElement).removeChild(F),W&&this.popups_[W]&&delete this.popups_[W])},
shouldReusePopup_:function(F){return!(!F||!F.reusePopup)||!(!F||!F.beReused)},
ensurePopup_:function(F,W){this.maybeCreateNarrowMediaQuery_();var E=_.aW(F.popup,"renderer")||_.aW(F.popup,"dialog")||_.aW(F.popup,"model");if(!E)return _.e7();E=_.fAb(E,s9O(this.popupContainerConfig,E));return _.e7(this.getAndMaybeCreatePopup_(F,E,W))},
getAndMaybeCreatePopup_:function(F,W,E){var h=this.createCacheKey(W,F.uniqueId);if(this.popups_[h])return this.popups_[h];F=new t0({openPopupAction:F,target:E,container:this.hostElement,popupContainerConfig:this.popupContainerConfig,getElement:this.getElement.bind(this),removeWhenClosed:this.shouldRemoveWhenClosed_(W)});return this.popups_[h]=F},
getElement:function(){return null},
shouldRemoveWhenClosed_:function(F){return _.c("ytpopup_disable_default_html_caching")?F&&F.includes("view-model"):!1},
maybeCreateNarrowMediaQuery_:function(){this.narrowMediaQuery_||(this.narrowMediaQuery_=document.createElement("iron-media-query"),this.narrowMediaQuery_.query="(max-width: 656px)",this.narrowMediaQuery_.addEventListener("query-matches-changed",_.UO(this,this.openPopupQueryMatchesChanged_)),_.Z(this.hostElement).appendChild(this.narrowMediaQuery_))},
openPopupQueryMatchesChanged_:function(F){F=F.detail.value;for(var W in this.popups_)r3T(this.popups_[W],F)},
onPopupIronOverlayClosed_:function(F){var W=F.currentTarget,E=_.X3Y(W);E=E.length>0?E[0]:W;if(E.is!=="ytd-reel-watch-while-dialog-renderer"||F.target.is!=="tp-yt-iron-dropdown"){F.detail.popup=W;F.detail.popupRenderer=E;var h,d={context:{openingElement:((h=this.popups_[(E==null?void 0:E.is)||""])==null?void 0:h.target)||void 0}};Object.assign(d,F.detail);var V;_.hF((V=E.hostElement)!=null?V:E,"yt-popup-closed",d);W.removeEventListener("yt-refit",_.UO(this,this.refitPopup_));W.removeEventListener("yt-invalidate-popup-tabbables",
_.UO(this,this.handleInvalidatePopupTabbables_));W.removeEventListener("iron-overlay-canceled",_.UO(this,this.onPopupIronOverlayCanceled_));W.removeEventListener("iron-overlay-closed",_.UO(this,this.onPopupIronOverlayClosed_));this.dynamicallyPositionedElements_.delete(W)}},
onPopupIronOverlayCanceled_:function(F,W){var E=F.currentTarget,h=_.X3Y(E);h=h.length>0?h[0]:E;if(h.is!=="ytd-reel-watch-while-dialog-renderer"||F.target.is!=="tp-yt-iron-dropdown"){var d;_.hF((d=h.hostElement)!=null?d:h,"yt-popup-canceled",F.detail);d=W?_.TB(W):null;(!W||["click","tap"].includes(W.type))&&!E.hasAttribute("force-close-on-outside-click")&&E.positionTarget&&d&&d.includes(E.positionTarget)&&F.preventDefault();E.restoreFocusOnClose=_.$5.keyboardEventMatchesKeys(W,"esc")}},
onPopupIronOverlayOpened_:function(F){F=F.currentTarget;var W=_.X3Y(F);W=W.length>0?W[0]:F;var E,h;_.hF((E=W.hostElement)!=null?E:W,"yt-popup-opened",(h=W.hostElement)!=null?h:W);F.keepBelowPlayer&&(this.ensurePopupBelowPlayer(F,!0),this.dynamicallyPositionedElements_.add(F));E=_.WZ().resolve(_.Fd(_.$V));h=!!W.querySelector("#toast");E&&E.isKeyBoardInUse()&&!h&&(typeof W.focusFirstItem==="function"?W.focusFirstItem():(W=_.L9_(F),W.length&&W[0].focus()));F.removeEventListener("iron-overlay-opened",
_.UO(this,this.onPopupIronOverlayOpened_))},
refitPopup_:function(F){F=F.currentTarget;F.refit&&F.refit()},
refitPopups_:function(){for(var F in this.popups_)this.popups_[F].refit()},
handleInvalidatePopupTabbables_:function(F){F=F.currentTarget;F.invalidateTabbables&&F.invalidateTabbables()},
createCacheKey:function(F,W){return _.c("web_popup_cache_key_killswitch")?W?F+"#"+W:F:W?"#"+W:F},
openSheet:function(F,W){var E=F==null?void 0:F.openPopupActionCommand;!E&&(F==null?0:F.viewModel)&&(E={openPopupAction:{popup:{sheetViewModel:F.viewModel},popupType:"CONTEXTUAL_SHEET"}});E&&this.handleOpenPopupAction(E,W)},
closeSheet:function(){this.handleClosePopupAction_("yt-sheet-view-model")},
isSheetOpen:function(){var F=this;return _.e(function(W){return W.return(F.handleGetOpenedPopupsAction_().filter(function(E){var h;return((h=E.openPopupAction)==null?void 0:h.popupType)==="CONTEXTUAL_SHEET"}).length>0)})},
getSheetContainerElement:function(){return this.hostElement},
openDialog:function(F,W,E){if(_.c("web_dialog_utils_killswitch")){var h=F==null?void 0:F.openPopupActionCommand,d=(E==null?0:E.ariaLabel)?{accessibilityData:{accessibilityData:{label:E.ariaLabel}}}:void 0;!h&&(F==null?0:F.viewModel)&&(h={openPopupAction:Object.assign({},{popup:{dialogViewModel:F.viewModel},popupType:(E==null?0:E.isModal)?"MODAL":"DIALOG"},d&&d)});h&&this.handleOpenPopupAction(h,W)}else{if(d=F==null?void 0:F.viewModel){var V=E=E===void 0?{}:E;E=V.ariaLabel;d={popup:{dialogViewModel:d},
popupType:V.isModal?"MODAL":"DIALOG"};V={accessibilityData:{label:E}};E&&(d.accessibilityData=V);d={openPopupAction:d}}else d=void 0;(d=(h=d)!=null?h:F==null?void 0:F.openPopupActionCommand)&&this.handleOpenPopupAction(d,W)}},
closeDialog:function(){this.handleClosePopupAction_("yt-dialog-view-model")},
isDialogOpen:function(){var F=this;return _.e(function(W){return W.return(F.handleGetOpenedPopupsAction_().filter(function(E){var h;return((h=E.openPopupAction)==null?void 0:h.popupType)==="DIALOG"}).length>0)})}}];var SKO;var pJ8;var m2F=_.Fc(["about:blank"]),CE=function(){var F=_.n.apply(this,arguments)||this;F.isMuted=!1;F.pageLoadTimeoutId=void 0;return F};
_.k(CE,_.n);_.N=CE.prototype;_.N.dataChanged=function(){var F=this;if(this.data){this.ytRendererBehavior.markDirty();this.isMuted=!1;var W=this.data.url,E=_.JH(W);_.c("enable_yt_ata_iframe_authuser")?(E=_.JH(W),_.Hp(this.iframe,pz6(E))):_.Hp(this.iframe,E);this.pageLoadTimeoutId=_.sB(_.OZ(),function(){return void F.logStateChanged({pageLoadTimedOut:!0})},5E3);
_.NS({destination:window,iframe:this.iframe,origin:_.JPu(E.toString()),channelName:"ataiframe",onMessage:_.Tgr(XiP,function(h){HH8(h.data)?(h=_.De(h.data,1,_.kK,_.Fg()),h.length!==1?_.OB(Error("ol")):(h=h[0],h===3?(F.isMuted=!0,F.logStateChanged({adMuteRequested:!0})):h===1&&F.close())):_.OB(Error("pl"))}),
onEstablished:function(){F.cancelPageLoadTimeout();F.logStateChanged({pageLoadSucceeded:!0})}})}};
_.N.cancelPageLoadTimeout=function(){this.pageLoadTimeoutId!==void 0&&(_.OZ().cancelJob(this.pageLoadTimeoutId),this.pageLoadTimeoutId=void 0)};
_.N.logStateChanged=function(F){var W;if((W=this.data)==null?0:W.trackingParams)F={adsClientData:{aboutThisAdData:F}},_.z4().stateChanged(this.data.trackingParams,F)};
_.N.close=function(){_.dW(this.hostElement,"yt-close-popup-action",[this.is])};
_.N.handlesPopupClosed=function(F,W){var E=this,h,d;return _.e(function(V){if(V.nextAddress==1)return _.b0("INNERTUBE_CLIENT_NAME")==="WEB_KIDS"?(_.dW(E.hostElement,"on-about-this-ad-popup-closed",[E.isMuted,W]),V.jumpTo(0)):F&&mn6(F)?_.Q(V,Kf6(F),4):(E.isMuted&&_.dW(E.hostElement,"yt-mute-ad-action",[E.is,E]),V.jumpTo(0));if(h=V.yieldResult){var R=d=new _.I8(h),M=E.isMuted;R.getOptions().includes("onAboutThisAdPopupClosed")?_.RSi(R,"onAboutThisAdPopupClosed",{isMuted:M,layoutId:W}):_.UQ("Calling onAboutThisAdPopupClosed when adModule is not loaded")}_.gG(V)})};
_.N.onPopupClosed=function(F){var W=this,E,h;return _.e(function(d){E=_.mv(m2F);_.Hp(W.iframe,E);W.cancelPageLoadTimeout();if(!W.data)return d.jumpTo(0);W.ytRendererBehavior.markDirty();h=F.detail.context.openingElement;return _.Q(d,W.handlesPopupClosed(h,W.data.layoutId),0)})};
_.N.detached=function(){this.cancelPageLoadTimeout()};
_.N.ready=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
CE.prototype.onPopupClosed=CE.prototype.onPopupClosed;CE.prototype.dataChanged=CE.prototype.dataChanged;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],CE.prototype,"ytRendererBehavior",void 0);_.T([_.gQ("#iframe"),_.Y("design:type",HTMLIFrameElement)],CE.prototype,"iframe",void 0);_.T([_.O(),_.Y("design:type",Object)],CE.prototype,"data",void 0);_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],CE.prototype,"dataChanged",null);
_.T([_.R4("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype",Promise)],CE.prototype,"onPopupClosed",null);CE=_.T([_.$3({is:"yt-about-this-ad-renderer",disableElementRegistration:!0})],CE);
_.r(CE,"yt-about-this-ad-renderer",function(){if(pJ8===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-about-this-ad-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ads.yt_about_this_ad_renderer.yt.about.this.ad.renderer.css.js--\x3e<iframe id="iframe" class="style-scope yt-about-this-ad-renderer"></iframe>');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;SKO===void 0&&(SKO=document.createElement("template"));var h=SKO;E.call(W,h.content.cloneNode(!0),F.content.firstChild);pJ8=F}F=pJ8;return F},{mode:2});var Kqw;var FlK;var Bd=function(F){var W=Error.call(this,"Try adding a file that's {$maxFileSizeMB}MB or smaller");this.message=W.message;"stack"in W&&(this.stack=W.stack);this.maxFileSizeMB=F;Object.setPrototypeOf(this,Bd.prototype)};
_.k(Bd,Error);var WlN=function(F,W){var E=Error.call(this,"Images must be at least {$minWidth} x {$minHeight} pixels");this.message=E.message;"stack"in E&&(this.stack=E.stack);this.minWidth=F;this.minHeight=W;Object.setPrototypeOf(this,WlN.prototype)};
_.k(WlN,Error);var E88=function(F){this.requirements=F;this.JSC$18487_maxFileSize=F.maxFileSizeMB*1024*1024},h5x=function(F,W){if(W.size>F.JSC$18487_maxFileSize)throw new Bd(F.requirements.maxFileSizeMB);
};var d5q=function(F,W){this.canvas=F;this.imageEditorBuilder=W};
d5q.prototype.addEventListeners=function(F){var W=function(d){N46(F,d)};
this.JSC$18493_mouseDownEvent=W;var E=function(d){V_K(F,d)};
this.JSC$18493_mouseMoveEvent=E;var h=function(){U5T(F)};
this.JSC$18493_mouseUpEvent=h;this.canvas.addEventListener("mousedown",W);this.canvas.addEventListener("mousemove",E);document.addEventListener("mouseup",h)};
d5q.prototype.removeEventListeners=function(){this.JSC$18493_mouseDownEvent&&this.canvas.removeEventListener("mousedown",this.JSC$18493_mouseDownEvent);this.JSC$18493_mouseMoveEvent&&this.canvas.removeEventListener("mousemove",this.JSC$18493_mouseMoveEvent);this.JSC$18493_mouseUpEvent&&document.removeEventListener("mouseup",this.JSC$18493_mouseUpEvent)};
var R5x=function(F,W){F.removeEventListeners();return new Promise(function(E){var h=new Image;h.crossOrigin="anonymous";h.onload=function(){var d=F.imageEditorBuilder(F.canvas,h);F.addEventListeners(d);E(d)};
h.src=W})},vd=function(F,W,E,h,d,V,R,M){this.canvas=F;
this.image=W;this.requiredRatio=E;this.minImageCropDimension=h;this.minOutputImageResolution=d;this.component=V;this.styleFocusedCorner=M===void 0?!0:M;this.action=2;this.focusedCorner=this.resizeCorner=0;F=this.canvas.getContext("2d");if(!F)throw Error("ql");this.ctx=F;this.canvasMargin=R!=null?R:24;this.canvasInnerWidth=this.canvas.width-2*this.canvasMargin;R=this.image;F=this.canvasInnerWidth/R.width;R.height*F>912&&(F=R.width/R.height*912/R.width);R=F;this.scaledImageWidth=this.canvas.width%2?
WJg(this.image.width*R):FJq(this.image.width*R);this.scaledImageHeight=Math.round(this.image.height*R);this.canvas.height=this.scaledImageHeight+2*this.canvasMargin;this.horizontalMargin=(this.canvas.width-this.scaledImageWidth)/2;this.JSC$18496_overlayMarginBottom=this.JSC$18496_overlayMarginTop=this.canvasMargin;this.JSC$18496_overlayMarginRight=this.JSC$18496_overlayMarginLeft=this.horizontalMargin;this.JSC$18496_overlayWidth=this.scaledImageWidth;this.JSC$18496_overlayHeight=this.scaledImageHeight;
F=this.image.width/this.image.height;F>this.requiredRatio?(this.JSC$18496_overlayWidth=this.canvas.width%2?WJg(this.scaledImageHeight*this.requiredRatio):FJq(this.scaledImageHeight*this.requiredRatio),this.JSC$18496_overlayMarginRight=this.JSC$18496_overlayMarginLeft=(this.canvas.width-this.JSC$18496_overlayWidth)/2):F<this.requiredRatio&&(this.JSC$18496_overlayHeight=this.canvas.height%2?WJg(this.scaledImageWidth/this.requiredRatio):FJq(this.scaledImageWidth/this.requiredRatio),this.JSC$18496_overlayMarginBottom=
this.JSC$18496_overlayMarginTop=(this.canvas.height-this.JSC$18496_overlayHeight)/2);this.minOverlayWidth=Math.min(this.minImageCropDimension[0]*R,this.scaledImageWidth);e5O(this)};
vd.prototype.getContext=function(){return this.ctx};
var N46=function(F,W){W={x:Math.round(W.pageX-F.canvas.getBoundingClientRect().left),y:Math.round(W.pageY-F.canvas.getBoundingClientRect().top)};F.dragStart=W;M_q(F,W)!==0?(F.action=1,g8$(F,W),F.resizeCorner=M_q(F,W)):W.x>F.JSC$18496_overlayMarginLeft&&W.x<F.JSC$18496_overlayMarginLeft+F.JSC$18496_overlayWidth&&W.y>F.JSC$18496_overlayMarginTop&&W.y<F.JSC$18496_overlayMarginTop+F.JSC$18496_overlayHeight&&(F.action=0)},QJq=function(F,W){switch(W){case 1:return{x:F.JSC$18496_overlayMarginLeft,
y:F.JSC$18496_overlayMarginTop};case 2:return{x:F.JSC$18496_overlayMarginLeft,y:F.JSC$18496_overlayMarginTop+F.JSC$18496_overlayHeight};case 3:return{x:F.JSC$18496_overlayMarginLeft+F.JSC$18496_overlayWidth,y:F.JSC$18496_overlayMarginTop};case 4:return{x:F.JSC$18496_overlayMarginLeft+F.JSC$18496_overlayWidth,y:F.JSC$18496_overlayMarginTop+F.JSC$18496_overlayHeight};default:throw Error("rl");}},t_6=function(F,W){if(F.focusedCorner!==0){F.dragStart=QJq(F,F.focusedCorner);
F.action=1;F.resizeCorner=F.focusedCorner;var E=F.dragStart.x,h=F.dragStart.y;switch(W){case 0:F.focusedCorner===1||F.focusedCorner===4?(E-=10,h-=10):(E-=10,h+=10);break;case 1:F.focusedCorner===1||F.focusedCorner===4?(E+=10,h+=10):(E+=10,h-=10);break;case 2:E=F.focusedCorner===1||F.focusedCorner===4?E-10:E+10;h-=10;break;case 3:E=F.focusedCorner===1||F.focusedCorner===4?E+10:E-10;h+=10;break;default:throw Error("sl");}z5K(F,{x:E,y:h});e5O(F);F.action=2;F.dragStart=void 0}},V_K=function(F,W){W={x:Math.round(W.pageX-
F.canvas.getBoundingClientRect().left),
y:Math.round(W.pageY-F.canvas.getBoundingClientRect().top)};g8$(F,W);switch(F.action){case 1:z5K(F,W);break;case 0:F.dragStart&&(F.JSC$18496_overlayMarginLeft=Math.max(F.horizontalMargin,Math.min(F.JSC$18496_overlayMarginLeft-(F.dragStart.x-W.x),F.horizontalMargin+F.scaledImageWidth-F.JSC$18496_overlayWidth)),F.JSC$18496_overlayMarginRight=F.canvas.width-F.JSC$18496_overlayMarginLeft-F.JSC$18496_overlayWidth,F.JSC$18496_overlayMarginTop=Math.max(F.canvasMargin,Math.min(F.JSC$18496_overlayMarginTop-
(F.dragStart.y-W.y),F.scaledImageHeight-F.JSC$18496_overlayHeight+F.canvasMargin)),F.JSC$18496_overlayMarginBottom=F.canvas.height-(F.JSC$18496_overlayMarginTop+F.JSC$18496_overlayHeight));break;default:return}e5O(F);F.dragStart=W},U5T=function(F){F.action=2;
F.dragStart=void 0;document.body.style.cursor="auto"},g8$=function(F,W){switch(M_q(F,W)){case 1:document.body.style.cursor="nw-resize";
break;case 3:document.body.style.cursor="ne-resize";break;case 2:document.body.style.cursor="sw-resize";break;case 4:document.body.style.cursor="se-resize";break;default:F.action!==1&&(document.body.style.cursor="auto")}},M_q=function(F,W){var E=F.JSC$18496_overlayMarginLeft-5,h=F.JSC$18496_overlayMarginTop-5,d=F.JSC$18496_overlayMarginLeft+F.JSC$18496_overlayWidth-5;
F=F.JSC$18496_overlayMarginTop+F.JSC$18496_overlayHeight-5;return CmF(W,{x:E,y:h})?1:CmF(W,{x:d,y:h})?3:CmF(W,{x:E,y:F})?2:CmF(W,{x:d,y:F})?4:0},CmF=function(F,W){return F.x>=W.x&&F.x<=W.x+10&&F.y>=W.y&&F.y<=W.y+10},z5K=function(F,W){if(F.dragStart)switch(F.resizeCorner){case 2:Math.abs((F.JSC$18496_overlayMarginLeft+F.JSC$18496_overlayWidth-W.x)/(W.y-F.JSC$18496_overlayMarginTop))>=F.requiredRatio?B4$(F,W.x):v8T(F,W.y);
break;case 1:Math.abs((F.JSC$18496_overlayMarginLeft+F.JSC$18496_overlayWidth-W.x)/(F.JSC$18496_overlayMarginTop+F.JSC$18496_overlayHeight-W.y))>=F.requiredRatio?IHP(F,W.x):v8T(F,W.y);break;case 4:Math.abs((W.x-F.JSC$18496_overlayMarginLeft)/(W.y-F.JSC$18496_overlayMarginTop))>=F.requiredRatio?B4$(F,W.x):ci$(F,W.y);break;case 3:Math.abs((W.x-F.JSC$18496_overlayMarginLeft)/(F.JSC$18496_overlayMarginTop+F.JSC$18496_overlayHeight-W.y))>=F.requiredRatio?IHP(F,W.x):ci$(F,W.y);break;default:throw Error("tl");
}},B4$=function(F,W){var E=F.JSC$18496_overlayMarginTop;
F.JSC$18496_overlayMarginBottom=D5$(F,W);F.JSC$18496_overlayHeight=F.canvas.height-F.JSC$18496_overlayMarginBottom-E;F.JSC$18496_overlayWidth=Math.round(F.JSC$18496_overlayHeight*F.requiredRatio);x5w(F)},IHP=function(F,W){var E=F.JSC$18496_overlayMarginTop+F.JSC$18496_overlayHeight;
F.JSC$18496_overlayMarginTop=D5$(F,W);F.JSC$18496_overlayHeight=E-F.JSC$18496_overlayMarginTop;F.JSC$18496_overlayWidth=Math.round(F.JSC$18496_overlayHeight*F.requiredRatio);x5w(F)},x5w=function(F){switch(F.resizeCorner){case 2:case 1:F.JSC$18496_overlayMarginLeft=F.canvas.width-F.JSC$18496_overlayMarginRight-F.JSC$18496_overlayWidth;
break;case 4:case 3:F.JSC$18496_overlayMarginRight=F.canvas.width-F.JSC$18496_overlayMarginLeft-F.JSC$18496_overlayWidth;break;default:throw Error("tl");}},v8T=function(F,W){var E=F.JSC$18496_overlayMarginLeft+F.JSC$18496_overlayWidth;
F.JSC$18496_overlayMarginLeft=kWu(F,W);F.JSC$18496_overlayWidth=E-F.JSC$18496_overlayMarginLeft;F.JSC$18496_overlayHeight=Math.round(F.JSC$18496_overlayWidth/F.requiredRatio);Aiw(F)},ci$=function(F,W){var E=F.JSC$18496_overlayMarginLeft;
F.JSC$18496_overlayMarginRight=kWu(F,W);F.JSC$18496_overlayWidth=F.canvas.width-F.JSC$18496_overlayMarginRight-E;F.JSC$18496_overlayHeight=Math.round(F.JSC$18496_overlayWidth/F.requiredRatio);Aiw(F)},Aiw=function(F){switch(F.resizeCorner){case 2:case 4:F.JSC$18496_overlayMarginBottom=F.canvas.height-F.JSC$18496_overlayMarginTop-F.JSC$18496_overlayHeight;
break;case 1:case 3:F.JSC$18496_overlayMarginTop=F.canvas.height-F.JSC$18496_overlayMarginBottom-F.JSC$18496_overlayHeight;break;default:throw Error("tl");}},D5$=function(F,W){switch(F.resizeCorner){case 2:W=F.canvas.height-(F.JSC$18496_overlayMarginTop+sJ6(F,W));
break;case 4:W=F.canvas.height-(F.JSC$18496_overlayMarginTop+LlK(F,W));break;case 1:W=F.JSC$18496_overlayMarginTop+F.JSC$18496_overlayHeight-sJ6(F,W);break;case 3:W=F.JSC$18496_overlayMarginTop+F.JSC$18496_overlayHeight-LlK(F,W);break;default:throw Error("tl");}return Math.max(W,F.canvasMargin)},sJ6=function(F,W){W=F.JSC$18496_overlayMarginLeft+F.JSC$18496_overlayWidth-Math.max(W,F.horizontalMargin);
W=W<0?F.JSC$18496_overlayWidth:Math.max(W,F.minOverlayWidth);return Math.round(W/F.requiredRatio)},LlK=function(F,W){W=F.canvas.width-Math.max(F.canvas.width-W,F.horizontalMargin)-F.JSC$18496_overlayMarginLeft;
W=W<0?F.JSC$18496_overlayWidth:Math.max(W,F.minOverlayWidth);return Math.round(W/F.requiredRatio)},kWu=function(F,W){switch(F.resizeCorner){case 2:W=F.canvas.width-F.JSC$18496_overlayMarginRight-qbO(F,W);
break;case 4:W=F.canvas.width-F.JSC$18496_overlayMarginLeft-qbO(F,W);break;case 1:W=F.canvas.width-F.JSC$18496_overlayMarginRight-$5w(F,W);break;case 3:W=F.canvas.width-F.JSC$18496_overlayMarginLeft-$5w(F,W);break;default:throw Error("tl");}return Math.max(W,F.horizontalMargin)},qbO=function(F,W){W=F.canvas.height-Math.max(F.canvas.height-W,F.canvasMargin)-F.JSC$18496_overlayMarginTop;
return W<0?F.JSC$18496_overlayWidth:Math.max(Math.round(W*F.requiredRatio),F.minOverlayWidth)},$5w=function(F,W){W=F.JSC$18496_overlayMarginTop+F.JSC$18496_overlayHeight-Math.max(W,F.canvasMargin);
return W<0?F.JSC$18496_overlayWidth:Math.max(Math.round(W*F.requiredRatio),F.minOverlayWidth)},e5O=function(F){F.ctx.clearRect(0,0,F.canvas.width,F.canvas.height);
F.ctx.drawImage(F.image,0,0,F.image.width,F.image.height,F.horizontalMargin,F.canvasMargin,F.canvas.width-2*F.horizontalMargin,F.scaledImageHeight);F.ctx.fillStyle="rgba(0, 0, 0, 0.7)";F.ctx.fillRect(F.horizontalMargin,F.JSC$18496_overlayMarginTop,F.JSC$18496_overlayMarginLeft-F.horizontalMargin,F.JSC$18496_overlayHeight);F.ctx.fillRect(F.JSC$18496_overlayMarginLeft+F.JSC$18496_overlayWidth,F.JSC$18496_overlayMarginTop,F.JSC$18496_overlayMarginRight-F.horizontalMargin,F.JSC$18496_overlayHeight);F.ctx.fillRect(F.horizontalMargin,
F.canvasMargin,F.scaledImageWidth,F.JSC$18496_overlayMarginTop-F.canvasMargin);F.ctx.fillRect(F.horizontalMargin,F.JSC$18496_overlayMarginTop+F.JSC$18496_overlayHeight,F.scaledImageWidth,F.JSC$18496_overlayMarginBottom-F.canvasMargin);F.drawOverlay();F.component&&_.hF(F.component,"image-updated")};
vd.prototype.drawOverlay=function(){this.ctx.lineWidth=2;this.ctx.strokeStyle="#3EA6FF";this.ctx.strokeRect(this.JSC$18496_overlayMarginLeft,this.JSC$18496_overlayMarginTop,this.JSC$18496_overlayWidth,this.JSC$18496_overlayHeight);Z8u(this)};
var Z8u=function(F){var W=F.JSC$18496_overlayMarginLeft-5,E=F.JSC$18496_overlayMarginTop-5,h=F.JSC$18496_overlayMarginLeft+F.JSC$18496_overlayWidth-5,d=F.JSC$18496_overlayMarginTop+F.JSC$18496_overlayHeight-5;F.ctx.fillStyle="#FFF";F.ctx.fillRect(W,E,10,10);F.ctx.strokeRect(W,E,10,10);F.ctx.fillRect(h,E,10,10);F.ctx.strokeRect(h,E,10,10);F.ctx.fillRect(W,d,10,10);F.ctx.strokeRect(W,d,10,10);F.ctx.fillRect(h,d,10,10);F.ctx.strokeRect(h,d,10,10);if(F.focusedCorner!==0&&F.styleFocusedCorner){F.ctx.lineWidth=
4;F.ctx.strokeStyle="#3EA6FF";switch(F.focusedCorner){case 1:--W;--E;break;case 2:--W;E=d-1;break;case 3:W=h-1;--E;break;case 4:W=h-1;E=d-1;break;default:return}F.ctx.strokeRect(W,E,12,12)}};
vd.prototype.crop=function(F,W){W=W===void 0?!0:W;var E=this.image.width/this.scaledImageWidth,h=document.createElement("canvas"),d=this.minOutputImageResolution?this.minOutputImageResolution[1]:this.minImageCropDimension[1],V=this.JSC$18496_overlayWidth*E,R=this.JSC$18496_overlayHeight*E;h.width=Math.max(V,this.minOutputImageResolution?this.minOutputImageResolution[0]:this.minImageCropDimension[0]);h.height=Math.max(R,d);F&&(h.width=Math.min(h.width,h.height),h.height=Math.min(h.width,h.height));
F=h.getContext("2d");if(!F)throw Error("hl");d=(this.JSC$18496_overlayMarginLeft-this.horizontalMargin)*E;E*=this.JSC$18496_overlayMarginTop-this.canvasMargin;W||(F.fillStyle="white",F.fillRect(0,0,h.width,h.height));F.drawImage(this.image,d,E,V,R,0,0,h.width,h.height);return h};var Xux=function(F,W,E,h,d){vd.call(this,F,W,E,h,void 0,d,8,!1)};
_.k(Xux,vd);Xux.prototype.drawOverlay=function(){var F=this.getContext(),W=this.JSC$18496_overlayWidth,E=this.JSC$18496_overlayHeight,h=this.JSC$18496_overlayMarginTop,d=this.JSC$18496_overlayMarginLeft;F.lineWidth=2;F.strokeStyle="#3EA6FF";F.beginPath();F.arc(d+W/2,h+E/2,W/2,0,2*Math.PI);F.stroke();F.strokeRect(d,h,W,E);Z8u(this)};
var H8w={maxFileSizeMB:15,minWidth:98,minHeight:98},Pm$=["image/png","image/jpeg","image/gif"],I5=function(){var F=_.n.apply(this,arguments)||this;F.fileSelectorFocusListener=null;F.errorMessage=null;F.isLoading=!0;F.hideContainer=!0;F.actionMap={"yt-upload-image-to-scotty-command":"handleUploadImageToScottyCommand","yt-image-selection-error-action":"handleImageSelectionErrorAction"};return F};
_.k(I5,_.n);_.N=I5.prototype;_.N.cleanupFocusListener=function(){this.fileSelectorFocusListener&&window.removeEventListener("focus",this.fileSelectorFocusListener)};
_.N.setLoadingState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!0);this.set("data.cancelButton.buttonRenderer.isDisabled",!0);this.isLoading=!0;this.errorMessage=null};
_.N.computePlaylistThumbnail=function(F){return F==="IMAGE_TYPE_PLAYLIST_THUMBNAIL"};
_.N.resetErrorState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);this.isLoading=!1;this.errorMessage=null;this.isPlaylistThumbnail||_.dW(this.hostElement,"yt-image-selection-reset-error-action",[])};
_.N.setErrorState=function(F){this.resetErrorState();F&&(this.errorMessage=F)};
_.N.showPopup=function(){var F=this;this.hideContainer=!1;_.sB(_.P0,function(){_.hF(F.hostElement,"yt-refit")});
this.isLoading=!1};
_.N.resetFileSelector=function(){this.fileSelector.value="";this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.N.closePopup=function(){this.resetFileSelector();_.dW(this.hostElement,"yt-close-popup-action",[this.is])};
_.N.onCancelTap=function(){this.isPlaylistThumbnail||_.dW(this.hostElement,"yt-show-caller-popup-action",[]);this.closePopup()};
_.N.openFileSelector=function(){var F=this;this.resetErrorState();try{this.fileSelector.click(),this.fileSelectorFocusListener=function(){_.sB(_.P0,function(){setTimeout(function(){if(!F.fileSelector.files||F.fileSelector.files.length===0)F.onCancelTap();F.cleanupFocusListener()},2E3)},500)},window.addEventListener("focus",this.fileSelectorFocusListener)}catch(W){W instanceof Error?_.a_(W):_.fn(new _.xC(JSON.stringify(W)))}};
_.N.handleFileSelection=function(){var F=this,W,E,h,d,V,R;return _.e(function(M){switch(M.nextAddress){case 1:_.Nl(M,2);if(!F.fileSelector.files||!F.imageEditorCanvas)return F.onCancelTap(),M.return();W=F.fileSelector.files[0];h5x(F.imageChecker,W);_.Nl(M,4);return _.Q(M,q_K(W),6);case 6:F.mimeType=M.yieldResult;_.id(M,5,2);break;case 4:_.Ml(M,2),_.dW(F.hostElement,"yt-image-selection-error-action",[(E=F.data)==null?void 0:E.genericImageLoadErrorMessage]),F.onCancelTap();case 5:h=new FileReader;h.addEventListener("load",
function(){var g,t;return _.e(function(C){if(C.nextAddress==1){if(!h.result)return _.OB(Error("jl")),C.return();g=h.result;t=new Image;t.src=g;t.onload=function(){try{var B=F.imageChecker;if(t.width<B.requirements.minWidth||t.height<B.requirements.minHeight)throw new WlN(B.requirements.minWidth,B.requirements.minHeight);}catch(x){if(x instanceof WlN){var I;_.dW(F.hostElement,"yt-image-selection-error-action",[(I=F.data)==null?void 0:I.imageDimensionErrorMessage]);F.logImageDimensionErrorVe()}else x instanceof
Error?_.a_(x):(B=new _.xC(JSON.stringify(x)),_.a_(B));F.onCancelTap()}F.showPopup()};
t.onerror=function(){var B;_.dW(F.hostElement,"yt-image-selection-error-action",[(B=F.data)==null?void 0:B.genericImageLoadErrorMessage]);F.onCancelTap()};
return _.Q(C,R5x(F.imageEditorCanvas,g),2)}F.imageEditor=C.yieldResult;F.updatePositionOfAllCorners();F.addEventListeners(F.imageEditor);_.gG(C)})},!1);
h.readAsDataURL(W);_.id(M,0);break;case 2:d=_.Ml(M),d instanceof Bd?_.dW(F.hostElement,"yt-image-selection-error-action",[(V=F.data)==null?void 0:V.imageSizeErrorMessage]):(d instanceof Error?_.a_(d):_.fn(new _.xC(JSON.stringify(d))),_.dW(F.hostElement,"yt-image-selection-error-action",[(R=F.data)==null?void 0:R.genericImageLoadErrorMessage])),F.onCancelTap(),_.gG(M)}})};
_.N.logImageDimensionErrorVe=function(){if(this.isPlaylistThumbnail){var F=_.Qd(_.z4(),{veType:232707,visualElement:_.LQ(232707)});F&&(F={visualElement:F},_.gh().reportShown(F))}};
_.N.handleImageSelectionErrorAction=function(F){this.isPlaylistThumbnail&&_.mqW(this.hostElement,F)};
_.N.convertToImageFormatBundle=function(F){var W=this,E,h,d;return _.e(function(V){switch(V.nextAddress){case 1:return E=F.toDataURL(W.outputMimeType,1),_.Q(V,$n8(E),2);case 2:h=V.yieldResult;_.Nl(V,3);h5x(W.imageChecker,h);_.id(V,4);break;case 3:d=_.Ml(V);if(!(d instanceof Bd))throw d;_.OB(new _.xC("Output size is bigger than input size for image",W.mimeType,W.outputMimeType,h.size));E=F.toDataURL("image/jpeg",.95);return _.Q(V,$n8(E),6);case 6:h=V.yieldResult;case 4:return V.return({dataUrl:E,imageFile:h})}})};
_.N.handleUploadImageToScottyCommand=function(F){var W=this,E,h,d,V,R,M,g,t,C,B;return _.e(function(I){switch(I.nextAddress){case 1:if(!W.imageEditor||!_.D(F,GN6))return I.return();E=_.D(F,GN6).scottyUploadUrl;if(!E){var x=new _.xC("Cannot handle UploadImageToScottyCommand without scotty upload\n    URL");_.a_(x);return I.return()}_.Nl(I,2);W.setLoadingState();h=W.imageEditor.crop(!1,!1);return _.Q(I,W.convertToImageFormatBundle(h),4);case 4:return d=I.yieldResult,_.Q(I,sxw(d.imageFile,E),5);case 5:V=
I.yieldResult;((R=W.data)==null?0:R.onUploadEndpoint)?(M=W.buildUploadServiceEndpoint(V),W.ytComponentBehavior.resolveCommand(M),g=_.D(M,_.lE),((t=g)==null?0:t.params)?W.closePopup():W.resetFileSelector()):(_.dW(W.hostElement,"yt-image-updated-action",[d.dataUrl,V]),W.closePopup());_.id(I,0);break;case 2:C=_.Ml(I),W.setErrorState((B=W.data)==null?void 0:B.uploadErrorMessage),C instanceof Error?_.a_(C):(x=new _.xC(JSON.stringify(C)),_.a_(x)),_.gG(I)}})};
_.N.buildUploadServiceEndpoint=function(F){return this.data&&this.data.onUploadEndpoint?(this.set("data.onUploadEndpoint.playlistEditEndpoint.actions.0.addedCustomThumbnail.playlistScottyEncryptedBlobId",F),this.data.onUploadEndpoint):null};
_.N.dataChanged=function(){var F=this,W;return _.e(function(E){if(E.nextAddress==1){if(!F.data||!F.canvasElement)return E.return();F.data.imageRatio&&F.data.minImageCropWidth||_.fn(new _.xC("Renderer data is incomplete: missing image_ratio or \nmin_image_crop_width"));W=function(h,d){return F.data.imageType==="IMAGE_TYPE_AVATAR"?new Xux(h,d,F.data.imageRatio,[F.data.minImageCropWidth,F.data.minImageCropWidth/F.data.imageRatio],F.hostElement):new vd(h,d,F.data.imageRatio,[F.data.minImageCropWidth,
F.data.minImageCropWidth/F.data.imageRatio],void 0,F.hostElement,8,!1)};
F.imageEditorCanvas=new d5q(F.canvasElement,W);return F.data.url?_.Q(E,R5x(F.imageEditorCanvas,F.data.url),3):(F.hideContainer=!0,F.openFileSelector(),E.jumpTo(0))}F.imageEditor=E.yieldResult;F.showPopup();F.addEventListeners(F.imageEditor);_.gG(E)})};
_.N.addEventListeners=function(F){this.removeEventListeners();var W=function(d){N46(F,d)};
this.JSC$18504_mouseDownEvent=W;var E=function(d){V_K(F,d)};
this.JSC$18504_mouseMoveEvent=E;var h=function(){U5T(F)};
this.JSC$18504_mouseUpEvent=h;this.topLeftCorner.addEventListener("mousedown",W);this.topLeftCorner.addEventListener("mousemove",E);this.topLeftCorner.addEventListener("mouseup",h);this.topRightCorner.addEventListener("mousedown",W);this.topRightCorner.addEventListener("mousemove",E);this.topRightCorner.addEventListener("mouseup",h);this.bottomLeftCorner.addEventListener("mousedown",W);this.bottomLeftCorner.addEventListener("mousemove",E);this.bottomLeftCorner.addEventListener("mouseup",h);this.bottomRightCorner.addEventListener("mousedown",
W);this.bottomRightCorner.addEventListener("mousemove",E);this.bottomRightCorner.addEventListener("mouseup",h)};
_.N.removeEventListeners=function(){this.JSC$18504_mouseDownEvent&&(this.topLeftCorner.removeEventListener("mousedown",this.JSC$18504_mouseDownEvent),this.topRightCorner.removeEventListener("mousedown",this.JSC$18504_mouseDownEvent),this.bottomLeftCorner.removeEventListener("mousedown",this.JSC$18504_mouseDownEvent),this.bottomRightCorner.removeEventListener("mousedown",this.JSC$18504_mouseDownEvent));this.JSC$18504_mouseMoveEvent&&(this.topLeftCorner.removeEventListener("mousemove",this.JSC$18504_mouseMoveEvent),
this.topRightCorner.removeEventListener("mousemove",this.JSC$18504_mouseMoveEvent),this.bottomLeftCorner.removeEventListener("mousemove",this.JSC$18504_mouseMoveEvent),this.bottomRightCorner.removeEventListener("mousemove",this.JSC$18504_mouseMoveEvent));this.JSC$18504_mouseUpEvent&&(this.topLeftCorner.removeEventListener("mouseup",this.JSC$18504_mouseUpEvent),this.topRightCorner.removeEventListener("mouseup",this.JSC$18504_mouseUpEvent),this.bottomLeftCorner.removeEventListener("mouseup",this.JSC$18504_mouseUpEvent),
this.bottomRightCorner.removeEventListener("mouseup",this.JSC$18504_mouseUpEvent))};
_.N.setFocusInImageEditor=function(){if(!this.imageEditor)return!1;for(var F=document.activeElement;F&&F.shadowRoot&&F.shadowRoot.activeElement;)F=F.shadowRoot.activeElement;switch(F){case this.topLeftCorner:this.imageEditor.focusedCorner=1;break;case this.topRightCorner:this.imageEditor.focusedCorner=3;break;case this.bottomLeftCorner:this.imageEditor.focusedCorner=2;break;case this.bottomRightCorner:this.imageEditor.focusedCorner=4;break;default:return this.imageEditor.focusedCorner=0,!1}return!0};
_.N.updatePositionOfCorner=function(F,W){var E=F.y-W.offsetHeight/2+4;W.style.left=F.x-W.offsetWidth/2+16+"px";W.style.top=E+"px"};
_.N.updatePositionOfAllCorners=function(){if(this.imageEditor)for(var F=_.U([{corner:1,div:this.topLeftCorner},{corner:3,div:this.topRightCorner},{corner:2,div:this.bottomLeftCorner},{corner:4,div:this.bottomRightCorner}]),W=F.next();!W.done;W=F.next()){W=W.value;var E=QJq(this.imageEditor,W.corner);this.updatePositionOfCorner(E,W.div)}};
_.N.onLeft=function(F){this.imageEditor&&this.setFocusInImageEditor()&&(t_6(this.imageEditor,0),this.updatePositionOfAllCorners(),F.preventDefault())};
_.N.onRight=function(F){this.imageEditor&&this.setFocusInImageEditor()&&(t_6(this.imageEditor,1),this.updatePositionOfAllCorners(),F.preventDefault())};
_.N.onUp=function(F){this.imageEditor&&this.setFocusInImageEditor()&&(t_6(this.imageEditor,2),this.updatePositionOfAllCorners(),F.preventDefault())};
_.N.onDown=function(F){this.imageEditor&&this.setFocusInImageEditor()&&(t_6(this.imageEditor,3),this.updatePositionOfAllCorners(),F.preventDefault())};
_.N.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={left:"onLeft",right:"onRight",up:"onUp",down:"onDown"}};
_.N.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.N.detached=function(){this.removeEventListeners();this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.Sn.Object.defineProperties(I5.prototype,{outputMimeType:{configurable:!0,enumerable:!0,get:function(){return this.mimeType&&Pm$.includes(this.mimeType)?this.mimeType:"image/jpeg"}},
imageChecker:{configurable:!0,enumerable:!0,get:function(){var F,W,E;((W=this.data)==null?0:W.imageRatio)&&((E=this.data)==null?0:E.minImageCropWidth)?F={maxFileSizeMB:15,minWidth:this.data.minImageCropWidth,minHeight:this.data.minImageCropWidth/this.data.imageRatio}:F=H8w;return new E88(F)}}});
I5.prototype.updatePositionOfAllCorners=I5.prototype.updatePositionOfAllCorners;I5.prototype.dataChanged=I5.prototype.dataChanged;_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],I5.prototype,"ytActionHandlerBehavior",void 0);_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],I5.prototype,"ytComponentBehavior",void 0);_.T([_.J(_.$5),_.Y("design:type",Object)],I5.prototype,"ironA11yKeysBehavior",void 0);
_.T([_.gQ("#canvas"),_.Y("design:type",HTMLCanvasElement)],I5.prototype,"canvasElement",void 0);_.T([_.gQ("#file-selector"),_.Y("design:type",HTMLInputElement)],I5.prototype,"fileSelector",void 0);_.T([_.gQ("#top-left-corner"),_.Y("design:type",HTMLDivElement)],I5.prototype,"topLeftCorner",void 0);_.T([_.gQ("#top-right-corner"),_.Y("design:type",HTMLDivElement)],I5.prototype,"topRightCorner",void 0);
_.T([_.gQ("#bottom-left-corner"),_.Y("design:type",HTMLDivElement)],I5.prototype,"bottomLeftCorner",void 0);_.T([_.gQ("#bottom-right-corner"),_.Y("design:type",HTMLDivElement)],I5.prototype,"bottomRightCorner",void 0);_.T([_.O(),_.Y("design:type",Object)],I5.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Object)],I5.prototype,"errorMessage",void 0);_.T([_.O(),_.Y("design:type",Object)],I5.prototype,"isLoading",void 0);_.T([_.O(),_.Y("design:type",Object)],I5.prototype,"hideContainer",void 0);
_.T([_.O({reflectToAttribute:!0,computed:"computePlaylistThumbnail(data.imageType)"}),_.Y("design:type",Boolean)],I5.prototype,"isPlaylistThumbnail",void 0);_.T([_.Cz("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype",Promise)],I5.prototype,"dataChanged",null);_.T([_.R4("image-updated"),_.R4("yt-refit"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],I5.prototype,"updatePositionOfAllCorners",null);
I5=_.T([_.$3({is:"yt-image-editor-renderer",disableElementRegistration:!0})],I5);
_.r(I5,"yt-image-editor-renderer",function(){if(FlK===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-image-editor-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.channels.yt_image_editor_renderer.yt.image.editor.renderer.css.js--\x3e<div class="container style-scope yt-image-editor-renderer" hidden$="[[hideContainer]]">\n  <div class="popup-header style-scope yt-image-editor-renderer">\n    <h2 class="style-scope yt-image-editor-renderer">\n      <yt-formatted-string id="title" class="popup-header-title style-scope yt-image-editor-renderer" text="[[data.title]]">\n      </yt-formatted-string>\n    </h2>\n  </div>\n  <div class="content style-scope yt-image-editor-renderer" slot="content" no-padding="" id="canvas-container">\n    <div class="error style-scope yt-image-editor-renderer" hidden="[[!errorMessage]]">\n      <yt-icon id="info-icon" icon="yt-icons:info" class="style-scope yt-image-editor-renderer"></yt-icon>\n      <yt-formatted-string id="error" class="error-message style-scope yt-image-editor-renderer" text="[[errorMessage]]">\n    </yt-formatted-string>\n    </div>\n    <canvas id="canvas" width="600" height="600" class="style-scope yt-image-editor-renderer">\n    </canvas>\n    <div class="drag top-left style-scope yt-image-editor-renderer" id="top-left-corner" aria-label="[[data.topLeftCornerImageCropAriaLabel]]" role="button" tabindex="0">\n    </div>\n    <div class="drag top-right style-scope yt-image-editor-renderer" id="top-right-corner" aria-label="[[data.topRightCornerImageCropAriaLabel]]" role="button" tabindex="0">\n    </div>\n    <div class="drag bottom-left style-scope yt-image-editor-renderer" id="bottom-left-corner" aria-label="[[data.bottomLeftCornerImageCropAriaLabel]]" role="button" tabindex="0">\n    </div>\n    <div class="drag bottom-right style-scope yt-image-editor-renderer" id="bottom-right-corner" aria-label="[[data.bottomRightCornerImageCropAriaLabel]]" role="button" tabindex="0">\n    </div>\n  </div>\n  <div class="button-layer style-scope yt-image-editor-renderer">\n    <input id="file-selector" accept="image/*" hidden="" type="file" on-change="handleFileSelection" class="style-scope yt-image-editor-renderer">\n    <yt-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" on-click="onCancelTap" class="style-scope yt-image-editor-renderer">\n    </yt-button-renderer>\n    <yt-button-renderer id="update-button" data="[[data.updateButton.buttonRenderer]]" class="style-scope yt-image-editor-renderer">\n    </yt-button-renderer>\n  </div>\n  <div class="spinner-container style-scope yt-image-editor-renderer" hidden="[[!isLoading]]">\n    <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope yt-image-editor-renderer"></tp-yt-paper-spinner-lite>\n  </div>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;Kqw===void 0&&(Kqw=document.createElement("template"));var h=Kqw;E.call(W,h.content.cloneNode(!0),F.content.firstChild);FlK=F}F=FlK;return F},{mode:2});var JiT;var aH$;var cd=function(){return _.n.apply(this,arguments)||this};
_.k(cd,_.n);cd.prototype.updateMinutesFromBinding=function(F){this.handleMinutesChanged&&this.handleMinutesChanged(F)};
cd.prototype.updateSecondsFromBinding=function(F){this.handleSecondsChanged&&this.handleSecondsChanged(F)};
cd.prototype.updateDescriptionFromBinding=function(F){this.handleDescriptionChanged&&this.handleDescriptionChanged(F)};
_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],cd.prototype,"ytComponentBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],cd.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",String)],cd.prototype,"minutes",void 0);_.T([_.O(),_.Y("design:type",String)],cd.prototype,"seconds",void 0);_.T([_.O(),_.Y("design:type",String)],cd.prototype,"description",void 0);_.T([_.O(),_.Y("design:type",Function)],cd.prototype,"handleMinutesChanged",void 0);
_.T([_.O(),_.Y("design:type",Function)],cd.prototype,"handleSecondsChanged",void 0);_.T([_.O(),_.Y("design:type",Function)],cd.prototype,"handleDescriptionChanged",void 0);_.T([_.O(),_.Y("design:type",Number)],cd.prototype,"characterLimit",void 0);_.T([_.O(),_.Y("design:type",Number)],cd.prototype,"textNumRows",void 0);cd=_.T([_.$3({is:"yt-report-details-form-content",disableElementRegistration:!0})],cd);
_.r(cd,"yt-report-details-form-content",function(){if(aH$===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-report-details-form-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.flag.yt_report_details_form_content.yt.report.details.form.content.css.js--\x3e<div id="content" class="style-scope yt-report-details-form-content"><label id="timestamp" class="style-scope yt-report-details-form-content">\n    [[getSimpleString(data.timestampLabel)]]\n    <yt-timestamp-input minutes="[[minutes]]" seconds="[[seconds]]" on-minutes-changed="updateMinutesFromBinding" on-seconds-changed="updateSecondsFromBinding" class="style-scope yt-report-details-form-content"></yt-timestamp-input></label><div id="description" class="style-scope yt-report-details-form-content"><tp-yt-paper-input-container no-label-float="" use-v2-underline="" class="style-scope yt-report-details-form-content"><tp-yt-iron-autogrow-textarea id="description-text" class="paper-input-input style-scope yt-report-details-form-content" slot="input" aria-label$="[[getSimpleString(data.descriptionHint)]]" maxlength$="[[characterLimit]]" placeholder="[[getSimpleString(data.descriptionHint)]]" rows$="[[textNumRows]]" value="[[description]]" on-value-changed="updateDescriptionFromBinding"></tp-yt-iron-autogrow-textarea><tp-yt-paper-input-char-counter slot="add-on" class="style-scope yt-report-details-form-content"></tp-yt-paper-input-char-counter></tp-yt-paper-input-container></div><yt-formatted-string id="footer" text="[[data.footer]]" class="style-scope yt-report-details-form-content"></yt-formatted-string></div>');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);var W=F.content,E=W.insertBefore;JiT===void 0&&(JiT=document.createElement("template"));var h=JiT;E.call(W,h.content.cloneNode(!0),F.content.firstChild);aH$=F}F=aH$;return F},{mode:2});var fH8;var O86;var DX=function(){var F=_.n.apply(this,arguments)||this;F.updateMinutesFromBinding=function(W){F.minutes=W.detail.value};
F.updateSecondsFromBinding=function(W){F.seconds=W.detail.value};
F.updateDescriptionFromBinding=function(W){F.description=W.detail.value};
return F};
_.k(DX,_.n);_.N=DX.prototype;_.N.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isMusic&&(this.seconds=this.minutes="0")};
_.N.configureRendererStamper=function(){return{"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0}}}},"data.submitButton":{id:"submit-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.N.ready=function(){_.Z(this.hostElement).querySelector("#submit-button").addEventListener("yt-action",this.onSubmitYtAction.bind(this))};
_.N.onSubmitYtAction=function(F){var W=F.detail;W.actionName==="yt-service-request"&&(W=W.args[1],W.flagEndpoint&&(F.stopPropagation(),this.refireAction(W)))};
_.N.refireAction=function(F){var W={text:this.description,minutes:Number(this.minutes),seconds:Number(this.seconds)};this.vssId&&(W.vss_id=this.vssId);_.UT(this.hostElement,[F,W]);this.submitDisabled=!0};
_.N.dataChanged=function(){var F=this;this.seconds=this.minutes="";this.isMusic&&(this.seconds=this.minutes="0");this.vssId=this.description="";this.submitDisabled=!1;var W=_.WS();W&&W.getPlayerPromise().then(function(E){var h=E.getOption("cc","track")||E.getOption("captions","track");h&&(F.vssId=h.vss_id);E=E.getCurrentTime();F.minutes=Math.floor(E/60).toString();F.seconds=(Math.floor(E)%60).toString()})};
_.N.updateSubmitButtonState=function(){var F;((F=this.data)==null?0:F.isFreeformReason)?this.set("data.submitButton.buttonRenderer.isDisabled",this.submitDisabled||this.minutes===""||this.seconds===""||!this.description||this.description.length<3):this.set("data.submitButton.buttonRenderer.isDisabled",this.submitDisabled||this.minutes===""||this.seconds==="")};
_.N.onYtServiceRequestCompleted=function(){_.dW(this.hostElement,"yt-close-popup-action")};
_.N.onYtServiceRequestError=function(){this.submitDisabled=!1};
_.Sn.Object.defineProperties(DX.prototype,{characterLimit:{configurable:!0,enumerable:!0,get:function(){var F;return((F=this.data)==null?void 0:F.characterLimit)||500}},
textNumRows:{configurable:!0,enumerable:!0,get:function(){var F;return((F=this.data)==null?void 0:F.textNumRows)||4}}});
DX.prototype.onYtServiceRequestError=DX.prototype.onYtServiceRequestError;DX.prototype.onYtServiceRequestCompleted=DX.prototype.onYtServiceRequestCompleted;DX.prototype.updateSubmitButtonState=DX.prototype.updateSubmitButtonState;_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],DX.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],DX.prototype,"ytRendererBehavior",void 0);
_.T([_.O({observer:"dataChanged"}),_.Y("design:type",Object)],DX.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Boolean)],DX.prototype,"submitDisabled",void 0);_.T([_.O(),_.Y("design:type",String)],DX.prototype,"minutes",void 0);_.T([_.O(),_.Y("design:type",String)],DX.prototype,"seconds",void 0);_.T([_.O(),_.Y("design:type",String)],DX.prototype,"description",void 0);_.T([_.O(),_.Y("design:type",String)],DX.prototype,"vssId",void 0);
_.T([_.O({value:_.b0("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.Y("design:type",Boolean)],DX.prototype,"isMusic",void 0);_.T([_.a("data"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],DX.prototype,"characterLimit",null);_.T([_.a("data"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],DX.prototype,"textNumRows",null);
_.T([_.Cz("minutes","seconds","description","submitDisabled"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],DX.prototype,"updateSubmitButtonState",null);_.T([_.R4("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],DX.prototype,"onYtServiceRequestCompleted",null);
_.T([_.R4("yt-service-request-error"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],DX.prototype,"onYtServiceRequestError",null);DX=_.T([_.$3({is:"yt-report-details-form-renderer",disableElementRegistration:!0})],DX);
_.r(DX,"yt-report-details-form-renderer",function(){if(O86===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-report-details-form-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.flag.yt_report_details_form_renderer.yt.report.details.form.renderer.css.js--\x3e<div id="header" class="style-scope yt-report-details-form-renderer">\n  <div id="back-button" class="style-scope yt-report-details-form-renderer"></div>\n  <h2 id="title" class="style-scope yt-report-details-form-renderer">[[getSimpleString(data.title)]]</h2>\n</div>\n  <yt-report-details-form-content character-limit="[[characterLimit]]" data="[[data]]" description="[[description]]" handle-description-changed="[[updateDescriptionFromBinding]]" handle-minutes-changed="[[updateMinutesFromBinding]]" handle-seconds-changed="[[updateSecondsFromBinding]]" minutes="[[minutes]]" seconds="[[seconds]]" text-num-rows="[[textNumRows]]" class="style-scope yt-report-details-form-renderer">\n  </yt-report-details-form-content>\n<div id="buttons" class="style-scope yt-report-details-form-renderer">\n  <div id="cancel-button" class="style-scope yt-report-details-form-renderer"></div>\n  <div id="submit-button" class="style-scope yt-report-details-form-renderer"></div>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;fH8===void 0&&(fH8=document.createElement("template"));var h=fH8;E.call(W,h.content.cloneNode(!0),F.content.firstChild);O86=F}F=O86;return F});var b88;var lH6;var n8K;var yiN;var xL=function(){return _.n.apply(this,arguments)||this};
_.k(xL,_.n);
xL.prototype.onCheckedChanged_=function(){if(this.data){var F=_.Z(this.hostElement).querySelector("#checkbox").checked;this.data.identifier==="yt-external-links-checkbox"?_.dW(this.hostElement,"yt-additional-detail-checkbox-update",[F]):this.data.identifier==="yt-hide-user-checkbox"?_.dW(this.hostElement,"yt-hide-user-checkbox-update",[F]):F&&this.data.enableCommand?_.dW(this.hostElement,"yt-modify-report-form-command",[_.D(this.data.enableCommand,Kyw)]):!F&&this.data.disableCommand&&_.dW(this.hostElement,
"yt-modify-report-form-command",[_.D(this.data.enableCommand,Kyw)])}};
xL.prototype.onLabelTap_=function(F){F.target.tagName!="A"&&(_.Z(this.hostElement).querySelector("#checkbox").checked=!_.Z(this.hostElement).querySelector("#checkbox").checked)};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],xL.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],xL.prototype,"data",void 0);xL=_.T([_.$3({is:"yt-boolean-form-field-v2-renderer",disableElementRegistration:!0})],xL);
_.r(xL,"yt-boolean-form-field-v2-renderer",function(){if(yiN===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-boolean-form-field-v2-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_boolean_form_field_v2_renderer.yt.boolean.form.field.v2.renderer.css.js--\x3e<tp-yt-paper-checkbox id="checkbox" aria-labelledby="yt-boolean-form-field-v2-renderer-label" checked="[[data.value]]" on-checked-changed="onCheckedChanged_" class="style-scope yt-boolean-form-field-v2-renderer">\n</tp-yt-paper-checkbox>\n<div id="content" class="style-scope yt-boolean-form-field-v2-renderer">\n  <yt-formatted-string id="yt-boolean-form-field-v2-renderer-label" class="label style-scope yt-boolean-form-field-v2-renderer" text="[[data.label]]" on-tap="onLabelTap_">\n  </yt-formatted-string>\n  <yt-formatted-string id="yt-boolean-form-field-v2-renderer-tooltip" class="tooltip style-scope yt-boolean-form-field-v2-renderer" text="[[data.tooltip]]">\n  </yt-formatted-string>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;n8K===void 0&&(n8K=document.createElement("template"));var h=n8K;E.call(W,h.content.cloneNode(!0),F.content.firstChild);yiN=F}F=yiN;return F});var kL=function(){var F=_.n.apply(this,arguments)||this;F.canShowAdditionalDetailCheckbox=!1;F.canShowCheckbox=!1;F.keepDropdownFocusedAfterSelection=!0;return F};
_.k(kL,_.n);kL.prototype.configureRendererStamper=function(){return{"data.legalReportCheckbox":{id:"checkbox-container",mapping:{booleanFormFieldV2Renderer:{component:"yt-boolean-form-field-v2-renderer",noInjection:!0}}},"data.additionalDetailCheckbox":{id:"additional-detail-checkbox-container",mapping:{booleanFormFieldV2Renderer:{component:"yt-boolean-form-field-v2-renderer",noInjection:!0}}}}};
_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],kL.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],kL.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Object)],kL.prototype,"canShowAdditionalDetailCheckbox",void 0);_.T([_.O(),_.Y("design:type",Object)],kL.prototype,"canShowCheckbox",void 0);_.T([_.O(),_.Y("design:type",Object)],kL.prototype,"keepDropdownFocusedAfterSelection",void 0);
kL=_.T([_.$3({is:"yt-report-form-modal-content",disableElementRegistration:!0})],kL);
_.r(kL,"yt-report-form-modal-content",function(){if(lH6===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-report-form-modal-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.flag.yt_report_form_modal_content.yt.report.form.modal.content.css.js--\x3e<div id="container" hidden="[[!data]]" class="style-scope yt-report-form-modal-content"><yt-formatted-string id="description" hidden="[[!data.description]]" text="[[data.description]]" class="style-scope yt-report-form-modal-content"></yt-formatted-string><yt-options-renderer data="[[data.optionsSupportedRenderers.optionsRenderer]]" restore-focus-on-close="[[keepDropdownFocusedAfterSelection]]" class="style-scope yt-report-form-modal-content"></yt-options-renderer><div id="additional-detail-checkbox-container" hidden="[[!canShowAdditionalDetailCheckbox]]" class="style-scope yt-report-form-modal-content"></div><div id="checkbox-container" hidden="[[!canShowCheckbox]]" class="style-scope yt-report-form-modal-content"></div><yt-formatted-string id="footer" hidden="[[!data.footer]]" split-lines="" text="[[data.footer]]" class="style-scope yt-report-form-modal-content"></yt-formatted-string></div>');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;b88===void 0&&(b88=document.createElement("template"));var h=b88;E.call(W,h.content.cloneNode(!0),F.content.firstChild);lH6=F}F=lH6;return F},{mode:2});var jJT;var i8$;var A0=function(){var F=_.n.apply(this,arguments)||this;F.submitting=!1;F.submitButtonDisabled=!0;F.command=null;F.canShowCheckbox=!1;F.canShowAdditionalDetailCheckbox=!1;F.canShowNextButton=!1;F.additionalDetailCheckboxChecked=!1;F.refitJob=0;F.keepDropdownFocusedAfterSelection=!0;F.actionMap={"yt-report-form-update":"handleReportFormEndpointUpdateAction","yt-report-form-endpoint-update":"handleReportFormEndpointUpdateAction","yt-confirm-dialog-close-action":"handleConfirmDialogCloseAction","yt-modify-report-form-command":"handleModifyReportFormCommand",
"yt-additional-detail-checkbox-update":"handleAdditionalDetailCheckboxUpdateAction"};return F};
_.k(A0,_.n);_.N=A0.prototype;_.N.created=function(){this.refitJob=0};
_.N.attached=function(){this.JSC$18527_scroller&&(this.JSC$18527_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18527_scroller.attached&&typeof this.JSC$18527_scroller.attached==="function"&&this.JSC$18527_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.N.dataChanged=function(F){F&&(this.toggleSubmitButton(!!this.get("data.submitButton.buttonRenderer.isDisabled")),this.set("data.submitButton.buttonRenderer.isDisabled",void 0),this.set("data.nextButton.buttonRenderer.isDisabled",void 0),this.command=null,this.additionalDetailCheckboxChecked=this.canShowNextButton=this.canShowAdditionalDetailCheckbox=this.canShowCheckbox=this.hideReportForm=this.submitting=!1,F.legalReportCheckbox&&this.set("data.legalReportCheckbox.booleanFormFieldV2Renderer.value",
!1),F.additionalDetailCheckbox&&this.set("data.additionalDetailCheckbox.booleanFormFieldV2Renderer.value",!1),this.updateDialogStyling())};
_.N.onYtPopupOpened=function(){var F=_.WS();F&&F.getPlayerPromise().then(function(W){W.pauseVideo()})};
_.N.onYtNavigate=function(F){_.D(F.detail.endpoint,_.rf_)&&(F.stopPropagation(),this.hideReportForm=!0)};
_.N.onYtServiceRequestSent=function(){this.toggleSubmitButton(!0)};
_.N.onYtServiceRequestCompleted=function(F,W){var E=W.actions;if(E){if(E.length===1&&_.D(E[0],_.Mc)){var h;E=((h=_.D(E[0],_.Mc))==null?void 0:h.commands)||[]}h=0;for(var d=E.length;h<d;h++)_.D(E[h],_.J7)&&(F.stopPropagation(),this.hostElement.parentElement.close(),this.openPopupBehavior.openPopup(E[h]))}if(W.data&&(F=this.get("feedbackResponses",W.data)))for(W=0;W<F.length;W++)if(F[W].isThumbnailReporting){this.hostElement.parentElement.close();break}};
_.N.onYtServiceRequestError=function(){this.toggleSubmitButton(!1)};
_.N._onDescendantIronResize=function(F){F.stopPropagation();return!1};
_.N.handleReportFormEndpointUpdateAction=function(F){if(F.submitEndpoint){var W=this.command=F.submitEndpoint;W=_.D(W,_.ZPM);if(W==null?0:W.additionalDetailCheckboxChecked)W.additionalDetailCheckboxChecked=this.additionalDetailCheckboxChecked;this.toggleSubmitButton(!1)}else F.submitNavigationEndpoint?(this.command=F.submitNavigationEndpoint,this.toggleSubmitButton(!1)):F.confirmDialog?(this.command={confirmDialogEndpoint:{content:{confirmDialogRenderer:F.confirmDialog.confirmDialogRenderer}}},this.toggleSubmitButton(!1)):
this.command=null;F.disableSubmitButton&&this.toggleSubmitButton(!0);this.handleModifyReportFormCommand(this.get("clickCommands.0.modifyReportFormCommand",F));this.refit()};
_.N.handleConfirmDialogCloseAction=function(F){F.confirmed?this.hostElement.parentElement.close():this.hideReportForm=!1};
_.N.submitButtonDisabledChanged=function(){var F=this.hostElement.parentElement;F&&F.invalidateTabbables&&F.invalidateTabbables()};
_.N.handleModifyReportFormCommand=function(F){F=this.get("action",F);F==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_HIDE"?this.canShowCheckbox=!1:F==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_SHOW"?this.canShowCheckbox=!0:F==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_HIDE"?this.canShowAdditionalDetailCheckbox=!1:F==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_SHOW"?this.canShowAdditionalDetailCheckbox=!0:F==="REPORT_FORM_ACTION_SUBMIT_BUTTON_SHOW"?this.canShowNextButton=!1:F==="REPORT_FORM_ACTION_NEXT_BUTTON_SHOW"&&
(this.canShowNextButton=!0);this.refit()};
_.N.updateDialogStyling=function(){var F,W,E,h,d,V=((d=(F=this.data)==null?void 0:(W=F.optionsSupportedRenderers)==null?void 0:(E=W.optionsRenderer)==null?void 0:(h=E.items)==null?void 0:h.length)!=null?d:0)<=2?0:240;_.V9(this.hostElement,{"--yt-report-form-modal-renderer-min-width":V+"px"})};
_.N.toggleSubmitButton=function(F){this.submitButtonDisabled=!F;this.submitButtonDisabled=F};
_.N.computeSubmitButtonData=function(F,W){var E={};_.D(W,_.rf_)?E.navigationEndpoint=W:E.command=W||void 0;F&&F.buttonRenderer&&_.xd.extend(E,F.buttonRenderer);return E};
_.N.computeNextButtonData=function(F,W){var E={};if(!F||!F.buttonRenderer)return E;_.xd.extend(E,F.buttonRenderer);if(!W)return E;if(_.D(W,_.rf_))E.navigationEndpoint=zpP(W);else if(E.command=zpP(W),F=_.D(E.command,_.ZPM))F.legalCheckboxChecked=!0;return E};
_.N.computeShowNextButton=function(F,W,E){return!!F&&W&&E};
_.N.refit=function(){var F=this;this.refitJob||(this.refitJob=_.P0.addLowPriorityJob(function(){_.hF(F.hostElement,"yt-refit");F.refitJob=0}))};
_.N.handleAdditionalDetailCheckboxUpdateAction=function(F){this.additionalDetailCheckboxChecked=F;_.D(this.command,_.ZPM).additionalDetailCheckboxChecked=F};
_.Sn.Object.defineProperties(A0,{template:{configurable:!0,enumerable:!0,get:function(){if(i8$===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-report-form-modal-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.flag.yt_report_form_modal_renderer.yt.report.form.modal.renderer.css.js--\x3e<template is="dom-if" if="[[submitting]]" restamp="" class="style-scope yt-report-form-modal-renderer">\n  <div id="container" class="style-scope yt-report-form-modal-renderer">\n    <div id="loading-indicator" class="style-scope yt-report-form-modal-renderer">\n      <tp-yt-paper-spinner-lite active="" class="style-scope yt-report-form-modal-renderer"></tp-yt-paper-spinner-lite>\n    </div>\n  </div>\n</template>\n<yt-formatted-string id="title" text="[[data.title]]" class="style-scope yt-report-form-modal-renderer"></yt-formatted-string>\n<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope yt-report-form-modal-renderer">\n  <yt-report-form-modal-content can-show-additional-detail-checkbox="[[canShowAdditionalDetailCheckbox]]" can-show-checkbox="[[canShowCheckbox]]" data="[[data]]" keep-dropdown-focused-after-selection="[[keepDropdownFocusedAfterSelection]]" class="style-scope yt-report-form-modal-renderer">\n  </yt-report-form-modal-content>\n</tp-yt-paper-dialog-scrollable>\n<div class="buttons style-scope yt-report-form-modal-renderer">\n  <yt-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" dialog-dismiss="" class="style-scope yt-report-form-modal-renderer">\n  </yt-button-renderer>\n  <yt-button-renderer id="submit-button" data="[[computeSubmitButtonData(data.submitButton, command)]]" dialog-confirm="" disabled="[[submitButtonDisabled]]" hidden="[[computeShowNextButton(data.nextButton, canShowNextButton,\n              canShowCheckbox)]]" class="style-scope yt-report-form-modal-renderer">\n  </yt-button-renderer>\n  <yt-button-renderer id="next-button" data="[[computeNextButtonData(data.nextButton, command)]]" dialog-confirm="" hidden="[[!computeShowNextButton(data.nextButton, canShowNextButton,\n              canShowCheckbox)]]" class="style-scope yt-report-form-modal-renderer">\n  </yt-button-renderer>\n</div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);var W=F.content,E=W.insertBefore;jJT===void 0&&(jJT=document.createElement("template"));var h=jJT;E.call(W,h.content.cloneNode(!0),F.content.firstChild);i8$=F}F=i8$;return F}}});
A0.prototype.onYtServiceRequestError=A0.prototype.onYtServiceRequestError;A0.prototype.onYtServiceRequestCompleted=A0.prototype.onYtServiceRequestCompleted;A0.prototype.onYtServiceRequestSent=A0.prototype.onYtServiceRequestSent;A0.prototype.onYtNavigate=A0.prototype.onYtNavigate;A0.prototype.onYtPopupOpened=A0.prototype.onYtPopupOpened;_.T([_.J(_.R9.YtOpenPopupBehavior),_.Y("design:type",Object)],A0.prototype,"openPopupBehavior",void 0);
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],A0.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],A0.prototype,"ytActionHandlerBehavior",void 0);_.T([_.J(_.B$.YtEventForwardingBehavior),_.Y("design:type",Object)],A0.prototype,"eventForwardingBehavior",void 0);_.T([_.J(_.lB),_.Y("design:type",Object)],A0.prototype,"ironResizableBehavior",void 0);_.T([_.O({observer:"dataChanged"}),_.Y("design:type",Object)],A0.prototype,"data",void 0);
_.T([_.O(),_.Y("design:type",Object)],A0.prototype,"submitting",void 0);_.T([_.O({observer:"submitButtonDisabledChanged"}),_.Y("design:type",Object)],A0.prototype,"submitButtonDisabled",void 0);_.T([_.O(),_.Y("design:type",Object)],A0.prototype,"command",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],A0.prototype,"hideReportForm",void 0);_.T([_.O(),_.Y("design:type",Object)],A0.prototype,"canShowCheckbox",void 0);
_.T([_.O(),_.Y("design:type",Object)],A0.prototype,"canShowAdditionalDetailCheckbox",void 0);_.T([_.O(),_.Y("design:type",Object)],A0.prototype,"canShowNextButton",void 0);_.T([_.O(),_.Y("design:type",Object)],A0.prototype,"additionalDetailCheckboxChecked",void 0);_.T([_.O(),_.Y("design:type",Object)],A0.prototype,"refitJob",void 0);_.T([_.O(),_.Y("design:type",Object)],A0.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.T([_.gQ("#scroller"),_.Y("design:type",Object)],A0.prototype,"JSC$18527_scroller",void 0);_.T([_.R4("yt-popup-opened"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],A0.prototype,"onYtPopupOpened",null);_.T([_.R4("yt-navigate"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],A0.prototype,"onYtNavigate",null);
_.T([_.R4("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.nQ]),_.Y("design:returntype")],A0.prototype,"onYtServiceRequestSent",null);_.T([_.R4("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.uz]),_.Y("design:returntype")],A0.prototype,"onYtServiceRequestCompleted",null);
_.T([_.R4("yt-service-request-error"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],A0.prototype,"onYtServiceRequestError",null);A0=_.T([_.$3({is:"yt-report-form-modal-renderer",notifyObserversOnUndefined:!1,noInjection:!0})],A0);var ri8;var T4K;var sI=function(){return _.n.apply(this,arguments)||this};
_.k(sI,_.n);_.N=sI.prototype;_.N.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.id="mealbar-promo-renderer"};
_.N.onVisible=function(){if(_.c("web_ephemeral_actions_focus")){var F,W;(W=_.WZ().resolve(_.Fd(_.zI)))==null||W.enqueue({label:_.Yr((F=this.data)==null?void 0:F.messageTitle),elementToFocus:this.hostElement})}};
_.N.onThumbnailLoaded=function(){_.hF(this.hostElement,"yt-refit")};
_.N.onDismissTap=function(){_.dW(this.hostElement,"yt-close-popup-action",["yt-mealbar-promo-renderer"])};
_.N.computeAlternateIcon=function(F){return F?F==="BACKSTAGE_ARTWORK"?"backstage:artwork":F:null};
_.N.computeFontFamily=function(F){return F==="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD"};
_.N.computeBackgroundStyle=function(F,W){if(F=this.computeBackgroundImage(F,W))if(F=_.KK(F.thumbnails))return'background-image: url("'+F+'");'};
_.N.computeHasFullHeightImage=function(F){return!(!(F&&F.thumbnails&&F.thumbnails.length>0)||this.modern)};
_.N.isModernStyle=function(F){return F.style==="STYLE_MODERN"};
_.N.computeIcon=function(F,W){if(F&&F.icon)return W?F.iconDark:F.icon};
_.N.computeBackgroundImage=function(F,W){if(F&&F.backgroundImage)return W?F.backgroundImageDark:F.backgroundImage};
_.N.computeLogo=function(F,W){if(F&&F.logo)return W?F.logoDark:F.logo};
_.N.computeShouldShowModernIcon=function(F,W){return F&&!!W};
_.N.getLogoContainerClassName=function(F){return this.logoWithPadding(F)?"yt-mealbar-promo-renderer-logo-with-padding":"yt-mealbar-promo-renderer-logo"};
_.N.getLogoImageId=function(F){return this.logoWithPadding(F)?"mealbar-logo-with-padding":"mealbar-logo"};
_.N.logoWithPadding=function(F){var W,E,h;return(F=(W=this.computeLogo(F,this.isDarkTheme))==null?void 0:(E=W.thumbnails)==null?void 0:(h=E[0])==null?void 0:h.height)&&F%31===0?!0:!1};
sI.prototype.onThumbnailLoaded=sI.prototype.onThumbnailLoaded;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],sI.prototype,"ytRendererBehavior",void 0);_.T([_.O({}),_.Y("design:type",Object)],sI.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0,computed:"isModernStyle(data)"}),_.Y("design:type",Boolean)],sI.prototype,"modern",void 0);_.T([_.O({value:!1}),_.Y("design:type",Boolean)],sI.prototype,"isDarkTheme",void 0);
_.T([_.O({computed:"computeIcon(data, isDarkTheme)"}),_.Y("design:type",Object)],sI.prototype,"icon",void 0);_.T([_.O({computed:"computeLogo(data, isDarkTheme)"}),_.Y("design:type",Object)],sI.prototype,"logo",void 0);_.T([_.O({computed:"computeBackgroundStyle(data, isDarkTheme)"}),_.Y("design:type",Object)],sI.prototype,"backgroundStyle",void 0);_.T([_.O({computed:"computeAlternateIcon(data.alternateIcon.iconType)"}),_.Y("design:type",Object)],sI.prototype,"alternateIcon",void 0);
_.T([_.O({reflectToAttribute:!0,computed:"computeHasFullHeightImage(data.icon)"}),_.Y("design:type",Boolean)],sI.prototype,"hasFullHeightImage",void 0);_.T([_.O({reflectToAttribute:!0,computed:"computeFontFamily(data.font)"}),_.Y("design:type",Boolean)],sI.prototype,"useYoutubeSans",void 0);_.T([_.O({computed:"computeShouldShowModernIcon(modern, icon)"}),_.Y("design:type",Boolean)],sI.prototype,"shouldShowModernIcon",void 0);
_.T([_.R4("yt-img-shadow-loaded"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],sI.prototype,"onThumbnailLoaded",null);sI=_.T([_.$3({is:"yt-mealbar-promo-renderer",disableElementRegistration:!0})],sI);
_.r(sI,"yt-mealbar-promo-renderer",function(){if(T4K===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-mealbar-promo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.promos.yt_mealbar_promo_renderer.yt.mealbar.promo.renderer.css.js--\x3e<template is="dom-if" if="[[!modern]]" class="style-scope yt-mealbar-promo-renderer">\n  <yt-img-shadow id="icon" hidden="[[!data.icon]]" notify-on-loaded="" thumbnail="[[data.icon]]" class="style-scope yt-mealbar-promo-renderer">\n  </yt-img-shadow>\n  <yt-icon id="alternate-icon" hidden="[[!alternateIcon]]" icon="[[alternateIcon]]" class="style-scope yt-mealbar-promo-renderer"></yt-icon>\n</template>\n<div id="main" style$="[[backgroundStyle]]" class="style-scope yt-mealbar-promo-renderer">\n  <div class="yt-mealbar-promo-renderer-content style-scope yt-mealbar-promo-renderer">\n    <div class="style-scope yt-mealbar-promo-renderer">\n      <template is="dom-if" if="[[logo]]" class="style-scope yt-mealbar-promo-renderer">\n        <div class$="[[getLogoContainerClassName(data)]] style-scope yt-mealbar-promo-renderer">\n          <yt-img-shadow dimension="HEIGHT" height="20" hidden="[[!logo]]" id$="[[getLogoImageId(data)]]" notify-on-loaded="" object-fit="CONTAIN" thumbnail="[[logo]]" class="style-scope yt-mealbar-promo-renderer">\n          </yt-img-shadow>\n        </div>\n      </template>\n      <h2 class="yt-mealbar-promo-renderer-message-title style-scope yt-mealbar-promo-renderer">\n        <yt-formatted-string text="[[data.messageTitle]]" class="style-scope yt-mealbar-promo-renderer"></yt-formatted-string>\n      </h2>\n      <template is="dom-repeat" items="[[data.messageTexts]]" class="style-scope yt-mealbar-promo-renderer">\n        <div id="message-text" class="yt-mealbar-promo-renderer-message-text style-scope yt-mealbar-promo-renderer">\n          <yt-formatted-string text="[[item]]" class="style-scope yt-mealbar-promo-renderer"></yt-formatted-string>\n        </div>\n      </template>\n      <template is="dom-if" if="[[data.supplementalText]]" class="style-scope yt-mealbar-promo-renderer">\n        <yt-formatted-string class="yt-mealbar-promo-renderer-supplemental-text style-scope yt-mealbar-promo-renderer" text="[[data.supplementalText]]"></yt-formatted-string>\n      </template>\n    </div>\n    <template is="dom-if" if="[[shouldShowModernIcon]]" class="style-scope yt-mealbar-promo-renderer">\n      <yt-img-shadow class="yt-mealbar-promo-renderer-modern-icon style-scope yt-mealbar-promo-renderer" hidden="[[!icon]]" notify-on-loaded="" thumbnail="[[icon]]">\n      </yt-img-shadow>\n    </template>\n  </div>\n  <div class="button-container style-scope yt-mealbar-promo-renderer">\n    <template is="dom-if" if="[[data.dismissButton.buttonRenderer]]" class="style-scope yt-mealbar-promo-renderer">\n      <yt-button-renderer id="dismiss-button" data="[[data.dismissButton.buttonRenderer]]" on-click="onDismissTap" class="style-scope yt-mealbar-promo-renderer">\n      </yt-button-renderer>\n    </template>\n    <template is="dom-if" if="[[data.actionButton.buttonRenderer]]" class="style-scope yt-mealbar-promo-renderer">\n      <yt-button-renderer id="action-button" data="[[data.actionButton.buttonRenderer]]" on-click="onDismissTap" class="style-scope yt-mealbar-promo-renderer">\n      </yt-button-renderer>\n    </template>\n  </div>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;ri8===void 0&&(ri8=document.createElement("template"));var h=ri8;E.call(W,h.content.cloneNode(!0),F.content.firstChild);T4K=F}F=T4K;return F},{mode:2});var o8K;var GW8;var LE=function(){return _.n.apply(this,arguments)||this};
_.k(LE,_.n);_.N=LE.prototype;_.N.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{"on-tap":"[[boundOnTap_]]",overrides:"[[buttonOverride]]"}}}},"data.acceptButton":{id:"accept-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{"on-tap":"[[boundOnTap_]]",overrides:"[[buttonOverride]]"}}}}}};
_.N.computeHasButtons_=function(F){return!(!F.dismissButton&&!F.acceptButton)};
_.N.computeStyle_=function(F){return F||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.N.observeImpressionEndpoints_=function(){var F=this;this.data&&this.data.promoConfig&&this.data.promoConfig.impressionEndpoints&&this.data.promoConfig.impressionEndpoints.forEach(function(W){W.clickTrackingParams&&delete W.clickTrackingParams;_.UT(F.hostElement,[W])})};
_.N.onTap_=function(){_.dW(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])};
LE.prototype.observeImpressionEndpoints_=LE.prototype.observeImpressionEndpoints_;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],LE.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.B$.YtEventForwardingBehavior),_.Y("design:type",Object)],LE.prototype,"ytEventForwardingBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],LE.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],LE.prototype,"data",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],LE.prototype,"positionType",void 0);_.T([_.O({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.Y("design:type",Boolean)],LE.prototype,"hasButtons_",void 0);_.T([_.O({value:function(){return this.onTap_.bind(this)}}),
_.Y("design:type",Function)],LE.prototype,"boundOnTap_",void 0);_.T([_.O({value:{style:"mono-inverse"}}),_.Y("design:type",Object)],LE.prototype,"buttonOverride",void 0);_.T([_.ea("data.promoConfig.impressionEndpoints"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],LE.prototype,"observeImpressionEndpoints_",null);LE=_.T([_.$3({is:"yt-tooltip-renderer",disableElementRegistration:!0})],LE);
_.r(LE,"yt-tooltip-renderer",function(){if(GW8===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-tooltip-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.promos.yt_tooltip_renderer.yt.tooltip.renderer.css.js--\x3e<div id="content" class="style-scope yt-tooltip-renderer">\n  <yt-formatted-string id="text" hidden$="[[!data.text]]" text="[[data.text]]" class="style-scope yt-tooltip-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string id="details-text" hidden$="[[!data.detailsText]]" text="[[data.detailsText]]" class="style-scope yt-tooltip-renderer">\n  </yt-formatted-string>\n</div>\n<div class="buttons style-scope yt-tooltip-renderer" hidden="[[!hasButtons_]]">\n  <div id="dismiss-button" hidden$="[[!data.dismissButton]]" class="style-scope yt-tooltip-renderer"></div>\n  <div id="accept-button" hidden$="[[!data.acceptButton]]" class="style-scope yt-tooltip-renderer"></div>\n</div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);var W=F.content,E=W.insertBefore;o8K===void 0&&(o8K=document.createElement("template"));var h=o8K;E.call(W,h.content.cloneNode(!0),F.content.firstChild);GW8=F}F=GW8;return F},{mode:2});var YbK;var wuK;var urx={},Sbu=(urx.WEB_REMIX="music.youtube.com",urx),qV=function(){var F=_.n.apply(this,arguments)||this;F.actionMap={"yt-signal-action-copy-share-embed-url":"handleSignalActionCopyShareEmbedUrl_","yt-share-panel-set-timestamp-action":"handleSetTimestamp_"};return F};
_.k(qV,_.n);_.N=qV.prototype;_.N.configureRendererStamper=function(){return{"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:"yt-button-renderer"}},"data.startAt":{id:"start-at",mapping:{startAtRenderer:"yt-start-at-renderer"}}}};
_.N.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.N.created=function(){this.embedHost_=Sbu[_.b0("INNERTUBE_CLIENT_NAME")]||"www.youtube.com"};
_.N.ready=function(){_.Z(this.hostElement).querySelector("#embed-code").addEventListener("tap",this.onEmbedCode_.bind(this))};
_.N.computeEmbedCode_=function(F,W,E,h,d){if(!F)return"";var V=F.videoId,R=F.fullListId,M=[];F.attributionId&&M.push("si="+F.attributionId);h||M.push("controls=0");E&&Number(W)>0&&M.push("start="+W);R&&(V="videoseries",M.push("list="+R));E="https://"+(d?"www.youtube-nocookie.com":this.embedHost_)+"/embed/"+V;F.clipId&&(M.push("clip="+F.clipId),M.push("clipt="+F.clipTiming));W=M.length>0?E+"?"+M.join("&amp;"):E;F.encryptedEmbedConfig&&M.push("embed_config="+JSON.stringify({enc:F.encryptedEmbedConfig}));
M=M.length>0?E+"?"+M.join("&amp;"):E;_.c("web_sharing_embed_preview_killswitch")?_.Z(this.videoPreviewContainer).innerHTML=this.getEmbedCode_(M,F.previewWidth||854,F.previewHeight||480):(_.On(this.videoPreviewContainer),_.Z(this.videoPreviewContainer).appendChild(this.buildIframeElement(M)));return this.getEmbedCode_(W,F.width||560,F.height||315)};
_.N.buildIframeElement=function(F){var W=document.createElement("iframe"),E,h;W.width=""+((h=(E=this.data)==null?void 0:E.previewWidth)!=null?h:854);var d,V;W.height=""+((V=(d=this.data)==null?void 0:d.previewHeight)!=null?V:480);_.cWo(W,2,F);W.title="YouTube video player";W.frameBorder="0";W.allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share";W.referrerPolicy="strict-origin-when-cross-origin";W.allowFullscreen=!0;return W};
_.N.computeIsSquareAspectRatio_=function(F){return F.previewHeight&&F.previewWidth?F.previewHeight==F.previewWidth:!1};
_.N.computeShowEmbedOptions_=function(F){return!!F.enablePrivacyModeOptionLabel||!!F.showPlayerControlsOptionLabel};
_.N.getEmbedCode_=function(F,W,E){return'<iframe width="'+W+'" height="'+E+'" src="'+F+'" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>'};
_.N.handleSignalActionCopyShareEmbedUrl_=function(){_.Z(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();document.execCommand("copy");this.trackEmbedCopyUrl_()};
_.N.handleSetTimestamp_=function(F){this.startAtTimeStamp_=(this.startAtChecked_=F.isSet)?F.timestamp:0};
_.N.closePanel_=function(){_.dW(this.hostElement,"yt-close-popup-action",["yt-sharing-embed-renderer"])};
_.N.onEmbedCode_=function(){_.Z(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();this.trackEmbedCopyUrl_()};
_.N.onYtPopupClosed_=function(){_.On(_.Z(this.hostElement).querySelector("#video-preview"))};
_.N.trackEmbedCopyUrl_=function(){this&&this.data&&this.data.actionButtons&&this.data.actionButtons.length>0&&_.D(this.data.actionButtons[0],_.jt)&&this.ytRendererBehavior.logExplicitClick(_.D(this.data.actionButtons[0],_.jt))};
qV.prototype.onYtPopupClosed_=qV.prototype.onYtPopupClosed_;_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],qV.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],qV.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],qV.prototype,"ytActionHandlerBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],qV.prototype,"data",void 0);
_.T([_.O({computed:"computeEmbedCode_(data, startAtTimeStamp_, startAtChecked_, isPlayerControlsOptionChecked_, isPrivacyModeOptionChecked_)"}),_.Y("design:type",String)],qV.prototype,"embedCode_",void 0);_.T([_.O({value:!0}),_.Y("design:type",Boolean)],qV.prototype,"isPlayerControlsOptionChecked_",void 0);_.T([_.O({value:!1}),_.Y("design:type",Boolean)],qV.prototype,"isPrivacyModeOptionChecked_",void 0);_.T([_.O({value:!1,notify:!0}),_.Y("design:type",Boolean)],qV.prototype,"startAtChecked_",void 0);
_.T([_.O({value:0}),_.Y("design:type",Number)],qV.prototype,"startAtTimeStamp_",void 0);_.T([_.O({computed:"computeIsSquareAspectRatio_(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],qV.prototype,"isSquareAspectRatio_",void 0);_.T([_.gQ("#video-preview"),_.Y("design:type",HTMLElement)],qV.prototype,"videoPreviewContainer",void 0);_.T([_.R4("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],qV.prototype,"onYtPopupClosed_",null);
qV=_.T([_.$3({is:"yt-sharing-embed-renderer",disableElementRegistration:!0})],qV);
_.r(qV,"yt-sharing-embed-renderer",function(){if(wuK===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-sharing-embed-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_sharing_embed_renderer.yt.sharing.embed.renderer.css.js--\x3e<div id="video-preview" class="style-scope yt-sharing-embed-renderer"></div>\n<div id="embed-panel" class="style-scope yt-sharing-embed-renderer">\n  <div id="title-bar" class="style-scope yt-sharing-embed-renderer">\n    <div id="embed-label" class="style-scope yt-sharing-embed-renderer">\n      <yt-formatted-string text="[[data.title]]" class="style-scope yt-sharing-embed-renderer"></yt-formatted-string>\n    </div>\n    <yt-icon id="close-panel-icon" icon="yt-icons:close" on-tap="closePanel_" class="style-scope yt-sharing-embed-renderer"></yt-icon>\n  </div>\n  <tp-yt-paper-dialog-scrollable id="content" class="style-scope yt-sharing-embed-renderer">\n    <div id="basic" class="style-scope yt-sharing-embed-renderer">\n      <tp-yt-paper-textarea id="embed-code" no-label-float="" use-v2-underline="" value="{{embedCode_}}" class="style-scope yt-sharing-embed-renderer"></tp-yt-paper-textarea>\n      <div id="start-at" class="style-scope yt-sharing-embed-renderer"></div>\n    </div>\n    <template is="dom-if" if="[[computeShowEmbedOptions_(data)]]" class="style-scope yt-sharing-embed-renderer">\n      <div id="embed-options" class="style-scope yt-sharing-embed-renderer">\n        <yt-formatted-string id="embed-options-label" text="[[data.embedOptionsLabel]]" class="style-scope yt-sharing-embed-renderer">\n        </yt-formatted-string>\n        <div id="layout-size" class="style-scope yt-sharing-embed-renderer">\n          \n        </div>\n        <tp-yt-paper-checkbox id="player-controls-option" checked="{{isPlayerControlsOptionChecked_}}" class="style-scope yt-sharing-embed-renderer">\n          <yt-formatted-string text="[[data.showPlayerControlsOptionLabel]]" class="style-scope yt-sharing-embed-renderer">\n          </yt-formatted-string>\n        </tp-yt-paper-checkbox>\n        <span id="privacy-mode-wrapper" class="style-scope yt-sharing-embed-renderer">\n          <tp-yt-paper-checkbox id="privacy-mode-option" checked="{{isPrivacyModeOptionChecked_}}" class="style-scope yt-sharing-embed-renderer">\n            <yt-formatted-string text="[[data.enablePrivacyModeOptionLabel]]" class="style-scope yt-sharing-embed-renderer">\n            </yt-formatted-string>\n          </tp-yt-paper-checkbox>\n          <yt-icon id="privacy-mode-info" icon="yt-icons:info-outline" class="style-scope yt-sharing-embed-renderer"></yt-icon>\n          <tp-yt-paper-tooltip id="privacy-tooltip" for="privacy-mode-info" position="top" class="style-scope yt-sharing-embed-renderer">\n            [[data.enablePrivacyModeOptionLabel.accessibility.accessibilityData.label]]\n          </tp-yt-paper-tooltip>\n        </span>\n      </div>\n    </template>\n    <div id="additional-info" class="style-scope yt-sharing-embed-renderer">\n      <div id="additional-links" class="style-scope yt-sharing-embed-renderer">\n        <yt-formatted-string class="link style-scope yt-sharing-embed-renderer" link-inherit-color="" text="[[data.apiReferenceLinkLabel]]">\n        </yt-formatted-string>\n        <yt-formatted-string class="link style-scope yt-sharing-embed-renderer" link-inherit-color="" text="[[data.developerSampleLinkLabel]]"></yt-formatted-string>\n      </div>\n      <yt-formatted-string id="legal-info" text="[[data.legalInfo]]" class="style-scope yt-sharing-embed-renderer"></yt-formatted-string>\n    </div>\n  </tp-yt-paper-dialog-scrollable>\n  <div id="action-buttons" class="style-scope yt-sharing-embed-renderer"></div>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;YbK===void 0&&(YbK=document.createElement("template"));var h=YbK;E.call(W,h.content.cloneNode(!0),F.content.firstChild);wuK=F}F=wuK;return F},{mode:2});var pux={};
pux.YtUnlimitedFamilyInterstitialBehavior=[_.R9.YtOpenPopupBehavior,_.FM.YtActionHandlerBehavior,{actionMap:{"yt-signal-action-show-previous-family-dialog":"handleSignalActionShowPreviousFamilyDialog_","yt-open-popup-action":"handleOpenPopupAction_","yt-unlimited-create-family-endpoint":"handleUnlimitedCreateFamilyEndpoint_"},listeners:{"yt-popup-closed":"onPopupClosed_"},created:function(){window.familyDialogHistory||(window.familyDialogHistory=[]);this.dialogHistory_=window.familyDialogHistory;this.showingPreviousDialog_=
!1},
maybeCloseDialogOnFooterButtonTap:function(F){F=_.R6_(_.oo(F),"yt-button-renderer");return F?F.hasAttribute("footer-button")?(this.hostElement.parentElement.close(),!0):!1:!1},
pushToHistory:function(F){this.dialogHistory_.push(F)},
popFromHistory:function(){return this.dialogHistory_.pop()},
handleSignalActionShowPreviousFamilyDialog_:function(){var F=this.popFromHistory();if(F){var W={openPopupAction:{popupType:"DIALOG",popup:{}}};W.openPopupAction.popup[F.renderer]=F.data;this.showingPreviousDialog_=!0;this.openPopup(W)}},
handleOpenPopupAction_:function(F){if(this.showingPreviousDialog_)this.showingPreviousDialog_=!1;else{var W=["unlimitedFamilyMessageInterstitialRenderer","unlimitedFamilyProfileInterstitialRenderer"].some(function(h){return!!F.openPopupAction.popup[h]}),E=this.getElementName_();
W&&this.data&&(this.pushToHistory({renderer:E,data:this.data}),this.hostElement.parentElement.close())}},
handleUnlimitedCreateFamilyEndpoint_:function(F){if(F=_.D(F,qa$))this.loading=!0,_.dW(this.hostElement,"yt-open-create-family-dialog",[F,this.unicornReadyCallback_.bind(this)])},
getElementName_:function(){var F=this.hostElement.nodeName.split("-").slice(1).map(function(W){return""+W[0].toUpperCase()+W.slice(1).toLowerCase()}).join("");
return F[0].toLowerCase()+F.slice(1)},
unicornReadyCallback_:function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1}}];var m5x;var KlP;var $L=function(){return _.n.apply(this,arguments)||this};
_.k($L,_.n);_.N=$L.prototype;_.N.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"footer-button":!0}}}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0,"footer-button":!0}}}}}};
_.N.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.dW(this.hostElement,"yt-register-create-family-dialog");_.Z(this.hostElement).querySelector("#thumbnail").onShow()};
_.N.fireOnCloseCommand_=function(){var F;((F=this.data)==null?0:F.onCloseCommand)&&_.Rj(this.hostElement,[this.data.onCloseCommand],this.hostElement)};
_.N.onYtServiceRequestSent_=function(F,W){W&&W.endpoint&&_.D(W.endpoint,_.Q7)||(this.loading=!0)};
_.N.onYtServiceRequestCompleted_=function(){var F=this.hostElement.parentElement;F.close&&F.close();this.loading=!1};
_.N.openPopupHandler_=function(F){if(F.detail==this){var W;((W=this.data)==null?0:W.onOpenCommands)&&_.Rj(this.hostElement,this.data.onOpenCommands,this.hostElement)}};
_.N.closePopupHandler_=function(F,W){this.fireOnCloseCommand_();if(W&&W.canceled===!0||W&&W.canceled===!1&&W.confirmed===!1){var E;((E=this.data)==null?0:E.onDismissCommands)&&_.Rj(this.hostElement,this.data.onDismissCommands,this.hostElement)}};
_.N.dataChanged_=function(){this.loading=!1};
$L.prototype.dataChanged_=$L.prototype.dataChanged_;$L.prototype.closePopupHandler_=$L.prototype.closePopupHandler_;$L.prototype.openPopupHandler_=$L.prototype.openPopupHandler_;$L.prototype.onYtServiceRequestCompleted_=$L.prototype.onYtServiceRequestCompleted_;$L.prototype.onYtServiceRequestSent_=$L.prototype.onYtServiceRequestSent_;_.T([_.J(_.B$.YtEventForwardingBehavior),_.Y("design:type",Object)],$L.prototype,"ytEventForwardingBehavior",void 0);
_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],$L.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(pux.YtUnlimitedFamilyInterstitialBehavior),_.Y("design:type",Object)],$L.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],$L.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],$L.prototype,"data",void 0);
_.T([_.O({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],$L.prototype,"loading",void 0);_.T([_.R4("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.nQ]),_.Y("design:returntype")],$L.prototype,"onYtServiceRequestSent_",null);_.T([_.R4("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.uz]),_.Y("design:returntype")],$L.prototype,"onYtServiceRequestCompleted_",null);
_.T([_.R4("yt-popup-opened"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],$L.prototype,"openPopupHandler_",null);_.T([_.R4("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],$L.prototype,"closePopupHandler_",null);_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],$L.prototype,"dataChanged_",null);
$L=_.T([_.$3({is:"yt-unlimited-family-message-interstitial-renderer",disableElementRegistration:!0})],$L);
_.r($L,"yt-unlimited-family-message-interstitial-renderer",function(){if(KlP===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-unlimited-family-message-interstitial-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_unlimited_family_message_interstitial_renderer.yt.unlimited.family.message.interstitial.renderer.css.js--\x3e<tp-yt-paper-spinner active="[[loading]]" class="style-scope yt-unlimited-family-message-interstitial-renderer"></tp-yt-paper-spinner>\n<div class="content-container style-scope yt-unlimited-family-message-interstitial-renderer" hidden="[[loading]]">\n  <div class="main-content style-scope yt-unlimited-family-message-interstitial-renderer">\n    <h2 class="style-scope yt-unlimited-family-message-interstitial-renderer">[[getSimpleString(data.title)]]</h2>\n    <yt-formatted-string class="content style-scope yt-unlimited-family-message-interstitial-renderer" text="[[data.content]]"></yt-formatted-string>\n  </div>\n  <yt-img-shadow id="thumbnail" thumbnail="[[data.thumbnail]]" width="252" class="style-scope yt-unlimited-family-message-interstitial-renderer"></yt-img-shadow>\n</div>\n<div class="footer-container style-scope yt-unlimited-family-message-interstitial-renderer" hidden="[[loading]]">\n  <yt-formatted-string class="footer style-scope yt-unlimited-family-message-interstitial-renderer" text="[[data.footer]]"></yt-formatted-string>\n  <div class="buttons style-scope yt-unlimited-family-message-interstitial-renderer">\n    <div id="dismiss-button" class="footer-button style-scope yt-unlimited-family-message-interstitial-renderer"></div>\n    <div id="action-button" class="footer-button style-scope yt-unlimited-family-message-interstitial-renderer"></div>\n  </div>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;m5x===void 0&&(m5x=document.createElement("template"));var h=m5x;E.call(W,h.content.cloneNode(!0),F.content.firstChild);KlP=F}F=KlP;return F},{mode:2});var FnT;var Wnq;var ZX=function(){return _.n.apply(this,arguments)||this};
_.k(ZX,_.n);ZX.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"footer-button":!0},properties:{"on-tap":"[[boundButtonTap_]]"}}}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0,"footer-button":!0}}}},"data.manageButton":{id:"manage-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
ZX.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.Z(this.hostElement).querySelectorAll(".secondary-thumbnail").forEach(function(F){F.onShow()});
_.Z(this.hostElement).querySelector("#main-thumbnail").onShow()};
ZX.prototype.onButtonTap_=function(F){this.ytUnlimitedFamilyInterstitialBehavior.maybeCloseDialogOnFooterButtonTap(F)};
ZX.prototype.computeMainThumbnailWidth_=function(F){return F&&F.length!==0?72:96};
_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],ZX.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],ZX.prototype,"ytRendererBehavior",void 0);_.T([_.J(pux.YtUnlimitedFamilyInterstitialBehavior),_.Y("design:type",Object)],ZX.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],ZX.prototype,"data",void 0);
_.T([_.O({computed:"computeMainThumbnailWidth_(data.secondaryThumbnails)"}),_.Y("design:type",Number)],ZX.prototype,"mainThumbnailWidth_",void 0);_.T([_.O({value:function(){return this.onButtonTap_.bind(this)}}),
_.Y("design:type",Function)],ZX.prototype,"boundButtonTap_",void 0);ZX=_.T([_.$3({is:"yt-unlimited-family-profile-interstitial-renderer",disableElementRegistration:!0})],ZX);
_.r(ZX,"yt-unlimited-family-profile-interstitial-renderer",function(){if(Wnq===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-unlimited-family-profile-interstitial-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_unlimited_family_profile_interstitial_renderer.yt.unlimited.family.profile.interstitial.renderer.css.js--\x3e<div class="content-container style-scope yt-unlimited-family-profile-interstitial-renderer"><div class="left-side style-scope yt-unlimited-family-profile-interstitial-renderer"><h2 class="style-scope yt-unlimited-family-profile-interstitial-renderer">[[getSimpleString(data.additionalInfoHeader)]]</h2><yt-formatted-string class="additional-info style-scope yt-unlimited-family-profile-interstitial-renderer" text="[[data.additionalInfo]]"></yt-formatted-string></div><div class="right-side style-scope yt-unlimited-family-profile-interstitial-renderer"><yt-img-shadow id="main-thumbnail" thumbnail="[[data.mainThumbnail]]" width="[[mainThumbnailWidth_]]" class="style-scope yt-unlimited-family-profile-interstitial-renderer"></yt-img-shadow><div class="secondary-thumbnails style-scope yt-unlimited-family-profile-interstitial-renderer"><template is="dom-repeat" items="[[data.secondaryThumbnails]]" class="style-scope yt-unlimited-family-profile-interstitial-renderer"><yt-img-shadow class="secondary-thumbnail style-scope yt-unlimited-family-profile-interstitial-renderer" thumbnail="[[item]]" width="36"></yt-img-shadow></template></div><span class="member-info style-scope yt-unlimited-family-profile-interstitial-renderer">[[getSimpleString(data.memberInfo)]]</span><span class="member-title style-scope yt-unlimited-family-profile-interstitial-renderer">[[getSimpleString(data.memberTitle)]]</span><div id="manage-button" class="style-scope yt-unlimited-family-profile-interstitial-renderer"></div></div></div><div class="buttons style-scope yt-unlimited-family-profile-interstitial-renderer"><div id="dismiss-button" class="style-scope yt-unlimited-family-profile-interstitial-renderer"></div><div id="action-button" class="style-scope yt-unlimited-family-profile-interstitial-renderer"></div></div>');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;FnT===void 0&&(FnT=document.createElement("template"));var h=FnT;E.call(W,h.content.cloneNode(!0),F.content.firstChild);Wnq=F}F=Wnq;return F},{mode:2});var ESx;var hfO;var X1=function(){var F=_.n.apply(this,arguments)||this;F.sliderAriaValueText_=null;F.selectedIndex_=0;F.messages={PAUSE_SLIDER:_.CY("PAUSE_SLIDER",void 0,"Pause Duration")};return F};
_.k(X1,_.n);_.N=X1.prototype;_.N.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{"on-tap":"[[onButtonTap_]]"}}}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0},properties:{"on-tap":"[[onSecondaryTap_]]"}}}}}};
_.N.onPopupOpened_=function(F){F.detail==this&&_.c("enable_premium_voluntary_pause")&&(_.dW(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]),this.handleOnOpenCommands_())};
_.N.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.N.setDialogData=function(F){this.data=F;this.resetSlider_()};
_.N.dataChanged_=function(){this.data&&this.resetSlider_()};
_.N.onSubmitTap_=function(){if(this.data.confirmCommand){var F=this.data.confirmCommand;_.D(F,_.y5T)&&_.UT(this.hostElement,[F,{resume_time_ms:parseInt(this.selectedData_.resumeTimeMs,10)}])}};
_.N.onExitButtonTap_=function(){_.dW(this.hostElement,"yt-close-popup-action",["yt-unplugged-pause-membership-dialog-renderer"])};
_.N.closePopupHandler_=function(F,W){(W&&W.canceled===!0||W.canceled===!1&&W.confirmed===!1)&&this.handleOnDismissCommands_()};
_.N.onSliderChange_=function(){this.selectedIndex_=_.Z(this.hostElement).querySelector("#id-pause-slider").immediateValue;this.updateUiState_()};
_.N.updateUiState_=function(){this.data&&(this.selectedData_=this.data.endOptions[this.selectedIndex_],this.setSliderAriaValueText_())};
_.N.setSliderAriaValueText_=function(){this.selectedData_&&(this.sliderAriaValueText_=this.selectedData_.accessibilityData.label)};
_.N.resetSlider_=function(){if(this.data){var F=this.data.defaultEndOptionIndex||0,W=_.Z(this.hostElement).querySelector("#id-pause-slider");if(W.immediateValue<F)for(;W.immediateValue!=F;)W.increment();else if(F<W.immediateValue)for(;W.immediateValue!=F;)W.decrement();this.selectedIndex_=F;this.selectIndexMax_=this.data.endOptions.length-1;this.updateUiState_()}};
_.N.handleOnOpenCommands_=function(){this.data&&this.data.onOpenCommands&&this.data.onOpenCommands&&_.Rj(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.N.handleOnDismissCommands_=function(){this.data&&this.data.onDismissCommands&&this.data.onDismissCommands&&_.Rj(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.N.onYtServiceRequestSent=function(){this.loading=!0};
_.N.onYtServiceRequestCompleted=function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1};
X1.prototype.onYtServiceRequestCompleted=X1.prototype.onYtServiceRequestCompleted;X1.prototype.onYtServiceRequestSent=X1.prototype.onYtServiceRequestSent;X1.prototype.closePopupHandler_=X1.prototype.closePopupHandler_;X1.prototype.dataChanged_=X1.prototype.dataChanged_;X1.prototype.onPopupOpened_=X1.prototype.onPopupOpened_;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],X1.prototype,"ytRendererBehavior",void 0);
_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],X1.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],X1.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],X1.prototype,"loading",void 0);_.T([_.O(),_.Y("design:type",Number)],X1.prototype,"selectIndexMax_",void 0);_.T([_.O(),_.Y("design:type",Object)],X1.prototype,"selectedData_",void 0);
_.T([_.O(),_.Y("design:type",Object)],X1.prototype,"sliderAriaValueText_",void 0);_.T([_.O({value:function(){return this.onSubmitTap_.bind(this)}}),
_.Y("design:type",Function)],X1.prototype,"onButtonTap_",void 0);_.T([_.O({value:function(){return this.onExitButtonTap_.bind(this)}}),
_.Y("design:type",Function)],X1.prototype,"onSecondaryTap_",void 0);_.T([_.O(),_.Y("design:type",Object)],X1.prototype,"messages",void 0);_.T([_.R4("yt-popup-opened"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],X1.prototype,"onPopupOpened_",null);_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],X1.prototype,"dataChanged_",null);
_.T([_.R4("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],X1.prototype,"closePopupHandler_",null);_.T([_.R4("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.nQ]),_.Y("design:returntype")],X1.prototype,"onYtServiceRequestSent",null);
_.T([_.R4("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.uz]),_.Y("design:returntype")],X1.prototype,"onYtServiceRequestCompleted",null);X1=_.T([_.$3({is:"yt-unplugged-pause-membership-dialog-renderer",disableElementRegistration:!0})],X1);
_.r(X1,"yt-unplugged-pause-membership-dialog-renderer",function(){if(hfO===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-unplugged-pause-membership-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_unplugged_pause_membership_dialog_renderer.yt.unplugged.pause.membership.dialog.renderer.css.js--\x3e<tp-yt-paper-spinner-lite active="[[loading]]" class="style-scope yt-unplugged-pause-membership-dialog-renderer"></tp-yt-paper-spinner-lite><div class="dialog-title style-scope yt-unplugged-pause-membership-dialog-renderer" role="heading">[[getSimpleString(data.title)]]</div><div class="duration-title style-scope yt-unplugged-pause-membership-dialog-renderer">\n  [[getSimpleString(selectedData_.pausePeriodMessage)]]\n</div><div class="duration-subtitle style-scope yt-unplugged-pause-membership-dialog-renderer">\n  [[getSimpleString(selectedData_.pauseEndMessage)]]\n</div><tp-yt-paper-slider id="id-pause-slider" class="pause-slider style-scope yt-unplugged-pause-membership-dialog-renderer" aria-label$="[[messages.PAUSE_SLIDER]]" aria-valuetext$="[[sliderAriaValueText_]]" max="[[selectIndexMax_]]" min="0" step="1" on-immediate-value-change="onSliderChange_" on-value-change="onSliderChange_"></tp-yt-paper-slider><template is="dom-repeat" items="[[data.dialogMessages]]" class="style-scope yt-unplugged-pause-membership-dialog-renderer"><yt-formatted-string class="body-message style-scope yt-unplugged-pause-membership-dialog-renderer" split-lines="" text="[[item]]"></yt-formatted-string></template><div id="dialog-actions" class="style-scope yt-unplugged-pause-membership-dialog-renderer"><div id="secondary-button" class="style-scope yt-unplugged-pause-membership-dialog-renderer"></div><div id="primary-button" class="style-scope yt-unplugged-pause-membership-dialog-renderer"></div></div>');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;ESx===void 0&&(ESx=document.createElement("template"));var h=ESx;E.call(W,h.content.cloneNode(!0),F.content.firstChild);hfO=F}F=hfO;return F},{mode:2});var dxF;var NjN;var Hd=function(){return _.n.apply(this,arguments)||this};
_.k(Hd,_.n);Hd.prototype.configureRendererStamper=function(){return{"data.vcBalance":{id:"vc-balance",mapping:_.Pr("vcBalanceRenderer")}}};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Hd.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],Hd.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],Hd.prototype,"data",void 0);Hd=_.T([_.$3({is:"yt-vc-offer-layout-header-renderer",disableElementRegistration:!0})],Hd);
_.r(Hd,"yt-vc-offer-layout-header-renderer",function(){if(NjN===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-vc-offer-layout-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_vc_offer_layout_header_renderer.yt.vc.offer.layout.header.renderer.css.js--\x3e<div id="vc-balance" class="style-scope yt-vc-offer-layout-header-renderer"></div>\n<yt-formatted-string id="description" text="[[data.description]]" class="style-scope yt-vc-offer-layout-header-renderer">\n</yt-formatted-string>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;dxF===void 0&&(dxF=document.createElement("template"));var h=dxF;E.call(W,h.content.cloneNode(!0),F.content.firstChild);NjN=F}F=NjN;return F},{mode:2});var V4F;var Uxx;var RfO;var efP;var Pd=function(){return _.n.apply(this,arguments)||this};
_.k(Pd,_.n);Pd.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.Sn.Object.defineProperties(Pd.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.accessibilityText?this.data.accessibilityText:""}},
vcOfferStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style:"VC_OFFER_STYLE_STANDARD"}},
showTitleText:{configurable:!0,enumerable:!0,get:function(){return!(!this.data||this.data.style!=="VC_OFFER_STYLE_HERO"||!this.data.titleText)}}});
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Pd.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],Pd.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.it_.YtTappableItemBehavior),_.Y("design:type",Object)],Pd.prototype,"ytTappableItemBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],Pd.prototype,"data",void 0);
_.T([_.O({reflectToAttribute:!0}),_.a("data.accessibilityText"),_.Y("design:type",String),_.Y("design:paramtypes",[])],Pd.prototype,"ariaLabel",null);_.T([_.O({reflectToAttribute:!0}),_.a("data.style"),_.Y("design:type",String),_.Y("design:paramtypes",[])],Pd.prototype,"vcOfferStyle",null);_.T([_.a("data.style","data.titleText"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Pd.prototype,"showTitleText",null);Pd=_.T([_.$3({is:"yt-vc-offer-renderer",disableElementRegistration:!0})],Pd);
_.r(Pd,"yt-vc-offer-renderer",function(){if(efP===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-vc-offer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_vc_offer_renderer.yt.vc.offer.renderer.css.js--\x3e<yt-formatted-string id="title-text" hidden="[[!showTitleText]]" text="[[data.titleText]]" class="style-scope yt-vc-offer-renderer">\n</yt-formatted-string>\n<div id="standard-offer-container" class="style-scope yt-vc-offer-renderer">\n  <div id="standard-offer-content" class="style-scope yt-vc-offer-renderer">\n    <yt-formatted-string id="offer-info" text="[[data.offerInfo]]" class="style-scope yt-vc-offer-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string id="description-text" hidden="[[!data.descriptionText]]" text="[[data.descriptionText]]" class="style-scope yt-vc-offer-renderer">\n    </yt-formatted-string>\n    <div id="vc-icon" class="style-scope yt-vc-offer-renderer"></div>\n    <yt-formatted-string id="price" text="[[data.price]]" class="style-scope yt-vc-offer-renderer">\n    </yt-formatted-string>\n  </div>\n</div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);var W=F.content,E=W.insertBefore;RfO===void 0&&(RfO=document.createElement("template"));var h=RfO;E.call(W,h.content.cloneNode(!0),F.content.firstChild);efP=F}F=efP;return F},{mode:2});var J0=function(){return _.n.apply(this,arguments)||this};
_.k(J0,_.n);J0.prototype.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{vcOfferLayoutHeaderRenderer:{component:"yt-vc-offer-layout-header-renderer"}}},"data.offers":{id:"offers",mapping:{vcOfferRenderer:{component:"yt-vc-offer-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],J0.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],J0.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],J0.prototype,"data",void 0);J0=_.T([_.$3({is:"yt-vc-offer-layout-renderer",disableElementRegistration:!0})],J0);
_.r(J0,"yt-vc-offer-layout-renderer",function(){if(Uxx===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-vc-offer-layout-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_vc_offer_layout_renderer.yt.vc.offer.layout.renderer.css.js--\x3e<div id="vc-offer-layout-container" class="style-scope yt-vc-offer-layout-renderer">\n  <div id="header" class="style-scope yt-vc-offer-layout-renderer"></div>\n  <div id="offers-container" class="style-scope yt-vc-offer-layout-renderer">\n    <div id="offers" class="style-scope yt-vc-offer-layout-renderer"></div>\n  </div>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;V4F===void 0&&(V4F=document.createElement("template"));var h=V4F;E.call(W,h.content.cloneNode(!0),F.content.firstChild);Uxx=F}F=Uxx;return F},{mode:2});var M4g;var gSq;var QR6;var zfP;var a5=function(){return _.n.apply(this,arguments)||this};
_.k(a5,_.n);a5.prototype.configureRendererStamper=function(){return{"data.dismiss":{id:"dismiss",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0},params:{noink:!0}}}},"data.helpLink":{id:"help-link",mapping:{buttonRenderer:{component:"yt-button-renderer",params:{noink:!0}}}}}};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],a5.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],a5.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],a5.prototype,"data",void 0);a5=_.T([_.$3({is:"yt-ypc-offers-modal-top-bar-renderer",disableElementRegistration:!0})],a5);
_.r(a5,"yt-ypc-offers-modal-top-bar-renderer",function(){if(zfP===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-ypc-offers-modal-top-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_ypc_offers_modal_top_bar_renderer.yt.ypc.offers.modal.top.bar.renderer.css.js--\x3e<div id="dismiss" class="style-scope yt-ypc-offers-modal-top-bar-renderer"></div>\n<yt-formatted-string id="title" text="[[data.title]]" class="style-scope yt-ypc-offers-modal-top-bar-renderer"></yt-formatted-string>\n<div id="help-link" class="style-scope yt-ypc-offers-modal-top-bar-renderer"></div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;QR6===void 0&&(QR6=document.createElement("template"));var h=QR6;E.call(W,h.content.cloneNode(!0),F.content.firstChild);zfP=F}F=zfP;return F},{mode:2});var fE=function(){return _.n.apply(this,arguments)||this};
_.k(fE,_.n);fE.prototype.configureRendererStamper=function(){return{"data.topBar":{id:"top-bar",mapping:{ypcOffersModalTopBarRenderer:{component:"yt-ypc-offers-modal-top-bar-renderer"}}},"data.content":{id:"content",mapping:{vcOfferLayoutRenderer:{component:"yt-vc-offer-layout-renderer"}}}}};
fE.prototype.ready=function(){this.hostElement.setAttribute("dialog","")};
fE.prototype.attached=function(){this.scrollable.dialogElement=this.hostElement.parentNode;var F=this.scrollable;F.attached&&typeof F.attached==="function"&&F.attached()};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],fE.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],fE.prototype,"ytRendererstamperBehavior",void 0);_.T([_.gQ("#scrollable"),_.Y("design:type",Object)],fE.prototype,"scrollable",void 0);_.T([_.O(),_.Y("design:type",Object)],fE.prototype,"data",void 0);fE=_.T([_.$3({is:"yt-ypc-offers-modal-renderer",disableElementRegistration:!0})],fE);
_.r(fE,"yt-ypc-offers-modal-renderer",function(){if(gSq===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-ypc-offers-modal-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_ypc_offers_modal_renderer.yt.ypc.offers.modal.renderer.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scrollable" class="style-scope yt-ypc-offers-modal-renderer">\n  <div id="top-bar" class="style-scope yt-ypc-offers-modal-renderer"></div>\n  <div id="content" class="style-scope yt-ypc-offers-modal-renderer"></div>\n</tp-yt-paper-dialog-scrollable>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);var W=F.content,E=W.insertBefore;M4g===void 0&&(M4g=document.createElement("template"));var h=M4g;E.call(W,h.content.cloneNode(!0),F.content.firstChild);gSq=F}F=gSq;return F},{mode:2});var t46;var Ctx;var OI=function(){return _.n.apply(this,arguments)||this};
_.k(OI,_.n);_.N=OI.prototype;_.N.configureRendererStamper=function(){return{"data.continueButton":{id:"continue-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{"on-tap":"[[bindOnContinueTapped_]]"}}}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.N.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.Z(this.hostElement).querySelector("#scrollable").dialogElement=this.hostElement.parentNode};
_.N.onYtServiceRequestCompleted_=function(){this.set("showSpinner",!1);_.dW(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"])};
_.N.onYtPopupOpened_=function(F,W){(W==null?void 0:W.is)==="yt-ypc-upgrade-dialog-renderer"&&this.data.onOpenCommands&&_.Rj(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.N.onYtPopupClosed_=function(F,W){this.continueButtonTapped||W&&(W.canceled===!0||W.canceled===!1&&W.confirmed===!1)&&this.data.onDismissCommands&&_.Rj(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.N.onYtServiceRequestError_=function(F){this.set("showSpinner",!1);_.R$(this.hostElement,F.detail.error.message)};
_.N.onContinueTapped_=function(){this.set("continueButtonTapped",!0);_.c("enable_ypc_spinners")?_.dW(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"]):this.set("showSpinner",!0)};
OI.prototype.onYtServiceRequestError_=OI.prototype.onYtServiceRequestError_;OI.prototype.onYtPopupClosed_=OI.prototype.onYtPopupClosed_;OI.prototype.onYtPopupOpened_=OI.prototype.onYtPopupOpened_;OI.prototype.onYtServiceRequestCompleted_=OI.prototype.onYtServiceRequestCompleted_;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],OI.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],OI.prototype,"ytRendererstamperBehavior",void 0);
_.T([_.O(),_.Y("design:type",Object)],OI.prototype,"data",void 0);_.T([_.O({value:!1}),_.Y("design:type",Boolean)],OI.prototype,"showSpinner",void 0);_.T([_.O({value:!1}),_.Y("design:type",Boolean)],OI.prototype,"continueButtonTapped",void 0);_.T([_.O({value:function(){return this.onContinueTapped_.bind(this)}}),
_.Y("design:type",Function)],OI.prototype,"bindOnContinueTapped_",void 0);_.T([_.R4("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],OI.prototype,"onYtServiceRequestCompleted_",null);_.T([_.R4("yt-popup-opened"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],OI.prototype,"onYtPopupOpened_",null);
_.T([_.R4("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],OI.prototype,"onYtPopupClosed_",null);_.T([_.R4("yt-service-request-error"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],OI.prototype,"onYtServiceRequestError_",null);OI=_.T([_.$3({is:"yt-ypc-upgrade-dialog-renderer",disableElementRegistration:!0})],OI);
_.r(OI,"yt-ypc-upgrade-dialog-renderer",function(){if(Ctx===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-ypc-upgrade-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_ypc_upgrade_dialog_renderer.yt.ypc.upgrade.dialog.renderer.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scrollable" class="style-scope yt-ypc-upgrade-dialog-renderer">\n  <div id="content" class="style-scope yt-ypc-upgrade-dialog-renderer">\n    <div id="header" class="style-scope yt-ypc-upgrade-dialog-renderer">\n      <div id="title" class="style-scope yt-ypc-upgrade-dialog-renderer">\n        <yt-formatted-string id="dialog-title" text="[[data.header.dialogTitle]]" class="style-scope yt-ypc-upgrade-dialog-renderer"></yt-formatted-string>\n        <yt-formatted-string id="offer-title" text="[[data.header.offerDisplayTitle]]" class="style-scope yt-ypc-upgrade-dialog-renderer"></yt-formatted-string>\n      </div>\n      <yt-formatted-string id="access-message" text="[[data.header.accessMessage]]" class="style-scope yt-ypc-upgrade-dialog-renderer"></yt-formatted-string>\n    </div>\n\n    <div id="billing-details-container" class="style-scope yt-ypc-upgrade-dialog-renderer">\n      <template is="dom-repeat" items="[[data.billingDetails]]" class="style-scope yt-ypc-upgrade-dialog-renderer">\n        <div class="billing-item style-scope yt-ypc-upgrade-dialog-renderer">\n          <div class="item-header style-scope yt-ypc-upgrade-dialog-renderer">\n            <yt-formatted-string text="[[item.title]]" class="style-scope yt-ypc-upgrade-dialog-renderer"></yt-formatted-string>\n            <yt-formatted-string text="[[item.subtitle]]" class="style-scope yt-ypc-upgrade-dialog-renderer"></yt-formatted-string>\n          </div>\n          <yt-formatted-string class="item-description style-scope yt-ypc-upgrade-dialog-renderer" text="[[item.description]]"></yt-formatted-string>\n        </div>\n      </template>\n    </div>\n    <template is="dom-if" if="[[data.legalText]]" class="style-scope yt-ypc-upgrade-dialog-renderer">\n      <div id="legal-text" class="style-scope yt-ypc-upgrade-dialog-renderer">\n        <yt-formatted-string text="[[data.legalText]]" class="style-scope yt-ypc-upgrade-dialog-renderer"></yt-formatted-string>\n      </div>\n    </template>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n<div id="footer" class="style-scope yt-ypc-upgrade-dialog-renderer">\n  <div id="continue-button" class="style-scope yt-ypc-upgrade-dialog-renderer"></div>\n  <div id="cancel-button" class="style-scope yt-ypc-upgrade-dialog-renderer"></div>\n</div>\n<div id="spinner-overlay" hidden$="[[!showSpinner]]" class="style-scope yt-ypc-upgrade-dialog-renderer">\n    <tp-yt-paper-spinner-lite id="spinner" active="" class="style-scope yt-ypc-upgrade-dialog-renderer"></tp-yt-paper-spinner-lite>\n</div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);var W=F.content,E=W.insertBefore;t46===void 0&&(t46=document.createElement("template"));var h=t46;E.call(W,h.content.cloneNode(!0),F.content.firstChild);Ctx=F}F=Ctx;return F},{mode:2});var Bj$;var vSN;var bW=function(){return _.n.apply(this,arguments)||this};
_.k(bW,_.n);bW.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.confirmButton":{id:"accept-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
bW.prototype.computeHasButtons_=function(F){return!(!F.dismissButton&&!F.confirmButton)};
bW.prototype.computeStyle_=function(F){return F||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],bW.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.B$.YtEventForwardingBehavior),_.Y("design:type",Object)],bW.prototype,"ytEventForwardingBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],bW.prototype,"ytRendererstamperBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],bW.prototype,"data",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],bW.prototype,"positionType",void 0);
_.T([_.O({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.Y("design:type",Boolean)],bW.prototype,"hasButtons_",void 0);_.T([_.O({computed:"computeStyle_(data.style)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],bW.prototype,"style_",void 0);bW=_.T([_.$3({is:"yt-bubble-hint-renderer",disableElementRegistration:!0})],bW);
_.r(bW,"yt-bubble-hint-renderer",function(){if(vSN===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-bubble-hint-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_bubble_hint_renderer.yt.bubble.hint.renderer.css.js--\x3e<div id="content" class="style-scope yt-bubble-hint-renderer">\n  <div id="text" hidden$="[[!data.text]]" class="style-scope yt-bubble-hint-renderer">\n    <yt-formatted-string text="[[data.text]]" class="style-scope yt-bubble-hint-renderer"></yt-formatted-string>\n  </div>\n  <div id="details-text" hidden$="[[!data.detailsText]]" class="style-scope yt-bubble-hint-renderer">\n    <yt-formatted-string text="[[data.detailsText]]" class="style-scope yt-bubble-hint-renderer"></yt-formatted-string>\n  </div>\n</div>\n<div class="buttons style-scope yt-bubble-hint-renderer" hidden="[[!hasButtons_]]">\n  <div id="dismiss-button" hidden$="[[!data.dismissButton]]" class="style-scope yt-bubble-hint-renderer"></div>\n  <div id="accept-button" hidden$="[[!data.confirmButton]]" class="style-scope yt-bubble-hint-renderer"></div>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;Bj$===void 0&&(Bj$=document.createElement("template"));var h=Bj$;E.call(W,h.content.cloneNode(!0),F.content.firstChild);vSN=F}F=vSN;return F},{mode:2});var IOq;var cIx;var lW=function(){var F=_.pX.apply(this,arguments)||this;F.actionMap={"yt-hide-user-checkbox-update":"handleCheckBoxUpdateAction_"};return F};
_.k(lW,_.pX);_.N=lW.prototype;_.N.configureRendererStamper=function(){return{"data.checkbox":{id:"checkbox-container",mapping:{booleanFormFieldV2Renderer:{component:"yt-boolean-form-field-v2-renderer",noInjection:!0}}}}};
_.N.attached=function(){var F=this;this.hasAttribute("dialog")||this.setAttribute("dialog","true");this.$.scroller.dialogElement=this.parentNode;window.requestAnimationFrame(function(){F.$.thumbnail.onShow();F.$["header-image"].onShow()})};
_.N.handleCheckBoxUpdateAction_=function(F){this.canShowCheckboxEnabledConfirmButton=F};
_.N.computeUseOverlayForSpinner_=function(F,W){return!!F&&W};
_.N.computeShowSpinner_=function(F,W){return F||!!W};
_.N.fireOnCloseActions_=function(){var F,W=_.U(((F=this.data)==null?void 0:F.onClosedActions)||[]);for(F=W.next();!F.done;F=W.next())this.ytRendererBehavior.resolveCommand(F.value)};
_.N.fireOnOpenCommands_=function(F){var W,E=(W=this.data)==null?void 0:W.onOpenCommands;if(E)for(F.stopImmediatePropagation(),F=_.U(E),W=F.next();!W.done;W=F.next())this.ytRendererBehavior.resolveCommand(W.value)};
_.N.fireOnDismissCommands_=function(F){var W,E=(W=this.data)==null?void 0:W.onDismissCommands;if(E)for(F.stopImmediatePropagation(),F=_.U(E),W=F.next();!W.done;W=F.next())this.ytRendererBehavior.resolveCommand(W.value)};
_.N.openPopupHandler_=function(F){F.detail==this&&this.fireOnOpenCommands_(F)};
_.N.closePopupHandler_=function(F,W){_.Nc(this,"yt-confirm-dialog-close-action",[W]);this.fireOnCloseActions_();(W&&W.canceled===!0||W&&W.canceled===!1&&W.confirmed===!1)&&this.fireOnDismissCommands_(F)};
_.N.onHeaderImageChanged_=function(){var F;((F=this.data)==null?0:F.headerImage)?this.setAttribute("dialog-with-header-image",""):this.removeAttribute("dialog-with-header-image")};
_.N.computeHasHeaderImageWidth_=function(F){return F!=void 0};
_.N.computeHasLoadingMessage=function(F){return!!F};
_.N.onHeaderImageWidthChanged_=function(){var F,W=(F=this.data)==null?void 0:F.headerImageWidth;if(W){if(F=1.25*W*2+W,this.$.main.style.width=F+"px",W=this.$.scroller.firstElementChild)W.style.minWidth=F+"px"}else this.$.main.style.width="100%"};
_.N.onThumbnailChanged_=function(){var F;((F=this.data)==null?0:F.thumbnail)?(this.setAttribute("dialog-with-thumbnail",""),this.$.scroller.scrollTarget.style.maxHeight="139px",this.$.thumbnail.onShow()):(this.removeAttribute("dialog-with-thumbnail"),this.$.scroller.scrollTarget.style.maxHeight="none")};
_.N.onYtNavigate_=function(F){F=_.oo(F);F instanceof Node&&_.Fm(this.$["confirm-button"]).contains(F)&&this.parentElement&&this.parentElement.close&&this.parentElement.close()};
_.N.computePrimaryIsCancel_=function(F){return F};
_.N.computeIsCancelButtonHidden_=function(F){return F.skipCancelButton||!F.cancelButton};
_.N.computeIsCheckboxHidden_=function(F){return!F.checkbox};
_.N.onThumbnailLoaded_=function(){this.parentElement&&this.parentElement.fit&&this.parentElement.fit()};
_.N.onYtServiceRequestSent_=function(){this.isActionInProgress_=!0};
_.N.onYtServiceRequestCompleted_=function(){var F;((F=this.data)==null?0:F.showLoadingSpinnerOnAction)&&this.parentElement&&this.parentElement.close&&this.parentElement.opened&&this.parentElement.close();this.isActionInProgress_=!1};
_.Sn.Object.defineProperties(lW,{template:{configurable:!0,enumerable:!0,get:function(){if(cIx===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-confirm-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_confirm_dialog_renderer.yt.confirm.dialog.renderer.css.js--\x3e<div id="spinner" hidden="[[!showSpinner_]]" class="style-scope yt-confirm-dialog-renderer">\n  <tp-yt-paper-spinner active="[[showSpinner_]]" class="style-scope yt-confirm-dialog-renderer"></tp-yt-paper-spinner>\n  <div id="loading-message" class="body-text style-scope yt-confirm-dialog-renderer" hidden="[[!data.loadingMessage]]">\n    <yt-formatted-string text="[[data.loadingMessage]]" class="style-scope yt-confirm-dialog-renderer"></yt-formatted-string>\n  </div>\n</div>\n<yt-img-shadow id="thumbnail" hidden="[[!data.thumbnail]]" notify-on-loaded="" thumbnail="[[data.thumbnail]]" width="256" class="style-scope yt-confirm-dialog-renderer">\n</yt-img-shadow>\n<div id="main" hidden="[[data.showLoadingSpinner]]" class="style-scope yt-confirm-dialog-renderer">\n  <yt-img-shadow id="header-image" hidden="[[!data.headerImage]]" notify-on-loaded="" thumbnail="[[data.headerImage]]" width="[[data.headerImageWidth]]" class="style-scope yt-confirm-dialog-renderer">\n  </yt-img-shadow>\n  <h2 class="heading style-scope yt-confirm-dialog-renderer">\n    <yt-formatted-string id="title" hidden$="[[!data.title]]" text="[[data.title]]" class="style-scope yt-confirm-dialog-renderer"></yt-formatted-string>\n  </h2>\n  <tp-yt-paper-dialog-scrollable id="scroller" class="body-text style-scope yt-confirm-dialog-renderer">\n    <template is="dom-repeat" items="[[data.dialogMessages]]" class="style-scope yt-confirm-dialog-renderer">\n      <yt-formatted-string class="line-text style-scope yt-confirm-dialog-renderer" respect-html-dir="" split-lines="" text="[[item]]">\n      </yt-formatted-string>\n    </template>\n  </tp-yt-paper-dialog-scrollable>\n  <div id="checkbox-container" hidden="[[isCheckboxHidden]]" class="style-scope yt-confirm-dialog-renderer"></div>\n  <div class="buttons style-scope yt-confirm-dialog-renderer">\n    <yt-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" dialog-dismiss="" hidden="[[isCancelButtonHidden]]" class="style-scope yt-confirm-dialog-renderer">\n    </yt-button-renderer>\n    <yt-button-renderer id="checkbox-enabled-confirm-button" data="[[data.checkboxEnabledConfirmButton.buttonRenderer]]" dialog-confirm="" hidden="[[!canShowCheckboxEnabledConfirmButton]]" class="style-scope yt-confirm-dialog-renderer">\n    </yt-button-renderer>\n    <yt-button-renderer id="confirm-button" data="[[data.confirmButton.buttonRenderer]]" dialog-confirm$="[[!data.showLoadingSpinnerOnAction]]" hidden="[[canShowCheckboxEnabledConfirmButton]]" class="style-scope yt-confirm-dialog-renderer">\n    </yt-button-renderer>\n  </div>\n</div>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);var W=F.content,E=W.insertBefore;IOq===void 0&&(IOq=document.createElement("template"));var h=IOq;E.call(W,h.content.cloneNode(!0),F.content.firstChild);cIx=F}F=cIx;return F}}});
lW.prototype.onYtServiceRequestCompleted_=lW.prototype.onYtServiceRequestCompleted_;lW.prototype.onYtServiceRequestSent_=lW.prototype.onYtServiceRequestSent_;lW.prototype.onThumbnailLoaded_=lW.prototype.onThumbnailLoaded_;lW.prototype.onYtNavigate_=lW.prototype.onYtNavigate_;lW.prototype.onThumbnailChanged_=lW.prototype.onThumbnailChanged_;lW.prototype.onHeaderImageWidthChanged_=lW.prototype.onHeaderImageWidthChanged_;lW.prototype.onHeaderImageChanged_=lW.prototype.onHeaderImageChanged_;
lW.prototype.closePopupHandler_=lW.prototype.closePopupHandler_;lW.prototype.openPopupHandler_=lW.prototype.openPopupHandler_;_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],lW.prototype,"ytActionHandlerBehavior",void 0);_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],lW.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],lW.prototype,"ytRendererBehavior",void 0);
_.T([_.J(_.B$.YtEventForwardingBehavior),_.Y("design:type",Object)],lW.prototype,"ytEventForwardingBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],lW.prototype,"data",void 0);_.T([_.O({computed:"computePrimaryIsCancel_(data.primaryIsCancel)",reflectToAttribute:!0,readOnly:!0}),_.Y("design:type",Boolean)],lW.prototype,"primaryIsCancel",void 0);_.T([_.O({computed:"computeIsCancelButtonHidden_(data)",readOnly:!0}),_.Y("design:type",Boolean)],lW.prototype,"isCancelButtonHidden",void 0);
_.T([_.O({computed:"computeIsCheckboxHidden_(data)",readOnly:!0}),_.Y("design:type",Boolean)],lW.prototype,"isCheckboxHidden",void 0);_.T([_.O({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],lW.prototype,"canShowCheckboxEnabledConfirmButton",void 0);_.T([_.O({value:!1,computed:"computeUseOverlayForSpinner_(data.showLoadingSpinnerOnAction, isActionInProgress_)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],lW.prototype,"useOverlayForSpinner_",void 0);
_.T([_.O({value:!1,computed:"computeShowSpinner_(useOverlayForSpinner_, data.showLoadingSpinner)"}),_.Y("design:type",Boolean)],lW.prototype,"showSpinner_",void 0);_.T([_.O({value:!1}),_.Y("design:type",Boolean)],lW.prototype,"isActionInProgress_",void 0);_.T([_.O({value:!1,reflectToAttribute:!0,computed:"computeHasHeaderImageWidth_(data.headerImageWidth)"}),_.Y("design:type",Boolean)],lW.prototype,"hasHeaderImageWidth_",void 0);
_.T([_.O({value:!1,reflectToAttribute:!0,computed:"computeHasLoadingMessage(data.loadingMessage)"}),_.Y("design:type",Boolean)],lW.prototype,"hasLoadingMessage",void 0);_.T([_.R4("yt-popup-opened"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],lW.prototype,"openPopupHandler_",null);_.T([_.R4("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],lW.prototype,"closePopupHandler_",null);
_.T([_.ea("data.headerImage"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],lW.prototype,"onHeaderImageChanged_",null);_.T([_.ea("data.headerImageWidth"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],lW.prototype,"onHeaderImageWidthChanged_",null);_.T([_.ea("data.thumbnail"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],lW.prototype,"onThumbnailChanged_",null);
_.T([_.R4("yt-navigate"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],lW.prototype,"onYtNavigate_",null);_.T([_.R4("yt-img-shadow-loaded"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],lW.prototype,"onThumbnailLoaded_",null);_.T([_.R4("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.nQ]),_.Y("design:returntype")],lW.prototype,"onYtServiceRequestSent_",null);
_.T([_.R4("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.uz]),_.Y("design:returntype")],lW.prototype,"onYtServiceRequestCompleted_",null);lW=_.T([_.$3({is:"yt-confirm-dialog-renderer",noInjection:!0})],lW);var Dxg;var xxx;var nE=function(){return _.n.apply(this,arguments)||this};
_.k(nE,_.n);nE.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.Z(this.hostElement).querySelector("#scroller").dialogElement=this.hostElement.parentNode};
nE.prototype.computeConfirmButton_=function(F){var W={text:F.confirmLabel,size:"SIZE_DEFAULT",style:"STYLE_BLUE_TEXT"};F.confirmNavigationEndpoint?W.navigationEndpoint=F.confirmNavigationEndpoint:F.confirmServiceEndpoint&&(W.serviceEndpoint=F.confirmServiceEndpoint);return W};
nE.prototype.computeShowTitle_=function(F){return!(F==null||!F.title)};
_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],nE.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],nE.prototype,"data",void 0);_.T([_.O({computed:"computeShowTitle_(data)"}),_.Y("design:type",Boolean)],nE.prototype,"showTitle",void 0);nE=_.T([_.$3({is:"yt-fancy-dismissible-dialog-renderer",disableElementRegistration:!0})],nE);
_.r(nE,"yt-fancy-dismissible-dialog-renderer",function(){if(xxx===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-fancy-dismissible-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_fancy_dismissible_dialog_renderer.yt.fancy.dismissible.dialog.renderer.css.js--\x3e<h2 hidden="[[!showTitle]]" id="title" class="style-scope yt-fancy-dismissible-dialog-renderer">[[getSimpleString(data.title)]]</h2>\n<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope yt-fancy-dismissible-dialog-renderer">\n  <yt-formatted-string id="message" split-lines="" text="[[data.dialogMessage]]" class="style-scope yt-fancy-dismissible-dialog-renderer">\n  </yt-formatted-string>\n</tp-yt-paper-dialog-scrollable>\n<div class="buttons style-scope yt-fancy-dismissible-dialog-renderer">\n  <yt-button-renderer id="confirm-button" data="[[computeConfirmButton_(data)]]" dialog-confirm="" class="style-scope yt-fancy-dismissible-dialog-renderer">\n  </yt-button-renderer>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;Dxg===void 0&&(Dxg=document.createElement("template"));var h=Dxg;E.call(W,h.content.cloneNode(!0),F.content.firstChild);xxx=F}F=xxx;return F});var kZx;var AI6;var ys=function(){var F=_.n.apply(this,arguments)||this;F.spinnerActive=!1;return F};
_.k(ys,_.n);ys.prototype.created=function(){GKN(2201)};
ys.prototype.onIronOverlayOpened=function(){this.spinnerActive=!0};
ys.prototype.onIronOverlayClosed=function(){this.spinnerActive=!1};
ys.prototype.onIronOverlayClosed=ys.prototype.onIronOverlayClosed;ys.prototype.onIronOverlayOpened=ys.prototype.onIronOverlayOpened;_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],ys.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.my),_.Y("design:type",Object)],ys.prototype,"tpYtIronOverlayBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],ys.prototype,"data",void 0);_.T([_.O(),_.Y("design:type",Object)],ys.prototype,"spinnerActive",void 0);
_.T([_.R4("iron-overlay-opened"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ys.prototype,"onIronOverlayOpened",null);_.T([_.R4("iron-overlay-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ys.prototype,"onIronOverlayClosed",null);ys=_.T([_.$3({is:"yt-loading-renderer",disableElementRegistration:!0})],ys);
_.r(ys,"yt-loading-renderer",function(){if(AI6===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-loading-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_loading_renderer.yt.loading.renderer.css.js--\x3e<tp-yt-paper-spinner id="spinner" active="[[spinnerActive]]" alt="[[data.accessibility.accessibility_data.label]]" class="style-scope yt-loading-renderer">\n</tp-yt-paper-spinner>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;kZx===void 0&&(kZx=document.createElement("template"));var h=kZx;E.call(W,h.content.cloneNode(!0),F.content.firstChild);AI6=F}F=AI6;return F},{mode:2});var sR$;var LnF;var jo=function(){var F=_.n.apply(this,arguments)||this;F.closeOnDismissButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_DISMISS_BUTTON_TAP"]);F.closeOnAcceptButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_ACTION_BUTTON_TAP"]);F.defaultDismissStrategy_="UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN";F.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return F};
_.k(jo,_.n);_.N=jo.prototype;_.N.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.N.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.N.onDarkModeToggledAction=function(F){this.isDarkTheme=F};
_.N.dataChanged_=function(){this.data&&(this.hostElement.hidden=!this.data.isVisible,this.data.isVisible||this.ytRendererBehavior.impressionLog())};
_.N.openPopupHandler_=function(F){F.detail===this.hostElement&&this.hostElement.hidden&&_.dW(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"])};
_.N.onDismissButtonTap_=function(){var F;this.closeOnDismissButton_.has(((F=this.data)==null?void 0:F.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.dW(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.N.onAcceptButtonTap_=function(){var F;this.closeOnAcceptButton_.has(((F=this.data)==null?void 0:F.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.dW(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.N.computeHasHeader_=function(F){return!!F.headerBackgroundImage};
_.N.computeLayoutStyle_=function(F){return F};
_.N.computePopupSize_=function(F){return F};
_.N.computeIconType_=function(F){return F.dialogIcon&&F.dialogIcon.iconType?F.dialogIcon.iconType==="YOUTUBE_LOGO"?"yt-logos-ext:yt-logo-updated":F.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"?"yt-logos-ext:yt-logo-red-updated":F.dialogIcon.iconType:""};
_.N.computeIsLogo_=function(F){return!!F.dialogIcon&&!!F.dialogIcon.iconType&&(F.dialogIcon.iconType==="YOUTUBE_LOGO"||F.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"||F.dialogIcon.iconType==="YOUTUBE_MUSIC_LOGO_SHORT")};
_.N.computeHasCustomLogo=function(F){return!(F==null||!F.headerForegroundImage)};
_.N.computeCustomLogo=function(F,W){if(F!=null&&F.headerForegroundImage)return F.headerForegroundImageDark?W?F.headerForegroundImageDark:F.headerForegroundImage:F.headerForegroundImage};
_.N.computeHeaderBackgroundImage=function(F,W){if(F!=null&&F.headerBackgroundImage)return W&&(F==null?0:F.headerBackgroundImageDark)?F.headerBackgroundImageDark:F.headerBackgroundImage};
_.N.shouldShowIconContainer=function(F,W){return F&&!W};
_.N.shouldShowNonYouTubeIcon=function(F,W){return!F&&!W};
_.N.getLogoImageId=function(F){var W,E,h;return(F=(W=this.computeCustomLogo(F,this.isDarkTheme))==null?void 0:(E=W.thumbnails)==null?void 0:(h=E[0])==null?void 0:h.height)&&F%31===0?"custom-logo-with-padding":"custom-logo"};
jo.prototype.openPopupHandler_=jo.prototype.openPopupHandler_;jo.prototype.dataChanged_=jo.prototype.dataChanged_;_.T([_.J(_.Ky.YtRendererstamperBehavior),_.Y("design:type",Object)],jo.prototype,"ytRendererstamperBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],jo.prototype,"ytRendererBehavior",void 0);_.T([_.O(),_.Y("design:type",Boolean)],jo.prototype,"isDarkTheme",void 0);
_.T([_.O({computed:"computeCustomLogo(data, isDarkTheme)"}),_.Y("design:type",Object)],jo.prototype,"customLogo",void 0);_.T([_.O({computed:"computeHeaderBackgroundImage(data, isDarkTheme)"}),_.Y("design:type",Object)],jo.prototype,"headerBackgroundImage",void 0);_.T([_.O(),_.Y("design:type",Object)],jo.prototype,"data",void 0);_.T([_.O({computed:"computeHasHeader_(data)"}),_.Y("design:type",Boolean)],jo.prototype,"hasHeader",void 0);
_.T([_.O({computed:"computeLayoutStyle_(data.layout)",reflectToAttribute:!0}),_.Y("design:type",Object)],jo.prototype,"layoutStyle",void 0);_.T([_.O({computed:"computePopupSize_(data.popupSize)",reflectToAttribute:!0}),_.Y("design:type",Object)],jo.prototype,"popupSize",void 0);_.T([_.O({computed:"computeIsLogo_(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],jo.prototype,"hasLogo",void 0);
_.T([_.O({computed:"computeHasCustomLogo(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],jo.prototype,"hasCustomLogo",void 0);_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],jo.prototype,"dataChanged_",null);_.T([_.R4("yt-popup-opened"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],jo.prototype,"openPopupHandler_",null);
jo=_.T([_.$3({is:"yt-upsell-dialog-renderer",disableElementRegistration:!0})],jo);
_.r(jo,"yt-upsell-dialog-renderer",function(){if(LnF===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-upsell-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_upsell_dialog_renderer.yt.upsell.dialog.renderer.css.js--\x3e<yt-img-shadow id="header-image" hidden="[[!hasHeader]]" object-fit="COVER" thumbnail="[[headerBackgroundImage]]" class="style-scope yt-upsell-dialog-renderer">\n</yt-img-shadow>\n<div id="dialog" class="style-scope yt-upsell-dialog-renderer">\n  <div id="icon-container" hidden="[[!shouldShowIconContainer(hasLogo, hasCustomLogo)]]" class="style-scope yt-upsell-dialog-renderer"></div>\n  <yt-icon id="logo-icon" hidden="[[!data.dialogIcon]]" icon="[[computeIconType_(data)]]" target-container="icon-container" class="style-scope yt-upsell-dialog-renderer">\n  </yt-icon>\n  <template is="dom-if" if="[[shouldShowNonYouTubeIcon(hasLogo, hasCustomLogo)]]" class="style-scope yt-upsell-dialog-renderer">\n    <yt-icon id="icon" hidden="[[!data.dialogIcon]]" icon="[[computeIconType_(data)]]" class="style-scope yt-upsell-dialog-renderer">\n    </yt-icon>\n  </template>\n  <yt-img-shadow hidden="[[!hasCustomLogo]]" id$="[[getLogoImageId(data)]]" object-fit="CONTAIN" thumbnail="[[customLogo]]" class="style-scope yt-upsell-dialog-renderer">\n  </yt-img-shadow>\n  <div id="content" class="style-scope yt-upsell-dialog-renderer">\n    <yt-formatted-string id="upsell-dialog-title" role="heading" split-lines="" text="[[data.dialogMessageTitle]]" class="style-scope yt-upsell-dialog-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string id="upsell-dialog-text" split-lines="" text="[[data.dialogMessageText]]" class="style-scope yt-upsell-dialog-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="button-container" class="style-scope yt-upsell-dialog-renderer">\n    <div id="dismiss-button" on-click="onDismissButtonTap_" class="style-scope yt-upsell-dialog-renderer"></div>\n    <div id="action-button" on-click="onAcceptButtonTap_" class="style-scope yt-upsell-dialog-renderer"></div>\n  </div>\n</div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;sR$===void 0&&(sR$=document.createElement("template"));var h=sR$;E.call(W,h.content.cloneNode(!0),F.content.firstChild);LnF=F}F=LnF;return F},{mode:2});var qvO=_.GK(function(F){return _.z("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-dialog-header"},_.z(_.v,{cond:F.title,then:function(W){return _.z("h2",{class:"mini-app-game-info-dialog-view-model-wiz__header-title"},W)}}))},"mg"),$x6=_.GK(function(F){return _.z("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-dialog-footer"},_.z(_.a6,{data:F.closeButton},{buttonViewModel:function(W){return _.z("div",null,_.z(_.rk,{data:W.data}))}}))},"ng"),Zsw=_.GK(function(F){var W=
F.data;
return _.z(_.EG,null,_.z("div",{class:"mini-app-game-info-dialog-view-model-wiz__primary-game-info-details"},_.z("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-image-wrapper"},_.z(_.v,{cond:function(){return!!W().image&&!!W().title},
then:function(){return _.z(_.T4,{data:function(){return W().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}})),_.z("div",{class:"mini-app-game-info-dialog-view-model-wiz__primary-game-info"},_.z(_.v,{cond:function(){return W().title},
then:function(E){return _.z("h3",{class:"mini-app-game-info-dialog-view-model-wiz__title"},E)}}),_.z(_.v,{cond:function(){return W().primaryGenre},
then:function(E){return _.z("span",{class:"mini-app-game-info-dialog-view-model-wiz__genre"},E)}}))),_.z(_.v,{cond:function(){var E=W().description;
return E&&E.length<=150},
then:function(){return _.z("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-description-wrapper"},_.z("span",{class:"mini-app-game-info-dialog-view-model-wiz__game-description"},function(){return W().description}))}}))},"og"),XqK=_.GK(function(F){F=F.infoRows;
var W=_.WZ().resolve(_.ac),E=_.c("enable_displaying_ppn");return _.z("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-rows-wrapper"},_.z(_.xF,{each:F},function(h){return _.z("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-row"},_.z(_.v,{cond:function(){return h.label},
then:function(d){return _.z("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},d)}}),_.z(_.v,{cond:function(){return h.attributedLabel},
then:function(d){return _.z("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},_.z(_.Ab,{text:d,noPreWrap:!0}))}}),_.z(_.v,{cond:function(){return h.value},
then:function(d){return _.z("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},d)}}),_.z(_.v,{cond:function(){return h.attributedValue},
then:function(d){return _.z("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},_.z(_.Ab,{text:d,noPreWrap:!0}))}}))}),_.z(_.v,{cond:function(){return E&&W.clientData.has("post_play_nonce")},
then:function(){return _.z("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-row"},_.z("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},"Post Play Nonce"),_.z("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},W.getData("post_play_nonce")))}}))},"pg"),Hs6=_.GK(function(F){var W=F.data;
return _.z("yt-mini-app-game-info-dialog-view-model",{class:"mini-app-game-info-dialog-view-model-wiz"},_.z(qvO,{title:function(){return W().dialogTitle}}),_.z(Zsw,{data:W}),_.z(_.v,{cond:function(){return W().infoRow},
then:function(E){return _.z(XqK,{infoRows:E})}}),_.z($x6,{closeButton:function(){return W().closeButton}}))},"qg");
Hs6.idomCompat=!0;_.pK(Hs6,"yt-mini-app-game-info-dialog-view-model",{props:{data:_.TS}});_.pK(_.GK(function(F){var W=F.data;return _.z("yt-gulp-triggering-dialog-view-model",{class:"ytGulpTriggeringDialogViewModelHost"},_.z(_.T4,{data:function(){return W().headerImage},
alt:"",className:"ytGulpTriggeringDialogViewModelHostImage"}),_.z("div",{class:"ytGulpTriggeringDialogViewModelHostDialog"},_.z("div",{class:"ytGulpTriggeringDialogViewModelHostIconDiv"},_.z(_.v,{cond:function(){var E=W().ytLogo;return E?E.iconType:null},
then:function(E){return _.z(_.I3,{icon:E,className:"ytGulpTriggeringDialogViewModelHostIcon"})}})),_.z("div",{class:"ytGulpTriggeringDialogViewModelHostContent"},_.z("p",{class:"ytGulpTriggeringDialogViewModelHostTitle"},_.z(_.Ab,{text:function(){return W().title}})),_.z("p",{class:"ytGulpTriggeringDialogViewModelHostParagraph"},_.z(_.Ab,{text:function(){return W().body}})),_.z("p",{class:"ytGulpTriggeringDialogViewModelHostLastParagraph"},_.z(_.Ab,{text:function(){return W().verifyStateText}}))),
_.z("div",{class:"ytGulpTriggeringDialogViewModelHostButtonRow"},_.z("div",null,_.z(_.a6,{data:function(){return W().dismissButton}},{buttonViewModel:_.rk})),_.z("div",null,_.z(_.a6,{data:function(){return W().linkParentButton}},{buttonViewModel:_.rk})))))},"rg"),"yt-gulp-triggering-dialog-view-model",{props:{data:_.TS}});var Ptg=_.GK(function(F){var W=F.data;return _.z("installment-agreements-view-model",{class:_.ec("ytInstallmentAgreementsViewModelHost")},_.z(_.xF,{each:_.TK(function(){return W().agreements},[])},function(E){return _.z("div",{class:"ytInstallmentAgreementsViewModelAgreementRow"},_.z("div",{class:"ytInstallmentAgreementsViewModelAgreementLabel"},_.z(_.Ab,{text:E.label})),_.z("div",{class:"ytInstallmentAgreementsViewModelAgreementButton"},_.z(_.a6,{data:function(){return E.openButton}},{buttonViewModel:_.rk})))}))},
"sg");
Ptg.idomCompat=!0;var JI8=_.GK(function(F){return _.z("collaborative-playlist-invite-message-view-model",{class:"ytCollaborativePlaylistInviteMessageViewModelHost"},_.z("div",{class:"ytCollaborativePlaylistInviteMessageViewModelInviteMessageWrapper"},_.z(_.Ab,{text:function(){return F.data().inviteMessage}})),_.z("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountSectionHeaderText"},_.z(_.Ab,{text:function(){return F.data().attributedAccountSectionHeaderText}})),_.z("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountWrapper"},
_.z(_.a6,{data:function(){return F.data().accountAvatar}},{avatarViewModel:_.fI}),_.z("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountText"},_.z(_.Ab,{text:function(){return F.data().accountName}}),_.z("div",{class:"ytCollaborativePlaylistInviteMessageViewModelHandle"},_.z(_.Ab,{text:function(){return F.data().handle}}))),_.z(_.a6,{data:function(){return F.data().trailingButton}},{buttonViewModel:_.rk})),_.z("div",{class:"ytCollaborativePlaylistInviteMessageViewModelTermsOfService"},
_.z(_.Ab,{text:function(){return F.data().termsOfService}})))},"tg");var aOu=_.GK(function(F){var W=_.U(_.Br(function(){var p,UY;return((p=F.data().createPlaylistDialogFormSchema)==null?0:(UY=p.initialValues)==null?0:UY.title)?F.data().createPlaylistDialogFormSchema.initialValues.title:""})),E=W.next().value,h=W.next().value;
W=_.U(_.Br(function(){F.data();return!1}));
var d=W.next().value,V=W.next().value;W=_.U(_.Br(function(){F.data();return!1}));
var R=W.next().value,M=W.next().value;W=_.U(_.Br(function(){var p,UY;return(p=F.data().createPlaylistDialogFormSchema)==null?void 0:(UY=p.initialValues)==null?void 0:UY.visibility}));
var g=W.next().value,t=W.next().value;W=_.U(_.Br(function(){F.data();return!1}));
var C=W.next().value,B=W.next().value;W=_.U(_.Br(function(){var p,UY;return(p=F.data().createPlaylistDialogFormSchema)==null?void 0:(UY=p.initialValues)==null?void 0:UY.isCollaborative}));
var I=W.next().value,x=W.next().value,A=_.uf();_.q6(function(){var p=A.value.querySelector("textarea");p&&(p.value=E())});
_.Xk(function(){var p;_.WjT((p=F.data().createPlaylistDialogFormSchema)==null?void 0:p.id,{onSubmit:function(){var UY=E();var xW=g(),qw=I(),Lb=F.data();UY={commandExecutorCommand:{commands:[{createPlaylistServiceEndpoint:{title:UY,privacyStatus:xW,videoIds:Lb.videoIds,sourcePlaylistId:Lb.sourcePlaylistId,params:qw?Lb.createPlaylistParamsCollaborationEnabled:Lb.createPlaylistParamsCollaborationDisabled}},{dismissDialogEndpoint:{}}]}};_.WZ().resolve(_.EJ).resolveCommand(UY)},
isValid:function(){return d()&&!R()&&!C()}})});
var X=function(p){if(p!==void 0&&(h(p),!d()&&p.length>0&&V(!0),d())){var UY=EuN(F.data());if(UY){var xW=UY.minLength;UY=UY.maxLength;xW&&p.length<xW?M(!0):UY&&p.length>UY?M(!0):M(!1)}}},P=function(){var p=!(!I()||g()!=="PRIVATE");
B(p)},b=function(p){p!==void 0&&(t(p),P())},l=function(){if(C())return dzP(F.data())},w=function(){x(!I());
P()},G=function(){return{validate:function(p){if(d()){var UY=EuN(F.data());
if(UY){var xW=UY.minLength;UY=UY.translations;if(xW&&p.length<xW)return UY==null?void 0:UY.minLengthErrorMessage}}}}},hr=function(){var p=EuN(F.data()),UY=p==null?void 0:p.maxLength,xW;
p=p==null?void 0:(xW=p.translations)==null?void 0:xW.maxLengthErrorMessage;if(UY&&p)return{maxChars:UY,errorMessage:p}};
return _.z("yt-create-playlist-dialog-form-view-model",{class:"ytCreatePlaylistDialogFormViewModelHost"},_.z("div",{class:"ytCreatePlaylistDialogFormViewModelTitleField",el:A},_.z(_.a6,{data:function(){return F.data().playlistTitle}},{textFormFieldViewModel:function(p){return _.z(_.l4x,{data:p.data,
text:E,onInput:X,validation:G,characterLimit:hr})},
textFieldViewModel:function(p){return _.z(_.bWT,{data:p.data,text:E,onInput:X,validation:G,characterLimit:hr})}})),_.z("div",{class:"ytCreatePlaylistDialogFormViewModelVisibilityField"},_.z(_.a6,{data:function(){return F.data().playlistVisibility}},{dropdownViewModel:function(p){return _.z(_.SGu,{data:p.data,
onSelected:b,error:l})}})),_.z(_.v,{cond:function(){return!!F.data().playlistCollaborate},
then:function(){return _.z("div",null,_.z(_.a6,{data:function(){return F.data().playlistCollaborate}},{switchListItemViewModel:function(p){return _.z(_.SIO,{data:p.data,
onTap:w})}}))}}))},"ug");var fOK=_.GK(function(F){var W=_.TK(F.noPadding,!1),E=function(){var d,V;return(V=(d=F.data().logo.accessibilityData)==null?void 0:d.label)!=null?V:""},h={};
return _.z("upsell-view-model",{class:_.ec("ytUpsellViewModelHost",(h.ytUpsellViewModelHostNoPadding=function(){return W()},h))},_.z("div",{class:"ytUpsellViewModelHostUpsellLogo"},_.z(_.v,{cond:function(){return _.d9(F.data().logo)},
then:function(d){return _.z(_.T4,{data:d,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:E})}})),_.z("div",{class:"ytUpsellViewModelHostUpsellTitle"},_.z(_.Ab,{text:function(){return F.data().title}})),_.z("div",{class:"ytUpsellViewModelHostUpsellSubtitleSection"},_.z(_.xF,{each:function(){var d;
return(d=F.data().subtitles)!=null?d:[]},
keyBy:"INDEX"},function(d){return _.z("div",{class:"ytUpsellViewModelHostUpsellSubtitleSectionSubtitle"},_.z(_.Ab,{text:d}))})),_.z("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSection"},_.z(_.xF,{each:function(){var d;
return(d=F.data().benefitInfos)!=null?d:[]},
keyBy:"INDEX"},function(d){return _.z(_.v,{cond:function(){return d().info},
then:function(V){return _.z("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSectionBenefitInfo"},_.z(_.I3,{icon:"CHECK_CIRCLE_FILLED",className:"ytUpsellViewModelHostUpsellBenefitInfoSectionIcon"}),_.z(_.Ab,{text:V}))}})})),_.z("div",{class:"ytUpsellViewModelHostUpsellLegalInfoSection"},_.z(_.xF,{each:function(){var d;
return(d=F.data().legalInfos)!=null?d:[]},
keyBy:"INDEX"},function(d){return _.z("div",{class:"ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfo"},_.z(_.Ab,{text:d}))})))},"vg");var OsP=_.GK(function(F){var W=F.data;F={};F=(F.ytMiniAppScoreChallengeViewModelScoreRadial=!0,F.ytMiniAppScoreChallengeViewModelDarkScoreRadial=N2g(),F);return _.z("yt-mini-app-score-challenge-view-model",{class:"ytMiniAppScoreChallengeViewModelHost"},_.z("div",{class:"ytMiniAppScoreChallengeViewModelTitle"},function(){return W().title}),_.z("div",{class:"ytMiniAppScoreChallengeViewModelSubtitle"},function(){return W().subtitle}),_.z("div",{class:_.gY(F)},_.z("div",{class:"ytMiniAppScoreChallengeViewModelScore"},
function(){return W().score})),_.z("div",{class:"ytMiniAppScoreChallengeViewModelPrompt"},function(){return W().prompt}))},"wg");var bsN=function(){this.store=_.ja();this.formId=""};var lO6=_.GK(function(F){function W(M){if(M&&(M=_.D(M,_.Lx)))return Object.assign({},M,{isSelected:V()})}
var E=_.U(_.Br(function(){var M,g;return(g=(M=_.D(F.data().option,_.Lx))==null?void 0:M.isSelected)!=null?g:!1})),h=E.next().value,d=E.next().value,V=h;
_.Xk(function(){var M;_.WjT((M=F.data().formSchema)==null?void 0:M.id,{onSubmit:function(){var g=_.WZ().resolve(_.EJ),t=!!F.data().selectedCommand,C=!!F.data().unselectedCommand;if(V()){if(t)var B=F.data().selectedCommand}else C&&(B=F.data().unselectedCommand);B=_.He(B);W(F.data().option)&&!B?(g="",!t&&C?g="selected ":t&&!C&&(g="unselected "),t=new _.xC("No "+g+"command found for SelectionListItemFormViewModel"),_.a_(t)):B&&g.resolveCommand(B)},
isValid:function(){return!0}})});
var R=function(){d(!V())};
_.$p(function(){var M,g,t=(M=F.data())==null?void 0:(g=M.formSchema)==null?void 0:g.id;t&&_.KB6()().delete(t)});
return _.z("yt-selection-list-item-form-view-model",{class:"ytSelectionListItemFormViewModelHost"},_.z("div",{class:"ytSelectionListItemFormViewModelParagraph"},_.z(_.Ab,{text:function(){return F.data().paragraph}})),_.z(_.v,{cond:function(){return W(F.data().option)},
then:function(M){return _.z(_.$q,{data:M,isCompact:!0,hideSelectionTextChevron:!0,onTap:R,disableHorizontalPadding:!0})}}))},"xg");var nSw=_.GK(function(F){var W=F.data;var E=F.disablePadding;var h=F.className;var d=_.uf(),V=function(){return VRx(W().banner,W().assetContainerPaddingStyle)},R=function(){return VRx(W().imageBanner,W().assetContainerPaddingStyle)},M=function(){return W().assetContainerPaddingStyle!=="DIALOG_HEADER_ASSET_PADDING_STYLE_INSET"};
_.Xk(function(){var g=function(){_.dW(d.value,"yt-refit-popups-action")},t;
(t=d.value)==null||t.addEventListener("image-loaded",g);_.$p(function(){var C;(C=d.value)==null||C.removeEventListener("image-loaded",g)})});
F={};return _.z("yt-dialog-header-view-model",{el:d,class:_.ec(h,(F.ytDialogHeaderViewModelHost=!0,F.ytDialogHeaderViewModelHostDisablePadding=E,F))},_.z(_.v,{cond:function(){return W().banner},
then:function(){var g={};return _.z("div",{class:_.ec(h,(g.ytDialogHeaderViewModelBanner=!0,g.ytDialogHeaderViewModelBannerFullBleed=M,g)),style:_.vr({"max-height":function(){return W().assetContainerMaxHeight?W().assetContainerMaxHeight+"px":""}})},_.z(_.mO,{data:V,
className:"ytDialogHeaderViewModelBannerImage",notifyOnLoaded:!0}))}}),_.z(_.v,{cond:function(){return W().imageBanner},
then:function(){var g={};return _.z("div",{class:_.ec(h,(g.ytDialogHeaderViewModelBanner=!0,g.ytDialogHeaderViewModelBannerFullBleed=M,g)),style:_.vr({"max-height":function(){return W().assetContainerMaxHeight!==void 0?W().assetContainerMaxHeight+"px":void 0}})},_.z(_.mO,{data:R,
className:"ytDialogHeaderViewModelBannerImage",notifyOnLoaded:!0}))}}),_.z(_.v,{cond:function(){return W().customAssetContainer},
then:function(g){return _.z("div",{class:"ytDialogHeaderViewModelCustomAssetContainer"},_.z(_.a6,{data:g},{avatarStackViewModel:_.Lp}))}}),_.z(_.v,{cond:function(){return W().customBanner},
then:function(g){return _.z("div",{class:"ytDialogHeaderViewModelCustomAssetContainer"},_.z(_.a6,{data:g},{avatarStackViewModel:_.Lp}))}}),_.z(_.v,{cond:function(){return W().headline},
then:function(g){return _.z("h2",null,_.z(_.Ab,{text:g,className:"ytDialogHeaderViewModelText"}))}}))},"yg");
nSw.idomCompat=!0;var yIw=_.GK(function(F){var W=_.EjT(function(){return F.data().formId}),E=W.onSubmit,h=W.isValid;
return _.z("yt-form-panel-footer-view-model",{class:"ytFormPanelFooterViewModelHost"},_.z(_.a6,{data:function(){return F.data().panelFooter}},{panelFooterViewModel:function(d){return _.z(_.TP,{data:d.data,
disablePadding:!0,disablePrimaryButton:function(){return!h()},
onClickPrimaryButton:function(){E()}})}}))},"zg");var jRT=_.GK(function(F){var W=function(){var E,h;return(h=(E=_.D(F.data().rendererContext,_.m9))==null?void 0:E.label)!=null?h:""};
return _.z("yt-dialog-image-content-view-model",{class:_.ec("ytDialogImageContentViewModelHost",F.className)},_.z(_.v,{cond:function(){return _.d9(F.data().image)},
then:function(E){return _.z(_.T4,{data:E,alt:W,className:"ytDialogImageContentViewModelImage",contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT"})}}),_.z(_.Ab,{text:function(){return F.data().description},
className:"ytDialogImageContentViewModelDescription"}))},"Ag");var TjO=_.GK(function(F){var W=_.o4(F,{headerPosition:0,buttonLayout:0,buttonStyle:0,contentAlignment:0,maxHeight:0,isFullscreen:!1,isHeaderWizDefined:!1,isFooterWizDefined:!1}),E=W.elRefCallback;F=W.iconWiz;var h=W.assetWiz,d=W.assetType,V=W.titleWiz,R=W.leadingActionHeaderWiz,M=W.trailingActionHeaderWiz,g=W.headerPosition,t=W.contentWiz,C=W.buttonLayout,B=W.buttonStyle,I=W.primaryButtonWiz,x=W.secondaryButtonWiz,A=W.contentAlignment,X=W.isFullscreen,P=W.width,b=W.maxHeight,l=W.isHeaderWizDefined,
w=W.headerWiz,G=W.isFooterWizDefined,hr=W.footerWiz;W=_.uf(function(bo){E==null||E(bo)});
var p=h?function(){return h({className:"yt-spec-dialog-layout__dialog-layout-asset-item"})}:void 0,UY=I?function(){var bo={};
return I({buttonOverrides:function(){return{style:(B==null?void 0:B())===1?"call-to-action":"mono",type:"filled",state:"active",size:"M"}},
className:_.ec((bo["yt-spec-dialog-layout__dialog-layout-button"]=!0,bo["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(C==null?void 0:C())===0||(C==null?void 0:C())===2},bo))})}:void 0,xW=x?function(){var bo={};
return x({buttonOverrides:{style:"mono",type:"outline",state:"active",size:"M"},className:_.ec((bo["yt-spec-dialog-layout__dialog-layout-button"]=!0,bo["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(C==null?void 0:C())===0||(C==null?void 0:C())===2},bo))})}:void 0,qw=function(){return(!!V||!!R||!!M)&&g()===0},Lb={},jk={},Jr={},nb={};
return _.z("dialog-layout",{el:W,class:_.ec((Lb["yt-spec-dialog-layout"]=!0,Lb["yt-spec-dialog-layout--dialog-layout-fullscreen"]=X,Lb["yt-spec-dialog-layout--dialog-layout-responsive"]=function(){return!X()},Lb["yt-spec-dialog-layout--dialog-layout-extended-max-height"]=function(){return b()===1},Lb["yt-spec-dialog-layout--dialog-layout-asset-inset"]=function(){return(d==null?void 0:d())===1},Lb)),
style:function(){return(P==null?void 0:P())!==void 0?"width: "+P+"px;":""}},F?_.z("div",{class:_.ec((jk["yt-spec-dialog-layout__dialog-layout-icon"]=!0,jk["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-above-media"]=function(){return!!h&&g()===1},jk["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-center-align"]=function(){return A()===1},jk))},_.z(F,null)):null,_.z(_.v,{cond:l,
then:function(){return w?_.z("div",{class:"yt-spec-dialog-layout__dialog-header-container"},_.z(w,null)):null},
else:function(){return _.z(_.EG,null,_.z(_.v,{cond:qw,then:function(){return _.z(isT,{contentAlignment:A,LeadingActionHeader:R,TrailingActionHeader:M,Title:V,isAboveAsset:!!p})}}),p?_.z("div",{class:"yt-spec-dialog-layout__dialog-layout-asset"},_.z(p,null)):null)}}),_.z("div",{class:_.ec((Jr["yt-spec-dialog-layout__dialog-layout-container"]=!0,Jr["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(A==null?void 0:A())===1},Jr["yt-spec-dialog-layout__dialog-layout-container--dialog-layout-container-top-padding"]=
function(){return!V&&!w||!!p&&(g==null?void 0:g())===0},Jr))},_.z(_.v,{cond:function(){return V&&!w&&(g==null?void 0:g())===1},
then:function(){return _.z(isT,{contentAlignment:A,LeadingActionHeader:R,TrailingActionHeader:M,Title:V,isAboveAsset:!1})}}),t?_.z("div",{class:"yt-spec-dialog-layout__dialog-layout-content"},_.z("div",{class:"yt-spec-dialog-layout__dialog-layout-content-inner"},_.z(t,null))):null,_.z(_.v,{cond:G,
then:function(){return hr?_.z("div",{class:"yt-spec-dialog-layout__dialog-layout-footer-container"},_.z(hr,null)):null}}),UY||xW?_.z(rIu,{footerClasses:_.ec((nb["yt-spec-dialog-layout__dialog-layout-footer-container"]=!0,nb["yt-spec-dialog-layout__dialog-layout-footer"]=!0,nb["yt-spec-dialog-layout--dialog-buttons-stacked"]=function(){return(C==null?void 0:C())===2},nb["yt-spec-dialog-layout__dialog-layout-footer--dialog-buttons-inline-end"]=function(){return(C==null?void 0:C())===1},nb)),
PrimaryButton:UY,SecondaryButton:xW}):null))},"Bg"),isT=_.GK(function(F){var W=_.o4(F,{isAboveAsset:!1,
enableLeadingActionHeader:!0}),E=W.contentAlignment,h=W.LeadingActionHeader;F=W.Title;var d=W.TrailingActionHeader,V=W.isAboveAsset,R=W.enableLeadingActionHeader;W={};return _.z("div",{class:_.ec((W["yt-spec-dialog-layout__dialog-header-container"]=!0,W["yt-spec-dialog-layout__dialog-header"]=!0,W["yt-spec-dialog-layout__dialog-header--dialog-header-above-asset"]=V,W["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(E==null?void 0:E())===1&&R()},W))},_.z(_.v,{cond:function(){return R()},
then:function(){return h?_.z("div",{class:"yt-spec-dialog-layout__dialog-leading-action-header"},_.z(h,null)):null}}),F?_.z("h2",{class:"yt-spec-dialog-layout__dialog-layout-title"},_.z(F,null)):null,d?_.z("div",null,_.z(d,null)):null)},"Cg"),rIu=_.GK(function(F){var W=F.footerClasses;
var E=F.PrimaryButton;F=F.SecondaryButton;return _.z("div",{class:W},F?_.z(F,null):null,E?_.z(E,null):null)},"Dg");var oS6=_.GK(function(F){var W=F.data;return _.z("ytfz-fanzone-scheduled-info-view-model",{class:"ytfzFanzoneScheduledInfoViewModelHost"},_.z("div",{class:"ytfzFanzoneScheduledInfoViewModelAvatar"},_.z(_.a6,{data:function(){return W().avatar}},{avatarViewModel:_.fI})),_.z("h2",{class:"ytfzFanzoneScheduledInfoViewModelTitle"},_.z(_.Ab,{text:function(){return W().title}})),_.z(_.Ab,{text:function(){return W().description},
className:"ytfzFanzoneScheduledInfoViewModelDescription"}))},"Eg");var GZK=_.GK(function(F){var W=F.data;return _.z("yt-access-confirmation-view-model",{class:"ytAccessConfirmationViewModelHost"},_.z("div",{class:"ytAccessConfirmationViewModelContent"},_.z(_.a6,{data:function(){return W().dualAvatar}},{dualAvatarViewModel:function(E){return _.z("div",{class:"ytAccessConfirmationViewModelDualAvatar"},_.z(_.qre,{data:E.data}))}}),_.z("h2",{class:"ytAccessConfirmationViewModelTitle"},_.z(_.Ab,{text:function(){return W().title}})),_.z(_.Ab,{text:function(){return W().subtitle},
className:"ytAccessConfirmationViewModelSubtitle"})))},"Fg");var YvN=_.GK(function(F){var W=F.data;var E=void 0;F=_.U(_.g$("",void 0,"bj3Bbf"));var h=F.next().value,d=F.next().value,V,R=function(){d("");var t;(t=E)!=null&&t.store.dispatch(_.dR({type:"RESET_COMMAND_MAP"}))};
_.Xk(function(){E=new bsN;window.addEventListener("yt-popup-closed",R)});
_.q6(function(){if(E&&V!==W().formId){var t=E,C=W();C.formId&&(t.formId=C.formId,t.store.dispatch(_.dR({type:"SET_CURRENT_FORM_ID",payload:{formId:t.formId}})));V=W().formId}});
_.$p(function(){window.removeEventListener("yt-popup-closed",R)});
var M=function(t,C,B){C.key&&B&&C.key!==h()&&(d(C.key),E&&C.command&&E.store.dispatch(_.dR({type:"SET_COMMAND_FOR_GROUP_ID",payload:{groupId:B,command:C.command}})))},g=function(){if(_.D(W().content,_.InO))return!(h==null?0:h())};
return _.z("yt-dialog-view-model",{class:_.ec("ytDialogViewModelHost","ytDialogViewModelResetSpacing"),dialog:!0},_.z(TjO,{headerWiz:function(){return _.z("span",{skip:!0},_.z(_.a6,{data:function(){return W().header}},{dialogHeaderViewModel:function(t){return _.z(nSw,{data:t.data,
disablePadding:!0})}}))},
isHeaderWizDefined:function(){return!!W().header},
contentWiz:function(){return _.z("span",{skip:!0},_.z(_.a6,{data:function(){return W().customContent?W().customContent:W().content}},{basicContentViewModel:_.RuN,
createPlaylistDialogFormViewModel:aOu,collaborativePlaylistInviteMessageViewModel:JI8,miniAppScoreChallengeViewModel:OsP,radioButtonGroupViewModel:function(t){return _.z(_.YGK,{data:t.data,selectedKey:h,onSelected:M})},
selectionListItemFormViewModel:lO6,upsellViewModel:function(t){return _.z(fOK,{data:t.data,noPadding:!0})},
fanzoneScheduledInfoViewModel:oS6,installmentAgreementsViewModel:Ptg,accessConfirmationViewModel:GZK,listViewModel:function(t){return _.z(_.hGe,{data:t.data,disableHorizontalPadding:!0})},
dialogImageContentViewModel:jRT}))},
footerWiz:function(){return _.z("span",{skip:!0},_.z(_.a6,{data:function(){return W().footer}},{panelFooterViewModel:function(t){return _.z(_.TP,{data:t.data,
disablePadding:!0,disablePrimaryButton:g})},
formPanelFooterViewModel:yIw,formFooterViewModel:function(t){return _.z(_.a4x,{data:t.data,disablePadding:!0})}}))},
isFooterWizDefined:function(){return!!W().footer}}))},"Gg");
YvN.idomCompat=!0;_.pK(YvN,"yt-dialog-view-model",{props:{data:_.TS},unsafeExternallySettableAttributes:new Set(["tabindex","style"])});var wqK=_.GK(function(F){var W=F.data;F={};return _.z("yt-panel-header-view-model",{class:_.ec("yt-panel-header-view-model-wiz",(F["yt-panel-header-view-model-wiz--hide-divider"]=function(){return!!W().shouldHideDivider},F["yt-panel-header-view-model-wiz--compact"]=function(){return!!W().subtitle},F))},_.z("div",{class:"yt-panel-header-view-model-wiz__title-wrapper"},_.z(_.v,{cond:function(){return W().title},
then:function(E){return _.z(_.Ab,{text:E,className:"yt-panel-header-view-model-wiz__title"})}}),_.z(_.v,{cond:function(){return W().subtitle},
then:function(E){return _.z(_.Ab,{text:E,className:"yt-panel-header-view-model-wiz__subtitle"})}})),_.z("div",{class:"yt-panel-header-view-model-wiz__trailing-buttons"},_.z(_.a6,{data:function(){return W().trailingButtons}},{buttonViewModel:function(E){return _.z(_.rk,{data:E.data,
className:"yt-panel-header-view-model-wiz__button"})}})))},"Hg");
wqK.idomCompat=!0;var uX8=_.GK(function(F){var W=_.tb(function(V){var R;if((R=F.skipContentClick)==null?0:R.call(F))return!1;F.onContentWrapperClick(V);return!0}),E,h,d;
return _.z("div",{class:_.ec("yt-spec-bottom-sheet-layout","yt-spec-bottom-sheet-layout__bottom-sheet-renderer-container","yt-spec-bottom-sheet-layout--modern"),style:function(){return F.isAnimating()?"transform: translateY("+F.currentY()+"px);transition: 0.2s":""}},(E=F.header)==null?void 0:E.call(F),_.z("div",{id:F.contentWrapperId,
class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-content-wrapper",style:_.vr({"max-height":(0,_.LR)(F.maxHeightForContentWrapper)}),"on:scroll":MRN(F.onScroll),"on:touchmove":MRN(function(V){return void V.stopPropagation()})},_.z("div",{el:{onRender:F.contentWrapperEl},
class:"yt-spec-bottom-sheet-layout__bottom-sheet-content","on:click":W},(h=F.body)==null?void 0:h.call(F))),(d=F.footer)==null?void 0:d.call(F))},"Ig");
uX8.idomCompat={callbacks:{onScroll:!0,contentWrapperEl:!0,onContentWrapperClick:!0}};var SvT=_.GK(function(F){var W=_.TK(F.leadingLabel),E=_.TK(F.trailingLabel),h=_.TK(F.footerButtonType),d=function(){return W()||E()||F.hasPrimaryButton()||F.hasSecondaryButton()},V={},R=_.ec("yt-spec-bottom-sheet-layout__primary-button",(V["yt-spec-bottom-sheet-layout__primary-button--default"]=function(){return h()===0&&F.hasPrimaryButton()},V["yt-spec-bottom-sheet-layout__primary-button--trailing-pair"]=function(){return h()===1&&F.hasPrimaryButton()},V["yt-spec-bottom-sheet-layout__primary-button--split-pair"]=
function(){return h()===2&&F.hasPrimaryButton()},V["yt-spec-bottom-sheet-layout__primary-button--primary-split-pair"]=function(){return h()===3&&F.hasPrimaryButton()},V));
V={};var M=_.ec("yt-spec-bottom-sheet-layout__secondary-button",(V["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-trailing-pair"]=function(){return h()===1&&F.hasSecondaryButton()},V["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-split-pair"]=function(){return h()===2&&F.hasSecondaryButton()},V["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-primary-split-pair"]=function(){return h()===3&&F.hasPrimaryButton()},V));
return _.z(_.v,{cond:F.hasFooterOverride,then:function(){var g;return _.z(_.EG,null,(g=F.footerOverride)==null?void 0:g.call(F))},
else:function(){return _.z(_.v,{cond:d,then:function(){return _.z("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-footer-wrapper"},_.z(_.v,{cond:function(){return W()||E()},
then:function(){var g={};return _.z("div",{class:_.ec("yt-spec-bottom-sheet-layout__footer-label-wrapper",(g["yt-spec-bottom-sheet-layout__footer-label-wrapper--without-buttons"]=function(){return!F.hasPrimaryButton()},g))},_.z(_.v,{cond:W,
then:function(){return _.z("div",{class:"yt-spec-bottom-sheet-layout__leading-label"},W)}}),_.z(_.v,{cond:E,
then:function(){return _.z("div",{class:"yt-spec-bottom-sheet-layout__trailing-label"},E)}}))}}),_.z(_.v,{cond:function(){return F.hasPrimaryButton()||F.hasSecondaryButton()},
then:function(){var g={};return _.z("div",{class:_.ec("yt-spec-bottom-sheet-layout__footer-button-wrapper",(g["yt-spec-bottom-sheet-layout__footer-button-wrapper--landscape-button-wrapper"]=_.hfi,g))},_.z(_.v,{cond:function(){return F.hasSecondaryButton()&&h()!==0},
then:function(){var t;return _.z("div",{class:M},(t=F.secondaryButton)==null?void 0:t.call(F))}}),_.z(_.v,{cond:F.hasPrimaryButton,
then:function(){var t;return _.z("div",{class:R},(t=F.primaryButton)==null?void 0:t.call(F))}}))}}))}})}})},"Jg");
SvT.idomCompat={callbacks:{primaryButton:!0,secondaryButton:!0,footerOverride:!0}};var pqN=_.GK(function(F){var W=_.TK(F.title),E=_.TK(F.subtitle),h=_.tb(function(R){var M;(M=F.touchstart)==null||M.call(F,R);return!1}),d=_.tb(function(R){var M;
(M=F.touchmove)==null||M.call(F,R);return!1}),V=_.tb(function(R){var M;
(M=F.touchend)==null||M.call(F,R);return!1});
return _.z("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper",id:F.headerId,"on:touchstart":h,"on:touchmove":d,"on:touchend":V},_.z("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-drag-line"}),_.z(_.v,{cond:F.hasHeaderOverride,then:function(){var R;return _.z(_.EG,null,(R=F.headerOverride)==null?void 0:R.call(F))},
else:function(){var R={};return _.z("div",{class:_.ec((R["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header"]=!0,R["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header--with-title"]=W,R))},_.z("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-title-wrapper"},_.z(_.v,{cond:W,then:function(){return _.z(_.EG,null,_.z("h2",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-title"},W),_.z(_.v,{cond:E,then:function(){return _.z("h3",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-subtitle"},
E)}}))}})),_.z(_.v,{cond:function(){return W()&&F.hasActionHeader()},
then:function(){var M;return _.z("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-action-header"},(M=F.actionHeader)==null?void 0:M.call(F))}}))}}))},"Kg");
pqN.idomCompat={callbacks:{touchstart:!0,touchmove:!0,touchend:!0,actionHeader:!0,headerOverride:!0}};_.GK(function(F){function W(p){if(!b&&typeof MutationObserver!=="undefined"){var UY={childList:!0};"MutationObserver"in window&&(b=new MutationObserver(E.bind(void 0,p)),b.observe(p,UY))}}
function E(p){typeof b!=="undefined"&&(l["content-wrapper"]===void 0&&(l["content-wrapper"]=p.children[0].clientHeight),x(l["content-wrapper"]),I()>A()||X(I()))}
function h(){B(window.innerHeight);I()>A()||X(I());w.isFullScreen[0]()&&I()>A()?G().dispatch("Snap To Full Screen",{maxHeight:P()}):G().dispatch("Snap To Neutral Position",{maxHeight:A()})}
function d(p){document.body.style.overscrollBehavior="none";p.preventDefault();G().dispatch("Touch Start",{event:p})}
function V(p){p.preventDefault();G().dispatch("Touch Move",{event:p,contentScrollable:I()>A(),fullContentWrapperHeight:P(),contentWrapperHeight:A(),contentHeightMap:l,contentWrapperId:"content-wrapper",header:Qo6(F),footer:Qo6(F)})}
function R(){document.body.style.overscrollBehavior="";w.isFullScreen[0]()?w.currentY[0]()>=60?G().dispatch("Snap To Neutral Position",{maxHeight:A()}):G().dispatch("Snap To Full Screen",{maxHeight:P()}):w.currentY[0]()>=60?M():w.currentY[0]()<=-60&&I()>A()?G().dispatch("Snap To Full Screen",{maxHeight:P()}):G().dispatch("Snap To Neutral Position",{maxHeight:A()})}
function M(){G().dispatch("Close Sheet",{clientHeight:C(),maxHeight:0});setTimeout(function(){guO()},250)}
var g=_.U(_.g$(window.innerHeight,void 0,"NWeFS")),t=g.next().value;g=g.next().value;var C=t,B=g;g=_.U(_.g$(0,void 0,"oxfm4"));t=g.next().value;g=g.next().value;var I=t,x=g;g=_.U(_.Br(function(){var p=Qo6(F);return.6*C()-UzK(p)-RnP(p)}));
t=g.next().value;g=g.next().value;var A=t,X=g,P=function(){var p=Qo6(F);return C()-UzK(p)-RnP(p)-24-24},b=null,l={},w={initialY:_.g$(0,void 0,"cYBE5c"),
currentY:_.g$(0,void 0,"RndqHc"),isAnimating:_.g$(!1,void 0,"vO9DVd"),isFullScreen:_.g$(!1,void 0,"UOfBcf"),maxHeightForContentWrapper:_.Br(A)},G=function(){var p=null;return function(){if(!p){var UY={initialY:w.initialY[0](),currentY:w.currentY[0](),isAnimating:w.isAnimating[0](),isFullScreen:w.isFullScreen[0](),maxHeightForContentWrapper:w.maxHeightForContentWrapper[0]()};p=enP(UY)}return p}}();
_.Xk(function(){window.addEventListener("resize",h);G().subscribe(function(p){w.initialY[1](p.initialY);w.currentY[1](p.currentY);w.isAnimating[1](p.isAnimating);w.isFullScreen[1](p.isFullScreen);w.maxHeightForContentWrapper[1](p.maxHeightForContentWrapper)})});
_.$p(function(){window.removeEventListener("resize",h);b&&(b.disconnect(),b=null)});
var hr=_.ec({"bottom-sheet-content-without-icon":function(){var p;return!((p=F.shouldShowIcons)==null?0:p.call(F))}});
return _.z("bottom-sheet-layout",null,_.z(uX8,{contentWrapperId:"content-wrapper",isAnimating:function(){return w.isAnimating[0]()},
currentY:function(){return w.currentY[0]()},
maxHeightForContentWrapper:function(){return w.maxHeightForContentWrapper[0]()},
shouldShowIcons:F.shouldShowIcons,skipContentClick:F.skipContentClick,onScroll:function(){var p=document.getElementById("header-wrapper"),UY=document.getElementById("content-wrapper");if(p&&UY){var xW={};xW=(xW["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"]=!0,xW["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper--bottom-border"]=!0,xW);p.className=UY.scrollTop>1?_.gY(xW):"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"}},
onContentWrapperClick:guO,contentWrapperEl:function(p){W(p);requestAnimationFrame(function(){E(p)})},
header:function(){return _.z(pqN,{touchstart:d,touchmove:V,touchend:R,title:F.headerTitle,subtitle:F.headerSubtitle,headerId:"header-wrapper",headerOverride:F.headerFn,hasHeaderOverride:F.hasHeaderFn,actionHeader:F.headerActionHeader,hasActionHeader:F.hasHeaderActionHeader})},
footer:function(){return _.z(SvT,{footerButtonType:F.footerButtonType,leadingLabel:F.footerLeadingLabel,trailingLabel:F.footerTrailingLabel,primaryButton:F.footerPrimaryButton,hasPrimaryButton:F.hasFooterPrimaryButton,secondaryButton:F.footerSecondaryButton,hasSecondaryButton:F.hasFooterSecondaryButton,footerOverride:F.footerFn,hasFooterOverride:F.hasFooterFn})},
body:function(){return _.z(_.v,{cond:F.hasContentFn,then:function(){var p;return _.z("div",{class:hr},(p=F.contentFn)==null?void 0:p.call(F))}})}}))},"Lg").idomCompat={callbacks:{headerActionHeader:!0,
headerFn:!0,contentFn:!0,footerFn:!0,footerPrimaryButton:!0,footerSecondaryButton:!0}};var mxx=_.GK(function(F){var W=_.WZ().resolve(_.L1),E=_.tb(function(){return void W.closeSheet()});
return _.z("yt-contextual-sheet-layout",{class:"yt-contextual-sheet-layout-wiz","on:click":E},_.z(_.v,{cond:function(){return!!F.header},
then:function(){return _.z("div",{class:"yt-contextual-sheet-layout-wiz__header-container"},F.header())}}),_.z(_.v,{cond:function(){return!!F.content},
then:function(){return _.z("div",{class:"yt-contextual-sheet-layout-wiz__content-container"},F.content())}}),_.z(_.v,{cond:function(){return!!F.footer},
then:function(){return _.z("div",{class:"yt-contextual-sheet-layout-wiz__footer-container"},F.footer())}}))},"Mg");
mxx.idomCompat={callbacks:{header:!0,content:!0,footer:!0}};var KnN=_.GK(function(F){F=F.data;var W=_.uf(function(h){h.addEventListener("focusin",function(){SBK(h)});
return function(){h.removeEventListener("focusin",function(){SBK(h)})}}),E={};
return _.z("yt-sheet-view-model",{class:_.ec("yt-sheet-view-model-wiz",(E["yt-sheet-view-model-wiz--contextual"]=!0,E["yt-sheet-view-model-wiz--disable-backdrop-filter"]=_.c("web_disable_backdrop_filter"),E)),el:W,tabindex:-1},_.z(_.v,{cond:F,then:function(h){return _.z(mxx,{header:function(){return _.z(_.a6,{data:function(){return h().header}},{panelHeaderViewModel:wqK})},
content:function(){return _.z(_.a6,{data:function(){return h().content}},{listViewModel:function(d){return _.z(_.hGe,{data:d.data,
isCompact:!0,inPopup:!0})},
upsellViewModel:fOK,miniAppScoreChallengeViewModel:OsP})},
footer:function(){return _.z(_.a6,{data:function(){return h().footer}},{panelFooterViewModel:_.TP})}})}}))},"Ng");
KnN.idomCompat=!0;_.pK(KnN,"yt-sheet-view-model",{props:{data:_.TS}});var WI6=_.GK(function(F){var W=function(){var E;return(E=F.data().enableDebuggingFeatures)!=null?E:!1};
return _.z("yt-stories-sticker-layer-view-model",{class:"ytStoriesStickerLayerViewModelHost"},_.z(_.xF,{each:function(){var E;return(E=F.data().stickers)!=null?E:[]}},function(E){return _.z(FIu,{data:function(){return E},
debugMode:W})}))},"Og"),FIu=_.GK(function(F){var W=_.o4(F,{debugMode:!1}).debugMode,E=_.TK(function(){var g;
return(g=F.data().region)==null?void 0:g.w},0),h=_.TK(function(){var g;
return(g=F.data().region)==null?void 0:g.h},0),d=_.TK(function(){var g;
return(g=F.data().region)==null?void 0:g.x},0),V=_.TK(function(){var g;
return(g=F.data().region)==null?void 0:g.y},0),R=_.tb(function(){var g=F.data().onTap;
g&&_.fK(g)}),M={};
return _.z("div",{class:_.ec("ytStoriesStickerLayerViewModelSticker",(M.ytStoriesStickerLayerViewModelDebugMode=W,M)),style:_.vr({width:function(){return 100*E()+"%"},
height:function(){return 100*h()+"%"},
left:function(){return 100*d()+"%"},
top:function(){return 100*V()+"%"},
"flex-direction":function(){return znN(F.data().flexDirection)},
"justify-content":function(){return tR8(F.data().justifyContent)},
"align-items":function(){return CbN(F.data().alignItems)}}),
"on:click":R},_.z(_.a6,{data:function(){return F.data().button||F.data().toggleButton}},{buttonViewModel:function(g){return _.z(_.rk,{data:g.data,
className:"ytStoriesStickerLayerViewModelButton"})},
toggleButtonViewModel:function(g){return _.z(_.bJ,{data:g.data,className:"ytStoriesStickerLayerViewModelButton"})}}))},"Pg");var hVO=_.GK(function(F){var W=function(){return F.data()},E=_.TK(function(){return W().backgroundColor},0),h=_.TK(function(){return W().actionButtons},[]),d=_.TK(function(){return W().stickerLayer},{}),V={},R=function(){var g,t;
return{animationRef:V,animationConfig:{autoplay:!1,loop:!1,path:(t=(g=W().foregroundAnimation)==null?void 0:g.url)!=null?t:"",name:"stories_item_foreground_animation"},listeners:{complete:function(){F.navigateToNextItemOnLottieComplete()}}}},M=function(){var g,t,C,B,I,x,A,X;
return{animationConfig:{autoplay:(x=(g=W().backgroundAnimation)==null?void 0:(t=g.settings)==null?void 0:t.autoplay)!=null?x:!1,loop:(A=(C=W().backgroundAnimation)==null?void 0:(B=C.settings)==null?void 0:B.loop)!=null?A:!1,path:(X=(I=W().backgroundAnimation)==null?void 0:I.url)!=null?X:"",name:"stories_item_background_animation"}}};
_.q6(function(){if(F.isVisible()){var g;(g=V.lottieEl)==null||g.play()}else{var t;(t=V.lottieEl)==null||t.stop()}});
return _.z("yt-stories-item-view-model",{class:"ytStoriesItemViewModelHost",style:_.vr({"background-color":function(){return _.XC(E())+";"}})},_.z("div",{class:"ytStoriesItemViewModelAssetContent"},_.z(_.v,{cond:function(){return!!W().backgroundAnimation},
then:function(){return _.z(_.Mj,{data:M,animationName:function(){return M().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.z(_.v,{cond:function(){return!!W().backgroundImage},
then:function(){return _.z(_.T4,{data:function(){return W().backgroundImage},
className:"ytStoriesItemViewModelImage",alt:"background image"})}}),_.z(_.v,{cond:function(){return!!W().foregroundAnimation},
then:function(){return _.z(_.Mj,{data:R,animationName:function(){return R().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.z(_.v,{cond:function(){return!!W().foregroundImage},
then:function(){return _.z(_.T4,{data:function(){return W().foregroundImage},
className:"ytStoriesItemViewModelImage",alt:"foreground image"})}}),_.z("div",{class:"ytStoriesItemViewModelTopShadow"}),_.z(_.a6,{data:function(){return d()}},{storiesStickerLayerViewModel:WI6})),_.z("div",{class:"ytStoriesItemViewModelBottomShadow"},_.z("div",{class:"ytStoriesItemViewModelActionButtonWrapper",
"on:click":_.tb(F.pauseAutoNavigation)},_.z(_.xF,{each:h},function(g){return _.z(Eq6,{data:function(){return g}})}))))},"Qg"),Eq6=_.GK(function(F){var W={};
return _.z("div",{class:_.ec("ytStoriesItemViewModelActionButton",(W.ytStoriesItemViewModelStretchedActionButton=function(){return F.data().size==="STORIES_BUTTON_SIZE_STRETCH"},W))},_.z(_.a6,{data:function(){return F.data().button}},{buttonViewModel:function(E){return _.z(_.rk,{data:E.data,
className:"ytStoriesItemViewModelButton"})}}))},"Rg");_.pK(_.GK(function(F){var W=_.U(_.Br(function(){var l;return(l=F.data().startIndex)!=null?l:0})),E=W.next().value,h=W.next().value;
W=_.U(_.g$(!1,void 0,"klmjc"));var d=W.next().value,V=W.next().value,R=function(){var l;return(l=F.data().storyItems)!=null?l:[]},M=function(){return F.data().dismissButton},g=function(){var l;
return _.D((l=_.D(M(),_.fx))==null?void 0:l.onTap,_.XP)},t=_.uf(),C,B=function(){var l;
(l=C)==null||l.cancel();C=I(E()).animate([{width:"0%"},{width:"100%"}],{duration:9E3,easing:"linear"});C.onfinish=function(){I(E()).style.width="100%";var w=_.D(R()[E()],UCN),G,hr;w!=null&&w.foregroundAnimation&&((w==null?0:(G=w.foregroundAnimation)==null?0:G.url)||(w==null?0:(hr=w.foregroundAnimation)==null?0:hr.payload))||(E()!==R().length-1?(h(E()+1),B()):g()&&_.Pe(g()))}},I=function(l){return t.value.children[l].children[0]},x=function(){for(var l=0;l<E();l++)I(l).style.width="100%"};
W=_.tb(function(){d()?V(!1):(E()===R().length-1&&g()&&_.Pe(g()),I(E()).style.width="100%",E()!==R().length-1&&(h(E()+1),B()))});
var A=_.tb(function(){d()?V(!1):(I(E()).style.width="0%",E()!==0?h(E()-1):h(E()),B())}),X=function(){V(!0)},P=function(){I(E()).style.width="100%";
E()!==R().length-1?(h(E()+1),B()):g()&&_.Pe(g())},b=_.tb(function(){var l;
(l=C)==null||l.pause()});
_.q6(function(){if(d()){var l;(l=C)==null||l.pause()}else{var w;(w=C)==null||w.play()}});
_.q6(function(){x();E()===F.data().startIndex&&B()});
_.Xk(function(){x();B()});
return _.z("yt-stories-viewer-view-model",{class:_.ec("ytStoriesViewerViewModelHost","ytStoriesViewerViewModelResetSpacing"),dialog:!0},_.z("div",{class:"ytStoriesViewerViewModelNavigationContainer"},_.z("div",{class:"ytStoriesViewerViewModelPreviousNavigation","on:click":A,"on:mousedown":b}),_.z("div",{class:"ytStoriesViewerViewModelNextNavigation","on:click":W,"on:mousedown":b})),_.z(_.a6,{data:R},{storiesItemViewModel:function(l,w){var G=l.data;return _.z(_.v,{cond:function(){return Math.abs(w()-
E())<=1},
then:function(){var hr={};return _.z("div",{class:_.ec("ytStoriesViewerViewModelStoryItem",(hr.ytStoriesViewerViewModelHiddenStoryItem=function(){return w()!==E()},hr))},_.z(hVO,{data:G,
pauseAutoNavigation:X,navigateToNextItemOnLottieComplete:P,isVisible:function(){return w()===E()}}))}})}}),_.z("div",{class:"ytStoriesViewerViewModelProgressBarsContainer",
el:t},_.z(_.xF,{each:R},function(){return _.z("div",{class:"ytStoriesViewerViewModelProgressBar"},_.z("div",{class:"ytStoriesViewerViewModelProgress"}))})),_.z("div",{class:"ytStoriesViewerViewModelActionButtonsContainer"},_.z(_.a6,{data:M},{buttonViewModel:_.rk})))},"Sg"),"yt-stories-viewer-view-model",{props:{data:_.TS}});_.pK(_.GK(function(F){var W=F.data;var E=_.uf(),h=[];return _.z("yt-gen-ai-feedback-form-view-model",{el:E,class:"ytGenAiFeedbackFormViewModelHost"},_.z(_.Ab,{text:function(){return W().title},
className:"ytGenAiFeedbackFormViewModelTitle"}),_.z("div",{class:"ytGenAiFeedbackFormViewModelChipsContainer"},_.z(_.a6,{data:function(){return W().feedbackChips}},{toggleButtonViewModel:function(d){var V=d.data;
return _.z(_.bJ,{data:V,className:"ytGenAiFeedbackFormViewModelFeedbackChip",onToggle:function(R){var M=V();M=_.D(M,_.O8);M=_.D(M==null?void 0:M.defaultButtonViewModel,_.fx).trackingParams;R?h.push(M):(R=h.indexOf(M),R>-1&&h.splice(R,1))}})}})),_.z(_.Ab,{text:function(){return W().disclaimer},
className:"ytGenAiFeedbackFormViewModelDisclaimer"}),_.z("div",{class:"ytGenAiFeedbackFormViewModelBottomButtonsContainer"},_.z(_.a6,{data:function(){return W().submitButton}},{buttonViewModel:function(d){return _.z(_.rk,{data:d.data,
className:"ytGenAiFeedbackFormViewModelSubmitButton",onClick:function(){B2x(E.value,h,W().uniqueId)}})}}),_.z(_.a6,{data:function(){return W().moreFeedbackButton}},{buttonViewModel:function(d){return _.z(_.rk,{data:d.data,
className:"ytGenAiFeedbackFormViewModelMoreFeedbackButton"})}})))},"Tg"),"yt-gen-ai-feedback-form-view-model",{props:{data:_.TS},
unsafeExternallySettableAttributes:new Set(["tabindex"])});var iW=function(){return _.n.apply(this,arguments)||this};
_.k(iW,_.n);iW.prototype.created=function(){GKN(2200);this.ytPopupContainerBehavior.initPopupContainerBehavior(qz6);var F=_.WZ().resolve(_.rrT);F&&(F.container=this.ytPopupContainerBehavior);if(F=_.WZ().resolve(_.L1))F.container=this.ytPopupContainerBehavior;if(F=_.WZ().resolve(_.qu)){var W=this.ytPopupContainerBehavior;F.containerWasInjected?_.OB(Error("bj")):F.container=W}};
iW.prototype.ensurePopupBelowPlayer=function(F,W){var E=_.WZ().resolve(_.Fd(_.KQ));if(!E||!E.isOnWatch()||!_.WS())return!1;E=E.getCurrentPage().getPlayerContainer().getBoundingClientRect().bottom;_.cB().height>E+this.getPopupHeight(F,W)?(F.style.top="auto",F.style.bottom="0px"):(F.style.top=E+"px",F.style.bottom="auto");return!0};
iW.prototype.getPopupHeight=function(F,W){W&&(F.cachedPopupHeight=0);if(!F.cachedPopupHeight){W=0;var E=F.clientHeight,h=window.getComputedStyle(F);W+=parseInt(h.marginTop,10);W+=parseInt(h.marginBottom,10);F.cachedPopupHeight=E+W}return F.cachedPopupHeight};
iW.prototype.getElement=function(F){return document.createElement(F)};
_.T([_.J(usg.YtPopupContainerBehavior),_.Y("design:type",Object)],iW.prototype,"ytPopupContainerBehavior",void 0);_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],iW.prototype,"ytComponentBehavior",void 0);iW=_.T([_.y({disableElementRegistration:!0,is:"ytd-popup-container"})],iW);
_.r(iW,"ytd-popup-container",function(){if(nh$!==void 0)return nh$;var F=document.createElement("template");_.L(F,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-popup-container--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);return nh$=F},{mode:1});var d7K;var NmN={};NmN.YtLogYpcFlowCommandsBehavior=[_.FM.YtActionHandlerBehavior,{created:function(){this.logFlowCommandsMap_={"yt-log-ypc-flow-start-command":"handleLogYpcFlowStart_","yt-log-ypc-flow-dismiss-command":"handleLogYpcFlowDismiss_"}},
attached:function(){this.registerActionMap(this.logFlowCommandsMap_)},
detached:function(){this.unregisterActionMap(this.logFlowCommandsMap_)},
handleLogYpcFlowStart_:function(F){_.D(F,L4T)&&(F=_.D(F,L4T))&&(F.serializedTransactionFlowLoggingParams?_.HOI(F.serializedTransactionFlowLoggingParams):F.serializedYpcCancelFlowLoggingParams?(F=F.serializedYpcCancelFlowLoggingParams)&&_.fZ("ypcCancelFlowStarted","serializedYpcCancelFlowLoggingParams",F):F.serializedYpcResumeFlowLoggingParams?(F=F.serializedYpcResumeFlowLoggingParams)&&_.fZ("ypcResumeFlowStarted","serializedYpcResumeFlowLoggingParams",F):F.serializedYpcPauseFlowLoggingParams?(F=F.serializedYpcPauseFlowLoggingParams)&&
_.fZ("ypcPauseFlowStarted","serializedYpcPauseFlowLoggingParams",F):F.serializedYpcRefundFlowLoggingParams?(F=F.serializedYpcRefundFlowLoggingParams)&&ZnF("YPC_EVENT_TYPE_START",F):F.serializedYpcDeactivateFlowLoggingParams?(F=F.serializedYpcDeactivateFlowLoggingParams)&&_.fZ("ypcDeactivateFlowStarted","serializedYpcDeactivateFlowLoggingParams",F):F.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams&&(F=F.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams)&&_.fZ("ypcCancelFlowGoToPaymentProcessor",
"serializedYpcCancelFlowGoToPaymentProcessorLoggingParams",F))},
handleLogYpcFlowDismiss_:function(F){_.D(F,sH6)&&(F=_.D(F,sH6),F.serializedTransactionFlowLoggingParams?_.PUr(F.serializedTransactionFlowLoggingParams):F.serializedYpcCancelFlowLoggingParams?(F=F.serializedYpcCancelFlowLoggingParams)&&_.fZ("ypcCancelFlowCancelled","serializedYpcCancelFlowLoggingParams",F):F.serializedYpcResumeFlowLoggingParams?(F=F.serializedYpcResumeFlowLoggingParams)&&_.fZ("ypcResumeFlowCancelled","serializedYpcResumeFlowLoggingParams",F):F.serializedYpcPauseFlowLoggingParams?(F=
F.serializedYpcPauseFlowLoggingParams)&&_.fZ("ypcPauseFlowCancelled","serializedYpcPauseFlowLoggingParams",F):F.serializedYpcRefundFlowLoggingParams&&(F=F.serializedYpcRefundFlowLoggingParams)&&ZnF("YPC_EVENT_TYPE_CANCEL",F))}}];var Vq6={};Vq6.YtCancelRecurrenceBehavior=[_.Ok.YtComponentBehavior,_.i_z,{attached:function(){var F=this;Xex(this,function(W,E){return F.ypcCancelRecurrenceHandler(W,E)})},
ypcCancelRecurrenceHandler:function(F,W){var E=this;if(!W||!W.ypcCancelRecurrenceEndpoint)return!1;if(!W.ypcCancelRecurrenceEndpoint.params)return _.nW(Error("ul")),!0;_.W6(this.hostElement);var h=_.iz.instance,d=_.WZ().resolve(_.Fd(_.Ag));h&&_.rY(h,W)?_.T_(h,W).then(function(V){E.ypcCancelRecurrenceSuccess_(F,W,{data:V})},function(V){E.ypcCancelRecurrenceFailure_(F,W,V)}).thenCatch(function(){_.nW(Error("vl"))}):d?d.requestDataForServiceEndpoint(W).then(function(V){E.ypcCancelRecurrenceSuccess_(F,
W,V)},function(V){E.ypcCancelRecurrenceFailure_(F,W,V)}).thenCatch(function(){_.nW(Error("vl"))}):_.nW(Error("wl"));
return!0},
ypcCancelRecurrenceSuccess_:function(F,W,E){_.EZ(this.hostElement);E.data||(E={data:E});E.data&&E.data.actions&&_.Rj(this.hostElement,E.data.actions,this.hostElement);E.data.messageRenderer?Hnw(W.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams):(W=W.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams)&&_.fZ("ypcCancelFlowSucceeded","serializedYpcCancelFlowLoggingParams",W);_.hF(F,"yt-service-request-completed",E)},
ypcCancelRecurrenceFailure_:function(F,W,E){_.EZ(this.hostElement);Hnw(W.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams);_.hF(F,"yt-service-request-error",{error:E,params:[F,W]})}}];var U7g=function(F,W){_.Fe.call(this,W)};
_.k(U7g,F9$);var RVg={};RVg.YtCompleteTransactionBehavior=[_.Ok.YtComponentBehavior,_.i_z,{attached:function(){var F=this;Xex(this,function(W,E){return F.ypcCompleteTransactionHandler(W,E)})},
completeTransaction:function(F,W){var E=this;W={payments_payload:window.btoa(W.integratorData),buybucket_params:F.data.buybucketParams,offer_params:F.data.offerParams};var h=_.WZ().resolve(_.Ag),d=F.data.completeTransactionEndpoint,V=this.get("ypcCompleteTransactionEndpoint.actions",d);V&&_.Rj(this.hostElement,V,this.hostElement);return(V=_.iz.instance)&&_.rY(V,d)?_.T_(V,d,W).then(function(R){return!R||(R==null?0:R.error)?(R=E.get("data.serializedTransactionFlowLoggingParams",F),_.xT(new df("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",
R))):{data:R}}).then(function(R){return E.handleCompleteTransactionSuccess_(R,F)},function(){return E.handleCompleteTransactionFailure_(F)}):h.requestDataForServiceEndpoint(d,W).then(function(R){return E.handleCompleteTransactionSuccess_(R,F)},function(){return E.handleCompleteTransactionFailure_(F)})},
handleCompleteTransactionSuccess_:function(F,W){F.data||(F={data:F});if(F.data.messageRenderer)return _.xT(new U7g(F.data.messageRenderer));if(F.data.trackingParams){var E=_.JR(),h=_.Pf();E&&h&&_.y7(E,h,_.ve(F.data.trackingParams))}W=this.get("data.serializedTransactionFlowLoggingParams",W);Xc6(W);return _.e7(F)},
handleCompleteTransactionFailure_:function(F){F=this.get("data.serializedTransactionFlowLoggingParams",F);_.ib("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",F);return _.xT(new df("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",F))},
ypcCompleteTransactionHandler:function(F,W){var E=this;if(!W.ypcCompleteTransactionEndpoint)return!1;if(!W.ypcCompleteTransactionEndpoint.transactionParams)return _.nW(Error("xl")),!0;W.ypcCompleteTransactionEndpoint&&W.ypcCompleteTransactionEndpoint.gtmData&&_.kE(W.ypcCompleteTransactionEndpoint.gtmData);var h=_.WZ().resolve(_.Fd(_.Ag));if(h){_.W6(this.hostElement);var d=_.iz.instance;d&&_.rY(d,W)?_.T_(d,W).then(function(V){return!V||(V==null?0:V.error)?(V=E.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",
W),_.xT(new df("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",V))):{data:V}}).then(function(V){_.hF(F,"yt-service-request-completed");
E.ypcCompleteTransactionSuccess_(W,V)},function(){return E.ypcCompleteTransactionFailure_(W)}):h.requestDataForServiceEndpoint(W).then(function(V){_.hF(F,"yt-service-request-completed");
E.ypcCompleteTransactionSuccess_(W,V)},function(){return E.ypcCompleteTransactionFailure_(W)})}return!0},
ypcCompleteTransactionSuccess_:function(F,W){_.EZ(this.hostElement);W.data||(W={data:W});_.dW(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);W.data.messageRenderer||W.data.ypcResponseCode==="YPC_RESPONSE_CODE_ERROR"?this.ypcCompleteTransactionFailure_(F):(_.kE('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'),this.logTransactionEvent_("transactionFlowSucceeded",F));W.data.actions&&(F=TWK(W.data.actions),W=obK(W.data.actions),F.length&&_.UT(this.hostElement,
F),W.length&&_.Rj(this.hostElement,W,this.hostElement))},
ypcCompleteTransactionFailure_:function(F){_.EZ(this.hostElement);_.dW(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.logTransactionEvent_("transactionFlowFailed",F,"TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE")},
logTransactionEvent_:function(F,W,E){if(W=this.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",W))W={serializedTransactionFlowLoggingParams:W},E&&(W.errorType=E),_.Pc(F,W),_.JV()}}];var eV$={};eV$.YtEndpointHandlerWithYpcBehavior=[_.i_z,_.FM.YtActionHandlerBehavior,[{openWalletDialog:function(F,W,E,h,d,V,R){var M=this,g=_.G_();W=W.replace(/-/g,"+").replace(/_/g,"/");var t=_.Ij().get("hl");_.CWr(_.zF(_.r2),W,g.resolve,d,function(C){V&&V();g.reject(C)},t,function(C){return M.onServerBackendAnalyticEvent_(F,E,C)},this.onDialogClose_.bind(this),h,R);
return g.promise},
openFixFlowDialog:function(F,W,E,h){F=F.replace(/-/g,"+").replace(/_/g,"/");_.zF(_.r2).openFixFlowDialog(F,W,E,h)},
onDialogClose_:function(){_.dW(this,"yt-wallet-dialog-closed")},
onServerBackendAnalyticEvent_:function(F,W,E){_.hF(F,"yt-commerce-action-init-done");W&&_.UT(this.hostElement,[W,{backend_analytics:E}])}}],
_.R9.YtOpenPopupBehavior,[{listeners:{"yt-service-request-completed":"onUpdateFopServiceRequestCompleted_"},onUpdateFopServiceRequestCompleted_:function(F,W){F=this.get("data.nativeFlowEndpoint",W);W=this.get("data.fallbackEndpoint",W);F?_.UT(this.hostElement,[F]):W&&_.hF(this.hostElement,"yt-navigate",{endpoint:W})}}],
Vq6.YtCancelRecurrenceBehavior,RVg.YtCompleteTransactionBehavior,{listeners:{"yt-service-request-sent":"onServiceRequestSent_","yt-service-request-completed":"onGetCartServiceRequestCompleted_","yt-service-request-error":"onServiceRequestError_"},created:function(){this.buyFlowActionMap_={};this.ypcRegisterActionMapJobId_=0},
attached:function(){var F=this;Xex(this,function(W,E,h){return F.handleYPCEndpoint(W,E,h)});
this.ypcRegisterActionMapJobId_=_.sB(_.P0,function(){F.registerActionMap(F.buyFlowActionMap_)})},
detached:function(){var F=this;_.P0.cancelJob(this.ypcRegisterActionMapJobId_);_.sB(_.P0,function(){F.unregisterActionMap(F.buyFlowActionMap_)})},
handleYPCEndpoint:function(F,W,E){var h=W.ypcGetCartEndpoint;if(h){_.Z2("commerce_transaction");var d=h.gtmId;d&&_.xE(d);(h=h.gtmData)&&_.kE(h)}return this.get("ypcGetCartEndpoint.prefetchConfig.ypcGetCartPrefetchResponseDataConfig.encryptedPurchaseParams",W)!=null?(this.handleYPCGetCartEndpointWithPrefetch_(F,W),!0):this.get("ypcFixInstrumentEndpoint.encryptedFixInstrumentParameters",W)!=null?(this.handleYPCFixInstrumentEndpoint_(F,W),!0):W.ypcPauseSubscriptionCommand?(LJ6(this.hostElement,F,W,E),
!0):W.ypcResumeSubscriptionCommand?(Zfq(this.hostElement,F,W),!0):W.getPaymentInstrumentsParamsCommand?(kB6(this.hostElement,F,W),!0):W.ypcHandleTransactionEndpoint?(Dzu(this.hostElement,F,W,E),!0):!1},
handleYPCGetCartEndpointWithPrefetch_:function(F,W){var E=this;_.P5("ttcr",void 0,"commerce_transaction");W=W.ypcGetCartEndpoint;var h=W.prefetchConfig.ypcGetCartPrefetchResponseDataConfig,d=h.encryptedPurchaseParams,V=h.serializedTransactionFlowLoggingParams,R=h.serializedPaymentsClientParams,M=this.createGetCartResponseFromParams_(h,W.offerParams,V);this.changeButtonState(F,!0);_.HI(this.openWalletDialog(F,d,h.ypcLogWalletAnalyticDataEndpoint,V,function(){E.changeButtonState(F,!1)},function(){E.changeButtonState(F,
!1)},R).then(function(g){return E.handleBuyFlowCompleteCallback_(F,M,g)},function(){return E.handleOnLoadError(M)}).then(function(g){return void E.handlePostPurchaseSuccess_(F,M,g)},function(g){return void E.handlePostPurchaseError_(g)}),function(){E.changeButtonState(F,!1);
F instanceof Element&&_.hF(F,"yt-commerce-action-done")})},
createGetCartResponseFromParams_:function(F,W,E){var h=F.completeTransactionEndpoint,d=F.handleTransactionEndpoint;W={data:{offerParams:window.btoa(W),serializedTransactionFlowLoggingParams:E}};d?W.data.handleTransactionEndpoint=d:W.data.completeTransactionEndpoint=h;F.onCartDismissCommand&&(W.data.onCartDismissCommand=F.onCartDismissCommand);return W},
onGetCartServiceRequestCompleted_:function(F,W){var E=this,h=F.target;if(W&&W.data&&W.data.messageRenderer)_.EZ(this.hostElement),this.handleMessageRenderer_(W.data.messageRenderer),this.changeButtonState(h,!1);else{var d=this.get("data.encryptedPurchaseParams",W),V=this.get("data.upgradeDialogRenderer.ypcUpgradeDialogRenderer",W),R=this.get("data.ypcLogWalletAnalyticDataEndpoint",W),M=this.get("data.serializedPaymentsClientParams",W),g=this.getLoggingParams_(W);if(g||d||V)F.stopPropagation(),_.P5("ttcr",
void 0,"commerce_transaction"),d||_.EZ(this.hostElement),this.changeButtonState(h,!1),V?_.dW(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:_.b0("openPopupConfig").popupTypeMap.ypcUpgradeDialogRenderer,popup:{ypcUpgradeDialogRenderer:V}}},this]):d&&(this.changeButtonState(h,!0),F=null,F=this.openWalletDialog(h,d,R,g,function(){_.EZ(E.hostElement);E.changeButtonState(h,!1)},function(){_.EZ(E.hostElement);
E.changeButtonState(h,!1)},M),_.HI(F.then(function(t){return E.handleBuyFlowCompleteCallback_(h,W,t)},function(){return E.handleOnLoadError(W)}).then(function(t){return E.handlePostPurchaseSuccess_(h,W,t)},function(t){return E.handlePostPurchaseError_(t)}),function(){E.changeButtonState(h,!1);
_.hF(h,"yt-commerce-action-done")}))}},
onServiceRequestSent_:function(F,W){W&&W.endpoint&&W.endpoint.ypcGetCartEndpoint&&!W.endpoint.ypcGetCartEndpoint.prefetchConfig&&(this.get("commandLifeCycleConfig.onStartCommand",W.endpoint.ypcGetCartEndpoint)&&_.Rj(this.hostElement,[this.get("commandLifeCycleConfig.onStartCommand",W.endpoint.ypcGetCartEndpoint)],F.target),_.W6(this.hostElement),this.changeButtonState(F.target,!0))},
onServiceRequestError_:function(F,W){if(W&&W.params&&W.params.length){W=_.U(W.params);for(var E=W.next();!E.done;E=W.next())if((E=E.value)&&E.ypcGetCartEndpoint){this.get("commandLifeCycleConfig.onFailureCommand",E.ypcGetCartEndpoint)&&_.Rj(this.hostElement,[this.get("commandLifeCycleConfig.onFailureCommand",E.ypcGetCartEndpoint)],F.target);_.EZ(this.hostElement);this.changeButtonState(F.target,!1);break}}},
handleBuyFlowCompleteCallback_:function(F,W,E){var h=E.integratorData;return h==null||h===""||E.error!=null?(h=this.getLoggingParams_(W),String(E.error)==="-1"?(W.data.onCartDismissCommand&&_.Rj(this.hostElement,[W.data.onCartDismissCommand],F),_.xT(new df("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",h,!0))):_.xT(new df("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",h))):W.data.handleTransactionEndpoint?xzw(this.hostElement,W.data.handleTransactionEndpoint,{payments_payload:h,funds_guarantee_callback_client_data:E.integratorClientCallbackData}):
this.completeTransaction(W,E)},
handlePostPurchaseSuccess_:function(F,W,E){W=E.data;var h=!1,d,V;if(W&&((d=W.command)==null?0:(V=d.commandExecutorCommand)==null?0:V.commands)){var R,M;d=(R=W.command)==null?void 0:(M=R.commandExecutorCommand)==null?void 0:M.commands;for(R=0;R<d.length;R++)if(_.D(d[R],_.lTM)){h=!0;break}}h||(W&&W.gtmDatas&&W.gtmDatas.length?_.kE(W.gtmDatas[0]):_.kE('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'));E.data&&E.data.actions&&(W=TWK(E.data.actions),E=obK(E.data.actions),W.length&&
_.UT(this.hostElement,W),E.length&&_.Rj(this.hostElement,E,F))},
handlePostPurchaseError_:function(F){F&&F.payload&&F.payload.isUserDismiss||_.a_(Error("zl"))},
handleOnLoadError:function(F){F=this.getLoggingParams_(F);return _.xT(new df("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",F))},
getLoggingParams_:function(F){return this.get("data.serializedTransactionFlowLoggingParams",F)},
handleMessageRenderer_:function(F){var W=_.aW(F,"renderer"),E=_.b0("openPopupConfig");W==="confirmDialogRenderer"&&E&&_.dW(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:E.popupTypeMap[W],popup:F}},this])},
handleYPCFixInstrumentEndpoint_:function(F,W){var E=this,h=W.ypcFixInstrumentEndpoint;W=h.encryptedFixInstrumentParameters;this.logFixFopEvent_(h,"FIX_FOP_EVENT_TYPE_START");this.changeButtonState(F,!0);this.openFixFlowDialog(W,function(d,V){E.onFixFlowCompleteCallback_(h,d,V)},function(){return E.changeButtonState(F,!1)},function(){E.changeButtonState(F,!1);
E.logFixFopEvent_(h,"FIX_FOP_EVENT_TYPE_FAILURE","FIX_FOP_ERROR_TYPE_LOAD_FAILURE")})},
onFixFlowCompleteCallback_:function(F,W,E){var h=_.ju("payments.business.integration.scenario.FixInstrument");if(W==h.IntegratorCallbackType.ON_COMPLETE){W="FIX_FOP_EVENT_TYPE_CANCEL";var d=null;E.error!=null?E.error!=h.OnCompleteCallbackError.USER_CANCELLED&&(_.Rj(this.hostElement,[F.errorAction],this.hostElement),W="FIX_FOP_EVENT_TYPE_FAILURE",d="FIX_FOP_ERROR_TYPE_UNSPECIFIED"):(_.Rj(this.hostElement,[F.successAction],this.hostElement),W="FIX_FOP_EVENT_TYPE_SUCCESS");_.Rj(this.hostElement,[F.onFinishAction],
this.hostElement);this.logFixFopEvent_(F,W,d)}},
logFixFopEvent_:function(F,W,E){(F=F.serializedFixFopLoggingParams)?(W={eventType:W,serializedFixFopLoggingParams:F},E!=null&&(W.errorType=E),_.Pc("fixFopFlow",W),_.JV()):_.a_(Error("Al"))},
changeButtonState:function(F,W){_.c("enable_ypc_spinners")&&F&&(F.is==="yt-button-renderer"||F.is==="ytd-button-renderer")&&(F.disabled=W)}}];var Mq6=function(F){this.JSC$28634_clientRoot=F;this.feedbackCollectorActionMap={"yt-help-dialog-requested":HfK,"yt-feedback-dialog-requested":XBq,"yt-signal-action-help":Pb$,"yt-signal-action-send-feedback":Jgq,"yt-send-feedback-action":fP6,"yt-user-feedback-endpoint":OfN};_.G5(_.o_.getInstance(),this.feedbackCollectorActionMap,this.JSC$28634_clientRoot)},gqT;var Q1q=function(F){this.JSC$28639_clientRoot=F;this.downloadManagerActionMap={"yt-signal-action-delete-all-downloads-prompt":bfK.bind(null,this.JSC$28639_clientRoot),"yt-signal-action-delete-all-downloads":nuu,"yt-signal-action-delete-download":ygq,"yt-signal-action-delete-playlist-download":ifO,"yt-signal-action-install-pwa":wBK,"yt-signal-action-refresh-downloads":GB8,"yt-offline-video-endpoint":Sh$,"yt-offline-playlist-endpoint":mz8,"yt-update-local-app-setting-command":FV$,"yt-offline-orchestration-action-command":E3N,
"yt-signal-action-undo-delete-download":T2w,"yt-local-watch-history-command":NQP};_.G5(_.o_.getInstance(),this.downloadManagerActionMap,this.JSC$28639_clientRoot);_.lb.instance=new _.lb},zVF;var rd=function(){var F=_.n.apply(this,arguments)||this;F.actionMap={"yt-get-mdx-status":"handleGetMdxStatus_","yt-add-to-remote-queue-action":"handleAddToQueueAction_","yt-clear-remote-queue-action":"handleClearQueueAction_","yt-insert-in-remote-queue-action":"handleInsertInQueueAction_","yt-remove-from-remote-queue-action":"handleRemoveFromQueueAction_"};F.remoteApi_=null;return F};
_.k(rd,_.n);_.N=rd.prototype;
_.N.ready=function(){_.c("polymer_enable_mdx")&&(qkw({device:"Desktop",app:"youtube-desktop",appId:this.appId,loadCastApiSetupScript:_.c("mdx_load_cast_api_bootstrap_script"),enableDialLoungeToken:_.c("enable_dial_short_lived_lounge_token"),enableCastLoungeToken:_.c("enable_cast_short_lived_lounge_token")}),_.UB("yt-remote-connection-change",this.handleConnectionChange_,this),_.UB("yt-remote-receiver-availability-change",this.handleReceiverAvailabilityChange_,this),(this.remoteApi_=azO())&&this.remoteApi_.subscribe("remoteQueueChange",
this.handleRemoteQueueChange_,this))};
_.N.handleGetMdxStatus_=function(){return{connected:this.mdxConnected,receiverAvailable:this.receiverAvailable,receiverName:this.receiverName}};
_.N.handleConnectionChange_=function(F){(this.mdxConnected=F)?(F=X2w(),!F&&ZYO()&&X56()&&(F={key:"cast-selector-receiver",name:X56()}),F=F.name):F=null;this.receiverName=F;_.u5(this.remoteApi_);(this.remoteApi_=azO())&&this.remoteApi_.subscribe("remoteQueueChange",this.handleRemoteQueueChange_,this)};
_.N.handleReceiverAvailabilityChange_=function(){var F=Zyg();ZYO()&&_.Cy("yt-remote-cast-available")&&F.push({key:"cast-selector-receiver",name:"Cast..."});this.receiverAvailable=F.length>0};
_.N.handleRemoteQueueChange_=function(){var F=this.currentVideoId_,W=this.currentListId_,E=MA(this.remoteApi_);this.currentVideoId_=E.videoId;this.currentListId_=E.listId;this.currentVideoId_&&_.dW(this.hostElement,"yt-sync-with-remote-video",[this.currentVideoId_,_.c("polymer_enable_mdx_queue")?this.currentListId_:null,F,W])};
_.N.handleAddToQueueAction_=function(F){F=_.D(F,RLN);this.remoteApi_&&(F.videoId?this.remoteApi_.addVideo(F.videoId):F.playlistId&&this.remoteApi_.addPlaylist(F.playlistId))};
_.N.handleClearQueueAction_=function(){this.remoteApi_&&this.remoteApi_.clearPlaylist()};
_.N.handleInsertInQueueAction_=function(F){F=_.D(F,eL6);this.remoteApi_&&F.videoId&&this.remoteApi_.JSC$17478_insertVideo(F.videoId)};
_.N.handleRemoveFromQueueAction_=function(F){F=_.D(F,Mtu);this.remoteApi_&&F.videoId&&this.remoteApi_.JSC$17478_removeVideo(F.videoId)};
_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],rd.prototype,"ytActionHandlerBehavior",void 0);_.T([_.O(),_.Y("design:type",Object)],rd.prototype,"appId",void 0);_.T([_.O(),_.Y("design:type",Boolean)],rd.prototype,"mdxConnected",void 0);_.T([_.O(),_.Y("design:type",Boolean)],rd.prototype,"receiverAvailable",void 0);_.T([_.O(),_.Y("design:type",Object)],rd.prototype,"receiverName",void 0);_.T([_.O(),_.Y("design:type",Object)],rd.prototype,"currentVideoId_",void 0);
_.T([_.O(),_.Y("design:type",Object)],rd.prototype,"currentListId_",void 0);rd=_.T([_.$3({is:"yt-mdx-manager",disableElementRegistration:!0})],rd);_.r(rd,"yt-mdx-manager",void 0,{mode:2});var tqN;var CTq;var To=function(){var F=_.n.apply(this,arguments)||this;F.APP_IDS={ytr:3,ytm:5};F.JSC$18716_timeoutId_=0;F.actionMap={"yt-open-create-family-dialog":"open"};return F};
_.k(To,_.n);_.N=To.prototype;_.N.created=function(){GKN(2200)};
_.N.detached=function(){this.observer_&&this.observer_.disconnect()};
_.N.open=function(F,W){var E=this,h=F.serializedYpcFamilyCreateLoggingParams;this.JSC$18716_timeoutId_=setTimeout(this.abort_.bind(this,F.postFlowErrorEndpoint,h),3E4);W&&(this.onReadyCallback_=W);var d=_.Z(this.hostElement).querySelector("#unicorn-iframe");h&&h&&$yg("ypcFamilyCreateFlowStarted",h);_.vAo("family_creation",function(){var V=_.ju("gapi.family_creation.render");_.ju("gapi.config.update")("iframes/family_creation/url",E.getFamilyCreationUrlWithUnicornParams_());var R=3;F.appId&&F.appId in
E.APP_IDS&&(R=E.APP_IDS[F.appId]);R={authUser:_.b0("SESSION_INDEX")||0,clientId:R,darkmode:document.documentElement.hasAttribute("dark")?1:0,hl:_.b0("HL"),initialflow:[4,5,6,7],m:E.isMobile?1:0,onFlowComplete:E.onUnicornFlowComplete_.bind(E,F.postFlowSuccessEndpoint,h),onError:E.onUnicornFlowError_.bind(E,F.postFlowErrorEndpoint,h),onReady:E.onUnicornFlowReady_.bind(E,F.referencePcidParams)};V(d,R)})};
_.N.close=function(){_.Z(this.hostElement).querySelector("#dialog").close();this.observer_&&this.observer_.disconnect()};
_.N.onUnicornFlowComplete_=function(F,W){this.close();W&&W&&$yg("ypcFamilyCreateFlowSucceeded",W);_.hF(this.hostElement,"yt-navigate",{endpoint:F})};
_.N.onUnicornFlowError_=function(F,W){this.close();W&&$yg("ypcFamilyCreateFlowCancelled",W);_.hF(this.hostElement,"yt-navigate",{endpoint:F})};
_.N.onUnicornFlowReady_=function(F){var W=this;this.clearTimeout_();if(this.onReadyCallback_)this.onReadyCallback_();F&&_.ju("gapi.family_creation.setConfig")(0,F);this.observer_=new MutationObserver(function(){_.Z(W.hostElement).querySelector("#dialog").fit()});
this.observer_.observe(_.Z(this.hostElement).querySelector("#unicorn-iframe").querySelector("iframe"),{atttributes:!0,attributeFilter:["style"]});_.Z(this.hostElement).querySelector("#dialog").open()};
_.N.getFamilyCreationUrlWithUnicornParams_=function(){return _.b0("YTR_FAMILY_CREATION_URL")};
_.N.getCurrentUrl_=function(){return document.location.href};
_.N.abort_=function(F,W){this.clearTimeout_();this.onUnicornFlowError_(F,W)};
_.N.clearTimeout_=function(){clearTimeout(this.JSC$18716_timeoutId_)};
_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],To.prototype,"ytActionHandlerBehavior",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],To.prototype,"isMobile",void 0);_.T([_.O(),_.Y("design:type",Object)],To.prototype,"onReadyCallback_",void 0);_.T([_.O(),_.Y("design:type",Object)],To.prototype,"observer_",void 0);To=_.T([_.$3({is:"yt-create-family-dialog",disableElementRegistration:!0})],To);
_.r(To,"yt-create-family-dialog",function(){if(CTq===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-create-family-dialog--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.ypc.yt_create_family_dialog.yt.create.family.dialog.css.js--\x3e<tp-yt-paper-dialog id="dialog" with-backdrop="" class="style-scope yt-create-family-dialog">\n  <div id="unicorn-iframe" class="style-scope yt-create-family-dialog"></div>\n</tp-yt-paper-dialog>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);var W=F.content,E=W.insertBefore;tqN===void 0&&(tqN=document.createElement("template"));var h=tqN;E.call(W,h.content.cloneNode(!0),F.content.firstChild);CTq=F}F=CTq;return F},{mode:2});var Bmx;var vqN;var o5=function(){var F=_.n.apply(this,arguments)||this;F.STEP=1;F.BLOCK_ON=80;F.MIN_PROGESS=0;F.MAX_PROGESS=100;return F};
_.k(o5,_.n);_.N=o5.prototype;_.N.created=function(){this.boundNextProgress_=this.nextProgress_.bind(this)};
_.N.ready=function(){this.progress_=this.MIN_PROGESS;this.hostElement.hidden=!0;this.hostElement.setAttribute("aria-valuemin",String(this.MIN_PROGESS));this.hostElement.setAttribute("aria-valuemax",String(this.MAX_PROGESS));_.WZ().addProvider({provide:eJ6,useValue:this})};
_.N.start=function(){this.progress=this.MIN_PROGESS;this.hostElement.hidden=!1;window.requestAnimationFrame(this.boundNextProgress_)};
_.N.finish=function(){var F=this;this.progress=this.MAX_PROGESS;VaK(function(){F.progress==F.MAX_PROGESS&&(F.hostElement.hidden=!0)})};
_.N.nextProgress_=function(){this.progress>=this.BLOCK_ON||(this.progress+=this.STEP,window.requestAnimationFrame(this.boundNextProgress_))};
_.Sn.Object.defineProperties(o5.prototype,{progress:{configurable:!0,enumerable:!0,set:function(F){this.progress_=F;var W="scaleX("+F/this.MAX_PROGESS+")",E=_.Z(this.hostElement).querySelector("#progress").style;E.transform=W;E.webkitTransform=W;this.hostElement.setAttribute("aria-valuenow",String(F))},
get:function(){return this.progress_}}});
_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],o5.prototype,"ytComponentBehavior",void 0);o5=_.T([_.$3({is:"yt-page-navigation-progress",disableElementRegistration:!0})],o5);
_.r(o5,"yt-page-navigation-progress",function(){if(vqN===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-page-navigation-progress--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_page_navigation_progress.yt.page.navigation.progress.css.js--\x3e<div id="progress" class="style-scope yt-page-navigation-progress"></div>\n');F.content.insertBefore(_.m().content.cloneNode(!0),
F.content.firstChild);var W=F.content,E=W.insertBefore;Bmx===void 0&&(Bmx=document.createElement("template"));var h=Bmx;E.call(W,h.content.cloneNode(!0),F.content.firstChild);vqN=F}F=vqN;return F},{mode:2});var I$q={padding:"10px 16px","font-size":"32px","font-weight":"bold",background:"linear-gradient(135deg, rgba(131, 58, 180, 1) 0%, rgba(253, 29, 29, 1) 50%, rgba(252, 176, 69, 1) 100%)",color:"#fff","text-shadow":"1px 1px 3px rgba(255, 255, 255, 0.3)","border-radius":"15px"},ce8={"font-size":"12px","font-style":"italic"},D7F={padding:"8px 0","font-size":"14px","font-weight":"bold",color:"#f00"};_.Maq=function(){return _.e(function(F){_.gG(F)})};_.pK(_.GK(function(){var F=_.Jb(_.nLr);return _.z("yt-ephemeral-actions",{class:"ytEphemeralActionsHost","aria-live":"polite","aria-atomic":"true"},function(){var W;return(W=F())==null?void 0:W.announcement})},"Ug"),"yt-ephemeral-actions");var ZzF=new Map;var U1F=function(F,W){var E=this;this.handleError=F;this.logEventInternal=W;this.hasUnloaded=!1;self.document===void 0||self.addEventListener("beforeunload",function(){E.hasUnloaded=!0});
this.shouldLogTransactionEndedThisSession=Math.random()<=.2};
U1F.prototype.logError=function(F){this.handleError(F)};
U1F.prototype.logEvent=function(F,W){switch(F){case "IDB_DATA_CORRUPTED":_.c("idb_data_corrupted_killswitch")||this.logEventInternal("idbDataCorrupted",W);break;case "IDB_UNEXPECTEDLY_CLOSED":this.logEventInternal("idbUnexpectedlyClosed",W);break;case "IS_SUPPORTED_COMPLETED":_.c("idb_is_supported_completed_killswitch")||this.logEventInternal("idbIsSupportedCompleted",W);break;case "QUOTA_EXCEEDED":x7N(this,W);break;case "TRANSACTION_ENDED":this.shouldLogTransactionEndedThisSession&&Math.random()<=
.1&&this.logEventInternal("idbTransactionEnded",W);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":F=Object.assign({},W,{hasWindowUnloaded:this.hasUnloaded}),this.logEventInternal("idbTransactionAborted",F)}};
var x7N=function(F,W){_.CZ.getInstance().estimate().then(function(E){E=Object.assign({},W,{isSw:self.document===void 0,isIframe:self!==self.top,deviceStorageUsageMbytes:HzP(E==null?void 0:E.usage),deviceStorageQuotaMbytes:HzP(E==null?void 0:E.quota)});F.logEventInternal("idbQuotaExceeded",E)})};var Go=function(){var F=_.n.apply(this,arguments)||this;F.tabGesturesIsActive=!1;F.deprecateFullerscreenUi=_.c("web_watch_fullerscreen_deprecation_ui");F.hasDelegation=!1;F.darkerDarkTheme=_.c("web_darker_dark_theme");F.isFrostedGlassInitialized=!1;F.frostedGlassExp=_.c("web_frosted_glass");F.mastheadHiddenFocusWithinKillswitch=_.c("web_masthead_hidden_focus_within_killswitch");F.ephemeralActionsEnabled=_.c("web_ephemeral_actions");F.scrollAtTop=!0;F.guideScrollTop=0;F.isTheaterModeSession=_.l0("START_IN_THEATER_MODE");
F.iMaxTheaterMode=_.c("web_watch_imax_theater_mode");F.isFullWindowSession=_.l0("START_IN_FULL_WINDOW_MODE");F.hasCreateFamilyDialog=!1;F.mastheadHeight=56;F.networkStatusManager=new _.TX;F.actionMap={"yt-command-executor-command":"handleCommandWithCommandHandler","yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-edu-dismiss-action":"handleEduDismissAction","yt-edu-impression-action":"handleEduImpressionAction","yt-navigate-action":"onYtNavigateAction","yt-navigate-home-action":"onYtNavigateHomeAction",
"yt-player-fullscreen":"onPlayerFullscreen","yt-register-create-family-dialog":"onYtRegisterCreateFamilyDialog","yt-select-country-command":"handleCommandWithCommandHandler","yt-select-language-command":"handleSelectLanguageCommand","yt-set-push-notifications-enabled-command":"onSetPushNotificationsEnabledCommand","yt-signal-action-copy-debug-data":"onYtSignalActionCopyDebugData","yt-signal-action-enable-chrome-notifications":"onYtSignalActionEnableChromeNotifications","yt-signal-action-toggle-restricted-mode-on":"onYtSignalActionToggleRestrictedModeOnAction",
"yt-signal-action-toggle-restricted-mode-off":"onYtSignalActionToggleRestrictedModeOffAction","yt-signal-action-confirm-mentions-edu":"onYtSignalActionConfirmMentionsEdu","yt-signal-action-record-mentions-edu-impression":"onYtSignalActionRecordMentionsEduImpression","yt-signal-action-show-keyboard-shortcut-dialog":"onYtSignalActionShowKeyboardShortcutDialog","yt-signal-action-skip-navigation":"onYtSignalActionSkipNavigation","yt-signal-action-request-persistent-storage":"onYtSignalActionRequestPersistentStorage",
"yt-timed-command":"onYtTimedCommand","yt-window-resized":"onWindowResized","yt-window-scrolled":"onWindowScrolled","yt-invoke-instrument-manager-action":"onInvokeInstrumentManagerAction","yt-entity-update-command":"handleEntityUpdateCommand","yt-web-native-share-command":"handleCommandWithCommandHandler","yt-confirm-dialog-endpoint":"handleConfirmDialogEndpoint","yt-ad-feedback-endpoint":"handleOpenPopupNavigationEndpoints","yt-create-backstage-post-dialog-endpoint":"handleOpenPopupNavigationEndpoints",
"yt-manage-purchase-endpoint":"handleOpenPopupNavigationEndpoints","yt-modal-endpoint":"handleOpenPopupNavigationEndpoints","yt-unlimited-family-flow-endpoint":"handleOpenPopupNavigationEndpoints","yt-ypc-cancel-survey-endpoint":"handleOpenPopupNavigationEndpoints","yt-register-promo-command":"handleYtRegisterPromoCommand","yt-location-collection-command":"onYtLocationCollectionCommand","yt-get-location-command":"onYtGetLocationCommand","yt-log-flow-logging-event-command":"logFlowLoggingEventCommand",
"yt-save-command-to-session-storage-action":"handleSaveCommandToSessionStorage","yt-show-dma-consent-flow-command":"handleShowConsentPrimitive","yt-signal-action-show-dma-consent-flow":"handleShowConsentPrimitive","yt-show-mmg-notice-command":"handleShowConsentPrimitive","yt-signal-action-toggle-dark-theme-on":"handleSignalActionToggleDarkThemeOn","yt-signal-action-toggle-dark-theme-off":"handleSignalActionToggleDarkThemeOff","yt-signal-action-toggle-dark-theme-device":"handleSignalActionToggleDarkThemeDevice",
"yt-select-active-identity-endpoint":"handleSelectActiveIdentityEndpointInternal","yt-update-permission-role-command":"handleUpdatePermissionRoleCommand","yt-channel-creation-form-endpoint":"handleYtChannelCreationFormEndpoints","yt-show-engagement-panel-endpoint":"handleShowEngagementPanelEndpoint","yt-google-payment-billing-command":"handleCommandWithCommandHandler"};F.dynamicActionMap={"yt-run-attestation-command":function(W){var E=_.xmB.instance,h=_.D(W,_.V2_);return h?_.c("use_rta_manager_for_async")&&
GCK()?OKN(E,h,W.clickTrackingParams):fAN(E,h,W.clickTrackingParams):_.xT(Error("li"))}};
F.isFrostedGlassDisabled=!1;F.isChannelOrPlaylistPage=!1;return F};
_.k(Go,_.n);_.N=Go.prototype;_.N.created=function(){var F=_.WZ();_.c("kevlar_clear_duplicate_pref_cookie")&&_.sB(_.P0,function(){var W=_.BZ.get("PREF");W&&!/f\d=/.test(W)&&(W=_.N0("kevlar_duplicate_pref_cookie_domain_override"),document.cookie=W?"PREF=null;domain="+W+";expires=Thu, 01 Jan 1970 00:00:01 GMT":"PREF=null;domain=.www.youtube.com;expires=Thu, 01 Jan 1970 00:00:01 GMT")});
_.c("gzip_gel_with_worker")&&_.Xze();_.c("jspb_serialize_with_worker")&&v7$();_.c("web_worker_availability_check")&&XmN();_.c("nwl_init_killswitch")||CYP().then(function(){_.P0.addLowPriorityJob(OYx)});
this.pageManagerAttachedPromise=_.G_();this.ytdAppBehavior.loadDepsPromise=_.X8([this.ytdAppBehavior.loadDepsPromise,this.pageManagerAttachedPromise.promise]);this.scrollThrottle=new _.Nv(this.onThrottledScroll,200,this);_.c("external_fullscreen")&&(this.fullscreen=!1);this.boundOnTouchStart=this.onTouchStart.bind(this);Rog();KAF=!!_.ju("ytappsettings.initialized");Ce=_.ju("ytappsettings.previousValue");RyP=_.ju("ytappsettings.previousSnapshotTime");KAF||(KAF=!0,eyx());iYT();rFN();_.OG("DEFERRED_DETACH",
_.c("kevlar_tuner_should_defer_detach"));_.OG("REUSE_COMPONENTS",!0);_.OG("STAMPER_STABLE_LIST",!0);_.OG("SCHEDULED_LAZY_LIST",!0);_.OG("openPopupConfig",L26);_.OG("useClickHandler",!0);_.c("kevlar_shell_cleanup")&&_.P0.addLowPriorityJob(p08.bind(this,_.EY.caches));_.l0("IS_SHELL_LOAD")&&_.$b({shellStartupDurationMs:Math.round((0,_.KU)()-_.kb())});taO(this.networkStatusManager);_.c("kevlar_is_hiring")&&(console.log("%cYouTube.com is hiring!",U3N(I$q)),console.log("%cYouTube.com is the second largest website in the world, with hundreds of\nmillions of users and watch-hours per day. It makes you laugh, learn, and leaves\nyou amazed. Are there things that you love about YouTube? Things that you don't?\nHelp us make it better!",
U3N(ce8)),console.log("%cVisit http://go/join-youtube-web to apply today.",U3N(D7F)));_.RF6(F.resolve(_.gJ),1E3)};
_.N.ready=function(){this.guide.addEventListener("transitionend",this.processDrawerIronSelect.bind(this));this.guideInnerContent.addEventListener("scroll",this.ytRendererBehavior.markDirty.bind(this));var F=$1O();F&&!_.c("external_fullscreen_killswitch")&&document.addEventListener(F,this.setFullscreen.bind(this));(F=window.matchMedia("(prefers-color-scheme: dark)"))&&F.addEventListener&&F.addEventListener("change",this.onDeviceThemeChanged.bind(this));this.onDeviceThemeChanged()};
_.N.attached=function(){var F=this;_.ip().processSignal("ci");_.c("kevlar_passive_event_listeners")?this.hostElement.addEventListener("touchstart",this.boundOnTouchStart,_.l8b?{passive:!0}:void 0):this.hostElement.addEventListener("touchstart",this.boundOnTouchStart);_.xP(_.lZr(),"SUCCESS");this.updateIconSet();_.W5(this.guideInnerContent,!1);_.QV().initVisibilityObserver();this.guideService.guideElement=this.guide;var W=document.createElement("ytd-miniplayer"),E=_.Z(this.hostElement).querySelector("#content");
_.Z(this.hostElement).insertBefore(W,E);_.ip().processSignal("ma");_.WZ().resolve(_.GF).init(W);_.l0("IS_SHELL_LOAD")&&(E=document.createElement("ytd-network-status-banner"),_.Z(this.hostElement).insertBefore(E,W));_.c("kevlar_right_click_on_lockups")&&_.SM._onCaptureClick&&document.addEventListener("contextmenu",_.SM._onCaptureClick.bind(_.SM),!0);var h=function(){var d=_.S8("yt-page-navigation-progress");_.Z(F.hostElement).appendChild(d)};
setTimeout(function(){_.ip().parkOrScheduleJob(h,0,"eocs",16)},0);
_.c("service_worker_push_enabled")&&_.sB(_.P0,qBP);_.G5(_.o_.getInstance(),this.dynamicActionMap,this.hostElement);_.hF(this.hostElement,"ytd-app-attached");_.ip().processSignal("aa");Te8(this.hostElement);_.S5("gapi.load",_.vAo);this.networkStatusManager.listen("publicytnetworkstatus-online",this.onlineHandler.bind(this));this.networkStatusManager.listen("publicytnetworkstatus-offline",this.offlineHandler.bind(this));this.networkStatusManager.isNetworkAvailable()||this.offlineHandler();_.sB(_.P0,
function(){var d=document.createElement("ytd-video-preview");_.Z(_.Z(F.hostElement).querySelector("#video-preview")).appendChild(d)});
this.updateIsInlinePreviewDisabled();this.scheduleFrostedGlassInitialization();_.sB(_.P0,function(){g3$();F.registerViewTransitionTasks()});
if(_.bb()&&this.isAppDarkTheme()!==_.ff())this.onDarkModeToggledAction();else W=_.Oh()==="USER_INTERFACE_THEME_DARK",this.isAppDarkTheme()!==W&&(_.c("enable_dark_theme_only_on_shorts")?_.ao(_.c("enable_dark_theme_only_on_shorts_control")?window.location.href:_.YF(window.location.href,{theme:"dark"})):_.OB(new _.xC("Theme was not applied",this.getThemeSettingsToLog()))),this.standalone||(XUg=new Z7$(this.hostElement)),zVF=new Q1q(this.hostElement),gqT=new Mq6(this.hostElement),uMT=new wU6(this.hostElement)};
_.N.getThemeSettingsToLog=function(){var F=_.Oh()==="USER_INTERFACE_THEME_DARK";F=_.bb()?_.ff()?"os-dark":"os-light":F?"dark":"light";return{appTheme:this.isAppDarkTheme()?"dark":"light",prefsTheme:F,cookiesEnabled:_.IA()}};
_.N.detached=function(){_.ET(this.guideInnerContent);_.P0.cancelJob(ME);ME=0;_.P0.cancelJob(Q6);Q6=0;_.rgk(rHP);rHP.length=0;yHw=_.ggS=null;_.QV().dispose();_.c("kevlar_passive_event_listeners")&&this.hostElement.removeEventListener("touchstart",this.boundOnTouchStart);_.Yt(_.o_.getInstance(),XUg.playlistHandlerActionMap,XUg.JSC$28335_clientRoot);_.Yt(_.o_.getInstance(),zVF.downloadManagerActionMap,zVF.JSC$28639_clientRoot);_.Yt(_.o_.getInstance(),gqT.feedbackCollectorActionMap,gqT.JSC$28634_clientRoot);
for(var F=_.U(uMT.eventListeners),W=F.next();!W.done;W=F.next()){var E=_.U(W.value);W=E.next().value;E=E.next().value;E=_.U(E);for(var h=E.next();!h.done;h=E.next()){var d=_.U(h.value);h=d.next().value;d=d.next().value;W.removeEventListener(h,d)}}_.Yt(_.o_.getInstance(),uMT.autonavPauseActionMap,uMT.JSC$17663_clientRoot)};
_.N.updateIsInlinePreviewDisabled=function(){this.isInlinePreviewDisabled=_.Ij().getFlag(186)};
_.N.computeIsInlinePreviewEnabled=function(F,W,E){return!E&&_.d6w({miniplayerIsActive:F,miniplayerPlaybackState:W})};
_.N.dispatchFrostedGlassMode=function(){this.ytdReduxBehavior.dispatch(_.dR({type:"SET_FROSTED_GLASS_MODE",payload:!_.c("web_frosted_glass")||this.isFrostedGlassDisabled?"none":!this.isFrostedGlassInitialized&&this.applyFrostedGlassToChipBar?"loading-with-chipbar":this.isFrostedGlassInitialized||this.applyFrostedGlassToChipBar?this.applyFrostedGlassToChipBar?"with-chipbar":"without-chipbar":"loading-without-chipbar"}))};
_.N.computeIsFrostedGlassDisabled=function(F,W,E,h){return F||W||E||h&&_.c("web_frosted_glass_disable_watch")};
_.N.computeIsHomePage=function(F,W){if(!F||W==null||!W.endpoint)return!1;var E;return((E=_.D(W.endpoint,_.BB))==null?void 0:E.browseId)==="FEwhat_to_watch"};
_.N.updateIsChannelOrPlaylistPage=function(){if(_.c("web_frosted_glass")){var F,W,E=(W=(F=_.WZ().resolve(_.Fd(_.KQ)))==null?void 0:F.getCurrentPage())==null?void 0:W.pageSubtype;this.isChannelOrPlaylistPage=E?["channel","channels","playlist"].includes(E):!1}};
_.N.scheduleFrostedGlassInitialization=function(){var F=this;_.c("web_frosted_glass")&&_.ip().parkOrScheduleJob(function(){F.isFrostedGlassInitialized=!0},0,_.OE(["eocs",
"cr"]),300)};
_.N.isInlinePreviewEnabledChanged=function(){this.ytdReduxBehavior.dispatch(_.aju(this.isInlinePreviewEnabled));this.ytdReduxBehavior.dispatch(_.dR({type:"SET_SHARED_INLINE_PREVIEW_ENABLED",payload:this.isInlinePreviewEnabled}));this.ytdReduxBehavior.dispatch(_.dR({type:"SET_SHARED_ANIMATED_THUMBNAIL_ENABLED",payload:!this.isInlinePreviewDisabled}))};
_.N.onlineHandler=function(){this.ytdReduxBehavior.store.dispatch(rbF(!0))};
_.N.onYtSignalActionRequestPersistentStorage=function(){if(!_.c("request_persistent_storage_killswitch")){var F=_.WZ().resolve(_.huq);F.cachedPersistStatePromise||(F.cachedPersistStatePromise=Ujq())}};
_.N.handleYtChannelCreationFormEndpoints=function(F){F&&this.ytComponentBehavior.resolveCommand(F)};
_.N.handleShowEngagementPanelEndpoint=function(F){F&&this.ytComponentBehavior.resolveCommand(F)};
_.N.offlineHandler=function(){this.ytdReduxBehavior.store.dispatch(rbF(!1))};
_.N.initIconDefs=function(F,W,E){var h=document.createElement("iron-iconset-svg");h.name=F;F=document.createElementNS("http://www.w3.org/2000/svg","svg");h.appendChild(F);F.appendChild(W);if(E)for(var d in E)h[d]=E[d];document.body.appendChild(h);return h};
_.N.onWindowResized=function(){_.dW(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);var F=_.T1O.getInstance();F.documentWidth_=document.body.clientWidth;RKq(F)};
_.N.onWindowScrolled=function(){var F=_.WZ().resolve(_.KQ).getCurrentPage();if(F!=null&&F.getScrollTop){var W=this.ytdReduxBehavior,E=W.dispatch;F=F.getScrollTop()<=0;E.call(W,_.dR({type:"SET_SCROLL_AT_TOP",payload:F}))}};
_.N.guideIsVisibleButNotPersistentSelectorChanged=function(){var F=_.WZ().resolve(_.KQ).getCurrentPage();this.getCurrentPageScrollableElementType()==="HTML"&&this.guideIsVisibleButNotPersistent?(document.body.style.overflowY="scroll",this.guideScrollTop=F.getScrollTop(),document.body.classList.add("lock-scrollbar"),document.body.style.top="-"+this.guideScrollTop+"px"):document.body.classList.contains("lock-scrollbar")&&(document.body.style.overflowY="",document.body.style.top="",document.body.classList.remove("lock-scrollbar"),
F.setScrollTop(this.guideScrollTop));_.Nc(this.hostElement,"yt-rich-grid-layout-refreshed")};
_.N.getCurrentPageScrollableElementType=function(){var F=_.WZ().resolve(_.KQ).getCurrentPage();if(F&&F.getPageScrollingElement())return F.getPageScrollingElement().nodeName};
_.N.observeGuideVisibility=function(){var F=_.T1O.getInstance(),W=this.miniGuideVisible;F.guidePersistentAndVisible_=this.guidePersistentAndVisible;F.miniGuideVisible_=W;RKq(F)};
_.N.handleEduDismissAction=function(F){F&&F.eduDismissAction&&(_.dW(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]),_.noc.getInstance(),_.W2.set(F.eduDismissAction.key+"-dismissed",!0))};
_.N.handleEduImpressionAction=function(F){if(F&&F.eduImpressionAction){var W=_.noc.getInstance();F=F.eduImpressionAction.key;W.JSC$10811_eduDisplayedThisLoad_[_.lCH[F].setKey||F]=!0;_.W2.set(F+"-impression",parseInt(_.W2.get(F+"-impression")||0,10)+1)}};
_.N.onYtSignalActionConfirmMentionsEdu=function(){_.dW(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]);_.d_.getInstance();_.hl.set("edu-dismissed",!0)};
_.N.onYtSignalActionRecordMentionsEduImpression=function(){_.d_.getInstance();var F=_.hl.set,W=parseInt(_.hl.get("edu-impressions"),10);F.call(_.hl,"edu-impressions",(isFinite(W)?W:0)+1)};
_.N.onYtPageManagerAttached=function(F){var W;((W=_.oo(F))==null?void 0:W.id)==="page-manager"&&this.pageManagerAttachedPromise.resolve()};
_.N.onInvokeInstrumentManagerAction=function(F,W){fGg(W,F)};
_.N.updateIconSet=function(){var F=this.hostElement.querySelector("#masthead");if(F){var W=_.Fm(F),E=W.querySelector("g#yt-logo-updated");E&&(F=document.createElementNS("http://www.w3.org/2000/svg","defs"),F.appendChild(E.cloneNode(!0)),(W=W.querySelector("g#yt-logo-red-updated"))&&F.appendChild(W.cloneNode(!0)),this.initIconDefs("yt-logos-ext",F))}};
_.N.updateMastheadData=function(){var F=this,W,E,h,d,V;return _.e(function(R){if(R.nextAddress==1){W=F.data;E=F.hostElement.querySelector("#masthead");if(!E)return R.return();_.wT(F,function(){E.data=F.topbarData});
if(!F.get("response.topbar",W)||F.get("response.topbar.responseContext.maxAgeSeconds",W)===0)return R.jumpTo(0);if(h=_.WZ().resolve(_.Gu))return _.Q(R,h(),6);d=_.WZ().resolve(_.UL);return _.Q(R,d.put("service:topbar:fallback",new _.RG({innertubeResponse:F.get("response.topbar",W)})),0)}return(V=R.yieldResult)?_.Q(R,V.put("service:topbar:fallback",new _.RG({innertubeResponse:F.get("response.topbar",W)})),0):R.jumpTo(0)})};
_.N.computeTopbarData=function(F){if(!F)return null;var W;return this.isShortsPage&&this.topbarData&&!_.D((W=F.response)==null?void 0:W.topbar,uxO)?this.topbarData:F.response&&"topbar"in F.response?_.D(F.response.topbar,uxO)||null:null};
_.N.onSetTheaterModeEnabled=function(F,W){this.isTheaterModeSession=W.enabled;this.setTheaterModeStyles(W.enabled)};
_.N.setTheaterModeStyles=function(){this.setMastheadTheme();this.iMaxTheaterMode&&this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode())};
_.N.onDarkModeToggledAction=function(){var F=_.gV(window.location.href);if(!_.DeR(F)){(F=!!_.Gk(window.location.href).themeRefresh)&&_.OB(new _.xC("themeRefresh param is in url.",this.getThemeSettingsToLog()));if(!F){eyx();F={themeRefresh:1};var W=_.WZ().resolve(_.KQ);if(W.isOnWatch()){var E,h;W=((E=W.getPlayerFromWatch())==null?void 0:(h=E.getPlayer())==null?void 0:h.getCurrentTime())||0;W>=1&&(F.time_continue=Math.floor(W))}_.IA()||_.Oh()!=="USER_INTERFACE_THEME_DARK"||(F.theme="dark");_.ao(_.YF(window.location.href,
F))}_.c("web_appshell_refresh_trigger")&&_.EY.caches&&this.refreshAppShellResponse();E=_.jr(window.location.href);_.g7(_.WZ().resolve(_.QC),_.pg(E,"theme"))}};
_.N.onYtSignalActionToggleRestrictedModeOnAction=function(){this.setRestrictedMode(!0)};
_.N.onYtSignalActionToggleRestrictedModeOffAction=function(){this.setRestrictedMode(!1)};
_.N.onPlayerFullscreen=function(F){_.Kg();this.playerFullscreen=F};
_.N.setRestrictedMode=function(F){var W=_.Ij();_.c5(0,58,F);W.save();_.WZ().resolve(_.g_).reload()};
_.N.onPageChanged=function(F){F.detail.newPageType==="ytd-watch-flexy"||F.detail.newPageType==="ytd-watch-fixie"||F.detail.newPageType==="ytd-watch-grid"?this.ytdReduxBehavior.dispatch(_.bv("WEB_PAGE_TYPE_WATCH")):F.detail.newPageType==="ytd-shorts"?this.ytdReduxBehavior.dispatch(_.bv("WEB_PAGE_TYPE_SHORTS")):F.detail.newPageType==="ytd-browse"&&F.detail.newPageSubtype==="mini_app"?this.ytdReduxBehavior.dispatch(_.bv("WEB_PAGE_TYPE_MINI_APP")):_.c("web_frosted_glass")&&F.detail.newPageType==="ytd-browse"?
this.ytdReduxBehavior.dispatch(_.bv("WEB_PAGE_TYPE_BROWSE")):this.ytdReduxBehavior.dispatch(_.bv("WEB_PAGE_TYPE_UNKNOWN"));F.detail.oldPageType&&this.setMastheadTheme();this.isFullWindowSession&&this.setFullscreen();this.updateIsInlinePreviewDisabled()};
_.N.onPageDataUpdated=function(){this.updateIsChannelOrPlaylistPage()};
_.N.onGuideToggleTap=function(){_.hF(this.hostElement,"yt-guide-toggle")};
_.N.onGuideToggleHover=function(){_.hF(this.hostElement,"yt-guide-hover")};
_.N.isTheaterMode=function(){return this.isWatchPage&&this.isTheaterModeSession};
_.N.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.N.setMastheadTheme=function(){var F=_.Fm(this.hostElement).querySelector("#masthead");F&&(F.dark=F.isDarkThemeForced||this.isTheaterMode()||this.isAppDarkTheme(),F.isDarkThemeForced=!1)};
_.N.onRequestPanelModeChange=function(F,W){this.hideHeaderShadow=W.mode!=="seamed"};
_.N.onGuideOpenButtonHover=function(){this.renderGuide=!0};
_.N.onDrawerIronSelect=function(F){_.oo(F).id==="guide"&&this.processDrawerIronSelect()};
_.N.processDrawerIronSelect=function(){this.ytRendererBehavior.markDirty();var F="closed";this.guide.opened&&(this.renderGuide=!0,this.guide.persistent||(F="opened"));_.hF(this.hostElement,"yt-autonav-pause-guide-"+F)};
_.N.onAddElementToApp=function(F){_.Z(this.hostElement).appendChild(F.detail)};
_.N.onThrottledScroll=function(){var F=_.WZ().resolve(_.KQ).getCurrentPage();F&&(this.scrollAtTop=F.getScrollTop()<=0);this.mastheadHidden=this.canHideMasthead()};
_.N.canHideMasthead=function(){return this.scrollAtTop&&!!this.fullscreen};
_.N.setFullscreen=function(){if(_.c("external_fullscreen")||!this.isWatchPage){var F=_.c("kevlar_fullerscreen_root_only_killswitch")?!!_.Kg():!!_.Kg()&&_.Kg()===document.documentElement;F=(this.isWatchPage||_.c("web_fullscreen_shorts")&&this.isShortsPage||this.isMiniAppPage)&&(F||this.isFullWindowSession);this.fullscreen!==F&&((this.fullscreen=F)&&_.Nc(this.hostElement,"yt-close-all-popups-action"),this.isShortsPage&&(_.uC().dispatch(_.iUN(this.fullscreen)),this.setFullscreenLoggingForShorts(this.fullscreen)),
this.updateScrollAndMasthead(this.isWatchPage&&this.fullscreen,this.isMiniAppPage&&this.fullscreen,this.isShortsPage&&this.fullscreen,this.isWatchPage&&this.isTheaterMode()),_.dW(this.hostElement,"yt-fullscreen-change-action",[this.fullscreen]))}};
_.N.setFullscreenLoggingForShorts=function(F){var W,E,h;return _.e(function(d){if(d.nextAddress==1)return _.Q(d,(W=_.WS())==null?void 0:W.getPlayerPromise(),2);E=d.yieldResult;(h=E)==null||h.setAppFullscreen(F);_.gG(d)})};
_.N.updateMastheadCssHeight=function(){var F=this.mastheadHeight;this.fullscreen&&(F=0);_.V9(this.hostElement,{"--ytd-masthead-height":F+"px","--ytd-masthead-height-absolute":this.mastheadHeight+"px"})};
_.N.updateNetworkStatusBannerDisplayStatus=function(){var F="unset";this.fullscreen&&(F="none");_.V9(this.hostElement,{"--ytd-network-status-banner-display":F})};
_.N.updateNetworkStatusBannerCssHeight=function(){var F="unset";this.fullscreen&&(F="0px");_.V9(this.hostElement,{"--ytd-network-status-banner-max-height":F})};
_.N.updateScrollAndMasthead=function(F,W,E,h){this.iMaxTheaterMode||(h=!1);var d=_.WZ().resolve(_.KQ).getCurrentPage();F||W||h?(document.body.classList.add("no-scroll"),d.pageScrollElement=this.hostElement,this.scrolling=!0,this.hostElement.addEventListener("scroll",_.UO(this,this.onScroll)),d.setScrollTop(0),_.V9(this.hostElement,{"--ytd-app-fullerscreen-scrollbar-width":_.Jp()+"px"})):E?_.hF(this.hostElement,"yt-guide-close"):(this.isShortsPage&&_.hF(this.hostElement,"yt-guide-show"),document.body.classList.remove("no-scroll"),
d.pageScrollElement=null,this.scrolling=!1,this.hostElement.removeEventListener("scroll",_.UO(this,this.onScroll)));this.mastheadHidden=F||W||E;this.updateMastheadCssHeight();_.c("network_status_banner_display_none")?this.updateNetworkStatusBannerDisplayStatus():this.updateNetworkStatusBannerCssHeight()};
_.N.onScroll=function(){this.ytRendererBehavior.markDirty();this.scrollThrottle.fire()};
_.N.onYtNavigateAction=function(F){F=this.get("navigateAction.endpoint",F);_.hF(this.hostElement,"yt-navigate",{endpoint:F})};
_.N.onYtRegisterCreateFamilyDialog=function(){if(!this.hasCreateFamilyDialog){var F=document.createElement("yt-create-family-dialog");_.Z(this.hostElement).appendChild(F);this.hasCreateFamilyDialog=!0}};
_.N.onSetPushNotificationsEnabledCommand=function(F){var W=this,E=_.D(F,wiK);E&&typeof E.enabled==="boolean"&&(Notification.permission!=="granted"?xyO().then(function(){Notification.permission==="granted"?(dyF(!E.enabled).then(Uy8),E.successAction&&_.UT(W.hostElement,[E.successAction])):E.failureAction&&_.UT(W.hostElement,[E.failureAction])}):(dyF(!E.enabled).then(Uy8),E.successAction&&_.UT(this.hostElement,[E.successAction])))};
_.N.onYtSignalActionEnableChromeNotifications=function(){k5T(!0)};
_.N.onOpenHotkeyDialog=function(){this.topbarData.hotkeyDialog&&this.ytOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:{hotkeyDialogRenderer:_.D(this.topbarData.hotkeyDialog,mdq)}}})};
_.N.onYtSignalActionShowKeyboardShortcutDialog=function(){_.dW(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);this.onOpenHotkeyDialog()};
_.N.onYtEndpointChangeHandler=function(F,W){var E=_.zF(_.MX);E.pendingPrefetchJob_&&(W=!(!W||W.autonav!="1"),E.pendingPrefetchJob_.resolve(F&&_.Q9R(F)?_.zJR(F,W):""),E.pendingPrefetchJob_=null);_.dW(this.hostElement,"yt-pause-active-page-context");_.dW(this.hostElement,"ytd-log-youthere-nav");_.dW(this.hostElement,"yt-prepare-page-dispose")};
_.N.handleCommandWithCommandHandler=function(F,W){_.Ru.instance.resolveCommand(F,{form:{element:W}})};
_.N.onYtTimedCommand=function(F){var W=this;F=_.D(F,bHP);var E=F.command;E&&_.JG(_.P0,function(){var h=_.D(E,_.tte);h?(_.Ru.instance.resolveCommand(E),W.maybeLogGetAnswerRequestTick(h)):_.Rj(W.hostElement,[E],W.hostElement)},F.timeoutMs||0)};
_.N.maybeLogGetAnswerRequestTick=function(F){F&&F.isFirstRequest&&(_.Z2("search_overview_answer"),_.P5("so_rq",void 0,"search_overview_answer"))};
_.N.onYtSignalActionSkipNavigation=function(){var F=_.WZ().resolve(_.KQ).getCurrentPage();_.SQ(F)};
_.N.onYtSignalActionCopyDebugData=function(){OnN()};
_.N.handleEntityUpdateCommand=function(F){_.CV(_.D(F,_.tfU).entityBatchUpdate,this.ytdReduxBehavior.store)};
_.N.logFlowLoggingEventCommand=function(F){if(F=_.D(F,_.dxw))if(F.eventType==="FLOW_LOGGING_EVENT_CLASSIFICATION_START_EVENT"){var W=F.flowEventNamespace,E=F.flowEventType,h=F.flowType;h&&W&&E&&_.N5n(_.Mz(W,E,F.flowEventMetadata),h)}else{W=_.Qc();E=F.flowEventNamespace;h=F.flowEventType;var d=F.flowType;d&&E&&h&&_.g2(W,_.Mz(E,h,F.flowEventMetadata),d,F.flowNonce)}};
_.N.onGuideTouchStart=function(){this.guideScrolledByTouch=!0};
_.N.onGuideTouchEnd=function(){this.guideScrolledByTouch=!1};
_.N.onTouchStart=function(){var F=_.zS();_.JR()&&_.jc(F.JSC$10962_screenManager,{visualElement:F.ve})};
_.N.handleSelectLanguageCommand=function(F){if(F=_.D(F,o5q).hl){var W=_.Ij();W.set("hl",F);W.save();_.WZ().resolve(_.g_).reload()}};
_.N.handleConfirmDialogEndpoint=function(F){(F=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(F))&&this.ytOpenPopupBehavior.openPopup(F)};
_.N.handleOpenPopupNavigationEndpoints=function(F,W){_.c("web_button_rework")&&(F=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(F))&&this.ytOpenPopupBehavior.openPopup(F,W)};
_.N.handleSaveCommandToSessionStorage=function(F){if(F=_.D(F,_.QZp)){var W=F.key;W&&F.command&&window.sessionStorage.setItem(W,JSON.stringify(F.command))}};
_.N.refreshAppShellResponse=function(){navigator.serviceWorker&&navigator.serviceWorker.ready.then(function(F){F&&F.active&&F.active.postMessage({type:"refresh_shell"})}).catch(function(F){F.name!=="SecurityError"&&_.a_(F)})};
_.N.onDeviceThemeChanged=function(){var F=_.ff();_.c5(_.Ij(),185,F);_.Ij().save()};
_.N.handleYtRegisterPromoCommand=function(F){if(_.D(F,YP6)){var W=_.WZ().resolve(_.KQ).getCurrentPage()||this.hostElement;hJN().registerPromoCommand(_.D(F,YP6),W)}};
_.N.onYtNavigateHomeAction=function(){if(!_.c("kevlar_miniplayer_navigate_home_from_app_killswitch")){var F,W,E,h,d=(h=(F=this.topbarData)==null?void 0:(W=F.logo)==null?void 0:(E=W.topbarLogoRenderer)==null?void 0:E.endpoint)!=null?h:_.xQ;this.ytComponentBehavior.resolveCommand(d)}};
_.N.onYtLocationCollectionCommand=function(F){ezq(_.D(F,VtF))};
_.N.onYtGetLocationCommand=function(F){ujK(_.D(F,NZP),this)};
_.N.updateRenderGuideFromBinding=function(F){this.renderGuide=F.detail.value};
_.N.updateGuidePersistentAndVisibleFromBinding=function(F){this.guidePersistentAndVisible=F.detail.value};
_.N.updateMiniGuideVisibleFromBinding=function(F){this.miniGuideVisible=F.detail.value};
_.N.onThemeSelected=function(F,W){var E=_.Ij(),h=F||W?F:_.ff(),d=(h&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!h&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.DeR(_.gV(window.location.href));_.c5(0,165,F);_.c5(0,174,W);E.save();d&&_.dW(this.hostElement,"yt-dark-mode-toggled-action",[h]);_.dW(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.N.getCurrentTheme=function(){return _.bb()?this.isAppDarkTheme()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.Oh()};
_.N.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.N.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.N.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
_.N.handleShowConsentPrimitive=function(F){var W=this,E,h;return _.e(function(d){if(d.nextAddress==1){try{E=(h=_.WS())==null?void 0:h.getPlayerPromise()}catch(V){}return _.Q(d,$3K(F,E),2)}_.dW(W.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);_.gG(d)})};
_.N.handleSelectActiveIdentityEndpointInternal=function(F){_.PB();F=_.D(F,_.XPa);if(F!=null&&F.supportedTokens){F=_.U(F.supportedTokens);for(var W=F.next();!W.done;W=F.next())W=W.value,W.accountSigninToken&&_.ao(W.accountSigninToken.signinUrl,void 0,void 0,window.top)}};
_.N.handleUpdatePermissionRoleCommand=function(F){if(F=_.D(F,_.ZBM)){var W;this.hasDelegation=!((W=_.D(F.renderer,_.$HT))==null||!W.status)}};
_.N.registerViewTransitionTasks=function(){var F=this,W=_.WZ().resolve(_.Fd(_.xX));if(W){var E,h=(E=this.guide)==null?void 0:E.querySelector("#scrim"),d,V=(d=this.guide)==null?void 0:d.querySelector("#contentContainer");h&&V&&(E={beforeTransition:function(){var R;(R=F.guide)!=null&&R.persistent||(h.style.viewTransitionName="app-drawer-scrim",V.style.viewTransitionName="app-drawer-container")},
afterTransition:function(){var R;(R=F.guide)!=null&&R.persistent||(h.style.viewTransitionName="",V.style.viewTransitionName="")}},Fz(W,"slide",E),Fz(W,"zoom",E))}};
_.Sn.Object.defineProperties(Go.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){return"youtube"}},
applyFrostedGlassToChipBar:{configurable:!0,enumerable:!0,get:function(){return _.c("web_frosted_glass")&&this.isHomePage&&this.chipBarIsSticky}}});
_.Sn.Object.defineProperties(Go,{template:{configurable:!0,enumerable:!0,get:function(){if(d7K===void 0){var F=document.createElement("template");_.L(F,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-app--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-guide-manager id="guide-service" disabled="[[standalone]]" guide-persistent-and-visible="[[guidePersistentAndVisible]]" mini-guide-visible="[[miniGuideVisible]]" render-guide="[[renderGuide]]" on-guide-persistent-and-visible-changed="updateGuidePersistentAndVisibleFromBinding" on-mini-guide-visible-changed="updateMiniGuideVisibleFromBinding" on-render-guide-changed="updateRenderGuideFromBinding" class="style-scope ytd-app">\n</yt-guide-manager>\n<yt-mdx-manager class="style-scope ytd-app"></yt-mdx-manager>\n<yt-playlist-manager class="style-scope ytd-app"></yt-playlist-manager>\n<yt-hotkey-manager class="style-scope ytd-app"></yt-hotkey-manager>\n<div id="content" class="style-scope ytd-app">\n  <div id="frosted-glass" class$="[[frostedGlassMode]] style-scope ytd-app"></div>\n  <div id="masthead-container" class="style-scope ytd-app">\n    <slot name="masthead" class="style-scope ytd-app"></slot>\n  </div>\n  <tp-yt-app-drawer id="guide" align="start" role="navigation" class="style-scope ytd-app">\n    <div id="guide-wrapper" class="style-scope ytd-app">\n      <div id="guide-spacer" class="style-scope ytd-app"></div>\n      <div id="guide-content" class="style-scope ytd-app">\n        <div id="header" hidden="[[guidePersistentAndVisible]]" class="style-scope ytd-app">\n          \n          <yt-icon-button id="guide-button" aria-label$="[[menuStrings.GUIDE_ALT_LABEL]]" pressed="true" toggleable="true" on-mouseenter="onGuideToggleHover" on-tap="onGuideToggleTap" class="style-scope ytd-app">\n            <yt-icon id="guide-icon" icon="yt-icons:menu" class="style-scope ytd-app"></yt-icon>\n          </yt-icon-button>\n          <ytd-topbar-logo-renderer country-code="[[topbarData.countryCode]]" data="[[topbarData.logo.topbarLogoRenderer]]" disable-upgrade$="[[guideIsVisibleButNotPersistent]]" class="style-scope ytd-app">\n          </ytd-topbar-logo-renderer>\n        </div>\n        <div id="guide-inner-content" on-touchstart="onGuideTouchStart" on-touchend="onGuideTouchEnd" class="style-scope ytd-app">\n          <template is="dom-if" if="[[renderGuide]]" class="style-scope ytd-app">\n            <ytd-guide-renderer id="guide-renderer" class="style-scope ytd-app">\n              <slot name="guide-links-primary" slot="guide-links-primary" class="style-scope ytd-app"></slot>\n              <slot name="guide-links-secondary" slot="guide-links-secondary" class="style-scope ytd-app"></slot>\n              <slot name="vat-notice" slot="vat-notice" class="style-scope ytd-app"></slot>\n              <slot name="copyright" slot="copyright" class="style-scope ytd-app"></slot>\n            </ytd-guide-renderer>\n          </template>\n        </div>\n      </div>\n    </div>\n  </tp-yt-app-drawer>\n  <ytd-mini-guide-renderer disable-upgrade$="[[!miniGuideVisible]]" hidden="[[!miniGuideVisible]]" visible="[[miniGuideVisible]]" class="style-scope ytd-app">\n  </ytd-mini-guide-renderer>\n  <ytd-page-manager id="page-manager" class="style-scope ytd-app"></ytd-page-manager>\n</div>\n<ytd-permission-role-bottom-bar-renderer class="style-scope ytd-app"></ytd-permission-role-bottom-bar-renderer>\n<ytd-popup-container class="style-scope ytd-app"></ytd-popup-container>\n<ytd-third-party-manager class="style-scope ytd-app"></ytd-third-party-manager>\n<div id="video-preview" class="style-scope ytd-app"></div>\n<template is="dom-if" if="[[ephemeralActionsEnabled]]" class="style-scope ytd-app">\n  <yt-ephemeral-actions class="style-scope ytd-app"></yt-ephemeral-actions>\n</template>\n');
F.content.insertBefore(_.m().content.cloneNode(!0),F.content.firstChild);d7K=F}F=d7K;return F}}});
Go.prototype.onOpenHotkeyDialog=Go.prototype.onOpenHotkeyDialog;Go.prototype.setFullscreen=Go.prototype.setFullscreen;Go.prototype.onAddElementToApp=Go.prototype.onAddElementToApp;Go.prototype.onDrawerIronSelect=Go.prototype.onDrawerIronSelect;Go.prototype.onGuideOpenButtonHover=Go.prototype.onGuideOpenButtonHover;Go.prototype.onRequestPanelModeChange=Go.prototype.onRequestPanelModeChange;Go.prototype.onPageDataUpdated=Go.prototype.onPageDataUpdated;Go.prototype.onPageChanged=Go.prototype.onPageChanged;
Go.prototype.onSetTheaterModeEnabled=Go.prototype.onSetTheaterModeEnabled;Go.prototype.updateMastheadData=Go.prototype.updateMastheadData;Go.prototype.onYtPageManagerAttached=Go.prototype.onYtPageManagerAttached;Go.prototype.observeGuideVisibility=Go.prototype.observeGuideVisibility;Go.prototype.guideIsVisibleButNotPersistentSelectorChanged=Go.prototype.guideIsVisibleButNotPersistentSelectorChanged;Go.prototype.isInlinePreviewEnabledChanged=Go.prototype.isInlinePreviewEnabledChanged;
Go.prototype.dispatchFrostedGlassMode=Go.prototype.dispatchFrostedGlassMode;_.T([_.J(_.am),_.Y("design:type",Object)],Go.prototype,"ytdReduxBehavior",void 0);_.T([_.J(_.B$.YtEventForwardingBehavior),_.Y("design:type",Object)],Go.prototype,"ytEventForwardingBehavior",void 0);_.T([_.J(_.R9.YtOpenPopupBehavior),_.Y("design:type",Object)],Go.prototype,"ytOpenPopupBehavior",void 0);_.T([_.J(_.FM.YtActionHandlerBehavior),_.Y("design:type",Object)],Go.prototype,"ytActionHandlerBehavior",void 0);
_.T([_.J({_noAccessors:!0,actionRouterIsRoot:!1,created:function(){this.actionRouter_=_.o_.getInstance();this.actionRouterNode=this.actionRouterIsRoot?document.body:this;this.onYtActionBoundListener_=this.onYtAction_.bind(this);this.actionRouterListenersRegistered_=!1;_.c("action_router_attached_only_killswitch")&&this.registerActionRouterEventListeners_()},
attached:function(){this.registerActionRouterEventListeners_()},
detached:function(){this.unregisterActionRouterEventListeners_()},
registerActionRouterEventListeners_:function(){if(!this.actionRouterListenersRegistered_){this.actionRouterListenersRegistered_=!0;var F;((F=this.actionRouterNode.hostElement)!=null?F:this.actionRouterNode).addEventListener("yt-action",this.onYtActionBoundListener_)}},
unregisterActionRouterEventListeners_:function(){this.actionRouterListenersRegistered_=!1;var F;((F=this.actionRouterNode.hostElement)!=null?F:this.actionRouterNode).removeEventListener("yt-action",this.onYtActionBoundListener_)},
onYtAction_:function(F){this.actionRouter_.handleAction(F.detail)}}),
_.Y("design:type",Object)],Go.prototype,"ytActionRouterBehavior",void 0);_.T([_.J(ggu.YtdAppBehavior),_.Y("design:type",Object)],Go.prototype,"ytdAppBehavior",void 0);_.T([_.J(_.eB.YtEndpointBehavior),_.Y("design:type",Object)],Go.prototype,"ytEndpointBehavior",void 0);_.T([_.J(eV$.YtEndpointHandlerWithYpcBehavior),_.Y("design:type",Object)],Go.prototype,"ytEndpointHandlerWithYpcBehavior",void 0);
_.T([_.J(NmN.YtLogYpcFlowCommandsBehavior),_.Y("design:type",Object)],Go.prototype,"ytLogYpcFlowCommandsBehavior",void 0);_.T([_.J(_.K.YtRendererBehavior),_.Y("design:type",Object)],Go.prototype,"ytRendererBehavior",void 0);_.T([_.J(_.Ok.YtComponentBehavior),_.Y("design:type",Object)],Go.prototype,"ytComponentBehavior",void 0);_.T([_.O({selector:_.bLg}),_.Y("design:type",Object)],Go.prototype,"tabGesturesIsActive",void 0);_.T([_.O(),_.Y("design:type",Boolean)],Go.prototype,"renderGuide",void 0);
_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Go.prototype,"guidePersistentAndVisible",void 0);_.T([_.O({selector:_.OLN}),_.Y("design:type",Boolean)],Go.prototype,"guideIsVisibleButNotPersistent",void 0);_.T([_.O({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],Go.prototype,"standalone",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Go.prototype,"miniGuideVisible",void 0);
_.T([_.O({selector:_.sHe}),_.Y("design:type",Number)],Go.prototype,"miniplayerPlaybackState",void 0);_.T([_.O({selector:_.Pz,reflectToAttribute:!0}),_.Y("design:type",Boolean)],Go.prototype,"miniplayerIsActive",void 0);_.T([_.O({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.Y("design:type",Boolean)],Go.prototype,"isInlinePreviewEnabled",void 0);_.T([_.O(),_.Y("design:type",Boolean)],Go.prototype,"isInlinePreviewDisabled",void 0);
_.T([_.O({reflectToAttribute:!0,value:function(){return _.l0("START_IN_FULL_WINDOW_MODE")}}),
_.Y("design:type",Boolean)],Go.prototype,"mastheadHidden",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Go.prototype,"playerFullscreen",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],Go.prototype,"deprecateFullerscreenUi",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Go.prototype,"fullscreen",void 0);_.T([_.O({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],Go.prototype,"hideHeaderShadow",void 0);
_.T([_.O({value:{GUIDE_ALT_LABEL:_.CY("GUIDE_ALT_LABEL",void 0,"Guide")}}),_.Y("design:type",Object)],Go.prototype,"menuStrings",void 0);_.T([_.O({computed:"computeTopbarData(data)"}),_.Y("design:type",Object)],Go.prototype,"topbarData",void 0);_.T([_.O({selector:_.JE}),_.Y("design:type",Boolean)],Go.prototype,"isWatchPage",void 0);_.T([_.O({selector:_.xCo,reflectToAttribute:!0}),_.Y("design:type",Boolean)],Go.prototype,"isShortsPage",void 0);
_.T([_.O({selector:function(F){return F.ui.currentPageType==="WEB_PAGE_TYPE_MINI_APP"}}),
_.Y("design:type",Boolean)],Go.prototype,"isMiniAppPage",void 0);_.T([_.O({selector:function(F){return F.ui.currentPageType==="WEB_PAGE_TYPE_BROWSE"}}),
_.Y("design:type",Boolean)],Go.prototype,"isBrowsePage",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Go.prototype,"scrolling",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],Go.prototype,"hasDelegation",void 0);_.T([_.O({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],Go.prototype,"guideScrolledByTouch",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],Go.prototype,"darkerDarkTheme",void 0);
_.T([_.O(),_.Y("design:type",Object)],Go.prototype,"isFrostedGlassInitialized",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],Go.prototype,"frostedGlassExp",void 0);_.T([_.O({selector:function(F){return F.ui.chipBarIsSticky}}),
_.Y("design:type",Boolean)],Go.prototype,"chipBarIsSticky",void 0);_.T([_.O({computed:"computeIsHomePage(isBrowsePage, data)"}),_.Y("design:type",Boolean)],Go.prototype,"isHomePage",void 0);_.T([_.O({reflectToAttribute:!0}),_.Y("design:type",Object)],Go.prototype,"mastheadHiddenFocusWithinKillswitch",void 0);_.T([_.O(),_.Y("design:type",Object)],Go.prototype,"ephemeralActionsEnabled",void 0);_.T([_.KA("guide"),_.Y("design:type",Object)],Go.prototype,"guide",void 0);
_.T([_.KA("guide-service"),_.Y("design:type",m4T)],Go.prototype,"guideService",void 0);_.T([_.KA("guide-inner-content"),_.Y("design:type",HTMLDivElement)],Go.prototype,"guideInnerContent",void 0);_.T([_.O({selector:_.qak}),_.Y("design:type",String)],Go.prototype,"frostedGlassMode",void 0);
_.T([_.ea("isFrostedGlassDisabled","isFrostedGlassInitialized","applyFrostedGlassToChipBar"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Go.prototype,"dispatchFrostedGlassMode",null);_.T([_.O({computed:"computeIsFrostedGlassDisabled(isShortsPage, isMiniAppPage, isChannelOrPlaylistPage, isWatchPage)"}),_.Y("design:type",Object)],Go.prototype,"isFrostedGlassDisabled",void 0);
_.T([_.a("isHomePage","chipBarIsSticky"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Go.prototype,"applyFrostedGlassToChipBar",null);_.T([_.O(),_.Y("design:type",Object)],Go.prototype,"isChannelOrPlaylistPage",void 0);_.T([_.Cz("isInlinePreviewEnabled"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Go.prototype,"isInlinePreviewEnabledChanged",null);
_.T([_.ea("guideIsVisibleButNotPersistent"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Go.prototype,"guideIsVisibleButNotPersistentSelectorChanged",null);_.T([_.ea("guidePersistentAndVisible","miniGuideVisible"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Go.prototype,"observeGuideVisibility",null);
_.T([_.R4("attached"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],Go.prototype,"onYtPageManagerAttached",null);_.T([_.ea("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype",Promise)],Go.prototype,"updateMastheadData",null);_.T([_.R4("yt-set-theater-mode-enabled"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],Go.prototype,"onSetTheaterModeEnabled",null);
_.T([_.R4("yt-page-type-changed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Go.prototype,"onPageChanged",null);_.T([_.R4("yt-page-data-updated"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Go.prototype,"onPageDataUpdated",null);_.T([_.R4("yt-request-panel-mode-change"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event,Object]),_.Y("design:returntype")],Go.prototype,"onRequestPanelModeChange",null);
_.T([_.R4("yt-guide-hover"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Go.prototype,"onGuideOpenButtonHover",null);_.T([_.R4("app-drawer-transitioned"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],Go.prototype,"onDrawerIronSelect",null);_.T([_.R4("yt-add-element-to-app"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Go.prototype,"onAddElementToApp",null);
_.T([_.R4("yt-set-fullerscreen-styles"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Go.prototype,"setFullscreen",null);_.T([_.R4("yt-open-hotkey-dialog"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Go.prototype,"onOpenHotkeyDialog",null);Go=_.T([_.y({is:"ytd-app"})],Go);_.ip().processSignal("eor");
_.Hb();
}catch(e){_._DumpException(e)}
}).call(this,this.default_kevlar_base);
// Google Inc.
